"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[66],{4569:(t,e,n)=>{n.d(e,{AO:()=>O,Kr:()=>A,nq:()=>C});var r='input:not([inert]):not([inert] *),select:not([inert]):not([inert] *),textarea:not([inert]):not([inert] *),a[href]:not([inert]):not([inert] *),area[href]:not([inert]):not([inert] *),button:not([inert]):not([inert] *),[tabindex]:not(slot):not([inert]):not([inert] *),audio[controls]:not([inert]):not([inert] *),video[controls]:not([inert]):not([inert] *),[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *),details>summary:first-of-type:not([inert]):not([inert] *),details:not([inert]):not([inert] *)',o="u"<typeof Element,i=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,l=!o&&Element.prototype.getRootNode?function(t){var e;return null==t||null==(e=t.getRootNode)?void 0:e.call(t)}:function(t){return null==t?void 0:t.ownerDocument},u=function(t,e){void 0===e&&(e=!0);var n,r=null==t||null==(n=t.getAttribute)?void 0:n.call(t,"inert");return""===r||"true"===r||e&&t&&("function"==typeof t.closest?t.closest("[inert]"):u(t.parentNode))},a=function(t){var e,n=null==t||null==(e=t.getAttribute)?void 0:e.call(t,"contenteditable");return""===n||"true"===n},c=function(t,e,n){if(u(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(r));return e&&i.call(t,r)&&o.unshift(t),o=o.filter(n)},f=function(t,e,n){for(var o=[],l=Array.from(t);l.length;){var a=l.shift();if(!u(a,!1))if("SLOT"===a.tagName){var c=a.assignedElements(),s=f(c.length?c:a.children,!0,n);n.flatten?o.push.apply(o,s):o.push({scopeParent:a,candidates:s})}else{i.call(a,r)&&n.filter(a)&&(e||!t.includes(a))&&o.push(a);var d=a.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(a),p=!u(d,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(d&&p){var h=f(!0===d?a.children:d.children,!0,n);n.flatten?o.push.apply(o,h):o.push({scopeParent:a,candidates:h})}else l.unshift.apply(l,a.children)}}return o},s=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},d=function(t){if(!t)throw Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||a(t))&&!s(t)?0:t.tabIndex},p=function(t,e){var n=d(t);return n<0&&e&&!s(t)?0:n},h=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},m=function(t){return"INPUT"===t.tagName},g=function(t,e){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)return t[n]},v=function(t){if(!t.name)return!0;var e,n=t.form||l(t),r=function(t){return n.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("u">typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=r(window.CSS.escape(t.name));else try{e=r(t.name)}catch(t){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",t.message),!1}var o=g(e,t.form);return!o||o===t},y=function(t){return m(t)&&"radio"===t.type&&!v(t)},w=function(t){var e,n,r,o,i,u,a,c=t&&l(t),f=null==(e=c)?void 0:e.host,s=!1;if(c&&c!==t)for(s=!!(null!=(n=f)&&null!=(r=n.ownerDocument)&&r.contains(f)||null!=t&&null!=(o=t.ownerDocument)&&o.contains(t));!s&&f;)s=!!(null!=(u=f=null==(i=c=l(f))?void 0:i.host)&&null!=(a=u.ownerDocument)&&a.contains(f));return s},b=function(t){var e=t.getBoundingClientRect(),n=e.width,r=e.height;return 0===n&&0===r},x=function(t,e){var n=e.displayCheck,r=e.getShadowRoot;if("full-native"===n&&"checkVisibility"in t)return!t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var o=getComputedStyle(t).visibility;if("hidden"===o||"collapse"===o)return!0;var u=i.call(t,"details>summary:first-of-type")?t.parentElement:t;if(i.call(u,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return b(t)}else{if("function"==typeof r){for(var a=t;t;){var c=t.parentElement,f=l(t);if(c&&!c.shadowRoot&&!0===r(c))return b(t);t=t.assignedSlot?t.assignedSlot:c||f===t.ownerDocument?c:f.host}t=a}if(w(t))return!t.getClientRects().length;if("legacy-full"!==n)return!0}return!1},R=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var n=0;n<e.children.length;n++){var r=e.children.item(n);if("LEGEND"===r.tagName)return!!i.call(e,"fieldset[disabled] *")||!r.contains(t)}return!0}e=e.parentElement}return!1},E=function(t,e){return!(e.disabled||m(e)&&"hidden"===e.type||x(e,t)||"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(t){return"SUMMARY"===t.tagName})||R(e))},S=function(t,e){return!(y(e)||0>d(e))&&!!E(t,e)},L=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!isNaN(e)||!!(e>=0)},T=function(t){var e=[],n=[];return t.forEach(function(t,r){var o=!!t.scopeParent,i=o?t.scopeParent:t,l=p(i,o),u=o?T(t.candidates):i;0===l?o?e.push.apply(e,u):e.push(i):n.push({documentOrder:r,tabIndex:l,item:t,isScope:o,content:u})}),n.sort(h).reduce(function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t},[]).concat(e)},A=function(t,e){return T((e=e||{}).getShadowRoot?f([t],e.includeContainer,{filter:S.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:L}):c(t,e.includeContainer,S.bind(null,e)))},C=function(t,e){return(e=e||{}).getShadowRoot?f([t],e.includeContainer,{filter:E.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):c(t,e.includeContainer,E.bind(null,e))},O=function(t,e){if(e=e||{},!t)throw Error("No node provided");return!1!==i.call(t,r)&&S(e,t)}},6791:(t,e,n)=>{let r;function o(){return"u">typeof window}function i(t){return a(t)?(t.nodeName||"").toLowerCase():"#document"}function l(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function u(t){var e;return null==(e=(a(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function a(t){return!!o()&&(t instanceof Node||t instanceof l(t).Node)}function c(t){return!!o()&&(t instanceof Element||t instanceof l(t).Element)}function f(t){return!!o()&&(t instanceof HTMLElement||t instanceof l(t).HTMLElement)}function s(t){return!(!o()||"u"<typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof l(t).ShadowRoot)}function d(t){let{overflow:e,overflowX:n,overflowY:r,display:o}=R(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&"inline"!==o&&"contents"!==o}function p(t){return/^(table|td|th)$/.test(i(t))}function h(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}n.d(e,{$4:()=>S,CP:()=>E,L9:()=>R,Ll:()=>a,Lv:()=>p,Ng:()=>s,Tc:()=>b,Tf:()=>h,ZU:()=>d,_m:()=>L,ep:()=>u,eu:()=>x,gJ:()=>w,mq:()=>i,sQ:()=>y,sb:()=>f,v9:()=>function t(e,n,r){var o;void 0===n&&(n=[]),void 0===r&&(r=!0);let i=function t(e){let n=S(e);return x(n)?(e.ownerDocument||e).body:f(n)&&d(n)?n:t(n)}(e),u=i===(null==(o=e.ownerDocument)?void 0:o.body),a=l(i);if(!u)return n.concat(i,t(i,[],r));{let e=L(a);return n.concat(a,a.visualViewport||[],d(i)?i:[],e&&r?t(e):[])}},vq:()=>c,zk:()=>l});let m=/transform|translate|scale|rotate|perspective|filter/,g=/paint|layout|strict|content/,v=t=>!!t&&"none"!==t;function y(t){let e=c(t)?R(t):t;return v(e.transform)||v(e.translate)||v(e.scale)||v(e.rotate)||v(e.perspective)||!b()&&(v(e.backdropFilter)||v(e.filter))||m.test(e.willChange||"")||g.test(e.contain||"")}function w(t){let e=S(t);for(;f(e)&&!x(e);){if(y(e))return e;if(h(e))break;e=S(e)}return null}function b(){return null==r&&(r="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function x(t){return/^(html|body|#document)$/.test(i(t))}function R(t){return l(t).getComputedStyle(t)}function E(t){return c(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function S(t){if("html"===i(t))return t;let e=t.assignedSlot||t.parentNode||s(t)&&t.host||u(t);return s(e)?e.host:e}function L(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}},9683:(t,e,n)=>{n.d(e,{BN:()=>p,UE:()=>g,UU:()=>h,cY:()=>d,jD:()=>m,we:()=>s});var r=n(17294),o=n(12115),i=n(47650),l="u">typeof document?o.useLayoutEffect:function(){};function u(t,e){let n,r,o;if(t===e)return!0;if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if((n=t.length)!==e.length)return!1;for(r=n;0!=r--;)if(!u(t[r],e[r]))return!1;return!0}if((n=(o=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(e,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!t.$$typeof)&&!u(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}function a(t){return"u"<typeof window?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function c(t,e){let n=a(t);return Math.round(e*n)/n}function f(t){let e=o.useRef(t);return l(()=>{e.current=t}),e}function s(t){void 0===t&&(t={});let{placement:e="bottom",strategy:n="absolute",middleware:s=[],platform:d,elements:{reference:p,floating:h}={},transform:m=!0,whileElementsMounted:g,open:v}=t,[y,w]=o.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[b,x]=o.useState(s);u(b,s)||x(s);let[R,E]=o.useState(null),[S,L]=o.useState(null),T=o.useCallback(t=>{t!==k.current&&(k.current=t,E(t))},[]),A=o.useCallback(t=>{t!==P.current&&(P.current=t,L(t))},[]),C=p||R,O=h||S,k=o.useRef(null),P=o.useRef(null),N=o.useRef(y),D=null!=g,I=f(g),F=f(d),M=f(v),q=o.useCallback(()=>{if(!k.current||!P.current)return;let t={placement:e,strategy:n,middleware:b};F.current&&(t.platform=F.current),(0,r.rD)(k.current,P.current,t).then(t=>{let e={...t,isPositioned:!1!==M.current};z.current&&!u(N.current,e)&&(N.current=e,i.flushSync(()=>{w(e)}))})},[b,e,n,F,M]);l(()=>{!1===v&&N.current.isPositioned&&(N.current.isPositioned=!1,w(t=>({...t,isPositioned:!1})))},[v]);let z=o.useRef(!1);l(()=>(z.current=!0,()=>{z.current=!1}),[]),l(()=>{if(C&&(k.current=C),O&&(P.current=O),C&&O){if(I.current)return I.current(C,O,q);q()}},[C,O,q,I,D]);let U=o.useMemo(()=>({reference:k,floating:P,setReference:T,setFloating:A}),[T,A]),V=o.useMemo(()=>({reference:C,floating:O}),[C,O]),H=o.useMemo(()=>{let t={position:n,left:0,top:0};if(!V.floating)return t;let e=c(V.floating,y.x),r=c(V.floating,y.y);return m?{...t,transform:"translate("+e+"px, "+r+"px)",...a(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:e,top:r}},[n,m,V.floating,y.x,y.y]);return o.useMemo(()=>({...y,update:q,refs:U,elements:V,floatingStyles:H}),[y,q,U,V,H])}let d=(t,e)=>{let n=(0,r.cY)(t);return{name:n.name,fn:n.fn,options:[t,e]}},p=(t,e)=>{let n=(0,r.BN)(t);return{name:n.name,fn:n.fn,options:[t,e]}},h=(t,e)=>{let n=(0,r.UU)(t);return{name:n.name,fn:n.fn,options:[t,e]}},m=(t,e)=>{let n=(0,r.jD)(t);return{name:n.name,fn:n.fn,options:[t,e]}},g=(t,e)=>{let n={name:"arrow",options:t,fn(e){let{element:n,padding:o}="function"==typeof t?t(e):t;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?(0,r.UE)({element:n.current,padding:o}).fn(e):{}:n?(0,r.UE)({element:n,padding:o}).fn(e):{}}};return{name:n.name,fn:n.fn,options:[t,e]}}},17294:(t,e,n)=>{n.d(e,{UE:()=>K,ll:()=>Y,rD:()=>X,UU:()=>J,jD:()=>G,cY:()=>Q,BN:()=>Z});let r=["top","right","bottom","left"],o=Math.min,i=Math.max,l=Math.round,u=Math.floor,a=t=>({x:t,y:t}),c={left:"right",right:"left",bottom:"top",top:"bottom"};function f(t,e){return"function"==typeof t?t(e):t}function s(t){return t.split("-")[0]}function d(t){return t.split("-")[1]}function p(t){return"x"===t?"y":"x"}function h(t){return"y"===t?"height":"width"}function m(t){let e=t[0];return"t"===e||"b"===e?"y":"x"}function g(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}let v=["left","right"],y=["right","left"],w=["top","bottom"],b=["bottom","top"];function x(t){let e=s(t);return c[e]+t.slice(e.length)}function R(t){var e,n,r,o;return"number"!=typeof t?{top:null!=(e=t.top)?e:0,right:null!=(n=t.right)?n:0,bottom:null!=(r=t.bottom)?r:0,left:null!=(o=t.left)?o:0}:{top:t,right:t,bottom:t,left:t}}function E(t){let{x:e,y:n,width:r,height:o}=t;return{width:r,height:o,top:n,left:e,right:e+r,bottom:n+o,x:e,y:n}}function S(t,e,n){let r,{reference:o,floating:i}=t,l=m(e),u=p(m(e)),a=h(u),c=s(e),f=o.x+o.width/2-i.width/2,g=o.y+o.height/2-i.height/2,v=o[a]/2-i[a]/2;switch(c){case"top":r={x:f,y:o.y-i.height};break;case"bottom":r={x:f,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:g};break;case"left":r={x:o.x-i.width,y:g};break;default:r={x:o.x,y:o.y}}let y=d(e);return y&&(r[u]+=v*("end"===y?1:-1)*(n&&"y"===l?-1:1)),r}async function L(t,e){var n;void 0===e&&(e={});let{x:r,y:o,platform:i,rects:l,elements:u,strategy:a}=t,{boundary:c="clippingAncestors",rootBoundary:s="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=f(e,t),m=R(h),g=u[p?"floating"===d?"reference":"floating":d],v=E(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(u.floating)),boundary:c,rootBoundary:s,strategy:a})),y="floating"===d?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,w=await (null==i.getOffsetParent?void 0:i.getOffsetParent(u.floating)),b=await (null==i.isElement?void 0:i.isElement(w))&&await (null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},x=E(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:y,offsetParent:w,strategy:a}):y);return{top:(v.top-x.top+m.top)/b.y,bottom:(x.bottom-v.bottom+m.bottom)/b.y,left:(v.left-x.left+m.left)/b.x,right:(x.right-v.right+m.right)/b.x}}let T=async(t,e,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,u=l.detectOverflow?l:{...l,detectOverflow:L},a=await (null==l.isRTL?void 0:l.isRTL(e)),c=await l.getElementRects({reference:t,floating:e,strategy:o}),{x:f,y:s}=S(c,r,a),d=r,p=0,h={};for(let n=0;n<i.length;n++){let m=i[n];if(!m)continue;let{name:g,fn:v}=m,{x:y,y:w,data:b,reset:x}=await v({x:f,y:s,initialPlacement:r,placement:d,strategy:o,middlewareData:h,rects:c,platform:u,elements:{reference:t,floating:e}});f=null!=y?y:f,s=null!=w?w:s,h[g]={...h[g],...b},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(c=!0===x.rects?await l.getElementRects({reference:t,floating:e,strategy:o}):x.rects),{x:f,y:s}=S(c,d,a)),n=-1)}return{x:f,y:s,placement:d,strategy:o,middlewareData:h}};function A(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function C(t){return r.some(e=>t[e]>=0)}let O=new Set(["left","top"]);async function k(t,e){let{placement:n,platform:r,elements:o}=t,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=s(n),u=d(n),a="y"===m(n),c=O.has(l)?-1:1,p=i&&a?-1:1,h=f(e,t),{mainAxis:g,crossAxis:v,alignmentAxis:y}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return u&&"number"==typeof y&&(v="end"===u?-1*y:y),a?{x:v*p,y:g*c}:{x:g*c,y:v*p}}var P=n(6791);function N(t){let e=(0,P.L9)(t),n=parseFloat(e.width)||0,r=parseFloat(e.height)||0,o=(0,P.sb)(t),i=o?t.offsetWidth:n,u=o?t.offsetHeight:r,a=l(n)!==i||l(r)!==u;return a&&(n=i,r=u),{width:n,height:r,$:a}}function D(t){return(0,P.vq)(t)?t:t.contextElement}function I(t){let e=D(t);if(!(0,P.sb)(e))return a(1);let n=e.getBoundingClientRect(),{width:r,height:o,$:i}=N(e),u=(i?l(n.width):n.width)/r,c=(i?l(n.height):n.height)/o;return u&&Number.isFinite(u)||(u=1),c&&Number.isFinite(c)||(c=1),{x:u,y:c}}let F=a(0);function M(t){let e=(0,P.zk)(t);return(0,P.Tc)()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:F}function q(t,e,n,r){var o;void 0===e&&(e=!1),void 0===n&&(n=!1);let i=t.getBoundingClientRect(),l=D(t),u=a(1);e&&(r?(0,P.vq)(r)&&(u=I(r)):u=I(t));let c=(void 0===(o=n)&&(o=!1),r&&o&&r===(0,P.zk)(l))?M(l):a(0),f=(i.left+c.x)/u.x,s=(i.top+c.y)/u.y,d=i.width/u.x,p=i.height/u.y;if(l&&r){let t=(0,P.zk)(l),e=(0,P.vq)(r)?(0,P.zk)(r):r,n=t,o=(0,P._m)(n);for(;o&&e!==n;){let t=I(o),e=o.getBoundingClientRect(),r=(0,P.L9)(o),i=e.left+(o.clientLeft+parseFloat(r.paddingLeft))*t.x,l=e.top+(o.clientTop+parseFloat(r.paddingTop))*t.y;f*=t.x,s*=t.y,d*=t.x,p*=t.y,f+=i,s+=l,n=(0,P.zk)(o),o=(0,P._m)(n)}}return E({width:d,height:p,x:f,y:s})}function z(t,e){let n=(0,P.CP)(t).scrollLeft;return e?e.left+n:q((0,P.ep)(t)).left+n}function U(t,e){let n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-z(t,n),y:n.top+e.scrollTop}}function V(t,e,n){var r;let o;if("viewport"===e||"layoutViewport"===e)o=function(t,e,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,o=(0,P.zk)(t),i=(0,P.ep)(t),l=o.visualViewport,u=i.clientWidth,a=i.clientHeight,c=0,f=0;if(l){let t=!(0,P.Tc)()||"fixed"===e;r?t||(c=-l.offsetLeft,f=-l.offsetTop):(u=l.width,a=l.height,t&&(c=l.offsetLeft,f=l.offsetTop))}if(0>=z(i)){let t=i.ownerDocument,e=t.body,n=getComputedStyle(e),r="CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(i.clientWidth-e.clientWidth-r),l="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;l<=25&&(u-=l)}return{width:u,height:a,x:c,y:f}}(t,n,e);else if("document"===e){let e,n,l,u,a,c;r=(0,P.ep)(t),e=(0,P.CP)(r),n=r.ownerDocument.body,l=i(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),u=i(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight),a=-e.scrollLeft+z(r),c=-e.scrollTop,"rtl"===(0,P.L9)(n).direction&&(a+=i(r.clientWidth,n.clientWidth)-l),o={width:l,height:u,x:a,y:c}}else if((0,P.vq)(e)){let t,r,i,l,u,a;r=(t=q(e,!0,"fixed"===n)).top+e.clientTop,i=t.left+e.clientLeft,l=I(e),u=e.clientWidth*l.x,a=e.clientHeight*l.y,o={width:u,height:a,x:i*l.x,y:r*l.y}}else{let n=M(t);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return E(o)}function H(t){return"static"===(0,P.L9)(t).position}function W(t,e){if(!(0,P.sb)(t)||"fixed"===(0,P.L9)(t).position)return null;if(e)return e(t);let n=t.offsetParent;return(0,P.ep)(t)===n&&(n=n.ownerDocument.body),n}function _(t,e){let n=(0,P.zk)(t);if((0,P.Tf)(t))return n;if(!(0,P.sb)(t)){let e=(0,P.$4)(t);for(;e&&!(0,P.eu)(e);){if((0,P.vq)(e)&&!H(e))return e;e=(0,P.$4)(e)}return n}let r=W(t,e);for(;r&&(0,P.Lv)(r)&&H(r);)r=W(r,e);return r&&(0,P.eu)(r)&&H(r)&&!(0,P.sQ)(r)?n:r||(0,P.gJ)(t)||n}let $=async function(t){let e=this.getOffsetParent||_,n=this.getDimensions,r=await n(t.floating);return{reference:function(t,e,n){let r=(0,P.sb)(e),o=(0,P.ep)(e),i="fixed"===n,l=q(t,!0,i,e),u={scrollLeft:0,scrollTop:0},c=a(0);if((r||!i)&&(("body"!==(0,P.mq)(e)||(0,P.ZU)(o))&&(u=(0,P.CP)(e)),r)){let t=q(e,!0,i,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}!r&&o&&(c.x=z(o));let f=!o||r||i?a(0):U(o,u);return{x:l.left+u.scrollLeft-c.x-f.x,y:l.top+u.scrollTop-c.y-f.y,width:l.width,height:l.height}}(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},B={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:r,strategy:o}=t,i="fixed"===o,l=(0,P.ep)(r),u=!!e&&(0,P.Tf)(e.floating);if(r===l||u&&i)return n;let c={scrollLeft:0,scrollTop:0},f=a(1),s=a(0),d=(0,P.sb)(r);if((d||!i)&&(("body"!==(0,P.mq)(r)||(0,P.ZU)(l))&&(c=(0,P.CP)(r)),d)){let t=q(r);f=I(r),s.x=t.x+r.clientLeft,s.y=t.y+r.clientTop}let p=!l||d||i?a(0):U(l,c);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+s.x+p.x,y:n.y*f.y-c.scrollTop*f.y+s.y+p.y}},getDocumentElement:P.ep,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:r,strategy:l}=t,u=[..."clippingAncestors"===n?(0,P.Tf)(e)?[]:function(t,e){let n=e.get(t);if(n)return n;let r=(0,P.v9)(t,[],!1).filter(t=>(0,P.vq)(t)&&"body"!==(0,P.mq)(t)),o=null,i="fixed"===(0,P.L9)(t).position,l=i?(0,P.$4)(t):t;for(;(0,P.vq)(l)&&!(0,P.eu)(l);){let t=(0,P.L9)(l),e=(0,P.sQ)(l),n=o?o.position:i?"fixed":"";e||"fixed"!==n&&("absolute"!==n||"static"!==t.position)?o=t:r=r.filter(t=>t!==l),l=(0,P.$4)(l)}return e.set(t,r),r}(e,this._c):[].concat(n),r],a=V(e,u[0],l),c=a.top,f=a.right,s=a.bottom,d=a.left;for(let t=1;t<u.length;t++){let n=V(e,u[t],l);c=i(n.top,c),f=o(n.right,f),s=o(n.bottom,s),d=i(n.left,d)}return{width:f-d,height:s-c,x:d,y:c}},getOffsetParent:_,getElementRects:$,getClientRects:function(t){return t.getClientRects?Array.from(t.getClientRects()):[]},getDimensions:function(t){let{width:e,height:n}=N(t);return{width:e,height:n}},getScale:I,isElement:P.vq,isRTL:function(t){return"rtl"===(0,P.L9)(t).direction}};function j(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Y(t,e,n,r){let l;void 0===r&&(r={});let{ancestorScroll:a=!0,ancestorResize:c=!0,elementResize:f="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,p=D(t),h=a||c?[...p?(0,P.v9)(p):[],...e?(0,P.v9)(e):[]]:[];h.forEach(t=>{a&&t.addEventListener("scroll",n),c&&t.addEventListener("resize",n)});let m=p&&s?function(t,e,n){let r,l=null,a=(0,P.ep)(t);function c(){var t;clearTimeout(r),null==(t=l)||t.disconnect(),l=null}function f(n,s){void 0===n&&(n=!1),void 0===s&&(s=1),c();let d=t.getBoundingClientRect(),{left:p,top:h,width:m,height:g}=d;if(n||e(),!m||!g)return;let v={rootMargin:-u(h)+"px "+-u(a.clientWidth-(p+m))+"px "+-u(a.clientHeight-(h+g))+"px "+-u(p)+"px",threshold:i(0,o(1,s))||1},y=!0;function w(e){let n=e[0].intersectionRatio;if(!j(d,t.getBoundingClientRect()))return f();if(n!==s){if(!y)return f();n?f(!1,n):r=setTimeout(()=>{f(!1,1e-7)},1e3)}y=!1}try{l=new IntersectionObserver(w,{...v,root:a.ownerDocument})}catch(t){l=new IntersectionObserver(w,v)}l.observe(t)}let s=(0,P.zk)(t),d=()=>f(n);return s.addEventListener("resize",d),f(!0),()=>{s.removeEventListener("resize",d),c()}}(p,n,c):null,g=-1,v=null;f&&(v=new ResizeObserver(t=>{let[r]=t;r&&r.target===p&&v&&e&&(v.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var t;null==(t=v)||t.observe(e)})),n()}),p&&!d&&v.observe(p),e&&v.observe(e));let y=d?q(t):null;return d&&function e(){let r=q(t);y&&!j(y,r)&&n(),y=r,l=requestAnimationFrame(e)}(),n(),()=>{var t;h.forEach(t=>{a&&t.removeEventListener("scroll",n),c&&t.removeEventListener("resize",n)}),null==m||m(),null==(t=v)||t.disconnect(),v=null,d&&cancelAnimationFrame(l)}}let Q=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,r;let{x:o,y:i,placement:l,middlewareData:u}=e,a=await k(e,t);return l===(null==(n=u.offset)?void 0:n.placement)&&null!=(r=u.arrow)&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:l}}}}},Z=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:r,placement:l,platform:u}=e,{mainAxis:a=!0,crossAxis:c=!1,limiter:s={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...d}=f(t,e),h={x:n,y:r},g=await u.detectOverflow(e,d),v=m(l),y=p(v),w=h[y],b=h[v],x=(t,e)=>i(e+g["y"===t?"top":"left"],o(e,e-g["y"===t?"bottom":"right"]));a&&(w=x(y,w)),c&&(b=x(v,b));let R=s.fn({...e,[y]:w,[v]:b});return{...R,data:{x:R.x-n,y:R.y-r,enabled:{[y]:a,[v]:c}}}}}},J=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,r,o,i,l,u,a,c;let R,E,S,{placement:L,middlewareData:T,rects:A,initialPlacement:C,platform:O,elements:k}=e,{mainAxis:P=!0,crossAxis:N=!0,fallbackPlacements:D,fallbackStrategy:I="bestFit",fallbackAxisSideDirection:F="none",flipAlignment:M=!0,...q}=f(t,e);if(null!=(n=T.arrow)&&n.alignmentOffset)return{};let z=s(L),U=m(C),V=s(C)===C,H=await (null==O.isRTL?void 0:O.isRTL(k.floating)),W=D||(V||!M?[x(C)]:(R=x(C),[g(C),R,g(R)])),_="none"!==F;!D&&_&&W.push(...(E=d(C),S=function(t,e,n){switch(t){case"top":case"bottom":if(n)return e?y:v;return e?v:y;case"left":case"right":return e?w:b;default:return[]}}(s(C),"start"===F,H),E&&(S=S.map(t=>t+"-"+E),M&&(S=S.concat(S.map(g)))),S));let $=[C,...W],B=await O.detectOverflow(e,q),j=[],Y=(null==(r=T.flip)?void 0:r.overflows)||[];if(P&&j.push(B[z]),N){let t,e,n,r,o=(u=L,a=A,void 0===(c=H)&&(c=!1),t=d(u),n=h(e=p(m(u))),r="x"===e?t===(c?"end":"start")?"right":"left":"start"===t?"bottom":"top",a.reference[n]>a.floating[n]&&(r=x(r)),[r,x(r)]);j.push(B[o[0]],B[o[1]])}if(Y=[...Y,{placement:L,overflows:j}],!j.every(t=>t<=0)){let t=((null==(o=T.flip)?void 0:o.index)||0)+1,e=$[t];if(e&&("alignment"!==N||U===m(e)||Y.every(t=>m(t.placement)!==U||t.overflows[0]>0)))return{data:{index:t,overflows:Y},reset:{placement:e}};let n=null==(i=Y.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:i.placement;if(!n)switch(I){case"bestFit":{let t=null==(l=Y.filter(t=>{if(_){let e=m(t.placement);return e===U||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:l[0];t&&(n=t);break}case"initialPlacement":n=C}if(L!==n)return{reset:{placement:n}}}return{}}}},G=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){let{rects:n,platform:r}=e,{strategy:o="referenceHidden",...i}=f(t,e);switch(o){case"referenceHidden":{let t=A(await r.detectOverflow(e,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:C(t)}}}case"escaped":{let t=A(await r.detectOverflow(e,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:C(t)}}}default:return{}}}}},K=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:r,placement:l,rects:u,platform:a,elements:c,middlewareData:s}=e,{element:g,padding:v=0}=f(t,e)||{};if(null==g)return{};let y=R(v),w={x:n,y:r},b=p(m(l)),x=h(b),E=await a.getDimensions(g),S="y"===b,L=S?"clientHeight":"clientWidth",T=u.reference[x]+u.reference[b]-w[b]-u.floating[x],A=w[b]-u.reference[b],C=await (null==a.getOffsetParent?void 0:a.getOffsetParent(g)),O=C?C[L]:0;O&&await (null==a.isElement?void 0:a.isElement(C))||(O=c.floating[L]||u.floating[x]);let k=O/2-E[x]/2-1,P=o(y[S?"top":"left"],k),N=o(y[S?"bottom":"right"],k),D=O-E[x]-N,I=O/2-E[x]/2+(T/2-A/2),F=i(P,o(I,D)),M=!s.arrow&&null!=d(l)&&I!==F&&u.reference[x]/2-(I<P?P:N)-E[x]/2<0,q=M?I<P?I-P:I-D:0;return{[b]:w[b]+q,data:{[b]:F,centerOffset:I-F-q,...M&&{alignmentOffset:q}},reset:M}}}),X=(t,e,n)=>{let r=new Map,o=null!=n?n:{},i={...B,...o.platform,_c:r};return T(t,e,{...o,platform:i})}},63056:(t,e,n)=>{n.d(e,{$4:()=>b,CM:()=>function t(e,n,r){return void 0===r&&(r=!0),e.filter(t=>{var e;return t.parentId===n&&(!r||(null==(e=t.context)?void 0:e.open))}).flatMap(n=>[n,...t(e,n.id,r)])},EW:()=>h,F2:()=>m,Go:()=>L,Jt:()=>O,N:()=>F,OS:()=>T,O_:()=>R,Pg:()=>S,Qp:()=>I,RS:()=>d,SE:()=>A,WZ:()=>y,XJ:()=>D,YE:()=>v,YF:()=>E,gR:()=>p,jo:()=>x,kQ:()=>k,nd:()=>w,nr:()=>c,tZ:()=>g,uo:()=>u,vF:()=>N,yV:()=>M});var r,o=n(6791),i=n(12115),l=n(4569);function u(){let t=navigator.userAgentData;return null!=t&&t.platform?t.platform:navigator.platform}function a(){let t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map(t=>{let{brand:e,version:n}=t;return e+"/"+n}).join(" "):navigator.userAgent}function c(){return/apple/i.test(navigator.vendor)}function f(){let t=/android/i;return t.test(u())||t.test(a())}let s="data-floating-ui-focusable";function d(t){let e=t.activeElement;for(;(null==(n=e)||null==(n=n.shadowRoot)?void 0:n.activeElement)!=null;){var n;e=e.shadowRoot.activeElement}return e}function p(t,e){if(!t||!e)return!1;let n=null==e.getRootNode?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&(0,o.Ng)(n)){let n=e;for(;n;){if(t===n)return!0;n=n.parentNode||n.host}}return!1}function h(t){return"composedPath"in t?t.composedPath()[0]:t.target}function m(t,e){return null!=e&&("composedPath"in t?t.composedPath().includes(e):null!=t.target&&e.contains(t.target))}function g(t){return t.matches("html,body")}function v(t){return(null==t?void 0:t.ownerDocument)||document}function y(t){return!!t&&"combobox"===t.getAttribute("role")&&(0,o.sb)(t)&&t.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function w(t){return t?t.hasAttribute(s)?t:t.querySelector("["+s+"]")||t:null}function b(t,e){var n;let r=[],o=null==(n=t.find(t=>t.id===e))?void 0:n.parentId;for(;o;){let e=t.find(t=>t.id===o);o=null==e?void 0:e.parentId,e&&(r=r.concat(e))}return r}function x(t){t.preventDefault(),t.stopPropagation()}function R(t){return"nativeEvent"in t}function E(t){return 0===t.mozInputSource&&!!t.isTrusted||(f()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType)}function S(t){return!a().includes("jsdom/")&&(!f()&&0===t.width&&0===t.height||f()&&1===t.width&&1===t.height&&0===t.pressure&&0===t.detail&&"mouse"===t.pointerType||t.width<1&&t.height<1&&0===t.pressure&&0===t.detail&&"touch"===t.pointerType)}function L(t,e){let n=["mouse","pen"];return e||n.push("",void 0),n.includes(t)}var T="u">typeof document?i.useLayoutEffect:function(){};function A(t){let e=i.useRef(t);return T(()=>{e.current=t}),e}let C={...r||(r=n.t(i,2))}.useInsertionEffect||(t=>t());function O(t){let e=i.useRef(()=>{});return C(()=>{e.current=t}),i.useCallback(function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return null==e.current?void 0:e.current(...n)},[])}let k=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function P(t,e){let n=(0,l.Kr)(t,k()),r=n.length;if(0===r)return;let o=d(v(t)),i=n.indexOf(o);return n[-1===i?1===e?0:r-1:i+e]}function N(t){return P(v(t).body,1)||t}function D(t){return P(v(t).body,-1)||t}function I(t,e){let n=e||t.currentTarget,r=t.relatedTarget;return!r||!p(n,r)}function F(t){(0,l.Kr)(t,k()).forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")})}function M(t){t.querySelectorAll("[data-tabindex]").forEach(t=>{let e=t.dataset.tabindex;delete t.dataset.tabindex,e?t.setAttribute("tabindex",e):t.removeAttribute("tabindex")})}},92681:(t,e,n)=>{n.d(e,{g:()=>r});let r=(t,e=!0)=>e?t:void 0}}]);