@epic-web/workshop-app 4.2.8 → 4.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/build/client/assets/{_-CsdFvUbA.js → _-ByTWgb53.js} +2 -2
  2. package/build/client/assets/{_-CsdFvUbA.js.map → _-ByTWgb53.js.map} +1 -1
  3. package/build/client/assets/{_exerciseNumber-DWZNkWZM.js → _exerciseNumber-s_qbmGEJ.js} +2 -2
  4. package/build/client/assets/{_exerciseNumber-DWZNkWZM.js.map → _exerciseNumber-s_qbmGEJ.js.map} +1 -1
  5. package/build/client/assets/{_exerciseNumber_._stepNumber-P76hDsE6.js → _exerciseNumber_._stepNumber-D1wwEMQx.js} +2 -2
  6. package/build/client/assets/{_exerciseNumber_._stepNumber-P76hDsE6.js.map → _exerciseNumber_._stepNumber-D1wwEMQx.js.map} +1 -1
  7. package/build/client/assets/{_exerciseNumber_.finished-CpC-flTW.js → _exerciseNumber_.finished-DJgT9oaU.js} +2 -2
  8. package/build/client/assets/{_exerciseNumber_.finished-CpC-flTW.js.map → _exerciseNumber_.finished-DJgT9oaU.js.map} +1 -1
  9. package/build/client/assets/{_layout-BSoUgboG.js → _layout-49l6Rvwp.js} +2 -2
  10. package/build/client/assets/{_layout-BSoUgboG.js.map → _layout-49l6Rvwp.js.map} +1 -1
  11. package/build/client/assets/{_layout-DEZ-aTmx.js → _layout-BaPtC79F.js} +2 -2
  12. package/build/client/assets/{_layout-DEZ-aTmx.js.map → _layout-BaPtC79F.js.map} +1 -1
  13. package/build/client/assets/_layout-Bj9PyQQD.js +2 -0
  14. package/build/client/assets/{_layout-D1A2zp9y.js.map → _layout-Bj9PyQQD.js.map} +1 -1
  15. package/build/client/assets/{_layout-C8fK4Z98.js → _layout-D7Qo_r0X.js} +2 -2
  16. package/build/client/assets/{_layout-C8fK4Z98.js.map → _layout-D7Qo_r0X.js.map} +1 -1
  17. package/build/client/assets/{account-BeKnQB9r.js → account-Bk4o4AzZ.js} +2 -2
  18. package/build/client/assets/{account-BeKnQB9r.js.map → account-Bk4o4AzZ.js.map} +1 -1
  19. package/build/client/assets/{button-Da1iG51o.js → button-DnQOyJAN.js} +2 -2
  20. package/build/client/assets/{button-Da1iG51o.js.map → button-DnQOyJAN.js.map} +1 -1
  21. package/build/client/assets/{client-hints-B2pbEa_9.js → client-hints-KnbHFIgn.js} +2 -2
  22. package/build/client/assets/{client-hints-B2pbEa_9.js.map → client-hints-KnbHFIgn.js.map} +1 -1
  23. package/build/client/assets/{components-BM_XUa9h.js → components-Dj3sm47B.js} +15 -15
  24. package/build/client/assets/{components-BM_XUa9h.js.map → components-Dj3sm47B.js.map} +1 -1
  25. package/build/client/assets/diff-CLRdJhCn.js +2 -0
  26. package/build/client/assets/{diff-BDeBUdSw.js.map → diff-CLRdJhCn.js.map} +1 -1
  27. package/build/client/assets/{diff-BQhWtDyS.js → diff-CT3-9rtW.js} +2 -2
  28. package/build/client/assets/{diff-BQhWtDyS.js.map → diff-CT3-9rtW.js.map} +1 -1
  29. package/build/client/assets/discord-CK7yz4w6.js +2 -0
  30. package/build/client/assets/discord-CK7yz4w6.js.map +1 -0
  31. package/build/client/assets/{discord-BMNnObT9.js → discord-CsluX01E.js} +2 -2
  32. package/build/client/assets/{discord-BMNnObT9.js.map → discord-CsluX01E.js.map} +1 -1
  33. package/build/client/assets/{entry.client-XC5tKTFs.js → entry.client-DBBrAxtJ.js} +2 -2
  34. package/build/client/assets/{entry.client-XC5tKTFs.js.map → entry.client-DBBrAxtJ.js.map} +1 -1
  35. package/build/client/assets/{epic-video-CxRPT-8l.js → epic-video-Df7qGSN7.js} +2 -2
  36. package/build/client/assets/{epic-video-CxRPT-8l.js.map → epic-video-Df7qGSN7.js.map} +1 -1
  37. package/build/client/assets/{error-boundary-tJSWbP6w.js → error-boundary-Bg54_knF.js} +2 -2
  38. package/build/client/assets/{error-boundary-tJSWbP6w.js.map → error-boundary-Bg54_knF.js.map} +1 -1
  39. package/build/client/assets/{finished-CMGRmsnb.js → finished-Dw3SJA8A.js} +2 -2
  40. package/build/client/assets/{finished-CMGRmsnb.js.map → finished-Dw3SJA8A.js.map} +1 -1
  41. package/build/client/assets/{index-B8G3eD8F.js → index-BL4aE6WC.js} +2 -2
  42. package/build/client/assets/{index-B8G3eD8F.js.map → index-BL4aE6WC.js.map} +1 -1
  43. package/build/client/assets/{index-BymJEf3X.js → index-BfoHqrT5.js} +2 -2
  44. package/build/client/assets/{index-BymJEf3X.js.map → index-BfoHqrT5.js.map} +1 -1
  45. package/build/client/assets/{index-Dc59VwXx.js → index-CLnz0tXz.js} +2 -2
  46. package/build/client/assets/{index-Dc59VwXx.js.map → index-CLnz0tXz.js.map} +1 -1
  47. package/build/client/assets/index-D1WEsmVZ.js +36 -0
  48. package/build/client/assets/{index-BDqSZ0-h.js.map → index-D1WEsmVZ.js.map} +1 -1
  49. package/build/client/assets/{index-CQZ5FyEE.js → index-YgRENgjt.js} +2 -2
  50. package/build/client/assets/{index-CQZ5FyEE.js.map → index-YgRENgjt.js.map} +1 -1
  51. package/build/client/assets/{loading-DsjO-T0W.js → loading-D-DClzm1.js} +2 -2
  52. package/build/client/assets/{loading-DsjO-T0W.js.map → loading-D-DClzm1.js.map} +1 -1
  53. package/build/client/assets/{login-CcuvIoiW.js → login-CjvZj820.js} +2 -2
  54. package/build/client/assets/{login-CcuvIoiW.js.map → login-CjvZj820.js.map} +1 -1
  55. package/build/client/assets/{manifest-1656ae4d.js → manifest-db6261a7.js} +1 -1
  56. package/build/client/assets/mdx-ytg-y2nh.js +2 -0
  57. package/build/client/assets/{mdx-CZ_BPVoS.js.map → mdx-ytg-y2nh.js.map} +1 -1
  58. package/build/client/assets/misc-CXGQ7VS9.js +2 -0
  59. package/build/client/assets/{misc-C1rq7sPa.js.map → misc-CXGQ7VS9.js.map} +1 -1
  60. package/build/client/assets/{nav-chevrons-C-dN3WfT.js → nav-chevrons-D8c9lJW6.js} +2 -2
  61. package/build/client/assets/{nav-chevrons-C-dN3WfT.js.map → nav-chevrons-D8c9lJW6.js.map} +1 -1
  62. package/build/client/assets/{onboarding-CfXLKsN3.js → onboarding-BxcIdiGj.js} +2 -2
  63. package/build/client/assets/{onboarding-CfXLKsN3.js.map → onboarding-BxcIdiGj.js.map} +1 -1
  64. package/build/client/assets/{presence-BF7lWuVd.js → presence-u-05JV3Z.js} +2 -2
  65. package/build/client/assets/{presence-BF7lWuVd.js.map → presence-u-05JV3Z.js.map} +1 -1
  66. package/build/client/assets/{progress-mfa_5CZx.js → progress-CBZt2pmu.js} +2 -2
  67. package/build/client/assets/{progress-mfa_5CZx.js.map → progress-CBZt2pmu.js.map} +1 -1
  68. package/build/client/assets/{progress-bar-BmszwN_j.js → progress-bar-DX6yYES2.js} +2 -2
  69. package/build/client/assets/{progress-bar-BmszwN_j.js.map → progress-bar-DX6yYES2.js.map} +1 -1
  70. package/build/client/assets/{root-1Cc21xa6.js → root-B02acrJe.js} +2 -2
  71. package/build/client/assets/{root-1Cc21xa6.js.map → root-B02acrJe.js.map} +1 -1
  72. package/build/client/assets/{support--jou3sWH.js → support-QTdmLyE7.js} +2 -2
  73. package/build/client/assets/{support--jou3sWH.js.map → support-QTdmLyE7.js.map} +1 -1
  74. package/build/client/assets/{tooltip-BlVFw-is.js → tooltip-CVFWPOu0.js} +2 -2
  75. package/build/client/assets/{tooltip-BlVFw-is.js.map → tooltip-CVFWPOu0.js.map} +1 -1
  76. package/build/client/assets/{use-event-source-DPLyo0Bh.js → use-event-source-DXlRuRq2.js} +2 -2
  77. package/build/client/assets/{use-event-source-DPLyo0Bh.js.map → use-event-source-DXlRuRq2.js.map} +1 -1
  78. package/build/client/assets/{user-p2QVtDZI.js → user-DiGtbaa7.js} +2 -2
  79. package/build/client/assets/{user-p2QVtDZI.js.map → user-DiGtbaa7.js.map} +1 -1
  80. package/build/server/index.js +3 -2
  81. package/build/server/index.js.map +1 -1
  82. package/package.json +3 -3
  83. package/build/client/assets/_layout-D1A2zp9y.js +0 -2
  84. package/build/client/assets/diff-BDeBUdSw.js +0 -2
  85. package/build/client/assets/discord-DdAReDkL.js +0 -2
  86. package/build/client/assets/discord-DdAReDkL.js.map +0 -1
  87. package/build/client/assets/index-BDqSZ0-h.js +0 -36
  88. package/build/client/assets/mdx-CZ_BPVoS.js +0 -2
  89. package/build/client/assets/misc-C1rq7sPa.js +0 -2
