vendor: 5,930 bytes, line 1
1import{r as a,R as Bt,a as it,b as oo,c as ye}from"./vendor-D5_uWaOI.js";var xt={exports:{}},Fe={};var on;function io(){if(on)return Fe;on=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,i){var c=null;if(i!==void 0&&(c=""+i),o.key!==void 0&&(c=""+o.key),"key"in o){i={};for(var s in o)s!=="key"&&(i[s]=o[s])}else i=o;return o=i.ref,{$$typeof:e,type:r,key:c,ref:o!==void 0?o:null,props:i}}return Fe.Fragment=t,Fe.jsx=n,Fe.jsxs=n,Fe}var sn;function so(){return sn||(sn=1,xt.exports=io()),xt.exports}var x=so();function $(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function cn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function De(...e){return t=>{let n=!1;const r=e.map(o=>{const i=cn(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():cn(e[o],null)}}}}function U(...e){return a.useCallback(De(...e),e)}function co(e,t){const n=a.createContext(t),r=i=>{const{children:c,...s}=i,l=a.useMemo(()=>s,Object.values(s));return x.jsx(n.Provider,{value:l,children:c})};r.displayName=e+"Provider";function o(i){const c=a.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function st(e,t=[]){let n=[];function r(i,c){const s=a.createContext(c),l=n.length;n=[...n,c];const u=p=>{const{scope:g,children:m,...y}=p,f=g?.[e]?.[l]||s,h=a.useMemo(()=>y,Object.values(y));return x.jsx(f.Provider,{value:h,children:m})};u.displayName=i+"Provider";function d(p,g){const m=g?.[e]?.[l]||s,y=a.useContext(m);if(y)return y;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(c=>a.createContext(c));return function(s){const l=s?.[e]||i;return a.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,ao(o,...t)]}function ao(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const c=r.reduce((s,{useScope:l,scopeName:u})=>{const p=l(i)[`__scope${u}`];return{...s,...p}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}var Y=globalThis?.document?a.useLayoutEffect:()=>{},lo=Bt[" useId ".trim().toString()]||(()=>{}),uo=0;function Oe(e){const[t,n]=a.useState(lo());return Y(()=>{n(r=>r??String(uo++))},[e]),e||(t?`radix-${t}`:"")}var fo=Bt[" useInsertionEffect ".trim().toString()]||Y;function Nt({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,c]=po({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:o;{const d=a.useRef(e!==void 0);a.useEffect(()=>{const p=d.current;p!==s&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=s},[s,r])}const u=a.useCallback(d=>{if(s){const p=mo(d)?d(e):d;p!==e&&c.current?.(p)}else i(d)},[s,e,i,c]);return[l,u]}function po({defaultProp:e,onChange:t}){const[n,r]=a.useState(e),o=a.useRef(n),i=a.useRef(t);return fo(()=>{i.current=t},[t]),a.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function mo(e){return typeof e=="function"}function ho(e){const t=go(e),n=a.forwardRef((r,o)=>{const{children:i,...c}=r,s=a.Children.toArray(i),l=s.find(yo);if(l){const u=l.props.children,d=s.map(p=>p===l?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:p);return x.jsx(t,{...c,ref:o,children:a.isValidElement(u)?a.cloneElement(u,void 0,d):null})}return x.jsx(t,{...c,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function go(e){const t=a.forwardRef((n,r)=>{const{children:o,...i}=n;if(a.isValidElement(o)){const c=xo(o),s=wo(i,o.props);return o.type!==a.Fragment&&(s.ref=r?De(r,c):c),a.cloneElement(o,s)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var vo=Symbol("radix.slottable");function yo(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===vo}function wo(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function xo(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 So=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],j=So.reduce((e,t)=>{const n=ho(`Primitive.${t}`),r=a.forwardRef((o,i)=>{const{asChild:c,...s}=o,l=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Co(e,t){e&&it.flushSync(()=>e.dispatchEvent(t))}function we(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...n)=>t.current?.(...n),[])}function bo(e,t=globalThis?.document){const n=we(e);a.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 Eo="DismissableLayer",It="dismissableLayer.update",Ro="dismissableLayer.pointerDownOutside",Po="dismissableLayer.focusOutside",an,_n=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Vt=a.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:c,onDismiss:s,...l}
vendor: 6,126 bytes, line 1
1=e,u=a.useContext(_n),[d,p]=a.useState(null),g=d?.ownerDocument??globalThis?.document,[,m]=a.useState({}),y=U(t,E=>p(E)),f=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),w=f.indexOf(h),v=d?f.indexOf(d):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,C=v>=w,b=To(E=>{const O=E.target,D=[...u.branches].some(N=>N.contains(O));!C||D||(o?.(E),c?.(E),E.defaultPrevented||s?.())},g),R=No(E=>{const O=E.target;[...u.branches].some(N=>N.contains(O))||(i?.(E),c?.(E),E.defaultPrevented||s?.())},g);return bo(E=>{v===u.layers.size-1&&(r?.(E),!E.defaultPrevented&&s&&(E.preventDefault(),s()))},g),a.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(an=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),ln(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=an)}},[d,g,n,u]),a.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),ln())},[d,u]),a.useEffect(()=>{const E=()=>m({});return document.addEventListener(It,E),()=>document.removeEventListener(It,E)},[]),x.jsx(j.div,{...l,ref:y,style:{pointerEvents:S?C?"auto":"none":void 0,...e.style},onFocusCapture:$(e.onFocusCapture,R.onFocusCapture),onBlurCapture:$(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:$(e.onPointerDownCapture,b.onPointerDownCapture)})});Vt.displayName=Eo;var Ao="DismissableLayerBranch",Oo=a.forwardRef((e,t)=>{const n=a.useContext(_n),r=a.useRef(null),o=U(t,r);return a.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),x.jsx(j.div,{...e,ref:o})});Oo.displayName=Ao;function To(e,t=globalThis?.document){const n=we(e),r=a.useRef(!1),o=a.useRef(()=>{});return a.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let l=function(){Mn(Ro,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function No(e,t=globalThis?.document){const n=we(e),r=a.useRef(!1);return a.useEffect(()=>{const o=i=>{i.target&&!r.current&&Mn(Po,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ln(){const e=new CustomEvent(It);document.dispatchEvent(e)}function Mn(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Co(o,i):o.dispatchEvent(i)}var St="focusScope.autoFocusOnMount",Ct="focusScope.autoFocusOnUnmount",un={bubbles:!1,cancelable:!0},Io="FocusScope",Ht=a.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...c}=e,[s,l]=a.useState(null),u=we(o),d=we(i),p=a.useRef(null),g=U(t,f=>l(f)),m=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(r){let f=function(S){if(m.paused||!s)return;const C=S.target;s.contains(C)?p.current=C:ue(p.current,{select:!0})},h=function(S){if(m.paused||!s)return;const C=S.relatedTarget;C!==null&&(s.contains(C)||ue(p.current,{select:!0}))},w=function(S){if(document.activeElement===document.body)for(const b of S)b.removedNodes.length>0&&ue(s)};document.addEventListener("focusin",f),document.addEventListener("focusout",h);const v=new MutationObserver(w);return s&&v.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",h),v.disconnect()}}},[r,s,m.paused]),a.useEffect(()=>{if(s){dn.add(m);const f=document.activeElement;if(!s.contains(f)){const w=new CustomEvent(St,un);s.addEventListener(St,u),s.dispatchEvent(w),w.defaultPrevented||(Do(jo(Ln(s)),{select:!0}),document.activeElement===f&&ue(s))}return()=>{s.removeEventListener(St,u),setTimeout(()=>{const w=new CustomEvent(Ct,un);s.addEventListener(Ct,d),s.dispatchEvent(w),w.defaultPrevented||ue(f??document.body,{select:!0}),s.removeEventListener(Ct,d),dn.remove(m)},0)}}},[s,u,d,m]);const y=a.useCallback(f=>{if(!n&&!r||m.paused)return;const h=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,w=document.activeElement;if(h&&w){const v=f.currentTarget,[S,C]=_o(v);S&&C?!f.shiftKey&&w===C?(f.preventDefault(),n&&ue(S,{select:!0})):f.shiftKey&&w===S&&(f.preventDefault(),n&&ue(C,{select:!0})):w===v&&f.preventDefault()}},[n,r,m.paused]);return x.jsx(j.div,{tabIndex:-1,...c,ref:g,onKeyDown:y})});Ht.displayName=Io;function Do(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ue(r,{select:t}),document.activeElement!==n)return}function _o(e){const t=Ln(e),n=fn(t,e),r=fn(t.reverse(),e);return[n,r]}function Ln(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 fn(e,t){for(const n of e)if(!Mo(n,{upTo:t}))return n}function Mo(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 Lo(e){return e instanceof HTMLInputElement&&"select"in e}function ue(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Lo(e)&&t&&e.select()}}var dn=ko();function ko(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=pn(e,t),e.unshift(t)},remove(t){e=pn(e,t),e[0]?.resume()}}}function pn(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function jo(e){return e.filter(t=>t.tagName!=="A")}var Fo="Portal",Ut=a.forwardRef((e,t)=>
vendor: 8,307 bytes, lines 1-16
1{const{container:n,...r}=e,[o,i]=a.useState(!1);Y(()=>i(!0),[]);const c=n||o&&globalThis?.document?.body;return c?oo.createPortal(x.jsx(j.div,{...r,ref:t}),c):null});Ut.displayName=Fo;function Wo(e,t){return a.useReducer((n,r)=>t[n][r]??n,e)}var ct=e=>{const{present:t,children:n}=e,r=$o(t),o=typeof n=="function"?n({present:r.isPresent}):a.Children.only(n),i=U(r.ref,Bo(o));return typeof n=="function"||r.isPresent?a.cloneElement(o,{ref:i}):null};ct.displayName="Presence";function $o(e){const[t,n]=a.useState(),r=a.useRef(null),o=a.useRef(e),i=a.useRef("none"),c=e?"mounted":"unmounted",[s,l]=Wo(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const u=He(r.current);i.current=s==="mounted"?u:"none"},[s]),Y(()=>{const u=r.current,d=o.current;if(d!==e){const g=i.current,m=He(u);e?l("MOUNT"):m==="none"||u?.display==="none"?l("UNMOUNT"):l(d&&g!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Y(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,p=m=>{const f=He(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&f&&(l("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},g=m=>{m.target===t&&(i.current=He(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:a.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function He(e){return e?.animationName||"none"}function Bo(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 bt=0;function kn(){a.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??mn()),document.body.insertAdjacentElement("beforeend",e[1]??mn()),bt++,()=>{bt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),bt--}},[])}function mn(){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 ne=function(){return ne=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ne.apply(this,arguments)};function jn(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 Vo(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Ge="right-scroll-bar-position",qe="width-before-scroll-bar",Ho="with-scroll-bars-hidden",Uo="--removed-body-scroll-bar-size";function Et(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function zo(e,t){var n=a.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 Yo=typeof window<"u"?a.useLayoutEffect:a.useEffect,hn=new WeakMap;function Ko(e,t){var n=zo(null,function(r){return e.forEach(function(o){return Et(o,r)})});return Yo(function(){var r=hn.get(n);if(r){var o=new Set(r),i=new Set(e),c=n.current;o.forEach(function(s){i.has(s)||Et(s,null)}),i.forEach(function(s){o.has(s)||Et(s,c)})}hn.set(n,e)},[e]),n}function Xo(e){return e}function Go(e,t){t===void 0&&(t=Xo);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(i){var c=t(i,r);return n.push(c),function(){n=n.filter(function(s){return s!==c})}},assignSyncMedium:function(i){for(r=!0;n.length;){var c=n;n=[],c.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var c=[];if(n.length){var s=n;n=[],s.forEach(i),c=n}var l=function(){var d=c;c=[],d.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){c.push(d),u()},filter:function(d){return c=c.filter(d),n}}}};return o}function qo(e){e===void 0&&(e={});var t=Go(null);return t.options=ne({async:!0,ssr:!1},e),t}var Fn=function(e){var t=e.sideCar,n=jn(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 a.createElement(r,ne({},n))};Fn.isSideCarExport=!0;function Zo(e,t){return e.useMedium(t),Fn}var Wn=qo(),Rt=function(){},at=a.forwardRef(function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:Rt,onWheelCapture:Rt,onTouchMoveCapture:Rt}),o=r[0],i=r[1],c=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,g=e.sideCar,m=e.noRelative,y=e.noIsolation,f=e.inert,h=e.allowPinchZoom,w=e.as,v=w===void 0?"div":w,S=e.gapMode,C=jn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=g,R=Ko([n,t]),E=ne(ne({},C),o);return a.createElement(a.Fragment,null,d&&a.createElement(b,{sideCar:Wn,removeScrollBar:u,shards:p,noRelative:m,noIsolation:y,inert:f,setCallbacks:i,allowPinchZoom:!!h,lockRef:n,gapMode:S}),c?a.cloneElement(a.Children.only(s),ne(ne({},E),{ref:R})):a.createElement(v,ne({},E,{className:l,ref:R}),s))});at.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};at.classNames={fullWidth:qe,zeroRight:Ge};var Jo=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Qo(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Jo();return t&&e.setAttribute("nonce",t),e}function ei(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ti(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ni=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Qo())&&(ei(t,n),ti(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ri=function(){var e=ni();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},$n=function(){var e=ri(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},oi={left:0,top:0,right:0,gap:0},Pt=function(e){return parseInt(e||"",10)||0},ii=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[Pt(n),Pt(r),Pt(o)]},si=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return oi;var t=ii(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])}},ci=$n(),Te="data-scroll-locked",ai=function(e,t,n,r){var o=e.left,i=e.top,c=e.right,s=e.gap;return n===void 0&&(n="margin"),` 2 .`.concat(Ho,` { 3 overflow: hidden `).concat(r,`; 4 padding-right: `).concat(s,"px ").concat(r,`; 5 } 6 body[`).concat(Te,`] { 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(i,`px; 12 padding-right: `).concat(c,`px; 13 margin-left:0; 14 margin-top:0; 15 margin-right: `).concat(s,"px ").concat(r,`; 16 `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";
16")].filter(Boolean).join(""),` 17 } 18 19 .`).concat(Ge,` { 20 right: `).concat(s,"px ").concat(r,`; 21 } 22 23 .`).concat(qe,` { 24 margin-right: `).concat(s,"px ").concat(r,`; 25 } 26 27 .`).concat(Ge," .").concat(Ge,` { 28 right: 0 `).concat(r,`; 29 } 30 31 .`).concat(qe," .").concat(qe,` { 32 margin-right: 0 `).concat(r,`; 33 } 34 35 body[`).concat(Te,`] { 36 `).concat(Uo,": ").concat(s,`px; 37 } 38`)},gn=function(){var e=parseInt(document.body.getAttribute(Te)||"0",10);return isFinite(e)?e:0},li=function(){a.useEffect(function(){return document.body.setAttribute(Te,(gn()+1).toString()),function(){var e=gn()-1;e<=0?document.body.removeAttribute(Te):document.body.setAttribute(Te,e.toString())}},[])},ui=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;li();var i=a.useMemo(function(){return si(o)},[o]);return a.createElement(ci,{styles:ai(i,!t,o,n?"":"!important")})},Dt=!1;if(typeof window<"u")try{var Ue=Object.defineProperty({},"passive",{get:function(){return Dt=!0,!0}});window.addEventListener("test",Ue,Ue),window.removeEventListener("test",Ue,Ue)}catch{Dt=!1}var Re=Dt?{passive:!1}:!1,fi=function(e){return e.tagName==="TEXTAREA"},Bn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!fi(e)&&n[t]==="visible")},di=function(e){return Bn(e,"overflowY")},pi=function(e){return Bn(e,"overflowX")},vn=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Vn(e,r);if(o){var i=Hn(e,r),c=i[1],s=i[2];if(c>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},mi=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},hi=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Vn=function(e,t){return e==="v"?di(t):pi(t)},Hn=function(e,t){return e==="v"?mi(t):hi(t)},gi=function(e,t){return e==="h"&&t==="rtl"?-1:1},vi=function(e,t,n,r,o){var i=gi(e,window.getComputedStyle(t).direction),c=i*r,s=n.target,l=t.contains(s),u=!1,d=c>0,p=0,g=0;do{if(!s)break;var m=Hn(e,s),y=m[0],f=m[1],h=m[2],w=f-h-i*y;(y||w)&&Vn(e,s)&&(p+=w,g+=y);var v=s.parentNode;s=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(d&&Math.abs(p)<1||!d&&Math.abs(g)<1)&&(u=!0),u},ze=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},yn=function(e){return[e.deltaX,e.deltaY]},wn=function(e){return e&&"current"in e?e.current:e},yi=function(e,t){return e[0]===t[0]&&e[1]===t[1]},wi=function(e){return` 39 .block-interactivity-`.concat(e,` {pointer-events: none;} 40 .allow-interactivity-`).concat(e,` {pointer-events: all;} 41`)},xi=0,Pe=[];function Si(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(xi++)[0],i=a.useState($n)[0],c=a.useRef(e);a.useEffect(function(){c.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var f=Vo([e.lockRef.current],(e.shards||[]).map(wn),!0).filter(Boolean);return f.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=a.useCallback(function(f,h){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!c.current.allowPinchZoom;var w=ze(f),v=n.current,S="deltaX"in f?f.deltaX:v[0]-w[0],C="deltaY"in f?f.deltaY:v[1]-w[1],b,R=f.target,E=Math.abs(S)>Math.abs(C)?"h":"v";if("touches"in f&&E==="h"&&R.type==="range")return!1;var O=window.getSelection(),D=O&&O.anchorNode,N=D?D===R||D.contains(R):!1;if(N)return!1;var _=vn(E,R);if(!_)return!0;if(_?b=E:(b=E==="v"?"h":"v",_=vn(E,R)),!_)return!1;if(!r.current&&"changedTouches"in f&&(S||C)&&(r.current=b),!b)return!0;var L=r.current||b;return vi(L,h,f,L==="h"?S:C)},[]),l=a.useCallback(function(f){var h=f;if(!(!Pe.length||Pe[Pe.length-1]!==i)){var w="deltaY"in h?yn(h):ze(h),v=t.current.filter(function(b){return b.name===h.type&&(b.target===h.target||h.target===b.shadowParent)&&yi(b.delta,w)})[0];if(v&&v.should){h.cancelable&&h.preventDefault();return}
vendor: 4,641 bytes, line 41
41if(!v){var S=(c.current.shards||[]).map(wn).filter(Boolean).filter(function(b){return b.contains(h.target)}),C=S.length>0?s(h,S[0]):!c.current.noIsolation;C&&h.cancelable&&h.preventDefault()}}},[]),u=a.useCallback(function(f,h,w,v){var S={name:f,delta:h,target:w,should:v,shadowParent:Ci(w)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(C){return C!==S})},1)},[]),d=a.useCallback(function(f){n.current=ze(f),r.current=void 0},[]),p=a.useCallback(function(f){u(f.type,yn(f),f.target,s(f,e.lockRef.current))},[]),g=a.useCallback(function(f){u(f.type,ze(f),f.target,s(f,e.lockRef.current))},[]);a.useEffect(function(){return Pe.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",l,Re),document.addEventListener("touchmove",l,Re),document.addEventListener("touchstart",d,Re),function(){Pe=Pe.filter(function(f){return f!==i}),document.removeEventListener("wheel",l,Re),document.removeEventListener("touchmove",l,Re),document.removeEventListener("touchstart",d,Re)}},[]);var m=e.removeScrollBar,y=e.inert;return a.createElement(a.Fragment,null,y?a.createElement(i,{styles:wi(o)}):null,m?a.createElement(ui,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ci(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const bi=Zo(Wn,Si);var zt=a.forwardRef(function(e,t){return a.createElement(at,ne({},e,{ref:t,sideCar:bi}))});zt.classNames=at.classNames;var Ei=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ae=new WeakMap,Ye=new WeakMap,Ke={},At=0,Un=function(e){return e&&(e.host||Un(e.parentNode))},Ri=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Un(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})},Pi=function(e,t,n,r){var o=Ri(t,Array.isArray(e)?e:[e]);Ke[n]||(Ke[n]=new WeakMap);var i=Ke[n],c=[],s=new Set,l=new Set(o),u=function(p){!p||s.has(p)||(s.add(p),u(p.parentNode))};o.forEach(u);var d=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(g){if(s.has(g))d(g);else try{var m=g.getAttribute(r),y=m!==null&&m!=="false",f=(Ae.get(g)||0)+1,h=(i.get(g)||0)+1;Ae.set(g,f),i.set(g,h),c.push(g),f===1&&y&&Ye.set(g,!0),h===1&&g.setAttribute(n,"true"),y||g.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",g,w)}})};return d(t),s.clear(),At++,function(){c.forEach(function(p){var g=Ae.get(p)-1,m=i.get(p)-1;Ae.set(p,g),i.set(p,m),g||(Ye.has(p)||p.removeAttribute(r),Ye.delete(p)),m||p.removeAttribute(n)}),At--,At||(Ae=new WeakMap,Ae=new WeakMap,Ye=new WeakMap,Ke={})}},zn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Ei(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Pi(r,o,n,"aria-hidden")):function(){return null}};function Ai(e){const t=Oi(e),n=a.forwardRef((r,o)=>{const{children:i,...c}=r,s=a.Children.toArray(i),l=s.find(Ni);if(l){const u=l.props.children,d=s.map(p=>p===l?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:p);return x.jsx(t,{...c,ref:o,children:a.isValidElement(u)?a.cloneElement(u,void 0,d):null})}return x.jsx(t,{...c,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Oi(e){const t=a.forwardRef((n,r)=>{const{children:o,...i}=n;if(a.isValidElement(o)){const c=Di(o),s=Ii(i,o.props);return o.type!==a.Fragment&&(s.ref=r?De(r,c):c),a.cloneElement(o,s)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ti=Symbol("radix.slottable");function Ni(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ti}function Ii(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Di(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 lt="Dialog",[Yn]=st(lt),[_i,te]=Yn(lt),Kn=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:c=!0}=e,s=a.useRef(null),l=a.useRef(null),[u,d]=Nt({prop:r,defaultProp:o??!1,onChange:i,caller:lt});return x.jsx(_i,{scope:t,triggerRef:s,contentRef:l,contentId:Oe(
vendor: 4,547 bytes, lines 41-45
41),titleId:Oe(),descriptionId:Oe(),open:u,onOpenChange:d,onOpenToggle:a.useCallback(()=>d(p=>!p),[d]),modal:c,children:n})};Kn.displayName=lt;var Xn="DialogTrigger",Gn=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=te(Xn,n),i=U(t,o.triggerRef);return x.jsx(j.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Xt(o.open),...r,ref:i,onClick:$(e.onClick,o.onOpenToggle)})});Gn.displayName=Xn;var Yt="DialogPortal",[Mi,qn]=Yn(Yt,{forceMount:void 0}),Zn=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=te(Yt,t);return x.jsx(Mi,{scope:t,forceMount:n,children:a.Children.map(r,c=>x.jsx(ct,{present:n||i.open,children:x.jsx(Ut,{asChild:!0,container:o,children:c})}))})};Zn.displayName=Yt;var Je="DialogOverlay",Jn=a.forwardRef((e,t)=>{const n=qn(Je,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=te(Je,e.__scopeDialog);return i.modal?x.jsx(ct,{present:r||i.open,children:x.jsx(ki,{...o,ref:t})}):null});Jn.displayName=Je;var Li=Ai("DialogOverlay.RemoveScroll"),ki=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=te(Je,n);return x.jsx(zt,{as:Li,allowPinchZoom:!0,shards:[o.contentRef],children:x.jsx(j.div,{"data-state":Xt(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),xe="DialogContent",Qn=a.forwardRef((e,t)=>{const n=qn(xe,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=te(xe,e.__scopeDialog);return x.jsx(ct,{present:r||i.open,children:i.modal?x.jsx(ji,{...o,ref:t}):x.jsx(Fi,{...o,ref:t})})});Qn.displayName=xe;var ji=a.forwardRef((e,t)=>{const n=te(xe,e.__scopeDialog),r=a.useRef(null),o=U(t,n.contentRef,r);return a.useEffect(()=>{const i=r.current;if(i)return zn(i)},[]),x.jsx(er,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:$(e.onCloseAutoFocus,i=>{i.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:$(e.onPointerDownOutside,i=>{const c=i.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&i.preventDefault()}),onFocusOutside:$(e.onFocusOutside,i=>i.preventDefault())})}),Fi=a.forwardRef((e,t)=>{const n=te(xe,e.__scopeDialog),r=a.useRef(!1),o=a.useRef(!1);return x.jsx(er,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=i.target;n.triggerRef.current?.contains(c)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),er=a.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...c}=e,s=te(xe,n),l=a.useRef(null),u=U(t,l);return kn(),x.jsxs(x.Fragment,{children:[x.jsx(Ht,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:x.jsx(Vt,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Xt(s.open),...c,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),x.jsxs(x.Fragment,{children:[x.jsx(Bi,{titleId:s.titleId}),x.jsx(Hi,{contentRef:l,descriptionId:s.descriptionId})]})]})}),Kt="DialogTitle",Wi=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=te(Kt,n);return x.jsx(j.h2,{id:o.titleId,...r,ref:t})});Wi.displayName=Kt;var tr="DialogDescription",$i=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=te(tr,n);return x.jsx(j.p,{id:o.descriptionId,...r,ref:t})});$i.displayName=tr;var nr="DialogClose",rr=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=te(nr,n);return x.jsx(j.button,{type:"button",...r,ref:t,onClick:$(e.onClick,()=>o.onOpenChange(!1))})});rr.displayName=nr;function Xt(e){return e?"open":"closed"}var or="DialogTitleWarning",[ua,ir]=co(or,{contentName:xe,titleName:Kt,docsSlug:"dialog"}),Bi=({titleId:e})=>{const t=ir(or),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 a.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Vi="DialogDescriptionWarning",Hi=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ir(Vi).contentName}}.`;return a.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");
vendor: 5,144 bytes, line 45
45t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},fa=Kn,da=Gn,pa=Zn,ma=Jn,ha=Qn,ga=rr,Ui=Symbol.for("react.lazy"),Qe=Bt[" use ".trim().toString()];function zi(e){return typeof e=="object"&&e!==null&&"then"in e}function sr(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Ui&&"_payload"in e&&zi(e._payload)}function cr(e){const t=Yi(e),n=a.forwardRef((r,o)=>{let{children:i,...c}=r;sr(i)&&typeof Qe=="function"&&(i=Qe(i._payload));const s=a.Children.toArray(i),l=s.find(Xi);if(l){const u=l.props.children,d=s.map(p=>p===l?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:p);return x.jsx(t,{...c,ref:o,children:a.isValidElement(u)?a.cloneElement(u,void 0,d):null})}return x.jsx(t,{...c,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var va=cr("Slot");function Yi(e){const t=a.forwardRef((n,r)=>{let{children:o,...i}=n;if(sr(o)&&typeof Qe=="function"&&(o=Qe(o._payload)),a.isValidElement(o)){const c=qi(o),s=Gi(i,o.props);return o.type!==a.Fragment&&(s.ref=r?De(r,c):c),a.cloneElement(o,s)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ki=Symbol("radix.slottable");function Xi(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ki}function Gi(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function qi(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 Zi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ji=Zi.reduce((e,t)=>{const n=cr(`Primitive.${t}`),r=a.forwardRef((o,i)=>{const{asChild:c,...s}=o,l=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Qi="Label",ar=a.forwardRef((e,t)=>x.jsx(Ji.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));ar.displayName=Qi;var ya=ar;function xn(e,[t,n]){return Math.min(n,Math.max(t,e))}function Sn(e){const t=es(e),n=a.forwardRef((r,o)=>{const{children:i,...c}=r,s=a.Children.toArray(i),l=s.find(ns);if(l){const u=l.props.children,d=s.map(p=>p===l?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:p);return x.jsx(t,{...c,ref:o,children:a.isValidElement(u)?a.cloneElement(u,void 0,d):null})}return x.jsx(t,{...c,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function es(e){const t=a.forwardRef((n,r)=>{const{children:o,...i}=n;if(a.isValidElement(o)){const c=os(o),s=rs(i,o.props);return o.type!==a.Fragment&&(s.ref=r?De(r,c):c),a.cloneElement(o,s)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ts=Symbol("radix.slottable");function ns(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ts}function rs(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function os(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)}function is(e){const t=e+"CollectionProvider",[n,r]=st(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=f=>{const{scope:h,children:w}=f,v=ye.useRef(null),S=ye.useRef(new Map).current;return x.jsx(o,{scope:h,itemMap:S,collectionRef:v,children:w})};c.displayName=t;const s=e+"CollectionSlot",l=Sn(s),u=ye.forwardRef((f,h)=>{const{scope:w,children:v}=f,S=i(s,w),C=U(h,S.collectionRef);return x.jsx(l,{ref:C,children:v})});u.displayName=s;const d=e+"CollectionItemSlot",p="data-radix-collection-item",g=Sn(d),m=ye.forwardRef((f,h)=>{const{scope:w,children:v,...S}=f,C=ye.useRef(null),b=U(h,C),R=i(d,w);return ye.useEffect(()=>(R.itemMap.set(C,{ref:C,...S}),()=>{R.itemMap.delete(C)})),x.jsx(g,{[p]:"",ref:b,children:v})});m.displayName=d;function y(f){const h=i(e+"CollectionConsumer",f);return ye.useCallback(()=>{const v=h.collectionRef.current;if(!v)return[];const S=Array.from(v.querySelectorAll(`[${p}]`));return Array.from(h.itemMap.values()).sort((R,E)=>S.indexOf(R.ref.current)-S.indexOf(E.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:c,Slot:u,ItemSlot:m},y,r]}var ss=a.createContext(void 0);function cs(e){const t=a.useContext(ss);return e||t||"ltr"}const as=["top","right","bottom","left"],fe=Math.min,G=Math.max,et=Math.round,Xe=Math.floor,oe=e=>({x:e,y:e}
vendor: 14,423 bytes, line 45
45),ls={left:"right",right:"left",bottom:"top",top:"bottom"},us={start:"end",end:"start"};function _t(e,t,n){return G(e,fe(t,n))}function ce(e,t){return typeof e=="function"?e(t):e}function ae(e){return e.split("-")[0]}function _e(e){return e.split("-")[1]}function Gt(e){return e==="x"?"y":"x"}function qt(e){return e==="y"?"height":"width"}const fs=new Set(["top","bottom"]);function re(e){return fs.has(ae(e))?"y":"x"}function Zt(e){return Gt(re(e))}function ds(e,t,n){n===void 0&&(n=!1);const r=_e(e),o=Zt(e),i=qt(o);let c=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(c=tt(c)),[c,tt(c)]}function ps(e){const t=tt(e);return[Mt(e),t,Mt(t)]}function Mt(e){return e.replace(/start|end/g,t=>us[t])}const Cn=["left","right"],bn=["right","left"],ms=["top","bottom"],hs=["bottom","top"];function gs(e,t,n){switch(e){case"top":case"bottom":return n?t?bn:Cn:t?Cn:bn;case"left":case"right":return t?ms:hs;default:return[]}}function vs(e,t,n,r){const o=_e(e);let i=gs(ae(e),n==="start",r);return o&&(i=i.map(c=>c+"-"+o),t&&(i=i.concat(i.map(Mt)))),i}function tt(e){return e.replace(/left|right|bottom|top/g,t=>ls[t])}function ys(e){return{top:0,right:0,bottom:0,left:0,...e}}function lr(e){return typeof e!="number"?ys(e):{top:e,right:e,bottom:e,left:e}}function nt(e){const{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 En(e,t,n){let{reference:r,floating:o}=e;const i=re(t),c=Zt(t),s=qt(c),l=ae(t),u=i==="y",d=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,g=r[s]/2-o[s]/2;let m;switch(l){case"top":m={x:d,y:r.y-o.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:p};break;case"left":m={x:r.x-o.width,y:p};break;default:m={x:r.x,y:r.y}}switch(_e(t)){case"start":m[c]-=g*(n&&u?-1:1);break;case"end":m[c]+=g*(n&&u?-1:1);break}return m}const ws=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:c}=n,s=i.filter(Boolean),l=await(c.isRTL==null?void 0:c.isRTL(t));let u=await c.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=En(u,r,l),g=r,m={},y=0;for(let f=0;f<s.length;f++){const{name:h,fn:w}=s[f],{x:v,y:S,data:C,reset:b}=await w({x:d,y:p,initialPlacement:r,placement:g,strategy:o,middlewareData:m,rects:u,platform:c,elements:{reference:e,floating:t}});d=v??d,p=S??p,m={...m,[h]:{...m[h],...C}},b&&y<=50&&(y++,typeof b=="object"&&(b.placement&&(g=b.placement),b.rects&&(u=b.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:d,y:p}=En(u,g,l)),f=-1)}return{x:d,y:p,placement:g,strategy:o,middlewareData:m}};async function $e(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:c,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:g=!1,padding:m=0}=ce(t,e),y=lr(m),h=s[g?p==="floating"?"reference":"floating":p],w=nt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(h)))==null||n?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:l})),v=p==="floating"?{x:r,y:o,width:c.floating.width,height:c.floating.height}:c.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),C=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},b=nt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:S,strategy:l}):v);return{top:(w.top-b.top+y.top)/C.y,bottom:(b.bottom-w.bottom+y.bottom)/C.y,left:(w.left-b.left+y.left)/C.x,right:(b.right-w.right+y.right)/C.x}}const xs=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:c,elements:s,middlewareData:l}=t,{element:u,padding:d=0}=ce(e,t)||{};if(u==null)return{};const p=lr(d),g={x:n,y:r},m=Zt(o),y=qt(m),f=await c.getDimensions(u),h=m==="y",w=h?"top":"left",v=h?"bottom":"right",S=h?"clientHeight":"clientWidth",C=i.reference[y]+i.reference[m]-g[m]-i.floating[y],b=g[m]-i.reference[m],R=await(c.getOffsetParent==null?void 0:c.getOffsetParent(u));let E=R?R[S]:0;(!E||!await(c.isElement==null?void 0:c.isElement(R)))&&(E=s.floating[S]||i.floating[y]);const O=C/2-b/2,D=E/2-f[y]/2-1,N=fe(p[w],D),_=fe(p[v],D),L=N,k=E-f[y]-_,I=E/2-f[y]/2+O,V=_t(L,I,k),T=!l.arrow&&_e(o)!=null&&I!==V&&i.reference[y]/2-(I<L?N:_)-f[y]/2<0,M=T?I<L?I-L:I-k:0;return{[m]:g[m]+M,data:{[m]:V,centerOffset:I-V-M,...T&&{alignmentOffset:M}},reset:T}}}),Ss=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:c,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:f=!0,...h}=ce(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=ae(o),v=re(s),S=ae(s)===s,C=await(l.isRTL==null?void 0:l.isRTL(u.floating)),b=g||(S||!f?[tt(s)]:ps(s)),R=y!=="none";!g&&R&&b.push(...vs(s,f,y,C));const E=[s,...b],O=await $e(t,h),D=[];let N=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&D.push(O[w]),p){const I=ds(o,c,C);D.push(O[I[0]],O[I[1]])}if(N=[...N,{placement:o,overflows:D}],!D.every(I=>I<=0)){var _,L;const I=(((_=i.flip)==null?void 0:_.index)||0)+1,V=E[I];if(V&&(!(p==="alignment"?v!==re(V):!1)||N.every(A=>re(A.placement)===v?A.overflows[0]>0:!0)))return{data:{index:I,overflows:N},reset:{placement:V}};let T=(L=N.filter(M=>M.overflows[0]<=0).sort((M,A)=>M.overflows[1]-A.overflows[1])[0])==null?void 0:L.placement;if(!T)switch(m){case"bestFit":{var k;const M=(k=N.filter(A=>{if(R){const F=re(A.placement);return F===v||F==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(F=>F>0).reduce((F,X)=>F+X,0)]).sort((A,F)=>A[1]-F[1])[0])==null?void 0:k[0];M&&(T=M);break}case"initialPlacement":T=s;break}if(o!==T)return{reset:{placement:T}}}return{}}}};function Rn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pn(e){return as.some(t=>e[t]>=0)}const Cs=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ce(e,t);switch(r){case"referenceHidden":{const i=await $e(t,{...o,elementContext:"reference"}),c=Rn(i,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Pn(c)}}}case"escaped":{const i=await $e(t,{...o,altBoundary:!0}),c=Rn(i,n.floating);return{data:{escapedOffsets:c,escaped:Pn(c)}}}default:return{}}}}},ur=new Set(["left","top"]);async function bs(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),c=ae(n),s=_e(n),l=re(n)==="y",u=ur.has(c)?-1:1,d=i&&l?-1:1,p=ce(t,e);let{mainAxis:g,crossAxis:m,alignmentAxis:y}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof y=="number"&&(m=s==="end"?y*-1:y),l?{x:m*d,y:g*u}:{x:g*u,y:m*d}}const Es=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:c,middlewareData:s}=t,l=await bs(t,e);return c===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:c}}}}},Rs=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:c=!1,limiter:s={fn:h=>{let{x:w,y:v}=h;return{x:w,y:v}}},...l}=ce(e,t),u={x:n,y:r},d=await $e(t,l),p=re(ae(o)),g=Gt(p);let m=u[g],y=u[p];if(i){const h=g==="y"?"top":"left",w=g==="y"?"bottom":"right",v=m+d[h],S=m-d[w];m=_t(v,m,S)}if(c){const h=p==="y"?"top":"left",w=p==="y"?"bottom":"right",v=y+d[h],S=y-d[w];y=_t(v,y,S)}const f=s.fn({...t,[g]:m,[p]:y});return{...f,data:{x:f.x-n,y:f.y-r,enabled:{[g]:i,[p]:c}}}}}},Ps=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:c}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=ce(e,t),d={x:n,y:r},p=re(o),g=Gt(p);let m=d[g],y=d[p];const f=ce(s,t),h=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(l){const S=g==="y"?"height":"width",C=i.reference[g]-i.floating[S]+h.mainAxis,b=i.reference[g]+i.reference[S]-h.mainAxis;m<C?m=C:m>b&&(m=b)}if(u){var w,v;const S=g==="y"?"width":"height",C=ur.has(ae(o)),b=i.reference[p]-i.floating[S]+(C&&((w=c.offset)==null?void 0:w[p])||0)+(C?0:h.crossAxis),R=i.reference[p]+i.reference[S]+(C?0:((v=c.offset)==null?void 0:v[p])||0)-(C?h.crossAxis:0);y<b?y=b:y>R&&(y=R)}return{[g]:m,[p]:y}}}},As=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:c,elements:s}=t,{apply:l=()=>{},...u}=ce(e,t),d=await $e(t,u),p=ae(o),g=_e(o),m=re(o)==="y",{width:y,height:f}=i.floating;let h,w;p==="top"||p==="bottom"?(h=p,w=g===(await(c.isRTL==null?void 0:c.isRTL(s.floating))?"start":"end")?"left":"right"):(w=p,h=g==="end"?"top":"bottom");const v=f-d.top-d.bottom,S=y-d.left-d.right,C=fe(f-d[h],v),b=fe(y-d[w],S),R=!t.middlewareData.shift;let E=C,O=b;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=v),R&&!g){const N=G(d.left,0),_=G(d.right,0),L=G(d.top,0),k=G(d.bottom,0);m?O=y-2*(N!==0||_!==0?N+_:G(d.left,d.right)):E=f-2*(L!==0||k!==0?L+k:G(d.top,d.bottom))}await l({...t,availableWidth:O,availableHeight:E});const D=await c.getDimensions(s.floating);return y!==D.width||f!==D.height?{reset:{rects:!0}}:{}}}};function ut(){return typeof window<"u"}function Me(e){return fr(e)?(e.nodeName||"").toLowerCase():"#document"}function q(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function se(e){var t;return(t=(fr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function fr(e){return ut()?e instanceof Node||e instanceof q(e).Node:!1}function Q(e){return ut()?e instanceof Element||e instanceof q(e).Element:!1}function ie(e){return ut()?e instanceof HTMLElement||e instanceof q(e).HTMLElement:!1}function An(e){return!ut()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof q(e).ShadowRoot}const Os=new Set(["inline","contents"]);function Ve(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Os.has(o)}const Ts=new Set(["table","td","th"]);function Ns(e){return Ts.has(Me(e))}const Is=[":popover-open",":modal"];function ft(e){return Is.some(t=>{try{return e.matches(t)}catch{return!1}})}const Ds=["transform","translate","scale","rotate","perspective"],_s=["transform","translate","scale","rotate","perspective","filter"],Ms=["paint","layout","strict","content"];function Jt(e){const t=Qt(),n=Q(e)?ee(e):e;return Ds.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||_s.some(r=>(n.willChange||"").includes(r))||Ms.some(r=>(n.contain||"").includes(r))}function Ls(e){let t=de(e);for(;ie(t)&&!Ie(t);){if(Jt(t))return t;if(ft(t))return null;t=de(t)}return null}function Qt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ks=new Set(["html","body","#document"]);function Ie(e){return ks.has(Me(e))}function ee(e){return q(e).getComputedStyle(e)}function dt(e){return Q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function de(e){if(Me(e)==="html")return e;const t=e.assignedSlot||e.parentNode||An(e)&&e.host||se(e);return An(t)?t.host:t}function dr(e){const t=de(e);return Ie(t)?e.ownerDocument?e.ownerDocument.body:e.body:ie(t)&&Ve(t)?t:dr(t)}function Be(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=dr(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),c=q(o);if(i){const s=Lt(c);return t.concat(c,c.visualViewport||[],Ve(o)?o:[],s&&n?Be(s):[])}return t.concat(o,Be(o,[],n))}function Lt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function pr(e){const t=ee(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ie(e),i=o?e.offsetWidth:n,c=o?e.offsetHeight:r,s=et(n)!==i||et(r)!==c;return s&&(n=i,r=c),{width:n,height:r,$:s}}function en(e){return Q(e)?e:e.contextElement}function Ne(e){const t=en(e);if(!ie(t))return oe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=pr(t);let c=(i?et(n.width):n.width)/r,s=(i?et(n.height):n.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!s||!Number.isFinite(s))&&(s=1),{x:c,y:s}}const js=oe(0);function mr(e){const t=q(e);return!Qt()||!t.visualViewport?js:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Fs(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==q(e)?!1:t}function Se(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=en(e);let c=oe(1);t&&(r?Q(r)&&(c=Ne(r)):c=Ne(e));const s=Fs(i,n,r)?mr(i):oe(0);let l=(o.left+s.x)/c.x,u=(o.top+s.y)/c.y,d=o.width/c.x,p=o.height/c.y;if(i){const g=q(i),m=r&&Q(r)?q(r):r;let y=g,f=Lt(y);for(;f&&r&&m!==y;){const h=Ne(f),w=f.getBoundingClientRect(),v=ee(f),S=w.left+(f.clientLeft+parseFloat(v.paddingLeft))*h.x,C=w.top+(f.clientTop+parseFloat(v.paddingTop))*h.y;l*=h.x,u*=h.y,d*=h.x,p*=h.y,l+=S,u+=C,y=q(f),f=Lt(y)}}return nt({width:d,height:p,x:l,y:u})}function pt(e,t){const n=dt(e).scrollLeft;return t?t.left+n:Se(se(e)).left+n}function hr(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-pt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Ws(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",c=se(r),s=t?ft(t.floating):!1;if(r===c||s&&i)return n;let l={scrollLeft:0,scrollTop:0},u=oe(1);const d=oe(0),p=ie(r);if((p||!p&&!i)&&((Me(r)!=="body"||Ve(c))&&(l=dt(r)),ie(r))){const m=Se(r);u=Ne(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const g=c&&!p&&!i?hr(c,l):oe(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+g.x,y:n.y*u.y-l.scrollTop*u.y+d.y+g.y}}function $s(e){return Array.from(e.getClientRects())}function Bs(e){const t=se(e),n=dt(e),r=e.ownerDocument.body,o=G(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=G(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let c=-n.scrollLeft+pt(e);const s=-n.scrollTop;return ee(r).direction==="rtl"&&(c+=G(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:c,y:s}}const On=25;
vendor: 10,147 bytes, line 45
45function Vs(e,t){const n=q(e),r=se(e),o=n.visualViewport;let i=r.clientWidth,c=r.clientHeight,s=0,l=0;if(o){i=o.width,c=o.height;const d=Qt();(!d||d&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}const u=pt(r);if(u<=0){const d=r.ownerDocument,p=d.body,g=getComputedStyle(p),m=d.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,y=Math.abs(r.clientWidth-p.clientWidth-m);y<=On&&(i-=y)}else u<=On&&(i+=u);return{width:i,height:c,x:s,y:l}}const Hs=new Set(["absolute","fixed"]);function Us(e,t){const n=Se(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ie(e)?Ne(e):oe(1),c=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,u=r*i.y;return{width:c,height:s,x:l,y:u}}function Tn(e,t,n){let r;if(t==="viewport")r=Vs(e,n);else if(t==="document")r=Bs(se(e));else if(Q(t))r=Us(t,n);else{const o=mr(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return nt(r)}function gr(e,t){const n=de(e);return n===t||!Q(n)||Ie(n)?!1:ee(n).position==="fixed"||gr(n,t)}function zs(e,t){const n=t.get(e);if(n)return n;let r=Be(e,[],!1).filter(s=>Q(s)&&Me(s)!=="body"),o=null;const i=ee(e).position==="fixed";let c=i?de(e):e;for(;Q(c)&&!Ie(c);){const s=ee(c),l=Jt(c);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&Hs.has(o.position)||Ve(c)&&!l&&gr(e,c))?r=r.filter(d=>d!==c):o=s,c=de(c)}return t.set(e,r),r}function Ys(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const c=[...n==="clippingAncestors"?ft(t)?[]:zs(t,this._c):[].concat(n),r],s=c[0],l=c.reduce((u,d)=>{const p=Tn(t,d,o);return u.top=G(p.top,u.top),u.right=fe(p.right,u.right),u.bottom=fe(p.bottom,u.bottom),u.left=G(p.left,u.left),u},Tn(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Ks(e){const{width:t,height:n}=pr(e);return{width:t,height:n}}function Xs(e,t,n){const r=ie(t),o=se(t),i=n==="fixed",c=Se(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=oe(0);function u(){l.x=pt(o)}if(r||!r&&!i)if((Me(t)!=="body"||Ve(o))&&(s=dt(t)),r){const m=Se(t,!0,i,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else o&&u();i&&!r&&o&&u();const d=o&&!r&&!i?hr(o,s):oe(0),p=c.left+s.scrollLeft-l.x-d.x,g=c.top+s.scrollTop-l.y-d.y;return{x:p,y:g,width:c.width,height:c.height}}function Ot(e){return ee(e).position==="static"}function Nn(e,t){if(!ie(e)||ee(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return se(e)===n&&(n=n.ownerDocument.body),n}function vr(e,t){const n=q(e);if(ft(e))return n;if(!ie(e)){let o=de(e);for(;o&&!Ie(o);){if(Q(o)&&!Ot(o))return o;o=de(o)}return n}let r=Nn(e,t);for(;r&&Ns(r)&&Ot(r);)r=Nn(r,t);return r&&Ie(r)&&Ot(r)&&!Jt(r)?n:r||Ls(e)||n}const Gs=async function(e){const t=this.getOffsetParent||vr,n=this.getDimensions,r=await n(e.floating);return{reference:Xs(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function qs(e){return ee(e).direction==="rtl"}const Zs={convertOffsetParentRelativeRectToViewportRelativeRect:Ws,getDocumentElement:se,getClippingRect:Ys,getOffsetParent:vr,getElementRects:Gs,getClientRects:$s,getDimensions:Ks,getScale:Ne,isElement:Q,isRTL:qs};function yr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Js(e,t){let n=null,r;const o=se(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function c(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:d,top:p,width:g,height:m}=u;if(s||t(),!g||!m)return;const y=Xe(p),f=Xe(o.clientWidth-(d+g)),h=Xe(o.clientHeight-(p+m)),w=Xe(d),S={rootMargin:-y+"px "+-f+"px "+-h+"px "+-w+"px",threshold:G(0,fe(1,l))||1};let C=!0;function b(R){const E=R[0].intersectionRatio;if(E!==l){if(!C)return c();E?c(!1,E):r=setTimeout(()=>{c(!1,1e-7)},1e3)}E===1&&!yr(u,e.getBoundingClientRect())&&c(),C=!1}try{n=new IntersectionObserver(b,{...S,root:o.ownerDocument})}catch{n=new IntersectionObserver(b,S)}n.observe(e)}return c(!0),i}function Qs(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=en(e),d=o||i?[...u?Be(u):[],...Be(t)]:[];d.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const p=u&&s?Js(u,n):null;let g=-1,m=null;c&&(m=new ResizeObserver(w=>{let[v]=w;v&&v.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var S;(S=m)==null||S.observe(t)})),n()}),u&&!l&&m.observe(u),m.observe(t));let y,f=l?Se(e):null;l&&h();function h(){const w=Se(e);f&&!yr(f,w)&&n(),f=w,y=requestAnimationFrame(h)}return n(),()=>{var w;d.forEach(v=>{o&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),p?.(),(w=m)==null||w.disconnect(),m=null,l&&cancelAnimationFrame(y)}}const ec=Es,tc=Rs,nc=Ss,rc=As,oc=Cs,In=xs,ic=Ps,sc=(e,t,n)=>{const r=new Map,o={platform:Zs,...n},i={...o.platform,_c:r};return ws(e,t,{...o,platform:i})};var cc=typeof document<"u",ac=function(){},Ze=cc?a.useLayoutEffect:ac;function rt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!rt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!rt(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function wr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Dn(e,t){const n=wr(e);return Math.round(t*n)/n}function Tt(e){const t=a.useRef(e);return Ze(()=>{t.current=e}),t}function lc(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:c}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[d,p]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,m]=a.useState(r);rt(g,r)||m(r);const[y,f]=a.useState(null),[h,w]=a.useState(null),v=a.useCallback(A=>{A!==R.current&&(R.current=A,f(A))},[]),S=a.useCallback(A=>{A!==E.current&&(E.current=A,w(A))},[]),C=i||y,b=c||h,R=a.useRef(null),E=a.useRef(null),O=a.useRef(d),D=l!=null,N=Tt(l),_=Tt(o),L=Tt(u),k=a.useCallback(()=>{if(!R.current||!E.current)return;const A={placement:t,strategy:n,middleware:g};_.current&&(A.platform=_.current),sc(R.current,E.current,A).then(F=>{const X={...F,isPositioned:L.current!==!1};I.current&&!rt(O.current,X)&&(O.current=X,it.flushSync(()=>{p(X)}))})},[g,t,n,_,L]);Ze(()=>{u===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,p(A=>({...A,isPositioned:!1})))},[u]);const I=a.useRef(!1);Ze(()=>(I.current=!0,()=>{I.current=!1}),[]),Ze(()=>{if(C&&(R.current=C),b&&(E.current=b),C&&b){if(N.current)return N.current(C,b,k);k()}},[C,b,k,N,D]);const V=a.useMemo(()=>({reference:R,floating:E,setReference:v,setFloating:S}),[v,S]),T=a.useMemo(()=>({reference:C,floating:b}),[C,b]),M=a.useMemo(()=>{const A={position:n,left:0,top:0};if(!T.floating)return A;const F=Dn(T.floating,d.x),X=Dn(T.floating,d.y);return s?{...A,transform:"translate("+F+"px, "+X+"px)",...wr(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:X}},[n,s,T.floating,d.x,d.y]);return a.useMemo(()=>({...d,update:k,refs:V,elements:T,floatingStyles:M}),[d,k,V,T,M])}const uc=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?In({element:r.current,padding:o}).fn(n):{}:r?In({element:r,padding:o}).fn(n):{}}}},fc=(e,t)=>({...ec(e),options:[e,t]}),dc=(e,t)=>({...tc(e),options:[e,t]}),pc=(e,t)=>({...ic(e),options:[e,t]}),mc=(e,t)=>({...nc(e),options:[e,t]}),hc=(e,t)=>({...rc(e),options:[e,t]}),gc=(e,t)=>({...oc(e),options:[e,t]}),vc=(e,t)=>({...uc(e),options:[e,t]});var yc="Arrow",xr=a.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return x.jsx(j.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:x.jsx("polygon",{points:"0,0 30,0 15,10"})})});xr.displayName=yc;var wc=xr;function xc(e){const[t,n]=a.useState(void 0);return Y(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let c,s;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;c=u.inlineSize,s=u.blockSize}else c=e.offsetWidth,s=e.offsetHeight;n({width:c,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var tn="Popper",[Sr,Cr]=st(tn),[Sc,br]=Sr(tn),Er=e=>{const{__scopePopper:t,children:n}=e,[r,o]=a.useState(null);return x.jsx(Sc,{scope:t,anchor:r,onAnchorChange:o,children:n})};Er.displayName=tn;var Rr="PopperAnchor",Pr=a.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=br(Rr,n),c=a.useRef(null),s=U(t,c),l=a.useRef(null);return a.useEffect(()=>{const u=l.current;l.current=r?.current||c.current,u!==l.current&&i.onAnchorChange(l.current)}),r?null:x.jsx(j.div,{...o,ref:s})});Pr.displayName=Rr;var nn="PopperContent",[Cc,bc]=Sr(nn),Ar=a.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:c=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:m="optimized",onPlaced:y,...f}=e,h=br(nn,n),[w,v]=a.useState(null),S=U(t,P=>v(P)),[C,b]=a.useState(null),R=xc(C),E=R?.width??0,O=R?.height??0,D=r+(i!=="center"?"-"+i:""),N=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},_=Array.isArray(u)?u:[u],L=_.length>0,k={padding:N,boundary:_.filter(Rc),altBoundary:L},{refs:I,floatingStyles:V,placement:T,isPositioned:M,middlewareData:A}=lc({strategy:"fixed",placement:D,whileElementsMounted:(...P)=>Qs(...P,{animationFrame:m==="always"}),elements:{reference:h.anchor},middleware:[fc({mainAxis:o+O,alignmentAxis:c}),l&&dc({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?pc():void 0,...k}),l&&mc({...k}
vendor: 8,347 bytes, line 45
45),hc({...k,apply:({elements:P,rects:H,availableWidth:K,availableHeight:W})=>{const{width:B,height:z}=H.reference,Z=P.floating.style;Z.setProperty("--radix-popper-available-width",`${K}px`),Z.setProperty("--radix-popper-available-height",`${W}px`),Z.setProperty("--radix-popper-anchor-width",`${B}px`),Z.setProperty("--radix-popper-anchor-height",`${z}px`)}}),C&&vc({element:C,padding:s}),Pc({arrowWidth:E,arrowHeight:O}),g&&gc({strategy:"referenceHidden",...k})]}),[F,X]=Nr(T),he=we(y);Y(()=>{M&&he?.()},[M,he]);const ke=A.arrow?.x,je=A.arrow?.y,le=A.arrow?.centerOffset!==0,[Ee,ge]=a.useState();return Y(()=>{w&&ge(window.getComputedStyle(w).zIndex)},[w]),x.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:M?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ee,"--radix-popper-transform-origin":[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:x.jsx(Cc,{scope:n,placedSide:F,onArrowChange:b,arrowX:ke,arrowY:je,shouldHideArrow:le,children:x.jsx(j.div,{"data-side":F,"data-align":X,...f,ref:S,style:{...f.style,animation:M?void 0:"none"}})})})});Ar.displayName=nn;var Or="PopperArrow",Ec={top:"bottom",right:"left",bottom:"top",left:"right"},Tr=a.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=bc(Or,r),c=Ec[i.placedSide];return x.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[c]: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:x.jsx(wc,{...o,ref:n,style:{...o.style,display:"block"}})})});Tr.displayName=Or;function Rc(e){return e!==null}var Pc=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,c=o.arrow?.centerOffset!==0,s=c?0:e.arrowWidth,l=c?0:e.arrowHeight,[u,d]=Nr(n),p={start:"0%",center:"50%",end:"100%"}[d],g=(o.arrow?.x??0)+s/2,m=(o.arrow?.y??0)+l/2;let y="",f="";return u==="bottom"?(y=c?p:`${g}px`,f=`${-l}px`):u==="top"?(y=c?p:`${g}px`,f=`${r.floating.height+l}px`):u==="right"?(y=`${-l}px`,f=c?p:`${m}px`):u==="left"&&(y=`${r.floating.width+l}px`,f=c?p:`${m}px`),{data:{x:y,y:f}}}});function Nr(e){const[t,n="center"]=e.split("-");return[t,n]}var Ac=Er,Oc=Pr,Tc=Ar,Nc=Tr;function Ic(e){const t=Dc(e),n=a.forwardRef((r,o)=>{const{children:i,...c}=r,s=a.Children.toArray(i),l=s.find(Mc);if(l){const u=l.props.children,d=s.map(p=>p===l?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:p);return x.jsx(t,{...c,ref:o,children:a.isValidElement(u)?a.cloneElement(u,void 0,d):null})}return x.jsx(t,{...c,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Dc(e){const t=a.forwardRef((n,r)=>{const{children:o,...i}=n;if(a.isValidElement(o)){const c=kc(o),s=Lc(i,o.props);return o.type!==a.Fragment&&(s.ref=r?De(r,c):c),a.cloneElement(o,s)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var _c=Symbol("radix.slottable");function Mc(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===_c}function Lc(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function kc(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)}function jc(e){const t=a.useRef({value:e,previous:e});return a.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Ir=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Fc="VisuallyHidden",Wc=a.forwardRef((e,t)=>x.jsx(j.span,{...e,ref:t,style:{...Ir,...e.style}}));Wc.displayName=Fc;var $c=[" ","Enter","ArrowUp","ArrowDown"],Bc=[" ","Enter"],Ce="Select",[mt,ht,Vc]=is(Ce),[Le]=st(Ce,[Vc,Cr]),gt=Cr(),[Hc,pe]=Le(Ce),[Uc,zc]=Le(Ce),Dr=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:c,defaultValue:s,onValueChange:l,dir:u,name:d,autoComplete:p,disabled:g,required:m,form:y}=e,f=gt(t),[h,w]=a.useState(null),[v,S]=a.useState(null),[C,b]=a.useState(!1),R=cs(u),[E,O]=Nt({prop:r,defaultProp:o??!1,onChange:i,caller:Ce}),[D,N]=Nt({prop:c,defaultProp:s,onChange:l,caller:Ce}),_=a.useRef(null),L=h?y||!!h.closest("form"):!0,[k,I]=a.useState(new Set),V=Array.from(k).map(T=>T.props.value).join(";");return x.jsx(Ac,{...f,children:x.jsxs(Hc,{required:m,scope:t,trigger:h,onTriggerChange:w,valueNode:v,onValueNodeChange:S,valueNodeHasChildren:C,onValueNodeHasChildrenChange:b,contentId:Oe(),value:D,onValueChange:N,open:E,onOpenChange:O,dir:R,triggerPointerDownPosRef:_,disabled:g,children:[x.jsx(mt.Provider,{scope:t,children:x.jsx(Uc,{scope:e.__scopeSelect,onNativeOptionAdd:a.useCallback(T=>{I(M=>new Set(M).add(T))},[]),onNativeOptionRemove:a.useCallback(T=>{I(M=>{const A=new Set(M);return A.delete(T),A})},[]),children:n})}),L?x.jsxs(eo,{"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:p,value:D,onChange:T=>N(T.target.value),disabled:g,form:y,children:[D===void 0?x.jsx("option",{value:""}):null,Array.from(k)]},V):null]})})};Dr.displayName=Ce;var _r="SelectTrigger",Mr=a.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=gt(n),c=pe(_r,n),s=c.disabled||r,l=U(t,c.onTriggerChange),u=ht(n),d=a.useRef("touch"),[p,g,m]=no(f=>{const h=u().filter(S=>!S.disabled),w=h.find(S=>S.value===c.value),v=ro(h,f,w);v!==void 0&&c.onValueChange(v.value)}),y=f=>{s||(c.onOpenChange(!0),m()),f&&(c.triggerPointerDownPosRef.current={x:Math.round(f.pageX),y:Math.round(f.pageY)})};return x.jsx(Oc,{asChild:!0,...i,children:x.jsx(j.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":to(c.value)?"":void 0,...o,ref:l,onClick:$(o.onClick,f=>{f.currentTarget.focus(),d.current!=="mouse"&&y(f)}),onPointerDown:$(o.onPointerDown,f=>{d.current=f.pointerType;const h=f.target;h.hasPointerCapture(f.pointerId)&&h.releasePointerCapture(f.pointerId),f.button===0&&f.ctrlKey===!1&&f.pointerType==="mouse"&&(y(f),f.preventDefault())}),onKeyDown:$(o.onKeyDown,f=>{const h=p.current!=="";!(f.ctrlKey||f.altKey||f.metaKey)&&f.key.length===1&&g(f.key),!(h&&f.key===" ")&&$c.includes(f.key)&&(y(),f.preventDefault())})})})});Mr.displayName=_r;var Lr="SelectValue",kr=a.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:c="",...s}=e,l=pe(Lr,n),{onValueNodeHasChildrenChange:u}=l,d=i!==void 0,p=U(t,l.onValueNodeChange);return Y(()=>{u(d)},[u,d]),x.jsx(j.span,{...s,ref:p,style:{pointerEvents:"none"},children:to(l.value)?x.jsx(x.Fragment,{children:c}):i})});kr.displayName=Lr;var Yc="SelectIcon",jr=a.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return x.jsx(j.span,{"aria-hidden":!0,...o,ref:t,children:r||"â¼"})});jr.displayName=Yc;var Kc="SelectPortal",Fr=e=>x.jsx(Ut,{asChild:!0,...e});Fr.displayName=Kc;var be="SelectContent",Wr=a.forwardRef((e,t)=>{const n=pe(be,e.__scopeSelect),[r,o]=a.useState();if(Y(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?it.createPortal(x.jsx($r,{scope:e.__scopeSelect,children:x.jsx(mt.Slot,{scope:e.__scopeSelect,children:x.jsx("div",{children:e.children})})}),i):null}return x.jsx(Br,{...e,ref:t})});Wr.displayName=be;var J=10,[$r,me]=Le(be),Xc="SelectContentImpl",Gc=Ic("SelectContent.RemoveScroll"),Br=a.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:c,side:s,sideOffset:l,align:u,alignOffset:d,arrowPadding:p,collisionBoundary:g,collisionPadding:m,sticky:y,hideWhenDetached:f,avoidCollisions:h,...w}
vendor: 13,725 bytes, lines 45-46
45=e,v=pe(be,n),[S,C]=a.useState(null),[b,R]=a.useState(null),E=U(t,P=>C(P)),[O,D]=a.useState(null),[N,_]=a.useState(null),L=ht(n),[k,I]=a.useState(!1),V=a.useRef(!1);a.useEffect(()=>{if(S)return zn(S)},[S]),kn();const T=a.useCallback(P=>{const[H,...K]=L().map(z=>z.ref.current),[W]=K.slice(-1),B=document.activeElement;for(const z of P)if(z===B||(z?.scrollIntoView({block:"nearest"}),z===H&&b&&(b.scrollTop=0),z===W&&b&&(b.scrollTop=b.scrollHeight),z?.focus(),document.activeElement!==B))return},[L,b]),M=a.useCallback(()=>T([O,S]),[T,O,S]);a.useEffect(()=>{k&&M()},[k,M]);const{onOpenChange:A,triggerPointerDownPosRef:F}=v;a.useEffect(()=>{if(S){let P={x:0,y:0};const H=W=>{P={x:Math.abs(Math.round(W.pageX)-(F.current?.x??0)),y:Math.abs(Math.round(W.pageY)-(F.current?.y??0))}},K=W=>{P.x<=10&&P.y<=10?W.preventDefault():S.contains(W.target)||A(!1),document.removeEventListener("pointermove",H),F.current=null};return F.current!==null&&(document.addEventListener("pointermove",H),document.addEventListener("pointerup",K,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",H),document.removeEventListener("pointerup",K,{capture:!0})}}},[S,A,F]),a.useEffect(()=>{const P=()=>A(!1);return window.addEventListener("blur",P),window.addEventListener("resize",P),()=>{window.removeEventListener("blur",P),window.removeEventListener("resize",P)}},[A]);const[X,he]=no(P=>{const H=L().filter(B=>!B.disabled),K=H.find(B=>B.ref.current===document.activeElement),W=ro(H,P,K);W&&setTimeout(()=>W.ref.current.focus())}),ke=a.useCallback((P,H,K)=>{const W=!V.current&&!K;(v.value!==void 0&&v.value===H||W)&&(D(P),W&&(V.current=!0))},[v.value]),je=a.useCallback(()=>S?.focus(),[S]),le=a.useCallback((P,H,K)=>{const W=!V.current&&!K;(v.value!==void 0&&v.value===H||W)&&_(P)},[v.value]),Ee=r==="popper"?kt:Vr,ge=Ee===kt?{side:s,sideOffset:l,align:u,alignOffset:d,arrowPadding:p,collisionBoundary:g,collisionPadding:m,sticky:y,hideWhenDetached:f,avoidCollisions:h}:{};return x.jsx($r,{scope:n,content:S,viewport:b,onViewportChange:R,itemRefCallback:ke,selectedItem:O,onItemLeave:je,itemTextRefCallback:le,focusSelectedItem:M,selectedItemText:N,position:r,isPositioned:k,searchRef:X,children:x.jsx(zt,{as:Gc,allowPinchZoom:!0,children:x.jsx(Ht,{asChild:!0,trapped:v.open,onMountAutoFocus:P=>{P.preventDefault()},onUnmountAutoFocus:$(o,P=>{v.trigger?.focus({preventScroll:!0}),P.preventDefault()}),children:x.jsx(Vt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:P=>P.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:x.jsx(Ee,{role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:P=>P.preventDefault(),...w,...ge,onPlaced:()=>I(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:$(w.onKeyDown,P=>{const H=P.ctrlKey||P.altKey||P.metaKey;if(P.key==="Tab"&&P.preventDefault(),!H&&P.key.length===1&&he(P.key),["ArrowUp","ArrowDown","Home","End"].includes(P.key)){let W=L().filter(B=>!B.disabled).map(B=>B.ref.current);if(["ArrowUp","End"].includes(P.key)&&(W=W.slice().reverse()),["ArrowUp","ArrowDown"].includes(P.key)){const B=P.target,z=W.indexOf(B);W=W.slice(z+1)}setTimeout(()=>T(W)),P.preventDefault()}})})})})})})});Br.displayName=Xc;var qc="SelectItemAlignedPosition",Vr=a.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=pe(be,n),c=me(be,n),[s,l]=a.useState(null),[u,d]=a.useState(null),p=U(t,E=>d(E)),g=ht(n),m=a.useRef(!1),y=a.useRef(!0),{viewport:f,selectedItem:h,selectedItemText:w,focusSelectedItem:v}=c,S=a.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&u&&f&&h&&w){const E=i.trigger.getBoundingClientRect(),O=u.getBoundingClientRect(),D=i.valueNode.getBoundingClientRect(),N=w.getBoundingClientRect();if(i.dir!=="rtl"){const B=N.left-O.left,z=D.left-B,Z=E.left-z,ve=E.width+Z,vt=Math.max(ve,O.width),yt=window.innerWidth-J,wt=xn(z,[J,Math.max(J,yt-vt)]);s.style.minWidth=ve+"px",s.style.left=wt+"px"}else{const B=O.right-N.right,z=window.innerWidth-D.right-B,Z=window.innerWidth-E.right-z,ve=E.width+Z,vt=Math.max(ve,O.width),yt=window.innerWidth-J,wt=xn(z,[J,Math.max(J,yt-vt)]);s.style.minWidth=ve+"px",s.style.right=wt+"px"}const _=g(),L=window.innerHeight-J*2,k=f.scrollHeight,I=window.getComputedStyle(u),V=parseInt(I.borderTopWidth,10),T=parseInt(I.paddingTop,10),M=parseInt(I.borderBottomWidth,10),A=parseInt(I.paddingBottom,10),F=V+T+k+A+M,X=Math.min(h.offsetHeight*5,F),he=window.getComputedStyle(f),ke=parseInt(he.paddingTop,10),je=parseInt(he.paddingBottom,10),le=E.top+E.height/2-J,Ee=L-le,ge=h.offsetHeight/2,P=h.offsetTop+ge,H=V+T+P,K=F-H;if(H<=le){const B=_.length>0&&h===_[_.length-1].ref.current;s.style.bottom="0px";const z=u.clientHeight-f.offsetTop-f.offsetHeight,Z=Math.max(Ee,ge+(B?je:0)+z+M),ve=H+Z;s.style.height=ve+"px"}else{const B=_.length>0&&h===_[0].ref.current;s.style.top="0px";const Z=Math.max(le,V+f.offsetTop+(B?ke:0)+ge)+K;s.style.height=Z+"px",f.scrollTop=H-le+f.offsetTop}s.style.margin=`${J}px 0`,s.style.minHeight=X+"px",s.style.maxHeight=L+"px",r?.(),requestAnimationFrame(()=>m.current=!0)}},[g,i.trigger,i.valueNode,s,u,f,h,w,i.dir,r]);Y(()=>S(),[S]);const[C,b]=a.useState();Y(()=>{u&&b(window.getComputedStyle(u).zIndex)},[u]);const R=a.useCallback(E=>{E&&y.current===!0&&(S(),v?.(),y.current=!1)},[S,v]);return x.jsx(Jc,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:m,onScrollButtonChange:R,children:x.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:x.jsx(j.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Vr.displayName=qc;var Zc="SelectPopperPosition",kt=a.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=J,...i}=e,c=gt(n);return x.jsx(Tc,{...c,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});kt.displayName=Zc;var[Jc,rn]=Le(be,{}),jt="SelectViewport",Hr=a.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=me(jt,n),c=rn(jt,n),s=U(t,i.onViewportChange),l=a.useRef(0);return x.jsxs(x.Fragment,{children:[x.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),x.jsx(mt.Slot,{scope:n,children:x.jsx(j.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:$(o.onScroll,u=>{const d=u.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:g}=c;if(g?.current&&p){const m=Math.abs(l.current-d.scrollTop);if(m>0){const y=window.innerHeight-J*2,f=parseFloat(p.style.minHeight),h=parseFloat(p.style.height),w=Math.max(f,h);if(w<y){const v=w+m,S=Math.min(y,v),C=v-S;p.style.height=S+"px",p.style.bottom==="0px"&&(d.scrollTop=C>0?C:0,p.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});Hr.displayName=jt;var Ur="SelectGroup",[Qc,ea]=Le(Ur),ta=a.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Oe();return x.jsx(Qc,{scope:n,id:o,children:x.jsx(j.div,{role:"group","aria-labelledby":o,...r,ref:t})})});ta.displayName=Ur;var zr="SelectLabel",na=a.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ea(zr,n);return x.jsx(j.div,{id:o.id,...r,ref:t})});na.displayName=zr;var ot="SelectItem",[ra,Yr]=Le(ot),Kr=a.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...c}=e,s=pe(ot,n),l=me(ot,n),u=s.value===r,[d,p]=a.useState(i??""),[g,m]=a.useState(!1),y=U(t,v=>l.itemRefCallback?.(v,r,o)),f=Oe(),h=a.useRef("touch"),w=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return x.jsx(ra,{scope:n,value:r,disabled:o,textId:f,isSelected:u,onItemTextChange:a.useCallback(v=>{p(S=>S||(v?.textContent??"").trim())},[]),children:x.jsx(mt.ItemSlot,{scope:n,value:r,disabled:o,textValue:d,children:x.jsx(j.div,{role:"option","aria-labelledby":f,"data-highlighted":g?"":void 0,"aria-selected":u&&g,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...c,ref:y,onFocus:$(c.onFocus,()=>m(!0)),onBlur:$(c.onBlur,()=>m(!1)),onClick:$(c.onClick,()=>{h.current!=="mouse"&&w()}),onPointerUp:$(c.onPointerUp,()=>{h.current==="mouse"&&w()}),onPointerDown:$(c.onPointerDown,v=>{h.current=v.pointerType}),onPointerMove:$(c.onPointerMove,v=>{h.current=v.pointerType,o?l.onItemLeave?.():h.current==="mouse"&&v.currentTarget.focus({preventScroll:!0})}),onPointerLeave:$(c.onPointerLeave,v=>{v.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:$(c.onKeyDown,v=>{l.searchRef?.current!==""&&v.key===" "||(Bc.includes(v.key)&&w(),v.key===" "&&v.preventDefault())})})})})});Kr.displayName=ot;var We="SelectItemText",Xr=a.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,c=pe(We,n),s=me(We,n),l=Yr(We,n),u=zc(We,n),[d,p]=a.useState(null),g=U(t,w=>p(w),l.onItemTextChange,w=>s.itemTextRefCallback?.(w,l.value,l.disabled)),m=d?.textContent,y=a.useMemo(()=>x.jsx("option",{value:l.value,disabled:l.disabled,children:m},l.value),[l.disabled,l.value,m]),{onNativeOptionAdd:f,onNativeOptionRemove:h}=u;return Y(()=>(f(y),()=>h(y)),[f,h,y]),x.jsxs(x.Fragment,{children:[x.jsx(j.span,{id:l.textId,...i,ref:g}),l.isSelected&&c.valueNode&&!c.valueNodeHasChildren?it.createPortal(i.children,c.valueNode):null]})});Xr.displayName=We;var Gr="SelectItemIndicator",qr=a.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Yr(Gr,n).isSelected?x.jsx(j.span,{"aria-hidden":!0,...r,ref:t}):null});qr.displayName=Gr;var Ft="SelectScrollUpButton",Zr=a.forwardRef((e,t)=>{const n=me(Ft,e.__scopeSelect),r=rn(Ft,e.__scopeSelect),[o,i]=a.useState(!1),c=U(t,r.onScrollButtonChange);return Y(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=l.scrollTop>0;i(u)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?x.jsx(Qr,{...e,ref:c,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});Zr.displayName=Ft;var Wt="SelectScrollDownButton",Jr=a.forwardRef((e,t)=>{const n=me(Wt,e.__scopeSelect),r=rn(Wt,e.__scopeSelect),[o,i]=a.useState(!1),c=U(t,r.onScrollButtonChange);return Y(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)<u;i(d)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?x.jsx(Qr,{...e,ref:c,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});Jr.displayName=Wt;var Qr=a.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=me("SelectScrollButton",n),c=a.useRef(null),s=ht(n),l=a.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return a.useEffect(()=>()=>l(),[l]),Y(()=>{s().find(d=>d.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[s]),x.jsx(j.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:$(o.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(r,50))}),onPointerMove:$(o.onPointerMove,()=>{i.onItemLeave?.(),c.current===null&&(c.current=window.setInterval(r,50))}),onPointerLeave:$(o.onPointerLeave,()=>{l()})})}),oa="SelectSeparator",ia=a.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return x.jsx(j.div,{"aria-hidden":!0,...r,ref:t})});ia.displayName=oa;var $t="SelectArrow",sa=a.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=gt(n),i=pe($t,n),c=me($t,n);return i.open&&c.position==="popper"?x.jsx(Nc,{...o,...r,ref:t}):null});sa.displayName=$t;var ca="SelectBubbleInput",eo=a.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=a.useRef(null),i=U(r,o),c=jc(t);return a.useEffect(()=>{const s=o.current;if(!s)return;const l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(c!==t&&d){const p=new Event("change",{bubbles:!0});d.call(s,t),s.dispatchEvent(p)}},[c,t]),x.jsx(j.select,{...n,style:{...Ir,...n.style},ref:i,defaultValue:t})});eo.displayName=ca;function to(e){return e===""||e===void 0}function no(e){const t=we(e),n=a.useRef(""),r=a.useRef(0),o=a.useCallback(c=>{const s=n.current+c;t(s),(function l(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))})(s)},[t]),i=a.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return a.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function ro(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let c=aa(e,Math.max(i,0));o.length===1&&(c=c.filter(u=>u!==n));const l=c.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function aa(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var wa=Dr,xa=Mr,Sa=kr,Ca=jr,ba=Fr,Ea=Wr,Ra=Hr,Pa=Kr,Aa=Xr,Oa=qr,Ta=Zr,Na=Jr;export{ha as C,Ca as I,ma as O,pa as P,fa as R,va as S,da as T,Sa as V,ga as a,ya as b,wa as c,xa as d,ba as e,Ea as f,Ra as g,Pa as h,Oa as i,x as j,Aa as k,Ta as l,Na as m}; 46//# sourceMappingURL=ui-DwAR3Ju1.js.map
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.