forked from Romeo-Rosete/EXCHANGE-SECURITY
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path98172-b52b94ea469a71e.js.download
1 lines (1 loc) · 54 KB
/
98172-b52b94ea469a71e.js.download
1
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[98172],{84061:function(e,t,n){n.d(t,{RR:function(){return s},X5:function(){return c},cv:function(){return a},dp:function(){return d},oo:function(){return i},uY:function(){return f},x7:function(){return l}});var r=n(4029);function o(e,t,n){let{reference:o,floating:i}=e;const u=(0,r.Qq)(t),l=(0,r.Wh)(t),c=(0,r.I4)(l),s=(0,r.k3)(t),a="y"===u,f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,p=o[c]/2-i[c]/2;let m;switch(s){case"top":m={x:f,y:o.y-i.height};break;case"bottom":m={x:f,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:d};break;case"left":m={x:o.x-i.width,y:d};break;default:m={x:o.x,y:o.y}}switch((0,r.hp)(t)){case"start":m[l]-=p*(n&&a?-1:1);break;case"end":m[l]+=p*(n&&a?-1:1)}return m}const i=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:u=[],platform:l}=n,c=u.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(t));let a=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:d}=o(a,r,s),p=r,m={},v=0;for(let h=0;h<c.length;h++){const{name:n,fn:u}=c[h],{x:g,y:y,data:b,reset:w}=await u({x:f,y:d,initialPlacement:r,placement:p,strategy:i,middlewareData:m,rects:a,platform:l,elements:{reference:e,floating:t}});f=null!=g?g:f,d=null!=y?y:d,m={...m,[n]:{...m[n],...b}},w&&v<=50&&(v++,"object"===typeof w&&(w.placement&&(p=w.placement),w.rects&&(a=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):w.rects),({x:f,y:d}=o(a,p,s))),h=-1)}return{x:f,y:d,placement:p,strategy:i,middlewareData:m}};async function u(e,t){var n;void 0===t&&(t={});const{x:o,y:i,platform:u,rects:l,elements:c,strategy:s}=e,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:p=!1,padding:m=0}=(0,r.ku)(t,e),v=(0,r.yd)(m),h=c[p?"floating"===d?"reference":"floating":d],g=(0,r.JB)(await u.getClippingRect({element:null==(n=await(null==u.isElement?void 0:u.isElement(h)))||n?h:h.contextElement||await(null==u.getDocumentElement?void 0:u.getDocumentElement(c.floating)),boundary:a,rootBoundary:f,strategy:s})),y="floating"===d?{...l.floating,x:o,y:i}:l.reference,b=await(null==u.getOffsetParent?void 0:u.getOffsetParent(c.floating)),w=await(null==u.isElement?void 0:u.isElement(b))&&await(null==u.getScale?void 0:u.getScale(b))||{x:1,y:1},x=(0,r.JB)(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:b,strategy:s}):y);return{top:(g.top-x.top+v.top)/w.y,bottom:(x.bottom-g.bottom+v.bottom)/w.y,left:(g.left-x.left+v.left)/w.x,right:(x.right-g.right+v.right)/w.x}}const l=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:u,platform:l,elements:c,middlewareData:s}=t,{element:a,padding:f=0}=(0,r.ku)(e,t)||{};if(null==a)return{};const d=(0,r.yd)(f),p={x:n,y:o},m=(0,r.Wh)(i),v=(0,r.I4)(m),h=await l.getDimensions(a),g="y"===m,y=g?"top":"left",b=g?"bottom":"right",w=g?"clientHeight":"clientWidth",x=u.reference[v]+u.reference[m]-p[m]-u.floating[v],E=p[m]-u.reference[m],R=await(null==l.getOffsetParent?void 0:l.getOffsetParent(a));let k=R?R[w]:0;k&&await(null==l.isElement?void 0:l.isElement(R))||(k=c.floating[w]||u.floating[v]);const S=x/2-E/2,A=k/2-h[v]/2-1,L=(0,r.VV)(d[y],A),T=(0,r.VV)(d[b],A),C=L,P=k-h[v]-T,M=k/2-h[v]/2+S,F=(0,r.uZ)(C,M,P),O=!s.arrow&&null!=(0,r.hp)(i)&&M!=F&&u.reference[v]/2-(M<C?L:T)-h[v]/2<0,D=O?M<C?C-M:P-M:0;return{[m]:p[m]-D,data:{[m]:F,centerOffset:M-F+D},reset:O}}});const c=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,i;const{rects:l,middlewareData:c,placement:s,platform:a,elements:f}=t,{crossAxis:d=!1,alignment:p,allowedPlacements:m=r.Ct,autoAlignment:v=!0,...h}=(0,r.ku)(e,t),g=void 0!==p||m===r.Ct?function(e,t,n){return(e?[...n.filter((t=>(0,r.hp)(t)===e)),...n.filter((t=>(0,r.hp)(t)!==e))]:n.filter((e=>(0,r.k3)(e)===e))).filter((n=>!e||(0,r.hp)(n)===e||!!t&&(0,r.Go)(n)!==n))}(p||null,v,m):m,y=await u(t,h),b=(null==(n=c.autoPlacement)?void 0:n.index)||0,w=g[b];if(null==w)return{};const x=(0,r.i8)(w,l,await(null==a.isRTL?void 0:a.isRTL(f.floating)));if(s!==w)return{reset:{placement:g[0]}};const E=[y[(0,r.k3)(w)],y[x[0]],y[x[1]]],R=[...(null==(o=c.autoPlacement)?void 0:o.overflows)||[],{placement:w,overflows:E}],k=g[b+1];if(k)return{data:{index:b+1,overflows:R},reset:{placement:k}};const S=R.map((e=>{const t=(0,r.hp)(e.placement);return[e.placement,t&&d?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),A=(null==(i=S.filter((e=>e[2].slice(0,(0,r.hp)(e[0])?2:3).every((e=>e<=0))))[0])?void 0:i[0])||S[0][0];return A!==s?{data:{index:b+1,overflows:R},reset:{placement:A}}:{}}}},s=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:o,middlewareData:i,rects:l,initialPlacement:c,platform:s,elements:a}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:h=!0,...g}=(0,r.ku)(e,t),y=(0,r.k3)(o),b=(0,r.k3)(c)===c,w=await(null==s.isRTL?void 0:s.isRTL(a.floating)),x=p||(b||!h?[(0,r.pw)(c)]:(0,r.gy)(c));p||"none"===v||x.push(...(0,r.KX)(c,h,v,w));const E=[c,...x],R=await u(t,g),k=[];let S=(null==(n=i.flip)?void 0:n.overflows)||[];if(f&&k.push(R[y]),d){const e=(0,r.i8)(o,l,w);k.push(R[e[0]],R[e[1]])}if(S=[...S,{placement:o,overflows:k}],!k.every((e=>e<=0))){var A,L;const e=((null==(A=i.flip)?void 0:A.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let n=null==(L=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:L.placement;if(!n)switch(m){case"bestFit":{var T;const e=null==(T=S.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:T[0];e&&(n=e);break}case"initialPlacement":n=c}if(o!==n)return{reset:{placement:n}}}return{}}}};const a=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,i=await async function(e,t){const{placement:n,platform:o,elements:i}=e,u=await(null==o.isRTL?void 0:o.isRTL(i.floating)),l=(0,r.k3)(n),c=(0,r.hp)(n),s="y"===(0,r.Qq)(n),a=["left","top"].includes(l)?-1:1,f=u&&s?-1:1,d=(0,r.ku)(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:v}="number"===typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return c&&"number"===typeof v&&(m="end"===c?-1*v:v),s?{x:m*f,y:p*a}:{x:p*a,y:m*f}}(t,e);return{x:n+i.x,y:o+i.y,data:i}}}},f=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i}=t,{mainAxis:l=!0,crossAxis:c=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...a}=(0,r.ku)(e,t),f={x:n,y:o},d=await u(t,a),p=(0,r.Qq)((0,r.k3)(i)),m=(0,r.Rn)(p);let v=f[m],h=f[p];if(l){const e="y"===m?"bottom":"right",t=v+d["y"===m?"top":"left"],n=v-d[e];v=(0,r.uZ)(t,v,n)}if(c){const e="y"===p?"bottom":"right",t=h+d["y"===p?"top":"left"],n=h-d[e];h=(0,r.uZ)(t,h,n)}const g=s.fn({...t,[m]:v,[p]:h});return{...g,data:{x:g.x-n,y:g.y-o}}}}},d=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:i,elements:l}=t,{apply:c=(()=>{}),...s}=(0,r.ku)(e,t),a=await u(t,s),f=(0,r.k3)(n),d=(0,r.hp)(n),p="y"===(0,r.Qq)(n),{width:m,height:v}=o.floating;let h,g;"top"===f||"bottom"===f?(h=f,g=d===(await(null==i.isRTL?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(g=f,h="end"===d?"top":"bottom");const y=v-a[h],b=m-a[g],w=!t.middlewareData.shift;let x=y,E=b;if(p){const e=m-a.left-a.right;E=d||w?(0,r.VV)(b,e):e}else{const e=v-a.top-a.bottom;x=d||w?(0,r.VV)(y,e):e}if(w&&!d){const e=(0,r.Fp)(a.left,0),t=(0,r.Fp)(a.right,0),n=(0,r.Fp)(a.top,0),o=(0,r.Fp)(a.bottom,0);p?E=m-2*(0!==e||0!==t?e+t:(0,r.Fp)(a.left,a.right)):x=v-2*(0!==n||0!==o?n+o:(0,r.Fp)(a.top,a.bottom))}await c({...t,availableWidth:E,availableHeight:x});const R=await i.getDimensions(l.floating);return m!==R.width||v!==R.height?{reset:{rects:!0}}:{}}}}},75580:function(e,t,n){n.d(t,{Jv:function(){return y},Me:function(){return b},oo:function(){return w}});var r=n(4029),o=n(84061),i=n(47372);function u(e){const t=(0,i.Dx)(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const u=(0,i.Re)(e),l=u?e.offsetWidth:n,c=u?e.offsetHeight:o,s=(0,r.NM)(n)!==l||(0,r.NM)(o)!==c;return s&&(n=l,o=c),{width:n,height:o,$:s}}function l(e){return(0,i.kK)(e)?e:e.contextElement}function c(e){const t=l(e);if(!(0,i.Re)(t))return(0,r.ze)(1);const n=t.getBoundingClientRect(),{width:o,height:c,$:s}=u(t);let a=(s?(0,r.NM)(n.width):n.width)/o,f=(s?(0,r.NM)(n.height):n.height)/c;return a&&Number.isFinite(a)||(a=1),f&&Number.isFinite(f)||(f=1),{x:a,y:f}}const s=(0,r.ze)(0);function a(e){const t=(0,i.Jj)(e);return(0,i.Pf)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:s}function f(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const u=e.getBoundingClientRect(),s=l(e);let f=(0,r.ze)(1);t&&(o?(0,i.kK)(o)&&(f=c(o)):f=c(e));const d=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==(0,i.Jj)(e))&&t}(s,n,o)?a(s):(0,r.ze)(0);let p=(u.left+d.x)/f.x,m=(u.top+d.y)/f.y,v=u.width/f.x,h=u.height/f.y;if(s){const e=(0,i.Jj)(s),t=o&&(0,i.kK)(o)?(0,i.Jj)(o):o;let n=e.frameElement;for(;n&&o&&t!==e;){const e=c(n),t=n.getBoundingClientRect(),r=(0,i.Dx)(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,u=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;p*=e.x,m*=e.y,v*=e.x,h*=e.y,p+=o,m+=u,n=(0,i.Jj)(n).frameElement}}return(0,r.JB)({width:v,height:h,x:p,y:m})}function d(e){return f((0,i.tF)(e)).left+(0,i.Lw)(e).scrollLeft}function p(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=(0,i.Jj)(e),r=(0,i.tF)(e),o=n.visualViewport;let u=r.clientWidth,l=r.clientHeight,c=0,s=0;if(o){u=o.width,l=o.height;const e=(0,i.Pf)();(!e||e&&"fixed"===t)&&(c=o.offsetLeft,s=o.offsetTop)}return{width:u,height:l,x:c,y:s}}(e,n);else if("document"===t)o=function(e){const t=(0,i.tF)(e),n=(0,i.Lw)(e),o=e.ownerDocument.body,u=(0,r.Fp)(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=(0,r.Fp)(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let c=-n.scrollLeft+d(e);const s=-n.scrollTop;return"rtl"===(0,i.Dx)(o).direction&&(c+=(0,r.Fp)(t.clientWidth,o.clientWidth)-u),{width:u,height:l,x:c,y:s}}((0,i.tF)(e));else if((0,i.kK)(t))o=function(e,t){const n=f(e,!0,"fixed"===t),o=n.top+e.clientTop,u=n.left+e.clientLeft,l=(0,i.Re)(e)?c(e):(0,r.ze)(1);return{width:e.clientWidth*l.x,height:e.clientHeight*l.y,x:u*l.x,y:o*l.y}}(t,n);else{const n=a(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return(0,r.JB)(o)}function m(e,t){const n=(0,i.Ow)(e);return!(n===t||!(0,i.kK)(n)||(0,i.Py)(n))&&("fixed"===(0,i.Dx)(n).position||m(n,t))}function v(e,t,n){const o=(0,i.Re)(t),u=(0,i.tF)(t),l="fixed"===n,c=f(e,!0,l,t);let s={scrollLeft:0,scrollTop:0};const a=(0,r.ze)(0);if(o||!o&&!l)if(("body"!==(0,i.wk)(t)||(0,i.ao)(u))&&(s=(0,i.Lw)(t)),o){const e=f(t,!0,l,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else u&&(a.x=d(u));return{x:c.left+s.scrollLeft-a.x,y:c.top+s.scrollTop-a.y,width:c.width,height:c.height}}function h(e,t){return(0,i.Re)(e)&&"fixed"!==(0,i.Dx)(e).position?t?t(e):e.offsetParent:null}function g(e,t){const n=(0,i.Jj)(e);if(!(0,i.Re)(e))return n;let r=h(e,t);for(;r&&(0,i.Ze)(r)&&"static"===(0,i.Dx)(r).position;)r=h(r,t);return r&&("html"===(0,i.wk)(r)||"body"===(0,i.wk)(r)&&"static"===(0,i.Dx)(r).position&&!(0,i.hT)(r))?n:r||(0,i.gQ)(e)||n}const y={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const u=(0,i.Re)(n),l=(0,i.tF)(n);if(n===l)return t;let s={scrollLeft:0,scrollTop:0},a=(0,r.ze)(1);const d=(0,r.ze)(0);if((u||!u&&"fixed"!==o)&&(("body"!==(0,i.wk)(n)||(0,i.ao)(l))&&(s=(0,i.Lw)(n)),(0,i.Re)(n))){const e=f(n);a=c(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+d.x,y:t.y*a.y-s.scrollTop*a.y+d.y}},getDocumentElement:i.tF,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:u}=e;const l="clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=(0,i.Kx)(e,[],!1).filter((e=>(0,i.kK)(e)&&"body"!==(0,i.wk)(e))),o=null;const u="fixed"===(0,i.Dx)(e).position;let l=u?(0,i.Ow)(e):e;for(;(0,i.kK)(l)&&!(0,i.Py)(l);){const t=(0,i.Dx)(l),n=(0,i.hT)(l);n||"fixed"!==t.position||(o=null),(u?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||(0,i.ao)(l)&&!n&&m(e,l))?r=r.filter((e=>e!==l)):o=t,l=(0,i.Ow)(l)}return t.set(e,r),r}(t,this._c):[].concat(n),c=[...l,o],s=c[0],a=c.reduce(((e,n)=>{const o=p(t,n,u);return e.top=(0,r.Fp)(o.top,e.top),e.right=(0,r.VV)(o.right,e.right),e.bottom=(0,r.VV)(o.bottom,e.bottom),e.left=(0,r.Fp)(o.left,e.left),e}),p(t,s,u));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:g,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||g,i=this.getDimensions;return{reference:v(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return u(e)},getScale:c,isElement:i.kK,isRTL:function(e){return"rtl"===(0,i.Dx)(e).direction}};function b(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:u=!0,ancestorResize:c=!0,elementResize:s="function"===typeof ResizeObserver,layoutShift:a="function"===typeof IntersectionObserver,animationFrame:d=!1}=o,p=l(e),m=u||c?[...p?(0,i.Kx)(p):[],...(0,i.Kx)(t)]:[];m.forEach((e=>{u&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)}));const v=p&&a?function(e,t){let n,o=null;const u=(0,i.tF)(e);function l(){clearTimeout(n),o&&o.disconnect(),o=null}return function i(c,s){void 0===c&&(c=!1),void 0===s&&(s=1),l();const{left:a,top:f,width:d,height:p}=e.getBoundingClientRect();if(c||t(),!d||!p)return;const m={rootMargin:-(0,r.GW)(f)+"px "+-(0,r.GW)(u.clientWidth-(a+d))+"px "+-(0,r.GW)(u.clientHeight-(f+p))+"px "+-(0,r.GW)(a)+"px",threshold:(0,r.Fp)(0,(0,r.VV)(1,s))||1};let v=!0;function h(e){const t=e[0].intersectionRatio;if(t!==s){if(!v)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),100)}v=!1}try{o=new IntersectionObserver(h,{...m,root:u.ownerDocument})}catch(g){o=new IntersectionObserver(h,m)}o.observe(e)}(!0),l}(p,n):null;let h,g=-1,y=null;s&&(y=new ResizeObserver((e=>{let[r]=e;r&&r.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{y&&y.observe(t)}))),n()})),p&&!d&&y.observe(p),y.observe(t));let b=d?f(e):null;return d&&function t(){const r=f(e);!b||r.x===b.x&&r.y===b.y&&r.width===b.width&&r.height===b.height||n();b=r,h=requestAnimationFrame(t)}(),n(),()=>{m.forEach((e=>{u&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)})),v&&v(),y&&y.disconnect(),y=null,d&&cancelAnimationFrame(h)}}const w=(e,t,n)=>{const r=new Map,i={platform:y,...n},u={...i.platform,_c:r};return(0,o.oo)(e,t,{...i,platform:u})}},92416:function(e,t,n){n.d(t,{YF:function(){return p},x7:function(){return l}});var r=n(84061),o=n(75580),i=n(2784),u=n(28316);const l=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:o}="function"===typeof e?e(t):e;return n&&(i=n,{}.hasOwnProperty.call(i,"current"))?null!=n.current?(0,r.x7)({element:n.current,padding:o}).fn(t):{}:n?(0,r.x7)({element:n,padding:o}).fn(t):{};var i}});var c="undefined"!==typeof document?i.useLayoutEffect:i.useEffect;function s(e,t){if(e===t)return!0;if(typeof e!==typeof t)return!1;if("function"===typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!==r--;)if(!s(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!s(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function a(e){if("undefined"===typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function f(e,t){const n=a(e);return Math.round(t*n)/n}function d(e){const t=i.useRef(e);return c((()=>{t.current=e})),t}function p(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:l,elements:{reference:p,floating:m}={},transform:v=!0,whileElementsMounted:h,open:g}=e,[y,b]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[w,x]=i.useState(r);s(w,r)||x(r);const[E,R]=i.useState(null),[k,S]=i.useState(null),A=i.useCallback((e=>{e!=P.current&&(P.current=e,R(e))}),[R]),L=i.useCallback((e=>{e!==M.current&&(M.current=e,S(e))}),[S]),T=p||E,C=m||k,P=i.useRef(null),M=i.useRef(null),F=i.useRef(y),O=d(h),D=d(l),I=i.useCallback((()=>{if(!P.current||!M.current)return;const e={placement:t,strategy:n,middleware:w};D.current&&(e.platform=D.current),(0,o.oo)(P.current,M.current,e).then((e=>{const t={...e,isPositioned:!0};N.current&&!s(F.current,t)&&(F.current=t,u.flushSync((()=>{b(t)})))}))}),[w,t,n,D]);c((()=>{!1===g&&F.current.isPositioned&&(F.current.isPositioned=!1,b((e=>({...e,isPositioned:!1}))))}),[g]);const N=i.useRef(!1);c((()=>(N.current=!0,()=>{N.current=!1})),[]),c((()=>{if(T&&(P.current=T),C&&(M.current=C),T&&C){if(O.current)return O.current(T,C,I);I()}}),[T,C,I,O]);const K=i.useMemo((()=>({reference:P,floating:M,setReference:A,setFloating:L})),[A,L]),W=i.useMemo((()=>({reference:T,floating:C})),[T,C]),B=i.useMemo((()=>{const e={position:n,left:0,top:0};if(!W.floating)return e;const t=f(W.floating,y.x),r=f(W.floating,y.y);return v?{...e,transform:"translate("+t+"px, "+r+"px)",...a(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,v,W.floating,y.x,y.y]);return i.useMemo((()=>({...y,update:I,refs:K,elements:W,floatingStyles:B})),[y,I,K,W,B])}},98172:function(e,t,n){n.d(t,{Y$:function(){return H},wD:function(){return Re},ll:function(){return we},xp:function(){return Ie},bQ:function(){return Te},YF:function(){return Ce},XI:function(){return ee},NI:function(){return Me},qs:function(){return Fe},hU:function(){return Oe}});var r=n(2784),o=n.t(r,2),i=n(19850),u=n(75580),l=n(47372),c=n(92416),s=["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])"],a=s.join(","),f="undefined"===typeof Element,d=f?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,p=!f&&Element.prototype.getRootNode?function(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null===e||void 0===e?void 0:e.ownerDocument},m=function e(t,n){var r;void 0===n&&(n=!0);var o=null===t||void 0===t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},v=function(e,t,n){if(m(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(a));return t&&d.call(e,a)&&r.unshift(e),r=r.filter(n)},h=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var u=i.shift();if(!m(u,!1))if("SLOT"===u.tagName){var l=u.assignedElements(),c=e(l.length?l:u.children,!0,r);r.flatten?o.push.apply(o,c):o.push({scopeParent:u,candidates:c})}else{d.call(u,a)&&r.filter(u)&&(n||!t.includes(u))&&o.push(u);var s=u.shadowRoot||"function"===typeof r.getShadowRoot&&r.getShadowRoot(u),f=!m(s,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(u));if(s&&f){var p=e(!0===s?u.children:s.children,!0,r);r.flatten?o.push.apply(o,p):o.push({scopeParent:u,candidates:p})}else i.unshift.apply(i,u.children)}}return o},g=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},y=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null===e||void 0===e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!g(e)?0:e.tabIndex},b=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},w=function(e){return"INPUT"===e.tagName},x=function(e){return function(e){return w(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||p(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!==typeof window&&"undefined"!==typeof window.CSS&&"function"===typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(i){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",i.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)},E=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},R=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=d.call(e,"details>summary:first-of-type")?e.parentElement:e;if(d.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return E(e)}else{if("function"===typeof r){for(var i=e;e;){var u=e.parentElement,l=p(e);if(u&&!u.shadowRoot&&!0===r(u))return E(e);e=e.assignedSlot?e.assignedSlot:u||l===e.ownerDocument?u:l.host}e=i}if(function(e){var t,n,r,o,i=e&&p(e),u=null===(t=i)||void 0===t?void 0:t.host,l=!1;if(i&&i!==e)for(l=!!(null!==(n=u)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(u)||null!==e&&void 0!==e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!l&&u;){var c,s,a;l=!(null===(s=u=null===(c=i=p(u))||void 0===c?void 0:c.host)||void 0===s||null===(a=s.ownerDocument)||void 0===a||!a.contains(u))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},k=function(e,t){return!(t.disabled||m(t)||function(e){return w(e)&&"hidden"===e.type}(t)||R(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!d.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},S=function(e,t){return!(x(t)||y(t)<0||!k(e,t))},A=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},L=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scopeParent,u=i?t.scopeParent:t,l=function(e,t){var n=y(e);return n<0&&t&&!g(e)?0:n}(u,i),c=i?e(t.candidates):u;0===l?i?n.push.apply(n,c):n.push(u):r.push({documentOrder:o,tabIndex:l,item:t,isScope:i,content:c})})),r.sort(b).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},T=function(e,t){var n;return n=(t=t||{}).getShadowRoot?h([e],t.includeContainer,{filter:S.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:A}):v(e,t.includeContainer,S.bind(null,t)),L(n)},C=n(28316);const P="ArrowUp",M="ArrowDown",F="ArrowLeft",O="ArrowRight";let D=0;function I(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(D);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():D=requestAnimationFrame(i)}var N="undefined"!==typeof document?r.useLayoutEffect:r.useEffect;const K=[F,O],W=[P,M];function B(){return B=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},B.apply(this,arguments)}let V=!1,q=0;const j=()=>"floating-ui-"+q++;const z=o["useId".toString()]||function(){const[e,t]=r.useState((()=>V?j():void 0));return N((()=>{null==e&&t(j())}),[]),r.useEffect((()=>{V||(V=!0)}),[]),e},H=r.forwardRef((function(e,t){let{context:{placement:n,elements:{floating:o},middlewareData:{arrow:i}},width:l=14,height:c=7,tipRadius:s=0,strokeWidth:a=0,staticOffset:f,stroke:d,d:p,style:{transform:m,...v}={},...h}=e;const g=z();if(!o)return null;a*=2;const y=a/2,b=l/2*(s/-8+1),w=c/2*s/4,[x,E]=n.split("-"),R=u.Jv.isRTL(o),k=!!p,S="top"===x||"bottom"===x,A=f&&"end"===E?"bottom":"top";let L=f&&"end"===E?"right":"left";f&&R&&(L="end"===E?"left":"right");const T=null!=(null==i?void 0:i.x)?f||i.x:"",C=null!=(null==i?void 0:i.y)?f||i.y:"",P=p||"M0,0 H"+l+" L"+(l-b)+","+(c-w)+" Q"+l/2+","+c+" "+b+","+(c-w)+" Z",M={top:k?"rotate(180deg)":"",left:k?"rotate(90deg)":"rotate(-90deg)",bottom:k?"":"rotate(180deg)",right:k?"rotate(-90deg)":"rotate(90deg)"}[x];return r.createElement("svg",B({},h,{"aria-hidden":!0,ref:t,width:k?l:l+a,height:l,viewBox:"0 0 "+l+" "+(c>l?c:l),style:{position:"absolute",pointerEvents:"none",[L]:T,[A]:C,[x]:S||k?"100%":"calc(100% - "+a/2+"px)",transform:""+M+(null!=m?m:""),...v}}),a>0&&r.createElement("path",{clipPath:"url(#"+g+")",fill:"none",stroke:d,strokeWidth:a+(p?0:1),d:P}),r.createElement("path",{stroke:a&&!p?h.fill:"none",d:P}),r.createElement("clipPath",{id:g},r.createElement("rect",{x:-y,y:y*(k?-1:1),width:l+a,height:l})))}));function _(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}const J=r.createContext(null),X=r.createContext(null),Y=()=>{var e;return(null==(e=r.useContext(J))?void 0:e.id)||null},U=()=>r.useContext(X);function Z(e){return"data-floating-ui-"+e}function G(e){const t=(0,r.useRef)(e);return N((()=>{t.current=e})),t}const Q=Z("safe-polygon");function $(e,t,n){return n&&!(0,i.r)(n)?0:"number"===typeof e?e:null==e?void 0:e[t]}function ee(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,dataRef:u,events:c,elements:{domReference:s,floating:a},refs:f}=e,{enabled:d=!0,delay:p=0,handleClose:m=null,mouseOnly:v=!1,restMs:h=0,move:g=!0}=t,y=U(),b=Y(),w=G(m),x=G(p),E=r.useRef(),R=r.useRef(),k=r.useRef(),S=r.useRef(),A=r.useRef(!0),L=r.useRef(!1),T=r.useRef((()=>{})),C=r.useCallback((()=>{var e;const t=null==(e=u.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[u]);r.useEffect((()=>{if(d)return c.on("dismiss",e),()=>{c.off("dismiss",e)};function e(){clearTimeout(R.current),clearTimeout(S.current),A.current=!0}}),[d,c]),r.useEffect((()=>{if(!d||!w.current||!n)return;function e(e){C()&&o(!1,e)}const t=(0,i.Me)(a).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[a,n,o,d,w,u,C]);const P=r.useCallback((function(e,t){void 0===t&&(t=!0);const n=$(x.current,"close",E.current);n&&!k.current?(clearTimeout(R.current),R.current=setTimeout((()=>o(!1,e)),n)):t&&(clearTimeout(R.current),o(!1,e))}),[x,o]),M=r.useCallback((()=>{T.current(),k.current=void 0}),[]),F=r.useCallback((()=>{if(L.current){const e=(0,i.Me)(f.floating.current).body;e.style.pointerEvents="",e.removeAttribute(Q),L.current=!1}}),[f]);return r.useEffect((()=>{if(d&&(0,l.kK)(s)){const e=s;return n&&e.addEventListener("mouseleave",f),null==a||a.addEventListener("mouseleave",f),g&&e.addEventListener("mousemove",r,{once:!0}),e.addEventListener("mouseenter",r),e.addEventListener("mouseleave",c),()=>{n&&e.removeEventListener("mouseleave",f),null==a||a.removeEventListener("mouseleave",f),g&&e.removeEventListener("mousemove",r),e.removeEventListener("mouseenter",r),e.removeEventListener("mouseleave",c)}}function t(){return!!u.current.openEvent&&["click","mousedown"].includes(u.current.openEvent.type)}function r(e){if(clearTimeout(R.current),A.current=!1,v&&!(0,i.r)(E.current)||h>0&&0===$(x.current,"open"))return;const t=$(x.current,"open",E.current);t?R.current=setTimeout((()=>{o(!0,e)}),t):o(!0,e)}function c(r){if(t())return;T.current();const o=(0,i.Me)(a);if(clearTimeout(S.current),w.current){n||clearTimeout(R.current),k.current=w.current({...e,tree:y,x:r.clientX,y:r.clientY,onClose(){F(),M(),P(r)}});const t=k.current;return o.addEventListener("mousemove",t),void(T.current=()=>{o.removeEventListener("mousemove",t)})}("touch"!==E.current||!(0,i.r3)(a,r.relatedTarget))&&P(r)}function f(n){t()||null==w.current||w.current({...e,tree:y,x:n.clientX,y:n.clientY,onClose(){F(),M(),P(n)}})(n)}}),[s,a,d,e,v,h,g,P,M,F,o,n,y,x,w,u]),N((()=>{var e;if(d&&n&&null!=(e=w.current)&&e.__options.blockPointerEvents&&C()){const e=(0,i.Me)(a).body;if(e.setAttribute(Q,""),e.style.pointerEvents="none",L.current=!0,(0,l.kK)(s)&&a){var t,r;const e=s,n=null==y||null==(t=y.nodesRef.current.find((e=>e.id===b)))||null==(r=t.context)?void 0:r.elements.floating;return n&&(n.style.pointerEvents=""),e.style.pointerEvents="auto",a.style.pointerEvents="auto",()=>{e.style.pointerEvents="",a.style.pointerEvents=""}}}}),[d,n,b,a,s,y,w,u,C]),N((()=>{n||(E.current=void 0,M(),F())}),[n,M,F]),r.useEffect((()=>()=>{M(),clearTimeout(R.current),clearTimeout(S.current),F()}),[d,s,M,F]),r.useMemo((()=>{if(!d)return{};function e(e){E.current=e.pointerType}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove(e){n||0===h||(clearTimeout(S.current),S.current=setTimeout((()=>{A.current||o(!0,e.nativeEvent)}),h))}},floating:{onMouseEnter(){clearTimeout(R.current)},onMouseLeave(e){c.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),P(e.nativeEvent,!1)}}}}),[c,d,h,n,o,P])}function te(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}let ne=new WeakMap,re=new WeakSet,oe={},ie=0;const ue=e=>e&&(e.host||ue(e.parentNode));function le(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,u=(l=t,e.map((e=>{if(l.contains(e))return e;const t=ue(e);return l.contains(t)?t:null})).filter((e=>null!=e)));var l;const c=new Set,s=new Set(u),a=[];oe[o]||(oe[o]=new WeakMap);const f=oe[o];return u.forEach((function e(t){if(!t||c.has(t))return;c.add(t),t.parentNode&&e(t.parentNode)})),function e(t){if(!t||s.has(t))return;Array.prototype.forEach.call(t.children,(t=>{if(c.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=(ne.get(t)||0)+1,u=(f.get(t)||0)+1;ne.set(t,r),f.set(t,u),a.push(t),1===r&&n&&re.add(t),1===u&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"true")}}))}(t),c.clear(),ie++,()=>{a.forEach((e=>{const t=(ne.get(e)||0)-1,n=(f.get(e)||0)-1;ne.set(e,t),f.set(e,n),t||(!re.has(e)&&i&&e.removeAttribute(i),re.delete(e)),n||e.removeAttribute(o)})),ie--,ie||(ne=new WeakMap,ne=new WeakMap,re=new WeakSet,oe={})}}function ce(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=(0,i.Me)(e[0]).body;return le(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const se=()=>({getShadowRoot:!0,displayCheck:"function"===typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function ae(e,t){const n=T(e,se());"prev"===t&&n.reverse();const r=n.indexOf((0,i.AW)((0,i.Me)(e)));return n.slice(r+1)[0]}function fe(){return ae(document.body,"next")}function de(){return ae(document.body,"prev")}function pe(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!(0,i.r3)(n,r)}function me(e){T(e,se()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function ve(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const he={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};function ge(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const ye=r.forwardRef((function(e,t){const[n,o]=r.useState();N((()=>((0,i.G6)()&&o("button"),document.addEventListener("keydown",ge),()=>{document.removeEventListener("keydown",ge)})),[]);const u={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[Z("focus-guard")]:"",style:he};return r.createElement("span",B({},e,u))})),be=r.createContext(null);function we(e){let{children:t,id:n,root:o=null,preserveTabOrder:i=!0}=e;const u=function(e){let{id:t,root:n}=void 0===e?{}:e;const[o,i]=r.useState(null),u=z(),c=xe(),s=r.useMemo((()=>({id:t,root:n,portalContext:c,uniqueId:u})),[t,n,c,u]),a=r.useRef();return N((()=>()=>{null==o||o.remove()}),[o,s]),N((()=>{if(a.current===s)return;a.current=s;const{id:e,root:t,portalContext:n,uniqueId:r}=s,o=e?document.getElementById(e):null,u=Z("portal");if(o){const e=document.createElement("div");e.id=r,e.setAttribute(u,""),o.appendChild(e),i(e)}else{let o=t||(null==n?void 0:n.portalNode);o&&!(0,l.kK)(o)&&(o=o.current),o=o||document.body;let c=null;e&&(c=document.createElement("div"),c.id=e,o.appendChild(c));const s=document.createElement("div");s.id=r,s.setAttribute(u,""),o=c||o,o.appendChild(s),i(s)}}),[s]),o}({id:n,root:o}),[c,s]=r.useState(null),a=r.useRef(null),f=r.useRef(null),d=r.useRef(null),p=r.useRef(null),m=!!c&&!c.modal&&c.open&&i&&!(!o&&!u);return r.useEffect((()=>{if(u&&i&&(null==c||!c.modal))return u.addEventListener("focusin",e,!0),u.addEventListener("focusout",e,!0),()=>{u.removeEventListener("focusin",e,!0),u.removeEventListener("focusout",e,!0)};function e(e){if(u&&pe(e)){("focusin"===e.type?ve:me)(u)}}}),[u,i,null==c?void 0:c.modal]),r.createElement(be.Provider,{value:r.useMemo((()=>({preserveTabOrder:i,beforeOutsideRef:a,afterOutsideRef:f,beforeInsideRef:d,afterInsideRef:p,portalNode:u,setFocusManagerState:s})),[i,u])},m&&u&&r.createElement(ye,{"data-type":"outside",ref:a,onFocus:e=>{if(pe(e,u)){var t;null==(t=d.current)||t.focus()}else{const e=de()||(null==c?void 0:c.refs.domReference.current);null==e||e.focus()}}}),m&&u&&r.createElement("span",{"aria-owns":u.id,style:he}),u&&(0,C.createPortal)(t,u),m&&u&&r.createElement(ye,{"data-type":"outside",ref:f,onFocus:e=>{if(pe(e,u)){var t;null==(t=p.current)||t.focus()}else{const t=fe()||(null==c?void 0:c.refs.domReference.current);null==t||t.focus(),(null==c?void 0:c.closeOnFocusOut)&&(null==c||c.onOpenChange(!1,e.nativeEvent))}}}))}const xe=()=>r.useContext(be),Ee=r.forwardRef((function(e,t){return r.createElement("button",B({},e,{type:"button",ref:t,tabIndex:-1,style:he}))}));function Re(e){const{context:t,children:n,disabled:o=!1,order:u=["content"],guards:c=!0,initialFocus:s=0,returnFocus:a=!0,modal:f=!0,visuallyHiddenDismiss:d=!1,closeOnFocusOut:p=!0}=e,{open:m,refs:v,nodeId:h,onOpenChange:g,events:y,dataRef:b,elements:{domReference:w,floating:x}}=t,E="undefined"===typeof HTMLElement||!("inert"in HTMLElement.prototype)||c,R=G(u),k=G(s),S=G(a),A=U(),L=xe(),C="number"===typeof s&&s<0,P=r.useRef(null),M=r.useRef(null),F=r.useRef(!1),O=r.useRef(null),D=r.useRef(!1),K=null!=L,W=w&&"combobox"===w.getAttribute("role")&&(0,i.j7)(w)&&C,B=r.useCallback((function(e){return void 0===e&&(e=x),e?T(e,se()):[]}),[x]),V=r.useCallback((e=>{const t=B(e);return R.current.map((e=>w&&"reference"===e?w:x&&"floating"===e?x:t)).filter(Boolean).flat()}),[w,x,R,B]);function q(e){return!o&&d&&f?r.createElement(Ee,{ref:"start"===e?P:M,onClick:e=>g(!1,e.nativeEvent)},"string"===typeof d?d:"Dismiss"):null}r.useEffect((()=>{if(o||!f)return;function e(e){if("Tab"===e.key){(0,i.r3)(x,(0,i.AW)((0,i.Me)(x)))&&0===B().length&&!W&&(0,i.p7)(e);const t=V(),n=(0,i.U9)(e);"reference"===R.current[0]&&n===w&&((0,i.p7)(e),e.shiftKey?I(t[t.length-1]):I(t[1])),"floating"===R.current[1]&&n===x&&e.shiftKey&&((0,i.p7)(e),I(t[0]))}}const t=(0,i.Me)(x);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[o,w,x,f,R,v,W,B,V]),r.useEffect((()=>{if(!o&&p)return x&&(0,l.Re)(w)?(w.addEventListener("focusout",t),w.addEventListener("pointerdown",e),!f&&x.addEventListener("focusout",t),()=>{w.removeEventListener("focusout",t),w.removeEventListener("pointerdown",e),!f&&x.removeEventListener("focusout",t)}):void 0;function e(){D.current=!0,setTimeout((()=>{D.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const n=!((0,i.r3)(w,t)||(0,i.r3)(x,t)||(0,i.r3)(t,x)||(0,i.r3)(null==L?void 0:L.portalNode,t)||null!=t&&t.hasAttribute(Z("focus-guard"))||A&&(te(A.nodesRef.current,h).find((e=>{var n,r;return(0,i.r3)(null==(n=e.context)?void 0:n.elements.floating,t)||(0,i.r3)(null==(r=e.context)?void 0:r.elements.domReference,t)}))||function(e,t){var n;let r=[],o=null==(n=e.find((e=>e.id===t)))?void 0:n.parentId;for(;o;){const t=e.find((e=>e.id===o));o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(A.nodesRef.current,h).find((e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t}))));t&&n&&!D.current&&t!==O.current&&(F.current=!0,g(!1,e))}))}}),[o,w,x,f,h,A,L,g,p]),r.useEffect((()=>{var e;if(o)return;const t=Array.from((null==L||null==(e=L.portalNode)?void 0:e.querySelectorAll("["+Z("portal")+"]"))||[]);if(x){const e=[x,...t,P.current,M.current,R.current.includes("reference")||W?w:null].filter((e=>null!=e)),n=f?ce(e,E,!E):ce(e);return()=>{n()}}}),[o,w,x,f,R,L,W,E]),N((()=>{if(o||!x)return;const e=(0,i.Me)(x),t=(0,i.AW)(e);queueMicrotask((()=>{const e=V(x),n=k.current,r=("number"===typeof n?e[n]:n.current)||x,o=(0,i.r3)(x,t);C||o||!m||I(r,{preventScroll:r===x})}))}),[o,m,x,C,V,k]),N((()=>{if(o||!x)return;let e=!1;const t=(0,i.Me)(x),n=(0,i.AW)(t),r=b.current;function u(t){if("escapeKey"===t.type&&v.domReference.current&&(O.current=v.domReference.current),["referencePress","escapeKey"].includes(t.type))return;const n=t.data.returnFocus;"object"===typeof n?(F.current=!1,e=n.preventScroll):F.current=!n}return O.current=n,y.on("dismiss",u),()=>{y.off("dismiss",u);const n=(0,i.AW)(t);((0,i.r3)(x,n)||A&&te(A.nodesRef.current,h).some((e=>{var t;return(0,i.r3)(null==(t=e.context)?void 0:t.elements.floating,n)}))||r.openEvent&&["click","mousedown"].includes(r.openEvent.type))&&v.domReference.current&&(O.current=v.domReference.current),S.current&&(0,l.Re)(O.current)&&!F.current&&I(O.current,{cancelPrevious:!1,preventScroll:e})}}),[o,x,S,b,v,y,A,h]),N((()=>{if(!o&&L)return L.setFocusManagerState({modal:f,closeOnFocusOut:p,open:m,onOpenChange:g,refs:v}),()=>{L.setFocusManagerState(null)}}),[o,L,f,m,g,v,p]),N((()=>{if(!o&&x&&"function"===typeof MutationObserver&&!C){const e=()=>{const e=x.getAttribute("tabindex");R.current.includes("floating")||(0,i.AW)((0,i.Me)(x))!==v.domReference.current&&0===B().length?"0"!==e&&x.setAttribute("tabindex","0"):"-1"!==e&&x.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(x,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}}),[o,x,v,R,B,C]);const j=!o&&E&&!W&&(K||f);return r.createElement(r.Fragment,null,j&&r.createElement(ye,{"data-type":"inside",ref:null==L?void 0:L.beforeInsideRef,onFocus:e=>{if(f){const e=V();I("reference"===u[0]?e[0]:e[e.length-1])}else if(null!=L&&L.preserveTabOrder&&L.portalNode)if(F.current=!1,pe(e,L.portalNode)){const e=fe()||w;null==e||e.focus()}else{var t;null==(t=L.beforeOutsideRef.current)||t.focus()}}}),!W&&q("start"),n,q("end"),j&&r.createElement(ye,{"data-type":"inside",ref:null==L?void 0:L.afterInsideRef,onFocus:e=>{if(f)I(V()[0]);else if(null!=L&&L.preserveTabOrder&&L.portalNode)if(p&&(F.current=!0),pe(e,L.portalNode)){const e=de()||w;null==e||e.focus()}else{var t;null==(t=L.afterOutsideRef.current)||t.focus()}}}))}const ke=o["useInsertionEffect".toString()]||(e=>e());function Se(e){const t=r.useRef((()=>{0}));return ke((()=>{t.current=e})),r.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}const Ae={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Le={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"};function Te(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,events:u,nodeId:c,elements:{reference:s,domReference:a,floating:f},dataRef:d}=e,{enabled:p=!0,escapeKey:m=!0,outsidePress:v=!0,outsidePressEvent:h="pointerdown",referencePress:g=!1,referencePressEvent:y="pointerdown",ancestorScroll:b=!1,bubbles:w}=t,x=U(),E=null!=Y(),R=Se("function"===typeof v?v:()=>!1),k="function"===typeof v?R:v,S=r.useRef(!1),{escapeKeyBubbles:A,outsidePressBubbles:L}=(e=>{var t,n;return{escapeKeyBubbles:"boolean"===typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePressBubbles:"boolean"===typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}})(w),T=Se((e=>{if(!n||!p||!m||"Escape"!==e.key)return;const t=x?te(x.nodesRef.current,c):[];if(!A&&(e.stopPropagation(),t.length>0)){let e=!0;if(t.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}u.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),o(!1,(0,i.MM)(e)?e.nativeEvent:e)})),C=Se((e=>{const t=S.current;if(S.current=!1,t)return;if("function"===typeof k&&!k(e))return;const n=(0,i.U9)(e),r="["+Z("inert")+"]",s=(0,i.Me)(f).querySelectorAll(r);let d=(0,l.kK)(n)?n:null;for(;d&&!(0,l.Py)(d);){const e=(0,l.Ow)(d);if(e===(0,i.Me)(f).body||!(0,l.kK)(e))break;d=e}if(s.length&&(0,l.kK)(n)&&!(0,i.ex)(n)&&!(0,i.r3)(n,f)&&Array.from(s).every((e=>!(0,i.r3)(d,e))))return;if((0,l.Re)(n)&&f){const t=n.clientWidth>0&&n.scrollWidth>n.clientWidth,r=n.clientHeight>0&&n.scrollHeight>n.clientHeight;let o=r&&e.offsetX>n.clientWidth;if(r){"rtl"===(0,l.Dx)(n).direction&&(o=e.offsetX<=n.offsetWidth-n.clientWidth)}if(o||t&&e.offsetY>n.clientHeight)return}const p=x&&te(x.nodesRef.current,c).some((t=>{var n;return(0,i.Pe)(e,null==(n=t.context)?void 0:n.elements.floating)}));if((0,i.Pe)(e,f)||(0,i.Pe)(e,a)||p)return;const m=x?te(x.nodesRef.current,c):[];if(m.length>0){let e=!0;if(m.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}u.emit("dismiss",{type:"outsidePress",data:{returnFocus:E?{preventScroll:!0}:(0,i.Zj)(e)||(0,i.cr)(e)}}),o(!1,e)}));return r.useEffect((()=>{if(!n||!p)return;function e(e){o(!1,e)}d.current.__escapeKeyBubbles=A,d.current.__outsidePressBubbles=L;const t=(0,i.Me)(f);m&&t.addEventListener("keydown",T),k&&t.addEventListener(h,C);let r=[];return b&&((0,l.kK)(a)&&(r=(0,l.Kx)(a)),(0,l.kK)(f)&&(r=r.concat((0,l.Kx)(f))),!(0,l.kK)(s)&&s&&s.contextElement&&(r=r.concat((0,l.Kx)(s.contextElement)))),r=r.filter((e=>{var n;return e!==(null==(n=t.defaultView)?void 0:n.visualViewport)})),r.forEach((t=>{t.addEventListener("scroll",e,{passive:!0})})),()=>{m&&t.removeEventListener("keydown",T),k&&t.removeEventListener(h,C),r.forEach((t=>{t.removeEventListener("scroll",e)}))}}),[d,f,a,s,m,k,h,n,o,b,p,A,L,T,C]),r.useEffect((()=>{S.current=!1}),[k,h]),r.useMemo((()=>p?{reference:{onKeyDown:T,[Ae[y]]:e=>{g&&(u.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),o(!1,e.nativeEvent))}},floating:{onKeyDown:T,[Le[h]]:()=>{S.current=!0}}}:{}),[p,u,g,h,y,o,T])}function Ce(e){var t;void 0===e&&(e={});const{open:n=!1,onOpenChange:o,nodeId:i}=e;const[u,s]=r.useState(null),a=(null==(t=e.elements)?void 0:t.reference)||u,f=(0,c.YF)(e),d=U(),p=Se(((e,t)=>{e&&(v.current.openEvent=t),null==o||o(e,t)})),m=r.useRef(null),v=r.useRef({}),h=r.useState((()=>_()))[0],g=z(),y=r.useCallback((e=>{const t=(0,l.kK)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;f.refs.setReference(t)}),[f.refs]),b=r.useCallback((e=>{((0,l.kK)(e)||null===e)&&(m.current=e,s(e)),((0,l.kK)(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!(0,l.kK)(e))&&f.refs.setReference(e)}),[f.refs]),w=r.useMemo((()=>({...f.refs,setReference:b,setPositionReference:y,domReference:m})),[f.refs,b,y]),x=r.useMemo((()=>({...f.elements,domReference:a})),[f.elements,a]),E=r.useMemo((()=>({...f,refs:w,elements:x,dataRef:v,nodeId:i,floatingId:g,events:h,open:n,onOpenChange:p})),[f,i,g,h,n,p,w,x]);return N((()=>{const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===i));e&&(e.context=E)})),r.useMemo((()=>({...f,context:E,refs:w,elements:x})),[f,w,x,E])}function Pe(e,t,n){const r=new Map;return{..."floating"===n&&{tabIndex:-1},...e,...t.map((e=>e?e[n]:null)).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,o]=t;var i;0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"===typeof o&&(null==(i=r.get(n))||i.push(o),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=o})),e):e),{})}}function Me(e){void 0===e&&(e=[]);const t=e,n=r.useCallback((t=>Pe(t,e,"reference")),t),o=r.useCallback((t=>Pe(t,e,"floating")),t),i=r.useCallback((t=>Pe(t,e,"item")),e.map((e=>null==e?void 0:e.item)));return r.useMemo((()=>({getReferenceProps:n,getFloatingProps:o,getItemProps:i})),[n,o,i])}function Fe(e,t){void 0===t&&(t={});const{open:n,floatingId:o}=e,{enabled:i=!0,role:u="dialog"}=t,l=z();return r.useMemo((()=>{const e={id:o,role:u};return i?"tooltip"===u?{reference:{"aria-describedby":n?o:void 0},floating:e}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":"alertdialog"===u?"dialog":u,"aria-controls":n?o:void 0,..."listbox"===u&&{role:"combobox"},..."menu"===u&&{id:l}},floating:{...e,..."menu"===u&&{"aria-labelledby":l}}}:{}}),[i,u,n,o,l])}function Oe(e,t){void 0===t&&(t={});const{open:n,elements:{floating:o}}=e,{duration:i=250}=t,u=("number"===typeof i?i:i.close)||0,[l,c]=r.useState(!1),[s,a]=r.useState("unmounted"),f=function(e,t){const[n,o]=r.useState(e);return e&&!n&&o(!0),r.useEffect((()=>{if(!e){const e=setTimeout((()=>o(!1)),t);return()=>clearTimeout(e)}}),[e,t]),n}(n,u);return N((()=>{l&&!f&&a("unmounted")}),[l,f]),N((()=>{if(o){if(n){a("initial");const e=requestAnimationFrame((()=>{a("open")}));return()=>{cancelAnimationFrame(e)}}c(!0),a("close")}}),[n,o]),{isMounted:f,status:s}}function De(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let u=0,l=i-1;u<i;l=u++){const[e,i]=t[u]||[0,0],[c,s]=t[l]||[0,0];i>=r!==s>=r&&n<=(c-e)*(r-i)/(s-i)+e&&(o=!o)}return o}function Ie(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,u=!1,c=null,s=null,a=performance.now();const f=e=>{let{x:n,y:f,placement:d,elements:p,onClose:m,nodeId:v,tree:h}=e;return function(e){function g(){clearTimeout(o),m()}if(clearTimeout(o),!p.domReference||!p.floating||null==d||null==n||null==f)return;const{clientX:y,clientY:b}=e,w=[y,b],x=(0,i.U9)(e),E="mouseleave"===e.type,R=(0,i.r3)(p.floating,x),k=(0,i.r3)(p.domReference,x),S=p.domReference.getBoundingClientRect(),A=p.floating.getBoundingClientRect(),L=d.split("-")[0],T=n>A.right-A.width/2,C=f>A.bottom-A.height/2,P=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(w,S),M=A.width>S.width,F=A.height>S.height,O=(M?S:A).left,D=(M?S:A).right,I=(F?S:A).top,N=(F?S:A).bottom;if(R&&(u=!0,!E))return;if(k&&(u=!1),k&&!E)return void(u=!0);if(E&&(0,l.kK)(e.relatedTarget)&&(0,i.r3)(p.floating,e.relatedTarget))return;if(h&&te(h.nodesRef.current,v).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===L&&f>=S.bottom-1||"bottom"===L&&f<=S.top+1||"left"===L&&n>=S.right-1||"right"===L&&n<=S.left+1)return g();let K=[];switch(L){case"top":K=[[O,S.top+1],[O,A.bottom-1],[D,A.bottom-1],[D,S.top+1]];break;case"bottom":K=[[O,A.top+1],[O,S.bottom-1],[D,S.bottom-1],[D,A.top+1]];break;case"left":K=[[A.right-1,N],[A.right-1,I],[S.left+1,I],[S.left+1,N]];break;case"right":K=[[S.right-1,N],[S.right-1,I],[A.left+1,I],[A.left+1,N]]}if(!De([y,b],K)){if(u&&!P)return g();if(!E&&r){const t=function(e,t){const n=performance.now(),r=n-a;if(null===c||null===s||0===r)return c=e,s=t,a=n,null;const o=e-c,i=t-s,u=Math.sqrt(o*o+i*i);return c=e,s=t,a=n,u/r}(e.clientX,e.clientY),n=.1;if(null!==t&&t<n)return g()}De([y,b],function(e){let[n,r]=e;switch(L){case"top":return[[M?n+t/2:T?n+4*t:n-4*t,r+t+1],[M?n-t/2:T?n+4*t:n-4*t,r+t+1],...[[A.left,T||M?A.bottom-t:A.top],[A.right,T?M?A.bottom-t:A.top:A.bottom-t]]];case"bottom":return[[M?n+t/2:T?n+4*t:n-4*t,r-t],[M?n-t/2:T?n+4*t:n-4*t,r-t],...[[A.left,T||M?A.top+t:A.bottom],[A.right,T?M?A.top+t:A.bottom:A.top+t]]];case"left":{const e=[n+t+1,F?r+t/2:C?r+4*t:r-4*t],o=[n+t+1,F?r-t/2:C?r+4*t:r-4*t];return[...[[C||F?A.right-t:A.left,A.top],[C?F?A.right-t:A.left:A.right-t,A.bottom]],e,o]}case"right":return[[n-t,F?r+t/2:C?r+4*t:r-4*t],[n-t,F?r-t/2:C?r+4*t:r-4*t],...[[C||F?A.left+t:A.right,A.top],[C?F?A.left+t:A.right:A.left+t,A.bottom]]]}}([n,f]))?!u&&r&&(o=window.setTimeout(g,40)):g()}}};return f.__options={blockPointerEvents:n},f}},4029:function(e,t,n){n.d(t,{Ct:function(){return o},Fp:function(){return u},GW:function(){return c},Go:function(){return E},I4:function(){return g},JB:function(){return A},KX:function(){return R},NM:function(){return l},Qq:function(){return y},Rn:function(){return h},VV:function(){return i},Wh:function(){return b},gy:function(){return x},hp:function(){return v},i8:function(){return w},k3:function(){return m},ku:function(){return p},pw:function(){return k},uZ:function(){return d},yd:function(){return S},ze:function(){return s}});const r=["start","end"],o=["top","right","bottom","left"].reduce(((e,t)=>e.concat(t,t+"-"+r[0],t+"-"+r[1])),[]),i=Math.min,u=Math.max,l=Math.round,c=Math.floor,s=e=>({x:e,y:e}),a={left:"right",right:"left",bottom:"top",top:"bottom"},f={start:"end",end:"start"};function d(e,t,n){return u(e,i(t,n))}function p(e,t){return"function"===typeof e?e(t):e}function m(e){return e.split("-")[0]}function v(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}function y(e){return["top","bottom"].includes(m(e))?"y":"x"}function b(e){return h(y(e))}function w(e,t,n){void 0===n&&(n=!1);const r=v(e),o=b(e),i=g(o);let u="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(u=k(u)),[u,k(u)]}function x(e){const t=k(e);return[E(e),t,E(t)]}function E(e){return e.replace(/start|end/g,(e=>f[e]))}function R(e,t,n,r){const o=v(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],u=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:u;default:return[]}}(m(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(E)))),i}function k(e){return e.replace(/left|right|bottom|top/g,(e=>a[e]))}function S(e){return"number"!==typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function A(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}},47372:function(e,t,n){function r(e){return u(e)?(e.nodeName||"").toLowerCase():"#document"}function o(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function i(e){var t;return null==(t=(u(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function u(e){return e instanceof Node||e instanceof o(e).Node}function l(e){return e instanceof Element||e instanceof o(e).Element}function c(e){return e instanceof HTMLElement||e instanceof o(e).HTMLElement}function s(e){return"undefined"!==typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof o(e).ShadowRoot)}function a(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=h(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function f(e){return["table","td","th"].includes(r(e))}function d(e){const t=m(),n=h(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function p(e){let t=y(e);for(;c(t)&&!v(t);){if(d(t))return t;t=y(t)}return null}function m(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function v(e){return["html","body","#document"].includes(r(e))}function h(e){return o(e).getComputedStyle(e)}function g(e){return l(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function y(e){if("html"===r(e))return e;const t=e.assignedSlot||e.parentNode||s(e)&&e.host||i(e);return s(t)?t.host:t}function b(e){const t=y(e);return v(t)?e.ownerDocument?e.ownerDocument.body:e.body:c(t)&&a(t)?t:b(t)}function w(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=b(e),u=i===(null==(r=e.ownerDocument)?void 0:r.body),l=o(i);return u?t.concat(l,l.visualViewport||[],a(i)?i:[],l.frameElement&&n?w(l.frameElement):[]):t.concat(i,w(i))}n.d(t,{Dx:function(){return h},Jj:function(){return o},Kx:function(){return w},Lw:function(){return g},Ow:function(){return y},Pf:function(){return m},Py:function(){return v},Re:function(){return c},Ze:function(){return f},Zq:function(){return s},ao:function(){return a},gQ:function(){return p},hT:function(){return d},kK:function(){return l},tF:function(){return i},wk:function(){return r}})},19850:function(e,t,n){n.d(t,{AW:function(){return o},G6:function(){return s},MM:function(){return f},Me:function(){return p},Pe:function(){return m},U9:function(){return v},Zj:function(){return l},cr:function(){return c},ex:function(){return d},j7:function(){return h},p7:function(){return g},r:function(){return a},r3:function(){return i}});var r=n(47372);function o(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(r=n.shadowRoot)?void 0:r.activeElement);){var n,r;t=t.shadowRoot.activeElement}return t}function i(e,t){if(!e||!t)return!1;const n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&(0,r.Zq)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function u(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function l(e){if(0===e.mozInputSource&&e.isTrusted)return!0;const t=/Android/i;return(t.test(u())||t.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}()))&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType}function c(e){return 0===e.width&&0===e.height||1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"!==e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail}function s(){return/apple/i.test(navigator.vendor)}function a(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function f(e){return"nativeEvent"in e}function d(e){return e.matches("html,body")}function p(e){return(null==e?void 0:e.ownerDocument)||document}function m(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function v(e){return"composedPath"in e?e.composedPath()[0]:e.target}function h(e){return(0,r.Re)(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function g(e){e.preventDefault(),e.stopPropagation()}}}]);