1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7ca2dd5b-57df-4941-9bfe-77188502b8ea",e._sentryDebugIdIdentifier="sentry-dbid-7ca2dd5b-57df-4941-9bfe-77188502b8ea")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8880],{58880:(e,t,n)=>{n.r(t),n.d(t,{default:()=>C});var a=n(54568),s=n(37520),i=n(67363),o=n(26795),l=n(65453),r=n(69992),c=n(13831),d=n(75910),u=n(93514),p=n(37668),b=n(26866),g=n(95262),h=n(93118),m=n(7620),x=n(41745),f=n(44349),y=n(37606),v=n(86698);let w=["javascript","typescript","python","java","cpp","html","css","json","markdown","sql","rust"],j={javascript:(0,r.Q2)(),typescript:(0,r.Q2)({typescript:!0}),python:(0,u.Hg)(),java:(0,l.J)(),cpp:(0,s.I)(),html:(0,o.qy)(),css:(0,i.AH)(),json:(0,c.Pq)(),markdown:(0,d.wD)(),sql:(0,b.ll)(),rust:(0,p.T)()},k=h.Lz.theme({"&":{backgroundColor:"transparent",color:"var(--text-base)",fontSize:"14px"},"&.cm-focused":{outline:"none"},".cm-content":{minHeight:"200px",padding:"40px 16px 16px"},".cm-line":{padding:"0"},".cm-scroller":{fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",lineHeight:"1.5"}}),C=e=>{let{node:t,updateAttributes:n,selected:s}=e,i=t.attrs.code||t.textContent||"",o=t.attrs.language||"javascript",l=(0,m.useMemo)(()=>[j[o]||[],k],[o]),r=function(){let[e,t]=(0,m.useState)(()=>"u">typeof document&&document.documentElement.classList.contains("dark")?"dark":"light");return(0,m.useEffect)(()=>{let e=document.documentElement,n=new MutationObserver(()=>t(e.classList.contains("dark")?"dark":"light"));return n.observe(e,{attributes:!0,attributeFilter:["class"]}),()=>n.disconnect()},[]),e}(),{copied:c,triggerCopiedFeedback:d}=(0,v.q)(),u=async()=>{await navigator.clipboard.writeText(i),d()};return(0,a.jsxs)(g.VR,{children:[(0,a.jsxs)("div",{className:`relative mt-1 box-border w-full max-w-full min-w-0 overflow-hidden rounded-lg border border-zinc-200 bg-zinc-50 dark:border-zinc-800 dark:bg-zinc-950 ${s?"ring-2 ring-blue-500/50":""}`,children:[(0,a.jsxs)("div",{contentEditable:!1,className:"absolute inset-x-0 top-0 z-20 flex items-center justify-between p-1",children:[(0,a.jsx)("select",{value:o,onChange:e=>{n({language:e.target.value})},className:"bg-bg-on-accent ring-stroke-subtle rounded px-1.5 py-0.5 text-xs ring-[0.5px]",children:w.map(e=>(0,a.jsx)("option",{value:e,children:e?.[0]?.toUpperCase()+e.slice(1)||""},e))}),(0,a.jsx)("button",{"aria-label":c?"Copied":"Copy code",className:"text-text-subtle hover:bg-bg-100 flex h-7 w-7 items-center justify-center rounded",onClick:u,title:c?"Copied":"Copy code",type:"button",children:c?(0,a.jsx)(x.A,{}):(0,a.jsx)(f.A,{})})]}),(0,a.jsx)("div",{className:"max-w-full min-w-0",children:(0,a.jsx)(h.Ay,{"aria-label":"Code block",basicSetup:{autocompletion:!1,foldGutter:!1,highlightActiveLine:!1,highlightActiveLineGutter:!1,highlightSelectionMatches:!1,lineNumbers:!1},extensions:l,maxHeight:"400px",maxWidth:"100%",minHeight:"200px",onChange:e=>{n({code:e})},theme:r,value:i,width:"100%"})})]}),(0,a.jsx)(y.A,{height:"4px",nodeView:e,placement:"bottom"})]})}}}]); 2//# sourceMappingURL=8880.d6e5168a0bbc22a7.js.map
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.