PageSourceSearch

https://dreamshot-ai.vercel.app/_next/static/chunks/a9475a2bcba8e9df.js?dpl=dpl_4nCn5bV6bcHusefBMiucP76iPujQ

js dreamshot-ai.vercel.app collected 2026-10-03 06:47:23 UTC 60,280 bytes, 5 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,1896,e=>{"use strict";var t=e.i(67147);function n(e){let n=t.useRef(e);return t.useEffect(()=>{n.current=e}),t.useMemo(()=>(...e)=>n.current?.(...e),[])}e.s(["useCallbackRef",()=>n])},96326,e=>{"use strict";var t,n=e.i(67147),r=e.i(91967),o=e.i(21467),i=e.i(7939),a=e.i(1896),l=e.i(95897),s="dismissableLayer.update",u=n.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),c=n.forwardRef((e,c)=>{let{disableOutsidePointerEvents:p=!1,onEscapeKeyDown:m,onPointerDownOutside:h,onFocusOutside:v,onInteractOutside:g,onDismiss:y,...w}=e,b=n.useContext(u),[x,E]=n.useState(null),R=x?.ownerDocument??globalThis?.document,[,C]=n.useState({}),P=(0,i.useComposedRefs)(c,e=>E(e)),S=Array.from(b.layers),[A]=[...b.layersWithOutsidePointerEventsDisabled].slice(-1),D=S.indexOf(A),O=x?S.indexOf(x):-1,L=b.layersWithOutsidePointerEventsDisabled.size>0,j=O>=D,k=function(e,t=globalThis?.document){let r=(0,a.useCallbackRef)(e),o=n.useRef(!1),i=n.useRef(()=>{});return n.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let n=function(){f("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=n,t.addEventListener("click",i.current,{once:!0})):n()}else t.removeEventListener("click",i.current);o.current=!1},n=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(n),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...b.branches].some(e=>e.contains(t));j&&!n&&(h?.(e),g?.(e),e.defaultPrevented||y?.())},R),T=function(e,t=globalThis?.document){let r=(0,a.useCallbackRef)(e),o=n.useRef(!1);return n.useEffect(()=>{let e=e=>{e.target&&!o.current&&f("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;![...b.branches].some(e=>e.contains(t))&&(v?.(e),g?.(e),e.defaultPrevented||y?.())},R);return!function(e,t=globalThis?.document){let r=(0,a.useCallbackRef)(e);n.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{O===b.layers.size-1&&(m?.(e),!e.defaultPrevented&&y&&(e.preventDefault(),y()))},R),n.useEffect(()=>{if(x)return p&&(0===b.layersWithOutsidePointerEventsDisabled.size&&(t=R.body.style.pointerEvents,R.body.style.pointerEvents="none"),b.layersWithOutsidePointerEventsDisabled.add(x)),b.layers.add(x),d(),()=>{p&&1===b.layersWithOutsidePointerEventsDisabled.size&&(R.body.style.pointerEvents=t)}},[x,R,p,b]),n.useEffect(()=>()=>{x&&(b.layers.delete(x),b.layersWithOutsidePointerEventsDisabled.delete(x),d())},[x,b]),n.useEffect(()=>{let e=()=>C({});return document.addEventListener(s,e),()=>document.removeEventListener(s,e)},[]),(0,l.jsx)(o.Primitive.div,{...w,ref:P,style:{pointerEvents:L?j?"auto":"none":void 0,...e.style},onFocusCapture:(0,r.composeEventHandlers)(e.onFocusCapture,T.onFocusCapture),onBlurCapture:(0,r.composeEventHandlers)(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:(0,r.composeEventHandlers)(e.onPointerDownCapture,k.onPointerDownCapture)})});function d(){let e=new CustomEvent(s);document.dispatchEvent(e)}function f(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,o.dispatchDiscreteCustomEvent)(i,a):i.dispatchEvent(a)}c.displayName="DismissableLayer",n.forwardRef((e,t)=>{let r=n.useContext(u),a=n.useRef(null),s=(0,i.useComposedRefs)(t,a);return n.useEffect(()=>{let e=a.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,l.jsx)(o.Primitive.div,{...e,ref:s})}).displayName="DismissableLayerBranch",e.s(["DismissableLayer",()=>c],96326)},86297,e=>{"use strict";var t=e.i(67147),n=0;function r(){t.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??o()),document.body.insertAdjacentElement("beforeend",e[1]??o()),n++,()=>{1===n&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e
1=>e.remove()),n--}},[])}function o(){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",()=>r])},35412,99051,e=>{"use strict";let t;var n=e.i(67147),r=e.i(7939),o=e.i(21467),i=e.i(1896),a=e.i(95897),l="focusScope.autoFocusOnMount",s="focusScope.autoFocusOnUnmount",u={bubbles:!1,cancelable:!0},c=n.forwardRef((e,t)=>{let{loop:c=!1,trapped:h=!1,onMountAutoFocus:v,onUnmountAutoFocus:g,...y}=e,[w,b]=n.useState(null),x=(0,i.useCallbackRef)(v),E=(0,i.useCallbackRef)(g),R=n.useRef(null),C=(0,r.useComposedRefs)(t,e=>b(e)),P=n.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;n.useEffect(()=>{if(h){let e=function(e){if(P.paused||!w)return;let t=e.target;w.contains(t)?R.current=t:p(R.current,{select:!0})},t=function(e){if(P.paused||!w)return;let t=e.relatedTarget;null!==t&&(w.contains(t)||p(R.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&&p(w)});return w&&n.observe(w,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[h,w,P.paused]),n.useEffect(()=>{if(w){m.add(P);let e=document.activeElement;if(!w.contains(e)){let t=new CustomEvent(l,u);w.addEventListener(l,x),w.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(p(r,{select:t}),document.activeElement!==n)return}(d(w).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&p(w))}return()=>{w.removeEventListener(l,x),setTimeout(()=>{let t=new CustomEvent(s,u);w.addEventListener(s,E),w.dispatchEvent(t),t.defaultPrevented||p(e??document.body,{select:!0}),w.removeEventListener(s,E),m.remove(P)},0)}}},[w,x,E,P]);let S=n.useCallback(e=>{if(!c&&!h||P.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,[i,a]=[f(t=d(r=o),r),f(t.reverse(),r)];i&&a?e.shiftKey||n!==a?e.shiftKey&&n===i&&(e.preventDefault(),c&&p(a,{select:!0})):(e.preventDefault(),c&&p(i,{select:!0})):n===o&&e.preventDefault()}},[c,h,P.paused]);return(0,a.jsx)(o.Primitive.div,{tabIndex:-1,...y,ref:C,onKeyDown:S})});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 p(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()}}c.displayName="FocusScope";var m=(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",()=>c],35412);var v=e.i(93850),g=e.i(3071),y=n.forwardRef((e,t)=>{let{container:r,...i}=e,[l,s]=n.useState(!1);(0,g.useLayoutEffect)(()=>s(!0),[]);let u=r||l&&globalThis?.document?.body;return u?v.default.createPortal((0,a.jsx)(o.Primitive.div,{...i,ref:t}),u):null});y.displayName="Portal",e.s(["Portal",()=>y],99051)},73772,e=>{"use strict";var t=new WeakMap,n=new WeakMap,r={},o=0,i=function(e){return e&&(e.host||i(e.parentNode))},a=function(e,a,l,s){var u=(Array.isArray(e)?e:[e]).map(function(e){if(a.contains(e))return e;var t=i(e);return t&&a.contains(t)?t:(console.error("aria-hidden",e,"in not contained inside",a,". Doing nothing"),null)}).filter(function(e){return!!e});r[l]||(r[l]=new WeakMap);var c=r[l],d=[],f=new Set,p=new Set(u),m=function(e){!e||f.has(e)||(f.add(e),m(e.parentNode))};u.forEach(m);var h=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))h(e);
1else try{var r=e.getAttribute(s),o=null!==r&&"false"!==r,i=(t.get(e)||0)+1,a=(c.get(e)||0)+1;t.set(e,i),c.set(e,a),d.push(e),1===i&&o&&n.set(e,!0),1===a&&e.setAttribute(l,"true"),o||e.setAttribute(s,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return h(a),f.clear(),o++,function(){d.forEach(function(e){var r=t.get(e)-1,o=c.get(e)-1;t.set(e,r),c.set(e,o),r||(n.has(e)||e.removeAttribute(s),n.delete(e)),o||e.removeAttribute(l)}),--o||(t=new WeakMap,t=new WeakMap,n=new WeakMap,r={})}},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], script"))),a(r,o,n,"aria-hidden")):function(){return null}};e.s(["hideOthers",()=>l])},47949,e=>{"use strict";var t,n,r,o,i,a,l,s=function(){return(s=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 u(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}var c=("function"==typeof SuppressedError&&SuppressedError,e.i(67147)),d="right-scroll-bar-position",f="width-before-scroll-bar";function p(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var m="undefined"!=typeof window?c.useLayoutEffect:c.useEffect,h=new WeakMap,v=(void 0===t&&(t={}),(void 0===n&&(n=function(e){return e}),r=[],o=!1,i={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 i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}}).options=s({async:!0,ssr:!1},t),i),g=function(){},y=c.forwardRef(function(e,t){var n,r,o,i,a=c.useRef(null),l=c.useState({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:g}),d=l[0],f=l[1],y=e.forwardProps,w=e.children,b=e.className,x=e.removeScrollBar,E=e.enabled,R=e.shards,C=e.sideCar,P=e.noRelative,S=e.noIsolation,A=e.inert,D=e.allowPinchZoom,O=e.as,L=e.gapMode,j=u(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=(n=[a,t],r=function(e){return n.forEach(function(t){return p(t,e)})},(o=(0,c.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,i=o.facade,m(function(){var e=h.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||p(e,null)}),r.forEach(function(e){t.has(e)||p(e,o)})}h.set(i,n)},[n]),i),T=s(s({},j),d);return c.createElement(c.Fragment,null,E&&c.createElement(C,{sideCar:v,removeScrollBar:x,shards:R,noRelative:P,noIsolation:S,inert:A,setCallbacks:f,allowPinchZoom:!!D,lockRef:a,gapMode:L}),y?c.cloneElement(c.Children.only(w),s(s({},T),{ref:k})):c.createElement(void 0===O?"div":O,s({},T,{className:b,ref:k}),w))});y.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},y.classNames={fullWidth:f,zeroRight:d};var w=function(e){var t=e.sideCar,n=u(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 c.createElement(r,s({},n))};
1w.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=l||("undefined"!=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){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},E=function(){var e=x();return function(t){return e(t.styles,t.dynamic),null}},R={left:0,top:0,right:0,gap:0},C=function(e){return parseInt(e||"",10)||0},P=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)]},S=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return R;var t=P(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])}},A=E(),D="data-scroll-locked",O=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(l,"px ").concat(r,";\n  }\n  body[").concat(D,"] {\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(i,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(l,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(d," {\n    right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(f," {\n    margin-right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(d," .").concat(d," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(f," .").concat(f," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(D,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n  }\n")},L=function(){var e=parseInt(document.body.getAttribute(D)||"0",10);return isFinite(e)?e:0},j=function(){c.useEffect(function(){return document.body.setAttribute(D,(L()+1).toString()),function(){var e=L()-1;e<=0?document.body.removeAttribute(D):document.body.setAttribute(D,e.toString())}},[])},k=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;j();var i=c.useMemo(function(){return S(o)},[o]);return c.createElement(A,{styles:O(i,!t,o,n?"":"!important")})},T=!1;if("undefined"!=typeof window)try{var N=Object.defineProperty({},"passive",{get:function(){return T=!0,!0}});window.addEventListener("test",N,N),window.removeEventListener("test",N,N)}catch(e){T=!1}var F=!!T&&{passive:!1},M=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])},I=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),_(e,r)){var o=W(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body)return!1},_=function(e,t){return"v"===e?M(t,"overflowY"):M(t,"overflowX")},W=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},H=function(e,t,n,r,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),l=a*r,s=n.target,u=t.contains(s),c=!1,d=l>0,f=0,p=0;do{if(!s)break;var m=W(e,s),h=m[0],v=m[1]-m[2]-a*h;(h||v)&&_(e,s)&&(f+=v,p+=h);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!u&&s!==document.body||u&&(t.contains(s)||t===s))return d&&(o&&1>Math.abs(f)||!o&&l>f)?c=!0:!d&&(o&&1>Math.abs(p)||!o&&-l>p)&&(c=!0),c},B=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},z=function(e){return[e.deltaX,e.deltaY]},$=function(e){return e&&"current"in e?e.current:e},K=0,X=[];let Y=(a=function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(K++)[0],i=c.useState(E)[0],a=c.useRef(e);c.useEffect(function(){a.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(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))}
1)([e.lockRef.current],(e.shards||[]).map($),!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 l=c.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=B(e),l=n.current,s="deltaX"in e?e.deltaX:l[0]-i[0],u="deltaY"in e?e.deltaY:l[1]-i[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=I(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=I(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=o),!o)return!0;var p=r.current||o;return H(p,t,e,"h"===p?s:u,!0)},[]),s=c.useCallback(function(e){if(X.length&&X[X.length-1]===i){var n="deltaY"in e?z(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=(a.current.shards||[]).map($).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?l(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=c.useCallback(function(e,n,r,o){var i={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(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=c.useCallback(function(e){n.current=B(e),r.current=void 0},[]),f=c.useCallback(function(t){u(t.type,z(t),t.target,l(t,e.lockRef.current))},[]),p=c.useCallback(function(t){u(t.type,B(t),t.target,l(t,e.lockRef.current))},[]);c.useEffect(function(){return X.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,F),document.addEventListener("touchmove",s,F),document.addEventListener("touchstart",d,F),function(){X=X.filter(function(e){return e!==i}),document.removeEventListener("wheel",s,F),document.removeEventListener("touchmove",s,F),document.removeEventListener("touchstart",d,F)}},[]);var m=e.removeScrollBar,h=e.inert;return c.createElement(c.Fragment,null,h?c.createElement(i,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?c.createElement(k,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},v.useMedium(a),w);var V=c.forwardRef(function(e,t){return c.createElement(y,s({},e,{ref:t,sideCar:Y}))});V.classNames=y.classNames,e.s(["RemoveScroll",0,V],47949)},37822,24278,62870,e=>{"use strict";var t=e.i(95897),n=e.i(67147),r=e.i(91967),o=e.i(7939),i=e.i(62568),a=e.i(96326),l=e.i(86297),s=e.i(35412),u=e.i(92822);let c=["top","right","bottom","left"],d=Math.min,f=Math.max,p=Math.round,m=Math.floor,h=e=>({x:e,y:e}),v={left:"right",right:"left",bottom:"top",top:"bottom"},g={start:"end",end:"start"};function y(e,t){return"function"==typeof e?e(t):e}function w(e){return e.split("-")[0]}function b(e){return e.split("-")[1]}function x(e){return"x"===e?"y":"x"}function E(e){return"y"===e?"height":"width"}let R=new Set(["top","bottom"]);function C(e){return R.has(w(e))?"y":"x"}function P(e){return e.replace(/start|end/g,e=>g[e])}let S=["left","right"],A=["right","left"],D=["top","bottom"],O=["bottom","top"];function L(e){return e.replace(/left|right|bottom|top/g,e=>v[e])}function j(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function k(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function T(e,t,n){let r,{reference:o,floating:i}=e,a=C(t),l=x(C(t)),s=E(l),u=w(t),c="y"===a,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[s]/2-i[s]/2;switch(u){case"top":r={x:d,y:o.y-i.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-i.width,y:f};break;default:r={x:o.x,y:o.y}}switch(b(t)){case"start":r[l]-=p*(n&&c?-1:1);break;case"end":r[l]+=p*(n&&c?-1:1)}return r}let N=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}
1=n,l=i.filter(Boolean),s=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=T(u,r,s),f=r,p={},m=0;for(let n=0;n<l.length;n++){let{name:i,fn:h}=l[n],{x:v,y:g,data:y,reset:w}=await h({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=v?v:c,d=null!=g?g:d,p={...p,[i]:{...p[i],...y}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(u=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:c,y:d}=T(u,f,s)),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}};async function F(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=y(t,e),m=j(p),h=l[f?"floating"===d?"reference":"floating":d],v=k(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:s})),g="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,w=await (null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),b=await (null==i.isElement?void 0:i.isElement(w))&&await (null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},x=k(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:w,strategy:s}):g);return{top:(v.top-x.top+m.top)/b.y,bottom:(x.bottom-v.bottom+m.bottom)/b.y,left:(v.left-x.left+m.left)/b.x,right:(x.right-v.right+m.right)/b.x}}function M(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function I(e){return c.some(t=>e[t]>=0)}let _=new Set(["left","top"]);async function W(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),a=w(n),l=b(n),s="y"===C(n),u=_.has(a)?-1:1,c=i&&s?-1:1,d=y(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof m&&(p="end"===l?-1*m:m),s?{x:p*c,y:f*u}:{x:f*u,y:p*c}}function H(){return"undefined"!=typeof window}function B(e){return K(e)?(e.nodeName||"").toLowerCase():"#document"}function z(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function $(e){var t;return null==(t=(K(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function K(e){return!!H()&&(e instanceof Node||e instanceof z(e).Node)}function X(e){return!!H()&&(e instanceof Element||e instanceof z(e).Element)}function Y(e){return!!H()&&(e instanceof HTMLElement||e instanceof z(e).HTMLElement)}function V(e){return!!H()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof z(e).ShadowRoot)}let U=new Set(["inline","contents"]);function q(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=ea(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!U.has(o)}let Z=new Set(["table","td","th"]),G=[":popover-open",":modal"];function J(e){return G.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let Q=["transform","translate","scale","rotate","perspective"],ee=["transform","translate","scale","rotate","perspective","filter"],et=["paint","layout","strict","content"];function en(e){let t=er(),n=X(e)?ea(e):e;return Q.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||ee.some(e=>(n.willChange||"").includes(e))||et.some(e=>(n.contain||"").includes(e))}function er(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let eo=new Set(["html","body","#document"]);function ei(e){return eo.has(B(e))}function ea(e){return z(e).getComputedStyle(e)}function el(e){return X(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function es(e){if("html"===B(e))return e;let t=e.assignedSlot||e.parentNode||V(e)&&e.host||$(e);return V(t)?t.host:t}function eu(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=es(t);return ei(n)?t.ownerDocument?t.ownerDocument.body:t.body:Y(n)&&q(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=z(o);if(i){let e=ec(a);
1return t.concat(a,a.visualViewport||[],q(o)?o:[],e&&n?eu(e):[])}return t.concat(o,eu(o,[],n))}function ec(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ed(e){let t=ea(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Y(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=p(n)!==i||p(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function ef(e){return X(e)?e:e.contextElement}function ep(e){let t=ef(e);if(!Y(t))return h(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ed(t),a=(i?p(n.width):n.width)/r,l=(i?p(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}let em=h(0);function eh(e){let t=z(e);return er()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:em}function ev(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),a=ef(e),l=h(1);t&&(r?X(r)&&(l=ep(r)):l=ep(e));let s=(void 0===(o=n)&&(o=!1),r&&(!o||r===z(a))&&o)?eh(a):h(0),u=(i.left+s.x)/l.x,c=(i.top+s.y)/l.y,d=i.width/l.x,f=i.height/l.y;if(a){let e=z(a),t=r&&X(r)?z(r):r,n=e,o=ec(n);for(;o&&r&&t!==n;){let e=ep(o),t=o.getBoundingClientRect(),r=ea(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=i,c+=a,o=ec(n=z(o))}}return k({width:d,height:f,x:u,y:c})}function eg(e,t){let n=el(e).scrollLeft;return t?t.left+n:ev($(e)).left+n}function ey(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-eg(e,n),y:n.top+t.scrollTop}}let ew=new Set(["absolute","fixed"]);function eb(e,t,n){var r;let o;if("viewport"===t)o=function(e,t){let n=z(e),r=$(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;let e=er();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}let u=eg(r);if(u<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else u<=25&&(i+=u);return{width:i,height:a,x:l,y:s}}(e,n);else if("document"===t){let t,n,i,a,l,s,u;r=$(e),t=$(r),n=el(r),i=r.ownerDocument.body,a=f(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),l=f(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-n.scrollLeft+eg(r),u=-n.scrollTop,"rtl"===ea(i).direction&&(s+=f(t.clientWidth,i.clientWidth)-a),o={width:a,height:l,x:s,y:u}}else if(X(t)){let e,r,i,a,l,s;r=(e=ev(t,!0,"fixed"===n)).top+t.clientTop,i=e.left+t.clientLeft,a=Y(t)?ep(t):h(1),l=t.clientWidth*a.x,s=t.clientHeight*a.y,o={width:l,height:s,x:i*a.x,y:r*a.y}}else{let n=eh(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return k(o)}function ex(e){return"static"===ea(e).position}function eE(e,t){if(!Y(e)||"fixed"===ea(e).position)return null;if(t)return t(e);let n=e.offsetParent;return $(e)===n&&(n=n.ownerDocument.body),n}function eR(e,t){var n;let r=z(e);if(J(e))return r;if(!Y(e)){let t=es(e);for(;t&&!ei(t);){if(X(t)&&!ex(t))return t;t=es(t)}return r}let o=eE(e,t);for(;o&&(n=o,Z.has(B(n)))&&ex(o);)o=eE(o,t);return o&&ei(o)&&ex(o)&&!en(o)?r:o||function(e){let t=es(e);for(;Y(t)&&!ei(t);){if(en(t))return t;if(J(t))break;t=es(t)}return null}(e)||r}let eC=async function(e){let t=this.getOffsetParent||eR,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=Y(t),o=$(t),i="fixed"===n,a=ev(e,!0,i,t),l={scrollLeft:0,scrollTop:0},s=h(0);if(r||!r&&!i)if(("body"!==B(t)||q(o))&&(l=el(t)),r){let e=ev(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=eg(o));i&&!r&&o&&(s.x=eg(o));let u=!o||r||i?h(0):ey(o,l);return{x:a.left+l.scrollLeft-s.x-u.x,y:a.top+l.scrollTop-s.y-u.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eP={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,a=$(r),l=!!t&&J(t.floating);if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},u=h(1),c=h(0),d=Y(r);if((d||!d&&!i)&&(("body"!==B(r)||q(a))&&(s=el(r)),Y(r))){let e=ev(r);u=ep(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let f=!a||d||i?h(0):ey(a,s);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-s.scrollTop*u.y+c.y+f.y}},getDocumentElement:$,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?J(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=eu(e,[],!1).filter(e=>X(e)&&"body"!==B(e)),o=null,i="fixed"===ea(e).position,a=i?es(e):e;for(;X(a)&&!ei(a);){let t=ea(a),n=en(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&ew.has(o.position)||q(a)&&!n&&function e(t,n){let r=es(t);return!(r===n||!X(r)||ei(r))&&("fixed"===ea(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):o=t,a=es(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((e,n)=>{let r=eb(t,n,o);return e.top=f(r.top,e.top),e.right=d(r.right,e.right),e.bottom=d(r.bottom,e.bottom),e.left=f(r.left,e.left),e},eb(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:eR,getElementRects:eC,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ed(e);return{width:t,height:n}},getScale:ep,isElement:X,isRTL:function(e){return"rtl"===ea(e).direction}};function eS(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eA=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:u,padding:c=0}=y(e,t)||{};if(null==u)return{};let p=j(c),m={x:n,y:r}
1,h=x(C(o)),v=E(h),g=await a.getDimensions(u),w="y"===h,R=w?"clientHeight":"clientWidth",P=i.reference[v]+i.reference[h]-m[h]-i.floating[v],S=m[h]-i.reference[h],A=await (null==a.getOffsetParent?void 0:a.getOffsetParent(u)),D=A?A[R]:0;D&&await (null==a.isElement?void 0:a.isElement(A))||(D=l.floating[R]||i.floating[v]);let O=D/2-g[v]/2-1,L=d(p[w?"top":"left"],O),k=d(p[w?"bottom":"right"],O),T=D-g[v]-k,N=D/2-g[v]/2+(P/2-S/2),F=f(L,d(N,T)),M=!s.arrow&&null!=b(o)&&N!==F&&i.reference[v]/2-(N<L?L:k)-g[v]/2<0,I=M?N<L?N-L:N-T:0;return{[h]:m[h]+I,data:{[h]:F,centerOffset:N-F-I,...M&&{alignmentOffset:I}},reset:M}}});var eD=e.i(93850),eO="undefined"!=typeof document?n.useLayoutEffect:function(){};function eL(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eL(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!eL(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ej(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ek(e,t){let n=ej(e);return Math.round(t*n)/n}function eT(e){let t=n.useRef(e);return eO(()=>{t.current=e}),t}var eN=e.i(21467),eF=n.forwardRef((e,n)=>{let{children:r,width:o=10,height:i=5,...a}=e;return(0,t.jsx)(eN.Primitive.svg,{...a,ref:n,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,t.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eF.displayName="Arrow";var eM=e.i(1896),eI=e.i(3071);function e_(e){let[t,r]=n.useState(void 0);return(0,eI.useLayoutEffect)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,o=t.blockSize}else n=e.offsetWidth,o=e.offsetHeight;r({width:n,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}e.s(["useSize",()=>e_],24278);var eW="Popper",[eH,eB]=(0,i.createContextScope)(eW),[ez,e$]=eH(eW),eK=e=>{let{__scopePopper:r,children:o}=e,[i,a]=n.useState(null);return(0,t.jsx)(ez,{scope:r,anchor:i,onAnchorChange:a,children:o})};eK.displayName=eW;var eX="PopperAnchor",eY=n.forwardRef((e,r)=>{let{__scopePopper:i,virtualRef:a,...l}=e,s=e$(eX,i),u=n.useRef(null),c=(0,o.useComposedRefs)(r,u),d=n.useRef(null);return n.useEffect(()=>{let e=d.current;d.current=a?.current||u.current,e!==d.current&&s.onAnchorChange(d.current)}),a?null:(0,t.jsx)(eN.Primitive.div,{...l,ref:c})});eY.displayName=eX;var eV="PopperContent",[eU,eq]=eH(eV),eZ=n.forwardRef((e,r)=>{var i,a,l,s,u,c,p,h,v,g,R,j,k,T,H,B,z,K,X,Y,V;let{__scopePopper:U,side:q="bottom",sideOffset:Z=0,align:G="center",alignOffset:J=0,arrowPadding:Q=0,avoidCollisions:ee=!0,collisionBoundary:et=[],collisionPadding:en=0,sticky:er="partial",hideWhenDetached:eo=!1,updatePositionStrategy:ei="optimized",onPlaced:ea,...el}=e,es=e$(eV,U),[ec,ed]=n.useState(null),ep=(0,o.useComposedRefs)(r,e=>ed(e)),[em,eh]=n.useState(null),eg=e_(em),ey=eg?.width??0,ew=eg?.height??0,eb="number"==typeof en?en:{top:0,right:0,bottom:0,left:0,...en},ex=Array.isArray(et)?et:[et],eE=ex.length>0,eR={padding:eb,boundary:ex.filter(e0),altBoundary:eE},{refs:eC,floatingStyles:eF,placement:eW,isPositioned:eH,middlewareData:eB}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:l}={},transform:s=!0,whileElementsMounted:u,open:c}=e,[d,f]=n.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=n.useState(o);eL(p,o)||m(o);let[h,v]=n.useState(null),[g,y]=n.useState(null),w=n.useCallback(e=>{e!==R.current&&(R.current=e,v(e))},[]),b=n.useCallback(e=>{e!==C.current&&(C.current=e,y(e))},[]),x=a||h,E=l||g,R=n.useRef(null),C=n.useRef(null),P=n.useRef(d),S=null!=u,A=eT(u),D=eT(i),O
1=eT(c),L=n.useCallback(()=>{var e,n;let o,i,a;if(!R.current||!C.current)return;let l={placement:t,strategy:r,middleware:p};D.current&&(l.platform=D.current),(e=R.current,n=C.current,o=new Map,a={...(i={platform:eP,...l}).platform,_c:o},N(e,n,{...i,platform:a})).then(e=>{let t={...e,isPositioned:!1!==O.current};j.current&&!eL(P.current,t)&&(P.current=t,eD.flushSync(()=>{f(t)}))})},[p,t,r,D,O]);eO(()=>{!1===c&&P.current.isPositioned&&(P.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);let j=n.useRef(!1);eO(()=>(j.current=!0,()=>{j.current=!1}),[]),eO(()=>{if(x&&(R.current=x),E&&(C.current=E),x&&E){if(A.current)return A.current(x,E,L);L()}},[x,E,L,A,S]);let k=n.useMemo(()=>({reference:R,floating:C,setReference:w,setFloating:b}),[w,b]),T=n.useMemo(()=>({reference:x,floating:E}),[x,E]),F=n.useMemo(()=>{let e={position:r,left:0,top:0};if(!T.floating)return e;let t=ek(T.floating,d.x),n=ek(T.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+n+"px)",...ej(T.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,s,T.floating,d.x,d.y]);return n.useMemo(()=>({...d,update:L,refs:k,elements:T,floatingStyles:F}),[d,L,k,T,F])}({strategy:"fixed",placement:q+("center"!==G?"-"+G:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=ef(e),p=i||a?[...c?eu(c):[],...eu(t)]:[];p.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let h=c&&s?function(e,t){let n,r=null,o=$(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();let u=e.getBoundingClientRect(),{left:c,top:p,width:h,height:v}=u;if(l||t(),!h||!v)return;let g={rootMargin:-m(p)+"px "+-m(o.clientWidth-(c+h))+"px "+-m(o.clientHeight-(p+v))+"px "+-m(c)+"px",threshold:f(0,d(1,s))||1},y=!0;function w(t){let r=t[0].intersectionRatio;if(r!==s){if(!y)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||eS(u,e.getBoundingClientRect())||a(),y=!1}try{r=new IntersectionObserver(w,{...g,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(w,g)}r.observe(e)}(!0),i}(c,n):null,v=-1,g=null;l&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),c&&!u&&g.observe(c),g.observe(t));let y=u?ev(e):null;return u&&function t(){let r=ev(e);y&&!eS(y,r)&&n(),y=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{i&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=g)||e.disconnect(),g=null,u&&cancelAnimationFrame(o)}})(...e,{animationFrame:"always"===ei}),elements:{reference:es.anchor},middleware:[{...{name:"offset",options:l=i={mainAxis:Z+ew,alignmentAxis:J},async fn(e){var t,n;let{x:r,y:o,placement:i,middlewareData:a}=e,s=await W(e,l);return i===(null==(t=a.offset)?void 0:t.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:r+s.x,y:o+s.y,data:{...s,placement:i}}}},options:[i,a]},ee&&{...{name:"shift",options:v=p={mainAxis:!0,crossAxis:!1,limiter:"partial"===er?{...(void 0===(c=s)&&(c={}),{options:c,fn(e){let{x:t,y:n,placement:r,rects:o,middlewareData:i}=e,{offset:a=0,mainAxis:l=!0,crossAxis:s=!0}=y(c,e),u={x:t,y:n},d=C(r),f=x(d),p=u[f],m=u[d],h=y(a,e),v="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){let e="y"===f?"height":"width",t=o.reference[f]-o.floating[e]+v.mainAxis,n=o.reference[f]+o.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(s){var g,b;let e="y"===f?"width":"height",t=_.has(w(r)),n=o.reference[d]-o.floating[e]+(t&&(null==(g=i.offset)?void 0:g[d])||0)+(t?0:v.crossAxis),a=o.reference[d]+o.reference[e]+(t?0:(null==(b=i.offset)?void 0:b[d])||0)-(t?v.crossAxis:0);m<n?m=n:m>a&&(m=a)}return{[f]:p,[d]:m}}}),options:[s,u]}:void 0,...eR},async fn(e){let{x:t,y:n,placement:r}=e,{mainAxis:o=!0,crossAxis:i=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=y(v,e),s={x:t,y:n},u=await F(e,l),c=C(w(r)),p=x(c),m=s[p],h=s[c];
1if(o){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=m+u[e],r=m-u[t];m=f(n,d(m,r))}if(i){let e="y"===c?"top":"left",t="y"===c?"bottom":"right",n=h+u[e],r=h-u[t];h=f(n,d(h,r))}let g=a.fn({...e,[p]:m,[c]:h});return{...g,data:{x:g.x-t,y:g.y-n,enabled:{[p]:o,[c]:i}}}}},options:[p,h]},ee&&{...{name:"flip",options:j=g={...eR},async fn(e){var t,n,r,o,i,a,l,s;let u,c,d,{placement:f,middlewareData:p,rects:m,initialPlacement:h,platform:v,elements:g}=e,{mainAxis:R=!0,crossAxis:k=!0,fallbackPlacements:T,fallbackStrategy:N="bestFit",fallbackAxisSideDirection:M="none",flipAlignment:I=!0,..._}=y(j,e);if(null!=(t=p.arrow)&&t.alignmentOffset)return{};let W=w(f),H=C(h),B=w(h)===h,z=await (null==v.isRTL?void 0:v.isRTL(g.floating)),$=T||(B||!I?[L(h)]:(u=L(h),[P(h),u,P(u)])),K="none"!==M;!T&&K&&$.push(...(c=b(h),d=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?A:S;return t?S:A;case"left":case"right":return t?D:O;default:return[]}}(w(h),"start"===M,z),c&&(d=d.map(e=>e+"-"+c),I&&(d=d.concat(d.map(P)))),d));let X=[h,...$],Y=await F(e,_),V=[],U=(null==(n=p.flip)?void 0:n.overflows)||[];if(R&&V.push(Y[W]),k){let e,t,n,r,o=(a=f,l=m,void 0===(s=z)&&(s=!1),e=b(a),n=E(t=x(C(a))),r="x"===t?e===(s?"end":"start")?"right":"left":"start"===e?"bottom":"top",l.reference[n]>l.floating[n]&&(r=L(r)),[r,L(r)]);V.push(Y[o[0]],Y[o[1]])}if(U=[...U,{placement:f,overflows:V}],!V.every(e=>e<=0)){let e=((null==(r=p.flip)?void 0:r.index)||0)+1,t=X[e];if(t&&("alignment"!==k||H===C(t)||U.every(e=>C(e.placement)!==H||e.overflows[0]>0)))return{data:{index:e,overflows:U},reset:{placement:t}};let n=null==(o=U.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(N){case"bestFit":{let e=null==(i=U.filter(e=>{if(K){let t=C(e.placement);return t===H||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:i[0];e&&(n=e);break}case"initialPlacement":n=h}if(f!==n)return{reset:{placement:n}}}return{}}},options:[g,R]},{...{name:"size",options:H=k={...eR,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}},async fn(e){var t,n;let r,o,{placement:i,rects:a,platform:l,elements:s}=e,{apply:u=()=>{},...c}=y(H,e),p=await F(e,c),m=w(i),h=b(i),v="y"===C(i),{width:g,height:x}=a.floating;"top"===m||"bottom"===m?(r=m,o=h===(await (null==l.isRTL?void 0:l.isRTL(s.floating))?"start":"end")?"left":"right"):(o=m,r="end"===h?"top":"bottom");let E=x-p.top-p.bottom,R=g-p.left-p.right,P=d(x-p[r],E),S=d(g-p[o],R),A=!e.middlewareData.shift,D=P,O=S;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(O=R),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(D=E),A&&!h){let e=f(p.left,0),t=f(p.right,0),n=f(p.top,0),r=f(p.bottom,0);v?O=g-2*(0!==e||0!==t?e+t:f(p.left,p.right)):D=x-2*(0!==n||0!==r?n+r:f(p.top,p.bottom))}await u({...e,availableWidth:O,availableHeight:D});let L=await l.getDimensions(s.floating);return g!==L.width||x!==L.height?{reset:{rects:!0}}:{}}},options:[k,T]},em&&{...{name:"arrow",options:K=B={element:em,padding:Q},fn(e){let{element:t,padding:n}="function"==typeof K?K(e):K;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?eA({element:t.current,padding:n}).fn(e):{}:t?eA({element:t,padding:n}).fn(e):{}}},options:[B,z]},e1({arrowWidth:ey,arrowHeight:ew}),eo&&{...{name:"hide",options:V=X={strategy:"referenceHidden",...eR},async fn(e){let{rects:t}=e,{strategy:n="referenceHidden",...r}=y(V,e);switch(n){case"referenceHidden":{let n=M(await F(e,{...r,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:I(n)}}}case"escaped":{let n=M(await F(e,{...r,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:I(n)}}}default:return{}}}},options:[X,Y]}]}),[ez,eK]=e2(eW),eX=(0,eM.useCallbackRef)(ea);(0,eI.useLayoutEffect)(()=>{eH&&eX?.()},[eH,eX]);let eY=eB.arrow?.x,eq=eB.arrow?.y,eZ=eB.arrow?.centerOffset!==0,[eG,eJ]=n.useState();return(0,eI.useLayoutEffect)(()=>{ec&&eJ(window.getComputedStyle(ec).zIndex)},[ec]),(0,t.jsx)("div",{ref:eC.setFloating,"data-radix-popper-content-wrapper":"",style:{...eF,transform:eH?eF.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eG,"--radix-popper-transform-origin":[eB.transformOrigin?.x,eB.transformOrigin?.y].join(" "),...eB.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,t.jsx)(eU,{scope:U,placedSide:ez,onArrowChange:eh,arrowX:eY,arrowY:eq,shouldHideArrow:eZ,children:(0,t.jsx)(eN.Primitive.div,{"data-side":ez,"data-align":eK,...el,ref:ep,style:{...el.style,animation:eH?void 0:"none"}})})})});eZ.displayName=eV;var eG="PopperArrow",eJ={top:"bottom",right:"left",bottom:"top",left:"r
1ight"},eQ=n.forwardRef(function(e,n){let{__scopePopper:r,...o}=e,i=eq(eG,r),a=eJ[i.placedSide];return(0,t.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,t.jsx)(eF,{...o,ref:n,style:{...o.style,display:"block"}})})});function e0(e){return null!==e}eQ.displayName=eG;var e1=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[s,u]=e2(n),c={start:"0%",center:"50%",end:"100%"}[u],d=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+l/2,p="",m="";return"bottom"===s?(p=i?c:`${d}px`,m=`${-l}px`):"top"===s?(p=i?c:`${d}px`,m=`${r.floating.height+l}px`):"right"===s?(p=`${-l}px`,m=i?c:`${f}px`):"left"===s&&(p=`${r.floating.width+l}px`,m=i?c:`${f}px`),{data:{x:p,y:m}}}});function e2(e){let[t,n="center"]=e.split("-");return[t,n]}e.s(["Anchor",()=>eY,"Arrow",()=>eQ,"Content",()=>eZ,"Root",()=>eK,"createPopperScope",()=>eB],62870);var e9=e.i(99051),e7=e.i(62927),e6=e.i(39914),e5=e.i(76919),e4=e.i(73772),e8=e.i(47949),e3="Popover",[te,tt]=(0,i.createContextScope)(e3,[eB]),tn=eB(),[tr,to]=te(e3),ti=e=>{let{__scopePopover:r,children:o,open:i,defaultOpen:a,onOpenChange:l,modal:s=!1}=e,c=tn(r),d=n.useRef(null),[f,p]=n.useState(!1),[m,h]=(0,e5.useControllableState)({prop:i,defaultProp:a??!1,onChange:l,caller:e3});return(0,t.jsx)(eK,{...c,children:(0,t.jsx)(tr,{scope:r,contentId:(0,u.useId)(),triggerRef:d,open:m,onOpenChange:h,onOpenToggle:n.useCallback(()=>h(e=>!e),[h]),hasCustomAnchor:f,onCustomAnchorAdd:n.useCallback(()=>p(!0),[]),onCustomAnchorRemove:n.useCallback(()=>p(!1),[]),modal:s,children:o})})};ti.displayName=e3;var ta="PopoverAnchor";n.forwardRef((e,r)=>{let{__scopePopover:o,...i}=e,a=to(ta,o),l=tn(o),{onCustomAnchorAdd:s,onCustomAnchorRemove:u}=a;return n.useEffect(()=>(s(),()=>u()),[s,u]),(0,t.jsx)(eY,{...l,...i,ref:r})}).displayName=ta;var tl="PopoverTrigger",ts=n.forwardRef((e,n)=>{let{__scopePopover:i,...a}=e,l=to(tl,i),s=tn(i),u=(0,o.useComposedRefs)(n,l.triggerRef),c=(0,t.jsx)(eN.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":tb(l.open),...a,ref:u,onClick:(0,r.composeEventHandlers)(e.onClick,l.onOpenToggle)});return l.hasCustomAnchor?c:(0,t.jsx)(eY,{asChild:!0,...s,children:c})});ts.displayName=tl;var tu="PopoverPortal",[tc,td]=te(tu,{forceMount:void 0}),tf=e=>{let{__scopePopover:n,forceMount:r,children:o,container:i}=e,a=to(tu,n);return(0,t.jsx)(tc,{scope:n,forceMount:r,children:(0,t.jsx)(e7.Presence,{present:r||a.open,children:(0,t.jsx)(e9.Portal,{asChild:!0,container:i,children:o})})})};tf.displayName=tu;var tp="PopoverContent",tm=n.forwardRef((e,n)=>{let r=td(tp,e.__scopePopover),{forceMount:o=r.forceMount,...i}=e,a=to(tp,e.__scopePopover);return(0,t.jsx)(e7.Presence,{present:o||a.open,children:a.modal?(0,t.jsx)(tv,{...i,ref:n}):(0,t.jsx)(tg,{...i,ref:n})})});tm.displayName=tp;var th=(0,e6.createSlot)("PopoverContent.RemoveScroll"),tv=n.forwardRef((e,i)=>{let a=to(tp,e.__scopePopover),l=n.useRef(null),s=(0,o.useComposedRefs)(i,l),u=n.useRef(!1);return n.useEffect(()=>{let e=l.current;if(e)return(0,e4.hideOthers)(e)},[]),(0,t.jsx)(e8.RemoveScroll,{as:th,allowPinchZoom:!0,children:(0,t.jsx)(ty,{...e,ref:s,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,r.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),u.current||a.triggerRef.current?.focus()}),onPointerDownOutside:(0,r.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;u.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,r.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),tg=n.forwardRef((e,r)=>{let o=to(tp,e.__scopePopover),i=n.useRef(!1),a=n.useRef(!1);return(0,t.jsx)(ty,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||o.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));let n=t.target;o.triggerRef.current?.contains(n)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}
1),ty=n.forwardRef((e,n)=>{let{__scopePopover:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:u,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,...h}=e,v=to(tp,r),g=tn(r);return(0,l.useFocusGuards)(),(0,t.jsx)(s.FocusScope,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:u,children:(0,t.jsx)(a.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:m,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onDismiss:()=>v.onOpenChange(!1),children:(0,t.jsx)(eZ,{"data-state":tb(v.open),role:"dialog",id:v.contentId,...g,...h,ref:n,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),tw="PopoverClose";function tb(e){return e?"open":"closed"}n.forwardRef((e,n)=>{let{__scopePopover:o,...i}=e,a=to(tw,o);return(0,t.jsx)(eN.Primitive.button,{type:"button",...i,ref:n,onClick:(0,r.composeEventHandlers)(e.onClick,()=>a.onOpenChange(!1))})}).displayName=tw,n.forwardRef((e,n)=>{let{__scopePopover:r,...o}=e,i=tn(r);return(0,t.jsx)(eQ,{...i,...o,ref:n})}).displayName="PopoverArrow";var tx=e.i(75157);function tE({...e}){return(0,t.jsx)(ti,{"data-slot":"popover",...e})}function tR({...e}){return(0,t.jsx)(ts,{"data-slot":"popover-trigger",...e})}function tC({className:e,align:n="center",sideOffset:r=4,...o}){return(0,t.jsx)(tf,{children:(0,t.jsx)(tm,{"data-slot":"popover-content",align:n,sideOffset:r,className:(0,tx.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...o})})}e.s(["Popover",()=>tE,"PopoverContent",()=>tC,"PopoverTrigger",()=>tR],37822)},86164,e=>{"use strict";let t=(0,e.i(22436).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["default",()=>t])},44021,e=>{"use strict";var t=e.i(86164);e.s(["X",()=>t.default])},76639,e=>{"use strict";var t=e.i(95897),n=e.i(67147),r=e.i(91967),o=e.i(7939),i=e.i(62568),a=e.i(92822),l=e.i(76919),s=e.i(96326),u=e.i(35412),c=e.i(99051),d=e.i(62927),f=e.i(21467),p=e.i(86297),m=e.i(47949),h=e.i(73772),v=e.i(39914),g="Dialog",[y,w]=(0,i.createContextScope)(g),[b,x]=y(g),E=e=>{let{__scopeDialog:r,children:o,open:i,defaultOpen:s,onOpenChange:u,modal:c=!0}=e,d=n.useRef(null),f=n.useRef(null),[p,m]=(0,l.useControllableState)({prop:i,defaultProp:s??!1,onChange:u,caller:g});return(0,t.jsx)(b,{scope:r,triggerRef:d,contentRef:f,contentId:(0,a.useId)(),titleId:(0,a.useId)(),descriptionId:(0,a.useId)(),open:p,onOpenChange:m,onOpenToggle:n.useCallback(()=>m(e=>!e),[m]),modal:c,children:o})};E.displayName=g;var R="DialogTrigger";n.forwardRef((e,n)=>{let{__scopeDialog:i,...a}=e,l=x(R,i),s=(0,o.useComposedRefs)(n,l.triggerRef);return(0,t.jsx)(f.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":$(l.open),...a,ref:s,onClick:(0,r.composeEventHandlers)(e.onClick,l.onOpenToggle)})}).displayName=R;var C="DialogPortal",[P,S]=y(C,{forceMount:void 0}),A=e=>{let{__scopeDialog:r,forceMount:o,children:i,container:a}=e,l=x(C,r);return(0,t.jsx)(P,{scope:r,forceMount:o,children:n.Children.map(i,e=>(0,t.jsx)(d.Presence,{present:o||l.open,children:(0,t.jsx)(c.Portal,{asChild:!0,container:a,children:e})}))})};A.displayName=C;var D="DialogOverlay",O=n.forwardRef((e,n)=>{let r=S(D,e.__scopeDialog),{forceMount:o=r.forceMount,...i}=e,a=x(D,e.__scopeDialog);return a.modal?(0,t.jsx)(d.Presence,{present:o||a.open,children:(0,t.jsx)(j,{...i,ref:n})}):null});O.displayName=D;var L=(0,v.createSlot)("DialogOverlay.RemoveScroll"),j=n.forwardRef((e,n
1)=>{let{__scopeDialog:r,...o}=e,i=x(D,r);return(0,t.jsx)(m.RemoveScroll,{as:L,allowPinchZoom:!0,shards:[i.contentRef],children:(0,t.jsx)(f.Primitive.div,{"data-state":$(i.open),...o,ref:n,style:{pointerEvents:"auto",...o.style}})})}),k="DialogContent",T=n.forwardRef((e,n)=>{let r=S(k,e.__scopeDialog),{forceMount:o=r.forceMount,...i}=e,a=x(k,e.__scopeDialog);return(0,t.jsx)(d.Presence,{present:o||a.open,children:a.modal?(0,t.jsx)(N,{...i,ref:n}):(0,t.jsx)(F,{...i,ref:n})})});T.displayName=k;var N=n.forwardRef((e,i)=>{let a=x(k,e.__scopeDialog),l=n.useRef(null),s=(0,o.useComposedRefs)(i,a.contentRef,l);return n.useEffect(()=>{let e=l.current;if(e)return(0,h.hideOthers)(e)},[]),(0,t.jsx)(M,{...e,ref:s,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,r.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),a.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())})}),F=n.forwardRef((e,r)=>{let o=x(k,e.__scopeDialog),i=n.useRef(!1),a=n.useRef(!1);return(0,t.jsx)(M,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||o.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));let n=t.target;o.triggerRef.current?.contains(n)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),M=n.forwardRef((e,r)=>{let{__scopeDialog:i,trapFocus:a,onOpenAutoFocus:l,onCloseAutoFocus:c,...d}=e,f=x(k,i),m=n.useRef(null),h=(0,o.useComposedRefs)(r,m);return(0,p.useFocusGuards)(),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.FocusScope,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:l,onUnmountAutoFocus:c,children:(0,t.jsx)(s.DismissableLayer,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":$(f.open),...d,ref:h,onDismiss:()=>f.onOpenChange(!1)})}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(V,{titleId:f.titleId}),(0,t.jsx)(U,{contentRef:m,descriptionId:f.descriptionId})]})]})}),I="DialogTitle",_=n.forwardRef((e,n)=>{let{__scopeDialog:r,...o}=e,i=x(I,r);return(0,t.jsx)(f.Primitive.h2,{id:i.titleId,...o,ref:n})});_.displayName=I;var W="DialogDescription",H=n.forwardRef((e,n)=>{let{__scopeDialog:r,...o}=e,i=x(W,r);return(0,t.jsx)(f.Primitive.p,{id:i.descriptionId,...o,ref:n})});H.displayName=W;var B="DialogClose",z=n.forwardRef((e,n)=>{let{__scopeDialog:o,...i}=e,a=x(B,o);return(0,t.jsx)(f.Primitive.button,{type:"button",...i,ref:n,onClick:(0,r.composeEventHandlers)(e.onClick,()=>a.onOpenChange(!1))})});function $(e){return e?"open":"closed"}z.displayName=B;var K="DialogTitleWarning",[X,Y]=(0,i.createContext)(K,{contentName:k,titleName:I,docsSlug:"dialog"}),V=({titleId:e})=>{let t=Y(K),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2
3If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
4
5For 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},U=({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},q=e.i(86164),q=q,Z=e.i(75157);function G({...e}){return(0,t.jsx)(E,{"data-slot":"dialog",...e})}function J({...e}){return(0,t.jsx)(A,{"data-slot":"dialog-portal",...e})}function Q({className:e,...n}){return(0,t.jsx)(O,{"data-slot":"dialog-overlay",className:(0,Z.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...n})}function ee({className:e,children:n,showCloseButton:r=!0,...o}){return(0,t.jsxs)(J,{"data-slot":"dialog-portal",children:[(0,t.jsx)(Q,{}),(0,t.jsxs)(T,{"data-slot":"dialog-content",className:(0,Z.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 roun
5ded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...o,children:[n,r&&(0,t.jsxs)(z,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,t.jsx)(q.default,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function et({className:e,...n}){return(0,t.jsx)(_,{"data-slot":"dialog-title",className:(0,Z.cn)("text-lg leading-none font-semibold",e),...n})}function en({className:e,...n}){return(0,t.jsx)(H,{"data-slot":"dialog-description",className:(0,Z.cn)("text-muted-foreground text-sm",e),...n})}e.s(["Dialog",()=>G,"DialogContent",()=>ee,"DialogDescription",()=>en,"DialogOverlay",()=>Q,"DialogPortal",()=>J,"DialogTitle",()=>et],76639)}]);

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.