profinansy-ui-lib 4.1.46 → 4.1.47
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.
|
@@ -368,7 +368,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
368
368
|
`;function El(){return typeof window<"u"}function Li(e){return m9(e)?(e.nodeName||"").toLowerCase():"#document"}function In(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function jr(e){var t;return(t=(m9(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function m9(e){return El()?e instanceof Node||e instanceof In(e).Node:!1}function yt(e){return El()?e instanceof Element||e instanceof In(e).Element:!1}function rn(e){return El()?e instanceof HTMLElement||e instanceof In(e).HTMLElement:!1}function x2(e){return!El()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof In(e).ShadowRoot}function u1(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=On(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function qv(e){return["table","td","th"].includes(Li(e))}function Ml(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function wd(e){const t=Sl(),n=yt(e)?On(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Kv(e){let t=ei(e);for(;rn(t)&&!wi(t);){if(wd(t))return t;if(Ml(t))return null;t=ei(t)}return null}function Sl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function wi(e){return["html","body","#document"].includes(Li(e))}function On(e){return In(e).getComputedStyle(e)}function Il(e){return yt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ei(e){if(Li(e)==="html")return e;const t=e.assignedSlot||e.parentNode||x2(e)&&e.host||jr(e);return x2(t)?t.host:t}function g9(e){const t=ei(e);return wi(t)?e.ownerDocument?e.ownerDocument.body:e.body:rn(t)&&u1(t)?t:g9(t)}function vi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=g9(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=In(i);if(o){const l=v2(a);return t.concat(a,a.visualViewport||[],u1(i)?i:[],l&&n?vi(l):[])}return t.concat(i,vi(i,[],n))}function v2(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Nr(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function nn(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&x2(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function x9(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function v9(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function eC(e){return e.mozInputSource===0&&e.isTrusted?!0:C2()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function C9(e){return nC()?!1:!C2()&&e.width===0&&e.height===0||C2()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function b9(){return/apple/i.test(navigator.vendor)}function C2(){const e=/android/i;return e.test(x9())||e.test(v9())}function tC(){return x9().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function nC(){return v9().includes("jsdom/")}function Wa(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function rC(e){return"nativeEvent"in e}function iC(e){return e.matches("html,body")}function vn(e){return e?.ownerDocument||document}function gc(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function Zr(e){return"composedPath"in e?e.composedPath()[0]:e.target}const oC="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function kd(e){return rn(e)&&e.matches(oC)}function xc(e){e.preventDefault(),e.stopPropagation()}function aC(e){return e?e.getAttribute("role")==="combobox"&&kd(e):!1}const Xo=Math.min,Wi=Math.max,Ns=Math.round,V1=Math.floor,_r=e=>({x:e,y:e}),sC={left:"right",right:"left",bottom:"top",top:"bottom"},lC={start:"end",end:"start"};function b2(e,t,n){return Wi(e,Xo(t,n))}function p1(e,t){return typeof e=="function"?e(t):e}function Xi(e){return e.split("-")[0]}function f1(e){return e.split("-")[1]}function y9(e){return e==="x"?"y":"x"}function _d(e){return e==="y"?"height":"width"}function Qo(e){return["top","bottom"].includes(Xi(e))?"y":"x"}function $d(e){return y9(Qo(e))}function cC(e,t,n){n===void 0&&(n=!1);const r=f1(e),i=$d(e),o=_d(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Vs(a)),[a,Vs(a)]}function dC(e){const t=Vs(e);return[y2(e),t,y2(t)]}function y2(e){return e.replace(/start|end/g,t=>lC[t])}function uC(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function pC(e,t,n,r){const i=f1(e);let o=uC(Xi(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(y2)))),o}function Vs(e){return e.replace(/left|right|bottom|top/g,t=>sC[t])}function fC(e){return{top:0,right:0,bottom:0,left:0,...e}}function w9(e){return typeof e!="number"?fC(e):{top:e,right:e,bottom:e,left:e}}function Jo(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}/*!
|
|
369
369
|
* tabbable 6.2.0
|
|
370
370
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
371
|
-
*/var hC=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Ws=hC.join(","),k9=typeof Element>"u",qo=k9?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Zs=!k9&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},zs=function e(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),o=i===""||i==="true",a=o||n&&t&&e(t.parentNode);return a},mC=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},gC=function(t,n,r){if(zs(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(Ws));return n&&qo.call(t,Ws)&&i.unshift(t),i=i.filter(r),i},xC=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if(!zs(a,!1))if(a.tagName==="SLOT"){var l=a.assignedElements(),c=l.length?l:a.children,u=e(c,!0,r);r.flatten?i.push.apply(i,u):i.push({scopeParent:a,candidates:u})}else{var f=qo.call(a,Ws);f&&r.filter(a)&&(n||!t.includes(a))&&i.push(a);var h=a.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(a),g=!zs(h,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(h&&g){var x=e(h===!0?a.children:h.children,!0,r);r.flatten?i.push.apply(i,x):i.push({scopeParent:a,candidates:x})}else o.unshift.apply(o,a.children)}}return i},_9=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},$9=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||mC(t))&&!_9(t)?0:t.tabIndex},vC=function(t,n){var r=$9(t);return r<0&&n&&!_9(t)?0:r},CC=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},L9=function(t){return t.tagName==="INPUT"},bC=function(t){return L9(t)&&t.type==="hidden"},yC=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},wC=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},kC=function(t){if(!t.name)return!0;var n=t.form||Zs(t),r=function(l){return n.querySelectorAll('input[type="radio"][name="'+l+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var o=wC(i,t.form);return!o||o===t},_C=function(t){return L9(t)&&t.type==="radio"},$C=function(t){return _C(t)&&!kC(t)},LC=function(t){var n,r=t&&Zs(t),i=(n=r)===null||n===void 0?void 0:n.host,o=!1;if(r&&r!==t){var a,l,c;for(o=!!((a=i)!==null&&a!==void 0&&(l=a.ownerDocument)!==null&&l!==void 0&&l.contains(i)||t!=null&&(c=t.ownerDocument)!==null&&c!==void 0&&c.contains(t));!o&&i;){var u,f,h;r=Zs(i),i=(u=r)===null||u===void 0?void 0:u.host,o=!!((f=i)!==null&&f!==void 0&&(h=f.ownerDocument)!==null&&h!==void 0&&h.contains(i))}}return o},g0=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},EC=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=qo.call(t,"details>summary:first-of-type"),a=o?t.parentElement:t;if(qo.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof i=="function"){for(var l=t;t;){var c=t.parentElement,u=Zs(t);if(c&&!c.shadowRoot&&i(c)===!0)return g0(t);t.assignedSlot?t=t.assignedSlot:!c&&u!==t.ownerDocument?t=u.host:t=c}t=l}if(LC(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return g0(t);return!1},MC=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var i=n.children.item(r);if(i.tagName==="LEGEND")return qo.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},SC=function(t,n){return!(n.disabled||zs(n)||bC(n)||EC(n,t)||yC(n)||MC(n))},w2=function(t,n){return!($C(n)||$9(n)<0||!SC(t,n))},IC=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},DC=function e(t){var n=[],r=[];return t.forEach(function(i,o){var a=!!i.scopeParent,l=a?i.scopeParent:i,c=vC(l,a),u=a?e(i.candidates):l;c===0?a?n.push.apply(n,u):n.push(l):r.push({documentOrder:o,tabIndex:c,item:i,isScope:a,content:u})}),r.sort(CC).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(n)},Dl=function(t,n){n=n||{};var r;return n.getShadowRoot?r=xC([t],n.includeContainer,{filter:w2.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:IC}):r=gC(t,n.includeContainer,w2.bind(null,n)),DC(r)},jC=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return qo.call(t,Ws)===!1?!1:w2(n,t)};function x0(e,t,n){let{reference:r,floating:i}=e;const o=Qo(t),a=$d(t),l=_d(a),c=Xi(t),u=o==="y",f=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,g=r[l]/2-i[l]/2;let x;switch(c){case"top":x={x:f,y:r.y-i.height};break;case"bottom":x={x:f,y:r.y+r.height};break;case"right":x={x:r.x+r.width,y:h};break;case"left":x={x:r.x-i.width,y:h};break;default:x={x:r.x,y:r.y}}switch(f1(t)){case"start":x[a]-=g*(n&&u?-1:1);break;case"end":x[a]+=g*(n&&u?-1:1);break}return x}const E9=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,l=o.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:h}=x0(u,r,c),g=r,x={},v=0;for(let C=0;C<l.length;C++){const{name:b,fn:y}=l[C],{x:_,y:w,data:$,reset:k}=await y({x:f,y:h,initialPlacement:r,placement:g,strategy:i,middlewareData:x,rects:u,platform:a,elements:{reference:e,floating:t}});f=_??f,h=w??h,x={...x,[b]:{...x[b],...$}},k&&v<=50&&(v++,typeof k=="object"&&(k.placement&&(g=k.placement),k.rects&&(u=k.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):k.rects),{x:f,y:h}=x0(u,g,c)),C=-1)}return{x:f,y:h,placement:g,strategy:i,middlewareData:x}};async function M9(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:g=!1,padding:x=0}=p1(t,e),v=w9(x),b=l[g?h==="floating"?"reference":"floating":h],y=Jo(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(b)))==null||n?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:u,rootBoundary:f,strategy:c})),_=h==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),$=await(o.isElement==null?void 0:o.isElement(w))?await(o.getScale==null?void 0:o.getScale(w))||{x:1,y:1}:{x:1,y:1},k=Jo(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:_,offsetParent:w,strategy:c}):_);return{top:(y.top-k.top+v.top)/$.y,bottom:(k.bottom-y.bottom+v.bottom)/$.y,left:(y.left-k.left+v.left)/$.x,right:(k.right-y.right+v.right)/$.x}}const S9=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:l,middlewareData:c}=t,{element:u,padding:f=0}=p1(e,t)||{};if(u==null)return{};const h=w9(f),g={x:n,y:r},x=$d(i),v=_d(x),C=await a.getDimensions(u),b=x==="y",y=b?"top":"left",_=b?"bottom":"right",w=b?"clientHeight":"clientWidth",$=o.reference[v]+o.reference[x]-g[x]-o.floating[v],k=g[x]-o.reference[x],L=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let M=L?L[w]:0;(!M||!await(a.isElement==null?void 0:a.isElement(L)))&&(M=l.floating[w]||o.floating[v]);const I=$/2-k/2,T=M/2-C[v]/2-1,P=Xo(h[y],T),z=Xo(h[_],T),N=P,V=M-C[v]-z,j=M/2-C[v]/2+I,R=b2(N,j,V),A=!c.arrow&&f1(i)!=null&&j!==R&&o.reference[v]/2-(j<N?P:z)-C[v]/2<0,D=A?j<N?j-N:j-V:0;return{[x]:g[x]+D,data:{[x]:R,centerOffset:j-R-D,...A&&{alignmentOffset:D}},reset:A}}}),I9=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:g,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:C=!0,...b}=p1(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const y=Xi(i),_=Qo(l),w=Xi(l)===l,$=await(c.isRTL==null?void 0:c.isRTL(u.floating)),k=g||(w||!C?[Vs(l)]:dC(l)),L=v!=="none";!g&&L&&k.push(...pC(l,C,v,$));const M=[l,...k],I=await M9(t,b),T=[];let P=((r=o.flip)==null?void 0:r.overflows)||[];if(f&&T.push(I[y]),h){const j=cC(i,a,$);T.push(I[j[0]],I[j[1]])}if(P=[...P,{placement:i,overflows:T}],!T.every(j=>j<=0)){var z,N;const j=(((z=o.flip)==null?void 0:z.index)||0)+1,R=M[j];if(R)return{data:{index:j,overflows:P},reset:{placement:R}};let A=(N=P.filter(D=>D.overflows[0]<=0).sort((D,B)=>D.overflows[1]-B.overflows[1])[0])==null?void 0:N.placement;if(!A)switch(x){case"bestFit":{var V;const D=(V=P.filter(B=>{if(L){const H=Qo(B.placement);return H===_||H==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(H=>H>0).reduce((H,O)=>H+O,0)]).sort((B,H)=>B[1]-H[1])[0])==null?void 0:V[0];D&&(A=D);break}case"initialPlacement":A=l;break}if(i!==A)return{reset:{placement:A}}}return{}}}};async function TC(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Xi(n),l=f1(n),c=Qo(n)==="y",u=["left","top"].includes(a)?-1:1,f=o&&c?-1:1,h=p1(t,e);let{mainAxis:g,crossAxis:x,alignmentAxis:v}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof v=="number"&&(x=l==="end"?v*-1:v),c?{x:x*f,y:g*u}:{x:g*u,y:x*f}}const D9=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:l}=t,c=await TC(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:o+c.y,data:{...c,placement:a}}}}},AC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:b=>{let{x:y,y:_}=b;return{x:y,y:_}}},...c}=p1(e,t),u={x:n,y:r},f=await M9(t,c),h=Qo(Xi(i)),g=y9(h);let x=u[g],v=u[h];if(o){const b=g==="y"?"top":"left",y=g==="y"?"bottom":"right",_=x+f[b],w=x-f[y];x=b2(_,x,w)}if(a){const b=h==="y"?"top":"left",y=h==="y"?"bottom":"right",_=v+f[b],w=v-f[y];v=b2(_,v,w)}const C=l.fn({...t,[g]:x,[h]:v});return{...C,data:{x:C.x-n,y:C.y-r,enabled:{[g]:o,[h]:a}}}}}};function j9(e){const t=On(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=rn(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=Ns(n)!==o||Ns(r)!==a;return l&&(n=o,r=a),{width:n,height:r,$:l}}function Ld(e){return yt(e)?e:e.contextElement}function To(e){const t=Ld(e);if(!rn(t))return _r(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=j9(t);let a=(o?Ns(n.width):n.width)/r,l=(o?Ns(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const RC=_r(0);function T9(e){const t=In(e);return!Sl()||!t.visualViewport?RC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function FC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==In(e)?!1:t}function Qi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Ld(e);let a=_r(1);t&&(r?yt(r)&&(a=To(r)):a=To(e));const l=FC(o,n,r)?T9(o):_r(0);let c=(i.left+l.x)/a.x,u=(i.top+l.y)/a.y,f=i.width/a.x,h=i.height/a.y;if(o){const g=In(o),x=r&&yt(r)?In(r):r;let v=g,C=v2(v);for(;C&&r&&x!==v;){const b=To(C),y=C.getBoundingClientRect(),_=On(C),w=y.left+(C.clientLeft+parseFloat(_.paddingLeft))*b.x,$=y.top+(C.clientTop+parseFloat(_.paddingTop))*b.y;c*=b.x,u*=b.y,f*=b.x,h*=b.y,c+=w,u+=$,v=In(C),C=v2(v)}}return Jo({width:f,height:h,x:c,y:u})}function Ed(e,t){const n=Il(e).scrollLeft;return t?t.left+n:Qi(jr(e)).left+n}function A9(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Ed(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function PC(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=jr(r),l=t?Ml(t.floating):!1;if(r===a||l&&o)return n;let c={scrollLeft:0,scrollTop:0},u=_r(1);const f=_r(0),h=rn(r);if((h||!h&&!o)&&((Li(r)!=="body"||u1(a))&&(c=Il(r)),rn(r))){const x=Qi(r);u=To(r),f.x=x.x+r.clientLeft,f.y=x.y+r.clientTop}const g=a&&!h&&!o?A9(a,c,!0):_r(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+f.x+g.x,y:n.y*u.y-c.scrollTop*u.y+f.y+g.y}}function BC(e){return Array.from(e.getClientRects())}function HC(e){const t=jr(e),n=Il(e),r=e.ownerDocument.body,i=Wi(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Wi(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Ed(e);const l=-n.scrollTop;return On(r).direction==="rtl"&&(a+=Wi(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:l}}function OC(e,t){const n=In(e),r=jr(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){o=i.width,a=i.height;const u=Sl();(!u||u&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:l,y:c}}function NC(e,t){const n=Qi(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=rn(e)?To(e):_r(1),a=e.clientWidth*o.x,l=e.clientHeight*o.y,c=i*o.x,u=r*o.y;return{width:a,height:l,x:c,y:u}}function v0(e,t,n){let r;if(t==="viewport")r=OC(e,n);else if(t==="document")r=HC(jr(e));else if(yt(t))r=NC(t,n);else{const i=T9(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Jo(r)}function R9(e,t){const n=ei(e);return n===t||!yt(n)||wi(n)?!1:On(n).position==="fixed"||R9(n,t)}function VC(e,t){const n=t.get(e);if(n)return n;let r=vi(e,[],!1).filter(l=>yt(l)&&Li(l)!=="body"),i=null;const o=On(e).position==="fixed";let a=o?ei(e):e;for(;yt(a)&&!wi(a);){const l=On(a),c=wd(a);!c&&l.position==="fixed"&&(i=null),(o?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||u1(a)&&!c&&R9(e,a))?r=r.filter(f=>f!==a):i=l,a=ei(a)}return t.set(e,r),r}function WC(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?Ml(t)?[]:VC(t,this._c):[].concat(n),r],l=a[0],c=a.reduce((u,f)=>{const h=v0(t,f,i);return u.top=Wi(h.top,u.top),u.right=Xo(h.right,u.right),u.bottom=Xo(h.bottom,u.bottom),u.left=Wi(h.left,u.left),u},v0(t,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function ZC(e){const{width:t,height:n}=j9(e);return{width:t,height:n}}function zC(e,t,n){const r=rn(t),i=jr(t),o=n==="fixed",a=Qi(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const c=_r(0);if(r||!r&&!o)if((Li(t)!=="body"||u1(i))&&(l=Il(t)),r){const g=Qi(t,!0,o,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else i&&(c.x=Ed(i));const u=i&&!r&&!o?A9(i,l):_r(0),f=a.left+l.scrollLeft-c.x-u.x,h=a.top+l.scrollTop-c.y-u.y;return{x:f,y:h,width:a.width,height:a.height}}function vc(e){return On(e).position==="static"}function C0(e,t){if(!rn(e)||On(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return jr(e)===n&&(n=n.ownerDocument.body),n}function F9(e,t){const n=In(e);if(Ml(e))return n;if(!rn(e)){let i=ei(e);for(;i&&!wi(i);){if(yt(i)&&!vc(i))return i;i=ei(i)}return n}let r=C0(e,t);for(;r&&qv(r)&&vc(r);)r=C0(r,t);return r&&wi(r)&&vc(r)&&!wd(r)?n:r||Kv(e)||n}const YC=async function(e){const t=this.getOffsetParent||F9,n=this.getDimensions,r=await n(e.floating);return{reference:zC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function GC(e){return On(e).direction==="rtl"}const UC={convertOffsetParentRelativeRectToViewportRelativeRect:PC,getDocumentElement:jr,getClippingRect:WC,getOffsetParent:F9,getElementRects:YC,getClientRects:BC,getDimensions:ZC,getScale:To,isElement:yt,isRTL:GC};function P9(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function XC(e,t){let n=null,r;const i=jr(e);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),o();const u=e.getBoundingClientRect(),{left:f,top:h,width:g,height:x}=u;if(l||t(),!g||!x)return;const v=V1(h),C=V1(i.clientWidth-(f+g)),b=V1(i.clientHeight-(h+x)),y=V1(f),w={rootMargin:-v+"px "+-C+"px "+-b+"px "+-y+"px",threshold:Wi(0,Xo(1,c))||1};let $=!0;function k(L){const M=L[0].intersectionRatio;if(M!==c){if(!$)return a();M?a(!1,M):r=setTimeout(()=>{a(!1,1e-7)},1e3)}M===1&&!P9(u,e.getBoundingClientRect())&&a(),$=!1}try{n=new IntersectionObserver(k,{...w,root:i.ownerDocument})}catch{n=new IntersectionObserver(k,w)}n.observe(e)}return a(!0),o}function Ji(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Ld(e),f=i||o?[...u?vi(u):[],...vi(t)]:[];f.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),o&&y.addEventListener("resize",n)});const h=u&&l?XC(u,n):null;let g=-1,x=null;a&&(x=new ResizeObserver(y=>{let[_]=y;_&&_.target===u&&x&&(x.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var w;(w=x)==null||w.observe(t)})),n()}),u&&!c&&x.observe(u),x.observe(t));let v,C=c?Qi(e):null;c&&b();function b(){const y=Qi(e);C&&!P9(C,y)&&n(),C=y,v=requestAnimationFrame(b)}return n(),()=>{var y;f.forEach(_=>{i&&_.removeEventListener("scroll",n),o&&_.removeEventListener("resize",n)}),h?.(),(y=x)==null||y.disconnect(),x=null,c&&cancelAnimationFrame(v)}}const QC=D9,JC=AC,qC=I9,b0=S9,KC=(e,t,n)=>{const r=new Map,i={platform:UC,...n},o={...i.platform,_c:r};return E9(e,t,{...i,platform:o})};var ms=typeof document<"u"?m.useLayoutEffect:m.useEffect;function Ys(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,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ys(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Ys(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function B9(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function y0(e,t){const n=B9(e);return Math.round(t*n)/n}function Cc(e){const t=d.useRef(e);return ms(()=>{t.current=e}),t}function eb(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[f,h]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,x]=d.useState(r);Ys(g,r)||x(r);const[v,C]=d.useState(null),[b,y]=d.useState(null),_=d.useCallback(B=>{B!==L.current&&(L.current=B,C(B))},[]),w=d.useCallback(B=>{B!==M.current&&(M.current=B,y(B))},[]),$=o||v,k=a||b,L=d.useRef(null),M=d.useRef(null),I=d.useRef(f),T=c!=null,P=Cc(c),z=Cc(i),N=Cc(u),V=d.useCallback(()=>{if(!L.current||!M.current)return;const B={placement:t,strategy:n,middleware:g};z.current&&(B.platform=z.current),KC(L.current,M.current,B).then(H=>{const O={...H,isPositioned:N.current!==!1};j.current&&!Ys(I.current,O)&&(I.current=O,q2.flushSync(()=>{h(O)}))})},[g,t,n,z,N]);ms(()=>{u===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,h(B=>({...B,isPositioned:!1})))},[u]);const j=d.useRef(!1);ms(()=>(j.current=!0,()=>{j.current=!1}),[]),ms(()=>{if($&&(L.current=$),k&&(M.current=k),$&&k){if(P.current)return P.current($,k,V);V()}},[$,k,V,P,T]);const R=d.useMemo(()=>({reference:L,floating:M,setReference:_,setFloating:w}),[_,w]),A=d.useMemo(()=>({reference:$,floating:k}),[$,k]),D=d.useMemo(()=>{const B={position:n,left:0,top:0};if(!A.floating)return B;const H=y0(A.floating,f.x),O=y0(A.floating,f.y);return l?{...B,transform:"translate("+H+"px, "+O+"px)",...B9(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:H,top:O}},[n,l,A.floating,f.x,f.y]);return d.useMemo(()=>({...f,update:V,refs:R,elements:A,floatingStyles:D}),[f,V,R,A,D])}const tb=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?b0({element:r.current,padding:i}).fn(n):{}:r?b0({element:r,padding:i}).fn(n):{}}}},h1=(e,t)=>({...QC(e),options:[e,t]}),m1=(e,t)=>({...JC(e),options:[e,t]}),g1=(e,t)=>({...qC(e),options:[e,t]}),Md=(e,t)=>({...tb(e),options:[e,t]});function Tr(e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})},e)}const H9={...d},nb=H9.useInsertionEffect,rb=nb||(e=>e());function nr(e){const t=d.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return rb(()=>{t.current=e}),d.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var pn=typeof document<"u"?m.useLayoutEffect:m.useEffect;function Za(){return Za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Za.apply(this,arguments)}let w0=!1,ib=0;const k0=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+ib++;function ob(){const[e,t]=d.useState(()=>w0?k0():void 0);return pn(()=>{e==null&&t(k0())},[]),d.useEffect(()=>{w0=!0},[]),e}const ab=H9.useId,qi=ab||ob;let za;process.env.NODE_ENV!=="production"&&(za=new Set);function sb(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=za)!=null&&e.has(i))){var o;(o=za)==null||o.add(i),console.warn(i)}}function lb(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=za)!=null&&e.has(i))){var o;(o=za)==null||o.add(i),console.error(i)}}const Sd=d.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:i},middlewareData:{arrow:o,shift:a}},width:l=14,height:c=7,tipRadius:u=0,strokeWidth:f=0,staticOffset:h,stroke:g,d:x,style:{transform:v,...C}={},...b}=t;process.env.NODE_ENV!=="production"&&(n||sb("The `ref` prop is required for `FloatingArrow`."));const y=qi(),[_,w]=d.useState(!1);if(pn(()=>{if(!i)return;On(i).direction==="rtl"&&w(!0)},[i]),!i)return null;const[$,k]=r.split("-"),L=$==="top"||$==="bottom";let M=h;(L&&a!=null&&a.x||!L&&a!=null&&a.y)&&(M=null);const I=f*2,T=I/2,P=l/2*(u/-8+1),z=c/2*u/4,N=!!x,V=M&&k==="end"?"bottom":"top";let j=M&&k==="end"?"right":"left";M&&_&&(j=k==="end"?"left":"right");const R=o?.x!=null?M||o.x:"",A=o?.y!=null?M||o.y:"",D=x||"M0,0"+(" H"+l)+(" L"+(l-P)+","+(c-z))+(" Q"+l/2+","+c+" "+P+","+(c-z))+" Z",B={top:N?"rotate(180deg)":"",left:N?"rotate(90deg)":"rotate(-90deg)",bottom:N?"":"rotate(180deg)",right:N?"rotate(-90deg)":"rotate(90deg)"}[$];return d.createElement("svg",Za({},b,{"aria-hidden":!0,ref:n,width:N?l:l+I,height:l,viewBox:"0 0 "+l+" "+(c>l?c:l),style:{position:"absolute",pointerEvents:"none",[j]:R,[V]:A,[$]:L||N?"100%":"calc(100% - "+I/2+"px)",transform:[B,v].filter(H=>!!H).join(" "),...C}}),I>0&&d.createElement("path",{clipPath:"url(#"+y+")",fill:"none",stroke:g,strokeWidth:I+(x?0:1),d:D}),d.createElement("path",{stroke:I&&!x?b.fill:"none",d:D}),d.createElement("clipPath",{id:y},d.createElement("rect",{x:-T,y:T*(N?-1:1),width:l+I,height:l})))});function cb(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const db=d.createContext(null),ub=d.createContext(null),Id=()=>{var e;return((e=d.useContext(db))==null?void 0:e.id)||null},jl=()=>d.useContext(ub);function Ki(e){return"data-floating-ui-"+e}function wr(e){const t=m.useRef(e);return pn(()=>{t.current=e}),t}const _0=Ki("safe-polygon");function bc(e,t,n){return n&&!Wa(n)?0:typeof e=="number"?e:e?.[t]}function Dd(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:o,elements:a}=e,{enabled:l=!0,delay:c=0,handleClose:u=null,mouseOnly:f=!1,restMs:h=0,move:g=!0}=t,x=jl(),v=Id(),C=wr(u),b=wr(c),y=wr(n),_=d.useRef(),w=d.useRef(-1),$=d.useRef(),k=d.useRef(-1),L=d.useRef(!0),M=d.useRef(!1),I=d.useRef(()=>{}),T=d.useRef(!1),P=d.useCallback(()=>{var D;const B=(D=i.current.openEvent)==null?void 0:D.type;return B?.includes("mouse")&&B!=="mousedown"},[i]);d.useEffect(()=>{if(!l)return;function D(B){let{open:H}=B;H||(clearTimeout(w.current),clearTimeout(k.current),L.current=!0,T.current=!1)}return o.on("openchange",D),()=>{o.off("openchange",D)}},[l,o]),d.useEffect(()=>{if(!l||!C.current||!n)return;function D(H){P()&&r(!1,H,"hover")}const B=vn(a.floating).documentElement;return B.addEventListener("mouseleave",D),()=>{B.removeEventListener("mouseleave",D)}},[a.floating,n,r,l,C,P]);const z=d.useCallback(function(D,B,H){B===void 0&&(B=!0),H===void 0&&(H="hover");const O=bc(b.current,"close",_.current);O&&!$.current?(clearTimeout(w.current),w.current=window.setTimeout(()=>r(!1,D,H),O)):B&&(clearTimeout(w.current),r(!1,D,H))},[b,r]),N=nr(()=>{I.current(),$.current=void 0}),V=nr(()=>{if(M.current){const D=vn(a.floating).body;D.style.pointerEvents="",D.removeAttribute(_0),M.current=!1}}),j=nr(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);d.useEffect(()=>{if(!l)return;function D(W){if(clearTimeout(w.current),L.current=!1,f&&!Wa(_.current)||h>0&&!bc(b.current,"open"))return;const Q=bc(b.current,"open",_.current);Q?w.current=window.setTimeout(()=>{y.current||r(!0,W,"hover")},Q):n||r(!0,W,"hover")}function B(W){if(j())return;I.current();const Q=vn(a.floating);if(clearTimeout(k.current),T.current=!1,C.current&&i.current.floatingContext){n||clearTimeout(w.current),$.current=C.current({...i.current.floatingContext,tree:x,x:W.clientX,y:W.clientY,onClose(){V(),N(),j()||z(W,!0,"safe-polygon")}});const G=$.current;Q.addEventListener("mousemove",G),I.current=()=>{Q.removeEventListener("mousemove",G)};return}(_.current==="touch"?!nn(a.floating,W.relatedTarget):!0)&&z(W)}function H(W){j()||i.current.floatingContext&&(C.current==null||C.current({...i.current.floatingContext,tree:x,x:W.clientX,y:W.clientY,onClose(){V(),N(),j()||z(W)}})(W))}if(yt(a.domReference)){var O;const W=a.domReference;return n&&W.addEventListener("mouseleave",H),(O=a.floating)==null||O.addEventListener("mouseleave",H),g&&W.addEventListener("mousemove",D,{once:!0}),W.addEventListener("mouseenter",D),W.addEventListener("mouseleave",B),()=>{var Q;n&&W.removeEventListener("mouseleave",H),(Q=a.floating)==null||Q.removeEventListener("mouseleave",H),g&&W.removeEventListener("mousemove",D),W.removeEventListener("mouseenter",D),W.removeEventListener("mouseleave",B)}}},[a,l,e,f,h,g,z,N,V,r,n,y,x,b,C,i,j]),pn(()=>{var D;if(l&&n&&(D=C.current)!=null&&D.__options.blockPointerEvents&&P()){M.current=!0;const H=a.floating;if(yt(a.domReference)&&H){var B;const O=vn(a.floating).body;O.setAttribute(_0,"");const W=a.domReference,Q=x==null||(B=x.nodesRef.current.find(pe=>pe.id===v))==null||(B=B.context)==null?void 0:B.elements.floating;return Q&&(Q.style.pointerEvents=""),O.style.pointerEvents="none",W.style.pointerEvents="auto",H.style.pointerEvents="auto",()=>{O.style.pointerEvents="",W.style.pointerEvents="",H.style.pointerEvents=""}}}},[l,n,v,a,x,C,P]),pn(()=>{n||(_.current=void 0,T.current=!1,N(),V())},[n,N,V]),d.useEffect(()=>()=>{N(),clearTimeout(w.current),clearTimeout(k.current),V()},[l,a.domReference,N,V]);const R=d.useMemo(()=>{function D(B){_.current=B.pointerType}return{onPointerDown:D,onPointerEnter:D,onMouseMove(B){const{nativeEvent:H}=B;function O(){!L.current&&!y.current&&r(!0,H,"hover")}f&&!Wa(_.current)||n||h===0||T.current&&B.movementX**2+B.movementY**2<2||(clearTimeout(k.current),_.current==="touch"?O():(T.current=!0,k.current=window.setTimeout(O,h)))}}},[f,r,n,y,h]),A=d.useMemo(()=>({onMouseEnter(){clearTimeout(w.current)},onMouseLeave(D){j()||z(D.nativeEvent,!1)}}),[z,j]);return d.useMemo(()=>l?{reference:R,floating:A}:{},[l,R,A])}let $0=0;function vo(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame($0);const o=()=>e?.focus({preventScroll:n});i?o():$0=requestAnimationFrame(o)}function pb(e,t){var n;let r=[],i=(n=e.find(o=>o.id===t))==null?void 0:n.parentId;for(;i;){const o=e.find(a=>a.id===i);i=o?.parentId,o&&(r=r.concat(o))}return r}function Ao(e,t){let n=e.filter(i=>{var o;return i.parentId===t&&((o=i.context)==null?void 0:o.open)}),r=n;for(;r.length;)r=e.filter(i=>{var o;return(o=r)==null?void 0:o.some(a=>{var l;return i.parentId===a.id&&((l=i.context)==null?void 0:l.open)})}),n=n.concat(r);return n}let Co=new WeakMap,W1=new WeakSet,Z1={},yc=0;const fb=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,O9=e=>e&&(e.host||O9(e.parentNode)),hb=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=O9(n);return e.contains(r)?r:null}).filter(n=>n!=null);function mb(e,t,n,r){const i="data-floating-ui-inert",o=r?"inert":n?"aria-hidden":null,a=hb(t,e),l=new Set,c=new Set(a),u=[];Z1[i]||(Z1[i]=new WeakMap);const f=Z1[i];a.forEach(h),g(t),l.clear();function h(x){!x||l.has(x)||(l.add(x),x.parentNode&&h(x.parentNode))}function g(x){!x||c.has(x)||[].forEach.call(x.children,v=>{if(Li(v)!=="script")if(l.has(v))g(v);else{const C=o?v.getAttribute(o):null,b=C!==null&&C!=="false",y=(Co.get(v)||0)+1,_=(f.get(v)||0)+1;Co.set(v,y),f.set(v,_),u.push(v),y===1&&b&&W1.add(v),_===1&&v.setAttribute(i,""),!b&&o&&v.setAttribute(o,"true")}})}return yc++,()=>{u.forEach(x=>{const v=(Co.get(x)||0)-1,C=(f.get(x)||0)-1;Co.set(x,v),f.set(x,C),v||(!W1.has(x)&&o&&x.removeAttribute(o),W1.delete(x)),C||x.removeAttribute(i)}),yc--,yc||(Co=new WeakMap,Co=new WeakMap,W1=new WeakSet,Z1={})}}function L0(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=vn(e[0]).body;return mb(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const Ya=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function N9(e,t){const n=Dl(e,Ya());t==="prev"&&n.reverse();const r=n.indexOf(Nr(vn(e)));return n.slice(r+1)[0]}function V9(){return N9(document.body,"next")}function W9(){return N9(document.body,"prev")}function Ta(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!nn(n,r)}function gb(e){Dl(e,Ya()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function E0(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const Tl={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let xb;function M0(e){e.key==="Tab"&&(e.target,clearTimeout(xb))}const Gs=d.forwardRef(function(t,n){const[r,i]=d.useState();pn(()=>(b9()&&i("button"),document.addEventListener("keydown",M0),()=>{document.removeEventListener("keydown",M0)}),[]);const o={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[Ki("focus-guard")]:"",style:Tl};return d.createElement("span",Za({},t,o))}),Z9=d.createContext(null),S0=Ki("portal");function vb(e){e===void 0&&(e={});const{id:t,root:n}=e,r=qi(),i=z9(),[o,a]=d.useState(null),l=d.useRef(null);return pn(()=>()=>{o?.remove(),queueMicrotask(()=>{l.current=null})},[o]),pn(()=>{if(!r||l.current)return;const c=t?document.getElementById(t):null;if(!c)return;const u=document.createElement("div");u.id=r,u.setAttribute(S0,""),c.appendChild(u),l.current=u,a(u)},[t,r]),pn(()=>{if(n===null||!r||l.current)return;let c=n||i?.portalNode;c&&!yt(c)&&(c=c.current),c=c||document.body;let u=null;t&&(u=document.createElement("div"),u.id=t,c.appendChild(u));const f=document.createElement("div");f.id=r,f.setAttribute(S0,""),c=u||c,c.appendChild(f),l.current=f,a(f)},[t,n,r,i]),o}function x1(e){const{children:t,id:n,root:r,preserveTabOrder:i=!0}=e,o=vb({id:n,root:r}),[a,l]=d.useState(null),c=d.useRef(null),u=d.useRef(null),f=d.useRef(null),h=d.useRef(null),g=a?.modal,x=a?.open,v=!!a&&!a.modal&&a.open&&i&&!!(r||o);return d.useEffect(()=>{if(!o||!i||g)return;function C(b){o&&Ta(b)&&(b.type==="focusin"?E0:gb)(o)}return o.addEventListener("focusin",C,!0),o.addEventListener("focusout",C,!0),()=>{o.removeEventListener("focusin",C,!0),o.removeEventListener("focusout",C,!0)}},[o,i,g]),d.useEffect(()=>{o&&(x||E0(o))},[x,o]),d.createElement(Z9.Provider,{value:d.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:f,afterInsideRef:h,portalNode:o,setFocusManagerState:l}),[i,o])},v&&o&&d.createElement(Gs,{"data-type":"outside",ref:c,onFocus:C=>{if(Ta(C,o)){var b;(b=f.current)==null||b.focus()}else{const y=W9()||a?.refs.domReference.current;y?.focus()}}}),v&&o&&d.createElement("span",{"aria-owns":o.id,style:Tl}),o&&q2.createPortal(t,o),v&&o&&d.createElement(Gs,{"data-type":"outside",ref:u,onFocus:C=>{if(Ta(C,o)){var b;(b=h.current)==null||b.focus()}else{const y=V9()||a?.refs.domReference.current;y?.focus(),a?.closeOnFocusOut&&a?.onOpenChange(!1,C.nativeEvent,"focus-out")}}}))}const z9=()=>d.useContext(Z9),k2="data-floating-ui-focusable";function Cb(e){return e?e.hasAttribute(k2)?e:e.querySelector("["+k2+"]")||e:null}const bb=20;let Bi=[];function wc(e){Bi=Bi.filter(n=>n.isConnected);let t=e;if(!(!t||Li(t)==="body")){if(!jC(t,Ya())){const n=Dl(t,Ya())[0];n&&(t=n)}Bi.push(t),Bi.length>bb&&(Bi=Bi.slice(-20))}}function I0(){return Bi.slice().reverse().find(e=>e.isConnected)}const yb=d.forwardRef(function(t,n){return d.createElement("button",Za({},t,{type:"button",ref:n,tabIndex:-1,style:Tl}))});function jd(e){const{context:t,children:n,disabled:r=!1,order:i=["content"],guards:o=!0,initialFocus:a=0,returnFocus:l=!0,restoreFocus:c=!1,modal:u=!0,visuallyHiddenDismiss:f=!1,closeOnFocusOut:h=!0}=e,{open:g,refs:x,nodeId:v,onOpenChange:C,events:b,dataRef:y,floatingId:_,elements:{domReference:w,floating:$}}=t,k=typeof a=="number"&&a<0,L=aC(w)&&k,M=fb()?o:!0,I=wr(i),T=wr(a),P=wr(l),z=jl(),N=z9(),V=d.useRef(null),j=d.useRef(null),R=d.useRef(!1),A=d.useRef(!1),D=d.useRef(-1),B=N!=null,H=Cb($),O=nr(function(G){return G===void 0&&(G=H),G?Dl(G,Ya()):[]}),W=nr(G=>{const S=O(G);return I.current.map(q=>w&&q==="reference"?w:H&&q==="floating"?H:S).filter(Boolean).flat()});d.useEffect(()=>{if(r||!u)return;function G(q){if(q.key==="Tab"){nn(H,Nr(vn(H)))&&O().length===0&&!L&&xc(q);const ie=W(),ee=Zr(q);I.current[0]==="reference"&&ee===w&&(xc(q),q.shiftKey?vo(ie[ie.length-1]):vo(ie[1])),I.current[1]==="floating"&&ee===H&&q.shiftKey&&(xc(q),vo(ie[0]))}}const S=vn(H);return S.addEventListener("keydown",G),()=>{S.removeEventListener("keydown",G)}},[r,w,H,u,I,L,O,W]),d.useEffect(()=>{if(r||!$)return;function G(S){const q=Zr(S),ee=O().indexOf(q);ee!==-1&&(D.current=ee)}return $.addEventListener("focusin",G),()=>{$.removeEventListener("focusin",G)}},[r,$,O]),d.useEffect(()=>{if(r||!h)return;function G(){A.current=!0,setTimeout(()=>{A.current=!1})}function S(q){const ie=q.relatedTarget;queueMicrotask(()=>{const ee=!(nn(w,ie)||nn($,ie)||nn(ie,$)||nn(N?.portalNode,ie)||ie!=null&&ie.hasAttribute(Ki("focus-guard"))||z&&(Ao(z.nodesRef.current,v).find(he=>{var ve,Se;return nn((ve=he.context)==null?void 0:ve.elements.floating,ie)||nn((Se=he.context)==null?void 0:Se.elements.domReference,ie)})||pb(z.nodesRef.current,v).find(he=>{var ve,Se;return((ve=he.context)==null?void 0:ve.elements.floating)===ie||((Se=he.context)==null?void 0:Se.elements.domReference)===ie})));if(c&&ee&&Nr(vn(H))===vn(H).body){rn(H)&&H.focus();const he=D.current,ve=O(),Se=ve[he]||ve[ve.length-1]||H;rn(Se)&&Se.focus()}(L||!u)&&ie&&ee&&!A.current&&ie!==I0()&&(R.current=!0,C(!1,q,"focus-out"))})}if($&&rn(w))return w.addEventListener("focusout",S),w.addEventListener("pointerdown",G),$.addEventListener("focusout",S),()=>{w.removeEventListener("focusout",S),w.removeEventListener("pointerdown",G),$.removeEventListener("focusout",S)}},[r,w,$,H,u,v,z,N,C,h,c,O,L]),d.useEffect(()=>{var G;if(r)return;const S=Array.from((N==null||(G=N.portalNode)==null?void 0:G.querySelectorAll("["+Ki("portal")+"]"))||[]);if($){const q=[$,...S,V.current,j.current,I.current.includes("reference")||L?w:null].filter(ee=>ee!=null),ie=u||L?L0(q,M,!M):L0(q);return()=>{ie()}}},[r,w,$,u,I,N,L,M]),pn(()=>{if(r||!rn(H))return;const G=vn(H),S=Nr(G);queueMicrotask(()=>{const q=W(H),ie=T.current,ee=(typeof ie=="number"?q[ie]:ie.current)||H,he=nn(H,S);!k&&!he&&g&&vo(ee,{preventScroll:ee===H})})},[r,g,H,k,W,T]),pn(()=>{if(r||!H)return;let G=!1;const S=vn(H),q=Nr(S);let ee=y.current.openEvent;wc(q);function he(se){let{open:We,reason:He,event:Y,nested:re}=se;We&&(ee=Y),He==="escape-key"&&x.domReference.current&&wc(x.domReference.current),He==="hover"&&Y.type==="mouseleave"&&(R.current=!0),He==="outside-press"&&(re?(R.current=!1,G=!0):R.current=!(eC(Y)||C9(Y)))}b.on("openchange",he);const ve=S.createElement("span");ve.setAttribute("tabindex","-1"),ve.setAttribute("aria-hidden","true"),Object.assign(ve.style,Tl),B&&w&&w.insertAdjacentElement("afterend",ve);function Se(){return typeof P.current=="boolean"?I0()||ve:P.current.current||ve}return()=>{b.off("openchange",he);const se=Nr(S),We=nn($,se)||z&&Ao(z.nodesRef.current,v).some(re=>{var J;return nn((J=re.context)==null?void 0:J.elements.floating,se)});(We||ee&&["click","mousedown"].includes(ee.type))&&x.domReference.current&&wc(x.domReference.current);const Y=Se();queueMicrotask(()=>{P.current&&!R.current&&rn(Y)&&(!(Y!==se&&se!==S.body)||We)&&Y.focus({preventScroll:G}),ve.remove()})}},[r,$,H,P,y,x,b,z,v,B,w]),d.useEffect(()=>{queueMicrotask(()=>{R.current=!1})},[r]),pn(()=>{if(!r&&N)return N.setFocusManagerState({modal:u,closeOnFocusOut:h,open:g,onOpenChange:C,refs:x}),()=>{N.setFocusManagerState(null)}},[r,N,u,g,C,x,h]),pn(()=>{if(r||!H||typeof MutationObserver!="function"||k)return;const G=()=>{const q=H.getAttribute("tabindex"),ie=O(),ee=Nr(vn($)),he=ie.indexOf(ee);he!==-1&&(D.current=he),I.current.includes("floating")||ee!==x.domReference.current&&ie.length===0?q!=="0"&&H.setAttribute("tabindex","0"):q!=="-1"&&H.setAttribute("tabindex","-1")};G();const S=new MutationObserver(G);return S.observe(H,{childList:!0,subtree:!0,attributes:!0}),()=>{S.disconnect()}},[r,$,H,x,I,O,k]);function Q(G){return r||!f||!u?null:d.createElement(yb,{ref:G==="start"?V:j,onClick:S=>C(!1,S.nativeEvent)},typeof f=="string"?f:"Dismiss")}const pe=!r&&M&&(u?!L:!0)&&(B||u);return d.createElement(d.Fragment,null,pe&&d.createElement(Gs,{"data-type":"inside",ref:N?.beforeInsideRef,onFocus:G=>{if(u){const q=W();vo(i[0]==="reference"?q[0]:q[q.length-1])}else if(N!=null&&N.preserveTabOrder&&N.portalNode)if(R.current=!1,Ta(G,N.portalNode)){const q=V9()||w;q?.focus()}else{var S;(S=N.beforeOutsideRef.current)==null||S.focus()}}}),!L&&Q("start"),n,Q("end"),pe&&d.createElement(Gs,{"data-type":"inside",ref:N?.afterInsideRef,onFocus:G=>{if(u)vo(W()[0]);else if(N!=null&&N.preserveTabOrder&&N.portalNode)if(h&&(R.current=!0),Ta(G,N.portalNode)){const q=W9()||w;q?.focus()}else{var S;(S=N.afterOutsideRef.current)==null||S.focus()}}}))}function D0(e){return rn(e.target)&&e.target.tagName==="BUTTON"}function j0(e){return kd(e)}function v1(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:o}}=e,{enabled:a=!0,event:l="click",toggle:c=!0,ignoreMouse:u=!1,keyboardHandlers:f=!0,stickIfOpen:h=!0}=t,g=d.useRef(),x=d.useRef(!1),v=d.useMemo(()=>({onPointerDown(C){g.current=C.pointerType},onMouseDown(C){const b=g.current;C.button===0&&l!=="click"&&(Wa(b,!0)&&u||(n&&c&&(!(i.current.openEvent&&h)||i.current.openEvent.type==="mousedown")?r(!1,C.nativeEvent,"click"):(C.preventDefault(),r(!0,C.nativeEvent,"click"))))},onClick(C){const b=g.current;if(l==="mousedown"&&g.current){g.current=void 0;return}Wa(b,!0)&&u||(n&&c&&(!(i.current.openEvent&&h)||i.current.openEvent.type==="click")?r(!1,C.nativeEvent,"click"):r(!0,C.nativeEvent,"click"))},onKeyDown(C){g.current=void 0,!(C.defaultPrevented||!f||D0(C))&&(C.key===" "&&!j0(o)&&(C.preventDefault(),x.current=!0),C.key==="Enter"&&r(!(n&&c),C.nativeEvent,"click"))},onKeyUp(C){C.defaultPrevented||!f||D0(C)||j0(o)||C.key===" "&&x.current&&(x.current=!1,r(!(n&&c),C.nativeEvent,"click"))}}),[i,o,l,u,f,r,n,h,c]);return d.useMemo(()=>a?{reference:v}:{},[a,v])}const wb={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},kb={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},T0=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e?.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e?.outsidePress)!=null?n:!0}};function C1(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:o}=e,{enabled:a=!0,escapeKey:l=!0,outsidePress:c=!0,outsidePressEvent:u="pointerdown",referencePress:f=!1,referencePressEvent:h="pointerdown",ancestorScroll:g=!1,bubbles:x,capture:v}=t,C=jl(),b=nr(typeof c=="function"?c:()=>!1),y=typeof c=="function"?b:c,_=d.useRef(!1),w=d.useRef(!1),{escapeKey:$,outsidePress:k}=T0(x),{escapeKey:L,outsidePress:M}=T0(v),I=d.useRef(!1),T=nr(R=>{var A;if(!n||!a||!l||R.key!=="Escape"||I.current)return;const D=(A=o.current.floatingContext)==null?void 0:A.nodeId,B=C?Ao(C.nodesRef.current,D):[];if(!$&&(R.stopPropagation(),B.length>0)){let H=!0;if(B.forEach(O=>{var W;if((W=O.context)!=null&&W.open&&!O.context.dataRef.current.__escapeKeyBubbles){H=!1;return}}),!H)return}r(!1,rC(R)?R.nativeEvent:R,"escape-key")}),P=nr(R=>{var A;const D=()=>{var B;T(R),(B=Zr(R))==null||B.removeEventListener("keydown",D)};(A=Zr(R))==null||A.addEventListener("keydown",D)}),z=nr(R=>{var A;const D=_.current;_.current=!1;const B=w.current;if(w.current=!1,u==="click"&&B||D||typeof y=="function"&&!y(R))return;const H=Zr(R),O="["+Ki("inert")+"]",W=vn(i.floating).querySelectorAll(O);let Q=yt(H)?H:null;for(;Q&&!wi(Q);){const q=ei(Q);if(wi(q)||!yt(q))break;Q=q}if(W.length&&yt(H)&&!iC(H)&&!nn(H,i.floating)&&Array.from(W).every(q=>!nn(Q,q)))return;if(rn(H)&&j){const q=H.clientWidth>0&&H.scrollWidth>H.clientWidth,ie=H.clientHeight>0&&H.scrollHeight>H.clientHeight;let ee=ie&&R.offsetX>H.clientWidth;if(ie&&On(H).direction==="rtl"&&(ee=R.offsetX<=H.offsetWidth-H.clientWidth),ee||q&&R.offsetY>H.clientHeight)return}const pe=(A=o.current.floatingContext)==null?void 0:A.nodeId,G=C&&Ao(C.nodesRef.current,pe).some(q=>{var ie;return gc(R,(ie=q.context)==null?void 0:ie.elements.floating)});if(gc(R,i.floating)||gc(R,i.domReference)||G)return;const S=C?Ao(C.nodesRef.current,pe):[];if(S.length>0){let q=!0;if(S.forEach(ie=>{var ee;if((ee=ie.context)!=null&&ee.open&&!ie.context.dataRef.current.__outsidePressBubbles){q=!1;return}}),!q)return}r(!1,R,"outside-press")}),N=nr(R=>{var A;const D=()=>{var B;z(R),(B=Zr(R))==null||B.removeEventListener(u,D)};(A=Zr(R))==null||A.addEventListener(u,D)});d.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=$,o.current.__outsidePressBubbles=k;let R=-1;function A(W){r(!1,W,"ancestor-scroll")}function D(){window.clearTimeout(R),I.current=!0}function B(){R=window.setTimeout(()=>{I.current=!1},Sl()?5:0)}const H=vn(i.floating);l&&(H.addEventListener("keydown",L?P:T,L),H.addEventListener("compositionstart",D),H.addEventListener("compositionend",B)),y&&H.addEventListener(u,M?N:z,M);let O=[];return g&&(yt(i.domReference)&&(O=vi(i.domReference)),yt(i.floating)&&(O=O.concat(vi(i.floating))),!yt(i.reference)&&i.reference&&i.reference.contextElement&&(O=O.concat(vi(i.reference.contextElement)))),O=O.filter(W=>{var Q;return W!==((Q=H.defaultView)==null?void 0:Q.visualViewport)}),O.forEach(W=>{W.addEventListener("scroll",A,{passive:!0})}),()=>{l&&(H.removeEventListener("keydown",L?P:T,L),H.removeEventListener("compositionstart",D),H.removeEventListener("compositionend",B)),y&&H.removeEventListener(u,M?N:z,M),O.forEach(W=>{W.removeEventListener("scroll",A)}),window.clearTimeout(R)}},[o,i,l,y,u,n,r,g,a,$,k,T,L,P,z,M,N]),d.useEffect(()=>{_.current=!1},[y,u]);const V=d.useMemo(()=>({onKeyDown:T,[wb[h]]:R=>{f&&r(!1,R.nativeEvent,"reference-press")}}),[T,r,f,h]),j=d.useMemo(()=>({onKeyDown:T,onMouseDown(){w.current=!0},onMouseUp(){w.current=!0},[kb[u]]:()=>{_.current=!0}}),[T,u]);return d.useMemo(()=>a?{reference:V,floating:j}:{},[a,V,j])}function _b(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=qi(),o=d.useRef({}),[a]=d.useState(()=>cb()),l=Id()!=null;if(process.env.NODE_ENV!=="production"){const x=r.reference;x&&!yt(x)&&lb("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,u]=d.useState(r.reference),f=nr((x,v,C)=>{o.current.openEvent=x?v:void 0,a.emit("openchange",{open:x,event:v,reason:C,nested:l}),n?.(x,v,C)}),h=d.useMemo(()=>({setPositionReference:u}),[]),g=d.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return d.useMemo(()=>({dataRef:o,open:t,onOpenChange:f,elements:g,events:a,floatingId:i,refs:h}),[t,f,g,a,i,h])}function b1(e){e===void 0&&(e={});const{nodeId:t}=e,n=_b({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=d.useState(null),[l,c]=d.useState(null),f=i?.domReference||o,h=d.useRef(null),g=jl();pn(()=>{f&&(h.current=f)},[f]);const x=eb({...e,elements:{...i,...l&&{reference:l}}}),v=d.useCallback(w=>{const $=yt(w)?{getBoundingClientRect:()=>w.getBoundingClientRect(),contextElement:w}:w;c($),x.refs.setReference($)},[x.refs]),C=d.useCallback(w=>{(yt(w)||w===null)&&(h.current=w,a(w)),(yt(x.refs.reference.current)||x.refs.reference.current===null||w!==null&&!yt(w))&&x.refs.setReference(w)},[x.refs]),b=d.useMemo(()=>({...x.refs,setReference:C,setPositionReference:v,domReference:h}),[x.refs,C,v]),y=d.useMemo(()=>({...x.elements,domReference:f}),[x.elements,f]),_=d.useMemo(()=>({...x,...r,refs:b,elements:y,nodeId:t}),[x,b,y,t,r]);return pn(()=>{r.dataRef.current.floatingContext=_;const w=g?.nodesRef.current.find($=>$.id===t);w&&(w.context=_)}),d.useMemo(()=>({...x,context:_,refs:b,elements:y}),[x,b,y,_])}function $b(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:o,elements:a}=e,{enabled:l=!0,visibleOnly:c=!0}=t,u=d.useRef(!1),f=d.useRef(),h=d.useRef(!0);d.useEffect(()=>{if(!l)return;const x=In(a.domReference);function v(){!n&&rn(a.domReference)&&a.domReference===Nr(vn(a.domReference))&&(u.current=!0)}function C(){h.current=!0}return x.addEventListener("blur",v),x.addEventListener("keydown",C,!0),()=>{x.removeEventListener("blur",v),x.removeEventListener("keydown",C,!0)}},[a.domReference,n,l]),d.useEffect(()=>{if(!l)return;function x(v){let{reason:C}=v;(C==="reference-press"||C==="escape-key")&&(u.current=!0)}return i.on("openchange",x),()=>{i.off("openchange",x)}},[i,l]),d.useEffect(()=>()=>{clearTimeout(f.current)},[]);const g=d.useMemo(()=>({onPointerDown(x){C9(x.nativeEvent)||(h.current=!1)},onMouseLeave(){u.current=!1},onFocus(x){if(u.current)return;const v=Zr(x.nativeEvent);if(c&&yt(v))try{if(b9()&&tC())throw Error();if(!v.matches(":focus-visible"))return}catch{if(!h.current&&!kd(v))return}r(!0,x.nativeEvent,"focus")},onBlur(x){u.current=!1;const v=x.relatedTarget,C=x.nativeEvent,b=yt(v)&&v.hasAttribute(Ki("focus-guard"))&&v.getAttribute("data-type")==="outside";f.current=window.setTimeout(()=>{var y;const _=Nr(a.domReference?a.domReference.ownerDocument:document);!v&&_===a.domReference||nn((y=o.current.floatingContext)==null?void 0:y.refs.floating.current,_)||nn(a.domReference,_)||b||r(!1,C,"focus")})}}),[o,a.domReference,r,c]);return d.useMemo(()=>l?{reference:g}:{},[l,g])}const A0="active",R0="selected";function kc(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[A0]:a,[R0]:l,...c}=e;o=c}return{...n==="floating"&&{tabIndex:-1,[k2]:""},...o,...t.map(a=>{const l=a?a[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((a,l)=>(l&&Object.entries(l).forEach(c=>{let[u,f]=c;if(!(i&&[A0,R0].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof f=="function"){var h;(h=r.get(u))==null||h.push(f),a[u]=function(){for(var g,x=arguments.length,v=new Array(x),C=0;C<x;C++)v[C]=arguments[C];return(g=r.get(u))==null?void 0:g.map(b=>b(...v)).find(b=>b!==void 0)}}}else a[u]=f}),a),{})}}function y1(e){e===void 0&&(e=[]);const t=e.map(l=>l?.reference),n=e.map(l=>l?.floating),r=e.map(l=>l?.item),i=d.useCallback(l=>kc(l,e,"reference"),t),o=d.useCallback(l=>kc(l,e,"floating"),n),a=d.useCallback(l=>kc(l,e,"item"),r);return d.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}const Lb=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function w1(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:a="dialog"}=t,l=(n=Lb.get(a))!=null?n:a,c=qi(),f=Id()!=null,h=d.useMemo(()=>l==="tooltip"||a==="label"?{["aria-"+(a==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":l==="alertdialog"?"dialog":l,"aria-controls":r?i:void 0,...l==="listbox"&&{role:"combobox"},...l==="menu"&&{id:c},...l==="menu"&&f&&{role:"menuitem"},...a==="select"&&{"aria-autocomplete":"none"},...a==="combobox"&&{"aria-autocomplete":"list"}},[l,i,f,r,c,a]),g=d.useMemo(()=>{const v={id:i,...l&&{role:l}};return l==="tooltip"||a==="label"?v:{...v,...l==="menu"&&{"aria-labelledby":c}}},[l,i,c,a]),x=d.useCallback(v=>{let{active:C,selected:b}=v;const y={role:"option",...C&&{id:i+"-option"}};switch(a){case"select":return{...y,"aria-selected":C&&b};case"combobox":return{...y,...C&&{"aria-selected":!0}}}return{}},[i,a]);return d.useMemo(()=>o?{reference:h,floating:g,item:x}:{},[o,h,g,x])}const F0=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function bo(e,t){return typeof e=="function"?e(t):e}function Eb(e,t){const[n,r]=d.useState(e);return e&&!n&&r(!0),d.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function Mb(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,a=(typeof i=="number"?i:i.close)||0,[l,c]=d.useState("unmounted"),u=Eb(n,a);return!u&&l==="close"&&c("unmounted"),pn(()=>{if(r){if(n){c("initial");const f=requestAnimationFrame(()=>{c("open")});return()=>{cancelAnimationFrame(f)}}c("close")}},[n,r]),{isMounted:u,status:l}}function k1(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:i,common:o,duration:a=250}=t,l=e.placement,c=l.split("-")[0],u=d.useMemo(()=>({side:c,placement:l}),[c,l]),f=typeof a=="number",h=(f?a:a.open)||0,g=(f?a:a.close)||0,[x,v]=d.useState(()=>({...bo(o,u),...bo(n,u)})),{isMounted:C,status:b}=Mb(e,{duration:a}),y=wr(n),_=wr(r),w=wr(i),$=wr(o);return pn(()=>{const k=bo(y.current,u),L=bo(w.current,u),M=bo($.current,u),I=bo(_.current,u)||Object.keys(k).reduce((T,P)=>(T[P]="",T),{});if(b==="initial"&&v(T=>({transitionProperty:T.transitionProperty,...M,...k})),b==="open"&&v({transitionProperty:Object.keys(I).map(F0).join(","),transitionDuration:h+"ms",...M,...I}),b==="close"){const T=L||k;v({transitionProperty:Object.keys(T).map(F0).join(","),transitionDuration:g+"ms",...M,...T})}},[g,w,y,_,$,h,b,u]),{isMounted:C,styles:x}}function P0(e,t){const[n,r]=e;let i=!1;const o=t.length;for(let a=0,l=o-1;a<o;l=a++){const[c,u]=t[a]||[0,0],[f,h]=t[l]||[0,0];u>=r!=h>=r&&n<=(f-c)*(r-u)/(h-u)+c&&(i=!i)}return i}function Sb(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Ib(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let i,o=!1,a=null,l=null,c=performance.now();function u(h,g){const x=performance.now(),v=x-c;if(a===null||l===null||v===0)return a=h,l=g,c=x,null;const C=h-a,b=g-l,_=Math.sqrt(C*C+b*b)/v;return a=h,l=g,c=x,_}const f=h=>{let{x:g,y:x,placement:v,elements:C,onClose:b,nodeId:y,tree:_}=h;return function($){function k(){clearTimeout(i),b()}if(clearTimeout(i),!C.domReference||!C.floating||v==null||g==null||x==null)return;const{clientX:L,clientY:M}=$,I=[L,M],T=Zr($),P=$.type==="mouseleave",z=nn(C.floating,T),N=nn(C.domReference,T),V=C.domReference.getBoundingClientRect(),j=C.floating.getBoundingClientRect(),R=v.split("-")[0],A=g>j.right-j.width/2,D=x>j.bottom-j.height/2,B=Sb(I,V),H=j.width>V.width,O=j.height>V.height,W=(H?V:j).left,Q=(H?V:j).right,pe=(O?V:j).top,G=(O?V:j).bottom;if(z&&(o=!0,!P))return;if(N&&(o=!1),N&&!P){o=!0;return}if(P&&yt($.relatedTarget)&&nn(C.floating,$.relatedTarget)||_&&Ao(_.nodesRef.current,y).some(ie=>{let{context:ee}=ie;return ee?.open}))return;if(R==="top"&&x>=V.bottom-1||R==="bottom"&&x<=V.top+1||R==="left"&&g>=V.right-1||R==="right"&&g<=V.left+1)return k();let S=[];switch(R){case"top":S=[[W,V.top+1],[W,j.bottom-1],[Q,j.bottom-1],[Q,V.top+1]];break;case"bottom":S=[[W,j.top+1],[W,V.bottom-1],[Q,V.bottom-1],[Q,j.top+1]];break;case"left":S=[[j.right-1,G],[j.right-1,pe],[V.left+1,pe],[V.left+1,G]];break;case"right":S=[[V.right-1,G],[V.right-1,pe],[j.left+1,pe],[j.left+1,G]];break}function q(ie){let[ee,he]=ie;switch(R){case"top":{const ve=[H?ee+t/2:A?ee+t*4:ee-t*4,he+t+1],Se=[H?ee-t/2:A?ee+t*4:ee-t*4,he+t+1],se=[[j.left,A||H?j.bottom-t:j.top],[j.right,A?H?j.bottom-t:j.top:j.bottom-t]];return[ve,Se,...se]}case"bottom":{const ve=[H?ee+t/2:A?ee+t*4:ee-t*4,he-t],Se=[H?ee-t/2:A?ee+t*4:ee-t*4,he-t],se=[[j.left,A||H?j.top+t:j.bottom],[j.right,A?H?j.top+t:j.bottom:j.top+t]];return[ve,Se,...se]}case"left":{const ve=[ee+t+1,O?he+t/2:D?he+t*4:he-t*4],Se=[ee+t+1,O?he-t/2:D?he+t*4:he-t*4];return[...[[D||O?j.right-t:j.left,j.top],[D?O?j.right-t:j.left:j.right-t,j.bottom]],ve,Se]}case"right":{const ve=[ee-t,O?he+t/2:D?he+t*4:he-t*4],Se=[ee-t,O?he-t/2:D?he+t*4:he-t*4],se=[[D||O?j.left+t:j.right,j.top],[D?O?j.left+t:j.right:j.left+t,j.bottom]];return[ve,Se,...se]}}}if(!P0([L,M],S)){if(o&&!B)return k();if(!P&&r){const ie=u($.clientX,$.clientY);if(ie!==null&&ie<.1)return k()}P0([L,M],q([g,x]))?!o&&r&&(i=window.setTimeout(k,40)):k()}}};return f.__options={blockPointerEvents:n},f}const Ei=e=>{if(yi){const t=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([.$?*|{}()[\]\\/+^])/g,"\\$1")+"=([^;]*)"));return t?decodeURIComponent(t[1]):void 0}},_1=(e,t,n={})=>{const r={path:"/","max-age":31104e3,...n},i=window.location.origin;i.includes("localhost")?r.domain="localhost":i.includes("profinansy.ae")?r.domain=".profinansy.ae":i.includes("qa.profinansy.dev")?r.domain=".profinansy.dev":r.domain=".profinansy.ru",n.expires instanceof Date&&(r.expires=n.expires.toUTCString());let o=encodeURIComponent(e)+"="+encodeURIComponent(t);for(const a in r){o+="; "+a;const l=r[a];l!==!0&&(o+="="+l)}document.cookie=o},Db=e=>{_1(e,"",{"max-age":-1})},_2=["/login","/idv","/method"],Y9=m.createContext({mode:"light",selectedMode:"light",toggleTheme:null,setShowTheme:null,unAvailablePagesTheme:_2}),ye=()=>m.useContext(Y9),B0="selected_theme",jb=({children:e,selectedTheme:t})=>{const[n,r]=m.useState(t??"light"),[i,o]=m.useState(t??"light");m.useEffect(()=>{let c=!0;const u=window?.location.pathname;_2.forEach(f=>{u.includes(f)&&(c=!1)}),o(c?n:"light")},[n]),m.useEffect(()=>{const c=Ei(B0);(c==="light"||c==="dark")&&r(c)},[]);const a=c=>{r(c),_1(B0,c)},l=c=>{o(c)};return s.jsx(Y9.Provider,{value:{mode:i,selectedMode:n,toggleTheme:a,setShowTheme:l,unAvailablePagesTheme:_2},children:e})},fe={light:{background:{primary:"#F4F4F9",content:"#FFFFFF",secondary:"#F7F7F9",secondaryAlpha:"#EAE9F1",field:"#FFFFFF",fieldSecondary:"#F5F4F8",accent:"#6553F5",accentSecondaryTint:"#E8E5FE",positiveTint:"#DCF6DA",warningTint:"#FFF0DB",negativeTint:"#FFF1EC",info:"#DBDCFF",bottomActions:"rgba(255, 255, 255, 0.5)",modalBottomActions:"rgba(255, 255, 255, 0.85)",overlay:"rgba(0, 0, 0, 0.60)"},text:{primary:"#242424",secondary:"#6A6A71",tertiary:"#A1A0AC",fourth:"#606076",contrast:"#FFFFFF",contrastThemed:"#FFFFFF",accent:"#6553F5",accentSecondary:"#9B8EFF",positive:"#34C759",warning:"#FFA000",negative:"#FF3B30",info:"#3038F5",link:"#4285F4"},icons:{primary:"#242424",secondary:"#AAAABA",tertiary:"#CCCBD3",fourth:"#606076",contrast:"#FFFFFF",contrastThemed:"#FFFFFF",contrastThemRev:"#FFFFFF",accent:"#6553F5",accentSecondary:"#9B8EFF",positive:"#34C759",warring:"#FFA000",negative:"#FF3B30",info:"#3038F5",link:"#4285F4"},stroke:{primary:"#DDDDE3",secondary:"#D6D6DE",tertiary:"#E7E7EB",contrast:"#7D7D95",accent:"#6553F5",positive:"#34C759",warning:"#FFA000",negative:"#FF3B30",info:"#3038F5",tooltip:"#F0F0F0"},interactiveButtons:{brandBackground:"#6553F5",brandBackgroundHover:"#4A35F3",brandText:"#FFFFFF",secondaryBrandBackground:"rgba(101, 83, 245, 0.12)",secondaryBrandBackgroundHover:"rgba(101, 83, 245, 0.22)",secondaryBrandText:"#4A35F3",whiteFixedBackground:"#FFFFFF",whiteFixedBackgroundHover:"rgba(255, 255, 255, 0.85)",whiteFixedText:"#242424",outlineBrandBackground:"#FFFFFF",outlineBrandBackgroundHover:"rgba(101, 83, 245, 0.08)",outlineBrandText:"#6553F5",outlineBrandBorder:"#6553F5",outlineBrandBorderHover:"#3821F2",systemBackground:"#EAE9F1",systemBackgroundHover:"#DFDEEA",systemText:"#464167",successBackground:"#E1F7E6",successBackgroundHover:"#BBEDC6",successText:"#299E47",warningBackground:"#FFF1D9",warningBackgroundHover:"#FFDFA8",warningText:"#E59000",criticalBackground:"#FFE2E0",criticalBackgroundHover:"#FFD7D4",criticalText:"#FF3B30",neutralBackground:"rgba(36, 36, 36, 0.50)",neutralBackgroundHover:"rgba(36, 36, 36, 0.70)",neutralText:"#FFFFFF",flatBrandTextHover:"#3821F2",flatSystemTextHover:"#6C659A"},interactiveControls:{accent:"#F0EFF3",secondary:"#FFFFFF",supportive:"#E8E8ED",brand:"#6553F5",brandAlpha:"#4A35F3",accentDark:"#19181B"},other:{orange:"#FFAD30",green:"#A0DD1E",olive:"#DBDE43",violet:"#6E59EF",red:"#EB343F",red2:"#FF4747",pink:"#F969FC",turquoise:"#2ED0C7",blue:"#72E3E3",mediumBlue:"#58C9E2",darkBlue:"#28C6E9",lightBlue:"#4285F4",navyBlue:"#11408E",lightBlueTint:"rgba(66, 133, 244, 0.10)",gray:"rgba(36, 36, 36, 0.50)",orangeTint:"#FFF9EF",greenTint:"#F8FDED",oliveTint:"#FCFDF0",violetTint:"#F4F2FE",redTint:"#FEEFF0",pinkTint:"#FFF3FF",turquoiseTint:"#EFFCFB",darkBlueTint:"#EEF8FB",black:"#111011"},shadow:{basicDefault:"0px 14px 20px -4px rgba(87, 87, 87, 0.10)",basicHover:"0px 12px 28px -3px rgba(87, 87, 87, 0.20)",basicDrag:"0px 12px 32px -3px rgba(87, 87, 87, 0.32)",overlay:"0px 16px 40px -3px rgba(58, 57, 60, 0.28)",dropdown:"0px 4px 8px 0px rgba(0, 0, 0, 0.04), 0px 0px 4px 0px rgba(0, 0, 0, 0.06)",modal:"0px 14px 30px -4px rgba(0, 0, 0, 0.2)",dragItem:"0px 4px 12px rgba(0, 0, 0, 0.15)"},statesBackground:{tabsHover:"#F6F6F6",tabsActive:"#383838",tabsActiveHover:"#242424",accentHover:"#7665FF",accentActive:"#5D48F5",field:"rgba(0, 0, 0, 0.06)",secondaryAlphaActive:"#DCDCDC",secondaryAlphaHover:"#E7E7E7",listHover:"#F6F6F6",notificationHover:"#F6F6F6",notificationHoverError:"#F6F6F6",sideBarActive:"#111011",sideBarOpen:"#E1E0EB"},gradient:{gradient_1:"linear-gradient(90deg, #f4f4f9 0%, rgba(244, 244, 249, 0) 100%)",gradient_2:"linear-gradient(90deg, #FFF 0%, rgba(255, 255, 255, 0.00) 100%)",gradient_3:"linear-gradient(90deg, rgba(244, 244, 249, 0) 0%, #f4f4f9 100%)",gradient_4:"linear-gradient(90deg, rgba(255, 255, 255, 0.00) 0%, #FFF 100%)",top:"linear-gradient(180deg, #FFF 0%, rgba(255, 255, 255, 0.95) 52.08%, rgba(255, 255, 255, 0.00) 100%)",bottom:"linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.95) 53.12%, #FFF 100%)"},club:{primary:"#3C3993",primaryHover:"#5853E3",secondary:"#4833F4",secondaryHover:"#200DB8",buttonBackground:"#E7E7F2",buttonBackgroundHover:"#CAC9E1",green:"#29B279",primaryActive:"#2B2979",primaryGradient:"linear-gradient(54.06deg, #162331 10.84%, #3C3993 98.2%)",secondaryGradient:"linear-gradient(90.24deg, #B92A78 0%, #6699FB 99.58%)"},nav:{search:"#1E1E1E",chipsSearch:"#171718",divider:"#1B1B1C",tabs:"#252527",sideBarOpenActive:"#E1E0EB"},footer:{background:"#121213",banner:"#1E2029",subinfo:"#939394",socials:"#202021",divider:"rgba(255, 255, 255, 0.10)",subtitle:"#7E7E7F",subtitleHover:"#BEBEBF",iconHover:"#9B8EFF",columnDivider:"rgba(255, 255, 255, 0.12)"}},dark:{background:{primary:"#181818",content:"#202020",secondary:"#2B2B2B",secondaryAlpha:"#333333",field:"#2B2B2B",fieldSecondary:"#323232",accent:"#9B8EFF",accentSecondaryTint:"#2B293A",positiveTint:"#384436",warningTint:"#453B2B",negativeTint:"#362D2A",info:"#20213B",bottomActions:"rgba(24, 24, 24, 0.85)",modalBottomActions:"rgba(24, 24, 24, 0.85)",overlay:"rgba(0, 0, 0, 0.60)"},text:{primary:"#FFFFFF",secondary:"#BABAC6",tertiary:"#73738C",fourth:"#E0E0E6",contrast:"#242424",contrastThemed:"#FFFFFF",accent:"#9B8EFF",accentSecondary:"#756CBB",positive:"#30D158",warning:"#F49B06",negative:"#FF452A",info:"#3B42EA",link:"#4285F4"},icons:{primary:"#D9D9D9",secondary:"#BABAC6",tertiary:"#3E3E4C",fourth:"#E0E0E6",contrast:"#242424",contrastThemed:"#FFFFFF",contrastThemRev:"#454545",accent:"#9B8EFF",accentSecondary:"#756CBB",positive:"#30D158",warring:"#F49B06",negative:"#FF452A",info:"#3B42EA",link:"#4285F4"},stroke:{primary:"#3E3E4C",secondary:"#7D7D95",tertiary:"#454554",contrast:"#535365",accent:"#9B8EFF",positive:"#30D158",warning:"#F49B06",negative:"#FF453A",info:"#3B42EA",tooltip:"#535365"},interactiveButtons:{brandBackground:"#7B61FF",brandBackgroundHover:"#6142FF",brandText:"#FFFFFF",secondaryBrandBackground:"rgba(155, 142, 255, 0.12)",secondaryBrandBackgroundHover:"rgba(155, 142, 255, 0.22)",secondaryBrandText:"#9B8EFF",whiteFixedBackground:"#FFFFFF",whiteFixedBackgroundHover:"rgba(255, 255, 255, 0.85)",whiteFixedText:"#242424",outlineBrandBackground:"#202020",outlineBrandBackgroundHover:"rgba(155, 142, 255, 0.1)",outlineBrandText:"#9B8EFF",outlineBrandBorder:"#9B8EFF",outlineBrandBorderHover:"#9B8EFF",systemBackground:"#2E2E38",systemBackgroundHover:"#3A3A48",systemText:"#CCCADD",successBackground:"#223B28",successBackgroundHover:"#2B4A32",successText:"#2CAA4C",warningBackground:"#40321C",warningBackgroundHover:"#634E2B",warningText:"#F99E06",criticalBackground:"#412621",criticalBackgroundHover:"#38211D",criticalText:"#FF5A42",neutralBackground:"rgba(255, 255, 255, 0.50)",neutralBackgroundHover:"rgba(255, 255, 255, 0.70)",neutralText:"#FFFFFF",flatBrandTextHover:"#9B8EFF",flatSystemTextHover:"#777399"},interactiveControls:{accent:"#39383C",secondary:"#242424",supportive:"#2F2F37",brand:"#7B61FF",brandAlpha:"#6142FF",accentDark:"#FFFFFF"},other:{orange:"#E79D2D",green:"#91C81C",olive:"#C1C339",violet:"#6E59EF",red:"#E8343F",red2:"#F02D3A",pink:"#E05DE2",turquoise:"#229E97",blue:"#61C5C5",mediumBlue:"#51BBD2",darkBlue:"#21AFCE",lightBlue:"#317AF2",navyBlue:"#C9DEFF",lightBlueTint:"rgba(49, 122, 242, 0.04)",gray:"rgba(48, 48, 48, 0.50)",orangeTint:"rgba(255, 173, 48, 0.04)",greenTint:"rgba(160, 221, 30, 0.04)",oliveTint:"rgba(219, 222, 67, 0.04)",violetTint:"rgba(110, 89, 239, 0.04)",redTint:"rgba(235, 52, 63, 0.04)",pinkTint:"rgba(249, 105, 252, 0.04)",turquoiseTint:"rgba(46, 208, 199, 0.04)",darkBlueTint:"rgba(33, 175, 206, 0.04)",black:"#242325"},shadow:{basicDefault:null,basicHover:null,basicDrag:null,overlay:null,dropdown:null,modal:null,dragItem:null},statesBackground:{tabsHover:"#383838",tabsActive:"#FFFFFF",tabsActiveHover:"#F6F6F6",accentHover:"#614DF5",accentActive:"#9284FF",field:"rgba(255, 255, 255, 0.06)",secondaryAlphaActive:"#505050",secondaryAlphaHover:"#404040",listHover:"#303030",notificationHover:"#303030",notificationHoverError:"#303030",sideBarActive:"#333036",sideBarOpen:"#333036"},gradient:{gradient_1:"linear-gradient(90deg, #181818 0%, rgba(24, 24, 24, 0.00) 100%)",gradient_2:"linear-gradient(90deg, #2B2B2B 0%, rgba(43, 43, 43, 0.00) 100%)",gradient_3:"linear-gradient(90deg, rgba(24, 24, 24, 0.00) 0%, #181818 100%)",gradient_4:"linear-gradient(90deg, rgba(43, 43, 43, 0.00) 0%, #2B2B2B 100%)",top:"linear-gradient(180deg, #2B2B2B 0%, rgba(43, 43, 43, 0.95) 53.65%, rgba(43, 43, 43, 0.00) 100%)",bottom:" linear-gradient(180deg, rgba(43, 43, 43, 0.00) 0%, rgba(43, 43, 43, 0.95) 52.08%, #2B2B2B 100%)"},club:{primary:"#5854C6",primaryHover:"#7672F6",secondary:"#8C7CFF",secondaryHover:"#614FED",buttonBackground:"#282837",buttonBackgroundHover:"#2E2C60",green:"#2FCA89",primaryActive:"#3C3180",primaryGradient:"linear-gradient(54.11deg, #2C2562 6.32%, #4641BF 116.13%)",secondaryGradient:"linear-gradient(90.24deg, #CE2680 0%, #4080FD 99.58%)"},nav:{search:"#1E1E1E",chipsSearch:"#171718",divider:"#2B2B2D",tabs:"#323235",sideBarOpenActive:"#39383C"},footer:{background:"#111113",banner:"#282735",subinfo:"#939394",socials:"#202021",divider:"rgba(255, 255, 255, 0.10)",subtitle:"#7E7E7F",subtitleHover:"#BEBEBF",iconHover:"#9B8EFF",columnDivider:"rgba(255, 255, 255, 0.12)"}}},Td={idv:"linear-gradient(95.09deg, #6553f5 14.05%, #ee2cff 108.18%)",idvShort:"linear-gradient(95deg, #6553f5 14.05%, #ee2cff 108.18%)"},mn=p.css`
|
|
371
|
+
*/var hC=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Ws=hC.join(","),k9=typeof Element>"u",qo=k9?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Zs=!k9&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},zs=function e(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),o=i===""||i==="true",a=o||n&&t&&e(t.parentNode);return a},mC=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},gC=function(t,n,r){if(zs(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(Ws));return n&&qo.call(t,Ws)&&i.unshift(t),i=i.filter(r),i},xC=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if(!zs(a,!1))if(a.tagName==="SLOT"){var l=a.assignedElements(),c=l.length?l:a.children,u=e(c,!0,r);r.flatten?i.push.apply(i,u):i.push({scopeParent:a,candidates:u})}else{var f=qo.call(a,Ws);f&&r.filter(a)&&(n||!t.includes(a))&&i.push(a);var h=a.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(a),g=!zs(h,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(h&&g){var x=e(h===!0?a.children:h.children,!0,r);r.flatten?i.push.apply(i,x):i.push({scopeParent:a,candidates:x})}else o.unshift.apply(o,a.children)}}return i},_9=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},$9=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||mC(t))&&!_9(t)?0:t.tabIndex},vC=function(t,n){var r=$9(t);return r<0&&n&&!_9(t)?0:r},CC=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},L9=function(t){return t.tagName==="INPUT"},bC=function(t){return L9(t)&&t.type==="hidden"},yC=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},wC=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},kC=function(t){if(!t.name)return!0;var n=t.form||Zs(t),r=function(l){return n.querySelectorAll('input[type="radio"][name="'+l+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var o=wC(i,t.form);return!o||o===t},_C=function(t){return L9(t)&&t.type==="radio"},$C=function(t){return _C(t)&&!kC(t)},LC=function(t){var n,r=t&&Zs(t),i=(n=r)===null||n===void 0?void 0:n.host,o=!1;if(r&&r!==t){var a,l,c;for(o=!!((a=i)!==null&&a!==void 0&&(l=a.ownerDocument)!==null&&l!==void 0&&l.contains(i)||t!=null&&(c=t.ownerDocument)!==null&&c!==void 0&&c.contains(t));!o&&i;){var u,f,h;r=Zs(i),i=(u=r)===null||u===void 0?void 0:u.host,o=!!((f=i)!==null&&f!==void 0&&(h=f.ownerDocument)!==null&&h!==void 0&&h.contains(i))}}return o},g0=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},EC=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=qo.call(t,"details>summary:first-of-type"),a=o?t.parentElement:t;if(qo.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof i=="function"){for(var l=t;t;){var c=t.parentElement,u=Zs(t);if(c&&!c.shadowRoot&&i(c)===!0)return g0(t);t.assignedSlot?t=t.assignedSlot:!c&&u!==t.ownerDocument?t=u.host:t=c}t=l}if(LC(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return g0(t);return!1},MC=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var i=n.children.item(r);if(i.tagName==="LEGEND")return qo.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},SC=function(t,n){return!(n.disabled||zs(n)||bC(n)||EC(n,t)||yC(n)||MC(n))},w2=function(t,n){return!($C(n)||$9(n)<0||!SC(t,n))},IC=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},DC=function e(t){var n=[],r=[];return t.forEach(function(i,o){var a=!!i.scopeParent,l=a?i.scopeParent:i,c=vC(l,a),u=a?e(i.candidates):l;c===0?a?n.push.apply(n,u):n.push(l):r.push({documentOrder:o,tabIndex:c,item:i,isScope:a,content:u})}),r.sort(CC).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(n)},Dl=function(t,n){n=n||{};var r;return n.getShadowRoot?r=xC([t],n.includeContainer,{filter:w2.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:IC}):r=gC(t,n.includeContainer,w2.bind(null,n)),DC(r)},jC=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return qo.call(t,Ws)===!1?!1:w2(n,t)};function x0(e,t,n){let{reference:r,floating:i}=e;const o=Qo(t),a=$d(t),l=_d(a),c=Xi(t),u=o==="y",f=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,g=r[l]/2-i[l]/2;let x;switch(c){case"top":x={x:f,y:r.y-i.height};break;case"bottom":x={x:f,y:r.y+r.height};break;case"right":x={x:r.x+r.width,y:h};break;case"left":x={x:r.x-i.width,y:h};break;default:x={x:r.x,y:r.y}}switch(f1(t)){case"start":x[a]-=g*(n&&u?-1:1);break;case"end":x[a]+=g*(n&&u?-1:1);break}return x}const E9=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,l=o.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:h}=x0(u,r,c),g=r,x={},v=0;for(let C=0;C<l.length;C++){const{name:b,fn:y}=l[C],{x:_,y:w,data:$,reset:k}=await y({x:f,y:h,initialPlacement:r,placement:g,strategy:i,middlewareData:x,rects:u,platform:a,elements:{reference:e,floating:t}});f=_??f,h=w??h,x={...x,[b]:{...x[b],...$}},k&&v<=50&&(v++,typeof k=="object"&&(k.placement&&(g=k.placement),k.rects&&(u=k.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):k.rects),{x:f,y:h}=x0(u,g,c)),C=-1)}return{x:f,y:h,placement:g,strategy:i,middlewareData:x}};async function M9(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:g=!1,padding:x=0}=p1(t,e),v=w9(x),b=l[g?h==="floating"?"reference":"floating":h],y=Jo(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(b)))==null||n?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:u,rootBoundary:f,strategy:c})),_=h==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),$=await(o.isElement==null?void 0:o.isElement(w))?await(o.getScale==null?void 0:o.getScale(w))||{x:1,y:1}:{x:1,y:1},k=Jo(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:_,offsetParent:w,strategy:c}):_);return{top:(y.top-k.top+v.top)/$.y,bottom:(k.bottom-y.bottom+v.bottom)/$.y,left:(y.left-k.left+v.left)/$.x,right:(k.right-y.right+v.right)/$.x}}const S9=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:l,middlewareData:c}=t,{element:u,padding:f=0}=p1(e,t)||{};if(u==null)return{};const h=w9(f),g={x:n,y:r},x=$d(i),v=_d(x),C=await a.getDimensions(u),b=x==="y",y=b?"top":"left",_=b?"bottom":"right",w=b?"clientHeight":"clientWidth",$=o.reference[v]+o.reference[x]-g[x]-o.floating[v],k=g[x]-o.reference[x],L=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let M=L?L[w]:0;(!M||!await(a.isElement==null?void 0:a.isElement(L)))&&(M=l.floating[w]||o.floating[v]);const I=$/2-k/2,T=M/2-C[v]/2-1,P=Xo(h[y],T),z=Xo(h[_],T),N=P,V=M-C[v]-z,j=M/2-C[v]/2+I,R=b2(N,j,V),A=!c.arrow&&f1(i)!=null&&j!==R&&o.reference[v]/2-(j<N?P:z)-C[v]/2<0,D=A?j<N?j-N:j-V:0;return{[x]:g[x]+D,data:{[x]:R,centerOffset:j-R-D,...A&&{alignmentOffset:D}},reset:A}}}),I9=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:g,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:C=!0,...b}=p1(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const y=Xi(i),_=Qo(l),w=Xi(l)===l,$=await(c.isRTL==null?void 0:c.isRTL(u.floating)),k=g||(w||!C?[Vs(l)]:dC(l)),L=v!=="none";!g&&L&&k.push(...pC(l,C,v,$));const M=[l,...k],I=await M9(t,b),T=[];let P=((r=o.flip)==null?void 0:r.overflows)||[];if(f&&T.push(I[y]),h){const j=cC(i,a,$);T.push(I[j[0]],I[j[1]])}if(P=[...P,{placement:i,overflows:T}],!T.every(j=>j<=0)){var z,N;const j=(((z=o.flip)==null?void 0:z.index)||0)+1,R=M[j];if(R)return{data:{index:j,overflows:P},reset:{placement:R}};let A=(N=P.filter(D=>D.overflows[0]<=0).sort((D,B)=>D.overflows[1]-B.overflows[1])[0])==null?void 0:N.placement;if(!A)switch(x){case"bestFit":{var V;const D=(V=P.filter(B=>{if(L){const H=Qo(B.placement);return H===_||H==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(H=>H>0).reduce((H,O)=>H+O,0)]).sort((B,H)=>B[1]-H[1])[0])==null?void 0:V[0];D&&(A=D);break}case"initialPlacement":A=l;break}if(i!==A)return{reset:{placement:A}}}return{}}}};async function TC(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Xi(n),l=f1(n),c=Qo(n)==="y",u=["left","top"].includes(a)?-1:1,f=o&&c?-1:1,h=p1(t,e);let{mainAxis:g,crossAxis:x,alignmentAxis:v}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof v=="number"&&(x=l==="end"?v*-1:v),c?{x:x*f,y:g*u}:{x:g*u,y:x*f}}const D9=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:l}=t,c=await TC(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:o+c.y,data:{...c,placement:a}}}}},AC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:b=>{let{x:y,y:_}=b;return{x:y,y:_}}},...c}=p1(e,t),u={x:n,y:r},f=await M9(t,c),h=Qo(Xi(i)),g=y9(h);let x=u[g],v=u[h];if(o){const b=g==="y"?"top":"left",y=g==="y"?"bottom":"right",_=x+f[b],w=x-f[y];x=b2(_,x,w)}if(a){const b=h==="y"?"top":"left",y=h==="y"?"bottom":"right",_=v+f[b],w=v-f[y];v=b2(_,v,w)}const C=l.fn({...t,[g]:x,[h]:v});return{...C,data:{x:C.x-n,y:C.y-r,enabled:{[g]:o,[h]:a}}}}}};function j9(e){const t=On(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=rn(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=Ns(n)!==o||Ns(r)!==a;return l&&(n=o,r=a),{width:n,height:r,$:l}}function Ld(e){return yt(e)?e:e.contextElement}function To(e){const t=Ld(e);if(!rn(t))return _r(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=j9(t);let a=(o?Ns(n.width):n.width)/r,l=(o?Ns(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const RC=_r(0);function T9(e){const t=In(e);return!Sl()||!t.visualViewport?RC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function FC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==In(e)?!1:t}function Qi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Ld(e);let a=_r(1);t&&(r?yt(r)&&(a=To(r)):a=To(e));const l=FC(o,n,r)?T9(o):_r(0);let c=(i.left+l.x)/a.x,u=(i.top+l.y)/a.y,f=i.width/a.x,h=i.height/a.y;if(o){const g=In(o),x=r&&yt(r)?In(r):r;let v=g,C=v2(v);for(;C&&r&&x!==v;){const b=To(C),y=C.getBoundingClientRect(),_=On(C),w=y.left+(C.clientLeft+parseFloat(_.paddingLeft))*b.x,$=y.top+(C.clientTop+parseFloat(_.paddingTop))*b.y;c*=b.x,u*=b.y,f*=b.x,h*=b.y,c+=w,u+=$,v=In(C),C=v2(v)}}return Jo({width:f,height:h,x:c,y:u})}function Ed(e,t){const n=Il(e).scrollLeft;return t?t.left+n:Qi(jr(e)).left+n}function A9(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Ed(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function PC(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=jr(r),l=t?Ml(t.floating):!1;if(r===a||l&&o)return n;let c={scrollLeft:0,scrollTop:0},u=_r(1);const f=_r(0),h=rn(r);if((h||!h&&!o)&&((Li(r)!=="body"||u1(a))&&(c=Il(r)),rn(r))){const x=Qi(r);u=To(r),f.x=x.x+r.clientLeft,f.y=x.y+r.clientTop}const g=a&&!h&&!o?A9(a,c,!0):_r(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+f.x+g.x,y:n.y*u.y-c.scrollTop*u.y+f.y+g.y}}function BC(e){return Array.from(e.getClientRects())}function HC(e){const t=jr(e),n=Il(e),r=e.ownerDocument.body,i=Wi(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Wi(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Ed(e);const l=-n.scrollTop;return On(r).direction==="rtl"&&(a+=Wi(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:l}}function OC(e,t){const n=In(e),r=jr(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){o=i.width,a=i.height;const u=Sl();(!u||u&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:l,y:c}}function NC(e,t){const n=Qi(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=rn(e)?To(e):_r(1),a=e.clientWidth*o.x,l=e.clientHeight*o.y,c=i*o.x,u=r*o.y;return{width:a,height:l,x:c,y:u}}function v0(e,t,n){let r;if(t==="viewport")r=OC(e,n);else if(t==="document")r=HC(jr(e));else if(yt(t))r=NC(t,n);else{const i=T9(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Jo(r)}function R9(e,t){const n=ei(e);return n===t||!yt(n)||wi(n)?!1:On(n).position==="fixed"||R9(n,t)}function VC(e,t){const n=t.get(e);if(n)return n;let r=vi(e,[],!1).filter(l=>yt(l)&&Li(l)!=="body"),i=null;const o=On(e).position==="fixed";let a=o?ei(e):e;for(;yt(a)&&!wi(a);){const l=On(a),c=wd(a);!c&&l.position==="fixed"&&(i=null),(o?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||u1(a)&&!c&&R9(e,a))?r=r.filter(f=>f!==a):i=l,a=ei(a)}return t.set(e,r),r}function WC(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?Ml(t)?[]:VC(t,this._c):[].concat(n),r],l=a[0],c=a.reduce((u,f)=>{const h=v0(t,f,i);return u.top=Wi(h.top,u.top),u.right=Xo(h.right,u.right),u.bottom=Xo(h.bottom,u.bottom),u.left=Wi(h.left,u.left),u},v0(t,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function ZC(e){const{width:t,height:n}=j9(e);return{width:t,height:n}}function zC(e,t,n){const r=rn(t),i=jr(t),o=n==="fixed",a=Qi(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const c=_r(0);if(r||!r&&!o)if((Li(t)!=="body"||u1(i))&&(l=Il(t)),r){const g=Qi(t,!0,o,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else i&&(c.x=Ed(i));const u=i&&!r&&!o?A9(i,l):_r(0),f=a.left+l.scrollLeft-c.x-u.x,h=a.top+l.scrollTop-c.y-u.y;return{x:f,y:h,width:a.width,height:a.height}}function vc(e){return On(e).position==="static"}function C0(e,t){if(!rn(e)||On(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return jr(e)===n&&(n=n.ownerDocument.body),n}function F9(e,t){const n=In(e);if(Ml(e))return n;if(!rn(e)){let i=ei(e);for(;i&&!wi(i);){if(yt(i)&&!vc(i))return i;i=ei(i)}return n}let r=C0(e,t);for(;r&&qv(r)&&vc(r);)r=C0(r,t);return r&&wi(r)&&vc(r)&&!wd(r)?n:r||Kv(e)||n}const YC=async function(e){const t=this.getOffsetParent||F9,n=this.getDimensions,r=await n(e.floating);return{reference:zC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function GC(e){return On(e).direction==="rtl"}const UC={convertOffsetParentRelativeRectToViewportRelativeRect:PC,getDocumentElement:jr,getClippingRect:WC,getOffsetParent:F9,getElementRects:YC,getClientRects:BC,getDimensions:ZC,getScale:To,isElement:yt,isRTL:GC};function P9(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function XC(e,t){let n=null,r;const i=jr(e);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),o();const u=e.getBoundingClientRect(),{left:f,top:h,width:g,height:x}=u;if(l||t(),!g||!x)return;const v=V1(h),C=V1(i.clientWidth-(f+g)),b=V1(i.clientHeight-(h+x)),y=V1(f),w={rootMargin:-v+"px "+-C+"px "+-b+"px "+-y+"px",threshold:Wi(0,Xo(1,c))||1};let $=!0;function k(L){const M=L[0].intersectionRatio;if(M!==c){if(!$)return a();M?a(!1,M):r=setTimeout(()=>{a(!1,1e-7)},1e3)}M===1&&!P9(u,e.getBoundingClientRect())&&a(),$=!1}try{n=new IntersectionObserver(k,{...w,root:i.ownerDocument})}catch{n=new IntersectionObserver(k,w)}n.observe(e)}return a(!0),o}function Ji(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Ld(e),f=i||o?[...u?vi(u):[],...vi(t)]:[];f.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),o&&y.addEventListener("resize",n)});const h=u&&l?XC(u,n):null;let g=-1,x=null;a&&(x=new ResizeObserver(y=>{let[_]=y;_&&_.target===u&&x&&(x.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var w;(w=x)==null||w.observe(t)})),n()}),u&&!c&&x.observe(u),x.observe(t));let v,C=c?Qi(e):null;c&&b();function b(){const y=Qi(e);C&&!P9(C,y)&&n(),C=y,v=requestAnimationFrame(b)}return n(),()=>{var y;f.forEach(_=>{i&&_.removeEventListener("scroll",n),o&&_.removeEventListener("resize",n)}),h?.(),(y=x)==null||y.disconnect(),x=null,c&&cancelAnimationFrame(v)}}const QC=D9,JC=AC,qC=I9,b0=S9,KC=(e,t,n)=>{const r=new Map,i={platform:UC,...n},o={...i.platform,_c:r};return E9(e,t,{...i,platform:o})};var ms=typeof document<"u"?m.useLayoutEffect:m.useEffect;function Ys(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,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ys(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Ys(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function B9(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function y0(e,t){const n=B9(e);return Math.round(t*n)/n}function Cc(e){const t=d.useRef(e);return ms(()=>{t.current=e}),t}function eb(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[f,h]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,x]=d.useState(r);Ys(g,r)||x(r);const[v,C]=d.useState(null),[b,y]=d.useState(null),_=d.useCallback(B=>{B!==L.current&&(L.current=B,C(B))},[]),w=d.useCallback(B=>{B!==M.current&&(M.current=B,y(B))},[]),$=o||v,k=a||b,L=d.useRef(null),M=d.useRef(null),I=d.useRef(f),T=c!=null,P=Cc(c),z=Cc(i),N=Cc(u),V=d.useCallback(()=>{if(!L.current||!M.current)return;const B={placement:t,strategy:n,middleware:g};z.current&&(B.platform=z.current),KC(L.current,M.current,B).then(H=>{const O={...H,isPositioned:N.current!==!1};j.current&&!Ys(I.current,O)&&(I.current=O,q2.flushSync(()=>{h(O)}))})},[g,t,n,z,N]);ms(()=>{u===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,h(B=>({...B,isPositioned:!1})))},[u]);const j=d.useRef(!1);ms(()=>(j.current=!0,()=>{j.current=!1}),[]),ms(()=>{if($&&(L.current=$),k&&(M.current=k),$&&k){if(P.current)return P.current($,k,V);V()}},[$,k,V,P,T]);const R=d.useMemo(()=>({reference:L,floating:M,setReference:_,setFloating:w}),[_,w]),A=d.useMemo(()=>({reference:$,floating:k}),[$,k]),D=d.useMemo(()=>{const B={position:n,left:0,top:0};if(!A.floating)return B;const H=y0(A.floating,f.x),O=y0(A.floating,f.y);return l?{...B,transform:"translate("+H+"px, "+O+"px)",...B9(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:H,top:O}},[n,l,A.floating,f.x,f.y]);return d.useMemo(()=>({...f,update:V,refs:R,elements:A,floatingStyles:D}),[f,V,R,A,D])}const tb=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?b0({element:r.current,padding:i}).fn(n):{}:r?b0({element:r,padding:i}).fn(n):{}}}},h1=(e,t)=>({...QC(e),options:[e,t]}),m1=(e,t)=>({...JC(e),options:[e,t]}),g1=(e,t)=>({...qC(e),options:[e,t]}),Md=(e,t)=>({...tb(e),options:[e,t]});function Tr(e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})},e)}const H9={...d},nb=H9.useInsertionEffect,rb=nb||(e=>e());function nr(e){const t=d.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return rb(()=>{t.current=e}),d.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var pn=typeof document<"u"?m.useLayoutEffect:m.useEffect;function Za(){return Za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Za.apply(this,arguments)}let w0=!1,ib=0;const k0=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+ib++;function ob(){const[e,t]=d.useState(()=>w0?k0():void 0);return pn(()=>{e==null&&t(k0())},[]),d.useEffect(()=>{w0=!0},[]),e}const ab=H9.useId,qi=ab||ob;let za;process.env.NODE_ENV!=="production"&&(za=new Set);function sb(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=za)!=null&&e.has(i))){var o;(o=za)==null||o.add(i),console.warn(i)}}function lb(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=za)!=null&&e.has(i))){var o;(o=za)==null||o.add(i),console.error(i)}}const Sd=d.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:i},middlewareData:{arrow:o,shift:a}},width:l=14,height:c=7,tipRadius:u=0,strokeWidth:f=0,staticOffset:h,stroke:g,d:x,style:{transform:v,...C}={},...b}=t;process.env.NODE_ENV!=="production"&&(n||sb("The `ref` prop is required for `FloatingArrow`."));const y=qi(),[_,w]=d.useState(!1);if(pn(()=>{if(!i)return;On(i).direction==="rtl"&&w(!0)},[i]),!i)return null;const[$,k]=r.split("-"),L=$==="top"||$==="bottom";let M=h;(L&&a!=null&&a.x||!L&&a!=null&&a.y)&&(M=null);const I=f*2,T=I/2,P=l/2*(u/-8+1),z=c/2*u/4,N=!!x,V=M&&k==="end"?"bottom":"top";let j=M&&k==="end"?"right":"left";M&&_&&(j=k==="end"?"left":"right");const R=o?.x!=null?M||o.x:"",A=o?.y!=null?M||o.y:"",D=x||"M0,0"+(" H"+l)+(" L"+(l-P)+","+(c-z))+(" Q"+l/2+","+c+" "+P+","+(c-z))+" Z",B={top:N?"rotate(180deg)":"",left:N?"rotate(90deg)":"rotate(-90deg)",bottom:N?"":"rotate(180deg)",right:N?"rotate(-90deg)":"rotate(90deg)"}[$];return d.createElement("svg",Za({},b,{"aria-hidden":!0,ref:n,width:N?l:l+I,height:l,viewBox:"0 0 "+l+" "+(c>l?c:l),style:{position:"absolute",pointerEvents:"none",[j]:R,[V]:A,[$]:L||N?"100%":"calc(100% - "+I/2+"px)",transform:[B,v].filter(H=>!!H).join(" "),...C}}),I>0&&d.createElement("path",{clipPath:"url(#"+y+")",fill:"none",stroke:g,strokeWidth:I+(x?0:1),d:D}),d.createElement("path",{stroke:I&&!x?b.fill:"none",d:D}),d.createElement("clipPath",{id:y},d.createElement("rect",{x:-T,y:T*(N?-1:1),width:l+I,height:l})))});function cb(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const db=d.createContext(null),ub=d.createContext(null),Id=()=>{var e;return((e=d.useContext(db))==null?void 0:e.id)||null},jl=()=>d.useContext(ub);function Ki(e){return"data-floating-ui-"+e}function wr(e){const t=m.useRef(e);return pn(()=>{t.current=e}),t}const _0=Ki("safe-polygon");function bc(e,t,n){return n&&!Wa(n)?0:typeof e=="number"?e:e?.[t]}function Dd(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:o,elements:a}=e,{enabled:l=!0,delay:c=0,handleClose:u=null,mouseOnly:f=!1,restMs:h=0,move:g=!0}=t,x=jl(),v=Id(),C=wr(u),b=wr(c),y=wr(n),_=d.useRef(),w=d.useRef(-1),$=d.useRef(),k=d.useRef(-1),L=d.useRef(!0),M=d.useRef(!1),I=d.useRef(()=>{}),T=d.useRef(!1),P=d.useCallback(()=>{var D;const B=(D=i.current.openEvent)==null?void 0:D.type;return B?.includes("mouse")&&B!=="mousedown"},[i]);d.useEffect(()=>{if(!l)return;function D(B){let{open:H}=B;H||(clearTimeout(w.current),clearTimeout(k.current),L.current=!0,T.current=!1)}return o.on("openchange",D),()=>{o.off("openchange",D)}},[l,o]),d.useEffect(()=>{if(!l||!C.current||!n)return;function D(H){P()&&r(!1,H,"hover")}const B=vn(a.floating).documentElement;return B.addEventListener("mouseleave",D),()=>{B.removeEventListener("mouseleave",D)}},[a.floating,n,r,l,C,P]);const z=d.useCallback(function(D,B,H){B===void 0&&(B=!0),H===void 0&&(H="hover");const O=bc(b.current,"close",_.current);O&&!$.current?(clearTimeout(w.current),w.current=window.setTimeout(()=>r(!1,D,H),O)):B&&(clearTimeout(w.current),r(!1,D,H))},[b,r]),N=nr(()=>{I.current(),$.current=void 0}),V=nr(()=>{if(M.current){const D=vn(a.floating).body;D.style.pointerEvents="",D.removeAttribute(_0),M.current=!1}}),j=nr(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);d.useEffect(()=>{if(!l)return;function D(W){if(clearTimeout(w.current),L.current=!1,f&&!Wa(_.current)||h>0&&!bc(b.current,"open"))return;const Q=bc(b.current,"open",_.current);Q?w.current=window.setTimeout(()=>{y.current||r(!0,W,"hover")},Q):n||r(!0,W,"hover")}function B(W){if(j())return;I.current();const Q=vn(a.floating);if(clearTimeout(k.current),T.current=!1,C.current&&i.current.floatingContext){n||clearTimeout(w.current),$.current=C.current({...i.current.floatingContext,tree:x,x:W.clientX,y:W.clientY,onClose(){V(),N(),j()||z(W,!0,"safe-polygon")}});const G=$.current;Q.addEventListener("mousemove",G),I.current=()=>{Q.removeEventListener("mousemove",G)};return}(_.current==="touch"?!nn(a.floating,W.relatedTarget):!0)&&z(W)}function H(W){j()||i.current.floatingContext&&(C.current==null||C.current({...i.current.floatingContext,tree:x,x:W.clientX,y:W.clientY,onClose(){V(),N(),j()||z(W)}})(W))}if(yt(a.domReference)){var O;const W=a.domReference;return n&&W.addEventListener("mouseleave",H),(O=a.floating)==null||O.addEventListener("mouseleave",H),g&&W.addEventListener("mousemove",D,{once:!0}),W.addEventListener("mouseenter",D),W.addEventListener("mouseleave",B),()=>{var Q;n&&W.removeEventListener("mouseleave",H),(Q=a.floating)==null||Q.removeEventListener("mouseleave",H),g&&W.removeEventListener("mousemove",D),W.removeEventListener("mouseenter",D),W.removeEventListener("mouseleave",B)}}},[a,l,e,f,h,g,z,N,V,r,n,y,x,b,C,i,j]),pn(()=>{var D;if(l&&n&&(D=C.current)!=null&&D.__options.blockPointerEvents&&P()){M.current=!0;const H=a.floating;if(yt(a.domReference)&&H){var B;const O=vn(a.floating).body;O.setAttribute(_0,"");const W=a.domReference,Q=x==null||(B=x.nodesRef.current.find(pe=>pe.id===v))==null||(B=B.context)==null?void 0:B.elements.floating;return Q&&(Q.style.pointerEvents=""),O.style.pointerEvents="none",W.style.pointerEvents="auto",H.style.pointerEvents="auto",()=>{O.style.pointerEvents="",W.style.pointerEvents="",H.style.pointerEvents=""}}}},[l,n,v,a,x,C,P]),pn(()=>{n||(_.current=void 0,T.current=!1,N(),V())},[n,N,V]),d.useEffect(()=>()=>{N(),clearTimeout(w.current),clearTimeout(k.current),V()},[l,a.domReference,N,V]);const R=d.useMemo(()=>{function D(B){_.current=B.pointerType}return{onPointerDown:D,onPointerEnter:D,onMouseMove(B){const{nativeEvent:H}=B;function O(){!L.current&&!y.current&&r(!0,H,"hover")}f&&!Wa(_.current)||n||h===0||T.current&&B.movementX**2+B.movementY**2<2||(clearTimeout(k.current),_.current==="touch"?O():(T.current=!0,k.current=window.setTimeout(O,h)))}}},[f,r,n,y,h]),A=d.useMemo(()=>({onMouseEnter(){clearTimeout(w.current)},onMouseLeave(D){j()||z(D.nativeEvent,!1)}}),[z,j]);return d.useMemo(()=>l?{reference:R,floating:A}:{},[l,R,A])}let $0=0;function vo(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame($0);const o=()=>e?.focus({preventScroll:n});i?o():$0=requestAnimationFrame(o)}function pb(e,t){var n;let r=[],i=(n=e.find(o=>o.id===t))==null?void 0:n.parentId;for(;i;){const o=e.find(a=>a.id===i);i=o?.parentId,o&&(r=r.concat(o))}return r}function Ao(e,t){let n=e.filter(i=>{var o;return i.parentId===t&&((o=i.context)==null?void 0:o.open)}),r=n;for(;r.length;)r=e.filter(i=>{var o;return(o=r)==null?void 0:o.some(a=>{var l;return i.parentId===a.id&&((l=i.context)==null?void 0:l.open)})}),n=n.concat(r);return n}let Co=new WeakMap,W1=new WeakSet,Z1={},yc=0;const fb=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,O9=e=>e&&(e.host||O9(e.parentNode)),hb=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=O9(n);return e.contains(r)?r:null}).filter(n=>n!=null);function mb(e,t,n,r){const i="data-floating-ui-inert",o=r?"inert":n?"aria-hidden":null,a=hb(t,e),l=new Set,c=new Set(a),u=[];Z1[i]||(Z1[i]=new WeakMap);const f=Z1[i];a.forEach(h),g(t),l.clear();function h(x){!x||l.has(x)||(l.add(x),x.parentNode&&h(x.parentNode))}function g(x){!x||c.has(x)||[].forEach.call(x.children,v=>{if(Li(v)!=="script")if(l.has(v))g(v);else{const C=o?v.getAttribute(o):null,b=C!==null&&C!=="false",y=(Co.get(v)||0)+1,_=(f.get(v)||0)+1;Co.set(v,y),f.set(v,_),u.push(v),y===1&&b&&W1.add(v),_===1&&v.setAttribute(i,""),!b&&o&&v.setAttribute(o,"true")}})}return yc++,()=>{u.forEach(x=>{const v=(Co.get(x)||0)-1,C=(f.get(x)||0)-1;Co.set(x,v),f.set(x,C),v||(!W1.has(x)&&o&&x.removeAttribute(o),W1.delete(x)),C||x.removeAttribute(i)}),yc--,yc||(Co=new WeakMap,Co=new WeakMap,W1=new WeakSet,Z1={})}}function L0(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=vn(e[0]).body;return mb(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const Ya=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function N9(e,t){const n=Dl(e,Ya());t==="prev"&&n.reverse();const r=n.indexOf(Nr(vn(e)));return n.slice(r+1)[0]}function V9(){return N9(document.body,"next")}function W9(){return N9(document.body,"prev")}function Ta(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!nn(n,r)}function gb(e){Dl(e,Ya()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function E0(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const Tl={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let xb;function M0(e){e.key==="Tab"&&(e.target,clearTimeout(xb))}const Gs=d.forwardRef(function(t,n){const[r,i]=d.useState();pn(()=>(b9()&&i("button"),document.addEventListener("keydown",M0),()=>{document.removeEventListener("keydown",M0)}),[]);const o={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[Ki("focus-guard")]:"",style:Tl};return d.createElement("span",Za({},t,o))}),Z9=d.createContext(null),S0=Ki("portal");function vb(e){e===void 0&&(e={});const{id:t,root:n}=e,r=qi(),i=z9(),[o,a]=d.useState(null),l=d.useRef(null);return pn(()=>()=>{o?.remove(),queueMicrotask(()=>{l.current=null})},[o]),pn(()=>{if(!r||l.current)return;const c=t?document.getElementById(t):null;if(!c)return;const u=document.createElement("div");u.id=r,u.setAttribute(S0,""),c.appendChild(u),l.current=u,a(u)},[t,r]),pn(()=>{if(n===null||!r||l.current)return;let c=n||i?.portalNode;c&&!yt(c)&&(c=c.current),c=c||document.body;let u=null;t&&(u=document.createElement("div"),u.id=t,c.appendChild(u));const f=document.createElement("div");f.id=r,f.setAttribute(S0,""),c=u||c,c.appendChild(f),l.current=f,a(f)},[t,n,r,i]),o}function x1(e){const{children:t,id:n,root:r,preserveTabOrder:i=!0}=e,o=vb({id:n,root:r}),[a,l]=d.useState(null),c=d.useRef(null),u=d.useRef(null),f=d.useRef(null),h=d.useRef(null),g=a?.modal,x=a?.open,v=!!a&&!a.modal&&a.open&&i&&!!(r||o);return d.useEffect(()=>{if(!o||!i||g)return;function C(b){o&&Ta(b)&&(b.type==="focusin"?E0:gb)(o)}return o.addEventListener("focusin",C,!0),o.addEventListener("focusout",C,!0),()=>{o.removeEventListener("focusin",C,!0),o.removeEventListener("focusout",C,!0)}},[o,i,g]),d.useEffect(()=>{o&&(x||E0(o))},[x,o]),d.createElement(Z9.Provider,{value:d.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:f,afterInsideRef:h,portalNode:o,setFocusManagerState:l}),[i,o])},v&&o&&d.createElement(Gs,{"data-type":"outside",ref:c,onFocus:C=>{if(Ta(C,o)){var b;(b=f.current)==null||b.focus()}else{const y=W9()||a?.refs.domReference.current;y?.focus()}}}),v&&o&&d.createElement("span",{"aria-owns":o.id,style:Tl}),o&&q2.createPortal(t,o),v&&o&&d.createElement(Gs,{"data-type":"outside",ref:u,onFocus:C=>{if(Ta(C,o)){var b;(b=h.current)==null||b.focus()}else{const y=V9()||a?.refs.domReference.current;y?.focus(),a?.closeOnFocusOut&&a?.onOpenChange(!1,C.nativeEvent,"focus-out")}}}))}const z9=()=>d.useContext(Z9),k2="data-floating-ui-focusable";function Cb(e){return e?e.hasAttribute(k2)?e:e.querySelector("["+k2+"]")||e:null}const bb=20;let Bi=[];function wc(e){Bi=Bi.filter(n=>n.isConnected);let t=e;if(!(!t||Li(t)==="body")){if(!jC(t,Ya())){const n=Dl(t,Ya())[0];n&&(t=n)}Bi.push(t),Bi.length>bb&&(Bi=Bi.slice(-20))}}function I0(){return Bi.slice().reverse().find(e=>e.isConnected)}const yb=d.forwardRef(function(t,n){return d.createElement("button",Za({},t,{type:"button",ref:n,tabIndex:-1,style:Tl}))});function jd(e){const{context:t,children:n,disabled:r=!1,order:i=["content"],guards:o=!0,initialFocus:a=0,returnFocus:l=!0,restoreFocus:c=!1,modal:u=!0,visuallyHiddenDismiss:f=!1,closeOnFocusOut:h=!0}=e,{open:g,refs:x,nodeId:v,onOpenChange:C,events:b,dataRef:y,floatingId:_,elements:{domReference:w,floating:$}}=t,k=typeof a=="number"&&a<0,L=aC(w)&&k,M=fb()?o:!0,I=wr(i),T=wr(a),P=wr(l),z=jl(),N=z9(),V=d.useRef(null),j=d.useRef(null),R=d.useRef(!1),A=d.useRef(!1),D=d.useRef(-1),B=N!=null,H=Cb($),O=nr(function(G){return G===void 0&&(G=H),G?Dl(G,Ya()):[]}),W=nr(G=>{const S=O(G);return I.current.map(q=>w&&q==="reference"?w:H&&q==="floating"?H:S).filter(Boolean).flat()});d.useEffect(()=>{if(r||!u)return;function G(q){if(q.key==="Tab"){nn(H,Nr(vn(H)))&&O().length===0&&!L&&xc(q);const ie=W(),ee=Zr(q);I.current[0]==="reference"&&ee===w&&(xc(q),q.shiftKey?vo(ie[ie.length-1]):vo(ie[1])),I.current[1]==="floating"&&ee===H&&q.shiftKey&&(xc(q),vo(ie[0]))}}const S=vn(H);return S.addEventListener("keydown",G),()=>{S.removeEventListener("keydown",G)}},[r,w,H,u,I,L,O,W]),d.useEffect(()=>{if(r||!$)return;function G(S){const q=Zr(S),ee=O().indexOf(q);ee!==-1&&(D.current=ee)}return $.addEventListener("focusin",G),()=>{$.removeEventListener("focusin",G)}},[r,$,O]),d.useEffect(()=>{if(r||!h)return;function G(){A.current=!0,setTimeout(()=>{A.current=!1})}function S(q){const ie=q.relatedTarget;queueMicrotask(()=>{const ee=!(nn(w,ie)||nn($,ie)||nn(ie,$)||nn(N?.portalNode,ie)||ie!=null&&ie.hasAttribute(Ki("focus-guard"))||z&&(Ao(z.nodesRef.current,v).find(he=>{var ve,Se;return nn((ve=he.context)==null?void 0:ve.elements.floating,ie)||nn((Se=he.context)==null?void 0:Se.elements.domReference,ie)})||pb(z.nodesRef.current,v).find(he=>{var ve,Se;return((ve=he.context)==null?void 0:ve.elements.floating)===ie||((Se=he.context)==null?void 0:Se.elements.domReference)===ie})));if(c&&ee&&Nr(vn(H))===vn(H).body){rn(H)&&H.focus();const he=D.current,ve=O(),Se=ve[he]||ve[ve.length-1]||H;rn(Se)&&Se.focus()}(L||!u)&&ie&&ee&&!A.current&&ie!==I0()&&(R.current=!0,C(!1,q,"focus-out"))})}if($&&rn(w))return w.addEventListener("focusout",S),w.addEventListener("pointerdown",G),$.addEventListener("focusout",S),()=>{w.removeEventListener("focusout",S),w.removeEventListener("pointerdown",G),$.removeEventListener("focusout",S)}},[r,w,$,H,u,v,z,N,C,h,c,O,L]),d.useEffect(()=>{var G;if(r)return;const S=Array.from((N==null||(G=N.portalNode)==null?void 0:G.querySelectorAll("["+Ki("portal")+"]"))||[]);if($){const q=[$,...S,V.current,j.current,I.current.includes("reference")||L?w:null].filter(ee=>ee!=null),ie=u||L?L0(q,M,!M):L0(q);return()=>{ie()}}},[r,w,$,u,I,N,L,M]),pn(()=>{if(r||!rn(H))return;const G=vn(H),S=Nr(G);queueMicrotask(()=>{const q=W(H),ie=T.current,ee=(typeof ie=="number"?q[ie]:ie.current)||H,he=nn(H,S);!k&&!he&&g&&vo(ee,{preventScroll:ee===H})})},[r,g,H,k,W,T]),pn(()=>{if(r||!H)return;let G=!1;const S=vn(H),q=Nr(S);let ee=y.current.openEvent;wc(q);function he(se){let{open:We,reason:He,event:Y,nested:re}=se;We&&(ee=Y),He==="escape-key"&&x.domReference.current&&wc(x.domReference.current),He==="hover"&&Y.type==="mouseleave"&&(R.current=!0),He==="outside-press"&&(re?(R.current=!1,G=!0):R.current=!(eC(Y)||C9(Y)))}b.on("openchange",he);const ve=S.createElement("span");ve.setAttribute("tabindex","-1"),ve.setAttribute("aria-hidden","true"),Object.assign(ve.style,Tl),B&&w&&w.insertAdjacentElement("afterend",ve);function Se(){return typeof P.current=="boolean"?I0()||ve:P.current.current||ve}return()=>{b.off("openchange",he);const se=Nr(S),We=nn($,se)||z&&Ao(z.nodesRef.current,v).some(re=>{var J;return nn((J=re.context)==null?void 0:J.elements.floating,se)});(We||ee&&["click","mousedown"].includes(ee.type))&&x.domReference.current&&wc(x.domReference.current);const Y=Se();queueMicrotask(()=>{P.current&&!R.current&&rn(Y)&&(!(Y!==se&&se!==S.body)||We)&&Y.focus({preventScroll:G}),ve.remove()})}},[r,$,H,P,y,x,b,z,v,B,w]),d.useEffect(()=>{queueMicrotask(()=>{R.current=!1})},[r]),pn(()=>{if(!r&&N)return N.setFocusManagerState({modal:u,closeOnFocusOut:h,open:g,onOpenChange:C,refs:x}),()=>{N.setFocusManagerState(null)}},[r,N,u,g,C,x,h]),pn(()=>{if(r||!H||typeof MutationObserver!="function"||k)return;const G=()=>{const q=H.getAttribute("tabindex"),ie=O(),ee=Nr(vn($)),he=ie.indexOf(ee);he!==-1&&(D.current=he),I.current.includes("floating")||ee!==x.domReference.current&&ie.length===0?q!=="0"&&H.setAttribute("tabindex","0"):q!=="-1"&&H.setAttribute("tabindex","-1")};G();const S=new MutationObserver(G);return S.observe(H,{childList:!0,subtree:!0,attributes:!0}),()=>{S.disconnect()}},[r,$,H,x,I,O,k]);function Q(G){return r||!f||!u?null:d.createElement(yb,{ref:G==="start"?V:j,onClick:S=>C(!1,S.nativeEvent)},typeof f=="string"?f:"Dismiss")}const pe=!r&&M&&(u?!L:!0)&&(B||u);return d.createElement(d.Fragment,null,pe&&d.createElement(Gs,{"data-type":"inside",ref:N?.beforeInsideRef,onFocus:G=>{if(u){const q=W();vo(i[0]==="reference"?q[0]:q[q.length-1])}else if(N!=null&&N.preserveTabOrder&&N.portalNode)if(R.current=!1,Ta(G,N.portalNode)){const q=V9()||w;q?.focus()}else{var S;(S=N.beforeOutsideRef.current)==null||S.focus()}}}),!L&&Q("start"),n,Q("end"),pe&&d.createElement(Gs,{"data-type":"inside",ref:N?.afterInsideRef,onFocus:G=>{if(u)vo(W()[0]);else if(N!=null&&N.preserveTabOrder&&N.portalNode)if(h&&(R.current=!0),Ta(G,N.portalNode)){const q=W9()||w;q?.focus()}else{var S;(S=N.afterOutsideRef.current)==null||S.focus()}}}))}function D0(e){return rn(e.target)&&e.target.tagName==="BUTTON"}function j0(e){return kd(e)}function v1(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:o}}=e,{enabled:a=!0,event:l="click",toggle:c=!0,ignoreMouse:u=!1,keyboardHandlers:f=!0,stickIfOpen:h=!0}=t,g=d.useRef(),x=d.useRef(!1),v=d.useMemo(()=>({onPointerDown(C){g.current=C.pointerType},onMouseDown(C){const b=g.current;C.button===0&&l!=="click"&&(Wa(b,!0)&&u||(n&&c&&(!(i.current.openEvent&&h)||i.current.openEvent.type==="mousedown")?r(!1,C.nativeEvent,"click"):(C.preventDefault(),r(!0,C.nativeEvent,"click"))))},onClick(C){const b=g.current;if(l==="mousedown"&&g.current){g.current=void 0;return}Wa(b,!0)&&u||(n&&c&&(!(i.current.openEvent&&h)||i.current.openEvent.type==="click")?r(!1,C.nativeEvent,"click"):r(!0,C.nativeEvent,"click"))},onKeyDown(C){g.current=void 0,!(C.defaultPrevented||!f||D0(C))&&(C.key===" "&&!j0(o)&&(C.preventDefault(),x.current=!0),C.key==="Enter"&&r(!(n&&c),C.nativeEvent,"click"))},onKeyUp(C){C.defaultPrevented||!f||D0(C)||j0(o)||C.key===" "&&x.current&&(x.current=!1,r(!(n&&c),C.nativeEvent,"click"))}}),[i,o,l,u,f,r,n,h,c]);return d.useMemo(()=>a?{reference:v}:{},[a,v])}const wb={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},kb={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},T0=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e?.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e?.outsidePress)!=null?n:!0}};function C1(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:o}=e,{enabled:a=!0,escapeKey:l=!0,outsidePress:c=!0,outsidePressEvent:u="pointerdown",referencePress:f=!1,referencePressEvent:h="pointerdown",ancestorScroll:g=!1,bubbles:x,capture:v}=t,C=jl(),b=nr(typeof c=="function"?c:()=>!1),y=typeof c=="function"?b:c,_=d.useRef(!1),w=d.useRef(!1),{escapeKey:$,outsidePress:k}=T0(x),{escapeKey:L,outsidePress:M}=T0(v),I=d.useRef(!1),T=nr(R=>{var A;if(!n||!a||!l||R.key!=="Escape"||I.current)return;const D=(A=o.current.floatingContext)==null?void 0:A.nodeId,B=C?Ao(C.nodesRef.current,D):[];if(!$&&(R.stopPropagation(),B.length>0)){let H=!0;if(B.forEach(O=>{var W;if((W=O.context)!=null&&W.open&&!O.context.dataRef.current.__escapeKeyBubbles){H=!1;return}}),!H)return}r(!1,rC(R)?R.nativeEvent:R,"escape-key")}),P=nr(R=>{var A;const D=()=>{var B;T(R),(B=Zr(R))==null||B.removeEventListener("keydown",D)};(A=Zr(R))==null||A.addEventListener("keydown",D)}),z=nr(R=>{var A;const D=_.current;_.current=!1;const B=w.current;if(w.current=!1,u==="click"&&B||D||typeof y=="function"&&!y(R))return;const H=Zr(R),O="["+Ki("inert")+"]",W=vn(i.floating).querySelectorAll(O);let Q=yt(H)?H:null;for(;Q&&!wi(Q);){const q=ei(Q);if(wi(q)||!yt(q))break;Q=q}if(W.length&&yt(H)&&!iC(H)&&!nn(H,i.floating)&&Array.from(W).every(q=>!nn(Q,q)))return;if(rn(H)&&j){const q=H.clientWidth>0&&H.scrollWidth>H.clientWidth,ie=H.clientHeight>0&&H.scrollHeight>H.clientHeight;let ee=ie&&R.offsetX>H.clientWidth;if(ie&&On(H).direction==="rtl"&&(ee=R.offsetX<=H.offsetWidth-H.clientWidth),ee||q&&R.offsetY>H.clientHeight)return}const pe=(A=o.current.floatingContext)==null?void 0:A.nodeId,G=C&&Ao(C.nodesRef.current,pe).some(q=>{var ie;return gc(R,(ie=q.context)==null?void 0:ie.elements.floating)});if(gc(R,i.floating)||gc(R,i.domReference)||G)return;const S=C?Ao(C.nodesRef.current,pe):[];if(S.length>0){let q=!0;if(S.forEach(ie=>{var ee;if((ee=ie.context)!=null&&ee.open&&!ie.context.dataRef.current.__outsidePressBubbles){q=!1;return}}),!q)return}r(!1,R,"outside-press")}),N=nr(R=>{var A;const D=()=>{var B;z(R),(B=Zr(R))==null||B.removeEventListener(u,D)};(A=Zr(R))==null||A.addEventListener(u,D)});d.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=$,o.current.__outsidePressBubbles=k;let R=-1;function A(W){r(!1,W,"ancestor-scroll")}function D(){window.clearTimeout(R),I.current=!0}function B(){R=window.setTimeout(()=>{I.current=!1},Sl()?5:0)}const H=vn(i.floating);l&&(H.addEventListener("keydown",L?P:T,L),H.addEventListener("compositionstart",D),H.addEventListener("compositionend",B)),y&&H.addEventListener(u,M?N:z,M);let O=[];return g&&(yt(i.domReference)&&(O=vi(i.domReference)),yt(i.floating)&&(O=O.concat(vi(i.floating))),!yt(i.reference)&&i.reference&&i.reference.contextElement&&(O=O.concat(vi(i.reference.contextElement)))),O=O.filter(W=>{var Q;return W!==((Q=H.defaultView)==null?void 0:Q.visualViewport)}),O.forEach(W=>{W.addEventListener("scroll",A,{passive:!0})}),()=>{l&&(H.removeEventListener("keydown",L?P:T,L),H.removeEventListener("compositionstart",D),H.removeEventListener("compositionend",B)),y&&H.removeEventListener(u,M?N:z,M),O.forEach(W=>{W.removeEventListener("scroll",A)}),window.clearTimeout(R)}},[o,i,l,y,u,n,r,g,a,$,k,T,L,P,z,M,N]),d.useEffect(()=>{_.current=!1},[y,u]);const V=d.useMemo(()=>({onKeyDown:T,[wb[h]]:R=>{f&&r(!1,R.nativeEvent,"reference-press")}}),[T,r,f,h]),j=d.useMemo(()=>({onKeyDown:T,onMouseDown(){w.current=!0},onMouseUp(){w.current=!0},[kb[u]]:()=>{_.current=!0}}),[T,u]);return d.useMemo(()=>a?{reference:V,floating:j}:{},[a,V,j])}function _b(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=qi(),o=d.useRef({}),[a]=d.useState(()=>cb()),l=Id()!=null;if(process.env.NODE_ENV!=="production"){const x=r.reference;x&&!yt(x)&&lb("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,u]=d.useState(r.reference),f=nr((x,v,C)=>{o.current.openEvent=x?v:void 0,a.emit("openchange",{open:x,event:v,reason:C,nested:l}),n?.(x,v,C)}),h=d.useMemo(()=>({setPositionReference:u}),[]),g=d.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return d.useMemo(()=>({dataRef:o,open:t,onOpenChange:f,elements:g,events:a,floatingId:i,refs:h}),[t,f,g,a,i,h])}function b1(e){e===void 0&&(e={});const{nodeId:t}=e,n=_b({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=d.useState(null),[l,c]=d.useState(null),f=i?.domReference||o,h=d.useRef(null),g=jl();pn(()=>{f&&(h.current=f)},[f]);const x=eb({...e,elements:{...i,...l&&{reference:l}}}),v=d.useCallback(w=>{const $=yt(w)?{getBoundingClientRect:()=>w.getBoundingClientRect(),contextElement:w}:w;c($),x.refs.setReference($)},[x.refs]),C=d.useCallback(w=>{(yt(w)||w===null)&&(h.current=w,a(w)),(yt(x.refs.reference.current)||x.refs.reference.current===null||w!==null&&!yt(w))&&x.refs.setReference(w)},[x.refs]),b=d.useMemo(()=>({...x.refs,setReference:C,setPositionReference:v,domReference:h}),[x.refs,C,v]),y=d.useMemo(()=>({...x.elements,domReference:f}),[x.elements,f]),_=d.useMemo(()=>({...x,...r,refs:b,elements:y,nodeId:t}),[x,b,y,t,r]);return pn(()=>{r.dataRef.current.floatingContext=_;const w=g?.nodesRef.current.find($=>$.id===t);w&&(w.context=_)}),d.useMemo(()=>({...x,context:_,refs:b,elements:y}),[x,b,y,_])}function $b(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:o,elements:a}=e,{enabled:l=!0,visibleOnly:c=!0}=t,u=d.useRef(!1),f=d.useRef(),h=d.useRef(!0);d.useEffect(()=>{if(!l)return;const x=In(a.domReference);function v(){!n&&rn(a.domReference)&&a.domReference===Nr(vn(a.domReference))&&(u.current=!0)}function C(){h.current=!0}return x.addEventListener("blur",v),x.addEventListener("keydown",C,!0),()=>{x.removeEventListener("blur",v),x.removeEventListener("keydown",C,!0)}},[a.domReference,n,l]),d.useEffect(()=>{if(!l)return;function x(v){let{reason:C}=v;(C==="reference-press"||C==="escape-key")&&(u.current=!0)}return i.on("openchange",x),()=>{i.off("openchange",x)}},[i,l]),d.useEffect(()=>()=>{clearTimeout(f.current)},[]);const g=d.useMemo(()=>({onPointerDown(x){C9(x.nativeEvent)||(h.current=!1)},onMouseLeave(){u.current=!1},onFocus(x){if(u.current)return;const v=Zr(x.nativeEvent);if(c&&yt(v))try{if(b9()&&tC())throw Error();if(!v.matches(":focus-visible"))return}catch{if(!h.current&&!kd(v))return}r(!0,x.nativeEvent,"focus")},onBlur(x){u.current=!1;const v=x.relatedTarget,C=x.nativeEvent,b=yt(v)&&v.hasAttribute(Ki("focus-guard"))&&v.getAttribute("data-type")==="outside";f.current=window.setTimeout(()=>{var y;const _=Nr(a.domReference?a.domReference.ownerDocument:document);!v&&_===a.domReference||nn((y=o.current.floatingContext)==null?void 0:y.refs.floating.current,_)||nn(a.domReference,_)||b||r(!1,C,"focus")})}}),[o,a.domReference,r,c]);return d.useMemo(()=>l?{reference:g}:{},[l,g])}const A0="active",R0="selected";function kc(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[A0]:a,[R0]:l,...c}=e;o=c}return{...n==="floating"&&{tabIndex:-1,[k2]:""},...o,...t.map(a=>{const l=a?a[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((a,l)=>(l&&Object.entries(l).forEach(c=>{let[u,f]=c;if(!(i&&[A0,R0].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof f=="function"){var h;(h=r.get(u))==null||h.push(f),a[u]=function(){for(var g,x=arguments.length,v=new Array(x),C=0;C<x;C++)v[C]=arguments[C];return(g=r.get(u))==null?void 0:g.map(b=>b(...v)).find(b=>b!==void 0)}}}else a[u]=f}),a),{})}}function y1(e){e===void 0&&(e=[]);const t=e.map(l=>l?.reference),n=e.map(l=>l?.floating),r=e.map(l=>l?.item),i=d.useCallback(l=>kc(l,e,"reference"),t),o=d.useCallback(l=>kc(l,e,"floating"),n),a=d.useCallback(l=>kc(l,e,"item"),r);return d.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}const Lb=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function w1(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:a="dialog"}=t,l=(n=Lb.get(a))!=null?n:a,c=qi(),f=Id()!=null,h=d.useMemo(()=>l==="tooltip"||a==="label"?{["aria-"+(a==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":l==="alertdialog"?"dialog":l,"aria-controls":r?i:void 0,...l==="listbox"&&{role:"combobox"},...l==="menu"&&{id:c},...l==="menu"&&f&&{role:"menuitem"},...a==="select"&&{"aria-autocomplete":"none"},...a==="combobox"&&{"aria-autocomplete":"list"}},[l,i,f,r,c,a]),g=d.useMemo(()=>{const v={id:i,...l&&{role:l}};return l==="tooltip"||a==="label"?v:{...v,...l==="menu"&&{"aria-labelledby":c}}},[l,i,c,a]),x=d.useCallback(v=>{let{active:C,selected:b}=v;const y={role:"option",...C&&{id:i+"-option"}};switch(a){case"select":return{...y,"aria-selected":C&&b};case"combobox":return{...y,...C&&{"aria-selected":!0}}}return{}},[i,a]);return d.useMemo(()=>o?{reference:h,floating:g,item:x}:{},[o,h,g,x])}const F0=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function bo(e,t){return typeof e=="function"?e(t):e}function Eb(e,t){const[n,r]=d.useState(e);return e&&!n&&r(!0),d.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function Mb(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,a=(typeof i=="number"?i:i.close)||0,[l,c]=d.useState("unmounted"),u=Eb(n,a);return!u&&l==="close"&&c("unmounted"),pn(()=>{if(r){if(n){c("initial");const f=requestAnimationFrame(()=>{c("open")});return()=>{cancelAnimationFrame(f)}}c("close")}},[n,r]),{isMounted:u,status:l}}function k1(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:i,common:o,duration:a=250}=t,l=e.placement,c=l.split("-")[0],u=d.useMemo(()=>({side:c,placement:l}),[c,l]),f=typeof a=="number",h=(f?a:a.open)||0,g=(f?a:a.close)||0,[x,v]=d.useState(()=>({...bo(o,u),...bo(n,u)})),{isMounted:C,status:b}=Mb(e,{duration:a}),y=wr(n),_=wr(r),w=wr(i),$=wr(o);return pn(()=>{const k=bo(y.current,u),L=bo(w.current,u),M=bo($.current,u),I=bo(_.current,u)||Object.keys(k).reduce((T,P)=>(T[P]="",T),{});if(b==="initial"&&v(T=>({transitionProperty:T.transitionProperty,...M,...k})),b==="open"&&v({transitionProperty:Object.keys(I).map(F0).join(","),transitionDuration:h+"ms",...M,...I}),b==="close"){const T=L||k;v({transitionProperty:Object.keys(T).map(F0).join(","),transitionDuration:g+"ms",...M,...T})}},[g,w,y,_,$,h,b,u]),{isMounted:C,styles:x}}function P0(e,t){const[n,r]=e;let i=!1;const o=t.length;for(let a=0,l=o-1;a<o;l=a++){const[c,u]=t[a]||[0,0],[f,h]=t[l]||[0,0];u>=r!=h>=r&&n<=(f-c)*(r-u)/(h-u)+c&&(i=!i)}return i}function Sb(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Ib(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let i,o=!1,a=null,l=null,c=performance.now();function u(h,g){const x=performance.now(),v=x-c;if(a===null||l===null||v===0)return a=h,l=g,c=x,null;const C=h-a,b=g-l,_=Math.sqrt(C*C+b*b)/v;return a=h,l=g,c=x,_}const f=h=>{let{x:g,y:x,placement:v,elements:C,onClose:b,nodeId:y,tree:_}=h;return function($){function k(){clearTimeout(i),b()}if(clearTimeout(i),!C.domReference||!C.floating||v==null||g==null||x==null)return;const{clientX:L,clientY:M}=$,I=[L,M],T=Zr($),P=$.type==="mouseleave",z=nn(C.floating,T),N=nn(C.domReference,T),V=C.domReference.getBoundingClientRect(),j=C.floating.getBoundingClientRect(),R=v.split("-")[0],A=g>j.right-j.width/2,D=x>j.bottom-j.height/2,B=Sb(I,V),H=j.width>V.width,O=j.height>V.height,W=(H?V:j).left,Q=(H?V:j).right,pe=(O?V:j).top,G=(O?V:j).bottom;if(z&&(o=!0,!P))return;if(N&&(o=!1),N&&!P){o=!0;return}if(P&&yt($.relatedTarget)&&nn(C.floating,$.relatedTarget)||_&&Ao(_.nodesRef.current,y).some(ie=>{let{context:ee}=ie;return ee?.open}))return;if(R==="top"&&x>=V.bottom-1||R==="bottom"&&x<=V.top+1||R==="left"&&g>=V.right-1||R==="right"&&g<=V.left+1)return k();let S=[];switch(R){case"top":S=[[W,V.top+1],[W,j.bottom-1],[Q,j.bottom-1],[Q,V.top+1]];break;case"bottom":S=[[W,j.top+1],[W,V.bottom-1],[Q,V.bottom-1],[Q,j.top+1]];break;case"left":S=[[j.right-1,G],[j.right-1,pe],[V.left+1,pe],[V.left+1,G]];break;case"right":S=[[V.right-1,G],[V.right-1,pe],[j.left+1,pe],[j.left+1,G]];break}function q(ie){let[ee,he]=ie;switch(R){case"top":{const ve=[H?ee+t/2:A?ee+t*4:ee-t*4,he+t+1],Se=[H?ee-t/2:A?ee+t*4:ee-t*4,he+t+1],se=[[j.left,A||H?j.bottom-t:j.top],[j.right,A?H?j.bottom-t:j.top:j.bottom-t]];return[ve,Se,...se]}case"bottom":{const ve=[H?ee+t/2:A?ee+t*4:ee-t*4,he-t],Se=[H?ee-t/2:A?ee+t*4:ee-t*4,he-t],se=[[j.left,A||H?j.top+t:j.bottom],[j.right,A?H?j.top+t:j.bottom:j.top+t]];return[ve,Se,...se]}case"left":{const ve=[ee+t+1,O?he+t/2:D?he+t*4:he-t*4],Se=[ee+t+1,O?he-t/2:D?he+t*4:he-t*4];return[...[[D||O?j.right-t:j.left,j.top],[D?O?j.right-t:j.left:j.right-t,j.bottom]],ve,Se]}case"right":{const ve=[ee-t,O?he+t/2:D?he+t*4:he-t*4],Se=[ee-t,O?he-t/2:D?he+t*4:he-t*4],se=[[D||O?j.left+t:j.right,j.top],[D?O?j.left+t:j.right:j.left+t,j.bottom]];return[ve,Se,...se]}}}if(!P0([L,M],S)){if(o&&!B)return k();if(!P&&r){const ie=u($.clientX,$.clientY);if(ie!==null&&ie<.1)return k()}P0([L,M],q([g,x]))?!o&&r&&(i=window.setTimeout(k,40)):k()}}};return f.__options={blockPointerEvents:n},f}const Ei=e=>{if(yi){const t=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([.$?*|{}()[\]\\/+^])/g,"\\$1")+"=([^;]*)"));return t?decodeURIComponent(t[1]):void 0}},_1=(e,t,n={})=>{const r={path:"/","max-age":31104e3,...n},i=window.location.origin;i.includes("localhost")?r.domain="localhost":i.includes("profinansy.ae")?r.domain=".profinansy.ae":i.includes("qa.profinansy.dev")?r.domain=".profinansy.dev":r.domain=".profinansy.ru",n.expires instanceof Date&&(r.expires=n.expires.toUTCString());let o=encodeURIComponent(e)+"="+encodeURIComponent(t);for(const a in r){o+="; "+a;const l=r[a];l!==!0&&(o+="="+l)}document.cookie=o},Db=e=>{_1(e,"",{"max-age":-1})},_2=["/login","/idv","/method","/club/onboarding"],Y9=m.createContext({mode:"light",selectedMode:"light",toggleTheme:null,setShowTheme:null,unAvailablePagesTheme:_2}),ye=()=>m.useContext(Y9),B0="selected_theme",jb=({children:e,selectedTheme:t})=>{const[n,r]=m.useState(t??"light"),[i,o]=m.useState(t??"light");m.useEffect(()=>{let c=!0;const u=window?.location.pathname;_2.forEach(f=>{u.includes(f)&&(c=!1)}),o(c?n:"light")},[n]),m.useEffect(()=>{const c=Ei(B0);(c==="light"||c==="dark")&&r(c)},[]);const a=c=>{r(c),_1(B0,c)},l=c=>{o(c)};return s.jsx(Y9.Provider,{value:{mode:i,selectedMode:n,toggleTheme:a,setShowTheme:l,unAvailablePagesTheme:_2},children:e})},fe={light:{background:{primary:"#F4F4F9",content:"#FFFFFF",secondary:"#F7F7F9",secondaryAlpha:"#EAE9F1",field:"#FFFFFF",fieldSecondary:"#F5F4F8",accent:"#6553F5",accentSecondaryTint:"#E8E5FE",positiveTint:"#DCF6DA",warningTint:"#FFF0DB",negativeTint:"#FFF1EC",info:"#DBDCFF",bottomActions:"rgba(255, 255, 255, 0.5)",modalBottomActions:"rgba(255, 255, 255, 0.85)",overlay:"rgba(0, 0, 0, 0.60)"},text:{primary:"#242424",secondary:"#6A6A71",tertiary:"#A1A0AC",fourth:"#606076",contrast:"#FFFFFF",contrastThemed:"#FFFFFF",accent:"#6553F5",accentSecondary:"#9B8EFF",positive:"#34C759",warning:"#FFA000",negative:"#FF3B30",info:"#3038F5",link:"#4285F4"},icons:{primary:"#242424",secondary:"#AAAABA",tertiary:"#CCCBD3",fourth:"#606076",contrast:"#FFFFFF",contrastThemed:"#FFFFFF",contrastThemRev:"#FFFFFF",accent:"#6553F5",accentSecondary:"#9B8EFF",positive:"#34C759",warring:"#FFA000",negative:"#FF3B30",info:"#3038F5",link:"#4285F4"},stroke:{primary:"#DDDDE3",secondary:"#D6D6DE",tertiary:"#E7E7EB",contrast:"#7D7D95",accent:"#6553F5",positive:"#34C759",warning:"#FFA000",negative:"#FF3B30",info:"#3038F5",tooltip:"#F0F0F0"},interactiveButtons:{brandBackground:"#6553F5",brandBackgroundHover:"#4A35F3",brandText:"#FFFFFF",secondaryBrandBackground:"rgba(101, 83, 245, 0.12)",secondaryBrandBackgroundHover:"rgba(101, 83, 245, 0.22)",secondaryBrandText:"#4A35F3",whiteFixedBackground:"#FFFFFF",whiteFixedBackgroundHover:"rgba(255, 255, 255, 0.85)",whiteFixedText:"#242424",outlineBrandBackground:"#FFFFFF",outlineBrandBackgroundHover:"rgba(101, 83, 245, 0.08)",outlineBrandText:"#6553F5",outlineBrandBorder:"#6553F5",outlineBrandBorderHover:"#3821F2",systemBackground:"#EAE9F1",systemBackgroundHover:"#DFDEEA",systemText:"#464167",successBackground:"#E1F7E6",successBackgroundHover:"#BBEDC6",successText:"#299E47",warningBackground:"#FFF1D9",warningBackgroundHover:"#FFDFA8",warningText:"#E59000",criticalBackground:"#FFE2E0",criticalBackgroundHover:"#FFD7D4",criticalText:"#FF3B30",neutralBackground:"rgba(36, 36, 36, 0.50)",neutralBackgroundHover:"rgba(36, 36, 36, 0.70)",neutralText:"#FFFFFF",flatBrandTextHover:"#3821F2",flatSystemTextHover:"#6C659A"},interactiveControls:{accent:"#F0EFF3",secondary:"#FFFFFF",supportive:"#E8E8ED",brand:"#6553F5",brandAlpha:"#4A35F3",accentDark:"#19181B"},other:{orange:"#FFAD30",green:"#A0DD1E",olive:"#DBDE43",violet:"#6E59EF",red:"#EB343F",red2:"#FF4747",pink:"#F969FC",turquoise:"#2ED0C7",blue:"#72E3E3",mediumBlue:"#58C9E2",darkBlue:"#28C6E9",lightBlue:"#4285F4",navyBlue:"#11408E",lightBlueTint:"rgba(66, 133, 244, 0.10)",gray:"rgba(36, 36, 36, 0.50)",orangeTint:"#FFF9EF",greenTint:"#F8FDED",oliveTint:"#FCFDF0",violetTint:"#F4F2FE",redTint:"#FEEFF0",pinkTint:"#FFF3FF",turquoiseTint:"#EFFCFB",darkBlueTint:"#EEF8FB",black:"#111011"},shadow:{basicDefault:"0px 14px 20px -4px rgba(87, 87, 87, 0.10)",basicHover:"0px 12px 28px -3px rgba(87, 87, 87, 0.20)",basicDrag:"0px 12px 32px -3px rgba(87, 87, 87, 0.32)",overlay:"0px 16px 40px -3px rgba(58, 57, 60, 0.28)",dropdown:"0px 4px 8px 0px rgba(0, 0, 0, 0.04), 0px 0px 4px 0px rgba(0, 0, 0, 0.06)",modal:"0px 14px 30px -4px rgba(0, 0, 0, 0.2)",dragItem:"0px 4px 12px rgba(0, 0, 0, 0.15)"},statesBackground:{tabsHover:"#F6F6F6",tabsActive:"#383838",tabsActiveHover:"#242424",accentHover:"#7665FF",accentActive:"#5D48F5",field:"rgba(0, 0, 0, 0.06)",secondaryAlphaActive:"#DCDCDC",secondaryAlphaHover:"#E7E7E7",listHover:"#F6F6F6",notificationHover:"#F6F6F6",notificationHoverError:"#F6F6F6",sideBarActive:"#111011",sideBarOpen:"#E1E0EB"},gradient:{gradient_1:"linear-gradient(90deg, #f4f4f9 0%, rgba(244, 244, 249, 0) 100%)",gradient_2:"linear-gradient(90deg, #FFF 0%, rgba(255, 255, 255, 0.00) 100%)",gradient_3:"linear-gradient(90deg, rgba(244, 244, 249, 0) 0%, #f4f4f9 100%)",gradient_4:"linear-gradient(90deg, rgba(255, 255, 255, 0.00) 0%, #FFF 100%)",top:"linear-gradient(180deg, #FFF 0%, rgba(255, 255, 255, 0.95) 52.08%, rgba(255, 255, 255, 0.00) 100%)",bottom:"linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.95) 53.12%, #FFF 100%)"},club:{primary:"#3C3993",primaryHover:"#5853E3",secondary:"#4833F4",secondaryHover:"#200DB8",buttonBackground:"#E7E7F2",buttonBackgroundHover:"#CAC9E1",green:"#29B279",primaryActive:"#2B2979",primaryGradient:"linear-gradient(54.06deg, #162331 10.84%, #3C3993 98.2%)",secondaryGradient:"linear-gradient(90.24deg, #B92A78 0%, #6699FB 99.58%)"},nav:{search:"#1E1E1E",chipsSearch:"#171718",divider:"#1B1B1C",tabs:"#252527",sideBarOpenActive:"#E1E0EB"},footer:{background:"#121213",banner:"#1E2029",subinfo:"#939394",socials:"#202021",divider:"rgba(255, 255, 255, 0.10)",subtitle:"#7E7E7F",subtitleHover:"#BEBEBF",iconHover:"#9B8EFF",columnDivider:"rgba(255, 255, 255, 0.12)"}},dark:{background:{primary:"#181818",content:"#202020",secondary:"#2B2B2B",secondaryAlpha:"#333333",field:"#2B2B2B",fieldSecondary:"#323232",accent:"#9B8EFF",accentSecondaryTint:"#2B293A",positiveTint:"#384436",warningTint:"#453B2B",negativeTint:"#362D2A",info:"#20213B",bottomActions:"rgba(24, 24, 24, 0.85)",modalBottomActions:"rgba(24, 24, 24, 0.85)",overlay:"rgba(0, 0, 0, 0.60)"},text:{primary:"#FFFFFF",secondary:"#BABAC6",tertiary:"#73738C",fourth:"#E0E0E6",contrast:"#242424",contrastThemed:"#FFFFFF",accent:"#9B8EFF",accentSecondary:"#756CBB",positive:"#30D158",warning:"#F49B06",negative:"#FF452A",info:"#3B42EA",link:"#4285F4"},icons:{primary:"#D9D9D9",secondary:"#BABAC6",tertiary:"#3E3E4C",fourth:"#E0E0E6",contrast:"#242424",contrastThemed:"#FFFFFF",contrastThemRev:"#454545",accent:"#9B8EFF",accentSecondary:"#756CBB",positive:"#30D158",warring:"#F49B06",negative:"#FF452A",info:"#3B42EA",link:"#4285F4"},stroke:{primary:"#3E3E4C",secondary:"#7D7D95",tertiary:"#454554",contrast:"#535365",accent:"#9B8EFF",positive:"#30D158",warning:"#F49B06",negative:"#FF453A",info:"#3B42EA",tooltip:"#535365"},interactiveButtons:{brandBackground:"#7B61FF",brandBackgroundHover:"#6142FF",brandText:"#FFFFFF",secondaryBrandBackground:"rgba(155, 142, 255, 0.12)",secondaryBrandBackgroundHover:"rgba(155, 142, 255, 0.22)",secondaryBrandText:"#9B8EFF",whiteFixedBackground:"#FFFFFF",whiteFixedBackgroundHover:"rgba(255, 255, 255, 0.85)",whiteFixedText:"#242424",outlineBrandBackground:"#202020",outlineBrandBackgroundHover:"rgba(155, 142, 255, 0.1)",outlineBrandText:"#9B8EFF",outlineBrandBorder:"#9B8EFF",outlineBrandBorderHover:"#9B8EFF",systemBackground:"#2E2E38",systemBackgroundHover:"#3A3A48",systemText:"#CCCADD",successBackground:"#223B28",successBackgroundHover:"#2B4A32",successText:"#2CAA4C",warningBackground:"#40321C",warningBackgroundHover:"#634E2B",warningText:"#F99E06",criticalBackground:"#412621",criticalBackgroundHover:"#38211D",criticalText:"#FF5A42",neutralBackground:"rgba(255, 255, 255, 0.50)",neutralBackgroundHover:"rgba(255, 255, 255, 0.70)",neutralText:"#FFFFFF",flatBrandTextHover:"#9B8EFF",flatSystemTextHover:"#777399"},interactiveControls:{accent:"#39383C",secondary:"#242424",supportive:"#2F2F37",brand:"#7B61FF",brandAlpha:"#6142FF",accentDark:"#FFFFFF"},other:{orange:"#E79D2D",green:"#91C81C",olive:"#C1C339",violet:"#6E59EF",red:"#E8343F",red2:"#F02D3A",pink:"#E05DE2",turquoise:"#229E97",blue:"#61C5C5",mediumBlue:"#51BBD2",darkBlue:"#21AFCE",lightBlue:"#317AF2",navyBlue:"#C9DEFF",lightBlueTint:"rgba(49, 122, 242, 0.04)",gray:"rgba(48, 48, 48, 0.50)",orangeTint:"rgba(255, 173, 48, 0.04)",greenTint:"rgba(160, 221, 30, 0.04)",oliveTint:"rgba(219, 222, 67, 0.04)",violetTint:"rgba(110, 89, 239, 0.04)",redTint:"rgba(235, 52, 63, 0.04)",pinkTint:"rgba(249, 105, 252, 0.04)",turquoiseTint:"rgba(46, 208, 199, 0.04)",darkBlueTint:"rgba(33, 175, 206, 0.04)",black:"#242325"},shadow:{basicDefault:null,basicHover:null,basicDrag:null,overlay:null,dropdown:null,modal:null,dragItem:null},statesBackground:{tabsHover:"#383838",tabsActive:"#FFFFFF",tabsActiveHover:"#F6F6F6",accentHover:"#614DF5",accentActive:"#9284FF",field:"rgba(255, 255, 255, 0.06)",secondaryAlphaActive:"#505050",secondaryAlphaHover:"#404040",listHover:"#303030",notificationHover:"#303030",notificationHoverError:"#303030",sideBarActive:"#333036",sideBarOpen:"#333036"},gradient:{gradient_1:"linear-gradient(90deg, #181818 0%, rgba(24, 24, 24, 0.00) 100%)",gradient_2:"linear-gradient(90deg, #2B2B2B 0%, rgba(43, 43, 43, 0.00) 100%)",gradient_3:"linear-gradient(90deg, rgba(24, 24, 24, 0.00) 0%, #181818 100%)",gradient_4:"linear-gradient(90deg, rgba(43, 43, 43, 0.00) 0%, #2B2B2B 100%)",top:"linear-gradient(180deg, #2B2B2B 0%, rgba(43, 43, 43, 0.95) 53.65%, rgba(43, 43, 43, 0.00) 100%)",bottom:" linear-gradient(180deg, rgba(43, 43, 43, 0.00) 0%, rgba(43, 43, 43, 0.95) 52.08%, #2B2B2B 100%)"},club:{primary:"#5854C6",primaryHover:"#7672F6",secondary:"#8C7CFF",secondaryHover:"#614FED",buttonBackground:"#282837",buttonBackgroundHover:"#2E2C60",green:"#2FCA89",primaryActive:"#3C3180",primaryGradient:"linear-gradient(54.11deg, #2C2562 6.32%, #4641BF 116.13%)",secondaryGradient:"linear-gradient(90.24deg, #CE2680 0%, #4080FD 99.58%)"},nav:{search:"#1E1E1E",chipsSearch:"#171718",divider:"#2B2B2D",tabs:"#323235",sideBarOpenActive:"#39383C"},footer:{background:"#111113",banner:"#282735",subinfo:"#939394",socials:"#202021",divider:"rgba(255, 255, 255, 0.10)",subtitle:"#7E7E7F",subtitleHover:"#BEBEBF",iconHover:"#9B8EFF",columnDivider:"rgba(255, 255, 255, 0.12)"}}},Td={idv:"linear-gradient(95.09deg, #6553f5 14.05%, #ee2cff 108.18%)",idvShort:"linear-gradient(95deg, #6553f5 14.05%, #ee2cff 108.18%)"},mn=p.css`
|
|
372
372
|
&::-webkit-scrollbar {
|
|
373
373
|
width: 4px;
|
|
374
374
|
height: 4px;
|