1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="432b86f4-8179-517b-ec70-59f501660b07")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,881056,e=>{"use strict";var t=e.i(578791),n=0;function r(){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}e.s(["useFocusGuards",0,function(){t.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??r()),document.body.insertAdjacentElement("beforeend",e[1]??r()),n++,()=>{1===n&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),n--}},[])}])},172234,e=>{"use strict";let t;var n=e.i(578791),r=e.i(254161),o=e.i(513410),a=e.i(711743),i=e.i(190898),c="focusScope.autoFocusOnMount",l="focusScope.autoFocusOnUnmount",s={bubbles:!1,cancelable:!0},u=n.forwardRef((e,t)=>{let{loop:u=!1,trapped:h=!1,onMountAutoFocus:v,onUnmountAutoFocus:g,...y}=e,[b,x]=n.useState(null),w=(0,a.useCallbackRef)(v),E=(0,a.useCallbackRef)(g),C=n.useRef(null),N=(0,r.useComposedRefs)(t,e=>x(e)),R=n.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;n.useEffect(()=>{if(h){let e=function(e){if(R.paused||!b)return;let t=e.target;b.contains(t)?C.current=t:m(C.current,{select:!0})},t=function(e){if(R.paused||!b)return;let t=e.relatedTarget;null!==t&&(b.contains(t)||m(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&&m(b)});return b&&n.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[h,b,R.paused]),n.useEffect(()=>{if(b){p.add(R);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(c,s);b.addEventListener(c,w),b.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(m(r,{select:t}),document.activeElement!==n)return}(d(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(b))}return()=>{b.removeEventListener(c,w),setTimeout(()=>{let t=new CustomEvent(l,s);b.addEventListener(l,E),b.dispatchEvent(t),t.defaultPrevented||m(e??document.body,{select:!0}),b.removeEventListener(l,E),p.remove(R)},0)}}},[b,w,E,R]);let j=n.useCallback(e=>{if(!u&&!h||R.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){var r;let t,o=e.currentTarget,[a,i]=[f(t=d(r=o),r),f(t.reverse(),r)];a&&i?e.shiftKey||n!==i?e.shiftKey&&n===a&&(e.preventDefault(),u&&m(i,{select:!0})):(e.preventDefault(),u&&m(a,{select:!0})):n===o&&e.preventDefault()}},[u,h,R.paused]);return(0,i.jsx)(o.Primitive.div,{tabIndex:-1,...y,ref:N,onKeyDown:j})});function d(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 f(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 m(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()}}u.displayName="FocusScope";var p=(t=[],{add(e){let n=t[0];e!==n&&n?.pause(),(t=h(t,e)).unshift(e)},remove(e){t=h(t,e),t[0]?.resume()}});function h(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}e.s(["FocusScope",0,u])},739045,e=>{"use strict";var t=new WeakMap,n=new WeakMap,r={},o=0,a=function(e){return e&&(e.host||a(e.parentNode))},i=function(e,i,c,l){var s=(Array.isArray(e)?e:[e]).map(function(e){if(i.contains(e))return e;var t=a(e);return t&&i.contains(t)?t:(console.error("aria-hidden",e,"in not contained inside",i,". Doing nothing"),null)}).filter(function(e){return!!e});r[c]||(r[c]=new WeakMap);var u=r[c],d=[],f=new Set,m=new Set(s),p=function(e){!e||f.has(e)||(f.add(e),p(e.parentNode))};
2s.forEach(p);var h=function(e){!e||m.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))h(e);else try{var r=e.getAttribute(l),o=null!==r&&"false"!==r,a=(t.get(e)||0)+1,i=(u.get(e)||0)+1;t.set(e,a),u.set(e,i),d.push(e),1===a&&o&&n.set(e,!0),1===i&&e.setAttribute(c,"true"),o||e.setAttribute(l,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return h(i),f.clear(),o++,function(){d.forEach(function(e){var r=t.get(e)-1,o=u.get(e)-1;t.set(e,r),u.set(e,o),r||(n.has(e)||e.removeAttribute(l),n.delete(e)),o||e.removeAttribute(c)}),--o||(t=new WeakMap,t=new WeakMap,n=new WeakMap,r={})}};e.s(["hideOthers",0,function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),i(r,o,n,"aria-hidden")):function(){return null}}])},970272,e=>{"use strict";var t,n,r,o,a,i,c,l=e.i(477469),s=e.i(578791),u="right-scroll-bar-position",d="width-before-scroll-bar";function f(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var m="u">typeof window?s.useLayoutEffect:s.useEffect,p=new WeakMap,h=(void 0===t&&(t={}),(void 0===n&&(n=function(e){return e}),r=[],o=!1,a={read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var t=n(e,o);return r.push(t),function(){r=r.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(o=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){o=!0;var t=[];if(r.length){var n=r;r=[],n.forEach(e),t=r}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),r={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),r}}}}).options=(0,l.__assign)({async:!0,ssr:!1},t),a),v=function(){},g=s.forwardRef(function(e,t){var n,r,o,a,i=s.useRef(null),c=s.useState({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:v}),u=c[0],d=c[1],g=e.forwardProps,y=e.children,b=e.className,x=e.removeScrollBar,w=e.enabled,E=e.shards,C=e.sideCar,N=e.noRelative,R=e.noIsolation,j=e.inert,k=e.allowPinchZoom,D=e.as,S=e.gapMode,_=(0,l.__rest)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=(n=[i,t],r=function(e){return n.forEach(function(t){return f(t,e)})}
2,(o=(0,s.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,a=o.facade,m(function(){var e=p.get(a);if(e){var t=new Set(e),r=new Set(n),o=a.current;t.forEach(function(e){r.has(e)||f(e,null)}),r.forEach(function(e){t.has(e)||f(e,o)})}p.set(a,n)},[n]),a),M=(0,l.__assign)((0,l.__assign)({},_),u);return s.createElement(s.Fragment,null,w&&s.createElement(C,{sideCar:h,removeScrollBar:x,shards:E,noRelative:N,noIsolation:R,inert:j,setCallbacks:d,allowPinchZoom:!!k,lockRef:i,gapMode:S}),g?s.cloneElement(s.Children.only(y),(0,l.__assign)((0,l.__assign)({},M),{ref:T})):s.createElement(void 0===D?"div":D,(0,l.__assign)({},M,{className:b,ref:T}),y))});g.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},g.classNames={fullWidth:d,zeroRight:u};var y=function(e){var t=e.sideCar,n=(0,l.__rest)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return s.createElement(r,(0,l.__assign)({},n))};y.isSideCarExport=!0;var b=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=c||("u">typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var r,o;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},x=function(){var e=b();return function(t,n){s.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},w=function(){var e=x();return function(t){return e(t.styles,t.dynamic),null}},E={left:0,top:0,right:0,gap:0},C=function(e){return parseInt(e||"",10)||0},N=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[C(n),C(r),C(o)]},R=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return E;var t=N(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])}},j=w(),k="data-scroll-locked",D=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,c=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(c,"px ").concat(r,";\n }\n body[").concat(k,"] {\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(i,"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(u," {\n right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat(d," {\n margin-right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat(u," .").concat(u," {\n right: 0 ").concat(r,";\n }\n \n .").concat(d," .").concat(d," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(k,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(c,"px;\n }\n")},S=function(){var e=parseInt(document.body.getAttribute(k)||"0",10);return isFinite(e)?e:0},_=function(){s.useEffect(function(){return document.body.setAttribute(k,(S()+1).toString()),function(){var e=S()-1;e<=0?document.body.removeAttribute(k):document.body.setAttribute(k,e.toString())}},[])},T=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;_();var a=s.useMemo(function(){return R(o)},[o]);return s.createElement(j,{styles:D(a,!t,o,n?"":"!important")})},M=!1;if("u">typeof window)try{var A=Object.defineProperty({},"passive",{get:function(){return M=!0,!0}});window.addEventListener("test",A,A),window.removeEventListener("test",A,A)}catch(e){M=!1}
2var I=!!M&&{passive:!1},P=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},L=function(e,t){var n=t.ownerDocument,r=t;do{if("u">typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),F(e,r)){var o=O(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body)return!1},F=function(e,t){return"v"===e?P(t,"overflowY"):P(t,"overflowX")},O=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},W=function(e,t,n,r,o){var a,i=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),c=i*r,l=n.target,s=t.contains(l),u=!1,d=c>0,f=0,m=0;do{if(!l)break;var p=O(e,l),h=p[0],v=p[1]-p[2]-i*h;(h||v)&&F(e,l)&&(f+=v,m+=h);var g=l.parentNode;l=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!s&&l!==document.body||s&&(t.contains(l)||t===l))return d&&(o&&1>Math.abs(f)||!o&&c>f)?u=!0:!d&&(o&&1>Math.abs(m)||!o&&-c>m)&&(u=!0),u},B=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},H=function(e){return[e.deltaX,e.deltaY]},K=function(e){return e&&"current"in e?e.current:e},z=0,U=[];let X=(i=function(e){var t=s.useRef([]),n=s.useRef([0,0]),r=s.useRef(),o=s.useState(z++)[0],a=s.useState(w)[0],i=s.useRef(e);s.useEffect(function(){i.current=e},[e]),s.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,l.__spreadArray)([e.lockRef.current],(e.shards||[]).map(K),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=s.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var o,a=B(e),c=n.current,l="deltaX"in e?e.deltaX:c[0]-a[0],s="deltaY"in e?e.deltaY:c[1]-a[1],u=e.target,d=Math.abs(l)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=window.getSelection(),m=f&&f.anchorNode;if(m&&(m===u||m.contains(u)))return!1;var p=L(d,u);if(!p)return!0;if(p?o=d:(o="v"===d?"h":"v",p=L(d,u)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||s)&&(r.current=o),!o)return!0;var h=r.current||o;return W(h,t,e,"h"===h?l:s,!0)},[]),u=s.useCallback(function(e){if(U.length&&U[U.length-1]===a){var n="deltaY"in e?H(e):B(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(i.current.shards||[]).map(K).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?c(e,o[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),d=s.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),f=s.useCallback(function(e){n.current=B(e),r.current=void 0},[]),m=s.useCallback(function(t){d(t.type,H(t),t.target,c(t,e.lockRef.current))},[]),p=s.useCallback(function(t){d(t.type,B(t),t.target,c(t,e.lockRef.current))},[]);s.useEffect(function(){return U.push(a),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:p}),document.addEventListener("wheel",u,I),document.addEventListener("touchmove",u,I),document.addEventListener("touchstart",f,I),function(){U=U.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,I),document.removeEventListener("touchmove",u,I),document.removeEventListener("touchstart",f,I)}},[]);var h=e.removeScrollBar,v=e.inert;return s.createElement(s.Fragment,null,v?s.createElement(a,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,h?s.createElement(T,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},h.useMedium(i),y);var Y=s.forwardRef(function(e,t){return s.createElement(g,(0,l.__assign)({},e,{ref:t,sideCar:X}))});Y.classNames=g.classNames,e.s(["RemoveScroll",0,Y],970272)},978892,e=>{"use strict";var t=e.i(190898),n=e.i(207298),r=e.i(470733),o=e.i(735706),a=e.i(578791),i=e.i(485218),c=e.i(484649),l=e.i(104142);
2let s=["bio.xyz","biofy.xyz","desci.codes","discord.com","drive.google.com","etherscan.io","github.com","localhost","lu.ma","luma.com","typeform.com","medium.com","molecule.to","molecule.xyz","opensea.io","pump.science","shopdesci.com","solscan.io","substack.com","t.me","twitter.com","vitadao.com","x.com"],u=(0,n.cva)("text-foreground",{compoundVariants:[{className:"text-foreground",color:"monochrome",unstyled:!1},{className:"",color:"primary",unstyled:!1}],defaultVariants:{color:"primary",noUnderline:!1,unstyled:!1},variants:{color:{monochrome:"",primary:""},noUnderline:{false:"underline",true:"no-underline"},unstyled:{false:"",true:""}}}),d=({children:e,className:n,color:i,hideIcon:l,href:d,noUnderline:m=!0,opensInNewTab:p,prefetch:h,ref:v,skipSafetyCheck:g,unstyled:y,...b})=>{let[x,w]=(0,a.useState)("");return!d||d.startsWith("#")?(0,t.jsx)("a",{ref:v,className:(0,r.clsx)(u({className:n,color:i,noUnderline:m,unstyled:y})),href:d,...b,children:e}):d.startsWith("http")||p?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("a",{ref:v,className:(0,r.clsx)(u({className:n,color:i,noUnderline:m,unstyled:y})),href:d,onClick:e=>{d.startsWith("http")&&!g&&!function(e){try{let t=new URL(e);return s.some(e=>t.hostname===e||t.hostname.endsWith(`.${e}`))}catch{return!1}}(d)&&(e.preventDefault(),w(d))},rel:"noopener noreferrer",target:"_blank",...b,children:[e,l?null:(0,t.jsx)(c.Icon,{className:"inline align-middle",name:"arrow-up-right"})]}),x?(0,t.jsx)(f,{isOpen:!!x,onClose:()=>w(""),onConfirm:()=>{window.open(x,"_blank","noopener,noreferrer"),w("")},url:x}):null]}):(0,t.jsx)(o.default,{ref:v,className:(0,r.clsx)(u({className:n,color:i,noUnderline:m,unstyled:y})),href:d,prefetch:h,...b,children:e})};function f({isOpen:e,onClose:n,onConfirm:r,url:o}){let{domain:a,path:c,protocol:s}=function(e){try{let t=new URL(e);return{domain:t.hostname,path:t.pathname+t.search+t.hash,protocol:t.protocol+"//"}}catch{return{domain:e,path:"",protocol:""}}}(o);return(0,t.jsx)(l.Dialog,{onOpenChange:e=>!e&&n(),open:e,children:(0,t.jsxs)(l.DialogContent,{contentMaxWidth:"max-w-xl",children:[(0,t.jsx)(l.DialogHeader,{title:"Check this link is safe"}),(0,t.jsxs)(l.DialogBody,{children:[(0,t.jsx)("p",{className:"text-subtler mb-4",children:"This link isn't verified and may contain data from your conversation that will be shared with a third-party site. Make sure you trust this link before proceeding."}),(0,t.jsxs)("div",{className:"mb-6 break-all rounded-xl bg-gray-200 p-3 font-mono text-sm",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:s}),(0,t.jsx)("span",{className:"text-foreground font-semibold",children:a}),(0,t.jsx)("span",{className:"text-muted-foreground",children:c})]}),(0,t.jsxs)("div",{className:"flex justify-end gap-3",children:[(0,t.jsx)(i.Button,{onClick:n,size:"sm",variant:"subtle",children:"Cancel"}),(0,t.jsx)(i.Button,{onClick:r,size:"sm",children:"Open link"})]})]})]})})}d.displayName="Link",e.s(["Link",0,d])},104142,153458,e=>{"use strict";var t=e.i(190898),n=e.i(578791),r=e.i(119836),o=e.i(254161),a=e.i(28801),i=e.i(961655),c=e.i(882536),l=e.i(723745),s=e.i(172234),u=e.i(178699),d=e.i(203601),f=e.i(513410),m=e.i(881056),p=e.i(970272),h=e.i(739045),v=e.i(190279),g="Dialog",[y,b]=(0,a.createContextScope)(g),[x,w]=y(g),E=e=>{let{__scopeDialog:r,children:o,open:a,defaultOpen:l,onOpenChange:s,modal:u=!0}=e,d=n.useRef(null),f=n.useRef(null),[m,p]=(0,c.useControllableState)({prop:a,defaultProp:l??!1,onChange:s,caller:g});return(0,t.jsx)(x,{scope:r,triggerRef:d,contentRef:f,contentId:(0,i.useId)(),titleId:(0,i.useId)(),descriptionId:(0,i.useId)(),open:m,onOpenChange:p,onOpenToggle:n.useCallback(()=>p(e=>!e),[p]),modal:u,children:o})};E.displayName=g;var C="DialogTrigger",N=n.forwardRef((e,n)=>{let{__scopeDialog:a,...i}=e,c=w(C,a),l=(0,o.useComposedRefs)(n,c.triggerRef);return(0,t.jsx)(f.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":z(c.open),...i,ref:l,onClick:(0,r.composeEventHandlers)(e.onClick,c.onOpenToggle)})});N.displayName=C;var R="DialogPortal",[j,k]=y(R,{forceMount:void 0}),D=e=>{let{__scopeDialog:r,forceMount:o,children:a,container:i}=e,c=w(R,r);return(0,t.jsx)(j,{scope:r,forceMount:o,children:n.Children.map(a,e=>(0,t.jsx)(d.Presence,{present:o||c.open,children:(0,t.jsx)(u.Portal,{asChild:!0,container:i,children:e})}))})};D.displayName=R;
2var S="DialogOverlay",_=n.forwardRef((e,n)=>{let r=k(S,e.__scopeDialog),{forceMount:o=r.forceMount,...a}=e,i=w(S,e.__scopeDialog);return i.modal?(0,t.jsx)(d.Presence,{present:o||i.open,children:(0,t.jsx)(M,{...a,ref:n})}):null});_.displayName=S;var T=(0,v.createSlot)("DialogOverlay.RemoveScroll"),M=n.forwardRef((e,n)=>{let{__scopeDialog:r,...o}=e,a=w(S,r);return(0,t.jsx)(p.RemoveScroll,{as:T,allowPinchZoom:!0,shards:[a.contentRef],children:(0,t.jsx)(f.Primitive.div,{"data-state":z(a.open),...o,ref:n,style:{pointerEvents:"auto",...o.style}})})}),A="DialogContent",I=n.forwardRef((e,n)=>{let r=k(A,e.__scopeDialog),{forceMount:o=r.forceMount,...a}=e,i=w(A,e.__scopeDialog);return(0,t.jsx)(d.Presence,{present:o||i.open,children:i.modal?(0,t.jsx)(P,{...a,ref:n}):(0,t.jsx)(L,{...a,ref:n})})});I.displayName=A;var P=n.forwardRef((e,a)=>{let i=w(A,e.__scopeDialog),c=n.useRef(null),l=(0,o.useComposedRefs)(a,i.contentRef,c);return n.useEffect(()=>{let e=c.current;if(e)return(0,h.hideOthers)(e)},[]),(0,t.jsx)(F,{...e,ref:l,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,r.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),i.triggerRef.current?.focus()}),onPointerDownOutside:(0,r.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,r.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault())})}),L=n.forwardRef((e,r)=>{let o=w(A,e.__scopeDialog),a=n.useRef(!1),i=n.useRef(!1);return(0,t.jsx)(F,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(a.current||o.triggerRef.current?.focus(),t.preventDefault()),a.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(a.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let n=t.target;o.triggerRef.current?.contains(n)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),F=n.forwardRef((e,r)=>{let{__scopeDialog:a,trapFocus:i,onOpenAutoFocus:c,onCloseAutoFocus:u,...d}=e,f=w(A,a),p=n.useRef(null),h=(0,o.useComposedRefs)(r,p);return(0,m.useFocusGuards)(),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.FocusScope,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:c,onUnmountAutoFocus:u,children:(0,t.jsx)(l.DismissableLayer,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":z(f.open),...d,ref:h,onDismiss:()=>f.onOpenChange(!1)})}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)($,{titleId:f.titleId}),(0,t.jsx)(Z,{contentRef:p,descriptionId:f.descriptionId})]})]})}),O="DialogTitle",W=n.forwardRef((e,n)=>{let{__scopeDialog:r,...o}=e,a=w(O,r);return(0,t.jsx)(f.Primitive.h2,{id:a.titleId,...o,ref:n})});W.displayName=O;var B="DialogDescription";n.forwardRef((e,n)=>{let{__scopeDialog:r,...o}=e,a=w(B,r);return(0,t.jsx)(f.Primitive.p,{id:a.descriptionId,...o,ref:n})}).displayName=B;var H="DialogClose",K=n.forwardRef((e,n)=>{let{__scopeDialog:o,...a}=e,i=w(H,o);return(0,t.jsx)(f.Primitive.button,{type:"button",...a,ref:n,onClick:(0,r.composeEventHandlers)(e.onClick,()=>i.onOpenChange(!1))})});function z(e){return e?"open":"closed"}K.displayName=H;var U="DialogTitleWarning",[X,Y]=(0,a.createContext)(U,{contentName:A,titleName:O,docsSlug:"dialog"}),$=({titleId:e})=>{let t=Y(U),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 3 4If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 5 6For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return n.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Z=({contentRef:e,descriptionId:t})=>{let r=Y("DialogDescriptionWarning"),o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return n.useEffect(()=>{let n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null};e.s(["Close",0,K,"Content",0,I,"Overlay",0,_,"Portal",0,D,"Root",0,E,"Title",0,W,"Trigger",0,N],153458);var q=e.i(470733),G=e.i(873978),V=e.i(485218),J=e.i(484649);let Q=({className:e,size:n=24})=>(0,t.jsx)(K,{asChild:!0,children:(0,t.jsx)(V.Button,{"aria-label":"Close dialog",className:"group transition-colors dark:text-black",size:"icon",variant:"subtle",children:(0,t.jsx)(J.Icon,{className:e,name:"x",size:n})})}),ee=({className:e,ref:n,...r})=>(0,t.jsx)(_,{ref:n,asChild:!0,forceMount:!0,...r,children:(0,t.jsx)(G.motion.div,{animate:{o
6pacity:1},className:(0,q.clsx)("fixed inset-0 z-[60] bg-black/40 dark:bg-gray-800",e),exit:{opacity:0},initial:{opacity:0},transition:{duration:.15}})});ee.displayName=_.displayName;let et=({children:e,className:n,contentMaxWidth:r="max-w-md",ref:o,...a})=>(0,t.jsxs)(D,{forceMount:!0,children:[(0,t.jsx)(ee,{}),(0,t.jsx)(I,{ref:o,asChild:!0,className:(0,q.clsx)("fixed left-1/2 top-1/2 z-[60] flex max-h-[calc(100dvh_-_4rem)] w-full transform flex-col overflow-hidden rounded-2xl border bg-white shadow",n,r),forceMount:!0,...a,children:(0,t.jsx)(G.motion.div,{animate:{opacity:1,scale:1},exit:{opacity:0,scale:.96},initial:{opacity:0,scale:.96},style:{translateX:"-50%",translateY:"-50%"},transition:{duration:.2},children:e})})]});et.displayName=I.displayName;let en=({className:e,closeButtonClassName:n,showCloseButton:r=!0,title:o,...a})=>(0,t.jsxs)("div",{className:(0,q.clsx)("flex min-h-12 shrink-0 items-center justify-between px-6 pt-6",e),...a,children:[(0,t.jsx)(eo,{className:"!mb-0 line-clamp-1 text-base !font-medium",children:o}),r?(0,t.jsx)(Q,{className:n}):null]});en.displayName="DialogHeader";let er=({className:e,...n})=>(0,t.jsx)("div",{className:(0,q.clsx)("min-h-0 flex-1 overflow-y-auto px-6 pb-8 pt-4",e),...n});er.displayName="DialogBody";let eo=({className:e,ref:n,...r})=>(0,t.jsx)(W,{ref:n,className:(0,q.clsx)("text-lg font-semibold tracking-tight",e),...r});eo.displayName=W.displayName,e.s(["Dialog",0,E,"DialogBody",0,er,"DialogClose",0,Q,"DialogContent",0,et,"DialogHeader",0,en,"DialogOverlay",0,ee,"DialogPortal",0,D,"DialogTrigger",0,N],104142)}]); 7 8//# debugId=432b86f4-8179-517b-ec70-59f501660b07
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.