PageSourceSearch

https://staging-instasent-docs-nextjs.oscar-284.workers.dev/_next/static/chunks/0rwrs8-cltk.o.js

js staging-instasent-docs-nextjs.oscar-284.workers.dev collected 2026-10-03 08:11:16 UTC 162,857 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,564014,(e,t,n)=>{t.exports=e.r(69419)},152093,e=>{"use strict";let t=(0,e.i(120848).default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);e.s(["Sparkles",0,t],152093)},194326,e=>{"use strict";e.s(["mergeObjects",0,function(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}])},373501,e=>{"use strict";var t=e.i(194326);let n={};function r(e){return s(e)?{...a(e,n)}:function(e){let t={...e};for(let e in t){let n=t[e];i(e,n)&&(t[e]=l(n))}return t}(e)}function o(e,n){return s(n)?a(n,e):function(e,n){if(!n)return e;for(let r in n){let o=n[r];switch(r){case"style":e[r]=(0,t.mergeObjects)(e.style,o);break;case"className":e[r]=c(e.className,o);break;default:i(r,o)?e[r]=function(e,t){return t?e?n=>{if(d(n)){u(n);let r=t(n);return n.baseUIHandlerPrevented||e?.(n),r}let r=t(n);return e?.(n),r}:l(t):e}(e[r],o):e[r]=o}}return e}(e,n)}function i(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2);return 111===n&&110===r&&o>=65&&o<=90&&("function"==typeof t||void 0===t)}function s(e){return"function"==typeof e}function a(e,t){return s(e)?e(t):e??n}function l(e){return e?t=>(d(t)&&u(t),e(t)):e}function u(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function c(e,t){return t?e?t+" "+e:t:e}function d(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}e.s(["makeEventPreventable",0,u,"mergeClassNames",0,c,"mergeProps",0,function(e,t,n,i,s){if(!n&&!i&&!s&&!e)return r(t);let a=r(e);return t&&(a=o(a,t)),n&&(a=o(a,n)),i&&(a=o(a,i)),s&&(a=o(a,s)),a},"mergePropsN",0,function(e){if(0===e.length)return n;if(1===e.length)return r(e[0]);let t=r(e[0]);for(let n=1;n<e.length;n+=1)t=o(t,e[n]);return t}])},377852,e=>{"use strict";let t=function(e,...t){let n=new URL("https://base-ui.com/production-error");return n.searchParams.set("code",e.toString()),t.forEach(e=>n.searchParams.append("args[]",e)),`Base UI error #${e}; visit ${n} for the full message.`};e.s(["default",0,t])},218660,e=>{"use strict";var t=e.i(405296);let n={};e.s(["useRefWithInit",0,function(e,r){let o=t.useRef(n);return o.current===n&&(o.current=e(r)),o}])},358635,825560,668665,e=>{"use strict";var t=e.i(218660);function n(){return{callback:null,cleanup:null,refs:[]}}function r(e,t){if(e.refs=t,t.every(e=>null==e)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=n){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let o=t[e];if(null!=o)switch(typeof o){case"function":{let t=o(n);"function"==typeof t&&(r[e]=t);break}case"object":o.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(null!=n)switch(typeof n){case"function":{let t=r[e];"function"==typeof t?t():n(null);break}case"object":n.current=null}}}}}}e.s(["useMergedRefs",0,function(e,o,i,s){var a,l,u,c,d;let f=(0,t.useRefWithInit)(n).current;return a=f,l=e,u=o,c=i,d=s,(a.refs[0]!==l||a.refs[1]!==u||a.refs[2]!==c||a.refs[3]!==d)&&r(f,[e,o,i,s]),f.callback},"useMergedRefsN",0,function(e){var o,i;let s=(0,t.useRefWithInit)(n).current;return o=s,i=e,(o.refs.length!==i.length||o.refs.some((e,t)=>e!==i[t]))&&r(s,e),s.callback}],358635);var o=e.i(405296);let i=parseInt(o.version,10);function s(e){return i>=e}e.s(["isReactVersionAtLeast",0,s],825560),e.s(["getReactElementRef",0,function(e){if(!o.isValidElement(e))return null;let t=e.props;return(s(19)?t?.ref:e.ref)??null}],668665)},633369,387677,833844,943152,e=>{"use strict";e.i(912123),e.s(["warn",0,function(){}],633369),e.s(["getStateAttributesProps",0,function(e,t){let n={};for(let r in e){let o=e[r];if(t?.hasOwnProperty(r)){let e=t[r](o);null!=e&&Object.assign(n,e);continue}!0===o?n[`data-${r.toLowerCase()}`]="":o&&(n[`data-${r.toLowerCase()}`]=o.toString())}return n}
1],387677),e.s(["resolveClassName",0,function(e,t){return"function"==typeof e?e(t):e}],833844),e.s(["resolveStyle",0,function(e,t){return"function"==typeof e?e(t):e}],943152)},561893,749699,e=>{"use strict";e.i(912123);var t=e.i(377852),n=e.i(405296),r=e.i(358635),o=e.i(668665),i=e.i(194326);e.i(633369);var s=e.i(387677),a=e.i(833844),l=e.i(943152),u=e.i(373501);let c=Object.freeze([]),d=Object.freeze({});e.s(["EMPTY_ARRAY",0,c,"EMPTY_OBJECT",0,d,"NOOP",0,function(){}],749699);let f=Symbol.for("react.lazy");e.s(["useRenderElement",0,function(e,c,p={}){let g=c.render,m=function(e,t={}){var n;let{className:c,style:f,render:p}=e,{state:g=d,ref:m,props:h,stateAttributesMapping:v,enabled:b=!0}=t,E=b?(0,a.resolveClassName)(c,g):void 0,y=b?(0,l.resolveStyle)(f,g):void 0,S=b?(0,s.getStateAttributesProps)(g,v):d,x=b&&h?Array.isArray(n=h)?(0,u.mergePropsN)(n):(0,u.mergeProps)(void 0,n):void 0,R=b?(0,i.mergeObjects)(S,x)??{}:d;return("u">typeof document&&(b?Array.isArray(m)?R.ref=(0,r.useMergedRefsN)([R.ref,(0,o.getReactElementRef)(p),...m]):R.ref=(0,r.useMergedRefs)(R.ref,(0,o.getReactElementRef)(p),m):(0,r.useMergedRefs)(null,null)),b)?(void 0!==E&&(R.className=(0,u.mergeClassNames)(R.className,E)),void 0!==y&&(R.style=(0,i.mergeObjects)(R.style,y)),R):d}(c,p);return!1===p.enabled?null:function(e,r,o,i){if(r){if("function"==typeof r)return r(o,i);let e=(0,u.mergeProps)(o,r.props);e.ref=o.ref;let t=r;return t?.$$typeof===f&&(t=n.Children.toArray(r)[0]),n.cloneElement(t,e)}if(e&&"string"==typeof e){var s,a;return s=e,a=o,"button"===s?(0,n.createElement)("button",{type:"button",...a,key:a.key}):"img"===s?(0,n.createElement)("img",{alt:"",...a,key:a.key}):n.createElement(s,a)}throw Error((0,t.default)(8))}(e,g,m,p.state??d)}],561893)},294237,e=>{"use strict";var t=e.i(7284);let n=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,r=t.clsx;e.s(["cva",0,(e,t)=>o=>{var i;if((null==t?void 0:t.variants)==null)return r(e,null==o?void 0:o.class,null==o?void 0:o.className);let{variants:s,defaultVariants:a}=t,l=Object.keys(s).map(e=>{let t=null==o?void 0:o[e],r=null==a?void 0:a[e];if(null===t)return null;let i=n(t)||n(r);return s[e][i]}),u=o&&Object.entries(o).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return r(e,l,null==t||null==(i=t.compoundVariants)?void 0:i.reduce((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...u}[t]):({...a,...u})[t]===n})?[...e,n,r]:e},[]),null==o?void 0:o.class,null==o?void 0:o.className)}])},470009,e=>{"use strict";var t=e.i(405296),n=e.i(218660);let r=t[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],o=r&&r!==t.useLayoutEffect?r:e=>e();function i(){let e={next:void 0,callback:s,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function s(){}e.s(["useStableCallback",0,function(e){let t=(0,n.useRefWithInit)(i).current;return t.next=e,o(t.effect),t.trampoline}])},913224,e=>{"use strict";var t=e.i(405296);let n="u">typeof document?t.useLayoutEffect:()=>{};e.s(["useIsoLayoutEffect",0,n])},817403,187879,168860,e=>{"use strict";e.i(912123);var t=e.i(405296),n=e.i(92615),r=e.i(470009),o=e.i(913224),i=e.i(373501),s=e.i(377852);let a=t.createContext(void 0);function l(e=!1){let n=t.useContext(a);if(void 0===n&&!e)throw Error((0,s.default)(16));return n}function u(e={}){let{disabled:n=!1,focusableWhenDisabled:s,tabIndex:a=0,native:d=!0,composite:f}=e,p=t.useRef(null),g=l(!0),m=f??void 0!==g,{props:h}=function(e){let{focusableWhenDisabled:n,disabled:r,composite:o=!1,tabIndex:i=0,isNativeButton:s}=e,a=o&&!1!==n,l=o&&!1===n;return{props:t.useMemo(()=>{let e={onKeyDown(e){r&&n&&"Tab"!==e.key&&e.preventDefault()}};return o||(e.tabIndex=i,!s&&r&&(e.tabIndex=n?i:-1)),(s&&(n||a)||!s&&r)&&(e["aria-disabled"]=r),s&&(!n||l)&&(e.disabled=r),e},[o,r,n,a,l,s,i])}}({focusableWhenDisabled:s,disabled:n,composite:m,tabIndex:a,isNativeButton:d}),v=t.useCallback(()=>{let e=p.current;c(e)&&m&&n&&void 0===h.disabled&&e.disabled&&(e.disabled=!1)},[n,h.disabled,m]);return(0,o.useIsoLayoutEffect)(v,[v]),{getButtonProps:t.useCallback((e={})=>{let{onClick:t,onMouseDown:r,onKeyUp:o,onKeyDown:s,onPointerDown:a,...l}=e,u=d?"button":void 0;return(0,i.mergeProps)({type:u,onClick(e){n?e.preventDefault():t?.(e)},onMouseDown(e){n||r?.(e)},onKeyDown(e){var r;if(n||((0,i.makeEventPreventable)(e),s?.(e),e.baseUIHandlerPrevented))return;let o=e.target===e.currentTarget,a=e.currentTarget,l=c(a),u=!d&&(r=a,!!(r?.tagName==="A"&&r?.href)),f=o&&(d?l:!u),p="Enter"===e.key,g=" "===e.key,h=a.getAttribute("role"),v=h?.startsWith("menuitem")||"option"===h||"gridcell"===h;if(o&&m&&g){if(e.defaultPrevented&&v)return;e.preventDefault(),u||d&&l?(a.click(),e.preventBaseUIHandler()):f&&(t?.(e),e.preventBaseUIHandler());return}f&&(!d&&(g||p)&&e.preventDefault(),!d&&p&&t?.(e))},onKeyUp(e){n||(((0,i.makeEventPreventable)(e),o?.(e),e.target===e.currentTarget&&d&&m&&c(e.currentTarget)&&" "===e.key)?e.preventDefault():!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||d||m||" "!==e.key||t?.(e)))},onPointerDown(e){n?e.preventDefault():a?.(e)}},d?void 0:{role:"button"},h,l)},[n,h,m,d]),buttonRef:(0,r.useStableCallback)(e=>{p.current=e,v()})}}function c(e){return(0,n.isHTMLElement)(e)&&"BUTTON"===e.tagName}e.s(["useCompositeRootContext",0,l],187879),e.s(["useButton",0,u],168860);var d=e.i(561893);let f=t.forwardRef(function(e,t){let{render:n,className:r,disabled:o=!1,focusableWhenDisabled:i=!1,nativeButton:s=!0,style:a,...l}=e,{getButtonProps:c,buttonRef:f}=u({disabled:o,focusableWhenDisabled:i,native:s});return(0,d.useRenderElement)("button",e,{state:{disabled:o},ref:[t,f],props:[l,c]})});e.s(["Button",0,f],817403)},519455,e=>{"use strict";var t=e.i(223837),n=e.i(817403),r=e.i(294237),o=e.i(975157);let i=(0,r.cva)("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-
1px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});e.s(["Button",0,function({className:e,variant:r="default",size:s="default",...a}){return(0,t.jsx)(n.Button,{"data-slot":"button",className:(0,o.cn)(i({variant:r,size:s,className:e})),...a})},"buttonVariants",0,i])},330796,816827,e=>{"use strict";var t=e.i(405296);let n={...t},r=0,o=n.useId;function i(e,n){if(void 0!==o){let t=o();return e??(n?`${n}-${t}`:t)}return function(e,n="mui"){let[o,i]=t.useState(e),s=e||o;return t.useEffect(()=>{null==o&&(r+=1,i(`${n}-${r}`))},[o,n]),s}(e,n)}e.s(["useId",0,i],816827),e.s(["useBaseUiId",0,function(e){return i(e,"base-ui")}],330796)},943323,e=>{"use strict";var t=e.i(405296);let n=[];e.s(["useOnMount",0,function(e){t.useEffect(e,n)}])},994294,e=>{"use strict";var t=e.i(218660),n=e.i(943323);class r{static create(){return new r}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}e.s(["Timeout",0,r,"useTimeout",0,function(){let e=(0,t.useRefWithInit)(r.create).current;return(0,n.useOnMount)(e.disposeEffect),e}])},508943,e=>{"use strict";e.s(["ownerDocument",0,function(e){return e?.ownerDocument||document}])},971949,e=>{"use strict";var t=e.i(92615);e.s(["activeElement",0,function(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t},"contains",0,function(e,n){if(!e||!n)return!1;let r=n.getRootNode?.();if(e.contains(n))return!0;if(r&&(0,t.isShadowRoot)(r)){let t=n;for(;t;){if(e===t)return!0;t=t.parentNode||t.host}}return!1},"getTarget",0,function(e){return"composedPath"in e?e.composedPath()[0]:e.target}])},832690,e=>{"use strict";var t=e.i(218660),n=e.i(943323);let r=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,this.callbacksCount-=1)}};class o{static create(){return new o}static request(e){return r.request(e)}static cancel(e){return r.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=r.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(r.cancel(this.currentId),this.currentId=null)};
1disposeEffect=()=>this.cancel}e.s(["AnimationFrame",0,o,"useAnimationFrame",0,function(){let e=(0,t.useRefWithInit)(o.create).current;return(0,n.useOnMount)(e.disposeEffect),e}])},744515,e=>{"use strict";e.s(["resolveRef",0,function(e){return null==e?e:"current"in e?e.current:e}])},507248,e=>{"use strict";var t;let n=((t={}).startingStyle="data-starting-style",t.endingStyle="data-ending-style",t),r={[n.startingStyle]:""},o={[n.endingStyle]:""};e.s(["TransitionStatusDataAttributes",0,n,"transitionStatusMapping",0,{transitionStatus:e=>"starting"===e?r:"ending"===e?o:null}])},93036,843554,e=>{"use strict";var t=e.i(405296),n=e.i(470009),r=e.i(320178),o=e.i(832690),i=e.i(744515),s=e.i(507248);function a(e,t=!1,l=!0){let u=(0,o.useAnimationFrame)();return(0,n.useStableCallback)((n,o=null)=>{u.cancel();let a=(0,i.resolveRef)(e);if(null==a)return;let c=()=>{r.flushSync(n)};if("function"!=typeof a.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void n();function d(){Promise.all(a.getAnimations().map(e=>e.finished)).then(()=>{o?.aborted||c()}).catch(()=>{if(l){o?.aborted||c();return}let e=a.getAnimations();!o?.aborted&&e.length>0&&e.some(e=>e.pending||"finished"!==e.playState)&&d()})}if(t){let e=s.TransitionStatusDataAttributes.startingStyle;if(!a.hasAttribute(e))return void u.request(d);let t=new MutationObserver(()=>{a.hasAttribute(e)||(t.disconnect(),d())});return t.observe(a,{attributes:!0,attributeFilter:[e]}),void o?.addEventListener("abort",()=>t.disconnect(),{once:!0})}u.request(d)})}e.s(["useAnimationsFinished",0,a],843554),e.s(["useOpenChangeComplete",0,function(e){let{enabled:r=!0,open:o,ref:i,onComplete:s}=e,l=(0,n.useStableCallback)(s),u=a(i,o,!1);t.useEffect(()=>{if(!r)return;let e=new AbortController;return u(l,e.signal),()=>{e.abort()}},[r,o,l,u])}],93036)},692685,e=>{"use strict";var t=e.i(405296),n=e.i(913224),r=e.i(832690);e.s(["useTransitionStatus",0,function(e,o=!1,i=!1){let[s,a]=t.useState(e&&o?"idle":void 0),[l,u]=t.useState(e);return e&&!l&&(u(!0),a("starting")),e||!l||"ending"===s||i||a("ending"),e||l||"ending"!==s||a(void 0),(0,n.useIsoLayoutEffect)(()=>{if(!e&&l&&"ending"!==s&&i){let e=r.AnimationFrame.request(()=>{a("ending")});return()=>{r.AnimationFrame.cancel(e)}}},[e,l,s,i]),(0,n.useIsoLayoutEffect)(()=>{if(!e||o)return;let t=r.AnimationFrame.request(()=>{a(void 0)});return()=>{r.AnimationFrame.cancel(t)}},[o,e]),(0,n.useIsoLayoutEffect)(()=>{if(!e||!o)return;e&&l&&"idle"!==s&&a("starting");let t=r.AnimationFrame.request(()=>{a("idle")});return()=>{r.AnimationFrame.cancel(t)}},[o,e,l,s]),{mounted:l,setMounted:u,transitionStatus:s}}])},248444,17301,e=>{"use strict";e.i(912123);var t=e.i(405296);e.s(["useControlled",0,function({controlled:e,default:n,name:r,state:o="value"}){let{current:i}=t.useRef(void 0!==e),[s,a]=t.useState(n),l=t.useCallback(e=>{i||a(e)},[]);return[i?e:s,l]}],248444);var n=e.i(749699);e.s(["createChangeEventDetails",0,function(e,t,r,o){let i=!1,s=!1,a=o??n.EMPTY_OBJECT;return{reason:e,event:t??new Event("base-ui"),cancel(){i=!0},allowPropagation(){s=!0},get isCanceled(){return i},get isPropagationAllowed(){return s},trigger:r,...a}}],17301)},775632,e=>{"use strict";e.s(["cancelOpen",0,"cancel-open","chipRemovePress",0,"chip-remove-press","clearPress",0,"clear-press","closePress",0,"close-press","closeWatcher",0,"close-watcher","dayPress",0,"day-press","decrementPress",0,"decrement-press","disabled",0,"disabled","drag",0,"drag","escapeKey",0,"escape-key","focusOut",0,"focus-out","imperativeAction",0,"imperative-action","incrementPress",0,"increment-press","inputBlur",0,"input-blur","inputChange",0,"input-change","inputClear",0,"input-clear","inputPaste",0,"input-paste","inputPress",0,"input-press","itemPress",0,"item-press","keyboard",0,"keyboard","linkPress",0,"link-press","listNavigation",0,"list-navigation","monthChange",0,"month-change","none",0,"none","outsidePress",0,"outside-press","pointer",0,"pointer","scrub",0,"scrub","siblingOpen",0,"sibling-open","swipe",0,"swipe","trackPress",0,"track-press","triggerFocus",0,"trigger-focus","triggerHover",0,"trigger-hover","triggerPress",0,"trigger-press","valuePropChange",0,"value-prop-change","wheel",0,"wheel","windowResize",0,"window-resize"],252468);var t=e.i(252468);e.s(["REASONS",0,t],775632)},449337,e=>{"use strict";var t=e.i(405296),n=e.i(561893);
1let r=t.forwardRef(function(e,t){let{className:r,render:o,orientation:i="horizontal",style:s,...a}=e;return(0,n.useRenderElement)("div",e,{state:{orientation:i},ref:t,props:[{role:"separator","aria-orientation":i},a]})});e.s(["Separator",0,r])},783827,e=>{"use strict";var t,n,r=e.i(507248);let o=((t={}).open="data-open",t.closed="data-closed",t[t.startingStyle=r.TransitionStatusDataAttributes.startingStyle]="startingStyle",t[t.endingStyle=r.TransitionStatusDataAttributes.endingStyle]="endingStyle",t.anchorHidden="data-anchor-hidden",t.side="data-side",t.align="data-align",t),i=((n={}).popupOpen="data-popup-open",n.pressed="data-pressed",n),s={[i.popupOpen]:""},a={[i.popupOpen]:"",[i.pressed]:""},l={[o.open]:""},u={[o.closed]:""},c={[o.anchorHidden]:""};e.s(["CommonPopupDataAttributes",0,o,"CommonTriggerDataAttributes",0,i,"popupStateMapping",0,{open:e=>e?l:u,anchorHidden:e=>e?c:null},"pressableTriggerOpenStateMapping",0,{open:e=>e?a:null},"triggerOpenStateMapping",0,{open:e=>e?s:null}])},596472,e=>{"use strict";e.s(["addEventListener",0,function(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}])},79544,726652,e=>{"use strict";e.s(["mergeCleanups",0,function(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}],79544);var t=e.i(913224),n=e.i(218660);function r(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}e.s(["useValueAsRef",0,function(e){let o=(0,n.useRefWithInit)(r,e).current;return o.next=e,(0,t.useIsoLayoutEffect)(o.effect),o}],726652)},475874,e=>{"use strict";let t="u">typeof navigator,n=function(){if(!t)return{platform:"",maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}(),r=function(){if(!t)return"";let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}(),o=function(){if(!t)return"";let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(" "):navigator.userAgent}(),i="u">typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter:none"),s="MacIntel"===n.platform&&n.maxTouchPoints>1||/iP(hone|ad|od)|iOS/.test(n.platform);t&&/firefox/i.test(o);let a=t&&/apple/i.test(navigator.vendor);t&&/Edg/i.test(o);let l=t&&/android/i.test(r)||/android/i.test(o),u=t&&r.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,c=o.includes("jsdom/");e.s(["isAndroid",0,l,"isIOS",0,s,"isJSDOM",0,c,"isMac",0,u,"isSafari",0,a,"isWebKit",0,i])},424258,285182,896339,718396,917724,978932,78988,286259,441508,865073,938580,210277,672117,509990,416517,985975,e=>{"use strict";var t=e.i(405296),n=e.i(92615),r=e.i(596472),o=e.i(79544),i=e.i(358635),s=e.i(726652),a=e.i(470009),l=e.i(913224),u=e.i(994294),c=e.i(475874),d=e.i(832690),f=e.i(508943),p=n;e.s(["ownerWindow",()=>p.getWindow],285182);var p=n;e.i(912123);let g={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},m={...g,position:"fixed",top:0,left:0};({...g,position:"absolute"});var h=e.i(223837);let v=t.forwardRef(function(e,n){let[r,o]=t.useState();return(0,l.useIsoLayoutEffect)(()=>{c.isSafari&&o("button")},[]),(0,h.jsx)("span",{...e,ref:n,style:m,"aria-hidden":!r||void 0,tabIndex:0,role:r,"data-base-ui-focus-guard":""})});e.s(["FocusGuard",0,v],896339);var b=e.i(971949);let E="data-base-ui-focusable",y="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",S="ArrowLeft",x="ArrowRight",R="ArrowUp",C="ArrowDown";function w(e){return(0,n.isHTMLElement)(e)&&e.matches(y)}function T(e){return!!e&&"combobox"===e.getAttribute("role")&&w(e)}function I(e){return e?e.hasAttribute(E)?e:e.querySelector(`[${E}]`)||e:null}function O(e){e.preventDefault(),e.stopPropagation()}function k(e){return""===e.pointerType&&!!e.isTrusted||(c.isAndroid&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function M(e){return!c.isJSDOM&&(!c.isAndroid&&0===e.width&&0===e.height||c.isAndroid&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}e.s(["ACTIVE_KEY",0,"active","ARROW_DOWN",0,C,"ARROW_LEFT",0,S,"ARROW_RIGHT",0,x,"ARROW_UP",0,R,"FOCUSABLE_ATTRIBUTE",0,E,"SELECTED_KEY",0,"selected","TYPEABLE_SELECTOR",0,y],718396),e.s(["getFloatingFocusElement",0,I,"isEventTargetWithin",0,function(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))},"isInteractiveElement",0,function(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not
1([tabindex="-1"]),${y}`)!=null},"isRootElement",0,function(e){return e.matches("html,body")},"isTargetInsideEnabledTrigger",0,function(e,t){if(!(0,n.isElement)(e))return!1;if(t.hasElement(e))return!e.hasAttribute("data-trigger-disabled");for(let[,n]of t.entries())if((0,b.contains)(n,e))return!n.hasAttribute("data-trigger-disabled");return!1},"isTypeableCombobox",0,T,"isTypeableElement",0,w,"matchesFocusVisible",0,function(e){if(!e||c.isJSDOM)return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}],917724),e.s(["isClickLikeEvent",0,function(e){let t=e.type;return"click"===t||"mousedown"===t||"keydown"===t||"keyup"===t},"isMouseLikePointerType",0,function(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)},"isReactEvent",0,function(e){return"nativeEvent"in e},"isVirtualClick",0,k,"isVirtualPointerEvent",0,M,"stopEvent",0,O],978932);var P=e.i(641645);function A(e,t,n){return Math.floor(e/t)!==n}function N(e,t){return t<0||t>=e.length}function L(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:o=1}={}){let i=t;do i+=n?-o:o;while(i>=0&&i<=e.length-1&&D(e,i,r))return i}function D(e,t,n){if("function"==typeof n?n(t):n?.includes(t)??!1)return!0;let r=e[t];return!!r&&(!F(r)||!n&&(r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")))}function F(e){return"function"==typeof e.checkVisibility?e.checkVisibility():"none"!==(0,n.getComputedStyle)(e).display}function W(e){for(let t of Array.from(e.children))if("summary"===(0,n.getNodeName)(t))return t;return null}function j(e){let t=e?(0,n.getNodeName)(e):"";return null!=e&&e.matches('a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]')&&("summary"!==t||null!=e.parentElement&&"details"===(0,n.getNodeName)(e.parentElement)&&W(e.parentElement)===e)&&("details"!==t||null==W(e))&&("input"!==t||"hidden"!==e.type)}function _(e){if(!j(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=function(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let r=e.getRootNode();return(0,n.isShadowRoot)(r)?r.host:null}(t)){let r="slot"===(0,n.getNodeName)(t);if(t.hasAttribute("inert")||t!==e&&"details"===(0,n.getNodeName)(t)&&!t.open&&!function(e,t){let n=W(t);return!!n&&(e===n||(0,b.contains)(n,e))}(e,t)||t.hasAttribute("hidden")||!r&&!F(t))return!1}return!0}function H(e){let t=e.tabIndex;if(t<0){let t=(0,n.getNodeName)(e);if("details"===t||"audio"===t||"video"===t||(0,n.isHTMLElement)(e)&&e.isContentEditable)return 0}return t}function B(e){return"input"!==(0,n.getNodeName)(e)?null:"radio"===e.type&&""!==e.name?e:null}function V(e){if((0,n.isHTMLElement)(e)&&"slot"===(0,n.getNodeName)(e)){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return(0,n.isHTMLElement)(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function U(e){return _(e)&&H(e)>=0}function $(e){let t=[];return!function e(t,n){V(t).forEach(t=>{j(t)&&n.push(t),e(t,n)})}(e,t),t.filter(_)}function Y(e){let t=$(e);return t.filter(e=>H(e)>=0&&function(e,t){let n=B(e);if(!n)return!0;let r=t.find(e=>{let t=B(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=B(e);return t?.name===n.name&&t.form===n.form})===n}(e,t))}function z(e,t){let n=Y(e),r=n.length;if(0===r)return;let o=(0,b.activeElement)((0,f.ownerDocument)(e)),i=n.indexOf(o);return n[-1===i?1===t?0:r-1:i+t]}function G(e){return z((0,f.ownerDocument)(e).body,1)||e}function K(e){return z((0,f.ownerDocument)(e).body,-1)||e}function q(e,t){if(!e)return null;let n=Y((0,f.ownerDocument)(e).body),r=n.length;if(0===r)return null;let o=n.indexOf(e);return -1===o?null:n[(o+t+r)%r]}function X(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!(0,b.contains)(n,r)}function J(e){Y(e).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function Q(e){let t=[];!function e(t,r,o){V(t).forEach(t=>{(0,n.isHTMLElement)(t)&&t.matches(r)&&o.push(t),e(t,r,o)})}
1(e,"[data-tabindex]",t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}function Z(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...Z(e,t.id,n)])}function ee(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}e.s(["createGridCellMap",0,function(e,t,n){let r=[],o=0;return e.forEach(({width:e,height:i},s)=>{let a=!1;for(n&&(o=0);!a;){let n=[];for(let r=0;r<e;r+=1)for(let e=0;e<i;e+=1)n.push(o+r+e*t);o%t+e<=t&&n.every(e=>null==r[e])?(n.forEach(e=>{r[e]=s}),a=!0):o+=1}}),[...r]},"findNonDisabledListIndex",0,L,"getGridCellIndexOfCorner",0,function(e,t,n,r,o){if(-1===e)return -1;let i=n.indexOf(e),s=t[e];switch(o){case"tl":return i;case"tr":if(!s)return i;return i+s.width-1;case"bl":if(!s)return i;return i+(s.height-1)*r;case"br":return n.lastIndexOf(e);default:return -1}},"getGridCellIndices",0,function(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])},"getGridNavigatedIndex",0,function(e,{event:t,orientation:n,loopFocus:r,onLoop:o,rtl:i,cols:s,disabledIndices:a,minIndex:l,maxIndex:u,prevIndex:c,stopEvent:d=!1}){let f,p=c;if(t.key===R?f="up":t.key===C&&(f="down"),f){let n=[],i=[],g=!1,m=0;{let t=null,r=-1;e.forEach((e,o)=>{if(null==e)return;m+=1;let s=e.closest('[role="row"]');
1s&&(g=!0),(s!==t||-1===r)&&(t=s,n[r+=1]=[]),n[r].push(o),i[o]=r})}let h=!1,v=0;if(g)for(let e of n){let t=e.length;t>v&&(v=t),t!==s&&(h=!0)}let b=h&&m<e.length,E=v||s;d&&O(t);let y=(s=>{if(!h||-1===c)return;let l=i[c];if(null==l)return;let u=n[l].indexOf(c),d="up"===s?-1:1;for(let s=l+d,f=0;f<n.length;f+=1,s+=d){if(s<0||s>=n.length){if(!r||b)return;if(s=s<0?n.length-1:0,o){let e=Math.min(u,n[s].length-1);s=i[o(t,c,n[s][e]??n[s][0])]??s}}let l=n[s];for(let t=Math.min(u,l.length-1);t>=0;t-=1){let n=l[t];if(!D(e,n,a))return n}}})(f)??(t=>{if(!b||-1===c)return;let n=c%E,o="up"===t?-E:E,i=u-u%E,s=(0,P.floor)(u/E)+1;for(let t=c-n+o,l=0;l<s;l+=1,t+=o){if(t<0||t>u){if(!r)return;t=t<0?i:0}let o=Math.min(t+E-1,u);for(let r=Math.min(t+n,o);r>=t;r-=1)if(!D(e,r,a))return r}})(f);if(void 0!==y)p=y;else if(-1===c)p="up"===f?u:l;else if(p=L(e,{startingIndex:c,amount:E,decrement:"up"===f,disabledIndices:a}),r){if("up"===f&&(c-E<l||p<0)){let e=c%E,n=u%E,r=u-(n-e);p=n===e?u:n>e?r:r-E,o&&(p=o(t,c,p))}"down"===f&&c+E>u&&(p=L(e,{startingIndex:c%E-E,amount:E,disabledIndices:a}),o&&(p=o(t,c,p)))}N(e,p)&&(p=c)}if("both"===n){let n=(0,P.floor)(c/s);t.key===(i?S:x)&&(d&&O(t),c%s!=s-1?(p=L(e,{startingIndex:c,disabledIndices:a}),r&&A(p,s,n)&&(p=L(e,{startingIndex:c-c%s-1,disabledIndices:a}),o&&(p=o(t,c,p)))):r&&(p=L(e,{startingIndex:c-c%s-1,disabledIndices:a}),o&&(p=o(t,c,p))),A(p,s,n)&&(p=c)),t.key===(i?x:S)&&(d&&O(t),c%s!=0?(p=L(e,{startingIndex:c,decrement:!0,disabledIndices:a}),r&&A(p,s,n)&&(p=L(e,{startingIndex:c+(s-c%s),decrement:!0,disabledIndices:a}),o&&(p=o(t,c,p)))):r&&(p=L(e,{startingIndex:c+(s-c%s),decrement:!0,disabledIndices:a}),o&&(p=o(t,c,p))),A(p,s,n)&&(p=c));let l=(0,P.floor)(u/s)===n;N(e,p)&&(r&&l?(p=t.key===(i?x:S)?u:L(e,{startingIndex:c-c%s-1,disabledIndices:a}),o&&(p=o(t,c,p))):p=c)}return p},"getMaxListIndex",0,function(e,t){return L(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})},"getMinListIndex",0,function(e,t){return L(e.current,{disabledIndices:t})},"isElementVisible",0,F,"isIndexOutOfListBounds",0,N,"isListIndexDisabled",0,D],78988),e.s(["disableFocusInside",0,J,"enableFocusInside",0,Q,"focusable",0,$,"getNextTabbable",0,G,"getPreviousTabbable",0,K,"getTabbableAfterElement",0,function(e){return q(e,1)},"getTabbableBeforeElement",0,function(e){return q(e,-1)},"isOutsideEvent",0,X,"isTabbable",0,U,"tabbable",0,Y],286259),e.s(["getNodeAncestors",0,ee,"getNodeChildren",0,Z],441508);var et=e.i(17301),en=e.i(775632);function er(e){return`data-base-ui-${e}`}e.s(["createAttribute",0,er],865073);var eo=e.i(749699);let ei=0;function es(e,t={}){let{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(ei);let i=()=>e?.focus({preventScroll:n});if(o)return i(),eo.NOOP;let s=requestAnimationFrame(i);return ei=s,()=>{ei===s&&(cancelAnimationFrame(s),ei=0)}}e.s(["enqueueFocus",0,es],938580);let ea={inert:new WeakMap,"aria-hidden":new WeakMap},el="data-base-ui-inert",eu={inert:new WeakSet,"aria-hidden":new WeakSet},ec=new WeakMap,ed=0,ef=(e,t)=>t.map(t=>{if(e.contains(t))return t;let r=function e(t){return t?(0,n.isShadowRoot)(t)?t.host:e(t.parentNode):null}(t);return e.contains(r)?r:null}).filter(e=>null!=e),ep=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},eg=(e,t,r)=>{let o=[],i=e=>{!e||r.has(e)||Array.from(e.children).forEach(e=>{"script"!==(0,n.getNodeName)(e)&&(t.has(e)?i(e):o.push(e))})};return i(e),o};function em(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:o=!0,markerIgnoreElements:i=[]}=t,s=(0,f.ownerDocument)(e[0]).body;return function(e,t,n,r,{mark:o=!0,markerIgnoreElements:i=[]}){let s=r?"inert":n?"aria-hidden":null,a=null,l=null,u=ef(t,e),c=new Set(o?ef(t,i):[]),d=o?eg(t,ep(u),new Set(u)).filter(e=>!c.has(e)):[],f=[],p=[];if(s){let e=ea[s],n=eu[s];l=n,a=e;let r=ef(t,Array.from(t.querySelectorAll("[aria-live]"))),o=u.concat(r);eg(t,ep(o),new Set(o)).forEach(t=>{let r=t.getAttribute(s),o=null!==r&&"false"!==r,i=(e.get(t)||0)+1;e.set(t,i),f.push(t),1===i&&o&&n.add(t),o||t.setAttribute(s,"inert"===s?"":"true")})}
1return o&&d.forEach(e=>{let t=(ec.get(e)||0)+1;ec.set(e,t),p.push(e),1===t&&e.setAttribute(el,"")}),ed+=1,()=>{a&&f.forEach(e=>{let t=(a.get(e)||0)-1;a.set(e,t),t||(!l?.has(e)&&s&&e.removeAttribute(s),l?.delete(e))}),o&&p.forEach(e=>{let t=(ec.get(e)||0)-1;ec.set(e,t),t||e.removeAttribute(el)}),(ed-=1)||(ea.inert=new WeakMap,ea["aria-hidden"]=new WeakMap,eu.inert=new WeakSet,eu["aria-hidden"]=new WeakSet,ec=new WeakMap)}}(e,s,n,r,{mark:o,markerIgnoreElements:i})}var eh=e.i(320178),ev=e.i(816827),eb=e.i(561893);let eE="data-base-ui-click-trigger",ey={clipPath:"inset(50%)",position:"fixed",top:0,left:0};e.s(["CLICK_TRIGGER_IDENTIFIER",0,eE,"DISABLED_TRANSITIONS_STYLE",0,{style:{transition:"none"}},"DROPDOWN_COLLISION_AVOIDANCE",0,{fallbackAxisSide:"none"},"PATIENT_CLICK_THRESHOLD",0,500,"POPUP_COLLISION_AVOIDANCE",0,{fallbackAxisSide:"end"},"TYPEAHEAD_RESET_MS",0,500,"ownerVisuallyHidden",0,ey],210277);let eS=t.createContext(null),ex=()=>t.useContext(eS),eR=er("portal");function eC(e={}){let{ref:r,container:o,componentProps:i=eo.EMPTY_OBJECT,elementProps:s}=e,u=(0,ev.useId)(),c=ex(),d=c?.portalNode,[f,p]=t.useState(null),[g,m]=t.useState(null),h=(0,a.useStableCallback)(e=>{null!==e&&m(e)}),v=t.useRef(null);(0,l.useIsoLayoutEffect)(()=>{if(null===o){v.current&&(v.current=null,m(null),p(null));return}if(null==u)return;let e=(o&&((0,n.isNode)(o)?o:o.current))??d??document.body;if(null==e){v.current&&(v.current=null,m(null),p(null));return}v.current!==e&&(v.current=e,m(null),p(e))},[o,d,u]);let b=(0,eb.useRenderElement)("div",i,{ref:[r,h],props:[{id:u,[eR]:""},s]});return{portalNode:g,portalSubtree:f&&b?eh.createPortal(b,f):null}}let ew=t.forwardRef(function(e,n){let{children:i,container:s,className:a,render:l,renderGuards:u,style:c,...d}=e,{portalNode:f,portalSubtree:p}=eC({container:s,ref:n,componentProps:e,elementProps:d}),g=t.useRef(null),m=t.useRef(null),b=t.useRef(null),E=t.useRef(null),[y,S]=t.useState(null),x=t.useRef(!1),R=y?.modal,C=y?.open,w="boolean"==typeof u?u:!!y&&!y.modal&&y.open&&!!f;t.useEffect(()=>{if(f&&!R)return(0,o.mergeCleanups)((0,r.addEventListener)(f,"focusin",e,!0),(0,r.addEventListener)(f,"focusout",e,!0));function e(e){f&&e.relatedTarget&&X(e)&&("focusin"===e.type?x.current&&(Q(f),x.current=!1):(J(f),x.current=!0))}},[f,R]),t.useEffect(()=>{f&&!1===C&&(Q(f),x.current=!1)},[C,f]);let T=t.useMemo(()=>({beforeOutsideRef:g,afterOutsideRef:m,beforeInsideRef:b,afterInsideRef:E,portalNode:f,setFocusManagerState:S}),[f]);return(0,h.jsxs)(t.Fragment,{children:[p,(0,h.jsxs)(eS.Provider,{value:T,children:[w&&f&&(0,h.jsx)(v,{"data-type":"outside",ref:g,onFocus:e=>{if(X(e,f))b.current?.focus();else{let e=K(y?y.domReference:null);e?.focus()}}}),w&&f&&(0,h.jsx)("span",{"aria-owns":f.id,style:ey}),f&&eh.createPortal(i,f),w&&f&&(0,h.jsx)(v,{"data-type":"outside",ref:m,onFocus:e=>{if(X(e,f))E.current?.focus();else{let t=G(y?y.domReference:null);t?.focus(),y?.closeOnFocusOut&&y?.onOpenChange(!1,(0,et.createChangeEventDetails)(en.REASONS.focusOut,e.nativeEvent))}}})]})]})});e.s(["FloatingPortal",0,ew,"useFloatingPortalNode",0,eC,"usePortalContext",0,ex],672117);var eT=e.i(218660);function eI(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}e.s(["createEventEmitter",0,eI],509990);class eO{nodesRef={current:[]};events=eI();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);-1!==t&&this.nodesRef.current.splice(t,1)}}e.s(["FloatingTreeStore",0,eO],416517);let ek=t.createContext(null),eM=t.createContext(null),eP=()=>t.useContext(ek)?.id||null,eA=e=>{let n=t.useContext(eM);return e??n};e.s(["FloatingNode",0,function(e){let{children:n,id:r}=e,o=eP();return(0,h.jsx)(ek.Provider,{value:t.useMemo(()=>({id:r,parentId:o}),[r,o]),children:n})},"FloatingTree",0,function(e){let{children:t,externalTree:n}=e,r=(0,eT.useRefWithInit)(()=>n??new eO).current;return(0,h.jsx)(eM.Provider,{value:r,children:t})},"useFloatingNodeId",0,function(e){let t=(0,ev.useId)(),n=eA(e),r=eP();return(0,l.useIsoLayoutEffect)(()=>
1{if(!t)return;let e={id:t,parentId:r};return n?.addNode(e),()=>{n?.removeNode(e)}},[n,t,r]),t},"useFloatingParentNodeId",0,eP,"useFloatingTree",0,eA],985975);var eN=e.i(744515);let eL=[];function eD(){eL=eL.filter(e=>e.deref()?.isConnected)}function eF(){return eD(),eL[eL.length-1]?.deref()}function eW(e,t){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!t.current.includes("floating")&&!e.getAttribute("role")?.includes("dialog"))return;let n=$(e).filter(e=>{let t=e.getAttribute("data-tabindex")||"";return U(e)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),r=e.getAttribute("tabindex");t.current.includes("floating")||0===n.length?"0"!==r&&e.setAttribute("tabindex","0"):("-1"!==r||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}e.s(["FloatingFocusManager",0,function(e){let{context:g,children:m,disabled:E=!1,initialFocus:y=!0,returnFocus:S=!0,restoreFocus:x=!1,modal:R=!0,closeOnFocusOut:C=!0,openInteractionType:P="",nextFocusableElement:A,previousFocusableElement:N,beforeContentFocusGuardRef:L,externalTree:D,getInsideElements:W}=e,j="rootStore"in g?g.rootStore:g,_=j.useState("open"),H=j.useState("domReferenceElement"),B=j.useState("floatingElement"),{events:V,dataRef:$}=j.context,z=(0,a.useStableCallback)(()=>$.current.floatingContext?.nodeId),q=!1===y,J=T(H)&&q,Q=t.useRef(["content"]),eo=(0,s.useValueAsRef)(y),ei=(0,s.useValueAsRef)(S),ea=(0,s.useValueAsRef)(P),el=eA(D),eu=ex(),ec=t.useRef(!1),ed=t.useRef(!1),ef=t.useRef(!1),ep=t.useRef(null),eg=t.useRef(""),eh=t.useRef(""),ev=t.useRef(null),eb=t.useRef(null),ey=(0,i.useMergedRefs)(ev,L,eu?.beforeInsideRef),eS=(0,i.useMergedRefs)(eb,eu?.afterInsideRef),eR=(0,u.useTimeout)(),eC=(0,u.useTimeout)(),ew=(0,d.useAnimationFrame)(),eT=null!=eu,eI=I(B),eO=(0,a.useStableCallback)((e=eI)=>e?Y(e):[]),ek=(0,a.useStableCallback)(()=>W?.().filter(e=>null!=e)??[]);t.useEffect(()=>{if(E||!R)return;let e=(0,f.ownerDocument)(eI);return(0,r.addEventListener)(e,"keydown",function(e){"Tab"===e.key&&(0,b.contains)(eI,(0,b.activeElement)((0,f.ownerDocument)(eI)))&&0===eO().length&&!J&&O(e)})},[E,H,eI,R,Q,J,eO]),t.useEffect(()=>{if(E||!_)return;let e=(0,f.ownerDocument)(eI);function t(){ef.current=!1}return(0,o.mergeCleanups)((0,r.addEventListener)(e,"pointerdown",function(e){let t=(0,b.getTarget)(e),n=ek();ef.current=!((0,b.contains)(B,t)||(0,b.contains)(H,t)||(0,b.contains)(eu?.portalNode,t)||n.some(e=>e===t||(0,b.contains)(e,t))),eh.current=e.pointerType||"keyboard",t?.closest(`[${eE}]`)&&(ed.current=!0)},!0),(0,r.addEventListener)(e,"pointerup",t,!0),(0,r.addEventListener)(e,"pointercancel",t,!0),(0,r.addEventListener)(e,"keydown",function(){eh.current="keyboard"},!0))},[E,B,H,eI,_,eu,ek]),t.useEffect(()=>{if(E||!C)return;let e=(0,f.ownerDocument)(eI);function t(t){let r=t.relatedTarget,o=t.currentTarget,i=(0,b.getTarget)(t);queueMicrotask(()=>{let s=z(),a=j.context.triggerElements,l=ek(),u=r?.hasAttribute(er("focus-guard"))&&[ev.current,eb.current,eu?.beforeInsideRef.current,eu?.afterInsideRef.current,eu?.beforeOutsideRef.current,eu?.afterOutsideRef.current,(0,eN.resolveRef)(N),(0,eN.resolveRef)(A)].includes(r),c=!((0,b.contains)(H,r)||(0,b.contains)(B,r)||(0,b.contains)(r,B)||(0,b.contains)(eu?.portalNode,r)||l.some(e=>e===r||(0,b.contains)(e,r))||null!=r&&a.hasElement(r)||a.hasMatchingElement(e=>(0,b.contains)(e,r))||u||el&&(Z(el.nodesRef.current,s).find(e=>(0,b.contains)(e.context?.elements.floating,r)||(0,b.contains)(e.context?.elements.domReference,r))||ee(el.nodesRef.current,s).find(e=>[e.context?.elements.floating,I(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(o===H&&eI&&eW(eI,Q),x&&o!==H&&!(i&&i.isConnected&&("function"==typeof i.checkVisibility?i.checkVisibility():F(i)))&&(0,b.activeElement)(e)===e.body){if((0,n.isHTMLElement)(eI)&&(eI.focus(),"popup"===x))return void ew.request(()=>{eI.focus()});let e=eO(),t=ep.current,r=(t&&e.includes(t)?t:null)||e[e.length-1]||eI;(0,n.isHTMLElement)(r)&&r.focus()}if($.current.insideReactTree){$.current.insideReactTree=!1;return}(J||!R)&&r&&c&&!ed.current&&(J||r!==eF())&&(ec.current=!0,j.setOpen(!1,(0,et.createChangeEventDetails)(en.REASONS.focusOut,t)))})}let i=(0,n.isHTMLElement)(H)?H:null;if(B||i)return(0,o.mergeCleanups)(i&&(0,r.addEventListener)(i,"focusout",t),i&&(0,r.addEventListener)(i,"pointerdown",function(){ed.current=!0,eC.start(0,()=>{ed.current=!1})}),B&&(0,r.addEventListener)(B,"focusin",function(e){let t=(0,b.getTarget)(e);U(t)&&(ep.current=t)}),B&&(0,r.addEventListener)(B,"focusout",t),B&&eu&&(0,r.addEventListener)(B,"focusout",function(){ef.current||($.current.insideReactTree=!0,eR.start(0,()=>{$.current.insideReactTree=!1}))},!0))},[E,H,B,eI,R,el,eu,j,C,x,eO,J,z,Q,$,eR,eC,ew,A,N,ek]),t.useEffect(()=>{if(E||!B||!_)return;let e=Array.from(eu?.portalNode?.querySelectorAll(`[${er("portal")}
1]`)||[]),t=el?ee(el.nodesRef.current,z()):[],n=t.find(e=>T(e.context?.elements.domReference||null))?.context?.elements.domReference,r=em([B,...e,ev.current,eb.current,eu?.beforeOutsideRef.current,eu?.afterOutsideRef.current,...ek(),n,(0,eN.resolveRef)(N),(0,eN.resolveRef)(A),J?H:null].filter(e=>null!=e),{ariaHidden:R||J,mark:!1}),o=em([B,...e].filter(e=>null!=e));return()=>{o(),r()}},[_,E,H,B,R,Q,eu,J,el,z,A,N,ek]),(0,l.useIsoLayoutEffect)(()=>{if(!_||E||!(0,n.isHTMLElement)(eI))return;let e=(0,f.ownerDocument)(eI),t=(0,b.activeElement)(e);queueMicrotask(()=>{let e,n=eo.current,r="function"==typeof n?n(ea.current||""):n;if(void 0===r||!1===r||(0,b.contains)(eI,t))return;let o=null,i=()=>(null==o&&(o=eO(eI)),o[0]||eI);es(e=(e=!0===r||null===r?i():(0,eN.resolveRef)(r))||i(),{preventScroll:e===eI})})},[E,_,eI,q,eO,eo,ea]),(0,l.useIsoLayoutEffect)(()=>{var e;if(E||!eI)return;let t=(0,f.ownerDocument)(eI);function r(e){var t,n;let r;if(e.open||(t=e.nativeEvent,n=eh.current,r=(0,p.getWindow)((0,b.getTarget)(t)),eg.current=t instanceof r.KeyboardEvent?"keyboard":t instanceof r.FocusEvent?n||"keyboard":"pointerType"in t?t.pointerType||"keyboard":"touches"in t?"touch":t instanceof r.MouseEvent?n||(0===t.detail?"keyboard":"mouse"):""),e.reason===en.REASONS.triggerHover&&"mouseleave"===e.nativeEvent.type&&(ec.current=!0),e.reason===en.REASONS.outsidePress)if(e.nested)ec.current=!1;else if(k(e.nativeEvent)||M(e.nativeEvent))ec.current=!1;else{let e=!1;(0,f.ownerDocument)(eI).createElement("div").focus({get preventScroll(){return e=!0,!1}}),e?ec.current=!1:ec.current=!0}}return e=(0,b.activeElement)(t),eD(),e&&"body"!==(0,n.getNodeName)(e)&&(eL.push(new WeakRef(e)),eL.length>20&&(eL=eL.slice(-20))),V.on("openchange",r),()=>{V.off("openchange",r);let e=(0,b.activeElement)(t),o=ek(),i=(0,b.contains)(B,e)||o.some(t=>t===e||(0,b.contains)(t,e))||el&&Z(el.nodesRef.current,z(),!1).some(t=>(0,b.contains)(t.context?.elements.floating,e)),s=ei.current,a=function(){let e=ei.current,t="function"==typeof e?e(eg.current):e;if(void 0===t||!1===t)return null;if(null===t&&(t=!0),"boolean"==typeof t){let e=H||eF();return e&&e.isConnected?e:null}let n=H||eF();return(0,eN.resolveRef)(t)||n||null}();queueMicrotask(()=>{let r=a?U(a)?a:Y(a)[0]||a:null;s&&!ec.current&&(0,n.isHTMLElement)(r)&&("boolean"!=typeof s||r===e||e===t.body||i)&&r.focus({preventScroll:!0}),ec.current=!1})}},[E,B,eI,ei,$,V,el,H,z,ek]),(0,l.useIsoLayoutEffect)(()=>{if(!c.isWebKit||_||!B)return;let e=(0,b.activeElement)((0,f.ownerDocument)(B));(0,n.isHTMLElement)(e)&&w(e)&&(0,b.contains)(B,e)&&e.blur()},[_,B]),(0,l.useIsoLayoutEffect)(()=>{if(!E&&eu)return eu.setFocusManagerState({modal:R,closeOnFocusOut:C,open:_,onOpenChange:j.setOpen,domReference:H}),()=>{eu.setFocusManagerState(null)}},[E,eu,R,_,j,C,H]),(0,l.useIsoLayoutEffect)(()=>{if(!E&&eI)return eW(eI,Q),()=>{queueMicrotask(eD)}},[E,eI,Q]);let eM=!E&&(!R||!J)&&(eT||R);return(0,h.jsxs)(t.Fragment,{children:[eM&&(0,h.jsx)(v,{"data-type":"inside",ref:ey,onFocus:e=>{if(R){let e=eO();es(e[e.length-1])}else if(eu?.portalNode)if(ec.current=!1,X(e,eu.portalNode)){let e=G(H);e?.focus()}else(0,eN.resolveRef)(N??eu.beforeOutsideRef)?.focus()}}),m,eM&&(0,h.jsx)(v,{"data-type":"inside",ref:eS,onFocus:e=>{if(R)es(eO()[0]);else if(eu?.portalNode)if(C&&(ec.current=!0),X(e,eu.portalNode)){let e=K(H);e?.focus()}else(0,eN.resolveRef)(A??eu.afterOutsideRef)?.focus()}})]})}],424258)},717914,e=>{"use strict";let t="ArrowUp",n="ArrowDown",r="ArrowLeft",o="ArrowRight";[...new Set([...new Set([r,o]),...new Set([t,n])])];let i=new Set([t,n,r,o,"Home","End"]);e.s(["COMPOSITE_KEYS",0,i])},624493,e=>{"use strict";var t=e.i(825560);e.s(["inertValue",0,function(e){return(0,t.isReactVersionAtLeast)(19)?e:e?"true":void 0}])},852686,e=>{"use strict";var t=e.i(405296),n=e.i(223837);let r=t.forwardRef(function(e,t){let r,{cutout:o,...i}=e;if(o){let e=o.getBoundingClientRect();r=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,n.jsx)("div",{ref:t,role:"presentation","data-base-ui-inert":"",...i,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:r}})});e.s(["InternalBackdrop",0,r])},981554,e=>{"use strict";var t=e.i(405296);e.s(["useOnFirstRender",0,function(e){let n=t.useRef(!0);n.current&&(n.current=!1,e())}])},767175,e=>{"use strict";var t=e.i(92615),n=e.i(596472),r=e.i(475874),o=e.i(508943),i=e.i(285182),s=e.i(913224),a=e.i(994294),l=e.i(832690),u=e.i(749699);let c={},d={},f="";class p{lockCount=0;restore=null;timeoutLock=a.Timeout.create();timeoutUnlock=a.Timeout.create();acquire(e){return this.lockCount+=1,1===this.lockCount&&null===this.restore&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{this.lockCount-=1,0===this.lockCount&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{0===this.lockCount&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){let s,a,p,g,m;if(0===this.lockCount||null!==this.restore)return;let h=(0,o.ownerDocument)(e).documentElement,v=(0,i.ownerWindow)(h).getComputedStyle(h).overflowY;if("hidden"===v||"clip"===v){this.restore=u.NOOP;return}let b=r.isIOS||!function(e){if("u"<typeof document)return!1;let t=(0,o.ownerDocument)(e);return(0,i.ownerWindow)(t).innerWidth-t.documentElement.clientWidth>0}(e);this.restore=b?(a=(s=(0,o.ownerDocument)(e)).documentElement,p=s.body,m={overflowY:(g=(0,t.isOverflowElement)(a)?a:p).style.overflowY,overflowX:g.style.overflowX},Object.assign(g.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(g.style,m)}):function(e){let s=(0,o.ownerDocument)(e),a=s.documentElement,u=s.body,p=(0,i.ownerWindow)(a),g=0,m=0,h=!1,v=l.AnimationFrame.create();
1if(r.isWebKit&&(p.visualViewport?.scale??1)!==1)return()=>{};function b(){let n=p.getComputedStyle(a),r=p.getComputedStyle(u),i=(n.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";g=a.scrollTop,m=a.scrollLeft,c={scrollbarGutter:a.style.scrollbarGutter,overflowY:a.style.overflowY,overflowX:a.style.overflowX},f=a.style.scrollBehavior,d={position:u.style.position,height:u.style.height,width:u.style.width,boxSizing:u.style.boxSizing,overflowY:u.style.overflowY,overflowX:u.style.overflowX,scrollBehavior:u.style.scrollBehavior};let s=a.scrollHeight>a.clientHeight,l=a.scrollWidth>a.clientWidth,v="scroll"===n.overflowY||"scroll"===r.overflowY,b="scroll"===n.overflowX||"scroll"===r.overflowX,E=Math.max(0,p.innerWidth-u.clientWidth),y=Math.max(0,p.innerHeight-u.clientHeight),S=parseFloat(r.marginTop)+parseFloat(r.marginBottom),x=parseFloat(r.marginLeft)+parseFloat(r.marginRight),R=(0,t.isOverflowElement)(a)?a:u;if(h=function(e){if(!("u">typeof CSS&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||"u"<typeof document)return!1;let n=(0,o.ownerDocument)(e),r=n.documentElement,i=n.body,s=(0,t.isOverflowElement)(r)?r:i,a=s.style.overflowY,l=r.style.scrollbarGutter;r.style.scrollbarGutter="stable",s.style.overflowY="scroll";let u=s.offsetWidth;s.style.overflowY="hidden";let c=s.offsetWidth;return s.style.overflowY=a,r.style.scrollbarGutter=l,u===c}(e)){a.style.scrollbarGutter=i,R.style.overflowY="hidden",R.style.overflowX="hidden";return}Object.assign(a.style,{scrollbarGutter:i,overflowY:"hidden",overflowX:"hidden"}),(s||v)&&(a.style.overflowY="scroll"),(l||b)&&(a.style.overflowX="scroll"),Object.assign(u.style,{position:"relative",height:S||y?`calc(100dvh - ${S+y}px)`:"100dvh",width:x||E?`calc(100vw - ${x+E}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),u.scrollTop=g,u.scrollLeft=m,a.setAttribute("data-base-ui-scroll-locked",""),a.style.scrollBehavior="unset"}function E(){Object.assign(a.style,c),Object.assign(u.style,d),h||(a.scrollTop=g,a.scrollLeft=m,a.removeAttribute("data-base-ui-scroll-locked"),a.style.scrollBehavior=f)}b();let y=(0,n.addEventListener)(p,"resize",function(){E(),v.request(b)});return()=>{v.cancel(),E(),"function"==typeof p.removeEventListener&&y()}}(e)}}let g=new p;e.s(["useScrollLock",0,function(e=!0,t=null){(0,s.useIsoLayoutEffect)(()=>{if(e)return g.acquire(t)},[e,t])}])},251506,847632,364842,e=>{"use strict";var t=e.i(405296),n=e.i(92615),r=e.i(596472),o=e.i(79544),i=e.i(994294),s=e.i(470009),a=e.i(508943),l=e.i(971949),u=e.i(917724),c=e.i(978932),d=e.i(441508),f=e.i(985975),p=e.i(17301),g=e.i(775632),m=e.i(865073);let h={intentional:"onClick",sloppy:"onPointerDown"};function v(){return!1}e.s(["useDismiss",0,function(e,b={}){let E="rootStore"in e?e.rootStore:e,y=E.useState("open"),S=E.useState("floatingElement"),{dataRef:x}=E.context,{enabled:R=!0,escapeKey:C=!0,outsidePress:w=!0,outsidePressEvent:T="sloppy",referencePress:I=v,referencePressEvent:O="sloppy",bubbles:k,externalTree:M}=b,P=(0,f.useFloatingTree)(M),A=(0,s.useStableCallback)("function"==typeof w?w:()=>!1),N="function"==typeof w?A:w,L=!1!==N,D=(0,s.useStableCallback)(()=>T),F=t.useRef(!1),W=t.useRef(!1),j=t.useRef(!1),{escapeKey:_,outsidePress:H}={escapeKey:"boolean"==typeof k?k:k?.escapeKey??!1,outsidePress:"boolean"==typeof k?k:k?.outsidePress??!0},B=t.useRef(null),V=(0,i.useTimeout)(),U=(0,i.useTimeout)(),$=(0,s.useStableCallback)(()=>{U.clear(),x.current.insideReactTree=!1}),Y=t.useRef(!1),z=t.useRef(""),G=(0,s.useStableCallback)(I),K=(0,s.useStableCallback)(e=>{if(!y||!R||!C||"Escape"!==e.key||Y.current)return;let t=x.current.floatingContext?.nodeId,n=P?(0,d.getNodeChildren)(P.nodesRef.current,t):[];if(!_&&n.length>0){let e=!0;if(n.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__escapeKeyBubbles&&(e=!1)}),!e)return}let r=(0,c.isReactEvent)(e)?e.nativeEvent:e,o=(0,p.createChangeEventDetails)(g.REASONS.escapeKey,r);E.setOpen(!1,o),_||o.isPropagationAllowed||e.stopPropagation()}),q=(0,s.useStableCallback)(()=>{x.current.insideReactTree=!0,U.start(0,$)});t.useEffect(()=>{if(!y||!R)return;x.current.__escapeKeyBubbles=_,x.current.__outsidePressBubbles=H;let e=new i.Timeout,t=new i.Timeout;function s(){j.current=!0,t.start(0,()=>{j.current=!1})}function c(){F.current=!1,W.current=!1}function f(){let e=z.current,t=D(),n="function"==typeof t?t():t;return"string"==typeof n?n:n["pen"!==e&&e?e:"mouse"]}
1function h(e){let t=x.current.floatingContext?.nodeId,n=P&&(0,d.getNodeChildren)(P.nodesRef.current,t).some(t=>(0,u.isEventTargetWithin)(e,t.context?.elements.floating));return(0,u.isEventTargetWithin)(e,E.select("floatingElement"))||(0,u.isEventTargetWithin)(e,E.select("domReferenceElement"))||n}function v(e){let r;if("intentional"===(r=f())&&"click"!==e.type||"sloppy"===r&&"click"===e.type||x.current.insideReactTree)return void $();let o=(0,l.getTarget)(e),i=`[${(0,m.createAttribute)("inert")}]`,s=(0,n.isElement)(o)?o.getRootNode():null,c=Array.from(((0,n.isShadowRoot)(s)?s:(0,a.ownerDocument)(E.select("floatingElement"))).querySelectorAll(i)),v=E.context.triggerElements;if(o&&(v.hasElement(o)||v.hasMatchingElement(e=>(0,l.contains)(e,o))))return;let b=(0,n.isElement)(o)?o:null;for(;b&&!(0,n.isLastTraversableNode)(b);){let e=(0,n.getParentNode)(b);if((0,n.isLastTraversableNode)(e)||!(0,n.isElement)(e))break;b=e}if(c.length&&(0,n.isElement)(o)&&!(0,u.isRootElement)(o)&&!(0,l.contains)(o,E.select("floatingElement"))&&c.every(e=>!(0,l.contains)(b,e)))return;if((0,n.isHTMLElement)(o)&&!("touches"in e)){let t=(0,n.isLastTraversableNode)(o),r=(0,n.getComputedStyle)(o),i=/auto|scroll/,s=t||i.test(r.overflowX),a=t||i.test(r.overflowY),l=s&&o.clientWidth>0&&o.scrollWidth>o.clientWidth,u=a&&o.clientHeight>0&&o.scrollHeight>o.clientHeight,c="rtl"===r.direction,d=u&&(c?e.offsetX<=o.offsetWidth-o.clientWidth:e.offsetX>o.clientWidth),f=l&&e.offsetY>o.clientHeight;if(d||f)return}if(h(e))return;if("intentional"===f()&&j.current){t.clear(),j.current=!1;return}if("function"==typeof N&&!N(e))return;let y=x.current.floatingContext?.nodeId,S=P?(0,d.getNodeChildren)(P.nodesRef.current,y):[];if(S.length>0){let e=!0;if(S.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__outsidePressBubbles&&(e=!1)}),!e)return}E.setOpen(!1,(0,p.createChangeEventDetails)(g.REASONS.outsidePress,e)),$()}function b(e){if("sloppy"!==f()||!E.select("open")||!R||(0,u.isEventTargetWithin)(e,E.select("floatingElement"))||(0,u.isEventTargetWithin)(e,E.select("domReferenceElement")))return;let t=e.touches[0];t&&(B.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},V.start(1e3,()=>{B.current&&(B.current.dismissOnTouchEnd=!1,B.current.dismissOnMouseDown=!1)}))}function w(e,t){let n=(0,l.getTarget)(e);if(!n)return;let o=(0,r.addEventListener)(n,e.type,()=>{t(e),o()})}function T(e){V.clear(),"pointerdown"===e.type&&(z.current=e.pointerType),("mousedown"!==e.type||!B.current||B.current.dismissOnMouseDown)&&w(e,e=>{if("pointerdown"===e.type)"sloppy"!==f()||"touch"===e.pointerType||!E.select("open")||!R||(0,u.isEventTargetWithin)(e,E.select("floatingElement"))||(0,u.isEventTargetWithin)(e,E.select("domReferenceElement"))||v(e);else v(e)})}function I(e){if(!F.current)return;let n=W.current;if(c(),"intentional"===f()){if("pointercancel"===e.type){n&&s();return}h(e)||(n?s():("function"!=typeof N||N(e))&&(t.clear(),j.current=!0,$()))}}function O(e){if("sloppy"!==f()||!B.current||(0,u.isEventTargetWithin)(e,E.select("floatingElement"))||(0,u.isEventTargetWithin)(e,E.select("domReferenceElement")))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-B.current.startX),r=Math.abs(t.clientY-B.current.startY),o=Math.sqrt(n*n+r*r);o>5&&(B.current.dismissOnTouchEnd=!0),o>10&&(v(e),V.clear(),B.current=null)}function k(e){"sloppy"!==f()||!B.current||(0,u.isEventTargetWithin)(e,E.select("floatingElement"))||(0,u.isEventTargetWithin)(e,E.select("domReferenceElement"))||(B.current.dismissOnTouchEnd&&v(e),V.clear(),B.current=null)}let M=(0,a.ownerDocument)(S),A=(0,o.mergeCleanups)(C&&(0,o.mergeCleanups)((0,r.addEventListener)(M,"keydown",K),(0,r.addEventListener)(M,"compositionstart",function(){e.clear(),Y.current=!0}),(0,r.addEventListener)(M,"compositionend",function(){e.start(5*!!(0,n.isWebKit)(),()=>{Y.current=!1})})),L&&(0,o.mergeCleanups)((0,r.addEventListener)(M,"click",T,!0),(0,r.addEventListener)(M,"pointerdown",T,!0),(0,r.addEventListener)(M,"pointerup",I,!0),(0,r.addEventListener)(M,"pointercancel",I,!0),(0,r.addEventListener)(M,"mousedown",T,!0),(0,r.addEventListener)(M,"mouseup",I,!0),(0,r.addEventListener)(M,"touchstart",function(e){z.current="touch",w(e,b)},!0),(0,r.addEventListener)(M,"touchmove",function(e){w(e,O)},!0),(0,r.addEventListener)(M,"touchend",function(e){w(e,k)},!0)));return()=>{A(),e.clear(),t.clear(),c(),j.current=!1}},[x,S,C,L,N,y,R,_,H,K,$,D,P,E,V]),t.useEffect($,[N,$]);let X=t.useMemo(()=>({onKeyDown:K,[h[O]]:e=>{G()&&E.setOpen(!1,(0,p.createChangeEventDetails)(g.REASONS.triggerPress,e.nativeEvent))},..."intentional"!==O&&{onClick(e){G()&&E.setOpen(!1,(0,p.createChangeEventDetails)(g.REASONS.triggerPress,e.nativeEvent))}}}
1),[K,E,O,G]),J=(0,s.useStableCallback)(e=>{if(!y||!R||0!==e.button)return;let t=(0,l.getTarget)(e.nativeEvent);(0,l.contains)(E.select("floatingElement"),t)&&(F.current||(F.current=!0,W.current=!1))}),Q=(0,s.useStableCallback)(e=>{!y||!R||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&F.current&&(W.current=!0)}),Z=t.useMemo(()=>({onKeyDown:K,onPointerDown:Q,onMouseDown:Q,onClickCapture:q,onMouseDownCapture(e){q(),J(e)},onPointerDownCapture(e){q(),J(e)},onMouseUpCapture:q,onTouchEndCapture:q,onTouchMoveCapture:q}),[K,q,J,Q]);return t.useMemo(()=>R?{reference:X,floating:Z,trigger:X}:{},[R,X,Z])}],251506);var b=e.i(718396);function E(e,t,n){let r=new Map,o="item"===n,i={};for(let t in"floating"===n&&(i.tabIndex=-1,i[b.FOCUSABLE_ATTRIBUTE]=""),e)o&&e&&(t===b.ACTIVE_KEY||t===b.SELECTED_KEY)||(i[t]=e[t]);for(let s=0;s<t.length;s+=1){let a,l=t[s]?.[n];(a="function"==typeof l?e?l(e):null:l)&&y(i,a,o,r)}return y(i,e,o,r),i}function y(e,t,n,r){for(let o in t){let i=t[o];n&&(o===b.ACTIVE_KEY||o===b.SELECTED_KEY)||(o.startsWith("on")?(r.has(o)||r.set(o,[]),"function"==typeof i&&(r.get(o)?.push(i),e[o]=(...e)=>r.get(o)?.map(t=>t(...e)).find(e=>void 0!==e))):e[o]=i)}}e.s(["useInteractions",0,function(e=[]){let n=e.map(e=>e?.reference),r=e.map(e=>e?.floating),o=e.map(e=>e?.item),i=e.map(e=>e?.trigger),s=t.useCallback(t=>E(t,e,"reference"),n),a=t.useCallback(t=>E(t,e,"floating"),r),l=t.useCallback(t=>E(t,e,"item"),o),u=t.useCallback(t=>E(t,e,"trigger"),i);return t.useMemo(()=>({getReferenceProps:s,getFloatingProps:a,getItemProps:l,getTriggerProps:u}),[s,a,l,u])}],847632);var S=e.i(816827),x=e.i(749699);let R=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);e.s(["useRole",0,function(e,n={}){let r="rootStore"in e?e.rootStore:e,o=r.useState("open"),i=r.useState("floatingId"),s=r.useState("domReferenceElement"),a=r.useState("floatingElement"),{role:l="dialog"}=n,c=(0,S.useId)(),d=s?.id||c,p=t.useMemo(()=>(0,u.getFloatingFocusElement)(a)?.id||i,[a,i]),g=R.get(l)??l,m=null!=(0,f.useFloatingParentNodeId)(),h=t.useMemo(()=>"tooltip"===g||"label"===l?x.EMPTY_OBJECT:{"aria-haspopup":"alertdialog"===g?"dialog":g,"aria-expanded":"false",..."listbox"===g&&{role:"combobox"},..."menu"===g&&m&&{role:"menuitem"},..."select"===l&&{"aria-autocomplete":"none"},..."combobox"===l&&{"aria-autocomplete":"list"}},[g,m,l]),v=t.useMemo(()=>"tooltip"===g||"label"===l?{[`aria-${"label"===l?"labelledby":"describedby"}`]:o?p:void 0}:{...h,"aria-expanded":o?"true":"false","aria-controls":o?p:void 0,..."menu"===g&&{id:d}},[g,p,o,d,l,h]),b=t.useMemo(()=>{let e={id:p,...g&&{role:g}};return"tooltip"===g||"label"===l?e:{...e,..."menu"===g&&{"aria-labelledby":d}}},[g,p,d,l]),E=t.useCallback(({active:e,selected:t})=>{let n={role:"option",...e&&{id:`${p}-fui-option`}};switch(l){case"select":case"combobox":return{...n,"aria-selected":t}}return{}},[p,l]);return t.useMemo(()=>({reference:v,floating:b,item:E,trigger:h}),[v,b,h,E])}],364842)},325661,(e,t,n)=>{"use strict";var r=e.r(405296),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,s=r.useEffect,a=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,c=r[1];return a(function(){o.value=n,o.getSnapshot=t,u(o)&&c({inst:o})},[e,n,t]),s(function(){return u(o)&&c({inst:o}),e(function(){u(o)&&c({inst:o})})},[e]),l(n),n};n.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},56032,(e,t,n)=>{"use strict";t.exports=e.r(325661)},220206,(e,t,n)=>{"use strict";var r=e.r(405296),o=e.r(56032),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=o.useSyncExternalStore,a=r.useRef,l=r.useEffect,u=r.useMemo,c=r.useDebugValue;n.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=s(e,(d=u(function(){function e(e){if(!l){if(l=!0,s=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return a=t}return a=e}if(t=a,i(s,e))return t;var n=r(e);return void 0!==o&&o(t,n)?(s=e,t):(s=e,a=n)}var s,a,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}
1,[t,n,r,o]))[0],d[1]);return l(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}},596482,(e,t,n)=>{"use strict";t.exports=e.r(220206)},71912,175706,20243,7783,e=>{"use strict";let t;e.i(912123);var n=e.i(377852);let r=(e,t,r,o,i,s,...a)=>{let l;if(a.length>0)throw Error((0,n.default)(1));if(e&&t&&r&&o&&i&&s)l=(n,a,l,u)=>s(e(n,a,l,u),t(n,a,l,u),r(n,a,l,u),o(n,a,l,u),i(n,a,l,u),a,l,u);else if(e&&t&&r&&o&&i)l=(n,s,a,l)=>i(e(n,s,a,l),t(n,s,a,l),r(n,s,a,l),o(n,s,a,l),s,a,l);else if(e&&t&&r&&o)l=(n,i,s,a)=>o(e(n,i,s,a),t(n,i,s,a),r(n,i,s,a),i,s,a);else if(e&&t&&r)l=(n,o,i,s)=>r(e(n,o,i,s),t(n,o,i,s),o,i,s);else if(e&&t)l=(n,r,o,i)=>t(e(n,r,o,i),r,o,i);else if(e)l=e;else throw Error("Missing arguments");return l};e.s(["createSelector",0,r],175706);var o=e.i(405296),i=e.i(56032),s=e.i(596482),a=e.i(825560),l=e.i(218660);let u=[];function c(){return t}function d(e){u.push(e)}function f(e){let n=(n,r)=>{let o,i=(0,l.useRefWithInit)(p).current;try{for(let e of(t=i,u))e.before(i);for(let t of(o=e(n,r),u))t.after(i);i.didInitialize=!0}finally{t=void 0}return o};return n.displayName=e.displayName||e.name,n}function p(){return{didInitialize:!1}}e.s(["fastComponent",0,f,"fastComponentRef",0,function(e){return o.forwardRef(f(e))},"getInstance",0,c,"register",0,d],20243);let g=(0,a.isReactVersionAtLeast)(19)?function(e,t,n,r,s){let a,l=c();if(!l){let a;return a=o.useCallback(()=>t(e.getSnapshot(),n,r,s),[e,t,n,r,s]),(0,i.useSyncExternalStore)(e.subscribe,a,a)}let u=l.syncIndex;return l.syncIndex+=1,l.didInitialize?(a=l.syncHooks[u]).store===e&&a.selector===t&&Object.is(a.a1,n)&&Object.is(a.a2,r)&&Object.is(a.a3,s)||(a.store!==e&&(l.didChangeStore=!0),a.store=e,a.selector=t,a.a1=n,a.a2=r,a.a3=s,a.didChange=!0):(a={store:e,selector:t,a1:n,a2:r,a3:s,value:t(e.getSnapshot(),n,r,s),didChange:!1},l.syncHooks.push(a)),a.value}:function(e,t,n,r,o){return(0,s.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,o))};d({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],o=r.selector(r.store.state,r.a1,r.a2,r.a3);(r.didChange||!Object.is(r.value,o))&&(t=!0,r.value=o,r.didChange=!1)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,i.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});class m{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t]))return void this.setState({...this.state,...e})}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return g(this,e,t,n,r)}}var h=e.i(470009),v=e.i(913224),b=e.i(749699);class E extends m{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){o.useDebugValue(e),(0,v.useIsoLayoutEffect)(()=>{this.state[e]!==t&&this.set(e,t)},[e,t])}useSyncedValueWithCleanup(e,t){let n=this;(0,v.useIsoLayoutEffect)(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this,n=Object.values(e);(0,v.useIsoLayoutEffect)(()=>{t.update(e)},[t,...n])}useControlledProp(e,t){o.useDebugValue(e);let n=void 0!==t;(0,v.useIsoLayoutEffect)(()=>{n&&!Object.is(this.state[e],t)&&super.setState({...this.state,[e]:t})},[e,t,n])}select(e,t,n,r){return(0,this.selectors[e])(this.state,t,n,r)}useState(e,t,n,r){return o.useDebugValue(e),g(this,this.selectors[e],t,n,r)}useContextCallback(e,t){o.useDebugValue(e);let n=(0,h.useStableCallback)(t??b.NOOP);this.context[e]=n}useStateSetter(e){let t=o.useRef(void 0);return void 0===t.current&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n,r=(n="function"==typeof e?e:this.selectors[e])(this.state);return t(r,r,this),this.subscribe(e=>{let o=n(e);if(!Object.is(r,o)){let e=r;r=o,t(o,e,this)}})}}e.s(["ReactStore",0,E],7783);var y=e.i(509990),S=e.i(978932);let x={open:r(e=>e.open),transitionStatus:r(e=>e.transitionStatus),domReferenceElement:r(e=>e.domReferenceElement),referenceElement:r(e=>e.positionReference??e.referenceElement),floatingElement:r(e=>e.floatingElement),floatingId:r(e=>e.floatingId)};
1e.s(["FloatingRootStore",0,class extends E{constructor(e){const{syncOnly:t,nested:n,onOpenChange:r,triggerElements:o,...i}=e;super({...i,positionReference:i.referenceElement,domReferenceElement:i.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:(0,y.createEventEmitter)(),nested:n,triggerElements:o},x),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||null!=t&&(0,S.isClickLikeEvent)(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit("openchange",n)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}}],71912)},536019,939762,e=>{"use strict";var t=e.i(816827),n=e.i(218660),r=e.i(913224),o=e.i(92615),i=e.i(985975),s=e.i(71912);e.s(["useSyncedFloatingRootContext",0,function(e){let{popupStore:a,treatPopupAsFloatingElement:l=!1,onOpenChange:u}=e,c=(0,t.useId)(),d=null!=(0,i.useFloatingParentNodeId)(),f=a.useState("open"),p=a.useState("activeTriggerElement"),g=a.useState(l?"popupElement":"positionerElement"),m=a.context.triggerElements,h=(0,n.useRefWithInit)(()=>new s.FloatingRootStore({open:f,transitionStatus:void 0,referenceElement:p,floatingElement:g,triggerElements:m,onOpenChange:u,floatingId:c,syncOnly:!0,nested:d})).current;return(0,r.useIsoLayoutEffect)(()=>{let e={open:f,floatingId:c,referenceElement:p,floatingElement:g};(0,o.isElement)(p)&&(e.domReferenceElement=p),h.state.positionReference===h.state.referenceElement&&(e.positionReference=p),h.update(e)},[f,c,p,g,h]),h.context.onOpenChange=u,h.context.nested=d,h}],536019);var a=e.i(405296),l=e.i(470009),u=e.i(475874);e.s(["useOpenInteractionType",0,function(e){let t,n,o,i,[s,c]=a.useState(null),d=(0,l.useStableCallback)((t,n)=>{e||c(n||(u.isIOS?"touch":""))});t=a.useRef(e),n=(0,l.useStableCallback)(t=>{t&&!e&&c(null)}),(0,r.useIsoLayoutEffect)(()=>{t.current!==e&&n(t.current)},[e,n]),(0,r.useIsoLayoutEffect)(()=>{t.current=e},[e]);let{onClick:f,onPointerDown:p}=(o=a.useRef(""),i=a.useCallback(e=>{e.defaultPrevented||(o.current=e.pointerType,d(e,e.pointerType))},[d]),{onClick:a.useCallback(e=>{0===e.detail?d(e,"keyboard"):(d(e,"pointerType"in e?e.pointerType:o.current),o.current="")},[d]),onPointerDown:i});return a.useMemo(()=>({openMethod:s,triggerProps:{onClick:f,onPointerDown:p}}),[s,f,p])}],939762)},82155,e=>{"use strict";var t=e.i(405296),n=e.i(470009),r=e.i(913224),o=e.i(692685),i=e.i(93036);function s(e,n){let r=t.useRef(null),o=t.useRef(null);return t.useCallback(t=>{if(void 0!==e){if(null!==r.current){let e=r.current,t=o.current,i=n.context.triggerElements.getById(e);t&&i===t&&n.context.triggerElements.delete(e),r.current=null,o.current=null}null!==t&&(r.current=e,o.current=t,n.context.triggerElements.add(e,t))}},[n,e])}e.s(["useImplicitActiveTrigger",0,function(e){let t=e.useState("open");(0,r.useIsoLayoutEffect)(()=>{if(t&&!e.select("activeTriggerId")&&1===e.context.triggerElements.size){let t=e.context.triggerElements.entries().next();if(!t.done){let[n,r]=t.value;e.update({activeTriggerId:n,activeTriggerElement:r})}}},[t,e])},"useOpenStateTransitions",0,function(e,t,r){let{mounted:s,setMounted:a,transitionStatus:l}=(0,o.useTransitionStatus)(e);t.useSyncedValues({mounted:s,transitionStatus:l});let u=(0,n.useStableCallback)(()=>{a(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),r?.(),t.context.onOpenChangeComplete?.(!1)}),c=t.useState("preventUnmountingOnClose");return(0,i.useOpenChangeComplete)({enabled:!c,open:e,ref:t.context.popupRef,onComplete(){e||u()}}),{forceUnmount:u,transitionStatus:l}},"useTriggerDataForwarding",0,function(e,t,o,i){let a=o.useState("isMountedByTrigger",e),l=s(e,o),u=(0,n.useStableCallback)(t=>{if(l(t),!t||!o.select("open"))return;let n=o.select("activeTriggerId");n===e?o.update({activeTriggerElement:t,...i}):null==n&&o.update({activeTriggerId:e,activeTriggerElement:t,...i})});return(0,r.useIsoLayoutEffect)(()=>{a&&o.update({activeTriggerElement:t.current,...i})},[a,o,t,...Object.values(i)]),{registerTrigger:u,isMountedByThisTrigger:a}},"useTriggerRegistration",0,s])},27849,e=>{"use strict";e.s(["PopupTriggerMap",0,class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(void 0!==n&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}])},128909,e=>{"use strict";var t=e.i(175706),n=e.i(27849),r=e.i(71912),o=e.i(749699);let i=(0,t.createSelector)(e=>e.triggerIdProp??e.activeTriggerId),s={open:(0,t.createSelector)(e=>e.openProp??e.open),mounted:(0,t.createSelector)(e=>e.mounted),transitionStatus:(0,t.createSelector)(e=>e.transitionStatus),floatingRootContext:(0,t.createSelector)(e=>e.floatingRootContext),preventUnmountingOnClose:(0,t.createSelector)(e=>e.preventUnmountingOnClose),payload:(0,t.createSelector)(e=>e.payload),activeTriggerId:i,activeTriggerElement:(0,t.createSelector)(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:(0,t.createSelector)((e,t)=>void 0!==t&&i(e)===t),isOpenedByTrigger:(0,t.createSelector)((e,t)=>void 0!==t&&i(e)===t&&e.open),isMountedByTrigger:(0,t.createSelector)((e,t)=>void 0!==t&&i(e)===t&&e.mounted),triggerProps:(0,t.createSelector)((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:(0,t.createSelector)(e=>e.popupProps),popupElement:(0,t.createSelector)(e=>e.popupElement),positionerElement:(0,t.createSelector)(e=>e.positionerElement)};e.s(["createInitialPopupStoreState",0,function(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new r.FloatingRootStore({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new n.PopupTriggerMap,floatingId:"",syncOnly:!1,nested:!1,onOpenChange:void 0}),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:o.EMPTY_OBJECT,inactiveTriggerProps:o.EMPTY_OBJECT,popupProps:o.EMPTY_OBJECT}},"popupStoreSelectors",0,s],128909)},552292,e=>{"use strict";var t=e.i(405296),n=e.i(832690),r=e.i(994294),o=e.i(749699),i=e.i(971949),s=e.i(917724),a=e.i(978932),l=e.i(17301),u=e.i(775632);e.s(["useClick",0,function(e,c={}){let d="rootStore"in e?e.rootStore:e,f=d.context.dataRef,{enabled:p=!0,event:g="click",toggle:m=!0,ignoreMouse:h=!1,stickIfOpen:v=!0,touchOpenDelay:b=0,reason:E=u.REASONS.triggerPress}=c,y=t.useRef(void 0),S=(0,n.useAnimationFrame)(),x=(0,r.useTimeout)(),R=t.useMemo(()=>({onPointerDown(e){y.current=e.pointerType},onMouseDown(e){let t=y.current,n=e.nativeEvent,r=d.select("open");if(0!==e.button||"click"===g||(0,a.isMouseLikePointerType)(t,!0)&&h)return;let o=f.current.openEvent,u=o?.type,c=d.select("domReferenceElement")!==e.currentTarget,p=r&&c||!(r&&m&&(!o||!v||"click"===u||"mousedown"===u)),R=(0,i.getTarget)(n);if((0,s.isTypeableElement)(R)){let e=(0,l.createChangeEventDetails)(E,n,R);p&&"touch"===t&&b>0?x.start(b,()=>{d.setOpen(!0,e)}):d.setOpen(p,e);return}let C=e.currentTarget;S.request(()=>{let e=(0,l.createChangeEventDetails)(E,n,C);p&&"touch"===t&&b>0?x.start(b,()=>{d.setOpen(!0,e)}):d.setOpen(p,e)})},onClick(e){if("mousedown-only"===g)return;let t=y.current;if("mousedown"===g&&t){y.current=void 0;return}if((0,a.isMouseLikePointerType)(t,!0)&&h)return;let n=d.select("open"),r=f.current.openEvent,o=d.select("domReferenceElement")!==e.currentTarget,i=n&&o||!(n&&m&&(!r||!v||(0,a.isClickLikeEvent)(r))),s=(0,l.createChangeEventDetails)(E,e.nativeEvent,e.currentTarget);i&&"touch"===t&&b>0?x.start(b,()=>{d.setOpen(!0,s)}):d.setOpen(i,s)},onKeyDown(){y.current=void 0}}),[f,g,h,d,v,m,S,x,b,E]);return t.useMemo(()=>p?{reference:R}:o.EMPTY_OBJECT,[p,R])}])},609050,e=>{"use strict";var t=e.i(92615),n=e.i(994294),r=e.i(971949),o=e.i(441508);let i=.1*.1;function s(e,t,n,r,o,i){return r>=t!=i>=t&&e<=(o-n)*(t-r)/(i-r)+n}function a(e,t,n,r,o,i,a,l,u,c){let d=!1;return s(e,t,n,r,o,i)&&(d=!d),s(e,t,o,i,a,l)&&(d=!d),s(e,t,a,l,u,c)&&(d=!d),s(e,t,u,c,n,r)&&(d=!d),d}function l(e,t,n,r,o,i){let s=Math.min(n,o),a=Math.max(n,o),l=Math.min(r,i),u=Math.max(r,
1i);return e>=s&&e<=a&&t>=l&&t<=u}e.s(["safePolygon",0,function(e={}){let{blockPointerEvents:s=!1}=e,u=new n.Timeout,c=({x:e,y:n,placement:s,elements:c,onClose:d,nodeId:f,tree:p})=>{let g=s?.split("-")[0],m=!1,h=null,v=null,b="u">typeof performance?performance.now():0;return function(s){u.clear();let E=c.domReference,y=c.floating;if(!E||!y||null==g||null==e||null==n)return;let{clientX:S,clientY:x}=s,R=(0,r.getTarget)(s),C="mouseleave"===s.type,w=(0,r.contains)(y,R),T=(0,r.contains)(E,R);if(w&&(m=!0,!C))return;if(T&&(m=!1,!C)){m=!0;return}if(C&&(0,t.isElement)(s.relatedTarget)&&(0,r.contains)(y,s.relatedTarget))return;function I(){return!!(p&&(0,o.getNodeChildren)(p.nodesRef.current,f).length>0)}function O(){I()||(u.clear(),d())}if(I())return;let k=E.getBoundingClientRect(),M=y.getBoundingClientRect(),P=e>M.right-M.width/2,A=n>M.bottom-M.height/2,N=M.width>k.width,L=M.height>k.height,D=(N?k:M).left,F=(N?k:M).right,W=(L?k:M).top,j=(L?k:M).bottom;if("top"===g&&n>=k.bottom-1||"bottom"===g&&n<=k.top+1||"left"===g&&e>=k.right-1||"right"===g&&e<=k.left+1)return void O();let _=!1;switch(g){case"top":_=l(S,x,D,k.top+1,F,M.bottom-1);break;case"bottom":_=l(S,x,D,M.top+1,F,k.bottom-1);break;case"left":_=l(S,x,M.right-1,j,k.left+1,W);break;case"right":_=l(S,x,k.right-1,j,M.left+1,W)}if(_)return;if(m&&(!(S>=k.x)||!(S<=k.x+k.width)||!(x>=k.y)||!(x<=k.y+k.height))||!C&&function(e,t){let n=performance.now(),r=n-b;if(null===h||null===v||0===r)return h=e,v=t,b=n,!1;let o=e-h,s=t-v;return h=e,v=t,b=n,o*o+s*s<r*r*i}(S,x))return void O();let H=!1;switch(g){case"top":{let t=N?.25:2,r=n+.5+1,o=P||N?M.bottom-.5:M.top,i=P?N?M.bottom-.5:M.top:M.bottom-.5;H=a(S,x,N||P?e+t:e-t,r,N?e-t:P?e+t:e-t,r,M.left,o,M.right,i);break}case"bottom":{let t=N?.25:2,r=n-.5,o=P||N?M.top+.5:M.bottom,i=P?N?M.top+.5:M.bottom:M.top+.5;H=a(S,x,N||P?e+t:e-t,r,N?e-t:P?e+t:e-t,r,M.left,o,M.right,i);break}case"left":{let t=L?.25:2,r=e+.5+1,o=A||L?M.right-.5:M.left,i=A?L?M.right-.5:M.left:M.right-.5;H=a(S,x,o,M.top,i,M.bottom,r,L||A?n+t:n-t,r,L?n-t:A?n+t:n-t);break}case"right":{let t=L?.25:2,r=e-.5,o=A||L?M.left+.5:M.right,i=A?L?M.left+.5:M.right:M.left+.5;H=a(S,x,r,L||A?n+t:n-t,r,L?n-t:A?n+t:n-t,o,M.top,i,M.bottom)}}H?m||u.start(40,O):O()}};return c.__options={...e,blockPointerEvents:s},c}])},593247,e=>{"use strict";var t=e.i(978932);e.s(["getDelay",0,function(e,n,r){let o=null==r||(0,t.isMouseLikePointerType)(r)?"function"==typeof e?e():e:0;return"number"==typeof o?o:o?.[n]},"getRestMs",0,function(e){return"function"==typeof e?e():e},"isClickLikeOpenEvent",0,function(e,t){return t||"click"===e||"mousedown"===e}])},187489,e=>{"use strict";var t=e.i(405296),n=e.i(92615),r=e.i(596472),o=e.i(79544),i=e.i(475874),s=e.i(994294),a=e.i(508943),l=e.i(971949),u=e.i(917724),c=e.i(17301),d=e.i(775632),f=e.i(865073);let p=i.isMac&&i.isSafari;e.s(["useFocus",0,function(e,i={}){let g="rootStore"in e?e.rootStore:e,{events:m,dataRef:h}=g.context,{enabled:v=!0,delay:b}=i,E=t.useRef(!1),y=t.useRef(null),S=(0,s.useTimeout)(),x=t.useRef(!0);t.useEffect(()=>{let e=g.select("domReferenceElement");if(!v)return;let t=(0,n.getWindow)(e);return(0,o.mergeCleanups)((0,r.addEventListener)(t,"blur",function(){let e=g.select("domReferenceElement");!g.select("open")&&(0,n.isHTMLElement)(e)&&e===(0,l.activeElement)((0,a.ownerDocument)(e))&&(E.current=!0)}),p&&(0,r.addEventListener)(t,"keydown",function(){x.current=!0},!0),p&&(0,r.addEventListener)(t,"pointerdown",function(){x.current=!1},!0))},[g,v]),t.useEffect(()=>{if(v)return m.on("openchange",e),()=>{m.off("openchange",e)};function e(e){if(e.reason===d.REASONS.triggerPress||e.reason===d.REASONS.escapeKey){let e=g.select("domReferenceElement");(0,n.isElement)(e)&&(y.current=e,E.current=!0)}}},[m,v,g]);let R=t.useMemo(()=>({onMouseLeave(){E.current=!1,y.current=null},onFocus(e){let t=e.currentTarget;if(E.current){if(y.current===t)return;E.current=!1,y.current=null}let r=(0,l.getTarget)(e.nativeEvent);if((0,n.isElement)(r)){if(p&&!e.relatedTarget){if(!x.current&&!(0,u.isTypeableElement)(r))return}else if(!(0,u.matchesFocusVisible)(r))return}let o=(0,u.isTargetInsideEnabledTrigger)(e.relatedTarget,g.context.triggerElements),{nativeEvent:i,currentTarget:s}=e,a="function"==typeof b?b():b;g.select("open")&&o||0===a||void 0===a?g.setOpen(!0,(0,c.createChangeEventDetails)(d.REASONS.triggerFocus,i,s)
1):S.start(a,()=>{E.current||g.setOpen(!0,(0,c.createChangeEventDetails)(d.REASONS.triggerFocus,i,s))})},onBlur(e){E.current=!1,y.current=null;let t=e.relatedTarget,r=e.nativeEvent,o=(0,n.isElement)(t)&&t.hasAttribute((0,f.createAttribute)("focus-guard"))&&"outside"===t.getAttribute("data-type");S.start(0,()=>{let e=g.select("domReferenceElement"),n=(0,l.activeElement)((0,a.ownerDocument)(e));if(!t&&n===e||(0,l.contains)(h.current.floatingContext?.refs.floating.current,n)||(0,l.contains)(e,n)||o)return;let i=t??n;(0,u.isTargetInsideEnabledTrigger)(i,g.context.triggerElements)||g.setOpen(!1,(0,c.createChangeEventDetails)(d.REASONS.triggerFocus,r))})}}),[h,g,S,b]);return t.useMemo(()=>v?{reference:R,trigger:R}:{},[v,R])}])},594676,e=>{"use strict";var t=e.i(943323),n=e.i(218660),r=e.i(994294);e.i(917724);class o{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new r.Timeout,this.restTimeout=new r.Timeout,this.handleCloseOptions=void 0}static create(){return new o}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}let i=new WeakMap;function s(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&i.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),i.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}e.s(["applySafePolygonPointerEventsMutation",0,function(e,t){let{scopeElement:n,referenceElement:r,floatingElement:o}=t,a=i.get(n);a&&a!==e&&s(a),s(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=o,i.set(n,e),n.style.pointerEvents="none",r.style.pointerEvents="auto",o.style.pointerEvents="auto"},"clearSafePolygonPointerEventsMutation",0,s,"useHoverInteractionSharedState",0,function(e){let r=(0,n.useRefWithInit)(o.create).current,i=e.context.dataRef.current;return i.hoverInteractionState||(i.hoverInteractionState=r),(0,t.useOnMount)(i.hoverInteractionState.disposeEffect),i.hoverInteractionState}])},750277,e=>{"use strict";var t=e.i(405296),n=e.i(320178),r=e.i(92615),o=e.i(596472),i=e.i(79544),s=e.i(726652),a=e.i(470009),l=e.i(508943),u=e.i(971949),c=e.i(917724),d=e.i(978932),f=e.i(17301),p=e.i(775632),g=e.i(985975),m=e.i(594676),h=e.i(593247);let v={current:null};e.s(["useHoverReferenceInteraction",0,function(e,b={}){let E="rootStore"in e?e.rootStore:e,{dataRef:y,events:S}=E.context,{enabled:x=!0,delay:R=0,handleClose:C=null,mouseOnly:w=!1,restMs:T=0,move:I=!0,triggerElementRef:O=v,externalTree:k,isActiveTrigger:M=!0,getHandleCloseContext:P,isClosing:A}=b,N=(0,g.useFloatingTree)(k),L=(0,m.useHoverInteractionSharedState)(E),D=t.useRef(!1),F=(0,s.useValueAsRef)(C),W=(0,s.useValueAsRef)(R),j=(0,s.useValueAsRef)(T),_=(0,s.useValueAsRef)(x),H=(0,s.useValueAsRef)(A);M&&(L.handleCloseOptions=F.current?.__options);let B=(0,a.useStableCallback)(()=>(0,h.isClickLikeOpenEvent)(y.current.openEvent?.type,L.interactedInside)),V=(0,a.useStableCallback)(e=>(0,c.isTargetInsideEnabledTrigger)(e,E.context.triggerElements)),U=(0,a.useStableCallback)((e,t,n)=>{let o=E.context.triggerElements;return o.hasElement(t)?!e||!(0,u.contains)(e,t):!!(0,r.isElement)(n)&&o.hasMatchingElement(e=>(0,u.contains)(e,n))&&(!e||!(0,u.contains)(e,n))}),$=(0,a.useStableCallback)((e,t=!0)=>{let n=(0,h.getDelay)(W.current,"close",L.pointerType);n?L.openChangeTimeout.start(n,()=>{E.setOpen(!1,(0,f.createChangeEventDetails)(p.REASONS.triggerHover,e)),N?.events.emit("floating.closed",e)}):t&&(L.openChangeTimeout.clear(),E.setOpen(!1,(0,f.createChangeEventDetails)(p.REASONS.triggerHover,e)),N?.events.emit("floating.closed",e))}),Y=(0,a.useStableCallback)(()=>{L.handler&&((0,l.ownerDocument)(E.select("domReferenceElement")).removeEventListener("mousemove",L.handler),L.handler=void 0)}),z=(0,a.useStableCallback)(()=>{(0,m.clearSafePolygonPointerEventsMutation)(L)});return t.useEffect(()=>Y,[Y]),t.useEffect(()=>{if(x)return S.on("openchange",e),()=>{S.off("openchange",e)};function e(e){e.open?D.current=!1:(D.current=e.reason===p.REASONS.triggerHover,Y(),L.openChangeTimeout.clear(),L.restTimeout.clear(),L.blockMouseMove=!0,L.restTimeoutPending=!1)}},[x,S,L,Y]),t.useEffect(()=>{if(!x)return;let e=O.current??(M?E.select("domReferenceElement"):null);if((0,r.isElement)(e))return I?(0,i.mergeCleanups)((0,o.addEventListener)(e,"mousemove",t,{once:!0}),(0,o.addEventListener)(e,"mouseenter",t),(0,o.addEventListener)(e,"mouseleave",n)):(0,i.mergeCleanups)((0,o.addEventListener)(e,"mouseenter",t),(0,o.addEventListener)(e,"mouseleave",n));function t(e){if(L.openChangeTimeout.clear(),L.blockMouseMove=!1,w&&!(0,d.isMouseLikePointerType)(L.pointerType))return;let t=(0,h.getRestMs)(j.current),n=(0,h.getDelay)(W.current,"open",L.pointerType),o=(0,u.getTarget)(e),i=e.currentTarget??null,s=E.select("domReferenceElement"),a=i;if((0,r.isElement)(o)&&!E.context.triggerElements.hasElement(o)){for(let e of E.context.triggerElements.elements())if((0,u.contains)(e,o)){a=e;break}}(0,r.isElement)(i)&&(0,r.isElement)(s)&&!E.context.triggerElements.hasElement(i)&&(0,u.contains)(i,s)&&(a=s);let l=null!=a&&U(s,a,o),c=E.select("open"),g=H.current?.()??"ending"===E.select("transitionStatus"),m=!c&&g&&D.current,v=!l&&(0,r.isElement)(a)&&(0,r.isElement)(s)&&(0,u.contains)(s,a)&&m,b=t>0&&!n,y=!c||l;l&&(c||m)||v?E.setOpen(!0,(0,f.createChangeEventDetails)(p.REASONS.triggerHover,e,a)):!b&&(n?L.openChangeTimeout.start(n,()=>{y&&E.setOpen(!0,(0,f.createChangeEventDetails)(p.REASONS.triggerHover,e,a))}):y&&E.setOpen(!0,(0,f.createChangeEventDetails)(p.REASONS.triggerHover,e,a)))}function n(e){if(B())return void z();Y();let t=E.select("domReferenceElement"),n=(0,l.ownerDocument)(t);L.restTimeout.clear(),L.restTimeoutPending=!1;let r=y.current.floatingContext??P?.();if(!V(e.relatedTarget)){if(F.current&&r){E.select("open")||L.openChangeTimeout.clear();let t=O.current;L.handler=F.current({...r,tree:N,x:e.clientX,y:e.clientY,onClose(){z(),Y(),_.current&&!B()&&t===E.select("domReferenceElement")&&$(e,!0)}}),n.addEventListener("mousemove",L.handler),L.handler(e);return}"touch"===L.pointerType&&(0,u.contains)(E.select("floatingElement"),e.relatedTarget)||$(e)}}},[Y,z,y,W,$,E,x,F,L,M,U,B,V,w,I,j,O,N,_,P,H]),t.useMemo(()=>
1{if(x)return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,r=e.currentTarget,o=E.select("domReferenceElement"),i=E.select("open"),s=U(o,r,e.target);if(w&&!(0,d.isMouseLikePointerType)(L.pointerType))return;if(i&&s&&L.handleCloseOptions?.blockPointerEvents){let e=E.select("floatingElement");if(e){let t=L.handleCloseOptions?.getScope?.()??r.ownerDocument.body;(0,m.applySafePolygonPointerEventsMutation)(L,{scopeElement:t,referenceElement:r,floatingElement:e})}}let a=(0,h.getRestMs)(j.current);function l(){if(L.restTimeoutPending=!1,B())return;let e=E.select("open");L.blockMouseMove||e&&!s||E.setOpen(!0,(0,f.createChangeEventDetails)(p.REASONS.triggerHover,t,r))}(!i||s)&&0!==a&&(!s&&L.restTimeoutPending&&e.movementX**2+e.movementY**2<2||(L.restTimeout.clear(),"touch"===L.pointerType?n.flushSync(()=>{l()}):s&&i?l():(L.restTimeoutPending=!0,L.restTimeout.start(a,l))))}};function e(e){L.pointerType=e.pointerType}},[x,L,B,U,w,E,j])}])},556938,e=>{"use strict";var t=e.i(278928),n=e.i(405296),r=e.i(320178),o="u">typeof document?n.useLayoutEffect:function(){};function i(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!i(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!i(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function s(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function a(e,t){let n=s(e);return Math.round(t*n)/n}function l(e){let t=n.useRef(e);return o(()=>{t.current=e}),t}e.s(["flip",0,(e,n)=>{let r=(0,t.flip)(e);return{name:r.name,fn:r.fn,options:[e,n]}},"hide",0,(e,n)=>{let r=(0,t.hide)(e);return{name:r.name,fn:r.fn,options:[e,n]}},"limitShift",0,(e,n)=>({fn:(0,t.limitShift)(e).fn,options:[e,n]}),"offset",0,(e,n)=>{let r=(0,t.offset)(e);return{name:r.name,fn:r.fn,options:[e,n]}},"shift",0,(e,n)=>{let r=(0,t.shift)(e);return{name:r.name,fn:r.fn,options:[e,n]}},"size",0,(e,n)=>{let r=(0,t.size)(e);return{name:r.name,fn:r.fn,options:[e,n]}},"useFloating",0,function(e){void 0===e&&(e={});let{placement:u="bottom",strategy:c="absolute",middleware:d=[],platform:f,elements:{reference:p,floating:g}={},transform:m=!0,whileElementsMounted:h,open:v}=e,[b,E]=n.useState({x:0,y:0,strategy:c,placement:u,middlewareData:{},isPositioned:!1}),[y,S]=n.useState(d);i(y,d)||S(d);let[x,R]=n.useState(null),[C,w]=n.useState(null),T=n.useCallback(e=>{e!==M.current&&(M.current=e,R(e))},[]),I=n.useCallback(e=>{e!==P.current&&(P.current=e,w(e))},[]),O=p||x,k=g||C,M=n.useRef(null),P=n.useRef(null),A=n.useRef(b),N=null!=h,L=l(h),D=l(f),F=l(v),W=n.useCallback(()=>{if(!M.current||!P.current)return;let e={placement:u,strategy:c,middleware:y};D.current&&(e.platform=D.current),(0,t.computePosition)(M.current,P.current,e).then(e=>{let t={...e,isPositioned:!1!==F.current};j.current&&!i(A.current,t)&&(A.current=t,r.flushSync(()=>{E(t)}))})},[y,u,c,D,F]);o(()=>{!1===v&&A.current.isPositioned&&(A.current.isPositioned=!1,E(e=>({...e,isPositioned:!1})))},[v]);let j=n.useRef(!1);o(()=>(j.current=!0,()=>{j.current=!1}),[]),o(()=>{if(O&&(M.current=O),k&&(P.current=k),O&&k){if(L.current)return L.current(O,k,W);W()}},[O,k,W,L,N]);let _=n.useMemo(()=>({reference:M,floating:P,setReference:T,setFloating:I}),[T,I]),H=n.useMemo(()=>({reference:O,floating:k}),[O,k]),B=n.useMemo(()=>{let e={position:c,left:0,top:0};if(!H.floating)return e;let t=a(H.floating,b.x),n=a(H.floating,b.y);return m?{...e,transform:"translate("+t+"px, "+n+"px)",...s(H.floating)>=1.5&&{willChange:"transform"}}:{position:c,left:t,top:n}},[c,m,H.floating,b.x,b.y]);return n.useMemo(()=>({...b,update:W,refs:_,elements:H,floatingStyles:B}),[b,W,_,H,B])}])},501176,e=>{"use strict";var t=e.i(405296);let n=t.createContext(void 0);e.s(["useDirection",0,function(){let e=t.useContext(n);return e?.direction??"ltr"}])},532259,300844,e=>{"use strict";var t=e.i(405296),n=e.i(641645),r=e.i(508943),o=e.i(285182),i=e.i(913224),s=e.i(726652),a=e.i(470009),l=e.i(278928),u=e.i(556938),c=e.i(92615),d=e.i(985975);e.i(912123);var f=e.i(816827),p=e.i(218660),g=e.i(71912),m=e.i(27849),h=e.i(501176);let v={name:"hide",async fn(e){let{width:t,height:n,x:r,y:o}=e.rects.reference,i=await (0,u.hide)().fn(e);return{data:{referenceHidden:i.data?.referenceHidden||0===t&&0===n&&0===r&&0===o}}}},b={sideX:"left",sideY:"top"};function E(e,t,n){let r="inline-start"===e||"inline-end"===e;return({top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"})[t]}function y(e,t,r){let{rects:o,placement:i}=e;return{side:E(t,(0,n.getSide)(i),r),align:(0,n.getAlignment)(i)||"center",anchor:{width:o.reference.width,height:o.reference.height},positioner:{width:o.floating.width,height:o.floating.height}}}function S(e){return null!=e&&"current"in e}e.s(["DEFAULT_SIDES",0,b,"adaptiveOrigin",0,{name:"adaptiveOrigin",async fn(e){let{x:t,y:i,rects:{floating:s},elements:{floating:a},platform:l,strategy:u,placement:c}=e,d=(0,o.ownerWindow)(a),f=d.getComputedStyle(a);if("0s"===f.transitionDuration||""===f.transitionDuration)return{x:t,y:i,data:b};let p=await l.getOffsetParent?.(a),g={width:0,height:0};
1if("fixed"===u&&d?.visualViewport)g={width:d.visualViewport.width,height:d.visualViewport.height};else if(p===d){let e=(0,r.ownerDocument)(a);g={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await l.isElement?.(p)&&(g=await l.getDimensions(p));let m=(0,n.getSide)(c),h=t,v=i;return"left"===m&&(h=g.width-(t+s.width)),"top"===m&&(v=g.height-(i+s.height)),{x:h,y:v,data:{sideX:"left"===m?"right":b.sideX,sideY:"top"===m?"bottom":b.sideY}}}}],300844),e.s(["useAnchorPositioning",0,function(e){var x,R;let{anchor:C,positionMethod:w="absolute",side:T="bottom",sideOffset:I=0,align:O="center",alignOffset:k=0,collisionBoundary:M,collisionPadding:P=5,sticky:A=!1,arrowPadding:N=5,disableAnchorTracking:L=!1,keepMounted:D=!1,floatingRootContext:F,mounted:W,collisionAvoidance:j,shiftCrossAxis:_=!1,nodeId:H,adaptiveOrigin:B,lazyFlip:V=!1,externalTree:U}=e,[$,Y]=t.useState(null);W||null===$||Y(null);let z=j.side||"flip",G=j.align||"flip",K=j.fallbackAxisSide||"end",q="function"==typeof C?C:void 0,X=(0,a.useStableCallback)(q),J=q?X:C,Q=(0,s.useValueAsRef)(C),Z=(0,s.useValueAsRef)(W),ee="rtl"===(0,h.useDirection)(),et=$||({top:"top",right:"right",bottom:"bottom",left:"left","inline-end":ee?"left":"right","inline-start":ee?"right":"left"})[T],en="center"===O?et:`${et}-${O}`,er=P,eo=+("bottom"===T),ei=+("top"===T),es=+("right"===T),ea=+("left"===T);"number"==typeof er?er={top:er+eo,right:er+ea,bottom:er+ei,left:er+es}:er&&(er={top:(er.top||0)+eo,right:(er.right||0)+ea,bottom:(er.bottom||0)+ei,left:(er.left||0)+es});let el={boundary:"clipping-ancestors"===M?"clippingAncestors":M,padding:er},eu=t.useRef(null),ec=(0,s.useValueAsRef)(I),ed=(0,s.useValueAsRef)(k),ef=[(0,u.offset)(e=>{let t=y(e,T,ee),n="function"==typeof ec.current?ec.current(t):ec.current,r="function"==typeof ed.current?ed.current(t):ed.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},["function"!=typeof I?I:0,"function"!=typeof k?k:0,ee,T])],ep="none"===G&&"shift"!==z,eg=!ep&&(A||_||"shift"===z),em="none"===z?null:(0,u.flip)({...el,padding:{top:er.top+1,right:er.right+1,bottom:er.bottom+1,left:er.left+1},mainAxis:!_&&"flip"===z,crossAxis:"flip"===G&&"alignment",fallbackAxisSideDirection:K}),eh=ep?null:(0,u.shift)(e=>{let t=(0,r.ownerDocument)(e.elements.floating).documentElement;return{...el,rootBoundary:_?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:"none"!==G,crossAxis:eg,limiter:A||_?void 0:(0,u.limitShift)(e=>{if(!eu.current)return{};let{width:t,height:r}=eu.current.getBoundingClientRect(),o=(0,n.getSideAxis)((0,n.getSide)(e.placement)),i="y"===o?er.left+er.right:er.top+er.bottom;return{offset:("y"===o?t:r)/2+i/2}})}},[el,A,_,er,G]);"shift"===z||"shift"===G||"center"===O?ef.push(eh,em):ef.push(em,eh),ef.push((0,u.size)({...el,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!Z.current)return;let i=e.style;i.setProperty("--available-width",`${t}px`),i.setProperty("--available-height",`${n}px`);let s=(0,o.ownerWindow)(e).devicePixelRatio||1,{x:a,y:l,width:u,height:c}=r.reference,d=(Math.round((a+u)*s)-Math.round(a*s))/s,f=(Math.round((l+c)*s)-Math.round(l*s))/s;i.setProperty("--anchor-width",`${d}px`),i.setProperty("--anchor-height",`${f}px`)}}),(x=()=>({element:eu.current||(0,r.ownerDocument)(eu.current).createElement("div"),padding:N,offsetParent:"floating"}),R=[N],{name:"arrow",options:x,async fn(e){let{x:t,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=e,{element:u,padding:c=0,offsetParent:d="real"}=(0,n.evaluate)(x,e)||{};if(null==u)return{};let f=(0,n.getPaddingObject)(c),p={x:t,y:r},g=(0,n.getAlignmentAxis)(o),m=(0,n.getAxisLength)(g),h=await s.getDimensions(u),v="y"===g,b=v?"clientHeight":"clientWidth",E=i.reference[m]+i.reference[g]-p[g]-i.floating[m],y=p[g]-i.reference[g],S="real"===d?await s.getOffsetParent?.(u):a.floating,R=a.floating[b]||i.floating[m];R&&await s.isElement?.(S)||(R=a.floating[b]||i.floating[m]);let C=R/2-h[m]/2-1,w=Math.min(f[v?"top":"left"],C),T=Math.min(f[v?"bottom":"right"],C),I=R-h[m]-T,O=R/2-h[m]/2+(E/2-y/2),k=(0,n.clamp)(w,O,I),M=!l.arrow&&null!=(0,n.getAlignment)(o)&&O!==k&&i.reference[m]/2-(O<w?w:T)-h[m]/2<0,P=M?O<w?O-w:O-I:0;return{[g]:p[g]+P,data:{[g]:k,centerOffset:O-k-P,...M&&{alignmentOffset:P}},reset:M}},options:[x,R]}),{name:"transformOrigin",fn(e){let{elements:t,middlewareData:r,placement:o,rects:i,y:s}=e,a=(0,n.getSide)(o),l=(0,n.getSideAxis)(a),u=eu.current,c=r.arrow?.x||0,d=r.arrow?.y||0,f=u?.clientWidth||0,p=u?.clientHeight||0,g=c+f/2,m=d+p/2,h=Math.abs(r.shift?.y||0),v=i.reference.height/2,b="function"==typeof I?I(y(e,T,ee)):I,E=h>b,S={top:`${g}px calc(100% + ${b}px)`,bottom:`${g}px ${-b}px`,left:`calc(100% + ${b}px) ${m}px`,right:`${-b}px ${m}px`}[a],x=`${g}px ${i.reference.y+v-s}px`;return t.floating.style.setProperty("--transform-origin",eg&&"y"===l&&E?x:S),{}}},v,B),(0,i.useIsoLayoutEffect)(()=>{!W&&F&&F.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[W,F]);let ev=t.useMemo(()=>({elementResize:!L&&"u">typeof ResizeObserver,layoutShift:!L&&"u">typeof IntersectionObserver}),[L]),{refs:eb,elements:eE,x:ey,y:eS,middlewareData:ex,update:eR,placement:eC,context:ew,isPositioned:eT,floatingStyles:eI}=function(e={}){let{nodeId:n,externalTree:r}=e,o=function(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,o=(0,f.useId)(),s=null!=(0,d.useFloatingParentNodeId)(),a=(0,p.useRefWithInit)(()=>new g.FloatingRootStore({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new m.PopupTriggerMap,floatingId:o,syncOnly:!1,nested:s})).current;return(0,i.useIsoLayoutEffect)(()=>{let e={open:t,floatingId:o};void 0!==r.reference&&(e.referenceElement=r.reference,e.domReferenceElement=(0,c.isElement)(r.reference)?r.reference:null),void 0!==r.floating&&(e.floatingElement=r.floating),a.update(e)},[t,o,r.reference,r.floating,a]),a.context.onOpenChange=n,a.context.nested=s,a}(e),s=e.rootContext||o,a={reference:s.useState("referenceElement"),floating:s.useState("floatingElement"),domReference:s.useState("domReferenceElement")},[l,h]=t.useState(null),v=t.useRef(null),b=(0,d.useFloatingTree)(r);(0,i.useIsoLayoutEffect)(()=>{a.domReference&&(v.current=a.domReference)},[a.domReference]);let E=(0,u.useFloating)({...e,elements:{...a,...l&&{reference:l}}}),y=t.useCallback(e=>{let t=(0,c.isElement)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;h(t),E.refs.setReference(t)},[E.refs]),[S,x]=t.useState(void 0),[R,C]=t.useState(null);s.useSyncedValue("referenceElement",S??null);
1let w=(0,c.isElement)(S)?S:null;s.useSyncedValue("domReferenceElement",void 0===S?a.domReference:w),s.useSyncedValue("floatingElement",R);let T=t.useCallback(e=>{((0,c.isElement)(e)||null===e)&&(v.current=e,x(e)),((0,c.isElement)(E.refs.reference.current)||null===E.refs.reference.current||null!==e&&!(0,c.isElement)(e))&&E.refs.setReference(e)},[E.refs,x]),I=t.useCallback(e=>{C(e),E.refs.setFloating(e)},[E.refs]),O=t.useMemo(()=>({...E.refs,setReference:T,setFloating:I,setPositionReference:y,domReference:v}),[E.refs,T,I,y]),k=t.useMemo(()=>({...E.elements,domReference:a.domReference}),[E.elements,a.domReference]),M=s.useState("open"),P=s.useState("floatingId"),A=t.useMemo(()=>({...E,dataRef:s.context.dataRef,open:M,onOpenChange:s.setOpen,events:s.context.events,floatingId:P,refs:O,elements:k,nodeId:n,rootStore:s}),[E,O,k,n,s,M,P]);return(0,i.useIsoLayoutEffect)(()=>{s.context.dataRef.current.floatingContext=A;let e=b?.nodesRef.current.find(e=>e.id===n);e&&(e.context=A)}),t.useMemo(()=>({...E,context:A,refs:O,elements:k,rootStore:s}),[E,O,k,A,s])}({rootContext:F,open:D?W:void 0,placement:en,middleware:ef,strategy:w,whileElementsMounted:D?void 0:(...e)=>(0,l.autoUpdate)(...e,ev),nodeId:H,externalTree:U}),{sideX:eO,sideY:ek}=ex.adaptiveOrigin||b,eM=eT?w:"fixed",eP=t.useMemo(()=>{let e=B?{position:eM,[eO]:ey,[ek]:eS}:{position:eM,...eI};return eT||(e.opacity=0),e},[B,eM,eO,ey,ek,eS,eI,eT]),eA=t.useRef(null);(0,i.useIsoLayoutEffect)(()=>{if(!W)return;let e=Q.current,t="function"==typeof e?e():e,n=(S(t)?t.current:t)||null;n!==eA.current&&(eb.setPositionReference(n),eA.current=n)},[W,eb,J,Q]),t.useEffect(()=>{if(!W)return;let e=Q.current;"function"!=typeof e&&S(e)&&e.current!==eA.current&&(eb.setPositionReference(e.current),eA.current=e.current)},[W,eb,J,Q]),t.useEffect(()=>{if(D&&W&&eE.domReference&&eE.floating)return(0,l.autoUpdate)(eE.domReference,eE.floating,eR,ev)},[D,W,eE,eR,ev]);let eN=(0,n.getSide)(eC),eL=E(T,eN,ee),eD=(0,n.getAlignment)(eC)||"center",eF=!!ex.hide?.referenceHidden;(0,i.useIsoLayoutEffect)(()=>{V&&W&&eT&&Y(eN)},[V,W,eT,eN]);let eW=t.useMemo(()=>({position:"absolute",top:ex.arrow?.y,left:ex.arrow?.x}),[ex.arrow]),ej=ex.arrow?.centerOffset!==0;return t.useMemo(()=>({positionerStyles:eP,arrowStyles:eW,arrowRef:eu,arrowUncentered:ej,side:eL,align:eD,physicalSide:eN,anchorHidden:eF,refs:eb,context:ew,isPositioned:eT,update:eR}),[eP,eW,eu,ej,eL,eD,eN,eF,eb,ew,eT,eR])}],532259)},72213,e=>{"use strict";var t=e.i(210277),n=e.i(749699);e.s(["getDisabledMountTransitionStyles",0,function(e){return"starting"===e?t.DISABLED_TRANSITIONS_STYLE:n.EMPTY_OBJECT}])},786012,e=>{"use strict";var t=e.i(783827),n=e.i(561893),r=e.i(72213);e.s(["usePositioner",0,function(e,o,{styles:i,transitionStatus:s,props:a,refs:l,hidden:u,inert:c=!1}){let d={...i};return c&&(d.pointerEvents="none"),(0,n.useRenderElement)("div",e,{state:o,ref:l,props:[{role:"presentation",hidden:u,style:d},(0,r.getDisabledMountTransitionStyles)(s),a],stateAttributesMapping:t.popupStateMapping})}])},605068,e=>{"use strict";var t=e.i(405296),n=e.i(92615),r=e.i(596472),o=e.i(79544),i=e.i(470009),s=e.i(913224),a=e.i(994294),l=e.i(508943),u=e.i(971949),c=e.i(917724),d=e.i(441508),f=e.i(17301),p=e.i(775632),g=e.i(985975),m=e.i(594676),h=e.i(593247);e.s(["useHoverFloatingInteraction",0,function(e,v={}){let b="rootStore"in e?e.rootStore:e,E=b.useState("open"),y=b.useState("floatingElement"),S=b.useState("domReferenceElement"),{dataRef:x}=b.context,{enabled:R=!0,closeDelay:C=0,nodeId:w}=v,T=(0,m.useHoverInteractionSharedState)(b),I=(0,g.useFloatingTree)(),O=(0,g.useFloatingParentNodeId)(),k=(0,i.useStableCallback)(()=>(0,h.isClickLikeOpenEvent)(x.current.openEvent?.type,T.interactedInside)),M=(0,i.useStableCallback)(()=>{let e=x.current.openEvent?.type;return e?.includes("mouse")&&"mousedown"!==e}),P=(0,i.useStableCallback)(e=>(0,c.isTargetInsideEnabledTrigger)(e,b.context.triggerElements)),A=t.useCallback(e=>{let t=(0,h.getDelay)(C,"close",T.pointerType),n=()=>{b.setOpen(!1,(0,f.createChangeEventDetails)(p.REASONS.triggerHover,e)),I?.events.emit("floating.closed",e)};t?T.openChangeTimeout.start(t,n):(T.openChangeTimeout.clear(),n())},[C,b,T,I]),N=(0,i.useStableCallback)(()=>{(0,m.clearSafePolygonPointerEventsMutation)(T)}),L=(0,i.useStableCallback)(e=>{let t=(0,u.getTarget)(e);if(!(0,c.isInteractiveElement)(t)){T.interactedInside=!1;return}T.interactedInside=t?.closest("[aria-haspopup]")!=null});(0,s.useIsoLayoutEffect)(()=>{E||(T.pointerType=void 0,T.restTimeoutPending=!1,T.interactedInside=!1,N())},[E,T,N]),t.useEffect(()=>N,[N]),(0,s.useIsoLayoutEffect)(()=>
1{if(R&&E&&T.handleCloseOptions?.blockPointerEvents&&M()&&(0,n.isElement)(S)&&y){let e=(0,l.ownerDocument)(y),t=I?.nodesRef.current.find(e=>e.id===O)?.context?.elements.floating;t&&(t.style.pointerEvents="");let n=T.handleCloseOptions?.getScope?.()??T.pointerEventsScopeElement??t??S.closest("[data-rootownerid]")??e.body;return(0,m.applySafePolygonPointerEventsMutation)(T,{scopeElement:n,referenceElement:S,floatingElement:y}),()=>{N()}}},[R,E,S,y,T,M,I,O,N]);let D=(0,a.useTimeout)();t.useEffect(()=>{if(R)return(0,o.mergeCleanups)(y&&(0,r.addEventListener)(y,"mouseenter",function(){T.openChangeTimeout.clear(),D.clear(),I?.events.off("floating.closed",e),N()}),y&&(0,r.addEventListener)(y,"mouseleave",function(t){if(I&&O&&(0,d.getNodeChildren)(I.nodesRef.current,O).length>0)return void I.events.on("floating.closed",e);if(P(t.relatedTarget))return;let r=x.current.floatingContext?.nodeId??w,o=t.relatedTarget;if(!(I&&r&&(0,n.isElement)(o)&&(0,d.getNodeChildren)(I.nodesRef.current,r,!1).some(e=>(0,u.contains)(e.context?.elements.floating,o)))){if(T.handler)return void T.handler(t);N(),k()||A(t)}}),y&&(0,r.addEventListener)(y,"pointerdown",L,!0),()=>{I?.events.off("floating.closed",e)});function e(t){I&&O&&!((0,d.getNodeChildren)(I.nodesRef.current,O).length>0)&&D.start(0,()=>{I.events.off("floating.closed",e),b.setOpen(!1,(0,f.createChangeEventDetails)(p.REASONS.triggerHover,t)),I.events.emit("floating.closed",t)})}},[R,y,b,x,w,k,P,A,N,L,T,I,O,D])}])},655932,e=>{"use strict";var t=e.i(405296),n=e.i(320178),r=e.i(624493),o=e.i(832690),i=e.i(913224),s=e.i(470009),a=e.i(508943),l=e.i(843554),u=e.i(749699),c=e.i(641645),d=e.i(92615);function f(e){let t=(0,d.getComputedStyle)(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=(0,d.isHTMLElement)(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r;return((0,c.round)(n)!==i||(0,c.round)(r)!==s)&&(n=i,r=s),{width:n,height:r}}let p=()=>!0;function g(e,t,n){let r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r)}}function m(e,t){let n=[];for(let[r,o]of Object.entries(t))n.push(g(e,r,o));return n.length?()=>{n.forEach(e=>e())}:u.NOOP}function h(e,t){let n="auto"===t?"auto":`${t.width}px`,r="auto"===t?"auto":`${t.height}px`;e.style.setProperty("--popup-width",n),e.style.setProperty("--popup-height",r)}function v(e,t){let n="max-content"===t?"max-content":`${t.width}px`,r="max-content"===t?"max-content":`${t.height}px`;e.style.setProperty("--positioner-width",n),e.style.setProperty("--positioner-height",r)}var b=e.i(501176),E=e.i(223837);e.s(["usePopupViewport",0,function(e){let c,{store:d,side:y,cssVars:S,children:x}=e,R=(0,b.useDirection)(),C=d.useState("activeTriggerElement"),w=d.useState("activeTriggerId"),T=d.useState("open"),I=d.useState("payload"),O=d.useState("mounted"),k=d.useState("popupElement"),M=d.useState("positionerElement"),P=function(e){let[n,r]=t.useState({current:e,previous:null});return e!==n.current&&r({current:e,previous:n.current}),n.previous}(T?C:null),A=function(e,n){let[r,o]=t.useState(0),s=t.useRef(e),a=t.useRef(n),l=t.useRef(!1);return(0,i.useIsoLayoutEffect)(()=>{let t=s.current,r=n!==a.current;e!==t?(o(e=>e+1),l.current=!r):l.current&&r&&(o(e=>e+1),l.current=!1),s.current=e,a.current=n},[e,n]),`${e??"current"}-${r}`}(w,I),N=t.useRef(null),[L,D]=t.useState(null),[F,W]=t.useState(null),j=t.useRef(null),_=t.useRef(null),H=(0,l.useAnimationsFinished)(j,!0,!1),B=(0,o.useAnimationFrame)(),[V,U]=t.useState(null),[$,Y]=t.useState(!1);(0,i.useIsoLayoutEffect)(()=>(d.set("hasViewport",!0),()=>{d.set("hasViewport",!1)}),[d]);let z=(0,s.useStableCallback)(()=>{j.current?.style.setProperty("animation","none"),j.current?.style.setProperty("transition","none"),_.current?.style.setProperty("display","none")}),G=(0,s.useStableCallback)(e=>{j.current?.style.removeProperty("animation"),j.current?.style.removeProperty("transition"),_.current?.style.removeProperty("display"),e&&U(e)}),K=t.useRef(null);(0,i.useIsoLayoutEffect)(()=>{var e,t;let r,o,i,s;C&&P&&C!==P&&K.current!==C&&N.current&&(D(N.current),Y(!0),W((e=P,t=C,r=e.getBoundingClientRect(),o=t.getBoundingClientRect(),i={x:r.left+r.
1width/2,y:r.top+r.height/2},{horizontal:(s={x:o.left+o.width/2,y:o.top+o.height/2}).x-i.x,vertical:s.y-i.y})),B.request(()=>{n.flushSync(()=>{Y(!1)}),H(()=>{D(null),U(null),N.current=null})}),K.current=C)},[C,P,L,H,B]),(0,i.useIsoLayoutEffect)(()=>{let e=j.current;if(!e)return;let t=(0,a.ownerDocument)(e).createElement("div");for(let n of Array.from(e.childNodes))t.appendChild(n.cloneNode(!0));N.current=t});let q=null!=L;return c=q?(0,E.jsxs)(t.Fragment,{children:[(0,E.jsx)("div",{"data-previous":!0,inert:(0,r.inertValue)(!0),ref:_,style:{...V?{[S.popupWidth]:`${V.width}px`,[S.popupHeight]:`${V.height}px`}:null,position:"absolute"},"data-ending-style":$?void 0:""},"previous"),(0,E.jsx)("div",{"data-current":!0,ref:j,"data-starting-style":$?"":void 0,children:x},A)]}):(0,E.jsx)("div",{"data-current":!0,ref:j,children:x},A),(0,i.useIsoLayoutEffect)(()=>{let e=_.current;e&&L&&e.replaceChildren(...Array.from(L.childNodes))},[L]),!function(e){let{popupElement:n,positionerElement:r,content:a,mounted:c,enabled:d=p,onMeasureLayout:b,onMeasureLayoutComplete:E,side:y,direction:S}=e,x=(0,l.useAnimationsFinished)(n,!0,!1),R=(0,o.useAnimationFrame)(),C=t.useRef(null),w=t.useRef(null),T=t.useRef(!0),I=t.useRef(u.NOOP),O=(0,s.useStableCallback)(b),k=(0,s.useStableCallback)(E),M=t.useMemo(()=>{let e="top"===y,t="left"===y;return"rtl"===S?(e=e||"inline-end"===y,t=t||"inline-end"===y):(e=e||"inline-start"===y,t=t||"inline-start"===y),e?{position:"absolute",["top"===y?"bottom":"top"]:"0",[t?"right":"left"]:"0"}:u.EMPTY_OBJECT},[y,S]);(0,i.useIsoLayoutEffect)(()=>{if(!c||!d()||"function"!=typeof ResizeObserver){I.current=u.NOOP,T.current=!0,C.current=null,w.current=null;return}if(!n||!r)return;I.current=m(n,M);let e=new ResizeObserver(e=>{let t=e[0];t&&(w.current={width:Math.ceil(t.borderBoxSize[0].inlineSize),height:Math.ceil(t.borderBoxSize[0].blockSize)})});e.observe(n),h(n,"auto");let t=g(n,"position","static"),o=g(n,"transform","none"),i=g(n,"scale","1"),s=m(r,{"--available-width":"max-content","--available-height":"max-content"});function a(){t(),o(),s(),i()}if(O?.(),T.current||null===C.current){v(r,"max-content");let t=f(n);return C.current=t,v(r,t),a(),k?.(null,t),T.current=!1,()=>{e.disconnect(),I.current(),I.current=u.NOOP}}h(n,"auto"),v(r,"max-content");let l=C.current??w.current,p=f(n);if(C.current=p,!l)return v(r,p),a(),k?.(null,p),()=>{e.disconnect(),R.cancel(),I.current(),I.current=u.NOOP};h(n,l),a(),k?.(l,p),v(r,p);let b=new AbortController;return R.request(()=>{h(n,p),x(()=>{n.style.setProperty("--popup-width","auto"),n.style.setProperty("--popup-height","auto")},b.signal)}),()=>{e.disconnect(),b.abort(),R.cancel(),I.current(),I.current=u.NOOP}},[a,n,r,x,R,d,c,O,k,M])}({popupElement:k,positionerElement:M,mounted:O,content:I,onMeasureLayout:z,onMeasureLayoutComplete:G,side:y,direction:R}),{children:c,state:{activationDirection:function(e){if(e){var t,n;return`${(t=e.horizontal)>5?"right":t<-5?"left":""} ${(n=e.vertical)>5?"down":n<-5?"up":""}`}}(F),transitioning:q}}}],655932)},797377,e=>{"use strict";var t=e.i(120650);e.s(["CheckIcon",()=>t.default])},755146,e=>{"use strict";var t,n,r,o=e.i(223837);e.s([],199908),e.i(199908),e.i(912123);var i=e.i(405296),s=e.i(377852);let a=i.createContext(void 0);function l(e){let t=i.useContext(a);if(void 0===t&&!e)throw Error((0,s.default)(33));return t}let u=i.createContext(void 0);function c(e){let t=i.useContext(u);if(void 0===t&&!e)throw Error((0,s.default)(36));return t}var d=e.i(561893),f=e.i(783827);let p=i.forwardRef(function(e,t){let{className:n,render:r,style:o,...i}=e,{store:s}=c(),{arrowRef:a,side:u,align:p,arrowUncentered:g,arrowStyles:m}=l(),h=s.useState("open");return(0,d.useRenderElement)("div",e,{ref:[a,t],stateAttributesMapping:f.popupStateMapping,state:{open:h,side:u,align:p,uncentered:g},props:{style:m,"aria-hidden":!0,...i}})});var g=e.i(507248);let m=i.createContext(void 0);function h(e=!0){let t=i.useContext(m);if(void 0===t&&!e)throw Error((0,s.default)(25));return t}var v=e.i(775632);let b={...f.popupStateMapping,...g.transitionStatusMapping},E=i.forwardRef(function(e,t){let{className:n,render:r,style:o,...i}=e,{store:s}=c(),a=s.useState("open"),l=s.useState("mounted"),u=s.useState("transitionStatus"),f=s.useState("lastOpenChangeReason"),p=h();return(0,d.useRenderElement)("div",e,{ref:p?.backdropRef?[t,p.backdropRef]:t,state:{open:a,transitionStatus:u},stateAttributesMapping:b,props:[{role:"presentation",hidden:!l,style:{pointerEvents:f===v.REASONS.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},i]})});var y=e.i(470009),S=e.i(248444);let x=i.createContext(void 0);var R=e.i(358635),C=e.i(168860),w=e.i(373501),T=e.i(475874);function I(e){let{closeOnClick:t,highlighted:n,id:r,nodeId:o,store:s,typingRef:a,itemRef:l,itemMetadata:u}=e,{events:c}=s.useState("floatingTreeRoot"),d=h(!0),f=void 0!==d;return i.useMemo(()=>({id:r,role:"menuitem",tabIndex:n?0:-1,onKeyDown(e){" "===e.key&&a?.current&&e.preventDefault()},onMouseMove(e){o&&c.emit("itemhover",{nodeId:o,target:e.currentTarget})},onClick(e){t&&c.emit("close",{domEvent:e,reason:v.REASONS.itemPress})},onMouseUp(e){if(d){let t=d.initialCursorPointRef.current;if(d.initialCursorPointRef.current=null,f&&t&&1>=Math.abs(e.clientX-t.x)&&1>=Math.abs(e.clientY-t.y)||f&&!T.isMac&&2===e.button)return}l.current&&s.context.allowMouseUpTriggerRef.current&&(!f||2===e.button)&&(!u||"regular-item"===u.type)&&l.current.click()}}),[t,n,r,c,o,s,a,l,d,f,u])}let O={type:"regular-item"};function k(e){let{closeOnClick:t,disabled:n=!1,highlighted:r,id:o,store:s,typingRef:a=s.context.typingRef,nativeButton:l,itemMetadata:u,nodeId:c}
1=e,d=i.useRef(null),{getButtonProps:f,buttonRef:p}=(0,C.useButton)({disabled:n,focusableWhenDisabled:!0,native:l,composite:!0}),g=I({closeOnClick:t,highlighted:r,id:o,nodeId:c,store:s,typingRef:a,itemRef:d,itemMetadata:u}),m=i.useCallback(e=>(0,w.mergeProps)(g,{onMouseEnter(){"submenu-trigger"===u.type&&u.setActive()}},e,f),[g,f,u]),h=(0,R.useMergedRefs)(d,p);return i.useMemo(()=>({getItemProps:m,itemRef:h}),[m,h])}var M=e.i(913224);let P=i.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}}),A=((t={})[t.None=0]="None",t[t.GuessFromOrder=1]="GuessFromOrder",t);function N(e={}){let{label:t,metadata:n,textRef:r,indexGuessBehavior:o,index:s}=e,{register:a,unregister:l,subscribeMapChange:u,elementsRef:c,labelsRef:d,nextIndexRef:f}=i.useContext(P),p=i.useRef(-1),[g,m]=i.useState(s??(o===A.GuessFromOrder?()=>{if(-1===p.current){let e=f.current;f.current+=1,p.current=e}return p.current}:-1)),h=i.useRef(null),v=i.useCallback(e=>{if(h.current=e,-1!==g&&null!==e&&(c.current[g]=e,d)){let n=void 0!==t;d.current[g]=n?t:r?.current?.textContent??e.textContent}},[g,c,d,t,r]);return(0,M.useIsoLayoutEffect)(()=>{if(null!=s)return;let e=h.current;if(e)return a(e,n),()=>{l(e)}},[s,a,l,n]),(0,M.useIsoLayoutEffect)(()=>{if(null==s)return u(e=>{let t=h.current?e.get(h.current)?.index:null;null!=t&&m(t)})},[s,u,m]),i.useMemo(()=>({ref:v,index:g}),[g,v])}var L=e.i(330796);let D=((n={}).checked="data-checked",n.unchecked="data-unchecked",n.disabled="data-disabled",n.highlighted="data-highlighted",n),F={checked:e=>e?{[D.checked]:""}:{[D.unchecked]:""},...g.transitionStatusMapping};var W=e.i(17301);let j=i.forwardRef(function(e,t){let{render:n,className:r,id:s,label:a,nativeButton:u=!1,disabled:f=!1,closeOnClick:p=!1,checked:g,defaultChecked:m,onCheckedChange:h,style:b,...E}=e,R=N({label:a}),C=l(!0),w=(0,L.useBaseUiId)(s),{store:T}=c(),I=T.useState("isActive",R.index),M=T.useState("itemProps"),[P,A]=(0,S.useControlled)({controlled:g,default:m??!1,name:"MenuCheckboxItem",state:"checked"}),{getItemProps:D,itemRef:j}=k({closeOnClick:p,disabled:f,highlighted:I,id:w,store:T,nativeButton:u,nodeId:C?.context.nodeId,itemMetadata:O}),_=i.useMemo(()=>({disabled:f,highlighted:I,checked:P}),[f,I,P]),H=(0,y.useStableCallback)(e=>{let t={...(0,W.createChangeEventDetails)(v.REASONS.itemPress,e.nativeEvent),preventUnmountOnClose:()=>{}};h?.(!P,t),t.isCanceled||A(e=>!e)}),B=(0,d.useRenderElement)("div",e,{state:_,stateAttributesMapping:F,props:[M,{role:"menuitemcheckbox","aria-checked":P,onClick:H},E,D],ref:[j,t,R.ref]});return(0,o.jsx)(x.Provider,{value:_,children:B})});var _=e.i(692685),H=e.i(93036);let B=i.forwardRef(function(e,t){let{render:n,className:r,style:o,keepMounted:a=!1,...l}=e,u=function(){let e=i.useContext(x);if(void 0===e)throw Error((0,s.default)(30));return e}(),c=i.useRef(null),{transitionStatus:f,setMounted:p}=(0,_.useTransitionStatus)(u.checked);(0,H.useOpenChangeComplete)({open:u.checked,ref:c,onComplete(){u.checked||p(!1)}});let g={checked:u.checked,disabled:u.disabled,highlighted:u.highlighted,transitionStatus:f};return(0,d.useRenderElement)("span",e,{state:g,ref:[t,c],stateAttributesMapping:F,props:{"aria-hidden":!0,...l},enabled:a||u.checked})}),V=i.createContext(void 0),U=i.forwardRef(function(e,t){let{render:n,className:r,style:s,...a}=e,[l,u]=i.useState(void 0),c=i.useMemo(()=>({setLabelId:u}),[u]),f=(0,d.useRenderElement)("div",e,{ref:t,props:{role:"group","aria-labelledby":l,...a}});return(0,o.jsx)(V.Provider,{value:c,children:f})}),$=i.forwardRef(function(e,t){let{className:n,render:r,id:o,style:a,...l}=e,u=(0,L.useBaseUiId)(o),{setLabelId:c}=function(){let e=i.useContext(V);if(void 0===e)throw Error((0,s.default)(31));return e}();return(0,M.useIsoLayoutEffect)(()=>(c(u),()=>{c(void 0)}),[c,u]),(0,d.useRenderElement)("div",e,{ref:t,props:{id:u,role:"presentation",...l}})}),Y=i.forwardRef(function(e,t){let{render:n,className:r,id:o,label:i,nativeButton:s=!1,disabled:a=!1,closeOnClick:u=!0,style:f,...p}=e,g=N({label:i}),m=l(!0),h=(0,L.useBaseUiId)(o),{store:v}=c(),b=v.useState("isActive",g.index),E=v.useState("itemProps"),{getItemProps:y,itemRef:S}=k({closeOnClick:u,disabled:a,highlighted:b,id:h,store:v,nativeButton:s,nodeId:m?.context.nodeId,itemMetadata:O});return(0,d.useRenderElement)("div",e,{state:{disabled:a,highlighted:b},props:[E,p,y],ref:[S,t,g.ref]})}),z=i.forwardRef(function(e,t){let{render:n,className:r,id:o,label:s,closeOnClick:a=!1,style:u,...f}=e,p=i.useRef(null),g=N({label:s}),m=l(!0),h=m?.context.nodeId,v=(0,L.useBaseUiId)(o),{store:b}=c(),E=b.useState("isActive",g.index),y=b.useState("itemProps"),S=b.context.typingRef,{getButtonProps:x,buttonRef:R}=(0,C.useButton)({native:!1,composite:!0}),T=I({closeOnClick:a,highlighted:E,id:v,nodeId:h,store:b,typingRef:S,itemRef:p}),O=i.useMemo(()=>({highlighted:E}),[E]);return(0,d.useRenderElement)("a",e,{state:O,props:[y,f,function(e){return(0,w.mergeProps)(T,e,x)}],ref:[p,R,t,g.ref]})});var G=e.i(424258),K=e.i(605068);let q=i.createContext(void 0);var X=e.i(717914),J=e.i(72213);let Q={...f.popupStateMapping,...g.transitionStatusMapping},Z=i.forwardRef(function(e,t){let{render:n,className:r,style:a,finalFocus:u,...f}=e,{store:p}=c(),{side:g,align:m}=l(),h=null!=function(e){let t=i.useContext(q);if(void 0===t&&!e)throw Error((0,s.default)(69));return t}
1(!0),b=p.useState("open"),E=p.useState("transitionStatus"),y=p.useState("popupProps"),S=p.useState("mounted"),x=p.useState("instantType"),R=p.useState("activeTriggerElement"),C=p.useState("parent"),w=p.useState("lastOpenChangeReason"),T=p.useState("rootId"),I=p.useState("floatingRootContext"),O=p.useState("floatingTreeRoot"),k=p.useState("closeDelay"),M=p.useState("activeTriggerElement"),P="context-menu"===C.type;(0,H.useOpenChangeComplete)({open:b,ref:p.context.popupRef,onComplete(){b&&p.context.onOpenChangeComplete?.(!0)}}),i.useEffect(()=>{function e(e){p.setOpen(!1,(0,W.createChangeEventDetails)(e.reason,e.domEvent))}return O.events.on("close",e),()=>{O.events.off("close",e)}},[O.events,p]);let A=p.useState("hoverEnabled"),N=p.useState("disabled");(0,K.useHoverFloatingInteraction)(I,{enabled:A&&!N&&!P&&"menubar"!==C.type,closeDelay:k});let L={transitionStatus:E,side:g,align:m,open:b,nested:"menu"===C.type,instant:x},D=i.useCallback(e=>{p.set("popupElement",e)},[p]),F=(0,d.useRenderElement)("div",e,{state:L,ref:[t,p.context.popupRef,D],stateAttributesMapping:Q,props:[y,{onKeyDown(e){h&&X.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()}},(0,J.getDisabledMountTransitionStyles)(E),f,{"data-rootownerid":T}]}),j=void 0===C.type||P;return(R||"menubar"===C.type&&w!==v.REASONS.outsidePress)&&(j=!0),(0,o.jsx)(G.FloatingFocusManager,{context:I,modal:P,disabled:!S,returnFocus:void 0===u?j:u,initialFocus:"menu"!==C.type,restoreFocus:!0,externalTree:"menubar"!==C.type?O:void 0,previousFocusableElement:M,nextFocusableElement:void 0===C.type?p.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:void 0===C.type?p.context.beforeContentFocusGuardRef:void 0,children:F})});var ee=e.i(672117);let et=i.createContext(void 0),en=i.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=c();return i.useState("mounted")||n?(0,o.jsx)(et.Provider,{value:n,children:(0,o.jsx)(ee.FloatingPortal,{ref:t,...r})}):null});var er=e.i(624493),eo=e.i(994294),ei=e.i(985975),es=e.i(532259),ea=e.i(218660);function el(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:s}=e,a=(0,y.useStableCallback)(s),l=i.useRef(0),u=(0,ea.useRefWithInit)(ec).current,c=(0,ea.useRefWithInit)(eu).current,[d,f]=i.useState(0),p=i.useRef(d),g=(0,y.useStableCallback)((e,t)=>{c.set(e,t??null),p.current+=1,f(p.current)}),m=(0,y.useStableCallback)(e=>{c.delete(e),p.current+=1,f(p.current)}),h=i.useMemo(()=>{let e=new Map;return Array.from(c.keys()).filter(e=>
1e.isConnected).sort(ed).forEach((t,n)=>{let r=c.get(t)??{};e.set(t,{...r,index:n})}),e},[c,d]);(0,M.useIsoLayoutEffect)(()=>{if("function"!=typeof MutationObserver||0===h.size)return;let e=new MutationObserver(e=>{let t=new Set,n=e=>t.has(e)?t.delete(e):t.add(e);e.forEach(e=>{e.removedNodes.forEach(n),e.addedNodes.forEach(n)}),0===t.size&&(p.current+=1,f(p.current))});return h.forEach((t,n)=>{n.parentElement&&e.observe(n.parentElement,{childList:!0})}),()=>{e.disconnect()}},[h]),(0,M.useIsoLayoutEffect)(()=>{p.current===d&&(n.current.length!==h.size&&(n.current.length=h.size),r&&r.current.length!==h.size&&(r.current.length=h.size),l.current=h.size),a(h)},[a,h,n,r,d]),(0,M.useIsoLayoutEffect)(()=>()=>{n.current=[]},[n]),(0,M.useIsoLayoutEffect)(()=>()=>{r&&(r.current=[])},[r]);let v=(0,y.useStableCallback)(e=>(u.add(e),()=>{u.delete(e)}));(0,M.useIsoLayoutEffect)(()=>{u.forEach(e=>e(h))},[u,h]);let b=i.useMemo(()=>({register:g,unregister:m,subscribeMapChange:v,elementsRef:n,labelsRef:r,nextIndexRef:l}),[g,m,v,n,r,l]);return(0,o.jsx)(P.Provider,{value:b,children:t})}function eu(){return new Map}function ec(){return new Set}function ed(e,t){let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}var ef=e.i(852686),ep=e.i(210277),eg=e.i(300844),em=e.i(843554),eh=e.i(786012),ev=e.i(508943),eb=e.i(767175);let eE=i.forwardRef(function(e,t){let{anchor:n,positionMethod:r="absolute",className:l,render:u,side:d,align:f,sideOffset:p=0,alignOffset:g=0,collisionBoundary:m="clipping-ancestors",collisionPadding:b=5,arrowPadding:E=5,sticky:y=!1,disableAnchorTracking:S=!1,collisionAvoidance:x=ep.DROPDOWN_COLLISION_AVOIDANCE,style:R,...C}=e,{store:w}=c(),T=function(){let e=i.useContext(et);if(void 0===e)throw Error((0,s.default)(32));return e}(),I=h(!0),O=w.useState("parent"),k=w.useState("floatingRootContext"),P=w.useState("floatingTreeRoot"),A=w.useState("mounted"),N=w.useState("open"),L=w.useState("modal"),D=w.useState("openMethod"),F=w.useState("activeTriggerElement"),j=w.useState("transitionStatus"),_=w.useState("positionerElement"),H=w.useState("instantType"),B=w.useState("hasViewport"),V=w.useState("lastOpenChangeReason"),U=w.useState("floatingNodeId"),$=w.useState("floatingParentNodeId"),Y=k.useState("domReferenceElement"),z=i.useRef(null),G=(0,em.useAnimationsFinished)(_,!1,!1),K=n,q=p,X=g,J=f,Q=x;"context-menu"===O.type&&(K=n??O.context?.anchor,J=J??"start",d||"center"===J||(X=e.alignOffset??2,q=e.sideOffset??-5));let Z=d,ee=J;"menu"===O.type?(Z=Z??"inline-end",ee=ee??"start",Q=e.collisionAvoidance??ep.POPUP_COLLISION_AVOIDANCE):"menubar"===O.type&&(Z=Z??"bottom",ee=ee??"start");let en="context-menu"===O.type,ea=(0,es.useAnchorPositioning)({anchor:K,floatingRootContext:k,positionMethod:I?"fixed":r,mounted:A,side:Z,sideOffset:q,align:ee,alignOffset:X,arrowPadding:en?0:E,collisionBoundary:m,collisionPadding:b,sticky:y,nodeId:U,keepMounted:T,disableAnchorTracking:S,collisionAvoidance:Q,shiftCrossAxis:en&&!("side"in Q&&"flip"===Q.side),externalTree:P,adaptiveOrigin:B?eg.adaptiveOrigin:void 0});i.useEffect(()=>{function e(e){e.open&&(e.parentNodeId===U&&w.set("hoverEnabled",!1),e.nodeId!==U&&e.parentNodeId===w.select("floatingParentNodeId")&&w.setOpen(!1,(0,W.createChangeEventDetails)(v.REASONS.siblingOpen)))}return P.events.on("menuopenchange",e),()=>{P.events.off("menuopenchange",e)}},[w,P.events,U]),i.useEffect(()=>{if(null!=w.select("floatingParentNodeId"))return P.events.on("menuopenchange",e),()=>{P.events.off("menuopenchange",e)};function e(e){if(e.open||e.nodeId!==w.select("floatingParentNodeId"))return;let t=e.reason??v.REASONS.siblingOpen;w.setOpen(!1,(0,W.createChangeEventDetails)(t))}},[P.events,w]);let eu=(0,eo.useTimeout)();i.useEffect(()=>{N||eu.clear()},[N,eu]),i.useEffect(()=>{function e(e){if(N&&e.nodeId===w.select("floatingParentNodeId"))if(e.target&&F&&F!==e.target){let e=w.select("closeDelay");e>0?eu.isStarted()||eu.start(e,()=>{w.setOpen(!1,(0,W.createChangeEventDetails)(v.REASONS.siblingOpen))}):w.setOpen(!1,(0,W.createChangeEventDetails)(v.REASONS.siblingOpen))}else eu.clear()}return P.events.on("itemhover",e),()=>{P.events.off("itemhover",e)}},[P.events,N,F,w,eu]),i.useEffect(()=>{let e={open:N,nodeId:U,parentNodeId:$,reason:w.select("lastOpenChangeReason")};P.events.emit("menuopenchange",e)},[P.events,N,w,U,$]),(0,M.useIsoLayoutEffect)(()=>{let e=z.current;if(Y&&(z.current=Y),e&&Y&&Y!==e){w.set("instantType",void 0);let e=new AbortController;return G(()=>{w.set("instantType","trigger-change")},e.signal),()=>{e.abort()}}},[Y,G,w]);let ec={open:N,side:ea.side,align:ea.align,anchorHidden:ea.anchorHidden,nested:"menu"===O.type,instant:H},ed="menubar"===O.type&&O.context.modal,eE=L&&V!==v.REASONS.triggerHover;!function(e,t,n,r){let[o,s]=i.useState(!1);(0,M.useIsoLayoutEffect)(()=>
1{if(!e||!t||null==n)return void s(!1);let r=(0,ev.ownerDocument)(n).documentElement.clientWidth,o=n.offsetWidth;s(r>0&&o>0&&o>=r-20)},[e,t,n]),(0,eb.useScrollLock)(e&&(!t||o),r)}(N&&(ed||eE),"touch"===D,_,F);let ey=(0,eh.usePositioner)(e,ec,{styles:ea.positionerStyles,transitionStatus:j,props:C,refs:[t,w.useStateSetter("positionerElement")],hidden:!A,inert:!N}),eS=A&&"menu"!==O.type&&("menubar"!==O.type&&L&&V!==v.REASONS.triggerHover||"menubar"===O.type&&O.context.modal),ex=null;return"menubar"===O.type?ex=O.context.contentElement:void 0===O.type&&(ex=F),(0,o.jsxs)(a.Provider,{value:ea,children:[eS&&(0,o.jsx)(ef.InternalBackdrop,{ref:"context-menu"===O.type||"nested-context-menu"===O.type?O.context.internalBackdropRef:null,inert:(0,er.inertValue)(!N),cutout:ex}),(0,o.jsx)(ei.FloatingNode,{id:U,children:(0,o.jsx)(el,{elementsRef:w.context.itemDomElements,labelsRef:w.context.itemLabels,children:ey})})]})}),ey=i.createContext(void 0),eS=i.memo(i.forwardRef(function(e,t){let{render:n,className:r,value:s,defaultValue:a,onValueChange:l,disabled:u=!1,style:c,...f}=e,[p,g]=(0,S.useControlled)({controlled:s,default:a,name:"MenuRadioGroup"}),m=(0,y.useStableCallback)(l),h=(0,y.useStableCallback)((e,t)=>{m?.(e,t),t.isCanceled||g(e)}),v=(0,d.useRenderElement)("div",e,{state:{disabled:u},ref:t,props:{role:"group","aria-disabled":u||void 0,...f}}),b=i.useMemo(()=>({value:p,setValue:h,disabled:u}),[p,h,u]);return(0,o.jsx)(ey.Provider,{value:b,children:v})})),ex=i.createContext(void 0),eR=i.forwardRef(function(e,t){let{render:n,className:r,id:a,label:u,nativeButton:f=!1,disabled:p=!1,closeOnClick:g=!1,value:m,style:h,...b}=e,E=N({label:u}),S=l(!0),x=(0,L.useBaseUiId)(a),{store:R}=c(),C=R.useState("isActive",E.index),w=R.useState("itemProps"),{value:T,setValue:I,disabled:M}=function(){let e=i.useContext(ey);if(void 0===e)throw Error((0,s.default)(34));return e}(),P=M||p,A=T===m,{getItemProps:D,itemRef:j}=k({closeOnClick:g,disabled:P,highlighted:C,id:x,store:R,nativeButton:f,nodeId:S?.context.nodeId,itemMetadata:O}),_=i.useMemo(()=>({disabled:P,highlighted:C,checked:A}),[P,C,A]),H=(0,y.useStableCallback)(e=>{I(m,{...(0,W.createChangeEventDetails)(v.REASONS.itemPress,e.nativeEvent),preventUnmountOnClose:()=>{}})}),B=(0,d.useRenderElement)("div",e,{state:_,stateAttributesMapping:F,props:[w,{role:"menuitemradio","aria-checked":A,onClick:H},b,D],ref:[j,t,E.ref]});return(0,o.jsx)(ex.Provider,{value:_,children:B})}),eC=i.forwardRef(function(e,t){let{render:n,className:r,style:o,keepMounted:a=!1,...l}=e,u=function(){let e=i.useContext(ex);if(void 0===e)throw Error((0,s.default)(35));return e}(),c=i.useRef(null),{transitionStatus:f,setMounted:p}=(0,_.useTransitionStatus)(u.checked);(0,H.useOpenChangeComplete)({open:u.checked,ref:c,onComplete(){u.checked||p(!1)}});let g={checked:u.checked,disabled:u.disabled,highlighted:u.highlighted,transitionStatus:f};return(0,d.useRenderElement)("span",e,{state:g,stateAttributesMapping:F,ref:[t,c],props:{"aria-hidden":!0,...l},enabled:a||u.checked})});var ew=e.i(816827),eT=e.i(981554),eI=e.i(749699),eO=e.i(20243),ek=e.i(251506),eM=e.i(847632),eP=e.i(92615),eA=e.i(726652),eN=e.i(971949),eL=e.i(917724),eD=e.i(978932),eF=e.i(78988),eW=e.i(938580),ej=e.i(718396);function e_(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function eH(e,t){return e_(t,e===ej.ARROW_UP||e===ej.ARROW_DOWN,e===ej.ARROW_LEFT||e===ej.ARROW_RIGHT)}function eB(e,t,n){return e_(t,e===ej.ARROW_DOWN,n?e===ej.ARROW_LEFT:e===ej.ARROW_RIGHT)||"Enter"===e||" "===e||""===e}var eV=e.i(364842),eU=e.i(536019);let e$=i.createContext(null);function eY(e){let t=i.useContext(e$);if(null===t&&!e)throw Error((0,s.default)(5));return t}var ez=e.i(501176),eG=e.i(939762),eK=e.i(175706),eq=e.i(7783),eX=e.i(416517),eJ=e.i(128909),eQ=e.i(27849);let eZ={...eJ.popupStoreSelectors,disabled:(0,eK.createSelector)(e=>"menubar"===e.parent.type&&e.parent.context.disabled||e.disabled),modal:(0,eK.createSelector)(e=>(void 0===e.parent.type||"context-menu"===e.parent.type)&&(e.modal??!0)),openMethod:(0,eK.createSelector)(e=>e.openMethod),allowMouseEnter:(0,eK.createSelector)(e=>e.allowMouseEnter),stickIfOpen:(0,eK.createSelector)(e=>e.stickIfOpen),parent:(0,eK.createSelector)(e=>e.parent),rootId:(0,eK.createSelector)(e=>"menu"===e.parent.type?e.parent.store.select("rootId"):void 0!==e.parent.type?e.parent.context.rootId:e.rootId),activeIndex:(0,eK.createSelector)(e=>e.activeIndex),isActive:(0,eK.createSelector)((e,t)=>e.activeIndex===t),hoverEnabled:(0,eK.createSelector)(e=>e.hoverEnabled),instantType:(0,eK.createSelector)(e=>e.instantType),lastOpenChangeReason:(0,eK.createSelector)(e=>e.openChangeReason),floatingTreeRoot:(0,eK.createSelector)(e=>"menu"===e.parent.type?e.parent.store.select("floatingTreeRoot"):e.floatingTreeRoot),floatingNodeId:(0,eK.createSelector)(e=>e.floatingNodeId),floatingParentNodeId:(0,eK.createSelector)(e=>e.floatingParentNodeId),itemProps:(0,eK.createSelector)(e=>e.itemProps),closeDelay:(0,eK.createSelector)(e=>e.closeDelay),hasViewport:(0,eK.createSelector)(e=>e.hasViewport),keyboardEventRelay:(0,eK.createSelector)(e=>e.keyboardEventRelay?e.keyboardEventRelay:"menu"===e.parent.type?e.parent.store.select("keyboardEventRelay"):void 0)};class e0 extends eq.ReactStore{constructor(e){super({...{...(0,eJ.createInitialPopupStoreState)(),disabled:!1,modal:!0,openMethod:null,allowMouseEnter:!1,stickIfOpen:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new eX.FloatingTreeStore,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:eI.EMPTY_OBJECT,keyboardEventRelay:void 0,closeDelay:0,hasViewport:!1},...e},{positionerRef:i.createRef(),popupRef:i.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1}
1,triggerFocusTargetRef:i.createRef(),beforeContentFocusGuardRef:i.createRef(),onOpenChangeComplete:void 0,triggerElements:new eQ.PopupTriggerMap},eZ),this.unsubscribeParentListener=this.observe("parent",e=>{if(this.unsubscribeParentListener?.(),"menu"===e.type){let t=e.store.select("rootId"),n=e.store.select("floatingTreeRoot"),r=e.store.select("keyboardEventRelay");this.unsubscribeParentListener=e.store.subscribe(()=>{let o=e.store.select("rootId"),i=e.store.select("floatingTreeRoot"),s=e.store.select("keyboardEventRelay");(t!==o||n!==i||r!==s)&&(t=o,n=i,r=s,this.notifyAll())}),this.context.allowMouseUpTriggerRef=e.store.context.allowMouseUpTriggerRef;return}void 0!==e.type&&(this.context.allowMouseUpTriggerRef=e.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(e,t){this.state.floatingRootContext.context.events.emit("setOpen",{open:e,eventDetails:t})}static useStore(e,t){let n=(0,ea.useRefWithInit)(()=>new e0(t)).current;return e??n}unsubscribeParentListener=null}var e1=e.i(82155);let e2=i.createContext(void 0);function e9(){return i.useContext(e2)}let e5=(0,eO.fastComponent)(function(e){let t,{children:n,open:r,onOpenChange:s,onOpenChangeComplete:a,defaultOpen:l=!1,disabled:d=!1,modal:f,loopFocus:p=!0,orientation:g="vertical",actionsRef:m,closeParentOnEsc:b=!1,handle:E,triggerId:S,defaultTr
1iggerId:x=null,highlightItemOnHover:R=!0}=e,C=h(!0),T=c(!0),I=eY(!0),O=e9(),k=i.useMemo(()=>O&&T?{type:"menu",store:T.store}:I?{type:"menubar",context:I}:C&&!T?{type:"context-menu",context:C}:{type:void 0},[C,T,I,O]),P=e0.useStore(E?.store,{open:l,openProp:r,activeTriggerId:x,triggerIdProp:S,parent:k});(0,eT.useOnFirstRender)(()=>{void 0===r&&!1===P.state.open&&!0===l&&P.update({open:!0,activeTriggerId:x})}),P.useControlledProp("openProp",r),P.useControlledProp("triggerIdProp",S),P.useContextCallback("onOpenChangeComplete",a);let A=P.useState("floatingTreeRoot"),N=(0,ei.useFloatingNodeId)(A),L=(0,ei.useFloatingParentNodeId)();(0,M.useIsoLayoutEffect)(()=>{C&&!T?P.update({parent:{type:"context-menu",context:C},floatingNodeId:N,floatingParentNodeId:L}):T&&P.update({floatingNodeId:N,floatingParentNodeId:L})},[C,T,N,L,P]);let D=P.useState("open"),F=P.useState("activeTriggerElement"),j=P.useState("positionerElement"),_=P.useState("hoverEnabled"),H=P.useState("disabled"),B=P.useState("lastOpenChangeReason"),V=P.useState("parent"),U=P.useState("activeIndex"),$=P.useState("payload"),Y=P.useState("floatingParentNodeId"),z=i.useRef(null),G=null!=Y,{openMethod:K,triggerProps:q}=(0,eG.useOpenInteractionType)(D);P.useSyncedValues({disabled:d,modal:void 0===V.type?f:void 0,openMethod:K,rootId:(0,ew.useId)()}),(0,e1.useImplicitActiveTrigger)(P);let{forceUnmount:X}=(0,e1.useOpenStateTransitions)(D,P,()=>{P.update({allowMouseEnter:!1,stickIfOpen:!0})}),J=i.useRef("context-menu"!==V.type),Q=(0,eo.useTimeout)();i.useEffect(()=>{if(D||(z.current=null),"context-menu"===V.type){if(!D){Q.clear(),J.current=!1;return}Q.start(500,()=>{J.current=!0})}},[Q,D,V.type]),(0,M.useIsoLayoutEffect)(()=>{D||_||P.set("hoverEnabled",!0)},[D,_,P]);let Z=i.useRef(!0),ee=(0,eo.useTimeout)(),et=(0,y.useStableCallback)((e,t)=>{let n=t.reason;if(D===e&&t.trigger===F&&B===n||(t.preventUnmountOnClose=()=>{P.set("preventUnmountingOnClose",!0)},e||null!=t.trigger||(t.trigger=F??void 0),s?.(e,t),t.isCanceled))return;P.state.floatingRootContext.dispatchOpenChange(e,t);let r=t.event;if(!1===e&&r?.type==="click"&&"touch"===r.pointerType&&!Z.current)return;if(!e&&null!==U){let e=P.context.itemDomElements.current[U];queueMicrotask(()=>{e?.setAttribute("tabindex","-1")})}e&&n===v.REASONS.triggerFocus?(Z.current=!1,ee.start(300,()=>{Z.current=!0})):(Z.current=!0,ee.clear());let o=(n===v.REASONS.triggerPress||n===v.REASONS.itemPress)&&0===r.detail&&r?.isTrusted,i=!e&&(n===v.REASONS.escapeKey||null==n),a={open:e,openChangeReason:n};z.current=t.event??null;let l=t.trigger?.id??null;(l||e)&&(a.activeTriggerId=l,a.activeTriggerElement=t.trigger??null),P.update(a),"menubar"===V.type&&(n===v.REASONS.triggerFocus||n===v.REASONS.focusOut||n===v.REASONS.triggerHover||n===v.REASONS.listNavigation||n===v.REASONS.siblingOpen)?P.set("instantType","group"):o||i?P.set("instantType",o?"click":"dismiss"):P.set("instantType",void 0)}),en=i.useCallback(e=>{let t=(0,W.createChangeEventDetails)(e);return t.preventUnmountOnClose=()=>{P.set("preventUnmountingOnClose",!0)},t},[P]),er=i.useCallback(()=>{P.setOpen(!1,en(v.REASONS.imperativeAction))},[P,en]);i.useImperativeHandle(m,()=>({unmount:X,close:er}),[X,er]),"context-menu"===V.type&&(t=V.context),i.useImperativeHandle(t?.positionerRef,()=>j,[j]),i.useImperativeHandle(t?.actionsRef,()=>({setOpen:et}),[et]);let es=(0,eU.useSyncedFloatingRootContext)({popupStore:P,onOpenChange:et}),ea=es.context.events;i.useEffect(()=>{let e=({open:e,eventDetails:t})=>et(e,t);return ea.on("setOpen",e),()=>{ea?.off("setOpen",e)}},[ea,et]);let el=(0,ek.useDismiss)(es,{enabled:!H,bubbles:{escapeKey:b&&"menu"===V.type},outsidePress:()=>"context-menu"!==V.type||z.current?.type==="contextmenu"||J.current,externalTree:G?A:void 0}),eu=(0,eV.useRole)(es,{role:"menu"}),ec=(0,ez.useDirection)(),ed=i.useCallback(e=>{P.select("activeIndex")!==e&&P.set("activeIndex",e)},[P]),ef=function(e,t){let n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingElement"),s=n.useState("domReferenceElement"),a=n.context.dataRef,{listRef:l,activeIndex:u,onNavigate:c=()=>{},enabled:d=!0,selectedIndex:f=null,allowEscape:p=!1,loopFocus:g=!1,nested:m=!1,rtl:h=!1,virtual:b=!1,focusItemOnOpen:E="auto",focusItemOnHover:S=!0,openOnArrowKeyDown:x=!0,disabledIndices:R,orientation:C="vertical",parentOrientation:w,cols:T=1,id:I,resetOnPointerLeave:O=!0,externalTree:k}=t,P=(0,eL.getFloatingFocusElement)(o),A=(0,eA.useValueAsRef)(P),N=(0,ei.useFloatingParentNodeId)(),L=(0,ei.useFloatingTree)(k);(0,M.useIsoLayoutEffect)(()=>{a.current.orientation=C},[a,C]);let D=(0,eL.isTypeableCombobox)(s),F=i.useRef(E),j=i.useRef(f??-1),_=i.useRef(null),H=i.useRef(!0),B=(0,y.useStableCallback)(e=>{c(-1===j.current?null:j.current,e)}),V=i.useRef(B),U=i.useRef(!!o),$=i.useRef(r),Y=i.useRef(!1),z=i.useRef(!1),G=i.useRef(null),K=(0,eA.useValueAsRef)(R),q=(0,eA.useValueAsRef)(r),X=(0,eA.useValueAsRef)(f),J=(0,eA.useValueAsRef)(O),Q=(0,y.useStableCallback)(()=>{function e(e){b?L?.events.emit("virtualfocus",e):G.current=(0,eW.enqueueFocus)(e,{sync:Y.current,preventScroll:!0})}let t=l.current[j.current],n=z.current;t&&e(t),(Y.current?e=>e():requestAnimationFrame)(()=>{let r=l.current[j.current]||t;!r||(t||e(r),et&&(n||!H.current)&&r.scrollIntoView?.({block:"nearest",inline:"nearest"}))})});(0,M.useIsoLayoutEffect)(()=>{d&&(r&&o?(j.current=f??-1,F.current&&null!=f&&(z.current=!0,B())):U.current&&(j.current=-1,V.current()))},[d,r,o,f,B]),(0,M.useIsoLayoutEffect)(()=>
1{if(d){if(!r){Y.current=!1;return}if(o)if(null==u){if(Y.current=!1,null!=X.current)return;if(U.current&&(j.current=-1,Q()),(!$.current||!U.current)&&F.current&&(null!=_.current||!0===F.current&&null==_.current)){let e=0,t=()=>{null==l.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e+=1):(j.current=null==_.current||eB(_.current,C,h)||m?(0,eF.getMinListIndex)(l):(0,eF.getMaxListIndex)(l),_.current=null,B())};t()}}else(0,eF.isIndexOutOfListBounds)(l.current,u)||(j.current=u,Q(),z.current=!1)}},[d,r,o,u,X,m,l,C,h,B,Q,K]),(0,M.useIsoLayoutEffect)(()=>{if(!d||o||!L||b||!U.current)return;let e=L.nodesRef.current,t=e.find(e=>e.id===N)?.context?.elements.floating,n=(0,eN.activeElement)((0,ev.ownerDocument)(o)),r=e.some(e=>e.context&&(0,eN.contains)(e.context.elements.floating,n));t&&!r&&H.current&&t.focus({preventScroll:!0})},[d,o,L,N,b]),(0,M.useIsoLayoutEffect)(()=>{V.current=B,$.current=r,U.current=!!o}),(0,M.useIsoLayoutEffect)(()=>{r||(_.current=null,F.current=E)},[r,E]);let Z=null!=u,ee=(0,y.useStableCallback)(e=>{if(!q.current)return;let t=l.current.indexOf(e.currentTarget);-1!==t&&(j.current!==t||u!==t)&&(j.current=t,B(e))}),et=i.useMemo(()=>({onFocus(e){Y.current=!0,ee(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){Y.current=!0,z.current=!1,S&&ee(e)},onPointerLeave(e){let t;if(!q.current||!H.current||"touch"===e.pointerType)return;Y.current=!0;let n=e.relatedTarget;if(!((t=e.currentTarget.getBoundingClientRect()).top+1<=e.clientY&&e.clientY<=t.bottom-1&&t.left+1<=e.clientX&&e.clientX<=t.right-1||!S||l.current.includes(n))&&J.current&&(G.current?.(),G.current=null,j.current=-1,B(e),!b)){let e=A.current,t=(0,eN.activeElement)((0,ev.ownerDocument)(e));e&&(0,eN.contains)(e,t)&&e.focus({preventScroll:!0})}}}),[ee,q,A,S,l,B,J,b]),en=i.useCallback(()=>w??L?.nodesRef.current.find(e=>e.id===N)?.context?.dataRef?.current.orientation,[N,L,w]),er=(0,y.useStableCallback)(e=>{var t;let o,i;if(H.current=!1,Y.current=!0,229===e.which||!q.current&&e.currentTarget===A.current)return;if(m&&(t=e.key,o=h?t===ej.ARROW_RIGHT:t===ej.ARROW_LEFT,i=t===ej.ARROW_UP,"both"===C||"horizontal"===C&&T&&T>1?"Escape"===t:e_(C,o,i))){eH(e.key,en())||(0,eD.stopEvent)(e),n.setOpen(!1,(0,W.createChangeEventDetails)(v.REASONS.listNavigation,e.nativeEvent)),(0,eP.isHTMLElement)(s)&&(b?L?.events.emit("virtualfocus",s):s.focus());return}let a=j.current,u=(0,eF.getMinListIndex)(l,R),c=(0,eF.getMaxListIndex)(l,R);if(D||("Home"===e.key&&((0,eD.stopEvent)(e),j.current=u,B(e)),"End"===e.key&&((0,eD.stopEvent)(e),j.current=c,B(e))),T>1){let t=Array.from({length:l.current.length},()=>({width:1,height:1})),n=(0,eF.createGridCellMap)(t,T,!1),r=n.findIndex(e=>null!=e&&!(0,eF.isListIndexDisabled)(l.current,e,R)),o=n.reduce((e,t,n)=>null==t||(0,eF.isListIndexDisabled)(l.current,t,R)?e:n,-1),i=n[(0,eF.getGridNavigatedIndex)(n.map(e=>null!=e?l.current[e]:null),{event:e,orientation:C,loopFocus:g,rtl:h,cols:T,disabledIndices:(0,eF.getGridCellIndices)([...("function"!=typeof R?R:null)||l.current.map((e,t)=>(0,eF.isListIndexDisabled)(l.current,t,R)?t:void 0),void 0],n),minIndex:r,maxIndex:o,prevIndex:(0,eF.getGridCellIndexOfCorner)(j.current>c?u:j.current,t,n,T,e.key===ej.ARROW_DOWN?"bl":e.key===(h?ej.ARROW_LEFT:ej.ARROW_RIGHT)?"tr":"tl"),stopEvent:!0})];if(null!=i&&(j.current=i,B(e)),"both"===C)return}if(eH(e.key,C)){if((0,eD.stopEvent)(e),r&&!b&&(0,eN.activeElement)(e.currentTarget.ownerDocument)===e.currentTarget){j.current=eB(e.key,C,h)?u:c,B(e);return}eB(e.key,C,h)?g?a>=c?p&&a!==l.current.length?j.current=-1:(Y.current=!1,j.current=u):j.current=(0,eF.findNonDisabledListIndex)(l.current,{startingIndex:a,disabledIndices:R}):j.current=Math.min(c,(0,eF.findNonDisabledListIndex)(l.current,{startingIndex:a,disabledIndices:R})):g?a<=u?p&&-1!==a?j.current=l.current.length:(Y.current=!1,j.current=c):j.current=(0,eF.findNonDisabledListIndex)(l.current,{startingIndex:a,decrement:!0,disabledIndices:R}):j.current=Math.max(u,(0,eF.findNonDisabledListIndex)(l.current,{startingIndex:a,decrement:!0,disabledIndices:R})),(0,eF.isIndexOutOfListBounds)(l.current,j.current)&&(j.current=-1),B(e)}}),eo=i.useMemo(()=>b&&r&&Z&&{"aria-activedescendant":`${I}-${u}`},[b,r,Z,I,u]),es=i.useMemo(()=>({"aria-orientation":"both"===C?void 0:C,...!D?eo:{},onKeyDown(e){if("Tab"===e.key&&e.shiftKey&&r&&!b){let t=(0,eN.getTarget)(e.nativeEvent);if(t&&!(0,eN.contains)(A.current,t))return;(0,eD.stopEvent)(e),n.setOpen(!1,(0,W.createChangeEventDetails)(v.REASONS.focusOut,e.nativeEvent)),(0,eP.isHTMLElement)(s)&&s.focus();return}er(e)},onPointerMove(){H.current=!0}}),[eo,er,A,C,D,n,r,b,s]),ea=i.useMemo(()=>{function e(e){"auto"===E&&(0,eD.isVirtualClick)(e.nativeEvent)&&(F.current=!b)}function t(e){F.current=E,"auto"===E&&(0,eD.isVirtualPointerEvent)(e.nativeEvent)&&(F.current=!0)}return{onKeyDown(e){var t,r;let o=n.select("open");H.current=!1;let i=e.key.startsWith("Arrow"),s=(t=e.key,r=en(),e_(r,h?t===ej.ARROW_LEFT:t===ej.ARROW_RIGHT,t===ej.ARROW_DOWN)),a=eH(e.key,C),u=(m?s:a)||"Enter"===e.key||""===e.key.trim();if(b&&o)return er(e);if(o||x||!i){if(u){let t=eH(e.key,en());_.current=m&&t?null:e.key}if(m){s&&((0,eD.stopEvent)(e),o?(j.current=(0,eF.getMinListIndex)(l,K.current),B(e)):n.setOpen(!0,(0,W.createChangeEventDetails)(v.REASONS.listNavigation,e.nativeEvent,e.currentTarget)));return}a&&(null!=X.current&&(j.current=X.current),(0,eD.stopEvent)(e),!o&&x?n.setOpen(!0,(0,W.createChangeEventDetails)(v.REASONS.listNavigation,e.nativeEvent,e.currentTarget)):er(e),o&&B(e))}},onFocus(e){n.select("open")&&!b&&(j.current=-1,B(e))},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[er,K,E,l,m,B,n,x,C,en,h,X,b]),el=i.useMemo(()=>({...eo,...ea}),[eo,ea]);return i.useMemo(()=>d?{reference:el,floating:es,item:et,trigger:ea}:{},[d,el,es,ea,et])}
1(es,{enabled:!H,listRef:P.context.itemDomElements,activeIndex:U,nested:void 0!==V.type,loopFocus:p,orientation:g,parentOrientation:"menubar"===V.type?V.context.orientation:void 0,rtl:"rtl"===ec,disabledIndices:eI.EMPTY_ARRAY,onNavigate:ed,openOnArrowKeyDown:"context-menu"!==V.type,externalTree:G?A:void 0,focusItemOnHover:R}),eg=i.useCallback(e=>{P.context.typingRef.current=e},[P]),em=function(e,t){let n="rootStore"in e?e.rootStore:e,r=n.context.dataRef,o=n.useState("open"),{listRef:s,elementsRef:a,activeIndex:l,onMatch:u,onTypingChange:c,enabled:d=!0,resetMs:f=750,selectedIndex:p=null}=t,g=(0,eo.useTimeout)(),m=i.useRef(""),h=i.useRef(p??l??-1),v=i.useRef(null);(0,M.useIsoLayoutEffect)(()=>{(o||null===p)&&(g.clear(),v.current=null,""!==m.current&&(m.current=""))},[o,p,g]),(0,M.useIsoLayoutEffect)(()=>{o&&""===m.current&&(h.current=p??l??-1)},[o,p,l]);let b=(0,y.useStableCallback)(e=>{e?r.current.typing||(r.current.typing=e,c?.(e)):r.current.typing&&(r.current.typing=e,c?.(e))}),E=(0,y.useStableCallback)(e=>{function t(e,n,r=0){if(0===e.length)return -1;let o=(r%e.length+e.length)%e.length,i=n.toLocaleLowerCase();for(let t=0;t<e.length;t+=1){let n=(o+t)%e.length,r=e[n];if(r?.toLocaleLowerCase().startsWith(i)&&function(e){let t=a?.current[e];return!t||(0,eF.isElementVisible)(t)}(n))return n}return -1}let n=s.current;if(m.current.length>0&&" "===e.key&&((0,eD.stopEvent)(e),b(!0)),m.current.length>0&&" "!==m.current[0]&&-1===t(n,m.current)&&" "!==e.key&&b(!1),null==n||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;o&&" "!==e.key&&((0,eD.stopEvent)(e),b(!0));let r=""===m.current;r&&(h.current=p??l??-1),n.every(e=>!e||e[0]?.toLocaleLowerCase()!==e[1]?.toLocaleLowerCase())&&m.current===e.key&&(m.current="",h.current=v.current),m.current+=e.key,g.start(f,()=>{m.current="",h.current=v.current,b(!1)});let i=r?p??l??-1:h.current,c=t(n,m.current,(i??0)+1);-1!==c?(u?.(c),v.current=c):" "!==e.key&&(m.current="",b(!1))}),S=(0,y.useStableCallback)(e=>{let t=e.relatedTarget,r=n.select("domReferenceElement"),o=n.select("floatingElement"),i=(0,eN.contains)(r,t),s=(0,eN.contains)(o,t);i||s||(g.clear(),m.current="",h.current=v.current,b(!1))}),x=i.useMemo(()=>({onKeyDown:E,onBlur:S}),[E,S]),R=i.useMemo(()=>({onKeyDown:E,onBlur:S}),[E,S]);return i.useMemo(()=>d?{reference:x,floating:R}:{},[d,x,R])}(es,{listRef:P.context.itemLabels,elementsRef:P.context.itemDomElements,activeIndex:U,resetMs:ep.TYPEAHEAD_RESET_MS,onMatch:e=>{D&&e!==U&&P.set("activeIndex",e)},onTypingChange:eg}),{getReferenceProps:eh,getFloatingProps:eb,getItemProps:eE,getTriggerProps:ey}=(0,eM.useInteractions)([el,eu,ef,em]),eS=i.useMemo(()=>{let e=(0,w.mergeProps)(eh(),{onMouseMove(){P.set("allowMouseEnter",!0)}},q);return delete e.role,e},[eh,P,q]),ex=i.useMemo(()=>{let e=ey();if(!e)return e;let t=(0,w.mergeProps)(e,q);return delete t.role,delete t["aria-controls"],t},[ey,q]),eR=i.useMemo(()=>eb({onMouseMove(){P.set("allowMouseEnter",!0),"menu"===V.type&&P.set("hoverEnabled",!1)},onClick(){P.select("hoverEnabled")&&P.set("hoverEnabled",!1)},onKeyDown(e){let t=P.select("keyboardEventRelay");t&&!e.isPropagationStopped()&&t(e)}}),[eb,V.type,P]),eC=i.useMemo(()=>eE(),[eE]);P.useSyncedValues({floatingRootContext:es,activeTriggerProps:eS,inactiveTriggerProps:ex,popupProps:eR,itemProps:eC});let eO=i.useMemo(()=>({store:P,parent:k}),[P,k]),e$=(0,o.jsx)(u.Provider,{value:eO,children:"function"==typeof n?n({payload:$}):n});return void 0===V.type||"context-menu"===V.type?(0,o.jsx)(ei.FloatingTree,{externalTree:A,children:e$}):e$});var e4=e.i(609050),e7=e.i(552292),e6=e.i(187489),e3=e.i(750277),e8=e.i(285182),te=e.i(187879);function tt(e){let{render:t,className:n,style:r,state:o=eI.EMPTY_OBJECT,props:s=eI.EMPTY_ARRAY,refs:a=eI.EMPTY_ARRAY,metadata:l,stateAttributesMapping:u,tag:c="div",...f}=e,{compositeProps:p,compositeRef:g}=function(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=(0,te.useCompositeRootContext)(),{ref:o,index:s}=N(e),a=n===s,l=i.useRef(null),u=(0,R.useMergedRefs)(o,l);return{compositeProps:i.useMemo(()=>({tabIndex:a?0:-1,onFocus(){r(s)},onMouseMove(){let e=l.current;if(!t||!e)return;let n=e.hasAttribute("disabled")||"true"===e.ariaDisabled;a||n||e.focus()}}),[a,r,s,t]),compositeRef:u,index:s}}({metadata:l});return(0,d.useRenderElement)(c,e,{state:o,ref:[...a,g],props:[p,...s,f],stateAttributesMapping:u})}var tn=e.i(320178),tr=e.i(286259),to=e.i(896339);let ti=(0,eO.fastComponentRef)(function(e,t){let n,r,a,l,u,{render:p,className:g,disabled:m=!1,nativeButton:b=!0,id:E,openOnHover:S,delay:x=100,closeDelay:R=0,handle:w,payload:T,style:I,...O}=e,k=c(!0),P=w?.store??k?.store;if(!P)throw Error((0,s.default)(85));let A=(0,L.useBaseUiId)(E),N=P.useState("isTriggerActive",A),D=P.useState("floatingRootContext"),F=P.useState("isOpenedByTrigger",A),j=i.useRef(null),_=(n=
1h(!0),r=c(!0),a=eY(!0),i.useMemo(()=>a?{type:"menubar",context:a}:n&&!r?{type:"context-menu",context:n}:{type:void 0},[n,r,a])),H=(0,te.useCompositeRootContext)(!0),B=(0,ei.useFloatingTree)(),V=i.useMemo(()=>B??new eX.FloatingTreeStore,[B]),U=(0,ei.useFloatingNodeId)(V),$=(0,ei.useFloatingParentNodeId)(),{registerTrigger:Y,isMountedByThisTrigger:z}=(0,e1.useTriggerDataForwarding)(A,j,P,{payload:T,closeDelay:R,parent:_,floatingTreeRoot:V,floatingNodeId:U,floatingParentNodeId:$,keyboardEventRelay:H?.relayKeyboardEvent}),G="menubar"===_.type,K=P.useState("disabled"),q=m||K||G&&_.context.disabled,{getButtonProps:X,buttonRef:J}=(0,C.useButton)({disabled:q,native:b});i.useEffect(()=>{F||void 0!==_.type||(P.context.allowMouseUpTriggerRef.current=!1)},[P,F,_.type]);let Q=i.useRef(null),Z=(0,eo.useTimeout)(),ee=(0,y.useStableCallback)(e=>{if(!Q.current)return;Z.clear(),P.context.allowMouseUpTriggerRef.current=!1;let t=e.target;if((0,eN.contains)(Q.current,t)||(0,eN.contains)(P.select("positionerElement"),t)||t===Q.current||null!=t&&function e(t){return(0,eP.isHTMLElement)(t)&&t.hasAttribute("data-rootownerid")?t.getAttribute("data-rootownerid")??void 0:(0,eP.isLastTraversableNode)(t)?void 0:e((0,eP.getParentNode)(t))}(t)===P.select("rootId"))return;let n=function(e){let t=e.getBoundingClientRect(),n=(0,e8.ownerWindow)(e),r=n.getComputedStyle(e,"::before"),o=n.getComputedStyle(e,"::after");if("none"===r.content&&"none"===o.content)return t;let i=parseFloat(r.width)||0,s=parseFloat(r.height)||0,a=parseFloat(o.width)||0,l=parseFloat(o.height)||0,u=Math.max(t.width,i,a),c=Math.max(t.height,s,l),d=u-t.width,f=c-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}(Q.current);e.clientX>=n.left-2&&e.clientX<=n.right+2&&e.clientY>=n.top-2&&e.clientY<=n.bottom+2||V.events.emit("close",{domEvent:e,reason:v.REASONS.cancelOpen})});i.useEffect(()=>{F&&P.select("lastOpenChangeReason")===v.REASONS.triggerHover&&(0,ev.ownerDocument)(Q.current).addEventListener("mouseup",ee,{once:!0})},[F,ee,P]);let et=G&&_.context.hasSubmenuOpen,en=S??et,er=(0,e3.useHoverReferenceInteraction)(D,{enabled:en&&!q&&"context-menu"!==_.type&&(!G||et&&!z),handleClose:(0,e4.safePolygon)({blockPointerEvents:!G}),mouseOnly:!0,move:!1,restMs:void 0===_.type?x:void 0,delay:{close:R},triggerElementRef:j,externalTree:V,isActiveTrigger:N,isClosing:()=>"ending"===P.select("transitionStatus")}),es=function(e,t){let n=(0,eo.useTimeout)(),[r,o]=i.useState(!1);return(0,M.useIsoLayoutEffect)(()=>{e&&"trigger-hover"===t?(o(!0),n.start(ep.PATIENT_CLICK_THRESHOLD,()=>{o(!1)})):e||(n.clear(),o(!1))},[e,t,n]),r}(F,P.select("lastOpenChangeReason")),ea=(0,e7.useClick)(D,{enabled:!q&&"context-menu"!==_.type,event:F&&G?"click":"mousedown",toggle:!0,ignoreMouse:!1,stickIfOpen:void 0===_.type&&es}),el=(0,e6.useFocus)(D,{enabled:!q&&et}),eu=function(e){let{enabled:t=!0,mouseDownAction:n,open:r}=e,o=i.useRef(!1);return i.useMemo(()=>t?{onMouseDown:e=>{("open"===n&&!r||"close"===n&&r)&&(o.current=!0,(0,ev.ownerDocument)(e.currentTarget).addEventListener("click",()=>{o.current=!1},{once:!0}))},onClick:e=>{o.current&&(o.current=!1,e.preventBaseUIHandler())}}:eI.EMPTY_OBJECT,[t,n,r])}({open:F,enabled:G,mouseDownAction:"open"}),ec=(0,eM.useInteractions)([ea,el]),ed={disabled:q,open:F},ef=P.useState("triggerProps",z),eg=[Q,t,J,Y,j],em=[ec.getReferenceProps(),er??eI.EMPTY_OBJECT,ef,{"aria-haspopup":"menu",id:A,onMouseDown:e=>{P.select("open")||(Z.start(200,()=>{P.context.allowMouseUpTriggerRef.current=!0}),(0,ev.ownerDocument)(e.currentTarget).addEventListener("mouseup",ee,{once:!0}))}},G?{role:"menuitem"}:{},eu,O,X],{preFocusGuardRef:eh,handlePreFocusGuardFocus:eb,handleFocusTargetFocus:eE}=(l=i.useRef(null),u=(0,y.useStableCallback)(e=>{tn.flushSync(()=>{P.setOpen(!1,(0,W.createChangeEventDetails)(v.REASONS.focusOut,e.nativeEvent,e.currentTarget))});let t=(0,tr.getTabbableBeforeElement)(l.current);t?.focus()}),{preFocusGuardRef:l,handlePreFocusGuardFocus:u,handleFocusTargetFocus:(0,y.useStableCallback)(e=>{let t=P.select("positionerElement");if(t&&(0,tr.isOutsideEvent)(e,t))P.context.beforeContentFocusGuardRef.current?.focus();else{tn.flushSync(()=>{P.setOpen(!1,(0,W.createChangeEventDetails)(v.REASONS.focusOut,e.nativeEvent,e.currentTarget))});let n=(0,tr.getTabbableAfterElement)(P.context.triggerFocusTargetRef.current||j.current);for(;
1null!==n&&(0,eN.contains)(t,n);){let e=n;if((n=(0,tr.getNextTabbable)(n))===e)break}n?.focus()}})}),ey=(0,d.useRenderElement)("button",e,{enabled:!G,stateAttributesMapping:f.pressableTriggerOpenStateMapping,state:ed,ref:eg,props:em});return G?(0,o.jsx)(tt,{tag:"button",render:p,className:g,style:I,state:ed,refs:eg,props:em,stateAttributesMapping:f.pressableTriggerOpenStateMapping}):F?(0,o.jsxs)(i.Fragment,{children:[(0,o.jsx)(to.FocusGuard,{ref:eh,onFocus:eb},`${A}-pre-focus-guard`),(0,o.jsx)(i.Fragment,{children:ey},A),(0,o.jsx)(to.FocusGuard,{ref:P.context.triggerFocusTargetRef,onFocus:eE},`${A}-post-focus-guard`)]}):(0,o.jsx)(i.Fragment,{children:ey},A)});var ts=e.i(655932);let ta=((r={}).popupWidth="--popup-width",r.popupHeight="--popup-height",r),tl={activationDirection:e=>e?{"data-activation-direction":e}:null},tu=i.forwardRef(function(e,t){let{render:n,className:r,style:o,children:i,...s}=e,{store:a}=c(),{side:u}=l(),f=a.useState("instantType"),{children:p,state:g}=(0,ts.usePopupViewport)({store:a,side:u,cssVars:ta,children:i}),m={activationDirection:g.activationDirection,transitioning:g.transitioning,instant:f};return(0,d.useRenderElement)("div",e,{state:m,ref:t,props:[s,{children:p}],stateAttributesMapping:tl})});var tc=e.i(449337);let td=i.forwardRef(function(e,t){let{render:n,className:r,label:o,id:a,nativeButton:u=!1,openOnHover:p=!0,delay:g=100,closeDelay:m=0,disabled:h=!1,style:v,...b}=e,E=N(),y=l(),{store:S}=c(),x=(0,L.useBaseUiId)(a),R=S.useState("open"),C=S.useState("floatingRootContext"),w=S.useState("floatingTreeRoot"),T=(0,e1.useTriggerRegistration)(x,S),I=i.useCallback(e=>{let t=T(e);return null!==e&&S.select("open")&&null==S.select("activeTriggerId")&&S.update({activeTriggerId:x,activeTriggerElement:e,closeDelay:m}),t},[T,m,S,x]),O=i.useRef(null),M=i.useCallback(e=>{O.current=e,S.set("activeTriggerElement",e)},[S]),P=e9();if(!P?.parentMenu)throw Error((0,s.default)(37));S.useSyncedValue("closeDelay",m);let A=P.parentMenu,D=A.useState("itemProps"),F=A.useState("isActive",E.index),W=i.useMemo(()=>({type:"submenu-trigger",setActive(){A.set("activeIndex",E.index)}}),[A,E.index]),j=S.useState("disabled"),_=h||j,{getItemProps:H,itemRef:B}=k({closeOnClick:!1,disabled:_,highlighted:F,id:x,store:S,typingRef:A.context.typingRef,nativeButton:u,itemMetadata:W,nodeId:y?.context.nodeId}),V=S.useState("hoverEnabled"),U=A.useState("allowMouseEnter"),$=(0,e3.useHoverReferenceInteraction)(C,{enabled:V&&p&&!_,handleClose:(0,e4.safePolygon)({blockPointerEvents:!0}),mouseOnly:!0,move:!0,restMs:g,delay:U?{open:g,close:m}:0,triggerElementRef:O,externalTree:w,isClosing:()=>"ending"===S.select("transitionStatus")}),Y=(0,e7.useClick)(C,{enabled:!_,event:"mousedown",toggle:!p,ignoreMouse:p,stickIfOpen:!1}),z=(0,eM.useInteractions)([Y]),G=S.useState("triggerProps",!0);return delete G.id,(0,d.useRenderElement)("div",e,{state:{disabled:_,highlighted:F,open:R},stateAttributesMapping:f.triggerOpenStateMapping,props:[z.getReferenceProps(),$,G,D,{tabIndex:R||F?0:-1,onBlur(){F&&A.set("activeIndex",null)}},b,H],ref:[t,E.ref,B,I,M]})});class tf{constructor(){this.store=new e0}open(e){let t=e?this.store.context.triggerElements.getById(e):void 0;if(e&&!t)throw Error((0,s.default)(83,e));this.store.setOpen(!0,(0,W.createChangeEventDetails)("imperative-action",void 0,t))}close(){this.store.setOpen(!1,(0,W.createChangeEventDetails)("imperative-action",void 0,void 0))}get isOpen(){return this.store.state.open}}e.s(["Arrow",0,p,"Backdrop",0,E,"CheckboxItem",0,j,"CheckboxItemIndicator",0,B,"Group",0,U,"GroupLabel",0,$,"Handle",0,tf,"Item",0,Y,"LinkItem",0,z,"Popup",0,Z,"Portal",0,en,"Positioner",0,eE,"RadioGroup",0,eS,"RadioItem",0,eR,"RadioItemIndicator",0,eC,"Root",0,e5,"Separator",()=>tc.Separator,"SubmenuRoot",0,function(e){let t=c().store,n=i.useMemo(()=>({parentMenu:t}),[t]);return(0,o.jsx)(e2.Provider,{value:n,children:(0,o.jsx)(e5,{...e})})},"SubmenuTrigger",0,td,"Trigger",0,ti,"Viewport",0,tu,"createHandle",0,function(){return new tf}],233295);var tp=e.i(233295),tp=tp,tg=e.i(975157);e.i(443390),e.i(797377),e.s(["DropdownMenu",0,function({...e}){return(0,o.jsx)(tp.Root,{"data-slot":"dropdown-menu",...e})},"DropdownMenuContent",0,function({align:e="start",alignOffset:t=0,side:n="bottom",sideOffset:r=4,className:i,...s}){return(0,o.jsx)(tp.Portal,{children:(0,o.jsx)(tp.Positioner,{className:"isolate z-50 outline-none",align:e,alignOffset:t,side:n,sideOffset:r,children:(0,o.jsx)(tp.Popup,{"data-slot":"dropdown-menu-content",className:(0,tg.cn)("z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground
1/10 duration-100 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:overflow-hidden data-closed:fade-out-0 data-closed:zoom-out-95",i),...s})})})},"DropdownMenuItem",0,function({className:e,inset:t,variant:n="default",...r}){return(0,o.jsx)(tp.Item,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:(0,tg.cn)("group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",e),...r})},"DropdownMenuSeparator",0,function({className:e,...t}){return(0,o.jsx)(tp.Separator,{"data-slot":"dropdown-menu-separator",className:(0,tg.cn)("-mx-1 my-1 h-px bg-border",e),...t})},"DropdownMenuTrigger",0,function({...e}){return(0,o.jsx)(tp.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}],755146)},946297,649016,631338,e=>{"use strict";let t;var n=e.i(223837),r=e.i(405296),o=e.i(819440);let i=(0,e.i(120848).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["ChevronDown",0,i],649016);var s=e.i(498227),a=e.i(152093),l=e.i(519455),u=e.i(755146),c=e.i(189811),d=e.i(262794);let f={en:{trigger:"Ask AI",openChatGpt:"Open in ChatGPT",openClaude:"Open in Claude",chatWith:e=>`Chat with ${e}`,copyPrompt:"Copy prompt",copyHint:"Paste into Gemini, Grok or any assistant"},es:{trigger:"Preguntar a la IA",openChatGpt:"Abrir en ChatGPT",openClaude:"Abrir en Claude",chatWith:e=>`Chatea con ${e}`,copyPrompt:"Copiar prompt",copyHint:"Pégalo en Gemini, Grok o cualquier asistente"}};e.s(["AskAI",0,function({prompt:e,scope:t,lang:p="en",align:g="end"}){let m=f[p],h=`https://chatgpt.com/?q=${encodeURIComponent(e)}`,v=`https://claude.ai/new?q=${encodeURIComponent(e)}`,[b,E]=(0,r.useState)(!1);return(0,n.jsxs)(u.DropdownMenu,{children:[(0,n.jsx)(u.DropdownMenuTrigger,{render:(0,n.jsxs)(l.Button,{variant:"outline",size:"sm",children:[(0,n.jsx)(a.Sparkles,{className:"size-3.5","aria-hidden":"true"}),m.trigger,(0,n.jsx)(i,{className:"size-3.5","aria-hidden":"true"})]})}),(0,n.jsxs)(u.DropdownMenuContent,{align:g,className:"min-w-72 p-1.5",children:[(0,n.jsxs)(u.DropdownMenuItem,{className:"items-start gap-3 rounded-md px-3 py-2.5",render:(0,n.jsx)("a",{href:h,target:"_blank",rel:"noreferrer"}),children:[(0,n.jsx)(c.ChatGptMark,{className:"mt-0.5 size-4 shrink-0 text-muted-foreground"}),(0,n.jsxs)("span",{className:"flex min-w-0 flex-col gap-0.5",children:[(0,n.jsx)("span",{className:"text-sm leading-none",children:m.openChatGpt}),(0,n.jsx)("span",{className:"text-xs leading-snug text-muted-foreground",children:m.chatWith(t)})]})]}),(0,n.jsxs)(u.DropdownMenuItem,{className:"items-start gap-3 rounded-md px-3 py-2.5",render:(0,n.jsx)("a",{href:v,target:"_blank",rel:"noreferrer"}),children:[(0,n.jsx)(c.ClaudeMark,{className:"mt-0.5 size-4 shrink-0 text-muted-foreground"}),(0,n.jsxs)("span",{className:"flex min-w-0 flex-col gap-0.5",children:[(0,n.jsx)("span",{className:"text-sm leading-none",children:m.openClaude}),(0,n.jsx)("span",{className:"text-xs leading-snug text-muted-foreground",children:m.chatWith(t)})]})]}),(0,n.jsx)(u.DropdownMenuSeparator,{}),(0,n.jsxs)(u.DropdownMenuItem,{onClick:()=>
1{(0,d.writeToClipboard)(e).then(e=>{e&&(E(!0),window.setTimeout(()=>E(!1),1500))})},className:"items-start gap-3 rounded-md px-3 py-2.5",children:[b?(0,n.jsx)(o.Check,{className:"mt-0.5 size-4 shrink-0 text-success-foreground","aria-hidden":"true"}):(0,n.jsx)(s.Copy,{className:"mt-0.5 size-4 shrink-0 text-muted-foreground","aria-hidden":"true"}),(0,n.jsxs)("span",{className:"flex min-w-0 flex-col gap-0.5",children:[(0,n.jsx)("span",{className:"text-sm leading-none",children:m.copyPrompt}),(0,n.jsx)("span",{className:"text-xs leading-snug text-muted-foreground",children:m.copyHint})]})]})]})]})}],946297);var p=e.i(912123);let g="production"===(t=(p.default.env.MCP_ENV??"").trim())||"develop"===t?t:"master"===(p.default.env.WORKERS_CI_BRANCH??p.default.env.CF_PAGES_BRANCH??"").trim()?"production":"develop",m=p.default.env.NEXT_PUBLIC_SITE_URL??({production:"https://docs.instasent.com",develop:"https://staging-instasent-docs-nextjs.oscar-284.workers.dev"})[g];e.s(["siteUrl",0,m],631338)}]);

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.