@decocms/mesh 1.7.0 → 1.9.0
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-BPiWR69f.js → AlertCircle-BrGqb-qb.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CnWcM-Nt.js → ArrowLeft-B6h573ak.js} +1 -1
- package/dist/client/assets/{ChevronDown-CzJqGT44.js → ChevronDown-BuogCeI0.js} +1 -1
- package/dist/client/assets/{Clock-DfIJLD0U.js → Clock-LzAlJ-1R.js} +1 -1
- package/dist/client/assets/{Code01-BqdRSdUi.js → Code01-Wll8WS4F.js} +1 -1
- package/dist/client/assets/{Copy01-Bsnbushh.js → Copy01-_s71W2Ph.js} +1 -1
- package/dist/client/assets/{CpuChip02-C8zbTCUz.js → CpuChip02-BwTl0fBj.js} +1 -1
- package/dist/client/assets/{DotsVertical-Dld0ppCR.js → DotsVertical-BQk5hPxb.js} +1 -1
- package/dist/client/assets/{File06-BqXxPQ9_.js → File06-CpSSTggW.js} +1 -1
- package/dist/client/assets/{FlipBackward-DfSp-QEd.js → FlipBackward-C0O2fx27.js} +1 -1
- package/dist/client/assets/{GitBranch01-D-IJ3Rmm.js → GitBranch01-DjmPf135.js} +1 -1
- package/dist/client/assets/{Grid01-BGAyn8Yw.js → Grid01-CmB5R6oU.js} +1 -1
- package/dist/client/assets/{Inbox01-WG7d7KAj.js → Inbox01-Ct-8Lwpv.js} +1 -1
- package/dist/client/assets/InfoCircle-D6JXYJn_.js +1 -0
- package/dist/client/assets/{Key01-BVEDd5ss.js → Key01-ZVAVplBN.js} +1 -1
- package/dist/client/assets/LinkExternal01-DfHTXuZ9.js +1 -0
- package/dist/client/assets/{Loading01-C25_IOHO.js → Loading01-0wYmSKV6.js} +1 -1
- package/dist/client/assets/{Lock01-BrE0URxO.js → Lock01-D5nrmOSx.js} +1 -1
- package/dist/client/assets/{Play-DMQjilHa.js → Play-BedrzKsi.js} +1 -1
- package/dist/client/assets/{Plus-BICwTwx2.js → Plus-DofiSAMU.js} +1 -1
- package/dist/client/assets/{SearchMd-BfdAKKpi.js → SearchMd-D70t5LVP.js} +1 -1
- package/dist/client/assets/{Terminal-BnLcMoVf.js → Terminal-CStBCUAd.js} +1 -1
- package/dist/client/assets/{Trash01-COqd_w6V.js → Trash01-DnTS63e5.js} +1 -1
- package/dist/client/assets/{X-BS9TixYK.js → X-DeVUfdHG.js} +1 -1
- package/dist/client/assets/{XClose-BbtISBJv.js → XClose-5A0s2w1d.js} +1 -1
- package/dist/client/assets/{alert-dialog-BDXuXliX.js → alert-dialog-BU8uTWb8.js} +1 -1
- package/dist/client/assets/{auth-q6-9Qro0.js → auth-DpA5_jth.js} +1 -1
- package/dist/client/assets/{auth-catchall-C96Z5CEi.js → auth-catchall-2WBu6I6H.js} +1 -1
- package/dist/client/assets/{avatar-B8vG4Uqa.js → avatar-KDpJ2jsd.js} +1 -1
- package/dist/client/assets/{badge-C1bAg12O.js → badge-CStgouQf.js} +1 -1
- package/dist/client/assets/{button-DGQafcd8.js → button-IijH0wdI.js} +1 -1
- package/dist/client/assets/{card-CYr6OLlA.js → card-BnWpolEI.js} +1 -1
- package/dist/client/assets/{checkbox-CaJyqy-O.js → checkbox-BYeNlYdH.js} +1 -1
- package/dist/client/assets/collection-detail-DnxFiEu9.js +165 -0
- package/dist/client/assets/{collection-display-button-KGOe_g_c.js → collection-display-button-2ZQ5sQTW.js} +1 -1
- package/dist/client/assets/{collection-header-BTdNES9r.js → collection-header-DBUE7n6H.js} +1 -1
- package/dist/client/assets/{collection-page-zdZke2gS.js → collection-page-BHk1uJKe.js} +1 -1
- package/dist/client/assets/{collection-search-B3tGk-LW.js → collection-search-CM9rltH6.js} +1 -1
- package/dist/client/assets/{collection-tab-DSAVfRke.js → collection-tab-ClOnLgHC.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BX_y9ddJ.js → collection-table-wrapper-BRI7T6RJ.js} +1 -1
- package/dist/client/assets/{connection-card-CjFdHSFM.js → connection-card-DMv3uM_n.js} +1 -1
- package/dist/client/assets/{connection-detail-BA5ZpgfC.js → connection-detail-Cs5NpuH7.js} +1 -1
- package/dist/client/assets/{connections-D-_nUNdM.js → connections-DSbytdP0.js} +1 -1
- package/dist/client/assets/constants-TKUQnnwA.js +1 -0
- package/dist/client/assets/{create-organization-dialog-CGAUGBhL.js → create-organization-dialog-DbNHSUuq.js} +1 -1
- package/dist/client/assets/{dialog-Dpiwsgfz.js → dialog-CJsBFVDy.js} +1 -1
- package/dist/client/assets/{dropdown-menu-B9xMQj69.js → dropdown-menu-BvLCKekW.js} +1 -1
- package/dist/client/assets/{empty-state-BeSrv53i.js → empty-state-Bg-FRZa4.js} +1 -1
- package/dist/client/assets/{env-vars-editor-CGSk8J9z.js → env-vars-editor-Z7SwcUr8.js} +1 -1
- package/dist/client/assets/{error-boundary-wmq9HPr0.js → error-boundary-CsEoagci.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CpBGc1Lc.js → extract-connection-data-BgA1QcA6.js} +1 -1
- package/dist/client/assets/{form-D_YgJ7e_.js → form-BjarY-Jq.js} +1 -1
- package/dist/client/assets/{formatDistanceToNow-Ds7vgs-h.js → formatDistanceToNow-fhdySMxO.js} +1 -1
- package/dist/client/assets/gateway-detail-DeFxNps5.js +1 -0
- package/dist/client/assets/{gateways-DNlHFwW1.js → gateways-CXlSFkKr.js} +1 -1
- package/dist/client/assets/{home-M_DzttVm.js → home-BXCs6vTQ.js} +1 -1
- package/dist/client/assets/index-9pHY4m3c.css +1 -0
- package/dist/client/assets/{index-D0CEOhNr.js → index-BGEzzv-W.js} +1 -1
- package/dist/client/assets/{index-Ddg6ZSnz.js → index-BLgTJ8o3.js} +2 -2
- package/dist/client/assets/{index-SXKJnrpI.js → index-B_OB0BCO.js} +1 -1
- package/dist/client/assets/{index-DLujruNe.js → index-CRGUNI2v.js} +1 -1
- package/dist/client/assets/{input-B4ervJqC.js → input-BxywPo2X.js} +1 -1
- package/dist/client/assets/{layout-DI3tY0Jg.js → layout-Dfp1nH3g.js} +1 -1
- package/dist/client/assets/lazy-highlighter-DYlTa9LA.js +9 -0
- package/dist/client/assets/{localstorage-keys-B9p3fxpE.js → localstorage-keys-Bj9V9Nbd.js} +1 -1
- package/dist/client/assets/{login-Bb9ke2MY.js → login-BfaeBzql.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DJdQFUv3.js → mcp-oauth-Vd_yzV5S.js} +1 -1
- package/dist/client/assets/{members-DVNMtilz.js → members-fIe1QSNh.js} +1 -1
- package/dist/client/assets/monaco-editor-mQfzbJMr.js +19 -0
- package/dist/client/assets/monitoring-I1RqzeAN.js +4 -0
- package/dist/client/assets/{oauth-callback-BX9ETVvQ.js → oauth-callback-Cwog6Jzh.js} +1 -1
- package/dist/client/assets/{page-DsxVj63x.js → page-BVptnX4j.js} +2 -2
- package/dist/client/assets/{pin-to-sidebar-button-BKGCvVX6.js → pin-to-sidebar-button-C8t5xznu.js} +1 -1
- package/dist/client/assets/{popover-CgilhutT.js → popover-CwHNob2q.js} +1 -1
- package/dist/client/assets/{resizable-DsS5puYc.js → resizable-DybyPt6-.js} +1 -1
- package/dist/client/assets/{resource-tabs-DoDLyAeo.js → resource-tabs-s0IiCCzU.js} +1 -1
- package/dist/client/assets/{responsive-select-Db26zo9M.js → responsive-select-INSf3elv.js} +1 -1
- package/dist/client/assets/{select-twBCjq69.js → select-C0rvNlZx.js} +1 -1
- package/dist/client/assets/{settings-CVfx5hka.js → settings-3Or8ShnF.js} +1 -1
- package/dist/client/assets/{shell-layout-DCe42qoz.js → shell-layout-4x0MHQQc.js} +3 -3
- package/dist/client/assets/{spinner-Dx5oa4h9.js → spinner-D7ZAVJCR.js} +1 -1
- package/dist/client/assets/{store-BJT-rcWj.js → store-Bl_0XUq8.js} +1 -1
- package/dist/client/assets/store-app-detail--3qLKygc.js +1 -0
- package/dist/client/assets/{switch-CBPgVkl4.js → switch-D37mVt_9.js} +1 -1
- package/dist/client/assets/{textarea-OX-GeuN9.js → textarea-DNeEC-Sl.js} +1 -1
- package/dist/client/assets/{thread-history-popover-BTd50eKs.js → thread-history-popover-CykPOF9f.js} +33 -33
- package/dist/client/assets/{tools-list-C94gLEYQ.js → tools-list-CFmwpEf4.js} +1 -1
- package/dist/client/assets/{tooltip-D8OED8cS.js → tooltip-CSuczTFq.js} +1 -1
- package/dist/client/assets/{types-DJryM_sg.js → types-CJK7iTsI.js} +2 -2
- package/dist/client/assets/{use-binding-DALTy821.js → use-binding-C5e_Y70M.js} +1 -1
- package/dist/client/assets/{use-connection-bHHmK9mi.js → use-connection-CsPrFY0x.js} +1 -1
- package/dist/client/assets/{use-connection-resources-DFv5BDo6.js → use-connection-resources-CjjFKWSM.js} +1 -1
- package/dist/client/assets/{use-gateway-Dz9z17ME.js → use-gateway-Bz_y7oh7.js} +1 -1
- package/dist/client/assets/{use-list-state-BhMQxwiZ.js → use-list-state-B13SO1z3.js} +1 -1
- package/dist/client/assets/{use-mcp-DgFeI4fa.js → use-mcp-CPBDJGOj.js} +1 -1
- package/dist/client/assets/{use-members-Xa9kgxtY.js → use-members-b3tDRslY.js} +1 -1
- package/dist/client/assets/{use-mobile-oCggWXvr.js → use-mobile-VYFif8jU.js} +1 -1
- package/dist/client/assets/{use-organization-settings-cNGS6Euq.js → use-organization-settings-i4aS_Egu.js} +1 -1
- package/dist/client/assets/{use-tool-call-D3vebIRo.js → use-tool-call-BdbJ3oy8.js} +1 -1
- package/dist/client/assets/useQuery-DXchCtgN.js +1 -0
- package/dist/client/assets/{useSuspenseInfiniteQuery-DbaWYvOU.js → useSuspenseInfiniteQuery-BLpBJxLd.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-CKl6PJqr.js → view-mode-toggle-BXo-WMnB.js} +1 -1
- package/dist/client/assets/{workflow-Cx97hdFm.js → workflow-wGJTSVc-.js} +1 -1
- package/dist/client/index.html +2 -2
- package/package.json +1 -3
- package/dist/client/assets/LinkExternal01-754qZCAw.js +0 -1
- package/dist/client/assets/collection-detail-Cu_HUqcL.js +0 -183
- package/dist/client/assets/constants-DOHmO1ep.js +0 -1
- package/dist/client/assets/core-CqC2GVou.js +0 -6
- package/dist/client/assets/gateway-detail-D76LyPqO.js +0 -1
- package/dist/client/assets/index-B3GsxHkT.css +0 -1
- package/dist/client/assets/json-1el7bQkh.js +0 -1
- package/dist/client/assets/json-BESjz4hO.js +0 -1
- package/dist/client/assets/json-syntax-highlighter-C24L-Dcz.js +0 -2
- package/dist/client/assets/lazy-highlighter-B_9Ne15K.js +0 -4
- package/dist/client/assets/monitoring-Dtmkvdkl.js +0 -4
- package/dist/client/assets/prism-light-BjmAUPsT.js +0 -1
- package/dist/client/assets/store-app-detail-BRGaOqlr.js +0 -1
- package/dist/client/assets/useQuery-BvjuXhZf.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{B as o}from"./use-binding-DALTy821.js";import{aN as a}from"./index-Ddg6ZSnz.js";const e="mcp.mesh",m="mcp.mesh/publisher-provided",c=a(o,{target:"draft-07"});export{c as B,m as M,e as a};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{F as te,a2 as Ae}from"./index-Ddg6ZSnz.js";function fn(){return fn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},fn.apply(null,arguments)}function bt(e,n){if(e==null)return{};var a={};for(var t in e)if({}.hasOwnProperty.call(e,t)){if(n.indexOf(t)!==-1)continue;a[t]=e[t]}return a}function wt(e,n){if(e==null)return{};var a,t,c=bt(e,n);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(e);for(t=0;t<d.length;t++)a=d[t],n.indexOf(a)===-1&&{}.propertyIsEnumerable.call(e,a)&&(c[a]=e[a])}return c}function dn(e,n){(n==null||n>e.length)&&(n=e.length);for(var a=0,t=Array(n);a<n;a++)t[a]=e[a];return t}function xt(e){if(Array.isArray(e))return dn(e)}function St(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kt(e,n){if(e){if(typeof e=="string")return dn(e,n);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?dn(e,n):void 0}}function At(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pn(e){return xt(e)||St(e)||kt(e)||At()}function me(e){"@babel/helpers - typeof";return me=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},me(e)}function Ct(e,n){if(me(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var t=a.call(e,n);if(me(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function Ft(e){var n=Ct(e,"string");return me(n)=="symbol"?n:n+""}function it(e,n,a){return(n=Ft(n))in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function Sn(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),a.push.apply(a,t)}return a}function pe(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?Sn(Object(a),!0).forEach(function(t){it(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Sn(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function Lt(e){var n=e.length;if(n===0||n===1)return e;if(n===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(n===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(n>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var Ee={};function Nt(e){if(e.length===0||e.length===1)return e;var n=e.join(".");return Ee[n]||(Ee[n]=Lt(e)),Ee[n]}function Ot(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,t=e.filter(function(d){return d!=="token"}),c=Nt(t);return c.reduce(function(d,g){return pe(pe({},d),a[g])},n)}function kn(e){return e.join(" ")}function Tt(e,n){var a=0;return function(t){return a+=1,t.map(function(c,d){return lt({node:c,stylesheet:e,useInlineStyles:n,key:"code-segment-".concat(a,"-").concat(d)})})}}function lt(e){var n=e.node,a=e.stylesheet,t=e.style,c=t===void 0?{}:t,d=e.useInlineStyles,g=e.key,o=n.properties,h=n.type,k=n.tagName,A=n.value;if(h==="text")return A;if(k){var m=Tt(a,d),b;if(!d)b=pe(pe({},o),{},{className:kn(o.className)});else{var y=Object.keys(a).reduce(function(F,l){return l.split(".").forEach(function(i){F.includes(i)||F.push(i)}),F},[]),w=o.className&&o.className.includes("token")?["token"]:[],x=o.className&&w.concat(o.className.filter(function(F){return!y.includes(F)}));b=pe(pe({},o),{},{className:kn(x)||void 0,style:Ot(o.className,Object.assign({},o.style,c),a)})}var S=m(n.children);return te.createElement(k,fn({key:g},b),S)}}const Et=(function(e,n){var a=e.listLanguages();return a.indexOf(n)!==-1});var qt=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function An(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),a.push.apply(a,t)}return a}function ae(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?An(Object(a),!0).forEach(function(t){it(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):An(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var jt=/\n/g;function $t(e){return e.match(jt)}function It(e){var n=e.lines,a=e.startingLineNumber,t=e.style;return n.map(function(c,d){var g=d+a;return te.createElement("span",{key:"line-".concat(d),className:"react-syntax-highlighter-line-number",style:typeof t=="function"?t(g):t},"".concat(g,`
|
|
3
|
-
`))})}function Pt(e){var n=e.codeString,a=e.codeStyle,t=e.containerStyle,c=t===void 0?{float:"left",paddingRight:"10px"}:t,d=e.numberStyle,g=d===void 0?{}:d,o=e.startingLineNumber;return te.createElement("code",{style:Object.assign({},a,c)},It({lines:n.replace(/\n$/,"").split(`
|
|
4
|
-
`),style:g,startingLineNumber:o}))}function Rt(e){return"".concat(e.toString().length,".25em")}function ct(e,n){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:n},children:[{type:"text",value:e}]}}function st(e,n,a){var t={display:"inline-block",minWidth:Rt(a),paddingRight:"1em",textAlign:"right",userSelect:"none"},c=typeof e=="function"?e(n):e,d=ae(ae({},t),c);return d}function ke(e){var n=e.children,a=e.lineNumber,t=e.lineNumberStyle,c=e.largestLineNumber,d=e.showInlineLineNumbers,g=e.lineProps,o=g===void 0?{}:g,h=e.className,k=h===void 0?[]:h,A=e.showLineNumbers,m=e.wrapLongLines,b=e.wrapLines,y=b===void 0?!1:b,w=y?ae({},typeof o=="function"?o(a):o):{};if(w.className=w.className?[].concat(pn(w.className.trim().split(/\s+/)),pn(k)):k,a&&d){var x=st(t,a,c);n.unshift(ct(a,x))}return m&A&&(w.style=ae({display:"flex"},w.style)),{type:"element",tagName:"span",properties:w,children:n}}function ut(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],t=0;t<e.length;t++){var c=e[t];if(c.type==="text")a.push(ke({children:[c],className:pn(new Set(n))}));else if(c.children){var d=n.concat(c.properties.className);ut(c.children,d).forEach(function(g){return a.push(g)})}}return a}function Dt(e,n,a,t,c,d,g,o,h){var k,A=ut(e.value),m=[],b=-1,y=0;function w(u,r){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return ke({children:u,lineNumber:r,lineNumberStyle:o,largestLineNumber:g,showInlineLineNumbers:c,lineProps:a,className:s,showLineNumbers:t,wrapLongLines:h,wrapLines:n})}function x(u,r){if(t&&r&&c){var s=st(o,r,g);u.unshift(ct(r,s))}return u}function S(u,r){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return n||s.length>0?w(u,r,s):x(u,r)}for(var F=function(){var r=A[y],s=r.children[0].value,v=$t(s);if(v){var f=s.split(`
|
|
5
|
-
`);f.forEach(function(L,C){var q=t&&m.length+d,_={type:"text",value:"".concat(L,`
|
|
6
|
-
`)};if(C===0){var B=A.slice(b+1,y).concat(ke({children:[_],className:r.properties.className})),K=S(B,q);m.push(K)}else if(C===f.length-1){var G=A[y+1]&&A[y+1].children&&A[y+1].children[0],W={type:"text",value:"".concat(L)};if(G){var O=ke({children:[W],className:r.properties.className});A.splice(y+1,0,O)}else{var R=[W],D=S(R,q,r.properties.className);m.push(D)}}else{var z=[_],j=S(z,q,r.properties.className);m.push(j)}}),b=y}y++};y<A.length;)F();if(b!==A.length-1){var l=A.slice(b+1,A.length);if(l&&l.length){var i=t&&m.length+d,p=S(l,i);m.push(p)}}return n?m:(k=[]).concat.apply(k,m)}function Mt(e){var n=e.rows,a=e.stylesheet,t=e.useInlineStyles;return n.map(function(c,d){return lt({node:c,stylesheet:a,useInlineStyles:t,key:"code-segment-".concat(d)})})}function ft(e){return e&&typeof e.highlightAuto<"u"}function _t(e){var n=e.astGenerator,a=e.language,t=e.code,c=e.defaultCodeValue;if(ft(n)){var d=Et(n,a);return a==="text"?{value:c,language:"text"}:d?n.highlight(a,t):n.highlightAuto(t)}try{return a&&a!=="text"?{value:n.highlight(t,a)}:{value:c}}catch{return{value:c}}}function vo(e,n){return function(t){var c,d,g=t.language,o=t.children,h=t.style,k=h===void 0?n:h,A=t.customStyle,m=A===void 0?{}:A,b=t.codeTagProps,y=b===void 0?{className:g?"language-".concat(g):void 0,style:ae(ae({},k['code[class*="language-"]']),k['code[class*="language-'.concat(g,'"]')])}:b,w=t.useInlineStyles,x=w===void 0?!0:w,S=t.showLineNumbers,F=S===void 0?!1:S,l=t.showInlineLineNumbers,i=l===void 0?!0:l,p=t.startingLineNumber,u=p===void 0?1:p,r=t.lineNumberContainerStyle,s=t.lineNumberStyle,v=s===void 0?{}:s,f=t.wrapLines,L=t.wrapLongLines,C=L===void 0?!1:L,q=t.lineProps,_=q===void 0?{}:q,B=t.renderer,K=t.PreTag,G=K===void 0?"pre":K,W=t.CodeTag,O=W===void 0?"code":W,R=t.code,D=R===void 0?(Array.isArray(o)?o[0]:o)||"":R,z=t.astGenerator,j=wt(t,qt);z=z||e;var N=F?te.createElement(Pt,{containerStyle:r,codeStyle:y.style||{},numberStyle:v,startingLineNumber:u,codeString:D}):null,T=k.hljs||k['pre[class*="language-"]']||{backgroundColor:"#fff"},E=ft(z)?"hljs":"prismjs",H=x?Object.assign({},j,{style:Object.assign({},T,m)}):Object.assign({},j,{className:j.className?"".concat(E," ").concat(j.className):E,style:Object.assign({},m)});if(C?y.style=ae({whiteSpace:"pre-wrap"},y.style):y.style=ae({whiteSpace:"pre"},y.style),!z)return te.createElement(G,H,N,te.createElement(O,y,D));(f===void 0&&B||C)&&(f=!0),B=B||Mt;var M=[{type:"text",value:D}],V=_t({astGenerator:z,language:g,code:D,defaultCodeValue:M});V.language===null&&(V.value=M);var re=(c=(d=D.match(/\n/g))===null||d===void 0?void 0:d.length)!==null&&c!==void 0?c:0,oe=u+re,Q=Dt(V,f,_,F,i,u,oe,v,C);return te.createElement(G,H,te.createElement(O,y,!i&&N,B({rows:Q,stylesheet:k,useInlineStyles:x})))}}var qe,Cn;function zt(){if(Cn)return qe;Cn=1,qe=n;var e=Object.prototype.hasOwnProperty;function n(){for(var a={},t=0;t<arguments.length;t++){var c=arguments[t];for(var d in c)e.call(c,d)&&(a[d]=c[d])}return a}return qe}var je,Fn;function dt(){if(Fn)return je;Fn=1,je=n;var e=n.prototype;e.space=null,e.normal={},e.property={};function n(a,t,c){this.property=a,this.normal=t,c&&(this.space=c)}return je}var $e,Ln;function Ht(){if(Ln)return $e;Ln=1;var e=zt(),n=dt();$e=a;function a(t){for(var c=t.length,d=[],g=[],o=-1,h,k;++o<c;)h=t[o],d.push(h.property),g.push(h.normal),k=h.space;return new n(e.apply(null,d),e.apply(null,g),k)}return $e}var Ie,Nn;function gn(){if(Nn)return Ie;Nn=1,Ie=e;function e(n){return n.toLowerCase()}return Ie}var Pe,On;function pt(){if(On)return Pe;On=1,Pe=n;var e=n.prototype;e.space=null,e.attribute=null,e.property=null,e.boolean=!1,e.booleanish=!1,e.overloadedBoolean=!1,e.number=!1,e.commaSeparated=!1,e.spaceSeparated=!1,e.commaOrSpaceSeparated=!1,e.mustUseProperty=!1,e.defined=!1;function n(a,t){this.property=a,this.attribute=t}return Pe}var Y={},Tn;function vn(){if(Tn)return Y;Tn=1;var e=0;Y.boolean=n(),Y.booleanish=n(),Y.overloadedBoolean=n(),Y.number=n(),Y.spaceSeparated=n(),Y.commaSeparated=n(),Y.commaOrSpaceSeparated=n();function n(){return Math.pow(2,++e)}return Y}var Re,En;function gt(){if(En)return Re;En=1;var e=pt(),n=vn();Re=c,c.prototype=new e,c.prototype.defined=!0;var a=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],t=a.length;function c(g,o,h,k){var A=-1,m;for(d(this,"space",k),e.call(this,g,o);++A<t;)m=a[A],d(this,m,(h&n[m])===n[m])}function d(g,o,h){h&&(g[o]=h)}return Re}var De,qn;function ye(){if(qn)return De;qn=1;var e=gn(),n=dt(),a=gt();De=t;function t(c){var d=c.space,g=c.mustUseProperty||[],o=c.attributes||{},h=c.properties,k=c.transform,A={},m={},b,y;for(b in h)y=new a(b,k(o,b),h[b],d),g.indexOf(b)!==-1&&(y.mustUseProperty=!0),A[b]=y,m[e(b)]=b,m[e(y.attribute)]=b;return new n(A,m,d)}return De}var Me,jn;function Ut(){if(jn)return Me;jn=1;var e=ye();Me=e({space:"xlink",transform:n,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function n(a,t){return"xlink:"+t.slice(5).toLowerCase()}return Me}var _e,$n;function Bt(){if($n)return _e;$n=1;var e=ye();_e=e({space:"xml",transform:n,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function n(a,t){return"xml:"+t.slice(3).toLowerCase()}return _e}var ze,In;function Wt(){if(In)return ze;In=1,ze=e;function e(n,a){return a in n?n[a]:a}return ze}var He,Pn;function vt(){if(Pn)return He;Pn=1;var e=Wt();He=n;function n(a,t){return e(a,t.toLowerCase())}return He}var Ue,Rn;function Gt(){if(Rn)return Ue;Rn=1;var e=ye(),n=vt();return Ue=e({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:n,properties:{xmlns:null,xmlnsXLink:null}}),Ue}var Be,Dn;function Vt(){if(Dn)return Be;Dn=1;var e=vn(),n=ye(),a=e.booleanish,t=e.number,c=e.spaceSeparated;Be=n({transform:d,properties:{ariaActiveDescendant:null,ariaAtomic:a,ariaAutoComplete:null,ariaBusy:a,ariaChecked:a,ariaColCount:t,ariaColIndex:t,ariaColSpan:t,ariaControls:c,ariaCurrent:null,ariaDescribedBy:c,ariaDetails:null,ariaDisabled:a,ariaDropEffect:c,ariaErrorMessage:null,ariaExpanded:a,ariaFlowTo:c,ariaGrabbed:a,ariaHasPopup:null,ariaHidden:a,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:c,ariaLevel:t,ariaLive:null,ariaModal:a,ariaMultiLine:a,ariaMultiSelectable:a,ariaOrientation:null,ariaOwns:c,ariaPlaceholder:null,ariaPosInSet:t,ariaPressed:a,ariaReadOnly:a,ariaRelevant:null,ariaRequired:a,ariaRoleDescription:c,ariaRowCount:t,ariaRowIndex:t,ariaRowSpan:t,ariaSelected:a,ariaSetSize:t,ariaSort:null,ariaValueMax:t,ariaValueMin:t,ariaValueNow:t,ariaValueText:null,role:null}});function d(g,o){return o==="role"?o:"aria-"+o.slice(4).toLowerCase()}return Be}var We,Mn;function Xt(){if(Mn)return We;Mn=1;var e=vn(),n=ye(),a=vt(),t=e.boolean,c=e.overloadedBoolean,d=e.booleanish,g=e.number,o=e.spaceSeparated,h=e.commaSeparated;return We=n({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:a,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:h,acceptCharset:o,accessKey:o,action:null,allow:null,allowFullScreen:t,allowPaymentRequest:t,allowUserMedia:t,alt:null,as:null,async:t,autoCapitalize:null,autoComplete:o,autoFocus:t,autoPlay:t,capture:t,charSet:null,checked:t,cite:null,className:o,cols:g,colSpan:null,content:null,contentEditable:d,controls:t,controlsList:o,coords:g|h,crossOrigin:null,data:null,dateTime:null,decoding:null,default:t,defer:t,dir:null,dirName:null,disabled:t,download:c,draggable:d,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:t,formTarget:null,headers:o,height:g,hidden:t,high:g,href:null,hrefLang:null,htmlFor:o,httpEquiv:o,id:null,imageSizes:null,imageSrcSet:h,inputMode:null,integrity:null,is:null,isMap:t,itemId:null,itemProp:o,itemRef:o,itemScope:t,itemType:o,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:t,low:g,manifest:null,max:null,maxLength:g,media:null,method:null,min:null,minLength:g,multiple:t,muted:t,name:null,nonce:null,noModule:t,noValidate:t,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:t,optimum:g,pattern:null,ping:o,placeholder:null,playsInline:t,poster:null,preload:null,readOnly:t,referrerPolicy:null,rel:o,required:t,reversed:t,rows:g,rowSpan:g,sandbox:o,scope:null,scoped:t,seamless:t,selected:t,shape:null,size:g,sizes:null,slot:null,span:g,spellCheck:d,src:null,srcDoc:null,srcLang:null,srcSet:h,start:g,step:null,style:null,tabIndex:g,target:null,title:null,translate:null,type:null,typeMustMatch:t,useMap:null,value:d,width:g,wrap:null,align:null,aLink:null,archive:o,axis:null,background:null,bgColor:null,border:g,borderColor:null,bottomMargin:g,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:t,declare:t,event:null,face:null,frame:null,frameBorder:null,hSpace:g,leftMargin:g,link:null,longDesc:null,lowSrc:null,marginHeight:g,marginWidth:g,noResize:t,noHref:t,noShade:t,noWrap:t,object:null,profile:null,prompt:null,rev:null,rightMargin:g,rules:null,scheme:null,scrolling:d,standby:null,summary:null,text:null,topMargin:g,valueType:null,version:null,vAlign:null,vLink:null,vSpace:g,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:t,disableRemotePlayback:t,prefix:null,property:null,results:g,security:null,unselectable:null}}),We}var Ge,_n;function Zt(){if(_n)return Ge;_n=1;var e=Ht(),n=Ut(),a=Bt(),t=Gt(),c=Vt(),d=Xt();return Ge=e([a,n,t,c,d]),Ge}var Ve,zn;function Kt(){if(zn)return Ve;zn=1;var e=gn(),n=gt(),a=pt(),t="data";Ve=o;var c=/^data[-\w.:]+$/i,d=/-[a-z]/g,g=/[A-Z]/g;function o(b,y){var w=e(y),x=y,S=a;return w in b.normal?b.property[b.normal[w]]:(w.length>4&&w.slice(0,4)===t&&c.test(y)&&(y.charAt(4)==="-"?x=h(y):y=k(y),S=n),new S(x,y))}function h(b){var y=b.slice(5).replace(d,m);return t+y.charAt(0).toUpperCase()+y.slice(1)}function k(b){var y=b.slice(4);return d.test(y)?b:(y=y.replace(g,A),y.charAt(0)!=="-"&&(y="-"+y),t+y)}function A(b){return"-"+b.toLowerCase()}function m(b){return b.charAt(1).toUpperCase()}return Ve}var Xe,Hn;function Jt(){if(Hn)return Xe;Hn=1,Xe=n;var e=/[#.]/g;function n(a,t){for(var c=a||"",d=t||"div",g={},o=0,h,k,A;o<c.length;)e.lastIndex=o,A=e.exec(c),h=c.slice(o,A?A.index:c.length),h&&(k?k==="#"?g.id=h:g.className?g.className.push(h):g.className=[h]:d=h,o+=h.length),A&&(k=A[0],o++);return{type:"element",tagName:d,properties:g,children:[]}}return Xe}var xe={},Un;function Yt(){if(Un)return xe;Un=1,xe.parse=t,xe.stringify=c;var e="",n=" ",a=/[ \t\n\r\f]+/g;function t(d){var g=String(d||e).trim();return g===e?[]:g.split(a)}function c(d){return d.join(n).trim()}return xe}var Se={},Bn;function Qt(){if(Bn)return Se;Bn=1,Se.parse=t,Se.stringify=c;var e=",",n=" ",a="";function t(d){for(var g=[],o=String(d||a),h=o.indexOf(e),k=0,A=!1,m;!A;)h===-1&&(h=o.length,A=!0),m=o.slice(k,h).trim(),(m||!A)&&g.push(m),k=h+1,h=o.indexOf(e,k);return g}function c(d,g){var o=g||{},h=o.padLeft===!1?a:n,k=o.padRight?n:a;return d[d.length-1]===a&&(d=d.concat(a)),d.join(k+e+h).trim()}return Se}var Ze,Wn;function ea(){if(Wn)return Ze;Wn=1;var e=Kt(),n=gn(),a=Jt(),t=Yt().parse,c=Qt().parse;Ze=g;var d={}.hasOwnProperty;function g(w,x,S){var F=S?y(S):null;return l;function l(p,u){var r=a(p,x),s=Array.prototype.slice.call(arguments,2),v=r.tagName.toLowerCase(),f;if(r.tagName=F&&d.call(F,v)?F[v]:v,u&&o(u,r)&&(s.unshift(u),u=null),u)for(f in u)i(r.properties,f,u[f]);return k(r.children,s),r.tagName==="template"&&(r.content={type:"root",children:r.children},r.children=[]),r}function i(p,u,r){var s,v,f;r==null||r!==r||(s=e(w,u),v=s.property,f=r,typeof f=="string"&&(s.spaceSeparated?f=t(f):s.commaSeparated?f=c(f):s.commaOrSpaceSeparated&&(f=t(c(f).join(" ")))),v==="style"&&typeof r!="string"&&(f=b(f)),v==="className"&&p.className&&(f=p.className.concat(f)),p[v]=A(s,v,f))}}function o(w,x){return typeof w=="string"||"length"in w||h(x.tagName,w)}function h(w,x){var S=x.type;return w==="input"||!S||typeof S!="string"?!1:typeof x.children=="object"&&"length"in x.children?!0:(S=S.toLowerCase(),w==="button"?S!=="menu"&&S!=="submit"&&S!=="reset"&&S!=="button":"value"in x)}function k(w,x){var S,F;if(typeof x=="string"||typeof x=="number"){w.push({type:"text",value:String(x)});return}if(typeof x=="object"&&"length"in x){for(S=-1,F=x.length;++S<F;)k(w,x[S]);return}if(typeof x!="object"||!("type"in x))throw new Error("Expected node, nodes, or string, got `"+x+"`");w.push(x)}function A(w,x,S){var F,l,i;if(typeof S!="object"||!("length"in S))return m(w,x,S);for(l=S.length,F=-1,i=[];++F<l;)i[F]=m(w,x,S[F]);return i}function m(w,x,S){var F=S;return w.number||w.positiveNumber?!isNaN(F)&&F!==""&&(F=Number(F)):(w.boolean||w.overloadedBoolean)&&typeof F=="string"&&(F===""||n(S)===n(x))&&(F=!0),F}function b(w){var x=[],S;for(S in w)x.push([S,w[S]].join(": "));return x.join("; ")}function y(w){for(var x=w.length,S=-1,F={},l;++S<x;)l=w[S],F[l.toLowerCase()]=l;return F}return Ze}var Ke,Gn;function na(){if(Gn)return Ke;Gn=1;var e=Zt(),n=ea(),a=n(e,"div");return a.displayName="html",Ke=a,Ke}var Je,Vn;function ta(){return Vn||(Vn=1,Je=na()),Je}const aa="Æ",ra="&",oa="Á",ia="Â",la="À",ca="Å",sa="Ã",ua="Ä",fa="©",da="Ç",pa="Ð",ga="É",va="Ê",ha="È",ma="Ë",ya=">",ba="Í",wa="Î",xa="Ì",Sa="Ï",ka="<",Aa="Ñ",Ca="Ó",Fa="Ô",La="Ò",Na="Ø",Oa="Õ",Ta="Ö",Ea='"',qa="®",ja="Þ",$a="Ú",Ia="Û",Pa="Ù",Ra="Ü",Da="Ý",Ma="á",_a="â",za="´",Ha="æ",Ua="à",Ba="&",Wa="å",Ga="ã",Va="ä",Xa="¦",Za="ç",Ka="¸",Ja="¢",Ya="©",Qa="¤",er="°",nr="÷",tr="é",ar="ê",rr="è",or="ð",ir="ë",lr="½",cr="¼",sr="¾",ur=">",fr="í",dr="î",pr="¡",gr="ì",vr="¿",hr="ï",mr="«",yr="<",br="¯",wr="µ",xr="·",Sr=" ",kr="¬",Ar="ñ",Cr="ó",Fr="ô",Lr="ò",Nr="ª",Or="º",Tr="ø",Er="õ",qr="ö",jr="¶",$r="±",Ir="£",Pr='"',Rr="»",Dr="®",Mr="§",_r="",zr="¹",Hr="²",Ur="³",Br="ß",Wr="þ",Gr="×",Vr="ú",Xr="û",Zr="ù",Kr="¨",Jr="ü",Yr="ý",Qr="¥",eo="ÿ",no={AElig:aa,AMP:ra,Aacute:oa,Acirc:ia,Agrave:la,Aring:ca,Atilde:sa,Auml:ua,COPY:fa,Ccedil:da,ETH:pa,Eacute:ga,Ecirc:va,Egrave:ha,Euml:ma,GT:ya,Iacute:ba,Icirc:wa,Igrave:xa,Iuml:Sa,LT:ka,Ntilde:Aa,Oacute:Ca,Ocirc:Fa,Ograve:La,Oslash:Na,Otilde:Oa,Ouml:Ta,QUOT:Ea,REG:qa,THORN:ja,Uacute:$a,Ucirc:Ia,Ugrave:Pa,Uuml:Ra,Yacute:Da,aacute:Ma,acirc:_a,acute:za,aelig:Ha,agrave:Ua,amp:Ba,aring:Wa,atilde:Ga,auml:Va,brvbar:Xa,ccedil:Za,cedil:Ka,cent:Ja,copy:Ya,curren:Qa,deg:er,divide:nr,eacute:tr,ecirc:ar,egrave:rr,eth:or,euml:ir,frac12:lr,frac14:cr,frac34:sr,gt:ur,iacute:fr,icirc:dr,iexcl:pr,igrave:gr,iquest:vr,iuml:hr,laquo:mr,lt:yr,macr:br,micro:wr,middot:xr,nbsp:Sr,not:kr,ntilde:Ar,oacute:Cr,ocirc:Fr,ograve:Lr,ordf:Nr,ordm:Or,oslash:Tr,otilde:Er,ouml:qr,para:jr,plusmn:$r,pound:Ir,quot:Pr,raquo:Rr,reg:Dr,sect:Mr,shy:_r,sup1:zr,sup2:Hr,sup3:Ur,szlig:Br,thorn:Wr,times:Gr,uacute:Vr,ucirc:Xr,ugrave:Zr,uml:Kr,uuml:Jr,yacute:Yr,yen:Qr,yuml:eo},to={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};var Ye,Xn;function ht(){if(Xn)return Ye;Xn=1,Ye=e;function e(n){var a=typeof n=="string"?n.charCodeAt(0):n;return a>=48&&a<=57}return Ye}var Qe,Zn;function ao(){if(Zn)return Qe;Zn=1,Qe=e;function e(n){var a=typeof n=="string"?n.charCodeAt(0):n;return a>=97&&a<=102||a>=65&&a<=70||a>=48&&a<=57}return Qe}var en,Kn;function ro(){if(Kn)return en;Kn=1,en=e;function e(n){var a=typeof n=="string"?n.charCodeAt(0):n;return a>=97&&a<=122||a>=65&&a<=90}return en}var nn,Jn;function oo(){if(Jn)return nn;Jn=1;var e=ro(),n=ht();nn=a;function a(t){return e(t)||n(t)}return nn}var tn,Yn;function io(){if(Yn)return tn;Yn=1;var e,n=59;tn=a;function a(t){var c="&"+t+";",d;return e=e||document.createElement("i"),e.innerHTML=c,d=e.textContent,d.charCodeAt(d.length-1)===n&&t!=="semi"||d===c?!1:d}return tn}var an,Qn;function lo(){if(Qn)return an;Qn=1;var e=no,n=to,a=ht(),t=ao(),c=oo(),d=io();an=R;var g={}.hasOwnProperty,o=String.fromCharCode,h=Function.prototype,k={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},A=9,m=10,b=12,y=32,w=38,x=59,S=60,F=61,l=35,i=88,p=120,u=65533,r="named",s="hexadecimal",v="decimal",f={};f[s]=16,f[v]=10;var L={};L[r]=c,L[v]=a,L[s]=t;var C=1,q=2,_=3,B=4,K=5,G=6,W=7,O={};O[C]="Named character references must be terminated by a semicolon",O[q]="Numeric character references must be terminated by a semicolon",O[_]="Named character references cannot be empty",O[B]="Numeric character references cannot be empty",O[K]="Named character references must be known",O[G]="Numeric character references cannot be disallowed",O[W]="Numeric character references cannot be outside the permissible Unicode range";function R(N,T){var E={},H,M;T||(T={});for(M in k)H=T[M],E[M]=H??k[M];return(E.position.indent||E.position.start)&&(E.indent=E.position.indent||[],E.position=E.position.start),D(N,E)}function D(N,T){var E=T.additional,H=T.nonTerminated,M=T.text,V=T.reference,re=T.warning,oe=T.textContext,Q=T.referenceContext,Ce=T.warningContext,ie=T.position,mt=T.indent||[],Fe=N.length,ee=0,hn=-1,le=ie.column||1,mn=ie.line||1,ce="",Le=[],de,Ne,se,U,ne,I,$,X,be,Oe,ue,ge,fe,J,yn,ve,we,Z,P;for(typeof E=="string"&&(E=E.charCodeAt(0)),ve=he(),X=re?yt:h,ee--,Fe++;++ee<Fe;)if(ne===m&&(le=mt[hn]||1),ne=N.charCodeAt(ee),ne===w){if($=N.charCodeAt(ee+1),$===A||$===m||$===b||$===y||$===w||$===S||$!==$||E&&$===E){ce+=o(ne),le++;continue}for(fe=ee+1,ge=fe,P=fe,$===l?(P=++ge,$=N.charCodeAt(P),$===i||$===p?(J=s,P=++ge):J=v):J=r,de="",ue="",U="",yn=L[J],P--;++P<Fe&&($=N.charCodeAt(P),!!yn($));)U+=o($),J===r&&g.call(e,U)&&(de=U,ue=e[U]);se=N.charCodeAt(P)===x,se&&(P++,Ne=J===r?d(U):!1,Ne&&(de=U,ue=Ne)),Z=1+P-fe,!se&&!H||(U?J===r?(se&&!ue?X(K,1):(de!==U&&(P=ge+de.length,Z=1+P-ge,se=!1),se||(be=de?C:_,T.attribute?($=N.charCodeAt(P),$===F?(X(be,Z),ue=null):c($)?ue=null:X(be,Z)):X(be,Z))),I=ue):(se||X(q,Z),I=parseInt(U,f[J]),z(I)?(X(W,Z),I=o(u)):I in n?(X(G,Z),I=n[I]):(Oe="",j(I)&&X(G,Z),I>65535&&(I-=65536,Oe+=o(I>>>10|55296),I=56320|I&1023),I=Oe+o(I))):J!==r&&X(B,Z)),I?(bn(),ve=he(),ee=P-1,le+=P-fe+1,Le.push(I),we=he(),we.offset++,V&&V.call(Q,I,{start:ve,end:we},N.slice(fe-1,P)),ve=we):(U=N.slice(fe-1,P),ce+=U,le+=U.length,ee=P-1)}else ne===10&&(mn++,hn++,le=0),ne===ne?(ce+=o(ne),le++):bn();return Le.join("");function he(){return{line:mn,column:le,offset:ee+(ie.offset||0)}}function yt(wn,xn){var Te=he();Te.column+=xn,Te.offset+=xn,re.call(Ce,O[wn],Te,wn)}function bn(){ce&&(Le.push(ce),M&&M.call(oe,ce,{start:ve,end:he()}),ce="")}}function z(N){return N>=55296&&N<=57343||N>1114111}function j(N){return N>=1&&N<=8||N===11||N>=13&&N<=31||N>=127&&N<=159||N>=64976&&N<=65007||(N&65535)===65535||(N&65535)===65534}return an}var rn={exports:{}},et;function co(){return et||(et=1,(function(e){var n=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};var a=(function(t){var c=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,d=0,g={},o={manual:t.Prism&&t.Prism.manual,disableWorkerMessageHandler:t.Prism&&t.Prism.disableWorkerMessageHandler,util:{encode:function l(i){return i instanceof h?new h(i.type,l(i.content),i.alias):Array.isArray(i)?i.map(l):i.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(l){return Object.prototype.toString.call(l).slice(8,-1)},objId:function(l){return l.__id||Object.defineProperty(l,"__id",{value:++d}),l.__id},clone:function l(i,p){p=p||{};var u,r;switch(o.util.type(i)){case"Object":if(r=o.util.objId(i),p[r])return p[r];u={},p[r]=u;for(var s in i)i.hasOwnProperty(s)&&(u[s]=l(i[s],p));return u;case"Array":return r=o.util.objId(i),p[r]?p[r]:(u=[],p[r]=u,i.forEach(function(v,f){u[f]=l(v,p)}),u);default:return i}},getLanguage:function(l){for(;l;){var i=c.exec(l.className);if(i)return i[1].toLowerCase();l=l.parentElement}return"none"},setLanguage:function(l,i){l.className=l.className.replace(RegExp(c,"gi"),""),l.classList.add("language-"+i)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(u){var l=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(u.stack)||[])[1];if(l){var i=document.getElementsByTagName("script");for(var p in i)if(i[p].src==l)return i[p]}return null}},isActive:function(l,i,p){for(var u="no-"+i;l;){var r=l.classList;if(r.contains(i))return!0;if(r.contains(u))return!1;l=l.parentElement}return!!p}},languages:{plain:g,plaintext:g,text:g,txt:g,extend:function(l,i){var p=o.util.clone(o.languages[l]);for(var u in i)p[u]=i[u];return p},insertBefore:function(l,i,p,u){u=u||o.languages;var r=u[l],s={};for(var v in r)if(r.hasOwnProperty(v)){if(v==i)for(var f in p)p.hasOwnProperty(f)&&(s[f]=p[f]);p.hasOwnProperty(v)||(s[v]=r[v])}var L=u[l];return u[l]=s,o.languages.DFS(o.languages,function(C,q){q===L&&C!=l&&(this[C]=s)}),s},DFS:function l(i,p,u,r){r=r||{};var s=o.util.objId;for(var v in i)if(i.hasOwnProperty(v)){p.call(i,v,i[v],u||v);var f=i[v],L=o.util.type(f);L==="Object"&&!r[s(f)]?(r[s(f)]=!0,l(f,p,null,r)):L==="Array"&&!r[s(f)]&&(r[s(f)]=!0,l(f,p,v,r))}}},plugins:{},highlightAll:function(l,i){o.highlightAllUnder(document,l,i)},highlightAllUnder:function(l,i,p){var u={callback:p,container:l,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",u),u.elements=Array.prototype.slice.apply(u.container.querySelectorAll(u.selector)),o.hooks.run("before-all-elements-highlight",u);for(var r=0,s;s=u.elements[r++];)o.highlightElement(s,i===!0,u.callback)},highlightElement:function(l,i,p){var u=o.util.getLanguage(l),r=o.languages[u];o.util.setLanguage(l,u);var s=l.parentElement;s&&s.nodeName.toLowerCase()==="pre"&&o.util.setLanguage(s,u);var v=l.textContent,f={element:l,language:u,grammar:r,code:v};function L(q){f.highlightedCode=q,o.hooks.run("before-insert",f),f.element.innerHTML=f.highlightedCode,o.hooks.run("after-highlight",f),o.hooks.run("complete",f),p&&p.call(f.element)}if(o.hooks.run("before-sanity-check",f),s=f.element.parentElement,s&&s.nodeName.toLowerCase()==="pre"&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!f.code){o.hooks.run("complete",f),p&&p.call(f.element);return}if(o.hooks.run("before-highlight",f),!f.grammar){L(o.util.encode(f.code));return}if(i&&t.Worker){var C=new Worker(o.filename);C.onmessage=function(q){L(q.data)},C.postMessage(JSON.stringify({language:f.language,code:f.code,immediateClose:!0}))}else L(o.highlight(f.code,f.grammar,f.language))},highlight:function(l,i,p){var u={code:l,grammar:i,language:p};if(o.hooks.run("before-tokenize",u),!u.grammar)throw new Error('The language "'+u.language+'" has no grammar.');return u.tokens=o.tokenize(u.code,u.grammar),o.hooks.run("after-tokenize",u),h.stringify(o.util.encode(u.tokens),u.language)},tokenize:function(l,i){var p=i.rest;if(p){for(var u in p)i[u]=p[u];delete i.rest}var r=new m;return b(r,r.head,l),A(l,r,i,r.head,0),w(r)},hooks:{all:{},add:function(l,i){var p=o.hooks.all;p[l]=p[l]||[],p[l].push(i)},run:function(l,i){var p=o.hooks.all[l];if(!(!p||!p.length))for(var u=0,r;r=p[u++];)r(i)}},Token:h};t.Prism=o;function h(l,i,p,u){this.type=l,this.content=i,this.alias=p,this.length=(u||"").length|0}h.stringify=function l(i,p){if(typeof i=="string")return i;if(Array.isArray(i)){var u="";return i.forEach(function(L){u+=l(L,p)}),u}var r={type:i.type,content:l(i.content,p),tag:"span",classes:["token",i.type],attributes:{},language:p},s=i.alias;s&&(Array.isArray(s)?Array.prototype.push.apply(r.classes,s):r.classes.push(s)),o.hooks.run("wrap",r);var v="";for(var f in r.attributes)v+=" "+f+'="'+(r.attributes[f]||"").replace(/"/g,""")+'"';return"<"+r.tag+' class="'+r.classes.join(" ")+'"'+v+">"+r.content+"</"+r.tag+">"};function k(l,i,p,u){l.lastIndex=i;var r=l.exec(p);if(r&&u&&r[1]){var s=r[1].length;r.index+=s,r[0]=r[0].slice(s)}return r}function A(l,i,p,u,r,s){for(var v in p)if(!(!p.hasOwnProperty(v)||!p[v])){var f=p[v];f=Array.isArray(f)?f:[f];for(var L=0;L<f.length;++L){if(s&&s.cause==v+","+L)return;var C=f[L],q=C.inside,_=!!C.lookbehind,B=!!C.greedy,K=C.alias;if(B&&!C.pattern.global){var G=C.pattern.toString().match(/[imsuy]*$/)[0];C.pattern=RegExp(C.pattern.source,G+"g")}for(var W=C.pattern||C,O=u.next,R=r;O!==i.tail&&!(s&&R>=s.reach);R+=O.value.length,O=O.next){var D=O.value;if(i.length>l.length)return;if(!(D instanceof h)){var z=1,j;if(B){if(j=k(W,R,l,_),!j||j.index>=l.length)break;var H=j.index,N=j.index+j[0].length,T=R;for(T+=O.value.length;H>=T;)O=O.next,T+=O.value.length;if(T-=O.value.length,R=T,O.value instanceof h)continue;for(var E=O;E!==i.tail&&(T<N||typeof E.value=="string");E=E.next)z++,T+=E.value.length;z--,D=l.slice(R,T),j.index-=R}else if(j=k(W,0,D,_),!j)continue;var H=j.index,M=j[0],V=D.slice(0,H),re=D.slice(H+M.length),oe=R+D.length;s&&oe>s.reach&&(s.reach=oe);var Q=O.prev;V&&(Q=b(i,Q,V),R+=V.length),y(i,Q,z);var Ce=new h(v,q?o.tokenize(M,q):M,K,M);if(O=b(i,Q,Ce),re&&b(i,O,re),z>1){var ie={cause:v+","+L,reach:oe};A(l,i,p,O.prev,R,ie),s&&ie.reach>s.reach&&(s.reach=ie.reach)}}}}}}function m(){var l={value:null,prev:null,next:null},i={value:null,prev:l,next:null};l.next=i,this.head=l,this.tail=i,this.length=0}function b(l,i,p){var u=i.next,r={value:p,prev:i,next:u};return i.next=r,u.prev=r,l.length++,r}function y(l,i,p){for(var u=i.next,r=0;r<p&&u!==l.tail;r++)u=u.next;i.next=u,u.prev=i,l.length-=r}function w(l){for(var i=[],p=l.head.next;p!==l.tail;)i.push(p.value),p=p.next;return i}if(!t.document)return t.addEventListener&&(o.disableWorkerMessageHandler||t.addEventListener("message",function(l){var i=JSON.parse(l.data),p=i.language,u=i.code,r=i.immediateClose;t.postMessage(o.highlight(u,o.languages[p],p)),r&&t.close()},!1)),o;var x=o.util.currentScript();x&&(o.filename=x.src,x.hasAttribute("data-manual")&&(o.manual=!0));function S(){o.manual||o.highlightAll()}if(!o.manual){var F=document.readyState;F==="loading"||F==="interactive"&&x&&x.defer?document.addEventListener("DOMContentLoaded",S):window.requestAnimationFrame?window.requestAnimationFrame(S):window.setTimeout(S,16)}return o})(n);e.exports&&(e.exports=a),typeof Ae<"u"&&(Ae.Prism=a)})(rn)),rn.exports}var on,nt;function so(){if(nt)return on;nt=1,on=e,e.displayName="markup",e.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function e(n){n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(a){a.type==="entity"&&(a.attributes.title=a.content.value.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(t,c){var d={};d["language-"+c]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[c]},d.cdata=/^<!\[CDATA\[|\]\]>$/i;var g={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:d}};g["language-"+c]={pattern:/[\s\S]+/,inside:n.languages[c]};var o={};o[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:g},n.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(a,t){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+a+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:n.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml}return on}var ln,tt;function uo(){if(tt)return ln;tt=1,ln=e,e.displayName="css",e.aliases=[];function e(n){(function(a){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;a.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},a.languages.css.atrule.inside.rest=a.languages.css;var c=a.languages.markup;c&&(c.tag.addInlined("style","css"),c.tag.addAttribute("style","css"))})(n)}return ln}var cn,at;function fo(){if(at)return cn;at=1,cn=e,e.displayName="clike",e.aliases=[];function e(n){n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}return cn}var sn,rt;function po(){if(rt)return sn;rt=1,sn=e,e.displayName="javascript",e.aliases=["js"];function e(n){n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript}return sn}var un,ot;function ho(){if(ot)return un;ot=1;var e=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof Ae=="object"?Ae:{},n=u();e.Prism={manual:!0,disableWorkerMessageHandler:!0};var a=ta(),t=lo(),c=co(),d=so(),g=uo(),o=fo(),h=po();n();var k={}.hasOwnProperty;function A(){}A.prototype=c;var m=new A;un=m,m.highlight=w,m.register=b,m.alias=y,m.registered=x,m.listLanguages=S,b(d),b(g),b(o),b(h),m.util.encode=i,m.Token.stringify=F;function b(r){if(typeof r!="function"||!r.displayName)throw new Error("Expected `function` for `grammar`, got `"+r+"`");m.languages[r.displayName]===void 0&&r(m)}function y(r,s){var v=m.languages,f=r,L,C,q,_;s&&(f={},f[r]=s);for(L in f)for(C=f[L],C=typeof C=="string"?[C]:C,q=C.length,_=-1;++_<q;)v[C[_]]=v[L]}function w(r,s){var v=c.highlight,f;if(typeof r!="string")throw new Error("Expected `string` for `value`, got `"+r+"`");if(m.util.type(s)==="Object")f=s,s=null;else{if(typeof s!="string")throw new Error("Expected `string` for `name`, got `"+s+"`");if(k.call(m.languages,s))f=m.languages[s];else throw new Error("Unknown language: `"+s+"` is not registered")}return v.call(this,r,f,s)}function x(r){if(typeof r!="string")throw new Error("Expected `string` for `language`, got `"+r+"`");return k.call(m.languages,r)}function S(){var r=m.languages,s=[],v;for(v in r)k.call(r,v)&&typeof r[v]=="object"&&s.push(v);return s}function F(r,s,v){var f;return typeof r=="string"?{type:"text",value:r}:m.util.type(r)==="Array"?l(r,s):(f={type:r.type,content:m.Token.stringify(r.content,s,v),tag:"span",classes:["token",r.type],attributes:{},language:s,parent:v},r.alias&&(f.classes=f.classes.concat(r.alias)),m.hooks.run("wrap",f),a(f.tag+"."+f.classes.join("."),p(f.attributes),f.content))}function l(r,s){for(var v=[],f=r.length,L=-1,C;++L<f;)C=r[L],C!==""&&C!==null&&C!==void 0&&v.push(C);for(L=-1,f=v.length;++L<f;)C=v[L],v[L]=m.Token.stringify(C,s,v);return v}function i(r){return r}function p(r){var s;for(s in r)r[s]=t(r[s]);return r}function u(){var r="Prism"in e,s=r?e.Prism:void 0;return v;function v(){r?e.Prism=s:delete e.Prism,r=void 0,s=void 0}}return un}export{vo as h,ho as r};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as $,c as Z,j as t,f as Ye,d as pt,b as gt,v as jt,_ as qe,w as et,g as bt,af as vt,x as yt,y as St,a as Ct,t as Je}from"./index-Ddg6ZSnz.js";import{E as wt}from"./SearchMd-BfdAKKpi.js";import{E as Ke}from"./error-boundary-wmq9HPr0.js";import{I as Fe,u as Qe}from"./use-connection-bHHmK9mi.js";import{T as Nt,S as _t}from"./switch-CBPgVkl4.js";import{C as st}from"./checkbox-CaJyqy-O.js";import{c as xe,B as te}from"./button-DGQafcd8.js";import{i as It}from"./ArrowLeft-CnWcM-Nt.js";import{C as Tt}from"./collection-search-B3tGk-LW.js";import{I as Ze}from"./input-B4ervJqC.js";import{s as nt}from"./Plus-BICwTwx2.js";import{i as kt}from"./X-BS9TixYK.js";import{b as $t,a as Pt}from"./use-gateway-Dz9z17ME.js";import{u as zt,a as Mt}from"./use-connection-resources-DFv5BDo6.js";import{u as Et}from"./use-binding-DALTy821.js";import{a as Rt,e as ot,T as At,C as Y,b as Ft,c as Dt,d as Vt,u as Bt,N as Ot,G as Gt,U as Lt,M as Ut}from"./thread-history-popover-BTd50eKs.js";import{u as lt,a as pe,c as ge,b as je,T as be,i as tt}from"./tooltip-D8OED8cS.js";import{a as Ht}from"./Copy01-Bsnbushh.js";import{i as Xe}from"./CpuChip02-C8zbTCUz.js";import{i as Wt}from"./FlipBackward-DfSp-QEd.js";import{i as it}from"./LinkExternal01-754qZCAw.js";import{i as Le}from"./Loading01-C25_IOHO.js";import{F as Re,a as qt,b as De,d as Ve,f as Be,c as rt}from"./form-D_YgJ7e_.js";import{S as at,a as ct,b as dt,c as mt,d as Ae}from"./select-twBCjq69.js";import{R as Jt}from"./resource-tabs-DoDLyAeo.js";import{s as Yt}from"./slugify-CEUa2lfQ.js";import{P as Kt}from"./pin-to-sidebar-button-BKGCvVX6.js";import{a as Qt,V as Zt,b as Xt}from"./layout-DI3tY0Jg.js";import{u as es,L as ut}from"./localstorage-keys-B9p3fxpE.js";import{f as ts}from"./formatDistanceToNow-Ds7vgs-h.js";import"./auth-q6-9Qro0.js";import"./AlertCircle-BPiWR69f.js";import"./Grid01-BGAyn8Yw.js";import"./responsive-select-Db26zo9M.js";import"./use-mobile-oCggWXvr.js";import"./textarea-OX-GeuN9.js";import"./Terminal-BnLcMoVf.js";import"./connection-card-CjFdHSFM.js";import"./card-CYr6OLlA.js";import"./json-syntax-highlighter-C24L-Dcz.js";import"./alert-dialog-BDXuXliX.js";import"./File06-BqXxPQ9_.js";import"./well-known-mcp-VNRT0JrW.js";import"./generate-id-Dyweu44Y.js";import"./popover-CgilhutT.js";import"./Clock-DfIJLD0U.js";import"./Trash01-COqd_w6V.js";import"./ChevronDown-CzJqGT44.js";import"./badge-C1bAg12O.js";import"./use-organization-settings-cNGS6Euq.js";import"./useQuery-BvjuXhZf.js";const ft=({size:n=24,color:e="currentColor",...s})=>$.createElement("svg",{viewBox:"0 0 24 24",width:n,height:n,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},$.createElement("path",{d:"M12 20h9M3 20h1.675c.489 0 .733 0 .964-.055.204-.05.399-.13.578-.24.201-.123.374-.296.72-.642L19.5 6.5a2.121 2.121 0 0 0-3-3L3.937 16.063c-.346.346-.519.519-.642.72a2 2 0 0 0-.24.578c-.055.23-.055.475-.055.965V20Z"}));ft.displayName="Edit03";const ht=({size:n=24,color:e="currentColor",...s})=>$.createElement("svg",{viewBox:"0 0 24 24",width:n,height:n,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},$.createElement("path",{d:"M7 3v3.4c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C7.76 8 8.04 8 8.6 8h6.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C17 7.24 17 6.96 17 6.4V4m0 17v-6.4c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C16.24 13 15.96 13 15.4 13H8.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C7 13.76 7 14.04 7 14.6V21M21 9.325V16.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h6.875c.489 0 .733 0 .963.055.204.05.4.13.579.24.201.123.374.296.72.642l3.126 3.126c.346.346.519.519.642.72.11.18.19.374.24.579.055.23.055.474.055.963Z"}));ht.displayName="Save01";const ss=$.memo(function(e){const s=Z.c(20),{connection:o,isSelected:f,hasItemsEnabled:r,activeItemsCount:m,totalItemsCount:g,onSelect:c,onToggle:l}=e,d=f?"bg-accent/50":"hover:bg-muted/50";let h;s[0]!==d?(h=xe("flex items-center gap-3 p-2 rounded-lg transition-colors will-change-auto",d),s[0]=d,s[1]=h):h=s[1];let p;s[2]!==o.icon||s[3]!==o.title?(p=t.jsx(Fe,{icon:o.icon,name:o.title,size:"xs"}),s[2]=o.icon,s[3]=o.title,s[4]=p):p=s[4];let b;s[5]!==o.title?(b=t.jsx("div",{className:"flex-1 min-w-0",children:t.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:o.title})}),s[5]=o.title,s[6]=b):b=s[6];let u;s[7]!==c||s[8]!==p||s[9]!==b?(u=t.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0 cursor-pointer",onClick:c,children:[p,b]}),s[7]=c,s[8]=p,s[9]=b,s[10]=u):u=s[10];let x;s[11]!==m||s[12]!==r||s[13]!==l||s[14]!==g?(x=g>0&&t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:[m,"/",g]}),t.jsx(st,{checked:r,onCheckedChange:l,onClick:os})]}),s[11]=m,s[12]=r,s[13]=l,s[14]=g,s[15]=x):x=s[15];let v;return s[16]!==h||s[17]!==u||s[18]!==x?(v=t.jsxs("div",{className:h,children:[u,x]}),s[16]=h,s[17]=u,s[18]=x,s[19]=v):v=s[19],v}),ns=$.memo(function(e){const s=Z.c(18),{connectionId:o,item:f,isSelected:r,onToggle:m}=e,g=`item-${o}-${f.id}`,c=r?"text-foreground":"text-muted-foreground";let l;s[0]!==c?(l=xe("text-sm font-medium",c),s[0]=c,s[1]=l):l=s[1];let d;s[2]!==f.name||s[3]!==l?(d=t.jsx("div",{className:"flex items-center gap-2 mb-1",children:t.jsx("span",{className:l,children:f.name})}),s[2]=f.name,s[3]=l,s[4]=d):d=s[4];let h;s[5]!==f.description?(h=f.description&&t.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:f.description}),s[5]=f.description,s[6]=h):h=s[6];let p;s[7]!==d||s[8]!==h?(p=t.jsxs("div",{className:"flex-1 min-w-0",children:[d,h]}),s[7]=d,s[8]=h,s[9]=p):p=s[9];const b=`item-${o}-${f.id}`;let u;s[10]!==r||s[11]!==m||s[12]!==b?(u=t.jsx("div",{className:"flex items-center shrink-0",children:t.jsx(st,{id:b,checked:r,onCheckedChange:m,onClick:ls})}),s[10]=r,s[11]=m,s[12]=b,s[13]=u):u=s[13];let x;return s[14]!==g||s[15]!==p||s[16]!==u?(x=t.jsxs("label",{className:"flex items-center gap-3 p-3 rounded-lg hover:bg-muted/50 cursor-pointer group will-change-auto",htmlFor:g,children:[p,u]}),s[14]=g,s[15]=p,s[16]=u,s[17]=x):x=s[17],x});function xt({itemSet:n,onItemSetChange:e,getItems:s,itemLabel:o,emptyItemsMessage:f,extraContent:r}){const[m,g]=$.useState(""),c=$.useDeferredValue(m),[l,d]=$.useState("all"),[h,p]=$.useState(!1),b=$.useRef(new Set(Object.keys(n))),u=Qe({searchTerm:c.trim()||void 0}),x=b.current,v=[...x.values()].map(i=>u.find(w=>w.id===i)).filter(i=>i!==void 0),N=u.filter(i=>!x.has(i.id)),I=[...v,...N],j=i=>{const w=n[i];return w!==void 0&&w.length>0},y=I.filter(i=>{if(l==="all")return!0;const w=j(i.id);return l==="selected"?w:l==="unselected"?!w:!0}),[S,a]=$.useState(I[0]?.id??null),C=S?I.find(i=>i.id===S)??null:null,_=C?s(C):[],E=(i,w)=>n[i]?.includes(w)??!1,R=(i,w)=>{const A=n[i]??[],F=A.includes(w),P={...n};if(F){const B=A.filter(M=>M!==w);B.length===0?delete P[i]:P[i]=B}else P[i]=[...A,w];e(P)},q=i=>{const w=I.find(k=>k.id===i);if(!w)return;const A=s(w);if(A.length===0)return;const F=n[i]??[],P=A.map(k=>k.id),B=F.length>0&&P.every(k=>F.includes(k)),M={...n};B?delete M[i]:(M[i]=P,a(i)),e(M)},U=i=>{a(i),p(!0)},T=()=>{p(!1)};return t.jsxs("div",{className:"flex h-full",children:[t.jsxs("div",{className:xe("w-full md:w-80 border-r border-border flex flex-col",h&&"hidden md:flex"),children:[t.jsx(Tt,{value:m,onChange:g,placeholder:"Search Connections..."}),t.jsxs("div",{className:"flex gap-1 p-2 border-b border-border",children:[t.jsx("button",{onClick:()=>d("all"),className:xe("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",l==="all"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"All"}),t.jsx("button",{onClick:()=>d("selected"),className:xe("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",l==="selected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"Selected"}),t.jsx("button",{onClick:()=>d("unselected"),className:xe("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",l==="unselected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"Unselected"})]}),t.jsx("div",{className:"flex-1 overflow-auto",children:y.length===0?t.jsx("div",{className:"p-4 text-sm text-muted-foreground text-center",children:m?"No connections found":l==="selected"?"No servers selected":l==="unselected"?"No unselected servers":"No connections available"}):t.jsx("div",{className:"p-2 space-y-1",children:y.map(i=>{const A=s(i).length,F=n[i.id]?.length??0;return t.jsx(ss,{connection:i,isSelected:S===i.id,hasItemsEnabled:j(i.id),activeItemsCount:F,totalItemsCount:A,onSelect:()=>U(i.id),onToggle:()=>q(i.id)},i.id)})})})]}),t.jsx("div",{className:xe("flex-1 flex-col",h?"flex":"hidden md:flex"),children:C?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"md:hidden border-b border-border p-4 flex items-center gap-3",children:[t.jsx(te,{variant:"ghost",size:"sm",onClick:T,className:"h-8 w-8 p-0 shrink-0",children:t.jsx(It,{size:20})}),t.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[t.jsx(Fe,{icon:C.icon,name:C.title,size:"sm"}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:C.title}),C.description&&t.jsx("p",{className:"text-sm text-muted-foreground truncate",children:C.description})]})]})]}),r,t.jsx("div",{className:"flex-1 overflow-auto p-4",children:_.length===0?t.jsx("div",{className:"text-sm text-muted-foreground text-center py-8",children:f||`This connection has no ${o} available`}):t.jsx("div",{className:"space-y-2",children:_.map(i=>t.jsx(ns,{connectionId:C.id,item:i,isSelected:E(C.id,i.id),onToggle:()=>R(C.id,i.id)},i.id))})})]}):t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsxs("div",{className:"text-sm text-muted-foreground text-center",children:["Select a connection to view its ",o]})})})]})}function os(n){return n.stopPropagation()}function ls(n){return n.stopPropagation()}function is(n){const e=Z.c(6),{promptSet:s,onPromptSetChange:o,connectionPrompts:f}=n;let r;e[0]!==f?(r=c=>(f.get(c.id)??[]).map(rs),e[0]=f,e[1]=r):r=e[1];const m=r;let g;return e[2]!==m||e[3]!==o||e[4]!==s?(g=t.jsx(xt,{itemSet:s,onItemSetChange:o,getItems:m,itemLabel:"prompts",emptyItemsMessage:"This connection has no prompts available"}),e[2]=m,e[3]=o,e[4]=s,e[5]=g):g=e[5],g}function rs(n){return{id:n.name,name:n.name,description:n.description}}function as(n){return n.includes("*")}function cs(n){const e=Z.c(27),{patterns:s,onAddPattern:o,onRemovePattern:f}=n,[r,m]=$.useState("");let g;e[0]!==r||e[1]!==o||e[2]!==s?(g=()=>{const p=r.trim();p&&!s.includes(p)&&(o(p),m(""))},e[0]=r,e[1]=o,e[2]=s,e[3]=g):g=e[3];const c=g;let l;e[4]!==c?(l=p=>{p.key==="Enter"&&(p.preventDefault(),c())},e[4]=c,e[5]=l):l=e[5];const d=l;let h;if(e[6]!==c||e[7]!==d||e[8]!==r||e[9]!==f||e[10]!==s){const p=s.filter(as);let b;e[12]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("code",{children:"*"}),e[12]=b):b=e[12];let u;e[13]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsxs("div",{className:"text-xs text-muted-foreground",children:["Add URI patterns to match multiple resources. Use ",b," for single segment and ",t.jsx("code",{children:"**"})," for multiple segments."]}),e[13]=u):u=e[13];let x;e[14]===Symbol.for("react.memo_cache_sentinel")?(x=a=>m(a.target.value),e[14]=x):x=e[14];let v;e[15]!==d||e[16]!==r?(v=t.jsx(Ze,{value:r,onChange:x,onKeyDown:d,placeholder:"e.g., file:///**/*.ts or db://users/*",className:"flex-1 text-sm"}),e[15]=d,e[16]=r,e[17]=v):v=e[17];let N;e[18]!==r?(N=r.trim(),e[18]=r,e[19]=N):N=e[19];const I=!N;let j;e[20]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx(nt,{size:16}),e[20]=j):j=e[20];let y;e[21]!==c||e[22]!==I?(y=t.jsx(te,{type:"button",variant:"outline",size:"sm",onClick:c,disabled:I,children:j}),e[21]=c,e[22]=I,e[23]=y):y=e[23];let S;e[24]!==y||e[25]!==v?(S=t.jsxs("div",{className:"flex gap-2",children:[v,y]}),e[24]=y,e[25]=v,e[26]=S):S=e[26],h=t.jsxs("div",{className:"border-b border-border p-4 space-y-3",children:[u,S,p.length>0&&t.jsx("div",{className:"flex flex-wrap gap-2",children:p.map(a=>t.jsxs("div",{className:"flex items-center gap-1 px-2 py-1 bg-muted rounded-md text-xs",children:[t.jsx("code",{className:"text-foreground",children:a}),t.jsx("button",{type:"button",onClick:()=>f(a),className:"text-muted-foreground hover:text-foreground",children:t.jsx(kt,{size:12})})]},a))})]}),e[6]=c,e[7]=d,e[8]=r,e[9]=f,e[10]=s,e[11]=h}else h=e[11];return h}function ds(n){const e=Z.c(23),{resourceSet:s,onResourceSetChange:o,connectionResources:f}=n,[r]=$.useState(null);let m;e[0]!==f?(m=j=>(f.get(j.id)??[]).map(ms),e[0]=f,e[1]=m):m=e[1];const g=m;let c;e[2]!==o||e[3]!==s?(c=(j,y)=>{const S=s[j]??[];S.includes(y)||o({...s,[j]:[...S,y]})},e[2]=o,e[3]=s,e[4]=c):c=e[4];const l=c;let d;e[5]!==o||e[6]!==s?(d=(j,y)=>{const a=(s[j]??[]).filter(C=>C!==y);if(a.length===0){const C={...s};delete C[j],o(C)}else o({...s,[j]:a})},e[5]=o,e[6]=s,e[7]=d):d=e[7];const h=d;let p;e[8]!==o?(p=j=>{o(j)},e[8]=o,e[9]=p):p=e[9];const b=p;let u;e[10]!==s||e[11]!==r?(u=r?s[r]??[]:[],e[10]=s,e[11]=r,e[12]=u):u=e[12];const x=u;let v;e[13]!==l||e[14]!==h||e[15]!==r||e[16]!==x?(v=r?t.jsx(cs,{patterns:x,onAddPattern:j=>l(r,j),onRemovePattern:j=>h(r,j)}):null,e[13]=l,e[14]=h,e[15]=r,e[16]=x,e[17]=v):v=e[17];const N=v;let I;return e[18]!==N||e[19]!==g||e[20]!==b||e[21]!==s?(I=t.jsx("div",{className:"h-full",children:t.jsx(xt,{itemSet:s,onItemSetChange:b,getItems:g,itemLabel:"resources",emptyItemsMessage:"This connection has no resources available",extraContent:N})}),e[18]=N,e[19]=g,e[20]=b,e[21]=s,e[22]=I):I=e[22],I}function ms(n){return{id:n.uri,name:n.name||n.uri,description:n.description||n.uri}}const us="You are a helpful assistant. Please try answering the user's questions using your available tools.";function fs(n){const s=new TextEncoder().encode(n),o=Array.from(s,f=>String.fromCharCode(f)).join("");return btoa(o)}function hs(n){const e=Z.c(52),{serverName:s,gatewayUrl:o}=n,[f,r]=$.useState(!1),[m,g]=$.useState(null),c=Yt(s);let l,d,h,p;if(e[0]!==o||e[1]!==c){const L={type:"http",url:o},se={[c]:L};l=JSON.stringify(se,null,2);const J=K=>JSON.stringify({...L,headers:{"x-mesh-client":K}},null,2),ae=fs(J("Cursor"));d=`cursor://anysphere.cursor-deeplink/mcp/install?name=${encodeURIComponent(c)}&config=${encodeURIComponent(ae)}`;const ne=J("Claude Code");h=c;let ce;e[6]===Symbol.for("react.memo_cache_sentinel")?(ce=/'/g,e[6]=ce):ce=e[6],p=ne.replace(ce,"'\\''"),e[0]=o,e[1]=c,e[2]=l,e[3]=d,e[4]=h,e[5]=p}else l=e[2],d=e[3],h=e[4],p=e[5];const b=`claude mcp add "${h}" --config '${p}'`;let u;e[7]!==l?(u=async()=>{await navigator.clipboard.writeText(l),r(!0),Je.success("Configuration copied to clipboard"),setTimeout(()=>r(!1),2e3)},e[7]=l,e[8]=u):u=e[8];const x=u;let v;e[9]===Symbol.for("react.memo_cache_sentinel")?(v=async(L,se)=>{await navigator.clipboard.writeText(L),g(se),Je.success(`${se} command copied`),setTimeout(()=>g(null),2e3)},e[9]=v):v=e[9];const N=v,I=xs;let j;e[10]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx("div",{children:t.jsx("h4",{className:"text-sm font-medium text-foreground mb-1",children:"Install in your IDE"})}),e[10]=j):j=e[10];let y;e[11]!==f?(y=f?t.jsx(tt,{size:14}):t.jsx(Ht,{size:14}),e[11]=f,e[12]=y):y=e[12];let S;e[13]!==x||e[14]!==y?(S=t.jsx(je,{asChild:!0,children:t.jsx(te,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0 shrink-0",onClick:x,children:y})}),e[13]=x,e[14]=y,e[15]=S):S=e[15];let a;e[16]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(be,{children:"Copy configuration"}),e[16]=a):a=e[16];let C;e[17]!==S?(C=t.jsx("div",{className:"absolute top-2 right-2",children:t.jsx(pe,{children:t.jsxs(ge,{children:[S,a]})})}),e[17]=S,e[18]=C):C=e[18];let _;e[19]!==l||e[20]!==x?(_=t.jsx("pre",{className:"text-xs font-mono text-foreground overflow-auto max-h-40 whitespace-pre-wrap wrap-break-word cursor-pointer",onClick:x,children:l}),e[19]=l,e[20]=x,e[21]=_):_=e[21];let E;e[22]!==_||e[23]!==C?(E=t.jsxs("div",{className:"relative flex flex-col gap-2 p-3 bg-muted/50 rounded-lg",children:[C,_]}),e[22]=_,e[23]=C,e[24]=E):E=e[24];let R;e[25]!==d?(R=()=>I(d),e[25]=d,e[26]=R):R=e[26];let q,U;e[27]===Symbol.for("react.memo_cache_sentinel")?(q=t.jsx("img",{src:"/logos/cursor.svg",alt:"Cursor",className:"h-6 w-6",style:{filter:"brightness(0) saturate(100%) invert(11%) sepia(8%) saturate(785%) hue-rotate(1deg) brightness(95%) contrast(89%)"}}),U=t.jsx("span",{className:"text-sm font-medium",children:"Cursor"}),e[27]=q,e[28]=U):(q=e[27],U=e[28]);let T;e[29]!==R?(T=t.jsx(je,{asChild:!0,children:t.jsxs(te,{variant:"outline",className:"h-auto py-3 px-4 justify-center gap-2 flex-1 min-w-fit",onClick:R,children:[q,U]})}),e[29]=R,e[30]=T):T=e[30];let i;e[31]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(be,{children:"Add to Cursor"}),e[31]=i):i=e[31];let w;e[32]!==T?(w=t.jsx(pe,{children:t.jsxs(ge,{children:[T,i]})}),e[32]=T,e[33]=w):w=e[33];let A;e[34]!==b?(A=()=>N(b,"Claude"),e[34]=b,e[35]=A):A=e[35];let F,P;e[36]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx("img",{src:"/logos/Claude Code.svg",alt:"Claude Code",className:"h-6 w-6",style:{filter:"brightness(0) saturate(100%) invert(55%) sepia(31%) saturate(1264%) hue-rotate(331deg) brightness(92%) contrast(86%)"}}),P=t.jsx("span",{className:"text-sm font-medium",children:"Claude Code"}),e[36]=F,e[37]=P):(F=e[36],P=e[37]);let B;e[38]!==m?(B=m==="Claude"&&t.jsx(tt,{size:14,className:"ml-2 text-green-500"}),e[38]=m,e[39]=B):B=e[39];let M;e[40]!==A||e[41]!==B?(M=t.jsx(je,{asChild:!0,children:t.jsxs(te,{variant:"outline",className:"h-auto py-3 px-4 justify-center gap-2 flex-1 min-w-fit",onClick:A,children:[F,P,B]})}),e[40]=A,e[41]=B,e[42]=M):M=e[42];let k;e[43]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(be,{children:"Add to Claude Code"}),e[43]=k):k=e[43];let X;e[44]!==M?(X=t.jsx(pe,{children:t.jsxs(ge,{children:[M,k]})}),e[44]=M,e[45]=X):X=e[45];let H;e[46]!==w||e[47]!==X?(H=t.jsxs("div",{className:"flex flex-wrap gap-2",children:[w,X]}),e[46]=w,e[47]=X,e[48]=H):H=e[48];let G;return e[49]!==E||e[50]!==H?(G=t.jsxs("div",{className:"flex flex-col gap-4",children:[j,E,H]}),e[49]=E,e[50]=H,e[51]=G):G=e[51],G}function xs(n){window.open(n,"_blank")}const ps=jt({title:et().min(1,"Name is required").max(255),description:et().nullable(),status:qe(["active","inactive"]),tool_selection_mode:qe(["inclusion","exclusion"]),tool_selection_strategy:qe(["passthrough","smart_tool_selection","code_execution"])});function gs(n,e){const s={};for(const o of n.connections)if(o.selected_tools===null){const f=e.get(o.connection_id)??[];f.length>0&&(s[o.connection_id]=f)}else o.selected_tools.length>0&&(s[o.connection_id]=o.selected_tools);return s}function js(n){const e={};for(const s of n.connections)s.selected_resources!==null&&s.selected_resources!==void 0&&s.selected_resources.length>0&&(e[s.connection_id]=s.selected_resources);return e}function bs(n){const e={};for(const s of n.connections)s.selected_prompts!==null&&s.selected_prompts!==void 0&&s.selected_prompts.length>0&&(e[s.connection_id]=s.selected_prompts);return e}function vs(n,e,s,o){const f=new Set([...Object.keys(n),...Object.keys(e),...Object.keys(s)]);return Array.from(f).map(r=>{const m=n[r]??[],g=o.get(r)??[],c=g.length>0&&g.every(l=>m.includes(l));return{connection_id:r,selected_tools:m.length===0||c?null:m,selected_resources:e[r]??null,selected_prompts:s[r]??null}})}function ys(n){const e=Z.c(110),{gateway:s,activeThreadId:o,setActiveThreadId:f}=n,{data:r}=Ct.useSession(),m=r?.user,g=Ft();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c={},e[0]=c):c=e[0];const l=Qe(c);let d;e[1]!==l?(d={connections:l,binding:"LLMS"},e[1]=l,e[2]=d):d=e[2];const[h]=Et(d),p=!!h,{locator:b,org:u}=lt(),x=Ye();let v;e[3]!==b?(v=ut.chatSelectedModel(b),e[3]=b,e[4]=v):v=e[4];const[N,I]=Dt(v,g,Ss),j=ot();let y;e[5]!==s||e[6]!==j?(y=D=>{const O={id:D.id,title:D.title,created_at:new Date().toISOString(),updated_at:new Date().toISOString(),hidden:!1,gatewayId:s.id};j.insert.mutate(O)},e[5]=s,e[6]=j,e[7]=y):y=e[7];let S;e[8]!==o||e[9]!==y?(S={threadId:o,systemPrompt:us,onCreateThread:y},e[8]=o,e[9]=y,e[10]=S):S=e[10];const a=Vt(S),{inputValue:C,setInputValue:_,branchContext:E,clearBranch:R}=Bt(),{isEmpty:q}=a,U=!!N;let T;e[11]!==o||e[12]!==a||e[13]!==R||e[14]!==s||e[15]!==U||e[16]!==N||e[17]!==_||e[18]!==m?.image||e[19]!==m?.name?(T=async D=>{if(!U||!N){Je.error("No model configured");return}_(""),R();const O={created_at:new Date().toISOString(),thread_id:o,model:{id:N.id,connectionId:N.connectionId,provider:N.provider??void 0,limits:N.limits??void 0},gateway:{id:s.id},user:{avatar:m?.image??void 0,name:m?.name??"you"}};await a.sendMessage(D,O)},e[11]=o,e[12]=a,e[13]=R,e[14]=s,e[15]=U,e[16]=N,e[17]=_,e[18]=m?.image,e[19]=m?.name,e[20]=T):T=e[20];const i=T;let w;e[21]!==I?(w=D=>{I(D)},e[21]=I,e[22]=w):w=e[22];const A=w;let F;e[23]!==E||e[24]!==R||e[25]!==f||e[26]!==_?(F=()=>{E&&(f(E.originalThreadId),R(),_(""))},e[23]=E,e[24]=R,e[25]=f,e[26]=_,e[27]=F):F=e[27];const P=F;if(!p){const D=m?.id??"";let O;e[28]!==x||e[29]!==u.slug?(O=()=>x({to:"/$org/mcps",params:{org:u.slug},search:{action:"create"}}),e[28]=x,e[29]=u.slug,e[30]=O):O=e[30];let he;e[31]!==l||e[32]!==u.id||e[33]!==u.slug||e[34]!==O||e[35]!==D?(he=t.jsx(Y.Main,{className:"h-full relative overflow-hidden",children:t.jsx(Y.EmptyState,{children:t.jsx(Ot,{description:"Connect to a model provider to unlock AI-powered features in this Hub.",orgSlug:u.slug,orgId:u.id,userId:D,allConnections:l,onInstallMcpServer:O})})}),e[31]=l,e[32]=u.id,e[33]=u.slug,e[34]=O,e[35]=D,e[36]=he):he=e[36];let ie;e[37]===Symbol.for("react.memo_cache_sentinel")?(ie=t.jsx(Y.Footer,{}),e[37]=ie):ie=e[37];let re;return e[38]!==he?(re=t.jsxs(Y,{children:[he,ie]}),e[38]=he,e[39]=re):re=e[39],re}const B=s.title||"Gateway";let M;e[40]===Symbol.for("react.memo_cache_sentinel")?(M=t.jsx(Xe,{size:32}),e[40]=M):M=e[40];let k;e[41]!==s.icon||e[42]!==B?(k=t.jsx(Fe,{icon:s.icon,name:B,size:"lg",fallbackIcon:M,className:"size-[60px]! rounded-[18px]!"}),e[41]=s.icon,e[42]=B,e[43]=k):k=e[43];const X=s.title||"Hub Chat";let H;e[44]!==X?(H=t.jsx("h3",{className:"text-xl font-medium text-foreground",children:X}),e[44]=X,e[45]=H):H=e[45];let G;e[46]!==s.description?(G=s.description?t.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:s.description}):null,e[46]=s.description,e[47]=G):G=e[47];let L;e[48]!==k||e[49]!==H||e[50]!==G?(L=t.jsxs("div",{className:"flex flex-col items-center gap-4",children:[k,H,G]}),e[48]=k,e[49]=H,e[50]=G,e[51]=L):L=e[51];let se;e[52]===Symbol.for("react.memo_cache_sentinel")?(se=t.jsx("div",{className:"flex justify-center mt-6",children:t.jsx(Le,{size:20,className:"animate-spin text-muted-foreground"})}),e[52]=se):se=e[52];let J;e[53]!==i?(J=D=>{i(D.description??D.name)},e[53]=i,e[54]=J):J=e[54];let ae;e[55]!==s.id||e[56]!==J?(ae=t.jsx(Ke,{fallback:null,children:t.jsx($.Suspense,{fallback:se,children:t.jsx(Gt,{gatewayId:s.id,onSelect:J})})}),e[55]=s.id,e[56]=J,e[57]=ae):ae=e[57];let ne;e[58]!==L||e[59]!==ae?(ne=t.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 p-4 text-center",children:[L,ae]}),e[58]=L,e[59]=ae,e[60]=ne):ne=e[60];const ce=ne;let K;e[61]!==a.messages||e[62]!==a.status||e[63]!==ce||e[64]!==q?(K=t.jsx(Y.Main,{className:"h-full relative overflow-hidden",children:q?t.jsx(Y.EmptyState,{children:ce}):t.jsx(Y.Messages,{messages:a.messages,status:a.status,minHeightOffset:240})}),e[61]=a.messages,e[62]=a.status,e[63]=ce,e[64]=q,e[65]=K):K=e[65];let de;e[66]!==a.error||e[67]!==i?(de=()=>{a.error&&i(`I encountered this error: ${a.error.message}. Can you help me fix it?`)},e[66]=a.error,e[67]=i,e[68]=de):de=e[68];let me;e[69]!==a.clearError||e[70]!==a.error||e[71]!==de?(me=t.jsx(Y.ErrorBanner,{error:a.error,onFixInChat:de,onDismiss:a.clearError}),e[69]=a.clearError,e[70]=a.error,e[71]=de,e[72]=me):me=e[72];let oe;e[73]!==i?(oe=()=>{i("Please continue.")},e[73]=i,e[74]=oe):oe=e[74];let W;e[75]!==a.clearFinishReason||e[76]!==a.finishReason||e[77]!==oe?(W=t.jsx(Y.FinishReasonWarning,{finishReason:a.finishReason,onContinue:oe,onDismiss:a.clearFinishReason}),e[75]=a.clearFinishReason,e[76]=a.finishReason,e[77]=oe,e[78]=W):W=e[78];let Se;e[79]!==E||e[80]!==R||e[81]!==P||e[82]!==_?(Se=t.jsx(Y.BranchPreview,{branchContext:E,clearBranchContext:R,onGoToOriginalMessage:P,setInputValue:_}),e[79]=E,e[80]=R,e[81]=P,e[82]=_,e[83]=Se):Se=e[83];let ue;e[84]!==i||e[85]!==C?(ue=async()=>{C.trim()&&await i(C.trim())},e[84]=i,e[85]=C,e[86]=ue):ue=e[86];const ve=!U,Ce=a.status==="submitted"||a.status==="streaming",ye=N?"Ask anything or @ for context":"Select a model to start chatting",we=N??void 0;let V;e[87]!==A||e[88]!==we?(V=t.jsx(Ut,{selectedModel:we,onModelChange:A,placeholder:"Model",variant:"borderless"}),e[87]=A,e[88]=we,e[89]=V):V=e[89];let le;e[90]!==a.messages?(le=t.jsx(Lt,{messages:a.messages}),e[90]=a.messages,e[91]=le):le=e[91];let fe;e[92]!==a.stop||e[93]!==C||e[94]!==_||e[95]!==ue||e[96]!==ve||e[97]!==Ce||e[98]!==ye||e[99]!==V||e[100]!==le?(fe=t.jsxs(Y.Input,{value:C,onChange:_,onSubmit:ue,onStop:a.stop,disabled:ve,isStreaming:Ce,placeholder:ye,children:[V,le]}),e[92]=a.stop,e[93]=C,e[94]=_,e[95]=ue,e[96]=ve,e[97]=Ce,e[98]=ye,e[99]=V,e[100]=le,e[101]=fe):fe=e[101];let ee;e[102]!==me||e[103]!==W||e[104]!==Se||e[105]!==fe?(ee=t.jsx(Y.Footer,{children:t.jsxs("div",{className:"max-w-2xl mx-auto w-full min-w-0 flex flex-col gap-2",children:[me,W,Se,fe]})}),e[102]=me,e[103]=W,e[104]=Se,e[105]=fe,e[106]=ee):ee=e[106];let Q;return e[107]!==K||e[108]!==ee?(Q=t.jsxs(Y,{children:[K,ee]}),e[107]=K,e[108]=ee,e[109]=Q):Q=e[109],Q}function Ss(n,e){return n.id===e.id&&n.connectionId===e.connectionId}function Cs(n){const e=Z.c(2);let s;return e[0]!==n?(s=t.jsx(Y.Provider,{children:t.jsx(ys,{...n})}),e[0]=n,e[1]=s):s=e[1],s}function ws(n){const e=Z.c(41),{form:s,gateway:o,icon:f}=n;let r;e[0]!==s?(r=s.watch("title")||"Hub",e[0]=s,e[1]=r):r=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(Xe,{}),e[2]=m):m=e[2];let g;e[3]!==f||e[4]!==r?(g=t.jsx(Fe,{icon:f,name:r,size:"lg",className:"shrink-0 shadow-sm",fallbackIcon:m}),e[3]=f,e[4]=r,e[5]=g):g=e[5];let c;e[6]!==s.control?(c=t.jsx(Re,{control:s.control,name:"status",render:ks}),e[6]=s.control,e[7]=c):c=e[7];let l;e[8]!==g||e[9]!==c?(l=t.jsxs("div",{className:"flex items-start justify-between",children:[g,c]}),e[8]=g,e[9]=c,e[10]=l):l=e[10];let d;e[11]!==s.control?(d=t.jsxs("div",{className:"flex flex-col",children:[t.jsx(Re,{control:s.control,name:"title",render:Ts}),t.jsx(Re,{control:s.control,name:"description",render:Is})]}),e[11]=s.control,e[12]=d):d=e[12];let h;e[13]!==l||e[14]!==d?(h=t.jsxs("div",{className:"flex flex-col gap-4 p-5 border-b border-border",children:[l,d]}),e[13]=l,e[14]=d,e[15]=h):h=e[15];let p;e[16]!==s.control?(p=t.jsxs("div",{className:"flex flex-col gap-4 p-5",children:[t.jsx(Re,{control:s.control,name:"tool_selection_mode",render:_s}),t.jsx(Re,{control:s.control,name:"tool_selection_strategy",render:Ns})]}),e[16]=s.control,e[17]=p):p=e[17];let b;e[18]!==h||e[19]!==p?(b=t.jsxs("div",{className:"flex flex-col",children:[h,p]}),e[18]=h,e[19]=p,e[20]=b):b=e[20];let u;e[21]!==s||e[22]!==b?(u=t.jsx("div",{className:"lg:border-r border-b lg:border-b-0 border-border overflow-auto",children:t.jsx(qt,{...s,children:b})}),e[21]=s,e[22]=b,e[23]=u):u=e[23];let x;e[24]!==o.id||e[25]!==o.title?(x=o.title||`hub-${o.id.slice(0,8)}`,e[24]=o.id,e[25]=o.title,e[26]=x):x=e[26];const v=`${window.location.origin}/mcp/gateway/${o.id}`;let N;e[27]!==x||e[28]!==v?(N=t.jsx("div",{className:"p-5",children:t.jsx(hs,{serverName:x,gatewayUrl:v})}),e[27]=x,e[28]=v,e[29]=N):N=e[29];let I;e[30]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx("span",{className:"flex-1 text-sm text-foreground",children:"Last Updated"}),e[30]=I):I=e[30];let j;e[31]!==o.updated_at?(j=o.updated_at?ts(new Date(o.updated_at),{addSuffix:!1}):"Unknown",e[31]=o.updated_at,e[32]=j):j=e[32];let y;e[33]!==j?(y=t.jsxs("div",{className:"flex items-center gap-4 p-5 border-t border-border",children:[I,t.jsx("span",{className:"text-muted-foreground uppercase text-xs",children:j})]}),e[33]=j,e[34]=y):y=e[34];let S;e[35]!==N||e[36]!==y?(S=t.jsxs("div",{className:"flex flex-col overflow-auto",children:[N,y]}),e[35]=N,e[36]=y,e[37]=S):S=e[37];let a;return e[38]!==u||e[39]!==S?(a=t.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[2fr_1fr] h-full",children:[u,S]}),e[38]=u,e[39]=S,e[40]=a):a=e[40],a}function Ns(n){const{field:e}=n;return t.jsxs(De,{children:[t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[t.jsx(rt,{className:"mb-0",children:"Gateway Strategy"}),t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(pe,{children:t.jsxs(ge,{children:[t.jsx(je,{asChild:!0,children:t.jsx(te,{type:"button",variant:"ghost",size:"icon",className:"size-7","aria-label":"Hub strategy help",children:t.jsx(it,{size:14,className:"text-muted-foreground"})})}),t.jsx(be,{side:"left",className:"max-w-sm",children:t.jsxs("div",{className:"text-xs space-y-1",children:[t.jsxs("div",{children:[t.jsx("strong",{children:"Passthrough:"})," Pass tools through as-is (default)."]}),t.jsxs("div",{children:[t.jsx("strong",{children:"Smart Tool Selection:"})," ","Intelligent tool selection behavior."]}),t.jsxs("div",{children:[t.jsx("strong",{children:"Code Execution:"})," Code execution behavior."]})]})})]})}),t.jsxs(at,{value:e.value,onValueChange:e.onChange,children:[t.jsx(Ve,{children:t.jsx(ct,{className:"w-[180px]",children:t.jsx(dt,{})})}),t.jsxs(mt,{children:[t.jsx(Ae,{value:"passthrough",children:"Passthrough"}),t.jsx(Ae,{value:"smart_tool_selection",children:"Smart Tool Selection"}),t.jsx(Ae,{value:"code_execution",children:"Code Execution"})]})]})]})]}),t.jsx(Be,{})]})}function _s(n){const{field:e}=n;return t.jsxs(De,{children:[t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[t.jsx(rt,{className:"mb-0",children:"Selection Mode"}),t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(pe,{children:t.jsxs(ge,{children:[t.jsx(je,{asChild:!0,children:t.jsx(te,{type:"button",variant:"ghost",size:"icon",className:"size-7","aria-label":"Selection mode help",children:t.jsx(it,{size:14,className:"text-muted-foreground"})})}),t.jsx(be,{side:"left",className:"max-w-sm",children:t.jsxs("div",{className:"text-xs space-y-1",children:[t.jsxs("div",{children:[t.jsx("strong",{children:"Include:"})," Only selected items are exposed."]}),t.jsxs("div",{children:[t.jsx("strong",{children:"Exclude:"})," All items except selected ones are exposed."]})]})})]})}),t.jsxs(at,{value:e.value,onValueChange:e.onChange,children:[t.jsx(Ve,{children:t.jsx(ct,{className:"w-[180px]",children:t.jsx(dt,{})})}),t.jsxs(mt,{children:[t.jsx(Ae,{value:"inclusion",children:"Include Selected"}),t.jsx(Ae,{value:"exclusion",children:"Exclude Selected"})]})]})]})]}),t.jsx(Be,{})]})}function Is(n){const{field:e}=n;return t.jsxs(De,{className:"w-full space-y-0",children:[t.jsx(Ve,{children:t.jsx(Ze,{...e,value:e.value||"",className:"h-auto text-base text-muted-foreground leading-6 px-0 border-transparent hover:border-input focus:border-input bg-transparent transition-all",placeholder:"Add a description..."})}),t.jsx(Be,{})]})}function Ts(n){const{field:e}=n;return t.jsxs(De,{className:"w-full space-y-0",children:[t.jsx(Ve,{children:t.jsx(Ze,{...e,className:"h-auto text-lg! font-medium leading-7 px-0 border-transparent hover:border-input focus:border-input bg-transparent transition-all",placeholder:"Hub Name"})}),t.jsx(Be,{})]})}function ks(n){const{field:e}=n;return t.jsxs(De,{children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{className:"text-sm text-muted-foreground",children:e.value==="active"?"Active":"Inactive"}),t.jsx(Ve,{children:t.jsx(_t,{checked:e.value==="active",onCheckedChange:s=>e.onChange(s?"active":"inactive")})})]}),t.jsx(Be,{})]})}function $s(n){const e=Z.c(104),{gateway:s,gatewayId:o,requestedTabId:f}=n,m=bt().location.href,g=vt();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c={from:"/$org/gateways/$gatewayId"},e[0]=c):c=e[0];const l=Ye(c),d=Pt(),{locator:h}=lt(),[p,b]=$.useState("chat");let u;e[1]!==o||e[2]!==h?(u=ut.gatewayChatActiveThread(h,o),e[1]=o,e[2]=h,e[3]=u):u=e[3];const[x,v]=es(u,Ms);let N;e[4]!==o?(N={gatewayId:o},e[4]=o,e[5]=N):N=e[5];const{threads:I,refetch:j}=Rt(N),y=ot();let S;e[6]!==y.update?(S=async z=>{await y.update.mutateAsync({id:z,updates:{hidden:!0}})},e[6]=y.update,e[7]=S):S=e[7];const a=S;let C;e[8]===Symbol.for("react.memo_cache_sentinel")?(C={},e[8]=C):C=e[8];const _=Qe(C);let E;e[9]!==_?(E=_.map(zs),e[9]=_,e[10]=E):E=e[10];const R=E,{promptsMap:q}=zt(R),{resourcesMap:U}=Mt(R);let T;if(e[11]!==_){T=new Map;for(const z of _)z.tools&&z.tools.length>0&&T.set(z.id,z.tools.map(Ps));e[11]=_,e[12]=T}else T=e[12];let i;e[13]!==T||e[14]!==s?(i=()=>gs(s,T),e[13]=T,e[14]=s,e[15]=i):i=e[15];const[w,A]=$.useState(i);let F;e[16]!==s?(F=()=>js(s),e[16]=s,e[17]=F):F=e[17];const[P,B]=$.useState(F);let M;e[18]!==s?(M=()=>bs(s),e[18]=s,e[19]=M):M=e[19];const[k,X]=$.useState(M),[H,G]=$.useState(!1);let L;e[20]===Symbol.for("react.memo_cache_sentinel")?(L=z=>{A(z),G(!0)},e[20]=L):L=e[20];const se=L;let J;e[21]===Symbol.for("react.memo_cache_sentinel")?(J=z=>{B(z),G(!0)},e[21]=J):J=e[21];const ae=J;let ne;e[22]===Symbol.for("react.memo_cache_sentinel")?(ne=z=>{X(z),G(!0)},e[22]=ne):ne=e[22];const ce=ne;let K;e[23]===Symbol.for("react.memo_cache_sentinel")?(K=yt(ps),e[23]=K):K=e[23];const de=s.tool_selection_mode??"inclusion",me=s.tool_selection_strategy??"passthrough";let oe;e[24]!==s.description||e[25]!==s.status||e[26]!==s.title||e[27]!==de||e[28]!==me?(oe={resolver:K,defaultValues:{title:s.title,description:s.description,status:s.status,tool_selection_mode:de,tool_selection_strategy:me}},e[24]=s.description,e[25]=s.status,e[26]=s.title,e[27]=de,e[28]=me,e[29]=oe):oe=e[29];const W=St(oe),ue=W.formState.isDirty||H;let ve;e[30]!==d.update||e[31]!==T||e[32]!==W||e[33]!==o||e[34]!==k||e[35]!==P||e[36]!==w?(ve=async()=>{const z=W.getValues(),We=vs(w,P,k,T);await d.update.mutateAsync({id:o,data:{title:z.title,description:z.description,status:z.status,tool_selection_mode:z.tool_selection_mode,tool_selection_strategy:z.tool_selection_strategy,connections:We}}),W.reset(z),G(!1),b("chat")},e[30]=d.update,e[31]=T,e[32]=W,e[33]=o,e[34]=k,e[35]=P,e[36]=w,e[37]=ve):ve=e[37];const Ce=ve;let ye;e[38]===Symbol.for("react.memo_cache_sentinel")?(ye=[{id:"settings",label:"Settings"},{id:"tools",label:"Tools"},{id:"resources",label:"Resources"},{id:"prompts",label:"Prompts"}],e[38]=ye):ye=e[38];const we=ye,V=we.some(z=>z.id===f)?f:"settings";let le;e[39]!==l?(le=z=>{l({search:We=>({...We,tab:z}),replace:!0})},e[39]=l,e[40]=le):le=e[40];const fe=le,ee=d.update.isPending,Q=p==="edit";let D;e[41]!==g.history?(D=()=>g.history.back(),e[41]=g.history,e[42]=D):D=e[42];let O;e[43]!==V||e[44]!==s.description||e[45]!==s.icon||e[46]!==s.title||e[47]!==fe||e[48]!==Q?(O=t.jsx(Qt,{children:Q?t.jsx(Jt,{tabs:we,activeTab:V,onTabChange:fe}):t.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[t.jsx(Fe,{icon:s.icon,name:s.title||"Hub",size:"xs",fallbackIcon:t.jsx(Xe,{size:12})}),t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:s.title}),s.description?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"•"}),t.jsx("span",{className:"text-xs text-muted-foreground font-normal truncate min-w-0 max-w-[20ch]",children:s.description})]}):null]})]})}),e[43]=V,e[44]=s.description,e[45]=s.icon,e[46]=s.title,e[47]=fe,e[48]=Q,e[49]=O):O=e[49];const he=s.icon??"cpu_chip";let ie;e[50]!==s.title||e[51]!==he||e[52]!==m?(ie=t.jsx(Kt,{title:s.title,url:m,icon:he}),e[50]=s.title,e[51]=he,e[52]=m,e[53]=ie):ie=e[53];let re;e[54]!==x||e[55]!==a||e[56]!==Ce||e[57]!==ue||e[58]!==Q||e[59]!==ee||e[60]!==j||e[61]!==v||e[62]!==I?(re=Q?t.jsxs(t.Fragment,{children:[t.jsx(pe,{children:t.jsxs(ge,{delayDuration:0,children:[t.jsx(je,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(te,{variant:"outline",size:"icon",className:"size-7 border border-input",disabled:ee,onClick:()=>b("chat"),"aria-label":"Cancel",children:t.jsx(Wt,{size:14})})})}),t.jsx(be,{side:"bottom",children:"Cancel"})]})}),ue&&t.jsx(pe,{children:t.jsxs(ge,{delayDuration:0,children:[t.jsx(je,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(te,{variant:"outline",size:"icon",className:"size-7 border border-input",disabled:ee,onClick:Ce,"aria-label":"Save",children:ee?t.jsx(Le,{size:14,className:"animate-spin"}):t.jsx(ht,{size:14})})})}),t.jsx(be,{side:"bottom",children:"Save"})]})})]}):t.jsxs(t.Fragment,{children:[t.jsx(pe,{children:t.jsxs(ge,{children:[t.jsx(je,{asChild:!0,children:t.jsx(te,{type:"button",onClick:()=>v(crypto.randomUUID()),"aria-label":"New thread",variant:"outline",size:"icon",className:"size-7 border border-input",children:t.jsx(nt,{size:16})})}),t.jsx(be,{children:"New thread"})]})}),t.jsx(At,{threads:I,activeThreadId:x,onSelectThread:v,onRemoveThread:a,onOpen:()=>j(),variant:"outline"}),t.jsx(pe,{children:t.jsxs(ge,{children:[t.jsx(je,{asChild:!0,children:t.jsx(te,{type:"button",onClick:()=>b("edit"),"aria-label":"Edit",variant:"outline",size:"icon",className:"size-7 border border-input",children:t.jsx(ft,{size:16})})}),t.jsx(be,{children:"Edit Settings"})]})})]}),e[54]=x,e[55]=a,e[56]=Ce,e[57]=ue,e[58]=Q,e[59]=ee,e[60]=j,e[61]=v,e[62]=I,e[63]=re):re=e[63];let Ne;e[64]!==ie||e[65]!==re?(Ne=t.jsxs(Zt,{children:[ie,re]}),e[64]=ie,e[65]=re,e[66]=Ne):Ne=e[66];const Ue=Q?"opacity-0 pointer-events-none hidden":"opacity-100";let _e;e[67]!==Ue?(_e=xe("h-full transition-opacity duration-200 ease-out",Ue),e[67]=Ue,e[68]=_e):_e=e[68];let Ie;e[69]!==x||e[70]!==s||e[71]!==v?(Ie=t.jsx(Cs,{gateway:s,activeThreadId:x,setActiveThreadId:v}),e[69]=x,e[70]=s,e[71]=v,e[72]=Ie):Ie=e[72];let Te;e[73]!==_e||e[74]!==Ie?(Te=t.jsx("div",{className:_e,children:Ie}),e[73]=_e,e[74]=Ie,e[75]=Te):Te=e[75];const He=Q?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none hidden";let ke;e[76]!==He?(ke=xe("h-full overflow-auto transition-opacity duration-200 ease-out",He),e[76]=He,e[77]=ke):ke=e[77];let Oe;e[78]===Symbol.for("react.memo_cache_sentinel")?(Oe=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Le,{size:32,className:"animate-spin text-muted-foreground"})}),e[78]=Oe):Oe=e[78];let $e;e[79]!==V||e[80]!==q||e[81]!==U||e[82]!==W||e[83]!==s||e[84]!==k||e[85]!==P||e[86]!==w?($e=V==="settings"?t.jsx(ws,{form:W,gateway:s,icon:s.icon}):V==="tools"?t.jsx(Nt,{toolSet:w,onToolSetChange:se}):V==="resources"?t.jsx(ds,{resourceSet:P,onResourceSetChange:ae,connectionResources:U}):V==="prompts"?t.jsx(is,{promptSet:k,onPromptSetChange:ce,connectionPrompts:q}):null,e[79]=V,e[80]=q,e[81]=U,e[82]=W,e[83]=s,e[84]=k,e[85]=P,e[86]=w,e[87]=$e):$e=e[87];let Pe;e[88]!==$e?(Pe=t.jsx($.Suspense,{fallback:Oe,children:$e}),e[88]=$e,e[89]=Pe):Pe=e[89];let ze;e[90]!==V||e[91]!==Pe?(ze=t.jsx(Ke,{children:Pe},V),e[90]=V,e[91]=Pe,e[92]=ze):ze=e[92];let Me;e[93]!==ke||e[94]!==ze?(Me=t.jsx("div",{className:ke,children:ze}),e[93]=ke,e[94]=ze,e[95]=Me):Me=e[95];let Ee;e[96]!==Te||e[97]!==Me?(Ee=t.jsx("div",{className:"flex h-full w-full bg-background overflow-hidden",children:t.jsxs("div",{className:"flex-1 flex flex-col min-w-0 bg-background overflow-hidden",children:[Te,Me]})}),e[96]=Te,e[97]=Me,e[98]=Ee):Ee=e[98];let Ge;return e[99]!==D||e[100]!==O||e[101]!==Ne||e[102]!==Ee?(Ge=t.jsxs(Xt,{onBack:D,children:[O,Ne,Ee]}),e[99]=D,e[100]=O,e[101]=Ne,e[102]=Ee,e[103]=Ge):Ge=e[103],Ge}function Ps(n){return n.name}function zs(n){return n.id}function Ms(n){return n||crypto.randomUUID()}function Es(){const n=Z.c(10);let e;n[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/$org/gateways/$gatewayId"},n[0]=e):e=n[0];const s=Ye(e);let o;n[1]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org/gateways/$gatewayId"},n[1]=o):o=n[1];const{gatewayId:f,org:r}=pt(o);let m;n[2]===Symbol.for("react.memo_cache_sentinel")?(m={from:"/shell/$org/gateways/$gatewayId"},n[2]=m):m=n[2];const c=gt(m).tab||"settings",l=$t(f);if(!l){let h;return n[3]!==s||n[4]!==r?(h=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(wt,{title:"Hub not found",description:"This Hub may have been deleted or you may not have access.",actions:t.jsx(te,{variant:"outline",onClick:()=>s({to:"/$org/gateways",params:{org:r}}),children:"Back to gateways"})})}),n[3]=s,n[4]=r,n[5]=h):h=n[5],h}let d;return n[6]!==l||n[7]!==f||n[8]!==c?(d=t.jsx($s,{gateway:l,gatewayId:f,requestedTabId:c}),n[6]=l,n[7]=f,n[8]=c,n[9]=d):d=n[9],d}function Rs(){const n=Z.c(1);let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Ke,{children:t.jsx($.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center bg-background",children:t.jsx(Le,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Es,{})})}),n[0]=e):e=n[0],e}function En(){const n=Z.c(1);let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Rs,{}),n[0]=e):e=n[0],e}export{En as default};
|