1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6645],{46645:function(e,t,n){let r;n.d(t,{x8:function(){return eC},VY:function(){return ew},dk:function(){return eD},aV:function(){return eh},h_:function(){return eb},fC:function(){return eg},Dx:function(){return eN},xz:function(){return eE}});var o,i=n(2265);function l(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}var u=n(1584),a=n(98324),s=n(53201),d=n(75137),c=n(54887),f=n(71538),p=n(57437),v=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,f.Z8)(`Primitive.${t}`),r=i.forwardRef((e,r)=>{let{asChild:o,...i}=e,l=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,p.jsx)(l,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),m=n(66486),y="dismissableLayer.update",g=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),E=i.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:E,onDismiss:w,...N}=e,D=i.useContext(g),[C,x]=i.useState(null),R=null!==(r=null==C?void 0:C.ownerDocument)&&void 0!==r?r:null===(n=globalThis)||void 0===n?void 0:n.document,[,O]=i.useState({}),P=(0,u.e)(t,e=>x(e)),I=Array.from(D.layers),[T]=[...D.layersWithOutsidePointerEventsDisabled].slice(-1),j=I.indexOf(T),L=C?I.indexOf(C):-1,F=D.layersWithOutsidePointerEventsDisabled.size>0,S=L>=j,_=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,d.W)(e),o=i.useRef(!1),l=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){h("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",l.current),l.current=t,n.addEventListener("click",l.current,{once:!0})):t()}else n.removeEventListener("click",l.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",l.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...D.branches].some(e=>e.contains(t));!S||n||(null==c||c(e),null==E||E(e),e.defaultPrevented||null==w||w())},R),A=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,d.W)(e),o=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!o.current&&h("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[...D.branches].some(e=>e.contains(t))||(null==f||f(e),null==E||E(e),e.defaultPrevented||null==w||w())},R);return(0,m.e)(e=>{L!==D.layers.size-1||(null==s||s(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))},R),i.useEffect(()=>{if(C)return a&&(0===D.layersWithOutsidePointerEventsDisabled.size&&(o=R.body.style.pointerEvents,R.body.style.pointerEvents="none"),D.layersWithOutsidePointerEventsDisabled.add(C)),D.layers.add(C),b(),()=>{a&&1===D.layersWithOutsidePointerEventsDisabled.size&&(R.body.style.pointerEvents=o)}},[C,R,a,D]),i.useEffect(()=>()=>{C&&(D.layers.delete(C),D.layersWithOutsidePointerEventsDisabled.delete(C),b())},[C,D]),i.useEffect(()=>{let e=()=>O({});return document.addEventListener(y,e),()=>document.removeEventListener(y,e)},[]),(0,p.jsx)(v.div,{...N,ref:P,style:{pointerEvents:F?S?"auto":"none":void 0,...e.style},onFocusCapture:l(e.onFocusCapture,A.onFocusCapture),onBlurCapture:l(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:l(e.onPointerDownCapture,_.onPointerDownCapture)})});function b(){let e=new CustomEvent(y);document.dispatchEvent(e)}function h(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&i.addEventListener(e,t,{once:!0}),o)?i&&c.flushSync(()=>i.dispatchEvent(l)):i.dispatchEvent(l)}E.displayName="DismissableLayer",i.forwardRef((e,t)=>
1{let n=i.useContext(g),r=i.useRef(null),o=(0,u.e)(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,p.jsx)(v.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var w="focusScope.autoFocusOnMount",N="focusScope.autoFocusOnUnmount",D={bubbles:!1,cancelable:!0},C=i.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...a}=e,[s,c]=i.useState(null),f=(0,d.W)(o),m=(0,d.W)(l),y=i.useRef(null),g=(0,u.e)(t,e=>c(e)),E=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let e=function(e){if(E.paused||!s)return;let t=e.target;s.contains(t)?y.current=t:O(y.current,{select:!0})},t=function(e){if(E.paused||!s)return;let t=e.relatedTarget;null===t||s.contains(t)||O(y.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&&O(s)});return s&&n.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,s,E.paused]),i.useEffect(()=>{if(s){P.add(E);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(w,D);s.addEventListener(w,f),s.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(O(r,{select:t}),document.activeElement!==n)return}(x(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&O(s))}return()=>{s.removeEventListener(w,f),setTimeout(()=>{let t=new CustomEvent(N,D);s.addEventListener(N,m),s.dispatchEvent(t),t.defaultPrevented||O(null!=e?e:document.body,{select:!0}),s.removeEventListener(N,m),P.remove(E)},0)}}},[s,f,m,E]);let b=i.useCallback(e=>{if(!n&&!r||E.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=x(e);return[R(t,e),R(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&O(i,{select:!0})):(e.preventDefault(),n&&O(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,E.paused]);return(0,p.jsx)(v.div,{tabIndex:-1,...a,ref:g,onKeyDown:b})});function x(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 R(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 O(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()}}C.displayName="FocusScope";var P=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=I(r,e)).unshift(e)},remove(e){var t;null===(t=(r=I(r,e))[0])||void 0===t||t.resume()}});function I(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var T=n(1336),j=i.forwardRef((e,t)=>{var n,r;let{container:o,...l}=e,[u,a]=i.useState(!1);(0,T.b)(()=>a(!0),[]);let s=o||u&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return s?c.createPortal((0,p.jsx)(v.div,{...l,ref:t}),s):null});j.displayName="Portal";var L=e=>{var t,n;let r,o;let{present:l,children:a}=e,s=function(e){var t,n;let[r,o]=i.useState(),l=i.useRef({}),u=i.useRef(e),a=i.useRef("none"),[s,d]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},i.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return i.useEffect(()=>{let e=F(l.current);a.current="mounted"===s?e:"none"},[s]),(0,T.b)(()=>{let t=l.current,n=u.current;if(n!==e){let r=a.current,o=F(t);e?d("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?d("UNMOUNT"):n&&r!==o?d("ANIMATION_OUT"):d("UNMOUNT"),u.current=e}},[e,d]),(0,T.b)(()=>
1{if(r){var e;let t;let n=null!==(e=r.ownerDocument.defaultView)&&void 0!==e?e:window,o=e=>{let o=F(l.current).includes(e.animationName);if(e.target===r&&o&&(d("ANIMATION_END"),!u.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},i=e=>{e.target===r&&(a.current=F(l.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",o),r.addEventListener("animationend",o),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",o),r.removeEventListener("animationend",o)}}d("ANIMATION_END")},[r,d]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(e=>{e&&(l.current=getComputedStyle(e)),o(e)},[])}}(l),d="function"==typeof a?a({present:s.isPresent}):i.Children.only(a),c=(0,u.e)(s.ref,(r=null===(t=Object.getOwnPropertyDescriptor(d.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in r&&r.isReactWarning?d.ref:(r=null===(n=Object.getOwnPropertyDescriptor(d,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning?d.props.ref:d.props.ref||d.ref);return"function"==typeof a||s.isPresent?i.cloneElement(d,{ref:c}):null};function F(e){return(null==e?void 0:e.animationName)||"none"}L.displayName="Presence";var S=0;function _(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var A=n(9219),M=n(78369),W="Dialog",[k,U]=(0,a.b)(W),[K,B]=k(W),V=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:l,modal:u=!0}=e,a=i.useRef(null),c=i.useRef(null),[f=!1,v]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,o]=function({defaultProp:e,onChange:t}){let n=i.useState(e),[r]=n,o=i.useRef(r),l=(0,d.W)(t);return i.useEffect(()=>{o.current!==r&&(l(r),o.current=r)},[r,o,l]),n}({defaultProp:t,onChange:n}),l=void 0!==e,u=l?e:r,a=(0,d.W)(n);return[u,i.useCallback(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&a(n)}else o(t)},[l,e,o,a])]}({prop:r,defaultProp:o,onChange:l});return(0,p.jsx)(K,{scope:t,triggerRef:a,contentRef:c,contentId:(0,s.M)(),titleId:(0,s.M)(),descriptionId:(0,s.M)(),open:f,onOpenChange:v,onOpenToggle:i.useCallback(()=>v(e=>!e),[v]),modal:u,children:n})};V.displayName=W;var Z="DialogTrigger",z=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=B(Z,n),i=(0,u.e)(t,o.triggerRef);return(0,p.jsx)(v.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ec(o.open),...r,ref:i,onClick:l(e.onClick,o.onOpenToggle)})});z.displayName=Z;var $="DialogPortal",[q,H]=k($,{forceMount:void 0}),Y=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,l=B($,t);return(0,p.jsx)(q,{scope:t,forceMount:n,children:i.Children.map(r,e=>(0,p.jsx)(L,{present:n||l.open,children:(0,p.jsx)(j,{asChild:!0,container:o,children:e})}))})};Y.displayName=$;var G="DialogOverlay",J=i.forwardRef((e,t)=>{let n=H(G,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=B(G,e.__scopeDialog);return i.modal?(0,p.jsx)(L,{present:r||i.open,children:(0,p.jsx)(X,{...o,ref:t})}):null});J.displayName=G;var Q=(0,f.Z8)("DialogOverlay.RemoveScroll"),X=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=B(G,n);return(0,p.jsx)(A.Z,{as:Q,allowPinchZoom:!0,shards:[o.contentRef],children:(0,p.jsx)(v.div,{"data-state":ec(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ee="DialogContent",et=i.forwardRef((e,t)=>{let n=H(ee,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=B(ee,e.__scopeDialog);return(0,p.jsx)(L,{present:r||i.open,children:i.modal?(0,p.jsx)(en,{...o,ref:t}):(0,p.jsx)(er,{...o,ref:t})})});et.displayName=ee;var en=i.forwardRef((e,t)=>{let n=B(ee,e.__scopeDialog),r=i.useRef(null),o=(0,u.e)(t,n.contentRef,r);return i.useEffect(()=>{let e=r.current;if(e)return(0,M.Ry)(e)},[]),(0,p.jsx)(eo,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:l(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:l(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:l(e.onFocusOutside,e=>e.preventDefault())})}),er=i.forwardRef((e,t)=>
1{let n=B(ee,e.__scopeDialog),r=i.useRef(!1),o=i.useRef(!1);return(0,p.jsx)(eo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,l;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current||null===(l=n.triggerRef.current)||void 0===l||l.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var i,l;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let u=t.target;(null===(l=n.triggerRef.current)||void 0===l?void 0:l.contains(u))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),eo=i.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:l,...a}=e,s=B(ee,n),d=i.useRef(null),c=(0,u.e)(t,d);return i.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:_()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:_()),S++,()=>{1===S&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),S--}},[]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(C,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:l,children:(0,p.jsx)(E,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":ec(s.open),...a,ref:c,onDismiss:()=>s.onOpenChange(!1)})}),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(em,{titleId:s.titleId}),(0,p.jsx)(ey,{contentRef:d,descriptionId:s.descriptionId})]})]})}),ei="DialogTitle",el=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=B(ei,n);return(0,p.jsx)(v.h2,{id:o.titleId,...r,ref:t})});el.displayName=ei;var eu="DialogDescription",ea=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=B(eu,n);return(0,p.jsx)(v.p,{id:o.descriptionId,...r,ref:t})});ea.displayName=eu;var es="DialogClose",ed=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=B(es,n);return(0,p.jsx)(v.button,{type:"button",...r,ref:t,onClick:l(e.onClick,()=>o.onOpenChange(!1))})});function ec(e){return e?"open":"closed"}ed.displayName=es;var ef="DialogTitleWarning",[ep,ev]=(0,a.k)(ef,{contentName:ee,titleName:ei,docsSlug:"dialog"}),em=e=>{let{titleId:t}=e,n=ev(ef),r="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return i.useEffect(()=>{t&&!document.getElementById(t)&&console.error(r)},[r,t]),null},ey=e=>{let{contentRef:t,descriptionId:n}=e,r=ev("DialogDescriptionWarning"),o="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(r.contentName,"}.");return i.useEffect(()=>{var e;let r=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");n&&r&&!document.getElementById(n)&&console.warn(o)},[o,t,n]),null},eg=V,eE=z,eb=Y,eh=J,ew=et,eN=el,eD=ea,eC=ed},71538:function(e,t,n){n.d(t,{Z8:function(){return l}});var r=n(2265),o=n(1584),i=n(57437);function l(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...i}=e;if(r.isValidElement(n)){let e,l;let u=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref,a=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props);return n.type!==r.Fragment&&(a.ref=t?(0,o.F)(t,u):u),r.cloneElement(n,a)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:o,...l}=e,u=r.Children.toArray(o),s=u.find(a);if(s){let e=s.props.children,o=u.map(t=>t!==s?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...l,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,o):null})}return(0,i.jsx)(t,{...l,ref:n,children:o})});return n.displayName=`${e}.Slot`,n}var u=Symbol("radix.slottable");function a(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===u}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.