@@ -1,2 +1,2 @@
1
- import{r as a,$ as Bt,j as ve}from"./index-BDqSZ0-h.js";import{r as _e}from"./components-BM_XUa9h.js";import{c as zt}from"./misc-C1rq7sPa.js";function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},L.apply(this,arguments)}function B(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Vt(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ot(...e){return t=>e.forEach(n=>Vt(n,t))}function te(...e){return a.useCallback(ot(...e),e)}function rt(e,t=[]){let n=[];function o(i,s){const l=a.createContext(s),c=n.length;n=[...n,s];function f(d){const{scope:m,children:p,...h}=d,v=(m==null?void 0:m[e][c])||l,g=a.useMemo(()=>h,Object.values(h));return a.createElement(v.Provider,{value:g},p)}function u(d,m){const p=(m==null?void 0:m[e][c])||l,h=a.useContext(p);if(h)return h;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return f.displayName=i+"Provider",[f,u]}const r=()=>{const i=n.map(s=>a.createContext(s));return function(l){const c=(l==null?void 0:l[e])||i;return a.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return r.scopeName=e,[o,jt(r,...t)]}function jt(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const s=o.reduce((l,{useScope:c,scopeName:f})=>{const d=c(i)[`__scope${f}`];return{...l,...d}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}const it=a.forwardRef((e,t)=>{const{children:n,...o}=e,r=a.Children.toArray(n),i=r.find(Ut);if(i){const s=i.props.children,l=r.map(c=>c===i?a.Children.count(s)>1?a.Children.only(null):a.isValidElement(s)?s.props.children:null:c);return a.createElement(Ae,L({},o,{ref:t}),a.isValidElement(s)?a.cloneElement(s,void 0,l):null)}return a.createElement(Ae,L({},o,{ref:t}),n)});it.displayName="Slot";const Ae=a.forwardRef((e,t)=>{const{children:n,...o}=e;return a.isValidElement(n)?a.cloneElement(n,{...Yt(o,n.props),ref:t?ot(t,n.ref):n.ref}):a.Children.count(n)>1?a.Children.only(null):null});Ae.displayName="SlotClone";const st=({children:e})=>a.createElement(a.Fragment,null,e);function Ut(e){return a.isValidElement(e)&&e.type===st}function Yt(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...l)=>{i(...l),r(...l)}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}const Xt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],le=Xt.reduce((e,t)=>{const n=a.forwardRef((o,r)=>{const{asChild:i,...s}=o,l=i?it:t;return a.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),a.createElement(l,L({},s,{ref:r}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Gt(e,t){e&&_e.flushSync(()=>e.dispatchEvent(t))}function ne(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...n)=>{var o;return(o=t.current)===null||o===void 0?void 0:o.call(t,...n)},[])}function Kt(e,t=globalThis==null?void 0:globalThis.document){const n=ne(e);a.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o),()=>t.removeEventListener("keydown",o)},[n,t])}const Te="dismissableLayer.update",qt="dismissableLayer.pointerDownOutside",Zt="dismissableLayer.focusOutside";let Ue;const Jt=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qt=a.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...f}=e,u=a.useContext(Jt),[d,m]=a.useState(null),p=(n=d==null?void 0:d.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,h]=a.useState({}),v=te(t,C=>m(C)),g=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=g.indexOf(w),$=d?g.indexOf(d):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,b=$>=x,E=en(C=>{const S=C.target,N=[...u.branches].some(_=>_.contains(S));!b||N||(i==null||i(C),l==null||l(C),C.defaultPrevented||c==null||c())},p),P=tn(C=>{const S=C.target;[...u.branches].some(_=>_.contains(S))||(s==null||s(C),l==null||l(C),C.defaultPrevented||c==null||c())},p);return Kt(C=>{$===u.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&c&&(C.preventDefault(),c()))},p),a.useEffect(()=>{if(d)return o&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ue=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Ye(),()=>{o&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Ue)}},[d,p,o,u]),a.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Ye())},[d,u]),a.useEffect(()=>{const C=()=>h({});return document.addEventListener(Te,C),()=>document.removeEventListener(Te,C)},[]),a.createElement(le.div,L({},f,{ref:v,style:{pointerEvents:y?b?"auto":"none":void 0,...e.style},onFocusCapture:B(e.onFocusCapture,P.onFocusCapture),onBlurCapture:B(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:B(e.onPointerDownCapture,E.onPointerDownCapture)}))});function en(e,t=globalThis==null?void 0:globalThis.document){const n=ne(e),o=a.useRef(!1),r=a.useRef(()=>{});return a.useEffect(()=>{const i=l=>{if(l.target&&!o.current){let f=function(){ct(qt,n,c,{discrete:!0})};const c={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=f,t.addEventListener("click",r.current,{once:!0})):f()}else t.removeEventListener("click",r.current);o.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function tn(e,t=globalThis==null?void 0:globalThis.document){const n=ne(e),o=a.useRef(!1);return a.useEffect(()=>{const r=i=>{i.target&&!o.current&&ct(Zt,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Ye(){const e=new CustomEvent(Te);document.dispatchEvent(e)}function ct(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Gt(r,i):r.dispatchEvent(i)}const Q=globalThis!=null&&globalThis.document?a.useLayoutEffect:()=>{},nn=Bt.useId||(()=>{});let on=0;function rn(e){const[t,n]=a.useState(nn());return Q(()=>{e||n(o=>o??String(on++))},[e]),e||(t?`radix-${t}`:"")}const sn=["top","right","bottom","left"],X=Math.min,M=Math.max,xe=Math.round,he=Math.floor,G=e=>({x:e,y:e}),cn={left:"right",right:"left",bottom:"top",top:"bottom"},an={start:"end",end:"start"};function Re(e,t,n){return M(e,X(t,n))}function z(e,t){return typeof e=="function"?e(t):e}function V(e){return e.split("-")[0]}function oe(e){return e.split("-")[1]}function Le(e){return e==="x"?"y":"x"}function Ne(e){return e==="y"?"height":"width"}function re(e){return["top","bottom"].includes(V(e))?"y":"x"}function Me(e){return Le(re(e))}function ln(e,t,n){n===void 0&&(n=!1);const o=oe(e),r=Me(e),i=Ne(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=$e(s)),[s,$e(s)]}function fn(e){const t=$e(e);return[Se(e),t,Se(t)]}function Se(e){return e.replace(/start|end/g,t=>an[t])}function un(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:s;default:return[]}}function dn(e,t,n,o){const r=oe(e);let i=un(V(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(Se)))),i}function $e(e){return e.replace(/left|right|bottom|top/g,t=>cn[t])}function pn(e){return{top:0,right:0,bottom:0,left:0,...e}}function at(e){return typeof e!="number"?pn(e):{top:e,right:e,bottom:e,left:e}}function ye(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Xe(e,t,n){let{reference:o,floating:r}=e;const i=re(t),s=Me(t),l=Ne(s),c=V(t),f=i==="y",u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,m=o[l]/2-r[l]/2;let p;switch(c){case"top":p={x:u,y:o.y-r.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(oe(t)){case"start":p[s]-=m*(n&&f?-1:1);break;case"end":p[s]+=m*(n&&f?-1:1);break}return p}const mn=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let f=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=Xe(f,o,c),m=o,p={},h=0;for(let v=0;v<l.length;v++){const{name:g,fn:w}=l[v],{x,y:$,data:y,reset:b}=await w({x:u,y:d,initialPlacement:o,placement:m,strategy:r,middlewareData:p,rects:f,platform:s,elements:{reference:e,floating:t}});u=x??u,d=$??d,p={...p,[g]:{...p[g],...y}},b&&h<=50&&(h++,typeof b=="object"&&(b.placement&&(m=b.placement),b.rects&&(f=b.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):b.rects),{x:u,y:d}=Xe(f,m,c)),v=-1)}return{x:u,y:d,placement:m,strategy:r,middlewareData:p}};async function se(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:l,strategy:c}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:m=!1,padding:p=0}=z(t,e),h=at(p),g=l[m?d==="floating"?"reference":"floating":d],w=ye(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(g)))==null||n?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:f,rootBoundary:u,strategy:c})),x=d==="floating"?{...s.floating,x:o,y:r}:s.reference,$=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),y=await(i.isElement==null?void 0:i.isElement($))?await(i.getScale==null?void 0:i.getScale($))||{x:1,y:1}:{x:1,y:1},b=ye(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:x,offsetParent:$,strategy:c}):x);return{top:(w.top-b.top+h.top)/y.y,bottom:(b.bottom-w.bottom+h.bottom)/y.y,left:(w.left-b.left+h.left)/y.x,right:(b.right-w.right+h.right)/y.x}}const hn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:l,middlewareData:c}=t,{element:f,padding:u=0}=z(e,t)||{};if(f==null)return{};const d=at(u),m={x:n,y:o},p=Me(r),h=Ne(p),v=await s.getDimensions(f),g=p==="y",w=g?"top":"left",x=g?"bottom":"right",$=g?"clientHeight":"clientWidth",y=i.reference[h]+i.reference[p]-m[p]-i.floating[h],b=m[p]-i.reference[p],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let P=E?E[$]:0;(!P||!await(s.isElement==null?void 0:s.isElement(E)))&&(P=l.floating[$]||i.floating[h]);const C=y/2-b/2,S=P/2-v[h]/2-1,N=X(d[w],S),_=X(d[x],S),T=N,F=P-v[h]-_,A=P/2-v[h]/2+C,R=Re(T,A,F),D=!c.arrow&&oe(r)!=null&&A!==R&&i.reference[h]/2-(A<T?N:_)-v[h]/2<0,O=D?A<T?A-T:A-F:0;return{[p]:m[p]+O,data:{[p]:R,centerOffset:A-R-O,...D&&{alignmentOffset:O}},reset:D}}}),gn=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:l,platform:c,elements:f}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...g}=z(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=V(r),x=V(l)===l,$=await(c.isRTL==null?void 0:c.isRTL(f.floating)),y=m||(x||!v?[$e(l)]:fn(l));!m&&h!=="none"&&y.push(...dn(l,v,h,$));const b=[l,...y],E=await se(t,g),P=[];let C=((o=i.flip)==null?void 0:o.overflows)||[];if(u&&P.push(E[w]),d){const T=ln(r,s,$);P.push(E[T[0]],E[T[1]])}if(C=[...C,{placement:r,overflows:P}],!P.every(T=>T<=0)){var S,N;const T=(((S=i.flip)==null?void 0:S.index)||0)+1,F=b[T];if(F)return{data:{index:T,overflows:C},reset:{placement:F}};let A=(N=C.filter(R=>R.overflows[0]<=0).sort((R,D)=>R.overflows[1]-D.overflows[1])[0])==null?void 0:N.placement;if(!A)switch(p){case"bestFit":{var _;const R=(_=C.map(D=>[D.placement,D.overflows.filter(O=>O>0).reduce((O,Y)=>O+Y,0)]).sort((D,O)=>D[1]-O[1])[0])==null?void 0:_[0];R&&(A=R);break}case"initialPlacement":A=l;break}if(r!==A)return{reset:{placement:A}}}return{}}}};function Ge(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ke(e){return sn.some(t=>e[t]>=0)}const vn=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=z(e,t);switch(o){case"referenceHidden":{const i=await se(t,{...r,elementContext:"reference"}),s=Ge(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ke(s)}}}case"escaped":{const i=await se(t,{...r,altBoundary:!0}),s=Ge(i,n.floating);return{data:{escapedOffsets:s,escaped:Ke(s)}}}default:return{}}}}};async function wn(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=V(n),l=oe(n),c=re(n)==="y",f=["left","top"].includes(s)?-1:1,u=i&&c?-1:1,d=z(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&typeof h=="number"&&(p=l==="end"?h*-1:h),c?{x:p*u,y:m*f}:{x:m*f,y:p*u}}const xn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:l}=t,c=await wn(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:s}}}}},$n=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:g=>{let{x:w,y:x}=g;return{x:w,y:x}}},...c}=z(e,t),f={x:n,y:o},u=await se(t,c),d=re(V(r)),m=Le(d);let p=f[m],h=f[d];if(i){const g=m==="y"?"top":"left",w=m==="y"?"bottom":"right",x=p+u[g],$=p-u[w];p=Re(x,p,$)}if(s){const g=d==="y"?"top":"left",w=d==="y"?"bottom":"right",x=h+u[g],$=h-u[w];h=Re(x,h,$)}const v=l.fn({...t,[m]:p,[d]:h});return{...v,data:{x:v.x-n,y:v.y-o}}}}},yn=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:c=!0,crossAxis:f=!0}=z(e,t),u={x:n,y:o},d=re(r),m=Le(d);let p=u[m],h=u[d];const v=z(l,t),g=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){const $=m==="y"?"height":"width",y=i.reference[m]-i.floating[$]+g.mainAxis,b=i.reference[m]+i.reference[$]-g.mainAxis;p<y?p=y:p>b&&(p=b)}if(f){var w,x;const $=m==="y"?"width":"height",y=["top","left"].includes(V(r)),b=i.reference[d]-i.floating[$]+(y&&((w=s.offset)==null?void 0:w[d])||0)+(y?0:g.crossAxis),E=i.reference[d]+i.reference[$]+(y?0:((x=s.offset)==null?void 0:x[d])||0)-(y?g.crossAxis:0);h<b?h=b:h>E&&(h=E)}return{[m]:p,[d]:h}}}},bn=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:i}=t,{apply:s=()=>{},...l}=z(e,t),c=await se(t,l),f=V(n),u=oe(n),d=re(n)==="y",{width:m,height:p}=o.floating;let h,v;f==="top"||f==="bottom"?(h=f,v=u===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(v=f,h=u==="end"?"top":"bottom");const g=p-c[h],w=m-c[v],x=!t.middlewareData.shift;let $=g,y=w;if(d){const E=m-c.left-c.right;y=u||x?X(w,E):E}else{const E=p-c.top-c.bottom;$=u||x?X(g,E):E}if(x&&!u){const E=M(c.left,0),P=M(c.right,0),C=M(c.top,0),S=M(c.bottom,0);d?y=m-2*(E!==0||P!==0?E+P:M(c.left,c.right)):$=p-2*(C!==0||S!==0?C+S:M(c.top,c.bottom))}await s({...t,availableWidth:y,availableHeight:$});const b=await r.getDimensions(i.floating);return m!==b.width||p!==b.height?{reset:{rects:!0}}:{}}}};function K(e){return lt(e)?(e.nodeName||"").toLowerCase():"#document"}function k(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function U(e){var t;return(t=(lt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lt(e){return e instanceof Node||e instanceof k(e).Node}function j(e){return e instanceof Element||e instanceof k(e).Element}function H(e){return e instanceof HTMLElement||e instanceof k(e).HTMLElement}function qe(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof k(e).ShadowRoot}function fe(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=I(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function En(e){return["table","td","th"].includes(K(e))}function ke(e){const t=Ie(),n=I(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Cn(e){let t=ee(e);for(;H(t)&&!Ee(t);){if(ke(t))return t;t=ee(t)}return null}function Ie(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ee(e){return["html","body","#document"].includes(K(e))}function I(e){return k(e).getComputedStyle(e)}function Ce(e){return j(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ee(e){if(K(e)==="html")return e;const t=e.assignedSlot||e.parentNode||qe(e)&&e.host||U(e);return qe(t)?t.host:t}function ft(e){const t=ee(e);return Ee(t)?e.ownerDocument?e.ownerDocument.body:e.body:H(t)&&fe(t)?t:ft(t)}function ce(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=ft(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=k(r);return i?t.concat(s,s.visualViewport||[],fe(r)?r:[],s.frameElement&&n?ce(s.frameElement):[]):t.concat(r,ce(r,[],n))}function ut(e){const t=I(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=H(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,l=xe(n)!==i||xe(o)!==s;return l&&(n=i,o=s),{width:n,height:o,$:l}}function Fe(e){return j(e)?e:e.contextElement}function J(e){const t=Fe(e);if(!H(t))return G(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=ut(t);let s=(i?xe(n.width):n.width)/o,l=(i?xe(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Pn=G(0);function dt(e){const t=k(e);return!Ie()||!t.visualViewport?Pn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function On(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==k(e)?!1:t}function q(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=Fe(e);let s=G(1);t&&(o?j(o)&&(s=J(o)):s=J(e));const l=On(i,n,o)?dt(i):G(0);let c=(r.left+l.x)/s.x,f=(r.top+l.y)/s.y,u=r.width/s.x,d=r.height/s.y;if(i){const m=k(i),p=o&&j(o)?k(o):o;let h=m,v=h.frameElement;for(;v&&o&&p!==h;){const g=J(v),w=v.getBoundingClientRect(),x=I(v),$=w.left+(v.clientLeft+parseFloat(x.paddingLeft))*g.x,y=w.top+(v.clientTop+parseFloat(x.paddingTop))*g.y;c*=g.x,f*=g.y,u*=g.x,d*=g.y,c+=$,f+=y,h=k(v),v=h.frameElement}}return ye({width:u,height:d,x:c,y:f})}const An=[":popover-open",":modal"];function pt(e){return An.some(t=>{try{return e.matches(t)}catch{return!1}})}function Tn(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=U(o),l=t?pt(t.floating):!1;if(o===s||l&&i)return n;let c={scrollLeft:0,scrollTop:0},f=G(1);const u=G(0),d=H(o);if((d||!d&&!i)&&((K(o)!=="body"||fe(s))&&(c=Ce(o)),H(o))){const m=q(o);f=J(o),u.x=m.x+o.clientLeft,u.y=m.y+o.clientTop}return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+u.x,y:n.y*f.y-c.scrollTop*f.y+u.y}}function Rn(e){return Array.from(e.getClientRects())}function mt(e){return q(U(e)).left+Ce(e).scrollLeft}function Sn(e){const t=U(e),n=Ce(e),o=e.ownerDocument.body,r=M(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=M(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+mt(e);const l=-n.scrollTop;return I(o).direction==="rtl"&&(s+=M(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:l}}function Dn(e,t){const n=k(e),o=U(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,l=0,c=0;if(r){i=r.width,s=r.height;const f=Ie();(!f||f&&t==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:s,x:l,y:c}}function _n(e,t){const n=q(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=H(e)?J(e):G(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,c=r*i.x,f=o*i.y;return{width:s,height:l,x:c,y:f}}function Ze(e,t,n){let o;if(t==="viewport")o=Dn(e,n);else if(t==="document")o=Sn(U(e));else if(j(t))o=_n(t,n);else{const r=dt(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return ye(o)}function ht(e,t){const n=ee(e);return n===t||!j(n)||Ee(n)?!1:I(n).position==="fixed"||ht(n,t)}function Ln(e,t){const n=t.get(e);if(n)return n;let o=ce(e,[],!1).filter(l=>j(l)&&K(l)!=="body"),r=null;const i=I(e).position==="fixed";let s=i?ee(e):e;for(;j(s)&&!Ee(s);){const l=I(s),c=ke(s);!c&&l.position==="fixed"&&(r=null),(i?!c&&!r:!c&&l.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||fe(s)&&!c&&ht(e,s))?o=o.filter(u=>u!==s):r=l,s=ee(s)}return t.set(e,o),o}function Nn(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?Ln(t,this._c):[].concat(n),o],l=s[0],c=s.reduce((f,u)=>{const d=Ze(t,u,r);return f.top=M(d.top,f.top),f.right=X(d.right,f.right),f.bottom=X(d.bottom,f.bottom),f.left=M(d.left,f.left),f},Ze(t,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Mn(e){const{width:t,height:n}=ut(e);return{width:t,height:n}}function kn(e,t,n){const o=H(t),r=U(t),i=n==="fixed",s=q(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=G(0);if(o||!o&&!i)if((K(t)!=="body"||fe(r))&&(l=Ce(t)),o){const d=q(t,!0,i,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else r&&(c.x=mt(r));const f=s.left+l.scrollLeft-c.x,u=s.top+l.scrollTop-c.y;return{x:f,y:u,width:s.width,height:s.height}}function Je(e,t){return!H(e)||I(e).position==="fixed"?null:t?t(e):e.offsetParent}function gt(e,t){const n=k(e);if(!H(e)||pt(e))return n;let o=Je(e,t);for(;o&&En(o)&&I(o).position==="static";)o=Je(o,t);return o&&(K(o)==="html"||K(o)==="body"&&I(o).position==="static"&&!ke(o))?n:o||Cn(e)||n}const In=async function(e){const t=this.getOffsetParent||gt,n=this.getDimensions;return{reference:kn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function Fn(e){return I(e).direction==="rtl"}const Hn={convertOffsetParentRelativeRectToViewportRelativeRect:Tn,getDocumentElement:U,getClippingRect:Nn,getOffsetParent:gt,getElementRects:In,getClientRects:Rn,getDimensions:Mn,getScale:J,isElement:j,isRTL:Fn};function Wn(e,t){let n=null,o;const r=U(e);function i(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const{left:f,top:u,width:d,height:m}=e.getBoundingClientRect();if(l||t(),!d||!m)return;const p=he(u),h=he(r.clientWidth-(f+d)),v=he(r.clientHeight-(u+m)),g=he(f),x={rootMargin:-p+"px "+-h+"px "+-v+"px "+-g+"px",threshold:M(0,X(1,c))||1};let $=!0;function y(b){const E=b[0].intersectionRatio;if(E!==c){if(!$)return s();E?s(!1,E):o=setTimeout(()=>{s(!1,1e-7)},100)}$=!1}try{n=new IntersectionObserver(y,{...x,root:r.ownerDocument})}catch{n=new IntersectionObserver(y,x)}n.observe(e)}return s(!0),i}function Bn(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,f=Fe(e),u=r||i?[...f?ce(f):[],...ce(t)]:[];u.forEach(w=>{r&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const d=f&&l?Wn(f,n):null;let m=-1,p=null;s&&(p=new ResizeObserver(w=>{let[x]=w;x&&x.target===f&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var $;($=p)==null||$.observe(t)})),n()}),f&&!c&&p.observe(f),p.observe(t));let h,v=c?q(e):null;c&&g();function g(){const w=q(e);v&&(w.x!==v.x||w.y!==v.y||w.width!==v.width||w.height!==v.height)&&n(),v=w,h=requestAnimationFrame(g)}return n(),()=>{var w;u.forEach(x=>{r&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),d==null||d(),(w=p)==null||w.disconnect(),p=null,c&&cancelAnimationFrame(h)}}const zn=$n,Vn=gn,jn=bn,Un=vn,Qe=hn,Yn=yn,Xn=(e,t,n)=>{const o=new Map,r={platform:Hn,...n},i={...r.platform,_c:o};return mn(e,t,{...r,platform:i})},Gn=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?Qe({element:o.current,padding:r}).fn(n):{}:o?Qe({element:o,padding:r}).fn(n):{}}}};var we=typeof document<"u"?a.useLayoutEffect:a.useEffect;function be(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,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!be(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!be(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function vt(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function et(e,t){const n=vt(e);return Math.round(t*n)/n}function tt(e){const t=a.useRef(e);return we(()=>{t.current=e}),t}function Kn(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:c,open:f}=e,[u,d]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=a.useState(o);be(m,o)||p(o);const[h,v]=a.useState(null),[g,w]=a.useState(null),x=a.useCallback(O=>{O!==E.current&&(E.current=O,v(O))},[]),$=a.useCallback(O=>{O!==P.current&&(P.current=O,w(O))},[]),y=i||h,b=s||g,E=a.useRef(null),P=a.useRef(null),C=a.useRef(u),S=c!=null,N=tt(c),_=tt(r),T=a.useCallback(()=>{if(!E.current||!P.current)return;const O={placement:t,strategy:n,middleware:m};_.current&&(O.platform=_.current),Xn(E.current,P.current,O).then(Y=>{const W={...Y,isPositioned:!0};F.current&&!be(C.current,W)&&(C.current=W,_e.flushSync(()=>{d(W)}))})},[m,t,n,_]);we(()=>{f===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,d(O=>({...O,isPositioned:!1})))},[f]);const F=a.useRef(!1);we(()=>(F.current=!0,()=>{F.current=!1}),[]),we(()=>{if(y&&(E.current=y),b&&(P.current=b),y&&b){if(N.current)return N.current(y,b,T);T()}},[y,b,T,N,S]);const A=a.useMemo(()=>({reference:E,floating:P,setReference:x,setFloating:$}),[x,$]),R=a.useMemo(()=>({reference:y,floating:b}),[y,b]),D=a.useMemo(()=>{const O={position:n,left:0,top:0};if(!R.floating)return O;const Y=et(R.floating,u.x),W=et(R.floating,u.y);return l?{...O,transform:"translate("+Y+"px, "+W+"px)",...vt(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Y,top:W}},[n,l,R.floating,u.x,u.y]);return a.useMemo(()=>({...u,update:T,refs:A,elements:R,floatingStyles:D}),[u,T,A,R,D])}function qn(e){const[t,n]=a.useState(void 0);return Q(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let s,l;if("borderBoxSize"in i){const c=i.borderBoxSize,f=Array.isArray(c)?c[0]:c;s=f.inlineSize,l=f.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}const wt="Popper",[xt,$t]=rt(wt),[Zn,yt]=xt(wt),Jn=e=>{const{__scopePopper:t,children:n}=e,[o,r]=a.useState(null);return a.createElement(Zn,{scope:t,anchor:o,onAnchorChange:r},n)},Qn="PopperAnchor",eo=a.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,i=yt(Qn,n),s=a.useRef(null),l=te(t,s);return a.useEffect(()=>{i.onAnchorChange((o==null?void 0:o.current)||s.current)}),o?null:a.createElement(le.div,L({},r,{ref:l}))}),bt="PopperContent",[to,Bo]=xt(bt),no=a.forwardRef((e,t)=>{var n,o,r,i,s,l,c,f;const{__scopePopper:u,side:d="bottom",sideOffset:m=0,align:p="center",alignOffset:h=0,arrowPadding:v=0,avoidCollisions:g=!0,collisionBoundary:w=[],collisionPadding:x=0,sticky:$="partial",hideWhenDetached:y=!1,updatePositionStrategy:b="optimized",onPlaced:E,...P}=e,C=yt(bt,u),[S,N]=a.useState(null),_=te(t,ie=>N(ie)),[T,F]=a.useState(null),A=qn(T),R=(n=A==null?void 0:A.width)!==null&&n!==void 0?n:0,D=(o=A==null?void 0:A.height)!==null&&o!==void 0?o:0,O=d+(p!=="center"?"-"+p:""),Y=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},W=Array.isArray(w)?w:[w],Tt=W.length>0,ue={padding:Y,boundary:W.filter(oo),altBoundary:Tt},{refs:Rt,floatingStyles:ze,placement:St,isPositioned:de,middlewareData:Z}=Kn({strategy:"fixed",placement:O,whileElementsMounted:(...ie)=>Bn(...ie,{animationFrame:b==="always"}),elements:{reference:C.anchor},middleware:[xn({mainAxis:m+D,alignmentAxis:h}),g&&zn({mainAxis:!0,crossAxis:!1,limiter:$==="partial"?Yn():void 0,...ue}),g&&Vn({...ue}),jn({...ue,apply:({elements:ie,rects:je,availableWidth:It,availableHeight:Ft})=>{const{width:Ht,height:Wt}=je.reference,me=ie.floating.style;me.setProperty("--radix-popper-available-width",`${It}px`),me.setProperty("--radix-popper-available-height",`${Ft}px`),me.setProperty("--radix-popper-anchor-width",`${Ht}px`),me.setProperty("--radix-popper-anchor-height",`${Wt}px`)}}),T&&Gn({element:T,padding:v}),ro({arrowWidth:R,arrowHeight:D}),y&&Un({strategy:"referenceHidden",...ue})]}),[Ve,Dt]=Et(St),pe=ne(E);Q(()=>{de&&(pe==null||pe())},[de,pe]);const _t=(r=Z.arrow)===null||r===void 0?void 0:r.x,Lt=(i=Z.arrow)===null||i===void 0?void 0:i.y,Nt=((s=Z.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[Mt,kt]=a.useState();return Q(()=>{S&&kt(window.getComputedStyle(S).zIndex)},[S]),a.createElement("div",{ref:Rt.setFloating,"data-radix-popper-content-wrapper":"",style:{...ze,transform:de?ze.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Mt,"--radix-popper-transform-origin":[(l=Z.transformOrigin)===null||l===void 0?void 0:l.x,(c=Z.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},a.createElement(to,{scope:u,placedSide:Ve,onArrowChange:F,arrowX:_t,arrowY:Lt,shouldHideArrow:Nt},a.createElement(le.div,L({"data-side":Ve,"data-align":Dt},P,{ref:_,style:{...P.style,animation:de?void 0:"none",opacity:(f=Z.hide)!==null&&f!==void 0&&f.referenceHidden?0:void 0}}))))});function oo(e){return e!==null}const ro=e=>({name:"transformOrigin",options:e,fn(t){var n,o,r,i,s;const{placement:l,rects:c,middlewareData:f}=t,d=((n=f.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,m=d?0:e.arrowWidth,p=d?0:e.arrowHeight,[h,v]=Et(l),g={start:"0%",center:"50%",end:"100%"}[v],w=((o=(r=f.arrow)===null||r===void 0?void 0:r.x)!==null&&o!==void 0?o:0)+m/2,x=((i=(s=f.arrow)===null||s===void 0?void 0:s.y)!==null&&i!==void 0?i:0)+p/2;let $="",y="";return h==="bottom"?($=d?g:`${w}px`,y=`${-p}px`):h==="top"?($=d?g:`${w}px`,y=`${c.floating.height+p}px`):h==="right"?($=`${-p}px`,y=d?g:`${x}px`):h==="left"&&($=`${c.floating.width+p}px`,y=d?g:`${x}px`),{data:{x:$,y}}}});function Et(e){const[t,n="center"]=e.split("-");return[t,n]}const io=Jn,so=eo,co=no;function ao(e,t){return a.useReducer((n,o)=>{const r=t[n][o];return r??n},e)}const Ct=e=>{const{present:t,children:n}=e,o=lo(t),r=typeof n=="function"?n({present:o.isPresent}):a.Children.only(n),i=te(o.ref,r.ref);return typeof n=="function"||o.isPresent?a.cloneElement(r,{ref:i}):null};Ct.displayName="Presence";function lo(e){const[t,n]=a.useState(),o=a.useRef({}),r=a.useRef(e),i=a.useRef("none"),s=e?"mounted":"unmounted",[l,c]=ao(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const f=ge(o.current);i.current=l==="mounted"?f:"none"},[l]),Q(()=>{const f=o.current,u=r.current;if(u!==e){const m=i.current,p=ge(f);e?c("MOUNT"):p==="none"||(f==null?void 0:f.display)==="none"?c("UNMOUNT"):c(u&&m!==p?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),Q(()=>{if(t){const f=d=>{const p=ge(o.current).includes(d.animationName);d.target===t&&p&&_e.flushSync(()=>c("ANIMATION_END"))},u=d=>{d.target===t&&(i.current=ge(o.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:a.useCallback(f=>{f&&(o.current=getComputedStyle(f)),n(f)},[])}}function ge(e){return(e==null?void 0:e.animationName)||"none"}function fo({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=uo({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:o,l=ne(n),c=a.useCallback(f=>{if(i){const d=typeof f=="function"?f(e):f;d!==e&&l(d)}else r(f)},[i,e,r,l]);return[s,c]}function uo({defaultProp:e,onChange:t}){const n=a.useState(e),[o]=n,r=a.useRef(o),i=ne(t);return a.useEffect(()=>{r.current!==o&&(i(o),r.current=o)},[o,r,i]),n}const po=a.forwardRef((e,t)=>a.createElement(le.span,L({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),mo=po,[Pe,zo]=rt("Tooltip",[$t]),He=$t(),ho="TooltipProvider",go=700,De="tooltip.open",[vo,We]=Pe(ho),wo=e=>{const{__scopeTooltip:t,delayDuration:n=go,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:i}=e,[s,l]=a.useState(!0),c=a.useRef(!1),f=a.useRef(0);return a.useEffect(()=>{const u=f.current;return()=>window.clearTimeout(u)},[]),a.createElement(vo,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:a.useCallback(()=>{window.clearTimeout(f.current),l(!1)},[]),onClose:a.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>l(!0),o)},[o]),isPointerInTransitRef:c,onPointerInTransitChange:a.useCallback(u=>{c.current=u},[]),disableHoverableContent:r},i)},Be="Tooltip",[xo,Oe]=Pe(Be),$o=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:l}=e,c=We(Be,e.__scopeTooltip),f=He(t),[u,d]=a.useState(null),m=rn(),p=a.useRef(0),h=s??c.disableHoverableContent,v=l??c.delayDuration,g=a.useRef(!1),[w=!1,x]=fo({prop:o,defaultProp:r,onChange:P=>{P?(c.onOpen(),document.dispatchEvent(new CustomEvent(De))):c.onClose(),i==null||i(P)}}),$=a.useMemo(()=>w?g.current?"delayed-open":"instant-open":"closed",[w]),y=a.useCallback(()=>{window.clearTimeout(p.current),g.current=!1,x(!0)},[x]),b=a.useCallback(()=>{window.clearTimeout(p.current),x(!1)},[x]),E=a.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{g.current=!0,x(!0)},v)},[v,x]);return a.useEffect(()=>()=>window.clearTimeout(p.current),[]),a.createElement(io,f,a.createElement(xo,{scope:t,contentId:m,open:w,stateAttribute:$,trigger:u,onTriggerChange:d,onTriggerEnter:a.useCallback(()=>{c.isOpenDelayed?E():y()},[c.isOpenDelayed,E,y]),onTriggerLeave:a.useCallback(()=>{h?b():window.clearTimeout(p.current)},[b,h]),onOpen:y,onClose:b,disableHoverableContent:h},n))},nt="TooltipTrigger",yo=a.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=Oe(nt,n),i=We(nt,n),s=He(n),l=a.useRef(null),c=te(t,l,r.onTriggerChange),f=a.useRef(!1),u=a.useRef(!1),d=a.useCallback(()=>f.current=!1,[]);return a.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),a.createElement(so,L({asChild:!0},s),a.createElement(le.button,L({"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute},o,{ref:c,onPointerMove:B(e.onPointerMove,m=>{m.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(r.onTriggerEnter(),u.current=!0)}),onPointerLeave:B(e.onPointerLeave,()=>{r.onTriggerLeave(),u.current=!1}),onPointerDown:B(e.onPointerDown,()=>{f.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:B(e.onFocus,()=>{f.current||r.onOpen()}),onBlur:B(e.onBlur,r.onClose),onClick:B(e.onClick,r.onClose)})))}),bo="TooltipPortal",[Vo,Eo]=Pe(bo,{forceMount:void 0}),ae="TooltipContent",Co=a.forwardRef((e,t)=>{const n=Eo(ae,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...i}=e,s=Oe(ae,e.__scopeTooltip);return a.createElement(Ct,{present:o||s.open},s.disableHoverableContent?a.createElement(Pt,L({side:r},i,{ref:t})):a.createElement(Po,L({side:r},i,{ref:t})))}),Po=a.forwardRef((e,t)=>{const n=Oe(ae,e.__scopeTooltip),o=We(ae,e.__scopeTooltip),r=a.useRef(null),i=te(t,r),[s,l]=a.useState(null),{trigger:c,onClose:f}=n,u=r.current,{onPointerInTransitChange:d}=o,m=a.useCallback(()=>{l(null),d(!1)},[d]),p=a.useCallback((h,v)=>{const g=h.currentTarget,w={x:h.clientX,y:h.clientY},x=Ao(w,g.getBoundingClientRect()),$=To(w,x),y=Ro(v.getBoundingClientRect()),b=Do([...$,...y]);l(b),d(!0)},[d]);return a.useEffect(()=>()=>m(),[m]),a.useEffect(()=>{if(c&&u){const h=g=>p(g,u),v=g=>p(g,c);return c.addEventListener("pointerleave",h),u.addEventListener("pointerleave",v),()=>{c.removeEventListener("pointerleave",h),u.removeEventListener("pointerleave",v)}}},[c,u,p,m]),a.useEffect(()=>{if(s){const h=v=>{const g=v.target,w={x:v.clientX,y:v.clientY},x=(c==null?void 0:c.contains(g))||(u==null?void 0:u.contains(g)),$=!So(w,s);x?m():$&&(m(),f())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[c,u,s,f,m]),a.createElement(Pt,L({},e,{ref:i}))}),[Oo,jo]=Pe(Be,{isInside:!1}),Pt=a.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,c=Oe(ae,n),f=He(n),{onClose:u}=c;return a.useEffect(()=>(document.addEventListener(De,u),()=>document.removeEventListener(De,u)),[u]),a.useEffect(()=>{if(c.trigger){const d=m=>{const p=m.target;p!=null&&p.contains(c.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,u]),a.createElement(Qt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:u},a.createElement(co,L({"data-state":c.stateAttribute},f,l,{ref:t,style:{...l.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)"}}),a.createElement(st,null,o),a.createElement(Oo,{scope:n,isInside:!0},a.createElement(mo,{id:c.contentId,role:"tooltip"},r||o))))});function Ao(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,o,r,i)){case i:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function To(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function Ro(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function So(e,t){const{x:n,y:o}=e;let r=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const l=t[i].x,c=t[i].y,f=t[s].x,u=t[s].y;c>o!=u>o&&n<(f-l)*(o-c)/(u-c)+l&&(r=!r)}return r}function Do(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),_o(t)}function _o(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.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)}const Lo=wo,No=$o,Mo=yo,Ot=Co,Uo=Lo,ko=No,Io=Mo,At=a.forwardRef(({className:e,sideOffset:t=4,...n},o)=>ve.jsx(Ot,{ref:o,sideOffset:t,className:zt("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]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));At.displayName=Ot.displayName;function Yo({content:e,children:t}){return e?ve.jsxs(ko,{children:[ve.jsx(Io,{asChild:!0,children:t}),ve.jsx(At,{children:e})]}):t}export{rt as $,Yo as S,Uo as T,L as _,ko as a,Io as b,At as c,te as d,fo as e,ne as f,le as g,B as h,rn as i,Ct as j,$t as k,io as l,so as m,it as n,Qt as o,co as p,Q as q,po as r};
2
- //# sourceMappingURL=tooltip-BlVFw-is.js.map
1
+ import{r as a,$ as Bt,j as ve}from"./index-D1WEsmVZ.js";import{r as _e}from"./components-Dj3sm47B.js";import{c as zt}from"./misc-CXGQ7VS9.js";function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},L.apply(this,arguments)}function B(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Vt(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ot(...e){return t=>e.forEach(n=>Vt(n,t))}function te(...e){return a.useCallback(ot(...e),e)}function rt(e,t=[]){let n=[];function o(i,s){const l=a.createContext(s),c=n.length;n=[...n,s];function f(d){const{scope:m,children:p,...h}=d,v=(m==null?void 0:m[e][c])||l,g=a.useMemo(()=>h,Object.values(h));return a.createElement(v.Provider,{value:g},p)}function u(d,m){const p=(m==null?void 0:m[e][c])||l,h=a.useContext(p);if(h)return h;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return f.displayName=i+"Provider",[f,u]}const r=()=>{const i=n.map(s=>a.createContext(s));return function(l){const c=(l==null?void 0:l[e])||i;return a.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return r.scopeName=e,[o,jt(r,...t)]}function jt(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const s=o.reduce((l,{useScope:c,scopeName:f})=>{const d=c(i)[`__scope${f}`];return{...l,...d}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}const it=a.forwardRef((e,t)=>{const{children:n,...o}=e,r=a.Children.toArray(n),i=r.find(Ut);if(i){const s=i.props.children,l=r.map(c=>c===i?a.Children.count(s)>1?a.Children.only(null):a.isValidElement(s)?s.props.children:null:c);return a.createElement(Ae,L({},o,{ref:t}),a.isValidElement(s)?a.cloneElement(s,void 0,l):null)}return a.createElement(Ae,L({},o,{ref:t}),n)});it.displayName="Slot";const Ae=a.forwardRef((e,t)=>{const{children:n,...o}=e;return a.isValidElement(n)?a.cloneElement(n,{...Yt(o,n.props),ref:t?ot(t,n.ref):n.ref}):a.Children.count(n)>1?a.Children.only(null):null});Ae.displayName="SlotClone";const st=({children:e})=>a.createElement(a.Fragment,null,e);function Ut(e){return a.isValidElement(e)&&e.type===st}function Yt(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...l)=>{i(...l),r(...l)}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}const Xt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],le=Xt.reduce((e,t)=>{const n=a.forwardRef((o,r)=>{const{asChild:i,...s}=o,l=i?it:t;return a.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),a.createElement(l,L({},s,{ref:r}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Gt(e,t){e&&_e.flushSync(()=>e.dispatchEvent(t))}function ne(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...n)=>{var o;return(o=t.current)===null||o===void 0?void 0:o.call(t,...n)},[])}function Kt(e,t=globalThis==null?void 0:globalThis.document){const n=ne(e);a.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o),()=>t.removeEventListener("keydown",o)},[n,t])}const Te="dismissableLayer.update",qt="dismissableLayer.pointerDownOutside",Zt="dismissableLayer.focusOutside";let Ue;const Jt=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qt=a.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...f}=e,u=a.useContext(Jt),[d,m]=a.useState(null),p=(n=d==null?void 0:d.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,h]=a.useState({}),v=te(t,C=>m(C)),g=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=g.indexOf(w),$=d?g.indexOf(d):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,b=$>=x,E=en(C=>{const S=C.target,N=[...u.branches].some(_=>_.contains(S));!b||N||(i==null||i(C),l==null||l(C),C.defaultPrevented||c==null||c())},p),P=tn(C=>{const S=C.target;[...u.branches].some(_=>_.contains(S))||(s==null||s(C),l==null||l(C),C.defaultPrevented||c==null||c())},p);return Kt(C=>{$===u.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&c&&(C.preventDefault(),c()))},p),a.useEffect(()=>{if(d)return o&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ue=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Ye(),()=>{o&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Ue)}},[d,p,o,u]),a.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Ye())},[d,u]),a.useEffect(()=>{const C=()=>h({});return document.addEventListener(Te,C),()=>document.removeEventListener(Te,C)},[]),a.createElement(le.div,L({},f,{ref:v,style:{pointerEvents:y?b?"auto":"none":void 0,...e.style},onFocusCapture:B(e.onFocusCapture,P.onFocusCapture),onBlurCapture:B(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:B(e.onPointerDownCapture,E.onPointerDownCapture)}))});function en(e,t=globalThis==null?void 0:globalThis.document){const n=ne(e),o=a.useRef(!1),r=a.useRef(()=>{});return a.useEffect(()=>{const i=l=>{if(l.target&&!o.current){let f=function(){ct(qt,n,c,{discrete:!0})};const c={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=f,t.addEventListener("click",r.current,{once:!0})):f()}else t.removeEventListener("click",r.current);o.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function tn(e,t=globalThis==null?void 0:globalThis.document){const n=ne(e),o=a.useRef(!1);return a.useEffect(()=>{const r=i=>{i.target&&!o.current&&ct(Zt,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Ye(){const e=new CustomEvent(Te);document.dispatchEvent(e)}function ct(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Gt(r,i):r.dispatchEvent(i)}const Q=globalThis!=null&&globalThis.document?a.useLayoutEffect:()=>{},nn=Bt.useId||(()=>{});let on=0;function rn(e){const[t,n]=a.useState(nn());return Q(()=>{e||n(o=>o??String(on++))},[e]),e||(t?`radix-${t}`:"")}const sn=["top","right","bottom","left"],X=Math.min,M=Math.max,xe=Math.round,he=Math.floor,G=e=>({x:e,y:e}),cn={left:"right",right:"left",bottom:"top",top:"bottom"},an={start:"end",end:"start"};function Re(e,t,n){return M(e,X(t,n))}function z(e,t){return typeof e=="function"?e(t):e}function V(e){return e.split("-")[0]}function oe(e){return e.split("-")[1]}function Le(e){return e==="x"?"y":"x"}function Ne(e){return e==="y"?"height":"width"}function re(e){return["top","bottom"].includes(V(e))?"y":"x"}function Me(e){return Le(re(e))}function ln(e,t,n){n===void 0&&(n=!1);const o=oe(e),r=Me(e),i=Ne(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=$e(s)),[s,$e(s)]}function fn(e){const t=$e(e);return[Se(e),t,Se(t)]}function Se(e){return e.replace(/start|end/g,t=>an[t])}function un(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:s;default:return[]}}function dn(e,t,n,o){const r=oe(e);let i=un(V(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(Se)))),i}function $e(e){return e.replace(/left|right|bottom|top/g,t=>cn[t])}function pn(e){return{top:0,right:0,bottom:0,left:0,...e}}function at(e){return typeof e!="number"?pn(e):{top:e,right:e,bottom:e,left:e}}function ye(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Xe(e,t,n){let{reference:o,floating:r}=e;const i=re(t),s=Me(t),l=Ne(s),c=V(t),f=i==="y",u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,m=o[l]/2-r[l]/2;let p;switch(c){case"top":p={x:u,y:o.y-r.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(oe(t)){case"start":p[s]-=m*(n&&f?-1:1);break;case"end":p[s]+=m*(n&&f?-1:1);break}return p}const mn=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let f=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=Xe(f,o,c),m=o,p={},h=0;for(let v=0;v<l.length;v++){const{name:g,fn:w}=l[v],{x,y:$,data:y,reset:b}=await w({x:u,y:d,initialPlacement:o,placement:m,strategy:r,middlewareData:p,rects:f,platform:s,elements:{reference:e,floating:t}});u=x??u,d=$??d,p={...p,[g]:{...p[g],...y}},b&&h<=50&&(h++,typeof b=="object"&&(b.placement&&(m=b.placement),b.rects&&(f=b.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):b.rects),{x:u,y:d}=Xe(f,m,c)),v=-1)}return{x:u,y:d,placement:m,strategy:r,middlewareData:p}};async function se(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:l,strategy:c}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:m=!1,padding:p=0}=z(t,e),h=at(p),g=l[m?d==="floating"?"reference":"floating":d],w=ye(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(g)))==null||n?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:f,rootBoundary:u,strategy:c})),x=d==="floating"?{...s.floating,x:o,y:r}:s.reference,$=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),y=await(i.isElement==null?void 0:i.isElement($))?await(i.getScale==null?void 0:i.getScale($))||{x:1,y:1}:{x:1,y:1},b=ye(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:x,offsetParent:$,strategy:c}):x);return{top:(w.top-b.top+h.top)/y.y,bottom:(b.bottom-w.bottom+h.bottom)/y.y,left:(w.left-b.left+h.left)/y.x,right:(b.right-w.right+h.right)/y.x}}const hn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:l,middlewareData:c}=t,{element:f,padding:u=0}=z(e,t)||{};if(f==null)return{};const d=at(u),m={x:n,y:o},p=Me(r),h=Ne(p),v=await s.getDimensions(f),g=p==="y",w=g?"top":"left",x=g?"bottom":"right",$=g?"clientHeight":"clientWidth",y=i.reference[h]+i.reference[p]-m[p]-i.floating[h],b=m[p]-i.reference[p],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let P=E?E[$]:0;(!P||!await(s.isElement==null?void 0:s.isElement(E)))&&(P=l.floating[$]||i.floating[h]);const C=y/2-b/2,S=P/2-v[h]/2-1,N=X(d[w],S),_=X(d[x],S),T=N,F=P-v[h]-_,A=P/2-v[h]/2+C,R=Re(T,A,F),D=!c.arrow&&oe(r)!=null&&A!==R&&i.reference[h]/2-(A<T?N:_)-v[h]/2<0,O=D?A<T?A-T:A-F:0;return{[p]:m[p]+O,data:{[p]:R,centerOffset:A-R-O,...D&&{alignmentOffset:O}},reset:D}}}),gn=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:l,platform:c,elements:f}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...g}=z(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=V(r),x=V(l)===l,$=await(c.isRTL==null?void 0:c.isRTL(f.floating)),y=m||(x||!v?[$e(l)]:fn(l));!m&&h!=="none"&&y.push(...dn(l,v,h,$));const b=[l,...y],E=await se(t,g),P=[];let C=((o=i.flip)==null?void 0:o.overflows)||[];if(u&&P.push(E[w]),d){const T=ln(r,s,$);P.push(E[T[0]],E[T[1]])}if(C=[...C,{placement:r,overflows:P}],!P.every(T=>T<=0)){var S,N;const T=(((S=i.flip)==null?void 0:S.index)||0)+1,F=b[T];if(F)return{data:{index:T,overflows:C},reset:{placement:F}};let A=(N=C.filter(R=>R.overflows[0]<=0).sort((R,D)=>R.overflows[1]-D.overflows[1])[0])==null?void 0:N.placement;if(!A)switch(p){case"bestFit":{var _;const R=(_=C.map(D=>[D.placement,D.overflows.filter(O=>O>0).reduce((O,Y)=>O+Y,0)]).sort((D,O)=>D[1]-O[1])[0])==null?void 0:_[0];R&&(A=R);break}case"initialPlacement":A=l;break}if(r!==A)return{reset:{placement:A}}}return{}}}};function Ge(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ke(e){return sn.some(t=>e[t]>=0)}const vn=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=z(e,t);switch(o){case"referenceHidden":{const i=await se(t,{...r,elementContext:"reference"}),s=Ge(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ke(s)}}}case"escaped":{const i=await se(t,{...r,altBoundary:!0}),s=Ge(i,n.floating);return{data:{escapedOffsets:s,escaped:Ke(s)}}}default:return{}}}}};async function wn(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=V(n),l=oe(n),c=re(n)==="y",f=["left","top"].includes(s)?-1:1,u=i&&c?-1:1,d=z(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&typeof h=="number"&&(p=l==="end"?h*-1:h),c?{x:p*u,y:m*f}:{x:m*f,y:p*u}}const xn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:l}=t,c=await wn(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:s}}}}},$n=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:g=>{let{x:w,y:x}=g;return{x:w,y:x}}},...c}=z(e,t),f={x:n,y:o},u=await se(t,c),d=re(V(r)),m=Le(d);let p=f[m],h=f[d];if(i){const g=m==="y"?"top":"left",w=m==="y"?"bottom":"right",x=p+u[g],$=p-u[w];p=Re(x,p,$)}if(s){const g=d==="y"?"top":"left",w=d==="y"?"bottom":"right",x=h+u[g],$=h-u[w];h=Re(x,h,$)}const v=l.fn({...t,[m]:p,[d]:h});return{...v,data:{x:v.x-n,y:v.y-o}}}}},yn=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:c=!0,crossAxis:f=!0}=z(e,t),u={x:n,y:o},d=re(r),m=Le(d);let p=u[m],h=u[d];const v=z(l,t),g=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){const $=m==="y"?"height":"width",y=i.reference[m]-i.floating[$]+g.mainAxis,b=i.reference[m]+i.reference[$]-g.mainAxis;p<y?p=y:p>b&&(p=b)}if(f){var w,x;const $=m==="y"?"width":"height",y=["top","left"].includes(V(r)),b=i.reference[d]-i.floating[$]+(y&&((w=s.offset)==null?void 0:w[d])||0)+(y?0:g.crossAxis),E=i.reference[d]+i.reference[$]+(y?0:((x=s.offset)==null?void 0:x[d])||0)-(y?g.crossAxis:0);h<b?h=b:h>E&&(h=E)}return{[m]:p,[d]:h}}}},bn=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:i}=t,{apply:s=()=>{},...l}=z(e,t),c=await se(t,l),f=V(n),u=oe(n),d=re(n)==="y",{width:m,height:p}=o.floating;let h,v;f==="top"||f==="bottom"?(h=f,v=u===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(v=f,h=u==="end"?"top":"bottom");const g=p-c[h],w=m-c[v],x=!t.middlewareData.shift;let $=g,y=w;if(d){const E=m-c.left-c.right;y=u||x?X(w,E):E}else{const E=p-c.top-c.bottom;$=u||x?X(g,E):E}if(x&&!u){const E=M(c.left,0),P=M(c.right,0),C=M(c.top,0),S=M(c.bottom,0);d?y=m-2*(E!==0||P!==0?E+P:M(c.left,c.right)):$=p-2*(C!==0||S!==0?C+S:M(c.top,c.bottom))}await s({...t,availableWidth:y,availableHeight:$});const b=await r.getDimensions(i.floating);return m!==b.width||p!==b.height?{reset:{rects:!0}}:{}}}};function K(e){return lt(e)?(e.nodeName||"").toLowerCase():"#document"}function k(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function U(e){var t;return(t=(lt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lt(e){return e instanceof Node||e instanceof k(e).Node}function j(e){return e instanceof Element||e instanceof k(e).Element}function H(e){return e instanceof HTMLElement||e instanceof k(e).HTMLElement}function qe(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof k(e).ShadowRoot}function fe(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=I(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function En(e){return["table","td","th"].includes(K(e))}function ke(e){const t=Ie(),n=I(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Cn(e){let t=ee(e);for(;H(t)&&!Ee(t);){if(ke(t))return t;t=ee(t)}return null}function Ie(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ee(e){return["html","body","#document"].includes(K(e))}function I(e){return k(e).getComputedStyle(e)}function Ce(e){return j(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ee(e){if(K(e)==="html")return e;const t=e.assignedSlot||e.parentNode||qe(e)&&e.host||U(e);return qe(t)?t.host:t}function ft(e){const t=ee(e);return Ee(t)?e.ownerDocument?e.ownerDocument.body:e.body:H(t)&&fe(t)?t:ft(t)}function ce(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=ft(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=k(r);return i?t.concat(s,s.visualViewport||[],fe(r)?r:[],s.frameElement&&n?ce(s.frameElement):[]):t.concat(r,ce(r,[],n))}function ut(e){const t=I(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=H(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,l=xe(n)!==i||xe(o)!==s;return l&&(n=i,o=s),{width:n,height:o,$:l}}function Fe(e){return j(e)?e:e.contextElement}function J(e){const t=Fe(e);if(!H(t))return G(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=ut(t);let s=(i?xe(n.width):n.width)/o,l=(i?xe(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Pn=G(0);function dt(e){const t=k(e);return!Ie()||!t.visualViewport?Pn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function On(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==k(e)?!1:t}function q(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=Fe(e);let s=G(1);t&&(o?j(o)&&(s=J(o)):s=J(e));const l=On(i,n,o)?dt(i):G(0);let c=(r.left+l.x)/s.x,f=(r.top+l.y)/s.y,u=r.width/s.x,d=r.height/s.y;if(i){const m=k(i),p=o&&j(o)?k(o):o;let h=m,v=h.frameElement;for(;v&&o&&p!==h;){const g=J(v),w=v.getBoundingClientRect(),x=I(v),$=w.left+(v.clientLeft+parseFloat(x.paddingLeft))*g.x,y=w.top+(v.clientTop+parseFloat(x.paddingTop))*g.y;c*=g.x,f*=g.y,u*=g.x,d*=g.y,c+=$,f+=y,h=k(v),v=h.frameElement}}return ye({width:u,height:d,x:c,y:f})}const An=[":popover-open",":modal"];function pt(e){return An.some(t=>{try{return e.matches(t)}catch{return!1}})}function Tn(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=U(o),l=t?pt(t.floating):!1;if(o===s||l&&i)return n;let c={scrollLeft:0,scrollTop:0},f=G(1);const u=G(0),d=H(o);if((d||!d&&!i)&&((K(o)!=="body"||fe(s))&&(c=Ce(o)),H(o))){const m=q(o);f=J(o),u.x=m.x+o.clientLeft,u.y=m.y+o.clientTop}return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+u.x,y:n.y*f.y-c.scrollTop*f.y+u.y}}function Rn(e){return Array.from(e.getClientRects())}function mt(e){return q(U(e)).left+Ce(e).scrollLeft}function Sn(e){const t=U(e),n=Ce(e),o=e.ownerDocument.body,r=M(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=M(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+mt(e);const l=-n.scrollTop;return I(o).direction==="rtl"&&(s+=M(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:l}}function Dn(e,t){const n=k(e),o=U(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,l=0,c=0;if(r){i=r.width,s=r.height;const f=Ie();(!f||f&&t==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:s,x:l,y:c}}function _n(e,t){const n=q(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=H(e)?J(e):G(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,c=r*i.x,f=o*i.y;return{width:s,height:l,x:c,y:f}}function Ze(e,t,n){let o;if(t==="viewport")o=Dn(e,n);else if(t==="document")o=Sn(U(e));else if(j(t))o=_n(t,n);else{const r=dt(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return ye(o)}function ht(e,t){const n=ee(e);return n===t||!j(n)||Ee(n)?!1:I(n).position==="fixed"||ht(n,t)}function Ln(e,t){const n=t.get(e);if(n)return n;let o=ce(e,[],!1).filter(l=>j(l)&&K(l)!=="body"),r=null;const i=I(e).position==="fixed";let s=i?ee(e):e;for(;j(s)&&!Ee(s);){const l=I(s),c=ke(s);!c&&l.position==="fixed"&&(r=null),(i?!c&&!r:!c&&l.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||fe(s)&&!c&&ht(e,s))?o=o.filter(u=>u!==s):r=l,s=ee(s)}return t.set(e,o),o}function Nn(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?Ln(t,this._c):[].concat(n),o],l=s[0],c=s.reduce((f,u)=>{const d=Ze(t,u,r);return f.top=M(d.top,f.top),f.right=X(d.right,f.right),f.bottom=X(d.bottom,f.bottom),f.left=M(d.left,f.left),f},Ze(t,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Mn(e){const{width:t,height:n}=ut(e);return{width:t,height:n}}function kn(e,t,n){const o=H(t),r=U(t),i=n==="fixed",s=q(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=G(0);if(o||!o&&!i)if((K(t)!=="body"||fe(r))&&(l=Ce(t)),o){const d=q(t,!0,i,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else r&&(c.x=mt(r));const f=s.left+l.scrollLeft-c.x,u=s.top+l.scrollTop-c.y;return{x:f,y:u,width:s.width,height:s.height}}function Je(e,t){return!H(e)||I(e).position==="fixed"?null:t?t(e):e.offsetParent}function gt(e,t){const n=k(e);if(!H(e)||pt(e))return n;let o=Je(e,t);for(;o&&En(o)&&I(o).position==="static";)o=Je(o,t);return o&&(K(o)==="html"||K(o)==="body"&&I(o).position==="static"&&!ke(o))?n:o||Cn(e)||n}const In=async function(e){const t=this.getOffsetParent||gt,n=this.getDimensions;return{reference:kn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function Fn(e){return I(e).direction==="rtl"}const Hn={convertOffsetParentRelativeRectToViewportRelativeRect:Tn,getDocumentElement:U,getClippingRect:Nn,getOffsetParent:gt,getElementRects:In,getClientRects:Rn,getDimensions:Mn,getScale:J,isElement:j,isRTL:Fn};function Wn(e,t){let n=null,o;const r=U(e);function i(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const{left:f,top:u,width:d,height:m}=e.getBoundingClientRect();if(l||t(),!d||!m)return;const p=he(u),h=he(r.clientWidth-(f+d)),v=he(r.clientHeight-(u+m)),g=he(f),x={rootMargin:-p+"px "+-h+"px "+-v+"px "+-g+"px",threshold:M(0,X(1,c))||1};let $=!0;function y(b){const E=b[0].intersectionRatio;if(E!==c){if(!$)return s();E?s(!1,E):o=setTimeout(()=>{s(!1,1e-7)},100)}$=!1}try{n=new IntersectionObserver(y,{...x,root:r.ownerDocument})}catch{n=new IntersectionObserver(y,x)}n.observe(e)}return s(!0),i}function Bn(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,f=Fe(e),u=r||i?[...f?ce(f):[],...ce(t)]:[];u.forEach(w=>{r&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const d=f&&l?Wn(f,n):null;let m=-1,p=null;s&&(p=new ResizeObserver(w=>{let[x]=w;x&&x.target===f&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var $;($=p)==null||$.observe(t)})),n()}),f&&!c&&p.observe(f),p.observe(t));let h,v=c?q(e):null;c&&g();function g(){const w=q(e);v&&(w.x!==v.x||w.y!==v.y||w.width!==v.width||w.height!==v.height)&&n(),v=w,h=requestAnimationFrame(g)}return n(),()=>{var w;u.forEach(x=>{r&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),d==null||d(),(w=p)==null||w.disconnect(),p=null,c&&cancelAnimationFrame(h)}}const zn=$n,Vn=gn,jn=bn,Un=vn,Qe=hn,Yn=yn,Xn=(e,t,n)=>{const o=new Map,r={platform:Hn,...n},i={...r.platform,_c:o};return mn(e,t,{...r,platform:i})},Gn=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?Qe({element:o.current,padding:r}).fn(n):{}:o?Qe({element:o,padding:r}).fn(n):{}}}};var we=typeof document<"u"?a.useLayoutEffect:a.useEffect;function be(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,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!be(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!be(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function vt(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function et(e,t){const n=vt(e);return Math.round(t*n)/n}function tt(e){const t=a.useRef(e);return we(()=>{t.current=e}),t}function Kn(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:c,open:f}=e,[u,d]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=a.useState(o);be(m,o)||p(o);const[h,v]=a.useState(null),[g,w]=a.useState(null),x=a.useCallback(O=>{O!==E.current&&(E.current=O,v(O))},[]),$=a.useCallback(O=>{O!==P.current&&(P.current=O,w(O))},[]),y=i||h,b=s||g,E=a.useRef(null),P=a.useRef(null),C=a.useRef(u),S=c!=null,N=tt(c),_=tt(r),T=a.useCallback(()=>{if(!E.current||!P.current)return;const O={placement:t,strategy:n,middleware:m};_.current&&(O.platform=_.current),Xn(E.current,P.current,O).then(Y=>{const W={...Y,isPositioned:!0};F.current&&!be(C.current,W)&&(C.current=W,_e.flushSync(()=>{d(W)}))})},[m,t,n,_]);we(()=>{f===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,d(O=>({...O,isPositioned:!1})))},[f]);const F=a.useRef(!1);we(()=>(F.current=!0,()=>{F.current=!1}),[]),we(()=>{if(y&&(E.current=y),b&&(P.current=b),y&&b){if(N.current)return N.current(y,b,T);T()}},[y,b,T,N,S]);const A=a.useMemo(()=>({reference:E,floating:P,setReference:x,setFloating:$}),[x,$]),R=a.useMemo(()=>({reference:y,floating:b}),[y,b]),D=a.useMemo(()=>{const O={position:n,left:0,top:0};if(!R.floating)return O;const Y=et(R.floating,u.x),W=et(R.floating,u.y);return l?{...O,transform:"translate("+Y+"px, "+W+"px)",...vt(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Y,top:W}},[n,l,R.floating,u.x,u.y]);return a.useMemo(()=>({...u,update:T,refs:A,elements:R,floatingStyles:D}),[u,T,A,R,D])}function qn(e){const[t,n]=a.useState(void 0);return Q(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let s,l;if("borderBoxSize"in i){const c=i.borderBoxSize,f=Array.isArray(c)?c[0]:c;s=f.inlineSize,l=f.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}const wt="Popper",[xt,$t]=rt(wt),[Zn,yt]=xt(wt),Jn=e=>{const{__scopePopper:t,children:n}=e,[o,r]=a.useState(null);return a.createElement(Zn,{scope:t,anchor:o,onAnchorChange:r},n)},Qn="PopperAnchor",eo=a.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,i=yt(Qn,n),s=a.useRef(null),l=te(t,s);return a.useEffect(()=>{i.onAnchorChange((o==null?void 0:o.current)||s.current)}),o?null:a.createElement(le.div,L({},r,{ref:l}))}),bt="PopperContent",[to,Bo]=xt(bt),no=a.forwardRef((e,t)=>{var n,o,r,i,s,l,c,f;const{__scopePopper:u,side:d="bottom",sideOffset:m=0,align:p="center",alignOffset:h=0,arrowPadding:v=0,avoidCollisions:g=!0,collisionBoundary:w=[],collisionPadding:x=0,sticky:$="partial",hideWhenDetached:y=!1,updatePositionStrategy:b="optimized",onPlaced:E,...P}=e,C=yt(bt,u),[S,N]=a.useState(null),_=te(t,ie=>N(ie)),[T,F]=a.useState(null),A=qn(T),R=(n=A==null?void 0:A.width)!==null&&n!==void 0?n:0,D=(o=A==null?void 0:A.height)!==null&&o!==void 0?o:0,O=d+(p!=="center"?"-"+p:""),Y=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},W=Array.isArray(w)?w:[w],Tt=W.length>0,ue={padding:Y,boundary:W.filter(oo),altBoundary:Tt},{refs:Rt,floatingStyles:ze,placement:St,isPositioned:de,middlewareData:Z}=Kn({strategy:"fixed",placement:O,whileElementsMounted:(...ie)=>Bn(...ie,{animationFrame:b==="always"}),elements:{reference:C.anchor},middleware:[xn({mainAxis:m+D,alignmentAxis:h}),g&&zn({mainAxis:!0,crossAxis:!1,limiter:$==="partial"?Yn():void 0,...ue}),g&&Vn({...ue}),jn({...ue,apply:({elements:ie,rects:je,availableWidth:It,availableHeight:Ft})=>{const{width:Ht,height:Wt}=je.reference,me=ie.floating.style;me.setProperty("--radix-popper-available-width",`${It}px`),me.setProperty("--radix-popper-available-height",`${Ft}px`),me.setProperty("--radix-popper-anchor-width",`${Ht}px`),me.setProperty("--radix-popper-anchor-height",`${Wt}px`)}}),T&&Gn({element:T,padding:v}),ro({arrowWidth:R,arrowHeight:D}),y&&Un({strategy:"referenceHidden",...ue})]}),[Ve,Dt]=Et(St),pe=ne(E);Q(()=>{de&&(pe==null||pe())},[de,pe]);const _t=(r=Z.arrow)===null||r===void 0?void 0:r.x,Lt=(i=Z.arrow)===null||i===void 0?void 0:i.y,Nt=((s=Z.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[Mt,kt]=a.useState();return Q(()=>{S&&kt(window.getComputedStyle(S).zIndex)},[S]),a.createElement("div",{ref:Rt.setFloating,"data-radix-popper-content-wrapper":"",style:{...ze,transform:de?ze.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Mt,"--radix-popper-transform-origin":[(l=Z.transformOrigin)===null||l===void 0?void 0:l.x,(c=Z.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},a.createElement(to,{scope:u,placedSide:Ve,onArrowChange:F,arrowX:_t,arrowY:Lt,shouldHideArrow:Nt},a.createElement(le.div,L({"data-side":Ve,"data-align":Dt},P,{ref:_,style:{...P.style,animation:de?void 0:"none",opacity:(f=Z.hide)!==null&&f!==void 0&&f.referenceHidden?0:void 0}}))))});function oo(e){return e!==null}const ro=e=>({name:"transformOrigin",options:e,fn(t){var n,o,r,i,s;const{placement:l,rects:c,middlewareData:f}=t,d=((n=f.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,m=d?0:e.arrowWidth,p=d?0:e.arrowHeight,[h,v]=Et(l),g={start:"0%",center:"50%",end:"100%"}[v],w=((o=(r=f.arrow)===null||r===void 0?void 0:r.x)!==null&&o!==void 0?o:0)+m/2,x=((i=(s=f.arrow)===null||s===void 0?void 0:s.y)!==null&&i!==void 0?i:0)+p/2;let $="",y="";return h==="bottom"?($=d?g:`${w}px`,y=`${-p}px`):h==="top"?($=d?g:`${w}px`,y=`${c.floating.height+p}px`):h==="right"?($=`${-p}px`,y=d?g:`${x}px`):h==="left"&&($=`${c.floating.width+p}px`,y=d?g:`${x}px`),{data:{x:$,y}}}});function Et(e){const[t,n="center"]=e.split("-");return[t,n]}const io=Jn,so=eo,co=no;function ao(e,t){return a.useReducer((n,o)=>{const r=t[n][o];return r??n},e)}const Ct=e=>{const{present:t,children:n}=e,o=lo(t),r=typeof n=="function"?n({present:o.isPresent}):a.Children.only(n),i=te(o.ref,r.ref);return typeof n=="function"||o.isPresent?a.cloneElement(r,{ref:i}):null};Ct.displayName="Presence";function lo(e){const[t,n]=a.useState(),o=a.useRef({}),r=a.useRef(e),i=a.useRef("none"),s=e?"mounted":"unmounted",[l,c]=ao(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const f=ge(o.current);i.current=l==="mounted"?f:"none"},[l]),Q(()=>{const f=o.current,u=r.current;if(u!==e){const m=i.current,p=ge(f);e?c("MOUNT"):p==="none"||(f==null?void 0:f.display)==="none"?c("UNMOUNT"):c(u&&m!==p?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),Q(()=>{if(t){const f=d=>{const p=ge(o.current).includes(d.animationName);d.target===t&&p&&_e.flushSync(()=>c("ANIMATION_END"))},u=d=>{d.target===t&&(i.current=ge(o.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:a.useCallback(f=>{f&&(o.current=getComputedStyle(f)),n(f)},[])}}function ge(e){return(e==null?void 0:e.animationName)||"none"}function fo({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=uo({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:o,l=ne(n),c=a.useCallback(f=>{if(i){const d=typeof f=="function"?f(e):f;d!==e&&l(d)}else r(f)},[i,e,r,l]);return[s,c]}function uo({defaultProp:e,onChange:t}){const n=a.useState(e),[o]=n,r=a.useRef(o),i=ne(t);return a.useEffect(()=>{r.current!==o&&(i(o),r.current=o)},[o,r,i]),n}const po=a.forwardRef((e,t)=>a.createElement(le.span,L({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),mo=po,[Pe,zo]=rt("Tooltip",[$t]),He=$t(),ho="TooltipProvider",go=700,De="tooltip.open",[vo,We]=Pe(ho),wo=e=>{const{__scopeTooltip:t,delayDuration:n=go,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:i}=e,[s,l]=a.useState(!0),c=a.useRef(!1),f=a.useRef(0);return a.useEffect(()=>{const u=f.current;return()=>window.clearTimeout(u)},[]),a.createElement(vo,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:a.useCallback(()=>{window.clearTimeout(f.current),l(!1)},[]),onClose:a.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>l(!0),o)},[o]),isPointerInTransitRef:c,onPointerInTransitChange:a.useCallback(u=>{c.current=u},[]),disableHoverableContent:r},i)},Be="Tooltip",[xo,Oe]=Pe(Be),$o=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:l}=e,c=We(Be,e.__scopeTooltip),f=He(t),[u,d]=a.useState(null),m=rn(),p=a.useRef(0),h=s??c.disableHoverableContent,v=l??c.delayDuration,g=a.useRef(!1),[w=!1,x]=fo({prop:o,defaultProp:r,onChange:P=>{P?(c.onOpen(),document.dispatchEvent(new CustomEvent(De))):c.onClose(),i==null||i(P)}}),$=a.useMemo(()=>w?g.current?"delayed-open":"instant-open":"closed",[w]),y=a.useCallback(()=>{window.clearTimeout(p.current),g.current=!1,x(!0)},[x]),b=a.useCallback(()=>{window.clearTimeout(p.current),x(!1)},[x]),E=a.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{g.current=!0,x(!0)},v)},[v,x]);return a.useEffect(()=>()=>window.clearTimeout(p.current),[]),a.createElement(io,f,a.createElement(xo,{scope:t,contentId:m,open:w,stateAttribute:$,trigger:u,onTriggerChange:d,onTriggerEnter:a.useCallback(()=>{c.isOpenDelayed?E():y()},[c.isOpenDelayed,E,y]),onTriggerLeave:a.useCallback(()=>{h?b():window.clearTimeout(p.current)},[b,h]),onOpen:y,onClose:b,disableHoverableContent:h},n))},nt="TooltipTrigger",yo=a.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=Oe(nt,n),i=We(nt,n),s=He(n),l=a.useRef(null),c=te(t,l,r.onTriggerChange),f=a.useRef(!1),u=a.useRef(!1),d=a.useCallback(()=>f.current=!1,[]);return a.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),a.createElement(so,L({asChild:!0},s),a.createElement(le.button,L({"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute},o,{ref:c,onPointerMove:B(e.onPointerMove,m=>{m.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(r.onTriggerEnter(),u.current=!0)}),onPointerLeave:B(e.onPointerLeave,()=>{r.onTriggerLeave(),u.current=!1}),onPointerDown:B(e.onPointerDown,()=>{f.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:B(e.onFocus,()=>{f.current||r.onOpen()}),onBlur:B(e.onBlur,r.onClose),onClick:B(e.onClick,r.onClose)})))}),bo="TooltipPortal",[Vo,Eo]=Pe(bo,{forceMount:void 0}),ae="TooltipContent",Co=a.forwardRef((e,t)=>{const n=Eo(ae,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...i}=e,s=Oe(ae,e.__scopeTooltip);return a.createElement(Ct,{present:o||s.open},s.disableHoverableContent?a.createElement(Pt,L({side:r},i,{ref:t})):a.createElement(Po,L({side:r},i,{ref:t})))}),Po=a.forwardRef((e,t)=>{const n=Oe(ae,e.__scopeTooltip),o=We(ae,e.__scopeTooltip),r=a.useRef(null),i=te(t,r),[s,l]=a.useState(null),{trigger:c,onClose:f}=n,u=r.current,{onPointerInTransitChange:d}=o,m=a.useCallback(()=>{l(null),d(!1)},[d]),p=a.useCallback((h,v)=>{const g=h.currentTarget,w={x:h.clientX,y:h.clientY},x=Ao(w,g.getBoundingClientRect()),$=To(w,x),y=Ro(v.getBoundingClientRect()),b=Do([...$,...y]);l(b),d(!0)},[d]);return a.useEffect(()=>()=>m(),[m]),a.useEffect(()=>{if(c&&u){const h=g=>p(g,u),v=g=>p(g,c);return c.addEventListener("pointerleave",h),u.addEventListener("pointerleave",v),()=>{c.removeEventListener("pointerleave",h),u.removeEventListener("pointerleave",v)}}},[c,u,p,m]),a.useEffect(()=>{if(s){const h=v=>{const g=v.target,w={x:v.clientX,y:v.clientY},x=(c==null?void 0:c.contains(g))||(u==null?void 0:u.contains(g)),$=!So(w,s);x?m():$&&(m(),f())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[c,u,s,f,m]),a.createElement(Pt,L({},e,{ref:i}))}),[Oo,jo]=Pe(Be,{isInside:!1}),Pt=a.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,c=Oe(ae,n),f=He(n),{onClose:u}=c;return a.useEffect(()=>(document.addEventListener(De,u),()=>document.removeEventListener(De,u)),[u]),a.useEffect(()=>{if(c.trigger){const d=m=>{const p=m.target;p!=null&&p.contains(c.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,u]),a.createElement(Qt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:u},a.createElement(co,L({"data-state":c.stateAttribute},f,l,{ref:t,style:{...l.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)"}}),a.createElement(st,null,o),a.createElement(Oo,{scope:n,isInside:!0},a.createElement(mo,{id:c.contentId,role:"tooltip"},r||o))))});function Ao(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,o,r,i)){case i:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function To(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function Ro(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function So(e,t){const{x:n,y:o}=e;let r=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const l=t[i].x,c=t[i].y,f=t[s].x,u=t[s].y;c>o!=u>o&&n<(f-l)*(o-c)/(u-c)+l&&(r=!r)}return r}function Do(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),_o(t)}function _o(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.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)}const Lo=wo,No=$o,Mo=yo,Ot=Co,Uo=Lo,ko=No,Io=Mo,At=a.forwardRef(({className:e,sideOffset:t=4,...n},o)=>ve.jsx(Ot,{ref:o,sideOffset:t,className:zt("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]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));At.displayName=Ot.displayName;function Yo({content:e,children:t}){return e?ve.jsxs(ko,{children:[ve.jsx(Io,{asChild:!0,children:t}),ve.jsx(At,{children:e})]}):t}export{rt as $,Yo as S,Uo as T,L as _,ko as a,Io as b,At as c,te as d,fo as e,ne as f,le as g,B as h,rn as i,Ct as j,$t as k,io as l,so as m,it as n,Qt as o,co as p,Q as q,po as r};
2
+ //# sourceMappingURL=tooltip-CVFWPOu0.js.map