1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3116],{5743:(e,t,r)=>{r.d(t,{Xi:()=>u,av:()=>h,j7:()=>d,tU:()=>f});var n=r(49693),a=r(6857),o=r(83511),l=r(77633),s=r(26059);let i=new Map,c=(0,a.createContext)(null),d=o.j7,u=o.Xi;function f(e){let{ref:t,groupId:r,persist:d=!1,updateAnchor:u=!1,defaultValue:f,value:h,onValueChange:p,...m}=e,x=(0,a.useRef)(null),[g,v]=void 0===h?(0,a.useState)(f):[h,null!=p?p:()=>void 0],y=(0,s.J)(e=>v(e)),b=(0,a.useMemo)(()=>new Map,[]);return(0,a.useLayoutEffect)(()=>{var e;if(!r)return;let t=d?localStorage.getItem(r):sessionStorage.getItem(r);t&&y(t);let n=null!=(e=i.get(r))?e:[];return n.push(y),i.set(r,n),()=>{var e;let t=null!=(e=i.get(r))?e:[];i.set(r,t.filter(e=>e!==y))}},[r,d]),(0,a.useLayoutEffect)(()=>{let e=window.location.hash.slice(1);if(e){for(let[r,n]of b.entries())if(n===e){var t;y(r),null==(t=x.current)||t.scrollIntoView();break}}},[b]),(0,n.jsx)(o.tU,{ref:(0,l.P)(t,x),value:g,onValueChange:e=>{if(u){let t=b.get(e);t&&window.history.replaceState(null,"","#".concat(t))}if(r){var t;null==(t=i.get(r))||t.forEach(t=>{t(e)}),d?localStorage.setItem(r,e):sessionStorage.setItem(r,e)}else v(e)},...m,children:(0,n.jsx)(c.Provider,{value:(0,a.useMemo)(()=>({valueToIdMap:b}),[b]),children:m.children})})}function h(e){let{value:t,...r}=e,{valueToIdMap:l}=function(){let e=(0,a.useContext)(c);if(!e)throw Error("You must wrap your component in <Tabs>");return e}();return r.id&&l.set(t,r.id),(0,n.jsx)(o.av,{value:t,...r,children:r.children})}},8816:(e,t,r)=>{r.d(t,{TOCItems:()=>p,TOCProvider:()=>f,TOCScrollArea:()=>h,a:()=>u});var n=r(49693),a=r(55703),o=r(6857),l=r(92480),s=r(79231),i=r(52429),c=r(77633);let d=(0,o.createContext)([]);function u(){return(0,o.useContext)(d)}function f(e){let{toc:t,children:r,...o}=e;return(0,n.jsx)(d,{value:t,children:(0,n.jsx)(a.NQ,{toc:t,...o,children:r})})}function h(e){let{ref:t,className:r,...s}=e,i=(0,o.useRef)(null);return(0,n.jsx)("div",{ref:(0,c.P)(i,t),className:(0,l.QP)("relative min-h-0 text-sm ms-px overflow-auto [scrollbar-width:none] [mask-image:linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent)] py-3",r),...s,children:(0,n.jsx)(a.N2,{containerRef:i,children:s.children})})}function p(e){let{ref:t,className:r,...a}=e,d=(0,o.useRef)(null),f=u(),{text:h}=(0,s.useI18n)();return 0===f.length?(0,n.jsx)("div",{className:"rounded-lg border bg-fd-card p-3 text-xs text-fd-muted-foreground",children:h.tocNoHeadings}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.j,{containerRef:d,className:"absolute top-(--fd-top) h-(--fd-height) w-px bg-fd-primary transition-all"}),(0,n.jsx)("div",{ref:(0,c.P)(t,d),className:(0,l.QP)("flex flex-col border-s border-fd-foreground/10",r),...a,children:f.map(e=>(0,n.jsx)(m,{item:e},e.url))})]})}function m(e){let{item:t}=e;return(0,n.jsx)(a.Cz,{href:t.url,className:(0,l.QP)("prose py-1.5 text-sm text-fd-muted-foreground transition-colors [overflow-wrap:anywhere] first:pt-0 last:pb-0 data-[active=true]:text-fd-primary",t.depth<=2&&"ps-3",3===t.depth&&"ps-6",t.depth>=4&&"ps-8"),children:t.title})}},9698:(e,t,r)=>{r.d(t,{N:()=>y});var n=r(49693),a=r(6857),o=r(86309),l=r(45525),s=r(23334),i=r(47869),c=r(99057),d=r(59844);function u(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class f extends a.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,r=(0,c.s)(e)&&e.offsetWidth||0,n=this.props.sizeRef.current;n.height=t.offsetHeight||0,n.width=t.offsetWidth||0,n.top=t.offsetTop,n.left=t.offsetLeft,n.right=r-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}}function h(e){let{children:t,isPresent:r,anchorX:o,root:l}=e,s=(0,a.useId)(),i=(0,a.useRef)(null),c=(0,a.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:h}=(0,a.useContext)(d.Q),p=function(...e){return a.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=u(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():u(e[t],null)}}}}(...e),e)}(i,null==t?void 0:t.ref);return(0,a.useInsertionEffect)(()=>{let{width:e,height:t,top:n,left:a,right:d}=c.current;if(r||!i.current||!e||!t)return;i.current.dataset.motionPopId=s;let u=document.createElement("style");h&&(u.nonce=h);let f=null!=l?l:document.head;return f.appendChild(u),u.sheet&&u.sheet.insertRule('\n [data-motion-pop-id="'.concat(s,'"] {\n position: absolute !important;\n width: ').concat(e,"px !important;\n height: ").concat(t,"px !important;\n ").concat("left"===o?"left: ".concat(a):"right: ".concat(d),"px !important;\n top: ").concat(n,"px !important;\n }\n ")),()=>{f.contains(u)&&f.removeChild(u)}},[r]),(0,n.jsx)(f,{isPresent:r,childRef:i,sizeRef:c,children:a.cloneElement(t,{ref:p})})}let p=e=>{let{children:t,initial:r,isPresent:o,onExitComplete:s,custom:c,presenceAffectsLayout:d,mode:u,anchorX:f,root:p}=e,x=(0,l.M)(m),g=(0,a.useId)(),v=!0,y=(0,a.useMemo)(()=>
1(v=!1,{id:g,initial:r,isPresent:o,custom:c,onExitComplete:e=>{for(let t of(x.set(e,!0),x.values()))if(!t)return;s&&s()},register:e=>(x.set(e,!1),()=>x.delete(e))}),[o,x,s]);return d&&v&&(y={...y}),(0,a.useMemo)(()=>{x.forEach((e,t)=>x.set(t,!1))},[o]),a.useEffect(()=>{o||x.size||!s||s()},[o]),"popLayout"===u&&(t=(0,n.jsx)(h,{isPresent:o,anchorX:f,root:p,children:t})),(0,n.jsx)(i.t.Provider,{value:y,children:t})};function m(){return new Map}var x=r(40770);let g=e=>e.key||"";function v(e){let t=[];return a.Children.forEach(e,e=>{(0,a.isValidElement)(e)&&t.push(e)}),t}let y=e=>{let{children:t,custom:r,initial:i=!0,onExitComplete:c,presenceAffectsLayout:d=!0,mode:u="sync",propagate:f=!1,anchorX:h="left",root:m}=e,[y,b]=(0,x.xQ)(f),w=(0,a.useMemo)(()=>v(t),[t]),j=f&&!y?[]:w.map(g),k=(0,a.useRef)(!0),N=(0,a.useRef)(w),P=(0,l.M)(()=>new Map),[M,C]=(0,a.useState)(w),[R,I]=(0,a.useState)(w);(0,s.E)(()=>{k.current=!1,N.current=w;for(let e=0;e<R.length;e++){let t=g(R[e]);j.includes(t)?P.delete(t):!0!==P.get(t)&&P.set(t,!1)}},[R,j.length,j.join("-")]);let T=[];if(w!==M){let e=[...w];for(let t=0;t<R.length;t++){let r=R[t],n=g(r);j.includes(n)||(e.splice(t,0,r),T.push(r))}return"wait"===u&&T.length&&(e=T),I(v(e)),C(w),null}let{forceRender:E}=(0,a.useContext)(o.L);return(0,n.jsx)(n.Fragment,{children:R.map(e=>{let t=g(e),a=(!f||!!y)&&(w===R||j.includes(t));return(0,n.jsx)(p,{isPresent:a,initial:(!k.current||!!i)&&void 0,custom:r,presenceAffectsLayout:d,mode:u,root:m,onExitComplete:a?void 0:()=>{if(!P.has(t))return;P.set(t,!0);let e=!0;P.forEach(t=>{t||(e=!1)}),e&&(null==E||E(),I(N.current),f&&(null==b||b()),c&&c())},anchorX:h,children:e},t)})})}},10654:(e,t,r)=>{r.d(t,{r:()=>o});var n=r(83340);let a={primary:"bg-fd-primary text-fd-primary-foreground hover:bg-fd-primary/80",outline:"border hover:bg-fd-accent hover:text-fd-accent-foreground",ghost:"hover:bg-fd-accent hover:text-fd-accent-foreground",secondary:"border bg-fd-secondary text-fd-secondary-foreground hover:bg-fd-accent hover:text-fd-accent-foreground"},o=(0,n.F)("inline-flex items-center justify-center rounded-md p-2 text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring",{variants:{variant:a,color:a,size:{sm:"gap-1 px-2 py-1.5 text-xs",icon:"p-1.5 [&_svg]:size-5","icon-sm":"p-1.5 [&_svg]:size-4.5","icon-xs":"p-1 [&_svg]:size-4"}}})},12386:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(53611).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},19074:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(53611).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},26059:(e,t,r)=>{r.d(t,{J:()=>a}),r(39345);var n=r(6857),a=e=>{let t=n.useRef(e);return t.current=e,n.useCallback(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.current(...r)},[])}},30647:(e,t,r)=>{r.d(t,{PageBreadcrumb:()=>R,PageFooter:()=>M,PageLastUpdate:()=>N,PageTOC:()=>I,PageTOCPopover:()=>k,PageTOCPopoverContent:()=>j,PageTOCPopoverTrigger:()=>b});var n=r(49693),a=r(6857),o=r(74148),l=r(38342),s=r(92480),i=r(79231),c=r(1115),d=r(99846),u=r(29481),f=r(23145),h=r(39649),p=r(26059),m=r(72866),x=r(88649),g=r(8816),v=r(55703);let y=(0,d.q6)("TocPopoverContext");function b(e){var t,r;let{text:l}=(0,i.useI18n)(),{open:d}=y.use(),u=(0,g.a)(),f=(0,v.R3)(),h=(0,a.useMemo)(()=>u.findIndex(e=>f===e.url.slice(1)),[u,f]),p=(0,c.L)().at(-1),x=-1!==h&&!d;return(0,n.jsxs)(m.R6,{...e,className:(0,s.QP)("flex w-full h-(--fd-tocnav-height) items-center text-sm text-fd-muted-foreground gap-2.5 px-4 py-2.5 text-start focus-visible:outline-none [&_svg]:size-4 md:px-6",e.className),children:[(0,n.jsx)(w,{value:(h+1)/Math.max(1,u.length),max:1,className:(0,s.QP)("shrink-0",d&&"text-fd-primary")}),(0,n.jsxs)("span",{className:"grid flex-1 *:my-auto *:row-start-1 *:col-start-1",children:[(0,n.jsx)("span",{className:(0,s.QP)("truncate transition-all",d&&"text-fd-foreground",x&&"opacity-0 -translate-y-full pointer-events-none"),children:null!=(r=null==p?void 0:p.name)?r:l.toc}),(0,n.jsx)("span",{className:(0,s.QP)("truncate transition-all",!x&&"opacity-0 translate-y-full pointer-events-none"),children:null==(t=u[h])?void 0:t.t
1itle})]}),(0,n.jsx)(o.yQ,{className:(0,s.QP)("shrink-0 transition-transform mx-0.5",d&&"rotate-180")})]})}function w(e){let{value:t,strokeWidth:r=2,size:a=24,min:o=0,max:l=100,...s}=e,i=t<o?o:t>l?l:t,c=(a-r)/2,d=2*Math.PI*c,u=i/l*d,f={cx:a/2,cy:a/2,r:c,fill:"none",strokeWidth:r};return(0,n.jsxs)("svg",{role:"progressbar",viewBox:"0 0 ".concat(a," ").concat(a),"aria-valuenow":i,"aria-valuemin":o,"aria-valuemax":l,...s,children:[(0,n.jsx)("circle",{...f,className:"stroke-current/25"}),(0,n.jsx)("circle",{...f,stroke:"currentColor",strokeDasharray:d,strokeDashoffset:d-u,strokeLinecap:"round",transform:"rotate(-90 ".concat(a/2," ").concat(a/2,")"),className:"transition-all"})]})}function j(e){return(0,n.jsx)(m.Ke,{"data-toc-popover":"",...e,className:(0,s.QP)("flex flex-col px-4 max-h-[50vh] md:px-6",e.className),children:e.children})}function k(e){let t=(0,a.useRef)(null),[r,o]=(0,a.useState)(!1),{collapsed:l}=(0,x.c)(),{isTransparent:i}=(0,f.hI)(),c=(0,p.J)(e=>{r&&t.current&&!t.current.contains(e.target)&&o(!1)});return(0,a.useEffect)(()=>(window.addEventListener("click",c),()=>{window.removeEventListener("click",c)}),[]),(0,n.jsx)(y.Provider,{value:(0,a.useMemo)(()=>({open:r,setOpen:o}),[o,r]),children:(0,n.jsx)(m.Nt,{open:r,onOpenChange:o,asChild:!0,children:(0,n.jsx)("header",{ref:t,id:"nd-tocnav",...e,className:(0,s.QP)("fixed pr-(--removed-body-scroll-bar-size,0) z-10 border-b backdrop-blur-sm transition-colors xl:hidden max-xl:on-root:[--fd-tocnav-height:40px]",(!i||r)&&"bg-fd-background/80",r&&"shadow-lg",e.className),style:{...e.style,top:"calc(var(--fd-banner-height) + var(--fd-nav-height))",insetInlineStart:l?"0px":"calc(var(--fd-sidebar-width) + var(--fd-layout-offset))",insetInlineEnd:0},children:e.children})})})}function N(e){let{date:t,...r}=e,{text:o}=(0,i.useI18n)(),[l,c]=(0,a.useState)("");return(0,a.useEffect)(()=>{c(new Date(t).toLocaleDateString())},[t]),(0,n.jsxs)("p",{...r,className:(0,s.QP)("text-sm text-fd-muted-foreground",r.className),children:[o.lastUpdate," ",l]})}let P=new Map;function M(e){let{items:t,...r}=e,{root:o}=(0,c.t)(),l=(0,d.a8)(),{previous:i,next:u}=(0,a.useMemo)(()=>{if(t)return t;let e=P.get(o.$id),r=null!=e?e:function e(t){let r=[];return t.forEach(t=>{if("folder"===t.type){t.index&&r.push(t.index),r.push(...e(t.children));return}"page"!==t.type||t.external||r.push(t)}),r}(o.children);P.set(o.$id,r);let n=r.findIndex(e=>(0,h.$)(e.url,l,!1));return -1===n?{}:{previous:r[n-1],next:r[n+1]}},[t,l,o]);return(0,n.jsxs)("div",{...r,className:(0,s.QP)("@container grid gap-4 pb-6",i&&u?"grid-cols-2":"grid-cols-1",r.className),children:[i?(0,n.jsx)(C,{item:i,index:0}):null,u?(0,n.jsx)(C,{item:u,index:1}):null]})}function C(e){var t;let{item:r,index:a}=e,{text:c}=(0,i.useI18n)(),d=0===a?o.JG:o.c_;return(0,n.jsxs)(l.default,{href:r.url,className:(0,s.QP)("flex flex-col gap-2 rounded-lg border p-4 text-sm transition-colors hover:bg-fd-accent/80 hover:text-fd-accent-foreground @max-lg:col-span-full",1===a&&"text-end"),children:[(0,n.jsxs)("div",{className:(0,s.QP)("inline-flex items-center gap-1.5 font-medium",1===a&&"flex-row-reverse"),children:[(0,n.jsx)(d,{className:"-mx-1 size-4 shrink-0 rtl:rotate-180"}),(0,n.jsx)("p",{children:r.name})]}),(0,n.jsx)("p",{className:"text-fd-muted-foreground truncate",children:null!=(t=r.description)?t:0===a?c.previousPage:c.nextPage})]})}function R(e){let{includeRoot:t,includeSeparator:r,includePage:i,...d}=e,f=(0,c.L)(),{root:h}=(0,c.t)(),p=(0,a.useMemo)(()=>(0,u.Pp)(h,f,{includePage:i,includeSeparator:r,includeRoot:t}),[i,t,r,f,h]);return 0===p.length?null:(0,n.jsx)("div",{...d,className:(0,s.QP)("flex items-center gap-1.5 text-sm text-fd-muted-foreground",d.className),children:p.map((e,t)=>{let r=(0,s.QP)("truncate",t===p.length-1&&"text-fd-primary font-medium");return(0,n.jsxs)(a.Fragment,{children:[0!==t&&(0,n.jsx)(o.c_,{className:"size-3.5 shrink-0"}),e.url?(0,n.jsx)(l.default,{href:e.url,className:(0,s.QP)(r,"transition-opacity hover:opacity-80"),children:e.name}):(0,n.jsx)("span",{className:r,children:e.name})]},t)})})}function I(e){let{collapsed:t}=(0,x.c)();return(0,n.jsx)("div",{id:"nd-toc",...e,className:(0,s.QP)("fixed bottom-0 pt-12 pb-2 pr-(--removed-body-scroll-bar-size,0) max-xl:hidden",e.className),style:{...e.style,top:"calc(var(--fd-banner-height) + var(--fd-nav-height))",insetInlineEnd:"max(".concat(t?"0px":"var(--fd-layout-offset)",", calc(50vw - var(--fd-sidebar-width)/2 - var(--fd-page-width)/2))")},children:(0,n.jsx)("div",{className:"flex h-full w-(--fd-toc-width) max-w-full flex-col pe-4",children:e.children})})}},31786:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(53611).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
1],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},35719:(e,t,r)=>{r.r(t),r.d(t,{CodeBlock:()=>h,CodeBlockTab:()=>v,CodeBlockTabs:()=>m,CodeBlockTabsList:()=>x,CodeBlockTabsTrigger:()=>g,Pre:()=>f});var n=r(49693),a=r(74148),o=r(6857),l=r(92480),s=r(84378),i=r(10654),c=r(5743),d=r(77633);let u=(0,o.createContext)(null);function f(e){return(0,n.jsx)("pre",{...e,className:(0,l.QP)("min-w-full w-max *:flex *:flex-col",e.className),children:e.children})}function h(e){var t;let{ref:r,title:a,allowCopy:s=!0,keepBackground:i=!1,icon:c,viewportProps:d={},children:f,Actions:h=e=>(0,n.jsx)("div",{...e,className:(0,l.QP)("empty:hidden",e.className)}),...m}=e,x=null!==(0,o.useContext)(u),g=(0,o.useRef)(null);return(0,n.jsxs)("figure",{ref:r,dir:"ltr",...m,className:(0,l.QP)(x?"bg-fd-secondary -mx-px -mb-px last:rounded-b-xl":"my-4 bg-fd-card rounded-xl",i&&"bg-(--shiki-light-bg) dark:bg-(--shiki-dark-bg)","shiki relative border shadow-sm outline-none not-prose overflow-hidden text-sm",m.className),children:[a?(0,n.jsxs)("div",{className:"flex text-fd-muted-foreground items-center gap-2 h-9.5 border-b px-4",children:["string"==typeof c?(0,n.jsx)("div",{className:"[&_svg]:size-3.5",dangerouslySetInnerHTML:{__html:c}}):c,(0,n.jsx)("figcaption",{className:"flex-1 truncate",children:a}),h({className:"-me-2",children:s&&(0,n.jsx)(p,{containerRef:g})})]}):h({className:"absolute top-2 right-2 z-2 backdrop-blur-lg rounded-lg text-fd-muted-foreground",children:s&&(0,n.jsx)(p,{containerRef:g})}),(0,n.jsx)("div",{ref:g,...d,className:(0,l.QP)("text-[13px] py-3.5 overflow-auto max-h-[600px] fd-scroll-container",d.className),style:{"--padding-right":a?void 0:"calc(var(--spacing) * 8)",counterSet:m["data-line-numbers"]?"line ".concat(Number(null!=(t=m["data-line-numbers-start"])?t:1)-1):void 0,...d.style},children:f})]})}function p(e){let{className:t,containerRef:r,...o}=e,[c,d]=(0,s.x)(()=>{var e,t;let n=null==(e=r.current)?void 0:e.getElementsByTagName("pre").item(0);if(!n)return;let a=n.cloneNode(!0);a.querySelectorAll(".nd-copy-ignore").forEach(e=>{e.replaceWith("\n")}),navigator.clipboard.writeText(null!=(t=a.textContent)?t:"")});return(0,n.jsx)("button",{type:"button","data-checked":c||void 0,className:(0,l.QP)((0,i.r)({className:"hover:text-fd-accent-foreground data-[checked]:text-fd-accent-foreground",size:"icon-xs"}),t),"aria-label":c?"Copied Text":"Copy Text",onClick:d,...o,children:c?(0,n.jsx)(a.Jl,{}):(0,n.jsx)(a.B0,{})})}function m(e){let{ref:t,...r}=e,a=(0,o.useRef)(null),s=null!==(0,o.useContext)(u);return(0,n.jsx)(c.tU,{ref:(0,d.P)(a,t),...r,className:(0,l.QP)("bg-fd-card rounded-xl border",!s&&"my-4",r.className),children:(0,n.jsx)(u.Provider,{value:(0,o.useMemo)(()=>({containerRef:a,nested:s}),[s]),children:r.children})})}function x(e){return(0,n.jsx)(c.j7,{...e,className:(0,l.QP)("flex flex-row px-2 overflow-x-auto text-fd-muted-foreground",e.className),children:e.children})}function g(e){let{children:t,...r}=e;return(0,n.jsxs)(c.Xi,{...r,className:(0,l.QP)("relative group inline-flex text-sm font-medium text-nowrap items-center transition-colors gap-2 px-2 py-1.5 hover:text-fd-accent-foreground data-[state=active]:text-fd-primary [&_svg]:size-3.5",r.className),children:[(0,n.jsx)("div",{className:"absolute inset-x-2 bottom-0 h-px group-data-[state=active]:bg-fd-primary"}),t]})}function v(e){return(0,n.jsx)(c.av,{...e})}},36803:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(53611).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},38342:(e,t,r)=>{r.r(t),r.d(t,{default:()=>l});var n=r(10795),a=r(6857),o=r(49693),l=(0,a.forwardRef)(({href:e="#",external:t=e.match(/^\w+:/)||e.startsWith("//"),prefetch:r,...a},l)=>t?(0,o.jsx)("a",{ref:l,href:e,rel:"noreferrer noopener",target:"_blank",...a,children:a.children}):(0,o.jsx)(n.N_,{ref:l,href:e,prefetch:r,...a}));l.displayName="Link",r(39345)},38955:(e,t,r)=>{r.d(t,{Accordion:()=>f,Accordions:()=>u});var n=r(49693),a=r(60934),o=r(74148),l=r(6857),s=r(92480),i=r(84378),c=r(10654),d=r(77633);let u=(0,l.forwardRef)((e,t)=>{let{type:r="single",className:o,defaultValue:i,...c}=e,u=(0,l.useRef)(null),f=(0,d.P)(t,u),[h,p]=(0,l.useState)(()=>"single"===r?null!=i?i:"":null!=i?i:[]);return(0,l.useEffect)(()=>{let e=window.location.hash.substring(1),t=u.current;if(!t||0===e.length)return;let r=document.getElementById(e);if(!r||!t.contains(r))return;let n=r.getAttribute("data-accordion-value");n&&p(e=>"string"==typeof e?n:[n,...e])},[]),(0,n.jsx)(a.bL,{type:r,ref:f,value:h,onValueChange:p,collapsible:"single"===r||void 0,className:(0,s.QP)("divide-y divide-fd-border overflow-hidden rounded-lg border bg-fd-card",o),...c})});u.displayName="Accordions";let f=(0,l.forwardRef)((e,t)=>{let{title:r,className:l,id:i,value:c=String(r),children:d,...u}=e;return(0,n.jsxs)(a.q7,{ref:t,value:c,className:(0,s.QP)("scroll-m-24",l),...u,children:[(0,n.jsxs)(a.Y9,{id:i,"data-accordion-value":c,className:"not-prose flex flex-row items-center text-fd-card-foreground font-medium has-focus-visible:bg-fd-accent",children:[(0,n.jsxs)(a.l9,{className:"group flex flex-1 items-center gap-2 px-3 py-2.5 text-start focus-visible:outline-none",children:[(0,n.jsx)(o.c_,{className:"size-4 shrink-0 text-fd-muted-foreground transition-transform duration-200 group-data-[state=open]:rotate-90"}),r]}),i?(0,n.jsx)(h,{id:i}):null]}),(0,n.jsx)(a.UC,{className:"overflow-hidden data-[state=closed]:animate-fd-accordion-up data-[state=open]:animate-fd-accordion-down",children:(0,n.jsx)("div",{className:"px-4 pb-2 text-[15px] prose-no-margin",children:d})})]})});function h(e){let{id:t}=e,[r,a]=(0,i.x)(()=>{let e=new URL(window.location.href);return e.hash=t,navigator.clipboard.writeText(e.toString())});return(0,n.jsx)("button",{type:"button","aria-label":"Copy Link",className:(0,s.QP)((0,c.r)({color:"ghost",className:"text-fd-muted-foreground me-2"})),onClick:a,children:r?(0,n.jsx)(o.Jl,{className:"size-3.5"}):(0,n.jsx)(o.N_,{className:"size-3.5"})})}f.displayName="Accordion"},39649:(e,t,r)=>{function n(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}function a(e,t,r=!0){return(e=n(e))===(t=n(t))||r&&t.startsWith(`${e}/`)}function o(e,t){return e.urls?e.urls.has(n(t)):a(e.url,t,!0)}r.d(t,{$:()=>a,c:()=>o})},49783:(e,t,r)=>{r.d(t,{Tab:()=>f,Tabs:()=>u});var n=r(49693),a=r(6857),o=r(92480),l=r(5743);let s=(0,a.createContext)(null);function i(){let e=(0,a.useContext)(s);if(!e)throw Error("You must wrap your component in <Tabs>");return e}let c=a.forwardRef((e,t)=>
1(0,n.jsx)(l.j7,{ref:t,...e,className:(0,o.QP)("flex gap-3.5 text-fd-secondary-foreground overflow-x-auto px-4 not-prose",e.className)}));c.displayName="TabsList";let d=a.forwardRef((e,t)=>(0,n.jsx)(l.Xi,{ref:t,...e,className:(0,o.QP)("inline-flex items-center gap-2 whitespace-nowrap text-fd-muted-foreground border-b border-transparent py-2 text-sm font-medium transition-colors [&_svg]:size-4 hover:text-fd-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-fd-primary data-[state=active]:text-fd-primary",e.className)}));function u(e){let{ref:t,className:r,items:i,label:u,defaultIndex:f=0,defaultValue:h=i?p(i[f]):void 0,...m}=e,[x,g]=(0,a.useState)(h),v=(0,a.useMemo)(()=>[],[]);return(0,n.jsxs)(l.tU,{ref:t,className:(0,o.QP)("flex flex-col overflow-hidden rounded-xl border bg-fd-secondary my-4",r),value:x,onValueChange:e=>{(!i||i.some(t=>p(t)===e))&&g(e)},...m,children:[i&&(0,n.jsxs)(c,{children:[u&&(0,n.jsx)("span",{className:"text-sm font-medium my-auto me-auto",children:u}),i.map(e=>(0,n.jsx)(d,{value:p(e),children:e},e))]}),(0,n.jsx)(s.Provider,{value:(0,a.useMemo)(()=>({items:i,collection:v}),[v,i]),children:m.children})]})}function f(e){let{value:t,...r}=e,{items:o}=i(),l=null!=t?t:null==o?void 0:o.at(function(){let e=(0,a.useId)(),{collection:t}=i();return(0,a.useEffect)(()=>()=>{let r=t.indexOf(e);-1!==r&&t.splice(r,1)},[e,t]),t.includes(e)||t.push(e),t.indexOf(e)}());if(!l)throw Error("Failed to resolve tab `value`, please pass a `value` prop to the Tab component.");return(0,n.jsx)(h,{value:p(l),...r,children:r.children})}function h(e){let{value:t,className:r,...a}=e;return(0,n.jsx)(l.av,{value:t,forceMount:!0,className:(0,o.QP)("p-4 text-[15px] bg-fd-background rounded-xl outline-none prose-no-margin data-[state=inactive]:hidden [&>figure:only-child]:-m-4 [&>figure:only-child]:border-none",r),...a,children:a.children})}function p(e){return e.toLowerCase().replace(/\s/,"-")}d.displayName="TabsTrigger"},51552:(e,t,r)=>{r.d(t,{default:()=>u});var n=r(49693),a=r(55703),o=r(6857),l=r(92480),s=r(52429),i=r(8816),c=r(77633),d=r(79231);function u(e){let{ref:t,className:r,...a}=e,u=(0,o.useRef)(null),p=(0,i.a)(),{text:m}=(0,d.useI18n)(),[x,g]=(0,o.useState)();return((0,o.useEffect)(()=>{if(!u.current)return;let e=u.current;function t(){if(0===e.clientHeight)return;let t=0,r=0,n=[];for(let a=0;a<p.length;a++){let o=e.querySelector('a[href="#'.concat(p[a].url.slice(1),'"]'));if(!o)continue;let l=getComputedStyle(o),s=f(p[a].depth)+1,i=o.offsetTop+parseFloat(l.paddingTop),c=o.offsetTop+o.clientHeight-parseFloat(l.paddingBottom);t=Math.max(s,t),r=Math.max(r,c),n.push("".concat(0===a?"M":"L").concat(s," ").concat(i)),n.push("L".concat(s," ").concat(c))}g({path:n.join(" "),width:t+1,height:r})}let r=new ResizeObserver(t);return t(),r.observe(e),()=>{r.disconnect()}},[p]),0===p.length)?(0,n.jsx)("div",{className:"rounded-lg border bg-fd-card p-3 text-xs text-fd-muted-foreground",children:m.tocNoHeadings}):(0,n.jsxs)(n.Fragment,{children:[x?(0,n.jsx)("div",{className:"absolute start-0 top-0 rtl:-scale-x-100",style:{width:x.width,height:x.height,maskImage:'url("data:image/svg+xml,'.concat(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 '.concat(x.width," ").concat(x.height,'"><path d="').concat(x.path,'" stroke="black" stroke-width="1" fill="none" /></svg>')),'")')},children:(0,n.jsx)(s.j,{containerRef:u,className:"mt-(--fd-top) h-(--fd-height) bg-fd-primary transition-all"})}):null,(0,n.jsx)("div",{ref:(0,c.P)(u,t),className:(0,l.QP)("flex flex-col",r),...a,children:p.map((e,t)=>{var r,a;return(0,n.jsx)(h,{item:e,upper:null==(r=p[t-1])?void 0:r.depth,lower:null==(a=p[t+1])?void 0:a.depth},e.url)})})]})}function f(e){return 10*(e>=3)}function h(e){var t;let{item:r,upper:o=r.depth,lower:s=r.depth}=e,i=f(r.depth),c=f(o),d=f(s);return(0,n.jsxs)(a.Cz,{href:r.url,style:{paddingInlineStart:(t=r.depth)<=2?14:3===t?26:36},className:"prose relative py-1.5 text-sm text-fd-muted-foreground hover:text-fd-accent-foreground transition-colors [overflow-wrap:anywhere] first:pt-0 last:pb-0 data-[active=true]:text-fd-primary",children:[i!==c?(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",className:"absolute -top-1.5 start-0 size-4 rtl:-scale-x-100",children:(0,n.jsx)("line",{x1:c,y1:"0",x2:i,y2:"12",className:"stroke-fd-foreground
1/10",strokeWidth:"1"})}):null,(0,n.jsx)("div",{className:(0,l.QP)("absolute inset-y-0 w-px bg-fd-foreground/10",i!==c&&"top-1.5",i!==d&&"bottom-1.5"),style:{insetInlineStart:i}}),r.title]})}},51826:(e,t,r)=>{r.d(t,{TypeTable:()=>f});var n=r(49693),a=r(74148),o=r(38342),l=r(83340),s=r(92480),i=r(6857),c=r(72866);let d=(0,l.F)("text-fd-primary",{variants:{deprecated:{true:"line-through text-fd-primary/50"}}}),u=(0,l.F)("text-fd-muted-foreground not-prose pe-2");function f(e){let{type:t}=e;return(0,n.jsxs)("div",{className:"@container flex flex-col p-1 bg-fd-card text-fd-card-foreground rounded-2xl border my-6 text-sm overflow-hidden",children:[(0,n.jsxs)("div",{className:"flex font-medium items-center px-3 py-1 not-prose text-fd-muted-foreground",children:[(0,n.jsx)("p",{className:"w-[25%]",children:"Prop"}),(0,n.jsx)("p",{className:"@max-xl:hidden",children:"Type"})]}),Object.entries(t).map(e=>{let[t,r]=e;return(0,n.jsx)(h,{name:t,item:r},t)})]})}function h(e){let{name:t,item:{parameters:r=[],description:l,required:f=!1,deprecated:h,typeDescription:p,default:m,type:x,typeDescriptionLink:g,returns:v}}=e,[y,b]=(0,i.useState)(!1);return(0,n.jsxs)(c.Nt,{open:y,onOpenChange:b,className:(0,s.QP)("roun
1ded-xl border overflow-hidden transition-all",y?"shadow-sm bg-fd-background not-last:mb-2":"border-transparent"),children:[(0,n.jsxs)(c.R6,{className:"relative flex flex-row items-center w-full group text-start px-3 py-2 not-prose hover:bg-fd-accent",children:[(0,n.jsxs)("code",{className:(0,s.QP)(d({deprecated:h,className:"min-w-fit w-[25%] font-medium"})),children:[t,!f&&"?"]}),g?(0,n.jsx)(o.default,{href:g,className:"underline @max-xl:hidden",children:x}):(0,n.jsx)("span",{className:"@max-xl:hidden",children:x}),(0,n.jsx)(a.yQ,{className:"absolute end-2 size-4 text-fd-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]}),(0,n.jsx)(c.Ke,{children:(0,n.jsxs)("div",{className:"grid grid-cols-[1fr_3fr] gap-y-4 text-sm p-3 overflow-auto fd-scroll-container border-t",children:[(0,n.jsx)("div",{className:"text-sm prose col-span-full prose-no-margin empty:hidden",children:l}),p&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:(0,s.QP)(u()),children:"Type"}),(0,n.jsx)("p",{className:"my-auto not-prose",children:p})]}),m&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:(0,s.QP)(u()),children:"Default"}),(0,n.jsx)("p",{className:"my-auto not-prose",children:m})]}),r.length>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:(0,s.QP)(u()),children:"Parameters"}),(0,n.jsx)("div",{className:"flex flex-col gap-2",children:r.map(e=>(0,n.jsxs)("div",{className:"inline-flex items-center flex-wrap gap-1",children:[(0,n.jsxs)("p",{className:"font-medium not-prose text-nowrap",children:[e.name," -"]}),(0,n.jsx)("div",{className:"text-sm prose prose-no-margin",children:e.description})]},e.name))})]}),v&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:(0,s.QP)(u()),children:"Returns"}),(0,n.jsx)("div",{className:"my-auto text-sm prose prose-no-margin",children:v})]})]})})]})}},52429:(e,t,r)=>{r.d(t,{j:()=>d});var n=r(49693),a=r(6857),o=r(55703),l=r(17025),s=r(26059);function i(e,t){if(0===t.length||0===e.clientHeight)return[0,0];let r=Number.MAX_VALUE,n=0;for(let a of t){let t=e.querySelector(`a[href="#${a}"]`);if(!t)continue;let o=getComputedStyle(t);r=Math.min(r,t.offsetTop+parseFloat(o.paddingTop)),n=Math.max(n,t.offsetTop+t.clientHeight-parseFloat(o.paddingBottom))}return[r,n-r]}function c(e,t){e.style.setProperty("--fd-top",`${t[0]}px`),e.style.setProperty("--fd-height",`${t[1]}px`)}function d({containerRef:e,...t}){let r=o.Mf(),d=(0,a.useRef)(null),u=(0,s.J)(()=>{e.current&&d.current&&c(d.current,i(e.current,r))});return(0,a.useEffect)(()=>{if(!e.current)return;let t=e.current;u();let r=new ResizeObserver(u);return r.observe(t),()=>{r.disconnect()}},[e]),(0,l.T)(r,()=>{e.current&&d.current&&c(d.current,i(e.current,r))}),(0,n.jsx)("div",{ref:d,role:"none",...t})}},55703:(e,t,r)=>{r.d(t,{Cz:()=>h,Mf:()=>d,N2:()=>u,NQ:()=>f,R3:()=>c});var n=r(95313);r(39345);var a=r(6857),o=r(94258),l=r(49693),s=(0,a.createContext)([]),i=(0,a.createContext)({current:null});function c(){return(0,a.useContext)(s).at(-1)}function d(){return(0,a.useContext)(s)}
1function u(e){let{containerRef:t,children:r}=e;return(0,l.jsx)(i.Provider,{value:t,children:r})}function f(e){let{toc:t,single:r=!0,children:n}=e,o=(0,a.useMemo)(()=>t.map(e=>e.url.split("#")[1]),[t]);return(0,l.jsx)(s.Provider,{value:function(e,t){let[r,n]=(0,a.useState)([]);return(0,a.useEffect)(()=>{let r=[],a=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&!r.includes(t.target.id)?r=[...r,t.target.id]:!t.isIntersecting&&r.includes(t.target.id)&&(r=r.filter(e=>e!==t.target.id));r.length>0&&n(r)},{rootMargin:t?"-80px 0% -70% 0%":"-20px 0% -40% 0%",threshold:1});function o(){let r=document.scrollingElement;if(!r)return;let a=r.scrollTop;a<=0&&t?n(e.slice(0,1)):a+r.clientHeight>=r.scrollHeight-6&&n(r=>r.length>0&&!t?e.slice(e.indexOf(r[0])):e.slice(-1))}for(let t of e){let e=document.getElementById(t);e&&a.observe(e)}return o(),window.addEventListener("scroll",o),()=>{window.removeEventListener("scroll",o),a.disconnect()}},[t,e]),t?r.slice(0,1):r}(o,r),children:n})}var h=(0,a.forwardRef)((e,t)=>{let{onActiveChange:r,...s}=e,c=(0,a.useContext)(i),u=d(),f=(0,a.useRef)(null),h=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>{t.forEach(t=>{"function"==typeof t?t(e):null!==t&&(t.current=e)})}}(f,t),p=u.includes(s.href.slice(1));return(0,n.T)(p,e=>{let t=f.current;t&&(e&&c.current&&(0,o.A)(t,{behavior:"smooth",block:"center",inline:"center",scrollMode:"always",boundary:c.current}),null==r||r(e))}),(0,l.jsx)("a",{ref:h,"data-active":p,...s,children:s.children})});h.displayName="TOCItem"},57935:(e,t,r)=>{var n=r(32983);r.o(n,"useParams")&&r.d(t,{useParams:function(){return n.useParams}}),r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},60934:(e,t,r)=>{r.d(t,{UC:()=>U,Y9:()=>O,bL:()=>K,l9:()=>W,q7:()=>V});var n=r(6857),a=r(98552),o=r(54635),l=r(42910),s=r(70167),i=r(37677),c=r(23534),d=r(89248),u=r(12457),f=r(91533),h=r(49693),p="Accordion",m=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[x,g,v]=(0,o.N)(p),[y,b]=(0,a.A)(p,[v,d.z3]),w=(0,d.z3)(),j=n.forwardRef((e,t)=>{let{type:r,...n}=e;return(0,h.jsx)(x.Provider,{scope:e.__scopeAccordion,children:"multiple"===r?(0,h.jsx)(R,{...n,ref:t}):(0,h.jsx)(C,{...n,ref:t})})});j.displayName=p;var[k,N]=y(p),[P,M]=y(p,{collapsible:!1}),C=n.forwardRef((e,t)=>{let{value:r,defaultValue:a,onValueChange:o=()=>{},collapsible:l=!1,...s}=e,[c,d]=(0,i.i)({prop:r,defaultProp:null!=a?a:"",onChange:o,caller:p});return(0,h.jsx)(k,{scope:e.__scopeAccordion,value:n.useMemo(()=>c?[c]:[],[c]),onItemOpen:d,onItemClose:n.useCallback(()=>l&&d(""),[l,d]),children:(0,h.jsx)(P,{scope:e.__scopeAccordion,collapsible:l,children:(0,h.jsx)(E,{...s,ref:t})})})}),R=n.forwardRef((e,t)=>{let{value:r,defaultValue:a,onValueChange:o=()=>{},...l}=e,[s,c]=(0,i.i)({prop:r,defaultProp:null!=a?a:[],onChange:o,caller:p}),d=n.useCallback(e=>c(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[c]),u=n.useCallback(e=>c(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[c]);return(0,h.jsx)(k,{scope:e.__scopeAccordion,value:s,onItemOpen:d,onItemClose:u,children:(0,h.jsx)(P,{scope:e.__scopeAccordion,collapsible:!0,children:(0,h.jsx)(E,{...l,ref:t})})})}),[I,T]=y(p),E=n.forwardRef((e,t)=>{let{__scopeAccordion:r,disabled:a,dir:o,orientation:i="vertical",...d}=e,u=n.useRef(null),p=(0,l.s)(u,t),v=g(r),y="ltr"===(0,f.jH)(o),b=(0,s.mK)(e.onKeyDown,e=>{var t;if(!m.includes(e.key))return;let r=e.target,n=v().filter(e=>{var t;return!(null==(t=e.ref.current)?void 0:t.disabled)}),a=n.findIndex(e=>e.ref.current===r),o=n.length;if(-1===a)return;e.preventDefault();let l=a,s=o-1,c=()=>{(l=a+1)>s&&(l=0)},d=()=>{(l=a-1)<0&&(l=s)};switch(e.key){case"Home":l=0;break;case"End":l=s;break;case"ArrowRight":"horizontal"===i&&(y?c():d());break;case"ArrowDown":"vertical"===i&&c();break;case"ArrowLeft":"horizontal"===i&&(y?d():c());break;case"ArrowUp":"vertical"===i&&d()}
1null==(t=n[l%o].ref.current)||t.focus()});return(0,h.jsx)(I,{scope:r,disabled:a,direction:o,orientation:i,children:(0,h.jsx)(x.Slot,{scope:r,children:(0,h.jsx)(c.sG.div,{...d,"data-orientation":i,ref:p,onKeyDown:a?void 0:b})})})}),A="AccordionItem",[S,z]=y(A),Q=n.forwardRef((e,t)=>{let{__scopeAccordion:r,value:n,...a}=e,o=T(A,r),l=N(A,r),s=w(r),i=(0,u.B)(),c=n&&l.value.includes(n)||!1,f=o.disabled||e.disabled;return(0,h.jsx)(S,{scope:r,open:c,disabled:f,triggerId:i,children:(0,h.jsx)(d.bL,{"data-orientation":o.orientation,"data-state":q(c),...s,...a,ref:t,disabled:f,open:c,onOpenChange:e=>{e?l.onItemOpen(n):l.onItemClose(n)}})})});Q.displayName=A;var H="AccordionHeader",L=n.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,a=T(p,r),o=z(H,r);return(0,h.jsx)(c.sG.h3,{"data-orientation":a.orientation,"data-state":q(o.open),"data-disabled":o.disabled?"":void 0,...n,ref:t})});L.displayName=H;var F="AccordionTrigger",_=n.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,a=T(p,r),o=z(F,r),l=M(F,r),s=w(r);return(0,h.jsx)(x.ItemSlot,{scope:r,children:(0,h.jsx)(d.l9,{"aria-disabled":o.open&&!l.collapsible||void 0,"data-orientation":a.orientation,id:o.triggerId,...s,...n,ref:t})})});_.displayName=F;var B="AccordionContent",D=n.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,a=T(p,r),o=z(B,r),l=w(r);return(0,h.jsx)(d.UC,{role:"region","aria-labelledby":o.triggerId,"data-orientation":a.orientation,...l,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function q(e){return e?"open":"closed"}D.displayName=B;var K=j,V=Q,O=L,W=_,U=D},72866:(e,t,r)=>{r.d(t,{Ke:()=>c,Nt:()=>s,R6:()=>i});var n=r(49693),a=r(89248),o=r(6857),l=r(92480);let s=a.bL,i=a.R6,c=(0,o.forwardRef)((e,t)=>{let{children:r,...s}=e,[i,c]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{c(!0)},[]),(0,n.jsx)(a.Ke,{ref:t,...s,className:(0,l.QP)("overflow-hidden",i&&"data-[state=closed]:animate-fd-collapsible-up data-[state=open]:animate-fd-collapsible-down",s.className),children:r})});c.displayName=a.Ke.displayName},74148:(e,t,r)=>{r.d(t,{$3:()=>m,AX:()=>h,B0:()=>v,Bm:()=>j,Bx:()=>c,Gr:()=>f,JG:()=>P,Jl:()=>g,Ml:()=>d,N_:()=>k,Vw:()=>y,X:()=>x,ZH:()=>b,bd:()=>p,c_:()=>N,vd:()=>w,vj:()=>u,yQ:()=>i});var n=r(49693),a=r(6857),o=r(92480);let l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},s=(e,t)=>{let r=(0,a.forwardRef)(({className:e,size:r=24,color:s="currentColor",children:i,...c},d)=>(0,n.jsxs)("svg",{ref:d,...l,width:r,height:r,stroke:s,className:(0,o.QP)("lucide",e),...c,children:[t.map(([e,t])=>(0,a.createElement)(e,t)),i]}));return r.displayName=e,r},i=s("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);s("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);let c=s("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),d=s("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),u=s("search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),f=s("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]),h=s("moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),p=s("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),m=s("airplay",[["path",{d:"M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1",key:"ns4c3b"}],["path",{d:"m12 15 5 6H7Z",key:"14qnn2"}]]);s("menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);let x=s("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
1],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);s("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),s("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),s("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);let g=s("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);s("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),s("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),s("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);let v=s("clipboard",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"1"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"2"}]]);s("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);let y=s("hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);s("text",[["path",{d:"M15 18H3",key:"olowqp"}],["path",{d:"M17 6H3",key:"16j9eg"}],["path",{d:"M21 12H3",key:"2avoz0"}]]);let b=s("file",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]),w=s("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]),j=s("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);s("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);let k=s("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);s("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);let N=s("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),P=s("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);s("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),s("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),s("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},77633:(e,t,r)=>{r.d(t,{P:()=>n});function n(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})}}},83511:(e,t,r)=>{r.d(t,{UC:()=>X,B8:()=>U,bL:()=>W,tU:()=>L,av:()=>K,j7:()=>_,Xi:()=>D,l9:()=>G});var n=r(6857),a=r(70167),o=r(98552),l=r(54635),s=r(42910),i=r(12457),c=r(23534),d=r(88361),u=r(37677),f=r(91533),h=r(49693),p="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},x="RovingFocusGroup",[g,v,y]=(0,l.N)(x),[b,w]=(0,o.A)(x,[y]),[j,k]=b(x),N=n.forwardRef((e,t)=>
1(0,h.jsx)(g.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(g.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(P,{...e,ref:t})})}));N.displayName=x;var P=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:o,loop:l=!1,dir:i,currentTabStopId:g,defaultCurrentTabStopId:y,onCurrentTabStopIdChange:b,onEntryFocus:w,preventScrollOnEntryFocus:k=!1,...N}=e,P=n.useRef(null),M=(0,s.s)(t,P),C=(0,f.jH)(i),[R,T]=(0,u.i)({prop:g,defaultProp:null!=y?y:null,onChange:b,caller:x}),[E,A]=n.useState(!1),S=(0,d.c)(w),z=v(r),Q=n.useRef(!1),[H,L]=n.useState(0);return n.useEffect(()=>{let e=P.current;if(e)return e.addEventListener(p,S),()=>e.removeEventListener(p,S)},[S]),(0,h.jsx)(j,{scope:r,orientation:o,dir:C,loop:l,currentTabStopId:R,onItemFocus:n.useCallback(e=>T(e),[T]),onItemShiftTab:n.useCallback(()=>A(!0),[]),onFocusableItemAdd:n.useCallback(()=>L(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>L(e=>e-1),[]),children:(0,h.jsx)(c.sG.div,{tabIndex:E||0===H?-1:0,"data-orientation":o,...N,ref:M,style:{outline:"none",...e.style},onMouseDown:(0,a.mK)(e.onMouseDown,()=>{Q.current=!0}),onFocus:(0,a.mK)(e.onFocus,e=>{let t=!Q.current;if(e.target===e.currentTarget&&t&&!E){let t=new CustomEvent(p,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=z().filter(e=>e.focusable);I([e.find(e=>e.active),e.find(e=>e.id===R),...e].filter(Boolean).map(e=>e.ref.current),k)}}Q.current=!1}),onBlur:(0,a.mK)(e.onBlur,()=>A(!1))})})}),M="RovingFocusGroupItem",C=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:o=!0,active:l=!1,tabStopId:s,children:d,...u}=e,f=(0,i.B)(),p=s||f,m=k(M,r),x=m.currentTabStopId===p,y=v(r),{onFocusableItemAdd:b,onFocusableItemRemove:w,currentTabStopId:j}=m;return n.useEffect(()=>{if(o)return b(),()=>w()},[o,b,w]),(0,h.jsx)(g.ItemSlot,{scope:r,id:p,focusable:o,active:l,children:(0,h.jsx)(c.sG.span,{tabIndex:x?0:-1,"data-orientation":m.orientation,...u,ref:t,onMouseDown:(0,a.mK)(e.onMouseDown,e=>{o?m.onItemFocus(p):e.preventDefault()}),onFocus:(0,a.mK)(e.onFocus,()=>m.onItemFocus(p)),onKeyDown:(0,a.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let a=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(a))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(a)))return R[a]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=y().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=m.loop?function(e,t){return e.map((r,n)=>e[(t+n)%e.length])}(r,n+1):r.slice(n+1)}setTimeout(()=>I(r))}}),children:"function"==typeof d?d({isCurrentTabStop:x,hasTabStop:null!=j}):d})})});C.displayName=M;var R={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function I(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var T=r(97736),E="Tabs",[A,S]=(0,o.A)(E,[w]),z=w(),[Q,H]=A(E),L=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,onValueChange:a,defaultValue:o,orientation:l="horizontal",dir:s,activationMode:d="automatic",...p}=e,m=(0,f.jH)(s),[x,g]=(0,u.i)({prop:n,onChange:a,defaultProp:null!=o?o:"",caller:E});return(0,h.jsx)(Q,{scope:r,baseId:(0,i.B)(),value:x,onValueChange:g,orientation:l,dir:m,activationMode:d,children:(0,h.jsx)(c.sG.div,{dir:m,"data-orientation":l,...p,ref:t})})});L.displayName=E;var F="TabsList",_=n.forwardRef((e,t)=>{let{__scopeTabs:r,loop:n=!0,...a}=e,o=H(F,r),l=z(r);return(0,h.jsx)(N,{asChild:!0,...l,orientation:o.orientation,dir:o.dir,loop:n,children:(0,h.jsx)(c.sG.div,{role:"tablist","aria-orientation":o.orientation,...a,ref:t})})});_.displayName=F;var B="TabsTrigger",D=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,disabled:o=!1,...l}=e,s=H(B,r),i=z(r),d=V(s.baseId,n),u=O(s.baseId,n),f=n===s.value;return(0,h.jsx)(C,{asChild:!0,...i,focusable:!o,active:f,children:(0,h.jsx)(c.sG.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:d,...l,ref:t,onMouseDown:(0,a.mK)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():s.onValueChange(n)}),onKeyDown:(0,a.mK)(e.onKeyDown,e=>
1{[" ","Enter"].includes(e.key)&&s.onValueChange(n)}),onFocus:(0,a.mK)(e.onFocus,()=>{let e="manual"!==s.activationMode;f||o||!e||s.onValueChange(n)})})})});D.displayName=B;var q="TabsContent",K=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:a,forceMount:o,children:l,...s}=e,i=H(q,r),d=V(i.baseId,a),u=O(i.baseId,a),f=a===i.value,p=n.useRef(f);return n.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,h.jsx)(T.C,{present:o||f,children:r=>{let{present:n}=r;return(0,h.jsx)(c.sG.div,{"data-state":f?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":d,hidden:!n,id:u,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:n&&l})}})});function V(e,t){return"".concat(e,"-trigger-").concat(t)}function O(e,t){return"".concat(e,"-content-").concat(t)}K.displayName=q;var W=L,U=_,G=D,X=K},84378:(e,t,r)=>{r.d(t,{x:()=>a});var n=r(6857);function a(e){let[t,r]=(0,n.useState)(!1),a=(0,n.useRef)(e),o=(0,n.useRef)(null);a.current=e;let l=(0,n.useCallback)(()=>{o.current&&window.clearTimeout(o.current),Promise.resolve(a.current()).then(()=>{r(!0),o.current=window.setTimeout(()=>{r(!1)},1500)})},[]);return(0,n.useEffect)(()=>()=>{o.current&&window.clearTimeout(o.current)},[]),[t,l]}},85846:(e,t,r)=>{r.d(t,{File:()=>u,Files:()=>d,Folder:()=>f});var n=r(49693),a=r(83340),o=r(74148),l=r(6857),s=r(92480),i=r(72866);let c=(0,a.F)("flex flex-row items-center gap-2 rounded-md px-2 py-1.5 text-sm hover:bg-fd-accent hover:text-fd-accent-foreground [&_svg]:size-4");function d(e){let{className:t,...r}=e;return(0,n.jsx)("div",{className:(0,s.QP)("not-prose rounded-md border bg-fd-card p-2",t),...r,children:r.children})}function u(e){let{name:t,icon:r=(0,n.jsx)(o.ZH,{}),className:a,...l}=e;return(0,n.jsxs)("div",{className:(0,s.QP)(c({className:a})),...l,children:[r,t]})}function f(e){let{name:t,defaultOpen:r=!1,...a}=e,[d,u]=(0,l.useState)(r);return(0,n.jsxs)(i.Nt,{open:d,onOpenChange:u,...a,children:[(0,n.jsxs)(i.R6,{className:(0,s.QP)(c({className:"w-full"})),children:[d?(0,n.jsx)(o.Bm,{}):(0,n.jsx)(o.vd,{}),t]}),(0,n.jsx)(i.Ke,{children:(0,n.jsx)("div",{className:"ms-2 flex flex-col border-l ps-2",children:a.children})})]})}},89539:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(53611).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},94037:(e,t,r)=>{r.d(t,{Banner:()=>i});var n=r(49693),a=r(6857),o=r(74148),l=r(92480),s=r(10654);function i(e){let{id:t,variant:r="normal",changeLayout:i=!0,height:c="3rem",rainbowColors:d=["rgba(0,149,255,0.56)","rgba(231,77,255,0.77)","rgba(255,0,0,0.73)","rgba(131,255,166,0.66)"],...u}=e,[f,h]=(0,a.useState)(!0),p=t?"nd-banner-".concat(t):null;return((0,a.useEffect)(()=>{p&&h("true"!==localStorage.getItem(p))},[p]),f)?(0,n.jsxs)("div",{id:t,...u,className:(0,l.QP)("sticky top-0 z-40 flex flex-row items-center justify-center px-4 text-center text-sm font-medium","normal"===r&&"bg-fd-secondary","rainbow"===r&&"bg-fd-background",!f&&"hidden",u.className),style:{height:c},children:[i&&f?(0,n.jsx)("style",{children:p?":root:not(.".concat(p,") { --fd-banner-height: ").concat(c,"; }"):":root { --fd-banner-height: ".concat(c,"; }")}):null,p?(0,n.jsx)("style",{children:".".concat(p," #").concat(t," { display: none; }")}):null,p?(0,n.jsx)("script",{dangerouslySetInnerHTML:{__html:"if (localStorage.getItem('".concat(p,"') === 'true') document.documentElement.classList.add('").concat(p,"');")}}):null,"rainbow"===r?function(e){let{colors:t}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"absolute inset-0 z-[-1]",style:{maskImage:"linear-gradient(to bottom,white,transparent), radial-gradient(circle at top center, white, transparent)",maskComposite:"intersect",animation:"fd-moving-banner 20s linear infinite",backgroundImage:"repeating-linear-gradient(70deg, ".concat([...t,t[0]].map((e,r)=>"".concat(e," ").concat(50*r/t.length,"%")).join(", "),")"),backgroundSize:"200% 100%",filter:"saturate(2)"}}),(0,n.jsx)("style",{children:"@keyframes fd-moving-banner {\n from { background-position: 0% 0; }\n to { background-position: 100% 0; }\n }"})]})}({colors:d}):null,u.children,t?(0,n.jsx)("button",{type:"button","aria-label":"Close Banner",onClick:()=>{h(!1),p&&localStorage.setItem(p,"true")},className:(0,l.QP)((0,s.r)({color:"ghost",className:"absolute end-2 top-1/2 -translate-y-1/2 text-fd-muted-foreground
1/50",size:"icon-sm"})),children:(0,n.jsx)(o.X,{})}):null]}):null}},94258:(e,t,r)=>{r.d(t,{A:()=>c});let n=e=>"object"==typeof e&&null!=e&&1===e.nodeType,a=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,o=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let r=getComputedStyle(e,null);return a(r.overflowY,t)||a(r.overflowX,t)||(e=>{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},l=(e,t,r,n,a,o,l,s)=>o<e&&l>t||o>e&&l<t?0:o<=e&&s<=r||l>=t&&s>=r?o-e-n:l>t&&s<r||o<e&&s>r?l-t+a:0,s=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},i=(e,t)=>{var r,a,i,c;if("undefined"==typeof document)return[];let{scrollMode:d,block:u,inline:f,boundary:h,skipOverflowHiddenElements:p}=t,m="function"==typeof h?h:e=>e!==h;if(!n(e))throw TypeError("Invalid target");let x=document.scrollingElement||document.documentElement,g=[],v=e;for(;n(v)&&m(v);){if((v=s(v))===x){g.push(v);break}null!=v&&v===document.body&&o(v)&&!o(document.documentElement)||null!=v&&o(v,p)&&g.push(v)}let y=null!=(a=null==(r=window.visualViewport)?void 0:r.width)?a:innerWidth,b=null!=(c=null==(i=window.visualViewport)?void 0:i.height)?c:innerHeight,{scrollX:w,scrollY:j}=window,{height:k,width:N,top:P,right:M,bottom:C,left:R}=e.getBoundingClientRect(),{top:I,right:T,bottom:E,left:A}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),S="start"===u||"nearest"===u?P-I:"end"===u?C+E:P+k/2-I+E,z="center"===f?R+N/2-A+T:"end"===f?M+T:R-A,Q=[];for(let e=0;e<g.length;e++){let t=g[e],{height:r,width:n,top:a,right:s,bottom:i,left:c}=t.getBoundingClientRect();if("if-needed"===d&&P>=0&&R>=0&&C<=b&&M<=y&&(t===x&&!o(t)||P>=a&&C<=i&&R>=c&&M<=s))break;let h=getComputedStyle(t),p=parseInt(h.borderLeftWidth,10),m=parseInt(h.borderTopWidth,10),v=parseInt(h.borderRightWidth,10),I=parseInt(h.borderBottomWidth,10),T=0,E=0,A="offsetWidth"in t?t.offsetWidth-t.clientWidth-p-v:0,H="offsetHeight"in t?t.offsetHeight-t.clientHeight-m-I:0,L="offsetWidth"in t?0===t.offsetWidth?0:n/t.offsetWidth:0,F="offsetHeight"in t?0===t.offsetHeight?0:r/t.offsetHeight:0;if(x===t)T="start"===u?S:"end"===u?S-b:"nearest"===u?l(j,j+b,b,m,I,j+S,j+S+k,k):S-b/2,E="start"===f?z:"center"===f?z-y/2:"end"===f?z-y:l(w,w+y,y,p,v,w+z,w+z+N,N),T=Math.max(0,T+j),E=Math.max(0,E+w);else{T="start"===u?S-a-m:"end"===u?S-i+I+H:"nearest"===u?l(a,i,r,m,I+H,S,S+k,k):S-(a+r/2)+H/2,E="start"===f?z-c-p:"center"===f?z-(c+n/2)+A/2:"end"===f?z-s+v+A:l(c,s,n,p,v+A,z,z+N,N);let{scrollLeft:e,scrollTop:o}=t;T=0===F?0:Math.max(0,Math.min(o+T/F,t.scrollHeight-r/F+H)),E=0===L?0:Math.max(0,Math.min(e+E/L,t.scrollWidth-n/L+A)),S+=o-T,z+=e-E}Q.push({el:t,top:T,left:E})}return Q};function c(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let r=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(i(e,t));let n="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:a,top:o,left:l}of i(e,!1===t?{block:"end",inline:"nearest"}:t===Object(t)&&0!==Object.keys(t).length?t:{block:"start",inline:"nearest"})){let e=o-r.top+r.bottom,t=l-r.left+r.right;a.scroll({top:e,left:t,behavior:n})}}}}]);
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.