1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4748],{17800:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apps/[owner]/[name]",function(){return l(85820)}])},16981:function(e,t,l){"use strict";l.d(t,{Z:function(){return p}});var a=l(11527),r=l(94599),n=l(67670),s=l(51875),i=l(89021),o=l.n(i),d=l(51122);let c=[{hrefLang:"en",baseUrl:"https://www.octoparse.com"},{hrefLang:"ja",baseUrl:"https://www.octoparse.jp"},{hrefLang:"es",baseUrl:"https://www.octoparse.es"},{hrefLang:"de",baseUrl:"https://www.octoparse.de"},{hrefLang:"fr",baseUrl:"https://www.octoparse.fr"},{hrefLang:"it",baseUrl:"https://www.octoparse.it"},{hrefLang:"ko",baseUrl:"https://www.octoparse.kr"},{hrefLang:"x-default",baseUrl:"https://www.octoparse.com"}],x=e=>{let t=e.searchParams.getAll("page"),l=e.searchParams.getAll("pageSize"),a=new URLSearchParams;return t.forEach(e=>a.set("page",e)),l.forEach(e=>a.set("pageSize",e)),e.search=a.toString(),e.href};function p(e){let{title:t,keywords:l,description:i,ogTitle:p,ogDescription:m,ogKeyword:h,ogImage:u,twitterCard:b,twitterTitle:f,twitterDescription:j,robots:g,showCanonical:v=!0,preconnectStaticCdn:w=!1,showAlternates:F=!0,children:y}=e,{i18n:N}=(0,s.$G)(),k=(0,d.useRouter)(),C=new URL(k.asPath,r.o6),E=/^\/blog\/?/.test(k.pathname)?x(C):String(new URL(C.pathname,C.origin)),_=new URL(E),T="".concat(_.pathname).concat(_.search),L=k.asPath&&k.asPath.includes("template")?"template":k.asPath.includes("blog")?"blog":"public",D=u?(0,n.ZP)({src:u.startsWith("http")?u:new URL(u,r.o6).toString()}):(0,n.ZP)({src:new URL("".concat(n.Ll["en-US"],"/og/").concat(L,".png"),r.o6).toString()});return(0,a.jsxs)(o(),{children:[(0,a.jsx)("title",{children:t}),l&&(0,a.jsx)("meta",{name:"keywords",content:l}),i&&(0,a.jsx)("meta",{name:"description",content:i}),g&&(0,a.jsx)("meta",{name:"robots",content:g}),b&&(0,a.jsx)("meta",{name:"twitter:card",content:b}),f&&(0,a.jsx)("meta",{name:"twitter:title",content:f}),j&&(0,a.jsx)("meta",{name:"twitter:description",content:j}),w&&(0,a.jsx)("link",{rel:"preconnect",href:"https://static.octoparse.com"}),v&&(0,a.jsx)("link",{rel:"canonical",href:E}),v&&F&&!k.pathname.startsWith("/blog/")&&c.map(e=>{let{hrefLang:t,baseUrl:l}=e;return(0,a.jsx)("link",{rel:"alternate",hrefLang:t,href:new URL(T,l).toString()},t)}),(!y||u)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("meta",{property:"og:image",content:D}),(0,a.jsx)("meta",{property:"twitter:image",content:D})]}),(0,a.jsx)("meta",{property:"og:site_name",content:"Octoparse"}),(!y||u)&&(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{property:"og:title",content:p||t}),(0,a.jsx)("meta",{property:"og:description",content:m||""}),h&&(0,a.jsx)("meta",{property:"og:keyword",content:h}),(!y||u)&&(0,a.jsx)("meta",{property:"og:image:width",content:"1200"}),(!y||u)&&(0,a.jsx)("meta",{property:"og:image:height",content:"630"}),(0,a.jsx)("meta",{property:"og:url",content:E}),(0,a.jsx)("meta",{property:"og:locale",content:N.language}),y]})}},41086:function(e,t,l){"use strict";l.d(t,{Z:function(){return h}});var a=l(11527),r=l(54614),n=l(2471),s=l(50785),i=l(46211),o=l(81502),d=l(51875),c=l(90919),x=l.n(c),p=l(32506),m=l.n(p);function h(e){var t,l;let{app:c,newTab:p=!1}=e,{t:h}=(0,d.$G)("data-hub"),{data:u}=(0,n.mA)(),{name:b,summary:f}=c.identity,j=null!==(l=null===(t=c.publisher)||void 0===t?void 0:t.name)&&void 0!==l?l:"",g=(0,s.l5)(c.labels),v=(0,s.Rt)(c.labels),w=!1===c.accepting_runs;return(0,a.jsxs)(m(),{href:(0,i.l6)(c),"aria-label":h("card.viewApp",{name:b}),...p?{target:"_blank",rel:"noopener noreferrer"}:{},className:"flex min-h-[242px] flex-col rounded-[18px] border border-[#DFE3EA] bg-white p-4 text-[#16181C] transition duration-200 hover:-translate-y-1 hover:border-[#9EBEFF] hover:text-[#16181C] hover:shadow-[0_14px_34px_rgba(31,57,109,0.11)] focus-visible:outline focus-visible:outline-[3px] focus-visible:outline-offset-2 focus-visible:outline-[rgba(52,112,255,0.28)]",children:[(0,a.jsxs)("div",{className:"flex min-w-0 items-center gap-2.5",children:[(0,a.jsx)("span",{className:"grid h-[46px] w-[46px] shrink-0 place-items-center rounded-[13px] border border-[#DFE3EA] bg-gradient-to-br from-white to-[#F2F5FA] text-base font-extrabold text-[#3470FF] shadow-[inset_0_0_0_5px_#fff]","aria-hidden":"true",children:v?(0,a.jsx)(x(),{src:v,alt:"",width:30,height:30,className:"object-contain"}):(0,s.ng)(b)}),(0,a.jsx)("h3",{className:"m-0 min-w-0 flex-1 truncate text-[15px] font-semibold leading-[23px]",title:b,children:b}),w&&(0,a.jsxs)("span",{className:"inline-flex shrink-0 items-center gap-[5px] rounded-full bg-[#FFF4E5] px-2 py-1 text-[11px] font-semibold leading-4 text-[#D17F00]",children:[(0,a.jsx)("i",{className:"h-1.5 w-1.5 rounded-full bg-current"}),h("card.maintenance")]})]}),(0,a.jsx)("p",{className:"mb-0 mt-[14px] line-clamp-2 text-14 leading-[22px] text-[#69758B]",children:f}),(0,a.jsx)("div",{className:"mt-3 flex flex-wrap gap-[7px]",children:g.slice(0,3).map(e=>(0,a.jsx)("span",{className:"rounded-6 bg-[#F3F4F6] px-[9px] py-[5px] text-[10px] leading-4 text-[#596579]",children:e},e))}),(0,a.jsxs)("div",{className:"mt-auto flex items-center gap-2 border-t border-[#
1EDF0F4] pt-[14px]",children:[(0,a.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5 text-[11px] font-semibold text-[#596579]",children:[(0,a.jsx)("i",{className:"grid h-[18px] w-[18px] shrink-0 place-items-center overflow-hidden rounded-full bg-[#EDF4FF]",children:(0,a.jsx)(x(),{src:(0,s.fg)(c.publisher,u),alt:h("card.publisherAvatarAlt",{publisher:j}),width:18,height:18,className:"h-full w-full object-cover"})}),(0,a.jsx)("span",{className:"truncate",children:j}),(0,a.jsx)(r.Z,{trustTier:c.trust_tier,size:"sm"})]}),(0,a.jsx)("b",{className:"ml-auto whitespace-nowrap text-[11px] font-semibold text-[#245FE8]",children:(0,o.jx)(h,c.pricing)})]})]})}},29:function(e,t,l){"use strict";var a=l(11527),r=l(78134),n=l(10710),s=l(56717),i=l(23873),o=l(28301),d=l(97709),c=l(94599),x=l(17888),p=l.n(x),m=l(51875),h=l(90919),u=l.n(h),b=l(32506),f=l.n(b),j=l(7582),g=l.n(j);let v=()=>{let{t:e,i18n:t}=(0,m.$G)("data-hub"),l="".concat((0,c.Ct)(t.language),"/datahub");return(0,a.jsxs)("footer",{className:g().footer,children:[(0,a.jsxs)("div",{className:g().row,children:[(0,a.jsxs)("div",{className:g().social,children:[(0,a.jsx)("span",{children:e("footer.followUs")}),(0,a.jsx)(f(),{href:e("common:Footer.LinkedinURL"),target:"_blank","aria-label":"LinkedIn",children:(0,a.jsx)(u(),{src:s.Z,alt:"",width:28,height:28})}),(0,a.jsx)(f(),{href:e("common:Footer.TwitterURL"),target:"_blank","aria-label":"X",children:(0,a.jsx)(u(),{src:i.Z,alt:"",width:28,height:28})}),(0,a.jsx)(f(),{href:e("common:Footer.YoutubeURL"),target:"_blank","aria-label":"YouTube",children:(0,a.jsx)(u(),{src:o.Z,alt:"",width:28,height:28})}),(0,a.jsx)(f(),{href:"https://discord.gg/zCq9WDmEPa",target:"_blank","aria-label":"Discord",children:(0,a.jsx)(u(),{src:r.Z,alt:"",width:28,height:28})}),(0,a.jsx)(f(),{href:"https://github.com/octoparse",target:"_blank","aria-label":"GitHub",children:(0,a.jsx)(u(),{src:n.Z,alt:"",width:28,height:28})})]}),(0,a.jsxs)("nav",{className:g().links,"aria-label":e("footer.navAria"),children:[(0,a.jsx)(f(),{href:"/data-hub",children:e("footer.market")}),(0,a.jsx)(f(),{href:"/data-hub/mcp",children:e("footer.mcp")}),(0,a.jsx)(f(),{href:"/data-hub/console",children:e("footer.openPlatform")}),(0,a.jsx)("a",{href:l,target:"_blank",rel:"noreferrer",children:e("footer.docs")}),(0,a.jsx)("a",{href:"mailto:[email protected]",children:e("footer.contactTitle")})]})]}),(0,a.jsxs)("div",{className:g().row,children:[(0,a.jsxs)(f(),{href:"/data-hub",className:g().brand,"aria-label":e("footer.homeAria"),children:[(0,a.jsx)(u(),{src:d.Z,alt:"Octoparse",height:26}),(0,a.jsx)("span",{children:"Data Hub"})]}),(0,a.jsxs)("div",{className:g().legal,children:[(0,a.jsx)("span",{children:e("common:Footer.Copyright",{year:p()().year()})}),(0,a.jsx)(f(),{href:e("common:Footer.TermsURL"),children:e("common:Footer.Terms")}),(0,a.jsx)(f(),{href:e("common:Footer.PrivacyURL"),children:e("common:Footer.Privacy")})]})]})]})};t.Z=v},54614:function(e,t,l){"use strict";l.d(t,{Z:function(){return d}});var a=l(11527),r=l(50785),n=l(51875);let s={official:"bg-[#EDF4FF] text-[#3470FF]",partner:"bg-[#FFF6E6] text-[#B26205]"},i=()=>(0,a.jsxs)("svg",{viewBox:"0 0 24 24",width:"1.1em",height:"1.1em",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,a.jsx)("path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z"}),(0,a.jsx)("path",{d:"m9 12 2 2 4-4"})]}),o=()=>(0,a.jsxs)("svg",{viewBox:"0 0 24 24",width:"1.1em",height:"1.1em",fill:"none",stroke:"currentColor",strokeWidth:"2.4","aria-hidden":!0,children:[(0,a.jsx)("circle",{cx:"9",cy:"12",r:"5.5"}),(0,a.jsx)("circle",{cx:"15",cy:"12",r:"5.5"})]});function d(e){let{trustTier:t,size:l="md"}=e,{t:d}=(0,n.$G)("data-hub"),c=(0,r.q4)(d,t);return c?(0,a.jsxs)("span",{className:"inline-flex shrink-0 items-center gap-[3px] font-semibold leading-[1.55] ".concat("sm"===l?"rounded-4 px-[5px] py-[2px] text-[9px]":"rounded-4 px-1.5 py-0.5 text-12"," ").concat(s[t]),children:["official"===t?(0,a.jsx)(i,{}):(0,a.jsx)(o,{}),c]}):null}},33329:function(e,t,l){"use strict";l.d(t,{NW:function(){return r},lb:function(){return n}});let a="USD",r=e=>{e&&(a=e)},n=function(e){let{min:t=2,max:l=4}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?"â":new Intl.NumberFormat("en-US",{style:"currency",currency:a,minimumFractionDigits:t,maximumFractionDigits:Math.max(t,l)}).format(e)}},18099:function(e,t,l){"use strict";l.d(t,{r:function(){return j}});var a,r=l(51875),n=l(50959),s=l(64819),i=l(46211),o=l(50785),d=l(81502);let c=(e,t)=>{var l;return{id:(0,i.fj)(t),name:t.identity.name,summary:t.identity.summary,logo:(0,o.Rt)(t.labels),pricingLabel:(0,d.jx)(e,t.pricing),publisher:null!==(a=null===(l=t.publisher)||void 0===l?void 0:l.name)&&void 0!==a?a:"",savedAt:t.saved_at?Date.parse(t.saved_at):Date.now()}},x="datahub.favorites.v1",p=()=>{try{var e;let t=JSON.parse(null!==(e=window.localStorage.getItem(x))&&void 0!==e?e:"[]");if(!Array.isArray(t))return[];return t.map(e=>e&&"object"==typeof e?e.id:null).filter(e=>"string"==typeof e&&e.includes("/"))}catch(e){return[]}},m=()=>{try{window.localStorage.removeItem(x)}catch(e){}},h={revalidateOnFocus:!1,shouldRetryOnError:!1},u=()=>{let e=window.location.pathname+window.location.search;window.location.href="/api/auth?nextUrl=".concat(encodeURIComponent(e))};async function b(){let e;try{e=(await (0,i.oB)()).items}
1catch(e){if(e instanceof i.n&&"UNAUTHORIZED"===e.code)return null;throw e}let t=await f(e);return null!=t?t:e}async function f(e){let t=new Set(e.map(i.fj)),l=p().filter(e=>!t.has(e));if(!l.length)return m(),null;let a=await Promise.allSettled(l.map(e=>(0,i.zl)(e))),r=a.some(e=>"rejected"===e.status&&!(e.reason instanceof i.n));return r||m(),(await (0,i.oB)()).items}let j=()=>{let{t:e}=(0,r.$G)("data-hub"),{data:t,mutate:l}=(0,s.ZP)("datahub/favorites",b,h),a=(null!=t?t:[]).map(t=>c(e,t)),o=(0,n.useCallback)(e=>{let a="string"==typeof e?e:e.id;if(null===t){u();return}if(void 0===t)return;let r=t.some(e=>(0,i.fj)(e)===a),n=r?t.filter(e=>(0,i.fj)(e)!==a):[...t,g(a)];l(async()=>(await (r?(0,i.gk)(a):(0,i.zl)(a)),(await (0,i.oB)()).items),{optimisticData:n,rollbackOnError:!0,revalidate:!1}).catch(e=>{e instanceof i.n&&"UNAUTHORIZED"===e.code&&u()})},[t,l]);return{items:a,ready:void 0!==t,toggle:o,has:e=>a.some(t=>t.id===e)}},g=e=>{var t;let[,l=e]=e.split("/");return{namespace:null!==(t=e.split("/")[0])&&void 0!==t?t:null,app_name:l,status:"published",identity:{app_name:l,name:l,summary:""},discovery:{},saved_at:null}}},85820:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSP:function(){return ew},default:function(){return eF}});var a,r=l(11527),n=l(16981),s=l(46211),i=l(55266),o=l(82187),d=l.n(o),c=l(874),x=l.n(c),p=l(51875),m=l(84418),h=l(32506),u=l.n(h),b=l(50959),f=l(18099);let j=(0,b.createContext)(null);function g(e){var t,l;let{value:a,children:n}=e,i=(0,f.r)(),o=(0,s.rY)(a.manifest),d=i.has(o),c=(0,b.useRef)(null);i.ready&&(null===(t=c.current)||void 0===t?void 0:t.ref)!==o&&(c.current={ref:o,favored:d});let x=(null===(l=c.current)||void 0===l?void 0:l.ref)===o?Number(d)-Number(c.current.favored):0,p=void 0===a.manifest.favorite_count?void 0:a.manifest.favorite_count+x,m={...a,favorite:{favored:d,ready:i.ready,count:p,toggle:()=>i.toggle(o)}};return(0,r.jsx)(j.Provider,{value:m,children:n})}function v(){let e=(0,b.useContext)(j);if(!e)throw Error("useAppDetail must be used within AppDetailProvider");return e}var w=l(55431),F=l(14260),y=l(50785);let N=(0,b.createContext)(null);function k(){let e=(0,b.useContext)(N);if(!e)throw Error("useDetailTabs must be used within DetailTabsProvider");return e}function C(e){var t,l;let{tabs:a,children:n}=e,[s,i]=(0,b.useState)(null!==(l=null===(t=a[0])||void 0===t?void 0:t.key)&&void 0!==l?l:"overview"),[o,d]=(0,b.useState)("mcp"),{bannerHeight:c}=(0,b.useContext)(F.D),x=(0,b.useRef)(!1),p=(0,b.useRef)(c);p.current=c,(0,b.useEffect)(()=>{let e,t=0,l=()=>{var e,l;t=0;let r=document.documentElement;if(window.innerHeight+window.scrollY>=r.scrollHeight-2){i(a[a.length-1].key);return}let n=72+p.current+88,s=null!==(l=null===(e=a[0])||void 0===e?void 0:e.key)&&void 0!==l?l:"overview";for(let e of a){let t=document.getElementById(e.key);t&&t.getBoundingClientRect().top<=n&&(s=e.key)}i(s)},r=()=>{if(x.current){e&&clearTimeout(e),e=setTimeout(()=>{x.current=!1},150);return}t||(t=requestAnimationFrame(l))},n=()=>{x.current=!1};return window.addEventListener("scroll",r,{passive:!0}),window.addEventListener("wheel",n,{passive:!0}),window.addEventListener("touchmove",n,{passive:!0}),()=>{window.removeEventListener("scroll",r),window.removeEventListener("wheel",n),window.removeEventListener("touchmove",n),t&&cancelAnimationFrame(t),e&&clearTimeout(e)}},[a]),(0,b.useEffect)(()=>{let e=window.location.hash.slice(1);a.some(t=>t.key===e)&&(i(e),x.current=!0,requestAnimationFrame(()=>{var t;return null===(t=document.getElementById(e))||void 0===t?void 0:t.scrollIntoView()}))},[a]);let m=e=>{if(!a.some(t=>t.key===e))return;i(e),window.history.replaceState(null,"","#".concat(e));let t=document.getElementById(e);t&&(x.current=!0,t.scrollIntoView({behavior:"smooth"}))},h=e=>{d(e),m("access")};return(0,r.jsx)(N.Provider,{value:{tabs:a,active:s,accessMethod:o,openTab:m,setAccessMethod:d,openAccessMethod:h},children:n})}function E(){let{t:e}=(0,p.$G)("data-hub"),{tabs:t,active:l,openTab:a}=k(),{manifest:n}=v(),{bannerHeight:s}=(0,b.useContext)(F.D),i=(0,b.useRef)(null),o=(0,b.useRef)(null),[c,x]=(0,b.useState)(!1),m=n.identity.name;(0,b.useEffect)(()=>{var e;let t=null===(e=o.current)||void 0===e?void 0:e.querySelector('[data-key="'.concat(l,'"]'));null==t||t.scrollIntoView({block:"nearest",inline:"nearest"})},[l]),(0,b.useEffect)(()=>{let e=0,t=72+s,l=()=>{var l,a;e=0;let r=null!==(a=null===(l=i.current)||void 0===l?void 0:l.getBoundingClientRect().top)&&void 0!==a?a:Number.POSITIVE_INFINITY;x(window.scrollY>0&&r<=t+1)},a=()=>{e||(e=requestAnimationFrame(l))};return l(),window.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",a),()=>{window.removeEventListener("scroll",a),window.removeEventListener("resize",a),e&&cancelAnimationFrame(e)}},[s]);let h=()=>{window.history.replaceState(null,"","".concat(window.location.pathname).concat(window.location.search)),window.scrollTo({top:0,behavior:"smooth"})};return(0,r.jsx)("nav",{ref:i,"aria-label":e("detail.tabs.navLabel"),className:"sticky z-[1] border-b border-[#F0F0F0] bg-white/95 backdrop-blur",style:{to
1p:72+s},children:(0,r.jsxs)("div",{className:"mx-auto flex w-full max-w-[1248px] items-center px-4 md:px-6",children:[(0,r.jsxs)("button",{type:"button",title:m,"aria-label":e("detail.tabs.backToTop",{name:m}),tabIndex:c?0:-1,onClick:h,className:d()("flex min-w-0 cursor-pointer items-center overflow-hidden border-0 border-r border-[#F0F0F0] bg-transparent p-0 text-left transition-all duration-200 hover:text-[#3470FF] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#3470FF]",c?"mr-4 max-w-[220px] pr-4 opacity-100 lg:max-w-[260px]":"pointer-events-none mr-0 max-w-0 pr-0 opacity-0"),"aria-hidden":!c,children:[(0,r.jsx)("span",{className:"mr-2 flex h-7 w-7 shrink-0 items-center justify-center rounded-8 bg-[#F0F7FF] text-12 font-bold text-[#3470FF]",children:(0,y.ng)(m)}),(0,r.jsx)("span",{className:"min-w-0 truncate text-14 font-semibold text-[#16181C]",children:m})]}),(0,r.jsx)("div",{ref:o,className:"flex min-w-0 flex-1 gap-1 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:t.map(e=>(0,r.jsxs)("button",{"data-key":e.key,type:"button","aria-current":l===e.key?"true":void 0,onClick:()=>a(e.key),className:d()("relative inline-flex cursor-pointer items-center gap-1.5 whitespace-nowrap border-0 bg-transparent px-3 py-3.5 text-14 transition-colors",l===e.key?"font-semibold text-[#3470FF]":"text-[#595759] hover:text-[#16181C]"),children:["access"===e.key&&(0,r.jsxs)("span",{"aria-hidden":"true",className:d()("relative inline-flex h-[18px] items-center rounded-4 px-1.5 text-[11px] font-bold leading-none tracking-tight",l===e.key?"bg-[#3470FF] text-white":"bg-[#F0F7FF] text-[#3470FF]"),children:["AI",(0,r.jsx)("svg",{className:d()("absolute -right-1.5 -top-1.5",l===e.key?"text-[#3470FF]":"text-[#5C92FF]"),width:"10",height:"10",viewBox:"0 0 12 12",fill:"currentColor",children:(0,r.jsx)("path",{d:"M6 0l1.2 3.8L11 5 7.2 6.2 6 10 4.8 6.2 1 5l3.8-1.2L6 0z"})})]}),e.label,l===e.key&&(0,r.jsx)("span",{className:"absolute inset-x-3 bottom-0 h-0.5 rounded-full bg-[#3470FF]","aria-hidden":"true"})]},e.key))})]})})}var _=l(64634);function T(){let{t:e}=(0,p.$G)("data-hub");return(0,r.jsx)(u(),{href:"/data-hub/console/api-keys",className:"whitespace-nowrap text-12 font-medium text-[#3470FF] transition-colors hover:text-[#1559E8]",children:e("detail.access.viewApiKeys")})}let L=(0,r.jsx)("code",{className:"rounded-4 bg-[#F6F7F9] px-1.5 py-0.5 font-mono text-[13px]"}),D=(0,r.jsx)("code",{className:"rounded-4 bg-[#F6F7F9] px-1 py-0.5 font-mono text-[12px]"});function S(){let{t:e}=(0,p.$G)("data-hub"),{manifest:t}=v(),{accessMethod:l,setAccessMethod:a}=k(),n=(0,s.rY)(t),o=(0,i.ix)(n),c=JSON.stringify((0,w.Mg)(t.input.schema)),[h,f]=(0,b.useState)("json"),[j,g]=(0,b.useState)("apikey"),[F,y]=(0,b.useState)("python"),[N,C]=(0,b.useState)(!1),[E,S]=(0,b.useState)("mcp"),B=[{key:"mcp",label:"MCP"},{key:"api",label:"API"},{key:"sdk",label:"SDK"},{key:"file",label:e("detail.access.fileExport")},{key:"cli",label:"CLI"},{key:"skill",label:"Skill"}];return(0,b.useEffect)(()=>S(l),[l]),(0,r.jsx)(_.$0,{id:"access",title:e("detail.access.title"),intro:e("detail.access.intro"),children:(0,r.jsxs)("div",{className:"overflow-hidden rounded-16 border border-[#E3E3E3] bg-white",children:[(0,r.jsx)("div",{className:"flex overflow-x-auto border-b border-[#E3E3E3] bg-[#F6F7F9] px-3 pt-3 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden md:px-4",role:"tablist","aria-label":e("detail.access.title"),children:B.map(e=>(0,r.jsx)("button",{type:"button",role:"tab","aria-selected":E===e.key,onClick:()=>{"cli"===e.key||"skill"===e.key?S(e.key):a(e.key)},className:d()("-mb-px cursor-pointer whitespace-nowrap rounded-t-8 border px-4 py-2 text-14 transition-colors",E===e.key?"border-[#E3E3E3] border-b-white bg-white font-semibold text-[#1559E8]":"border-transparent bg-transparent text-[#595759] hover:text-[#16181C]"),children:e.label},e.key))}),(0,r.jsxs)("div",{className:"p-5 md:p-6",children:["mcp"===E&&(0,r.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,r.jsx)("p",{className:"m-0 text-[15px] leading-6 text-[#16181C]",children:e("detail.access.mcp.intro")}),(0,r.jsxs)("div",{children:[(0,r.jsx)(_.DK,{extra:(0,r.jsx)("div",{className:"flex gap-1 rounded-8 bg-[#F6F7F9] p-1",children:i.LR.map(e=>(0,r.jsx)("button",{type:"button",onClick:()=>f(e.key),className:d()("cursor-pointer whitespace-nowrap rounded-6 border-0 px-3 py-1 text-[13px] transition-colors",h===e.ke
1y?"bg-white font-medium text-[#16181C]":"bg-transparent text-[#595759]"),children:e.label},e.key))}),children:e("detail.access.mcp.clientConfig")}),(0,r.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-3",children:[(0,r.jsx)("div",{className:"flex gap-1 rounded-8 bg-[#F6F7F9] p-1",children:[["apikey",e("detail.access.mcp.apiKeyRecommended")],["oauth",e("detail.access.mcp.oauthLogin")]].map(e=>{let[t,l]=e;return(0,r.jsx)("button",{type:"button",onClick:()=>g(t),className:d()("cursor-pointer whitespace-nowrap rounded-6 border-0 px-3 py-1 text-[13px] transition-colors",j===t?"bg-white font-medium text-[#16181C]":"bg-transparent text-[#595759]"),children:l},t)})}),(0,r.jsx)("p",{className:"m-0 text-[13px] leading-5 text-[#595759]",children:e("apikey"===j?"detail.access.mcp.apiKeyHint":"detail.access.mcp.oauthHint")})]}),(0,r.jsx)("div",{className:"mt-3",children:(()=>{var e;let t=null!==(e=i.LR.find(e=>e.key===h))&&void 0!==e?e:i.LR[0];return(0,r.jsx)(_.dn,{code:t.snippet(o,(0,i.ei)(n),j),lang:t.lang})})()}),"apikey"===j&&(0,r.jsx)("div",{className:"mt-3",children:(0,r.jsx)(T,{})})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(_.DK,{children:e("detail.access.mcp.letAiTitle")}),(0,r.jsx)("p",{className:"m-0 mt-2 text-14 leading-6 text-[#595759]",children:e("detail.access.mcp.letAiIntro")}),(0,r.jsx)("button",{type:"button",onClick:()=>{x()((0,i.Bk)(o,(0,i.ei)(n))),C(!0),setTimeout(()=>C(!1),1500)},className:"mt-3 inline-flex h-9 cursor-pointer items-center justify-center rounded-8 border border-[#3470FF] bg-[#3470FF] px-4 text-14 leading-5 text-white transition-colors duration-200 hover:border-[#5C92FF] hover:bg-[#5C92FF]",children:e(N?"detail.access.mcp.promptCopied":"detail.access.mcp.copyPrompt")})]}),(0,r.jsx)("p",{className:"m-0 text-14 text-[#8C8C8C]",children:(0,r.jsx)(m.Trans,{ns:"data-hub",i18nKey:"detail.access.mcp.composeHint",components:{mcpLink:(0,r.jsx)(u(),{href:"/data-hub/mcp?add=".concat(encodeURIComponent(n)),className:"text-[#3470FF] transition-colors hover:text-[#1559E8]"})}})})]}),"api"===E&&(0,r.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,r.jsx)("p",{className:"m-0 text-[15px] leading-6 text-[#16181C]",children:(0,r.jsx)(m.Trans,{ns:"data-hub",i18nKey:"detail.access.api.intro",components:{code:L}})}),(0,r.jsxs)("div",{children:[(0,r.jsx)(_.DK,{children:e("detail.access.api.exampleTitle")}),(0,r.jsx)("div",{className:"mt-3",children:(0,r.jsx)(_.dn,{code:(0,i.wW)(n,c),lang:"curl"})}),(0,r.jsx)("div",{className:"mt-3",children:(0,r.jsx)(T,{})})]}),(0,r.jsx)("p",{className:"m-0 text-14 text-[#8C8C8C]",children:(0,r.jsx)(m.Trans,{ns:"data-hub",i18nKey:"detail.access.api.footnote",components:{code:D}})})]}),"sdk"===E&&(0,r.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,r.jsx)("p",{className:"m-0 text-[15px] leading-6 text-[#16181C]",children:(0,r.jsx)(m.Trans,{ns:"data-hub",i18nKey:"detail.access.sdk.intro",components:{code:L}})}),(0,r.jsxs)("div",{children:[(0,r.jsx)(_.DK,{extra:(0,r.jsx)("div",{className:"flex gap-1 rounded-8 bg-[#F6F7F9] p-1",children:[["python","Python"],["js","JavaScript"]].map(e=>{let[t,l]=e;return(0,r.jsx)("button",{type:"button",onClick:()=>y(t),className:d()("cursor-pointer whitespace-nowrap rounded-6 border-0 px-3 py-1 text-[13px] transition-colors",F===t?"bg-white font-medium text-[#16181C]":"bg-transparent text-[#595759]"),children:l},t)})}),children:e("detail.access.sdk.exampleTitle")}),(0,r.jsx)("div",{className:"mt-3",children:"python"===F?(0,r.jsx)(_.dn,{code:(0,i.NO)(n,c),lang:"python"}):(0,r.jsx)(_.dn,{code:(0,i.Y5)(n,c),lang:"javascript"})}),(0,r.jsx)("div",{className:"mt-3",children:(0,r.jsx)(T,{})})]})]}),"file"===E&&(0,r.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,r.jsx)("p",{className:"m-0 text-[15px] leading-6 text-[#16181C]",children:(0,r.jsx)(m.Trans,{ns:"data-hub",i18nKey:"detail.access.file.intro",components:{code:L}})}),(0,r.jsxs)("div",{children:[(0,r.jsx)(_.DK,{children:e("detail.access.file.exampleTitle")}),(0,r.jsx)("div",{className:"mt-3",children:(0,r.jsx)(_.dn,{code:(0,i.nU)(n),lang:"curl"})}),(0,r.jsx)("div",{className:"mt-3",children:(0,r.jsx)(T,{})})]})]}),"cli"===E&&(0,r.jsx)(A,{title:"CLI",desc:e("detail.access.planned.cli")}),"skill"===E&&(0,r.jsx)(A,{title:"Skill",desc:e("detail.access.planned.skill")})]})]})})}function A(e){let{title:t,desc:l}=e,{t:a}=(0,p.$G)("data-hub");return(0,r.jsxs)("div",{className:"flex flex-col items-start gap-3 py-4",children:[(0,r.jsx)("span",{className:"rounded-4 bg-[#F6F7F9] px-2 py-0.5 text-12 font-medium text-[#8C8C8C]",children:a("detail.access.planned.badge")}),(0,r.jsxs)("p",{className:"m-0 text-[15px] leading-6 text-[#16181C]",children:[t,": ",l]}),(0,r.jsx)("p",{className:"m-0 text-14 text-[#595759]",children:a("detail.access.planned.note")})]})}var B=l(51122),R=l(53461),I=l(90919),P=l.n(I);function U(){return(0,r.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8","aria-hidden":"true",className:"shrink-0 text-[#8C8C8C]",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7 17 17 7M9 7h8v8"})})}function M(e){let{children:t}=e;return(0,r.jsx)("span",{className:"mt-0.5 flex h-8 w-8 shrink-0 items-center justify-center rounded-8 bg-[#F6F7F9] text-[#595759]",children:t})}function Z(){return(0,r.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none","aria-label":"Perplexity",role:"img",children:(0,r.jsx)("path",{d:"m12 2 2.1 6.2L20 6.1l-3.9 5.1L22 14l-6.7.1 1.8 6.3-5.1-4.1L7 22l.9-6.7L2 14l5.9-2.8L4 6.1l5.9 2.1L12 2Z",stroke:"#1A837D",strokeWidth:"1.7",strokeLinejoin:"round"})})}let q="flex w-full cursor-pointer items-start gap-3 rounded-8 border-0 bg-transparent px-3 py-2.5 text-left transition-colors hover:bg-[#f6f7f9]";function G(){let{t:e}=(0,p.$G)("data-hub"),{manifest:t}=v(),[l,a]=(0,b.useState)(!1),[n,i]=(0,b.useState)(!1),o="/apps/".concat((0,s.rY)(t),"/llms.md"),d="/data-hub/mcp?add=".concat(encodeURIComponent((0,s.rY)(t))),c=()=>{x()((0,w.hr)(e,t)),a(!0),i(!1),window.setTimeout(()=>a(!1),2e3)},m=l=>{let a=e("detail.aiMenu.askPrompt",{name:t.identity.name,url:"".concat(window.location.origin).concat(o)});window.open("".concat(l).concat(encodeURIComponent(a)),"_blank","noopener,noreferrer"),i(!1)},h=()=>{window.location.href=d,i(!1)};return(0,r.jsxs)(R.v,{opened:n,onChange:i,position:"bottom-end",offset:6,withinPortal:!0,children:[(0,r.jsx)(R.v.Target,{children:(0,r.jsx)("button",{type:"button","aria-label":e("detail.aiMenu.ariaLabel"),"aria-expanded":n,title:e("detail.aiMenu.buttonTitle"),className:"inline-flex ".concat("h-12 w-12 rounded-[10px]"," cursor-pointer items-center justify-center border transition-colors ").concat(n||l?"border-[#3470FF] bg-[#F0F7FF] text-[#3470FF]":"border-[#
1E3E3E3] bg-white text-[#16181C] hover:border-[#3470FF] hover:text-[#3470FF]"),children:(0,r.jsxs)("span",{className:"relative text-[13px] font-bold leading-none tracking-tight",children:["AI",(0,r.jsx)("svg",{className:"absolute -right-2.5 -top-2.5 text-[#3470FF]",width:"10",height:"10",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M6 0l1.2 3.8L11 5 7.2 6.2 6 10 4.8 6.2 1 5l3.8-1.2L6 0z"})})]})})}),(0,r.jsxs)(R.v.Dropdown,{className:"min-w-[320px] overflow-hidden !rounded-12 !border-[#E3E3E3] bg-white !p-1 !shadow-none",children:[(0,r.jsxs)("button",{type:"button",onClick:c,className:q,children:[(0,r.jsx)(M,{children:(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8","aria-hidden":"true",children:[(0,r.jsx)("rect",{x:"9",y:"9",width:"11",height:"11",rx:"2"}),(0,r.jsx)("path",{d:"M5 15V5a2 2 0 0 1 2-2h10"})]})}),(0,r.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,r.jsx)("b",{className:"block text-14 font-semibold text-[#16181C]",children:l?e("detail.ui.copied"):e("detail.aiMenu.copyForAi")}),(0,r.jsx)("small",{className:"mt-0.5 block text-12 font-normal text-[#8C8C8C]",children:e("detail.aiMenu.copyForAiDesc")})]})]}),(0,r.jsxs)("a",{href:o,target:"_blank",rel:"noreferrer",className:q,onClick:()=>i(!1),children:[(0,r.jsx)(M,{children:(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8","aria-hidden":"true",children:[(0,r.jsx)("path",{d:"M14 3h5v5"}),(0,r.jsx)("path",{d:"M9 3.5h5.5L18 7v10.5A1.5 1.5 0 0 1 16.5 19H9a1.5 1.5 0 0 1-1.5-1.5V5A1.5 1.5 0 0 1 9 3.5Z"}),(0,r.jsx)("path",{d:"m9.5 13 2-2.5L14 13"})]})}),(0,r.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,r.jsx)("b",{className:"block text-14 font-semibold text-[#16181C]",children:e("detail.aiMenu.viewMarkdown")}),(0,r.jsx)("small",{className:"mt-0.5 block text-12 font-normal text-[#8C8C8C]",children:e("detail.aiMenu.viewMarkdownDesc")})]}),(0,r.jsx)(U,{})]}),(0,r.jsx)(R.v.Divider,{className:"mx-2 my-1 !border-[#e3e3e3]"}),(0,r.jsxs)("button",{type:"button",onClick:()=>m("https://chatgpt.com/?q="),className:q,children:[(0,r.jsx)(M,{children:(0,r.jsx)(P(),{src:"/static/mcp/chatgpt.svg",alt:"ChatGPT",width:20,height:20})}),(0,r.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,r.jsx)("b",{className:"block text-14 font-semibold text-[#16181C]",children:e("detail.aiMenu.openIn",{client:"ChatGPT"})}),(0,r.jsx)("small",{className:"mt-0.5 block text-12 font-normal text-[#8C8C8C]",children:e("detail.aiMenu.openInDesc",{client:"ChatGPT"})})]}),(0,r.jsx)(U,{})]}),(0,r.jsxs)("button",{type:"button",onClick:()=>m("https://claude.ai/new?q="),className:q,children:[(0,r.jsx)(M,{children:(0,r.jsx)(P(),{src:"/static/mcp/claude.svg",alt:"Claude",width:20,height:20})}),(0,r.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,r.jsx)("b",{className:"block text-14 font-semibold text-[#16181C]",children:e("detail.aiMenu.openIn",{client:"Claude"})}),(0,r.jsx)("small",{className:"mt-0.5 block text-12 font-normal text-[#8C8C8C]",children:e("detail.aiMenu.openInDesc",{client:"Claude"})})]}),(0,r.jsx)(U,{})]}),(0,r.jsxs)("button",{type:"button",onClick:()=>m("https://www.perplexity.ai/search/new?q="),className:q,children:[(0,r.jsx)(M,{children:(0,r.jsx)(Z,{})}),(0,r.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,r.jsx)("b",{className:"block text-14 font-semibold text-[#16181C]",children:e("detail.aiMenu.openIn",{client:"Perplexity"})}),(0,r.jsx)("small",{className:"mt-0.5 block text-12 font-normal text-[#8C8C8C]",children:e("detail.aiMenu.openInDesc",{client:"Perplexity"})})]}),(0,r.jsx)(U,{})]}),(0,r.jsx)(R.v.Divider,{className:"mx-2 my-1 !border-[#e3e3e3]"}),(0,r.jsxs)("button",{type:"button",onClick:h,className:q,children:[(0,r.jsx)(M,{children:(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8","aria-hidden":"true",children:[(0,r.jsx)("path",{strokeLinecap:"round",d:"M8 12h8M7 8h2m6 0h2M7 16h2m6 0h2"}),(0,r.jsx)("rect",{x:"4",y:"5",width:"16",height:"14",rx:"3"})]})}),(0,r.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,r.jsx)("b",{className:"block text-14 font-semibold text-[#16181C]",children:e("detail.aiMenu.openMcpConfig")}),(0,r.jsx)("small",{className:"mt-0.5 block text-12 font-normal text-[#8C8C8C]",children:e("detail.aiMenu.openMcpConfigDesc")})]})]})]})]})}function $(){var e,t,l,a,n;let{t:i}=(0,p.$G)("data-hub"),{manifest:o,favorite:d}=v(),{openTab:c}=k(),m=(0,B.useRouter)(),h=o.identity.name,f=null!==(t=o.source_locale)&&void 0!==t?t:null,j=null!==(l=o.display_locale)&&void 0!==l?l:f,g=!!(f&&j&&j!==f),w=!g&&"string"==typeof m.query.locale&&(null!==(a=null===(e=o.available_locales)||void 0===e?void 0:e.length)&&void 0!==a?a:0)>
10,F=e=>{let t={...m.query};delete t.owner,delete t.name,e?t.locale=e:delete t.locale;let l=new URLSearchParams(t).toString();return"".concat(m.asPath.split("?")[0]).concat(l?"?".concat(l):"")},N=(0,s.rY)(o),[C,E]=(0,b.useState)(!1),_=()=>{x()(N),E(!0),window.setTimeout(()=>E(!1),1600)},T=[{key:"capability:".concat((0,y.v1)(o.discovery)),label:(0,y.Wz)(i,o.discovery),href:"/data-hub?capability=".concat(encodeURIComponent((0,y.v1)(o.discovery)))},...y.WB.flatMap(e=>{var t;return(null!==(n=null===(t=o.labels)||void 0===t?void 0:t[e])&&void 0!==n?n:[]).map(t=>({key:"".concat(e,":").concat(t.slug),label:t.label,href:"/data-hub?".concat(e,"=").concat(encodeURIComponent(t.slug))}))})].slice(0,4),L=(0,y.y)(i,o.status,o.accepting_runs);return(0,r.jsx)("div",{className:"bg-white px-4 pb-8 pt-6 md:px-6",children:(0,r.jsxs)("div",{className:"mx-auto w-full max-w-[1200px]",children:[(0,r.jsxs)("nav",{"aria-label":i("detail.header.breadcrumb"),className:"text-14 text-[#8C8C8C]",children:[(0,r.jsx)(u(),{href:"/data-hub",className:"text-[#8C8C8C] transition-colors hover:text-[#3470FF]",children:"Data Hub"}),(0,r.jsx)("span",{className:"mx-2",children:"/"}),(0,r.jsx)("span",{className:"text-[#595759]",children:h})]}),(0,r.jsxs)("div",{className:"mt-5 flex flex-col gap-6 lg:flex-row lg:items-start lg:justify-between",children:[(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,r.jsx)("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-12 bg-[#F0F7FF] text-[20px] font-bold text-[#3470FF]","aria-hidden":"true",children:(0,y.ng)(h)}),(0,r.jsx)("h1",{className:"m-0 text-[24px] font-bold leading-8 text-[#16181C] md:text-[28px] md:leading-9",children:h})]}),(0,r.jsxs)("button",{type:"button",onClick:_,title:i("detail.header.copyAppId"),className:"ml-[60px] mt-1.5 flex cursor-pointer items-center gap-1.5 border-0 bg-transparent p-0 font-mono text-[13px] text-[#8C8C8C] transition-colors hover:text-[#3470FF]",children:[(0,r.jsx)("span",{className:"break-all text-left",children:N}),C?(0,r.jsx)("span",{className:"shrink-0 font-sans text-12 text-[#1AB83F]",children:i("detail.ui.copied")}):(0,r.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8","aria-hidden":"true",className:"shrink-0",children:[(0,r.jsx)("rect",{x:"9",y:"9",width:"11",height:"11",rx:"2"}),(0,r.jsx)("path",{d:"M5 15V5a2 2 0 0 1 2-2h10"})]})]}),(0,r.jsx)("p",{className:"mb-0 mt-2.5 max-w-[720px] pl-[60px] text-[15px] leading-6 text-[#595759]",children:o.identity.summary}),(g||w)&&(0,r.jsxs)("p",{className:"mb-0 mt-2 flex flex-wrap items-center gap-2 pl-[60px] text-12 text-[#8C8C8C]",children:[(0,r.jsxs)("span",{className:"rounded-4 bg-[#F6F7F9] px-2 py-0.5 text-[#595759]",title:g?i("detail.header.translatedTip",{display:j,source:f}):i("detail.header.sourceTip",{source:f}),children:[g?i("detail.header.translatedBadge",{locale:j}):i("detail.header.sourceBadge",{locale:f}),g&&"platform"===o.translation_origin?i("detail.header.platformMaintained"):""]}),g?(0,r.jsx)(u(),{href:F(f),className:"text-[#3470FF] hover:underline",title:i("detail.header.viewSourceTip"),children:i("detail.header.viewSource")}):(0,r.jsx)(u(),{href:F(null),className:"text-[#3470FF] hover:underline",title:i("detail.header.backToTranslationTip"),children:i("detail.header.backToTranslation")})]}),T.length>0&&(0,r.jsx)("div",{className:"mt-3 flex flex-wrap gap-2 pl-[60px]",children:T.map(e=>(0,r.jsx)(u(),{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"rounded-4 bg-[#F0F7FF] px-2 py-0.5 text-12 text-[#3470FF] transition-colors hover:bg-[#D6E8FF]",children:e.label},e.key))})]}),(0,r.jsxs)("div",{className:"flex shrink-0 flex-col items-end gap-2.5",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("button",{type:"button",disabled:L.blocked,title:L.blocked?L.reason:void 0,onClick:()=>c("playground"),className:"inline-flex h-12 cursor-pointer items-center justify-center rounded-[10px] border border-[#3470FF] bg-[#3470FF] px-5 text-base leading-6 text-white transition-colors duration-200 hover:border-[#5c92ff] hover:bg-[#5c92ff] disabled:cursor-not-allowed disabled:border-[#
1E3E3E3] disabled:bg-[#F6F7F9] disabled:text-[#BFBFBF]",children:i("detail.header.tryNow")}),(0,r.jsx)("button",{type:"button",onClick:d.toggle,"aria-pressed":d.favored,title:i(d.favored?"detail.header.unfavorite":"detail.header.favorite"),className:"inline-flex h-12 cursor-pointer items-center justify-center gap-1.5 rounded-[10px] border px-4 text-base leading-6 transition-colors duration-200 ".concat(d.favored?"border-[#3470FF] bg-[#F0F7FF] text-[#3470FF] hover:bg-[#D6E8FF]":"border-[#E3E3E3] bg-white text-[#595759] hover:border-[#3470FF] hover:text-[#3470FF]"),children:(0,r.jsx)("span",{"aria-hidden":"true",children:d.favored?"â
":"â"})}),(0,r.jsx)(G,{})]}),L.blocked&&(0,r.jsx)("p",{className:"m-0 max-w-[360px] text-right text-[13px] leading-5 text-[#D46B08]",children:i("detail.header.blockedNotice",{label:L.label,reason:L.reason})})]})]})]})})}function H(){let{t:e}=(0,p.$G)("data-hub"),{manifest:t}=v(),l=(0,w.X8)(e,t.input.schema);return(0,r.jsx)(_.$0,{id:"input",title:e("detail.input.title"),intro:e("detail.input.intro"),children:(0,r.jsxs)(_.Vh,{tableClass:"!min-w-[1120px] table-auto",children:[(0,r.jsxs)("colgroup",{children:[(0,r.jsx)("col",{className:"w-[160px]"}),(0,r.jsx)("col",{className:"w-[144px]"}),(0,r.jsx)("col",{className:"w-[136px]"}),(0,r.jsx)("col",{className:"w-[72px]"}),(0,r.jsx)("col",{className:"w-[120px]"}),(0,r.jsx)("col",{className:"w-[184px]"}),(0,r.jsx)("col",{className:"w-[240px]"}),(0,r.jsx)("col",{className:"w-[280px]"})]}),(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)(_.Th,{children:e("detail.input.col.field")}),(0,r.jsx)(_.Th,{children:e("detail.input.col.label")}),(0,r.jsx)(_.Th,{children:e("detail.input.col.type")}),(0,r.jsx)(_.Th,{children:e("detail.input.col.required")}),(0,r.jsx)(_.Th,{children:e("detail.input.col.default")}),(0,r.jsx)(_.Th,{children:e("detail.input.col.constraints")}),(0,r.jsx)(_.Th,{children:e("detail.input.col.example")}),(0,r.jsx)(_.Th,{children:e("detail.input.col.description")})]})}),(0,r.jsx)("tbody",{children:l.map(e=>(0,r.jsxs)("tr",{children:[(0,r.jsx)(_.Td,{mono:!0,children:(0,r.jsx)("span",{className:"block max-w-[250px] break-all",children:e.field})}),(0,r.jsx)(_.Td,{className:"break-words",children:e.label}),(0,r.jsx)(_.Td,{mono:!0,children:(0,r.jsx)("span",{className:"block max-w-[180px] break-all",children:e.type})}),(0,r.jsx)(_.Td,{className:"whitespace-nowrap",children:e.required}),(0,r.jsx)(_.Td,{className:"whitespace-nowrap",children:e.def}),(0,r.jsx)(_.Td,{children:(0,r.jsx)("span",{className:"block break-words",children:e.en})}),(0,r.jsx)(_.Td,{mono:!0,children:(0,r.jsx)("span",{className:"block break-all",children:e.example})}),(0,r.jsx)(_.Td,{children:(0,r.jsx)("span",{className:"block break-words",children:e.description})})]},e.field))})]})})}function O(){let{t:e}=(0,p.$G)("data-hub"),{manifest:t}=v(),l=(0,w.xl)(t.output.schema);return(0,r.jsxs)(_.$0,{id:"output",title:e("detail.output.title"),intro:e("detail.output.intro"),children:[(0,r.jsxs)(_.Vh,{tableClass:"!min-w-[960px] table-auto",children:[(0,r.jsxs)("colgroup",{children:[(0,r.jsx)("col",{className:"w-[160px]"}),(0,r.jsx)("col",{className:"w-[144px]"}),(0,r.jsx)("col",{className:"w-[136px]"}),(0,r.jsx)("col",{className:"w-[240px]"}),(0,r.jsx)("col",{className:"w-[320px]"})]}),(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)(_.Th,{children:e("detail.output.col.field")}),(0,r.jsx)(_.Th,{children:e("detail.output.col.label")}),(0,r.jsx)(_.Th,{children:e("detail.output.col.type")}),(0,r.jsx)(_.Th,{children:e("detail.output.col.example")}),(0,r.jsx)(_.Th,{children:e("detail.output.col.description")})]})}),(0,r.jsx)("tbody",{children:l.map(e=>(0,r.jsxs)("tr",{children:[(0,r.jsx)(_.Td,{mono:!0,children:(0,r.jsx)("span",{className:"block max-w-[250px] break-all",children:e.field})}),(0,r.jsx)(_.Td,{className:"break-words",children:e.meaning}),(0,r.jsx)(_.Td,{mono:!0,children:(0,r.jsx)("span",{className:"block max-w-[180px] break-all",children:e.type})}),(0,r.jsx)(_.Td,{mono:!0,children:(0,r.jsx)("span",{className:"block break-all",children:e.example})}),(0,r.jsx)(_.Td,{children:(0,r.jsx)("span",{className:"block break-words",children:e.note})})]},e.field))})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(_.DK,{children:e("detail.output.schemaTitle")}),(0,r.jsxs)("p",{className:"mb-0 mt-1 text-14 text-[#8C8C8C]",children:[e("detail.output.recordsIntro"),t.output.id_field&&(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(m.Trans,{ns:"data-hub",i18nKey:"detail.output.idFieldHint",values:{field:t.output.id_field},components:{code:(0,r.jsx)("code",{})}})]})]}),(0,r.jsx)("div",{className:"mt-4",children:(0,r.jsx)(_.dn,{code:JSON.stringify(t.output.schema,null,2),lang:"output.schema",maxHeight:360})})]})]})}var K=l(37848),W=l(34407),z=l(98111),V=l(57515);let X={...W.R,tagNames:[...(null!==(a=W.R.tagNames)&&void 0!==a?a:[]).filter(e=>"img"!==e),"table","thead","tbody","tr","th","td"],attributes:{...W.R.attributes,th:[["align"]],td:[["align"]],code:[["className",/^language-/]]},protocols:{...W.R.protocols,href:["http","https","mailto"]}};function Y(e){let{children:t}=e,l=function(e){let t=0,l=e=>
1{t||b.Children.forEach(e,e=>{if(!t&&(0,b.isValidElement)(e)){if("tr"===e.type){t=b.Children.count(e.props.children);return}l(e.props.children)}})};return l(e),t}(t);return 2===l?(0,r.jsxs)(_.Vh,{tableClass:"!min-w-[640px] table-fixed",children:[(0,r.jsxs)("colgroup",{children:[(0,r.jsx)("col",{className:"w-[248px]"}),(0,r.jsx)("col",{})]}),t]}):3===l?(0,r.jsxs)(_.Vh,{tableClass:"!min-w-[860px] table-fixed",children:[(0,r.jsxs)("colgroup",{children:[(0,r.jsx)("col",{className:"w-[168px]"}),(0,r.jsx)("col",{className:"w-[360px]"}),(0,r.jsx)("col",{})]}),t]}):(0,r.jsx)(_.Vh,{tableClass:"table-auto",children:t})}function J(e){let{source:t}=e;if(!(null==t?void 0:t.trim()))return null;let l=t.replace(/^# .+\n+(?:\n?>[^\n]+\n*)?/u,"");return(0,r.jsx)("div",{className:"text-[15px] leading-7 text-[#595759]",children:(0,r.jsx)(K.UG,{remarkPlugins:[V.Z],rehypePlugins:[[z.Z,X]],components:{h1:e=>{let{children:t}=e;return(0,r.jsx)("h2",{className:"mb-3 mt-8 text-[20px] font-bold leading-7 text-[#16181C] first:mt-0",children:t})},h2:e=>{let{children:t}=e;return(0,r.jsx)("h3",{className:"mb-3 mt-8 text-[18px] font-semibold leading-7 text-[#16181C] first:mt-0",children:t})},h3:e=>{let{children:t}=e;return(0,r.jsx)("h4",{className:"mb-2 mt-6 text-16 font-semibold leading-6 text-[#16181C]",children:t})},h4:e=>{let{children:t}=e;return(0,r.jsx)("h5",{className:"mb-2 mt-5 text-15 font-semibold text-[#16181C]",children:t})},p:e=>{let{children:t}=e;return(0,r.jsx)("p",{className:"my-3",children:t})},ul:e=>{let{children:t}=e;return(0,r.jsx)("ul",{className:"my-3 flex list-disc flex-col gap-1.5 pl-5",children:t})},ol:e=>{let{children:t}=e;return(0,r.jsx)("ol",{className:"my-3 flex list-decimal flex-col gap-1.5 pl-5",children:t})},li:e=>{let{children:t}=e;return(0,r.jsx)("li",{className:"leading-[26px]",children:t})},strong:e=>{let{children:t}=e;return(0,r.jsx)("strong",{className:"font-semibold text-[#16181C]",children:t})},blockquote:e=>{let{children:t}=e;return(0,r.jsx)("blockquote",{className:"my-4 border-l-4 border-[#3470FF] bg-[#F3F9FF] px-4 py-3 text-[#16181C] [&>p]:my-0",children:t})},a:e=>{let{href:t,children:l}=e;return(0,r.jsx)("a",{href:t,target:"_blank",rel:"nofollow noopener noreferrer",className:"text-[#3470FF] hover:underline",children:l})},code:e=>{let{children:t}=e;return(0,r.jsx)("code",{className:"rounded-4 bg-[#F6F7F9] px-1.5 py-0.5 font-mono text-[13px] text-[#16181C] [pre_&]:rounded-none [pre_&]:bg-transparent [pre_&]:p-0 [pre_&]:leading-[21px] [pre_&]:text-inherit",children:t})},pre:e=>{let{children:t}=e;return(0,r.jsx)("pre",{className:"my-4 overflow-x-auto rounded-8 bg-[#16181C] p-4 text-[#E8EAED]",children:t})},hr:()=>(0,r.jsx)("hr",{className:"my-6 border-t border-[#F0F0F0]"}),table:e=>{let{children:t}=e;return(0,r.jsx)("div",{className:"my-4",children:(0,r.jsx)(Y,{children:t})})},th:e=>{let{children:t}=e;return(0,r.jsx)(_.Th,{children:t})},td:e=>{let{children:t}=e;return(0,r.jsx)(_.Td,{children:(0,r.jsx)("span",{className:"block break-all",children:t})})}},children:l})})}function Q(){var e,t,l;let{t:a}=(0,p.$G)("data-hub"),{manifest:n}=v(),s=n.discovery.boundary,i=null!==(e=n.knowledge.when_to_use)&&void 0!==e?e:[],o=null!==(t=n.knowledge.when_not_to_use)&&void 0!==t?t:[],d=null!==(l=n.knowledge.failure_handling)&&void 0!==l?l:[];return(0,r.jsxs)(_.$0,{id:"overview",title:a("detail.overview.title"),children:[(0,r.jsx)(J,{source:n.readme}),(i.length>0||o.length>0||s)&&(0,r.jsxs)("div",{children:[(0,r.jsx)(_.DK,{children:a("detail.overview.scopeTitle")}),s&&(0,r.jsx)("p",{className:"mb-0 mt-1 text-14 leading-[22px] text-[#595759]",children:s}),(0,r.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-4 md:grid-cols-2",children:[(0,r.jsxs)("ul",{className:"m-0 flex list-none flex-col gap-2.5 rounded-12 border border-[#E3E3E3] p-5",children:[(0,r.jsx)("li",{className:"text-14 font-semibold text-[#1AB83F]",children:a("detail.overview.goodFor")}),i.map(e=>(0,r.jsxs)("li",{className:"flex items-start gap-2 text-14 leading-[22px] text-[#16181C]",children:[(0,r.jsx)(_.nQ,{}),e]},e))]}),(0,r.jsxs)("ul",{className:"m-0 flex list-none flex-col gap-2.5 rounded-12 border border-[#
1E3E3E3] bg-[#F6F7F9] p-5",children:[(0,r.jsx)("li",{className:"text-14 font-semibold text-[#8C8C8C]",children:a("detail.overview.notFor")}),o.length>0?o.map(e=>(0,r.jsxs)("li",{className:"flex items-start gap-2 text-14 leading-[22px] text-[#595759]",children:[(0,r.jsx)(_.aM,{}),e]},e)):(0,r.jsx)("li",{className:"text-14 leading-[22px] text-[#8C8C8C]",children:a("detail.overview.noLimitsDeclared")})]})]})]}),d.length>0&&(0,r.jsxs)("div",{children:[(0,r.jsx)(_.DK,{children:a("detail.overview.failureTitle")}),(0,r.jsx)("p",{className:"mb-0 mt-1 text-14 text-[#8C8C8C]",children:a("detail.overview.failureIntro")}),(0,r.jsx)("ol",{className:"m-0 mt-4 flex list-none flex-col gap-2 p-0",children:d.map((e,t)=>(0,r.jsxs)("li",{className:"flex items-start gap-3 rounded-8 border border-[#E3E3E3] bg-white px-4 py-3 text-14 leading-[22px] text-[#16181C]",children:[(0,r.jsx)("span",{className:"mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-[#F0F7FF] text-12 font-semibold text-[#3470FF]",children:t+1}),e]},e))})]})]})}var ee=l(69661),et=l(85814),el=l(87914),ea=l(15545);let er=e=>Array.isArray(e.type)?e.type.find(e=>"null"!==e):e.type,en=e=>{var t;if(null===(t=e.enum)||void 0===t?void 0:t.length)return"enum";let l=er(e);return"array"===l?"array":"object"===l?"object":"integer"===l?"integer":"number"===l?"number":"boolean"===l?"boolean":"string"},es=e=>"string"==typeof e?e:JSON.stringify(e);function ei(e,t){let l=t.prefill;return null!=l?es(l):void 0!==t.default?e("detail.playground.defaultHint",{value:es(t.default)}):""}function eo(){var e,t,l,a,n,i;let{t:o}=(0,p.$G)("data-hub"),{manifest:c,loggedIn:m}=v(),h=(0,b.useMemo)(()=>{var e,l;return Object.entries(null!==(t=c.input.schema.properties)&&void 0!==t?t:{}).map(t=>{let[a,r]=t;return{name:a,label:null!==(e=r.title)&&void 0!==e?e:a,description:null!==(l=r.description)&&void 0!==l?l:"",property:r,kind:en(r),itemFields:"array"===en(r)?function(e,t){var l,a,r,n;let s=t.items;if(!s||"object"!==er(s)||!s.properties)return;let i=null!==(l=s.required)&&void 0!==l?l:[],o=[];for(let[t,l]of Object.entries(s.properties)){let s=er(l);if("object"===s||"array"===s)return;o.push({name:t,label:null!==(a=l.title)&&void 0!==a?a:t,description:l.description||void 0,required:i.includes(t),kind:en(l),options:(null!==(r=l.enum)&&void 0!==r?r:[]).map((e,t)=>{var a;return{value:e,label:null!==(n=null===(a=l.enum_titles)||void 0===a?void 0:a[t])&&void 0!==n?n:e}}),placeholder:ei(e,l)})}return o.length?o:void 0}(o,r):void 0}})},[c.input.schema,o]),f=(0,b.useMemo)(()=>null!==(l=c.input.schema.required)&&void 0!==l?l:[],[c.input.schema]),j=(0,b.useMemo)(()=>null!==(a=c.examples)&&void 0!==a?a:[],[c.examples]),g=(0,y.y)(o,c.status,c.accepting_runs),[w,F]=(0,b.useState)(""),N=(0,b.useMemo)(()=>h.map(e=>({name:e.name,label:e.label,type:"enum"===e.kind?"string":e.kind,itemFields:(0,et.XP)(e.itemFields)})),[h]),k=(0,el.X)(N,()=>({})),C=k.resolve(),E=(0,b.useMemo)(()=>j.find(e=>e.id===w),[w,j]),T=(null==E?void 0:E.goal)||(null==E?void 0:E.id)||o("detail.playground.custom"),L=(0,b.useMemo)(()=>h.map(e=>({name:e.name,label:e.label,description:e.description,required:f.includes(e.name),kind:e.kind,options:(null!==(n=e.property.enum)&&void 0!==n?n:[]).map((t,l)=>{var a;return{value:t,label:null!==(i=null===(a=e.property.enum_titles)||void 0===a?void 0:a[l])&&void 0!==i?i:t}}),placeholder:ei(o,e.property),itemFields:e.itemFields})),[h,f,o]),[D,S]=(0,b.useState)(!1),[A,B]=(0,b.useState)(""),[R,I]=(0,b.useState)(0),[P,U]=(0,b.useState)(""),[M,Z]=(0,b.useState)(!1),[q,G]=(0,b.useState)([]),[$,H]=(0,b.useState)(""),[O,K]=(0,b.useState)(!1),W=(0,b.useRef)(null),z=(0,ea.i)(A),V=e=>{H(e),setTimeout(()=>H(""),1600)};(0,b.useEffect)(()=>{if(!O)return;let e=e=>{var t;(null===(t=W.current)||void 0===t?void 0:t.contains(e.target))||K(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[O]);let X=!!C.error,Y=!X&&f.some(e=>{var t;let l=null===(t=C.input)||void 0===t?void 0:t[e];return null==l||"string"==typeof l&&!l.trim()}),J=()=>{let e="".concat(window.location.pathname,"#playground");window.location.href="/api/auth?nextUrl=".concat(encodeURIComponent(e))},Q=async()=>
1{if(g.blocked){U(g.reason);return}if(!X&&!Y&&C.input){if(!m){J();return}if(!c.namespace){U(o("detail.playground.missingNamespace"));return}B(""),U(""),Z(!1),G([]),S(!0),I(Date.now());try{let e=await (0,s.g9)(c.namespace,c.identity.app_name,C.input,{wait:0});B(e.run_id)}catch(t){if(t instanceof s.n){var e;if("UNAUTHORIZED"===t.code){J();return}Z("BALANCE_NEGATIVE"===t.code),U(t.message),G(null!==(e=t.details)&&void 0!==e?e:[]);return}U(t instanceof Error?t.message:o("detail.playground.submitFailed"))}finally{S(!1)}}},es=()=>F(""),eo=e=>{var t;F(e);let l=j.find(t=>t.id===e);k.load(null!==(t=null==l?void 0:l.input)&&void 0!==t?t:{}),K(!1)},ed=D||z.following;return(0,r.jsxs)(_.$0,{id:"playground",title:o("detail.playground.title"),intro:o("detail.playground.intro"),children:[g.blocked&&(0,r.jsxs)("div",{className:"mb-4 rounded-8 border border-[#FFD591] bg-[#FFF7E6] px-4 py-3 text-14 text-[#D46B08]",children:[(0,r.jsx)("strong",{className:"font-semibold",children:g.label}),(0,r.jsx)("span",{className:"ml-2",children:g.reason})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,r.jsx)(et.cm,{state:k}),j.length>0&&(0,r.jsxs)("div",{className:"flex items-center gap-2 text-14 text-[#595759]",ref:W,children:[(0,r.jsx)("span",{id:"pg-example-label",children:o("detail.playground.example")}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsxs)("button",{id:"pg-example",type:"button","aria-labelledby":"pg-example-label pg-example","aria-haspopup":"listbox","aria-expanded":O,title:T,onClick:()=>K(e=>!e),className:"flex h-9 w-[280px] cursor-pointer items-center justify-between gap-2 rounded-8 border border-[#E3E3E3] bg-white px-3 text-left text-14 text-[#16181C]",children:[(0,r.jsx)("span",{className:"min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap",children:T}),(0,r.jsx)("span",{className:d()("shrink-0 text-[#595759] transition-transform",O&&"rotate-180"),children:"â"})]}),O&&(0,r.jsx)("div",{role:"listbox","aria-labelledby":"pg-example-label",className:"absolute left-0 top-full z-30 mt-1 w-[560px] max-w-[calc(100vw-48px)] rounded-8 border border-[#D9D9D9] bg-white py-1 shadow-[0px_6px_16px_0px_rgba(0,0,0,0.12)]",children:[{id:"",label:o("detail.playground.custom")},...j.map(e=>({id:e.id,label:e.goal||e.id}))].map(e=>(0,r.jsx)("button",{type:"button",role:"option","aria-selected":w===e.id,title:e.label,onClick:()=>eo(e.id),className:d()("group flex min-h-10 w-full cursor-pointer border-0 bg-white px-4 py-2 text-left text-14 leading-[22px] text-[#16181C] hover:bg-[#F0F7FF]",w===e.id&&"bg-[#F0F7FF] text-[#3470FF]"),children:(0,r.jsx)("span",{className:"block min-w-0 overflow-hidden text-ellipsis whitespace-nowrap group-hover:overflow-visible group-hover:whitespace-normal",children:e.label})},e.id||"custom"))})]})]})]}),(0,r.jsx)("span",{className:"text-12 text-[#8C8C8C]",children:o("detail.playground.validatedHint")})]}),(0,r.jsx)("div",{className:"mt-4",children:(0,r.jsx)(et.ZP,{fields:L,state:k,idPrefix:"pg",onEdit:es,jsonExtra:(0,r.jsxs)("div",{className:"mt-2 flex items-center gap-4",children:[(0,r.jsx)("span",{className:"text-[13px] text-[#8C8C8C]",children:o("detail.playground.mcpReadyHint")}),(0,r.jsx)("button",{type:"button",onClick:()=>{x()(k.draft.json),V(o("detail.playground.requestCopied"))},className:"cursor-pointer border-0 bg-transparent text-[13px] text-[#3470FF] hover:underline",children:o("detail.playground.copyRequest")})]})})}),(0,r.jsxs)("div",{className:"mt-5 flex flex-wrap items-center gap-3",children:[(0,r.jsx)("button",{type:"button",onClick:Q,disabled:g.blocked||X||Y||ed,className:d()("inline-flex h-11 items-center justify-center rounded-[10px] border px-6 text-[15px] leading-6 transition-colors duration-200",g.blocked||X||Y||ed?"cursor-not-allowed border-[#E3E3E3] bg-[#F6F7F9] text-[#BFBFBF]":"cursor-pointer border-[#3470FF] bg-[#3470FF] text-white hover:border-[#5c92ff] hover:bg-[#5c92ff]"),children:g.blocked?g.label:ed?o("detail.playground.running"):m?o("detail.playground.submitRun"):o("detail.playground.loginToTry")}),g.blocked&&(0,r.jsx)("span",{className:"text-[13px] text-[#D46B08]",children:g.reason}),!g.blocked&&X&&(0,r.jsx)("span",{className:"text-[13px] text-[#8C8C8C]",children:C.error}),!g.blocked&&!X&&Y&&(0,r.jsx)("span",{className:"text-[13px] text-[#8C8C8C]",children:o("detail.playground.fillRequired")}),!g.blocked&&!m&&!X&&!Y&&(0,r.jsx)("span",{className:"text-[13px] text-[#8C8C8C]",children:o("detail.playground.loginHint")})]}),P&&(0,r.jsxs)("div",{className:"mt-5 rounded-12 border border-[#F0F0F0] bg-[#FAFBFC] p-4",children:[(0,r.jsx)("p",{className:"m-0 text-14 text-[#FF4D4F]",children:P}),M&&(0,r.jsxs)("p",{className:"m-0 mt-2 text-[13px] text-[#595759]",children:[o("detail.playground.topUpHint"),(0,r.jsx)(u(),{href:"/console/balance",className:"ml-2 font-medium text-[#3370FF]",target:"_blank",rel:"noreferrer",children:o("detail.playground.topUp")})]}),q.length>0&&(0,r.jsx)("ul",{className:"m-0 mt-2 flex list-disc flex-col gap-1 pl-5 text-[13px] text-[#595759]",children:q.map(e=>(0,r.jsxs)("li",{children:[(0,r.jsx)("code",{className:"font-mono",children:e.field}),": ",e.message]},"".concat(e.field,"-").concat(e.message)))})]}),A&&(0,r.jsx)("div",{className:"mt-5",children:(0,r.jsx)(ee.Z,{runId:A,follow:z,schema:c.output.schema,cancellable:(null===(e=c.execution)||void 0===e?void 0:e.mode)==="async",execution:c.execution,startedAt:R,notify:V})}),$&&(0,r.jsx)("div",{className:"fixed bottom-24 left-1/2 z-50 -translate-x-1/2 roun
1ded-8 bg-[#16181C] px-4 py-2 text-14 text-white",children:$})]})]})}var ed=l(33329),ec=l(81502);function ex(){var e,t;let{t:l}=(0,p.$G)("data-hub"),{manifest:a}=v(),n=null!==(t=null===(e=a.pricing)||void 0===e?void 0:e.events)&&void 0!==t?t:[];return(0,r.jsx)(_.$0,{id:"pricing",title:l("detail.pricing.title"),children:(0,r.jsxs)("div",{className:"overflow-hidden rounded-12 border border-[#E3E3E3] bg-white",children:[n.length?n.map(e=>{var t;let a=(0,ec.VG)(l,e.event),n=a.hint||(e.qty_from?l("detail.pricing.qtyFromHint",{field:e.qty_from}):""),s=[n,(0,ec.Ln)(l,e)].filter(Boolean).join(" ");return(0,r.jsxs)("div",{className:"flex flex-col gap-3 border-b border-[#F0F0F0] p-5 last:border-b-0 md:flex-row md:items-center md:justify-between md:gap-8",children:[(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("div",{className:"text-14 font-semibold text-[#16181C]",children:null!==(t=e.label)&&void 0!==t?t:a.label}),s&&(0,r.jsx)("p",{className:"mb-0 mt-2 text-[15px] leading-6 text-[#595759]",children:s})]}),(0,r.jsx)("div",{className:"flex shrink-0 items-baseline gap-x-1.5 md:pl-6",children:0===e.unit_price?(0,r.jsx)("span",{className:"text-[28px] font-bold leading-9 text-[#3470FF]",children:l("pricing.free")}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"text-[28px] font-bold leading-9 text-[#3470FF]",children:(0,ed.lb)(e.unit_price,{min:0})}),(0,r.jsxs)("span",{className:"text-14 text-[#595759]",children:["/ ",(0,ec.J4)(l,e)]})]})})]},e.event)}):(0,r.jsxs)("div",{className:"p-5",children:[(0,r.jsx)("span",{className:"text-[28px] font-bold leading-9 text-[#8C8C8C]",children:l("pricing.notSet")}),(0,r.jsx)("p",{className:"mb-0 mt-2 text-[15px] leading-6 text-[#595759]",children:l("detail.pricing.notSetHint")})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-3 border-t border-[#E3E3E3] bg-[#F0F7FF] p-5 md:flex-row md:items-start md:justify-between md:gap-6",children:[(0,r.jsx)("p",{className:"m-0 min-w-0 flex-1 text-[15px] leading-6 text-[#595759]",children:n.length?l("detail.pricing.multiEventNote"):l("detail.pricing.noPricingInfo")}),(0,r.jsx)(u(),{href:"/data-hub/console/account",className:"shrink-0 whitespace-nowrap self-start text-14 font-medium text-[#3470FF] transition-colors hover:text-[#5C92FF] md:pt-0.5",children:l("detail.pricing.viewBalance")})]})]})})}var ep=l(41086);function em(){let{t:e}=(0,p.$G)("data-hub"),{manifest:t,relatedApps:l}=v();if(!l.length)return null;let a=[(0,s.rY)(t),...l.map(e=>(0,s.fj)(e))].join(",");return(0,r.jsxs)(_.$0,{id:"related",title:e("detail.related.title"),children:[(0,r.jsxs)("p",{className:"m-0 text-[15px] leading-6 text-[#595759]",children:[e("detail.related.intro"),(0,r.jsx)(u(),{href:"/data-hub/mcp?add=".concat(a),className:"ml-2 whitespace-nowrap text-[15px] font-semibold text-[#3470FF] transition-colors hover:text-[#1559E8]",children:e("detail.related.composeCta")})]}),(0,r.jsx)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-3",children:l.map(e=>(0,r.jsx)(ep.Z,{app:e},(0,s.fj)(e)))})]})}var eh=l(2471),eu=l(54614);function eb(){var e,t,l,a;let{t:n}=(0,p.$G)("data-hub"),{manifest:s,trustTier:i,favorite:o}=v(),{data:d}=(0,eh.mA)(),{openAccessMethod:c,openTab:m}=k(),{bannerHeight:h}=(0,b.useContext)(F.D),[u,f]=(0,b.useState)(!1),j=(0,ec.jx)(n,s.pricing),g=(0,y.y)(n,s.status,s.accepting_runs),w=(0,y.Z)(n,s.execution),N=[{label:n("detail.rail.status"),value:(0,r.jsx)("span",{className:g.blocked?"text-[#D46B08]":void 0,children:[g.blocked?g.label:(0,y.Cf)(n,s.status),(0,y.vC)(n,s.version)].join(" \xb7 ")})},{label:n("detail.rail.pricing"),value:j}],C=e=>{let t=window.location.href,l=n("detail.rail.shareText",{name:s.identity.name});if("copy"===e){x()(t),f(!0),window.setTimeout(()=>f(!1),1600);return}if("email"===e){window.location.href="mailto:?subject=".concat(encodeURIComponent(l),"&body=").concat(encodeURIComponent("".concat(l,"\n").concat(t)));return}let a="linkedin"===e?"https://www.linkedin.com/sharing/share-offsite/?url=".concat(encodeURIComponent(t)):"https://x.com/intent/post?text=".concat(encodeURIComponent(l),"&url=").concat(encodeURIComponent(t));window.open(a,"_blank","noopener,noreferrer")};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("aside",{className:"sticky z-40 hidden w-[300px] shrink-0 self-start lg:block",style:{to
1p:124+h},"aria-label":n("detail.rail.ariaLabel"),children:(0,r.jsxs)("div",{className:"rounded-16 border border-[#E3E3E3] bg-white p-5",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3 border-b border-dashed border-[#E3E3E3] pb-4",children:[(0,r.jsx)("span",{className:"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full bg-[#F0F7FF]","aria-label":n("detail.rail.publisherAvatar",{name:null!==(l=null===(e=s.publisher)||void 0===e?void 0:e.name)&&void 0!==l?l:n("detail.rail.publisher")}),children:(0,r.jsx)(P(),{src:(0,y.fg)(s.publisher,d),alt:"",fill:!0,sizes:"40px",className:"object-cover"})}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("div",{className:"text-12 font-normal text-[#8C8C8C]",children:n("detail.rail.publisher")}),(0,r.jsxs)("div",{className:"mt-1 flex items-center gap-1.5 text-14 font-medium text-[#16181C]",children:[(0,r.jsx)("span",{className:"truncate",children:null!==(a=null===(t=s.publisher)||void 0===t?void 0:t.name)&&void 0!==a?a:"â"}),(0,r.jsx)(eu.Z,{trustTier:i})]})]})]}),(0,r.jsxs)("dl",{className:"m-0 pt-1",children:[N.map(e=>(0,r.jsxs)("div",{className:"flex items-center justify-between gap-3 border-b border-dashed border-[#E3E3E3] py-2.5 last:border-b-0",children:[(0,r.jsx)("dt",{className:"shrink-0 text-14 font-normal text-[#8C8C8C]",children:e.label}),(0,r.jsx)("dd",{className:"m-0 text-right text-14 font-normal text-[#16181C]",children:(0,r.jsx)("span",{className:"inline-flex items-center justify-end gap-1.5",children:e.value})})]},e.label)),(0,r.jsxs)("div",{className:"flex items-center justify-between gap-3 border-b border-dashed border-[#E3E3E3] py-2.5",children:[(0,r.jsx)("dt",{className:"shrink-0 text-14 font-normal text-[#8C8C8C]",children:n("detail.rail.favorites")}),(0,r.jsx)("dd",{className:"m-0 text-right",children:(0,r.jsx)("button",{type:"button",onClick:o.toggle,"aria-pressed":o.favored,title:o.favored?n("detail.header.unfavorite"):n("detail.header.favorite"),className:"inline-flex cursor-pointer items-center justify-end gap-1.5 rounded-4 border-0 bg-transparent px-1 py-0.5 text-14 font-normal transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#3470FF] ".concat(o.favored?"text-[#3470FF]":"text-[#16181C] hover:text-[#3470FF]"),children:(0,r.jsx)("span",{"aria-hidden":"true",children:o.favored?"â
":"â"})})})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between gap-3 border-b border-dashed border-[#E3E3E3] py-2.5 last:border-b-0",children:[(0,r.jsx)("dt",{className:"shrink-0 text-14 font-normal text-[#8C8C8C]",children:n("detail.rail.lastUpdated")}),(0,r.jsx)("dd",{className:"m-0 text-right text-14 font-normal text-[#16181C]",children:(0,y.p6)(s.published_at)})]})]}),(0,r.jsxs)("div",{className:"mt-4 border-t border-dashed border-[#E3E3E3] pt-4",children:[(0,r.jsx)("div",{className:"text-12 text-[#8C8C8C]",children:n("detail.rail.accessMethods")}),(0,r.jsx)("div",{className:"mt-2 flex flex-wrap items-center gap-1.5",children:[{label:"MCP",method:"mcp"},{label:"API",method:"api"},{label:"SDK",method:"sdk"},{label:n("detail.access.fileExport"),method:"file"}].map(e=>{let{label:t,method:l}=e;return(0,r.jsx)("button",{type:"button",onClick:()=>c(l),className:"cursor-pointer rounded-4 border-0 bg-[#F0F7FF] px-1.5 py-0.5 text-12 font-medium text-[#3470FF] transition-colors hover:bg-[#D6E8FF]",children:t},l)})}),w&&(0,r.jsx)("div",{className:"mt-2 text-12 text-[#8C8C8C]",title:w.detail,children:w.label})]}),(0,r.jsx)("div",{className:"mt-5 flex items-center gap-2",children:(0,r.jsx)("button",{type:"button",disabled:g.blocked,title:g.blocked?g.reason:void 0,onClick:()=>m("playground"),className:"inline-flex h-9 flex-1 cursor-pointer items-center justify-center rounded-8 border border-[#3470FF] bg-[#3470FF] px-4 text-14 leading-5 text-white transition-colors duration-200 hover:border-[#5C92FF] hover:bg-[#5C92FF] disabled:cursor-not-allowed disabled:border-[#E3E3E3] disabled:bg-[#F6F7F9] disabled:text-[#BFBFBF]",children:n("detail.header.tryNow")})}),(0,r.jsxs)("div",{className:"mt-4 border-t border-dashed border-[#
1E3E3E3] pt-4",children:[(0,r.jsx)("div",{className:"text-12 font-semibold uppercase tracking-[0.08em] text-[#667085]",children:n("detail.rail.share")}),(0,r.jsxs)("div",{className:"mt-3 flex items-center gap-2",children:[(0,r.jsx)("button",{type:"button","aria-label":n("detail.rail.shareTo",{channel:"LinkedIn"}),title:n("detail.rail.shareTo",{channel:"LinkedIn"}),onClick:()=>C("linkedin"),className:"flex h-10 w-10 cursor-pointer items-center justify-center rounded-8 border border-[#E3E3E3] bg-white text-[15px] font-bold text-[#16181C] transition-colors hover:border-[#3470FF] hover:text-[#3470FF]",children:"in"}),(0,r.jsx)("button",{type:"button","aria-label":n("detail.rail.shareTo",{channel:"X"}),title:n("detail.rail.shareTo",{channel:"X"}),onClick:()=>C("x"),className:"flex h-10 w-10 cursor-pointer items-center justify-center rounded-8 border border-[#E3E3E3] bg-white text-14 font-semibold text-[#16181C] transition-colors hover:border-[#3470FF] hover:text-[#3470FF]",children:"X"}),(0,r.jsx)("button",{type:"button","aria-label":n("detail.rail.shareByEmail"),title:n("detail.rail.shareByEmail"),onClick:()=>C("email"),className:"flex h-10 w-10 cursor-pointer items-center justify-center rounded-8 border border-[#E3E3E3] bg-white text-[#16181C] transition-colors hover:border-[#3470FF] hover:text-[#3470FF]",children:(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8","aria-hidden":"true",children:[(0,r.jsx)("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),(0,r.jsx)("path",{d:"m4 7 8 6 8-6"})]})}),(0,r.jsx)("button",{type:"button","aria-label":n("detail.rail.copyLink"),title:u?n("detail.ui.copied"):n("detail.rail.copyLink"),onClick:()=>C("copy"),className:"flex h-10 w-10 cursor-pointer items-center justify-center rounded-8 border border-[#E3E3E3] bg-white text-[#16181C] transition-colors hover:border-[#3470FF] hover:text-[#3470FF]",children:(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8","aria-hidden":"true",children:[(0,r.jsx)("path",{d:"M10 13a5 5 0 0 0 7.1.1l2-2a5 5 0 0 0-7.1-7.1l-1.1 1.1"}),(0,r.jsx)("path",{d:"M14 11a5 5 0 0 0-7.1-.1l-2 2A5 5 0 0 0 12 20l1.1-1.1"})]})})]}),(0,r.jsx)("div",{className:"mt-4 flex flex-wrap gap-x-3 gap-y-1 border-t border-dashed border-[#E3E3E3] pt-3 text-12",children:(0,r.jsx)("a",{href:"mailto:[email protected]",className:"text-[#8C8C8C] transition-colors hover:text-[#3470FF]",children:n("detail.rail.contactSupport")})})]})]})}),(0,r.jsxs)("div",{className:"fixed inset-x-0 bottom-0 z-40 flex items-center justify-between gap-4 border-t border-[#F0F0F0] bg-white px-4 py-3 lg:hidden",children:[(0,r.jsx)("div",{className:"min-w-0",children:(0,r.jsx)("div",{className:"truncate text-14 font-semibold text-[#16181C]",children:j})}),(0,r.jsx)("button",{type:"button",disabled:g.blocked,title:g.blocked?g.reason:void 0,onClick:()=>m("playground"),className:"inline-flex h-10 shrink-0 cursor-pointer items-center justify-center rounded-8 border border-[#3470FF] bg-[#3470FF] px-5 text-14 text-white disabled:cursor-not-allowed disabled:border-[#E3E3E3] disabled:bg-[#F6F7F9] disabled:text-[#BFBFBF]",children:n("detail.header.tryNow")})]})]})}var ef=l(29),ej=l(20426);let eg=e=>{let{appRef:t,noindex:l}=e,{t:a}=(0,p.$G)("data-hub");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.Z,{title:a("detailPage.deprecated.metaTitle"),keywords:"Data App, Octoparse Data Hub, Octoparse",description:a("detailPage.deprecated.metaDescription"),robots:!1===l?void 0:"noindex, follow"}),(0,r.jsx)("div",{className:"min-h-[calc(100vh-72px)] bg-[#F6F7F9] px-4 py-16 text-[#16181C] md:px-6 md:py-24",children:(0,r.jsxs)("main",{className:"mx-auto flex w-full max-w-[720px] flex-col items-center rounded-2xl border border-[#E3E8F2] bg-white px-6 py-12 text-center md:px-12 md:py-16",children:[(0,r.jsx)("span",{className:"flex h-14 w-14 items-center justify-center rounded-full bg-[#FFF2F0] text-2xl font-bold text-[#D92D20]","aria-hidden":"true",children:"!"}),(0,r.jsx)("p",{className:"mb-3 mt-6 text-[13px] font-semibold leading-5 text-[#8C8C8C]",children:t}),(0,r.jsx)("h1",{className:"m-0 text-[28px] font-bold leading-9 text-[#16181C]",children:a("detailPage.deprecated.title")}),(0,r.jsx)("p",{className:"mb-0 mt-4 max-w-[520px] text-[15px] leading-7 text-[#667085]",children:a("detailPage.deprecated.body")}),(0,r.jsx)("div",{className:"mt-8 flex justify-center",children:(0,r.jsx)(u(),{className:"inline-flex h-10 items-center justify-center rounded-lg bg-[#3470FF] px-5 text-14 font-semibold text-white hover:bg-[#246BFD]",href:"/data-hub",children:a("detailPage.deprecated.backToMarket")})})]})}),(0,r.jsx)(ef.Z,{})]})},ev=e=>{var t;let{detail:l,currency:a,noindex:s,unavailable:i,appRef:o}=e,{t:d}=(0,p.$G)("data-hub");if((0,ed.NW)(a),"deprecated"===i)return(0,r.jsx)(eg,{appRef:o,noindex:s});let{manifest:c,relatedApps:x}=l,{identity:m}=c,h=(t=x.length>0,[{key:"overview",label:d("detail.tabs.overview")},{key:"input",label:d("detail.tabs.input")},{key:"output",label:d("detail.tabs.output")},{key:"access",label:d("detail.tabs.access")},{key:"pricing",label:d("detail.tabs.pricing")},...t?[{key:"related",label:d("detail.tabs.related")}]:[],{key:"playground",label:d("detail.tabs.playground")}]);return(0,r.jsx)(g,{value:l,children:(0,r.jsxs)(C,{tabs:h,children:[(0,r.jsx)(n.Z,{title:d("detailPage.meta.title",{name:m.name}),keywords:"Data App, ".concat((0,y.l5)(c.labels).join(", "),", MCP, API"),description:m.summary,robots:s?"noindex, follow":void 0}),(0,r.jsxs)("div",{className:"bg-white text-[#16181C]",children:[(0,r.jsx)($,{}),(0,r.jsx)(E,{}),(0,r.jsx)("div",{className:"bg-[#F6F7F9] px-4 pb-16 pt-6 md:px-6 lg:py-8",children:(0,r.jsxs)("div",{className:"relative z-0 mx-auto flex w-full max-w-[1200px] gap-10",children:[(0,r.jsxs)("main",{className:"flex min-w-0 flex-1 flex-col gap-6",children:[(0,r.jsx)(Q,{}),(0,r.jsx)(H,{}),(0,r.jsx)(O,{}),(0,r.jsx)(S,{}),(0,r.jsx)(ex,{}),x.length>0&&(0,r.jsx)(em,{}),(0,r.jsx)(eo,{})]}),(0,r.jsx)(eb,{})]})})]}),(0,r.jsx)(ef.Z,{})]})})};ev.getLayout=e=>(0,ej.G)(e,!1,!1);var ew=!0,eF=ev},7582:function(e){e.exports={inner:"data-hub-footer_inner__ccMb3",bottom:"data-hub-footer_bottom__bmKoJ",footer:"data-hub-footer_footer__pt7XA",intro:"data-hub-footer_intro__mNVXQ",brand:"data-hub-footer_brand__XZjFu",contact:"data-hub-footer_contact__JSyf0",nav:"data-hub-footer_nav__jqAF2",community:"data-hub-footer_community__DS8n5",qrcodeBox:"data-hub-footer_qrcodeBox__SUhYW",textLink:"data-hub-footer_textLink__OX6NU",row:"data-hub-footer_row__C1yf_",links:"data-hub-footer_links__MOKDi",social:"data-hub-footer_social__iHkC6",legal:"data-hub-footer_legal__qSys9"}}},function(e){e.O(0,[6841,6120,3765,9759,3953,9257,7230,9705,9157,426,4725,5036,5578,9774,2888,179],function(){return e(e.s=17800)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.