1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8740],{27334:(e,t,r)=>{r.d(t,{j:()=>n});var a=r(75750);let n=()=>{let[e,t]=(0,a.useState)("light");return(0,a.useEffect)(()=>{let e=()=>{let e=document.documentElement;if(e.classList.contains("dark"))return"dark";if(e.classList.contains("light"))return"light";let t=e.getAttribute("data-theme");if("dark"===t)return"dark";if("light"===t)return"light";let r=(()=>{let e=document.createElement("div");e.style.cssText="background-color:var(--background);position:absolute;width:0;height:0;pointer-events:none;",document.body.appendChild(e);let t=getComputedStyle(e).backgroundColor;e.remove();let r=t.match(/\d+(\.\d+)?/g);if(!r||r.length<3)return null;let[a,n,s]=r.map(Number);return(.299*a+.587*n+.114*s)/255>.5?"light":"dark"})();return r||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")};t(e());let r=new MutationObserver(()=>{t(e())});r.observe(document.documentElement,{attributes:!0,attributeFilter:["class","data-theme","style"]});let a=window.matchMedia("(prefers-color-scheme: dark)"),n=()=>t(e());return a.addEventListener("change",n),()=>{r.disconnect(),a.removeEventListener("change",n)}},[]),e}},58740:(e,t,r)=>{r.r(t),r.d(t,{default:()=>w});var a=r(97542),n=r(34980),s=r(75750),l=r(94259),i=r(27334),o=r(9302),c=r(85888),d=r(3739),u=r(71528);function m({language:e,copyValue:t,copyLabel:r="Copy",onExpand:n,expandLabel:l="Expand",actions:i,dark:h=!0,className:p}){let[g,b]=(0,s.useState)(!1),f=(0,s.useCallback)(()=>{null!=t&&navigator.clipboard?.writeText(t).then(()=>{b(!0),setTimeout(()=>b(!1),1400)})},[t]),v=h?"text-white/45 hover:bg-white/10 hover:text-white/80 focus-visible:ring-white/40":"text-muted-foreground hover:bg-foreground
1/10 hover:text-foreground focus-visible:ring-ring";return(0,a.jsxs)("div",{className:(0,o.cn)("flex items-center justify-between gap-2 border-b px-3 py-1",h?"border-white/[0.06]":"border-border/60",p),children:[(0,a.jsx)("span",{className:(0,o.cn)("min-w-0 truncate font-mono text-[11px] lowercase tracking-wide",h?"text-white/40":"text-muted-foreground"),children:e}),(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-0.5",children:[i,n?(0,a.jsx)("button",{type:"button",onClick:n,"aria-label":l,title:l,className:(0,o.cn)("inline-flex size-5 items-center justify-center rounded-md transition-colors focus-visible:outline-none focus-visible:ring-1",v),children:(0,a.jsx)(c.A,{className:"size-3","aria-hidden":!0})}):null,null!=t?(0,a.jsx)("button",{type:"button",onClick:f,"aria-label":r,className:(0,o.cn)("inline-flex size-5 items-center justify-center rounded-md transition-colors focus-visible:outline-none focus-visible:ring-1",v),children:g?(0,a.jsx)(d.A,{className:"size-3","aria-hidden":!0}):(0,a.jsx)(u.A,{className:"size-3","aria-hidden":!0})}):null]})]})}let h="u">typeof globalThis?globalThis:{};h.Prism||(h.Prism=n.My);let p=!1,g=null,b=new Set;function f(e){return b.add(e),()=>b.delete(e)}function v(){return p}function x(){return!0}async function y(){if(!p)return g||(g=(async()=>{await r.e(7506).then(r.t.bind(r,7506,23)),await Promise.all([r.e(4890).then(r.t.bind(r,34890,23)),r.e(5872).then(r.t.bind(r,25872,23)),r.e(8664).then(r.t.bind(r,78664,23)),r.e(3284).then(r.t.bind(r,73284,23))]),p=!0,b.forEach(e=>e())})())}y();let w=({data:e,language:t,className:r,mode:o,inline:c=!1,customBg:d,isCompact:u=!1,maxLines:h,onExpand:p,variant:g="card"})=>{let b=(0,s.useRef)(null),w=(0,l.ps)(),j=(0,i.j)();(0,s.useSyncExternalStore)(f,v,x)||y();let k=(0,s.useMemo)(()=>({copyCode:w("tools.code.copyCode"),noContent:w("tools.code.noContent")}),[w]),N=u?"0.75rem":"0.875rem",C="light"!==(o??("light"===j?"light":"dark")),S=C?n.Zj.vsDark:n.Zj.github,E={backgroundColor:"var(--code)",borderRadius:"var(--radius-popover)"},$={backgroundColor:"var(--code-inline)"},L="string"==typeof e?e:JSON.stringify(e||{},null,2),M=L?L.split("\n").length:0,T=u?1.4:1.5,A=void 0!==h&&M>h;if(!L||""===L.trim())return(0,a.jsx)("div",{className:`relative h-full rounded-[var(--radius-popover)] ${d||""} ${r||""}`,style:d?void 0:E,children:(0,a.jsx)("div",{className:"h-full overflow-auto p-4",children:(0,a.jsx)("p",{className:"text-sm italic text-muted-foreground",role:"status",children:k.noContent})})});let P=(()=>{let e=t.toLowerCase();switch(e){case"javascript":case"js":return"javascript";case"typescript":case"ts":return"typescript";case"python":case"py":return"python";case"json":return"json";case"css":return"css";case"html":case"xml":return"markup";case"bash":case"shell":case"sh":return"bash";case"ruby":case"rb":return"ruby";case"java":return"java";case"php":return"php";case"go":case"golang":return"go";case"sql":return"sql";case"yaml":case"yml":return"yaml";case"markdown":case"md":return"markdown";case"mermaid":return"text";default:return e||"text"}})(),z=(e=>{switch(e.toLowerCase()){case"bash":case"shell":return"Bash";case"python":case"py":return"Python";case"javascript":case"js":return"JavaScript";case"typescript":case"ts":return"TypeScript";case"json":return"JSON";case"yaml":case"yml":return"YAML";case"html":return"HTML";case"css":return"CSS";case"sql":return"SQL";case"xml":return"XML";case"markdown":case"md":return"Markdown";case"plaintext":case"text":return"Text";case"mermaid":return"Mermaid";case"ruby":case"rb":return"Ruby";case"java":return"Java";case"php":return"PHP";case"go":case"golang":return"Go";default:return e.charAt(0).toUpperCase()+e.slice(1)}})(t);if("plain"===g)return(0,a.jsx)(n.f4,{theme:S,code:L,language:P,children:({className:e,style:t,tokens:n,getLineProps:s,getTokenProps:l})=>{let{backgroundColor:i,...o}=t;return(0,a.jsx)("pre",{className:`${e} ${r||""}`,style:{...o,background:"transparent",margin:0,padding:u?"0.75rem 1rem":"1rem",fontSize:N,lineHeight:T,fontFamily:"monospace",whiteSpace:"pre-wrap",wordBreak:"break-all",overflowWrap:"anywhere",maxWidth:"100%"},children:n.map((e,t)=>(0,a.jsx)("div",{...s({line:e}),children:e.map((e,t)=>(0,a.jsx)("span",{...l({token:e})},t))},t))})}});if(c){let e=d||"";return(0,a.jsx)(n.f4,{theme:S,code:L,language:P,children:({className:t,style:n,tokens:s,getTokenProps:l})=>(0,a.jsx)("code",{className:`${t} ${e} px-2 py-1 rounded-[var(--radius-sm)] ${u?"text-xs":"text-sm"} font-mono inline-block ${r||""}`,style:{...n,...d?void 0:$,fontSize:N,fontFamily:"monospace"},children:s.map((e,t)=>e.map((e,r)=>(0,a.jsx)("span",{...l({token:e})},`${t}-${r}`)))})})}return(0,a.jsxs)("div",{ref:b,className:`group relative overflow-hidden rounded-[var(--radius-p
1opover)] ${d||""} ${r||""}`,style:d?void 0:E,children:[(0,a.jsx)(m,{language:z,copyValue:L,copyLabel:k.copyCode,dark:C,onExpand:p&&A?p:void 0}),(0,a.jsx)("div",{className:A?"h-full overflow-auto":"",style:A?{maxHeight:void 0!==h?h*(u?12:14)*T+28:void 0}:void 0,...A?{tabIndex:0,role:"region","aria-label":z}:{},children:(0,a.jsx)(n.f4,{theme:S,code:L,language:P,children:({className:e,style:t,tokens:r,getLineProps:n,getTokenProps:s})=>{let{backgroundColor:l,...i}=t;return(0,a.jsx)("pre",{className:e,style:{...i,margin:0,padding:"0.875rem 1rem",fontSize:N,lineHeight:T,fontFamily:"monospace",whiteSpace:"pre-wrap",wordBreak:"break-word",overflowWrap:"break-word"},children:r.map((e,t)=>(0,a.jsx)("div",{...n({line:e}),children:e.map((e,t)=>(0,a.jsx)("span",{...s({token:e})},t))},t))})}})})]})}}}]);
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.