vendor: 5,234 bytes, lines 1-9
1import{r as Kr,g as Hn,a as zr}from"./vendor-DeEHxs77.js";function Yr(e,t){for(var n=0;n<t.length;n++){const o=t[n];if(typeof o!="string"&&!Array.isArray(o)){for(const r in o)if(r!=="default"&&!(r in e)){const i=Object.getOwnPropertyDescriptor(o,r);i&&Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:()=>o[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var xt={exports:{}},Te={};/** 2 * @license React 3 * react-jsx-runtime.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 wn;function Xr(){if(wn)return Te;wn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(o,r,i){var s=null;if(i!==void 0&&(s=""+i),r.key!==void 0&&(s=""+r.key),"key"in r){i={};for(var a in r)a!=="key"&&(i[a]=r[a])}else i=r;return r=i.ref,{$$typeof:e,type:o,key:s,ref:r!==void 0?r:null,props:i}}return Te.Fragment=t,Te.jsx=n,Te.jsxs=n,Te}var yn;function qr(){return yn||(yn=1,xt.exports=Xr()),xt.exports}var h=qr(),c=Kr();const $=Hn(c),Vn=Yr({__proto__:null,default:$},[c]);var $t=zr();const Zr=Hn($t);function xn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ct(...e){return t=>{let n=!1;const o=e.map(r=>{const i=xn(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<o.length;r++){const i=o[r];typeof i=="function"?i():xn(e[r],null)}}}}function B(...e){return c.useCallback(ct(...e),e)}function Se(e){const t=Jr(e),n=c.forwardRef((o,r)=>{const{children:i,...s}=o,a=c.Children.toArray(i),d=a.find(ei);if(d){const l=d.props.children,f=a.map(u=>u===d?c.Children.count(l)>1?c.Children.only(null):c.isValidElement(l)?l.props.children:null:u);return h.jsx(t,{...s,ref:r,children:c.isValidElement(l)?c.cloneElement(l,void 0,f):null})}return h.jsx(t,{...s,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}var kl=Se("Slot");function Jr(e){const t=c.forwardRef((n,o)=>{const{children:r,...i}=n;if(c.isValidElement(r)){const s=ni(r),a=ti(i,r.props);return r.type!==c.Fragment&&(a.ref=o?ct(o,s):s),c.cloneElement(r,a)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Qr=Symbol("radix.slottable");function ei(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qr}function ti(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...a)=>{const d=i(...a);return r(...a),d}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function ni(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function _(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function oi(e,t){const n=c.createContext(t),o=i=>{const{children:s,...a}=i,d=c.useMemo(()=>a,Object.values(a));return h.jsx(n.Provider,{value:d,children:s})};o.displayName=e+"Provider";function r(i){const s=c.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[o,r]}function pe(e,t=[]){let n=[];function o(i,s){const a=c.createContext(s),d=n.length;n=[...n,s];const l=u=>{const{scope:m,children:v,...w}=u,p=m?.[e]?.[d]||a,g=c.useMemo(()=>w,Object.values(w));return h.jsx(p.Provider,{value:g,children:v})};l.displayName=i+"Provider";function f(u,m){const v=m?.[e]?.[d]||a,w=c.useContext(v);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${u}\` must be used within \`${i}\``)}return[l,f]}const r=()=>{const i=n.map(s=>c.createContext(s));return function(a){const d=a?.[e]||i;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:d}}),[a,d])}};return r.scopeName=e,[o,ri(r,...t)]}function ri(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const s=o.reduce((a,{useScope:d,scopeName:l})=>{const u=d(i)[`__scope${l}`];return{...a,...u}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var re=globalThis?.document?c.useLayoutEffect:()=>{},ii=Vn[" useInsertionEffect ".trim().toString()]||re;function Pe({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,i,s]=si({defaultProp:t,onChange:n}),a=e!==void 0,d=a?e:r;{const f=c.useRef(e!==void 0);c.useEffect(()=>{const u=f.current;if(u!==a){const m=u?"controlled":"uncontrolled",v=a?"controlled":"uncontrolled"}f.current=a},[a,o])}const l=c.useCallback(f=>{if(a){const u=ai(f)?f(e):f;u!==e&&s.current?.(u)}else i(f)},[a,e,i,s]);return[d,l]}function si({defaultProp:e,onChange:t}){const[n,o]=c.useState(e),r=c.useRef(n),i=c.useRef(t);return ii(()=>{i.current=t},[t]),c.useEffect(()=>{r.current!==n&&(i.current?.(n),r.current=n)},[n,r]),[n,o,i]}function ai(e){return typeof e=="function"}var ci=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],N=ci.reduce((e,t)=>
vendor: 9,102 bytes, line 9
9{const n=Se(`Primitive.${t}`),o=c.forwardRef((r,i)=>{const{asChild:s,...a}=r,d=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(d,{...a,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Kn(e,t){e&&$t.flushSync(()=>e.dispatchEvent(t))}function Wt(e){const t=e+"CollectionProvider",[n,o]=pe(t),[r,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=p=>{const{scope:g,children:y}=p,x=$.useRef(null),b=$.useRef(new Map).current;return h.jsx(r,{scope:g,itemMap:b,collectionRef:x,children:y})};s.displayName=t;const a=e+"CollectionSlot",d=Se(a),l=$.forwardRef((p,g)=>{const{scope:y,children:x}=p,b=i(a,y),C=B(g,b.collectionRef);return h.jsx(d,{ref:C,children:x})});l.displayName=a;const f=e+"CollectionItemSlot",u="data-radix-collection-item",m=Se(f),v=$.forwardRef((p,g)=>{const{scope:y,children:x,...b}=p,C=$.useRef(null),E=B(g,C),A=i(f,y);return $.useEffect(()=>(A.itemMap.set(C,{ref:C,...b}),()=>void A.itemMap.delete(C))),h.jsx(m,{[u]:"",ref:E,children:x})});v.displayName=f;function w(p){const g=i(e+"CollectionConsumer",p);return $.useCallback(()=>{const x=g.collectionRef.current;if(!x)return[];const b=Array.from(x.querySelectorAll(`[${u}]`));return Array.from(g.itemMap.values()).sort((A,R)=>b.indexOf(A.ref.current)-b.indexOf(R.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:s,Slot:l,ItemSlot:v},w,o]}var li=c.createContext(void 0);function Bt(e){const t=c.useContext(li);return e||t||"ltr"}function ie(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>t.current?.(...n),[])}function ui(e,t=globalThis?.document){const n=ie(e);c.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var fi="DismissableLayer",Dt="dismissableLayer.update",di="dismissableLayer.pointerDownOutside",pi="dismissableLayer.focusOutside",bn,zn=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Gt=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...d}=e,l=c.useContext(zn),[f,u]=c.useState(null),m=f?.ownerDocument??globalThis?.document,[,v]=c.useState({}),w=B(t,R=>u(R)),p=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(g),x=f?p.indexOf(f):-1,b=l.layersWithOutsidePointerEventsDisabled.size>0,C=x>=y,E=hi(R=>{const P=R.target,I=[...l.branches].some(O=>O.contains(P));!C||I||(r?.(R),s?.(R),R.defaultPrevented||a?.())},m),A=gi(R=>{const P=R.target;[...l.branches].some(O=>O.contains(P))||(i?.(R),s?.(R),R.defaultPrevented||a?.())},m);return ui(R=>{x===l.layers.size-1&&(o?.(R),!R.defaultPrevented&&a&&(R.preventDefault(),a()))},m),c.useEffect(()=>{if(f)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(bn=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),Cn(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=bn)}},[f,m,n,l]),c.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),Cn())},[f,l]),c.useEffect(()=>{const R=()=>v({});return document.addEventListener(Dt,R),()=>document.removeEventListener(Dt,R)},[]),h.jsx(N.div,{...d,ref:w,style:{pointerEvents:b?C?"auto":"none":void 0,...e.style},onFocusCapture:_(e.onFocusCapture,A.onFocusCapture),onBlurCapture:_(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:_(e.onPointerDownCapture,E.onPointerDownCapture)})});Gt.displayName=fi;var mi="DismissableLayerBranch",vi=c.forwardRef((e,t)=>{const n=c.useContext(zn),o=c.useRef(null),r=B(t,o);return c.useEffect(()=>{const i=o.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),h.jsx(N.div,{...e,ref:r})});vi.displayName=mi;function hi(e,t=globalThis?.document){const n=ie(e),o=c.useRef(!1),r=c.useRef(()=>{});return c.useEffect(()=>{const i=a=>{if(a.target&&!o.current){let d=function(){Yn(di,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=d,t.addEventListener("click",r.current,{once:!0})):d()}else t.removeEventListener("click",r.current);o.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function gi(e,t=globalThis?.document){const n=ie(e),o=c.useRef(!1);return c.useEffect(()=>{const r=i=>{i.target&&!o.current&&Yn(pi,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Cn(){const e=new CustomEvent(Dt);document.dispatchEvent(e)}function Yn(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Kn(r,i):r.dispatchEvent(i)}var bt=0;function Xn(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??En()),document.body.insertAdjacentElement("beforeend",e[1]??En()),bt++,()=>{bt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),bt--}},[])}function En(){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 Ct="focusScope.autoFocusOnMount",Et="focusScope.autoFocusOnUnmount",Rn={bubbles:!1,cancelable:!0},wi="FocusScope",Ut=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:i,...s}=e,[a,d]=c.useState(null),l=ie(r),f=ie(i),u=c.useRef(null),m=B(t,p=>d(p)),v=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(o){let p=function(b){if(v.paused||!a)return;const C=b.target;a.contains(C)?u.current=C:le(u.current,{select:!0})},g=function(b){if(v.paused||!a)return;const C=b.relatedTarget;C!==null&&(a.contains(C)||le(u.current,{select:!0}))},y=function(b){if(document.activeElement===document.body)for(const E of b)E.removedNodes.length>0&&le(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",g);const x=new MutationObserver(y);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",g),x.disconnect()}}},[o,a,v.paused]),c.useEffect(()=>{if(a){An.add(v);const p=document.activeElement;if(!a.contains(p)){const y=new CustomEvent(Ct,Rn);a.addEventListener(Ct,l),a.dispatchEvent(y),y.defaultPrevented||(yi(Ri(qn(a)),{select:!0}),document.activeElement===p&&le(a))}return()=>{a.removeEventListener(Ct,l),setTimeout(()=>{const y=new CustomEvent(Et,Rn);a.addEventListener(Et,f),a.dispatchEvent(y),y.defaultPrevented||le(p??document.body,{select:!0}),a.removeEventListener(Et,f),An.remove(v)},0)}}},[a,l,f,v]);const w=c.useCallback(p=>{if(!n&&!o||v.paused)return;const g=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(g&&y){const x=p.currentTarget,[b,C]=xi(x);b&&C?!p.shiftKey&&y===C?(p.preventDefault(),n&&le(b,{select:!0})):p.shiftKey&&y===b&&(p.preventDefault(),n&&le(C,{select:!0})):y===x&&p.preventDefault()}},[n,o,v.paused]);return h.jsx(N.div,{tabIndex:-1,...s,ref:m,onKeyDown:w})});Ut.displayName=wi;function yi(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(le(o,{select:t}),document.activeElement!==n)return}function xi(e){const t=qn(e),n=Sn(t,e),o=Sn(t.reverse(),e);return[n,o]}function qn(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Sn(e,t){for(const n of e)if(!bi(n,{upTo:t}))return n}function bi(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 Ci(e){return e instanceof HTMLInputElement&&"select"in e}function le(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ci(e)&&t&&e.select()}}var An=Ei();function Ei(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Pn(e,t),e.unshift(t)},remove(t){e=Pn(e,t),e[0]?.resume()}}}function Pn(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function Ri(e){return e.filter(t=>t.tagName!=="A")}var Si=Vn[" useId ".trim().toString()]||(()=>{}),Ai=0;function ue(e){const[t,n]=c.useState(Si());return re(()=>{n(o=>o??String(Ai++))},[e]),e||(t?`radix-${t}`:"")}const Pi=["top","right","bottom","left"],fe=Math.min,V=Math.max,et=Math.round,Ve=Math.floor,te=e=>({x:e,y:e}
vendor: 11,899 bytes, line 9
9),Mi={left:"right",right:"left",bottom:"top",top:"bottom"},_i={start:"end",end:"start"};function It(e,t,n){return V(e,fe(t,n))}function se(e,t){return typeof e=="function"?e(t):e}function ae(e){return e.split("-")[0]}function Me(e){return e.split("-")[1]}function Ht(e){return e==="x"?"y":"x"}function Vt(e){return e==="y"?"height":"width"}const Oi=new Set(["top","bottom"]);function ee(e){return Oi.has(ae(e))?"y":"x"}function Kt(e){return Ht(ee(e))}function Di(e,t,n){n===void 0&&(n=!1);const o=Me(e),r=Kt(e),i=Vt(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=tt(s)),[s,tt(s)]}function Ii(e){const t=tt(e);return[Tt(e),t,Tt(t)]}function Tt(e){return e.replace(/start|end/g,t=>_i[t])}const Mn=["left","right"],_n=["right","left"],Ti=["top","bottom"],Ni=["bottom","top"];function Li(e,t,n){switch(e){case"top":case"bottom":return n?t?_n:Mn:t?Mn:_n;case"left":case"right":return t?Ti:Ni;default:return[]}}function Fi(e,t,n,o){const r=Me(e);let i=Li(ae(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(Tt)))),i}function tt(e){return e.replace(/left|right|bottom|top/g,t=>Mi[t])}function ki(e){return{top:0,right:0,bottom:0,left:0,...e}}function Zn(e){return typeof e!="number"?ki(e):{top:e,right:e,bottom:e,left:e}}function nt(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function On(e,t,n){let{reference:o,floating:r}=e;const i=ee(t),s=Kt(t),a=Vt(s),d=ae(t),l=i==="y",f=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,m=o[a]/2-r[a]/2;let v;switch(d){case"top":v={x:f,y:o.y-r.height};break;case"bottom":v={x:f,y:o.y+o.height};break;case"right":v={x:o.x+o.width,y:u};break;case"left":v={x:o.x-r.width,y:u};break;default:v={x:o.x,y:o.y}}switch(Me(t)){case"start":v[s]-=m*(n&&l?-1:1);break;case"end":v[s]+=m*(n&&l?-1:1);break}return v}const ji=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:u}=On(l,o,d),m=o,v={},w=0;for(let p=0;p<a.length;p++){const{name:g,fn:y}=a[p],{x,y:b,data:C,reset:E}=await y({x:f,y:u,initialPlacement:o,placement:m,strategy:r,middlewareData:v,rects:l,platform:s,elements:{reference:e,floating:t}});f=x??f,u=b??u,v={...v,[g]:{...v[g],...C}},E&&w<=50&&(w++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(l=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):E.rects),{x:f,y:u}=On(l,m,d)),p=-1)}return{x:f,y:u,placement:m,strategy:r,middlewareData:v}};async function Le(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:d}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:m=!1,padding:v=0}=se(t,e),w=Zn(v),g=a[m?u==="floating"?"reference":"floating":u],y=nt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(g)))==null||n?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:f,strategy:d})),x=u==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),C=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},E=nt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:b,strategy:d}):x);return{top:(y.top-E.top+w.top)/C.y,bottom:(E.bottom-y.bottom+w.bottom)/C.y,left:(y.left-E.left+w.left)/C.x,right:(E.right-y.right+w.right)/C.x}}const $i=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:a,middlewareData:d}=t,{element:l,padding:f=0}=se(e,t)||{};if(l==null)return{};const u=Zn(f),m={x:n,y:o},v=Kt(r),w=Vt(v),p=await s.getDimensions(l),g=v==="y",y=g?"top":"left",x=g?"bottom":"right",b=g?"clientHeight":"clientWidth",C=i.reference[w]+i.reference[v]-m[v]-i.floating[w],E=m[v]-i.reference[v],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let R=A?A[b]:0;(!R||!await(s.isElement==null?void 0:s.isElement(A)))&&(R=a.floating[b]||i.floating[w]);const P=C/2-E/2,I=R/2-p[w]/2-1,O=fe(u[y],I),F=fe(u[x],I),k=O,L=R-p[w]-F,T=R/2-p[w]/2+P,G=It(k,T,L),D=!d.arrow&&Me(r)!=null&&T!==G&&i.reference[w]/2-(T<k?O:F)-p[w]/2<0,j=D?T<k?T-k:T-L:0;return{[v]:m[v]+j,data:{[v]:G,centerOffset:T-G-j,...D&&{alignmentOffset:j}},reset:D}}}),Wi=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:d,elements:l}=t,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:p=!0,...g}=se(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=ae(r),x=ee(a),b=ae(a)===a,C=await(d.isRTL==null?void 0:d.isRTL(l.floating)),E=m||(b||!p?[tt(a)]:Ii(a)),A=w!=="none";!m&&A&&E.push(...Fi(a,p,w,C));const R=[a,...E],P=await Le(t,g),I=[];let O=((o=i.flip)==null?void 0:o.overflows)||[];if(f&&I.push(P[y]),u){const T=Di(r,s,C);I.push(P[T[0]],P[T[1]])}if(O=[...O,{placement:r,overflows:I}],!I.every(T=>T<=0)){var F,k;const T=(((F=i.flip)==null?void 0:F.index)||0)+1,G=R[T];if(G&&(!(u==="alignment"?x!==ee(G):!1)||O.every(M=>M.overflows[0]>0&&ee(M.placement)===x)))return{data:{index:T,overflows:O},reset:{placement:G}};let D=(k=O.filter(j=>j.overflows[0]<=0).sort((j,M)=>j.overflows[1]-M.overflows[1])[0])==null?void 0:k.placement;if(!D)switch(v){case"bestFit":{var L;const j=(L=O.filter(M=>{if(A){const S=ee(M.placement);return S===x||S==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(S=>S>0).reduce((S,U)=>S+U,0)]).sort((M,S)=>M[1]-S[1])[0])==null?void 0:L[0];j&&(D=j);break}case"initialPlacement":D=a;break}if(r!==D)return{reset:{placement:D}}}return{}}}};function Dn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function In(e){return Pi.some(t=>e[t]>=0)}const Bi=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=se(e,t);switch(o){case"referenceHidden":{const i=await Le(t,{...r,elementContext:"reference"}),s=Dn(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:In(s)}}}case"escaped":{const i=await Le(t,{...r,altBoundary:!0}),s=Dn(i,n.floating);return{data:{escapedOffsets:s,escaped:In(s)}}}default:return{}}}}},Jn=new Set(["left","top"]);async function Gi(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=ae(n),a=Me(n),d=ee(n)==="y",l=Jn.has(s)?-1:1,f=i&&d?-1:1,u=se(t,e);let{mainAxis:m,crossAxis:v,alignmentAxis:w}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&typeof w=="number"&&(v=a==="end"?w*-1:w),d?{x:v*f,y:m*l}:{x:m*l,y:v*f}}const Ui=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=t,d=await Gi(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+d.x,y:i+d.y,data:{...d,placement:s}}}}},Hi=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:g=>{let{x:y,y:x}=g;return{x:y,y:x}}},...d}=se(e,t),l={x:n,y:o},f=await Le(t,d),u=ee(ae(r)),m=Ht(u);let v=l[m],w=l[u];if(i){const g=m==="y"?"top":"left",y=m==="y"?"bottom":"right",x=v+f[g],b=v-f[y];v=It(x,v,b)}if(s){const g=u==="y"?"top":"left",y=u==="y"?"bottom":"right",x=w+f[g],b=w-f[y];w=It(x,w,b)}const p=a.fn({...t,[m]:v,[u]:w});return{...p,data:{x:p.x-n,y:p.y-o,enabled:{[m]:i,[u]:s}}}}}},Vi=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:d=!0,crossAxis:l=!0}=se(e,t),f={x:n,y:o},u=ee(r),m=Ht(u);let v=f[m],w=f[u];const p=se(a,t),g=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(d){const b=m==="y"?"height":"width",C=i.reference[m]-i.floating[b]+g.mainAxis,E=i.reference[m]+i.reference[b]-g.mainAxis;v<C?v=C:v>E&&(v=E)}if(l){var y,x;const b=m==="y"?"width":"height",C=Jn.has(ae(r)),E=i.reference[u]-i.floating[b]+(C&&((y=s.offset)==null?void 0:y[u])||0)+(C?0:g.crossAxis),A=i.reference[u]+i.reference[b]+(C?0:((x=s.offset)==null?void 0:x[u])||0)-(C?g.crossAxis:0);w<E?w=E:w>A&&(w=A)}return{[m]:v,[u]:w}}}},Ki=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:i,platform:s,elements:a}=t,{apply:d=()=>{},...l}=se(e,t),f=await Le(t,l),u=ae(r),m=Me(r),v=ee(r)==="y",{width:w,height:p}=i.floating;let g,y;u==="top"||u==="bottom"?(g=u,y=m===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=u,g=m==="end"?"top":"bottom");const x=p-f.top-f.bottom,b=w-f.left-f.right,C=fe(p-f[g],x),E=fe(w-f[y],b),A=!t.middlewareData.shift;let R=C,P=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=b),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(R=x),A&&!m){const O=V(f.left,0),F=V(f.right,0),k=V(f.top,0),L=V(f.bottom,0);v?P=w-2*(O!==0||F!==0?O+F:V(f.left,f.right)):R=p-2*(k!==0||L!==0?k+L:V(f.top,f.bottom))}await d({...t,availableWidth:P,availableHeight:R});const I=await s.getDimensions(a.floating);return w!==I.width||p!==I.height?{reset:{rects:!0}}:{}}}};function lt(){return typeof window<"u"}function _e(e){return Qn(e)?(e.nodeName||"").toLowerCase():"#document"}function K(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function oe(e){var t;return(t=(Qn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Qn(e){return lt()?e instanceof Node||e instanceof K(e).Node:!1}function Y(e){return lt()?e instanceof Element||e instanceof K(e).Element:!1}function ne(e){return lt()?e instanceof HTMLElement||e instanceof K(e).HTMLElement:!1}function Tn(e){return!lt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof K(e).ShadowRoot}const zi=new Set(["inline","contents"]);function $e(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=X(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!zi.has(r)}const Yi=new Set(["table","td","th"]);function Xi(e){return Yi.has(_e(e))}const qi=[":popover-open",":modal"];function ut(e){return qi.some(t=>{try{return e.matches(t)}catch{return!1}})}const Zi=["transform","translate","scale","rotate","perspective"],Ji=["transform","translate","scale","rotate","perspective","filter"],Qi=["paint","layout","strict","content"];function zt(e){const t=Yt(),n=Y(e)?X(e):e;return Zi.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Ji.some(o=>(n.willChange||"").includes(o))||Qi.some(o=>(n.contain||"").includes(o))}function es(e){let t=de(e);for(;ne(t)&&!Ae(t);){if(zt(t))return t;if(ut(t))return null;t=de(t)}return null}function Yt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ts=new Set(["html","body","#document"]);function Ae(e){return ts.has(_e(e))}function X(e){return K(e).getComputedStyle(e)}function ft(e){return Y(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function de(e){if(_e(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Tn(e)&&e.host||oe(e);return Tn(t)?t.host:t}function eo(e){const t=de(e);return Ae(t)?e.ownerDocument?e.ownerDocument.body:e.body:ne(t)&&$e(t)?t:eo(t)}function Fe(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=eo(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=K(r);if(i){const a=Nt(s);
vendor: 7,358 bytes, line 9
9return t.concat(s,s.visualViewport||[],$e(r)?r:[],a&&n?Fe(a):[])}return t.concat(r,Fe(r,[],n))}function Nt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function to(e){const t=X(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=ne(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=et(n)!==i||et(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function Xt(e){return Y(e)?e:e.contextElement}function Ee(e){const t=Xt(e);if(!ne(t))return te(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=to(t);let s=(i?et(n.width):n.width)/o,a=(i?et(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const ns=te(0);function no(e){const t=K(e);return!Yt()||!t.visualViewport?ns:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function os(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==K(e)?!1:t}function he(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=Xt(e);let s=te(1);t&&(o?Y(o)&&(s=Ee(o)):s=Ee(e));const a=os(i,n,o)?no(i):te(0);let d=(r.left+a.x)/s.x,l=(r.top+a.y)/s.y,f=r.width/s.x,u=r.height/s.y;if(i){const m=K(i),v=o&&Y(o)?K(o):o;let w=m,p=Nt(w);for(;p&&o&&v!==w;){const g=Ee(p),y=p.getBoundingClientRect(),x=X(p),b=y.left+(p.clientLeft+parseFloat(x.paddingLeft))*g.x,C=y.top+(p.clientTop+parseFloat(x.paddingTop))*g.y;d*=g.x,l*=g.y,f*=g.x,u*=g.y,d+=b,l+=C,w=K(p),p=Nt(w)}}return nt({width:f,height:u,x:d,y:l})}function qt(e,t){const n=ft(e).scrollLeft;return t?t.left+n:he(oe(e)).left+n}function oo(e,t,n){n===void 0&&(n=!1);const o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-(n?0:qt(e,o)),i=o.top+t.scrollTop;return{x:r,y:i}}function rs(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=oe(o),a=t?ut(t.floating):!1;if(o===s||a&&i)return n;let d={scrollLeft:0,scrollTop:0},l=te(1);const f=te(0),u=ne(o);if((u||!u&&!i)&&((_e(o)!=="body"||$e(s))&&(d=ft(o)),ne(o))){const v=he(o);l=Ee(o),f.x=v.x+o.clientLeft,f.y=v.y+o.clientTop}const m=s&&!u&&!i?oo(s,d,!0):te(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-d.scrollLeft*l.x+f.x+m.x,y:n.y*l.y-d.scrollTop*l.y+f.y+m.y}}function is(e){return Array.from(e.getClientRects())}function ss(e){const t=oe(e),n=ft(e),o=e.ownerDocument.body,r=V(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=V(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+qt(e);const a=-n.scrollTop;return X(o).direction==="rtl"&&(s+=V(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:a}}function as(e,t){const n=K(e),o=oe(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,a=0,d=0;if(r){i=r.width,s=r.height;const l=Yt();(!l||l&&t==="fixed")&&(a=r.offsetLeft,d=r.offsetTop)}return{width:i,height:s,x:a,y:d}}const cs=new Set(["absolute","fixed"]);function ls(e,t){const n=he(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=ne(e)?Ee(e):te(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,d=r*i.x,l=o*i.y;return{width:s,height:a,x:d,y:l}}function Nn(e,t,n){let o;if(t==="viewport")o=as(e,n);else if(t==="document")o=ss(oe(e));else if(Y(t))o=ls(t,n);else{const r=no(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return nt(o)}function ro(e,t){const n=de(e);return n===t||!Y(n)||Ae(n)?!1:X(n).position==="fixed"||ro(n,t)}function us(e,t){const n=t.get(e);if(n)return n;let o=Fe(e,[],!1).filter(a=>Y(a)&&_e(a)!=="body"),r=null;const i=X(e).position==="fixed";let s=i?de(e):e;for(;Y(s)&&!Ae(s);){const a=X(s),d=zt(s);!d&&a.position==="fixed"&&(r=null),(i?!d&&!r:!d&&a.position==="static"&&!!r&&cs.has(r.position)||$e(s)&&!d&&ro(e,s))?o=o.filter(f=>f!==s):r=a,s=de(s)}return t.set(e,o),o}function fs(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?ut(t)?[]:us(t,this._c):[].concat(n),o],a=s[0],d=s.reduce((l,f)=>{const u=Nn(t,f,r);return l.top=V(u.top,l.top),l.right=fe(u.right,l.right),l.bottom=fe(u.bottom,l.bottom),l.left=V(u.left,l.left),l},Nn(t,a,r));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function ds(e){const{width:t,height:n}=to(e);return{width:t,height:n}}function ps(e,t,n){const o=ne(t),r=oe(t),i=n==="fixed",s=he(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const d=te(0);function l(){d.x=qt(r)}if(o||!o&&!i)if((_e(t)!=="body"||$e(r))&&(a=ft(t)),o){const v=he(t,!0,i,t);d.x=v.x+t.clientLeft,d.y=v.y+t.clientTop}else r&&l();i&&!o&&r&&l();const f=r&&!o&&!i?oo(r,a):te(0),u=s.left+a.scrollLeft-d.x-f.x,m=s.top+a.scrollTop-d.y-f.y;return{x:u,y:m,width:s.width,height:s.height}}function Rt(e){return X(e).position==="static"}function Ln(e,t){if(!ne(e)||X(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return oe(e)===n&&(n=n.ownerDocument.body),n}function io(e,t){const n=K(e);if(ut(e))return n;if(!ne(e)){let r=de(e);for(;r&&!Ae(r);){if(Y(r)&&!Rt(r))return r;r=de(r)}return n}let o=Ln(e,t);for(;o&&Xi(o)&&Rt(o);)o=Ln(o,t);return o&&Ae(o)&&Rt(o)&&!zt(o)?n:o||es(e)||n}const ms=async function(e){const t=this.getOffsetParent||io,n=this.getDimensions,o=await n(e.floating);return{reference:ps(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function vs(e){return X(e).direction==="rtl"}const hs={convertOffsetParentRelativeRectToViewportRelativeRect:rs,getDocumentElement:oe,getClippingRect:fs,getOffsetParent:io,getElementRects:ms,getClientRects:is,getDimensions:ds,getScale:Ee,isElement:Y,isRTL:vs};function so(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gs(e,t){let n=null,o;const r=oe(e);function i(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function s(a,d){a===void 0&&(a=!1),d===void 0&&(d=1),i();const l=e.getBoundingClientRect(),{left:f,top:u,width:m,height:v}=l;if(a||t(),!m||!v)return;const w=Ve(u),p=Ve(r.clientWidth-(f+m)),g=Ve(r.clientHeight-(u+v)),y=Ve(f),b={rootMargin:-w+"px "+-p+"px "+-g+"px "+-y+"px",threshold:V(0,fe(1,d))||1};let C=!0;function E(A){const R=A[0].intersectionRatio;if(R!==d){if(!C)return s();R?s(!1,R):o=setTimeout(()=>{s(!1,1e-7)},1e3)}R===1&&!so(l,e.getBoundingClientRect())&&s(),C=!1}try{n=new IntersectionObserver(E,{...b,root:r.ownerDocument})}catch{n=new IntersectionObserver(E,b)}n.observe(e)}return s(!0),i}function ws(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:d=!1}=o,l=Xt(e),f=r||i?[...l?Fe(l):[],...Fe(t)]:[];f.forEach(y=>{r&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const u=l&&a?gs(l,n):null;let m=-1,v=null;s&&(v=new ResizeObserver(y=>{let[x]=y;x&&x.target===l&&v&&(v.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=v)==null||b.observe(t)})),n()}),l&&!d&&v.observe(l),v.observe(t));let w,p=d?he(e):null;d&&g();function g(){const y=he(e);p&&!so(p,y)&&n(),p=y,w=requestAnimationFrame(g)}return n(),()=>{var y;f.forEach(x=>{r&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),u?.(),(y=v)==null||y.disconnect(),v=null,d&&cancelAnimationFrame(w)}}const ys=Ui,xs=Hi,bs=Wi,Cs=Ki,Es=Bi,Fn=$i,Rs=Vi,Ss=(e,t,n)=>{const o=new Map,r={platform:hs,...n},i={...r.platform,_c:o};return ji(e,t,{...r,platform:i})};var As=typeof document<"u",Ps=function(){},Ze=As?c.useLayoutEffect:Ps;function ot(e,t){if(e===t)return!0;
vendor: 9,958 bytes, line 9
9if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!ot(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!ot(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function ao(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function kn(e,t){const n=ao(e);return Math.round(t*n)/n}function St(e){const t=c.useRef(e);return Ze(()=>{t.current=e}),t}function Ms(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:d,open:l}=e,[f,u]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,v]=c.useState(o);ot(m,o)||v(o);const[w,p]=c.useState(null),[g,y]=c.useState(null),x=c.useCallback(M=>{M!==A.current&&(A.current=M,p(M))},[]),b=c.useCallback(M=>{M!==R.current&&(R.current=M,y(M))},[]),C=i||w,E=s||g,A=c.useRef(null),R=c.useRef(null),P=c.useRef(f),I=d!=null,O=St(d),F=St(r),k=St(l),L=c.useCallback(()=>{if(!A.current||!R.current)return;const M={placement:t,strategy:n,middleware:m};F.current&&(M.platform=F.current),Ss(A.current,R.current,M).then(S=>{const U={...S,isPositioned:k.current!==!1};T.current&&!ot(P.current,U)&&(P.current=U,$t.flushSync(()=>{u(U)}))})},[m,t,n,F,k]);Ze(()=>{l===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,u(M=>({...M,isPositioned:!1})))},[l]);const T=c.useRef(!1);Ze(()=>(T.current=!0,()=>{T.current=!1}),[]),Ze(()=>{if(C&&(A.current=C),E&&(R.current=E),C&&E){if(O.current)return O.current(C,E,L);L()}},[C,E,L,O,I]);const G=c.useMemo(()=>({reference:A,floating:R,setReference:x,setFloating:b}),[x,b]),D=c.useMemo(()=>({reference:C,floating:E}),[C,E]),j=c.useMemo(()=>{const M={position:n,left:0,top:0};if(!D.floating)return M;const S=kn(D.floating,f.x),U=kn(D.floating,f.y);return a?{...M,transform:"translate("+S+"px, "+U+"px)",...ao(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:S,top:U}},[n,a,D.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:L,refs:G,elements:D,floatingStyles:j}),[f,L,G,D,j])}const _s=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?Fn({element:o.current,padding:r}).fn(n):{}:o?Fn({element:o,padding:r}).fn(n):{}}}},Os=(e,t)=>({...ys(e),options:[e,t]}),Ds=(e,t)=>({...xs(e),options:[e,t]}),Is=(e,t)=>({...Rs(e),options:[e,t]}),Ts=(e,t)=>({...bs(e),options:[e,t]}),Ns=(e,t)=>({...Cs(e),options:[e,t]}),Ls=(e,t)=>({...Es(e),options:[e,t]}),Fs=(e,t)=>({..._s(e),options:[e,t]});var ks="Arrow",co=c.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...i}=e;return h.jsx(N.svg,{...i,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});co.displayName=ks;var js=co;function $s(e){const[t,n]=c.useState(void 0);return re(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let s,a;if("borderBoxSize"in i){const d=i.borderBoxSize,l=Array.isArray(d)?d[0]:d;s=l.inlineSize,a=l.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var Zt="Popper",[lo,uo]=pe(Zt),[Ws,fo]=lo(Zt),po=e=>{const{__scopePopper:t,children:n}=e,[o,r]=c.useState(null);return h.jsx(Ws,{scope:t,anchor:o,onAnchorChange:r,children:n})};po.displayName=Zt;var mo="PopperAnchor",vo=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,i=fo(mo,n),s=c.useRef(null),a=B(t,s),d=c.useRef(null);return c.useEffect(()=>{const l=d.current;d.current=o?.current||s.current,l!==d.current&&i.onAnchorChange(d.current)}),o?null:h.jsx(N.div,{...r,ref:a})});vo.displayName=mo;var Jt="PopperContent",[Bs,Gs]=lo(Jt),ho=c.forwardRef((e,t)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:d=!0,collisionBoundary:l=[],collisionPadding:f=0,sticky:u="partial",hideWhenDetached:m=!1,updatePositionStrategy:v="optimized",onPlaced:w,...p}=e,g=fo(Jt,n),[y,x]=c.useState(null),b=B(t,W=>x(W)),[C,E]=c.useState(null),A=$s(C),R=A?.width??0,P=A?.height??0,I=o+(i!=="center"?"-"+i:""),O=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},F=Array.isArray(l)?l:[l],k=F.length>0,L={padding:O,boundary:F.filter(Hs),altBoundary:k},{refs:T,floatingStyles:G,placement:D,isPositioned:j,middlewareData:M}=Ms({strategy:"fixed",placement:I,whileElementsMounted:(...W)=>ws(...W,{animationFrame:v==="always"}),elements:{reference:g.anchor},middleware:[Os({mainAxis:r+P,alignmentAxis:s}),d&&Ds({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?Is():void 0,...L}),d&&Ts({...L}),Ns({...L,apply:({elements:W,rects:Ie,availableWidth:Gr,availableHeight:Ur})=>{const{width:Hr,height:Vr}=Ie.reference,He=W.floating.style;He.setProperty("--radix-popper-available-width",`${Gr}px`),He.setProperty("--radix-popper-available-height",`${Ur}px`),He.setProperty("--radix-popper-anchor-width",`${Hr}px`),He.setProperty("--radix-popper-anchor-height",`${Vr}px`)}}),C&&Fs({element:C,padding:a}),Vs({arrowWidth:R,arrowHeight:P}),m&&Ls({strategy:"referenceHidden",...L})]}),[S,U]=yo(D),J=ie(w);re(()=>{j&&J?.()},[j,J]);const me=M.arrow?.x,Oe=M.arrow?.y,De=M.arrow?.centerOffset!==0,[Ue,ve]=c.useState();return re(()=>{y&&ve(window.getComputedStyle(y).zIndex)},[y]),h.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:j?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ue,"--radix-popper-transform-origin":[M.transformOrigin?.x,M.transformOrigin?.y].join(" "),...M.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:h.jsx(Bs,{scope:n,placedSide:S,onArrowChange:E,arrowX:me,arrowY:Oe,shouldHideArrow:De,children:h.jsx(N.div,{"data-side":S,"data-align":U,...p,ref:b,style:{...p.style,animation:j?void 0:"none"}})})})});ho.displayName=Jt;var go="PopperArrow",Us={top:"bottom",right:"left",bottom:"top",left:"right"},wo=c.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,i=Gs(go,o),s=Us[i.placedSide];return h.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]: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:h.jsx(js,{...r,ref:n,style:{...r.style,display:"block"}})})});wo.displayName=go;function Hs(e){return e!==null}var Vs=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,s=r.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[l,f]=yo(n),u={start:"0%",center:"50%",end:"100%"}[f],m=(r.arrow?.x??0)+a/2,v=(r.arrow?.y??0)+d/2;let w="",p="";return l==="bottom"?(w=s?u:`${m}px`,p=`${-d}px`):l==="top"?(w=s?u:`${m}px`,p=`${o.floating.height+d}px`):l==="right"?(w=`${-d}px`,p=s?u:`${v}px`):l==="left"&&(w=`${o.floating.width+d}px`,p=s?u:`${v}px`),{data:{x:w,y:p}}}});function yo(e){const[t,n="center"]=e.split("-");return[t,n]}var Ks=po,zs=vo,Ys=ho,Xs=wo,qs="Portal",Qt=c.forwardRef((e,t)=>{const{container:n,...o}=e,[r,i]=c.useState(!1);re(()=>i(!0),[]);const s=n||r&&globalThis?.document?.body;return s?Zr.createPortal(h.jsx(N.div,{...o,ref:t}),s):null});Qt.displayName=qs;function Zs(e,t){return c.useReducer((n,o)=>t[n][o]??n,e)}var ce=e=>{const{present:t,children:n}=e,o=Js(t),r=typeof n=="function"?n({present:o.isPresent}):c.Children.only(n),i=B(o.ref,Qs(r));return typeof n=="function"||o.isPresent?c.cloneElement(r,{ref:i}):null};ce.displayName="Presence";function Js(e){const[t,n]=c.useState(),o=c.useRef(null),r=c.useRef(e),i=c.useRef("none"),s=e?"mounted":"unmounted",[a,d]=Zs(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const l=Ke(o.current);i.current=a==="mounted"?l:"none"},[a]),re(()=>{const l=o.current,f=r.current;if(f!==e){const m=i.current,v=Ke(l);e?d("MOUNT"):v==="none"||l?.display==="none"?d("UNMOUNT"):d(f&&m!==v?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,d]),re(()=>{if(t){let l;const f=t.ownerDocument.defaultView??window,u=v=>{const p=Ke(o.current).includes(CSS.escape(v.animationName));if(v.target===t&&p&&(d("ANIMATION_END"),!r.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},m=v=>{v.target===t&&(i.current=Ke(o.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{f.clearTimeout(l),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:c.useCallback(l=>{o.current=l?getComputedStyle(l):null,n(l)},[])}}function Ke(e){return e?.animationName||"none"}function Qs(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var At="rovingFocusGroup.onEntryFocus",ea={bubbles:!1,cancelable:!0},We="RovingFocusGroup",[Lt,xo,ta]=Wt(We),[na,bo]=pe(We,[ta]),[oa,ra]=na(We),Co=c.forwardRef((e,t)=>
vendor: 10,067 bytes, lines 9-24
9h.jsx(Lt.Provider,{scope:e.__scopeRovingFocusGroup,children:h.jsx(Lt.Slot,{scope:e.__scopeRovingFocusGroup,children:h.jsx(ia,{...e,ref:t})})}));Co.displayName=We;var ia=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:d,onEntryFocus:l,preventScrollOnEntryFocus:f=!1,...u}=e,m=c.useRef(null),v=B(t,m),w=Bt(i),[p,g]=Pe({prop:s,defaultProp:a??null,onChange:d,caller:We}),[y,x]=c.useState(!1),b=ie(l),C=xo(n),E=c.useRef(!1),[A,R]=c.useState(0);return c.useEffect(()=>{const P=m.current;if(P)return P.addEventListener(At,b),()=>P.removeEventListener(At,b)},[b]),h.jsx(oa,{scope:n,orientation:o,dir:w,loop:r,currentTabStopId:p,onItemFocus:c.useCallback(P=>g(P),[g]),onItemShiftTab:c.useCallback(()=>x(!0),[]),onFocusableItemAdd:c.useCallback(()=>R(P=>P+1),[]),onFocusableItemRemove:c.useCallback(()=>R(P=>P-1),[]),children:h.jsx(N.div,{tabIndex:y||A===0?-1:0,"data-orientation":o,...u,ref:v,style:{outline:"none",...e.style},onMouseDown:_(e.onMouseDown,()=>{E.current=!0}),onFocus:_(e.onFocus,P=>{const I=!E.current;if(P.target===P.currentTarget&&I&&!y){const O=new CustomEvent(At,ea);if(P.currentTarget.dispatchEvent(O),!O.defaultPrevented){const F=C().filter(D=>D.focusable),k=F.find(D=>D.active),L=F.find(D=>D.id===p),G=[k,L,...F].filter(Boolean).map(D=>D.ref.current);So(G,f)}}E.current=!1}),onBlur:_(e.onBlur,()=>x(!1))})})}),Eo="RovingFocusGroupItem",Ro=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:i,children:s,...a}=e,d=ue(),l=i||d,f=ra(Eo,n),u=f.currentTabStopId===l,m=xo(n),{onFocusableItemAdd:v,onFocusableItemRemove:w,currentTabStopId:p}=f;return c.useEffect(()=>{if(o)return v(),()=>w()},[o,v,w]),h.jsx(Lt.ItemSlot,{scope:n,id:l,focusable:o,active:r,children:h.jsx(N.span,{tabIndex:u?0:-1,"data-orientation":f.orientation,...a,ref:t,onMouseDown:_(e.onMouseDown,g=>{o?f.onItemFocus(l):g.preventDefault()}),onFocus:_(e.onFocus,()=>f.onItemFocus(l)),onKeyDown:_(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){f.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=ca(g,f.orientation,f.dir);if(y!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let b=m().filter(C=>C.focusable).map(C=>C.ref.current);if(y==="last")b.reverse();else if(y==="prev"||y==="next"){y==="prev"&&b.reverse();const C=b.indexOf(g.currentTarget);b=f.loop?la(b,C+1):b.slice(C+1)}setTimeout(()=>So(b))}}),children:typeof s=="function"?s({isCurrentTabStop:u,hasTabStop:p!=null}):s})})});Ro.displayName=Eo;var sa={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function aa(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ca(e,t,n){const o=aa(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return sa[o]}function So(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function la(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var ua=Co,fa=Ro,da=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},xe=new WeakMap,ze=new WeakMap,Ye={},Pt=0,Ao=function(e){return e&&(e.host||Ao(e.parentNode))},pa=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=Ao(n);return o&&e.contains(o)?o:null}).filter(function(n){return!!n})},ma=function(e,t,n,o){var r=pa(t,Array.isArray(e)?e:[e]);Ye[n]||(Ye[n]=new WeakMap);var i=Ye[n],s=[],a=new Set,d=new Set(r),l=function(u){!u||a.has(u)||(a.add(u),l(u.parentNode))};r.forEach(l);var f=function(u){!u||d.has(u)||Array.prototype.forEach.call(u.children,function(m){if(a.has(m))f(m);else try{var v=m.getAttribute(o),w=v!==null&&v!=="false",p=(xe.get(m)||0)+1,g=(i.get(m)||0)+1;xe.set(m,p),i.set(m,g),s.push(m),p===1&&w&&ze.set(m,!0),g===1&&m.setAttribute(n,"true"),w||m.setAttribute(o,"true")}catch{}})};return f(t),a.clear(),Pt++,function(){s.forEach(function(u){var m=xe.get(u)-1,v=i.get(u)-1;xe.set(u,m),i.set(u,v),m||(ze.has(u)||u.removeAttribute(o),ze.delete(u)),v||u.removeAttribute(n)}),Pt--,Pt||(xe=new WeakMap,xe=new WeakMap,ze=new WeakMap,Ye={})}},Po=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=da(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live]"))),ma(o,r,n,"aria-hidden")):function(){return null}},Q=function(){return Q=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Q.apply(this,arguments)};function Mo(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function va(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,i;o<r;o++)(i||!(o in t))&&(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}var Je="right-scroll-bar-position",Qe="width-before-scroll-bar",ha="with-scroll-bars-hidden",ga="--removed-body-scroll-bar-size";function Mt(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function wa(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var ya=typeof window<"u"?c.useLayoutEffect:c.useEffect,jn=new WeakMap;function xa(e,t){var n=wa(null,function(o){return e.forEach(function(r){return Mt(r,o)})});return ya(function(){var o=jn.get(n);if(o){var r=new Set(o),i=new Set(e),s=n.current;r.forEach(function(a){i.has(a)||Mt(a,null)}),i.forEach(function(a){r.has(a)||Mt(a,s)})}jn.set(n,e)},[e]),n}function ba(e){return e}function Ca(e,t){t===void 0&&(t=ba);var n=[],o=!1,r={read:function(){if(o)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 s=t(i,o);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(o=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){o=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var d=function(){var f=s;s=[],f.forEach(i)},l=function(){return Promise.resolve().then(d)};l(),n={push:function(f){s.push(f),l()},filter:function(f){return s=s.filter(f),n}}}};return r}function Ea(e){e===void 0&&(e={});var t=Ca(null);return t.options=Q({async:!0,ssr:!1},e),t}var _o=function(e){var t=e.sideCar,n=Mo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return c.createElement(o,Q({},n))};_o.isSideCarExport=!0;function Ra(e,t){return e.useMedium(t),_o}var Oo=Ea(),_t=function(){},dt=c.forwardRef(function(e,t){var n=c.useRef(null),o=c.useState({onScrollCapture:_t,onWheelCapture:_t,onTouchMoveCapture:_t}),r=o[0],i=o[1],s=e.forwardProps,a=e.children,d=e.className,l=e.removeScrollBar,f=e.enabled,u=e.shards,m=e.sideCar,v=e.noIsolation,w=e.inert,p=e.allowPinchZoom,g=e.as,y=g===void 0?"div":g,x=e.gapMode,b=Mo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=m,E=xa([n,t]),A=Q(Q({},b),r);return c.createElement(c.Fragment,null,f&&c.createElement(C,{sideCar:Oo,removeScrollBar:l,shards:u,noIsolation:v,inert:w,setCallbacks:i,allowPinchZoom:!!p,lockRef:n,gapMode:x}),s?c.cloneElement(c.Children.only(a),Q(Q({},A),{ref:E})):c.createElement(y,Q({},A,{className:d,ref:E}),a))});dt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};dt.classNames={fullWidth:Qe,zeroRight:Je};var Sa=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Aa(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Sa();return t&&e.setAttribute("nonce",t),e}function Pa(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ma(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var _a=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Aa())&&(Pa(t,n),Ma(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Oa=function(){var e=_a();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Do=function(){var e=Oa(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},Da={left:0,top:0,right:0,gap:0},Ot=function(e){return parseInt(e||"",10)||0},Ia=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[Ot(n),Ot(o),Ot(r)]},Ta=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Da;var t=Ia(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},Na=Do(),Re="data-scroll-locked",La=function(e,t,n,o){var r=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),` 10 .`.concat(ha,` { 11 overflow: hidden `).concat(o,`; 12 padding-right: `).concat(a,"px ").concat(o,`; 13 } 14 body[`).concat(Re,`] { 15 overflow: hidden `).concat(o,`; 16 overscroll-behavior: contain; 17 `).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&` 18 padding-left: `.concat(r,`px; 19 padding-top: `).concat(i,`px; 20 padding-right: `).concat(s,`px; 21 margin-left:0; 22 margin-top:0; 23 margin-right: `).concat(a,"px ").concat(o,`; 24 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(o,";
24")].filter(Boolean).join(""),` 25 } 26 27 .`).concat(Je,` { 28 right: `).concat(a,"px ").concat(o,`; 29 } 30 31 .`).concat(Qe,` { 32 margin-right: `).concat(a,"px ").concat(o,`; 33 } 34 35 .`).concat(Je," .").concat(Je,` { 36 right: 0 `).concat(o,`; 37 } 38 39 .`).concat(Qe," .").concat(Qe,` { 40 margin-right: 0 `).concat(o,`; 41 } 42 43 body[`).concat(Re,`] { 44 `).concat(ga,": ").concat(a,`px; 45 } 46`)},$n=function(){var e=parseInt(document.body.getAttribute(Re)||"0",10);return isFinite(e)?e:0},Fa=function(){c.useEffect(function(){return document.body.setAttribute(Re,($n()+1).toString()),function(){var e=$n()-1;e<=0?document.body.removeAttribute(Re):document.body.setAttribute(Re,e.toString())}},[])},ka=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;Fa();var i=c.useMemo(function(){return Ta(r)},[r]);return c.createElement(Na,{styles:La(i,!t,r,n?"":"!important")})},Ft=!1;if(typeof window<"u")try{var Xe=Object.defineProperty({},"passive",{get:function(){return Ft=!0,!0}});window.addEventListener("test",Xe,Xe),window.removeEventListener("test",Xe,Xe)}catch{Ft=!1}var be=Ft?{passive:!1}:!1,ja=function(e){return e.tagName==="TEXTAREA"},Io=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!ja(e)&&n[t]==="visible")},$a=function(e){return Io(e,"overflowY")},Wa=function(e){return Io(e,"overflowX")},Wn=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=To(e,o);if(r){var i=No(e,o),s=i[1],a=i[2];if(s>a)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},Ba=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},Ga=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},To=function(e,t){return e==="v"?$a(t):Wa(t)},No=function(e,t){return e==="v"?Ba(t):Ga(t)},Ua=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ha=function(e,t,n,o,r){var i=Ua(e,window.getComputedStyle(t).direction),s=i*o,a=n.target,d=t.contains(a),l=!1,f=s>0,u=0,m=0;do{var v=No(e,a),w=v[0],p=v[1],g=v[2],y=p-g-i*w;(w||y)&&To(e,a)&&(u+=y,m+=w),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!d&&a!==document.body||d&&(t.contains(a)||t===a));return(f&&Math.abs(u)<1||!f&&Math.abs(m)<1)&&(l=!0),l},qe=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Bn=function(e){return[e.deltaX,e.deltaY]},Gn=function(e){return e&&"current"in e?e.current:e},Va=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ka=function(e){return` 47 .block-interactivity-`.concat(e,` {pointer-events: none;} 48 .allow-interactivity-`).concat(e,` {pointer-events: all;} 49`)},za=0,Ce=[];function Ya(e){var t=c.useRef([]),n=c.useRef([0,0]),o=c.useRef(),r=c.useState(za++)[0],i=c.useState(Do)[0],s=c.useRef(e);c.useEffect(function(){s.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var p=va([e.lockRef.current],(e.shards||[]).map(Gn),!0).filter(Boolean);return p.forEach(function(g){return g.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),p.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=c.useCallback(function(p,g){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!s.current.allowPinchZoom;var y=qe(p),x=n.current,b="deltaX"in p?p.deltaX:x[0]-y[0],C="deltaY"in p?p.deltaY:x[1]-y[1],E,A=p.target,R=Math.abs(b)>Math.abs(C)?"h":"v";if("touches"in p&&R==="h"&&A.type==="range")return!1;var P=Wn(R,A);if(!P)return!0;if(P?E=R:(E=R==="v"?"h":"v",P=Wn(R,A)),!P)return!1;if(!o.current&&"changedTouches"in p&&(b||C)&&(o.current=E),!E)return!0;var I=o.current||E;return Ha(I,g,p,I==="h"?b:C)},[]),d=c.useCallback(function(p){var g=p;if(!(!Ce.length||Ce[Ce.length-1]!==i)){var y="deltaY"in g?Bn(g):qe(g),x=t.current.filter(function(E){return E.name===g.type&&(E.target===g.target||g.target===E.shadowParent)&&Va(E.delta,y)})[0];if(x&&x.should){g.cancelable&&g.preventDefault();return}
vendor: 20,317 bytes, line 49
49if(!x){var b=(s.current.shards||[]).map(Gn).filter(Boolean).filter(function(E){return E.contains(g.target)}),C=b.length>0?a(g,b[0]):!s.current.noIsolation;C&&g.cancelable&&g.preventDefault()}}},[]),l=c.useCallback(function(p,g,y,x){var b={name:p,delta:g,target:y,should:x,shadowParent:Xa(y)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(C){return C!==b})},1)},[]),f=c.useCallback(function(p){n.current=qe(p),o.current=void 0},[]),u=c.useCallback(function(p){l(p.type,Bn(p),p.target,a(p,e.lockRef.current))},[]),m=c.useCallback(function(p){l(p.type,qe(p),p.target,a(p,e.lockRef.current))},[]);c.useEffect(function(){return Ce.push(i),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:m}),document.addEventListener("wheel",d,be),document.addEventListener("touchmove",d,be),document.addEventListener("touchstart",f,be),function(){Ce=Ce.filter(function(p){return p!==i}),document.removeEventListener("wheel",d,be),document.removeEventListener("touchmove",d,be),document.removeEventListener("touchstart",f,be)}},[]);var v=e.removeScrollBar,w=e.inert;return c.createElement(c.Fragment,null,w?c.createElement(i,{styles:Ka(r)}):null,v?c.createElement(ka,{gapMode:e.gapMode}):null)}function Xa(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const qa=Ra(Oo,Ya);var en=c.forwardRef(function(e,t){return c.createElement(dt,Q({},e,{ref:t,sideCar:qa}))});en.classNames=dt.classNames;var kt=["Enter"," "],Za=["ArrowDown","PageUp","Home"],Lo=["ArrowUp","PageDown","End"],Ja=[...Za,...Lo],Qa={ltr:[...kt,"ArrowRight"],rtl:[...kt,"ArrowLeft"]},ec={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Be="Menu",[ke,tc,nc]=Wt(Be),[we,Fo]=pe(Be,[nc,uo,bo]),pt=uo(),ko=bo(),[oc,ye]=we(Be),[rc,Ge]=we(Be),jo=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:r,onOpenChange:i,modal:s=!0}=e,a=pt(t),[d,l]=c.useState(null),f=c.useRef(!1),u=ie(i),m=Bt(r);return c.useEffect(()=>{const v=()=>{f.current=!0,document.addEventListener("pointerdown",w,{capture:!0,once:!0}),document.addEventListener("pointermove",w,{capture:!0,once:!0})},w=()=>f.current=!1;return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",w,{capture:!0}),document.removeEventListener("pointermove",w,{capture:!0})}},[]),h.jsx(Ks,{...a,children:h.jsx(oc,{scope:t,open:n,onOpenChange:u,content:d,onContentChange:l,children:h.jsx(rc,{scope:t,onClose:c.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:f,dir:m,modal:s,children:o})})})};jo.displayName=Be;var ic="MenuAnchor",tn=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=pt(n);return h.jsx(zs,{...r,...o,ref:t})});tn.displayName=ic;var nn="MenuPortal",[sc,$o]=we(nn,{forceMount:void 0}),Wo=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:r}=e,i=ye(nn,t);return h.jsx(sc,{scope:t,forceMount:n,children:h.jsx(ce,{present:n||i.open,children:h.jsx(Qt,{asChild:!0,container:r,children:o})})})};Wo.displayName=nn;var z="MenuContent",[ac,on]=we(z),Bo=c.forwardRef((e,t)=>{const n=$o(z,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,i=ye(z,e.__scopeMenu),s=Ge(z,e.__scopeMenu);return h.jsx(ke.Provider,{scope:e.__scopeMenu,children:h.jsx(ce,{present:o||i.open,children:h.jsx(ke.Slot,{scope:e.__scopeMenu,children:s.modal?h.jsx(cc,{...r,ref:t}):h.jsx(lc,{...r,ref:t})})})})}),cc=c.forwardRef((e,t)=>{const n=ye(z,e.__scopeMenu),o=c.useRef(null),r=B(t,o);return c.useEffect(()=>{const i=o.current;if(i)return Po(i)},[]),h.jsx(rn,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:_(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),lc=c.forwardRef((e,t)=>{const n=ye(z,e.__scopeMenu);return h.jsx(rn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),uc=Se("MenuContent.ScrollLock"),rn=c.forwardRef((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEntryFocus:d,onEscapeKeyDown:l,onPointerDownOutside:f,onFocusOutside:u,onInteractOutside:m,onDismiss:v,disableOutsideScroll:w,...p}=e,g=ye(z,n),y=Ge(z,n),x=pt(n),b=ko(n),C=tc(n),[E,A]=c.useState(null),R=c.useRef(null),P=B(t,R,g.onContentChange),I=c.useRef(0),O=c.useRef(""),F=c.useRef(0),k=c.useRef(null),L=c.useRef("right"),T=c.useRef(0),G=w?en:c.Fragment,D=w?{as:uc,allowPinchZoom:!0}:void 0,j=S=>{const U=O.current+S,J=C().filter(W=>!W.disabled),me=document.activeElement,Oe=J.find(W=>W.ref.current===me)?.textValue,De=J.map(W=>W.textValue),Ue=Cc(De,U,Oe),ve=J.find(W=>W.textValue===Ue)?.ref.current;(function W(Ie){O.current=Ie,window.clearTimeout(I.current),Ie!==""&&(I.current=window.setTimeout(()=>W(""),1e3))})(U),ve&&setTimeout(()=>ve.focus())};c.useEffect(()=>()=>window.clearTimeout(I.current),[]),Xn();const M=c.useCallback(S=>L.current===k.current?.side&&Rc(S,k.current?.area),[]);return h.jsx(ac,{scope:n,searchRef:O,onItemEnter:c.useCallback(S=>{M(S)&&S.preventDefault()},[M]),onItemLeave:c.useCallback(S=>{M(S)||(R.current?.focus(),A(null))},[M]),onTriggerLeave:c.useCallback(S=>{M(S)&&S.preventDefault()},[M]),pointerGraceTimerRef:F,onPointerGraceIntentChange:c.useCallback(S=>{k.current=S},[]),children:h.jsx(G,{...D,children:h.jsx(Ut,{asChild:!0,trapped:r,onMountAutoFocus:_(i,S=>{S.preventDefault(),R.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:h.jsx(Gt,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:f,onFocusOutside:u,onInteractOutside:m,onDismiss:v,children:h.jsx(ua,{asChild:!0,...b,dir:y.dir,orientation:"vertical",loop:o,currentTabStopId:E,onCurrentTabStopIdChange:A,onEntryFocus:_(d,S=>{y.isUsingKeyboardRef.current||S.preventDefault()}),preventScrollOnEntryFocus:!0,children:h.jsx(Ys,{role:"menu","aria-orientation":"vertical","data-state":or(g.open),"data-radix-menu-content":"",dir:y.dir,...x,...p,ref:P,style:{outline:"none",...p.style},onKeyDown:_(p.onKeyDown,S=>{const J=S.target.closest("[data-radix-menu-content]")===S.currentTarget,me=S.ctrlKey||S.altKey||S.metaKey,Oe=S.key.length===1;J&&(S.key==="Tab"&&S.preventDefault(),!me&&Oe&&j(S.key));const De=R.current;if(S.target!==De||!Ja.includes(S.key))return;S.preventDefault();const ve=C().filter(W=>!W.disabled).map(W=>W.ref.current);Lo.includes(S.key)&&ve.reverse(),xc(ve)}),onBlur:_(e.onBlur,S=>{S.currentTarget.contains(S.target)||(window.clearTimeout(I.current),O.current="")}),onPointerMove:_(e.onPointerMove,je(S=>{const U=S.target,J=T.current!==S.clientX;if(S.currentTarget.contains(U)&&J){const me=S.clientX>T.current?"right":"left";L.current=me,T.current=S.clientX}}))})})})})})})});Bo.displayName=z;var fc="MenuGroup",sn=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return h.jsx(N.div,{role:"group",...o,ref:t})});sn.displayName=fc;var dc="MenuLabel",Go=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return h.jsx(N.div,{...o,ref:t})});Go.displayName=dc;var rt="MenuItem",Un="menu.itemSelect",mt=c.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...r}=e,i=c.useRef(null),s=Ge(rt,e.__scopeMenu),a=on(rt,e.__scopeMenu),d=B(t,i),l=c.useRef(!1),f=()=>{const u=i.current;if(!n&&u){const m=new CustomEvent(Un,{bubbles:!0,cancelable:!0});u.addEventListener(Un,v=>o?.(v),{once:!0}),Kn(u,m),m.defaultPrevented?l.current=!1:s.onClose()}};return h.jsx(Uo,{...r,ref:d,disabled:n,onClick:_(e.onClick,f),onPointerDown:u=>{e.onPointerDown?.(u),l.current=!0},onPointerUp:_(e.onPointerUp,u=>{l.current||u.currentTarget?.click()}),onKeyDown:_(e.onKeyDown,u=>{const m=a.searchRef.current!=="";n||m&&u.key===" "||kt.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})})});mt.displayName=rt;var Uo=c.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:r,...i}=e,s=on(rt,n),a=ko(n),d=c.useRef(null),l=B(t,d),[f,u]=c.useState(!1),[m,v]=c.useState("");return c.useEffect(()=>{const w=d.current;w&&v((w.textContent??"").trim())},[i.children]),h.jsx(ke.ItemSlot,{scope:n,disabled:o,textValue:r??m,children:h.jsx(fa,{asChild:!0,...a,focusable:!o,children:h.jsx(N.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...i,ref:l,onPointerMove:_(e.onPointerMove,je(w=>{o?s.onItemLeave(w):(s.onItemEnter(w),w.defaultPrevented||w.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:_(e.onPointerLeave,je(w=>s.onItemLeave(w))),onFocus:_(e.onFocus,()=>u(!0)),onBlur:_(e.onBlur,()=>u(!1))})})})}),pc="MenuCheckboxItem",Ho=c.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:o,...r}=e;return h.jsx(Xo,{scope:e.__scopeMenu,checked:n,children:h.jsx(mt,{role:"menuitemcheckbox","aria-checked":it(n)?"mixed":n,...r,ref:t,"data-state":cn(n),onSelect:_(r.onSelect,()=>o?.(it(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Ho.displayName=pc;var Vo="MenuRadioGroup",[mc,vc]=we(Vo,{value:void 0,onValueChange:()=>{}}),Ko=c.forwardRef((e,t)=>{const{value:n,onValueChange:o,...r}=e,i=ie(o);return h.jsx(mc,{scope:e.__scopeMenu,value:n,onValueChange:i,children:h.jsx(sn,{...r,ref:t})})});Ko.displayName=Vo;var zo="MenuRadioItem",Yo=c.forwardRef((e,t)=>{const{value:n,...o}=e,r=vc(zo,e.__scopeMenu),i=n===r.value;return h.jsx(Xo,{scope:e.__scopeMenu,checked:i,children:h.jsx(mt,{role:"menuitemradio","aria-checked":i,...o,ref:t,"data-state":cn(i),onSelect:_(o.onSelect,()=>r.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Yo.displayName=zo;var an="MenuItemIndicator",[Xo,hc]=we(an,{checked:!1}),qo=c.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...r}=e,i=hc(an,n);return h.jsx(ce,{present:o||it(i.checked)||i.checked===!0,children:h.jsx(N.span,{...r,ref:t,"data-state":cn(i.checked)})})});qo.displayName=an;var gc="MenuSeparator",Zo=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return h.jsx(N.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});Zo.displayName=gc;var wc="MenuArrow",Jo=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=pt(n);return h.jsx(Xs,{...r,...o,ref:t})});Jo.displayName=wc;var yc="MenuSub",[jl,Qo]=we(yc),Ne="MenuSubTrigger",er=c.forwardRef((e,t)=>{const n=ye(Ne,e.__scopeMenu),o=Ge(Ne,e.__scopeMenu),r=Qo(Ne,e.__scopeMenu),i=on(Ne,e.__scopeMenu),s=c.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:d}=i,l={__scopeMenu:e.__scopeMenu},f=c.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return c.useEffect(()=>f,[f]),c.useEffect(()=>{const u=a.current;return()=>{window.clearTimeout(u),d(null)}},[a,d]),h.jsx(tn,{asChild:!0,...l,children:h.jsx(Uo,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":or(n.open),...e,ref:ct(t,r.onTriggerChange),onClick:u=>{e.onClick?.(u),!(e.disabled||u.defaultPrevented)&&(u.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:_(e.onPointerMove,je(u=>{i.onItemEnter(u),!u.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(i.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:_(e.onPointerLeave,je(u=>{f();const m=n.content?.getBoundingClientRect();if(m){const v=n.content?.dataset.side,w=v==="right",p=w?-5:5,g=m[w?"left":"right"],y=m[w?"right":"left"];i.onPointerGraceIntentChange({area:[{x:u.clientX+p,y:u.clientY},{x:g,y:m.top},{x:y,y:m.top},{x:y,y:m.bottom},{x:g,y:m.bottom}],side:v}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(u),u.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:_(e.onKeyDown,u=>{const m=i.searchRef.current!=="";e.disabled||m&&u.key===" "||Qa[o.dir].includes(u.key)&&(n.onOpenChange(!0),n.content?.focus(),u.preventDefault())})})})});er.displayName=Ne;var tr="MenuSubContent",nr=c.forwardRef((e,t)=>{const n=$o(z,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,i=ye(z,e.__scopeMenu),s=Ge(z,e.__scopeMenu),a=Qo(tr,e.__scopeMenu),d=c.useRef(null),l=B(t,d);return h.jsx(ke.Provider,{scope:e.__scopeMenu,children:h.jsx(ce,{present:o||i.open,children:h.jsx(ke.Slot,{scope:e.__scopeMenu,children:h.jsx(rn,{id:a.contentId,"aria-labelledby":a.triggerId,...r,ref:l,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{s.isUsingKeyboardRef.current&&d.current?.focus(),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:_(e.onFocusOutside,f=>{f.target!==a.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:_(e.onEscapeKeyDown,f=>{s.onClose(),f.preventDefault()}),onKeyDown:_(e.onKeyDown,f=>{const u=f.currentTarget.contains(f.target),m=ec[s.dir].includes(f.key);u&&m&&(i.onOpenChange(!1),a.trigger?.focus(),f.preventDefault())})})})})})});nr.displayName=tr;function or(e){return e?"open":"closed"}function it(e){return e==="indeterminate"}function cn(e){return it(e)?"indeterminate":e?"checked":"unchecked"}function xc(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function bc(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function Cc(e,t,n){const r=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=bc(e,Math.max(i,0));r.length===1&&(s=s.filter(l=>l!==n));const d=s.find(l=>l.toLowerCase().startsWith(r.toLowerCase()));return d!==n?d:void 0}function Ec(e,t){const{x:n,y:o}=e;let r=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i],d=t[s],l=a.x,f=a.y,u=d.x,m=d.y;f>o!=m>o&&n<(u-l)*(o-f)/(m-f)+l&&(r=!r)}return r}function Rc(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Ec(n,t)}function je(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Sc=jo,Ac=tn,Pc=Wo,Mc=Bo,_c=sn,Oc=Go,Dc=mt,Ic=Ho,Tc=Ko,Nc=Yo,Lc=qo,Fc=Zo,kc=Jo,jc=er,$c=nr,vt="DropdownMenu",[Wc,$l]=pe(vt,[Fo]),H=Fo(),[Bc,rr]=Wc(vt),ir=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:r,defaultOpen:i,onOpenChange:s,modal:a=!0}=e,d=H(t),l=c.useRef(null),[f,u]=Pe({prop:r,defaultProp:i??!1,onChange:s,caller:vt});return h.jsx(Bc,{scope:t,triggerId:ue(),triggerRef:l,contentId:ue(),open:f,onOpenChange:u,onOpenToggle:c.useCallback(()=>u(m=>!m),[u]),modal:a,children:h.jsx(Sc,{...d,open:f,onOpenChange:u,dir:o,modal:a,children:n})})};ir.displayName=vt;var sr="DropdownMenuTrigger",ar=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...r}=e,i=rr(sr,n),s=H(n);return h.jsx(Ac,{asChild:!0,...s,children:h.jsx(N.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...r,ref:ct(t,i.triggerRef),onPointerDown:_(e.onPointerDown,a=>{!o&&a.button===0&&a.ctrlKey===!1&&(i.onOpenToggle(),i.open||a.preventDefault())}),onKeyDown:_(e.onKeyDown,a=>{o||(["Enter"," "].includes(a.key)&&i.onOpenToggle(),a.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});ar.displayName=sr;var Gc="DropdownMenuPortal",cr=e=>{const{__scopeDropdownMenu:t,...n}=e,o=H(t);return h.jsx(Pc,{...o,...n})};cr.displayName=Gc;var lr="DropdownMenuContent",ur=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=rr(lr,n),i=H(n),s=c.useRef(!1);return h.jsx(Mc,{id:r.contentId,"aria-labelledby":r.triggerId,...i,...o,ref:t,onCloseAutoFocus:_(e.onCloseAutoFocus,a=>{s.current||r.triggerRef.current?.focus(),s.current=!1,a.preventDefault()}),onInteractOutside:_(e.onInteractOutside,a=>{const d=a.detail.originalEvent,l=d.button===0&&d.ctrlKey===!0,f=d.button===2||l;(!r.modal||f)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ur.displayName=lr;var Uc="DropdownMenuGroup",Hc=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=H(n);return h.jsx(_c,{...r,...o,ref:t})});Hc.displayName=Uc;var Vc="DropdownMenuLabel",Kc=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=H(n);return h.jsx(Oc,{...r,...o,ref:t})});Kc.displayName=Vc;var zc="DropdownMenuItem",fr=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=H(n);return h.jsx(Dc,{...r,...o,ref:t})});fr.displayName=zc;var Yc="DropdownMenuCheckboxItem",Xc=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=H(n);return h.jsx(Ic,{...r,...o,ref:t})});Xc.displayName=Yc;var qc="DropdownMenuRadioGroup",Zc=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=H(n);return h.jsx(Tc,{...r,...o,ref:t})});Zc.displayName=qc;var Jc="DropdownMenuRadioItem",Qc=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=H(n);return h.jsx(Nc,{...r,...o,ref:t})});Qc.displayName=Jc;var el="DropdownMenuItemIndicator",tl=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=H(n);return h.jsx(Lc,{...r,...o,ref:t})});tl.displayName=el;var nl="DropdownMenuSeparator",ol=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=H(n);return h.jsx(Fc,{...r,...o,ref:t})});ol.displayName=nl;var rl="DropdownMenuArrow",il=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=H(n);return h.jsx(kc,{...r,...o,ref:t})});il.displayName=rl;var sl="DropdownMenuSubTrigger",al=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=H(n);return h.jsx(jc,{...r,...o,ref:t})});al.displayName=sl;var cl="DropdownMenuSubContent",ll=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=H(n);return h.jsx($c,{...r,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ll.displayName=cl;var Wl=ir,Bl=ar,Gl=cr,Ul=ur,Hl=fr,ht="Collapsible",[ul,dr]=pe(ht),[fl,ln]=ul(ht),pr=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:o,defaultOpen:r,disabled:i,onOpenChange:s,...a}=e,[d,l]=Pe({prop:o,defaultProp:r??!1,onChange:s,caller:ht});return h.jsx(fl,{scope:n,disabled:i,contentId:ue(),open:d,onOpenToggle:c.useCallback(()=>l(f=>!f),[l]),children:h.jsx(N.div,{"data-state":fn(d),"data-disabled":i?"":void 0,...a,ref:t})})});pr.displayName=ht;var mr="CollapsibleTrigger",vr=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,...o}=e,r=ln(mr,n);return h.jsx(N.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":fn(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...o,ref:t,onClick:_(e.onClick,r.onOpenToggle)})});vr.displayName=mr;var un="CollapsibleContent",hr=c.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=ln(un,e.__scopeCollapsible);return h.jsx(ce,{present:n||r.open,children:({present:i})=>h.jsx(dl,{...o,ref:t,present:i})})});hr.displayName=un;var dl=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:o,children:r,...i}=e,s=ln(un,n),[a,d]=c.useState(o),l=c.useRef(null),f=B(t,l),u=c.useRef(0),m=u.current,v=c.useRef(0),w=v.current,p=s.open||a,g=c.useRef(p),y=c.useRef(void 0);return c.useEffect(()=>{const x=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(x)},[]),re(()=>{const x=l.current;if(x){y.current=y.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const b=x.getBoundingClientRect();u.current=b.height,v.current=b.width,g.current||(x.style.transitionDuration=y.current.transitionDuration,x.style.animationName=y.current.animationName),d(o)}},[s.open,o]),h.jsx(N.div,{"data-state":fn(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!p,...i,ref:f,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:p&&r})});function fn(e){return e?"open":"closed"}var pl=pr,ml=vr,vl=hr,q="Accordion",hl=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[dn,gl,wl]=Wt(q),[gt,Vl]=pe(q,[wl,dr]),pn=dr(),gr=$.forwardRef((e,t)=>
vendor: 4,482 bytes, line 49
49{const{type:n,...o}=e,r=o,i=o;return h.jsx(dn.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?h.jsx(Cl,{...i,ref:t}):h.jsx(bl,{...r,ref:t})})});gr.displayName=q;var[wr,yl]=gt(q),[yr,xl]=gt(q,{collapsible:!1}),bl=$.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},collapsible:i=!1,...s}=e,[a,d]=Pe({prop:n,defaultProp:o??"",onChange:r,caller:q});return h.jsx(wr,{scope:e.__scopeAccordion,value:$.useMemo(()=>a?[a]:[],[a]),onItemOpen:d,onItemClose:$.useCallback(()=>i&&d(""),[i,d]),children:h.jsx(yr,{scope:e.__scopeAccordion,collapsible:i,children:h.jsx(xr,{...s,ref:t})})})}),Cl=$.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},...i}=e,[s,a]=Pe({prop:n,defaultProp:o??[],onChange:r,caller:q}),d=$.useCallback(f=>a((u=[])=>[...u,f]),[a]),l=$.useCallback(f=>a((u=[])=>u.filter(m=>m!==f)),[a]);return h.jsx(wr,{scope:e.__scopeAccordion,value:s,onItemOpen:d,onItemClose:l,children:h.jsx(yr,{scope:e.__scopeAccordion,collapsible:!0,children:h.jsx(xr,{...i,ref:t})})})}),[El,wt]=gt(q),xr=$.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:o,dir:r,orientation:i="vertical",...s}=e,a=$.useRef(null),d=B(a,t),l=gl(n),u=Bt(r)==="ltr",m=_(e.onKeyDown,v=>{if(!hl.includes(v.key))return;const w=v.target,p=l().filter(P=>!P.ref.current?.disabled),g=p.findIndex(P=>P.ref.current===w),y=p.length;if(g===-1)return;v.preventDefault();let x=g;const b=0,C=y-1,E=()=>{x=g+1,x>C&&(x=b)},A=()=>{x=g-1,x<b&&(x=C)};switch(v.key){case"Home":x=b;break;case"End":x=C;break;case"ArrowRight":i==="horizontal"&&(u?E():A());break;case"ArrowDown":i==="vertical"&&E();break;case"ArrowLeft":i==="horizontal"&&(u?A():E());break;case"ArrowUp":i==="vertical"&&A();break}const R=x%y;p[R].ref.current?.focus()});return h.jsx(El,{scope:n,disabled:o,direction:r,orientation:i,children:h.jsx(dn.Slot,{scope:n,children:h.jsx(N.div,{...s,"data-orientation":i,ref:d,onKeyDown:o?void 0:m})})})}),st="AccordionItem",[Rl,mn]=gt(st),br=$.forwardRef((e,t)=>{const{__scopeAccordion:n,value:o,...r}=e,i=wt(st,n),s=yl(st,n),a=pn(n),d=ue(),l=o&&s.value.includes(o)||!1,f=i.disabled||e.disabled;return h.jsx(Rl,{scope:n,open:l,disabled:f,triggerId:d,children:h.jsx(pl,{"data-orientation":i.orientation,"data-state":Pr(l),...a,...r,ref:t,disabled:f,open:l,onOpenChange:u=>{u?s.onItemOpen(o):s.onItemClose(o)}})})});br.displayName=st;var Cr="AccordionHeader",Er=$.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=wt(q,n),i=mn(Cr,n);return h.jsx(N.h3,{"data-orientation":r.orientation,"data-state":Pr(i.open),"data-disabled":i.disabled?"":void 0,...o,ref:t})});Er.displayName=Cr;var jt="AccordionTrigger",Rr=$.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=wt(q,n),i=mn(jt,n),s=xl(jt,n),a=pn(n);return h.jsx(dn.ItemSlot,{scope:n,children:h.jsx(ml,{"aria-disabled":i.open&&!s.collapsible||void 0,"data-orientation":r.orientation,id:i.triggerId,...a,...o,ref:t})})});Rr.displayName=jt;var Sr="AccordionContent",Ar=$.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=wt(q,n),i=mn(Sr,n),s=pn(n);return h.jsx(vl,{role:"region","aria-labelledby":i.triggerId,"data-orientation":r.orientation,...s,...o,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Ar.displayName=Sr;function Pr(e){return e?"open":"closed"}var Kl=gr,zl=br,Yl=Er,Xl=Rr,ql=Ar,yt="Dialog",[Mr,Zl]=pe(yt),[Sl,Z]=Mr(yt),_r=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:i,modal:s=!0}=e,a=c.useRef(null),d=c.useRef(null),[l,f]=Pe({prop:o,defaultProp:r??!1,onChange:i,caller:yt});return h.jsx(Sl,{scope:t,triggerRef:a,contentRef:d,contentId:ue(),titleId:ue(),descriptionId:ue(),open:l,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(u=>!u),[f]),modal:s,children:n})};_r.displayName=yt;var Or="DialogTrigger",Al=c.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=Z(Or,n),i=B(t,r.triggerRef);return h.jsx(N.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":gn(r.open),...o,ref:i,onClick:_(e.onClick,r.onOpenToggle)})});Al.displayName=Or;var vn="DialogPortal",[Pl,Dr]=Mr(vn,{forceMount:void 0}),Ir=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,i=Z(vn,t);return h.jsx(Pl,{scope:t,forceMount:n,children:c.Children.map(o,s=>h.jsx(ce,{present:n||i.open,children:h.jsx(Qt,{asChild:!0,container:r,children:s})}))})};Ir.displayName=vn;var at="DialogOverlay",Tr=c.forwardRef((e,t)=>
vendor: 4,179 bytes, lines 49-53
49{const n=Dr(at,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,i=Z(at,e.__scopeDialog);return i.modal?h.jsx(ce,{present:o||i.open,children:h.jsx(_l,{...r,ref:t})}):null});Tr.displayName=at;var Ml=Se("DialogOverlay.RemoveScroll"),_l=c.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=Z(at,n);return h.jsx(en,{as:Ml,allowPinchZoom:!0,shards:[r.contentRef],children:h.jsx(N.div,{"data-state":gn(r.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),ge="DialogContent",Nr=c.forwardRef((e,t)=>{const n=Dr(ge,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,i=Z(ge,e.__scopeDialog);return h.jsx(ce,{present:o||i.open,children:i.modal?h.jsx(Ol,{...r,ref:t}):h.jsx(Dl,{...r,ref:t})})});Nr.displayName=ge;var Ol=c.forwardRef((e,t)=>{const n=Z(ge,e.__scopeDialog),o=c.useRef(null),r=B(t,n.contentRef,o);return c.useEffect(()=>{const i=o.current;if(i)return Po(i)},[]),h.jsx(Lr,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_(e.onCloseAutoFocus,i=>{i.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:_(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:_(e.onFocusOutside,i=>i.preventDefault())})}),Dl=c.forwardRef((e,t)=>{const n=Z(ge,e.__scopeDialog),o=c.useRef(!1),r=c.useRef(!1);return h.jsx(Lr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(o.current||n.triggerRef.current?.focus(),i.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(o.current=!0,i.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const s=i.target;n.triggerRef.current?.contains(s)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),Lr=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:i,...s}=e,a=Z(ge,n),d=c.useRef(null),l=B(t,d);return Xn(),h.jsxs(h.Fragment,{children:[h.jsx(Ut,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:i,children:h.jsx(Gt,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":gn(a.open),...s,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(Tl,{titleId:a.titleId}),h.jsx(Ll,{contentRef:d,descriptionId:a.descriptionId})]})]})}),hn="DialogTitle",Fr=c.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=Z(hn,n);return h.jsx(N.h2,{id:r.titleId,...o,ref:t})});Fr.displayName=hn;var kr="DialogDescription",jr=c.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=Z(kr,n);return h.jsx(N.p,{id:r.descriptionId,...o,ref:t})});jr.displayName=kr;var $r="DialogClose",Il=c.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=Z($r,n);return h.jsx(N.button,{type:"button",...o,ref:t,onClick:_(e.onClick,()=>r.onOpenChange(!1))})});Il.displayName=$r;function gn(e){return e?"open":"closed"}var Wr="DialogTitleWarning",[Jl,Br]=oi(Wr,{contentName:ge,titleName:hn,docsSlug:"dialog"}),Tl=({titleId:e})=>{const t=Br(Wr),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 c.useEffect(()=>{if(e){const o=document.getElementById(e)}},[n,e]),null},Nl="DialogDescriptionWarning",Ll=({contentRef:e,descriptionId:t})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Br(Nl).contentName}}.`;return c.useEffect(()=>{const r=e.current?.getAttribute("aria-describedby");if(t&&r){const i=document.getElementById(t)}},[o,e,t]),null},Ql=_r,eu=Ir,tu=Tr,nu=Nr,ou=Fr,ru=jr;export{zs as A,Se as B,Ul as C,Gt as D,Ys as E,Ut as F,Xs as G,Yl as H,Hl as I,Ql as J,eu as K,nu as L,ou as M,ru as N,tu as O,Gl as P,$ as R,kl as S,Bl as T,Wl as a,Kl as b,zl as c,Xl as d,ql as e,pe as f,N as g,re as h,ce as i,h as j,Pe as k,B as l,_ as m,$s as n,uo as o,Bt as p,Ks as q,c as r,ue as s,Wt as t,ie as u,Qt as v,$t as w,Po as x,Xn as y,en as z};
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.