;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="58e9bcf2-60f5-e282-46a2-e36e2b0b0c09")}catch(e){}}(); (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,710313,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(657688),a=e.i(861745),s=e.i(948148),o=e.i(972520),l=e.i(778917),i=e.i(350682),d=e.i(373264),c=e.i(370956),m=e.i(270756),u=e.i(555436),g=e.i(283086),x=e.i(295364),h=e.i(921647),p=e.i(186749),f=e.i(802487),b=e.i(649839);let j={en:{badge:"No connector yet",note:"There is no ready-made AnythingMCP connector for this brand, on Cloud or self-hosted. You can import its API yourself.",lead:e=>`There is no ready-made AnythingMCP connector for ${e} yet. You can still use ${e} from Claude, ChatGPT, Cursor or Gemini: through ${e}'s own MCP offering, or by importing the ${e} API into AnythingMCP yourself (OpenAPI, GraphQL or cURL), without writing code.`,metaDescription:e=>`No ready-made AnythingMCP connector for ${e} yet. How to use ${e} from Claude, ChatGPT, Cursor or Gemini: ${e}'s own MCP offering, or its API imported into AnythingMCP.`,ctaGuide:e=>`How to add ${e} yourself`,finalTitle:e=>`Bring your own ${e} API.`,finalSubtitle:"AnythingMCP turns REST/OpenAPI, GraphQL, SOAP and SQL sources into MCP tools without code. 7-day free trial on Cloud, or self-host it."},de:{badge:"Noch kein Connector",note:"Für diese Marke gibt es keinen fertigen AnythingMCP-Connector, weder in der Cloud noch selbst gehostet. Du kannst ihre API selbst importieren.",lead:e=>`F\xfcr ${e} gibt es noch keinen fertigen AnythingMCP-Connector. Du kannst ${e} trotzdem aus Claude, ChatGPT, Cursor oder Gemini nutzen: \xfcber das eigene MCP-Angebot von ${e} oder indem du die ${e}-API selbst in AnythingMCP importierst (OpenAPI, GraphQL oder cURL), ohne Code zu schreiben.`,metaDescription:e=>`Noch kein fertiger AnythingMCP-Connector f\xfcr ${e}. So nutzt du ${e} aus Claude, ChatGPT, Cursor oder Gemini: mit dem eigenen MCP-Angebot von ${e} oder der in AnythingMCP importierten API.`,ctaGuide:e=>`So bindest du ${e} selbst an`,finalTitle:e=>`Bring deine eigene ${e}-API mit.`,finalSubtitle:"AnythingMCP macht aus REST/OpenAPI-, GraphQL-, SOAP- und SQL-Quellen MCP-Tools, ohne Code. 7 Tage kostenlos in der Cloud testen oder selbst hosten."},it:{badge:"Nessun connettore",note:"Non esiste un connettore AnythingMCP pronto per questo brand, né su Cloud né in self-hosting. Puoi importare tu la sua API.",lead:e=>`Non esiste ancora un connettore AnythingMCP pronto per ${e}. Puoi comunque usare ${e} da Claude, ChatGPT, Cursor o Gemini: con l'offerta MCP di ${e} stesso, oppure importando tu l'API di ${e} in AnythingMCP (OpenAPI, GraphQL o cURL), senza scrivere codice.`,metaDescription:e=>`Non esiste ancora un connettore AnythingMCP pronto per ${e}. Come usare ${e} da Claude, ChatGPT, Cursor o Gemini: l'offerta MCP di ${e} o la sua API importata in AnythingMCP.`,ctaGuide:e=>`Come aggiungere ${e} da solo`,finalTitle:e=>`Porta la tua API di ${e}.`,finalSubtitle:"AnythingMCP trasforma sorgenti REST/OpenAPI, GraphQL, SOAP e SQL in tool MCP senza codice. Prova gratuita di 7 giorni su Cloud, oppure self-hosting."},es:{badge:"Aún sin conector",note:"No hay un conector de AnythingMCP listo para esta marca, ni en Cloud ni en self-hosting. Puedes importar tú mismo su API.",lead:e=>`Todav\xeda no hay un conector de AnythingMCP listo para ${e}. Aun as\xed puedes usar ${e} desde Claude, ChatGPT, Cursor o Gemini: con la oferta MCP del propio ${e}, o importando t\xfa mismo la API de ${e} en AnythingMCP (OpenAPI, GraphQL o cURL), sin escribir c\xf3digo.`,metaDescription:e=>`Todav\xeda no hay un conector de AnythingMCP listo para ${e}. C\xf3mo usar ${e} desde Claude, ChatGPT, Cursor o Gemini: la oferta MCP de ${e} o su API importada en AnythingMCP.`,ctaGuide:e=>`C\xf3mo a\xf1adir ${e} t\xfa mismo`,finalTitle:e=>`Trae tu propia API de ${e}.`,finalSubtitle:"AnythingMCP convierte fuentes REST/OpenAPI, GraphQL, SOAP y SQL en herramientas MCP sin código. Prueba gratuita de 7 días en Cloud, o self-hosting."},zh:{badge:"暂无连接器",note:"该品牌目前没有现成的 AnythingMCP 连接器,Cloud 和自托管版本都没有。你可以自行导入它的 API。",lead:e=>`${e} 目前还没有现成的 AnythingMCP 连接器。你仍然可以在 Claude、ChatGPT、Cursor 或 Gemini 中使用 ${e}:通过 ${e} 自己的 MCP 服务,或自行将 ${e} API 导入 AnythingMCP(OpenAPI、GraphQL 或 cURL),无需编写代码。`,metaDescription:e=>`${e} 目前还没有现成的 AnythingMCP 连接器。如何在 Claude、ChatGPT、Cursor 或 Gemini 中使用 ${e}:${e} 自己的 MCP 服务,或将其 API 导入 AnythingMCP。`,ctaGuide:e=>`如何自行接入 ${e}`,finalTitle:e=>`接入你自己的 ${e} API。`,finalSubtitle:"AnythingMCP 无需代码即可把 REST/OpenAPI、GraphQL、SOAP 和 SQL 数据源变成 MCP 工具。Cloud 版 7 天免费试用,也可自托管。"},ja:{badge:"コネクタ未提供",note:"このブランド向けの既製の AnythingMCP コネクタは、Cloud 版にもセルフホスト版にもありません。API を自分でインポートできます。",lead:e=>`${e} 向けの既製の AnythingMCP コネクタはまだありません。それでも Claude、ChatGPT、Cursor、Gemini から ${e} を使えます: ${e} 自身の MCP サービスを使うか、${e} の API を自分で AnythingMCP にインポートします(OpenAPI、GraphQL、cURL)。コードは不要です。`,metaDescription:e=>`${e} 向けの既製の AnythingMCP コネクタはまだありません。Claude、ChatGPT、Cursor、Gemini から ${e} を使う方法: ${e} 自身の MCP サービス、または AnythingMCP にインポートした API。`,ctaGuide:e=>`${e} を自分で追加する方法`,finalTitle:e=>`${e} の API を持ち込もう。`,finalSubtitle:"AnythingMCP は REST/OpenAPI、GraphQL、SOAP、SQL のソースをコードなしで MCP ツールに変えます。Cloud 版は 7 日間の無料トライアル、セルフホストも可能です。"},ru:{badge:"Коннектора пока нет",note:"Готового коннектора AnythingMCP для этого бренда нет ни в Cloud, ни в self-hosted версии. Его API можно импортировать самостоятельно.",lead:e=>`Готового коннектора AnythingMCP для ${e} пока нет. Но ${e} всё равно можно использовать из Claude, ChatGPT, Cursor или Gemini: через собственный MCP-сервис ${e} или импортировав API ${e} в AnythingMCP самостоятельно (OpenAPI, GraphQL или cURL), без написания кода.`,metaDescription:e=>`Готового коннектора AnythingMCP для ${e} пока нет. Как использовать ${e} из Claude, ChatGPT, Cursor или Gemini: собственный MCP-сервис ${e} или его API, импортированный в AnythingMCP.`,ctaGuide:e=>`Как подключить ${e} самостоятельно`,finalTitle:e=>`Подключи свой API ${e}.`,finalSubtitle:"AnythingMCP превращает источники REST/OpenAPI, GraphQL, SOAP и SQL в MCP-инструменты без кода. 7 дней бесплатно в Cloud или self-hosting."}};var y=e.i(160889),N=e.i(890262);let C=["weclapp","sorare","woocommerce"],v={de:"🇩🇪",at:"🇦🇹",ch:"🇨🇭",it:"🇮🇹",es:"🇪🇸",fr:"🇫🇷",nl:"🇳🇱",be:"🇧🇪",se:"🇸🇪",dk:"🇩🇰",eu:"🇪🇺",global:"🌐",intl:"🌐",uk:"🇬🇧",gb:"🇬🇧",in:"🇮🇳",br:"🇧🇷",ng:"🇳🇬",jp:"🇯🇵"};function w(e,t){let r=`region_${t}`;return e.has(r)?e(r):t.toUpperCase()}let k=["#2159e0","#1a1815","#3a3730","#57524a"];function P({adapter:e,size:r=44}){let a=(0,x.getAdapterLogo)(e.slug),s=(0,x.logoNeedsDarkBg)(e.slug);return a?(0,t.jsx)("div",{className:"flex shrink-0 items-center justify-center overflow-hidden rounded-xl p-1.5 "+(s?"bg-slate-900":"bg-white ring-1 ring-black/5"),style:{width:r,height:r},children:(0,t.jsx)(n.default,{src:a,alt:"",width:r-12,height:r-12,className:"h-full w-full object-contain"})}):(0,t.jsx)("div",{className:"flex shrink-0 items-center justify-center rounded-xl font-bold text-white ring-1 ring-inset ring-black/5",style:{width:r,height:r,background:function(e){let t=0;for(let r=0;r>>0;return k[t%k.length]}(e.slug),fontSize:r>=56?22:14},children:(0,f.monogramOf)(e.name)})}function A({adapter:e,hero:r,tagline:n,t:s}){let i=(0,a.useLocale)();return(0,t.jsxs)("article",{className:`relative flex flex-col rounded-2xl border border-border bg-card p-5 transition hover:shadow-md ${r?"bg-card ring-1 ring-primary/25":""}`,children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(P,{adapter:e,size:r?56:44}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("div",{className:"truncate text-base font-semibold leading-tight",children:e.name}),(0,t.jsxs)("div",{className:"mt-0.5 font-mono text-label uppercase tracking-wider text-muted-foreground",children:[v[e.region]||"🌐"," ·"," ",(0,b.categoryLabel)(e.category,i)]})]})]}),n&&(0,t.jsx)("h3",{className:"mt-4 font-serif text-xl font-normal italic leading-snug text-primary",children:n}),(0,t.jsx)("p",{className:"mt-3 line-clamp-3 text-sm leading-relaxed text-muted-foreground",children:e.description}),(0,t.jsxs)("div",{className:"mt-4 flex items-center gap-2.5 font-mono text-label text-muted-foreground",children:[(0,t.jsxs)("span",{children:[(0,t.jsx)("b",{className:"font-semibold text-foreground",children:e.toolCount})," ",s("toolsLabel")]}),(0,t.jsx)("span",{className:"size-[3px] rounded-full bg-border"}),(0,t.jsx)("span",{children:e.authType?x.AUTH_LABELS[e.authType]||e.authType:""})]}),(0,t.jsxs)("div",{className:"mt-4 flex flex-wrap gap-2",children:[(0,t.jsxs)("a",{href:(0,x.isInstallableOnCloud)(e)?(0,x.getInstallUrl)(e.slug):"https://github.com/HelpCode-ai/anythingmcp",target:"_blank",rel:"noopener noreferrer",className:"inline-flex h-9 items-center gap-1.5 whitespace-nowrap rounded-lg bg-foreground px-3.5 text-sm font-semibold text-background transition hover:bg-foreground/90",children:[s((0,x.isInstallableOnCloud)(e)?"install":"selfHostCta"),(0,t.jsx)(o.ArrowRight,{className:"size-3.5"})]}),e.docsUrl&&(0,t.jsxs)("a",{href:e.docsUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex h-9 items-center gap-1.5 whitespace-nowrap rounded-lg border border-border bg-card px-3.5 text-sm font-semibold text-foreground transition hover:border-foreground/30",children:[s("docsLabel"),(0,t.jsx)(l.ExternalLink,{className:"size-3.5"})]})]})]})}function M({adapter:e,t:r,view:n="grid"}){let s="NONE"===e.authType,l=(0,a.useLocale)(),i=!0===e.comingToCloud,d=Math.max(1,Math.min(10,Math.round(2.2*Math.log2(e.toolCount+1))));return(0,t.jsxs)(y.Link,{href:`/marketplace/${e.slug}`,className:"group relative flex flex-col rounded-2xl border border-border bg-card p-3.5 transition hover:border-foreground/20 hover:shadow-md sm:p-5","aria-label":`${e.name} — ${r("connectorPageLabel")}`,children:[(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)(P,{adapter:e,size:"list"===n?44:40}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("span",{className:"truncate text-sm font-semibold leading-tight sm:text-lead",children:e.name}),(0,t.jsx)("span",{"aria-hidden":!0,className:"shrink-0 text-sm",children:v[e.region]||"🌐"})]}),(0,t.jsxs)("div",{className:"mt-0.5 flex items-center gap-1.5 font-mono text-label uppercase tracking-wider text-muted-foreground",children:[(0,t.jsx)("span",{className:"truncate",children:(0,b.categoryLabel)(e.category,l)}),(e.comingToCloud||e.selfHostOnly)&&(0,t.jsx)("span",{className:"shrink-0 rounded-full bg-muted px-1.5 py-0.5 text-label font-semibold text-foreground/70",children:e.selfHostOnly?r("selfHostOnlyBadge"):(j[l]??j.en).badge})]})]})]}),(0,t.jsx)("p",{className:"mt-3 line-clamp-2 text-sm leading-relaxed text-muted-foreground sm:line-clamp-3 sm:text-sm",children:e.description}),(0,t.jsxs)("div",{className:"mt-3 flex min-w-0 items-center justify-between gap-2 border-t border-dashed border-border pt-3 sm:mt-4",children:[(0,t.jsx)("div",{className:"flex min-w-0 items-center gap-1.5 font-mono text-label text-muted-foreground",children:!i&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"font-semibold text-foreground",children:e.toolCount}),(0,t.jsx)("span",{className:"truncate",children:r("toolsShort")}),(0,t.jsx)("span",{"aria-hidden":!0,className:"ml-1 hidden gap-[1.5px] sm:inline-flex",children:Array.from({length:10},(e,r)=>(0,t.jsx)("span",{className:`block h-[6px] w-[3px] rounded-[1px] ${ro(e),className:i,"data-active":a,children:d})}function $({id:e,label:r,count:n,active:a,asLink:s,onSelect:o}){let l="flex w-full touch-tap items-center justify-between rounded-lg border border-transparent px-3 text-left text-sm hover:bg-muted data-[active=true]:border-foreground/30 data-[active=true]:bg-muted",i=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"truncate",children:r}),(0,t.jsx)("span",{className:"font-mono text-label text-muted-foreground",children:n})]});return(0,t.jsx)("li",{children:s?(0,t.jsx)(y.Link,{href:"all"===e?"/marketplace":`/marketplace/category/${e}`,className:l,"data-active":a,"aria-current":a?"page":void 0,children:i}):(0,t.jsx)("button",{type:"button",onClick:()=>o(e),className:l,"data-active":a,children:i})})}function T({open:e,onClose:n,t:s,category:o,setCategory:l,region:i,setRegion:d,auth:c,setAuth:m,resetFilters:u,asLink:g,sort:x,setSort:h,authCounts:p,topCategoryIds:f,restCategoryIds:j,categoryCounts:y,regionOptions:N,regionCounts:C}){let k=(0,a.useLocale)(),P=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let t=P.current;t&&(e&&!t.open&&t.showModal(),!e&&t.open&&t.close())},[e]),(0,t.jsxs)("dialog",{ref:P,onClose:n,onClick:e=>{e.target===P.current&&n()},className:"mx-0 mb-0 ml-auto mt-auto w-full max-w-full rounded-t-2xl border border-border bg-card p-0 text-foreground backdrop:bg-black/50 sm:hidden",style:{maxHeight:"85dvh"},children:[(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-border px-4 py-3",children:[(0,t.jsx)("span",{className:"font-mono text-label uppercase tracking-[0.14em] text-muted-foreground",children:s("filterLabel")}),(0,t.jsx)("button",{type:"button",onClick:n,className:"inline-flex h-9 w-9 items-center justify-center rounded-full text-muted-foreground hover:bg-muted","aria-label":s("filterClose"),children:"✕"})]}),(0,t.jsxs)("div",{className:"max-h-[60dvh] overflow-y-auto px-4 py-4",children:[(0,t.jsx)("p",{className:"mb-2 font-mono text-label uppercase tracking-[0.14em] text-muted-foreground",children:s("categoryLabel")}),(0,t.jsxs)("ul",{className:"mb-6 space-y-1",children:[f.map(e=>(0,t.jsx)($,{id:e,label:"all"===e?s("allCategories"):(0,b.categoryLabel)(e,k),count:y.get(e)??0,active:o===e,asLink:g,onSelect:l},e)),j.map(e=>(0,t.jsx)($,{id:e,label:(0,b.categoryLabel)(e,k),count:y.get(e)??0,active:o===e,asLink:g,onSelect:l},e))]}),(0,t.jsx)("p",{className:"mb-2 font-mono text-label uppercase tracking-[0.14em] text-muted-foreground",children:s("regionLabel")}),(0,t.jsx)("ul",{className:"space-y-1",children:N.map(e=>(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>d(e),"data-active":i===e,className:"flex w-full touch-tap items-center justify-between rounded-lg border border-transparent px-3 text-left text-sm hover:bg-muted data-[active=true]:border-foreground/30 data-[active=true]:bg-muted",children:[(0,t.jsxs)("span",{className:"truncate",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"mr-1.5",children:"all"===e?"🌍":v[e]||"🌐"}),"all"===e?s("allRegions"):w(s,e)]}),(0,t.jsx)("span",{className:"font-mono text-label text-muted-foreground",children:C.get(e)??0})]})},e))}),(0,t.jsx)("p",{className:"mb-2 mt-6 font-mono text-label uppercase tracking-[0.14em] text-muted-foreground",children:s("authLabel")}),(0,t.jsx)("ul",{className:"space-y-1",children:["all","none","needed"].map(e=>(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>m(e),"data-active":c===e,className:"flex w-full touch-tap items-center justify-between rounded-lg border border-transparent px-3 text-left text-sm hover:bg-muted data-[active=true]:border-foreground/30 data-[active=true]:bg-muted",children:[(0,t.jsx)("span",{className:"truncate",children:"all"===e?s("authAll"):"none"===e?s("authNone"):s("authNeeded")}),(0,t.jsx)("span",{className:"font-mono text-label text-muted-foreground",children:p[e]})]})},e))}),(0,t.jsx)("p",{className:"mb-2 mt-6 font-mono text-label uppercase tracking-[0.14em] text-muted-foreground",children:s("sortLabel")}),(0,t.jsx)("ul",{className:"space-y-1",children:["tools","name"].map(e=>(0,t.jsx)("li",{children:(0,t.jsx)("button",{type:"button",onClick:()=>h(e),"data-active":x===e,className:"flex w-full touch-tap items-center rounded-lg border border-transparent px-3 text-left text-sm hover:bg-muted data-[active=true]:border-foreground/30 data-[active=true]:bg-muted",children:"tools"===e?s("sortTools"):s("sortName")})},e))})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3 border-t border-border bg-card px-4 py-3 pb-[max(env(safe-area-inset-bottom),0.75rem)]",children:[(0,t.jsx)("button",{type:"button",onClick:u,className:"touch-tap rounded-lg border border-border bg-card px-4 text-sm font-medium text-foreground hover:bg-muted",children:s("filterReset")}),(0,t.jsx)("button",{type:"button",onClick:n,className:"touch-tap flex-1 rounded-lg bg-primary px-4 text-sm font-semibold text-primary-foreground hover:opacity-90",children:s("filterApply")})]})]})}e.s(["Marketplace",0,function({adapters:e,lockedCategory:n}){let m=(0,a.useLocale)(),g=(0,s.useTranslations)("Marketplace"),[f,j]=(0,r.useState)(""),[k,P]=(0,r.useState)(n??"all"),[$,S]=(0,r.useState)("all"),[G,I]=(0,r.useState)("grid"),[R,O]=(0,r.useState)("all"),[z,E]=(0,r.useState)("tools"),[Q,U]=(0,r.useState)(!1),[H,B]=(0,r.useState)(!1),_=(0,r.useRef)(null),D=(0,r.useRef)(null),q=(0,r.useRef)(null),F=(0,r.useRef)(!1);(0,r.useEffect)(()=>{let t=new URLSearchParams(window.location.search),r={category:new Set(e.map(e=>e.category)),region:new Set(e.map(e=>e.region))},a=t.get("q"),s=t.get("category"),o=t.get("region"),l=t.get("auth"),i=t.get("sort"),d=t.get("view");a&&j(a),!n&&s&&r.category.has(s)&&P(s),o&&r.region.has(o)&&S(o),("none"===l||"needed"===l)&&O(l),"name"===i&&E(i),"list"===d&&I(d),F.current=!0},[e,n]),(0,r.useEffect)(()=>{if(!F.current)return;let e=new URLSearchParams;f.trim()&&e.set("q",f.trim()),n||"all"===k||e.set("category",k),"all"!==$&&e.set("region",$),"all"!==R&&e.set("auth",R),"tools"!==z&&e.set("sort",z),"grid"!==G&&e.set("view",G);let t=e.toString(),r=window.location.pathname+(t?`?${t}`:"");r!==window.location.pathname+window.location.search&&window.history.replaceState(null,"",r)},[f,k,$,R,z,G,n]),(0,r.useEffect)(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&"k"===e.key.toLowerCase()&&(e.preventDefault(),_.current?.focus())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]);let Y=(0,r.useMemo)(()=>n?e.filter(e=>e.category===n):e,[e,n]),K=n?(0,b.categoryLabel)(n,m):"",V=(0,r.useMemo)(()=>[...Y].sort((e,t)=>t.toolCount-e.toolCount).slice(0,3).map(e=>e.name).join(", "),[Y]),W=Y.reduce((e,t)=>e+t.toolCount,0),J=new Set(e.map(e=>e.category)).size,X=new Set(e.map(e=>e.region)).size,Z=C.map(t=>e.find(e=>e.slug===t)).filter(Boolean),ee=(0,r.useMemo)(()=>{let t=new Map([["all",e.length]]);for(let r of e)t.set(r.category,(t.get(r.category)??0)+1);return t},[e]),et=(0,r.useMemo)(()=>{let t=e.filter(e=>e.requiredEnvVars.length>0).length;return{all:e.length,needed:t,none:e.length-t}},[e]),er=(0,r.useMemo)(()=>{let t=new Map([["all",e.length]]);for(let r of e)t.set(r.region,(t.get(r.region)??0)+1);return t},[e]),en=(0,r.useMemo)(()=>[...ee.entries()].filter(([e])=>"all"!==e).sort((e,t)=>t[1]-e[1]||e[0].localeCompare(t[0])).map(([e])=>e),[ee]),ea=(0,r.useMemo)(()=>{let e=en.slice(0,6);return"all"===k||e.includes(k)||e.push(k),["all",...e]},[en,k]),es=(0,r.useMemo)(()=>en.filter(e=>!ea.includes(e)),[en,ea]),eo=(0,r.useMemo)(()=>["all",...[...er.entries()].filter(([e])=>"all"!==e).sort((e,t)=>t[1]-e[1]||e[0].localeCompare(t[0])).map(([e])=>e)],[er]),el=()=>{j(""),P(n??"all"),S("all"),O("all"),E("tools")},ei=f.trim().length>0||k!==(n??"all")||"all"!==$||"all"!==R,ed=!n&&!ei,ec=(0,r.useMemo)(()=>{let t=f.trim();return e.filter(e=>("all"===k||e.category===k)&&("all"===$||e.region===$)&&("none"!==R||!(e.requiredEnvVars.length>0))&&("needed"!==R||0!==e.requiredEnvVars.length)&&(!t||(0,p.matchesQuery)([e.name,e.description,e.category,x.CATEGORY_LABELS[e.category],(0,b.categoryLabel)(e.category,m)],t)))},[e,f,k,$,R,m]),em=(0,r.useMemo)(()=>{let t=f.trim();return t?e.filter(e=>!e.comingToCloud&&(0,p.matchesQuery)([e.name,e.description,e.category,x.CATEGORY_LABELS[e.category],(0,b.categoryLabel)(e.category,m)],t)).length:0},[e,f,m]),eu=(0,N.useSearchReport)("marketplace",f,em,m),eg=(0,r.useMemo)(()=>{let e=f.trim(),t=(e,t)=>"tools"===z&&t.toolCount-e.toolCount||e.name.localeCompare(t.name);return e?[...ec].sort((r,n)=>(0,p.nameMatchRank)(n.name,e)-(0,p.nameMatchRank)(r.name,e)||t(r,n)):[...ec].sort(t)},[ec,z,f]),ex=`${f.trim()}|${k}|${$}|${R}|${z}`,[eh,ep]=(0,r.useState)(24),[ef,eb]=(0,r.useState)(ex);ef!==ex&&(eb(ex),ep(24));let ej=eg.slice(0,eh),ey=eg.length-ej.length,eN=(0,r.useMemo)(()=>[...Y].sort((e,t)=>e.name.localeCompare(t.name)),[Y]),eC=()=>{setTimeout(()=>{let e=D.current;if(!e)return;let t=e.getBoundingClientRect().top+window.scrollY-80;window.scrollTo({top:t,behavior:"smooth"})},50)},ev=(0,t.jsxs)("div",{className:`inline-grid grid-cols-2 gap-x-5 gap-y-4 border-t border-border pt-4 sm:gap-7 ${n?"sm:grid-cols-3":"sm:grid-cols-4"}`,children:[(0,t.jsxs)("div",{className:"min-w-0 break-words font-mono text-xs text-muted-foreground",children:[(0,t.jsx)("span",{className:"mb-1 block font-serif text-[28px] font-normal italic leading-none tracking-tight text-primary",children:(0,x.shippingAdapters)(Y).length}),g("metaConnectors")]}),(0,t.jsxs)("div",{className:"min-w-0 break-words font-mono text-xs text-muted-foreground",children:[(0,t.jsx)("span",{className:"mb-1 block font-serif text-[28px] font-normal leading-none tracking-tight",children:W}),g("metaTools")]}),n?null:(0,t.jsxs)("div",{className:"min-w-0 break-words font-mono text-xs text-muted-foreground",children:[(0,t.jsx)("span",{className:"mb-1 block font-serif text-[28px] font-normal leading-none tracking-tight",children:J}),g("metaCategories")]}),n?(0,t.jsxs)("div",{className:"min-w-0 break-words font-mono text-xs text-muted-foreground",children:[(0,t.jsx)("span",{className:"mb-1 block font-serif text-[28px] font-normal leading-none tracking-tight",children:Y.filter(e=>0===e.requiredEnvVars.length).length}),g("authNone")]}):(0,t.jsxs)("div",{className:"min-w-0 break-words font-mono text-xs text-muted-foreground",children:[(0,t.jsx)("span",{className:"mb-1 block font-serif text-[28px] font-normal leading-none tracking-tight",children:X}),g("metaRegions")]})]});return(0,t.jsx)("section",{className:"py-12 sm:py-16",children:(0,t.jsxs)("div",{className:"mx-auto max-w-7xl space-y-14 px-4 sm:px-6 lg:px-8",children:[(0,t.jsxs)("section",{className:"grid items-end gap-8 lg:grid-cols-[1.45fr_1fr] lg:gap-12",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"inline-flex items-center gap-2 font-mono text-label uppercase tracking-[0.14em] text-muted-foreground",children:[(0,t.jsx)("span",{className:"size-1.5 rounded-full bg-primary"}),n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(y.Link,{href:"/marketplace",className:"inline-flex -my-1 items-center py-1 hover:text-foreground",children:g("eyebrow")}),(0,t.jsx)("span",{"aria-hidden":!0,className:"text-muted-foreground",children:"/"}),(0,t.jsx)("span",{children:K})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{children:g("eyebrow")}),(0,t.jsx)("span",{"aria-hidden":!0,className:"text-muted-foreground",children:"/"}),(0,t.jsx)("span",{children:g("eyebrowMeta",{count:(0,x.shippingAdapters)(e).length})})]})]}),(0,t.jsx)("h1",{className:"mt-4 max-w-2xl font-serif text-5xl font-normal leading-[1.02] tracking-tight sm:text-6xl",children:n?g("categoryHeroTitle",{category:K}):g.rich("heroTitle",{em:e=>(0,t.jsx)("em",{className:"font-serif italic text-primary",children:e})})}),(0,t.jsx)("p",{className:"mt-5 max-w-xl text-lg leading-relaxed text-muted-foreground",children:n?g("categoryHeroSubtitle",{count:Y.length,category:K,tools:Y.reduce((e,t)=>e+t.toolCount,0),examples:V}):g("heroSubtitle")}),(0,t.jsx)("div",{className:"mt-7 hidden lg:block",children:ev})]}),(0,t.jsxs)("div",{className:"rounded-3xl border border-border bg-card p-6 shadow-md",children:[(0,t.jsxs)("span",{className:"block font-mono text-label uppercase tracking-[0.14em] text-muted-foreground",children:["// ",g("searchLabel")]}),(0,t.jsx)(h.SearchAutocomplete,{inputRef:_,query:f,setQuery:j,handleSearchSubmit:()=>{window.matchMedia?.("(pointer: coarse)").matches===!0?(_.current?.blur(),setTimeout(()=>{let e=q.current;if(!e)return;let t=e.getBoundingClientRect().top+window.scrollY-80;window.scrollTo({top:t,behavior:"smooth"})},50)):eC()},placeholder:g("searchPlaceholderLong"),suggestions:e.map(e=>({slug:e.slug,label:e.name,hint:(0,b.categoryLabel)(e.category,m)})),onPick:t=>{let r=e.find(e=>e.slug===t);r&&(j(r.name),eC())}})]})]}),(0,t.jsx)("div",{className:"lg:hidden",children:ev}),(0,t.jsxs)("div",{className:"space-y-14",children:[(0,t.jsxs)("div",{ref:D,className:"sticky sticky-under-header z-20 -mx-2 space-y-2 rounded-2xl border border-border bg-card/95 px-4 py-3 shadow-sm backdrop-blur sm:mx-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 md:hidden",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>B(!0),className:"inline-flex touch-tap shrink-0 items-center gap-1.5 rounded-full border border-border bg-card px-3 text-sm font-medium",children:[(0,t.jsx)(u.Search,{className:"size-3.5"}),g("filterLabel"),("all"!==k||"all"!==$)&&(0,t.jsx)("span",{className:"rounded-full bg-foreground px-1.5 text-label font-bold text-background",children:+("all"!==k)+ +("all"!==$)})]}),(0,t.jsxs)("span",{className:"min-w-0 flex-1 truncate font-mono text-label text-muted-foreground",children:[(0,t.jsx)("span",{className:"font-semibold text-foreground",children:ec.length}),(0,t.jsxs)("span",{className:"hidden xs:inline",children:[" ","/ ",e.length]})]}),(0,t.jsxs)("span",{className:"ml-auto inline-flex shrink-0 overflow-hidden rounded-lg border border-border bg-muted/40",children:[(0,t.jsx)("button",{type:"button",onClick:()=>I("grid"),"aria-label":g("viewGrid"),className:`flex h-9 w-9 items-center justify-center transition ${"grid"===G?"bg-card text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`,children:(0,t.jsx)(d.LayoutGrid,{className:"size-3.5"})}),(0,t.jsx)("button",{type:"button",onClick:()=>I("list"),"aria-label":g("viewList"),className:`flex h-9 w-9 items-center justify-center transition ${"list"===G?"bg-card text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`,children:(0,t.jsx)(c.List,{className:"size-3.5"})})]})]}),(0,t.jsxs)("div",{className:"hidden md:flex md:flex-wrap md:items-center md:gap-2.5",children:[(0,t.jsx)("span",{className:"min-w-[6.5rem] font-mono text-label uppercase tracking-[0.14em] text-muted-foreground",children:g("categoryLabel")}),(0,t.jsxs)("div",{className:"flex max-w-full flex-wrap items-center gap-1 rounded-2xl border border-border bg-muted/40 p-0.5 sm:inline-flex sm:rounded-full",children:[ea.map(e=>(0,t.jsx)(L,{id:e,label:"all"===e?g("allCategories"):(0,b.categoryLabel)(e,m),count:ee.get(e)??0,active:k===e,asLink:!!n,onSelect:P},e)),es.length>0&&(0,t.jsx)("button",{type:"button",onClick:()=>U(e=>!e),"aria-expanded":Q,className:"touch-tap inline-flex items-center rounded-full px-3 py-1.5 text-sm font-medium text-muted-foreground underline decoration-dotted underline-offset-4 transition hover:text-foreground",children:Q?g("categoriesLess"):g("categoriesMore",{count:es.length})})]})]}),Q&&es.length>0&&(0,t.jsxs)("div",{className:"hidden md:flex md:flex-wrap md:items-start md:gap-2",children:[(0,t.jsx)("span",{className:"min-w-[6.5rem] font-mono text-label uppercase tracking-[0.14em] text-transparent",children:g("categoryLabel")}),(0,t.jsx)("div",{className:"flex flex-1 flex-wrap gap-1.5",children:es.map(e=>(0,t.jsx)(L,{id:e,label:(0,b.categoryLabel)(e,m),count:ee.get(e)??0,active:!1,variant:"outline",asLink:!!n,onSelect:e=>{P(e),U(!1)}},e))})]}),(0,t.jsxs)("div",{className:"hidden md:flex md:flex-wrap md:items-center md:gap-2",children:[(0,t.jsx)("span",{className:"min-w-[6.5rem] font-mono text-label uppercase tracking-[0.14em] text-muted-foreground",children:g("authLabel")}),["all","none","needed"].map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>O(e),className:`touch-tap inline-flex items-center gap-1.5 rounded-full border px-3 py-1.5 text-sm font-medium transition ${R===e?"border-foreground bg-foreground text-background":"border-border bg-card text-foreground/80 hover:border-foreground/30"}`,children:["all"===e?g("authAll"):"none"===e?g("authNone"):g("authNeeded"),(0,t.jsx)("span",{className:"font-mono text-label opacity-70",children:et[e]})]},e)),(0,t.jsxs)("span",{className:"ml-auto inline-flex items-center gap-2",children:[(0,t.jsx)("span",{className:"font-mono text-label uppercase tracking-[0.14em] text-muted-foreground",children:g("sortLabel")}),["tools","name"].map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>E(e),className:`touch-tap inline-flex items-center rounded-full border px-3 py-1.5 text-sm font-medium transition ${z===e?"border-foreground bg-foreground text-background":"border-border bg-card text-foreground/80 hover:border-foreground/30"}`,children:"tools"===e?g("sortTools"):g("sortName")},e))]})]}),(0,t.jsxs)("div",{className:"hidden md:flex md:flex-wrap md:items-center md:gap-2",children:[(0,t.jsx)("span",{className:"min-w-[6.5rem] font-mono text-label uppercase tracking-[0.14em] text-muted-foreground",children:g("regionLabel")}),eo.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>S(e),className:`touch-tap inline-flex items-center gap-1.5 rounded-full border px-3 py-1.5 text-sm font-medium transition ${$===e?"border-foreground bg-foreground text-background":"border-border bg-card text-foreground/80 hover:border-foreground/30"}`,children:[(0,t.jsx)("span",{"aria-hidden":!0,children:"all"===e?"🌍":v[e]||"🌐"}),"all"===e?g("allRegions"):w(g,e),(0,t.jsx)("span",{className:"font-mono text-label opacity-70",children:er.get(e)??0})]},e)),(0,t.jsxs)("span",{className:"ml-auto inline-flex flex-wrap items-center gap-3",children:[(0,t.jsxs)("span",{className:"font-mono text-label text-muted-foreground",children:[(0,t.jsx)("span",{className:"font-semibold text-foreground",children:ec.length})," ",g("ofConnectors",{total:e.length})]}),(0,t.jsxs)("span",{className:"inline-flex overflow-hidden rounded-lg border border-border bg-muted/40",children:[(0,t.jsx)("button",{type:"button",onClick:()=>I("grid"),"aria-label":g("viewGrid"),className:`flex h-8 w-8 items-center justify-center transition ${"grid"===G?"bg-card text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`,children:(0,t.jsx)(d.LayoutGrid,{className:"size-3.5"})}),(0,t.jsx)("button",{type:"button",onClick:()=>I("list"),"aria-label":g("viewList"),className:`flex h-8 w-8 items-center justify-center transition ${"list"===G?"bg-card text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`,children:(0,t.jsx)(c.List,{className:"size-3.5"})})]})]})]})]}),(0,t.jsx)(T,{open:H,onClose:()=>B(!1),t:g,category:k,setCategory:P,region:$,setRegion:S,auth:R,setAuth:O,resetFilters:el,asLink:!!n,sort:z,setSort:E,authCounts:et,topCategoryIds:ea,restCategoryIds:es,categoryCounts:ee,regionOptions:eo,regionCounts:er}),Z.length>0&&ed&&(0,t.jsxs)("section",{className:"space-y-4",children:[(0,t.jsx)("div",{children:(0,t.jsx)("h2",{className:"font-serif text-2xl font-normal tracking-tight sm:text-3xl",children:g("curatedTitle")})}),(0,t.jsx)("div",{className:"grid gap-4 md:grid-cols-3",children:Z.map((e,r)=>(0,t.jsx)(A,{adapter:e,hero:0===r,tagline:0===r?g("taglineHero"):1===r?g("taglineSecondary"):g("taglineThird"),t:g},e.slug))})]}),0===ec.length?(0,t.jsxs)("div",{className:"rounded-3xl border border-dashed border-border bg-card px-8 py-14 text-center",children:[(0,t.jsx)("h3",{className:"font-serif text-2xl font-normal tracking-tight",children:g("noResultsTitle")}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:g("noResultsSub")}),(0,t.jsxs)("div",{className:"mt-5 flex flex-wrap items-center justify-center gap-3",children:[(0,t.jsx)("button",{type:"button",onClick:el,className:"touch-tap inline-flex h-10 items-center gap-2 rounded-lg bg-foreground px-4 text-sm font-semibold text-background transition hover:bg-foreground/90",children:g("filterReset")}),(0,t.jsxs)("a",{href:"https://github.com/HelpCode-ai/anythingmcp/issues/new",target:"_blank",rel:"noopener noreferrer",className:"inline-flex h-10 items-center gap-2 rounded-lg border border-border bg-card px-4 text-sm font-semibold text-foreground transition hover:border-foreground/30",children:[(0,t.jsx)(i.Github,{className:"size-3.5"}),g("requestCta")]})]})]}):(0,t.jsx)("div",{ref:q,onClickCapture:e=>{let t=e.target.closest("a")?.getAttribute("href")??"",r=/\/marketplace\/([a-z0-9-]+)$/.exec(t)?.[1];r&&eu(r)},className:"list"===G?"flex flex-col gap-3":"grid grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-3",children:ej.map(e=>(0,t.jsx)(M,{adapter:e,t:g,view:G},e.slug))}),ey>0&&(0,t.jsx)("div",{className:"-mt-6 flex justify-center",children:(0,t.jsx)("button",{type:"button",onClick:()=>ep(e=>e+48),className:"touch-tap inline-flex h-11 items-center gap-2 rounded-lg border border-border bg-card px-5 text-sm font-semibold text-foreground transition hover:border-foreground/30",children:g("showMore",{count:Math.min(48,ey),remaining:ey})})})]}),(0,t.jsxs)("section",{className:"border-t border-border pt-10",children:[(0,t.jsx)("h2",{className:"font-serif text-2xl font-normal tracking-tight",children:g("browseTitle")}),(0,t.jsx)("ul",{className:"mt-4 flex flex-wrap gap-x-5 gap-y-0.5",children:en.map(e=>(0,t.jsx)("li",{children:(0,t.jsxs)(y.Link,{href:`/marketplace/category/${e}`,className:"inline-flex items-baseline gap-1.5 py-1 text-lead text-foreground/80 underline-offset-4 hover:text-foreground hover:underline","aria-current":e===n?"page":void 0,children:[(0,b.categoryLabel)(e,m),(0,t.jsx)("span",{className:"font-mono text-label text-muted-foreground",children:ee.get(e)??0})]})},e))})]}),(0,t.jsxs)("details",{className:"group border-t border-border pt-8",children:[(0,t.jsxs)("summary",{className:"cursor-pointer list-none font-serif text-2xl font-normal tracking-tight marker:hidden",children:[g("indexTitle",{count:eN.length}),(0,t.jsx)("span",{"aria-hidden":!0,className:"ml-2 inline-block text-muted-foreground transition group-open:rotate-90",children:"›"})]}),(0,t.jsx)("ul",{className:"mt-4 columns-2 gap-x-6 sm:columns-3 lg:columns-4",children:eN.map(e=>(0,t.jsx)("li",{className:"break-inside-avoid",children:(0,t.jsx)(y.Link,{href:`/marketplace/${e.slug}`,prefetch:!1,className:"inline-block py-1 text-sm text-foreground/80 underline-offset-4 hover:text-foreground hover:underline",children:e.name})},e.slug))})]}),(0,t.jsxs)("section",{className:"grid gap-8 rounded-3xl border border-border bg-card p-6 sm:p-8 lg:grid-cols-[1.3fr_1fr] lg:p-10",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"inline-flex items-center gap-2 font-mono text-label uppercase tracking-[0.14em] text-muted-foreground",children:[(0,t.jsx)("span",{className:"size-1.5 rounded-full bg-primary"}),g("submitEyebrow"),(0,t.jsx)("span",{className:"text-muted-foreground",children:"/"}),(0,t.jsx)("span",{children:"~30 min"})]}),(0,t.jsx)("h3",{className:"mt-3 max-w-lg font-serif text-3xl font-normal leading-tight tracking-tight",children:g.rich("submitTitle",{em:e=>(0,t.jsx)("em",{className:"italic text-primary",children:e})})}),(0,t.jsx)("p",{className:"mt-2 max-w-lg text-lead leading-relaxed text-muted-foreground",children:g.rich("submitBody",{code:e=>(0,t.jsx)("code",{className:"rounded bg-muted px-1.5 py-0.5 font-mono text-sm",children:e})})}),(0,t.jsx)("pre",{className:"mt-4 -mx-2 overflow-x-auto rounded-xl border border-border bg-muted/40 p-4 font-mono text-sm leading-relaxed sm:mx-0",children:(0,t.jsxs)("code",{children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:"// adapters/de/my-adapter.json"}),"\n{\n ",(0,t.jsx)("span",{className:"text-primary",children:'"slug"'}),": ",(0,t.jsx)("span",{className:"text-emerald-700 dark:text-emerald-300",children:'"my-erp"'}),",\n ",(0,t.jsx)("span",{className:"text-primary",children:'"name"'}),": ",(0,t.jsx)("span",{className:"text-emerald-700 dark:text-emerald-300",children:'"My ERP"'}),",\n ",(0,t.jsx)("span",{className:"text-primary",children:'"category"'}),": ",(0,t.jsx)("span",{className:"text-emerald-700 dark:text-emerald-300",children:'"erp"'}),",\n ",(0,t.jsx)("span",{className:"text-primary",children:'"authType"'}),": ",(0,t.jsx)("span",{className:"text-emerald-700 dark:text-emerald-300",children:'"BEARER_TOKEN"'}),",\n ",(0,t.jsx)("span",{className:"text-primary",children:'"tools"'}),": [",(0,t.jsx)("span",{className:"text-muted-foreground",children:"/* ... */"}),"]\n}"]})})]}),(0,t.jsxs)("div",{className:"flex flex-col justify-center gap-2.5",children:[(0,t.jsxs)("a",{href:"https://github.com/HelpCode-ai/anythingmcp",target:"_blank",rel:"noopener noreferrer",className:"inline-flex h-11 items-center justify-center gap-2 rounded-lg bg-primary px-5 text-sm font-semibold text-primary-foreground transition hover:bg-primary/90",children:[(0,t.jsx)(i.Github,{className:"size-4",strokeWidth:2}),g("submitCta"),(0,t.jsx)(o.ArrowRight,{className:"size-3.5"})]}),(0,t.jsxs)("a",{href:"https://github.com/HelpCode-ai/anythingmcp/blob/main/docs/tool-definition.md",target:"_blank",rel:"noopener noreferrer",className:"inline-flex h-11 items-center justify-center gap-2 rounded-lg border border-border bg-card px-5 text-sm font-semibold text-foreground transition hover:border-foreground/30",children:[g("submitDocs"),(0,t.jsx)(l.ExternalLink,{className:"size-3.5"})]})]})]})]})})}],710313)}]); //# debugId=58e9bcf2-60f5-e282-46a2-e36e2b0b0c09