@gyramais/gyra-design 0.1.26 → 0.1.28
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.
- package/dist/components/Information/index.js +2 -2
- package/dist/components/Information/index.js.map +1 -1
- package/dist/components/List/index.js +1 -1
- package/dist/components/List/index.js.map +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +2 -1
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/Tooltip/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use client";import r from"react";function
|
|
1
|
+
"use client";import*as e from"react";import t,{useCallback as n,createContext as o,useMemo as r,createElement as i,useContext as l,Fragment as s,forwardRef as a,Children as c,isValidElement as u,cloneElement as d,useEffect as f,useRef as p,useState as m,useLayoutEffect as g,useReducer as h}from"react";import*as b from"react-dom";import{flushSync as y}from"react-dom";function v(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var w,x={exports:{}};
|
|
2
2
|
/*!
|
|
3
3
|
Copyright (c) 2018 Jed Watson.
|
|
4
4
|
Licensed under the MIT License (MIT), see
|
|
5
5
|
http://jedwatson.github.io/classnames
|
|
6
|
-
*/e=n,function(){var r={}.hasOwnProperty;function t(){for(var r="",t=0;t<arguments.length;t++){var e=arguments[t];e&&(r=a(r,n(e)))}return r}function n(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return t.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var n="";for(var o in e)r.call(e,o)&&e[o]&&(n=a(n,o));return n}function a(r,t){return t?r?r+" "+t:r+t:r}e.exports?(t.default=t,e.exports=t):window.classNames=t}();var a=t(n.exports),o=function(t){var e=t.id,n=t.className,o=t.label,i=t.children;return r.createElement("div",{id:e,className:a("gyramais-information",n)},r.createElement("div",{className:"gyramais-information-label"},o),r.createElement("div",{className:"gyramais-information-content"},i||"-"))};export{o as Information};
|
|
6
|
+
*/w=x,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=o(e,n(r)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var r="";for(var i in n)e.call(n,i)&&n[i]&&(r=o(r,i));return r}function o(e,t){return t?e?e+" "+t:e+t:e}w.exports?(t.default=t,w.exports=t):window.classNames=t}();var E=v(x.exports),T=function(){return T=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},T.apply(this,arguments)};function O(){return O=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},O.apply(this,arguments)}function P(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(null==e||e(o),!1===n||!o.defaultPrevented)return null==t?void 0:t(o)}}function C(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function k(...e){return n(C(...e),e)}function S(e,t=[]){let n=[];const s=()=>{const t=n.map((e=>o(e)));return function(n){const o=(null==n?void 0:n[e])||t;return r((()=>({[`__scope${e}`]:{...n,[e]:o}})),[n,o])}};return s.scopeName=e,[function(t,s){const a=o(s),c=n.length;function u(t){const{scope:n,children:o,...l}=t,s=(null==n?void 0:n[e][c])||a,u=r((()=>l),Object.values(l));return i(s.Provider,{value:u},o)}return n=[...n,s],u.displayName=t+"Provider",[u,function(n,o){const r=(null==o?void 0:o[e][c])||a,i=l(r);if(i)return i;if(void 0!==s)return s;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},L(s,...t)]}function L(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=n.reduce(((t,{useScope:n,scopeName:o})=>({...t,...n(e)[`__scope${o}`]})),{});return r((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return n.scopeName=t.scopeName,n}"function"==typeof SuppressedError&&SuppressedError;const A=a(((e,t)=>{const{children:n,...o}=e,r=c.toArray(n),l=r.find(z);if(l){const e=l.props.children,n=r.map((t=>t===l?c.count(e)>1?c.only(null):u(e)?e.props.children:null:t));return i(N,O({},o,{ref:t}),u(e)?d(e,void 0,n):null)}return i(N,O({},o,{ref:t}),n)}));A.displayName="Slot";const N=a(((e,t)=>{const{children:n,...o}=e;return u(n)?d(n,{...R(o,n.props),ref:t?C(t,n.ref):n.ref}):c.count(n)>1?c.only(null):null}));N.displayName="SlotClone";const D=({children:e})=>i(s,null,e);function z(e){return u(e)&&e.type===D}function R(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]=(...e)=>{i(...e),r(...e)}:r&&(n[o]=r):"style"===o?n[o]={...r,...i}:"className"===o&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}const M=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=a(((e,n)=>{const{asChild:o,...r}=e,l=o?A:t;return f((()=>{window[Symbol.for("radix-ui")]=!0}),[]),i(l,O({},r,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function I(e){const t=p(e);return f((()=>{t.current=e})),r((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}const j="dismissableLayer.update",_="dismissableLayer.pointerDownOutside",W="dismissableLayer.focusOutside";let H;const F=o({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$=a(((e,t)=>{var n;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:c,onDismiss:u,...d}=e,g=l(F),[h,b]=m(null),y=null!==(n=null==h?void 0:h.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,v]=m({}),w=k(t,(e=>b(e))),x=Array.from(g.layers),[E]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),T=x.indexOf(E),C=h?x.indexOf(h):-1,S=g.layersWithOutsidePointerEventsDisabled.size>0,L=C>=T,A=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=I(e),o=p(!1),r=p((()=>{}));return f((()=>{const e=e=>{if(e.target&&!o.current){const i={originalEvent:e};function l(){G(_,n,i,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",r.current),r.current=l,t.addEventListener("click",r.current,{once:!0})):l()}else t.removeEventListener("click",r.current);o.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",r.current)}}),[t,n]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,n=[...g.branches].some((e=>e.contains(t)));L&&!n&&(null==s||s(e),null==c||c(e),e.defaultPrevented||null==u||u())}),y),N=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=I(e),o=p(!1);return f((()=>{const e=e=>{if(e.target&&!o.current){G(W,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}((e=>{const t=e.target;[...g.branches].some((e=>e.contains(t)))||(null==a||a(e),null==c||c(e),e.defaultPrevented||null==u||u())}),y);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=I(e);f((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}((e=>{C===g.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))}),y),f((()=>{if(h)return o&&(0===g.layersWithOutsidePointerEventsDisabled.size&&(H=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(h)),g.layers.add(h),B(),()=>{o&&1===g.layersWithOutsidePointerEventsDisabled.size&&(y.body.style.pointerEvents=H)}}),[h,y,o,g]),f((()=>()=>{h&&(g.layers.delete(h),g.layersWithOutsidePointerEventsDisabled.delete(h),B())}),[h,g]),f((()=>{const e=()=>v({});return document.addEventListener(j,e),()=>document.removeEventListener(j,e)}),[]),i(M.div,O({},d,{ref:w,style:{pointerEvents:S?L?"auto":"none":void 0,...e.style},onFocusCapture:P(e.onFocusCapture,N.onFocusCapture),onBlurCapture:P(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:P(e.onPointerDownCapture,A.onPointerDownCapture)}))}));function B(){const e=new CustomEvent(j);document.dispatchEvent(e)}function G(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?function(e,t){e&&y((()=>e.dispatchEvent(t)))}(r,i):r.dispatchEvent(i)}const U=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?g:()=>{},V=e["useId".toString()]||(()=>{});let X=0;const Y=["top","right","bottom","left"],q=Math.min,K=Math.max,Z=Math.round,J=Math.floor,Q=e=>({x:e,y:e}),ee={left:"right",right:"left",bottom:"top",top:"bottom"},te={start:"end",end:"start"};function ne(e,t,n){return K(e,q(t,n))}function oe(e,t){return"function"==typeof e?e(t):e}function re(e){return e.split("-")[0]}function ie(e){return e.split("-")[1]}function le(e){return"x"===e?"y":"x"}function se(e){return"y"===e?"height":"width"}function ae(e){return["top","bottom"].includes(re(e))?"y":"x"}function ce(e){return le(ae(e))}function ue(e){return e.replace(/start|end/g,(e=>te[e]))}function de(e){return e.replace(/left|right|bottom|top/g,(e=>ee[e]))}function fe(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function pe(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function me(e,t,n){let{reference:o,floating:r}=e;const i=ae(t),l=ce(t),s=se(l),a=re(t),c="y"===i,u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,f=o[s]/2-r[s]/2;let p;switch(a){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(ie(t)){case"start":p[l]-=f*(n&&c?-1:1);break;case"end":p[l]+=f*(n&&c?-1:1)}return p}async function ge(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:l,elements:s,strategy:a}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=oe(t,e),m=fe(p),g=s[f?"floating"===d?"reference":"floating":d],h=pe(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:a})),b="floating"===d?{...l.floating,x:o,y:r}:l.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),v=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=pe(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:y,strategy:a}):b);return{top:(h.top-w.top+m.top)/v.y,bottom:(w.bottom-h.bottom+m.bottom)/v.y,left:(h.left-w.left+m.left)/v.x,right:(w.right-h.right+m.right)/v.x}}function he(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function be(e){return Y.some((t=>e[t]>=0))}const ye=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:l,middlewareData:s}=t,a=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),l=re(n),s=ie(n),a="y"===ae(n),c=["left","top"].includes(l)?-1:1,u=i&&a?-1:1,d=oe(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),a?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return l===(null==(n=s.offset)?void 0:n.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:r+a.x,y:i+a.y,data:{...a,placement:l}}}}};function ve(e){return Ee(e)?(e.nodeName||"").toLowerCase():"#document"}function we(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function xe(e){var t;return null==(t=(Ee(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ee(e){return e instanceof Node||e instanceof we(e).Node}function Te(e){return e instanceof Element||e instanceof we(e).Element}function Oe(e){return e instanceof HTMLElement||e instanceof we(e).HTMLElement}function Pe(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof we(e).ShadowRoot)}function Ce(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Ne(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function ke(e){return["table","td","th"].includes(ve(e))}function Se(e){const t=Le(),n=Ne(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Le(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ae(e){return["html","body","#document"].includes(ve(e))}function Ne(e){return we(e).getComputedStyle(e)}function De(e){return Te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ze(e){if("html"===ve(e))return e;const t=e.assignedSlot||e.parentNode||Pe(e)&&e.host||xe(e);return Pe(t)?t.host:t}function Re(e){const t=ze(e);return Ae(t)?e.ownerDocument?e.ownerDocument.body:e.body:Oe(t)&&Ce(t)?t:Re(t)}function Me(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=Re(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),l=we(r);return i?t.concat(l,l.visualViewport||[],Ce(r)?r:[],l.frameElement&&n?Me(l.frameElement):[]):t.concat(r,Me(r,[],n))}function Ie(e){const t=Ne(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Oe(e),i=r?e.offsetWidth:n,l=r?e.offsetHeight:o,s=Z(n)!==i||Z(o)!==l;return s&&(n=i,o=l),{width:n,height:o,$:s}}function je(e){return Te(e)?e:e.contextElement}function _e(e){const t=je(e);if(!Oe(t))return Q(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=Ie(t);let l=(i?Z(n.width):n.width)/o,s=(i?Z(n.height):n.height)/r;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}const We=Q(0);function He(e){const t=we(e);return Le()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:We}function Fe(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=je(e);let l=Q(1);t&&(o?Te(o)&&(l=_e(o)):l=_e(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==we(e))&&t}(i,n,o)?He(i):Q(0);let a=(r.left+s.x)/l.x,c=(r.top+s.y)/l.y,u=r.width/l.x,d=r.height/l.y;if(i){const e=we(i),t=o&&Te(o)?we(o):o;let n=e,r=n.frameElement;for(;r&&o&&t!==n;){const e=_e(r),t=r.getBoundingClientRect(),o=Ne(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,l=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;a*=e.x,c*=e.y,u*=e.x,d*=e.y,a+=i,c+=l,n=we(r),r=n.frameElement}}return pe({width:u,height:d,x:a,y:c})}const $e=[":popover-open",":modal"];function Be(e){return $e.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Ge(e){return Fe(xe(e)).left+De(e).scrollLeft}function Ue(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=we(e),o=xe(e),r=n.visualViewport;let i=o.clientWidth,l=o.clientHeight,s=0,a=0;if(r){i=r.width,l=r.height;const e=Le();(!e||e&&"fixed"===t)&&(s=r.offsetLeft,a=r.offsetTop)}return{width:i,height:l,x:s,y:a}}(e,n);else if("document"===t)o=function(e){const t=xe(e),n=De(e),o=e.ownerDocument.body,r=K(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=K(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+Ge(e);const s=-n.scrollTop;return"rtl"===Ne(o).direction&&(l+=K(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:l,y:s}}(xe(e));else if(Te(t))o=function(e,t){const n=Fe(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=Oe(e)?_e(e):Q(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:o*i.y}}(t,n);else{const n=He(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return pe(o)}function Ve(e,t){const n=ze(e);return!(n===t||!Te(n)||Ae(n))&&("fixed"===Ne(n).position||Ve(n,t))}function Xe(e,t,n){const o=Oe(t),r=xe(t),i="fixed"===n,l=Fe(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const a=Q(0);if(o||!o&&!i)if(("body"!==ve(t)||Ce(r))&&(s=De(t)),o){const e=Fe(t,!0,i,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else r&&(a.x=Ge(r));return{x:l.left+s.scrollLeft-a.x,y:l.top+s.scrollTop-a.y,width:l.width,height:l.height}}function Ye(e,t){return Oe(e)&&"fixed"!==Ne(e).position?t?t(e):e.offsetParent:null}function qe(e,t){const n=we(e);if(!Oe(e)||Be(e))return n;let o=Ye(e,t);for(;o&&ke(o)&&"static"===Ne(o).position;)o=Ye(o,t);return o&&("html"===ve(o)||"body"===ve(o)&&"static"===Ne(o).position&&!Se(o))?n:o||function(e){let t=ze(e);for(;Oe(t)&&!Ae(t);){if(Se(t))return t;t=ze(t)}return null}(e)||n}const Ke={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i="fixed"===r,l=xe(o),s=!!t&&Be(t.floating);if(o===l||s&&i)return n;let a={scrollLeft:0,scrollTop:0},c=Q(1);const u=Q(0),d=Oe(o);if((d||!d&&!i)&&(("body"!==ve(o)||Ce(l))&&(a=De(o)),Oe(o))){const e=Fe(o);c=_e(o),u.x=e.x+o.clientLeft,u.y=e.y+o.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x,y:n.y*c.y-a.scrollTop*c.y+u.y}},getDocumentElement:xe,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let o=Me(e,[],!1).filter((e=>Te(e)&&"body"!==ve(e))),r=null;const i="fixed"===Ne(e).position;let l=i?ze(e):e;for(;Te(l)&&!Ae(l);){const t=Ne(l),n=Se(l);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||Ce(l)&&!n&&Ve(e,l))?o=o.filter((e=>e!==l)):r=t,l=ze(l)}return t.set(e,o),o}(t,this._c):[].concat(n),o],l=i[0],s=i.reduce(((e,n)=>{const o=Ue(t,n,r);return e.top=K(o.top,e.top),e.right=q(o.right,e.right),e.bottom=q(o.bottom,e.bottom),e.left=K(o.left,e.left),e}),Ue(t,l,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:qe,getElementRects:async function(e){const t=this.getOffsetParent||qe,n=this.getDimensions;return{reference:Xe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Ie(e);return{width:t,height:n}},getScale:_e,isElement:Te,isRTL:function(e){return"rtl"===Ne(e).direction}};function Ze(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:a=!1}=o,c=je(e),u=r||i?[...c?Me(c):[],...Me(t)]:[];u.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,o=null;const r=xe(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function l(s,a){void 0===s&&(s=!1),void 0===a&&(a=1),i();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-J(u)+"px "+-J(r.clientWidth-(c+d))+"px "+-J(r.clientHeight-(u+f))+"px "+-J(c)+"px",threshold:K(0,q(1,a))||1};let m=!0;function g(e){const t=e[0].intersectionRatio;if(t!==a){if(!m)return l();t?l(!1,t):n=setTimeout((()=>{l(!1,1e-7)}),100)}m=!1}try{o=new IntersectionObserver(g,{...p,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(g,p)}o.observe(e)}(!0),i}(c,n):null;let f,p=-1,m=null;l&&(m=new ResizeObserver((e=>{let[o]=e;o&&o.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),c&&!a&&m.observe(c),m.observe(t));let g=a?Fe(e):null;return a&&function t(){const o=Fe(e);!g||o.x===g.x&&o.y===g.y&&o.width===g.width&&o.height===g.height||n();g=o,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=m)||e.disconnect(),m=null,a&&cancelAnimationFrame(f)}}const Je=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...a}=oe(e,t),c={x:n,y:o},u=await ge(t,a),d=ae(re(r)),f=le(d);let p=c[f],m=c[d];if(i){const e="y"===f?"bottom":"right";p=ne(p+u["y"===f?"top":"left"],p,p-u[e])}if(l){const e="y"===d?"bottom":"right";m=ne(m+u["y"===d?"top":"left"],m,m-u[e])}const g=s.fn({...t,[f]:p,[d]:m});return{...g,data:{x:g.x-n,y:g.y-o}}}}},Qe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:l,initialPlacement:s,platform:a,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...h}=oe(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const b=re(r),y=re(s)===s,v=await(null==a.isRTL?void 0:a.isRTL(c.floating)),w=f||(y||!g?[de(s)]:function(e){const t=de(e);return[ue(e),t,ue(t)]}(s));f||"none"===m||w.push(...function(e,t,n,o){const r=ie(e);let i=function(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:l;default:return[]}}(re(e),"start"===n,o);return r&&(i=i.map((e=>e+"-"+r)),t&&(i=i.concat(i.map(ue)))),i}(s,g,m,v));const x=[s,...w],E=await ge(t,h),T=[];let O=(null==(o=i.flip)?void 0:o.overflows)||[];if(u&&T.push(E[b]),d){const e=function(e,t,n){void 0===n&&(n=!1);const o=ie(e),r=ce(e),i=se(r);let l="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=de(l)),[l,de(l)]}(r,l,v);T.push(E[e[0]],E[e[1]])}if(O=[...O,{placement:r,overflows:T}],!T.every((e=>e<=0))){var P,C;const e=((null==(P=i.flip)?void 0:P.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:O},reset:{placement:t}};let n=null==(C=O.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:C.placement;if(!n)switch(p){case"bestFit":{var k;const e=null==(k=O.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:k[0];e&&(n=e);break}case"initialPlacement":n=s}if(r!==n)return{reset:{placement:n}}}return{}}}},et=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:i}=t,{apply:l=(()=>{}),...s}=oe(e,t),a=await ge(t,s),c=re(n),u=ie(n),d="y"===ae(n),{width:f,height:p}=o.floating;let m,g;"top"===c||"bottom"===c?(m=c,g=u===(await(null==r.isRTL?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(g=c,m="end"===u?"top":"bottom");const h=p-a[m],b=f-a[g],y=!t.middlewareData.shift;let v=h,w=b;if(d){const e=f-a.left-a.right;w=u||y?q(b,e):e}else{const e=p-a.top-a.bottom;v=u||y?q(h,e):e}if(y&&!u){const e=K(a.left,0),t=K(a.right,0),n=K(a.top,0),o=K(a.bottom,0);d?w=f-2*(0!==e||0!==t?e+t:K(a.left,a.right)):v=p-2*(0!==n||0!==o?n+o:K(a.top,a.bottom))}await l({...t,availableWidth:w,availableHeight:v});const x=await r.getDimensions(i.floating);return f!==x.width||p!==x.height?{reset:{rects:!0}}:{}}}},tt=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=oe(e,t);switch(o){case"referenceHidden":{const e=he(await ge(t,{...r,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:be(e)}}}case"escaped":{const e=he(await ge(t,{...r,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:be(e)}}}default:return{}}}}},nt=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:l,elements:s,middlewareData:a}=t,{element:c,padding:u=0}=oe(e,t)||{};if(null==c)return{};const d=fe(u),f={x:n,y:o},p=ce(r),m=se(p),g=await l.getDimensions(c),h="y"===p,b=h?"top":"left",y=h?"bottom":"right",v=h?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-f[p]-i.floating[m],x=f[p]-i.reference[p],E=await(null==l.getOffsetParent?void 0:l.getOffsetParent(c));let T=E?E[v]:0;T&&await(null==l.isElement?void 0:l.isElement(E))||(T=s.floating[v]||i.floating[m]);const O=w/2-x/2,P=T/2-g[m]/2-1,C=q(d[b],P),k=q(d[y],P),S=C,L=T-g[m]-k,A=T/2-g[m]/2+O,N=ne(S,A,L),D=!a.arrow&&null!=ie(r)&&A!==N&&i.reference[m]/2-(A<S?C:k)-g[m]/2<0,z=D?A<S?A-S:A-L:0;return{[p]:f[p]+z,data:{[p]:N,centerOffset:A-N-z,...D&&{alignmentOffset:z}},reset:D}}}),ot=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:l}=t,{offset:s=0,mainAxis:a=!0,crossAxis:c=!0}=oe(e,t),u={x:n,y:o},d=ae(r),f=le(d);let p=u[f],m=u[d];const g=oe(s,t),h="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(a){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+h.mainAxis,n=i.reference[f]+i.reference[e]-h.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var b,y;const e="y"===f?"width":"height",t=["top","left"].includes(re(r)),n=i.reference[d]-i.floating[e]+(t&&(null==(b=l.offset)?void 0:b[d])||0)+(t?0:h.crossAxis),o=i.reference[d]+i.reference[e]+(t?0:(null==(y=l.offset)?void 0:y[d])||0)-(t?h.crossAxis:0);m<n?m=n:m>o&&(m=o)}return{[f]:p,[d]:m}}}},rt=(e,t,n)=>{const o=new Map,r={platform:Ke,...n},i={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=n,s=i.filter(Boolean),a=await(null==l.isRTL?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=me(c,o,a),f=o,p={},m=0;for(let n=0;n<s.length;n++){const{name:i,fn:g}=s[n],{x:h,y:b,data:y,reset:v}=await g({x:u,y:d,initialPlacement:o,placement:f,strategy:r,middlewareData:p,rects:c,platform:l,elements:{reference:e,floating:t}});u=null!=h?h:u,d=null!=b?b:d,p={...p,[i]:{...p[i],...y}},v&&m<=50&&(m++,"object"==typeof v&&(v.placement&&(f=v.placement),v.rects&&(c=!0===v.rects?await l.getElementRects({reference:e,floating:t,strategy:r}):v.rects),({x:u,y:d}=me(c,f,a))),n=-1)}return{x:u,y:d,placement:f,strategy:r,middlewareData:p}})(e,t,{...r,platform:i})},it=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:o}="function"==typeof e?e(t):e;return n&&(r=n,{}.hasOwnProperty.call(r,"current"))?null!=n.current?nt({element:n.current,padding:o}).fn(t):{}:n?nt({element:n,padding:o}).fn(t):{};var r}});var lt="undefined"!=typeof document?g:f;function st(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;0!=o--;)if(!st(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;0!=o--;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;0!=o--;){const n=r[o];if(("_owner"!==n||!e.$$typeof)&&!st(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function at(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ct(e,t){const n=at(e);return Math.round(t*n)/n}function ut(t){const n=e.useRef(t);return lt((()=>{n.current=t})),n}const dt="Popper",[ft,pt]=S(dt),[mt,gt]=ft(dt),ht=a(((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,l=gt("PopperAnchor",n),s=p(null),a=k(t,s);return f((()=>{l.onAnchorChange((null==o?void 0:o.current)||s.current)})),o?null:i(M.div,O({},r,{ref:a}))})),bt="PopperContent",[yt,vt]=ft(bt),wt=a(((t,n)=>{var o,r,l,s,a,c,u,d;const{__scopePopper:f,side:p="bottom",sideOffset:g=0,align:h="center",alignOffset:y=0,arrowPadding:v=0,avoidCollisions:w=!0,collisionBoundary:x=[],collisionPadding:E=0,sticky:T="partial",hideWhenDetached:P=!1,updatePositionStrategy:C="optimized",onPlaced:S,...L}=t,A=gt(bt,f),[N,D]=m(null),z=k(n,(e=>D(e))),[R,j]=m(null),_=function(e){const[t,n]=m(void 0);return U((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const o=t[0];let r,i;if("borderBoxSize"in o){const e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(R),W=null!==(o=null==_?void 0:_.width)&&void 0!==o?o:0,H=null!==(r=null==_?void 0:_.height)&&void 0!==r?r:0,F=p+("center"!==h?"-"+h:""),$="number"==typeof E?E:{top:0,right:0,bottom:0,left:0,...E},B=Array.isArray(x)?x:[x],G=B.length>0,V={padding:$,boundary:B.filter(xt),altBoundary:G},{refs:X,floatingStyles:Y,placement:q,isPositioned:K,middlewareData:Z}=function(t){void 0===t&&(t={});const{placement:n="bottom",strategy:o="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:s}={},transform:a=!0,whileElementsMounted:c,open:u}=t,[d,f]=e.useState({x:0,y:0,strategy:o,placement:n,middlewareData:{},isPositioned:!1}),[p,m]=e.useState(r);st(p,r)||m(r);const[g,h]=e.useState(null),[y,v]=e.useState(null),w=e.useCallback((e=>{e!==O.current&&(O.current=e,h(e))}),[]),x=e.useCallback((e=>{e!==P.current&&(P.current=e,v(e))}),[]),E=l||g,T=s||y,O=e.useRef(null),P=e.useRef(null),C=e.useRef(d),k=null!=c,S=ut(c),L=ut(i),A=e.useCallback((()=>{if(!O.current||!P.current)return;const e={placement:n,strategy:o,middleware:p};L.current&&(e.platform=L.current),rt(O.current,P.current,e).then((e=>{const t={...e,isPositioned:!0};N.current&&!st(C.current,t)&&(C.current=t,b.flushSync((()=>{f(t)})))}))}),[p,n,o,L]);lt((()=>{!1===u&&C.current.isPositioned&&(C.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[u]);const N=e.useRef(!1);lt((()=>(N.current=!0,()=>{N.current=!1})),[]),lt((()=>{if(E&&(O.current=E),T&&(P.current=T),E&&T){if(S.current)return S.current(E,T,A);A()}}),[E,T,A,S,k]);const D=e.useMemo((()=>({reference:O,floating:P,setReference:w,setFloating:x})),[w,x]),z=e.useMemo((()=>({reference:E,floating:T})),[E,T]),R=e.useMemo((()=>{const e={position:o,left:0,top:0};if(!z.floating)return e;const t=ct(z.floating,d.x),n=ct(z.floating,d.y);return a?{...e,transform:"translate("+t+"px, "+n+"px)",...at(z.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:t,top:n}}),[o,a,z.floating,d.x,d.y]);return e.useMemo((()=>({...d,update:A,refs:D,elements:z,floatingStyles:R})),[d,A,D,z,R])}({strategy:"fixed",placement:F,whileElementsMounted:(...e)=>Ze(...e,{animationFrame:"always"===C}),elements:{reference:A.anchor},middleware:[ye({mainAxis:g+H,alignmentAxis:y}),w&&Je({mainAxis:!0,crossAxis:!1,limiter:"partial"===T?ot():void 0,...V}),w&&Qe({...V}),et({...V,apply:({elements:e,rects:t,availableWidth:n,availableHeight:o})=>{const{width:r,height:i}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${o}px`),l.setProperty("--radix-popper-anchor-width",`${r}px`),l.setProperty("--radix-popper-anchor-height",`${i}px`)}}),R&&it({element:R,padding:v}),Et({arrowWidth:W,arrowHeight:H}),P&&tt({strategy:"referenceHidden",...V})]}),[J,Q]=Tt(q),ee=I(S);U((()=>{K&&(null==ee||ee())}),[K,ee]);const te=null===(l=Z.arrow)||void 0===l?void 0:l.x,ne=null===(s=Z.arrow)||void 0===s?void 0:s.y,oe=0!==(null===(a=Z.arrow)||void 0===a?void 0:a.centerOffset),[re,ie]=m();return U((()=>{N&&ie(window.getComputedStyle(N).zIndex)}),[N]),i("div",{ref:X.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:K?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:re,"--radix-popper-transform-origin":[null===(c=Z.transformOrigin)||void 0===c?void 0:c.x,null===(u=Z.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:t.dir},i(yt,{scope:f,placedSide:J,onArrowChange:j,arrowX:te,arrowY:ne,shouldHideArrow:oe},i(M.div,O({"data-side":J,"data-align":Q},L,{ref:z,style:{...L.style,animation:K?void 0:"none",opacity:null!==(d=Z.hide)&&void 0!==d&&d.referenceHidden?0:void 0}}))))}));function xt(e){return null!==e}const Et=e=>({name:"transformOrigin",options:e,fn(t){var n,o,r,i,l;const{placement:s,rects:a,middlewareData:c}=t,u=0!==(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset),d=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[p,m]=Tt(s),g={start:"0%",center:"50%",end:"100%"}[m],h=(null!==(o=null===(r=c.arrow)||void 0===r?void 0:r.x)&&void 0!==o?o:0)+d/2,b=(null!==(i=null===(l=c.arrow)||void 0===l?void 0:l.y)&&void 0!==i?i:0)+f/2;let y="",v="";return"bottom"===p?(y=u?g:`${h}px`,v=-f+"px"):"top"===p?(y=u?g:`${h}px`,v=`${a.floating.height+f}px`):"right"===p?(y=-f+"px",v=u?g:`${b}px`):"left"===p&&(y=`${a.floating.width+f}px`,v=u?g:`${b}px`),{data:{x:y,y:v}}}});function Tt(e){const[t,n="center"]=e.split("-");return[t,n]}const Ot=e=>{const{__scopePopper:t,children:n}=e,[o,r]=m(null);return i(mt,{scope:t,anchor:o,onAnchorChange:r},n)},Pt=ht,Ct=wt;const kt=e=>{const{present:t,children:o}=e,r=function(e){const[t,o]=m(),r=p({}),i=p(e),l=p("none"),s=e?"mounted":"unmounted",[a,c]=function(e,t){return h(((e,n)=>{const o=t[e][n];return null!=o?o:e}),e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f((()=>{const e=St(r.current);l.current="mounted"===a?e:"none"}),[a]),U((()=>{const t=r.current,n=i.current;if(n!==e){const o=l.current,r=St(t);if(e)c("MOUNT");else if("none"===r||"none"===(null==t?void 0:t.display))c("UNMOUNT");else{c(n&&o!==r?"ANIMATION_OUT":"UNMOUNT")}i.current=e}}),[e,c]),U((()=>{if(t){const e=e=>{const n=St(r.current).includes(e.animationName);e.target===t&&n&&y((()=>c("ANIMATION_END")))},n=e=>{e.target===t&&(l.current=St(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:n((e=>{e&&(r.current=getComputedStyle(e)),o(e)}),[])}}(t),i="function"==typeof o?o({present:r.isPresent}):c.only(o),l=k(r.ref,i.ref);return"function"==typeof o||r.isPresent?d(i,{ref:l}):null};function St(e){return(null==e?void 0:e.animationName)||"none"}function Lt({prop:e,defaultProp:t,onChange:o=(()=>{})}){const[r,i]=function({defaultProp:e,onChange:t}){const n=m(e),[o]=n,r=p(o),i=I(t);return f((()=>{r.current!==o&&(i(o),r.current=o)}),[o,r,i]),n}({defaultProp:t,onChange:o}),l=void 0!==e,s=l?e:r,a=I(o);return[s,n((t=>{if(l){const n="function"==typeof t?t(e):t;n!==e&&a(n)}else i(t)}),[l,e,i,a])]}kt.displayName="Presence";const At=a(((e,t)=>i(M.span,O({},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}})))),[Nt,Dt]=S("Tooltip",[pt]),zt=pt(),Rt=700,Mt="tooltip.open",[It,jt]=Nt("TooltipProvider"),_t="Tooltip",[Wt,Ht]=Nt(_t),Ft="TooltipTrigger",$t=a(((e,t)=>{const{__scopeTooltip:o,...r}=e,l=Ht(Ft,o),s=jt(Ft,o),a=zt(o),c=k(t,p(null),l.onTriggerChange),u=p(!1),d=p(!1),m=n((()=>u.current=!1),[]);return f((()=>()=>document.removeEventListener("pointerup",m)),[m]),i(Pt,O({asChild:!0},a),i(M.button,O({"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute},r,{ref:c,onPointerMove:P(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(d.current||s.isPointerInTransitRef.current||(l.onTriggerEnter(),d.current=!0))})),onPointerLeave:P(e.onPointerLeave,(()=>{l.onTriggerLeave(),d.current=!1})),onPointerDown:P(e.onPointerDown,(()=>{u.current=!0,document.addEventListener("pointerup",m,{once:!0})})),onFocus:P(e.onFocus,(()=>{u.current||l.onOpen()})),onBlur:P(e.onBlur,l.onClose),onClick:P(e.onClick,l.onClose)})))})),[Bt,Gt]=Nt("TooltipPortal",{forceMount:void 0}),Ut="TooltipContent",Vt=a(((e,t)=>{const n=Gt(Ut,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...l}=e,s=Ht(Ut,e.__scopeTooltip);return i(kt,{present:o||s.open},s.disableHoverableContent?i(Kt,O({side:r},l,{ref:t})):i(Xt,O({side:r},l,{ref:t})))})),Xt=a(((e,t)=>{const o=Ht(Ut,e.__scopeTooltip),r=jt(Ut,e.__scopeTooltip),l=p(null),s=k(t,l),[a,c]=m(null),{trigger:u,onClose:d}=o,g=l.current,{onPointerInTransitChange:h}=r,b=n((()=>{c(null),h(!1)}),[h]),y=n(((e,t)=>{const n=e.currentTarget,o={x:e.clientX,y:e.clientY},r=function(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})}return o}(o,function(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")}}(o,n.getBoundingClientRect())),i=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(o.y-n.y)>=(e.y-n.y)*(o.x-n.x)))break;t.pop()}t.push(o)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const o=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(o.y-t.y)>=(e.y-t.y)*(o.x-t.x)))break;n.pop()}n.push(o)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...r,...function(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}]}(t.getBoundingClientRect())]);c(i),h(!0)}),[h]);return f((()=>()=>b()),[b]),f((()=>{if(u&&g){const e=e=>y(e,g),t=e=>y(e,u);return u.addEventListener("pointerleave",e),g.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),g.removeEventListener("pointerleave",t)}}}),[u,g,y,b]),f((()=>{if(a){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},o=(null==u?void 0:u.contains(t))||(null==g?void 0:g.contains(t)),r=!function(e,t){const{x:n,y:o}=e;let r=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const l=t[e].x,s=t[e].y,a=t[i].x,c=t[i].y;s>o!=c>o&&n<(a-l)*(o-s)/(c-s)+l&&(r=!r)}return r}(n,a);o?b():r&&(b(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[u,g,a,d,b]),i(Kt,O({},e,{ref:s}))})),[Yt,qt]=Nt(_t,{isInside:!1}),Kt=a(((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:l,onPointerDownOutside:s,...a}=e,c=Ht(Ut,n),u=zt(n),{onClose:d}=c;return f((()=>(document.addEventListener(Mt,d),()=>document.removeEventListener(Mt,d))),[d]),f((()=>{if(c.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(c.trigger)&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[c.trigger,d]),i($,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d},i(Ct,O({"data-state":c.stateAttribute},u,a,{ref:t,style:{...a.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)"}}),i(D,null,o),i(Yt,{scope:n,isInside:!0},i(At,{id:c.contentId,role:"tooltip"},r||o))))}));const Zt=e=>{const{__scopeTooltip:t,delayDuration:o=Rt,skipDelayDuration:r=300,disableHoverableContent:l=!1,children:s}=e,[a,c]=m(!0),u=p(!1),d=p(0);return f((()=>{const e=d.current;return()=>window.clearTimeout(e)}),[]),i(It,{scope:t,isOpenDelayed:a,delayDuration:o,onOpen:n((()=>{window.clearTimeout(d.current),c(!1)}),[]),onClose:n((()=>{window.clearTimeout(d.current),d.current=window.setTimeout((()=>c(!0)),r)}),[r]),isPointerInTransitRef:u,onPointerInTransitChange:n((e=>{u.current=e}),[]),disableHoverableContent:l},s)},Jt=t=>{const{__scopeTooltip:o,children:l,open:s,defaultOpen:a=!1,onOpenChange:c,disableHoverableContent:u,delayDuration:d}=t,g=jt(_t,t.__scopeTooltip),h=zt(o),[b,y]=m(null),v=function(t){const[n,o]=e.useState(V());return U((()=>{t||o((e=>null!=e?e:String(X++)))}),[t]),t||(n?`radix-${n}`:"")}(),w=p(0),x=null!=u?u:g.disableHoverableContent,E=null!=d?d:g.delayDuration,T=p(!1),[O=!1,P]=Lt({prop:s,defaultProp:a,onChange:e=>{e?(g.onOpen(),document.dispatchEvent(new CustomEvent(Mt))):g.onClose(),null==c||c(e)}}),C=r((()=>O?T.current?"delayed-open":"instant-open":"closed"),[O]),k=n((()=>{window.clearTimeout(w.current),T.current=!1,P(!0)}),[P]),S=n((()=>{window.clearTimeout(w.current),P(!1)}),[P]),L=n((()=>{window.clearTimeout(w.current),w.current=window.setTimeout((()=>{T.current=!0,P(!0)}),E)}),[E,P]);return f((()=>()=>window.clearTimeout(w.current)),[]),i(Ot,h,i(Wt,{scope:o,contentId:v,open:O,stateAttribute:C,trigger:b,onTriggerChange:y,onTriggerEnter:n((()=>{g.isOpenDelayed?L():k()}),[g.isOpenDelayed,L,k]),onTriggerLeave:n((()=>{x?S():window.clearTimeout(w.current)}),[S,x]),onOpen:k,onClose:S,disableHoverableContent:x},l))},Qt=$t,en=Vt;function tn(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=tn(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}const nn="-";function on(e){const t=function(e){const{theme:t,prefix:n}=e,o={nextPart:new Map,validators:[]},r=function(e,t){if(!t)return e;return e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))]))}(Object.entries(e.classGroups),n);return r.forEach((([e,n])=>{sn(n,o,e,t)})),o}(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:function(e){const n=e.split(nn);return""===n[0]&&1!==n.length&&n.shift(),rn(n,t)||function(e){if(ln.test(e)){const t=ln.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){const r=n[e]||[];return t&&o[e]?[...r,...o[e]]:r}}}function rn(e,t){if(0===e.length)return t.classGroupId;const n=e[0],o=t.nextPart.get(n),r=o?rn(e.slice(1),o):void 0;if(r)return r;if(0===t.validators.length)return;const i=e.join(nn);return t.validators.find((({validator:e})=>e(i)))?.classGroupId}const ln=/^\[(.+)\]$/;function sn(e,t,n,o){e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return e.isThemeGetter?void sn(e(o),t,n,o):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,r])=>{sn(r,an(t,e),n,o)}))}else{(""===e?t:an(t,e)).classGroupId=n}}))}function an(e,t){let n=e;return t.split(nn).forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n}function cn(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,o=new Map;function r(r,i){n.set(r,i),t++,t>e&&(t=0,o=n,n=new Map)}return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=o.get(e))?(r(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):r(e,t)}}}const un="!";function dn(e){const t=e.separator,n=1===t.length,o=t[0],r=t.length;return function(e){const i=[];let l,s=0,a=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===s){if(u===o&&(n||e.slice(c,c+r)===t)){i.push(e.slice(a,c)),a=c+r;continue}if("/"===u){l=c;continue}}"["===u?s++:"]"===u&&s--}const c=0===i.length?e:e.substring(a),u=c.startsWith(un);return{modifiers:i,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:l&&l>a?l-a:void 0}}}const fn=/\s+/;function pn(){let e,t,n=0,o="";for(;n<arguments.length;)(e=arguments[n++])&&(t=mn(e))&&(o&&(o+=" "),o+=t);return o}function mn(e){if("string"==typeof e)return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=mn(e[o]))&&(n&&(n+=" "),n+=t);return n}function gn(e,...t){let n,o,r,i=function(s){const a=t.reduce(((e,t)=>t(e)),e());return n=function(e){return{cache:cn(e.cacheSize),splitModifiers:dn(e),...on(e)}}(a),o=n.cache.get,r=n.cache.set,i=l,l(s)};function l(e){const t=o(e);if(t)return t;const i=function(e,t){const{splitModifiers:n,getClassGroupId:o,getConflictingClassGroupIds:r}=t,i=new Set;return e.trim().split(fn).map((e=>{const{modifiers:t,hasImportantModifier:r,baseClassName:i,maybePostfixModifierPosition:l}=n(e);let s=o(l?i.substring(0,l):i),a=Boolean(l);if(!s){if(!l)return{isTailwindClass:!1,originalClassName:e};if(s=o(i),!s)return{isTailwindClass:!1,originalClassName:e};a=!1}const c=function(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t}(t).join(":");return{isTailwindClass:!0,modifierId:r?c+un:c,classGroupId:s,originalClassName:e,hasPostfixModifier:a}})).reverse().filter((e=>{if(!e.isTailwindClass)return!0;const{modifierId:t,classGroupId:n,hasPostfixModifier:o}=e,l=t+n;return!i.has(l)&&(i.add(l),r(n,o).forEach((e=>i.add(t+e))),!0)})).reverse().map((e=>e.originalClassName)).join(" ")}(e,n);return r(e,i),i}return function(){return i(pn.apply(null,arguments))}}function hn(e){const t=t=>t[e]||[];return t.isThemeGetter=!0,t}const bn=/^\[(?:([a-z-]+):)?(.+)\]$/i,yn=/^\d+\/\d+$/,vn=new Set(["px","full","screen"]),wn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xn=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,En=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Tn=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,On=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Pn(e){return kn(e)||vn.has(e)||yn.test(e)}function Cn(e){return Hn(e,"length",Fn)}function kn(e){return Boolean(e)&&!Number.isNaN(Number(e))}function Sn(e){return Hn(e,"number",kn)}function Ln(e){return Boolean(e)&&Number.isInteger(Number(e))}function An(e){return e.endsWith("%")&&kn(e.slice(0,-1))}function Nn(e){return bn.test(e)}function Dn(e){return wn.test(e)}const zn=new Set(["length","size","percentage"]);function Rn(e){return Hn(e,zn,$n)}function Mn(e){return Hn(e,"position",$n)}const In=new Set(["image","url"]);function jn(e){return Hn(e,In,Gn)}function _n(e){return Hn(e,"",Bn)}function Wn(){return!0}function Hn(e,t,n){const o=bn.exec(e);return!!o&&(o[1]?"string"==typeof t?o[1]===t:t.has(o[1]):n(o[2]))}function Fn(e){return xn.test(e)&&!En.test(e)}function $n(){return!1}function Bn(e){return Tn.test(e)}function Gn(e){return On.test(e)}function Un(){const e=hn("colors"),t=hn("spacing"),n=hn("blur"),o=hn("brightness"),r=hn("borderColor"),i=hn("borderRadius"),l=hn("borderSpacing"),s=hn("borderWidth"),a=hn("contrast"),c=hn("grayscale"),u=hn("hueRotate"),d=hn("invert"),f=hn("gap"),p=hn("gradientColorStops"),m=hn("gradientColorStopPositions"),g=hn("inset"),h=hn("margin"),b=hn("opacity"),y=hn("padding"),v=hn("saturate"),w=hn("scale"),x=hn("sepia"),E=hn("skew"),T=hn("space"),O=hn("translate"),P=()=>["auto",Nn,t],C=()=>[Nn,t],k=()=>["",Pn,Cn],S=()=>["auto",kn,Nn],L=()=>["","0",Nn],A=()=>[kn,Sn],N=()=>[kn,Nn];return{cacheSize:500,separator:":",theme:{colors:[Wn],spacing:[Pn,Cn],blur:["none","",Dn,Nn],brightness:A(),borderColor:[e],borderRadius:["none","","full",Dn,Nn],borderSpacing:C(),borderWidth:k(),contrast:A(),grayscale:L(),hueRotate:N(),invert:L(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[An,Cn],inset:P(),margin:P(),opacity:A(),padding:C(),saturate:A(),scale:A(),sepia:L(),skew:N(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",Nn]}],container:["container"],columns:[{columns:[Dn]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Nn]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ln,Nn]}],basis:[{basis:P()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Nn]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",Ln,Nn]}],"grid-cols":[{"grid-cols":[Wn]}],"col-start-end":[{col:["auto",{span:["full",Ln,Nn]},Nn]}],"col-start":[{"col-start":S()}],"col-end":[{"col-end":S()}],"grid-rows":[{"grid-rows":[Wn]}],"row-start-end":[{row:["auto",{span:[Ln,Nn]},Nn]}],"row-start":[{"row-start":S()}],"row-end":[{"row-end":S()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Nn]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Nn]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Nn,t]}],"min-w":[{"min-w":[Nn,t,"min","max","fit"]}],"max-w":[{"max-w":[Nn,t,"none","full","min","max","fit","prose",{screen:[Dn]},Dn]}],h:[{h:[Nn,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Nn,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Nn,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Nn,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Dn,Cn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Sn]}],"font-family":[{font:[Wn]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Nn]}],"line-clamp":[{"line-clamp":["none",kn,Sn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Pn,Nn]}],"list-image":[{"list-image":["none",Nn]}],"list-style-type":[{list:["none","disc","decimal",Nn]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Pn,Cn]}],"underline-offset":[{"underline-offset":["auto",Pn,Nn]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Nn]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Nn]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Mn]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Rn]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},jn]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[Pn,Nn]}],"outline-w":[{outline:[Pn,Cn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:k()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[Pn,Cn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Dn,_n]}],"shadow-color":[{shadow:[Wn]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",Dn,Nn]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[v]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Nn]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",Nn]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",Nn]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Ln,Nn]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Nn]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Nn]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Nn]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Pn,Cn,Sn]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const Vn=gn(Un);function Xn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Vn(function(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=tn(e))&&(o&&(o+=" "),o+=t);return o}(e))}var Yn=Zt,qn=Jt,Kn=Qt,Zn=e.forwardRef((function(t,n){var o=t.className,r=t.sideOffset,i=void 0===r?4:r,l=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(t,["className","sideOffset"]);return e.createElement(en,T({ref:n,sideOffset:i,className:Xn("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",o)},l))}));Zn.displayName=en.displayName;var Jn=function(e){var n=e.id,o=e.className,r=e.align,i=e.side,l=e.sideOffset,s=void 0===l?8:l,a=e.visible,c=e.content,u=e.onTriggerClick,d=e.children;return t.createElement(Yn,null,t.createElement(qn,{open:a,delayDuration:100},t.createElement(Kn,{className:"gyramais-tooltip-trigger",onClick:u},d),t.createElement(Zn,{id:n,className:E("gyramais-tooltip-content",o),align:r,side:i,sideOffset:s},c)))},Qn=function(e){var n=e.id,o=e.className,r=e.label,i=e.children;return t.createElement("div",{id:n,className:E("gyramais-information",o)},t.createElement("div",{className:"gyramais-information-label"},r),t.createElement("div",{className:"gyramais-information-content"},"string"==typeof i?t.createElement(Jn,{className:"gyramais-information-content-tooltip",content:i,onTriggerClick:function(){return navigator.clipboard.writeText(i)},align:"start",side:"bottom"},i||"-"):t.createElement(t.Fragment,null,i||"-")))};export{Qn as Information};
|
|
7
7
|
//# sourceMappingURL=index.js.map
|