1/*! LICENSE: 2278.f742e79b4a.js.LICENSE.txt */ 2"use strict";(self.rspackChunknewapi_web=self.rspackChunknewapi_web||[]).push([[2278],{35652(a,e,s){var l=s(63228);async function t(){return(await l.FH.get("/api/about")).data}async function i(){return(await l.FH.get("/api/user/about/agents")).data}async function d(a){return l.FH.get(`/api/user/about/agents/${a}/download`,{responseType:"blob",disableDuplicate:!0})}async function n(){return(await l.FH.get("/api/user/about/skills")).data}async function o(a){return l.FH.get(`/api/user/about/skills/${a}/download`,{responseType:"blob",disableDuplicate:!0})}s.d(e,{H7:()=>t,KV:()=>i,St:()=>n,Uv:()=>d,aD:()=>o})},11138(a,e,s){s.d(e,{M:()=>o,y:()=>r});let l=(0,s(40946).A)("mountain",[["path",{d:"m8 3 4 8 5-5 5 15H2L8 3z",key:"otkl63"}]]);var t=s(77871),i=s(5283),d=s(70419),n=s(58550);let o=[{id:"skills",number:"01",titleKey:"aboutHub.skills.title",labelKey:"aboutHub.skills.label",descriptionKey:"aboutHub.skills.description",metaKey:"aboutHub.skills.meta",icon:l},{id:"data",number:"02",titleKey:"aboutHub.data.title",labelKey:"aboutHub.data.label",descriptionKey:"aboutHub.data.description",metaKey:"aboutHub.data.meta",icon:t.A},{id:"software",number:"03",titleKey:"aboutHub.software.title",labelKey:"aboutHub.software.label",descriptionKey:"aboutHub.software.description",metaKey:"aboutHub.software.meta",icon:i.A},{id:"agents",number:"04",titleKey:"aboutHub.agents.title",labelKey:"aboutHub.agents.label",descriptionKey:"aboutHub.agents.description",metaKey:"aboutHub.agents.meta",icon:d.A},{id:"design",number:"05",titleKey:"aboutHub.design.title",labelKey:"aboutHub.design.label",descriptionKey:"aboutHub.design.description",metaKey:"aboutHub.design.meta",icon:n.A}];function r(a){return o.find(e=>e.id===a)}},45397(a,e,s){s.r(e),s.d(e,{component:()=>R});var l=s(79015),t=s(43866),i=s(71588),d=s(30661),n=s(70326),o=s(9278),r=s(35140),u=s(85905),c=s(68027),b=s(99962),h=s(16297),m=s(65311),g=s(89077),x=s(26028),p=s(20987),j=s(93539),k=s(65965),w=s(35652);function y(){let{t:a}=(0,g.Bd)(),[e,s]=(0,m.useState)(!1);return(0,l.jsxs)("main",{className:"geoui-original-mount",children:[!e&&(0,l.jsxs)("div",{className:"geoui-original-loading",role:"status",children:[(0,l.jsx)("span",{"aria-hidden":"true"}),a("Loading GEOUI Design Lab...")]}),(0,l.jsx)("iframe",{className:"geoui-original-frame",src:"/geoui-original/",title:a("GEOUI original design library"),allow:"clipboard-read; clipboard-write; fullscreen",onLoad:()=>s(!0)})]})}var N=s(11138);let H={skills:["aboutHub.detail.skills.module1","aboutHub.detail.skills.module2","aboutHub.detail.skills.module3"],data:["aboutHub.detail.data.module1","aboutHub.detail.data.module2","aboutHub.detail.data.module3"],software:["aboutHub.detail.software.module1","aboutHub.detail.software.module2","aboutHub.detail.software.module3"],agents:["aboutHub.detail.agents.module1","aboutHub.detail.agents.module2","aboutHub.detail.agents.module3"],design:["aboutHub.detail.design.module1","aboutHub.detail.design.module2","aboutHub.detail.design.module3"]};function f(){let a=new Date().getFullYear();return(0,l.jsxs)("footer",{className:"about-attribution",children:[(0,l.jsx)("span",{children:"geosciAI · RESOURCE DECK"}),(0,l.jsxs)("span",{children:[(0,l.jsx)("a",{href:"https://github.com/QuantumNous/new-api",target:"_blank",rel:"noopener noreferrer",children:"NewAPI"})," ","© ",a," ",(0,l.jsx)("a",{href:"https://github.com/QuantumNous",target:"_blank",rel:"noopener noreferrer",children:"QuantumNous"})]})]})}function v(a){let{t:e,i18n:s}=(0,g.Bd)(),t=s.language?.toLowerCase().startsWith("zh"),i=(0,m.useMemo)(()=>{let e=a.categories.map(a=>a.id),s=new Map;for(let e of a.skills){let a=s.get(e.category)??[];a.push(e),s.set(e.category,a)}return[...e.filter(a=>s.has(a)).map(e=>({id:e,category:a.categories.find(a=>a.id===e),skills:s.get(e)??[]})),...[...s.entries()].filter(a=>{let[s]=a;return!e.includes(s)}).map(a=>{let[e,s]=a;return{id:e,category:void 0,skills:s}})]},[a.categories,a.skills]),c=(0,l.jsx)(n.A,{className:"animate-spin","aria-label":e("Loading...")});return a.loading||(c=a.signedIn?a.eligible?(0,l.jsx)("span",{className:"about-skills-download-qualified",children:e("aboutHub.detail.skills.qualified")}):(0,l.jsxs)(d.N_,{to:"/wallet",className:"about-skills-download-l
2ink",children:[e("aboutHub.detail.viewPlans"),(0,l.jsx)(o.A,{"aria-hidden":"true"})]}):(0,l.jsxs)(d.N_,{to:"/sign-in",search:{redirect:"/about/skills"},className:"about-skills-download-link",children:[e("aboutHub.detail.skills.signInAction"),(0,l.jsx)(o.A,{"aria-hidden":"true"})]})),(0,l.jsxs)("aside",{className:"about-skills-download","aria-labelledby":"skills-download-title",children:[(0,l.jsxs)("div",{className:"about-skills-download-header",children:[(0,l.jsx)("div",{className:"about-skills-download-icon","aria-hidden":"true",children:(0,l.jsx)(r.A,{})}),(0,l.jsxs)("div",{className:"about-skills-download-copy",children:[(0,l.jsx)("p",{className:"about-skills-download-kicker",children:e("aboutHub.detail.skills.downloadKicker")}),(0,l.jsx)("h3",{id:"skills-download-title",children:e("aboutHub.detail.skills.downloadTitle")}),(0,l.jsx)("p",{children:e("aboutHub.detail.skills.downloadDescription")}),(0,l.jsx)("span",{children:e("aboutHub.detail.balanceRestriction",{amount:a.minimumBalance})})]}),(0,l.jsx)("div",{className:"about-skills-download-access",children:c})]}),a.loading?(0,l.jsx)("div",{className:"about-skills-grid",children:Array.from({length:8},(a,e)=>(0,l.jsxs)("div",{className:"about-skill-card",children:[(0,l.jsx)(j.E,{className:"about-skill-logo-skeleton"}),(0,l.jsx)(j.E,{className:"h-4 w-2/3"}),(0,l.jsx)(j.E,{className:"h-3 w-full"}),(0,l.jsx)(j.E,{className:"h-3 w-5/6"}),(0,l.jsx)(j.E,{className:"h-8 w-24"})]},e))}):i.map(i=>{let d=i.id;return i.category&&(d=t?i.category.title_zh:i.category.title_en),(0,l.jsxs)("section",{className:"about-skills-group",children:[(0,l.jsxs)("div",{className:"about-skills-group-heading",children:[(0,l.jsx)("p",{className:"coreline-eyebrow",children:d}),(0,l.jsx)("span",{children:e("aboutHub.detail.skills.groupCount",{count:i.skills.length})})]}),(0,l.jsx)("div",{className:"about-skills-grid",children:i.skills.map(i=>{let d=t?i.title_zh:i.title_en,o=t?i.description_zh:i.description_en;return(0,l.jsxs)("article",{className:"about-skill-card",children:[(0,l.jsxs)("div",{className:"about-skill-card-top",children:[(0,l.jsx)("div",{className:"about-skill-logo-wrap","aria-hidden":"true",children:(0,l.jsx)("img",{src:i.logo_url,alt:"",className:"about-skill-logo",loading:"lazy",width:64,height:64})}),(0,l.jsxs)("div",{className:"about-skill-card-meta",children:[(0,l.jsx)("span",{className:"about-skill-id",children:i.id}),(0,l.jsx)("span",{className:"about-skill-size",children:function(a,e){if(!Number.isFinite(a)||a<=0)return e.startsWith("zh")?"大å°å¾
å®":"Size pending";let s=["B","KB","MB","GB"],l=a,t=0;for(;l>=1024&&t<s.length-1;)l/=1024,t+=1;let i=l>=10||0===t?0:1;return`${l.toFixed(i)} ${s[t]}`}(i.size_bytes,s.language)})]})]}),(0,l.jsx)("h4",{children:d}),(0,l.jsx)("p",{children:o}),a.eligible?(0,l.jsxs)("button",{type:"button",className:"about-skill-download",disabled:a.downloading,onClick:()=>a.onDownload(i.id),children:[a.downloadingSkill===i.id?(0,l.jsx)(n.A,{className:"animate-spin","aria-hidden":"true"}):(0,l.jsx)(r.A,{"aria-hidden":"true"}),(0,l.jsx)("span",{children:e("aboutHub.detail.skills.downloadAction")})]}):(0,l.jsxs)("span",{className:"about-skill-locked",children:[(0,l.jsx)(u.A,{"aria-hidden":"true"}),e("aboutHub.detail.skills.locked")]})]},i.id)})})]},i.id)})]})}function A(a){let{t:e}=(0,g.Bd)(),s=a.data?.chapters??[],t=a.data?.minimum_balance_usd??1e3,i=(0,l.jsx)(n.A,{className:"animate-spin","aria-label":e("Loading...")});return a.loading||(i=a.signedIn?a.data?.eligible?(0,l.jsx)("span",{className:"about-agents-download-qualified",children:e("aboutHub.detail.agents.qualified")}):(0,l.jsx)("span",{className:"about-agents-download-restricted",children:e("aboutHub.detail.agents.balanceRequired",{amount:t})}):(0,l.jsxs)(d.N_,{to:"/sign-in",search:{redirect:"/about/agents"},className:"about-agents-download-link",children:[e("aboutHub.detail.agents.signInAction"),(0,l.jsx)(o.A,{"aria-hidden":"true"})]})),(0,l.jsxs)("aside",{className:"about-agents-download","aria-labelledby":"agents-download-title",children:[(0,l.jsxs)("div",{className:"about-agents-download-header",children:[(0,l.jsx)("div",{className:"about-agents-download-icon","aria-hidden":"true",children:(0,l.jsx)(r.A,{})}),(0,l.jsxs)("div",{className:"about-agents-download-copy",children:[(0,l.jsx)("p",{className:"about-agents-download-kicker",children:e("aboutHub.detail.agents.downloadKicker")}),(0,l.jsx)("h3",{id:"agents-download-title",children:e("aboutHub.detail.agents.downloadTitle")}),(0,l.jsx)("p",{children:e("aboutHub.detail.agents.downloadDescription")}),(0,l.jsx)("span",{children:e("aboutHub.detail.agents.downloadRestriction")})]}),(0,l.jsx)("div",{className:"about-agents-download-access",children:i})]}),(0,l.jsx)("div",{className:"about-agents-chapter-list",children:a.loading?Array.from({length:4},(a,e)=>(0,l.jsxs)("div",{className:"about-agents-chapter-row",children:[(0,l.jsx)(j.E,{className:"h-4 w-8"}),(0,l.jsx)(j.E,{className:"h-4 w-full max-w-2xl"}),(0,l.jsx)(j.E,{className:"h-8 w-24"})]},e)):s.map(s=>(0,l.jsxs)("div",{className:"about-agents-chapter-row",children:[(0,l.jsx)("span",{className:"about-agents-chapter-number",children:String(s.number).padStart(2,"0")}),(0,l.jsx)("h4",{children:s.title}),a.data?.eligible?(0,l.jsxs)("button",{type:"button",className:"about-agents-chapter-download",disabled:a.downloading,onClick:()=>a.onDownload(s.id),children:[a.downloadingChapter===s.id?(0,l.jsx)(n.A,{className:"animate-spin","aria-hidden":"true"}):(0,l.jsx)(r.A,{"aria-hidden":"true"}),(0,l.jsx)("span",{children:e("aboutHub.detail.agents.downloadChapter")})]}):(0,l.jsxs)("span",{className:"about-agents-chapter-locked",children:[(0,l.jsx)(u.A,{"aria-hidden":"true"}),e("aboutHub.detail.agents.locked")]})]},s.id))})]})}function K(a){let e,{t:s}=(0,g.Bd)(),n=(0,k.n)(a=>a.auth.user),o=(0,N.y)(a.resourceId),r=o?.id==="skills",u=o?.id==="agents",m=o?.id==="design",j=(0,t.I)({queryKey:["about-skills-resources",n?.id],queryFn:w.St,enabled:r,retry:!1}),K=(0,t.I)({queryKey:["about-agents-resources",n?.id],queryFn:w.KV,enabled:u,retry:!1}),_=(0,i.n)({mutationFn:w.aD,onSuccess:(a,e)=>{let l=a.data,t=URL.createObjectURL(l),i=document.createElement("a");i.href=t,i.download=`${e}.zip`,document.body.appendChild(i),i.click(),i.remove(),URL.revokeObjectURL(t),x.oR.success(s("aboutHub.detail.skills.downloadSuccess"))},onError:async a=>{let e=a.response,l=s("aboutHub.detail.skills.downloadFailed");if(e?.data instanceof Blob)try{l=JSON.parse(await e.data.text()).message||l}catch{}x.oR.error(l)}}),R=(0,i.n)({mutationFn:w.Uv,onSuccess:(a,e)=>{let l=a.data,t=URL.createObjectURL(l),i=document.createElement("a");i.href=t,i.download=`agents-chapter-${e}.pdf`,document.body.appendChild(i),i.click(),i.remove(),URL.revokeObjectURL(t),x.oR.success(s("aboutHub.detail.agents.downloadSuccess"))},onError:async a=>{let e=a.response,l=s("aboutHub.detail.agents.downloadFailed");if(e?.data instanceof Blob)try{l=JSON.parse(await e.data.text()).message||l}catch{}x.oR.error(l)}});if(!o)return(0,l.jsx)(p.si,{children:(0,l.jsxs)("div",{className:"about-resource-not-found",children:[(0,l.jsx)("p",{className:"coreline-eyebrow",children:"RESOURCE / 404"}),(0,l.jsx)("h1",{children:s("aboutHub.detail.notFound")}),(0,l.jsxs)(d.N_,{to:"/about",className:"about-detail-back",children:[(0,l.jsx)(c.A,{"aria-hidden":"true"}),s("aboutHub.detail.back")]})]})});if(m)return(0,l.jsx)(y,{});let E=o.icon,L=j.data?.data,S=K.data?.data,M=s("aboutHub.detail.catalogTitle"),z=s("aboutHub.detail.building");return u?(M=s("aboutHub.detail.agents.catalogTitle"),z=s("aboutHub.detail.downloadReady")):r&&(M=s("aboutHub.detail.skills.catalogTitle"),z=s("aboutHub.detail.skills.catalogState")),e=u?(0,l.jsx)(A,{data:S,loading:K.isLoading,signedIn:!!n,downloading:R.isPending,downloadingChapter:R.variables,onDownload:a=>R.mutate(a)}):r?(0,l.jsx)(v,{categories:L?.categories??[],skills:L?.skills??[],loading:j.isLoading,eligible:!!L?.eligible,minimumBalance:L?.minimum_balance_usd??100,signedIn:!!n,downloading:_.isPending,downloadingSkill:_.variables,onDownload:a=>_.mutate(a)}):(0,l.jsx)("div",{className:"about-module-list",children:H[o.id].map((a,e)=>(0,l.jsxs)("div",{className:"about-module-row",children:[(0,l.jsxs)("span",{className:"about-module-index",children:["0",e+1]}),(0,l.jsx)("span",{className:"about-module-icon","aria-hidden":"true",children:(0,l.jsx)(b.A,{})}),(0,l.jsx)("h3",{children:s(a)}),(0,l.jsx)("span",{className:"about-module-state",children:s("aboutHub.detail.comingSoon")})]},a))}),(0,l.jsx)(p.si,{children:(0,l.jsxs)("article",{className:`about-detail about-detail--${o.id}`,children:[(0,l.jsxs)(d.N_,{to:"/about",className:"about-detail-back",children:[(0,l.jsx)(c.A,{"aria-hidden":"true"}),s("aboutHub.detail.back")]}),(0,l.jsxs)("header",{className:"about-detail-hero",children:[(0,l.jsx)("div",{className:"about-detail-index",children:o.number}),(0,l.jsxs)("div",{className:"about-detail-heading",children:[(0,l.jsx)("p",{className:"coreline-eyebrow",children:s(o.labelKey)}),(0,l.jsx)("h1",{children:s(o.titleKey)}),(0,l.jsx)("p",{children:s(o.descriptionKey)})]}),(0,l.jsxs)("div",{className:"about-detail-emblem","aria-hidden":"true",children:[(0,l.jsx)("span",{}),(0,l.jsx)(E,{})]})]}),(0,l.jsxs)("section",{className:"about-detail-catalog","aria-labelledby":"
2catalog-title",children:[(0,l.jsxs)("div",{className:"about-catalog-heading",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"coreline-eyebrow",children:s("aboutHub.detail.catalogLabel")}),(0,l.jsx)("h2",{id:"catalog-title",children:M})]}),(0,l.jsxs)("span",{className:"about-catalog-state",children:[(0,l.jsx)(h.A,{"aria-hidden":"true"}),z]})]}),e]}),(0,l.jsx)(f,{})]})})}var _=s(53312);function R(){let a=_.q.useParams();return(0,l.jsx)(K,{resourceId:a.resourceId})}},68027(a,e,s){let l=(0,s(40946).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);s.d(e,{},{A:l})},70419(a,e,s){let l=(0,s(40946).A)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);s.d(e,{},{A:l})},99962(a,e,s){let l=(0,s(40946).A)("clock-3",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]]);s.d(e,{},{A:l})},35140(a,e,s){let l=(0,s(40946).A)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);s.d(e,{},{A:l})},58550(a,e,s){let l=(0,s(40946).A)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);s.d(e,{},{A:l})},85905(a,e,s){let l=(0,s(40946).A)("lock-keyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]]);s.d(e,{},{A:l})}}]);
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.