vendor: 6,292 bytes, line 1
1import{o as e}from"./chunk-CMxvf4Kt.js";import{a as t,i as n,o as r}from"./bundle-mjs-NviOedTj.js";import{a as i,o as a}from"./input-5ZF_Xf7J.js";import{a as o,i as s,l as c,n as l,o as u,s as d,t as f}from"./dist-DOEAYH1_.js";var p=e(r(),1),m=n();function h(e,t){let n=p.createContext(t),r=e=>{let{children:t,...r}=e,i=p.useMemo(()=>r,Object.values(r));return(0,m.jsx)(n.Provider,{value:i,children:t})};r.displayName=e+`Provider`;function i(r){let i=p.useContext(n);if(i)return i;if(t!==void 0)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}return[r,i]}function g(e,t=[]){let n=[];function r(t,r){let i=p.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=p.useMemo(()=>o,Object.values(o));return(0,m.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=p.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>p.createContext(e));return function(n){let r=n?.[e]||t;return p.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,_(i,...t)]}function _(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}t();function v(e){let t=y(e),n=p.forwardRef((e,n)=>{let{children:r,...i}=e,a=p.Children.toArray(r),o=a.find(te);if(o){let e=o.props.children,r=a.map(t=>t===o?p.Children.count(e)>1?p.Children.only(null):p.isValidElement(e)?e.props.children:null:t);return(0,m.jsx)(t,{...i,ref:n,children:p.isValidElement(e)?p.cloneElement(e,void 0,r):null})}return(0,m.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function y(e){let t=p.forwardRef((e,t)=>{let{children:n,...r}=e;if(p.isValidElement(n)){let e=b(n),a=ne(r,n.props);return n.type!==p.Fragment&&(a.ref=t?i(t,e):e),p.cloneElement(n,a)}return p.Children.count(n)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ee=Symbol(`radix.slottable`);function te(e){return p.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===ee}function ne(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function b(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var x=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=v(`Primitive.${t}`),r=p.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,m.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),S=`focusScope.autoFocusOnMount`,C=`focusScope.autoFocusOnUnmount`,re={bubbles:!1,cancelable:!0},ie=`FocusScope`,w=p.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...c}=e,[l,u]=p.useState(null),d=s(i),f=s(o),h=p.useRef(null),g=a(t,e=>u(e)),_=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let e=function(e){if(_.paused||!l)return;let t=e.target;l.contains(t)?h.current=t:T(h.current,{select:!0})},t=function(e){if(_.paused||!l)return;let t=e.relatedTarget;t!==null&&(l.contains(t)||T(h.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&T(l)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,l,_.paused]),p.useEffect(()=>{if(l){de.add(_);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(S,re);l.addEventListener(S,d),l.dispatchEvent(t),t.defaultPrevented||(ae(me(se(l)),{select:!0}),document.activeElement===e&&T(l))}return()=>{l.removeEventListener(S,d),setTimeout(()=>{let t=new CustomEvent(C,re);l.addEventListener(C,f),l.dispatchEvent(t),t.defaultPrevented||T(e??document.body,{select:!0}),l.removeEventListener(C,f),de.remove(_)},0)}}},[l,d,f,_]);let v=p.useCallback(e=>{if(!n&&!r||_.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=oe(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&T(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&T(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,_.paused]);return(0,m.jsx)(x.div,{tabIndex:-1,...c,ref:g,onKeyDown:v})});w.displayName=ie;function ae(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(T(r,{select:t}),document.activeElement!==n)return}function oe(e){let t=se(e);return[ce(t,e),ce(t.reverse(),e)]}function se(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;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 ce(e,t){for(let n of e)if(!le(n,{upTo:t}))return n}function le(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 ue(e){return e instanceof HTMLInputElement&&`select`in e}function T(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ue(e)&&t&&e.select()}}var de=fe();function fe(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=pe(e,t),e.unshift(t)},remove(t){e=pe(e,t),e[0]?.resume()}}}function pe(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function me(e){return e.filter(e=>e.tagName!==`A`)}
vendor: 4,299 bytes, line 1
1function he(e){let t=ge(e),n=p.forwardRef((e,n)=>{let{children:r,...i}=e,a=p.Children.toArray(r),o=a.find(ve);if(o){let e=o.props.children,r=a.map(t=>t===o?p.Children.count(e)>1?p.Children.only(null):p.isValidElement(e)?e.props.children:null:t);return(0,m.jsx)(t,{...i,ref:n,children:p.isValidElement(e)?p.cloneElement(e,void 0,r):null})}return(0,m.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function ge(e){let t=p.forwardRef((e,t)=>{let{children:n,...r}=e;if(p.isValidElement(n)){let e=be(n),a=ye(r,n.props);return n.type!==p.Fragment&&(a.ref=t?i(t,e):e),p.cloneElement(n,a)}return p.Children.count(n)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var _e=Symbol(`radix.slottable`);function ve(e){return p.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===_e}function ye(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function be(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var E=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=he(`Primitive.${t}`),r=p.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,m.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),D=0;function xe(){p.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??Se()),document.body.insertAdjacentElement(`beforeend`,e[1]??Se()),D++,()=>{D===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),D--}},[])}function Se(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var O=function(){return O=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},O.apply(this,arguments)};function Ce(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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function we(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var k=`right-scroll-bar-position`,A=`width-before-scroll-bar`,Te=`with-scroll-bars-hidden`,Ee=`--removed-body-scroll-bar-size`;function j(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function De(e,t){var n=(0,p.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Oe=typeof window<`u`?p.useLayoutEffect:p.useEffect,ke=new WeakMap;function Ae(e,t){var n=De(t||null,function(t){return e.forEach(function(e){return j(e,t)})});return Oe(function(){var t=ke.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||j(e,null)}),i.forEach(function(e){r.has(e)||j(e,a)})}ke.set(n,e)},[e]),n}function je(e){return e}function Me(e,t){t===void 0&&(t=je);var n=[],r=!1;return{read:function(){if(r)throw 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(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;
vendor: 7,442 bytes, lines 1-41
1n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Ne(e){e===void 0&&(e={});var t=Me(null);return t.options=O({async:!0,ssr:!1},e),t}var Pe=function(e){var t=e.sideCar,n=Ce(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 p.createElement(r,O({},n))};Pe.isSideCarExport=!0;function Fe(e,t){return e.useMedium(t),Pe}var Ie=Ne(),M=function(){},N=p.forwardRef(function(e,t){var n=p.useRef(null),r=p.useState({onScrollCapture:M,onWheelCapture:M,onTouchMoveCapture:M}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,m=e.noRelative,h=e.noIsolation,g=e.inert,_=e.allowPinchZoom,v=e.as,y=v===void 0?`div`:v,ee=e.gapMode,te=Ce(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),ne=f,b=Ae([n,t]),x=O(O({},te),i);return p.createElement(p.Fragment,null,u&&p.createElement(ne,{sideCar:Ie,removeScrollBar:l,shards:d,noRelative:m,noIsolation:h,inert:g,setCallbacks:a,allowPinchZoom:!!_,lockRef:n,gapMode:ee}),o?p.cloneElement(p.Children.only(s),O(O({},x),{ref:b})):p.createElement(y,O({},x,{className:c,ref:b}),s))});N.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},N.classNames={fullWidth:A,zeroRight:k};var Le,Re=function(){if(Le)return Le;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function ze(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Re();return t&&e.setAttribute(`nonce`,t),e}function Be(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ve(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var He=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ze())&&(Be(t,n),Ve(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ue=function(){var e=He();return function(t,n){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},We=function(){var e=Ue();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Ge={left:0,top:0,right:0,gap:0},P=function(e){return parseInt(e||``,10)||0},Ke=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[P(n),P(r),P(i)]},qe=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Ge;var t=Ke(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])}},Je=We(),F=`data-scroll-locked`,Ye=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),` 2 .${Te} { 3 overflow: hidden ${r}; 4 padding-right: ${s}px ${r}; 5 } 6 body[${F}] { 7 overflow: hidden ${r}; 8 overscroll-behavior: contain; 9 ${[t&&`position: relative ${r};`,n===`margin`&&` 10 padding-left: ${i}px; 11 padding-top: ${a}px; 12 padding-right: ${o}px; 13 margin-left:0; 14 margin-top:0; 15 margin-right: ${s}px ${r}; 16 `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)} 17 } 18 19 .${k} { 20 right: ${s}px ${r}; 21 } 22 23 .${A} { 24 margin-right: ${s}px ${r}; 25 } 26 27 .${k} .${k} { 28 right: 0 ${r}; 29 } 30 31 .${A} .${A} { 32 margin-right: 0 ${r}; 33 } 34 35 body[${F}] { 36 ${Ee}: ${s}px; 37 } 38`},Xe=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},Ze=function(){p.useEffect(function(){return document.body.setAttribute(F,(Xe()+1).toString()),function(){var e=Xe()-1;e<=0?document.body.removeAttribute(F):document.body.setAttribute(F,e.toString())}},[])},Qe=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;Ze();var a=p.useMemo(function(){return qe(i)},[i]);return p.createElement(Je,{styles:Ye(a,!t,i,n?``:`!important`)})},I=!1;if(typeof window<`u`)try{var L=Object.defineProperty({},"passive",{get:function(){return I=!0,!0}});window.addEventListener(`test`,L,L),window.removeEventListener(`test`,L,L)}catch{I=!1}var R=I?{passive:!1}:!1,$e=function(e){return e.tagName===`TEXTAREA`},et=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!$e(e)&&n[t]===`visible`)},tt=function(e){return et(e,`overflowY`)},nt=function(e){return et(e,`overflowX`)},rt=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),ot(e,r)){var i=st(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},it=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},at=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},ot=function(e,t){return e===`v`?tt(t):nt(t)},st=function(e,t){return e===`v`?it(t):at(t)},ct=function(e,t){return e===`h`&&t===`rtl`?-1:1},lt=function(e,t,n,r,i){var a=ct(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=st(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&ot(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},z=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ut=function(e){return[e.deltaX,e.deltaY]},dt=function(e){return e&&`current`in e?e.current:e},ft=function(e,t){return e[0]===t[0]&&e[1]===t[1]},pt=function(e){return` 39 .block-interactivity-${e} {pointer-events: none;} 40 .allow-interactivity-${e} {pointer-events: all;} 41`},mt=0,B=[];function ht(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),i=p.useState(mt++)[0],a=p.useState(We)[0],o=p.useRef(e);p.useEffect(function(){o.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=we([e.lockRef.current],(e.shards||[]).map(dt),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=p.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=z(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=rt(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=rt(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return lt(h,t,e,h===`h`?s:c,!0)},[]),c=p.useCallback(function(e){var n=e;if(!(!B.length||B[B.length-1]!==a)){var r=`deltaY`in n?ut(n):z(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&ft(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}
vendor: 4,271 bytes, line 41
41if(!i){var c=(o.current.shards||[]).map(dt).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=p.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:gt(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=p.useCallback(function(e){n.current=z(e),r.current=void 0},[]),d=p.useCallback(function(t){l(t.type,ut(t),t.target,s(t,e.lockRef.current))},[]),f=p.useCallback(function(t){l(t.type,z(t),t.target,s(t,e.lockRef.current))},[]);p.useEffect(function(){return B.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,R),document.addEventListener(`touchmove`,c,R),document.addEventListener(`touchstart`,u,R),function(){B=B.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,R),document.removeEventListener(`touchmove`,c,R),document.removeEventListener(`touchstart`,u,R)}},[]);var m=e.removeScrollBar,h=e.inert;return p.createElement(p.Fragment,null,h?p.createElement(a,{styles:pt(i)}):null,m?p.createElement(Qe,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function gt(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var _t=Fe(Ie,ht),V=p.forwardRef(function(e,t){return p.createElement(N,O({},e,{ref:t,sideCar:_t}))});V.classNames=N.classNames;var vt=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},H=new WeakMap,U=new WeakMap,W={},G=0,yt=function(e){return e&&(e.host||yt(e.parentNode))},bt=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=yt(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},xt=function(e,t,n,r){var i=bt(t,Array.isArray(e)?e:[e]);W[n]||(W[n]=new WeakMap);var a=W[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(H.get(e)||0)+1,l=(a.get(e)||0)+1;H.set(e,c),a.set(e,l),o.push(e),c===1&&i&&U.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),G++,function(){o.forEach(function(e){var t=H.get(e)-1,i=a.get(e)-1;H.set(e,t),a.set(e,i),t||(U.has(e)||e.removeAttribute(r),U.delete(e)),i||e.removeAttribute(n)}),G--,G||(H=new WeakMap,H=new WeakMap,U=new WeakMap,W={})}},St=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||vt(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),xt(r,i,n,`aria-hidden`)):function(){return null}},K=`Dialog`,[Ct,wt]=g(K),[Tt,q]=Ct(K),Et=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,c=p.useRef(null),l=p.useRef(null),[u,f]=d({prop:r,defaultProp:i??!1,onChange:a,caller:K});return(0,m.jsx)(Tt,{scope:t,triggerRef:c,contentRef:l,contentId:o(),titleId:o(),descriptionId:o(),open:u,onOpenChange:f,onOpenToggle:p.useCallback(()=>f(e=>!e),[f]),modal:s,children:n})};Et.displayName=K;var Dt=`DialogTrigger`,Ot=p.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=q(Dt,n),o=a(t,i.triggerRef);return(0,m.jsx)(E.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":$(i.open),...r,ref:o,onClick:c(e.onClick,i.onOpenToggle)})});Ot.displayName=Dt;var J=`DialogPortal`,[kt,At]=Ct(J,{forceMount:void 0}),jt=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=q(J,t);return(0,m.jsx)(kt,{scope:t,forceMount:n,children:p.Children.map(r,e=>(0,m.jsx)(u,{present:n||a.open,children:(0,m.jsx)(f,{asChild:!0,container:i,children:e})}))})};jt.displayName=J;var Y=`DialogOverlay`,Mt=p.forwardRef((e,t)=>{let n=At(Y,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=q(Y,e.__scopeDialog);return a.modal?(0,m.jsx)(u,{present:r||a.open,children:(0,m.jsx)(Pt,{...i,ref:t})}):null});Mt.displayName=Y;var Nt=he(`DialogOverlay.RemoveScroll`),Pt=p.forwardRef((e,t)=>
vendor: 3,711 bytes, lines 41-45
41{let{__scopeDialog:n,...r}=e,i=q(Y,n);return(0,m.jsx)(V,{as:Nt,allowPinchZoom:!0,shards:[i.contentRef],children:(0,m.jsx)(E.div,{"data-state":$(i.open),...r,ref:t,style:{pointerEvents:`auto`,...r.style}})})}),X=`DialogContent`,Z=p.forwardRef((e,t)=>{let n=At(X,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=q(X,e.__scopeDialog);return(0,m.jsx)(u,{present:r||a.open,children:a.modal?(0,m.jsx)(Ft,{...i,ref:t}):(0,m.jsx)(It,{...i,ref:t})})});Z.displayName=X;var Ft=p.forwardRef((e,t)=>{let n=q(X,e.__scopeDialog),r=p.useRef(null),i=a(t,n.contentRef,r);return p.useEffect(()=>{let e=r.current;if(e)return St(e)},[]),(0,m.jsx)(Lt,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:c(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:c(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:c(e.onFocusOutside,e=>e.preventDefault())})}),It=p.forwardRef((e,t)=>{let n=q(X,e.__scopeDialog),r=p.useRef(!1),i=p.useRef(!1);return(0,m.jsx)(Lt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),Lt=p.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...s}=e,c=q(X,n),u=p.useRef(null),d=a(t,u);return xe(),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(w,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,m.jsx)(l,{role:`dialog`,id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":$(c.open),...s,ref:d,onDismiss:()=>c.onOpenChange(!1)})}),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(Kt,{titleId:c.titleId}),(0,m.jsx)(Jt,{contentRef:u,descriptionId:c.descriptionId})]})]})}),Q=`DialogTitle`,Rt=p.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=q(Q,n);return(0,m.jsx)(E.h2,{id:i.titleId,...r,ref:t})});Rt.displayName=Q;var zt=`DialogDescription`,Bt=p.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=q(zt,n);return(0,m.jsx)(E.p,{id:i.descriptionId,...r,ref:t})});Bt.displayName=zt;var Vt=`DialogClose`,Ht=p.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=q(Vt,n);return(0,m.jsx)(E.button,{type:`button`,...r,ref:t,onClick:c(e.onClick,()=>i.onOpenChange(!1))})});Ht.displayName=Vt;function $(e){return e?`open`:`closed`}var Ut=`DialogTitleWarning`,[Wt,Gt]=h(Ut,{contentName:X,titleName:Q,docsSlug:`dialog`}),Kt=({titleId:e})=>{let t=Gt(Ut),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 p.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},qt=`DialogDescriptionWarning`,Jt=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Gt(qt).contentName}}.`;return p.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Yt=Et,Xt=Ot,Zt=jt,Qt=Mt,$t=Z,en=Rt,tn=Bt,nn=Ht;export{Zt as a,Xt as c,St as d,V as f,Qt as i,Wt as l,w as m,$t as n,Yt as o,xe as p,tn as r,en as s,nn as t,wt 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.