PageSourceSearch

https://pix.mundialnettelecom.com.br/assets/ui-916dc9d9.js

js mundialnettelecom.com.br collected 2026-09-24 14:35:09 UTC 289,588 bytes, 66 lines download raw bytes

1import{r as s,a as Le,R as L,$ as Ve,b as us}from"./vendor-aea060b0.js";var ds={exports:{}},kn={};/**
2 * @license React
3 * react-jsx-runtime.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var iu=s,su=Symbol.for("react.element"),au=Symbol.for("react.fragment"),lu=Object.prototype.hasOwnProperty,cu=iu.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,uu={key:!0,ref:!0,__self:!0,__source:!0};function fs(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)lu.call(t,r)&&!uu.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:su,type:e,key:i,ref:a,props:o,_owner:cu.current}}kn.Fragment=au;kn.jsx=fs;kn.jsxs=fs;ds.exports=kn;var y=ds.exports,ps={exports:{}},vs={};/**
10 * @license React
11 * use-sync-external-store-shim.production.js
12 *
13 * Copyright (c) Meta Platforms, Inc. and affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var Ct=s;function du(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var fu=typeof Object.is=="function"?Object.is:du,pu=Ct.useState,vu=Ct.useEffect,mu=Ct.useLayoutEffect,hu=Ct.useDebugValue;function gu(e,t){var n=t(),r=pu({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return mu(function(){o.value=n,o.getSnapshot=t,vr(o)&&i({inst:o})},[e,n,t]),vu(function(){return vr(o)&&i({inst:o}),e(function(){vr(o)&&i({inst:o})})},[e]),hu(n),n}function vr(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!fu(e,n)}catch{return!0}}function bu(e,t){return t()}var xu=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?bu:gu;vs.useSyncExternalStore=Ct.useSyncExternalStore!==void 0?Ct.useSyncExternalStore:xu;ps.exports=vs;var zw=ps.exports;function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},te.apply(null,arguments)}function vt(e,t,n){let r=n.initialDeps??[],o;function i(){var a,l,c,u;let d;n.key&&((a=n.debug)!=null&&a.call(n))&&(d=Date.now());const f=e();if(!(f.length!==r.length||f.some((h,v)=>r[v]!==h)))return o;r=f;let p;if(n.key&&((l=n.debug)!=null&&l.call(n))&&(p=Date.now()),o=t(...f),n.key&&((c=n.debug)!=null&&c.call(n))){const h=Math.round((Date.now()-d)*100)/100,v=Math.round((Date.now()-p)*100)/100,g=v/16,b=(x,w)=>{for(x=String(x);x.length<w;)x=" "+x;return x};console.info(`%c⏱ ${b(v,5)} /${b(h,5)} ms`,`
18            font-size: .6rem;
19            font-weight: bold;
20            color: hsl(${Math.max(0,Math.min(120-120*g,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(u=n==null?void 0:n.onChange)==null||u.call(n,o),o}return i.updateDeps=a=>{r=a},i}function ai(e,t){if(e===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return e}const wu=(e,t)=>Math.abs(e-t)<1.01,yu=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)}},li=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},Cu=e=>e,Eu=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let o=t;o<=n;o++)r.push(o);return r},Su=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const o=a=>{const{width:l,height:c}=a;t({width:Math.round(l),height:Math.round(c)})};if(o(li(n)),!r.ResizeObserver)return()=>{};const i=new r.ResizeObserver(a=>{const l=()=>{const c=a[0];if(c!=null&&c.borderBoxSize){const u=c.borderBoxSize[0];if(u){o({width:u.inlineSize,height:u.blockSize});return}}o(li(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},ci={passive:!0},ui=typeof window>"u"?!0:"onscrollend"in window,Ru=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let o=0;const i=e.options.useScrollendEvent&&ui?()=>{}:yu(r,()=>{t(o,!1)},e.options.isScrollingResetDelay),a=d=>()=>{const{horizontal:f,isRtl:m}=e.options;o=f?n.scrollLeft*(m&&-1||1):n.scrollTop,i(),t(o,d)},l=a(!0),c=a(!1);c(),n.addEventListener("scroll",l,ci);const u=e.options.useScrollendEvent&&ui;return u&&n.addEventListener("scrollend",c,ci),()=>{n.removeEventListener("scroll",l),u&&n.removeEventListener("scrollend",c)}}
20,$u=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},Pu=(e,{adjustments:t=0,behavior:n},r)=>{var o,i;const a=e+t;(i=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||i.call(o,{[r.options.horizontal?"left":"top"]:a,behavior:n})};class Tu{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(o=>{o.forEach(i=>{const a=()=>{this._measureElement(i.target,i)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(a):a()})}));return{disconnect:()=>{var o;(o=r())==null||o.disconnect(),n=null},observe:o=>{var i;return(i=r())==null?void 0:i.observe(o,{box:"border-box"})},unobserve:o=>{var i;return(i=r())==null?void 0:i.unobserve(o)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,o])=>{typeof o>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Cu,rangeExtractor:Eu,onChange:()=>{},measureElement:$u,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var r,o;(o=(r=this.options).onChange)==null||o.call(r,this,n)},this.maybeNotify=vt(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(o=>{this.observer.observe(o)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(o,i)=>{this.scrollAdjustments=0,this.scrollDirection=i?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o,this.isScrolling=i,this.maybeNotify()}))}}
20,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,r)=>{const o=new Map,i=new Map;for(let a=r-1;a>=0;a--){const l=n[a];if(o.has(l.lane))continue;const c=i.get(l.lane);if(c==null||l.end>c.end?i.set(l.lane,l):l.end<c.end&&o.set(l.lane,!0),o.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((a,l)=>a.end===l.end?a.index-l.index:a.end-l.end)[0]:void 0},this.getMeasurementOptions=vt(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,r,o,i,a)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:o,getItemKey:i,enabled:a}),{key:!1}),this.getMeasurements=vt(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:o,getItemKey:i,enabled:a},l)=>{if(!a)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(d=>{this.itemSizeCache.set(d.key,d.size)}));const c=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const u=this.measurementsCache.slice(0,c);for(let d=c;d<n;d++){const f=i(d),m=this.options.lanes===1?u[d-1]:this.getFurthestMeasurement(u,d),p=m?m.end+this.options.gap:r+o,h=l.get(f),v=typeof h=="number"?h:this.options.estimateSize(d),g=p+v,b=m?m.lane:d%this.options.lanes;u[d]={index:d,start:p,size:v,end:g,key:f,lane:b}}return this.measurementsCache=u,u},{key:!1,debug:()=>this.options.debug}),this.calculateRange=vt(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,r,o,i)=>this.range=n.length>0&&r>0?Ou({measurements:n,outerSize:r,scrollOffset:o,lanes:i}):null,{key:!1,debug:()=>this.options.debug}
20),this.getVirtualIndexes=vt(()=>{let n=null,r=null;const o=this.calculateRange();return o&&(n=o.startIndex,r=o.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,r]},(n,r,o,i,a)=>i===null||a===null?[]:n({startIndex:i,endIndex:a,overscan:r,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,o=n.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const o=this.indexFromElement(n),i=this.measurementsCache[o];if(!i)return;const a=i.key,l=this.elementsCache.get(a);l!==n&&(l&&this.observer.unobserve(l),this.observer.observe(n),this.elementsCache.set(a,n)),n.isConnected&&this.resizeItem(o,this.options.measureElement(n,r,this))},this.resizeItem=(n,r)=>{const o=this.measurementsCache[n];if(!o)return;const i=this.itemSizeCache.get(o.key)??o.size,a=r-i;a!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,a,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=a,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,r)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((r,o)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(o))});return}this._measureElement(n,void 0)},this.getVirtualItems=vt(()=>
20[this.getVirtualIndexes(),this.getMeasurements()],(n,r)=>{const o=[];for(let i=0,a=n.length;i<a;i++){const l=n[i],c=r[l];o.push(c)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return ai(r[ms(0,r.length-1,o=>ai(r[o]).start,n)])},this.getOffsetForAlignment=(n,r,o=0)=>{const i=this.getSize(),a=this.getScrollOffset();r==="auto"&&(r=n>=a+i?"end":"start"),r==="center"?n+=(o-i)/2:r==="end"&&(n-=i);const l=this.getTotalSize()+this.options.scrollMargin-i;return Math.max(Math.min(l,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const o=this.measurementsCache[n];if(!o)return;const i=this.getSize(),a=this.getScrollOffset();if(r==="auto")if(o.end>=a+i-this.options.scrollPaddingEnd)r="end";else if(o.start<=a+this.options.scrollPaddingStart)r="start";else return[a,r];const l=r==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(l,r,o.size),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(n,{align:r="start",behavior:o}={})=>{o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,r),{adjustments:void 0,behavior:o})},this.scrollToIndex=(n,{align:r="auto",behavior:o}={})=>{o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),n=Math.max(0,Math.min(n,this.options.count-1));let i=0;const a=10,l=u=>{if(!this.targetWindow)return;const d=this.getOffsetForIndex(n,u);if(!d){console.warn("Failed to get offset for index:",n);return}const[f,m]=d;this._scrollToOffset(f,{adjustments:void 0,behavior:o}),this.targetWindow.requestAnimationFrame(()=>{const p=this.getScrollOffset(),h=this.getOffsetForIndex(n,m);
20if(!h){console.warn("Failed to get offset for index:",n);return}wu(h[0],p)||c(m)})},c=u=>{this.targetWindow&&(i++,i<a?this.targetWindow.requestAnimationFrame(()=>l(u)):console.warn(`Failed to scroll to index ${n} after ${a} attempts.`))};l(r)},this.scrollBy=(n,{behavior:r}={})=>{r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let o;if(r.length===0)o=this.options.paddingStart;else if(this.options.lanes===1)o=((n=r[r.length-1])==null?void 0:n.end)??0;else{const i=Array(this.options.lanes).fill(null);let a=r.length-1;for(;a>=0&&i.some(l=>l===null);){const l=r[a];i[l.lane]===null&&(i[l.lane]=l.end),a--}o=Math.max(...i.filter(l=>l!==null))}return Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:r,behavior:o})=>{this.options.scrollToFn(n,{behavior:o,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const ms=(e,t,n,r)=>{for(;e<=t;){const o=(e+t)/2|0,i=n(o);if(i<r)e=o+1;else if(i>r)t=o-1;else return o}return e>0?e-1:0};function Ou({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const o=e.length-1,i=c=>e[c].start;if(e.length<=r)return{startIndex:0,endIndex:o};let a=ms(0,o,i,n),l=a;if(r===1)for(;l<o&&e[l].end<n+t;)l++;else if(r>1){const c=Array(r).fill(0);for(;l<o&&c.some(d=>d<n+t);){const d=e[l];c[d.lane]=d.end,l++}const u=Array(r).fill(n+t);for(;a>=0&&u.some(d=>d>=n);){const d=e[a];u[d.lane]=d.start,a--}a=Math.max(0,a-a%r),l=Math.min(o,l+(r-1-l%r))}return{startIndex:a,endIndex:l}}const di=typeof document<"u"?s.useLayoutEffect:s.useEffect;function Iu(e){const t=s.useReducer(()=>({}),{})[1],n={...e,onChange:(o,i)=>{var a;i?Le.flushSync(t):t(),(a=e.onChange)==null||a.call(e,o,i)}},[r]=s.useState(()=>new Tu(n));return r.setOptions(n),di(()=>r._didMount(),[]),di(()=>r._willUpdate()),r}function _u(e){return Iu({observeElementRect:Su,observeElementOffset:Ru,scrollToFn:Pu,...e})}var Au=Object.defineProperty,Mu=(e,t,n)=>t in e?Au(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mr=(e,t,n)=>(Mu(e,typeof t!="symbol"?t+"":t,n),n);let Du=class{constructor(){mr(this,"current",this.detect()),mr(this,"handoffState","pending"),mr(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},je=new Du,oe=(e,t)=>{je.isServer?s.useEffect(e,t):s.useLayoutEffect(e,t)};function Ee(e){let t=s.useRef(e);return oe(()=>{t.current=e},[e]),t}function Xt(e,t){let[n,r]=s.useState(e),o=Ee(e);return oe(()=>r(o.current),[o,r,...t]),n}let A=function(e){let t=Ee(e);return L.useCallback((...n)=>t.current(...n),[t])};function hs(e,t,n){let[r,o]=s.useState(n),i=e!==void 0,a=s.useRef(i),l=s.useRef(!1),c=s.useRef(!1);return i&&!a.current&&!l.current?(l.current=!0,a.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!i&&a.current&&!c.current&&(c.current=!0,a.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[i?e:r,A(u=>(i||o(u),t==null?void 0:t(u)))]}function Fn(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Re(){let e=[],t={addEventListener(n,r,o,i){return n.addEventListener(r,o,i),t.add(()=>n.removeEventListener(r,o,i))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Fn(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=Re();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function Me(){let[e]=s.useState(Re);return s.useEffect(()=>()=>
20e.dispose(),[e]),e}function Nu(){let e=typeof document>"u";return"useSyncExternalStore"in Ve?(t=>t.useSyncExternalStore)(Ve)(()=>()=>{},()=>!1,()=>!e):!1}function Tt(){let e=Nu(),[t,n]=s.useState(je.isHandoffComplete);return t&&je.isHandoffComplete===!1&&n(!1),s.useEffect(()=>{t!==!0&&n(!0)},[t]),s.useEffect(()=>je.handoff(),[]),e?!1:t}var fi;let ve=(fi=L.useId)!=null?fi:function(){let e=Tt(),[t,n]=L.useState(e?()=>je.nextId():null);return oe(()=>{t===null&&n(je.nextId())},[t]),t!=null?""+t:void 0};function re(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,re),r}function qt(e){return je.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Fr=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var nt=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(nt||{}),gs=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(gs||{}),Lu=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Lu||{});function ku(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Fr)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var lo=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(lo||{});function bs(e,t=0){var n;return e===((n=qt(e))==null?void 0:n.body)?!1:re(t,{0(){return e.matches(Fr)},1(){let r=e;for(;r!==null;){if(r.matches(Fr))return!0;r=r.parentElement}return!1}})}var Fu=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Fu||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function ot(e){e==null||e.focus({preventScroll:!0})}let ju=["textarea","input"].join(",");function Vu(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,ju))!=null?n:!1}function co(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),i=t(r);if(o===null||i===null)return 0;let a=o.compareDocumentPosition(i);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Rn(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?co(e):e:ku(e);o.length>0&&a.length>1&&(a=a.filter(p=>!o.includes(p))),r=r??i.activeElement;let l=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,a.indexOf(r))-1;if(t&4)return Math.max(0,a.indexOf(r))+1;if(t&8)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},d=0,f=a.length,m;do{if(d>=f||d+f<=0)return 0;let p=c+d;if(t&16)p=(p+f)%f;else{if(p<0)return 3;if(p>=f)return 1}m=a[p],m==null||m.focus(u),d+=l}while(m!==i.activeElement);return t&6&&Vu(m)&&m.select(),2}function xs(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Bu(){return/Android/gi.test(window.navigator.userAgent)}function ws(){return xs()||Bu()}function pn(e,t,n){let r=Ee(t);s.useEffect(()=>{function o(i){r.current(i)}return document.addEventListener(e,o,n),()=>document.removeEventListener(e,o,n)},[e,n])}function ys(e,t,n){let r=Ee(t);s.useEffect(()=>{function o(i){r.current(i)}return window.addEventListener(e,o,n),()=>window.removeEventListener(e,o,n)},[e,n])}function uo(e,t,n=!0){let r=s.useRef(!1);s.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function o(a,l){if(!r.current||a.defaultPrevented)return;let c=l(a);if(c===null||!c.getRootNode().contains(c)||!c.isConnected)return;let u=function d(f){return typeof f=="function"?d(f()):Array.isArray(f)||f instanceof Set?f:[f]}(e);for(let d of u){if(d===null)continue;let f=d instanceof HTMLElement?d:d.current;if(f!=null&&f.contains(c)||a.composed&&a.composedPath().includes(f))return}return!bs(c,lo.Loose)&&c.tabIndex!==-1&&a.preventDefault(),t(a,c)}let i=s.useRef(null);pn("pointerdown",a=>{var l,c;r.current&&(i.current=((c=(l=a.composedPath)==null?void 0:l.call(a))==null?void 0:c[0])||a.target)},!0),pn("mousedown",a=>{var l,c;r.current&&(i.current=((c=(l=a.composedPath)==null?void 0:l.call(a))==null?void 0:c[0])||a.target)},!0),pn("click",a=>{ws()||i.current&&(o(a,()=>i.current),i.current=null)},!0),pn("touchend",a=>o(a,()=>a.target instanceof HTMLElement?a.target:null),!0),ys("blur",a=>o(a,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Ot(...e){return s.useMemo(()=>qt(...e),[...e])}function pi(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function fo(e,t){let[n,r]=s.useState(()=>pi(e));return oe(()=>{r(pi(e))},[e.type,e.as]),oe(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let Cs=Symbol();function Es(e,t=!0){return Object.assign(e,{[Cs]:t})}function ue(...e){let t=s.useRef(e);s.useEffect(()=>{t.current=e},[e]);let n=A(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[Cs]))?void 0:n}function vi(e){return[e.screenX,e.screenY]}function Ss(){let e=s.useRef([-1,-1]);return{wasMoved(t){let n=vi(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=vi(t)}}}function Hu({container:e,accept:t,walk:n,enabled:r=!0}){let o=s.useRef(t),i=s.useRef(n);s.useEffect(()=>{o.current=t,i.current=n},[t,n]),oe(()=>{if(!e||!r)return;let a=qt(e);if(!a)return;
20let l=o.current,c=i.current,u=Object.assign(f=>l(f),{acceptNode:l}),d=a.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,u,!1);for(;d.nextNode();)c(d.currentNode)},[e,r,o,i])}function Bt(e,t){let n=s.useRef([]),r=A(e);s.useEffect(()=>{let o=[...n.current];for(let[i,a]of t.entries())if(n.current[i]!==a){let l=r(t,o);return n.current=t,l}},[r,...t])}function Pn(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var De=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(De||{}),Ye=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Ye||{});function ae({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:l}){l=l??Wu;let c=$s(t,e);if(i)return vn(c,n,r,a,l);let u=o??0;if(u&2){let{static:d=!1,...f}=c;if(d)return vn(f,n,r,a,l)}if(u&1){let{unmount:d=!0,...f}=c;return re(d?0:1,{0(){return null},1(){return vn({...f,hidden:!0,style:{display:"none"}},n,r,a,l)}})}return vn(c,n,r,a,l)}function vn(e,t={},n,r,o){let{as:i=n,children:a,refName:l="ref",...c}=hr(e,["unmount","static"]),u=e.ref!==void 0?{[l]:e.ref}:{},d=typeof a=="function"?a(t):a;"className"in c&&c.className&&typeof c.className=="function"&&(c.className=c.className(t));let f={};if(t){let m=!1,p=[];for(let[h,v]of Object.entries(t))typeof v=="boolean"&&(m=!0),v===!0&&p.push(h);m&&(f["data-headlessui-state"]=p.join(" "))}if(i===s.Fragment&&Object.keys(Tn(c)).length>0){if(!s.isValidElement(d)||Array.isArray(d)&&d.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(c).map(v=>`  - ${v}`).join(`
21`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(v
21=>`  - ${v}`).join(`
22`)].join(`
23`));let m=d.props,p=typeof(m==null?void 0:m.className)=="function"?(...v)=>Pn(m==null?void 0:m.className(...v),c.className):Pn(m==null?void 0:m.className,c.className),h=p?{className:p}:{};return s.cloneElement(d,Object.assign({},$s(d.props,Tn(hr(c,["ref"]))),f,u,{ref:o(d.ref,u.ref)},h))}return s.createElement(i,Object.assign({},hr(c,["ref"]),i!==s.Fragment&&u,i!==s.Fragment&&f),d)}function Rs(){let e=s.useRef([]),t=s.useCallback(n=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(n):r.current=n)},[]);return(...n)=>{if(!n.every(r=>r==null))return e.current=n,t}}function Wu(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function $s(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...i){let a=n[r];for(let l of a){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;l(o,...i)}}});return t}function ie(e){var t;return Object.assign(s.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Tn(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function hr(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}let Uu="div";var Et=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Et||{});function Ku(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":(r&2)===2?!0:(n=o["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return ae({ourProps:i,theirProps:o,slot:{},defaultTag:Uu,name:"Hidden"})}let Ht=ie(Ku),po=s.createContext(null);po.displayName="OpenClosedContext";var le=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(le||{});function It(){return s.useContext(po)}function jn({value:e,children:t}){return L.createElement(po.Provider,{value:e},t)}function zu(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Ie=[];zu(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Ie[0]!==t.target&&(Ie.unshift(t.target),Ie=Ie.filter(n=>n!=null&&n.isConnected),Ie.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Vn(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&Gu(n)?!1:r}function Gu(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function Yu(e){throw new Error("Unexpected object: "+e)}var ne=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(ne||{});function jr(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=r??-1;switch(e.focus){case 0:{for(let i=0;i<n.length;++i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 1:{for(let i=o-1;i>=0;--i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 2:{for(let i=o+1;i<n.length;++i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 3:{for(let i=n.length-1;i>=0;
23--i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 4:{for(let i=0;i<n.length;++i)if(t.resolveId(n[i],i,n)===e.id)return i;return r}case 5:return null;default:Yu(e)}}function vo(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))Ts(n,Ps(t,r),o);return n}function Ps(e,t){return e?e+"["+t+"]":t}function Ts(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())Ts(e,Ps(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):vo(n,t,e)}var J=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(J||{}),Zu=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Zu||{}),Xu=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Xu||{}),qu=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(qu||{}),Qu=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e[e.SetActivationTrigger=6]="SetActivationTrigger",e[e.UpdateVirtualOptions=7]="UpdateVirtualOptions",e))(Qu||{});function gr(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=t(e.options.slice()),o=r.length>0&&r[0].dataRef.current.order!==null?r.sort((a,l)=>a.dataRef.current.order-l.dataRef.current.order):co(r,a=>a.dataRef.current.domRef.current),i=n?o.indexOf(n):null;return i===-1&&(i=null),{options:o,activeOptionIndex:i}}let Ju={1(e){var t;return(t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===1?e:{...e,activeOptionIndex:null,comboboxState:1}},0(e){var t,n;if((t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===0)return e;if((n=e.dataRef.current)!=null&&n.value){let r=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(r!==-1)return{...e,activeOptionIndex:r,comboboxState:0}}return{...e,comboboxState:0}},2(e,t){var n,r,o,i,a;if((n=e.dataRef.current)!=null&&n.disabled||(r=e.dataRef.current)!=null&&r.optionsRef.current&&!((o=e.dataRef.current)!=null&&o.optionsPropsRef.current.static)&&e.comboboxState===1)return e;if(e.virtual){let d=t.focus===ne.Specific?t.idx:jr(t,{resolveItems:()=>e.virtual.options,resolveActiveIndex:()=>{var m,p;return(p=(m=e.activeOptionIndex)!=null?m:e.virtual.options.findIndex(h=>!e.virtual.disabled(h)))!=null?p:null},resolveDisabled:e.virtual.disabled,resolveId(){throw new Error("Function not implemented.")}}),f=(i=t.trigger)!=null?i:2;return e.activeOptionIndex===d&&e.activationTrigger===f?e:{...e,activeOptionIndex:d,activationTrigger:f}}let l=gr(e);if(l.activeOptionIndex===null){let d=l.options.findIndex(f=>!f.dataRef.current.disabled);d!==-1&&(l.activeOptionIndex=d)}let c=t.focus===ne.Specific?t.idx:jr(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:d=>d.id,resolveDisabled:d=>d.dataRef.current.disabled}),u=(a=t.trigger)!=null?a:2;return e.activeOptionIndex===c&&e.activationTrigger===u?e:{...e,...l,activeOptionIndex:c,activationTrigger:u}},3:(e,t)=>{var n,r,o;if((n=e.dataRef.current)!=null&&n.virtual)return{...e,options:[...e.options,t.payload]};let i=t.payload,a=gr(e,c=>(c.push(i),c));e.activeOptionIndex===null&&(r=e.dataRef.current)!=null&&r.isSelected(t.payload.dataRef.current.value)&&(a.activeOptionIndex=a.options.indexOf(i));let l={...e,...a,activationTrigger:2};return(o=e.dataRef.current)!=null&&o.__demoMode&&e.dataRef.current.value===void 0&&(l.activeOptionIndex=0),l},4:(e,t)=>{var n;if((n=e.dataRef.current)!=null&&n.virtual)return{...e,options:e.options.filter(o=>o.id!==t.id)};let r=gr(e,o=>{let i=o.findIndex(a=>a.id===t.id);return i!==-1&&o.splice(i,1),o});return{...e,...r,activationTrigger:2}},5:(e,t)=>e.labelId===t.id?e:{...e,labelId:t.id},6:(e,t)=>e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},7:(e,t)=>{var n;if(((n=e.virtual)==null?void 0:n.options)===t.options)return e;let r=e.activeOptionIndex;if(e.activeOptionIndex!==null){let o=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);o!==-1?r=o:r=null}return{...e,activeOptionIndex:r,virtual:Object.assign({},e.virtual,{options:t.options})}}},mo=s.createContext(null);mo.displayName="ComboboxActionsContext";function Qt(e){let t=s.useContext(mo);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Qt),n}return t}let Os=s.createContext(null);function ed(e){var t;let n=st("VirtualProvider"),[r,o]=s.useMemo(()=>{let c=n.optionsRef.current;if(!c)return[0,0];let u=window.getComputedStyle(c);return[parseFloat(u.paddingBlockStart||u.paddingTop),parseFloat(u.paddingBlockEnd||u.paddingBottom)]},[n.optionsRef.current]),i=_u({scrollPaddingStart:r,scrollPaddingEnd:o,count:n.virtual.options.length,estimateSize(){return 40},getScrollElement(){var c;return(c=n.optionsRef.current)!=null?c:null},overscan:12}),[a,l]=s.useState(0);return oe(()=>{l(c=>c+1)},[(t=n.virtual)==null?void 0:t.options]),L.createElement(Os.Provider,{value:i},L.createElement("div",{style:{position:"relative",width:"100%",height:`${i.getTotalSize()}px`},ref:c=>{if(c){if(typeof process<"u"&&{}.JEST_WORKER_ID!==void 0||n.activationTrigger===0)return;n.activeOptionIndex!==null&&n.virtual.options.length>n.activeOptionIndex&&i.scrollToIndex(n.activeOptionIndex)}}},i.getVirtualItems().map(c=>{var u;return L.createElement(s.Fragment,{key:c.key},L.cloneElement((u=e.children)==null?void 0:u.call(e,{option:n.virtual.options[c.index],open:n.comboboxState===0}),{key:`${a}-${c.key}`,"data-index":c.index,"aria-setsize":n.virtual.options.length,"aria-posinset":c.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${c.start}px)`,overflowAnchor:"none"}}))})))}let ho=s.createContext(null);ho.displayName="ComboboxDataContext";function st(e){let t=s.useContext(ho);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,st),n}return t}function td(e,t){return re(t.type,Ju,e,t)}let nd=s.Fragment;function rd(e,t){let{value:n,defaultValue:r,onChange:o,form:i,name:a,by:l=null,disabled:c=!1,__demoMode:u=!1,nullable:d=!1,multiple:f=!1,immediate:m=!1,virtual:p=null,...h}=e,v=!1,g=null,[b=f?[]:void 0,x]=hs(n,o,r),[w,C]=s.useReducer(td,{dataRef:s.createRef(),c
23omboboxState:u?0:1,options:[],virtual:null,activeOptionIndex:null,activationTrigger:2,labelId:null}),E=s.useRef(!1),P=s.useRef({static:!1,hold:!1}),R=s.useRef(null),$=s.useRef(null),N=s.useRef(null),_=s.useRef(null),I=A(typeof l=="string"?(F,U)=>{let j=l;return(F==null?void 0:F[j])===(U==null?void 0:U[j])}:l??((F,U)=>F===U)),V=A(F=>w.options.findIndex(U=>I(U.dataRef.current.value,F))),K=s.useCallback(F=>re(S.mode,{1:()=>b.some(U=>I(U,F)),0:()=>I(b,F)}),[b]),O=A(F=>w.activeOptionIndex===V(F)),S=s.useMemo(()=>({...w,immediate:v,optionsPropsRef:P,labelRef:R,inputRef:$,buttonRef:N,optionsRef:_,value:b,defaultValue:r,disabled:c,mode:f?1:0,virtual:w.virtual,get activeOptionIndex(){if(E.current&&w.activeOptionIndex===null&&w.options.length>0){let F=w.options.findIndex(U=>!U.dataRef.current.disabled);if(F!==-1)return F}return w.activeOptionIndex},calculateIndex:V,compare:I,isSelected:K,isActive:O,nullable:d,__demoMode:u}),[b,r,c,f,d,u,w,g]);oe(()=>{},[g,void 0]),oe(()=>{w.dataRef.current=S},[S]),uo([S.buttonRef,S.inputRef,S.optionsRef],()=>G.closeCombobox(),S.comboboxState===0);let D=s.useMemo(()=>{var F,U,j;return{open:S.comboboxState===0,disabled:c,activeIndex:S.activeOptionIndex,activeOption:S.activeOptionIndex===null?null:S.virtual?S.virtual.options[(F=S.activeOptionIndex)!=null?F:0]:(j=(U=S.options[S.activeOptionIndex])==null?void 0:U.dataRef.current.value)!=null?j:null,value:b}},[S,c,b]),k=A(()=>{if(S.activeOptionIndex!==null){if(S.virtual)se(S.virtual.options[S.activeOptionIndex]);else{let{dataRef:F}=S.options[S.activeOptionIndex];se(F.current.value)}G.goToOption(ne.Specific,S.activeOptionIndex)}}),M=A(()=>{C({type:0}),E.current=!0}),T=A(()=>{C({type:1}),E.current=!1}),z=A((F,U,j)=>(E.current=!1,F===ne.Specific?C({type:2,focus:ne.Specific,idx:U,trigger:j}):C({type:2,focus:F,trigger:j}))),X=A((F,U)=>(C({type:3,payload:{id:F,dataRef:U}}),()=>{S.isActive(U.current.value)&&(E.current=!0),C({type:4,id:F})})),q=A(F=>(C({type:5,id:F}),()=>C({type:5,id:null}))),se=A(F=>re(S.mode,{0(){return x==null?void 0:x(F)},1(){let U=S.value.slice(),j=U.findIndex(Y=>I(Y,F));return j===-1?U.push(F):U.splice(j,1),x==null?void 0:x(U)}})),H=A(F=>{C({type:6,trigger:F})}),G=s.useMemo(()=>({onChange:se,registerOption:X,registerLabel:q,goToOption:z,closeCombobox:T,openCombobox:M,setActivationTrigger:H,selectActiveOption:k}),[]),Q=t===null?{}:{ref:t},B=s.useRef(null),Z=Me();return s.useEffect(()=>{B.current&&r!==void 0&&Z.addEventListener(B.current,"reset",()=>{x==null||x(r)})},[B,x]),L.createElement(mo.Provider,{value:G},L.createElement(ho.Provider,{value:S},L.createElement(jn,{value:re(S.comboboxState,{0:le.Open,1:le.Closed})},a!=null&&b!=null&&vo({[a]:b}).map(([F,U],j)=>L.createElement(Ht,{features:Et.Hidden,ref:j===0?Y=>{var ee;B.current=(ee=Y==null?void 0:Y.closest("form"))!=null?ee:null}:void 0,...Tn({key:F,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:i,disabled:c,name:F,value:U})})),ae({ourProps:Q,theirProps:h,slot:D,defaultTag:nd,name:"Combobox"}))))}let od="input";function id(e,t){var n,r,o,i,a;let l=ve(),{id:c=`headlessui-combobox-input-${l}`,onChange:u,displayValue:d,type:f="text",...m}=e,p=st("Combobox.Input"),h=Qt("Combobox.Input"),v=ue(p.inputRef,t),g=Ot(p.inputRef),b=s.useRef(!1),x=Me(),w=A(()=>{h.onChange(null),p.optionsRef.current&&(p.optionsRef.current.scrollTop=0),h.goToOption(ne.Nothing)}),C=function(){var S;return typeof d=="function"&&p.value!==void 0?(S=d(p.value))!=null?S:"":typeof p.value=="string"?p.value:""}();Bt(([S,D],[k,M])=>{if(b.current)return;let T=p.inputRef.current;T&&((M===0&&D===1||S!==k)&&(T.value=S),requestAnimationFrame(()=>{if(b.current||!T||(g==null?void 0:g.activeElement)!==T)return;let{selectionStart:z,selectionEnd:X}=T;Math.abs((X??0)-(z??0))===0&&z===0&&T.setSelectionRange(T.value.length,T.value.length)}))},[C,p.comboboxState,g]),Bt(([S],[D])=>{if(S===0&&D===1){if(b.current)return;let k=p.inputRef.current;if(!k)return;let M=k.value,{selectionStart:T,selectionEnd:z,selectionDirection:X}=k;k.value="",k.value=M,X!==null?k.setSelectionRange(T,z,X):k.setSelectionRange(T,z)}},[p.comboboxState]);let E=s.useRef(!1),P=A(()=>{E.current=!0}),R=A(()=>{x.nextFrame(()=>{E.current=!1})}),$=A(S=>{switch(b.current=!0,S.key){case J.Enter:if(b.current=!1,p.comboboxState!==0||E.current)return;if(S.preventDefault(),S.stopPropagation(),p.activeOptionIndex===null){h.closeCombobox();return}h.selectActiveOption(),p.mode===0&&h.closeCombobox();break;case J.ArrowDown:return b.current=!1,S.preventDefault(),S.stopPropagation(),re(p.comboboxState,{0:()=>h.goToOption(ne.Next),1:()=>h.openCombobox()});case J.ArrowUp:return b.current=!1,S.preventDefault(),S.stopPropagation(),re(p.comboboxState,{0:()=>h.goToOption(ne.Previous),1:()=>{h.openCombobox(),x.nextFrame(()=>{p.value||h.goToOption(ne.Last)})}});case J.Home:if(S.shiftKey)break;return b.current=!1,S.preventDefault(),S.stopPropagation(),h.goToOption(ne.First);case J.PageUp:return b.current=!1,S.preventDefault(),S.stopPropagation(),h.goToOption(ne.First);case J.End:if(S.shiftKey)break;return b.current=!1,S.preventDefault(),S.stopPropagation(),h.goToOption(ne.Last);case J.PageDown:return b.current=!1,S.preventDefault(),S.stopPropagation(),h.goToOption(ne.Last);case J.Escape:return b.current=!1,p.comboboxState!==0?void 0:(S.preventDefault(),p.optionsRef.current&&!p.optionsPropsRef.current.static&&S.stopPropagation(),p.nullable&&p.mode===0&&p.value===null&&w(),h.closeCombobox());case J.Tab:if(b.current=!1,p.comboboxState!==0)return;p.mode===0&&p.activationTrigger!==1&&h.selectActiveOption(),h.closeCombobox();break}}),N=A(S=>{u==null||u(S),p.nullable&&p.mode===0&&S.target.value===""&&w(),h.openCombobox()}),_=A(S=>{var D,k,M;let T=(D=S.relatedTarget)!=null?D:Ie.find(z=>z!==S.currentTarget);if(b.current=!1,!((k=p.optionsRef.current)!=null&&k.contains(T))&&!((M=p.buttonRef.current)!=null&&M.contains(T))&&p.comboboxState===0)return S.preventDefault(),p.mode===0&&(p.nullable&&p.value===null?w():p.activationTrigger!==1&&h.selectActiveOption()),h.closeCombobox()}),I=A(S=>{var D,k,M;let T=(D=S.relatedTarget)!=null?D:Ie.find(z=>z!==S.currentTarget);(k=p.buttonRef.current)!=null&&k.contains(T)||(M=p.optionsRef.current)!=null&&M.contains(T)||p.disabled||p.immediate&&p.comboboxState!==0&&(h.openCombobox(),x.nextFrame(()=>{h.setActivationTrigger(1)}))}),V=Xt(()=>{if(p.labelId)return[p.labelId].join(" ")},[p.labelId]),K=s.useMemo(()=>({open:p.comboboxState===0,disabled:p.disabled}),[p]),O={ref:v,id:c,role:"combobox",type:f,"aria-controls":(n=p.optionsRef.current)==null?void 0:n.id,"aria-expanded":p.comboboxState===0,"aria-activedescendant":p.activeOptionIndex===null?void 0:p.virtual?(r=p.options.find(S=>{var D;return!((D=p.virtual)!=null&&D.disabled(S.dataRef.current.value))&&p.compare(S.dataRef.current.value,p.virtual.options[p.activeOptionIndex])}))==null?void 0:r.id:(o=p.options[p.activeOptionIndex])==null?void 0:o.id,"aria-labelledby":V,"aria-autocomplete":"list",defaultValue:(a=(i=e.defaultValue)!=null?i:p.defaultValue!==void 0?d==null?void 0:d(p.defaultValue):null)!=null?a:p.defaultValue,disabled:p.disabled,onCompositionStart:P,onCompositionEnd:R,onKeyDown:$,onChange:N,onFocus:I,onBlur:_};return ae({ourProps:O,theirProps:m,slot:K,defaultTag:od,name:"Combobox.Input"})}let sd="button";function ad(e,t){var n;
23let r=st("Combobox.Button"),o=Qt("Combobox.Button"),i=ue(r.buttonRef,t),a=ve(),{id:l=`headlessui-combobox-button-${a}`,...c}=e,u=Me(),d=A(v=>{switch(v.key){case J.ArrowDown:return v.preventDefault(),v.stopPropagation(),r.comboboxState===1&&o.openCombobox(),u.nextFrame(()=>{var g;return(g=r.inputRef.current)==null?void 0:g.focus({preventScroll:!0})});case J.ArrowUp:return v.preventDefault(),v.stopPropagation(),r.comboboxState===1&&(o.openCombobox(),u.nextFrame(()=>{r.value||o.goToOption(ne.Last)})),u.nextFrame(()=>{var g;return(g=r.inputRef.current)==null?void 0:g.focus({preventScroll:!0})});case J.Escape:return r.comboboxState!==0?void 0:(v.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&v.stopPropagation(),o.closeCombobox(),u.nextFrame(()=>{var g;return(g=r.inputRef.current)==null?void 0:g.focus({preventScroll:!0})}));default:return}}),f=A(v=>{if(Vn(v.currentTarget))return v.preventDefault();r.comboboxState===0?o.closeCombobox():(v.preventDefault(),o.openCombobox()),u.nextFrame(()=>{var g;return(g=r.inputRef.current)==null?void 0:g.focus({preventScroll:!0})})}),m=Xt(()=>{if(r.labelId)return[r.labelId,l].join(" ")},[r.labelId,l]),p=s.useMemo(()=>({open:r.comboboxState===0,disabled:r.disabled,value:r.value}),[r]),h={ref:i,id:l,type:fo(e,r.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":(n=r.optionsRef.current)==null?void 0:n.id,"aria-expanded":r.comboboxState===0,"aria-labelledby":m,disabled:r.disabled,onClick:f,onKeyDown:d};return ae({ourProps:h,theirProps:c,slot:p,defaultTag:sd,name:"Combobox.Button"})}let ld="label";function cd(e,t){let n=ve(),{id:r=`headlessui-combobox-label-${n}`,...o}=e,i=st("Combobox.Label"),a=Qt("Combobox.Label"),l=ue(i.labelRef,t);oe(()=>a.registerLabel(r),[r]);let c=A(()=>{var d;return(d=i.inputRef.current)==null?void 0:d.focus({preventScroll:!0})}),u=s.useMemo(()=>({open:i.comboboxState===0,disabled:i.disabled}),[i]);return ae({ourProps:{ref:l,id:r,onClick:c},theirProps:o,slot:u,defaultTag:ld,name:"Combobox.Label"})}let ud="ul",dd=De.RenderStrategy|De.Static;function fd(e,t){let n=ve(),{id:r=`headlessui-combobox-options-${n}`,hold:o=!1,...i}=e,a=st("Combobox.Options"),l=ue(a.optionsRef,t),c=It(),u=(()=>c!==null?(c&le.Open)===le.Open:a.comboboxState===0)();oe(()=>{var p;a.optionsPropsRef.current.static=(p=e.static)!=null?p:!1},[a.optionsPropsRef,e.static]),oe(()=>{a.optionsPropsRef.current.hold=o},[a.optionsPropsRef,o]),Hu({container:a.optionsRef.current,enabled:a.comboboxState===0,accept(p){return p.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:p.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(p){p.setAttribute("role","none")}});let d=Xt(()=>{var p,h;return(h=a.labelId)!=null?h:(p=a.buttonRef.current)==null?void 0:p.id},[a.labelId,a.buttonRef.current]),f=s.useMemo(()=>({open:a.comboboxState===0,option:void 0}),[a]),m={"aria-labelledby":d,role:"listbox","aria-multiselectable":a.mode===1?!0:void 0,id:r,ref:l};return a.virtual&&a.comboboxState===0&&Object.assign(i,{children:L.createElement(ed,null,i.children)}),ae({ourProps:m,theirProps:i,slot:f,defaultTag:ud,features:dd,visible:u,name:"Combobox.Options"})}let pd="li";function vd(e,t){var n;let r=ve(),{id:o=`headlessui-combobox-option-${r}`,disabled:i=!1,value:a,order:l=null,...c}=e,u=st("Combobox.Option"),d=Qt("Combobox.Option"),f=u.virtual?u.activeOptionIndex===u.calculateIndex(a):u.activeOptionIndex===null?!1:((n=u.options[u.activeOptionIndex])==null?void 0:n.id)===o,m=u.isSelected(a),p=s.useRef(null),h=Ee({disabled:i,value:a,domRef:p,order:l}),v=s.useContext(Os),g=ue(t,p,v?v.measureElement:null),b=A(()=>d.onChange(a));oe(()=>d.registerOption(o,h),[h,o]);let x=s.useRef(!(u.virtual||u.__demoMode));oe(()=>{if(!u.virtual||!u.__demoMode)return;let _=Re();return _.requestAnimationFrame(()=>{x.current=!0}),_.dispose},[u.virtual,u.__demoMode]),oe(()=>{if(!x.current||u.comboboxState!==0||!f||u.activationTrigger===0)return;let _=Re();return _.requestAnimationFrame(()=>{var I,V;(V=(I=p.current)==null?void 0:I.scrollIntoView)==null||V.call(I,{block:"nearest"})}),_.dispose},[p,f,u.comboboxState,u.activationTrigger,u.activeOptionIndex]);let w=A(_=>{var I;if(i||(I=u.virtual)!=null&&I.disabled(a))return _.preventDefault();b(),ws()||requestAnimationFrame(()=>{var V;return(V=u.inputRef.current)==null?void 0:V.focus({preventScroll:!0})}),u.mode===0&&requestAnimationFrame(()=>d.closeCombobox())}),C=A(()=>{var _;if(i||(_=u.virtual)!=null&&_.disabled(a))return d.goToOption(ne.Nothing);let I=u.calculateIndex(a);d.goToOption(ne.Specific,I)}),E=Ss(),P=A(_=>E.update(_)),R=A(_=>{var I;if(!E.wasMoved(_)||i||(I=u.virtual)!=null&&I.disabled(a)||f)return;let V=u.calculateIndex(a);d.goToOption(ne.Specific,V,0)}),$=A(_=>{var I;E.wasMoved(_)&&(i||(I=u.virtual)!=null&&I.disabled(a)||f&&(u.optionsPropsRef.current.hold||d.goToOption(ne.Nothing)))}),N=s.useMemo(()=>({active:f,selected:m,disabled:i}
23),[f,m,i]);return ae({ourProps:{id:o,ref:g,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":m,disabled:void 0,onClick:w,onFocus:C,onPointerEnter:P,onMouseEnter:P,onPointerMove:R,onMouseMove:R,onPointerLeave:$,onMouseLeave:$},theirProps:c,slot:N,defaultTag:pd,name:"Combobox.Option"})}let md=ie(rd),hd=ie(ad),gd=ie(id),bd=ie(cd),xd=ie(fd),wd=ie(vd),Yw=Object.assign(md,{Input:gd,Button:hd,Label:bd,Options:xd,Option:wd});function Is(e,t,n,r){let o=Ee(n);s.useEffect(()=>{e=e??window;function i(a){o.current(a)}return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)},[e,t,r])}function Jt(){let e=s.useRef(!1);return oe(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function _s(e){let t=A(e),n=s.useRef(!1);s.useEffect(()=>(n.current=!1,()=>{n.current=!0,Fn(()=>{n.current&&t()})}),[t])}var kt=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(kt||{});function yd(){let e=s.useRef(0);return ys("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function As(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let Cd="div";var Ms=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(Ms||{});function Ed(e,t){let n=s.useRef(null),r=ue(n,t),{initialFocus:o,containers:i,features:a=30,...l}=e;Tt()||(a=1);let c=Ot(n);$d({ownerDocument:c},!!(a&16));let u=Pd({ownerDocument:c,container:n,initialFocus:o},!!(a&2));Td({ownerDocument:c,container:n,containers:i,previousActiveElement:u},!!(a&8));let d=yd(),f=A(v=>{let g=n.current;g&&(b=>b())(()=>{re(d.current,{[kt.Forwards]:()=>{Rn(g,nt.First,{skipElements:[v.relatedTarget]})},[kt.Backwards]:()=>{Rn(g,nt.Last,{skipElements:[v.relatedTarget]})}})})}),m=Me(),p=s.useRef(!1),h={ref:r,onKeyDown(v){v.key=="Tab"&&(p.current=!0,m.requestAnimationFrame(()=>{p.current=!1}))},onBlur(v){let g=As(i);n.current instanceof HTMLElement&&g.add(n.current);let b=v.relatedTarget;b instanceof HTMLElement&&b.dataset.headlessuiFocusGuard!=="true"&&(Ds(g,b)||(p.current?Rn(n.current,re(d.current,{[kt.Forwards]:()=>nt.Next,[kt.Backwards]:()=>nt.Previous})|nt.WrapAround,{relativeTo:v.target}):v.target instanceof HTMLElement&&ot(v.target)))}};return L.createElement(L.Fragment,null,!!(a&4)&&L.createElement(Ht,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:Et.Focusable}),ae({ourProps:h,theirProps:l,defaultTag:Cd,name:"FocusTrap"}),!!(a&4)&&L.createElement(Ht,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:Et.Focusable}))}let Sd=ie(Ed),Nt=Object.assign(Sd,{features:Ms});function Rd(e=!0){let t=s.useRef(Ie.slice());return Bt(([n],[r])=>{r===!0&&n===!1&&Fn(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=Ie.slice())},[e,Ie,t]),A(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function $d({ownerDocument:e},t){let n=Rd(t);Bt(()=>{t||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&ot(n())},[t]),_s(()=>{t&&ot(n())})}function Pd({ownerDocument:e,container:t,initialFocus:n},r){let o=s.useRef(null),i=Jt();return Bt(()=>{if(!r)return;let a=t.current;a&&Fn(()=>
23{if(!i.current)return;let l=e==null?void 0:e.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===l){o.current=l;return}}else if(a.contains(l)){o.current=l;return}n!=null&&n.current?ot(n.current):Rn(a,nt.First)===gs.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=e==null?void 0:e.activeElement})},[r]),o}function Td({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){let i=Jt();Is(e==null?void 0:e.defaultView,"focus",a=>{if(!o||!i.current)return;let l=As(n);t.current instanceof HTMLElement&&l.add(t.current);let c=r.current;if(!c)return;let u=a.target;u&&u instanceof HTMLElement?Ds(l,u)?(r.current=u,ot(u)):(a.preventDefault(),a.stopPropagation(),ot(c)):ot(r.current)},!0)}function Ds(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let Ns=s.createContext(!1);function Od(){return s.useContext(Ns)}function Vr(e){return L.createElement(Ns.Provider,{value:e.force},e.children)}function Id(e){let t=Od(),n=s.useContext(Ls),r=Ot(e),[o,i]=s.useState(()=>{if(!t&&n!==null||je.isServer)return null;let a=r==null?void 0:r.getElementById("headlessui-portal-root");if(a)return a;if(r===null)return null;let l=r.createElement("div");return l.setAttribute("id","headlessui-portal-root"),r.body.appendChild(l)});return s.useEffect(()=>{o!==null&&(r!=null&&r.body.contains(o)||r==null||r.body.appendChild(o))},[o,r]),s.useEffect(()=>{t||n!==null&&i(n.current)},[n,i,t]),o}let _d=s.Fragment;function Ad(e,t){let n=e,r=s.useRef(null),o=ue(Es(d=>{r.current=d}),t),i=Ot(r),a=Id(r),[l]=s.useState(()=>{var d;return je.isServer?null:(d=i==null?void 0:i.createElement("div"))!=null?d:null}),c=s.useContext(Br),u=Tt();return oe(()=>{!a||!l||a.contains(l)||(l.setAttribute("data-headlessui-portal",""),a.appendChild(l))},[a,l]),oe(()=>{if(l&&c)return c.register(l)},[c,l]),_s(()=>{var d;!a||!l||(l instanceof Node&&a.contains(l)&&a.removeChild(l),a.childNodes.length<=0&&((d=a.parentElement)==null||d.removeChild(a)))}),u?!a||!l?null:Le.createPortal(ae({ourProps:{ref:o},theirProps:n,defaultTag:_d,name:"Portal"}),l):null}let Md=s.Fragment,Ls=s.createContext(null);function Dd(e,t){let{target:n,...r}=e,o={ref:ue(t)};return L.createElement(Ls.Provider,{value:n},ae({ourProps:o,theirProps:r,defaultTag:Md,name:"Popover.Group"}))}let Br=s.createContext(null);function Nd(){let e=s.useContext(Br),t=s.useRef([]),n=A(i=>(t.current.push(i),e&&e.register(i),()=>r(i))),r=A(i=>{let a=t.current.indexOf(i);a!==-1&&t.current.splice(a,1),e&&e.unregister(i)}),o=s.useMemo(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,s.useMemo(()=>function({children:i}){return L.createElement(Br.Provider,{value:o},i)},[o])]}let Ld=ie(Ad),kd=ie(Dd),Hr=Object.assign(Ld,{Group:kd});function Fd(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const jd=typeof Object.is=="function"?Object.is:Fd,{useState:Vd,useEffect:Bd,useLayoutEffect:Hd,useDebugValue:Wd}=Ve;function Ud(e,t,n){const r=t(),[{inst:o},i]=Vd({inst:{value:r,getSnapshot:t}});return Hd(()=>{o.value=r,o.getSnapshot=t,br(o)&&i({inst:o})},[e,r,t]),Bd(()=>(br(o)&&i({inst:o}),e(()=>{br(o)&&i({inst:o})})),[e]),Wd(r),r}function br(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!jd(n,r)}catch{return!0}}function Kd(e,t,n){return t()}const zd=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Gd=!zd,Yd=Gd?Kd:Ud,Zd="useSyncExternalStore"in Ve?(e=>e.useSyncExternalStore)(Ve):Yd;function Xd(e){return Zd(e.subscribe,e.getSnapshot,e.getSnapshot)}function qd(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let a=t[o].call(n,...i);a&&(n=a,r.forEach(l=>l()))}}}function Qd(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,i=e-o;n.style(r,"paddingRight",`${i}px`)}}}function Jd(){return xs()?{before({doc:e,d:t,meta:n}){function r(o){return n.containers.flatMap(i=>i()).some(i=>i.contains(o))}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let l=Re();l.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>
23l.dispose()))}let i=(o=window.scrollY)!=null?o:window.pageYOffset,a=null;t.addEventListener(e,"click",l=>{if(l.target instanceof HTMLElement)try{let c=l.target.closest("a");if(!c)return;let{hash:u}=new URL(c.href),d=e.querySelector(u);d&&!r(d)&&(a=d)}catch{}},!0),t.addEventListener(e,"touchstart",l=>{if(l.target instanceof HTMLElement)if(r(l.target)){let c=l.target;for(;c.parentElement&&r(c.parentElement);)c=c.parentElement;t.style(c,"overscrollBehavior","contain")}else t.style(l.target,"touchAction","none")}),t.addEventListener(e,"touchmove",l=>{if(l.target instanceof HTMLElement)if(r(l.target)){let c=l.target;for(;c.parentElement&&c.dataset.headlessuiPortal!==""&&!(c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth);)c=c.parentElement;c.dataset.headlessuiPortal===""&&l.preventDefault()}else l.preventDefault()},{passive:!1}),t.add(()=>{var l;let c=(l=window.scrollY)!=null?l:window.pageYOffset;i!==c&&window.scrollTo(0,i),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})})}}:{}}function ef(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function tf(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let rt=qd(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Re(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:tf(n)},o=[Jd(),Qd(),ef()];o.forEach(({before:i})=>i==null?void 0:i(r)),o.forEach(({after:i})=>i==null?void 0:i(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});rt.subscribe(()=>{let e=rt.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&rt.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&rt.dispatch("TEARDOWN",n)}});function nf(e,t,n){let r=Xd(rt),o=e?r.get(e):void 0,i=o?o.count>0:!1;return oe(()=>{if(!(!e||!t))return rt.dispatch("PUSH",e,n),()=>rt.dispatch("POP",e,n)},[t,e]),i}let xr=new Map,Lt=new Map;function mi(e,t=!0){oe(()=>{var n;if(!t)return;let r=typeof e=="function"?e():e.current;if(!r)return;function o(){var a;if(!r)return;let l=(a=Lt.get(r))!=null?a:1;if(l===1?Lt.delete(r):Lt.set(r,l-1),l!==1)return;let c=xr.get(r);c&&(c["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",c["aria-hidden"]),r.inert=c.inert,xr.delete(r))}let i=(n=Lt.get(r))!=null?n:0;return Lt.set(r,i+1),i!==0||(xr.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),o},[e,t])}function rf({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){var r;let o=s.useRef((r=n==null?void 0:n.current)!=null?r:null),i=Ot(o),a=A(()=>{var l,c,u;let d=[];for(let f of e)f!==null&&(f instanceof HTMLElement?d.push(f):"current"in f&&f.current instanceof HTMLElement&&d.push(f.current));if(t!=null&&t.current)for(let f of t.current)d.push(f);for(let f of(l=i==null?void 0:i.querySelectorAll("html > *, body > *"))!=null?l:[])f!==document.body&&f!==document.head&&f instanceof HTMLElement&&f.id!=="headlessui-portal-root"&&(f.contains(o.current)||f.contains((u=(c=o.current)==null?void 0:c.getRootNode())==null?void 0:u.host)||d.some(m=>f.contains(m))||d.push(f));return d});
23return{resolveContainers:a,contains:A(l=>a().some(c=>c.contains(l))),mainTreeNodeRef:o,MainTreeNode:s.useMemo(()=>function(){return n!=null?null:L.createElement(Ht,{features:Et.Hidden,ref:o})},[o,n])}}let go=s.createContext(()=>{});go.displayName="StackContext";var Wr=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Wr||{});function of(){return s.useContext(go)}function sf({children:e,onUpdate:t,type:n,element:r,enabled:o}){let i=of(),a=A((...l)=>{t==null||t(...l),i(...l)});return oe(()=>{let l=o===void 0||o===!0;return l&&a(0,n,r),()=>{l&&a(1,n,r)}},[a,n,r,o]),L.createElement(go.Provider,{value:a},e)}let ks=s.createContext(null);function Fs(){let e=s.useContext(ks);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Fs),t}return e}function af(){let[e,t]=s.useState([]);return[e.length>0?e.join(" "):void 0,s.useMemo(()=>function(n){let r=A(i=>(t(a=>[...a,i]),()=>t(a=>{let l=a.slice(),c=l.indexOf(i);return c!==-1&&l.splice(c,1),l}))),o=s.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return L.createElement(ks.Provider,{value:o},n.children)},[t])]}let lf="p";function cf(e,t){let n=ve(),{id:r=`headlessui-description-${n}`,...o}=e,i=Fs(),a=ue(t);oe(()=>i.register(r),[r,i.register]);let l={ref:a,...i.props,id:r};return ae({ourProps:l,theirProps:o,slot:i.slot||{},defaultTag:lf,name:i.name||"Description"})}let uf=ie(cf),df=Object.assign(uf,{});var ff=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ff||{}),pf=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(pf||{});let vf={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},On=s.createContext(null);On.displayName="DialogContext";function en(e){let t=s.useContext(On);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,en),n}return t}function mf(e,t,n=()=>[document.body]){nf(e,t,r=>{var o;return{containers:[...(o=r.containers)!=null?o:[],n]}})}function hf(e,t){return re(t.type,vf,e,t)}let gf="div",bf=De.RenderStrategy|De.Static;function xf(e,t){let n=ve(),{id:r=`headlessui-dialog-${n}`,open:o,onClose:i,initialFocus:a,role:l="dialog",__demoMode:c=!1,...u}=e,[d,f]=s.useState(0),m=s.useRef(!1);l=function(){return l==="dialog"||l==="alertdialog"?l:(m.current||(m.current=!0,console.warn(`Invalid role [${l}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let p=It();o===void 0&&p!==null&&(o=(p&le.Open)===le.Open);let h=s.useRef(null),v=ue(h,t),g=Ot(h),b=e.hasOwnProperty("open")||p!==null,x=e.hasOwnProperty("onClose");if(!b&&!x)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!b)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!x)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof o!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${o}`);if(typeof i!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${i}`);let w=o?0:1,[C,E]=s.useReducer(hf,{titleId:null,descriptionId:null,panelRef:s.createRef()}),P=A(()=>i(!1)),R=A(j=>E({type:0,id:j})),$=Tt()?c?!1:w===0:!1,N=d>1,_=s.useContext(On)!==null,[I,V]=Nd(),K={get current(){var j;return(j=C.panelRef.current)!=null?j:h.current}},{resolveContainers:O,mainTreeNodeRef:S,MainTreeNode:D}=rf({portals:I,defaultContainers:[K]}),k=N?"parent":"leaf",M=p!==null?(p&le.Closing)===le.Closing:!1,T=(()=>_||M?!1:$)(),z=s.useCallback(()=>{var j,Y;return(Y=Array.from((j=g==null?void 0:g.querySelectorAll("body > *"))!=null?j:[]).find(ee=>ee.id==="headlessui-portal-root"?!1:ee.contains(S.current)&&ee instanceof HTMLElement))!=null?Y:null},[S]);mi(z,T);let X=(()=>N?!0:$)(),q=s.useCallback(()=>{var j,Y;return(Y=Array.from((j=g==null?void 0:g.querySelectorAll("[data-headlessui-portal]"))!=null?j:[]).find(ee=>ee.contains(S.current)&&ee instanceof HTMLElement))!=null?Y:null},[S]);mi(q,X);let se=(()=>!(!$||N))();uo(O,j=>{j.preventDefault(),P()},se);let H=(()=>!(N||w!==0))();Is(g==null?void 0:g.defaultView,"keydown",j=>{H&&(j.defaultPrevented||j.key===J.Escape&&(j.preventDefault(),j.stopPropagation(),P()))});let G=(()=>!(M||w!==0||_))();mf(g,G,O),s.useEffect(()=>{if(w!==0||!h.current)return;let j=new ResizeObserver(Y=>{for(let ee of Y){let de=ee.target.getBoundingClientRect();de.x===0&&de.y===0&&de.width===0&&de.height===0&&P()}});return j.observe(h.current),()=>j.disconnect()},[w,h,P]);let[Q,B]=af(),Z=s.useMemo(()=>[{dialogState:w,close:P,setTitleId:R},C],[w,C,P,R]),F=s.useMemo(()=>({open:w===0}),[w]),U={ref:v,id:r,role:l,"aria-modal":w===0?!0:void 0,"aria-labelledby":C.titleId,"aria-describedby":Q};return L.createElement(sf,{type:"Dialog",enabled:w===0,element:h,onUpdate:A((j,Y)=>{Y==="Dialog"&&re(j,{[Wr.Add]:()=>f(ee=>ee+1),[Wr.Remove]:()=>f(ee=>ee-1)})})},L.createElement(Vr,{force:!0},L.createElement(Hr,null,L.createElement(On.Provider,{value:Z},L.createElement(Hr.Group,{target:h},L.createElement(Vr,{force:!1},L.createElement(B,{slot:F,name:"Dialog.Description"},L.createElement(Nt,{initialFocus:a,containers:O,features:$?re(k,{parent:Nt.features.RestoreFocus,leaf:Nt.features.All&~Nt.features.FocusLock}):Nt.features.None},L.createElement(V,null,ae({ourProps:U,theirProps:u,slot:F,defaultTag:gf,features:bf,visible:w===0,name:"Dialog"}))))))))),L.createElement(D,null))}let wf="div";function yf(e,t){let n=ve(),{id:r=`headlessui-dialog-overlay-${n}`,...o}=e,[{dialogState:i,close:a}]=en("Dialog.Overlay"),l=ue(t),c=A(d=>{if(d.target===d.currentTarget){if(Vn(d.currentTarget))return d.preventDefault();d.preventDefault(),d.stopPropagation(),a()}}),u=s.useMemo(()=>({open:i===0}),[i]);return ae({ourProps:{ref:l,id:r,"aria-hidden":!0,onClick:c}
23,theirProps:o,slot:u,defaultTag:wf,name:"Dialog.Overlay"})}let Cf="div";function Ef(e,t){let n=ve(),{id:r=`headlessui-dialog-backdrop-${n}`,...o}=e,[{dialogState:i},a]=en("Dialog.Backdrop"),l=ue(t);s.useEffect(()=>{if(a.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[a.panelRef]);let c=s.useMemo(()=>({open:i===0}),[i]);return L.createElement(Vr,{force:!0},L.createElement(Hr,null,ae({ourProps:{ref:l,id:r,"aria-hidden":!0},theirProps:o,slot:c,defaultTag:Cf,name:"Dialog.Backdrop"})))}let Sf="div";function Rf(e,t){let n=ve(),{id:r=`headlessui-dialog-panel-${n}`,...o}=e,[{dialogState:i},a]=en("Dialog.Panel"),l=ue(t,a.panelRef),c=s.useMemo(()=>({open:i===0}),[i]),u=A(d=>{d.stopPropagation()});return ae({ourProps:{ref:l,id:r,onClick:u},theirProps:o,slot:c,defaultTag:Sf,name:"Dialog.Panel"})}let $f="h2";function Pf(e,t){let n=ve(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:a}]=en("Dialog.Title"),l=ue(t);s.useEffect(()=>(a(r),()=>a(null)),[r,a]);let c=s.useMemo(()=>({open:i===0}),[i]);return ae({ourProps:{ref:l,id:r},theirProps:o,slot:c,defaultTag:$f,name:"Dialog.Title"})}let Tf=ie(xf),Of=ie(Ef),If=ie(Rf),_f=ie(yf),Af=ie(Pf),Zw=Object.assign(Tf,{Backdrop:Of,Panel:If,Overlay:_f,Title:Af,Description:df});var hi;let Mf=(hi=L.startTransition)!=null?hi:function(e){e()};var Df=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Df||{}),Nf=(e=>(e[e.ToggleDisclosure=0]="ToggleDisclosure",e[e.CloseDisclosure=1]="CloseDisclosure",e[e.SetButtonId=2]="SetButtonId",e[e.SetPanelId=3]="SetPanelId",e[e.LinkPanel=4]="LinkPanel",e[e.UnlinkPanel=5]="UnlinkPanel",e))(Nf||{});let Lf={0:e=>({...e,disclosureState:re(e.disclosureState,{0:1,1:0})}),1:e=>e.disclosureState===1?e:{...e,disclosureState:1},4(e){return e.linkedPanel===!0?e:{...e,linkedPanel:!0}},5(e){return e.linkedPanel===!1?e:{...e,linkedPanel:!1}},2(e,t){return e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId}},3(e,t){return e.panelId===t.panelId?e:{...e,panelId:t.panelId}}},bo=s.createContext(null);bo.displayName="DisclosureContext";function xo(e){let t=s.useContext(bo);if(t===null){let n=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,xo),n}return t}let wo=s.createContext(null);wo.displayName="DisclosureAPIContext";function js(e){let t=s.useContext(wo);if(t===null){let n=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,js),n}return t}let yo=s.createContext(null);yo.displayName="DisclosurePanelContext";function kf(){return s.useContext(yo)}function Ff(e,t){return re(t.type,Lf,e,t)}let jf=s.Fragment;function Vf(e,t){let{defaultOpen:n=!1,...r}=e,o=s.useRef(null),i=ue(t,Es(g=>{o.current=g},e.as===void 0||e.as===s.Fragment)),a=s.useRef(null),l=s.useRef(null),c=s.useReducer(Ff,{disclosureState:n?0:1,linkedPanel:!1,buttonRef:l,panelRef:a,buttonId:null,panelId:null}),[{disclosureState:u,buttonId:d},f]=c,m=A(g=>{f({type:1});let b=qt(o);if(!b||!d)return;let x=(()=>g?g instanceof HTMLElement?g:g.current instanceof HTMLElement?g.current:b.getElementById(d):b.getElementById(d))();x==null||x.focus()}),p=s.useMemo(()=>({close:m}),[m]),h=s.useMemo(()=>({open:u===0,close:m}),[u,m]),v={ref:i};return L.createElement(bo.Provider,{value:c},L.createElement(wo.Provider,{value:p},L.createElement(jn,{value:re(u,{0:le.Open,1:le.Closed})},ae({ourProps:v,theirProps:r,slot:h,defaultTag:jf,name:"Disclosure"}))))}let Bf="button";function Hf(e,t){let n=ve(),{id:r=`headlessui-disclosure-button-${n}`,...o}=e,[i,a]=xo("Disclosure.Button"),l=kf(),c=l===null?!1:l===i.panelId,u=s.useRef(null),d=ue(u,t,c?null:i.buttonRef),f=Rs();s.useEffect(()=>{if(!c)return a({type:2,buttonId:r}),()=>{a({type:2,buttonId:null})}},[r,a,c]);let m=A(x=>{var w;if(c){if(i.disclosureState===1)return;switch(x.key){case J.Space:case J.Enter:x.preventDefault(),x.stopPropagation(),a({type:0}),(w=i.buttonRef.current)==null||w.focus();break}}else switch(x.key){case J.Space:case J.Enter:x.preventDefault(),x.stopPropagation(),a({type:0});break}}),p=A(x=>{switch(x.key){case J.Space:x.preventDefault();break}}),h=A(x=>{var w;Vn(x.currentTarget)||e.disabled||(c?(a({type:0}),(w=i.buttonRef.current)==null||w.focus()):a({type:0}))}),v=s.useMemo(()=>({open:i.disclosureState===0}),[i]),g=fo(e,u),b=c?{ref:d,type:g,onKeyDown:m,onClick:h}:{ref:d,id:r,type:g,"aria-expanded":i.disclosureState===0,"aria-controls":i.linkedPanel?i.panelId:void 0,onKeyDown:m,onKeyUp:p,onClick:h};return ae({mergeRefs:f,ourProps:b,theirProps:o,slot:v,defaultTag:Bf,name:"Disclosure.Button"})}let Wf="div",Uf=De.RenderStrategy|De.Static;function Kf(e,t){let n=ve(),{id:r=`headlessui-disclosure-panel-${n}`,...o}=e,[i,a]=xo("Disclosure.Panel"),{close:l}=js("Disclosure.Panel"),c=Rs(),u=ue(t,i.panelRef,h=>{Mf(()=>a({type:h?4:5}))});s.useEffect(()=>(a({type:3,panelId:r}),()=>{a({type:3,panelId:null})}),[r,a]);let d=It(),f=(()=>d!==null?(d&le.Open)===le.Open:i.disclosureState===0)(),m=s.useMemo(()=>({open:i.disclosureState===0,close:l}),[i,l]),p={ref:u,id:r};return L.createElement(yo.Provider,{value:i.panelId},ae({mergeRefs:c,ourProps:p,theirProps:o,slot:m,defaultTag:Wf,features:Uf,visible:f,name:"Disclosure.Panel"}))}let zf=ie(Vf),Gf=ie(Hf),Yf=ie(Kf),Xw=Object.assign(zf,{Button:Gf,Panel:Yf}),gi=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function bi(e){var t,n;let r=(t=e.innerText)!=null?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let i=!1;for(let l of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))l.remove(),i=!0;let a=i?(n=o.innerText)!=null?n:"":r;return gi.test(a)&&(a=a.replace(gi,"")),a}function Zf(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(o=>{let i=document.getElementById(o);if(i){let a=i.getAttribute("aria-label");
23return typeof a=="string"?a.trim():bi(i).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return bi(e).trim()}function Xf(e){let t=s.useRef(""),n=s.useRef("");return A(()=>{let r=e.current;if(!r)return"";let o=r.innerText;if(t.current===o)return n.current;let i=Zf(r).trim().toLowerCase();return t.current=o,n.current=i,i})}var qf=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(qf||{}),Qf=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Qf||{}),Jf=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Jf||{}),ep=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(ep||{});function wr(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=co(t(e.options.slice()),i=>i.dataRef.current.domRef.current),o=n?r.indexOf(n):null;return o===-1&&(o=null),{options:r,activeOptionIndex:o}}let tp={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(o=>n(o.dataRef.current.value));return r!==-1&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=wr(e),o=jr(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:i=>i.id,resolveDisabled:i=>i.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:o,activationTrigger:(n=t.trigger)!=null?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(a=>{var l;return!a.dataRef.current.disabled&&((l=a.dataRef.current.textValue)==null?void 0:l.startsWith(r))}),i=o?e.options.indexOf(o):-1;return i===-1||i===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:i,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=wr(e,o=>[...o,n]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=wr(e,r=>{let o=r.findIndex(i=>i.id===t.id);return o!==-1&&r.splice(o,1),r});return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},Co=s.createContext(null);Co.displayName="ListboxActionsContext";function tn(e){let t=s.useContext(Co);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,tn),n}return t}let Eo=s.createContext(null);Eo.displayName="ListboxDataContext";function nn(e){let t=s.useContext(Eo);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,nn),n}return t}function np(e,t){return re(t.type,tp,e,t)}let rp=s.Fragment;function op(e,t){let{value:n,defaultValue:r,form:o,name:i,onChange:a,by:l=(H,G)=>H===G,disabled:c=!1,horizontal:u=!1,multiple:d=!1,...f}=e;const m=u?"horizontal":"vertical";let p=ue(t),[h=d?[]:void 0,v]=hs(n,a,r),[g,b]=s.useReducer(np,{dataRef:s.createRef(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),x=s.useRef({static:!1,hold:!1}),w=s.useRef(null),C=s.useRef(null),E=s.useRef(null),P=A(typeof l=="string"?(H,G)=>{let Q=l;return(H==null?void 0:H[Q])===(G==null?void 0:G[Q])}:l),R=s.useCallback(H=>re($.mode,{1:()=>h.some(G=>P(G,H)),0:()=>P(h,H)}),[h]),$=s.useMemo(()=>({...g,value:h,disabled:c,mode:d?1:0,orientation:m,compare:P,isSelected:R,optionsPropsRef:x,labelRef:w,buttonRef:C,optionsRef:E}),[h,c,d,g]);oe(()=>{g.dataRef.current=$},[$]),uo([$.buttonRef,$.optionsRef],(H,G)=>{var Q;b({type:1}),bs(G,lo.Loose)||(H.preventDefault(),(Q=$.buttonRef.current)==null||Q.focus())},$.listboxState===0);let N=s.useMemo(()=>({open:$.listboxState===0,disabled:c,value:h}),[$,c,h]),_=A(H=>{let G=$.options.find(Q=>Q.id===H);G&&k(G.dataRef.current.value)}),I=A(()=>{if($.activeOptionIndex!==null){let{dataRef:H,id:G}=$.options[$.activeOptionIndex];k(H.current.value),b({type:2,focus:ne.Specific,id:G})}}),V=A(()=>b({type:0})),K=A(()=>b({type:1})),O=A((H,G,Q)=>H===ne.Specific?b({type:2,focus:ne.Specific,id:G,trigger:Q}):b({type:2,focus:H,trigger:Q})),S=A((H,G)=>(b({type:5,id:H,dataRef:G}),()=>b({type:6,id:H}))),D=A(H=>(b({type:7,id:H}),()=>b({type:7,id:null}))),k=A(H=>re($.mode,{0(){return v==null?void 0:v(H)},1(){let G=$.value.slice(),Q=G.findIndex(B=>P(B,H));return Q===-1?G.push(H):G.splice(Q,1),v==null?void 0:v(G)}})),M=A(H=>b({type:3,value:H})),T=A(()=>b({type:4})),z=s.useMemo(()=>({onChange:k,registerOption:S,registerLabel:D,goToOption:O,closeListbox:K,openListbox:V,selectActiveOption:I,selectOption:_,search:M,clearSearch:T}),[]),X={ref:p},q=s.useRef(null),se=Me();return s.useEffect(()=>{q.current&&r!==void 0&&se.addEventListener(q.current,"reset",()=>{v==null||v(r)})},[q,v]),L.createElement(Co.Provider,{value:z},L.createElement(Eo.Provider,{value:$},L.createElement(jn,{value:re($.listboxState,{0:le.Open,1:le.Closed})},i!=null&&h!=null&&vo({[i]:h}).map(([H,G],Q)=>L.createElement(Ht,{features:Et.Hidden,ref:Q===0?B=>{var Z;q.current=(Z=B==null?void 0:B.closest("form"))!=null?Z:null}:void 0,...Tn({key:H,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,disabled:c,name:H,value:G})})),ae({ourProps:X,theirProps:f,slot:N,defaultTag:rp,name:"Listbox"}))))}let ip="button";function sp(e,t){var n;let r=ve(),{id:o=`headlessui-listbox-button-${r}`,...i}=e,a=nn("Listbox.Button"),l=tn("Listbox.Button"),c=ue(a.buttonRef,t),u=Me(),d=A(g=>{switch(g.key){case J.Space:case J.Enter:case J.ArrowDown:g.preventDefault(),l.openListbox(),u.nextFrame(()=>{a.value||l.goToOption(ne.First)});break;case J.ArrowUp:g.preventDefault(),l.openListbox(),u.nextFrame(()=>{a.value||l.goToOption(ne.Last)});break}}),f=A(g=>{switch(g.key){case J.Space:g.preventDefault();break}}),m=A(g=>{if(Vn(g.currentTarget))return g.preventDefault();a.listboxState===0?(l.closeListbox(),u.nextFrame(()=>{var b;return(b=a.buttonRef.current)==null?void 0:b.focus({preventScroll:!0})}
23)):(g.preventDefault(),l.openListbox())}),p=Xt(()=>{if(a.labelId)return[a.labelId,o].join(" ")},[a.labelId,o]),h=s.useMemo(()=>({open:a.listboxState===0,disabled:a.disabled,value:a.value}),[a]),v={ref:c,id:o,type:fo(e,a.buttonRef),"aria-haspopup":"listbox","aria-controls":(n=a.optionsRef.current)==null?void 0:n.id,"aria-expanded":a.listboxState===0,"aria-labelledby":p,disabled:a.disabled,onKeyDown:d,onKeyUp:f,onClick:m};return ae({ourProps:v,theirProps:i,slot:h,defaultTag:ip,name:"Listbox.Button"})}let ap="label";function lp(e,t){let n=ve(),{id:r=`headlessui-listbox-label-${n}`,...o}=e,i=nn("Listbox.Label"),a=tn("Listbox.Label"),l=ue(i.labelRef,t);oe(()=>a.registerLabel(r),[r]);let c=A(()=>{var d;return(d=i.buttonRef.current)==null?void 0:d.focus({preventScroll:!0})}),u=s.useMemo(()=>({open:i.listboxState===0,disabled:i.disabled}),[i]);return ae({ourProps:{ref:l,id:r,onClick:c},theirProps:o,slot:u,defaultTag:ap,name:"Listbox.Label"})}let cp="ul",up=De.RenderStrategy|De.Static;function dp(e,t){var n;let r=ve(),{id:o=`headlessui-listbox-options-${r}`,...i}=e,a=nn("Listbox.Options"),l=tn("Listbox.Options"),c=ue(a.optionsRef,t),u=Me(),d=Me(),f=It(),m=(()=>f!==null?(f&le.Open)===le.Open:a.listboxState===0)();s.useEffect(()=>{var b;let x=a.optionsRef.current;x&&a.listboxState===0&&x!==((b=qt(x))==null?void 0:b.activeElement)&&x.focus({preventScroll:!0})},[a.listboxState,a.optionsRef]);let p=A(b=>{switch(d.dispose(),b.key){case J.Space:if(a.searchQuery!=="")return b.preventDefault(),b.stopPropagation(),l.search(b.key);case J.Enter:if(b.preventDefault(),b.stopPropagation(),a.activeOptionIndex!==null){let{dataRef:x}=a.options[a.activeOptionIndex];l.onChange(x.current.value)}a.mode===0&&(l.closeListbox(),Re().nextFrame(()=>{var x;return(x=a.buttonRef.current)==null?void 0:x.focus({preventScroll:!0})}
23));break;case re(a.orientation,{vertical:J.ArrowDown,horizontal:J.ArrowRight}):return b.preventDefault(),b.stopPropagation(),l.goToOption(ne.Next);case re(a.orientation,{vertical:J.ArrowUp,horizontal:J.ArrowLeft}):return b.preventDefault(),b.stopPropagation(),l.goToOption(ne.Previous);case J.Home:case J.PageUp:return b.preventDefault(),b.stopPropagation(),l.goToOption(ne.First);case J.End:case J.PageDown:return b.preventDefault(),b.stopPropagation(),l.goToOption(ne.Last);case J.Escape:return b.preventDefault(),b.stopPropagation(),l.closeListbox(),u.nextFrame(()=>{var x;return(x=a.buttonRef.current)==null?void 0:x.focus({preventScroll:!0})});case J.Tab:b.preventDefault(),b.stopPropagation();break;default:b.key.length===1&&(l.search(b.key),d.setTimeout(()=>l.clearSearch(),350));break}}),h=Xt(()=>{var b;return(b=a.buttonRef.current)==null?void 0:b.id},[a.buttonRef.current]),v=s.useMemo(()=>({open:a.listboxState===0}),[a]),g={"aria-activedescendant":a.activeOptionIndex===null||(n=a.options[a.activeOptionIndex])==null?void 0:n.id,"aria-multiselectable":a.mode===1?!0:void 0,"aria-labelledby":h,"aria-orientation":a.orientation,id:o,onKeyDown:p,role:"listbox",tabIndex:0,ref:c};return ae({ourProps:g,theirProps:i,slot:v,defaultTag:cp,features:up,visible:m,name:"Listbox.Options"})}let fp="li";function pp(e,t){let n=ve(),{id:r=`headlessui-listbox-option-${n}`,disabled:o=!1,value:i,...a}=e,l=nn("Listbox.Option"),c=tn("Listbox.Option"),u=l.activeOptionIndex!==null?l.options[l.activeOptionIndex].id===r:!1,d=l.isSelected(i),f=s.useRef(null),m=Xf(f),p=Ee({disabled:o,value:i,domRef:f,get textValue(){return m()}}),h=ue(t,f);oe(()=>{if(l.listboxState!==0||!u||l.activationTrigger===0)return;let P=Re();return P.requestAnimationFrame(()=>{var R,$;($=(R=f.current)==null?void 0:R.scrollIntoView)==null||$.call(R,{block:"nearest"})}),P.dispose},[f,u,l.listboxState,l.activationTrigger,l.activeOptionIndex]),oe(()=>c.registerOption(r,p),[p,r]);let v=A(P=>{if(o)return P.preventDefault();c.onChange(i),l.mode===0&&(c.closeListbox(),Re().nextFrame(()=>{var R;return(R=l.buttonRef.current)==null?void 0:R.focus({preventScroll:!0})}
23))}),g=A(()=>{if(o)return c.goToOption(ne.Nothing);c.goToOption(ne.Specific,r)}),b=Ss(),x=A(P=>b.update(P)),w=A(P=>{b.wasMoved(P)&&(o||u||c.goToOption(ne.Specific,r,0))}),C=A(P=>{b.wasMoved(P)&&(o||u&&c.goToOption(ne.Nothing))}),E=s.useMemo(()=>({active:u,selected:d,disabled:o}),[u,d,o]);return ae({ourProps:{id:r,ref:h,role:"option",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,"aria-selected":d,disabled:void 0,onClick:v,onFocus:g,onPointerEnter:x,onMouseEnter:x,onPointerMove:w,onMouseMove:w,onPointerLeave:C,onMouseLeave:C},theirProps:a,slot:E,defaultTag:fp,name:"Listbox.Option"})}let vp=ie(op),mp=ie(sp),hp=ie(lp),gp=ie(dp),bp=ie(pp),qw=Object.assign(vp,{Button:mp,Label:hp,Options:gp,Option:bp});function xp(e=0){let[t,n]=s.useState(e),r=Jt(),o=s.useCallback(c=>{r.current&&n(u=>u|c)},[t,r]),i=s.useCallback(c=>!!(t&c),[t]),a=s.useCallback(c=>{r.current&&n(u=>u&~c)},[n,r]),l=s.useCallback(c=>{r.current&&n(u=>u^c)},[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:l}}function wp(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function yr(e,...t){e&&t.length>0&&e.classList.add(...t)}function Cr(e,...t){e&&t.length>0&&e.classList.remove(...t)}function yp(e,t){let n=Re();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,a]=[r,o].map(c=>{let[u=0]=c.split(",").filter(Boolean).map(d=>d.includes("ms")?parseFloat(d):parseFloat(d)*1e3).sort((d,f)=>f-d);return u}),l=i+a;if(l!==0){n.group(u=>{u.setTimeout(()=>{t(),u.dispose()},l),u.addEventListener(e,"transitionrun",d=>{d.target===d.currentTarget&&u.dispose()})});let c=n.addEventListener(e,"transitionend",u=>{u.target===u.currentTarget&&(t(),c())})}else t();return n.add(()=>t()),n.dispose}function Cp(e,t,n,r){let o=n?"enter":"leave",i=Re(),a=r!==void 0?wp(r):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let l=re(o,{enter:()=>t.enter,leave:()=>t.leave}),c=re(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),u=re(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Cr(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),yr(e,...t.base,...l,...u),i.nextFrame(()=>{Cr(e,...t.base,...l,...u),yr(e,...t.base,...l,...c),yp(e,()=>(Cr(e,...t.base,...l),yr(e,...t.base,...t.entered),a()))}),i.dispose}function Ep({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let a=Jt(),l=Me(),c=Ee(n);oe(()=>{e&&(c.current="enter")},[e]),oe(()=>{let u=Re();l.add(u.dispose);let d=t.current;if(d&&c.current!=="idle"&&a.current)return u.dispose(),o.current(c.current),u.add(Cp(d,r.current,c.current==="enter",()=>{u.dispose(),i.current(c.current)})),u.dispose},[n])}function Ke(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Bn=s.createContext(null);Bn.displayName="TransitionContext";var Sp=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Sp||{});function Rp(){let e=s.useContext(Bn);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function $p(){let e=s.useContext(Hn);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Hn=s.createContext(null);Hn.displayName="NestingContext";function Wn(e){return"children"in e?Wn(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Vs(e,t){let n=Ee(e),r=s.useRef([]),o=Jt(),i=Me(),a=A((p,h=Ye.Hidden)=>{let v=r.current.findIndex(({el:g})=>g===p);v!==-1&&(re(h,{[Ye.Unmount](){r.current.splice(v,1)},[Ye.Hidden](){r.current[v].state="hidden"}}),i.microTask(()=>{var g;!Wn(r)&&o.current&&((g=n.current)==null||g.call(n))}))}),l=A(p=>{let h=r.current.find(({el:v})=>v===p);return h?h.state!=="visible"&&(h.state="visible"):r.current.push({el:p,state:"visible"}),()=>a(p,Ye.Unmount)}),c=s.useRef([]),u=s.useRef(Promise.resolve()),d=s.useRef({enter:[],leave:[],idle:[]}),f=A((p,h,v)=>{c.current.splice(0),t&&(t.chains.current[h]=t.chains.current[h].filter(([g])=>g!==p)),t==null||t.chains.current[h].push([p,new Promise(g=>{c.current.push(g)})]),t==null||t.chains.current[h].push([p,new Promise(g=>{Promise.all(d.current[h].map(([b,x])=>x)).then(()=>g())})]),h==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>v(h)):v(h)}),m=A((p,h,v)=>{Promise.all(d.current[h].splice(0).map(([g,b])=>b)).then(()=>{var g;(g=c.current.shift())==null||g()}).then(()=>v(h))});return s.useMemo(()=>({children:r,register:l,unregister:a,onStart:f,onStop:m,wait:u,chains:d}),[l,a,r,f,m,d,u])}function Pp(){}let Tp=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function xi(e){var t;let n={};for(let r of Tp)n[r]=(t=e[r])!=null?t:Pp;return n}function Op(e){let t=s.useRef(xi(e));return s.useEffect(()=>{t.current=xi(e)},[e]),t}let Ip="div",Bs=De.RenderStrategy;function _p(e,t){var n,r;let{beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:l,enter:c,enterFrom:u,enterTo:d,entered:f,leave:m,leaveFrom:p,leaveTo:h,...v}=e,g=s.useRef(null),b=ue(g,t),x=(n=v.unmount)==null||n?Ye.Unmount:Ye.Hidden,{show:w,appear:C,initial:E}=Rp(),[P,R]=s.useState(w?"visible":"hidden"),$=$p(),{register:N,unregister:_}=$;s.useEffect(()=>N(g),[N,g]),s.useEffect(()=>{if(x===Ye.Hidden&&g.current){if(w&&P!=="visible"){R("visible");return}return re(P,{hidden:()=>_(g),visible:()=>N(g)})}},[P,g,N,_,w,x]);
23let I=Ee({base:Ke(v.className),enter:Ke(c),enterFrom:Ke(u),enterTo:Ke(d),entered:Ke(f),leave:Ke(m),leaveFrom:Ke(p),leaveTo:Ke(h)}),V=Op({beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:l}),K=Tt();s.useEffect(()=>{if(K&&P==="visible"&&g.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[g,P,K]);let O=E&&!C,S=C&&w&&E,D=(()=>!K||O?"idle":w?"enter":"leave")(),k=xp(0),M=A(H=>re(H,{enter:()=>{k.addFlag(le.Opening),V.current.beforeEnter()},leave:()=>{k.addFlag(le.Closing),V.current.beforeLeave()},idle:()=>{}})),T=A(H=>re(H,{enter:()=>{k.removeFlag(le.Opening),V.current.afterEnter()},leave:()=>{k.removeFlag(le.Closing),V.current.afterLeave()},idle:()=>{}})),z=Vs(()=>{R("hidden"),_(g)},$),X=s.useRef(!1);Ep({immediate:S,container:g,classes:I,direction:D,onStart:Ee(H=>{X.current=!0,z.onStart(g,H,M)}),onStop:Ee(H=>{X.current=!1,z.onStop(g,H,T),H==="leave"&&!Wn(z)&&(R("hidden"),_(g))})});let q=v,se={ref:b};return S?q={...q,className:Pn(v.className,...I.current.enter,...I.current.enterFrom)}:X.current&&(q.className=Pn(v.className,(r=g.current)==null?void 0:r.className),q.className===""&&delete q.className),L.createElement(Hn.Provider,{value:z},L.createElement(jn,{value:re(P,{visible:le.Open,hidden:le.Closed})|k.flags},ae({ourProps:se,theirProps:q,defaultTag:Ip,features:Bs,visible:P==="visible",name:"Transition.Child"})))}function Ap(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,a=s.useRef(null),l=ue(a,t);Tt();let c=It();if(n===void 0&&c!==null&&(n=(c&le.Open)===le.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,d]=s.useState(n?"visible":"hidden"),f=Vs(()=>{d("hidden")}),[m,p]=s.useState(!0),h=s.useRef([n]);oe(()=>{m!==!1&&h.current[h.current.length-1]!==n&&(h.current.push(n),p(!1))},[h,n]);let v=s.useMemo(()=>({show:n,appear:r,initial:m}),[n,r,m]);s.useEffect(()=>{if(n)d("visible");else if(!Wn(f))d("hidden");else{let w=a.current;if(!w)return;let C=w.getBoundingClientRect();C.x===0&&C.y===0&&C.width===0&&C.height===0&&d("hidden")}},[n,f]);let g={unmount:o},b=A(()=>{var w;m&&p(!1),(w=e.beforeEnter)==null||w.call(e)}),x=A(()=>{var w;m&&p(!1),(w=e.beforeLeave)==null||w.call(e)});return L.createElement(Hn.Provider,{value:f},L.createElement(Bn.Provider,{value:v},ae({ourProps:{...g,as:s.Fragment,children:L.createElement(Hs,{ref:l,...g,...i,beforeEnter:b,beforeLeave:x})},theirProps:{},defaultTag:s.Fragment,features:Bs,visible:u==="visible",name:"Transition"})))}function Mp(e,t){let n=s.useContext(Bn)!==null,r=It()!==null;return L.createElement(L.Fragment,null,!n&&r?L.createElement(Ur,{ref:t,...e}):L.createElement(Hs,{ref:t,...e}))}let Ur=ie(Ap),Hs=ie(_p),Dp=ie(Mp),Qw=Object.assign(Ur,{Child:Dp,Root:Ur});function W(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function wi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function pe(...e){return t=>{let n=!1;const r=e.map(o=>{const i=wi(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():wi(e[o],null)}}}}function ce(...e){return s.useCallback(pe(...e),e)}function Np(e,t=[]){let n=[];function r(i,a){const l=s.createContext(a),c=n.length;n=[...n,a];const u=f=>{var b;const{scope:m,children:p,...h}=f,v=((b=m==null?void 0:m[e])==null?void 0:b[c])||l,g=s.useMemo(()=>h,Object.values(h));return y.jsx(v.Provider,{value:g,children:p})};u.displayName=i+"Provider";function d(f,m){var v;const p=((v=m==null?void 0:m[e])==null?void 0:v[c])||l,h=s.useContext(p);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(a=>s.createContext(a));return function(l){const c=(l==null?void 0:l[e])||i;return s.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,Lp(o,...t)]}function Lp(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));
23return function(i){const a=r.reduce((l,{useScope:c,scopeName:u})=>{const f=c(i)[`__scope${u}`];return{...l,...f}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function kp(e){const t=Fp(e),n=s.forwardRef((r,o)=>{const{children:i,...a}=r,l=s.Children.toArray(i),c=l.find(Vp);if(c){const u=c.props.children,d=l.map(f=>f===c?s.Children.count(u)>1?s.Children.only(null):s.isValidElement(u)?u.props.children:null:f);return y.jsx(t,{...a,ref:o,children:s.isValidElement(u)?s.cloneElement(u,void 0,d):null})}return y.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Fp(e){const t=s.forwardRef((n,r)=>{const{children:o,...i}=n;if(s.isValidElement(o)){const a=Hp(o),l=Bp(i,o.props);return o.type!==s.Fragment&&(l.ref=r?pe(r,a):a),s.cloneElement(o,l)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var jp=Symbol("radix.slottable");function Vp(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===jp}function Bp(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Hp(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Wp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ws=Wp.reduce((e,t)=>{const n=kp(`Primitive.${t}`),r=s.forwardRef((o,i)=>{const{asChild:a,...l}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(c,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Up(e,t){e&&Le.flushSync(()=>e.dispatchEvent(t))}function Ce(e){const t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Kp(e,t=globalThis==null?void 0:globalThis.document){const n=Ce(e);s.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var zp="DismissableLayer",Kr="dismissableLayer.update",Gp="dismissableLayer.pointerDownOutside",Yp="dismissableLayer.focusOutside",yi,Us=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rn=s.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:l,...c}=e,u=s.useContext(Us),[d,f]=s.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=s.useState({}),h=ce(t,R=>f(R)),v=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(g),x=d?v.indexOf(d):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,C=x>=b,E=Xp(R=>{const $=R.target,N=[...u.branches].some(_=>_.contains($));!C||N||(o==null||o(R),a==null||a(R),R.defaultPrevented||l==null||l())},m),P=qp(R=>{const $=R.target;[...u.branches].some(_=>_.contains($))||(i==null||i(R),a==null||a(R),R.defaultPrevented||l==null||l())},m);return Kp(R=>{x===u.layers.size-1&&(r==null||r(R),!R.defaultPrevented&&l&&(R.preventDefault(),l()))},m),s.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(yi=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Ci(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=yi)}},[d,m,n,u]),s.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Ci())},[d,u]),s.useEffect(()=>{const R=()=>p({});return document.addEventListener(Kr,R),()=>document.removeEventListener(Kr,R)},[]),y.jsx(Ws.div,{...c,ref:h,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:W(e.onFocusCapture,P.onFocusCapture),onBlurCapture:W(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:W(e.onPointerDownCapture,E.onPointerDownCapture)})});rn.displayName=zp;var Zp="DismissableLayerBranch",Ks=s.forwardRef((e,t)=>
23{const n=s.useContext(Us),r=s.useRef(null),o=ce(t,r);return s.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),y.jsx(Ws.div,{...e,ref:o})});Ks.displayName=Zp;function Xp(e,t=globalThis==null?void 0:globalThis.document){const n=Ce(e),r=s.useRef(!1),o=s.useRef(()=>{});return s.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let c=function(){zs(Gp,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function qp(e,t=globalThis==null?void 0:globalThis.document){const n=Ce(e),r=s.useRef(!1);return s.useEffect(()=>{const o=i=>{i.target&&!r.current&&zs(Yp,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ci(){const e=new CustomEvent(Kr);document.dispatchEvent(e)}function zs(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Up(o,i):o.dispatchEvent(i)}var Qp=rn,Jp=Ks,Be=globalThis!=null&&globalThis.document?s.useLayoutEffect:()=>{},ev=Ve[" useId ".trim().toString()]||(()=>{}),tv=0;function Wt(e){const[t,n]=s.useState(ev());return Be(()=>{e||n(r=>r??String(tv++))},[e]),e||(t?`radix-${t}`:"")}const nv=["top","right","bottom","left"],Xe=Math.min,we=Math.max,In=Math.round,mn=Math.floor,Ae=e=>({x:e,y:e}),rv={left:"right",right:"left",bottom:"top",top:"bottom"},ov={start:"end",end:"start"};function zr(e,t,n){return we(e,Xe(t,n))}function He(e,t){return typeof e=="function"?e(t):e}function We(e){return e.split("-")[0]}function _t(e){return e.split("-")[1]}function So(e){return e==="x"?"y":"x"}function Ro(e){return e==="y"?"height":"width"}const iv=new Set(["top","bottom"]);function _e(e){return iv.has(We(e))?"y":"x"}function $o(e){return So(_e(e))}function sv(e,t,n){n===void 0&&(n=!1);const r=_t(e),o=$o(e),i=Ro(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=_n(a)),[a,_n(a)]}function av(e){const t=_n(e);return[Gr(e),t,Gr(t)]}function Gr(e){return e.replace(/start|end/g,t=>ov[t])}const Ei=["left","right"],Si=["right","left"],lv=["top","bottom"],cv=["bottom","top"];function uv(e,t,n){switch(e){case"top":case"bottom":return n?t?Si:Ei:t?Ei:Si;case"left":case"right":return t?lv:cv;default:return[]}}function dv(e,t,n,r){const o=_t(e);let i=uv(We(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(Gr)))),i}function _n(e){return e.replace(/left|right|bottom|top/g,t=>rv[t])}function fv(e){return{top:0,right:0,bottom:0,left:0,...e}}function Gs(e){return typeof e!="number"?fv(e):{top:e,right:e,bottom:e,left:e}}function An(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ri(e,t,n){let{reference:r,floating:o}=e;const i=_e(t),a=$o(t),l=Ro(a),c=We(t),u=i==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,m=r[l]/2-o[l]/2;let p;switch(c){case"top":p={x:d,y:r.y-o.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(_t(t)){case"start":p[a]-=m*(n&&u?-1:1);break;case"end":p[a]+=m*(n&&u?-1:1);break}return p}const pv=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Ri(u,r,c),m=r,p={},h=0;for(let v=0;v<l.length;v++){const{name:g,fn:b}=l[v],{x,y:w,data:C,reset:E}=await b({x:d,y:f,initialPlacement:r,placement:m,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});d=x??d,f=w??f,p={...p,[g]:{...p[g],...C}},E&&h<=50&&(h++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(u=E.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:d,y:f}=Ri(u,m,c)),v=-1)}return{x:d,y:f,placement:m,strategy:o,middlewareData:p}};async function Ut(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:m=!1,padding:p=0}=He(t,e),h=Gs(p),g=l[m?f==="floating"?"reference":"floating":f],b=An(await i.getClippingRect
vendor: 7,387 bytes, line 23
23({element:(n=await(i.isElement==null?void 0:i.isElement(g)))==null||n?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),x=f==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),C=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},E=An(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:x,offsetParent:w,strategy:c}):x);return{top:(b.top-E.top+h.top)/C.y,bottom:(E.bottom-b.bottom+h.bottom)/C.y,left:(b.left-E.left+h.left)/C.x,right:(E.right-b.right+h.right)/C.x}}const vv=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:c}=t,{element:u,padding:d=0}=He(e,t)||{};if(u==null)return{};const f=Gs(d),m={x:n,y:r},p=$o(o),h=Ro(p),v=await a.getDimensions(u),g=p==="y",b=g?"top":"left",x=g?"bottom":"right",w=g?"clientHeight":"clientWidth",C=i.reference[h]+i.reference[p]-m[p]-i.floating[h],E=m[p]-i.reference[p],P=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let R=P?P[w]:0;(!R||!await(a.isElement==null?void 0:a.isElement(P)))&&(R=l.floating[w]||i.floating[h]);const $=C/2-E/2,N=R/2-v[h]/2-1,_=Xe(f[b],N),I=Xe(f[x],N),V=_,K=R-v[h]-I,O=R/2-v[h]/2+$,S=zr(V,O,K),D=!c.arrow&&_t(o)!=null&&O!==S&&i.reference[h]/2-(O<V?_:I)-v[h]/2<0,k=D?O<V?O-V:O-K:0;return{[p]:m[p]+k,data:{[p]:S,centerOffset:O-S-k,...D&&{alignmentOffset:k}},reset:D}}}),mv=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...g}=He(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const b=We(o),x=_e(l),w=We(l)===l,C=await(c.isRTL==null?void 0:c.isRTL(u.floating)),E=m||(w||!v?[_n(l)]:av(l)),P=h!=="none";!m&&P&&E.push(...dv(l,v,h,C));const R=[l,...E],$=await Ut(t,g),N=[];let _=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&N.push($[b]),f){const O=sv(o,a,C);N.push($[O[0]],$[O[1]])}if(_=[..._,{placement:o,overflows:N}],!N.every(O=>O<=0)){var I,V;const O=(((I=i.flip)==null?void 0:I.index)||0)+1,S=R[O];if(S&&(!(f==="alignment"?x!==_e(S):!1)||_.every(M=>_e(M.placement)===x?M.overflows[0]>0:!0)))return{data:{index:O,overflows:_},reset:{placement:S}};let D=(V=_.filter(k=>k.overflows[0]<=0).sort((k,M)=>k.overflows[1]-M.overflows[1])[0])==null?void 0:V.placement;if(!D)switch(p){case"bestFit":{var K;const k=(K=_.filter(M=>{if(P){const T=_e(M.placement);return T===x||T==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(T=>T>0).reduce((T,z)=>T+z,0)]).sort((M,T)=>M[1]-T[1])[0])==null?void 0:K[0];k&&(D=k);break}case"initialPlacement":D=l;break}if(o!==D)return{reset:{placement:D}}}return{}}}};function $i(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pi(e){return nv.some(t=>e[t]>=0)}const hv=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=He(e,t);switch(r){case"referenceHidden":{const i=await Ut(t,{...o,elementContext:"reference"}),a=$i(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Pi(a)}}}case"escaped":{const i=await Ut(t,{...o,altBoundary:!0}),a=$i(i,n.floating);return{data:{escapedOffsets:a,escaped:Pi(a)}}}default:return{}}}}},Ys=new Set(["left","top"]);async function gv(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=We(n),l=_t(n),c=_e(n)==="y",u=Ys.has(a)?-1:1,d=i&&c?-1:1,f=He(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof h=="number"&&(p=l==="end"?h*-1:h),c?{x:p*d,y:m*u}:{x:m*u,y:p*d}}const bv=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:l}=t,c=await gv(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},xv=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:g=>{let{x:b,y:x}=g;return{x:b,y:x}}},...c}=He(e,t),u={x:n,y:r},d=await Ut(t,c),f=_e(We(o)),m=So(f);let p=u[m],h=u[f];if(i){const g=m==="y"?"top":"left",b=m==="y"?"bottom":"right",x=p+d[g],w=p-d[b];p=zr(x,p,w)}if(a){const g=f==="y"?"top":"left",b=f==="y"?"bottom":"right",x=h+d[g],w=h-d[b];h=zr(x,h,w)}const v=l.fn({...t,[m]:p,[f]:h});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[m]:i,[f]:a}}}}}},wv=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=He(e,t),d={x:n,y:r},f=_e(o),m=So(f);let p=d[m],h=d[f];const v=He(l,t),g=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){const w=m==="y"?"height":"width",C=i.reference[m]-i.floating[w]+g.mainAxis,E=i.reference[m]+i.reference[w]-g.mainAxis;p<C?p=C:p>E&&(p=E)}if(u){var b,x;const w=m==="y"?"width":"height",C=Ys.has(We(o)),E=i.reference[f]-i.floating[w]+(C&&((b=a.offset)==null?void 0:b[f])||0)+(C?0:g.crossAxis),P=i.reference[f]+i.reference[w]+(C?0:((x=a.offset)==null?void 0:x[f])||0)-(C?g.crossAxis:0);h<E?h=E:h>P&&(h=P)}return{[m]:p,[f]:h}}}},yv=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:l}=t,{apply:c=()=>{},...u}=He(e,t),d=await Ut(t,u),f=We(o),m=_t(o),p=_e(o)==="y",{width:h,height:v}=i.floating;let g,b;f==="top"||f==="bottom"?(g=f,b=m===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(b=f,g=m==="end"?"top":"bottom");const x=v-d.top-d.bottom,w=h-d.left-d.right,C=Xe(v-d[g],x),E=Xe(h-d[b],w),P=!t.middlewareData.shift;let R=C,$=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&($=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=x),P&&!m){const _=we(d.left,0),I=we(d.right,0),V=we(d.top,0),K=we(d.bottom,0);p?$=h-2*(_!==0||I!==0?_+I:we(d.left,d.right)):R=v-2*(V!==0||K!==0?V+K:we(d.top,d.bottom))}await c({...t,availableWidth:$,availableHeight:R});const N=await a.getDimensions(l.floating);return h!==N.width||v!==N.height?{reset:{rects:!0}}:{}}}};function Un(){return typeof window<"u"}function At(e){return Zs(e)?(e.nodeName||"").toLowerCase():"#document"}function ye(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ke(e){var t;return(t=(Zs(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Zs(e){return Un()?e instanceof Node||e instanceof ye(e).Node:!1}function Pe(e){return Un()?e instanceof Element||e instanceof ye(e).Element:!1}function Ne(e){return Un()?e instanceof HTMLElement||e instanceof ye(e).HTMLElement:!1}function Ti(e){return!Un()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ye(e).ShadowRoot}const Cv=new Set(["inline","contents"]);function on(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Te(e);
23return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Cv.has(o)}const Ev=new Set(["table","td","th"]);function Sv(e){return Ev.has(At(e))}const Rv=[":popover-open",":modal"];function Kn(e){return Rv.some(t=>{try{return e.matches(t)}catch{return!1}})}const $v=["transform","translate","scale","rotate","perspective"],Pv=["transform","translate","scale","rotate","perspective","filter"],Tv=["paint","layout","strict","content"];function Po(e){const t=To(),n=Pe(e)?Te(e):e;return $v.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Pv.some(r=>(n.willChange||"").includes(r))||Tv.some(r=>(n.contain||"").includes(r))}function Ov(e){let t=qe(e);for(;Ne(t)&&!St(t);){if(Po(t))return t;if(Kn(t))return null;t=qe(t)}return null}function To(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Iv=new Set(["html","body","#document"]);function St(e){return Iv.has(At(e))}function Te(e){return ye(e).getComputedStyle(e)}function zn(e){return Pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qe(e){if(At(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ti(e)&&e.host||ke(e);return Ti(t)?t.host:t}function Xs(e){const t=qe(e);return St(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ne(t)&&on(t)?t:Xs(t)}function Kt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Xs(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=ye(o);if(i){const l=Yr(a);return t.concat(a,a.visualViewport||[],on(o)?o:[],l&&n?Kt(l):[])}return t.concat(o,Kt(o,[],n))}function Yr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qs(e){const t=Te(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ne(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=In(n)!==i||In(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function Oo(e){return Pe(e)?e:e.contextElement}function wt(e){const t=Oo(e);if(!Ne(t))return Ae(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=qs(t);let a=(i?In(n.width):n.width)/r,l=(i?In(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const _v=Ae(0);function Qs(e){const t=ye(e);return!To()||!t.visualViewport?_v:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Av(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ye(e)?!1:t}function it(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Oo(e);let a=Ae(1);t&&(r?Pe(r)&&(a=wt(r)):a=wt(e));const l=Av(i,n,r)?Qs(i):Ae(0);let c=(o.left+l.x)/a.x,u=(o.top+l.y)/a.y,d=o.width/a.x,f=o.height/a.y;if(i){const m=ye(i),p=r&&Pe(r)?ye(r):r;let h=m,v=Yr(h);for(;v&&r&&p!==h;){const g=wt(v),b=v.getBoundingClientRect(),x=Te(v),w=b.left+(v.clientLeft+parseFloat(x.paddingLeft))*g.x,C=b.top+(v.clientTop+parseFloat(x.paddingTop))*g.y;c*=g.x,u*=g.y,d*=g.x,f*=g.y,c+=w,u+=C,h=ye(v),v=Yr(h)}}return An({width:d,height:f,x:c,y:u})}function Gn(e,t){const n=zn(e).scrollLeft;return t?t.left+n:it(ke(e)).left+n}function Js(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Gn(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Mv(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=ke(r),l=t?Kn(t.floating):!1;if(r===a||l&&i)return n;let c={scrollLeft:0,scrollTop:0},u=Ae(1);const d=Ae(0),f=Ne(r);if((f||!f&&!i)&&((At(r)!=="body"||on(a))&&(c=zn(r)),Ne(r))){const p=it(r);u=wt(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}const m=a&&!f&&!i?Js(a,c):Ae(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+m.x,y:n.y*u.y-c.scrollTop*u.y+d.y+m.y}}function Dv(e){return Array.from(e.getClientRects())}function Nv(e){const t=ke(e),n=zn(e),r=e.ownerDocument.body,o=we(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=we(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Gn(e);const l=-n.scrollTop;return Te(r).direction==="rtl"&&(a+=we(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}const Oi=25;
23function Lv(e,t){const n=ye(e),r=ke(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,c=0;if(o){i=o.width,a=o.height;const d=To();(!d||d&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}const u=Gn(r);if(u<=0){const d=r.ownerDocument,f=d.body,m=getComputedStyle(f),p=d.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,h=Math.abs(r.clientWidth-f.clientWidth-p);h<=Oi&&(i-=h)}else u<=Oi&&(i+=u);return{width:i,height:a,x:l,y:c}}const kv=new Set(["absolute","fixed"]);function Fv(e,t){const n=it(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ne(e)?wt(e):Ae(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y,c=o*i.x,u=r*i.y;return{width:a,height:l,x:c,y:u}}function Ii(e,t,n){let r;if(t==="viewport")r=Lv(e,n);else if(t==="document")r=Nv(ke(e));else if(Pe(t))r=Fv(t,n);else{const o=Qs(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return An(r)}function ea(e,t){const n=qe(e);return n===t||!Pe(n)||St(n)?!1:Te(n).position==="fixed"||ea(n,t)}function jv(e,t){const n=t.get(e);if(n)return n;let r=Kt(e,[],!1).filter(l=>Pe(l)&&At(l)!=="body"),o=null;const i=Te(e).position==="fixed";let a=i?qe(e):e;for(;Pe(a)&&!St(a);){const l=Te(a),c=Po(a);!c&&l.position==="fixed"&&(o=null),(i?!c&&!o:!c&&l.position==="static"&&!!o&&kv.has(o.position)||on(a)&&!c&&ea(e,a))?r=r.filter(d=>d!==a):o=l,a=qe(a)}return t.set(e,r),r}function Vv(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Kn(t)?[]:jv(t,this._c):[].concat(n),r],l=a[0],c=a.reduce((u,d)=>{const f=Ii(t,d,o);return u.top=we(f.top,u.top),u.right=Xe(f.right,u.right),u.bottom=Xe(f.bottom,u.bottom),u.left=we(f.left,u.left),u},Ii(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Bv(e){const{width:t,height:n}=qs(e);return{width:t,height:n}}function Hv(e,t,n){const r=Ne(t),o=ke(t),i=n==="fixed",a=it(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=Ae(0);function u(){c.x=Gn(o)}if(r||!r&&!i)if((At(t)!=="body"||on(o))&&(l=zn(t)),r){const p=it(t,!0,i,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else o&&u();i&&!r&&o&&u();const d=o&&!r&&!i?Js(o,l):Ae(0),f=a.left+l.scrollLeft-c.x-d.x,m=a.top+l.scrollTop-c.y-d.y;return{x:f,y:m,width:a.width,height:a.height}}function Er(e){return Te(e).position==="static"}function _i(e,t){if(!Ne(e)||Te(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ke(e)===n&&(n=n.ownerDocument.body),n}function ta(e,t){const n=ye(e);if(Kn(e))return n;if(!Ne(e)){let o=qe(e);for(;o&&!St(o);){if(Pe(o)&&!Er(o))return o;o=qe(o)}return n}let r=_i(e,t);for(;r&&Sv(r)&&Er(r);)r=_i(r,t);return r&&St(r)&&Er(r)&&!Po(r)?n:r||Ov(e)||n}const Wv=async function(e){const t=this.getOffsetParent||ta,n=this.getDimensions,r=await n(e.floating);return{reference:Hv(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Uv(e){return Te(e).direction==="rtl"}const Kv={convertOffsetParentRelativeRectToViewportRelativeRect:Mv,getDocumentElement:ke,getClippingRect:Vv,getOffsetParent:ta,getElementRects:Wv,getClientRects:Dv,getDimensions:Bv,getScale:wt,isElement:Pe,isRTL:Uv};function na(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function zv(e,t){let n=null,r;const o=ke(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:d,top:f,width:m,height:p}=u;if(l||t(),!m||!p)return;const h=mn(f),v=mn(o.clientWidth-(d+m)),g=mn(o.clientHeight-(f+p)),b=mn(d),w={rootMargin:-h+"px "+-v+"px "+-g+"px "+-b+"px",threshold:we(0,Xe(1,c))||1};let C=!0;function E(P){const R=P[0].intersectionRatio;if(R!==c){if(!C)return a();R?a(!1,R):r=setTimeout(()=>{a(!1,1e-7)},1e3)}R===1&&!na(u,e.getBoundingClientRect())&&a(),C=!1}try{n=new IntersectionObserver(E,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,w)}n.observe(e)}return a(!0),i}function ra(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Oo(e),d=o||i?[...u?Kt(u):[],...Kt(t)]:[];d.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),i&&b.addEventListener("resize",n)});const f=u&&l?zv(u,n):null;let m=-1,p=null;a&&(p=new ResizeObserver(b=>{let[x]=b;x&&x.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(t)})),n()}),u&&!c&&p.observe(u),p.observe(t));let h,v=c?it(e):null;c&&g();function g(){const b=it(e);v&&!na(v,b)&&n(),v=b,h=requestAnimationFrame(g)}return n(),()=>{var b;d.forEach(x=>{o&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),f==null||f(),(b=p)==null||b.disconnect(),p=null,c&&cancelAnimationFrame(h)}}
23const Gv=bv,Yv=xv,Zv=mv,Xv=yv,qv=hv,Ai=vv,Qv=wv,Jv=(e,t,n)=>{const r=new Map,o={platform:Kv,...n},i={...o.platform,_c:r};return pv(e,t,{...o,platform:i})};var em=typeof document<"u",tm=function(){},$n=em?s.useLayoutEffect:tm;function Mn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Mn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Mn(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function oa(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Mi(e,t){const n=oa(e);return Math.round(t*n)/n}function Sr(e){const t=s.useRef(e);return $n(()=>{t.current=e}),t}function ia(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,f]=s.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=s.useState(r);Mn(m,r)||p(r);const[h,v]=s.useState(null),[g,b]=s.useState(null),x=s.useCallback(M=>{M!==P.current&&(P.current=M,v(M))},[]),w=s.useCallback(M=>{M!==R.current&&(R.current=M,b(M))},[]),C=i||h,E=a||g,P=s.useRef(null),R=s.useRef(null),$=s.useRef(d),N=c!=null,_=Sr(c),I=Sr(o),V=Sr(u),K=s.useCallback(()=>{if(!P.current||!R.current)return;const M={placement:t,strategy:n,middleware:m};I.current&&(M.platform=I.current),Jv(P.current,R.current,M).then(T=>{const z={...T,isPositioned:V.current!==!1};O.current&&!Mn($.current,z)&&($.current=z,Le.flushSync(()=>{f(z)}))})},[m,t,n,I,V]);$n(()=>{u===!1&&$.current.isPositioned&&($.current.isPositioned=!1,f(M=>({...M,isPositioned:!1})))},[u]);const O=s.useRef(!1);$n(()=>(O.current=!0,()=>{O.current=!1}),[]),$n(()=>{if(C&&(P.current=C),E&&(R.current=E),C&&E){if(_.current)return _.current(C,E,K);K()}},[C,E,K,_,N]);const S=s.useMemo(()=>({reference:P,floating:R,setReference:x,setFloating:w}),[x,w]),D=s.useMemo(()=>({reference:C,floating:E}),[C,E]),k=s.useMemo(()=>{const M={position:n,left:0,top:0};if(!D.floating)return M;const T=Mi(D.floating,d.x),z=Mi(D.floating,d.y);return l?{...M,transform:"translate("+T+"px, "+z+"px)",...oa(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:z}},[n,l,D.floating,d.x,d.y]);return s.useMemo(()=>({...d,update:K,refs:S,elements:D,floatingStyles:k}),[d,K,S,D,k])}const nm=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ai({element:r.current,padding:o}).fn(n):{}:r?Ai({element:r,padding:o}).fn(n):{}}}},sa=(e,t)=>({...Gv(e),options:[e,t]}),aa=(e,t)=>({...Yv(e),options:[e,t]}),la=(e,t)=>({...Qv(e),options:[e,t]}),ca=(e,t)=>({...Zv(e),options:[e,t]}),ua=(e,t)=>({...Xv(e),options:[e,t]}),da=(e,t)=>({...qv(e),options:[e,t]}),fa=(e,t)=>({...nm(e),options:[e,t]});function rm(e){const t=om(e),n=s.forwardRef((r,o)=>{const{children:i,...a}=r,l=s.Children.toArray(i),c=l.find(sm);if(c){const u=c.props.children,d=l.map(f=>f===c?s.Children.count(u)>1?s.Children.only(null):s.isValidElement(u)?u.props.children:null:f);return y.jsx(t,{...a,ref:o,children:s.isValidElement(u)?s.cloneElement(u,void 0,d):null})}return y.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function om(e){const t=s.forwardRef((n,r)=>{const{children:o,...i}=n;if(s.isValidElement(o)){const a=lm(o),l=am(i,o.props);return o.type!==s.Fragment&&(l.ref=r?pe(r,a):a),s.cloneElement(o,l)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var im=Symbol("radix.slottable");function sm(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===im}function am(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}
23:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function lm(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var cm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],um=cm.reduce((e,t)=>{const n=rm(`Primitive.${t}`),r=s.forwardRef((o,i)=>{const{asChild:a,...l}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(c,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),dm="Arrow",pa=s.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return y.jsx(um.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});pa.displayName=dm;var fm=pa;function pm(e,t=[]){let n=[];function r(i,a){const l=s.createContext(a),c=n.length;n=[...n,a];const u=f=>{var b;const{scope:m,children:p,...h}=f,v=((b=m==null?void 0:m[e])==null?void 0:b[c])||l,g=s.useMemo(()=>h,Object.values(h));return y.jsx(v.Provider,{value:g,children:p})};u.displayName=i+"Provider";function d(f,m){var v;const p=((v=m==null?void 0:m[e])==null?void 0:v[c])||l,h=s.useContext(p);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(a=>s.createContext(a));return function(l){const c=(l==null?void 0:l[e])||i;return s.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,vm(o,...t)]}function vm(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((l,{useScope:c,scopeName:u})=>{const f=c(i)[`__scope${u}`];return{...l,...f}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function mm(e){const t=hm(e),n=s.forwardRef((r,o)=>{const{children:i,...a}=r,l=s.Children.toArray(i),c=l.find(bm);if(c){const u=c.props.children,d=l.map(f=>f===c?s.Children.count(u)>1?s.Children.only(null):s.isValidElement(u)?u.props.children:null:f);return y.jsx(t,{...a,ref:o,children:s.isValidElement(u)?s.cloneElement(u,void 0,d):null})}return y.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function hm(e){const t=s.forwardRef((n,r)=>{const{children:o,...i}=n;if(s.isValidElement(o)){const a=wm(o),l=xm(i,o.props);return o.type!==s.Fragment&&(l.ref=r?pe(r,a):a),s.cloneElement(o,l)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var gm=Symbol("radix.slottable");function bm(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===gm}function xm(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function wm(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ym=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],va=ym.reduce((e,t)=>{const n=mm(`Primitive.${t}`),r=s.forwardRef((o,i)=>{const{asChild:a,...l}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(c,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Io(e){const[t,n]=s.useState(void 0);return Be(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,l;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;a=u.inlineSize,l=u.blockSize}else a=e.offsetWidth,l=e.offsetHeight;n({width:a,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var _o="Popper",[ma,Mt]=pm(_o),[Cm,ha]=ma(_o),ga=e=>{const{__scopePopper:t,children:n}=e,[r,o]=s.useState(null);return y.jsx(Cm,{scope:t,anchor:r,onAnchorChange:o,children:n})};ga.displayName=_o;var ba="PopperAnchor",xa=s.forwardRef((e,t)=>
23{const{__scopePopper:n,virtualRef:r,...o}=e,i=ha(ba,n),a=s.useRef(null),l=ce(t,a),c=s.useRef(null);return s.useEffect(()=>{const u=c.current;c.current=(r==null?void 0:r.current)||a.current,u!==c.current&&i.onAnchorChange(c.current)}),r?null:y.jsx(va.div,{...o,ref:l})});xa.displayName=ba;var Ao="PopperContent",[Em,Sm]=ma(Ao),wa=s.forwardRef((e,t)=>{var B,Z,F,U,j,Y;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:a=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:m=!1,updatePositionStrategy:p="optimized",onPlaced:h,...v}=e,g=ha(Ao,n),[b,x]=s.useState(null),w=ce(t,ee=>x(ee)),[C,E]=s.useState(null),P=Io(C),R=(P==null?void 0:P.width)??0,$=(P==null?void 0:P.height)??0,N=r+(i!=="center"?"-"+i:""),_=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},I=Array.isArray(u)?u:[u],V=I.length>0,K={padding:_,boundary:I.filter($m),altBoundary:V},{refs:O,floatingStyles:S,placement:D,isPositioned:k,middlewareData:M}=ia({strategy:"fixed",placement:N,whileElementsMounted:(...ee)=>ra(...ee,{animationFrame:p==="always"}),elements:{reference:g.anchor},middleware:[sa({mainAxis:o+$,alignmentAxis:a}),c&&aa({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?la():void 0,...K}),c&&ca({...K}),ua({...K,apply:({elements:ee,rects:de,availableWidth:Je,availableHeight:et})=>{const{width:tt,height:pr}=de.reference,pt=ee.floating.style;pt.setProperty("--radix-popper-available-width",`${Je}px`),pt.setProperty("--radix-popper-available-height",`${et}px`),pt.setProperty("--radix-popper-anchor-width",`${tt}px`),pt.setProperty("--radix-popper-anchor-height",`${pr}px`)}}),C&&fa({element:C,padding:l}),Pm({arrowWidth:R,arrowHeight:$}),m&&da({strategy:"referenceHidden",...K})]}),[T,z]=Ea(D),X=Ce(h);Be(()=>{k&&(X==null||X())},[k,X]);const q=(B=M.arrow)==null?void 0:B.x,se=(Z=M.arrow)==null?void 0:Z.y,H=((F=M.arrow)==null?void 0:F.centerOffset)!==0,[G,Q]=s.useState();return Be(()=>{b&&Q(window.getComputedStyle(b).zIndex)},[b]),y.jsx("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...S,transform:k?S.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:G,"--radix-popper-transform-origin":[(U=M.transformOrigin)==null?void 0:U.x,(j=M.transformOrigin)==null?void 0:j.y].join(" "),...((Y=M.hide)==null?void 0:Y.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(Em,{scope:n,placedSide:T,onArrowChange:E,arrowX:q,arrowY:se,shouldHideArrow:H,children:y.jsx(va.div,{"data-side":T,"data-align":z,...v,ref:w,style:{...v.style,animation:k?void 0:"none"}})})})});wa.displayName=Ao;var ya="PopperArrow",Rm={top:"bottom",right:"left",bottom:"top",left:"right"},Ca=s.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Sm(ya,r),a=Rm[i.placedSide];return y.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:y.jsx(fm,{...o,ref:n,style:{...o.style,display:"block"}})})});Ca.displayName=ya;function $m(e){return e!==null}var Pm=e=>({name:"transformOrigin",options:e,fn(t){var g,b,x;const{placement:n,rects:r,middlewareData:o}=t,a=((g=o.arrow)==null?void 0:g.centerOffset)!==0,l=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[u,d]=Ea(n),f={start:"0%",center:"50%",end:"100%"}[d],m=(((b=o.arrow)==null?void 0:b.x)??0)+l/2,p=(((x=o.arrow)==null?void 0:x.y)??0)+c/2;let h="",v="";return u==="bottom"?(h=a?f:`${m}px`,v=`${-c}px`):u==="top"?(h=a?f:`${m}px`,v=`${r.floating.height+c}px`):u==="right"?(h=`${-c}px`,v=a?f:`${p}px`):u==="left"&&(h=`${r.floating.width+c}px`,v=a?f:`${p}px`),{data:{x:h,y:v}}}});function Ea(e){const[t,n="center"]=e.split("-");return[t,n]}var Mo=ga,Yn=xa,Do=wa,No=Ca;function Tm(e){const t=Om(e),n=s.forwardRef((r,o)=>{const{children:i,...a}=r,l=s.Children.toArray(i),c=l.find(_m);if(c){const u=c.props.children,d=l.map(f=>f===c?s.Children.count(u)>1?s.Children.only(null):s.isValidElement(u)?u.props.children:null:f);return y.jsx(t,{...a,ref:o,children:s.isValidElement(u)?s.cloneElement(u,void 0,d):null})}return y.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}
23function Om(e){const t=s.forwardRef((n,r)=>{const{children:o,...i}=n;if(s.isValidElement(o)){const a=Mm(o),l=Am(i,o.props);return o.type!==s.Fragment&&(l.ref=r?pe(r,a):a),s.cloneElement(o,l)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Im=Symbol("radix.slottable");function _m(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Im}function Am(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Mm(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Dm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Nm=Dm.reduce((e,t)=>{const n=Tm(`Primitive.${t}`),r=s.forwardRef((o,i)=>{const{asChild:a,...l}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(c,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Lm="Portal",Zn=s.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,i]=s.useState(!1);Be(()=>i(!0),[]);const a=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?us.createPortal(y.jsx(Nm.div,{...r,ref:t}),a):null});Zn.displayName=Lm;function km(e,t){return s.useReducer((n,r)=>t[n][r]??n,e)}var Oe=e=>{const{present:t,children:n}=e,r=Fm(t),o=typeof n=="function"?n({present:r.isPresent}):s.Children.only(n),i=ce(r.ref,jm(o));return typeof n=="function"||r.isPresent?s.cloneElement(o,{ref:i}):null};Oe.displayName="Presence";function Fm(e){const[t,n]=s.useState(),r=s.useRef(null),o=s.useRef(e),i=s.useRef("none"),a=e?"mounted":"unmounted",[l,c]=km(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect(()=>{const u=hn(r.current);i.current=l==="mounted"?u:"none"},[l]),Be(()=>{const u=r.current,d=o.current;if(d!==e){const m=i.current,p=hn(u);e?c("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&m!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Be(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=p=>{const v=hn(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&v&&(c("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},m=p=>{p.target===t&&(i.current=hn(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:s.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function hn(e){return(e==null?void 0:e.animationName)||"none"}function jm(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Vm(e){const t=Bm(e),n=s.forwardRef((r,o)=>{const{children:i,...a}=r,l=s.Children.toArray(i),c=l.find(Wm);if(c){const u=c.props.children,d=l.map(f=>f===c?s.Children.count(u)>1?s.Children.only(null):s.isValidElement(u)?u.props.children:null:f);return y.jsx(t,{...a,ref:o,children:s.isValidElement(u)?s.cloneElement(u,void 0,d):null})}return y.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Bm(e){const t=s.forwardRef((n,r)=>{const{children:o,...i}=n;
23if(s.isValidElement(o)){const a=Km(o),l=Um(i,o.props);return o.type!==s.Fragment&&(l.ref=r?pe(r,a):a),s.cloneElement(o,l)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Sa=Symbol("radix.slottable");function Hm(e){const t=({children:n})=>y.jsx(y.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Sa,t}function Wm(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Sa}function Um(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Km(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var zm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ra=zm.reduce((e,t)=>{const n=Vm(`Primitive.${t}`),r=s.forwardRef((o,i)=>{const{asChild:a,...l}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(c,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Gm=Ve[" useInsertionEffect ".trim().toString()]||Be;function at({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,a]=Ym({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:o;{const d=s.useRef(e!==void 0);s.useEffect(()=>{const f=d.current;f!==l&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=l},[l,r])}const u=s.useCallback(d=>{var f;if(l){const m=Zm(d)?d(e):d;m!==e&&((f=a.current)==null||f.call(a,m))}else i(d)},[l,e,i,a]);return[c,u]}function Ym({defaultProp:e,onChange:t}){const[n,r]=s.useState(e),o=s.useRef(n),i=s.useRef(t);return Gm(()=>{i.current=t},[t]),s.useEffect(()=>{var a;o.current!==n&&((a=i.current)==null||a.call(i,n),o.current=n)},[n,o]),[n,r,i]}function Zm(e){return typeof e=="function"}var Xm=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),qm="VisuallyHidden",$a=s.forwardRef((e,t)=>y.jsx(Ra.span,{...e,ref:t,style:{...Xm,...e.style}}));$a.displayName=qm;var Qm=$a,[Xn,Jw]=Np("Tooltip",[Mt]),qn=Mt(),Pa="TooltipProvider",Jm=700,Zr="tooltip.open",[eh,Lo]=Xn(Pa),Ta=e=>{const{__scopeTooltip:t,delayDuration:n=Jm,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,a=s.useRef(!0),l=s.useRef(!1),c=s.useRef(0);return s.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),y.jsx(eh,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:s.useCallback(()=>{window.clearTimeout(c.current),a.current=!1},[]),onClose:s.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:s.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:i})};Ta.displayName=Pa;var zt="Tooltip",[th,Qn]=Xn(zt),Oa=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:i,disableHoverableContent:a,delayDuration:l}=e,c=Lo(zt,e.__scopeTooltip),u=qn(t),[d,f]=s.useState(null),m=Wt(),p=s.useRef(0),h=a??c.disableHoverableContent,v=l??c.delayDuration,g=s.useRef(!1),[b,x]=at({prop:r,defaultProp:o??!1,onChange:R=>{R?(c.onOpen(),document.dispatchEvent(new CustomEvent(Zr))):c.onClose(),i==null||i(R)},caller:zt}),w=s.useMemo(()=>b?g.current?"delayed-open":"instant-open":"closed",[b]),C=s.useCallback(()=>{window.clearTimeout(p.current),p.current=0,g.current=!1,x(!0)},[x]),E=s.useCallback(()=>{window.clearTimeout(p.current),p.current=0,x(!1)},[x]),P=s.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{g.current=!0,x(!0),p.current=0},v)},[v,x]);return s.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),y.jsx(Mo,{...u,children:y.jsx(th,{scope:t,contentId:m,open:b,
23stateAttribute:w,trigger:d,onTriggerChange:f,onTriggerEnter:s.useCallback(()=>{c.isOpenDelayedRef.current?P():C()},[c.isOpenDelayedRef,P,C]),onTriggerLeave:s.useCallback(()=>{h?E():(window.clearTimeout(p.current),p.current=0)},[E,h]),onOpen:C,onClose:E,disableHoverableContent:h,children:n})})};Oa.displayName=zt;var Xr="TooltipTrigger",Ia=s.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Qn(Xr,n),i=Lo(Xr,n),a=qn(n),l=s.useRef(null),c=ce(t,l,o.onTriggerChange),u=s.useRef(!1),d=s.useRef(!1),f=s.useCallback(()=>u.current=!1,[]);return s.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),y.jsx(Yn,{asChild:!0,...a,children:y.jsx(Ra.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:W(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:W(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:W(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:W(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:W(e.onBlur,o.onClose),onClick:W(e.onClick,o.onClose)})})});Ia.displayName=Xr;var nh="TooltipPortal",[ey,rh]=Xn(nh,{forceMount:void 0}),Rt="TooltipContent",_a=s.forwardRef((e,t)=>{const n=rh(Rt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=Qn(Rt,e.__scopeTooltip);return y.jsx(Oe,{present:r||a.open,children:a.disableHoverableContent?y.jsx(Aa,{side:o,...i,ref:t}):y.jsx(oh,{side:o,...i,ref:t})})}),oh=s.forwardRef((e,t)=>{const n=Qn(Rt,e.__scopeTooltip),r=Lo(Rt,e.__scopeTooltip),o=s.useRef(null),i=ce(t,o),[a,l]=s.useState(null),{trigger:c,onClose:u}=n,d=o.current,{onPointerInTransitChange:f}=r,m=s.useCallback(()=>{l(null),f(!1)},[f]),p=s.useCallback((h,v)=>{const g=h.currentTarget,b={x:h.clientX,y:h.clientY},x=lh(b,g.getBoundingClientRect()),w=ch(b,x),C=uh(v.getBoundingClientRect()),E=fh([...w,...C]);l(E),f(!0)},[f]);return s.useEffect(()=>()=>m(),[m]),s.useEffect(()=>{if(c&&d){const h=g=>p(g,d),v=g=>p(g,c);return c.addEventListener("pointerleave",h),d.addEventListener("pointerleave",v),()=>{c.removeEventListener("pointerleave",h),d.removeEventListener("pointerleave",v)}}},[c,d,p,m]),s.useEffect(()=>{if(a){const h=v=>{const g=v.target,b={x:v.clientX,y:v.clientY},x=(c==null?void 0:c.contains(g))||(d==null?void 0:d.contains(g)),w=!dh(b,a);x?m():w&&(m(),u())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[c,d,a,u,m]),y.jsx(Aa,{...e,ref:i})}),[ih,sh]=Xn(zt,{isInside:!1}),ah=Hm("TooltipContent"),Aa=s.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...l}=e,c=Qn(Rt,n),u=qn(n),{onClose:d}=c;return s.useEffect(()=>(document.addEventListener(Zr,d),()=>document.removeEventListener(Zr,d)),[d]),s.useEffect(()=>{if(c.trigger){const f=m=>{const p=m.target;p!=null&&p.contains(c.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,d]),y.jsx(rn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:y.jsxs(Do,{"data-state":c.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[y.jsx(ah,{children:r}),y.jsx(ih,{scope:n,isInside:!0,children:y.jsx(Qm,{id:c.contentId,role:"tooltip",children:o||r})})]})})});_a.displayName=Rt;var Ma="TooltipArrow",Da=s.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=qn(n);return sh(Ma,n).isInside?null:y.jsx(No,{...o,...r,ref:t})});Da.displayName=Ma;function lh(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function ch(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function uh(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function dh(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const l=t[i],c=t[a],u=l.x,d=l.y,f=c.x,m=c.y;d>r!=m>r&&n<(f-u)*(r-d)/(m-d)+u&&(o=!o)}return o}function fh(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),ph(t)}function ph(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],a=t[t.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],a=n[n.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var ty=Ta,ny=Oa,ry=Ia,oy=_a,iy=Da;function me(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var vh=["color"],sy=s.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=me(e,vh);return s.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),s.createElement("path",{d:"M6.85355 3.14645C7.04882 3.34171 7.04882 3.65829 6.85355 3.85355L3.70711 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H3.70711L6.85355 11.1464C7.04882 11.3417 7.04882 11.6583 6.85355 11.8536C6.65829 12.0488 6.34171 12.0488 6.14645 11.8536L2.14645 7.85355C1.95118 7.65829 1.95118 7.34171 2.14645 7.14645L6.14645 3.14645C6.34171 2.95118 6.65829 2.95118 6.85355 3.14645Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),mh=["color"],ay=s.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=me(e,mh);return s.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),s.createElement("path",{d:"M8.14645 3.14645C8.34171 2.95118 8.65829 2.95118 8.85355 3.14645L12.8536 7.14645C13.0488 7.34171 13.0488 7.65829 12.8536 7.85355L8.85355 11.8536C8.65829 12.0488 8.34171 12.0488 8.14645 11.8536C7.95118 11.6583 7.95118 11.3417 8.14645 11.1464L11.2929 8H2.5C2.22386 8 2 7.77614 2 7.5C2 7.22386 2.22386 7 2.5 7H11.2929L8.14645 3.85355C7.95118 3.65829 7.95118 3.34171 8.14645 3.14645Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),hh=["color"],ly=s.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=me(e,hh);return s.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),s.createElement("path",{d:"M4.5 1C4.77614 1 5 1.22386 5 1.5V2H10V1.5C10 1.22386 10.2239 1 10.5 1C10.7761 1 11 1.22386 11 1.5V2H12.5C13.3284 2 14 2.67157 14 3.5V12.5C14 13.3284 13.3284 14 12.5 14H2.5C1.67157 14 1 13.3284 1 12.5V3.5C1 2.67157 1.67157 2 2.5 2H4V1.5C4 1.22386 4.22386 1 4.5 1ZM10 3V3.5C10 3.77614 10.2239 4 10.5 4C10.7761 4 11 3.77614 11 3.5V3H12.5C12.7761 3 13 3.22386 13 3.5V5H2V3.5C2 3.22386 2.22386 3 2.5 3H4V3.5C4 3.77614 4.22386 4 4.5 4C4.77614 4 5 3.77614 5 3.5V3H10ZM2 6V12.5C2 12.7761 2.22386 13 2.5 13H12.5C12.7761 13 13 12.7761 13 12.5V6H2ZM7 7.5C7 7.22386 7.22386 7 7.5 7C7.77614 7 8 7.22386 8 7.5C8 7.77614 7.77614 8 7.5 8C7.22386 8 7 7.77614 7 7.5ZM9.5 7C9.22386 7 9 7.22386 9 7.5C9 7.77614 9.22386 8 9.5 8C9.77614 8 10 7.77614 10 7.5C10 7.22386 9.77614 7 9.5 7ZM11 7.5C11 7.22386 11.2239 7 11.5 7C11.7761 7 12 7.22386 12 7.5C12 7.77614 11.7761 8 11.5 8C11.2239 8 11 7.77614 11 7.5ZM11.5 9C11.2239 9 11 9.22386 11 9.5C11 9.77614 11.2239 10 11.5 10C11.7761 10 12 9.77614 12 9.5C12 9.22386 11.7761 9 11.5 9ZM9 9.5C9 9.22386 9.22386 9 9.5 9C9.77614 9 10 9.22386 10 9.5C10 9.77614 9.77614 10 9.5 10C9.22386 10 9 9.77614 9 9.5ZM7.5 9C7.22386 9 7 9.22386 7 9.5C7 9.77614 7.22386 10 7.5 10C7.77614 10 8 9.77614 8 9.5C8 9.22386 7.77614 9 7.5 9ZM5 9.5C5 9.22386 5.22386 9 5.5 9C5.77614 9 6 9.22386 6 9.5C6 9.77614 5.77614 10 5.5 10C5.22386 10 5 9.77614 5 9.5ZM3.5 9C3.22386 9 3 9.22386 3 9.5C3 9.77614 3.22386 10 3.5 10C3.77614 10 4 9.77614 4 9.5C4 9.22386 3.77614 9 3.5 9ZM3 11.5C3 11.2239 3.22386 11 3.5 11C3.77614 11 4 11.2239 4 11.5C4 11.7761 3.77614 12 3.5 12C3.22386 12 3 11.7761 3 11.5ZM5.5 11C5.22386 11 5 11.2239 5 11.5C5 11.7761 5.22386 12 5.5 12C5.77614 12 6 11.7761 6 11.5C6 11.2239 5.77614 11 5.5 11ZM7 11.5C7 11.2239 7.22386 11 7.5 11C7.77614 11 8 11.2239 8 11.5C8 11.7761 7.77614 12 7.5 12C7.22386 12 7 11.7761 7 11.5ZM9.5 11C9.22386 11 9 11.2239 9 11.5C9 11.7761 9.22386 12 9.5 12C9.77614 12 10 11.7761 10 11.5C10 11.2239 9.77614 11 9.5 11Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),gh=["color"],cy=s.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=me(e,gh);return s.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),s.createElement("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819
23L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),bh=["color"],uy=s.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=me(e,bh);return s.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),s.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),xh=["color"],dy=s.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=me(e,xh);return s.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),s.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),wh=["color"],fy=s.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=me(e,wh);return s.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),s.createElement("path",{d:"M8.84182 3.13514C9.04327 3.32401 9.05348 3.64042 8.86462 3.84188L5.43521 7.49991L8.86462 11.1579C9.05348 11.3594 9.04327 11.6758 8.84182 11.8647C8.64036 12.0535 8.32394 12.0433 8.13508 11.8419L4.38508 7.84188C4.20477 7.64955 4.20477 7.35027 4.38508 7.15794L8.13508 3.15794C8.32394 2.95648 8.64036 2.94628 8.84182 3.13514Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),yh=["color"],py=s.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=me(e,yh);return s.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),s.createElement("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Ch=["color"],vy=s.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=me(e,Ch);return s.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),s.createElement("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Eh=["color"],my=s.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=me(e,Eh);return s.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),s.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Sh=["color"],hy=s.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=me(e,Sh);return s.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),s.createElement("path",{d:"M5 7.5C5 7.22386 5.22386 7 5.5 7H9.5C9.77614 7 10 7.22386 10 7.5C10 7.77614 9.77614 8 9.5 8H5.5C5.22386 8 5 7.77614 5 7.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Rh=["color"],gy=s.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=me(e,Rh);return s.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),s.createElement("path",{d:"M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",fill:r}))}),$h=["color"],by=s.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=me(e,$h);return s.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),s.createElement("path",{d:"M10.3285 1.13607C10.1332 0.940809 9.81662 0.940808 9.62136 1.13607C9.42609 1.33133 9.42609 1.64792 9.62136 1.84318L10.2744 2.49619L5.42563 6.13274L4.31805 5.02516C4.12279 4.8299 3.80621 4.8299 3.61095 5.02516C3.41569 5.22042 3.41569 5.537 3.61095 5.73226L5.02516 7.14648L6.08582 8.20714L2.81545 11.4775C2.62019 11.6728 2.62019 11.9894 2.81545 12.1846C3.01072 12.3799 3.3273 12.3799 3.52256 12.1846L6.79293 8.91425L7.85359 9.97491L9.2678 
2311.3891C9.46306 11.5844 9.77965 11.5844 9.97491 11.3891C10.1702 11.1939 10.1702 10.8773 9.97491 10.682L8.86733 9.57443L12.5039 4.7257L13.1569 5.37871C13.3522 5.57397 13.6687 5.57397 13.864 5.37871C14.0593 5.18345 14.0593 4.86687 13.864 4.6716L12.8033 3.61094L11.3891 2.19673L10.3285 1.13607ZM6.13992 6.84702L10.9887 3.21047L11.7896 4.01142L8.15305 8.86015L6.13992 6.84702Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Ph=["color"],xy=s.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=me(e,Ph);return s.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),s.createElement("path",{d:"M1 2C0.447715 2 0 2.44772 0 3V12C0 12.5523 0.447715 13 1 13H14C14.5523 13 15 12.5523 15 12V3C15 2.44772 14.5523 2 14 2H1ZM1 3L14 3V3.92494C13.9174 3.92486 13.8338 3.94751 13.7589 3.99505L7.5 7.96703L1.24112 3.99505C1.16621 3.94751 1.0826 3.92486 1 3.92494V3ZM1 4.90797V12H14V4.90797L7.74112 8.87995C7.59394 8.97335 7.40606 8.97335 7.25888 8.87995L1 4.90797Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Th=["color"],wy=s.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=me(e,Th);return s.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),s.createElement("path",{d:"M7.49996 1.80002C4.35194 1.80002 1.79996 4.352 1.79996 7.50002C1.79996 10.648 4.35194 13.2 7.49996 13.2C10.648 13.2 13.2 10.648 13.2 7.50002C13.2 4.352 10.648 1.80002 7.49996 1.80002ZM0.899963 7.50002C0.899963 3.85494 3.85488 0.900024 7.49996 0.900024C11.145 0.900024 14.1 3.85494 14.1 7.50002C14.1 11.1451 11.145 14.1 7.49996 14.1C3.85488 14.1 0.899963 11.1451 0.899963 7.50002Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),s.createElement("path",{d:"M13.4999 7.89998H1.49994V7.09998H13.4999V7.89998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),s.createElement("path",{d:"M7.09991 13.5V1.5H7.89991V13.5H7.09991zM10.375 7.49998C10.375 5.32724 9.59364 3.17778 8.06183 1.75656L8.53793 1.24341C10.2396 2.82218 11.075 5.17273 11.075 7.49998 11.075 9.82724 10.2396 12.1778 8.53793 13.7566L8.06183 13.2434C9.59364 11.8222 10.375 9.67273 10.375 7.49998zM3.99969 7.5C3.99969 5.17611 4.80786 2.82678 6.45768 1.24719L6.94177 1.75281C5.4582 3.17323 4.69969 5.32389 4.69969 7.5 4.6997 9.67611 5.45822 11.8268 6.94179 13.2472L6.45769 13.7528C4.80788 12.1732 3.9997 9.8239 3.99969 7.5z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),s.createElement("path",{d:"M7.49996 3.95801C9.66928 3.95801 11.8753 4.35915 13.3706 5.19448 13.5394 5.28875 13.5998 5.50197 13.5055 5.67073 13.4113 5.83948 13.198 5.89987 13.0293 5.8056 11.6794 5.05155 9.60799 4.65801 7.49996 4.65801 5.39192 4.65801 3.32052 5.05155 1.97064 5.8056 1.80188 5.89987 1.58866 5.83948 1.49439 5.67073 1.40013 5.50197 1.46051 5.28875 1.62927 5.19448 3.12466 4.35915 5.33063 3.95801 7.49996 3.95801zM7.49996 10.85C9.66928 10.85 11.8753 10.4488 13.3706 9.6135 13.5394 9.51924 13.5998 9.30601 13.5055 9.13726 13.4113 8.9685 13.198 8.90812 13.0293 9.00238 11.6794 9.75643 9.60799 10.15 7.49996 10.15 5.39192 10.15 3.32052 9.75643 1.97064 9.00239 1.80188 8.90812 1.58866 8.9685 1.49439 9.13726 1.40013 9.30601 1.46051 9.51924 1.62927 9.6135 3.12466 10.4488 5.33063 10.85 7.49996 10.85z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Oh=["color"],yy=s.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=me(e,Oh);return s.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),s.createElement("path",{d:"M8.51194 3.00541C9.18829 2.54594 10.0435 2.53694 10.6788 2.95419C10.8231 3.04893 10.9771 3.1993 11.389 3.61119C11.8009 4.02307 11.9513 4.17714 12.046 4.32141C12.4633 4.95675 12.4543 5.81192 11.9948 6.48827C11.8899 6.64264 11.7276 6.80811 11.3006 7.23511L10.6819 7.85383C10.4867 8.04909 10.4867 8.36567 10.6819 8.56093C10.8772 8.7562 11.1938 8.7562 11.389 8.56093L12.0077 7.94221L12.0507 7.89929C12.4203 7.52976 12.6568 7.2933 12.822 7.0502C13.4972 6.05623 13.5321 4.76252 12.8819 3.77248C12.7233 3.53102 12.4922 3.30001 12.1408 2.94871L12.0961 2.90408L12.0515 2.85942C11.7002 2.508 11.4692 2.27689 11.2277 2.11832C10.2377 1.46813 8.94398 1.50299 7.95001 2.17822C7.70691 2.34336 7.47044 2.57991 7.1009 2.94955L7.058 2.99247L6.43928 3.61119C6.24401 3.80645 6.24401 4.12303 6.43928 4.31829C6.63454 4.51355 6.95112 4.51355 7.14638 4.31829L7.7651 3.69957C8.1921 3.27257 8.35757 3.11027 8.51194 3.00541ZM4.31796 7.14672C4.51322 6.95146 4.51322 6.63487 4.31796 6.43961C4.12269 6.24435 3.80611 6.24435 3.61085 6.43961L2.99213 7.05833L2.94922 7.10124C2.57957 7.47077 2.34303 7.70724 2.17788 7.95035C1.50265 8.94432 1.4678 10.238 2.11799 11.2281C2.27656 11.4695 2.50766 11.7005 2.8591 12.0518L2.90374 12.0965L2.94837 12.1411C3.29967 12.4925 3.53068 12.7237 3.77214 12.8822C4.76219 13.5324 6.05589 13.4976 7.04986 12.8223C7.29296 12.6572 7.52943 12.4206 7.89896 12.051L7.89897 12.051L7.94188 12.0081L8.5606 11.3894C8.75586 11.
231941 8.75586 10.8775 8.5606 10.6823C8.36533 10.487 8.04875 10.487 7.85349 10.6823L7.23477 11.301C6.80777 11.728 6.6423 11.8903 6.48794 11.9951C5.81158 12.4546 4.95642 12.4636 4.32107 12.0464C4.17681 11.9516 4.02274 11.8012 3.61085 11.3894C3.19896 10.9775 3.0486 10.8234 2.95385 10.6791C2.53661 10.0438 2.54561 9.18863 3.00507 8.51227C3.10993 8.35791 3.27224 8.19244 3.69924 7.76544L4.31796 7.14672ZM9.62172 6.08558C9.81698 5.89032 9.81698 5.57373 9.62172 5.37847C9.42646 5.18321 9.10988 5.18321 8.91461 5.37847L5.37908 8.91401C5.18382 9.10927 5.18382 9.42585 5.37908 9.62111C5.57434 9.81637 5.89092 9.81637 6.08619 9.62111L9.62172 6.08558Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Ih=["color"],Cy=s.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=me(e,Ih);return s.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),s.createElement("path",{d:"M4 2.5C4 2.22386 4.22386 2 4.5 2H10.5C10.7761 2 11 2.22386 11 2.5V12.5C11 12.7761 10.7761 13 10.5 13H4.5C4.22386 13 4 12.7761 4 12.5V2.5ZM4.5 1C3.67157 1 3 1.67157 3 2.5V12.5C3 13.3284 3.67157 14 4.5 14H10.5C11.3284 14 12 13.3284 12 12.5V2.5C12 1.67157 11.3284 1 10.5 1H4.5ZM6 11.65C5.8067 11.65 5.65 11.8067 5.65 12C5.65 12.1933 5.8067 12.35 6 12.35H9C9.1933 12.35 9.35 12.1933 9.35 12C9.35 11.8067 9.1933 11.65 9 11.65H6Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});function _h(e,t=[]){let n=[];function r(i,a){const l=s.createContext(a),c=n.length;n=[...n,a];const u=f=>{var b;const{scope:m,children:p,...h}=f,v=((b=m==null?void 0:m[e])==null?void 0:b[c])||l,g=s.useMemo(()=>h,Object.values(h));return y.jsx(v.Provider,{value:g,children:p})};u.displayName=i+"Provider";function d(f,m){var v;const p=((v=m==null?void 0:m[e])==null?void 0:v[c])||l,h=s.useContext(p);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(a=>s.createContext(a));return function(l){const c=(l==null?void 0:l[e])||i;return s.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,Ah(o,...t)]}function Ah(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((l,{useScope:c,scopeName:u})=>{const f=c(i)[`__scope${u}`];return{...l,...f}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Di(e){const t=Mh(e),n=s.forwardRef((r,o)=>{const{children:i,...a}=r,l=s.Children.toArray(i),c=l.find(Nh);if(c){const u=c.props.children,d=l.map(f=>f===c?s.Children.count(u)>1?s.Children.only(null):s.isValidElement(u)?u.props.children:null:f);return y.jsx(t,{...a,ref:o,children:s.isValidElement(u)?s.cloneElement(u,void 0,d):null})}return y.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Mh(e){const t=s.forwardRef((n,r)=>{const{children:o,...i}=n;if(s.isValidElement(o)){const a=kh(o),l=Lh(i,o.props);return o.type!==s.Fragment&&(l.ref=r?pe(r,a):a),s.cloneElement(o,l)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Dh=Symbol("radix.slottable");function Nh(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Dh}function Lh(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function kh(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function ko(e){const t=e+"CollectionProvider",[n,r]=_h(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=v=>{const{scope:g,children:b}=v,x=L.useRef(null),w=L.useRef(new Map).current;return y.jsx(o,{scope:g,itemMap:w,collectionRef:x,children:b})};a.displayName=t;const l=e+"CollectionSlot",c=Di(l),u=L.forwardRef((v,g)=>{const{scope:b,children:x}=v,w=i(l,b),C=ce(g,w.collectionRef);return y.jsx(c,{ref:C,children:x})});u.displayName=l;const d=e+"CollectionItemSlot",f="data-radix-collection-item",m=Di(d),p=L.forwardRef((v,g)=>{const{scope:b,children:x,...w}=v,C=L.useRef(null),E=ce(g,C),P=i(d,b);return L.useEffect(()=>(P.itemMap.set(C,{ref:C,...w}),()=>void P.itemMap.delete(C))),y.jsx(m,{[f]:"",ref:E,children:x})});p.displayName=d;function h(v){const g=i(e+"CollectionConsumer",v);return L.useCallback(()=>{const x=g.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((P,R)=>w.indexOf(P.ref.current)-w.indexOf(R.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:a,Slot:u,ItemSlot:p},h,r]}function Fh(e,t=[]){let n=[];function r(i,a){const l=s.createContext(a),c=n.length;n=[...n,a];const u=f=>{var b;const{scope:m,children:p,...h}=f,v=((b=m==null?void 0:m[e])==null?void 0:b[c])||l,g=s.useMemo(()=>h,Object.values(h));return y.jsx(v.Provider,{value:g,children:p})};u.displayName=i+"Provider";function d(f,m){var v;const p=((v=m==null?void 0:m[e])==null?void 0:v[c])||l,h=s.useContext(p);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(a=>s.createContext(a));return function(l){const c=(l==null?void 0:l[e])||i;return s.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,jh(o,...t)]}function jh(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));
23return function(i){const a=r.reduce((l,{useScope:c,scopeName:u})=>{const f=c(i)[`__scope${u}`];return{...l,...f}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Vh(e){const t=Bh(e),n=s.forwardRef((r,o)=>{const{children:i,...a}=r,l=s.Children.toArray(i),c=l.find(Wh);if(c){const u=c.props.children,d=l.map(f=>f===c?s.Children.count(u)>1?s.Children.only(null):s.isValidElement(u)?u.props.children:null:f);return y.jsx(t,{...a,ref:o,children:s.isValidElement(u)?s.cloneElement(u,void 0,d):null})}return y.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Bh(e){const t=s.forwardRef((n,r)=>{const{children:o,...i}=n;if(s.isValidElement(o)){const a=Kh(o),l=Uh(i,o.props);return o.type!==s.Fragment&&(l.ref=r?pe(r,a):a),s.cloneElement(o,l)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Hh=Symbol("radix.slottable");function Wh(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Hh}function Uh(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Kh(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var zh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],lt=zh.reduce((e,t)=>{const n=Vh(`Primitive.${t}`),r=s.forwardRef((o,i)=>{const{asChild:a,...l}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(c,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Gh(e,t){e&&Le.flushSync(()=>e.dispatchEvent(t))}var Yh=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Zh="VisuallyHidden",Fo=s.forwardRef((e,t)=>y.jsx(lt.span,{...e,ref:t,style:{...Yh,...e.style}}));Fo.displayName=Zh;var jo="ToastProvider",[Vo,Xh,qh]=ko("Toast"),[Na,Ey]=Fh("Toast",[qh]),[Qh,Jn]=Na(jo),La=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:a}=e,[l,c]=s.useState(null),[u,d]=s.useState(0),f=s.useRef(!1),m=s.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${jo}\`. Expected non-empty \`string\`.`),y.jsx(Vo.Provider,{scope:t,children:y.jsx(Qh,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:c,onToastAdd:s.useCallback(()=>d(p=>p+1),[]),onToastRemove:s.useCallback(()=>d(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:m,children:a})})};La.displayName=jo;var ka="ToastViewport",Jh=["F8"],qr="toast.viewportPause",Qr="toast.viewportResume",Fa=s.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=Jh,label:o="Notifications ({hotkey})",...i}=e,a=Jn(ka,n),l=Xh(n),c=s.useRef(null),u=s.useRef(null),d=s.useRef(null),f=s.useRef(null),m=ce(t,f,a.onViewportChange),p=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),h=a.toastCount>0;s.useEffect(()=>{const g=b=>{var w;r.length!==0&&r.every(C=>b[C]||b.code===C)&&((w=f.current)==null||w.focus())};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[r]),s.useEffect(()=>{const g=c.current,b=f.current;if(h&&g&&b){const x=()=>{if(!a.isClosePausedRef.current){const P=new CustomEvent(qr);b.dispatchEvent(P),a.isClosePausedRef.current=!0}},w=()=>{if(a.isClosePausedRef.current){const P=new CustomEvent(Qr);b.dispatchEvent(P),a.isClosePausedRef.current=!1}},C=P=>{!g.contains(P.relatedTarget)&&w()},E=()=>{g.contains(document.activeElement)||w()};return g.addEventListener("focusin",x),g.addEventListener("focusout",C),g.addEventListener("pointermove",x),g.addEventListener("pointerleave",E),window.addEventListener("blur",x),window.addEventListener("focus",w),()=>{g.removeEventListener("focusin",x),g.removeEventListener("focusout",C),g.removeEventListener("pointermove",x),g.removeEventListener("pointerleave",E),window.removeEventListener("blur",x),window.removeEventListener("focus",w)}}},[h,a.isClosePausedRef]);const v=s.useCallback(({tabbingDirection:g})=>{const x=l().map(w=>{const C=w.ref.current,E=[C,...fg(C)];return g==="forwards"?E:E.reverse()});return(g==="forwards"?x.reverse():x).flat()},[l]);return s.useEffect(()=>{const g=f.current;if(g){const b=x=>{var E,P,R;const w=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!w){const $=document.activeElement,N=x.shiftKey;if(x.target===g&&N){(E=u.current)==null||E.focus();return}const V=v({tabbingDirection:N?"backwards":"forwards"}),K=V.findIndex(O=>O===$);Rr(V.slice(K+1))?x.preventDefault():N?(P=u.current)==null||P.focus():(R=d.current)==null||R.focus()}};return g.addEventListener("keydown",b),()=>g.removeEventListener("keydown",b)}},[l,v]),y.jsxs(Jp,{ref:c,role:"region","aria-label":o.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:h?void 0:"none"},children:[h&&y.jsx(Jr,{ref:u,onFocusFromOutsideViewport:()=>{const g=v({tabbingDirection:"forwards"});Rr(g)}}),y.jsx(Vo.Slot,{scope:n,children:y.jsx(lt.ol,{tabIndex:-1,...i,ref:m})}),h&&y.jsx(Jr,{ref:d,onFocusFromOutsideViewport:()=>{const g=v({tabbingDirection:"backwards"});Rr(g)}})]})});Fa.displayName=ka;var ja="ToastFocusProxy",Jr=s.forwardRef((e,t)=>
23{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=Jn(ja,n);return y.jsx(Fo,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:a=>{var u;const l=a.relatedTarget;!((u=i.viewport)!=null&&u.contains(l))&&r()}})});Jr.displayName=ja;var sn="Toast",eg="toast.swipeStart",tg="toast.swipeMove",ng="toast.swipeCancel",rg="toast.swipeEnd",Va=s.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...a}=e,[l,c]=at({prop:r,defaultProp:o??!0,onChange:i,caller:sn});return y.jsx(Oe,{present:n||l,children:y.jsx(sg,{open:l,...a,ref:t,onClose:()=>c(!1),onPause:Ce(e.onPause),onResume:Ce(e.onResume),onSwipeStart:W(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:W(e.onSwipeMove,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:W(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:W(e.onSwipeEnd,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),c(!1)})})})});Va.displayName=sn;var[og,ig]=Na(sn,{onClose(){}}),sg=s.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:a,onEscapeKeyDown:l,onPause:c,onResume:u,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:m,onSwipeEnd:p,...h}=e,v=Jn(sn,n),[g,b]=s.useState(null),x=ce(t,O=>b(O)),w=s.useRef(null),C=s.useRef(null),E=o||v.duration,P=s.useRef(0),R=s.useRef(E),$=s.useRef(0),{onToastAdd:N,onToastRemove:_}=v,I=Ce(()=>{var S;(g==null?void 0:g.contains(document.activeElement))&&((S=v.viewport)==null||S.focus()),a()}),V=s.useCallback(O=>{!O||O===1/0||(window.clearTimeout($.current),P.current=new Date().getTime(),$.current=window.setTimeout(I,O))},[I]);s.useEffect(()=>{const O=v.viewport;if(O){const S=()=>{V(R.current),u==null||u()},D=()=>{const k=new Date().getTime()-P.current;R.current=R.current-k,window.clearTimeout($.current),c==null||c()};return O.addEventListener(qr,D),O.addEventListener(Qr,S),()=>{O.removeEventListener(qr,D),O.removeEventListener(Qr,S)}}},[v.viewport,E,c,u,V]),s.useEffect(()=>{i&&!v.isClosePausedRef.current&&V(E)},[i,E,v.isClosePausedRef,V]),s.useEffect(()=>(N(),()=>_()),[N,_]);const K=s.useMemo(()=>g?Ga(g):null,[g]);return v.viewport?y.jsxs(y.Fragment,{children:[K&&y.jsx(ag,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:K}),y.jsx(og,{scope:n,onClose:I,children:Le.createPortal(y.jsx(Vo.ItemSlot,{scope:n,children:y.jsx(Qp,{asChild:!0,onEscapeKeyDown:W(l,()=>{v.isFocusedToastEscapeKeyDownRef.current||I(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:y.jsx(lt.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":v.swipeDirection,...h,ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:W(e.onKeyDown,O=>{O.key==="Escape"&&(l==null||l(O.nativeEvent),O.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,I()))}),onPointerDown:W(e.onPointerDown,O=>{O.button===0&&(w.current={x:O.clientX,y:O.clientY})}),onPointerMove:W(e.onPointerMove,O=>{if(!w.current)return;const S=O.clientX-w.current.x,D=O.clientY-w.current.y,k=!!C.current,M=["left","right"].includes(v.swipeDirection),T=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,z=M?T(0,S):0,X=M?0:T(0,D),q=O.pointerType==="touch"?10:2,se={x:z,y:X},H={originalEvent:O,delta:se};k?(C.current=se,gn(tg,f,H,{discrete:!1})):Ni(se,v.swipeDirection,q)?(C.current=se,gn(eg,d,H,{discrete:!1}),O.target.setPointerCapture(O.pointerId)):(Math.abs(S)>q||Math.abs(D)>q)&&(w.current=null)}),onPointerUp:W(e.onPointerUp,O=>{const S=C.current,D=O.target;if(D.hasPointerCapture(O.pointerId)&&D.releasePointerCapture(O.pointerId),C.current=null,w.current=null,S){const k=O.currentTarget,M={originalEvent:O,delta:S};Ni(S,v.swipeDirection,v.swipeThreshold)?gn(rg,p,M,{discrete:!0}):gn(ng,m,M,{discrete:!0}),k.addEventListener("click",T=>T.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),ag=e=>{const{__scopeToast:t,children:n,...r}=e,o=Jn(sn,t),[i,a]=s.useState(!1),[l,c]=s.useState(!1);return ug(()=>a(!0)),s.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:y.jsx(Zn,{asChild:!0,children:y.jsx(Fo,{...r,children:i&&y.jsxs(y.Fragment,{children:[o.label," ",n]})})})},lg="ToastTitle",Ba=s.forwardRef((e,t)=>
23{const{__scopeToast:n,...r}=e;return y.jsx(lt.div,{...r,ref:t})});Ba.displayName=lg;var cg="ToastDescription",Ha=s.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return y.jsx(lt.div,{...r,ref:t})});Ha.displayName=cg;var Wa="ToastAction",Ua=s.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?y.jsx(za,{altText:n,asChild:!0,children:y.jsx(Bo,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Wa}\`. Expected non-empty \`string\`.`),null)});Ua.displayName=Wa;var Ka="ToastClose",Bo=s.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=ig(Ka,n);return y.jsx(za,{asChild:!0,children:y.jsx(lt.button,{type:"button",...r,ref:t,onClick:W(e.onClick,o.onClose)})})});Bo.displayName=Ka;var za=s.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return y.jsx(lt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Ga(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),dg(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const a=r.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...Ga(r))}}),t}function gn(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Gh(o,i):o.dispatchEvent(i)}var Ni=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function ug(e=()=>{}){const t=Ce(e);Be(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function dg(e){return e.nodeType===e.ELEMENT_NODE}function fg(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Rr(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Sy=La,Ry=Fa,$y=Va,Py=Ba,Ty=Ha,Oy=Ua,Iy=Bo;function Ya(e,t=[]){let n=[];function r(i,a){const l=s.createContext(a),c=n.length;n=[...n,a];const u=f=>{var b;const{scope:m,children:p,...h}=f,v=((b=m==null?void 0:m[e])==null?void 0:b[c])||l,g=s.useMemo(()=>h,Object.values(h));return y.jsx(v.Provider,{value:g,children:p})};u.displayName=i+"Provider";function d(f,m){var v;const p=((v=m==null?void 0:m[e])==null?void 0:v[c])||l,h=s.useContext(p);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(a=>s.createContext(a));return function(l){const c=(l==null?void 0:l[e])||i;return s.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,pg(o,...t)]}function pg(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((l,{useScope:c,scopeName:u})=>{const f=c(i)[`__scope${u}`];return{...l,...f}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function vg(e){const t=mg(e),n=s.forwardRef((r,o)=>{const{children:i,...a}=r,l=s.Children.toArray(i),c=l.find(gg);if(c){const u=c.props.children,d=l.map(f=>f===c?s.Children.count(u)>1?s.Children.only(null):s.isValidElement(u)?u.props.children:null:f);return y.jsx(t,{...a,ref:o,children:s.isValidElement(u)?s.cloneElement(u,void 0,d):null})}return y.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function mg(e){const t=s.forwardRef((n,r)=>{const{children:o,...i}=n;if(s.isValidElement(o)){const a=xg(o),l=bg(i,o.props);return o.type!==s.Fragment&&(l.ref=r?pe(r,a):a),s.cloneElement(o,l)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var hg=Symbol("radix.slottable");function gg(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===hg}function bg(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}
23:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function xg(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var wg=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],er=wg.reduce((e,t)=>{const n=vg(`Primitive.${t}`),r=s.forwardRef((o,i)=>{const{asChild:a,...l}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(c,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function yg(e,t=[]){let n=[];function r(i,a){const l=s.createContext(a),c=n.length;n=[...n,a];const u=f=>{var b;const{scope:m,children:p,...h}=f,v=((b=m==null?void 0:m[e])==null?void 0:b[c])||l,g=s.useMemo(()=>h,Object.values(h));return y.jsx(v.Provider,{value:g,children:p})};u.displayName=i+"Provider";function d(f,m){var v;const p=((v=m==null?void 0:m[e])==null?void 0:v[c])||l,h=s.useContext(p);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(a=>s.createContext(a));return function(l){const c=(l==null?void 0:l[e])||i;return s.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,Cg(o,...t)]}function Cg(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((l,{useScope:c,scopeName:u})=>{const f=c(i)[`__scope${u}`];return{...l,...f}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Eg(e){const t=Sg(e),n=s.forwardRef((r,o)=>{const{children:i,...a}=r,l=s.Children.toArray(i),c=l.find($g);if(c){const u=c.props.children,d=l.map(f=>f===c?s.Children.count(u)>1?s.Children.only(null):s.isValidElement(u)?u.props.children:null:f);return y.jsx(t,{...a,ref:o,children:s.isValidElement(u)?s.cloneElement(u,void 0,d):null})}return y.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Sg(e){const t=s.forwardRef((n,r)=>{const{children:o,...i}=n;if(s.isValidElement(o)){const a=Tg(o),l=Pg(i,o.props);return o.type!==s.Fragment&&(l.ref=r?pe(r,a):a),s.cloneElement(o,l)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Rg=Symbol("radix.slottable");function $g(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Rg}function Pg(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Tg(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Og=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Za=Og.reduce((e,t)=>{const n=Eg(`Primitive.${t}`),r=s.forwardRef((o,i)=>{const{asChild:a,...l}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(c,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Ig=s.createContext(void 0);function Ho(e){const t=s.useContext(Ig);return e||t||"ltr"}var $r="rovingFocusGroup.onEntryFocus",_g={bubbles:!1,cancelable:!0},an="RovingFocusGroup",[eo,Xa,Ag]=ko(an),[Mg,tr]=yg(an,[Ag]),[Dg,Ng]=Mg(an),qa=s.forwardRef((e,t)=>y.jsx(eo.Provider,{scope:e.__scopeRovingFocusGroup,children:y.jsx(eo.Slot,{scope:e.__scopeRovingFocusGroup,children:y.jsx(Lg,{...e,ref:t})})}));qa.displayName=an;var Lg=s.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=e,m=s.useRef(null),p=ce(t,m),h=Ho(i),[v,g]=at({prop:a,defaultProp:l??null,onChange:c,caller:an}
23),[b,x]=s.useState(!1),w=Ce(u),C=Xa(n),E=s.useRef(!1),[P,R]=s.useState(0);return s.useEffect(()=>{const $=m.current;if($)return $.addEventListener($r,w),()=>$.removeEventListener($r,w)},[w]),y.jsx(Dg,{scope:n,orientation:r,dir:h,loop:o,currentTabStopId:v,onItemFocus:s.useCallback($=>g($),[g]),onItemShiftTab:s.useCallback(()=>x(!0),[]),onFocusableItemAdd:s.useCallback(()=>R($=>$+1),[]),onFocusableItemRemove:s.useCallback(()=>R($=>$-1),[]),children:y.jsx(Za.div,{tabIndex:b||P===0?-1:0,"data-orientation":r,...f,ref:p,style:{outline:"none",...e.style},onMouseDown:W(e.onMouseDown,()=>{E.current=!0}),onFocus:W(e.onFocus,$=>{const N=!E.current;if($.target===$.currentTarget&&N&&!b){const _=new CustomEvent($r,_g);if($.currentTarget.dispatchEvent(_),!_.defaultPrevented){const I=C().filter(D=>D.focusable),V=I.find(D=>D.active),K=I.find(D=>D.id===v),S=[V,K,...I].filter(Boolean).map(D=>D.ref.current);el(S,d)}}E.current=!1}),onBlur:W(e.onBlur,()=>x(!1))})})}),Qa="RovingFocusGroupItem",Ja=s.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:a,...l}=e,c=Wt(),u=i||c,d=Ng(Qa,n),f=d.currentTabStopId===u,m=Xa(n),{onFocusableItemAdd:p,onFocusableItemRemove:h,currentTabStopId:v}=d;return s.useEffect(()=>{if(r)return p(),()=>h()}
23,[r,p,h]),y.jsx(eo.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:y.jsx(Za.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...l,ref:t,onMouseDown:W(e.onMouseDown,g=>{r?d.onItemFocus(u):g.preventDefault()}),onFocus:W(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:W(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){d.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const b=jg(g,d.orientation,d.dir);if(b!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let w=m().filter(C=>C.focusable).map(C=>C.ref.current);if(b==="last")w.reverse();else if(b==="prev"||b==="next"){b==="prev"&&w.reverse();const C=w.indexOf(g.currentTarget);w=d.loop?Vg(w,C+1):w.slice(C+1)}setTimeout(()=>el(w))}}),children:typeof a=="function"?a({isCurrentTabStop:f,hasTabStop:v!=null}):a})})});Ja.displayName=Qa;var kg={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Fg(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function jg(e,t,n){const r=Fg(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return kg[r]}function el(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Vg(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var tl=qa,nl=Ja;function rl(e){const t=s.useRef({value:e,previous:e});return s.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Wo="Radio",[Bg,ol]=Ya(Wo),[Hg,Wg]=Bg(Wo),il=s.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:i,disabled:a,value:l="on",onCheck:c,form:u,...d}=e,[f,m]=s.useState(null),p=ce(t,g=>m(g)),h=s.useRef(!1),v=f?u||!!f.closest("form"):!0;return y.jsxs(Hg,{scope:n,checked:o,disabled:a,children:[y.jsx(er.button,{type:"button",role:"radio","aria-checked":o,"data-state":cl(o),"data-disabled":a?"":void 0,disabled:a,value:l,...d,ref:p,onClick:W(e.onClick,g=>{o||c==null||c(),v&&(h.current=g.isPropagationStopped(),h.current||g.stopPropagation())})}),v&&y.jsx(ll,{control:f,bubbles:!h.current,name:r,value:l,checked:o,required:i,disabled:a,form:u,style:{transform:"translateX(-100%)"}})]})});il.displayName=Wo;var sl="RadioIndicator",al=s.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,i=Wg(sl,n);return y.jsx(Oe,{present:r||i.checked,children:y.jsx(er.span,{"data-state":cl(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t})})});al.displayName=sl;var Ug="RadioBubbleInput",ll=s.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...o},i)=>{const a=s.useRef(null),l=ce(a,i),c=rl(n),u=Io(t);return s.useEffect(()=>{const d=a.current;if(!d)return;const f=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(f,"checked").set;if(c!==n&&p){const h=new Event("click",{bubbles:r});p.call(d,n),d.dispatchEvent(h)}},[c,n,r]),y.jsx(er.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:l,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});ll.displayName=Ug;function cl(e){return e?"checked":"unchecked"}var Kg=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],nr="RadioGroup",[zg,_y]=Ya(nr,[tr,ol]),ul=tr(),dl=ol(),[Gg,Yg]=zg(nr),fl=s.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:i,required:a=!1,disabled:l=!1,orientation:c,dir:u,loop:d=!0,onValueChange:f,...m}=e,p=ul(n),h=Ho(u),[v,g]=at({prop:i,defaultProp:o??null,onChange:f,caller:nr});return y.jsx(Gg,{scope:n,name:r,required:a,disabled:l,value:v,onValueChange:g,children:y.jsx(tl,{asChild:!0,...p,orientation:c,dir:h,loop:d,children:y.jsx(er.div,{role:"radiogroup","aria-required":a,"aria-orientation":c,"data-disabled":l?"":void 0,dir:h,...m,ref:t})})})});fl.displayName=nr;var pl="RadioGroupItem",vl=s.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,i=Yg(pl,n),a=i.disabled||r,l=ul(n),c=dl(n),u=s.useRef(null),d=ce(t,u),f=i.value===o.value,m=s.useRef(!1);return s.useEffect(()=>{const p=v=>
23{Kg.includes(v.key)&&(m.current=!0)},h=()=>m.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",h),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",h)}},[]),y.jsx(nl,{asChild:!0,...l,focusable:!a,active:f,children:y.jsx(il,{disabled:a,required:i.required,checked:f,...c,...o,name:i.name,ref:d,onCheck:()=>i.onValueChange(o.value),onKeyDown:W(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:W(o.onFocus,()=>{var p;m.current&&((p=u.current)==null||p.click())})})})});vl.displayName=pl;var Zg="RadioGroupIndicator",ml=s.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=dl(n);return y.jsx(al,{...o,...r,ref:t})});ml.displayName=Zg;var Ay=fl,My=vl,Dy=ml;function Xg(e,t=[]){let n=[];function r(i,a){const l=s.createContext(a),c=n.length;n=[...n,a];const u=f=>{var b;const{scope:m,children:p,...h}=f,v=((b=m==null?void 0:m[e])==null?void 0:b[c])||l,g=s.useMemo(()=>h,Object.values(h));return y.jsx(v.Provider,{value:g,children:p})};u.displayName=i+"Provider";function d(f,m){var v;const p=((v=m==null?void 0:m[e])==null?void 0:v[c])||l,h=s.useContext(p);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(a=>s.createContext(a));return function(l){const c=(l==null?void 0:l[e])||i;return s.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,qg(o,...t)]}function qg(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((l,{useScope:c,scopeName:u})=>{const f=c(i)[`__scope${u}`];return{...l,...f}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Qg(e){const t=Jg(e),n=s.forwardRef((r,o)=>{const{children:i,...a}=r,l=s.Children.toArray(i),c=l.find(t1);if(c){const u=c.props.children,d=l.map(f=>f===c?s.Children.count(u)>1?s.Children.only(null):s.isValidElement(u)?u.props.children:null:f);return y.jsx(t,{...a,ref:o,children:s.isValidElement(u)?s.cloneElement(u,void 0,d):null})}return y.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Jg(e){const t=s.forwardRef((n,r)=>{const{children:o,...i}=n;if(s.isValidElement(o)){const a=r1(o),l=n1(i,o.props);return o.type!==s.Fragment&&(l.ref=r?pe(r,a):a),s.cloneElement(o,l)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var e1=Symbol("radix.slottable");function t1(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===e1}function n1(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function r1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var o1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Uo=o1.reduce((e,t)=>{const n=Qg(`Primitive.${t}`),r=s.forwardRef((o,i)=>{const{asChild:a,...l}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(c,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),rr="Checkbox",[i1,Ny]=Xg(rr),[s1,Ko]=i1(rr);function a1(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:i,form:a,name:l,onCheckedChange:c,required:u,value:d="on",internal_do_not_use_render:f}=e,[m,p]=at({prop:n,defaultProp:o??!1,onChange:c,caller:rr}),[h,v]=s.useState(null),[g,b]=s.useState(null),x=s.useRef(!1),w=h?!!a||!!h.closest("form"):!0,C={checked:m,disabled:i,setChecked:p,control:h,setControl:v,name:l,form:a,value:d,hasConsumerStoppedPropagationRef:x,required:u,defaultChecked:Ze(o)?!1:o,isFormControl:w,bubbleInput:g,setBubbleInput:b};return y.jsx(s1,{scope:t,...C,children:u1(f)?f(C):r})}var hl="CheckboxTrigger",gl=s.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:i,value:a,disabled:l,checked:c,required:u,setControl:d,setChecked:f,hasConsumerStoppedPropagationRef:m,isFormControl:p,bubbleInput:h}=Ko(hl,e),v=ce(o,d),g=s.useRef(c);return s.useEffect(()=>{const b=i==null?void 0:i.form;if(b){const x=()=>f(g.current);return b.addEventListener("reset",x),()=>b.removeEventListener("reset",x)}},[i,f]),y.jsx(Uo.button,{type:"button",role:"checkbox","aria-checked":Ze(c)?"mixed":c,"aria-required":u,"data-state":yl(c),"data-disabled":l?"":void 0,disabled:l,value:a,...r,ref:v,onKeyDown:W(t,b=>{b.key==="Enter"&&b.preventDefault()}),onClick:W(n,b=>{f(x=>Ze(x)?!0:!x),h&&p&&(m.current=b.isPropagationStopped(),m.current||b.stopPropagation())})})});gl.displayName=hl;var l1=s.forwardRef((e,t)=>
23{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:a,disabled:l,value:c,onCheckedChange:u,form:d,...f}=e;return y.jsx(a1,{__scopeCheckbox:n,checked:o,defaultChecked:i,disabled:l,required:a,onCheckedChange:u,name:r,form:d,value:c,internal_do_not_use_render:({isFormControl:m})=>y.jsxs(y.Fragment,{children:[y.jsx(gl,{...f,ref:t,__scopeCheckbox:n}),m&&y.jsx(wl,{__scopeCheckbox:n})]})})});l1.displayName=rr;var bl="CheckboxIndicator",c1=s.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=Ko(bl,n);return y.jsx(Oe,{present:r||Ze(i.checked)||i.checked===!0,children:y.jsx(Uo.span,{"data-state":yl(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});c1.displayName=bl;var xl="CheckboxBubbleInput",wl=s.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:a,required:l,disabled:c,name:u,value:d,form:f,bubbleInput:m,setBubbleInput:p}=Ko(xl,e),h=ce(n,p),v=rl(i),g=Io(r);s.useEffect(()=>{const x=m;if(!x)return;const w=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(w,"checked").set,P=!o.current;if(v!==i&&E){const R=new Event("click",{bubbles:P});x.indeterminate=Ze(i),E.call(x,Ze(i)?!1:i),x.dispatchEvent(R)}},[m,v,i,o]);const b=s.useRef(Ze(i)?!1:i);return y.jsx(Uo.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??b.current,required:l,disabled:c,name:u,value:d,form:f,...t,tabIndex:-1,ref:h,style:{...t.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});wl.displayName=xl;function u1(e){return typeof e=="function"}function Ze(e){return e==="indeterminate"}function yl(e){return Ze(e)?"indeterminate":e?"checked":"unchecked"}var d1=Symbol.for("react.lazy"),Dn=Ve[" use ".trim().toString()];function f1(e){return typeof e=="object"&&e!==null&&"then"in e}function Cl(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===d1&&"_payload"in e&&f1(e._payload)}function El(e){const t=p1(e),n=s.forwardRef((r,o)=>{let{children:i,...a}=r;Cl(i)&&typeof Dn=="function"&&(i=Dn(i._payload));const l=s.Children.toArray(i),c=l.find(m1);if(c){const u=c.props.children,d=l.map(f=>f===c?s.Children.count(u)>1?s.Children.only(null):s.isValidElement(u)?u.props.children:null:f);return y.jsx(t,{...a,ref:o,children:s.isValidElement(u)?s.cloneElement(u,void 0,d):null})}return y.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var Ly=El("Slot");function p1(e){const t=s.forwardRef((n,r)=>{let{children:o,...i}=n;if(Cl(o)&&typeof Dn=="function"&&(o=Dn(o._payload)),s.isValidElement(o)){const a=g1(o),l=h1(i,o.props);return o.type!==s.Fragment&&(l.ref=r?pe(r,a):a),s.cloneElement(o,l)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var v1=Symbol("radix.slottable");function m1(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===v1}function h1(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function g1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var b1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],x1=b1.reduce((e,t)=>{const n=El(`Primitive.${t}`),r=s.forwardRef((o,i)=>{const{asChild:a,...l}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(c,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),w1="Label",Sl=s.forwardRef((e,t)=>y.jsx(x1.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Sl.displayName=w1;var ky=Sl;function y1(e,t=[]){let n=[];function r(i,a){const l=s.createContext(a),c=n.length;n=[...n,a];const u=f=>{var b;const{scope:m,children:p,...h}=f,v=((b=m==null?void 0:m[e])==null?void 0:b[c])||l,g=s.useMemo(()=>h,Object.values(h));return y.jsx(v.Provider,{value:g,children:p})};u.displayName=i+"Provider";function d(f,m){var v;const p=((v=m==null?void 0:m[e])==null?void 0:v[c])||l,h=s.useContext(p);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(a=>s.createContext(a));return function(l){const c=(l==null?void 0:l[e])||i;return s.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,C1(o,...t)]}function C1(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));
23return function(i){const a=r.reduce((l,{useScope:c,scopeName:u})=>{const f=c(i)[`__scope${u}`];return{...l,...f}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var Pr=0;function Rl(){s.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Li()),document.body.insertAdjacentElement("beforeend",e[1]??Li()),Pr++,()=>{Pr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Pr--}},[])}function Li(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}function E1(e){const t=S1(e),n=s.forwardRef((r,o)=>{const{children:i,...a}=r,l=s.Children.toArray(i),c=l.find($1);if(c){const u=c.props.children,d=l.map(f=>f===c?s.Children.count(u)>1?s.Children.only(null):s.isValidElement(u)?u.props.children:null:f);return y.jsx(t,{...a,ref:o,children:s.isValidElement(u)?s.cloneElement(u,void 0,d):null})}return y.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function S1(e){const t=s.forwardRef((n,r)=>{const{children:o,...i}=n;if(s.isValidElement(o)){const a=T1(o),l=P1(i,o.props);return o.type!==s.Fragment&&(l.ref=r?pe(r,a):a),s.cloneElement(o,l)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var R1=Symbol("radix.slottable");function $1(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===R1}function P1(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function T1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var O1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],I1=O1.reduce((e,t)=>{const n=E1(`Primitive.${t}`),r=s.forwardRef((o,i)=>{const{asChild:a,...l}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(c,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Tr="focusScope.autoFocusOnMount",Or="focusScope.autoFocusOnUnmount",ki={bubbles:!1,cancelable:!0},_1="FocusScope",zo=s.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,c]=s.useState(null),u=Ce(o),d=Ce(i),f=s.useRef(null),m=ce(t,v=>c(v)),p=s.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s.useEffect(()=>{if(r){let v=function(w){if(p.paused||!l)return;const C=w.target;l.contains(C)?f.current=C:ze(f.current,{select:!0})},g=function(w){if(p.paused||!l)return;const C=w.relatedTarget;C!==null&&(l.contains(C)||ze(f.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&ze(l)};document.addEventListener("focusin",v),document.addEventListener("focusout",g);const x=new MutationObserver(b);return l&&x.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",g),x.disconnect()}}},[r,l,p.paused]),s.useEffect(()=>{if(l){ji.add(p);const v=document.activeElement;if(!l.contains(v)){const b=new CustomEvent(Tr,ki);l.addEventListener(Tr,u),l.dispatchEvent(b),b.defaultPrevented||(A1(k1($l(l)),{select:!0}),document.activeElement===v&&ze(l))}return()=>{l.removeEventListener(Tr,u),setTimeout(()=>{const b=new CustomEvent(Or,ki);l.addEventListener(Or,d),l.dispatchEvent(b),b.defaultPrevented||ze(v??document.body,{select:!0}),l.removeEventListener(Or,d),ji.remove(p)},0)}}},[l,u,d,p]);const h=s.useCallback(v=>{if(!n&&!r||p.paused)return;const g=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,b=document.activeElement;if(g&&b){const x=v.currentTarget,[w,C]=M1(x);w&&C?!v.shiftKey&&b===C?(v.preventDefault(),n&&ze(w,{select:!0})):v.shiftKey&&b===w&&(v.preventDefault(),n&&ze(C,{select:!0})):b===x&&v.preventDefault()}},[n,r,p.paused]);return y.jsx(I1.div,{tabIndex:-1,...a,ref:m,onKeyDown:h})});zo.displayName=_1;function A1(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ze(r,{select:t}),document.activeElement!==n)return}function M1(e){const t=$l(e),n=Fi(t,e),r=Fi(t.reverse(),e);return[n,r]}function $l(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Fi(e,t){for(const n of e)if(!D1(n,{upTo:t}))return n}function D1(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function N1(e){return e instanceof HTMLInputElement&&"select"in e}function ze(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&N1(e)&&t&&e.select()}}var ji=L1();function L1(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Vi(e,t),e.unshift(t)},remove(t){var n;e=Vi(e,t),(n=e[0])==null||n.resume()}}}function Vi(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function k1(e){return e.filter(t=>t.tagName!=="A")}function Pl(e){const t=F1(e),n=s.forwardRef((r,o)=>{const{children:i,...a}=r,l=s.Children.toArray(i),c=l.find(V1);if(c){const u=c.props.children,d=l.map(f=>f===c?s.Children.count(u)>1?s.Children.only(null):s.isValidElement(u)?u.props.children:null:f);return y.jsx(t,{...a,ref:o,children:s.isValidElement(u)?s.cloneElement(u,void 0,d):null})}return y.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function F1(e){const t=s.forwardRef((n,r)=>{const{children:o,...i}=n;
23if(s.isValidElement(o)){const a=H1(o),l=B1(i,o.props);return o.type!==s.Fragment&&(l.ref=r?pe(r,a):a),s.cloneElement(o,l)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var j1=Symbol("radix.slottable");function V1(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===j1}function B1(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function H1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var W1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Tl=W1.reduce((e,t)=>{const n=Pl(`Primitive.${t}`),r=s.forwardRef((o,i)=>{const{asChild:a,...l}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(c,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),U1=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},mt=new WeakMap,bn=new WeakMap,xn={},Ir=0,Ol=function(e){return e&&(e.host||Ol(e.parentNode))},K1=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ol(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},z1=function(e,t,n,r){var o=K1(t,Array.isArray(e)?e:[e]);xn[n]||(xn[n]=new WeakMap);var i=xn[n],a=[],l=new Set,c=new Set(o),u=function(f){!f||l.has(f)||(l.add(f),u(f.parentNode))};o.forEach(u);var d=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(m){if(l.has(m))d(m);else try{var p=m.getAttribute(r),h=p!==null&&p!=="false",v=(mt.get(m)||0)+1,g=(i.get(m)||0)+1;mt.set(m,v),i.set(m,g),a.push(m),v===1&&h&&bn.set(m,!0),g===1&&m.setAttribute(n,"true"),h||m.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",m,b)}})};return d(t),l.clear(),Ir++,function(){a.forEach(function(f){var m=mt.get(f)-1,p=i.get(f)-1;mt.set(f,m),i.set(f,p),m||(bn.has(f)||f.removeAttribute(r),bn.delete(f)),p||f.removeAttribute(n)}),Ir--,Ir||(mt=new WeakMap,mt=new WeakMap,bn=new WeakMap,xn={})}},Go=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||U1(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),z1(r,o,n,"aria-hidden")):function(){return null}},he=function(){return he=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},he.apply(this,arguments)};function Yo(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Il(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var jt="right-scroll-bar-position",Vt="width-before-scroll-bar",G1="with-scroll-bars-hidden",Y1="--removed-body-scroll-bar-size";function _r(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Z1(e,t){var n=s.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var X1=typeof window<"u"?s.useLayoutEffect:s.useEffect,Bi=new WeakMap;function _l(e,t){var n=Z1(t||null,function(r){return e.forEach(function(o){return _r(o,r)})});return X1(function(){var r=Bi.get(n);if(r){var o=new Set(r),i=new Set(e),a=n.current;o.forEach(function(l){i.has(l)||_r(l,null)}
vendor: 4,172 bytes, lines 23-38
23),i.forEach(function(l){o.has(l)||_r(l,a)})}Bi.set(n,e)},[e]),n}function q1(e){return e}function Q1(e,t){t===void 0&&(t=q1);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var a=t(i,r);return n.push(a),function(){n=n.filter(function(l){return l!==a})}},assignSyncMedium:function(i){for(r=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(l){return i(l)},filter:function(){return n}}},assignMedium:function(i){r=!0;var a=[];if(n.length){var l=n;n=[],l.forEach(i),a=n}var c=function(){var d=a;a=[],d.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){a.push(d),u()},filter:function(d){return a=a.filter(d),n}}}};return o}function Al(e){e===void 0&&(e={});var t=Q1(null);return t.options=he({async:!0,ssr:!1},e),t}var Ml=function(e){var t=e.sideCar,n=Yo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return s.createElement(r,he({},n))};Ml.isSideCarExport=!0;function Dl(e,t){return e.useMedium(t),Ml}var Nl=Al(),Ar=function(){},or=s.forwardRef(function(e,t){var n=s.useRef(null),r=s.useState({onScrollCapture:Ar,onWheelCapture:Ar,onTouchMoveCapture:Ar}),o=r[0],i=r[1],a=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,m=e.sideCar,p=e.noRelative,h=e.noIsolation,v=e.inert,g=e.allowPinchZoom,b=e.as,x=b===void 0?"div":b,w=e.gapMode,C=Yo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=m,P=_l([n,t]),R=he(he({},C),o);return s.createElement(s.Fragment,null,d&&s.createElement(E,{sideCar:Nl,removeScrollBar:u,shards:f,noRelative:p,noIsolation:h,inert:v,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:w}),a?s.cloneElement(s.Children.only(l),he(he({},R),{ref:P})):s.createElement(x,he({},R,{className:c,ref:P}),l))});or.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};or.classNames={fullWidth:Vt,zeroRight:jt};var Hi,J1=function(){if(Hi)return Hi;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function e0(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=J1();return t&&e.setAttribute("nonce",t),e}function t0(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function n0(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var r0=function(){var e=0,t=null;return{add:function(n){e==0&&(t=e0())&&(t0(t,n),n0(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},o0=function(){var e=r0();return function(t,n){s.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Zo=function(){var e=o0(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},i0={left:0,top:0,right:0,gap:0},Mr=function(e){return parseInt(e||"",10)||0},s0=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Mr(n),Mr(r),Mr(o)]},a0=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return i0;var t=s0(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},l0=Zo(),yt="data-scroll-locked",c0=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,l=e.gap;return n===void 0&&(n="margin"),`
24  .`.concat(G1,` {
25   overflow: hidden `).concat(r,`;
26   padding-right: `).concat(l,"px ").concat(r,`;
27  }
28  body[`).concat(yt,`] {
29    overflow: hidden `).concat(r,`;
30    overscroll-behavior: contain;
31    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
32    padding-left: `.concat(o,`px;
33    padding-top: `).concat(i,`px;
34    padding-right: `).concat(a,`px;
35    margin-left:0;
36    margin-top:0;
37    margin-right: `).concat(l,"px ").concat(r,`;
38    `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";
38")].filter(Boolean).join(""),`
39  }
40  
41  .`).concat(jt,` {
42    right: `).concat(l,"px ").concat(r,`;
43  }
44  
45  .`).concat(Vt,` {
46    margin-right: `).concat(l,"px ").concat(r,`;
47  }
48  
49  .`).concat(jt," .").concat(jt,` {
50    right: 0 `).concat(r,`;
51  }
52  
53  .`).concat(Vt," .").concat(Vt,` {
54    margin-right: 0 `).concat(r,`;
55  }
56  
57  body[`).concat(yt,`] {
58    `).concat(Y1,": ").concat(l,`px;
59  }
60`)},Wi=function(){var e=parseInt(document.body.getAttribute(yt)||"0",10);return isFinite(e)?e:0},u0=function(){s.useEffect(function(){return document.body.setAttribute(yt,(Wi()+1).toString()),function(){var e=Wi()-1;e<=0?document.body.removeAttribute(yt):document.body.setAttribute(yt,e.toString())}},[])},Ll=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;u0();var i=s.useMemo(function(){return a0(o)},[o]);return s.createElement(l0,{styles:c0(i,!t,o,n?"":"!important")})},to=!1;if(typeof window<"u")try{var wn=Object.defineProperty({},"passive",{get:function(){return to=!0,!0}});window.addEventListener("test",wn,wn),window.removeEventListener("test",wn,wn)}catch{to=!1}var ht=to?{passive:!1}:!1,d0=function(e){return e.tagName==="TEXTAREA"},kl=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!d0(e)&&n[t]==="visible")},f0=function(e){return kl(e,"overflowY")},p0=function(e){return kl(e,"overflowX")},Ui=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Fl(e,r);if(o){var i=jl(e,r),a=i[1],l=i[2];if(a>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},v0=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},m0=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Fl=function(e,t){return e==="v"?f0(t):p0(t)},jl=function(e,t){return e==="v"?v0(t):m0(t)},h0=function(e,t){return e==="h"&&t==="rtl"?-1:1},g0=function(e,t,n,r,o){var i=h0(e,window.getComputedStyle(t).direction),a=i*r,l=n.target,c=t.contains(l),u=!1,d=a>0,f=0,m=0;do{if(!l)break;var p=jl(e,l),h=p[0],v=p[1],g=p[2],b=v-g-i*h;(h||b)&&Fl(e,l)&&(f+=b,m+=h);var x=l.parentNode;l=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(d&&(o&&Math.abs(f)<1||!o&&a>f)||!d&&(o&&Math.abs(m)<1||!o&&-a>m))&&(u=!0),u},yn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ki=function(e){return[e.deltaX,e.deltaY]},zi=function(e){return e&&"current"in e?e.current:e},b0=function(e,t){return e[0]===t[0]&&e[1]===t[1]},x0=function(e){return`
61  .block-interactivity-`.concat(e,` {pointer-events: none;}
62  .allow-interactivity-`).concat(e,` {pointer-events: all;}
63`)},w0=0,gt=[];function y0(e){var t=s.useRef([]),n=s.useRef([0,0]),r=s.useRef(),o=s.useState(w0++)[0],i=s.useState(Zo)[0],a=s.useRef(e);s.useEffect(function(){a.current=e},[e]),s.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=Il([e.lockRef.current],(e.shards||[]).map(zi),!0).filter(Boolean);return v.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=s.useCallback(function(v,g){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!a.current.allowPinchZoom;var b=yn(v),x=n.current,w="deltaX"in v?v.deltaX:x[0]-b[0],C="deltaY"in v?v.deltaY:x[1]-b[1],E,P=v.target,R=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in v&&R==="h"&&P.type==="range")return!1;var $=window.getSelection(),N=$&&$.anchorNode,_=N?N===P||N.contains(P):!1;if(_)return!1;var I=Ui(R,P);if(!I)return!0;if(I?E=R:(E=R==="v"?"h":"v",I=Ui(R,P)),!I)return!1;if(!r.current&&"changedTouches"in v&&(w||C)&&(r.current=E),!E)return!0;var V=r.current||E;return g0(V,g,v,V==="h"?w:C,!0)},[]),c=s.useCallback(function(v){var g=v;if(!(!gt.length||gt[gt.length-1]!==i)){var b="deltaY"in g?Ki(g):yn(g),x=t.current.filter(function(E){return E.name===g.type&&(E.target===g.target||g.target===E.shadowParent)&&b0(E.delta,b)})[0];if(x&&x.should){g.cancelable&&g.preventDefault();return}
63if(!x){var w=(a.current.shards||[]).map(zi).filter(Boolean).filter(function(E){return E.contains(g.target)}),C=w.length>0?l(g,w[0]):!a.current.noIsolation;C&&g.cancelable&&g.preventDefault()}}},[]),u=s.useCallback(function(v,g,b,x){var w={name:v,delta:g,target:b,should:x,shadowParent:C0(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),d=s.useCallback(function(v){n.current=yn(v),r.current=void 0},[]),f=s.useCallback(function(v){u(v.type,Ki(v),v.target,l(v,e.lockRef.current))},[]),m=s.useCallback(function(v){u(v.type,yn(v),v.target,l(v,e.lockRef.current))},[]);s.useEffect(function(){return gt.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",c,ht),document.addEventListener("touchmove",c,ht),document.addEventListener("touchstart",d,ht),function(){gt=gt.filter(function(v){return v!==i}),document.removeEventListener("wheel",c,ht),document.removeEventListener("touchmove",c,ht),document.removeEventListener("touchstart",d,ht)}},[]);var p=e.removeScrollBar,h=e.inert;return s.createElement(s.Fragment,null,h?s.createElement(i,{styles:x0(o)}):null,p?s.createElement(Ll,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function C0(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const E0=Dl(Nl,y0);var Vl=s.forwardRef(function(e,t){return s.createElement(or,he({},e,{ref:t,sideCar:E0}))});Vl.classNames=or.classNames;const Bl=Vl;var ir="Popover",[Hl,Fy]=y1(ir,[Mt]),ln=Mt(),[S0,Qe]=Hl(ir),Wl=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,l=ln(t),c=s.useRef(null),[u,d]=s.useState(!1),[f,m]=at({prop:r,defaultProp:o??!1,onChange:i,caller:ir});return y.jsx(Mo,{...l,children:y.jsx(S0,{scope:t,contentId:Wt(),triggerRef:c,open:f,onOpenChange:m,onOpenToggle:s.useCallback(()=>m(p=>!p),[m]),hasCustomAnchor:u,onCustomAnchorAdd:s.useCallback(()=>d(!0),[]),onCustomAnchorRemove:s.useCallback(()=>d(!1),[]),modal:a,children:n})})};Wl.displayName=ir;var Ul="PopoverAnchor",R0=s.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Qe(Ul,n),i=ln(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:l}=o;return s.useEffect(()=>(a(),()=>l()),[a,l]),y.jsx(Yn,{...i,...r,ref:t})});R0.displayName=Ul;var Kl="PopoverTrigger",zl=s.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Qe(Kl,n),i=ln(n),a=ce(t,o.triggerRef),l=y.jsx(Tl.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ql(o.open),...r,ref:a,onClick:W(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:y.jsx(Yn,{asChild:!0,...i,children:l})});zl.displayName=Kl;var Xo="PopoverPortal",[$0,P0]=Hl(Xo,{forceMount:void 0}),Gl=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=Qe(Xo,t);return y.jsx($0,{scope:t,forceMount:n,children:y.jsx(Oe,{present:n||i.open,children:y.jsx(Zn,{asChild:!0,container:o,children:r})})})};Gl.displayName=Xo;var $t="PopoverContent",Yl=s.forwardRef((e,t)=>{const n=P0($t,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Qe($t,e.__scopePopover);return y.jsx(Oe,{present:r||i.open,children:i.modal?y.jsx(O0,{...o,ref:t}):y.jsx(I0,{...o,ref:t})})});Yl.displayName=$t;var T0=Pl("PopoverContent.RemoveScroll"),O0=s.forwardRef((e,t)=>{const n=Qe($t,e.__scopePopover),r=s.useRef(null),o=ce(t,r),i=s.useRef(!1);return s.useEffect(()=>{const a=r.current;if(a)return Go(a)},[]),y.jsx(Bl,{as:T0,allowPinchZoom:!0,children:y.jsx(Zl,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:W(e.onCloseAutoFocus,a=>{var l;a.preventDefault(),i.current||(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:W(e.onPointerDownOutside,a=>{const l=a.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,u=l.button===2||c;i.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:W(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),I0=s.forwardRef((e,t)=>{const n=Qe($t,e.__scopePopover),r=s.useRef(!1),o=s.useRef(!1);return y.jsx(Zl,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,l;(a=e.onCloseAutoFocus)==null||a.call(e,i),i.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Zl=s.forwardRef((e,t)=>
63{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:d,...f}=e,m=Qe($t,n),p=ln(n);return Rl(),y.jsx(zo,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:y.jsx(rn,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:d,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>m.onOpenChange(!1),children:y.jsx(Do,{"data-state":ql(m.open),role:"dialog",id:m.contentId,...p,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Xl="PopoverClose",_0=s.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Qe(Xl,n);return y.jsx(Tl.button,{type:"button",...r,ref:t,onClick:W(e.onClick,()=>o.onOpenChange(!1))})});_0.displayName=Xl;var A0="PopoverArrow",M0=s.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ln(n);return y.jsx(No,{...o,...r,ref:t})});M0.displayName=A0;function ql(e){return e?"open":"closed"}var jy=Wl,Vy=zl,By=Gl,Hy=Yl;function D0(e,t=[]){let n=[];function r(i,a){const l=s.createContext(a),c=n.length;n=[...n,a];const u=f=>{var b;const{scope:m,children:p,...h}=f,v=((b=m==null?void 0:m[e])==null?void 0:b[c])||l,g=s.useMemo(()=>h,Object.values(h));return y.jsx(v.Provider,{value:g,children:p})};u.displayName=i+"Provider";function d(f,m){var v;const p=((v=m==null?void 0:m[e])==null?void 0:v[c])||l,h=s.useContext(p);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(a=>s.createContext(a));return function(l){const c=(l==null?void 0:l[e])||i;return s.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,N0(o,...t)]}function N0(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((l,{useScope:c,scopeName:u})=>{const f=c(i)[`__scope${u}`];return{...l,...f}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function L0(e){const t=k0(e),n=s.forwardRef((r,o)=>{const{children:i,...a}=r,l=s.Children.toArray(i),c=l.find(j0);if(c){const u=c.props.children,d=l.map(f=>f===c?s.Children.count(u)>1?s.Children.only(null):s.isValidElement(u)?u.props.children:null:f);return y.jsx(t,{...a,ref:o,children:s.isValidElement(u)?s.cloneElement(u,void 0,d):null})}return y.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function k0(e){const t=s.forwardRef((n,r)=>{const{children:o,...i}=n;if(s.isValidElement(o)){const a=B0(o),l=V0(i,o.props);return o.type!==s.Fragment&&(l.ref=r?pe(r,a):a),s.cloneElement(o,l)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var F0=Symbol("radix.slottable");function j0(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===F0}function V0(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function B0(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var H0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],W0=H0.reduce((e,t)=>{const n=L0(`Primitive.${t}`),r=s.forwardRef((o,i)=>{const{asChild:a,...l}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(c,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function U0(e,t=[]){let n=[];function r(i,a){const l=s.createContext(a),c=n.length;n=[...n,a];const u=f=>{var b;const{scope:m,children:p,...h}=f,v=((b=m==null?void 0:m[e])==null?void 0:b[c])||l,g=s.useMemo(()=>h,Object.values(h));return y.jsx(v.Provider,{value:g,children:p})};u.displayName=i+"Provider";function d(f,m){var v;const p=((v=m==null?void 0:m[e])==null?void 0:v[c])||l,h=s.useContext(p);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(a=>s.createContext(a));return function(l){const c=(l==null?void 0:l[e])||i;return s.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,K0(o,...t)]}function K0(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));
63return function(i){const a=r.reduce((l,{useScope:c,scopeName:u})=>{const f=c(i)[`__scope${u}`];return{...l,...f}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Ql(e){const t=z0(e),n=s.forwardRef((r,o)=>{const{children:i,...a}=r,l=s.Children.toArray(i),c=l.find(Y0);if(c){const u=c.props.children,d=l.map(f=>f===c?s.Children.count(u)>1?s.Children.only(null):s.isValidElement(u)?u.props.children:null:f);return y.jsx(t,{...a,ref:o,children:s.isValidElement(u)?s.cloneElement(u,void 0,d):null})}return y.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function z0(e){const t=s.forwardRef((n,r)=>{const{children:o,...i}=n;if(s.isValidElement(o)){const a=X0(o),l=Z0(i,o.props);return o.type!==s.Fragment&&(l.ref=r?pe(r,a):a),s.cloneElement(o,l)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var G0=Symbol("radix.slottable");function Y0(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===G0}function Z0(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function X0(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var q0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],cn=q0.reduce((e,t)=>{const n=Ql(`Primitive.${t}`),r=s.forwardRef((o,i)=>{const{asChild:a,...l}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(c,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Q0(e,t){e&&Le.flushSync(()=>e.dispatchEvent(t))}var no=["Enter"," "],J0=["ArrowDown","PageUp","Home"],Jl=["ArrowUp","PageDown","End"],eb=[...J0,...Jl],tb={ltr:[...no,"ArrowRight"],rtl:[...no,"ArrowLeft"]},nb={ltr:["ArrowLeft"],rtl:["ArrowRight"]},un="Menu",[Gt,rb,ob]=ko(un),[ct,ec]=U0(un,[ob,Mt,tr]),sr=Mt(),tc=tr(),[ib,ut]=ct(un),[sb,dn]=ct(un),nc=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:a=!0}=e,l=sr(t),[c,u]=s.useState(null),d=s.useRef(!1),f=Ce(i),m=Ho(o);return s.useEffect(()=>{const p=()=>{d.current=!0,document.addEventListener("pointerdown",h,{capture:!0,once:!0}),document.addEventListener("pointermove",h,{capture:!0,once:!0})},h=()=>d.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",h,{capture:!0}),document.removeEventListener("pointermove",h,{capture:!0})}},[]),y.jsx(Mo,{...l,children:y.jsx(ib,{scope:t,open:n,onOpenChange:f,content:c,onContentChange:u,children:y.jsx(sb,{scope:t,onClose:s.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:m,modal:a,children:r})})})};nc.displayName=un;var ab="MenuAnchor",qo=s.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=sr(n);return y.jsx(Yn,{...o,...r,ref:t})});qo.displayName=ab;var Qo="MenuPortal",[lb,rc]=ct(Qo,{forceMount:void 0}),oc=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=ut(Qo,t);return y.jsx(lb,{scope:t,forceMount:n,children:y.jsx(Oe,{present:n||i.open,children:y.jsx(Zn,{asChild:!0,container:o,children:r})})})};oc.displayName=Qo;var Se="MenuContent",[cb,Jo]=ct(Se),ic=s.forwardRef((e,t)=>{const n=rc(Se,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=ut(Se,e.__scopeMenu),a=dn(Se,e.__scopeMenu);return y.jsx(Gt.Provider,{scope:e.__scopeMenu,children:y.jsx(Oe,{present:r||i.open,children:y.jsx(Gt.Slot,{scope:e.__scopeMenu,children:a.modal?y.jsx(ub,{...o,ref:t}):y.jsx(db,{...o,ref:t})})})})}),ub=s.forwardRef((e,t)=>{const n=ut(Se,e.__scopeMenu),r=s.useRef(null),o=ce(t,r);return s.useEffect(()=>{const i=r.current;if(i)return Go(i)},[]),y.jsx(ei,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:W(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),db=s.forwardRef((e,t)=>
63{const n=ut(Se,e.__scopeMenu);return y.jsx(ei,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),fb=Ql("MenuContent.ScrollLock"),ei=s.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:l,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,onDismiss:p,disableOutsideScroll:h,...v}=e,g=ut(Se,n),b=dn(Se,n),x=sr(n),w=tc(n),C=rb(n),[E,P]=s.useState(null),R=s.useRef(null),$=ce(t,R,g.onContentChange),N=s.useRef(0),_=s.useRef(""),I=s.useRef(0),V=s.useRef(null),K=s.useRef("right"),O=s.useRef(0),S=h?Bl:s.Fragment,D=h?{as:fb,allowPinchZoom:!0}:void 0,k=T=>{var B,Z;const z=_.current+T,X=C().filter(F=>!F.disabled),q=document.activeElement,se=(B=X.find(F=>F.ref.current===q))==null?void 0:B.textValue,H=X.map(F=>F.textValue),G=Sb(H,z,se),Q=(Z=X.find(F=>F.textValue===G))==null?void 0:Z.ref.current;(function F(U){_.current=U,window.clearTimeout(N.current),U!==""&&(N.current=window.setTimeout(()=>F(""),1e3))})(z),Q&&setTimeout(()=>Q.focus())};s.useEffect(()=>()=>window.clearTimeout(N.current),[]),Rl();const M=s.useCallback(T=>{var X,q;return K.current===((X=V.current)==null?void 0:X.side)&&$b(T,(q=V.current)==null?void 0:q.area)},[]);return y.jsx(cb,{scope:n,searchRef:_,onItemEnter:s.useCallback(T=>{M(T)&&T.preventDefault()},[M]),onItemLeave:s.useCallback(T=>{var z;M(T)||((z=R.current)==null||z.focus(),P(null))},[M]),onTriggerLeave:s.useCallback(T=>{M(T)&&T.preventDefault()},[M]),pointerGraceTimerRef:I,onPointerGraceIntentChange:s.useCallback(T=>{V.current=T},[]),children:y.jsx(S,{...D,children:y.jsx(zo,{asChild:!0,trapped:o,onMountAutoFocus:W(i,T=>{var z;T.preventDefault(),(z=R.current)==null||z.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:y.jsx(rn,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,onDismiss:p,children:y.jsx(tl,{asChild:!0,...w,dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:P,onEntryFocus:W(c,T=>{b.isUsingKeyboardRef.current||T.preventDefault()}),preventScrollOnEntryFocus:!0,children:y.jsx(Do,{role:"menu","aria-orientation":"vertical","data-state":yc(g.open),"data-radix-menu-content":"",dir:b.dir,...x,...v,ref:$,style:{outline:"none",...v.style},onKeyDown:W(v.onKeyDown,T=>{const X=T.target.closest("[data-radix-menu-content]")===T.currentTarget,q=T.ctrlKey||T.altKey||T.metaKey,se=T.key.length===1;X&&(T.key==="Tab"&&T.preventDefault(),!q&&se&&k(T.key));const H=R.current;if(T.target!==H||!eb.includes(T.key))return;T.preventDefault();const Q=C().filter(B=>!B.disabled).map(B=>B.ref.current);Jl.includes(T.key)&&Q.reverse(),Cb(Q)}),onBlur:W(e.onBlur,T=>{T.currentTarget.contains(T.target)||(window.clearTimeout(N.current),_.current="")}),onPointerMove:W(e.onPointerMove,Yt(T=>{const z=T.target,X=O.current!==T.clientX;if(T.currentTarget.contains(z)&&X){const q=T.clientX>O.current?"right":"left";K.current=q,O.current=T.clientX}}))})})})})})})});ic.displayName=Se;var pb="MenuGroup",ti=s.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return y.jsx(cn.div,{role:"group",...r,ref:t})});ti.displayName=pb;var vb="MenuLabel",sc=s.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return y.jsx(cn.div,{...r,ref:t})});sc.displayName=vb;var Nn="MenuItem",Gi="menu.itemSelect",ar=s.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=s.useRef(null),a=dn(Nn,e.__scopeMenu),l=Jo(Nn,e.__scopeMenu),c=ce(t,i),u=s.useRef(!1),d=()=>{const f=i.current;if(!n&&f){const m=new CustomEvent(Gi,{bubbles:!0,cancelable:!0});f.addEventListener(Gi,p=>r==null?void 0:r(p),{once:!0}),Q0(f,m),m.defaultPrevented?u.current=!1:a.onClose()}};return y.jsx(ac,{...o,ref:c,disabled:n,onClick:W(e.onClick,d),onPointerDown:f=>{var m;(m=e.onPointerDown)==null||m.call(e,f),u.current=!0},onPointerUp:W(e.onPointerUp,f=>{var m;u.current||(m=f.currentTarget)==null||m.click()}),onKeyDown:W(e.onKeyDown,f=>{const m=l.searchRef.current!=="";n||m&&f.key===" "||no.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});ar.displayName=Nn;var ac=s.forwardRef((e,t)=>
63{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=Jo(Nn,n),l=tc(n),c=s.useRef(null),u=ce(t,c),[d,f]=s.useState(!1),[m,p]=s.useState("");return s.useEffect(()=>{const h=c.current;h&&p((h.textContent??"").trim())},[i.children]),y.jsx(Gt.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:y.jsx(nl,{asChild:!0,...l,focusable:!r,children:y.jsx(cn.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:u,onPointerMove:W(e.onPointerMove,Yt(h=>{r?a.onItemLeave(h):(a.onItemEnter(h),h.defaultPrevented||h.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:W(e.onPointerLeave,Yt(h=>a.onItemLeave(h))),onFocus:W(e.onFocus,()=>f(!0)),onBlur:W(e.onBlur,()=>f(!1))})})})}),mb="MenuCheckboxItem",lc=s.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return y.jsx(pc,{scope:e.__scopeMenu,checked:n,children:y.jsx(ar,{role:"menuitemcheckbox","aria-checked":Ln(n)?"mixed":n,...o,ref:t,"data-state":ri(n),onSelect:W(o.onSelect,()=>r==null?void 0:r(Ln(n)?!0:!n),{checkForDefaultPrevented:!1})})})});lc.displayName=mb;var cc="MenuRadioGroup",[hb,gb]=ct(cc,{value:void 0,onValueChange:()=>{}}),uc=s.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=Ce(r);return y.jsx(hb,{scope:e.__scopeMenu,value:n,onValueChange:i,children:y.jsx(ti,{...o,ref:t})})});uc.displayName=cc;var dc="MenuRadioItem",fc=s.forwardRef((e,t)=>{const{value:n,...r}=e,o=gb(dc,e.__scopeMenu),i=n===o.value;return y.jsx(pc,{scope:e.__scopeMenu,checked:i,children:y.jsx(ar,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":ri(i),onSelect:W(r.onSelect,()=>{var a;return(a=o.onValueChange)==null?void 0:a.call(o,n)},{checkForDefaultPrevented:!1})})})});fc.displayName=dc;var ni="MenuItemIndicator",[pc,bb]=ct(ni,{checked:!1}),vc=s.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=bb(ni,n);return y.jsx(Oe,{present:r||Ln(i.checked)||i.checked===!0,children:y.jsx(cn.span,{...o,ref:t,"data-state":ri(i.checked)})})});vc.displayName=ni;var xb="MenuSeparator",mc=s.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return y.jsx(cn.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});mc.displayName=xb;var wb="MenuArrow",hc=s.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=sr(n);return y.jsx(No,{...o,...r,ref:t})});hc.displayName=wb;var yb="MenuSub",[Wy,gc]=ct(yb),Ft="MenuSubTrigger",bc=s.forwardRef((e,t)=>{const n=ut(Ft,e.__scopeMenu),r=dn(Ft,e.__scopeMenu),o=gc(Ft,e.__scopeMenu),i=Jo(Ft,e.__scopeMenu),a=s.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:c}=i,u={__scopeMenu:e.__scopeMenu},d=s.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return s.useEffect(()=>d,[d]),s.useEffect(()=>{const f=l.current;return()=>{window.clearTimeout(f),c(null)}},[l,c]),y.jsx(qo,{asChild:!0,...u,children:y.jsx(ac,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":yc(n.open),...e,ref:pe(t,o.onTriggerChange),onClick:f=>{var m;(m=e.onClick)==null||m.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:W(e.onPointerMove,Yt(f=>{i.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(i.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:W(e.onPointerLeave,Yt(f=>{var p,h;d();const m=(p=n.content)==null?void 0:p.getBoundingClientRect();if(m){const v=(h=n.content)==null?void 0:h.dataset.side,g=v==="right",b=g?-5:5,x=m[g?"left":"right"],w=m[g?"right":"left"];i.onPointerGraceIntentChange({area:[{x:f.clientX+b,y:f.clientY},{x,y:m.top},{x:w,y:m.top},{x:w,y:m.bottom},{x,y:m.bottom}],side:v}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(f),f.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:W(e.onKeyDown,f=>{var p;const m=i.searchRef.current!=="";e.disabled||m&&f.key===" "||tb[r.dir].includes(f.key)&&(n.onOpenChange(!0),(p=n.content)==null||p.focus(),f.preventDefault())})})})});bc.displayName=Ft;var xc="MenuSubContent",wc=s.forwardRef((e,t)=>
63{const n=rc(Se,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=ut(Se,e.__scopeMenu),a=dn(Se,e.__scopeMenu),l=gc(xc,e.__scopeMenu),c=s.useRef(null),u=ce(t,c);return y.jsx(Gt.Provider,{scope:e.__scopeMenu,children:y.jsx(Oe,{present:r||i.open,children:y.jsx(Gt.Slot,{scope:e.__scopeMenu,children:y.jsx(ei,{id:l.contentId,"aria-labelledby":l.triggerId,...o,ref:u,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var f;a.isUsingKeyboardRef.current&&((f=c.current)==null||f.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:W(e.onFocusOutside,d=>{d.target!==l.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:W(e.onEscapeKeyDown,d=>{a.onClose(),d.preventDefault()}),onKeyDown:W(e.onKeyDown,d=>{var p;const f=d.currentTarget.contains(d.target),m=nb[a.dir].includes(d.key);f&&m&&(i.onOpenChange(!1),(p=l.trigger)==null||p.focus(),d.preventDefault())})})})})})});wc.displayName=xc;function yc(e){return e?"open":"closed"}function Ln(e){return e==="indeterminate"}function ri(e){return Ln(e)?"indeterminate":e?"checked":"unchecked"}function Cb(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Eb(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Sb(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let a=Eb(e,Math.max(i,0));o.length===1&&(a=a.filter(u=>u!==n));const c=a.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function Rb(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const l=t[i],c=t[a],u=l.x,d=l.y,f=c.x,m=c.y;d>r!=m>r&&n<(f-u)*(r-d)/(m-d)+u&&(o=!o)}return o}function $b(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Rb(n,t)}function Yt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Pb=nc,Tb=qo,Ob=oc,Ib=ic,_b=ti,Ab=sc,Mb=ar,Db=lc,Nb=uc,Lb=fc,kb=vc,Fb=mc,jb=hc,Vb=bc,Bb=wc,lr="DropdownMenu",[Hb,Uy]=D0(lr,[ec]),xe=ec(),[Wb,Cc]=Hb(lr),Ec=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:a,modal:l=!0}=e,c=xe(t),u=s.useRef(null),[d,f]=at({prop:o,defaultProp:i??!1,onChange:a,caller:lr});return y.jsx(Wb,{scope:t,triggerId:Wt(),triggerRef:u,contentId:Wt(),open:d,onOpenChange:f,onOpenToggle:s.useCallback(()=>f(m=>!m),[f]),modal:l,children:y.jsx(Pb,{...c,open:d,onOpenChange:f,dir:r,modal:l,children:n})})};Ec.displayName=lr;var Sc="DropdownMenuTrigger",Rc=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=Cc(Sc,n),a=xe(n);return y.jsx(Tb,{asChild:!0,...a,children:y.jsx(W0.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:pe(t,i.triggerRef),onPointerDown:W(e.onPointerDown,l=>{!r&&l.button===0&&l.ctrlKey===!1&&(i.onOpenToggle(),i.open||l.preventDefault())}),onKeyDown:W(e.onKeyDown,l=>{r||(["Enter"," "].includes(l.key)&&i.onOpenToggle(),l.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});Rc.displayName=Sc;var Ub="DropdownMenuPortal",$c=e=>{const{__scopeDropdownMenu:t,...n}=e,r=xe(t);return y.jsx(Ob,{...r,...n})};$c.displayName=Ub;var Pc="DropdownMenuContent",Tc=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Cc(Pc,n),i=xe(n),a=s.useRef(!1);return y.jsx(Ib,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:t,onCloseAutoFocus:W(e.onCloseAutoFocus,l=>{var c;a.current||(c=o.triggerRef.current)==null||c.focus(),a.current=!1,l.preventDefault()}),onInteractOutside:W(e.onInteractOutside,l=>{const c=l.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,d=c.button===2||u;(!o.modal||d)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Tc.displayName=Pc;var Kb="DropdownMenuGroup",zb=s.forwardRef((e,t)=>
63{const{__scopeDropdownMenu:n,...r}=e,o=xe(n);return y.jsx(_b,{...o,...r,ref:t})});zb.displayName=Kb;var Gb="DropdownMenuLabel",Oc=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xe(n);return y.jsx(Ab,{...o,...r,ref:t})});Oc.displayName=Gb;var Yb="DropdownMenuItem",Ic=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xe(n);return y.jsx(Mb,{...o,...r,ref:t})});Ic.displayName=Yb;var Zb="DropdownMenuCheckboxItem",_c=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xe(n);return y.jsx(Db,{...o,...r,ref:t})});_c.displayName=Zb;var Xb="DropdownMenuRadioGroup",qb=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xe(n);return y.jsx(Nb,{...o,...r,ref:t})});qb.displayName=Xb;var Qb="DropdownMenuRadioItem",Ac=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xe(n);return y.jsx(Lb,{...o,...r,ref:t})});Ac.displayName=Qb;var Jb="DropdownMenuItemIndicator",Mc=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xe(n);return y.jsx(kb,{...o,...r,ref:t})});Mc.displayName=Jb;var ex="DropdownMenuSeparator",Dc=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xe(n);return y.jsx(Fb,{...o,...r,ref:t})});Dc.displayName=ex;var tx="DropdownMenuArrow",nx=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xe(n);return y.jsx(jb,{...o,...r,ref:t})});nx.displayName=tx;var rx="DropdownMenuSubTrigger",Nc=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xe(n);return y.jsx(Vb,{...o,...r,ref:t})});Nc.displayName=rx;var ox="DropdownMenuSubContent",Lc=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xe(n);return y.jsx(Bb,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Lc.displayName=ox;var Ky=Ec,zy=Rc,Gy=$c,Yy=Tc,Zy=Oc,Xy=Ic,qy=_c,Qy=Ac,Jy=Mc,eC=Dc,tC=Nc,nC=Lc;function Yi(e,[t,n]){return Math.min(n,Math.max(t,e))}function fe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function oi(e,t=[]){let n=[];function r(i,a){const l=s.createContext(a),c=n.length;n=[...n,a];function u(f){const{scope:m,children:p,...h}=f,v=(m==null?void 0:m[e][c])||l,g=s.useMemo(()=>h,Object.values(h));return s.createElement(v.Provider,{value:g},p)}function d(f,m){const p=(m==null?void 0:m[e][c])||l,h=s.useContext(p);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,d]}const o=()=>{const i=n.map(a=>s.createContext(a));return function(l){const c=(l==null?void 0:l[e])||i;return s.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,ix(o,...t)]}function ix(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((l,{useScope:c,scopeName:u})=>{const f=c(i)[`__scope${u}`];return{...l,...f}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function sx(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function kc(...e){return t=>e.forEach(n=>sx(n,t))}function ge(...e){return s.useCallback(kc(...e),e)}const Zt=s.forwardRef((e,t)=>{const{children:n,...r}=e,o=s.Children.toArray(n),i=o.find(lx);if(i){const a=i.props.children,l=o.map(c=>c===i?s.Children.count(a)>1?s.Children.only(null):s.isValidElement(a)?a.props.children:null:c);return s.createElement(ro,te({},r,{ref:t}),s.isValidElement(a)?s.cloneElement(a,void 0,l):null)}return s.createElement(ro,te({},r,{ref:t}),n)});Zt.displayName="Slot";const ro=s.forwardRef((e,t)=>{const{children:n,...r}=e;return s.isValidElement(n)?s.cloneElement(n,{...cx(r,n.props),ref:t?kc(t,n.ref):n.ref}):s.Children.count(n)>1?s.Children.only(null):null});ro.displayName="SlotClone";const ax=({children:e})=>s.createElement(s.Fragment,null,e);
63function lx(e){return s.isValidElement(e)&&e.type===ax}function cx(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{i(...l),o(...l)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function ux(e){const t=e+"CollectionProvider",[n,r]=oi(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=p=>{const{scope:h,children:v}=p,g=L.useRef(null),b=L.useRef(new Map).current;return L.createElement(o,{scope:h,itemMap:b,collectionRef:g},v)},l=e+"CollectionSlot",c=L.forwardRef((p,h)=>{const{scope:v,children:g}=p,b=i(l,v),x=ge(h,b.collectionRef);return L.createElement(Zt,{ref:x},g)}),u=e+"CollectionItemSlot",d="data-radix-collection-item",f=L.forwardRef((p,h)=>{const{scope:v,children:g,...b}=p,x=L.useRef(null),w=ge(h,x),C=i(u,v);return L.useEffect(()=>(C.itemMap.set(x,{ref:x,...b}),()=>void C.itemMap.delete(x))),L.createElement(Zt,{[d]:"",ref:w},g)});function m(p){const h=i(e+"CollectionConsumer",p);return L.useCallback(()=>{const g=h.collectionRef.current;if(!g)return[];const b=Array.from(g.querySelectorAll(`[${d}]`));return Array.from(h.itemMap.values()).sort((C,E)=>b.indexOf(C.ref.current)-b.indexOf(E.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:a,Slot:c,ItemSlot:f},m,r]}const dx=s.createContext(void 0);function fx(e){const t=s.useContext(dx);return e||t||"ltr"}const px=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],be=px.reduce((e,t)=>{const n=s.forwardRef((r,o)=>{const{asChild:i,...a}=r,l=i?Zt:t;return s.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),s.createElement(l,te({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function vx(e,t){e&&Le.flushSync(()=>e.dispatchEvent(t))}function Ue(e){const t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function mx(e,t=globalThis==null?void 0:globalThis.document){const n=Ue(e);s.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const oo="dismissableLayer.update",hx="dismissableLayer.pointerDownOutside",gx="dismissableLayer.focusOutside";let Zi;const bx=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xx=s.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...u}=e,d=s.useContext(bx),[f,m]=s.useState(null),p=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,h]=s.useState({}),v=ge(t,$=>m($)),g=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=g.indexOf(b),w=f?g.indexOf(f):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,E=w>=x,P=wx($=>{const N=$.target,_=[...d.branches].some(I=>I.contains(N));!E||_||(i==null||i($),l==null||l($),$.defaultPrevented||c==null||c())},p),R=yx($=>{const N=$.target;[...d.branches].some(I=>I.contains(N))||(a==null||a($),l==null||l($),$.defaultPrevented||c==null||c())},p);return mx($=>{w===d.layers.size-1&&(o==null||o($),!$.defaultPrevented&&c&&($.preventDefault(),c()))},p),s.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Zi=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Xi(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Zi)}},[f,p,r,d]),s.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Xi())},[f,d]),s.useEffect(()=>{const $=()=>h({});return document.addEventListener(oo,$),()=>document.removeEventListener(oo,$)},[]),s.createElement(be.div,te({},u,{ref:v,style:{pointerEvents:C?E?"auto":"none":void 0,...e.style},onFocusCapture:fe(e.onFocusCapture,R.onFocusCapture),onBlurCapture:fe(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:fe(e.onPointerDownCapture,P.onPointerDownCapture)}))});function wx(e,t=globalThis==null?void 0:globalThis.document){const n=Ue(e),r=s.useRef(!1),o=s.useRef(()=>{});return s.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let u=function(){Fc(hx,n,c,{discrete:!0})};const c={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function yx(e,t=globalThis==null?void 0:globalThis.document){const n=Ue(e),r=s.useRef(!1);return s.useEffect(()=>{const o=i=>{i.target&&!r.current&&Fc(gx,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Xi(){const e=new CustomEvent(oo);document.dispatchEvent(e)}function Fc(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?vx(o,i):o.dispatchEvent(i)}let Dr=0;function Cx(){s.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:qi()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:qi()),Dr++,()=>{Dr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Dr--}},[])}function qi(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Nr="focusScope.autoFocusOnMount",Lr="focusScope.autoFocusOnUnmount",Qi={bubbles:!1,cancelable:!0},Ex=s.forwardRef((e,t)=>
63{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,c]=s.useState(null),u=Ue(o),d=Ue(i),f=s.useRef(null),m=ge(t,v=>c(v)),p=s.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s.useEffect(()=>{if(r){let v=function(w){if(p.paused||!l)return;const C=w.target;l.contains(C)?f.current=C:Ge(f.current,{select:!0})},g=function(w){if(p.paused||!l)return;const C=w.relatedTarget;C!==null&&(l.contains(C)||Ge(f.current,{select:!0}))},b=function(w){const C=document.activeElement;for(const E of w)E.removedNodes.length>0&&(l!=null&&l.contains(C)||Ge(l))};document.addEventListener("focusin",v),document.addEventListener("focusout",g);const x=new MutationObserver(b);return l&&x.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",g),x.disconnect()}}},[r,l,p.paused]),s.useEffect(()=>{if(l){es.add(p);const v=document.activeElement;if(!l.contains(v)){const b=new CustomEvent(Nr,Qi);l.addEventListener(Nr,u),l.dispatchEvent(b),b.defaultPrevented||(Sx(Ox(jc(l)),{select:!0}),document.activeElement===v&&Ge(l))}return()=>{l.removeEventListener(Nr,u),setTimeout(()=>{const b=new CustomEvent(Lr,Qi);l.addEventListener(Lr,d),l.dispatchEvent(b),b.defaultPrevented||Ge(v??document.body,{select:!0}),l.removeEventListener(Lr,d),es.remove(p)},0)}}},[l,u,d,p]);const h=s.useCallback(v=>{if(!n&&!r||p.paused)return;const g=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,b=document.activeElement;if(g&&b){const x=v.currentTarget,[w,C]=Rx(x);w&&C?!v.shiftKey&&b===C?(v.preventDefault(),n&&Ge(w,{select:!0})):v.shiftKey&&b===w&&(v.preventDefault(),n&&Ge(C,{select:!0})):b===x&&v.preventDefault()}},[n,r,p.paused]);return s.createElement(be.div,te({tabIndex:-1},a,{ref:m,onKeyDown:h}))});function Sx(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ge(r,{select:t}),document.activeElement!==n)return}function Rx(e){const t=jc(e),n=Ji(t,e),r=Ji(t.reverse(),e);return[n,r]}function jc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ji(e,t){for(const n of e)if(!$x(n,{upTo:t}))return n}function $x(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Px(e){return e instanceof HTMLInputElement&&"select"in e}function Ge(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Px(e)&&t&&e.select()}}const es=Tx();function Tx(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ts(e,t),e.unshift(t)},remove(t){var n;e=ts(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function ts(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ox(e){return e.filter(t=>t.tagName!=="A")}const $e=globalThis!=null&&globalThis.document?s.useLayoutEffect:()=>{},Ix=Ve["useId".toString()]||(()=>{});let _x=0;function Vc(e){const[t,n]=s.useState(Ix());return $e(()=>{e||n(r=>r??String(_x++))},[e]),e||(t?`radix-${t}`:"")}function Ax(e){const[t,n]=s.useState(void 0);return $e(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,l;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;a=u.inlineSize,l=u.blockSize}else a=e.offsetWidth,l=e.offsetHeight;n({width:a,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Bc="Popper",[Hc,Wc]=oi(Bc),[Mx,Uc]=Hc(Bc),Dx=e=>{const{__scopePopper:t,children:n}=e,[r,o]=s.useState(null);return s.createElement(Mx,{scope:t,anchor:r,onAnchorChange:o},n)},Nx="PopperAnchor",Lx=s.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Uc(Nx,n),a=s.useRef(null),l=ge(t,a);return s.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:s.createElement(be.div,te({},o,{ref:l}))}),Kc="PopperContent",[kx,rC]=Hc(Kc),Fx=s.forwardRef((e,t)=>
63{var n,r,o,i,a,l,c,u;const{__scopePopper:d,side:f="bottom",sideOffset:m=0,align:p="center",alignOffset:h=0,arrowPadding:v=0,collisionBoundary:g=[],collisionPadding:b=0,sticky:x="partial",hideWhenDetached:w=!1,avoidCollisions:C=!0,onPlaced:E,...P}=e,R=Uc(Kc,d),[$,N]=s.useState(null),_=ge(t,de=>N(de)),[I,V]=s.useState(null),K=Ax(I),O=(n=K==null?void 0:K.width)!==null&&n!==void 0?n:0,S=(r=K==null?void 0:K.height)!==null&&r!==void 0?r:0,D=f+(p!=="center"?"-"+p:""),k=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},M=Array.isArray(g)?g:[g],T=M.length>0,z={padding:k,boundary:M.filter(jx),altBoundary:T},{refs:X,floatingStyles:q,placement:se,isPositioned:H,middlewareData:G}=ia({strategy:"fixed",placement:D,whileElementsMounted:ra,elements:{reference:R.anchor},middleware:[sa({mainAxis:m+S,alignmentAxis:h}),C&&aa({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?la():void 0,...z}),C&&ca({...z}),ua({...z,apply:({elements:de,rects:Je,availableWidth:et,availableHeight:tt})=>{const{width:pr,height:pt}=Je.reference,fn=de.floating.style;fn.setProperty("--radix-popper-available-width",`${et}px`),fn.setProperty("--radix-popper-available-height",`${tt}px`),fn.setProperty("--radix-popper-anchor-width",`${pr}px`),fn.setProperty("--radix-popper-anchor-height",`${pt}px`)}}),I&&fa({element:I,padding:v}),Vx({arrowWidth:O,arrowHeight:S}),w&&da({strategy:"referenceHidden"})]}),[Q,B]=zc(se),Z=Ue(E);$e(()=>{H&&(Z==null||Z())},[H,Z]);const F=(o=G.arrow)===null||o===void 0?void 0:o.x,U=(i=G.arrow)===null||i===void 0?void 0:i.y,j=((a=G.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[Y,ee]=s.useState();return $e(()=>{$&&ee(window.getComputedStyle($).zIndex)},[$]),s.createElement("div",{ref:X.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:H?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[(l=G.transformOrigin)===null||l===void 0?void 0:l.x,(c=G.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},s.createElement(kx,{scope:d,placedSide:Q,onArrowChange:V,arrowX:F,arrowY:U,shouldHideArrow:j},s.createElement(be.div,te({"data-side":Q,"data-align":B},P,{ref:_,style:{...P.style,animation:H?void 0:"none",opacity:(u=G.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))});function jx(e){return e!==null}const Vx=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:l,rects:c,middlewareData:u}=t,f=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,m=f?0:e.arrowWidth,p=f?0:e.arrowHeight,[h,v]=zc(l),g={start:"0%",center:"50%",end:"100%"}[v],b=((r=(o=u.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+m/2,x=((i=(a=u.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+p/2;let w="",C="";return h==="bottom"?(w=f?g:`${b}px`,C=`${-p}px`):h==="top"?(w=f?g:`${b}px`,C=`${c.floating.height+p}px`):h==="right"?(w=`${-p}px`,C=f?g:`${x}px`):h==="left"&&(w=`${c.floating.width+p}px`,C=f?g:`${x}px`),{data:{x:w,y:C}}}});function zc(e){const[t,n="center"]=e.split("-");return[t,n]}const Bx=Dx,Hx=Lx,Wx=Fx,Ux=s.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?us.createPortal(s.createElement(be.div,te({},o,{ref:t})),r):null});function ns({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Kx({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,l=Ue(n),c=s.useCallback(u=>{if(i){const f=typeof u=="function"?u(e):u;f!==e&&l(f)}else o(u)},[i,e,o,l]);return[a,c]}function Kx({defaultProp:e,onChange:t}){const n=s.useState(e),[r]=n,o=s.useRef(r),i=Ue(t);return s.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}function zx(e){const t=s.useRef({value:e,previous:e});return s.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Gx(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Yx(...e){return t=>e.forEach(n=>Gx(n,t))}const Gc=s.forwardRef((e,t)=>{const{children:n,...r}=e,o=s.Children.toArray(n),i=o.find(Xx);if(i){const a=i.props.children,l=o.map(c=>c===i?s.Children.count(a)>1?s.Children.only(null):s.isValidElement(a)?a.props.children:null:c);return s.createElement(io,te({},r,{ref:t}),s.isValidElement(a)?s.cloneElement(a,void 0,l):null)}return s.createElement(io,te({},r,{ref:t}),n)});Gc.displayName="Slot";const io=s.forwardRef((e,t)=>
63{const{children:n,...r}=e;return s.isValidElement(n)?s.cloneElement(n,{...qx(r,n.props),ref:t?Yx(t,n.ref):n.ref}):s.Children.count(n)>1?s.Children.only(null):null});io.displayName="SlotClone";const Zx=({children:e})=>s.createElement(s.Fragment,null,e);function Xx(e){return s.isValidElement(e)&&e.type===Zx}function qx(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{i(...l),o(...l)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const Qx=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Jx=Qx.reduce((e,t)=>{const n=s.forwardRef((r,o)=>{const{asChild:i,...a}=r,l=i?Gc:t;return s.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),s.createElement(l,te({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),ew=s.forwardRef((e,t)=>s.createElement(Jx.span,te({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));var Yc=Al(),kr=function(){},cr=s.forwardRef(function(e,t){var n=s.useRef(null),r=s.useState({onScrollCapture:kr,onWheelCapture:kr,onTouchMoveCapture:kr}),o=r[0],i=r[1],a=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,m=e.sideCar,p=e.noIsolation,h=e.inert,v=e.allowPinchZoom,g=e.as,b=g===void 0?"div":g,x=Yo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=m,C=_l([n,t]),E=he(he({},x),o);return s.createElement(s.Fragment,null,d&&s.createElement(w,{sideCar:Yc,removeScrollBar:u,shards:f,noIsolation:p,inert:h,setCallbacks:i,allowPinchZoom:!!v,lockRef:n}),a?s.cloneElement(s.Children.only(l),he(he({},E),{ref:C})):s.createElement(b,he({},E,{className:c,ref:C}),l))});cr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};cr.classNames={fullWidth:Vt,zeroRight:jt};var so=!1;if(typeof window<"u")try{var Cn=Object.defineProperty({},"passive",{get:function(){return so=!0,!0}});window.addEventListener("test",Cn,Cn),window.removeEventListener("test",Cn,Cn)}catch{so=!1}var bt=so?{passive:!1}:!1,tw=function(e){return e.tagName==="TEXTAREA"},Zc=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!tw(e)&&n[t]==="visible")},nw=function(e){return Zc(e,"overflowY")},rw=function(e){return Zc(e,"overflowX")},rs=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=Xc(e,n);if(r){var o=qc(e,n),i=o[1],a=o[2];if(i>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},ow=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},iw=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Xc=function(e,t){return e==="v"?nw(t):rw(t)},qc=function(e,t){return e==="v"?ow(t):iw(t)},sw=function(e,t){return e==="h"&&t==="rtl"?-1:1},aw=function(e,t,n,r,o){var i=sw(e,window.getComputedStyle(t).direction),a=i*r,l=n.target,c=t.contains(l),u=!1,d=a>0,f=0,m=0;do{var p=qc(e,l),h=p[0],v=p[1],g=p[2],b=v-g-i*h;(h||b)&&Xc(e,l)&&(f+=b,m+=h),l=l.parentNode}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(d&&(o&&f===0||!o&&a>f)||!d&&(o&&m===0||!o&&-a>m))&&(u=!0),u},En=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},os=function(e){return[e.deltaX,e.deltaY]},is=function(e){return e&&"current"in e?e.current:e},lw=function(e,t){return e[0]===t[0]&&e[1]===t[1]},cw=function(e){return`
64  .block-interactivity-`.concat(e,` {pointer-events: none;}
65  .allow-interactivity-`).concat(e,` {pointer-events: all;}
66`)},uw=0,xt=[];function dw(e){var t=s.useRef([]),n=s.useRef([0,0]),r=s.useRef(),o=s.useState(uw++)[0],i=s.useState(function(){return Zo()})[0],a=s.useRef(e);s.useEffect(function(){a.current=e},[e]),s.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));
66var v=Il([e.lockRef.current],(e.shards||[]).map(is),!0).filter(Boolean);return v.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=s.useCallback(function(v,g){if("touches"in v&&v.touches.length===2)return!a.current.allowPinchZoom;var b=En(v),x=n.current,w="deltaX"in v?v.deltaX:x[0]-b[0],C="deltaY"in v?v.deltaY:x[1]-b[1],E,P=v.target,R=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in v&&R==="h"&&P.type==="range")return!1;var $=rs(R,P);if(!$)return!0;if($?E=R:(E=R==="v"?"h":"v",$=rs(R,P)),!$)return!1;if(!r.current&&"changedTouches"in v&&(w||C)&&(r.current=E),!E)return!0;var N=r.current||E;return aw(N,g,v,N==="h"?w:C,!0)},[]),c=s.useCallback(function(v){var g=v;if(!(!xt.length||xt[xt.length-1]!==i)){var b="deltaY"in g?os(g):En(g),x=t.current.filter(function(E){return E.name===g.type&&E.target===g.target&&lw(E.delta,b)})[0];if(x&&x.should){g.cancelable&&g.preventDefault();return}if(!x){var w=(a.current.shards||[]).map(is).filter(Boolean).filter(function(E){return E.contains(g.target)}),C=w.length>0?l(g,w[0]):!a.current.noIsolation;C&&g.cancelable&&g.preventDefault()}}},[]),u=s.useCallback(function(v,g,b,x){var w={name:v,delta:g,target:b,should:x};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),d=s.useCallback(function(v){n.current=En(v),r.current=void 0},[]),f=s.useCallback(function(v){u(v.type,os(v),v.target,l(v,e.lockRef.current))},[]),m=s.useCallback(function(v){u(v.type,En(v),v.target,l(v,e.lockRef.current))},[]);s.useEffect(function(){return xt.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",c,bt),document.addEventListener("touchmove",c,bt),document.addEventListener("touchstart",d,bt),function(){xt=xt.filter(function(v){return v!==i}),document.removeEventListener("wheel",c,bt),document.removeEventListener("touchmove",c,bt),document.removeEventListener("touchstart",d,bt)}},[]);var p=e.removeScrollBar,h=e.inert;return s.createElement(s.Fragment,null,h?s.createElement(i,{styles:cw(o)}):null,p?s.createElement(Ll,{gapMode:"margin"}):null)}const fw=Dl(Yc,dw);var Qc=s.forwardRef(function(e,t){return s.createElement(cr,he({},e,{ref:t,sideCar:fw}))});Qc.classNames=cr.classNames;const pw=Qc,vw=[" ","Enter","ArrowUp","ArrowDown"],mw=[" ","Enter"],ur="Select",[dr,fr,hw]=ux(ur),[Dt,oC]=oi(ur,[hw,Wc]),ii=Wc(),[gw,dt]=Dt(ur),[bw,xw]=Dt(ur),ww=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:a,defaultValue:l,onValueChange:c,dir:u,name:d,autoComplete:f,disabled:m,required:p}=e,h=ii(t),[v,g]=s.useState(null),[b,x]=s.useState(null),[w,C]=s.useState(!1),E=fx(u),[P=!1,R]=ns({prop:r,defaultProp:o,onChange:i}),[$,N]=ns({prop:a,defaultProp:l,onChange:c}),_=s.useRef(null),I=v?!!v.closest("form"):!0,[V,K]=s.useState(new Set),O=Array.from(V).map(S=>S.props.value).join(";");return s.createElement(Bx,h,s.createElement(gw,{required:p,scope:t,trigger:v,onTriggerChange:g,valueNode:b,onValueNodeChange:x,valueNodeHasChildren:w,onValueNodeHasChildrenChange:C,contentId:Vc(),value:$,onValueChange:N,open:P,onOpenChange:R,dir:E,triggerPointerDownPosRef:_,disabled:m},s.createElement(dr.Provider,{scope:t},s.createElement(bw,{scope:e.__scopeSelect,onNativeOptionAdd:s.useCallback(S=>{K(D=>new Set(D).add(S))},[]),onNativeOptionRemove:s.useCallback(S=>{K(D=>{const k=new Set(D);return k.delete(S),k})},[])},n)),I?s.createElement(nu,{key:O,"aria-hidden":!0,required:p,tabIndex:-1,name:d,autoComplete:f,value:$,onChange:S=>N(S.target.value),disabled:m},$===void 0?s.createElement("option",{value:""}):null,Array.from(V)):null))},yw="SelectTrigger",Cw=s.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=ii(n),a=dt(yw,n),l=a.disabled||r,c=ge(t,a.onTriggerChange),u=fr(n),[d,f,m]=ru(h=>{const v=u().filter(x=>!x.disabled),g=v.find(x=>x.value===a.value),b=ou(v,h,g);b!==void 0&&a.onValueChange(b.value)}),p=()=>{l||(a.onOpenChange(!0),m())};return s.createElement(Hx,te({asChild:!0},i),s.createElement(be.button,te({type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":a.value===void 0?"":void 0}
66,o,{ref:c,onClick:fe(o.onClick,h=>{h.currentTarget.focus()}),onPointerDown:fe(o.onPointerDown,h=>{const v=h.target;v.hasPointerCapture(h.pointerId)&&v.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&(p(),a.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)},h.preventDefault())}),onKeyDown:fe(o.onKeyDown,h=>{const v=d.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&f(h.key),!(v&&h.key===" ")&&vw.includes(h.key)&&(p(),h.preventDefault())})})))}),Ew="SelectValue",Sw=s.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:a,...l}=e,c=dt(Ew,n),{onValueNodeHasChildrenChange:u}=c,d=i!==void 0,f=ge(t,c.onValueNodeChange);return $e(()=>{u(d)},[u,d]),s.createElement(be.span,te({},l,{ref:f,style:{pointerEvents:"none"}}),c.value===void 0&&a!==void 0?a:i)}),Rw=s.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return s.createElement(be.span,te({"aria-hidden":!0},o,{ref:t}),r||"▼")}),$w=e=>s.createElement(Ux,te({asChild:!0},e)),Pt="SelectContent",Pw=s.forwardRef((e,t)=>{const n=dt(Pt,e.__scopeSelect),[r,o]=s.useState();if($e(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?Le.createPortal(s.createElement(Jc,{scope:e.__scopeSelect},s.createElement(dr.Slot,{scope:e.__scopeSelect},s.createElement("div",null,e.children))),i):null}return s.createElement(Tw,te({},e,{ref:t}))}),Fe=10,[Jc,ft]=Dt(Pt),Tw=s.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:m,collisionPadding:p,sticky:h,hideWhenDetached:v,avoidCollisions:g,...b}=e,x=dt(Pt,n),[w,C]=s.useState(null),[E,P]=s.useState(null),R=ge(t,B=>C(B)),[$,N]=s.useState(null),[_,I]=s.useState(null),V=fr(n),[K,O]=s.useState(!1),S=s.useRef(!1);s.useEffect(()=>{if(w)return Go(w)},[w]),Cx();const D=s.useCallback(B=>{const[Z,...F]=V().map(Y=>Y.ref.current),[U]=F.slice(-1),j=document.activeElement;for(const Y of B)if(Y===j||(Y==null||Y.scrollIntoView({block:"nearest"}),Y===Z&&E&&(E.scrollTop=0),Y===U&&E&&(E.scrollTop=E.scrollHeight),Y==null||Y.focus(),document.activeElement!==j))return},[V,E]),k=s.useCallback(()=>D([$,w]),[D,$,w]);s.useEffect(()=>{K&&k()},[K,k]);const{onOpenChange:M,triggerPointerDownPosRef:T}=x;s.useEffect(()=>{if(w){let B={x:0,y:0};const Z=U=>{var j,Y,ee,de;B={x:Math.abs(Math.round(U.pageX)-((j=(Y=T.current)===null||Y===void 0?void 0:Y.x)!==null&&j!==void 0?j:0)),y:Math.abs(Math.round(U.pageY)-((ee=(de=T.current)===null||de===void 0?void 0:de.y)!==null&&ee!==void 0?ee:0))}},F=U=>{B.x<=10&&B.y<=10?U.preventDefault():w.contains(U.target)||M(!1),document.removeEventListener("pointermove",Z),T.current=null};return T.current!==null&&(document.addEventListener("pointermove",Z),document.addEventListener("pointerup",F,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Z),document.removeEventListener("pointerup",F,{capture:!0})}}},[w,M,T]),s.useEffect(()=>{const B=()=>M(!1);return window.addEventListener("blur",B),window.addEventListener("resize",B),()=>{window.removeEventListener("blur",B),window.removeEventListener("resize",B)}},[M]);const[z,X]=ru(B=>{const Z=V().filter(j=>!j.disabled),F=Z.find(j=>j.ref.current===document.activeElement),U=ou(Z,B,F);U&&setTimeout(()=>U.ref.current.focus())}),q=s.useCallback((B,Z,F)=>{const U=!S.current&&!F;(x.value!==void 0&&x.value===Z||U)&&(N(B),U&&(S.current=!0))},[x.value]),se=s.useCallback(()=>w==null?void 0:w.focus(),[w]),H=s.useCallback((B,Z,F)=>{const U=!S.current&&!F;(x.value!==void 0&&x.value===Z||U)&&I(B)},[x.value]),G=r==="popper"?ss:Ow,Q=G===ss?{side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:m,collisionPadding:p,sticky:h,hideWhenDetached:v,avoidCollisions:g}:{};return s.createElement(Jc,{scope:n,content:w,viewport:E,onViewportChange:P,itemRefCallback:q,selectedItem:$,onItemLeave:se,itemTextRefCallback:H,focusSelectedItem:k,selectedItemText:_,position:r,isPositioned:K,searchRef:z},s.createElement(pw,{as:Zt,allowPinchZoom:!0},s.createElement(Ex,{asChild:!0,trapped:x.open,onMountAutoFocus:B=>{B.preventDefault()},onUnmountAutoFocus:fe(o,B=>{var Z;(Z=x.trigger)===null||Z===void 0||Z.focus({preventScroll:!0}),B.preventDefault()})},s.createElement(xx,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:B=>B.preventDefault(),onDismiss:()=>x.onOpenChange(!1)},s.createElement(G,te({role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:B=>B.preventDefault()},b,Q,{onPlaced:()=>O(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:fe(b.onKeyDown,B=>{const Z=B.ctrlKey||B.altKey||B.metaKey;if(B.key==="Tab"&&B.preventDefault(),!Z&&B.key.length===1&&X(B.key),["ArrowUp","ArrowDown","Home","End"].includes(B.key)){let U=V().filter(j=>!j.disabled).map(j=>j.ref.current);if(["ArrowUp","End"].includes(B.key)&&(U=U.slice().reverse()),["ArrowUp","ArrowDown"].includes(B.key)){const j=B.target,Y=U.indexOf(j);U=U.slice(Y+1)}setTimeout(()=>D(U)),B.preventDefault()}})}))))))}),Ow=s.forwardRef((e,t)=>
66{const{__scopeSelect:n,onPlaced:r,...o}=e,i=dt(Pt,n),a=ft(Pt,n),[l,c]=s.useState(null),[u,d]=s.useState(null),f=ge(t,R=>d(R)),m=fr(n),p=s.useRef(!1),h=s.useRef(!0),{viewport:v,selectedItem:g,selectedItemText:b,focusSelectedItem:x}=a,w=s.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&u&&v&&g&&b){const R=i.trigger.getBoundingClientRect(),$=u.getBoundingClientRect(),N=i.valueNode.getBoundingClientRect(),_=b.getBoundingClientRect();if(i.dir!=="rtl"){const j=_.left-$.left,Y=N.left-j,ee=R.left-Y,de=R.width+ee,Je=Math.max(de,$.width),et=window.innerWidth-Fe,tt=Yi(Y,[Fe,et-Je]);l.style.minWidth=de+"px",l.style.left=tt+"px"}else{const j=$.right-_.right,Y=window.innerWidth-N.right-j,ee=window.innerWidth-R.right-Y,de=R.width+ee,Je=Math.max(de,$.width),et=window.innerWidth-Fe,tt=Yi(Y,[Fe,et-Je]);l.style.minWidth=de+"px",l.style.right=tt+"px"}const I=m(),V=window.innerHeight-Fe*2,K=v.scrollHeight,O=window.getComputedStyle(u),S=parseInt(O.borderTopWidth,10),D=parseInt(O.paddingTop,10),k=parseInt(O.borderBottomWidth,10),M=parseInt(O.paddingBottom,10),T=S+D+K+M+k,z=Math.min(g.offsetHeight*5,T),X=window.getComputedStyle(v),q=parseInt(X.paddingTop,10),se=parseInt(X.paddingBottom,10),H=R.top+R.height/2-Fe,G=V-H,Q=g.offsetHeight/2,B=g.offsetTop+Q,Z=S+D+B,F=T-Z;if(Z<=H){const j=g===I[I.length-1].ref.current;l.style.bottom="0px";const Y=u.clientHeight-v.offsetTop-v.offsetHeight,ee=Math.max(G,Q+(j?se:0)+Y+k),de=Z+ee;l.style.height=de+"px"}else{const j=g===I[0].ref.current;l.style.top="0px";const ee=Math.max(H,S+v.offsetTop+(j?q:0)+Q)+F;l.style.height=ee+"px",v.scrollTop=Z-H+v.offsetTop}l.style.margin=`${Fe}px 0`,l.style.minHeight=z+"px",l.style.maxHeight=V+"px",r==null||r(),requestAnimationFrame(()=>p.current=!0)}},[m,i.trigger,i.valueNode,l,u,v,g,b,i.dir,r]);$e(()=>w(),[w]);const[C,E]=s.useState();$e(()=>{u&&E(window.getComputedStyle(u).zIndex)},[u]);const P=s.useCallback(R=>{R&&h.current===!0&&(w(),x==null||x(),h.current=!1)},[w,x]);return s.createElement(Iw,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:p,onScrollButtonChange:P},s.createElement("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C}},s.createElement(be.div,te({},o,{ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))}),ss=s.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Fe,...i}=e,a=ii(n);return s.createElement(Wx,te({},a,i,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[Iw,si]=Dt(Pt,{}),as="SelectViewport",_w=s.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ft(as,n),i=si(as,n),a=ge(t,o.onViewportChange),l=s.useRef(0);return s.createElement(s.Fragment,null,s.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),s.createElement(dr.Slot,{scope:n},s.createElement(be.div,te({"data-radix-select-viewport":"",role:"presentation"},r,{ref:a,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:fe(r.onScroll,c=>{const u=c.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:f}=i;if(f!=null&&f.current&&d){const m=Math.abs(l.current-u.scrollTop);if(m>0){const p=window.innerHeight-Fe*2,h=parseFloat(d.style.minHeight),v=parseFloat(d.style.height),g=Math.max(h,v);if(g<p){const b=g+m,x=Math.min(p,b),w=b-x;d.style.height=x+"px",d.style.bottom==="0px"&&(u.scrollTop=w>0?w:0,d.style.justifyContent="flex-end")}}}l.current=u.scrollTop})}))))}),Aw="SelectGroup",[iC,Mw]=Dt(Aw),Dw="SelectLabel",Nw=s.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Mw(Dw,n);return s.createElement(be.div,te({id:o.id},r,{ref:t}))}),ao="SelectItem",[Lw,eu]=Dt(ao),kw=s.forwardRef((e,t)=>
66{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...a}=e,l=dt(ao,n),c=ft(ao,n),u=l.value===r,[d,f]=s.useState(i??""),[m,p]=s.useState(!1),h=ge(t,b=>{var x;return(x=c.itemRefCallback)===null||x===void 0?void 0:x.call(c,b,r,o)}),v=Vc(),g=()=>{o||(l.onValueChange(r),l.onOpenChange(!1))};return s.createElement(Lw,{scope:n,value:r,disabled:o,textId:v,isSelected:u,onItemTextChange:s.useCallback(b=>{f(x=>{var w;return x||((w=b==null?void 0:b.textContent)!==null&&w!==void 0?w:"").trim()})},[])},s.createElement(dr.ItemSlot,{scope:n,value:r,disabled:o,textValue:d},s.createElement(be.div,te({role:"option","aria-labelledby":v,"data-highlighted":m?"":void 0,"aria-selected":u&&m,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},a,{ref:h,onFocus:fe(a.onFocus,()=>p(!0)),onBlur:fe(a.onBlur,()=>p(!1)),onPointerUp:fe(a.onPointerUp,g),onPointerMove:fe(a.onPointerMove,b=>{if(o){var x;(x=c.onItemLeave)===null||x===void 0||x.call(c)}else b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:fe(a.onPointerLeave,b=>{if(b.currentTarget===document.activeElement){var x;(x=c.onItemLeave)===null||x===void 0||x.call(c)}}),onKeyDown:fe(a.onKeyDown,b=>{var x;((x=c.searchRef)===null||x===void 0?void 0:x.current)!==""&&b.key===" "||(mw.includes(b.key)&&g(),b.key===" "&&b.preventDefault())})}))))}),Sn="SelectItemText",Fw=s.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,a=dt(Sn,n),l=ft(Sn,n),c=eu(Sn,n),u=xw(Sn,n),[d,f]=s.useState(null),m=ge(t,b=>f(b),c.onItemTextChange,b=>{var x;return(x=l.itemTextRefCallback)===null||x===void 0?void 0:x.call(l,b,c.value,c.disabled)}),p=d==null?void 0:d.textContent,h=s.useMemo(()=>s.createElement("option",{key:c.value,value:c.value,disabled:c.disabled},p),[c.disabled,c.value,p]),{onNativeOptionAdd:v,onNativeOptionRemove:g}=u;return $e(()=>(v(h),()=>g(h)),[v,g,h]),s.createElement(s.Fragment,null,s.createElement(be.span,te({id:c.textId},i,{ref:m})),c.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Le.createPortal(i.children,a.valueNode):null)}),jw="SelectItemIndicator",Vw=s.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return eu(jw,n).isSelected?s.createElement(be.span,te({"aria-hidden":!0},r,{ref:t})):null}),ls="SelectScrollUpButton",Bw=s.forwardRef((e,t)=>{const n=ft(ls,e.__scopeSelect),r=si(ls,e.__scopeSelect),[o,i]=s.useState(!1),a=ge(t,r.onScrollButtonChange);return $e(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=l.scrollTop>0;i(u)};const l=n.viewport;return c(),l.addEventListener("scroll",c),()=>l.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?s.createElement(tu,te({},e,{ref:a,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}})):null}),cs="SelectScrollDownButton",Hw=s.forwardRef((e,t)=>{const n=ft(cs,e.__scopeSelect),r=si(cs,e.__scopeSelect),[o,i]=s.useState(!1),a=ge(t,r.onScrollButtonChange);return $e(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)<u;i(d)};const l=n.viewport;return c(),l.addEventListener("scroll",c),()=>l.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?s.createElement(tu,te({},e,{ref:a,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}})):null}),tu=s.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=ft("SelectScrollButton",n),a=s.useRef(null),l=fr(n),c=s.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return s.useEffect(()=>()=>c(),[c]),$e(()=>{var u;const d=l().find(f=>f.ref.current===document.activeElement);d==null||(u=d.ref.current)===null||u===void 0||u.scrollIntoView({block:"nearest"})},[l]),s.createElement(be.div,te({"aria-hidden":!0},o,{ref:t,style:{flexShrink:0,...o.style},onPointerDown:fe(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:fe(o.onPointerMove,()=>{var u;(u=i.onItemLeave)===null||u===void 0||u.call(i),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:fe(o.onPointerLeave,()=>{c()})}))}),Ww=s.forwardRef((e,t)=>
66{const{__scopeSelect:n,...r}=e;return s.createElement(be.div,te({"aria-hidden":!0},r,{ref:t}))}),nu=s.forwardRef((e,t)=>{const{value:n,...r}=e,o=s.useRef(null),i=ge(t,o),a=zx(n);return s.useEffect(()=>{const l=o.current,c=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(a!==n&&d){const f=new Event("change",{bubbles:!0});d.call(l,n),l.dispatchEvent(f)}},[a,n]),s.createElement(ew,{asChild:!0},s.createElement("select",te({},r,{ref:i,defaultValue:n})))});nu.displayName="BubbleSelect";function ru(e){const t=Ue(e),n=s.useRef(""),r=s.useRef(0),o=s.useCallback(a=>{const l=n.current+a;t(l),function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(l)},[t]),i=s.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return s.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function ou(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let a=Uw(e,Math.max(i,0));o.length===1&&(a=a.filter(u=>u!==n));const c=a.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function Uw(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const sC=ww,aC=Cw,lC=Sw,cC=Rw,uC=$w,dC=Pw,fC=_w,pC=Nw,vC=kw,mC=Fw,hC=Vw,gC=Bw,bC=Hw,xC=Ww;export{sC as $,Oy as A,Qy as B,oy as C,Ty as D,xy as E,gy as F,wy as G,Zy as H,Xy as I,eC as J,Ky as K,yy as L,Cy as M,zy as N,lC as O,ty as P,aC as Q,ny as R,tC as S,ry as T,cC as U,Ry as V,cy as W,gC as X,vy as Y,bC as Z,Zw as _,Yw as a,dy as a0,uC as a1,dC as a2,fC as a3,pC as a4,vC as a5,hC as a6,mC as a7,xC as a8,iy as a9,Ly as aa,Ua as ab,sy as ac,ay as ad,pe as ae,ce as af,W as ag,Oe as ah,Bl as ai,Go as aj,Rl as ak,zo as al,rn as am,at as an,Wt as ao,Zn as ap,hy as aq,Ho as ar,Ce as as,Be as at,qw as au,ky as av,Ay as aw,My as ax,Dy as ay,$y as b,Iy as c,my as d,Py as e,Sy as f,Xw as g,fy as h,py as i,y as j,jy as k,Vy as l,By as m,Hy as n,ly as o,by as p,Qw as q,l1 as r,zw as s,c1 as t,nC as u,Gy as v,Yy as w,qy as x,Jy as y,uy as z};

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.