decocms 2.312.4 → 2.312.5
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-C7eh3Re9.js → AlertCircle-8gO1aXOV.js} +1 -1
- package/dist/client/assets/{Archive-DzoQR2gK.js → Archive-CpwaQ9i2.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-CpwQCcjp.js → ArrowNarrowLeft-Bj9BOs-z.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-DCiprqZS.js → ArrowUpRight-CGIcPNOI.js} +1 -1
- package/dist/client/assets/{Check-B-fE3mUv.js → Check-iLkh97pT.js} +1 -1
- package/dist/client/assets/{CheckCircle-BxBgE7Bb.js → CheckCircle-BqxncqLD.js} +1 -1
- package/dist/client/assets/{ChevronDown-CbBnJL_3.js → ChevronDown-hAIeVVjO.js} +1 -1
- package/dist/client/assets/{ChevronRight-M76k2Bqn.js → ChevronRight-DvySy092.js} +1 -1
- package/dist/client/assets/{ChevronUp-NOBCdNb6.js → ChevronUp-nRc3sEaT.js} +1 -1
- package/dist/client/assets/{Container-WGWM0qAq.js → Container-kWAyJ_HH.js} +1 -1
- package/dist/client/assets/{DotsVertical-BwyHH0XA.js → DotsVertical-C-S6nCss.js} +1 -1
- package/dist/client/assets/{LayoutLeft-CRwvychN.js → LayoutLeft-JykQcN-j.js} +1 -1
- package/dist/client/assets/{LinkExternal01-C-L_SAia.js → LinkExternal01-BxIXc_ra.js} +1 -1
- package/dist/client/assets/{Lock01-D4Ufi2rD.js → Lock01-mA7QgL2y.js} +1 -1
- package/dist/client/assets/{Palette-zf4FWQAJ.js → Palette-BcbDyirO.js} +1 -1
- package/dist/client/assets/{Play-CwjfjTyu.js → Play-B-SyQLb4.js} +1 -1
- package/dist/client/assets/{Plus-uo6qDPOp.js → Plus-Da0UZLbd.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-DMn6IokY.js → RefreshCcw01-DjbieO7J.js} +1 -1
- package/dist/client/assets/{SearchMd-DUDw0ZUT.js → SearchMd-CRZSLxL6.js} +1 -1
- package/dist/client/assets/{Settings02-CuDW1PzF.js → Settings02-CRn2TAbB.js} +1 -1
- package/dist/client/assets/{Shield01-fWUg40CK.js → Shield01-mkPGOpR6.js} +1 -1
- package/dist/client/assets/{Star01-BQcqEnZt.js → Star01-DKC04CRs.js} +1 -1
- package/dist/client/assets/{Sun-BMuKJ9Ff.js → Sun-BmooIo9H.js} +1 -1
- package/dist/client/assets/{Tool01-BQ6Qf2cF.js → Tool01-Cmmu87hJ.js} +1 -1
- package/dist/client/assets/{Trash01-BC9JMST6.js → Trash01-_0GJuf6O.js} +1 -1
- package/dist/client/assets/{User01-B9gZ9vGn.js → User01-BeQhAfkv.js} +1 -1
- package/dist/client/assets/{Users03-CIKc-et8.js → Users03-BRhtwP3R.js} +1 -1
- package/dist/client/assets/{X-Bz2olG8B.js → X-BIBUzPXw.js} +1 -1
- package/dist/client/assets/{XCircle-iwkBPWSG.js → XCircle-B3Ec4xbl.js} +1 -1
- package/dist/client/assets/{XClose-Bm2tdn0q.js → XClose-_fuYraP_.js} +1 -1
- package/dist/client/assets/{Zap-BsnjihrJ.js → Zap-C2Ojyfeu.js} +1 -1
- package/dist/client/assets/{ZapSquare-DYSZtVlE.js → ZapSquare-Bp-Tac0d.js} +1 -1
- package/dist/client/assets/{accordion-328unscb.js → accordion-rzQTbL0h.js} +1 -1
- package/dist/client/assets/{agent-icon-TkwfBS_q.js → agent-icon-C3ToZMO1.js} +1 -1
- package/dist/client/assets/{agents-list-BQvdhOOb.js → agents-list-sQ_2-MIz.js} +1 -1
- package/dist/client/assets/{ai-providers-BeDnUXfp.js → ai-providers-DRxrdzrJ.js} +1 -1
- package/dist/client/assets/{alert-dialog-D1IbIWhp.js → alert-dialog-rJ8tQXxB.js} +1 -1
- package/dist/client/assets/{auth-catchall-Dd8tUYty.js → auth-catchall-Cqm9tpGx.js} +1 -1
- package/dist/client/assets/{automation-list-row-C8-jEl_H.js → automation-list-row-A_8c4BfR.js} +1 -1
- package/dist/client/assets/{automations-CZsgh01M.js → automations-YzDLAcj1.js} +1 -1
- package/dist/client/assets/{avatar-BqUqm_f_.js → avatar-BzKxqu3b.js} +1 -1
- package/dist/client/assets/{badge-e4gaf6Av.js → badge-CtvUEMa3.js} +1 -1
- package/dist/client/assets/{brand-context-9Yb3slSI.js → brand-context-CFaaMt6s.js} +1 -1
- package/dist/client/assets/{card-B2LlFtv3.js → card-DTHqwNV7.js} +1 -1
- package/dist/client/assets/{chat-context-CDov-9o4.js → chat-context-DxzvANdp.js} +10 -10
- package/dist/client/assets/{checkbox-C5VIt0wD.js → checkbox-Cs8wVTnP.js} +1 -1
- package/dist/client/assets/{collection-detail-BuOhDy6g.js → collection-detail-BVdBCgeZ.js} +1 -1
- package/dist/client/assets/{collection-display-button-DIp-dsIB.js → collection-display-button-B-70Ju9K.js} +1 -1
- package/dist/client/assets/{collection-search-DvQzDLEi.js → collection-search-BvyGXjxx.js} +1 -1
- package/dist/client/assets/{collection-search-BqwrYkpa.js → collection-search-CbmTjLje.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-AKC8h6wU.js → collection-table-wrapper-DXq2NrGj.js} +1 -1
- package/dist/client/assets/{collection-tabs-aTTa391l.js → collection-tabs-Cx7Fw5pB.js} +1 -1
- package/dist/client/assets/{collections-BuQqriCM.js → collections-BrXh640u.js} +1 -1
- package/dist/client/assets/{command-C8ocK7DO.js → command-Gp6-PTcb.js} +1 -1
- package/dist/client/assets/{connection-card-CdSiHT_s.js → connection-card-gdrfoq9h.js} +1 -1
- package/dist/client/assets/{connection-detail-DJDM6qrF.js → connection-detail-sPm6-FQh.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DFsENkA7.js → connection-form-helpers-CMTw78q4.js} +1 -1
- package/dist/client/assets/{connections-WOK-a8c5.js → connections-ClXPJSid.js} +1 -1
- package/dist/client/assets/{constants-DvN2evJ8.js → constants-Byqq7P-x.js} +1 -1
- package/dist/client/assets/{constants-BUUJVSUG.js → constants-j7SVGFua.js} +1 -1
- package/dist/client/assets/{dialog-BiOEQ1Hc.js → dialog-CVU8C65F.js} +1 -1
- package/dist/client/assets/{domain-settings-DrnFdvhU.js → domain-settings-DKmwgR9_.js} +1 -1
- package/dist/client/assets/{drawer-m8dkznMR.js → drawer-BPoStQav.js} +1 -1
- package/dist/client/assets/{dropdown-menu-DLhsz2J5.js → dropdown-menu-CFvw1sby.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-bcffUnqq.js → dynamic-plugin-layout-DB9J-dmB.js} +1 -1
- package/dist/client/assets/{empty-state-BFGEe__T.js → empty-state-8-OQfGVL.js} +1 -1
- package/dist/client/assets/{empty-state-Cdczql2B.js → empty-state-DICfxaK6.js} +1 -1
- package/dist/client/assets/{extract-connection-data-844ApV7p.js → extract-connection-data-D9CVtxg9.js} +1 -1
- package/dist/client/assets/{features-Dm70Q7yx.js → features-CozjNW2D.js} +1 -1
- package/dist/client/assets/{form-DaDKP1xj.js → form-D2ajrZY7.js} +1 -1
- package/dist/client/assets/{general-C_qHqy-s.js → general-BkPw_hwG.js} +1 -1
- package/dist/client/assets/{index-BP1irR4w.js → index-4U7gRnbz.js} +3 -3
- package/dist/client/assets/{index-CsyoB4qd.js → index-8aV9WSX6.js} +1 -1
- package/dist/client/assets/{index-B4ARPCRv.js → index-Bb5AeDnq.js} +1 -1
- package/dist/client/assets/{index-Du8ZsDnS.js → index-BbzWWop6.js} +1 -1
- package/dist/client/assets/{index-BRtlsWxZ.js → index-BcJogvuh.js} +1 -1
- package/dist/client/assets/{index-gj6ejCso.js → index-BwduZbfJ.js} +1 -1
- package/dist/client/assets/{index-C-7o6zB8.js → index-CB-9CUUW.js} +2 -2
- package/dist/client/assets/{index-D50QWIt1.js → index-CPY1FvNi.js} +1 -1
- package/dist/client/assets/{index-DV3_Yeg_.js → index-C_u8z90u.js} +1 -1
- package/dist/client/assets/{index-CNaiomGM.js → index-Ca8lIGfE.js} +1 -1
- package/dist/client/assets/{index-BiLAGy6Y.js → index-Cd02a-JG.js} +1 -1
- package/dist/client/assets/{index-CCFKoDTr.js → index-D7EGXs0z.js} +1 -1
- package/dist/client/assets/{index-C3ItJtDA.js → index-D7tifyXI.js} +1 -1
- package/dist/client/assets/{index-Fd8j7SKT.js → index-DR62hZV9.js} +1 -1
- package/dist/client/assets/{index-Z4y7Xqpl.js → index-MHifxSvC.js} +1 -1
- package/dist/client/assets/{index-CgBSxnoL.js → index-dI45a3oJ.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-Dw0E78jT.js → infiniteQueryObserver-B8WYxU9o.js} +1 -1
- package/dist/client/assets/{input-9fGh4tmx.js → input-DNFaDN-t.js} +1 -1
- package/dist/client/assets/{integration-icon-CMP0vNT1.js → integration-icon-Bt36uZm6.js} +1 -1
- package/dist/client/assets/{label-DLzPbTFz.js → label-EPch60Re.js} +1 -1
- package/dist/client/assets/{layout-B_w0L8NB.js → layout-C-ijRiyr.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-CyWHgrUh.js → lean-canvas-recruit-modal-DfNm4E73.js} +1 -1
- package/dist/client/assets/{login-DN3ui4o2.js → login-Dp5n-o6e.js} +1 -1
- package/dist/client/assets/{members-Cqt_7BbR.js → members-B4-cMOsS.js} +1 -1
- package/dist/client/assets/{monaco-editor-BQzo0Wjs.js → monaco-editor-UJJyG6n2.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BaUW2Xkn.js → monitoring-stats-row-Ba3ar8Om.js} +1 -1
- package/dist/client/assets/{oauth-callback-DNxvRR-9.js → oauth-callback-Dgudf75C.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BaBdfpnJ.js → oauth-callback-ai-provider-EanhHzQY.js} +1 -1
- package/dist/client/assets/{onboarding-CR7yjYaj.js → onboarding-CN7qNa98.js} +1 -1
- package/dist/client/assets/{org-layout-Cb-ADOWZ.js → org-layout-CdBnaGi6.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-njJjJMFT.js → org-plugin-layout-pmz_1-KP.js} +1 -1
- package/dist/client/assets/{pair-CGfn-HdZ.js → pair-C-m8tavv.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-BTEa5hkW.js → plugin-empty-state-PqSYiLpp.js} +1 -1
- package/dist/client/assets/{plugin-header-B2jK-xMp.js → plugin-header-apdmEPGc.js} +1 -1
- package/dist/client/assets/{plugin-layout-Bn9EbEmt.js → plugin-layout-DE-RB_rr.js} +1 -1
- package/dist/client/assets/{popover-e2Bi9Ijy.js → popover-DqPZrAPW.js} +1 -1
- package/dist/client/assets/{profile-BPcooE5z.js → profile-CDG3HHBU.js} +1 -1
- package/dist/client/assets/{project-app-view-HTOiOpva.js → project-app-view-eNqi9XCt.js} +1 -1
- package/dist/client/assets/registry-CBqcs7XA.js +2 -0
- package/dist/client/assets/{registry-layout-DPRiAvDZ.js → registry-layout-CoJtCj-r.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CybekGFA.js → required-auth-layout-DNLyc-Jc.js} +1 -1
- package/dist/client/assets/{reset-password-B3LrUwFE.js → reset-password-BILcwCX-.js} +1 -1
- package/dist/client/assets/{roles-CvtZh-pA.js → roles-EUFvZijn.js} +1 -1
- package/dist/client/assets/{scroll-area-BlERkbFS.js → scroll-area-C80z-i4l.js} +1 -1
- package/dist/client/assets/{search-input-Cn0Od0in.js → search-input-CITVGcCE.js} +1 -1
- package/dist/client/assets/{select-DfpWbWAA.js → select-D2rWlduK.js} +1 -1
- package/dist/client/assets/{select-model-D272kQJC.js → select-model-BTNonZmN.js} +1 -1
- package/dist/client/assets/{settings-layout-EiIXIsKh.js → settings-layout-Bg2zZUvB.js} +1 -1
- package/dist/client/assets/{settings-section-D7_GmpQ9.js → settings-section-Dnz7xxTt.js} +1 -1
- package/dist/client/assets/{shell-layout-CnxPajL4.js → shell-layout-C4Qbz79U.js} +1 -1
- package/dist/client/assets/{sidebar-CYpLX4no.js → sidebar-BWu_ePOy.js} +1 -1
- package/dist/client/assets/{skeleton-CWZeUc5U.js → skeleton-DJTy6ez2.js} +1 -1
- package/dist/client/assets/{spinner-DamIB9Ms.js → spinner-WgqEYOpc.js} +1 -1
- package/dist/client/assets/{sso-JhZQ6pL0.js → sso-ZW_bBsst.js} +1 -1
- package/dist/client/assets/{store-C86R69qX.js → store-2-hWApJp.js} +1 -1
- package/dist/client/assets/store-registry-01dPTj0W.js +2 -0
- package/dist/client/assets/{switch-T40TKDv0.js → switch-qhfo8Vps.js} +1 -1
- package/dist/client/assets/{table-BN_qkFAx.js → table-DT9Lwdc9.js} +1 -1
- package/dist/client/assets/{tabs-p0yoOoyy.js → tabs-DdVMeHSM.js} +1 -1
- package/dist/client/assets/{task-status-C350i7gZ.js → task-status-CNZzETah.js} +1 -1
- package/dist/client/assets/{textarea-Ck-_LXZT.js → textarea-tUo13Bze.js} +1 -1
- package/dist/client/assets/{toggle-group-DBZ-b7HK.js → toggle-group-CDk1azIm.js} +1 -1
- package/dist/client/assets/{tools-list-DPCnQZw_.js → tools-list-B7BG48WQ.js} +1 -1
- package/dist/client/assets/{tooltip-5d92WQgx.js → tooltip-Fw0r1Fnv.js} +1 -1
- package/dist/client/assets/{types-DUjtSZCT.js → types-SLEmji6U.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DnqgBtrl.js → use-ai-providers-C-k1YUCw.js} +1 -1
- package/dist/client/assets/{use-collections-g6eFEOg-.js → use-collections-B62mMH76.js} +1 -1
- package/dist/client/assets/{use-connection-CVJArsRM.js → use-connection-CGnX1bAr.js} +1 -1
- package/dist/client/assets/{use-copy-DvX06OMp.js → use-copy-S7d6ccvS.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-1Snk1Y0U.js → use-create-virtual-mcp-D8mqROzD.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-C4P00Ugc.js → use-debounced-autosave-DSiduY2E.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-LDbXPgsM.js → use-decopilot-events-CD5HmYFC.js} +1 -1
- package/dist/client/assets/{use-delete-connection--X0jmBjk.js → use-delete-connection-DVHNgb48.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-bTPc4v46.js → use-infinite-scroll-SPOySZcn.js} +1 -1
- package/dist/client/assets/{use-list-state-CjtCLokI.js → use-list-state-CB5cSSEY.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BRv4Pzaj.js → use-mcp-tools-DbRVIPCe.js} +1 -1
- package/dist/client/assets/{use-members-BHNdoIJ3.js → use-members-Cjc37mTg.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DhIHhVdu.js → use-navigate-to-agent-BFHXdont.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CJeZlMTP.js → use-org-auth-client-CH982N7h.js} +1 -1
- package/dist/client/assets/{use-org-sso-_gSpDh8p.js → use-org-sso-DyRmCzkM.js} +1 -1
- package/dist/client/assets/{use-organization-roles-ClnpTw4u.js → use-organization-roles-2UTk-DFF.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DmL7EaQZ.js → use-organization-settings-gXH8ly7B.js} +1 -1
- package/dist/client/assets/{use-registry-connections-Ds74sjTr.js → use-registry-connections-DAbFKgpw.js} +1 -1
- package/dist/client/assets/{use-status-sounds-CFLTUaDf.js → use-status-sounds-VTPYJ4_T.js} +1 -1
- package/dist/client/assets/{use-tasks-BIeBYcx5.js → use-tasks-Buj64kOD.js} +1 -1
- package/dist/client/assets/{use-view-mode-DIRh4-ob.js → use-view-mode-C9lWb9qo.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-Ct7cqJwI.js → use-virtual-mcp-CnvhxxMa.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BECdJto-.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-DLoMCiwp.js +1 -0
- package/dist/client/assets/{user-C2wQ-MsS.js → user-Chu-GPC8.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-D2JMsTT3.js → view-mode-toggle-Cj1WIwcj.js} +1 -1
- package/dist/client/assets/{workflow-BMafL0G7.js → workflow-BBU02wN2.js} +1 -1
- package/dist/client/assets/workflow-detail-CoYIUlop.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/node_modules/string-width/index.d.ts +39 -0
- package/dist/server/node_modules/string-width/index.js +82 -0
- package/dist/server/node_modules/string-width/license +9 -0
- package/dist/server/node_modules/string-width/package.json +64 -0
- package/dist/server/node_modules/string-width/readme.md +66 -0
- package/package.json +1 -1
- package/dist/client/assets/registry-BakIE_E6.js +0 -2
- package/dist/client/assets/store-registry-5nvptnn0.js +0 -2
- package/dist/client/assets/useInfiniteQuery-Dokj505R.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-_VFI1crv.js +0 -1
- package/dist/client/assets/workflow-detail-D6qKcXvR.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{co as Fe,bm as Os,J as oe,I as ge,aZ as ti,bR as _i,aJ as Ie,bk as mt,a_ as qe,ap as mr,cp as rn,H as _e,cq as Ii,cr as ws,cs as ec,bP as tc,ct as ia,cu as nc,cv as rc,cw as ic,cx as fn,cy as Tr,cz as xs,bK as sa,bC as sc,aI as ze,bQ as oc,aH as On,ba as Ci,cA as ac,r as N,j as w,cB as oa,cC as lc}from"./index-C-7o6zB8.js";import{f as cc,h as uc,n as fc,j as dc,C as hc,A as pc}from"./constants-DvN2evJ8.js";import{B as Ti,c as Pi}from"./collections-BuQqriCM.js";import{R as Es}from"./index-B4ARPCRv.js";var mc=class{apply(e,t){if(!t.type)return;const n=Array.isArray(t.type)?t.type:[t.type],r=new Set(n);if(r.has("string")||(e.string=!1),!r.has("number")&&!r.has("integer")&&(e.number=!1),r.has("boolean")||(e.boolean=!1),r.has("null")||(e.null=!1),r.has("array")||(e.array=!1),r.has("object")||(e.object=!1),r.has("integer")&&e.number!==!1){const i=e.number||ge();i instanceof rn&&(e.number=i.int())}}},yc=class{apply(e,t){if(t.const===void 0)return;const n=t.const;e.string=!1,e.number=!1,e.boolean=!1,e.null=!1,e.array=!1,e.object=!1,typeof n=="string"?e.string=qe(n):typeof n=="number"?e.number=qe(n):typeof n=="boolean"?e.boolean=qe(n):n===null?e.null=_i():Array.isArray(n)?e.array=void 0:typeof n=="object"&&(e.object=void 0)}},gc=class{apply(e,t){if(!t.enum)return;if(t.enum.length===0){t.type||(e.string=!1,e.number=!1,e.boolean=!1,e.null=!1,e.array=!1,e.object=!1);return}const n={string:t.enum.filter(r=>typeof r=="string"),number:t.enum.filter(r=>typeof r=="number"),boolean:t.enum.filter(r=>typeof r=="boolean"),null:t.enum.filter(r=>r===null),array:t.enum.filter(r=>Array.isArray(r)),object:t.enum.filter(r=>typeof r=="object"&&r!==null&&!Array.isArray(r))};e.string=this.createTypeSchema(n.string,"string"),e.number=this.createTypeSchema(n.number,"number"),e.boolean=this.createTypeSchema(n.boolean,"boolean"),e.null=n.null.length>0?_i():!1,e.array=n.array.length>0?void 0:!1,e.object=n.object.length>0?void 0:!1}createTypeSchema(e,t){if(e.length===0)return!1;if(e.length===1)return qe(e[0]);if(t==="string")return mr(e);if(t==="number"){const[n,r,...i]=e;return mt([qe(n),qe(r),...i.map(s=>qe(s))])}return t==="boolean"?mt([qe(!0),qe(!1)]):!1}},bc=class{apply(e,t){const n=t;if(n.type==="string"&&n.format==="binary"&&n.contentEncoding==="binary"){let r=ic();n.minLength!==void 0&&(r=r.min(n.minLength)),n.maxLength!==void 0&&(r=r.max(n.maxLength)),n.contentMediaType!==void 0&&(r=r.mime(n.contentMediaType)),e.file=r,e.string=!1}}},Sc=class{apply(e,t){const n=t;t.type===void 0&&(n.minLength!==void 0||n.maxLength!==void 0||n.pattern!==void 0)&&e.string===void 0&&(e.string=oe())}},vc=class{apply(e,t){const n=t;if(n.minLength!==void 0&&e.string!==!1){const r=e.string||oe();r instanceof Ii&&(e.string=r.refine(i=>Array.from(i).length>=n.minLength,{message:`String must be at least ${n.minLength} characters long`}))}}},Oc=class{apply(e,t){const n=t;if(n.maxLength!==void 0&&e.string!==!1){const r=e.string||oe();r instanceof Ii&&(e.string=r.refine(i=>Array.from(i).length<=n.maxLength,{message:`String must be at most ${n.maxLength} characters long`}))}}},wc=class{apply(e,t){const n=t;if(n.pattern&&e.string!==!1){const r=e.string||oe();if(r instanceof Ii){const i=new RegExp(n.pattern);e.string=r.regex(i)}}}},xc=class{apply(e,t){const n=t;if(n.minimum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(e.number=r.min(n.minimum))}}},Ec=class{apply(e,t){const n=t;if(n.maximum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(e.number=r.max(n.maximum))}}},Ac=class{apply(e,t){const n=t;if(n.exclusiveMinimum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(typeof n.exclusiveMinimum=="number"?e.number=r.gt(n.exclusiveMinimum):e.number=!1)}}},_c=class{apply(e,t){const n=t;if(n.exclusiveMaximum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(typeof n.exclusiveMaximum=="number"?e.number=r.lt(n.exclusiveMaximum):e.number=!1)}}},Ic=class{apply(e,t){const n=t;if(n.multipleOf!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(e.number=r.refine(i=>{if(n.multipleOf===0)return!1;const s=i/n.multipleOf,o=Math.round(s),a=Math.min(Math.abs(i)*Number.EPSILON*10,Math.abs(n.multipleOf)*Number.EPSILON*10);return Math.abs(s-o)<=a/Math.abs(n.multipleOf)},{message:`Must be a multiple of ${n.multipleOf}`}))}}},Cc=class{apply(e,t){const n=t;t.type===void 0&&(n.minItems!==void 0||n.maxItems!==void 0||n.items!==void 0||n.prefixItems!==void 0)&&e.array===void 0&&(e.array=Ie(Fe()))}},Tc=class{apply(e,t){const n=t;n.minItems!==void 0&&e.array!==!1&&(e.array=(e.array||Ie(Fe())).min(n.minItems))}},Pc=class{apply(e,t){const n=t;n.maxItems!==void 0&&e.array!==!1&&(e.array=(e.array||Ie(Fe())).max(n.maxItems))}},Fc=class{apply(e,t){const n=t;if(e.array!==!1)if(Array.isArray(n.items))e.array=e.array||Ie(Fe());else if(n.items&&typeof n.items!="boolean"&&!n.prefixItems){const r=Ae(n.items);let i=Ie(r);if(e.array&&e.array instanceof ec){const s=e.array._def;s.checks&&s.checks.forEach(o=>{if(o._zod&&o._zod.def){const a=o._zod.def;a.check==="min_length"&&a.minimum!==void 0?i=i.min(a.minimum):a.check==="max_length"&&a.maximum!==void 0&&(i=i.max(a.maximum))}})}e.array=i}else typeof n.items=="boolean"&&n.items===!1?n.prefixItems?e.array=e.array||Ie(Fe()):e.array=Ie(Fe()).max(0):typeof n.items=="boolean"&&n.items===!0?e.array=e.array||Ie(Fe()):n.prefixItems&&(e.array=e.array||Ie(Fe()))}},jc=class{apply(e,t){if(t.type!=="array")return;const n=t;if(!Array.isArray(n.items)||e.array===!1)return;const r=n.items.map(s=>Ae(s));let i;r.length===0?i=ws([]):i=ws(r),n.minItems!==void 0&&n.minItems>r.length&&(i=!1),n.maxItems!==void 0&&n.maxItems<r.length&&(i=!1),e.tuple=i,e.array=!1}},$c=class{apply(e,t){const n=t;e.object!==!1&&(n.properties||n.required||n.additionalProperties!==void 0)&&(e.object=e.object||_e({}).passthrough())}},Dc=class{apply(e,t){const n=t;t.type===void 0&&(n.maxProperties!==void 0||n.minProperties!==void 0)&&e.object===void 0&&(e.object=_e({}).passthrough())}},Nc=class{apply(e,t){const n=t;if(n.maxProperties!==void 0&&e.object!==!1){const r=e.object||_e({}).passthrough();e.object=r.refine(i=>Object.keys(i).length<=n.maxProperties,{message:`Object must have at most ${n.maxProperties} properties`})}}},Rc=class{apply(e,t){const n=t;if(n.minProperties!==void 0&&e.object!==!1){const r=e.object||_e({}).passthrough();e.object=r.refine(i=>Object.keys(i).length>=n.minProperties,{message:`Object must have at least ${n.minProperties} properties`})}}};function Tn(e,t){if(e===t)return!0;if(e==null||t==null)return e===t;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t))return e.length!==t.length?!1:e.every((n,r)=>Tn(n,t[r]));if(typeof e=="object"&&typeof t=="object"){const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length?!1:n.every(i=>r.includes(i)&&Tn(e[i],t[i]))}return!1}function Mc(){return e=>{if(!Array.isArray(e))return!0;const t=[];return e.every(n=>t.some(i=>Tn(n,i))?!1:(t.push(n),!0))}}function cr(e,t){return e.safeParse(t).success}var Uc=class{apply(e,t){if(!t.not)return e;const n=Ae(t.not);return e.refine(r=>!cr(n,r),{message:"Value must not match the 'not' schema"})}},kc=class{apply(e,t){return t.uniqueItems!==!0?e:e.refine(Mc(),{message:"Array items must be unique"})}},Lc=class{apply(e,t){return!t.allOf||t.allOf.length===0?e:t.allOf.map(r=>Ae(r)).reduce((r,i)=>ia(r,i),e)}},Bc=class{apply(e,t){if(!t.anyOf||t.anyOf.length===0)return e;const n=t.anyOf.length===1?Ae(t.anyOf[0]):mt([Ae(t.anyOf[0]),Ae(t.anyOf[1]),...t.anyOf.slice(2).map(r=>Ae(r))]);return ia(e,n)}},Wc=class{apply(e,t){if(!t.oneOf||t.oneOf.length===0)return e;const n=t.oneOf.map(r=>Ae(r));return e.refine(r=>{let i=0;for(const s of n)if(s.safeParse(r).success&&(i++,i>1))return!1;return i===1},{message:"Value must match exactly one of the oneOf schemas"})}},qc=class{apply(e,t){const n=t;if(n.prefixItems&&Array.isArray(n.prefixItems)){const i=n.prefixItems.map(s=>Ae(s));return e.refine(s=>{if(!Array.isArray(s))return!0;for(let o=0;o<Math.min(s.length,i.length);o++)if(!cr(i[o],s[o]))return!1;if(s.length>i.length){if(typeof n.items=="boolean"&&n.items===!1)return!1;if(n.items&&typeof n.items=="object"&&!Array.isArray(n.items)){const o=Ae(n.items);for(let a=i.length;a<s.length;a++)if(!cr(o,s[a]))return!1}}return!0},{message:"Array does not match prefixItems schema"})}return e}},Vc=class{apply(e,t){const n=t;if(!n.properties&&!n.required&&n.additionalProperties!==!1)return e;if(e instanceof nc||e instanceof rc){const r={};if(n.properties)for(const[i,s]of Object.entries(n.properties))s!==void 0&&(r[i]=Ae(s));if(n.required&&Array.isArray(n.required)){const i=new Set(n.required);for(const s of Object.keys(r))i.has(s)||(r[s]=r[s].optional())}else for(const i of Object.keys(r))r[i]=r[i].optional();return n.additionalProperties===!1?_e(r):_e(r).passthrough()}return e.refine(r=>{if(typeof r!="object"||r===null||Array.isArray(r))return!0;if(n.properties){for(const[i,s]of Object.entries(n.properties))if(s!==void 0&&Object.getOwnPropertyDescriptor(r,i)!==void 0&&!Ae(s).safeParse(r[i]).success)return!1}if(n.required&&Array.isArray(n.required)){for(const i of n.required)if(!(Object.getOwnPropertyDescriptor(r,i)!==void 0))return!1}if(n.additionalProperties===!1&&n.properties){const i=new Set(Object.keys(n.properties));for(const s in r)if(!i.has(s))return!1}return!0},{message:"Object constraints validation failed"})}},Hc=class{apply(e,t){if(!t.enum||t.enum.length===0)return e;const n=t.enum.filter(r=>Array.isArray(r)||typeof r=="object"&&r!==null);return n.length===0?e:e.refine(r=>typeof r!="object"||r===null?!0:n.some(i=>Tn(r,i)),{message:"Value must match one of the enum values"})}},Kc=class{apply(e,t){if(t.const===void 0)return e;const n=t.const;return typeof n!="object"||n===null?e:e.refine(r=>Tn(r,n),{message:"Value must equal the const value"})}},Gc=class{apply(e,t){return t.description&&(e=e.describe(t.description)),e}},zc=class{apply(e,t){var n;const r=t;return!((n=r.required)!=null&&n.includes("__proto__"))||t.type!==void 0?e:Fe().refine(i=>this.validateRequired(i,r.required),{message:"Missing required properties"})}validateRequired(e,t){return typeof e!="object"||e===null||Array.isArray(e)?!0:t.every(n=>Object.prototype.hasOwnProperty.call(e,n))}},Yc=class{apply(e,t){var n;const r=t;if(r.contains===void 0)return e;const i=Ae(r.contains),s=(n=r.minContains)!=null?n:1,o=r.maxContains;return e.refine(a=>{if(!Array.isArray(a))return!0;let l=0;for(const c of a)cr(i,c)&&l++;return!(l<s||o!==void 0&&l>o)},{message:"Array must contain required items matching the schema"})}},Jc=class{apply(e,t){const{default:n}=t;return n===void 0||!e.safeParse(n).success?e:e.default(n)}},Zc=[new yc,new gc,new mc,new bc,new Sc,new Cc,new Dc,new vc,new Oc,new wc,new xc,new Ec,new Ac,new _c,new Ic,new jc,new Tc,new Pc,new Fc,new Nc,new Rc,new $c],Xc=[new zc,new Hc,new Kc,new Lc,new Bc,new Wc,new qc,new Vc,new Yc,new Uc,new kc,new Jc,new Gc];function Ae(e){if(typeof e=="boolean")return e?Fe():Os();const t={};for(const i of Zc)i.apply(t,e);const n=[];if(t.string!==!1&&n.push(t.string||oe()),t.number!==!1&&n.push(t.number||ge()),t.boolean!==!1&&n.push(t.boolean||ti()),t.null!==!1&&n.push(t.null||_i()),t.array!==!1&&n.push(t.array||Ie(Fe())),t.tuple!==!1&&t.tuple!==void 0&&n.push(t.tuple),t.object!==!1)if(t.object)n.push(t.object);else{const i=tc(s=>typeof s=="object"&&s!==null&&!Array.isArray(s),"Must be an object, not an array");n.push(i)}t.file!==!1&&t.file!==void 0&&n.push(t.file);let r;n.length===0?r=Os():n.length===1?r=n[0]:Object.keys(e).some(s=>s!=="$schema"&&s!=="title"&&s!=="description")?r=mt(n):r=Fe();for(const i of Xc)r=i.apply(r,e);return r}class As extends Event{constructor(t,n){var r,i;super(t),this.code=(r=n?.code)!=null?r:void 0,this.message=(i=n?.message)!=null?i:void 0}[Symbol.for("nodejs.util.inspect.custom")](t,n,r){return r(_s(this),n)}[Symbol.for("Deno.customInspect")](t,n){return t(_s(this),n)}}function Qc(e){const t=globalThis.DOMException;return typeof t=="function"?new t(e,"SyntaxError"):new SyntaxError(e)}function ni(e){return e instanceof Error?"errors"in e&&Array.isArray(e.errors)?e.errors.map(ni).join(", "):"cause"in e&&e.cause instanceof Error?`${e}: ${ni(e.cause)}`:e.message:`${e}`}function _s(e){return{type:e.type,message:e.message,code:e.code,defaultPrevented:e.defaultPrevented,cancelable:e.cancelable,timeStamp:e.timeStamp}}var aa=e=>{throw TypeError(e)},Fi=(e,t,n)=>t.has(e)||aa("Cannot "+n),G=(e,t,n)=>(Fi(e,t,"read from private field"),n?n.call(e):t.get(e)),Se=(e,t,n)=>t.has(e)?aa("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),he=(e,t,n,r)=>(Fi(e,t,"write to private field"),t.set(e,n),n),Qe=(e,t,n)=>(Fi(e,t,"access private method"),n),Ce,Et,kt,Qn,ur,wn,qt,xn,ct,Lt,Gt,Bt,mn,Re,ri,ii,si,Is,oi,ai,yn,li,ci;class er extends EventTarget{constructor(t,n){var r,i;super(),Se(this,Re),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,Se(this,Ce),Se(this,Et),Se(this,kt),Se(this,Qn),Se(this,ur),Se(this,wn),Se(this,qt),Se(this,xn,null),Se(this,ct),Se(this,Lt),Se(this,Gt,null),Se(this,Bt,null),Se(this,mn,null),Se(this,ii,async s=>{var o;G(this,Lt).reset();const{body:a,redirected:l,status:c,headers:u}=s;if(c===204){Qe(this,Re,yn).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(l?he(this,kt,new URL(s.url)):he(this,kt,void 0),c!==200){Qe(this,Re,yn).call(this,`Non-200 status code (${c})`,c);return}if(!(u.get("content-type")||"").startsWith("text/event-stream")){Qe(this,Re,yn).call(this,'Invalid content type, expected "text/event-stream"',c);return}if(G(this,Ce)===this.CLOSED)return;he(this,Ce,this.OPEN);const f=new Event("open");if((o=G(this,mn))==null||o.call(this,f),this.dispatchEvent(f),typeof a!="object"||!a||!("getReader"in a)){Qe(this,Re,yn).call(this,"Invalid response body, expected a web ReadableStream",c),this.close();return}const h=new TextDecoder,m=a.getReader();let d=!0;do{const{done:p,value:y}=await m.read();y&&G(this,Lt).feed(h.decode(y,{stream:!p})),p&&(d=!1,G(this,Lt).reset(),Qe(this,Re,li).call(this))}while(d)}),Se(this,si,s=>{he(this,ct,void 0),!(s.name==="AbortError"||s.type==="aborted")&&Qe(this,Re,li).call(this,ni(s))}),Se(this,oi,s=>{typeof s.id=="string"&&he(this,xn,s.id);const o=new MessageEvent(s.event||"message",{data:s.data,origin:G(this,kt)?G(this,kt).origin:G(this,Et).origin,lastEventId:s.id||""});G(this,Bt)&&(!s.event||s.event==="message")&&G(this,Bt).call(this,o),this.dispatchEvent(o)}),Se(this,ai,s=>{he(this,wn,s)}),Se(this,ci,()=>{he(this,qt,void 0),G(this,Ce)===this.CONNECTING&&Qe(this,Re,ri).call(this)});try{if(t instanceof URL)he(this,Et,t);else if(typeof t=="string")he(this,Et,new URL(t,eu()));else throw new Error("Invalid URL")}catch{throw Qc("An invalid or illegal string was specified")}he(this,Lt,cc({onEvent:G(this,oi),onRetry:G(this,ai)})),he(this,Ce,this.CONNECTING),he(this,wn,3e3),he(this,ur,(r=n?.fetch)!=null?r:globalThis.fetch),he(this,Qn,(i=n?.withCredentials)!=null?i:!1),Qe(this,Re,ri).call(this)}get readyState(){return G(this,Ce)}get url(){return G(this,Et).href}get withCredentials(){return G(this,Qn)}get onerror(){return G(this,Gt)}set onerror(t){he(this,Gt,t)}get onmessage(){return G(this,Bt)}set onmessage(t){he(this,Bt,t)}get onopen(){return G(this,mn)}set onopen(t){he(this,mn,t)}addEventListener(t,n,r){const i=n;super.addEventListener(t,i,r)}removeEventListener(t,n,r){const i=n;super.removeEventListener(t,i,r)}close(){G(this,qt)&&clearTimeout(G(this,qt)),G(this,Ce)!==this.CLOSED&&(G(this,ct)&&G(this,ct).abort(),he(this,Ce,this.CLOSED),he(this,ct,void 0))}}Ce=new WeakMap,Et=new WeakMap,kt=new WeakMap,Qn=new WeakMap,ur=new WeakMap,wn=new WeakMap,qt=new WeakMap,xn=new WeakMap,ct=new WeakMap,Lt=new WeakMap,Gt=new WeakMap,Bt=new WeakMap,mn=new WeakMap,Re=new WeakSet,ri=function(){he(this,Ce,this.CONNECTING),he(this,ct,new AbortController),G(this,ur)(G(this,Et),Qe(this,Re,Is).call(this)).then(G(this,ii)).catch(G(this,si))},ii=new WeakMap,si=new WeakMap,Is=function(){var e;const t={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...G(this,xn)?{"Last-Event-ID":G(this,xn)}:void 0},cache:"no-store",signal:(e=G(this,ct))==null?void 0:e.signal};return"window"in globalThis&&(t.credentials=this.withCredentials?"include":"same-origin"),t},oi=new WeakMap,ai=new WeakMap,yn=function(e,t){var n;G(this,Ce)!==this.CLOSED&&he(this,Ce,this.CLOSED);const r=new As("error",{code:t,message:e});(n=G(this,Gt))==null||n.call(this,r),this.dispatchEvent(r)},li=function(e,t){var n;if(G(this,Ce)===this.CLOSED)return;he(this,Ce,this.CONNECTING);const r=new As("error",{code:t,message:e});(n=G(this,Gt))==null||n.call(this,r),this.dispatchEvent(r),he(this,qt,setTimeout(G(this,ci),G(this,wn)))},ci=new WeakMap,er.CONNECTING=0,er.OPEN=1,er.CLOSED=2;function eu(){const e="document"in globalThis?globalThis.document:void 0;return e&&typeof e=="object"&&"baseURI"in e&&typeof e.baseURI=="string"?e.baseURI:void 0}class tu extends Error{constructor(t,n,r){super(`SSE error: ${n}`),this.code=t,this.event=r}}class nu{constructor(t,n){this._url=t,this._resourceMetadataUrl=void 0,this._scope=void 0,this._eventSourceInit=n?.eventSourceInit,this._requestInit=n?.requestInit,this._authProvider=n?.authProvider,this._fetch=n?.fetch,this._fetchWithInit=uc(n?.fetch,n?.requestInit)}async _authThenStart(){if(!this._authProvider)throw new fn("No auth provider");let t;try{t=await Tr(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(n){throw this.onerror?.(n),n}if(t!=="AUTHORIZED")throw new fn;return await this._startOrAuth()}async _commonHeaders(){const t={};if(this._authProvider){const r=await this._authProvider.tokens();r&&(t.Authorization=`Bearer ${r.access_token}`)}this._protocolVersion&&(t["mcp-protocol-version"]=this._protocolVersion);const n=fc(this._requestInit?.headers);return new Headers({...t,...n})}_startOrAuth(){const t=this?._eventSourceInit?.fetch??this._fetch??fetch;return new Promise((n,r)=>{this._eventSource=new er(this._url.href,{...this._eventSourceInit,fetch:async(i,s)=>{const o=await this._commonHeaders();o.set("Accept","text/event-stream");const a=await t(i,{...s,headers:o});if(a.status===401&&a.headers.has("www-authenticate")){const{resourceMetadataUrl:l,scope:c}=xs(a);this._resourceMetadataUrl=l,this._scope=c}return a}}),this._abortController=new AbortController,this._eventSource.onerror=i=>{if(i.code===401&&this._authProvider){this._authThenStart().then(n,r);return}const s=new tu(i.code,i.message,i);r(s),this.onerror?.(s)},this._eventSource.onopen=()=>{},this._eventSource.addEventListener("endpoint",i=>{const s=i;try{if(this._endpoint=new URL(s.data,this._url),this._endpoint.origin!==this._url.origin)throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`)}catch(o){r(o),this.onerror?.(o),this.close();return}n()}),this._eventSource.onmessage=i=>{const s=i;let o;try{o=sa.parse(JSON.parse(s.data))}catch(a){this.onerror?.(a);return}this.onmessage?.(o)}})}async start(){if(this._eventSource)throw new Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.");return await this._startOrAuth()}async finishAuth(t){if(!this._authProvider)throw new fn("No auth provider");if(await Tr(this._authProvider,{serverUrl:this._url,authorizationCode:t,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new fn("Failed to authorize")}async close(){this._abortController?.abort(),this._eventSource?.close(),this.onclose?.()}async send(t){if(!this._endpoint)throw new Error("Not connected");try{const n=await this._commonHeaders();n.set("content-type","application/json");const r={...this._requestInit,method:"POST",headers:n,body:JSON.stringify(t),signal:this._abortController?.signal},i=await(this._fetch??fetch)(this._endpoint,r);if(!i.ok){const s=await i.text().catch(()=>null);if(i.status===401&&this._authProvider){const{resourceMetadataUrl:o,scope:a}=xs(i);if(this._resourceMetadataUrl=o,this._scope=a,await Tr(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new fn;return this.send(t)}throw new Error(`Error POSTing to endpoint (HTTP ${i.status}): ${s}`)}await i.body?.cancel()}catch(n){throw this.onerror?.(n),n}}setProtocolVersion(t){this._protocolVersion=t}}const ru="mcp";class iu{constructor(t){this._url=t}start(){if(this._socket)throw new Error("WebSocketClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((t,n)=>{this._socket=new WebSocket(this._url,ru),this._socket.onerror=r=>{const i="error"in r?r.error:new Error(`WebSocket error: ${JSON.stringify(r)}`);n(i),this.onerror?.(i)},this._socket.onopen=()=>{t()},this._socket.onclose=()=>{this.onclose?.()},this._socket.onmessage=r=>{let i;try{i=sa.parse(JSON.parse(r.data))}catch(s){this.onerror?.(s);return}this.onmessage?.(i)}})}async close(){this._socket?.close()}send(t){return new Promise((n,r)=>{if(!this._socket){r(new Error("Not connected"));return}this._socket?.send(JSON.stringify(t)),n()})}}class su extends dc{constructor(t,n){super(t,n)}send(t,n){const r=ou(t);return r?.type==="emit"?(this.onmessage?.(r.message),Promise.resolve()):r?.type==="suppress"?Promise.resolve():super.send(t,n)}}function ou(e){const t=e;if(!t||typeof t!="object"||!("method"in t))return null;switch(t.method){case"initialize":{const n=t?.params?.protocolVersion;return n?{type:"emit",message:{result:{protocolVersion:n,capabilities:{tools:{}},serverInfo:{name:"deco-chat-server",version:"1.0.0"}},jsonrpc:t.jsonrpc??"2.0",id:t.id}}:null}case"notifications/roots/list_changed":case"notifications/initialized":case"notifications/cancelled":case"notifications/progress":return{type:"suppress"};default:return null}}class au extends hc{constructor(t,n){super(t,n)}async listTools(t,n){return await this.request({method:"tools/list",params:t},sc,n)}}const lu=async(e,t,n)=>{const r=cu(e.connection,t,n);if(!r)throw new Error("Unknown MCP connection type");const i=new au({name:e?.name??"MCP Client",version:"1.0.0"});return await i.connect(r),{client:i}},cu=(e,t,n)=>{if(e.type==="Websocket")return new iu(new URL(e.url));if(e.type!=="SSE"&&e.type!=="HTTP")return null;const i={...e.token?{authorization:`Bearer ${e.token}`}:{},...n??{},..."headers"in e?e.headers||{}:{}};if(e.type==="SSE"){const s={requestInit:{headers:i,signal:t}};return e.token&&(s.eventSourceInit={fetch:(o,a)=>fetch(o,{...a,headers:{...i,Accept:"text/event-stream"},signal:t})}),new nu(new URL(e.url),s)}return new su(new URL(e.url),{requestInit:{headers:i,signal:t,credentials:"include"}})},Cs=e=>{try{return JSON.parse(e)}catch{return e}},zn=new Map,Ts=(e,t)=>({...e,id:e.name,inputSchema:e.inputSchema?Ae(e.inputSchema):void 0,outputSchema:e.outputSchema?Ae(e.outputSchema):void 0,execute:n=>t(n.context,e.name)});function uu(e){const t=n=>"connection"in e?lu({connection:e.connection},void 0,n):e.client;return new Proxy({},{get(n,r){if(r==="toJSON")return null;if(typeof r!="string")throw new Error("Name must be a string");if(r==="listTools")return a;async function i(l,c=r){const u=e?.debugId?.(),f=u?{"x-trace-debug-id":u}:void 0,{client:h}=await t(f),{structuredContent:m,isError:d,content:p}=await h.callTool({name:String(c),arguments:l});if(d){const S=p?.[0]?.text,O=typeof S=="string"?Cs(S):null,E=O?.code&&typeof e?.getErrorByStatusCode=="function"?e.getErrorByStatusCode(O.code,O.message,O.traceId):null;throw E||new Error(`Tool ${String(c)} returned an error: ${JSON.stringify(m??p)}`)}if(m!==void 0)return m;const y=p?.[0]?.text;return typeof y=="string"?Cs(y):void 0}async function s(){const{client:l}=await t(),{tools:c}=await l.listTools();return c}async function o(){if(!("connection"in e))return s();const l=e.connection,c=JSON.stringify(l);try{return zn.has(c)||zn.set(c,s()),await zn.get(c)}catch(u){console.error("Failed to list tools",u),zn.delete(c);return}}async function a(){return(await o()??[]).map(c=>Ts(c,i))}return i.asTool=async()=>{const c=(await o()??[]).find(u=>u.name===r);if(!c)throw new Error(`Tool ${r} not found`);return Ts(c,i)},i}})}new Proxy({},{get(e,t){return t==="toJSON"?null:t==="forConnection"?n=>fu({connection:n}):global[t]}});function fu(e){return uu(e)}const du=_e({toolName:oe().describe("Name of the tool to invoke on that connection"),transformCode:oe().optional().describe("Pure TypeScript function for data transformation of the tool call result. Must be a TypeScript file that declares the Output interface and exports a default function: `interface Output { ... } export default async function(stepInput): Output { ... }`\n The stepInput will match with the tool call outputSchema. If transformCode is not provided, the tool call result will be used as the step output.\n Providing an transformCode is recommended because it both allows you to transform the data and validate it against a JSON Schema - tools are ephemeral and may return unexpected data.")}),hu=_e({code:oe().describe(`Pure TypeScript function for data transformation. Useful to merge data from multiple steps and transform it. Must be a TypeScript file that declares the Output interface and exports a default function: \`interface Output { ... } export default async function(stepInput): Output { ... }\`
|
|
1
|
+
import{co as Fe,bm as Os,J as oe,I as ge,aZ as ti,bR as _i,aJ as Ie,bk as mt,a_ as qe,ap as mr,cp as rn,H as _e,cq as Ii,cr as ws,cs as ec,bP as tc,ct as ia,cu as nc,cv as rc,cw as ic,cx as fn,cy as Tr,cz as xs,bK as sa,bC as sc,aI as ze,bQ as oc,aH as On,ba as Ci,cA as ac,r as N,j as w,cB as oa,cC as lc}from"./index-CB-9CUUW.js";import{f as cc,h as uc,n as fc,j as dc,C as hc,A as pc}from"./constants-Byqq7P-x.js";import{B as Ti,c as Pi}from"./collections-BrXh640u.js";import{R as Es}from"./index-Bb5AeDnq.js";var mc=class{apply(e,t){if(!t.type)return;const n=Array.isArray(t.type)?t.type:[t.type],r=new Set(n);if(r.has("string")||(e.string=!1),!r.has("number")&&!r.has("integer")&&(e.number=!1),r.has("boolean")||(e.boolean=!1),r.has("null")||(e.null=!1),r.has("array")||(e.array=!1),r.has("object")||(e.object=!1),r.has("integer")&&e.number!==!1){const i=e.number||ge();i instanceof rn&&(e.number=i.int())}}},yc=class{apply(e,t){if(t.const===void 0)return;const n=t.const;e.string=!1,e.number=!1,e.boolean=!1,e.null=!1,e.array=!1,e.object=!1,typeof n=="string"?e.string=qe(n):typeof n=="number"?e.number=qe(n):typeof n=="boolean"?e.boolean=qe(n):n===null?e.null=_i():Array.isArray(n)?e.array=void 0:typeof n=="object"&&(e.object=void 0)}},gc=class{apply(e,t){if(!t.enum)return;if(t.enum.length===0){t.type||(e.string=!1,e.number=!1,e.boolean=!1,e.null=!1,e.array=!1,e.object=!1);return}const n={string:t.enum.filter(r=>typeof r=="string"),number:t.enum.filter(r=>typeof r=="number"),boolean:t.enum.filter(r=>typeof r=="boolean"),null:t.enum.filter(r=>r===null),array:t.enum.filter(r=>Array.isArray(r)),object:t.enum.filter(r=>typeof r=="object"&&r!==null&&!Array.isArray(r))};e.string=this.createTypeSchema(n.string,"string"),e.number=this.createTypeSchema(n.number,"number"),e.boolean=this.createTypeSchema(n.boolean,"boolean"),e.null=n.null.length>0?_i():!1,e.array=n.array.length>0?void 0:!1,e.object=n.object.length>0?void 0:!1}createTypeSchema(e,t){if(e.length===0)return!1;if(e.length===1)return qe(e[0]);if(t==="string")return mr(e);if(t==="number"){const[n,r,...i]=e;return mt([qe(n),qe(r),...i.map(s=>qe(s))])}return t==="boolean"?mt([qe(!0),qe(!1)]):!1}},bc=class{apply(e,t){const n=t;if(n.type==="string"&&n.format==="binary"&&n.contentEncoding==="binary"){let r=ic();n.minLength!==void 0&&(r=r.min(n.minLength)),n.maxLength!==void 0&&(r=r.max(n.maxLength)),n.contentMediaType!==void 0&&(r=r.mime(n.contentMediaType)),e.file=r,e.string=!1}}},Sc=class{apply(e,t){const n=t;t.type===void 0&&(n.minLength!==void 0||n.maxLength!==void 0||n.pattern!==void 0)&&e.string===void 0&&(e.string=oe())}},vc=class{apply(e,t){const n=t;if(n.minLength!==void 0&&e.string!==!1){const r=e.string||oe();r instanceof Ii&&(e.string=r.refine(i=>Array.from(i).length>=n.minLength,{message:`String must be at least ${n.minLength} characters long`}))}}},Oc=class{apply(e,t){const n=t;if(n.maxLength!==void 0&&e.string!==!1){const r=e.string||oe();r instanceof Ii&&(e.string=r.refine(i=>Array.from(i).length<=n.maxLength,{message:`String must be at most ${n.maxLength} characters long`}))}}},wc=class{apply(e,t){const n=t;if(n.pattern&&e.string!==!1){const r=e.string||oe();if(r instanceof Ii){const i=new RegExp(n.pattern);e.string=r.regex(i)}}}},xc=class{apply(e,t){const n=t;if(n.minimum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(e.number=r.min(n.minimum))}}},Ec=class{apply(e,t){const n=t;if(n.maximum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(e.number=r.max(n.maximum))}}},Ac=class{apply(e,t){const n=t;if(n.exclusiveMinimum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(typeof n.exclusiveMinimum=="number"?e.number=r.gt(n.exclusiveMinimum):e.number=!1)}}},_c=class{apply(e,t){const n=t;if(n.exclusiveMaximum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(typeof n.exclusiveMaximum=="number"?e.number=r.lt(n.exclusiveMaximum):e.number=!1)}}},Ic=class{apply(e,t){const n=t;if(n.multipleOf!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(e.number=r.refine(i=>{if(n.multipleOf===0)return!1;const s=i/n.multipleOf,o=Math.round(s),a=Math.min(Math.abs(i)*Number.EPSILON*10,Math.abs(n.multipleOf)*Number.EPSILON*10);return Math.abs(s-o)<=a/Math.abs(n.multipleOf)},{message:`Must be a multiple of ${n.multipleOf}`}))}}},Cc=class{apply(e,t){const n=t;t.type===void 0&&(n.minItems!==void 0||n.maxItems!==void 0||n.items!==void 0||n.prefixItems!==void 0)&&e.array===void 0&&(e.array=Ie(Fe()))}},Tc=class{apply(e,t){const n=t;n.minItems!==void 0&&e.array!==!1&&(e.array=(e.array||Ie(Fe())).min(n.minItems))}},Pc=class{apply(e,t){const n=t;n.maxItems!==void 0&&e.array!==!1&&(e.array=(e.array||Ie(Fe())).max(n.maxItems))}},Fc=class{apply(e,t){const n=t;if(e.array!==!1)if(Array.isArray(n.items))e.array=e.array||Ie(Fe());else if(n.items&&typeof n.items!="boolean"&&!n.prefixItems){const r=Ae(n.items);let i=Ie(r);if(e.array&&e.array instanceof ec){const s=e.array._def;s.checks&&s.checks.forEach(o=>{if(o._zod&&o._zod.def){const a=o._zod.def;a.check==="min_length"&&a.minimum!==void 0?i=i.min(a.minimum):a.check==="max_length"&&a.maximum!==void 0&&(i=i.max(a.maximum))}})}e.array=i}else typeof n.items=="boolean"&&n.items===!1?n.prefixItems?e.array=e.array||Ie(Fe()):e.array=Ie(Fe()).max(0):typeof n.items=="boolean"&&n.items===!0?e.array=e.array||Ie(Fe()):n.prefixItems&&(e.array=e.array||Ie(Fe()))}},jc=class{apply(e,t){if(t.type!=="array")return;const n=t;if(!Array.isArray(n.items)||e.array===!1)return;const r=n.items.map(s=>Ae(s));let i;r.length===0?i=ws([]):i=ws(r),n.minItems!==void 0&&n.minItems>r.length&&(i=!1),n.maxItems!==void 0&&n.maxItems<r.length&&(i=!1),e.tuple=i,e.array=!1}},$c=class{apply(e,t){const n=t;e.object!==!1&&(n.properties||n.required||n.additionalProperties!==void 0)&&(e.object=e.object||_e({}).passthrough())}},Dc=class{apply(e,t){const n=t;t.type===void 0&&(n.maxProperties!==void 0||n.minProperties!==void 0)&&e.object===void 0&&(e.object=_e({}).passthrough())}},Nc=class{apply(e,t){const n=t;if(n.maxProperties!==void 0&&e.object!==!1){const r=e.object||_e({}).passthrough();e.object=r.refine(i=>Object.keys(i).length<=n.maxProperties,{message:`Object must have at most ${n.maxProperties} properties`})}}},Rc=class{apply(e,t){const n=t;if(n.minProperties!==void 0&&e.object!==!1){const r=e.object||_e({}).passthrough();e.object=r.refine(i=>Object.keys(i).length>=n.minProperties,{message:`Object must have at least ${n.minProperties} properties`})}}};function Tn(e,t){if(e===t)return!0;if(e==null||t==null)return e===t;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t))return e.length!==t.length?!1:e.every((n,r)=>Tn(n,t[r]));if(typeof e=="object"&&typeof t=="object"){const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length?!1:n.every(i=>r.includes(i)&&Tn(e[i],t[i]))}return!1}function Mc(){return e=>{if(!Array.isArray(e))return!0;const t=[];return e.every(n=>t.some(i=>Tn(n,i))?!1:(t.push(n),!0))}}function cr(e,t){return e.safeParse(t).success}var Uc=class{apply(e,t){if(!t.not)return e;const n=Ae(t.not);return e.refine(r=>!cr(n,r),{message:"Value must not match the 'not' schema"})}},kc=class{apply(e,t){return t.uniqueItems!==!0?e:e.refine(Mc(),{message:"Array items must be unique"})}},Lc=class{apply(e,t){return!t.allOf||t.allOf.length===0?e:t.allOf.map(r=>Ae(r)).reduce((r,i)=>ia(r,i),e)}},Bc=class{apply(e,t){if(!t.anyOf||t.anyOf.length===0)return e;const n=t.anyOf.length===1?Ae(t.anyOf[0]):mt([Ae(t.anyOf[0]),Ae(t.anyOf[1]),...t.anyOf.slice(2).map(r=>Ae(r))]);return ia(e,n)}},Wc=class{apply(e,t){if(!t.oneOf||t.oneOf.length===0)return e;const n=t.oneOf.map(r=>Ae(r));return e.refine(r=>{let i=0;for(const s of n)if(s.safeParse(r).success&&(i++,i>1))return!1;return i===1},{message:"Value must match exactly one of the oneOf schemas"})}},qc=class{apply(e,t){const n=t;if(n.prefixItems&&Array.isArray(n.prefixItems)){const i=n.prefixItems.map(s=>Ae(s));return e.refine(s=>{if(!Array.isArray(s))return!0;for(let o=0;o<Math.min(s.length,i.length);o++)if(!cr(i[o],s[o]))return!1;if(s.length>i.length){if(typeof n.items=="boolean"&&n.items===!1)return!1;if(n.items&&typeof n.items=="object"&&!Array.isArray(n.items)){const o=Ae(n.items);for(let a=i.length;a<s.length;a++)if(!cr(o,s[a]))return!1}}return!0},{message:"Array does not match prefixItems schema"})}return e}},Vc=class{apply(e,t){const n=t;if(!n.properties&&!n.required&&n.additionalProperties!==!1)return e;if(e instanceof nc||e instanceof rc){const r={};if(n.properties)for(const[i,s]of Object.entries(n.properties))s!==void 0&&(r[i]=Ae(s));if(n.required&&Array.isArray(n.required)){const i=new Set(n.required);for(const s of Object.keys(r))i.has(s)||(r[s]=r[s].optional())}else for(const i of Object.keys(r))r[i]=r[i].optional();return n.additionalProperties===!1?_e(r):_e(r).passthrough()}return e.refine(r=>{if(typeof r!="object"||r===null||Array.isArray(r))return!0;if(n.properties){for(const[i,s]of Object.entries(n.properties))if(s!==void 0&&Object.getOwnPropertyDescriptor(r,i)!==void 0&&!Ae(s).safeParse(r[i]).success)return!1}if(n.required&&Array.isArray(n.required)){for(const i of n.required)if(!(Object.getOwnPropertyDescriptor(r,i)!==void 0))return!1}if(n.additionalProperties===!1&&n.properties){const i=new Set(Object.keys(n.properties));for(const s in r)if(!i.has(s))return!1}return!0},{message:"Object constraints validation failed"})}},Hc=class{apply(e,t){if(!t.enum||t.enum.length===0)return e;const n=t.enum.filter(r=>Array.isArray(r)||typeof r=="object"&&r!==null);return n.length===0?e:e.refine(r=>typeof r!="object"||r===null?!0:n.some(i=>Tn(r,i)),{message:"Value must match one of the enum values"})}},Kc=class{apply(e,t){if(t.const===void 0)return e;const n=t.const;return typeof n!="object"||n===null?e:e.refine(r=>Tn(r,n),{message:"Value must equal the const value"})}},Gc=class{apply(e,t){return t.description&&(e=e.describe(t.description)),e}},zc=class{apply(e,t){var n;const r=t;return!((n=r.required)!=null&&n.includes("__proto__"))||t.type!==void 0?e:Fe().refine(i=>this.validateRequired(i,r.required),{message:"Missing required properties"})}validateRequired(e,t){return typeof e!="object"||e===null||Array.isArray(e)?!0:t.every(n=>Object.prototype.hasOwnProperty.call(e,n))}},Yc=class{apply(e,t){var n;const r=t;if(r.contains===void 0)return e;const i=Ae(r.contains),s=(n=r.minContains)!=null?n:1,o=r.maxContains;return e.refine(a=>{if(!Array.isArray(a))return!0;let l=0;for(const c of a)cr(i,c)&&l++;return!(l<s||o!==void 0&&l>o)},{message:"Array must contain required items matching the schema"})}},Jc=class{apply(e,t){const{default:n}=t;return n===void 0||!e.safeParse(n).success?e:e.default(n)}},Zc=[new yc,new gc,new mc,new bc,new Sc,new Cc,new Dc,new vc,new Oc,new wc,new xc,new Ec,new Ac,new _c,new Ic,new jc,new Tc,new Pc,new Fc,new Nc,new Rc,new $c],Xc=[new zc,new Hc,new Kc,new Lc,new Bc,new Wc,new qc,new Vc,new Yc,new Uc,new kc,new Jc,new Gc];function Ae(e){if(typeof e=="boolean")return e?Fe():Os();const t={};for(const i of Zc)i.apply(t,e);const n=[];if(t.string!==!1&&n.push(t.string||oe()),t.number!==!1&&n.push(t.number||ge()),t.boolean!==!1&&n.push(t.boolean||ti()),t.null!==!1&&n.push(t.null||_i()),t.array!==!1&&n.push(t.array||Ie(Fe())),t.tuple!==!1&&t.tuple!==void 0&&n.push(t.tuple),t.object!==!1)if(t.object)n.push(t.object);else{const i=tc(s=>typeof s=="object"&&s!==null&&!Array.isArray(s),"Must be an object, not an array");n.push(i)}t.file!==!1&&t.file!==void 0&&n.push(t.file);let r;n.length===0?r=Os():n.length===1?r=n[0]:Object.keys(e).some(s=>s!=="$schema"&&s!=="title"&&s!=="description")?r=mt(n):r=Fe();for(const i of Xc)r=i.apply(r,e);return r}class As extends Event{constructor(t,n){var r,i;super(t),this.code=(r=n?.code)!=null?r:void 0,this.message=(i=n?.message)!=null?i:void 0}[Symbol.for("nodejs.util.inspect.custom")](t,n,r){return r(_s(this),n)}[Symbol.for("Deno.customInspect")](t,n){return t(_s(this),n)}}function Qc(e){const t=globalThis.DOMException;return typeof t=="function"?new t(e,"SyntaxError"):new SyntaxError(e)}function ni(e){return e instanceof Error?"errors"in e&&Array.isArray(e.errors)?e.errors.map(ni).join(", "):"cause"in e&&e.cause instanceof Error?`${e}: ${ni(e.cause)}`:e.message:`${e}`}function _s(e){return{type:e.type,message:e.message,code:e.code,defaultPrevented:e.defaultPrevented,cancelable:e.cancelable,timeStamp:e.timeStamp}}var aa=e=>{throw TypeError(e)},Fi=(e,t,n)=>t.has(e)||aa("Cannot "+n),G=(e,t,n)=>(Fi(e,t,"read from private field"),n?n.call(e):t.get(e)),Se=(e,t,n)=>t.has(e)?aa("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),he=(e,t,n,r)=>(Fi(e,t,"write to private field"),t.set(e,n),n),Qe=(e,t,n)=>(Fi(e,t,"access private method"),n),Ce,Et,kt,Qn,ur,wn,qt,xn,ct,Lt,Gt,Bt,mn,Re,ri,ii,si,Is,oi,ai,yn,li,ci;class er extends EventTarget{constructor(t,n){var r,i;super(),Se(this,Re),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,Se(this,Ce),Se(this,Et),Se(this,kt),Se(this,Qn),Se(this,ur),Se(this,wn),Se(this,qt),Se(this,xn,null),Se(this,ct),Se(this,Lt),Se(this,Gt,null),Se(this,Bt,null),Se(this,mn,null),Se(this,ii,async s=>{var o;G(this,Lt).reset();const{body:a,redirected:l,status:c,headers:u}=s;if(c===204){Qe(this,Re,yn).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(l?he(this,kt,new URL(s.url)):he(this,kt,void 0),c!==200){Qe(this,Re,yn).call(this,`Non-200 status code (${c})`,c);return}if(!(u.get("content-type")||"").startsWith("text/event-stream")){Qe(this,Re,yn).call(this,'Invalid content type, expected "text/event-stream"',c);return}if(G(this,Ce)===this.CLOSED)return;he(this,Ce,this.OPEN);const f=new Event("open");if((o=G(this,mn))==null||o.call(this,f),this.dispatchEvent(f),typeof a!="object"||!a||!("getReader"in a)){Qe(this,Re,yn).call(this,"Invalid response body, expected a web ReadableStream",c),this.close();return}const h=new TextDecoder,m=a.getReader();let d=!0;do{const{done:p,value:y}=await m.read();y&&G(this,Lt).feed(h.decode(y,{stream:!p})),p&&(d=!1,G(this,Lt).reset(),Qe(this,Re,li).call(this))}while(d)}),Se(this,si,s=>{he(this,ct,void 0),!(s.name==="AbortError"||s.type==="aborted")&&Qe(this,Re,li).call(this,ni(s))}),Se(this,oi,s=>{typeof s.id=="string"&&he(this,xn,s.id);const o=new MessageEvent(s.event||"message",{data:s.data,origin:G(this,kt)?G(this,kt).origin:G(this,Et).origin,lastEventId:s.id||""});G(this,Bt)&&(!s.event||s.event==="message")&&G(this,Bt).call(this,o),this.dispatchEvent(o)}),Se(this,ai,s=>{he(this,wn,s)}),Se(this,ci,()=>{he(this,qt,void 0),G(this,Ce)===this.CONNECTING&&Qe(this,Re,ri).call(this)});try{if(t instanceof URL)he(this,Et,t);else if(typeof t=="string")he(this,Et,new URL(t,eu()));else throw new Error("Invalid URL")}catch{throw Qc("An invalid or illegal string was specified")}he(this,Lt,cc({onEvent:G(this,oi),onRetry:G(this,ai)})),he(this,Ce,this.CONNECTING),he(this,wn,3e3),he(this,ur,(r=n?.fetch)!=null?r:globalThis.fetch),he(this,Qn,(i=n?.withCredentials)!=null?i:!1),Qe(this,Re,ri).call(this)}get readyState(){return G(this,Ce)}get url(){return G(this,Et).href}get withCredentials(){return G(this,Qn)}get onerror(){return G(this,Gt)}set onerror(t){he(this,Gt,t)}get onmessage(){return G(this,Bt)}set onmessage(t){he(this,Bt,t)}get onopen(){return G(this,mn)}set onopen(t){he(this,mn,t)}addEventListener(t,n,r){const i=n;super.addEventListener(t,i,r)}removeEventListener(t,n,r){const i=n;super.removeEventListener(t,i,r)}close(){G(this,qt)&&clearTimeout(G(this,qt)),G(this,Ce)!==this.CLOSED&&(G(this,ct)&&G(this,ct).abort(),he(this,Ce,this.CLOSED),he(this,ct,void 0))}}Ce=new WeakMap,Et=new WeakMap,kt=new WeakMap,Qn=new WeakMap,ur=new WeakMap,wn=new WeakMap,qt=new WeakMap,xn=new WeakMap,ct=new WeakMap,Lt=new WeakMap,Gt=new WeakMap,Bt=new WeakMap,mn=new WeakMap,Re=new WeakSet,ri=function(){he(this,Ce,this.CONNECTING),he(this,ct,new AbortController),G(this,ur)(G(this,Et),Qe(this,Re,Is).call(this)).then(G(this,ii)).catch(G(this,si))},ii=new WeakMap,si=new WeakMap,Is=function(){var e;const t={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...G(this,xn)?{"Last-Event-ID":G(this,xn)}:void 0},cache:"no-store",signal:(e=G(this,ct))==null?void 0:e.signal};return"window"in globalThis&&(t.credentials=this.withCredentials?"include":"same-origin"),t},oi=new WeakMap,ai=new WeakMap,yn=function(e,t){var n;G(this,Ce)!==this.CLOSED&&he(this,Ce,this.CLOSED);const r=new As("error",{code:t,message:e});(n=G(this,Gt))==null||n.call(this,r),this.dispatchEvent(r)},li=function(e,t){var n;if(G(this,Ce)===this.CLOSED)return;he(this,Ce,this.CONNECTING);const r=new As("error",{code:t,message:e});(n=G(this,Gt))==null||n.call(this,r),this.dispatchEvent(r),he(this,qt,setTimeout(G(this,ci),G(this,wn)))},ci=new WeakMap,er.CONNECTING=0,er.OPEN=1,er.CLOSED=2;function eu(){const e="document"in globalThis?globalThis.document:void 0;return e&&typeof e=="object"&&"baseURI"in e&&typeof e.baseURI=="string"?e.baseURI:void 0}class tu extends Error{constructor(t,n,r){super(`SSE error: ${n}`),this.code=t,this.event=r}}class nu{constructor(t,n){this._url=t,this._resourceMetadataUrl=void 0,this._scope=void 0,this._eventSourceInit=n?.eventSourceInit,this._requestInit=n?.requestInit,this._authProvider=n?.authProvider,this._fetch=n?.fetch,this._fetchWithInit=uc(n?.fetch,n?.requestInit)}async _authThenStart(){if(!this._authProvider)throw new fn("No auth provider");let t;try{t=await Tr(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(n){throw this.onerror?.(n),n}if(t!=="AUTHORIZED")throw new fn;return await this._startOrAuth()}async _commonHeaders(){const t={};if(this._authProvider){const r=await this._authProvider.tokens();r&&(t.Authorization=`Bearer ${r.access_token}`)}this._protocolVersion&&(t["mcp-protocol-version"]=this._protocolVersion);const n=fc(this._requestInit?.headers);return new Headers({...t,...n})}_startOrAuth(){const t=this?._eventSourceInit?.fetch??this._fetch??fetch;return new Promise((n,r)=>{this._eventSource=new er(this._url.href,{...this._eventSourceInit,fetch:async(i,s)=>{const o=await this._commonHeaders();o.set("Accept","text/event-stream");const a=await t(i,{...s,headers:o});if(a.status===401&&a.headers.has("www-authenticate")){const{resourceMetadataUrl:l,scope:c}=xs(a);this._resourceMetadataUrl=l,this._scope=c}return a}}),this._abortController=new AbortController,this._eventSource.onerror=i=>{if(i.code===401&&this._authProvider){this._authThenStart().then(n,r);return}const s=new tu(i.code,i.message,i);r(s),this.onerror?.(s)},this._eventSource.onopen=()=>{},this._eventSource.addEventListener("endpoint",i=>{const s=i;try{if(this._endpoint=new URL(s.data,this._url),this._endpoint.origin!==this._url.origin)throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`)}catch(o){r(o),this.onerror?.(o),this.close();return}n()}),this._eventSource.onmessage=i=>{const s=i;let o;try{o=sa.parse(JSON.parse(s.data))}catch(a){this.onerror?.(a);return}this.onmessage?.(o)}})}async start(){if(this._eventSource)throw new Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.");return await this._startOrAuth()}async finishAuth(t){if(!this._authProvider)throw new fn("No auth provider");if(await Tr(this._authProvider,{serverUrl:this._url,authorizationCode:t,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new fn("Failed to authorize")}async close(){this._abortController?.abort(),this._eventSource?.close(),this.onclose?.()}async send(t){if(!this._endpoint)throw new Error("Not connected");try{const n=await this._commonHeaders();n.set("content-type","application/json");const r={...this._requestInit,method:"POST",headers:n,body:JSON.stringify(t),signal:this._abortController?.signal},i=await(this._fetch??fetch)(this._endpoint,r);if(!i.ok){const s=await i.text().catch(()=>null);if(i.status===401&&this._authProvider){const{resourceMetadataUrl:o,scope:a}=xs(i);if(this._resourceMetadataUrl=o,this._scope=a,await Tr(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new fn;return this.send(t)}throw new Error(`Error POSTing to endpoint (HTTP ${i.status}): ${s}`)}await i.body?.cancel()}catch(n){throw this.onerror?.(n),n}}setProtocolVersion(t){this._protocolVersion=t}}const ru="mcp";class iu{constructor(t){this._url=t}start(){if(this._socket)throw new Error("WebSocketClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((t,n)=>{this._socket=new WebSocket(this._url,ru),this._socket.onerror=r=>{const i="error"in r?r.error:new Error(`WebSocket error: ${JSON.stringify(r)}`);n(i),this.onerror?.(i)},this._socket.onopen=()=>{t()},this._socket.onclose=()=>{this.onclose?.()},this._socket.onmessage=r=>{let i;try{i=sa.parse(JSON.parse(r.data))}catch(s){this.onerror?.(s);return}this.onmessage?.(i)}})}async close(){this._socket?.close()}send(t){return new Promise((n,r)=>{if(!this._socket){r(new Error("Not connected"));return}this._socket?.send(JSON.stringify(t)),n()})}}class su extends dc{constructor(t,n){super(t,n)}send(t,n){const r=ou(t);return r?.type==="emit"?(this.onmessage?.(r.message),Promise.resolve()):r?.type==="suppress"?Promise.resolve():super.send(t,n)}}function ou(e){const t=e;if(!t||typeof t!="object"||!("method"in t))return null;switch(t.method){case"initialize":{const n=t?.params?.protocolVersion;return n?{type:"emit",message:{result:{protocolVersion:n,capabilities:{tools:{}},serverInfo:{name:"deco-chat-server",version:"1.0.0"}},jsonrpc:t.jsonrpc??"2.0",id:t.id}}:null}case"notifications/roots/list_changed":case"notifications/initialized":case"notifications/cancelled":case"notifications/progress":return{type:"suppress"};default:return null}}class au extends hc{constructor(t,n){super(t,n)}async listTools(t,n){return await this.request({method:"tools/list",params:t},sc,n)}}const lu=async(e,t,n)=>{const r=cu(e.connection,t,n);if(!r)throw new Error("Unknown MCP connection type");const i=new au({name:e?.name??"MCP Client",version:"1.0.0"});return await i.connect(r),{client:i}},cu=(e,t,n)=>{if(e.type==="Websocket")return new iu(new URL(e.url));if(e.type!=="SSE"&&e.type!=="HTTP")return null;const i={...e.token?{authorization:`Bearer ${e.token}`}:{},...n??{},..."headers"in e?e.headers||{}:{}};if(e.type==="SSE"){const s={requestInit:{headers:i,signal:t}};return e.token&&(s.eventSourceInit={fetch:(o,a)=>fetch(o,{...a,headers:{...i,Accept:"text/event-stream"},signal:t})}),new nu(new URL(e.url),s)}return new su(new URL(e.url),{requestInit:{headers:i,signal:t,credentials:"include"}})},Cs=e=>{try{return JSON.parse(e)}catch{return e}},zn=new Map,Ts=(e,t)=>({...e,id:e.name,inputSchema:e.inputSchema?Ae(e.inputSchema):void 0,outputSchema:e.outputSchema?Ae(e.outputSchema):void 0,execute:n=>t(n.context,e.name)});function uu(e){const t=n=>"connection"in e?lu({connection:e.connection},void 0,n):e.client;return new Proxy({},{get(n,r){if(r==="toJSON")return null;if(typeof r!="string")throw new Error("Name must be a string");if(r==="listTools")return a;async function i(l,c=r){const u=e?.debugId?.(),f=u?{"x-trace-debug-id":u}:void 0,{client:h}=await t(f),{structuredContent:m,isError:d,content:p}=await h.callTool({name:String(c),arguments:l});if(d){const S=p?.[0]?.text,O=typeof S=="string"?Cs(S):null,E=O?.code&&typeof e?.getErrorByStatusCode=="function"?e.getErrorByStatusCode(O.code,O.message,O.traceId):null;throw E||new Error(`Tool ${String(c)} returned an error: ${JSON.stringify(m??p)}`)}if(m!==void 0)return m;const y=p?.[0]?.text;return typeof y=="string"?Cs(y):void 0}async function s(){const{client:l}=await t(),{tools:c}=await l.listTools();return c}async function o(){if(!("connection"in e))return s();const l=e.connection,c=JSON.stringify(l);try{return zn.has(c)||zn.set(c,s()),await zn.get(c)}catch(u){console.error("Failed to list tools",u),zn.delete(c);return}}async function a(){return(await o()??[]).map(c=>Ts(c,i))}return i.asTool=async()=>{const c=(await o()??[]).find(u=>u.name===r);if(!c)throw new Error(`Tool ${r} not found`);return Ts(c,i)},i}})}new Proxy({},{get(e,t){return t==="toJSON"?null:t==="forConnection"?n=>fu({connection:n}):global[t]}});function fu(e){return uu(e)}const du=_e({toolName:oe().describe("Name of the tool to invoke on that connection"),transformCode:oe().optional().describe("Pure TypeScript function for data transformation of the tool call result. Must be a TypeScript file that declares the Output interface and exports a default function: `interface Output { ... } export default async function(stepInput): Output { ... }`\n The stepInput will match with the tool call outputSchema. If transformCode is not provided, the tool call result will be used as the step output.\n Providing an transformCode is recommended because it both allows you to transform the data and validate it against a JSON Schema - tools are ephemeral and may return unexpected data.")}),hu=_e({code:oe().describe(`Pure TypeScript function for data transformation. Useful to merge data from multiple steps and transform it. Must be a TypeScript file that declares the Output interface and exports a default function: \`interface Output { ... } export default async function(stepInput): Output { ... }\`
|
|
2
2
|
The stepInput is the resolved value of the references in the input field. Example:
|
|
3
3
|
{
|
|
4
4
|
"input": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{P as z,a as G,D as H,o as J,p as Q}from"./index-
|
|
1
|
+
import{P as z,a as G,D as H,o as J,p as Q}from"./index-C_u8z90u.js";function V(x){var l;const{char:D,allowSpaces:b,allowToIncludeChar:P,allowedPrefixes:E,startOfLine:F,$position:v}=x,B=b&&!P,y=Q(D),K=new RegExp(`\\s${y}$`),h=F?"^":"",M=P?"":y,N=B?new RegExp(`${h}${y}.*?(?=\\s${M}|$)`,"gm"):new RegExp(`${h}(?:^)?${y}[^\\s${M}]*`,"gm"),q=((l=v.nodeBefore)==null?void 0:l.isText)&&v.nodeBefore.text;if(!q)return null;const O=v.pos-q.length,u=Array.from(q.matchAll(N)).pop();if(!u||u.input===void 0||u.index===void 0)return null;const d=u.input.slice(Math.max(0,u.index-1),u.index),e=new RegExp(`^[${E?.join("")}\0]?$`).test(d);if(E!==null&&!e)return null;const I=O+u.index;let p=I+u[0].length;return B&&K.test(q.slice(p-1,p+1))&&(u[0]+=" ",p+=1),I<v.pos&&p>=v.pos?{range:{from:I,to:p},query:u[0].slice(D.length),text:u[0]}:null}var W=new z("suggestion");function Y({pluginKey:x=W,editor:l,char:D="@",allowSpaces:b=!1,allowToIncludeChar:P=!1,allowedPrefixes:E=[" "],startOfLine:F=!1,decorationTag:v="span",decorationClass:B="suggestion",decorationContent:y="",decorationEmptyClass:K="is-empty",command:h=()=>null,items:M=()=>[],render:N=()=>({}),allow:q=()=>!0,findSuggestionMatch:O=V,shouldShow:u}){let d;const e=N?.(),I=()=>{const n=l.state.selection.$anchor.pos,a=l.view.coordsAtPos(n),{top:r,right:s,bottom:o,left:c}=a;try{return new DOMRect(c,r,s-c,o-r)}catch{return null}},p=(n,a)=>a?()=>{const r=x.getState(l.state),s=r?.decorationId,o=n.dom.querySelector(`[data-decoration-id="${s}"]`);return o?.getBoundingClientRect()||null}:I;function U(n,a){var r;try{const o=x.getState(n.state),c=o?.decorationId?n.dom.querySelector(`[data-decoration-id="${o.decorationId}"]`):null,g={editor:l,range:o?.range||{from:0,to:0},query:o?.query||null,text:o?.text||null,items:[],command:m=>h({editor:l,range:o?.range||{from:0,to:0},props:m}),decorationNode:c,clientRect:p(n,c)};(r=e?.onExit)==null||r.call(e,g)}catch{}const s=n.state.tr.setMeta(a,{exit:!0});n.dispatch(s)}const C=new G({key:x,view(){return{update:async(n,a)=>{var r,s,o,c,g,m,S;const t=(r=this.key)==null?void 0:r.getState(a),f=(s=this.key)==null?void 0:s.getState(n.state),i=t.active&&f.active&&t.range.from!==f.range.from,_=!t.active&&f.active,A=t.active&&!f.active,R=!_&&!A&&t.query!==f.query,w=_||i&&R,k=R||i,j=A||i&&R;if(!w&&!k&&!j)return;const $=j&&!w?t:f,T=n.dom.querySelector(`[data-decoration-id="${$.decorationId}"]`);d={editor:l,range:$.range,query:$.query,text:$.text,items:[],command:L=>h({editor:l,range:$.range,props:L}),decorationNode:T,clientRect:p(n,T)},w&&((o=e?.onBeforeStart)==null||o.call(e,d)),k&&((c=e?.onBeforeUpdate)==null||c.call(e,d)),(k||w)&&(d.items=await M({editor:l,query:$.query})),j&&((g=e?.onExit)==null||g.call(e,d)),k&&((m=e?.onUpdate)==null||m.call(e,d)),w&&((S=e?.onStart)==null||S.call(e,d))},destroy:()=>{var n;d&&((n=e?.onExit)==null||n.call(e,d))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(n,a,r,s){const{isEditable:o}=l,{composing:c}=l.view,{selection:g}=n,{empty:m,from:S}=g,t={...a},f=n.getMeta(x);if(f&&f.exit)return t.active=!1,t.decorationId=null,t.range={from:0,to:0},t.query=null,t.text=null,t;if(t.composing=c,o&&(m||l.view.composing)){(S<a.range.from||S>a.range.to)&&!c&&!a.composing&&(t.active=!1);const i=O({char:D,allowSpaces:b,allowToIncludeChar:P,allowedPrefixes:E,startOfLine:F,$position:g.$from}),_=`id_${Math.floor(Math.random()*4294967295)}`;i&&q({editor:l,state:s,range:i.range,isActive:a.active})&&(!u||u({editor:l,range:i.range,query:i.query,text:i.text,transaction:n}))?(t.active=!0,t.decorationId=a.decorationId?a.decorationId:_,t.range=i.range,t.query=i.query,t.text=i.text):t.active=!1}else t.active=!1;return t.active||(t.decorationId=null,t.range={from:0,to:0},t.query=null,t.text=null),t}},props:{handleKeyDown(n,a){var r,s,o,c;const{active:g,range:m}=C.getState(n.state);if(!g)return!1;if(a.key==="Escape"||a.key==="Esc"){const t=C.getState(n.state),f=(r=d?.decorationNode)!=null?r:null,i=f??(t?.decorationId?n.dom.querySelector(`[data-decoration-id="${t.decorationId}"]`):null);if(((s=e?.onKeyDown)==null?void 0:s.call(e,{view:n,event:a,range:t.range}))||!1)return!0;const A={editor:l,range:t.range,query:t.query,text:t.text,items:[],command:R=>h({editor:l,range:t.range,props:R}),decorationNode:i,clientRect:i?()=>i.getBoundingClientRect()||null:null};return(o=e?.onExit)==null||o.call(e,A),U(n,x),!0}return((c=e?.onKeyDown)==null?void 0:c.call(e,{view:n,event:a,range:m}))||!1},decorations(n){const{active:a,range:r,decorationId:s,query:o}=C.getState(n);if(!a)return null;const c=!o?.length,g=[B];return c&&g.push(K),H.create(n.doc,[J.inline(r.from,r.to,{nodeName:v,class:g.join(" "),"data-decoration-id":s,"data-decoration-content":y})])}}});return C}export{Y as S};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/plugin-header-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/plugin-header-apdmEPGc.js","assets/Check-iLkh97pT.js","assets/ChevronDown-hAIeVVjO.js","assets/login-Dp5n-o6e.js","assets/input-DNFaDN-t.js","assets/reset-password-BILcwCX-.js","assets/shell-layout-C4Qbz79U.js","assets/dialog-CVU8C65F.js","assets/X-BIBUzPXw.js","assets/required-auth-layout-DNLyc-Jc.js","assets/use-tasks-Buj64kOD.js","assets/use-collections-B62mMH76.js","assets/constants-Byqq7P-x.js","assets/use-organization-settings-gXH8ly7B.js","assets/use-org-sso-DyRmCzkM.js","assets/Lock01-mA7QgL2y.js","assets/Archive-CpwaQ9i2.js","assets/onboarding-CN7qNa98.js","assets/label-EPch60Re.js","assets/Users03-BRhtwP3R.js","assets/CheckCircle-BqxncqLD.js","assets/Palette-BcbDyirO.js","assets/index-D7tifyXI.js","assets/sidebar-BWu_ePOy.js","assets/LayoutLeft-JykQcN-j.js","assets/tooltip-Fw0r1Fnv.js","assets/ZapSquare-Bp-Tac0d.js","assets/index-8aV9WSX6.js","assets/agent-icon-C3ToZMO1.js","assets/AlertCircle-8gO1aXOV.js","assets/Tool01-Cmmu87hJ.js","assets/XClose-_fuYraP_.js","assets/RefreshCcw01-DjbieO7J.js","assets/ArrowNarrowLeft-Bj9BOs-z.js","assets/XCircle-B3Ec4xbl.js","assets/ArrowUpRight-CGIcPNOI.js","assets/ChevronRight-DvySy092.js","assets/ChevronUp-nRc3sEaT.js","assets/DotsVertical-C-S6nCss.js","assets/Container-kWAyJ_HH.js","assets/Star01-DKC04CRs.js","assets/SearchMd-CRZSLxL6.js","assets/LinkExternal01-BxIXc_ra.js","assets/Sun-BmooIo9H.js","assets/Play-B-SyQLb4.js","assets/Plus-Da0UZLbd.js","assets/Settings02-CRn2TAbB.js","assets/Shield01-mkPGOpR6.js","assets/Trash01-_0GJuf6O.js","assets/User01-BeQhAfkv.js","assets/Zap-C2Ojyfeu.js","assets/pair-C-m8tavv.js","assets/index-C_u8z90u.js","assets/use-copy-S7d6ccvS.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/content-blocks-o63cs2vh.js","assets/types-SLEmji6U.js","assets/chat-context-DxzvANdp.js","assets/use-virtual-mcp-CnvhxxMa.js","assets/use-ai-providers-C-k1YUCw.js","assets/use-decopilot-events-CD5HmYFC.js","assets/create-sse-subscription-CxkOgzKf.js","assets/integration-icon-Bt36uZm6.js","assets/skeleton-DJTy6ez2.js","assets/popover-DqPZrAPW.js","assets/drawer-BPoStQav.js","assets/avatar-BzKxqu3b.js","assets/alert-dialog-rJ8tQXxB.js","assets/form-D2ajrZY7.js","assets/spinner-WgqEYOpc.js","assets/index-Cd02a-JG.js","assets/use-mcp-tools-DbRVIPCe.js","assets/index-Ca8lIGfE.js","assets/switch-qhfo8Vps.js","assets/use-connection-CGnX1bAr.js","assets/lean-canvas-recruit-modal-DfNm4E73.js","assets/use-navigate-to-agent-BFHXdont.js","assets/collection-search-CbmTjLje.js","assets/checkbox-Cs8wVTnP.js","assets/extract-connection-data-D9CVtxg9.js","assets/constants-j7SVGFua.js","assets/collections-BrXh640u.js","assets/tabs-DdVMeHSM.js","assets/select-D2rWlduK.js","assets/toggle-group-CDk1azIm.js","assets/select-model-BTNonZmN.js","assets/ai-providers-logos-DD3qZ33J.js","assets/settings-section-Dnz7xxTt.js","assets/card-DTHqwNV7.js","assets/unwrap-tool-result-BYXdCQMg.js","assets/dropdown-menu-CFvw1sby.js","assets/index-BwduZbfJ.js","assets/question-004-sINsf4GQ.js","assets/connection-slug-eyAPH6o3.js","assets/connection-card-gdrfoq9h.js","assets/use-registry-connections-DAbFKgpw.js","assets/useInfiniteQuery-BECdJto-.js","assets/infiniteQueryObserver-B8WYxU9o.js","assets/collection-tabs-Cx7Fw5pB.js","assets/badge-CtvUEMa3.js","assets/textarea-tUo13Bze.js","assets/connection-form-helpers-CMTw78q4.js","assets/use-infinite-scroll-SPOySZcn.js","assets/useSuspenseInfiniteQuery-DLoMCiwp.js","assets/collection-search-BvyGXjxx.js","assets/use-create-virtual-mcp-D8mqROzD.js","assets/empty-state-8-OQfGVL.js","assets/task-status-CNZzETah.js","assets/index-4U7gRnbz.js","assets/command-Gp6-PTcb.js","assets/index-BbzWWop6.js","assets/use-status-sounds-VTPYJ4_T.js","assets/accordion-rzQTbL0h.js","assets/user-Chu-GPC8.js","assets/tools-list-B7BG48WQ.js","assets/use-debounced-autosave-DSiduY2E.js","assets/scroll-area-C80z-i4l.js","assets/index-DR62hZV9.js","assets/view-mode-toggle-Cj1WIwcj.js","assets/automation-list-row-A_8c4BfR.js","assets/search-input-CITVGcCE.js","assets/index-DDGTF8rc.css","assets/index-MHifxSvC.js","assets/settings-layout-Bg2zZUvB.js","assets/connections-ClXPJSid.js","assets/collection-display-button-B-70Ju9K.js","assets/use-delete-connection-DVHNgb48.js","assets/use-list-state-CB5cSSEY.js","assets/use-view-mode-C9lWb9qo.js","assets/connection-detail-sPm6-FQh.js","assets/index-D7EGXs0z.js","assets/index-BcJogvuh.js","assets/index-Bb5AeDnq.js","assets/use-members-Cjc37mTg.js","assets/use-org-auth-client-CH982N7h.js","assets/layout-C-ijRiyr.js","assets/monitoring-stats-row-Ba3ar8Om.js","assets/collection-detail-BVdBCgeZ.js","assets/index-dI45a3oJ.js","assets/monaco-editor-UJJyG6n2.js","assets/empty-state-DICfxaK6.js","assets/index-CPY1FvNi.js","assets/table-DT9Lwdc9.js","assets/general-BkPw_hwG.js","assets/domain-settings-DKmwgR9_.js","assets/features-CozjNW2D.js","assets/brand-context-CFaaMt6s.js","assets/ai-providers-DRxrdzrJ.js","assets/formatDistanceToNow-Cb2QZZJn.js","assets/members-B4-cMOsS.js","assets/collection-table-wrapper-DXq2NrGj.js","assets/use-organization-roles-2UTk-DFF.js","assets/roles-EUFvZijn.js","assets/sso-ZW_bBsst.js","assets/profile-CDG3HHBU.js","assets/store-2-hWApJp.js","assets/workflow-BBU02wN2.js","assets/workflow-detail-CoYIUlop.js","assets/org-plugin-layout-pmz_1-KP.js","assets/plugin-layout-DE-RB_rr.js","assets/agents-list-sQ_2-MIz.js","assets/automations-YzDLAcj1.js","assets/dynamic-plugin-layout-DB9J-dmB.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
function F$(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();const B$="modulepreload",V$=function(e){return"/"+e},J2={},At=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let l=function(f){return Promise.all(f.map(m=>Promise.resolve(m).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");i=l(n.map(f=>{if(f=V$(f),f in J2)return;J2[f]=!0;const m=f.endsWith(".css"),p=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${p}`))return;const g=document.createElement("link");if(g.rel=m?"stylesheet":B$,m||(g.as="script"),g.crossOrigin="",g.href=f,d&&g.setAttribute("nonce",d),document.head.appendChild(g),m)return new Promise((v,y)=>{g.addEventListener("load",v),g.addEventListener("error",()=>y(Error(`Unable to preload CSS for ${f}`)))})}))}function s(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return i.then(l=>{for(const c of l||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})};var tle=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function la(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var __={exports:{}},Bu={};var eO;function q$(){if(eO)return Bu;eO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,s){var l=null;if(s!==void 0&&(l=""+s),i.key!==void 0&&(l=""+i.key),"key"in i){s={};for(var c in i)c!=="key"&&(s[c]=i[c])}else s=i;return i=s.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:s}}return Bu.Fragment=t,Bu.jsx=n,Bu.jsxs=n,Bu}var tO;function H$(){return tO||(tO=1,__.exports=q$()),__.exports}var T=H$(),y_={exports:{}},Vu={},b_={exports:{}},w_={};var nO;function G$(){return nO||(nO=1,(function(e){function t(q,W){var ee=q.length;q.push(W);e:for(;0<ee;){var ae=ee-1>>>1,Q=q[ae];if(0<i(Q,W))q[ae]=W,q[ee]=Q,ee=ae;else break e}}function n(q){return q.length===0?null:q[0]}function r(q){if(q.length===0)return null;var W=q[0],ee=q.pop();if(ee!==W){q[0]=ee;e:for(var ae=0,Q=q.length,k=Q>>>1;ae<k;){var K=2*(ae+1)-1,V=q[K],D=K+1,F=q[D];if(0>i(V,ee))D<Q&&0>i(F,V)?(q[ae]=F,q[D]=ee,ae=D):(q[ae]=V,q[K]=ee,ae=K);else if(D<Q&&0>i(F,ee))q[ae]=F,q[D]=ee,ae=D;else break e}}return W}function i(q,W){var ee=q.sortIndex-W.sortIndex;return ee!==0?ee:q.id-W.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var d=[],f=[],m=1,p=null,g=3,v=!1,y=!1,b=!1,x=!1,S=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function C(q){for(var W=n(f);W!==null;){if(W.callback===null)r(f);else if(W.startTime<=q)r(f),W.sortIndex=W.expirationTime,t(d,W);else break;W=n(f)}}function O(q){if(b=!1,C(q),!y)if(n(d)!==null)y=!0,A||(A=!0,B());else{var W=n(f);W!==null&&re(O,W.startTime-q)}}var A=!1,M=-1,P=5,L=-1;function H(){return x?!0:!(e.unstable_now()-L<P)}function j(){if(x=!1,A){var q=e.unstable_now();L=q;var W=!0;try{e:{y=!1,b&&(b=!1,E(M),M=-1),v=!0;var ee=g;try{t:{for(C(q),p=n(d);p!==null&&!(p.expirationTime>q&&H());){var ae=p.callback;if(typeof ae=="function"){p.callback=null,g=p.priorityLevel;var Q=ae(p.expirationTime<=q);if(q=e.unstable_now(),typeof Q=="function"){p.callback=Q,C(q),W=!0;break t}p===n(d)&&r(d),C(q)}else r(d);p=n(d)}if(p!==null)W=!0;else{var k=n(f);k!==null&&re(O,k.startTime-q),W=!1}}break e}finally{p=null,g=ee,v=!1}W=void 0}}finally{W?B():A=!1}}}var B;if(typeof R=="function")B=function(){R(j)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,Z=U.port2;U.port1.onmessage=j,B=function(){Z.postMessage(null)}}else B=function(){S(j,0)};function re(q,W){M=S(function(){q(e.unstable_now())},W)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(q){q.callback=null},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(q){switch(g){case 1:case 2:case 3:var W=3;break;default:W=g}var ee=g;g=W;try{return q()}finally{g=ee}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(q,W){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ee=g;g=q;try{return W()}finally{g=ee}},e.unstable_scheduleCallback=function(q,W,ee){var ae=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?ae+ee:ae):ee=ae,q){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=ee+Q,q={id:m++,callback:W,priorityLevel:q,startTime:ee,expirationTime:Q,sortIndex:-1},ee>ae?(q.sortIndex=ee,t(f,q),n(d)===null&&q===n(f)&&(b?(E(M),M=-1):b=!0,re(O,ee-ae))):(q.sortIndex=Q,t(d,q),y||v||(y=!0,A||(A=!0,B()))),q},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(q){var W=g;return function(){var ee=g;g=W;try{return q.apply(this,arguments)}finally{g=ee}}}})(w_)),w_}var rO;function K$(){return rO||(rO=1,b_.exports=G$()),b_.exports}var S_={exports:{}},rt={};var iO;function Z$(){if(iO)return rt;iO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),g=Symbol.iterator;function v(k){return k===null||typeof k!="object"?null:(k=g&&k[g]||k["@@iterator"],typeof k=="function"?k:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,x={};function S(k,K,V){this.props=k,this.context=K,this.refs=x,this.updater=V||y}S.prototype.isReactComponent={},S.prototype.setState=function(k,K){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,K,"setState")},S.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function E(){}E.prototype=S.prototype;function R(k,K,V){this.props=k,this.context=K,this.refs=x,this.updater=V||y}var C=R.prototype=new E;C.constructor=R,b(C,S.prototype),C.isPureReactComponent=!0;var O=Array.isArray;function A(){}var M={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function L(k,K,V){var D=V.ref;return{$$typeof:e,type:k,key:K,ref:D!==void 0?D:null,props:V}}function H(k,K){return L(k.type,K,k.props)}function j(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function B(k){var K={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(V){return K[V]})}var U=/\/+/g;function Z(k,K){return typeof k=="object"&&k!==null&&k.key!=null?B(""+k.key):K.toString(36)}function re(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(A,A):(k.status="pending",k.then(function(K){k.status==="pending"&&(k.status="fulfilled",k.value=K)},function(K){k.status==="pending"&&(k.status="rejected",k.reason=K)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function q(k,K,V,D,F){var X=typeof k;(X==="undefined"||X==="boolean")&&(k=null);var fe=!1;if(k===null)fe=!0;else switch(X){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(k.$$typeof){case e:case t:fe=!0;break;case m:return fe=k._init,q(fe(k._payload),K,V,D,F)}}if(fe)return F=F(k),fe=D===""?"."+Z(k,0):D,O(F)?(V="",fe!=null&&(V=fe.replace(U,"$&/")+"/"),q(F,K,V,"",function(Ue){return Ue})):F!=null&&(j(F)&&(F=H(F,V+(F.key==null||k&&k.key===F.key?"":(""+F.key).replace(U,"$&/")+"/")+fe)),K.push(F)),1;fe=0;var pe=D===""?".":D+":";if(O(k))for(var xe=0;xe<k.length;xe++)D=k[xe],X=pe+Z(D,xe),fe+=q(D,K,V,X,F);else if(xe=v(k),typeof xe=="function")for(k=xe.call(k),xe=0;!(D=k.next()).done;)D=D.value,X=pe+Z(D,xe++),fe+=q(D,K,V,X,F);else if(X==="object"){if(typeof k.then=="function")return q(re(k),K,V,D,F);throw K=String(k),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return fe}function W(k,K,V){if(k==null)return k;var D=[],F=0;return q(k,D,"","",function(X){return K.call(V,X,F++)}),D}function ee(k){if(k._status===-1){var K=k._result;K=K(),K.then(function(V){(k._status===0||k._status===-1)&&(k._status=1,k._result=V)},function(V){(k._status===0||k._status===-1)&&(k._status=2,k._result=V)}),k._status===-1&&(k._status=0,k._result=K)}if(k._status===1)return k._result.default;throw k._result}var ae=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},Q={map:W,forEach:function(k,K,V){W(k,function(){K.apply(this,arguments)},V)},count:function(k){var K=0;return W(k,function(){K++}),K},toArray:function(k){return W(k,function(K){return K})||[]},only:function(k){if(!j(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return rt.Activity=p,rt.Children=Q,rt.Component=S,rt.Fragment=n,rt.Profiler=i,rt.PureComponent=R,rt.StrictMode=r,rt.Suspense=d,rt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,rt.__COMPILER_RUNTIME={__proto__:null,c:function(k){return M.H.useMemoCache(k)}},rt.cache=function(k){return function(){return k.apply(null,arguments)}},rt.cacheSignal=function(){return null},rt.cloneElement=function(k,K,V){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var D=b({},k.props),F=k.key;if(K!=null)for(X in K.key!==void 0&&(F=""+K.key),K)!P.call(K,X)||X==="key"||X==="__self"||X==="__source"||X==="ref"&&K.ref===void 0||(D[X]=K[X]);var X=arguments.length-2;if(X===1)D.children=V;else if(1<X){for(var fe=Array(X),pe=0;pe<X;pe++)fe[pe]=arguments[pe+2];D.children=fe}return L(k.type,F,D)},rt.createContext=function(k){return k={$$typeof:l,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:s,_context:k},k},rt.createElement=function(k,K,V){var D,F={},X=null;if(K!=null)for(D in K.key!==void 0&&(X=""+K.key),K)P.call(K,D)&&D!=="key"&&D!=="__self"&&D!=="__source"&&(F[D]=K[D]);var fe=arguments.length-2;if(fe===1)F.children=V;else if(1<fe){for(var pe=Array(fe),xe=0;xe<fe;xe++)pe[xe]=arguments[xe+2];F.children=pe}if(k&&k.defaultProps)for(D in fe=k.defaultProps,fe)F[D]===void 0&&(F[D]=fe[D]);return L(k,X,F)},rt.createRef=function(){return{current:null}},rt.forwardRef=function(k){return{$$typeof:c,render:k}},rt.isValidElement=j,rt.lazy=function(k){return{$$typeof:m,_payload:{_status:-1,_result:k},_init:ee}},rt.memo=function(k,K){return{$$typeof:f,type:k,compare:K===void 0?null:K}},rt.startTransition=function(k){var K=M.T,V={};M.T=V;try{var D=k(),F=M.S;F!==null&&F(V,D),typeof D=="object"&&D!==null&&typeof D.then=="function"&&D.then(A,ae)}catch(X){ae(X)}finally{K!==null&&V.types!==null&&(K.types=V.types),M.T=K}},rt.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},rt.use=function(k){return M.H.use(k)},rt.useActionState=function(k,K,V){return M.H.useActionState(k,K,V)},rt.useCallback=function(k,K){return M.H.useCallback(k,K)},rt.useContext=function(k){return M.H.useContext(k)},rt.useDebugValue=function(){},rt.useDeferredValue=function(k,K){return M.H.useDeferredValue(k,K)},rt.useEffect=function(k,K){return M.H.useEffect(k,K)},rt.useEffectEvent=function(k){return M.H.useEffectEvent(k)},rt.useId=function(){return M.H.useId()},rt.useImperativeHandle=function(k,K,V){return M.H.useImperativeHandle(k,K,V)},rt.useInsertionEffect=function(k,K){return M.H.useInsertionEffect(k,K)},rt.useLayoutEffect=function(k,K){return M.H.useLayoutEffect(k,K)},rt.useMemo=function(k,K){return M.H.useMemo(k,K)},rt.useOptimistic=function(k,K){return M.H.useOptimistic(k,K)},rt.useReducer=function(k,K,V){return M.H.useReducer(k,K,V)},rt.useRef=function(k){return M.H.useRef(k)},rt.useState=function(k){return M.H.useState(k)},rt.useSyncExternalStore=function(k,K,V){return M.H.useSyncExternalStore(k,K,V)},rt.useTransition=function(){return M.H.useTransition()},rt.version="19.2.5",rt}var oO;function ca(){return oO||(oO=1,S_.exports=Z$()),S_.exports}var E_={exports:{}},yr={};var sO;function Y$(){if(sO)return yr;sO=1;var e=ca();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)f+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function s(d,f,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:p==null?null:""+p,children:d,containerInfo:f,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return yr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,yr.createPortal=function(d,f){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return s(d,f,null,m)},yr.flushSync=function(d){var f=l.T,m=r.p;try{if(l.T=null,r.p=2,d)return d()}finally{l.T=f,r.p=m,r.d.f()}},yr.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},yr.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},yr.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var m=f.as,p=c(m,f.crossOrigin),g=typeof f.integrity=="string"?f.integrity:void 0,v=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;m==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:p,integrity:g,fetchPriority:v}):m==="script"&&r.d.X(d,{crossOrigin:p,integrity:g,fetchPriority:v,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},yr.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var m=c(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},yr.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var m=f.as,p=c(m,f.crossOrigin);r.d.L(d,m,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},yr.preloadModule=function(d,f){if(typeof d=="string")if(f){var m=c(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},yr.requestFormReset=function(d){r.d.r(d)},yr.unstable_batchedUpdates=function(d,f){return d(f)},yr.useFormState=function(d,f,m){return l.H.useFormState(d,f,m)},yr.useFormStatus=function(){return l.H.useHostTransitionStatus()},yr.version="19.2.5",yr}var aO;function MM(){if(aO)return E_.exports;aO=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),E_.exports=Y$(),E_.exports}var lO;function W$(){if(lO)return Vu;lO=1;var e=K$(),t=ca(),n=MM();function r(o){var a="https://react.dev/errors/"+o;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)a+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+o+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function s(o){var a=o,u=o;if(o.alternate)for(;a.return;)a=a.return;else{o=a;do a=o,(a.flags&4098)!==0&&(u=a.return),o=a.return;while(o)}return a.tag===3?u:null}function l(o){if(o.tag===13){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function c(o){if(o.tag===31){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function d(o){if(s(o)!==o)throw Error(r(188))}function f(o){var a=o.alternate;if(!a){if(a=s(o),a===null)throw Error(r(188));return a!==o?null:o}for(var u=o,h=a;;){var _=u.return;if(_===null)break;var w=_.alternate;if(w===null){if(h=_.return,h!==null){u=h;continue}break}if(_.child===w.child){for(w=_.child;w;){if(w===u)return d(_),o;if(w===h)return d(_),a;w=w.sibling}throw Error(r(188))}if(u.return!==h.return)u=_,h=w;else{for(var N=!1,$=_.child;$;){if($===u){N=!0,u=_,h=w;break}if($===h){N=!0,h=_,u=w;break}$=$.sibling}if(!N){for($=w.child;$;){if($===u){N=!0,u=w,h=_;break}if($===h){N=!0,h=w,u=_;break}$=$.sibling}if(!N)throw Error(r(189))}}if(u.alternate!==h)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?o:a}function m(o){var a=o.tag;if(a===5||a===26||a===27||a===6)return o;for(o=o.child;o!==null;){if(a=m(o),a!==null)return a;o=o.sibling}return null}var p=Object.assign,g=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),R=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),j=Symbol.iterator;function B(o){return o===null||typeof o!="object"?null:(o=j&&o[j]||o["@@iterator"],typeof o=="function"?o:null)}var U=Symbol.for("react.client.reference");function Z(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===U?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case b:return"Fragment";case S:return"Profiler";case x:return"StrictMode";case O:return"Suspense";case A:return"SuspenseList";case L:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case y:return"Portal";case R:return o.displayName||"Context";case E:return(o._context.displayName||"Context")+".Consumer";case C:var a=o.render;return o=o.displayName,o||(o=a.displayName||a.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case M:return a=o.displayName||null,a!==null?a:Z(o.type)||"Memo";case P:a=o._payload,o=o._init;try{return Z(o(a))}catch{}}return null}var re=Array.isArray,q=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},ae=[],Q=-1;function k(o){return{current:o}}function K(o){0>Q||(o.current=ae[Q],ae[Q]=null,Q--)}function V(o,a){Q++,ae[Q]=o.current,o.current=a}var D=k(null),F=k(null),X=k(null),fe=k(null);function pe(o,a){switch(V(X,a),V(F,o),V(D,null),a.nodeType){case 9:case 11:o=(o=a.documentElement)&&(o=o.namespaceURI)?S2(o):0;break;default:if(o=a.tagName,a=a.namespaceURI)a=S2(a),o=E2(a,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}K(D),V(D,o)}function xe(){K(D),K(F),K(X)}function Ue(o){o.memoizedState!==null&&V(fe,o);var a=D.current,u=E2(a,o.type);a!==u&&(V(F,o),V(D,u))}function Y(o){F.current===o&&(K(D),K(F)),fe.current===o&&(K(fe),ju._currentValue=ee)}var te,ve;function se(o){if(te===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);te=a&&a[1]||"",ve=-1<u.stack.indexOf(`
|
|
3
3
|
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
4
|
`+te+o+ve}var we=!1;function Oe(o,a){if(!o||we)return"";we=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(a){var Se=function(){throw Error()};if(Object.defineProperty(Se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Se,[])}catch(ge){var he=ge}Reflect.construct(o,[],Se)}else{try{Se.call()}catch(ge){he=ge}o.call(Se.prototype)}}else{try{throw Error()}catch(ge){he=ge}(Se=o())&&typeof Se.catch=="function"&&Se.catch(function(){})}}catch(ge){if(ge&&he&&typeof ge.stack=="string")return[ge.stack,he.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var _=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");_&&_.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var w=h.DetermineComponentFrameRoot(),N=w[0],$=w[1];if(N&&$){var J=N.split(`
|
|
@@ -168,4 +168,4 @@ ${r}
|
|
|
168
168
|
${r}
|
|
169
169
|
}`)}if(n.length>0){const r=document.createElement("style");r.id="mesh-theme-overrides",r.textContent=n.join(`
|
|
170
170
|
|
|
171
|
-
`),document.head.appendChild(r)}}function eae(e){const t=Ro.c(9),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:KM.publicConfig(),queryFn:Xse,staleTime:1/0},t[0]=r):r=t[0];const{data:i}=GM(r),[s]=Wse();i.internalUrl&&zse(i.internalUrl);let l,c;t[1]!==i.theme?(l=()=>{Jse(i.theme)},c=[i.theme],t[1]=i.theme,t[2]=l,t[3]=c):(l=t[2],c=t[3]),I.useLayoutEffect(l,c);let d,f;t[4]!==s.theme?(d=()=>{const p=document.documentElement;if(s.theme==="dark"){p.classList.add("dark");return}if(s.theme==="light"){p.classList.remove("dark");return}const g=window.matchMedia("(prefers-color-scheme: dark)"),v=b=>p.classList.toggle("dark",b);v(g.matches);const y=b=>v(b.matches);return g.addEventListener("change",y),()=>g.removeEventListener("change",y)},f=[s.theme],t[4]=s.theme,t[5]=d,t[6]=f):(d=t[5],f=t[6]),I.useLayoutEffect(d,f);let m;return t[7]!==n?(m=T.jsx(T.Fragment,{children:n}),t[7]=n,t[8]=m):m=t[8],m}const tae=new wj({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});function nae(e){const t=Ro.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=T.jsx(pH,{}),t[0]=r):r=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx(UD,{}),t[1]=i):i=t[1];let s;return t[2]!==n?(s=T.jsxs(Sj,{client:tae,children:[r,T.jsx(I.Suspense,{fallback:i,children:T.jsx(eae,{children:T.jsx($j,{children:T.jsx(Bee,{children:T.jsx(Qne,{children:n})})})})})]}),t[2]=n,t[3]=s):s=t[3],s}function rae(...e){return VP(pw(e))}const iae=b4("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:hover:bg-input/50 card-shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",special:"bg-special text-special-foreground hover:bg-special/90 focus-visible:ring-special/20 dark:focus-visible:ring-special/40",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground"},size:{default:"h-8 px-3 has-[>svg]:px-2.5",sm:"h-7 gap-1.5 px-2.5 has-[>svg]:px-2",xs:"h-6 gap-1 px-1.5 text-xs has-[>svg]:px-1",lg:"h-10 px-3.5 has-[>svg]:px-3",icon:"size-8","icon-sm":"size-7"}},defaultVariants:{variant:"default",size:"default"}});function W1(e){const t=Ro.c(14);let n,r,i,s,l;t[0]!==e?({className:n,variant:l,size:i,asChild:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=s,t[5]=l):(n=t[1],r=t[2],i=t[3],s=t[4],l=t[5]);const d=(s===void 0?!1:s)?jw:"button";let f;t[6]!==n||t[7]!==i||t[8]!==l?(f=rae(iae({variant:l,size:i,className:n})),t[6]=n,t[7]=i,t[8]=l,t[9]=f):f=t[9];let m;return t[10]!==d||t[11]!==r||t[12]!==f?(m=T.jsx(d,{"data-slot":"button",className:f,...r}),t[10]=d,t[11]=r,t[12]=f,t[13]=m):m=t[13],m}const AM="__mesh_chunk_reload_ts";function IM(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class oce extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n),DD(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:T.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(NS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(W1,{variant:"outline",onClick:this.resetError,children:"Try again"})]})}return this.props.children}}class oae extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n);const r=IM(t);if(DD(t,{boundary:"chunk_root",is_chunk_load_error:r,error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!r)return;const i=sessionStorage.getItem(AM),s=Date.now();(!i||s-Number(i)>1e4)&&(sessionStorage.setItem(AM,String(s)),window.location.reload())}render(){return this.state.hasError&&IM(this.state.error)?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:T.jsx(jD,{className:"h-6 w-6 text-primary"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"New version available"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:"A new version has been deployed. Refresh to continue."})]}),T.jsx(W1,{onClick:()=>window.location.reload(),children:"Refresh"})]}):this.state.hasError?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(NS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(W1,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:"Try again"})]}):this.props.children}}const sae="MCP Workflows",aae="Create workflows using your MCP tools",lae=I.lazy(()=>At(()=>import("./plugin-header-B2jK-xMp.js"),__vite__mapDeps([0,1,2]))),cae=I.lazy(()=>At(()=>import("./plugin-empty-state-BTEa5hkW.js"),[])),uae={id:sae,description:aae,bindingName:"WORKFLOW",renderHeader:e=>T.jsx(lae,{...e}),renderEmptyState:()=>T.jsx(cae,{}),setup:e=>{e.registerSettingsSidebarItem({key:"workflows",icon:T.jsx(LD,{size:14}),label:"MCP Workflows",to:"/$org/settings/workflows"})}},dae=[uae],ma=n7({component:()=>T.jsx(oae,{children:T.jsx(nae,{children:T.jsx(I.Suspense,{fallback:T.jsx(UD,{}),children:T.jsx(gP,{})})})})}),fae=mt({getParentRoute:()=>ma,path:"/login",component:It(()=>At(()=>import("./login-DN3ui4o2.js"),__vite__mapDeps([3,4]))),validateSearch:ul(()=>Ee({next:z().optional(),client_id:z().optional(),redirect_uri:z().optional(),response_type:z().optional(),state:z().optional(),scope:z().optional(),code_challenge:z().optional(),code_challenge_method:z().optional()}))}),hae=mt({getParentRoute:()=>ma,path:"/reset-password",component:It(()=>At(()=>import("./reset-password-B3LrUwFE.js"),__vite__mapDeps([5,4]))),validateSearch:ul(()=>Ee({token:z().optional(),error:z().optional()}))}),pae=mt({getParentRoute:()=>ma,path:"/auth/$pathname",component:It(()=>At(()=>import("./auth-catchall-Dd8tUYty.js"),[]))}),mae=mt({getParentRoute:()=>ma,path:"/oauth/callback",component:It(()=>At(()=>import("./oauth-callback-DNxvRR-9.js"),[]))}),gae=mt({getParentRoute:()=>ma,path:"/oauth/callback/ai-provider",component:It(()=>At(()=>import("./oauth-callback-ai-provider-BaBdfpnJ.js"),[]))}),iE=mt({getParentRoute:()=>ma,id:"shell",component:It(()=>At(()=>import("./shell-layout-CnxPajL4.js").then(e=>e.s),__vite__mapDeps([6,7,8,9,10,11,12,13,14,15,16])))}),vae=mt({getParentRoute:()=>iE,path:"/",beforeLoad:async()=>{const{data:e}=await Mg.organization.list();if(!e)return;const t=e.filter(i=>!i.metadata?.archived),n=localStorage.getItem(Rg.lastOrgSlug());if(n){if(t.some(s=>s.slug===n))throw Oc({to:"/$org",params:{org:n}});localStorage.removeItem(Rg.lastOrgSlug())}const r=t[0];throw Oc(r?{to:"/$org",params:{org:r.slug}}:{to:"/onboarding"})}}),_ae=mt({getParentRoute:()=>ma,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await Mg.organization.list(),t=e?.filter(n=>!n.metadata?.archived);if(t&&t.length>0)throw Oc({to:"/"})},component:It(()=>At(()=>import("./onboarding-CR7yjYaj.js"),__vite__mapDeps([17,9,4,18,19,20,21])))}),oE=mt({getParentRoute:()=>iE,path:"/$org",component:It(()=>At(()=>import("./org-layout-Cb-ADOWZ.js"),[]))}),sE=mt({getParentRoute:()=>oE,id:"org-shell",component:It(()=>At(()=>import("./index-C3ItJtDA.js"),__vite__mapDeps([22,23,24,25,8,26,27,28,29,30,16,31,32,33,34,35,19,20,1,2,36,37,38,39,40,21,41,42,15,43,44,45,46,47,48,49,50,6,7,9,10,11,12,13,14,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,18,4,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107])))}),aE=mt({getParentRoute:()=>sE,id:"agent-shell",component:It(()=>At(()=>import("./index-BP1irR4w.js"),__vite__mapDeps([108,72,7,8,73,4,74,11,12,75,76,58,32,77,41,78,1,15,28,29,30,16,31,33,34,35,26,19,20,2,36,37,38,39,40,21,24,42,43,44,45,46,47,48,49,50,79,80,81,65,25,62,71,57,59,60,61,10,13,6,9,14,51,52,53,54,55,56,69,82,68,18,83,84,85,63,86,66,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,109,110,64,27,23,67,70,104,105,106,107,111,112,113,114,115,116,117,118,119,120,121])))}),yae=Ee({virtualmcpid:z().optional(),tab:z().optional(),main:z().optional(),id:z().optional(),toolName:z().optional(),tasks:St().optional(),mainOpen:St().optional(),chat:St().optional(),autosend:z().optional()}),T6=mt({getParentRoute:()=>aE,path:"/$taskId",validateSearch:yae,component:()=>null}),bae=mt({getParentRoute:()=>sE,path:"/",component:It(()=>At(()=>import("./index-Z4y7Xqpl.js"),__vite__mapDeps([122,25,62,39,28,29,30,16,31,32,33,34,35,26,19,20,1,2,36,37,38,40,21,41,24,42,15,43,44,45,46,47,48,49,8,50,63,12,58,11,13,75,76,7,77,78,74,79,80,81,65,71,72,73,4,57,59,60,61,10,6,9,14,51,52,53,54,55,56,69,82,68,18,83,84,85,86,66,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,105])))}),Pn=mt({getParentRoute:()=>oE,path:"/settings",component:It(()=>At(()=>import("./settings-layout-EiIXIsKh.js"),__vite__mapDeps([123,23,24,25,8,117,33,26,19,36,15,47,49,50,111,92,60,61])))}),wae=mt({getParentRoute:()=>Pn,path:"/",beforeLoad:({params:e})=>{throw Oc({to:"/$org/settings/general",params:{org:e.org}})},component:()=>null}),Sae=mt({getParentRoute:()=>Pn,path:"/connections",component:It(()=>At(()=>import("./connections-WOK-a8c5.js"),__vite__mapDeps([124,80,81,125,90,1,36,38,31,25,118,99,120,41,98,94,93,95,74,11,12,13,96,97,79,88,62,39,28,29,30,16,32,33,34,35,26,19,20,2,37,40,21,24,42,15,43,44,45,46,47,48,49,8,50,106,117,23,126,67,102,127,128,78,7,65,68,18,4,83,100,58,101]))),validateSearch:ul(()=>Ee({action:dn(["create"]).optional(),tab:dn(["all","connected"]).optional()}))}),Eae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug",component:It(()=>At(()=>import("./connection-detail-DJDM6qrF.js"),__vite__mapDeps([129,80,81,106,101,4,45,48,130,12,71,28,29,30,16,31,32,33,34,35,26,19,20,1,2,36,37,38,39,40,21,41,24,42,15,43,44,46,47,49,8,50,74,11,131,132,79,95,13,83,25,110,64,58,105,76,114,99,56,133,134,66,82,62,23,68,18,126,67,135,117,136,93,77,88,90]))),validateSearch:ul(()=>Ee({tab:z().optional()}))}),xae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug/$collectionName/$itemId",component:It(()=>At(()=>import("./collection-detail-BuOhDy6g.js"),__vite__mapDeps([137,106,11,12,68,18,4,100,135,117,23,24,25,8,138,131,81,132,58,139,69,112,28,29,30,16,31,32,33,34,35,26,19,20,1,2,36,37,38,39,40,21,41,42,15,43,44,45,46,47,48,49,50,52,99,83,118,74,71,7,91,90,62,116,70,140,61,56,130,79,80,95,13,110,64,105,76,93,114,55,57,59,60,10,6,9,14]))),validateSearch:ul(()=>Ee({replayId:z().optional()}))}),Rae=mt({getParentRoute:()=>Pn,path:"/monitor",component:It(()=>At(()=>import("./index-D50QWIt1.js"),__vite__mapDeps([141,120,41,117,23,24,25,8,106,99,64,1,34,44,28,29,30,16,31,32,33,35,26,19,20,2,36,37,38,39,40,21,42,15,43,45,46,47,48,49,50,139,69,133,134,74,11,12,58,4,78,109,110,83,116,100,98,73,18,62,66,88,136,132,71,93,103,97,142,102,96,51,52,53,54,7,55,56,57,59,60,61,10,13,6,9,14,107]))),validateSearch:ul(()=>Ee({tab:dn(["overview","audit","threads"]).default("overview"),from:z().default("now-30m"),to:z().default("now"),connectionId:Ie(z()).optional().default([]),virtualMcpId:Ie(z()).optional().default([]),tool:z().default(""),status:dn(["all","success","errors"]).default("all"),search:z().default(""),page:St().optional(),streaming:Pt().default(!0),propertyFilters:z().default(""),hideSystem:Pt().default(!1)}))}),Oae=mt({getParentRoute:()=>Pn,path:"/general",component:It(()=>At(()=>import("./general-C_qHqy-s.js"),__vite__mapDeps([143,117,23,24,25,8,134,115,66,49,4,87,88,35,144,89,12,73,104,41,58,11,64,63,28,29,30,16,31,32,33,34,26,19,20,1,2,36,37,38,39,40,21,42,15,43,44,45,46,47,48,50,62,13,67])))}),Tae=mt({getParentRoute:()=>Pn,path:"/features",component:It(()=>At(()=>import("./features-Dm70Q7yx.js"),__vite__mapDeps([145,117,23,24,25,8,13,12,73,39,87,88,35])))}),Cae=mt({getParentRoute:()=>Pn,path:"/brand-context",component:It(()=>At(()=>import("./brand-context-9Yb3slSI.js"),__vite__mapDeps([146,12,2,36,40,42,45,48,50,67,4,100,117,23,24,25,8,89,115])))}),Aae=mt({getParentRoute:()=>Pn,path:"/ai-providers",component:It(()=>At(()=>import("./ai-providers-BeDnUXfp.js"),__vite__mapDeps([147,29,117,23,24,25,8,63,87,88,35,59,12,20,57,58,11,60,61,10,13,85,78,1,4,7,65,83,2,37,30,32,41,46,86,50,69,66,49,89,115,84,67,106,45,48,148,54])))}),Iae=mt({getParentRoute:()=>Pn,path:"/members",component:It(()=>At(()=>import("./members-Cqt_7BbR.js"),__vite__mapDeps([149,125,90,1,36,38,31,25,118,99,120,41,117,23,24,8,150,142,106,7,68,18,83,2,37,100,134,151,133,12,67,66,49,88,47,48,78,109,110,64,45])))}),Mae=mt({getParentRoute:()=>Pn,path:"/roles",component:It(()=>At(()=>import("./roles-CvtZh-pA.js"),__vite__mapDeps([152,151,134,99,67,90,1,36,38,15,45,48,150,142,31,117,23,24,25,8,106,120,41,86,62,39,28,29,30,16,32,33,34,35,26,19,20,2,37,40,21,42,43,44,46,47,49,50,102,78,103,97,12,77,133,74,11,59,66,73,87,88]))),validateSearch:ul(()=>Ee({role:z().optional()}))}),Pae=mt({getParentRoute:()=>Pn,path:"/sso",component:It(()=>At(()=>import("./sso-JhZQ6pL0.js"),__vite__mapDeps([153,144,89,12,73,87,88,35,117,23,24,25,8,4,14,48])))}),Nae=mt({getParentRoute:()=>Pn,path:"/profile",component:It(()=>At(()=>import("./profile-BPcooE5z.js"),__vite__mapDeps([154,117,23,24,25,8,66,49,73,83,1,2,37,84,4,43,44,115,92,70,87,88,35])))}),kae=mt({getParentRoute:()=>Pn,path:"/store",component:It(()=>At(()=>import("./store-C86R69qX.js"),__vite__mapDeps([155,29,36,45,48,4,73,63,66,49,64,74,11,12,117,23,24,25,8,95,13,87,88,35])))}),Dae=mt({getParentRoute:()=>Pn,path:"/registry",component:It(()=>At(()=>import("./registry-BakIE_E6.js"),[]))}),Lae=mt({getParentRoute:()=>Pn,path:"/store/registry",component:It(()=>At(()=>import("./store-registry-5nvptnn0.js"),[]))}),$ae=mt({getParentRoute:()=>Pn,path:"/workflows",component:It(()=>At(()=>import("./workflow-BMafL0G7.js"),__vite__mapDeps([156,12,80,81,125,90,1,36,38,31,25,118,99,77,41,88,62,39,28,29,30,16,32,33,34,35,26,19,20,2,37,40,21,24,42,15,43,44,45,46,47,48,49,8,50,150,142,140,113,66,106,127,128,93,67,11,74,135,117,23])))}),jae=mt({getParentRoute:()=>Pn,path:"/workflows/$itemId",component:It(()=>At(()=>import("./workflow-detail-D6qKcXvR.js"),__vite__mapDeps([157,138,131,12,81,132,58,11,139,69,112,28,29,30,16,31,32,33,34,35,26,19,20,1,2,36,37,38,39,40,21,41,24,42,15,43,44,45,46,47,48,49,8,50,52,99,83,25,118,135,117,23,74,71,7,91,90,62,116,70,140,61,4])))}),Uae=mt({getParentRoute:()=>aE,path:"/plugins/$pluginId",component:It(()=>At(()=>import("./org-plugin-layout-njJjJMFT.js"),__vite__mapDeps([158,159,74,11,12,46,117,23,24,25,8])))}),zae=mt({getParentRoute:()=>Pn,path:"/agents",component:It(()=>At(()=>import("./agents-list-BQvdhOOb.js"),__vite__mapDeps([160,90,1,36,38,19,75,12,76,58,11,7,8,32,77,41,78,74,15,28,29,30,16,31,33,34,35,26,20,2,37,39,40,21,24,42,43,44,45,46,47,48,49,50,79,80,81,65,25,62,71,117,23,88,148,54,106,105,67,120])))}),Fae=mt({getParentRoute:()=>Pn,path:"/automations",component:It(()=>At(()=>import("./automations-CZsgh01M.js"),__vite__mapDeps([161,45,50,120,41,117,23,24,25,8,106,119,67,90,1,36,38,28,29,30,16,31,32,33,34,35,26,19,20,2,37,39,40,21,42,15,43,44,46,47,48,49,58,11,12,76])))}),C6=mt({getParentRoute:()=>T6,path:"/$pluginId",component:It(()=>At(()=>import("./dynamic-plugin-layout-bcffUnqq.js"),__vite__mapDeps([162,159,74,11,12,46,117,23,24,25,8])))}),Bae=[],Vae=[],qae=[],A6=[];dae.forEach(e=>{if(!e.setup)return;const t={parentRoute:C6,routing:{createRoute:mt,lazyRouteComponent:It},registerRootSidebarItem:n=>Bae.push({pluginId:e.id,...n}),registerSidebarGroup:n=>Vae.push({pluginId:e.id,...n}),registerSettingsSidebarItem:n=>qae.push({pluginId:e.id,...n}),registerPluginRoutes:n=>{A6.push(...n)}};e.setup(t)});const Hae=C6.addChildren(A6),Gae=Pn.addChildren([wae,Sae,Eae,xae,zae,Fae,Rae,Oae,Tae,Cae,Aae,Iae,Mae,Pae,Nae,kae,Lae,Dae,$ae,jae]),Kae=T6.addChildren([Hae]),Zae=aE.addChildren([Kae,Uae]),Yae=sE.addChildren([bae,Zae]),Wae=oE.addChildren([Yae,Gae]),Qae=iE.addChildren([vae,Wae]),Xae=ma.addChildren([Qae,_ae,fae,hae,pae,mae,gae]),Jae=d7({routeTree:Xae,defaultNotFoundComponent:()=>T.jsx("div",{className:"flex h-full items-center justify-center",children:T.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[T.jsx("h3",{className:"text-lg font-medium text-foreground",children:"Page not found"}),T.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:"The page you are looking for does not exist or has been moved."}),T.jsx("button",{type:"button",onClick:()=>window.history.back(),className:"text-sm text-primary hover:underline",children:"Go back"})]})})}),ele=document.getElementById("root");X$.createRoot(ele).render(T.jsx(I.StrictMode,{children:T.jsx(p7,{router:Jae})}));export{ZM as $,Ple as A,W1 as B,nG as C,To as D,oce as E,tce as F,rce as G,Ee as H,St as I,z as J,KM as K,fw as L,jD as M,ule as N,gP as O,Wse as P,Kse as Q,Rg as R,UD as S,$J as T,Yr as U,ece as V,Bae as W,Vae as X,sae as Y,LD as Z,At as _,Dj as a,OV as a$,ale as a0,xo as a1,tee as a2,ht as a3,no as a4,uW as a5,dW as a6,yn as a7,lt as a8,fW as a9,n3 as aA,aY as aB,uY as aC,lY as aD,YZ as aE,qae as aF,nle as aG,Ut as aH,Xt as aI,Ie as aJ,eG as aK,Jle as aL,Xle as aM,HS as aN,vg as aO,LY as aP,R3 as aQ,J4 as aR,lf as aS,ta as aT,DY as aU,ds as aV,b4 as aW,jw as aX,Wr as aY,Pt as aZ,Ye as a_,hW as aa,gW as ab,wW as ac,M3 as ad,fl as ae,pW as af,mW as ag,vW as ah,_W as ai,yW as aj,bW as ak,SW as al,xW as am,RW as an,Ig as ao,dn as ap,hC as aq,Q1 as ar,oY as as,ro as at,Kd as au,Ww as av,jc as aw,aa as ax,fs as ay,io as az,Mg as b,iZ as b$,VP as b0,pw as b1,Ok as b2,Ck as b3,WW as b4,Wn as b5,SQ as b6,f3 as b7,X4 as b8,iae as b9,Rre as bA,Lre as bB,Yre as bC,Xre as bD,wre as bE,Ere as bF,Ore as bG,Tre as bH,$re as bI,Hre as bJ,Hle as bK,dae as bL,mV as bM,dle as bN,gle as bO,vq as bP,ul as bQ,qN as bR,KN as bS,hle as bT,ice as bU,iG as bV,rG as bW,d4 as bX,pf as bY,tZ as bZ,rZ as b_,la as ba,ne as bb,tle as bc,oZ as bd,$le as be,dP as bf,ca as bg,as as bh,Lle as bi,jle as bj,rn as bk,fle as bl,HN as bm,Fre as bn,Bre as bo,VS as bp,c6 as bq,qS as br,nv as bs,KD as bt,nie as bu,YD as bv,Qre as bw,uie as bx,bre as by,Sre as bz,rae as c,Kle as c$,af as c0,HM as c1,Ij as c2,E3 as c3,SY as c4,Fw as c5,p3 as c6,D4 as c7,Bw as c8,Gd as c9,toe as cA,pt as cB,Goe as cC,to as cD,JW as cE,hP as cF,Ile as cG,sZ as cH,aZ as cI,nZ as cJ,lZ as cK,Vz as cL,GD as cM,WD as cN,JD as cO,t6 as cP,n6 as cQ,i6 as cR,Vle as cS,qle as cT,Fle as cU,Ble as cV,ere as cW,zle as cX,QD as cY,e6 as cZ,r6 as c_,O4 as ca,zw as cb,Uw as cc,EY as cd,xY as ce,sQ as cf,aQ as cg,oQ as ch,Or as ci,cle as cj,XH as ck,WH as cl,GH as cm,r4 as cn,GV as co,Sw as cp,xV as cq,ple as cr,YV as cs,xw as ct,Ew as cu,JV as cv,mle as cw,Wle as cx,yse as cy,Qle as cz,dw as d,XD as d0,Yle as d1,kS as d2,hre as d3,Ule as d4,HD as d5,Lie as d6,qre as d7,Zle as d8,Cie as d9,Mie as da,fie as db,die as dc,Gle as dd,vle as de,VW as df,qW as dg,KW as dh,HW as di,GW as dj,ble as dk,wle as dl,Rle as dm,xle as dn,Tle as dp,Ole as dq,Cle as dr,Ele as ds,Sle as dt,yle as du,_le as dv,zM as dw,bO as dx,ile as dy,rle as dz,Ro as e,rf as f,uw as g,Nle as h,Mle as i,T as j,kle as k,$D as l,nce as m,kj as n,nw as o,NM as p,Zn as q,I as r,Jne as s,Dle as t,lle as u,sle as v,GM as w,OT as x,NS as y,Oo as z};
|
|
171
|
+
`),document.head.appendChild(r)}}function eae(e){const t=Ro.c(9),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:KM.publicConfig(),queryFn:Xse,staleTime:1/0},t[0]=r):r=t[0];const{data:i}=GM(r),[s]=Wse();i.internalUrl&&zse(i.internalUrl);let l,c;t[1]!==i.theme?(l=()=>{Jse(i.theme)},c=[i.theme],t[1]=i.theme,t[2]=l,t[3]=c):(l=t[2],c=t[3]),I.useLayoutEffect(l,c);let d,f;t[4]!==s.theme?(d=()=>{const p=document.documentElement;if(s.theme==="dark"){p.classList.add("dark");return}if(s.theme==="light"){p.classList.remove("dark");return}const g=window.matchMedia("(prefers-color-scheme: dark)"),v=b=>p.classList.toggle("dark",b);v(g.matches);const y=b=>v(b.matches);return g.addEventListener("change",y),()=>g.removeEventListener("change",y)},f=[s.theme],t[4]=s.theme,t[5]=d,t[6]=f):(d=t[5],f=t[6]),I.useLayoutEffect(d,f);let m;return t[7]!==n?(m=T.jsx(T.Fragment,{children:n}),t[7]=n,t[8]=m):m=t[8],m}const tae=new wj({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});function nae(e){const t=Ro.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=T.jsx(pH,{}),t[0]=r):r=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx(UD,{}),t[1]=i):i=t[1];let s;return t[2]!==n?(s=T.jsxs(Sj,{client:tae,children:[r,T.jsx(I.Suspense,{fallback:i,children:T.jsx(eae,{children:T.jsx($j,{children:T.jsx(Bee,{children:T.jsx(Qne,{children:n})})})})})]}),t[2]=n,t[3]=s):s=t[3],s}function rae(...e){return VP(pw(e))}const iae=b4("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:hover:bg-input/50 card-shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",special:"bg-special text-special-foreground hover:bg-special/90 focus-visible:ring-special/20 dark:focus-visible:ring-special/40",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground"},size:{default:"h-8 px-3 has-[>svg]:px-2.5",sm:"h-7 gap-1.5 px-2.5 has-[>svg]:px-2",xs:"h-6 gap-1 px-1.5 text-xs has-[>svg]:px-1",lg:"h-10 px-3.5 has-[>svg]:px-3",icon:"size-8","icon-sm":"size-7"}},defaultVariants:{variant:"default",size:"default"}});function W1(e){const t=Ro.c(14);let n,r,i,s,l;t[0]!==e?({className:n,variant:l,size:i,asChild:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=s,t[5]=l):(n=t[1],r=t[2],i=t[3],s=t[4],l=t[5]);const d=(s===void 0?!1:s)?jw:"button";let f;t[6]!==n||t[7]!==i||t[8]!==l?(f=rae(iae({variant:l,size:i,className:n})),t[6]=n,t[7]=i,t[8]=l,t[9]=f):f=t[9];let m;return t[10]!==d||t[11]!==r||t[12]!==f?(m=T.jsx(d,{"data-slot":"button",className:f,...r}),t[10]=d,t[11]=r,t[12]=f,t[13]=m):m=t[13],m}const AM="__mesh_chunk_reload_ts";function IM(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class oce extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n),DD(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:T.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(NS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(W1,{variant:"outline",onClick:this.resetError,children:"Try again"})]})}return this.props.children}}class oae extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n);const r=IM(t);if(DD(t,{boundary:"chunk_root",is_chunk_load_error:r,error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!r)return;const i=sessionStorage.getItem(AM),s=Date.now();(!i||s-Number(i)>1e4)&&(sessionStorage.setItem(AM,String(s)),window.location.reload())}render(){return this.state.hasError&&IM(this.state.error)?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:T.jsx(jD,{className:"h-6 w-6 text-primary"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"New version available"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:"A new version has been deployed. Refresh to continue."})]}),T.jsx(W1,{onClick:()=>window.location.reload(),children:"Refresh"})]}):this.state.hasError?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(NS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(W1,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:"Try again"})]}):this.props.children}}const sae="MCP Workflows",aae="Create workflows using your MCP tools",lae=I.lazy(()=>At(()=>import("./plugin-header-apdmEPGc.js"),__vite__mapDeps([0,1,2]))),cae=I.lazy(()=>At(()=>import("./plugin-empty-state-PqSYiLpp.js"),[])),uae={id:sae,description:aae,bindingName:"WORKFLOW",renderHeader:e=>T.jsx(lae,{...e}),renderEmptyState:()=>T.jsx(cae,{}),setup:e=>{e.registerSettingsSidebarItem({key:"workflows",icon:T.jsx(LD,{size:14}),label:"MCP Workflows",to:"/$org/settings/workflows"})}},dae=[uae],ma=n7({component:()=>T.jsx(oae,{children:T.jsx(nae,{children:T.jsx(I.Suspense,{fallback:T.jsx(UD,{}),children:T.jsx(gP,{})})})})}),fae=mt({getParentRoute:()=>ma,path:"/login",component:It(()=>At(()=>import("./login-Dp5n-o6e.js"),__vite__mapDeps([3,4]))),validateSearch:ul(()=>Ee({next:z().optional(),client_id:z().optional(),redirect_uri:z().optional(),response_type:z().optional(),state:z().optional(),scope:z().optional(),code_challenge:z().optional(),code_challenge_method:z().optional()}))}),hae=mt({getParentRoute:()=>ma,path:"/reset-password",component:It(()=>At(()=>import("./reset-password-BILcwCX-.js"),__vite__mapDeps([5,4]))),validateSearch:ul(()=>Ee({token:z().optional(),error:z().optional()}))}),pae=mt({getParentRoute:()=>ma,path:"/auth/$pathname",component:It(()=>At(()=>import("./auth-catchall-Cqm9tpGx.js"),[]))}),mae=mt({getParentRoute:()=>ma,path:"/oauth/callback",component:It(()=>At(()=>import("./oauth-callback-Dgudf75C.js"),[]))}),gae=mt({getParentRoute:()=>ma,path:"/oauth/callback/ai-provider",component:It(()=>At(()=>import("./oauth-callback-ai-provider-EanhHzQY.js"),[]))}),iE=mt({getParentRoute:()=>ma,id:"shell",component:It(()=>At(()=>import("./shell-layout-C4Qbz79U.js").then(e=>e.s),__vite__mapDeps([6,7,8,9,10,11,12,13,14,15,16])))}),vae=mt({getParentRoute:()=>iE,path:"/",beforeLoad:async()=>{const{data:e}=await Mg.organization.list();if(!e)return;const t=e.filter(i=>!i.metadata?.archived),n=localStorage.getItem(Rg.lastOrgSlug());if(n){if(t.some(s=>s.slug===n))throw Oc({to:"/$org",params:{org:n}});localStorage.removeItem(Rg.lastOrgSlug())}const r=t[0];throw Oc(r?{to:"/$org",params:{org:r.slug}}:{to:"/onboarding"})}}),_ae=mt({getParentRoute:()=>ma,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await Mg.organization.list(),t=e?.filter(n=>!n.metadata?.archived);if(t&&t.length>0)throw Oc({to:"/"})},component:It(()=>At(()=>import("./onboarding-CN7qNa98.js"),__vite__mapDeps([17,9,4,18,19,20,21])))}),oE=mt({getParentRoute:()=>iE,path:"/$org",component:It(()=>At(()=>import("./org-layout-CdBnaGi6.js"),[]))}),sE=mt({getParentRoute:()=>oE,id:"org-shell",component:It(()=>At(()=>import("./index-D7tifyXI.js"),__vite__mapDeps([22,23,24,25,8,26,27,28,29,30,16,31,32,33,34,35,19,20,1,2,36,37,38,39,40,21,41,42,15,43,44,45,46,47,48,49,50,6,7,9,10,11,12,13,14,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,18,4,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107])))}),aE=mt({getParentRoute:()=>sE,id:"agent-shell",component:It(()=>At(()=>import("./index-4U7gRnbz.js"),__vite__mapDeps([108,72,7,8,73,4,74,11,12,75,76,58,32,77,41,78,1,15,28,29,30,16,31,33,34,35,26,19,20,2,36,37,38,39,40,21,24,42,43,44,45,46,47,48,49,50,79,80,81,65,25,62,71,57,59,60,61,10,13,6,9,14,51,52,53,54,55,56,69,82,68,18,83,84,85,63,86,66,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,109,110,64,27,23,67,70,104,105,106,107,111,112,113,114,115,116,117,118,119,120,121])))}),yae=Ee({virtualmcpid:z().optional(),tab:z().optional(),main:z().optional(),id:z().optional(),toolName:z().optional(),tasks:St().optional(),mainOpen:St().optional(),chat:St().optional(),autosend:z().optional()}),T6=mt({getParentRoute:()=>aE,path:"/$taskId",validateSearch:yae,component:()=>null}),bae=mt({getParentRoute:()=>sE,path:"/",component:It(()=>At(()=>import("./index-MHifxSvC.js"),__vite__mapDeps([122,25,62,39,28,29,30,16,31,32,33,34,35,26,19,20,1,2,36,37,38,40,21,41,24,42,15,43,44,45,46,47,48,49,8,50,63,12,58,11,13,75,76,7,77,78,74,79,80,81,65,71,72,73,4,57,59,60,61,10,6,9,14,51,52,53,54,55,56,69,82,68,18,83,84,85,86,66,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,105])))}),Pn=mt({getParentRoute:()=>oE,path:"/settings",component:It(()=>At(()=>import("./settings-layout-Bg2zZUvB.js"),__vite__mapDeps([123,23,24,25,8,117,33,26,19,36,15,47,49,50,111,92,60,61])))}),wae=mt({getParentRoute:()=>Pn,path:"/",beforeLoad:({params:e})=>{throw Oc({to:"/$org/settings/general",params:{org:e.org}})},component:()=>null}),Sae=mt({getParentRoute:()=>Pn,path:"/connections",component:It(()=>At(()=>import("./connections-ClXPJSid.js"),__vite__mapDeps([124,80,81,125,90,1,36,38,31,25,118,99,120,41,98,94,93,95,74,11,12,13,96,97,79,88,62,39,28,29,30,16,32,33,34,35,26,19,20,2,37,40,21,24,42,15,43,44,45,46,47,48,49,8,50,106,117,23,126,67,102,127,128,78,7,65,68,18,4,83,100,58,101]))),validateSearch:ul(()=>Ee({action:dn(["create"]).optional(),tab:dn(["all","connected"]).optional()}))}),Eae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug",component:It(()=>At(()=>import("./connection-detail-sPm6-FQh.js"),__vite__mapDeps([129,80,81,106,101,4,45,48,130,12,71,28,29,30,16,31,32,33,34,35,26,19,20,1,2,36,37,38,39,40,21,41,24,42,15,43,44,46,47,49,8,50,74,11,131,132,79,95,13,83,25,110,64,58,105,76,114,99,56,133,134,66,82,62,23,68,18,126,67,135,117,136,93,77,88,90]))),validateSearch:ul(()=>Ee({tab:z().optional()}))}),xae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug/$collectionName/$itemId",component:It(()=>At(()=>import("./collection-detail-BVdBCgeZ.js"),__vite__mapDeps([137,106,11,12,68,18,4,100,135,117,23,24,25,8,138,131,81,132,58,139,69,112,28,29,30,16,31,32,33,34,35,26,19,20,1,2,36,37,38,39,40,21,41,42,15,43,44,45,46,47,48,49,50,52,99,83,118,74,71,7,91,90,62,116,70,140,61,56,130,79,80,95,13,110,64,105,76,93,114,55,57,59,60,10,6,9,14]))),validateSearch:ul(()=>Ee({replayId:z().optional()}))}),Rae=mt({getParentRoute:()=>Pn,path:"/monitor",component:It(()=>At(()=>import("./index-CPY1FvNi.js"),__vite__mapDeps([141,120,41,117,23,24,25,8,106,99,64,1,34,44,28,29,30,16,31,32,33,35,26,19,20,2,36,37,38,39,40,21,42,15,43,45,46,47,48,49,50,139,69,133,134,74,11,12,58,4,78,109,110,83,116,100,98,73,18,62,66,88,136,132,71,93,103,97,142,102,96,51,52,53,54,7,55,56,57,59,60,61,10,13,6,9,14,107]))),validateSearch:ul(()=>Ee({tab:dn(["overview","audit","threads"]).default("overview"),from:z().default("now-30m"),to:z().default("now"),connectionId:Ie(z()).optional().default([]),virtualMcpId:Ie(z()).optional().default([]),tool:z().default(""),status:dn(["all","success","errors"]).default("all"),search:z().default(""),page:St().optional(),streaming:Pt().default(!0),propertyFilters:z().default(""),hideSystem:Pt().default(!1)}))}),Oae=mt({getParentRoute:()=>Pn,path:"/general",component:It(()=>At(()=>import("./general-BkPw_hwG.js"),__vite__mapDeps([143,117,23,24,25,8,134,115,66,49,4,87,88,35,144,89,12,73,104,41,58,11,64,63,28,29,30,16,31,32,33,34,26,19,20,1,2,36,37,38,39,40,21,42,15,43,44,45,46,47,48,50,62,13,67])))}),Tae=mt({getParentRoute:()=>Pn,path:"/features",component:It(()=>At(()=>import("./features-CozjNW2D.js"),__vite__mapDeps([145,117,23,24,25,8,13,12,73,39,87,88,35])))}),Cae=mt({getParentRoute:()=>Pn,path:"/brand-context",component:It(()=>At(()=>import("./brand-context-CFaaMt6s.js"),__vite__mapDeps([146,12,2,36,40,42,45,48,50,67,4,100,117,23,24,25,8,89,115])))}),Aae=mt({getParentRoute:()=>Pn,path:"/ai-providers",component:It(()=>At(()=>import("./ai-providers-DRxrdzrJ.js"),__vite__mapDeps([147,29,117,23,24,25,8,63,87,88,35,59,12,20,57,58,11,60,61,10,13,85,78,1,4,7,65,83,2,37,30,32,41,46,86,50,69,66,49,89,115,84,67,106,45,48,148,54])))}),Iae=mt({getParentRoute:()=>Pn,path:"/members",component:It(()=>At(()=>import("./members-B4-cMOsS.js"),__vite__mapDeps([149,125,90,1,36,38,31,25,118,99,120,41,117,23,24,8,150,142,106,7,68,18,83,2,37,100,134,151,133,12,67,66,49,88,47,48,78,109,110,64,45])))}),Mae=mt({getParentRoute:()=>Pn,path:"/roles",component:It(()=>At(()=>import("./roles-EUFvZijn.js"),__vite__mapDeps([152,151,134,99,67,90,1,36,38,15,45,48,150,142,31,117,23,24,25,8,106,120,41,86,62,39,28,29,30,16,32,33,34,35,26,19,20,2,37,40,21,42,43,44,46,47,49,50,102,78,103,97,12,77,133,74,11,59,66,73,87,88]))),validateSearch:ul(()=>Ee({role:z().optional()}))}),Pae=mt({getParentRoute:()=>Pn,path:"/sso",component:It(()=>At(()=>import("./sso-ZW_bBsst.js"),__vite__mapDeps([153,144,89,12,73,87,88,35,117,23,24,25,8,4,14,48])))}),Nae=mt({getParentRoute:()=>Pn,path:"/profile",component:It(()=>At(()=>import("./profile-CDG3HHBU.js"),__vite__mapDeps([154,117,23,24,25,8,66,49,73,83,1,2,37,84,4,43,44,115,92,70,87,88,35])))}),kae=mt({getParentRoute:()=>Pn,path:"/store",component:It(()=>At(()=>import("./store-2-hWApJp.js"),__vite__mapDeps([155,29,36,45,48,4,73,63,66,49,64,74,11,12,117,23,24,25,8,95,13,87,88,35])))}),Dae=mt({getParentRoute:()=>Pn,path:"/registry",component:It(()=>At(()=>import("./registry-CBqcs7XA.js"),[]))}),Lae=mt({getParentRoute:()=>Pn,path:"/store/registry",component:It(()=>At(()=>import("./store-registry-01dPTj0W.js"),[]))}),$ae=mt({getParentRoute:()=>Pn,path:"/workflows",component:It(()=>At(()=>import("./workflow-BBU02wN2.js"),__vite__mapDeps([156,12,80,81,125,90,1,36,38,31,25,118,99,77,41,88,62,39,28,29,30,16,32,33,34,35,26,19,20,2,37,40,21,24,42,15,43,44,45,46,47,48,49,8,50,150,142,140,113,66,106,127,128,93,67,11,74,135,117,23])))}),jae=mt({getParentRoute:()=>Pn,path:"/workflows/$itemId",component:It(()=>At(()=>import("./workflow-detail-CoYIUlop.js"),__vite__mapDeps([157,138,131,12,81,132,58,11,139,69,112,28,29,30,16,31,32,33,34,35,26,19,20,1,2,36,37,38,39,40,21,41,24,42,15,43,44,45,46,47,48,49,8,50,52,99,83,25,118,135,117,23,74,71,7,91,90,62,116,70,140,61,4])))}),Uae=mt({getParentRoute:()=>aE,path:"/plugins/$pluginId",component:It(()=>At(()=>import("./org-plugin-layout-pmz_1-KP.js"),__vite__mapDeps([158,159,74,11,12,46,117,23,24,25,8])))}),zae=mt({getParentRoute:()=>Pn,path:"/agents",component:It(()=>At(()=>import("./agents-list-sQ_2-MIz.js"),__vite__mapDeps([160,90,1,36,38,19,75,12,76,58,11,7,8,32,77,41,78,74,15,28,29,30,16,31,33,34,35,26,20,2,37,39,40,21,24,42,43,44,45,46,47,48,49,50,79,80,81,65,25,62,71,117,23,88,148,54,106,105,67,120])))}),Fae=mt({getParentRoute:()=>Pn,path:"/automations",component:It(()=>At(()=>import("./automations-YzDLAcj1.js"),__vite__mapDeps([161,45,50,120,41,117,23,24,25,8,106,119,67,90,1,36,38,28,29,30,16,31,32,33,34,35,26,19,20,2,37,39,40,21,42,15,43,44,46,47,48,49,58,11,12,76])))}),C6=mt({getParentRoute:()=>T6,path:"/$pluginId",component:It(()=>At(()=>import("./dynamic-plugin-layout-DB9J-dmB.js"),__vite__mapDeps([162,159,74,11,12,46,117,23,24,25,8])))}),Bae=[],Vae=[],qae=[],A6=[];dae.forEach(e=>{if(!e.setup)return;const t={parentRoute:C6,routing:{createRoute:mt,lazyRouteComponent:It},registerRootSidebarItem:n=>Bae.push({pluginId:e.id,...n}),registerSidebarGroup:n=>Vae.push({pluginId:e.id,...n}),registerSettingsSidebarItem:n=>qae.push({pluginId:e.id,...n}),registerPluginRoutes:n=>{A6.push(...n)}};e.setup(t)});const Hae=C6.addChildren(A6),Gae=Pn.addChildren([wae,Sae,Eae,xae,zae,Fae,Rae,Oae,Tae,Cae,Aae,Iae,Mae,Pae,Nae,kae,Lae,Dae,$ae,jae]),Kae=T6.addChildren([Hae]),Zae=aE.addChildren([Kae,Uae]),Yae=sE.addChildren([bae,Zae]),Wae=oE.addChildren([Yae,Gae]),Qae=iE.addChildren([vae,Wae]),Xae=ma.addChildren([Qae,_ae,fae,hae,pae,mae,gae]),Jae=d7({routeTree:Xae,defaultNotFoundComponent:()=>T.jsx("div",{className:"flex h-full items-center justify-center",children:T.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[T.jsx("h3",{className:"text-lg font-medium text-foreground",children:"Page not found"}),T.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:"The page you are looking for does not exist or has been moved."}),T.jsx("button",{type:"button",onClick:()=>window.history.back(),className:"text-sm text-primary hover:underline",children:"Go back"})]})})}),ele=document.getElementById("root");X$.createRoot(ele).render(T.jsx(I.StrictMode,{children:T.jsx(p7,{router:Jae})}));export{ZM as $,Ple as A,W1 as B,nG as C,To as D,oce as E,tce as F,rce as G,Ee as H,St as I,z as J,KM as K,fw as L,jD as M,ule as N,gP as O,Wse as P,Kse as Q,Rg as R,UD as S,$J as T,Yr as U,ece as V,Bae as W,Vae as X,sae as Y,LD as Z,At as _,Dj as a,OV as a$,ale as a0,xo as a1,tee as a2,ht as a3,no as a4,uW as a5,dW as a6,yn as a7,lt as a8,fW as a9,n3 as aA,aY as aB,uY as aC,lY as aD,YZ as aE,qae as aF,nle as aG,Ut as aH,Xt as aI,Ie as aJ,eG as aK,Jle as aL,Xle as aM,HS as aN,vg as aO,LY as aP,R3 as aQ,J4 as aR,lf as aS,ta as aT,DY as aU,ds as aV,b4 as aW,jw as aX,Wr as aY,Pt as aZ,Ye as a_,hW as aa,gW as ab,wW as ac,M3 as ad,fl as ae,pW as af,mW as ag,vW as ah,_W as ai,yW as aj,bW as ak,SW as al,xW as am,RW as an,Ig as ao,dn as ap,hC as aq,Q1 as ar,oY as as,ro as at,Kd as au,Ww as av,jc as aw,aa as ax,fs as ay,io as az,Mg as b,iZ as b$,VP as b0,pw as b1,Ok as b2,Ck as b3,WW as b4,Wn as b5,SQ as b6,f3 as b7,X4 as b8,iae as b9,Rre as bA,Lre as bB,Yre as bC,Xre as bD,wre as bE,Ere as bF,Ore as bG,Tre as bH,$re as bI,Hre as bJ,Hle as bK,dae as bL,mV as bM,dle as bN,gle as bO,vq as bP,ul as bQ,qN as bR,KN as bS,hle as bT,ice as bU,iG as bV,rG as bW,d4 as bX,pf as bY,tZ as bZ,rZ as b_,la as ba,ne as bb,tle as bc,oZ as bd,$le as be,dP as bf,ca as bg,as as bh,Lle as bi,jle as bj,rn as bk,fle as bl,HN as bm,Fre as bn,Bre as bo,VS as bp,c6 as bq,qS as br,nv as bs,KD as bt,nie as bu,YD as bv,Qre as bw,uie as bx,bre as by,Sre as bz,rae as c,Kle as c$,af as c0,HM as c1,Ij as c2,E3 as c3,SY as c4,Fw as c5,p3 as c6,D4 as c7,Bw as c8,Gd as c9,toe as cA,pt as cB,Goe as cC,to as cD,JW as cE,hP as cF,Ile as cG,sZ as cH,aZ as cI,nZ as cJ,lZ as cK,Vz as cL,GD as cM,WD as cN,JD as cO,t6 as cP,n6 as cQ,i6 as cR,Vle as cS,qle as cT,Fle as cU,Ble as cV,ere as cW,zle as cX,QD as cY,e6 as cZ,r6 as c_,O4 as ca,zw as cb,Uw as cc,EY as cd,xY as ce,sQ as cf,aQ as cg,oQ as ch,Or as ci,cle as cj,XH as ck,WH as cl,GH as cm,r4 as cn,GV as co,Sw as cp,xV as cq,ple as cr,YV as cs,xw as ct,Ew as cu,JV as cv,mle as cw,Wle as cx,yse as cy,Qle as cz,dw as d,XD as d0,Yle as d1,kS as d2,hre as d3,Ule as d4,HD as d5,Lie as d6,qre as d7,Zle as d8,Cie as d9,Mie as da,fie as db,die as dc,Gle as dd,vle as de,VW as df,qW as dg,KW as dh,HW as di,GW as dj,ble as dk,wle as dl,Rle as dm,xle as dn,Tle as dp,Ole as dq,Cle as dr,Ele as ds,Sle as dt,yle as du,_le as dv,zM as dw,bO as dx,ile as dy,rle as dz,Ro as e,rf as f,uw as g,Nle as h,Mle as i,T as j,kle as k,$D as l,nce as m,kj as n,nw as o,NM as p,Zn as q,I as r,Jne as s,Dle as t,lle as u,sle as v,GM as w,OT as x,NS as y,Oo as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as ae,r as R,f as cn,s as lt,j as s,B as ne,x as Ve,c as le,b9 as Rn,n as Ys,K as At,E as os,d as zs,t as Bt}from"./index-
|
|
1
|
+
import{e as ae,r as R,f as cn,s as lt,j as s,B as ne,x as Ve,c as le,b9 as Rn,n as Ys,K as At,E as os,d as zs,t as Bt}from"./index-CB-9CUUW.js";import{S as Bs}from"./search-input-CITVGcCE.js";import{P as Ue}from"./index-DR62hZV9.js";import{E as dn}from"./empty-state-8-OQfGVL.js";import{B as Ke}from"./badge-CtvUEMa3.js";import{b as ct,P as dt,a as ut}from"./popover-DqPZrAPW.js";import{b as Mt,T as kt,a as Ct}from"./tooltip-Fw0r1Fnv.js";import{i as Ht}from"./Check-iLkh97pT.js";import{e as un,c as _t,n as Wn}from"./XCircle-B3Ec4xbl.js";import{a as Hs}from"./SearchMd-CRZSLxL6.js";import{i as Vs}from"./Play-B-SyQLb4.js";import{W as qs,X as Us,x as Ks,V as Gs}from"./agent-icon-C3ToZMO1.js";import{M as An}from"./monaco-editor-UJJyG6n2.js";import{u as Qs}from"./use-members-Cjc37mTg.js";import{u as $n}from"./use-connection-CGnX1bAr.js";import{S as mn,u as fn,i as Js,g as Xs,d as Zs}from"./constants-Byqq7P-x.js";import{b as ea}from"./use-virtual-mcp-CnvhxxMa.js";import{n as Ge}from"./Container-kWAyJ_HH.js";import{c as ta}from"./XClose-_fuYraP_.js";import{s as na}from"./Plus-Da0UZLbd.js";import{s as sa}from"./Trash01-_0GJuf6O.js";import{I as pt}from"./input-DNFaDN-t.js";import{C as Yn}from"./checkbox-Cs8wVTnP.js";import{t as gt}from"./ChevronDown-hAIeVVjO.js";import{d as aa,C as ra,b as zn,e as oa,a as ia,f as la}from"./command-Gp6-PTcb.js";import{a as Pt,b as Tt,c as Ot,d as Re,S as Ft}from"./select-D2rWlduK.js";import{S as ca}from"./scroll-area-C80z-i4l.js";import{a as da}from"./ZapSquare-Bp-Tac0d.js";import{i as ua}from"./ChevronRight-DvySy092.js";import{T as ma}from"./textarea-tUo13Bze.js";import{C as is}from"./collection-tabs-Cx7Fw5pB.js";import{S as fa}from"./switch-qhfo8Vps.js";import{L as ha}from"./label-EPch60Re.js";import{I as ze}from"./integration-icon-Bt36uZm6.js";import{A as $t}from"./avatar-BzKxqu3b.js";import{C as ls}from"./card-DTHqwNV7.js";import{K as st}from"./monitoring-stats-row-Ba3ar8Om.js";import{c as cs}from"./use-mcp-tools-DbRVIPCe.js";import{g as xa}from"./connection-slug-eyAPH6o3.js";import{u as ds}from"./useSuspenseInfiniteQuery-DLoMCiwp.js";import{p as us,c as ms,d as fs,e as hs}from"./sidebar-BWu_ePOy.js";import{T as ke,a as mt,b as hn,c as xn,d as pn,e as ce}from"./table-DT9Lwdc9.js";import{n as xs}from"./ChevronUp-nRc3sEaT.js";import{u as gn}from"./use-infinite-scroll-SPOySZcn.js";import{u as pa}from"./useInfiniteQuery-BECdJto-.js";import{w as ga,x as va}from"./pair-C-m8tavv.js";import{S as Lt}from"./task-status-CNZzETah.js";import"./AlertCircle-8gO1aXOV.js";import"./Tool01-Cmmu87hJ.js";import"./Archive-CpwaQ9i2.js";import"./RefreshCcw01-DjbieO7J.js";import"./ArrowNarrowLeft-Bj9BOs-z.js";import"./ArrowUpRight-CGIcPNOI.js";import"./Users03-BRhtwP3R.js";import"./CheckCircle-BqxncqLD.js";import"./DotsVertical-C-S6nCss.js";import"./Star01-DKC04CRs.js";import"./Palette-BcbDyirO.js";import"./LayoutLeft-JykQcN-j.js";import"./LinkExternal01-BxIXc_ra.js";import"./Lock01-mA7QgL2y.js";import"./Sun-BmooIo9H.js";import"./Settings02-CRn2TAbB.js";import"./Shield01-mkPGOpR6.js";import"./User01-BeQhAfkv.js";import"./X-BIBUzPXw.js";import"./Zap-C2Ojyfeu.js";import"./spinner-WgqEYOpc.js";import"./use-org-auth-client-CH982N7h.js";import"./use-collections-B62mMH76.js";import"./index-BbzWWop6.js";import"./index-Bb5AeDnq.js";import"./infiniteQueryObserver-B8WYxU9o.js";import"./index-C_u8z90u.js";import"./use-copy-S7d6ccvS.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./dialog-CVU8C65F.js";import"./content-blocks-o63cs2vh.js";import"./types-SLEmji6U.js";import"./chat-context-DxzvANdp.js";import"./use-ai-providers-C-k1YUCw.js";import"./use-decopilot-events-CD5HmYFC.js";import"./create-sse-subscription-CxkOgzKf.js";import"./use-tasks-Buj64kOD.js";import"./use-organization-settings-gXH8ly7B.js";import"./shell-layout-C4Qbz79U.js";import"./required-auth-layout-DNLyc-Jc.js";import"./use-org-sso-DyRmCzkM.js";const tn={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3};function Qe(t){return t.filter(e=>e.key.trim()).map(e=>{const n=encodeURIComponent(e.key.trim()),a=encodeURIComponent(e.value||"");return`${n}:${e.operator}:${a}`}).join(",")}function ba(t){return t?t.split(",").map(e=>{const[n,a,...r]=e.split(":");return{key:decodeURIComponent(n||""),operator:a||"eq",value:decodeURIComponent(r.join(":")||"")}}):[]}function St(t){return t.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
|
|
2
2
|
`)}function Bn(t){return t.trim()?t.split(`
|
|
3
3
|
`).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{if(e.endsWith("?"))return{key:e.slice(0,-1),operator:"exists",value:""};if(e.includes("=")){const[n,...a]=e.split("=");return{key:n||"",operator:"eq",value:a.join("=")}}if(e.includes("~")){const[n,...a]=e.split("~");return{key:n||"",operator:"contains",value:a.join("~")}}if(e.includes("@")){const[n,...a]=e.split("@");return{key:n||"",operator:"in",value:a.join("@")}}return{key:e,operator:"exists",value:""}}):[]}function ya(t){const e={},n={},a=[],r={};for(const o of t)if(o.key.trim())switch(o.operator){case"eq":o.value&&(e[o.key]=o.value);break;case"contains":o.value&&(n[o.key]=`%${o.value}%`);break;case"exists":a.push(o.key);break;case"in":o.value&&(r[o.key]=o.value);break}return{properties:Object.keys(e).length>0?e:void 0,propertyPatterns:Object.keys(n).length>0?n:void 0,propertyKeys:a.length>0?a:void 0,propertyInValues:Object.keys(r).length>0?r:void 0}}function Hn(t){if(!t)return{content:"null",isTruncated:!1,originalSize:4};if(typeof t._decocms_truncated=="string")return{content:t._decocms_truncated,isTruncated:!0,originalSize:t._decocms_truncated.length};const e=JSON.stringify(t,null,2),n=e.length;return n<=tn.maxJsonRenderSize?{content:e,isTruncated:!1,originalSize:n}:{content:e.slice(0,tn.maxJsonRenderSize)+`
|
|
4
4
|
|