ivt 0.1.8 → 0.1.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 (123) hide show
  1. package/dist/accordion/index.mjs +1 -1
  2. package/dist/alert/index.mjs +1 -1
  3. package/dist/alert-dialog/index.mjs +1 -1
  4. package/dist/avatar/index.mjs +1 -1
  5. package/dist/badge/index.mjs +1 -1
  6. package/dist/base/index.mjs +1 -1
  7. package/dist/button/index.mjs +1 -1
  8. package/dist/calendar/index.mjs +1 -1
  9. package/dist/card/index.mjs +1 -1
  10. package/dist/checkbox/index.mjs +1 -1
  11. package/dist/chunks/{accordion-LstSopx4.mjs → accordion-BZ27divW.mjs} +2 -2
  12. package/dist/chunks/{accordion-LstSopx4.mjs.map → accordion-BZ27divW.mjs.map} +1 -1
  13. package/dist/chunks/{badge-BpvI4lxd.mjs → badge-DReiecuz.mjs} +2 -2
  14. package/dist/chunks/{badge-BpvI4lxd.mjs.map → badge-DReiecuz.mjs.map} +1 -1
  15. package/dist/chunks/{bundle-mjs-BVqH9Xiz.mjs → bundle-mjs-DdsKEIOo.mjs} +1 -1
  16. package/dist/chunks/{bundle-mjs-BVqH9Xiz.mjs.map → bundle-mjs-DdsKEIOo.mjs.map} +1 -1
  17. package/dist/chunks/{button-bpYD_OCh.mjs → button-BiUJlCbP.mjs} +2 -2
  18. package/dist/chunks/{button-bpYD_OCh.mjs.map → button-BiUJlCbP.mjs.map} +1 -1
  19. package/dist/chunks/{calendar-B7NC5f3S.mjs → calendar-CGpAU3KL.mjs} +2 -2
  20. package/dist/chunks/{calendar-B7NC5f3S.mjs.map → calendar-CGpAU3KL.mjs.map} +1 -1
  21. package/dist/chunks/check-DcO6cfxw.mjs +2 -0
  22. package/dist/chunks/{check-C1S8oGnA.mjs.map → check-DcO6cfxw.mjs.map} +1 -1
  23. package/dist/chunks/chevron-down-DAXj2M4s.mjs +2 -0
  24. package/dist/chunks/{chevron-down-LNM8QSJt.mjs.map → chevron-down-DAXj2M4s.mjs.map} +1 -1
  25. package/dist/chunks/chevron-left-BlTUbzCL.mjs +2 -0
  26. package/dist/chunks/{chevron-left-DGTU0tN0.mjs.map → chevron-left-BlTUbzCL.mjs.map} +1 -1
  27. package/dist/chunks/chevron-right-IKI4gwaE.mjs +2 -0
  28. package/dist/chunks/{chevron-right-BZ-GCzPm.mjs.map → chevron-right-IKI4gwaE.mjs.map} +1 -1
  29. package/dist/chunks/{command-BrYRDhVo.mjs → command-U0Je4z4o.mjs} +2 -2
  30. package/dist/chunks/{command-BrYRDhVo.mjs.map → command-U0Je4z4o.mjs.map} +1 -1
  31. package/dist/chunks/{createLucideIcon-JNrPx34C.mjs → createLucideIcon-BSkMD9sy.mjs} +1 -1
  32. package/dist/chunks/{createLucideIcon-JNrPx34C.mjs.map → createLucideIcon-BSkMD9sy.mjs.map} +1 -1
  33. package/dist/chunks/{dialog-qeEDGLRF.mjs → dialog-dzuVKbgu.mjs} +2 -2
  34. package/dist/chunks/{dialog-qeEDGLRF.mjs.map → dialog-dzuVKbgu.mjs.map} +1 -1
  35. package/dist/chunks/{hover-card-Ch_WNrXf.mjs → hover-card-BkSVghU4.mjs} +2 -2
  36. package/dist/chunks/{hover-card-Ch_WNrXf.mjs.map → hover-card-BkSVghU4.mjs.map} +1 -1
  37. package/dist/chunks/{index-BSTiUDx6.mjs → index-BXKQJZ6z.mjs} +1 -1
  38. package/dist/chunks/{index-BSTiUDx6.mjs.map → index-BXKQJZ6z.mjs.map} +1 -1
  39. package/dist/chunks/{index-Jch-kFOs.mjs → index-BclYsZHn.mjs} +2 -2
  40. package/dist/chunks/{index-Jch-kFOs.mjs.map → index-BclYsZHn.mjs.map} +1 -1
  41. package/dist/chunks/{index-9Wr-AbGf.mjs → index-BgU_7G37.mjs} +2 -2
  42. package/dist/chunks/{index-9Wr-AbGf.mjs.map → index-BgU_7G37.mjs.map} +1 -1
  43. package/dist/chunks/{index-vjATIVlG.mjs → index-Bj6b6xW8.mjs} +1 -1
  44. package/dist/chunks/{index-vjATIVlG.mjs.map → index-Bj6b6xW8.mjs.map} +1 -1
  45. package/dist/chunks/{index-C_f5Fx2v.mjs → index-C99OdH8-.mjs} +1 -1
  46. package/dist/chunks/{index-C_f5Fx2v.mjs.map → index-C99OdH8-.mjs.map} +1 -1
  47. package/dist/chunks/{index-Dw-nLa3V.mjs → index-CD0qf5ak.mjs} +2 -2
  48. package/dist/chunks/{index-Dw-nLa3V.mjs.map → index-CD0qf5ak.mjs.map} +1 -1
  49. package/dist/chunks/{index-CJdBH2dA.mjs → index-CDzNhFWE.mjs} +2 -2
  50. package/dist/chunks/{index-CJdBH2dA.mjs.map → index-CDzNhFWE.mjs.map} +1 -1
  51. package/dist/chunks/{index-qIY9XpbL.mjs → index-CJw5YZXp.mjs} +2 -2
  52. package/dist/chunks/{index-qIY9XpbL.mjs.map → index-CJw5YZXp.mjs.map} +1 -1
  53. package/dist/chunks/{index-Ga0tRLIX.mjs → index-DHTHqgm4.mjs} +2 -2
  54. package/dist/chunks/{index-Ga0tRLIX.mjs.map → index-DHTHqgm4.mjs.map} +1 -1
  55. package/dist/chunks/{index-B7JXO_ZL.mjs → index-DKvOtb2R.mjs} +2 -2
  56. package/dist/chunks/{index-B7JXO_ZL.mjs.map → index-DKvOtb2R.mjs.map} +1 -1
  57. package/dist/chunks/{index-BWIrjh6G.mjs → index-DN2GfLYB.mjs} +2 -2
  58. package/dist/chunks/{index-BWIrjh6G.mjs.map → index-DN2GfLYB.mjs.map} +1 -1
  59. package/dist/chunks/{index-D1v3PdP0.mjs → index-DX37fts-.mjs} +2 -2
  60. package/dist/chunks/{index-D1v3PdP0.mjs.map → index-DX37fts-.mjs.map} +1 -1
  61. package/dist/chunks/{index-BF_rlJfV.mjs → index-DwSoQWco.mjs} +1 -1
  62. package/dist/chunks/{index-BF_rlJfV.mjs.map → index-DwSoQWco.mjs.map} +1 -1
  63. package/dist/chunks/{index-cC12OKKn.mjs → index-X2oEHtiP.mjs} +1 -1
  64. package/dist/chunks/{index-cC12OKKn.mjs.map → index-X2oEHtiP.mjs.map} +1 -1
  65. package/dist/chunks/{index-BVxX50NR.mjs → index-w5meZsTe.mjs} +2 -2
  66. package/dist/chunks/{index-BVxX50NR.mjs.map → index-w5meZsTe.mjs.map} +1 -1
  67. package/dist/chunks/{input-WGTUuQwx.mjs → input-BjHvd9_1.mjs} +2 -2
  68. package/dist/chunks/{input-WGTUuQwx.mjs.map → input-BjHvd9_1.mjs.map} +1 -1
  69. package/dist/chunks/{label-C9fmItRi.mjs → label-BwzNNKzX.mjs} +2 -2
  70. package/dist/chunks/{label-C9fmItRi.mjs.map → label-BwzNNKzX.mjs.map} +1 -1
  71. package/dist/chunks/{pagination-CwfzF6ZA.mjs → pagination-DRsm0449.mjs} +2 -2
  72. package/dist/chunks/{pagination-CwfzF6ZA.mjs.map → pagination-DRsm0449.mjs.map} +1 -1
  73. package/dist/chunks/{popover-DWUH3762.mjs → popover-C1cJBw3j.mjs} +2 -2
  74. package/dist/chunks/{popover-DWUH3762.mjs.map → popover-C1cJBw3j.mjs.map} +1 -1
  75. package/dist/chunks/{progress-4uCJqswH.mjs → progress-2xiymnoq.mjs} +2 -2
  76. package/dist/chunks/{progress-4uCJqswH.mjs.map → progress-2xiymnoq.mjs.map} +1 -1
  77. package/dist/chunks/{scroll-area-k2fAfAN1.mjs → scroll-area-v3WLDhPc.mjs} +2 -2
  78. package/dist/chunks/{scroll-area-k2fAfAN1.mjs.map → scroll-area-v3WLDhPc.mjs.map} +1 -1
  79. package/dist/chunks/{select-DScrQSU7.mjs → select-BZFFkHf0.mjs} +2 -2
  80. package/dist/chunks/{select-DScrQSU7.mjs.map → select-BZFFkHf0.mjs.map} +1 -1
  81. package/dist/chunks/{skeleton-BOGCHPea.mjs → skeleton-COXF8Nl_.mjs} +2 -2
  82. package/dist/chunks/{skeleton-BOGCHPea.mjs.map → skeleton-COXF8Nl_.mjs.map} +1 -1
  83. package/dist/chunks/{sortable-gbvqGC-N.mjs → sortable-CqFeH7tf.mjs} +2 -2
  84. package/dist/chunks/{sortable-gbvqGC-N.mjs.map → sortable-CqFeH7tf.mjs.map} +1 -1
  85. package/dist/chunks/{table-B3Ju2kvw.mjs → table-BkDUCjpn.mjs} +2 -2
  86. package/dist/chunks/{table-B3Ju2kvw.mjs.map → table-BkDUCjpn.mjs.map} +1 -1
  87. package/dist/chunks/{tslib.es6-DNj8ZlM2.mjs → tslib.es6-B8aZ0Vi5.mjs} +1 -1
  88. package/dist/chunks/{tslib.es6-DNj8ZlM2.mjs.map → tslib.es6-B8aZ0Vi5.mjs.map} +1 -1
  89. package/dist/chunks/{utils-Bv9f_FMv.mjs → utils-B4HRExF_.mjs} +2 -2
  90. package/dist/chunks/{utils-Bv9f_FMv.mjs.map → utils-B4HRExF_.mjs.map} +1 -1
  91. package/dist/chunks/x-rWMGj99P.mjs +2 -0
  92. package/dist/chunks/{x-CyVCd2U8.mjs.map → x-rWMGj99P.mjs.map} +1 -1
  93. package/dist/command/index.mjs +1 -1
  94. package/dist/data-table/index.mjs +1 -1
  95. package/dist/data-table/index.mjs.map +1 -1
  96. package/dist/dialog/index.mjs +1 -1
  97. package/dist/dropdown-menu/index.mjs +1 -1
  98. package/dist/dropzone/index.mjs +1 -1
  99. package/dist/form/index.mjs +1 -1
  100. package/dist/hover-card/index.mjs +1 -1
  101. package/dist/icon/index.mjs +1 -1
  102. package/dist/index.css +1 -1
  103. package/dist/input/index.mjs +1 -1
  104. package/dist/label/index.mjs +1 -1
  105. package/dist/pagination/index.mjs +1 -1
  106. package/dist/popover/index.mjs +1 -1
  107. package/dist/progress/index.mjs +1 -1
  108. package/dist/scroll-area/index.mjs +1 -1
  109. package/dist/select/index.mjs +1 -1
  110. package/dist/separator/index.mjs +1 -1
  111. package/dist/sheet/index.mjs +1 -1
  112. package/dist/skeleton/index.mjs +1 -1
  113. package/dist/sortable/index.mjs +1 -1
  114. package/dist/table/index.mjs +1 -1
  115. package/dist/tabs/index.mjs +1 -1
  116. package/dist/toast/index.mjs +1 -1
  117. package/dist/tooltip/index.mjs +1 -1
  118. package/package.json +1 -1
  119. package/dist/chunks/check-C1S8oGnA.mjs +0 -2
  120. package/dist/chunks/chevron-down-LNM8QSJt.mjs +0 -2
  121. package/dist/chunks/chevron-left-DGTU0tN0.mjs +0 -2
  122. package/dist/chunks/chevron-right-BZ-GCzPm.mjs +0 -2
  123. package/dist/chunks/x-CyVCd2U8.mjs +0 -2
