1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[525],{15587:(e,t,r)=>{r.d(t,{Eq:()=>c});var n=new WeakMap,o=new WeakMap,i={},a=0,l=function(e){return e&&(e.host||l(e.parentNode))},u=function(e,t,r,u){var c=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=l(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});i[r]||(i[r]=new WeakMap);var s=i[r],d=[],f=new Set,p=new Set(c),m=function(e){!e||f.has(e)||(f.add(e),m(e.parentNode))};c.forEach(m);var v=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))v(e);else try{var t=e.getAttribute(u),i=null!==t&&"false"!==t,a=(n.get(e)||0)+1,l=(s.get(e)||0)+1;n.set(e,a),s.set(e,l),d.push(e),1===a&&i&&o.set(e,!0),1===l&&e.setAttribute(r,"true"),i||e.setAttribute(u,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return v(t),f.clear(),a++,function(){d.forEach(function(e){var t=n.get(e)-1,i=s.get(e)-1;n.set(e,t),s.set(e,i),t||(o.has(e)||e.removeAttribute(u),o.delete(e)),i||e.removeAttribute(r)}),--a||(n=new WeakMap,n=new WeakMap,o=new WeakMap,i={})}},c=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n,o=Array.from(Array.isArray(e)?e:[e]),i=t||(n=e,"undefined"==typeof document?null:(Array.isArray(n)?n[0]:n).ownerDocument.body);return i?(o.push.apply(o,Array.from(i.querySelectorAll("[aria-live], script"))),u(o,i,r,"aria-hidden")):function(){return null}}},21108:(e,t,r)=>{r.d(t,{fy:()=>v});let n={topLeft:[{corner:"topRight",side:"top"},{corner:"bottomLeft",side:"left"}],topRight:[{corner:"topLeft",side:"top"},{corner:"bottomRight",side:"right"}],bottomLeft:[{corner:"bottomRight",side:"bottom"},{corner:"topLeft",side:"left"}],bottomRight:[{corner:"bottomLeft",side:"bottom"},{corner:"topRight",side:"right"}]};function o({cornerRadius:e,cornerSmoothing:t,preserveSmoothing:r,roundingAndSmoothingBudget:n}){let o=(1+t)*e;r||(t=Math.min(t,n/e-1),o=Math.min(o,n));let i=90*(1-t),l=Math.sin(a(i/2))*e*Math.sqrt(2),u=e*Math.tan(a((90-i)/2/2)),c=45*t,s=u*Math.cos(a(c)),d=s*Math.tan(a(c)),f=(o-l-s-d)/3,p=2*f;if(r&&o>n){let e=n-d-l-s;f=Math.min(f,e-e/6),p=e-f,o=Math.min(o,n)}return{a:p,b:f,c:s,d:d,p:o,arcSectionLength:l,cornerRadius:e}}function i({width:e,height:t,topLeftPathParams:r,topRightPathParams:n,bottomLeftPathParams:o,bottomRightPathParams:i}){return` 2 M ${e-n.p} 0 3 ${(function({cornerRadius:e,a:t,b:r,c:n,d:o,p:i,arcSectionLength:a}){return e?l` 4 c ${t} 0 ${t+r} 0 ${t+r+n} ${o} 5 a ${e} ${e} 0 0 1 ${a} ${a} 6 c ${o} ${n} 7 ${o} ${r+n} 8 ${o} ${t+r+n}`:l`l ${i} 0`})(n)} 9 L ${e} ${t-i.p} 10 ${(function({cornerRadius:e,a:t,b:r,c:n,d:o,p:i,arcSectionLength:a}){return e?l` 11 c 0 ${t} 12 0 ${t+r} 13 ${-o} ${t+r+n} 14 a ${e} ${e} 0 0 1 -${a} ${a} 15 c ${-n} ${o} 16 ${-(r+n)} ${o} 17 ${-(t+r+n)} ${o}`:l`l 0 ${i}`})(i)} 18 L ${o.p} ${t} 19 ${(function({cornerRadius:e,a:t,b:r,c:n,d:o,p:i,arcSectionLength:a}){return e?l` 20 c ${-t} 0 21 ${-(t+r)} 0 22 ${-(t+r+n)} ${-o} 23 a ${e} ${e} 0 0 1 -${a} -${a} 24 c ${-o} ${-n} 25 ${-o} ${-(r+n)} 26 ${-o} ${-(t+r+n)}`:l`l ${-i} 0`})(o)} 27 L 0 ${r.p} 28 ${(function({cornerRadius:e,a:t,b:r,c:n,d:o,p:i,arcSectionLength:a}){return e?l` 29 c 0 ${-t} 30 0 ${-(t+r)} 31 ${o} ${-(t+r+n)} 32 a ${e} ${e} 0 0 1 ${a} -${a} 33 c ${n} ${-o} 34 ${r+n} ${-o} 35 ${t+r+n} ${-o}`:l`l 0 ${-i}`})(r)} 36 Z 37 `.replace(/[\t\s\n]+/g," ").trim()}function a(e){return e*Math.PI/180}function l(e,...t){return e.reduce((e,r,n)=>{let o=t[n];return"number"==typeof o?e+r+o.toFixed(4):e+r+(o??"")},"")}function u({cornerRadius:e=0,topLeftCornerRadius:t,topRightCornerRadius:r,bottomRightCornerRadius:a,bottomLeftCornerRadius:l,cornerSmoothing:u,width:c,height:s,preserveSmoothing:d=!1}){if(t=t??e,r=r??e,l=l??e,a=a??e,t===r&&r===a&&a===l&&l===t){let e=Math.min(c,s)/2,r=o({cornerRadius:Math.min(t,e),cornerSmoothing:u,preserveSmoothing:d,roundingAndSmoothingBudget:e});return i({width:c,height:s,topLeftPathParams:r,topRightPathParams:r,bottomLeftPathParams:r,bottomRightPathParams:r})}let{topLeft:f,topRight:p,bottomLeft:m,bottomRight:v}=function({topLeftCornerRadius:e,topRightCornerRadius:t,bottomRightCornerRadius:r,bottomLeftCornerRadius:o,width:i,height:a}){let l={topLeft:-1,topRight:-1,bottomLeft:-1,bottomRight:-1},u={topLeft:e,topRight:t,bottomLeft:o,bottomRight:r};return Object.entries(u).sort(([,e],[,t])=>t-e).forEach(([e,t])=>{let r=Math.min(...n[e].map(e=>{let r=u[e.corner];if(0===t&&0===r)return 0;let n=l[e.corner],o="top"===e.side||"bottom"===e.side?i:a;return n>=0?o-l[e.corner]:t/(t+r)*o}));l[e]=r,u[e]=Math.min(t,r)}),{topLeft:{radius:u.topLeft,roundingAndSmoothingBudget:l.topLeft},topRight:{radius:u.topRight,roundingAndSmoothingBudget:l.topRight},bottomLeft:{radius:u.bottomLeft,roundingAndSmoothingBudget:l.bottomLeft},bottomRight:{radius:u.bottomRight,roundingAndSmoothingBudget:l.bottomRight}}}({topLeftCornerRadius:t,topRightCornerRadius:r,bottomRightCornerRadius:a,bottomLeftCornerRadius:l,width:c,height:s});return i({width:c,height:s,topLeftPathParams:o({cornerSmoothing:u,preserveSmoothing:d,cornerRadius:f.radius,roundingAndSmoothingBudget:f.roundingAndSmoothingBudget}),topRightPathParams:o({cornerSmoothing:u,preserveSmoothing:d,cornerRadius:p.radius,roundingAndSmoothingBudget:p.roun
37dingAndSmoothingBudget}),bottomRightPathParams:o({cornerSmoothing:u,preserveSmoothing:d,cornerRadius:v.radius,roundingAndSmoothingBudget:v.roundingAndSmoothingBudget}),bottomLeftPathParams:o({cornerSmoothing:u,preserveSmoothing:d,cornerRadius:m.radius,roundingAndSmoothingBudget:m.roundingAndSmoothingBudget})})}let c=(e=8)=>{let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r="";for(let n=0;n<e;n++)r+=t.charAt(Math.floor(Math.random()*t.length));return`squircle-${r}`},s=(e,t)=>{let r=document.getElementById(t);r||((r=document.createElement("style")).id=t,document.head.appendChild(r)),r.textContent=e},d=(e,t,r)=>{let n=e.clientWidth,o=e.clientHeight,i={preserveSmoothing:!0,cornerSmoothing:1,width:n,height:o,...t};t.borderWidth?(e.classList.add(r),s(` 38 .${r} { 39 position: relative; 40 clip-path: path('${u(i)}'); 41 } 42 43 .${r}::before { 44 content: ''; 45 display: block; 46 position: absolute; 47 inset: ${t.borderWidth}px; 48 z-index: -1; 49 clip-path: path('${u({...i,width:n-2*t.borderWidth,height:o-2*t.borderWidth,cornerRadius:t.cornerRadius-t.borderWidth})}'); 50 } 51 `,`style-${r}`)):e.style.clipPath=`path('${u(i)}')`},f=(e,t)=>{let r;let n=c(),o=r=>(void 0!==r&&(t=r),d(e,t,n)),i=new ResizeObserver(()=>{let t=r;r=[e.clientWidth,e.clientHeight],(t?.[0]!==r[0]||t?.[1]!==r[1])&&o()});return i.observe(e),o.disconnect=()=>{e.classList.remove(n),document.querySelector(`#style-${n}`)?.remove(),i.disconnect()},o};var p=r(12115);let m=e=>{let t={};for(let r in e)void 0!==e[r]&&(t[r]=e[r]);return t},v=(0,p.forwardRef)(({children:e,as:t="div",cornerRadius:r,topLeftCornerRadius:n,topRightCornerRadius:o,bottomRightCornerRadius:i,bottomLeftCornerRadius:a,cornerSmoothing:l,preserveSmoothing:u,borderWidth:c,...s},d)=>{let v=(0,p.useRef)(),h=(0,p.useCallback)(e=>{let t=m({cornerRadius:r,topLeftCornerRadius:n,topRightCornerRadius:o,bottomRightCornerRadius:i,bottomLeftCornerRadius:a,cornerSmoothing:l,preserveSmoothing:u,borderWidth:c});v.current?.disconnect(),e&&(v.current=f(e,t)),"function"==typeof d?d(e):d&&(d.current=e)},[r,n,o,i,a,l,u,c]);return p.createElement(t,{ref:h,...s},e)})},2431:(e,t,r)=>{r.d(t,{A:()=>z});var n,o,i=r(6476),a=r(12115),l="right-scroll-bar-position",u="width-before-scroll-bar";function c(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var s="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,d=new WeakMap;function f(e){return e}var p=function(e){void 0===e&&(e={});var t,r,n,o=(void 0===t&&(t=f),r=[],n=!1,{read:function(){if(n)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var o=t(e,n);return r.push(o),function(){r=r.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var o=r;r=[],o.forEach(e),t=r}var i=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}});return o.options=(0,i.Cl)({async:!0,ssr:!1},e),o}(),m=function(){},v=a.forwardRef(function(e,t){var r,n,o,l,u=a.useRef(null),f=a.useState({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:m}),v=f[0],h=f[1],g=e.forwardProps,w=e.children,y=e.className,b=e.removeScrollBar,E=e.enabled,x=e.shards,R=e.sideCar,C=e.noRelative,S=e.noIsolation,A=e.inert,M=e.allowPinchZoom,k=e.as,L=e.gapMode,N=(0,i.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=(r=[u,t],n=function(e){return r.forEach(function(t){return c(t,e)})},(o=(0,a.useState)(function(){return{value:null,callback:n,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=n,l=o.facade,s(function(){var e=d.get(l);if(e){var t=new Set(e),n=new Set(r),o=l.current;t.forEach(function(e){n.has(e)||c(e,null)}
51),n.forEach(function(e){t.has(e)||c(e,o)})}d.set(l,r)},[r]),l),D=(0,i.Cl)((0,i.Cl)({},N),v);return a.createElement(a.Fragment,null,E&&a.createElement(R,{sideCar:p,removeScrollBar:b,shards:x,noRelative:C,noIsolation:S,inert:A,setCallbacks:h,allowPinchZoom:!!M,lockRef:u,gapMode:L}),g?a.cloneElement(a.Children.only(w),(0,i.Cl)((0,i.Cl)({},D),{ref:P})):a.createElement(void 0===k?"div":k,(0,i.Cl)({},D,{className:y,ref:P}),w))});v.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},v.classNames={fullWidth:u,zeroRight:l};var h=function(e){var t=e.sideCar,r=(0,i.Tt)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return a.createElement(n,(0,i.Cl)({},r))};h.isSideCarExport=!0;var g=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=o||r.nc;return t&&e.setAttribute("nonce",t),e}())){var i,a;(i=t).styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},w=function(){var e=g();return function(t,r){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},y=function(){var e=w();return function(t){return e(t.styles,t.dynamic),null}},b={left:0,top:0,right:0,gap:0},E=function(e){return parseInt(e||"",10)||0},x=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[E(r),E(n),E(o)]},R=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return b;var t=x(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},C=y(),S="data-scroll-locked",A=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,c=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(c,"px ").concat(n,";\n }\n body[").concat(S,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\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(c,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(c,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(l," {\n right: ").concat(c,"px ").concat(n,";\n }\n \n .").concat(u," {\n margin-right: ").concat(c,"px ").concat(n,";\n }\n \n .").concat(l," .").concat(l," {\n right: 0 ").concat(n,";\n }\n \n .").concat(u," .").concat(u," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(S,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(c,"px;\n }\n")},M=function(){var e=parseInt(document.body.getAttribute(S)||"0",10);return isFinite(e)?e:0},k=function(){a.useEffect(function(){return document.body.setAttribute(S,(M()+1).toString()),function(){var e=M()-1;e<=0?document.body.removeAttribute(S):document.body.setAttribute(S,e.toString())}},[])},L=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=void 0===n?"margin":n;k();var i=a.useMemo(function(){return R(o)},[o]);return a.createElement(C,{styles:A(i,!t,o,r?"":"!important")})},N=!1;if("undefined"!=typeof window)try{var P=Object.defineProperty({},"passive",{get:function(){return N=!0,!0}});window.addEventListener("test",P,P),window.removeEventListener("test",P,P)}catch(e){N=!1}var D=!!N&&{passive:!1},j=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===r[t])},I=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),O(e,n)){var o=T(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},O=function(e,t){return"v"===e?j(t,"overflowY"):j(t,"overflowX")},T=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},$=function(e,t,r,n,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),l=a*n,u=r.target,c=t.contains(u),s=!1,d=l>0,f=0,p=0;
51do{if(!u)break;var m=T(e,u),v=m[0],h=m[1]-m[2]-a*v;(v||h)&&O(e,u)&&(f+=h,p+=v);var g=u.parentNode;u=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&l>f)?s=!0:!d&&(o&&1>Math.abs(p)||!o&&-l>p)&&(s=!0),s},_=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},F=function(e){return[e.deltaX,e.deltaY]},K=function(e){return e&&"current"in e?e.current:e},W=0,B=[];let G=(n=function(e){var t=a.useRef([]),r=a.useRef([0,0]),n=a.useRef(),o=a.useState(W++)[0],l=a.useState(y)[0],u=a.useRef(e);a.useEffect(function(){u.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,i.fX)([e.lockRef.current],(e.shards||[]).map(K),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=a.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!u.current.allowPinchZoom;var o,i=_(e),a=r.current,l="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],s=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=I(d,s);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=I(d,s)),!f)return!1;if(!n.current&&"changedTouches"in e&&(l||c)&&(n.current=o),!o)return!0;var p=n.current||o;return $(p,t,e,"h"===p?l:c,!0)},[]),s=a.useCallback(function(e){if(B.length&&B[B.length-1]===l){var r="deltaY"in e?F(e):_(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta)[0]===r[0]&&n[1]===r[1]})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var o=(u.current.shards||[]).map(K).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?c(e,o[0]):!u.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),d=a.useCallback(function(e,r,n,o){var i={name:e,delta:r,target:n,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),f=a.useCallback(function(e){r.current=_(e),n.current=void 0},[]),p=a.useCallback(function(t){d(t.type,F(t),t.target,c(t,e.lockRef.current))},[]),m=a.useCallback(function(t){d(t.type,_(t),t.target,c(t,e.lockRef.current))},[]);a.useEffect(function(){return B.push(l),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",s,D),document.addEventListener("touchmove",s,D),document.addEventListener("touchstart",f,D),function(){B=B.filter(function(e){return e!==l}),document.removeEventListener("wheel",s,D),document.removeEventListener("touchmove",s,D),document.removeEventListener("touchstart",f,D)}},[]);var v=e.removeScrollBar,h=e.inert;return a.createElement(a.Fragment,null,h?a.createElement(l,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,v?a.createElement(L,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},p.useMedium(n),h);var U=a.forwardRef(function(e,t){return a.createElement(v,(0,i.Cl)({},e,{ref:t,sideCar:G}))});U.classNames=v.classNames;let z=U},93610:(e,t,r)=>{function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}r.d(t,{mK:()=>n}),"undefined"!=typeof window&&window.document&&window.document.createElement},88068:(e,t,r)=>{r.d(t,{s:()=>a,t:()=>i});var n=r(12115);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return t=>{let r=!1,n=e.map(e=>{let n=o(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():o(e[t],null)}}}}function a(...e){return n.useCallback(i(...e),e)}},18166:(e,t,r)=>{r.d(t,{A:()=>a,q:()=>i});var n=r(12115),o=r(95155);function i(e,t){let r=n.createContext(t),i=e=>{let{children:t,...i}=e,a=n.useMemo(()=>i,Object.values(i));return(0,o.jsx)(r.Provider,{value:a,children:t})};return i.displayName=e+"Provider",[i,function(o){let i=n.useContext(r);if(i)return i;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function a(e,t=[]){let r=[],i=()=>{let t=r.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return i.scopeName=e,[function(t,i){let a=n.createContext(i),l=r.length;r=[...r,i];let u=t=>{let{scope:r,children:i,...u}=t,c=r?.[e]?.[l]||a,s=n.useMemo(()=>u,Object.values(u));return(0,o.jsx)(c.Provider,{value:s,children:i})};return u.displayName=t+"Provider",[u,function(r,o){let u=o?.[e]?.[l]||a,c=n.useContext(u);if(c)return c;if(void 0!==i)return i;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>
51{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(i,...t)]}},66217:(e,t,r)=>{r.d(t,{UC:()=>er,VY:()=>eo,ZL:()=>ee,bL:()=>J,bm:()=>ei,hE:()=>en,hJ:()=>et,l9:()=>Q});var n=r(12115),o=r(93610),i=r(88068),a=r(18166),l=r(67668),u=r(1488),c=r(59674),s=r(20196),d=r(17323),f=r(17028),p=r(23360),m=r(62292),v=r(2431),h=r(15587),g=r(12317),w=r(95155),y="Dialog",[b,E]=(0,a.A)(y),[x,R]=b(y),C=e=>{let{__scopeDialog:t,children:r,open:o,defaultOpen:i,onOpenChange:a,modal:c=!0}=e,s=n.useRef(null),d=n.useRef(null),[f,p]=(0,u.i)({prop:o,defaultProp:null!=i&&i,onChange:a,caller:y});return(0,w.jsx)(x,{scope:t,triggerRef:s,contentRef:d,contentId:(0,l.B)(),titleId:(0,l.B)(),descriptionId:(0,l.B)(),open:f,onOpenChange:p,onOpenToggle:n.useCallback(()=>p(e=>!e),[p]),modal:c,children:r})};C.displayName=y;var S="DialogTrigger",A=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=R(S,r),l=(0,i.s)(t,a.triggerRef);return(0,w.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":H(a.open),...n,ref:l,onClick:(0,o.mK)(e.onClick,a.onOpenToggle)})});A.displayName=S;var M="DialogPortal",[k,L]=b(M,{forceMount:void 0}),N=e=>{let{__scopeDialog:t,forceMount:r,children:o,container:i}=e,a=R(M,t);return(0,w.jsx)(k,{scope:t,forceMount:r,children:n.Children.map(o,e=>(0,w.jsx)(f.C,{present:r||a.open,children:(0,w.jsx)(d.Z,{asChild:!0,container:i,children:e})}))})};N.displayName=M;var P="DialogOverlay",D=n.forwardRef((e,t)=>{let r=L(P,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=R(P,e.__scopeDialog);return i.modal?(0,w.jsx)(f.C,{present:n||i.open,children:(0,w.jsx)(I,{...o,ref:t})}):null});D.displayName=P;var j=(0,g.TL)("DialogOverlay.RemoveScroll"),I=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=R(P,r);return(0,w.jsx)(v.A,{as:j,allowPinchZoom:!0,shards:[o.contentRef],children:(0,w.jsx)(p.sG.div,{"data-state":H(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),O="DialogContent",T=n.forwardRef((e,t)=>{let r=L(O,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=R(O,e.__scopeDialog);return(0,w.jsx)(f.C,{present:n||i.open,children:i.modal?(0,w.jsx)($,{...o,ref:t}):(0,w.jsx)(_,{...o,ref:t})})});T.displayName=O;var $=n.forwardRef((e,t)=>{let r=R(O,e.__scopeDialog),a=n.useRef(null),l=(0,i.s)(t,r.contentRef,a);return n.useEffect(()=>{let e=a.current;if(e)return(0,h.Eq)(e)},[]),(0,w.jsx)(F,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.mK)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,o.mK)(e.onFocusOutside,e=>e.preventDefault())})}),_=n.forwardRef((e,t)=>{let r=R(O,e.__scopeDialog),o=n.useRef(!1),i=n.useRef(!1);return(0,w.jsx)(F,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,a;null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented||(o.current||null===(a=r.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{var n,a;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(i.current=!0));let l=t.target;(null===(a=r.triggerRef.current)||void 0===a?void 0:a.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),F=n.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:l,...u}=e,d=R(O,r),f=n.useRef(null),p=(0,i.s)(t,f);return(0,m.Oh)(),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(s.n,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:l,children:(0,w.jsx)(c.qW,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":H(d.open),...u,ref:p,onDismiss:()=>d.onOpenChange(!1)})}),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(Y,{titleId:d.titleId}),(0,w.jsx)(Z,{contentRef:f,descriptionId:d.descriptionId})]})]})}),K="DialogTitle",W=n.forwardRef((e,t)=>
51{let{__scopeDialog:r,...n}=e,o=R(K,r);return(0,w.jsx)(p.sG.h2,{id:o.titleId,...n,ref:t})});W.displayName=K;var B="DialogDescription",G=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=R(B,r);return(0,w.jsx)(p.sG.p,{id:o.descriptionId,...n,ref:t})});G.displayName=B;var U="DialogClose",z=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=R(U,r);return(0,w.jsx)(p.sG.button,{type:"button",...n,ref:t,onClick:(0,o.mK)(e.onClick,()=>i.onOpenChange(!1))})});function H(e){return e?"open":"closed"}z.displayName=U;var q="DialogTitleWarning",[V,X]=(0,a.q)(q,{contentName:O,titleName:K,docsSlug:"dialog"}),Y=e=>{let{titleId:t}=e,r=X(q),o="`".concat(r.contentName,"` requires a `").concat(r.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(r.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(r.docsSlug);return n.useEffect(()=>{t&&!document.getElementById(t)&&console.error(o)},[o,t]),null},Z=e=>{let{contentRef:t,descriptionId:r}=e,o=X("DialogDescriptionWarning"),i="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(o.contentName,"}.");return n.useEffect(()=>{var e;let n=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");r&&n&&!document.getElementById(r)&&console.warn(i)},[i,t,r]),null},J=C,Q=A,ee=N,et=D,er=T,en=W,eo=G,ei=z},59674:(e,t,r)=>{r.d(t,{qW:()=>f});var n,o=r(12115),i=r(93610),a=r(23360),l=r(88068),u=r(41524),c=r(95155),s="dismissableLayer.update",d=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=o.forwardRef((e,t)=>{var r,f;let{disableOutsidePointerEvents:v=!1,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:w,onInteractOutside:y,onDismiss:b,...E}=e,x=o.useContext(d),[R,C]=o.useState(null),S=null!==(f=null==R?void 0:R.ownerDocument)&&void 0!==f?f:null===(r=globalThis)||void 0===r?void 0:r.document,[,A]=o.useState({}),M=(0,l.s)(t,e=>C(e)),k=Array.from(x.layers),[L]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),N=k.indexOf(L),P=R?k.indexOf(R):-1,D=x.layersWithOutsidePointerEventsDisabled.size>0,j=P>=N,I=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,n=(0,u.c)(e),i=o.useRef(!1),a=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){m("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",a.current),a.current=t,r.addEventListener("click",a.current,{once:!0})):t()}else r.removeEventListener("click",a.current);i.current=!1},t=window.setTimeout(()=>{r.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",a.current)}},[r,n]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,r=[...x.branches].some(e=>e.contains(t));!j||r||(null==g||g(e),null==y||y(e),e.defaultPrevented||null==b||b())},S),O=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,n=(0,u.c)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&m("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)},[r,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;[...x.branches].some(e=>e.contains(t))||(null==w||w(e),null==y||y(e),e.defaultPrevented||null==b||b())},S);return!function(e,t=globalThis?.document){let r=(0,u.c)(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{P!==x.layers.size-1||(null==h||h(e),!e.defaultPrevented&&b&&(e.preventDefault(),b()))},S),o.useEffect(()=>{if(R)return v&&(0===x.layersWithOutsidePointerEventsDisabled.size&&(n=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(R)),x.layers.add(R),p(),()=>{v&&1===x.layersWithOutsidePointerEventsDisabled.size&&(S.body.style.pointerEvents=n)}},[R,S,v,x]),o.useEffect(()=>()=>{R&&(x.layers.delete(R),x.layersWithOutsidePointerEventsDisabled.delete(R),p())},[R,x]),o.useEffect(()=>{let e=()=>A({});return document.addEventListener(s,e),()=>document.removeEventListener(s,e)},[]),(0,c.jsx)(a.sG.div,{...E,ref:M,style:{pointerEvents:D?j?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.mK)(e.onFocusCapture,O.onFocusCapture),onBlurCapture:(0,i.mK)(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:(0,i.mK)(e.onPointerDownCapture,I.onPointerDownCapture)})});function p(){let e=new CustomEvent(s);document.dispatchEvent(e)}function m(e,t,r,n){let{discrete:o}=n,i=r.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),o?(0,a.hO)(i,l):i.dispatchEvent(l)}f.displayName="DismissableLayer",o.forwardRef((e,t)=>
51{let r=o.useContext(d),n=o.useRef(null),i=(0,l.s)(t,n);return o.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,c.jsx)(a.sG.div,{...e,ref:i})}).displayName="DismissableLayerBranch"},97709:(e,t,r)=>{r.d(t,{UC:()=>tE,q7:()=>tx,ZL:()=>tb,bL:()=>tw,l9:()=>ty});var n,o=r(12115),i=r(93610),a=r(88068),l=r(18166),u=r(1488),c=r(23360);function s(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var d=r(12317),f=r(95155);function p(e){let t=e+"CollectionProvider",[r,n]=(0,l.A)(t),[i,u]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:t,children:r}=e,n=o.useRef(null),a=o.useRef(new Map).current;return(0,f.jsx)(i,{scope:t,itemMap:a,collectionRef:n,children:r})};c.displayName=t;let s=e+"CollectionSlot",p=(0,d.TL)(s),m=o.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=u(s,r),i=(0,a.s)(t,o.collectionRef);return(0,f.jsx)(p,{ref:i,children:n})});m.displayName=s;let v=e+"CollectionItemSlot",h="data-radix-collection-item",g=(0,d.TL)(v),w=o.forwardRef((e,t)=>{let{scope:r,children:n,...i}=e,l=o.useRef(null),c=(0,a.s)(t,l),s=u(v,r);return o.useEffect(()=>(s.itemMap.set(l,{ref:l,...i}),()=>void s.itemMap.delete(l))),(0,f.jsx)(g,{[h]:"",ref:c,children:n})});return w.displayName=v,[{Provider:c,Slot:m,ItemSlot:w},function(t){let r=u(e+"CollectionConsumer",t);return o.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(h,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}var m=o.createContext(void 0);function v(e){let t=o.useContext(m);return e||t||"ltr"}var h=r(59674),g=r(62292),w=r(20196),y=r(67668),b=r(96932),E=r(57205),x=o.forwardRef((e,t)=>{let{children:r,width:n=10,height:o=5,...i}=e;return(0,f.jsx)(c.sG.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,f.jsx)("polygon",{points:"0,0 30,0 15,10"})})});x.displayName="Arrow";var R=r(41524),C=r(46611),S="Popper",[A,M]=(0,l.A)(S),[k,L]=A(S),N=e=>{let{__scopePopper:t,children:r}=e,[n,i]=o.useState(null);return(0,f.jsx)(k,{scope:t,anchor:n,onAnchorChange:i,children:r})};N.displayName=S;var P="PopperAnchor",D=o.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:n,...i}=e,l=L(P,r),u=o.useRef(null),s=(0,a.s)(t,u),d=o.useRef(null);return o.useEffect(()=>{let e=d.current;d.current=(null==n?void 0:n.current)||u.current,e!==d.current&&l.onAnchorChange(d.current)}),n?null:(0,f.jsx)(c.sG.div,{...i,ref:s})});D.displayName=P;var j="PopperContent",[I,O]=A(j),T=o.forwardRef((e,t)=>{var r,n,i,l,u,s,d,p;let{__scopePopper:m,side:v="bottom",sideOffset:h=0,align:g="center",alignOffset:w=0,arrowPadding:y=0,avoidCollisions:x=!0,collisionBoundary:S=[],collisionPadding:A=0,sticky:M="partial",hideWhenDetached:k=!1,updatePositionStrategy:N="optimized",onPlaced:P,...D}=e,O=L(j,m),[T,$]=o.useState(null),_=(0,a.s)(t,e=>$(e)),[F,G]=o.useState(null),U=function(e){let[t,r]=o.useState(void 0);return(0,C.N)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,o=t.blockSize}else n=e.offsetWidth,o=e.offsetHeight;r({width:n,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}(F),z=null!==(d=null==U?void 0:U.width)&&void 0!==d?d:0,H=null!==(p=null==U?void 0:U.height)&&void 0!==p?p:0,q="number"==typeof A?A:{top:0,right:0,bottom:0,left:0,...A},V=Array.isArray(S)?S:[S],X=V.length>0,Y={padding:q,boundary:V.filter(K),altBoundary:X},{refs:Z,floatingStyles:J,placement:Q,isPositioned:ee,middlewareData:et}=(0,b.we)({strategy:"fixed",placement:v+("center"!==g?"-"+g:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,E.ll)(...t,{animationFrame:"always"===N})},elements:{reference:O.anchor},middleware:[(0,b.cY)({mainAxis:h+H,alignmentAxis:w}),x&&(0,b.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===M?(0,b.ER)():void 0,...Y}),x&&(0,b.UU)({...Y}),(0,b.Ej)({...Y,apply:e=>{let{elements:t,rects:r,availableWidth:n,availableHeight:o}=e,{width:i,height:a}=r.reference,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(n,"px")),l.setProperty("--radix-popper-available-height","".concat(o,"px")),l.setProperty("--radix-popper-anchor-width","".concat(i,"px")),l.setProperty("--radix-popper-anchor-height","".concat(a,"px"))}}),F&&(0,b.UE)({element:F,padding:y}),W({arrowWidth:z,arrowHeight:H}
51),k&&(0,b.jD)({strategy:"referenceHidden",...Y})]}),[er,en]=B(Q),eo=(0,R.c)(P);(0,C.N)(()=>{ee&&(null==eo||eo())},[ee,eo]);let ei=null===(r=et.arrow)||void 0===r?void 0:r.x,ea=null===(n=et.arrow)||void 0===n?void 0:n.y,el=(null===(i=et.arrow)||void 0===i?void 0:i.centerOffset)!==0,[eu,ec]=o.useState();return(0,C.N)(()=>{T&&ec(window.getComputedStyle(T).zIndex)},[T]),(0,f.jsx)("div",{ref:Z.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:ee?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eu,"--radix-popper-transform-origin":[null===(l=et.transformOrigin)||void 0===l?void 0:l.x,null===(u=et.transformOrigin)||void 0===u?void 0:u.y].join(" "),...(null===(s=et.hide)||void 0===s?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,f.jsx)(I,{scope:m,placedSide:er,onArrowChange:G,arrowX:ei,arrowY:ea,shouldHideArrow:el,children:(0,f.jsx)(c.sG.div,{"data-side":er,"data-align":en,...D,ref:_,style:{...D.style,animation:ee?void 0:"none"}})})})});T.displayName=j;var $="PopperArrow",_={top:"bottom",right:"left",bottom:"top",left:"right"},F=o.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,o=O($,r),i=_[o.placedSide];return(0,f.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,f.jsx)(x,{...n,ref:t,style:{...n.style,display:"block"}})})});function K(e){return null!==e}F.displayName=$;var W=e=>({name:"transformOrigin",options:e,fn(t){var r,n,o,i,a;let{placement:l,rects:u,middlewareData:c}=t,s=(null===(r=c.arrow)||void 0===r?void 0:r.centerOffset)!==0,d=s?0:e.arrowWidth,f=s?0:e.arrowHeight,[p,m]=B(l),v={start:"0%",center:"50%",end:"100%"}[m],h=(null!==(i=null===(n=c.arrow)||void 0===n?void 0:n.x)&&void 0!==i?i:0)+d/2,g=(null!==(a=null===(o=c.arrow)||void 0===o?void 0:o.y)&&void 0!==a?a:0)+f/2,w="",y="";return"bottom"===p?(w=s?v:"".concat(h,"px"),y="".concat(-f,"px")):"top"===p?(w=s?v:"".concat(h,"px"),y="".concat(u.floating.height+f,"px")):"right"===p?(w="".concat(-f,"px"),y=s?v:"".concat(g,"px")):"left"===p&&(w="".concat(u.floating.width+f,"px"),y=s?v:"".concat(g,"px")),{data:{x:w,y}}}});function B(e){let[t,r="center"]=e.split("-");return[t,r]}var G=r(17323),U=r(17028),z="rovingFocusGroup.onEntryFocus",H={bubbles:!1,cancelable:!0},q="RovingFocusGroup",[V,X,Y]=p(q),[Z,J]=(0,l.A)(q,[Y]),[Q,ee]=Z(q),et=o.forwardRef((e,t)=>(0,f.jsx)(V.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(V.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(er,{...e,ref:t})})}));et.displayName=q;var er=o.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:n,loop:l=!1,dir:s,currentTabStopId:d,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:m,onEntryFocus:h,preventScrollOnEntryFocus:g=!1,...w}=e,y=o.useRef(null),b=(0,a.s)(t,y),E=v(s),[x,C]=(0,u.i)({prop:d,defaultProp:null!=p?p:null,onChange:m,caller:q}),[S,A]=o.useState(!1),M=(0,R.c)(h),k=X(r),L=o.useRef(!1),[N,P]=o.useState(0);return o.useEffect(()=>{let e=y.current;if(e)return e.addEventListener(z,M),()=>e.removeEventListener(z,M)},[M]),(0,f.jsx)(Q,{scope:r,orientation:n,dir:E,loop:l,currentTabStopId:x,onItemFocus:o.useCallback(e=>C(e),[C]),onItemShiftTab:o.useCallback(()=>A(!0),[]),onFocusableItemAdd:o.useCallback(()=>P(e=>e+1),[]),onFocusableItemRemove:o.useCallback(()=>P(e=>e-1),[]),children:(0,f.jsx)(c.sG.div,{tabIndex:S||0===N?-1:0,"data-orientation":n,...w,ref:b,style:{outline:"none",...e.style},onMouseDown:(0,i.mK)(e.onMouseDown,()=>{L.current=!0}),onFocus:(0,i.mK)(e.onFocus,e=>{let t=!L.current;if(e.target===e.currentTarget&&t&&!S){let t=new CustomEvent(z,H);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=k().filter(e=>e.focusable);ea([e.find(e=>e.active),e.find(e=>e.id===x),...e].filter(Boolean).map(e=>e.ref.current),g)}}L.current=!1}),onBlur:(0,i.mK)(e.onBlur,()=>A(!1))})})}),en="RovingFocusGroupItem",eo=o.forwardRef((e,t)=>
51{let{__scopeRovingFocusGroup:r,focusable:n=!0,active:a=!1,tabStopId:l,children:u,...s}=e,d=(0,y.B)(),p=l||d,m=ee(en,r),v=m.currentTabStopId===p,h=X(r),{onFocusableItemAdd:g,onFocusableItemRemove:w,currentTabStopId:b}=m;return o.useEffect(()=>{if(n)return g(),()=>w()},[n,g,w]),(0,f.jsx)(V.ItemSlot,{scope:r,id:p,focusable:n,active:a,children:(0,f.jsx)(c.sG.span,{tabIndex:v?0:-1,"data-orientation":m.orientation,...s,ref:t,onMouseDown:(0,i.mK)(e.onMouseDown,e=>{n?m.onItemFocus(p):e.preventDefault()}),onFocus:(0,i.mK)(e.onFocus,()=>m.onItemFocus(p)),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){m.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return ei[o]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=h().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=m.loop?function(e,t){return e.map((r,n)=>e[(t+n)%e.length])}(r,n+1):r.slice(n+1)}setTimeout(()=>ea(r))}}),children:"function"==typeof u?u({isCurrentTabStop:v,hasTabStop:null!=b}):u})})});eo.displayName=en;var ei={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ea(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var el=r(15587),eu=r(2431),ec=["Enter"," "],es=["ArrowUp","PageDown","End"],ed=["ArrowDown","PageUp","Home",...es],ef={ltr:[...ec,"ArrowRight"],rtl:[...ec,"ArrowLeft"]},ep={ltr:["ArrowLeft"],rtl:["ArrowRight"]},em="Menu",[ev,eh,eg]=p(em),[ew,ey]=(0,l.A)(em,[eg,M,J]),eb=M(),eE=J(),[ex,eR]=ew(em),[eC,eS]=ew(em),eA=e=>{let{__scopeMenu:t,open:r=!1,children:n,dir:i,onOpenChange:a,modal:l=!0}=e,u=eb(t),[c,s]=o.useState(null),d=o.useRef(!1),p=(0,R.c)(a),m=v(i);return o.useEffect(()=>{let e=()=>{d.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>d.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})}},[]),(0,f.jsx)(N,{...u,children:(0,f.jsx)(ex,{scope:t,open:r,onOpenChange:p,content:c,onContentChange:s,children:(0,f.jsx)(eC,{scope:t,onClose:o.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:d,dir:m,modal:l,children:n})})})};eA.displayName=em;var eM=o.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=eb(r);return(0,f.jsx)(D,{...o,...n,ref:t})});eM.displayName="MenuAnchor";var ek="MenuPortal",[eL,eN]=ew(ek,{forceMount:void 0}),eP=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:o}=e,i=eR(ek,t);return(0,f.jsx)(eL,{scope:t,forceMount:r,children:(0,f.jsx)(U.C,{present:r||i.open,children:(0,f.jsx)(G.Z,{asChild:!0,container:o,children:n})})})};eP.displayName=ek;var eD="MenuContent",[ej,eI]=ew(eD),eO=o.forwardRef((e,t)=>{let r=eN(eD,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=eR(eD,e.__scopeMenu),a=eS(eD,e.__scopeMenu);return(0,f.jsx)(ev.Provider,{scope:e.__scopeMenu,children:(0,f.jsx)(U.C,{present:n||i.open,children:(0,f.jsx)(ev.Slot,{scope:e.__scopeMenu,children:a.modal?(0,f.jsx)(eT,{...o,ref:t}):(0,f.jsx)(e$,{...o,ref:t})})})})}),eT=o.forwardRef((e,t)=>{let r=eR(eD,e.__scopeMenu),n=o.useRef(null),l=(0,a.s)(t,n);return o.useEffect(()=>{let e=n.current;if(e)return(0,el.Eq)(e)},[]),(0,f.jsx)(eF,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),e$=o.forwardRef((e,t)=>{let r=eR(eD,e.__scopeMenu);return(0,f.jsx)(eF,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),e_=(0,d.TL)("MenuContent.ScrollLock"),eF=o.forwardRef((e,t)=>
51{let{__scopeMenu:r,loop:n=!1,trapFocus:l,onOpenAutoFocus:u,onCloseAutoFocus:c,disableOutsidePointerEvents:s,onEntryFocus:d,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:y,onDismiss:b,disableOutsideScroll:E,...x}=e,R=eR(eD,r),C=eS(eD,r),S=eb(r),A=eE(r),M=eh(r),[k,L]=o.useState(null),N=o.useRef(null),P=(0,a.s)(t,N,R.onContentChange),D=o.useRef(0),j=o.useRef(""),I=o.useRef(0),O=o.useRef(null),$=o.useRef("right"),_=o.useRef(0),F=E?eu.A:o.Fragment,K=e=>{var t,r;let n=j.current+e,o=M().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,r){var n;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=(n=Math.max(r?e.indexOf(r):-1,0),e.map((t,r)=>e[(n+r)%e.length]));1===o.length&&(i=i.filter(e=>e!==r));let a=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return a!==r?a:void 0}(o.map(e=>e.textValue),n,a),u=null===(r=o.find(e=>e.textValue===l))||void 0===r?void 0:r.ref.current;!function e(t){j.current=t,window.clearTimeout(D.current),""!==t&&(D.current=window.setTimeout(()=>e(""),1e3))}(n),u&&setTimeout(()=>u.focus())};o.useEffect(()=>()=>window.clearTimeout(D.current),[]),(0,g.Oh)();let W=o.useCallback(e=>{var t,r;return $.current===(null===(t=O.current)||void 0===t?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let a=t[e],l=t[i],u=a.x,c=a.y,s=l.x,d=l.y;c>n!=d>n&&r<(s-u)*(n-c)/(d-c)+u&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null===(r=O.current)||void 0===r?void 0:r.area)},[]);return(0,f.jsx)(ej,{scope:r,searchRef:j,onItemEnter:o.useCallback(e=>{W(e)&&e.preventDefault()},[W]),onItemLeave:o.useCallback(e=>{var t;W(e)||(null===(t=N.current)||void 0===t||t.focus(),L(null))},[W]),onTriggerLeave:o.useCallback(e=>{W(e)&&e.preventDefault()},[W]),pointerGraceTimerRef:I,onPointerGraceIntentChange:o.useCallback(e=>{O.current=e},[]),children:(0,f.jsx)(F,{...E?{as:e_,allowPinchZoom:!0}:void 0,children:(0,f.jsx)(w.n,{asChild:!0,trapped:l,onMountAutoFocus:(0,i.mK)(u,e=>{var t;e.preventDefault(),null===(t=N.current)||void 0===t||t.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:(0,f.jsx)(h.qW,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:y,onDismiss:b,children:(0,f.jsx)(et,{asChild:!0,...A,dir:C.dir,orientation:"vertical",loop:n,currentTabStopId:k,onCurrentTabStopIdChange:L,onEntryFocus:(0,i.mK)(d,e=>{C.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,f.jsx)(T,{role:"menu","aria-orientation":"vertical","data-state":tt(R.open),"data-radix-menu-content":"",dir:C.dir,...S,...x,ref:P,style:{outline:"none",...x.style},onKeyDown:(0,i.mK)(x.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&n&&K(e.key));let o=N.current;if(e.target!==o||!ed.includes(e.key))return;e.preventDefault();let i=M().filter(e=>!e.disabled).map(e=>e.ref.current);es.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(i)}),onBlur:(0,i.mK)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(D.current),j.current="")}),onPointerMove:(0,i.mK)(e.onPointerMove,to(e=>{let t=e.target,r=_.current!==e.clientX;if(e.currentTarget.contains(t)&&r){let t=e.clientX>_.current?"right":"left";$.current=t,_.current=e.clientX}}))})})})})})})});eO.displayName=eD;var eK=o.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,f.jsx)(c.sG.div,{role:"group",...n,ref:t})});eK.displayName="MenuGroup";var eW=o.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,f.jsx)(c.sG.div,{...n,ref:t})});eW.displayName="MenuLabel";var eB="MenuItem",eG="menu.itemSelect",eU=o.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:n,...l}=e,u=o.useRef(null),s=eS(eB,e.__scopeMenu),d=eI(eB,e.__scopeMenu),p=(0,a.s)(t,u),m=o.useRef(!1);return(0,f.jsx)(ez,{...l,ref:p,disabled:r,onClick:(0,i.mK)(e.onClick,()=>{let e=u.current;if(!r&&e){let t=new CustomEvent(eG,{bubbles:!0,cancelable:!0});e.addEventListener(eG,e=>null==n?void 0:n(e),{once:!0}),(0,c.hO)(e,t),t.defaultPrevented?m.current=!1:s.onClose()}}),onPointerDown:t=>{var r;null===(r=e.onPointerDown)||void 0===r||r.call(e,t),m.current=!0},onPointerUp:(0,i.mK)(e.onPointerUp,e=>{var t;m.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;
51!r&&(!t||" "!==e.key)&&ec.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});eU.displayName=eB;var ez=o.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:n=!1,textValue:l,...u}=e,s=eI(eB,r),d=eE(r),p=o.useRef(null),m=(0,a.s)(t,p),[v,h]=o.useState(!1),[g,w]=o.useState("");return o.useEffect(()=>{let e=p.current;if(e){var t;w((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[u.children]),(0,f.jsx)(ev.ItemSlot,{scope:r,disabled:n,textValue:null!=l?l:g,children:(0,f.jsx)(eo,{asChild:!0,...d,focusable:!n,children:(0,f.jsx)(c.sG.div,{role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...u,ref:m,onPointerMove:(0,i.mK)(e.onPointerMove,to(e=>{n?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,i.mK)(e.onPointerLeave,to(e=>s.onItemLeave(e))),onFocus:(0,i.mK)(e.onFocus,()=>h(!0)),onBlur:(0,i.mK)(e.onBlur,()=>h(!1))})})})}),eH=o.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...o}=e;return(0,f.jsx)(e0,{scope:e.__scopeMenu,checked:r,children:(0,f.jsx)(eU,{role:"menuitemcheckbox","aria-checked":tr(r)?"mixed":r,...o,ref:t,"data-state":tn(r),onSelect:(0,i.mK)(o.onSelect,()=>null==n?void 0:n(!!tr(r)||!r),{checkForDefaultPrevented:!1})})})});eH.displayName="MenuCheckboxItem";var eq="MenuRadioGroup",[eV,eX]=ew(eq,{value:void 0,onValueChange:()=>{}}),eY=o.forwardRef((e,t)=>{let{value:r,onValueChange:n,...o}=e,i=(0,R.c)(n);return(0,f.jsx)(eV,{scope:e.__scopeMenu,value:r,onValueChange:i,children:(0,f.jsx)(eK,{...o,ref:t})})});eY.displayName=eq;var eZ="MenuRadioItem",eJ=o.forwardRef((e,t)=>{let{value:r,...n}=e,o=eX(eZ,e.__scopeMenu),a=r===o.value;return(0,f.jsx)(e0,{scope:e.__scopeMenu,checked:a,children:(0,f.jsx)(eU,{role:"menuitemradio","aria-checked":a,...n,ref:t,"data-state":tn(a),onSelect:(0,i.mK)(n.onSelect,()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,r)},{checkForDefaultPrevented:!1})})})});eJ.displayName=eZ;var eQ="MenuItemIndicator",[e0,e1]=ew(eQ,{checked:!1}),e2=o.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...o}=e,i=e1(eQ,r);return(0,f.jsx)(U.C,{present:n||tr(i.checked)||!0===i.checked,children:(0,f.jsx)(c.sG.span,{...o,ref:t,"data-state":tn(i.checked)})})});e2.displayName=eQ;var e6=o.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,f.jsx)(c.sG.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});e6.displayName="MenuSeparator";var e5=o.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=eb(r);return(0,f.jsx)(F,{...o,...n,ref:t})});e5.displayName="MenuArrow";
51var[e3,e9]=ew("MenuSub"),e8="MenuSubTrigger",e4=o.forwardRef((e,t)=>{let r=eR(e8,e.__scopeMenu),n=eS(e8,e.__scopeMenu),l=e9(e8,e.__scopeMenu),u=eI(e8,e.__scopeMenu),c=o.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:d}=u,p={__scopeMenu:e.__scopeMenu},m=o.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return o.useEffect(()=>m,[m]),o.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),d(null)}},[s,d]),(0,f.jsx)(eM,{asChild:!0,...p,children:(0,f.jsx)(ez,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":l.contentId,"data-state":tt(r.open),...e,ref:(0,a.t)(t,l.onTriggerChange),onClick:t=>{var n;null===(n=e.onClick)||void 0===n||n.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,i.mK)(e.onPointerMove,to(t=>{u.onItemEnter(t),t.defaultPrevented||e.disabled||r.open||c.current||(u.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{r.onOpenChange(!0),m()},100))})),onPointerLeave:(0,i.mK)(e.onPointerLeave,to(e=>{var t,n;m();let o=null===(t=r.content)||void 0===t?void 0:t.getBoundingClientRect();if(o){let t=null===(n=r.content)||void 0===n?void 0:n.dataset.side,i="right"===t,a=o[i?"left":"right"],l=o[i?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:a,y:o.top},{x:l,y:o.top},{x:l,y:o.bottom},{x:a,y:o.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:(0,i.mK)(e.onKeyDown,t=>{let o=""!==u.searchRef.current;if(!e.disabled&&(!o||" "!==t.key)&&ef[n.dir].includes(t.key)){var i;r.onOpenChange(!0),null===(i=r.content)||void 0===i||i.focus(),t.preventDefault()}})})})});e4.displayName=e8;var e7="MenuSubContent",te=o.forwardRef((e,t)=>{let r=eN(eD,e.__scopeMenu),{forceMount:n=r.forceMount,...l}=e,u=eR(eD,e.__scopeMenu),c=eS(eD,e.__scopeMenu),s=e9(e7,e.__scopeMenu),d=o.useRef(null),p=(0,a.s)(t,d);return(0,f.jsx)(ev.Provider,{scope:e.__scopeMenu,children:(0,f.jsx)(U.C,{present:n||u.open,children:(0,f.jsx)(ev.Slot,{scope:e.__scopeMenu,children:(0,f.jsx)(eF,{id:s.contentId,"aria-labelledby":s.triggerId,...l,ref:p,align:"start",side:"rtl"===c.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;c.isUsingKeyboardRef.current&&(null===(t=d.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>{e.target!==s.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:(0,i.mK)(e.onEscapeKeyDown,e=>{c.onClose(),e.preventDefault()}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=ep[c.dir].includes(e.key);if(t&&r){var n;u.onOpenChange(!1),null===(n=s.trigger)||void 0===n||n.focus(),e.preventDefault()}})})})})})});function tt(e){return e?"open":"closed"}function tr(e){return"indeterminate"===e}function tn(e){return tr(e)?"indeterminate":e?"checked":"unchecked"}function to(e){return t=>"mouse"===t.pointerType?e(t):void 0}te.displayName=e7;var ti="DropdownMenu",[ta,tl]=(0,l.A)(ti,[ey]),tu=ey(),[tc,ts]=ta(ti),td=e=>{let{__scopeDropdownMenu:t,children:r,dir:n,open:i,defaultOpen:a,onOpenChange:l,modal:c=!0}=e,s=tu(t),d=o.useRef(null),[p,m]=(0,u.i)({prop:i,defaultProp:null!=a&&a,onChange:l,caller:ti});return(0,f.jsx)(tc,{scope:t,triggerId:(0,y.B)(),triggerRef:d,contentId:(0,y.B)(),open:p,onOpenChange:m,onOpenToggle:o.useCallback(()=>m(e=>!e),[m]),modal:c,children:(0,f.jsx)(eA,{...s,open:p,onOpenChange:m,dir:n,modal:c,children:r})})};td.displayName=ti;var tf="DropdownMenuTrigger",tp=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,l=ts(tf,r),u=tu(r);return(0,f.jsx)(eM,{asChild:!0,...u,children:(0,f.jsx)(c.sG.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:(0,a.t)(t,l.triggerRef),onPointerDown:(0,i.mK)(e.onPointerDown,e=>{n||0!==e.button||!1!==e.ctrlKey||(l.onOpenToggle(),l.open||e.preventDefault())}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>
51{!n&&(["Enter"," "].includes(e.key)&&l.onOpenToggle(),"ArrowDown"===e.key&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});tp.displayName=tf;var tm=e=>{let{__scopeDropdownMenu:t,...r}=e,n=tu(t);return(0,f.jsx)(eP,{...n,...r})};tm.displayName="DropdownMenuPortal";var tv="DropdownMenuContent",th=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=ts(tv,r),l=tu(r),u=o.useRef(!1);return(0,f.jsx)(eO,{id:a.contentId,"aria-labelledby":a.triggerId,...l,...n,ref:t,onCloseAutoFocus:(0,i.mK)(e.onCloseAutoFocus,e=>{var t;u.current||null===(t=a.triggerRef.current)||void 0===t||t.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,i.mK)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!a.modal||n)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});th.displayName=tv,o.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tu(r);return(0,f.jsx)(eK,{...o,...n,ref:t})}).displayName="DropdownMenuGroup",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tu(r);return(0,f.jsx)(eW,{...o,...n,ref:t})}).displayName="DropdownMenuLabel";var tg=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tu(r);return(0,f.jsx)(eU,{...o,...n,ref:t})});tg.displayName="DropdownMenuItem",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tu(r);return(0,f.jsx)(eH,{...o,...n,ref:t})}).displayName="DropdownMenuCheckboxItem",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tu(r);return(0,f.jsx)(eY,{...o,...n,ref:t})}).displayName="DropdownMenuRadioGroup",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tu(r);return(0,f.jsx)(eJ,{...o,...n,ref:t})}).displayName="DropdownMenuRadioItem",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tu(r);return(0,f.jsx)(e2,{...o,...n,ref:t})}).displayName="DropdownMenuItemIndicator",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tu(r);return(0,f.jsx)(e6,{...o,...n,ref:t})}).displayName="DropdownMenuSeparator",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tu(r);return(0,f.jsx)(e5,{...o,...n,ref:t})}).displayName="DropdownMenuArrow",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tu(r);return(0,f.jsx)(e4,{...o,...n,ref:t})}).displayName="DropdownMenuSubTrigger",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tu(r);return(0,f.jsx)(te,{...o,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="DropdownMenuSubContent";var tw=td,ty=tp,tb=tm,tE=th,tx=tg},62292:(e,t,r)=>{r.d(t,{Oh:()=>i});var n=r(12115),o=0;function i(){n.useEffect(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=r[0])&&void 0!==e?e:a()),document.body.insertAdjacentElement("beforeend",null!==(t=r[1])&&void 0!==t?t:a()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},20196:(e,t,r)=>{r.d(t,{n:()=>d});var n=r(12115),o=r(88068),i=r(23360),a=r(41524),l=r(95155),u="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",s={bubbles:!1,cancelable:!0},d=n.forwardRef((e,t)=>
51{let{loop:r=!1,trapped:d=!1,onMountAutoFocus:h,onUnmountAutoFocus:g,...w}=e,[y,b]=n.useState(null),E=(0,a.c)(h),x=(0,a.c)(g),R=n.useRef(null),C=(0,o.s)(t,e=>b(e)),S=n.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;n.useEffect(()=>{if(d){let e=function(e){if(S.paused||!y)return;let t=e.target;y.contains(t)?R.current=t:m(R.current,{select:!0})},t=function(e){if(S.paused||!y)return;let t=e.relatedTarget;null===t||y.contains(t)||m(R.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&m(y)});return y&&r.observe(y,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[d,y,S.paused]),n.useEffect(()=>{if(y){v.add(S);let e=document.activeElement;if(!y.contains(e)){let t=new CustomEvent(u,s);y.addEventListener(u,E),y.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=document.activeElement;for(let n of e)if(m(n,{select:t}),document.activeElement!==r)return}(f(y).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(y))}return()=>{y.removeEventListener(u,E),setTimeout(()=>{let t=new CustomEvent(c,s);y.addEventListener(c,x),y.dispatchEvent(t),t.defaultPrevented||m(null!=e?e:document.body,{select:!0}),y.removeEventListener(c,x),v.remove(S)},0)}}},[y,E,x,S]);let A=n.useCallback(e=>{if(!r&&!d||S.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[o,i]=function(e){let t=f(e);return[p(t,e),p(t.reverse(),e)]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&m(i,{select:!0})):(e.preventDefault(),r&&m(o,{select:!0})):n===t&&e.preventDefault()}},[r,d,S.paused]);return(0,l.jsx)(i.sG.div,{tabIndex:-1,...w,ref:C,onKeyDown:A})});function f(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function p(e,t){for(let r of e)if(!function(e,t){let{upTo:r}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===r||e!==r);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function m(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}d.displayName="FocusScope";var v=function(){let e=[];return{add(t){let r=e[0];t!==r&&(null==r||r.pause()),(e=h(e,t)).unshift(t)},remove(t){var r;null===(r=(e=h(e,t))[0])||void 0===r||r.resume()}}}();function h(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}},67668:(e,t,r)=>{r.d(t,{B:()=>u});var n,o=r(12115),i=r(46611),a=(n||(n=r.t(o,2)))[" useId ".trim().toString()]||(()=>void 0),l=0;function u(e){let[t,r]=o.useState(a());return(0,i.N)(()=>{e||r(e=>e??String(l++))},[e]),e||(t?`radix-${t}`:"")}},17323:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(12115),o=r(47650),i=r(23360),a=r(46611),l=r(95155),u=n.forwardRef((e,t)=>{var r,u;let{container:c,...s}=e,[d,f]=n.useState(!1);(0,a.N)(()=>f(!0),[]);let p=c||d&&(null===(u=globalThis)||void 0===u?void 0:null===(r=u.document)||void 0===r?void 0:r.body);return p?o.createPortal((0,l.jsx)(i.sG.div,{...s,ref:t}),p):null});u.displayName="Portal"},17028:(e,t,r)=>{r.d(t,{C:()=>a});var n=r(12115),o=r(88068),i=r(46611),a=e=>{let{present:t,children:r}=e,a=function(e){var t,r;let[o,a]=n.useState(),u=n.useRef(null),c=n.useRef(e),s=n.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return n.useEffect(()=>{let e=l(u.current);s.current="mounted"===d?e:"none"},[d]),(0,i.N)(()=>{let t=u.current,r=c.current;if(r!==e){let n=s.current,o=l(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):r&&n!==o?f("ANIMATION_OUT"):f("UNMOUNT"),c.current=e}},[e,f]),(0,i.N)(()=>
51{if(o){var e;let t;let r=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,n=e=>{let n=l(u.current).includes(CSS.escape(e.animationName));if(e.target===o&&n&&(f("ANIMATION_END"),!c.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(s.current=l(u.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",n),o.addEventListener("animationend",n),()=>{r.clearTimeout(t),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",n),o.removeEventListener("animationend",n)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:n.useCallback(e=>{u.current=e?getComputedStyle(e):null,a(e)},[])}}(t),u="function"==typeof r?r({present:a.isPresent}):n.Children.only(r),c=(0,o.s)(a.ref,function(e){var t,r;let n=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=n&&"isReactWarning"in n&&n.isReactWarning;return o?e.ref:(o=(n=null===(r=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===r?void 0:r.get)&&"isReactWarning"in n&&n.isReactWarning)?e.props.ref:e.props.ref||e.ref}(u));return"function"==typeof r||a.isPresent?n.cloneElement(u,{ref:c}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"},23360:(e,t,r)=>{r.d(t,{hO:()=>u,sG:()=>l});var n=r(12115),o=r(47650),i=r(12317),a=r(95155),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,i.TL)(`Primitive.${t}`),o=n.forwardRef((e,n)=>{let{asChild:o,...i}=e,l=o?r:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(l,{...i,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function u(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},12317:(e,t,r)=>{r.d(t,{TL:()=>a});var n=r(12115),o=r(88068),i=r(95155);function a(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:r,...i}=e;if(n.isValidElement(r)){let e,a;let l=(e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.ref:(e=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.props.ref:r.props.ref||r.ref,u=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(i,r.props);return r.type!==n.Fragment&&(u.ref=t?(0,o.t)(t,l):l),n.cloneElement(r,u)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=n.forwardRef((e,r)=>{let{children:o,...a}=e,l=n.Children.toArray(o),c=l.find(u);if(c){let e=c.props.children,o=l.map(t=>t!==c?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...a,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,o):null})}return(0,i.jsx)(t,{...a,ref:r,children:o})});return r.displayName=`${e}.Slot`,r}var l=Symbol("radix.slottable");function u(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===l}},41524:(e,t,r)=>{r.d(t,{c:()=>o});var n=r(12115);function o(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},1488:(e,t,r)=>{r.d(t,{i:()=>l});var n,o=r(12115),i=r(46611),a=(n||(n=r.t(o,2)))[" useInsertionEffect ".trim().toString()]||i.N;function l({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[i,l,u]=function({defaultProp:e,onChange:t}){let[r,n]=o.useState(e),i=o.useRef(r),l=o.useRef(t);return a(()=>{l.current=t},[t]),o.useEffect(()=>{i.current!==r&&(l.current?.(r),i.current=r)},[r,i]),[r,n,l]}({defaultProp:t,onChange:r}),c=void 0!==e,s=c?e:i;{let t=o.useRef(void 0!==e);o.useEffect(()=>{let e=t.current;if(e!==c){let t=c?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=c},[c,n])}return[s,o.useCallback(t=>{if(c){let r="function"==typeof t?t(e):t;r!==e&&u.current?.(r)}else l(t)},[c,e,l,u])]}Symbol("RADIX:SYNC_STATE")},46611:(e,t,r)=>{r.d(t,{N:()=>o});var n=r(12115),o=globalThis?.document?n.useLayoutEffect:()=>{}},63543:(e,t,r)=>{r.d(t,{bL:()=>u});var n=r(12115),o=r(23360),i=r(95155),a=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),l=n.forwardRef((e,t)=>
51(0,i.jsx)(o.sG.span,{...e,ref:t,style:{...a,...e.style}}));l.displayName="VisuallyHidden";var u=l},7859:(e,t,r)=>{r.d(t,{uB:()=>D});var n=/[\\\/_+.#"@\[\(\{&]/,o=/[\\\/_+.#"@\[\(\{&]/g,i=/[\s-]/,a=/[\s-]/g;function l(e){return e.toLowerCase().replace(a," ")}var u=r(66217),c=r(12115),s=r(23360),d=r(67668),f=r(88068),p='[cmdk-group=""]',m='[cmdk-group-items=""]',v='[cmdk-item=""]',h="".concat(v,':not([aria-disabled="true"])'),g="cmdk-item-select",w="data-value",y=(e,t,r)=>(function(e,t,r){return function e(t,r,l,u,c,s,d){if(s===r.length)return c===t.length?1:.99;var f=`${c},${s}`;if(void 0!==d[f])return d[f];for(var p,m,v,h,g=u.charAt(s),w=l.indexOf(g,c),y=0;w>=0;)(p=e(t,r,l,u,w+1,s+1,d))>y&&(w===c?p*=1:n.test(t.charAt(w-1))?(p*=.8,(v=t.slice(c,w-1).match(o))&&c>0&&(p*=Math.pow(.999,v.length))):i.test(t.charAt(w-1))?(p*=.9,(h=t.slice(c,w-1).match(a))&&c>0&&(p*=Math.pow(.999,h.length))):(p*=.17,c>0&&(p*=Math.pow(.999,w-c))),t.charAt(w)!==r.charAt(s)&&(p*=.9999)),(p<.1&&l.charAt(w-1)===u.charAt(s+1)||u.charAt(s+1)===u.charAt(s)&&l.charAt(w-1)!==u.charAt(s))&&.1*(m=e(t,r,l,u,w+1,s+2,d))>p&&(p=.1*m),p>y&&(y=p),w=l.indexOf(g,w+1);return d[f]=y,y}(e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,t,l(e),l(t),0,0,{})})(e,t,r),b=c.createContext(void 0),E=()=>c.useContext(b),x=c.createContext(void 0),R=()=>c.useContext(x),C=c.createContext(void 0),S=c.forwardRef((e,t)=>{let r=O(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=O(()=>new Set),o=O(()=>new Map),i=O(()=>new Map),a=O(()=>new Set),l=j(e),{label:u,children:f,value:E,onValueChange:R,filter:C,shouldFilter:S,loop:A,disablePointerSelection:M=!1,vimBindings:k=!0,...L}=e,N=(0,d.B)(),P=(0,d.B)(),D=(0,d.B)(),T=c.useRef(null),$=_();I(()=>{if(void 0!==E){let e=E.trim();r.current.value=e,W.emit()}},[E]),I(()=>{$(6,q)},[]);let W=c.useMemo(()=>({subscribe:e=>(a.current.add(e),()=>a.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var o,i,a,u;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)H(),U(),$(1,z);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(D);e?e.focus():null==(o=document.getElementById(N))||o.focus()}if($(7,()=>{var e;r.current.selectedItemId=null==(e=V())?void 0:e.id,W.emit()}),n||$(5,q),(null==(i=l.current)?void 0:i.value)!==void 0){null==(u=(a=l.current).onValueChange)||u.call(a,null!=t?t:"");return}}W.emit()}},emit:()=>{a.current.forEach(e=>e())}}),[]),B=c.useMemo(()=>({value:(e,t,n)=>{var o;t!==(null==(o=i.current.get(e))?void 0:o.value)&&(i.current.set(e,{value:t,keywords:n}),r.current.filtered.items.set(e,G(t,n)),$(2,()=>{U(),W.emit()}))},item:(e,t)=>(n.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),$(3,()=>{H(),U(),r.current.value||z(),W.emit()}),()=>{i.current.delete(e),n.current.delete(e),r.current.filtered.items.delete(e);let t=V();$(4,()=>{H(),(null==t?void 0:t.getAttribute("id"))===e&&z(),W.emit()})}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{i.current.delete(e),o.current.delete(e)}),filter:()=>l.current.shouldFilter,label:u||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:N,inputId:D,labelId:P,listInnerRef:T}),[]);function G(e,t){var n,o;let i=null!=(o=null==(n=l.current)?void 0:n.filter)?o:y;return e?i(e,r.current.search,t):0}function U(){if(!r.current.search||!1===l.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(r=>{let n=o.current.get(r),i=0;n.forEach(t=>{i=Math.max(e.get(t),i)}),t.push([r,i])});let n=T.current;X().sort((t,r)=>{var n,o;let i=t.getAttribute("id"),a=r.getAttribute("id");return(null!=(n=e.get(a))?n:0)-(null!=(o=e.get(i))?o:0)}).forEach(e=>{let t=e.closest(m);t?t.appendChild(e.parentElement===t?e:e.closest("".concat(m," > *"))):n.appendChild(e.parentElement===n?e:e.closest("".concat(m," > *")))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=T.current)?void 0:t.querySelector("".concat(p,"[").concat(w,'="').concat(encodeURIComponent(e[0]),'"]'));null==r||r.parentElement.appendChild(r)})}function z(){let e=X().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(w);W.setState("value",t||void 0)}function H(){var e,t,a,u;if(!r.current.search||!1===l.current.shouldFilter){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let c=0;for(let o of n.current){let n=G(null!=(t=null==(e=i.current.get(o))?void 0:e.value)?t:"",null!=(u=null==(a=i.current.get(o))?void 0:a.keywords)?u:[]);r.current.filtered.items.set(o,n),n>0&&c++}for(let[e,t]of o.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=c}function q(){var e,t,r;let n=V();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(p))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function V(){var e;return null==(e=T.current)?void 0:e.querySelector("".concat(v,'[aria-selected="true"]'))}function X(){var e;return Array.from((null==(e=T.current)?void 0:e.querySelectorAll(h))||[])}function Y(e){let t=X()[e];t&&W.setState("value",t.getAttribute(w))}function Z(e){var t;let r=V(),n=X(),o=n.findIndex(e=>e===r),i=n[o+e];null!=(t=l.current)&&t.loop&&(i=o+e<0?n[n.length-1]:o+e===n.length?n[0]:n[o+e]),i&&W.setState("value",i.getAttribute(w))}function J(e){let t=V(),r=null==t?void 0:t.closest(p),n;for(;r&&!n;)n=null==(r=e>0?function(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}(r,p):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,p))?void 0:r.querySelector(h);n?W.setState("value",n.getAttribute(w)):Z(e)}let Q=()=>Y(X().length-1),ee=e=>{e.preventDefault(),e.metaKey?Q():e.altKey?J(1):Z(1)},et=e=>{e.preventDefault(),e.metaKey?Y(0):e.altKey?J(-1):Z(-1)};return c.createElement(s.sG.div,{ref:t,tabIndex:-1,...L,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=L.onKeyDown)||t.call(L,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||r))switch(e.key){case"n":case"j":k&&e.ctrlKey&&ee(e);break;case"ArrowDown":ee(e);break;case"p":case"k":k&&e.ctrlKey&&et(e);break;case"ArrowUp":et(e);break;case"Home":e.preventDefault(),Y(0);break;case"End":e.preventDefault(),Q();break;case"Enter":{e.preventDefault();let t=V();if(t){let e=new Event(g);t.dispatchEvent(e)}}}}},c.createElement("label",{"cmdk-label":"",htmlFor:B.inputId,id:B.labelId,style:K},u),F(e,e=>c.createElement(x.Provider,{value:W},c.createElement(b.Provider,{value:B},e))))}),A=c.forwardRef((e,t)=>
51{var r,n;let o=(0,d.B)(),i=c.useRef(null),a=c.useContext(C),l=E(),u=j(e),p=null!=(n=null==(r=u.current)?void 0:r.forceMount)?n:null==a?void 0:a.forceMount;I(()=>{if(!p)return l.item(o,null==a?void 0:a.id)},[p]);let m=$(o,i,[e.value,e.children,i],e.keywords),v=R(),h=T(e=>e.value&&e.value===m.current),w=T(e=>!!p||!1===l.filter()||!e.search||e.filtered.items.get(o)>0);function y(){var e,t;b(),null==(t=(e=u.current).onSelect)||t.call(e,m.current)}function b(){v.setState("value",m.current,!0)}if(c.useEffect(()=>{let t=i.current;if(!(!t||e.disabled))return t.addEventListener(g,y),()=>t.removeEventListener(g,y)},[w,e.onSelect,e.disabled]),!w)return null;let{disabled:x,value:S,onSelect:A,forceMount:M,keywords:k,...L}=e;return c.createElement(s.sG.div,{ref:(0,f.t)(i,t),...L,id:o,"cmdk-item":"",role:"option","aria-disabled":!!x,"aria-selected":!!h,"data-disabled":!!x,"data-selected":!!h,onPointerMove:x||l.getDisablePointerSelection()?void 0:b,onClick:x?void 0:y},e.children)}),M=c.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...i}=e,a=(0,d.B)(),l=c.useRef(null),u=c.useRef(null),p=(0,d.B)(),m=E(),v=T(e=>!!o||!1===m.filter()||!e.search||e.filtered.groups.has(a));I(()=>m.group(a),[]),$(a,l,[e.value,e.heading,u]);let h=c.useMemo(()=>({id:a,forceMount:o}),[o]);return c.createElement(s.sG.div,{ref:(0,f.t)(l,t),...i,"cmdk-group":"",role:"presentation",hidden:!v||void 0},r&&c.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:p},r),F(e,e=>c.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?p:void 0},c.createElement(C.Provider,{value:h},e))))}),k=c.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=c.useRef(null),i=T(e=>!e.search);return r||i?c.createElement(s.sG.div,{ref:(0,f.t)(o,t),...n,"cmdk-separator":"",role:"separator"}):null}),L=c.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=null!=e.value,i=R(),a=T(e=>e.search),l=T(e=>e.selectedItemId),u=E();return c.useEffect(()=>{null!=e.value&&i.setState("search",e.value)},[e.value]),c.createElement(s.sG.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":l,id:u.inputId,type:"text",value:o?e.value:a,onChange:e=>{o||i.setState("search",e.target.value),null==r||r(e.target.value)}})}),N=c.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,i=c.useRef(null),a=c.useRef(null),l=T(e=>e.selectedItemId),u=E();return c.useEffect(()=>{if(a.current&&i.current){let e=a.current,t=i.current,r,n=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{let r=e.offsetHeight;t.style.setProperty("--cmdk-list-height",r.toFixed(1)+"px")})});return n.observe(e),()=>{cancelAnimationFrame(r),n.unobserve(e)}}},[]),c.createElement(s.sG.div,{ref:(0,f.t)(i,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":n,id:u.listId},F(e,e=>c.createElement("div",{ref:(0,f.t)(a,u.listInnerRef),"cmdk-list-sizer":""},e)))}),P=c.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:i,container:a,...l}=e;return c.createElement(u.bL,{open:r,onOpenChange:n},c.createElement(u.ZL,{container:a},c.createElement(u.hJ,{"cmdk-overlay":"",className:o}),c.createElement(u.UC,{"aria-label":e.label,"cmdk-dialog":"",className:i},c.createElement(S,{ref:t,...l}))))}),D=Object.assign(S,{List:N,Item:A,Input:L,Group:M,Separator:k,Dialog:P,Empty:c.forwardRef((e,t)=>T(e=>0===e.filtered.count)?c.createElement(s.sG.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:c.forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...i}=e;return c.createElement(s.sG.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},F(e,e=>c.createElement("div",{"aria-hidden":!0},e)))})});function j(e){let t=c.useRef(e);return I(()=>{t.current=e}),t}var I="undefined"==typeof window?c.useEffect:c.useLayoutEffect;function O(e){let t=c.useRef();return void 0===t.current&&(t.current=e()),t}function T(e){let t=R(),r=()=>e(t.snapshot());
51return c.useSyncExternalStore(t.subscribe,r,r)}function $(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=c.useRef(),i=E();return I(()=>{var a;let l=(()=>{var e;for(let t of r){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():o.current}})(),u=n.map(e=>e.trim());i.value(e,l,u),null==(a=t.current)||a.setAttribute(w,l),o.current=l}),o}var _=()=>{let[e,t]=c.useState(),r=O(()=>new Map);return I(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,n)=>{r.current.set(e,n),t({})}};function F(e,t){let r,{asChild:n,children:o}=e;return n&&c.isValidElement(o)?c.cloneElement("function"==typeof(r=o.type)?r(o.props):"render"in r?r.render(o.props):o,{ref:o.ref},t(o.props.children)):t(o)}var K={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},31343:(e,t,r)=>{r.d(t,{L:()=>o});var n=r(12115);function o(e,t,r){(0,n.useInsertionEffect)(()=>e.on(t,r),[e,t,r])}},25580:(e,t,r)=>{let n,o;r.d(t,{L:()=>q});var i=r(39421),a=r(45107),l=r(12115),u=r(26054),c=r(23932);function s(e,t){let r;let n=()=>{let{currentTime:n}=t,o=(null===n?0:n.value)/100;r!==o&&e(o),r=o};return c.Gt.preUpdate(n,!0),()=>(0,c.WG)(n)}var d=r(55425),f=r(48091),p=r(34999);let m=new WeakMap,v=(e,t,r)=>(n,o)=>o&&o[0]?o[0][e+"Size"]:(0,f.x)(n)&&"getBBox"in n?n.getBBox()[t]:n[r],h=v("inline","width","offsetWidth"),g=v("block","height","offsetHeight");function w({target:e,borderBoxSize:t}){m.get(e)?.forEach(r=>{r(e,{get width(){return h(e,t)},get height(){return g(e,t)}})})}function y(e){e.forEach(w)}let b=new Set;var E=r(19615),x=r(43700);let R=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),C=()=>({time:0,x:R(),y:R()}),S={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function A(e,t,r,n){let o=r[t],{length:i,position:a}=S[t],l=o.current,u=r.time;o.current=e[`scroll${a}`],o.scrollLength=e[`scroll${i}`]-e[`client${i}`],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=(0,E.q)(0,o.scrollLength,o.current);let c=n-u;o.velocity=c>50?0:(0,x.f)(o.current-l,c)}var M=r(21136),k=r(6421),L=r(85821),N=r(92804);let P={start:0,center:.5,end:1};function D(e,t,r=0){let n=0;if(e in P&&(e=P[e]),"string"==typeof e){let t=parseFloat(e);e.endsWith("px")?n=t:e.endsWith("%")?e=t/100:e.endsWith("vw")?n=t/100*document.documentElement.clientWidth:e.endsWith("vh")?n=t/100*document.documentElement.clientHeight:e=t}return"number"==typeof e&&(n=t*e),r+n}let j=[0,0],I={All:[[0,0],[1,1]]},O={x:0,y:0},T=new WeakMap,$=new WeakMap,_=new WeakMap,F=e=>e===document.scrollingElement?window:e;function K(e,{container:t=document.scrollingElement,...r}={}){if(!t)return u.l;let i=_.get(t);i||(i=new Set,_.set(t,i));let a=function(e,t,r,n={}){return{measure:t=>{!function(e,t=e,r){if(r.x.targetOffset=0,r.y.targetOffset=0,t!==e){let n=t;for(;n&&n!==e;)r.x.targetOffset+=n.offsetLeft,r.y.targetOffset+=n.offsetTop,n=n.offsetParent}r.x.targetLength=t===e?t.scrollWidth:t.clientWidth,r.y.targetLength=t===e?t.scrollHeight:t.clientHeight,r.x.containerLength=e.clientWidth,r.y.containerLength=e.clientHeight}(e,n.target,r),A(e,"x",r,t),A(e,"y",r,t),r.time=t,(n.offset||n.target)&&function(e,t,r){let{offset:n=I.All}=r,{target:o=e,axis:i="y"}=r,a="y"===i?"height":"width",l=o!==e?function(e,t){let r={x:0,y:0},n=e;for(;n&&n!==t;)if((0,N.s)(n))r.x+=n.offsetLeft,r.y+=n.offsetTop,n=n.offsetParent;else if("svg"===n.tagName){let e=n.getBoundingClientRect(),t=(n=n.parentElement).getBoundingClientRect();r.x+=e.left-t.left,r.y+=e.top-t.top}else if(n instanceof SVGGraphicsElement){let{x:e,y:t}=n.getBBox();r.x+=e,r.y+=t;let o=null,i=n.parentNode;for(;!o;)"svg"===i.tagName&&(o=i),i=n.parentNode;n=o}else break;return r}(o,e):O,u=o===e?{width:e.scrollWidth,height:e.scrollHeight}:"getBBox"in o&&"svg"!==o.tagName?o.getBBox():{width:o.clientWidth,height:o.clientHeight},c={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let s=!t[i].interpolate,d=n.length;for(let e=0;e<d;e++){let r=function(e,t,r,n){let o=Array.isArray(e)?e:j,i=0;
51return"number"==typeof e?o=[e,e]:"string"==typeof e&&(o=(e=e.trim()).includes(" ")?e.split(" "):[e,P[e]?e:"0"]),D(o[0],r,n)-D(o[1],t)}(n[e],c[a],u[a],l[i]);s||r===t[i].interpolatorOffsets[e]||(s=!0),t[i].offset[e]=r}s&&(t[i].interpolate=(0,M.G)(t[i].offset,(0,k.Z)(n),{clamp:!1}),t[i].interpolatorOffsets=[...t[i].offset]),t[i].progress=(0,L.q)(0,1,t[i].interpolate(t[i].current))}(e,r,n)},notify:()=>t(r)}}(t,e,C(),r);if(i.add(a),!T.has(t)){let e=()=>{for(let e of i)e.measure(c.uv.timestamp);c.Gt.preUpdate(r)},r=()=>{for(let e of i)e.notify()},a=()=>c.Gt.read(e);T.set(t,a);let l=F(t);window.addEventListener("resize",a,{passive:!0}),t!==document.documentElement&&$.set(t,"function"==typeof t?(b.add(t),o||(o=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};b.forEach(t=>t(e))},window.addEventListener("resize",o)),()=>{b.delete(t),b.size||"function"!=typeof o||(window.removeEventListener("resize",o),o=void 0)}):function(e,t){n||"undefined"==typeof ResizeObserver||(n=new ResizeObserver(y));let r=(0,p.K)(e);return r.forEach(e=>{let r=m.get(e);r||(r=new Set,m.set(e,r)),r.add(t),n?.observe(e)}),()=>{r.forEach(e=>{let r=m.get(e);r?.delete(t),r?.size||n?.unobserve(e)})}}(t,a)),l.addEventListener("scroll",a,{passive:!0}),a()}let l=T.get(t);return c.Gt.read(l,!1,!0),()=>{(0,c.WG)(l);let e=_.get(t);if(!e||(e.delete(a),e.size))return;let r=T.get(t);T.delete(t),r&&(F(t).removeEventListener("scroll",r),$.get(t)?.(),window.removeEventListener("resize",r))}}let W=new Map;function B({source:e,container:t,...r}){let{axis:n}=r;e&&(t=e);let o=W.get(t)??new Map;W.set(t,o);let i=r.target??"self",a=o.get(i)??{},l=n+(r.offset??[]).join(",");return a[l]||(a[l]=!r.target&&(0,d.J)()?new ScrollTimeline({source:t,axis:n}):function(e){let t={value:0},r=K(r=>{t.value=100*r[e.axis].progress},e);return{currentTime:t,cancel:r}}({container:t,...r})),a[l]}var G=r(99234),U=r(35403);let z=()=>({scrollX:(0,i.OQ)(0),scrollY:(0,i.OQ)(0),scrollXProgress:(0,i.OQ)(0),scrollYProgress:(0,i.OQ)(0)}),H=e=>!!e&&!e.current;function q({container:e,target:t,...r}={}){let n=(0,G.M)(z),o=(0,l.useRef)(null),i=(0,l.useRef)(!1),c=(0,l.useCallback)(()=>(o.current=function(e,{axis:t="y",container:r=document.scrollingElement,...n}={}){if(!r)return u.l;let o={axis:t,container:r,...n};return"function"==typeof e?2===e.length?K(t=>{e(t[o.axis].progress,t)},o):s(e,B(o)):function(e,t){let r=B(t);return e.attachTimeline({timeline:t.target?void 0:r,observe:e=>(e.pause(),s(t=>{e.time=e.duration*t},r))})}(e,o)}((e,{x:t,y:r})=>{n.scrollX.set(t.current),n.scrollXProgress.set(t.progress),n.scrollY.set(r.current),n.scrollYProgress.set(r.progress)},{...r,container:e?.current||void 0,target:t?.current||void 0}),()=>{o.current?.()}),[e,t,JSON.stringify(r.offset)]);return(0,U.E)(()=>{if(i.current=!1,!(H(e)||H(t)))return c();i.current=!0},[c]),(0,l.useEffect)(()=>i.current?((0,a.V)(!H(e),"Container ref is defined but not hydrated","use-scroll-ref"),(0,a.V)(!H(t),"Target ref is defined but not hydrated","use-scroll-ref"),c()):void 0,[c]),n}},79310:(e,t,r)=>{r.d(t,{default:()=>c});var n=r(12115),o={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"};let i=e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1};var a=r(67376);let l=(0,n.createContext)({}),u=()=>(0,n.useContext)(l),c=(0,n.forwardRef)((e,t)=>{var r,l,c;let{color:s,size:d,strokeWidth:f,absoluteStrokeWidth:p,className:m="",children:v,iconNode:h,...g}=e,{size:w=24,strokeWidth:y=2,absoluteStrokeWidth:b=!1,color:E="currentColor",className:x=""}=null!==(r=u())&&void 0!==r?r:{},R=(null!=p?p:b)?24*Number(null!=f?f:y)/Number(null!=d?d:w):null!=f?f:y;return(0,n.createElement)("svg",{ref:t,...o,width:null!==(l=null!=d?d:w)&&void 0!==l?l:o.width,height:null!==(c=null!=d?d:w)&&void 0!==c?c:o.height,stroke:null!=s?s:E,strokeWidth:R,className:(0,a.z)("lucide",x,m),...!v&&!i(g)&&{"aria-hidden":"true"},...g},[...h.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(v)?v:[v]])})},78166:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(12115),o=r(67376);let i=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),a=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase()),l=e=>{let t=a(e);return t.charAt(0).toUpperCase()+t.slice(1)};var u=r(79310);let c=(e,t)=>{let r=(0,n.forwardRef)((r,a)=>{let{className:c,...s}=r;return(0,n.createElement)(u.default,{ref:a,iconNode:t,className:(0,o.z)("lucide-".concat(i(l(e))),"lucide-".concat(e),c),...s})});return r.displayName=l(e),r}},53014:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(78166).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},81717:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(78166).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},30670:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(78166).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},32033:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(78166).A)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]])},60492:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(78166).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},96994:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(78166).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
51],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},67376:(e,t,r)=>{r.d(t,{z:()=>n});let n=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.