PageSourceSearch

https://pharkeep.com/ghost/assets/shade-app-CcS3f8MZ-vwURazk8.js

js pharkeep.com collected 2026-10-04 07:52:05 UTC 54,669 bytes, 3 lines download raw bytes

1import{o as e}from"./rolldown-runtime-DAXXjFlN.js";import{t}from"./react-Bb3IsNbi.js";import{n,t as r}from"./jsx-runtime-DX3WBWVO.js";import{t as i}from"./dist-Ndy-PuGN.js";import{a,l as o,o as s,r as c,w as l,y as u}from"./dist-B3keLvjj.js";import{a as d,i as f,n as p,r as m,t as h}from"./dist-8YJUlf3B.js";var g=e(t(),1),_=r(),v=Object.defineProperty,y=(e,t)=>{let n={};for(var r in e)v(n,r,{get:e[r],enumerable:!0});return t||v(n,Symbol.toStringTag,{value:`Module`}),n},b=y({default:()=>x}),x=e=>(0,_.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,height:24,width:24,id:`Alert-Triangle--Streamline-Ultimate`,...e,children:[(0,_.jsx)(`desc`,{children:`Alert Triangle Streamline Icon: https://streamlinehq.com`}),(0,_.jsx)(`path`,{d:`m23.77 20.57 -10 -19A2 2 0 0 0 12 0.5a2 2 0 0 0 -1.77 1.07l-10 19a2 2 0 0 0 0.06 2A2 2 0 0 0 2 23.5h20a2 2 0 0 0 1.77 -2.93ZM11 8.5a1 1 0 0 1 2 0v6a1 1 0 0 1 -2 0ZM12.05 20a1.53 1.53 0 0 1 -1.52 -1.47A1.48 1.48 0 0 1 12 17a1.53 1.53 0 0 1 1.52 1.47A1.48 1.48 0 0 1 12.05 20Z`,fill:`currentColor`,strokeWidth:1})]}),S=y({default:()=>C}),C=e=>(0,_.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,height:24,width:24,id:`Information-Circle--Streamline-Ultimate`,...e,children:[(0,_.jsx)(`desc`,{children:`Information Circle Streamline Icon: https://streamlinehq.com`}),(0,_.jsx)(`path`,{d:`M12 0a12 12 0 1 0 12 12A12 12 0 0 0 12 0Zm0.25 5a1.5 1.5 0 1 1 -1.5 1.5 1.5 1.5 0 0 1 1.5 -1.5Zm2.25 13.5h-4a1 1 0 0 1 0 -2h0.75a0.25 0.25 0 0 0 0.25 -0.25v-4.5a0.25 0.25 0 0 0 -0.25 -0.25h-0.75a1 1 0 0 1 0 -2h1a2 2 0 0 1 2 2v4.75a0.25 0.25 0 0 0 0.25 0.25h0.75a1 1 0 0 1 0 2Z`,fill:`currentcolor`,strokeWidth:1})]}),w=y({default:()=>T}),T=e=>(0,_.jsxs)(`svg`,{height:16,id:`Skull-2--Streamline-Ultimate`,viewBox:`0 0 16 16`,width:16,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,_.jsx)(`desc`,{children:`
2    Skull 2 Streamline Icon: https://streamlinehq.com
3    `}),(0,_.jsxs)(`g`,{children:[(0,_.jsx)(`path`,{d:`M12.333333333333332 7.333333333333333a4.333333333333333 4.333333333333333 0 1 0 -7.333333333333333 3.126666666666667v1.88a1 1 0 0 0 2 0 1 1 0 0 0 2 0 1 1 0 1 0 2 0v-1.88a4.326666666666666 4.326666666666666 0 0 0 1.3333333333333333 -3.126666666666667Zm-6.253333333333334 1a1 1 0 1 1 1 -1 1 1 0 0 1 -1 1Zm4 0a1 1 0 1 1 1 -1 1 1 0 0 1 -1 1Z`,fill:`currentColor`,strokeWidth:.6667}),(0,_.jsx)(`path`,{d:`m1.8666666666666665 3.28 1.22 1.22a0.3466666666666667 0.3466666666666667 0 0 0 0.26666666666666666 0.09333333333333334 0.35333333333333333 0.35333333333333333 0 0 0 0.24666666666666665 -0.14666666666666667 5.133333333333333 5.133333333333333 0 0 1 0.8066666666666666 -0.9733333333333333 0.3133333333333333 0.3133333333333333 0 0 0 0.09999999999999999 -0.2333333333333333 0.3666666666666667 0.3666666666666667 0 0 0 -0.09333333333333334 -0.24666666666666665L3.28 1.8666666666666665A1.1666666666666665 1.1666666666666665 0 0 0 1.8399999999999999 0.11333333333333334a0.6666666666666666 0.6666666666666666 0 0 0 -0.3666666666666667 0.48l-0.09999999999999999 0.5133333333333333a0.31999999999999995 0.31999999999999995 0 0 1 -0.26 0.26666666666666666l-0.52 0.09999999999999999a0.6666666666666666 0.6666666666666666 0 0 0 -0.48 0.3666666666666667A1.1666666666666665 1.1666666666666665 0 0 0 1.8666666666666665 3.28Z`,fill:`currentColor`,strokeWidth:.6667}),(0,_.jsx)(`path`,{d:`M12.4 4.446666666666666a0.35333333333333333 0.35333333333333333 0 0 0 0.24666666666666665 0.14666666666666667 0.3466666666666667 0.3466666666666667 0 0 0 0.26666666666666666 -0.09333333333333334l1.22 -1.22a1.1666666666666665 1.1666666666666665 0 0 0 1.7533333333333332 -1.44 0.6666666666666666 0.6666666666666666 0 0 0 -0.48 -0.3666666666666667l-0.52 -0.09999999999999999a0.31999999999999995 0.31999999999999995 0 0 1 -0.26 -0.26666666666666666l-0.09999999999999999 -0.5133333333333333a0.6666666666666666 0.6666666666666666 0 0 0 -0.3666666666666667 -0.48 1.1666666666666665 1.1666666666666665 0 0 0 -1.44 1.7533333333333332l-1.1333333333333333 1.1266666666666665a0.3666666666666667 0.3666666666666667 0 0 0 -0.09333333333333334 0.24666666666666665 0.3133333333333333 0.3133333333333333 0 0 0 0.09999999999999999 0.2333333333333333 5.133333333333333 5.133333333333333 0 0 1 0.8066666666666666 0.9733333333333333Z`,fill:`currentColor`,strokeWidth:.6667}),(0,_.jsx)(`path`,{d:`M3.6 11.559999999999999a0.33999999999999997 0.33999999999999997 0 0 0 -0.26666666666666666 -0.15333333333333332 0.3466666666666667 0.3466666666666667 0 0 0 -0.26666666666666666 0.09333333333333334l-1.2 1.22a1.1666666666666665 1.1666666666666665 0 0 0 -1.7533333333333332 1.44 0.6666666666666666 0.6666666666666666 0 0 0 0.48 0.3666666666666667l0.52 0.09999999999999999a0.31999999999999995 0.31999999999999995 0 0 1 0.26 0.26666666666666666l0.09999999999999999 0.5133333333333333a0.6666666666666666 0.6666666666666666 0 0 0 0.3666666666666667 0.48 1.1666666666666665 1.1666666666666665 0 0 0 1.44 -1.7533333333333332l1.1333333333333333 -1.1266666666666665a0.36 0.36 0 0 0 0.09333333333333334 -0.24 0.31999999999999995 0.31999999999999995 0 0 0 -0.09999999999999999 -0.24 5.333333333333333 5.333333333333333 0 0 1 -0.8066666666666666 -0.9666666666666666Z`,fill:`currentColor`,strokeWidth:.6667}),(0,_.jsx)(`path`,{d:`m14.133333333333333 12.719999999999999 -1.22 -1.22a0.3466666666666667 0.3466666666666667 0 0 0 -0.26666666666666666 -0.09333333333333334 0.33999999999999997 0.33999999999999997 0 0 0 -0.24666666666666665 0.15333333333333332 5.333333333333333 5.333333333333333 0 0 1 -0.8066666666666666 0.9666666666666666 0.31999999999999995 0.31999999999999995 0 0 0 -0.09999999999999999 0.24 0.36 0.36 0 0 0 0.09333333333333334 0.24l1.1333333333333333 1.1266666666666665a1.1666666666666665 1.1666666666666665 0 0 0 1.44 1.7533333333333332 0.6666666666666666 0.6666666666666666 0 0 0 0.3666666666666667 -0.48l0.09999999999999999 -0.5133333333333333a0.31999999999999995 0.31999999999999995 0 0 1 0.26 -0.26666666666666666l0.52 -0.09999999999999999a0.6666666666666666 0.6666666666666666 0 0 0 0.48 -0.3666666666666667 1.1666666666666665 1.1666666666666665 0 0 0 -1.7533333333333332 -1.44Z`,fill:`currentColor`,strokeWidth:.6667})]})]}),E=y({default:()=>D}),D=e=>(0,_.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,height:24,width:24,id:`Check-Circle-1--Streamline-Ultimate`,...e,children:[(0,_.jsx)(`desc`,{children:`Check Circle 1 Streamline Icon: https://streamlinehq.com`}),(0,_.jsx)(`path`,{d:`M12 0a12 12 0 1 0 12 12A12 12 0 0 0 12 0Zm6.93 8.2 -6.85 9.29a1 1 0 0 1 -1.43 0.19l-4.89 -3.91a1 1 0 0 1 -0.15 -1.41A1 1 0 0 1 7 12.21l4.08 3.26L17.32 7a1 1 0 0 1 1.39 -0.21 1 1 0 0 1 0.22 1.41Z`,fill:`currentcolor`,strokeWidth:1})]}),O=y({default:()=>k}),k=e=>
3(0,_.jsxs)(`svg`,{viewBox:`-0.75 -0.75 20 20`,xmlns:`http://www.w3.org/2000/svg`,height:24,width:24,...e,children:[(0,_.jsx)(`desc`,{children:`Typography`}),(0,_.jsx)(`path`,{d:`m0.578125 9.827354166666668 8.09375 0`,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:1.5}),(0,_.jsx)(`path`,{d:`m12.140625 13.296104166666666 5.78125 0`,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:1.5}),(0,_.jsx)(`path`,{d:`M12.140625 16.764854166666666V10.40625a2.890625 2.890625 0 0 1 5.78125 0v6.359375`,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:1.5}),(0,_.jsx)(`path`,{d:`M0.578125 16.764854166666666V5.78125a4.046875 4.046875 0 0 1 8.09375 0v10.984375`,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:1.5})]}),A=s(``,{variants:{size:{sm:`size-3`,md:`size-4`,lg:`size-6`,xl:`size-8`}},defaultVariants:{size:`md`}}),j=Object.entries(Object.assign({"../../assets/icons/error-fill.svg":b,"../../assets/icons/info-fill.svg":S,"../../assets/icons/skull-and-bones.svg":w,"../../assets/icons/success-fill.svg":E,"../../assets/icons/typography.svg":O})).reduce((e,[t,n])=>{let r=u(t.match(/[^/]+(?=\.svg$)/)?.[0]??``),i=e=>{let{size:t,className:r,...i}=e,a=o(A({size:t,className:r}));return g.createElement(n.default,{...i,className:a})};return i.displayName=`Icon.${r}`,e[r]=i,e},{}),M=j,N=g.createContext({isDirty:!1,setGlobalDirtyState:()=>{}}),ee=({children:e})=>{let[t,n]=(0,g.useState)([]),r=(0,g.useCallback)((e,t)=>{n(n=>t&&!n.includes(e)?[...n,e]:!t&&n.includes(e)?n.filter(t=>t!==e):n)},[]);return(0,_.jsx)(N.Provider,{value:{isDirty:t.length>0,setGlobalDirtyState:r},children:e})},P=()=>{let e=(0,g.useId)(),{isDirty:t,setGlobalDirtyState:n}=(0,g.useContext)(N);return(0,g.useEffect)(()=>()=>n(e,!1),[e,n]),{isDirty:t,setGlobalDirtyState:(0,g.useCallback)(t=>n(e,t),[e,n])}},te=({className:e,style:t,theme:n=`light`,toastOptions:r,...a})=>{let{classNames:s,...c}=r??{};return(0,_.jsx)(i,{className:o(`toaster group`,e),style:{"--normal-bg":`var(--background)`,"--normal-text":`var(--foreground)`,"--normal-border":`var(--border)`,...t},theme:n,toastOptions:{...c,classNames:{...s,closeButton:o(`border-control-border! bg-background! text-foreground! hover:bg-interactive-hover! focus-visible:ring-2! focus-visible:ring-focus-ring! focus-visible:ring-offset-2! focus-visible:ring-offset-background! data-[disabled=true]:opacity-50!`,s?.closeButton)}},...a})},ne=e(n(),1);typeof window<`u`&&window.document&&window.document.createElement;function F(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}var I=g.useEffectEvent,L=g.useInsertionEffect;function re(e){if(typeof I==`function`)return I(e);let t=g.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof L==`function`?L(()=>{t.current=e}):h(()=>{t.current=e}),g.useMemo(()=>((...e)=>t.current?.(...e)),[])}var ie=`DismissableLayer`,ae=`dismissableLayer.update`,oe=`dismissableLayer.pointerDownOutside`,se=`dismissableLayer.focusOutside`,ce,le=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),ue=g.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:c,onDismiss:l,...u}=e,d=g.useContext(le),[f,p]=g.useState(null),h=f?.ownerDocument??globalThis?.document,[,v]=g.useState({}),y=a(t,p),b=Array.from(d.layers),[x]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),S=b.indexOf(x),C=f?b.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,T=C>=S,E=g.useRef(!1),D=me(e=>{let t=e.target;if(!(t instanceof Node))return;let n=[...d.branches].some(e=>e.contains(t));!T||n||(o?.(e),c?.(e),e.defaultPrevented||l?.())},{ownerDocument:h,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:E,dismissableSurfaces:d.dismissableSurfaces}),O=he(e=>{if(r&&E.current)return;let t=e.target;[...d.branches].some(e=>e.contains(t))||(s?.(e),c?.(e),e.defaultPrevented||l?.())},h),k=f?C===b.length-1:!1,A=re(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))});return g.useEffect(()=>
3{if(k)return h.addEventListener(`keydown`,A,{capture:!0}),()=>h.removeEventListener(`keydown`,A,{capture:!0})},[h,k]),g.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(ce=h.body.style.pointerEvents,h.body.style.pointerEvents=`none`),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),ge(),()=>{n&&(d.layersWithOutsidePointerEventsDisabled.delete(f),d.layersWithOutsidePointerEventsDisabled.size===0&&(h.body.style.pointerEvents=ce))}},[f,h,n,d]),g.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),ge())},[f,d]),g.useEffect(()=>{let e=()=>v({});return document.addEventListener(ae,e),()=>document.removeEventListener(ae,e)},[]),(0,_.jsx)(m.div,{...u,ref:y,style:{pointerEvents:w?T?`auto`:`none`:void 0,...e.style},onFocusCapture:F(e.onFocusCapture,O.onFocusCapture),onBlurCapture:F(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:F(e.onPointerDownCapture,D.onPointerDownCapture)})});ue.displayName=ie;var de=`DismissableLayerBranch`,fe=g.forwardRef((e,t)=>{let n=g.useContext(le),r=g.useRef(null),i=a(t,r);return g.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,_.jsx)(m.div,{...e,ref:i})});fe.displayName=de;function pe(){let e=g.useContext(le),[t,n]=g.useState(null);return g.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}function me(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a}=t,o=p(e),s=g.useRef(!1),c=g.useRef(!1),l=g.useRef(new Map),u=g.useRef(()=>{});return g.useEffect(()=>{function e(){c.current=!1,i.current=!1,l.current.clear()}function t(){return Array.from(l.current.values()).some(Boolean)}function d(e){if(!c.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||l.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{c.current&&u.current()},0)}function f(e){c.current&&l.current.set(e.type,!1)}let p=a=>{if(a.target&&!s.current){let s=function(){n.removeEventListener(`click`,u.current);let r=t();e(),r||_e(oe,o,d,{discrete:!0})},d={originalEvent:a};c.current=!0,i.current=r&&a.button===0,l.current.clear(),!r||a.button!==0?s():(n.removeEventListener(`click`,u.current),u.current=s,n.addEventListener(`click`,u.current,{once:!0}))}else n.removeEventListener(`click`,u.current),e();s.current=!1},m=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of m)n.addEventListener(e,d,!0),n.addEventListener(e,f);let h=window.setTimeout(()=>{n.addEventListener(`pointerdown`,p)},0);return()=>{window.clearTimeout(h),n.removeEventListener(`pointerdown`,p),n.removeEventListener(`click`,u.current);for(let e of m)n.removeEventListener(e,d,!0),n.removeEventListener(e,f)}},[n,o,r,i,a]),{onPointerDownCapture:()=>s.current=!0}}function he(e,t=globalThis?.document){let n=p(e),r=g.useRef(!1);return g.useEffect(()=>{let e=e=>{e.target&&!r.current&&_e(se,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ge(){let e=new CustomEvent(ae);document.dispatchEvent(e)}function _e(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?f(i,a):i.dispatchEvent(a)}var ve=g.useId||(()=>void 0),ye=0;function be(e){let[t,n]=g.useState(ve());return h(()=>{e||n(e=>e??String(ye++))},[e]),e||(t?`radix-${t}`:``)}var xe=[`top`,`right`,`bottom`,`left`],R=Math.min,z=Math.max,Se=Math.round,Ce=Math.floor,B=e=>({x:e,y:e}),we={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Te(e,t,n){return z(e,R(t,n))}function V(e,t){return typeof e==`function`?e(t):e}function H(e){return e.split(`-`)[0]}function U(e){return e.split(`-`)[1]}function Ee(e){return e===`x`?`y`:`x`}function De(e){return e===`y`?`height`:`width`}function W(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Oe(e){return Ee(W(e))}function ke(e,t,n){n===void 0&&(n=!1);
vendor: 5,017 bytes, line 3
3let r=U(e),i=Oe(e),a=De(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Re(o)),[o,Re(o)]}function Ae(e){let t=Re(e);return[je(e),t,je(t)]}function je(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Me=[`left`,`right`],Ne=[`right`,`left`],Pe=[`top`,`bottom`],Fe=[`bottom`,`top`];function Ie(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Ne:Me:t?Me:Ne;case`left`:case`right`:return t?Pe:Fe;default:return[]}}function Le(e,t,n,r){let i=U(e),a=Ie(H(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(je)))),a}function Re(e){let t=H(e);return we[t]+e.slice(t.length)}function ze(e){return{top:0,right:0,bottom:0,left:0,...e}}function Be(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:ze(e)}function Ve(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function He(e,t,n){let{reference:r,floating:i}=e,a=W(t),o=Oe(t),s=De(o),c=H(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(U(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function Ue(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=V(t,e),p=Be(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Ve(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Ve(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var We=50,Ge=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Ue},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=He(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<We&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=He(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Ke=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=V(e,t)||{};if(l==null)return{};let d=Be(u),f={x:n,y:r},p=Oe(i),m=De(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=R(d[_],T),D=R(d[v],T),O=E,k=C-h[m]-D,A=C/2-h[m]/2+w,j=Te(O,A,k),M=!c.arrow&&U(i)!=null&&A!==j&&a.reference[m]/2-(A<O?E:D)-h[m]/2<0,N=M?A<O?A-O:A-k:0;return{[p]:f[p]+N,data:{[p]:j,centerOffset:A-j-N,...M&&{alignmentOffset:N}},reset:M}}}),qe=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=V(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=H(r),_=W(o),v=H(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Re(o)]:Ae(o)),x=p!==`none`;!d&&x&&b.push(...Le(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=ke(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==W(t))||T.every(e=>W(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>
vendor: 5,905 bytes, line 3
3e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=W(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function Je(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ye(e){return xe.some(t=>e[t]>=0)}var Xe=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=V(e,t);switch(i){case`referenceHidden`:{let e=Je(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Ye(e)}}}case`escaped`:{let e=Je(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Ye(e)}}}default:return{}}}}},Ze=new Set([`left`,`top`]);async function Qe(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=H(n),s=U(n),c=W(n)===`y`,l=Ze.has(o)?-1:1,u=a&&c?-1:1,d=V(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var $e=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Qe(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},et=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=V(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=W(H(i)),p=Ee(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Te(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Te(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},tt=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=V(e,t),u={x:n,y:r},d=W(i),f=Ee(d),p=u[f],m=u[d],h=V(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Ze.has(H(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},nt=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=V(e,t),u=await o.detectOverflow(t,l),d=H(i),f=U(i),p=W(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=R(h-u[g],v),x=R(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=z(u.left,0),t=z(u.right,0),n=z(u.top,0),r=z(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:z(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:z(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function rt(){return typeof window<`u`}function G(e){return it(e)?(e.nodeName||``).toLowerCase():`#document`}function K(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function q(e){return((it(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function it(e){return rt()?e instanceof Node||e instanceof K(e).Node:!1}function J(e){return rt()?e instanceof Element||e instanceof K(e).Element:!1}function Y(e){return rt()?e instanceof HTMLElement||e instanceof K(e).HTMLElement:!1}function at(e){return!rt()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof K(e).ShadowRoot}function ot(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Z(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function st(e){return/^(table|td|th)$/.test(G(e))}function ct(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var lt=/transform|translate|scale|rotate|perspective|filter/,ut=/paint|layout|strict|content/,X=e=>!!e&&e!==`none`,dt;function ft(e){let t=J(e)?Z(e):e;return X(t.transform)||X(t.translate)||X(t.scale)||X(t.rotate)||X(t.perspective)||!mt()&&(X(t.backdropFilter)||X(t.filter))||lt.test(t.willChange||``)||ut.test(t.contain||``)}function pt(e){let t=Q(e);for(;Y(t)&&!ht(t);){if(ft(t))return t;if(ct(t))return null;t=Q(t)}return null}function mt(){return dt??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),dt}function ht(e){return/^(html|body|#document)$/.test(G(e))}function Z(e){return K(e).getComputedStyle(e)}function gt(e){return J(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Q(e){if(G(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||at(e)&&e.host||q(e);return at(t)?t.host:t}function _t(e){let t=Q(e);return ht(t)?e.ownerDocument?e.ownerDocument.body:e.body:Y(t)&&ot(t)?t:_t(t)}function vt(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=_t(e),i=r===e.ownerDocument?.body,a=K(r);if(i){let e=yt(a);
vendor: 6,412 bytes, line 3
3return t.concat(a,a.visualViewport||[],ot(r)?r:[],e&&n?vt(e):[])}else return t.concat(r,vt(r,[],n))}function yt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bt(e){let t=Z(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Y(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Se(n)!==a||Se(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function xt(e){return J(e)?e:e.contextElement}function St(e){let t=xt(e);if(!Y(t))return B(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=bt(t),o=(a?Se(n.width):n.width)/r,s=(a?Se(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Ct=B(0);function wt(e){let t=K(e);return!mt()||!t.visualViewport?Ct:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Tt(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==K(e)?!1:t}function $(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=xt(e),o=B(1);t&&(r?J(r)&&(o=St(r)):o=St(e));let s=Tt(a,n,r)?wt(a):B(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=K(a),t=r&&J(r)?K(r):r,n=e,i=yt(n);for(;i&&r&&t!==n;){let e=St(i),t=i.getBoundingClientRect(),r=Z(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=K(i),i=yt(n)}}return Ve({width:u,height:d,x:c,y:l})}function Et(e,t){let n=gt(e).scrollLeft;return t?t.left+n:$(q(e)).left+n}function Dt(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Et(e,n),y:n.top+t.scrollTop}}function Ot(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=q(r),s=t?ct(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=B(1),u=B(0),d=Y(r);if((d||!d&&!a)&&((G(r)!==`body`||ot(o))&&(c=gt(r)),d)){let e=$(r);l=St(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Dt(o,c):B(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function kt(e){return Array.from(e.getClientRects())}function At(e){let t=q(e),n=gt(e),r=e.ownerDocument.body,i=z(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=z(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Et(e),s=-n.scrollTop;return Z(r).direction===`rtl`&&(o+=z(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var jt=25;function Mt(e,t){let n=K(e),r=q(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=mt();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Et(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=jt&&(a-=o)}else l<=jt&&(a+=l);return{width:a,height:o,x:s,y:c}}function Nt(e,t){let n=$(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Y(e)?St(e):B(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Pt(e,t,n){let r;if(t===`viewport`)r=Mt(e,n);else if(t===`document`)r=At(q(e));else if(J(t))r=Nt(t,n);else{let n=wt(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ve(r)}function Ft(e,t){let n=Q(e);return n===t||!J(n)||ht(n)?!1:Z(n).position===`fixed`||Ft(n,t)}function It(e,t){let n=t.get(e);if(n)return n;let r=vt(e,[],!1).filter(e=>J(e)&&G(e)!==`body`),i=null,a=Z(e).position===`fixed`,o=a?Q(e):e;for(;J(o)&&!ht(o);){let t=Z(o),n=ft(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||ot(o)&&!n&&Ft(e,o))?r=r.filter(e=>e!==o):i=t,o=Q(o)}return t.set(e,r),r}function Lt(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?ct(t)?[]:It(t,this._c):[].concat(n),r],o=Pt(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Pt(t,a[e],i);s=z(n.top,s),c=R(n.right,c),l=R(n.bottom,l),u=z(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Rt(e){let{width:t,height:n}=bt(e);return{width:t,height:n}}function zt(e,t,n){let r=Y(t),i=q(t),a=n===`fixed`,o=$(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=B(0);function l(){c.x=Et(i)}if(r||!r&&!a)if((G(t)!==`body`||ot(i))&&(s=gt(t)),r){let e=$(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?Dt(i,s):B(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Bt(e){return Z(e).position===`static`}function Vt(e,t){if(!Y(e)||Z(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return q(e)===n&&(n=n.ownerDocument.body),n}function Ht(e,t){let n=K(e);if(ct(e))return n;if(!Y(e)){let t=Q(e);for(;t&&!ht(t);){if(J(t)&&!Bt(t))return t;t=Q(t)}return n}let r=Vt(e,t);for(;r&&st(r)&&Bt(r);)r=Vt(r,t);return r&&ht(r)&&Bt(r)&&!ft(r)?n:r||pt(e)||n}var Ut=async function(e){let t=this.getOffsetParent||Ht,n=this.getDimensions,r=await n(e.floating);return{reference:zt(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Wt(e){return Z(e).direction===`rtl`}var Gt={convertOffsetParentRelativeRectToViewportRelativeRect:Ot,getDocumentElement:q,getClippingRect:Lt,getOffsetParent:Ht,getElementRects:Ut,getClientRects:kt,getDimensions:Rt,getScale:St,isElement:J,isRTL:Wt};function Kt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qt(e,t){let n=null,r,i=q(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=Ce(d),h=Ce(i.clientWidth-(u+f)),g=Ce(i.clientHeight-(d+p)),_=Ce(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:z(0,R(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!Kt(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Jt(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=xt(e),u=i||a?[...l?vt(l):[],...t?vt(t):[]]:[];
vendor: 4,245 bytes, line 3
3u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?qt(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?$(e):null;c&&g();function g(){let t=$(e);h&&!Kt(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Yt=$e,Xt=et,Zt=qe,Qt=nt,$t=Xe,en=Ke,tn=tt,nn=(e,t,n)=>{let r=new Map,i={platform:Gt,...n},a={...i.platform,_c:r};return Ge(e,t,{...i,platform:a})},rn=typeof document<`u`?g.useLayoutEffect:function(){};function an(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!an(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!an(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function on(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function sn(e,t){let n=on(e);return Math.round(t*n)/n}function cn(e){let t=g.useRef(e);return rn(()=>{t.current=e}),t}function ln(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=g.useState(r);an(f,r)||p(r);let[m,h]=g.useState(null),[_,v]=g.useState(null),y=g.useCallback(e=>{e!==C.current&&(C.current=e,h(e))},[]),b=g.useCallback(e=>{e!==w.current&&(w.current=e,v(e))},[]),x=a||m,S=o||_,C=g.useRef(null),w=g.useRef(null),T=g.useRef(u),E=c!=null,D=cn(c),O=cn(i),k=cn(l),A=g.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),nn(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!an(T.current,t)&&(T.current=t,ne.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);rn(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=g.useRef(!1);rn(()=>(j.current=!0,()=>{j.current=!1}),[]),rn(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,A);A()}},[x,S,A,D,E]);let M=g.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),N=g.useMemo(()=>({reference:x,floating:S}),[x,S]),ee=g.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=sn(N.floating,u.x),r=sn(N.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...on(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,u.x,u.y]);return g.useMemo(()=>({...u,update:A,refs:M,elements:N,floatingStyles:ee}),[u,A,M,N,ee])}var un=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:en({element:r.current,padding:i}).fn(n):r?en({element:r,padding:i}).fn(n):{}}}},dn=(e,t)=>{let n=Yt(e);return{name:n.name,fn:n.fn,options:[e,t]}},fn=(e,t)=>{let n=Xt(e);return{name:n.name,fn:n.fn,options:[e,t]}},pn=(e,t)=>({fn:tn(e).fn,options:[e,t]}),mn=(e,t)=>{let n=Zt(e);return{name:n.name,fn:n.fn,options:[e,t]}},hn=(e,t)=>{let n=Qt(e);return{name:n.name,fn:n.fn,options:[e,t]}},gn=(e,t)=>{let n=$t(e);return{name:n.name,fn:n.fn,options:[e,t]}},_n=(e,t)=>{let n=un(e);return{name:n.name,fn:n.fn,options:[e,t]}},vn=`Arrow`,yn=g.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,_.jsx)(m.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,_.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});yn.displayName=vn;var bn=yn;function xn(e){let[t,n]=g.useState(void 0);return h(()=>
3{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var Sn=`Popper`,[Cn,wn]=d(Sn),[Tn,En]=Cn(Sn),Dn=e=>{let{__scopePopper:t,children:n}=e,[r,i]=g.useState(null),[a,o]=g.useState(void 0);return(0,_.jsx)(Tn,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})};Dn.displayName=Sn;var On=`PopperAnchor`,kn=g.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=En(On,n),s=g.useRef(null),c=o.onAnchorChange,l=a(t,g.useCallback(e=>{s.current=e,e&&c(e)},[c])),u=g.useRef(null);g.useEffect(()=>{if(!r)return;let e=u.current;u.current=r.current,e!==u.current&&c(u.current)});let d=o.placementState&&zn(o.placementState),f=d?.[0],p=d?.[1];return r?null:(0,_.jsx)(m.div,{"data-radix-popper-side":f,"data-radix-popper-align":p,...i,ref:l})});kn.displayName=On;var An=`PopperContent`,[jn,Mn]=Cn(An),Nn=g.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:o=`center`,alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f=`partial`,hideWhenDetached:v=!1,updatePositionStrategy:y=`optimized`,onPlaced:b,...x}=e,S=En(An,n),[C,w]=g.useState(null),T=a(t,w),[E,D]=g.useState(null),O=xn(E),k=O?.width??0,A=O?.height??0,j=r+(o===`center`?``:`-`+o),M=typeof d==`number`?d:{top:0,right:0,bottom:0,left:0,...d},N=Array.isArray(u)?u:[u],ee=N.length>0,P={padding:M,boundary:N.filter(Ln),altBoundary:ee},{refs:te,floatingStyles:ne,placement:F,isPositioned:I,middlewareData:L}=ln({strategy:`fixed`,placement:j,whileElementsMounted:(...e)=>Jt(...e,{animationFrame:y===`always`}),elements:{reference:S.anchor},middleware:[dn({mainAxis:i+A,alignmentAxis:s}),l&&fn({mainAxis:!0,crossAxis:!1,limiter:f===`partial`?pn():void 0,...P}),l&&mn({...P}),hn({...P,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),E&&_n({element:E,padding:c}),Rn({arrowWidth:k,arrowHeight:A}),v&&gn({strategy:`referenceHidden`,...P,boundary:ee?P.boundary:void 0})]}),re=S.setPlacementState;h(()=>(re(F),()=>{re(void 0)}),[F,re]);let[ie,ae]=zn(F),oe=p(b);h(()=>{I&&oe?.()},[I,oe]);let se=L.arrow?.x,ce=L.arrow?.y,le=L.arrow?.centerOffset!==0,[ue,de]=g.useState();return h(()=>{C&&de(window.getComputedStyle(C).zIndex)},[C]),(0,_.jsx)(`div`,{ref:te.setFloating,"data-radix-popper-content-wrapper":``,style:{...ne,transform:I?ne.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ue,"--radix-popper-transform-origin":[L.transformOrigin?.x,L.transformOrigin?.y].join(` `),...L.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,_.jsx)(jn,{scope:n,placedSide:ie,placedAlign:ae,onArrowChange:D,arrowX:se,arrowY:ce,shouldHideArrow:le,children:(0,_.jsx)(m.div,{"data-side":ie,"data-align":ae,...x,ref:T,style:{...x.style,animation:I?void 0:`none`}})})})});Nn.displayName=An;var Pn=`PopperArrow`,Fn={top:`bottom`,right:`left`,bottom:`top`,left:`right`},In=g.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=Mn(Pn,n),a=Fn[i.placedSide];return(0,_.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,_.jsx)(bn,{...r,ref:t,style:{...r.style,display:`block`}})})});In.displayName=Pn;function Ln(e){return e!==null}var Rn=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=zn(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function zn(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var Bn=Dn,Vn=kn,Hn=Nn,Un=In,Wn=`Portal`,Gn=g.forwardRef((e,t)=>
3{let{container:n,...r}=e,[i,a]=g.useState(!1);h(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?ne.createPortal((0,_.jsx)(m.div,{...r,ref:t}),o):null});Gn.displayName=Wn;function Kn(e,t){return g.useReducer((e,n)=>t[e][n]??e,e)}var qn=e=>{let{present:t,children:n}=e,r=Jn(t),i=typeof n==`function`?n({present:r.isPresent}):g.Children.only(n),a=Xn(r.ref,Qn(i));return typeof n==`function`||r.isPresent?g.cloneElement(i,{ref:a}):null};qn.displayName=`Presence`;function Jn(e){let[t,n]=g.useState(),r=g.useRef(null),i=g.useRef(e),a=g.useRef(`none`),[o,s]=Kn(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return g.useEffect(()=>{let e=Zn(r.current);a.current=o===`mounted`?e:`none`},[o]),h(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=Zn(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),h(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=Zn(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=Zn(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:g.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function Yn(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Xn(...e){let t=g.useRef(e);return t.current=e,g.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=Yn(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():Yn(n[e],null)}}},[])}function Zn(e){return e?.animationName||`none`}function Qn(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var $n=g.useInsertionEffect||h;function er({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=tr({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=g.useRef(e!==void 0);g.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=s},[s,r])}return[c,g.useCallback(t=>{if(s){let n=nr(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function tr({defaultProp:e,onChange:t}){let[n,r]=g.useState(e),i=g.useRef(n),a=g.useRef(t);return $n(()=>{a.current=t},[t]),g.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function nr(e){return typeof e==`function`}var rr=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),ir=`VisuallyHidden`,ar=g.forwardRef((e,t)=>(0,_.jsx)(m.span,{...e,ref:t,style:{...rr,...e.style}}));ar.displayName=ir;var or=ar,[sr,cr]=d(`Tooltip`,[wn]),lr=wn(),ur=`TooltipProvider`,dr=700,fr=`tooltip.open`,[pr,mr]=sr(ur),hr=e=>{let{__scopeTooltip:t,delayDuration:n=dr,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=g.useRef(!0),s=g.useRef(!1),c=g.useRef(0);return g.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,_.jsx)(pr,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:g.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:g.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>
vendor: 5,268 bytes, line 3
3o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:g.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};hr.displayName=ur;var gr=`Tooltip`,[_r,vr]=sr(gr),yr=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=mr(gr,e.__scopeTooltip),l=lr(t),[u,d]=g.useState(null),f=be(),p=g.useRef(0),m=o??c.disableHoverableContent,h=s??c.delayDuration,v=g.useRef(!1),[y,b]=er({prop:r,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(fr))):c.onClose(),a?.(e)},caller:gr}),x=g.useMemo(()=>y?v.current?`delayed-open`:`instant-open`:`closed`,[y]),S=g.useCallback(()=>{window.clearTimeout(p.current),p.current=0,v.current=!1,b(!0)},[b]),C=g.useCallback(()=>{window.clearTimeout(p.current),p.current=0,b(!1)},[b]),w=g.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{v.current=!0,b(!0),p.current=0},h)},[h,b]);return g.useEffect(()=>()=>{p.current&&=(window.clearTimeout(p.current),0)},[]),(0,_.jsx)(Bn,{...l,children:(0,_.jsx)(_r,{scope:t,contentId:f,open:y,stateAttribute:x,trigger:u,onTriggerChange:d,onTriggerEnter:g.useCallback(()=>{c.isOpenDelayedRef.current?w():S()},[c.isOpenDelayedRef,w,S]),onTriggerLeave:g.useCallback(()=>{m?C():(window.clearTimeout(p.current),p.current=0)},[C,m]),onOpen:S,onClose:C,disableHoverableContent:m,children:n})})};yr.displayName=gr;var br=`TooltipTrigger`,xr=g.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=vr(br,n),o=mr(br,n),s=lr(n),c=a(t,g.useRef(null),i.onTriggerChange),l=g.useRef(!1),u=g.useRef(!1),d=g.useCallback(()=>l.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener(`pointerup`,d),[d]),(0,_.jsx)(Vn,{asChild:!0,...s,children:(0,_.jsx)(m.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:c,onPointerMove:F(e.onPointerMove,e=>{e.pointerType!==`touch`&&!u.current&&!o.isPointerInTransitRef.current&&(i.onTriggerEnter(),u.current=!0)}),onPointerLeave:F(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:F(e.onPointerDown,()=>{i.open&&i.onClose(),l.current=!0,document.addEventListener(`pointerup`,d,{once:!0})}),onFocus:F(e.onFocus,()=>{l.current||i.onOpen()}),onBlur:F(e.onBlur,i.onClose),onClick:F(e.onClick,i.onClose)})})});xr.displayName=br;var Sr=`TooltipPortal`,[Cr,wr]=sr(Sr,{forceMount:void 0}),Tr=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=vr(Sr,t);return(0,_.jsx)(Cr,{scope:t,forceMount:n,children:(0,_.jsx)(qn,{present:n||a.open,children:(0,_.jsx)(Gn,{asChild:!0,container:i,children:r})})})};Tr.displayName=Sr;var Er=`TooltipContent`,Dr=g.forwardRef((e,t)=>{let n=wr(Er,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=vr(Er,e.__scopeTooltip);return(0,_.jsx)(qn,{present:r||o.open,children:o.disableHoverableContent?(0,_.jsx)(Mr,{side:i,...a,ref:t}):(0,_.jsx)(Or,{side:i,...a,ref:t})})}),Or=g.forwardRef((e,t)=>{let n=vr(Er,e.__scopeTooltip),r=mr(Er,e.__scopeTooltip),i=g.useRef(null),o=a(t,i),[s,c]=g.useState(null),{trigger:l,onClose:u}=n,d=i.current,{onPointerInTransitChange:f}=r,p=g.useCallback(()=>{c(null),f(!1)},[f]),m=g.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=Ir(r,Fr(r,n.getBoundingClientRect())),a=Lr(t.getBoundingClientRect()),o=zr([...i,...a]);c(o),f(!0)},[f]);return g.useEffect(()=>()=>p(),[p]),g.useEffect(()=>{if(l&&d){let e=e=>m(e,d),t=e=>m(e,l);return l.addEventListener(`pointerleave`,e),d.addEventListener(`pointerleave`,t),()=>{l.removeEventListener(`pointerleave`,e),d.removeEventListener(`pointerleave`,t)}}},[l,d,m,p]),g.useEffect(()=>{if(s){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=l?.contains(t)||d?.contains(t),i=!Rr(n,s);r?p():i&&(p(),u())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[l,d,s,u,p]),(0,_.jsx)(Mr,{...e,ref:o})}),[kr,Ar]=sr(gr,{isInside:!1}),jr=c(`TooltipContent`),Mr=g.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,c=vr(Er,n),l=lr(n),{onClose:u}=c;return g.useEffect(()=>(document.addEventListener(fr,u),()=>document.removeEventListener(fr,u)),[u]),g.useEffect(()=>{if(c.trigger){let e=e=>{e.target instanceof Node&&e.target.contains(c.trigger)&&u()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[c.trigger,u]),(0,_.jsx)(ue,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:(0,_.jsxs)(Hn,{"data-state":c.stateAttribute,...l,...s,ref:t,style:{...s.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:[(0,_.jsx)(jr,{children:r}),(0,_.jsx)(kr,{scope:n,isInside:!0,children:(0,_.jsx)(or,{id:c.contentId,role:`tooltip`,children:i||r})})]})})});Dr.displayName=Er;var Nr=`TooltipArrow`,Pr=g.forwardRef((e,t)=>
3{let{__scopeTooltip:n,...r}=e,i=lr(n);return Ar(Nr,n).isInside?null:(0,_.jsx)(Un,{...i,...r,ref:t})});Pr.displayName=Nr;function Fr(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function Ir(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Lr(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function Rr(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function zr(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),Br(t)}function Br(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Vr=hr,Hr=yr,Ur=xr,Wr=Tr,Gr=Dr,Kr=Vr,qr=Hr,Jr=Ur,Yr=g.forwardRef(({className:e,sideOffset:t=4,...n},r)=>(0,_.jsx)(Wr,{children:(0,_.jsx)(`div`,{className:ti,children:(0,_.jsx)(Gr,{ref:r,className:o(`z-50 animate-in overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 dark:bg-popover dark:text-popover-foreground`,e),sideOffset:t,...n})})}));Yr.displayName=Gr.displayName;var Xr=(0,g.createContext)({isAnyTextFieldFocused:!1,setFocusState:()=>{},darkMode:!1}),Zr=()=>(0,g.useContext)(Xr),Qr=()=>{let e=Zr();if(!e)throw Error(`useFocusContext must be used within a FocusProvider`);return e},$r=()=>{let[e,t]=(0,g.useState)(!1);return(0,g.useEffect)(()=>(t(!0),()=>t(!1)),[]),e?(0,ne.createPortal)((0,_.jsx)(`div`,{className:ti,style:{width:`unset`,height:`unset`},children:(0,_.jsx)(te,{duration:5e3,icons:{error:(0,_.jsx)(j.ErrorFill,{className:`text-red`}),success:(0,_.jsx)(j.SuccessFill,{className:`text-green`}),info:(0,_.jsx)(j.InfoFill,{className:`text-text-tertiary`})},position:`bottom-left`,toastOptions:{classNames:{title:`mt-[-1px]! text-md! font-semibold! leading-tighter! tracking-[0.1px]!`,description:`text-text-primary! text-sm! mt-px!`,icon:`ml-0!`},style:{alignItems:`flex-start`,maxWidth:`290px`}},closeButton:!0})}),document.body):null},ei=({darkMode:e,children:t})=>{let[n,r]=(0,g.useState)(!1);return(0,_.jsx)(Xr.Provider,{value:{isAnyTextFieldFocused:n,setFocusState:e=>{r(e)},darkMode:e},children:(0,_.jsx)(ee,{children:(0,_.jsxs)(Kr,{children:[t,(0,_.jsx)($r,{})]})})})},ti=`shade shade-admin shade-activitypub`,ni=({darkMode:e,className:t,children:n,...r})=>(0,_.jsx)(`div`,{className:l(`shade`,t),...r,children:(0,_.jsx)(ei,{darkMode:e,children:n})});export{M as C,P as S,xn as _,Kr as a,pe as b,rr as c,Gn as d,Vn as f,wn as g,Bn as h,Yr as i,er as l,Hn as m,ni as n,Jr as o,Un as p,qr as r,Qr as s,ti as t,qn as u,be as v,F as x,ue as y};

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.