PageSourceSearch

https://www.bikeexchange.com/_next/static/chunks/3509-91027613e27040b8.js

js bikeexchange.com collected 2026-09-25 02:41:08 UTC 74,946 bytes, 4 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3509],{7227:(e,t,n)=>{n.d(t,{q:()=>l});var o=n(16560);let i=(0,o.createContext)(void 0);function l(){return(0,o.useContext)(i)}},11929:(e,t,n)=>{n.d(t,{t:()=>l});var o=n(16560);function i(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}function l(e=i){return(0,o.useCallback)((t,n)=>"string"==typeof e?(null==t?void 0:t[e])===(null==n?void 0:n[e]):e(t,n),[e])}},12475:(e,t,n)=>{let o,i,l,r;n.d(t,{G3:()=>eN});var s=n(21437),a=n(42393),u=n(16560),c=n(24097);function d(e,t,n){let o,i=n.initialDeps??[],l=!0;function r(){var r,s,a;let u,c;n.key&&(null==(r=n.debug)?void 0:r.call(n))&&(u=Date.now());let d=e();if(!(d.length!==i.length||d.some((e,t)=>i[t]!==e)))return o;if(i=d,n.key&&(null==(s=n.debug)?void 0:s.call(n))&&(c=Date.now()),o=t(...d),n.key&&(null==(a=n.debug)?void 0:a.call(n))){let e=Math.round((Date.now()-u)*100)/100,t=Math.round((Date.now()-c)*100)/100,o=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${i(t,5)} /${i(e,5)} ms`,`
2            font-size: .6rem;
3            font-weight: bold;
4            color: hsl(${Math.max(0,Math.min(120-120*o,120))}deg 100% 31%);`,null==n?void 0:n.key)}return(null==n?void 0:n.onChange)&&!(l&&n.skipInitialOnChange)&&n.onChange(o),l=!1,o}return r.updateDeps=e=>{i=e},r}function f(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}let p=e=>{let{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},h=e=>e,m=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),o=[];for(let e=t;e<=n;e++)o.push(e);return o},g=(e,t)=>{let n=e.scrollElement;if(!n)return;let o=e.targetWindow;if(!o)return;let i=e=>{let{width:n,height:o}=e;t({width:Math.round(n),height:Math.round(o)})};if(i(p(n)),!o.ResizeObserver)return()=>{};let l=new o.ResizeObserver(t=>{let o=()=>{let e=t[0];if(null==e?void 0:e.borderBoxSize){let t=e.borderBoxSize[0];if(t)return void i({width:t.inlineSize,height:t.blockSize})}i(p(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()});return l.observe(n,{box:"border-box"}),()=>{l.unobserve(n)}},v={passive:!0},b="u"<typeof window||"onscrollend"in window,x=(e,t)=>{var n,o;let i,l=e.scrollElement;if(!l)return;let r=e.targetWindow;if(!r)return;let s=0,a=e.options.useScrollendEvent&&b?()=>void 0:(n=()=>{t(s,!1)},o=e.options.isScrollingResetDelay,function(...e){r.clearTimeout(i),i=r.setTimeout(()=>n.apply(this,e),o)}),u=n=>()=>{let{horizontal:o,isRtl:i}=e.options;s=o?l.scrollLeft*(i&&-1||1):l.scrollTop,a(),t(s,n)},c=u(!0),d=u(!1);l.addEventListener("scroll",c,v);let f=e.options.useScrollendEvent&&b;return f&&l.addEventListener("scrollend",d,v),()=>{l.removeEventListener("scroll",c),f&&l.removeEventListener("scrollend",d)}},y=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},w=(e,{adjustments:t=0,behavior:n},o)=>{var i,l;null==(l=null==(i=o.scrollElement)?void 0:i.scrollTo)||l.call(i,{[o.options.horizontal?"left":"top"]:e+t,behavior:n})};class S{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.currentScrollToIndex=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{let t=()=>{this._measureElement(e.target,e)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,n])=>{void 0===n&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:h,rangeExtractor:m,onChange:()=>{},measureElement:y,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,...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=d(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>
4{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;let t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},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??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{let n=new Map,o=new Map;for(let i=t-1;i>=0;i--){let t=e[i];if(n.has(t.lane))continue;let l=o.get(t.lane);if(null==l||t.end>l.end?o.set(t.lane,t):t.end<l.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return o.size===this.options.lanes?Array.from(o.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=d(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(e,t,n,o,i,l)=>(void 0!==this.prevLanes&&this.prevLanes!==l&&(this.lanesChangedFlag=!0),this.prevLanes=l,this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:o,enabled:i,lanes:l}),{key:!1}),this.getMeasurements=d(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:o,enabled:i,lanes:l},r)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let s=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1);let a=this.measurementsCache.slice(0,s),u=Array(l).fill(void 0);for(let e=0;e<s;e++){let t=a[e];t&&(u[t.lane]=e)}for(let i=s;i<e;i++){let e,l,s=o(i),c=this.laneAssignments.get(i);if(void 0!==c&&this.options.lanes>1){let o=u[e=c],i=void 0!==o?a[o]:void 0;l=i?i.end+this.options.gap:t+n}else{let o=1===this.options.lanes?a[i-1]:this.getFurthestMeasurement(a,i);l=o?o.end+this.options.gap:t+n,e=o?o.lane:i%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(i,e)}let d=r.get(s),f="number"==typeof d?d:this.options.estimateSize(i),p=l+f;a[i]={index:i,start:l,size:f,end:p,key:s,lane:e},u[e]=i}return this.measurementsCache=a,a},{key:!1,debug:()=>this.options.debug}),this.calculateRange=d(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,o)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n,lanes:o}){let i=e.length-1;if(e.length<=o)return{startIndex:0,endIndex:i};let l=C(0,i,t=>e[t].start,n),r=l;if(1===o)for(;r<i&&e[r].end<n+t;)r++;else if(o>1){let s=Array(o).fill(0);for(;r<i&&s.some(e=>e<n+t);){let t=e[r];s[t.lane]=t.end,r++}let a=Array(o).fill(n+t);for(;l>=0&&a.some(e=>e>=n);){let t=e[l];a[t.lane]=t.start,l--}l=Math.max(0,l-l%o),r=Math.min(i,r+(o-1-r%o))}return{startIndex:l,endIndex:r}}({measurements:e,outerSize:t,scrollOffset:n,lanes:o}):null,{key:!1,debug:()=>this.options.debug}
4),this.getVirtualIndexes=d(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,o,i)=>null===o||null===i?[]:e({startIndex:o,endIndex:i,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{let n=this.indexFromElement(e),o=this.measurementsCache[n];if(!o)return;let i=o.key,l=this.elementsCache.get(i);l!==e&&(l&&this.observer.unobserve(l),this.observer.observe(e),this.elementsCache.set(i,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{let n=this.measurementsCache[e];if(!n)return;let o=t-(this.itemSizeCache.get(n.key)??n.size);0!==o&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(n,o,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=o,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,t)),this.notify(!1))},this.measureElement=e=>{e?this._measureElement(e,void 0):this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))})},this.getVirtualItems=d(()=>
4[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let o=0,i=e.length;o<i;o++){let i=t[e[o]];n.push(i)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0!==t.length)return f(t[C(0,t.length-1,e=>f(t[e]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{let e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;let o=this.getSize(),i=this.getScrollOffset();return"auto"===t&&(t=e>=i+o?"end":"start"),"center"===t?e+=(n-o)/2:"end"===t&&(e-=o),Math.max(Math.min(this.getMaxScrollOffset(),e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.measurementsCache[e];if(!n)return;let o=this.getSize(),i=this.getScrollOffset();if("auto"===t)if(n.end>=i+o-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=i+this.options.scrollPaddingStart))return[i,t];t="start"}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];let l="end"===t?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(l,t,n.size),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(e,{align:t="start",behavior:n}={})=>{"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:t="auto",behavior:n}={})=>{"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),e=Math.max(0,Math.min(e,this.options.count-1)),this.currentScrollToIndex=e;let o=0,i=t=>{if(!this.targetWindow)return;let o=this.getOffsetForIndex(e,t);if(!o)return void console.warn("Failed to get offset for index:",e);let[i,r]=o;this._scrollToOffset(i,{adjustments:void 0,behavior:n}),this.targetWindow.requestAnimationFrame(()=>{let t=()=>{if(this.currentScrollToIndex!==e)return;let t=this.getScrollOffset(),n=this.getOffsetForIndex(e,r);n?1.01>Math.abs(n[0]-t)||l(r):console.warn("Failed to get offset for index:",e)};this.isDynamicMode()?this.targetWindow.requestAnimationFrame(t):t()})},l=t=>{this.targetWindow&&this.currentScrollToIndex===e&&(++o<10?this.targetWindow.requestAnimationFrame(()=>i(t)):console.warn(`Failed to scroll to index ${e} after 10 attempts.`))};i(t)},this.scrollBy=(e,{behavior:t}={})=>{"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adju
4stments:void 0,behavior:t})},this.getTotalSize=()=>{var e;let t,n=this.getMeasurements();if(0===n.length)t=this.options.paddingStart;else if(1===this.options.lanes)t=(null==(e=n[n.length-1])?void 0:e.end)??0;else{let e=Array(this.options.lanes).fill(null),o=n.length-1;for(;o>=0&&e.some(e=>null===e);){let t=n[o];null===e[t.lane]&&(e[t.lane]=t.end),o--}t=Math.max(...e.filter(e=>null!==e))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(e)}}let C=(e,t,n,o)=>{for(;e<=t;){let i=(e+t)/2|0,l=n(i);if(l<o)e=i+1;else{if(!(l>o))return i;t=i-1}}return e>0?e-1:0},O="u">typeof document?u.useLayoutEffect:u.useEffect;var E=n(66983),T=n(11929),R=n(13500),I=n(55328),M=n(6366),P=n(88333),F=n(2429),k=n(52532),A=n(82751),_=n(70943),D=n(9096),L=n(92574),z=n(25727),B=n(9514),j=n(94270),N=n(59678),V=n(17657),W=n(54476);function $(e){let t=(0,u.useRef)({value:"",selectionStart:null,selectionEnd:null});return(0,W.M)(e,"blur",e=>{let n=e.target;N.A3(n)&&(t.current={value:n.value,selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})}),(0,F._)(()=>{if(!(0,V.X7)(e)&&N.A3(e)&&e.isConnected){if(e.focus({preventScroll:!0}),e.value!==t.current.value)e.setSelectionRange(e.value.length,e.value.length);else{let{selectionStart:n,selectionEnd:o}=t.current;null!==n&&null!==o&&e.setSelectionRange(n,o)}t.current={value:"",selectionStart:null,selectionEnd:null}}})}var q=n(26215),U=n(26534),H=n(13835),J=n(59113),Y=n(52283),X=n(41795),K=n(55638),G=n(99914),Z=n(42180),Q=n(48082),ee=n(95968),et=n(7227),en=n(84565),eo=n(38785),ei=n(43427),el=n(34197),er=n(31438),es=n(65821),ea=n(55967),eu=n(75541),ec=n(92602),ed=n(69120),ef=n(38160),ep=n(24648),eh=n(85604),em=n(37594),eg=n(68237),ev=n(74540),eb=n(61942),ex=Object.defineProperty,ey=(e,t,n)=>{let o;return(o="symbol"!=typeof t?t+"":t)in e?ex(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,n},ew=((o=ew||{})[o.Open=0]="Open",o[o.Closed=1]="Closed",o),eS=((i=eS||{})[i.Single=0]="Single",i[i.Multi=1]="Multi",i),eC=((l=eC||{})[l.Pointer=0]="Pointer",l[l.Focus=1]="Focus",l[l.Other=2]="Other",l),eO=((r=eO||{})[r.OpenCombobox=0]="OpenCombobox",r[r.CloseCombobox=1]="CloseCombobox",r[r.GoToOption=2]="GoToOption",r[r.SetTyping=3]="SetTyping",r[r.RegisterOption=4]="RegisterOption",r[r.UnregisterOption=5]="UnregisterOption",r[r.DefaultToFirstOption=6]="DefaultToFirstOption",r[r.SetActivationTrigger=7]="SetActivationTrigger",r[r.UpdateVirtualConfiguration=8]="UpdateVirtualConfiguration",r[r.SetInputElement=9]="SetInputElement",r[r.SetButtonElement=10]="SetButtonElement",r[r.SetOptionsElement=11]="SetOptionsElement",r[r.MarkInputAsMoved=12]="MarkInputAsMoved",r);function eE(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,o=t(e.options.slice()),i=o.length>0&&null!==o[0].dataRef.current.order?o.sort((e,t)=>e.dataRef.current.order-t.dataRef.current.order):(0,eb.wl)(o,e=>e.dataRef.current.domRef.current),l=n?i.indexOf(n):null;return -1===l&&(l=null),{options:i,activeOptionIndex:l}}let eT={1(e){var t;if(null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState)return e;let n=e.inputElement?ev.Fc.Tracked((0,ev.JO)(e.inputElement)):e.inputPositionState;return{...e,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,inputPositionState:n,__demoMode:!1}},0(e){var t,n;if(null!=(t=e.dataRef.current)&&t.disabled||0===e.comboboxState)return e;if(null!=(n=e.dataRef.current)&&n.value){let t=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(-1!==t)return{...e,activeOptionIndex:t,comboboxState:0,__demoMode:!1,inputPositionState:ev.Fc.Idle}}return{...e,comboboxState:0,inputPositionState:ev.Fc.Idle,__demoMode:!1}},3:(e,t)=>e.isTyping===t.isTyping?e:{...e,isTyping:t.isTyping},2(e,t){var n,o,i,l;if(null!=(n=e.dataRef.current)&&n.disabled||e.optionsElement&&!(null!=(o=e.dataRef.current)&&o.optionsPropsRef.current.static)&&1===e.comboboxState)return e;if(e.virtual){let{options:n,disabled:o}=e.virtual,l=t.focus===er.B.Specific?t.idx:(0,er.X)(t,{resolveItems:()=>n,resolveActiveIndex:()=>{var t,i;
4return null!=(i=null!=(t=e.activeOptionIndex)?t:n.findIndex(e=>!o(e)))?i:null},resolveDisabled:o,resolveId(){throw Error("Function not implemented.")}}),r=null!=(i=t.trigger)?i:2;return e.activeOptionIndex===l&&e.activationTrigger===r?e:{...e,activeOptionIndex:l,activationTrigger:r,isTyping:!1,__demoMode:!1}}let r=eE(e);if(null===r.activeOptionIndex){let e=r.options.findIndex(e=>!e.dataRef.current.disabled);-1!==e&&(r.activeOptionIndex=e)}let s=t.focus===er.B.Specific?t.idx:(0,er.X)(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled}),a=null!=(l=t.trigger)?l:2;return e.activeOptionIndex===s&&e.activationTrigger===a?e:{...e,...r,isTyping:!1,activeOptionIndex:s,activationTrigger:a,__demoMode:!1}},4:(e,t)=>{var n,o,i,l;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:[...e.options,t.payload]};let r=t.payload,s=eE(e,e=>(e.push(r),e));null===e.activeOptionIndex&&null!=(i=(o=e.dataRef.current).isSelected)&&i.call(o,t.payload.dataRef.current.value)&&(s.activeOptionIndex=s.options.indexOf(r));let a={...e,...s,activationTrigger:2};return null!=(l=e.dataRef.current)&&l.__demoMode&&void 0===e.dataRef.current.value&&(a.activeOptionIndex=0),a},5:(e,t)=>{var n;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:e.options.filter(e=>e.id!==t.id)};let o=eE(e,e=>{let n=e.findIndex(e=>e.id===t.id);return -1!==n&&e.splice(n,1),e});return{...e,...o,activationTrigger:2}},6:(e,t)=>e.defaultToFirstOption===t.value?e:{...e,defaultToFirstOption:t.value},7:(e,t)=>e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},8:(e,t)=>
4{var n,o;if(null===e.virtual)return{...e,virtual:{options:t.options,disabled:null!=(n=t.disabled)?n:()=>!1}};if(e.virtual.options===t.options&&e.virtual.disabled===t.disabled)return e;let i=e.activeOptionIndex;if(null!==e.activeOptionIndex){let n=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);i=-1!==n?n:null}return{...e,activeOptionIndex:i,virtual:{options:t.options,disabled:null!=(o=t.disabled)?o:()=>!1}}},9:(e,t)=>e.inputElement===t.element?e:{...e,inputElement:t.element},10:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},11:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},12:e=>"Tracked"!==e.inputPositionState.kind?e:{...e,inputPositionState:ev.Fc.Moved}};class eR extends eg.u5{constructor(e){super(e),ey(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:o,value:i}=this.state.dataRef.current;return(0,ea.Y)(o,{0:()=>null==t?void 0:t(e),1:()=>{let o=i.slice(),l=o.findIndex(t=>n(t,e));return -1===l?o.push(e):o.splice(l,1),null==t?void 0:t(o)}})},registerOption:(e,t)=>(this.send({type:4,payload:{id:e,dataRef:t}}),()=>{this.state.activeOptionIndex===this.state.dataRef.current.calculateIndex(t.current.value)&&this.send({type:6,value:!0}),this.send({type:5,id:e})}),goToOption:(e,t)=>(this.send({type:6,value:!1}),this.send({type:2,...e,trigger:t})),setIsTyping:e=>{this.send({type:3,isTyping:e})},closeCombobox:()=>{var e,t;this.send({type:1}),this.send({type:6,value:!1}),null==(t=(e=this.state.dataRef.current).onClose)||t.call(e)},openCombobox:()=>{this.send({type:0}),this.send({type:6,value:!0})},setActivationTrigger:e=>{this.send({type:7,trigger:e})},selectActiveOption:()=>{let e=this.selectors.activeOptionIndex(this.state);if(null!==e){if(this.actions.setIsTyping(!1),this.state.virtual)this.actions.onChange(this.state.virtual.options[e]);else{let{dataRef:t}=this.state.options[e];this.actions.onChange(t.current.value)}this.actions.goToOption({focus:er.B.Specific,idx:e})}},setInputElement:e=>{this.send({type:9,element:e})},setButtonElement:e=>{this.send({type:10,element:e})},setOptionsElement:e=>{this.send({type:11,element:e})}}),ey(this,"selectors",{activeDescendantId:e=>{var t,n;let o=this.selectors.activeOptionIndex(e);if(null!==o)return e.virtual?null==(n=e.options.find(t=>!t.dataRef.current.disabled&&e.dataRef.current.compare(t.dataRef.current.value,e.virtual.options[o])))?void 0:n.id:null==(t=e.options[o])?void 0:t.id},activeOptionIndex:e=>{if(e.defaultToFirstOption&&null===e.activeOptionIndex&&(e.virtual?e.virtual.options.length>0:e.options.length>0)){if(e.virtual){let{options:t,disabled:n}=e.virtual,o=t.findIndex(e=>{var t;return!(null!=(t=null==n?void 0:n(e))&&t)});if(-1!==o)return o}let t=e.options.findIndex(e=>!e.dataRef.current.disabled);if(-1!==t)return t}return e.activeOptionIndex},activeOption:e=>{var t,n;let o=this.selectors.activeOptionIndex(e);return null===o?null:e.virtual?e.virtual.options[null!=o?o:0]:null!=(n=null==(t=e.options[o])?void 0:t.dataRef.current.value)?n:null},isActive:(e,t,n)=>{var o;let i=this.selectors.activeOptionIndex(e);return null!==i&&(e.virtual?i===e.dataRef.current.calculateIndex(t):(null==(o=e.options[i])?void 0:o.id)===n)},shouldScrollIntoView:(e,t,n)=>!(e.virtual||e.__demoMode||0!==e.comboboxState||0===e.activationTrigger||!this.selectors.isActive(e,t,n)),didInputMove:e=>"Moved"===e.inputPositionState.kind});{let e=this.state.id,t=eo.D.get(null);this.disposables.add(t.on(eo.Q.Push,n=>{t.selectors.isTop(n,e)||0!==this.state.comboboxState||this.actions.closeCombobox()})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.inputElement&&(e.dispose(),e.add((0,ev.nY)(t.inputElement,t.inputPositionState,()=>{this.send({type:12})})))})})}static new({id:e,virtual:t=null,__demoMode:n=!1}){var o;return new eR({id:e,dataRef:{current:{}},comboboxState:+!n,isTyping:!1,options:[],virtual:t?{options:t.options,disabled:null!=(o=t.disabled)?o:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:n,inputPositionState:ev.Fc.Idle})}reduce(e,t){return(0,ea.Y)(t.type,eT,e,t)}}var eI=n(90391);let eM=(0,u.createContext)(null);function eP(e){let t=(0,u.useContext)(eM);if(null===t){let t=Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,eF),t}return t}function eF({id:e,virtual:t=null,__demoMode:n=!1}){let o=(0,u.useMemo)(()=>eR.new({id:e,virtual:t,__demoMode:n}),[]);return(0,eI.X)(()=>o.dispose()),o}let ek=(0,u.createContext)(null);function eA(e){let t=(0,u.useContext)(ek);if(null===t){let t=Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,eA),t}return t}ek.displayName="ComboboxDataContext";let e_=(0,u.createContext)(null);function eD(e){let t=eP("VirtualProvider"),{options:n}=eA("VirtualProvider").virtual,o=(0,ei.y)(t,e=>e.optionsElement),[i,l]=(0,u.useMemo)(()=>
4{if(!o)return[0,0];let e=window.getComputedStyle(o);return[parseFloat(e.paddingBlockStart||e.paddingTop),parseFloat(e.paddingBlockEnd||e.paddingBottom)]},[o]),r=function({useFlushSync:e=!0,...t}){let n=u.useReducer(()=>({}),{})[1],o={...t,onChange:(o,i)=>{var l;e&&i?(0,c.flushSync)(n):n(),null==(l=t.onChange)||l.call(t,o,i)}},[i]=u.useState(()=>new S(o));return i.setOptions(o),O(()=>i._didMount(),[]),O(()=>i._willUpdate()),i}({observeElementRect:g,observeElementOffset:x,scrollToFn:w,...{enabled:0!==n.length,scrollPaddingStart:i,scrollPaddingEnd:l,count:n.length,estimateSize:()=>40,getScrollElement:()=>t.state.optionsElement,overscan:12}}),[s,a]=(0,u.useState)(0);(0,_.s)(()=>{a(e=>e+1)},[n]);let d=r.getVirtualItems(),f=(0,ei.y)(t,e=>e.activationTrigger===eC.Pointer),p=(0,ei.y)(t,t.selectors.activeOptionIndex);return 0===d.length?null:u.createElement(e_.Provider,{value:r},u.createElement("div",{style:{position:"relative",width:"100%",height:`${r.getTotalSize()}px`},ref:e=>{e&&(f||null!==p&&n.length>p&&r.scrollToIndex(p))}},d.map(t=>{var o;return u.createElement(u.Fragment,{key:t.key},u.cloneElement(null==(o=e.children)?void 0:o.call(e,{...e.slot,option:n[t.index]}),{key:`${s}-${t.key}`,"data-index":t.index,"aria-setsize":n.length,"aria-posinset":t.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${t.start}px)`,overflowAnchor:"none"}}))})))}let eL=u.Fragment,ez=ec.Ac.RenderStrategy|ec.Ac.Static,eB=(0,ec.FX)(function(e,t){let n=(0,u.useId)(),o=(0,G._)(),{value:i,defaultValue:l,onChange:r,form:s,name:a,by:c,invalid:d=!1,disabled:f=o||!1,onClose:p,__demoMode:h=!1,multiple:m=!1,immediate:g=!1,virtual:v=null,nullable:b,...x}=e,y=(0,I.K)(l),[w=m?[]:void 0,S]=(0,R.P)(i,r,y),C=eF({id:n,virtual:v,__demoMode:h}),O=(0,u.useRef)({static:!1,hold:!1}),E=(0,T.t)(c),M=(0,F._)(e=>v?null===c?v.options.indexOf(e):v.options.findIndex(t=>E(t,e)):C.state.options.findIndex(t=>E(t.dataRef.current.value,e))),P=(0,u.useCallback)(e=>(0,ea.Y)(D.mode,{[eS.Multi]:()=>w.some(t=>E(t,e)),[eS.Single]:()=>E(w,e)}),[w]),k=(0,ei.y)(C,e=>e.virtual),A=(0,F._)(()=>null==p?void 0:p()),D=(0,u.useMemo)(()=>({__demoMode:h,immediate:g,optionsPropsRef:O,value:w,defaultValue:y,disabled:f,invalid:d,mode:m?eS.Multi:eS.Single,virtual:v?k:null,onChange:S,isSelected:P,calculateIndex:M,compare:E,onClose:A}),[h,g,O,w,y,f,d,m,v,k,S,P,M,E,A]);(0,_.s)(()=>{var e;v&&C.send({type:eO.UpdateVirtualConfiguration,options:v.options,disabled:null!=(e=v.disabled)?e:null})},[v,null==v?void 0:v.options,null==v?void 0:v.disabled]),(0,_.s)(()=>{C.state.dataRef.current=D},[D]);let[L,B,j,N]=(0,ei.y)(C,e=>[e.comboboxState,e.buttonElement,e.inputElement,e.optionsElement]),V=eo.D.get(null),W=(0,ei.y)(V,(0,u.useCallback)(e=>V.selectors.isTop(e,n),[V,n]));(0,z.j)(W,[B,j,N],()=>C.actions.closeCombobox());let $=(0,ei.y)(C,C.selectors.activeOptionIndex),q=(0,ei.y)(C,C.selectors.activeOption),U=(0,H._)({open:L===ew.Open,disabled:f,invalid:d,activeIndex:$,activeOption:q,value:w}),[J,Y]=(0,ep.b0)(),X=(0,u.useCallback)(()=>{if(void 0!==y)return null==S?void 0:S(y)},[S,y]),K=(0,ec.Ci)();return u.createElement(Y,{value:J,props:{htmlFor:null==j?void 0:j.id},slot:{open:L===ew.Open,disabled:f}},u.createElement(Z.St,null,u.createElement(ek.Provider,{value:D},u.createElement(eM.Provider,{value:C},u.createElement(en.El,{value:(0,ea.Y)(L,{[ew.Open]:en.Uw.Open,[ew.Closed]:en.Uw.Closed})},null!=a&&u.createElement(Q.CL,{disabled:f,data:null!=w?{[a]:w}:{},form:s,onReset:X}),K({ourProps:null===t?{}:{ref:t},theirProps:x,slot:U,defaultTag:eL,name:"Combobox"}))))))}),ej=(0,ec.FX)(function(e,t){let n=eP("Combobox.Button"),o=eA("Combobox.Button"),[i,l]=(0,u.useState)(null),r=(0,J.P)(t,l,n.actions.setButtonElement),d=(0,u.useId)(),{id:f=`headlessui-combobox-button-${d}`,disabled:p=o.disabled||!1,autoFocus:h=!1,...m}=e,[g,v,b]=(0,ei.y)(n,e=>[e.comboboxState,e.inputElement,e.optionsElement]),x=$(v),y=g===ew.Open;(0,j.s)(y,{trigger:i,action:(0,u.useCallback)(e=>{if(null!=i&&i.contains(e.target)||null!=v&&v.contains(e.target))return j.r.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return N.sb(t)?j.r.Select(t):null!=b&&b.contains(e.target)?j.r.Ignore:j.r.Close},[i,v,b]),close:n.actions.closeCombobox,select:n.actions.selectActiveOption});let w=(0,F._)(e=>{switch(e.key){case ef.D.Space:case ef.D.Enter:e.preventDefault(),e.stopPropagation(),n.state.comboboxState===ew.Closed&&(0,c.flushSync)(()=>n.actions.openCombobox()),x();return;case ef.D.ArrowDown:e.preventDefault(),e.stopPropagation(),n.state.comboboxState===ew.Closed&&((0,c.flushSync)(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:er.B.First})),x();return;case ef.D.ArrowUp:e.preventDefault(),e.stopPropagation(),n.state.comboboxState===ew.Closed&&((0,c.flushSync)(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:er.B.Last})),x();return;case ef.D.Escape:if(n.state.comboboxState!==ew.Open)return;e.preventDefault(),n.state.optionsElement&&!o.optionsPropsRef.current.static&&e.stopPropagation(),(0,c.flushSync)(()=>n.actions.closeCombobox()),x();return;default:return}}),S=(0,k.O)(()=>{n.state.comboboxState===ew.Open?n.actions.closeCombobox():n.actions.openCombobox(),x()}),C=(0,ep.o2)([f]),{isFocusVisible:O,focusProps:T}=(0,s.o)({autoFocus:h}),{isHovered:R,hoverProps:I}=(0,a.M)({isDisabled:p}),{pressed:M,pressProps:P}=(0,E.Z)({disabled:p}),A=(0,H._)({open:g===ew.Open,active:M||g===ew.Open,disabled:p,invalid:o.invalid,value:o.value,hover:R,focus:O}),_=(0,ec.v6)({ref:r,id:f,type:(0,q.c)(e,i),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==b?void 0:b.id,"aria-expanded":g===ew.Open,"aria-labelledby":C,disabled:p||void 0,autoFocus:h,onKeyDown:w},S,T,I,P);return(0,ec.Ci)()({ourProps:_,theirProps:m,slot:A,defaultTag:"button",name:"Combobox.Button"})}),eN=Object.assign(eB,{Input:(0,ec.FX)(function(e,t){var n,o;let i=eP("Combobox.Input"),l=eA("Combobox.Input"),r=(0,u.useId)(),d=(0,et.q)(),{id:f=d||`headlessui-combobox-input-${r}`,onChange:p,displayValue:h,disabled:m=l.disabled||!1,autoFocus:g=!1,type:v="text",...b}=e,x=(0,u.useRef)(null),y=(0,J.P)(x,t,(0,Z.Xc)(),i.actions.setInputElement),[w,S]=(0,ei.y)(i,e=>[e.comboboxState,e.isTyping]),C=(0,M.L)(),O=(0,F._)(()=>{i.actions.onChange(null),i.state.optionsElement&&(i.state.optionsElement.scrollTop=0),i.actions.goToOption({focus:er.B.Nothing})}),E=(0,u.useMemo)(()=>{var e;return"function"==typeof h&&void 0!==l.value?null!=(e=h(l.value))?e:"":"string"==typeof l.value?l.value:""},[l.value,h]);(0,K.F)(([e,t],[n,o])=>{if(i.state.isTyping)return;let l=x.current;l&&((o===ew.Open&&t===ew.Closed||e!==n)&&(l.value=e),requestAnimationFrame(()=>{if(i.state.isTyping||!l||(0,V.X7)(l))return;let{selectionStart:e,selectionEnd:t}=l;0===Math.abs((null!=t?t:0)-(null!=e?e:0))&&0===e&&l.setSelectionRange(l.value.length,l.value.length)}))},[E,w,S]),(0,K.F)(([e],[t])=>
4{if(e===ew.Open&&t===ew.Closed){if(i.state.isTyping)return;let e=x.current;if(!e)return;let t=e.value,{selectionStart:n,selectionEnd:o,selectionDirection:l}=e;e.value="",e.value=t,null!==l?e.setSelectionRange(n,o,l):e.setSelectionRange(n,o)}},[w]);let T=(0,u.useRef)(!1),R=(0,F._)(()=>{T.current=!0}),I=(0,F._)(()=>{C.nextFrame(()=>{T.current=!1})}),P=(0,F._)(e=>{switch(i.actions.setIsTyping(!0),e.key){case ef.D.Enter:if(i.state.comboboxState!==ew.Open||T.current)return;if(e.preventDefault(),e.stopPropagation(),null===i.selectors.activeOptionIndex(i.state))return void i.actions.closeCombobox();i.actions.selectActiveOption(),l.mode===eS.Single&&i.actions.closeCombobox();break;case ef.D.ArrowDown:return e.preventDefault(),e.stopPropagation(),(0,ea.Y)(i.state.comboboxState,{[ew.Open]:()=>i.actions.goToOption({focus:er.B.Next}),[ew.Closed]:()=>i.actions.openCombobox()});case ef.D.ArrowUp:return e.preventDefault(),e.stopPropagation(),(0,ea.Y)(i.state.comboboxState,{[ew.Open]:()=>i.actions.goToOption({focus:er.B.Previous}),[ew.Closed]:()=>{(0,c.flushSync)(()=>i.actions.openCombobox()),l.value||i.actions.goToOption({focus:er.B.Last})}});case ef.D.Home:if(i.state.comboboxState===ew.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),i.actions.goToOption({focus:er.B.First});case ef.D.PageUp:return e.preventDefault(),e.stopPropagation(),i.actions.goToOption({focus:er.B.First});case ef.D.End:if(i.state.comboboxState===ew.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),i.actions.goToOption({focus:er.B.Last});case ef.D.PageDown:return e.preventDefault(),e.stopPropagation(),i.actions.goToOption({focus:er.B.Last});case ef.D.Escape:return i.state.comboboxState!==ew.Open?void 0:(e.preventDefault(),i.state.optionsElement&&!l.optionsPropsRef.current.static&&e.stopPropagation(),l.mode===eS.Single&&null===l.value&&O(),i.actions.closeCombobox());case ef.D.Tab:if(i.actions.setIsTyping(!1),i.state.comboboxState!==ew.Open)return;l.mode===eS.Single&&i.state.activationTrigger!==eC.Focus&&i.actions.selectActiveOption(),i.actions.closeCombobox()}}),k=(0,F._)(e=>{null==p||p(e),l.mode===eS.Single&&""===e.target.value&&O(),i.actions.openCombobox()}),A=(0,F._)(e=>{var t,n,o;let r=null!=(t=e.relatedTarget)?t:el.b.find(t=>t!==e.currentTarget);if(!(null!=(n=i.state.optionsElement)&&n.contains(r))&&!(null!=(o=i.state.buttonElement)&&o.contains(r))&&i.state.comboboxState===ew.Open)return e.preventDefault(),l.mode===eS.Single&&null===l.value&&O(),i.actions.closeCombobox()}),_=(0,F._)(e=>{var t,n,o;let r=null!=(t=e.relatedTarget)?t:el.b.find(t=>t!==e.currentTarget);null!=(n=i.state.buttonElement)&&n.contains(r)||null!=(o=i.state.optionsElement)&&o.contains(r)||l.disabled||l.immediate&&i.state.comboboxState!==ew.Open&&C.microTask(()=>{(0,c.flushSync)(()=>i.actions.openCombobox()),i.actions.setActivationTrigger(eC.Focus)})}),D=(0,ep.o2)(),L=(0,ed.MM)(),{isFocused:z,focusProps:B}=(0,s.o)({autoFocus:g}),{isHovered:j,hoverProps:N}=(0,a.M)({isDisabled:m}),W=(0,ei.y)(i,e=>e.optionsElement),$=(0,H._)({open:w===ew.Open,disabled:m,invalid:l.invalid,hover:j,focus:z,autofocus:g}),q=(0,ec.v6)({ref:y,id:f,role:"combobox",type:v,"aria-controls":null==W?void 0:W.id,"aria-expanded":w===ew.Open,"aria-activedescendant":(0,ei.y)(i,i.selectors.activeDescendantId),"aria-labelledby":D,"aria-describedby":L,"aria-autocomplete":"list",defaultValue:null!=(o=null!=(n=e.defaultValue)?n:void 0!==l.defaultValue?null==h?void 0:h(l.defaultValue):null)?o:l.defaultValue,disabled:m||void 0,autoFocus:g,onCompositionStart:R,onCompositionEnd:I,onKeyDown:P,onChange:k,onFocus:_,onBlur:A},B,N);return(0,ec.Ci)()({ourProps:q,theirProps:b,slot:$,defaultTag:"input",name:"Combobox.Input"})}),Button:ej,Label:ep.JU,Options:(0,ec.FX)(function(e,t){var n,o,i;let l=(0,u.useId)(),{id:r=`headlessui-combobox-options-${l}`,hold:s=!1,anchor:a,portal:c=!1,modal:d=!0,transition:f=!1,...p}=e,h=eP("Combobox.Options"),m=eA("Combobox.Options"),g=(0,Z.zn)(a);g&&(c=!0);let[v,b]=(0,Z.UF)(g),[x,y]=(0,u.useState)(null),w=(0,Z.G3)(),S=(0,J.P)(t,g?v:null,h.actions.setOptionsElement,y),[C,O,E,T,R]=(0,ei.y)(h,e=>[e.comboboxState,e.inputElement,e.buttonElement,e.optionsElement,e.activationTrigger]),I=(0,B.g)(O||E),M=(0,B.g)(T),k=(0,en.O_)(),[D,z]=(0,X.p)(f,x,null!==k?(k&en.Uw.Open)===en.Uw.Open:C===ew.Open);(0,L.O)(D,O,h.actions.closeCombobox);let j=!m.__demoMode&&d&&C===ew.Open;(0,U.K)(j,M);let N=!m.__demoMode&&d&&C===ew.Open;(0,A.v)(N,{allowed:(0,u.useCallback)(()=>[O,E,T],[O,E,T])});let W=!(0,ei.y)(h,h.selectors.didInputMove)&&D;(0,_.s)(()=>{var t;m.optionsPropsRef.current.static=null!=(t=e.static)&&t},[m.optionsPropsRef,e.static]),(0,_.s)(()=>{m.optionsPropsRef.current.hold=s},[m.optionsPropsRef,s]),function(e,{container:t,accept:n,walk:o}){let i=(0,u.useRef)(n),l=(0,u.useRef)(o);(0,u.useEffect)(()=>{i.current=n,l.current=o},[n,o]),(0,_.s)(()=>
4{if(!t||!e)return;let n=(0,V.TW)(t);if(!n)return;let o=i.current,r=l.current,s=Object.assign(e=>o(e),{acceptNode:o}),a=n.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,s,!1);for(;a.nextNode();)r(a.currentNode)},[t,e,i,l])}(C===ew.Open,{container:T,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let $=(0,ep.o2)([null==E?void 0:E.id]),q=(0,H._)({open:C===ew.Open,option:void 0}),Y=(0,F._)(()=>{h.actions.setActivationTrigger(eC.Pointer)}),K=(0,F._)(e=>{e.preventDefault(),h.actions.setActivationTrigger(eC.Pointer)}),G=(0,ec.v6)(g?w():{},{"aria-labelledby":$,role:"listbox","aria-multiselectable":m.mode===eS.Multi||void 0,id:r,ref:S,style:{...p.style,...b,"--input-width":(0,P.L)(D,O,!0).width,"--button-width":(0,P.L)(D,E,!0).width},onWheel:R===eC.Pointer?void 0:Y,onMouseDown:K,...(0,X.B)(z)}),Q=D&&C===ew.Closed&&!e.static,et=(0,ee.O)(Q,null==(n=m.virtual)?void 0:n.options),eo=(0,ee.O)(Q,m.value),el=(0,u.useCallback)(e=>m.compare(eo,e),[m.compare,eo]),er=(0,u.useMemo)(()=>{if(!m.virtual)return m;if(void 0===et)throw Error("Missing `options` in virtual mode");return et!==m.virtual.options?{...m,virtual:{...m.virtual,options:et}}:m},[m,et,null==(o=m.virtual)?void 0:o.options]);m.virtual&&Object.assign(p,{children:u.createElement(ek.Provider,{value:er},u.createElement(eD,{slot:q},p.children))});let es=(0,ec.Ci)(),ea=(0,u.useMemo)(()=>m.mode===eS.Multi?m:{...m,isSelected:el},[m,el]);return u.createElement(em.ZL,{enabled:!!c&&(e.static||D),ownerDocument:I},u.createElement(ek.Provider,{value:ea},es({ourProps:G,theirProps:{...p,children:u.createElement(ee.j,{freeze:Q},"function"==typeof p.children?null==(i=p.children)?void 0:i.call(p,q):p.children)},slot:q,defaultTag:"div",features:ez,visible:W,name:"Combobox.Options"}
4)))}),Option:(0,ec.FX)(function(e,t){var n,o,i;let l=eA("Combobox.Option"),r=eP("Combobox.Option"),s=(0,u.useId)(),{id:a=`headlessui-combobox-option-${s}`,value:c,disabled:d=null!=(i=null==(o=null==(n=l.virtual)?void 0:n.disabled)?void 0:o.call(n,c))&&i,order:f=null,...p}=e,[h]=(0,ei.y)(r,e=>[e.inputElement]),m=$(h),g=(0,ei.y)(r,(0,u.useCallback)(e=>r.selectors.isActive(e,c,a),[c,a])),v=l.isSelected(c),b=(0,u.useRef)(null),x=(0,D.Y)({disabled:d,value:c,domRef:b,order:f}),y=(0,u.useContext)(e_),w=(0,J.P)(t,b,y?y.measureElement:null),S=(0,F._)(()=>{r.actions.setIsTyping(!1),r.actions.onChange(c)});(0,_.s)(()=>r.actions.registerOption(a,x),[x,a]);let C=(0,ei.y)(r,(0,u.useCallback)(e=>r.selectors.shouldScrollIntoView(e,c,a),[c,a]));(0,_.s)(()=>{if(C)return(0,es.e)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=b.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[C,b]);let O=(0,F._)(e=>{e.preventDefault(),e.button===eh.w.Left&&(d||(S(),(0,eu.Fr)()||requestAnimationFrame(()=>m()),l.mode===eS.Single&&r.actions.closeCombobox()))}),E=(0,F._)(()=>{if(d)return r.actions.goToOption({focus:er.B.Nothing});let e=l.calculateIndex(c);r.actions.goToOption({focus:er.B.Specific,idx:e})}),T=(0,Y.J)(),R=(0,F._)(e=>T.update(e)),I=(0,F._)(e=>{if(!T.wasMoved(e)||d||g&&r.state.activationTrigger===eC.Pointer)return;let t=l.calculateIndex(c);r.actions.goToOption({focus:er.B.Specific,idx:t},eC.Pointer)}),M=(0,F._)(e=>{T.wasMoved(e)&&(d||g&&(l.optionsPropsRef.current.hold||r.state.activationTrigger===eC.Pointer&&r.actions.goToOption({focus:er.B.Nothing})))}),P=(0,H._)({active:g,focus:g,selected:v,disabled:d});return(0,ec.Ci)()({ourProps:{id:a,ref:w,role:"option",tabIndex:!0===d?void 0:-1,"aria-disabled":!0===d||void 0,"aria-selected":v,disabled:void 0,onMouseDown:O,onFocus:E,onPointerEnter:R,onMouseEnter:R,onPointerMove:I,onMouseMove:I,onPointerLeave:M,onMouseLeave:M},theirProps:p,slot:P,defaultTag:"div",name:"Combobox.Option"})})})},13500:(e,t,n)=>{n.d(t,{P:()=>r});var o=n(16560),i=n(24097),l=n(2429);function r(e,t,n){let[r,s]=(0,o.useState)(n),a=void 0!==e,u=(0,o.useRef)(a),c=(0,o.useRef)(!1),d=(0,o.useRef)(!1);return!a||u.current||c.current?a||!u.current||d.current||(d.current=!0,u.current=a,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.")):(c.current=!0,u.current=a,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.")),[a?e:r,(0,l._)(e=>(a||(0,i.flushSync)(()=>s(e)),null==t?void 0:t(e)))]}},24648:(e,t,n)=>{n.d(t,{JU:()=>m,b0:()=>h,o2:()=>p});var o=n(16560),i=n(2429),l=n(70943),r=n(13835),s=n(59113),a=n(99914),u=n(7227),c=n(59678),d=n(92602);let f=(0,o.createContext)(null);function p(e){var t,n,i;let l=null!=(n=null==(t=(0,o.useContext)(f))?void 0:t.value)?n:void 0;return(null!=(i=null==e?void 0:e.length)?i:0)>0?[l,...e].filter(Boolean).join(" "):l}function h({inherit:e=!1}={}){let t=p(),[n,l]=(0,o.useState)([]),r=e?[t,...n].filter(Boolean):n;return[r.length>0?r.join(" "):void 0,(0,o.useMemo)(()=>function(e){let t=(0,i._)(e=>(l(t=>[...t,e]),()=>l(t=>{let n=t.slice(),o=n.indexOf(e);return -1!==o&&n.splice(o,1),n}))),n=(0,o.useMemo)(()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value}),[t,e.slot,e.name,e.props,e.value]);return o.createElement(f.Provider,{value:n},e.children)},[l])]}f.displayName="LabelContext";let m=Object.assign((0,d.FX)(function(e,t){var n;let p=(0,o.useId)(),h=function e(){let t=(0,o.useContext)(f);if(null===t){let t=Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),m=(0,u.q)(),g=(0,a._)(),{id:v=`headlessui-label-${p}`,htmlFor:b=null!=m?m:null==(n=h.props)?void 0:n.htmlFor,passive:x=!1,...y}=e,w=(0,s.P)(t);(0,l.s)(()=>h.register(v),[v,h.register]);let S=(0,i._)(e=>{let t=e.currentTarget;if(!(e.target!==e.currentTarget&&c.H5(e.target))&&(c.kS(t)&&e.preventDefault(),h.props&&"onClick"in h.props&&"function"==typeof h.props.onClick&&h.props.onClick(e),c.kS(t))){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(c.A3(e)&&("file"===e.type||"radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}}),C=(0,r._)({...h.slot,disabled:g||!1}),O={ref:w,...h.props,id:v,htmlFor:b,onClick:S};return x&&("onClick"in O&&(delete O.htmlFor,delete O.onClick),"onClick"in y&&delete y.onClick),(0,d.Ci)()({ourProps:O,theirProps:y,slot:C,defaultTag:b?"label":"div",name:h.name||"Label"})}),{})}
4,29654:(e,t,n)=>{n.d(t,{ll:()=>T,rD:()=>k,__:()=>R,UU:()=>P,cY:()=>I,BN:()=>M,Ej:()=>F});var o=n(89929);function i(e,t,n){let i,{reference:l,floating:r}=e,s=(0,o.TV)(t),a=(0,o.Dz)(t),u=(0,o.sq)(a),c=(0,o.C0)(t),d="y"===s,f=l.x+l.width/2-r.width/2,p=l.y+l.height/2-r.height/2,h=l[u]/2-r[u]/2;switch(c){case"top":i={x:f,y:l.y-r.height};break;case"bottom":i={x:f,y:l.y+l.height};break;case"right":i={x:l.x+l.width,y:p};break;case"left":i={x:l.x-r.width,y:p};break;default:i={x:l.x,y:l.y}}switch((0,o.Sg)(t)){case"start":i[a]-=h*(n&&d?-1:1);break;case"end":i[a]+=h*(n&&d?-1:1)}return i}async function l(e,t){var n;void 0===t&&(t={});let{x:i,y:l,platform:r,rects:s,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=(0,o._3)(t,e),m=(0,o.nI)(h),g=a[p?"floating"===f?"reference":"floating":f],v=(0,o.B1)(await r.getClippingRect({element:null==(n=await (null==r.isElement?void 0:r.isElement(g)))||n?g:g.contextElement||await (null==r.getDocumentElement?void 0:r.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:u})),b="floating"===f?{x:i,y:l,width:s.floating.width,height:s.floating.height}:s.reference,x=await (null==r.getOffsetParent?void 0:r.getOffsetParent(a.floating)),y=await (null==r.isElement?void 0:r.isElement(x))&&await (null==r.getScale?void 0:r.getScale(x))||{x:1,y:1},w=(0,o.B1)(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:x,strategy:u}):b);return{top:(v.top-w.top+m.top)/y.y,bottom:(w.bottom-v.bottom+m.bottom)/y.y,left:(v.left-w.left+m.left)/y.x,right:(w.right-v.right+m.right)/y.x}}let r=async(e,t,n)=>{let{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:a}=n,u=s.filter(Boolean),c=await (null==a.isRTL?void 0:a.isRTL(t)),d=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:p}=i(d,o,c),h=o,m={},g=0;for(let n=0;n<u.length;n++){var v;let{name:s,fn:b}=u[n],{x:x,y:y,data:w,reset:S}=await b({x:f,y:p,initialPlacement:o,placement:h,strategy:r,middlewareData:m,rects:d,platform:{...a,detectOverflow:null!=(v=a.detectOverflow)?v:l},elements:{reference:e,floating:t}});f=null!=x?x:f,p=null!=y?y:p,m={...m,[s]:{...m[s],...w}},S&&g<=50&&(g++,"object"==typeof S&&(S.placement&&(h=S.placement),S.rects&&(d=!0===S.rects?await a.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:f,y:p}=i(d,h,c)),n=-1)}return{x:f,y:p,placement:h,strategy:r,middlewareData:m}},s=new Set(["left","top"]);async function a(e,t){let{placement:n,platform:i,elements:l}=e,r=await (null==i.isRTL?void 0:i.isRTL(l.floating)),a=(0,o.C0)(n),u=(0,o.Sg)(n),c="y"===(0,o.TV)(n),d=s.has(a)?-1:1,f=r&&c?-1:1,p=(0,o._3)(t,e),{mainAxis:h,crossAxis:m,alignmentAxis:g}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return u&&"number"==typeof g&&(m="end"===u?-1*g:g),c?{x:m*f,y:h*d}:{x:h*d,y:m*f}}var u=n(73447);function c(e){let t=(0,u.L9)(e),n=parseFloat(t.width)||0,i=parseFloat(t.height)||0,l=(0,u.sb)(e),r=l?e.offsetWidth:n,s=l?e.offsetHeight:i,a=(0,o.LI)(n)!==r||(0,o.LI)(i)!==s;return a&&(n=r,i=s),{width:n,height:i,$:a}}function d(e){return(0,u.vq)(e)?e:e.contextElement}function f(e){let t=d(e);if(!(0,u.sb)(t))return(0,o.Jx)(1);let n=t.getBoundingClientRect(),{width:i,height:l,$:r}=c(t),s=(r?(0,o.LI)(n.width):n.width)/i,a=(r?(0,o.LI)(n.height):n.height)/l;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}let p=(0,o.Jx)(0);function h(e){let t=(0,u.zk)(e);return(0,u.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:p}function m(e,t,n,i){var l;void 0===t&&(t=!1),void 0===n&&(n=!1);let r=e.getBoundingClientRect(),s=d(e),a=(0,o.Jx)(1);t&&(i?(0,u.vq)(i)&&(a=f(i)):a=f(e));let c=(void 0===(l=n)&&(l=!1),i&&(!l||i===(0,u.zk)(s))&&l)?h(s):(0,o.Jx)(0),p=(r.left+c.x)/a.x,m=(r.top+c.y)/a.y,g=r.width/a.x,v=r.height/a.y;if(s){let e=(0,u.zk)(s),t=i&&(0,u.vq)(i)?(0,u.zk)(i):i,n=e,o=(0,u._m)(n);for(;o&&i&&t!==n;){let e=f(o),t=o.getBoundingClientRect(),i=(0,u.L9)(o),l=t.left+(o.clientLeft+parseFloat(i.paddingLeft))*e.x,r=t.top+(o.clientTop+parseFloat(i.paddingTop))*e.y;
4p*=e.x,m*=e.y,g*=e.x,v*=e.y,p+=l,m+=r,n=(0,u.zk)(o),o=(0,u._m)(n)}}return(0,o.B1)({width:g,height:v,x:p,y:m})}function g(e,t){let n=(0,u.CP)(e).scrollLeft;return t?t.left+n:m((0,u.ep)(e)).left+n}function v(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-g(e,n),y:n.top+t.scrollTop}}let b=new Set(["absolute","fixed"]);function x(e,t,n){var i;let l;if("viewport"===t)l=function(e,t){let n=(0,u.zk)(e),o=(0,u.ep)(e),i=n.visualViewport,l=o.clientWidth,r=o.clientHeight,s=0,a=0;if(i){l=i.width,r=i.height;let e=(0,u.Tc)();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,a=i.offsetTop)}let c=g(o);if(c<=0){let e=o.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,r=Math.abs(o.clientWidth-t.clientWidth-i);r<=25&&(l-=r)}else c<=25&&(l+=c);return{width:l,height:r,x:s,y:a}}(e,n);else if("document"===t){let t,n,r,s,a,c,d;i=(0,u.ep)(e),t=(0,u.ep)(i),n=(0,u.CP)(i),r=i.ownerDocument.body,s=(0,o.T9)(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=(0,o.T9)(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),c=-n.scrollLeft+g(i),d=-n.scrollTop,"rtl"===(0,u.L9)(r).direction&&(c+=(0,o.T9)(t.clientWidth,r.clientWidth)-s),l={width:s,height:a,x:c,y:d}}else if((0,u.vq)(t)){let e,i,r,s,a,c;i=(e=m(t,!0,"fixed"===n)).top+t.clientTop,r=e.left+t.clientLeft,s=(0,u.sb)(t)?f(t):(0,o.Jx)(1),a=t.clientWidth*s.x,c=t.clientHeight*s.y,l={width:a,height:c,x:r*s.x,y:i*s.y}}else{let n=h(e);l={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return(0,o.B1)(l)}function y(e){return"static"===(0,u.L9)(e).position}function w(e,t){if(!(0,u.sb)(e)||"fixed"===(0,u.L9)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,u.ep)(e)===n&&(n=n.ownerDocument.body),n}function S(e,t){let n=(0,u.zk)(e);if((0,u.Tf)(e))return n;if(!(0,u.sb)(e)){let t=(0,u.$4)(e);for(;t&&!(0,u.eu)(t);){if((0,u.vq)(t)&&!y(t))return t;t=(0,u.$4)(t)}return n}let o=w(e,t);for(;o&&(0,u.Lv)(o)&&y(o);)o=w(o,t);return o&&(0,u.eu)(o)&&y(o)&&!(0,u.sQ)(o)?n:o||(0,u.gJ)(e)||n}let C=async function(e){let t=this.getOffsetParent||S,n=this.getDimensions,i=await n(e.floating);return{reference:function(e,t,n){let i=(0,u.sb)(t),l=(0,u.ep)(t),r="fixed"===n,s=m(e,!0,r,t),a={scrollLeft:0,scrollTop:0},c=(0,o.Jx)(0);if(i||!i&&!r)if(("body"!==(0,u.mq)(t)||(0,u.ZU)(l))&&(a=(0,u.CP)(t)),i){let e=m(t,!0,r,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else l&&(c.x=g(l));r&&!i&&l&&(c.x=g(l));let d=!l||i||r?(0,o.Jx)(0):v(l,a);return{x:s.left+a.scrollLeft-c.x-d.x,y:s.top+a.scrollTop-c.y-d.y,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},O={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:i,strategy:l}=e,r="fixed"===l,s=(0,u.ep)(i),a=!!t&&(0,u.Tf)(t.floating);if(i===s||a&&r)return n;let c={scrollLeft:0,scrollTop:0},d=(0,o.Jx)(1),p=(0,o.Jx)(0),h=(0,u.sb)(i);if((h||!h&&!r)&&(("body"!==(0,u.mq)(i)||(0,u.ZU)(s))&&(c=(0,u.CP)(i)),(0,u.sb)(i))){let e=m(i);d=f(i),p.x=e.x+i.clientLeft,p.y=e.y+i.clientTop}let g=!s||h||r?(0,o.Jx)(0):v(s,c);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+p.x+g.x,y:n.y*d.y-c.scrollTop*d.y+p.y+g.y}},getDocumentElement:u.ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i,strategy:l}=e,r=[..."clippingAncestors"===n?(0,u.Tf)(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let o=(0,u.v9)(e,[],!1).filter(e=>(0,u.vq)(e)&&"body"!==(0,u.mq)(e)),i=null,l="fixed"===(0,u.L9)(e).position,r=l?(0,u.$4)(e):e;for(;(0,u.vq)(r)&&!(0,u.eu)(r);){let t=(0,u.L9)(r),n=(0,u.sQ)(r);n||"fixed"!==t.position||(i=null),(l?!n&&!i:!n&&"static"===t.position&&!!i&&b.has(i.position)||(0,u.ZU)(r)&&!n&&function e(t,n){let o=(0,u.$4)(t);return!(o===n||!(0,u.vq)(o)||(0,u.eu)(o))&&("fixed"===(0,u.L9)(o).position||e(o,n))}(e,r))?o=o.filter(e=>e!==r):i=t,r=(0,u.$4)(r)}return t.set(e,o),o}(t,this._c):[].concat(n),i],s=r[0],a=r.reduce((e,n)=>{let i=x(t,n,l);return e.top=(0,o.T9)(i.top,e.top),e.right=(0,o.jk)(i.right,e.right),e.bottom=(0,o.jk)(i.bottom,e.bottom),e.left=(0,o.T9)(i.left,e.left),e},x(t,s,l));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:S,getElementRects:C,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=c(e);return{width:t,height:n}},getScale:f,isElement:u.vq,isRTL:function(e){return"rtl"===(0,u.L9)(e).direction}};function E(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function T(e,t,n,i){let l;void 0===i&&(i={});let{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:f=!1}=i,p=d(e),h=r||s?[...p?(0,u.v9)(p):[],...(0,u.v9)(t)]:[];
4h.forEach(e=>{r&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let g=p&&c?function(e,t){let n,i=null,l=(0,u.ep)(e);function r(){var e;clearTimeout(n),null==(e=i)||e.disconnect(),i=null}return!function s(a,u){void 0===a&&(a=!1),void 0===u&&(u=1),r();let c=e.getBoundingClientRect(),{left:d,top:f,width:p,height:h}=c;if(a||t(),!p||!h)return;let m={rootMargin:-(0,o.RI)(f)+"px "+-(0,o.RI)(l.clientWidth-(d+p))+"px "+-(0,o.RI)(l.clientHeight-(f+h))+"px "+-(0,o.RI)(d)+"px",threshold:(0,o.T9)(0,(0,o.jk)(1,u))||1},g=!0;function v(t){let o=t[0].intersectionRatio;if(o!==u){if(!g)return s();o?s(!1,o):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==o||E(c,e.getBoundingClientRect())||s(),g=!1}try{i=new IntersectionObserver(v,{...m,root:l.ownerDocument})}catch(e){i=new IntersectionObserver(v,m)}i.observe(e)}(!0),r}(p,n):null,v=-1,b=null;a&&(b=new ResizeObserver(e=>{let[o]=e;o&&o.target===p&&b&&(b.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=b)||e.observe(t)})),n()}),p&&!f&&b.observe(p),b.observe(t));let x=f?m(e):null;return f&&function t(){let o=m(e);x&&!E(x,o)&&n(),x=o,l=requestAnimationFrame(t)}(),n(),()=>{var e;h.forEach(e=>{r&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==g||g(),null==(e=b)||e.disconnect(),b=null,f&&cancelAnimationFrame(l)}}let R=l,I=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;let{x:i,y:l,placement:r,middlewareData:s}=t,u=await a(t,e);return r===(null==(n=s.offset)?void 0:n.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:i+u.x,y:l+u.y,data:{...u,placement:r}}}}},M=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:i,placement:l,platform:r}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=(0,o._3)(e,t),d={x:n,y:i},f=await r.detectOverflow(t,c),p=(0,o.TV)((0,o.C0)(l)),h=(0,o.PG)(p),m=d[h],g=d[p];if(s){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",n=m+f[e],i=m-f[t];m=(0,o.qE)(n,m,i)}
4if(a){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=g+f[e],i=g-f[t];g=(0,o.qE)(n,g,i)}let v=u.fn({...t,[h]:m,[p]:g});return{...v,data:{x:v.x-n,y:v.y-i,enabled:{[h]:s,[p]:a}}}}}},P=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,i,l,r,s;let{placement:a,middlewareData:u,rects:c,initialPlacement:d,platform:f,elements:p}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:x=!0,...y}=(0,o._3)(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let w=(0,o.C0)(a),S=(0,o.TV)(d),C=(0,o.C0)(d)===d,O=await (null==f.isRTL?void 0:f.isRTL(p.floating)),E=g||(C||!x?[(0,o.bV)(d)]:(0,o.WJ)(d)),T="none"!==b;!g&&T&&E.push(...(0,o.lP)(d,x,b,O));let R=[d,...E],I=await f.detectOverflow(t,y),M=[],P=(null==(i=u.flip)?void 0:i.overflows)||[];if(h&&M.push(I[w]),m){let e=(0,o.w7)(a,c,O);M.push(I[e[0]],I[e[1]])}if(P=[...P,{placement:a,overflows:M}],!M.every(e=>e<=0)){let e=((null==(l=u.flip)?void 0:l.index)||0)+1,t=R[e];if(t&&("alignment"!==m||S===(0,o.TV)(t)||P.every(e=>(0,o.TV)(e.placement)!==S||e.overflows[0]>0)))return{data:{index:e,overflows:P},reset:{placement:t}};let n=null==(r=P.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:r.placement;if(!n)switch(v){case"bestFit":{let e=null==(s=P.filter(e=>{if(T){let t=(0,o.TV)(e.placement);return t===S||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:s[0];e&&(n=e);break}case"initialPlacement":n=d}if(a!==n)return{reset:{placement:n}}}return{}}}},F=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,i;let l,r,{placement:s,rects:a,platform:u,elements:c}=t,{apply:d=()=>{},...f}=(0,o._3)(e,t),p=await u.detectOverflow(t,f),h=(0,o.C0)(s),m=(0,o.Sg)(s),g="y"===(0,o.TV)(s),{width:v,height:b}=a.floating;"top"===h||"bottom"===h?(l=h,r=m===(await (null==u.isRTL?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(r=h,l="end"===m?"top":"bottom");let x=b-p.top-p.bottom,y=v-p.left-p.right,w=(0,o.jk)(b-p[l],x),S=(0,o.jk)(v-p[r],y),C=!t.middlewareData.shift,O=w,E=S;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(E=y),null!=(i=t.middlewareData.shift)&&i.enabled.y&&(O=x),C&&!m){let e=(0,o.T9)(p.left,0),t=(0,o.T9)(p.right,0),n=(0,o.T9)(p.top,0),i=(0,o.T9)(p.bottom,0);g?E=v-2*(0!==e||0!==t?e+t:(0,o.T9)(p.left,p.right)):O=b-2*(0!==n||0!==i?n+i:(0,o.T9)(p.top,p.bottom))}await d({...t,availableWidth:E,availableHeight:O});let T=await u.getDimensions(c.floating);return v!==T.width||b!==T.height?{reset:{rects:!0}}:{}}}},k=(e,t,n)=>{let o=new Map,i={platform:O,...n},l={...i.platform,_c:o};return r(e,t,{...i,platform:l})}},31438:(e,t,n)=>{let o;n.d(t,{B:()=>i,X:()=>l});var i=((o=i||{})[o.First=0]="First",o[o.Previous=1]="Previous",o[o.Next=2]="Next",o[o.Last=3]="Last",o[o.Specific=4]="Specific",o[o.Nothing=5]="Nothing",o);function l(e,t){let n=t.resolveItems();if(n.length<=0)return null;let o=t.resolveActiveIndex(),i=null!=o?o:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return o;case 1:-1===i&&(i=n.length);for(let e=i-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return o;case 2:for(let e=i+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return o;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return o;case 4:for(let o=0;o<n.length;++o)if(t.resolveId(n[o],o,n)===e.id)return o;return o;case 5:return null;default:throw Error("Unexpected object: "+e)}}},42180:(e,t,n)=>{n.d(t,{G3:()=>g,St:()=>b,TI:()=>m,UF:()=>v,Xc:()=>h,zn:()=>p});var o=n(23165),i=n(50495),l=n(29654),r=n(16560),s=n(6366),a=n(2429),u=n(70943),c=n(59678);let d=(0,r.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});d.displayName="FloatingContext";let f=(0,r.createContext)(null);function p(e){return(0,r.useMemo)(()=>e?"string"==typeof e?{to:e}:e:null,[e])}function h(){return(0,r.useContext)(d).setReference}function m(){return(0,r.useContext)(d).getReferenceProps}function g(){let{getFloatingProps:e,slot:t}=(0,r.useContext)(d);return(0,r.useCallback)((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function v(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=(0,r.useContext)(f),n=(0,r.useMemo)(()=>e,[JSON.stringify(e,(e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t})]);(0,u.s)(()=>{null==t||t(null!=n?n:null)},[t,n]);let o=(0,r.useContext)(d);return(0,r.useMemo)(()=>[o.setFloating,e?o.styles:{}],[o.setFloating,e,o.styles])}function b({children:e,enabled:t=!0}){var n,s,p,h,m,g;let v,y,w,[S,C]=(0,r.useState)(null),[O,E]=(0,r.useState)(0),T=(0,r.useRef)(null),[R,I]=(0,r.useState)(null);n=R,(0,u.s)(()=>
4{if(!n)return;let e=new MutationObserver(()=>{let e=window.getComputedStyle(n).maxHeight,t=parseFloat(e);if(isNaN(t))return;let o=parseInt(e);isNaN(o)||t!==o&&(n.style.maxHeight=`${Math.ceil(t)}px`)});return e.observe(n,{attributes:!0,attributeFilter:["style"]}),()=>{e.disconnect()}},[n]);let M=t&&null!==S&&null!==R,{to:P="bottom",gap:F=0,offset:k=0,padding:A=0,inner:_}=(s=S,p=R,v=x(null!=(h=null==s?void 0:s.gap)?h:"var(--anchor-gap, 0)",p),y=x(null!=(m=null==s?void 0:s.offset)?m:"var(--anchor-offset, 0)",p),w=x(null!=(g=null==s?void 0:s.padding)?g:"var(--anchor-padding, 0)",p),{...s,gap:v,offset:y,padding:w}),[D,L="center"]=P.split(" ");(0,u.s)(()=>{M&&E(0)},[M]);let{refs:z,floatingStyles:B,context:j}=(0,o.we)({open:M,placement:"selection"===D?"center"===L?"bottom":`bottom-${L}`:"center"===L?`${D}`:`${D}-${L}`,strategy:"absolute",transform:!1,middleware:[(0,i.cY)({mainAxis:"selection"===D?0:F,crossAxis:k}),(0,i.BN)({padding:A}),"selection"!==D&&(0,i.UU)({padding:A}),"selection"===D&&_?(0,o.vW)({..._,padding:A,overflowRef:T,offset:O,minItemsVisible:4,referenceOverflowThreshold:A,onFallbackChange(e){var t,n;if(!e)return;let o=j.elements.floating;if(!o)return;let i=parseFloat(getComputedStyle(o).scrollPaddingBottom)||0,l=Math.min(4,o.childElementCount),r=0,s=0;for(let e of null!=(n=null==(t=j.elements.floating)?void 0:t.childNodes)?n:[])if(c.sb(e)){let t=e.offsetTop,n=t+e.clientHeight+i,a=o.scrollTop,u=a+o.clientHeight;if(t>=a&&n<=u)l--;else{s=Math.max(0,Math.min(n,u)-Math.max(t,a)),r=e.clientHeight;break}}l>=1&&E(e=>{let t=r*l-s+i;return e>=t?e:t})}}):null,(0,i.Ej)({padding:A,apply({availableWidth:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}})].filter(Boolean),whileElementsMounted:l.ll}),[N=D,V=L]=j.placement.split("-");"selection"===D&&(N="selection");let W=(0,r.useMemo)(()=>({anchor:[N,V].filter(Boolean).join(" ")}),[N,V]),$=(0,o.Zx)(j,{overflowRef:T,onChange:E}),{getReferenceProps:q,getFloatingProps:U}=(0,o.bv)([$]),H=(0,a._)(e=>{I(e),z.setFloating(e)});return r.createElement(f.Provider,{value:C},r.createElement(d.Provider,{value:{setFloating:H,setReference:z.setReference,styles:B,getReferenceProps:q,getFloatingProps:U,slot:W}},e))}function x(e,t,n){let o=(0,s.L)(),i=(0,a._)((e,t)=>{if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];let i=y(e,t);return[i,n=>{let l=function e(t){let n=/var\((.*)\)/.exec(t);if(n){let t=n[1].indexOf(",");if(-1===t)return[n[1]];let o=n[1].slice(0,t).trim(),i=n[1].slice(t+1).trim();return i?[o,...e(i)]:[o]}return[]}(e);{let r=l.map(e=>window.getComputedStyle(t).getPropertyValue(e));o.requestAnimationFrame(function s(){o.nextFrame(s);let a=!1;for(let[e,n]of l.entries()){let o=window.getComputedStyle(t).getPropertyValue(n);if(r[e]!==o){r[e]=o,a=!0;break}}if(!a)return;let u=y(e,t);i!==u&&(n(u),i=u)})}return o.dispose}]}return[n,null]}),l=(0,r.useMemo)(()=>i(e,t)[0],[e,t]),[c=l,d]=(0,r.useState)();return(0,u.s)(()=>{let[n,o]=i(e,t);if(d(n),o)return o(d)},[e,t]),c}function y(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let o=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),o}f.displayName="PlacementContext"},48082:(e,t,n)=>{n.d(t,{CL:()=>d});var o=n(16560),i=n(24097),l=n(6366),r=n(60388),s=n(92602),a=n(68238);let u=(0,o.createContext)(null);function c({children:e}){let t=(0,o.useContext)(u);if(!t)return o.createElement(o.Fragment,null,e);let{target:n}=t;return n?(0,i.createPortal)(o.createElement(o.Fragment,null,e),n):null}function d({data:e,form:t,disabled:n,onReset:i,overrides:u}){let[p,h]=(0,o.useState)(null),m=(0,l.L)();return(0,o.useEffect)(()=>{if(i&&p)return m.addEventListener(p,"reset",i)},[p,t,i]),o.createElement(c,null,o.createElement(f,{setForm:h,formId:t}),(0,r.h)(e).map(([e,i])=>o.createElement(a.j,{features:a.u.Hidden,...(0,s.oE)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:e,value:i,...u})})))}function f({setForm:e,formId:t}){return(0,o.useEffect)(()=>
4{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:o.createElement(a.j,{features:a.u.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let n=t.closest("form");n&&e(n)}})}},50495:(e,t,n)=>{n.d(t,{BN:()=>p,Ej:()=>m,UU:()=>h,cY:()=>f,we:()=>d});var o=n(29654),i=n(16560),l=n(24097),r="u">typeof document?i.useLayoutEffect:function(){};function s(e,t){let n,o,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(o=n;0!=o--;)if(!s(e[o],t[o]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(o=n;0!=o--;)if(!({}).hasOwnProperty.call(t,i[o]))return!1;for(o=n;0!=o--;){let n=i[o];if(("_owner"!==n||!e.$$typeof)&&!s(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function a(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u(e,t){let n=a(e);return Math.round(t*n)/n}function c(e){let t=i.useRef(e);return r(()=>{t.current=e}),t}function d(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:d=[],platform:f,elements:{reference:p,floating:h}={},transform:m=!0,whileElementsMounted:g,open:v}=e,[b,x]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[y,w]=i.useState(d);s(y,d)||w(d);let[S,C]=i.useState(null),[O,E]=i.useState(null),T=i.useCallback(e=>{e!==P.current&&(P.current=e,C(e))},[]),R=i.useCallback(e=>{e!==F.current&&(F.current=e,E(e))},[]),I=p||S,M=h||O,P=i.useRef(null),F=i.useRef(null),k=i.useRef(b),A=null!=g,_=c(g),D=c(f),L=c(v),z=i.useCallback(()=>{if(!P.current||!F.current)return;let e={placement:t,strategy:n,middleware:y};D.current&&(e.platform=D.current),(0,o.rD)(P.current,F.current,e).then(e=>{let t={...e,isPositioned:!1!==L.current};B.current&&!s(k.current,t)&&(k.current=t,l.flushSync(()=>{x(t)}))})},[y,t,n,D,L]);r(()=>{!1===v&&k.current.isPositioned&&(k.current.isPositioned=!1,x(e=>({...e,isPositioned:!1})))},[v]);let B=i.useRef(!1);r(()=>(B.current=!0,()=>{B.current=!1}),[]),r(()=>{if(I&&(P.current=I),M&&(F.current=M),I&&M){if(_.current)return _.current(I,M,z);z()}},[I,M,z,_,A]);let j=i.useMemo(()=>({reference:P,floating:F,setReference:T,setFloating:R}),[T,R]),N=i.useMemo(()=>({reference:I,floating:M}),[I,M]),V=i.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=u(N.floating,b.x),o=u(N.floating,b.y);return m?{...e,transform:"translate("+t+"px, "+o+"px)",...a(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:o}},[n,m,N.floating,b.x,b.y]);return i.useMemo(()=>({...b,update:z,refs:j,elements:N,floatingStyles:V}),[b,z,j,N,V])}let f=(e,t)=>({...(0,o.cY)(e),options:[e,t]}),p=(e,t)=>({...(0,o.BN)(e),options:[e,t]}),h=(e,t)=>({...(0,o.UU)(e),options:[e,t]}),m=(e,t)=>({...(0,o.Ej)(e),options:[e,t]})},50595:(e,t,n)=>{n.d(t,{$t:()=>o});function o(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}},52283:(e,t,n)=>{n.d(t,{J:()=>l});var o=n(16560);function i(e){return[e.screenX,e.screenY]}function l(){let e=(0,o.useRef)([-1,-1]);return{wasMoved(t){let n=i(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=i(t)}}}},52532:(e,t,n)=>{n.d(t,{O:()=>s});var o=n(16560),i=n(85604),l=n(8013),r=n(2429);function s(e){let t=(0,o.useRef)(null);return{onPointerDown:(0,r._)(n=>{t.current=n.pointerType,(0,l.l)(n.currentTarget)||"mouse"!==n.pointerType||n.button!==i.w.Left||(n.preventDefault(),e(n))}),onClick:(0,r._)(n=>{"mouse"!==t.current&&((0,l.l)(n.currentTarget)||e(n))})}}},55328:(e,t,n)=>{n.d(t,{K:()=>i});var o=n(16560);function i(e){let[t]=(0,o.useState)(e);return t}},60388:(e,t,n)=>{n.d(t,{h:()=>function e(t={},n=null,l=[]){for(let[r,s]of Object.entries(t))!function t(n,l,r){if(Array.isArray(r))for(let[e,o]of r.entries())t(n,i(l,e.toString()),o);else r instanceof Date?n.push([l,r.toISOString()]):"boolean"==typeof r?n.push([l,r?"1":"0"]):"string"==typeof r?n.push([l,r]):"number"==typeof r?n.push([l,`${r}`]):null==r?n.push([l,""]):function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(r)&&!(0,o.isValidElement)(r)&&e(r,l,n)}(l,i(n,r),s);return l},q:()=>l});var o=n(16560);function i(e,t){return e?e+"["+t+"]":t}function l(e){var t,n;let o=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(o){for(let t of o.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(n=o.requestSubmit)||n.call(o)}}},73447:(e,t,n)=>{function o(){return"u">typeof window}function i(e){return s(e)?(e.nodeName||"").toLowerCase():"#document"}function l(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function r(e){var t;return null==(t=(s(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function s(e){return!!o()&&(e instanceof Node||e instanceof l(e).Node)}function a(e){return!!o()&&(e instanceof Element||e instanceof l(e).Element)}function u(e){return!!o()&&(e instanceof HTMLElement||e instanceof l(e).HTMLElement)}function c(e){return!(!o()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof l(e).ShadowRoot)}n.d(t,{$4:()=>R,CP:()=>T,L9:()=>E,Lv:()=>h,Tc:()=>S,Tf:()=>g,ZU:()=>f,_m:()=>I,ep:()=>r,eu:()=>O,gJ:()=>w,mq:()=>i,sQ:()=>y,sb:()=>u,v9:()=>function e(t,n,o){var i;void 0===n&&(n=[]),void 0===o&&(o=!0);let r=function e(t){let n=R(t);return O(n)?t.ownerDocument?t.ownerDocument.body:t.body:u(n)&&f(n)?n:e(n)}(t),s=r===(null==(i=t.ownerDocument)?void 0:i.body),a=l(r);if(s){let t=I(a);
4return n.concat(a,a.visualViewport||[],f(r)?r:[],t&&o?e(t):[])}return n.concat(r,e(r,[],o))},vq:()=>a,zk:()=>l});let d=new Set(["inline","contents"]);function f(e){let{overflow:t,overflowX:n,overflowY:o,display:i}=E(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!d.has(i)}let p=new Set(["table","td","th"]);function h(e){return p.has(i(e))}let m=[":popover-open",":modal"];function g(e){return m.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let v=["transform","translate","scale","rotate","perspective"],b=["transform","translate","scale","rotate","perspective","filter"],x=["paint","layout","strict","content"];function y(e){let t=S(),n=a(e)?E(e):e;return v.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||b.some(e=>(n.willChange||"").includes(e))||x.some(e=>(n.contain||"").includes(e))}function w(e){let t=R(e);for(;u(t)&&!O(t);){if(y(t))return t;if(g(t))break;t=R(t)}return null}function S(){return!("u"<typeof CSS)&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let C=new Set(["html","body","#document"]);function O(e){return C.has(i(e))}function E(e){return l(e).getComputedStyle(e)}function T(e){return a(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function R(e){if("html"===i(e))return e;let t=e.assignedSlot||e.parentNode||c(e)&&e.host||r(e);return c(t)?t.host:t}function I(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}},74540:(e,t,n)=>{n.d(t,{Fc:()=>i,JO:()=>l,nY:()=>r});var o=n(65821);let i={Idle:{kind:"Idle"},Tracked:e=>({kind:"Tracked",position:e}),Moved:{kind:"Moved"}};function l(e){let t=e.getBoundingClientRect();return`${t.x},${t.y}`}function r(e,t,n){let i=(0,o.e)();if("Tracked"===t.kind){let o=function(){r!==l(e)&&(i.dispose(),n())},{position:r}=t,s=new ResizeObserver(o);s.observe(e),i.add(()=>s.disconnect()),i.addEventListener(window,"scroll",o,{passive:!0}),i.addEventListener(window,"resize",o)}return()=>i.dispose()}},85604:(e,t,n)=>{let o;n.d(t,{w:()=>i});var i=((o=i||{})[o.Left=0]="Left",o[o.Right=2]="Right",o)},88333:(e,t,n)=>{n.d(t,{L:()=>s});var o=n(16560),i=n(65821),l=n(70943);function r(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function s(e,t,n=!1){let[a,u]=(0,o.useState)(()=>r(t));return(0,l.s)(()=>{if(!t||!e)return;let n=(0,i.e)();return n.requestAnimationFrame(function e(){n.requestAnimationFrame(e),u(e=>{let n=r(t);return n.width===e.width&&n.height===e.height?e:n})}),()=>{n.dispose()}},[t,e]),n?{width:`${a.width}px`,height:`${a.height}px`}:a}},89929:(e,t,n)=>{n.d(t,{B1:()=>M,C0:()=>f,Dz:()=>b,Jx:()=>s,LI:()=>l,PG:()=>h,RI:()=>r,Sg:()=>p,T9:()=>i,TV:()=>v,WJ:()=>y,_3:()=>d,bV:()=>R,jk:()=>o,lP:()=>T,nI:()=>I,qE:()=>c,sq:()=>m,w7:()=>x});let o=Math.min,i=Math.max,l=Math.round,r=Math.floor,s=e=>({x:e,y:e}),a={left:"right",right:"left",bottom:"top",top:"bottom"},u={start:"end",end:"start"};function c(e,t,n){return i(e,o(t,n))}function d(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}let g=new Set(["top","bottom"]);function v(e){return g.has(f(e))?"y":"x"}function b(e){return h(v(e))}function x(e,t,n){void 0===n&&(n=!1);let o=p(e),i=b(e),l=m(i),r="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[l]>t.floating[l]&&(r=R(r)),[r,R(r)]}function y(e){let t=R(e);return[w(e),t,w(t)]}function w(e){return e.replace(/start|end/g,e=>u[e])}let S=["left","right"],C=["right","left"],O=["top","bottom"],E=["bottom","top"];function T(e,t,n,o){let i=p(e),l=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?C:S;return t?S:C;case"left":case"right":return t?O:E;default:return[]}}(f(e),"start"===n,o);return i&&(l=l.map(e=>e+"-"+i),t&&(l=l.concat(l.map(w)))),l}function R(e){return e.replace(/left|right|bottom|top/g,e=>a[e])}function I(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function M(e){let{x:t,y:n,width:o,height:i}=e;return{width:o,height:i,top:n,left:t,right:t+o,bottom:n+i,x:t,y:n}}},94270:(e,t,n)=>{let o;n.d(t,{r:()=>a,s:()=>u});var i=n(16560),l=n(59678),r=n(30371),s=((o=s||{})[o.Ignore=0]="Ignore",o[o.Select=1]="Select",o[o.Close=2]="Close",o);let a={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}};function u(e,{trigger:t,action:n,close:o,select:s}){let a=(0,i.useRef)(null),c=(0,i.useRef)(null),d=(0,i.useRef)(null);(0,r.z)(e&&null!==t,"pointerdown",e=>{l.Ll(null==e?void 0:e.target)&&null!=t&&t.contains(e.target)&&(c.current=e.x,d.current=e.y,a.current=e.timeStamp)}),(0,r.z)(e&&null!==t,"pointerup",e=>{var t,i;let r=a.current;if(null===r||(a.current=null,!l.Lk(e.target))||5>Math.abs(e.x-(null!=(t=c.current)?t:e.x))&&5>
4Math.abs(e.y-(null!=(i=d.current)?i:e.y)))return;let u=n(e);switch(u.kind){case 0:return;case 1:e.timeStamp-r>200&&(s(u.target),o());break;case 2:o()}},{capture:!0})}},95968:(e,t,n)=>{n.d(t,{O:()=>l,j:()=>i});var o=n(16560);let i=o.forwardRef(function({children:e,freeze:t},n){let i=l(t,e);return(0,o.isValidElement)(i)?(0,o.cloneElement)(i,{ref:n}):o.createElement(o.Fragment,null,i)});function l(e,t){let[n,i]=(0,o.useState)(t);return e||n===t||i(t),e?n:t}}}]);

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.