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