"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[554],{9694:function(e,t,n){n.d(t,{Ry:function(){return l}});var r=new WeakMap,o=new WeakMap,i={},a=0,u=function(e){return e&&(e.host||u(e.parentNode))},c=function(e,t,n,c){var l=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=u(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});i[n]||(i[n]=new WeakMap);var s=i[n],d=[],f=new Set,p=new Set(l),v=function(e){!e||f.has(e)||(f.add(e),v(e.parentNode))};l.forEach(v);var h=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))h(e);else{var t=e.getAttribute(c),i=null!==t&&"false"!==t,a=(r.get(e)||0)+1,u=(s.get(e)||0)+1;r.set(e,a),s.set(e,u),d.push(e),1===a&&i&&o.set(e,!0),1===u&&e.setAttribute(n,"true"),i||e.setAttribute(c,"true")}})};return h(t),f.clear(),a++,function(){d.forEach(function(e){var t=r.get(e)-1,i=s.get(e)-1;r.set(e,t),s.set(e,i),t||(o.has(e)||e.removeAttribute(c),o.delete(e)),i||e.removeAttribute(n)}),--a||(r=new WeakMap,r=new WeakMap,o=new WeakMap,i={})}},l=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),c(r,o,n,"aria-hidden")):function(){return null}}},6838:function(e,t,n){n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.314.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(1319).Z)("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},5847:function(e,t,n){n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.314.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(1319).Z)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},8880:function(e,t,n){n.d(t,{Av:function(){return a},pF:function(){return r},xv:function(){return i},zi:function(){return o}});var r="right-scroll-bar-position",o="width-before-scroll-bar",i="with-scroll-bars-hidden",a="--removed-body-scroll-bar-size"},2451:function(e,t,n){n.d(t,{jp:function(){return d}});var r=n(8803),o=n(4548),i=n(8880),a=function(e){return parseInt(e||"",10)||0},u=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[a(n),a(r),a(o)]},c=function(e){void 0===e&&(e="margin");var t=u(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},l=(0,o.Ws)(),s=function(e,t,n,r){var o=e.left,a=e.top,u=e.right,c=e.gap;return void 0===n&&(n="margin"),"\n  .".concat(i.xv," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(c,"px ").concat(r,";\n  }\n  body {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(u,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(c,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(i.pF," {\n    right: ").concat(c,"px ").concat(r,";\n  }\n  \n  .").concat(i.zi," {\n    margin-right: ").concat(c,"px ").concat(r,";\n  }\n  \n  .").concat(i.pF," .").concat(i.pF," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(i.zi," .").concat(i.zi," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body {\n    ").concat(i.Av,": ").concat(c,"px;\n  }\n")},d=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,i=void 0===o?"margin":o,a=r.useMemo(function(){return c(i)},[i]);return r.createElement(l,{styles:s(a,!t,i,n?"":"!important")})}},2294:function(e,t,n){n.d(t,{Z:function(){return D}});var r=n(1663),o=n(8803),i=n(8880),a=n(9651),u=(0,n(6567)._)(),c=function(){},l=o.forwardRef(function(e,t){var n=o.useRef(null),i=o.useState({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:c}),l=i[0],s=i[1],d=e.forwardProps,f=e.children,p=e.className,v=e.removeScrollBar,h=e.enabled,m=e.shards,g=e.sideCar,y=e.noIsolation,E=e.inert,b=e.allowPinchZoom,w=e.as,_=(0,r._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),C=(0,a.q)([n,t]),M=(0,r.pi)((0,r.pi)({},_),l);return o.createElement(o.Fragment,null,h&&o.createElement(g,{sideCar:u,removeScrollBar:v,shards:m,noIsolation:y,inert:E,setCallbacks:s,allowPinchZoom:!!b,lockRef:n}),d?o.cloneElement(o.Children.only(f),(0,r.pi)((0,r.pi)({},M),{ref:C})):o.createElement(void 0===w?"div":w,(0,r.pi)({},M,{className:p,ref:C}),f))});l.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},l.classNames={fullWidth:i.zi,zeroRight:i.pF};var s=n(4138),d=n(2451),f=n(4548),p=!1;try{var v=Object.defineProperty({},"passive",{get:function(){return p=!0,!0}});window.addEventListener("test",v,v),window.removeEventListener("test",v,v)}catch(e){p=!1}var h=!!p&&{passive:!1},m=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},g=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),y(e,n)){var r=E(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},y=function(e,t){return"v"===e?m(t,"overflowY"):m(t,"overflowX")},E=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},b=function(e,t,n,r,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),u=a*r,c=n.target,l=t.contains(c),s=!1,d=u>0,f=0,p=0;do{var v=E(e,c),h=v[0],m=v[1]-v[2]-a*h;(h||m)&&y(e,c)&&(f+=m,p+=h),c=c.parentNode}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return d&&(o&&0===f||!o&&u>f)?s=!0:!d&&(o&&0===p||!o&&-u>p)&&(s=!0),s},w=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},_=function(e){return[e.deltaX,e.deltaY]},C=function(e){return e&&"current"in e?e.current:e},M=0,R=[],S=(0,s.L)(u,function(e){var t=o.useRef([]),n=o.useRef([0,0]),i=o.useRef(),a=o.useState(M++)[0],u=o.useState(function(){return(0,f.Ws)()})[0],c=o.useRef(e);o.useEffect(function(){c.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(0,r.ev)([e.lockRef.current],(e.shards||[]).map(C),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var l=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!c.current.allowPinchZoom;var r,o=w(e),a=n.current,u="deltaX"in e?e.deltaX:a[0]-o[0],l="deltaY"in e?e.deltaY:a[1]-o[1],s=e.target,d=Math.abs(u)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=g(d,s);if(!f)return!0;if(f?r=d:(r="v"===d?"h":"v",f=g(d,s)),!f)return!1;if(!i.current&&"changedTouches"in e&&(u||l)&&(i.current=r),!r)return!0;var p=i.current||r;return b(p,t,e,"h"===p?u:l,!0)},[]),s=o.useCallback(function(e){if(R.length&&R[R.length-1]===u){var n="deltaY"in e?_(e):w(e),r=t.current.filter(function(t){var r;return t.name===e.type&&t.target===e.target&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(c.current.shards||[]).map(C).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?l(e,o[0]):!c.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),p=o.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),v=o.useCallback(function(e){n.current=w(e),i.current=void 0},[]),m=o.useCallback(function(t){p(t.type,_(t),t.target,l(t,e.lockRef.current))},[]),y=o.useCallback(function(t){p(t.type,w(t),t.target,l(t,e.lockRef.current))},[]);o.useEffect(function(){return R.push(u),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:y}),document.addEventListener("wheel",s,h),document.addEventListener("touchmove",s,h),document.addEventListener("touchstart",v,h),function(){R=R.filter(function(e){return e!==u}),document.removeEventListener("wheel",s,h),document.removeEventListener("touchmove",s,h),document.removeEventListener("touchstart",v,h)}},[]);var E=e.removeScrollBar,S=e.inert;return o.createElement(o.Fragment,null,S?o.createElement(u,{styles:"\n  .block-interactivity-".concat(a," {pointer-events: none;}\n  .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,E?o.createElement(d.jp,{gapMode:"margin"}):null)}),k=o.forwardRef(function(e,t){return o.createElement(l,(0,r.pi)({},e,{ref:t,sideCar:S}))});k.classNames=l.classNames;var D=k},4548:function(e,t,n){n.d(t,{Ws:function(){return u}});var r,o=n(8803),i=function(){var e=0,t=null;return{add:function(o){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=r||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,a;(i=t).styleSheet?i.styleSheet.cssText=o:i.appendChild(document.createTextNode(o)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},a=function(){var e=i();return function(t,n){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},u=function(){var e=a();return function(t){return e(t.styles,t.dynamic),null}}},9651:function(e,t,n){n.d(t,{q:function(){return a}});var r=n(8803);function o(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var i=new WeakMap;function a(e,t){var n,a,u,c=(n=t||null,a=function(t){return e.forEach(function(e){return o(e,t)})},(u=(0,r.useState)(function(){return{value:n,callback:a,facade:{get current(){return u.value},set current(value){var e=u.value;e!==value&&(u.value=value,u.callback(value,e))}}}})[0]).callback=a,u.facade);return r.useLayoutEffect(function(){var t=i.get(c);if(t){var n=new Set(t),r=new Set(e),a=c.current;n.forEach(function(e){r.has(e)||o(e,null)}),r.forEach(function(e){n.has(e)||o(e,a)})}i.set(c,e)},[e]),c}},4138:function(e,t,n){n.d(t,{L:function(){return a}});var r=n(1663),o=n(8803),i=function(e){var t=e.sideCar,n=(0,r._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw Error("Sidecar medium not found");return o.createElement(i,(0,r.pi)({},n))};function a(e,t){return e.useMedium(t),i}i.isSideCarExport=!0},6567:function(e,t,n){n.d(t,{_:function(){return i}});var r=n(1663);function o(e){return e}function i(e){void 0===e&&(e={});var t,n,i,a=(void 0===t&&(t=o),n=[],i=!1,{read:function(){if(i)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var r=t(e,i);return n.push(r),function(){n=n.filter(function(e){return e!==r})}},assignSyncMedium:function(e){for(i=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){i=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(o)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}});return a.options=(0,r.pi)({async:!0,ssr:!1},e),a}},783:function(e,t,n){let r;n.d(t,{Z:function(){return u}});var o={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let i=new Uint8Array(16),a=[];for(let e=0;e<256;++e)a.push((e+256).toString(16).slice(1));var u=function(e,t,n){if(o.randomUUID&&!t&&!e)return o.randomUUID();let u=(e=e||{}).random||(e.rng||function(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)})();if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=u[e];return t}return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]}(u)}},3507:function(e,t,n){n.d(t,{Dx:function(){return q},VY:function(){return X},aV:function(){return Y},dk:function(){return H},fC:function(){return K},h_:function(){return B},x8:function(){return G},xz:function(){return z}});var r=n(1988),o=n(8803),i=n(7656),a=n(6957),u=n(9352),c=n(951),l=n(9057),s=n(1219),d=n(6267),f=n(1214),p=n(3214),v=n(564),h=n(4220),m=n(2294),g=n(9694),y=n(8155);let E="Dialog",[b,w]=(0,u.b)(E),[_,C]=b(E),M=(0,o.forwardRef)((e,t)=>{let{__scopeDialog:n,...u}=e,c=C("DialogTrigger",n),l=(0,a.e)(t,c.triggerRef);return(0,o.createElement)(v.WV.button,(0,r.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":U(c.open)},u,{ref:l,onClick:(0,i.M)(e.onClick,c.onOpenToggle)}))}),R="DialogPortal",[S,k]=b(R,{forceMount:void 0}),D="DialogOverlay",O=(0,o.forwardRef)((e,t)=>{let n=k(D,e.__scopeDialog),{forceMount:i=n.forceMount,...a}=e,u=C(D,e.__scopeDialog);return u.modal?(0,o.createElement)(p.z,{present:i||u.open},(0,o.createElement)(A,(0,r.Z)({},a,{ref:t}))):null}),A=(0,o.forwardRef)((e,t)=>{let{__scopeDialog:n,...i}=e,a=C(D,n);return(0,o.createElement)(m.Z,{as:y.g7,allowPinchZoom:!0,shards:[a.contentRef]},(0,o.createElement)(v.WV.div,(0,r.Z)({"data-state":U(a.open)},i,{ref:t,style:{pointerEvents:"auto",...i.style}})))}),T="DialogContent",x=(0,o.forwardRef)((e,t)=>{let n=k(T,e.__scopeDialog),{forceMount:i=n.forceMount,...a}=e,u=C(T,e.__scopeDialog);return(0,o.createElement)(p.z,{present:i||u.open},u.modal?(0,o.createElement)(L,(0,r.Z)({},a,{ref:t})):(0,o.createElement)(W,(0,r.Z)({},a,{ref:t})))}),L=(0,o.forwardRef)((e,t)=>{let n=C(T,e.__scopeDialog),u=(0,o.useRef)(null),c=(0,a.e)(t,n.contentRef,u);return(0,o.useEffect)(()=>{let e=u.current;if(e)return(0,g.Ry)(e)},[]),(0,o.createElement)(I,(0,r.Z)({},e,{ref:c,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,i.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,i.M)(e.onFocusOutside,e=>e.preventDefault())}))}),W=(0,o.forwardRef)((e,t)=>{let n=C(T,e.__scopeDialog),i=(0,o.useRef)(!1),a=(0,o.useRef)(!1);return(0,o.createElement)(I,(0,r.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,o;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(i.current||null===(o=n.triggerRef.current)||void 0===o||o.focus(),t.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:t=>{var r,o;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"!==t.detail.originalEvent.type||(a.current=!0));let u=t.target;(null===(o=n.triggerRef.current)||void 0===o?void 0:o.contains(u))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}}))}),I=(0,o.forwardRef)((e,t)=>{let{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:u,onCloseAutoFocus:c,...l}=e,f=C(T,n),p=(0,o.useRef)(null),v=(0,a.e)(t,p);return(0,h.EW)(),(0,o.createElement)(o.Fragment,null,(0,o.createElement)(d.M,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:u,onUnmountAutoFocus:c},(0,o.createElement)(s.XB,(0,r.Z)({role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":U(f.open)},l,{ref:v,onDismiss:()=>f.onOpenChange(!1)}))),!1)}),F="DialogTitle",N=(0,o.forwardRef)((e,t)=>{let{__scopeDialog:n,...i}=e,a=C(F,n);return(0,o.createElement)(v.WV.h2,(0,r.Z)({id:a.titleId},i,{ref:t}))}),P=(0,o.forwardRef)((e,t)=>{let{__scopeDialog:n,...i}=e,a=C("DialogDescription",n);return(0,o.createElement)(v.WV.p,(0,r.Z)({id:a.descriptionId},i,{ref:t}))}),Z=(0,o.forwardRef)((e,t)=>{let{__scopeDialog:n,...a}=e,u=C("DialogClose",n);return(0,o.createElement)(v.WV.button,(0,r.Z)({type:"button"},a,{ref:t,onClick:(0,i.M)(e.onClick,()=>u.onOpenChange(!1))}))});function U(e){return e?"open":"closed"}let[V,j]=(0,u.k)("DialogTitleWarning",{contentName:T,titleName:F,docsSlug:"dialog"}),K=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:u=!0}=e,s=(0,o.useRef)(null),d=(0,o.useRef)(null),[f=!1,p]=(0,l.T)({prop:r,defaultProp:i,onChange:a});return(0,o.createElement)(_,{scope:t,triggerRef:s,contentRef:d,contentId:(0,c.M)(),titleId:(0,c.M)(),descriptionId:(0,c.M)(),open:f,onOpenChange:p,onOpenToggle:(0,o.useCallback)(()=>p(e=>!e),[p]),modal:u},n)},z=M,B=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=C(R,t);return(0,o.createElement)(S,{scope:t,forceMount:n},o.Children.map(r,e=>(0,o.createElement)(p.z,{present:n||a.open},(0,o.createElement)(f.h,{asChild:!0,container:i},e))))},Y=O,X=x,q=N,H=P,G=Z},4220:function(e,t,n){n.d(t,{EW:function(){return i}});var r=n(8803);let o=0;function i(){(0,r.useEffect)(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:a()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:a()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}},6267:function(e,t,n){let r;n.d(t,{M:function(){return f}});var o=n(1988),i=n(8803),a=n(6957),u=n(564),c=n(6896);let l="focusScope.autoFocusOnMount",s="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},f=(0,i.forwardRef)((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:f,onUnmountAutoFocus:g,...y}=e,[E,b]=(0,i.useState)(null),w=(0,c.W)(f),_=(0,c.W)(g),C=(0,i.useRef)(null),M=(0,a.e)(t,e=>b(e)),R=(0,i.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,i.useEffect)(()=>{if(r){function e(e){if(R.paused||!E)return;let t=e.target;E.contains(t)?C.current=t:h(C.current,{select:!0})}function t(e){if(R.paused||!E)return;let t=e.relatedTarget;null===t||E.contains(t)||h(C.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&&h(E)});return E&&n.observe(E,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,E,R.paused]),(0,i.useEffect)(()=>{if(E){m.add(R);let e=document.activeElement;if(!E.contains(e)){let t=new CustomEvent(l,d);E.addEventListener(l,w),E.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(h(r,{select:t}),document.activeElement!==n)return}(p(E).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&h(E))}return()=>{E.removeEventListener(l,w),setTimeout(()=>{let t=new CustomEvent(s,d);E.addEventListener(s,_),E.dispatchEvent(t),t.defaultPrevented||h(null!=e?e:document.body,{select:!0}),E.removeEventListener(s,_),m.remove(R)},0)}}},[E,w,_,R]);let S=(0,i.useCallback)(e=>{if(!n&&!r||R.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=p(e);return[v(t,e),v(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&h(i,{select:!0})):(e.preventDefault(),n&&h(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,R.paused]);return(0,i.createElement)(u.WV.div,(0,o.Z)({tabIndex:-1},y,{ref:M,onKeyDown:S}))});function p(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 v(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function h(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[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 m=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=g(r,e)).unshift(e)},remove(e){var t;null===(t=(r=g(r,e))[0])||void 0===t||t.resume()}});function g(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},951:function(e,t,n){n.d(t,{M:function(){return c}});var r,o=n(8803),i=n(8843);let a=(r||(r=n.t(o,2)))["useId".toString()]||(()=>void 0),u=0;function c(e){let[t,n]=o.useState(a());return(0,i.b)(()=>{e||n(e=>null!=e?e:String(u++))},[e]),e||(t?"radix-".concat(t):"")}},3180:function(e,t,n){n.d(t,{f:function(){return a}});var r=n(1988),o=n(8803),i=n(564);let a=(0,o.forwardRef)((e,t)=>(0,o.createElement)(i.WV.label,(0,r.Z)({},e,{ref:t,onMouseDown:t=>{var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()}})))},2514:function(e,t,n){n.d(t,{D:function(){return M}});var r,o,i,a,u,c,l=n(8803),s=n(9952),d=n(3076),f=n(5568),p=n(6276),v=n(565),h=n(7532),m=n(7191),g=n(5798),y=n(3295),E=(r=new WeakMap,o=new WeakMap,i=new WeakMap,a=new WeakMap,u=new WeakSet,c=new WeakSet,class extends g.l{bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;let n=this.options;this.options=(0,s._)(this,r).defaultMutationOptions(e),(0,y.VS)(n,this.options)||(0,s._)(this,r).getMutationCache().notify({type:"observerOptionsUpdated",mutation:(0,s._)(this,i),observer:this}),null===(t=(0,s._)(this,i))||void 0===t||t.setOptions(this.options),(null==n?void 0:n.mutationKey)&&this.options.mutationKey&&(0,y.Ym)(n.mutationKey)!==(0,y.Ym)(this.options.mutationKey)&&this.reset()}onUnsubscribe(){if(!this.hasListeners()){var e;null===(e=(0,s._)(this,i))||void 0===e||e.removeObserver(this)}}onMutationUpdate(e){(0,p._)(this,u,b).call(this),(0,p._)(this,c,w).call(this,e)}getCurrentResult(){return(0,s._)(this,o)}reset(){var e;null===(e=(0,s._)(this,i))||void 0===e||e.removeObserver(this),(0,f._)(this,i,void 0),(0,p._)(this,u,b).call(this),(0,p._)(this,c,w).call(this)}mutate(e,t){var n;return(0,f._)(this,a,t),null===(n=(0,s._)(this,i))||void 0===n||n.removeObserver(this),(0,f._)(this,i,(0,s._)(this,r).getMutationCache().build((0,s._)(this,r),this.options)),(0,s._)(this,i).addObserver(this),(0,s._)(this,i).execute(e)}constructor(e,t){super(),(0,v._)(this,u),(0,v._)(this,c),(0,d._)(this,r,{writable:!0,value:void 0}),(0,d._)(this,o,{writable:!0,value:void 0}),(0,d._)(this,i,{writable:!0,value:void 0}),(0,d._)(this,a,{writable:!0,value:void 0}),(0,f._)(this,o,void 0),(0,f._)(this,r,e),this.setOptions(t),this.bindMethods(),(0,p._)(this,u,b).call(this)}});function b(){var e,t;let n=null!==(t=null===(e=(0,s._)(this,i))||void 0===e?void 0:e.state)&&void 0!==t?t:(0,h.R)();(0,f._)(this,o,{...n,isPending:"pending"===n.status,isSuccess:"success"===n.status,isError:"error"===n.status,isIdle:"idle"===n.status,mutate:this.mutate,reset:this.reset})}function w(e){m.V.batch(()=>{if((0,s._)(this,a)&&this.hasListeners()){var t,n,r,i,u,c,l,d;let f=(0,s._)(this,o).variables,p=(0,s._)(this,o).context;(null==e?void 0:e.type)==="success"?(null===(t=(n=(0,s._)(this,a)).onSuccess)||void 0===t||t.call(n,e.data,f,p),null===(r=(i=(0,s._)(this,a)).onSettled)||void 0===r||r.call(i,e.data,null,f,p)):(null==e?void 0:e.type)==="error"&&(null===(u=(c=(0,s._)(this,a)).onError)||void 0===u||u.call(c,e.error,f,p),null===(l=(d=(0,s._)(this,a)).onSettled)||void 0===l||l.call(d,void 0,e.error,f,p))}this.listeners.forEach(e=>{e((0,s._)(this,o))})})}var _=n(5982),C=n(1728);function M(e,t){let n=(0,_.NL)(t),[r]=l.useState(()=>new E(n,e));l.useEffect(()=>{r.setOptions(e)},[r,e]);let o=l.useSyncExternalStore(l.useCallback(e=>r.subscribe(m.V.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=l.useCallback((e,t)=>{r.mutate(e,t).catch(R)},[r]);if(o.error&&(0,C.L)(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}function R(){}},1663:function(e,t,n){n.d(t,{_T:function(){return o},ev:function(){return i},pi:function(){return r}});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function i(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError}}]);