import{d as A,k as $e,ac as Qt,a2 as ie,ad as pt,ae as Zt,aa as Ct,af as Q,r as L,U as Se,a9 as Ye,a8 as Ke,m as ve,c as en,ag as Le,F as tn,ah as ne,ai as nn,aj as G}from"./CWtpRkXC.js";import{c as Tt,o as $,w as on,h as rn,d as an,u as se,e as ln,f as sn,E as un,a as cn,A as Ee,T as Je,I as je,i as dn,N as Be,b as fn,O as vn,g as W}from"./B627pFHi.js";import{u as ht}from"./DF-M9__Y.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0b86d875-0932-403e-b019-2480796a94b7",e._sentryDebugIdIdentifier="sentry-dbid-0b86d875-0932-403e-b019-2480796a94b7")}catch{}})();function be(e,n,t){let r=t.initialDeps??[],o;return()=>{var a,l,i,s;let c;t.key&&((a=t.debug)!=null&&a.call(t))&&(c=Date.now());const u=e();if(!(u.length!==r.length||u.some((m,w)=>r[w]!==m)))return o;r=u;let y;if(t.key&&((l=t.debug)!=null&&l.call(t))&&(y=Date.now()),o=n(...u),t.key&&((i=t.debug)!=null&&i.call(t))){const m=Math.round((Date.now()-c)*100)/100,w=Math.round((Date.now()-y)*100)/100,E=w/16,I=(R,b)=>{for(R=String(R);R.length<b;)R=" "+R;return R};console.info(`%c⏱ ${I(w,5)} /${I(m,5)} ms`,`
            font-size: .6rem;
            font-weight: bold;
            color: hsl(${Math.max(0,Math.min(120-120*E,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(s=t==null?void 0:t.onChange)==null||s.call(t,o),o}}function qe(e,n){if(e===void 0)throw new Error("Unexpected undefined");return e}const pn=(e,n)=>Math.abs(e-n)<1,hn=(e,n,t)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>n.apply(this,o),t)}},mn=e=>e,bn=e=>{const n=Math.max(e.startIndex-e.overscan,0),t=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let o=n;o<=t;o++)r.push(o);return r},gn=(e,n)=>{const t=e.scrollElement;if(!t)return;const r=e.targetWindow;if(!r)return;const o=l=>{const{width:i,height:s}=l;n({width:Math.round(i),height:Math.round(s)})};if(o(t.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const a=new r.ResizeObserver(l=>{const i=l[0];if(i!=null&&i.borderBoxSize){const s=i.borderBoxSize[0];if(s){o({width:s.inlineSize,height:s.blockSize});return}}o(t.getBoundingClientRect())});return a.observe(t,{box:"border-box"}),()=>{a.unobserve(t)}},mt={passive:!0},xn=typeof window>"u"?!0:"onscrollend"in window,yn=(e,n)=>{const t=e.scrollElement;if(!t)return;const r=e.targetWindow;if(!r)return;let o=0;const a=xn?()=>{}:hn(r,()=>{n(o,!1)},e.options.isScrollingResetDelay),l=c=>()=>{o=t[e.options.horizontal?"scrollLeft":"scrollTop"],a(),n(o,c)},i=l(!0),s=l(!1);return s(),t.addEventListener("scroll",i,mt),t.addEventListener("scrollend",s,mt),()=>{t.removeEventListener("scroll",i),t.removeEventListener("scrollend",s)}},wn=(e,n,t)=>{if(n!=null&&n.borderBoxSize){const r=n.borderBoxSize[0];if(r)return Math.round(r[t.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[t.options.horizontal?"width":"height"])},On=(e,{adjustments:n=0,behavior:t},r)=>{var o,a;const l=e+n;(a=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||a.call(o,{[r.options.horizontal?"left":"top"]:l,behavior:t})};class Sn{constructor(n){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,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 t=null;const r=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(o=>{o.forEach(a=>{this._measureElement(a.target,a)})}));return{disconnect:()=>{var o;return(o=r())==null?void 0:o.disconnect()},observe:o=>{var a;return(a=r())==null?void 0:a.observe(o,{box:"border-box"})},unobserve:o=>{var a;return(a=r())==null?void 0:a.unobserve(o)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([r,o])=>{typeof o>"u"&&delete t[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:mn,rangeExtractor:bn,onChange:()=>{},measureElement:wn,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,...t}},this.notify=(t,r)=>{var o,a;const{startIndex:l,endIndex:i}=this.range??{startIndex:void 0,endIndex:void 0},s=this.calculateRange();(t||l!==(s==null?void 0:s.startIndex)||i!==(s==null?void 0:s.endIndex))&&((a=(o=this.options).onChange)==null||a.call(o,this,r))},this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.observer.disconnect(),this.elementsCache.clear()},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.notify(!1,!1);return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.notify(!1,!1)})),this.unsubs.push(this.options.observeElementOffset(this,(o,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o;const l=this.isScrolling;this.isScrolling=a,this.notify(l!==a,a)}))}},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=(t,r)=>{const o=new Map,a=new Map;for(let l=r-1;l>=0;l--){const i=t[l];if(o.has(i.lane))continue;const s=a.get(i.lane);if(s==null||i.end>s.end?a.set(i.lane,i):i.end<s.end&&o.set(i.lane,!0),o.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((l,i)=>l.end===i.end?l.index-i.index:l.end-i.end)[0]:void 0},this.getMeasurementOptions=be(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,r,o,a,l)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:r,scrollMargin:o,getItemKey:a,enabled:l}),{key:!1}),this.getMeasurements=be(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:r,scrollMargin:o,getItemKey:a,enabled:l},i)=>{var s;if(!l)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(f=>{this.itemSizeCache.set(f.key,f.size)}));const c=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const u=this.measurementsCache.slice(0,c);for(let f=c;f<t;f++){let y=(s=this.measurementsCache[f])==null?void 0:s.measureElement;y||(y=x=>{const v=a(f),g=this.elementsCache.get(v);if(!x){g&&(this.observer.unobserve(g),this.elementsCache.delete(v));return}g!==x&&(g&&this.observer.unobserve(g),this.observer.observe(x),this.elementsCache.set(v,x)),x.isConnected&&this.resizeItem(f,this.options.measureElement(x,void 0,this))});const m=a(f),w=this.options.lanes===1?u[f-1]:this.getFurthestMeasurement(u,f),E=w?w.end+this.options.gap:r+o,I=i.get(m),R=typeof I=="number"?I:this.options.estimateSize(f),b=E+R,C=w?w.lane:f%this.options.lanes;u[f]={index:f,start:E,size:R,end:b,key:m,lane:C,measureElement:y}}return this.measurementsCache=u,u},{key:!1,debug:()=>this.options.debug}),this.calculateRange=be(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(t,r,o)=>this.range=t.length>0&&r>0?En({measurements:t,outerSize:r,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=be(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(t,r,o,a)=>r===null?[]:t({startIndex:r.startIndex,endIndex:r.endIndex,overscan:o,count:a}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{const r=this.options.indexAttribute,o=t.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(t,r)=>{const o=this.indexFromElement(t),a=this.getMeasurements()[o];if(!a||!t.isConnected){this.elementsCache.forEach((i,s)=>{i===t&&(this.observer.unobserve(t),this.elementsCache.delete(s))});return}const l=this.elementsCache.get(a.key);l!==t&&(l&&this.observer.unobserve(l),this.observer.observe(t),this.elementsCache.set(a.key,t)),this.resizeItem(o,this.options.measureElement(t,r,this))},this.resizeItem=(t,r)=>{const o=this.getMeasurements()[t];if(!o)return;const a=this.itemSizeCache.get(o.key)??o.size,l=r-a;l!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,l,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=l,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,r)),this.notify(!0,!1))},this.measureElement=t=>{t&&this._measureElement(t,void 0)},this.getVirtualItems=be(()=>[this.getIndexes(),this.getMeasurements()],(t,r)=>{const o=[];for(let a=0,l=t.length;a<l;a++){const i=t[a],s=r[i];o.push(s)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const r=this.getMeasurements();if(r.length!==0)return qe(r[Mt(0,r.length-1,o=>qe(r[o]).start,t)])},this.getOffsetForAlignment=(t,r)=>{const o=this.getSize(),a=this.getScrollOffset();r==="auto"&&(t<=a?r="start":t>=a+o?r="end":r="start"),r==="start"?t=t:r==="end"?t=t-o:r==="center"&&(t=t-o/2);const l=this.options.horizontal?"scrollWidth":"scrollHeight",s=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[l]:this.scrollElement[l]:0)-o;return Math.max(Math.min(s,t),0)},this.getOffsetForIndex=(t,r="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const o=this.getMeasurements()[t];if(!o)return;const a=this.getSize(),l=this.getScrollOffset();if(r==="auto")if(o.end>=l+a-this.options.scrollPaddingEnd)r="end";else if(o.start<=l+this.options.scrollPaddingStart)r="start";else return[l,r];const i=r==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,r),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(t,{align:r="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,r),{adjustments:void 0,behavior:o})},this.scrollToIndex=(t,{align:r="auto",behavior:o}={})=>{t=Math.max(0,Math.min(t,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const a=this.getOffsetForIndex(t,r);if(!a)return;const[l,i]=a;this._scrollToOffset(l,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(t))){const[c]=qe(this.getOffsetForIndex(t,i));pn(c,this.getScrollOffset())||this.scrollToIndex(t,{align:i,behavior:o})}else this.scrollToIndex(t,{align:i,behavior:o})}))},this.scrollBy=(t,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var t;const r=this.getMeasurements();let o;return r.length===0?o=this.options.paddingStart:o=this.options.lanes===1?((t=r[r.length-1])==null?void 0:t.end)??0:Math.max(...r.slice(-this.options.lanes).map(a=>a.end)),o-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(t,{adjustments:r,behavior:o})=>{this.options.scrollToFn(t,{behavior:o,adjustments:r},this)},this.measure=()=>{var t,r;this.itemSizeCache=new Map,(r=(t=this.options).onChange)==null||r.call(t,this,!1)},this.setOptions(n)}}const Mt=(e,n,t,r)=>{for(;e<=n;){const o=(e+n)/2|0,a=t(o);if(a<r)e=o+1;else if(a>r)n=o-1;else return o}return e>0?e-1:0};function En({measurements:e,outerSize:n,scrollOffset:t}){const r=e.length-1,a=Mt(0,r,i=>e[i].start,t);let l=a;for(;l<r&&e[l].end<t+n;)l++;return{startIndex:a,endIndex:l}}function In(e){const n=new Sn($e(e)),t=Qt(n),r=n._didMount();return ie(()=>$e(e).getScrollElement(),o=>{o&&n._willUpdate()},{immediate:!0}),ie(()=>$e(e),o=>{n.setOptions({...o,onChange:(a,l)=>{var i;pt(t),(i=o.onChange)==null||i.call(o,a,l)}}),n._willUpdate(),pt(t)},{immediate:!0}),Zt(r),t}function Rn(e){return In(A(()=>({observeElementRect:gn,observeElementOffset:yn,scrollToFn:On,...$e(e)})))}function Cn(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(n=>setTimeout(()=>{throw n}))}function ze(){let e=[],n={addEventListener(t,r,o,a){return t.addEventListener(r,o,a),n.add(()=>t.removeEventListener(r,o,a))},requestAnimationFrame(...t){let r=requestAnimationFrame(...t);n.add(()=>cancelAnimationFrame(r))},nextFrame(...t){n.requestAnimationFrame(()=>{n.requestAnimationFrame(...t)})},setTimeout(...t){let r=setTimeout(...t);n.add(()=>clearTimeout(r))},microTask(...t){let r={current:!0};return Cn(()=>{r.current&&t[0]()}),n.add(()=>{r.current=!1})},style(t,r,o){let a=t.style.getPropertyValue(r);return Object.assign(t.style,{[r]:o}),this.add(()=>{Object.assign(t.style,{[r]:a})})},group(t){let r=ze();return t(r),this.add(()=>r.dispose())},add(t){return e.push(t),()=>{let r=e.indexOf(t);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let t of e.splice(0))t()}};return n}function Tn(){let e=ze();return Ct(()=>e.dispose()),e}function Mn(){let e=Tn();return n=>{e.dispose(),e.nextFrame(n)}}function An(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Pn(){return/Android/gi.test(window.navigator.userAgent)}function At(){return An()||Pn()}function Pe(e,n,t){Tt.isServer||Q(r=>{document.addEventListener(e,n,t),r(()=>document.removeEventListener(e,n,t))})}function Dn(e,n,t){Tt.isServer||Q(r=>{window.addEventListener(e,n,t),r(()=>window.removeEventListener(e,n,t))})}function $n(e,n,t=A(()=>!0)){function r(a,l){if(!t.value||a.defaultPrevented)return;let i=l(a);if(i===null||!i.getRootNode().contains(i))return;let s=function c(u){return typeof u=="function"?c(u()):Array.isArray(u)||u instanceof Set?u:[u]}(e);for(let c of s){if(c===null)continue;let u=c instanceof HTMLElement?c:$(c);if(u!=null&&u.contains(i)||a.composed&&a.composedPath().includes(u))return}return!on(i,rn.Loose)&&i.tabIndex!==-1&&a.preventDefault(),n(a,i)}let o=L(null);Pe("pointerdown",a=>{var l,i;t.value&&(o.value=((i=(l=a.composedPath)==null?void 0:l.call(a))==null?void 0:i[0])||a.target)},!0),Pe("mousedown",a=>{var l,i;t.value&&(o.value=((i=(l=a.composedPath)==null?void 0:l.call(a))==null?void 0:i[0])||a.target)},!0),Pe("click",a=>{At()||o.value&&(r(a,()=>o.value),o.value=null)},!0),Pe("touchend",a=>r(a,()=>a.target instanceof HTMLElement?a.target:null),!0),Dn("blur",a=>r(a,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function bt(e,n){if(e)return e;let t=n??"button";if(typeof t=="string"&&t.toLowerCase()==="button")return"button"}function kn(e,n){let t=L(bt(e.value.type,e.value.as));return Se(()=>{t.value=bt(e.value.type,e.value.as)}),Q(()=>{var r;t.value||$(n)&&$(n)instanceof HTMLButtonElement&&!((r=$(n))!=null&&r.hasAttribute("type"))&&(t.value="button")}),t}function gt(e){return[e.screenX,e.screenY]}function Ln(){let e=L([-1,-1]);return{wasMoved(n){let t=gt(n);return e.value[0]===t[0]&&e.value[1]===t[1]?!1:(e.value=t,!0)},update(n){e.value=gt(n)}}}let Pt=Symbol("Context");var we=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(we||{});function Bn(){return Ye(Pt,null)}function zn(e){Ke(Pt,e)}var Dt=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(Dt||{});function Fn(e){function n(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",n))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",n),n())}let oe=[];Fn(()=>{function e(n){n.target instanceof HTMLElement&&n.target!==document.body&&oe[0]!==n.target&&(oe.unshift(n.target),oe=oe.filter(t=>t!=null&&t.isConnected),oe.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 jn(e){throw new Error("Unexpected object: "+e)}var z=(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))(z||{});function xt(e,n){let t=n.resolveItems();if(t.length<=0)return null;let r=n.resolveActiveIndex(),o=r??-1;switch(e.focus){case 0:{for(let a=0;a<t.length;++a)if(!n.resolveDisabled(t[a],a,t))return a;return r}case 1:{o===-1&&(o=t.length);for(let a=o-1;a>=0;--a)if(!n.resolveDisabled(t[a],a,t))return a;return r}case 2:{for(let a=o+1;a<t.length;++a)if(!n.resolveDisabled(t[a],a,t))return a;return r}case 3:{for(let a=t.length-1;a>=0;--a)if(!n.resolveDisabled(t[a],a,t))return a;return r}case 4:{for(let a=0;a<t.length;++a)if(n.resolveId(t[a],a,t)===e.id)return a;return r}case 5:return null;default:jn(e)}}var Vn={};function Wn(e,n){return e===n}var Nn=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Nn||{}),_n=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(_n||{}),Hn=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(Hn||{});let $t=Symbol("ComboboxContext");function pe(e){let n=Ye($t,null);if(n===null){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,pe),t}return n}let kt=Symbol("VirtualContext"),qn=ve({name:"VirtualProvider",setup(e,{slots:n}){let t=pe("VirtualProvider"),r=A(()=>{let i=$(t.optionsRef);if(!i)return{start:0,end:0};let s=window.getComputedStyle(i);return{start:parseFloat(s.paddingBlockStart||s.paddingTop),end:parseFloat(s.paddingBlockEnd||s.paddingBottom)}}),o=Rn(A(()=>({scrollPaddingStart:r.value.start,scrollPaddingEnd:r.value.end,count:t.virtual.value.options.length,estimateSize(){return 40},getScrollElement(){return $(t.optionsRef)},overscan:12}))),a=A(()=>{var i;return(i=t.virtual.value)==null?void 0:i.options}),l=L(0);return ie([a],()=>{l.value+=1}),Ke(kt,t.virtual.value?o:null),()=>[Le("div",{style:{position:"relative",width:"100%",height:`${o.value.getTotalSize()}px`},ref:i=>{if(i){if(typeof process<"u"&&Vn.JEST_WORKER_ID!==void 0||t.activationTrigger.value===0)return;t.activeOptionIndex.value!==null&&t.virtual.value.options.length>t.activeOptionIndex.value&&o.value.scrollToIndex(t.activeOptionIndex.value)}}},o.value.getVirtualItems().map(i=>nn(n.default({option:t.virtual.value.options[i.index],open:t.comboboxState.value===0})[0],{key:`${l.value}-${i.index}`,"data-index":i.index,"aria-setsize":t.virtual.value.options.length,"aria-posinset":i.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${i.start}px)`,overflowAnchor:"none"}})))]}}),Qo=ve({name:"Combobox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],nullable:!0,default:null},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1},virtual:{type:Object,default:null}},inheritAttrs:!1,setup(e,{slots:n,attrs:t,emit:r}){let o=L(1),a=L(null),l=L(null),i=L(null),s=L(null),c=L({static:!1,hold:!1}),u=L([]),f=L(null),y=L(2),m=L(!1);function w(d=h=>h){let h=f.value!==null?u.value[f.value]:null,O=d(u.value.slice()),S=O.length>0&&O[0].dataRef.order.value!==null?O.sort((D,k)=>D.dataRef.order.value-k.dataRef.order.value):vn(O,D=>$(D.dataRef.domRef)),P=h?S.indexOf(h):null;return P===-1&&(P=null),{options:S,activeOptionIndex:P}}let E=A(()=>e.multiple?1:0),I=A(()=>e.nullable),[R,b]=an(A(()=>e.modelValue),d=>r("update:modelValue",d),A(()=>e.defaultValue)),C=A(()=>R.value===void 0?se(E.value,{1:[],0:void 0}):R.value),x=null,v=null;function g(d){return se(E.value,{0(){return b==null?void 0:b(d)},1:()=>{let h=G(p.value.value).slice(),O=G(d),S=h.findIndex(P=>p.compare(O,G(P)));return S===-1?h.push(O):h.splice(S,1),b==null?void 0:b(h)}})}let T=A(()=>{});ie([T],([d],[h])=>{if(p.virtual.value&&d&&h&&f.value!==null){let O=d.indexOf(h[f.value]);O!==-1?f.value=O:f.value=null}});let p={comboboxState:o,value:C,mode:E,compare(d,h){if(typeof e.by=="string"){let O=e.by;return(d==null?void 0:d[O])===(h==null?void 0:h[O])}return e.by===null?Wn(d,h):e.by(d,h)},calculateIndex(d){return p.virtual.value?e.by===null?p.virtual.value.options.indexOf(d):p.virtual.value.options.findIndex(h=>p.compare(h,d)):u.value.findIndex(h=>p.compare(h.dataRef.value,d))},defaultValue:A(()=>e.defaultValue),nullable:I,immediate:A(()=>!1),virtual:A(()=>null),inputRef:l,labelRef:a,buttonRef:i,optionsRef:s,disabled:A(()=>e.disabled),options:u,change(d){b(d)},activeOptionIndex:A(()=>{if(m.value&&f.value===null&&(p.virtual.value?p.virtual.value.options.length>0:u.value.length>0)){if(p.virtual.value){let h=p.virtual.value.options.findIndex(O=>{var S;return!((S=p.virtual.value)!=null&&S.disabled(O))});if(h!==-1)return h}let d=u.value.findIndex(h=>!h.dataRef.disabled);if(d!==-1)return d}return f.value}),activationTrigger:y,optionsPropsRef:c,closeCombobox(){m.value=!1,!e.disabled&&o.value!==1&&(o.value=1,f.value=null)},openCombobox(){if(m.value=!0,!e.disabled&&o.value!==0){if(p.value.value){let d=p.calculateIndex(p.value.value);d!==-1&&(f.value=d)}o.value=0}},setActivationTrigger(d){y.value=d},goToOption(d,h,O){m.value=!1,x!==null&&cancelAnimationFrame(x),x=requestAnimationFrame(()=>{if(e.disabled||s.value&&!c.value.static&&o.value===1)return;if(p.virtual.value){f.value=d===z.Specific?h:xt({focus:d},{resolveItems:()=>p.virtual.value.options,resolveActiveIndex:()=>{var D,k;return(k=(D=p.activeOptionIndex.value)!=null?D:p.virtual.value.options.findIndex(B=>{var q;return!((q=p.virtual.value)!=null&&q.disabled(B))}))!=null?k:null},resolveDisabled:D=>p.virtual.value.disabled(D),resolveId(){throw new Error("Function not implemented.")}}),y.value=O??2;return}let S=w();if(S.activeOptionIndex===null){let D=S.options.findIndex(k=>!k.dataRef.disabled);D!==-1&&(S.activeOptionIndex=D)}let P=d===z.Specific?h:xt({focus:d},{resolveItems:()=>S.options,resolveActiveIndex:()=>S.activeOptionIndex,resolveId:D=>D.id,resolveDisabled:D=>D.dataRef.disabled});f.value=P,y.value=O??2,u.value=S.options})},selectOption(d){let h=u.value.find(S=>S.id===d);if(!h)return;let{dataRef:O}=h;g(O.value)},selectActiveOption(){if(p.activeOptionIndex.value!==null){if(p.virtual.value)g(p.virtual.value.options[p.activeOptionIndex.value]);else{let{dataRef:d}=u.value[p.activeOptionIndex.value];g(d.value)}p.goToOption(z.Specific,p.activeOptionIndex.value)}},registerOption(d,h){let O=en({id:d,dataRef:h});if(p.virtual.value){u.value.push(O);return}v&&cancelAnimationFrame(v);let S=w(P=>(P.push(O),P));f.value===null&&p.isSelected(h.value.value)&&(S.activeOptionIndex=S.options.indexOf(O)),u.value=S.options,f.value=S.activeOptionIndex,y.value=2,S.options.some(P=>!$(P.dataRef.domRef))&&(v=requestAnimationFrame(()=>{let P=w();u.value=P.options,f.value=P.activeOptionIndex}))},unregisterOption(d,h){if(x!==null&&cancelAnimationFrame(x),h&&(m.value=!0),p.virtual.value){u.value=u.value.filter(S=>S.id!==d);return}let O=w(S=>{let P=S.findIndex(D=>D.id===d);return P!==-1&&S.splice(P,1),S});u.value=O.options,f.value=O.activeOptionIndex,y.value=2},isSelected(d){return se(E.value,{0:()=>p.compare(G(p.value.value),G(d)),1:()=>G(p.value.value).some(h=>p.compare(G(h),G(d)))})},isActive(d){return f.value===p.calculateIndex(d)}};$n([l,i,s],()=>p.closeCombobox(),A(()=>o.value===0)),Ke($t,p),zn(A(()=>se(o.value,{0:we.Open,1:we.Closed})));let M=A(()=>{var d;return(d=$(l))==null?void 0:d.closest("form")});return Se(()=>{ie([M],()=>{if(!M.value||e.defaultValue===void 0)return;function d(){p.change(e.defaultValue)}return M.value.addEventListener("reset",d),()=>{var h;(h=M.value)==null||h.removeEventListener("reset",d)}},{immediate:!0})}),()=>{var d,h,O;let{name:S,disabled:P,form:D,...k}=e,B={open:o.value===0,disabled:P,activeIndex:p.activeOptionIndex.value,activeOption:p.activeOptionIndex.value===null?null:p.virtual.value?p.virtual.value.options[(d=p.activeOptionIndex.value)!=null?d:0]:(O=(h=p.options.value[p.activeOptionIndex.value])==null?void 0:h.dataRef.value)!=null?O:null,value:C.value};return Le(tn,[...S!=null&&C.value!=null?ln({[S]:C.value}).map(([q,Y])=>Le(sn,un({features:cn.Hidden,key:q,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:D,disabled:P,name:q,value:Y}))):[],Ee({theirProps:{...t,...Je(k,["by","defaultValue","immediate","modelValue","multiple","nullable","onUpdate:modelValue","virtual"])},ourProps:{},slot:B,slots:n,attrs:t,name:"Combobox"})])}}}),Zo=ve({name:"ComboboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:n,slots:t,expose:r}){var o;let a=(o=e.id)!=null?o:`headlessui-combobox-button-${je()}`,l=pe("ComboboxButton");r({el:l.buttonRef,$el:l.buttonRef});function i(u){l.disabled.value||(l.comboboxState.value===0?l.closeCombobox():(u.preventDefault(),l.openCombobox()),ne(()=>{var f;return(f=$(l.inputRef))==null?void 0:f.focus({preventScroll:!0})}))}function s(u){switch(u.key){case W.ArrowDown:u.preventDefault(),u.stopPropagation(),l.comboboxState.value===1&&l.openCombobox(),ne(()=>{var f;return(f=l.inputRef.value)==null?void 0:f.focus({preventScroll:!0})});return;case W.ArrowUp:u.preventDefault(),u.stopPropagation(),l.comboboxState.value===1&&(l.openCombobox(),ne(()=>{l.value.value||l.goToOption(z.Last)})),ne(()=>{var f;return(f=l.inputRef.value)==null?void 0:f.focus({preventScroll:!0})});return;case W.Escape:if(l.comboboxState.value!==0)return;u.preventDefault(),l.optionsRef.value&&!l.optionsPropsRef.value.static&&u.stopPropagation(),l.closeCombobox(),ne(()=>{var f;return(f=l.inputRef.value)==null?void 0:f.focus({preventScroll:!0})});return}}let c=kn(A(()=>({as:e.as,type:n.type})),l.buttonRef);return()=>{var u,f;let y={open:l.comboboxState.value===0,disabled:l.disabled.value,value:l.value.value},{...m}=e,w={ref:l.buttonRef,id:a,type:c.value,tabindex:"-1","aria-haspopup":"listbox","aria-controls":(u=$(l.optionsRef))==null?void 0:u.id,"aria-expanded":l.comboboxState.value===0,"aria-labelledby":l.labelRef.value?[(f=$(l.labelRef))==null?void 0:f.id,a].join(" "):void 0,disabled:l.disabled.value===!0?!0:void 0,onKeydown:s,onClick:i};return Ee({ourProps:w,theirProps:m,slot:y,attrs:n,slots:t,name:"ComboboxButton"})}}}),er=ve({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:null}},emits:{change:e=>!0},setup(e,{emit:n,attrs:t,slots:r,expose:o}){var a;let l=(a=e.id)!=null?a:`headlessui-combobox-input-${je()}`,i=pe("ComboboxInput"),s=A(()=>dn($(i.inputRef))),c={value:!1};o({el:i.inputRef,$el:i.inputRef});function u(){i.change(null);let v=$(i.optionsRef);v&&(v.scrollTop=0),i.goToOption(z.Nothing)}let f=A(()=>{var v;let g=i.value.value;return $(i.inputRef)?typeof e.displayValue<"u"&&g!==void 0?(v=e.displayValue(g))!=null?v:"":typeof g=="string"?g:"":""});Se(()=>{ie([f,i.comboboxState,s],([v,g],[T,p])=>{if(c.value)return;let M=$(i.inputRef);M&&((p===0&&g===1||v!==T)&&(M.value=v),requestAnimationFrame(()=>{var d;if(c.value||!M||((d=s.value)==null?void 0:d.activeElement)!==M)return;let{selectionStart:h,selectionEnd:O}=M;Math.abs((O??0)-(h??0))===0&&h===0&&M.setSelectionRange(M.value.length,M.value.length)}))},{immediate:!0}),ie([i.comboboxState],([v],[g])=>{if(v===0&&g===1){if(c.value)return;let T=$(i.inputRef);if(!T)return;let p=T.value,{selectionStart:M,selectionEnd:d,selectionDirection:h}=T;T.value="",T.value=p,h!==null?T.setSelectionRange(M,d,h):T.setSelectionRange(M,d)}})});let y=L(!1);function m(){y.value=!0}function w(){ze().nextFrame(()=>{y.value=!1})}let E=Mn();function I(v){switch(c.value=!0,E(()=>{c.value=!1}),v.key){case W.Enter:if(c.value=!1,i.comboboxState.value!==0||y.value)return;if(v.preventDefault(),v.stopPropagation(),i.activeOptionIndex.value===null){i.closeCombobox();return}i.selectActiveOption(),i.mode.value===0&&i.closeCombobox();break;case W.ArrowDown:return c.value=!1,v.preventDefault(),v.stopPropagation(),se(i.comboboxState.value,{0:()=>i.goToOption(z.Next),1:()=>i.openCombobox()});case W.ArrowUp:return c.value=!1,v.preventDefault(),v.stopPropagation(),se(i.comboboxState.value,{0:()=>i.goToOption(z.Previous),1:()=>{i.openCombobox(),ne(()=>{i.value.value||i.goToOption(z.Last)})}});case W.Home:if(v.shiftKey)break;return c.value=!1,v.preventDefault(),v.stopPropagation(),i.goToOption(z.First);case W.PageUp:return c.value=!1,v.preventDefault(),v.stopPropagation(),i.goToOption(z.First);case W.End:if(v.shiftKey)break;return c.value=!1,v.preventDefault(),v.stopPropagation(),i.goToOption(z.Last);case W.PageDown:return c.value=!1,v.preventDefault(),v.stopPropagation(),i.goToOption(z.Last);case W.Escape:if(c.value=!1,i.comboboxState.value!==0)return;v.preventDefault(),i.optionsRef.value&&!i.optionsPropsRef.value.static&&v.stopPropagation(),i.nullable.value&&i.mode.value===0&&i.value.value===null&&u(),i.closeCombobox();break;case W.Tab:if(c.value=!1,i.comboboxState.value!==0)return;i.mode.value===0&&i.activationTrigger.value!==1&&i.selectActiveOption(),i.closeCombobox();break}}function R(v){n("change",v),i.nullable.value&&i.mode.value===0&&v.target.value===""&&u(),i.openCombobox()}function b(v){var g,T,p;let M=(g=v.relatedTarget)!=null?g:oe.find(d=>d!==v.currentTarget);if(c.value=!1,!((T=$(i.optionsRef))!=null&&T.contains(M))&&!((p=$(i.buttonRef))!=null&&p.contains(M))&&i.comboboxState.value===0)return v.preventDefault(),i.mode.value===0&&(i.nullable.value&&i.value.value===null?u():i.activationTrigger.value!==1&&i.selectActiveOption()),i.closeCombobox()}function C(v){var g,T,p;let M=(g=v.relatedTarget)!=null?g:oe.find(d=>d!==v.currentTarget);(T=$(i.buttonRef))!=null&&T.contains(M)||(p=$(i.optionsRef))!=null&&p.contains(M)||i.disabled.value||i.immediate.value&&i.comboboxState.value!==0&&(i.openCombobox(),ze().nextFrame(()=>{i.setActivationTrigger(1)}))}let x=A(()=>{var v,g,T,p;return(p=(T=(g=e.defaultValue)!=null?g:i.defaultValue.value!==void 0?(v=e.displayValue)==null?void 0:v.call(e,i.defaultValue.value):null)!=null?T:i.defaultValue.value)!=null?p:""});return()=>{var v,g,T,p,M,d,h;let O={open:i.comboboxState.value===0},{displayValue:S,onChange:P,...D}=e,k={"aria-controls":(v=i.optionsRef.value)==null?void 0:v.id,"aria-expanded":i.comboboxState.value===0,"aria-activedescendant":i.activeOptionIndex.value===null?void 0:i.virtual.value?(g=i.options.value.find(B=>!i.virtual.value.disabled(B.dataRef.value)&&i.compare(B.dataRef.value,i.virtual.value.options[i.activeOptionIndex.value])))==null?void 0:g.id:(T=i.options.value[i.activeOptionIndex.value])==null?void 0:T.id,"aria-labelledby":(d=(p=$(i.labelRef))==null?void 0:p.id)!=null?d:(M=$(i.buttonRef))==null?void 0:M.id,"aria-autocomplete":"list",id:l,onCompositionstart:m,onCompositionend:w,onKeydown:I,onInput:R,onFocus:C,onBlur:b,role:"combobox",type:(h=t.type)!=null?h:"text",tabIndex:0,ref:i.inputRef,defaultValue:x.value,disabled:i.disabled.value===!0?!0:void 0};return Ee({ourProps:k,theirProps:D,slot:O,attrs:t,slots:r,features:Be.RenderStrategy|Be.Static,name:"ComboboxInput"})}}}),tr=ve({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(e,{attrs:n,slots:t,expose:r}){let o=pe("ComboboxOptions"),a=`headlessui-combobox-options-${je()}`;r({el:o.optionsRef,$el:o.optionsRef}),Q(()=>{o.optionsPropsRef.value.static=e.static}),Q(()=>{o.optionsPropsRef.value.hold=e.hold});let l=Bn(),i=A(()=>l!==null?(l.value&we.Open)===we.Open:o.comboboxState.value===0);fn({container:A(()=>$(o.optionsRef)),enabled:A(()=>o.comboboxState.value===0),accept(c){return c.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:c.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(c){c.setAttribute("role","none")}});function s(c){c.preventDefault()}return()=>{var c,u,f;let y={open:o.comboboxState.value===0},m={"aria-labelledby":(f=(c=$(o.labelRef))==null?void 0:c.id)!=null?f:(u=$(o.buttonRef))==null?void 0:u.id,id:a,ref:o.optionsRef,role:"listbox","aria-multiselectable":o.mode.value===1?!0:void 0,onMousedown:s},w=Je(e,["hold"]);return Ee({ourProps:m,theirProps:w,slot:y,attrs:n,slots:o.virtual.value&&o.comboboxState.value===0?{...t,default:()=>[Le(qn,{},t.default)]}:t,features:Be.RenderStrategy|Be.Static,visible:i.value,name:"ComboboxOptions"})}}}),nr=ve({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},order:{type:[Number],default:null}},setup(e,{slots:n,attrs:t,expose:r}){let o=pe("ComboboxOption"),a=`headlessui-combobox-option-${je()}`,l=L(null),i=A(()=>e.disabled);r({el:l,$el:l});let s=A(()=>{var b;return o.virtual.value?o.activeOptionIndex.value===o.calculateIndex(e.value):o.activeOptionIndex.value===null?!1:((b=o.options.value[o.activeOptionIndex.value])==null?void 0:b.id)===a}),c=A(()=>o.isSelected(e.value)),u=Ye(kt,null),f=A(()=>({disabled:e.disabled,value:e.value,domRef:l,order:A(()=>e.order)}));Se(()=>o.registerOption(a,f)),Ct(()=>o.unregisterOption(a,s.value)),Q(()=>{let b=$(l);b&&(u==null||u.value.measureElement(b))}),Q(()=>{o.comboboxState.value===0&&s.value&&(o.virtual.value||o.activationTrigger.value!==0&&ne(()=>{var b,C;return(C=(b=$(l))==null?void 0:b.scrollIntoView)==null?void 0:C.call(b,{block:"nearest"})}))});function y(b){b.preventDefault(),b.button===Dt.Left&&(i.value||(o.selectOption(a),At()||requestAnimationFrame(()=>{var C;return(C=$(o.inputRef))==null?void 0:C.focus({preventScroll:!0})}),o.mode.value===0&&o.closeCombobox()))}function m(){var b;if(e.disabled||(b=o.virtual.value)!=null&&b.disabled(e.value))return o.goToOption(z.Nothing);let C=o.calculateIndex(e.value);o.goToOption(z.Specific,C)}let w=Ln();function E(b){w.update(b)}function I(b){var C;if(!w.wasMoved(b)||e.disabled||(C=o.virtual.value)!=null&&C.disabled(e.value)||s.value)return;let x=o.calculateIndex(e.value);o.goToOption(z.Specific,x,0)}function R(b){var C;w.wasMoved(b)&&(e.disabled||(C=o.virtual.value)!=null&&C.disabled(e.value)||s.value&&(o.optionsPropsRef.value.hold||o.goToOption(z.Nothing)))}return()=>{let{disabled:b}=e,C={active:s.value,selected:c.value,disabled:b},x={id:a,ref:l,role:"option",tabIndex:b===!0?void 0:-1,"aria-disabled":b===!0?!0:void 0,"aria-selected":c.value,disabled:void 0,onMousedown:y,onFocus:m,onPointerenter:E,onMouseenter:E,onPointermove:I,onMousemove:I,onPointerleave:R,onMouseleave:R},v=Je(e,["order","value"]);return Ee({ourProps:x,theirProps:v,slot:C,attrs:t,slots:n,name:"ComboboxOption"})}}});function V(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var n=e.ownerDocument;return n&&n.defaultView||window}return e}function ae(e){var n=V(e).Element;return e instanceof n||e instanceof Element}function N(e){var n=V(e).HTMLElement;return e instanceof n||e instanceof HTMLElement}function Ge(e){if(typeof ShadowRoot>"u")return!1;var n=V(e).ShadowRoot;return e instanceof n||e instanceof ShadowRoot}var re=Math.max,Fe=Math.min,ue=Math.round;function Ue(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function Lt(){return!/^((?!chrome|android).)*safari/i.test(Ue())}function ce(e,n,t){n===void 0&&(n=!1),t===void 0&&(t=!1);var r=e.getBoundingClientRect(),o=1,a=1;n&&N(e)&&(o=e.offsetWidth>0&&ue(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ue(r.height)/e.offsetHeight||1);var l=ae(e)?V(e):window,i=l.visualViewport,s=!Lt()&&t,c=(r.left+(s&&i?i.offsetLeft:0))/o,u=(r.top+(s&&i?i.offsetTop:0))/a,f=r.width/o,y=r.height/a;return{width:f,height:y,top:u,right:c+f,bottom:u+y,left:c,x:c,y:u}}function Qe(e){var n=V(e),t=n.pageXOffset,r=n.pageYOffset;return{scrollLeft:t,scrollTop:r}}function Un(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Xn(e){return e===V(e)||!N(e)?Qe(e):Un(e)}function X(e){return e?(e.nodeName||"").toLowerCase():null}function Z(e){return((ae(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ze(e){return ce(Z(e)).left+Qe(e).scrollLeft}function K(e){return V(e).getComputedStyle(e)}function et(e){var n=K(e),t=n.overflow,r=n.overflowX,o=n.overflowY;return/auto|scroll|overlay|hidden/.test(t+o+r)}function Yn(e){var n=e.getBoundingClientRect(),t=ue(n.width)/e.offsetWidth||1,r=ue(n.height)/e.offsetHeight||1;return t!==1||r!==1}function Kn(e,n,t){t===void 0&&(t=!1);var r=N(n),o=N(n)&&Yn(n),a=Z(n),l=ce(e,o,t),i={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!t)&&((X(n)!=="body"||et(a))&&(i=Xn(n)),N(n)?(s=ce(n,!0),s.x+=n.clientLeft,s.y+=n.clientTop):a&&(s.x=Ze(a))),{x:l.left+i.scrollLeft-s.x,y:l.top+i.scrollTop-s.y,width:l.width,height:l.height}}function tt(e){var n=ce(e),t=e.offsetWidth,r=e.offsetHeight;return Math.abs(n.width-t)<=1&&(t=n.width),Math.abs(n.height-r)<=1&&(r=n.height),{x:e.offsetLeft,y:e.offsetTop,width:t,height:r}}function Ve(e){return X(e)==="html"?e:e.assignedSlot||e.parentNode||(Ge(e)?e.host:null)||Z(e)}function Bt(e){return["html","body","#document"].indexOf(X(e))>=0?e.ownerDocument.body:N(e)&&et(e)?e:Bt(Ve(e))}function xe(e,n){var t;n===void 0&&(n=[]);var r=Bt(e),o=r===((t=e.ownerDocument)==null?void 0:t.body),a=V(r),l=o?[a].concat(a.visualViewport||[],et(r)?r:[]):r,i=n.concat(l);return o?i:i.concat(xe(Ve(l)))}function Jn(e){return["table","td","th"].indexOf(X(e))>=0}function yt(e){return!N(e)||K(e).position==="fixed"?null:e.offsetParent}function Gn(e){var n=/firefox/i.test(Ue()),t=/Trident/i.test(Ue());if(t&&N(e)){var r=K(e);if(r.position==="fixed")return null}var o=Ve(e);for(Ge(o)&&(o=o.host);N(o)&&["html","body"].indexOf(X(o))<0;){var a=K(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||n&&a.willChange==="filter"||n&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Ie(e){for(var n=V(e),t=yt(e);t&&Jn(t)&&K(t).position==="static";)t=yt(t);return t&&(X(t)==="html"||X(t)==="body"&&K(t).position==="static")?n:t||Gn(e)||n}var F="top",_="bottom",H="right",j="left",nt="auto",Re=[F,_,H,j],de="start",Oe="end",Qn="clippingParents",zt="viewport",ge="popper",Zn="reference",wt=Re.reduce(function(e,n){return e.concat([n+"-"+de,n+"-"+Oe])},[]),Ft=[].concat(Re,[nt]).reduce(function(e,n){return e.concat([n,n+"-"+de,n+"-"+Oe])},[]),eo="beforeRead",to="read",no="afterRead",oo="beforeMain",ro="main",io="afterMain",ao="beforeWrite",lo="write",so="afterWrite",uo=[eo,to,no,oo,ro,io,ao,lo,so];function co(e){var n=new Map,t=new Set,r=[];e.forEach(function(a){n.set(a.name,a)});function o(a){t.add(a.name);var l=[].concat(a.requires||[],a.requiresIfExists||[]);l.forEach(function(i){if(!t.has(i)){var s=n.get(i);s&&o(s)}}),r.push(a)}return e.forEach(function(a){t.has(a.name)||o(a)}),r}function fo(e){var n=co(e);return uo.reduce(function(t,r){return t.concat(n.filter(function(o){return o.phase===r}))},[])}function vo(e){var n;return function(){return n||(n=new Promise(function(t){Promise.resolve().then(function(){n=void 0,t(e())})})),n}}function po(e){var n=e.reduce(function(t,r){var o=t[r.name];return t[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,t},{});return Object.keys(n).map(function(t){return n[t]})}function ho(e,n){var t=V(e),r=Z(e),o=t.visualViewport,a=r.clientWidth,l=r.clientHeight,i=0,s=0;if(o){a=o.width,l=o.height;var c=Lt();(c||!c&&n==="fixed")&&(i=o.offsetLeft,s=o.offsetTop)}return{width:a,height:l,x:i+Ze(e),y:s}}function mo(e){var n,t=Z(e),r=Qe(e),o=(n=e.ownerDocument)==null?void 0:n.body,a=re(t.scrollWidth,t.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=re(t.scrollHeight,t.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),i=-r.scrollLeft+Ze(e),s=-r.scrollTop;return K(o||t).direction==="rtl"&&(i+=re(t.clientWidth,o?o.clientWidth:0)-a),{width:a,height:l,x:i,y:s}}function jt(e,n){var t=n.getRootNode&&n.getRootNode();if(e.contains(n))return!0;if(t&&Ge(t)){var r=n;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Xe(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bo(e,n){var t=ce(e,!1,n==="fixed");return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Ot(e,n,t){return n===zt?Xe(ho(e,t)):ae(n)?bo(n,t):Xe(mo(Z(e)))}function go(e){var n=xe(Ve(e)),t=["absolute","fixed"].indexOf(K(e).position)>=0,r=t&&N(e)?Ie(e):e;return ae(r)?n.filter(function(o){return ae(o)&&jt(o,r)&&X(o)!=="body"}):[]}function xo(e,n,t,r){var o=n==="clippingParents"?go(e):[].concat(n),a=[].concat(o,[t]),l=a[0],i=a.reduce(function(s,c){var u=Ot(e,c,r);return s.top=re(u.top,s.top),s.right=Fe(u.right,s.right),s.bottom=Fe(u.bottom,s.bottom),s.left=re(u.left,s.left),s},Ot(e,l,r));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function U(e){return e.split("-")[0]}function fe(e){return e.split("-")[1]}function ot(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Vt(e){var n=e.reference,t=e.element,r=e.placement,o=r?U(r):null,a=r?fe(r):null,l=n.x+n.width/2-t.width/2,i=n.y+n.height/2-t.height/2,s;switch(o){case F:s={x:l,y:n.y-t.height};break;case _:s={x:l,y:n.y+n.height};break;case H:s={x:n.x+n.width,y:i};break;case j:s={x:n.x-t.width,y:i};break;default:s={x:n.x,y:n.y}}var c=o?ot(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case de:s[c]=s[c]-(n[u]/2-t[u]/2);break;case Oe:s[c]=s[c]+(n[u]/2-t[u]/2);break}}return s}function Wt(){return{top:0,right:0,bottom:0,left:0}}function Nt(e){return Object.assign({},Wt(),e)}function _t(e,n){return n.reduce(function(t,r){return t[r]=e,t},{})}function rt(e,n){n===void 0&&(n={});var t=n,r=t.placement,o=r===void 0?e.placement:r,a=t.strategy,l=a===void 0?e.strategy:a,i=t.boundary,s=i===void 0?Qn:i,c=t.rootBoundary,u=c===void 0?zt:c,f=t.elementContext,y=f===void 0?ge:f,m=t.altBoundary,w=m===void 0?!1:m,E=t.padding,I=E===void 0?0:E,R=Nt(typeof I!="number"?I:_t(I,Re)),b=y===ge?Zn:ge,C=e.rects.popper,x=e.elements[w?b:y],v=xo(ae(x)?x:x.contextElement||Z(e.elements.popper),s,u,l),g=ce(e.elements.reference),T=Vt({reference:g,element:C,strategy:"absolute",placement:o}),p=Xe(Object.assign({},C,T)),M=y===ge?p:g,d={top:v.top-M.top+R.top,bottom:M.bottom-v.bottom+R.bottom,left:v.left-M.left+R.left,right:M.right-v.right+R.right},h=e.modifiersData.offset;if(y===ge&&h){var O=h[o];Object.keys(d).forEach(function(S){var P=[H,_].indexOf(S)>=0?1:-1,D=[F,_].indexOf(S)>=0?"y":"x";d[S]+=O[D]*P})}return d}var St={placement:"bottom",modifiers:[],strategy:"absolute"};function Et(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return!n.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function yo(e){e===void 0&&(e={});var n=e,t=n.defaultModifiers,r=t===void 0?[]:t,o=n.defaultOptions,a=o===void 0?St:o;return function(i,s,c){c===void 0&&(c=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},St,a),modifiersData:{},elements:{reference:i,popper:s},attributes:{},styles:{}},f=[],y=!1,m={state:u,setOptions:function(R){var b=typeof R=="function"?R(u.options):R;E(),u.options=Object.assign({},a,u.options,b),u.scrollParents={reference:ae(i)?xe(i):i.contextElement?xe(i.contextElement):[],popper:xe(s)};var C=fo(po([].concat(r,u.options.modifiers)));return u.orderedModifiers=C.filter(function(x){return x.enabled}),w(),m.update()},forceUpdate:function(){if(!y){var R=u.elements,b=R.reference,C=R.popper;if(Et(b,C)){u.rects={reference:Kn(b,Ie(C),u.options.strategy==="fixed"),popper:tt(C)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(d){return u.modifiersData[d.name]=Object.assign({},d.data)});for(var x=0;x<u.orderedModifiers.length;x++){if(u.reset===!0){u.reset=!1,x=-1;continue}var v=u.orderedModifiers[x],g=v.fn,T=v.options,p=T===void 0?{}:T,M=v.name;typeof g=="function"&&(u=g({state:u,options:p,name:M,instance:m})||u)}}}},update:vo(function(){return new Promise(function(I){m.forceUpdate(),I(u)})}),destroy:function(){E(),y=!0}};if(!Et(i,s))return m;m.setOptions(c).then(function(I){!y&&c.onFirstUpdate&&c.onFirstUpdate(I)});function w(){u.orderedModifiers.forEach(function(I){var R=I.name,b=I.options,C=b===void 0?{}:b,x=I.effect;if(typeof x=="function"){var v=x({state:u,name:R,instance:m,options:C}),g=function(){};f.push(v||g)}})}function E(){f.forEach(function(I){return I()}),f=[]}return m}}var De={passive:!0};function wo(e){var n=e.state,t=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,l=r.resize,i=l===void 0?!0:l,s=V(n.elements.popper),c=[].concat(n.scrollParents.reference,n.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",t.update,De)}),i&&s.addEventListener("resize",t.update,De),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",t.update,De)}),i&&s.removeEventListener("resize",t.update,De)}}const Ht={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wo,data:{}};function Oo(e){var n=e.state,t=e.name;n.modifiersData[t]=Vt({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})}const So={name:"popperOffsets",enabled:!0,phase:"read",fn:Oo,data:{}};var Eo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Io(e,n){var t=e.x,r=e.y,o=n.devicePixelRatio||1;return{x:ue(t*o)/o||0,y:ue(r*o)/o||0}}function It(e){var n,t=e.popper,r=e.popperRect,o=e.placement,a=e.variation,l=e.offsets,i=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,y=l.x,m=y===void 0?0:y,w=l.y,E=w===void 0?0:w,I=typeof u=="function"?u({x:m,y:E}):{x:m,y:E};m=I.x,E=I.y;var R=l.hasOwnProperty("x"),b=l.hasOwnProperty("y"),C=j,x=F,v=window;if(c){var g=Ie(t),T="clientHeight",p="clientWidth";if(g===V(t)&&(g=Z(t),K(g).position!=="static"&&i==="absolute"&&(T="scrollHeight",p="scrollWidth")),g=g,o===F||(o===j||o===H)&&a===Oe){x=_;var M=f&&g===v&&v.visualViewport?v.visualViewport.height:g[T];E-=M-r.height,E*=s?1:-1}if(o===j||(o===F||o===_)&&a===Oe){C=H;var d=f&&g===v&&v.visualViewport?v.visualViewport.width:g[p];m-=d-r.width,m*=s?1:-1}}var h=Object.assign({position:i},c&&Eo),O=u===!0?Io({x:m,y:E},V(t)):{x:m,y:E};if(m=O.x,E=O.y,s){var S;return Object.assign({},h,(S={},S[x]=b?"0":"",S[C]=R?"0":"",S.transform=(v.devicePixelRatio||1)<=1?"translate("+m+"px, "+E+"px)":"translate3d("+m+"px, "+E+"px, 0)",S))}return Object.assign({},h,(n={},n[x]=b?E+"px":"",n[C]=R?m+"px":"",n.transform="",n))}function Ro(e){var n=e.state,t=e.options,r=t.gpuAcceleration,o=r===void 0?!0:r,a=t.adaptive,l=a===void 0?!0:a,i=t.roundOffsets,s=i===void 0?!0:i,c={placement:U(n.placement),variation:fe(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:o,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,It(Object.assign({},c,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:l,roundOffsets:s})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,It(Object.assign({},c,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}const qt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ro,data:{}};function Co(e){var n=e.state;Object.keys(n.elements).forEach(function(t){var r=n.styles[t]||{},o=n.attributes[t]||{},a=n.elements[t];!N(a)||!X(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(l){var i=o[l];i===!1?a.removeAttribute(l):a.setAttribute(l,i===!0?"":i)}))})}function To(e){var n=e.state,t={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,t.popper),n.styles=t,n.elements.arrow&&Object.assign(n.elements.arrow.style,t.arrow),function(){Object.keys(n.elements).forEach(function(r){var o=n.elements[r],a=n.attributes[r]||{},l=Object.keys(n.styles.hasOwnProperty(r)?n.styles[r]:t[r]),i=l.reduce(function(s,c){return s[c]="",s},{});!N(o)||!X(o)||(Object.assign(o.style,i),Object.keys(a).forEach(function(s){o.removeAttribute(s)}))})}}const Mo={name:"applyStyles",enabled:!0,phase:"write",fn:Co,effect:To,requires:["computeStyles"]};var Ao=[Ht,So,qt,Mo],Po={left:"right",right:"left",bottom:"top",top:"bottom"};function ke(e){return e.replace(/left|right|bottom|top/g,function(n){return Po[n]})}var Do={start:"end",end:"start"};function Rt(e){return e.replace(/start|end/g,function(n){return Do[n]})}function $o(e,n){n===void 0&&(n={});var t=n,r=t.placement,o=t.boundary,a=t.rootBoundary,l=t.padding,i=t.flipVariations,s=t.allowedAutoPlacements,c=s===void 0?Ft:s,u=fe(r),f=u?i?wt:wt.filter(function(w){return fe(w)===u}):Re,y=f.filter(function(w){return c.indexOf(w)>=0});y.length===0&&(y=f);var m=y.reduce(function(w,E){return w[E]=rt(e,{placement:E,boundary:o,rootBoundary:a,padding:l})[U(E)],w},{});return Object.keys(m).sort(function(w,E){return m[w]-m[E]})}function ko(e){if(U(e)===nt)return[];var n=ke(e);return[Rt(e),n,Rt(n)]}function Lo(e){var n=e.state,t=e.options,r=e.name;if(!n.modifiersData[r]._skip){for(var o=t.mainAxis,a=o===void 0?!0:o,l=t.altAxis,i=l===void 0?!0:l,s=t.fallbackPlacements,c=t.padding,u=t.boundary,f=t.rootBoundary,y=t.altBoundary,m=t.flipVariations,w=m===void 0?!0:m,E=t.allowedAutoPlacements,I=n.options.placement,R=U(I),b=R===I,C=s||(b||!w?[ke(I)]:ko(I)),x=[I].concat(C).reduce(function(le,J){return le.concat(U(J)===nt?$o(n,{placement:J,boundary:u,rootBoundary:f,padding:c,flipVariations:w,allowedAutoPlacements:E}):J)},[]),v=n.rects.reference,g=n.rects.popper,T=new Map,p=!0,M=x[0],d=0;d<x.length;d++){var h=x[d],O=U(h),S=fe(h)===de,P=[F,_].indexOf(O)>=0,D=P?"width":"height",k=rt(n,{placement:h,boundary:u,rootBoundary:f,altBoundary:y,padding:c}),B=P?S?H:j:S?_:F;v[D]>g[D]&&(B=ke(B));var q=ke(B),Y=[];if(a&&Y.push(k[O]<=0),i&&Y.push(k[B]<=0,k[q]<=0),Y.every(function(le){return le})){M=h,p=!1;break}T.set(h,Y)}if(p)for(var Ce=w?3:1,We=function(J){var me=x.find(function(Me){var ee=T.get(Me);if(ee)return ee.slice(0,J).every(function(Ne){return Ne})});if(me)return M=me,"break"},he=Ce;he>0;he--){var Te=We(he);if(Te==="break")break}n.placement!==M&&(n.modifiersData[r]._skip=!0,n.placement=M,n.reset=!0)}}const Bo={name:"flip",enabled:!0,phase:"main",fn:Lo,requiresIfExists:["offset"],data:{_skip:!1}};function zo(e,n,t){var r=U(e),o=[j,F].indexOf(r)>=0?-1:1,a=typeof t=="function"?t(Object.assign({},n,{placement:e})):t,l=a[0],i=a[1];return l=l||0,i=(i||0)*o,[j,H].indexOf(r)>=0?{x:i,y:l}:{x:l,y:i}}function Fo(e){var n=e.state,t=e.options,r=e.name,o=t.offset,a=o===void 0?[0,0]:o,l=Ft.reduce(function(u,f){return u[f]=zo(f,n.rects,a),u},{}),i=l[n.placement],s=i.x,c=i.y;n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=s,n.modifiersData.popperOffsets.y+=c),n.modifiersData[r]=l}const jo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Fo};function Vo(e){return e==="x"?"y":"x"}function ye(e,n,t){return re(e,Fe(n,t))}function Wo(e,n,t){var r=ye(e,n,t);return r>t?t:r}function No(e){var n=e.state,t=e.options,r=e.name,o=t.mainAxis,a=o===void 0?!0:o,l=t.altAxis,i=l===void 0?!1:l,s=t.boundary,c=t.rootBoundary,u=t.altBoundary,f=t.padding,y=t.tether,m=y===void 0?!0:y,w=t.tetherOffset,E=w===void 0?0:w,I=rt(n,{boundary:s,rootBoundary:c,padding:f,altBoundary:u}),R=U(n.placement),b=fe(n.placement),C=!b,x=ot(R),v=Vo(x),g=n.modifiersData.popperOffsets,T=n.rects.reference,p=n.rects.popper,M=typeof E=="function"?E(Object.assign({},n.rects,{placement:n.placement})):E,d=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),h=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,O={x:0,y:0};if(g){if(a){var S,P=x==="y"?F:j,D=x==="y"?_:H,k=x==="y"?"height":"width",B=g[x],q=B+I[P],Y=B-I[D],Ce=m?-p[k]/2:0,We=b===de?T[k]:p[k],he=b===de?-p[k]:-T[k],Te=n.elements.arrow,le=m&&Te?tt(Te):{width:0,height:0},J=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:Wt(),me=J[P],Me=J[D],ee=ye(0,T[k],le[k]),Ne=C?T[k]/2-Ce-ee-me-d.mainAxis:We-ee-me-d.mainAxis,Ut=C?-T[k]/2+Ce+ee+Me+d.mainAxis:he+ee+Me+d.mainAxis,_e=n.elements.arrow&&Ie(n.elements.arrow),Xt=_e?x==="y"?_e.clientTop||0:_e.clientLeft||0:0,it=(S=h==null?void 0:h[x])!=null?S:0,Yt=B+Ne-it-Xt,Kt=B+Ut-it,at=ye(m?Fe(q,Yt):q,B,m?re(Y,Kt):Y);g[x]=at,O[x]=at-B}if(i){var lt,Jt=x==="x"?F:j,Gt=x==="x"?_:H,te=g[v],Ae=v==="y"?"height":"width",st=te+I[Jt],ut=te-I[Gt],He=[F,j].indexOf(R)!==-1,ct=(lt=h==null?void 0:h[v])!=null?lt:0,dt=He?st:te-T[Ae]-p[Ae]-ct+d.altAxis,ft=He?te+T[Ae]+p[Ae]-ct-d.altAxis:ut,vt=m&&He?Wo(dt,te,ft):ye(m?dt:st,te,m?ft:ut);g[v]=vt,O[v]=vt-te}n.modifiersData[r]=O}}const _o={name:"preventOverflow",enabled:!0,phase:"main",fn:No,requiresIfExists:["offset"]};var Ho=function(n,t){return n=typeof n=="function"?n(Object.assign({},t.rects,{placement:t.placement})):n,Nt(typeof n!="number"?n:_t(n,Re))};function qo(e){var n,t=e.state,r=e.name,o=e.options,a=t.elements.arrow,l=t.modifiersData.popperOffsets,i=U(t.placement),s=ot(i),c=[j,H].indexOf(i)>=0,u=c?"height":"width";if(!(!a||!l)){var f=Ho(o.padding,t),y=tt(a),m=s==="y"?F:j,w=s==="y"?_:H,E=t.rects.reference[u]+t.rects.reference[s]-l[s]-t.rects.popper[u],I=l[s]-t.rects.reference[s],R=Ie(a),b=R?s==="y"?R.clientHeight||0:R.clientWidth||0:0,C=E/2-I/2,x=f[m],v=b-y[u]-f[w],g=b/2-y[u]/2+C,T=ye(x,g,v),p=s;t.modifiersData[r]=(n={},n[p]=T,n.centerOffset=T-g,n)}}function Uo(e){var n=e.state,t=e.options,r=t.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=n.elements.popper.querySelector(o),!o)||jt(n.elements.popper,o)&&(n.elements.arrow=o))}const Xo={name:"arrow",enabled:!0,phase:"main",fn:qo,effect:Uo,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},Yo=yo({defaultModifiers:[...Ao,jo,Bo,_o,qt,Ht,Xo]});function or({locked:e=!1,overflowPadding:n=8,offsetDistance:t=8,offsetSkid:r=0,gpuAcceleration:o=!0,adaptive:a=!0,scroll:l=!0,resize:i=!0,arrow:s=!1,placement:c,strategy:u},f){const y=L(null),m=L(null),w=L(null);return Se(()=>{Q(E=>{if(!m.value||!y.value&&!(f!=null&&f.value))return;const I=ht(m),R=ht(y);if(!(I instanceof HTMLElement)||!R)return;const b={modifiers:[{name:"flip",enabled:!e},{name:"preventOverflow",options:{padding:n}},{name:"offset",options:{offset:[r,t]}},{name:"computeStyles",options:{adaptive:a,gpuAcceleration:o}},{name:"eventListeners",options:{scroll:l,resize:i}},{name:"arrow",enabled:s}]};c&&(b.placement=c),u&&(b.strategy=u),w.value=Yo(R,I,b),E(w.value.destroy)})}),[y,m,w]}export{or as a,we as b,z as c,Bn as d,Ln as e,xt as f,er as i,Qo as l,Zo as n,nr as r,kn as s,zn as t,tr as u,$n as w};
