PageSourceSearch

https://miraframe.ai/_next/static/chunks/1p0ae3ck-mof5.js?dpl=dpl_5zJW6bFzEb7qpjhj9tFKcvALUYR3

js miraframe.ai collected 2026-10-05 12:50:38 UTC 30,612 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,711474,e=>{"use strict";var t=e.i(404428);e.s(["useCopyButton",0,function(e){let[r,n]=(0,t.useState)(!1),i=(0,t.useRef)(e),s=(0,t.useRef)(null);i.current=e;let o=(0,t.useCallback)(()=>{s.current&&window.clearTimeout(s.current),Promise.resolve(i.current()).then(()=>{n(!0),s.current=window.setTimeout(()=>{n(!1)},1500)})},[]);return(0,t.useEffect)(()=>()=>{s.current&&window.clearTimeout(s.current)},[]),[r,o]}])},373678,e=>{"use strict";e.i(426019);var t=e.i(178575),r=e.i(828303),n=e.i(711474),i=e.i(937208),s=e.i(417427);let o=(0,s.default)("copy-check",[["path",{d:"m12 15 2 2 4-4",key:"2c609p"}],["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"}]]),l=(0,s.default)("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"}]]);var a=e.i(573049);e.s(["Heading",0,function({as:e,...s}){let c=e??"h1",u=(0,a.useTranslations)({note:"heading anchor"}),[f,d]=(0,n.useCopyButton)(()=>{if(!s.id)return;let e=new URL(window.location.href);return e.hash=s.id,navigator.clipboard.writeText(e.href)});return s.id?(0,i.jsxs)(c,{...s,className:(0,t.cn)("group/heading flex scroll-m-28 flex-row items-center gap-1",s.className),children:[(0,i.jsx)("a",{"data-card":"",href:`#${s.id}`,children:s.children}),(0,i.jsx)("button",{"aria-label":u("Copy Anchor Link",{note:"aria-label"}),className:(0,t.cn)((0,r.buttonVariants)({variant:"ghost",size:"icon-xs"}),"not-prose shrink-0 text-fd-muted-foreground opacity-0 transition-opacity group-hover/heading:opacity-100"),onClick:d,children:f?(0,i.jsx)(o,{}):(0,i.jsx)(l,{})})]}):(0,i.jsx)(c,{...s})}],373678)},520592,e=>{"use strict";e.i(426019);var t=e.i(178575),r=e.i(828303),n=e.i(711474),i=e.i(306221),s=e.i(937208),o=e.i(404428),l=e.i(543836),a=e.i(914408),c=e.i(958869),u=e.i(939929),f=Object.defineProperty,d=(e,t)=>f(e,"name",{value:t,configurable:!0});function h(e){let t=e+"CollectionProvider",[r,n]=(0,a.createContextScope)(t),[i,l]=r(t,{collectionRef:{current:null},itemMap:new Map}),f=d(e=>{let{scope:t,children:r}=e,n=o.useRef(null),l=o.useRef(new Map).current;return(0,s.jsx)(i,{scope:t,itemMap:l,collectionRef:n,children:r})},"CollectionProvider");f.displayName=t;let h=e+"CollectionSlot",m=(0,u.createSlot)(h),p=o.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=l(h,r),o=(0,c.useComposedRefs)(t,i.collectionRef);return(0,s.jsx)(m,{ref:o,children:n})});p.displayName=h;let v=e+"CollectionItemSlot",x="data-radix-collection-item",g=(0,u.createSlot)(v),y=o.forwardRef((e,t)=>{let{scope:r,children:n,...i}=e,a=o.useRef(null),u=(0,c.useComposedRefs)(t,a),f=l(v,r);return o.useEffect(()=>(f.itemMap.set(a,{ref:a,...i}),()=>void f.itemMap.delete(a))),(0,s.jsx)(g,{...{[x]:""},ref:u,children:n})});function b(t){let r=l(e+"CollectionConsumer",t);return o.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${x}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])}return y.displayName=v,d(b,"useCollection"),[{Provider:f,Slot:p,ItemSlot:y},b,n]}d(h,"createCollection");var m=new WeakMap,p=class e extends Map{static{d(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],m.set(this,!0)}set(e,t){return m.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,i=this.has(t),s=this.#e.length,o=g(e),l=o>=0?o:s+o,a=l<0||l>=s?-1:l;if(a===this.size||i&&a===this.size-1||-1===a)return this.set(t,r),this;let c=this.size+ +!i;o<0&&l++;let u=[...this.#e],f=!1;for(let e=l;e<c;e++)if(l===e){let s=u[e];u[e]===t&&(s=u[e+1]),i&&this.delete(t),n=this.get(s),this.set(t,r)}else{f||u[e-1]!==t||(f=!0);let r=u[f?e:e-1],i=n;n=this.get(r),this.delete(r),this.set(r,i)}return this}with(t,r,n){let i=new e(this);return i.insert(t,r,n),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=v(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=v(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return v(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],i=0;for(let e of this)Reflect.apply(t,r,[e,i,this])&&n.push(e),i++;return new e(n)}map(t,r){let n=[],i=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,i,this])]),i++;return new e(n)}reduce(...e){let[t,r]=e,n=0,i=r??this.at(0);for(let r of this)i=0===n&&1===e.length?r:Reflect.apply(t,this,[i,r,n,this]),n++;return i}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let i=this.at(r);
1n=r===this.size-1&&1===e.length?i:Reflect.apply(t,this,[n,i,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,i=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(i=r-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}};function v(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=x(e,t);return -1===r?void 0:e[r]}function x(e,t){let r=e.length,n=g(t),i=n>=0?n:r+n;return i<0||i>=r?-1:i}function g(e){return e!=e||0===e?0:Math.trunc(e)}function y(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n of r)if(!Object.prototype.hasOwnProperty.call(t,n)||e[n]!==t[n])return!1;return!0}function b(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function w(e,t){return e[1].element&&t[1].element?b(e[1].element,t[1].element)?-1:1:0}function C(e){return new MutationObserver(t=>{for(let r of t)if("childList"===r.type)return void e()})}d(v,"at"),d(x,"toSafeIndex"),d(g,"toSafeInteger"),d(function(e){let t=e+"CollectionProvider",[r,n]=(0,a.createContextScope)(t),[i,l]=r(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new p,setItemMap:d(()=>void 0,"setItemMap")}),f=d(({state:e,...t})=>e?(0,s.jsx)(m,{...t,state:e}):(0,s.jsx)(h,{...t}),"CollectionProvider");f.displayName=t;let h=d(e=>{let t=R();return(0,s.jsx)(m,{...e,state:t})},"CollectionInit");h.displayName=t+"Init";let m=d(e=>{let{scope:t,children:r,state:n}=e,l=o.useRef(null),[a,u]=o.useState(null),f=(0,c.useComposedRefs)(l,u),[d,h]=n;return o.useEffect(()=>{if(!a)return;let e=C(()=>{});return e.observe(a,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[a]),(0,s.jsx)(i,{scope:t,itemMap:d,setItemMap:h,collectionRef:f,collectionRefObject:l,collectionElement:a,children:r})},"CollectionProviderImpl");m.displayName=t+"Impl";let v=e+"CollectionSlot",x=(0,u.createSlot)(v),g=o.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=l(v,r),o=(0,c.useComposedRefs)(t,i.collectionRef);return(0,s.jsx)(x,{ref:o,children:n})});g.displayName=v;let b=e+"CollectionItemSlot",k=(0,u.createSlot)(b),j=o.forwardRef((e,t)=>{let{scope:r,children:n,...i}=e,a=o.useRef(null),[u,f]=o.useState(null),d=(0,c.useComposedRefs)(t,a,f),{setItemMap:h}=l(b,r),m=o.useRef(i);y(m.current,i)||(m.current=i);let v=m.current;return o.useEffect(()=>(h(e=>u?e.has(u)?e.set(u,{...v,element:u}).toSorted(w):(e.set(u,{...v,element:u}),e.toSorted(w)):e),()=>{h(e=>u&&e.has(u)?(e.delete(u),new p(e)):e)}),[u,v,h]),(0,s.jsx)(k,{"data-radix-collection-item":"",ref:d,children:n})});function R(){return o.useState(new p)}function I(t){let{itemMap:r}=l(e+"CollectionConsumer",t);return r}return j.displayName=b,d(R,"useInitCollection"),d(I,"useCollection"),[{Provider:f,Slot:g,ItemSlot:j},{createCollectionScope:n,useCollection:I,useInitCollection:R}]},"createCollection"),d(y,"shallowEqual"),d(b,"isElementPreceding"),d(w,"sortByDocumentPosition"),d(C,"getChildListObserver");var k=e.i(226031),j=e.i(385091),R=e.i(660089),I=e.i(307545),S=e.i(399029),E=e.i(649280),T=Object.defineProperty,N=(e,t)=>T(e,"name",{value:t,configurable:!0}),A=!1;function M(){let[e,t]=o.useState(A);return o.useEffect(()=>{A||(A=!0,t(!0))},[]),e}N(M,"useIsHydrated");var O=o[" useSyncExternalStore ".trim().toString()];function P(){return()=>{}}function $(){return O(P,()=>!0,()=>!1)}N(P,"subscribe"),N($,"useIsHydratedModern");var L="function"==typeof O?$:M,B=Object.defineProperty,F=(e,t)=>B(e,"name",{value:t,configurable:!0}),D="rovingFocusGroup.onEntryFocus",z={bubbles:!1,cancelable:!0},_="RovingFocusGroup",[H,K,V]=h(_),[q,G]=(0,a.createContextScope)(_,[V]),[U,W]=q(_),X=o.forwardRef(F(function(e,t){return(0,s.jsx)(H.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,s.jsx)(H.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,s.jsx)(Y,{...e,ref:t})})})},"RovingFocusGroup")),Y=o.forwardRef(F(function(e,t){let{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:a,currentTabStopId:u,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:d,onEntryFocus:h,preventScrollOnEntryFocus:m=!1,...p}=e,v=o.useRef(null),x=(0,c.useComposedRefs)(t,v),g=(0,S.useDirection)(a),[y,b]=(0,I.useControllableState)({prop:u,defaultProp:f??null,onChange:d,caller:_}),[w,C]=o.useState(!1),k=(0,R.useCallbackRef)(h),E=K(r),T=o.useRef(!1),[N,A]=o.useState(0);return o.useEffect(()=>{let e=v.current;
1if(e)return e.addEventListener(D,k),()=>e.removeEventListener(D,k)},[k]),(0,s.jsx)(U,{scope:r,orientation:n,dir:g,loop:i,currentTabStopId:y,onItemFocus:o.useCallback(e=>b(e),[b]),onItemShiftTab:o.useCallback(()=>C(!0),[]),onFocusableItemAdd:o.useCallback(()=>A(e=>e+1),[]),onFocusableItemRemove:o.useCallback(()=>A(e=>e-1),[]),children:(0,s.jsx)(j.Primitive.div,{tabIndex:w||0===N?-1:0,"data-orientation":n,...p,ref:x,style:{outline:"none",...e.style},onMouseDown:(0,l.composeEventHandlers)(e.onMouseDown,()=>{T.current=!0}),onFocus:(0,l.composeEventHandlers)(e.onFocus,e=>{let t=!T.current;if(e.target===e.currentTarget&&t&&!w){let t=new CustomEvent(D,z);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=E().filter(e=>e.focusable);et([e.find(e=>e.active),e.find(e=>e.id===y),...e].filter(Boolean).map(e=>e.ref.current),m)}}T.current=!1}),onBlur:(0,l.composeEventHandlers)(e.onBlur,()=>C(!1))})})},"RovingFocusGroupImpl")),J=o.forwardRef(F(function(e,t){let{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:a,children:c,...u}=e,f=(0,k.useId)(),d=a||f,h=W("RovingFocusGroupItem",r),m=h.currentTabStopId===d,p=K(r),{onFocusableItemAdd:v,onFocusableItemRemove:x,currentTabStopId:g}=h,y=L();return(0,E.useLayoutEffect)(()=>{if(y&&n)return v(),()=>x()},[y,n,v,x]),o.useEffect(()=>{if(!y&&n)return v(),()=>x()},[y,n,v,x]),(0,s.jsx)(H.ItemSlot,{scope:r,id:d,focusable:n,active:i,children:(0,s.jsx)(j.Primitive.span,{tabIndex:m?0:-1,"data-orientation":h.orientation,...u,ref:t,onMouseDown:(0,l.composeEventHandlers)(e.onMouseDown,e=>{n?h.onItemFocus(d):e.preventDefault()}),onFocus:(0,l.composeEventHandlers)(e.onFocus,()=>h.onItemFocus(d)),onKeyDown:(0,l.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void h.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=ee(e,h.orientation,h.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=p().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=h.loop?er(r,n+1):r.slice(n+1)}setTimeout(()=>et(r))}}),children:"function"==typeof c?c({isCurrentTabStop:m,hasTabStop:null!=g}):c}
1)})},"RovingFocusGroupItem")),Q={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Z(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function ee(e,t,r){let n=Z(e.key,r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(n))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)))return Q[n]}function et(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function er(e,t){return e.map((r,n)=>e[(t+n)%e.length])}F(Z,"getDirectionAwareKey"),F(ee,"getFocusIntent"),F(et,"focusFirst"),F(er,"wrapArray");var en=e.i(948612),ei=Object.defineProperty,es=(e,t)=>ei(e,"name",{value:t,configurable:!0}),eo="Tabs",[el,ea]=(0,a.createContextScope)(eo,[G]),ec=G(),[eu,ef]=el(eo),ed=o.forwardRef(es(function(e,t){let{__scopeTabs:r,value:n,onValueChange:i,defaultValue:o,orientation:l="horizontal",dir:a,activationMode:c="automatic",...u}=e,f=(0,S.useDirection)(a),[d,h]=(0,I.useControllableState)({prop:n,onChange:i,defaultProp:o??"",caller:eo});return(0,s.jsx)(eu,{scope:r,baseId:(0,k.useId)(),value:d,onValueChange:h,orientation:l,dir:f,activationMode:c,children:(0,s.jsx)(j.Primitive.div,{dir:f,"data-orientation":l,...u,ref:t})})},"Tabs")),eh=o.forwardRef(es(function(e,t){let{__scopeTabs:r,loop:n=!0,...i}=e,o=ef("TabsList",r),l=ec(r);return(0,s.jsx)(X,{asChild:!0,...l,orientation:o.orientation,dir:o.dir,loop:n,children:(0,s.jsx)(j.Primitive.div,{role:"tablist","aria-orientation":o.orientation,...i,ref:t})})},"TabsList")),em=o.forwardRef(es(function(e,t){let{__scopeTabs:r,value:n,disabled:i=!1,...o}=e,a=ef("TabsTrigger",r),c=ec(r),u=ev(a.baseId,n),f=ex(a.baseId,n),d=n===a.value;return(0,s.jsx)(J,{asChild:!0,...c,focusable:!i,active:d,children:(0,s.jsx)(j.Primitive.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":f,"data-state":d?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:u,...o,ref:t,onMouseDown:(0,l.composeEventHandlers)(e.onMouseDown,e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(n)}),onKeyDown:(0,l.composeEventHandlers)(e.onKeyDown,e=>{!i&&e.target===e.currentTarget&&[" ","Enter"].includes(e.key)&&a.onValueChange(n)}),onFocus:(0,l.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==a.activationMode;d||i||!e||a.onValueChange(n)})})})},"TabsTrigger")),ep=o.forwardRef(es(function(e,t){let{__scopeTabs:r,value:n,forceMount:i,children:l,...a}=e,c=ef("TabsContent",r),u=ev(c.baseId,n),f=ex(c.baseId,n),d=n===c.value,h=o.useRef(d);return o.useEffect(()=>{let e=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,s.jsx)(en.Presence,{present:i||d,children:({present:r})=>(0,s.jsx)(j.Primitive.div,{"data-state":d?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":u,hidden:!r,id:f,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:h.current?"0s":void 0},children:r&&l})})},"TabsContent"));function ev(e,t){return`${e}-trigger-${t}`}function ex(e,t){return`${e}-content-${t}`}es(ev,"makeTriggerId"),es(ex,"makeContentId");let eg=new Map,ey=(0,o.createContext)(null);function eb({ref:e,groupId:t,persist:r=!1,updateAnchor:n=!1,defaultValue:l,value:a,onValueChange:c,...u}){let f=(0,o.useRef)(null),d=(0,o.useMemo)(()=>new Map,[]),h=(0,o.useMemo)(()=>new Map,[]),[m,p]=void 0===a?(0,o.useState)(l):[a,(0,o.useEffectEvent)(e=>c?.(e))];return(0,o.useLayoutEffect)(()=>{if(!t)return;let e=sessionStorage.getItem(t);r&&(e??=localStorage.getItem(t)),e&&p(e);let n=eg.get(t)??new Set;return n.add(p),eg.set(t,n),()=>{n.delete(p)}},[t,r,p]),(0,o.useLayoutEffect)(()=>{let e=()=>{let e=window.location.hash.slice(1);if(!e)return;for(let[t,r]of d.entries())if(r===e){p(t),f.current?.scrollIntoView();return}let t=document.getElementById(e);if(t){for(let[e,r]of h.entries())if(r.contains(t)){p(e),requestAnimationFrame(()=>t.scrollIntoView());return}}};return e(),window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)},[p,d,h]),(0,s.jsx)(ed,{ref:(0,i.mergeRefs)(e,f),value:m,onValueChange:e=>{if(n){let t=d.get(e);t&&window.history.replaceState(null,"",`#${t}`)}if(t){let n=eg.get(t);if(n)for(let t of n)t(e);sessionStorage.setItem(t,e),r&&localStorage.setItem(t,e)}else p(e)},...u,children:(0,s.jsx)(ey,{value:(0,o.useMemo)(()=>({valueToIdMap:d,panels:h}),[d,h]),children:u.children})})}function ew({value:e,ref:t,...r}){let{valueToIdMap:n,panels:l}=function(){let e=(0,o.use)(ey);if(!e)throw Error("You must wrap your component in <Tabs>");return e}();return r.id&&n.set(e,r.id),(0,s.jsx)(ep,{ref:(0,i.mergeRefs)(t,t=>{t?l.set(e,t):l.delete(e)}),value:e,...r,children:r.children})}var eC=e.i(27518);
1let ek=(0,e.i(417427).default)("clipboard",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["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:"116196"}]]);var ej=e.i(573049);let eR=(0,o.createContext)(null);function eI({className:e,containerRef:i,...o}){let l=(0,ej.useTranslations)({note:"code block"}),[a,c]=(0,n.useCopyButton)(()=>{let e=i.current?.getElementsByTagName("pre").item(0);if(!e)return;let t=e.cloneNode(!0);t.querySelectorAll(".nd-copy-ignore").forEach(e=>{e.replaceWith("\n")}),navigator.clipboard.writeText(t.textContent??"")});return(0,s.jsx)("button",{type:"button","data-checked":a||void 0,className:(0,t.cn)((0,r.buttonVariants)({className:"hover:text-fd-accent-foreground data-checked:text-fd-accent-foreground",size:"icon-xs"}),e),"aria-label":l(a?"Copied Text":"Copy Text",{note:"aria-label"}),onClick:c,...o,children:a?(0,s.jsx)(eC.Check,{}):(0,s.jsx)(ek,{})})}e.s(["CodeBlock",0,function({ref:e,title:r,allowCopy:n=!0,keepBackground:i=!1,icon:l,viewportProps:a={},children:c,Actions:u=e=>(0,s.jsx)("div",{...e,className:(0,t.cn)("empty:hidden",e.className)}),...f}){let d=null!==(0,o.use)(eR),h=(0,o.useRef)(null);return"true"===n?n=!0:"false"===n&&(n=!1),(0,s.jsxs)("figure",{ref:e,dir:"ltr",...f,tabIndex:-1,className:(0,t.cn)(d?"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 not-prose overflow-hidden text-sm",f.className),children:[r?(0,s.jsxs)("div",{className:"flex text-fd-muted-foreground items-center gap-2 h-9.5 border-b px-4",children:["string"==typeof l?(0,s.jsx)("div",{className:"[&_svg]:size-3.5",dangerouslySetInnerHTML:{__html:l}}):l,(0,s.jsx)("figcaption",{className:"flex-1 truncate",children:r}),u({className:"-me-2",children:n&&(0,s.jsx)(eI,{containerRef:h})})]}):u({className:"absolute top-3 right-2 z-2 backdrop-blur-lg rounded-lg text-fd-muted-foreground",children:n&&(0,s.jsx)(eI,{containerRef:h})}),(0,s.jsx)("div",{ref:h,...a,role:"region",tabIndex:0,className:(0,t.cn)("text-[0.8125rem] py-3.5 overflow-auto max-h-[600px] fd-scroll-container focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-fd-ring",a.className),style:{"--padding-right":r?void 0:"calc(var(--spacing) * 8)",counterSet:f["data-line-numbers"]?`line ${Number(f["data-line-numbers-start"]??1)-1}`:void 0,...a.style},children:c})]})},"CodeBlockTab",0,function(e){return(0,s.jsx)(ew,{...e})},"CodeBlockTabs",0,function({ref:e,...r}){let n=(0,o.useRef)(null),l=null!==(0,o.use)(eR);return(0,s.jsx)(eb,{ref:(0,i.mergeRefs)(n,e),...r,className:(0,t.cn)("bg-fd-card rounded-xl border",!l&&"my-4",r.className),children:(0,s.jsx)(eR,{value:(0,o.useMemo)(()=>({containerRef:n,nested:l}),[l]),children:r.children})})},"CodeBlockTabsList",0,function(e){return(0,s.jsx)(eh,{...e,className:(0,t.cn)("flex flex-row px-2 overflow-x-auto text-fd-muted-foreground",e.className),children:e.children})},"CodeBlockTabsTrigger",0,function({children:e,...r}){return(0,s.jsxs)(em,{...r,className:(0,t.cn)("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,s.jsx)("div",{className:"absolute inset-x-2 bottom-0 h-px group-data-[state=active]:bg-fd-primary"}),e]})},"Pre",0,function(e){return(0,s.jsx)("pre",{...e,className:(0,t.cn)("min-w-full w-max *:flex *:flex-col",e.className),children:e.children})}],520592)},254832,294835,42492,e=>{"use strict";var t=e.i(191272);e.i(426019);var r=e.i(178575),n=e.i(306221),i=e.i(937208),s=e.i(404428),o=e.i(167875),l=e.i(187484);let a=(0,s.createContext)(null),c=(0,s.createContext)(null);function u({ref:e,onActiveChange:t=()=>null,autoScroll:r=!0,...n}){let o=n.href?p(n.href):null,a=(0,s.use)(c),d=(0,s.useRef)(null),h=(0,s.useRef)(!0),m=f(),[v,x]=(0,s.use
1State)(()=>m.items.some(e=>e.id===o&&e.active)),g=(0,s.useEffectEvent)((e,n)=>{let i,s=o?e.find(e=>e.id===o):null;if(!s)return;s.active!==v&&(x(s.active),t(s.active));let c=d.current,u=a?.current;if(r&&c&&u){for(let t of e)t.active&&(!i||i.t<t.t)&&(i=t);i?.id===o&&(0,l.default)(c,{behavior:n?"instant":"smooth",block:"center",inline:"center",scrollMode:"always",boundary:u})}});return(0,s.useEffect)(()=>{r&&g(m.items,h.current),h.current=!1},[m,r]),(0,s.useEffect)(()=>{let e=e=>g(e,!1);return m.listen(e),()=>m.unlisten(e)},[m]),(0,i.jsx)("a",{ref:function(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}(d,e),"data-active":v,...n})}function f(){let e=(0,s.use)(a);if(!e)throw Error("Component must be used under the <AnchorProvider /> component.");return e}function d(){let e=f();return(0,s.useMemo)(()=>({get:()=>e.items,listen:e.listen.bind(e),unlisten:e.unlisten.bind(e)}),[e])}function h(e){let t=f(),r=(0,s.useEffectEvent)(e);(0,s.useEffect)(()=>(t.listen(r),()=>t.unlisten(r)),[t])}function m(e,t=o.t){let r=f(),[n,i]=(0,s.useState)(()=>e(r.items));return h(r=>{let s=e(r);t(n,s)||i(s)}),n}function p(e){return e.startsWith("#")?e.slice(1):null}var v=class{constructor(){this.items=[],this.single=!1,this.observer=null,this.listeners=new Set}listen(e){this.listeners.add(e)}unlisten(e){this.listeners.delete(e)}setItems(e){let t=this.observer;if(t)for(let e of this.items){let r=document.getElementById(e.id);r&&t.unobserve(r)}let r=[];for(let t of e){let e=p(t.url);e&&r.push({id:e,active:!1,fallback:!1,t:0,original:t})}this.update(r),this.observeItems()}watch(e){this.observer||(this.observer=new IntersectionObserver(this.callback.bind(this),e),this.observeItems())}unwatch(){this.observer?.disconnect(),this.observer=null}callback(e){if(0===e.length)return;let t=!1,r=this.items.map(r=>{let n=e.find(e=>e.target.id===r.id),i=n?n.isIntersecting:r.active&&!r.fallback;return this.single&&t&&(i=!1),r.active!==i&&(r={...r,t:Date.now(),active:i,fallback:!1}),i&&(t=!0),r});if(!t&&e[0].rootBounds){let t=e[0].rootBounds.top,n=Number.MAX_VALUE,i=-1;for(let e=0;e<r.length;e++){let s=document.getElementById(r[e].id);if(!s)continue;let o=Math.abs(t-s.getBoundingClientRect().top);o<n&&(i=e,n=o)}-1!==i&&(r[i]={...r[i],active:!0,fallback:!0,t:Date.now()})}this.update(r)}observeItems(){if(this.observer)for(let e of this.items){let t=document.getElementById(e.id);t&&this.observer.observe(t)}}update(e){for(let t of(this.items=e,this.listeners))t(e)}};e.s(["AnchorProvider",0,function({toc:e,single:t=!1,children:r}){let n=(0,s.useMemo)(()=>new v,[]);return n.single=t,(0,s.useEffect)(()=>{n.setItems(e)},[n,e]),(0,s.useEffect)(()=>(n.watch({threshold:.9}),()=>n.unwatch()),[n]),(0,i.jsx)(a,{value:n,children:r})},"ScrollProvider",0,function({containerRef:e,children:t}){return(0,i.jsx)(c,{value:e,children:t})},"TOCItem",0,u,"useActiveAnchor",0,function(){return m(e=>{let t;for(let r of e)r.active&&(!t||r.t>t.t)&&(t=r);return t?.id})},"useActiveAnchors",0,function(){return m(e=>{let t=[];for(let r of e)r.active&&t.push(r.id);return t})},"useItems",0,function(){return m(e=>e)},"useTOC",0,d,"useTOCListener",0,h,"useTOCSelector",0,m],294835);var x=e.i(294835);let g=(0,s.createContext)([]);function y(){return(0,s.use)(g)}let{useActiveAnchor:b,useActiveAnchors:w,useItems:C}=x;e.s(["TOCProvider",0,function({toc:e,children:t,...r}){return(0,i.jsx)(g,{value:e,children:(0,i.jsx)(x.AnchorProvider,{toc:e,...r,children:t})})},"TOCScrollArea",0,function({ref:e,className:t,...o}){let l=(0,s.useRef)(null);return(0,i.jsx)("div",{ref:(0,n.mergeRefs)(l,e),className:(0,r.cn)("relative min-h-0 text-sm ms-px overflow-auto [scrollbar-width:none] mask-[linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent)] py-3",t),...o,children:(0,i.jsx)(x.ScrollProvider,{containerRef:l,children:o.children})})},"useItems",0,C,"useTOCItems",0,y],254832);var k=e.i(573049),j=(0,t.__exportAll)({TOCEmpty:()=>I,TOCItem:()=>T,TOCItems:()=>R});function R({ref:e,className:t,thumbBox:o=!0,children:l,...a}
1){let c=(0,s.useRef)(null),u=y(),[f,d]=(0,s.useState)(null),h=(0,s.useCallback)(()=>{let e=c.current;if(!e||0===e.clientHeight)return;if(0===u.length)return void d(null);let t=0,r=0,n="",s=[],l=[];for(let o=0;o<u.length;o++){let a=u[o],c=e.querySelector(`a[href="${a.url}"]`);if(!c)continue;let f=getComputedStyle(c),d=E(a.depth)+.5,h=c.offsetTop+parseFloat(f.paddingTop),m=c.offsetTop+c.clientHeight-parseFloat(f.paddingBottom);if(t=Math.max(d+8,t),r=Math.max(r,m),0===o)n+=` M${d} ${h} L${d} ${m}`;else{let[,e,t]=o>0?s[o-1]:[0,0,0];n+=` C ${t} ${h-4} ${d} ${e+4} ${d} ${h} L${d} ${m}`}void 0!==a._step&&l.push((0,i.jsxs)("g",{transform:`translate(${d}, ${(h+m)/2})`,children:[(0,i.jsx)("circle",{cx:"0",cy:"0",r:"8",className:"fill-fd-primary"}),(0,i.jsx)("text",{cx:"0",cy:"0",textAnchor:"middle",alignmentBaseline:"central",dominantBaseline:"middle",className:"fill-fd-primary-foreground font-medium text-xs leading-none font-mono rtl:-scale-x-100",children:a._step})]},o)),s.push([h,m,d])}l.unshift((0,i.jsx)("path",{d:n,className:"stroke-fd-primary",strokeWidth:"1",fill:"none"},"path"));let a=[];if(o){let e=document.createElementNS("http://www.w3.org/2000/svg","path");e.setAttribute("d",n);let t=e.getTotalLength();for(let r=0;r<s.length;r++){let[n,i]=s[r],o=r>0?a[r-1][1]+(n-s[r-1][1]):n;for(;o<t&&e.getPointAtLength(o).y<n;)o++;a.push([o,o+i-n])}}d({content:l,width:t,height:r,d:n,itemLineLengths:a,positions:s})},[u,o]);return(0,s.useEffect)(()=>{let e=c.current;if(!e)return;let t=new ResizeObserver(h);return t.observe(e),h(),()=>{t.unobserve(e)}},[h]),(0,i.jsxs)("div",{ref:(0,n.mergeRefs)(c,e),className:(0,r.cn)("relative flex flex-col",t),...a,children:[f&&(0,i.jsx)(S,{computed:f,thumbBox:o}),l]})}function I(){return(0,i.jsx)("div",{className:"rounded-lg border bg-fd-card p-3 text-xs text-fd-muted-foreground",children:(0,k.useTranslations)({note:"table of contents"})("No Headings")})}function S({computed:e,thumbBox:t}){let r=(0,s.useRef)(null),n=(0,s.useRef)(null),o=d();function l(r){let i={},s=r.findIndex(e=>e.active);if(-1===s)return i;let o=r.findLastIndex(e=>e.active);if(i["--track-top"]=`${e.positions[s][0]}px`,i["--track-bottom"]=`${e.positions[o][1]}px`,t){let t=!1;if(n.current){let e=n.current;t=e.startIdx>s||e.endIdx>o||e.startIdx===s&&e.endIdx===o&&e.isUp}n.current={startIdx:s,endIdx:o,isUp:t},i["--offset-distance"]=t?`${e.itemLineLengths[s][0]}px`:`${e.itemLineLengths[o][1]}px`,i["--opacity"]=void 0!==r[t?s:o].original._step?"0":"1"}return i}return h(e=>{let t=r.current;if(t)for(let[r,n]of Object.entries(l(e)))t.style.setProperty(r,n)}),(0,i.jsxs)("div",{ref:r,className:"absolute top-0 inset-s-0 origin-center rtl:-scale-x-100",style:{width:e.width,height:e.height,...l(o.get())},children:[(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${e.width} ${e.height}`,className:"absolute transition-[clip-path]",style:{width:e.width,height:e.height,clipPath:"polygon(0 var(--track-top,0), 100% var(--track-top,0), 100% var(--track-bottom,0), 0 var(--track-bottom,0))"},children:e.content}),t&&(0,i.jsx)("div",{className:"absolute left-0 size-1 bg-fd-primary rounded-full [offset-distance:var(--offset-distance,0)] opacity-(--opacity,0) transition-[opacity,offset-distance]",style:{offsetPath:`path("${e.d}")`}})]})}function E(e){return e<=2?8:3===e?16:24}function T({item:e,...t}){var n;let o=y(),{isFirst:l,isLast:a,svg:c}=(0,s.useMemo)(()=>
1{let t=o.indexOf(e),n=0===t,s=t===o.length-1,l=E(e.depth),a=n?l:E(o[t-1].depth),c=s?l:E(o[t+1].depth);return{isFirst:n,isLast:s,svg:(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:(0,r.cn)("absolute -top-1.5 inset-s-0 bottom-0 h-[calc(100%+--spacing(1.5))] -z-1 rtl:-scale-x-100",l!==c&&"h-full bottom-1.5"),style:{width:Math.max(a,l)+9},children:[a!==l&&(0,i.jsx)("path",{d:`M ${a+.5} 0 C ${a+.5} 8 ${l+.5} 4 ${l+.5} 12`,stroke:"black",strokeWidth:"1",fill:"none",className:"stroke-fd-foreground/10"}),(0,i.jsx)("line",{x1:l+.5,y1:a===l?"6":"12",x2:l+.5,y2:"100%",strokeWidth:"1",className:"stroke-fd-foreground/10"}),void 0!==e._step&&(0,i.jsxs)("g",{transform:`translate(${l+.5}, ${l===c?"3":"6"})`,children:[(0,i.jsx)("circle",{cx:"0",cy:"50%",r:"8",className:"fill-fd-muted"}),(0,i.jsx)("text",{x:"0",y:"50%",textAnchor:"middle",alignmentBaseline:"central",dominantBaseline:"middle",className:"fill-fd-muted-foreground font-medium text-xs leading-none font-mono rtl:-scale-x-100",children:e._step})]})]})}},[o,e]);return(0,i.jsxs)(u,{href:e.url,...t,className:(0,r.cn)("prose relative py-1.5 text-sm scroll-m-4 text-fd-muted-foreground hover:text-fd-accent-foreground transition-colors wrap-anywhere data-[active=true]:text-fd-primary",l&&"pt-0",a&&"pb-0",t.className),style:{paddingInlineStart:(n=e.depth)<=2?20:3===n?32:44,...t.style},children:[c,e.title]})}e.s(["TOCItems",0,R,"default_exports",0,j],42492)},160415,e=>{"use strict";let t=(0,e.i(417427).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",0,t],160415)}]);

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.