(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4004],{10660:function(e,t,n){var r=n(50754),o=n(88874),i=n(53302),l=n(55906),a=n(84244);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=l,u.prototype.set=a,e.exports=u},9522:function(e,t,n){var r=n(67139),o=n(71271),i=n(40598),l=n(91301),a=n(21469);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=l,u.prototype.set=a,e.exports=u},91420:function(e,t,n){var r=n(44300)(n(81361),"Map");e.exports=r},39393:function(e,t,n){var r=n(21862),o=n(17664),i=n(17442),l=n(93988),a=n(15809);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=l,u.prototype.set=a,e.exports=u},32107:function(e,t,n){var r=n(44300)(n(81361),"Set");e.exports=r},2087:function(e,t,n){var r=n(39393),o=n(67185),i=n(83201);function l(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}l.prototype.add=l.prototype.push=o,l.prototype.has=i,e.exports=l},18672:function(e,t,n){var r=n(81361).Symbol;e.exports=r},32100:function(e,t,n){var r=n(21438);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return -1}},72887:function(e){e.exports=function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}},51140:function(e,t,n){var r=n(18672),o=n(43344),i=n(72031),l=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":l&&l in Object(e)?o(e):i(e)}},13222:function(e,t,n){var r=n(7036),o=n(73384),i=n(83919),l=n(3869),a=/^\[object .+?Constructor\]$/,u=Object.prototype,s=Function.prototype.toString,c=u.hasOwnProperty,d=RegExp("^"+s.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?d:a).test(l(e))}},75544:function(e,t,n){var r=n(18510),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},46025:function(e){e.exports=function(e,t){return e.has(t)}},42824:function(e,t,n){var r=n(81361)["__core-js_shared__"];e.exports=r},37970:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},60027:function(e,t,n){var r=n(15239);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},44300:function(e,t,n){var r=n(13222),o=n(69166);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},43344:function(e,t,n){var r=n(18672),o=Object.prototype,i=o.hasOwnProperty,l=o.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var o=l.call(e);return r&&(t?e[a]=n:delete e[a]),o}},69166:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},50754:function(e,t,n){var r=n(35692);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},88874:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},53302:function(e,t,n){var r=n(35692),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},55906:function(e,t,n){var r=n(35692),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},84244:function(e,t,n){var r=n(35692);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},48373:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},15239:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},73384:function(e,t,n){var r,o=n(42824),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},67139:function(e){e.exports=function(){this.__data__=[],this.size=0}},71271:function(e,t,n){var r=n(32100),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},40598:function(e,t,n){var r=n(32100);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},91301:function(e,t,n){var r=n(32100);e.exports=function(e){return r(this.__data__,e)>-1}},21469:function(e,t,n){var r=n(32100);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},21862:function(e,t,n){var r=n(10660),o=n(9522),i=n(91420);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},17664:function(e,t,n){var r=n(60027);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},17442:function(e,t,n){var r=n(60027);e.exports=function(e){return r(this,e).get(e)}},93988:function(e,t,n){var r=n(60027);e.exports=function(e){return r(this,e).has(e)}},15809:function(e,t,n){var r=n(60027);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},35692:function(e,t,n){var r=n(44300)(Object,"create");e.exports=r},72031:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},81361:function(e,t,n){var r=n(37970),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},67185:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},83201:function(e){e.exports=function(e){return this.__data__.has(e)}},51738:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},3869:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},18510:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},57713:function(e,t,n){var r=n(72887),o=n(25522);e.exports=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=o(n))==n?n:0),void 0!==t&&(t=(t=o(t))==t?t:0),r(o(e),t,n)}},21438:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},94604:function(e,t,n){var r=n(7036),o=n(84025);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},7036:function(e,t,n){var r=n(51140),o=n(83919);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},84025:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},83919:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},31822:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},74277:function(e,t,n){var r=n(51140),o=n(31822);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},25522:function(e,t,n){var r=n(75544),o=n(83919),i=n(74277),l=0/0,a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return l;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=u.test(e);return n||s.test(e)?c(e.slice(2),n?2:8):a.test(e)?l:+e}},21111:function(e,t,n){"use strict";n.d(t,{B:function(){return d}});var r=n(7653),o=n(20379),i=n(18497),l=n(27573),a=r.forwardRef((e,t)=>{let{children:n,...o}=e,i=r.Children.toArray(n),a=i.find(c);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,l.jsx)(u,{...o,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,l.jsx)(u,{...o,ref:t,children:n})});a.displayName="Slot";var u=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(r.isValidElement(n)){let e,l;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return r.cloneElement(n,{...function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props),ref:t?(0,i.F)(t,a):a})}return r.Children.count(n)>1?r.Children.only(null):null});u.displayName="SlotClone";var s=({children:e})=>(0,l.jsx)(l.Fragment,{children:e});function c(e){return r.isValidElement(e)&&e.type===s}function d(e){let t=e+"CollectionProvider",[n,u]=(0,o.b)(t),[s,c]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,o=r.useRef(null),i=r.useRef(new Map).current;return(0,l.jsx)(s,{scope:t,itemMap:i,collectionRef:o,children:n})};d.displayName=t;let f=e+"CollectionSlot",p=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=c(f,n),u=(0,i.e)(t,o.collectionRef);return(0,l.jsx)(a,{ref:u,children:r})});p.displayName=f;let v=e+"CollectionItemSlot",h="data-radix-collection-item",m=r.forwardRef((e,t)=>{let{scope:n,children:o,...u}=e,s=r.useRef(null),d=(0,i.e)(t,s),f=c(v,n);return r.useEffect(()=>(f.itemMap.set(s,{ref:s,...u}),()=>void f.itemMap.delete(s))),(0,l.jsx)(a,{[h]:"",ref:d,children:o})});return m.displayName=v,[{Provider:d,Slot:p,ItemSlot:m},function(t){let n=c(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(h,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},u]}},20379:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(7653),o=n(27573);function i(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return i.scopeName=e,[function(t,i){let l=r.createContext(i),a=n.length;function u(t){let{scope:n,children:i,...u}=t,s=n?.[e][a]||l,c=r.useMemo(()=>u,Object.values(u));return(0,o.jsx)(s.Provider,{value:c,children:i})}return n=[...n,i],u.displayName=t+"Provider",[u,function(n,o){let u=o?.[e][a]||l,s=r.useContext(u);if(s)return s;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(i,...t)]}},17113:function(e,t,n){"use strict";n.d(t,{gm:function(){return i}});var r=n(7653);n(27573);var o=r.createContext(void 0);function i(e){let t=r.useContext(o);return e||t||"ltr"}},52479:function(e,t,n){"use strict";let r;n.d(t,{VY:function(){return tA},ZA:function(){return tD},JO:function(){return tk},ck:function(){return tV},wU:function(){return tB},eT:function(){return tF},__:function(){return tI},h_:function(){return tL},fC:function(){return tO},$G:function(){return tz},u_:function(){return tH},Z0:function(){return tK},xz:function(){return tT},B4:function(){return tM},l_:function(){return tW}});var o,i=n(7653),l=n.t(i,2),a=n(3458);function u(e,[t,n]){return Math.min(n,Math.max(t,e))}var s=n(2467),c=n(21111),d=n(18497),f=n(20379),p=n(17113),v=n(83299),h=n(63465),m=n(27573),y="dismissableLayer.update",g=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),x=i.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:f,onDismiss:p,...x}=e,E=i.useContext(g),[S,C]=i.useState(null),_=null!==(r=null==S?void 0:S.ownerDocument)&&void 0!==r?r:null===(n=globalThis)||void 0===n?void 0:n.document,[,j]=i.useState({}),R=(0,d.e)(t,e=>C(e)),P=Array.from(E.layers),[N]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),O=P.indexOf(N),T=S?P.indexOf(S):-1,M=E.layersWithOutsidePointerEventsDisabled.size>0,k=T>=O,L=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,h.W)(e),o=i.useRef(!1),l=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){b("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",l.current),l.current=t,n.addEventListener("click",l.current,{once:!0})):t()}else n.removeEventListener("click",l.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",l.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...E.branches].some(e=>e.contains(t));!k||n||(null==u||u(e),null==f||f(e),e.defaultPrevented||null==p||p())},_),A=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,h.W)(e),o=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!o.current&&b("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[...E.branches].some(e=>e.contains(t))||(null==c||c(e),null==f||f(e),e.defaultPrevented||null==p||p())},_);return!function(e,t=globalThis?.document){let n=(0,h.W)(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{T!==E.layers.size-1||(null==a||a(e),!e.defaultPrevented&&p&&(e.preventDefault(),p()))},_),i.useEffect(()=>{if(S)return l&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(o=_.body.style.pointerEvents,_.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(S)),E.layers.add(S),w(),()=>{l&&1===E.layersWithOutsidePointerEventsDisabled.size&&(_.body.style.pointerEvents=o)}},[S,_,l,E]),i.useEffect(()=>()=>{S&&(E.layers.delete(S),E.layersWithOutsidePointerEventsDisabled.delete(S),w())},[S,E]),i.useEffect(()=>{let e=()=>j({});return document.addEventListener(y,e),()=>document.removeEventListener(y,e)},[]),(0,m.jsx)(v.WV.div,{...x,ref:R,style:{pointerEvents:M?k?"auto":"none":void 0,...e.style},onFocusCapture:(0,s.M)(e.onFocusCapture,A.onFocusCapture),onBlurCapture:(0,s.M)(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:(0,s.M)(e.onPointerDownCapture,L.onPointerDownCapture)})});function w(){let e=new CustomEvent(y);document.dispatchEvent(e)}function b(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,v.jH)(i,l):i.dispatchEvent(l)}x.displayName="DismissableLayer",i.forwardRef((e,t)=>{let n=i.useContext(g),r=i.useRef(null),o=(0,d.e)(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,m.jsx)(v.WV.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var E=0;function S(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var C="focusScope.autoFocusOnMount",_="focusScope.autoFocusOnUnmount",j={bubbles:!1,cancelable:!0},R=i.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...a}=e,[u,s]=i.useState(null),c=(0,h.W)(o),f=(0,h.W)(l),p=i.useRef(null),y=(0,d.e)(t,e=>s(e)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let e=function(e){if(g.paused||!u)return;let t=e.target;u.contains(t)?p.current=t:O(p.current,{select:!0})},t=function(e){if(g.paused||!u)return;let t=e.relatedTarget;null===t||u.contains(t)||O(p.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&O(u)});return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,u,g.paused]),i.useEffect(()=>{if(u){T.add(g);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(C,j);u.addEventListener(C,c),u.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(O(r,{select:t}),document.activeElement!==n)return}(P(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&O(u))}return()=>{u.removeEventListener(C,c),setTimeout(()=>{let t=new CustomEvent(_,j);u.addEventListener(_,f),u.dispatchEvent(t),t.defaultPrevented||O(null!=e?e:document.body,{select:!0}),u.removeEventListener(_,f),T.remove(g)},0)}}},[u,c,f,g]);let x=i.useCallback(e=>{if(!n&&!r||g.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=P(e);return[N(t,e),N(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&O(i,{select:!0})):(e.preventDefault(),n&&O(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,g.paused]);return(0,m.jsx)(v.WV.div,{tabIndex:-1,...a,ref:y,onKeyDown:x})});function P(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function N(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function O(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}R.displayName="FocusScope";var T=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=M(r,e)).unshift(e)},remove(e){var t;null===(t=(r=M(r,e))[0])||void 0===t||t.resume()}});function M(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var k=n(32316),L=l["useId".toString()]||(()=>void 0),A=0;function W(e){let[t,n]=i.useState(L());return(0,k.b)(()=>{e||n(e=>e??String(A++))},[e]),e||(t?`radix-${t}`:"")}var D=n(43533),I=n(69433),V=i.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,m.jsx)(v.WV.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,m.jsx)("polygon",{points:"0,0 30,0 15,10"})})});V.displayName="Arrow";var F=n(68288),B="Popper",[H,z]=(0,f.b)(B),[K,$]=H(B),Y=e=>{let{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return(0,m.jsx)(K,{scope:t,anchor:r,onAnchorChange:o,children:n})};Y.displayName=B;var U="PopperAnchor",X=i.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,l=$(U,n),a=i.useRef(null),u=(0,d.e)(t,a);return i.useEffect(()=>{l.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,m.jsx)(v.WV.div,{...o,ref:u})});X.displayName=U;var Z="PopperContent",[q,G]=H(Z),J=i.forwardRef((e,t)=>{var n,r,o,l,a,u,s,c;let{__scopePopper:f,side:p="bottom",sideOffset:y=0,align:g="center",alignOffset:x=0,arrowPadding:w=0,avoidCollisions:b=!0,collisionBoundary:E=[],collisionPadding:S=0,sticky:C="partial",hideWhenDetached:_=!1,updatePositionStrategy:j="optimized",onPlaced:R,...P}=e,N=$(Z,f),[O,T]=i.useState(null),M=(0,d.e)(t,e=>T(e)),[L,A]=i.useState(null),W=(0,F.t)(L),V=null!==(s=null==W?void 0:W.width)&&void 0!==s?s:0,B=null!==(c=null==W?void 0:W.height)&&void 0!==c?c:0,H="number"==typeof S?S:{top:0,right:0,bottom:0,left:0,...S},z=Array.isArray(E)?E:[E],K=z.length>0,Y={padding:H,boundary:z.filter(en),altBoundary:K},{refs:U,floatingStyles:X,placement:G,isPositioned:J,middlewareData:Q}=(0,D.YF)({strategy:"fixed",placement:p+("center"!==g?"-"+g:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,I.Me)(...t,{animationFrame:"always"===j})},elements:{reference:N.anchor},middleware:[(0,D.cv)({mainAxis:y+B,alignmentAxis:x}),b&&(0,D.uY)({mainAxis:!0,crossAxis:!1,limiter:"partial"===C?(0,D.dr)():void 0,...Y}),b&&(0,D.RR)({...Y}),(0,D.dp)({...Y,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),L&&(0,D.x7)({element:L,padding:w}),er({arrowWidth:V,arrowHeight:B}),_&&(0,D.Cp)({strategy:"referenceHidden",...Y})]}),[ee,et]=eo(G),ei=(0,h.W)(R);(0,k.b)(()=>{J&&(null==ei||ei())},[J,ei]);let el=null===(n=Q.arrow)||void 0===n?void 0:n.x,ea=null===(r=Q.arrow)||void 0===r?void 0:r.y,eu=(null===(o=Q.arrow)||void 0===o?void 0:o.centerOffset)!==0,[es,ec]=i.useState();return(0,k.b)(()=>{O&&ec(window.getComputedStyle(O).zIndex)},[O]),(0,m.jsx)("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:J?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:es,"--radix-popper-transform-origin":[null===(l=Q.transformOrigin)||void 0===l?void 0:l.x,null===(a=Q.transformOrigin)||void 0===a?void 0:a.y].join(" "),...(null===(u=Q.hide)||void 0===u?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,m.jsx)(q,{scope:f,placedSide:ee,onArrowChange:A,arrowX:el,arrowY:ea,shouldHideArrow:eu,children:(0,m.jsx)(v.WV.div,{"data-side":ee,"data-align":et,...P,ref:M,style:{...P.style,animation:J?void 0:"none"}})})})});J.displayName=Z;var Q="PopperArrow",ee={top:"bottom",right:"left",bottom:"top",left:"right"},et=i.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=G(Q,n),i=ee[o.placedSide];return(0,m.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,m.jsx)(V,{...r,ref:t,style:{...r.style,display:"block"}})})});function en(e){return null!==e}et.displayName=Q;var er=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:s}=t,c=(null===(n=s.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,v]=eo(a),h={start:"0%",center:"50%",end:"100%"}[v],m=(null!==(i=null===(r=s.arrow)||void 0===r?void 0:r.x)&&void 0!==i?i:0)+d/2,y=(null!==(l=null===(o=s.arrow)||void 0===o?void 0:o.y)&&void 0!==l?l:0)+f/2,g="",x="";return"bottom"===p?(g=c?h:"".concat(m,"px"),x="".concat(-f,"px")):"top"===p?(g=c?h:"".concat(m,"px"),x="".concat(u.floating.height+f,"px")):"right"===p?(g="".concat(-f,"px"),x=c?h:"".concat(y,"px")):"left"===p&&(g="".concat(u.floating.width+f,"px"),x=c?h:"".concat(y,"px")),{data:{x:g,y:x}}}});function eo(e){let[t,n="center"]=e.split("-");return[t,n]}var ei=i.forwardRef((e,t)=>{var n,r;let{container:o,...l}=e,[u,s]=i.useState(!1);(0,k.b)(()=>s(!0),[]);let c=o||u&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return c?a.createPortal((0,m.jsx)(v.WV.div,{...l,ref:t}),c):null});ei.displayName="Portal";var el=i.forwardRef((e,t)=>{let{children:n,...r}=e,o=i.Children.toArray(n),l=o.find(es);if(l){let e=l.props.children,n=o.map(t=>t!==l?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,m.jsx)(ea,{...r,ref:t,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,m.jsx)(ea,{...r,ref:t,children:n})});el.displayName="Slot";var ea=i.forwardRef((e,t)=>{let{children:n,...r}=e;if(i.isValidElement(n)){let e,o;let l=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return i.cloneElement(n,{...function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?(0,d.F)(t,l):l})}return i.Children.count(n)>1?i.Children.only(null):null});ea.displayName="SlotClone";var eu=({children:e})=>(0,m.jsx)(m.Fragment,{children:e});function es(e){return i.isValidElement(e)&&e.type===eu}var ec=n(65192),ed=n(77214),ef=n(41937),ep=n(11825),ev=function(){return(ev=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var eh=n(78001),em=n(3417),ey=(0,n(36650)._)(),eg=function(){},ex=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:eg,onWheelCapture:eg,onTouchMoveCapture:eg}),o=r[0],l=r[1],a=e.forwardProps,u=e.children,s=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,v=e.noIsolation,h=e.inert,m=e.allowPinchZoom,y=e.as,g=e.gapMode,x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=(0,em.q)([n,t]),b=ev(ev({},x),o);return i.createElement(i.Fragment,null,d&&i.createElement(p,{sideCar:ey,removeScrollBar:c,shards:f,noIsolation:v,inert:h,setCallbacks:l,allowPinchZoom:!!m,lockRef:n,gapMode:g}),a?i.cloneElement(i.Children.only(u),ev(ev({},b),{ref:w})):i.createElement(void 0===y?"div":y,ev({},b,{className:s,ref:w}),u))});ex.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ex.classNames={fullWidth:eh.zi,zeroRight:eh.pF};var ew=n(63021),eb=n(17006),eE=n(61228),eS=!1;if("undefined"!=typeof window)try{var eC=Object.defineProperty({},"passive",{get:function(){return eS=!0,!0}});window.addEventListener("test",eC,eC),window.removeEventListener("test",eC,eC)}catch(e){eS=!1}var e_=!!eS&&{passive:!1},ej=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},eR=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),eP(e,r)){var o=eN(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},eP=function(e,t){return"v"===e?ej(t,"overflowY"):ej(t,"overflowX")},eN=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eO=function(e,t,n,r,o){var i,l=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),a=l*r,u=n.target,s=t.contains(u),c=!1,d=a>0,f=0,p=0;do{var v=eN(e,u),h=v[0],m=v[1]-v[2]-l*h;(h||m)&&eP(e,u)&&(f+=m,p+=h),u instanceof ShadowRoot?u=u.host:u=u.parentNode}while(!s&&u!==document.body||s&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&a>f)?c=!0:!d&&(o&&1>Math.abs(p)||!o&&-a>p)&&(c=!0),c},eT=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eM=function(e){return[e.deltaX,e.deltaY]},ek=function(e){return e&&"current"in e?e.current:e},eL=0,eA=[],eW=(0,ew.L)(ey,function(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(eL++)[0],l=i.useState(eE.Ws)[0],a=i.useRef(e);i.useEffect(function(){a.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(ek),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=eT(e),l=n.current,u="deltaX"in e?e.deltaX:l[0]-i[0],s="deltaY"in e?e.deltaY:l[1]-i[1],c=e.target,d=Math.abs(u)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=eR(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=eR(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||s)&&(r.current=o),!o)return!0;var p=r.current||o;return eO(p,t,e,"h"===p?u:s,!0)},[]),s=i.useCallback(function(e){if(eA.length&&eA[eA.length-1]===l){var n="deltaY"in e?eM(e):eT(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(ek).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=i.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=i.useCallback(function(e){n.current=eT(e),r.current=void 0},[]),f=i.useCallback(function(t){c(t.type,eM(t),t.target,u(t,e.lockRef.current))},[]),p=i.useCallback(function(t){c(t.type,eT(t),t.target,u(t,e.lockRef.current))},[]);i.useEffect(function(){return eA.push(l),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,e_),document.addEventListener("touchmove",s,e_),document.addEventListener("touchstart",d,e_),function(){eA=eA.filter(function(e){return e!==l}),document.removeEventListener("wheel",s,e_),document.removeEventListener("touchmove",s,e_),document.removeEventListener("touchstart",d,e_)}},[]);var v=e.removeScrollBar,h=e.inert;return i.createElement(i.Fragment,null,h?i.createElement(l,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,v?i.createElement(eb.jp,{gapMode:e.gapMode}):null)}),eD=i.forwardRef(function(e,t){return i.createElement(ex,ev({},e,{ref:t,sideCar:eW}))});eD.classNames=ex.classNames;var eI=[" ","Enter","ArrowUp","ArrowDown"],eV=[" ","Enter"],eF="Select",[eB,eH,ez]=(0,c.B)(eF),[eK,e$]=(0,f.b)(eF,[ez,z]),eY=z(),[eU,eX]=eK(eF),[eZ,eq]=eK(eF),eG=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:l,value:a,defaultValue:u,onValueChange:s,dir:c,name:d,autoComplete:f,disabled:v,required:h}=e,y=eY(t),[g,x]=i.useState(null),[w,b]=i.useState(null),[E,S]=i.useState(!1),C=(0,p.gm)(c),[_=!1,j]=(0,ec.T)({prop:r,defaultProp:o,onChange:l}),[R,P]=(0,ec.T)({prop:a,defaultProp:u,onChange:s}),N=i.useRef(null),O=!g||!!g.closest("form"),[T,M]=i.useState(new Set),k=Array.from(T).map(e=>e.props.value).join(";");return(0,m.jsx)(Y,{...y,children:(0,m.jsxs)(eU,{required:h,scope:t,trigger:g,onTriggerChange:x,valueNode:w,onValueNodeChange:b,valueNodeHasChildren:E,onValueNodeHasChildrenChange:S,contentId:W(),value:R,onValueChange:P,open:_,onOpenChange:j,dir:C,triggerPointerDownPosRef:N,disabled:v,children:[(0,m.jsx)(eB.Provider,{scope:t,children:(0,m.jsx)(eZ,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(e=>{M(t=>new Set(t).add(e))},[]),onNativeOptionRemove:i.useCallback(e=>{M(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),O?(0,m.jsxs)(tR,{"aria-hidden":!0,required:h,tabIndex:-1,name:d,autoComplete:f,value:R,onChange:e=>P(e.target.value),disabled:v,children:[void 0===R?(0,m.jsx)("option",{value:""}):null,Array.from(T)]},k):null]})})};eG.displayName=eF;var eJ="SelectTrigger",eQ=i.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...o}=e,i=eY(n),l=eX(eJ,n),a=l.disabled||r,u=(0,d.e)(t,l.onTriggerChange),c=eH(n),[f,p,h]=tP(e=>{let t=c().filter(e=>!e.disabled),n=t.find(e=>e.value===l.value),r=tN(t,e,n);void 0!==r&&l.onValueChange(r.value)}),y=()=>{a||(l.onOpenChange(!0),h())};return(0,m.jsx)(X,{asChild:!0,...i,children:(0,m.jsx)(v.WV.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":tj(l.value)?"":void 0,...o,ref:u,onClick:(0,s.M)(o.onClick,e=>{e.currentTarget.focus()}),onPointerDown:(0,s.M)(o.onPointerDown,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(y(),l.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())}),onKeyDown:(0,s.M)(o.onKeyDown,e=>{let t=""!==f.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||p(e.key),(!t||" "!==e.key)&&eI.includes(e.key)&&(y(),e.preventDefault())})})})});eQ.displayName=eJ;var e0="SelectValue",e1=i.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,children:i,placeholder:l="",...a}=e,u=eX(e0,n),{onValueNodeHasChildrenChange:s}=u,c=void 0!==i,f=(0,d.e)(t,u.onValueNodeChange);return(0,k.b)(()=>{s(c)},[s,c]),(0,m.jsx)(v.WV.span,{...a,ref:f,style:{pointerEvents:"none"},children:tj(u.value)?(0,m.jsx)(m.Fragment,{children:l}):i})});e1.displayName=e0;var e2=i.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...o}=e;return(0,m.jsx)(v.WV.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});e2.displayName="SelectIcon";var e3=e=>(0,m.jsx)(ei,{asChild:!0,...e});e3.displayName="SelectPortal";var e7="SelectContent",e4=i.forwardRef((e,t)=>{let n=eX(e7,e.__scopeSelect),[r,o]=i.useState();return((0,k.b)(()=>{o(new DocumentFragment)},[]),n.open)?(0,m.jsx)(e8,{...e,ref:t}):r?a.createPortal((0,m.jsx)(e5,{scope:e.__scopeSelect,children:(0,m.jsx)(eB.Slot,{scope:e.__scopeSelect,children:(0,m.jsx)("div",{children:e.children})})}),r):null});e4.displayName=e7;var[e5,e9]=eK(e7),e8=i.forwardRef((e,t)=>{let{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:l,onPointerDownOutside:a,side:u,sideOffset:c,align:f,alignOffset:p,arrowPadding:v,collisionBoundary:h,collisionPadding:y,sticky:g,hideWhenDetached:w,avoidCollisions:b,...C}=e,_=eX(e7,n),[j,P]=i.useState(null),[N,O]=i.useState(null),T=(0,d.e)(t,e=>P(e)),[M,k]=i.useState(null),[L,A]=i.useState(null),W=eH(n),[D,I]=i.useState(!1),V=i.useRef(!1);i.useEffect(()=>{if(j)return(0,ep.Ry)(j)},[j]),i.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:S()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:S()),E++,()=>{1===E&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),E--}},[]);let F=i.useCallback(e=>{let[t,...n]=W().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(let n of e)if(n===o||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&N&&(N.scrollTop=0),n===r&&N&&(N.scrollTop=N.scrollHeight),null==n||n.focus(),document.activeElement!==o))return},[W,N]),B=i.useCallback(()=>F([M,j]),[F,M,j]);i.useEffect(()=>{D&&B()},[D,B]);let{onOpenChange:H,triggerPointerDownPosRef:z}=_;i.useEffect(()=>{if(j){let e={x:0,y:0},t=t=>{var n,r,o,i;e={x:Math.abs(Math.round(t.pageX)-(null!==(o=null===(n=z.current)||void 0===n?void 0:n.x)&&void 0!==o?o:0)),y:Math.abs(Math.round(t.pageY)-(null!==(i=null===(r=z.current)||void 0===r?void 0:r.y)&&void 0!==i?i:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():j.contains(n.target)||H(!1),document.removeEventListener("pointermove",t),z.current=null};return null!==z.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[j,H,z]),i.useEffect(()=>{let e=()=>H(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[H]);let[K,$]=tP(e=>{let t=W().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=tN(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),Y=i.useCallback((e,t,n)=>{let r=!V.current&&!n;(void 0!==_.value&&_.value===t||r)&&(k(e),r&&(V.current=!0))},[_.value]),U=i.useCallback(()=>null==j?void 0:j.focus(),[j]),X=i.useCallback((e,t,n)=>{let r=!V.current&&!n;(void 0!==_.value&&_.value===t||r)&&A(e)},[_.value]),Z="popper"===r?te:e6,q=Z===te?{side:u,sideOffset:c,align:f,alignOffset:p,arrowPadding:v,collisionBoundary:h,collisionPadding:y,sticky:g,hideWhenDetached:w,avoidCollisions:b}:{};return(0,m.jsx)(e5,{scope:n,content:j,viewport:N,onViewportChange:O,itemRefCallback:Y,selectedItem:M,onItemLeave:U,itemTextRefCallback:X,focusSelectedItem:B,selectedItemText:L,position:r,isPositioned:D,searchRef:K,children:(0,m.jsx)(eD,{as:el,allowPinchZoom:!0,children:(0,m.jsx)(R,{asChild:!0,trapped:_.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,s.M)(o,e=>{var t;null===(t=_.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,m.jsx)(x,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>_.onOpenChange(!1),children:(0,m.jsx)(Z,{role:"listbox",id:_.contentId,"data-state":_.open?"open":"closed",dir:_.dir,onContextMenu:e=>e.preventDefault(),...C,...q,onPlaced:()=>I(!0),ref:T,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:(0,s.M)(C.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||$(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=W().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>F(t)),e.preventDefault()}})})})})})})});e8.displayName="SelectContentImpl";var e6=i.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...o}=e,l=eX(e7,n),a=e9(e7,n),[s,c]=i.useState(null),[f,p]=i.useState(null),h=(0,d.e)(t,e=>p(e)),y=eH(n),g=i.useRef(!1),x=i.useRef(!0),{viewport:w,selectedItem:b,selectedItemText:E,focusSelectedItem:S}=a,C=i.useCallback(()=>{if(l.trigger&&l.valueNode&&s&&f&&w&&b&&E){let e=l.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),n=l.valueNode.getBoundingClientRect(),o=E.getBoundingClientRect();if("rtl"!==l.dir){let r=o.left-t.left,i=n.left-r,l=e.left-i,a=e.width+l,c=Math.max(a,t.width),d=u(i,[10,window.innerWidth-10-c]);s.style.minWidth=a+"px",s.style.left=d+"px"}else{let r=t.right-o.right,i=window.innerWidth-n.right-r,l=window.innerWidth-e.right-i,a=e.width+l,c=Math.max(a,t.width),d=u(i,[10,window.innerWidth-10-c]);s.style.minWidth=a+"px",s.style.right=d+"px"}let i=y(),a=window.innerHeight-20,c=w.scrollHeight,d=window.getComputedStyle(f),p=parseInt(d.borderTopWidth,10),v=parseInt(d.paddingTop,10),h=parseInt(d.borderBottomWidth,10),m=p+v+c+parseInt(d.paddingBottom,10)+h,x=Math.min(5*b.offsetHeight,m),S=window.getComputedStyle(w),C=parseInt(S.paddingTop,10),_=parseInt(S.paddingBottom,10),j=e.top+e.height/2-10,R=b.offsetHeight/2,P=p+v+(b.offsetTop+R);if(P<=j){let e=b===i[i.length-1].ref.current;s.style.bottom="0px";let t=f.clientHeight-w.offsetTop-w.offsetHeight;s.style.height=P+Math.max(a-j,R+(e?_:0)+t+h)+"px"}else{let e=b===i[0].ref.current;s.style.top="0px";let t=Math.max(j,p+w.offsetTop+(e?C:0)+R);s.style.height=t+(m-P)+"px",w.scrollTop=P-j+w.offsetTop}s.style.margin="".concat(10,"px 0"),s.style.minHeight=x+"px",s.style.maxHeight=a+"px",null==r||r(),requestAnimationFrame(()=>g.current=!0)}},[y,l.trigger,l.valueNode,s,f,w,b,E,l.dir,r]);(0,k.b)(()=>C(),[C]);let[_,j]=i.useState();(0,k.b)(()=>{f&&j(window.getComputedStyle(f).zIndex)},[f]);let R=i.useCallback(e=>{e&&!0===x.current&&(C(),null==S||S(),x.current=!1)},[C,S]);return(0,m.jsx)(tt,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:g,onScrollButtonChange:R,children:(0,m.jsx)("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_},children:(0,m.jsx)(v.WV.div,{...o,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});e6.displayName="SelectItemAlignedPosition";var te=i.forwardRef((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:o=10,...i}=e,l=eY(n);return(0,m.jsx)(J,{...l,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});te.displayName="SelectPopperPosition";var[tt,tn]=eK(e7,{}),tr="SelectViewport",to=i.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...o}=e,l=e9(tr,n),a=tn(tr,n),u=(0,d.e)(t,l.onViewportChange),c=i.useRef(0);return(0,m.jsxs)(m.Fragment,{children:[(0,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}),(0,m.jsx)(eB.Slot,{scope:n,children:(0,m.jsx)(v.WV.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:u,style:{position:"relative",flex:1,overflow:"auto",...o.style},onScroll:(0,s.M)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=a;if((null==r?void 0:r.current)&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,o=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(o<r){let i=o+e,l=Math.min(r,i),a=i-l;n.style.height=l+"px","0px"===n.style.bottom&&(t.scrollTop=a>0?a:0,n.style.justifyContent="flex-end")}}}c.current=t.scrollTop})})})]})});to.displayName=tr;var ti="SelectGroup",[tl,ta]=eK(ti),tu=i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=W();return(0,m.jsx)(tl,{scope:n,id:o,children:(0,m.jsx)(v.WV.div,{role:"group","aria-labelledby":o,...r,ref:t})})});tu.displayName=ti;var ts="SelectLabel",tc=i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=ta(ts,n);return(0,m.jsx)(v.WV.div,{id:o.id,...r,ref:t})});tc.displayName=ts;var td="SelectItem",[tf,tp]=eK(td),tv=i.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:o=!1,textValue:l,...a}=e,u=eX(td,n),c=e9(td,n),f=u.value===r,[p,h]=i.useState(null!=l?l:""),[y,g]=i.useState(!1),x=(0,d.e)(t,e=>{var t;return null===(t=c.itemRefCallback)||void 0===t?void 0:t.call(c,e,r,o)}),w=W(),b=()=>{o||(u.onValueChange(r),u.onOpenChange(!1))};if(""===r)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,m.jsx)(tf,{scope:n,value:r,disabled:o,textId:w,isSelected:f,onItemTextChange:i.useCallback(e=>{h(t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()})},[]),children:(0,m.jsx)(eB.ItemSlot,{scope:n,value:r,disabled:o,textValue:p,children:(0,m.jsx)(v.WV.div,{role:"option","aria-labelledby":w,"data-highlighted":y?"":void 0,"aria-selected":f&&y,"data-state":f?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:x,onFocus:(0,s.M)(a.onFocus,()=>g(!0)),onBlur:(0,s.M)(a.onBlur,()=>g(!1)),onPointerUp:(0,s.M)(a.onPointerUp,b),onPointerMove:(0,s.M)(a.onPointerMove,e=>{if(o){var t;null===(t=c.onItemLeave)||void 0===t||t.call(c)}else e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,s.M)(a.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null===(t=c.onItemLeave)||void 0===t||t.call(c)}}),onKeyDown:(0,s.M)(a.onKeyDown,e=>{var t;(null===(t=c.searchRef)||void 0===t?void 0:t.current)!==""&&" "===e.key||(eV.includes(e.key)&&b()," "===e.key&&e.preventDefault())})})})})});tv.displayName=td;var th="SelectItemText",tm=i.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,...l}=e,u=eX(th,n),s=e9(th,n),c=tp(th,n),f=eq(th,n),[p,h]=i.useState(null),y=(0,d.e)(t,e=>h(e),c.onItemTextChange,e=>{var t;return null===(t=s.itemTextRefCallback)||void 0===t?void 0:t.call(s,e,c.value,c.disabled)}),g=null==p?void 0:p.textContent,x=i.useMemo(()=>(0,m.jsx)("option",{value:c.value,disabled:c.disabled,children:g},c.value),[c.disabled,c.value,g]),{onNativeOptionAdd:w,onNativeOptionRemove:b}=f;return(0,k.b)(()=>(w(x),()=>b(x)),[w,b,x]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(v.WV.span,{id:c.textId,...l,ref:y}),c.isSelected&&u.valueNode&&!u.valueNodeHasChildren?a.createPortal(l.children,u.valueNode):null]})});tm.displayName=th;var ty="SelectItemIndicator",tg=i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return tp(ty,n).isSelected?(0,m.jsx)(v.WV.span,{"aria-hidden":!0,...r,ref:t}):null});tg.displayName=ty;var tx="SelectScrollUpButton",tw=i.forwardRef((e,t)=>{let n=e9(tx,e.__scopeSelect),r=tn(tx,e.__scopeSelect),[o,l]=i.useState(!1),a=(0,d.e)(t,r.onScrollButtonChange);return(0,k.b)(()=>{if(n.viewport&&n.isPositioned){let e=function(){l(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,m.jsx)(tS,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});tw.displayName=tx;var tb="SelectScrollDownButton",tE=i.forwardRef((e,t)=>{let n=e9(tb,e.__scopeSelect),r=tn(tb,e.__scopeSelect),[o,l]=i.useState(!1),a=(0,d.e)(t,r.onScrollButtonChange);return(0,k.b)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;l(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,m.jsx)(tS,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});tE.displayName=tb;var tS=i.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...o}=e,l=e9("SelectScrollButton",n),a=i.useRef(null),u=eH(n),c=i.useCallback(()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)},[]);return i.useEffect(()=>()=>c(),[c]),(0,k.b)(()=>{var e;let t=u().find(e=>e.ref.current===document.activeElement);null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})},[u]),(0,m.jsx)(v.WV.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,s.M)(o.onPointerDown,()=>{null===a.current&&(a.current=window.setInterval(r,50))}),onPointerMove:(0,s.M)(o.onPointerMove,()=>{var e;null===(e=l.onItemLeave)||void 0===e||e.call(l),null===a.current&&(a.current=window.setInterval(r,50))}),onPointerLeave:(0,s.M)(o.onPointerLeave,()=>{c()})})}),tC=i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,m.jsx)(v.WV.div,{"aria-hidden":!0,...r,ref:t})});tC.displayName="SelectSeparator";var t_="SelectArrow";function tj(e){return""===e||void 0===e}i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=eY(n),i=eX(t_,n),l=e9(t_,n);return i.open&&"popper"===l.position?(0,m.jsx)(et,{...o,...r,ref:t}):null}).displayName=t_;var tR=i.forwardRef((e,t)=>{let{value:n,...r}=e,o=i.useRef(null),l=(0,d.e)(t,o),a=(0,ed.D)(n);return i.useEffect(()=>{let e=o.current,t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(a!==n&&t){let r=new Event("change",{bubbles:!0});t.call(e,n),e.dispatchEvent(r)}},[a,n]),(0,m.jsx)(ef.T,{asChild:!0,children:(0,m.jsx)("select",{...r,ref:l,defaultValue:n})})});function tP(e){let t=(0,h.W)(e),n=i.useRef(""),r=i.useRef(0),o=i.useCallback(e=>{let o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout(()=>e(""),1e3))}(o)},[t]),l=i.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,l]}function tN(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(i=i.filter(e=>e!==n));let l=i.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}tR.displayName="BubbleSelect";var tO=eG,tT=eQ,tM=e1,tk=e2,tL=e3,tA=e4,tW=to,tD=tu,tI=tc,tV=tv,tF=tm,tB=tg,tH=tw,tz=tE,tK=tC},77214:function(e,t,n){"use strict";n.d(t,{D:function(){return o}});var r=n(7653);function o(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},68288:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});var r=n(7653),o=n(32316);function i(e){let[t,n]=r.useState(void 0);return(0,o.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}},41937:function(e,t,n){"use strict";n.d(t,{T:function(){return l},f:function(){return a}});var r=n(7653),o=n(83299),i=n(27573),l=r.forwardRef((e,t)=>(0,i.jsx)(o.WV.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));l.displayName="VisuallyHidden";var a=l}}]);