(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2705],{66379:function(e,t,n){"use strict";n.d(t,{YF:function(){return f},x7:function(){return l}});var r=n(48954),o=n(2784),i=n(28316);let l=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:o}="function"==typeof e?e(t):e;if(n&&({}).hasOwnProperty.call(n,"current")){if(null!=n.current)return(0,r.x7)({element:n.current,padding:o}).fn(t)}else if(n)return(0,r.x7)({element:n,padding:o}).fn(t);return{}}});var u="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function a(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!a(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!a(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function c(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function s(e,t){let n=c(e);return Math.round(t*n)/n}function d(e){let t=o.useRef(e);return u(()=>{t.current=e}),t}function f(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:l=[],platform:f,elements:{reference:p,floating:m}={},transform:v=!0,whileElementsMounted:h,open:g}=e,[w,y]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,E]=o.useState(l);a(b,l)||E(l);let[x,M]=o.useState(null),[C,R]=o.useState(null),_=o.useCallback(e=>{e!=O.current&&(O.current=e,M(e))},[M]),P=o.useCallback(e=>{e!==T.current&&(T.current=e,R(e))},[R]),D=p||x,k=m||C,O=o.useRef(null),T=o.useRef(null),L=o.useRef(w),F=d(h),S=d(f),A=o.useCallback(()=>{if(!O.current||!T.current)return;let e={placement:t,strategy:n,middleware:b};S.current&&(e.platform=S.current),(0,r.oo)(O.current,T.current,e).then(e=>{let t={...e,isPositioned:!0};W.current&&!a(L.current,t)&&(L.current=t,i.flushSync(()=>{y(t)}))})},[b,t,n,S]);u(()=>{!1===g&&L.current.isPositioned&&(L.current.isPositioned=!1,y(e=>({...e,isPositioned:!1})))},[g]);let W=o.useRef(!1);u(()=>(W.current=!0,()=>{W.current=!1}),[]),u(()=>{if(D&&(O.current=D),k&&(T.current=k),D&&k){if(F.current)return F.current(D,k,A);A()}},[D,k,A,F]);let I=o.useMemo(()=>({reference:O,floating:T,setReference:_,setFloating:P}),[_,P]),V=o.useMemo(()=>({reference:D,floating:k}),[D,k]),Z=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!V.floating)return e;let t=s(V.floating,w.x),r=s(V.floating,w.y);return v?{...e,transform:"translate("+t+"px, "+r+"px)",...c(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,v,V.floating,w.x,w.y]);return o.useMemo(()=>({...w,update:A,refs:I,elements:V,floatingStyles:Z}),[w,A,I,V,Z])}},95578:function(e){e.exports={style:{fontFamily:"'__Noto_Sans_JP_262d83', '__Noto_Sans_JP_Fallback_262d83'",fontStyle:"normal"},className:"__className_262d83",variable:"__variable_262d83"}},70904:function(e,t,n){"use strict";function r(e){return"boolean"==typeof e}n.d(t,{j:function(){return r}})},84061:function(e,t,n){"use strict";n.d(t,{Cp:function(){return d},RR:function(){return a},cv:function(){return p},dp:function(){return h},dr:function(){return v},oo:function(){return i},uY:function(){return m},x7:function(){return u}});var r=n(4029);function o(e,t,n){let o,{reference:i,floating:l}=e,u=(0,r.Qq)(t),a=(0,r.Wh)(t),c=(0,r.I4)(a),s=(0,r.k3)(t),d="y"===u,f=i.x+i.width/2-l.width/2,p=i.y+i.height/2-l.height/2,m=i[c]/2-l[c]/2;switch(s){case"top":o={x:f,y:i.y-l.height};break;case"bottom":o={x:f,y:i.y+i.height};break;case"right":o={x:i.x+i.width,y:p};break;case"left":o={x:i.x-l.width,y:p};break;default:o={x:i.x,y:i.y}}switch((0,r.hp)(t)){case"start":o[a]-=m*(n&&d?-1:1);break;case"end":o[a]+=m*(n&&d?-1:1)}return o}let i=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:l=[],platform:u}=n,a=l.filter(Boolean),c=await (null==u.isRTL?void 0:u.isRTL(t)),s=await u.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=o(s,r,c),p=r,m={},v=0;for(let n=0;n({name:"arrow",options:e,async fn(t){let{x:n,y:o,placement:i,rects:l,platform:u,elements:a,middlewareData:c}=t,{element:s,padding:d=0}=(0,r.ku)(e,t)||{};if(null==s)return{};let f=(0,r.yd)(d),p={x:n,y:o},m=(0,r.Wh)(i),v=(0,r.I4)(m),h=await u.getDimensions(s),g="y"===m,w=g?"clientHeight":"clientWidth",y=l.reference[v]+l.reference[m]-p[m]-l.floating[v],b=p[m]-l.reference[m],E=await (null==u.getOffsetParent?void 0:u.getOffsetParent(s)),x=E?E[w]:0;x&&await (null==u.isElement?void 0:u.isElement(E))||(x=a.floating[w]||l.floating[v]);let M=x/2-h[v]/2-1,C=(0,r.VV)(f[g?"top":"left"],M),R=(0,r.VV)(f[g?"bottom":"right"],M),_=x-h[v]-R,P=x/2-h[v]/2+(y/2-b/2),D=(0,r.uZ)(C,P,_),k=!c.arrow&&null!=(0,r.hp)(i)&&P!==D&&l.reference[v]/2-(Pe<=0)){let e=((null==(i=s.flip)?void 0:i.index)||0)+1,t=_[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(u=k.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:u.placement;if(!n)switch(w){case"bestFit":{let e=null==(a=k.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:a[0];e&&(n=e);break}case"initialPlacement":n=f}if(c!==n)return{reset:{placement:n}}}return{}}}};function c(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function s(e){return r.mA.some(t=>e[t]>=0)}let d=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:o="referenceHidden",...i}=(0,r.ku)(e,t);switch(o){case"referenceHidden":{let e=c(await l(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:s(e)}}}case"escaped":{let e=c(await l(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:s(e)}}}default:return{}}}}};async function f(e,t){let{placement:n,platform:o,elements:i}=e,l=await (null==o.isRTL?void 0:o.isRTL(i.floating)),u=(0,r.k3)(n),a=(0,r.hp)(n),c="y"===(0,r.Qq)(n),s=["left","top"].includes(u)?-1:1,d=l&&c?-1:1,f=(0,r.ku)(t,e),{mainAxis:p,crossAxis:m,alignmentAxis:v}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"==typeof v&&(m="end"===a?-1*v:v),c?{x:m*d,y:p*s}:{x:p*s,y:m*d}}let p=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:u}=t,a=await f(t,e);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}}}}},m=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:o,placement:i}=t,{mainAxis:u=!0,crossAxis:a=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=(0,r.ku)(e,t),d={x:n,y:o},f=await l(t,s),p=(0,r.Qq)((0,r.k3)(i)),m=(0,r.Rn)(p),v=d[m],h=d[p];if(u){let e="y"===m?"top":"left",t="y"===m?"bottom":"right",n=v+f[e],o=v-f[t];v=(0,r.uZ)(n,v,o)}if(a){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=h+f[e],o=h-f[t];h=(0,r.uZ)(n,h,o)}let g=c.fn({...t,[m]:v,[p]:h});return{...g,data:{x:g.x-n,y:g.y-o}}}}},v=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:o,placement:i,rects:l,middlewareData:u}=t,{offset:a=0,mainAxis:c=!0,crossAxis:s=!0}=(0,r.ku)(e,t),d={x:n,y:o},f=(0,r.Qq)(i),p=(0,r.Rn)(f),m=d[p],v=d[f],h=(0,r.ku)(a,t),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e="y"===p?"height":"width",t=l.reference[p]-l.floating[e]+g.mainAxis,n=l.reference[p]+l.reference[e]-g.mainAxis;mn&&(m=n)}if(s){var w,y;let e="y"===p?"width":"height",t=["top","left"].includes((0,r.k3)(i)),n=l.reference[f]-l.floating[e]+(t&&(null==(w=u.offset)?void 0:w[f])||0)+(t?0:g.crossAxis),o=l.reference[f]+l.reference[e]+(t?0:(null==(y=u.offset)?void 0:y[f])||0)-(t?g.crossAxis:0);vo&&(v=o)}return{[p]:m,[f]:v}}}},h=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,o;let{placement:i,rects:u,platform:a,elements:c}=t,{apply:s=()=>{},...d}=(0,r.ku)(e,t),f=await l(t,d),p=(0,r.k3)(i),m=(0,r.hp)(i),v="y"===(0,r.Qq)(i),{width:h,height:g}=u.floating;"top"===p||"bottom"===p?(n=p,o=m===(await (null==a.isRTL?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(o=p,n="end"===m?"top":"bottom");let w=g-f[n],y=h-f[o],b=!t.middlewareData.shift,E=w,x=y;if(v){let e=h-f.left-f.right;x=m||b?(0,r.VV)(y,e):e}else{let e=g-f.top-f.bottom;E=m||b?(0,r.VV)(w,e):e}if(b&&!m){let e=(0,r.Fp)(f.left,0),t=(0,r.Fp)(f.right,0),n=(0,r.Fp)(f.top,0),o=(0,r.Fp)(f.bottom,0);v?x=h-2*(0!==e||0!==t?e+t:(0,r.Fp)(f.left,f.right)):E=g-2*(0!==n||0!==o?n+o:(0,r.Fp)(f.top,f.bottom))}await s({...t,availableWidth:x,availableHeight:E});let M=await a.getDimensions(c.floating);return h!==M.width||g!==M.height?{reset:{rects:!0}}:{}}}}},48954:function(e,t,n){"use strict";n.d(t,{x7:function(){return Z},Me:function(){return S},oo:function(){return z},RR:function(){return W},Cp:function(){return V},dr:function(){return K},uY:function(){return A},dp:function(){return I}});var r=n(4029),o=n(84061);function i(e){return a(e)?(e.nodeName||"").toLowerCase():"#document"}function l(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function u(e){var t;return null==(t=(a(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function a(e){return e instanceof Node||e instanceof l(e).Node}function c(e){return e instanceof Element||e instanceof l(e).Element}function s(e){return e instanceof HTMLElement||e instanceof l(e).HTMLElement}function d(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof l(e).ShadowRoot)}function f(e){let{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 p(e){let 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 m(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function v(e){return["html","body","#document"].includes(i(e))}function h(e){return l(e).getComputedStyle(e)}function g(e){return c(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function w(e){if("html"===i(e))return e;let t=e.assignedSlot||e.parentNode||d(e)&&e.host||u(e);return d(t)?t.host:t}function y(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=w(t);return v(n)?t.ownerDocument?t.ownerDocument.body:t.body:s(n)&&f(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),u=l(o);return i?t.concat(u,u.visualViewport||[],f(o)?o:[],u.frameElement&&n?y(u.frameElement):[]):t.concat(o,y(o,[],n))}function b(e){let t=h(e),n=parseFloat(t.width)||0,o=parseFloat(t.height)||0,i=s(e),l=i?e.offsetWidth:n,u=i?e.offsetHeight:o,a=(0,r.NM)(n)!==l||(0,r.NM)(o)!==u;return a&&(n=l,o=u),{width:n,height:o,$:a}}function E(e){return c(e)?e:e.contextElement}function x(e){let t=E(e);if(!s(t))return(0,r.ze)(1);let n=t.getBoundingClientRect(),{width:o,height:i,$:l}=b(t),u=(l?(0,r.NM)(n.width):n.width)/o,a=(l?(0,r.NM)(n.height):n.height)/i;return u&&Number.isFinite(u)||(u=1),a&&Number.isFinite(a)||(a=1),{x:u,y:a}}let M=(0,r.ze)(0);function C(e){let t=l(e);return m()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:M}function R(e,t,n,o){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let u=e.getBoundingClientRect(),a=E(e),s=(0,r.ze)(1);t&&(o?c(o)&&(s=x(o)):s=x(e));let d=(void 0===(i=n)&&(i=!1),o&&(!i||o===l(a))&&i)?C(a):(0,r.ze)(0),f=(u.left+d.x)/s.x,p=(u.top+d.y)/s.y,m=u.width/s.x,v=u.height/s.y;if(a){let e=l(a),t=o&&c(o)?l(o):o,n=e,r=n.frameElement;for(;r&&o&&t!==n;){let e=x(r),t=r.getBoundingClientRect(),o=h(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,u=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;f*=e.x,p*=e.y,m*=e.x,v*=e.y,f+=i,p+=u,r=(n=l(r)).frameElement}}return(0,r.JB)({width:m,height:v,x:f,y:p})}let _=[":popover-open",":modal"];function P(e){return _.some(t=>{try{return e.matches(t)}catch(e){return!1}})}function D(e){return R(u(e)).left+g(e).scrollLeft}function k(e,t,n){let o;if("viewport"===t)o=function(e,t){let n=l(e),r=u(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,c=0,s=0;if(o){i=o.width,a=o.height;let e=m();(!e||e&&"fixed"===t)&&(c=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:c,y:s}}(e,n);else if("document"===t)o=function(e){let t=u(e),n=g(e),o=e.ownerDocument.body,i=(0,r.Fp)(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=(0,r.Fp)(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),a=-n.scrollLeft+D(e),c=-n.scrollTop;return"rtl"===h(o).direction&&(a+=(0,r.Fp)(t.clientWidth,o.clientWidth)-i),{width:i,height:l,x:a,y:c}}(u(e));else if(c(t))o=function(e,t){let n=R(e,!0,"fixed"===t),o=n.top+e.clientTop,i=n.left+e.clientLeft,l=s(e)?x(e):(0,r.ze)(1),u=e.clientWidth*l.x;return{width:u,height:e.clientHeight*l.y,x:i*l.x,y:o*l.y}}(t,n);else{let n=C(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return(0,r.JB)(o)}function O(e,t){return s(e)&&"fixed"!==h(e).position?t?t(e):e.offsetParent:null}function T(e,t){let n=l(e);if(!s(e)||P(e))return n;let r=O(e,t);for(;r&&["table","td","th"].includes(i(r))&&"static"===h(r).position;)r=O(r,t);return r&&("html"===i(r)||"body"===i(r)&&"static"===h(r).position&&!p(r))?n:r||function(e){let t=w(e);for(;s(t)&&!v(t);){if(p(t))return t;t=w(t)}return null}(e)||n}let L=async function(e){let t=this.getOffsetParent||T,n=this.getDimensions;return{reference:function(e,t,n){let o=s(t),l=u(t),a="fixed"===n,c=R(e,!0,a,t),d={scrollLeft:0,scrollTop:0},p=(0,r.ze)(0);if(o||!o&&!a){if(("body"!==i(t)||f(l))&&(d=g(t)),o){let e=R(t,!0,a,t);p.x=e.x+t.clientLeft,p.y=e.y+t.clientTop}else l&&(p.x=D(l))}return{x:c.left+d.scrollLeft-p.x,y:c.top+d.scrollTop-p.y,width:c.width,height:c.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},F={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:l}=e,a="fixed"===l,c=u(o),d=!!t&&P(t.floating);if(o===c||d&&a)return n;let p={scrollLeft:0,scrollTop:0},m=(0,r.ze)(1),v=(0,r.ze)(0),h=s(o);if((h||!h&&!a)&&(("body"!==i(o)||f(c))&&(p=g(o)),s(o))){let e=R(o);m=x(o),v.x=e.x+o.clientLeft,v.y=e.y+o.clientTop}return{width:n.width*m.x,height:n.height*m.y,x:n.x*m.x-p.scrollLeft*m.x+v.x,y:n.y*m.y-p.scrollTop*m.y+v.y}},getDocumentElement:u,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:l}=e,u=[..."clippingAncestors"===n?function(e,t){let n=t.get(e);if(n)return n;let r=y(e,[],!1).filter(e=>c(e)&&"body"!==i(e)),o=null,l="fixed"===h(e).position,u=l?w(e):e;for(;c(u)&&!v(u);){let t=h(u),n=p(u);n||"fixed"!==t.position||(o=null),(l?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||f(u)&&!n&&function e(t,n){let r=w(t);return!(r===n||!c(r)||v(r))&&("fixed"===h(r).position||e(r,n))}(e,u))?r=r.filter(e=>e!==u):o=t,u=w(u)}return t.set(e,r),r}(t,this._c):[].concat(n),o],a=u[0],s=u.reduce((e,n)=>{let o=k(t,n,l);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},k(t,a,l));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:T,getElementRects:L,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=b(e);return{width:t,height:n}},getScale:x,isElement:c,isRTL:function(e){return"rtl"===h(e).direction}};function S(e,t,n,o){let i;void 0===o&&(o={});let{ancestorScroll:l=!0,ancestorResize:a=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:d=!1}=o,f=E(e),p=l||a?[...f?y(f):[],...y(t)]:[];p.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let m=f&&s?function(e,t){let n,o=null,i=u(e);function l(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return!function u(a,c){void 0===a&&(a=!1),void 0===c&&(c=1),l();let{left:s,top:d,width:f,height:p}=e.getBoundingClientRect();if(a||t(),!f||!p)return;let m=(0,r.GW)(d),v=(0,r.GW)(i.clientWidth-(s+f)),h={rootMargin:-m+"px "+-v+"px "+-(0,r.GW)(i.clientHeight-(d+p))+"px "+-(0,r.GW)(s)+"px",threshold:(0,r.Fp)(0,(0,r.VV)(1,c))||1},g=!0;function w(e){let t=e[0].intersectionRatio;if(t!==c){if(!g)return u();t?u(!1,t):n=setTimeout(()=>{u(!1,1e-7)},100)}g=!1}try{o=new IntersectionObserver(w,{...h,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(w,h)}o.observe(e)}(!0),l}(f,n):null,v=-1,h=null;c&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===f&&h&&(h.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),f&&!d&&h.observe(f),h.observe(t));let g=d?R(e):null;return d&&function t(){let r=R(e);g&&(r.x!==g.x||r.y!==g.y||r.width!==g.width||r.height!==g.height)&&n(),g=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{l&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=h)||e.disconnect(),h=null,d&&cancelAnimationFrame(i)}}let A=o.uY,W=o.RR,I=o.dp,V=o.Cp,Z=o.x7,K=o.dr,z=(e,t,n)=>{let r=new Map,i={platform:F,...n},l={...i.platform,_c:r};return(0,o.oo)(e,t,{...i,platform:l})}},4029:function(e,t,n){"use strict";n.d(t,{Fp:function(){return i},GW:function(){return u},I4:function(){return h},JB:function(){return R},KX:function(){return x},NM:function(){return l},Qq:function(){return g},Rn:function(){return v},VV:function(){return o},Wh:function(){return w},gy:function(){return b},hp:function(){return m},i8:function(){return y},k3:function(){return p},ku:function(){return f},mA:function(){return r},pw:function(){return M},uZ:function(){return d},yd:function(){return C},ze:function(){return a}});let r=["top","right","bottom","left"],o=Math.min,i=Math.max,l=Math.round,u=Math.floor,a=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},s={start:"end",end:"start"};function d(e,t,n){return i(e,o(t,n))}function f(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function m(e){return e.split("-")[1]}function v(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}function g(e){return["top","bottom"].includes(p(e))?"y":"x"}function w(e){return v(g(e))}function y(e,t,n){void 0===n&&(n=!1);let r=m(e),o=w(e),i=h(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=M(l)),[l,M(l)]}function b(e){let t=M(e);return[E(e),t,E(t)]}function E(e){return e.replace(/start|end/g,e=>s[e])}function x(e,t,n,r){let o=m(e),i=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(p(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(E)))),i}function M(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function C(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function R(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}},59202:function(e,t,n){"use strict";let r,o;n.d(t,{VY:function(){return to},ck:function(){return ti},Uv:function(){return tr},fC:function(){return tt},Z0:function(){return tl},xz:function(){return tn}});var i=n(7896),l=n(2784),u=n(17998),a=n(62656),c=n(92211),s=n(87695),d=n(72714),f=n(62172),p=n(59241),m=n(27757),v=n(86796);let h="dismissableLayer.update",g=(0,l.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),w=(0,l.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:c,onPointerDownOutside:s,onFocusOutside:f,onInteractOutside:p,onDismiss:w,...E}=e,x=(0,l.useContext)(g),[M,C]=(0,l.useState)(null),R=null!==(n=null==M?void 0:M.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,_]=(0,l.useState)({}),P=(0,a.e)(t,e=>C(e)),D=Array.from(x.layers),[k]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),O=D.indexOf(k),T=M?D.indexOf(M):-1,L=x.layersWithOutsidePointerEventsDisabled.size>0,F=T>=O,S=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,m.W)(e),r=(0,l.useRef)(!1),o=(0,l.useRef)(()=>{});return(0,l.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function i(){b("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=i,t.addEventListener("click",o.current,{once:!0})):i()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...x.branches].some(e=>e.contains(t));!F||n||(null==s||s(e),null==p||p(e),e.defaultPrevented||null==w||w())},R),A=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,m.W)(e),r=(0,l.useRef)(!1);return(0,l.useEffect)(()=>{let e=e=>{e.target&&!r.current&&b("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;[...x.branches].some(e=>e.contains(t))||(null==f||f(e),null==p||p(e),e.defaultPrevented||null==w||w())},R);return(0,v.e)(e=>{T!==x.layers.size-1||(null==c||c(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))},R),(0,l.useEffect)(()=>{if(M)return o&&(0===x.layersWithOutsidePointerEventsDisabled.size&&(r=R.body.style.pointerEvents,R.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(M)),x.layers.add(M),y(),()=>{o&&1===x.layersWithOutsidePointerEventsDisabled.size&&(R.body.style.pointerEvents=r)}},[M,R,o,x]),(0,l.useEffect)(()=>()=>{M&&(x.layers.delete(M),x.layersWithOutsidePointerEventsDisabled.delete(M),y())},[M,x]),(0,l.useEffect)(()=>{let e=()=>_({});return document.addEventListener(h,e),()=>document.removeEventListener(h,e)},[]),(0,l.createElement)(d.WV.div,(0,i.Z)({},E,{ref:P,style:{pointerEvents:L?F?"auto":"none":void 0,...e.style},onFocusCapture:(0,u.M)(e.onFocusCapture,A.onFocusCapture),onBlurCapture:(0,u.M)(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:(0,u.M)(e.onPointerDownCapture,S.onPointerDownCapture)}))});function y(){let e=new CustomEvent(h);document.dispatchEvent(e)}function b(e,t,n,{discrete:r}){let o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?(0,d.jH)(o,i):o.dispatchEvent(i)}var E=n(11861);let x="focusScope.autoFocusOnMount",M="focusScope.autoFocusOnUnmount",C={bubbles:!1,cancelable:!0},R=(0,l.forwardRef)((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:u,...c}=e,[s,f]=(0,l.useState)(null),p=(0,m.W)(o),v=(0,m.W)(u),h=(0,l.useRef)(null),g=(0,a.e)(t,e=>f(e)),w=(0,l.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,l.useEffect)(()=>{if(r){function e(e){if(w.paused||!s)return;let t=e.target;s.contains(t)?h.current=t:D(h.current,{select:!0})}function t(e){if(w.paused||!s)return;let t=e.relatedTarget;null===t||s.contains(t)||D(h.current,{select:!0})}document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&D(s)});return s&&n.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,s,w.paused]),(0,l.useEffect)(()=>{if(s){k.add(w);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(x,C);s.addEventListener(x,p),s.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(D(r,{select:t}),document.activeElement!==n)return}(_(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&D(s))}return()=>{s.removeEventListener(x,p),setTimeout(()=>{let t=new CustomEvent(M,C);s.addEventListener(M,v),s.dispatchEvent(t),t.defaultPrevented||D(null!=e?e:document.body,{select:!0}),s.removeEventListener(M,v),k.remove(w)},0)}}},[s,p,v,w]);let y=(0,l.useCallback)(e=>{if(!n&&!r||w.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=_(e);return[P(t,e),P(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&D(i,{select:!0})):(e.preventDefault(),n&&D(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,w.paused]);return(0,l.createElement)(d.WV.div,(0,i.Z)({tabIndex:-1},c,{ref:g,onKeyDown:y}))});function _(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function P(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function D(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}let k=(o=[],{add(e){let t=o[0];e!==t&&(null==t||t.pause()),(o=O(o,e)).unshift(e)},remove(e){var t;null===(t=(o=O(o,e))[0])||void 0===t||t.resume()}});function O(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var T=n(23372),L=n(66379),F=n(48954),S=n(84061);let A=(0,l.forwardRef)((e,t)=>{let{children:n,width:r=10,height:o=5,...u}=e;return(0,l.createElement)(d.WV.svg,(0,i.Z)({},u,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,l.createElement)("polygon",{points:"0,0 30,0 15,10"}))});var W=n(61644),I=n(35019);let V="Popper",[Z,K]=(0,c.b)(V),[z,H]=Z(V),N=(0,l.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,u=H("PopperAnchor",n),c=(0,l.useRef)(null),s=(0,a.e)(t,c);return(0,l.useEffect)(()=>{u.onAnchorChange((null==r?void 0:r.current)||c.current)}),r?null:(0,l.createElement)(d.WV.div,(0,i.Z)({},o,{ref:s}))}),B="PopperContent",[Y,$]=Z(B),G=(0,l.forwardRef)((e,t)=>{var n,r,o,u,c,s,f,p;let{__scopePopper:v,side:h="bottom",sideOffset:g=0,align:w="center",alignOffset:y=0,arrowPadding:b=0,avoidCollisions:E=!0,collisionBoundary:x=[],collisionPadding:M=0,sticky:C="partial",hideWhenDetached:R=!1,updatePositionStrategy:_="optimized",onPlaced:P,...D}=e,k=H(B,v),[O,T]=(0,l.useState)(null),A=(0,a.e)(t,e=>T(e)),[V,Z]=(0,l.useState)(null),K=(0,I.t)(V),z=null!==(n=null==K?void 0:K.width)&&void 0!==n?n:0,N=null!==(r=null==K?void 0:K.height)&&void 0!==r?r:0,$="number"==typeof M?M:{top:0,right:0,bottom:0,left:0,...M},G=Array.isArray(x)?x:[x],U=G.length>0,X={padding:$,boundary:G.filter(j),altBoundary:U},{refs:Q,floatingStyles:ee,placement:et,isPositioned:en,middlewareData:er}=(0,L.YF)({strategy:"fixed",placement:h+("center"!==w?"-"+w:""),whileElementsMounted:(...e)=>(0,F.Me)(...e,{animationFrame:"always"===_}),elements:{reference:k.anchor},middleware:[(0,S.cv)({mainAxis:g+N,alignmentAxis:y}),E&&(0,F.uY)({mainAxis:!0,crossAxis:!1,limiter:"partial"===C?(0,F.dr)():void 0,...X}),E&&(0,F.RR)({...X}),(0,F.dp)({...X,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:o,height:i}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${r}px`),l.setProperty("--radix-popper-anchor-width",`${o}px`),l.setProperty("--radix-popper-anchor-height",`${i}px`)}}),V&&(0,L.x7)({element:V,padding:b}),q({arrowWidth:z,arrowHeight:N}),R&&(0,F.Cp)({strategy:"referenceHidden",...X})]}),[eo,ei]=J(et),el=(0,m.W)(P);(0,W.b)(()=>{en&&(null==el||el())},[en,el]);let eu=null===(o=er.arrow)||void 0===o?void 0:o.x,ea=null===(u=er.arrow)||void 0===u?void 0:u.y,ec=(null===(c=er.arrow)||void 0===c?void 0:c.centerOffset)!==0,[es,ed]=(0,l.useState)();return(0,W.b)(()=>{O&&ed(window.getComputedStyle(O).zIndex)},[O]),(0,l.createElement)("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...ee,transform:en?ee.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:es,"--radix-popper-transform-origin":[null===(s=er.transformOrigin)||void 0===s?void 0:s.x,null===(f=er.transformOrigin)||void 0===f?void 0:f.y].join(" ")},dir:e.dir},(0,l.createElement)(Y,{scope:v,placedSide:eo,onArrowChange:Z,arrowX:eu,arrowY:ea,shouldHideArrow:ec},(0,l.createElement)(d.WV.div,(0,i.Z)({"data-side":eo,"data-align":ei},D,{ref:A,style:{...D.style,animation:en?void 0:"none",opacity:null!==(p=er.hide)&&void 0!==p&&p.referenceHidden?0:void 0}}))))}),U={top:"bottom",right:"left",bottom:"top",left:"right"},X=(0,l.forwardRef)(function(e,t){let{__scopePopper:n,...r}=e,o=$("PopperArrow",n),u=U[o.placedSide];return(0,l.createElement)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0}},(0,l.createElement)(A,(0,i.Z)({},r,{ref:t,style:{...r.style,display:"block"}})))});function j(e){return null!==e}let q=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:u,rects:a,middlewareData:c}=t,s=(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=s?0:e.arrowWidth,f=s?0:e.arrowHeight,[p,m]=J(u),v={start:"0%",center:"50%",end:"100%"}[m],h=(null!==(r=null===(o=c.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,g=(null!==(i=null===(l=c.arrow)||void 0===l?void 0:l.y)&&void 0!==i?i:0)+f/2,w="",y="";return"bottom"===p?(w=s?v:`${h}px`,y=`${-f}px`):"top"===p?(w=s?v:`${h}px`,y=`${a.floating.height+f}px`):"right"===p?(w=`${-f}px`,y=s?v:`${g}px`):"left"===p&&(w=`${a.floating.width+f}px`,y=s?v:`${g}px`),{data:{x:w,y:y}}}});function J(e){let[t,n="center"]=e.split("-");return[t,n]}let Q=e=>{let{__scopePopper:t,children:n}=e,[r,o]=(0,l.useState)(null);return(0,l.createElement)(z,{scope:t,anchor:r,onAnchorChange:o},n)};var ee=n(28316);let et=(0,l.forwardRef)((e,t)=>{var n;let{container:r=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...o}=e;return r?ee.createPortal((0,l.createElement)(d.WV.div,(0,i.Z)({},o,{ref:t})),r):null});var en=n(79616),er=n(2923),eo=n(49815),ei=n(49732),el=n(91869);let eu=["Enter"," "],ea=["ArrowUp","PageDown","End"],ec=["ArrowDown","PageUp","Home",...ea],es={ltr:[...eu,"ArrowRight"],rtl:[...eu,"ArrowLeft"]},ed={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ef="Menu",[ep,em,ev]=(0,f.B)(ef),[eh,eg]=(0,c.b)(ef,[ev,K,er.Pc]),ew=K(),ey=(0,er.Pc)(),[eb,eE]=eh(ef),[ex,eM]=eh(ef),eC=(0,l.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e,o=ew(n);return(0,l.createElement)(N,(0,i.Z)({},o,r,{ref:t}))}),eR="MenuPortal",[e_,eP]=eh(eR,{forceMount:void 0}),eD="MenuContent",[ek,eO]=eh(eD),eT=(0,l.forwardRef)((e,t)=>{let n=eP(eD,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,u=eE(eD,e.__scopeMenu),a=eM(eD,e.__scopeMenu);return(0,l.createElement)(ep.Provider,{scope:e.__scopeMenu},(0,l.createElement)(en.z,{present:r||u.open},(0,l.createElement)(ep.Slot,{scope:e.__scopeMenu},a.modal?(0,l.createElement)(eL,(0,i.Z)({},o,{ref:t})):(0,l.createElement)(eF,(0,i.Z)({},o,{ref:t})))))}),eL=(0,l.forwardRef)((e,t)=>{let n=eE(eD,e.__scopeMenu),r=(0,l.useRef)(null),o=(0,a.e)(t,r);return(0,l.useEffect)(()=>{let e=r.current;if(e)return(0,ei.Ry)(e)},[]),(0,l.createElement)(eS,(0,i.Z)({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,u.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),eF=(0,l.forwardRef)((e,t)=>{let n=eE(eD,e.__scopeMenu);return(0,l.createElement)(eS,(0,i.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),eS=(0,l.forwardRef)((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:c,onCloseAutoFocus:s,disableOutsidePointerEvents:d,onEntryFocus:f,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:h,onDismiss:g,disableOutsideScroll:y,...b}=e,x=eE(eD,n),M=eM(eD,n),C=ew(n),_=ey(n),P=em(n),[D,k]=(0,l.useState)(null),O=(0,l.useRef)(null),T=(0,a.e)(t,O,x.onContentChange),L=(0,l.useRef)(0),F=(0,l.useRef)(""),S=(0,l.useRef)(0),A=(0,l.useRef)(null),W=(0,l.useRef)("right"),I=(0,l.useRef)(0),V=y?el.Z:l.Fragment,Z=y?{as:eo.g7,allowPinchZoom:!0}:void 0,K=e=>{var t,n;let r=F.current+e,o=P().filter(e=>!e.disabled),i=document.activeElement,l=null===(t=o.find(e=>e.ref.current===i))||void 0===t?void 0:t.textValue,u=function(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(i=i.filter(e=>e!==n));let l=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}(o.map(e=>e.textValue),r,l),a=null===(n=o.find(e=>e.textValue===u))||void 0===n?void 0:n.ref.current;!function e(t){F.current=t,window.clearTimeout(L.current),""!==t&&(L.current=window.setTimeout(()=>e(""),1e3))}(r),a&&setTimeout(()=>a.focus())};(0,l.useEffect)(()=>()=>window.clearTimeout(L.current),[]),(0,E.EW)();let z=(0,l.useCallback)(e=>{var t,n,r;return W.current===(null===(t=A.current)||void 0===t?void 0:t.side)&&!!(r=null===(n=A.current)||void 0===n?void 0:n.area)&&function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;er!=c>r&&n<(a-l)*(r-u)/(c-u)+l&&(o=!o)}return o}({x:e.clientX,y:e.clientY},r)},[]);return(0,l.createElement)(ek,{scope:n,searchRef:F,onItemEnter:(0,l.useCallback)(e=>{z(e)&&e.preventDefault()},[z]),onItemLeave:(0,l.useCallback)(e=>{var t;z(e)||(null===(t=O.current)||void 0===t||t.focus(),k(null))},[z]),onTriggerLeave:(0,l.useCallback)(e=>{z(e)&&e.preventDefault()},[z]),pointerGraceTimerRef:S,onPointerGraceIntentChange:(0,l.useCallback)(e=>{A.current=e},[])},(0,l.createElement)(V,Z,(0,l.createElement)(R,{asChild:!0,trapped:o,onMountAutoFocus:(0,u.M)(c,e=>{var t;e.preventDefault(),null===(t=O.current)||void 0===t||t.focus()}),onUnmountAutoFocus:s},(0,l.createElement)(w,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:h,onDismiss:g},(0,l.createElement)(er.fC,(0,i.Z)({asChild:!0},_,{dir:M.dir,orientation:"vertical",loop:r,currentTabStopId:D,onCurrentTabStopIdChange:k,onEntryFocus:(0,u.M)(f,e=>{M.isUsingKeyboardRef.current||e.preventDefault()})}),(0,l.createElement)(G,(0,i.Z)({role:"menu","aria-orientation":"vertical","data-state":eX(x.open),"data-radix-menu-content":"",dir:M.dir},C,b,{ref:T,style:{outline:"none",...b.style},onKeyDown:(0,u.M)(b.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&K(e.key));let o=O.current;if(e.target!==o||!ec.includes(e.key))return;e.preventDefault();let i=P().filter(e=>!e.disabled).map(e=>e.ref.current);ea.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(i)}),onBlur:(0,u.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(L.current),F.current="")}),onPointerMove:(0,u.M)(e.onPointerMove,eJ(e=>{let t=e.target,n=I.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>I.current?"right":"left";W.current=t,I.current=e.clientX}}))})))))))}),eA=(0,l.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,l.createElement)(d.WV.div,(0,i.Z)({role:"group"},r,{ref:t}))}),eW=((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,l.createElement)(d.WV.div,(0,i.Z)({},r,{ref:t}))},"MenuItem"),eI="menu.itemSelect",eV=(0,l.forwardRef)((e,t)=>{let{disabled:n=!1,onSelect:r,...o}=e,c=(0,l.useRef)(null),s=eM(eW,e.__scopeMenu),f=eO(eW,e.__scopeMenu),p=(0,a.e)(t,c),m=(0,l.useRef)(!1);return(0,l.createElement)(eZ,(0,i.Z)({},o,{ref:p,disabled:n,onClick:(0,u.M)(e.onClick,()=>{let e=c.current;if(!n&&e){let t=new CustomEvent(eI,{bubbles:!0,cancelable:!0});e.addEventListener(eI,e=>null==r?void 0:r(e),{once:!0}),(0,d.jH)(e,t),t.defaultPrevented?m.current=!1:s.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),m.current=!0},onPointerUp:(0,u.M)(e.onPointerUp,e=>{var t;m.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,u.M)(e.onKeyDown,e=>{let t=""!==f.searchRef.current;!n&&(!t||" "!==e.key)&&eu.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))}),eZ=(0,l.forwardRef)((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:o,...c}=e,s=eO(eW,n),f=ey(n),p=(0,l.useRef)(null),m=(0,a.e)(t,p),[v,h]=(0,l.useState)(!1),[g,w]=(0,l.useState)("");return(0,l.useEffect)(()=>{let e=p.current;if(e){var t;w((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[c.children]),(0,l.createElement)(ep.ItemSlot,{scope:n,disabled:r,textValue:null!=o?o:g},(0,l.createElement)(er.ck,(0,i.Z)({asChild:!0},f,{focusable:!r}),(0,l.createElement)(d.WV.div,(0,i.Z)({role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},c,{ref:m,onPointerMove:(0,u.M)(e.onPointerMove,eJ(e=>{r?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus())})),onPointerLeave:(0,u.M)(e.onPointerLeave,eJ(e=>s.onItemLeave(e))),onFocus:(0,u.M)(e.onFocus,()=>h(!0)),onBlur:(0,u.M)(e.onBlur,()=>h(!1))}))))}),[eK,ez]=((e,t)=>{let{checked:n=!1,onCheckedChange:r,...o}=e;return(0,l.createElement)(eN,{scope:e.__scopeMenu,checked:n},(0,l.createElement)(eV,(0,i.Z)({role:"menuitemcheckbox","aria-checked":ej(n)?"mixed":n},o,{ref:t,"data-state":eq(n),onSelect:(0,u.M)(o.onSelect,()=>null==r?void 0:r(!!ej(n)||!n),{checkForDefaultPrevented:!1})})))},eh("MenuRadioGroup",{value:void 0,onValueChange:()=>{}})),eH=((e,t)=>{let{value:n,onValueChange:r,...o}=e,u=(0,m.W)(r);return(0,l.createElement)(eK,{scope:e.__scopeMenu,value:n,onValueChange:u},(0,l.createElement)(eA,(0,i.Z)({},o,{ref:t})))},"MenuItemIndicator"),[eN,eB]=eh(eH,{checked:!1}),eY=((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,u=eB(eH,n);return(0,l.createElement)(en.z,{present:r||ej(u.checked)||!0===u.checked},(0,l.createElement)(d.WV.span,(0,i.Z)({},o,{ref:t,"data-state":eq(u.checked)})))},(0,l.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,l.createElement)(d.WV.div,(0,i.Z)({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))})),[e$,eG]=((e,t)=>{let{__scopeMenu:n,...r}=e,o=ew(n);return(0,l.createElement)(X,(0,i.Z)({},o,r,{ref:t}))},eh("MenuSub")),eU="MenuSubTrigger";function eX(e){return e?"open":"closed"}function ej(e){return"indeterminate"===e}function eq(e){return ej(e)?"indeterminate":e?"checked":"unchecked"}function eJ(e){return t=>"mouse"===t.pointerType?e(t):void 0}(e,t)=>{let n=eE(eU,e.__scopeMenu),r=eM(eU,e.__scopeMenu),o=eG(eU,e.__scopeMenu),c=eO(eU,e.__scopeMenu),s=(0,l.useRef)(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:f}=c,p={__scopeMenu:e.__scopeMenu},m=(0,l.useCallback)(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return(0,l.useEffect)(()=>m,[m]),(0,l.useEffect)(()=>{let e=d.current;return()=>{window.clearTimeout(e),f(null)}},[d,f]),(0,l.createElement)(eC,(0,i.Z)({asChild:!0},p),(0,l.createElement)(eZ,(0,i.Z)({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":eX(n.open)},e,{ref:(0,a.F)(t,o.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,u.M)(e.onPointerMove,eJ(t=>{c.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||s.current||(c.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),m()},100))})),onPointerLeave:(0,u.M)(e.onPointerLeave,eJ(e=>{var t,r;m();let o=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(o){let t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,i="right"===t,l=o[i?"left":"right"],u=o[i?"right":"left"];c.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:l,y:o.top},{x:u,y:o.top},{x:u,y:o.bottom},{x:l,y:o.bottom}],side:t}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(e),e.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:(0,u.M)(e.onKeyDown,t=>{let o=""!==c.searchRef.current;if(!e.disabled&&(!o||" "!==t.key)&&es[r.dir].includes(t.key)){var i;n.onOpenChange(!0),null===(i=n.content)||void 0===i||i.focus(),t.preventDefault()}})})))},(e,t)=>{let n=eP(eD,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,c=eE(eD,e.__scopeMenu),s=eM(eD,e.__scopeMenu),d=eG("MenuSubContent",e.__scopeMenu),f=(0,l.useRef)(null),p=(0,a.e)(t,f);return(0,l.createElement)(ep.Provider,{scope:e.__scopeMenu},(0,l.createElement)(en.z,{present:r||c.open},(0,l.createElement)(ep.Slot,{scope:e.__scopeMenu},(0,l.createElement)(eS,(0,i.Z)({id:d.contentId,"aria-labelledby":d.triggerId},o,{ref:p,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;s.isUsingKeyboardRef.current&&(null===(t=f.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,u.M)(e.onFocusOutside,e=>{e.target!==d.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:(0,u.M)(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:(0,u.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=ed[s.dir].includes(e.key);if(t&&n){var r;c.onOpenChange(!1),null===(r=d.trigger)||void 0===r||r.focus(),e.preventDefault()}})})))))};let eQ=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:u=!0}=e,a=ew(t),[c,s]=(0,l.useState)(null),d=(0,l.useRef)(!1),f=(0,m.W)(i),v=(0,p.gm)(o);return(0,l.useEffect)(()=>{let e=()=>{d.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>d.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,l.createElement)(Q,a,(0,l.createElement)(eb,{scope:t,open:n,onOpenChange:f,content:c,onContentChange:s},(0,l.createElement)(ex,{scope:t,onClose:(0,l.useCallback)(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:v,modal:u},r)))},e0=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=eE(eR,t);return(0,l.createElement)(e_,{scope:t,forceMount:n},(0,l.createElement)(en.z,{present:n||i.open},(0,l.createElement)(et,{asChild:!0,container:o},r)))},e1="DropdownMenu",[e2,e7]=(0,c.b)(e1,[eg]),e6=eg(),[e9,e4]=e2(e1),e3=(0,l.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,c=e4("DropdownMenuTrigger",n),s=e6(n);return(0,l.createElement)(eC,(0,i.Z)({asChild:!0},s),(0,l.createElement)(d.WV.button,(0,i.Z)({type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:(0,a.F)(t,c.triggerRef),onPointerDown:(0,u.M)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(c.onOpenToggle(),c.open||e.preventDefault())}),onKeyDown:(0,u.M)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&c.onOpenToggle(),"ArrowDown"===e.key&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})))}),e8=(0,l.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=e4("DropdownMenuContent",n),a=e6(n),c=(0,l.useRef)(!1);return(0,l.createElement)(eT,(0,i.Z)({id:o.contentId,"aria-labelledby":o.triggerId},a,r,{ref:t,onCloseAutoFocus:(0,u.M)(e.onCloseAutoFocus,e=>{var t;c.current||null===(t=o.triggerRef.current)||void 0===t||t.focus(),c.current=!1,e.preventDefault()}),onInteractOutside:(0,u.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!o.modal||r)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),e5=(0,l.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=e6(n);return(0,l.createElement)(eV,(0,i.Z)({},o,r,{ref:t}))}),te=(0,l.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=e6(n);return(0,l.createElement)(eY,(0,i.Z)({},o,r,{ref:t}))}),tt=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:u,onOpenChange:a,modal:c=!0}=e,d=e6(t),f=(0,l.useRef)(null),[p=!1,m]=(0,s.T)({prop:o,defaultProp:u,onChange:a});return(0,l.createElement)(e9,{scope:t,triggerId:(0,T.M)(),triggerRef:f,contentId:(0,T.M)(),open:p,onOpenChange:m,onOpenToggle:(0,l.useCallback)(()=>m(e=>!e),[m]),modal:c},(0,l.createElement)(eQ,(0,i.Z)({},d,{open:p,onOpenChange:m,dir:r,modal:c}),n))},tn=e3,tr=e=>{let{__scopeDropdownMenu:t,...n}=e,r=e6(t);return(0,l.createElement)(e0,(0,i.Z)({},r,n))},to=e8,ti=e5,tl=te},35019:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});var r=n(2784),o=n(61644);function i(e){let[t,n]=(0,r.useState)(void 0);return(0,o.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}}}]);