@gyramais/gyra-design 0.1.21 → 0.1.23
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/components/Filter/Filter.d.ts +5 -1
- package/dist/components/Filter/MultipleFilter.d.ts +5 -1
- package/dist/components/Filter/index.js +6 -6
- package/dist/components/Filter/index.js.map +1 -1
- package/dist/components/List/index.js +1 -1
- package/dist/components/List/index.js.map +1 -1
- package/dist/components/Menubar/Menubar.d.ts +2 -2
- package/dist/components/Menubar/index.js +1 -1
- package/dist/components/Menubar/index.js.map +1 -1
- package/dist/components/Table/Table.d.ts +3 -1
- package/dist/components/Table/index.js +1 -1
- package/dist/components/Table/index.js.map +1 -1
- package/dist/index.css +69 -68
- package/dist/index.js.map +1 -1
- package/dist/theme.d.ts +2 -0
- package/package.json +1 -1
|
@@ -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
|
-
*/x=E,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=r(e,n(o)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var i in n)e.call(n,i)&&n[i]&&(o=r(o,i));return o}function r(e,t){return t?e?e+" "+t:e+t:e}x.exports?(t.default=t,x.exports=t):window.classNames=t}();var C=w(E.exports),k=function(){return k=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},k.apply(this,arguments)};function M(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function P(){return P=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},P.apply(this,arguments)}function T(e,t=[]){let a=[];const l=()=>{const t=a.map((e=>n(e)));return function(n){const o=(null==n?void 0:n[e])||t;return r((()=>({[`__scope${e}`]:{...n,[e]:o}})),[n,o])}};return l.scopeName=e,[function(t,l){const s=n(l),c=a.length;function u(t){const{scope:n,children:i,...a}=t,l=(null==n?void 0:n[e][c])||s,u=r((()=>a),Object.values(a));return o(l.Provider,{value:u},i)}return a=[...a,l],u.displayName=t+"Provider",[u,function(n,r){const o=(null==r?void 0:r[e][c])||s,a=i(o);if(a)return a;if(void 0!==l)return l;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},N(l,...t)]}function N(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return r((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return n.scopeName=t.scopeName,n}function O(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function S(...e){return a(O(...e),e)}"function"==typeof SuppressedError&&SuppressedError;const A=l(((e,t)=>{const{children:n,...r}=e,i=s.toArray(n),a=i.find(D);if(a){const e=a.props.children,n=i.map((t=>t===a?s.count(e)>1?s.only(null):c(e)?e.props.children:null:t));return o(_,P({},r,{ref:t}),c(e)?u(e,void 0,n):null)}return o(_,P({},r,{ref:t}),n)}));A.displayName="Slot";const _=l(((e,t)=>{const{children:n,...r}=e;return c(n)?u(n,{...L(r,n.props),ref:t?O(t,n.ref):n.ref}):s.count(n)>1?s.only(null):null}));_.displayName="SlotClone";const R=({children:e})=>o(d,null,e);function D(e){return c(e)&&e.type===R}function L(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}}function I(e){const n=e+"CollectionProvider",[r,o]=T(n),[i,a]=r(n,{collectionRef:{current:null},itemMap:new Map}),l=e+"CollectionSlot",s=e+"CollectionItemSlot",c="data-radix-collection-item";return[{Provider:e=>{const{scope:n,children:r}=e,o=t.useRef(null),a=t.useRef(new Map).current;return t.createElement(i,{scope:n,itemMap:a,collectionRef:o},r)},Slot:t.forwardRef(((e,n)=>{const{scope:r,children:o}=e,i=S(n,a(l,r).collectionRef);return t.createElement(A,{ref:i},o)})),ItemSlot:t.forwardRef(((e,n)=>{const{scope:r,children:o,...i}=e,l=t.useRef(null),u=S(n,l),d=a(s,r);return t.useEffect((()=>(d.itemMap.set(l,{ref:l,...i}),()=>{d.itemMap.delete(l)}))),t.createElement(A,{[c]:"",ref:u},o)}))},function(n){const r=a(e+"CollectionConsumer",n);return t.useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${c}]`));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 F=n(void 0);function z(e){const t=i(F);return e||t||"ltr"}function W(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}const j=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?f:()=>{},B=e["useId".toString()]||(()=>{});let K=0;function G(t){const[n,r]=e.useState(B());return j((()=>{t||r((e=>null!=e?e:String(K++)))}),[t]),t||(n?`radix-${n}`:"")}const $=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=l(((e,n)=>{const{asChild:r,...i}=e,a=r?A:t;return p((()=>{window[Symbol.for("radix-ui")]=!0}),[]),o(a,P({},i,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function H(e,t){e&&y((()=>e.dispatchEvent(t)))}function U(e){const t=m(e);return p((()=>{t.current=e})),r((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}const V="dismissableLayer.update",X="dismissableLayer.pointerDownOutside",Y="dismissableLayer.focusOutside";let q;const Z=n({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),J=l(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:s,onInteractOutside:c,onDismiss:u,...d}=e,f=i(Z),[g,v]=h(null),b=null!==(n=null==g?void 0:g.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,y]=h({}),w=S(t,(e=>v(e))),x=Array.from(f.layers),[E]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),C=x.indexOf(E),k=g?x.indexOf(g):-1,M=f.layersWithOutsidePointerEventsDisabled.size>0,T=k>=C,N=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=U(e),r=m(!1),o=m((()=>{}));return p((()=>{const e=e=>{if(e.target&&!r.current){const i={originalEvent:e};function a(){ee(X,n,i,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...f.branches].some((e=>e.contains(t)));T&&!n&&(null==l||l(e),null==c||c(e),e.defaultPrevented||null==u||u())}),b),O=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=U(e),r=m(!1);return p((()=>{const e=e=>{if(e.target&&!r.current){ee(Y,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...f.branches].some((e=>e.contains(t)))||(null==s||s(e),null==c||c(e),e.defaultPrevented||null==u||u())}),b);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=U(e);p((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}((e=>{k===f.layers.size-1&&(null==a||a(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))}),b),p((()=>{if(g)return r&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(q=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(g)),f.layers.add(g),Q(),()=>{r&&1===f.layersWithOutsidePointerEventsDisabled.size&&(b.body.style.pointerEvents=q)}}),[g,b,r,f]),p((()=>()=>{g&&(f.layers.delete(g),f.layersWithOutsidePointerEventsDisabled.delete(g),Q())}),[g,f]),p((()=>{const e=()=>y({});return document.addEventListener(V,e),()=>document.removeEventListener(V,e)}),[]),o($.div,P({},d,{ref:w,style:{pointerEvents:M?T?"auto":"none":void 0,...e.style},onFocusCapture:W(e.onFocusCapture,O.onFocusCapture),onBlurCapture:W(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:W(e.onPointerDownCapture,N.onPointerDownCapture)}))}));function Q(){const e=new CustomEvent(V);document.dispatchEvent(e)}function ee(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?H(o,i):o.dispatchEvent(i)}let te=0;function ne(){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}const re="focusScope.autoFocusOnMount",oe="focusScope.autoFocusOnUnmount",ie={bubbles:!1,cancelable:!0},ae=l(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:l,...s}=e,[c,u]=h(null),d=U(i),f=U(l),g=m(null),v=S(t,(e=>u(e))),b=m({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p((()=>{if(r){function e(e){if(b.paused||!c)return;const t=e.target;c.contains(t)?g.current=t:ue(g.current,{select:!0})}function t(e){if(b.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||ue(g.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&ue(c)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const o=new MutationObserver(n);return c&&o.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),o.disconnect()}}}),[r,c,b.paused]),p((()=>{if(c){de.add(b);const t=document.activeElement;if(!c.contains(t)){const n=new CustomEvent(re,ie);c.addEventListener(re,d),c.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ue(r,{select:t}),document.activeElement!==n)return}((e=le(c),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&ue(c))}return()=>{c.removeEventListener(re,d),setTimeout((()=>{const e=new CustomEvent(oe,ie);c.addEventListener(oe,f),c.dispatchEvent(e),e.defaultPrevented||ue(null!=t?t:document.body,{select:!0}),c.removeEventListener(oe,f),de.remove(b)}),0)}}var e}),[c,d,f,b]);const y=a((e=>{if(!n&&!r)return;if(b.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=le(e),n=se(t,e),r=se(t.reverse(),e);return[n,r]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&ue(i,{select:!0})):(e.preventDefault(),n&&ue(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,b.paused]);return o($.div,P({tabIndex:-1},s,{ref:v,onKeyDown:y}))}));function le(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 se(e,t){for(const n of e)if(!ce(n,{upTo:t}))return n}function ce(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 ue(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 de=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=fe(e,t),e.unshift(t)},remove(t){var n;e=fe(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function fe(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const pe=["top","right","bottom","left"],me=Math.min,he=Math.max,ge=Math.round,ve=Math.floor,be=e=>({x:e,y:e}),ye={left:"right",right:"left",bottom:"top",top:"bottom"},we={start:"end",end:"start"};function xe(e,t,n){return he(e,me(t,n))}function Ee(e,t){return"function"==typeof e?e(t):e}function Ce(e){return e.split("-")[0]}function ke(e){return e.split("-")[1]}function Me(e){return"x"===e?"y":"x"}function Pe(e){return"y"===e?"height":"width"}function Te(e){return["top","bottom"].includes(Ce(e))?"y":"x"}function Ne(e){return Me(Te(e))}function Oe(e){return e.replace(/start|end/g,(e=>we[e]))}function Se(e){return e.replace(/left|right|bottom|top/g,(e=>ye[e]))}function Ae(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 _e(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Re(e,t,n){let{reference:r,floating:o}=e;const i=Te(t),a=Ne(t),l=Pe(a),s=Ce(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;let p;switch(s){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ke(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}async function De(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Ee(t,e),m=Ae(p),h=l[f?"floating"===d?"reference":"floating":d],g=_e(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),v="floating"===d?{...a.floating,x:r,y:o}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),y=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=_e(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:b,strategy:s}):v);return{top:(g.top-w.top+m.top)/y.y,bottom:(w.bottom-g.bottom+m.bottom)/y.y,left:(g.left-w.left+m.left)/y.x,right:(w.right-g.right+m.right)/y.x}}function Le(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ie(e){return pe.some((t=>e[t]>=0))}const Fe=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:l}=t,s=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=Ce(n),l=ke(n),s="y"===Te(n),c=["left","top"].includes(a)?-1:1,u=i&&s?-1:1,d=Ee(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),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}};function ze(e){return Be(e)?(e.nodeName||"").toLowerCase():"#document"}function We(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function je(e){var t;return null==(t=(Be(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Be(e){return e instanceof Node||e instanceof We(e).Node}function Ke(e){return e instanceof Element||e instanceof We(e).Element}function Ge(e){return e instanceof HTMLElement||e instanceof We(e).HTMLElement}function $e(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof We(e).ShadowRoot)}function He(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=qe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Ue(e){return["table","td","th"].includes(ze(e))}function Ve(e){const t=Xe(),n=qe(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!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 Xe(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ye(e){return["html","body","#document"].includes(ze(e))}function qe(e){return We(e).getComputedStyle(e)}function Ze(e){return Ke(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Je(e){if("html"===ze(e))return e;const t=e.assignedSlot||e.parentNode||$e(e)&&e.host||je(e);return $e(t)?t.host:t}function Qe(e){const t=Je(e);return Ye(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ge(t)&&He(t)?t:Qe(t)}function et(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Qe(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=We(o);return i?t.concat(a,a.visualViewport||[],He(o)?o:[],a.frameElement&&n?et(a.frameElement):[]):t.concat(o,et(o,[],n))}function tt(e){const t=qe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ge(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=ge(n)!==i||ge(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function nt(e){return Ke(e)?e:e.contextElement}function rt(e){const t=nt(e);if(!Ge(t))return be(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=tt(t);let a=(i?ge(n.width):n.width)/r,l=(i?ge(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const ot=be(0);function it(e){const t=We(e);return Xe()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ot}function at(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=nt(e);let a=be(1);t&&(r?Ke(r)&&(a=rt(r)):a=rt(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==We(e))&&t}(i,n,r)?it(i):be(0);let s=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=We(i),t=r&&Ke(r)?We(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=rt(o),t=o.getBoundingClientRect(),r=qe(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=i,c+=a,n=We(o),o=n.frameElement}}return _e({width:u,height:d,x:s,y:c})}const lt=[":popover-open",":modal"];function st(e){return lt.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function ct(e){return at(je(e)).left+Ze(e).scrollLeft}function ut(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=We(e),r=je(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const e=Xe();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}(e,n);else if("document"===t)r=function(e){const t=je(e),n=Ze(e),r=e.ownerDocument.body,o=he(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=he(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+ct(e);const l=-n.scrollTop;return"rtl"===qe(r).direction&&(a+=he(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(je(e));else if(Ke(t))r=function(e,t){const n=at(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ge(e)?rt(e):be(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=it(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return _e(r)}function dt(e,t){const n=Je(e);return!(n===t||!Ke(n)||Ye(n))&&("fixed"===qe(n).position||dt(n,t))}function ft(e,t,n){const r=Ge(t),o=je(t),i="fixed"===n,a=at(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=be(0);if(r||!r&&!i)if(("body"!==ze(t)||He(o))&&(l=Ze(t)),r){const e=at(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=ct(o));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function pt(e,t){return Ge(e)&&"fixed"!==qe(e).position?t?t(e):e.offsetParent:null}function mt(e,t){const n=We(e);if(!Ge(e)||st(e))return n;let r=pt(e,t);for(;r&&Ue(r)&&"static"===qe(r).position;)r=pt(r,t);return r&&("html"===ze(r)||"body"===ze(r)&&"static"===qe(r).position&&!Ve(r))?n:r||function(e){let t=Je(e);for(;Ge(t)&&!Ye(t);){if(Ve(t))return t;t=Je(t)}return null}(e)||n}const ht={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=je(r),l=!!t&&st(t.floating);if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},c=be(1);const u=be(0),d=Ge(r);if((d||!d&&!i)&&(("body"!==ze(r)||He(a))&&(s=Ze(r)),Ge(r))){const e=at(r);c=rt(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x,y:n.y*c.y-s.scrollTop*c.y+u.y}},getDocumentElement:je,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=et(e,[],!1).filter((e=>Ke(e)&&"body"!==ze(e))),o=null;const i="fixed"===qe(e).position;let a=i?Je(e):e;for(;Ke(a)&&!Ye(a);){const t=qe(a),n=Ve(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||He(a)&&!n&&dt(e,a))?r=r.filter((e=>e!==a)):o=t,a=Je(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],l=i.reduce(((e,n)=>{const r=ut(t,n,o);return e.top=he(r.top,e.top),e.right=me(r.right,e.right),e.bottom=me(r.bottom,e.bottom),e.left=he(r.left,e.left),e}),ut(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:mt,getElementRects:async function(e){const t=this.getOffsetParent||mt,n=this.getDimensions;return{reference:ft(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=tt(e);return{width:t,height:n}},getScale:rt,isElement:Ke,isRTL:function(e){return"rtl"===qe(e).direction}};function gt(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=nt(e),u=o||i?[...c?et(c):[],...et(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&l?function(e,t){let n,r=null;const o=je(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(l||t(),!d||!f)return;const p={rootMargin:-ve(u)+"px "+-ve(o.clientWidth-(c+d))+"px "+-ve(o.clientHeight-(u+f))+"px "+-ve(c)+"px",threshold:he(0,me(1,s))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==s){if(!m)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}m=!1}try{r=new IntersectionObserver(h,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(h,p)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,m=null;a&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),c&&!s&&m.observe(c),m.observe(t));let h=s?at(e):null;return s&&function t(){const r=at(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n();h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=m)||e.disconnect(),m=null,s&&cancelAnimationFrame(f)}}const vt=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}}},...s}=Ee(e,t),c={x:n,y:r},u=await De(t,s),d=Te(Ce(o)),f=Me(d);let p=c[f],m=c[d];if(i){const e="y"===f?"bottom":"right";p=xe(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";m=xe(m+u["y"===d?"top":"left"],m,m-u[e])}const h=l.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},bt=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=Ee(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Ce(o),b=Ce(l)===l,y=await(null==s.isRTL?void 0:s.isRTL(c.floating)),w=f||(b||!h?[Se(l)]:function(e){const t=Se(e);return[Oe(e),t,Oe(t)]}(l));f||"none"===m||w.push(...function(e,t,n,r){const o=ke(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[]}}(Ce(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Oe)))),i}(l,h,m,y));const x=[l,...w],E=await De(t,g),C=[];let k=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&C.push(E[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=ke(e),o=Ne(e),i=Pe(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Se(a)),[a,Se(a)]}(o,a,y);C.push(E[e[0]],E[e[1]])}if(k=[...k,{placement:o,overflows:C}],!C.every((e=>e<=0))){var M,P;const e=((null==(M=i.flip)?void 0:M.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(P=k.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:P.placement;if(!n)switch(p){case"bestFit":{var T;const e=null==(T=k.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=l}if(o!==n)return{reset:{placement:n}}}return{}}}},yt=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}=Ee(e,t),s=await De(t,l),c=Ce(n),u=ke(n),d="y"===Te(n),{width:f,height:p}=r.floating;let m,h;"top"===c||"bottom"===c?(m=c,h=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(h=c,m="end"===u?"top":"bottom");const g=p-s[m],v=f-s[h],b=!t.middlewareData.shift;let y=g,w=v;if(d){const e=f-s.left-s.right;w=u||b?me(v,e):e}else{const e=p-s.top-s.bottom;y=u||b?me(g,e):e}if(b&&!u){const e=he(s.left,0),t=he(s.right,0),n=he(s.top,0),r=he(s.bottom,0);d?w=f-2*(0!==e||0!==t?e+t:he(s.left,s.right)):y=p-2*(0!==n||0!==r?n+r:he(s.top,s.bottom))}await a({...t,availableWidth:w,availableHeight:y});const x=await o.getDimensions(i.floating);return f!==x.width||p!==x.height?{reset:{rects:!0}}:{}}}},wt=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ee(e,t);switch(r){case"referenceHidden":{const e=Le(await De(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Ie(e)}}}case"escaped":{const e=Le(await De(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Ie(e)}}}default:return{}}}}},xt=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:c,padding:u=0}=Ee(e,t)||{};if(null==c)return{};const d=Ae(u),f={x:n,y:r},p=Ne(o),m=Pe(p),h=await a.getDimensions(c),g="y"===p,v=g?"top":"left",b=g?"bottom":"right",y=g?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-f[p]-i.floating[m],x=f[p]-i.reference[p],E=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let C=E?E[y]:0;C&&await(null==a.isElement?void 0:a.isElement(E))||(C=l.floating[y]||i.floating[m]);const k=w/2-x/2,M=C/2-h[m]/2-1,P=me(d[v],M),T=me(d[b],M),N=P,O=C-h[m]-T,S=C/2-h[m]/2+k,A=xe(N,S,O),_=!s.arrow&&null!=ke(o)&&S!==A&&i.reference[m]/2-(S<N?P:T)-h[m]/2<0,R=_?S<N?S-N:S-O:0;return{[p]:f[p]+R,data:{[p]:A,centerOffset:S-A-R,..._&&{alignmentOffset:R}},reset:_}}}),Et=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:s=!0,crossAxis:c=!0}=Ee(e,t),u={x:n,y:r},d=Te(o),f=Me(d);let p=u[f],m=u[d];const h=Ee(l,t),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+g.mainAxis,n=i.reference[f]+i.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var v,b;const e="y"===f?"width":"height",t=["top","left"].includes(Ce(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(b=a.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Ct=(e,t,n)=>{const r=new Map,o={platform:ht,...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),s=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Re(c,r,s),f=r,p={},m=0;for(let n=0;n<l.length;n++){const{name:i,fn:h}=l[n],{x:g,y:v,data:b,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,p={...p,[i]:{...p[i],...b}},y&&m<=50&&(m++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:u,y:d}=Re(c,f,s))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},kt=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?xt({element:n.current,padding:r}).fn(t):{}:n?xt({element:n,padding:r}).fn(t):{};var o}});var Mt="undefined"!=typeof document?f:p;function Pt(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(!Pt(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)&&!Pt(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Tt(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Nt(e,t){const n=Tt(e);return Math.round(t*n)/n}function Ot(t){const n=e.useRef(t);return Mt((()=>{n.current=t})),n}const St="Popper",[At,_t]=T(St),[Rt,Dt]=At(St),Lt=l(((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,a=Dt("PopperAnchor",n),l=m(null),s=S(t,l);return p((()=>{a.onAnchorChange((null==r?void 0:r.current)||l.current)})),r?null:o($.div,P({},i,{ref:s}))})),It="PopperContent",[Ft,zt]=At(It),Wt=l(((t,n)=>{var r,i,a,l,s,c,u,d;const{__scopePopper:f,side:p="bottom",sideOffset:m=0,align:g="center",alignOffset:b=0,arrowPadding:y=0,avoidCollisions:w=!0,collisionBoundary:x=[],collisionPadding:E=0,sticky:C="partial",hideWhenDetached:k=!1,updatePositionStrategy:M="optimized",onPlaced:T,...N}=t,O=Dt(It,f),[A,_]=h(null),R=S(n,(e=>_(e))),[D,L]=h(null),I=function(e){const[t,n]=h(void 0);return j((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(D),F=null!==(r=null==I?void 0:I.width)&&void 0!==r?r:0,z=null!==(i=null==I?void 0:I.height)&&void 0!==i?i:0,W=p+("center"!==g?"-"+g:""),B="number"==typeof E?E:{top:0,right:0,bottom:0,left:0,...E},K=Array.isArray(x)?x:[x],G=K.length>0,H={padding:B,boundary:K.filter(jt),altBoundary:G},{refs:V,floatingStyles:X,placement:Y,isPositioned:q,middlewareData:Z}=function(t){void 0===t&&(t={});const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:l}={},transform:s=!0,whileElementsMounted:c,open:u}=t,[d,f]=e.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[p,m]=e.useState(o);Pt(p,o)||m(o);const[h,g]=e.useState(null),[b,y]=e.useState(null),w=e.useCallback((e=>{e!==k.current&&(k.current=e,g(e))}),[]),x=e.useCallback((e=>{e!==M.current&&(M.current=e,y(e))}),[]),E=a||h,C=l||b,k=e.useRef(null),M=e.useRef(null),P=e.useRef(d),T=null!=c,N=Ot(c),O=Ot(i),S=e.useCallback((()=>{if(!k.current||!M.current)return;const e={placement:n,strategy:r,middleware:p};O.current&&(e.platform=O.current),Ct(k.current,M.current,e).then((e=>{const t={...e,isPositioned:!0};A.current&&!Pt(P.current,t)&&(P.current=t,v.flushSync((()=>{f(t)})))}))}),[p,n,r,O]);Mt((()=>{!1===u&&P.current.isPositioned&&(P.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[u]);const A=e.useRef(!1);Mt((()=>(A.current=!0,()=>{A.current=!1})),[]),Mt((()=>{if(E&&(k.current=E),C&&(M.current=C),E&&C){if(N.current)return N.current(E,C,S);S()}}),[E,C,S,N,T]);const _=e.useMemo((()=>({reference:k,floating:M,setReference:w,setFloating:x})),[w,x]),R=e.useMemo((()=>({reference:E,floating:C})),[E,C]),D=e.useMemo((()=>{const e={position:r,left:0,top:0};if(!R.floating)return e;const t=Nt(R.floating,d.x),n=Nt(R.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+n+"px)",...Tt(R.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}}),[r,s,R.floating,d.x,d.y]);return e.useMemo((()=>({...d,update:S,refs:_,elements:R,floatingStyles:D})),[d,S,_,R,D])}({strategy:"fixed",placement:W,whileElementsMounted:(...e)=>gt(...e,{animationFrame:"always"===M}),elements:{reference:O.anchor},middleware:[Fe({mainAxis:m+z,alignmentAxis:b}),w&&vt({mainAxis:!0,crossAxis:!1,limiter:"partial"===C?Et():void 0,...H}),w&&bt({...H}),yt({...H,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`)}}),D&&kt({element:D,padding:y}),Bt({arrowWidth:F,arrowHeight:z}),k&&wt({strategy:"referenceHidden",...H})]}),[J,Q]=Kt(Y),ee=U(T);j((()=>{q&&(null==ee||ee())}),[q,ee]);const te=null===(a=Z.arrow)||void 0===a?void 0:a.x,ne=null===(l=Z.arrow)||void 0===l?void 0:l.y,re=0!==(null===(s=Z.arrow)||void 0===s?void 0:s.centerOffset),[oe,ie]=h();return j((()=>{A&&ie(window.getComputedStyle(A).zIndex)}),[A]),o("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:q?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[null===(c=Z.transformOrigin)||void 0===c?void 0:c.x,null===(u=Z.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:t.dir},o(Ft,{scope:f,placedSide:J,onArrowChange:L,arrowX:te,arrowY:ne,shouldHideArrow:re},o($.div,P({"data-side":J,"data-align":Q},N,{ref:R,style:{...N.style,animation:q?void 0:"none",opacity:null!==(d=Z.hide)&&void 0!==d&&d.referenceHidden?0:void 0}}))))}));function jt(e){return null!==e}const Bt=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:l,rects:s,middlewareData:c}=t,u=0!==(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset),d=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[p,m]=Kt(l),h={start:"0%",center:"50%",end:"100%"}[m],g=(null!==(r=null===(o=c.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,v=(null!==(i=null===(a=c.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let b="",y="";return"bottom"===p?(b=u?h:`${g}px`,y=-f+"px"):"top"===p?(b=u?h:`${g}px`,y=`${s.floating.height+f}px`):"right"===p?(b=-f+"px",y=u?h:`${v}px`):"left"===p&&(b=`${s.floating.width+f}px`,y=u?h:`${v}px`),{data:{x:b,y:y}}}});function Kt(e){const[t,n="center"]=e.split("-");return[t,n]}const Gt=e=>{const{__scopePopper:t,children:n}=e,[r,i]=h(null);return o(Rt,{scope:t,anchor:r,onAnchorChange:i},n)},$t=Lt,Ht=Wt,Ut=l(((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...i}=e;return r?b.createPortal(o($.div,P({},i,{ref:t})),r):null}));const Vt=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=h(),r=m({}),o=m(e),i=m("none"),l=e?"mounted":"unmounted",[s,c]=function(e,t){return g(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p((()=>{const e=Xt(r.current);i.current="mounted"===s?e:"none"}),[s]),j((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Xt(t);if(e)c("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))c("UNMOUNT");else{c(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,c]),j((()=>{if(t){const e=e=>{const n=Xt(r.current).includes(e.animationName);e.target===t&&n&&y((()=>c("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=Xt(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:a((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):s.only(n),i=S(r.ref,o.ref);return"function"==typeof n||r.isPresent?u(o,{ref:i}):null};function Xt(e){return(null==e?void 0:e.animationName)||"none"}function Yt({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=h(e),[r]=n,o=m(r),i=U(t);return p((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,l=i?e:r,s=U(n);return[l,a((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[i,e,o,s])]}Vt.displayName="Presence";const qt="rovingFocusGroup.onEntryFocus",Zt={bubbles:!1,cancelable:!0},Jt="RovingFocusGroup",[Qt,en,tn]=I(Jt),[nn,rn]=T(Jt,[tn]),[on,an]=nn(Jt),ln=l(((e,t)=>o(Qt.Provider,{scope:e.__scopeRovingFocusGroup},o(Qt.Slot,{scope:e.__scopeRovingFocusGroup},o(sn,P({},e,{ref:t})))))),sn=l(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:l,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:u,onEntryFocus:d,...f}=e,g=m(null),v=S(t,g),b=z(l),[y=null,w]=Yt({prop:s,defaultProp:c,onChange:u}),[x,E]=h(!1),C=U(d),k=en(n),M=m(!1),[T,N]=h(0);return p((()=>{const e=g.current;if(e)return e.addEventListener(qt,C),()=>e.removeEventListener(qt,C)}),[C]),o(on,{scope:n,orientation:r,dir:b,loop:i,currentTabStopId:y,onItemFocus:a((e=>w(e)),[w]),onItemShiftTab:a((()=>E(!0)),[]),onFocusableItemAdd:a((()=>N((e=>e+1))),[]),onFocusableItemRemove:a((()=>N((e=>e-1))),[])},o($.div,P({tabIndex:x||0===T?-1:0,"data-orientation":r},f,{ref:v,style:{outline:"none",...e.style},onMouseDown:W(e.onMouseDown,(()=>{M.current=!0})),onFocus:W(e.onFocus,(e=>{const t=!M.current;if(e.target===e.currentTarget&&t&&!x){const t=new CustomEvent(qt,Zt);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=k().filter((e=>e.focusable));dn([e.find((e=>e.active)),e.find((e=>e.id===y)),...e].filter(Boolean).map((e=>e.ref.current)))}}M.current=!1})),onBlur:W(e.onBlur,(()=>E(!1)))})))})),cn=l(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,...l}=e,s=G(),c=a||s,u=an("RovingFocusGroupItem",n),d=u.currentTabStopId===c,f=en(n),{onFocusableItemAdd:m,onFocusableItemRemove:h}=u;return p((()=>{if(r)return m(),()=>h()}),[r,m,h]),o(Qt.ItemSlot,{scope:n,id:c,focusable:r,active:i},o($.span,P({tabIndex:d?0:-1,"data-orientation":u.orientation},l,{ref:t,onMouseDown:W(e.onMouseDown,(e=>{r?u.onItemFocus(c):e.preventDefault()})),onFocus:W(e.onFocus,(()=>u.onItemFocus(c))),onKeyDown:W(e.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:un[r]}(e,u.orientation,u.dir);if(void 0!==t){e.preventDefault();let o=f().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((()=>dn(o)))}var n,r}))})))})),un={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function dn(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const fn=ln,pn=cn;var mn=new WeakMap,hn=new WeakMap,gn={},vn=0,bn=function(e){return e&&(e.host||bn(e.parentNode))},yn=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=bn(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]);gn[n]||(gn[n]=new WeakMap);var i=gn[n],a=[],l=new Set,s=new Set(o),c=function(e){e&&!l.has(e)&&(l.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!s.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,s=(mn.get(e)||0)+1,c=(i.get(e)||0)+1;mn.set(e,s),i.set(e,c),a.push(e),1===s&&o&&hn.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}}))};return u(t),l.clear(),vn++,function(){a.forEach((function(e){var t=mn.get(e)-1,o=i.get(e)-1;mn.set(e,t),i.set(e,o),t||(hn.has(e)||e.removeAttribute(r),hn.delete(e)),o||e.removeAttribute(n)})),--vn||(mn=new WeakMap,mn=new WeakMap,hn=new WeakMap,gn={})}},wn=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]"))),yn(r,o,n,"aria-hidden")):function(){return null}},xn="right-scroll-bar-position",En="width-before-scroll-bar";function Cn(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var kn=new WeakMap;function Mn(t,n){var r,o,i,a=(r=n||null,o=function(e){return t.forEach((function(t){return Cn(t,e)}))},(i=h((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);return e.useLayoutEffect((function(){var e=kn.get(a);if(e){var n=new Set(e),r=new Set(t),o=a.current;n.forEach((function(e){r.has(e)||Cn(e,null)})),r.forEach((function(e){n.has(e)||Cn(e,o)}))}kn.set(a,t)}),[t]),a}function Pn(e){return e}var Tn=function(t){var n=t.sideCar,r=M(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=n.read();if(!o)throw new Error("Sidecar medium not found");return e.createElement(o,k({},r))};Tn.isSideCarExport=!0;var Nn=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Pn);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=k({async:!0,ssr:!1},e),t}(),On=function(){},Sn=e.forwardRef((function(t,n){var r=e.useRef(null),o=e.useState({onScrollCapture:On,onWheelCapture:On,onTouchMoveCapture:On}),i=o[0],a=o[1],l=t.forwardProps,s=t.children,c=t.className,u=t.removeScrollBar,d=t.enabled,f=t.shards,p=t.sideCar,m=t.noIsolation,h=t.inert,g=t.allowPinchZoom,v=t.as,b=void 0===v?"div":v,y=M(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=p,x=Mn([r,n]),E=k(k({},y),i);return e.createElement(e.Fragment,null,d&&e.createElement(w,{sideCar:Nn,removeScrollBar:u,shards:f,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:r}),l?e.cloneElement(e.Children.only(s),k(k({},E),{ref:x})):e.createElement(b,k({},E,{className:c,ref:x}),s))}));Sn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Sn.classNames={fullWidth:En,zeroRight:xn};function An(){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 _n=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=An())&&(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)}}},Rn=function(){var t,n=(t=_n(),function(n,r){e.useEffect((function(){return t.add(n),function(){t.remove()}}),[n&&r])});return function(e){var t=e.styles,r=e.dynamic;return n(t,r),null}},Dn={left:0,top:0,right:0,gap:0},Ln=function(e){return parseInt(e||"",10)||0},In=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Dn;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[Ln(n),Ln(r),Ln(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])}},Fn=Rn(),zn=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(xn," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(En," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(xn," .").concat(xn," {\n right: 0 ").concat(r,";\n }\n \n .").concat(En," .").concat(En," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},Wn=function(t){var n=t.noRelative,r=t.noImportant,o=t.gapMode,i=void 0===o?"margin":o,a=e.useMemo((function(){return In(i)}),[i]);return e.createElement(Fn,{styles:zn(a,!n,i,r?"":"!important")})},jn=!1;if("undefined"!=typeof window)try{var Bn=Object.defineProperty({},"passive",{get:function(){return jn=!0,!0}});window.addEventListener("test",Bn,Bn),window.removeEventListener("test",Bn,Bn)}catch(e){jn=!1}var Kn=!!jn&&{passive:!1},Gn=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])},$n=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),Hn(e,n)){var r=Un(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Hn=function(e,t){return"v"===e?function(e){return Gn(e,"overflowY")}(t):function(e){return Gn(e,"overflowX")}(t)},Un=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},Vn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Xn=function(e){return[e.deltaX,e.deltaY]},Yn=function(e){return e&&"current"in e?e.current:e},qn=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Zn=0,Jn=[];var Qn,er=(Qn=function(t){var n=e.useRef([]),r=e.useRef([0,0]),o=e.useRef(),i=e.useState(Zn++)[0],a=e.useState((function(){return Rn()}))[0],l=e.useRef(t);e.useEffect((function(){l.current=t}),[t]),e.useEffect((function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=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))}([t.lockRef.current],(t.shards||[]).map(Yn),!0).filter(Boolean);return e.forEach((function(e){return e.classList.add("allow-interactivity-".concat(i))})),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(i))}))}}}),[t.inert,t.lockRef.current,t.shards]);var s=e.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!l.current.allowPinchZoom;var n,i=Vn(e),a=r.current,s="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,d=Math.abs(s)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=$n(d,u);if(!f)return!0;if(f?n=d:(n="v"===d?"h":"v",f=$n(d,u)),!f)return!1;if(!o.current&&"changedTouches"in e&&(s||c)&&(o.current=n),!n)return!0;var p=o.current||n;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,s=t.contains(l),c=!1,u=a>0,d=0,f=0;do{var p=Un(e,l),m=p[0],h=p[1]-p[2]-i*m;(m||h)&&Hn(e,l)&&(d+=h,f+=m),l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(u&&(o&&0===d||!o&&a>d)||!u&&(o&&0===f||!o&&-a>f))&&(c=!0),c}(p,t,e,"h"===p?s:c,!0)}),[]),c=e.useCallback((function(e){var t=e;if(Jn.length&&Jn[Jn.length-1]===a){var r="deltaY"in t?Xn(t):Vn(t),o=n.current.filter((function(e){return e.name===t.type&&e.target===t.target&&(n=e.delta,o=r,n[0]===o[0]&&n[1]===o[1]);var n,o}))[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var i=(l.current.shards||[]).map(Yn).filter(Boolean).filter((function(e){return e.contains(t.target)}));(i.length>0?s(t,i[0]):!l.current.noIsolation)&&t.cancelable&&t.preventDefault()}}}),[]),u=e.useCallback((function(e,t,r,o){var i={name:e,delta:t,target:r,should:o};n.current.push(i),setTimeout((function(){n.current=n.current.filter((function(e){return e!==i}))}),1)}),[]),d=e.useCallback((function(e){r.current=Vn(e),o.current=void 0}),[]),f=e.useCallback((function(e){u(e.type,Xn(e),e.target,s(e,t.lockRef.current))}),[]),p=e.useCallback((function(e){u(e.type,Vn(e),e.target,s(e,t.lockRef.current))}),[]);e.useEffect((function(){return Jn.push(a),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Kn),document.addEventListener("touchmove",c,Kn),document.addEventListener("touchstart",d,Kn),function(){Jn=Jn.filter((function(e){return e!==a})),document.removeEventListener("wheel",c,Kn),document.removeEventListener("touchmove",c,Kn),document.removeEventListener("touchstart",d,Kn)}}),[]);var m=t.removeScrollBar,h=t.inert;return e.createElement(e.Fragment,null,h?e.createElement(a,{styles:qn(i)}):null,m?e.createElement(Wn,{gapMode:"margin"}):null)},Nn.useMedium(Qn),Tn),tr=e.forwardRef((function(t,n){return e.createElement(Sn,k({},t,{ref:n,sideCar:er}))}));tr.classNames=Sn.classNames;var nr=tr;const rr=["Enter"," "],or=["ArrowUp","PageDown","End"],ir=["ArrowDown","PageUp","Home",...or],ar={ltr:[...rr,"ArrowRight"],rtl:[...rr,"ArrowLeft"]},lr={ltr:["ArrowLeft"],rtl:["ArrowRight"]},sr="Menu",[cr,ur,dr]=I(sr),[fr,pr]=T(sr,[dr,_t,rn]),mr=_t(),hr=rn(),[gr,vr]=fr(sr),[br,yr]=fr(sr),wr=l(((e,t)=>{const{__scopeMenu:n,...r}=e,i=mr(n);return o($t,P({},i,r,{ref:t}))})),xr="MenuPortal",[Er,Cr]=fr(xr,{forceMount:void 0}),kr="MenuContent",[Mr,Pr]=fr(kr),Tr=l(((e,t)=>{const n=Cr(kr,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=vr(kr,e.__scopeMenu),l=yr(kr,e.__scopeMenu);return o(cr.Provider,{scope:e.__scopeMenu},o(Vt,{present:r||a.open},o(cr.Slot,{scope:e.__scopeMenu},l.modal?o(Nr,P({},i,{ref:t})):o(Or,P({},i,{ref:t})))))})),Nr=l(((e,t)=>{const n=vr(kr,e.__scopeMenu),r=m(null),i=S(t,r);return p((()=>{const e=r.current;if(e)return wn(e)}),[]),o(Sr,P({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:W(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))})),Or=l(((e,t)=>{const n=vr(kr,e.__scopeMenu);return o(Sr,P({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))})),Sr=l(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:l,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:u,onEscapeKeyDown:f,onPointerDownOutside:g,onFocusOutside:v,onInteractOutside:b,onDismiss:y,disableOutsideScroll:w,...x}=e,E=vr(kr,n),C=yr(kr,n),k=mr(n),M=hr(n),T=ur(n),[N,O]=h(null),_=m(null),R=S(t,_,E.onContentChange),D=m(0),L=m(""),I=m(0),F=m(null),z=m("right"),j=m(0),B=w?nr:d,K=w?{as:A,allowPinchZoom:!0}:void 0,G=e=>{var t,n;const r=L.current+e,o=T().filter((e=>!e.disabled)),i=document.activeElement,a=null===(t=o.find((e=>e.ref.current===i)))||void 0===t?void 0:t.textValue,l=function(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0])),o=r?t[0]:t,i=n?e.indexOf(n):-1;let a=(l=e,s=Math.max(i,0),l.map(((e,t)=>l[(s+t)%l.length])));var l,s;1===o.length&&(a=a.filter((e=>e!==n)));const c=a.find((e=>e.toLowerCase().startsWith(o.toLowerCase())));return c!==n?c:void 0}(o.map((e=>e.textValue)),r,a),s=null===(n=o.find((e=>e.textValue===l)))||void 0===n?void 0:n.ref.current;!function e(t){L.current=t,window.clearTimeout(D.current),""!==t&&(D.current=window.setTimeout((()=>e("")),1e3))}(r),s&&setTimeout((()=>s.focus()))};p((()=>()=>window.clearTimeout(D.current)),[]),p((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:ne()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:ne()),te++,()=>{1===te&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),te--}}),[]);const $=a((e=>{var t,n;return z.current===(null===(t=F.current)||void 0===t?void 0:t.side)&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return 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,s=t[i].x,c=t[i].y;l>r!=c>r&&n<(s-a)*(r-l)/(c-l)+a&&(o=!o)}return o}(n,t)}(e,null===(n=F.current)||void 0===n?void 0:n.area)}),[]);return o(Mr,{scope:n,searchRef:L,onItemEnter:a((e=>{$(e)&&e.preventDefault()}),[$]),onItemLeave:a((e=>{var t;$(e)||(null===(t=_.current)||void 0===t||t.focus(),O(null))}),[$]),onTriggerLeave:a((e=>{$(e)&&e.preventDefault()}),[$]),pointerGraceTimerRef:I,onPointerGraceIntentChange:a((e=>{F.current=e}),[])},o(B,K,o(ae,{asChild:!0,trapped:i,onMountAutoFocus:W(l,(e=>{var t;e.preventDefault(),null===(t=_.current)||void 0===t||t.focus()})),onUnmountAutoFocus:s},o(J,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:f,onPointerDownOutside:g,onFocusOutside:v,onInteractOutside:b,onDismiss:y},o(fn,P({asChild:!0},M,{dir:C.dir,orientation:"vertical",loop:r,currentTabStopId:N,onCurrentTabStopIdChange:O,onEntryFocus:W(u,(e=>{C.isUsingKeyboardRef.current||e.preventDefault()}))}),o(Ht,P({role:"menu","aria-orientation":"vertical","data-state":Xr(E.open),"data-radix-menu-content":"",dir:C.dir},k,x,{ref:R,style:{outline:"none",...x.style},onKeyDown:W(x.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&G(e.key));const o=_.current;if(e.target!==o)return;if(!ir.includes(e.key))return;e.preventDefault();const i=T().filter((e=>!e.disabled)).map((e=>e.ref.current));or.includes(e.key)&&i.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(i)})),onBlur:W(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(D.current),L.current="")})),onPointerMove:W(e.onPointerMove,Zr((e=>{const t=e.target,n=j.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>j.current?"right":"left";z.current=t,j.current=e.clientX}})))})))))))})),Ar=l(((e,t)=>{const{__scopeMenu:n,...r}=e;return o($.div,P({},r,{ref:t}))})),_r="MenuItem",Rr="menu.itemSelect",Dr=l(((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,a=m(null),l=yr(_r,e.__scopeMenu),s=Pr(_r,e.__scopeMenu),c=S(t,a),u=m(!1);return o(Lr,P({},i,{ref:c,disabled:n,onClick:W(e.onClick,(()=>{const e=a.current;if(!n&&e){const t=new CustomEvent(Rr,{bubbles:!0,cancelable:!0});e.addEventListener(Rr,(e=>null==r?void 0:r(e)),{once:!0}),H(e,t),t.defaultPrevented?u.current=!1:l.onClose()}})),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),u.current=!0},onPointerUp:W(e.onPointerUp,(e=>{var t;u.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:W(e.onKeyDown,(e=>{const t=""!==s.searchRef.current;n||t&&" "===e.key||rr.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),Lr=l(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,l=Pr(_r,n),s=hr(n),c=m(null),u=S(t,c),[d,f]=h(!1),[g,v]=h("");return p((()=>{const e=c.current;var t;e&&v((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[a.children]),o(cr.ItemSlot,{scope:n,disabled:r,textValue:null!=i?i:g},o(pn,P({asChild:!0},s,{focusable:!r}),o($.div,P({role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:u,onPointerMove:W(e.onPointerMove,Zr((e=>{if(r)l.onItemLeave(e);else if(l.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus()}}))),onPointerLeave:W(e.onPointerLeave,Zr((e=>l.onItemLeave(e)))),onFocus:W(e.onFocus,(()=>f(!0))),onBlur:W(e.onBlur,(()=>f(!1)))}))))})),Ir=l(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...i}=e;return o(Br,{scope:e.__scopeMenu,checked:n},o(Dr,P({role:"menuitemcheckbox","aria-checked":Yr(n)?"mixed":n},i,{ref:t,"data-state":qr(n),onSelect:W(i.onSelect,(()=>null==r?void 0:r(!!Yr(n)||!n)),{checkForDefaultPrevented:!1})})))})),[Fr,zr]=fr("MenuRadioGroup",{value:void 0,onValueChange:()=>{}}),Wr=l(((e,t)=>{const{value:n,...r}=e,i=zr("MenuRadioItem",e.__scopeMenu),a=n===i.value;return o(Br,{scope:e.__scopeMenu,checked:a},o(Dr,P({role:"menuitemradio","aria-checked":a},r,{ref:t,"data-state":qr(a),onSelect:W(r.onSelect,(()=>{var e;return null===(e=i.onValueChange)||void 0===e?void 0:e.call(i,n)}),{checkForDefaultPrevented:!1})})))})),jr="MenuItemIndicator",[Br,Kr]=fr(jr,{checked:!1}),Gr=l(((e,t)=>{const{__scopeMenu:n,forceMount:r,...i}=e,a=Kr(jr,n);return o(Vt,{present:r||Yr(a.checked)||!0===a.checked},o($.span,P({},i,{ref:t,"data-state":qr(a.checked)})))})),$r=l(((e,t)=>{const{__scopeMenu:n,...r}=e;return o($.div,P({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))})),[Hr,Ur]=fr("MenuSub"),Vr="MenuSubTrigger";function Xr(e){return e?"open":"closed"}function Yr(e){return"indeterminate"===e}function qr(e){return Yr(e)?"indeterminate":e?"checked":"unchecked"}function Zr(e){return t=>"mouse"===t.pointerType?e(t):void 0}const Jr=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:l,modal:s=!0}=e,c=mr(t),[u,d]=h(null),f=m(!1),g=U(l),v=z(i);return p((()=>{const e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),o(Gt,c,o(gr,{scope:t,open:n,onOpenChange:g,content:u,onContentChange:d},o(br,{scope:t,onClose:a((()=>g(!1)),[g]),isUsingKeyboardRef:f,dir:v,modal:s},r)))},Qr=wr,eo=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=vr(xr,t);return o(Er,{scope:t,forceMount:n},o(Vt,{present:n||a.open},o(Ut,{asChild:!0,container:i},r)))},to=Tr,no=Ar,ro=Dr,oo=Ir,io=Wr,ao=Gr,lo=$r,so=l(((e,t)=>{const n=vr(Vr,e.__scopeMenu),r=yr(Vr,e.__scopeMenu),i=Ur(Vr,e.__scopeMenu),l=Pr(Vr,e.__scopeMenu),s=m(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:u}=l,d={__scopeMenu:e.__scopeMenu},f=a((()=>{s.current&&window.clearTimeout(s.current),s.current=null}),[]);return p((()=>f),[f]),p((()=>{const e=c.current;return()=>{window.clearTimeout(e),u(null)}}),[c,u]),o(wr,P({asChild:!0},d),o(Lr,P({id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":Xr(n.open)},e,{ref:O(t,i.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:W(e.onPointerMove,Zr((t=>{l.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||s.current||(l.onPointerGraceIntentChange(null),s.current=window.setTimeout((()=>{n.onOpenChange(!0),f()}),100))}))),onPointerLeave:W(e.onPointerLeave,Zr((e=>{var t;f();const r=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(r){var o;const t=null===(o=n.content)||void 0===o?void 0:o.dataset.side,i="right"===t,a=i?-5:5,s=r[i?"left":"right"],u=r[i?"right":"left"];l.onPointerGraceIntentChange({area:[{x:e.clientX+a,y:e.clientY},{x:s,y:r.top},{x:u,y:r.top},{x:u,y:r.bottom},{x:s,y:r.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout((()=>l.onPointerGraceIntentChange(null)),300)}else{if(l.onTriggerLeave(e),e.defaultPrevented)return;l.onPointerGraceIntentChange(null)}}))),onKeyDown:W(e.onKeyDown,(t=>{const o=""!==l.searchRef.current;var i;e.disabled||o&&" "===t.key||ar[r.dir].includes(t.key)&&(n.onOpenChange(!0),null===(i=n.content)||void 0===i||i.focus(),t.preventDefault())}))})))})),co=l(((e,t)=>{const n=Cr(kr,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=vr(kr,e.__scopeMenu),l=yr(kr,e.__scopeMenu),s=Ur("MenuSubContent",e.__scopeMenu),c=m(null),u=S(t,c);return o(cr.Provider,{scope:e.__scopeMenu},o(Vt,{present:r||a.open},o(cr.Slot,{scope:e.__scopeMenu},o(Sr,P({id:s.contentId,"aria-labelledby":s.triggerId},i,{ref:u,align:"start",side:"rtl"===l.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;l.isUsingKeyboardRef.current&&(null===(t=c.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:W(e.onFocusOutside,(e=>{e.target!==s.trigger&&a.onOpenChange(!1)})),onEscapeKeyDown:W(e.onEscapeKeyDown,(e=>{l.onClose(),e.preventDefault()})),onKeyDown:W(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=lr[l.dir].includes(e.key);var r;t&&n&&(a.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault())}))})))))})),uo="Menubar",[fo,po,mo]=I(uo),[ho,go]=T(uo,[mo,rn]),vo=pr(),bo=rn(),[yo,wo]=ho(uo),xo=l(((e,t)=>{const{__scopeMenubar:n,value:r,onValueChange:i,defaultValue:l,loop:s=!0,dir:c,...u}=e,d=z(c),f=bo(n),[p="",m]=Yt({prop:r,onChange:i,defaultProp:l}),[g,v]=h(null);return o(yo,{scope:n,value:p,onMenuOpen:a((e=>{m(e),v(e)}),[m]),onMenuClose:a((()=>m("")),[m]),onMenuToggle:a((e=>{m((t=>Boolean(t)?"":e)),v(e)}),[m]),dir:d,loop:s},o(fo.Provider,{scope:n},o(fo.Slot,{scope:n},o(fn,P({asChild:!0},f,{orientation:"horizontal",loop:s,dir:d,currentTabStopId:g,onCurrentTabStopIdChange:v}),o($.div,P({role:"menubar"},u,{ref:t}))))))})),Eo="MenubarMenu",[Co,ko]=ho(Eo),Mo="MenubarTrigger",Po=l(((e,t)=>{const{__scopeMenubar:n,disabled:r=!1,...i}=e,a=bo(n),l=vo(n),s=wo(Mo,n),c=ko(Mo,n),u=m(null),d=S(t,u,c.triggerRef),[f,p]=h(!1),g=s.value===c.value;return o(fo.ItemSlot,{scope:n,value:c.value,disabled:r},o(pn,P({asChild:!0},a,{focusable:!r,tabStopId:c.value}),o(Qr,P({asChild:!0},l),o($.button,P({type:"button",role:"menuitem",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":g,"aria-controls":g?c.contentId:void 0,"data-highlighted":f?"":void 0,"data-state":g?"open":"closed","data-disabled":r?"":void 0,disabled:r},i,{ref:d,onPointerDown:W(e.onPointerDown,(e=>{r||0!==e.button||!1!==e.ctrlKey||(s.onMenuOpen(c.value),g||e.preventDefault())})),onPointerEnter:W(e.onPointerEnter,(()=>{var e;Boolean(s.value)&&!g&&(s.onMenuOpen(c.value),null===(e=u.current)||void 0===e||e.focus())})),onKeyDown:W(e.onKeyDown,(e=>{r||(["Enter"," "].includes(e.key)&&s.onMenuToggle(c.value),"ArrowDown"===e.key&&s.onMenuOpen(c.value),["Enter"," ","ArrowDown"].includes(e.key)&&(c.wasKeyboardTriggerOpenRef.current=!0,e.preventDefault()))})),onFocus:W(e.onFocus,(()=>p(!0))),onBlur:W(e.onBlur,(()=>p(!1)))})))))})),To="MenubarContent",No=l(((e,t)=>{const{__scopeMenubar:n,align:r="start",...i}=e,a=vo(n),l=wo(To,n),s=ko(To,n),c=po(n),u=m(!1);return o(to,P({id:s.contentId,"aria-labelledby":s.triggerId,"data-radix-menubar-content":""},a,i,{ref:t,align:r,onCloseAutoFocus:W(e.onCloseAutoFocus,(e=>{var t;Boolean(l.value)||u.current||(null===(t=s.triggerRef.current)||void 0===t||t.focus());u.current=!1,e.preventDefault()})),onFocusOutside:W(e.onFocusOutside,(e=>{const t=e.target;c().some((e=>{var n;return null===(n=e.ref.current)||void 0===n?void 0:n.contains(t)}))&&e.preventDefault()})),onInteractOutside:W(e.onInteractOutside,(()=>{u.current=!0})),onEntryFocus:e=>{s.wasKeyboardTriggerOpenRef.current||e.preventDefault()},onKeyDown:W(e.onKeyDown,(e=>{if(["ArrowRight","ArrowLeft"].includes(e.key)){const r=e.target,o=r.hasAttribute("data-radix-menubar-subtrigger"),i=r.closest("[data-radix-menubar-content]")!==e.currentTarget,a=("rtl"===l.dir?"ArrowRight":"ArrowLeft")===e.key;if(!a&&o)return;if(i&&a)return;let u=c().filter((e=>!e.disabled)).map((e=>e.value));a&&u.reverse();const d=u.indexOf(s.value);u=l.loop?(n=d+1,(t=u).map(((e,r)=>t[(n+r)%t.length]))):u.slice(d+1);const[f]=u;f&&l.onMenuOpen(f)}var t,n}),{checkForDefaultPrevented:!1}),style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}}))}));const Oo=xo,So=e=>{const{__scopeMenubar:t,value:n,...r}=e,i=G(),a=n||i||"LEGACY_REACT_AUTO_VALUE",l=wo(Eo,t),s=vo(t),c=m(null),u=m(!1),d=l.value===a;return p((()=>{d||(u.current=!1)}),[d]),o(Co,{scope:t,value:a,triggerId:G(),triggerRef:c,contentId:G(),wasKeyboardTriggerOpenRef:u},o(Jr,P({},s,{open:d,onOpenChange:e=>{e||l.onMenuClose()},modal:!1,dir:l.dir},r)))},Ao=Po,_o=e=>{const{__scopeMenubar:t,...n}=e,r=vo(t);return o(eo,P({},r,n))},Ro=No,Do=l(((e,t)=>{const{__scopeMenubar:n,...r}=e,i=vo(n);return o(no,P({},i,r,{ref:t}))})),Lo=l(((e,t)=>{const{__scopeMenubar:n,...r}=e,i=vo(n);return o(ro,P({},i,r,{ref:t}))})),Io=l(((e,t)=>{const{__scopeMenubar:n,...r}=e,i=vo(n);return o(oo,P({},i,r,{ref:t}))})),Fo=l(((e,t)=>{const{__scopeMenubar:n,...r}=e,i=vo(n);return o(io,P({},i,r,{ref:t}))})),zo=l(((e,t)=>{const{__scopeMenubar:n,...r}=e,i=vo(n);return o(ao,P({},i,r,{ref:t}))})),Wo=l(((e,t)=>{const{__scopeMenubar:n,...r}=e,i=vo(n);return o(lo,P({},i,r,{ref:t}))})),jo=l(((e,t)=>{const{__scopeMenubar:n,...r}=e,i=vo(n);return o(so,P({"data-radix-menubar-subtrigger":""},i,r,{ref:t}))})),Bo=l(((e,t)=>{const{__scopeMenubar:n,...r}=e,i=vo(n);return o(co,P({},i,{"data-radix-menubar-content":""},r,{ref:t,style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}}))}));var Ko={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Go=(e,t)=>{const n=l((({color:n="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:a,children:l,...s},c)=>{return o("svg",{ref:c,...Ko,width:r,height:r,stroke:n,strokeWidth:a?24*Number(i)/Number(r):i,className:`lucide lucide-${u=e,u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,...s},[...t.map((([e,t])=>o(e,t))),...(Array.isArray(l)?l:[l])||[]]);var u}));return n.displayName=`${e}`,n},$o=Go("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Ho=Go("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Uo=Go("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);function Vo(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Vo(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const Xo="-";function Yo(e){const t=function(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]},o=function(e,t){if(!t)return e;return e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))]))}(Object.entries(e.classGroups),n);return o.forEach((([e,n])=>{Jo(n,r,e,t)})),r}(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:function(e){const n=e.split(Xo);return""===n[0]&&1!==n.length&&n.shift(),qo(n,t)||function(e){if(Zo.test(e)){const t=Zo.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}}function qo(e,t){if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?qo(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join(Xo);return t.validators.find((({validator:e})=>e(i)))?.classGroupId}const Zo=/^\[(.+)\]$/;function Jo(e,t,n,r){e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return e.isThemeGetter?void Jo(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{Jo(o,Qo(t,e),n,r)}))}else{(""===e?t:Qo(t,e)).classGroupId=n}}))}function Qo(e,t){let n=e;return t.split(Xo).forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n}function ei(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(o,i){n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)}return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}}const ti="!";function ni(e){const t=e.separator,n=1===t.length,r=t[0],o=t.length;return function(e){const i=[];let a,l=0,s=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===l){if(u===r&&(n||e.slice(c,c+o)===t)){i.push(e.slice(s,c)),s=c+o;continue}if("/"===u){a=c;continue}}"["===u?l++:"]"===u&&l--}const c=0===i.length?e:e.substring(s),u=c.startsWith(ti);return{modifiers:i,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:a&&a>s?a-s:void 0}}}const ri=/\s+/;function oi(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=ii(e))&&(r&&(r+=" "),r+=t);return r}function ii(e){if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=ii(e[r]))&&(n&&(n+=" "),n+=t);return n}function ai(e,...t){let n,r,o,i=function(l){const s=t.reduce(((e,t)=>t(e)),e());return n=function(e){return{cache:ei(e.cacheSize),splitModifiers:ni(e),...Yo(e)}}(s),r=n.cache.get,o=n.cache.set,i=a,a(l)};function a(e){const t=r(e);if(t)return t;const i=function(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=new Set;return e.trim().split(ri).map((e=>{const{modifiers:t,hasImportantModifier:o,baseClassName:i,maybePostfixModifierPosition:a}=n(e);let l=r(a?i.substring(0,a):i),s=Boolean(a);if(!l){if(!a)return{isTailwindClass:!1,originalClassName:e};if(l=r(i),!l)return{isTailwindClass:!1,originalClassName:e};s=!1}const c=function(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t}(t).join(":");return{isTailwindClass:!0,modifierId:o?c+ti:c,classGroupId:l,originalClassName:e,hasPostfixModifier:s}})).reverse().filter((e=>{if(!e.isTailwindClass)return!0;const{modifierId:t,classGroupId:n,hasPostfixModifier:r}=e,a=t+n;return!i.has(a)&&(i.add(a),o(n,r).forEach((e=>i.add(t+e))),!0)})).reverse().map((e=>e.originalClassName)).join(" ")}(e,n);return o(e,i),i}return function(){return i(oi.apply(null,arguments))}}function li(e){const t=t=>t[e]||[];return t.isThemeGetter=!0,t}const si=/^\[(?:([a-z-]+):)?(.+)\]$/i,ci=/^\d+\/\d+$/,ui=new Set(["px","full","screen"]),di=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fi=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,pi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,mi=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,hi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function gi(e){return bi(e)||ui.has(e)||ci.test(e)}function vi(e){return Ai(e,"length",_i)}function bi(e){return Boolean(e)&&!Number.isNaN(Number(e))}function yi(e){return Ai(e,"number",bi)}function wi(e){return Boolean(e)&&Number.isInteger(Number(e))}function xi(e){return e.endsWith("%")&&bi(e.slice(0,-1))}function Ei(e){return si.test(e)}function Ci(e){return di.test(e)}const ki=new Set(["length","size","percentage"]);function Mi(e){return Ai(e,ki,Ri)}function Pi(e){return Ai(e,"position",Ri)}const Ti=new Set(["image","url"]);function Ni(e){return Ai(e,Ti,Li)}function Oi(e){return Ai(e,"",Di)}function Si(){return!0}function Ai(e,t,n){const r=si.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))}function _i(e){return fi.test(e)&&!pi.test(e)}function Ri(){return!1}function Di(e){return mi.test(e)}function Li(e){return hi.test(e)}function Ii(){const e=li("colors"),t=li("spacing"),n=li("blur"),r=li("brightness"),o=li("borderColor"),i=li("borderRadius"),a=li("borderSpacing"),l=li("borderWidth"),s=li("contrast"),c=li("grayscale"),u=li("hueRotate"),d=li("invert"),f=li("gap"),p=li("gradientColorStops"),m=li("gradientColorStopPositions"),h=li("inset"),g=li("margin"),v=li("opacity"),b=li("padding"),y=li("saturate"),w=li("scale"),x=li("sepia"),E=li("skew"),C=li("space"),k=li("translate"),M=()=>["auto",Ei,t],P=()=>[Ei,t],T=()=>["",gi,vi],N=()=>["auto",bi,Ei],O=()=>["","0",Ei],S=()=>[bi,yi],A=()=>[bi,Ei];return{cacheSize:500,separator:":",theme:{colors:[Si],spacing:[gi,vi],blur:["none","",Ci,Ei],brightness:S(),borderColor:[e],borderRadius:["none","","full",Ci,Ei],borderSpacing:P(),borderWidth:T(),contrast:S(),grayscale:O(),hueRotate:A(),invert:O(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[xi,vi],inset:M(),margin:M(),opacity:S(),padding:P(),saturate:S(),scale:S(),sepia:O(),skew:A(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",Ei]}],container:["container"],columns:[{columns:[Ci]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Ei]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",wi,Ei]}],basis:[{basis:M()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ei]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",wi,Ei]}],"grid-cols":[{"grid-cols":[Si]}],"col-start-end":[{col:["auto",{span:["full",wi,Ei]},Ei]}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":[Si]}],"row-start-end":[{row:["auto",{span:[wi,Ei]},Ei]}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ei]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ei]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ei,t]}],"min-w":[{"min-w":[Ei,t,"min","max","fit"]}],"max-w":[{"max-w":[Ei,t,"none","full","min","max","fit","prose",{screen:[Ci]},Ci]}],h:[{h:[Ei,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ei,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ei,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ei,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ci,vi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",yi]}],"font-family":[{font:[Si]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ei]}],"line-clamp":[{"line-clamp":["none",bi,yi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",gi,Ei]}],"list-image":[{"list-image":["none",Ei]}],"list-style-type":[{list:["none","disc","decimal",Ei]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",gi,vi]}],"underline-offset":[{"underline-offset":["auto",gi,Ei]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ei]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ei]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Pi]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Mi]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ni]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[gi,Ei]}],"outline-w":[{outline:[gi,vi]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[gi,vi]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ci,Oi]}],"shadow-color":[{shadow:[Si]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",Ci,Ei]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ei]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",Ei]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ei]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[wi,Ei]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ei]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ei]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ei]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[gi,vi,yi]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const Fi=ai(Ii);function zi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Fi(function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Vo(e))&&(r&&(r+=" "),r+=t);return r}(e))}var Wi=So,ji=e.forwardRef((function(t,n){var r=t.id,o=t.className,i=M(t,["id","className"]);return e.createElement(Oo,k({ref:n,id:r,className:zi("flex h-10 items-center space-x-1 rounded-md border bg-background p-1",o)},i))}));ji.displayName=Oo.displayName;var Bi=e.forwardRef((function(t,n){var r=t.id,o=t.className,i=M(t,["id","className"]);return e.createElement(Ao,k({ref:n,id:r,className:zi("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",o)},i))}));Bi.displayName=Ao.displayName,e.forwardRef((function(t,n){var r=t.id,o=t.className,i=t.inset,a=t.children,l=M(t,["id","className","inset","children"]);return e.createElement(jo,k({ref:n,id:r,className:zi("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",i&&"pl-8",o)},l),a,e.createElement(Ho,{className:"ml-auto h-4 w-4"}))})).displayName=jo.displayName,e.forwardRef((function(t,n){var r=t.id,o=t.className,i=M(t,["id","className"]);return e.createElement(Bo,k({ref:n,id:r,className:zi("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o)},i))})).displayName=Bo.displayName;var Ki=e.forwardRef((function(t,n){var r=t.id,o=t.className,i=t.align,a=void 0===i?"start":i,l=t.alignOffset,s=void 0===l?-4:l,c=t.sideOffset,u=void 0===c?8:c,d=M(t,["id","className","align","alignOffset","sideOffset"]);return e.createElement(_o,null,e.createElement(Ro,k({ref:n,id:r,align:a,alignOffset:s,sideOffset:u,className:zi("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o)},d)))}));Ki.displayName=Ro.displayName;var Gi=e.forwardRef((function(t,n){var r=t.id,o=t.className,i=t.inset,a=M(t,["id","className","inset"]);return e.createElement(Lo,k({ref:n,id:r,className:zi("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",i&&"pl-8",o)},a))}));Gi.displayName=Lo.displayName,e.forwardRef((function(t,n){var r=t.id,o=t.className,i=t.children,a=t.checked,l=M(t,["id","className","children","checked"]);return e.createElement(Io,k({ref:n,id:r,className:zi("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o),checked:a},l),e.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},e.createElement(zo,null,e.createElement($o,{className:"h-4 w-4"}))),i)})).displayName=Io.displayName,e.forwardRef((function(t,n){var r=t.id,o=t.className,i=t.children,a=M(t,["id","className","children"]);return e.createElement(Fo,k({ref:n,id:r,className:zi("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o)},a),e.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},e.createElement(zo,null,e.createElement(Uo,{className:"h-2 w-2 fill-current"}))),i)})).displayName=Fo.displayName,e.forwardRef((function(t,n){var r=t.id,o=t.className,i=t.inset,a=M(t,["id","className","inset"]);return e.createElement(Do,k({ref:n,id:r,className:zi("px-2 py-1.5 text-sm font-semibold",i&&"pl-8",o)},a))})).displayName=Do.displayName;var $i=e.forwardRef((function(t,n){var r=t.id,o=t.className,i=M(t,["id","className"]);return e.createElement(Wo,k({ref:n,id:r,className:zi("-mx-1 my-1 h-px bg-muted",o)},i))}));$i.displayName=Wo.displayName;var Hi=function(e){var n=e.id,r=e.className,o=e.borderless,i=void 0!==o&&o,a=e.orientation,l=void 0===a?"horizontal":a,s=e.activeKey,c=void 0===s?"":s,u=e.items,d=void 0===u?[]:u,f=e.onClick,m=h(c),g=m[0],v=m[1];return p((function(){v(c)}),[c]),t.createElement(ji,{id:n,className:C("gyramais-menubar","gyramais-menubar-".concat(l),i?"gyramais-menubar-borderless":"",r)},d.map((function(e,n){return e.separator?t.createElement($i,{key:"separator-".concat(n),"aria-orientation":"horizontal"===l?"vertical":"horizontal",className:"gyramais-menubar-separator"}):t.createElement(Wi,{key:"menu-".concat(n)},t.createElement(Bi,{className:C("gyramais-menubar-option",e.key===g?"gyramais-menubar-option-selected":""),onClick:function(){e.key&&(!c&&e.key&&v(e.key),null==f||f(e.key))},disabled:e.disabled},e.title),!e.disabled&&Array.isArray(e.items)&&e.items.length>0&&t.createElement(Ki,{className:"gyramais-menubar-content",side:"horizontal"===l?"bottom":"right"},e.items.map((function(e,n){return e.separator?t.createElement($i,{key:"sub-separator-".concat(n),"aria-orientation":"horizontal",className:"gyramais-menubar-separator submenu-separator"}):t.createElement(Gi,{key:"sub-menu-".concat(n),className:"gyramais-menubar-sub-option",onClick:function(){e.key&&(null==f||f(e.key))},disabled:e.disabled},e.title)}))))})))};export{Hi as Menubar};
|
|
6
|
+
*/x=E,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=r(e,n(o)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var i in n)e.call(n,i)&&n[i]&&(o=r(o,i));return o}function r(e,t){return t?e?e+" "+t:e+t:e}x.exports?(t.default=t,x.exports=t):window.classNames=t}();var C=w(E.exports),k=function(){return k=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},k.apply(this,arguments)};function M(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function P(){return P=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},P.apply(this,arguments)}function T(e,t=[]){let a=[];const l=()=>{const t=a.map((e=>n(e)));return function(n){const o=(null==n?void 0:n[e])||t;return r((()=>({[`__scope${e}`]:{...n,[e]:o}})),[n,o])}};return l.scopeName=e,[function(t,l){const s=n(l),c=a.length;function u(t){const{scope:n,children:i,...a}=t,l=(null==n?void 0:n[e][c])||s,u=r((()=>a),Object.values(a));return o(l.Provider,{value:u},i)}return a=[...a,l],u.displayName=t+"Provider",[u,function(n,r){const o=(null==r?void 0:r[e][c])||s,a=i(o);if(a)return a;if(void 0!==l)return l;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},N(l,...t)]}function N(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return r((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return n.scopeName=t.scopeName,n}function O(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function S(...e){return a(O(...e),e)}"function"==typeof SuppressedError&&SuppressedError;const A=l(((e,t)=>{const{children:n,...r}=e,i=s.toArray(n),a=i.find(D);if(a){const e=a.props.children,n=i.map((t=>t===a?s.count(e)>1?s.only(null):c(e)?e.props.children:null:t));return o(_,P({},r,{ref:t}),c(e)?u(e,void 0,n):null)}return o(_,P({},r,{ref:t}),n)}));A.displayName="Slot";const _=l(((e,t)=>{const{children:n,...r}=e;return c(n)?u(n,{...L(r,n.props),ref:t?O(t,n.ref):n.ref}):s.count(n)>1?s.only(null):null}));_.displayName="SlotClone";const R=({children:e})=>o(d,null,e);function D(e){return c(e)&&e.type===R}function L(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}}function I(e){const n=e+"CollectionProvider",[r,o]=T(n),[i,a]=r(n,{collectionRef:{current:null},itemMap:new Map}),l=e+"CollectionSlot",s=e+"CollectionItemSlot",c="data-radix-collection-item";return[{Provider:e=>{const{scope:n,children:r}=e,o=t.useRef(null),a=t.useRef(new Map).current;return t.createElement(i,{scope:n,itemMap:a,collectionRef:o},r)},Slot:t.forwardRef(((e,n)=>{const{scope:r,children:o}=e,i=S(n,a(l,r).collectionRef);return t.createElement(A,{ref:i},o)})),ItemSlot:t.forwardRef(((e,n)=>{const{scope:r,children:o,...i}=e,l=t.useRef(null),u=S(n,l),d=a(s,r);return t.useEffect((()=>(d.itemMap.set(l,{ref:l,...i}),()=>{d.itemMap.delete(l)}))),t.createElement(A,{[c]:"",ref:u},o)}))},function(n){const r=a(e+"CollectionConsumer",n);return t.useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${c}]`));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 F=n(void 0);function z(e){const t=i(F);return e||t||"ltr"}function W(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}const j=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?f:()=>{},B=e["useId".toString()]||(()=>{});let K=0;function G(t){const[n,r]=e.useState(B());return j((()=>{t||r((e=>null!=e?e:String(K++)))}),[t]),t||(n?`radix-${n}`:"")}const $=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=l(((e,n)=>{const{asChild:r,...i}=e,a=r?A:t;return p((()=>{window[Symbol.for("radix-ui")]=!0}),[]),o(a,P({},i,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function H(e,t){e&&y((()=>e.dispatchEvent(t)))}function U(e){const t=m(e);return p((()=>{t.current=e})),r((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}const V="dismissableLayer.update",X="dismissableLayer.pointerDownOutside",Y="dismissableLayer.focusOutside";let q;const Z=n({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),J=l(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:s,onInteractOutside:c,onDismiss:u,...d}=e,f=i(Z),[g,v]=h(null),b=null!==(n=null==g?void 0:g.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,y]=h({}),w=S(t,(e=>v(e))),x=Array.from(f.layers),[E]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),C=x.indexOf(E),k=g?x.indexOf(g):-1,M=f.layersWithOutsidePointerEventsDisabled.size>0,T=k>=C,N=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=U(e),r=m(!1),o=m((()=>{}));return p((()=>{const e=e=>{if(e.target&&!r.current){const i={originalEvent:e};function a(){ee(X,n,i,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...f.branches].some((e=>e.contains(t)));T&&!n&&(null==l||l(e),null==c||c(e),e.defaultPrevented||null==u||u())}),b),O=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=U(e),r=m(!1);return p((()=>{const e=e=>{if(e.target&&!r.current){ee(Y,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...f.branches].some((e=>e.contains(t)))||(null==s||s(e),null==c||c(e),e.defaultPrevented||null==u||u())}),b);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=U(e);p((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}((e=>{k===f.layers.size-1&&(null==a||a(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))}),b),p((()=>{if(g)return r&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(q=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(g)),f.layers.add(g),Q(),()=>{r&&1===f.layersWithOutsidePointerEventsDisabled.size&&(b.body.style.pointerEvents=q)}}),[g,b,r,f]),p((()=>()=>{g&&(f.layers.delete(g),f.layersWithOutsidePointerEventsDisabled.delete(g),Q())}),[g,f]),p((()=>{const e=()=>y({});return document.addEventListener(V,e),()=>document.removeEventListener(V,e)}),[]),o($.div,P({},d,{ref:w,style:{pointerEvents:M?T?"auto":"none":void 0,...e.style},onFocusCapture:W(e.onFocusCapture,O.onFocusCapture),onBlurCapture:W(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:W(e.onPointerDownCapture,N.onPointerDownCapture)}))}));function Q(){const e=new CustomEvent(V);document.dispatchEvent(e)}function ee(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?H(o,i):o.dispatchEvent(i)}let te=0;function ne(){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}const re="focusScope.autoFocusOnMount",oe="focusScope.autoFocusOnUnmount",ie={bubbles:!1,cancelable:!0},ae=l(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:l,...s}=e,[c,u]=h(null),d=U(i),f=U(l),g=m(null),v=S(t,(e=>u(e))),b=m({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p((()=>{if(r){function e(e){if(b.paused||!c)return;const t=e.target;c.contains(t)?g.current=t:ue(g.current,{select:!0})}function t(e){if(b.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||ue(g.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&ue(c)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const o=new MutationObserver(n);return c&&o.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),o.disconnect()}}}),[r,c,b.paused]),p((()=>{if(c){de.add(b);const t=document.activeElement;if(!c.contains(t)){const n=new CustomEvent(re,ie);c.addEventListener(re,d),c.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ue(r,{select:t}),document.activeElement!==n)return}((e=le(c),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&ue(c))}return()=>{c.removeEventListener(re,d),setTimeout((()=>{const e=new CustomEvent(oe,ie);c.addEventListener(oe,f),c.dispatchEvent(e),e.defaultPrevented||ue(null!=t?t:document.body,{select:!0}),c.removeEventListener(oe,f),de.remove(b)}),0)}}var e}),[c,d,f,b]);const y=a((e=>{if(!n&&!r)return;if(b.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=le(e),n=se(t,e),r=se(t.reverse(),e);return[n,r]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&ue(i,{select:!0})):(e.preventDefault(),n&&ue(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,b.paused]);return o($.div,P({tabIndex:-1},s,{ref:v,onKeyDown:y}))}));function le(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 se(e,t){for(const n of e)if(!ce(n,{upTo:t}))return n}function ce(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 ue(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 de=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=fe(e,t),e.unshift(t)},remove(t){var n;e=fe(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function fe(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const pe=["top","right","bottom","left"],me=Math.min,he=Math.max,ge=Math.round,ve=Math.floor,be=e=>({x:e,y:e}),ye={left:"right",right:"left",bottom:"top",top:"bottom"},we={start:"end",end:"start"};function xe(e,t,n){return he(e,me(t,n))}function Ee(e,t){return"function"==typeof e?e(t):e}function Ce(e){return e.split("-")[0]}function ke(e){return e.split("-")[1]}function Me(e){return"x"===e?"y":"x"}function Pe(e){return"y"===e?"height":"width"}function Te(e){return["top","bottom"].includes(Ce(e))?"y":"x"}function Ne(e){return Me(Te(e))}function Oe(e){return e.replace(/start|end/g,(e=>we[e]))}function Se(e){return e.replace(/left|right|bottom|top/g,(e=>ye[e]))}function Ae(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 _e(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Re(e,t,n){let{reference:r,floating:o}=e;const i=Te(t),a=Ne(t),l=Pe(a),s=Ce(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;let p;switch(s){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ke(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}async function De(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Ee(t,e),m=Ae(p),h=l[f?"floating"===d?"reference":"floating":d],g=_e(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),v="floating"===d?{...a.floating,x:r,y:o}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),y=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=_e(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:b,strategy:s}):v);return{top:(g.top-w.top+m.top)/y.y,bottom:(w.bottom-g.bottom+m.bottom)/y.y,left:(g.left-w.left+m.left)/y.x,right:(w.right-g.right+m.right)/y.x}}function Le(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ie(e){return pe.some((t=>e[t]>=0))}const Fe=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:l}=t,s=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=Ce(n),l=ke(n),s="y"===Te(n),c=["left","top"].includes(a)?-1:1,u=i&&s?-1:1,d=Ee(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),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}};function ze(e){return Be(e)?(e.nodeName||"").toLowerCase():"#document"}function We(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function je(e){var t;return null==(t=(Be(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Be(e){return e instanceof Node||e instanceof We(e).Node}function Ke(e){return e instanceof Element||e instanceof We(e).Element}function Ge(e){return e instanceof HTMLElement||e instanceof We(e).HTMLElement}function $e(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof We(e).ShadowRoot)}function He(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=qe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Ue(e){return["table","td","th"].includes(ze(e))}function Ve(e){const t=Xe(),n=qe(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!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 Xe(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ye(e){return["html","body","#document"].includes(ze(e))}function qe(e){return We(e).getComputedStyle(e)}function Ze(e){return Ke(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Je(e){if("html"===ze(e))return e;const t=e.assignedSlot||e.parentNode||$e(e)&&e.host||je(e);return $e(t)?t.host:t}function Qe(e){const t=Je(e);return Ye(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ge(t)&&He(t)?t:Qe(t)}function et(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Qe(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=We(o);return i?t.concat(a,a.visualViewport||[],He(o)?o:[],a.frameElement&&n?et(a.frameElement):[]):t.concat(o,et(o,[],n))}function tt(e){const t=qe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ge(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=ge(n)!==i||ge(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function nt(e){return Ke(e)?e:e.contextElement}function rt(e){const t=nt(e);if(!Ge(t))return be(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=tt(t);let a=(i?ge(n.width):n.width)/r,l=(i?ge(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const ot=be(0);function it(e){const t=We(e);return Xe()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ot}function at(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=nt(e);let a=be(1);t&&(r?Ke(r)&&(a=rt(r)):a=rt(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==We(e))&&t}(i,n,r)?it(i):be(0);let s=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=We(i),t=r&&Ke(r)?We(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=rt(o),t=o.getBoundingClientRect(),r=qe(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=i,c+=a,n=We(o),o=n.frameElement}}return _e({width:u,height:d,x:s,y:c})}const lt=[":popover-open",":modal"];function st(e){return lt.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function ct(e){return at(je(e)).left+Ze(e).scrollLeft}function ut(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=We(e),r=je(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const e=Xe();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}(e,n);else if("document"===t)r=function(e){const t=je(e),n=Ze(e),r=e.ownerDocument.body,o=he(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=he(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+ct(e);const l=-n.scrollTop;return"rtl"===qe(r).direction&&(a+=he(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(je(e));else if(Ke(t))r=function(e,t){const n=at(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ge(e)?rt(e):be(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=it(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return _e(r)}function dt(e,t){const n=Je(e);return!(n===t||!Ke(n)||Ye(n))&&("fixed"===qe(n).position||dt(n,t))}function ft(e,t,n){const r=Ge(t),o=je(t),i="fixed"===n,a=at(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=be(0);if(r||!r&&!i)if(("body"!==ze(t)||He(o))&&(l=Ze(t)),r){const e=at(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=ct(o));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function pt(e,t){return Ge(e)&&"fixed"!==qe(e).position?t?t(e):e.offsetParent:null}function mt(e,t){const n=We(e);if(!Ge(e)||st(e))return n;let r=pt(e,t);for(;r&&Ue(r)&&"static"===qe(r).position;)r=pt(r,t);return r&&("html"===ze(r)||"body"===ze(r)&&"static"===qe(r).position&&!Ve(r))?n:r||function(e){let t=Je(e);for(;Ge(t)&&!Ye(t);){if(Ve(t))return t;t=Je(t)}return null}(e)||n}const ht={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=je(r),l=!!t&&st(t.floating);if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},c=be(1);const u=be(0),d=Ge(r);if((d||!d&&!i)&&(("body"!==ze(r)||He(a))&&(s=Ze(r)),Ge(r))){const e=at(r);c=rt(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x,y:n.y*c.y-s.scrollTop*c.y+u.y}},getDocumentElement:je,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=et(e,[],!1).filter((e=>Ke(e)&&"body"!==ze(e))),o=null;const i="fixed"===qe(e).position;let a=i?Je(e):e;for(;Ke(a)&&!Ye(a);){const t=qe(a),n=Ve(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||He(a)&&!n&&dt(e,a))?r=r.filter((e=>e!==a)):o=t,a=Je(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],l=i.reduce(((e,n)=>{const r=ut(t,n,o);return e.top=he(r.top,e.top),e.right=me(r.right,e.right),e.bottom=me(r.bottom,e.bottom),e.left=he(r.left,e.left),e}),ut(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:mt,getElementRects:async function(e){const t=this.getOffsetParent||mt,n=this.getDimensions;return{reference:ft(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=tt(e);return{width:t,height:n}},getScale:rt,isElement:Ke,isRTL:function(e){return"rtl"===qe(e).direction}};function gt(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=nt(e),u=o||i?[...c?et(c):[],...et(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&l?function(e,t){let n,r=null;const o=je(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(l||t(),!d||!f)return;const p={rootMargin:-ve(u)+"px "+-ve(o.clientWidth-(c+d))+"px "+-ve(o.clientHeight-(u+f))+"px "+-ve(c)+"px",threshold:he(0,me(1,s))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==s){if(!m)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}m=!1}try{r=new IntersectionObserver(h,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(h,p)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,m=null;a&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),c&&!s&&m.observe(c),m.observe(t));let h=s?at(e):null;return s&&function t(){const r=at(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n();h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=m)||e.disconnect(),m=null,s&&cancelAnimationFrame(f)}}const vt=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}}},...s}=Ee(e,t),c={x:n,y:r},u=await De(t,s),d=Te(Ce(o)),f=Me(d);let p=c[f],m=c[d];if(i){const e="y"===f?"bottom":"right";p=xe(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";m=xe(m+u["y"===d?"top":"left"],m,m-u[e])}const h=l.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},bt=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=Ee(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Ce(o),b=Ce(l)===l,y=await(null==s.isRTL?void 0:s.isRTL(c.floating)),w=f||(b||!h?[Se(l)]:function(e){const t=Se(e);return[Oe(e),t,Oe(t)]}(l));f||"none"===m||w.push(...function(e,t,n,r){const o=ke(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[]}}(Ce(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Oe)))),i}(l,h,m,y));const x=[l,...w],E=await De(t,g),C=[];let k=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&C.push(E[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=ke(e),o=Ne(e),i=Pe(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Se(a)),[a,Se(a)]}(o,a,y);C.push(E[e[0]],E[e[1]])}if(k=[...k,{placement:o,overflows:C}],!C.every((e=>e<=0))){var M,P;const e=((null==(M=i.flip)?void 0:M.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(P=k.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:P.placement;if(!n)switch(p){case"bestFit":{var T;const e=null==(T=k.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=l}if(o!==n)return{reset:{placement:n}}}return{}}}},yt=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}=Ee(e,t),s=await De(t,l),c=Ce(n),u=ke(n),d="y"===Te(n),{width:f,height:p}=r.floating;let m,h;"top"===c||"bottom"===c?(m=c,h=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(h=c,m="end"===u?"top":"bottom");const g=p-s[m],v=f-s[h],b=!t.middlewareData.shift;let y=g,w=v;if(d){const e=f-s.left-s.right;w=u||b?me(v,e):e}else{const e=p-s.top-s.bottom;y=u||b?me(g,e):e}if(b&&!u){const e=he(s.left,0),t=he(s.right,0),n=he(s.top,0),r=he(s.bottom,0);d?w=f-2*(0!==e||0!==t?e+t:he(s.left,s.right)):y=p-2*(0!==n||0!==r?n+r:he(s.top,s.bottom))}await a({...t,availableWidth:w,availableHeight:y});const x=await o.getDimensions(i.floating);return f!==x.width||p!==x.height?{reset:{rects:!0}}:{}}}},wt=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ee(e,t);switch(r){case"referenceHidden":{const e=Le(await De(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Ie(e)}}}case"escaped":{const e=Le(await De(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Ie(e)}}}default:return{}}}}},xt=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:c,padding:u=0}=Ee(e,t)||{};if(null==c)return{};const d=Ae(u),f={x:n,y:r},p=Ne(o),m=Pe(p),h=await a.getDimensions(c),g="y"===p,v=g?"top":"left",b=g?"bottom":"right",y=g?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-f[p]-i.floating[m],x=f[p]-i.reference[p],E=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let C=E?E[y]:0;C&&await(null==a.isElement?void 0:a.isElement(E))||(C=l.floating[y]||i.floating[m]);const k=w/2-x/2,M=C/2-h[m]/2-1,P=me(d[v],M),T=me(d[b],M),N=P,O=C-h[m]-T,S=C/2-h[m]/2+k,A=xe(N,S,O),_=!s.arrow&&null!=ke(o)&&S!==A&&i.reference[m]/2-(S<N?P:T)-h[m]/2<0,R=_?S<N?S-N:S-O:0;return{[p]:f[p]+R,data:{[p]:A,centerOffset:S-A-R,..._&&{alignmentOffset:R}},reset:_}}}),Et=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:s=!0,crossAxis:c=!0}=Ee(e,t),u={x:n,y:r},d=Te(o),f=Me(d);let p=u[f],m=u[d];const h=Ee(l,t),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+g.mainAxis,n=i.reference[f]+i.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var v,b;const e="y"===f?"width":"height",t=["top","left"].includes(Ce(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(b=a.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Ct=(e,t,n)=>{const r=new Map,o={platform:ht,...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),s=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Re(c,r,s),f=r,p={},m=0;for(let n=0;n<l.length;n++){const{name:i,fn:h}=l[n],{x:g,y:v,data:b,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,p={...p,[i]:{...p[i],...b}},y&&m<=50&&(m++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:u,y:d}=Re(c,f,s))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},kt=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?xt({element:n.current,padding:r}).fn(t):{}:n?xt({element:n,padding:r}).fn(t):{};var o}});var Mt="undefined"!=typeof document?f:p;function Pt(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(!Pt(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)&&!Pt(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Tt(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Nt(e,t){const n=Tt(e);return Math.round(t*n)/n}function Ot(t){const n=e.useRef(t);return Mt((()=>{n.current=t})),n}const St="Popper",[At,_t]=T(St),[Rt,Dt]=At(St),Lt=l(((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,a=Dt("PopperAnchor",n),l=m(null),s=S(t,l);return p((()=>{a.onAnchorChange((null==r?void 0:r.current)||l.current)})),r?null:o($.div,P({},i,{ref:s}))})),It="PopperContent",[Ft,zt]=At(It),Wt=l(((t,n)=>{var r,i,a,l,s,c,u,d;const{__scopePopper:f,side:p="bottom",sideOffset:m=0,align:g="center",alignOffset:b=0,arrowPadding:y=0,avoidCollisions:w=!0,collisionBoundary:x=[],collisionPadding:E=0,sticky:C="partial",hideWhenDetached:k=!1,updatePositionStrategy:M="optimized",onPlaced:T,...N}=t,O=Dt(It,f),[A,_]=h(null),R=S(n,(e=>_(e))),[D,L]=h(null),I=function(e){const[t,n]=h(void 0);return j((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(D),F=null!==(r=null==I?void 0:I.width)&&void 0!==r?r:0,z=null!==(i=null==I?void 0:I.height)&&void 0!==i?i:0,W=p+("center"!==g?"-"+g:""),B="number"==typeof E?E:{top:0,right:0,bottom:0,left:0,...E},K=Array.isArray(x)?x:[x],G=K.length>0,H={padding:B,boundary:K.filter(jt),altBoundary:G},{refs:V,floatingStyles:X,placement:Y,isPositioned:q,middlewareData:Z}=function(t){void 0===t&&(t={});const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:l}={},transform:s=!0,whileElementsMounted:c,open:u}=t,[d,f]=e.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[p,m]=e.useState(o);Pt(p,o)||m(o);const[h,g]=e.useState(null),[b,y]=e.useState(null),w=e.useCallback((e=>{e!==k.current&&(k.current=e,g(e))}),[]),x=e.useCallback((e=>{e!==M.current&&(M.current=e,y(e))}),[]),E=a||h,C=l||b,k=e.useRef(null),M=e.useRef(null),P=e.useRef(d),T=null!=c,N=Ot(c),O=Ot(i),S=e.useCallback((()=>{if(!k.current||!M.current)return;const e={placement:n,strategy:r,middleware:p};O.current&&(e.platform=O.current),Ct(k.current,M.current,e).then((e=>{const t={...e,isPositioned:!0};A.current&&!Pt(P.current,t)&&(P.current=t,v.flushSync((()=>{f(t)})))}))}),[p,n,r,O]);Mt((()=>{!1===u&&P.current.isPositioned&&(P.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[u]);const A=e.useRef(!1);Mt((()=>(A.current=!0,()=>{A.current=!1})),[]),Mt((()=>{if(E&&(k.current=E),C&&(M.current=C),E&&C){if(N.current)return N.current(E,C,S);S()}}),[E,C,S,N,T]);const _=e.useMemo((()=>({reference:k,floating:M,setReference:w,setFloating:x})),[w,x]),R=e.useMemo((()=>({reference:E,floating:C})),[E,C]),D=e.useMemo((()=>{const e={position:r,left:0,top:0};if(!R.floating)return e;const t=Nt(R.floating,d.x),n=Nt(R.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+n+"px)",...Tt(R.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}}),[r,s,R.floating,d.x,d.y]);return e.useMemo((()=>({...d,update:S,refs:_,elements:R,floatingStyles:D})),[d,S,_,R,D])}({strategy:"fixed",placement:W,whileElementsMounted:(...e)=>gt(...e,{animationFrame:"always"===M}),elements:{reference:O.anchor},middleware:[Fe({mainAxis:m+z,alignmentAxis:b}),w&&vt({mainAxis:!0,crossAxis:!1,limiter:"partial"===C?Et():void 0,...H}),w&&bt({...H}),yt({...H,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`)}}),D&&kt({element:D,padding:y}),Bt({arrowWidth:F,arrowHeight:z}),k&&wt({strategy:"referenceHidden",...H})]}),[J,Q]=Kt(Y),ee=U(T);j((()=>{q&&(null==ee||ee())}),[q,ee]);const te=null===(a=Z.arrow)||void 0===a?void 0:a.x,ne=null===(l=Z.arrow)||void 0===l?void 0:l.y,re=0!==(null===(s=Z.arrow)||void 0===s?void 0:s.centerOffset),[oe,ie]=h();return j((()=>{A&&ie(window.getComputedStyle(A).zIndex)}),[A]),o("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:q?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[null===(c=Z.transformOrigin)||void 0===c?void 0:c.x,null===(u=Z.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:t.dir},o(Ft,{scope:f,placedSide:J,onArrowChange:L,arrowX:te,arrowY:ne,shouldHideArrow:re},o($.div,P({"data-side":J,"data-align":Q},N,{ref:R,style:{...N.style,animation:q?void 0:"none",opacity:null!==(d=Z.hide)&&void 0!==d&&d.referenceHidden?0:void 0}}))))}));function jt(e){return null!==e}const Bt=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:l,rects:s,middlewareData:c}=t,u=0!==(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset),d=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[p,m]=Kt(l),h={start:"0%",center:"50%",end:"100%"}[m],g=(null!==(r=null===(o=c.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,v=(null!==(i=null===(a=c.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let b="",y="";return"bottom"===p?(b=u?h:`${g}px`,y=-f+"px"):"top"===p?(b=u?h:`${g}px`,y=`${s.floating.height+f}px`):"right"===p?(b=-f+"px",y=u?h:`${v}px`):"left"===p&&(b=`${s.floating.width+f}px`,y=u?h:`${v}px`),{data:{x:b,y:y}}}});function Kt(e){const[t,n="center"]=e.split("-");return[t,n]}const Gt=e=>{const{__scopePopper:t,children:n}=e,[r,i]=h(null);return o(Rt,{scope:t,anchor:r,onAnchorChange:i},n)},$t=Lt,Ht=Wt,Ut=l(((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...i}=e;return r?b.createPortal(o($.div,P({},i,{ref:t})),r):null}));const Vt=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=h(),r=m({}),o=m(e),i=m("none"),l=e?"mounted":"unmounted",[s,c]=function(e,t){return g(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p((()=>{const e=Xt(r.current);i.current="mounted"===s?e:"none"}),[s]),j((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Xt(t);if(e)c("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))c("UNMOUNT");else{c(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,c]),j((()=>{if(t){const e=e=>{const n=Xt(r.current).includes(e.animationName);e.target===t&&n&&y((()=>c("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=Xt(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:a((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):s.only(n),i=S(r.ref,o.ref);return"function"==typeof n||r.isPresent?u(o,{ref:i}):null};function Xt(e){return(null==e?void 0:e.animationName)||"none"}function Yt({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=h(e),[r]=n,o=m(r),i=U(t);return p((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,l=i?e:r,s=U(n);return[l,a((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[i,e,o,s])]}Vt.displayName="Presence";const qt="rovingFocusGroup.onEntryFocus",Zt={bubbles:!1,cancelable:!0},Jt="RovingFocusGroup",[Qt,en,tn]=I(Jt),[nn,rn]=T(Jt,[tn]),[on,an]=nn(Jt),ln=l(((e,t)=>o(Qt.Provider,{scope:e.__scopeRovingFocusGroup},o(Qt.Slot,{scope:e.__scopeRovingFocusGroup},o(sn,P({},e,{ref:t})))))),sn=l(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:l,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:u,onEntryFocus:d,...f}=e,g=m(null),v=S(t,g),b=z(l),[y=null,w]=Yt({prop:s,defaultProp:c,onChange:u}),[x,E]=h(!1),C=U(d),k=en(n),M=m(!1),[T,N]=h(0);return p((()=>{const e=g.current;if(e)return e.addEventListener(qt,C),()=>e.removeEventListener(qt,C)}),[C]),o(on,{scope:n,orientation:r,dir:b,loop:i,currentTabStopId:y,onItemFocus:a((e=>w(e)),[w]),onItemShiftTab:a((()=>E(!0)),[]),onFocusableItemAdd:a((()=>N((e=>e+1))),[]),onFocusableItemRemove:a((()=>N((e=>e-1))),[])},o($.div,P({tabIndex:x||0===T?-1:0,"data-orientation":r},f,{ref:v,style:{outline:"none",...e.style},onMouseDown:W(e.onMouseDown,(()=>{M.current=!0})),onFocus:W(e.onFocus,(e=>{const t=!M.current;if(e.target===e.currentTarget&&t&&!x){const t=new CustomEvent(qt,Zt);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=k().filter((e=>e.focusable));dn([e.find((e=>e.active)),e.find((e=>e.id===y)),...e].filter(Boolean).map((e=>e.ref.current)))}}M.current=!1})),onBlur:W(e.onBlur,(()=>E(!1)))})))})),cn=l(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,...l}=e,s=G(),c=a||s,u=an("RovingFocusGroupItem",n),d=u.currentTabStopId===c,f=en(n),{onFocusableItemAdd:m,onFocusableItemRemove:h}=u;return p((()=>{if(r)return m(),()=>h()}),[r,m,h]),o(Qt.ItemSlot,{scope:n,id:c,focusable:r,active:i},o($.span,P({tabIndex:d?0:-1,"data-orientation":u.orientation},l,{ref:t,onMouseDown:W(e.onMouseDown,(e=>{r?u.onItemFocus(c):e.preventDefault()})),onFocus:W(e.onFocus,(()=>u.onItemFocus(c))),onKeyDown:W(e.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:un[r]}(e,u.orientation,u.dir);if(void 0!==t){e.preventDefault();let o=f().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((()=>dn(o)))}var n,r}))})))})),un={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function dn(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const fn=ln,pn=cn;var mn=new WeakMap,hn=new WeakMap,gn={},vn=0,bn=function(e){return e&&(e.host||bn(e.parentNode))},yn=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=bn(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]);gn[n]||(gn[n]=new WeakMap);var i=gn[n],a=[],l=new Set,s=new Set(o),c=function(e){e&&!l.has(e)&&(l.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!s.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,s=(mn.get(e)||0)+1,c=(i.get(e)||0)+1;mn.set(e,s),i.set(e,c),a.push(e),1===s&&o&&hn.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}}))};return u(t),l.clear(),vn++,function(){a.forEach((function(e){var t=mn.get(e)-1,o=i.get(e)-1;mn.set(e,t),i.set(e,o),t||(hn.has(e)||e.removeAttribute(r),hn.delete(e)),o||e.removeAttribute(n)})),--vn||(mn=new WeakMap,mn=new WeakMap,hn=new WeakMap,gn={})}},wn=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]"))),yn(r,o,n,"aria-hidden")):function(){return null}},xn="right-scroll-bar-position",En="width-before-scroll-bar";function Cn(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var kn=new WeakMap;function Mn(t,n){var r,o,i,a=(r=n||null,o=function(e){return t.forEach((function(t){return Cn(t,e)}))},(i=h((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);return e.useLayoutEffect((function(){var e=kn.get(a);if(e){var n=new Set(e),r=new Set(t),o=a.current;n.forEach((function(e){r.has(e)||Cn(e,null)})),r.forEach((function(e){n.has(e)||Cn(e,o)}))}kn.set(a,t)}),[t]),a}function Pn(e){return e}var Tn=function(t){var n=t.sideCar,r=M(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=n.read();if(!o)throw new Error("Sidecar medium not found");return e.createElement(o,k({},r))};Tn.isSideCarExport=!0;var Nn=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Pn);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=k({async:!0,ssr:!1},e),t}(),On=function(){},Sn=e.forwardRef((function(t,n){var r=e.useRef(null),o=e.useState({onScrollCapture:On,onWheelCapture:On,onTouchMoveCapture:On}),i=o[0],a=o[1],l=t.forwardProps,s=t.children,c=t.className,u=t.removeScrollBar,d=t.enabled,f=t.shards,p=t.sideCar,m=t.noIsolation,h=t.inert,g=t.allowPinchZoom,v=t.as,b=void 0===v?"div":v,y=M(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=p,x=Mn([r,n]),E=k(k({},y),i);return e.createElement(e.Fragment,null,d&&e.createElement(w,{sideCar:Nn,removeScrollBar:u,shards:f,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:r}),l?e.cloneElement(e.Children.only(s),k(k({},E),{ref:x})):e.createElement(b,k({},E,{className:c,ref:x}),s))}));Sn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Sn.classNames={fullWidth:En,zeroRight:xn};function An(){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 _n=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=An())&&(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)}}},Rn=function(){var t,n=(t=_n(),function(n,r){e.useEffect((function(){return t.add(n),function(){t.remove()}}),[n&&r])});return function(e){var t=e.styles,r=e.dynamic;return n(t,r),null}},Dn={left:0,top:0,right:0,gap:0},Ln=function(e){return parseInt(e||"",10)||0},In=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Dn;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[Ln(n),Ln(r),Ln(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])}},Fn=Rn(),zn=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(xn," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(En," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(xn," .").concat(xn," {\n right: 0 ").concat(r,";\n }\n \n .").concat(En," .").concat(En," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},Wn=function(t){var n=t.noRelative,r=t.noImportant,o=t.gapMode,i=void 0===o?"margin":o,a=e.useMemo((function(){return In(i)}),[i]);return e.createElement(Fn,{styles:zn(a,!n,i,r?"":"!important")})},jn=!1;if("undefined"!=typeof window)try{var Bn=Object.defineProperty({},"passive",{get:function(){return jn=!0,!0}});window.addEventListener("test",Bn,Bn),window.removeEventListener("test",Bn,Bn)}catch(e){jn=!1}var Kn=!!jn&&{passive:!1},Gn=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])},$n=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),Hn(e,n)){var r=Un(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Hn=function(e,t){return"v"===e?function(e){return Gn(e,"overflowY")}(t):function(e){return Gn(e,"overflowX")}(t)},Un=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},Vn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Xn=function(e){return[e.deltaX,e.deltaY]},Yn=function(e){return e&&"current"in e?e.current:e},qn=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Zn=0,Jn=[];var Qn,er=(Qn=function(t){var n=e.useRef([]),r=e.useRef([0,0]),o=e.useRef(),i=e.useState(Zn++)[0],a=e.useState((function(){return Rn()}))[0],l=e.useRef(t);e.useEffect((function(){l.current=t}),[t]),e.useEffect((function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=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))}([t.lockRef.current],(t.shards||[]).map(Yn),!0).filter(Boolean);return e.forEach((function(e){return e.classList.add("allow-interactivity-".concat(i))})),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(i))}))}}}),[t.inert,t.lockRef.current,t.shards]);var s=e.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!l.current.allowPinchZoom;var n,i=Vn(e),a=r.current,s="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,d=Math.abs(s)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=$n(d,u);if(!f)return!0;if(f?n=d:(n="v"===d?"h":"v",f=$n(d,u)),!f)return!1;if(!o.current&&"changedTouches"in e&&(s||c)&&(o.current=n),!n)return!0;var p=o.current||n;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,s=t.contains(l),c=!1,u=a>0,d=0,f=0;do{var p=Un(e,l),m=p[0],h=p[1]-p[2]-i*m;(m||h)&&Hn(e,l)&&(d+=h,f+=m),l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(u&&(o&&0===d||!o&&a>d)||!u&&(o&&0===f||!o&&-a>f))&&(c=!0),c}(p,t,e,"h"===p?s:c,!0)}),[]),c=e.useCallback((function(e){var t=e;if(Jn.length&&Jn[Jn.length-1]===a){var r="deltaY"in t?Xn(t):Vn(t),o=n.current.filter((function(e){return e.name===t.type&&e.target===t.target&&(n=e.delta,o=r,n[0]===o[0]&&n[1]===o[1]);var n,o}))[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var i=(l.current.shards||[]).map(Yn).filter(Boolean).filter((function(e){return e.contains(t.target)}));(i.length>0?s(t,i[0]):!l.current.noIsolation)&&t.cancelable&&t.preventDefault()}}}),[]),u=e.useCallback((function(e,t,r,o){var i={name:e,delta:t,target:r,should:o};n.current.push(i),setTimeout((function(){n.current=n.current.filter((function(e){return e!==i}))}),1)}),[]),d=e.useCallback((function(e){r.current=Vn(e),o.current=void 0}),[]),f=e.useCallback((function(e){u(e.type,Xn(e),e.target,s(e,t.lockRef.current))}),[]),p=e.useCallback((function(e){u(e.type,Vn(e),e.target,s(e,t.lockRef.current))}),[]);e.useEffect((function(){return Jn.push(a),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Kn),document.addEventListener("touchmove",c,Kn),document.addEventListener("touchstart",d,Kn),function(){Jn=Jn.filter((function(e){return e!==a})),document.removeEventListener("wheel",c,Kn),document.removeEventListener("touchmove",c,Kn),document.removeEventListener("touchstart",d,Kn)}}),[]);var m=t.removeScrollBar,h=t.inert;return e.createElement(e.Fragment,null,h?e.createElement(a,{styles:qn(i)}):null,m?e.createElement(Wn,{gapMode:"margin"}):null)},Nn.useMedium(Qn),Tn),tr=e.forwardRef((function(t,n){return e.createElement(Sn,k({},t,{ref:n,sideCar:er}))}));tr.classNames=Sn.classNames;var nr=tr;const rr=["Enter"," "],or=["ArrowUp","PageDown","End"],ir=["ArrowDown","PageUp","Home",...or],ar={ltr:[...rr,"ArrowRight"],rtl:[...rr,"ArrowLeft"]},lr={ltr:["ArrowLeft"],rtl:["ArrowRight"]},sr="Menu",[cr,ur,dr]=I(sr),[fr,pr]=T(sr,[dr,_t,rn]),mr=_t(),hr=rn(),[gr,vr]=fr(sr),[br,yr]=fr(sr),wr=l(((e,t)=>{const{__scopeMenu:n,...r}=e,i=mr(n);return o($t,P({},i,r,{ref:t}))})),xr="MenuPortal",[Er,Cr]=fr(xr,{forceMount:void 0}),kr="MenuContent",[Mr,Pr]=fr(kr),Tr=l(((e,t)=>{const n=Cr(kr,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=vr(kr,e.__scopeMenu),l=yr(kr,e.__scopeMenu);return o(cr.Provider,{scope:e.__scopeMenu},o(Vt,{present:r||a.open},o(cr.Slot,{scope:e.__scopeMenu},l.modal?o(Nr,P({},i,{ref:t})):o(Or,P({},i,{ref:t})))))})),Nr=l(((e,t)=>{const n=vr(kr,e.__scopeMenu),r=m(null),i=S(t,r);return p((()=>{const e=r.current;if(e)return wn(e)}),[]),o(Sr,P({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:W(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))})),Or=l(((e,t)=>{const n=vr(kr,e.__scopeMenu);return o(Sr,P({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))})),Sr=l(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:l,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:u,onEscapeKeyDown:f,onPointerDownOutside:g,onFocusOutside:v,onInteractOutside:b,onDismiss:y,disableOutsideScroll:w,...x}=e,E=vr(kr,n),C=yr(kr,n),k=mr(n),M=hr(n),T=ur(n),[N,O]=h(null),_=m(null),R=S(t,_,E.onContentChange),D=m(0),L=m(""),I=m(0),F=m(null),z=m("right"),j=m(0),B=w?nr:d,K=w?{as:A,allowPinchZoom:!0}:void 0,G=e=>{var t,n;const r=L.current+e,o=T().filter((e=>!e.disabled)),i=document.activeElement,a=null===(t=o.find((e=>e.ref.current===i)))||void 0===t?void 0:t.textValue,l=function(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0])),o=r?t[0]:t,i=n?e.indexOf(n):-1;let a=(l=e,s=Math.max(i,0),l.map(((e,t)=>l[(s+t)%l.length])));var l,s;1===o.length&&(a=a.filter((e=>e!==n)));const c=a.find((e=>e.toLowerCase().startsWith(o.toLowerCase())));return c!==n?c:void 0}(o.map((e=>e.textValue)),r,a),s=null===(n=o.find((e=>e.textValue===l)))||void 0===n?void 0:n.ref.current;!function e(t){L.current=t,window.clearTimeout(D.current),""!==t&&(D.current=window.setTimeout((()=>e("")),1e3))}(r),s&&setTimeout((()=>s.focus()))};p((()=>()=>window.clearTimeout(D.current)),[]),p((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:ne()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:ne()),te++,()=>{1===te&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),te--}}),[]);const $=a((e=>{var t,n;return z.current===(null===(t=F.current)||void 0===t?void 0:t.side)&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return 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,s=t[i].x,c=t[i].y;l>r!=c>r&&n<(s-a)*(r-l)/(c-l)+a&&(o=!o)}return o}(n,t)}(e,null===(n=F.current)||void 0===n?void 0:n.area)}),[]);return o(Mr,{scope:n,searchRef:L,onItemEnter:a((e=>{$(e)&&e.preventDefault()}),[$]),onItemLeave:a((e=>{var t;$(e)||(null===(t=_.current)||void 0===t||t.focus(),O(null))}),[$]),onTriggerLeave:a((e=>{$(e)&&e.preventDefault()}),[$]),pointerGraceTimerRef:I,onPointerGraceIntentChange:a((e=>{F.current=e}),[])},o(B,K,o(ae,{asChild:!0,trapped:i,onMountAutoFocus:W(l,(e=>{var t;e.preventDefault(),null===(t=_.current)||void 0===t||t.focus()})),onUnmountAutoFocus:s},o(J,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:f,onPointerDownOutside:g,onFocusOutside:v,onInteractOutside:b,onDismiss:y},o(fn,P({asChild:!0},M,{dir:C.dir,orientation:"vertical",loop:r,currentTabStopId:N,onCurrentTabStopIdChange:O,onEntryFocus:W(u,(e=>{C.isUsingKeyboardRef.current||e.preventDefault()}))}),o(Ht,P({role:"menu","aria-orientation":"vertical","data-state":Xr(E.open),"data-radix-menu-content":"",dir:C.dir},k,x,{ref:R,style:{outline:"none",...x.style},onKeyDown:W(x.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&G(e.key));const o=_.current;if(e.target!==o)return;if(!ir.includes(e.key))return;e.preventDefault();const i=T().filter((e=>!e.disabled)).map((e=>e.ref.current));or.includes(e.key)&&i.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(i)})),onBlur:W(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(D.current),L.current="")})),onPointerMove:W(e.onPointerMove,Zr((e=>{const t=e.target,n=j.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>j.current?"right":"left";z.current=t,j.current=e.clientX}})))})))))))})),Ar=l(((e,t)=>{const{__scopeMenu:n,...r}=e;return o($.div,P({},r,{ref:t}))})),_r="MenuItem",Rr="menu.itemSelect",Dr=l(((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,a=m(null),l=yr(_r,e.__scopeMenu),s=Pr(_r,e.__scopeMenu),c=S(t,a),u=m(!1);return o(Lr,P({},i,{ref:c,disabled:n,onClick:W(e.onClick,(()=>{const e=a.current;if(!n&&e){const t=new CustomEvent(Rr,{bubbles:!0,cancelable:!0});e.addEventListener(Rr,(e=>null==r?void 0:r(e)),{once:!0}),H(e,t),t.defaultPrevented?u.current=!1:l.onClose()}})),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),u.current=!0},onPointerUp:W(e.onPointerUp,(e=>{var t;u.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:W(e.onKeyDown,(e=>{const t=""!==s.searchRef.current;n||t&&" "===e.key||rr.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),Lr=l(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,l=Pr(_r,n),s=hr(n),c=m(null),u=S(t,c),[d,f]=h(!1),[g,v]=h("");return p((()=>{const e=c.current;var t;e&&v((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[a.children]),o(cr.ItemSlot,{scope:n,disabled:r,textValue:null!=i?i:g},o(pn,P({asChild:!0},s,{focusable:!r}),o($.div,P({role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:u,onPointerMove:W(e.onPointerMove,Zr((e=>{if(r)l.onItemLeave(e);else if(l.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus()}}))),onPointerLeave:W(e.onPointerLeave,Zr((e=>l.onItemLeave(e)))),onFocus:W(e.onFocus,(()=>f(!0))),onBlur:W(e.onBlur,(()=>f(!1)))}))))})),Ir=l(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...i}=e;return o(Br,{scope:e.__scopeMenu,checked:n},o(Dr,P({role:"menuitemcheckbox","aria-checked":Yr(n)?"mixed":n},i,{ref:t,"data-state":qr(n),onSelect:W(i.onSelect,(()=>null==r?void 0:r(!!Yr(n)||!n)),{checkForDefaultPrevented:!1})})))})),[Fr,zr]=fr("MenuRadioGroup",{value:void 0,onValueChange:()=>{}}),Wr=l(((e,t)=>{const{value:n,...r}=e,i=zr("MenuRadioItem",e.__scopeMenu),a=n===i.value;return o(Br,{scope:e.__scopeMenu,checked:a},o(Dr,P({role:"menuitemradio","aria-checked":a},r,{ref:t,"data-state":qr(a),onSelect:W(r.onSelect,(()=>{var e;return null===(e=i.onValueChange)||void 0===e?void 0:e.call(i,n)}),{checkForDefaultPrevented:!1})})))})),jr="MenuItemIndicator",[Br,Kr]=fr(jr,{checked:!1}),Gr=l(((e,t)=>{const{__scopeMenu:n,forceMount:r,...i}=e,a=Kr(jr,n);return o(Vt,{present:r||Yr(a.checked)||!0===a.checked},o($.span,P({},i,{ref:t,"data-state":qr(a.checked)})))})),$r=l(((e,t)=>{const{__scopeMenu:n,...r}=e;return o($.div,P({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))})),[Hr,Ur]=fr("MenuSub"),Vr="MenuSubTrigger";function Xr(e){return e?"open":"closed"}function Yr(e){return"indeterminate"===e}function qr(e){return Yr(e)?"indeterminate":e?"checked":"unchecked"}function Zr(e){return t=>"mouse"===t.pointerType?e(t):void 0}const Jr=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:l,modal:s=!0}=e,c=mr(t),[u,d]=h(null),f=m(!1),g=U(l),v=z(i);return p((()=>{const e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),o(Gt,c,o(gr,{scope:t,open:n,onOpenChange:g,content:u,onContentChange:d},o(br,{scope:t,onClose:a((()=>g(!1)),[g]),isUsingKeyboardRef:f,dir:v,modal:s},r)))},Qr=wr,eo=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=vr(xr,t);return o(Er,{scope:t,forceMount:n},o(Vt,{present:n||a.open},o(Ut,{asChild:!0,container:i},r)))},to=Tr,no=Ar,ro=Dr,oo=Ir,io=Wr,ao=Gr,lo=$r,so=l(((e,t)=>{const n=vr(Vr,e.__scopeMenu),r=yr(Vr,e.__scopeMenu),i=Ur(Vr,e.__scopeMenu),l=Pr(Vr,e.__scopeMenu),s=m(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:u}=l,d={__scopeMenu:e.__scopeMenu},f=a((()=>{s.current&&window.clearTimeout(s.current),s.current=null}),[]);return p((()=>f),[f]),p((()=>{const e=c.current;return()=>{window.clearTimeout(e),u(null)}}),[c,u]),o(wr,P({asChild:!0},d),o(Lr,P({id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":Xr(n.open)},e,{ref:O(t,i.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:W(e.onPointerMove,Zr((t=>{l.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||s.current||(l.onPointerGraceIntentChange(null),s.current=window.setTimeout((()=>{n.onOpenChange(!0),f()}),100))}))),onPointerLeave:W(e.onPointerLeave,Zr((e=>{var t;f();const r=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(r){var o;const t=null===(o=n.content)||void 0===o?void 0:o.dataset.side,i="right"===t,a=i?-5:5,s=r[i?"left":"right"],u=r[i?"right":"left"];l.onPointerGraceIntentChange({area:[{x:e.clientX+a,y:e.clientY},{x:s,y:r.top},{x:u,y:r.top},{x:u,y:r.bottom},{x:s,y:r.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout((()=>l.onPointerGraceIntentChange(null)),300)}else{if(l.onTriggerLeave(e),e.defaultPrevented)return;l.onPointerGraceIntentChange(null)}}))),onKeyDown:W(e.onKeyDown,(t=>{const o=""!==l.searchRef.current;var i;e.disabled||o&&" "===t.key||ar[r.dir].includes(t.key)&&(n.onOpenChange(!0),null===(i=n.content)||void 0===i||i.focus(),t.preventDefault())}))})))})),co=l(((e,t)=>{const n=Cr(kr,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=vr(kr,e.__scopeMenu),l=yr(kr,e.__scopeMenu),s=Ur("MenuSubContent",e.__scopeMenu),c=m(null),u=S(t,c);return o(cr.Provider,{scope:e.__scopeMenu},o(Vt,{present:r||a.open},o(cr.Slot,{scope:e.__scopeMenu},o(Sr,P({id:s.contentId,"aria-labelledby":s.triggerId},i,{ref:u,align:"start",side:"rtl"===l.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;l.isUsingKeyboardRef.current&&(null===(t=c.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:W(e.onFocusOutside,(e=>{e.target!==s.trigger&&a.onOpenChange(!1)})),onEscapeKeyDown:W(e.onEscapeKeyDown,(e=>{l.onClose(),e.preventDefault()})),onKeyDown:W(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=lr[l.dir].includes(e.key);var r;t&&n&&(a.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault())}))})))))})),uo="Menubar",[fo,po,mo]=I(uo),[ho,go]=T(uo,[mo,rn]),vo=pr(),bo=rn(),[yo,wo]=ho(uo),xo=l(((e,t)=>{const{__scopeMenubar:n,value:r,onValueChange:i,defaultValue:l,loop:s=!0,dir:c,...u}=e,d=z(c),f=bo(n),[p="",m]=Yt({prop:r,onChange:i,defaultProp:l}),[g,v]=h(null);return o(yo,{scope:n,value:p,onMenuOpen:a((e=>{m(e),v(e)}),[m]),onMenuClose:a((()=>m("")),[m]),onMenuToggle:a((e=>{m((t=>Boolean(t)?"":e)),v(e)}),[m]),dir:d,loop:s},o(fo.Provider,{scope:n},o(fo.Slot,{scope:n},o(fn,P({asChild:!0},f,{orientation:"horizontal",loop:s,dir:d,currentTabStopId:g,onCurrentTabStopIdChange:v}),o($.div,P({role:"menubar"},u,{ref:t}))))))})),Eo="MenubarMenu",[Co,ko]=ho(Eo),Mo="MenubarTrigger",Po=l(((e,t)=>{const{__scopeMenubar:n,disabled:r=!1,...i}=e,a=bo(n),l=vo(n),s=wo(Mo,n),c=ko(Mo,n),u=m(null),d=S(t,u,c.triggerRef),[f,p]=h(!1),g=s.value===c.value;return o(fo.ItemSlot,{scope:n,value:c.value,disabled:r},o(pn,P({asChild:!0},a,{focusable:!r,tabStopId:c.value}),o(Qr,P({asChild:!0},l),o($.button,P({type:"button",role:"menuitem",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":g,"aria-controls":g?c.contentId:void 0,"data-highlighted":f?"":void 0,"data-state":g?"open":"closed","data-disabled":r?"":void 0,disabled:r},i,{ref:d,onPointerDown:W(e.onPointerDown,(e=>{r||0!==e.button||!1!==e.ctrlKey||(s.onMenuOpen(c.value),g||e.preventDefault())})),onPointerEnter:W(e.onPointerEnter,(()=>{var e;Boolean(s.value)&&!g&&(s.onMenuOpen(c.value),null===(e=u.current)||void 0===e||e.focus())})),onKeyDown:W(e.onKeyDown,(e=>{r||(["Enter"," "].includes(e.key)&&s.onMenuToggle(c.value),"ArrowDown"===e.key&&s.onMenuOpen(c.value),["Enter"," ","ArrowDown"].includes(e.key)&&(c.wasKeyboardTriggerOpenRef.current=!0,e.preventDefault()))})),onFocus:W(e.onFocus,(()=>p(!0))),onBlur:W(e.onBlur,(()=>p(!1)))})))))})),To="MenubarContent",No=l(((e,t)=>{const{__scopeMenubar:n,align:r="start",...i}=e,a=vo(n),l=wo(To,n),s=ko(To,n),c=po(n),u=m(!1);return o(to,P({id:s.contentId,"aria-labelledby":s.triggerId,"data-radix-menubar-content":""},a,i,{ref:t,align:r,onCloseAutoFocus:W(e.onCloseAutoFocus,(e=>{var t;Boolean(l.value)||u.current||(null===(t=s.triggerRef.current)||void 0===t||t.focus());u.current=!1,e.preventDefault()})),onFocusOutside:W(e.onFocusOutside,(e=>{const t=e.target;c().some((e=>{var n;return null===(n=e.ref.current)||void 0===n?void 0:n.contains(t)}))&&e.preventDefault()})),onInteractOutside:W(e.onInteractOutside,(()=>{u.current=!0})),onEntryFocus:e=>{s.wasKeyboardTriggerOpenRef.current||e.preventDefault()},onKeyDown:W(e.onKeyDown,(e=>{if(["ArrowRight","ArrowLeft"].includes(e.key)){const r=e.target,o=r.hasAttribute("data-radix-menubar-subtrigger"),i=r.closest("[data-radix-menubar-content]")!==e.currentTarget,a=("rtl"===l.dir?"ArrowRight":"ArrowLeft")===e.key;if(!a&&o)return;if(i&&a)return;let u=c().filter((e=>!e.disabled)).map((e=>e.value));a&&u.reverse();const d=u.indexOf(s.value);u=l.loop?(n=d+1,(t=u).map(((e,r)=>t[(n+r)%t.length]))):u.slice(d+1);const[f]=u;f&&l.onMenuOpen(f)}var t,n}),{checkForDefaultPrevented:!1}),style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}}))}));const Oo=xo,So=e=>{const{__scopeMenubar:t,value:n,...r}=e,i=G(),a=n||i||"LEGACY_REACT_AUTO_VALUE",l=wo(Eo,t),s=vo(t),c=m(null),u=m(!1),d=l.value===a;return p((()=>{d||(u.current=!1)}),[d]),o(Co,{scope:t,value:a,triggerId:G(),triggerRef:c,contentId:G(),wasKeyboardTriggerOpenRef:u},o(Jr,P({},s,{open:d,onOpenChange:e=>{e||l.onMenuClose()},modal:!1,dir:l.dir},r)))},Ao=Po,_o=e=>{const{__scopeMenubar:t,...n}=e,r=vo(t);return o(eo,P({},r,n))},Ro=No,Do=l(((e,t)=>{const{__scopeMenubar:n,...r}=e,i=vo(n);return o(no,P({},i,r,{ref:t}))})),Lo=l(((e,t)=>{const{__scopeMenubar:n,...r}=e,i=vo(n);return o(ro,P({},i,r,{ref:t}))})),Io=l(((e,t)=>{const{__scopeMenubar:n,...r}=e,i=vo(n);return o(oo,P({},i,r,{ref:t}))})),Fo=l(((e,t)=>{const{__scopeMenubar:n,...r}=e,i=vo(n);return o(io,P({},i,r,{ref:t}))})),zo=l(((e,t)=>{const{__scopeMenubar:n,...r}=e,i=vo(n);return o(ao,P({},i,r,{ref:t}))})),Wo=l(((e,t)=>{const{__scopeMenubar:n,...r}=e,i=vo(n);return o(lo,P({},i,r,{ref:t}))})),jo=l(((e,t)=>{const{__scopeMenubar:n,...r}=e,i=vo(n);return o(so,P({"data-radix-menubar-subtrigger":""},i,r,{ref:t}))})),Bo=l(((e,t)=>{const{__scopeMenubar:n,...r}=e,i=vo(n);return o(co,P({},i,{"data-radix-menubar-content":""},r,{ref:t,style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}}))}));var Ko={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Go=(e,t)=>{const n=l((({color:n="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:a,children:l,...s},c)=>{return o("svg",{ref:c,...Ko,width:r,height:r,stroke:n,strokeWidth:a?24*Number(i)/Number(r):i,className:`lucide lucide-${u=e,u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,...s},[...t.map((([e,t])=>o(e,t))),...(Array.isArray(l)?l:[l])||[]]);var u}));return n.displayName=`${e}`,n},$o=Go("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Ho=Go("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Uo=Go("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);function Vo(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Vo(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const Xo="-";function Yo(e){const t=function(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]},o=function(e,t){if(!t)return e;return e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))]))}(Object.entries(e.classGroups),n);return o.forEach((([e,n])=>{Jo(n,r,e,t)})),r}(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:function(e){const n=e.split(Xo);return""===n[0]&&1!==n.length&&n.shift(),qo(n,t)||function(e){if(Zo.test(e)){const t=Zo.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}}function qo(e,t){if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?qo(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join(Xo);return t.validators.find((({validator:e})=>e(i)))?.classGroupId}const Zo=/^\[(.+)\]$/;function Jo(e,t,n,r){e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return e.isThemeGetter?void Jo(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{Jo(o,Qo(t,e),n,r)}))}else{(""===e?t:Qo(t,e)).classGroupId=n}}))}function Qo(e,t){let n=e;return t.split(Xo).forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n}function ei(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(o,i){n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)}return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}}const ti="!";function ni(e){const t=e.separator,n=1===t.length,r=t[0],o=t.length;return function(e){const i=[];let a,l=0,s=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===l){if(u===r&&(n||e.slice(c,c+o)===t)){i.push(e.slice(s,c)),s=c+o;continue}if("/"===u){a=c;continue}}"["===u?l++:"]"===u&&l--}const c=0===i.length?e:e.substring(s),u=c.startsWith(ti);return{modifiers:i,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:a&&a>s?a-s:void 0}}}const ri=/\s+/;function oi(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=ii(e))&&(r&&(r+=" "),r+=t);return r}function ii(e){if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=ii(e[r]))&&(n&&(n+=" "),n+=t);return n}function ai(e,...t){let n,r,o,i=function(l){const s=t.reduce(((e,t)=>t(e)),e());return n=function(e){return{cache:ei(e.cacheSize),splitModifiers:ni(e),...Yo(e)}}(s),r=n.cache.get,o=n.cache.set,i=a,a(l)};function a(e){const t=r(e);if(t)return t;const i=function(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=new Set;return e.trim().split(ri).map((e=>{const{modifiers:t,hasImportantModifier:o,baseClassName:i,maybePostfixModifierPosition:a}=n(e);let l=r(a?i.substring(0,a):i),s=Boolean(a);if(!l){if(!a)return{isTailwindClass:!1,originalClassName:e};if(l=r(i),!l)return{isTailwindClass:!1,originalClassName:e};s=!1}const c=function(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t}(t).join(":");return{isTailwindClass:!0,modifierId:o?c+ti:c,classGroupId:l,originalClassName:e,hasPostfixModifier:s}})).reverse().filter((e=>{if(!e.isTailwindClass)return!0;const{modifierId:t,classGroupId:n,hasPostfixModifier:r}=e,a=t+n;return!i.has(a)&&(i.add(a),o(n,r).forEach((e=>i.add(t+e))),!0)})).reverse().map((e=>e.originalClassName)).join(" ")}(e,n);return o(e,i),i}return function(){return i(oi.apply(null,arguments))}}function li(e){const t=t=>t[e]||[];return t.isThemeGetter=!0,t}const si=/^\[(?:([a-z-]+):)?(.+)\]$/i,ci=/^\d+\/\d+$/,ui=new Set(["px","full","screen"]),di=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fi=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,pi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,mi=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,hi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function gi(e){return bi(e)||ui.has(e)||ci.test(e)}function vi(e){return Ai(e,"length",_i)}function bi(e){return Boolean(e)&&!Number.isNaN(Number(e))}function yi(e){return Ai(e,"number",bi)}function wi(e){return Boolean(e)&&Number.isInteger(Number(e))}function xi(e){return e.endsWith("%")&&bi(e.slice(0,-1))}function Ei(e){return si.test(e)}function Ci(e){return di.test(e)}const ki=new Set(["length","size","percentage"]);function Mi(e){return Ai(e,ki,Ri)}function Pi(e){return Ai(e,"position",Ri)}const Ti=new Set(["image","url"]);function Ni(e){return Ai(e,Ti,Li)}function Oi(e){return Ai(e,"",Di)}function Si(){return!0}function Ai(e,t,n){const r=si.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))}function _i(e){return fi.test(e)&&!pi.test(e)}function Ri(){return!1}function Di(e){return mi.test(e)}function Li(e){return hi.test(e)}function Ii(){const e=li("colors"),t=li("spacing"),n=li("blur"),r=li("brightness"),o=li("borderColor"),i=li("borderRadius"),a=li("borderSpacing"),l=li("borderWidth"),s=li("contrast"),c=li("grayscale"),u=li("hueRotate"),d=li("invert"),f=li("gap"),p=li("gradientColorStops"),m=li("gradientColorStopPositions"),h=li("inset"),g=li("margin"),v=li("opacity"),b=li("padding"),y=li("saturate"),w=li("scale"),x=li("sepia"),E=li("skew"),C=li("space"),k=li("translate"),M=()=>["auto",Ei,t],P=()=>[Ei,t],T=()=>["",gi,vi],N=()=>["auto",bi,Ei],O=()=>["","0",Ei],S=()=>[bi,yi],A=()=>[bi,Ei];return{cacheSize:500,separator:":",theme:{colors:[Si],spacing:[gi,vi],blur:["none","",Ci,Ei],brightness:S(),borderColor:[e],borderRadius:["none","","full",Ci,Ei],borderSpacing:P(),borderWidth:T(),contrast:S(),grayscale:O(),hueRotate:A(),invert:O(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[xi,vi],inset:M(),margin:M(),opacity:S(),padding:P(),saturate:S(),scale:S(),sepia:O(),skew:A(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",Ei]}],container:["container"],columns:[{columns:[Ci]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Ei]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",wi,Ei]}],basis:[{basis:M()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ei]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",wi,Ei]}],"grid-cols":[{"grid-cols":[Si]}],"col-start-end":[{col:["auto",{span:["full",wi,Ei]},Ei]}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":[Si]}],"row-start-end":[{row:["auto",{span:[wi,Ei]},Ei]}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ei]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ei]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ei,t]}],"min-w":[{"min-w":[Ei,t,"min","max","fit"]}],"max-w":[{"max-w":[Ei,t,"none","full","min","max","fit","prose",{screen:[Ci]},Ci]}],h:[{h:[Ei,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ei,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ei,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ei,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ci,vi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",yi]}],"font-family":[{font:[Si]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ei]}],"line-clamp":[{"line-clamp":["none",bi,yi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",gi,Ei]}],"list-image":[{"list-image":["none",Ei]}],"list-style-type":[{list:["none","disc","decimal",Ei]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",gi,vi]}],"underline-offset":[{"underline-offset":["auto",gi,Ei]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ei]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ei]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Pi]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Mi]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ni]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[gi,Ei]}],"outline-w":[{outline:[gi,vi]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[gi,vi]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ci,Oi]}],"shadow-color":[{shadow:[Si]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",Ci,Ei]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ei]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",Ei]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ei]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[wi,Ei]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ei]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ei]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ei]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[gi,vi,yi]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const Fi=ai(Ii);function zi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Fi(function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Vo(e))&&(r&&(r+=" "),r+=t);return r}(e))}var Wi=So,ji=e.forwardRef((function(t,n){var r=t.id,o=t.className,i=M(t,["id","className"]);return e.createElement(Oo,k({ref:n,id:r,className:zi("flex h-10 items-center space-x-1 rounded-md border bg-background p-1",o)},i))}));ji.displayName=Oo.displayName;var Bi=e.forwardRef((function(t,n){var r=t.id,o=t.className,i=M(t,["id","className"]);return e.createElement(Ao,k({ref:n,id:r,className:zi("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",o)},i))}));Bi.displayName=Ao.displayName,e.forwardRef((function(t,n){var r=t.id,o=t.className,i=t.inset,a=t.children,l=M(t,["id","className","inset","children"]);return e.createElement(jo,k({ref:n,id:r,className:zi("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",i&&"pl-8",o)},l),a,e.createElement(Ho,{className:"ml-auto h-4 w-4"}))})).displayName=jo.displayName,e.forwardRef((function(t,n){var r=t.id,o=t.className,i=M(t,["id","className"]);return e.createElement(Bo,k({ref:n,id:r,className:zi("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o)},i))})).displayName=Bo.displayName;var Ki=e.forwardRef((function(t,n){var r=t.id,o=t.className,i=t.align,a=void 0===i?"start":i,l=t.alignOffset,s=void 0===l?-4:l,c=t.sideOffset,u=void 0===c?8:c,d=M(t,["id","className","align","alignOffset","sideOffset"]);return e.createElement(_o,null,e.createElement(Ro,k({ref:n,id:r,align:a,alignOffset:s,sideOffset:u,className:zi("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o)},d)))}));Ki.displayName=Ro.displayName;var Gi=e.forwardRef((function(t,n){var r=t.id,o=t.className,i=t.inset,a=M(t,["id","className","inset"]);return e.createElement(Lo,k({ref:n,id:r,className:zi("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",i&&"pl-8",o)},a))}));Gi.displayName=Lo.displayName,e.forwardRef((function(t,n){var r=t.id,o=t.className,i=t.children,a=t.checked,l=M(t,["id","className","children","checked"]);return e.createElement(Io,k({ref:n,id:r,className:zi("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o),checked:a},l),e.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},e.createElement(zo,null,e.createElement($o,{className:"h-4 w-4"}))),i)})).displayName=Io.displayName,e.forwardRef((function(t,n){var r=t.id,o=t.className,i=t.children,a=M(t,["id","className","children"]);return e.createElement(Fo,k({ref:n,id:r,className:zi("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o)},a),e.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},e.createElement(zo,null,e.createElement(Uo,{className:"h-2 w-2 fill-current"}))),i)})).displayName=Fo.displayName,e.forwardRef((function(t,n){var r=t.id,o=t.className,i=t.inset,a=M(t,["id","className","inset"]);return e.createElement(Do,k({ref:n,id:r,className:zi("px-2 py-1.5 text-sm font-semibold",i&&"pl-8",o)},a))})).displayName=Do.displayName;var $i=e.forwardRef((function(t,n){var r=t.id,o=t.className,i=M(t,["id","className"]);return e.createElement(Wo,k({ref:n,id:r,className:zi("-mx-1 my-1 h-px bg-muted",o)},i))}));$i.displayName=Wo.displayName;var Hi=function(e){var n=e.id,r=e.className,o=e.borderless,i=void 0!==o&&o,a=e.orientation,l=void 0===a?"horizontal":a,s=e.activeKey,c=void 0===s?"":s,u=e.items,d=void 0===u?[]:u,f=e.onClick,m=h(c),g=m[0],v=m[1];return p((function(){v(c)}),[c]),t.createElement(ji,{id:n,className:C("gyramais-menubar","gyramais-menubar-".concat(l),i?"gyramais-menubar-borderless":"",r)},d.map((function(e,n){return e.separator?t.createElement($i,{key:"separator-".concat(n),"aria-orientation":"horizontal"===l?"vertical":"horizontal",className:"gyramais-menubar-separator"}):t.createElement(Wi,{key:"menu-".concat(n)},t.createElement(Bi,{className:C("gyramais-menubar-option",e.key===g?"gyramais-menubar-option-selected":""),onClick:function(){e.key&&(!c&&e.key&&v(e.key),null==f||f(e.key))},disabled:e.disabled},e.title),!e.disabled&&Array.isArray(e.items)&&e.items.length>0&&t.createElement(Ki,{className:"gyramais-menubar-content",side:"horizontal"===l?"bottom":"right"},e.items.map((function(e,n){return e.separator?t.createElement($i,{key:"sub-separator-".concat(n),"aria-orientation":"horizontal",className:"gyramais-menubar-separator submenu-separator"}):t.createElement(Gi,{key:"sub-menu-".concat(n),className:C("gyramais-menubar-option",e.key===g?"gyramais-menubar-option-selected":""),onClick:function(){e.key&&(null==f||f(e.key))},disabled:e.disabled},e.title)}))))})))};export{Hi as Menubar};
|
|
7
7
|
//# sourceMappingURL=index.js.map
|