1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3609],{83609:function(e,n,r){r.d(n,{Z:function(){return b}});var t=r(85893),a=r(67294),o=r(11163),s=r(41664),l=r.n(s),i=r(98814),c=r(92509),u=r(62461),d=r(89885),f=r(98540),m=r(21661);function v(e){var n=e.children,r=e.title,o=e.className,s=(0,a.useRef)(null),l=(0,a.useRef)(null),i=(0,a.useState)(0),c=i[0],d=i[1],f=(0,a.useCallback)((function(){var e=s.current,n=l.current;if(e&&n){var r=Math.floor(n.scrollWidth-e.clientWidth);d(r>0?r:0)}}),[]);(0,a.useEffect)((function(){if(f(),"undefined"!==typeof ResizeObserver){var e=new ResizeObserver(f);return s.current&&e.observe(s.current),l.current&&e.observe(l.current),function(){return e.disconnect()}}}),[f,n]);var m=c>0,v=Math.min(30,Math.max(5,c/25/.7));return(0,t.jsx)("span",{ref:s,title:r,className:(0,u.cn)("block w-full overflow-hidden",o),children:(0,t.jsx)("span",{ref:l,className:(0,u.cn)("inline-block whitespace-nowrap",m&&"animate-marquee-text hover:[animation-play-state:paused] motion-reduce:animate-none"),style:m?{"--marquee-shift":"-".concat(c,"px"),"--marquee-duration":"".concat(v,"s")}:void 0,children:n})})}var h=r(46188),x=r(35739);function b(e){var n,r,s=e.breadcrumbs,b=void 0===s?[]:s,g=e.categories,p=void 0===g?[]:g,w=e.selectedCategoryId,N=e.onCategorySelect,y=e.showCategoryRow,k=void 0===y||y,j=e.showBackButton,C=void 0===j||j,Z=e.alwaysShowBreadcrumbs,R=void 0!==Z&&Z,z=e.trailing,B=e.onBack,L=e.className,M=(0,o.useRouter)(),S=(0,a.useContext)(d.Z).appConfig,A=b.length>0&&(R||!(0,f.y7)(S)),E=!w,G=k&&p.length>0,W=p.some((function(e){return"all"===e.title.toLowerCase()})),_=p.filter((function(e){return"all"!==e.title.toLowerCase()})),q=(p.find((function(e){return"all"===e.title.toLowerCase()})),function(e,n){return(0,u.cn)("flex h-12 shrink-0 items-center rounded-xl border px-4 text-base font-medium transition-all duration-300",n,e?"border-transparent bg-foreground text-background":"border-border bg-secondary text-secondary-foreground hover:bg-accent")}),D=function(e){return(0,u.cn)("min-w-0 overflow-hidden",e?"max-w-full flex-1":"max-w-[34%] shrink-0 sm:max-w-[42%] md:max-w-none")},I=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,u.cn)("block [word-spacing:0.12em]",!e&&"truncate",e?"min-w-0 flex-1 font-semibold text-foreground":(0,u.cn)("font-normal text-secondary-foreground",n&&"transition-colors hover:text-foreground"))};return A||z||G?(0,t.jsxs)("div",{className:(0,u.cn)("flex flex-col gap-6 lg:gap-12",L),children:[(A||z)&&(0,t.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[A&&(0,t.jsxs)("div",{className:"flex w-full min-w-0 items-center gap-4 md:flex-1",children:[C?(0,t.jsx)(x.z,{type:"button",onClick:function(){for(var e=b.length-2;e>=0;e--){var n=b[e];if(n.onClick)return void n.onClick();if(n.href)return void M.push(n.href)}B?B():M.push("/")},"aria-label":"Go back",variant:"outline",size:"icon",className:"shrink-0 bg-secondary [&_svg]:size-6",children:(0,t.jsx)(i.Z,{})}):null,(0,t.jsx)(h.aG,{className:"min-w-0 flex-1 overflow-hidden",children:(0,t.jsx)(h.Jb,{className:"my-0 flex w-full min-w-0 flex-nowrap items-center gap-1 overflow-hidden sm:gap-1.5",children:b.map((function(e,n){var r=n===b.length-1;return(0,t.jsxs)(a.Fragment,{children:[n>0&&(0,t.jsx)(h.bg,{className:"shrink-0 text-muted-foreground",children:"/"}),(0,t.jsx)(h.gN,{className:D(r),children:r?(0,t.jsx)(h.AG,{className:I(!0),children:(0,t.jsx)(v,{title:e.label,children:e.label})}):e.onClick?(0,t.jsx)("button",{type:"button",onClick:e.onClick,className:I(!1,!0),children:e.label}):e.href?(0,t.jsx)(l(),{href:e.href,passHref:!0,legacyBehavior:!0,children:(0,t.jsx)(h.At,{className:I(!1,!0),children:e.label})}):(0,t.jsx)(h.AG,{className:(0,u.cn)(I(!1),"text-muted-foreground"),children:e.label})})]},n)}))})})]}),z&&(0,t.jsx)("div",{className:"w-full shrink-0 md:w-full md:max-w-sm",children:z})]}),G&&(0,t.jsxs)(m.Z,{trackClassName:"gap-3 py-1",children:[W&&(0,t.jsxs)("button",{type:"button",onClick:function(){return null===N||void 0===N?void 0:N(null)},className:q(E,"gap-2"),children:[(0,t.jsx)(c.Z,{className:"size-5 shrink-0"}),(0,t.jsx)("span",{children:"All"}),!!(null===(n=p.find((function(e){return"all"===e.title.toLowerCase()})))||void 0===n?void 0:n.count)&&(0,t.jsx)("span",{className:(0,u.cn)("text-xs font-normal leading-none",E?"text-background/60":"text-muted-foreground"),children:null===(r=p.find((function(e){return"all"===e.title.toLowerCase()})))||void 0===r?void 0:r.count})]}),_.map((function(e){var n,r,a=w===e.id;return(0,t.jsxs)("button",{type:"button",onClick:function(){return null===N||void 0===N?void 0:N(e)},className:q(a,"gap-3"),children:[(0,t.jsx)("span",{children:e.title}),!!e.count&&(0,t.jsx)("span",{className:(r=a,(0,u.cn)("flex size-6 items-center justify-center rounded-full p-1 text-xs font-bold",r?"bg-background/20 text-background":"bg-muted text-muted-foreground")),children:e.count})]},null!==(n=e.id)&&void 0!==n?n:e.title)}))]})]}):null}},46188:function(e,n,r){r.d(n,{AG:function(){return x},At:function(){return h},Jb:function(){return m},aG:function(){return f},bg:function(){return b},gN:function(){return v}});var t=r(40872),a=r(26042),o=r(69396),s=r(99534),l=r(85893),i=r(67294),c=r(88426),u=r(64998),d=(r(9404),r(62461)),f=i.forwardRef((function(e,n){var r=(0,t.Z)({},e);return(0,l.jsx)("nav",(0,a.Z)({ref:n,"aria-label":"breadcrumb"},r))}));f.displayName="Breadcrumb";var m=i.forwardRef((function(e,n){var r=e.className,t=(0,s.Z)(e,["className"]);return(0,l.jsx)("ol",(0,a.Z)({ref:n,className:(0,d.cn)("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5 pl-0",r)},t))}));m.displayName="BreadcrumbList";var v=i.forwardRef((function(e,n){var r=e.className,t=(0,s.Z)(e,["className"]);return(0,l.jsx)("li",(0,a.Z)({ref:n,className:(0,d.cn)("inline-flex items-center gap-1.5",r)},t))}));v.displayName="BreadcrumbItem";var h=i.forwardRef((function(e,n){var r=e.asChild,t=e.className,o=(0,s.Z)(e,["asChild","className"]),i=r?c.g7:"a";return(0,l.jsx)(i,(0,a.Z)({ref:n,className:(0,d.cn)("transition-colors text-muted-foreground hover:text-primary dark:hover:text-foreground no-underline",t)},o))}));h.displayName="BreadcrumbLink";var x=i.forwardRef((function(e,n){var r=e.className,t=(0,s.Z)(e,["className"]);return(0,l.jsx)("span",(0,a.Z)({ref:n,role:"link","aria-disabled":"true","aria-current":"page",className:(0,d.cn)("font-normal text-foreground",r)},t))}));x.displayName="BreadcrumbPage";var b=function(e){var n=e.children,r=e.className,t=(0,s.Z)(e,["children","className"]);return(0,l.jsx)("li",(0,o.Z)((0,a.Z)({role:"presentation","aria-hidden":"true",className:(0,d.cn)("[&>svg]:w-3.5 [&>svg]:h-3.5",r)},t),{children:null!==n&&void 0!==n?n:(0,l.jsx)(u.Z,{})}))};b.displayName="BreadcrumbSeparator"},21661:function(e,n,r){r.d(n,{Z:function(){return c}});
1var t=r(26042),a=r(85893),o=r(67294),s=r(98814),l=r(64998),i=r(62461),c=(0,o.forwardRef)((function(e,n){var r=e.children,c=e.className,u=e.trackClassName,d=e.showArrows,f=void 0===d||d,m=e.showGradients,v=void 0===m||m,h=e.gradientColor,x=void 0===h?"hsl(var(--background))":h,b=e.gradientWidth,g=void 0===b?80:b,p=e.scrollAmount,w=void 0===p?240:p,N=e.arrowClassName,y=(0,o.useRef)(null),k=(0,o.useState)(!1),j=k[0],C=k[1],Z=(0,o.useState)(!1),R=Z[0],z=Z[1],B=(0,o.useRef)(!1),L=(0,o.useState)(!1),M=L[0],S=L[1],A=(0,o.useRef)(0),E=(0,o.useRef)(0),G=(0,o.useCallback)((function(){var e=y.current;if(e){var n=e.scrollLeft,r=e.scrollWidth,t=e.clientWidth;C(n>2),z(Math.ceil(n)<r-t-2)}}),[]);(0,o.useEffect)((function(){var e=y.current;if(e){var n=new ResizeObserver(G);return n.observe(e),e.addEventListener("scroll",G,{passive:!0}),G(),function(){n.disconnect(),e.removeEventListener("scroll",G)}}}),[G]),(0,o.useEffect)((function(){G()})),(0,o.useImperativeHandle)(n,(function(){return{scrollBy:function(e){var n;return null===(n=y.current)||void 0===n?void 0:n.scrollBy({left:e*w,behavior:"smooth"})},scrollTo:function(e){var n;return null===(n=y.current)||void 0===n?void 0:n.scrollTo({left:e,behavior:"smooth"})},get element(){return y.current}}}));var W=function(e){var n;return null===(n=y.current)||void 0===n?void 0:n.scrollBy({left:e*w,behavior:"smooth"})},_=function(){B.current=!1,S(!1)},q="".concat(g,"px"),D={background:"linear-gradient(to right, ".concat(x," 0%, ").concat(x," 30%, transparent 100%)")},I={background:"linear-gradient(to left, ".concat(x," 0%, ").concat(x," 30%, transparent 100%)")},O=(0,i.cn)("absolute top-1/2 z-20 flex size-9 -translate-y-1/2 items-center justify-center","rounded-full bg-foreground text-background shadow-sm","transition-all duration-150 ease-in-out","@media (hover: hover) { hover:bg-accent }","hover:bg-accent hover:text-accent-foreground",N);return(0,a.jsxs)("div",{className:(0,i.cn)("relative w-full min-w-0 overflow-hidden",c),children:[v&&(0,a.jsx)("div",{"aria-hidden":"true",className:(0,i.cn)("pointer-events-none absolute inset-y-0 left-0 z-10 hidden sm:block transition-opacity duration-[200ms] ease",j?"opacity-100":"opacity-0"),style:(0,t.Z)({width:q},D)}),f&&(0,a.jsx)("button",{type:"button","aria-label":"Scroll left",onClick:function(){return W(-1)},className:(0,i.cn)(O,"left-1.5 hidden sm:flex",j?"scale-100 opacity-100":"pointer-events-none scale-75 opacity-0"),children:(0,a.jsx)(s.Z,{className:"size-5 shrink-0",strokeWidth:2.5})}),(0,a.jsx)("div",{ref:y,className:(0,i.cn)("flex overflow-x-auto no-scrollbar",M?"cursor-grabbing select-none":"cursor-default",u),onMouseDown:function(e){var n,r;B.current=!0,S(!0),A.current=e.clientX,E.current=null!==(r=null===(n=y.current)||void 0===n?void 0:n.scrollLeft)&&void 0!==r?r:0,e.preventDefault()},onMouseMove:function(e){B.current&&y.current&&(y.current.scrollLeft=E.current-(e.clientX-A.current))},onMouseUp:_,onMouseLeave:_,children:r}),v&&(0,a.jsx)("div",{"aria-hidden":"true",className:(0,i.cn)("pointer-events-none absolute inset-y-0 right-0 z-10 hidden sm:block transition-opacity duration-[200ms] ease",R?"opacity-100":"opacity-0"),style:(0,t.Z)({width:q},I)}),f&&(0,a.jsx)("button",{type:"button","aria-label":"Scroll right",onClick:function(){return W(1)},className:(0,i.cn)(O,"right-1.5 hidden sm:flex",R?"scale-100 opacity-100":"pointer-events-none scale-75 opacity-0"),children:(0,a.jsx)(l.Z,{className:"size-5 shrink-0",strokeWidth:2.5})})]})}));c.displayName="DragCarousel"}}]);
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.