PageSourceSearch

https://assets.recargajogo.com.br/gop/mshop/www/live/assets/floating-ui.react-d2d4f608.js

js recargajogo.com.br collected 2026-10-04 18:33:52 UTC 29,858 bytes, 1 lines download raw bytes

1import{r as m,a as Ue,b as qe}from"./react-0e2a0c96.js";import{o as at,j as ue}from"./index-878ce38c.js";function ye(){return typeof window<"u"}function oe(e){return Ze(e)?(e.nodeName||"").toLowerCase():"#document"}function B(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function X(e){var t;return(t=(Ze(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ze(e){return ye()?e instanceof Node||e instanceof B(e).Node:!1}function N(e){return ye()?e instanceof Element||e instanceof B(e).Element:!1}function z(e){return ye()?e instanceof HTMLElement||e instanceof B(e).HTMLElement:!1}function Se(e){return!ye()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof B(e).ShadowRoot}const dt=new Set(["inline","contents"]);function ce(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=j(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!dt.has(r)}const mt=new Set(["table","td","th"]);function gt(e){return mt.has(oe(e))}const ht=[":popover-open",":modal"];function ve(e){return ht.some(t=>{try{return e.matches(t)}catch(n){return!1}})}const pt=["transform","translate","scale","rotate","perspective"],yt=["transform","translate","scale","rotate","perspective","filter"],vt=["paint","layout","strict","content"];function Me(e){const t=Te(),n=N(e)?j(e):e;return pt.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||yt.some(o=>(n.willChange||"").includes(o))||vt.some(o=>(n.contain||"").includes(o))}function xt(e){let t=Z(e);for(;z(t)&&!ee(t);){if(Me(t))return t;if(ve(t))return null;t=Z(t)}return null}function Te(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const wt=new Set(["html","body","#document"]);function ee(e){return wt.has(oe(e))}function j(e){return B(e).getComputedStyle(e)}function xe(e){return N(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Z(e){if(oe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Se(e)&&e.host||X(e);return Se(t)?t.host:t}function Ke(e){const t=Z(e);return ee(t)?e.ownerDocument?e.ownerDocument.body:e.body:z(t)&&ce(t)?t:Ke(t)}function se(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Ke(e),c=r===((o=e.ownerDocument)==null?void 0:o.body),i=B(r);if(c){const s=Ae(i);return t.concat(i,i.visualViewport||[],ce(r)?r:[],s&&n?se(s):[])}return t.concat(r,se(r,[],n))}function Ae(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const te=Math.min,K=Math.max,ge=Math.round,ae=Math.floor,Y=e=>({x:e,y:e});function Oe(e,t,n){return K(e,te(t,n))}function ne(e,t){return typeof e=="function"?e(t):e}function le(e){return e.split("-")[0]}function De(e){return e.split("-")[1]}function Pe(e){return e==="x"?"y":"x"}function Ge(e){return e==="y"?"height":"width"}const Rt=new Set(["top","bottom"]);function fe(e){return Rt.has(le(e))?"y":"x"}function Qe(e){return Pe(fe(e))}function bt(e){return{top:0,right:0,bottom:0,left:0,...e}}function Je(e){return typeof e!="number"?bt(e):{top:e,right:e,bottom:e,left:e}}function he(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Et(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Se(n)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function de(e){return(e==null?void 0:e.ownerDocument)||document}function Le(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var Ct=typeof document<"u",St=function(){},U=Ct?m.useLayoutEffect:St;const At={...Ue};function q(e){const t=m.useRef(e);return U(()=>{t.current=e}),t}const Ot=At.useInsertionEffect,Lt=Ot||(e=>e());function ie(e){const t=m.useRef(()=>{});return Lt(()=>{t.current=e}),m.useCallback(function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return t.current==null?void 0:t.current(...o)},[])}function Ne(e,t,n){let{reference:o,floating:r}=e;const c=fe(t),i=Qe(t),s=Ge(i),u=le(t),f=c==="y",a=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,g=o[s]/2-r[s]/2;let l;switch(u){case"top":l={x:a,y:o.y-r.height};break;case"bottom":l={x:a,y:o.y+o.height};break;case"right":l={x:o.x+o.width,y:d};break;case"left":l={x:o.x-r.width,y:d};break;default:l={x:o.x,y:o.y}}switch(De(t)){case"start":l[i]-=g*(n&&f?-1:1);break;case"end":l[i]+=g*(n&&f?-1:1);break}return l}const Mt=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:c=[],platform:i}
vendor: 14,571 bytes, line 1
1=n,s=c.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(t));let f=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:a,y:d}=Ne(f,o,u),g=o,l={},h=0;for(let y=0;y<s.length;y++){const{name:v,fn:w}=s[y],{x:R,y:p,data:x,reset:b}=await w({x:a,y:d,initialPlacement:o,placement:g,strategy:r,middlewareData:l,rects:f,platform:i,elements:{reference:e,floating:t}});a=R!=null?R:a,d=p!=null?p:d,l={...l,[v]:{...l[v],...x}},b&&h<=50&&(h++,typeof b=="object"&&(b.placement&&(g=b.placement),b.rects&&(f=b.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):b.rects),{x:a,y:d}=Ne(f,g,u)),y=-1)}return{x:a,y:d,placement:g,strategy:r,middlewareData:l}};async function Tt(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:c,rects:i,elements:s,strategy:u}=e,{boundary:f="clippingAncestors",rootBoundary:a="viewport",elementContext:d="floating",altBoundary:g=!1,padding:l=0}=ne(t,e),h=Je(l),v=s[g?d==="floating"?"reference":"floating":d],w=he(await c.getClippingRect({element:(n=await(c.isElement==null?void 0:c.isElement(v)))==null||n?v:v.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(s.floating)),boundary:f,rootBoundary:a,strategy:u})),R=d==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,p=await(c.getOffsetParent==null?void 0:c.getOffsetParent(s.floating)),x=await(c.isElement==null?void 0:c.isElement(p))?await(c.getScale==null?void 0:c.getScale(p))||{x:1,y:1}:{x:1,y:1},b=he(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:R,offsetParent:p,strategy:u}):R);return{top:(w.top-b.top+h.top)/x.y,bottom:(b.bottom-w.bottom+h.bottom)/x.y,left:(w.left-b.left+h.left)/x.x,right:(b.right-w.right+h.right)/x.x}}const Dt=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:c,platform:i,elements:s,middlewareData:u}=t,{element:f,padding:a=0}=ne(e,t)||{};if(f==null)return{};const d=Je(a),g={x:n,y:o},l=Qe(r),h=Ge(l),y=await i.getDimensions(f),v=l==="y",w=v?"top":"left",R=v?"bottom":"right",p=v?"clientHeight":"clientWidth",x=c.reference[h]+c.reference[l]-g[l]-c.floating[h],b=g[l]-c.reference[l],A=await(i.getOffsetParent==null?void 0:i.getOffsetParent(f));let S=A?A[p]:0;(!S||!await(i.isElement==null?void 0:i.isElement(A)))&&(S=s.floating[p]||c.floating[h]);const T=x/2-b/2,P=S/2-y[h]/2-1,I=te(d[w],P),_=te(d[R],P),D=I,k=S-y[h]-_,M=S/2-y[h]/2+T,$=Oe(D,M,k),W=!u.arrow&&De(r)!=null&&M!==$&&c.reference[h]/2-(M<D?I:_)-y[h]/2<0,C=W?M<D?M-D:M-k:0;return{[l]:g[l]+C,data:{[l]:$,centerOffset:M-$-C,...W&&{alignmentOffset:C}},reset:W}}}),et=new Set(["left","top"]);async function Pt(e,t){const{placement:n,platform:o,elements:r}=e,c=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=le(n),s=De(n),u=fe(n)==="y",f=et.has(i)?-1:1,a=c&&u?-1:1,d=ne(t,e);let{mainAxis:g,crossAxis:l,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof h=="number"&&(l=s==="end"?h*-1:h),u?{x:l*a,y:g*f}:{x:g*f,y:l*a}}const Ft=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:c,placement:i,middlewareData:s}=t,u=await Pt(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:r+u.x,y:c+u.y,data:{...u,placement:i}}}}},kt=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:c=!0,crossAxis:i=!1,limiter:s={fn:v=>{let{x:w,y:R}=v;return{x:w,y:R}}},...u}=ne(e,t),f={x:n,y:o},a=await Tt(t,u),d=fe(le(r)),g=Pe(d);let l=f[g],h=f[d];if(c){const v=g==="y"?"top":"left",w=g==="y"?"bottom":"right",R=l+a[v],p=l-a[w];l=Oe(R,l,p)}if(i){const v=d==="y"?"top":"left",w=d==="y"?"bottom":"right",R=h+a[v],p=h-a[w];h=Oe(R,h,p)}const y=s.fn({...t,[g]:l,[d]:h});return{...y,data:{x:y.x-n,y:y.y-o,enabled:{[g]:c,[d]:i}}}}}},It=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:c,middlewareData:i}=t,{offset:s=0,mainAxis:u=!0,crossAxis:f=!0}=ne(e,t),a={x:n,y:o},d=fe(r),g=Pe(d);let l=a[g],h=a[d];const y=ne(s,t),v=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(u){const p=g==="y"?"height":"width",x=c.reference[g]-c.floating[p]+v.mainAxis,b=c.reference[g]+c.reference[p]-v.mainAxis;l<x?l=x:l>b&&(l=b)}if(f){var w,R;const p=g==="y"?"width":"height",x=et.has(le(r)),b=c.reference[d]-c.floating[p]+(x&&((w=i.offset)==null?void 0:w[d])||0)+(x?0:v.crossAxis),A=c.reference[d]+c.reference[p]+(x?0:((R=i.offset)==null?void 0:R[d])||0)-(x?v.crossAxis:0);h<b?h=b:h>A&&(h=A)}return{[g]:l,[d]:h}}}};function tt(e){const t=j(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=z(e),c=r?e.offsetWidth:n,i=r?e.offsetHeight:o,s=ge(n)!==c||ge(o)!==i;return s&&(n=c,o=i),{width:n,height:o,$:s}}function Fe(e){return N(e)?e:e.contextElement}function J(e){const t=Fe(e);if(!z(t))return Y(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:c}=tt(t);let i=(c?ge(n.width):n.width)/o,s=(c?ge(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Nt=Y(0);function nt(e){const t=B(e);return!Te()||!t.visualViewport?Nt:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Wt(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==B(e)?!1:t}function G(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),c=Fe(e);let i=Y(1);t&&(o?N(o)&&(i=J(o)):i=J(e));const s=Wt(c,n,o)?nt(c):Y(0);let u=(r.left+s.x)/i.x,f=(r.top+s.y)/i.y,a=r.width/i.x,d=r.height/i.y;if(c){const g=B(c),l=o&&N(o)?B(o):o;let h=g,y=Ae(h);for(;y&&o&&l!==h;){const v=J(y),w=y.getBoundingClientRect(),R=j(y),p=w.left+(y.clientLeft+parseFloat(R.paddingLeft))*v.x,x=w.top+(y.clientTop+parseFloat(R.paddingTop))*v.y;u*=v.x,f*=v.y,a*=v.x,d*=v.y,u+=p,f+=x,h=B(y),y=Ae(h)}}return he({width:a,height:d,x:u,y:f})}function ke(e,t){const n=xe(e).scrollLeft;return t?t.left+n:G(X(e)).left+n}function ot(e,t,n){n===void 0&&(n=!1);const o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-(n?0:ke(e,o)),c=o.top+t.scrollTop;return{x:r,y:c}}function Vt(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const c=r==="fixed",i=X(o),s=t?ve(t.floating):!1;if(o===i||s&&c)return n;let u={scrollLeft:0,scrollTop:0},f=Y(1);const a=Y(0),d=z(o);if((d||!d&&!c)&&((oe(o)!=="body"||ce(i))&&(u=xe(o)),z(o))){const l=G(o);f=J(o),a.x=l.x+o.clientLeft,a.y=l.y+o.clientTop}const g=i&&!d&&!c?ot(i,u,!0):Y(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-u.scrollLeft*f.x+a.x+g.x,y:n.y*f.y-u.scrollTop*f.y+a.y+g.y}}function $t(e){return Array.from(e.getClientRects())}function _t(e){const t=X(e),n=xe(e),o=e.ownerDocument.body,r=K(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),c=K(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+ke(e);const s=-n.scrollTop;return j(o).direction==="rtl"&&(i+=K(t.clientWidth,o.clientWidth)-r),{width:r,height:c,x:i,y:s}}function Bt(e,t){const n=B(e),o=X(e),r=n.visualViewport;let c=o.clientWidth,i=o.clientHeight,s=0,u=0;if(r){c=r.width,i=r.height;const f=Te();(!f||f&&t==="fixed")&&(s=r.offsetLeft,u=r.offsetTop)}return{width:c,height:i,x:s,y:u}}const jt=new Set(["absolute","fixed"]);function Ht(e,t){const n=G(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,c=z(e)?J(e):Y(1),i=e.clientWidth*c.x,s=e.clientHeight*c.y,u=r*c.x,f=o*c.y;return{width:i,height:s,x:u,y:f}}function We(e,t,n){let o;if(t==="viewport")o=Bt(e,n);else if(t==="document")o=_t(X(e));else if(N(t))o=Ht(t,n);else{const r=nt(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return he(o)}function rt(e,t){const n=Z(e);return n===t||!N(n)||ee(n)?!1:j(n).position==="fixed"||rt(n,t)}function Yt(e,t){const n=t.get(e);if(n)return n;let o=se(e,[],!1).filter(s=>N(s)&&oe(s)!=="body"),r=null;const c=j(e).position==="fixed";let i=c?Z(e):e;for(;N(i)&&!ee(i);){const s=j(i),u=Me(i);!u&&s.position==="fixed"&&(r=null),(c?!u&&!r:!u&&s.position==="static"&&!!r&&jt.has(r.position)||ce(i)&&!u&&rt(e,i))?o=o.filter(a=>a!==i):r=s,i=Z(i)}return t.set(e,o),o}function zt(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?ve(t)?[]:Yt(t,this._c):[].concat(n),o],s=i[0],u=i.reduce((f,a)=>{const d=We(t,a,r);return f.top=K(d.top,f.top),f.right=te(d.right,f.right),f.bottom=te(d.bottom,f.bottom),f.left=K(d.left,f.left),f},We(t,s,r));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Xt(e){const{width:t,height:n}=tt(e);return{width:t,height:n}}function Ut(e,t,n){const o=z(t),r=X(t),c=n==="fixed",i=G(e,!0,c,t);let s={scrollLeft:0,scrollTop:0};const u=Y(0);function f(){u.x=ke(r)}if(o||!o&&!c)if((oe(t)!=="body"||ce(r))&&(s=xe(t)),o){const l=G(t,!0,c,t);u.x=l.x+t.clientLeft,u.y=l.y+t.clientTop}else r&&f();c&&!o&&r&&f();const a=r&&!o&&!c?ot(r,s):Y(0),d=i.left+s.scrollLeft-u.x-a.x,g=i.top+s.scrollTop-u.y-a.y;return{x:d,y:g,width:i.width,height:i.height}}function we(e){return j(e).position==="static"}function Ve(e,t){if(!z(e)||j(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return X(e)===n&&(n=n.ownerDocument.body),n}function it(e,t){const n=B(e);if(ve(e))return n;if(!z(e)){let r=Z(e);for(;r&&!ee(r);){if(N(r)&&!we(r))return r;r=Z(r)}return n}let o=Ve(e,t);for(;o&&gt(o)&&we(o);)o=Ve(o,t);return o&&ee(o)&&we(o)&&!Me(o)?n:o||xt(e)||n}const qt=async function(e){const t=this.getOffsetParent||it,n=this.getDimensions,o=await n(e.floating);return{reference:Ut(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Zt(e){return j(e).direction==="rtl"}const Kt={convertOffsetParentRelativeRectToViewportRelativeRect:Vt,getDocumentElement:X,getClippingRect:zt,getOffsetParent:it,getElementRects:qt,getClientRects:$t,getDimensions:Xt,getScale:J,isElement:N,isRTL:Zt};function st(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Gt(e,t){let n=null,o;const r=X(e);function c(){var s;clearTimeout(o),(s=n)==null||s.disconnect(),n=null}function i(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),c();const f=e.getBoundingClientRect(),{left:a,top:d,width:g,height:l}=f;if(s||t(),!g||!l)return;const h=ae(d),y=ae(r.clientWidth-(a+g)),v=ae(r.clientHeight-(d+l)),w=ae(a),p={rootMargin:-h+"px "+-y+"px "+-v+"px "+-w+"px",threshold:K(0,te(1,u))||1};let x=!0;function b(A){const S=A[0].intersectionRatio;if(S!==u){if(!x)return i();S?i(!1,S):o=setTimeout(()=>{i(!1,1e-7)},1e3)}S===1&&!st(f,e.getBoundingClientRect())&&i(),x=!1}try{n=new IntersectionObserver(b,{...p,root:r.ownerDocument})}catch(A){n=new IntersectionObserver(b,p)}n.observe(e)}return i(!0),c}function bn(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:c=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=o,f=Fe(e),a=r||c?[...f?se(f):[],...se(t)]:[];a.forEach(w=>{r&&w.addEventListener("scroll",n,{passive:!0}),c&&w.addEventListener("resize",n)});const d=f&&s?Gt(f,n):null;let g=-1,l=null;i&&(l=new ResizeObserver(w=>{let[R]=w;R&&R.target===f&&l&&(l.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var p;(p=l)==null||p.observe(t)})),n()}),f&&!u&&l.observe(f),l.observe(t));let h,y=u?G(e):null;u&&v();function v(){const w=G(e);y&&!st(y,w)&&n(),y=w,h=requestAnimationFrame(v)}return n(),()=>{var w;a.forEach(R=>{r&&R.removeEventListener("scroll",n),c&&R.removeEventListener("resize",n)}),d==null||d(),(w=l)==null||w.disconnect(),l=null,u&&cancelAnimationFrame(h)}}const Qt=Ft,Jt=kt,$e=Dt,en=It,tn=(e,t,n)=>{const o=new Map,r={platform:Kt,...n},c={...r.platform,_c:o};return Mt(e,t,{...r,platform:c})};var nn=typeof document<"u",on=function(){},me=nn?m.useLayoutEffect:on;function pe(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!pe(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const c=r[o];if(!(c==="_owner"&&e.$$typeof)&&!pe(e[c],t[c]))return!1}return!0}return e!==e&&t!==t}function ct(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _e(e,t){const n=ct(e);return Math.round(t*n)/n}function Re(e){const t=m.useRef(e);return me(()=>{t.current=e}),t}function rn(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:c,floating:i}={},transform:s=!0,whileElementsMounted:u,open:f}=e,[a,d]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,l]=m.useState(o);pe(g,o)||l(o);const[h,y]=m.useState(null),[v,w]=m.useState(null),R=m.useCallback(E=>{E!==A.current&&(A.current=E,y(E))},[]),p=m.useCallback(E=>{E!==S.current&&(S.current=E,w(E))},[]),x=c||h,b=i||v,A=m.useRef(null),S=m.useRef(null),T=m.useRef(a),P=u!=null,I=Re(u),_=Re(r),D=Re(f),k=m.useCallback(()=>{if(!A.current||!S.current)return;const E={placement:t,strategy:n,middleware:g};_.current&&(E.platform=_.current),tn(A.current,S.current,E).then(O=>{const F={...O,isPositioned:D.current!==!1};M.current&&!pe(T.current,F)&&(T.current=F,qe.flushSync(()=>{d(F)}))})},[g,t,n,_,D]);me(()=>{f===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(E=>({...E,isPositioned:!1})))},[f]);const M=m.useRef(!1);me(()=>(M.current=!0,()=>{M.current=!1}),[]),me(()=>{if(x&&(A.current=x),b&&(S.current=b),x&&b){if(I.current)return I.current(x,b,k);k()}},[x,b,k,I,P]);const $=m.useMemo(()=>({reference:A,floating:S,setReference:R,setFloating:p}),[R,p]),W=m.useMemo(()=>({reference:x,floating:b}),[x,b]),C=m.useMemo(()=>{const E={position:n,left:0,top:0};if(!W.floating)return E;const O=_e(W.floating,a.x),F=_e(W.floating,a.y);return s?{...E,transform:"translate("+O+"px, "+F+"px)",...ct(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:F}},[n,s,W.floating,a.x,a.y]);return m.useMemo(()=>({...a,update:k,refs:$,elements:W,floatingStyles:C}),[a,k,$,W,C])}const sn=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?$e({element:o.current,padding:r}).fn(n):{}:o?$e({element:o,padding:r}).fn(n):{}}}},En=(e,t)=>({...Qt(e),options:[e,t]}),Cn=(e,t)=>({...Jt(e),options:[e,t]}),Sn=(e,t)=>({...en(e),options:[e,t]}),An=(e,t)=>({...sn(e),options:[e,t]}
1),cn="data-floating-ui-focusable",Be="active",je="selected",ln={...Ue};let He=!1,fn=0;const Ye=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+fn++;function un(){const[e,t]=m.useState(()=>He?Ye():void 0);return U(()=>{e==null&&t(Ye())},[]),m.useEffect(()=>{He=!0},[]),e}const an=ln.useId,lt=an||un,On=m.forwardRef(function(t,n){const{context:{placement:o,elements:{floating:r},middlewareData:{arrow:c,shift:i}},width:s=14,height:u=7,tipRadius:f=0,strokeWidth:a=0,staticOffset:d,stroke:g,d:l,style:{transform:h,...y}={},...v}=t,w=lt(),[R,p]=m.useState(!1);if(U(()=>{if(!r)return;j(r).direction==="rtl"&&p(!0)},[r]),!r)return null;const[x,b]=o.split("-"),A=x==="top"||x==="bottom";let S=d;(A&&i!=null&&i.x||!A&&i!=null&&i.y)&&(S=null);const T=a*2,P=T/2,I=s/2*(f/-8+1),_=u/2*f/4,D=!!l,k=S&&b==="end"?"bottom":"top";let M=S&&b==="end"?"right":"left";S&&R&&(M=b==="end"?"left":"right");const $=(c==null?void 0:c.x)!=null?S||c.x:"",W=(c==null?void 0:c.y)!=null?S||c.y:"",C=l||"M0,0"+(" H"+s)+(" L"+(s-I)+","+(u-_))+(" Q"+s/2+","+u+" "+I+","+(u-_))+" Z",E={top:D?"rotate(180deg)":"",left:D?"rotate(90deg)":"rotate(-90deg)",bottom:D?"":"rotate(180deg)",right:D?"rotate(-90deg)":"rotate(90deg)"}[x];return at("svg",{...v,"aria-hidden":!0,ref:n,width:D?s:s+T,height:s,viewBox:"0 0 "+s+" "+(u>s?u:s),style:{position:"absolute",pointerEvents:"none",[M]:$,[k]:W,[x]:A||D?"100%":"calc(100% - "+T/2+"px)",transform:[E,h].filter(O=>!!O).join(" "),...y},children:[T>0&&ue("path",{clipPath:"url(#"+w+")",fill:"none",stroke:g,strokeWidth:T+(l?0:1),d:C}),ue("path",{stroke:T&&!l?v.fill:"none",d:C}),ue("clipPath",{id:w,children:ue("rect",{x:-P,y:P*(D?-1:1),width:s+T,height:s})})]})});function dn(){const e=new Map;return{emit(t,n){var o;(o=e.get(t))==null||o.forEach(r=>r(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var o;(o=e.get(t))==null||o.delete(n)}}}const mn=m.createContext(null),gn=m.createContext(null),ft=()=>{var e;return((e=m.useContext(mn))==null?void 0:e.id)||null},ut=()=>m.useContext(gn);function hn(e){return"data-floating-ui-"+e}function H(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const ze=hn("safe-polygon");function be(e,t,n){if(n&&!Le(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const o=e();return typeof o=="number"?o:o==null?void 0:o[t]}return e==null?void 0:e[t]}function Ee(e){return typeof e=="function"?e():e}function Ln(e,t){t===void 0&&(t={});const{open:n,onOpenChange:o,dataRef:r,events:c,elements:i}=e,{enabled:s=!0,delay:u=0,handleClose:f=null,mouseOnly:a=!1,restMs:d=0,move:g=!0}=t,l=ut(),h=ft(),y=q(f),v=q(u),w=q(n),R=q(d),p=m.useRef(),x=m.useRef(-1),b=m.useRef(),A=m.useRef(-1),S=m.useRef(!0),T=m.useRef(!1),P=m.useRef(()=>{}),I=m.useRef(!1),_=ie(()=>{var C;const E=(C=r.current.openEvent)==null?void 0:C.type;return(E==null?void 0:E.includes("mouse"))&&E!=="mousedown"});m.useEffect(()=>{if(!s)return;function C(E){let{open:O}=E;O||(H(x),H(A),S.current=!0,I.current=!1)}return c.on("openchange",C),()=>{c.off("openchange",C)}},[s,c]),m.useEffect(()=>{if(!s||!y.current||!n)return;function C(O){_()&&o(!1,O,"hover")}const E=de(i.floating).documentElement;return E.addEventListener("mouseleave",C),()=>{E.removeEventListener("mouseleave",C)}},[i.floating,n,o,s,y,_]);const D=m.useCallback(function(C,E,O){E===void 0&&(E=!0),O===void 0&&(O="hover");const F=be(v.current,"close",p.current);F&&!b.current?(H(x),x.current=window.setTimeout(()=>o(!1,C,O),F)):E&&(H(x),o(!1,C,O))},[v,o]),k=ie(()=>{P.current(),b.current=void 0}),M=ie(()=>{if(T.current){const C=de(i.floating).body;C.style.pointerEvents="",C.removeAttribute(ze),T.current=!1}}),$=ie(()=>r.current.openEvent?["click","mousedown"].includes(r.current.openEvent.type):!1);m.useEffect(()=>{if(!s)return;function C(L){if(H(x),S.current=!1,a&&!Le(p.current)||Ee(R.current)>0&&!be(v.current,"open"))return;const V=be(v.current,"open",p.current);V?x.current=window.setTimeout(()=>{w.current||o(!0,L,"hover")},V):n||o(!0,L,"hover")}function E(L){if($()){M();return}P.current();const V=de(i.floating);if(H(A),I.current=!1,y.current&&r.current.floatingContext){n||H(x),b.current=y.current({...r.current.floatingContext,tree:l,x:L.clientX,y:L.clientY,onClose(){M(),k(),$()||D(L,!0,"safe-polygon")}});const Ie=b.current;V.addEventListener("mousemove",Ie),P.current=()=>{V.removeEventListener("mousemove",Ie)};return}(p.current==="touch"?!Et(i.floating,L.relatedTarget):!0)&&D(L)}function O(L){$()||r.current.floatingContext&&(y.current==null||y.current({...r.current.floatingContext,tree:l,x:L.clientX,y:L.clientY,onClose(){M(),k(),$()||D(L)}})(L))}function F(){H(x)}function re(L){$()||D(L,!1)}if(N(i.domReference)){const L=i.domReference,V=i.floating;return n&&L.addEventListener("mouseleave",O),g&&L.addEventListener("mousemove",C,{once:!0}),L.addEventListener("mouseenter",C),L.addEventListener("mouseleave",E),V&&(V.addEventListener("mouseleave",O),V.addEventListener("mouseenter",F),V.addEventListener("mouseleave",re)),()=>{n&&L.removeEventListener("mouseleave",O),g&&L.removeEventListener("mousemove",C),L.removeEventListener("mouseenter",C),L.removeEventListener("mouseleave",E),V&&(V.removeEventListener("mouseleave",O),V.removeEventListener("mouseenter",F),V.removeEventListener("mouseleave",re))}}},[i,s,e,a,g,D,k,M,o,n,w,l,v,y,r,$,R]),U(()=>{var C;if(s&&n&&(C=y.current)!=null&&(C=C.__options)!=null&&C.blockPointerEvents&&_()){T.current=!0;const O=i.floating;if(N(i.domReference)&&O){var E;const F=de(i.floating).body;F.setAttribute(ze,"");const re=i.domReference,L=l==null||(E=l.nodesRef.current.find(V=>V.id===h))==null||(E=E.context)==null?void 0:E.elements.floating;return L&&(L.style.pointerEvents=""),F.style.pointerEvents="none",re.style.pointerEvents="auto",O.style.pointerEvents="auto",()=>{F.style.pointerEvents="",re.style.pointerEvents="",O.style.pointerEvents=""}}}},[s,n,h,i,l,y,_]),U(()=>{n||(p.current=void 0,I.current=!1,k(),M())},[n,k,M]),m.useEffect(()=>()=>{k(),H(x),H(A),M()},[s,i.domReference,k,M]);const W=m.useMemo(()=>{function C(E){p.current=E.pointerType}return{onPointerDown:C,onPointerEnter:C,onMouseMove(E){const{nativeEvent:O}=E;function F(){!S.current&&!w.current&&o(!0,O,"hover")}a&&!Le(p.current)||n||Ee(R.current)===0||I.current&&E.movementX**2+E.movementY**2<2||(H(A),p.current==="touch"?F():(I.current=!0,A.current=window.setTimeout(F,Ee(R.current))))}}},[a,o,n,w,R]);return m.useMemo(()=>s?{reference:W}:{},[s,W])}function pn(e){const{open:t=!1,onOpenChange:n,elements:o}=e,r=lt(),c=m.useRef({}),[i]=m.useState(()=>dn()),s=ft()!=null,[u,f]=m.useState(o.reference),a=ie((l,h,y)=>{c.current.openEvent=l?h:void 0,i.emit("openchange",{open:l,event:h,reason:y,nested:s}),n==null||n(l,h,y)}),d=m.useMemo(()=>({setPositionReference:f}),[]),g=m.useMemo(()=>({reference:u||o.reference||null,floating:o.floating||null,domReference:o.reference}),[u,o.reference,o.floating]);return m.useMemo(()=>({dataRef:c,open:t,onOpenChange:a,elements:g,events:i,floatingId:r,refs:d}),[t,a,g,i,r,d])}function Mn(e){e===void 0&&(e={});const{nodeId:t}=e,n=pn({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||n,r=o.elements,[c,i]=m.useState(null),[s,u]=m.useState(null),a=(r==null?void 0:r.domReference)||c,d=m.useRef(null),g=ut();U(()=>{a&&(d.current=a)},[a]);const l=rn({...e,elements:{...r,...s&&{reference:s}}}),h=m.useCallback(p=>{const x=N(p)?{getBoundingClientRect:()=>p.getBoundingClientRect(),getClientRects:()=>p.getClientRects(),contextElement:p}:p;u(x),l.refs.setReference(x)},[l.refs]),y=m.useCallback(p=>{(N(p)||p===null)&&(d.current=p,i(p)),(N(l.refs.reference.current)||l.refs.reference.current===null||p!==null&&!N(p))&&l.refs.setReference(p)},[l.refs]),v=m.useMemo(()=>({...l.refs,setReference:y,setPositionReference:h,domReference:d}),[l.refs,y,h]),w=m.useMemo(()=>({...l.elements,domReference:a}
1),[l.elements,a]),R=m.useMemo(()=>({...l,...o,refs:v,elements:w,nodeId:t}),[l,v,w,t,o]);return U(()=>{o.dataRef.current.floatingContext=R;const p=g==null?void 0:g.nodesRef.current.find(x=>x.id===t);p&&(p.context=R)}),m.useMemo(()=>({...l,context:R,refs:v,elements:w}),[l,v,w,R])}function Ce(e,t,n){const o=new Map,r=n==="item";let c=e;if(r&&e){const{[Be]:i,[je]:s,...u}=e;c=u}return{...n==="floating"&&{tabIndex:-1,[cn]:""},...c,...t.map(i=>{const s=i?i[n]:null;return typeof s=="function"?e?s(e):null:s}).concat(e).reduce((i,s)=>(s&&Object.entries(s).forEach(u=>{let[f,a]=u;if(!(r&&[Be,je].includes(f)))if(f.indexOf("on")===0){if(o.has(f)||o.set(f,[]),typeof a=="function"){var d;(d=o.get(f))==null||d.push(a),i[f]=function(){for(var g,l=arguments.length,h=new Array(l),y=0;y<l;y++)h[y]=arguments[y];return(g=o.get(f))==null?void 0:g.map(v=>v(...h)).find(v=>v!==void 0)}}}else i[f]=a}),i),{})}}function Tn(e){e===void 0&&(e=[]);const t=e.map(s=>s==null?void 0:s.reference),n=e.map(s=>s==null?void 0:s.floating),o=e.map(s=>s==null?void 0:s.item),r=m.useCallback(s=>Ce(s,e,"reference"),t),c=m.useCallback(s=>Ce(s,e,"floating"),n),i=m.useCallback(s=>Ce(s,e,"item"),o);return m.useMemo(()=>({getReferenceProps:r,getFloatingProps:c,getItemProps:i}),[r,c,i])}const Xe=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function Q(e,t){return typeof e=="function"?e(t):e}function yn(e,t){const[n,o]=m.useState(e);return e&&!n&&o(!0),m.useEffect(()=>{if(!e&&n){const r=setTimeout(()=>o(!1),t);return()=>clearTimeout(r)}},[e,n,t]),n}function vn(e,t){t===void 0&&(t={});const{open:n,elements:{floating:o}}=e,{duration:r=250}=t,i=(typeof r=="number"?r:r.close)||0,[s,u]=m.useState("unmounted"),f=yn(n,i);return!f&&s==="close"&&u("unmounted"),U(()=>{if(o){if(n){u("initial");const a=requestAnimationFrame(()=>{qe.flushSync(()=>{u("open")})});return()=>{cancelAnimationFrame(a)}}u("close")}},[n,o]),{isMounted:f,status:s}}function Dn(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:o,close:r,common:c,duration:i=250}=t,s=e.placement,u=s.split("-")[0],f=m.useMemo(()=>({side:u,placement:s}),[u,s]),a=typeof i=="number",d=(a?i:i.open)||0,g=(a?i:i.close)||0,[l,h]=m.useState(()=>({...Q(c,f),...Q(n,f)})),{isMounted:y,status:v}=vn(e,{duration:i}),w=q(n),R=q(o),p=q(r),x=q(c);return U(()=>{const b=Q(w.current,f),A=Q(p.current,f),S=Q(x.current,f),T=Q(R.current,f)||Object.keys(b).reduce((P,I)=>(P[I]="",P),{});if(v==="initial"&&h(P=>({transitionProperty:P.transitionProperty,...S,...b})),v==="open"&&h({transitionProperty:Object.keys(T).map(Xe).join(","),transitionDuration:d+"ms",...S,...T}),v==="close"){const P=A||b;h({transitionProperty:Object.keys(P).map(Xe).join(","),transitionDuration:g+"ms",...S,...P})}},[g,p,w,R,x,d,v,f]),{isMounted:y,styles:l}}export{On as F,Ln as a,Tn as b,Dn as c,bn as d,An as e,Sn as l,En as o,Cn as s,Mn as u};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.