1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1691],{65229:(e,n,t)=>{t.d(n,{A:()=>o});var o=(0,t(71847).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},76842:(e,n,t)=>{t.d(n,{C:()=>u});var o=t(22043),r=t(12115),i=t(94446),a=t(4129),u=function(e){var n,t,u,s,l,d=e.present,f=e.children,p=function(e){var n,t=(0,o._)(r.useState(),2),i=t[0],u=t[1],s=r.useRef({}),l=r.useRef(e),d=r.useRef("none"),f=e?"mounted":"unmounted",p=(0,o._)((n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer(function(e,t){var o=n[e][t];return null!=o?o:e},f)),2),_=p[0],g=p[1];return r.useEffect(function(){var e=c(s.current);d.current="mounted"===_?e:"none"},[_]),(0,a.N)(function(){var n=s.current,t=l.current;if(t!==e){var o=d.current,r=c(n);e?g("MOUNT"):"none"===r||(null==n?void 0:n.display)==="none"?g("UNMOUNT"):t&&o!==r?g("ANIMATION_OUT"):g("UNMOUNT"),l.current=e}},[e,g]),(0,a.N)(function(){if(i){var e,n,t=null!=(n=i.ownerDocument.defaultView)?n:window,o=function(n){var o=c(s.current).includes(n.animationName);if(n.target===i&&o&&(g("ANIMATION_END"),!l.current)){var r=i.style.animationFillMode;i.style.animationFillMode="forwards",e=t.setTimeout(function(){"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=r)})}},r=function(e){e.target===i&&(d.current=c(s.current))};return i.addEventListener("animationstart",r),i.addEventListener("animationcancel",o),i.addEventListener("animationend",o),function(){t.clearTimeout(e),i.removeEventListener("animationstart",r),i.removeEventListener("animationcancel",o),i.removeEventListener("animationend",o)}}g("ANIMATION_END")},[i,g]),{isPresent:["mounted","unmountSuspended"].includes(_),ref:r.useCallback(function(e){e&&(s.current=getComputedStyle(e)),u(e)},[])}}(d),_="function"==typeof f?f({present:p.isPresent}):r.Children.only(f),g=(0,i.s)(p.ref,(l=(s=null==(t=Object.getOwnPropertyDescriptor((n=_).props,"ref"))?void 0:t.get)&&"isReactWarning"in s&&s.isReactWarning)?n.ref:(l=(s=null==(u=Object.getOwnPropertyDescriptor(n,"ref"))?void 0:u.get)&&"isReactWarning"in s&&s.isReactWarning)?n.props.ref:n.props.ref||n.ref);return"function"==typeof f||p.isPresent?r.cloneElement(_,{ref:g}):null};function c(e){return(null==e?void 0:e.animationName)||"none"}u.displayName="Presence"},89511:(e,n,t)=>{t.d(n,{G$:()=>en,Hs:()=>b,UC:()=>es,VY:()=>ed,ZL:()=>eu,bL:()=>ei,bm:()=>ef,hE:()=>el,hJ:()=>ec,l9:()=>ea});var o=t(82732),r=t(45849),i=t(17389),a=t(22043),u=t(12115),c=t(92556),s=t(94446),l=t(3468),d=t(68946),f=t(23558),p=t(44831),_=t(69666),g=t(75433),m=t(76842),v=t(97602),D=t(19526),N=t(14432),h=t(97745),y=t(32467),O=t(95155),R="Dialog",C=(0,a._)((0,l.A)(R),2),I=C[0],b=C[1],w=(0,a._)(I(R),2),M=w[0],E=w[1],j=function(e){var n=e.__scopeDialog,t=e.children,o=e.open,r=e.defaultOpen,i=e.onOpenChange,c=e.modal,s=u.useRef(null),l=u.useRef(null),p=(0,a._)((0,f.i)({prop:o,defaultProp:r,onChange:i}),2),_=p[0],g=p[1];return(0,O.jsx)(M,{scope:n,triggerRef:s,contentRef:l,contentId:(0,d.B)(),titleId:(0,d.B)(),descriptionId:(0,d.B)(),open:void 0!==_&&_,onOpenChange:g,onOpenToggle:u.useCallback(function(){return g(function(e){return!e})},[g]),modal:void 0===c||c,children:t})};j.displayName=R;var x="DialogTrigger",A=u.forwardRef(function(e,n){var t=e.__scopeDialog,a=(0,i._)(e,["__scopeDialog"]),u=E(x,t),l=(0,s.s)(n,u.triggerRef);return(0,O.jsx)(v.sG.button,(0,r._)((0,o._)({type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":z(u.open)},a),{ref:l,onClick:(0,c.m)(e.onClick,u.onOpenToggle)}))});A.displayName=x;var F="DialogPortal",T=(0,a._)(I(F,{forceMount:void 0}),2),P=T[0],k=T[1],U=function(e){var n=e.__scopeDialog,t=e.forceMount,o=e.children,r=e.container,i=E(F,n);return(0,O.jsx)(P,{scope:n,forceMount:t,children:u.Children.map(o,function(e){return(0,O.jsx)(m.C,{present:t||i.open,children:(0,O.jsx)(g.Z,{asChild:!0,container:r,children:e})})})})};U.displayName=F;var L="DialogOverlay",W=u.forwardRef(function(e,n){var t=k(L,e.__scopeDialog),a=e.forceMount,u=void 0===a?t.forceMount:a,c=(0,i._)(e,["forceMount"]),s=E(L,e.__scopeDialog);return s.modal?(0,O.jsx)(m.C,{present:u||s.open,children:(0,O.jsx)(S,(0,r._)((0,o._)({},c),{ref:n}))}):null});W.displayName=L;var S=u.forwardRef(function(e,n){var t=e.__scopeDialog,a=(0,i._)(e,["__scopeDialog"]),u=E(L,t);return(0,O.jsx)(N.A,{as:y.DX,allowPinchZoom:!0,shards:[u.contentRef],children:(0,O.jsx)(v.sG.div,(0,r._)((0,o._)({"data-state":z(u.open)},a),{ref:n,style:(0,o._)({pointerEvents:"auto"},a.style)}))})}),G="DialogContent",B=u.forwardRef(function(e,n){var t=k(G,e.__scopeDialog),a=e.forceMount,u=void 0===a?t.forceMount:a,c=(0,i._)(e,["forceMount"]),s=E(G,e.__scopeDialog);return(0,O.jsx)(m.C,{present:u||s.open,children:s.modal?(0,O.jsx)(q,(0,r._)((0,o._)({},c),{ref:n})):(0,O.jsx)(V,(0,r._)((0,o._)({},c),{ref:n}))})});B.displayName=G;var q=u.forwardRef(function(e,n){var t=E(G,e.__scopeDialog),i=u.useRef(null),a=(0,s.s)(n,t.contentRef,i);return u.useEffect(function(){var e=i.current;if(e)return(0,h.Eq)(e)},[]),(0,O.jsx)(Z,(0,r._)((0,o._)({},e),{ref:a,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,c.m)(e.onCloseAutoFocus,function(e){var n;e.preventDefault(),null==(n=t.triggerRef.current)||n.focus()}),onPointerDownOutside:(0,c.m)(e.onPointerDownOutside,function(e){var n=e.detail.originalEvent,t=0===n.button&&!0===n.ctrlKey;(2===n.button||t)&&e.preventDefault()}),onFocusOutside:(0,c.m)(e.onFocusOutside,function(e){return e.preventDefault()})}))}),V=u.forwardRef(function(e,n){var t=E(G,e.__scopeDialog),i=u.useRef(!1),a=u.useRef(!1);return(0,O.jsx)(Z,(0,r._)((0,o._)({},e),{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:function(n){var o,r;null==(o=e.onCloseAutoFocus)||o.call(e,n),n.defaultPrevented||(i.current||null==(r=t.triggerRef.current)||r.focus(),n.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:function(n){null==(o=e.onInteractOutside)||o.call(e,n),n.defaultPrevented||(i.current=!0,"pointerdown"===n.detail.originalEvent.type&&(a.current=!0));var o,r,u=n.target;(null==(r=t.triggerRef.current)?void 0:r.contains(u))&&n.preventDefault(),"focusin"===n.detail.originalEvent.type&&a.current&&n.preventDefault()}}))}),Z=u.forwardRef(function(e,n){var t=e.__scopeDialog,a=e.trapFocus,c=e.onOpenAutoFocus,l=e.onCloseAutoFocus,d=(0,i._)(e,["__scopeDialog","trapFocus","onOpenAutoFocus","onCloseAutoFocus"]),f=E(G,t),g=u.useRef(null),m=(0,s.s)(n,g);return(0,D.Oh)(),(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(_.n,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:c,onUnmountAutoFocus:l,children:(0,O.jsx)(p.qW,(0,r._)((0,o._)({role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":z(f.open)},d),{ref:m,onDismiss:function(){return f.onOpenChange(!1)}}))}),(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(eo,{titleId:f.titleId}),(0,O.jsx)(er,{contentRef:g,descriptionId:f.descriptionId})]})]})}),H="DialogTitle",X=u.forwardRef(function(e,n){var t=e.__scopeDialog,a=(0,i._)(e,["__scopeDialog"]),u=E(H,t);return(0,O.jsx)(v.sG.h2,(0,r._)((0,o._)({id:u.titleId},a),{ref:n}))});X.displayName=H;var J="DialogDescription",K=u.forwardRef(function(e,n){var t=e.__scopeDialog,a=(0,i._)(e,["__scopeDialog"]),u=E(J,t);return(0,O.jsx)(v.sG.p,(0,r._)((0,o._)({id:u.descriptionId},a),{ref:n}))});
1K.displayName=J;var Y="DialogClose",$=u.forwardRef(function(e,n){var t=e.__scopeDialog,a=(0,i._)(e,["__scopeDialog"]),u=E(Y,t);return(0,O.jsx)(v.sG.button,(0,r._)((0,o._)({type:"button"},a),{ref:n,onClick:(0,c.m)(e.onClick,function(){return u.onOpenChange(!1)})}))});function z(e){return e?"open":"closed"}$.displayName=Y;var Q="DialogTitleWarning",ee=(0,a._)((0,l.q)(Q,{contentName:G,titleName:H,docsSlug:"dialog"}),2),en=ee[0],et=ee[1],eo=function(e){var n=e.titleId,t=et(Q),o="`".concat(t.contentName,"` requires a `").concat(t.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(t.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(t.docsSlug);return u.useEffect(function(){n&&(document.getElementById(n)||console.error(o))},[o,n]),null},er=function(e){var n=e.contentRef,t=e.descriptionId,o=et("DialogDescriptionWarning"),r="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(o.contentName,"}.");return u.useEffect(function(){var e,o=null==(e=n.current)?void 0:e.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,n,t]),null},ei=j,ea=A,eu=U,ec=W,es=B,el=X,ed=K,ef=$}}]);
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.