(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[727],{9907:function(e,t,r){Promise.resolve().then(r.bind(r,8037)),Promise.resolve().then(r.t.bind(r,8173,23)),Promise.resolve().then(r.t.bind(r,231,23)),Promise.resolve().then(r.bind(r,9571))},8037:function(e,t,r){"use strict";r.d(t,{default:function(){return l}});var s=r(7437),n=r(2265),c=()=>{let[e,t]=(0,n.useState)([]),[r,s]=(0,n.useState)([]);return(0,n.useEffect)(()=>{t(Array.from(document.querySelectorAll("h2")))},[]),(0,n.useEffect)(()=>{let t=[];e.map(e=>{t.push(e)}),s(t)},[e]),(0,n.useEffect)(()=>{let t=document.querySelectorAll("[data-scrollspy-link]");if(t.length<1)return;let r=e=>{(t[e]?t[e]:t[0]).classList.add("scrollspy-active")},s=e=>{t[e].classList.remove("scrollspy-active")},n=()=>Array.from(Array(e.length).keys()).forEach(e=>s(e)),c=0;r(0),window.addEventListener("scroll",()=>{let t=e.length-[...e].reverse().findIndex(e=>window.scrollY>=e.offsetTop-100)-1;t!==c&&(n(),c=t,r(t))})},[r,e]),r};function l(){let e=c();return(0,s.jsx)(s.Fragment,{children:e.length>0&&(0,s.jsx)("aside",{className:"ml-6 w-60 shrink-0 max-md:hidden",children:(0,s.jsxs)("nav",{className:"sticky top-24 border-l border-r p-5 [border-image:linear-gradient(to_bottom,transparent,theme(colors.slate.300/.5),transparent)1]",children:[(0,s.jsx)("div",{className:"font-bold",children:"On this page"}),(0,s.jsx)("ul",{className:"mt-2 space-y-2 text-sm",children:e.map((e,t)=>(0,s.jsx)("li",{children:(0,s.jsx)("a",{"data-scrollspy-link":!0,className:"text-gray-700 hover:text-gray-900",href:"#".concat(e.id),children:e.innerText})},t))})]})})})}},9600:function(e,t,r){"use strict";function s(e){let{src:t,width:r,quality:s}=e;return"https://img.paperform.co/fetch/".concat(["f_webp","w_".concat(r),"q_".concat(s||"auto")].join(","),"/").concat(t.startsWith("http")?t:"".concat("https://dubble.so").concat(t))}r.r(t),r.d(t,{default:function(){return s}})},9571:function(e,t,r){"use strict";r.r(t),t.default={src:"/_next/static/media/stripes.5304be90.svg",height:420,width:736,blurWidth:0,blurHeight:0}}},function(e){e.O(0,[231,173,971,23,744],function(){return e(e.s=9907)}),_N_E=e.O()}]);