1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5294],{5845:(e,t,n)=>{n.d(t,{i:()=>u});var r,l=n(12115),o=n(52712),i=(r||(r=n.t(l,2)))[" useInsertionEffect ".trim().toString()]||o.N;function u({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,u,a]=function({defaultProp:e,onChange:t}){let[n,r]=l.useState(e),o=l.useRef(n),u=l.useRef(t);return i(()=>{u.current=t},[t]),l.useEffect(()=>{o.current!==n&&(u.current?.(n),o.current=n)},[n,o]),[n,r,u]}({defaultProp:t,onChange:n}),s=void 0!==e,d=s?e:o;{let t=l.useRef(void 0!==e);l.useEffect(()=>{let e=t.current;if(e!==s){let t=s?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=s},[s,r])}return[d,l.useCallback(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&a.current?.(n)}else u(t)},[s,e,u,a])]}Symbol("RADIX:SYNC_STATE")},20941:(e,t,n)=>{n.d(t,{bm:()=>eq,UC:()=>eB,VY:()=>eZ,hJ:()=>eU,ZL:()=>eV,bL:()=>ek,hE:()=>eK,l9:()=>e$});var r,l=n(12115),o=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function i(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function u(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return t=>{let n=!1,r=e.map(e=>{let r=u(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():u(e[t],null)}}}}function s(...e){return l.useCallback(a(...e),e)}var d=n(46081),c=n(61285),f=n(5845),p=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function m(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}var v=n(47650);function y(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function g(...e){return t=>{let n=!1,r=e.map(e=>{let r=y(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():y(e[t],null)}}}}function E(...e){return l.useCallback(g(...e),e)}var h=n(95155),b=Symbol("radix.slottable");function w(e){return l.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===b}var N=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=function(e){let t=function(e){let t=l.forwardRef((e,t)=>{let{children:n,...r}=e;if(l.isValidElement(n)){var o;let e,i;let u=(o=n,(i=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(i=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),a=function(e,t){let n={...t};for(let r in t){let l=e[r],o=t[r];/^on[A-Z]/.test(r)?l&&o?n[r]=(...e)=>{let t=o(...e);return l(...e),t}:l&&(n[r]=l):"style"===r?n[r]={...l,...o}:"className"===r&&(n[r]=[l,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==l.Fragment&&(a.ref=t?g(t,u):u),l.cloneElement(n,a)}return l.Children.count(n)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=l.forwardRef((e,n)=>{let{children:r,...o}=e,i=l.Children.toArray(r),u=i.find(w);if(u){let e=u.props.children,r=i.map(t=>t!==u?t:l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null);return(0,h.jsx)(t,{...o,ref:n,children:l.isValidElement(e)?l.cloneElement(e,void 0,r):null})}return(0,h.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}(`Primitive.${t}`),r=l.forwardRef((e,r)=>{let{asChild:l,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,h.jsx)(l?n:t,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),C=n(39033),R=n(51595),x="dismissableLayer.update",O=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),D=l.forwardRef((e,t)=>
1{var n,o;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:u,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:d,onDismiss:c,...f}=e,p=l.useContext(O),[v,y]=l.useState(null),g=null!==(o=null==v?void 0:v.ownerDocument)&&void 0!==o?o:null===(n=globalThis)||void 0===n?void 0:n.document,[,b]=l.useState({}),w=E(t,e=>y(e)),D=Array.from(p.layers),[S]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),I=D.indexOf(S),T=v?D.indexOf(v):-1,_=p.layersWithOutsidePointerEventsDisabled.size>0,A=T>=I,F=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,C.c)(e),o=l.useRef(!1),i=l.useRef(()=>{});return l.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){P("dismissableLayer.pointerDownOutside",r,l,{discrete:!0})},l={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...p.branches].some(e=>e.contains(t));!A||n||(null==a||a(e),null==d||d(e),e.defaultPrevented||null==c||c())},g),L=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,C.c)(e),o=l.useRef(!1);return l.useEffect(()=>{let e=e=>{e.target&&!o.current&&P("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;[...p.branches].some(e=>e.contains(t))||(null==s||s(e),null==d||d(e),e.defaultPrevented||null==c||c())},g);return(0,R.U)(e=>{T===p.layers.size-1&&(null==u||u(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},g),l.useEffect(()=>{if(v)return i&&(0===p.layersWithOutsidePointerEventsDisabled.size&&(r=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(v)),p.layers.add(v),j(),()=>{i&&1===p.layersWithOutsidePointerEventsDisabled.size&&(g.body.style.pointerEvents=r)}},[v,g,i,p]),l.useEffect(()=>()=>{v&&(p.layers.delete(v),p.layersWithOutsidePointerEventsDisabled.delete(v),j())},[v,p]),l.useEffect(()=>{let e=()=>b({});return document.addEventListener(x,e),()=>document.removeEventListener(x,e)},[]),(0,h.jsx)(N.div,{...f,ref:w,style:{pointerEvents:_?A?"auto":"none":void 0,...e.style},onFocusCapture:m(e.onFocusCapture,L.onFocusCapture),onBlurCapture:m(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:m(e.onPointerDownCapture,F.onPointerDownCapture)})});function j(){let e=new CustomEvent(x);document.dispatchEvent(e)}function P(e,t,n,r){let{discrete:l}=r,o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});if(t&&o.addEventListener(e,t,{once:!0}),l)o&&v.flushSync(()=>o.dispatchEvent(i));else o.dispatchEvent(i)}function S(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function I(...e){return t=>{let n=!1,r=e.map(e=>{let r=S(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():S(e[t],null)}}}}D.displayName="DismissableLayer",l.forwardRef((e,t)=>{let n=l.useContext(O),r=l.useRef(null),o=E(t,r);return l.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,h.jsx)(N.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var T=Symbol("radix.slottable");function _(e){return l.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===T}var A=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=function(e){let t=function(e){let t=l.forwardRef((e,t)=>{let{children:n,...r}=e;if(l.isValidElement(n)){var o;let e,i;let u=(o=n,(i=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.
1isReactWarning)?o.ref:(i=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),a=function(e,t){let n={...t};for(let r in t){let l=e[r],o=t[r];/^on[A-Z]/.test(r)?l&&o?n[r]=(...e)=>{let t=o(...e);return l(...e),t}:l&&(n[r]=l):"style"===r?n[r]={...l,...o}:"className"===r&&(n[r]=[l,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==l.Fragment&&(a.ref=t?I(t,u):u),l.cloneElement(n,a)}return l.Children.count(n)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=l.forwardRef((e,n)=>{let{children:r,...o}=e,i=l.Children.toArray(r),u=i.find(_);if(u){let e=u.props.children,r=i.map(t=>t!==u?t:l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null);return(0,h.jsx)(t,{...o,ref:n,children:l.isValidElement(e)?l.cloneElement(e,void 0,r):null})}return(0,h.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}(`Primitive.${t}`),r=l.forwardRef((e,r)=>{let{asChild:l,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,h.jsx)(l?n:t,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),F="focusScope.autoFocusOnMount",L="focusScope.autoFocusOnUnmount",W={bubbles:!1,cancelable:!0},M=l.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...u}=e,[a,s]=l.useState(null),d=(0,C.c)(o),c=(0,C.c)(i),f=l.useRef(null),p=function(...e){return l.useCallback(I(...e),e)}(t,e=>s(e)),m=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let e=function(e){if(m.paused||!a)return;let t=e.target;a.contains(t)?f.current=t:V(f.current,{select:!0})},t=function(e){if(m.paused||!a)return;let t=e.relatedTarget;null===t||a.contains(t)||V(f.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&&V(a)});return a&&n.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,a,m.paused]),l.useEffect(()=>{if(a){U.add(m);let e=document.activeElement;if(!a.contains(e)){let t=new CustomEvent(F,W);a.addEventListener(F,d),a.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(V(r,{select:t}),document.activeElement!==n)return}(k(a).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&V(a))}return()=>{a.removeEventListener(F,d),setTimeout(()=>{let t=new CustomEvent(L,W);a.addEventListener(L,c),a.dispatchEvent(t),t.defaultPrevented||V(null!=e?e:document.body,{select:!0}),a.removeEventListener(L,c),U.remove(m)},0)}}},[a,d,c,m]);let v=l.useCallback(e=>{if(!n&&!r||m.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,l=document.activeElement;if(t&&l){let t=e.currentTarget,[r,o]=function(e){let t=k(e);return[$(t,e),$(t.reverse(),e)]}(t);r&&o?e.shiftKey||l!==o?e.shiftKey&&l===r&&(e.preventDefault(),n&&V(o,{select:!0})):(e.preventDefault(),n&&V(r,{select:!0})):l===t&&e.preventDefault()}},[n,r,m.paused]);return(0,h.jsx)(A.div,{tabIndex:-1,...u,ref:p,onKeyDown:v})});function k(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 $(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 V(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()}}M.displayName="FocusScope";var U=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=B(e,t)).unshift(t)},remove(t){var n;null===(n=(e=B(e,t))[0])||void 0===n||n.resume()}}}();function B(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}function K(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}var Z=Symbol("radix.slottable");function q(e){return l.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Z}var z=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
1{let n=function(e){let t=function(e){let t=l.forwardRef((e,t)=>{let{children:n,...r}=e;if(l.isValidElement(n)){var o;let e,i;let u=(o=n,(i=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(i=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),a=function(e,t){let n={...t};for(let r in t){let l=e[r],o=t[r];/^on[A-Z]/.test(r)?l&&o?n[r]=(...e)=>{let t=o(...e);return l(...e),t}:l&&(n[r]=l):"style"===r?n[r]={...l,...o}:"className"===r&&(n[r]=[l,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==l.Fragment&&(a.ref=t?function(...e){return t=>{let n=!1,r=e.map(e=>{let r=K(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():K(e[t],null)}}}}(t,u):u),l.cloneElement(n,a)}return l.Children.count(n)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=l.forwardRef((e,n)=>{let{children:r,...o}=e,i=l.Children.toArray(r),u=i.find(q);if(u){let e=u.props.children,r=i.map(t=>t!==u?t:l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null);return(0,h.jsx)(t,{...o,ref:n,children:l.isValidElement(e)?l.cloneElement(e,void 0,r):null})}return(0,h.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}(`Primitive.${t}`),r=l.forwardRef((e,r)=>{let{asChild:l,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,h.jsx)(l?n:t,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),H=n(52712),Y=l.forwardRef((e,t)=>{var n,r;let{container:o,...i}=e,[u,a]=l.useState(!1);(0,H.N)(()=>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?v.createPortal((0,h.jsx)(z.div,{...i,ref:t}),s):null});Y.displayName="Portal";var J=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,o]=l.useState(),i=l.useRef(null),u=l.useRef(e),a=l.useRef("none"),[s,d]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},l.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return l.useEffect(()=>{let e=X(i.current);a.current="mounted"===s?e:"none"},[s]),(0,H.N)(()=>{let t=i.current,n=u.current;if(n!==e){let r=a.current,l=X(t);e?d("MOUNT"):"none"===l||(null==t?void 0:t.display)==="none"?d("UNMOUNT"):n&&r!==l?d("ANIMATION_OUT"):d("UNMOUNT"),u.current=e}},[e,d]),(0,H.N)(()=>{if(r){var e;let t;let n=null!==(e=r.ownerDocument.defaultView)&&void 0!==e?e:window,l=e=>{let l=X(i.current).includes(CSS.escape(e.animationName));if(e.target===r&&l&&(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)})}},o=e=>{e.target===r&&(a.current=X(i.current))};return r.addEventListener("animationstart",o),r.addEventListener("animationcancel",l),r.addEventListener("animationend",l),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",o),r.removeEventListener("animationcancel",l),r.removeEventListener("animationend",l)}}d("ANIMATION_END")},[r,d]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:l.useCallback(e=>{i.current=e?getComputedStyle(e):null,o(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):l.Children.only(n),i=s(r.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,l=r&&"isReactWarning"in r&&r.isReactWarning;return l?e.ref:(l=(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(o));return"function"==typeof n||r.isPresent?l.cloneElement(o,{ref:i}):null};function X(e){return(null==e?void 0:e.animationName)||"none"}function G(e){let t=function(e){let t=l.forwardRef((e,t)=>{let{children:n,...r}=e;if(l.isValidElement(n)){var o;let e,i;let u=(o=n,(i=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.
1isReactWarning)?o.ref:(i=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),s=function(e,t){let n={...t};for(let r in t){let l=e[r],o=t[r];/^on[A-Z]/.test(r)?l&&o?n[r]=(...e)=>{let t=o(...e);return l(...e),t}:l&&(n[r]=l):"style"===r?n[r]={...l,...o}:"className"===r&&(n[r]=[l,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==l.Fragment&&(s.ref=t?a(t,u):u),l.cloneElement(n,s)}return l.Children.count(n)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=l.forwardRef((e,n)=>{let{children:r,...o}=e,i=l.Children.toArray(r),u=i.find(ee);if(u){let e=u.props.children,r=i.map(t=>t!==u?t:l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null);return(0,h.jsx)(t,{...o,ref:n,children:l.isValidElement(e)?l.cloneElement(e,void 0,r):null})}return(0,h.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}J.displayName="Presence";var Q=Symbol("radix.slottable");function ee(e){return l.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Q}var et=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=G(`Primitive.${t}`),r=l.forwardRef((e,r)=>{let{asChild:l,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,h.jsx)(l?n:t,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),en=0;function er(){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 el=n(93795),eo=n(38168),ei="Dialog",[eu,ea]=(0,d.A)(ei),[es,ed]=eu(ei),ec=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:u=!0}=e,a=l.useRef(null),s=l.useRef(null),[d,p]=(0,f.i)({prop:r,defaultProp:null!=o&&o,onChange:i,caller:ei});return(0,h.jsx)(es,{scope:t,triggerRef:a,contentRef:s,contentId:(0,c.B)(),titleId:(0,c.B)(),descriptionId:(0,c.B)(),open:d,onOpenChange:p,onOpenToggle:l.useCallback(()=>p(e=>!e),[p]),modal:u,children:n})};ec.displayName=ei;var ef="DialogTrigger",ep=l.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,l=ed(ef,n),o=s(t,l.triggerRef);return(0,h.jsx)(et.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":e_(l.open),...r,ref:o,onClick:i(e.onClick,l.onOpenToggle)})});ep.displayName=ef;var em="DialogPortal",[ev,ey]=eu(em,{forceMount:void 0}),eg=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=ed(em,t);return(0,h.jsx)(ev,{scope:t,forceMount:n,children:l.Children.map(r,e=>(0,h.jsx)(J,{present:n||i.open,children:(0,h.jsx)(Y,{asChild:!0,container:o,children:e})}))})};
1eg.displayName=em;var eE="DialogOverlay",eh=l.forwardRef((e,t)=>{let n=ey(eE,e.__scopeDialog),{forceMount:r=n.forceMount,...l}=e,o=ed(eE,e.__scopeDialog);return o.modal?(0,h.jsx)(J,{present:r||o.open,children:(0,h.jsx)(ew,{...l,ref:t})}):null});eh.displayName=eE;var eb=G("DialogOverlay.RemoveScroll"),ew=l.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,l=ed(eE,n);return(0,h.jsx)(el.A,{as:eb,allowPinchZoom:!0,shards:[l.contentRef],children:(0,h.jsx)(et.div,{"data-state":e_(l.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),eN="DialogContent",eC=l.forwardRef((e,t)=>{let n=ey(eN,e.__scopeDialog),{forceMount:r=n.forceMount,...l}=e,o=ed(eN,e.__scopeDialog);return(0,h.jsx)(J,{present:r||o.open,children:o.modal?(0,h.jsx)(eR,{...l,ref:t}):(0,h.jsx)(ex,{...l,ref:t})})});eC.displayName=eN;var eR=l.forwardRef((e,t)=>{let n=ed(eN,e.__scopeDialog),r=l.useRef(null),o=s(t,n.contentRef,r);return l.useEffect(()=>{let e=r.current;if(e)return(0,eo.Eq)(e)},[]),(0,h.jsx)(eO,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:i(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:i(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:i(e.onFocusOutside,e=>e.preventDefault())})}),ex=l.forwardRef((e,t)=>{let n=ed(eN,e.__scopeDialog),r=l.useRef(!1),o=l.useRef(!1);return(0,h.jsx)(eO,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var l,i;null===(l=e.onCloseAutoFocus)||void 0===l||l.call(e,t),t.defaultPrevented||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var l,i;null===(l=e.onInteractOutside)||void 0===l||l.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let u=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(u))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),eO=l.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...u}=e,a=ed(eN,n),d=l.useRef(null),c=s(t,d);return l.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:er()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:er()),en++,()=>{1===en&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),en--}},[]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(M,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,h.jsx)(D,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":e_(a.open),...u,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(eW,{titleId:a.titleId}),(0,h.jsx)(eM,{contentRef:d,descriptionId:a.descriptionId})]})]})}),eD="DialogTitle",ej=l.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,l=ed(eD,n);return(0,h.jsx)(et.h2,{id:l.titleId,...r,ref:t})});ej.displayName=eD;var eP="DialogDescription",eS=l.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,l=ed(eP,n);return(0,h.jsx)(et.p,{id:l.descriptionId,...r,ref:t})});eS.displayName=eP;var eI="DialogClose",eT=l.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,l=ed(eI,n);return(0,h.jsx)(et.button,{type:"button",...r,ref:t,onClick:i(e.onClick,()=>l.onOpenChange(!1))})});function e_(e){return e?"open":"closed"}eT.displayName=eI;var eA="DialogTitleWarning",[eF,eL]=(0,d.q)(eA,{contentName:eN,titleName:eD,docsSlug:"dialog"}),eW=e=>{let{titleId:t}=e,n=eL(eA),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 l.useEffect(()=>{t&&!document.getElementById(t)&&console.error(r)},[r,t]),null},eM=e=>{let{contentRef:t,descriptionId:n}=e,r=eL("DialogDescriptionWarning"),o="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(r.contentName,"}.");return l.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},ek=ec,e$=ep,eV=eg,eU=eh,eB=eC,eK=ej,eZ=eS,eq=eT},74466:(e,t,n)=>{n.d(t,{F:()=>i});var r=n(52596);let l=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,o=r.$,i=(e,t)=>n=>{var r;if((null==t?void 0:t.variants)==null)return o(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:i,defaultVariants:u}=t,a=Object.keys(i).map(e=>{let t=null==n?void 0:n[e],r=null==u?void 0:u[e];
1if(null===t)return null;let o=l(t)||l(r);return i[e][o]}),s=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return o(e,a,null==t?void 0:null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...l}=t;return Object.entries(l).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...u,...s}[t]):({...u,...s})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}}}]);
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.