PageSourceSearch

https://hooktok.ai/assets/LazyAppShell-DZJXuJgo.js

js hooktok.ai collected 2026-10-05 12:09:29 UTC 21,132 bytes, 1 lines download raw bytes

1import{c as Ye,a as le,r as n,u as U,j as a,B as Ge,P as S,b as ze,d as ue,e as W,f as C,g as qe,R as Je,h as Qe,i as Ze,k as et,l as D,X as tt,m as ot,n as rt,o as de,A as st,D as nt,C as at,p as it,q as ct}from"./index-CRJ4j_D8.js";import{u as lt}from"./use-toast-CIfqGXXe.js";import{V as pe,R as ut}from"./index-0GRplKk9.js";import{$ as dt}from"./index-BztOfY2v.js";import{A as pt}from"./AuthContext-HcZ_VQGc.js";import"./client-CDEPmV7O.js";var oe="ToastProvider",[re,ft,vt]=Ye("Toast"),[fe,io]=le("Toast",[vt]),[mt,X]=fe(oe),ve=e=>{const{__scopeToast:o,label:t="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:c=50,children:l}=e,[m,u]=n.useState(null),[i,p]=n.useState(0),x=n.useRef(!1),h=n.useRef(!1);return t.trim()||console.error(`Invalid prop \`label\` supplied to \`${oe}\`. Expected non-empty \`string\`.`),a.jsx(re.Provider,{scope:o,children:a.jsx(mt,{scope:o,label:t,duration:r,swipeDirection:s,swipeThreshold:c,toastCount:i,viewport:m,onViewportChange:u,onToastAdd:n.useCallback(()=>p(b=>b+1),[]),onToastRemove:n.useCallback(()=>p(b=>b-1),[]),isFocusedToastEscapeKeyDownRef:x,isClosePausedRef:h,children:l})})};ve.displayName=oe;var me="ToastViewport",xt=["F8"],Q="toast.viewportPause",Z="toast.viewportResume",xe=n.forwardRef((e,o)=>{const{__scopeToast:t,hotkey:r=xt,label:s="Notifications ({hotkey})",...c}=e,l=X(me,t),m=ft(t),u=n.useRef(null),i=n.useRef(null),p=n.useRef(null),x=n.useRef(null),h=U(o,x,l.onViewportChange),b=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=l.toastCount>0;n.useEffect(()=>{const d=g=>{var w;r.length!==0&&r.every(E=>g[E]||g.code===E)&&((w=x.current)==null||w.focus())};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[r]),n.useEffect(()=>{const d=u.current,g=x.current;if(y&&d&&g){const T=()=>{if(!l.isClosePausedRef.current){const R=new CustomEvent(Q);g.dispatchEvent(R),l.isClosePausedRef.current=!0}},w=()=>{if(l.isClosePausedRef.current){const R=new CustomEvent(Z);g.dispatchEvent(R),l.isClosePausedRef.current=!1}},E=R=>{!d.contains(R.relatedTarget)&&w()},P=()=>{d.contains(document.activeElement)||w()};return d.addEventListener("focusin",T),d.addEventListener("focusout",E),d.addEventListener("pointermove",T),d.addEventListener("pointerleave",P),window.addEventListener("blur",T),window.addEventListener("focus",w),()=>{d.removeEventListener("focusin",T),d.removeEventListener("focusout",E),d.removeEventListener("pointermove",T),d.removeEventListener("pointerleave",P),window.removeEventListener("blur",T),window.removeEventListener("focus",w)}}},[y,l.isClosePausedRef]);const v=n.useCallback(({tabbingDirection:d})=>{const T=m().map(w=>{const E=w.ref.current,P=[E,...jt(E)];return d==="forwards"?P:P.reverse()});return(d==="forwards"?T.reverse():T).flat()},[m]);return n.useEffect(()=>{const d=x.current;if(d){const g=T=>{var P,R,j;const w=T.altKey||T.ctrlKey||T.metaKey;if(T.key==="Tab"&&!w){const O=document.activeElement,I=T.shiftKey;if(T.target===d&&I){(P=i.current)==null||P.focus();return}const _=v({tabbingDirection:I?"backwards":"forwards"}),H=_.findIndex(f=>f===O);J(_.slice(H+1))?T.preventDefault():I?(R=i.current)==null||R.focus():(j=p.current)==null||j.focus()}};return d.addEventListener("keydown",g),()=>d.removeEventListener("keydown",g)}},[m,v]),a.jsxs(Ge,{ref:u,role:"region","aria-label":s.replace("{hotkey}",b),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&a.jsx(ee,{ref:i,onFocusFromOutsideViewport:()=>{const d=v({tabbingDirection:"forwards"});J(d)}}),a.jsx(re.Slot,{scope:t,children:a.jsx(S.ol,{tabIndex:-1,...c,ref:h})}),y&&a.jsx(ee,{ref:p,onFocusFromOutsideViewport:()=>{const d=v({tabbingDirection:"backwards"});J(d)}})]})});xe.displayName=me;var Te="ToastFocusProxy",ee=n.forwardRef((e,o)=>{const{__scopeToast:t,onFocusFromOutsideViewport:r,...s}=e,c=X(Te,t);return a.jsx(pe,{"aria-hidden":!0,tabIndex:0,...s,ref:o,style:{position:"fixed"},onFocus:l=>{var i;const m=l.relatedTarget;!((i=c.viewport)!=null&&i.contains(m))&&r()}})});ee.displayName=Te;var V="Toast",Tt="toast.swipeStart",wt="toast.swipeMove",ht="toast.swipeCancel",
1yt="toast.swipeEnd",we=n.forwardRef((e,o)=>{const{forceMount:t,open:r,defaultOpen:s,onOpenChange:c,...l}=e,[m,u]=ze({prop:r,defaultProp:s??!0,onChange:c,caller:V});return a.jsx(ue,{present:t||m,children:a.jsx(bt,{open:m,...l,ref:o,onClose:()=>u(!1),onPause:W(e.onPause),onResume:W(e.onResume),onSwipeStart:C(e.onSwipeStart,i=>{i.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:C(e.onSwipeMove,i=>{const{x:p,y:x}=i.detail.delta;i.currentTarget.setAttribute("data-swipe","move"),i.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${p}px`),i.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${x}px`)}),onSwipeCancel:C(e.onSwipeCancel,i=>{i.currentTarget.setAttribute("data-swipe","cancel"),i.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),i.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),i.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),i.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:C(e.onSwipeEnd,i=>{const{x:p,y:x}=i.detail.delta;i.currentTarget.setAttribute("data-swipe","end"),i.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),i.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),i.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${p}px`),i.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${x}px`),u(!1)})})})});we.displayName=V;var[gt,Et]=fe(V,{onClose(){}}),bt=n.forwardRef((e,o)=>{const{__scopeToast:t,type:r="foreground",duration:s,open:c,onClose:l,onEscapeKeyDown:m,onPause:u,onResume:i,onSwipeStart:p,onSwipeMove:x,onSwipeCancel:h,onSwipeEnd:b,...y}=e,v=X(V,t),[d,g]=n.useState(null),T=U(o,f=>g(f)),w=n.useRef(null),E=n.useRef(null),P=s||v.duration,R=n.useRef(0),j=n.useRef(P),O=n.useRef(0),{onToastAdd:I,onToastRemove:z}=v,L=W(()=>{var N;(d==null?void 0:d.contains(document.activeElement))&&((N=v.viewport)==null||N.focus()),l()}),_=n.useCallback(f=>{!f||f===1/0||(window.clearTimeout(O.current),R.current=new Date().getTime(),O.current=window.setTimeout(L,f))},[L]);n.useEffect(()=>{const f=v.viewport;if(f){const N=()=>{_(j.current),i==null||i()},A=()=>{const M=new Date().getTime()-R.current;j.current=j.current-M,window.clearTimeout(O.current),u==null||u()};return f.addEventListener(Q,A),f.addEventListener(Z,N),()=>{f.removeEventListener(Q,A),f.removeEventListener(Z,N)}}},[v.viewport,P,u,i,_]),n.useEffect(()=>{c&&!v.isClosePausedRef.current&&_(P)},[c,P,v.isClosePausedRef,_]),n.useEffect(()=>(I(),()=>z()),[I,z]);const H=n.useMemo(()=>d?Pe(d):null,[d]);return v.viewport?a.jsxs(a.Fragment,{children:[H&&a.jsx(Ct,{__scopeToast:t,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:H}),a.jsx(gt,{scope:t,onClose:L,children:qe.createPortal(a.jsx(re.ItemSlot,{scope:t,children:a.jsx(Je,{asChild:!0,onEscapeKeyDown:C(m,()=>{v.isFocusedToastEscapeKeyDownRef.current||L(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:a.jsx(S.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":c?"open":"closed","data-swipe-direction":v.swipeDirection,...y,ref:T,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:C(e.onKeyDown,f=>{f.key==="Escape"&&(m==null||m(f.nativeEvent),f.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,L()))}),onPointerDown:C(e.onPointerDown,f=>{f.button===0&&(w.current={x:f.clientX,y:f.clientY})}),onPointerMove:C(e.onPointerMove,f=>{if(!w.current)return;const N=f.clientX-w.current.x,A=f.clientY-w.current.y,M=!!E.current,k=["left","right"].includes(v.swipeDirection),$=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,Ue=k?$(0,N):0,Xe=k?0:$(0,A),q=f.pointerType==="touch"?10:2,K={x:Ue,y:Xe},ae={originalEvent:f,delta:K};M?(E.current=K,B(wt,x,ae,{discrete:!1})):ie(K,v.swipeDirection,q)?(E.current=K,B(Tt,p,ae,{discrete:!1}),f.target.setPointerCapture(f.pointerId)):(Math.abs(N)>q||Math.abs(A)>q)&&(w.current=null)}),onPointerUp:C(e.onPointerUp,f=>{const N=E.current,A=f.target;if(A.hasPointerCapture(f.pointerId)&&A.releasePointerCapture(f.pointerId),E.current=null,w.current=null,N){const M=f.currentTarget,k={originalEvent:f,delta:N};ie(N,v.swipeDirection,v.swipeThreshold)?B(yt,b,k,{discrete:!0}):B(ht,h,k,{discrete:!0}),M.addEventListener("click",$=>$.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),Ct=e=>{const{__scopeToast:o,children:t,...r}=e,s=X(V,o),[c,l]=n.useState(!1),[m,u]=n.useState(!1);return Nt(()=>l(!0)),n.useEffect(()=>{const i=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(i)},[]),m?null:a.jsx(Qe,{asChild:!0,children:a.jsx(pe,{...r,children:c&&a.jsxs(a.Fragment,{children:[s.label," ",t]})})})},Pt="ToastTitle",he=n.forwardRef((e,o)=>{const{__scopeToast:t,...r}=e;return a.jsx(S.div,{...r,ref:o})});he.displayName=Pt;var Rt="ToastDescription",ye=n.forwardRef((e,o)=>{const{__scopeToast:t,...r}=e;return a.jsx(S.div,{...r,ref:o})});ye.displayName=Rt;var ge="ToastAction",Ee=n.forwardRef((e,o)=>{const{altText:t,...r}=e;return t.trim()?a.jsx(Ce,{altText:t,asChild:!0,children:a.jsx(se,{...r,ref:o})}):(console.error(`Invalid prop \`altText\` supplied to \`${ge}\`. Expected non-empty \`string\`.`),null)});
1Ee.displayName=ge;var be="ToastClose",se=n.forwardRef((e,o)=>{const{__scopeToast:t,...r}=e,s=Et(be,t);return a.jsx(Ce,{asChild:!0,children:a.jsx(S.button,{type:"button",...r,ref:o,onClick:C(e.onClick,s.onClose)})})});se.displayName=be;var Ce=n.forwardRef((e,o)=>{const{__scopeToast:t,altText:r,...s}=e;return a.jsx(S.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:o})});function Pe(e){const o=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&o.push(r.textContent),At(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",c=r.dataset.radixToastAnnounceExclude==="";if(!s)if(c){const l=r.dataset.radixToastAnnounceAlt;l&&o.push(l)}else o.push(...Pe(r))}}),o}function B(e,o,t,{discrete:r}){const s=t.originalEvent.currentTarget,c=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:t});o&&s.addEventListener(e,o,{once:!0}),r?et(s,c):s.dispatchEvent(c)}var ie=(e,o,t=0)=>{const r=Math.abs(e.x),s=Math.abs(e.y),c=r>s;return o==="left"||o==="right"?c&&r>t:!c&&s>t};function Nt(e=()=>{}){const o=W(e);Ze(()=>{let t=0,r=0;return t=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(o)),()=>{window.cancelAnimationFrame(t),window.cancelAnimationFrame(r)}},[o])}function At(e){return e.nodeType===e.ELEMENT_NODE}function jt(e){const o=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)o.push(t.currentNode);return o}function J(e){const o=document.activeElement;return e.some(t=>t===o?!0:(t.focus(),document.activeElement!==o))}var _t=ve,Re=xe,Ne=we,Ae=he,je=ye,_e=Ee,Se=se;const St=_t,De=n.forwardRef(({className:e,...o},t)=>a.jsx(Re,{ref:t,className:D("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...o}));De.displayName=Re.displayName;const Dt=ot("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Ie=n.forwardRef(({className:e,variant:o,...t},r)=>a.jsx(Ne,{ref:r,translate:"no",className:D(Dt({variant:o}),e),...t}));Ie.displayName=Ne.displayName;const It=n.forwardRef(({className:e,...o},t)=>a.jsx(_e,{ref:t,className:D("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...o}));It.displayName=_e.displayName;const Le=n.forwardRef(({className:e,...o},t)=>a.jsx(Se,{ref:t,className:D("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...o,children:a.jsx(tt,{className:"h-4 w-4"})}));
vendor: 7,489 bytes, line 1
1Le.displayName=Se.displayName;const Fe=n.forwardRef(({className:e,...o},t)=>a.jsx(Ae,{ref:t,className:D("text-sm font-semibold",e),...o}));Fe.displayName=Ae.displayName;const Oe=n.forwardRef(({className:e,...o},t)=>a.jsx(je,{ref:t,className:D("text-sm opacity-90",e),...o}));Oe.displayName=je.displayName;function Lt(){const{toasts:e}=lt();return a.jsxs(St,{children:[e.map(function({id:o,title:t,description:r,action:s,...c}){return a.jsxs(Ie,{...c,children:[a.jsxs("div",{className:"grid gap-1",children:[t&&a.jsx(Fe,{children:t}),r&&a.jsx(Oe,{children:r})]}),s,a.jsx(Le,{})]},o)}),a.jsx(De,{})]})}const Ft=({...e})=>{const{theme:o="system"}=rt();return a.jsx(dt,{theme:o,className:"toaster group",position:"top-right",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var[Y,co]=le("Tooltip",[de]),ne=de(),Me="TooltipProvider",Ot=700,ce="tooltip.open",[Mt,ke]=Y(Me),Ve=e=>{const{__scopeTooltip:o,delayDuration:t=Ot,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:c}=e,l=n.useRef(!0),m=n.useRef(!1),u=n.useRef(0);return n.useEffect(()=>{const i=u.current;return()=>window.clearTimeout(i)},[]),a.jsx(Mt,{scope:o,isOpenDelayedRef:l,delayDuration:t,onOpen:n.useCallback(()=>{window.clearTimeout(u.current),l.current=!1},[]),onClose:n.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:m,onPointerInTransitChange:n.useCallback(i=>{m.current=i},[]),disableHoverableContent:s,children:c})};Ve.displayName=Me;var He="Tooltip",[lo,G]=Y(He),te="TooltipTrigger",kt=n.forwardRef((e,o)=>{const{__scopeTooltip:t,...r}=e,s=G(te,t),c=ke(te,t),l=ne(t),m=n.useRef(null),u=U(o,m,s.onTriggerChange),i=n.useRef(!1),p=n.useRef(!1),x=n.useCallback(()=>i.current=!1,[]);return n.useEffect(()=>()=>document.removeEventListener("pointerup",x),[x]),a.jsx(st,{asChild:!0,...l,children:a.jsx(S.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:u,onPointerMove:C(e.onPointerMove,h=>{h.pointerType!=="touch"&&!p.current&&!c.isPointerInTransitRef.current&&(s.onTriggerEnter(),p.current=!0)}),onPointerLeave:C(e.onPointerLeave,()=>{s.onTriggerLeave(),p.current=!1}),onPointerDown:C(e.onPointerDown,()=>{s.open&&s.onClose(),i.current=!0,document.addEventListener("pointerup",x,{once:!0})}),onFocus:C(e.onFocus,()=>{i.current||s.onOpen()}),onBlur:C(e.onBlur,s.onClose),onClick:C(e.onClick,s.onClose)})})});kt.displayName=te;var Vt="TooltipPortal",[uo,Ht]=Y(Vt,{forceMount:void 0}),F="TooltipContent",$e=n.forwardRef((e,o)=>{const t=Ht(F,e.__scopeTooltip),{forceMount:r=t.forceMount,side:s="top",...c}=e,l=G(F,e.__scopeTooltip);return a.jsx(ue,{present:r||l.open,children:l.disableHoverableContent?a.jsx(Ke,{side:s,...c,ref:o}):a.jsx($t,{side:s,...c,ref:o})})}),$t=n.forwardRef((e,o)=>{const t=G(F,e.__scopeTooltip),r=ke(F,e.__scopeTooltip),s=n.useRef(null),c=U(o,s),[l,m]=n.useState(null),{trigger:u,onClose:i}=t,p=s.current,{onPointerInTransitChange:x}=r,h=n.useCallback(()=>{m(null),x(!1)},[x]),b=n.useCallback((y,v)=>{const d=y.currentTarget,g={x:y.clientX,y:y.clientY},T=Xt(g,d.getBoundingClientRect()),w=Yt(g,T),E=Gt(v.getBoundingClientRect()),P=qt([...w,...E]);m(P),x(!0)},[x]);return n.useEffect(()=>()=>h(),[h]),n.useEffect(()=>{if(u&&p){const y=d=>b(d,p),v=d=>b(d,u);return u.addEventListener("pointerleave",y),p.addEventListener("pointerleave",v),()=>{u.removeEventListener("pointerleave",y),p.removeEventListener("pointerleave",v)}}},[u,p,b,h]),n.useEffect(()=>{if(l){const y=v=>{const d=v.target,g={x:v.clientX,y:v.clientY},T=(u==null?void 0:u.contains(d))||(p==null?void 0:p.contains(d)),w=!zt(g,l);T?h():w&&(h(),i())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[u,p,l,i,h]),a.jsx(Ke,{...e,ref:c})}),[Kt,Bt]=Y(He,{isInside:!1}),Wt=ct("TooltipContent"),Ke=n.forwardRef((e,o)=>{const{__scopeTooltip:t,children:r,"aria-label":s,onEscapeKeyDown:c,onPointerDownOutside:l,...m}=e,u=G(F,t),i=ne(t),{onClose:p}=u;return n.useEffect(()=>(document.addEventListener(ce,p),()=>document.removeEventListener(ce,p)),[p]),n.useEffect(()=>{if(u.trigger){const x=h=>{const b=h.target;b!=null&&b.contains(u.trigger)&&p()};return window.addEventListener("scroll",x,{capture:!0}),()=>window.removeEventListener("scroll",x,{capture:!0})}},[u.trigger,p]),a.jsx(nt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:x=>x.preventDefault(),onDismiss:p,children:a.jsxs(at,{"data-state":u.stateAttribute,...i,...m,ref:o,style:{...m.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[a.jsx(Wt,{children:r}),a.jsx(Kt,{scope:t,isInside:!0,children:a.jsx(ut,{id:u.contentId,role:"tooltip",children:s||r})})]})})});$e.displayName=F;var Be="TooltipArrow",Ut=n.forwardRef((e,o)=>{const{__scopeTooltip:t,...r}=e,s=ne(t);return Bt(Be,t).isInside?null:a.jsx(it,{...s,...r,ref:o})});Ut.displayName=Be;function Xt(e,o){const t=Math.abs(o.top-e.y),r=Math.abs(o.bottom-e.y),s=Math.abs(o.right-e.x),c=Math.abs(o.left-e.x);switch(Math.min(t,r,s,c)){case c:return"left";case s:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Yt(e,o,t=5){const r=[];switch(o){case"top":r.push({x:e.x-t,y:e.y+t},{x:e.x+t,y:e.y+t});break;case"bottom":r.push({x:e.x-t,y:e.y-t},{x:e.x+t,y:e.y-t});break;case"left":r.push({x:e.x+t,y:e.y-t},{x:e.x+t,y:e.y+t});break;case"right":r.push({x:e.x-t,y:e.y-t},{x:e.x-t,y:e.y+t});break}return r}function Gt(e){const{top:o,right:t,bottom:r,left:s}=e;return[{x:s,y:o},{x:t,y:o},{x:t,y:r},{x:s,y:r}]}function zt(e,o){const{x:t,y:r}=e;let s=!1;for(let c=0,l=o.length-1;c<o.length;l=c++){const m=o[c],u=o[l],i=m.x,p=m.y,x=u.x,h=u.y;p>r!=h>r&&t<(x-i)*(r-p)/(h-p)+i&&(s=!s)}return s}function qt(e){const o=e.slice();return o.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),Jt(o)}function Jt(e){if(e.length<=1)return e.slice();const o=[];for(let r=0;r<e.length;r++){const s=e[r];for(;o.length>=2;){const c=o[o.length-1],l=o[o.length-2];if((c.x-l.x)*(s.y-l.y)>=(c.y-l.y)*(s.x-l.x))o.pop();else break}o.push(s)}o.pop();const t=[];for(let r=e.length-1;r>=0;r--){const s=e[r];for(;t.length>=2;){const c=t[t.length-1],l=t[t.length-2];if((c.x-l.x)*(s.y-l.y)>=(c.y-l.y)*(s.x-l.x))t.pop();else break}t.push(s)}return t.pop(),o.length===1&&t.length===1&&o[0].x===t[0].x&&o[0].y===t[0].y?o:o.concat(t)}var Qt=Ve,We=$e;const Zt=Qt,eo=n.forwardRef(({className:e,sideOffset:o=4,...t},r)=>a.jsx(We,{ref:r,translate:"no",sideOffset:o,className:D("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));eo.displayName=We.displayName;const po=({children:e})=>a.jsx(pt,{children:a.jsxs(Zt,{delayDuration:0,children:[a.jsx(Lt,{}),a.jsx(Ft,{}),e]})});export{po as default};

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.