@zag-js/tooltip
Advanced tools
Comparing version 0.0.0-dev-20220412162814 to 0.0.0-dev-20220412212252
@@ -1,2 +0,2 @@ | ||
var y=Object.defineProperty,Z=Object.defineProperties,J=Object.getOwnPropertyDescriptor,Q=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertyNames,O=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable;var C=(e,t,n)=>t in e?y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,A=(e,t)=>{for(var n in t||(t={}))S.call(t,n)&&C(e,n,t[n]);if(O)for(var n of O(t))te.call(t,n)&&C(e,n,t[n]);return e},x=(e,t)=>Z(e,Q(t)),ne=e=>y(e,"__esModule",{value:!0});var oe=(e,t)=>{for(var n in t)y(e,n,{get:t[n],enumerable:!0})},re=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ee(t))!S.call(e,i)&&(n||i!=="default")&&y(e,i,{get:()=>t[i],enumerable:!(o=J(t,i))||o.enumerable});return e};var ie=(e=>(t,n)=>e&&e.get(t)||(n=re(ne({}),t,1),e&&e.set(t,n),n))(typeof WeakMap!="undefined"?new WeakMap:0);var Ie={};oe(Ie,{connect:()=>z,machine:()=>X});var D=e=>e?"":void 0;var N=new WeakMap;function le(e){var t;if(!e)return{};let n=N.get(e);return n||(n=((t=e==null?void 0:e.ownerDocument.defaultView)!=null?t:window).getComputedStyle(e),N.set(e,n)),n}function R(e){let t=globalThis.requestAnimationFrame(e);return function(){globalThis.cancelAnimationFrame(t)}}var ae=()=>{};var Se=(()=>{let e=0;return()=>(e++,e.toString(36))})();var g=new Map,p=new Map;function se(e,t,n,o){var i;if(!e)return ae;let r=JSON.stringify({type:t,options:o}),c=g.get(e);if(g.has(e))(c==null?void 0:c.has(r))?(i=c==null?void 0:c.get(r))==null||i.add(n):c==null||c.set(r,new Set([n]));else{let a=new Map([[r,new Set([n])]]);g.set(e,a)}function E(a){var m,f;function u(d){var h;let I=g.get(a);(h=I==null?void 0:I.get(r))==null||h.forEach(G=>G(d))}if(!(p==null?void 0:p.has(a))){p.set(a,new Map([[r,u]])),a.addEventListener(t,u,o);return}((m=p==null?void 0:p.get(a))==null?void 0:m.has(r))||((f=p.get(a))==null||f.set(r,u),a.addEventListener(t,u,o))}return E(e),function(){var a,m,f,u;if(!g.has(e))return;let d=g.get(e);if((a=d==null?void 0:d.get(r))==null||a.delete(n),((m=d==null?void 0:d.get(r))==null?void 0:m.size)===0){let h=(f=p.get(e))==null?void 0:f.get(r);e.removeEventListener(t,h,o),d==null||d.delete(r),(u=p.get(e))==null||u.delete(r),(d==null?void 0:d.size)===0&&(g.delete(e),p.delete(e))}}}var P=e=>Object.prototype.toString.call(e).slice(8,-1),ce=e=>P(e)==="Object"&&"current"in e,ue=e=>P(e)==="Function"?e():e,de=e=>P(e)==="Object"&&!!e.touches,pe={pageX:0,pageY:0,clientX:0,clientY:0};function fe(e,t="page"){let n=de(e)?e.touches[0]||e.changedTouches[0]||pe:e;return{point:{x:n[`${t}X`],y:n[`${t}Y`]}}}function w(e,t,n,o){let i=ce(e)?e.current:ue(e);return se(i,t,n,o)}function M(e,t,n,o){var i;let r=(i=be(t))!=null?i:t;return w(e,r,me(n,t==="pointerdown"),o)}function me(e,t=!1){let n=o=>{e(o,fe(o))};return t?ge(n):n}function ge(e){return t=>{var n;let o=(n=t.view)!=null?n:window,i=t instanceof o.MouseEvent;(!i||i&&t.button===0)&&e(t)}}var ve=()=>typeof window!="undefined"&&window.onpointerdown===null,Ee=()=>typeof window!="undefined"&&window.ontouchstart===null,he=()=>typeof window!="undefined"&&window.onmousedown===null,ye={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},we={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function be(e){return ve()?e:Ee()?we[e]:he()?ye[e]:e}function L(e){var t;return F(e)?e.document:(t=e==null?void 0:e.ownerDocument)!=null?t:document}function Pe(e){var t;return(t=e==null?void 0:e.ownerDocument.defaultView)!=null?t:window}function _(e){return F(e)?"":e&&e.localName||""}function V(e){let t=L(e);return _(e)==="html"?e:e.assignedSlot||e.parentElement||t.documentElement}function T(e){return typeof e=="object"&&(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE&&typeof(e==null?void 0:e.nodeName)=="string"}function F(e){return(e==null?void 0:e.toString())==="[object Window]"}function H(e){let{overflow:t,overflowX:n,overflowY:o}=le(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function b(e){return["html","body","#document"].includes(_(e))?L(e).body:T(e)&&H(e)?e:b(V(e))}function k(e,t=[]){let n=b(e),o=n===L(e).body,i=Pe(n),r=o?[i].concat(i.visualViewport||[],H(n)?n:[]):n,c=t.concat(r);return o?c:c.concat(k(V(r)))}var Ce=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","embed","iframe","object","a[href]","area[href]","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","[contenteditable]:not([contenteditable=false])","details > summary:first-of-type"].join(",");var B={border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"};function K(e,t){return e.addEventListener("webkitpointerlockchange",t,!1),e.addEventListener("mozpointerlockchange",t,!1),e.addEventListener("pointerlockchange",t,!1),function(){e.removeEventListener("mozpointerlockchange",t,!1),e.removeEventListener("pointerlockchange",t,!1)}}var j=require("@zag-js/popper");function Le(e){return{button:e,label:e,input:e,output:e,element:e}}var W=Le(e=>e);var l={getDoc:e=>e.doc||document,getWin:e=>{var t;return((t=e.doc)==null?void 0:t.defaultView)||window},getTriggerId:e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.trigger)!=null?n:`tooltip-${e.id}--trigger`},getContentId:e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.content)!=null?n:`tooltip-${e.id}--content`},getArrowId:e=>`tooltip-${e.id}--arrow`,getPositionerId:e=>`tooltip-${e.id}--popper`,portalId:"tooltip-portal",getTriggerEl:e=>l.getDoc(e).getElementById(l.getTriggerId(e)),getContentEl:e=>l.getDoc(e).getElementById(l.getContentId(e)),getPositionerEl:e=>l.getDoc(e).getElementById(l.getPositionerId(e)),getArrowEl:e=>l.getDoc(e).getElementById(l.getArrowId(e)),getScrollParent:e=>b(l.getTriggerEl(e)),getPortalEl:e=>l.getDoc(e).getElementById(l.portalId),createPortalEl:e=>{let t=l.getDoc(e).createElement("tooltip-portal");return t.id=l.portalId,t}};var q=require("@zag-js/core"),s=(0,q.proxy)({id:null,prevId:null,setId(e){this.prevId=this.id,this.id=e}});function z(e,t,n=W){let o=e.context.id,i=e.context.hasAriaLabel,r=e.hasTag("open"),c=l.getTriggerId(e.context),E=l.getContentId(e.context),a=(0,j.getPlacementStyles)({measured:!!e.context.isPlacementComplete});return{isOpen:r,open(){t("OPEN")},close(){t("CLOSE")},getAnimationState(){return{enter:s.prevId===null&&o===s.id,exit:s.id===null}},triggerProps:n.button({"data-part":"trigger",id:c,"data-expanded":D(r),"aria-describedby":r?E:void 0,onClick(){t("CLICK")},onFocus(){t("FOCUS")},onBlur(){o===s.id&&t("BLUR")},onPointerDown(){o===s.id&&t("POINTER_DOWN")},onPointerMove(){t("POINTER_ENTER")},onPointerLeave(){t("POINTER_LEAVE")},onPointerCancel(){t("POINTER_LEAVE")}}),arrowProps:n.element({id:l.getArrowId(e.context),"data-part":"arrow",style:a.arrow}),innerArrowProps:n.element({"data-part":"arrow-inner",style:a.innerArrow}),positionerProps:n.element({id:l.getPositionerId(e.context),"data-part":"positioner",style:a.floating}),contentProps:n.element({"data-part":"content",role:i?void 0:"tooltip",id:i?void 0:E,"data-placement":e.context.currentPlacement,onPointerEnter(){t("TOOLTIP_POINTER_ENTER")},onPointerLeave(){t("TOOLTIP_POINTER_LEAVE")},style:{pointerEvents:e.context.interactive?"auto":"none"}}),labelProps:n.element({"data-part":"label",id:E,role:"tooltip",style:B,children:e.context["aria-label"]}),createPortal(){let m=l.getDoc(e.context),f=l.getPortalEl(e.context);if(f)return f;let u=l.createPortalEl(e.context);return m.body.appendChild(u),u}}}var v=require("@zag-js/core");var $=require("@zag-js/popper");var U=()=>{};var We=(()=>{let e=0;return()=>(e++,e.toString(36))})();var Te=e=>ke()&&e.test(navigator.userAgent);var ke=()=>typeof window!="undefined";var Y=()=>Te(/^((?!chrome|android).)*safari/i);var X=(0,v.createMachine)({id:"tooltip",initial:"unknown",context:{id:"",openDelay:1e3,closeDelay:500,closeOnPointerDown:!0,closeOnEsc:!0,interactive:!0,positioning:{placement:"bottom"},currentPlacement:void 0},computed:{hasAriaLabel:e=>!!e["aria-label"]},on:{OPEN:"open",CLOSE:"closed"},states:{unknown:{on:{SETUP:{target:"closed",actions:"setupDocument"}}},closed:{tags:["closed"],entry:["clearGlobalId","invokeOnClose"],on:{FOCUS:"open",POINTER_ENTER:[{guard:"noVisibleTooltip",target:"opening"},{target:"open"}]}},opening:{tags:["closed"],activities:["trackScroll","trackPointerlockChange"],after:{OPEN_DELAY:"open"},on:{POINTER_LEAVE:"closed",BLUR:"closed",SCROLL:"closed",POINTER_LOCK_CHANGE:"closed",POINTER_DOWN:{guard:"closeOnPointerDown",target:"closed"}}},open:{tags:["open"],activities:["trackEscapeKey","trackDisabledTriggerOnSafari","trackScroll","trackPointerlockChange","computePlacement"],entry:["setGlobalId","invokeOnOpen"],on:{POINTER_LEAVE:[{guard:"isVisible",target:"closing"},{target:"closed"}],BLUR:"closed",ESCAPE:"closed",SCROLL:"closed",POINTER_LOCK_CHANGE:"closed",TOOLTIP_POINTER_LEAVE:{guard:"isInteractive",target:"closing"},POINTER_DOWN:{guard:"closeOnPointerDown",target:"closed"},CLICK:"closed"}},closing:{tags:["open"],activities:["trackStore","computePlacement"],after:{CLOSE_DELAY:"closed"},on:{FORCE_CLOSE:"closed",POINTER_ENTER:"open",TOOLTIP_POINTER_ENTER:{guard:"isInteractive",target:"open"}}}}},{activities:{computePlacement(e){e.currentPlacement=e.positioning.placement;let t;return R(()=>{t=(0,$.getPlacement)(l.getTriggerEl(e),l.getPositionerEl(e),x(A({},e.positioning),{onComplete(n){e.currentPlacement=n.placement,e.isPlacementComplete=!0},onCleanup(){e.currentPlacement=void 0,e.isPlacementComplete=!1}}))}),t},trackPointerlockChange(e,t,{send:n}){return K(l.getDoc(e),()=>{n("POINTER_LOCK_CHANGE")})},trackScroll(e,t,{send:n}){let o=l.getTriggerEl(e);if(!o)return;let i=k(o).map(r=>w(r,"scroll",()=>n("SCROLL"),{passive:!0,capture:!0}));return()=>{i.forEach(r=>r==null?void 0:r())}},trackStore(e,t,{send:n}){return(0,v.subscribe)(s,()=>{s.id!==e.id&&n("FORCE_CLOSE")})},trackDisabledTriggerOnSafari(e,t,{send:n}){if(!Y())return U;let o=l.getDoc(e);return M(o,"pointermove",i=>{let r="[data-part=trigger][data-expanded]";T(i.target)&&i.target.closest(r)||n("POINTER_LEAVE")})},trackEscapeKey(e,t,{send:n}){if(!e.closeOnEsc)return;let o=l.getDoc(e);return w(o,"keydown",i=>{i.key==="Escape"&&n("ESCAPE")})}},actions:{setupDocument(e,t){e.id=t.id,t.doc&&(e.doc=(0,v.ref)(t.doc))},setGlobalId(e){s.setId(e.id)},clearGlobalId(e){e.id===s.id&&s.setId(null)},invokeOnOpen(e,t){var o;["TOOLTIP_POINTER_ENTER","POINTER_ENTER"].includes(t.type)||(o=e.onOpen)==null||o.call(e)},invokeOnClose(e,t){var o;["SETUP"].includes(t.type)||(o=e.onClose)==null||o.call(e)}},guards:{closeOnPointerDown:e=>e.closeOnPointerDown,noVisibleTooltip:()=>s.id===null,isVisible:e=>e.id===s.id,isInteractive:e=>e.interactive},delays:{OPEN_DELAY:e=>e.openDelay,CLOSE_DELAY:e=>e.closeDelay}});module.exports=ie(Ie); | ||
var St=Object.defineProperty;var Ke=Object.getOwnPropertyDescriptor;var $e=Object.getOwnPropertyNames;var qe=Object.prototype.hasOwnProperty;var Ye=(t,e)=>{for(var n in e)St(t,n,{get:e[n],enumerable:!0})},Ue=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of $e(e))!qe.call(t,i)&&i!==n&&St(t,i,{get:()=>e[i],enumerable:!(r=Ke(e,i))||r.enumerable});return t};var Xe=t=>Ue(St({},"__esModule",{value:!0}),t);var Tr={};Ye(Tr,{connect:()=>_e,machine:()=>ze});module.exports=Xe(Tr);var $t=t=>t?"":void 0;var Kt=new WeakMap;function Ge(t){var e;if(!t)return{};let n=Kt.get(t);return n||(n=((e=t?.ownerDocument.defaultView)!=null?e:window).getComputedStyle(t),Kt.set(t,n)),n}function qt(t){let e=globalThis.requestAnimationFrame(t);return function(){globalThis.cancelAnimationFrame(e)}}var Je=()=>{};var Ar=(()=>{let t=0;return()=>(t++,t.toString(36))})();var V=new Map,M=new Map;function Ze(t,e,n,r){var i;if(!t)return Je;let l=JSON.stringify({type:e,options:r}),d=V.get(t);if(V.has(t))d!=null&&d.has(l)?(i=d?.get(l))==null||i.add(n):d?.set(l,new Set([n]));else{let s=new Map([[l,new Set([n])]]);V.set(t,s)}function f(s){var y,w;function g(u){var p;let o=V.get(s);(p=o?.get(l))==null||p.forEach(a=>a(u))}if(!(M!=null&&M.has(s))){M.set(s,new Map([[l,g]])),s.addEventListener(e,g,r);return}(y=M?.get(s))!=null&&y.has(l)||((w=M.get(s))==null||w.set(l,g),s.addEventListener(e,g,r))}return f(t),function(){var s,y,w,g;if(!V.has(t))return;let u=V.get(t);if((s=u?.get(l))==null||s.delete(n),((y=u?.get(l))==null?void 0:y.size)===0){let p=(w=M.get(t))==null?void 0:w.get(l);t.removeEventListener(e,p,r),u?.delete(l),(g=M.get(t))==null||g.delete(l),u?.size===0&&(V.delete(t),M.delete(t))}}}var Pt=t=>Object.prototype.toString.call(t).slice(8,-1),Qe=t=>Pt(t)==="Object"&&"current"in t,tn=t=>Pt(t)==="Function"?t():t,en=t=>Pt(t)==="Object"&&!!t.touches,nn={pageX:0,pageY:0,clientX:0,clientY:0};function rn(t,e="page"){let n=en(t)?t.touches[0]||t.changedTouches[0]||nn:t;return{point:{x:n[`${e}X`],y:n[`${e}Y`]}}}function at(t,e,n,r){let i=Qe(t)?t.current:tn(t);return Ze(i,e,n,r)}function Yt(t,e,n,r){var i;let l=(i=fn(e))!=null?i:e;return at(t,l,on(n,e==="pointerdown"),r)}function on(t,e=!1){let n=r=>{t(r,rn(r))};return e?ln(n):n}function ln(t){return e=>{var n;let r=(n=e.view)!=null?n:window,i=e instanceof r.MouseEvent;(!i||i&&e.button===0)&&t(e)}}var an=()=>typeof window<"u"&&window.onpointerdown===null,sn=()=>typeof window<"u"&&window.ontouchstart===null,cn=()=>typeof window<"u"&&window.onmousedown===null,un={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},dn={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function fn(t){return an()?t:sn()?dn[t]:cn()?un[t]:t}function Lt(t){var e;return Gt(t)?t.document:(e=t?.ownerDocument)!=null?e:document}function hn(t){var e;return(e=t?.ownerDocument.defaultView)!=null?e:window}function Ut(t){return Gt(t)?"":t&&t.localName||""}function Xt(t){let e=Lt(t);return Ut(t)==="html"?t:t.assignedSlot||t.parentElement||e.documentElement}function Tt(t){return typeof t=="object"&&t?.nodeType===Node.ELEMENT_NODE&&typeof t?.nodeName=="string"}function Gt(t){return t?.toString()==="[object Window]"}function Jt(t){let{overflow:e,overflowX:n,overflowY:r}=Ge(t);return/auto|scroll|overlay|hidden/.test(e+r+n)}function st(t){return["html","body","#document"].includes(Ut(t))?Lt(t).body:Tt(t)&&Jt(t)?t:st(Xt(t))}function Ot(t,e=[]){let n=st(t),r=n===Lt(t).body,i=hn(n),l=r?[i].concat(i.visualViewport||[],Jt(n)?n:[]):n,d=e.concat(l);return r?d:d.concat(Ot(Xt(l)))}var Cr=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","embed","iframe","object","a[href]","area[href]","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","[contenteditable]:not([contenteditable=false])","details > summary:first-of-type"].join(",");var Zt={border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"};function Qt(t,e){return t.addEventListener("webkitpointerlockchange",e,!1),t.addEventListener("mozpointerlockchange",e,!1),t.addEventListener("pointerlockchange",e,!1),function(){t.removeEventListener("mozpointerlockchange",e,!1),t.removeEventListener("pointerlockchange",e,!1)}}function U(t){return t.split("-")[0]}function ht(t){return t.split("-")[1]}function J(t){return["top","bottom"].includes(U(t))?"x":"y"}function Rt(t){return t==="y"?"height":"width"}function te(t,e,n){let{reference:r,floating:i}=t,l=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=J(e),s=Rt(f),y=r[s]/2-i[s]/2,w=U(e),g=f==="x",u;switch(w){case"top":u={x:l,y:r.y-i.height};break;case"bottom":u={x:l,y:r.y+r.height};break;case"right":u={x:r.x+r.width,y:d};break;case"left":u={x:r.x-i.width,y:d};break;default:u={x:r.x,y:r.y}}switch(ht(e)){case"start":u[f]-=y*(n&&g?-1:1);break;case"end":u[f]+=y*(n&&g?-1:1);break}return u}var pn=async(t,e,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:l=[],platform:d}=n,f=await(d.isRTL==null?void 0:d.isRTL(e)),s=await d.getElementRects({reference:t,floating:e,strategy:i}),{x:y,y:w}=te(s,r,f),g=r,u={},p=0;for(let o=0;o<l.length;o++){let{name:a,fn:c}=l[o],{x:h,y:m,data:v,reset:b}=await c({x:y,y:w,initialPlacement:r,placement:g,strategy:i,middlewareData:u,rects:s,platform:d,elements:{reference:t,floating:e}});if(y=h??y,w=m??w,u={...u,[a]:{...u[a],...v}},b){typeof b=="object"&&(b.placement&&(g=b.placement),b.rects&&(s=b.rects===!0?await d.getElementRects({reference:t,floating:e,strategy:i}):b.rects),{x:y,y:w}=te(s,g,f)),o=-1;continue}}return{x:y,y:w,placement:g,strategy:i,middlewareData:u}};function gn(t){return{top:0,right:0,bottom:0,left:0,...t}}function de(t){return typeof t!="number"?gn(t):{top:t,right:t,bottom:t,left:t}}function ut(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function It(t,e){var n;e===void 0&&(e={});let{x:r,y:i,platform:l,rects:d,elements:f,strategy:s}=t,{boundary:y="clippingAncestors",rootBoundary:w="viewport",elementContext:g="floating",altBoundary:u=!1,padding:p=0}=e,o=de(p),a=f[u?g==="floating"?"reference":"floating":g],c=ut(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(a)))==null||n?a:a.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:y,rootBoundary:w,strategy:s})),h=ut(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:g==="floating"?{...d.floating,x:r,y:i}:d.reference,offsetParent:await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),strategy:s}):d[g]);return{top:c.top-h.top+o.top,bottom:h.bottom-c.bottom+o.bottom,left:c.left-h.left+o.left,right:h.right-c.right+o.right}}var mn=Math.min,F=Math.max;function At(t,e,n){return F(t,mn(e,n))}var vn=t=>({name:"arrow",options:t,async fn(e){let{element:n,padding:r=0}=t??{},{x:i,y:l,placement:d,rects:f,platform:s}=e;if(n==null)return{};let y=de(r),w={x:i,y:l},g=J(d),u=Rt(g),p=await s.getDimensions(n),o=g==="y"?"top":"left",a=g==="y"?"bottom":"right",c=f.reference[u]+f.reference[g]-w[g]-f.floating[u],h=w[g]-f.reference[g],m=await(s.getOffsetParent==null?void 0:s.getOffsetParent(n)),v=m?g==="y"?m.clientHeight||0:m.clientWidth||0:0,b=c/2-h/2,x=y[o],A=v-p[u]-y[a],T=v/2-p[u]/2+b,O=At(x,T,A);return{data:{[g]:O,centerOffset:T-O}}}}),yn={left:"right",right:"left",bottom:"top",top:"bottom"};function dt(t){return t.replace(/left|right|bottom|top/g,e=>yn[e])}function wn(t,e,n){n===void 0&&(n=!1);let r=ht(t),i=J(t),l=Rt(i),d=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[l]>e.floating[l]&&(d=dt(d)),{main:d,cross:dt(d)}}var bn={start:"end",end:"start"};function ee(t){return t.replace(/start|end/g,e=>bn[e])}function En(t){let e=dt(t);return[ee(t),e,ee(e)]}var xn=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n;let{placement:r,middlewareData:i,rects:l,initialPlacement:d,platform:f,elements:s}=e,{mainAxis:y=!0,crossAxis:w=!0,fallbackPlacements:g,fallbackStrategy:u="bestFit",flipAlignment:p=!0,...o}=t,a=U(r),c=g||(a===d||!p?[dt(d)]:En(d)),h=[d,...c],m=await It(e,o),v=[],b=((n=i.flip)==null?void 0:n.overflows)||[];if(y&&v.push(m[a]),w){let{main:O,cross:ot}=wn(r,l,await(f.isRTL==null?void 0:f.isRTL(s.floating)));v.push(m[O],m[ot])}if(b=[...b,{placement:r,overflows:v}],!v.every(O=>O<=0)){var x,A;let O=((x=(A=i.flip)==null?void 0:A.index)!=null?x:0)+1,ot=h[O];if(ot)return{data:{index:O,overflows:b},reset:{placement:ot}};let lt="bottom";switch(u){case"bestFit":{var T;let Ft=(T=b.slice().sort((Be,Fe)=>Be.overflows.filter(H=>H>0).reduce((H,xt)=>H+xt,0)-Fe.overflows.filter(H=>H>0).reduce((H,xt)=>H+xt,0))[0])==null?void 0:T.placement;Ft&&(lt=Ft);break}case"initialPlacement":lt=d;break}if(r!==lt)return{reset:{placement:lt}}}return{}}}};function Sn(t,e,n,r){r===void 0&&(r=!1);let i=U(t),l=ht(t),d=J(t)==="x",f=["left","top"].includes(i)?-1:1,s=r&&d?-1:1,y=typeof n=="function"?n({...e,placement:t}):n,w=typeof y=="number",{mainAxis:g,crossAxis:u,alignmentAxis:p}=w?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return l&&typeof p=="number"&&(u=l==="end"?p*-1:p),d?{x:u*s,y:g*f}:{x:g*f,y:u*s}}var Pn=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){let{x:n,y:r,placement:i,rects:l,platform:d,elements:f}=e,s=Sn(i,l,t,await(d.isRTL==null?void 0:d.isRTL(f.floating)));return{x:n+s.x,y:r+s.y,data:s}}}};function Ln(t){return t==="x"?"y":"x"}var Tn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:r,placement:i}=e,{mainAxis:l=!0,crossAxis:d=!1,limiter:f={fn:c=>{let{x:h,y:m}=c;return{x:h,y:m}}},...s}=t,y={x:n,y:r},w=await It(e,s),g=J(U(i)),u=Ln(g),p=y[g],o=y[u];if(l){let c=g==="y"?"top":"left",h=g==="y"?"bottom":"right",m=p+w[c],v=p-w[h];p=At(m,p,v)}if(d){let c=u==="y"?"top":"left",h=u==="y"?"bottom":"right",m=o+w[c],v=o-w[h];o=At(m,o,v)}let a=f.fn({...e,[g]:p,[u]:o});return{...a,data:{x:a.x-n,y:a.y-r}}}}},On=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){let{placement:n,rects:r,platform:i,elements:l}=e,{apply:d,...f}=t,s=await It(e,f),y=U(n),w=ht(n),g,u;y==="top"||y==="bottom"?(g=y,u=w===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(u=y,g=w==="end"?"top":"bottom");let p=F(s.left,0),o=F(s.right,0),a=F(s.top,0),c=F(s.bottom,0),h={height:r.floating.height-(["left","right"].includes(n)?2*(a!==0||c!==0?a+c:F(s.top,s.bottom)):s[g]),width:r.floating.width-(["top","bottom"].includes(n)?2*(p!==0||o!==0?p+o:F(s.left,s.right)):s[u])},m=await i.getDimensions(l.floating);d?.({...h,...r});let v=await i.getDimensions(l.floating);return m.width!==v.width||m.height!==v.height?{reset:{rects:!0}}:{}}}};function fe(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function N(t){if(t==null)return window;if(!fe(t)){let e=t.ownerDocument;return e&&e.defaultView||window}return t}function Z(t){return N(t).getComputedStyle(t)}function D(t){return fe(t)?"":t?(t.nodeName||"").toLowerCase():""}function C(t){return t instanceof N(t).HTMLElement}function Y(t){return t instanceof N(t).Element}function An(t){return t instanceof N(t).Node}function Mt(t){let e=N(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function pt(t){let{overflow:e,overflowX:n,overflowY:r}=Z(t);return/auto|scroll|overlay|hidden/.test(e+r+n)}function Cn(t){return["table","td","th"].includes(D(t))}function he(t){let e=navigator.userAgent.toLowerCase().includes("firefox"),n=Z(t);return n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].includes(n.willChange)||e&&n.willChange==="filter"||e&&(n.filter?n.filter!=="none":!1)}function pe(){return!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}var ne=Math.min,G=Math.max,ft=Math.round;function $(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);let r=t.getBoundingClientRect(),i=1,l=1;e&&C(t)&&(i=t.offsetWidth>0&&ft(r.width)/t.offsetWidth||1,l=t.offsetHeight>0&&ft(r.height)/t.offsetHeight||1);let d=Y(t)?N(t):window,f=!pe()&&n,s=(r.left+(f?d.visualViewport.offsetLeft:0))/i,y=(r.top+(f?d.visualViewport.offsetTop:0))/l,w=r.width/i,g=r.height/l;return{width:w,height:g,top:y,right:s+w,bottom:y+g,left:s,x:s,y}}function j(t){return((An(t)?t.ownerDocument:t.document)||window.document).documentElement}function gt(t){return Y(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ge(t){return $(j(t)).left+gt(t).scrollLeft}function kn(t){let e=$(t);return ft(e.width)!==t.offsetWidth||ft(e.height)!==t.offsetHeight}function Rn(t,e,n){let r=C(e),i=j(e),l=$(t,r&&kn(e),n==="fixed"),d={scrollLeft:0,scrollTop:0},f={x:0,y:0};if(r||!r&&n!=="fixed")if((D(e)!=="body"||pt(i))&&(d=gt(e)),C(e)){let s=$(e,!0);f.x=s.x+e.clientLeft,f.y=s.y+e.clientTop}else i&&(f.x=ge(i));return{x:l.left+d.scrollLeft-f.x,y:l.top+d.scrollTop-f.y,width:l.width,height:l.height}}function Dt(t){return D(t)==="html"?t:t.assignedSlot||t.parentNode||(Mt(t)?t.host:null)||j(t)}function re(t){return!C(t)||getComputedStyle(t).position==="fixed"?null:t.offsetParent}function In(t){let e=Dt(t);for(Mt(e)&&(e=e.host);C(e)&&!["html","body"].includes(D(e));){if(he(e))return e;e=e.parentNode}return null}function Ct(t){let e=N(t),n=re(t);for(;n&&Cn(n)&&getComputedStyle(n).position==="static";)n=re(n);return n&&(D(n)==="html"||D(n)==="body"&&getComputedStyle(n).position==="static"&&!he(n))?e:n||In(t)||e}function ie(t){if(C(t))return{width:t.offsetWidth,height:t.offsetHeight};let e=$(t);return{width:e.width,height:e.height}}function Mn(t){let{rect:e,offsetParent:n,strategy:r}=t,i=C(n),l=j(n);if(n===l)return e;let d={scrollLeft:0,scrollTop:0},f={x:0,y:0};if((i||!i&&r!=="fixed")&&((D(n)!=="body"||pt(l))&&(d=gt(n)),C(n))){let s=$(n,!0);f.x=s.x+n.clientLeft,f.y=s.y+n.clientTop}return{...e,x:e.x-d.scrollLeft+f.x,y:e.y-d.scrollTop+f.y}}function Dn(t,e){let n=N(t),r=j(t),i=n.visualViewport,l=r.clientWidth,d=r.clientHeight,f=0,s=0;if(i){l=i.width,d=i.height;let y=pe();(y||!y&&e==="fixed")&&(f=i.offsetLeft,s=i.offsetTop)}return{width:l,height:d,x:f,y:s}}function Nn(t){var e;let n=j(t),r=gt(t),i=(e=t.ownerDocument)==null?void 0:e.body,l=G(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),d=G(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),f=-r.scrollLeft+ge(t),s=-r.scrollTop;return Z(i||n).direction==="rtl"&&(f+=G(n.clientWidth,i?i.clientWidth:0)-l),{width:l,height:d,x:f,y:s}}function me(t){let e=Dt(t);return["html","body","#document"].includes(D(e))?t.ownerDocument.body:C(e)&&pt(e)?e:me(e)}function Nt(t,e){var n;e===void 0&&(e=[]);let r=me(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),l=N(r),d=i?[l].concat(l.visualViewport||[],pt(r)?r:[]):r,f=e.concat(d);return i?f:f.concat(Nt(Dt(d)))}function Wn(t,e){let n=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&Mt(n)){let r=e;do{if(r&&t===r)return!0;r=r.parentNode||r.host}while(r)}return!1}function jn(t,e){let n=$(t,!1,e==="fixed"),r=n.top+t.clientTop,i=n.left+t.clientLeft;return{top:r,left:i,x:i,y:r,right:i+t.clientWidth,bottom:r+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}function oe(t,e,n){return e==="viewport"?ut(Dn(t,n)):Y(e)?jn(e,n):ut(Nn(j(t)))}function _n(t){let e=Nt(t),n=["absolute","fixed"].includes(Z(t).position)&&C(t)?Ct(t):t;return Y(n)?e.filter(r=>Y(r)&&Wn(r,n)&&D(r)!=="body"):[]}function Hn(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t,l=[...n==="clippingAncestors"?_n(e):[].concat(n),r],d=l[0],f=l.reduce((s,y)=>{let w=oe(e,y,i);return s.top=G(w.top,s.top),s.right=ne(w.right,s.right),s.bottom=ne(w.bottom,s.bottom),s.left=G(w.left,s.left),s},oe(e,d,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}var Vn={getClippingRect:Hn,convertOffsetParentRelativeRectToViewportRelativeRect:Mn,isElement:Y,getDimensions:ie,getOffsetParent:Ct,getDocumentElement:j,getElementRects:t=>{let{reference:e,floating:n,strategy:r}=t;return{reference:Rn(e,Ct(n),r),floating:{...ie(n),x:0,y:0}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>Z(t).direction==="rtl"},zn=(t,e,n)=>pn(t,e,{platform:Vn,...n}),Bn=()=>{},Rr=(()=>{let t=0;return()=>(t++,t.toString(36))})(),z=new Map,W=new Map;function Fn(t,e,n,r){var i;if(!t)return Bn;let l=JSON.stringify({type:e,options:r}),d=z.get(t);if(z.has(t))d!=null&&d.has(l)?(i=d?.get(l))==null||i.add(n):d?.set(l,new Set([n]));else{let s=new Map([[l,new Set([n])]]);z.set(t,s)}function f(s){var y,w;function g(u){var p;(p=z.get(s)?.get(l))==null||p.forEach(a=>a(u))}if(!(W!=null&&W.has(s))){W.set(s,new Map([[l,g]])),s.addEventListener(e,g,r);return}(y=W?.get(s))!=null&&y.has(l)||((w=W.get(s))==null||w.set(l,g),s.addEventListener(e,g,r))}return f(t),function(){var s,y,w,g;if(!z.has(t))return;let u=z.get(t);if((s=u?.get(l))==null||s.delete(n),((y=u?.get(l))==null?void 0:y.size)===0){let p=(w=W.get(t))==null?void 0:w.get(l);t.removeEventListener(e,p,r),u?.delete(l),(g=W.get(t))==null||g.delete(l),u?.size===0&&(z.delete(t),W.delete(t))}}}var ve=t=>Object.prototype.toString.call(t).slice(8,-1),Kn=t=>ve(t)==="Object"&&"current"in t,$n=t=>ve(t)==="Function"?t():t;function le(t,e,n,r){let i=Kn(t)?t.current:$n(t);return Fn(i,e,n,r)}function qn(t){var e;return Yn(t)?t.document:(e=t?.ownerDocument)!=null?e:document}function ae(t){return typeof t=="object"&&t?.nodeType===Node.ELEMENT_NODE&&typeof t?.nodeName=="string"}function Yn(t){return t?.toString()==="[object Window]"}var Ir=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","embed","iframe","object","a[href]","area[href]","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","[contenteditable]:not([contenteditable=false])","details > summary:first-of-type"].join(","),K=new Map;function se(t,e){let n=K.get(t);return n?(n.callbacks.push(e),e(t.getBoundingClientRect())):(K.set(t,{rect:{},callbacks:[e]}),K.size===1&&(kt=requestAnimationFrame(ye))),function(){let r=K.get(t);if(!r)return;let i=r.callbacks.indexOf(e);i>-1&&r.callbacks.splice(i,1),r.callbacks.length===0&&(K.delete(t),K.size===0&&cancelAnimationFrame(kt))}}var kt;function ye(){let t=[];K.forEach((e,n)=>{let r=n.getBoundingClientRect();Un(e.rect,r)||(e.rect=r,t.push(e))}),t.forEach(e=>{e.callbacks.forEach(n=>n(e.rect))}),kt=requestAnimationFrame(ye)}function Un(t,e){return t.width===e.width&&t.height===e.height&&t.top===e.top&&t.right===e.right&&t.bottom===e.bottom&&t.left===e.left}var ce=()=>{},ct=(...t)=>e=>t.reduce((n,r)=>r(n),e),Mr=(()=>{let t=0;return()=>(t++,t.toString(36))})(),Xn=t=>t===!0||t===!1;function Gn(t){return Xn(t)?{ancestorResize:t,ancestorScroll:t,referenceResize:t}:Object.assign({ancestorResize:!0,ancestorScroll:!0,referenceResize:!0},t)}function Jn(t,e,n,r=!1){let{ancestorScroll:i,ancestorResize:l,referenceResize:d}=Gn(r),f=i||l,s=[];f&&ae(t)&&s.push(...Nt(t));function y(){let g=[se(e,n)];return d&&ae(t)&&g.push(se(t,n)),g.push(ct(...s.map(u=>le(u,"resize",n)))),()=>g.forEach(u=>u())}function w(){return ct(...s.map(g=>le(g,"scroll",n,{passive:!0})))}return ct(y(),w())}var B=t=>({variable:t,reference:`var(${t})`}),S={arrowShadowColor:B("--arrow-shadow-color"),arrowSize:B("--arrow-size"),arrowSizeHalf:B("--arrow-size-half"),arrowBg:B("--arrow-background"),transformOrigin:B("--transform-origin"),arrowOffset:B("--arrow-offset"),boxShadow:B("--arrow-box-shadow")},ue={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},Zn={name:"transformOrigin",fn({placement:t,elements:e}){let{floating:n}=e;return n.style.setProperty(S.transformOrigin.variable,ue[t]),{data:{transformOrigin:ue[t]}}}},Qn=t=>({name:"shiftArrow",fn({placement:e,middlewareData:n}){var r;let{element:i}=t,{x:l,y:d}=(r=n.arrow)!=null?r:{x:0,y:0},f={top:"bottom",right:"left",bottom:"top",left:"right"}[e.split("-")[0]];return Object.assign(i.style,{top:`${d}px`,left:`${l}px`,[f]:S.arrowOffset.reference,[S.boxShadow.variable]:tr(e)}),{}}});function tr(t){if(t.includes("top"))return`1px 1px 1px 0 ${S.arrowShadowColor.reference}`;if(t.includes("bottom"))return`-1px -1px 1px 0 ${S.arrowShadowColor.reference}`;if(t.includes("right"))return`-1px 1px 1px 0 ${S.arrowShadowColor.reference}`;if(t.includes("left"))return`1px -1px 1px 0 ${S.arrowShadowColor.reference}`}var er={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,sameWidth:!1};function we(t,e,n={}){var r;if(t==null||e==null)return ce;n=Object.assign({},er,n);let i=[Zn];if(n.flip&&i.push(xn({boundary:n.boundary,padding:8})),n.gutter||n.offset){let f=n.gutter?{mainAxis:n.gutter}:n.offset;i.push(Pn(f))}i.push(Tn({boundary:n.boundary}));let l=qn(e).querySelector("[data-part=arrow]");l&&i.push(vn({element:l,padding:8}),Qn({element:l})),n.sameWidth&&i.push(On({apply(f){let{width:s}=f.reference;Object.assign(e.style,{width:`${s}px`,minWidth:"unset"})}}));function d(){if(t==null||e==null)return;let{placement:f,strategy:s}=n;zn(t,e,{placement:f,middleware:i,strategy:s}).then(y=>{let{x:w,y:g,strategy:u}=y;return Object.assign(e.style,{left:`${w}px`,top:`${g}px`,position:u}),y}).then(y=>{var w;(w=n.onComplete)==null||w.call(n,y)})}return d(),ct(Jn(t,e,d,n.listeners),(r=n.onCleanup)!=null?r:ce)}var nr={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)",pointerEvents:"none"};function be(t){let{measured:e,strategy:n="absolute"}=t;return{arrow:{position:"absolute",width:S.arrowSize.reference,height:S.arrowSize.reference,[S.arrowSizeHalf.variable]:`calc(${S.arrowSize.reference} / 2)`,[S.arrowOffset.variable]:`calc(${S.arrowSizeHalf.reference} * -1)`,opacity:e?void 0:0},innerArrow:{transform:"rotate(45deg)",background:S.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:n,minWidth:"max-content",...!e&&nr}}}function rr(t){return{button:t,label:t,input:t,output:t,element:t}}var Ee=rr(t=>t);var E={getDoc:t=>t.doc||document,getWin:t=>{var e;return((e=t.doc)==null?void 0:e.defaultView)||window},getTriggerId:t=>{var e,n;return(n=(e=t.ids)==null?void 0:e.trigger)!=null?n:`tooltip-${t.id}--trigger`},getContentId:t=>{var e,n;return(n=(e=t.ids)==null?void 0:e.content)!=null?n:`tooltip-${t.id}--content`},getArrowId:t=>`tooltip-${t.id}--arrow`,getPositionerId:t=>`tooltip-${t.id}--popper`,portalId:"tooltip-portal",getTriggerEl:t=>E.getDoc(t).getElementById(E.getTriggerId(t)),getContentEl:t=>E.getDoc(t).getElementById(E.getContentId(t)),getPositionerEl:t=>E.getDoc(t).getElementById(E.getPositionerId(t)),getArrowEl:t=>E.getDoc(t).getElementById(E.getArrowId(t)),getScrollParent:t=>st(E.getTriggerEl(t)),getPortalEl:t=>E.getDoc(t).getElementById(E.portalId),createPortalEl:t=>{let e=E.getDoc(t).createElement("tooltip-portal");return e.id=E.portalId,e}};var Et={},_r=Symbol(),Hr=Symbol(),ir=Symbol(),xe=Object.getPrototypeOf,Ht=new WeakMap,or=t=>t&&(Ht.has(t)?Ht.get(t):xe(t)===Object.prototype||xe(t)===Array.prototype),lr=t=>or(t)&&t[ir]||null,Se=(t,e=!0)=>{Ht.set(t,e)},Ie=Symbol(),k=Symbol(),yt=Symbol(),ar=Symbol(),Q=Symbol(),Pe=Symbol(),Bt=new WeakSet;function wt(t){return Bt.add(t),t}var bt=t=>typeof t=="object"&&t!==null,sr=t=>bt(t)&&!Bt.has(t)&&(Array.isArray(t)||!(Symbol.iterator in t))&&!(t instanceof WeakMap)&&!(t instanceof WeakSet)&&!(t instanceof Error)&&!(t instanceof Number)&&!(t instanceof Date)&&!(t instanceof String)&&!(t instanceof RegExp)&&!(t instanceof ArrayBuffer),Le=new WeakMap,Te=1,Oe=new WeakMap;function rt(t={}){if(!bt(t))throw new Error("object required");let e=Le.get(t);if(e)return e;let n=Te,r=new Set,i=(u,p=++Te)=>{n!==p&&(n=p,r.forEach(o=>o(u,p)))},l=new Map,d=u=>{let p=l.get(u);return p||(p=(o,a)=>{let c=[...o];c[1]=[u,...c[1]],i(c,a)},l.set(u,p)),p},f=u=>{let p=l.get(u);return l.delete(u),p},s=(u,p)=>{let o=Oe.get(p);if(o?.[0]===n)return o[1];let a=Array.isArray(u)?[]:Object.create(Object.getPrototypeOf(u));return Se(a,!0),Oe.set(p,[n,a]),Reflect.ownKeys(u).forEach(c=>{let h=Reflect.get(u,c,p);if(Bt.has(h))Se(h,!1),a[c]=h;else if(h instanceof Promise)if(Q in h)a[c]=h[Q];else{let m=h[Pe]||h;Object.defineProperty(a,c,{get(){if(Q in h)return h[Q];throw m}})}else h?.[k]?a[c]=h[yt]:a[c]=h}),Object.freeze(a),a},y=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t)),w={get(u,p,o){return p===Ie?n:p===k?r:p===yt?s(u,o):p===ar?w:Reflect.get(u,p,o)},deleteProperty(u,p){let o=Reflect.get(u,p),a=o?.[k];a&&a.delete(f(p));let c=Reflect.deleteProperty(u,p);return c&&i(["delete",[p],o]),c},is:Object.is,canProxy:sr,set(u,p,o,a){var c;let h=Reflect.get(u,p,a);if(this.is(h,o))return!0;let m=h?.[k];m&&m.delete(f(p)),bt(o)&&(o=lr(o)||o);let v;return(c=Object.getOwnPropertyDescriptor(u,p))!=null&&c.set?v=o:o instanceof Promise?v=o.then(b=>(v[Q]=b,i(["resolve",[p],b]),b)).catch(b=>{v[Pe]=b,i(["reject",[p],b])}):o?.[k]?(v=o,v[k].add(d(p))):this.canProxy(o)?(v=rt(o),v[k].add(d(p))):v=o,Reflect.set(u,p,v,a),i(["set",[p],o,h]),!0}},g=new Proxy(y,w);return Le.set(t,g),Reflect.ownKeys(t).forEach(u=>{let p=Object.getOwnPropertyDescriptor(t,u);p.get||p.set?Object.defineProperty(y,u,p):g[u]=t[u]}),g}function Ae(t){return bt(t)?t[Ie]:void 0}function it(t,e,n){(Et.env&&Et.env.MODE)!=="production"&&!t?.[k]&&console.warn("Please use proxy object");let r,i=[],l=d=>{if(i.push(d),n){e(i.splice(0));return}r||(r=Promise.resolve().then(()=>{r=void 0,e(i.splice(0))}))};return t[k].add(l),()=>{t[k].delete(l)}}function cr(t){return(Et.env&&Et.env.MODE)!=="production"&&!t?.[yt]&&console.warn("Please use proxy object"),t[yt]}function ur(t){for(;t.length>0;)t.pop();return t}var Ce=(t,...e)=>(typeof t=="function"?t(...e):t)??void 0,R=t=>t,ke=()=>{};var dr=(()=>{let t=0;return()=>(t++,t.toString(36))})(),X=t=>Array.isArray(t),et=t=>!(t==null||typeof t!="object"||X(t)),fr=t=>typeof t=="number"&&!Number.isNaN(t),I=t=>typeof t=="string",Vt=t=>typeof t=="function";function Wt(...t){let e=t.length===1?t[0]:t[1],n=t.length===2?t[0]:!0}function jt(...t){let e=t.length===1?t[0]:t[1],n=t.length===2?t[0]:!0}function hr(t){return et(t)&&t.predicate!=null}function _t(t,e){return(n,r)=>hr(t)?t.predicate(e??{})(n,r):t}function pr(t){return et(t)&&t.predicate!=null}var gr=()=>!0;function Me(t,e){return t=t??gr,(n,r)=>{if(I(t)){let i=e?.[t];return Vt(i)?i(n,r):i}return pr(t)?t.predicate(e??{})(n,r):t?.(n,r)}}function tt(t){var e,n,r;if(Array.isArray(t)){for(n=Array(e=t.length);e--;)n[e]=(r=t[e])&&typeof r=="object"?tt(r):r;return n}if(Object.prototype.toString.call(t)==="[object Object]"){n={};for(e in t)e==="__proto__"?Object.defineProperty(n,e,{value:tt(t[e]),configurable:!0,enumerable:!0,writable:!0}):n[e]=(r=t[e])&&typeof r=="object"?tt(r):r;return n}return t}function Re(t,e,n,r){return it(t,i=>{i.some(l=>l[1][0]===e)&&n(t[e])},r)}var Vr=Symbol(),q=new WeakMap,nt=new WeakMap,De=(t,e)=>{let n=q.get(t);n&&(n[0].forEach(r=>{let{d:i}=r;t!==i&&De(i)}),++n[2],e&&n[3].add(e))},mr=(t,e)=>{let n=q.get(t);return n?.[2]?(n[3].add(e),!0):!1},zt=t=>{let e=q.get(t);e&&(--e[2],e[2]||(e[3].forEach(n=>n()),e[3].clear()),e[0].forEach(n=>{let{d:r}=n;t!==r&&zt(r)}))},vr=t=>{let{s:e,d:n}=t,r=nt.get(n);r||(r=[new Set],nt.set(t.d,r)),r[0].add(t);let i=q.get(e);if(!i){let l=new Set,d=it(e,f=>{l.forEach(s=>{let{d:y,c:w,n:g,i:u}=s;e===y&&f.every(p=>p[1].length===1&&u.includes(p[1][0]))||s.p||(De(e,w),g?zt(e):s.p=Promise.resolve().then(()=>{delete s.p,zt(e)}))})},!0);i=[l,d,0,new Set],q.set(e,i)}i[0].add(t)},Ne=t=>{let{s:e,d:n}=t,r=nt.get(n);r?.[0].delete(t),r?.[0].size===0&&nt.delete(n);let i=q.get(e);if(i){let[l,d]=i;l.delete(t),l.size||(d(),q.delete(e))}},yr=t=>{let e=nt.get(t);return e?Array.from(e[0]):[]};function wr(t,e){let n=e?.proxy||rt({}),r=!!e?.sync,i=Object.keys(t);return i.forEach(l=>{if(Object.getOwnPropertyDescriptor(n,l))throw new Error("object property already defined");let d=t[l],f=null,s=()=>{if(f&&(Array.from(f).map(([u])=>mr(u,s)).some(u=>u)||Array.from(f).every(([u,p])=>Ae(u)===p.v)))return;let y=new Map,w=d(u=>(y.set(u,{v:Ae(u)}),u)),g=()=>{y.forEach((u,p)=>{var o;let a=(o=f?.get(p))==null?void 0:o.s;if(a)u.s=a;else{let c={s:p,d:n,k:l,c:s,n:r,i};vr(c),u.s=c}}),f?.forEach((u,p)=>{!y.has(p)&&u.s&&Ne(u.s)}),f=y};w instanceof Promise?w.finally(g):g(),n[l]=w};s()}),n}function br(t,e){let n=e?.delete?new Set:null;yr(t).forEach(r=>{let{k:i}=r;(!e?.keys||e.keys.includes(i))&&(Ne(r),n&&n.add(i))}),n&&n.forEach(r=>{delete t[r]})}function Er(t){var e;let n=rt({value:"",previousValue:"",event:R({}),context:(e=t.context)!=null?e:R({}),done:!1,tags:[],hasTag(r){return this.tags.includes(r)},matches(...r){return r.includes(this.value)},can(r){return R(this).nextEvents.includes(r)},get nextEvents(){var r,i,l,d;let f=(l=(i=(r=t.states)==null?void 0:r[this.value])==null?void 0:i.on)!=null?l:{},s=(d=t?.on)!=null?d:{};return Object.keys({...f,...s})},get changed(){return this.event.value==="machine.init"||!this.previousValue?!1:this.value!==this.previousValue}});return R(n)}function mt(t,e){return(n,r)=>{if(fr(t))return t;if(Vt(t))return t(n,r);if(I(t)){let i=Number.parseFloat(t);if(!Number.isNaN(i))return i;if(e){let l=e?.[t];if(l==null){let d=`[machine] Cannot determine delay for ${t}. It doesn't exist in options.delays`;throw new Error(d)}return Vt(l)?l(n,r):l}}}}function L(t){return I(t)?{type:t}:t}function _(t){return t?X(t)?t:[t]:[]}function We(t){return I(t)?{target:t}:t}function xr(t,e){return(n,r)=>_(t).map(We).find(i=>{var l;let d=Me(i.guard,e)(n,r);return(l=d??i.target)!=null?l:i.actions})}function Sr(t,e){let n=I(t)?We(t):t,r=i=>(i.actions&&!i.target&&e&&(i.target=e),i);if(X(n))return n.map(r);if(et(n))return r(R(n))}var vt=class{constructor(t,e){this.config=t,this.status="Not Started",this.type="machine",this.activityEvents=new Map,this.delayedEvents=new Map,this.stateListeners=new Set,this.eventListeners=new Set,this.doneListeners=new Set,this.contextWatchers=new Set,this.removeStateListener=ke,this.removeEventListener=ke,this.children=new Map,this.start=o=>{if(this.status==="Running")return this;this.status="Running";let a=L("machine.init");if(o){let m=et(o)?o:{context:this.config.context,value:o};this.setState(m.value),this.setContext(m.context)}let c={target:o?void 0:this.config.initial},h=this.getNextStateInfo(c,a);return h.target=R(h.target||c.target),this.initialState=h,this.performStateChangeEffects(h.target,h,a),this.removeStateListener=it(this.state,()=>{this.stateListeners.forEach(m=>{m(this.stateSnapshot)})},this.sync),this.removeEventListener=Re(this.state,"event",m=>{this.config.onEvent&&this.executeActions(this.config.onEvent,m);for(let v of this.eventListeners)v(m)}),this.setupContextWatchers(),this.executeActivities(L("machine.start"),_(this.config.activities),"machine.start"),this.executeActions(this.config.entry,L("machine.start")),this},this.setupContextWatchers=()=>{var o;for(let[a,c]of Object.entries((o=this.config.watch)!=null?o:{}))this.contextWatchers.add(Re(this.state.context,a,()=>{this.executeActions(c,this.state.event)}))},this.setupComputed=()=>{var o;let a=R((o=this.config.computed)!=null?o:{}),c=Object.fromEntries(Object.entries(a).map(([h,m])=>[h,v=>m(v(this.state.context))]));wr(c,{proxy:this.state.context})},this.detachComputed=()=>{br(this.state.context,{delete:!0})},this.stop=()=>{if(this.status!=="Stopped")return this.setState(null),this.setEvent("machine.stop"),this.config.context&&this.setContext(this.config.context),this.stopStateListeners(),this.stopChildren(),this.stopActivities(),this.stopDelayedEvents(),this.stopContextWatchers(),this.stopEventListeners(),this.detachComputed(),this.status="Stopped",this.executeActions(this.config.exit,L("machine.stop")),this},this.stopEventListeners=()=>{this.eventListeners.clear(),this.removeEventListener()},this.stopStateListeners=()=>{this.removeStateListener(),this.stateListeners.clear()},this.stopContextWatchers=()=>{this.contextWatchers.forEach(o=>o()),this.contextWatchers.clear()},this.stopDelayedEvents=()=>{this.delayedEvents.forEach(o=>{o.forEach(a=>a())}),this.delayedEvents.clear()},this.stopActivities=o=>{var a,c;o?((a=this.activityEvents.get(o))==null||a.forEach(h=>h()),(c=this.activityEvents.get(o))==null||c.clear(),this.activityEvents.delete(o)):(this.activityEvents.forEach(h=>{h.forEach(m=>m()),h.clear()}),this.activityEvents.clear())},this.sendChild=(o,a)=>{let c=L(o),h=Ce(a,this.contextSnapshot),m=this.children.get(h);m||jt(`[machine/send-child] Cannot send '${c.type}' event to unknown child`),m.send(c)},this.stopChild=o=>{this.children.has(o)||jt("[machine/stop-child] Cannot stop unknown child"),this.children.get(o).stop(),this.children.delete(o)},this.removeChild=o=>{this.children.delete(o)},this.stopChildren=()=>{this.children.forEach(o=>o.stop()),this.children.clear()},this.setParent=o=>{this.parent=o},this.spawn=(o,a)=>{let c=Ce(o);return a&&(c.id=a),c.type="machine.actor",c.setParent(this),this.children.set(c.id,R(c)),c.onDone(()=>{this.removeChild(c.id)}).start(),R(wt(c))},this.addActivityCleanup=(o,a)=>{var c;!o||(this.activityEvents.has(o)?(c=this.activityEvents.get(o))==null||c.add(a):this.activityEvents.set(o,new Set([a])))},this.setState=o=>{this.state.previousValue=this.state.value,this.state.value=o;let a=this.getStateNode(o);o==null?ur(this.state.tags):this.state.tags=_(a?.tags)},this.setContext=o=>{for(let a in o)this.state.context[a]=o[a]},this.withContext=o=>{this.detachComputed();let a={...this.config.context,...o};return new vt({...this.config,context:a},this.options)},this.withOptions=o=>(this.detachComputed(),new vt(this.config,{...this.options,...o})),this.setActions=o=>{this.actionMap={...this.actionMap,...o}},this.clone=()=>(this.detachComputed(),new vt(this.config,this.options)),this.getStateNode=o=>{var a;if(o)return(a=this.config.states)==null?void 0:a[o]},this.getNextStateInfo=(o,a)=>{var c;let h=this.determineTransition(o,a),m=(c=h?.target)!=null?c:this.state.value,v=this.getStateNode(m);return{transition:h,stateNode:v,target:m}},this.getActionFromDelayedTransition=o=>{let a=L("machine.after"),c=mt(o.delay,this.delayMap)(this.contextSnapshot,a),h;return{entry:()=>{h=globalThis.setTimeout(()=>{let m=this.state.value,v=this.getNextStateInfo(o,a);this.performStateChangeEffects(m,v,a)},c)},exit:()=>{globalThis.clearTimeout(h)}}},this.getDelayedEventActions=o=>{let a=this.getStateNode(o),c=L("machine.after");if(!a||!a.after)return;let h=[],m=[];if(X(a.after)){let v=this.determineTransition(a.after,c);if(!v)return;let b=this.getActionFromDelayedTransition(v);h.push(b.entry),m.push(b.exit)}else if(et(a.after))for(let v in a.after){let b=a.after[v],x={};if(X(b)){let T=this.determineTransition(b,c);T&&(x=T)}else I(b)?x={target:b,delay:v}:x={...b,delay:v};let A=this.getActionFromDelayedTransition(x);h.push(A.entry),m.push(A.exit)}return{entries:h,exits:m}},this.executeActions=(o,a)=>{var c;let h=_t(o,this.guardMap)(this.contextSnapshot,a);for(let m of _(h)){let v=I(m)?(c=this.actionMap)==null?void 0:c[m]:m;Wt(I(m)&&!v,`[machine/exec-action] No implementation found for action: \`${m}\``),v?.(this.state.context,a,this.meta)}},this.executeActivities=(o,a,c)=>{var h;for(let m of a){let v=I(m)?(h=this.activityMap)==null?void 0:h[m]:m;if(!v){Wt(`[machine/exec-activity] No implementation found for activity: \`${m}\``);continue}let b=v(this.state.context,o,this.meta);b&&this.addActivityCleanup(c??this.state.value,b)}},this.createEveryActivities=(o,a)=>{if(!o)return;let c=L("machine.every");if(X(o)){let h=_(o).find(v=>{let b=mt(v.delay,this.delayMap);v.delay=b(this.contextSnapshot,c);let x=Me(v.guard,this.guardMap)(this.contextSnapshot,c);return x??v.delay});if(!h)return;let m=mt(h.delay,this.delayMap)(this.contextSnapshot,c);a(()=>{let v=globalThis.setInterval(()=>{this.executeActions(h.actions,c)},m);return()=>{globalThis.clearInterval(v)}})}else for(let h in o){let m=o?.[h],v=mt(h,this.delayMap)(this.contextSnapshot,c);a(()=>{let b=globalThis.setInterval(()=>{this.executeActions(m,c)},v);return()=>{globalThis.clearInterval(b)}})}},this.setEvent=o=>{this.state.event=wt(L(o))},this.performExitEffects=(o,a)=>{let c=this.state.value,h=o?this.getStateNode(o):void 0;this.stopActivities(c);let m=_t(h?.exit,this.guardMap)(this.contextSnapshot,a),v=_(m),b=this.delayedEvents.get(c);b&&v.push(...b),this.executeActions(v,a),this.eventListeners.clear()},this.performEntryEffects=(o,a)=>{let c=this.getStateNode(o),h=_(c?.activities);this.createEveryActivities(c?.every,x=>{h.unshift(x)}),h.length>0&&this.executeActivities(a,h);let m=_t(c?.entry,this.guardMap)(this.contextSnapshot,a),v=_(m),b=this.getDelayedEventActions(o);c?.after&&b&&(this.delayedEvents.set(o,b?.exits),v.push(...b.entries)),this.executeActions(v,a),c?.type==="final"&&(this.state.done=!0,this.doneListeners.forEach(x=>{x(this.stateSnapshot)}),this.stop())},this.performTransitionEffects=(o,a)=>{let c=this.determineTransition(o,a);this.executeActions(c?.actions,a)},this.performStateChangeEffects=(o,a,c)=>{var h,m;this.setEvent(c),a.target=(m=(h=a.target)!=null?h:this.state.value)!=null?m:void 0;let v=a.target&&a.target!==this.state.value;v&&this.performExitEffects(o,c),this.performTransitionEffects(a?.transition,c),this.setState(a.target),v&&this.performEntryEffects(a.target,c)},this.determineTransition=(o,a)=>{let c=xr(o,this.guardMap);return c?.(this.contextSnapshot,a)},this.sendParent=o=>{var a;this.parent||jt("[machine/send-parent] Cannot send event to an unknown parent");let c=L(o);(a=this.parent)==null||a.send(c)},this.send=o=>{let a=L(o);this.transition(this.state.value,a)},this.transition=(o,a)=>{var c,h,m;let v=I(o)?this.getStateNode(o):o?.stateNode,b=L(a);if(!v&&!this.config.on){let O=this.status==="Stopped"?"[machine/transition] Cannot transition a stopped machine":"[machine/transition] State does not have a definition";Wt(O);return}let x=(m=(c=v?.on)==null?void 0:c[b.type])!=null?m:(h=this.config.on)==null?void 0:h[b.type],A=Sr(x,this.state.value);if(!A)return;let T=this.getNextStateInfo(A,b);return this.performStateChangeEffects(this.state.value,T,b),T.stateNode},this.subscribe=o=>(this.stateListeners.add(o),this.status==="Running"&&o(this.stateSnapshot),()=>{this.stateListeners.delete(o)}),this.onDone=o=>(this.doneListeners.add(o),this),this.onTransition=o=>(this.stateListeners.add(o),this.status==="Running"&&o(this.stateSnapshot),this),this.onEvent=o=>(o(this.state.event),this.eventListeners.add(o),this);var n,r,i,l,d,f,s,y,w,g,u;this.options=tt(e),this.id=(n=t.id)!=null?n:`machine-${dr()}`,this.guardMap=(i=(r=this.options)==null?void 0:r.guards)!=null?i:{},this.actionMap=(d=(l=this.options)==null?void 0:l.actions)!=null?d:{},this.delayMap=(s=(f=this.options)==null?void 0:f.delays)!=null?s:{},this.activityMap=(w=(y=this.options)==null?void 0:y.activities)!=null?w:{},this.sync=(u=(g=this.options)==null?void 0:g.sync)!=null?u:!1,this.state=Er(tt(t)),this.setupComputed();let p=L("machine.created");this.executeActions(t?.created,p)}get stateSnapshot(){return R(cr(this.state))}get contextSnapshot(){return this.stateSnapshot.context}get self(){let t=this;return{id:this.id,send:this.send.bind(this),sendParent:this.sendParent.bind(this),sendChild:this.sendChild.bind(this),stop:this.stop.bind(this),stopChild:this.stopChild.bind(this),spawn:this.spawn.bind(this),get state(){return t.stateSnapshot}}}get meta(){return{state:this.stateSnapshot,guards:this.guardMap,send:this.send.bind(this),listen:this.onEvent.bind(this),self:this.self,getState:()=>this.stateSnapshot}}},je=(t,e)=>new vt(t,e);var P=rt({id:null,prevId:null,setId(t){this.prevId=this.id,this.id=t}});function _e(t,e,n=Ee){let r=t.context.id,i=t.context.hasAriaLabel,l=t.hasTag("open"),d=E.getTriggerId(t.context),f=E.getContentId(t.context),s=be({measured:!!t.context.isPlacementComplete});return{isOpen:l,open(){e("OPEN")},close(){e("CLOSE")},getAnimationState(){return{enter:P.prevId===null&&r===P.id,exit:P.id===null}},triggerProps:n.button({"data-part":"trigger",id:d,"data-expanded":$t(l),"aria-describedby":l?f:void 0,onClick(){e("CLICK")},onFocus(){e("FOCUS")},onBlur(){r===P.id&&e("BLUR")},onPointerDown(){r===P.id&&e("POINTER_DOWN")},onPointerMove(){e("POINTER_ENTER")},onPointerLeave(){e("POINTER_LEAVE")},onPointerCancel(){e("POINTER_LEAVE")}}),arrowProps:n.element({id:E.getArrowId(t.context),"data-part":"arrow",style:s.arrow}),innerArrowProps:n.element({"data-part":"arrow-inner",style:s.innerArrow}),positionerProps:n.element({id:E.getPositionerId(t.context),"data-part":"positioner",style:s.floating}),contentProps:n.element({"data-part":"content",role:i?void 0:"tooltip",id:i?void 0:f,"data-placement":t.context.currentPlacement,onPointerEnter(){e("TOOLTIP_POINTER_ENTER")},onPointerLeave(){e("TOOLTIP_POINTER_LEAVE")},style:{pointerEvents:t.context.interactive?"auto":"none"}}),labelProps:n.element({"data-part":"label",id:f,role:"tooltip",style:Zt,children:t.context["aria-label"]}),createPortal(){let y=E.getDoc(t.context),w=E.getPortalEl(t.context);if(w)return w;let g=E.createPortalEl(t.context);return y.body.appendChild(g),g}}}var He=()=>{};var Qr=(()=>{let t=0;return()=>(t++,t.toString(36))})();var Pr=t=>Lr()&&t.test(navigator.userAgent);var Lr=()=>typeof window<"u";var Ve=()=>Pr(/^((?!chrome|android).)*safari/i);var ze=je({id:"tooltip",initial:"unknown",context:{id:"",openDelay:1e3,closeDelay:500,closeOnPointerDown:!0,closeOnEsc:!0,interactive:!0,positioning:{placement:"bottom"},currentPlacement:void 0},computed:{hasAriaLabel:t=>!!t["aria-label"]},on:{OPEN:"open",CLOSE:"closed"},states:{unknown:{on:{SETUP:{target:"closed",actions:"setupDocument"}}},closed:{tags:["closed"],entry:["clearGlobalId","invokeOnClose"],on:{FOCUS:"open",POINTER_ENTER:[{guard:"noVisibleTooltip",target:"opening"},{target:"open"}]}},opening:{tags:["closed"],activities:["trackScroll","trackPointerlockChange"],after:{OPEN_DELAY:"open"},on:{POINTER_LEAVE:"closed",BLUR:"closed",SCROLL:"closed",POINTER_LOCK_CHANGE:"closed",POINTER_DOWN:{guard:"closeOnPointerDown",target:"closed"}}},open:{tags:["open"],activities:["trackEscapeKey","trackDisabledTriggerOnSafari","trackScroll","trackPointerlockChange","computePlacement"],entry:["setGlobalId","invokeOnOpen"],on:{POINTER_LEAVE:[{guard:"isVisible",target:"closing"},{target:"closed"}],BLUR:"closed",ESCAPE:"closed",SCROLL:"closed",POINTER_LOCK_CHANGE:"closed",TOOLTIP_POINTER_LEAVE:{guard:"isInteractive",target:"closing"},POINTER_DOWN:{guard:"closeOnPointerDown",target:"closed"},CLICK:"closed"}},closing:{tags:["open"],activities:["trackStore","computePlacement"],after:{CLOSE_DELAY:"closed"},on:{FORCE_CLOSE:"closed",POINTER_ENTER:"open",TOOLTIP_POINTER_ENTER:{guard:"isInteractive",target:"open"}}}}},{activities:{computePlacement(t){t.currentPlacement=t.positioning.placement;let e;return qt(()=>{e=we(E.getTriggerEl(t),E.getPositionerEl(t),{...t.positioning,onComplete(n){t.currentPlacement=n.placement,t.isPlacementComplete=!0},onCleanup(){t.currentPlacement=void 0,t.isPlacementComplete=!1}})}),e},trackPointerlockChange(t,e,{send:n}){return Qt(E.getDoc(t),()=>{n("POINTER_LOCK_CHANGE")})},trackScroll(t,e,{send:n}){let r=E.getTriggerEl(t);if(!r)return;let i=Ot(r).map(l=>at(l,"scroll",()=>n("SCROLL"),{passive:!0,capture:!0}));return()=>{i.forEach(l=>l==null?void 0:l())}},trackStore(t,e,{send:n}){return it(P,()=>{P.id!==t.id&&n("FORCE_CLOSE")})},trackDisabledTriggerOnSafari(t,e,{send:n}){if(!Ve())return He;let r=E.getDoc(t);return Yt(r,"pointermove",i=>{let l="[data-part=trigger][data-expanded]";Tt(i.target)&&i.target.closest(l)||n("POINTER_LEAVE")})},trackEscapeKey(t,e,{send:n}){if(!t.closeOnEsc)return;let r=E.getDoc(t);return at(r,"keydown",i=>{i.key==="Escape"&&n("ESCAPE")})}},actions:{setupDocument(t,e){t.id=e.id,e.doc&&(t.doc=wt(e.doc))},setGlobalId(t){P.setId(t.id)},clearGlobalId(t){t.id===P.id&&P.setId(null)},invokeOnOpen(t,e){var r;["TOOLTIP_POINTER_ENTER","POINTER_ENTER"].includes(e.type)||(r=t.onOpen)==null||r.call(t)},invokeOnClose(t,e){var r;["SETUP"].includes(e.type)||(r=t.onClose)==null||r.call(t)}},guards:{closeOnPointerDown:t=>t.closeOnPointerDown,noVisibleTooltip:()=>P.id===null,isVisible:t=>t.id===P.id,isInteractive:t=>t.interactive},delays:{OPEN_DELAY:t=>t.openDelay,CLOSE_DELAY:t=>t.closeDelay}}); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@zag-js/tooltip", | ||
"version": "0.0.0-dev-20220412162814", | ||
"version": "0.0.0-dev-20220412212252", | ||
"description": "Core logic for the tooltip widget implemented as a state machine", | ||
@@ -15,3 +15,3 @@ "keywords": [ | ||
"author": "Segun Adebayo <sage@adebayosegun.com>", | ||
"homepage": "https://github.com/chakra-ui/ui-machines#readme", | ||
"homepage": "https://github.com/chakra-ui/zag#readme", | ||
"license": "MIT", | ||
@@ -21,3 +21,3 @@ "main": "dist/index.js", | ||
"module": "dist/index.mjs", | ||
"repository": "https://github.com/chakra-ui/ui-machines/tree/main/packages/tooltip", | ||
"repository": "https://github.com/chakra-ui/zag/tree/main/packages/tooltip", | ||
"sideEffects": false, | ||
@@ -31,10 +31,10 @@ "files": [ | ||
"bugs": { | ||
"url": "https://github.com/chakra-ui/ui-machines/issues" | ||
"url": "https://github.com/chakra-ui/zag/issues" | ||
}, | ||
"dependencies": { | ||
"@zag-js/core": "^0.0.0-dev-20220412162814", | ||
"@zag-js/popper": "^0.0.0-dev-20220412162814", | ||
"@zag-js/dom-utils": "^0.0.0-dev-20220412162814", | ||
"@zag-js/types": "^0.0.0-dev-20220412162814" | ||
"@zag-js/core": "^0.0.0-dev-20220412212252", | ||
"@zag-js/popper": "^0.0.0-dev-20220412212252", | ||
"@zag-js/dom-utils": "^0.0.0-dev-20220412212252", | ||
"@zag-js/types": "^0.0.0-dev-20220412212252" | ||
} | ||
} |
@@ -15,8 +15,6 @@ # @zag-js/tooltip | ||
Yes please! See the [contributing guidelines](https://github.com/chakra-ui/ui-machines/blob/main/CONTRIBUTING.md) for | ||
details. | ||
Yes please! See the [contributing guidelines](https://github.com/chakra-ui/zag/blob/main/CONTRIBUTING.md) for details. | ||
## Licence | ||
This project is licensed under the terms of the | ||
[MIT license](https://github.com/chakra-ui/ui-machines/blob/main/LICENSE). | ||
This project is licensed under the terms of the [MIT license](https://github.com/chakra-ui/zag/blob/main/LICENSE). |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
826123
465
1
20
1