demio-ui 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -3,5 +3,5 @@
3
3
  Copyright (c) 2018 Jed Watson.
4
4
  Licensed under the MIT License (MIT), see
5
5
  http://jedwatson.github.io/classnames
6
- */c=s,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)n.push(o);else if(Array.isArray(o)){if(o.length){var a=t.apply(null,o);a&&n.push(a)}}else if("object"===i){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){n.push(o.toString());continue}for(var l in o)e.call(o,l)&&o[l]&&n.push(l)}}}return n.join(" ")}c.exports?(t.default=t,c.exports=t):window.classNames=t}();var u=l(s.exports),d={button:"Button-modules_button__tpJr3",secondary:"Button-modules_secondary__JGOIF",small:"Button-modules_small__dNTOw",large:"Button-modules_large__5tvgy",prefix:"Button-modules_prefix__86hpR",suffix:"Button-modules_suffix__5uHiO",fullWidth:"Button-modules_fullWidth__3ET8J"};function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}function p(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function m(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function v(...t){return e.useCallback(m(...t),t)}function h(t,n=[]){let r=[];const o=()=>{const n=r.map((t=>e.createContext(t)));return function(r){const o=(null==r?void 0:r[t])||n;return e.useMemo((()=>({[`__scope${t}`]:{...r,[t]:o}})),[r,o])}};return o.scopeName=t,[function(n,o){const i=e.createContext(o),a=r.length;function l(n){const{scope:r,children:o,...l}=n,c=(null==r?void 0:r[t][a])||i,s=e.useMemo((()=>l),Object.values(l));return e.createElement(c.Provider,{value:s},o)}return r=[...r,o],l.displayName=n+"Provider",[l,function(r,l){const c=(null==l?void 0:l[t][a])||i,s=e.useContext(c);if(s)return s;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},g(o,...n)]}function g(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const o=r.reduce(((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]})),{});return e.useMemo((()=>({[`__scope${n.scopeName}`]:o})),[o])}};return r.scopeName=n.scopeName,r}const y=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?e.useLayoutEffect:()=>{},w=r["useId".toString()]||(()=>{});let b=0;function E(e){const[t,n]=r.useState(w());return y((()=>{e||n((e=>null!=e?e:String(b++)))}),[e]),e||(t?`radix-${t}`:"")}function x(t){const n=e.useRef(t);return e.useEffect((()=>{n.current=t})),e.useMemo((()=>(...e)=>{var t;return null===(t=n.current)||void 0===t?void 0:t.call(n,...e)}),[])}function C({prop:t,defaultProp:n,onChange:r=(()=>{})}){const[o,i]=function({defaultProp:t,onChange:n}){const r=e.useState(t),[o]=r,i=e.useRef(o),a=x(n);return e.useEffect((()=>{i.current!==o&&(a(o),i.current=o)}),[o,i,a]),r}({defaultProp:n,onChange:r}),a=void 0!==t,l=a?t:o,c=x(r);return[l,e.useCallback((e=>{if(a){const n="function"==typeof e?e(t):e;n!==t&&c(n)}else i(e)}),[a,t,i,c])]}const _=e.forwardRef(((t,n)=>{const{children:r,...o}=t,i=e.Children.toArray(r),a=i.find(R);if(a){const t=a.props.children,r=i.map((n=>n===a?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n));return e.createElement(S,f({},o,{ref:n}),e.isValidElement(t)?e.cloneElement(t,void 0,r):null)}return e.createElement(S,f({},o,{ref:n}),r)}));_.displayName="Slot";const S=e.forwardRef(((t,n)=>{const{children:r,...o}=t;return e.isValidElement(r)?e.cloneElement(r,{...P(o,r.props),ref:n?m(n,r.ref):r.ref}):e.Children.count(r)>1?e.Children.only(null):null}));S.displayName="SlotClone";const T=({children:t})=>e.createElement(e.Fragment,null,t);function R(t){return e.isValidElement(t)&&t.type===T}function P(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...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}}const O=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,n)=>{const r=e.forwardRef(((t,r)=>{const{asChild:o,...i}=t,a=o?_:n;return e.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),e.createElement(a,f({},i,{ref:r}))}));return r.displayName=`Primitive.${n}`,{...t,[n]:r}}),{});const D="dismissableLayer.update",k="dismissableLayer.pointerDownOutside",A="dismissableLayer.focusOutside";let L;const M=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),I=e.forwardRef(((t,n)=>{var r;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:l,onInteractOutside:c,onDismiss:s,...u}=t,d=e.useContext(M),[m,h]=e.useState(null),g=null!==(r=null==m?void 0:m.ownerDocument)&&void 0!==r?r:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,y]=e.useState({}),w=v(n,(e=>h(e))),b=Array.from(d.layers),[E]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),C=b.indexOf(E),_=m?b.indexOf(m):-1,S=d.layersWithOutsidePointerEventsDisabled.size>0,T=_>=C,R=function(t,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=x(t),o=e.useRef(!1),i=e.useRef((()=>{}));return e.useEffect((()=>{const e=e=>{if(e.target&&!o.current){const t={originalEvent:e};function a(){F(k,r,t,{discrete:!0})}"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=a,n.addEventListener("click",i.current,{once:!0})):a()}o.current=!1},t=window.setTimeout((()=>{n.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}}),[n,r]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,n=[...d.branches].some((e=>e.contains(t)));T&&!n&&(null==a||a(e),null==c||c(e),e.defaultPrevented||null==s||s())}),g),P=function(t,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=x(t),o=e.useRef(!1);return e.useEffect((()=>{const e=e=>{if(e.target&&!o.current){F(A,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=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(null==l||l(e),null==c||c(e),e.defaultPrevented||null==s||s())}),g);return function(t,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=x(t);e.useEffect((()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e),()=>n.removeEventListener("keydown",e)}),[r,n])}((e=>{_===d.layers.size-1&&(null==i||i(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),g),e.useEffect((()=>{if(m)return o&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(L=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(m)),d.layers.add(m),N(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(g.body.style.pointerEvents=L)}}),[m,g,o,d]),e.useEffect((()=>()=>{m&&(d.layers.delete(m),d.layersWithOutsidePointerEventsDisabled.delete(m),N())}),[m,d]),e.useEffect((()=>{const e=()=>y({});return document.addEventListener(D,e),()=>document.removeEventListener(D,e)}),[]),e.createElement(O.div,f({},u,{ref:w,style:{pointerEvents:S?T?"auto":"none":void 0,...t.style},onFocusCapture:p(t.onFocusCapture,P.onFocusCapture),onBlurCapture:p(t.onBlurCapture,P.onBlurCapture),onPointerDownCapture:p(t.onPointerDownCapture,R.onPointerDownCapture)}))}));function N(){const e=new CustomEvent(D);document.dispatchEvent(e)}function F(e,n,r,{discrete:o}){const i=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});n&&i.addEventListener(e,n,{once:!0}),o?function(e,n){e&&t.flushSync((()=>e.dispatchEvent(n)))}(i,a):i.dispatchEvent(a)}const B="focusScope.autoFocusOnMount",H="focusScope.autoFocusOnUnmount",W={bubbles:!1,cancelable:!0},j=e.forwardRef(((t,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...l}=t,[c,s]=e.useState(null),u=x(i),d=x(a),p=e.useRef(null),m=v(n,(e=>s(e))),h=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect((()=>{if(o){function e(e){if(h.paused||!c)return;const t=e.target;c.contains(t)?p.current=t:U(p.current,{select:!0})}function t(e){if(h.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||U(p.current,{select:!0}))}function n(e){const t=document.activeElement;for(const n of e)n.removedNodes.length>0&&(null!=c&&c.contains(t)||U(c))}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[o,c,h.paused]),e.useEffect((()=>{if(c){$.add(h);const t=document.activeElement;if(!c.contains(t)){const n=new CustomEvent(B,W);c.addEventListener(B,u),c.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(U(r,{select:t}),document.activeElement!==n)return}((e=V(c),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&U(c))}return()=>{c.removeEventListener(B,u),setTimeout((()=>{const e=new CustomEvent(H,W);c.addEventListener(H,d),c.dispatchEvent(e),e.defaultPrevented||U(null!=t?t:document.body,{select:!0}),c.removeEventListener(H,d),$.remove(h)}),0)}}var e}),[c,u,d,h]);const g=e.useCallback((e=>{if(!r&&!o)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,i]=function(e){const t=V(e),n=K(t,e),r=K(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&U(i,{select:!0})):(e.preventDefault(),r&&U(o,{select:!0})):n===t&&e.preventDefault()}}),[r,o,h.paused]);return e.createElement(O.div,f({tabIndex:-1},l,{ref:m,onKeyDown:g}))}));function V(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const 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 K(e,t){for(const n of e)if(!z(n,{upTo:t}))return n}function z(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function U(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const $=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=q(e,t),e.unshift(t)},remove(t){var n;e=q(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function q(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const X=e.forwardRef(((n,r)=>{var o;const{container:i=(null===globalThis||void 0===globalThis||null===(o=globalThis.document)||void 0===o?void 0:o.body),...a}=n;return i?t.createPortal(e.createElement(O.div,f({},a,{ref:r})),i):null}));const Y=n=>{const{present:r,children:o}=n,i=function(n){const[r,o]=e.useState(),i=e.useRef({}),a=e.useRef(n),l=e.useRef("none"),c=n?"mounted":"unmounted",[s,u]=function(t,n){return e.useReducer(((e,t)=>{const r=n[e][t];return null!=r?r:e}),t)}(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect((()=>{const e=G(i.current);l.current="mounted"===s?e:"none"}),[s]),y((()=>{const e=i.current,t=a.current;if(t!==n){const r=l.current,o=G(e);if(n)u("MOUNT");else if("none"===o||"none"===(null==e?void 0:e.display))u("UNMOUNT");else{u(t&&r!==o?"ANIMATION_OUT":"UNMOUNT")}a.current=n}}),[n,u]),y((()=>{if(r){const e=e=>{const n=G(i.current).includes(e.animationName);e.target===r&&n&&t.flushSync((()=>u("ANIMATION_END")))},n=e=>{e.target===r&&(l.current=G(i.current))};return r.addEventListener("animationstart",n),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),()=>{r.removeEventListener("animationstart",n),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}u("ANIMATION_END")}),[r,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:e.useCallback((e=>{e&&(i.current=getComputedStyle(e)),o(e)}),[])}}(r),a="function"==typeof o?o({present:i.isPresent}):e.Children.only(o),l=v(i.ref,a.ref);return"function"==typeof o||i.isPresent?e.cloneElement(a,{ref:l}):null};function G(e){return(null==e?void 0:e.animationName)||"none"}Y.displayName="Presence";let Z=0;function J(){e.useEffect((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:Q()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Q()),Z++,()=>{1===Z&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Z--}}),[])}function Q(){const 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 ee="right-scroll-bar-position",te="width-before-scroll-bar";function ne(t,n){return r=n||null,o=function(e){return t.forEach((function(t){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(t,e)}))},(i=e.useState((function(){return{value:r,callback:o,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}}))[0]).callback=o,i.facade;var r,o,i}function re(e){return e}var oe=function(e){var t=e.sideCar,n=a(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return r.createElement(o,i({},n))};oe.isSideCarExport=!0;var ie=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=re);var n=[],r=!1;return{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(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=i({async:!0,ssr:!1},e),t}(),ae=function(){},le=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useState({onScrollCapture:ae,onWheelCapture:ae,onTouchMoveCapture:ae}),l=o[0],c=o[1],s=e.forwardProps,u=e.children,d=e.className,f=e.removeScrollBar,p=e.enabled,m=e.shards,v=e.sideCar,h=e.noIsolation,g=e.inert,y=e.allowPinchZoom,w=e.as,b=void 0===w?"div":w,E=a(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),x=v,C=ne([n,t]),_=i(i({},E),l);return r.createElement(r.Fragment,null,p&&r.createElement(x,{sideCar:ie,removeScrollBar:f,shards:m,noIsolation:h,inert:g,setCallbacks:c,allowPinchZoom:!!y,lockRef:n}),s?r.cloneElement(r.Children.only(u),i(i({},_),{ref:C})):r.createElement(b,i({},_,{className:d,ref:C}),u))}));le.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},le.classNames={fullWidth:te,zeroRight:ee};function ce(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var se=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=ce())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ue=function(){var e,t=(e=se(),function(t,n){r.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},de={left:0,top:0,right:0,gap:0},fe=function(e){return parseInt(e||"",10)||0},pe=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return de;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[fe(n),fe(r),fe(o)]}(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])}},me=ue(),ve=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(ee," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(te," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(ee," .").concat(ee," {\n right: 0 ").concat(r,";\n }\n \n .").concat(te," .").concat(te," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},he=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,i=void 0===o?"margin":o,a=r.useMemo((function(){return pe(i)}),[i]);return r.createElement(me,{styles:ve(a,!t,i,n?"":"!important")})},ge=!1;if("undefined"!=typeof window)try{var ye=Object.defineProperty({},"passive",{get:function(){return ge=!0,!0}});window.addEventListener("test",ye,ye),window.removeEventListener("test",ye,ye)}catch(e){ge=!1}var we=!!ge&&{passive:!1},be=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Ee=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),xe(e,n)){var r=Ce(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},xe=function(e,t){return"v"===e?function(e){return be(e,"overflowY")}(t):function(e){return be(e,"overflowX")}(t)},Ce=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},_e=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Se=function(e){return[e.deltaX,e.deltaY]},Te=function(e){return e&&"current"in e?e.current:e},Re=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Pe=0,Oe=[];var De,ke=(De=function(e){var t=r.useRef([]),n=r.useRef([0,0]),o=r.useRef(),i=r.useState(Pe++)[0],a=r.useState((function(){return ue()}))[0],l=r.useRef(e);r.useEffect((function(){l.current=e}),[e]),r.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));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(Te),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(i))})),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(i))}))}}}),[e.inert,e.lockRef.current,e.shards]);var c=r.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!l.current.allowPinchZoom;var r,i=_e(e),a=n.current,c="deltaX"in e?e.deltaX:a[0]-i[0],s="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,d=Math.abs(c)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=Ee(d,u);if(!f)return!0;if(f?r=d:(r="v"===d?"h":"v",f=Ee(d,u)),!f)return!1;if(!o.current&&"changedTouches"in e&&(c||s)&&(o.current=r),!r)return!0;var p=o.current||r;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,l=n.target,c=t.contains(l),s=!1,u=a>0,d=0,f=0;do{var p=Ce(e,l),m=p[0],v=p[1]-p[2]-i*m;(m||v)&&xe(e,l)&&(d+=v,f+=m),l=l.parentNode}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(u&&(o&&0===d||!o&&a>d)||!u&&(o&&0===f||!o&&-a>f))&&(s=!0),s}(p,t,e,"h"===p?c:s,!0)}),[]),s=r.useCallback((function(e){var n=e;if(Oe.length&&Oe[Oe.length-1]===a){var r="deltaY"in n?Se(n):_e(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var i=(l.current.shards||[]).map(Te).filter(Boolean).filter((function(e){return e.contains(n.target)}));(i.length>0?c(n,i[0]):!l.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),u=r.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),d=r.useCallback((function(e){n.current=_e(e),o.current=void 0}),[]),f=r.useCallback((function(t){u(t.type,Se(t),t.target,c(t,e.lockRef.current))}),[]),p=r.useCallback((function(t){u(t.type,_e(t),t.target,c(t,e.lockRef.current))}),[]);r.useEffect((function(){return Oe.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,we),document.addEventListener("touchmove",s,we),document.addEventListener("touchstart",d,we),function(){Oe=Oe.filter((function(e){return e!==a})),document.removeEventListener("wheel",s,we),document.removeEventListener("touchmove",s,we),document.removeEventListener("touchstart",d,we)}}),[]);var m=e.removeScrollBar,v=e.inert;return r.createElement(r.Fragment,null,v?r.createElement(a,{styles:Re(i)}):null,m?r.createElement(he,{gapMode:"margin"}):null)},ie.useMedium(De),oe),Ae=r.forwardRef((function(e,t){return r.createElement(le,i({},e,{ref:t,sideCar:ke}))}));Ae.classNames=le.classNames;var Le=Ae,Me=new WeakMap,Ie=new WeakMap,Ne={},Fe=0,Be=function(e){return e&&(e.host||Be(e.parentNode))},He=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Be(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Ne[n]||(Ne[n]=new WeakMap);var i=Ne[n],a=[],l=new Set,c=new Set(o),s=function(e){e&&!l.has(e)&&(l.add(e),s(e.parentNode))};o.forEach(s);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(l.has(e))u(e);else{var t=e.getAttribute(r),o=null!==t&&"false"!==t,c=(Me.get(e)||0)+1,s=(i.get(e)||0)+1;Me.set(e,c),i.set(e,s),a.push(e),1===c&&o&&Ie.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}}))};return u(t),l.clear(),Fe++,function(){a.forEach((function(e){var t=Me.get(e)-1,o=i.get(e)-1;Me.set(e,t),i.set(e,o),t||(Ie.has(e)||e.removeAttribute(r),Ie.delete(e)),o||e.removeAttribute(n)})),--Fe||(Me=new WeakMap,Me=new WeakMap,Ie=new WeakMap,Ne={})}},We=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),He(r,o,n,"aria-hidden")):function(){return null}};const je="Dialog",[Ve,Ke]=h(je),[ze,Ue]=Ve(je),$e="DialogPortal",[qe,Xe]=Ve($e,{forceMount:void 0}),Ye="DialogOverlay",Ge=e.forwardRef(((t,n)=>{const r=Xe(Ye,t.__scopeDialog),{forceMount:o=r.forceMount,...i}=t,a=Ue(Ye,t.__scopeDialog);return a.modal?e.createElement(Y,{present:o||a.open},e.createElement(Ze,f({},i,{ref:n}))):null})),Ze=e.forwardRef(((t,n)=>{const{__scopeDialog:r,...o}=t,i=Ue(Ye,r);return e.createElement(Le,{as:_,allowPinchZoom:!0,shards:[i.contentRef]},e.createElement(O.div,f({"data-state":rt(i.open)},o,{ref:n,style:{pointerEvents:"auto",...o.style}})))})),Je="DialogContent",Qe=e.forwardRef(((t,n)=>{const r=Xe(Je,t.__scopeDialog),{forceMount:o=r.forceMount,...i}=t,a=Ue(Je,t.__scopeDialog);return e.createElement(Y,{present:o||a.open},a.modal?e.createElement(et,f({},i,{ref:n})):e.createElement(tt,f({},i,{ref:n})))})),et=e.forwardRef(((t,n)=>{const r=Ue(Je,t.__scopeDialog),o=e.useRef(null),i=v(n,r.contentRef,o);return e.useEffect((()=>{const e=o.current;if(e)return We(e)}),[]),e.createElement(nt,f({},t,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:p(t.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:p(t.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:p(t.onFocusOutside,(e=>e.preventDefault()))}))})),tt=e.forwardRef(((t,n)=>{const r=Ue(Je,t.__scopeDialog),o=e.useRef(!1),i=e.useRef(!1);return e.createElement(nt,f({},t,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{var n,a;(null===(n=t.onCloseAutoFocus)||void 0===n||n.call(t,e),e.defaultPrevented)||(o.current||null===(a=r.triggerRef.current)||void 0===a||a.focus(),e.preventDefault());o.current=!1,i.current=!1},onInteractOutside:e=>{var n,a;null===(n=t.onInteractOutside)||void 0===n||n.call(t,e),e.defaultPrevented||(o.current=!0,"pointerdown"===e.detail.originalEvent.type&&(i.current=!0));const l=e.target;(null===(a=r.triggerRef.current)||void 0===a?void 0:a.contains(l))&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}}))})),nt=e.forwardRef(((t,n)=>{const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,...l}=t,c=Ue(Je,r),s=v(n,e.useRef(null));return J(),e.createElement(e.Fragment,null,e.createElement(j,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a},e.createElement(I,f({role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":rt(c.open)},l,{ref:s,onDismiss:()=>c.onOpenChange(!1)}))),!1)}));function rt(e){return e?"open":"closed"}const ot=t=>{const{__scopeDialog:n,children:r,open:o,defaultOpen:i,onOpenChange:a,modal:l=!0}=t,c=e.useRef(null),s=e.useRef(null),[u=!1,d]=C({prop:o,defaultProp:i,onChange:a});return e.createElement(ze,{scope:n,triggerRef:c,contentRef:s,contentId:E(),titleId:E(),descriptionId:E(),open:u,onOpenChange:d,onOpenToggle:e.useCallback((()=>d((e=>!e))),[d]),modal:l},r)},it=t=>{const{__scopeDialog:n,forceMount:r,children:o,container:i}=t,a=Ue($e,n);return e.createElement(qe,{scope:n,forceMount:r},e.Children.map(o,(t=>e.createElement(Y,{present:r||a.open},e.createElement(X,{asChild:!0,container:i},t)))))},at=Ge,lt=Qe,ct=e.forwardRef(((t,n)=>{const{__scopeDialog:r,...o}=t,i=Ue("DialogTitle",r);return e.createElement(O.h2,f({id:i.titleId},o,{ref:n}))})),st=e.forwardRef(((t,n)=>{const{__scopeDialog:r,...o}=t,i=Ue("DialogClose",r);return e.createElement(O.button,f({type:"button"},o,{ref:n,onClick:p(t.onClick,(()=>i.onOpenChange(!1)))}))}));var ut,dt,ft={overlay:"Modal-modules_overlay__V-vTn",content:"Modal-modules_content__sK9HS",header:"Modal-modules_header__-dxAm",close:"Modal-modules_close__CwIjR",title:"Modal-modules_title__3ehge"};function pt(){return pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pt.apply(this,arguments)}var mt=function(e){return r.createElement("svg",pt({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),r.createElement("mask",{id:"close_svg__a",width:24,height:24,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},ut||(ut=r.createElement("path",{fill:"#D9D9D9",d:"M0 0h24v24H0z"}))),dt||(dt=r.createElement("g",{mask:"url(#close_svg__a)"},r.createElement("path",{fill:"#2C3336",d:"m12 13.054-5.073 5.073a.724.724 0 0 1-.522.212.707.707 0 0 1-.532-.212.717.717 0 0 1-.217-.527c0-.206.072-.382.217-.527L10.946 12 5.873 6.927a.725.725 0 0 1-.212-.522.707.707 0 0 1 .212-.532.717.717 0 0 1 .527-.217c.206 0 .382.072.527.217L12 10.946l5.073-5.073a.724.724 0 0 1 .522-.212.707.707 0 0 1 .532.212c.145.145.217.32.217.527a.717.717 0 0 1-.217.527L13.054 12l5.073 5.073c.138.139.21.313.212.522a.707.707 0 0 1-.212.532.717.717 0 0 1-.527.217.717.717 0 0 1-.527-.217L12 13.054Z"}))))};function vt(t){const n=t+"CollectionProvider",[r,o]=h(n),[i,a]=r(n,{collectionRef:{current:null},itemMap:new Map}),l=t+"CollectionSlot",c=t+"CollectionItemSlot",s="data-radix-collection-item";return[{Provider:t=>{const{scope:n,children:r}=t,o=e.useRef(null),a=e.useRef(new Map).current;return e.createElement(i,{scope:n,itemMap:a,collectionRef:o},r)},Slot:e.forwardRef(((t,n)=>{const{scope:r,children:o}=t,i=v(n,a(l,r).collectionRef);return e.createElement(_,{ref:i},o)})),ItemSlot:e.forwardRef(((t,n)=>{const{scope:r,children:o,...i}=t,l=e.useRef(null),u=v(n,l),d=a(c,r);return e.useEffect((()=>(d.itemMap.set(l,{ref:l,...i}),()=>{d.itemMap.delete(l)}))),e.createElement(_,{[s]:"",ref:u},o)}))},function(n){const r=a(t+"CollectionConsumer",n);return e.useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${s}]`));return Array.from(r.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[r.collectionRef,r.itemMap])},o]}const ht=e.createContext(void 0);function gt(t){const n=e.useContext(ht);return t||n||"ltr"}const yt="rovingFocusGroup.onEntryFocus",wt={bubbles:!1,cancelable:!0},bt="RovingFocusGroup",[Et,xt,Ct]=vt(bt),[_t,St]=h(bt,[Ct]),[Tt,Rt]=_t(bt),Pt=e.forwardRef(((t,n)=>e.createElement(Et.Provider,{scope:t.__scopeRovingFocusGroup},e.createElement(Et.Slot,{scope:t.__scopeRovingFocusGroup},e.createElement(Ot,f({},t,{ref:n})))))),Ot=e.forwardRef(((t,n)=>{const{__scopeRovingFocusGroup:r,orientation:o,loop:i=!1,dir:a,currentTabStopId:l,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:s,onEntryFocus:u,...d}=t,m=e.useRef(null),h=v(n,m),g=gt(a),[y=null,w]=C({prop:l,defaultProp:c,onChange:s}),[b,E]=e.useState(!1),_=x(u),S=xt(r),T=e.useRef(!1),[R,P]=e.useState(0);return e.useEffect((()=>{const e=m.current;if(e)return e.addEventListener(yt,_),()=>e.removeEventListener(yt,_)}),[_]),e.createElement(Tt,{scope:r,orientation:o,dir:g,loop:i,currentTabStopId:y,onItemFocus:e.useCallback((e=>w(e)),[w]),onItemShiftTab:e.useCallback((()=>E(!0)),[]),onFocusableItemAdd:e.useCallback((()=>P((e=>e+1))),[]),onFocusableItemRemove:e.useCallback((()=>P((e=>e-1))),[])},e.createElement(O.div,f({tabIndex:b||0===R?-1:0,"data-orientation":o},d,{ref:h,style:{outline:"none",...t.style},onMouseDown:p(t.onMouseDown,(()=>{T.current=!0})),onFocus:p(t.onFocus,(e=>{const t=!T.current;if(e.target===e.currentTarget&&t&&!b){const t=new CustomEvent(yt,wt);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=S().filter((e=>e.focusable));At([e.find((e=>e.active)),e.find((e=>e.id===y)),...e].filter(Boolean).map((e=>e.ref.current)))}}T.current=!1})),onBlur:p(t.onBlur,(()=>E(!1)))})))})),Dt=e.forwardRef(((t,n)=>{const{__scopeRovingFocusGroup:r,focusable:o=!0,active:i=!1,tabStopId:a,...l}=t,c=E(),s=a||c,u=Rt("RovingFocusGroupItem",r),d=u.currentTabStopId===s,m=xt(r),{onFocusableItemAdd:v,onFocusableItemRemove:h}=u;return e.useEffect((()=>{if(o)return v(),()=>h()}),[o,v,h]),e.createElement(Et.ItemSlot,{scope:r,id:s,focusable:o,active:i},e.createElement(O.span,f({tabIndex:d?0:-1,"data-orientation":u.orientation},l,{ref:n,onMouseDown:p(t.onMouseDown,(e=>{o?u.onItemFocus(s):e.preventDefault()})),onFocus:p(t.onFocus,(()=>u.onItemFocus(s))),onKeyDown:p(t.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void u.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:kt[r]}(e,u.orientation,u.dir);if(void 0!==t){e.preventDefault();let o=m().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=u.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>At(o)))}var n,r}))})))})),kt={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function At(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const Lt=Pt,Mt=Dt,It="Tabs",[Nt,Ft]=h(It,[St]),Bt=St(),[Ht,Wt]=Nt(It);function jt(e,t){return`${e}-trigger-${t}`}function Vt(e,t){return`${e}-content-${t}`}const Kt=e.forwardRef(((t,n)=>{const{__scopeTabs:r,value:o,onValueChange:i,defaultValue:a,orientation:l="horizontal",dir:c,activationMode:s="automatic",...u}=t,d=gt(c),[p,m]=C({prop:o,onChange:i,defaultProp:a});return e.createElement(Ht,{scope:r,baseId:E(),value:p,onValueChange:m,orientation:l,dir:d,activationMode:s},e.createElement(O.div,f({dir:d,"data-orientation":l},u,{ref:n})))})),zt=e.forwardRef(((t,n)=>{const{__scopeTabs:r,loop:o=!0,...i}=t,a=Wt("TabsList",r),l=Bt(r);return e.createElement(Lt,f({asChild:!0},l,{orientation:a.orientation,dir:a.dir,loop:o}),e.createElement(O.div,f({role:"tablist","aria-orientation":a.orientation},i,{ref:n})))})),Ut=e.forwardRef(((t,n)=>{const{__scopeTabs:r,value:o,disabled:i=!1,...a}=t,l=Wt("TabsTrigger",r),c=Bt(r),s=jt(l.baseId,o),u=Vt(l.baseId,o),d=o===l.value;return e.createElement(Mt,f({asChild:!0},c,{focusable:!i,active:d}),e.createElement(O.button,f({type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:s},a,{ref:n,onMouseDown:p(t.onMouseDown,(e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():l.onValueChange(o)})),onKeyDown:p(t.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&l.onValueChange(o)})),onFocus:p(t.onFocus,(()=>{const e="manual"!==l.activationMode;d||i||!e||l.onValueChange(o)}))})))})),$t=e.forwardRef(((t,n)=>{const{__scopeTabs:r,value:o,forceMount:i,children:a,...l}=t,c=Wt("TabsContent",r),s=jt(c.baseId,o),u=Vt(c.baseId,o),d=o===c.value,p=e.useRef(d);return e.useEffect((()=>{const e=requestAnimationFrame((()=>p.current=!1));return()=>cancelAnimationFrame(e)}),[]),e.createElement(Y,{present:i||d},(({present:r})=>e.createElement(O.div,f({"data-state":d?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":s,hidden:!r,id:u,tabIndex:0},l,{ref:n,style:{...t.style,animationDuration:p.current?"0s":void 0}}),r&&a)))}));var qt="Tabs-modules_root__TvYE1",Xt="Tabs-modules_list__G3KVd",Yt="Tabs-modules_tab__-FuG6",Gt="Tabs-modules_content__X0OLh";function Zt(t){const n=e.useRef({value:t,previous:t});return e.useMemo((()=>(n.current.value!==t&&(n.current.previous=n.current.value,n.current.value=t),n.current.previous)),[t])}function Jt(t){const[n,r]=e.useState(void 0);return y((()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver((e=>{if(!Array.isArray(e))return;if(!e.length)return;const n=e[0];let o,i;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=t.offsetWidth,i=t.offsetHeight;r({width:o,height:i})}));return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}r(void 0)}),[t]),n}const Qt="Switch",[en,tn]=h(Qt),[nn,rn]=en(Qt),on=e.forwardRef(((t,n)=>{const{__scopeSwitch:r,name:o,checked:i,defaultChecked:a,required:l,disabled:c,value:s="on",onCheckedChange:u,...d}=t,[m,h]=e.useState(null),g=v(n,(e=>h(e))),y=e.useRef(!1),w=!m||Boolean(m.closest("form")),[b=!1,E]=C({prop:i,defaultProp:a,onChange:u});return e.createElement(nn,{scope:r,checked:b,disabled:c},e.createElement(O.button,f({type:"button",role:"switch","aria-checked":b,"aria-required":l,"data-state":ln(b),"data-disabled":c?"":void 0,disabled:c,value:s},d,{ref:g,onClick:p(t.onClick,(e=>{E((e=>!e)),w&&(y.current=e.isPropagationStopped(),y.current||e.stopPropagation())}))})),w&&e.createElement(an,{control:m,bubbles:!y.current,name:o,value:s,checked:b,required:l,disabled:c,style:{transform:"translateX(-100%)"}}))})),an=t=>{const{control:n,checked:r,bubbles:o=!0,...i}=t,a=e.useRef(null),l=Zt(r),c=Jt(n);return e.useEffect((()=>{const e=a.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(l!==r&&n){const t=new Event("click",{bubbles:o});n.call(e,r),e.dispatchEvent(t)}}),[l,r,o]),e.createElement("input",f({type:"checkbox","aria-hidden":!0,defaultChecked:r},i,{tabIndex:-1,ref:a,style:{...t.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function ln(e){return e?"checked":"unchecked"}const cn=on,sn=e.forwardRef(((t,n)=>{const{__scopeSwitch:r,...o}=t,i=rn("SwitchThumb",r);return e.createElement(O.span,f({"data-state":ln(i.checked),"data-disabled":i.disabled?"":void 0},o,{ref:n}))}));var un="Switch-modules_root__V5S6a",dn="Switch-modules_thumb__PZ-lR";function fn(e){return e.split("-")[1]}function pn(e){return"y"===e?"height":"width"}function mn(e){return e.split("-")[0]}function vn(e){return["top","bottom"].includes(mn(e))?"x":"y"}function hn(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,l=vn(t),c=pn(l),s=r[c]/2-o[c]/2,u="x"===l;let d;switch(mn(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}switch(fn(t)){case"start":d[l]-=s*(n&&u?-1:1);break;case"end":d[l]+=s*(n&&u?-1:1)}return d}function gn(e,t){return"function"==typeof e?e(t):e}function yn(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function wn(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function bn(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:l,strategy:c}=e,{boundary:s="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=gn(t,e),m=yn(p),v=l[f?"floating"===d?"reference":"floating":d],h=wn(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:s,rootBoundary:u,strategy:c})),g="floating"===d?{...a.floating,x:r,y:o}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),w=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=wn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:g,offsetParent:y,strategy:c}):g);return{top:(h.top-b.top+m.top)/w.y,bottom:(b.bottom-h.bottom+m.bottom)/w.y,left:(h.left-b.left+m.left)/w.x,right:(b.right-h.right+m.right)/w.x}}const En=Math.min,xn=Math.max;function Cn(e,t,n){return xn(e,En(t,n))}const _n=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:l}=t,{element:c,padding:s=0}=gn(e,t)||{};if(null==c)return{};const u=yn(s),d={x:n,y:r},f=vn(o),p=pn(f),m=await a.getDimensions(c),v="y"===f,h=v?"top":"left",g=v?"bottom":"right",y=v?"clientHeight":"clientWidth",w=i.reference[p]+i.reference[f]-d[f]-i.floating[p],b=d[f]-i.reference[f],E=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let x=E?E[y]:0;x&&await(null==a.isElement?void 0:a.isElement(E))||(x=l.floating[y]||i.floating[p]);const C=w/2-b/2,_=x/2-m[p]/2-1,S=En(u[h],_),T=En(u[g],_),R=S,P=x-m[p]-T,O=x/2-m[p]/2+C,D=Cn(R,O,P),k=null!=fn(o)&&O!=D&&i.reference[p]/2-(O<R?S:T)-m[p]/2<0;return{[f]:d[f]-(k?O<R?R-O:P-O:0),data:{[f]:D,centerOffset:O-D}}}}),Sn=["top","right","bottom","left"],Tn={left:"right",right:"left",bottom:"top",top:"bottom"};function Rn(e){return e.replace(/left|right|bottom|top/g,(e=>Tn[e]))}const Pn={start:"end",end:"start"};function On(e){return e.replace(/start|end/g,(e=>Pn[e]))}const Dn=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:s=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...v}=gn(e,t),h=mn(r),g=mn(a)===a,y=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=d||(g||!m?[Rn(a)]:function(e){const t=Rn(e);return[On(e),t,On(t)]}(a));d||"none"===p||w.push(...function(e,t,n,r){const o=fn(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(mn(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(On)))),i}(a,m,p,y));const b=[a,...w],E=await bn(t,v),x=[];let C=(null==(n=o.flip)?void 0:n.overflows)||[];if(s&&x.push(E[h]),u){const{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);const r=fn(e),o=vn(e),i=pn(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Rn(a)),{main:a,cross:Rn(a)}}(r,i,y);x.push(E[e],E[t])}if(C=[...C,{placement:r,overflows:x}],!x.every((e=>e<=0))){var _,S;const e=((null==(_=o.flip)?void 0:_.index)||0)+1,t=b[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(S=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:S.placement;if(!n)switch(f){case"bestFit":{var T;const e=null==(T=C.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:T[0];e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}};function kn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function An(e){return Sn.some((t=>e[t]>=0))}const Ln=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=gn(e,t);switch(r){case"referenceHidden":{const e=kn(await bn(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:An(e)}}}case"escaped":{const e=kn(await bn(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:An(e)}}}default:return{}}}}};const Mn=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=mn(n),l=fn(n),c="x"===vn(n),s=["left","top"].includes(a)?-1:1,u=i&&c?-1:1,d=gn(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&"number"==typeof m&&(p="end"===l?-1*m:m),c?{x:p*u,y:f*s}:{x:f*s,y:p*u}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}};function In(e){return"x"===e?"y":"x"}const Nn=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=gn(e,t),s={x:n,y:r},u=await bn(t,c),d=vn(mn(o)),f=In(d);let p=s[d],m=s[f];if(i){const e="y"===d?"bottom":"right";p=Cn(p+u["y"===d?"top":"left"],p,p-u[e])}if(a){const e="y"===f?"bottom":"right";m=Cn(m+u["y"===f?"top":"left"],m,m-u[e])}const v=l.fn({...t,[d]:p,[f]:m});return{...v,data:{x:v.x-n,y:v.y-r}}}}},Fn=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:c=!0,crossAxis:s=!0}=gn(e,t),u={x:n,y:r},d=vn(o),f=In(d);let p=u[d],m=u[f];const v=gn(l,t),h="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+h.mainAxis,n=i.reference[d]+i.reference[e]-h.mainAxis;p<t?p=t:p>n&&(p=n)}if(s){var g,y;const e="y"===d?"width":"height",t=["top","left"].includes(mn(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(g=a.offset)?void 0:g[f])||0)+(t?0:h.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[f])||0)-(t?h.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[d]:p,[f]:m}}}},Bn=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=(()=>{}),...l}=gn(e,t),c=await bn(t,l),s=mn(n),u=fn(n),d="x"===vn(n),{width:f,height:p}=r.floating;let m,v;"top"===s||"bottom"===s?(m=s,v=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(v=s,m="end"===u?"top":"bottom");const h=p-c[m],g=f-c[v],y=!t.middlewareData.shift;let w=h,b=g;if(d){const e=f-c.left-c.right;b=u||y?En(g,e):e}else{const e=p-c.top-c.bottom;w=u||y?En(h,e):e}if(y&&!u){const e=xn(c.left,0),t=xn(c.right,0),n=xn(c.top,0),r=xn(c.bottom,0);d?b=f-2*(0!==e||0!==t?e+t:xn(c.left,c.right)):w=p-2*(0!==n||0!==r?n+r:xn(c.top,c.bottom))}await a({...t,availableWidth:b,availableHeight:w});const E=await o.getDimensions(i.floating);return f!==E.width||p!==E.height?{reset:{rects:!0}}:{}}}};function Hn(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Wn(e){return Hn(e).getComputedStyle(e)}function jn(e){return e instanceof Hn(e).Node}function Vn(e){return jn(e)?(e.nodeName||"").toLowerCase():""}function Kn(e){return e instanceof Hn(e).HTMLElement}function zn(e){return e instanceof Hn(e).Element}function Un(e){if("undefined"==typeof ShadowRoot)return!1;return e instanceof Hn(e).ShadowRoot||e instanceof ShadowRoot}function $n(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Wn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function qn(e){return["table","td","th"].includes(Vn(e))}function Xn(e){const t=Yn(),n=Wn(e);return"none"!==n.transform||"none"!==n.perspective||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Yn(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Gn(e){return["html","body","#document"].includes(Vn(e))}const Zn=Math.min,Jn=Math.max,Qn=Math.round;function er(e){const t=Wn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Kn(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=Qn(n)!==i||Qn(r)!==a;return l&&(n=i,r=a),{width:n,height:r,fallback:l}}function tr(e){return zn(e)?e:e.contextElement}const nr={x:1,y:1};function rr(e){const t=tr(e);if(!Kn(t))return nr;const n=t.getBoundingClientRect(),{width:r,height:o,fallback:i}=er(t);let a=(i?Qn(n.width):n.width)/r,l=(i?Qn(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const or={x:0,y:0};function ir(e,t,n){var r,o;if(void 0===t&&(t=!0),!Yn())return or;const i=e?Hn(e):window;return!n||t&&n!==i?or:{x:(null==(r=i.visualViewport)?void 0:r.offsetLeft)||0,y:(null==(o=i.visualViewport)?void 0:o.offsetTop)||0}}function ar(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=tr(e);let a=nr;t&&(r?zn(r)&&(a=rr(r)):a=rr(e));const l=ir(i,n,r);let c=(o.left+l.x)/a.x,s=(o.top+l.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Hn(i),t=r&&zn(r)?Hn(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=rr(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,c*=e.x,s*=e.y,u*=e.x,d*=e.y,c+=t.x,s+=t.y,n=Hn(n).frameElement}}return wn({width:u,height:d,x:c,y:s})}function lr(e){return((jn(e)?e.ownerDocument:e.document)||window.document).documentElement}function cr(e){return zn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function sr(e){return ar(lr(e)).left+cr(e).scrollLeft}function ur(e){if("html"===Vn(e))return e;const t=e.assignedSlot||e.parentNode||Un(e)&&e.host||lr(e);return Un(t)?t.host:t}function dr(e){const t=ur(e);return Gn(t)?t.ownerDocument.body:Kn(t)&&$n(t)?t:dr(t)}function fr(e,t){var n;void 0===t&&(t=[]);const r=dr(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Hn(r);return o?t.concat(i,i.visualViewport||[],$n(r)?r:[]):t.concat(r,fr(r))}function pr(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Hn(e),r=lr(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,c=0;if(o){i=o.width,a=o.height;const e=Yn();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:l,y:c}}(e,n);else if("document"===t)r=function(e){const t=lr(e),n=cr(e),r=e.ownerDocument.body,o=Jn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Jn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+sr(e);const l=-n.scrollTop;return"rtl"===Wn(r).direction&&(a+=Jn(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(lr(e));else if(zn(t))r=function(e,t){const n=ar(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Kn(e)?rr(e):{x:1,y:1};return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=ir(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return wn(r)}function mr(e,t){const n=ur(e);return!(n===t||!zn(n)||Gn(n))&&("fixed"===Wn(n).position||mr(n,t))}function vr(e,t){return Kn(e)&&"fixed"!==Wn(e).position?t?t(e):e.offsetParent:null}function hr(e,t){const n=Hn(e);if(!Kn(e))return n;let r=vr(e,t);for(;r&&qn(r)&&"static"===Wn(r).position;)r=vr(r,t);return r&&("html"===Vn(r)||"body"===Vn(r)&&"static"===Wn(r).position&&!Xn(r))?n:r||function(e){let t=ur(e);for(;Kn(t)&&!Gn(t);){if(Xn(t))return t;t=ur(t)}return null}(e)||n}function gr(e,t,n){const r=Kn(t),o=lr(t),i="fixed"===n,a=ar(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(r||!r&&!i)if(("body"!==Vn(t)||$n(o))&&(l=cr(t)),Kn(t)){const e=ar(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=sr(o));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}const yr={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=fr(e).filter((e=>zn(e)&&"body"!==Vn(e))),o=null;const i="fixed"===Wn(e).position;let a=i?ur(e):e;for(;zn(a)&&!Gn(a);){const t=Wn(a),n=Xn(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||$n(a)&&!n&&mr(e,a))?r=r.filter((e=>e!==a)):o=t,a=ur(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],l=i.reduce(((e,n)=>{const r=pr(t,n,o);return e.top=Jn(r.top,e.top),e.right=Zn(r.right,e.right),e.bottom=Zn(r.bottom,e.bottom),e.left=Jn(r.left,e.left),e}),pr(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Kn(n),i=lr(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},l={x:1,y:1};const c={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==Vn(n)||$n(i))&&(a=cr(n)),Kn(n))){const e=ar(n);l=rr(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-a.scrollLeft*l.x+c.x,y:t.y*l.y-a.scrollTop*l.y+c.y}},isElement:zn,getDimensions:function(e){return er(e)},getOffsetParent:hr,getDocumentElement:lr,getScale:rr,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||hr,i=this.getDimensions;return{reference:gr(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===Wn(e).direction};function wr(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:l=!1}=r,c=o||i?[...zn(e)?fr(e):e.contextElement?fr(e.contextElement):[],...fr(t)]:[];c.forEach((e=>{const t=!zn(e)&&e.toString().includes("V");!o||l&&!t||e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let s,u=null;a&&(u=new ResizeObserver((()=>{n()})),zn(e)&&!l&&u.observe(e),zn(e)||!e.contextElement||l||u.observe(e.contextElement),u.observe(t));let d=l?ar(e):null;return l&&function t(){const r=ar(e);!d||r.x===d.x&&r.y===d.y&&r.width===d.width&&r.height===d.height||n();d=r,s=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==(e=u)||e.disconnect(),u=null,l&&cancelAnimationFrame(s)}}const br=(e,t,n)=>{const r=new Map,o={platform:yr,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(t));let s=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=hn(s,r,c),f=r,p={},m=0;for(let n=0;n<l.length;n++){const{name:i,fn:v}=l[n],{x:h,y:g,data:y,reset:w}=await v({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:s,platform:a,elements:{reference:e,floating:t}});u=null!=h?h:u,d=null!=g?g:d,p={...p,[i]:{...p[i],...y}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(s=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:u,y:d}=hn(s,f,c))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},Er=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?_n({element:n.current,padding:r}).fn(t):{}:n?_n({element:n,padding:r}).fn(t):{};var o}});var xr="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function Cr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!Cr(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;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Cr(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function _r(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Sr(e,t){const n=_r(e);return Math.round(t*n)/n}function Tr(e){const t=r.useRef(e);return xr((()=>{t.current=e})),t}const Rr=e.forwardRef(((t,n)=>{const{children:r,width:o=10,height:i=5,...a}=t;return e.createElement(O.svg,f({},a,{ref:n,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),t.asChild?r:e.createElement("polygon",{points:"0,0 30,0 15,10"}))})),Pr="Popper",[Or,Dr]=h(Pr),[kr,Ar]=Or(Pr),Lr=e.forwardRef(((t,n)=>{const{__scopePopper:r,virtualRef:o,...i}=t,a=Ar("PopperAnchor",r),l=e.useRef(null),c=v(n,l);return e.useEffect((()=>{a.onAnchorChange((null==o?void 0:o.current)||l.current)})),o?null:e.createElement(O.div,f({},i,{ref:c}))})),Mr="PopperContent",[Ir,Nr]=Or(Mr),Fr=e.forwardRef(((t,n)=>{var i,a,l,c,s,u,d,p;const{__scopePopper:m,side:h="bottom",sideOffset:g=0,align:w="center",alignOffset:b=0,arrowPadding:E=0,collisionBoundary:C=[],collisionPadding:_=0,sticky:S="partial",hideWhenDetached:T=!1,avoidCollisions:R=!0,onPlaced:P,...D}=t,k=Ar(Mr,m),[A,L]=e.useState(null),M=v(n,(e=>L(e))),[I,N]=e.useState(null),F=Jt(I),B=null!==(i=null==F?void 0:F.width)&&void 0!==i?i:0,H=null!==(a=null==F?void 0:F.height)&&void 0!==a?a:0,W=h+("center"!==w?"-"+w:""),j="number"==typeof _?_:{top:0,right:0,bottom:0,left:0,..._},V=Array.isArray(C)?C:[C],K=V.length>0,z={padding:j,boundary:V.filter(Hr),altBoundary:K},{refs:U,floatingStyles:$,placement:q,isPositioned:X,middlewareData:Y}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:a,elements:{reference:l,floating:c}={},transform:s=!0,whileElementsMounted:u,open:d}=e,[f,p]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,v]=r.useState(i);Cr(m,i)||v(i);const[h,g]=r.useState(null),[y,w]=r.useState(null),b=r.useCallback((e=>{e!=_.current&&(_.current=e,g(e))}),[g]),E=r.useCallback((e=>{e!==S.current&&(S.current=e,w(e))}),[w]),x=l||h,C=c||y,_=r.useRef(null),S=r.useRef(null),T=r.useRef(f),R=Tr(u),P=Tr(a),O=r.useCallback((()=>{if(!_.current||!S.current)return;const e={placement:t,strategy:n,middleware:m};P.current&&(e.platform=P.current),br(_.current,S.current,e).then((e=>{const t={...e,isPositioned:!0};D.current&&!Cr(T.current,t)&&(T.current=t,o.flushSync((()=>{p(t)})))}))}),[m,t,n,P]);xr((()=>{!1===d&&T.current.isPositioned&&(T.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[d]);const D=r.useRef(!1);xr((()=>(D.current=!0,()=>{D.current=!1})),[]),xr((()=>{if(x&&(_.current=x),C&&(S.current=C),x&&C){if(R.current)return R.current(x,C,O);O()}}),[x,C,O,R]);const k=r.useMemo((()=>({reference:_,floating:S,setReference:b,setFloating:E})),[b,E]),A=r.useMemo((()=>({reference:x,floating:C})),[x,C]),L=r.useMemo((()=>{const e={position:n,left:0,top:0};if(!A.floating)return e;const t=Sr(A.floating,f.x),r=Sr(A.floating,f.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",..._r(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,A.floating,f.x,f.y]);return r.useMemo((()=>({...f,update:O,refs:k,elements:A,floatingStyles:L})),[f,O,k,A,L])}({strategy:"fixed",placement:W,whileElementsMounted:wr,elements:{reference:k.anchor},middleware:[Mn({mainAxis:g+H,alignmentAxis:b}),R&&Nn({mainAxis:!0,crossAxis:!1,limiter:"partial"===S?Fn():void 0,...z}),R&&Dn({...z}),Bn({...z,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),I&&Er({element:I,padding:E}),Wr({arrowWidth:B,arrowHeight:H}),T&&Ln({strategy:"referenceHidden"})]}),[G,Z]=jr(q),J=x(P);y((()=>{X&&(null==J||J())}),[X,J]);const Q=null===(l=Y.arrow)||void 0===l?void 0:l.x,ee=null===(c=Y.arrow)||void 0===c?void 0:c.y,te=0!==(null===(s=Y.arrow)||void 0===s?void 0:s.centerOffset),[ne,re]=e.useState();return y((()=>{A&&re(window.getComputedStyle(A).zIndex)}),[A]),e.createElement("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:X?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ne,"--radix-popper-transform-origin":[null===(u=Y.transformOrigin)||void 0===u?void 0:u.x,null===(d=Y.transformOrigin)||void 0===d?void 0:d.y].join(" ")},dir:t.dir},e.createElement(Ir,{scope:m,placedSide:G,onArrowChange:N,arrowX:Q,arrowY:ee,shouldHideArrow:te},e.createElement(O.div,f({"data-side":G,"data-align":Z},D,{ref:M,style:{...D.style,animation:X?void 0:"none",opacity:null!==(p=Y.hide)&&void 0!==p&&p.referenceHidden?0:void 0}}))))})),Br={top:"bottom",right:"left",bottom:"top",left:"right"};function Hr(e){return null!==e}const Wr=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:l,rects:c,middlewareData:s}=t,u=0!==(null===(n=s.arrow)||void 0===n?void 0:n.centerOffset),d=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[p,m]=jr(l),v={start:"0%",center:"50%",end:"100%"}[m],h=(null!==(r=null===(o=s.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,g=(null!==(i=null===(a=s.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let y="",w="";return"bottom"===p?(y=u?v:`${h}px`,w=-f+"px"):"top"===p?(y=u?v:`${h}px`,w=`${c.floating.height+f}px`):"right"===p?(y=-f+"px",w=u?v:`${g}px`):"left"===p&&(y=`${c.floating.width+f}px`,w=u?v:`${g}px`),{data:{x:y,y:w}}}});function jr(e){const[t,n="center"]=e.split("-");return[t,n]}const Vr=t=>{const{__scopePopper:n,children:r}=t,[o,i]=e.useState(null);return e.createElement(kr,{scope:n,anchor:o,onAnchorChange:i},r)},Kr=Lr,zr=Fr,Ur=e.forwardRef((function(t,n){const{__scopePopper:r,...o}=t,i=Nr("PopperArrow",r),a=Br[i.placedSide];return e.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},e.createElement(Rr,f({},o,{ref:n,style:{...o.style,display:"block"}})))})),$r=e.forwardRef(((t,n)=>e.createElement(O.span,f({},t,{ref:n,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",...t.style}})))),qr=$r,[Xr,Yr]=h("Tooltip",[Dr]),Gr=Dr(),Zr=700,Jr="tooltip.open",[Qr,eo]=Xr("TooltipProvider"),to="Tooltip",[no,ro]=Xr(to),oo="TooltipTrigger",io=e.forwardRef(((t,n)=>{const{__scopeTooltip:r,...o}=t,i=ro(oo,r),a=eo(oo,r),l=Gr(r),c=v(n,e.useRef(null),i.onTriggerChange),s=e.useRef(!1),u=e.useRef(!1),d=e.useCallback((()=>s.current=!1),[]);return e.useEffect((()=>()=>document.removeEventListener("pointerup",d)),[d]),e.createElement(Kr,f({asChild:!0},l),e.createElement(O.button,f({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},o,{ref:c,onPointerMove:p(t.onPointerMove,(e=>{"touch"!==e.pointerType&&(u.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),u.current=!0))})),onPointerLeave:p(t.onPointerLeave,(()=>{i.onTriggerLeave(),u.current=!1})),onPointerDown:p(t.onPointerDown,(()=>{s.current=!0,document.addEventListener("pointerup",d,{once:!0})})),onFocus:p(t.onFocus,(()=>{s.current||i.onOpen()})),onBlur:p(t.onBlur,i.onClose),onClick:p(t.onClick,i.onClose)})))})),[ao,lo]=Xr("TooltipPortal",{forceMount:void 0}),co="TooltipContent",so=e.forwardRef(((t,n)=>{const r=lo(co,t.__scopeTooltip),{forceMount:o=r.forceMount,side:i="top",...a}=t,l=ro(co,t.__scopeTooltip);return e.createElement(Y,{present:o||l.open},l.disableHoverableContent?e.createElement(mo,f({side:i},a,{ref:n})):e.createElement(uo,f({side:i},a,{ref:n})))})),uo=e.forwardRef(((t,n)=>{const r=ro(co,t.__scopeTooltip),o=eo(co,t.__scopeTooltip),i=e.useRef(null),a=v(n,i),[l,c]=e.useState(null),{trigger:s,onClose:u}=r,d=i.current,{onPointerInTransitChange:p}=o,m=e.useCallback((()=>{c(null),p(!1)}),[p]),h=e.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),i=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...o,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);c(i),p(!0)}),[p]);return e.useEffect((()=>()=>m()),[m]),e.useEffect((()=>{if(s&&d){const e=e=>h(e,d),t=e=>h(e,s);return s.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{s.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}}),[s,d,h,m]),e.useEffect((()=>{if(l){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==s?void 0:s.contains(t))||(null==d?void 0:d.contains(t)),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,l=t[e].y,c=t[i].x,s=t[i].y;l>r!=s>r&&n<(c-a)*(r-l)/(s-l)+a&&(o=!o)}return o}(n,l);r?m():o&&(m(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[s,d,l,u,m]),e.createElement(mo,f({},t,{ref:a}))})),[fo,po]=Xr(to,{isInside:!1}),mo=e.forwardRef(((t,n)=>{const{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:l,...c}=t,s=ro(co,r),u=Gr(r),{onClose:d}=s;return e.useEffect((()=>(document.addEventListener(Jr,d),()=>document.removeEventListener(Jr,d))),[d]),e.useEffect((()=>{if(s.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(s.trigger)&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[s.trigger,d]),e.createElement(I,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:d},e.createElement(zr,f({"data-state":s.stateAttribute},u,c,{ref:n,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),e.createElement(T,null,o),e.createElement(fo,{scope:r,isInside:!0},e.createElement(qr,{id:s.contentId,role:"tooltip"},i||o))))}));const vo=t=>{const{__scopeTooltip:n,delayDuration:r=Zr,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:a}=t,[l,c]=e.useState(!0),s=e.useRef(!1),u=e.useRef(0);return e.useEffect((()=>{const e=u.current;return()=>window.clearTimeout(e)}),[]),e.createElement(Qr,{scope:n,isOpenDelayed:l,delayDuration:r,onOpen:e.useCallback((()=>{window.clearTimeout(u.current),c(!1)}),[]),onClose:e.useCallback((()=>{window.clearTimeout(u.current),u.current=window.setTimeout((()=>c(!0)),o)}),[o]),isPointerInTransitRef:s,onPointerInTransitChange:e.useCallback((e=>{s.current=e}),[]),disableHoverableContent:i},a)},ho=t=>{const{__scopeTooltip:n,children:r,open:o,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:l,delayDuration:c}=t,s=eo(to,t.__scopeTooltip),u=Gr(n),[d,f]=e.useState(null),p=E(),m=e.useRef(0),v=null!=l?l:s.disableHoverableContent,h=null!=c?c:s.delayDuration,g=e.useRef(!1),[y=!1,w]=C({prop:o,defaultProp:i,onChange:e=>{e?(s.onOpen(),document.dispatchEvent(new CustomEvent(Jr))):s.onClose(),null==a||a(e)}}),b=e.useMemo((()=>y?g.current?"delayed-open":"instant-open":"closed"),[y]),x=e.useCallback((()=>{window.clearTimeout(m.current),g.current=!1,w(!0)}),[w]),_=e.useCallback((()=>{window.clearTimeout(m.current),w(!1)}),[w]),S=e.useCallback((()=>{window.clearTimeout(m.current),m.current=window.setTimeout((()=>{g.current=!0,w(!0)}),h)}),[h,w]);return e.useEffect((()=>()=>window.clearTimeout(m.current)),[]),e.createElement(Vr,u,e.createElement(no,{scope:n,contentId:p,open:y,stateAttribute:b,trigger:d,onTriggerChange:f,onTriggerEnter:e.useCallback((()=>{s.isOpenDelayed?S():x()}),[s.isOpenDelayed,S,x]),onTriggerLeave:e.useCallback((()=>{v?_():window.clearTimeout(m.current)}),[_,v]),onOpen:x,onClose:_,disableHoverableContent:v},r))},go=io,yo=so,wo=e.forwardRef(((t,n)=>{const{__scopeTooltip:r,...o}=t,i=Gr(r);return po("TooltipArrow",r).isInside?null:e.createElement(Ur,f({},i,o,{ref:n}))}));var bo="Tooltip-modules_content__--tK0",Eo="Tooltip-modules_arrow__4vjj8";function xo(e,[t,n]){return Math.min(n,Math.max(t,e))}const Co=[" ","Enter","ArrowUp","ArrowDown"],_o=[" ","Enter"],So="Select",[To,Ro,Po]=vt(So),[Oo,Do]=h(So,[Po,Dr]),ko=Dr(),[Ao,Lo]=Oo(So),[Mo,Io]=Oo(So),No=e.forwardRef(((t,n)=>{const{__scopeSelect:r,disabled:o=!1,...i}=t,a=ko(r),l=Lo("SelectTrigger",r),c=l.disabled||o,s=v(n,l.onTriggerChange),u=Ro(r),[d,m,h]=si((e=>{const t=u().filter((e=>!e.disabled)),n=t.find((e=>e.value===l.value)),r=ui(t,e,n);void 0!==r&&l.onValueChange(r.value)})),g=()=>{c||(l.onOpenChange(!0),h())};return e.createElement(Kr,f({asChild:!0},a),e.createElement(O.button,f({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:c,"data-disabled":c?"":void 0,"data-placeholder":void 0===l.value?"":void 0},i,{ref:s,onClick:p(i.onClick,(e=>{e.currentTarget.focus()})),onPointerDown:p(i.onPointerDown,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(g(),l.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())})),onKeyDown:p(i.onKeyDown,(e=>{const t=""!==d.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),t&&" "===e.key||Co.includes(e.key)&&(g(),e.preventDefault())}))})))})),Fo=e.forwardRef(((t,n)=>{const{__scopeSelect:r,className:o,style:i,children:a,placeholder:l,...c}=t,s=Lo("SelectValue",r),{onValueNodeHasChildrenChange:u}=s,d=void 0!==a,p=v(n,s.onValueNodeChange);return y((()=>{u(d)}),[u,d]),e.createElement(O.span,f({},c,{ref:p,style:{pointerEvents:"none"}}),void 0===s.value&&void 0!==l?l:a)})),Bo=e.forwardRef(((t,n)=>{const{__scopeSelect:r,children:o,...i}=t;return e.createElement(O.span,f({"aria-hidden":!0},i,{ref:n}),o||"▼")})),Ho="SelectContent",Wo=e.forwardRef(((n,r)=>{const o=Lo(Ho,n.__scopeSelect),[i,a]=e.useState();if(y((()=>{a(new DocumentFragment)}),[]),!o.open){const r=i;return r?t.createPortal(e.createElement(Vo,{scope:n.__scopeSelect},e.createElement(To.Slot,{scope:n.__scopeSelect},e.createElement("div",null,n.children))),r):null}return e.createElement(zo,f({},n,{ref:r}))})),jo=10,[Vo,Ko]=Oo(Ho),zo=e.forwardRef(((t,n)=>{const{__scopeSelect:r,position:o="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:l,side:c,sideOffset:s,align:u,alignOffset:d,arrowPadding:m,collisionBoundary:h,collisionPadding:g,sticky:y,hideWhenDetached:w,avoidCollisions:b,...E}=t,x=Lo(Ho,r),[C,S]=e.useState(null),[T,R]=e.useState(null),P=v(n,(e=>S(e))),[O,D]=e.useState(null),[k,A]=e.useState(null),L=Ro(r),[M,N]=e.useState(!1),F=e.useRef(!1);e.useEffect((()=>{if(C)return We(C)}),[C]),J();const B=e.useCallback((e=>{const[t,...n]=L().map((e=>e.ref.current)),[r]=n.slice(-1),o=document.activeElement;for(const n of e){if(n===o)return;if(null==n||n.scrollIntoView({block:"nearest"}),n===t&&T&&(T.scrollTop=0),n===r&&T&&(T.scrollTop=T.scrollHeight),null==n||n.focus(),document.activeElement!==o)return}}),[L,T]),H=e.useCallback((()=>B([O,C])),[B,O,C]);e.useEffect((()=>{M&&H()}),[M,H]);const{onOpenChange:W,triggerPointerDownPosRef:V}=x;e.useEffect((()=>{if(C){let e={x:0,y:0};const t=t=>{var n,r,o,i;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(r=V.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(i=V.current)||void 0===i?void 0:i.y)&&void 0!==o?o:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():C.contains(n.target)||W(!1),document.removeEventListener("pointermove",t),V.current=null};return null!==V.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[C,W,V]),e.useEffect((()=>{const e=()=>W(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[W]);const[K,z]=si((e=>{const t=L().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=ui(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),U=e.useCallback(((e,t,n)=>{const r=!F.current&&!n;(void 0!==x.value&&x.value===t||r)&&(D(e),r&&(F.current=!0))}),[x.value]),$=e.useCallback((()=>null==C?void 0:C.focus()),[C]),q=e.useCallback(((e,t,n)=>{const r=!F.current&&!n;(void 0!==x.value&&x.value===t||r)&&A(e)}),[x.value]),X="popper"===o?$o:Uo,Y=X===$o?{side:c,sideOffset:s,align:u,alignOffset:d,arrowPadding:m,collisionBoundary:h,collisionPadding:g,sticky:y,hideWhenDetached:w,avoidCollisions:b}:{};return e.createElement(Vo,{scope:r,content:C,viewport:T,onViewportChange:R,itemRefCallback:U,selectedItem:O,onItemLeave:$,itemTextRefCallback:q,focusSelectedItem:H,selectedItemText:k,position:o,isPositioned:M,searchRef:K},e.createElement(Le,{as:_,allowPinchZoom:!0},e.createElement(j,{asChild:!0,trapped:x.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:p(i,(e=>{var t;null===(t=x.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}))},e.createElement(I,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>x.onOpenChange(!1)},e.createElement(X,f({role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:e=>e.preventDefault()},E,Y,{onPlaced:()=>N(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...E.style},onKeyDown:p(E.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||z(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=L().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout((()=>B(t))),e.preventDefault()}}))}))))))})),Uo=e.forwardRef(((t,n)=>{const{__scopeSelect:r,onPlaced:o,...i}=t,a=Lo(Ho,r),l=Ko(Ho,r),[c,s]=e.useState(null),[u,d]=e.useState(null),p=v(n,(e=>d(e))),m=Ro(r),h=e.useRef(!1),g=e.useRef(!0),{viewport:w,selectedItem:b,selectedItemText:E,focusSelectedItem:x}=l,C=e.useCallback((()=>{if(a.trigger&&a.valueNode&&c&&u&&w&&b&&E){const e=a.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),r=E.getBoundingClientRect();if("rtl"!==a.dir){const o=r.left-t.left,i=n.left-o,a=e.left-i,l=e.width+a,s=Math.max(l,t.width),u=window.innerWidth-jo,d=xo(i,[jo,u-s]);c.style.minWidth=l+"px",c.style.left=d+"px"}else{const o=t.right-r.right,i=window.innerWidth-n.right-o,a=window.innerWidth-e.right-i,l=e.width+a,s=Math.max(l,t.width),u=window.innerWidth-jo,d=xo(i,[jo,u-s]);c.style.minWidth=l+"px",c.style.right=d+"px"}const i=m(),l=window.innerHeight-2*jo,s=w.scrollHeight,d=window.getComputedStyle(u),f=parseInt(d.borderTopWidth,10),p=parseInt(d.paddingTop,10),v=parseInt(d.borderBottomWidth,10),g=f+p+s+parseInt(d.paddingBottom,10)+v,y=Math.min(5*b.offsetHeight,g),x=window.getComputedStyle(w),C=parseInt(x.paddingTop,10),_=parseInt(x.paddingBottom,10),S=e.top+e.height/2-jo,T=l-S,R=b.offsetHeight/2,P=f+p+(b.offsetTop+R),O=g-P;if(P<=S){const e=b===i[i.length-1].ref.current;c.style.bottom="0px";const t=u.clientHeight-w.offsetTop-w.offsetHeight,n=P+Math.max(T,R+(e?_:0)+t+v);c.style.height=n+"px"}else{const e=b===i[0].ref.current;c.style.top="0px";const t=Math.max(S,f+w.offsetTop+(e?C:0)+R)+O;c.style.height=t+"px",w.scrollTop=P-S+w.offsetTop}c.style.margin=`${jo}px 0`,c.style.minHeight=y+"px",c.style.maxHeight=l+"px",null==o||o(),requestAnimationFrame((()=>h.current=!0))}}),[m,a.trigger,a.valueNode,c,u,w,b,E,a.dir,o]);y((()=>C()),[C]);const[_,S]=e.useState();y((()=>{u&&S(window.getComputedStyle(u).zIndex)}),[u]);const T=e.useCallback((e=>{e&&!0===g.current&&(C(),null==x||x(),g.current=!1)}),[C,x]);return e.createElement(qo,{scope:r,contentWrapper:c,shouldExpandOnScrollRef:h,onScrollButtonChange:T},e.createElement("div",{ref:s,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_}},e.createElement(O.div,f({},i,{ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}}))))})),$o=e.forwardRef(((t,n)=>{const{__scopeSelect:r,align:o="start",collisionPadding:i=jo,...a}=t,l=ko(r);return e.createElement(zr,f({},l,a,{ref:n,align:o,collisionPadding:i,style:{boxSizing:"border-box",...a.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)"}}))})),[qo,Xo]=Oo(Ho,{}),Yo="SelectViewport",Go=e.forwardRef(((t,n)=>{const{__scopeSelect:r,...o}=t,i=Ko(Yo,r),a=Xo(Yo,r),l=v(n,i.onViewportChange),c=e.useRef(0);return e.createElement(e.Fragment,null,e.createElement("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}"}}),e.createElement(To.Slot,{scope:r},e.createElement(O.div,f({"data-radix-select-viewport":"",role:"presentation"},o,{ref:l,style:{position:"relative",flex:1,overflow:"auto",...o.style},onScroll:p(o.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=a;if(null!=r&&r.current&&n){const e=Math.abs(c.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*jo,o=parseFloat(n.style.minHeight),i=parseFloat(n.style.height),a=Math.max(o,i);if(a<r){const o=a+e,i=Math.min(r,o),l=o-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=l>0?l:0,n.style.justifyContent="flex-end")}}}c.current=t.scrollTop}))}))))}));Oo("SelectGroup");const Zo="SelectItem",[Jo,Qo]=Oo(Zo),ei=e.forwardRef(((t,n)=>{const{__scopeSelect:r,value:o,disabled:i=!1,textValue:a,...l}=t,c=Lo(Zo,r),s=Ko(Zo,r),u=c.value===o,[d,m]=e.useState(null!=a?a:""),[h,g]=e.useState(!1),y=v(n,(e=>{var t;return null===(t=s.itemRefCallback)||void 0===t?void 0:t.call(s,e,o,i)})),w=E(),b=()=>{i||(c.onValueChange(o),c.onOpenChange(!1))};return e.createElement(Jo,{scope:r,value:o,disabled:i,textId:w,isSelected:u,onItemTextChange:e.useCallback((e=>{m((t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()}))}),[])},e.createElement(To.ItemSlot,{scope:r,value:o,disabled:i,textValue:d},e.createElement(O.div,f({role:"option","aria-labelledby":w,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1},l,{ref:y,onFocus:p(l.onFocus,(()=>g(!0))),onBlur:p(l.onBlur,(()=>g(!1))),onPointerUp:p(l.onPointerUp,b),onPointerMove:p(l.onPointerMove,(e=>{var t;i?null===(t=s.onItemLeave)||void 0===t||t.call(s):e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:p(l.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null===(t=s.onItemLeave)||void 0===t||t.call(s))})),onKeyDown:p(l.onKeyDown,(e=>{var t;""!==(null===(t=s.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(_o.includes(e.key)&&b()," "===e.key&&e.preventDefault())}))}))))})),ti="SelectItemText",ni=e.forwardRef(((n,r)=>{const{__scopeSelect:o,className:i,style:a,...l}=n,c=Lo(ti,o),s=Ko(ti,o),u=Qo(ti,o),d=Io(ti,o),[p,m]=e.useState(null),h=v(r,(e=>m(e)),u.onItemTextChange,(e=>{var t;return null===(t=s.itemTextRefCallback)||void 0===t?void 0:t.call(s,e,u.value,u.disabled)})),g=null==p?void 0:p.textContent,w=e.useMemo((()=>e.createElement("option",{key:u.value,value:u.value,disabled:u.disabled},g)),[u.disabled,u.value,g]),{onNativeOptionAdd:b,onNativeOptionRemove:E}=d;return y((()=>(b(w),()=>E(w))),[b,E,w]),e.createElement(e.Fragment,null,e.createElement(O.span,f({id:u.textId},l,{ref:h})),u.isSelected&&c.valueNode&&!c.valueNodeHasChildren?t.createPortal(l.children,c.valueNode):null)})),ri="SelectScrollUpButton",oi=e.forwardRef(((t,n)=>{const r=Ko(ri,t.__scopeSelect),o=Xo(ri,t.__scopeSelect),[i,a]=e.useState(!1),l=v(n,o.onScrollButtonChange);return y((()=>{if(r.viewport&&r.isPositioned){const e=r.viewport;function t(){const t=e.scrollTop>0;a(t)}return t(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}}),[r.viewport,r.isPositioned]),i?e.createElement(li,f({},t,{ref:l,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null})),ii="SelectScrollDownButton",ai=e.forwardRef(((t,n)=>{const r=Ko(ii,t.__scopeSelect),o=Xo(ii,t.__scopeSelect),[i,a]=e.useState(!1),l=v(n,o.onScrollButtonChange);return y((()=>{if(r.viewport&&r.isPositioned){const e=r.viewport;function t(){const t=e.scrollHeight-e.clientHeight,n=Math.ceil(e.scrollTop)<t;a(n)}return t(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}}),[r.viewport,r.isPositioned]),i?e.createElement(li,f({},t,{ref:l,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null})),li=e.forwardRef(((t,n)=>{const{__scopeSelect:r,onAutoScroll:o,...i}=t,a=Ko("SelectScrollButton",r),l=e.useRef(null),c=Ro(r),s=e.useCallback((()=>{null!==l.current&&(window.clearInterval(l.current),l.current=null)}),[]);return e.useEffect((()=>()=>s()),[s]),y((()=>{var e;const t=c().find((e=>e.ref.current===document.activeElement));null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})}),[c]),e.createElement(O.div,f({"aria-hidden":!0},i,{ref:n,style:{flexShrink:0,...i.style},onPointerDown:p(i.onPointerDown,(()=>{null===l.current&&(l.current=window.setInterval(o,50))})),onPointerMove:p(i.onPointerMove,(()=>{var e;null===(e=a.onItemLeave)||void 0===e||e.call(a),null===l.current&&(l.current=window.setInterval(o,50))})),onPointerLeave:p(i.onPointerLeave,(()=>{s()}))}))})),ci=e.forwardRef(((t,n)=>{const{value:r,...o}=t,i=e.useRef(null),a=v(n,i),l=Zt(r);return e.useEffect((()=>{const e=i.current,t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,"value").set;if(l!==r&&n){const t=new Event("change",{bubbles:!0});n.call(e,r),e.dispatchEvent(t)}}),[l,r]),e.createElement($r,{asChild:!0},e.createElement("select",f({},o,{ref:a,defaultValue:r})))}));function si(t){const n=x(t),r=e.useRef(""),o=e.useRef(0),i=e.useCallback((e=>{const t=r.current+e;n(t),function e(t){r.current=t,window.clearTimeout(o.current),""!==t&&(o.current=window.setTimeout((()=>e("")),1e3))}(t)}),[n]),a=e.useCallback((()=>{r.current="",window.clearTimeout(o.current)}),[]);return e.useEffect((()=>()=>window.clearTimeout(o.current)),[]),[r,i,a]}function ui(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=n?e.indexOf(n):-1;let i=(a=e,l=Math.max(o,0),a.map(((e,t)=>a[(l+t)%a.length])));var a,l;1===r.length&&(i=i.filter((e=>e!==n)));const c=i.find((e=>e.textValue.toLowerCase().startsWith(r.toLowerCase())));return c!==n?c:void 0}ci.displayName="BubbleSelect";const di=t=>{const{__scopeSelect:n,children:r,open:o,defaultOpen:i,onOpenChange:a,value:l,defaultValue:c,onValueChange:s,dir:u,name:d,autoComplete:f,disabled:p,required:m}=t,v=ko(n),[h,g]=e.useState(null),[y,w]=e.useState(null),[b,x]=e.useState(!1),_=gt(u),[S=!1,T]=C({prop:o,defaultProp:i,onChange:a}),[R,P]=C({prop:l,defaultProp:c,onChange:s}),O=e.useRef(null),D=!h||Boolean(h.closest("form")),[k,A]=e.useState(new Set),L=Array.from(k).map((e=>e.props.value)).join(";");return e.createElement(Vr,v,e.createElement(Ao,{required:m,scope:n,trigger:h,onTriggerChange:g,valueNode:y,onValueNodeChange:w,valueNodeHasChildren:b,onValueNodeHasChildrenChange:x,contentId:E(),value:R,onValueChange:P,open:S,onOpenChange:T,dir:_,triggerPointerDownPosRef:O,disabled:p},e.createElement(To.Provider,{scope:n},e.createElement(Mo,{scope:t.__scopeSelect,onNativeOptionAdd:e.useCallback((e=>{A((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:e.useCallback((e=>{A((t=>{const n=new Set(t);return n.delete(e),n}))}),[])},r)),D?e.createElement(ci,{key:L,"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:f,value:R,onChange:e=>P(e.target.value),disabled:p},void 0===R?e.createElement("option",{value:""}):null,Array.from(k)):null))},fi=No,pi=Fo,mi=Bo,vi=t=>e.createElement(X,f({asChild:!0},t)),hi=Wo,gi=Go,yi=ei,wi=ni,bi=oi,Ei=ai;var xi,Ci,_i={trigger:"Select-modules_trigger__dS9Dx",icon:"Select-modules_icon__sgRRc",content:"Select-modules_content__YuAqS",item:"Select-modules_item__cTAIm"};function Si(){return Si=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Si.apply(this,arguments)}var Ti=function(e){return r.createElement("svg",Si({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),r.createElement("mask",{id:"keyboard_arrow_down_svg__a",width:24,height:24,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},xi||(xi=r.createElement("path",{fill:"#D9D9D9",d:"M0 0h24v24H0z"}))),Ci||(Ci=r.createElement("g",{mask:"url(#keyboard_arrow_down_svg__a)"},r.createElement("path",{fill:"#2C3336",d:"M12 14.677a.93.93 0 0 1-.34-.066.84.84 0 0 1-.293-.19L6.873 9.927a.717.717 0 0 1-.217-.527c0-.206.072-.382.217-.527a.717.717 0 0 1 .527-.217c.206 0 .382.072.527.217L12 12.946l4.073-4.073a.717.717 0 0 1 .527-.217c.206 0 .382.072.527.217.145.145.217.32.217.527a.717.717 0 0 1-.217.527l-4.494 4.494a.83.83 0 0 1-.633.256Z"}))))},Ri=e.forwardRef((function(t,n){var r=t.children,o=t.sideOffset,l=void 0===o?4:o,c=t.position,s=void 0===c?"popper":c,u=t.disabled,d=void 0!==u&&u,f=t.value,p=void 0===f?"":f,m=a(t,["children","sideOffset","position","disabled","value"]);return e.createElement(di,i({value:p,disabled:d},m),e.createElement(fi,{ref:n,className:_i.trigger},e.createElement(pi,{className:_i.value}),e.createElement(mi,{className:_i.icon},e.createElement(Ti,null))),e.createElement(vi,null,e.createElement(hi,{position:s,className:_i.content,sideOffset:l},e.createElement(bi,null,"ChevronUpIcon"),e.createElement(gi,null,r),e.createElement(Ei,null,"ChevronDownIcon"))))})),Pi=e.forwardRef((function(t,n){var r=t.children,o=t.disabled,l=void 0!==o&&o,c=a(t,["children","disabled"]);return e.createElement(yi,i({},c,{ref:n,className:_i.item,disabled:l}),e.createElement(wi,null,r))}));const Oi=e.forwardRef(((t,n)=>e.createElement(O.label,f({},t,{ref:n,onMouseDown:e=>{var n;null===(n=t.onMouseDown)||void 0===n||n.call(t,e),!e.defaultPrevented&&e.detail>1&&e.preventDefault()}}))));var Di="Label-modules_label__rXO6J";exports.Button=function(t){var n,r=t.disabled,o=void 0!==r&&r,l=t.children,c=t.onClick,s=t.size,f=void 0===s?"medium":s,p=t.variant,m=void 0===p?"primary":p,v=t.type,h=void 0===v?"button":v,g=t.prefix,y=void 0===g?"":g,w=t.suffix,b=void 0===w?"":w,E=t.className,x=void 0===E?"":E,C=t.fullWidth,_=void 0!==C&&C,S=a(t,["disabled","children","onClick","size","variant","type","prefix","suffix","className","fullWidth"]);return e.createElement("button",i({type:h,disabled:o,className:u(d.button,(n={},n[x]=x,n[d[f]]=f,n[d[m]]=m,n[d.fullWidth]=_,n)),onClick:c},S),y&&e.createElement("span",{className:d.prefix},y),l,b&&e.createElement("span",{className:d.suffix},b))},exports.Label=function(t){var n=t.htmlFor,r=t.children;return e.createElement(Oi,{htmlFor:n,className:Di},r)},exports.Modal=function(t){var n=t.children,r=t.open,o=t.onOpenChange,i=t.title;return e.createElement(ot,{open:r,onOpenChange:o},e.createElement(it,null,e.createElement(at,{className:ft.overlay},e.createElement(lt,{className:ft.content},e.createElement("div",{className:ft.header},i&&e.createElement(ct,{className:ft.title},i),e.createElement(st,{className:ft.close},e.createElement(mt,null))),e.createElement("div",{className:ft.body},n)))))},exports.Select=Ri,exports.SelectItem=Pi,exports.Switch=function(t){var n,r=t.className,o=void 0===r?"":r,l=t.id,c=void 0===l?"":l,s=t.disabled,d=void 0!==s&&s,f=t.required,p=void 0!==f&&f,m=t.name,v=a(t,["className","id","disabled","required","name"]);return e.createElement(cn,i({className:u(un,(n={},n[o]=o,n)),disabled:d,required:p,name:m,id:c||m},v),e.createElement(sn,{className:dn}))},exports.Tab=function(t){var n,r=t.children,o=t.className,l=void 0===o?"":o,c=a(t,["children","className"]);return e.createElement(Ut,i({},c,{className:u(Yt,(n={},n[l]=l,n))}),r)},exports.TabsContent=function(t){var n,r=t.children,o=t.value,i=t.className,a=void 0===i?"":i;return e.createElement($t,{value:o,className:u(Gt,(n={},n[a]=a,n))},r)},exports.TabsList=function(t){var n,r=t.children,o=t.className,i=void 0===o?"":o;return e.createElement(zt,{className:u(Xt,(n={},n[i]=i,n))},r)},exports.TabsRoot=function(t){var n,r=t.children,o=t.className,l=void 0===o?"":o,c=a(t,["children","className"]);return e.createElement(Kt,i({},c,{className:u(qt,(n={},n[l]=l,n))}),r)},exports.Tooltip=function(t){var n,r=t.children,o=t.content,l=t.open,c=t.defaultOpen,s=t.onOpenChange,d=t.side,f=void 0===d?"top":d,p=t.align,m=void 0===p?"center":p,v=t.className,h=void 0===v?"":v,g=t.delayDuration,y=void 0===g?200:g,w=t.sideOffset,b=void 0===w?4:w,E=a(t,["children","content","open","defaultOpen","onOpenChange","side","align","className","delayDuration","sideOffset"]);return e.createElement(vo,null,e.createElement(ho,{delayDuration:y,open:l,defaultOpen:c,onOpenChange:s},e.createElement(go,{asChild:!0},r),e.createElement(yo,i({sideOffset:b,side:f,align:m},E,{className:u(bo,(n={},n[h]=h,n))}),o,e.createElement(wo,{className:Eo,width:11,height:5}))))};
6
+ */c=s,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)n.push(o);else if(Array.isArray(o)){if(o.length){var a=t.apply(null,o);a&&n.push(a)}}else if("object"===i){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){n.push(o.toString());continue}for(var l in o)e.call(o,l)&&o[l]&&n.push(l)}}}return n.join(" ")}c.exports?(t.default=t,c.exports=t):window.classNames=t}();var u=l(s.exports),d={button:"Button-modules_button__tpJr3",secondary:"Button-modules_secondary__JGOIF",small:"Button-modules_small__dNTOw",large:"Button-modules_large__5tvgy",prefix:"Button-modules_prefix__86hpR",suffix:"Button-modules_suffix__5uHiO",fullWidth:"Button-modules_fullWidth__3ET8J"};function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}function p(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function m(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function v(...t){return e.useCallback(m(...t),t)}function h(t,n=[]){let r=[];const o=()=>{const n=r.map((t=>e.createContext(t)));return function(r){const o=(null==r?void 0:r[t])||n;return e.useMemo((()=>({[`__scope${t}`]:{...r,[t]:o}})),[r,o])}};return o.scopeName=t,[function(n,o){const i=e.createContext(o),a=r.length;function l(n){const{scope:r,children:o,...l}=n,c=(null==r?void 0:r[t][a])||i,s=e.useMemo((()=>l),Object.values(l));return e.createElement(c.Provider,{value:s},o)}return r=[...r,o],l.displayName=n+"Provider",[l,function(r,l){const c=(null==l?void 0:l[t][a])||i,s=e.useContext(c);if(s)return s;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},g(o,...n)]}function g(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const o=r.reduce(((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]})),{});return e.useMemo((()=>({[`__scope${n.scopeName}`]:o})),[o])}};return r.scopeName=n.scopeName,r}const y=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?e.useLayoutEffect:()=>{},w=r["useId".toString()]||(()=>{});let b=0;function E(e){const[t,n]=r.useState(w());return y((()=>{e||n((e=>null!=e?e:String(b++)))}),[e]),e||(t?`radix-${t}`:"")}function x(t){const n=e.useRef(t);return e.useEffect((()=>{n.current=t})),e.useMemo((()=>(...e)=>{var t;return null===(t=n.current)||void 0===t?void 0:t.call(n,...e)}),[])}function C({prop:t,defaultProp:n,onChange:r=(()=>{})}){const[o,i]=function({defaultProp:t,onChange:n}){const r=e.useState(t),[o]=r,i=e.useRef(o),a=x(n);return e.useEffect((()=>{i.current!==o&&(a(o),i.current=o)}),[o,i,a]),r}({defaultProp:n,onChange:r}),a=void 0!==t,l=a?t:o,c=x(r);return[l,e.useCallback((e=>{if(a){const n="function"==typeof e?e(t):e;n!==t&&c(n)}else i(e)}),[a,t,i,c])]}const _=e.forwardRef(((t,n)=>{const{children:r,...o}=t,i=e.Children.toArray(r),a=i.find(R);if(a){const t=a.props.children,r=i.map((n=>n===a?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n));return e.createElement(S,f({},o,{ref:n}),e.isValidElement(t)?e.cloneElement(t,void 0,r):null)}return e.createElement(S,f({},o,{ref:n}),r)}));_.displayName="Slot";const S=e.forwardRef(((t,n)=>{const{children:r,...o}=t;return e.isValidElement(r)?e.cloneElement(r,{...P(o,r.props),ref:n?m(n,r.ref):r.ref}):e.Children.count(r)>1?e.Children.only(null):null}));S.displayName="SlotClone";const T=({children:t})=>e.createElement(e.Fragment,null,t);function R(t){return e.isValidElement(t)&&t.type===T}function P(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...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}}const O=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,n)=>{const r=e.forwardRef(((t,r)=>{const{asChild:o,...i}=t,a=o?_:n;return e.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),e.createElement(a,f({},i,{ref:r}))}));return r.displayName=`Primitive.${n}`,{...t,[n]:r}}),{});const D="dismissableLayer.update",k="dismissableLayer.pointerDownOutside",A="dismissableLayer.focusOutside";let L;const M=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),I=e.forwardRef(((t,n)=>{var r;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:l,onInteractOutside:c,onDismiss:s,...u}=t,d=e.useContext(M),[m,h]=e.useState(null),g=null!==(r=null==m?void 0:m.ownerDocument)&&void 0!==r?r:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,y]=e.useState({}),w=v(n,(e=>h(e))),b=Array.from(d.layers),[E]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),C=b.indexOf(E),_=m?b.indexOf(m):-1,S=d.layersWithOutsidePointerEventsDisabled.size>0,T=_>=C,R=function(t,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=x(t),o=e.useRef(!1),i=e.useRef((()=>{}));return e.useEffect((()=>{const e=e=>{if(e.target&&!o.current){const t={originalEvent:e};function a(){F(k,r,t,{discrete:!0})}"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=a,n.addEventListener("click",i.current,{once:!0})):a()}o.current=!1},t=window.setTimeout((()=>{n.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}}),[n,r]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,n=[...d.branches].some((e=>e.contains(t)));T&&!n&&(null==a||a(e),null==c||c(e),e.defaultPrevented||null==s||s())}),g),P=function(t,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=x(t),o=e.useRef(!1);return e.useEffect((()=>{const e=e=>{if(e.target&&!o.current){F(A,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=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(null==l||l(e),null==c||c(e),e.defaultPrevented||null==s||s())}),g);return function(t,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=x(t);e.useEffect((()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e),()=>n.removeEventListener("keydown",e)}),[r,n])}((e=>{_===d.layers.size-1&&(null==i||i(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),g),e.useEffect((()=>{if(m)return o&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(L=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(m)),d.layers.add(m),N(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(g.body.style.pointerEvents=L)}}),[m,g,o,d]),e.useEffect((()=>()=>{m&&(d.layers.delete(m),d.layersWithOutsidePointerEventsDisabled.delete(m),N())}),[m,d]),e.useEffect((()=>{const e=()=>y({});return document.addEventListener(D,e),()=>document.removeEventListener(D,e)}),[]),e.createElement(O.div,f({},u,{ref:w,style:{pointerEvents:S?T?"auto":"none":void 0,...t.style},onFocusCapture:p(t.onFocusCapture,P.onFocusCapture),onBlurCapture:p(t.onBlurCapture,P.onBlurCapture),onPointerDownCapture:p(t.onPointerDownCapture,R.onPointerDownCapture)}))}));function N(){const e=new CustomEvent(D);document.dispatchEvent(e)}function F(e,n,r,{discrete:o}){const i=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});n&&i.addEventListener(e,n,{once:!0}),o?function(e,n){e&&t.flushSync((()=>e.dispatchEvent(n)))}(i,a):i.dispatchEvent(a)}const B="focusScope.autoFocusOnMount",H="focusScope.autoFocusOnUnmount",W={bubbles:!1,cancelable:!0},j=e.forwardRef(((t,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...l}=t,[c,s]=e.useState(null),u=x(i),d=x(a),p=e.useRef(null),m=v(n,(e=>s(e))),h=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect((()=>{if(o){function e(e){if(h.paused||!c)return;const t=e.target;c.contains(t)?p.current=t:U(p.current,{select:!0})}function t(e){if(h.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||U(p.current,{select:!0}))}function n(e){const t=document.activeElement;for(const n of e)n.removedNodes.length>0&&(null!=c&&c.contains(t)||U(c))}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[o,c,h.paused]),e.useEffect((()=>{if(c){$.add(h);const t=document.activeElement;if(!c.contains(t)){const n=new CustomEvent(B,W);c.addEventListener(B,u),c.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(U(r,{select:t}),document.activeElement!==n)return}((e=V(c),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&U(c))}return()=>{c.removeEventListener(B,u),setTimeout((()=>{const e=new CustomEvent(H,W);c.addEventListener(H,d),c.dispatchEvent(e),e.defaultPrevented||U(null!=t?t:document.body,{select:!0}),c.removeEventListener(H,d),$.remove(h)}),0)}}var e}),[c,u,d,h]);const g=e.useCallback((e=>{if(!r&&!o)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,i]=function(e){const t=V(e),n=K(t,e),r=K(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&U(i,{select:!0})):(e.preventDefault(),r&&U(o,{select:!0})):n===t&&e.preventDefault()}}),[r,o,h.paused]);return e.createElement(O.div,f({tabIndex:-1},l,{ref:m,onKeyDown:g}))}));function V(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const 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 K(e,t){for(const n of e)if(!z(n,{upTo:t}))return n}function z(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function U(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const $=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=q(e,t),e.unshift(t)},remove(t){var n;e=q(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function q(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const X=e.forwardRef(((n,r)=>{var o;const{container:i=(null===globalThis||void 0===globalThis||null===(o=globalThis.document)||void 0===o?void 0:o.body),...a}=n;return i?t.createPortal(e.createElement(O.div,f({},a,{ref:r})),i):null}));const Y=n=>{const{present:r,children:o}=n,i=function(n){const[r,o]=e.useState(),i=e.useRef({}),a=e.useRef(n),l=e.useRef("none"),c=n?"mounted":"unmounted",[s,u]=function(t,n){return e.useReducer(((e,t)=>{const r=n[e][t];return null!=r?r:e}),t)}(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect((()=>{const e=G(i.current);l.current="mounted"===s?e:"none"}),[s]),y((()=>{const e=i.current,t=a.current;if(t!==n){const r=l.current,o=G(e);if(n)u("MOUNT");else if("none"===o||"none"===(null==e?void 0:e.display))u("UNMOUNT");else{u(t&&r!==o?"ANIMATION_OUT":"UNMOUNT")}a.current=n}}),[n,u]),y((()=>{if(r){const e=e=>{const n=G(i.current).includes(e.animationName);e.target===r&&n&&t.flushSync((()=>u("ANIMATION_END")))},n=e=>{e.target===r&&(l.current=G(i.current))};return r.addEventListener("animationstart",n),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),()=>{r.removeEventListener("animationstart",n),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}u("ANIMATION_END")}),[r,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:e.useCallback((e=>{e&&(i.current=getComputedStyle(e)),o(e)}),[])}}(r),a="function"==typeof o?o({present:i.isPresent}):e.Children.only(o),l=v(i.ref,a.ref);return"function"==typeof o||i.isPresent?e.cloneElement(a,{ref:l}):null};function G(e){return(null==e?void 0:e.animationName)||"none"}Y.displayName="Presence";let Z=0;function J(){e.useEffect((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:Q()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Q()),Z++,()=>{1===Z&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Z--}}),[])}function Q(){const 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 ee="right-scroll-bar-position",te="width-before-scroll-bar";function ne(t,n){return r=n||null,o=function(e){return t.forEach((function(t){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(t,e)}))},(i=e.useState((function(){return{value:r,callback:o,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}}))[0]).callback=o,i.facade;var r,o,i}function re(e){return e}var oe=function(e){var t=e.sideCar,n=a(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return r.createElement(o,i({},n))};oe.isSideCarExport=!0;var ie=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=re);var n=[],r=!1;return{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(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=i({async:!0,ssr:!1},e),t}(),ae=function(){},le=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useState({onScrollCapture:ae,onWheelCapture:ae,onTouchMoveCapture:ae}),l=o[0],c=o[1],s=e.forwardProps,u=e.children,d=e.className,f=e.removeScrollBar,p=e.enabled,m=e.shards,v=e.sideCar,h=e.noIsolation,g=e.inert,y=e.allowPinchZoom,w=e.as,b=void 0===w?"div":w,E=a(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),x=v,C=ne([n,t]),_=i(i({},E),l);return r.createElement(r.Fragment,null,p&&r.createElement(x,{sideCar:ie,removeScrollBar:f,shards:m,noIsolation:h,inert:g,setCallbacks:c,allowPinchZoom:!!y,lockRef:n}),s?r.cloneElement(r.Children.only(u),i(i({},_),{ref:C})):r.createElement(b,i({},_,{className:d,ref:C}),u))}));le.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},le.classNames={fullWidth:te,zeroRight:ee};function ce(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var se=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=ce())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ue=function(){var e,t=(e=se(),function(t,n){r.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},de={left:0,top:0,right:0,gap:0},fe=function(e){return parseInt(e||"",10)||0},pe=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return de;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[fe(n),fe(r),fe(o)]}(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])}},me=ue(),ve=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(ee," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(te," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(ee," .").concat(ee," {\n right: 0 ").concat(r,";\n }\n \n .").concat(te," .").concat(te," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},he=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,i=void 0===o?"margin":o,a=r.useMemo((function(){return pe(i)}),[i]);return r.createElement(me,{styles:ve(a,!t,i,n?"":"!important")})},ge=!1;if("undefined"!=typeof window)try{var ye=Object.defineProperty({},"passive",{get:function(){return ge=!0,!0}});window.addEventListener("test",ye,ye),window.removeEventListener("test",ye,ye)}catch(e){ge=!1}var we=!!ge&&{passive:!1},be=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Ee=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),xe(e,n)){var r=Ce(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},xe=function(e,t){return"v"===e?function(e){return be(e,"overflowY")}(t):function(e){return be(e,"overflowX")}(t)},Ce=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},_e=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Se=function(e){return[e.deltaX,e.deltaY]},Te=function(e){return e&&"current"in e?e.current:e},Re=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Pe=0,Oe=[];var De,ke=(De=function(e){var t=r.useRef([]),n=r.useRef([0,0]),o=r.useRef(),i=r.useState(Pe++)[0],a=r.useState((function(){return ue()}))[0],l=r.useRef(e);r.useEffect((function(){l.current=e}),[e]),r.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));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(Te),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(i))})),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(i))}))}}}),[e.inert,e.lockRef.current,e.shards]);var c=r.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!l.current.allowPinchZoom;var r,i=_e(e),a=n.current,c="deltaX"in e?e.deltaX:a[0]-i[0],s="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,d=Math.abs(c)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=Ee(d,u);if(!f)return!0;if(f?r=d:(r="v"===d?"h":"v",f=Ee(d,u)),!f)return!1;if(!o.current&&"changedTouches"in e&&(c||s)&&(o.current=r),!r)return!0;var p=o.current||r;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,l=n.target,c=t.contains(l),s=!1,u=a>0,d=0,f=0;do{var p=Ce(e,l),m=p[0],v=p[1]-p[2]-i*m;(m||v)&&xe(e,l)&&(d+=v,f+=m),l=l.parentNode}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(u&&(o&&0===d||!o&&a>d)||!u&&(o&&0===f||!o&&-a>f))&&(s=!0),s}(p,t,e,"h"===p?c:s,!0)}),[]),s=r.useCallback((function(e){var n=e;if(Oe.length&&Oe[Oe.length-1]===a){var r="deltaY"in n?Se(n):_e(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var i=(l.current.shards||[]).map(Te).filter(Boolean).filter((function(e){return e.contains(n.target)}));(i.length>0?c(n,i[0]):!l.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),u=r.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),d=r.useCallback((function(e){n.current=_e(e),o.current=void 0}),[]),f=r.useCallback((function(t){u(t.type,Se(t),t.target,c(t,e.lockRef.current))}),[]),p=r.useCallback((function(t){u(t.type,_e(t),t.target,c(t,e.lockRef.current))}),[]);r.useEffect((function(){return Oe.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,we),document.addEventListener("touchmove",s,we),document.addEventListener("touchstart",d,we),function(){Oe=Oe.filter((function(e){return e!==a})),document.removeEventListener("wheel",s,we),document.removeEventListener("touchmove",s,we),document.removeEventListener("touchstart",d,we)}}),[]);var m=e.removeScrollBar,v=e.inert;return r.createElement(r.Fragment,null,v?r.createElement(a,{styles:Re(i)}):null,m?r.createElement(he,{gapMode:"margin"}):null)},ie.useMedium(De),oe),Ae=r.forwardRef((function(e,t){return r.createElement(le,i({},e,{ref:t,sideCar:ke}))}));Ae.classNames=le.classNames;var Le=Ae,Me=new WeakMap,Ie=new WeakMap,Ne={},Fe=0,Be=function(e){return e&&(e.host||Be(e.parentNode))},He=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Be(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Ne[n]||(Ne[n]=new WeakMap);var i=Ne[n],a=[],l=new Set,c=new Set(o),s=function(e){e&&!l.has(e)&&(l.add(e),s(e.parentNode))};o.forEach(s);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(l.has(e))u(e);else{var t=e.getAttribute(r),o=null!==t&&"false"!==t,c=(Me.get(e)||0)+1,s=(i.get(e)||0)+1;Me.set(e,c),i.set(e,s),a.push(e),1===c&&o&&Ie.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}}))};return u(t),l.clear(),Fe++,function(){a.forEach((function(e){var t=Me.get(e)-1,o=i.get(e)-1;Me.set(e,t),i.set(e,o),t||(Ie.has(e)||e.removeAttribute(r),Ie.delete(e)),o||e.removeAttribute(n)})),--Fe||(Me=new WeakMap,Me=new WeakMap,Ie=new WeakMap,Ne={})}},We=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),He(r,o,n,"aria-hidden")):function(){return null}};const je="Dialog",[Ve,Ke]=h(je),[ze,Ue]=Ve(je),$e="DialogPortal",[qe,Xe]=Ve($e,{forceMount:void 0}),Ye="DialogOverlay",Ge=e.forwardRef(((t,n)=>{const r=Xe(Ye,t.__scopeDialog),{forceMount:o=r.forceMount,...i}=t,a=Ue(Ye,t.__scopeDialog);return a.modal?e.createElement(Y,{present:o||a.open},e.createElement(Ze,f({},i,{ref:n}))):null})),Ze=e.forwardRef(((t,n)=>{const{__scopeDialog:r,...o}=t,i=Ue(Ye,r);return e.createElement(Le,{as:_,allowPinchZoom:!0,shards:[i.contentRef]},e.createElement(O.div,f({"data-state":rt(i.open)},o,{ref:n,style:{pointerEvents:"auto",...o.style}})))})),Je="DialogContent",Qe=e.forwardRef(((t,n)=>{const r=Xe(Je,t.__scopeDialog),{forceMount:o=r.forceMount,...i}=t,a=Ue(Je,t.__scopeDialog);return e.createElement(Y,{present:o||a.open},a.modal?e.createElement(et,f({},i,{ref:n})):e.createElement(tt,f({},i,{ref:n})))})),et=e.forwardRef(((t,n)=>{const r=Ue(Je,t.__scopeDialog),o=e.useRef(null),i=v(n,r.contentRef,o);return e.useEffect((()=>{const e=o.current;if(e)return We(e)}),[]),e.createElement(nt,f({},t,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:p(t.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:p(t.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:p(t.onFocusOutside,(e=>e.preventDefault()))}))})),tt=e.forwardRef(((t,n)=>{const r=Ue(Je,t.__scopeDialog),o=e.useRef(!1),i=e.useRef(!1);return e.createElement(nt,f({},t,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{var n,a;(null===(n=t.onCloseAutoFocus)||void 0===n||n.call(t,e),e.defaultPrevented)||(o.current||null===(a=r.triggerRef.current)||void 0===a||a.focus(),e.preventDefault());o.current=!1,i.current=!1},onInteractOutside:e=>{var n,a;null===(n=t.onInteractOutside)||void 0===n||n.call(t,e),e.defaultPrevented||(o.current=!0,"pointerdown"===e.detail.originalEvent.type&&(i.current=!0));const l=e.target;(null===(a=r.triggerRef.current)||void 0===a?void 0:a.contains(l))&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}}))})),nt=e.forwardRef(((t,n)=>{const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,...l}=t,c=Ue(Je,r),s=v(n,e.useRef(null));return J(),e.createElement(e.Fragment,null,e.createElement(j,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a},e.createElement(I,f({role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":rt(c.open)},l,{ref:s,onDismiss:()=>c.onOpenChange(!1)}))),!1)}));function rt(e){return e?"open":"closed"}const ot=t=>{const{__scopeDialog:n,children:r,open:o,defaultOpen:i,onOpenChange:a,modal:l=!0}=t,c=e.useRef(null),s=e.useRef(null),[u=!1,d]=C({prop:o,defaultProp:i,onChange:a});return e.createElement(ze,{scope:n,triggerRef:c,contentRef:s,contentId:E(),titleId:E(),descriptionId:E(),open:u,onOpenChange:d,onOpenToggle:e.useCallback((()=>d((e=>!e))),[d]),modal:l},r)},it=t=>{const{__scopeDialog:n,forceMount:r,children:o,container:i}=t,a=Ue($e,n);return e.createElement(qe,{scope:n,forceMount:r},e.Children.map(o,(t=>e.createElement(Y,{present:r||a.open},e.createElement(X,{asChild:!0,container:i},t)))))},at=Ge,lt=Qe,ct=e.forwardRef(((t,n)=>{const{__scopeDialog:r,...o}=t,i=Ue("DialogTitle",r);return e.createElement(O.h2,f({id:i.titleId},o,{ref:n}))})),st=e.forwardRef(((t,n)=>{const{__scopeDialog:r,...o}=t,i=Ue("DialogClose",r);return e.createElement(O.button,f({type:"button"},o,{ref:n,onClick:p(t.onClick,(()=>i.onOpenChange(!1)))}))}));var ut,dt,ft={overlay:"Modal-modules_overlay__V-vTn",content:"Modal-modules_content__sK9HS",header:"Modal-modules_header__-dxAm",close:"Modal-modules_close__CwIjR",title:"Modal-modules_title__3ehge"};function pt(){return pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pt.apply(this,arguments)}var mt=function(e){return r.createElement("svg",pt({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),r.createElement("mask",{id:"close_svg__a",width:24,height:24,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},ut||(ut=r.createElement("path",{fill:"#D9D9D9",d:"M0 0h24v24H0z"}))),dt||(dt=r.createElement("g",{mask:"url(#close_svg__a)"},r.createElement("path",{fill:"#2C3336",d:"m12 13.054-5.073 5.073a.724.724 0 0 1-.522.212.707.707 0 0 1-.532-.212.717.717 0 0 1-.217-.527c0-.206.072-.382.217-.527L10.946 12 5.873 6.927a.725.725 0 0 1-.212-.522.707.707 0 0 1 .212-.532.717.717 0 0 1 .527-.217c.206 0 .382.072.527.217L12 10.946l5.073-5.073a.724.724 0 0 1 .522-.212.707.707 0 0 1 .532.212c.145.145.217.32.217.527a.717.717 0 0 1-.217.527L13.054 12l5.073 5.073c.138.139.21.313.212.522a.707.707 0 0 1-.212.532.717.717 0 0 1-.527.217.717.717 0 0 1-.527-.217L12 13.054Z"}))))};function vt(t){const n=t+"CollectionProvider",[r,o]=h(n),[i,a]=r(n,{collectionRef:{current:null},itemMap:new Map}),l=t+"CollectionSlot",c=t+"CollectionItemSlot",s="data-radix-collection-item";return[{Provider:t=>{const{scope:n,children:r}=t,o=e.useRef(null),a=e.useRef(new Map).current;return e.createElement(i,{scope:n,itemMap:a,collectionRef:o},r)},Slot:e.forwardRef(((t,n)=>{const{scope:r,children:o}=t,i=v(n,a(l,r).collectionRef);return e.createElement(_,{ref:i},o)})),ItemSlot:e.forwardRef(((t,n)=>{const{scope:r,children:o,...i}=t,l=e.useRef(null),u=v(n,l),d=a(c,r);return e.useEffect((()=>(d.itemMap.set(l,{ref:l,...i}),()=>{d.itemMap.delete(l)}))),e.createElement(_,{[s]:"",ref:u},o)}))},function(n){const r=a(t+"CollectionConsumer",n);return e.useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${s}]`));return Array.from(r.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[r.collectionRef,r.itemMap])},o]}const ht=e.createContext(void 0);function gt(t){const n=e.useContext(ht);return t||n||"ltr"}const yt="rovingFocusGroup.onEntryFocus",wt={bubbles:!1,cancelable:!0},bt="RovingFocusGroup",[Et,xt,Ct]=vt(bt),[_t,St]=h(bt,[Ct]),[Tt,Rt]=_t(bt),Pt=e.forwardRef(((t,n)=>e.createElement(Et.Provider,{scope:t.__scopeRovingFocusGroup},e.createElement(Et.Slot,{scope:t.__scopeRovingFocusGroup},e.createElement(Ot,f({},t,{ref:n})))))),Ot=e.forwardRef(((t,n)=>{const{__scopeRovingFocusGroup:r,orientation:o,loop:i=!1,dir:a,currentTabStopId:l,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:s,onEntryFocus:u,...d}=t,m=e.useRef(null),h=v(n,m),g=gt(a),[y=null,w]=C({prop:l,defaultProp:c,onChange:s}),[b,E]=e.useState(!1),_=x(u),S=xt(r),T=e.useRef(!1),[R,P]=e.useState(0);return e.useEffect((()=>{const e=m.current;if(e)return e.addEventListener(yt,_),()=>e.removeEventListener(yt,_)}),[_]),e.createElement(Tt,{scope:r,orientation:o,dir:g,loop:i,currentTabStopId:y,onItemFocus:e.useCallback((e=>w(e)),[w]),onItemShiftTab:e.useCallback((()=>E(!0)),[]),onFocusableItemAdd:e.useCallback((()=>P((e=>e+1))),[]),onFocusableItemRemove:e.useCallback((()=>P((e=>e-1))),[])},e.createElement(O.div,f({tabIndex:b||0===R?-1:0,"data-orientation":o},d,{ref:h,style:{outline:"none",...t.style},onMouseDown:p(t.onMouseDown,(()=>{T.current=!0})),onFocus:p(t.onFocus,(e=>{const t=!T.current;if(e.target===e.currentTarget&&t&&!b){const t=new CustomEvent(yt,wt);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=S().filter((e=>e.focusable));At([e.find((e=>e.active)),e.find((e=>e.id===y)),...e].filter(Boolean).map((e=>e.ref.current)))}}T.current=!1})),onBlur:p(t.onBlur,(()=>E(!1)))})))})),Dt=e.forwardRef(((t,n)=>{const{__scopeRovingFocusGroup:r,focusable:o=!0,active:i=!1,tabStopId:a,...l}=t,c=E(),s=a||c,u=Rt("RovingFocusGroupItem",r),d=u.currentTabStopId===s,m=xt(r),{onFocusableItemAdd:v,onFocusableItemRemove:h}=u;return e.useEffect((()=>{if(o)return v(),()=>h()}),[o,v,h]),e.createElement(Et.ItemSlot,{scope:r,id:s,focusable:o,active:i},e.createElement(O.span,f({tabIndex:d?0:-1,"data-orientation":u.orientation},l,{ref:n,onMouseDown:p(t.onMouseDown,(e=>{o?u.onItemFocus(s):e.preventDefault()})),onFocus:p(t.onFocus,(()=>u.onItemFocus(s))),onKeyDown:p(t.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void u.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:kt[r]}(e,u.orientation,u.dir);if(void 0!==t){e.preventDefault();let o=m().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=u.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>At(o)))}var n,r}))})))})),kt={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function At(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const Lt=Pt,Mt=Dt,It="Tabs",[Nt,Ft]=h(It,[St]),Bt=St(),[Ht,Wt]=Nt(It);function jt(e,t){return`${e}-trigger-${t}`}function Vt(e,t){return`${e}-content-${t}`}const Kt=e.forwardRef(((t,n)=>{const{__scopeTabs:r,value:o,onValueChange:i,defaultValue:a,orientation:l="horizontal",dir:c,activationMode:s="automatic",...u}=t,d=gt(c),[p,m]=C({prop:o,onChange:i,defaultProp:a});return e.createElement(Ht,{scope:r,baseId:E(),value:p,onValueChange:m,orientation:l,dir:d,activationMode:s},e.createElement(O.div,f({dir:d,"data-orientation":l},u,{ref:n})))})),zt=e.forwardRef(((t,n)=>{const{__scopeTabs:r,loop:o=!0,...i}=t,a=Wt("TabsList",r),l=Bt(r);return e.createElement(Lt,f({asChild:!0},l,{orientation:a.orientation,dir:a.dir,loop:o}),e.createElement(O.div,f({role:"tablist","aria-orientation":a.orientation},i,{ref:n})))})),Ut=e.forwardRef(((t,n)=>{const{__scopeTabs:r,value:o,disabled:i=!1,...a}=t,l=Wt("TabsTrigger",r),c=Bt(r),s=jt(l.baseId,o),u=Vt(l.baseId,o),d=o===l.value;return e.createElement(Mt,f({asChild:!0},c,{focusable:!i,active:d}),e.createElement(O.button,f({type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:s},a,{ref:n,onMouseDown:p(t.onMouseDown,(e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():l.onValueChange(o)})),onKeyDown:p(t.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&l.onValueChange(o)})),onFocus:p(t.onFocus,(()=>{const e="manual"!==l.activationMode;d||i||!e||l.onValueChange(o)}))})))})),$t=e.forwardRef(((t,n)=>{const{__scopeTabs:r,value:o,forceMount:i,children:a,...l}=t,c=Wt("TabsContent",r),s=jt(c.baseId,o),u=Vt(c.baseId,o),d=o===c.value,p=e.useRef(d);return e.useEffect((()=>{const e=requestAnimationFrame((()=>p.current=!1));return()=>cancelAnimationFrame(e)}),[]),e.createElement(Y,{present:i||d},(({present:r})=>e.createElement(O.div,f({"data-state":d?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":s,hidden:!r,id:u,tabIndex:0},l,{ref:n,style:{...t.style,animationDuration:p.current?"0s":void 0}}),r&&a)))}));var qt="Tabs-modules_root__TvYE1",Xt="Tabs-modules_list__G3KVd",Yt="Tabs-modules_tab__-FuG6",Gt="Tabs-modules_content__X0OLh";function Zt(t){const n=e.useRef({value:t,previous:t});return e.useMemo((()=>(n.current.value!==t&&(n.current.previous=n.current.value,n.current.value=t),n.current.previous)),[t])}function Jt(t){const[n,r]=e.useState(void 0);return y((()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver((e=>{if(!Array.isArray(e))return;if(!e.length)return;const n=e[0];let o,i;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=t.offsetWidth,i=t.offsetHeight;r({width:o,height:i})}));return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}r(void 0)}),[t]),n}const Qt="Switch",[en,tn]=h(Qt),[nn,rn]=en(Qt),on=e.forwardRef(((t,n)=>{const{__scopeSwitch:r,name:o,checked:i,defaultChecked:a,required:l,disabled:c,value:s="on",onCheckedChange:u,...d}=t,[m,h]=e.useState(null),g=v(n,(e=>h(e))),y=e.useRef(!1),w=!m||Boolean(m.closest("form")),[b=!1,E]=C({prop:i,defaultProp:a,onChange:u});return e.createElement(nn,{scope:r,checked:b,disabled:c},e.createElement(O.button,f({type:"button",role:"switch","aria-checked":b,"aria-required":l,"data-state":ln(b),"data-disabled":c?"":void 0,disabled:c,value:s},d,{ref:g,onClick:p(t.onClick,(e=>{E((e=>!e)),w&&(y.current=e.isPropagationStopped(),y.current||e.stopPropagation())}))})),w&&e.createElement(an,{control:m,bubbles:!y.current,name:o,value:s,checked:b,required:l,disabled:c,style:{transform:"translateX(-100%)"}}))})),an=t=>{const{control:n,checked:r,bubbles:o=!0,...i}=t,a=e.useRef(null),l=Zt(r),c=Jt(n);return e.useEffect((()=>{const e=a.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(l!==r&&n){const t=new Event("click",{bubbles:o});n.call(e,r),e.dispatchEvent(t)}}),[l,r,o]),e.createElement("input",f({type:"checkbox","aria-hidden":!0,defaultChecked:r},i,{tabIndex:-1,ref:a,style:{...t.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function ln(e){return e?"checked":"unchecked"}const cn=on,sn=e.forwardRef(((t,n)=>{const{__scopeSwitch:r,...o}=t,i=rn("SwitchThumb",r);return e.createElement(O.span,f({"data-state":ln(i.checked),"data-disabled":i.disabled?"":void 0},o,{ref:n}))}));var un="Switch-modules_root__V5S6a",dn="Switch-modules_thumb__PZ-lR";function fn(e){return e.split("-")[1]}function pn(e){return"y"===e?"height":"width"}function mn(e){return e.split("-")[0]}function vn(e){return["top","bottom"].includes(mn(e))?"x":"y"}function hn(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,l=vn(t),c=pn(l),s=r[c]/2-o[c]/2,u="x"===l;let d;switch(mn(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}switch(fn(t)){case"start":d[l]-=s*(n&&u?-1:1);break;case"end":d[l]+=s*(n&&u?-1:1)}return d}function gn(e,t){return"function"==typeof e?e(t):e}function yn(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function wn(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function bn(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:l,strategy:c}=e,{boundary:s="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=gn(t,e),m=yn(p),v=l[f?"floating"===d?"reference":"floating":d],h=wn(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:s,rootBoundary:u,strategy:c})),g="floating"===d?{...a.floating,x:r,y:o}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),w=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=wn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:g,offsetParent:y,strategy:c}):g);return{top:(h.top-b.top+m.top)/w.y,bottom:(b.bottom-h.bottom+m.bottom)/w.y,left:(h.left-b.left+m.left)/w.x,right:(b.right-h.right+m.right)/w.x}}const En=Math.min,xn=Math.max;function Cn(e,t,n){return xn(e,En(t,n))}const _n=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:l}=t,{element:c,padding:s=0}=gn(e,t)||{};if(null==c)return{};const u=yn(s),d={x:n,y:r},f=vn(o),p=pn(f),m=await a.getDimensions(c),v="y"===f,h=v?"top":"left",g=v?"bottom":"right",y=v?"clientHeight":"clientWidth",w=i.reference[p]+i.reference[f]-d[f]-i.floating[p],b=d[f]-i.reference[f],E=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let x=E?E[y]:0;x&&await(null==a.isElement?void 0:a.isElement(E))||(x=l.floating[y]||i.floating[p]);const C=w/2-b/2,_=x/2-m[p]/2-1,S=En(u[h],_),T=En(u[g],_),R=S,P=x-m[p]-T,O=x/2-m[p]/2+C,D=Cn(R,O,P),k=null!=fn(o)&&O!=D&&i.reference[p]/2-(O<R?S:T)-m[p]/2<0;return{[f]:d[f]-(k?O<R?R-O:P-O:0),data:{[f]:D,centerOffset:O-D}}}}),Sn=["top","right","bottom","left"],Tn={left:"right",right:"left",bottom:"top",top:"bottom"};function Rn(e){return e.replace(/left|right|bottom|top/g,(e=>Tn[e]))}const Pn={start:"end",end:"start"};function On(e){return e.replace(/start|end/g,(e=>Pn[e]))}const Dn=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:s=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...v}=gn(e,t),h=mn(r),g=mn(a)===a,y=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=d||(g||!m?[Rn(a)]:function(e){const t=Rn(e);return[On(e),t,On(t)]}(a));d||"none"===p||w.push(...function(e,t,n,r){const o=fn(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(mn(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(On)))),i}(a,m,p,y));const b=[a,...w],E=await bn(t,v),x=[];let C=(null==(n=o.flip)?void 0:n.overflows)||[];if(s&&x.push(E[h]),u){const{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);const r=fn(e),o=vn(e),i=pn(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Rn(a)),{main:a,cross:Rn(a)}}(r,i,y);x.push(E[e],E[t])}if(C=[...C,{placement:r,overflows:x}],!x.every((e=>e<=0))){var _,S;const e=((null==(_=o.flip)?void 0:_.index)||0)+1,t=b[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(S=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:S.placement;if(!n)switch(f){case"bestFit":{var T;const e=null==(T=C.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:T[0];e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}};function kn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function An(e){return Sn.some((t=>e[t]>=0))}const Ln=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=gn(e,t);switch(r){case"referenceHidden":{const e=kn(await bn(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:An(e)}}}case"escaped":{const e=kn(await bn(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:An(e)}}}default:return{}}}}};const Mn=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=mn(n),l=fn(n),c="x"===vn(n),s=["left","top"].includes(a)?-1:1,u=i&&c?-1:1,d=gn(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&"number"==typeof m&&(p="end"===l?-1*m:m),c?{x:p*u,y:f*s}:{x:f*s,y:p*u}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}};function In(e){return"x"===e?"y":"x"}const Nn=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=gn(e,t),s={x:n,y:r},u=await bn(t,c),d=vn(mn(o)),f=In(d);let p=s[d],m=s[f];if(i){const e="y"===d?"bottom":"right";p=Cn(p+u["y"===d?"top":"left"],p,p-u[e])}if(a){const e="y"===f?"bottom":"right";m=Cn(m+u["y"===f?"top":"left"],m,m-u[e])}const v=l.fn({...t,[d]:p,[f]:m});return{...v,data:{x:v.x-n,y:v.y-r}}}}},Fn=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:c=!0,crossAxis:s=!0}=gn(e,t),u={x:n,y:r},d=vn(o),f=In(d);let p=u[d],m=u[f];const v=gn(l,t),h="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+h.mainAxis,n=i.reference[d]+i.reference[e]-h.mainAxis;p<t?p=t:p>n&&(p=n)}if(s){var g,y;const e="y"===d?"width":"height",t=["top","left"].includes(mn(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(g=a.offset)?void 0:g[f])||0)+(t?0:h.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[f])||0)-(t?h.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[d]:p,[f]:m}}}},Bn=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=(()=>{}),...l}=gn(e,t),c=await bn(t,l),s=mn(n),u=fn(n),d="x"===vn(n),{width:f,height:p}=r.floating;let m,v;"top"===s||"bottom"===s?(m=s,v=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(v=s,m="end"===u?"top":"bottom");const h=p-c[m],g=f-c[v],y=!t.middlewareData.shift;let w=h,b=g;if(d){const e=f-c.left-c.right;b=u||y?En(g,e):e}else{const e=p-c.top-c.bottom;w=u||y?En(h,e):e}if(y&&!u){const e=xn(c.left,0),t=xn(c.right,0),n=xn(c.top,0),r=xn(c.bottom,0);d?b=f-2*(0!==e||0!==t?e+t:xn(c.left,c.right)):w=p-2*(0!==n||0!==r?n+r:xn(c.top,c.bottom))}await a({...t,availableWidth:b,availableHeight:w});const E=await o.getDimensions(i.floating);return f!==E.width||p!==E.height?{reset:{rects:!0}}:{}}}};function Hn(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Wn(e){return Hn(e).getComputedStyle(e)}function jn(e){return e instanceof Hn(e).Node}function Vn(e){return jn(e)?(e.nodeName||"").toLowerCase():""}function Kn(e){return e instanceof Hn(e).HTMLElement}function zn(e){return e instanceof Hn(e).Element}function Un(e){if("undefined"==typeof ShadowRoot)return!1;return e instanceof Hn(e).ShadowRoot||e instanceof ShadowRoot}function $n(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Wn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function qn(e){return["table","td","th"].includes(Vn(e))}function Xn(e){const t=Yn(),n=Wn(e);return"none"!==n.transform||"none"!==n.perspective||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Yn(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Gn(e){return["html","body","#document"].includes(Vn(e))}const Zn=Math.min,Jn=Math.max,Qn=Math.round;function er(e){const t=Wn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Kn(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=Qn(n)!==i||Qn(r)!==a;return l&&(n=i,r=a),{width:n,height:r,fallback:l}}function tr(e){return zn(e)?e:e.contextElement}const nr={x:1,y:1};function rr(e){const t=tr(e);if(!Kn(t))return nr;const n=t.getBoundingClientRect(),{width:r,height:o,fallback:i}=er(t);let a=(i?Qn(n.width):n.width)/r,l=(i?Qn(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const or={x:0,y:0};function ir(e,t,n){var r,o;if(void 0===t&&(t=!0),!Yn())return or;const i=e?Hn(e):window;return!n||t&&n!==i?or:{x:(null==(r=i.visualViewport)?void 0:r.offsetLeft)||0,y:(null==(o=i.visualViewport)?void 0:o.offsetTop)||0}}function ar(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=tr(e);let a=nr;t&&(r?zn(r)&&(a=rr(r)):a=rr(e));const l=ir(i,n,r);let c=(o.left+l.x)/a.x,s=(o.top+l.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Hn(i),t=r&&zn(r)?Hn(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=rr(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,c*=e.x,s*=e.y,u*=e.x,d*=e.y,c+=t.x,s+=t.y,n=Hn(n).frameElement}}return wn({width:u,height:d,x:c,y:s})}function lr(e){return((jn(e)?e.ownerDocument:e.document)||window.document).documentElement}function cr(e){return zn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function sr(e){return ar(lr(e)).left+cr(e).scrollLeft}function ur(e){if("html"===Vn(e))return e;const t=e.assignedSlot||e.parentNode||Un(e)&&e.host||lr(e);return Un(t)?t.host:t}function dr(e){const t=ur(e);return Gn(t)?t.ownerDocument.body:Kn(t)&&$n(t)?t:dr(t)}function fr(e,t){var n;void 0===t&&(t=[]);const r=dr(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Hn(r);return o?t.concat(i,i.visualViewport||[],$n(r)?r:[]):t.concat(r,fr(r))}function pr(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Hn(e),r=lr(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,c=0;if(o){i=o.width,a=o.height;const e=Yn();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:l,y:c}}(e,n);else if("document"===t)r=function(e){const t=lr(e),n=cr(e),r=e.ownerDocument.body,o=Jn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Jn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+sr(e);const l=-n.scrollTop;return"rtl"===Wn(r).direction&&(a+=Jn(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(lr(e));else if(zn(t))r=function(e,t){const n=ar(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Kn(e)?rr(e):{x:1,y:1};return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=ir(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return wn(r)}function mr(e,t){const n=ur(e);return!(n===t||!zn(n)||Gn(n))&&("fixed"===Wn(n).position||mr(n,t))}function vr(e,t){return Kn(e)&&"fixed"!==Wn(e).position?t?t(e):e.offsetParent:null}function hr(e,t){const n=Hn(e);if(!Kn(e))return n;let r=vr(e,t);for(;r&&qn(r)&&"static"===Wn(r).position;)r=vr(r,t);return r&&("html"===Vn(r)||"body"===Vn(r)&&"static"===Wn(r).position&&!Xn(r))?n:r||function(e){let t=ur(e);for(;Kn(t)&&!Gn(t);){if(Xn(t))return t;t=ur(t)}return null}(e)||n}function gr(e,t,n){const r=Kn(t),o=lr(t),i="fixed"===n,a=ar(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(r||!r&&!i)if(("body"!==Vn(t)||$n(o))&&(l=cr(t)),Kn(t)){const e=ar(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=sr(o));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}const yr={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=fr(e).filter((e=>zn(e)&&"body"!==Vn(e))),o=null;const i="fixed"===Wn(e).position;let a=i?ur(e):e;for(;zn(a)&&!Gn(a);){const t=Wn(a),n=Xn(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||$n(a)&&!n&&mr(e,a))?r=r.filter((e=>e!==a)):o=t,a=ur(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],l=i.reduce(((e,n)=>{const r=pr(t,n,o);return e.top=Jn(r.top,e.top),e.right=Zn(r.right,e.right),e.bottom=Zn(r.bottom,e.bottom),e.left=Jn(r.left,e.left),e}),pr(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Kn(n),i=lr(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},l={x:1,y:1};const c={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==Vn(n)||$n(i))&&(a=cr(n)),Kn(n))){const e=ar(n);l=rr(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-a.scrollLeft*l.x+c.x,y:t.y*l.y-a.scrollTop*l.y+c.y}},isElement:zn,getDimensions:function(e){return er(e)},getOffsetParent:hr,getDocumentElement:lr,getScale:rr,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||hr,i=this.getDimensions;return{reference:gr(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===Wn(e).direction};function wr(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:l=!1}=r,c=o||i?[...zn(e)?fr(e):e.contextElement?fr(e.contextElement):[],...fr(t)]:[];c.forEach((e=>{const t=!zn(e)&&e.toString().includes("V");!o||l&&!t||e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let s,u=null;a&&(u=new ResizeObserver((()=>{n()})),zn(e)&&!l&&u.observe(e),zn(e)||!e.contextElement||l||u.observe(e.contextElement),u.observe(t));let d=l?ar(e):null;return l&&function t(){const r=ar(e);!d||r.x===d.x&&r.y===d.y&&r.width===d.width&&r.height===d.height||n();d=r,s=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==(e=u)||e.disconnect(),u=null,l&&cancelAnimationFrame(s)}}const br=(e,t,n)=>{const r=new Map,o={platform:yr,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(t));let s=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=hn(s,r,c),f=r,p={},m=0;for(let n=0;n<l.length;n++){const{name:i,fn:v}=l[n],{x:h,y:g,data:y,reset:w}=await v({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:s,platform:a,elements:{reference:e,floating:t}});u=null!=h?h:u,d=null!=g?g:d,p={...p,[i]:{...p[i],...y}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(s=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:u,y:d}=hn(s,f,c))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},Er=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?_n({element:n.current,padding:r}).fn(t):{}:n?_n({element:n,padding:r}).fn(t):{};var o}});var xr="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function Cr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!Cr(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;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Cr(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function _r(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Sr(e,t){const n=_r(e);return Math.round(t*n)/n}function Tr(e){const t=r.useRef(e);return xr((()=>{t.current=e})),t}const Rr=e.forwardRef(((t,n)=>{const{children:r,width:o=10,height:i=5,...a}=t;return e.createElement(O.svg,f({},a,{ref:n,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),t.asChild?r:e.createElement("polygon",{points:"0,0 30,0 15,10"}))})),Pr="Popper",[Or,Dr]=h(Pr),[kr,Ar]=Or(Pr),Lr=e.forwardRef(((t,n)=>{const{__scopePopper:r,virtualRef:o,...i}=t,a=Ar("PopperAnchor",r),l=e.useRef(null),c=v(n,l);return e.useEffect((()=>{a.onAnchorChange((null==o?void 0:o.current)||l.current)})),o?null:e.createElement(O.div,f({},i,{ref:c}))})),Mr="PopperContent",[Ir,Nr]=Or(Mr),Fr=e.forwardRef(((t,n)=>{var i,a,l,c,s,u,d,p;const{__scopePopper:m,side:h="bottom",sideOffset:g=0,align:w="center",alignOffset:b=0,arrowPadding:E=0,collisionBoundary:C=[],collisionPadding:_=0,sticky:S="partial",hideWhenDetached:T=!1,avoidCollisions:R=!0,onPlaced:P,...D}=t,k=Ar(Mr,m),[A,L]=e.useState(null),M=v(n,(e=>L(e))),[I,N]=e.useState(null),F=Jt(I),B=null!==(i=null==F?void 0:F.width)&&void 0!==i?i:0,H=null!==(a=null==F?void 0:F.height)&&void 0!==a?a:0,W=h+("center"!==w?"-"+w:""),j="number"==typeof _?_:{top:0,right:0,bottom:0,left:0,..._},V=Array.isArray(C)?C:[C],K=V.length>0,z={padding:j,boundary:V.filter(Hr),altBoundary:K},{refs:U,floatingStyles:$,placement:q,isPositioned:X,middlewareData:Y}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:a,elements:{reference:l,floating:c}={},transform:s=!0,whileElementsMounted:u,open:d}=e,[f,p]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,v]=r.useState(i);Cr(m,i)||v(i);const[h,g]=r.useState(null),[y,w]=r.useState(null),b=r.useCallback((e=>{e!=_.current&&(_.current=e,g(e))}),[g]),E=r.useCallback((e=>{e!==S.current&&(S.current=e,w(e))}),[w]),x=l||h,C=c||y,_=r.useRef(null),S=r.useRef(null),T=r.useRef(f),R=Tr(u),P=Tr(a),O=r.useCallback((()=>{if(!_.current||!S.current)return;const e={placement:t,strategy:n,middleware:m};P.current&&(e.platform=P.current),br(_.current,S.current,e).then((e=>{const t={...e,isPositioned:!0};D.current&&!Cr(T.current,t)&&(T.current=t,o.flushSync((()=>{p(t)})))}))}),[m,t,n,P]);xr((()=>{!1===d&&T.current.isPositioned&&(T.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[d]);const D=r.useRef(!1);xr((()=>(D.current=!0,()=>{D.current=!1})),[]),xr((()=>{if(x&&(_.current=x),C&&(S.current=C),x&&C){if(R.current)return R.current(x,C,O);O()}}),[x,C,O,R]);const k=r.useMemo((()=>({reference:_,floating:S,setReference:b,setFloating:E})),[b,E]),A=r.useMemo((()=>({reference:x,floating:C})),[x,C]),L=r.useMemo((()=>{const e={position:n,left:0,top:0};if(!A.floating)return e;const t=Sr(A.floating,f.x),r=Sr(A.floating,f.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",..._r(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,A.floating,f.x,f.y]);return r.useMemo((()=>({...f,update:O,refs:k,elements:A,floatingStyles:L})),[f,O,k,A,L])}({strategy:"fixed",placement:W,whileElementsMounted:wr,elements:{reference:k.anchor},middleware:[Mn({mainAxis:g+H,alignmentAxis:b}),R&&Nn({mainAxis:!0,crossAxis:!1,limiter:"partial"===S?Fn():void 0,...z}),R&&Dn({...z}),Bn({...z,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),I&&Er({element:I,padding:E}),Wr({arrowWidth:B,arrowHeight:H}),T&&Ln({strategy:"referenceHidden"})]}),[G,Z]=jr(q),J=x(P);y((()=>{X&&(null==J||J())}),[X,J]);const Q=null===(l=Y.arrow)||void 0===l?void 0:l.x,ee=null===(c=Y.arrow)||void 0===c?void 0:c.y,te=0!==(null===(s=Y.arrow)||void 0===s?void 0:s.centerOffset),[ne,re]=e.useState();return y((()=>{A&&re(window.getComputedStyle(A).zIndex)}),[A]),e.createElement("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:X?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ne,"--radix-popper-transform-origin":[null===(u=Y.transformOrigin)||void 0===u?void 0:u.x,null===(d=Y.transformOrigin)||void 0===d?void 0:d.y].join(" ")},dir:t.dir},e.createElement(Ir,{scope:m,placedSide:G,onArrowChange:N,arrowX:Q,arrowY:ee,shouldHideArrow:te},e.createElement(O.div,f({"data-side":G,"data-align":Z},D,{ref:M,style:{...D.style,animation:X?void 0:"none",opacity:null!==(p=Y.hide)&&void 0!==p&&p.referenceHidden?0:void 0}}))))})),Br={top:"bottom",right:"left",bottom:"top",left:"right"};function Hr(e){return null!==e}const Wr=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:l,rects:c,middlewareData:s}=t,u=0!==(null===(n=s.arrow)||void 0===n?void 0:n.centerOffset),d=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[p,m]=jr(l),v={start:"0%",center:"50%",end:"100%"}[m],h=(null!==(r=null===(o=s.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,g=(null!==(i=null===(a=s.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let y="",w="";return"bottom"===p?(y=u?v:`${h}px`,w=-f+"px"):"top"===p?(y=u?v:`${h}px`,w=`${c.floating.height+f}px`):"right"===p?(y=-f+"px",w=u?v:`${g}px`):"left"===p&&(y=`${c.floating.width+f}px`,w=u?v:`${g}px`),{data:{x:y,y:w}}}});function jr(e){const[t,n="center"]=e.split("-");return[t,n]}const Vr=t=>{const{__scopePopper:n,children:r}=t,[o,i]=e.useState(null);return e.createElement(kr,{scope:n,anchor:o,onAnchorChange:i},r)},Kr=Lr,zr=Fr,Ur=e.forwardRef((function(t,n){const{__scopePopper:r,...o}=t,i=Nr("PopperArrow",r),a=Br[i.placedSide];return e.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},e.createElement(Rr,f({},o,{ref:n,style:{...o.style,display:"block"}})))})),$r=e.forwardRef(((t,n)=>e.createElement(O.span,f({},t,{ref:n,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",...t.style}})))),qr=$r,[Xr,Yr]=h("Tooltip",[Dr]),Gr=Dr(),Zr=700,Jr="tooltip.open",[Qr,eo]=Xr("TooltipProvider"),to="Tooltip",[no,ro]=Xr(to),oo="TooltipTrigger",io=e.forwardRef(((t,n)=>{const{__scopeTooltip:r,...o}=t,i=ro(oo,r),a=eo(oo,r),l=Gr(r),c=v(n,e.useRef(null),i.onTriggerChange),s=e.useRef(!1),u=e.useRef(!1),d=e.useCallback((()=>s.current=!1),[]);return e.useEffect((()=>()=>document.removeEventListener("pointerup",d)),[d]),e.createElement(Kr,f({asChild:!0},l),e.createElement(O.button,f({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},o,{ref:c,onPointerMove:p(t.onPointerMove,(e=>{"touch"!==e.pointerType&&(u.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),u.current=!0))})),onPointerLeave:p(t.onPointerLeave,(()=>{i.onTriggerLeave(),u.current=!1})),onPointerDown:p(t.onPointerDown,(()=>{s.current=!0,document.addEventListener("pointerup",d,{once:!0})})),onFocus:p(t.onFocus,(()=>{s.current||i.onOpen()})),onBlur:p(t.onBlur,i.onClose),onClick:p(t.onClick,i.onClose)})))})),[ao,lo]=Xr("TooltipPortal",{forceMount:void 0}),co="TooltipContent",so=e.forwardRef(((t,n)=>{const r=lo(co,t.__scopeTooltip),{forceMount:o=r.forceMount,side:i="top",...a}=t,l=ro(co,t.__scopeTooltip);return e.createElement(Y,{present:o||l.open},l.disableHoverableContent?e.createElement(mo,f({side:i},a,{ref:n})):e.createElement(uo,f({side:i},a,{ref:n})))})),uo=e.forwardRef(((t,n)=>{const r=ro(co,t.__scopeTooltip),o=eo(co,t.__scopeTooltip),i=e.useRef(null),a=v(n,i),[l,c]=e.useState(null),{trigger:s,onClose:u}=r,d=i.current,{onPointerInTransitChange:p}=o,m=e.useCallback((()=>{c(null),p(!1)}),[p]),h=e.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),i=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...o,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);c(i),p(!0)}),[p]);return e.useEffect((()=>()=>m()),[m]),e.useEffect((()=>{if(s&&d){const e=e=>h(e,d),t=e=>h(e,s);return s.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{s.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}}),[s,d,h,m]),e.useEffect((()=>{if(l){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==s?void 0:s.contains(t))||(null==d?void 0:d.contains(t)),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,l=t[e].y,c=t[i].x,s=t[i].y;l>r!=s>r&&n<(c-a)*(r-l)/(s-l)+a&&(o=!o)}return o}(n,l);r?m():o&&(m(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[s,d,l,u,m]),e.createElement(mo,f({},t,{ref:a}))})),[fo,po]=Xr(to,{isInside:!1}),mo=e.forwardRef(((t,n)=>{const{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:l,...c}=t,s=ro(co,r),u=Gr(r),{onClose:d}=s;return e.useEffect((()=>(document.addEventListener(Jr,d),()=>document.removeEventListener(Jr,d))),[d]),e.useEffect((()=>{if(s.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(s.trigger)&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[s.trigger,d]),e.createElement(I,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:d},e.createElement(zr,f({"data-state":s.stateAttribute},u,c,{ref:n,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),e.createElement(T,null,o),e.createElement(fo,{scope:r,isInside:!0},e.createElement(qr,{id:s.contentId,role:"tooltip"},i||o))))}));const vo=t=>{const{__scopeTooltip:n,delayDuration:r=Zr,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:a}=t,[l,c]=e.useState(!0),s=e.useRef(!1),u=e.useRef(0);return e.useEffect((()=>{const e=u.current;return()=>window.clearTimeout(e)}),[]),e.createElement(Qr,{scope:n,isOpenDelayed:l,delayDuration:r,onOpen:e.useCallback((()=>{window.clearTimeout(u.current),c(!1)}),[]),onClose:e.useCallback((()=>{window.clearTimeout(u.current),u.current=window.setTimeout((()=>c(!0)),o)}),[o]),isPointerInTransitRef:s,onPointerInTransitChange:e.useCallback((e=>{s.current=e}),[]),disableHoverableContent:i},a)},ho=t=>{const{__scopeTooltip:n,children:r,open:o,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:l,delayDuration:c}=t,s=eo(to,t.__scopeTooltip),u=Gr(n),[d,f]=e.useState(null),p=E(),m=e.useRef(0),v=null!=l?l:s.disableHoverableContent,h=null!=c?c:s.delayDuration,g=e.useRef(!1),[y=!1,w]=C({prop:o,defaultProp:i,onChange:e=>{e?(s.onOpen(),document.dispatchEvent(new CustomEvent(Jr))):s.onClose(),null==a||a(e)}}),b=e.useMemo((()=>y?g.current?"delayed-open":"instant-open":"closed"),[y]),x=e.useCallback((()=>{window.clearTimeout(m.current),g.current=!1,w(!0)}),[w]),_=e.useCallback((()=>{window.clearTimeout(m.current),w(!1)}),[w]),S=e.useCallback((()=>{window.clearTimeout(m.current),m.current=window.setTimeout((()=>{g.current=!0,w(!0)}),h)}),[h,w]);return e.useEffect((()=>()=>window.clearTimeout(m.current)),[]),e.createElement(Vr,u,e.createElement(no,{scope:n,contentId:p,open:y,stateAttribute:b,trigger:d,onTriggerChange:f,onTriggerEnter:e.useCallback((()=>{s.isOpenDelayed?S():x()}),[s.isOpenDelayed,S,x]),onTriggerLeave:e.useCallback((()=>{v?_():window.clearTimeout(m.current)}),[_,v]),onOpen:x,onClose:_,disableHoverableContent:v},r))},go=io,yo=so,wo=e.forwardRef(((t,n)=>{const{__scopeTooltip:r,...o}=t,i=Gr(r);return po("TooltipArrow",r).isInside?null:e.createElement(Ur,f({},i,o,{ref:n}))}));var bo="Tooltip-modules_content__--tK0",Eo="Tooltip-modules_arrow__4vjj8";function xo(e,[t,n]){return Math.min(n,Math.max(t,e))}const Co=[" ","Enter","ArrowUp","ArrowDown"],_o=[" ","Enter"],So="Select",[To,Ro,Po]=vt(So),[Oo,Do]=h(So,[Po,Dr]),ko=Dr(),[Ao,Lo]=Oo(So),[Mo,Io]=Oo(So),No=e.forwardRef(((t,n)=>{const{__scopeSelect:r,disabled:o=!1,...i}=t,a=ko(r),l=Lo("SelectTrigger",r),c=l.disabled||o,s=v(n,l.onTriggerChange),u=Ro(r),[d,m,h]=si((e=>{const t=u().filter((e=>!e.disabled)),n=t.find((e=>e.value===l.value)),r=ui(t,e,n);void 0!==r&&l.onValueChange(r.value)})),g=()=>{c||(l.onOpenChange(!0),h())};return e.createElement(Kr,f({asChild:!0},a),e.createElement(O.button,f({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:c,"data-disabled":c?"":void 0,"data-placeholder":void 0===l.value?"":void 0},i,{ref:s,onClick:p(i.onClick,(e=>{e.currentTarget.focus()})),onPointerDown:p(i.onPointerDown,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(g(),l.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())})),onKeyDown:p(i.onKeyDown,(e=>{const t=""!==d.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),t&&" "===e.key||Co.includes(e.key)&&(g(),e.preventDefault())}))})))})),Fo=e.forwardRef(((t,n)=>{const{__scopeSelect:r,className:o,style:i,children:a,placeholder:l,...c}=t,s=Lo("SelectValue",r),{onValueNodeHasChildrenChange:u}=s,d=void 0!==a,p=v(n,s.onValueNodeChange);return y((()=>{u(d)}),[u,d]),e.createElement(O.span,f({},c,{ref:p,style:{pointerEvents:"none"}}),void 0===s.value&&void 0!==l?l:a)})),Bo=e.forwardRef(((t,n)=>{const{__scopeSelect:r,children:o,...i}=t;return e.createElement(O.span,f({"aria-hidden":!0},i,{ref:n}),o||"▼")})),Ho="SelectContent",Wo=e.forwardRef(((n,r)=>{const o=Lo(Ho,n.__scopeSelect),[i,a]=e.useState();if(y((()=>{a(new DocumentFragment)}),[]),!o.open){const r=i;return r?t.createPortal(e.createElement(Vo,{scope:n.__scopeSelect},e.createElement(To.Slot,{scope:n.__scopeSelect},e.createElement("div",null,n.children))),r):null}return e.createElement(zo,f({},n,{ref:r}))})),jo=10,[Vo,Ko]=Oo(Ho),zo=e.forwardRef(((t,n)=>{const{__scopeSelect:r,position:o="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:l,side:c,sideOffset:s,align:u,alignOffset:d,arrowPadding:m,collisionBoundary:h,collisionPadding:g,sticky:y,hideWhenDetached:w,avoidCollisions:b,...E}=t,x=Lo(Ho,r),[C,S]=e.useState(null),[T,R]=e.useState(null),P=v(n,(e=>S(e))),[O,D]=e.useState(null),[k,A]=e.useState(null),L=Ro(r),[M,N]=e.useState(!1),F=e.useRef(!1);e.useEffect((()=>{if(C)return We(C)}),[C]),J();const B=e.useCallback((e=>{const[t,...n]=L().map((e=>e.ref.current)),[r]=n.slice(-1),o=document.activeElement;for(const n of e){if(n===o)return;if(null==n||n.scrollIntoView({block:"nearest"}),n===t&&T&&(T.scrollTop=0),n===r&&T&&(T.scrollTop=T.scrollHeight),null==n||n.focus(),document.activeElement!==o)return}}),[L,T]),H=e.useCallback((()=>B([O,C])),[B,O,C]);e.useEffect((()=>{M&&H()}),[M,H]);const{onOpenChange:W,triggerPointerDownPosRef:V}=x;e.useEffect((()=>{if(C){let e={x:0,y:0};const t=t=>{var n,r,o,i;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(r=V.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(i=V.current)||void 0===i?void 0:i.y)&&void 0!==o?o:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():C.contains(n.target)||W(!1),document.removeEventListener("pointermove",t),V.current=null};return null!==V.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[C,W,V]),e.useEffect((()=>{const e=()=>W(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[W]);const[K,z]=si((e=>{const t=L().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=ui(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),U=e.useCallback(((e,t,n)=>{const r=!F.current&&!n;(void 0!==x.value&&x.value===t||r)&&(D(e),r&&(F.current=!0))}),[x.value]),$=e.useCallback((()=>null==C?void 0:C.focus()),[C]),q=e.useCallback(((e,t,n)=>{const r=!F.current&&!n;(void 0!==x.value&&x.value===t||r)&&A(e)}),[x.value]),X="popper"===o?$o:Uo,Y=X===$o?{side:c,sideOffset:s,align:u,alignOffset:d,arrowPadding:m,collisionBoundary:h,collisionPadding:g,sticky:y,hideWhenDetached:w,avoidCollisions:b}:{};return e.createElement(Vo,{scope:r,content:C,viewport:T,onViewportChange:R,itemRefCallback:U,selectedItem:O,onItemLeave:$,itemTextRefCallback:q,focusSelectedItem:H,selectedItemText:k,position:o,isPositioned:M,searchRef:K},e.createElement(Le,{as:_,allowPinchZoom:!0},e.createElement(j,{asChild:!0,trapped:x.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:p(i,(e=>{var t;null===(t=x.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}))},e.createElement(I,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>x.onOpenChange(!1)},e.createElement(X,f({role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:e=>e.preventDefault()},E,Y,{onPlaced:()=>N(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...E.style},onKeyDown:p(E.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||z(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=L().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout((()=>B(t))),e.preventDefault()}}))}))))))})),Uo=e.forwardRef(((t,n)=>{const{__scopeSelect:r,onPlaced:o,...i}=t,a=Lo(Ho,r),l=Ko(Ho,r),[c,s]=e.useState(null),[u,d]=e.useState(null),p=v(n,(e=>d(e))),m=Ro(r),h=e.useRef(!1),g=e.useRef(!0),{viewport:w,selectedItem:b,selectedItemText:E,focusSelectedItem:x}=l,C=e.useCallback((()=>{if(a.trigger&&a.valueNode&&c&&u&&w&&b&&E){const e=a.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),r=E.getBoundingClientRect();if("rtl"!==a.dir){const o=r.left-t.left,i=n.left-o,a=e.left-i,l=e.width+a,s=Math.max(l,t.width),u=window.innerWidth-jo,d=xo(i,[jo,u-s]);c.style.minWidth=l+"px",c.style.left=d+"px"}else{const o=t.right-r.right,i=window.innerWidth-n.right-o,a=window.innerWidth-e.right-i,l=e.width+a,s=Math.max(l,t.width),u=window.innerWidth-jo,d=xo(i,[jo,u-s]);c.style.minWidth=l+"px",c.style.right=d+"px"}const i=m(),l=window.innerHeight-2*jo,s=w.scrollHeight,d=window.getComputedStyle(u),f=parseInt(d.borderTopWidth,10),p=parseInt(d.paddingTop,10),v=parseInt(d.borderBottomWidth,10),g=f+p+s+parseInt(d.paddingBottom,10)+v,y=Math.min(5*b.offsetHeight,g),x=window.getComputedStyle(w),C=parseInt(x.paddingTop,10),_=parseInt(x.paddingBottom,10),S=e.top+e.height/2-jo,T=l-S,R=b.offsetHeight/2,P=f+p+(b.offsetTop+R),O=g-P;if(P<=S){const e=b===i[i.length-1].ref.current;c.style.bottom="0px";const t=u.clientHeight-w.offsetTop-w.offsetHeight,n=P+Math.max(T,R+(e?_:0)+t+v);c.style.height=n+"px"}else{const e=b===i[0].ref.current;c.style.top="0px";const t=Math.max(S,f+w.offsetTop+(e?C:0)+R)+O;c.style.height=t+"px",w.scrollTop=P-S+w.offsetTop}c.style.margin=`${jo}px 0`,c.style.minHeight=y+"px",c.style.maxHeight=l+"px",null==o||o(),requestAnimationFrame((()=>h.current=!0))}}),[m,a.trigger,a.valueNode,c,u,w,b,E,a.dir,o]);y((()=>C()),[C]);const[_,S]=e.useState();y((()=>{u&&S(window.getComputedStyle(u).zIndex)}),[u]);const T=e.useCallback((e=>{e&&!0===g.current&&(C(),null==x||x(),g.current=!1)}),[C,x]);return e.createElement(qo,{scope:r,contentWrapper:c,shouldExpandOnScrollRef:h,onScrollButtonChange:T},e.createElement("div",{ref:s,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_}},e.createElement(O.div,f({},i,{ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}}))))})),$o=e.forwardRef(((t,n)=>{const{__scopeSelect:r,align:o="start",collisionPadding:i=jo,...a}=t,l=ko(r);return e.createElement(zr,f({},l,a,{ref:n,align:o,collisionPadding:i,style:{boxSizing:"border-box",...a.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)"}}))})),[qo,Xo]=Oo(Ho,{}),Yo="SelectViewport",Go=e.forwardRef(((t,n)=>{const{__scopeSelect:r,...o}=t,i=Ko(Yo,r),a=Xo(Yo,r),l=v(n,i.onViewportChange),c=e.useRef(0);return e.createElement(e.Fragment,null,e.createElement("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}"}}),e.createElement(To.Slot,{scope:r},e.createElement(O.div,f({"data-radix-select-viewport":"",role:"presentation"},o,{ref:l,style:{position:"relative",flex:1,overflow:"auto",...o.style},onScroll:p(o.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=a;if(null!=r&&r.current&&n){const e=Math.abs(c.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*jo,o=parseFloat(n.style.minHeight),i=parseFloat(n.style.height),a=Math.max(o,i);if(a<r){const o=a+e,i=Math.min(r,o),l=o-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=l>0?l:0,n.style.justifyContent="flex-end")}}}c.current=t.scrollTop}))}))))}));Oo("SelectGroup");const Zo="SelectItem",[Jo,Qo]=Oo(Zo),ei=e.forwardRef(((t,n)=>{const{__scopeSelect:r,value:o,disabled:i=!1,textValue:a,...l}=t,c=Lo(Zo,r),s=Ko(Zo,r),u=c.value===o,[d,m]=e.useState(null!=a?a:""),[h,g]=e.useState(!1),y=v(n,(e=>{var t;return null===(t=s.itemRefCallback)||void 0===t?void 0:t.call(s,e,o,i)})),w=E(),b=()=>{i||(c.onValueChange(o),c.onOpenChange(!1))};return e.createElement(Jo,{scope:r,value:o,disabled:i,textId:w,isSelected:u,onItemTextChange:e.useCallback((e=>{m((t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()}))}),[])},e.createElement(To.ItemSlot,{scope:r,value:o,disabled:i,textValue:d},e.createElement(O.div,f({role:"option","aria-labelledby":w,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1},l,{ref:y,onFocus:p(l.onFocus,(()=>g(!0))),onBlur:p(l.onBlur,(()=>g(!1))),onPointerUp:p(l.onPointerUp,b),onPointerMove:p(l.onPointerMove,(e=>{var t;i?null===(t=s.onItemLeave)||void 0===t||t.call(s):e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:p(l.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null===(t=s.onItemLeave)||void 0===t||t.call(s))})),onKeyDown:p(l.onKeyDown,(e=>{var t;""!==(null===(t=s.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(_o.includes(e.key)&&b()," "===e.key&&e.preventDefault())}))}))))})),ti="SelectItemText",ni=e.forwardRef(((n,r)=>{const{__scopeSelect:o,className:i,style:a,...l}=n,c=Lo(ti,o),s=Ko(ti,o),u=Qo(ti,o),d=Io(ti,o),[p,m]=e.useState(null),h=v(r,(e=>m(e)),u.onItemTextChange,(e=>{var t;return null===(t=s.itemTextRefCallback)||void 0===t?void 0:t.call(s,e,u.value,u.disabled)})),g=null==p?void 0:p.textContent,w=e.useMemo((()=>e.createElement("option",{key:u.value,value:u.value,disabled:u.disabled},g)),[u.disabled,u.value,g]),{onNativeOptionAdd:b,onNativeOptionRemove:E}=d;return y((()=>(b(w),()=>E(w))),[b,E,w]),e.createElement(e.Fragment,null,e.createElement(O.span,f({id:u.textId},l,{ref:h})),u.isSelected&&c.valueNode&&!c.valueNodeHasChildren?t.createPortal(l.children,c.valueNode):null)})),ri="SelectScrollUpButton",oi=e.forwardRef(((t,n)=>{const r=Ko(ri,t.__scopeSelect),o=Xo(ri,t.__scopeSelect),[i,a]=e.useState(!1),l=v(n,o.onScrollButtonChange);return y((()=>{if(r.viewport&&r.isPositioned){const e=r.viewport;function t(){const t=e.scrollTop>0;a(t)}return t(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}}),[r.viewport,r.isPositioned]),i?e.createElement(li,f({},t,{ref:l,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null})),ii="SelectScrollDownButton",ai=e.forwardRef(((t,n)=>{const r=Ko(ii,t.__scopeSelect),o=Xo(ii,t.__scopeSelect),[i,a]=e.useState(!1),l=v(n,o.onScrollButtonChange);return y((()=>{if(r.viewport&&r.isPositioned){const e=r.viewport;function t(){const t=e.scrollHeight-e.clientHeight,n=Math.ceil(e.scrollTop)<t;a(n)}return t(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}}),[r.viewport,r.isPositioned]),i?e.createElement(li,f({},t,{ref:l,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null})),li=e.forwardRef(((t,n)=>{const{__scopeSelect:r,onAutoScroll:o,...i}=t,a=Ko("SelectScrollButton",r),l=e.useRef(null),c=Ro(r),s=e.useCallback((()=>{null!==l.current&&(window.clearInterval(l.current),l.current=null)}),[]);return e.useEffect((()=>()=>s()),[s]),y((()=>{var e;const t=c().find((e=>e.ref.current===document.activeElement));null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})}),[c]),e.createElement(O.div,f({"aria-hidden":!0},i,{ref:n,style:{flexShrink:0,...i.style},onPointerDown:p(i.onPointerDown,(()=>{null===l.current&&(l.current=window.setInterval(o,50))})),onPointerMove:p(i.onPointerMove,(()=>{var e;null===(e=a.onItemLeave)||void 0===e||e.call(a),null===l.current&&(l.current=window.setInterval(o,50))})),onPointerLeave:p(i.onPointerLeave,(()=>{s()}))}))})),ci=e.forwardRef(((t,n)=>{const{value:r,...o}=t,i=e.useRef(null),a=v(n,i),l=Zt(r);return e.useEffect((()=>{const e=i.current,t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,"value").set;if(l!==r&&n){const t=new Event("change",{bubbles:!0});n.call(e,r),e.dispatchEvent(t)}}),[l,r]),e.createElement($r,{asChild:!0},e.createElement("select",f({},o,{ref:a,defaultValue:r})))}));function si(t){const n=x(t),r=e.useRef(""),o=e.useRef(0),i=e.useCallback((e=>{const t=r.current+e;n(t),function e(t){r.current=t,window.clearTimeout(o.current),""!==t&&(o.current=window.setTimeout((()=>e("")),1e3))}(t)}),[n]),a=e.useCallback((()=>{r.current="",window.clearTimeout(o.current)}),[]);return e.useEffect((()=>()=>window.clearTimeout(o.current)),[]),[r,i,a]}function ui(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=n?e.indexOf(n):-1;let i=(a=e,l=Math.max(o,0),a.map(((e,t)=>a[(l+t)%a.length])));var a,l;1===r.length&&(i=i.filter((e=>e!==n)));const c=i.find((e=>e.textValue.toLowerCase().startsWith(r.toLowerCase())));return c!==n?c:void 0}ci.displayName="BubbleSelect";const di=t=>{const{__scopeSelect:n,children:r,open:o,defaultOpen:i,onOpenChange:a,value:l,defaultValue:c,onValueChange:s,dir:u,name:d,autoComplete:f,disabled:p,required:m}=t,v=ko(n),[h,g]=e.useState(null),[y,w]=e.useState(null),[b,x]=e.useState(!1),_=gt(u),[S=!1,T]=C({prop:o,defaultProp:i,onChange:a}),[R,P]=C({prop:l,defaultProp:c,onChange:s}),O=e.useRef(null),D=!h||Boolean(h.closest("form")),[k,A]=e.useState(new Set),L=Array.from(k).map((e=>e.props.value)).join(";");return e.createElement(Vr,v,e.createElement(Ao,{required:m,scope:n,trigger:h,onTriggerChange:g,valueNode:y,onValueNodeChange:w,valueNodeHasChildren:b,onValueNodeHasChildrenChange:x,contentId:E(),value:R,onValueChange:P,open:S,onOpenChange:T,dir:_,triggerPointerDownPosRef:O,disabled:p},e.createElement(To.Provider,{scope:n},e.createElement(Mo,{scope:t.__scopeSelect,onNativeOptionAdd:e.useCallback((e=>{A((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:e.useCallback((e=>{A((t=>{const n=new Set(t);return n.delete(e),n}))}),[])},r)),D?e.createElement(ci,{key:L,"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:f,value:R,onChange:e=>P(e.target.value),disabled:p},void 0===R?e.createElement("option",{value:""}):null,Array.from(k)):null))},fi=No,pi=Fo,mi=Bo,vi=t=>e.createElement(X,f({asChild:!0},t)),hi=Wo,gi=Go,yi=ei,wi=ni,bi=oi,Ei=ai;var xi,Ci,_i={trigger:"Select-modules_trigger__dS9Dx",icon:"Select-modules_icon__sgRRc",content:"Select-modules_content__YuAqS",item:"Select-modules_item__cTAIm"};function Si(){return Si=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Si.apply(this,arguments)}var Ti=function(e){return r.createElement("svg",Si({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),r.createElement("mask",{id:"keyboard_arrow_down_svg__a",width:24,height:24,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},xi||(xi=r.createElement("path",{fill:"#D9D9D9",d:"M0 0h24v24H0z"}))),Ci||(Ci=r.createElement("g",{mask:"url(#keyboard_arrow_down_svg__a)"},r.createElement("path",{fill:"#2C3336",d:"M12 14.677a.93.93 0 0 1-.34-.066.84.84 0 0 1-.293-.19L6.873 9.927a.717.717 0 0 1-.217-.527c0-.206.072-.382.217-.527a.717.717 0 0 1 .527-.217c.206 0 .382.072.527.217L12 12.946l4.073-4.073a.717.717 0 0 1 .527-.217c.206 0 .382.072.527.217.145.145.217.32.217.527a.717.717 0 0 1-.217.527l-4.494 4.494a.83.83 0 0 1-.633.256Z"}))))},Ri=e.forwardRef((function(t,n){var r=t.children,o=t.sideOffset,l=void 0===o?4:o,c=t.position,s=void 0===c?"popper":c,u=t.disabled,d=void 0!==u&&u,f=t.value,p=void 0===f?"":f,m=t.id,v=a(t,["children","sideOffset","position","disabled","value","id"]);return e.createElement(di,i({value:p,disabled:d},v),e.createElement(fi,{id:m,ref:n,className:_i.trigger},e.createElement(pi,{className:_i.value}),e.createElement(mi,{className:_i.icon},e.createElement(Ti,null))),e.createElement(vi,null,e.createElement(hi,{position:s,className:_i.content,sideOffset:l},e.createElement(gi,null,e.createElement(bi,null,"ChevronUpIcon"),e.createElement(gi,null,r),e.createElement(Ei,null,"ChevronDownIcon")))))})),Pi=e.forwardRef((function(t,n){var r=t.children,o=t.disabled,l=void 0!==o&&o,c=a(t,["children","disabled"]);return e.createElement(yi,i({},c,{ref:n,className:_i.item,disabled:l}),e.createElement(wi,null,r))}));const Oi=e.forwardRef(((t,n)=>e.createElement(O.label,f({},t,{ref:n,onMouseDown:e=>{var n;null===(n=t.onMouseDown)||void 0===n||n.call(t,e),!e.defaultPrevented&&e.detail>1&&e.preventDefault()}}))));var Di="Label-modules_label__rXO6J";exports.Button=function(t){var n,r=t.disabled,o=void 0!==r&&r,l=t.children,c=t.onClick,s=t.size,f=void 0===s?"medium":s,p=t.variant,m=void 0===p?"primary":p,v=t.type,h=void 0===v?"button":v,g=t.prefix,y=void 0===g?"":g,w=t.suffix,b=void 0===w?"":w,E=t.className,x=void 0===E?"":E,C=t.fullWidth,_=void 0!==C&&C,S=a(t,["disabled","children","onClick","size","variant","type","prefix","suffix","className","fullWidth"]);return e.createElement("button",i({type:h,disabled:o,className:u(d.button,(n={},n[x]=x,n[d[f]]=f,n[d[m]]=m,n[d.fullWidth]=_,n)),onClick:c},S),y&&e.createElement("span",{className:d.prefix},y),l,b&&e.createElement("span",{className:d.suffix},b))},exports.Label=function(t){var n=t.htmlFor,r=t.children;return e.createElement(Oi,{htmlFor:n,className:Di},r)},exports.Modal=function(t){var n=t.children,r=t.open,o=t.onOpenChange,i=t.title;return e.createElement(ot,{open:r,onOpenChange:o},e.createElement(it,null,e.createElement(at,{className:ft.overlay},e.createElement(lt,{className:ft.content},e.createElement("div",{className:ft.header},i&&e.createElement(ct,{className:ft.title},i),e.createElement(st,{className:ft.close},e.createElement(mt,null))),e.createElement("div",{className:ft.body},n)))))},exports.Select=Ri,exports.SelectItem=Pi,exports.Switch=function(t){var n,r=t.className,o=void 0===r?"":r,l=t.id,c=void 0===l?"":l,s=t.disabled,d=void 0!==s&&s,f=t.required,p=void 0!==f&&f,m=t.name,v=a(t,["className","id","disabled","required","name"]);return e.createElement(cn,i({className:u(un,(n={},n[o]=o,n)),disabled:d,required:p,name:m,id:c||m},v),e.createElement(sn,{className:dn}))},exports.Tab=function(t){var n,r=t.children,o=t.className,l=void 0===o?"":o,c=a(t,["children","className"]);return e.createElement(Ut,i({},c,{className:u(Yt,(n={},n[l]=l,n))}),r)},exports.TabsContent=function(t){var n,r=t.children,o=t.value,i=t.className,a=void 0===i?"":i;return e.createElement($t,{value:o,className:u(Gt,(n={},n[a]=a,n))},r)},exports.TabsList=function(t){var n,r=t.children,o=t.className,i=void 0===o?"":o;return e.createElement(zt,{className:u(Xt,(n={},n[i]=i,n))},r)},exports.TabsRoot=function(t){var n,r=t.children,o=t.className,l=void 0===o?"":o,c=a(t,["children","className"]);return e.createElement(Kt,i({},c,{className:u(qt,(n={},n[l]=l,n))}),r)},exports.Tooltip=function(t){var n,r=t.children,o=t.content,l=t.open,c=t.defaultOpen,s=t.onOpenChange,d=t.side,f=void 0===d?"top":d,p=t.align,m=void 0===p?"center":p,v=t.className,h=void 0===v?"":v,g=t.delayDuration,y=void 0===g?200:g,w=t.sideOffset,b=void 0===w?4:w,E=a(t,["children","content","open","defaultOpen","onOpenChange","side","align","className","delayDuration","sideOffset"]);return e.createElement(vo,null,e.createElement(ho,{delayDuration:y,open:l,defaultOpen:c,onOpenChange:s},e.createElement(go,{asChild:!0},r),e.createElement(yo,i({sideOffset:b,side:f,align:m},E,{className:u(bo,(n={},n[h]=h,n))}),o,e.createElement(wo,{className:Eo,width:11,height:5}))))};
7
7
  //# sourceMappingURL=index.js.map