1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2686],{4185:function(e,s,l){l.d(s,{d:function(){return o}});var i=l(31549),t=l(380),a=l(60825),n=l(68990),r=l(5070);let d=e=>{let{value:s,id:l,label:t,size:a="xs"}=e;return(0,i.jsx)(r.z,{id:l,onClick:()=>{navigator.clipboard.writeText(s),n.ZP.success("Copied to clipboard")},size:a,variant:"secondary",iconName:"copy",label:t})},o=e=>{let{codeBlock:s,minimal:l}=e,{code:n,language:r,filename:o,highlightedLines:c}=s;return(0,i.jsx)("section",{children:(0,i.jsx)(t.ZP,{...t.lG,theme:a.Z,code:null!=n?n:"",language:r,children:e=>{let{style:s,tokens:t,getLineProps:a,getTokenProps:r}=e;return(0,i.jsxs)("pre",{style:{...s,overflowX:"auto",whiteSpace:"pre-wrap",wordWrap:"break-word"},className:"invert dark:invert-0 r-text-caption leading-normal py-3 px-2 rounded-md !bg-gray-900 border border-gray-800 relative",children:[!l&&o&&(0,i.jsx)("div",{className:"w-full bg-gray-900/50 text-gray-400 pb-2 mb-2",children:(0,i.jsx)("p",{children:o})}),!l&&(0,i.jsx)("div",{className:"absolute top-2 right-2",children:(0,i.jsx)(d,{value:null!=n?n:""})}),t.map((e,s)=>{let{key:t,...n}=a({line:e});return(0,i.jsxs)("div",{...n,className:"".concat((null==c?void 0:c.includes(s+1))?"bg-background/50":""," gap-1"),children:[!l&&(0,i.jsx)("span",{className:"inline-block w-6 select-none text-gray-500 text-right pr-2",children:s+1}),e.map((e,l)=>{let{key:t,...a}=r({token:e});return(0,i.jsx)("span",{...a},t||"token-".concat(s,"-").concat(l))})]},t||"line-".concat(s))})]})}})})}},88212:function(e,s,l){l.d(s,{c:function(){return r}});var i=l(31549),t=l(44194),a=l(5070),n=l(4185);let r=e=>{var s;let{snippets:l,codingLanguage:r="python",setCodingLanguage:d}=e,o=null==l?void 0:l.reduce((e,s)=>{var l;let i=null!==(l=s.language)&&void 0!==l?l:"unknown";return e[i]||(e[i]=[]),e[i].push(s),e},{});return(0,t.useEffect)(()=>{if(!r&&o){let e=Object.keys(o)[0];e&&d(e)}},[r,o,d]),(0,t.useEffect)(()=>{r&&localStorage.setItem("codingLanguage",r)},[r]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"flex space-x-2 mb-4",children:o&&Object.keys(o).map(e=>(0,i.jsx)(a.z,{size:"xs",variant:r===e?"secondary":"transparent",onClick:()=>d(e),label:e},"code-btn-".concat(e)))}),o&&r&&(null===(s=o[r])||void 0===s?void 0:s.map((e,s)=>{var l;return(0,i.jsx)("div",{children:(0,i.jsx)(n.d,{codeBlock:e,minimal:!0})},"code-block-".concat(r,"-").concat(null!==(l=e.filename)&&void 0!==l?l:"untitled-".concat(s)))}))]})}},92686:function(e,s,l){l.r(s),l.d(s,{SectionFeaturesGrid:function(){return h}});var i=l(31549),t=l(14517),a=l(46649),n=l(18129),r=l.n(n),d=l(36168),o=l.n(d),c=l(13469),m=l(8219),u=l(34196),x=l(44194),g=l(88212);let p=e=>{var s,l,n,d,p,v,h,y,b,j,f,w,N,k,Z,C,P,E,z,S;let{usp:L,className:_}=e,F=(0,c.j)().use(m.Z).use(u.Z).processSync(L.secondary).toString(),[G,I]=(0,x.useState)(null!==(z=null===(l=L.snippets)||void 0===l?void 0:null===(s=l[0])||void 0===s?void 0:s.language)&&void 0!==z?z:"python");return(0,i.jsx)("div",{className:(0,t.Z)("w-full overflow-hidden p-8",_),children:(0,i.jsxs)("div",{className:(0,t.Z)("left"===L.mediaPosition||"right"===L.mediaPosition?"flex-row sm:space-x-8 space-y-8 sm:space-y-0":"flex-col space-y-8","right"===L.mediaPosition?"justify-end":"justify-start","sm:flex items-start"),children:["left"===L.mediaPosition&&L.image&&(0,i.jsx)("div",{className:(0,t.Z)(3===L.width&&"sm:max-w-[64%]",2===L.width&&"sm:max-w-[44%]","sm:basis-6/12 sm:grow"),children:(0,i.jsx)(r(),{src:L.image.asset.url,width:null===(v=L.image)||void 0===v?void 0:null===(p=v.asset)||void 0===p?void 0:null===(d=p.metadata)||void 0===d?void 0:null===(n=d.dimensions)||void 0===n?void 0:n.width,height:null===(j=L.image)||void 0===j?void 0:null===(b=j.asset)||void 0===b?void 0:null===(y=b.metadata)||void 0===y?void 0:null===(h=y.dimensions)||void 0===h?void 0:h.height,alt:"Restack"})}),"left"===L.mediaPosition&&L.snippets&&(0,i.jsx)("div",{className:(0,t.Z)(3===L.width&&"sm:max-w-[64%]",2===L.width&&"sm:max-w-[44%]","sm:basis-6/12 sm:grow"),children:(0,i.jsx)(g.c,{snippets:L.snippets,codingLanguage:G,setCodingLanguage:I})}),(0,i.jsxs)("div",{className:"flex-1 space-y-4",children:[L.primary&&(0,i.jsx)("h3",{className:"r-text-heading-3",children:L.primary}),L.secondary&&(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:F},className:"markdown prose r-text-body-2 sm:r-text-subtitle-2 text-gray-400 leading-normal mb-4"}),L.cta&&(0,i.jsx)("div",{children:(0,i.jsxs)(o(),{className:"r-link-gray",href:null!==(S=L.cta.url)&&void 0!==S?S:"",children:[L.cta.label," ",(0,i.jsx)(a.Z,{className:"inline-block w-4 h-4"})]})})]}),"left"!==L.mediaPosition&&L.image&&(0,i.jsx)("div",{className:(0,t.Z)(3===L.width&&"sm:max-w-[64%]",2===L.width&&"sm:max-w-[44%]","sm:basis-6/12 sm:grow"),children:(0,i.jsx)(r(),{src:L.image.asset.url,width:null===(k=L.image)||void 0===k?void 0:null===(N=k.asset)||void 0===N?void 0:null===(w=N.metadata)||void 0===w?void 0:null===(f=w.dimensions)||void 0===f?void 0:f.width,height:null===(E=L.image)||void 0===E?void 0:null===(P=E.asset)||void 0===P?void 0:null===(C=P.metadata)||void 0===C?void 0:null===(Z=C.dimensions)||void 0===Z?void 0:Z.height,alt:"Restack"})}),"left"!==L.mediaPosition&&L.snippets&&(0,i.jsx)("div",{className:(0,t.Z)(3===L.width&&"sm:max-w-[64%]",2===L.width&&"sm:max-w-[44%]","sm:basis-6/12 sm:grow"),children:(0,i.jsx)(g.c,{snippets:L.snippets,codingLanguage:G,setCodingLanguage:I})})]})})},v=e=>{let{section:s,align:l}=e;return(0,i.jsxs)("div",{className:(0,t.Z)({"sm:text-center":"center"===l}),children:[(0,i.jsx)("div",{className:"r-text-overline-2 text-blue-400 w-full",children:s.subtitle}),(0,i.jsx)("h2",{className:"r-text-heading-1",children:s.primary}),(0,i.jsx)("p",{className:(0,t.Z)(" r-text-subtitle-1 mt-4 text-gray-400",{"mx-auto max-w-4xl":"center"===l}),children:s.secondary})]})},h=e=>{var s,l,t,a,n,r,d,o,c,m,u,x,g,h,y;let{section:b}=e;if("split"===b.type)return(0,i.jsxs)("section",{className:"r-container-section grid grid-cols-1 lg:grid-cols-5 ga
1p-10",children:[(0,i.jsx)("div",{className:"lg:pr-14 lg:col-span-2",children:(0,i.jsx)(v,{section:b})}),(0,i.jsx)("div",{className:"lg:col-span-3 grid grid-cols-1 md:grid-cols-2 gap-4",children:null===(s=b.usps)||void 0===s?void 0:s.map(e=>(0,i.jsx)(p,{usp:e},e.primary))})]});if("2columns"===b.type&&(null===(l=b.usps)||void 0===l?void 0:l.length)===2){let[e,s]=b.usps;return(0,i.jsxs)("section",{className:"r-container-section",children:[(0,i.jsx)(v,{section:b,align:"center"}),(0,i.jsxs)("div",{className:"grid md:grid-cols-2 gap-10 mt-10",children:[(0,i.jsx)(p,{usp:e,className:"bg-gray-50 dark:bg-gray-900"}),(0,i.jsx)(p,{usp:s,className:"bg-gray-50 dark:bg-gray-900"})]})]})}return"3columns"===b.type?b.formula?(0,i.jsxs)("section",{className:"r-container-section sm:pb-0 sm:bg-transparent",children:[(0,i.jsx)(v,{section:b,align:"center"}),(0,i.jsxs)("div",{className:"text-center sm:text-left flex flex-col md:flex-row gap-y-4 md:gap-x-20 items-center sm:items-end",children:[(0,i.jsxs)("div",{className:"flex flex-col md:w-1/3",children:[(0,i.jsx)("h3",{className:"r-text-subtitle-1 !font-medium sm:z-50 max-w-[200px] break-words leading-tight",children:null===(n=b.usps)||void 0===n?void 0:null===(a=n[0])||void 0===a?void 0:a.primary}),(0,i.jsx)("p",{className:"r-text-body text-gray-400",children:null===(d=b.usps)||void 0===d?void 0:null===(r=d[0])||void 0===r?void 0:r.secondary})]}),(0,i.jsx)("div",{className:"text-3xl text-blue-300 font-mono font-feather md:self-center",children:"+"}),(0,i.jsxs)("div",{className:"flex flex-col md:w-1/3",children:[(0,i.jsx)("h3",{className:"r-text-subtitle-1 !font-medium sm:z-50 max-w-[200px] break-words leading-tight",children:null===(c=b.usps)||void 0===c?void 0:null===(o=c[1])||void 0===o?void 0:o.primary}),(0,i.jsx)("p",{className:"r-text-body text-gray-400 w-[95%]",children:null===(u=b.usps)||void 0===u?void 0:null===(m=u[1])||void 0===m?void 0:m.secondary})]}),(0,i.jsx)("div",{className:"text-3xl text-blue-300 font-mono font-feather md:self-center",children:"="}),(0,i.jsxs)("div",{className:"flex flex-col md:w-1/3",children:[(0,i.jsx)("h3",{className:"r-text-subtitle-1 !font-medium sm:z-50 max-w-[200px] break-words leading-tight",children:null===(g=b.usps)||void 0===g?void 0:null===(x=g[2])||void 0===x?void 0:x.primary}),(0,i.jsx)("p",{className:"r-text-body text-gray-400 w-[90%]",children:null===(y=b.usps)||void 0===y?void 0:null===(h=y[2])||void 0===h?void 0:h.secondary})]})]})]}):(0,i.jsxs)("section",{className:"r-container-section space-y-8",children:[(b.subtitle||b.primary||b.secondary)&&(0,i.jsx)(v,{section:b,align:"center"}),(0,i.jsx)("div",{className:"grid md:grid-cols-3 divide-y md:divide-y-0 md:divide-x divide-gray-50 dark:divide-gray-700 sm:-mx-8 border-t border-gray-50 dark:border-gray-700",children:null===(t=b.usps)||void 0===t?void 0:t.map(e=>(0,i.jsx)(p,{usp:e,className:"sm:col-span-".concat(e.width)},e.primary))})]}):null}},60825:function(e,s){s.Z={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]}}}]);
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.