vendor: 8,711 bytes, line 1
1import{r as c}from"./chunk-QMGIS6GS-goUY-UPM.js";import{a as k,P as T,f as A,h as Je,u as et,c as tt,g as ie,b as nt,i as rt,d as ot,e as Z}from"./index-BMzxx8Fo.js";import{j as p}from"./jsx-runtime-D_zvdyIk.js";import{R as at}from"./index-CLK70DWu.js";function j(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function it(e,t=globalThis==null?void 0:globalThis.document){const n=j(e);c.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var ct="DismissableLayer",oe="dismissableLayer.update",st="dismissableLayer.pointerDownOutside",ut="dismissableLayer.focusOutside",le,Se=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),we=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:u,onDismiss:i,...g}=e,l=c.useContext(Se),[d,v]=c.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,E]=c.useState({}),R=k(t,y=>v(y)),s=Array.from(l.layers),[f]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),m=s.indexOf(f),b=d?s.indexOf(d):-1,C=l.layersWithOutsidePointerEventsDisabled.size>0,S=b>=m,w=ft(y=>{const x=y.target,W=[...l.branches].some($=>$.contains(x));!S||W||(o==null||o(y),u==null||u(y),y.defaultPrevented||i==null||i())},h),O=vt(y=>{const x=y.target;[...l.branches].some($=>$.contains(x))||(a==null||a(y),u==null||u(y),y.defaultPrevented||i==null||i())},h);return it(y=>{b===l.layers.size-1&&(r==null||r(y),!y.defaultPrevented&&i&&(y.preventDefault(),i()))},h),c.useEffect(()=>{if(d)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(le=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),de(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=le)}},[d,h,n,l]),c.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),de())},[d,l]),c.useEffect(()=>{const y=()=>E({});return document.addEventListener(oe,y),()=>document.removeEventListener(oe,y)},[]),p.jsx(T.div,{...g,ref:R,style:{pointerEvents:C?S?"auto":"none":void 0,...e.style},onFocusCapture:A(e.onFocusCapture,O.onFocusCapture),onBlurCapture:A(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:A(e.onPointerDownCapture,w.onPointerDownCapture)})});we.displayName=ct;var lt="DismissableLayerBranch",dt=c.forwardRef((e,t)=>{const n=c.useContext(Se),r=c.useRef(null),o=k(t,r);return c.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),p.jsx(T.div,{...e,ref:o})});dt.displayName=lt;function ft(e,t=globalThis==null?void 0:globalThis.document){const n=j(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let g=function(){Re(st,n,l,{discrete:!0})};const l={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=g,t.addEventListener("click",o.current,{once:!0})):g()}else t.removeEventListener("click",o.current);r.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function vt(e,t=globalThis==null?void 0:globalThis.document){const n=j(e),r=c.useRef(!1);return c.useEffect(()=>{const o=a=>{a.target&&!r.current&&Re(ut,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function de(){const e=new CustomEvent(oe);document.dispatchEvent(e)}function Re(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Je(o,a):o.dispatchEvent(a)}var q="focusScope.autoFocusOnMount",Q="focusScope.autoFocusOnUnmount",fe={bubbles:!1,cancelable:!0},ht="FocusScope",De=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...u}=e,[i,g]=c.useState(null),l=j(o),d=j(a),v=c.useRef(null),h=k(t,s=>g(s)),E=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let s=function(C){if(E.paused||!i)return;const S=C.target;i.contains(S)?v.current=S:N(v.current,{select:!0})},f=function(C){if(E.paused||!i)return;const S=C.relatedTarget;S!==null&&(i.contains(S)||N(v.current,{select:!0}))},m=function(C){if(document.activeElement===document.body)for(const w of C)w.removedNodes.length>0&&N(i)};document.addEventListener("focusin",s),document.addEventListener("focusout",f);const b=new MutationObserver(m);return i&&b.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",s),document.removeEventListener("focusout",f),b.disconnect()}}},[r,i,E.paused]),c.useEffect(()=>{if(i){he.add(E);const s=document.activeElement;if(!i.contains(s)){const m=new CustomEvent(q,fe);i.addEventListener(q,l),i.dispatchEvent(m),m.defaultPrevented||(mt(bt(Pe(i)),{select:!0}),document.activeElement===s&&N(i))}return()=>{i.removeEventListener(q,l),setTimeout(()=>{const m=new CustomEvent(Q,fe);i.addEventListener(Q,d),i.dispatchEvent(m),m.defaultPrevented||N(s??document.body,{select:!0}),i.removeEventListener(Q,d),he.remove(E)},0)}}},[i,l,d,E]);const R=c.useCallback(s=>{if(!n&&!r||E.paused)return;const f=s.key==="Tab"&&!s.altKey&&!s.ctrlKey&&!s.metaKey,m=document.activeElement;if(f&&m){const b=s.currentTarget,[C,S]=gt(b);C&&S?!s.shiftKey&&m===S?(s.preventDefault(),n&&N(C,{select:!0})):s.shiftKey&&m===C&&(s.preventDefault(),n&&N(S,{select:!0})):m===b&&s.preventDefault()}},[n,r,E.paused]);return p.jsx(T.div,{tabIndex:-1,...u,ref:h,onKeyDown:R})});De.displayName=ht;function mt(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(N(r,{select:t}),document.activeElement!==n)return}function gt(e){const t=Pe(e),n=ve(t,e),r=ve(t.reverse(),e);return[n,r]}function Pe(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ve(e,t){for(const n of e)if(!pt(n,{upTo:t}))return n}function pt(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function yt(e){return e instanceof HTMLInputElement&&"select"in e}function N(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&yt(e)&&t&&e.select()}}var he=Et();function Et(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=me(e,t),e.unshift(t)},remove(t){var n;e=me(e,t),(n=e[0])==null||n.resume()}}}function me(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function bt(e){return e.filter(t=>t.tagName!=="A")}var Ct="Portal",Oe=c.forwardRef((e,t)=>{var i;const{container:n,...r}=e,[o,a]=c.useState(!1);et(()=>a(!0),[]);const u=n||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return u?at.createPortal(p.jsx(T.div,{...r,ref:t}),u):null});Oe.displayName=Ct;var J=0;function St(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ge()),document.body.insertAdjacentElement("beforeend",e[1]??ge()),J++,()=>{J===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),J--}},[])}function ge(){const 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 P=function(){return P=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},P.apply(this,arguments)};function xe(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function wt(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;
vendor: 4,957 bytes, lines 1-16
1r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var G="right-scroll-bar-position",V="width-before-scroll-bar",Rt="with-scroll-bars-hidden",Dt="--removed-body-scroll-bar-size";function ee(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Pt(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Ot=typeof window<"u"?c.useLayoutEffect:c.useEffect,pe=new WeakMap;function xt(e,t){var n=Pt(null,function(r){return e.forEach(function(o){return ee(o,r)})});return Ot(function(){var r=pe.get(n);if(r){var o=new Set(r),a=new Set(e),u=n.current;o.forEach(function(i){a.has(i)||ee(i,null)}),a.forEach(function(i){o.has(i)||ee(i,u)})}pe.set(n,e)},[e]),n}function Tt(e){return e}function Nt(e,t){t===void 0&&(t=Tt);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var u=t(a,r);return n.push(u),function(){n=n.filter(function(i){return i!==u})}},assignSyncMedium:function(a){for(r=!0;n.length;){var u=n;n=[],u.forEach(a)}n={push:function(i){return a(i)},filter:function(){return n}}},assignMedium:function(a){r=!0;var u=[];if(n.length){var i=n;n=[],i.forEach(a),u=n}var g=function(){var d=u;u=[],d.forEach(a)},l=function(){return Promise.resolve().then(g)};l(),n={push:function(d){u.push(d),l()},filter:function(d){return u=u.filter(d),n}}}};return o}function At(e){e===void 0&&(e={});var t=Nt(null);return t.options=P({async:!0,ssr:!1},e),t}var Te=function(e){var t=e.sideCar,n=xe(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,P({},n))};Te.isSideCarExport=!0;function Lt(e,t){return e.useMedium(t),Te}var Ne=At(),te=function(){},X=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:te,onWheelCapture:te,onTouchMoveCapture:te}),o=r[0],a=r[1],u=e.forwardProps,i=e.children,g=e.className,l=e.removeScrollBar,d=e.enabled,v=e.shards,h=e.sideCar,E=e.noRelative,R=e.noIsolation,s=e.inert,f=e.allowPinchZoom,m=e.as,b=m===void 0?"div":m,C=e.gapMode,S=xe(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=h,O=xt([n,t]),y=P(P({},S),o);return c.createElement(c.Fragment,null,d&&c.createElement(w,{sideCar:Ne,removeScrollBar:l,shards:v,noRelative:E,noIsolation:R,inert:s,setCallbacks:a,allowPinchZoom:!!f,lockRef:n,gapMode:C}),u?c.cloneElement(c.Children.only(i),P(P({},y),{ref:O})):c.createElement(b,P({},y,{className:g,ref:O}),i))});X.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};X.classNames={fullWidth:V,zeroRight:G};var It=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Mt(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=It();return t&&e.setAttribute("nonce",t),e}function Ft(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function _t(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var kt=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Mt())&&(Ft(t,n),_t(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Wt=function(){var e=kt();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ae=function(){var e=Wt(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},jt={left:0,top:0,right:0,gap:0},ne=function(e){return parseInt(e||"",10)||0},Bt=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[ne(n),ne(r),ne(o)]},Ut=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return jt;var t=Bt(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])}},Ht=Ae(),_="data-scroll-locked",Kt=function(e,t,n,r){var o=e.left,a=e.top,u=e.right,i=e.gap;return n===void 0&&(n="margin"),` 2 .`.concat(Rt,` { 3 overflow: hidden `).concat(r,`; 4 padding-right: `).concat(i,"px ").concat(r,`; 5 } 6 body[`).concat(_,`] { 7 overflow: hidden `).concat(r,`; 8 overscroll-behavior: contain; 9 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 10 padding-left: `.concat(o,`px; 11 padding-top: `).concat(a,`px; 12 padding-right: `).concat(u,`px; 13 margin-left:0; 14 margin-top:0; 15 margin-right: `).concat(i,"px ").concat(r,`; 16 `),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";
16")].filter(Boolean).join(""),` 17 } 18 19 .`).concat(G,` { 20 right: `).concat(i,"px ").concat(r,`; 21 } 22 23 .`).concat(V,` { 24 margin-right: `).concat(i,"px ").concat(r,`; 25 } 26 27 .`).concat(G," .").concat(G,` { 28 right: 0 `).concat(r,`; 29 } 30 31 .`).concat(V," .").concat(V,` { 32 margin-right: 0 `).concat(r,`; 33 } 34 35 body[`).concat(_,`] { 36 `).concat(Dt,": ").concat(i,`px; 37 } 38`)},ye=function(){var e=parseInt(document.body.getAttribute(_)||"0",10);return isFinite(e)?e:0},Gt=function(){c.useEffect(function(){return document.body.setAttribute(_,(ye()+1).toString()),function(){var e=ye()-1;e<=0?document.body.removeAttribute(_):document.body.setAttribute(_,e.toString())}},[])},Vt=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Gt();var a=c.useMemo(function(){return Ut(o)},[o]);return c.createElement(Ht,{styles:Kt(a,!t,o,n?"":"!important")})},ae=!1;if(typeof window<"u")try{var B=Object.defineProperty({},"passive",{get:function(){return ae=!0,!0}});window.addEventListener("test",B,B),window.removeEventListener("test",B,B)}catch{ae=!1}var I=ae?{passive:!1}:!1,Yt=function(e){return e.tagName==="TEXTAREA"},Le=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Yt(e)&&n[t]==="visible")},Xt=function(e){return Le(e,"overflowY")},zt=function(e){return Le(e,"overflowX")},Ee=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Ie(e,r);if(o){var a=Me(e,r),u=a[1],i=a[2];if(u>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},$t=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Zt=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ie=function(e,t){return e==="v"?Xt(t):zt(t)},Me=function(e,t){return e==="v"?$t(t):Zt(t)},qt=function(e,t){return e==="h"&&t==="rtl"?-1:1},Qt=function(e,t,n,r,o){var a=qt(e,window.getComputedStyle(t).direction),u=a*r,i=n.target,g=t.contains(i),l=!1,d=u>0,v=0,h=0;do{if(!i)break;var E=Me(e,i),R=E[0],s=E[1],f=E[2],m=s-f-a*R;(R||m)&&Ie(e,i)&&(v+=m,h+=R);var b=i.parentNode;i=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!g&&i!==document.body||g&&(t.contains(i)||t===i));return(d&&Math.abs(v)<1||!d&&Math.abs(h)<1)&&(l=!0),l},U=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},be=function(e){return[e.deltaX,e.deltaY]},Ce=function(e){return e&&"current"in e?e.current:e},Jt=function(e,t){return e[0]===t[0]&&e[1]===t[1]},en=function(e){return` 39 .block-interactivity-`.concat(e,` {pointer-events: none;} 40 .allow-interactivity-`).concat(e,` {pointer-events: all;} 41`)},tn=0,M=[];function nn(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(tn++)[0],a=c.useState(Ae)[0],u=c.useRef(e);c.useEffect(function(){u.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var s=wt([e.lockRef.current],(e.shards||[]).map(Ce),!0).filter(Boolean);return s.forEach(function(f){return f.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),s.forEach(function(f){return f.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=c.useCallback(function(s,f){if("touches"in s&&s.touches.length===2||s.type==="wheel"&&s.ctrlKey)return!u.current.allowPinchZoom;var m=U(s),b=n.current,C="deltaX"in s?s.deltaX:b[0]-m[0],S="deltaY"in s?s.deltaY:b[1]-m[1],w,O=s.target,y=Math.abs(C)>Math.abs(S)?"h":"v";if("touches"in s&&y==="h"&&O.type==="range")return!1;var x=Ee(y,O);if(!x)return!0;if(x?w=y:(w=y==="v"?"h":"v",x=Ee(y,O)),!x)return!1;if(!r.current&&"changedTouches"in s&&(C||S)&&(r.current=w),!w)return!0;var W=r.current||w;return Qt(W,f,s,W==="h"?C:S)},[]),g=c.useCallback(function(s){var f=s;if(!(!M.length||M[M.length-1]!==a)){var m="deltaY"in f?be(f):U(f),b=t.current.filter(function(w){return w.name===f.type&&(w.target===f.target||f.target===w.shadowParent)&&Jt(w.delta,m)})[0];if(b&&b.should){f.cancelable&&f.preventDefault();return}
vendor: 4,291 bytes, line 41
41if(!b){var C=(u.current.shards||[]).map(Ce).filter(Boolean).filter(function(w){return w.contains(f.target)}),S=C.length>0?i(f,C[0]):!u.current.noIsolation;S&&f.cancelable&&f.preventDefault()}}},[]),l=c.useCallback(function(s,f,m,b){var C={name:s,delta:f,target:m,should:b,shadowParent:rn(m)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(S){return S!==C})},1)},[]),d=c.useCallback(function(s){n.current=U(s),r.current=void 0},[]),v=c.useCallback(function(s){l(s.type,be(s),s.target,i(s,e.lockRef.current))},[]),h=c.useCallback(function(s){l(s.type,U(s),s.target,i(s,e.lockRef.current))},[]);c.useEffect(function(){return M.push(a),e.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:h}),document.addEventListener("wheel",g,I),document.addEventListener("touchmove",g,I),document.addEventListener("touchstart",d,I),function(){M=M.filter(function(s){return s!==a}),document.removeEventListener("wheel",g,I),document.removeEventListener("touchmove",g,I),document.removeEventListener("touchstart",d,I)}},[]);var E=e.removeScrollBar,R=e.inert;return c.createElement(c.Fragment,null,R?c.createElement(a,{styles:en(o)}):null,E?c.createElement(Vt,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function rn(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const on=Lt(Ne,nn);var Fe=c.forwardRef(function(e,t){return c.createElement(X,P({},e,{ref:t,sideCar:on}))});Fe.classNames=X.classNames;var an=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},F=new WeakMap,H=new WeakMap,K={},re=0,_e=function(e){return e&&(e.host||_e(e.parentNode))},cn=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=_e(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},sn=function(e,t,n,r){var o=cn(t,Array.isArray(e)?e:[e]);K[n]||(K[n]=new WeakMap);var a=K[n],u=[],i=new Set,g=new Set(o),l=function(v){!v||i.has(v)||(i.add(v),l(v.parentNode))};o.forEach(l);var d=function(v){!v||g.has(v)||Array.prototype.forEach.call(v.children,function(h){if(i.has(h))d(h);else try{var E=h.getAttribute(r),R=E!==null&&E!=="false",s=(F.get(h)||0)+1,f=(a.get(h)||0)+1;F.set(h,s),a.set(h,f),u.push(h),s===1&&R&&H.set(h,!0),f===1&&h.setAttribute(n,"true"),R||h.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",h,m)}})};return d(t),i.clear(),re++,function(){u.forEach(function(v){var h=F.get(v)-1,E=a.get(v)-1;F.set(v,h),a.set(v,E),h||(H.has(v)||v.removeAttribute(r),H.delete(v)),E||v.removeAttribute(n)}),re--,re||(F=new WeakMap,F=new WeakMap,H=new WeakMap,K={})}},un=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=an(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),sn(r,o,n,"aria-hidden")):function(){return null}},z="Dialog",[ke,wn]=tt(z),[ln,D]=ke(z),We=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:u=!0}=e,i=c.useRef(null),g=c.useRef(null),[l,d]=ot({prop:r,defaultProp:o??!1,onChange:a,caller:z});return p.jsx(ln,{scope:t,triggerRef:i,contentRef:g,contentId:Z(),titleId:Z(),descriptionId:Z(),open:l,onOpenChange:d,onOpenToggle:c.useCallback(()=>d(v=>!v),[d]),modal:u,children:n})};We.displayName=z;var je="DialogTrigger",Be=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=D(je,n),a=k(t,o.triggerRef);return p.jsx(T.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ue(o.open),...r,ref:a,onClick:A(e.onClick,o.onOpenToggle)})});Be.displayName=je;var ce="DialogPortal",[dn,Ue]=ke(ce,{forceMount:void 0}),He=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=D(ce,t);return p.jsx(dn,{scope:t,forceMount:n,children:c.Children.map(r,u=>p.jsx(ie,{present:n||a.open,children:p.jsx(Oe,{asChild:!0,container:o,children:u})}))})};He.displayName=ce;var Y="DialogOverlay",Ke=c.forwardRef((e,t)=>{const n=Ue(Y,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=D(Y,e.__scopeDialog);return a.modal?p.jsx(ie,{present:r||a.open,children:p.jsx(vn,{...o,ref:t})}):null});Ke.displayName=Y;var fn=nt("DialogOverlay.RemoveScroll"),vn=c.forwardRef((e,t)=>
vendor: 3,832 bytes, lines 41-45
41{const{__scopeDialog:n,...r}=e,o=D(Y,n);return p.jsx(Fe,{as:fn,allowPinchZoom:!0,shards:[o.contentRef],children:p.jsx(T.div,{"data-state":ue(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),L="DialogContent",Ge=c.forwardRef((e,t)=>{const n=Ue(L,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=D(L,e.__scopeDialog);return p.jsx(ie,{present:r||a.open,children:a.modal?p.jsx(hn,{...o,ref:t}):p.jsx(mn,{...o,ref:t})})});Ge.displayName=L;var hn=c.forwardRef((e,t)=>{const n=D(L,e.__scopeDialog),r=c.useRef(null),o=k(t,n.contentRef,r);return c.useEffect(()=>{const a=r.current;if(a)return un(a)},[]),p.jsx(Ve,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:A(e.onCloseAutoFocus,a=>{var u;a.preventDefault(),(u=n.triggerRef.current)==null||u.focus()}),onPointerDownOutside:A(e.onPointerDownOutside,a=>{const u=a.detail.originalEvent,i=u.button===0&&u.ctrlKey===!0;(u.button===2||i)&&a.preventDefault()}),onFocusOutside:A(e.onFocusOutside,a=>a.preventDefault())})}),mn=c.forwardRef((e,t)=>{const n=D(L,e.__scopeDialog),r=c.useRef(!1),o=c.useRef(!1);return p.jsx(Ve,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var u,i;(u=e.onCloseAutoFocus)==null||u.call(e,a),a.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var g,l;(g=e.onInteractOutside)==null||g.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const u=a.target;((l=n.triggerRef.current)==null?void 0:l.contains(u))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Ve=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...u}=e,i=D(L,n),g=c.useRef(null),l=k(t,g);return St(),p.jsxs(p.Fragment,{children:[p.jsx(De,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:p.jsx(we,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":ue(i.open),...u,ref:l,onDismiss:()=>i.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(gn,{titleId:i.titleId}),p.jsx(yn,{contentRef:g,descriptionId:i.descriptionId})]})]})}),se="DialogTitle",Ye=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=D(se,n);return p.jsx(T.h2,{id:o.titleId,...r,ref:t})});Ye.displayName=se;var Xe="DialogDescription",ze=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=D(Xe,n);return p.jsx(T.p,{id:o.descriptionId,...r,ref:t})});ze.displayName=Xe;var $e="DialogClose",Ze=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=D($e,n);return p.jsx(T.button,{type:"button",...r,ref:t,onClick:A(e.onClick,()=>o.onOpenChange(!1))})});Ze.displayName=$e;function ue(e){return e?"open":"closed"}var qe="DialogTitleWarning",[Rn,Qe]=rt(qe,{contentName:L,titleName:se,docsSlug:"dialog"}),gn=({titleId:e})=>{const t=Qe(qe),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 42 43If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 44 45For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},pn="DialogDescriptionWarning",yn=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Qe(pn).contentName}}.`;return c.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Dn=We,Pn=Be,On=He,xn=Ke,Tn=Ge,Nn=Ye,An=ze,Ln=Ze;export{Tn as C,An as D,De as F,xn as O,On as P,Dn as R,Nn as T,Ln as a,Pn as b,Oe as c,St as d,Fe as e,we as f,un as h,j as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.