vendor: 8,985 bytes, lines 1-26
1import{e as Lr,c as Be,r as c,j as m,R as bn,a as me,u as Fr,S as Br,b as Wr}from"./index-BxfVeFUb.js";import{a as et,u as Y,B as Ve}from"./chunk-OOSFIX57-DBfcBa9f.js";import{A as Hr}from"./arrow-left-DOHhNCMp.js";import{m as $e}from"./proxy-Cycf4ovc.js";import{C as Vr}from"./check-CKnUBR5s.js";var We=Lr();/** 2 * @license lucide-react v0.542.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const $r=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Sn=Be("chevron-down",$r);/** 7 * @license lucide-react v0.542.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const zr=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Ur=Be("chevron-up",zr);/** 12 * @license lucide-react v0.542.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */const Kr=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Yr=Be("mail",Kr);/** 17 * @license lucide-react v0.542.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */const qr=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Xr=Be("map-pin",qr);/** 22 * @license lucide-react v0.542.0 - ISC 23 * 24 * This source code is licensed under the ISC license. 25 * See the LICENSE file in the root directory of this source tree. 26 */const Gr=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Zr=Be("send",Gr);var Qr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],V=Qr.reduce((e,t)=>{const n=et(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Jr(e,t){e&&We.flushSync(()=>e.dispatchEvent(t))}var Cn=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"}),eo="VisuallyHidden",to=c.forwardRef((e,t)=>m.jsx(V.span,{...e,ref:t,style:{...Cn,...e.style}}));to.displayName=eo;function Dt(e,t=[]){let n=[];function r(s,i){const a=c.createContext(i);a.displayName=s+"Context";const l=n.length;n=[...n,i];const d=p=>{const{scope:g,children:h,...w}=p,u=g?.[e]?.[l]||a,x=c.useMemo(()=>w,Object.values(w));return m.jsx(u.Provider,{value:x,children:h})};d.displayName=s+"Provider";function f(p,g){const h=g?.[e]?.[l]||a,w=c.useContext(h);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(i=>c.createContext(i));return function(a){const l=a?.[e]||s;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,no(o,...t)]}function no(...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(s){const i=r.reduce((a,{useScope:l,scopeName:d})=>{const p=l(s)[`__scope${d}`];return{...a,...p}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function ro(e){const t=e+"CollectionProvider",[n,r]=Dt(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=u=>{const{scope:x,children:y}=u,v=c.useRef(null),b=c.useRef(new Map).current;return m.jsx(o,{scope:x,itemMap:b,collectionRef:v,children:y})};i.displayName=t;const a=e+"CollectionSlot",l=et(a),d=c.forwardRef((u,x)=>{const{scope:y,children:v}=u,b=s(a,y),S=Y(x,b.collectionRef);return m.jsx(l,{ref:S,children:v})});d.displayName=a;const f=e+"CollectionItemSlot",p="data-radix-collection-item",g=et(f),h=c.forwardRef((u,x)=>{const{scope:y,children:v,...b}=u,S=c.useRef(null),C=Y(x,S),P=s(f,y);return c.useEffect(()=>(P.itemMap.set(S,{ref:S,...b}),()=>void P.itemMap.delete(S))),m.jsx(g,{[p]:"",ref:C,children:v})});h.displayName=f;function w(u){const x=s(e+"CollectionConsumer",u);return c.useCallback(()=>{const v=x.collectionRef.current;if(!v)return[];const b=Array.from(v.querySelectorAll(`[${p}]`));return Array.from(x.itemMap.values()).sort((P,E)=>b.indexOf(P.ref.current)-b.indexOf(E.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:d,ItemSlot:h},w,r]}function z(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var K=globalThis?.document?c.useLayoutEffect:()=>{},oo=bn[" useInsertionEffect ".trim().toString()]||K;function Yt({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=so({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const f=c.useRef(e!==void 0);c.useEffect(()=>{const p=f.current;p!==a&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${a?"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=a},[a,r])}const d=c.useCallback(f=>{if(a){const p=io(f)?f(e):f;p!==e&&i.current?.(p)}else s(f)},[a,e,s,i]);return[l,d]}function so({defaultProp:e,onChange:t}){const[n,r]=c.useState(e),o=c.useRef(n),s=c.useRef(t);return oo(()=>{s.current=t},[t]),c.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function io(e){return typeof e=="function"}function ao(e,t){return c.useReducer((n,r)=>t[n][r]??n,e)}var En=e=>{const{present:t,children:n}=e,r=co(t),o=typeof n=="function"?n({present:r.isPresent}):c.Children.only(n),s=lo(r.ref,uo(o));return typeof n=="function"||r.isPresent?c.cloneElement(o,{ref:s}):null};En.displayName="Presence";function co(e){const[t,n]=c.useState(),r=c.useRef(null),o=c.useRef(e),s=c.useRef("none"),i=e?"mounted":"unmounted",[a,l]=ao(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const d=ze(r.current);s.current=a==="mounted"?d:"none"},[a]),K(()=>{const d=r.current,f=o.current;if(f!==e){const g=s.current,h=ze(d);e?l("MOUNT"):h==="none"||d?.display==="none"?l("UNMOUNT"):l(f&&g!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),K(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=h=>{const u=ze(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&u&&(l("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},g=h=>{h.target===t&&(s.current=ze(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:c.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function qt(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function lo(...e){const t=c.useRef(e);return t.current=e,c.useCallback(n=>{const r=t.current;let o=!1;const s=r.map(i=>{const a=qt(i,n);return!o&&typeof a=="function"&&(o=!0),a});if(o)return()=>{for(let i=0;i<s.length;i++){const a=s[i];typeof a=="function"?a():qt(r[i],null)}}},[])}function ze(e){return e?.animationName||"none"}function uo(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 fo=bn[" useId ".trim().toString()]||(()=>{}),po=0;function _t(e){const[t,n]=c.useState(fo());return K(()=>{n(r=>r??String(po++))},[e]),t?`radix-${t}`:""}var mo=c.createContext(void 0);function ho(e){const t=c.useContext(mo);return e||t||"ltr"}function be(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>t.current?.(...n),[])}function vo(e,t=globalThis?.document){const n=be(e);c.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 go="DismissableLayer",Rt="dismissableLayer.update",xo="dismissableLayer.pointerDownOutside",wo="dismissableLayer.focusOutside",Xt,Pn=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Rn=c.forwardRef((e,t)=>
26{const{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:a,onDismiss:l,...d}=e,f=c.useContext(Pn),[p,g]=c.useState(null),h=p?.ownerDocument??globalThis?.document,[,w]=c.useState({}),u=Y(t,R=>g(R)),x=Array.from(f.layers),[y]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),v=x.indexOf(y),b=p?x.indexOf(p):-1,S=f.layersWithOutsidePointerEventsDisabled.size>0,C=b>=v,P=c.useRef(!1),E=So(R=>{const T=R.target;if(!(T instanceof Node))return;const I=[...f.branches].some(M=>M.contains(T));!C||I||(s?.(R),a?.(R),R.defaultPrevented||l?.())},{ownerDocument:h,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:P,dismissableSurfaces:f.dismissableSurfaces}),O=Co(R=>{if(r&&P.current)return;const T=R.target;[...f.branches].some(M=>M.contains(T))||(i?.(R),a?.(R),R.defaultPrevented||l?.())},h);return vo(R=>{b===f.layers.size-1&&(o?.(R),!R.defaultPrevented&&l&&(R.preventDefault(),l()))},h),c.useEffect(()=>{if(p)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Xt=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),Gt(),()=>{n&&(f.layersWithOutsidePointerEventsDisabled.delete(p),f.layersWithOutsidePointerEventsDisabled.size===0&&(h.body.style.pointerEvents=Xt))}},[p,h,n,f]),c.useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),Gt()
26)},[p,f]),c.useEffect(()=>{const R=()=>w({});return document.addEventListener(Rt,R),()=>document.removeEventListener(Rt,R)},[]),m.jsx(V.div,{...d,ref:u,style:{pointerEvents:S?C?"auto":"none":void 0,...e.style},onFocusCapture:z(e.onFocusCapture,O.onFocusCapture),onBlurCapture:z(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:z(e.onPointerDownCapture,E.onPointerDownCapture)})});Rn.displayName=go;var yo="DismissableLayerBranch",bo=c.forwardRef((e,t)=>{const n=c.useContext(Pn),r=c.useRef(null),o=Y(t,r);return c.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),m.jsx(V.div,{...e,ref:o})});bo.displayName=yo;function So(e,t){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:s}=t,i=be(e),a=c.useRef(!1),l=c.useRef(!1),d=c.useRef(new Map),f=c.useRef(()=>{});return c.useEffect(()=>{function p(){l.current=!1,o.current=!1,d.current.clear()}function g(){return Array.from(d.current.values()).some(Boolean)}function h(v){if(!l.current)return;const b=v.target;b instanceof Node&&[...s].some(C=>C.contains(b))||d.current.set(v.type,!0),v.type==="click"&&window.setTimeout(()=>{l.current&&f.current()},0)}function w(v){l.current&&d.current.set(v.type,!1)}const u=v=>{if(v.target&&!a.current){let b=function(){n.removeEventListener("click",f.current);const C=g();p(),C||Nn(xo,i,S,{discrete:!0})};const S={originalEvent:v};l.current=!0,o.current=r&&v.button===0,d.current.clear(),!r||v.button!==0?b():(n.removeEventListener("click",f.current),f.current=b,n.addEventListener("click",f.current,{once:!0}))}else n.removeEventListener("click",f.current),p();a.current=!1},x=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const v of x)n.addEventListener(v,h,!0),n.addEventListener(v,w);const y=window.setTimeout(()=>{n.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(y),n.removeEventListener("pointerdown",u),n.removeEventListener("click",f.current);for(const v of x)n.removeEventListener(v,h,!0),n.removeEventListener(v,w)}},[n,i,r,o,s]),{onPointerDownCapture:()=>a.current=!0}}function Co(e,t=globalThis?.document){const n=be(e),r=c.useRef(!1);return c.useEffect(()=>{const o=s=>{s.target&&!r.current&&Nn(wo,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Gt(){const e=new CustomEvent(Rt);document.dispatchEvent(e)}function Nn(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Jr(o,s):o.dispatchEvent(s)}var xt="focusScope.autoFocusOnMount",wt="focusScope.autoFocusOnUnmount",Zt={bubbles:!1,cancelable:!0},Eo="FocusScope",An=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,l]=c.useState(null),d=be(o),f=be(s),p=c.useRef(null),g=Y(t,u=>l(u)),h=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let u=function(b){if(h.paused||!a)return;const S=b.target;a.contains(S)?p.current=S:pe(p.current,{select:!0})},x=function(b){if(h.paused||!a)return;const S=b.relatedTarget;S!==null&&(a.contains(S)||pe(p.current,{select:!0}))},y=function(b){if(document.activeElement===document.body)for(const C of b)C.removedNodes.length>0&&pe(a)};document.addEventListener("focusin",u),document.addEventListener("focusout",x);const v=new MutationObserver(y);return a&&v.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",x),v.disconnect()}}},[r,a,h.paused]),c.useEffect(()=>{if(a){Jt.add(h);const u=document.activeElement;if(!a.contains(u)){const y=new CustomEvent(xt,Zt);a.addEventListener(xt,d),a.dispatchEvent(y),y.defaultPrevented||(Po(To(On(a)),{select:!0}),document.activeElement===u&&pe(a))}return()=>{a.removeEventListener(xt,d),setTimeout(()=>{const y=new CustomEvent(wt,Zt);a.addEventListener(wt,f),a.dispatchEvent(y),y.defaultPrevented||pe(u??document.body,{select:!0}),a.removeEventListener(wt,f),Jt.remove(h)}
vendor: 15,592 bytes, lines 26-66
26,0)}}},[a,d,f,h]);const w=c.useCallback(u=>{if(!n&&!r||h.paused)return;const x=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,y=document.activeElement;if(x&&y){const v=u.currentTarget,[b,S]=Ro(v);b&&S?!u.shiftKey&&y===S?(u.preventDefault(),n&&pe(b,{select:!0})):u.shiftKey&&y===b&&(u.preventDefault(),n&&pe(S,{select:!0})):y===v&&u.preventDefault()}},[n,r,h.paused]);return m.jsx(V.div,{tabIndex:-1,...i,ref:g,onKeyDown:w})});An.displayName=Eo;function Po(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(pe(r,{select:t}),document.activeElement!==n)return}function Ro(e){const t=On(e),n=Qt(t,e),r=Qt(t.reverse(),e);return[n,r]}function On(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 Qt(e,t){for(const n of e)if(!No(n,{upTo:t}))return n}function No(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 Ao(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&&Ao(e)&&t&&e.select()}}var Jt=Oo();function Oo(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=en(e,t),e.unshift(t)},remove(t){e=en(e,t),e[0]?.resume()}}}function en(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function To(e){return e.filter(t=>t.tagName!=="A")}var Io="Portal",Tn=c.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=c.useState(!1);K(()=>s(!0),[]);const i=n||o&&globalThis?.document?.body;return i?We.createPortal(m.jsx(V.div,{...r,ref:t}),i):null});Tn.displayName=Io;var Ue=0,Re=null;function Mo(){c.useEffect(()=>{Re||(Re={start:tn(),end:tn()});const{start:e,end:t}=Re;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Ue++,()=>{Ue===1&&(Re?.start.remove(),Re?.end.remove(),Re=null),Ue=Math.max(0,Ue-1)}},[])}function tn(){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 re=function(){return re=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},re.apply(this,arguments)};function In(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 ko(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Ze="right-scroll-bar-position",Qe="width-before-scroll-bar",jo="with-scroll-bars-hidden",Do="--removed-body-scroll-bar-size";function yt(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function _o(e,t){var n=c.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 Lo=typeof window<"u"?c.useLayoutEffect:c.useEffect,nn=new WeakMap;function Fo(e,t){var n=_o(null,function(r){return e.forEach(function(o){return yt(o,r)})});return Lo(function(){var r=nn.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||yt(a,null)}),s.forEach(function(a){o.has(a)||yt(a,i)})}nn.set(n,e)},[e]),n}function Bo(e){return e}function Wo(e,t){t===void 0&&(t=Bo);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(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var l=function(){var f=i;i=[],f.forEach(s)},d=function(){return Promise.resolve().then(l)};d(),n={push:function(f){i.push(f),d()},filter:function(f){return i=i.filter(f),n}}}};return o}function Ho(e){e===void 0&&(e={});var t=Wo(null);return t.options=re({async:!0,ssr:!1},e),t}var Mn=function(e){var t=e.sideCar,n=In(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 c.createElement(r,re({},n))};Mn.isSideCarExport=!0;function Vo(e,t){return e.useMedium(t),Mn}var kn=Ho(),bt=function(){},it=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:bt,onWheelCapture:bt,onTouchMoveCapture:bt}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,l=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,g=e.sideCar,h=e.noRelative,w=e.noIsolation,u=e.inert,x=e.allowPinchZoom,y=e.as,v=y===void 0?"div":y,b=e.gapMode,S=In(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=g,P=Fo([n,t]),E=re(re({},S),o);return c.createElement(c.Fragment,null,f&&c.createElement(C,{sideCar:kn,removeScrollBar:d,shards:p,noRelative:h,noIsolation:w,inert:u,setCallbacks:s,allowPinchZoom:!!x,lockRef:n,gapMode:b}),i?c.cloneElement(c.Children.only(a),re(re({},E),{ref:P})):c.createElement(v,re({},E,{className:l,ref:P}),a))});it.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};it.classNames={fullWidth:Qe,zeroRight:Ze};var $o=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zo(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=$o();return t&&e.setAttribute("nonce",t),e}function Uo(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ko(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Yo=function(){var e=0,t=null;return{add:function(n){e==0&&(t=zo())&&(Uo(t,n),Ko(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},qo=function(){var e=Yo();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},jn=function(){var e=qo(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Xo={left:0,top:0,right:0,gap:0},St=function(e){return parseInt(e||"",10)||0},Go=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[St(n),St(r),St(o)]},Zo=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Xo;var t=Go(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])}},Qo=jn(),Ie="data-scroll-locked",Jo=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),` 27 .`.concat(jo,` { 28 overflow: hidden `).concat(r,`; 29 padding-right: `).concat(a,"px ").concat(r,`; 30 } 31 body[`).concat(Ie,`] { 32 overflow: hidden `).concat(r,`; 33 overscroll-behavior: contain; 34 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 35 padding-left: `.concat(o,`px; 36 padding-top: `).concat(s,`px; 37 padding-right: `).concat(i,`px; 38 margin-left:0; 39 margin-top:0; 40 margin-right: `).concat(a,"px ").concat(r,`; 41 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),` 42 } 43 44 .`).concat(Ze,` { 45 right: `).concat(a,"px ").concat(r,`; 46 } 47 48 .`).concat(Qe,` { 49 margin-right: `).concat(a,"px ").concat(r,`; 50 } 51 52 .`).concat(Ze," .").concat(Ze,` { 53 right: 0 `).concat(r,`; 54 } 55 56 .`).concat(Qe," .").concat(Qe,` { 57 margin-right: 0 `).concat(r,`; 58 } 59 60 body[`).concat(Ie,`] { 61 `).concat(Do,": ").concat(a,`px; 62 } 63`)},rn=function(){var e=parseInt(document.body.getAttribute(Ie)||"0",10);return isFinite(e)?e:0},es=function(){c.useEffect(function(){return document.body.setAttribute(Ie,(rn()+1).toString()),function(){var e=rn()-1;e<=0?document.body.removeAttribute(Ie):document.body.setAttribute(Ie,e.toString())}},[])},ts=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;es();var s=c.useMemo(function(){return Zo(o)},[o]);return c.createElement(Qo,{styles:Jo(s,!t,o,n?"":"!important")})},Nt=!1;if(typeof window<"u")try{var Ke=Object.defineProperty({},"passive",{get:function(){return Nt=!0,!0}});window.addEventListener("test",Ke,Ke),window.removeEventListener("test",Ke,Ke)}catch{Nt=!1}var Ne=Nt?{passive:!1}:!1,ns=function(e){return e.tagName==="TEXTAREA"},Dn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!ns(e)&&n[t]==="visible")},rs=function(e){return Dn(e,"overflowY")},os=function(e){return Dn(e,"overflowX")},on=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=_n(e,r);if(o){var s=Ln(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ss=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},is=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},_n=function(e,t){return e==="v"?rs(t):os(t)},Ln=function(e,t){return e==="v"?ss(t):is(t)},as=function(e,t){return e==="h"&&t==="rtl"?-1:1},cs=function(e,t,n,r,o){var s=as(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,l=t.contains(a),d=!1,f=i>0,p=0,g=0;do{if(!a)break;var h=Ln(e,a),w=h[0],u=h[1],x=h[2],y=u-x-s*w;(w||y)&&_n(e,a)&&(p+=y,g+=w);var v=a.parentNode;a=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(f&&Math.abs(p)<1||!f&&Math.abs(g)<1)&&(d=!0),d},Ye=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},sn=function(e){return[e.deltaX,e.deltaY]},an=function(e){return e&&"current"in e?e.current:e},ls=function(e,t){return e[0]===t[0]&&e[1]===t[1]},us=function(e){return` 64 .block-interactivity-`.concat(e,` {pointer-events: none;} 65 .allow-interactivity-`).concat(e,` {pointer-events: all;} 66`)},ds=0,Ae=[];function fs(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(ds++)[0],s=c.useState(jn)[0],i=c.useRef(e);c.useEffect(function(){i.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var u=ko([e.lockRef.current],(e.shards||[]).map(an),!0).filter(Boolean);return u.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),u.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=c.useCallback(function(u,x){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!i.current.allowPinchZoom;var y=Ye(u),v=n.current,b="deltaX"in u?u.deltaX:v[0]-y[0],S="deltaY"in u?u.deltaY:v[1]-y[1],C,P=u.target,E=Math.abs(b)>Math.abs(S)?"h":"v";if("touches"in u&&E==="h"&&P.type==="range")return!1;var O=window.getSelection(),R=O&&O.anchorNode,T=R?R===P||R.contains(P):!1;if(T)return!1;var I=on(E,P);if(!I)return!0;if(I?C=E:(C=E==="v"?"h":"v",I=on(E,P)),!I)return!1;if(!r.current&&"changedTouches"in u&&(b||S)&&(r.current=C),!C)return!0;var M=r.current||C;return cs(M,x,u,M==="h"?b:S)},[]),l=c.useCallback(function(u){var x=u;if(!(!Ae.length||Ae[Ae.length-1]!==s)){var y="deltaY"in x?sn(x):Ye(x),v=t.current.filter(function(C){return C.name===x.type&&(C.target===x.target||x.target===C.shadowParent)&&ls(C.delta,y)})[0];if(v&&v.should){x.cancelable&&x.preventDefault();return}if(!v){var b=(i.current.shards||[]).map(an).filter(Boolean).filter(function(C){return C.contains(x.target)}),S=b.length>0?a(x,b[0]):!i.current.noIsolation;S&&x.cancelable&&x.preventDefault()}}},[]),d=c.useCallback(function(u,x,y,v){var b={name:u,delta:x,target:y,should:v,shadowParent:ps(y)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(S){return S!==b})},1)},[]),f=c.useCallback(function(u){n.current=Ye(u),r.current=void 0},[]),p=c.useCallback(function(u){d(u.type,sn(u),u.target,a(u,e.lockRef.current))},[]),g=c.useCallback(function(u){d(u.type,Ye(u),u.target,a(u,e.lockRef.current))},[]);c.useEffect(function(){return Ae.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",l,Ne),document.addEventListener("touchmove",l,Ne),document.addEventListener("touchstart",f,Ne),function(){Ae=Ae.filter(function(u){return u!==s}),document.removeEventListener("wheel",l,Ne),document.removeEventListener("touchmove",l,Ne),document.removeEventListener("touchstart",f,Ne)}},[]);var h=e.removeScrollBar,w=e.inert;return c.createElement(c.Fragment,null,w?c.createElement(s,{styles:us(o)}):null,h?c.createElement(ts,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ps(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ms=Vo(kn,fs);var Fn=c.forwardRef(function(e,t){return c.createElement(it,re({},e,{ref:t,sideCar:ms}))});Fn.classNames=it.classNames;var hs=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Oe=new WeakMap,qe=new WeakMap,Xe={},Ct=0,Bn=function(e){return e&&(e.host||Bn(e.parentNode))},vs=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Bn(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})},gs=function(e,t,n,r){var o=vs(t,Array.isArray(e)?e:[e]);Xe[n]||(Xe[n]=new WeakMap);var s=Xe[n],i=[],a=new Set,l=new Set(o),d=function(p){!p||a.has(p)||(a.add(p),d(p.parentNode))};o.forEach(d);var f=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(g){if(a.has(g))f(g);else try{var h=g.getAttribute(r),w=h!==null&&h!=="false",u=(Oe.get(g)||0)+1,x=(s.get(g)||0)+1;Oe.set(g,u),s.set(g,x),i.push(g),u===1&&w&&qe.set(g,!0),x===1&&g.setAttribute(n,"true"),w||g.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",g,y)}})};return f(t),a.clear(),Ct++,function(){i.forEach(function(p){var g=Oe.get(p)-1,h=s.get(p)-1;Oe.set(p,g),s.set(p,h),g||(qe.has(p)||p.removeAttribute(r),qe.delete(p)),h||p.removeAttribute(n)}),Ct--,Ct||(Oe=new WeakMap,Oe=new WeakMap,qe=new WeakMap,Xe={})}},xs=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=hs(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),gs(r,o,n,"aria-hidden")):function(){return null}};function ws(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function ys(e){const[t,n]=c.useState(void 0);return K(()=>
vendor: 13,236 bytes, line 66
66{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,d=Array.isArray(l)?l[0]:l;i=d.inlineSize,a=d.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const bs=["top","right","bottom","left"],he=Math.min,G=Math.max,tt=Math.round,Ge=Math.floor,se=e=>({x:e,y:e}),Ss={left:"right",right:"left",bottom:"top",top:"bottom"},Cs={start:"end",end:"start"};function At(e,t,n){return G(e,he(t,n))}function le(e,t){return typeof e=="function"?e(t):e}function ue(e){return e.split("-")[0]}function je(e){return e.split("-")[1]}function Lt(e){return e==="x"?"y":"x"}function Ft(e){return e==="y"?"height":"width"}const Es=new Set(["top","bottom"]);function oe(e){return Es.has(ue(e))?"y":"x"}function Bt(e){return Lt(oe(e))}function Ps(e,t,n){n===void 0&&(n=!1);const r=je(e),o=Bt(e),s=Ft(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=nt(i)),[i,nt(i)]}function Rs(e){const t=nt(e);return[Ot(e),t,Ot(t)]}function Ot(e){return e.replace(/start|end/g,t=>Cs[t])}const cn=["left","right"],ln=["right","left"],Ns=["top","bottom"],As=["bottom","top"];function Os(e,t,n){switch(e){case"top":case"bottom":return n?t?ln:cn:t?cn:ln;case"left":case"right":return t?Ns:As;default:return[]}}function Ts(e,t,n,r){const o=je(e);let s=Os(ue(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Ot)))),s}function nt(e){return e.replace(/left|right|bottom|top/g,t=>Ss[t])}function Is(e){return{top:0,right:0,bottom:0,left:0,...e}}function Wn(e){return typeof e!="number"?Is(e):{top:e,right:e,bottom:e,left:e}}function rt(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 un(e,t,n){let{reference:r,floating:o}=e;const s=oe(t),i=Bt(t),a=Ft(i),l=ue(t),d=s==="y",f=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,g=r[a]/2-o[a]/2;let h;switch(l){case"top":h={x:f,y:r.y-o.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:p};break;case"left":h={x:r.x-o.width,y:p};break;default:h={x:r.x,y:r.y}}switch(je(t)){case"start":h[i]-=g*(n&&d?-1:1);break;case"end":h[i]+=g*(n&&d?-1:1);break}return h}const Ms=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=un(d,r,l),g=r,h={},w=0;for(let u=0;u<a.length;u++){const{name:x,fn:y}=a[u],{x:v,y:b,data:S,reset:C}=await y({x:f,y:p,initialPlacement:r,placement:g,strategy:o,middlewareData:h,rects:d,platform:i,elements:{reference:e,floating:t}});f=v??f,p=b??p,h={...h,[x]:{...h[x],...S}},C&&w<=50&&(w++,typeof C=="object"&&(C.placement&&(g=C.placement),C.rects&&(d=C.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:f,y:p}=un(d,g,l)),u=-1)}return{x:f,y:p,placement:g,strategy:o,middlewareData:h}};async function Le(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:g=!1,padding:h=0}=le(t,e),w=Wn(h),x=a[g?p==="floating"?"reference":"floating":p],y=rt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:d,rootBoundary:f,strategy:l})),v=p==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(b))?await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1}:{x:1,y:1},C=rt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:b,strategy:l}):v);return{top:(y.top-C.top+w.top)/S.y,bottom:(C.bottom-y.bottom+w.bottom)/S.y,left:(y.left-C.left+w.left)/S.x,right:(C.right-y.right+w.right)/S.x}}const ks=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:d,padding:f=0}=le(e,t)||{};if(d==null)return{};const p=Wn(f),g={x:n,y:r},h=Bt(o),w=Ft(h),u=await i.getDimensions(d),x=h==="y",y=x?"top":"left",v=x?"bottom":"right",b=x?"clientHeight":"clientWidth",S=s.reference[w]+s.reference[h]-g[h]-s.floating[w],C=g[h]-s.reference[h],P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let E=P?P[b]:0;(!E||!await(i.isElement==null?void 0:i.isElement(P)))&&(E=a.floating[b]||s.floating[w]);const O=S/2-C/2,R=E/2-u[w]/2-1,T=he(p[y],R),I=he(p[v],R),M=T,D=E-u[w]-I,k=E/2-u[w]/2+O,W=At(M,k,D),j=!l.arrow&&je(o)!=null&&k!==W&&s.reference[w]/2-(k<M?T:I)-u[w]/2<0,_=j?k<M?k-M:k-D:0;return{[h]:g[h]+_,data:{[h]:W,centerOffset:k-W-_,...j&&{alignmentOffset:_}},reset:j}}}),js=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:u=!0,...x}=le(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=ue(o),v=oe(a),b=ue(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(d.floating)),C=g||(b||!u?[nt(a)]:Rs(a)),P=w!=="none";!g&&P&&C.push(...Ts(a,u,w,S));const E=[a,...C],O=await Le(t,x),R=[];let T=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&R.push(O[y]),p){const k=Ps(o,i,S);R.push(O[k[0]],O[k[1]])}if(T=[...T,{placement:o,overflows:R}],!R.every(k=>k<=0)){var I,M;const k=(((I=s.flip)==null?void 0:I.index)||0)+1,W=E[k];if(W&&(!(p==="alignment"?v!==oe(W):!1)||T.every(N=>oe(N.placement)===v?N.overflows[0]>0:!0)))return{data:{index:k,overflows:T},reset:{placement:W}};let j=(M=T.filter(_=>_.overflows[0]<=0).sort((_,N)=>_.overflows[1]-N.overflows[1])[0])==null?void 0:M.placement;if(!j)switch(h){case"bestFit":{var D;const _=(D=T.filter(N=>{if(P){const L=oe(N.placement);return L===v||L==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(L=>L>0).reduce((L,U)=>L+U,0)]).sort((N,L)=>N[1]-L[1])[0])==null?void 0:D[0];_&&(j=_);break}case"initialPlacement":j=a;break}if(o!==j)return{reset:{placement:j}}}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 fn(e){return bs.some(t=>e[t]>=0)}const Ds=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=le(e,t);switch(r){case"referenceHidden":{const s=await Le(t,{...o,elementContext:"reference"}),i=dn(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:fn(i)}}}case"escaped":{const s=await Le(t,{...o,altBoundary:!0}),i=dn(s,n.floating);return{data:{escapedOffsets:i,escaped:fn(i)}}}default:return{}}}}},Hn=new Set(["left","top"]);async function _s(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=ue(n),a=je(n),l=oe(n)==="y",d=Hn.has(i)?-1:1,f=s&&l?-1:1,p=le(t,e);let{mainAxis:g,crossAxis:h,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof w=="number"&&(h=a==="end"?w*-1:w),l?{x:h*f,y:g*d}:{x:g*d,y:h*f}}const Ls=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await _s(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},Fs=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:x=>{let{x:y,y:v}=x;return{x:y,y:v}}},...l}=le(e,t),d={x:n,y:r},f=await Le(t,l),p=oe(ue(o)),g=Lt(p);let h=d[g],w=d[p];if(s){const x=g==="y"?"top":"left",y=g==="y"?"bottom":"right",v=h+f[x],b=h-f[y];h=At(v,h,b)}if(i){const x=p==="y"?"top":"left",y=p==="y"?"bottom":"right",v=w+f[x],b=w-f[y];w=At(v,w,b)}const u=a.fn({...t,[g]:h,[p]:w});return{...u,data:{x:u.x-n,y:u.y-r,enabled:{[g]:s,[p]:i}}}}}},Bs=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:d=!0}=le(e,t),f={x:n,y:r},p=oe(o),g=Lt(p);let h=f[g],w=f[p];const u=le(a,t),x=typeof u=="number"?{mainAxis:u,crossAxis:0}:{mainAxis:0,crossAxis:0,...u};if(l){const b=g==="y"?"height":"width",S=s.reference[g]-s.floating[b]+x.mainAxis,C=s.reference[g]+s.reference[b]-x.mainAxis;h<S?h=S:h>C&&(h=C)}if(d){var y,v;const b=g==="y"?"width":"height",S=Hn.has(ue(o)),C=s.reference[p]-s.floating[b]+(S&&((y=i.offset)==null?void 0:y[p])||0)+(S?0:x.crossAxis),P=s.reference[p]+s.reference[b]+(S?0:((v=i.offset)==null?void 0:v[p])||0)-(S?x.crossAxis:0);w<C?w=C:w>P&&(w=P)}return{[g]:h,[p]:w}}}},Ws=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...d}=le(e,t),f=await Le(t,d),p=ue(o),g=je(o),h=oe(o)==="y",{width:w,height:u}=s.floating;let x,y;p==="top"||p==="bottom"?(x=p,y=g===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(y=p,x=g==="end"?"top":"bottom");const v=u-f.top-f.bottom,b=w-f.left-f.right,S=he(u-f[x],v),C=he(w-f[y],b),P=!t.middlewareData.shift;let E=S,O=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=v),P&&!g){const T=G(f.left,0),I=G(f.right,0),M=G(f.top,0),D=G(f.bottom,0);h?O=w-2*(T!==0||I!==0?T+I:G(f.left,f.right)):E=u-2*(M!==0||D!==0?M+D:G(f.top,f.bottom))}await l({...t,availableWidth:O,availableHeight:E});const R=await i.getDimensions(a.floating);return w!==R.width||u!==R.height?{reset:{rects:!0}}:{}}}};function at(){return typeof window<"u"}function De(e){return Vn(e)?(e.nodeName||"").toLowerCase():"#document"}function Z(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ae(e){var t;return(t=(Vn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Vn(e){return at()?e instanceof Node||e instanceof Z(e).Node:!1}function ee(e){return at()?e instanceof Element||e instanceof Z(e).Element:!1}function ie(e){return at()?e instanceof HTMLElement||e instanceof Z(e).HTMLElement:!1}function pn(e){return!at()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Z(e).ShadowRoot}const Hs=new Set(["inline","contents"]);function He(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=te(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Hs.has(o)}const Vs=new Set(["table","td","th"]);function $s(e){return Vs.has(De(e))}const zs=[":popover-open",":modal"];function ct(e){return zs.some(t=>{try{return e.matches(t)}catch{return!1}})}const Us=["transform","translate","scale","rotate","perspective"],Ks=["transform","translate","scale","rotate","perspective","filter"],Ys=["paint","layout","strict","content"];function Wt(e){const t=Ht(),n=ee(e)?te(e):e;return Us.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Ks.some(r=>(n.willChange||"").includes(r))||Ys.some(r=>(n.contain||"").includes(r))}function qs(e){let t=ve(e);for(;ie(t)&&!ke(t);){if(Wt(t))return t;if(ct(t))return null;t=ve(t)}return null}function Ht(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Xs=new Set(["html","body","#document"]);function ke(e){return Xs.has(De(e))}function te(e){return Z(e).getComputedStyle(e)}function lt(e){return ee(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ve(e){if(De(e)==="html")return e;const t=e.assignedSlot||e.parentNode||pn(e)&&e.host||ae(e);return pn(t)?t.host:t}function $n(e){const t=ve(e);return ke(t)?e.ownerDocument?e.ownerDocument.body:e.body:ie(t)&&He(t)?t:$n(t)}function Fe(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=$n(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=Z(o);if(s){const a=Tt(i);return t.concat(i,i.visualViewport||[],He(o)?o:[],a&&n?Fe(a):[])}return t.concat(o,Fe(o,[],n))}function Tt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function zn(e){const t=te(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ie(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=tt(n)!==s||tt(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Vt(e){return ee(e)?e:e.contextElement}function Me(e){const t=Vt(e);if(!ie(t))return se(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=zn(t);let i=(s?tt(n.width):n.width)/r,a=(s?tt(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const Gs=se(0);function Un(e){const t=Z(e);return!Ht()||!t.visualViewport?Gs:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}
vendor: 13,018 bytes, line 66
66function Zs(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Z(e)?!1:t}function Se(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Vt(e);let i=se(1);t&&(r?ee(r)&&(i=Me(r)):i=Me(e));const a=Zs(s,n,r)?Un(s):se(0);let l=(o.left+a.x)/i.x,d=(o.top+a.y)/i.y,f=o.width/i.x,p=o.height/i.y;if(s){const g=Z(s),h=r&&ee(r)?Z(r):r;let w=g,u=Tt(w);for(;u&&r&&h!==w;){const x=Me(u),y=u.getBoundingClientRect(),v=te(u),b=y.left+(u.clientLeft+parseFloat(v.paddingLeft))*x.x,S=y.top+(u.clientTop+parseFloat(v.paddingTop))*x.y;l*=x.x,d*=x.y,f*=x.x,p*=x.y,l+=b,d+=S,w=Z(u),u=Tt(w)}}return rt({width:f,height:p,x:l,y:d})}function ut(e,t){const n=lt(e).scrollLeft;return t?t.left+n:Se(ae(e)).left+n}function Kn(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-ut(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Qs(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=ae(r),a=t?ct(t.floating):!1;if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},d=se(1);const f=se(0),p=ie(r);if((p||!p&&!s)&&((De(r)!=="body"||He(i))&&(l=lt(r)),ie(r))){const h=Se(r);d=Me(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}const g=i&&!p&&!s?Kn(i,l):se(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+f.x+g.x,y:n.y*d.y-l.scrollTop*d.y+f.y+g.y}}function Js(e){return Array.from(e.getClientRects())}function ei(e){const t=ae(e),n=lt(e),r=e.ownerDocument.body,o=G(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=G(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+ut(e);const a=-n.scrollTop;return te(r).direction==="rtl"&&(i+=G(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const mn=25;function ti(e,t){const n=Z(e),r=ae(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const f=Ht();(!f||f&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const d=ut(r);if(d<=0){const f=r.ownerDocument,p=f.body,g=getComputedStyle(p),h=f.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,w=Math.abs(r.clientWidth-p.clientWidth-h);w<=mn&&(s-=w)}else d<=mn&&(s+=d);return{width:s,height:i,x:a,y:l}}const ni=new Set(["absolute","fixed"]);function ri(e,t){const n=Se(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=ie(e)?Me(e):se(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=o*s.x,d=r*s.y;return{width:i,height:a,x:l,y:d}}function hn(e,t,n){let r;if(t==="viewport")r=ti(e,n);else if(t==="document")r=ei(ae(e));else if(ee(t))r=ri(t,n);else{const o=Un(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return rt(r)}function Yn(e,t){const n=ve(e);return n===t||!ee(n)||ke(n)?!1:te(n).position==="fixed"||Yn(n,t)}function oi(e,t){const n=t.get(e);if(n)return n;let r=Fe(e,[],!1).filter(a=>ee(a)&&De(a)!=="body"),o=null;const s=te(e).position==="fixed";let i=s?ve(e):e;for(;ee(i)&&!ke(i);){const a=te(i),l=Wt(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&ni.has(o.position)||He(i)&&!l&&Yn(e,i))?r=r.filter(f=>f!==i):o=a,i=ve(i)}return t.set(e,r),r}function si(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?ct(t)?[]:oi(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((d,f)=>{const p=hn(t,f,o);return d.top=G(p.top,d.top),d.right=he(p.right,d.right),d.bottom=he(p.bottom,d.bottom),d.left=G(p.left,d.left),d},hn(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function ii(e){const{width:t,height:n}=zn(e);return{width:t,height:n}}function ai(e,t,n){const r=ie(t),o=ae(t),s=n==="fixed",i=Se(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=se(0);function d(){l.x=ut(o)}if(r||!r&&!s)if((De(t)!=="body"||He(o))&&(a=lt(t)),r){const h=Se(t,!0,s,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&d();s&&!r&&o&&d();const f=o&&!r&&!s?Kn(o,a):se(0),p=i.left+a.scrollLeft-l.x-f.x,g=i.top+a.scrollTop-l.y-f.y;return{x:p,y:g,width:i.width,height:i.height}}function Et(e){return te(e).position==="static"}function vn(e,t){if(!ie(e)||te(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ae(e)===n&&(n=n.ownerDocument.body),n}function qn(e,t){const n=Z(e);if(ct(e))return n;if(!ie(e)){let o=ve(e);for(;o&&!ke(o);){if(ee(o)&&!Et(o))return o;o=ve(o)}return n}let r=vn(e,t);for(;r&&$s(r)&&Et(r);)r=vn(r,t);return r&&ke(r)&&Et(r)&&!Wt(r)?n:r||qs(e)||n}const ci=async function(e){const t=this.getOffsetParent||qn,n=this.getDimensions,r=await n(e.floating);return{reference:ai(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function li(e){return te(e).direction==="rtl"}const ui={convertOffsetParentRelativeRectToViewportRelativeRect:Qs,getDocumentElement:ae,getClippingRect:si,getOffsetParent:qn,getElementRects:ci,getClientRects:Js,getDimensions:ii,getScale:Me,isElement:ee,isRTL:li};function Xn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function di(e,t){let n=null,r;const o=ae(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const d=e.getBoundingClientRect(),{left:f,top:p,width:g,height:h}=d;if(a||t(),!g||!h)return;const w=Ge(p),u=Ge(o.clientWidth-(f+g)),x=Ge(o.clientHeight-(p+h)),y=Ge(f),b={rootMargin:-w+"px "+-u+"px "+-x+"px "+-y+"px",threshold:G(0,he(1,l))||1};let S=!0;function C(P){const E=P[0].intersectionRatio;if(E!==l){if(!S)return i();E?i(!1,E):r=setTimeout(()=>{i(!1,1e-7)},1e3)}E===1&&!Xn(d,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(C,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,b)}n.observe(e)}return i(!0),s}function fi(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,d=Vt(e),f=o||s?[...d?Fe(d):[],...Fe(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const p=d&&a?di(d,n):null;let g=-1,h=null;i&&(h=new ResizeObserver(y=>{let[v]=y;v&&v.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var b;(b=h)==null||b.observe(t)})),n()}),d&&!l&&h.observe(d),h.observe(t));let w,u=l?Se(e):null;l&&x();function x(){const y=Se(e);u&&!Xn(u,y)&&n(),u=y,w=requestAnimationFrame(x)}return n(),()=>{var y;f.forEach(v=>{o&&v.removeEventListener("scroll",n),s&&v.removeEventListener("resize",n)}),p?.(),(y=h)==null||y.disconnect(),h=null,l&&cancelAnimationFrame(w)}}const pi=Ls,mi=Fs,hi=js,vi=Ws,gi=Ds,gn=ks,xi=Bs,wi=(e,t,n)=>{const r=new Map,o={platform:ui,...n},s={...o.platform,_c:r};return Ms(e,t,{...o,platform:s})};var yi=typeof document<"u",bi=function(){},Je=yi?c.useLayoutEffect:bi;function ot(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(!ot(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 s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!ot(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Gn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function xn(e,t){const n=Gn(e);return Math.round(t*n)/n}function Pt(e){const t=c.useRef(e);return Je(()=>{t.current=e}),t}function Si(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:d}=e,[f,p]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,h]=c.useState(r);ot(g,r)||h(r);const[w,u]=c.useState(null),[x,y]=c.useState(null),v=c.useCallback(N=>{N!==P.current&&(P.current=N,u(N))},[]),b=c.useCallback(N=>{N!==E.current&&(E.current=N,y(N))},[]),S=s||w,C=i||x,P=c.useRef(null),E=c.useRef(null),O=c.useRef(f),R=l!=null,T=Pt(l),I=Pt(o),M=Pt(d),D=c.useCallback(()=>{if(!P.current||!E.current)return;const N={placement:t,strategy:n,middleware:g};I.current&&(N.platform=I.current),wi(P.current,E.current,N).then(L=>{const U={...L,isPositioned:M.current!==!1};k.current&&!ot(O.current,U)&&(O.current=U,We.flushSync(()=>{p(U)}))})},[g,t,n,I,M]);Je(()=>{d===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,p(N=>({...N,isPositioned:!1})))},[d]);const k=c.useRef(!1);Je(()=>(k.current=!0,()=>{k.current=!1}),[]),Je(()=>{if(S&&(P.current=S),C&&(E.current=C),S&&C){if(T.current)return T.current(S,C,D);D()}},[S,C,D,T,R]);const W=c.useMemo(()=>({reference:P,floating:E,setReference:v,setFloating:b}),[v,b]),j=c.useMemo(()=>({reference:S,floating:C}),[S,C]),_=c.useMemo(()=>{const N={position:n,left:0,top:0};if(!j.floating)return N;const L=xn(j.floating,f.x),U=xn(j.floating,f.y);return a?{...N,transform:"translate("+L+"px, "+U+"px)",...Gn(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:U}},[n,a,j.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:D,refs:W,elements:j,floatingStyles:_}),[f,D,W,j,_])}const Ci=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?gn({element:r.current,padding:o}).fn(n):{}:r?gn({element:r,padding:o}).fn(n):{}}}},Ei=(e,t)=>({...pi(e),options:[e,t]}),Pi=(e,t)=>({...mi(e),options:[e,t]}),Ri=(e,t)=>({...xi(e),options:[e,t]}),Ni=(e,t)=>({...hi(e),options:[e,t]}),Ai=(e,t)=>({...vi(e),options:[e,t]}),Oi=(e,t)=>({...gi(e),options:[e,t]}),Ti=(e,t)=>({...Ci(e),options:[e,t]});var Ii="Arrow",Zn=c.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return m.jsx(V.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});Zn.displayName=Ii;var Mi=Zn,$t="Popper",[Qn,Jn]=Dt($t),[ki,er]=Qn($t),tr=e=>{const{__scopePopper:t,children:n}=e,[r,o]=c.useState(null),[s,i]=c.useState(void 0);return m.jsx(ki,{scope:t,anchor:r,onAnchorChange:o,placementState:s,setPlacementState:i,children:n})};tr.displayName=$t;var nr="PopperAnchor",rr=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=er(nr,n),i=c.useRef(null),a=s.onAnchorChange,l=c.useCallback(w=>{i.current=w,w&&a(w)},[a]),d=Y(t,l),f=c.useRef(null);c.useEffect(()=>{if(!r)return;const w=f.current;f.current=r.current,w!==f.current&&a(f.current)});const p=s.placementState&&Ut(s.placementState),g=p?.[0],h=p?.[1];return r?null:m.jsx(V.div,{"data-radix-popper-side":g,"data-radix-popper-align":h,...o,ref:d})});rr.displayName=nr;var zt="PopperContent",[ji,Di]=Qn(zt),or=c.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:w,...u}=e,x=er(zt,n),[y,v]=c.useState(null),b=Y(t,F=>v(F)),[S,C]=c.useState(null),P=ys(S),E=P?.width??0,O=P?.height??0,R=r+(s!=="center"?"-"+s:""),T=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},I=Array.isArray(d)?d:[d],M=I.length>0,D={padding:T,boundary:I.filter(Li),altBoundary:M},{refs:k,floatingStyles:W,placement:j,isPositioned:_,middlewareData:N}=Si({strategy:"fixed",placement:R,whileElementsMounted:(...F)=>fi(...F,{animationFrame:h==="always"}),elements:{reference:x.anchor},middleware:[Ei({mainAxis:o+O,alignmentAxis:i}),l&&Pi({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Ri():void 0,...D}),l&&Ni({...D}),Ai({...D,apply:({elements:F,rects:q,availableWidth:B,availableHeight:H})=>{const{width:$,height:ce}=q.reference,Q=F.floating.style;Q.setProperty("--radix-popper-available-width",`${B}px`),Q.setProperty("--radix-popper-available-height",`${H}px`),Q.setProperty("--radix-popper-anchor-width",`${$}px`),Q.setProperty("--radix-popper-anchor-height",`${ce}px`)}}),S&&Ti({element:S,padding:a}),Fi({arrowWidth:E,arrowHeight:O}),g&&Oi({strategy:"referenceHidden",...D,boundary:M?D.boundary:void 0})]}),L=x.setPlacementState;K(()=>(L(j),()=>{L(void 0)}),[j,L]);const[U,X]=Ut(j),ne=be(w);K(()=>{_&&ne?.()},[_,ne]);const de=N.arrow?.x,fe=N.arrow?.y,Pe=N.arrow?.centerOffset!==0,[ye,A]=c.useState();return K(()=>{y&&A(window.getComputedStyle(y).zIndex)},[y]),m.jsx("div",{ref:k.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:_?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ye,"--radix-popper-transform-origin":[N.transformOrigin?.x,N.transformOrigin?.y].join(" "),...N.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(ji,{scope:n,placedSide:U,placedAlign:X,onArrowChange:C,arrowX:de,arrowY:fe,shouldHideArrow:Pe,children:m.jsx(V.div,{"data-side":U,"data-align":X,...u,ref:b,style:{...u.style,animation:_?void 0:"none"}})})})});or.displayName=zt;var sr="PopperArrow",_i={top:"bottom",right:"left",bottom:"top",left:"r
66ight"},ir=c.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Di(sr,r),i=_i[s.placedSide];return m.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:m.jsx(Mi,{...o,ref:n,style:{...o.style,display:"block"}})})});ir.displayName=sr;function Li(e){return e!==null}var Fi=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[d,f]=Ut(n),p={start:"0%",center:"50%",end:"100%"}[f],g=(o.arrow?.x??0)+a/2,h=(o.arrow?.y??0)+l/2;let w="",u="";return d==="bottom"?(w=i?p:`${g}px`,u=`${-l}px`):d==="top"?(w=i?p:`${g}px`,u=`${r.floating.height+l}px`):d==="right"?(w=`${-l}px`,u=i?p:`${h}px`):d==="left"&&(w=`${r.floating.width+l}px`,u=i?p:`${h}px`),{data:{x:w,y:u}}}});function Ut(e){const[t,n="center"]=e.split("-");return[t,n]}var Bi=tr,Wi=rr,Hi=or,Vi=ir;function wn(e,[t,n]){return Math.min(n,Math.max(t,e))}var $i=[" ","Enter","ArrowUp","ArrowDown"],zi=[" ","Enter"],Ce="Select",[dt,ft,Ui]=ro(Ce),[Ee,Aa]=Dt(Ce,[Ui,Jn]),pt=Jn(),[Ki,xe]=Ee(Ce),[Yi,qi]=Ee(Ce),Xi="SelectProvider";function ar(e){const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:i,defaultValue:a,onValueChange:l,dir:d,name:f,autoComplete:p,disabled:g,required:h,form:w,internal_do_not_use_render:u}=e,x=pt(t),[y,v]=c.useState(null),[b,S]=c.useState(null),[C,P]=c.useState(!1),E=ho(d),[O,R]=Yt({prop:r,defaultProp:o??!1,onChange:s,caller:Ce}),[T,I]=Yt({prop:i,defaultProp:a,onChange:l,caller:Ce}),M=c.useRef(null),D=y?!!w||!!y.closest("form"):!0,[k,W]=c.useState(new Set),j=_t(),_=Array.from(k).map(X=>X.props.value).join(";"),N=c.useCallback(X=>{W(ne=>new Set(ne).add(X))},[]),L=c.useCallback(X=>{W(ne=>{const de=new Set(ne);return de.delete(X),de})},[]),U={required:h,trigger:y,onTriggerChange:v,valueNode:b,onValueNodeChange:S,valueNodeHasChildren:C,onValueNodeHasChildrenChange:P,contentId:j,value:T,onValueChange:I,open:O,onOpenChange:R,dir:E,triggerPointerDownPosRef:M,disabled:g,name:f,autoComplete:p,form:w,nativeOptions:k,nativeSelectKey:_,isFormControl:D};return m.jsx(Bi,{...x,children:m.jsx(Ki,{scope:t,...U,children:m.jsx(dt.Provider,{scope:t,children:m.jsx(Yi,{scope:t,onNativeOptionAdd:N,onNativeOptionRemove:L,children:fa(u)?u(U):n})})})})}ar.displayName=Xi;var cr=e=>{const{__scopeSelect:t,children:n,...r}=e;return m.jsx(ar,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:o})=>m.jsxs(m.Fragment,{children:[n,o?m.jsx(jr,{__scopeSelect:t}):null]})})};cr.displayName=Ce;var lr="SelectTrigger",ur=c.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=pt(n),i=xe(lr,n),a=i.disabled||r,l=Y(t,i.onTriggerChange),d=ft(n),f=c.useRef("touch"),[p,g,h]=Dr(u=>{const x=d().filter(b=>!b.disabled),y=x.find(b=>b.value===i.value),v=_r(x,u,y);v!==void 0&&i.onValueChange(v.value)}),w=u=>{a||(i.onOpenChange(!0),h()),u&&(i.triggerPointerDownPosRef.current={x:Math.round(u.pageX),y:Math.round(u.pageY)})};return m.jsx(Wi,{asChild:!0,...s,children:m.jsx(V.button,{type:"button",role:"combobox","aria-controls":i.open?i.contentId:void 0,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":mt(i.value)?"":void 0,...o,ref:l,onClick:z(o.onClick,u=>{u.currentTarget.focus(),f.current!=="mouse"&&w(u)}),onPointerDown:z(o.onPointerDown,u=>{f.current=u.pointerType;const x=u.target;x.hasPointerCapture(u.pointerId)&&x.releasePointerCapture(u.pointerId),u.button===0&&u.ctrlKey===!1&&u.pointerType==="mouse"&&(w(u),u.preventDefault())}),onKeyDown:z(o.onKeyDown,u=>{const x=p.current!=="";!(u.ctrlKey||u.altKey||u.metaKey)&&u.key.length===1&&g(u.key),!(x&&u.key===" ")&&$i.includes(u.key)&&(w(),u.preventDefault())})})})});ur.displayName=lr;var dr="SelectValue",fr=c.forwardRef((e,t)=>
vendor: 4,765 bytes, line 66
66{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:i="",...a}=e,l=xe(dr,n),{onValueNodeHasChildrenChange:d}=l,f=s!==void 0,p=Y(t,l.onValueNodeChange);K(()=>{d(f)},[d,f]);const g=mt(l.value);return m.jsx(V.span,{...a,asChild:g?!1:a.asChild,ref:p,style:{pointerEvents:"none"},children:m.jsx(c.Fragment,{children:g?i:s},g?"placeholder":"value")})});fr.displayName=dr;var Gi="SelectIcon",pr=c.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return m.jsx(V.span,{"aria-hidden":!0,...o,ref:t,children:r||"â¼"})});pr.displayName=Gi;var mr="SelectPortal",[Zi,Qi]=Ee(mr,{forceMount:void 0}),hr=e=>{const{__scopeSelect:t,forceMount:n,...r}=e;return m.jsx(Zi,{scope:e.__scopeSelect,forceMount:n,children:m.jsx(Tn,{asChild:!0,...r})})};hr.displayName=mr;var ge="SelectContent",vr=c.forwardRef((e,t)=>{const n=Qi(ge,e.__scopeSelect),{forceMount:r=n.forceMount,...o}=e,s=xe(ge,e.__scopeSelect),[i,a]=c.useState();return K(()=>{a(new DocumentFragment)},[]),m.jsx(En,{present:r||s.open,children:({present:l})=>l?m.jsx(wr,{...o,ref:t}):m.jsx(gr,{...o,fragment:i})})});vr.displayName=ge;var gr=c.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,fragment:o}=e;return o?We.createPortal(m.jsx(xr,{scope:n,children:m.jsx(dt.Slot,{scope:n,children:m.jsx("div",{ref:t,children:r})})}),o):null});gr.displayName="SelectContentFragment";var J=10,[xr,we]=Ee(ge),Ji="SelectContentImpl",ea=et("SelectContent.RemoveScroll"),wr=c.forwardRef((e,t)=>{const{__scopeSelect:n}=e,{position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:i,side:a,sideOffset:l,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:h,sticky:w,hideWhenDetached:u,avoidCollisions:x,...y}=e,v=xe(ge,n),[b,S]=c.useState(null),[C,P]=c.useState(null),E=Y(t,A=>S(A)),[O,R]=c.useState(null),[T,I]=c.useState(null),M=ft(n),[D,k]=c.useState(!1),W=c.useRef(!1);c.useEffect(()=>{if(b)return xs(b)},[b]),Mo();const j=c.useCallback(A=>{const[F,...q]=M().map($=>$.ref.current),[B]=q.slice(-1),H=document.activeElement;for(const $ of A)if($===H||($?.scrollIntoView({block:"nearest"}),$===F&&C&&(C.scrollTop=0),$===B&&C&&(C.scrollTop=C.scrollHeight),$?.focus(),document.activeElement!==H))return},[M,C]),_=c.useCallback(()=>j([O,b]),[j,O,b]);c.useEffect(()=>{D&&_()},[D,_]);const{onOpenChange:N,triggerPointerDownPosRef:L}=v;c.useEffect(()=>{if(b){let A={x:0,y:0};const F=B=>{A={x:Math.abs(Math.round(B.pageX)-(L.current?.x??0)),y:Math.abs(Math.round(B.pageY)-(L.current?.y??0))}},q=B=>{A.x<=10&&A.y<=10?B.preventDefault():B.composedPath().includes(b)||N(!1),document.removeEventListener("pointermove",F),L.current=null};return L.current!==null&&(document.addEventListener("pointermove",F),document.addEventListener("pointerup",q,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",F),document.removeEventListener("pointerup",q,{capture:!0})}}},[b,N,L]),c.useEffect(()=>{const A=()=>N(!1);return window.addEventListener("blur",A),window.addEventListener("resize",A),()=>{window.removeEventListener("blur",A),window.removeEventListener("resize",A)}},[N]);const[U,X]=Dr(A=>{const F=M().filter(H=>!H.disabled),q=F.find(H=>H.ref.current===document.activeElement),B=_r(F,A,q);B&&setTimeout(()=>B.ref.current?.focus())}),ne=c.useCallback((A,F,q)=>{const B=!W.current&&!q;(v.value!==void 0&&v.value===F||B)&&(R(A),B&&(W.current=!0))},[v.value]),de=c.useCallback(()=>b?.focus(),[b]),fe=c.useCallback((A,F,q)=>{const B=!W.current&&!q;(v.value!==void 0&&v.value===F||B)&&I(A)},[v.value]),Pe=r==="popper"?It:yr,ye=Pe===It?{side:a,sideOffset:l,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:h,sticky:w,hideWhenDetached:u,avoidCollisions:x}:{};return m.jsx(xr,{scope:n,content:b,viewport:C,onViewportChange:P,itemRefCallback:ne,selectedItem:O,onItemLeave:de,itemTextRefCallback:fe,focusSelectedItem:_,selectedItemText:T,position:r,isPositioned:D,searchRef:U,children:m.jsx(Fn,{as:ea,allowPinchZoom:!0,children:m.jsx(An,{asChild:!0,trapped:v.open,onMountAutoFocus:A=>{A.preventDefault()},onUnmountAutoFocus:z(o,A=>{v.trigger?.focus({preventScroll:!0}),A.preventDefault()}),children:m.jsx(Rn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:A=>A.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:m.jsx(Pe,{role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:A=>A.preventDefault(),...y,...ye,onPlaced:()=>k(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:z(y.onKeyDown,A=>{const F=A.ctrlKey||A.altKey||A.metaKey;if(A.key==="Tab"&&A.preventDefault(),!F&&A.key.length===1&&X(A.key),["ArrowUp","ArrowDown","Home","End"].includes(A.key)){let B=M().filter(H=>!H.disabled).map(H=>H.ref.current);
vendor: 12,835 bytes, line 66
66if(["ArrowUp","End"].includes(A.key)&&(B=B.slice().reverse()),["ArrowUp","ArrowDown"].includes(A.key)){const H=A.target,$=B.indexOf(H);B=B.slice($+1)}setTimeout(()=>j(B)),A.preventDefault()}})})})})})})});wr.displayName=Ji;var ta="SelectItemAlignedPosition",yr=c.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=xe(ge,n),i=we(ge,n),[a,l]=c.useState(null),[d,f]=c.useState(null),p=Y(t,E=>f(E)),g=ft(n),h=c.useRef(!1),w=c.useRef(!0),{viewport:u,selectedItem:x,selectedItemText:y,focusSelectedItem:v}=i,b=c.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&d&&u&&x&&y){const E=s.trigger.getBoundingClientRect(),O=d.getBoundingClientRect(),R=s.valueNode.getBoundingClientRect(),T=y.getBoundingClientRect();if(s.dir!=="rtl"){const H=T.left-O.left,$=R.left-H,ce=E.left-$,Q=E.width+ce,ht=Math.max(Q,O.width),vt=window.innerWidth-J,gt=wn($,[J,Math.max(J,vt-ht)]);a.style.minWidth=Q+"px",a.style.left=gt+"px"}else{const H=O.right-T.right,$=window.innerWidth-R.right-H,ce=window.innerWidth-E.right-$,Q=E.width+ce,ht=Math.max(Q,O.width),vt=window.innerWidth-J,gt=wn($,[J,Math.max(J,vt-ht)]);a.style.minWidth=Q+"px",a.style.right=gt+"px"}const I=g(),M=window.innerHeight-J*2,D=u.scrollHeight,k=window.getComputedStyle(d),W=parseInt(k.borderTopWidth,10),j=parseInt(k.paddingTop,10),_=parseInt(k.borderBottomWidth,10),N=parseInt(k.paddingBottom,10),L=W+j+D+N+_,U=Math.min(x.offsetHeight*5,L),X=window.getComputedStyle(u),ne=parseInt(X.paddingTop,10),de=parseInt(X.paddingBottom,10),fe=E.top+E.height/2-J,Pe=M-fe,ye=x.offsetHeight/2,A=x.offsetTop+ye,F=W+j+A,q=L-F;if(F<=fe){const H=I.length>0&&x===I[I.length-1].ref.current;a.style.bottom="0px";const $=d.clientHeight-u.offsetTop-u.offsetHeight,ce=Math.max(Pe,ye+(H?de:0)+$+_),Q=F+ce;a.style.height=Q+"px"}else{const H=I.length>0&&x===I[0].ref.current;a.style.top="0px";const ce=Math.max(fe,W+u.offsetTop+(H?ne:0)+ye)+q;a.style.height=ce+"px",u.scrollTop=F-fe+u.offsetTop}a.style.margin=`${J}px 0`,a.style.minHeight=U+"px",a.style.maxHeight=M+"px",r?.(),requestAnimationFrame(()=>h.current=!0)}},[g,s.trigger,s.valueNode,a,d,u,x,y,s.dir,r]);K(()=>b(),[b]);const[S,C]=c.useState();K(()=>{d&&C(window.getComputedStyle(d).zIndex)},[d]);const P=c.useCallback(E=>{E&&w.current===!0&&(b(),v?.(),w.current=!1)},[b,v]);return m.jsx(ra,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:h,onScrollButtonChange:P,children:m.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:m.jsx(V.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});yr.displayName=ta;var na="SelectPopperPosition",It=c.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=J,...s}=e,i=pt(n);return m.jsx(Hi,{...i,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.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)"}})});It.displayName=na;var[ra,Kt]=Ee(ge,{}),Mt="SelectViewport",br=c.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=we(Mt,n),i=Kt(Mt,n),a=Y(t,s.onViewportChange),l=c.useRef(0);return m.jsxs(m.Fragment,{children:[m.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}),m.jsx(dt.Slot,{scope:n,children:m.jsx(V.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:z(o.onScroll,d=>{const f=d.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:g}=i;if(g?.current&&p){const h=Math.abs(l.current-f.scrollTop);if(h>0){const w=window.innerHeight-J*2,u=parseFloat(p.style.minHeight),x=parseFloat(p.style.height),y=Math.max(u,x);if(y<w){const v=y+h,b=Math.min(w,v),S=v-b;p.style.height=b+"px",p.style.bottom==="0px"&&(f.scrollTop=S>0?S:0,p.style.justifyContent="flex-end")}}}l.current=f.scrollTop})})})]})});br.displayName=Mt;var Sr="SelectGroup",[oa,sa]=Ee(Sr),ia=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=_t();return m.jsx(oa,{scope:n,id:o,children:m.jsx(V.div,{role:"group","aria-labelledby":o,...r,ref:t})})});ia.displayName=Sr;var Cr="SelectLabel",aa=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=sa(Cr,n);return m.jsx(V.div,{id:o.id,...r,ref:t})});aa.displayName=Cr;var st="SelectItem",[ca,Er]=Ee(st),Pr=c.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...i}=e,a=xe(st,n),l=we(st,n),d=a.value===r,[f,p]=c.useState(s??""),[g,h]=c.useState(!1),w=Y(t,v=>l.itemRefCallback?.(v,r,o)),u=_t(),x=c.useRef("touch"),y=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};return m.jsx(ca,{scope:n,value:r,disabled:o,textId:u,isSelected:d,onItemTextChange:c.useCallback(v=>{p(b=>b||(v?.textContent??"").trim())},[]),children:m.jsx(dt.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:m.jsx(V.div,{role:"option","aria-labelledby":u,"data-highlighted":g?"":void 0,"aria-selected":d&&g,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:w,onFocus:z(i.onFocus,()=>h(!0)),onBlur:z(i.onBlur,()=>h(!1)),onClick:z(i.onClick,()=>{x.current!=="mouse"&&y()}),onPointerUp:z(i.onPointerUp,()=>{x.current==="mouse"&&y()}),onPointerDown:z(i.onPointerDown,v=>{x.current=v.pointerType}),onPointerMove:z(i.onPointerMove,v=>{x.current=v.pointerType,o?l.onItemLeave?.():x.current==="mouse"&&v.currentTarget.focus({preventScroll:!0})}),onPointerLeave:z(i.onPointerLeave,v=>{v.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:z(i.onKeyDown,v=>{l.searchRef?.current!==""&&v.key===" "||(zi.includes(v.key)&&y(),v.key===" "&&v.preventDefault())})})})})});Pr.displayName=st;var _e="SelectItemText",Rr=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,i=xe(_e,n),a=we(_e,n),l=Er(_e,n),d=qi(_e,n),[f,p]=c.useState(null),g=Y(t,y=>p(y),l.onItemTextChange,y=>a.itemTextRefCallback?.(y,l.value,l.disabled)),h=f?.textContent,w=c.useMemo(()=>m.jsx("option",{value:l.value,disabled:l.disabled,children:h},l.value),[l.disabled,l.value,h]),{onNativeOptionAdd:u,onNativeOptionRemove:x}=d;return K(()=>(u(w),()=>x(w)),[u,x,w]),m.jsxs(m.Fragment,{children:[m.jsx(V.span,{id:l.textId,...s,ref:g}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren&&!mt(i.value)?We.createPortal(s.children,i.valueNode):null]})});Rr.displayName=_e;var Nr="SelectItemIndicator",Ar=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Er(Nr,n).isSelected?m.jsx(V.span,{"aria-hidden":!0,...r,ref:t}):null});Ar.displayName=Nr;var kt="SelectScrollUpButton",Or=c.forwardRef((e,t)=>{const n=we(kt,e.__scopeSelect),r=Kt(kt,e.__scopeSelect),[o,s]=c.useState(!1),i=Y(t,r.onScrollButtonChange);return K(()=>{if(n.viewport&&n.isPositioned){let a=function(){const d=l.scrollTop>0;s(d)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?m.jsx(Ir,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});Or.displayName=kt;var jt="SelectScrollDownButton",Tr=c.forwardRef((e,t)=>{const n=we(jt,e.__scopeSelect),r=Kt(jt,e.__scopeSelect),[o,s]=c.useState(!1),i=Y(t,r.onScrollButtonChange);return K(()=>{if(n.viewport&&n.isPositioned){let a=function(){const d=l.scrollHeight-l.clientHeight,f=Math.ceil(l.scrollTop)<d;s(f)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?m.jsx(Ir,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});Tr.displayName=jt;var Ir=c.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=we("SelectScrollButton",n),i=c.useRef(null),a=ft(n),l=c.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return c.useEffect(()=>()=>l(),[l]),K(()=>{a().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[a]),m.jsx(V.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:z(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:z(o.onPointerMove,()=>{s.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:z(o.onPointerLeave,()=>{l()})})}),la="SelectSeparator",ua=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return m.jsx(V.div,{"aria-hidden":!0,...r,ref:t})});ua.displayName=la;var Mr="SelectArrow",da=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=pt(n);return we(Mr,n).position==="popper"?m.jsx(Vi,{...o,...r,ref:t}):null});da.displayName=Mr;var kr="SelectBubbleInput",jr=c.forwardRef(({__scopeSelect:e,...t},n)=>{const r=xe(kr,e),{value:o,onValueChange:s,required:i,disabled:a,name:l,autoComplete:d,form:f}=r,{nativeOptions:p,nativeSelectKey:g}=r,h=c.useRef(null),w=Y(n,h),u=o??"",x=ws(u),y=Array.from(p).some(v=>(v.props.value??"")==="");return c.useEffect(()=>{const v=h.current;if(!v)return;const b=window.HTMLSelectElement.prototype,C=Object.getOwnPropertyDescriptor(b,"value").set;if(x!==u&&C){const P=new Event("change",{bubbles:!0});C.call(v,u),v.dispatchEvent(P)}},[x,u]),m.jsxs(V.select,{"aria-hidden":!0,required:i,tabIndex:-1,name:l,autoComplete:d,disabled:a,form:f,onChange:v=>s(v.target.value),...t,style:{...Cn,...t.style},ref:w,defaultValue:u,children:[mt(o)&&!y?m.jsx("option",{value:""}):null,Array.from(p)]},g)});jr.displayName=kr;function fa(e){return typeof e=="function"}function mt(e){return e===""||e===void 0}function Dr(e){const t=be(e),n=c.useRef(""),r=c.useRef(0),o=c.useCallback(i=>{const a=n.current+i;t(a),function l(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),s=c.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return c.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function _r(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=pa(e,Math.max(s,0));o.length===1&&(i=i.filter(d=>d!==n));const l=i.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function pa(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function ma({className:e,...t}){return m.jsx("textarea",{"data-slot":"textarea",className:me("flex field-sizing-content min-h-16 w-full resize-none rounded-lg border border-input bg-background px-2 py-2 text-sm transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 md:text-xs/relaxed dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...t})}function ha({...e}){return m.jsx(cr,{"data-slot":"select",...e})}function va({...e}){return m.jsx(fr,{"data-slot":"select-value",...e})}function ga({className:e,size:t="default",children:n,...r}){return m.jsxs(ur,{"data-slot":"select-trigger","data-size":t,className:me("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-background px-2 py-1.5 text-xs/relaxed whitespace-nowrap transition-colors outline-none hover:border-ring/60 focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-7 data-[size=sm]:h-6 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5",e),...r,children:[n,m.jsx(pr,{asChild:!0,children:m.jsx(Sn,{className:"pointer-events-none size-3.5 text-muted-foreground"})})]})}function xa({className:e,children:t,position:n="item-aligned",align:r="center",...o}){return m.jsx(hr,{children:m.jsxs(vr,{"data-slot":"select-content","data-align-trigger":n==="item-aligned",className:me("relative z-50 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground
66/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 rtl:data-[side=left]:translate-x-1 data-[side=right]:translate-x-1 rtl:data-[side=right]:-translate-x-1 data-[side=top]:-translate-y-1",e),position:n,align:r,...o,children:[m.jsx(wa,{}),m.jsx(br,{"data-position":n,className:me("data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)",n==="popper"&&""),children:t}),m.jsx(ya,{})]})})}function Te({className:e,children:t,...n}){return m.jsxs(Pr,{"data-slot":"select-item",className:me("relative flex min-h-7 w-full cursor-default items-center gap-2 rounded-md px-2 py-1 text-xs/relaxed outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[m.jsx("span",{className:"pointer-events-none absolute end-2 flex items-center justify-center",children:m.jsx(Ar,{children:m.jsx(Vr,{className:"pointer-events-none"})})}),m.jsx(Rr,{children:t})]})}function wa({className:e,...t}){return m.jsx(Or,{"data-slot":"select-scroll-up-button",className:me("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5",e),...t,children:m.jsx(Ur,{})})}function ya({className:e,...t}){return m.jsx(Tr,{"data-slot":"select-scroll-down-button",className:me("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5",e),...t,children:m.jsx(Sn,{})})}function yn({className:e,type:t,...n}){return m.jsx("input",{type:t,"data-slot":"input",className:me("h-7 w-full min-w-0 rounded-lg border border-input bg-background px-2 py-0.5 text-sm transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-xs/relaxed file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 md:text-xs/relaxed dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...n})}const ba=()=>"https://api.docuguru.ai".replace(/\/$/,"")||"http://localhost:8080";async function Sa(e){const t=`${ba()}/api/public/contact`,n=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!n.ok){const r=await n.text().catch(()=>"");throw new Error(`Contact request failed: ${n.status} ${n.statusText}${r?` - ${r}`:""}`)}try{return await n.json()}catch{return{sent:!1,message:"Unexpected response format"}}}function Oa(){const e=Fr(),[t,n]=c.useState({name:"",email:"",subject:"",message:""}),[r,o]=c.useState(!1),[s,i]=c.useState("idle"),[a,l]=c.useState(null),d=p=>{n({...t,[p.target.name]:p.target.value})},f=async p=>{p.preventDefault(),o(!0),l(null);try{const g=await Sa(t);if(g.sent)i("success"),n({name:"",email:"",subject:"",message:""});else throw new Error(g.message||"Message was not sent. Please try again.")}catch(g){console.error("Failed to send contact message",g),i("error"),l(g instanceof Error?g.message:"Something went wrong. Please try again.")}finally{o(!1),setTimeout(()=>i("idle"),5e3)}};return m.jsxs(m.Fragment,{children:[m.jsx(Br,{title:"Contact DocuGuru | Support & Sales",description:"Reach the DocuGuru team for product questions, billing support, or sales inquiries. We're here to help researchers move faster.",canonical:"https://docuguru.ai/contact"}),m.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-slate-50 to-white dark:from-slate-950 dar
66k:to-slate-900",children:[m.jsx("header",{className:"sticky top-0 z-50 bg-white/80 dark:bg-slate-900/80 backdrop-blur-md border-b border-slate-200 dark:border-slate-800",children:m.jsx("div",{className:"max-w-7xl mx-auto px-6 py-4",children:m.jsxs(Ve,{variant:"ghost",size:"sm",onClick:()=>e(-1),className:"inline-flex items-center gap-2",children:[m.jsx(Hr,{className:"h-5 w-5"}),m.jsx("span",{className:"font-medium",children:"Back"})]})})}),m.jsx("main",{className:"max-w-7xl mx-auto px-6 py-12 lg:py-20",children:m.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 lg:gap-16",children:[m.jsxs($e.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.5},className:"space-y-8",children:[m.jsxs("div",{className:"space-y-4",children:[m.jsx("h1",{className:"text-4xl lg:text-5xl font-bold text-slate-900 dark:text-white",children:"Get in Touch"}),m.jsx("p",{className:"text-lg text-slate-600 dark:text-slate-400",children:"Have questions or feedback? We'd love to hear from you. Send us a message and we'll respond as soon as possible."})]}),m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{className:"flex items-start gap-4 p-4 rounded-xl bg-gradient-to-br from-indigo-50 to-purple-50 dark:from-indigo-950/30 dark:to-purple-950/30 border border-indigo-100 dark:border-indigo-900",children:[m.jsx("div",{className:"flex-shrink-0 w-12 h-12 rounded-lg bg-indigo-600 dark:bg-indigo-500 flex items-center justify-center",children:m.jsx(Yr,{className:"h-6 w-6 text-white"})}),m.jsxs("div",{children:[m.jsx("h3",{className:"font-semibold text-slate-900 dark:text-white mb-1",children:"Email Us"}),m.jsx("p",{className:"text-slate-600 dark:text-slate-400 text-sm mb-2",children:"For general inquiries and support"}),m.jsx("a",{href:"mailto:[email protected]",className:"text-indigo-600 dark:text-indigo-400 hover:underline font-medium",children:"[email protected]"})]})]}),m.jsxs("div",{className:"flex items-start gap-4 p-4 rounded-xl bg-gradient-to-br from-emerald-50 to-teal-50 dark:from-emerald-950/30 dark:to-teal-950/30 border border-emerald-100 dark:border-emerald-900",children:[m.jsx("div",{className:"flex-shrink-0 w-12 h-12 rounded-lg bg-emerald-600 dark:bg-emerald-500 flex items-center justify-center",children:m.jsx(Xr,{className:"h-6 w-6 text-white"})}),m.jsxs("div",{children:[m.jsx("h3",{className:"font-semibold text-slate-900 dark:text-white mb-1",children:"Office Location"}),m.jsxs("p",{className:"text-slate-600 dark:text-slate-400 text-sm",children:["25, City Plaza",m.jsx("br",{}),"Patan Road",m.jsx("br",{}),"Chanasma 384220",m.jsx("br",{}),"Gujarat, India"]})]})]})]}),m.jsxs("div",{className:"pt-6 border-t border-slate-200 dark:border-slate-800",children:[m.jsx("h3",{className:"font-semibold text-slate-900 dark:text-white mb-4",children:"Quick Links"}),m.jsxs("div",{className:"flex flex-wrap gap-3",children:[m.jsx(Ve,{variant:"outline",size:"sm",onClick:()=>e("/privacy"),children:"Privacy Policy"}),m.jsx(Ve,{variant:"outline",size:"sm",onClick:()=>e("/terms-conditions"),children:"Terms & Conditions"})]})]})]}),m.jsx($e.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.5,delay:.2},children:m.jsxs("div",{className:"bg-white dark:bg-slate-900 rounded-2xl shadow-xl border border-slate-200 dark:border-slate-800 p-8",children:[m.jsxs("div",{className:"mb-6",children:[m.jsx("h2",{className:"text-2xl font-bold text-slate-900 dark:text-white mb-2",children:"Send us a Message"}),m.jsx("p",{className:"text-slate-600 dark:text-slate-400",children:"Fill out the form below and we'll get back to you within 24 hours."})]}),s==="success"&&m.jsxs($e.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:"mb-6 p-4 rounded-lg bg-emerald-50 dark:bg-emerald-950/30 border border-emerald-200 dark:border-emerald-800 text-emerald-800 dark:text-emerald-200",children:[m.jsx("p",{className:"font-medium",children:"â Message sent successfully!"}),m.jsx("p",{className:"text-sm mt-1",children:"We'll get back to you soon."})]}),s==="error"&&m.jsxs($e.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:"mb-6 p-4 rounded-lg bg-rose-50 dark:bg-rose-950/30 border border-rose-200 dark:border-rose-800 text-rose-800 dark:text-rose-200",children:[m.jsx("p",{className:"font-medium",children:"Failed to send message."}),m.jsx("p",{className:"text-sm mt-1",children:a||"Please try again in a moment."})]}),m.jsxs("form",{onSubmit:f,className:"space-y-6",children:[m.jsxs("div",{children:[m.jsx("label",{htmlFor:"name",className:"block text-sm font-medium text-slate-700 dark:text-slate-300 mb-2",children:"Your Name *"}),m.jsx(yn,{type:"text",id:"name",name:"name",value:t.name,onChange:d,required:!0,className:"h-auto rounded-lg px-4 py-3 text-base",placeholder:"John Doe"})]}),m.jsxs("div",{children:[m.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-slate-700 dark:text-slate-300 mb-2",children:"Email Address *"}),m.jsx(yn,{type:"email",id:"email",name:"email",value:t.email,onChange:d,required:!0,className:"h-auto rounded-lg px-4 py-3 text-base",placeholder:"[email protected]"})]}),m.jsxs("div",{children:[m.jsx("label",{htmlFor:"subject",className:"block text-sm font-medium text-slate-700 dark:text-slate-300 mb-2",children:"Subject *"}),m.jsxs(ha,{name:"subject",required:!0,value:t.subject,onValueChange:p=>n({...t,subject:p}),children:[m.jsx(ga,{id:"subject",className:"h-auto w-full rounded-lg px-4 py-3 text-base",children:m.jsx(va,{placeholder:"Select a subject"})}),m.jsxs(xa,{children:[m.jsx(Te,{value:"general",children:"General Inquiry"}),m.jsx(Te,{value:"support",children:"Technical Support"}),m.jsx(Te,{value:"billing",children:"Billing & Pricing"}),m.jsx(Te,{value:"feature",children:"Feature Request"}),m.jsx(Te,{value:"bug",children:"Report a Bug"}),m.jsx(Te,{value:"other",children:"Other"})]})]})]}),m.jsxs("div",{children:[m.jsx("label",{htmlFor:"message",className:"block text-sm font-medium text-slate-700 dark:text-slate-300 mb-2",children:"Message *"}),m.jsx(ma,{id:"message",name:"message",value:t.message,onChange:d,required:!0,rows:6,className:"rounded-lg px-4 py-3 text-base",placeholder:"Tell us more about your inquiry..."})]}),m.jsx(Ve,{type:"submit",variant:"default",size:"lg",disabled:r,className:"w-full flex items-center justify-center gap-2",children:r?m.jsxs(m.Fragment,{children:[m.jsx(Wr,{className:"size-5"}),"Sending..."]}):m.jsxs(m.Fragment,{children:[m.jsx(Zr,{className:"h-5 w-5"}),"Send Message"]})})]})]})})]})})]})]})}export{Oa as ContactUsPage};
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.