@@ -1,2 +1,2 @@
1
- import*as t from"react";import{useLayoutEffect as e,useEffect as n}from"react";import*as r from"react-dom";import{P as o}from"./index-vjATIVlG.mjs";import{jsx as i}from"react/jsx-runtime";import{u as l}from"./index-9Wr-AbGf.mjs";import{c as a}from"./index-BSTiUDx6.mjs";import{u as s}from"./index-BF_rlJfV.mjs";import{u as c}from"./index-C_f5Fx2v.mjs";import{u as f}from"./index-Ga0tRLIX.mjs";const u=["top","right","bottom","left"],d=Math.min,p=Math.max,m=Math.round,h=Math.floor,g=t=>({x:t,y:t}),y={left:"right",right:"left",bottom:"top",top:"bottom"},w={start:"end",end:"start"};function x(t,e,n){return p(t,d(e,n))}function v(t,e){return"function"==typeof t?t(e):t}function b(t){return t.split("-")[0]}function R(t){return t.split("-")[1]}function A(t){return"x"===t?"y":"x"}function P(t){return"y"===t?"height":"width"}function S(t){return["top","bottom"].includes(b(t))?"y":"x"}function O(t){return A(S(t))}function T(t){return t.replace(/start|end/g,(t=>w[t]))}function L(t){return t.replace(/left|right|bottom|top/g,(t=>y[t]))}function C(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function E(t){const{x:e,y:n,width:r,height:o}=t;return{width:r,height:o,top:n,left:e,right:e+r,bottom:n+o,x:e,y:n}}function D(t,e,n){let{reference:r,floating:o}=t;const i=S(e),l=O(e),a=P(l),s=b(e),c="y"===i,f=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,d=r[a]/2-o[a]/2;let p;switch(s){case"top":p={x:f,y:r.y-o.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:u};break;case"left":p={x:r.x-o.width,y:u};break;default:p={x:r.x,y:r.y}}switch(R(e)){case"start":p[l]-=d*(n&&c?-1:1);break;case"end":p[l]+=d*(n&&c?-1:1)}return p}async function H(t,e){var n;void 0===e&&(e={});const{x:r,y:o,platform:i,rects:l,elements:a,strategy:s}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:d=!1,padding:p=0}=v(e,t),m=C(p),h=a[d?"floating"===u?"reference":"floating":u],g=E(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:f,strategy:s})),y="floating"===u?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,w=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),x=await(null==i.isElement?void 0:i.isElement(w))&&await(null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},b=E(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:w,strategy:s}):y);return{top:(g.top-b.top+m.top)/x.y,bottom:(b.bottom-g.bottom+m.bottom)/x.y,left:(g.left-b.left+m.left)/x.x,right:(b.right-g.right+m.right)/x.x}}function k(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function F(t){return u.some((e=>t[e]>=0))}function W(){return"undefined"!=typeof window}function B(t){return j(t)?(t.nodeName||"").toLowerCase():"#document"}function M(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function $(t){var e;return null==(e=(j(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function j(t){return!!W()&&(t instanceof Node||t instanceof M(t).Node)}function N(t){return!!W()&&(t instanceof Element||t instanceof M(t).Element)}function _(t){return!!W()&&(t instanceof HTMLElement||t instanceof M(t).HTMLElement)}function z(t){return!(!W()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof M(t).ShadowRoot)}function V(t){const{overflow:e,overflowX:n,overflowY:r,display:o}=J(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(o)}function Y(t){return["table","td","th"].includes(B(t))}function X(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function I(t){const e=q(),n=N(t)?J(t):t;return["transform","translate","scale","rotate","perspective"].some((t=>!!n[t]&&"none"!==n[t]))||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function q(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function G(t){return["html","body","#document"].includes(B(t))}function J(t){return M(t).getComputedStyle(t)}function K(t){return N(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Q(t){if("html"===B(t))return t;const e=t.assignedSlot||t.parentNode||z(t)&&t.host||$(t);return z(e)?e.host:e}function U(t){const e=Q(t);return G(e)?t.ownerDocument?t.ownerDocument.body:t.body:_(e)&&V(e)?e:U(e)}function Z(t,e,n){var r;void 0===e&&(e=[]),void 0===n&&(n=!0);const o=U(t),i=o===(null==(r=t.ownerDocument)?void 0:r.body),l=M(o);if(i){const t=tt(l);return e.concat(l,l.visualViewport||[],V(o)?o:[],t&&n?Z(t):[])}return e.concat(o,Z(o,[],n))}function tt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function et(t){const e=J(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const o=_(t),i=o?t.offsetWidth:n,l=o?t.offsetHeight:r,a=m(n)!==i||m(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function nt(t){return N(t)?t:t.contextElement}function rt(t){const e=nt(t);if(!_(e))return g(1);const n=e.getBoundingClientRect(),{width:r,height:o,$:i}=et(e);let l=(i?m(n.width):n.width)/r,a=(i?m(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const ot=g(0);function it(t){const e=M(t);return q()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:ot}function lt(t,e,n,r){void 0===e&&(e=!1),void 0===n&&(n=!1);const o=t.getBoundingClientRect(),i=nt(t);let l=g(1);e&&(r?N(r)&&(l=rt(r)):l=rt(t));const a=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==M(t))&&e}(i,n,r)?it(i):g(0);let s=(o.left+a.x)/l.x,c=(o.top+a.y)/l.y,f=o.width/l.x,u=o.height/l.y;if(i){const t=M(i),e=r&&N(r)?M(r):r;let n=t,o=tt(n);for(;o&&r&&e!==n;){const t=rt(o),e=o.getBoundingClientRect(),r=J(o),i=e.left+(o.clientLeft+parseFloat(r.paddingLeft))*t.x,l=e.top+(o.clientTop+parseFloat(r.paddingTop))*t.y;s*=t.x,c*=t.y,f*=t.x,u*=t.y,s+=i,c+=l,n=M(o),o=tt(n)}}return E({width:f,height:u,x:s,y:c})}function at(t,e){const n=K(t).scrollLeft;return e?e.left+n:lt($(t)).left+n}function st(t,e,n){void 0===n&&(n=!1);const r=t.getBoundingClientRect();return{x:r.left+e.scrollLeft-(n?0:at(t,r)),y:r.top+e.scrollTop}}function ct(t,e,n){let r;if("viewport"===e)r=function(t,e){const n=M(t),r=$(t),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;const t=q();(!t||t&&"fixed"===e)&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:a,y:s}}(t,n);else if("document"===e)r=function(t){const e=$(t),n=K(t),r=t.ownerDocument.body,o=p(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=p(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+at(t);const a=-n.scrollTop;return"rtl"===J(r).direction&&(l+=p(e.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}($(t));else if(N(e))r=function(t,e){const n=lt(t,!0,"fixed"===e),r=n.top+t.clientTop,o=n.left+t.clientLeft,i=_(t)?rt(t):g(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:o*i.x,y:r*i.y}}(e,n);else{const n=it(t);r={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return E(r)}function ft(t,e){const n=Q(t);return!(n===e||!N(n)||G(n))&&("fixed"===J(n).position||ft(n,e))}function ut(t,e,n){const r=_(e),o=$(e),i="fixed"===n,l=lt(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const s=g(0);function c(){s.x=at(o)}if(r||!r&&!i)if(("body"!==B(e)||V(o))&&(a=K(e)),r){const t=lt(e,!0,i,e);s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}else o&&c();i&&!r&&o&&c();const f=!o||r||i?g(0):st(o,a);return{x:l.left+a.scrollLeft-s.x-f.x,y:l.top+a.scrollTop-s.y-f.y,width:l.width,height:l.height}}function dt(t){return"static"===J(t).position}function pt(t,e){if(!_(t)||"fixed"===J(t).position)return null;if(e)return e(t);let n=t.offsetParent;return $(t)===n&&(n=n.ownerDocument.body),n}function mt(t,e){const n=M(t);if(X(t))return n;if(!_(t)){let e=Q(t);for(;e&&!G(e);){if(N(e)&&!dt(e))return e;e=Q(e)}return n}let r=pt(t,e);for(;r&&Y(r)&&dt(r);)r=pt(r,e);return r&&G(r)&&dt(r)&&!I(r)?n:r||function(t){let e=Q(t);for(;_(e)&&!G(e);){if(I(e))return e;if(X(e))return null;e=Q(e)}return null}(t)||n}const ht={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:r,strategy:o}=t;const i="fixed"===o,l=$(r),a=!!e&&X(e.floating);if(r===l||a&&i)return n;let s={scrollLeft:0,scrollTop:0},c=g(1);const f=g(0),u=_(r);if((u||!u&&!i)&&(("body"!==B(r)||V(l))&&(s=K(r)),_(r))){const t=lt(r);c=rt(r),f.x=t.x+r.clientLeft,f.y=t.y+r.clientTop}const d=!l||u||i?g(0):st(l,s,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+f.x+d.x,y:n.y*c.y-s.scrollTop*c.y+f.y+d.y}},getDocumentElement:$,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:r,strategy:o}=t;const i=[..."clippingAncestors"===n?X(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let r=Z(t,[],!1).filter((t=>N(t)&&"body"!==B(t))),o=null;const i="fixed"===J(t).position;let l=i?Q(t):t;for(;N(l)&&!G(l);){const e=J(l),n=I(l);n||"fixed"!==e.position||(o=null),(i?!n&&!o:!n&&"static"===e.position&&o&&["absolute","fixed"].includes(o.position)||V(l)&&!n&&ft(t,l))?r=r.filter((t=>t!==l)):o=e,l=Q(l)}return e.set(t,r),r}(e,this._c):[].concat(n),r],l=i[0],a=i.reduce(((t,n)=>{const r=ct(e,n,o);return t.top=p(r.top,t.top),t.right=d(r.right,t.right),t.bottom=d(r.bottom,t.bottom),t.left=p(r.left,t.left),t}),ct(e,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:mt,getElementRects:async function(t){const e=this.getOffsetParent||mt,n=this.getDimensions,r=await n(t.floating);return{reference:ut(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=et(t);return{width:e,height:n}},getScale:rt,isElement:N,isRTL:function(t){return"rtl"===J(t).direction}};function gt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function yt(t,e,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=nt(t),f=o||i?[...c?Z(c):[],...Z(e)]:[];f.forEach((t=>{o&&t.addEventListener("scroll",n,{passive:!0}),i&&t.addEventListener("resize",n)}));const u=c&&a?function(t,e){let n,r=null;const o=$(t);function i(){var t;clearTimeout(n),null==(t=r)||t.disconnect(),r=null}return function l(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),i();const c=t.getBoundingClientRect(),{left:f,top:u,width:m,height:g}=c;if(a||e(),!m||!g)return;const y={rootMargin:-h(u)+"px "+-h(o.clientWidth-(f+m))+"px "+-h(o.clientHeight-(u+g))+"px "+-h(f)+"px",threshold:p(0,d(1,s))||1};let w=!0;function x(e){const r=e[0].intersectionRatio;if(r!==s){if(!w)return l();r?l(!1,r):n=setTimeout((()=>{l(!1,1e-7)}),1e3)}1!==r||gt(c,t.getBoundingClientRect())||l(),w=!1}try{r=new IntersectionObserver(x,{...y,root:o.ownerDocument})}catch(t){r=new IntersectionObserver(x,y)}r.observe(t)}(!0),i}(c,n):null;let m,g=-1,y=null;l&&(y=new ResizeObserver((t=>{let[r]=t;r&&r.target===c&&y&&(y.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var t;null==(t=y)||t.observe(e)}))),n()})),c&&!s&&y.observe(c),y.observe(e));let w=s?lt(t):null;return s&&function e(){const r=lt(t);w&&!gt(w,r)&&n();w=r,m=requestAnimationFrame(e)}(),n(),()=>{var t;f.forEach((t=>{o&&t.removeEventListener("scroll",n),i&&t.removeEventListener("resize",n)})),null==u||u(),null==(t=y)||t.disconnect(),y=null,s&&cancelAnimationFrame(m)}}const wt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:o,y:i,placement:l,middlewareData:a}=e,s=await async function(t,e){const{placement:n,platform:r,elements:o}=t,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),l=b(n),a=R(n),s="y"===S(n),c=["left","top"].includes(l)?-1:1,f=i&&s?-1:1,u=v(e,t);let{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),s?{x:p*f,y:d*c}:{x:d*c,y:p*f}}(e,t);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}},xt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:o}=e,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...s}=v(t,e),c={x:n,y:r},f=await H(e,s),u=S(b(o)),d=A(u);let p=c[d],m=c[u];if(i){const t="y"===d?"bottom":"right";p=x(p+f["y"===d?"top":"left"],p,p-f[t])}if(l){const t="y"===u?"bottom":"right";m=x(m+f["y"===u?"top":"left"],m,m-f[t])}const h=a.fn({...e,[d]:p,[u]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[d]:i,[u]:l}}}}}},vt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:o,middlewareData:i,rects:l,initialPlacement:a,platform:s,elements:c}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=v(t,e);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=b(o),w=S(a),x=b(a)===a,A=await(null==s.isRTL?void 0:s.isRTL(c.floating)),C=d||(x||!h?[L(a)]:function(t){const e=L(t);return[T(t),e,T(e)]}(a)),E="none"!==m;!d&&E&&C.push(...function(t,e,n,r){const o=R(t);let i=function(t,e,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:r:e?r:o;case"left":case"right":return e?i:l;default:return[]}}(b(t),"start"===n,r);return o&&(i=i.map((t=>t+"-"+o)),e&&(i=i.concat(i.map(T)))),i}(a,h,m,A));const D=[a,...C],k=await H(e,g),F=[];let W=(null==(r=i.flip)?void 0:r.overflows)||[];if(f&&F.push(k[y]),u){const t=function(t,e,n){void 0===n&&(n=!1);const r=R(t),o=O(t),i=P(o);let l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[i]>e.floating[i]&&(l=L(l)),[l,L(l)]}(o,l,A);F.push(k[t[0]],k[t[1]])}if(W=[...W,{placement:o,overflows:F}],!F.every((t=>t<=0))){var B,M;const t=((null==(B=i.flip)?void 0:B.index)||0)+1,e=D[t];if(e){var $;const n="alignment"===u&&w!==S(e),r=(null==($=W[0])?void 0:$.overflows[0])>0;if(!n||r)return{data:{index:t,overflows:W},reset:{placement:e}}}let n=null==(M=W.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:M.placement;if(!n)switch(p){case"bestFit":{var j;const t=null==(j=W.filter((t=>{if(E){const e=S(t.placement);return e===w||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:j[0];t&&(n=t);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},bt=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:o,rects:i,platform:l,elements:a}=e,{apply:s=()=>{},...c}=v(t,e),f=await H(e,c),u=b(o),m=R(o),h="y"===S(o),{width:g,height:y}=i.floating;let w,x;"top"===u||"bottom"===u?(w=u,x=m===(await(null==l.isRTL?void 0:l.isRTL(a.floating))?"start":"end")?"left":"right"):(x=u,w="end"===m?"top":"bottom");const A=y-f.top-f.bottom,P=g-f.left-f.right,O=d(y-f[w],A),T=d(g-f[x],P),L=!e.middlewareData.shift;let C=O,E=T;if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(E=P),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(C=A),L&&!m){const t=p(f.left,0),e=p(f.right,0),n=p(f.top,0),r=p(f.bottom,0);h?E=g-2*(0!==t||0!==e?t+e:p(f.left,f.right)):C=y-2*(0!==n||0!==r?n+r:p(f.top,f.bottom))}await s({...e,availableWidth:E,availableHeight:C});const D=await l.getDimensions(a.floating);return g!==D.width||y!==D.height?{reset:{rects:!0}}:{}}}},Rt=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:r="referenceHidden",...o}=v(t,e);switch(r){case"referenceHidden":{const t=k(await H(e,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:F(t)}}}case"escaped":{const t=k(await H(e,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:F(t)}}}default:return{}}}}},At=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:s}=e,{element:c,padding:f=0}=v(t,e)||{};if(null==c)return{};const u=C(f),p={x:n,y:r},m=O(o),h=P(m),g=await l.getDimensions(c),y="y"===m,w=y?"top":"left",b=y?"bottom":"right",A=y?"clientHeight":"clientWidth",S=i.reference[h]+i.reference[m]-p[m]-i.floating[h],T=p[m]-i.reference[m],L=await(null==l.getOffsetParent?void 0:l.getOffsetParent(c));let E=L?L[A]:0;E&&await(null==l.isElement?void 0:l.isElement(L))||(E=a.floating[A]||i.floating[h]);const D=S/2-T/2,H=E/2-g[h]/2-1,k=d(u[w],H),F=d(u[b],H),W=k,B=E-g[h]-F,M=E/2-g[h]/2+D,$=x(W,M,B),j=!s.arrow&&null!=R(o)&&M!==$&&i.reference[h]/2-(M<W?k:F)-g[h]/2<0,N=j?M<W?M-W:M-B:0;return{[m]:p[m]+N,data:{[m]:$,centerOffset:M-$-N,...j&&{alignmentOffset:N}},reset:j}}}),Pt=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:o,rects:i,middlewareData:l}=e,{offset:a=0,mainAxis:s=!0,crossAxis:c=!0}=v(t,e),f={x:n,y:r},u=S(o),d=A(u);let p=f[d],m=f[u];const h=v(a,e),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){const t="y"===d?"height":"width",e=i.reference[d]-i.floating[t]+g.mainAxis,n=i.reference[d]+i.reference[t]-g.mainAxis;p<e?p=e:p>n&&(p=n)}if(c){var y,w;const t="y"===d?"width":"height",e=["top","left"].includes(b(o)),n=i.reference[u]-i.floating[t]+(e&&(null==(y=l.offset)?void 0:y[u])||0)+(e?0:g.crossAxis),r=i.reference[u]+i.reference[t]+(e?0:(null==(w=l.offset)?void 0:w[u])||0)-(e?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[d]:p,[u]:m}}}},St=(t,e,n)=>{const r=new Map,o={platform:ht,...n},i={...o.platform,_c:r};return(async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(e));let c=await l.getElementRects({reference:t,floating:e,strategy:o}),{x:f,y:u}=D(c,r,s),d=r,p={},m=0;for(let n=0;n<a.length;n++){const{name:i,fn:h}=a[n],{x:g,y:y,data:w,reset:x}=await h({x:f,y:u,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:c,platform:l,elements:{reference:t,floating:e}});f=null!=g?g:f,u=null!=y?y:u,p={...p,[i]:{...p[i],...w}},x&&m<=50&&(m++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(c=!0===x.rects?await l.getElementRects({reference:t,floating:e,strategy:o}):x.rects),({x:f,y:u}=D(c,d,s))),n=-1)}return{x:f,y:u,placement:d,strategy:o,middlewareData:p}})(t,e,{...o,platform:i})};var Ot="undefined"!=typeof document?e:n;function Tt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;let n,r,o;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;0!==r--;)if(!Tt(t[r],e[r]))return!1;return!0}if(o=Object.keys(t),n=o.length,n!==Object.keys(e).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(e,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!t.$$typeof)&&!Tt(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}function Lt(t){if("undefined"==typeof window)return 1;return(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Ct(t,e){const n=Lt(t);return Math.round(e*n)/n}function Et(e){const n=t.useRef(e);return Ot((()=>{n.current=e})),n}const Dt=t=>({name:"arrow",options:t,fn(e){const{element:n,padding:r}="function"==typeof t?t(e):t;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?At({element:n.current,padding:r}).fn(e):{}:n?At({element:n,padding:r}).fn(e):{};var o}}),Ht=(t,e)=>({...xt(t),options:[t,e]}),kt=(t,e)=>({...Pt(t),options:[t,e]}),Ft=(t,e)=>({...vt(t),options:[t,e]}),Wt=(t,e)=>({...bt(t),options:[t,e]}),Bt=(t,e)=>({...Rt(t),options:[t,e]}),Mt=(t,e)=>({...Dt(t),options:[t,e]});var $t=t.forwardRef(((t,e)=>{const{children:n,width:r=10,height:l=5,...a}=t;return i(o.svg,{...a,ref:e,width:r,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:i("polygon",{points:"0,0 30,0 15,10"})})}));$t.displayName="Arrow";var jt=$t,Nt="Popper",[_t,zt]=a(Nt),[Vt,Yt]=_t(Nt),Xt=e=>{const{__scopePopper:n,children:r}=e,[o,l]=t.useState(null);return i(Vt,{scope:n,anchor:o,onAnchorChange:l,children:r})};Xt.displayName=Nt;var It="PopperAnchor",qt=t.forwardRef(((e,n)=>{const{__scopePopper:r,virtualRef:a,...s}=e,c=Yt(It,r),f=t.useRef(null),u=l(n,f);return t.useEffect((()=>{c.onAnchorChange(a?.current||f.current)})),a?null:i(o.div,{...s,ref:u})}));qt.displayName=It;var Gt="PopperContent",[Jt,Kt]=_t(Gt),Qt=t.forwardRef(((e,n)=>{const{__scopePopper:a,side:u="bottom",sideOffset:d=0,align:p="center",alignOffset:m=0,arrowPadding:h=0,avoidCollisions:g=!0,collisionBoundary:y=[],collisionPadding:w=0,sticky:x="partial",hideWhenDetached:v=!1,updatePositionStrategy:b="optimized",onPlaced:R,...A}=e,P=Yt(Gt,a),[S,O]=t.useState(null),T=l(n,(t=>O(t))),[L,C]=t.useState(null),E=f(L),D=E?.width??0,H=E?.height??0,k=u+("center"!==p?"-"+p:""),F="number"==typeof w?w:{top:0,right:0,bottom:0,left:0,...w},W=Array.isArray(y)?y:[y],B=W.length>0,M={padding:F,boundary:W.filter(ee),altBoundary:B},{refs:$,floatingStyles:j,placement:N,isPositioned:_,middlewareData:z}=function(e){void 0===e&&(e={});const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:l,elements:{reference:a,floating:s}={},transform:c=!0,whileElementsMounted:f,open:u}=e,[d,p]=t.useState({x:0,y:0,strategy:o,placement:n,middlewareData:{},isPositioned:!1}),[m,h]=t.useState(i);Tt(m,i)||h(i);const[g,y]=t.useState(null),[w,x]=t.useState(null),v=t.useCallback((t=>{t!==P.current&&(P.current=t,y(t))}),[]),b=t.useCallback((t=>{t!==S.current&&(S.current=t,x(t))}),[]),R=a||g,A=s||w,P=t.useRef(null),S=t.useRef(null),O=t.useRef(d),T=null!=f,L=Et(f),C=Et(l),E=Et(u),D=t.useCallback((()=>{if(!P.current||!S.current)return;const t={placement:n,strategy:o,middleware:m};C.current&&(t.platform=C.current),St(P.current,S.current,t).then((t=>{const e={...t,isPositioned:!1!==E.current};H.current&&!Tt(O.current,e)&&(O.current=e,r.flushSync((()=>{p(e)})))}))}),[m,n,o,C,E]);Ot((()=>{!1===u&&O.current.isPositioned&&(O.current.isPositioned=!1,p((t=>({...t,isPositioned:!1}))))}),[u]);const H=t.useRef(!1);Ot((()=>(H.current=!0,()=>{H.current=!1})),[]),Ot((()=>{if(R&&(P.current=R),A&&(S.current=A),R&&A){if(L.current)return L.current(R,A,D);D()}}),[R,A,D,L,T]);const k=t.useMemo((()=>({reference:P,floating:S,setReference:v,setFloating:b})),[v,b]),F=t.useMemo((()=>({reference:R,floating:A})),[R,A]),W=t.useMemo((()=>{const t={position:o,left:0,top:0};if(!F.floating)return t;const e=Ct(F.floating,d.x),n=Ct(F.floating,d.y);return c?{...t,transform:"translate("+e+"px, "+n+"px)",...Lt(F.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:e,top:n}}),[o,c,F.floating,d.x,d.y]);return t.useMemo((()=>({...d,update:D,refs:k,elements:F,floatingStyles:W})),[d,D,k,F,W])}({strategy:"fixed",placement:k,whileElementsMounted:(...t)=>yt(...t,{animationFrame:"always"===b}),elements:{reference:P.anchor},middleware:[(V={mainAxis:d+H,alignmentAxis:m},{...wt(V),options:[V,Y]}),g&&Ht({mainAxis:!0,crossAxis:!1,limiter:"partial"===x?kt():void 0,...M}),g&&Ft({...M}),Wt({...M,apply:({elements:t,rects:e,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=e.reference,l=t.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${r}px`),l.setProperty("--radix-popper-anchor-width",`${o}px`),l.setProperty("--radix-popper-anchor-height",`${i}px`)}}),L&&Mt({element:L,padding:h}),ne({arrowWidth:D,arrowHeight:H}),v&&Bt({strategy:"referenceHidden",...M})]});var V,Y;const[X,I]=re(N),q=s(R);c((()=>{_&&q?.()}),[_,q]);const G=z.arrow?.x,J=z.arrow?.y,K=0!==z.arrow?.centerOffset,[Q,U]=t.useState();return c((()=>{S&&U(window.getComputedStyle(S).zIndex)}),[S]),i("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...j,transform:_?j.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[z.transformOrigin?.x,z.transformOrigin?.y].join(" "),...z.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:i(Jt,{scope:a,placedSide:X,onArrowChange:C,arrowX:G,arrowY:J,shouldHideArrow:K,children:i(o.div,{"data-side":X,"data-align":I,...A,ref:T,style:{...A.style,animation:_?void 0:"none"}})})})}));Qt.displayName=Gt;var Ut="PopperArrow",Zt={top:"bottom",right:"left",bottom:"top",left:"right"},te=t.forwardRef((function(t,e){const{__scopePopper:n,...r}=t,o=Kt(Ut,n),l=Zt[o.placedSide];return i("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:i(jt,{...r,ref:e,style:{...r.style,display:"block"}})})}));function ee(t){return null!==t}te.displayName=Ut;var ne=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:r,middlewareData:o}=e,i=0!==o.arrow?.centerOffset,l=i?0:t.arrowWidth,a=i?0:t.arrowHeight,[s,c]=re(n),f={start:"0%",center:"50%",end:"100%"}[c],u=(o.arrow?.x??0)+l/2,d=(o.arrow?.y??0)+a/2;let p="",m="";return"bottom"===s?(p=i?f:`${u}px`,m=-a+"px"):"top"===s?(p=i?f:`${u}px`,m=`${r.floating.height+a}px`):"right"===s?(p=-a+"px",m=i?f:`${d}px`):"left"===s&&(p=`${r.floating.width+a}px`,m=i?f:`${d}px`),{data:{x:p,y:m}}}});function re(t){const[e,n="center"]=t.split("-");return[e,n]}var oe=Xt,ie=qt,le=Qt,ae=te;export{ie as A,le as C,oe as R,ae as a,zt as c};
2
- //# sourceMappingURL=index-BWIrjh6G.mjs.map
1
+ import*as t from"react";import{useLayoutEffect as e,useEffect as n}from"react";import*as r from"react-dom";import{P as o}from"./index-Bj6b6xW8.mjs";import{jsx as i}from"react/jsx-runtime";import{u as l}from"./index-BgU_7G37.mjs";import{c as a}from"./index-BXKQJZ6z.mjs";import{u as s}from"./index-DwSoQWco.mjs";import{u as c}from"./index-C99OdH8-.mjs";import{u as f}from"./index-DHTHqgm4.mjs";const u=["top","right","bottom","left"],d=Math.min,p=Math.max,m=Math.round,h=Math.floor,g=t=>({x:t,y:t}),y={left:"right",right:"left",bottom:"top",top:"bottom"},w={start:"end",end:"start"};function x(t,e,n){return p(t,d(e,n))}function v(t,e){return"function"==typeof t?t(e):t}function b(t){return t.split("-")[0]}function R(t){return t.split("-")[1]}function A(t){return"x"===t?"y":"x"}function P(t){return"y"===t?"height":"width"}function S(t){return["top","bottom"].includes(b(t))?"y":"x"}function O(t){return A(S(t))}function T(t){return t.replace(/start|end/g,(t=>w[t]))}function L(t){return t.replace(/left|right|bottom|top/g,(t=>y[t]))}function C(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function E(t){const{x:e,y:n,width:r,height:o}=t;return{width:r,height:o,top:n,left:e,right:e+r,bottom:n+o,x:e,y:n}}function D(t,e,n){let{reference:r,floating:o}=t;const i=S(e),l=O(e),a=P(l),s=b(e),c="y"===i,f=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,d=r[a]/2-o[a]/2;let p;switch(s){case"top":p={x:f,y:r.y-o.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:u};break;case"left":p={x:r.x-o.width,y:u};break;default:p={x:r.x,y:r.y}}switch(R(e)){case"start":p[l]-=d*(n&&c?-1:1);break;case"end":p[l]+=d*(n&&c?-1:1)}return p}async function H(t,e){var n;void 0===e&&(e={});const{x:r,y:o,platform:i,rects:l,elements:a,strategy:s}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:d=!1,padding:p=0}=v(e,t),m=C(p),h=a[d?"floating"===u?"reference":"floating":u],g=E(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:f,strategy:s})),y="floating"===u?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,w=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),x=await(null==i.isElement?void 0:i.isElement(w))&&await(null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},b=E(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:w,strategy:s}):y);return{top:(g.top-b.top+m.top)/x.y,bottom:(b.bottom-g.bottom+m.bottom)/x.y,left:(g.left-b.left+m.left)/x.x,right:(b.right-g.right+m.right)/x.x}}function k(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function F(t){return u.some((e=>t[e]>=0))}function W(){return"undefined"!=typeof window}function B(t){return j(t)?(t.nodeName||"").toLowerCase():"#document"}function M(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function $(t){var e;return null==(e=(j(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function j(t){return!!W()&&(t instanceof Node||t instanceof M(t).Node)}function N(t){return!!W()&&(t instanceof Element||t instanceof M(t).Element)}function _(t){return!!W()&&(t instanceof HTMLElement||t instanceof M(t).HTMLElement)}function z(t){return!(!W()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof M(t).ShadowRoot)}function V(t){const{overflow:e,overflowX:n,overflowY:r,display:o}=J(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(o)}function Y(t){return["table","td","th"].includes(B(t))}function X(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function I(t){const e=q(),n=N(t)?J(t):t;return["transform","translate","scale","rotate","perspective"].some((t=>!!n[t]&&"none"!==n[t]))||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function q(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function G(t){return["html","body","#document"].includes(B(t))}function J(t){return M(t).getComputedStyle(t)}function K(t){return N(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Q(t){if("html"===B(t))return t;const e=t.assignedSlot||t.parentNode||z(t)&&t.host||$(t);return z(e)?e.host:e}function U(t){const e=Q(t);return G(e)?t.ownerDocument?t.ownerDocument.body:t.body:_(e)&&V(e)?e:U(e)}function Z(t,e,n){var r;void 0===e&&(e=[]),void 0===n&&(n=!0);const o=U(t),i=o===(null==(r=t.ownerDocument)?void 0:r.body),l=M(o);if(i){const t=tt(l);return e.concat(l,l.visualViewport||[],V(o)?o:[],t&&n?Z(t):[])}return e.concat(o,Z(o,[],n))}function tt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function et(t){const e=J(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const o=_(t),i=o?t.offsetWidth:n,l=o?t.offsetHeight:r,a=m(n)!==i||m(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function nt(t){return N(t)?t:t.contextElement}function rt(t){const e=nt(t);if(!_(e))return g(1);const n=e.getBoundingClientRect(),{width:r,height:o,$:i}=et(e);let l=(i?m(n.width):n.width)/r,a=(i?m(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const ot=g(0);function it(t){const e=M(t);return q()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:ot}function lt(t,e,n,r){void 0===e&&(e=!1),void 0===n&&(n=!1);const o=t.getBoundingClientRect(),i=nt(t);let l=g(1);e&&(r?N(r)&&(l=rt(r)):l=rt(t));const a=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==M(t))&&e}(i,n,r)?it(i):g(0);let s=(o.left+a.x)/l.x,c=(o.top+a.y)/l.y,f=o.width/l.x,u=o.height/l.y;if(i){const t=M(i),e=r&&N(r)?M(r):r;let n=t,o=tt(n);for(;o&&r&&e!==n;){const t=rt(o),e=o.getBoundingClientRect(),r=J(o),i=e.left+(o.clientLeft+parseFloat(r.paddingLeft))*t.x,l=e.top+(o.clientTop+parseFloat(r.paddingTop))*t.y;s*=t.x,c*=t.y,f*=t.x,u*=t.y,s+=i,c+=l,n=M(o),o=tt(n)}}return E({width:f,height:u,x:s,y:c})}function at(t,e){const n=K(t).scrollLeft;return e?e.left+n:lt($(t)).left+n}function st(t,e,n){void 0===n&&(n=!1);const r=t.getBoundingClientRect();return{x:r.left+e.scrollLeft-(n?0:at(t,r)),y:r.top+e.scrollTop}}function ct(t,e,n){let r;if("viewport"===e)r=function(t,e){const n=M(t),r=$(t),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;const t=q();(!t||t&&"fixed"===e)&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:a,y:s}}(t,n);else if("document"===e)r=function(t){const e=$(t),n=K(t),r=t.ownerDocument.body,o=p(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=p(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+at(t);const a=-n.scrollTop;return"rtl"===J(r).direction&&(l+=p(e.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}($(t));else if(N(e))r=function(t,e){const n=lt(t,!0,"fixed"===e),r=n.top+t.clientTop,o=n.left+t.clientLeft,i=_(t)?rt(t):g(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:o*i.x,y:r*i.y}}(e,n);else{const n=it(t);r={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return E(r)}function ft(t,e){const n=Q(t);return!(n===e||!N(n)||G(n))&&("fixed"===J(n).position||ft(n,e))}function ut(t,e,n){const r=_(e),o=$(e),i="fixed"===n,l=lt(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const s=g(0);function c(){s.x=at(o)}if(r||!r&&!i)if(("body"!==B(e)||V(o))&&(a=K(e)),r){const t=lt(e,!0,i,e);s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}else o&&c();i&&!r&&o&&c();const f=!o||r||i?g(0):st(o,a);return{x:l.left+a.scrollLeft-s.x-f.x,y:l.top+a.scrollTop-s.y-f.y,width:l.width,height:l.height}}function dt(t){return"static"===J(t).position}function pt(t,e){if(!_(t)||"fixed"===J(t).position)return null;if(e)return e(t);let n=t.offsetParent;return $(t)===n&&(n=n.ownerDocument.body),n}function mt(t,e){const n=M(t);if(X(t))return n;if(!_(t)){let e=Q(t);for(;e&&!G(e);){if(N(e)&&!dt(e))return e;e=Q(e)}return n}let r=pt(t,e);for(;r&&Y(r)&&dt(r);)r=pt(r,e);return r&&G(r)&&dt(r)&&!I(r)?n:r||function(t){let e=Q(t);for(;_(e)&&!G(e);){if(I(e))return e;if(X(e))return null;e=Q(e)}return null}(t)||n}const ht={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:r,strategy:o}=t;const i="fixed"===o,l=$(r),a=!!e&&X(e.floating);if(r===l||a&&i)return n;let s={scrollLeft:0,scrollTop:0},c=g(1);const f=g(0),u=_(r);if((u||!u&&!i)&&(("body"!==B(r)||V(l))&&(s=K(r)),_(r))){const t=lt(r);c=rt(r),f.x=t.x+r.clientLeft,f.y=t.y+r.clientTop}const d=!l||u||i?g(0):st(l,s,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+f.x+d.x,y:n.y*c.y-s.scrollTop*c.y+f.y+d.y}},getDocumentElement:$,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:r,strategy:o}=t;const i=[..."clippingAncestors"===n?X(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let r=Z(t,[],!1).filter((t=>N(t)&&"body"!==B(t))),o=null;const i="fixed"===J(t).position;let l=i?Q(t):t;for(;N(l)&&!G(l);){const e=J(l),n=I(l);n||"fixed"!==e.position||(o=null),(i?!n&&!o:!n&&"static"===e.position&&o&&["absolute","fixed"].includes(o.position)||V(l)&&!n&&ft(t,l))?r=r.filter((t=>t!==l)):o=e,l=Q(l)}return e.set(t,r),r}(e,this._c):[].concat(n),r],l=i[0],a=i.reduce(((t,n)=>{const r=ct(e,n,o);return t.top=p(r.top,t.top),t.right=d(r.right,t.right),t.bottom=d(r.bottom,t.bottom),t.left=p(r.left,t.left),t}),ct(e,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:mt,getElementRects:async function(t){const e=this.getOffsetParent||mt,n=this.getDimensions,r=await n(t.floating);return{reference:ut(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=et(t);return{width:e,height:n}},getScale:rt,isElement:N,isRTL:function(t){return"rtl"===J(t).direction}};function gt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function yt(t,e,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=nt(t),f=o||i?[...c?Z(c):[],...Z(e)]:[];f.forEach((t=>{o&&t.addEventListener("scroll",n,{passive:!0}),i&&t.addEventListener("resize",n)}));const u=c&&a?function(t,e){let n,r=null;const o=$(t);function i(){var t;clearTimeout(n),null==(t=r)||t.disconnect(),r=null}return function l(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),i();const c=t.getBoundingClientRect(),{left:f,top:u,width:m,height:g}=c;if(a||e(),!m||!g)return;const y={rootMargin:-h(u)+"px "+-h(o.clientWidth-(f+m))+"px "+-h(o.clientHeight-(u+g))+"px "+-h(f)+"px",threshold:p(0,d(1,s))||1};let w=!0;function x(e){const r=e[0].intersectionRatio;if(r!==s){if(!w)return l();r?l(!1,r):n=setTimeout((()=>{l(!1,1e-7)}),1e3)}1!==r||gt(c,t.getBoundingClientRect())||l(),w=!1}try{r=new IntersectionObserver(x,{...y,root:o.ownerDocument})}catch(t){r=new IntersectionObserver(x,y)}r.observe(t)}(!0),i}(c,n):null;let m,g=-1,y=null;l&&(y=new ResizeObserver((t=>{let[r]=t;r&&r.target===c&&y&&(y.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var t;null==(t=y)||t.observe(e)}))),n()})),c&&!s&&y.observe(c),y.observe(e));let w=s?lt(t):null;return s&&function e(){const r=lt(t);w&&!gt(w,r)&&n();w=r,m=requestAnimationFrame(e)}(),n(),()=>{var t;f.forEach((t=>{o&&t.removeEventListener("scroll",n),i&&t.removeEventListener("resize",n)})),null==u||u(),null==(t=y)||t.disconnect(),y=null,s&&cancelAnimationFrame(m)}}const wt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:o,y:i,placement:l,middlewareData:a}=e,s=await async function(t,e){const{placement:n,platform:r,elements:o}=t,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),l=b(n),a=R(n),s="y"===S(n),c=["left","top"].includes(l)?-1:1,f=i&&s?-1:1,u=v(e,t);let{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),s?{x:p*f,y:d*c}:{x:d*c,y:p*f}}(e,t);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}},xt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:o}=e,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...s}=v(t,e),c={x:n,y:r},f=await H(e,s),u=S(b(o)),d=A(u);let p=c[d],m=c[u];if(i){const t="y"===d?"bottom":"right";p=x(p+f["y"===d?"top":"left"],p,p-f[t])}if(l){const t="y"===u?"bottom":"right";m=x(m+f["y"===u?"top":"left"],m,m-f[t])}const h=a.fn({...e,[d]:p,[u]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[d]:i,[u]:l}}}}}},vt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:o,middlewareData:i,rects:l,initialPlacement:a,platform:s,elements:c}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=v(t,e);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=b(o),w=S(a),x=b(a)===a,A=await(null==s.isRTL?void 0:s.isRTL(c.floating)),C=d||(x||!h?[L(a)]:function(t){const e=L(t);return[T(t),e,T(e)]}(a)),E="none"!==m;!d&&E&&C.push(...function(t,e,n,r){const o=R(t);let i=function(t,e,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:r:e?r:o;case"left":case"right":return e?i:l;default:return[]}}(b(t),"start"===n,r);return o&&(i=i.map((t=>t+"-"+o)),e&&(i=i.concat(i.map(T)))),i}(a,h,m,A));const D=[a,...C],k=await H(e,g),F=[];let W=(null==(r=i.flip)?void 0:r.overflows)||[];if(f&&F.push(k[y]),u){const t=function(t,e,n){void 0===n&&(n=!1);const r=R(t),o=O(t),i=P(o);let l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[i]>e.floating[i]&&(l=L(l)),[l,L(l)]}(o,l,A);F.push(k[t[0]],k[t[1]])}if(W=[...W,{placement:o,overflows:F}],!F.every((t=>t<=0))){var B,M;const t=((null==(B=i.flip)?void 0:B.index)||0)+1,e=D[t];if(e){var $;const n="alignment"===u&&w!==S(e),r=(null==($=W[0])?void 0:$.overflows[0])>0;if(!n||r)return{data:{index:t,overflows:W},reset:{placement:e}}}let n=null==(M=W.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:M.placement;if(!n)switch(p){case"bestFit":{var j;const t=null==(j=W.filter((t=>{if(E){const e=S(t.placement);return e===w||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:j[0];t&&(n=t);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},bt=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:o,rects:i,platform:l,elements:a}=e,{apply:s=()=>{},...c}=v(t,e),f=await H(e,c),u=b(o),m=R(o),h="y"===S(o),{width:g,height:y}=i.floating;let w,x;"top"===u||"bottom"===u?(w=u,x=m===(await(null==l.isRTL?void 0:l.isRTL(a.floating))?"start":"end")?"left":"right"):(x=u,w="end"===m?"top":"bottom");const A=y-f.top-f.bottom,P=g-f.left-f.right,O=d(y-f[w],A),T=d(g-f[x],P),L=!e.middlewareData.shift;let C=O,E=T;if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(E=P),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(C=A),L&&!m){const t=p(f.left,0),e=p(f.right,0),n=p(f.top,0),r=p(f.bottom,0);h?E=g-2*(0!==t||0!==e?t+e:p(f.left,f.right)):C=y-2*(0!==n||0!==r?n+r:p(f.top,f.bottom))}await s({...e,availableWidth:E,availableHeight:C});const D=await l.getDimensions(a.floating);return g!==D.width||y!==D.height?{reset:{rects:!0}}:{}}}},Rt=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:r="referenceHidden",...o}=v(t,e);switch(r){case"referenceHidden":{const t=k(await H(e,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:F(t)}}}case"escaped":{const t=k(await H(e,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:F(t)}}}default:return{}}}}},At=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:s}=e,{element:c,padding:f=0}=v(t,e)||{};if(null==c)return{};const u=C(f),p={x:n,y:r},m=O(o),h=P(m),g=await l.getDimensions(c),y="y"===m,w=y?"top":"left",b=y?"bottom":"right",A=y?"clientHeight":"clientWidth",S=i.reference[h]+i.reference[m]-p[m]-i.floating[h],T=p[m]-i.reference[m],L=await(null==l.getOffsetParent?void 0:l.getOffsetParent(c));let E=L?L[A]:0;E&&await(null==l.isElement?void 0:l.isElement(L))||(E=a.floating[A]||i.floating[h]);const D=S/2-T/2,H=E/2-g[h]/2-1,k=d(u[w],H),F=d(u[b],H),W=k,B=E-g[h]-F,M=E/2-g[h]/2+D,$=x(W,M,B),j=!s.arrow&&null!=R(o)&&M!==$&&i.reference[h]/2-(M<W?k:F)-g[h]/2<0,N=j?M<W?M-W:M-B:0;return{[m]:p[m]+N,data:{[m]:$,centerOffset:M-$-N,...j&&{alignmentOffset:N}},reset:j}}}),Pt=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:o,rects:i,middlewareData:l}=e,{offset:a=0,mainAxis:s=!0,crossAxis:c=!0}=v(t,e),f={x:n,y:r},u=S(o),d=A(u);let p=f[d],m=f[u];const h=v(a,e),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){const t="y"===d?"height":"width",e=i.reference[d]-i.floating[t]+g.mainAxis,n=i.reference[d]+i.reference[t]-g.mainAxis;p<e?p=e:p>n&&(p=n)}if(c){var y,w;const t="y"===d?"width":"height",e=["top","left"].includes(b(o)),n=i.reference[u]-i.floating[t]+(e&&(null==(y=l.offset)?void 0:y[u])||0)+(e?0:g.crossAxis),r=i.reference[u]+i.reference[t]+(e?0:(null==(w=l.offset)?void 0:w[u])||0)-(e?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[d]:p,[u]:m}}}},St=(t,e,n)=>{const r=new Map,o={platform:ht,...n},i={...o.platform,_c:r};return(async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(e));let c=await l.getElementRects({reference:t,floating:e,strategy:o}),{x:f,y:u}=D(c,r,s),d=r,p={},m=0;for(let n=0;n<a.length;n++){const{name:i,fn:h}=a[n],{x:g,y:y,data:w,reset:x}=await h({x:f,y:u,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:c,platform:l,elements:{reference:t,floating:e}});f=null!=g?g:f,u=null!=y?y:u,p={...p,[i]:{...p[i],...w}},x&&m<=50&&(m++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(c=!0===x.rects?await l.getElementRects({reference:t,floating:e,strategy:o}):x.rects),({x:f,y:u}=D(c,d,s))),n=-1)}return{x:f,y:u,placement:d,strategy:o,middlewareData:p}})(t,e,{...o,platform:i})};var Ot="undefined"!=typeof document?e:n;function Tt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;let n,r,o;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;0!==r--;)if(!Tt(t[r],e[r]))return!1;return!0}if(o=Object.keys(t),n=o.length,n!==Object.keys(e).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(e,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!t.$$typeof)&&!Tt(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}function Lt(t){if("undefined"==typeof window)return 1;return(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Ct(t,e){const n=Lt(t);return Math.round(e*n)/n}function Et(e){const n=t.useRef(e);return Ot((()=>{n.current=e})),n}const Dt=t=>({name:"arrow",options:t,fn(e){const{element:n,padding:r}="function"==typeof t?t(e):t;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?At({element:n.current,padding:r}).fn(e):{}:n?At({element:n,padding:r}).fn(e):{};var o}}),Ht=(t,e)=>({...xt(t),options:[t,e]}),kt=(t,e)=>({...Pt(t),options:[t,e]}),Ft=(t,e)=>({...vt(t),options:[t,e]}),Wt=(t,e)=>({...bt(t),options:[t,e]}),Bt=(t,e)=>({...Rt(t),options:[t,e]}),Mt=(t,e)=>({...Dt(t),options:[t,e]});var $t=t.forwardRef(((t,e)=>{const{children:n,width:r=10,height:l=5,...a}=t;return i(o.svg,{...a,ref:e,width:r,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:i("polygon",{points:"0,0 30,0 15,10"})})}));$t.displayName="Arrow";var jt=$t,Nt="Popper",[_t,zt]=a(Nt),[Vt,Yt]=_t(Nt),Xt=e=>{const{__scopePopper:n,children:r}=e,[o,l]=t.useState(null);return i(Vt,{scope:n,anchor:o,onAnchorChange:l,children:r})};Xt.displayName=Nt;var It="PopperAnchor",qt=t.forwardRef(((e,n)=>{const{__scopePopper:r,virtualRef:a,...s}=e,c=Yt(It,r),f=t.useRef(null),u=l(n,f);return t.useEffect((()=>{c.onAnchorChange(a?.current||f.current)})),a?null:i(o.div,{...s,ref:u})}));qt.displayName=It;var Gt="PopperContent",[Jt,Kt]=_t(Gt),Qt=t.forwardRef(((e,n)=>{const{__scopePopper:a,side:u="bottom",sideOffset:d=0,align:p="center",alignOffset:m=0,arrowPadding:h=0,avoidCollisions:g=!0,collisionBoundary:y=[],collisionPadding:w=0,sticky:x="partial",hideWhenDetached:v=!1,updatePositionStrategy:b="optimized",onPlaced:R,...A}=e,P=Yt(Gt,a),[S,O]=t.useState(null),T=l(n,(t=>O(t))),[L,C]=t.useState(null),E=f(L),D=E?.width??0,H=E?.height??0,k=u+("center"!==p?"-"+p:""),F="number"==typeof w?w:{top:0,right:0,bottom:0,left:0,...w},W=Array.isArray(y)?y:[y],B=W.length>0,M={padding:F,boundary:W.filter(ee),altBoundary:B},{refs:$,floatingStyles:j,placement:N,isPositioned:_,middlewareData:z}=function(e){void 0===e&&(e={});const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:l,elements:{reference:a,floating:s}={},transform:c=!0,whileElementsMounted:f,open:u}=e,[d,p]=t.useState({x:0,y:0,strategy:o,placement:n,middlewareData:{},isPositioned:!1}),[m,h]=t.useState(i);Tt(m,i)||h(i);const[g,y]=t.useState(null),[w,x]=t.useState(null),v=t.useCallback((t=>{t!==P.current&&(P.current=t,y(t))}),[]),b=t.useCallback((t=>{t!==S.current&&(S.current=t,x(t))}),[]),R=a||g,A=s||w,P=t.useRef(null),S=t.useRef(null),O=t.useRef(d),T=null!=f,L=Et(f),C=Et(l),E=Et(u),D=t.useCallback((()=>{if(!P.current||!S.current)return;const t={placement:n,strategy:o,middleware:m};C.current&&(t.platform=C.current),St(P.current,S.current,t).then((t=>{const e={...t,isPositioned:!1!==E.current};H.current&&!Tt(O.current,e)&&(O.current=e,r.flushSync((()=>{p(e)})))}))}),[m,n,o,C,E]);Ot((()=>{!1===u&&O.current.isPositioned&&(O.current.isPositioned=!1,p((t=>({...t,isPositioned:!1}))))}),[u]);const H=t.useRef(!1);Ot((()=>(H.current=!0,()=>{H.current=!1})),[]),Ot((()=>{if(R&&(P.current=R),A&&(S.current=A),R&&A){if(L.current)return L.current(R,A,D);D()}}),[R,A,D,L,T]);const k=t.useMemo((()=>({reference:P,floating:S,setReference:v,setFloating:b})),[v,b]),F=t.useMemo((()=>({reference:R,floating:A})),[R,A]),W=t.useMemo((()=>{const t={position:o,left:0,top:0};if(!F.floating)return t;const e=Ct(F.floating,d.x),n=Ct(F.floating,d.y);return c?{...t,transform:"translate("+e+"px, "+n+"px)",...Lt(F.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:e,top:n}}),[o,c,F.floating,d.x,d.y]);return t.useMemo((()=>({...d,update:D,refs:k,elements:F,floatingStyles:W})),[d,D,k,F,W])}({strategy:"fixed",placement:k,whileElementsMounted:(...t)=>yt(...t,{animationFrame:"always"===b}),elements:{reference:P.anchor},middleware:[(V={mainAxis:d+H,alignmentAxis:m},{...wt(V),options:[V,Y]}),g&&Ht({mainAxis:!0,crossAxis:!1,limiter:"partial"===x?kt():void 0,...M}),g&&Ft({...M}),Wt({...M,apply:({elements:t,rects:e,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=e.reference,l=t.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${r}px`),l.setProperty("--radix-popper-anchor-width",`${o}px`),l.setProperty("--radix-popper-anchor-height",`${i}px`)}}),L&&Mt({element:L,padding:h}),ne({arrowWidth:D,arrowHeight:H}),v&&Bt({strategy:"referenceHidden",...M})]});var V,Y;const[X,I]=re(N),q=s(R);c((()=>{_&&q?.()}),[_,q]);const G=z.arrow?.x,J=z.arrow?.y,K=0!==z.arrow?.centerOffset,[Q,U]=t.useState();return c((()=>{S&&U(window.getComputedStyle(S).zIndex)}),[S]),i("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...j,transform:_?j.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[z.transformOrigin?.x,z.transformOrigin?.y].join(" "),...z.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:i(Jt,{scope:a,placedSide:X,onArrowChange:C,arrowX:G,arrowY:J,shouldHideArrow:K,children:i(o.div,{"data-side":X,"data-align":I,...A,ref:T,style:{...A.style,animation:_?void 0:"none"}})})})}));Qt.displayName=Gt;var Ut="PopperArrow",Zt={top:"bottom",right:"left",bottom:"top",left:"right"},te=t.forwardRef((function(t,e){const{__scopePopper:n,...r}=t,o=Kt(Ut,n),l=Zt[o.placedSide];return i("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:i(jt,{...r,ref:e,style:{...r.style,display:"block"}})})}));function ee(t){return null!==t}te.displayName=Ut;var ne=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:r,middlewareData:o}=e,i=0!==o.arrow?.centerOffset,l=i?0:t.arrowWidth,a=i?0:t.arrowHeight,[s,c]=re(n),f={start:"0%",center:"50%",end:"100%"}[c],u=(o.arrow?.x??0)+l/2,d=(o.arrow?.y??0)+a/2;let p="",m="";return"bottom"===s?(p=i?f:`${u}px`,m=-a+"px"):"top"===s?(p=i?f:`${u}px`,m=`${r.floating.height+a}px`):"right"===s?(p=-a+"px",m=i?f:`${d}px`):"left"===s&&(p=`${r.floating.width+a}px`,m=i?f:`${d}px`),{data:{x:p,y:m}}}});function re(t){const[e,n="center"]=t.split("-");return[e,n]}var oe=Xt,ie=qt,le=Qt,ae=te;export{ie as A,le as C,oe as R,ae as a,zt as c};
2
+ //# sourceMappingURL=index-DN2GfLYB.mjs.map