PageSourceSearch

https://pluto.xyz/_next/static/chunks/pages/blog/[id]-0494e064f2e19506.js

js pluto.xyz collected 2026-10-03 23:47:39 UTC 13,460 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[610],{3026:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/blog/[id]",function(){return l(5580)}])},9513:function(e,t,l){"use strict";var n=l(5893),r=l(9008),a=l.n(r),o=l(4298),i=l.n(o);l(7294);let d=e=>{let{title:t,socialDescription:l,socialImage:r,url:o}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a(),{children:[(0,n.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,n.jsx)("meta",{name:"description",content:l}),(0,n.jsx)("meta",{property:"og:description",content:l}),(0,n.jsx)("meta",{name:"twitter:description",content:l}),(0,n.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,n.jsx)("meta",{name:"twitter:image",content:r}),(0,n.jsx)("meta",{property:"og:image",content:r}),(0,n.jsx)("title",{children:t}),(0,n.jsx)("meta",{property:"og:title",content:t}),(0,n.jsx)("meta",{name:"twitter:title",content:t}),(0,n.jsx)("meta",{name:"twitter:creator",content:"@plutolabs_"}),(0,n.jsx)("link",{rel:"canonical",href:o}),(0,n.jsx)("meta",{property:"og:url",content:o}),(0,n.jsx)("meta",{property:"twitter:url",content:o}),(0,n.jsx)("meta",{name:"google-site-verification",content:"OwzrrqRyT3WWXOvEMaLOqZ1htYszZi9N5Dk1yyj-jxY"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"}),(0,n.jsx)("meta",{name:"robots",content:"index, follow"})]}),(0,n.jsx)(i(),{defer:!0,"data-domain":"pluto.xyz",src:"https://plausible.io/js/script.js"})]})};t.Z=d},5580:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSG:function(){return P},default:function(){return T}});var n=l(5893),r=l(7294),a=l(1163),o=l(4793),i=l(5152),d=l.n(i),s=l(4897),c=l(1664),u=l.n(c),m=l(5675),h=l.n(m);let v=e=>{let{src:t,...l}=e,[a,o]=(0,r.useState)(!1),[i,d]=(0,r.useState)(!1),s=()=>{o(!0)},c=()=>{d(!0)};return i?null:(0,n.jsx)("div",{className:"w-full mt-4  md:mt-8 relative overflow-hidden max-w-3xl mx-auto",children:(0,n.jsx)(h(),{src:t,onLoad:s,onError:c,alt:"content image",className:"object-cover mx-auto   rounded-lg border border-tertiary",height:1e3,width:1e3,priority:!0})})};var x=l(9513);let p=e=>{let{src:t,alt:l,fill:a=!1,className:o="",style:i={},priority:d=!1,height:s=1e3,width:c=1e3,...u}=e,[m,v]=(0,r.useState)(!1),[x,p]=(0,r.useState)(!1),f=()=>{v(!0)},b=()=>{p(!0)};return(0,n.jsx)(h(),{priority:d,fill:a,height:s,width:c,src:t,alt:l,className:o,onLoad:f,onError:b,style:i,...u})},f=e=>{var t;return e?Array.isArray(e)?null!==(t=null==e?void 0:e.reduce((e,t)=>e+("⁍"!==t[0]&&"‣"!==t[0]?t[0]:""),""))&&void 0!==t?t:"":e:""},b={header:0,sub_header:1,sub_sub_header:2},g=(e,t)=>{var l;if(!e||!t)return[];let n=(null!==(l=e.content)&&void 0!==l?l:[]).map(e=>{var l,n;let r=null===(l=null==t?void 0:t.block[e])||void 0===l?void 0:l.value;if(r){let{type:t}=r;if("header"===t||"sub_header"===t||"sub_sub_header"===t)return{id:e,type:t,text:f(null===(n=r.properties)||void 0===n?void 0:n.title),indentLevel:b[t]}}return null}).filter(Boolean),r=[{actual:-1,effective:-1}];for(let e of n){let{indentLevel:t}=e;for(;;){let l=r[r.length-1],{actual:n,effective:a}=l;if(t>n)e.indentLevel=a+1,r.push({actual:t,effective:e.indentLevel});else if(t===n){e.indentLevel=a;break}else r.pop()}}return n};var w=l(1279);let j=e=>{var t,l,r,a,o,i,d,s;let c=(null===(t=e.block)||void 0===t?void 0:null===(l=t.properties)||void 0===l?void 0:null===(r=l.title)||void 0===r?void 0:null===(a=r[0])||void 0===a?void 0:a[0])||"Code not available",u=(null===(o=e.block)||void 0===o?void 0:null===(i=o.properties)||void 0===i?void 0:null===(d=i.language)||void 0===d?void 0:null===(s=d[0])||void 0===s?void 0:s[0])||"";return(0,n.jsxs)("div",{className:"my-3   border-tertiary border rounded-lg ",children:[(0,n.jsx)("div",{className:" px-2 w-full border-b border-tertiary ",children:(0,n.jsx)("p",{children:u})}),(0,n.jsx)("pre",{className:"whitespace-pre-wrap  p-2",children:(0,n.jsx)("code",{children:c})})]})},y=d()(()=>l.e(794).then(l.bind(l,1794)).then(async e=>{try{await Promise.all([l.e(854).then(l.t.bind(l,6854,23)),l.e(335).then(l.t.bind(l,4335,23)),l.e(874).then(l.t.bind(l,7874,23)),l.e(99).then(l.t.bind(l,3099,23)),l.e(158).then(l.t.bind(l,7158,23)),l.e(787).then(l.t.bind(l,9787,23)),l.e(46).then(l.t.bind(l,7046,23)),l.e(117).then(l.t.bind(l,7117,23)),l.e(443).then(l.t.bind(l,8443,23)),l.e(64).then(l.t.bind(l,4064,23)),l.e(371).then(l.t.bind(l,4371,23)),l.e(366).then(l.t.bind(l,366,23)),l.e(767).then(l.t.bind(l,767,23)),l.e(893).then(l.t.bind(l,893,23)),l.e(266).then(l.t.bind(l,5266,23)),l.e(866).then(l.t.bind(l,5774,23)),l.e(358).then(l.t.bind(l,3358,23))])}catch(e){console.error("Error importing a Prism module:",e)}return null==e||e.Code,e&&e.Code?e.Code:j}).catch(e=>(console.error("Error importing the main module:",e),j)),{loadableGenerated:{webpack:()=>[3358]}}),_=e=>{var t,l,a,o,i,d,s,c;null===(t=e.block)||void 0===t||null===(l=t.properties)||void 0===l||null===(a=l.title)||void 0===a||null===(o=a[0])||void 0===o||o[0],null===(i=e.block)||void 0===i||null===(d=i.properties)||void 0===d||null===(s=d.language)||void 0===s||null===(c=s[0])||void 0===c||c[0];let[u,m]=(0,r.useState)(!1);return(0,n.jsx)("div",{className:"mt-3 mb-6  bg-secondary rounded-lg w-full mx-auto max-w-3xl",children:(0,n.jsx)(y,{...e})})},N=()=>((0,r.useEffect)(()=>{let e=document.querySelectorAll(".notion-simple-table");
1e.forEach(e=>{if(e.parentNode){let t=document.createElement("div");t.className="notion-table-wrapper",e.parentNode.insertBefore(t,e),t.appendChild(e)}})},[]),null);var k=l(7588);let C=()=>(0,n.jsx)("div",{className:"relative mt-32 mb-12 lg:mt-48 md:px-6 bg-white min-h-[50vh]",children:(0,n.jsxs)("div",{className:"animate-pulse text-center font-light max-w-3xl px-6 xl:px-0 w-full mx-auto overflow-hidden text-pluto-night",children:[(0,n.jsx)("div",{className:"h-8 w-64 mx-auto bg-gray-200 rounded mb-4"}),(0,n.jsxs)("div",{className:"flex flex-row items-center gap-2 place-content-center",children:[(0,n.jsx)("div",{className:"h-6 bg-gray-200 rounded-full w-20"}),(0,n.jsx)("div",{className:"h-6 bg-gray-200 rounded-full w-6"}),(0,n.jsx)("div",{className:"h-6 bg-gray-200 rounded-full w-20"})]}),(0,n.jsx)("div",{className:"w-full px-6 my-10 relative overflow-hidden max-w-7xl 3xl:max-w-8xl mx-auto",children:(0,n.jsx)("div",{className:"w-full h-64 bg-gray-200 rounded-lg"})})]})}),M=d()(()=>Promise.all([l.e(265),l.e(274)]).then(l.bind(l,7274)).then(e=>e.Equation),{loadableGenerated:{webpack:()=>[7274]}}),E=d()(()=>Promise.all([l.e(824),l.e(508),l.e(738)]).then(l.bind(l,1702)).then(e=>e.Pdf),{loadableGenerated:{webpack:()=>[1702]},ssr:!1}),O=e=>{var t,l,i,d,c,m;let{pageProperties:h,recordMap:f,pageId:b,socialImage:j,title:y,canonicalPageUrl:O,socialDescription:P,props:T}=e,D=(0,s.h)(e=>e.darkMode),S=(0,a.useRouter)(),{id:z}=S.query,L=Object.keys((null==f?void 0:f.block)||{}),A=null==f?void 0:null===(t=f.block)||void 0===t?void 0:null===(l=t[L[0]])||void 0===l?void 0:l.value,I=null!==(c=null==A?void 0:A.content[0])&&void 0!==c?c:0;null===(i=null==f?void 0:f.block[I])||void 0===i||null===(d=i.value)||void 0===d||d.type,(null==A?void 0:A.type)==="page"&&(null==A||A.parent_table);let F=null==f?void 0:f.block[b];F&&f&&g(F.value,f);let[B,q]=(0,r.useState)("opensans");j=null!==(m=null!=j?j:(0,w.tY)(h))&&void 0!==m?m:null;let U=k[null==h?void 0:h.id],Y=null==U?void 0:U.authors;return S.isFallback?(0,n.jsx)(C,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.Z,{title:"".concat(y),socialDescription:P,socialImage:null!=j?j:"".concat("https://pluto.xyz","/pluto-og-image.png"),url:O}),(0,n.jsxs)("div",{className:"relative mt-32 mb-12 lg:mt-48 md:px-6  min-h-[50vh]",children:[(0,n.jsxs)("div",{className:"text-center font-light max-w-3xl px-6 xl:px-0 w-full mx-auto overflow-hidden ",children:[(0,n.jsx)("h1",{className:"text-[2rem] md:text-4xl mb-4 leading-tight text-pluto-night",children:y}),(0,n.jsxs)("div",{className:"flex flex-row items-center gap-2 place-content-center",children:[(null==Y?void 0:Y.length)>0&&Y.map((e,t)=>(0,n.jsx)(r.Fragment,{children:(0,n.jsxs)(u(),{target:"_blank",className:"hover:cursor-pointer font-rand ",href:e.twitter_url,children:[e.name,t<Y.length-1&&(0,n.jsx)("span",{className:" font-rand ",children:", "})]})},t)),(null==Y?void 0:Y.length)>0&&(0,n.jsx)("p",{className:" pb-[0.1875rem] mx-0.5",children:"•"}),(0,n.jsx)("p",{className:"font-rand ",children:(0,w.p6)(null==h?void 0:h.created_time)})]})]}),j&&(0,n.jsx)("div",{className:"w-full px-6 my-10 relative overflow-hidden max-w-7xl 3xl:max-w-8xl mx-auto",children:(0,n.jsx)(p,{src:j,alt:"header image",className:"object-cover  mx-auto  aspect-video rounded-lg border border-tertiary",height:800,width:800,priority:!0,style:{}})}),(0,n.jsx)("div",{className:"relative ",children:(0,n.jsxs)("div",{className:"px-6 lg:px-0 w-full mx-auto overflow-hidden ",children:[(0,n.jsx)(N,{}),(0,n.jsx)("div",{className:"max-w-3xl mx-auto ",children:(0,n.jsx)(o.cp,{bodyClassName:"font-".concat(B),recordMap:f,rootDomain:"/blog",rootPageId:z,showTableOfContents:!0,minTableOfContentsItems:3,previewImages:!0,components:{PageLink:e=>(0,n.jsx)(u(),{href:"/blog".concat(e.href),children:e.children}),nextLink:e=>(0,n.jsx)(u(),{href:"/blog/".concat(e.href),children:e.children}),nextImage:e=>(0,n.jsx)(v,{...e,src:(0,w.wm)(e.src,b)}),Code:_,Equation:M,Pdf:E},darkMode:D,forceCustomImages:!0,className:"w-full mx-auto"})}),(0,n.jsx)("div",{className:"lg:max-w-3xl mx-auto mt-8 mb-12",children:(0,n.jsx)(u(),{className:"border-b border-transparent mx-auto mt-6 border-white hover:cursor-pointer transition-all duration-200 text-lg",href:"/blog",children:"Back to posts"})})]})})]})]})};var P=!0,T=O},4897:function(e,t,l){"use strict";l.d(t,{h:function(){return r}});var n=l(4529);let r=(0,n.Ue)((e,t)=>({darkMode:!0,faviconPath:"/light.ico",companyName:"Pluto",setCompanyName:t=>e({companyName:t}),setFaviconPath:t=>e({faviconPath:t}),setDarkMode:t=>e({darkMode:t}),toggleDarkMode:()=>{let l=t().darkMode;document.documentElement.setAttribute("data-theme",l?"light":"dark"),e({darkMode:!l})},initDarkMode:()=>{document.documentElement.setAttribute("data-theme","dark"),e({darkMode:!0})}}))},1279:function(e,t,l){"use strict";l.d(t,{B:function(){return s},cn:function(){return c},kk:function(){return d},p6:function(){return a},tY:function(){return o},wm:function(){return i}});var n=l(512),r=l(8388);function a(e){if(!e)return null;let t=new Date(e),l=t.getUTCMonth(),n=t.getUTCDate(),r=t.getUTCFullYear(),a="".concat(["January","February","March","April","May","June","July","August","September","October","November","December"][l]," ").concat(n,", ").concat(r);return a}let o=e=>{var t,l,n,r,a,o,i,d,s,c;if(null==e?void 0:null===(t=e.cover)||void 0===t?void 0:null===(l=t.external)||void 0===l?void 0:l.url)return null==e?void 0:null===(i=e.cover)||void 0===i?void 0:null===(d=i.external)||void 0===d?void 0:d.url;if(!(null==e?void 0:null===(n=e.cover)||void 0===n?void 0:null===(r=n.external)||void 0===r?void 0:r.url)&&(null==e?void 0:null===(a=e.cover)||void 0===a?void 0:null===(o=a.file)||void 0===o?void 0:o.url)){let t=function(e){let t=new URL(e),l=t.pathname,n=l.substring(l.lastIndexOf("."));return n}(null==e?void 0:null===(s=e.cover)||void 0===s?void 0:null===(c=s.file)||void 0===c?void 0:c.url);return"https://storage.googleapis.com/".concat("blog-assets-94f160","/").concat(e.id,"/cover").concat(null!=t?t:".png")}return null},i=(e,t)=>{let l=e.split("&id=")[1].split("&cache")[0],n=e.split("?")[0],r=n.slice(n.lastIndexOf(".")+1);return"https://storage.googleapis.com/".concat("blog-assets-94f160","/").concat(t,"/").concat(l,".").concat(r)},d=e=>{let t=0,l="",n=["paragraph","bulleted_list_item","numbered_list_item"];for(;t<(null==e?void 0:e.pageData.length)&&l.length<250;){var r;let a=e.pageData[t];if(n.includes(null==a?void 0:a.type)&&(null===(r=a[a.type])||void 0===r?void 0:r.rich_text)){for(let e of a[a.type].rich_text)e.plain_text&&(l+=e.plain_text);l+=" "}t++}return l.trim()},s=e=>{let t=e.indexOf(" ",250);return -1===t&&(t=e.length),e.slice(0,t)};function c(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];return(0,r.m6)((0,n.W)(t))}},7588:function(e){"use strict";e.exports=JSON.parse('{"8830fa1e-c90b-48fd-bf22-85b53f0be2a2":{"authors":[{"name":"Waylon","twitter_url":"https://x.com/0xjepsen"},{"name":"Colin","twitter_url":"https://x.com/autoparallel"}],"tags":[]},"225a2f0f-fe48-4768-8160-858552b5a9ea":{"authors":[{"name":"Tracy","twitter_url":"https://x.com/devloper_xyz"},{"name":"Matt","twitter_url":"https://x.com/mattes"}],"tags":[]},"900b0fe6-b799-4c82-b93f-0ced864dd618":{"authors":[{"name":"Thor","twitter_url":"https://x.com/cryptograthor"}],"tags":[]},"637334fc-1f7f-4663-b601-1a28cdfe38e0":{"authors":[{"name":"Bruno","twitter_url":"https://x.com/zkbrunny"}],"tags":["programming","zero-knowledge","tutorial"]},"1fd1114f-4c79-48f7-b6d3-415a1d47b7c2":{"authors":[{"name":"Bruno","twitter_url":"https://x.com/zkbrunny"}],"tags":["programming"]},"1367a922-ef29-8069-b4f3-f0385189506d":{"authors":[{"name":"Thor","twitter_url":"https://x.com/cryptograthor"}],"tags":["zero-knowledge","tutorial"]},"17b7a922-ef29-80eb-8a3d-db115418a232":{"authors":[{"name":"Matt","twitter_url":"https://x.com/mattes"}],"tags":[]},"1927a922-ef29-800c-9be6-f516f7575373":{"authors":[{"name":"Tracy","twitter_url":"https://x.com/devloper_xyz"},{"name":"Matt","twitter_url":"https://x.com/mattes"}],"tags":[]}}')}},function(e){e.O(0,[914,25,836,774,888,179],function(){return e(e.s=3026)}),_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.