PageSourceSearch

https://traveltasteandtour.com/assets/radix-ui-BmPrpQLW.js

js traveltasteandtour.com collected 2026-10-06 11:00:35 UTC 99,171 bytes, 58 lines download raw bytes

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

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.