1"use strict";(self.webpackChunkengula_website=self.webpackChunkengula_website||[]).push([["7068"],{6759:function(e,t,s){s.d(t,{Z:()=>C});var r=s(2676),l=s(5271),i=s(7203),n=s(2629),a=s(3238),d=s(7978),o=s(726),c=s(7629);function x(e){let{platform:t,version:s,onSelect:i}=e,{versions:x,isLoading:m}=(0,d.g)(),p=(0,o.bh)(),u=(0,c.$)(),b=(0,l.useMemo)(()=>x&&0!==x.length?x.flatMap(e=>[...e.assets].sort((e,t)=>{var s,r;return((null==(s=n.hB[e.id])?void 0:s.order)||99)-((null==(r=n.hB[t.id])?void 0:r.order)||99)}).map(t=>{let s=n.hB[t.id],r=(null==s?void 0:s.label)||t.label||t.id;return{id:t.id,version:e.version,value:`${e.version}:${t.id}`,filename:t.filename,label:u.form.versionLabel(e.version,r),compatibility:e.compatibility,checksum:t.checksum,order:(null==s?void 0:s.order)||99}})):[],[x]),[h,f]=(0,l.useState)(""),[g,v]=(0,l.useState)("");(0,l.useEffect)(()=>{if(b.length>0){if(s&&t){let e=`${s}:${t}`,r=b.find(t=>t.value===e);if(r)return void v(r.value)}g||v(b[0].value)}},[b,s,t,g]);let j=b.find(e=>e.value===g),N=null==j?void 0:j.label.split(" - ")[1],y=m?[(0,r.jsx)("option",{children:u.form.loading},"loading")]:0===b.length?[(0,r.jsx)("option",{children:u.form.noVersions},"empty")]:b.map(e=>(0,r.jsx)("option",{value:e.value,children:e.label},e.value)),k=e=>{if(v(e),i){let t=b.find(t=>t.value===e);t&&i(t.version,t.id)}},[w,_]=(0,l.useState)(!1),[S,$]=(0,l.useState)(null),[C,E]=(0,l.useState)(0),[B,T]=(0,l.useState)(!1),[U,q]=(0,l.useState)(!1),D=w?u.form.submitting:C>0?u.form.cooldown(C):u.form.submit,z=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),L=async e=>{if(e.preventDefault(),!h.trim())return void $({type:"error",text:u.form.errEmptyEmail});if(!z(h))return void $({type:"error",text:u.form.errInvalidEmail});if(C>0)return void $({type:"error",text:u.form.errCooldown(C)});if(!j)return void $({type:"error",text:u.form.errNoRelease});_(!0),$(null);try{if(!(await fetch("/engula/download/email",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:h.trim(),release:(null==j?void 0:j.filename)||"",isCn:"zh"===p,subscribe_updates:U})})).ok)throw Error(u.form.errSendFailed);$({type:"success",text:U?u.form.successMarketing:u.form.success}),f(""),T(!0),E(30);let e=setInterval(()=>{E(t=>t<=1?(clearInterval(e),0):t-1)},1e3)}catch(e){$({type:"error",text:u.form.errSendFailedContact})}finally{_(!1)}};return(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsxs)("form",{onSubmit:L,className:"space-y-5",children:[(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"text-left",children:[(0,r.jsx)("label",{htmlFor:"release-select",className:"block px-1 text-[11px] font-semibold uppercase tracking-[0.16em] text-muted",children:u.form.labelSelectRelease}),(0,r.jsxs)("div",{className:"relative mt-2",children:[(0,r.jsx)("select",{id:"release-select",value:g,onChange:e=>k(e.target.value),className:(0,a.cn)("w-full appearance-none rounded-xl border px-4 py-3.5","bg-bg border-line text-text text-sm","focus:border-accent focus:ring-1 focus:ring-accent","disabled:opacity-50 disabled:cursor-not-allowed"),disabled:w||C>0||m||0===b.length,children:y}),(0,r.jsx)("div",{className:"absolute right-4 top-1/2 -translate-y-1/2 pointer-events-none text-muted",children:(0,r.jsx)("span",{className:"text-[10px]",children:"â¼"})})]}),j&&(0,r.jsxs)("div",{className:"mt-3 flex flex-wrap gap-2 px-1",children:[(0,r.jsx)("span",{className:"inline-flex items-center rounded-full border border-line bg-card px-3 py-1 text-[11px] font-medium text-text",children:N}),(0,r.jsx)("span",{className:"inline-flex items-center rounded-full border border-accent/25 bg-accent/5 px-3 py-1 text-[11px] font-medium text-accent",children:j.compatibility})]}),(0,r.jsx)("p",{className:"mt-2 px-1 text-[11px] font-medium leading-relaxed text-muted/70",children:u.form.glibcNote})]}),(0,r.jsxs)("div",{className:"text-left",children:[(0,r.jsx)("label",{htmlFor:"email-input",className:"block px-1 text-[11px] font-semibold uppercase tracking-[0.16em] text-muted",children:u.form.labelEmail}),(0,r.jsx)("div",{className:"relative mt-2",children:(0,r.jsx)("input",{id:"email-input",type:"email",value:h,onChange:e=>f(e.target.value),placeholder:u.form.emailPlaceholder,className:(0,a.cn)("w-full rounded-xl border px-4 py-3.5","bg-bg border-line text-text","placeholder:text-muted","transition-all focus:border-accent focus:ring-1 focus:ring-accent","disabled:opacity-50 disabled:cursor-not-allowed"),disabled:w||C>0,required:!0})})]})]}),(0,r.jsxs)("div",{className:"rounded-2xl border border-line bg-bg px-4 py-3",children:[(0,r.jsxs)("div",{className:"text-left",children:[(0,r.jsx)("div",{className:"text-[11px] font-semibold uppercase tracking-[0.16em] text-muted",children:u.form.usageTitle}),(0,r.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-muted",children:u.form.usageBody})]}),(0,r.jsxs)("div",{className:"mt-3 flex items-center gap-2",children:[(0,r.jsx)("input",{id:"marketing-subscribe",type:"checkbox",checked:U,onChange:e=>
1q(e.target.checked),className:(0,a.cn)("h-4 w-4 rounded border-line bg-bg text-accent focus:ring-accent","cursor-pointer transition-all")}),(0,r.jsx)("label",{htmlFor:"marketing-subscribe",className:"text-xs text-muted cursor-pointer select-none hover:text-text transition-colors",children:u.form.marketingOptIn})]})]}),(0,r.jsx)("button",{type:"submit",disabled:w||C>0,className:(0,a.cn)("flex w-full items-center justify-center gap-2 rounded-xl px-6 py-3.5 text-base font-medium","text-bg","bg-accent shadow-[0_12px_28px_-18px_rgba(0,0,0,0.35)] hover:opacity-90","disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:opacity-100","transition-all shadow-md"),children:D}),S&&(0,r.jsx)("div",{className:(0,a.cn)("rounded-xl border border-line bg-bg/50 p-3 text-left text-sm","text-text"),children:S.text}),j&&(0,r.jsxs)("div",{className:"grid gap-3 rounded-2xl border border-line bg-bg p-4 text-left",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{className:"mb-1 block text-[11px] font-semibold uppercase tracking-[0.16em] text-muted",children:u.form.fileNameLabel}),(0,r.jsx)("code",{className:"block break-all font-mono text-xs text-text",children:j.filename})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{className:"mb-1 block text-[11px] font-semibold uppercase tracking-[0.16em] text-muted",children:u.form.checksumLabel}),(0,r.jsx)("code",{className:"block break-all font-mono text-[10px] leading-tight text-muted",children:j.checksum})]})]})]}),B&&(0,r.jsxs)("div",{className:"fixed inset-0 z-[110] flex items-center justify-center p-4",children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-bg/80 backdrop-blur-sm animate-in fade-in duration-300",onClick:()=>T(!1)}),(0,r.jsx)("div",{className:"relative w-full max-w-md rounded-2xl border border-line bg-card p-8 shadow-2xl animate-in zoom-in duration-300",children:(0,r.jsxs)("div",{className:"flex flex-col items-center text-center",children:[(0,r.jsx)("div",{className:"mb-6 flex h-16 w-16 items-center justify-center rounded-full bg-accent/10",children:(0,r.jsx)("span",{className:"text-3xl",children:"â"})}),(0,r.jsx)("h3",{className:"font-display text-2xl font-bold text-text mb-4",children:u.form.modalTitle}),(0,r.jsxs)("p",{className:"font-text text-muted mb-6 leading-relaxed",children:[u.form.modalBody,U?u.form.modalBodyMarketing:""]}),(0,r.jsx)("p",{className:"mb-6 text-sm leading-relaxed text-muted",children:u.form.modalSpamNote}),(0,r.jsxs)("div",{className:"grid w-full gap-3",children:[(0,r.jsx)("a",{href:(0,o.CS)("/eula",p),className:"inline-flex w-full items-center justify-center rounded-xl border border-line bg-bg px-6 py-3 text-sm font-medium text-text transition-all hover:bg-card",children:u.form.modalViewEula}),(0,r.jsx)("button",{type:"button",onClick:()=>T(!1),className:"w-full rounded-xl bg-accent px-6 py-3 text-bg font-medium transition-all hover:opacity-90",children:u.form.modalDismiss})]})]})})]})]})}function m(e){let{platform:t,version:s,onSelect:l}=e,{latestVersion:n,isLoading:a}=(0,d.g)(),m=(0,o.bh)(),p=(0,c.$)();return(0,r.jsxs)("div",{className:"relative flex h-full flex-col rounded-[28px] border border-line bg-card p-6 shadow-[0_22px_50px_-42px_rgba(0,0,0,0.22)] md:p-8",children:[(0,r.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,r.jsx)("div",{className:"inline-flex items-center rounded-full border border-line bg-bg px-3 py-1 text-[11px] font-semibold uppercase tracking-[0.16em] text-muted",children:p.subscribe.badgeRequest}),(0,r.jsx)("div",{className:"rounded-full border border-line bg-bg px-4 py-1.5 text-[11px] font-semibold uppercase tracking-[0.16em] text-muted",children:p.subscribe.badgeEdition})]}),(0,r.jsxs)("div",{className:"mt-5 space-y-2",children:[(0,r.jsx)("h2",{className:"font-display text-[32px] font-semibold tracking-tight text-text md:text-[38px]",children:p.subscribe.title}),(0,r.jsx)("p",{className:"text-sm leading-relaxed text-muted md:text-base text-pretty",children:(0,r.jsx)(i.On,{children:p.subscribe.description})}),(0,r.jsx)("ul",{className:"grid gap-2 pt-2 text-sm leading-relaxed text-muted sm:grid-cols-2",children:p.subscribe.bullets.map(e=>(0,r.jsx)("li",{children:e},e))})]}),(0,r.jsxs)("p",{className:"mt-5 text-sm leading-relaxed text-muted",children:[p.subscribe.enterpriseHint," ",(0,r.jsx)("a",{href:(0,o.CS)("/eula",m),className:"font-semibold text-text hover:underline",children:p.subscribe.viewEula})]}),(0,r.jsxs)("div",{className:"mt-6 grid gap-3 rounded-2xl border border-line bg-bg p-4 text-sm sm:grid-cols-2",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"text-[11px] font-semibold uppercase tracking-[0.16em] text-muted",children:p.subscribe.labelCurrentVersion}),(0,r.jsx)("div",{className:"mt-1 font-mono text-text",children:a?p.subscribe.loading:n?`v${n.version}`:p.subscribe.noVersion})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"text-[11px] font-semibold uppercase tracking-[0.16em] text-muted",children:p.subscribe.labelCompatibility}),(0,r.jsx)("div",{className:"mt-1 text-text",children:a?p.subscribe.loading:(null==n?void 0:n.compatibility)||p.subscribe.pendingRelease})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"text-[11px] font-semibold uppercase tracking-[0.16em] text-muted",children:p.subscribe.labelReleaseDate}),(0,r.jsx)("div",{className:"mt-1 text-text",children:a?p.subscribe.loading:(null==n?void 0:n.releaseDate)||p.subscribe.pendingRelease})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"text-[11px] font-semibold uppercase tracking-[0.16em] text-muted",children:p.subscribe.labelGithubTag}),(0,r.jsx)("div",{className:"mt-1 font-mono text-text",children:a?p.subscribe.loading:n?`v${n.version}`:p.subscribe.noVersion})]})]}),(0,r.jsx)("div",{className:"mt-6",children:(0,r.jsx)(x,{platform:t,version:s,onSelect:l})})]})}let p=["checksum-title","checksum-command","checksum-output","spacer-1","extract-title","extract-command-1","path-command","verify-title","verify-command","verify-output","spacer-2","connect-title","connect-command","connect-output-1","connect-output-2"];function u(e){let{platform:t,version:s}=e,{versions:l,isLoading:n}=(0,d.g)(),a=(0,c.$)();if(n||!l||0===l.length)return(0,r.jsxs)("div",{className:"bg-card border border-line rounded-xl p-6 md:p-8 mt-12 animate-pulse",children:[(0,r.jsx)("div",{className:"h-6 w-32 bg-muted/20 rounded mb-4"}),(0,r.jsx)("div",{className:"bg-bg border border-line rounded-lg p-4 h-64 bg-muted/20"})]});let o=s?l.find(e=>e.version===s):l[0];if(!o)return null;let x=o.assets.find(e=>
1e.id===t)||o.assets[0],m=x.filename,u=x.checksum,b=m.replace(".tar.gz",""),h=`${a.quickStart.cmtChecksum} 2$ sha256sum ${m} 3${u} ${m} 4 5${a.quickStart.cmtExtract} 6$ tar -xzf ${m} 7$ sudo mv ${b}/bin/engula-server /usr/local/bin/ 8 9${a.quickStart.cmtVerify} 10$ engula-server -v 11engula-server ${o.version} 12 13${a.quickStart.cmtConnect} 14$ engula-server --port 6379 15 16${a.quickStart.cmtRedisCli} 17$ redis-cli -p 6379 18127.0.0.1:6379> SET hello world 19OK`;return(0,r.jsxs)("div",{className:"rounded-2xl border border-line bg-card p-6 md:p-8",children:[(0,r.jsxs)("div",{className:"mb-5",children:[(0,r.jsx)("div",{className:"text-sm font-semibold uppercase tracking-[0.16em] text-muted",children:a.quickStart.eyebrow}),(0,r.jsx)("h3",{className:"mt-2 font-display text-2xl font-semibold tracking-tight text-text",children:a.quickStart.title}),(0,r.jsx)("p",{className:"mt-3 max-w-2xl text-sm leading-relaxed text-muted text-pretty",children:(0,r.jsx)(i.On,{children:a.quickStart.intro})})]}),(0,r.jsx)("div",{className:"overflow-x-auto rounded-xl border border-line bg-bg p-4",children:(0,r.jsx)("pre",{className:"font-mono text-xs leading-relaxed md:text-sm",children:h.split("\n").map((e,t)=>{let s=p[t]||`quick-start-${e}`;return e.startsWith("#")?(0,r.jsx)("div",{className:"text-muted italic mb-1 mt-2 first:mt-0",children:e},s):e.startsWith("$")?(0,r.jsxs)("div",{className:"text-text/80",children:[(0,r.jsx)("span",{className:"text-muted select-none",children:"$ "}),(0,r.jsx)("span",{className:"text-accent",children:e.substring(2)})]},s):(0,r.jsx)("div",{className:"text-text/60",children:e},s)})})})]})}var b=s(3496);let h=["Developer","Developer","Developer","Developer","Enterprise","Enterprise","Enterprise"];function f(){let e=(0,c.$)(),t=e.scenario.rows.map((e,t)=>({scenario:e.scenario,note:e.note,edition:h[t]}));return(0,r.jsxs)("div",{className:"rounded-[28px] border border-line bg-card p-6 shadow-[0_22px_50px_-42px_rgba(0,0,0,0.22)] md:p-8",children:[(0,r.jsxs)("div",{className:"mb-5",children:[(0,r.jsx)("div",{className:"inline-flex items-center rounded-full border border-line bg-bg px-3 py-1 font-mono text-[11px] font-semibold uppercase tracking-[0.16em] text-muted",children:e.scenario.badge}),(0,r.jsx)("h3",{className:"mt-3 font-display text-xl font-semibold tracking-tight text-text md:text-2xl",children:e.scenario.title}),(0,r.jsx)("p",{className:"mt-2 font-ui text-sm leading-relaxed text-muted text-pretty",children:(0,r.jsx)(i.On,{children:e.scenario.intro})})]}),(0,r.jsx)("div",{className:"overflow-x-auto",children:(0,r.jsxs)("table",{className:"w-full min-w-[520px] border-collapse text-sm",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{style:{borderBottom:"1px solid var(--border)"},children:[(0,r.jsx)("th",{className:"text-left font-ui text-xs font-semibold uppercase tracking-[0.16em] text-muted py-3 pr-4 w-[64%]",children:e.scenario.colScenario}),(0,r.jsx)("th",{className:"text-left font-ui text-xs font-semibold uppercase tracking-[0.16em] text-muted py-3 pr-4",children:e.scenario.colEdition})]})}),(0,r.jsx)("tbody",{children:t.map((e,t)=>(0,r.jsxs)("tr",{style:{borderBottom:"1px solid var(--border)"},children:[(0,r.jsx)("td",{className:"py-3 pr-4 font-ui text-[13px] leading-relaxed text-muted align-top",children:e.scenario}),(0,r.jsxs)("td",{className:"py-3 pr-4 align-top",children:[(0,r.jsx)("span",{className:"inline-flex items-center rounded-full px-2.5 py-0.5 font-mono text-[11px] font-semibold tabular-nums",style:{background:"Enterprise"===e.edition?"var(--cs-text)":"var(--cs-card-2)",color:"Enterprise"===e.edition?"var(--cs-bg)":"var(--cs-text)",border:"Enterprise"===e.edition?"none":"1px solid var(--cs-line)"},children:e.edition}),e.note&&(0,r.jsx)("span",{className:"ml-2 font-ui text-xs text-muted",children:e.note})]})]},t))})]})}),(0,r.jsxs)("p",{className:"mt-5 font-ui text-xs leading-relaxed text-muted",children:[(0,r.jsx)("span",{className:"font-semibold text-text",children:"*"})," ",e.scenario.footnotePrefix," ",(0,r.jsx)(b.rU,{href:"mailto:[email protected]?subject=ç³è¯·%20Engula%20Enterprise",className:"font-semibold text-text hover:underline",children:"[email protected]"}),e.scenario.footnoteSuffix]})]})}function g(e){let{active:t,onChange:s}
19=e,l=(0,c.$)(),n=[{key:"developer",label:l.subnav.tabs.developer},{key:"enterprise",label:l.subnav.tabs.enterprise},{key:"resources",label:l.subnav.tabs.resources}];return(0,r.jsx)("div",{className:"sticky z-30 w-full border-b",style:{top:"var(--rp-nav-height)",background:"var(--cs-nav-bg)",borderColor:"var(--cs-line)",backdropFilter:"var(--cs-nav-backdrop-filter)",WebkitBackdropFilter:"var(--cs-nav-backdrop-filter)"},children:(0,r.jsx)(i.W2,{children:(0,r.jsx)("div",{className:"mx-auto max-w-6xl",children:(0,r.jsx)("nav",{role:"tablist","aria-label":l.subnav.ariaLabel,className:"overflow-x-auto",style:{scrollbarWidth:"none"},children:(0,r.jsx)("ul",{className:"m-0 flex list-none items-center gap-6 p-0 lg:gap-8",children:n.map(e=>{let l=e.key===t;return(0,r.jsx)("li",{children:(0,r.jsx)("button",{type:"button",role:"tab","aria-selected":l,onClick:()=>s(e.key),className:(0,a.cn)("inline-flex cursor-pointer items-center whitespace-nowrap border-b-2 bg-transparent py-3.5 text-sm transition-colors",l?"border-text font-medium text-text":"border-transparent text-muted hover:text-text"),style:{letterSpacing:"-0.01em"},children:e.label})},e.key)})})})})})})}function v(e){let{platform:t,version:s,onSelect:l,onSwitchToEnterprise:i}=e,n=(0,o.bh)(),a=(0,c.$)();return(0,r.jsxs)("div",{className:"space-y-8 md:space-y-10",children:[(0,r.jsx)("section",{children:(0,r.jsxs)("div",{className:"rounded-[28px] border border-line bg-card px-6 py-7 shadow-[0_24px_54px_-44px_rgba(0,0,0,0.22)] md:px-8 md:py-9",children:[(0,r.jsx)("div",{className:"inline-flex items-center rounded-full border border-line bg-bg px-4 py-1.5 text-[11px] font-semibold uppercase tracking-[0.18em] text-muted",children:a.developer.badge}),(0,r.jsx)("h1",{className:"mt-4 max-w-4xl font-display text-[38px] font-bold tracking-tight text-text md:text-[56px] md:leading-[1.02]",children:a.developer.title}),(0,r.jsx)("p",{className:"mt-3 font-display text-xl font-semibold tracking-tight text-text md:text-2xl",children:a.developer.subtitle}),(0,r.jsx)("p",{className:"mt-3 max-w-3xl font-text text-base leading-relaxed text-muted md:text-lg",children:a.developer.description}),(0,r.jsxs)("div",{className:"mt-7 flex flex-wrap gap-3",children:[(0,r.jsx)(b.rU,{href:"#subscribe",className:"inline-flex items-center justify-center rounded-full px-6 py-2.5 text-sm font-medium text-bg transition-all hover:opacity-90",style:{background:"var(--cs-text)"},children:a.developer.ctaSend}),(0,r.jsx)(b.rU,{href:(0,o.CS)("/eula",n),className:"inline-flex items-center justify-center rounded-full px-6 py-2.5 text-sm font-medium text-text transition-all hover:opacity-90",style:{border:"1px solid var(--border)",background:"var(--button-bg)"},children:a.developer.ctaEula})]}),(0,r.jsx)("p",{className:"mt-5 font-ui text-xs leading-relaxed text-muted",children:a.developer.note})]})}),(0,r.jsx)("section",{id:"subscribe",children:(0,r.jsx)(m,{platform:t,version:s,onSelect:l})}),(0,r.jsx)("section",{children:(0,r.jsx)(u,{platform:t,version:s})}),(0,r.jsx)("section",{children:(0,r.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-4 rounded-[28px] border border-line bg-card p-6 shadow-[0_22px_50px_-42px_rgba(0,0,0,0.22)] md:p-8",children:[(0,r.jsxs)("div",{className:"max-w-xl",children:[(0,r.jsx)("h3",{className:"font-display text-lg font-semibold tracking-tight text-text md:text-xl",children:a.developer.upgradeTitle}),(0,r.jsx)("p",{className:"mt-2 font-ui text-sm leading-relaxed text-muted",children:a.developer.upgradeBody})]}),(0,r.jsx)("button",{type:"button",onClick:i,className:"inline-flex items-center justify-center rounded-full px-6 py-2.5 text-sm font-medium text-text transition-all hover:opacity-90",style:{border:"1px solid var(--border)",background:"var(--button-bg)"},children:a.developer.upgradeCta})]})})]})}let j="mailto:[email protected]?subject=ç³è¯·%20Engula%20Enterprise";function N(e){let{onSwitchToDeveloper:t}=e,s=(0,o.bh)(),l=(0,c.$)();return(0,r.jsxs)("div",{className:"space-y-8 md:space-y-10",children:[(0,r.jsx)("section",{children:(0,r.jsxs)("div",{className:"rounded-[28px] border border-line bg-card px-6 py-7 shadow-[0_24px_54px_-44px_rgba(0,0,0,0.22)] md:px-8 md:py-9",children:[(0,r.jsx)("div",{className:"inline-flex items-center rounded-full border border-line bg-bg px-4 py-1.5 text-[11px] font-semibold uppercase tracking-[0.18em] text-muted",children:l.enterprise.badge}),(0,r.jsx)("h1",{className:"mt-4 max-w-4xl font-display text-[38px] font-bold tracking-tight text-text md:text-[56px] md:leading-[1.02]",children:l.enterprise.title}),(0,r.jsx)("p",{className:"mt-3 font-display text-xl font-semibold tracking-tight text-text md:text-2xl",children:l.enterprise.subt
19itle}),(0,r.jsx)("p",{className:"mt-3 max-w-3xl font-text text-base leading-relaxed text-muted md:text-lg",children:l.enterprise.description}),(0,r.jsx)("ul",{className:"mt-6 grid gap-2 sm:grid-cols-2",children:l.enterprise.bullets.map(e=>(0,r.jsxs)("li",{className:"flex items-baseline gap-2 font-ui text-sm leading-relaxed text-muted",children:[(0,r.jsx)("span",{className:"font-mono text-xs text-text",children:"\xb7"}),(0,r.jsx)("span",{children:e})]},e))}),(0,r.jsxs)("div",{className:"mt-7 flex flex-wrap gap-3",children:[(0,r.jsx)(b.rU,{href:j,className:"inline-flex items-center justify-center rounded-full px-6 py-2.5 text-sm font-medium text-bg transition-all hover:opacity-90",style:{background:"var(--cs-text)"},children:l.enterprise.ctaContact}),(0,r.jsx)(b.rU,{href:(0,o.CS)("/eula",s),className:"inline-flex items-center justify-center rounded-full px-6 py-2.5 text-sm font-medium text-text transition-all hover:opacity-90",style:{border:"1px solid var(--border)",background:"var(--button-bg)"},children:l.enterprise.ctaEula}),(0,r.jsx)("button",{type:"button",onClick:t,className:"inline-flex items-center justify-center rounded-full px-6 py-2.5 text-sm font-medium text-muted transition-colors hover:text-text",children:l.enterprise.ctaUseDeveloper})]}),(0,r.jsx)("p",{className:"mt-5 font-ui text-xs leading-relaxed text-muted",children:l.enterprise.note})]})}),(0,r.jsx)("section",{children:(0,r.jsxs)(b.rU,{href:(0,o.CS)("/product/enterprise",s),className:"block rounded-[28px] border border-line bg-card p-6 shadow-[0_22px_50px_-42px_rgba(0,0,0,0.22)] transition-colors hover:bg-bg md:p-8",children:[(0,r.jsx)("div",{className:"font-display text-lg font-semibold tracking-tight text-text md:text-xl",children:l.enterprise.compareTitle}),(0,r.jsx)("p",{className:"mt-2 font-ui text-sm leading-relaxed text-muted",children:l.enterprise.compareBody})]})}),(0,r.jsx)("section",{children:(0,r.jsx)(f,{})}),(0,r.jsx)("section",{children:(0,r.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-4 rounded-[28px] border border-line bg-card p-6 shadow-[0_22px_50px_-42px_rgba(0,0,0,0.22)] md:p-8",children:[(0,r.jsxs)("div",{className:"max-w-xl",children:[(0,r.jsx)("h3",{className:"font-display text-lg font-semibold tracking-tight text-text md:text-xl",children:l.enterprise.bottomTitle}),(0,r.jsx)("p",{className:"mt-2 font-ui text-sm leading-relaxed text-muted",children:l.enterprise.bottomBody})]}),(0,r.jsx)(b.rU,{href:j,className:"inline-flex items-center justify-center rounded-full px-6 py-2.5 text-sm font-medium text-bg transition-all hover:opacity-90",style:{background:"var(--cs-text)"},children:"[email protected] â"})]})})]})}var y=s(6134);function k(e){let{tool:t}=e,s=(0,o.bh)(),l=(0,c.$)(),n=(0,o.Xo)().home.tools.items[t.key],a=(null==n?void 0:n.tagline)??t.tagline,d=(null==n?void 0:n.name)??t.name,x=(null==n?void 0:n.desc)??t.desc,m=(null==n?void 0:n.secondaryLabel)??t.secondaryLabel;return(0,r.jsxs)("div",{className:"rounded-2xl border border-line bg-bg p-5 md:p-6",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-baseline justify-between gap-2",children:[(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("p",{className:"font-mono font-semibold",style:{fontSize:"0.65rem",color:"var(--cs-accent)",letterSpacing:"0.18em"},children:a.toUpperCase()}),(0,r.jsx)("h4",{className:"mt-1.5 font-display font-semibold text-text",style:{fontSize:"1.05rem",letterSpacing:"-0.01em"},children:d})]}),(0,r.jsx)(b.rU,{href:(0,o.CS)(t.docsHref,s),className:"font-ui text-xs font-medium text-text hover:underline whitespace-nowrap",children:l.resources.toolDocsLink})]}),(0,r.jsx)("p",{className:"mt-3 font-ui text-sm leading-relaxed text-muted",children:x}),(0,r.jsx)("div",{className:"mt-4",children:(0,r.jsx)(i.s,{command:t.docker})}),t.secondaryHref&&m&&(0,r.jsx)("div",{className:"mt-3 text-right",children:(0,r.jsx)(b.rU,{href:(0,o.CS)(t.secondaryHref,s),className:"font-ui text-xs font-medium text-muted transition-colors hover:text-text",children:m})})]})}function w(e){let{item:t}=e,s=(0,o.bh)();return(0,r.jsxs)(b.rU,{href:t.external?t.href:(0,o.CS)(t.href,s),target:t.external?"_blank":void 0,rel:t.external?"noopener noreferrer":void 0,className:"block rounded-2xl border border-line bg-bg px-5 py-4 transition-colors hover:bg-card",children:[(0,r.jsxs)("div",{className:"flex items-baseline justify-between gap-2",children:[(0,r.jsx)("div",{className:"text-sm font-semibold text-text",children:t.title}),(0,r.jsx)("span",{className:"font-mono text-xs text-muted",children:"â"})]}),(0,r.jsx)("div",{className:"mt-1.5 text-sm leading-relaxed text-muted",children:t.description})]})}function _(){let e=(0,c.$)(),t=[{label:e.resources.tierGroups.preflight,keys:y.S3.preflight},{label:e.resources.tierGroups.step,keys:y.S3.step},{label:e.resources.tierGroups.all,keys:y.S3.all}];return(0,r.jsxs)("div",{className:"space-y-8 md:space-y-10",children:[(0,r.jsx)("section",{children:(0,r.jsxs)("div",{className:"rounded-[28px] border border-line bg-card px-6 py-7 shadow-[0_24px_54px_-44px_rgba(0,0,0,0.22)] md:px-8 md:py-9",children:[(0,r.jsx)("div",{className:"inline-flex items-center rounded-full border border-line bg-bg px-4 py-1.5 text-[11px] font-semibold uppercase tracking-[0.18em] text-muted",children:e.resources.badge}),(0,r.jsx)("h1",{className:"mt-4 max-w-4xl font-display text-[38px] font-bold tracking-tight text-text md:text-[56px] md:leading-[1.02]",children:e.resources.title}),(0,r.jsx)("p",{className:"mt-3 max-w-3xl font-text text-base leading-relaxed text-muted md:text-lg",children:e.resources.description})]})}),(0,r.jsx)("section",{children:(0,r.jsxs)("div",{className:"rounded-[28px] border border-line bg-card p-6 shadow-[0_22px_50px_-42px_rgba(0,0,0,0.22)] md:p-8",children:[(0,r.jsx)("div",{className:"inline-flex items-center rounded-full border border-line bg-bg px-3 py-1 font-mono text-[11px] font-semibold uppercase tracking-[0.16em] text-muted",children:e.resources.toolsBadge}),(0,r.jsx)("h3",{className:"mt-3 font-display text-xl font-semibold tracking-tight text-text md:text-2xl",children:e.resources.toolsTitle}),(0,r.jsx)("div",{className:"mt-6 space-y-8",children:t.map(e=>(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"mb-3 font-mono text-[0.7rem] font-semibold uppercase tracking-[0.18em]",style:{color:"var(--cs-muted)"},children:e.label}),(0,r.jsx)("div",{className:"space-y-4",children:(0,y.iE)(e.keys).map(e=>(0,r.jsx)(k,{tool:e},e.key))})]},e.label))})]})}),(0,r.jsx)("section",{children:(0,r.jsxs)("div",{className:"rounded-[28px] border border-line bg-card p-6 shadow-[0_22px_50px_-42px_rgba(0,0,0,0.22)] md:p-8",children:[(0,r.jsx)("div",{className:"inline-flex items-center rounded-full border border-line bg-bg px-3 py-1 font-mono text-[11px] font-semibold uppercase tracking-[0.16em] text-muted",children:e.resources.portalsBadge}),(0,r.jsx)("h3",{className:"mt-3 font-display text-xl font-semibold tracking-tight text-text md:text-2xl",children:e.resources.portalsTitle}),(0,r.jsx)("div",{className:"mt-5 grid gap-3 sm:grid-cols-2 xl:grid-cols-2",children:e.resources.portals.map(e=>(0,r.jsx)(w,{item:e},e.href))})]})}),(0,r.jsx)("section",{children:(0,r.jsxs)("div",{className:"rounded-[28px] border border-line bg-card p-6 shadow-[0_22px_50px_-42px_rgba(0,0,0,0.22)] md:p-8",children:[(0,r.jsx)("div",{className:"inline-flex items-center rounded-full border border-line bg-bg px-3 py-1 font-mono text-[11px] font-semibold uppercase tracking-[0.16em] text-muted",children:e.resources.termsBadge}),(0,r.jsx)("h3",{className:"mt-3 font-display text-xl font-semibold tracking-tight text-text md:text-2xl",children:e.resources.termsTitle}),(0,r.jsx)("div",{className:"mt-5 grid gap-3 sm:grid-cols-2 xl:grid-cols-3",children:e.resources.versionsAndTerms.map(e=>(0,r.jsx)(w,{item:e},e.href))})]})})]})}let S=["developer","enterprise","resources"];function $(){if("undefined"==typeof window)return"developer";let e=window.location.hash.replace("#","");return S.includes(e)?e:"developer"}function C(){let{versions:e,isLoading:t}=(0,d.g)(),[s,n]=(0,l.useState)(""),[a,o]=(0,l.useState)("linux-amd64"),[c,x]=(0,l.useState)("developer");(0,l.useEffect)(()=>{x($());let e=()=>x($());return window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)},[]),(0,l.useEffect)(()=>
19{if(!t&&e.length>0){let t=e[0];n(t.version),t.assets.length>0&&o(t.assets[0].id)}},[e,t]);let m=(0,l.useCallback)(e=>{x(e),"undefined"!=typeof window&&history.replaceState(null,"",`#${e}`)},[]);return(0,r.jsxs)(i.kz,{children:[(0,r.jsx)(g,{active:c,onChange:m}),(0,r.jsx)("main",{className:"pt-10 pb-20 md:pt-14 md:pb-28",children:(0,r.jsx)(i.W2,{children:(0,r.jsxs)("div",{className:"mx-auto max-w-6xl",children:["developer"===c&&(0,r.jsx)(v,{platform:a,version:s,onSelect:(e,t)=>{n(e),o(t)},onSwitchToEnterprise:()=>m("enterprise")}),"enterprise"===c&&(0,r.jsx)(N,{onSwitchToDeveloper:()=>m("developer")}),"resources"===c&&(0,r.jsx)(_,{})]})})})]})}}}]);
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.