PageSourceSearch

https://kookyclinic.com.au/_next/static/chunks/0xhzuc2iamhp5.js

js kookyclinic.com.au collected 2026-10-07 22:05:26 UTC 385,678 bytes, 8 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,34537,e=>{"use strict";var t,n,i=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,r=(t=function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)},n=Object.create(null),function(e){return void 0===n[e]&&(n[e]=t(e)),n[e]});e.s(["default",0,r],34537)},29717,e=>{"use strict";var t=e.i(29427),n=e.i(71330),i=e.i(94487),r=e.i(55743),o=e.i(1893),s=e.i(20);let a=(0,s.forwardRefWithAs)(function(e,a){var l;let u=(0,o.useDisabled)(),{disabled:c=u||!1,autoFocus:d=!1,...f}=e,{isFocusVisible:p,focusProps:h}=(0,t.useFocusRing)({autoFocus:d}),{isHovered:m,hoverProps:v}=(0,n.useHover)({isDisabled:c}),{pressed:g,pressProps:y}=(0,i.useActivePress)({disabled:c}),b=(0,s.mergeProps)({ref:a,type:null!=(l=f.type)?l:"button",disabled:c||void 0,autoFocus:d},h,v,y),x=(0,r.useSlot)({disabled:c,hover:m,focus:p,active:g,autofocus:d});return(0,s.useRender)()({ourProps:b,theirProps:f,slot:x,defaultTag:"button",name:"Button"})});e.s(["Button",0,a])},24489,e=>{"use strict";var t=e.i(29427),n=e.i(71330),i=e.i(71645),r=e.i(94487),o=e.i(3269),s=e.i(14520),a=e.i(46725),l=e.i(14189),u=e.i(55743),c=e.i(1893),d=e.i(40721),f=e.i(42803),p=e.i(33538),h=e.i(94421),m=e.i(20),v=e.i(35889),g=e.i(98348),y=e.i(22678);let b=(0,m.forwardRefWithAs)(function(e,b){let x=(0,i.useId)(),E=(0,f.useProvidedId)(),S=(0,c.useDisabled)(),{id:w=E||`headlessui-checkbox-${x}`,disabled:P=S||!1,autoFocus:T=!1,checked:R,defaultChecked:C,onChange:M,name:F,value:I,form:O,indeterminate:k=!1,tabIndex:A=0,...D}=e,L=(0,s.useDefaultValue)(C),[V,B]=(0,o.useControllable)(R,M,null!=L&&L),N=(0,y.useLabelledBy)(),j=(0,v.useDescribedBy)(),H=(0,a.useDisposables)(),[W,_]=(0,i.useState)(!1),z=(0,l.useEvent)(()=>{_(!0),null==B||B(!V),H.nextFrame(()=>{_(!1)})}),U=(0,l.useEvent)(e=>{if((0,p.isDisabledReactIssue7711)(e.currentTarget))return e.preventDefault();e.preventDefault(),z()}),K=(0,l.useEvent)(e=>{e.key===g.Keys.Space?(e.preventDefault(),z()):e.key===g.Keys.Enter&&(0,h.attemptSubmit)(e.currentTarget)}),$=(0,l.useEvent)(e=>e.preventDefault()),{isFocusVisible:G,focusProps:q}=(0,t.useFocusRing)({autoFocus:T}),{isHovered:Y,hoverProps:X}=(0,n.useHover)({isDisabled:P}),{pressed:Q,pressProps:Z}=(0,r.useActivePress)({disabled:P}),J=(0,m.mergeProps)({ref:b,id:w,role:"checkbox","aria-checked":k?"mixed":V?"true":"false","aria-labelledby":N,"aria-describedby":j,"aria-disabled":!!P||void 0,indeterminate:k?"true":void 0,tabIndex:P?void 0:A,onKeyUp:P?void 0:K,onKeyPress:P?void 0:$,onClick:P?void 0:U},q,X,Z),ee=(0,u.useSlot)({checked:V,disabled:P,hover:Y,focus:G,active:Q,indeterminate:k,changing:W,autofocus:T}),et=(0,i.useCallback)(()=>
1{if(void 0!==L)return null==B?void 0:B(L)},[B,L]),en=(0,m.useRender)();return i.default.createElement(i.default.Fragment,null,null!=F&&i.default.createElement(d.FormFields,{disabled:P,data:{[F]:I||"on"},overrides:{type:"checkbox",checked:V},form:O,onReset:et}),en({ourProps:J,theirProps:D,slot:ee,defaultTag:"span",name:"Checkbox"}))});e.s(["Checkbox",0,b])},26962,e=>{"use strict";var t=e.i(71645),n=e.i(74175),i=e.i(20),r=e.i(29717);let o=(0,i.forwardRefWithAs)(function(e,o){let s=(0,n.useClose)();return t.default.createElement(r.Button,{ref:o,...(0,i.mergeProps)({onClick:s},e)})});e.s(["CloseButton",0,o])},62630,e=>{"use strict";let t,n,i,r;var o=e.i(29427),s=e.i(71330),a=e.i(71645),l=e.i(74080);function u(e,t,n){let i,r=n.initialDeps??[];function o(){var o,s,a,l;let u,c;n.key&&(null==(o=n.debug)?void 0:o.call(n))&&(u=Date.now());let d=e();if(!(d.length!==r.length||d.some((e,t)=>r[t]!==e)))return i;if(r=d,n.key&&(null==(s=n.debug)?void 0:s.call(n))&&(c=Date.now()),i=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,i=t/16,r=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${r(t,5)} /${r(e,5)} ms`,`
2            font-size: .6rem;
3            font-weight: bold;
4            color: hsl(${Math.max(0,Math.min(120-120*i,120))}deg 100% 31%);`,null==n?void 0:n.key)}return null==(l=null==n?void 0:n.onChange)||l.call(n,i),i}return o.updateDeps=e=>{r=e},o}function c(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}let d=e=>{let{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},f=e=>e,p=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),i=[];for(let e=t;e<=n;e++)i.push(e);return i},h=(e,t)=>{let n=e.scrollElement;if(!n)return;let i=e.targetWindow;if(!i)return;let r=e=>{let{width:n,height:i}=e;t({width:Math.round(n),height:Math.round(i)})};if(r(d(n)),!i.ResizeObserver)return()=>{};let o=new i.ResizeObserver(t=>{let i=()=>{let e=t[0];if(null==e?void 0:e.borderBoxSize){let t=e.borderBoxSize[0];if(t)return void r({width:t.inlineSize,height:t.blockSize})}r(d(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(i):i()});return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},m={passive:!0},v="u"<typeof window||"onscrollend"in window,g=(e,t)=>{var n,i;let r,o=e.scrollElement;if(!o)return;let s=e.targetWindow;if(!s)return;let a=0,l=e.options.useScrollendEvent&&v?()=>void 0:(n=()=>{t(a,!1)},i=e.options.isScrollingResetDelay,function(...e){s.clearTimeout(r),r=s.setTimeout(()=>n.apply(this,e),i)}),u=n=>()=>{let{horizontal:i,isRtl:r}=e.options;a=i?o.scrollLeft*(r&&-1||1):o.scrollTop,l(),t(a,n)},c=u(!0),d=u(!1);d(),o.addEventListener("scroll",c,m);let f=e.options.useScrollendEvent&&v;return f&&o.addEventListener("scrollend",d,m),()=>{o.removeEventListener("scroll",c),f&&o.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"]},b=(e,{adjustments:t=0,behavior:n},i)=>{var r,o;null==(o=null==(r=i.scrollElement)?void 0:r.scrollTo)||o.call(r,{[i.options.horizontal?"left":"top"]:e+t,behavior:n})};class x{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let 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:f,rangeExtractor:p,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=u(()=>(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=()=>
vendor: 2,226 bytes, line 4
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._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),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.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,i=new Map;for(let r=t-1;r>=0;r--){let t=e[r];if(n.has(t.lane))continue;let o=i.get(t.lane);if(null==o||t.end>o.end?i.set(t.lane,t):t.end<o.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=u(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,t,n,i,r)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:i,enabled:r}),{key:!1}),this.getMeasurements=u(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:i,enabled:r},o)=>
4{if(!r)return this.measurementsCache=[],this.itemSizeCache.clear(),[];0===this.measurementsCache.length&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let s=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let a=this.measurementsCache.slice(0,s);for(let r=s;r<e;r++){let e=i(r),s=1===this.options.lanes?a[r-1]:this.getFurthestMeasurement(a,r),l=s?s.end+this.options.gap:t+n,u=o.get(e),c="number"==typeof u?u:this.options.estimateSize(r),d=l+c,f=s?s.lane:r%this.options.lanes;a[r]={index:r,start:l,size:c,end:d,key:e,lane:f}}return this.measurementsCache=a,a},{key:!1,debug:()=>this.options.debug}),this.calculateRange=u(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,i)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n,lanes:i}){let r=e.length-1;if(e.length<=i)return{startIndex:0,endIndex:r};let o=E(0,r,t=>e[t].start,n),s=o;if(1===i)for(;s<r&&e[s].end<n+t;)s++;else if(i>1){let a=Array(i).fill(0);for(;s<r&&a.some(e=>e<n+t);){let t=e[s];a[t.lane]=t.end,s++}let l=Array(i).fill(n+t);for(;o>=0&&l.some(e=>e>=n);){let t=e[o];l[t.lane]=t.start,o--}o=Math.max(0,o-o%i),s=Math.min(r,s+(i-1-s%i))}return{startIndex:o,endIndex:s}}({measurements:e,outerSize:t,scrollOffset:n,lanes:i}):null,{key:!1,debug:()=>this.options.debug}
4),this.getVirtualIndexes=u(()=>{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,i,r)=>null===i||null===r?[]:e({startIndex:i,endIndex:r,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),i=this.measurementsCache[n];if(!i)return;let r=i.key,o=this.elementsCache.get(r);o!==e&&(o&&this.observer.unobserve(o),this.observer.observe(e),this.elementsCache.set(r,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 i=t-(this.itemSizeCache.get(n.key)??n.size);0!==i&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(n,i,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,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=u(()=>
4[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let i=0,r=e.length;i<r;i++){let r=t[e[i]];n.push(r)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0!==t.length)return c(t[E(0,t.length-1,e=>c(t[e]).start,e)])},this.getOffsetForAlignment=(e,t,n=0)=>{let i=this.getSize(),r=this.getScrollOffset();return"auto"===t&&(t=e>=r+i?"end":"start"),"center"===t?e+=(n-i)/2:"end"===t&&(e-=i),Math.max(Math.min(this.getTotalSize()+this.options.scrollMargin-i,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 i=this.getSize(),r=this.getScrollOffset();if("auto"===t)if(n.end>=r+i-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=r+this.options.scrollPaddingStart))return[r,t];t="start"}let o="end"===t?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,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));let i=0,r=t=>{if(!this.targetWindow)return;let i=this.getOffsetForIndex(e,t);if(!i)return void console.warn("Failed to get offset for index:",e);let[r,s]=i;this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.targetWindow.requestAnimationFrame(()=>{let t=this.getScrollOffset(),n=this.getOffsetForIndex(e,s);n?1.01>Math.abs(n[0]-t)||o(s):console.warn("Failed to get offset for index:",e)})},o=t=>{this.targetWindow&&(++i<10?this.targetWindow.requestAnimationFrame(()=>r(t)):console.warn(`Failed to scroll to index ${e} after 10 attempts.`))};r(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),i=n.length-1;for(;i>=0&&e.some(e=>null===e);){let t=n[i];null===e[t.lane]&&(e[t.lane]=t.end),i--}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.notify(!1)},this.setOptions(e)}}let E=(e,t,n,i)=>{for(;e<=t;){let r=(e+t)/2|0,o=n(r);if(o<i)e=r+1;else{if(!(o>i))return r;t=r-1}}return e>0?e-1:0},S="u">typeof document?a.useLayoutEffect:a.useEffect;var w=e.i(94487),P=e.i(36289),T=e.i(3269),R=e.i(14520),C=e.i(46725),M=e.i(92704),F=e.i(14189),I=e.i(88374),O=e.i(84653),k=e.i(35696),A=e.i(41444),D=e.i(77891),L=e.i(52744),V=e.i(5083),B=e.i(57138),N=e.i(13581),j=e.i(2155),H=e.i(93456);function W(e){let t=(0,a.useRef)({value:"",selectionStart:null,selectionEnd:null});return(0,H.useEventListener)(e,"blur",e=>{let n=e.target;N.isHTMLInputElement(n)&&(t.current={value:n.value,selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})}),(0,F.useEvent)(()=>{if(!(0,j.isActiveElement)(e)&&N.isHTMLInputElement(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:i}=t.current;null!==n&&null!==i&&e.setSelectionRange(n,i)}t.current={value:"",selectionStart:null,selectionEnd:null}}})}var _=e.i(44279),z=e.i(1852),U=e.i(55743),K=e.i(94316),$=e.i(71616),G=e.i(83733),q=e.i(40143),Y=e.i(33633),X=e.i(1893),Q=e.i(19751),Z=e.i(40721),J=e.i(4016),ee=e.i(42803),et=e.i(33137),en=e.i(41650),ei=e.i(40407),er=e.i(3935),eo=e.i(65659),es=e.i(44508),ea=e.i(97701),el=e.i(9507),eu=e.i(20),ec=e.i(35889),ed=e.i(98348),ef=e.i(22678),ep=e.i(63516),eh=e.i(35307),em=e.i(25720),ev=e.i(67310),eg=e.i(52265),ey=Object.defineProperty,eb=(e,t,n)=>{let i;return(i="symbol"!=typeof t?t+"":t)in e?ey(e,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[i]=n,n},ex=((t=ex||{})[t.Open=0]="Open",t[t.Closed=1]="Closed",t),eE=((n=eE||{})[n.Single=0]="Single",n[n.Multi=1]="Multi",n),eS=((i=eS||{})[i.Pointer=0]="Pointer",i[i.Focus=1]="Focus",i[i.Other=2]="Other",i),ew=((r=ew||{})[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 eP(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,i=t(e.options.slice()),r=i.length>0&&null!==i[0].dataRef.current.order?i.sort((e,t)=>e.dataRef.current.order-t.dataRef.current.order):(0,eg.sortByDomNode)(i,e=>e.dataRef.current.domRef.current),o=n?r.indexOf(n):null;return -1===o&&(o=null),{options:r,activeOptionIndex:o}}let eT={1(e){var t;if(null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState)return e;let n=e.inputElement?ev.ElementPositionState.Tracked((0,ev.computeVisualPosition)(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.ElementPositionState.Idle}}return{...e,comboboxState:0,inputPositionState:ev.ElementPositionState.Idle,__demoMode:!1}},3:(e,t)=>
4e.isTyping===t.isTyping?e:{...e,isTyping:t.isTyping},2(e,t){var n,i,r,o;if(null!=(n=e.dataRef.current)&&n.disabled||e.optionsElement&&!(null!=(i=e.dataRef.current)&&i.optionsPropsRef.current.static)&&1===e.comboboxState)return e;if(e.virtual){let{options:n,disabled:i}=e.virtual,o=t.focus===eo.Focus.Specific?t.idx:(0,eo.calculateActiveIndex)(t,{resolveItems:()=>n,resolveActiveIndex:()=>{var t,r;return null!=(r=null!=(t=e.activeOptionIndex)?t:n.findIndex(e=>!i(e)))?r:null},resolveDisabled:i,resolveId(){throw Error("Function not implemented.")}}),s=null!=(r=t.trigger)?r:2;return e.activeOptionIndex===o&&e.activationTrigger===s?e:{...e,activeOptionIndex:o,activationTrigger:s,isTyping:!1,__demoMode:!1}}let s=eP(e);if(null===s.activeOptionIndex){let e=s.options.findIndex(e=>!e.dataRef.current.disabled);-1!==e&&(s.activeOptionIndex=e)}let a=t.focus===eo.Focus.Specific?t.idx:(0,eo.calculateActiveIndex)(t,{resolveItems:()=>s.options,resolveActiveIndex:()=>s.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled}),l=null!=(o=t.trigger)?o:2;return e.activeOptionIndex===a&&e.activationTrigger===l?e:{...e,...s,isTyping:!1,activeOptionIndex:a,activationTrigger:l,__demoMode:!1}},4:(e,t)=>{var n,i,r,o;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:[...e.options,t.payload]};let s=t.payload,a=eP(e,e=>(e.push(s),e));null===e.activeOptionIndex&&null!=(r=(i=e.dataRef.current).isSelected)&&r.call(i,t.payload.dataRef.current.value)&&(a.activeOptionIndex=a.options.indexOf(s));let l={...e,...a,activationTrigger:2};return null!=(o=e.dataRef.current)&&o.__demoMode&&void 0===e.dataRef.current.value&&(l.activeOptionIndex=0),l},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 i=eP(e,e=>{let n=e.findIndex(e=>e.id===t.id);return -1!==n&&e.splice(n,1),e});return{...e,...i,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,i;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 r=e.activeOptionIndex;if(null!==e.activeOptionIndex){let n=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);r=-1!==n?n:null}return{...e,activeOptionIndex:r,virtual:{options:t.options,disabled:null!=(i=t.disabled)?i:()=>!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.ElementPositionState.Moved}};class eR extends em.Machine{constructor(e){super(e),eb(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:i,value:r}=this.state.dataRef.current;return(0,ea.match)(i,{0:()=>null==t?void 0:t(e),1:()=>{let i=r.slice(),o=i.findIndex(t=>n(t,e));return -1===o?i.push(e):i.splice(o,1),null==t?void 0:t(i)}})},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:eo.Focus.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})}}),eb(this,"selectors",{activeDescendantId:e=>{var t,n;let i=this.selectors.activeOptionIndex(e);if(null!==i)return e.virtual?null==(n=e.options.find(t=>!t.dataRef.current.disabled&&e.dataRef.current.compare(t.dataRef.current.value,e.virtual.options[i])))?void 0:n.id:null==(t=e.options[i])?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,i=t.findIndex(e=>{var t;return!(null!=(t=null==n?void 0:n(e))&&t)});if(-1!==i)return i}let t=e.options.findIndex(e=>!e.dataRef.current.disabled);if(-1!==t)return t}return e.activeOptionIndex},activeOption:e=>{var t,n;let i=this.selectors.activeOptionIndex(e);return null===i?null:e.virtual?e.virtual.options[null!=i?i:0]:null!=(n=null==(t=e.options[i])?void 0:t.dataRef.current.value)?n:null},isActive:(e,t,n)=>{var i;let r=this.selectors.activeOptionIndex(e);return null!==r&&(e.virtual?r===e.dataRef.current.calculateIndex(t):(null==(i=e.options[r])?void 0:i.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=en.stackMachines.get(null);this.disposables.add(t.on(en.ActionTypes.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.detectMovement)(t.inputElement,t.inputPositionState,()=>{this.send({type:12})})))})})}static new({id:e,virtual:t=null,__demoMode:n=!1}){var i;return new eR({id:e,dataRef:{current:{}},comboboxState:+!n,isTyping:!1,options:[],virtual:t?{options:t.options,disabled:null!=(i=t.disabled)?i:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:n,inputPositionState:ev.ElementPositionState.Idle})}reduce(e,t){return(0,ea.match)(t.type,eT,e,t)}}var eC=e.i(26599);let eM=(0,a.createContext)(null);function eF(e){let t=(0,a.useContext)(eM);if(null===t){let t=Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,eI),t}return t}function eI({id:e,virtual:t=null,__demoMode:n=!1}){let i=(0,a.useMemo)(()=>eR.new({id:e,virtual:t,__demoMode:n}),[]);return(0,eC.useOnUnmount)(()=>i.dispose()),i}let eO=(0,a.createContext)(null);function ek(e){let t=(0,a.useContext)(eO);if(null===t){let t=Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ek),t}return t}
4eO.displayName="ComboboxDataContext";let eA=(0,a.createContext)(null);function eD(e){let t=eF("VirtualProvider"),{options:n}=ek("VirtualProvider").virtual,i=(0,ei.useSlice)(t,e=>e.optionsElement),[r,o]=(0,a.useMemo)(()=>{if(!i)return[0,0];let e=window.getComputedStyle(i);return[parseFloat(e.paddingBlockStart||e.paddingTop),parseFloat(e.paddingBlockEnd||e.paddingBottom)]},[i]),s=function(e){let t=a.useReducer(()=>({}),{})[1],n={...e,onChange:(n,i)=>{var r;i?(0,l.flushSync)(t):t(),null==(r=e.onChange)||r.call(e,n,i)}},[i]=a.useState(()=>new x(n));return i.setOptions(n),S(()=>i._didMount(),[]),S(()=>i._willUpdate()),i}({observeElementRect:h,observeElementOffset:g,scrollToFn:b,...{enabled:0!==n.length,scrollPaddingStart:r,scrollPaddingEnd:o,count:n.length,estimateSize:()=>40,getScrollElement:()=>t.state.optionsElement,overscan:12}}),[u,c]=(0,a.useState)(0);(0,k.useIsoMorphicEffect)(()=>{c(e=>e+1)},[n]);let d=s.getVirtualItems(),f=(0,ei.useSlice)(t,e=>e.activationTrigger===eS.Pointer),p=(0,ei.useSlice)(t,t.selectors.activeOptionIndex);return 0===d.length?null:a.default.createElement(eA.Provider,{value:s},a.default.createElement("div",{style:{position:"relative",width:"100%",height:`${s.getTotalSize()}px`},ref:e=>{e&&(f||null!==p&&n.length>p&&s.scrollToIndex(p))}},d.map(t=>{var i;return a.default.createElement(a.Fragment,{key:t.key},a.default.cloneElement(null==(i=e.children)?void 0:i.call(e,{...e.slot,option:n[t.index]}),{key:`${u}-${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=a.Fragment,eV=eu.RenderFeatures.RenderStrategy|eu.RenderFeatures.Static,eB=(0,eu.forwardRefWithAs)(function(e,t){let n=(0,a.useId)(),i=(0,X.useDisabled)(),{value:r,defaultValue:o,onChange:s,form:l,name:u,by:c,invalid:d=!1,disabled:f=i||!1,onClose:p,__demoMode:h=!1,multiple:m=!1,immediate:v=!1,virtual:g=null,nullable:y,...b}=e,x=(0,R.useDefaultValue)(o),[E=m?[]:void 0,S]=(0,T.useControllable)(r,s,x),w=eI({id:n,virtual:g,__demoMode:h}),C=(0,a.useRef)({static:!1,hold:!1}),M=(0,P.useByComparator)(c),I=(0,F.useEvent)(e=>g?null===c?g.options.indexOf(e):g.options.findIndex(t=>M(t,e)):w.state.options.findIndex(t=>M(t.dataRef.current.value,e))),O=(0,a.useCallback)(e=>(0,ea.match)(V.mode,{[eE.Multi]:()=>E.some(t=>M(t,e)),[eE.Single]:()=>M(E,e)}),[E]),A=(0,ei.useSlice)(w,e=>e.virtual),D=(0,F.useEvent)(()=>null==p?void 0:p()),V=(0,a.useMemo)(()=>({__demoMode:h,immediate:v,optionsPropsRef:C,value:E,defaultValue:x,disabled:f,invalid:d,mode:m?eE.Multi:eE.Single,virtual:g?A:null,onChange:S,isSelected:O,calculateIndex:I,compare:M,onClose:D}),[h,v,C,E,x,f,d,m,g,A,S,O,I,M,D]);(0,k.useIsoMorphicEffect)(()=>{var e;g&&w.send({type:ew.UpdateVirtualConfiguration,options:g.options,disabled:null!=(e=g.disabled)?e:null})},[g,null==g?void 0:g.options,null==g?void 0:g.disabled]),(0,k.useIsoMorphicEffect)(()=>{w.state.dataRef.current=V},[V]);let[B,N,j,H]=(0,ei.useSlice)(w,e=>[e.comboboxState,e.buttonElement,e.inputElement,e.optionsElement]),W=en.stackMachines.get(null),_=(0,ei.useSlice)(W,(0,a.useCallback)(e=>W.selectors.isTop(e,n),[W,n]));(0,L.useOutsideClick)(_,[N,j,H],()=>w.actions.closeCombobox());let z=(0,ei.useSlice)(w,w.selectors.activeOptionIndex),K=(0,ei.useSlice)(w,w.selectors.activeOption),$=(0,U.useSlot)({open:B===ex.Open,disabled:f,invalid:d,activeIndex:z,activeOption:K,value:E}),[G,q]=(0,ef.useLabels)(),Y=(0,a.useCallback)(()=>{if(void 0!==x)return null==S?void 0:S(x)},[S,x]),J=(0,eu.useRender)();return a.default.createElement(q,{value:G,props:{htmlFor:null==j?void 0:j.id},slot:{open:B===ex.Open,disabled:f}},a.default.createElement(Q.FloatingProvider,null,a.default.createElement(eO.Provider,{value:V},a.default.createElement(eM.Provider,{value:w},a.default.createElement(et.OpenClosedProvider,{value:(0,ea.match)(B,{[ex.Open]:et.State.Open,[ex.Closed]:et.State.Closed})},null!=u&&a.default.createElement(Z.FormFields,{disabled:f,data:null!=E?{[u]:E}:{},form:l,onReset:Y}),J({ourProps:null===t?{}:{ref:t},theirProps:b,slot:$,defaultTag:eL,name:"Combobox"}))))))}),eN=(0,eu.forwardRefWithAs)(function(e,t){let n=eF("Combobox.Button"),i=ek("Combobox.Button"),[r,u]=(0,a.useState)(null),c=(0,K.useSyncRefs)(t,u,n.actions.setButtonElement),d=(0,a.useId)(),{id:f=`headlessui-combobox-button-${d}`,disabled:p=i.disabled||!1,autoFocus:h=!1,...m}=e,[v,g,y]=(0,ei.useSlice)(n,e=>[e.comboboxState,e.inputElement,e.optionsElement]),b=W(g),x=v===ex.Open;(0,B.useQuickRelease)(x,{trigger:r,action:(0,a.useCallback)(e=>{if(null!=r&&r.contains(e.target)||null!=g&&g.contains(e.target))return B.Action.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return N.isHTMLElement(t)?B.Action.Select(t):null!=y&&y.contains(e.target)?B.Action.Ignore:B.Action.Close},[r,g,y]),close:n.actions.closeCombobox,select:n.actions.selectActiveOption});let E=(0,F.useEvent)(e=>{switch(e.key){case ed.Keys.Space:case ed.Keys.Enter:e.preventDefault(),e.stopPropagation(),n.state.comboboxState===ex.Closed&&(0,l.flushSync)(()=>n.actions.openCombobox()),b();return;case ed.Keys.ArrowDown:e.preventDefault(),e.stopPropagation(),n.state.comboboxState===ex.Closed&&((0,l.flushSync)(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:eo.Focus.First})),b();return;case ed.Keys.ArrowUp:e.preventDefault(),e.stopPropagation(),n.state.comboboxState===ex.Closed&&((0,l.flushSync)(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:eo.Focus.Last})),b();return;case ed.Keys.Escape:if(n.state.comboboxState!==ex.Open)return;e.preventDefault(),n.state.optionsElement&&!i.optionsPropsRef.current.static&&e.stopPropagation(),(0,l.flushSync)(()=>n.actions.closeCombobox()),b();return;default:return}}),S=(0,I.useHandleToggle)(()=>{n.state.comboboxState===ex.Open?n.actions.closeCombobox():n.actions.openCombobox(),b()}),P=(0,ef.useLabelledBy)([f]),{isFocusVisible:T,focusProps:R}=(0,o.useFocusRing)({autoFocus:h}),{isHovered:C,hoverProps:M}=(0,s.useHover)({isDisabled:p}),{pressed:O,pressProps:k}=(0,w.useActivePress)({disabled:p}),A=(0,U.useSlot)({open:v===ex.Open,active:O||v===ex.Open,disabled:p,invalid:i.invalid,value:i.value,hover:C,focus:T}),D=(0,eu.mergeProps)({ref:c,id:f,type:(0,_.useResolveButtonType)(e,r),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==y?void 0:y.id,"aria-expanded":v===ex.Open,"aria-labelledby":P,disabled:p||void 0,autoFocus:h,onKeyDown:E},S,R,M,k);return(0,eu.useRender)()({ourProps:D,theirProps:m,slot:A,defaultTag:"button",name:"Combobox.Button"})}),ej=(0,eu.forwardRefWithAs)(function(e,t){var n,i;let r=eF("Combobox.Input"),u=ek("Combobox.Input"),c=(0,a.useId)(),d=(0,ee.useProvidedId)(),{id:f=d||`headlessui-combobox-input-${c}
4`,onChange:p,displayValue:h,disabled:m=u.disabled||!1,autoFocus:v=!1,type:g="text",...y}=e,b=(0,a.useRef)(null),x=(0,K.useSyncRefs)(b,t,(0,Q.useFloatingReference)(),r.actions.setInputElement),[E,S]=(0,ei.useSlice)(r,e=>[e.comboboxState,e.isTyping]),w=(0,C.useDisposables)(),P=(0,F.useEvent)(()=>{r.actions.onChange(null),r.state.optionsElement&&(r.state.optionsElement.scrollTop=0),r.actions.goToOption({focus:eo.Focus.Nothing})}),T=(0,a.useMemo)(()=>{var e;return"function"==typeof h&&void 0!==u.value?null!=(e=h(u.value))?e:"":"string"==typeof u.value?u.value:""},[u.value,h]);(0,Y.useWatch)(([e,t],[n,i])=>{if(r.state.isTyping)return;let o=b.current;o&&((i===ex.Open&&t===ex.Closed||e!==n)&&(o.value=e),requestAnimationFrame(()=>{if(r.state.isTyping||!o||(0,j.isActiveElement)(o))return;let{selectionStart:e,selectionEnd:t}=o;0===Math.abs((null!=t?t:0)-(null!=e?e:0))&&0===e&&o.setSelectionRange(o.value.length,o.value.length)}))},[T,E,S]),(0,Y.useWatch)(([e],[t])=>{if(e===ex.Open&&t===ex.Closed){if(r.state.isTyping)return;let e=b.current;if(!e)return;let t=e.value,{selectionStart:n,selectionEnd:i,selectionDirection:o}=e;e.value="",e.value=t,null!==o?e.setSelectionRange(n,i,o):e.setSelectionRange(n,i)}},[E]);let R=(0,a.useRef)(!1),M=(0,F.useEvent)(()=>{R.current=!0}),I=(0,F.useEvent)(()=>{w.nextFrame(()=>{R.current=!1})}),O=(0,F.useEvent)(e=>{switch(r.actions.setIsTyping(!0),e.key){case ed.Keys.Enter:if(r.state.comboboxState!==ex.Open||R.current)return;if(e.preventDefault(),e.stopPropagation(),null===r.selectors.activeOptionIndex(r.state))return void r.actions.closeCombobox();r.actions.selectActiveOption(),u.mode===eE.Single&&r.actions.closeCombobox();break;case ed.Keys.ArrowDown:return e.preventDefault(),e.stopPropagation(),(0,ea.match)(r.state.comboboxState,{[ex.Open]:()=>r.actions.goToOption({focus:eo.Focus.Next}),[ex.Closed]:()=>r.actions.openCombobox()});case ed.Keys.ArrowUp:return e.preventDefault(),e.stopPropagation(),(0,ea.match)(r.state.comboboxState,{[ex.Open]:()=>r.actions.goToOption({focus:eo.Focus.Previous}),[ex.Closed]:()=>{(0,l.flushSync)(()=>r.actions.openCombobox()),u.value||r.actions.goToOption({focus:eo.Focus.Last})}});case ed.Keys.Home:if(r.state.comboboxState===ex.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),r.actions.goToOption({focus:eo.Focus.First});case ed.Keys.PageUp:return e.preventDefault(),e.stopPropagation(),r.actions.goToOption({focus:eo.Focus.First});case ed.Keys.End:if(r.state.comboboxState===ex.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),r.actions.goToOption({focus:eo.Focus.Last});case ed.Keys.PageDown:return e.preventDefault(),e.stopPropagation(),r.actions.goToOption({focus:eo.Focus.Last});case ed.Keys.Escape:return r.state.comboboxState!==ex.Open?void 0:(e.preventDefault(),r.state.optionsElement&&!u.optionsPropsRef.current.static&&e.stopPropagation(),u.mode===eE.Single&&null===u.value&&P(),r.actions.closeCombobox());case ed.Keys.Tab:if(r.actions.setIsTyping(!1),r.state.comboboxState!==ex.Open)return;u.mode===eE.Single&&r.state.activationTrigger!==eS.Focus&&r.actions.selectActiveOption(),r.actions.closeCombobox()}}),k=(0,F.useEvent)(e=>{null==p||p(e),u.mode===eE.Single&&""===e.target.value&&P(),r.actions.openCombobox()}),A=(0,F.useEvent)(e=>{var t,n,i;let o=null!=(t=e.relatedTarget)?t:er.history.find(t=>t!==e.currentTarget);if(!(null!=(n=r.state.optionsElement)&&n.contains(o))&&!(null!=(i=r.state.buttonElement)&&i.contains(o))&&r.state.comboboxState===ex.Open)return e.preventDefault(),u.mode===eE.Single&&null===u.value&&P(),r.actions.closeCombobox()}),D=(0,F.useEvent)(e=>{var t,n,i;let o=null!=(t=e.relatedTarget)?t:er.history.find(t=>t!==e.currentTarget);null!=(n=r.state.buttonElement)&&n.contains(o)||null!=(i=r.state.optionsElement)&&i.contains(o)||u.disabled||u.immediate&&r.state.comboboxState!==ex.Open&&w.microTask(()=>{(0,l.flushSync)(()=>r.actions.openCombobox()),r.actions.setActivationTrigger(eS.Focus)})}),L=(0,ef.useLabelledBy)(),V=(0,ec.useDescribedBy)(),{isFocused:B,focusProps:N}=(0,o.useFocusRing)({autoFocus:v}),{isHovered:H,hoverProps:W}=(0,s.useHover)({isDisabled:m}),_=(0,ei.useSlice)(r,e=>e.optionsElement),z=(0,U.useSlot)({open:E===ex.Open,disabled:m,invalid:u.invalid,hover:H,focus:B,autofocus:v}),$=(0,eu.mergeProps)({ref:x,id:f,role:"combobox",type:g,"aria-controls":null==_?void 0:_.id,"aria-expanded":E===ex.Open,"aria-activedescendant":(0,ei.useSlice)(r,r.selectors.activeDescendantId),"aria-labelledby":L,"aria-describedby":V,"aria-autocomplete":"list",defaultValue:null!=(i=null!=(n=e.defaultValue)?n:void 0!==u.defaultValue?null==h?void 0:h(u.defaultValue):null)?i:u.defaultValue,disabled:m||void 0,autoFocus:v,onCompositionStart:M,onCompositionEnd:I,onKeyDown:O,onChange:k,onFocus:D,onBlur:A},N,W);return(0,eu.useRender)()({ourProps:$,theirProps:y,slot:z,defaultTag:"input",name:"Combobox.Input"})}),eH=ef.Label,eW=(0,eu.forwardRefWithAs)(function(e,t){var n,i,r;let o=(0,a.useId)(),{id:s=`headlessui-combobox-options-${o}`,hold:l=!1,anchor:u,portal:c=!1,modal:d=!0,transition:f=!1,...p}=e,h=eF("Combobox.Options"),m=ek("Combobox.Options"),v=(0,Q.useResolvedAnchor)(u);v&&(c=!0);let[g,y]=(0,Q.useFloatingPanel)(v),[b,x]=(0,a.useState)(null),E=(0,Q.useFloatingPanelProps)(),S=(0,K.useSyncRefs)(t,v?g:null,h.actions.setOptionsElement,x),[w,P,T,R,C]=(0,ei.useSlice)(h,e=>[e.comboboxState,e.inputElement,e.buttonElement,e.optionsElement,e.activationTrigger]),I=(0,V.useOwnerDocument)(P||T),A=(0,V.useOwnerDocument)(R),L=(0,et.useOpenClosed)(),[B,N]=(0,G.useTransition)(f,b,null!==L?(L&et.State.Open)===et.State.Open:w===ex.Open);(0,D.useOnDisappear)(B,P,h.actions.closeCombobox);let j=!m.__demoMode&&d&&w===ex.Open;(0,z.useScrollLock)(j,A);let H=!m.__demoMode&&d&&w===ex.Open;(0,O.useInertOthers)(H,{allowed:(0,a.useCallback)(()=>[P,T,R],[P,T,R])});let W=!(0,ei.useSlice)(h,h.selectors.didInputMove)&&B;(0,k.useIsoMorphicEffect)(()=>{var t;m.optionsPropsRef.current.static=null!=(t=e.static)&&t},[m.optionsPropsRef,e.static]),(0,k.useIsoMorphicEffect)(()=>{m.optionsPropsRef.current.hold=l},[m.optionsPropsRef,l]),(0,q.useTreeWalker)(w===ex.Open,{container:R,accept:e=>
4"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let _=(0,ef.useLabelledBy)([null==T?void 0:T.id]),$=(0,U.useSlot)({open:w===ex.Open,option:void 0}),Y=(0,F.useEvent)(()=>{h.actions.setActivationTrigger(eS.Pointer)}),X=(0,F.useEvent)(e=>{e.preventDefault(),h.actions.setActivationTrigger(eS.Pointer)}),Z=(0,eu.mergeProps)(v?E():{},{"aria-labelledby":_,role:"listbox","aria-multiselectable":m.mode===eE.Multi||void 0,id:s,ref:S,style:{...p.style,...y,"--input-width":(0,M.useElementSize)(B,P,!0).width,"--button-width":(0,M.useElementSize)(B,T,!0).width},onWheel:C===eS.Pointer?void 0:Y,onMouseDown:X,...(0,G.transitionDataAttributes)(N)}),ee=B&&w===ex.Closed&&!e.static,en=(0,J.useFrozenData)(ee,null==(n=m.virtual)?void 0:n.options),er=(0,J.useFrozenData)(ee,m.value),eo=(0,a.useCallback)(e=>m.compare(er,e),[m.compare,er]),es=(0,a.useMemo)(()=>{if(!m.virtual)return m;if(void 0===en)throw Error("Missing `options` in virtual mode");return en!==m.virtual.options?{...m,virtual:{...m.virtual,options:en}}:m},[m,en,null==(i=m.virtual)?void 0:i.options]);m.virtual&&Object.assign(p,{children:a.default.createElement(eO.Provider,{value:es},a.default.createElement(eD,{slot:$},p.children))});let ea=(0,eu.useRender)(),el=(0,a.useMemo)(()=>m.mode===eE.Multi?m:{...m,isSelected:eo},[m,eo]);return a.default.createElement(eh.Portal,{enabled:!!c&&(e.static||B),ownerDocument:I},a.default.createElement(eO.Provider,{value:el},ea({ourProps:Z,theirProps:{...p,children:a.default.createElement(J.Frozen,{freeze:ee},"function"==typeof p.children?null==(r=p.children)?void 0:r.call(p,$):p.children)},slot:$,defaultTag:"div",features:eV,visible:W,name:"Combobox.Options"}
4)))}),e_=(0,eu.forwardRefWithAs)(function(e,t){var n,i,r;let o=ek("Combobox.Option"),s=eF("Combobox.Option"),l=(0,a.useId)(),{id:u=`headlessui-combobox-option-${l}`,value:c,disabled:d=null!=(r=null==(i=null==(n=o.virtual)?void 0:n.disabled)?void 0:i.call(n,c))&&r,order:f=null,...p}=e,[h]=(0,ei.useSlice)(s,e=>[e.inputElement]),m=W(h),v=(0,ei.useSlice)(s,(0,a.useCallback)(e=>s.selectors.isActive(e,c,u),[c,u])),g=o.isSelected(c),y=(0,a.useRef)(null),b=(0,A.useLatestValue)({disabled:d,value:c,domRef:y,order:f}),x=(0,a.useContext)(eA),E=(0,K.useSyncRefs)(t,y,x?x.measureElement:null),S=(0,F.useEvent)(()=>{s.actions.setIsTyping(!1),s.actions.onChange(c)});(0,k.useIsoMorphicEffect)(()=>s.actions.registerOption(u,b),[b,u]);let w=(0,ei.useSlice)(s,(0,a.useCallback)(e=>s.selectors.shouldScrollIntoView(e,c,u),[c,u]));(0,k.useIsoMorphicEffect)(()=>{if(w)return(0,es.disposables)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=y.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[w,y]);let P=(0,F.useEvent)(e=>{e.preventDefault(),e.button===ep.MouseButton.Left&&(d||(S(),(0,el.isMobile)()||requestAnimationFrame(()=>m()),o.mode===eE.Single&&s.actions.closeCombobox()))}),T=(0,F.useEvent)(()=>{if(d)return s.actions.goToOption({focus:eo.Focus.Nothing});let e=o.calculateIndex(c);s.actions.goToOption({focus:eo.Focus.Specific,idx:e})}),R=(0,$.useTrackedPointer)(),C=(0,F.useEvent)(e=>R.update(e)),M=(0,F.useEvent)(e=>{if(!R.wasMoved(e)||d||v&&s.state.activationTrigger===eS.Pointer)return;let t=o.calculateIndex(c);s.actions.goToOption({focus:eo.Focus.Specific,idx:t},eS.Pointer)}),I=(0,F.useEvent)(e=>{R.wasMoved(e)&&(d||v&&(o.optionsPropsRef.current.hold||s.state.activationTrigger===eS.Pointer&&s.actions.goToOption({focus:eo.Focus.Nothing})))}),O=(0,U.useSlot)({active:v,focus:v,selected:g,disabled:d});return(0,eu.useRender)()({ourProps:{id:u,ref:E,role:"option",tabIndex:!0===d?void 0:-1,"aria-disabled":!0===d||void 0,"aria-selected":g,disabled:void 0,onMouseDown:P,onFocus:T,onPointerEnter:C,onMouseEnter:C,onPointerMove:M,onMouseMove:M,onPointerLeave:I,onMouseLeave:I},theirProps:p,slot:O,defaultTag:"div",name:"Combobox.Option"})}),ez=Object.assign(eB,{Input:ej,Button:eN,Label:eH,Options:eW,Option:e_});e.s(["Combobox",0,ez,"ComboboxButton",0,eN,"ComboboxInput",0,ej,"ComboboxLabel",0,eH,"ComboboxOption",0,e_,"ComboboxOptions",0,eW],62630)},76481,e=>{"use strict";var t=e.i(29427),n=e.i(71330),i=e.i(71645),r=e.i(94487),o=e.i(55743),s=e.i(20);let a=i.Fragment,l=(0,s.forwardRefWithAs)(function(e,i){let{...l}=e,{isFocusVisible:u,focusProps:c}=(0,t.useFocusRing)(),{isHovered:d,hoverProps:f}=(0,n.useHover)({isDisabled:!1}),{pressed:p,pressProps:h}=(0,r.useActivePress)({disabled:!1}),m=(0,s.mergeProps)({ref:i},c,f,h),v=(0,o.useSlot)({hover:d,focus:u,active:p});return(0,s.useRender)()({ourProps:m,theirProps:l,slot:v,defaultTag:a,name:"DataInteractive"})});e.s(["DataInteractive",0,l])},35889,e=>{"use strict";var t=e.i(71645),n=e.i(14189),i=e.i(35696),r=e.i(55743),o=e.i(94316),s=e.i(1893),a=e.i(20);let l=(0,t.createContext)(null);l.displayName="DescriptionContext";let u=Object.assign((0,a.forwardRefWithAs)(function(e,n){let u=(0,t.useId)(),c=(0,s.useDisabled)(),{id:d=`headlessui-description-${u}`,...f}=e,p=function e(){let n=(0,t.useContext)(l);if(null===n){let t=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return n}(),h=(0,o.useSyncRefs)(n);(0,i.useIsoMorphicEffect)(()=>p.register(d),[d,p.register]);let m=(0,r.useSlot)({...p.slot,disabled:c||!1}),v={ref:h,...p.props,id:d};return(0,a.useRender)()({ourProps:v,theirProps:f,slot:m,defaultTag:"p",name:p.name||"Description"})}),{});e.s(["Description",0,u,"useDescribedBy",0,function(){var e,n;return null!=(n=null==(e=(0,t.useContext)(l))?void 0:e.value)?n:void 0},"useDescriptions",0,function(){let[e,i]=(0,t.useState)([]);return[e.length>0?e.join(" "):void 0,(0,t.useMemo)(()=>function(e){let r=(0,n.useEvent)(e=>(i(t=>[...t,e]),()=>i(t=>{let n=t.slice(),i=n.indexOf(e);return -1!==i&&n.splice(i,1),n}))),o=(0,t.useMemo)(()=>({register:r,slot:e.slot,name:e.name,props:e.props,value:e.value}),[r,e.slot,e.name,e.props,e.value]);return t.default.createElement(l.Provider,{value:o},e.children)},[i])]}])},54878,e=>{"use strict";let t,n;var i=e.i(71645),r=e.i(98348),o=e.i(93456),s=e.i(29644),a=e.i(14189),l=e.i(84653),u=e.i(35696),c=e.i(77891),d=e.i(52744),f=e.i(5083),p=e.i(85935),h=e.i(1852),m=e.i(78677),v=e.i(55743),g=e.i(94316),y=e.i(74175),b=e.i(33137),x=e.i(96629),E=e.i(41650),S=e.i(40407),w=e.i(97701),P=e.i(20),T=e.i(35889),R=e.i(42925),C=e.i(35307),M=e.i(54056),F=((t=F||{})[t.Open=0]="Open",t[t.Closed=1]="Closed",t),I=((n=I||{})[n.SetTitleId=0]="SetTitleId",n);let O={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},k=(0,i.createContext)(null);function A(e){let t=(0,i.useContext)(k);if(null===t){let t=Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,A),t}return t}function D(e,t){return(0,w.match)(t.type,O,e,t)}k.displayName="DialogContext";let L=(0,P.forwardRefWithAs)(function(e,t){let n=(0,i.useId)(),{id:w=`headlessui-dialog-${n}`,open:M,onClose:F,initialFocus:I,role:O="dialog",autoFocus:A=!0,__demoMode:L=!1,unmount:N=!1,...j}=e,H=(0,i.useRef)(!1);
4O="dialog"===O||"alertdialog"===O?O:(H.current||(H.current=!0,console.warn(`Invalid role [${O}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog");let W=(0,b.useOpenClosed)();void 0===M&&null!==W&&(M=(W&b.State.Open)===b.State.Open);let _=(0,i.useRef)(null),z=(0,g.useSyncRefs)(_,t),U=(0,f.useOwnerDocument)(_.current),K=+!M,[$,G]=(0,i.useReducer)(D,{titleId:null,descriptionId:null,panelRef:(0,i.createRef)()}),q=(0,a.useEvent)(()=>F(!1)),Y=(0,a.useEvent)(e=>G({type:0,id:e})),X=!!(0,m.useServerHandoffComplete)()&&0===K,[Q,Z]=(0,C.useNestedPortals)(),J=(0,p.useMainTreeNode)(),{resolveContainers:ee}=(0,p.useRootContainers)({mainTreeNode:J,portals:Q,defaultContainers:[{get current(){var et;return null!=(et=$.panelRef.current)?et:_.current}}]}),en=null!==W&&(W&b.State.Closing)===b.State.Closing;(0,l.useInertOthers)(!L&&!en&&X,{allowed:(0,a.useEvent)(()=>{var e,t;return[null!=(t=null==(e=_.current)?void 0:e.closest("[data-headlessui-portal]"))?t:null]}),disallowed:(0,a.useEvent)(()=>{var e;return[null!=(e=null==J?void 0:J.closest("body > *:not(#headlessui-portal-root)"))?e:null]})});let ei=E.stackMachines.get(null);(0,u.useIsoMorphicEffect)(()=>{if(X)return ei.actions.push(w),()=>ei.actions.pop(w)},[ei,w,X]);
4let er=(0,S.useSlice)(ei,(0,i.useCallback)(e=>ei.selectors.isTop(e,w),[ei,w]));(0,d.useOutsideClick)(er,ee,e=>{e.preventDefault(),q()}),function(e,t="u">typeof document?document.defaultView:null,n){let i=(0,s.useIsTopLayer)(e,"escape");(0,o.useEventListener)(t,"keydown",e=>{i&&(e.defaultPrevented||e.key===r.Keys.Escape&&n(e))})}(er,null==U?void 0:U.defaultView,e=>{e.preventDefault(),e.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur(),q()}),(0,h.useScrollLock)(!L&&!en&&X,U,ee),(0,c.useOnDisappear)(X,_,q);let[eo,es]=(0,T.useDescriptions)(),ea=(0,i.useMemo)(()=>[{dialogState:K,close:q,setTitleId:Y,unmount:N},$],[K,q,Y,N,$]),el=(0,v.useSlot)({open:0===K}),eu={ref:z,id:w,role:O,tabIndex:-1,"aria-modal":L?void 0:0===K||void 0,"aria-labelledby":$.titleId,"aria-describedby":eo,unmount:N},ec=!function(){var e;let[t]=(0,i.useState)(()=>"u">typeof window&&"function"==typeof window.matchMedia?window.matchMedia("(pointer: coarse)"):null),[n,r]=(0,i.useState)(null!=(e=null==t?void 0:t.matches)&&e);return(0,u.useIsoMorphicEffect)(()=>{if(t)return t.addEventListener("change",e),()=>t.removeEventListener("change",e);function e(e){r(e.matches)}},[t]),n}(),ed=R.FocusTrapFeatures.None;X&&!L&&(ed|=R.FocusTrapFeatures.RestoreFocus,ed|=R.FocusTrapFeatures.TabLock,A&&(ed|=R.FocusTrapFeatures.AutoFocus),ec&&(ed|=R.FocusTrapFeatures.InitialFocus));let ef=(0,P.useRender)();return i.default.createElement(b.ResetOpenClosedProvider,null,i.default.createElement(x.ForcePortalRoot,{force:!0},i.default.createElement(C.Portal,null,i.default.createElement(k.Provider,{value:ea},i.default.createElement(C.PortalGroup,{target:_},i.default.createElement(x.ForcePortalRoot,{force:!1},i.default.createElement(es,{slot:el},i.default.createElement(Z,null,i.default.createElement(R.FocusTrap,{initialFocus:I,initialFocusFallback:_,containers:ee,features:ed},i.default.createElement(y.CloseProvider,{value:q},ef({ourProps:eu,theirProps:j,slot:el,defaultTag:V,features:B,visible:0===K,name:"Dialog"})))))))))))}),V="div",B=P.RenderFeatures.RenderStrategy|P.RenderFeatures.Static,N=(0,P.forwardRefWithAs)(function(e,t){let{transition:n=!1,open:r,...o}=e,s=(0,b.useOpenClosed)(),a=e.hasOwnProperty("open")||null!==s,l=e.hasOwnProperty("onClose");if(!a&&!l)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!a)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!l)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!s&&"boolean"!=typeof e.open)throw Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if("function"!=typeof e.onClose)throw Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(void 0!==r||n)&&!o.static?i.default.createElement(p.MainTreeProvider,null,i.default.createElement(M.Transition,{show:r,transition:n,unmount:o.unmount},i.default.createElement(L,{ref:t,...o}))):i.default.createElement(p.MainTreeProvider,null,i.default.createElement(L,{ref:t,open:r,...o}))}),j=(0,P.forwardRefWithAs)(function(e,t){let n=(0,i.useId)(),{id:r=`headlessui-dialog-panel-${n}`,transition:o=!1,...s}=e,[{dialogState:l,unmount:u},c]=A("Dialog.Panel"),d=(0,g.useSyncRefs)(t,c.panelRef),f=(0,v.useSlot)({open:0===l}),p=(0,a.useEvent)(e=>{e.stopPropagation()}),h=o?M.TransitionChild:i.Fragment,m=(0,P.useRender)();return i.default.createElement(h,{...o?{unmount:u}:{}},m({ourProps:{ref:d,id:r,onClick:p},theirProps:s,slot:f,defaultTag:"div",name:"Dialog.Panel"}))}),H=(0,P.forwardRefWithAs)(function(e,t){let{transition:n=!1,...r}=e,[{dialogState:o,unmount:s}]=A("Dialog.Backdrop"),a=(0,v.useSlot)({open:0===o}),l=n?M.TransitionChild:i.Fragment,u=(0,P.useRender)();return i.default.createElement(l,{...n?{unmount:s}:{}},u({ourProps:{ref:t,"aria-hidden":!0},theirProps:r,slot:a,defaultTag:"div",name:"Dialog.Backdrop"}))}),W=(0,P.forwardRefWithAs)(function(e,t){let n=(0,i.useId)(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:s,setTitleId:a}]=A("Dialog.Title"),l=(0,g.useSyncRefs)(t);(0,i.useEffect)(()=>(a(r),()=>a(null)),[r,a]);let u=(0,v.useSlot)({open:0===s});return(0,P.useRender)()({ourProps:{ref:l,id:r},theirProps:o,slot:u,defaultTag:"h2",name:"Dialog.Title"})}),_=T.Description,z=Object.assign(N,{Panel:j,Title:W,Description:T.Description});e.s(["Dialog",0,z,"DialogBackdrop",0,H,"DialogDescription",0,_,"DialogPanel",0,j,"DialogTitle",0,W],54878)},86148,e=>{"use strict";let t,n;var i,r=e.i(29427),o=e.i(71330),s=e.i(71645),a=e.i(94487),l=e.i(14189),u=e.i(44279),c=e.i(55743),d=e.i(94316),f=e.i(83733),p=e.i(74175),h=e.i(33137),m=e.i(33538),v=e.i(13581),g=e.i(97701),y=e.i(2155),b=e.i(20);let x=null!=(i=s.default.startTransition)?i:function(e){e()};var E=e.i(98348),S=((t=S||{})[t.Open=0]="Open",t[t.Closed=1]="Closed",t),w=((n=w||{})[n.ToggleDisclosure=0]="ToggleDisclosure",n[n.CloseDisclosure=1]="CloseDisclosure",n[n.SetButtonId=2]="SetButtonId",n[n.SetPanelId=3]="SetPanelId",n[n.SetButtonElement=4]="SetButtonElement",n[n.SetPanelElement=5]="SetPanelElement",n);let P={0:e=>({...e,disclosureState:(0,g.match)(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>
4e.panelId===t.panelId?e:{...e,panelId:t.panelId},4:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},5:(e,t)=>e.panelElement===t.element?e:{...e,panelElement:t.element}},T=(0,s.createContext)(null);function R(e){let t=(0,s.useContext)(T);if(null===t){let t=Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,R),t}return t}T.displayName="DisclosureContext";let C=(0,s.createContext)(null);C.displayName="DisclosureAPIContext";let M=(0,s.createContext)(null);function F(e,t){return(0,g.match)(t.type,P,e,t)}M.displayName="DisclosurePanelContext";let I=s.Fragment,O=b.RenderFeatures.RenderStrategy|b.RenderFeatures.Static,k=(0,b.forwardRefWithAs)(function(e,t){let{defaultOpen:n=!1,...i}=e,r=(0,s.useRef)(null),o=(0,d.useSyncRefs)(t,(0,d.optionalRef)(e=>{r.current=e},void 0===e.as||(0,b.isFragment)(e.as))),a=(0,s.useReducer)(F,{disclosureState:+!n,buttonElement:null,panelElement:null,buttonId:null,panelId:null}),[{disclosureState:u,buttonId:f},m]=a,x=(0,l.useEvent)(e=>{m({type:1});let t=(0,y.getOwnerDocument)(r.current);if(!t||!f)return;let n=e?v.isHTMLorSVGElement(e)?e:"current"in e&&v.isHTMLorSVGElement(e.current)?e.current:t.getElementById(f):t.getElementById(f);null==n||n.focus()}),E=(0,s.useMemo)(()=>({close:x}),[x]),S=(0,c.useSlot)({open:0===u,close:x}),w=(0,b.useRender)();return s.default.createElement(T.Provider,{value:a},s.default.createElement(C.Provider,{value:E},s.default.createElement(p.CloseProvider,{value:x},s.default.createElement(h.OpenClosedProvider,{value:(0,g.match)(u,{0:h.State.Open,1:h.State.Closed})},w({ourProps:{ref:o},theirProps:i,slot:S,defaultTag:I,name:"Disclosure"})))))}),A=(0,b.forwardRefWithAs)(function(e,t){let n=(0,s.useId)(),{id:i=`headlessui-disclosure-button-${n}`,disabled:f=!1,autoFocus:p=!1,...h}=e,[v,g]=R("Disclosure.Button"),y=(0,s.useContext)(M),x=null!==y&&y===v.panelId,S=(0,s.useRef)(null),w=(0,d.useSyncRefs)(S,t,(0,l.useEvent)(e=>{if(!x)return g({type:4,element:e})}));(0,s.useEffect)(()=>{if(!x)return g({type:2,buttonId:i}),()=>{g({type:2,buttonId:null})}},[i,g,x]);let P=(0,l.useEvent)(e=>{var t;if(x){if(1===v.disclosureState)return;switch(e.key){case E.Keys.Space:case E.Keys.Enter:e.preventDefault(),e.stopPropagation(),g({type:0}),null==(t=v.buttonElement)||t.focus()}}else switch(e.key){case E.Keys.Space:case E.Keys.Enter:e.preventDefault(),e.stopPropagation(),g({type:0})}}),T=(0,l.useEvent)(e=>{e.key===E.Keys.Space&&e.preventDefault()}),C=(0,l.useEvent)(e=>{var t;(0,m.isDisabledReactIssue7711)(e.currentTarget)||f||(x?(g({type:0}),null==(t=v.buttonElement)||t.focus()):g({type:0}))}),{isFocusVisible:F,focusProps:I}=(0,r.useFocusRing)({autoFocus:p}),{isHovered:O,hoverProps:k}=(0,o.useHover)({isDisabled:f}),{pressed:A,pressProps:D}=(0,a.useActivePress)({disabled:f}),L=(0,c.useSlot)({open:0===v.disclosureState,hover:O,active:A,disabled:f,focus:F,autofocus:p}),V=(0,u.useResolveButtonType)(e,v.buttonElement),B=x?(0,b.mergeProps)({ref:w,type:V,disabled:f||void 0,autoFocus:p,onKeyDown:P,onClick:C},I,k,D):(0,b.mergeProps)({ref:w,id:i,type:V,"aria-expanded":0===v.disclosureState,"aria-controls":v.panelElement?v.panelId:void 0,disabled:f||void 0,autoFocus:p,onKeyDown:P,onKeyUp:T,onClick:C},I,k,D);return(0,b.useRender)()({ourProps:B,theirProps:h,slot:L,defaultTag:"button",name:"Disclosure.Button"})}),D=(0,b.forwardRefWithAs)(function(e,t){let n=(0,s.useId)(),{id:i=`headlessui-disclosure-panel-${n}`,transition:r=!1,...o}=e,[a,u]=R("Disclosure.Panel"),{close:p}=function e(t){let n=(0,s.useContext)(C);if(null===n){let n=Error(`<${t} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,e),n}return n}("Disclosure.Panel"),[m,v]=(0,s.useState)(null),g=(0,d.useSyncRefs)(t,(0,l.useEvent)(e=>{x(()=>u({type:5,element:e}))}),v);(0,s.useEffect)(()=>(u({type:3,panelId:i}),()=>{u({type:3,panelId:null})}),[i,u]);let y=(0,h.useOpenClosed)(),[E,S]=(0,f.useTransition)(r,m,null!==y?(y&h.State.Open)===h.State.Open:0===a.disclosureState),w=(0,c.useSlot)({open:0===a.disclosureState,close:p}),P={ref:g,id:i,...(0,f.transitionDataAttributes)(S)},T=(0,b.useRender)();return s.default.createElement(h.ResetOpenClosedProvider,null,s.default.createElement(M.Provider,{value:a.panelId},T({ourProps:P,theirProps:o,slot:w,defaultTag:"div",features:O,visible:E,name:"Disclosure.Panel"})))}),L=Object.assign(k,{Button:A,Panel:D});e.s(["Disclosure",0,L,"DisclosureButton",0,A,"DisclosurePanel",0,D],86148)},39100,e=>{"use strict";var t=e.i(71645),n=e.i(55743),i=e.i(1893),r=e.i(40721),o=e.i(42803),s=e.i(20),a=e.i(35889),l=e.i(22678);let u=(0,s.forwardRefWithAs)(function(e,u){let c=`headlessui-control-${(0,t.useId)()}`,[d,f]=(0,l.useLabels)(),[p,h]=(0,a.useDescriptions)(),m=(0,i.useDisabled)(),{disabled:v=m||!1,...g}
4=e,y=(0,n.useSlot)({disabled:v}),b=(0,s.useRender)();return t.default.createElement(i.DisabledProvider,{value:v},t.default.createElement(f,{value:d},t.default.createElement(h,{value:p},t.default.createElement(o.IdProvider,{id:c},b({ourProps:{ref:u,disabled:v||void 0,"aria-disabled":v||void 0},theirProps:{...g,children:t.default.createElement(r.FormFieldsProvider,null,"function"==typeof g.children?g.children(y):g.children)},slot:y,defaultTag:"div",name:"Field"})))))});e.s(["Field",0,u])},98631,e=>{"use strict";var t=e.i(71645),n=e.i(13581),i=e.i(55743),r=e.i(94316),o=e.i(1893),s=e.i(20),a=e.i(22678);let l="fieldset",u=(0,s.forwardRefWithAs)(function(e,u){var c;let d=(0,o.useDisabled)(),{disabled:f=d||!1,...p}=e,[h,m]=function(e){let i="string"==typeof e?e:void 0,[r,o]=(0,t.useState)(i);return[null!=i?i:r,(0,t.useCallback)(e=>{i||n.isHTMLElement(e)&&o(e.tagName.toLowerCase())},[i])]}(null!=(c=e.as)?c:l),v=(0,r.useSyncRefs)(u,m),[g,y]=(0,a.useLabels)(),b=(0,i.useSlot)({disabled:f}),x="fieldset"===h?{ref:v,"aria-labelledby":g,disabled:f||void 0}:{ref:v,role:"group","aria-labelledby":g,"aria-disabled":f||void 0},E=(0,s.useRender)();return t.default.createElement(o.DisabledProvider,{value:f},t.default.createElement(y,null,E({ourProps:x,theirProps:p,slot:b,defaultTag:l,name:"Fieldset"})))});e.s(["Fieldset",0,u],98631)},42925,e=>{"use strict";let t;var n=e.i(71645),i=e.i(46725),r=e.i(14189),o=e.i(93456),s=e.i(53521),a=e.i(29644),l=e.i(26599),u=e.i(5083),c=e.i(78677),d=e.i(94316),f=e.i(61130),p=e.i(33633),h=e.i(2788),m=e.i(3935),v=e.i(13581),g=e.i(52265),y=e.i(97701),b=e.i(68578),x=e.i(2155),E=e.i(20);function S(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let n of e.current)v.isElement(n.current)&&t.add(n.current);return t}var w=((t=w||{})[t.None=0]="None",t[t.InitialFocus=1]="InitialFocus",t[t.TabLock=2]="TabLock",t[t.FocusLock=4]="FocusLock",t[t.RestoreFocus=8]="RestoreFocus",t[t.AutoFocus=16]="AutoFocus",t);let P=Object.assign((0,E.forwardRefWithAs)(function(e,t){let w=(0,n.useRef)(null),P=(0,d.useSyncRefs)(w,t),{initialFocus:R,initialFocusFallback:C,containers:M,features:F=15,...I}=e;(0,c.useServerHandoffComplete)()||(F=0);let O=(0,u.useOwnerDocument)(w.current);!function(e,{ownerDocument:t}){let i=!!(8&e),o=function(e=!0){let t=(0,n.useRef)(m.history.slice());return(0,p.useWatch)(([e],[n])=>{!0===n&&!1===e&&(0,b.microTask)(()=>{t.current.splice(0)}),!1===n&&!0===e&&(t.current=m.history.slice())},[e,m.history,t]),(0,r.useEvent)(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(i);(0,p.useWatch)(()=>{i||(0,x.isActiveElement)(null==t?void 0:t.body)&&(0,g.focusElement)(o())},[i]),(0,l.useOnUnmount)(()=>{i&&(0,g.focusElement)(o())})}(F,{ownerDocument:O});let k=function(e,{ownerDocument:t,container:i,initialFocus:r,initialFocusFallback:o}){let l=(0,n.useRef)(null),u=(0,a.useIsTopLayer)(!!(1&e),"focus-trap#initial-focus"),c=(0,s.useIsMounted)();return(0,p.useWatch)(()=>{if(0===e)return;if(!u){null!=o&&o.current&&(0,g.focusElement)(o.current);return}let n=i.current;n&&(0,b.microTask)(()=>{if(!c.current)return;let i=null==t?void 0:t.activeElement;if(null!=r&&r.current){if((null==r?void 0:r.current)===i){l.current=i;return}}else if(n.contains(i)){l.current=i;return}if(null!=r&&r.current)(0,g.focusElement)(r.current);else{if(16&e){if((0,g.focusIn)(n,g.Focus.First|g.Focus.AutoFocus)!==g.FocusResult.Error)return}else if((0,g.focusIn)(n,g.Focus.First)!==g.FocusResult.Error)return;if(null!=o&&o.current&&((0,g.focusElement)(o.current),(null==t?void 0:t.activeElement)===o.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}l.current=null==t?void 0:t.activeElement})},[o,u,e]),l}(F,{ownerDocument:O,container:w,initialFocus:R,initialFocusFallback:C});!function(e,{ownerDocument:t,container:n,containers:i,previousActiveElement:r}){let a=(0,s.useIsMounted)(),l=!!(4&e);(0,o.useEventListener)(null==t?void 0:t.defaultView,"focus",e=>{if(!l||!a.current)return;let t=S(i);v.isHTMLElement(n.current)&&t.add(n.current);let o=r.current;if(!o)return;let s=e.target;v.isHTMLElement(s)?T(t,s)?(r.current=s,(0,g.focusElement)(s)):(e.preventDefault(),e.stopPropagation(),(0,g.focusElement)(o)):(0,g.focusElement)(r.current)},!0)}(F,{ownerDocument:O,container:w,containers:M,previousActiveElement:k});let A=(0,f.useTabDirection)(),D=(0,r.useEvent)(e=>{if(!v.isHTMLElement(w.current))return;let t=w.current;(0,y.match)(A.current,{[f.Direction.Forwards]:()=>{(0,g.focusIn)(t,g.Focus.First,{skipElements:[e.relatedTarget,C]})},[f.Direction.Backwards]:()=>{(0,g.focusIn)(t,g.Focus.Last,{skipElements:[e.relatedTarget,C]})}})}),L=(0,a.useIsTopLayer)(!!(2&F),"focus-trap#tab-lock"),V=(0,i.useDisposables)(),B=(0,n.useRef)(!1),N=(0,E.useRender)();return n.default.createElement(n.default.Fragment,null,L&&n.default.createElement(h.Hidden,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:D,features:h.HiddenFeatures.Focusable}),N({ourProps:{ref:P,onKeyDown(e){"Tab"==e.key&&(B.current=!0,V.requestAnimationFrame(()=>{B.current=!1}))},onBlur(e){if(!(4&F))return;let t=S(M);v.isHTMLElement(w.current)&&t.add(w.current);let n=e.relatedTarget;v.isHTMLorSVGElement(n)&&"true"!==n.dataset.headlessuiFocusGuard&&(T(t,n)||(B.current?(0,g.focusIn)(w.current,(0,y.match)(A.current,{[f.Direction.Forwards]:()=>g.Focus.Next,[f.Direction.Backwards]:()=>g.Focus.Previous})|g.Focus.WrapAround,{relativeTo:e.target}):v.isHTMLorSVGElement(e.target)&&(0,g.focusElement)(e.target)))}},theirProps:I,defaultTag:"div",name:"FocusTrap"}),L&&n.default.createElement(h.Hidden,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:D,features:h.HiddenFeatures.Focusable}))}),{features:w});function T(e,t){for(let n of e)if(n.contains(t))return!0;return!1}e.s(["FocusTrap",0,P,"FocusTrapFeatures",0,w])},13589,e=>{"use strict";var t=e.i(29427),n=e.i(71330),i=e.i(71645),r=e.i(55743),o=e.i(1893),s=e.i(42803),a=e.i(20),l=e.i(35889),u=e.i(22678);let c=(0,a.forwardRefWithAs)(function(e,c){let d=(0,i.useId)(),f=(0,s.useProvidedId)(),p=(0,o.useDisabled)(),{id:h=f||`headlessui-input-${d}`,disabled:m=p||!1,autoFocus:v=!1,invalid:g=!1,...y}=e,b=(0,u.useLabelledBy)(),x=(0,l.useDescribedBy)(),{isFocused:E,focusProps:S}=(0,t.useFocusRing)({autoFocus:v}),{isHovered:w,hoverProps:P}=(0,n.useHover)({isDisabled:m}),T=(0,a.mergeProps)({ref:c,id:h,"aria-labelledby":b,"aria-describedby":x,"aria-invalid":g?"true":void 0,disabled:m||void 0,autoFocus:v},S,P),R=(0,r.useSlot)({disabled:m,invalid:g,hover:w,focus:E,autofocus:v});return(0,a.useRender)()({ourProps:T,theirProps:y,slot:R,defaultTag:"input",name:"Input"})});e.s(["Input",0,c])},98348,e=>{"use strict";let t;var n=((t=n||{}).Space=" ",t.Enter="Enter",t.Escape="Escape",t.Backspace="Backspace",t.Delete="Delete",t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Home="Home",t.End="End",t.PageUp="PageUp",t.PageDown="PageDown",t.Tab="Tab",t);e.s(["Keys",0,n])},58246,e=>{"use strict";var t=e.i(71645),n=e.i(20),i=e.i(22678);i.Label;let r=(0,n.forwardRefWithAs)(function(e,n){return t.default.createElement(i.Label,{as:"div",ref:n,...e})});e.s(["Legend",0,r])},95470,e=>{"use strict";let t,n,i,r;var o=e.i(29427),s=e.i(71330),a=e.i(71645),l=e.i(74080),u=e.i(94487),c=e.i(36289),d=e.i(3269),f=e.i(14520),p=e.i(46725),h=e.i(92704),m=e.i(14189),v=e.i(88374),g=e.i(84653),y=e.i(35696),b=e.i(41444),x=e.i(77891),E=e.i(52744),S=e.i(5083),w=e.i(57138),P=e.i(44279),T=e.i(1852),R=e.i(55743),C=e.i(94316),M=e.i(495
478),F=e.i(71616),I=e.i(83733),O=e.i(1893),k=e.i(19751),A=e.i(40721),D=e.i(4016),L=e.i(42803),V=e.i(33137),B=e.i(41650),N=e.i(40407),j=e.i(65659),H=e.i(44508),W=e.i(13581),_=e.i(52265),z=e.i(94421),U=e.i(97701),K=e.i(2155),$=e.i(20),G=e.i(35889),q=e.i(98348),Y=e.i(22678),X=e.i(35307),Q=e.i(25720),Z=e.i(67310),J=Object.defineProperty,ee=(e,t,n)=>{let i;return(i="symbol"!=typeof t?t+"":t)in e?J(e,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[i]=n,n},et=((t=et||{})[t.Open=0]="Open",t[t.Closed=1]="Closed",t),en=((n=en||{})[n.Single=0]="Single",n[n.Multi=1]="Multi",n),ei=((i=ei||{})[i.Pointer=0]="Pointer",i[i.Other=1]="Other",i),er=((r=er||{})[r.OpenListbox=0]="OpenListbox",r[r.CloseListbox=1]="CloseListbox",r[r.GoToOption=2]="GoToOption",r[r.Search=3]="Search",r[r.ClearSearch=4]="ClearSearch",r[r.SelectOption=5]="SelectOption",r[r.RegisterOptions=6]="RegisterOptions",r[r.UnregisterOptions=7]="UnregisterOptions",r[r.SetButtonElement=8]="SetButtonElement",r[r.SetOptionsElement=9]="SetOptionsElement",r[r.SortOptions=10]="SortOptions",r[r.MarkButtonAsMoved=11]="MarkButtonAsMoved",r);function eo(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,i=(0,_.sortByDomNode)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),r=n?i.indexOf(n):null;return -1===r&&(r=null),{options:i,activeOptionIndex:r}}let es={1(e){if(e.dataRef.current.disabled||1===e.listboxState)return e;let t=e.buttonElement?Z.ElementPositionState.Tracked((0,Z.computeVisualPosition)(e.buttonElement)):e.buttonPositionState;return{...e,activeOptionIndex:null,pendingFocus:{focus:j.Focus.Nothing},listboxState:1,__demoMode:!1,buttonPositionState:t}},0(e,t){if(e.dataRef.current.disabled||0===e.listboxState)return e;let n=e.activeOptionIndex,{isSelected:i}=e.dataRef.current,r=e.options.findIndex(e=>i(e.dataRef.current.value));return -1!==r&&(n=r),{...e,frozenValue:!1,pendingFocus:t.focus,listboxState:0,activeOptionIndex:n,__demoMode:!1,buttonPositionState:Z.ElementPositionState.Idle}},2(e,t){var n,i,r,o,s;if(e.dataRef.current.disabled||1===e.listboxState)return e;let a={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===j.Focus.Nothing)return{...a,activeOptionIndex:null};if(t.focus===j.Focus.Specific)return{...a,activeOptionIndex:e.options.findIndex(e=>e.id===t.id)};if(t.focus===j.Focus.Previous){let n=e.activeOptionIndex;if(null!==n){let o=e.options[n].dataRef.current.domRef,s=(0,j.calculateActiveIndex)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==s){let t=e.options[s].dataRef.current.domRef;if((null==(i=o.current)?void 0:i.previousElementSibling)===t.current||(null==(r=t.current)?void 0:r.previousElementSibling)===null)return{...a,activeOptionIndex:s}}}}else if(t.focus===j.Focus.Next){let n=e.activeOptionIndex;if(null!==n){let i=e.options[n].dataRef.current.domRef,r=(0,j.calculateActiveIndex)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==r){let t=e.options[r].dataRef.current.domRef;if((null==(o=i.current)?void 0:o.nextElementSibling)===t.current||(null==(s=t.current)?void 0:s.nextElementSibling)===null)return{...a,activeOptionIndex:r}}}}let l=eo(e),u=(0,j.calculateActiveIndex)(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...a,...l,activeOptionIndex:u}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=+(""===e.searchQuery),i=e.searchQuery+t.value.toLowerCase(),r=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(i))}),o=r?e.options.indexOf(r):-1;return -1===o||o===e.activeOptionIndex?{...e,searchQuery:i}:{...e,searchQuery:i,activeOptionIndex:o,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:e=>0===e.dataRef.current.mode?{...e,frozenValue:!0}:{...e},6:(e,t)=>{let n=e.options.concat(t.options),i=e.activeOptionIndex;if(e.pendingFocus.focus!==j.Focus.Nothing&&(i=(0,j.calculateActiveIndex)(e.pendingFocus,{resolveItems:()=>n,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),null===e.activeOptionIndex){let{isSelected:t}=e.dataRef.current;if(t){let e=n.findIndex(e=>null==t?void 0:t(e.dataRef.current.value));-1!==e&&(i=e)}}return{...e,options:n,activeOptionIndex:i,pendingFocus:{focus:j.Focus.Nothing},pendingShouldSort:!0}},7:(e,t)=>{let n=e.options,i=[],r=new Set(t.options);for(let[e,t]of n.entries())if(r.has(t.id)&&(i.push(e),r.delete(t.id),0===r.size))break;if(i.length>0)for(let e of(n=n.slice(),i.reverse()))n.splice(e,1);return{...e,options:n,activationTrigger:1}},8:(e,t)=>
4e.buttonElement===t.element?e:{...e,buttonElement:t.element},9:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},10:e=>e.pendingShouldSort?{...e,...eo(e),pendingShouldSort:!1}:e,11:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:Z.ElementPositionState.Moved}};class ea extends Q.Machine{constructor(e){super(e),ee(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:i,value:r}=this.state.dataRef.current;return(0,U.match)(i,{0:()=>null==t?void 0:t(e),1:()=>{let i=r.slice(),o=i.findIndex(t=>n(t,e));return -1===o?i.push(e):i.splice(o,1),null==t?void 0:t(i)}})},registerOption:(0,Q.batch)(()=>{let e=[],t=new Set;return[(n,i)=>{t.has(i)||(t.add(i),e.push({id:n,dataRef:i}))},()=>(t.clear(),this.send({type:6,options:e.splice(0)}))]}),unregisterOption:(0,Q.batch)(()=>{let e=[];return[t=>e.push(t),()=>{this.send({type:7,options:e.splice(0)})}]}),goToOption:(0,Q.batch)(()=>{let e=null;return[(t,n)=>{e={type:2,...t,trigger:n}},()=>e&&this.send(e)]}),closeListbox:()=>{this.send({type:1})},openListbox:e=>{this.send({type:0,focus:e})},selectActiveOption:()=>{var e;if(null!==this.state.activeOptionIndex){let{dataRef:e}=this.state.options[this.state.activeOptionIndex];this.actions.selectOption(e.current.value)}else 0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(e=this.state.buttonElement)||e.focus({preventScroll:!0}))},selectOption:e=>{this.send({type:5,value:e})},search:e=>{this.send({type:3,value:e})},clearSearch:()=>{this.send({type:4})},setButtonElement:e=>{this.send({type:8,element:e})},setOptionsElement:e=>{this.send({type:9,element:e})}}),ee(this,"selectors",{activeDescendantId(e){var t;let n=e.activeOptionIndex,i=e.options;return null===n||null==(t=i[n])?void 0:t.id},isActive(e,t){var n;let i=e.activeOptionIndex,r=e.options;return null!==i&&(null==(n=r[i])?void 0:n.id)===t},hasFrozenValue:e=>e.frozenValue,shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.listboxState&&0!==e.activationTrigger&&this.isActive(e,t)},didButtonMove:e=>"Moved"===e.buttonPositionState.kind}),this.on(6,()=>{requestAnimationFrame(()=>{this.send({type:10})})});{let e=this.state.id,t=B.stackMachines.get(null);this.disposables.add(t.on(B.ActionTypes.Push,n=>{t.selectors.isTop(n,e)||0!==this.state.listboxState||this.actions.closeListbox()})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.buttonElement&&(e.dispose(),e.add((0,Z.detectMovement)(t.buttonElement,t.buttonPositionState,()=>{this.send({type:11})})))})}),this.on(5,(e,t)=>{var n;this.actions.onChange(t.value),0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(n=this.state.buttonElement)||n.focus({preventScroll:!0}))})}static new({id:e,__demoMode:t=!1}){return new ea({id:e,dataRef:{current:{}},listboxState:+!t,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:j.Focus.Nothing},frozenValue:!1,__demoMode:t,buttonPositionState:Z.ElementPositionState.Idle})}reduce(e,t){return(0,U.match)(t.type,es,e,t)}}var el=e.i(26599);let eu=(0,a.createContext)(null);function ec(e){let t=(0,a.useContext)(eu);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ed),t}return t}function ed({id:e,__demoMode:t=!1}){let n=(0,a.useMemo)(()=>ea.new({id:e,__demoMode:t}),[]);return(0,el.useOnUnmount)(()=>n.dispose()),n}let ef=(0,a.createContext)(null);function ep(e){let t=(0,a.useContext)(ef);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ep),t}return t}ef.displayName="ListboxDataContext";let eh=a.Fragment,em=(0,a.createContext)(!1),ev=$.RenderFeatures.RenderStrategy|$.RenderFeatures.Static,eg=a.Fragment,ey=(0,$.forwardRefWithAs)(function(e,t){let n=(0,a.useId)(),i=(0,O.useDisabled)(),{value:r,defaultValue:o,form:s,name:l,onChange:u,by:p,invalid:h=!1,disabled:m=i||!1,horizontal:v=!1,multiple:g=!1,__demoMode:b=!1,...x}=e,S=(0,C.useSyncRefs)(t),w=(0,f.useDefaultValue)(o),[P=g?[]:void 0,T]=(0,d.useControllable)(r,u,w),M=ed({id:n,__demoMode:b}),F=(0,a.useRef)({static:!1,hold:!1}),I=(0,a.useRef)(new Map),D=(0,c.useByComparator)(p),L=(0,a.useCallback)(e=>(0,U.match)(j.mode,{[en.Multi]:()=>P.some(t=>D(t,e)),[en.Single]:()=>D(P,e)}),[P]),j=(0,R.useSlot)({value:P,disabled:m,invalid:h,mode:g?en.Multi:en.Single,orientation:v?"horizontal":"vertical",onChange:T,compare:D,isSelected:L,optionsPropsRef:F,listRef:I});(0,y.useIsoMorphicEffect)(()=>{M.state.dataRef.current=j},[j]);let H=(0,N.useSlice)(M,e=>e.listboxState),W=B.stackMachines.get(null),z=(0,N.useSlice)(W,(0,a.useCallback)(e=>W.selectors.isTop(e,n),[W,n])),[K,G]=(0,N.useSlice)(M,e=>[e.buttonElement,e.optionsElement]);(0,E.useOutsideClick)(z,[K,G],(e,t)=>{M.send({type:er.CloseListbox}),(0,_.isFocusableElement)(t,_.FocusableMode.Loose)||(e.preventDefault(),null==K||K.focus())});let q=(0,R.useSlot)({open:H===et.Open,disabled:m,invalid:h,value:P}),[X,Q]=(0,Y.useLabels)({inherit:!0}),Z=(0,a.useCallback)(()=>
4{if(void 0!==w)return null==T?void 0:T(w)},[T,w]),J=(0,$.useRender)();return a.default.createElement(Q,{value:X,props:{htmlFor:null==K?void 0:K.id},slot:{open:H===et.Open,disabled:m}},a.default.createElement(k.FloatingProvider,null,a.default.createElement(eu.Provider,{value:M},a.default.createElement(ef.Provider,{value:j},a.default.createElement(V.OpenClosedProvider,{value:(0,U.match)(H,{[et.Open]:V.State.Open,[et.Closed]:V.State.Closed})},null!=l&&null!=P&&a.default.createElement(A.FormFields,{disabled:m,data:{[l]:P},form:s,onReset:Z}),J({ourProps:{ref:S},theirProps:x,slot:q,defaultTag:eh,name:"Listbox"}))))))}),eb=(0,$.forwardRefWithAs)(function(e,t){let n=(0,a.useId)(),i=(0,L.useProvidedId)(),r=ep("Listbox.Button"),c=ec("Listbox.Button"),{id:d=i||`headlessui-listbox-button-${n}`,disabled:f=r.disabled||!1,autoFocus:p=!1,...h}=e,g=(0,C.useSyncRefs)(t,(0,k.useFloatingReference)(),c.actions.setButtonElement),y=(0,k.useFloatingReferenceProps)(),[b,x,E]=(0,N.useSlice)(c,e=>[e.listboxState,e.buttonElement,e.optionsElement]),S=b===et.Open;(0,w.useQuickRelease)(S,{trigger:x,action:(0,a.useCallback)(e=>{if(null!=x&&x.contains(e.target))return w.Action.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return W.isHTMLElement(t)?w.Action.Select(t):null!=E&&E.contains(e.target)?w.Action.Ignore:w.Action.Close},[x,E]),close:c.actions.closeListbox,select:c.actions.selectActiveOption});let T=(0,m.useEvent)(e=>{switch(e.key){case q.Keys.Enter:(0,z.attemptSubmit)(e.currentTarget);break;case q.Keys.Space:case q.Keys.ArrowDown:e.preventDefault(),c.actions.openListbox({focus:r.value?j.Focus.Nothing:j.Focus.First});break;case q.Keys.ArrowUp:e.preventDefault(),c.actions.openListbox({focus:r.value?j.Focus.Nothing:j.Focus.Last})}}),M=(0,m.useEvent)(e=>{e.key===q.Keys.Space&&e.preventDefault()}),F=(0,v.useHandleToggle)(e=>{var t;c.state.listboxState===et.Open?((0,l.flushSync)(()=>c.actions.closeListbox()),null==(t=c.state.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),c.actions.openListbox({focus:j.Focus.Nothing}))}),I=(0,m.useEvent)(e=>e.preventDefault()),O=(0,Y.useLabelledBy)([d]),A=(0,G.useDescribedBy)(),{isFocusVisible:D,focusProps:V}=(0,o.useFocusRing)({autoFocus:p}),{isHovered:B,hoverProps:H}=(0,s.useHover)({isDisabled:f}),{pressed:_,pressProps:U}=(0,u.useActivePress)({disabled:f}),K=(0,R.useSlot)({open:b===et.Open,active:_||b===et.Open,disabled:f,invalid:r.invalid,value:r.value,hover:B,focus:D,autofocus:p}),X=(0,N.useSlice)(c,e=>e.listboxState===et.Open),Q=(0,$.mergeProps)(y(),{ref:g,id:d,type:(0,P.useResolveButtonType)(e,x),"aria-haspopup":"listbox","aria-controls":null==E?void 0:E.id,"aria-expanded":X,"aria-labelledby":O,"aria-describedby":A,disabled:f||void 0,autoFocus:p,onKeyDown:T,onKeyUp:M,onKeyPress:I},F,V,H,U);return(0,$.useRender)()({ourProps:Q,theirProps:h,slot:K,defaultTag:"button",name:"Listbox.Button"})}),ex=Y.Label,eE=(0,$.forwardRefWithAs)(function(e,t){let n=(0,a.useId)(),{id:i=`headlessui-listbox-options-${n}`,anchor:r,portal:o=!1,modal:s=!0,transition:u=!1,...c}=e,d=(0,k.useResolvedAnchor)(r),[f,v]=(0,a.useState)(null);d&&(o=!0);let y=ep("Listbox.Options"),b=ec("Listbox.Options"),[E,w,P,M]=(0,N.useSlice)(b,e=>[e.listboxState,e.buttonElement,e.optionsElement,e.__demoMode]),F=(0,S.useOwnerDocument)(w),O=(0,S.useOwnerDocument)(P),A=(0,V.useOpenClosed)(),[L,B]=(0,I.useTransition)(u,f,null!==A?(A&V.State.Open)===V.State.Open:E===et.Open);(0,x.useOnDisappear)(L,w,b.actions.closeListbox);let H=!M&&s&&E===et.Open;(0,T.useScrollLock)(H,O);let W=!M&&s&&E===et.Open;(0,g.useInertOthers)(W,{allowed:(0,a.useCallback)(()=>[w,P],[w,P])});let z=!(0,N.useSlice)(b,b.selectors.didButtonMove)&&L,G=(0,N.useSlice)(b,b.selectors.hasFrozenValue)&&!e.static,Y=(0,D.useFrozenData)(G,y.value),Q=(0,a.useCallback)(e=>y.compare(Y,e),[y.compare,Y]),Z=(0,N.useSlice)(b,e=>{var t;if(null==d||!(null!=(t=null==d?void 0:d.to)&&t.includes("selection")))return null;let n=e.options.findIndex(e=>Q(e.dataRef.current.value));return -1===n&&(n=0),n}),J=(()=>{if(null==d)return;if(null===Z)return{...d,inner:void 0};let e=Array.from(y.listRef.current.values());return{...d,inner:{listRef:{current:e},index:Z}}})(),[ee,ei]=(0,k.useFloatingPanel)(J),er=(0,k.useFloatingPanelProps)(),eo=(0,C.useSyncRefs)(t,d?ee:null,b.actions.setOptionsElement,v),es=(0,p.useDisposables)();(0,a.useEffect)(()=>
4{P&&E===et.Open&&((0,K.isActiveElement)(P)||null==P||P.focus({preventScroll:!0}))},[E,P]);let ea=(0,m.useEvent)(e=>{var t;switch(es.dispose(),e.key){case q.Keys.Space:if(""!==b.state.searchQuery)return e.preventDefault(),e.stopPropagation(),b.actions.search(e.key);case q.Keys.Enter:e.preventDefault(),e.stopPropagation(),b.actions.selectActiveOption();break;case(0,U.match)(y.orientation,{vertical:q.Keys.ArrowDown,horizontal:q.Keys.ArrowRight}):return e.preventDefault(),e.stopPropagation(),b.actions.goToOption({focus:j.Focus.Next});case(0,U.match)(y.orientation,{vertical:q.Keys.ArrowUp,horizontal:q.Keys.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),b.actions.goToOption({focus:j.Focus.Previous});case q.Keys.Home:case q.Keys.PageUp:return e.preventDefault(),e.stopPropagation(),b.actions.goToOption({focus:j.Focus.First});case q.Keys.End:case q.Keys.PageDown:return e.preventDefault(),e.stopPropagation(),b.actions.goToOption({focus:j.Focus.Last});case q.Keys.Escape:e.preventDefault(),e.stopPropagation(),(0,l.flushSync)(()=>b.actions.closeListbox()),null==(t=b.state.buttonElement)||t.focus({preventScroll:!0});return;case q.Keys.Tab:e.preventDefault(),e.stopPropagation(),(0,l.flushSync)(()=>b.actions.closeListbox()),(0,_.focusFrom)(b.state.buttonElement,e.shiftKey?_.Focus.Previous:_.Focus.Next);break;default:1===e.key.length&&(b.actions.search(e.key),es.setTimeout(()=>b.actions.clearSearch(),350))}}),el=(0,N.useSlice)(b,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),eu=(0,R.useSlot)({open:E===et.Open}),ed=(0,$.mergeProps)(d?er():{},{id:i,ref:eo,"aria-activedescendant":(0,N.useSlice)(b,b.selectors.activeDescendantId),"aria-multiselectable":y.mode===en.Multi||void 0,"aria-labelledby":el,"aria-orientation":y.orientation,onKeyDown:ea,role:"listbox",tabIndex:E===et.Open?0:void 0,style:{...c.style,...ei,"--button-width":(0,h.useElementSize)(L,w,!0).width},...(0,I.transitionDataAttributes)(B)}),eh=(0,$.useRender)(),em=(0,a.useMemo)(()=>y.mode===en.Multi?y:{...y,isSelected:Q},[y,Q]);return a.default.createElement(X.Portal,{enabled:!!o&&(e.static||L),ownerDocument:F},a.default.createElement(ef.Provider,{value:em},eh({ourProps:ed,theirProps:c,slot:eu,defaultTag:"div",features:ev,visible:z,name:"Listbox.Options"}
4)))}),eS=(0,$.forwardRefWithAs)(function(e,t){let n=(0,a.useId)(),{id:i=`headlessui-listbox-option-${n}`,disabled:r=!1,value:o,...s}=e,l=!0===(0,a.useContext)(em),u=ep("Listbox.Option"),c=ec("Listbox.Option"),d=(0,N.useSlice)(c,e=>c.selectors.isActive(e,i)),f=u.isSelected(o),p=(0,a.useRef)(null),h=(0,M.useTextValue)(p),v=(0,b.useLatestValue)({disabled:r,value:o,domRef:p,get textValue(){return h()}}),g=(0,C.useSyncRefs)(t,p,e=>{e?u.listRef.current.set(i,e):u.listRef.current.delete(i)}),x=(0,N.useSlice)(c,e=>c.selectors.shouldScrollIntoView(e,i));(0,y.useIsoMorphicEffect)(()=>{if(x)return(0,H.disposables)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=p.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[x,p]),(0,y.useIsoMorphicEffect)(()=>{if(!l)return c.actions.registerOption(i,v),()=>c.actions.unregisterOption(i)},[v,i,l]);let E=(0,m.useEvent)(e=>{if(r)return e.preventDefault();c.actions.selectOption(o)}),S=(0,m.useEvent)(()=>{if(r)return c.actions.goToOption({focus:j.Focus.Nothing});c.actions.goToOption({focus:j.Focus.Specific,id:i})}),w=(0,F.useTrackedPointer)(),P=(0,m.useEvent)(e=>w.update(e)),T=(0,m.useEvent)(e=>{w.wasMoved(e)&&(r||d&&c.state.activationTrigger===ei.Pointer||c.actions.goToOption({focus:j.Focus.Specific,id:i},ei.Pointer))}),I=(0,m.useEvent)(e=>{w.wasMoved(e)&&(r||d&&c.state.activationTrigger===ei.Pointer&&c.actions.goToOption({focus:j.Focus.Nothing}))}),O=(0,R.useSlot)({active:d,focus:d,selected:f,disabled:r,selectedOption:f&&l}),k=l?{}:{id:i,ref:g,role:"option",tabIndex:!0===r?void 0:-1,"aria-disabled":!0===r||void 0,"aria-selected":f,disabled:void 0,onClick:E,onFocus:S,onPointerEnter:P,onMouseEnter:P,onPointerMove:T,onMouseMove:T,onPointerLeave:I,onMouseLeave:I},A=(0,$.useRender)();return!f&&l?null:A({ourProps:k,theirProps:s,slot:O,defaultTag:"div",name:"Listbox.Option"})}),ew=(0,$.forwardRefWithAs)(function(e,t){let{options:n,placeholder:i,...r}=e,o={ref:(0,C.useSyncRefs)(t)},s=ep("ListboxSelectedOption"),l=(0,R.useSlot)({}),u=void 0===s.value||null===s.value||s.mode===en.Multi&&Array.isArray(s.value)&&0===s.value.length,c=(0,$.useRender)();return a.default.createElement(em.Provider,{value:!0},c({ourProps:o,theirProps:{...r,children:a.default.createElement(a.default.Fragment,null,i&&u?i:n)},slot:l,defaultTag:eg,name:"ListboxSelectedOption"}))}),eP=Object.assign(ey,{Button:eb,Label:ex,Options:eE,Option:eS,SelectedOption:ew});e.s(["Listbox",0,eP,"ListboxButton",0,eb,"ListboxLabel",0,ex,"ListboxOption",0,eS,"ListboxOptions",0,eE,"ListboxSelectedOption",0,ew],95470)},89895,e=>{"use strict";let t,n,i;var r=e.i(29427),o=e.i(71330),s=e.i(71645),a=e.i(74080),l=e.i(94487),u=e.i(46725),c=e.i(92704),d=e.i(14189),f=e.i(88374),p=e.i(84653),h=e.i(35696),m=e.i(77891),v=e.i(52744),g=e.i(5083),y=e.i(57138),b=e.i(44279),x=e.i(1852),E=e.i(55743),S=e.i(94316),w=e.i(49578),P=e.i(71616),T=e.i(83733),R=e.i(40143),C=e.i(19751),M=e.i(33137),F=e.i(41650),I=e.i(40407),O=e.i(65659),k=e.i(44508),A=e.i(13581),D=e.i(52265),L=e.i(97701),V=e.i(2155),B=e.i(20),N=e.i(35889),j=e.i(98348),H=e.i(22678),W=e.i(35307),_=e.i(25720),z=e.i(67310),U=Object.defineProperty,K=(e,t,n)=>{let i;return(i="symbol"!=typeof t?t+"":t)in e?U(e,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[i]=n,n},$=((t=$||{})[t.Open=0]="Open",t[t.Closed=1]="Closed",t),G=((n=G||{})[n.Pointer=0]="Pointer",n[n.Other=1]="Other",n),q=((i=q||{})[i.OpenMenu=0]="OpenMenu",i[i.CloseMenu=1]="CloseMenu",i[i.GoToItem=2]="GoToItem",i[i.Search=3]="Search",i[i.ClearSearch=4]="ClearSearch",i[i.RegisterItems=5]="RegisterItems",i[i.UnregisterItems=6]="UnregisterItems",i[i.SetButtonElement=7]="SetButtonElement",i[i.SetItemsElement=8]="SetItemsElement",i[i.SortItems=9]="SortItems",i[i.MarkButtonAsMoved=10]="MarkButtonAsMoved",i);function Y(e,t=e=>e){let n=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,i=(0,D.sortByDomNode)(t(e.items.slice()),e=>e.dataRef.current.domRef.current),r=n?i.indexOf(n):null;return -1===r&&(r=null),{items:i,activeItemIndex:r}}let X={1(e){if(1===e.menuState)return e;let t=e.buttonElement?z.ElementPositionState.Tracked((0,z.computeVisualPosition)(e.buttonElement)):e.buttonPositionState;return{...e,activeItemIndex:null,pendingFocus:{focus:O.Focus.Nothing},menuState:1,buttonPositionState:t}},0:(e,t)=>0===e.menuState?e:{...e,__demoMode:!1,pendingFocus:t.focus,menuState:0,buttonPositionState:z.ElementPositionState.Idle},2:(e,t)=>{var n,i,r,o,s;if(1===e.menuState)return e;let a={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===O.Focus.Nothing)return{...a,activeItemIndex:null};if(t.focus===O.Focus.Specific)return{...a,activeItemIndex:e.items.findIndex(e=>e.id===t.id)};if(t.focus===O.Focus.Previous){let n=e.activeItemIndex;if(null!==n){let o=e.items[n].dataRef.current.domRef,s=(0,O.calculateActiveIndex)(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==s){let t=e.items[s].dataRef.current.domRef;if((null==(i=o.current)?void 0:i.previousElementSibling)===t.current||(null==(r=t.current)?void 0:r.previousElementSibling)===null)return{...a,activeItemIndex:s}}}}else if(t.focus===O.Focus.Next){let n=e.activeItemIndex;if(null!==n){let i=e.items[n].dataRef.current.domRef,r=(0,O.calculateActiveIndex)(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==r){let t=e.items[r].dataRef.current.domRef;if((null==(o=i.current)?void 0:o.nextElementSibling)===t.current||(null==(s=t.current)?void 0:s.nextElementSibling)===null)return{...a,activeItemIndex:r}}}}let l=Y(e),u=(0,O.calculateActiveIndex)(t,{resolveItems:()=>l.items,resolveActiveIndex:()=>l.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...a,...l,activeItemIndex:u}},3:(e,t)=>
4{let n=+(""===e.searchQuery),i=e.searchQuery+t.value.toLowerCase(),r=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find(e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(i))&&!e.dataRef.current.disabled}),o=r?e.items.indexOf(r):-1;return -1===o||o===e.activeItemIndex?{...e,searchQuery:i}:{...e,searchQuery:i,activeItemIndex:o,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let n=e.items.concat(t.items.map(e=>e)),i=e.activeItemIndex;return e.pendingFocus.focus!==O.Focus.Nothing&&(i=(0,O.calculateActiveIndex)(e.pendingFocus,{resolveItems:()=>n,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),{...e,items:n,activeItemIndex:i,pendingFocus:{focus:O.Focus.Nothing},pendingShouldSort:!0}},6:(e,t)=>{let n=e.items,i=[],r=new Set(t.items);for(let[e,t]of n.entries())if(r.has(t.id)&&(i.push(e),r.delete(t.id),0===r.size))break;if(i.length>0)for(let e of(n=n.slice(),i.reverse()))n.splice(e,1);return{...e,items:n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.itemsElement===t.element?e:{...e,itemsElement:t.element},9:e=>e.pendingShouldSort?{...e,...Y(e),pendingShouldSort:!1}:e,10:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:z.ElementPositionState.Moved}};class Q extends _.Machine{constructor(e){super(e),K(this,"actions",{registerItem:(0,_.batch)(()=>{let e=[],t=new Set;return[(n,i)=>{t.has(i)||(t.add(i),e.push({id:n,dataRef:i}))},()=>(t.clear(),this.send({type:5,items:e.splice(0)}))]}),unregisterItem:(0,_.batch)(()=>{let e=[];return[t=>e.push(t),()=>this.send({type:6,items:e.splice(0)})]})}),K(this,"selectors",{activeDescendantId(e){var t;let n=e.activeItemIndex,i=e.items;return null===n||null==(t=i[n])?void 0:t.id},isActive(e,t){var n;let i=e.activeItemIndex,r=e.items;return null!==i&&(null==(n=r[i])?void 0:n.id)===t},shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.menuState&&0!==e.activationTrigger&&this.isActive(e,t)},didButtonMove:e=>"Moved"===e.buttonPositionState.kind}),this.on(5,()=>{this.disposables.requestAnimationFrame(()=>{this.send({type:9})})});{let e=this.state.id,t=F.stackMachines.get(null);this.disposables.add(t.on(F.ActionTypes.Push,n=>{t.selectors.isTop(n,e)||0!==this.state.menuState||this.send({type:1})})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.buttonElement&&(e.dispose(),e.add((0,z.detectMovement)(t.buttonElement,t.buttonPositionState,()=>{this.send({type:10})})))})})}static new({id:e,__demoMode:t=!1}){return new Q({id:e,__demoMode:t,menuState:+!t,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1,pendingShouldSort:!1,pendingFocus:{focus:O.Focus.Nothing},buttonPositionState:z.ElementPositionState.Idle})}reduce(e,t){return(0,L.match)(t.type,X,e,t)}}var Z=e.i(26599);let J=(0,s.createContext)(null);function ee(e){let t=(0,s.useContext)(J);if(null===t){let t=Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,et),t}return t}function et({id:e,__demoMode:t=!1}){let n=(0,s.useMemo)(()=>Q.new({id:e,__demoMode:t}),[]);return(0,Z.useOnUnmount)(()=>n.dispose()),n}let en=s.Fragment,ei=B.RenderFeatures.RenderStrategy|B.RenderFeatures.Static,er=s.Fragment,eo=(0,B.forwardRefWithAs)(function(e,t){let n=(0,s.useId)(),{__demoMode:i=!1,...r}=e,o=et({id:n,__demoMode:i}),[a,l,u]=(0,I.useSlice)(o,e=>[e.menuState,e.itemsElement,e.buttonElement]),c=(0,S.useSyncRefs)(t),f=F.stackMachines.get(null),p=(0,I.useSlice)(f,(0,s.useCallback)(e=>f.selectors.isTop(e,n),[f,n]));(0,v.useOutsideClick)(p,[u,l],(e,t)=>{var n;o.send({type:q.CloseMenu}),(0,D.isFocusableElement)(t,D.FocusableMode.Loose)||(e.preventDefault(),null==(n=o.state.buttonElement)||n.focus())});let h=(0,d.useEvent)(()=>{o.send({type:q.CloseMenu})}),m=(0,E.useSlot)({open:a===$.Open,close:h}),g=(0,B.useRender)();return s.default.createElement(C.FloatingProvider,null,s.default.createElement(J.Provider,{value:o},s.default.createElement(M.OpenClosedProvider,{value:(0,L.match)(a,{[$.Open]:M.State.Open,[$.Closed]:M.State.Closed})},g({ourProps:{ref:c},theirProps:r,slot:m,defaultTag:en,name:"Menu"}))))}),es=(0,B.forwardRefWithAs)(function(e,t){let n=ee("Menu.Button"),i=(0,s.useId)(),{id:u=`headlessui-menu-button-${i}`,disabled:c=!1,autoFocus:p=!1,...h}=e,m=(0,s.useRef)(null),v=(0,C.useFloatingReferenceProps)(),g=(0,S.useSyncRefs)(t,m,(0,C.useFloatingReference)(),(0,d.useEvent)(e=>n.send({type:q.SetButtonElement,element:e}))),x=(0,d.useEvent)(e=>{switch(e.key){case j.Keys.Space:case j.Keys.Enter:case j.Keys.ArrowDown:e.preventDefault(),e.stopPropagation(),n.send({type:q.OpenMenu,focus:{focus:O.Focus.First}});break;case j.Keys.ArrowUp:e.preventDefault(),e.stopPropagation(),n.send({type:q.OpenMenu,focus:{focus:O.Focus.Last}})}}),w=(0,d.useEvent)(e=>{e.key===j.Keys.Space&&e.preventDefault()}),[P,T,R]=(0,I.useSlice)(n,e=>[e.menuState,e.buttonElement,e.itemsElement]),M=P===$.Open;(0,y.useQuickRelease)(M,{trigger:T,action:(0,s.useCallback)(e=>{if(null!=T&&T.contains(e.target))return y.Action.Ignore;let t=e.target.closest('[role="menuitem"]:not([data-disabled])');return A.isHTMLElement(t)?y.Action.Select(t):null!=R&&R.contains(e.target)?y.Action.Ignore:y.Action.Close},[T,R]),close:(0,s.useCallback)(()=>n.send({type:q.CloseMenu}),[]),select:(0,s.useCallback)(e=>e.click(),[])});let F=(0,f.useHandleToggle)(e=>{var t;c||(P===$.Open?((0,a.flushSync)(()=>n.send({type:q.CloseMenu}
4)),null==(t=m.current)||t.focus({preventScroll:!0})):(e.preventDefault(),n.send({type:q.OpenMenu,focus:{focus:O.Focus.Nothing},trigger:G.Pointer})))}),{isFocusVisible:k,focusProps:D}=(0,r.useFocusRing)({autoFocus:p}),{isHovered:L,hoverProps:V}=(0,o.useHover)({isDisabled:c}),{pressed:N,pressProps:H}=(0,l.useActivePress)({disabled:c}),W=(0,E.useSlot)({open:P===$.Open,active:N||P===$.Open,disabled:c,hover:L,focus:k,autofocus:p}),_=(0,B.mergeProps)(v(),{ref:g,id:u,type:(0,b.useResolveButtonType)(e,m.current),"aria-haspopup":"menu","aria-controls":null==R?void 0:R.id,"aria-expanded":P===$.Open,disabled:c||void 0,autoFocus:p,onKeyDown:x,onKeyUp:w},F,D,V,H);return(0,B.useRender)()({ourProps:_,theirProps:h,slot:W,defaultTag:"button",name:"Menu.Button"})}),ea=(0,B.forwardRefWithAs)(function(e,t){let n=(0,s.useId)(),{id:i=`headlessui-menu-items-${n}`,anchor:r,portal:o=!1,modal:l=!0,transition:f=!1,...h}=e,v=(0,C.useResolvedAnchor)(r),y=ee("Menu.Items"),[b,w]=(0,C.useFloatingPanel)(v),P=(0,C.useFloatingPanelProps)(),[F,k]=(0,s.use
4State)(null),A=(0,S.useSyncRefs)(t,v?b:null,(0,d.useEvent)(e=>y.send({type:q.SetItemsElement,element:e})),k),[L,N]=(0,I.useSlice)(y,e=>[e.menuState,e.buttonElement]),H=(0,g.useOwnerDocument)(N),_=(0,g.useOwnerDocument)(F);v&&(o=!0);let z=(0,M.useOpenClosed)(),[U,K]=(0,T.useTransition)(f,F,null!==z?(z&M.State.Open)===M.State.Open:L===$.Open);(0,m.useOnDisappear)(U,N,()=>{y.send({type:q.CloseMenu})});let G=(0,I.useSlice)(y,e=>e.__demoMode),Y=!G&&l&&L===$.Open;(0,x.useScrollLock)(Y,_);let X=!G&&l&&L===$.Open;(0,p.useInertOthers)(X,{allowed:(0,s.useCallback)(()=>[N,F],[N,F])});let Q=!(0,I.useSlice)(y,y.selectors.didButtonMove)&&U;(0,s.useEffect)(()=>{F&&L===$.Open&&((0,V.isActiveElement)(F)||F.focus({preventScroll:!0}))},[L,F]),(0,R.useTreeWalker)(L===$.Open,{container:F,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let Z=(0,u.useDisposables)(),J=(0,d.useEvent)(e=>{var t,n,i;switch(Z.dispose(),e.key){case j.Keys.Space:if(""!==y.state.searchQuery)return e.preventDefault(),e.stopPropagation(),y.send({type:q.Search,value:e.key});case j.Keys.Enter:if(e.preventDefault(),e.stopPropagation(),null!==y.state.activeItemIndex){let{dataRef:e}=y.state.items[y.state.activeItemIndex];null==(n=null==(t=e.current)?void 0:t.domRef.current)||n.click()}y.send({type:q.CloseMenu}),(0,D.restoreFocusIfNecessary)(y.state.buttonElement);break;case j.Keys.ArrowDown:return e.preventDefault(),e.stopPropagation(),y.send({type:q.GoToItem,focus:O.Focus.Next});case j.Keys.ArrowUp:return e.preventDefault(),e.stopPropagation(),y.send({type:q.GoToItem,focus:O.Focus.Previous});case j.Keys.Home:case j.Keys.PageUp:return e.preventDefault(),e.stopPropagation(),y.send({type:q.GoToItem,focus:O.Focus.First});case j.Keys.End:case j.Keys.PageDown:return e.preventDefault(),e.stopPropagation(),y.send({type:q.GoToItem,focus:O.Focus.Last});case j.Keys.Escape:e.preventDefault(),e.stopPropagation(),(0,a.flushSync)(()=>y.send({type:q.CloseMenu})),null==(i=y.state.buttonElement)||i.focus({preventScroll:!0});break;case j.Keys.Tab:e.preventDefault(),e.stopPropagation(),(0,a.flushSync)(()=>y.send({type:q.CloseMenu})),(0,D.focusFrom)(y.state.buttonElement,e.shiftKey?D.Focus.Previous:D.Focus.Next);break;default:1===e.key.length&&(y.send({type:q.Search,value:e.key}),Z.setTimeout(()=>y.send({type:q.ClearSearch}),350))}}),et=(0,d.useEvent)(e=>{e.key===j.Keys.Space&&e.preventDefault()}),en=(0,E.useSlot)({open:L===$.Open}),er=(0,B.mergeProps)(v?P():{},{"aria-activedescendant":(0,I.useSlice)(y,y.selectors.activeDescendantId),"aria-labelledby":(0,I.useSlice)(y,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),id:i,onKeyDown:J,onKeyUp:et,role:"menu",tabIndex:L===$.Open?0:void 0,ref:A,style:{...h.style,...w,"--button-width":(0,c.useElementSize)(U,N,!0).width},...(0,T.transitionDataAttributes)(K)}),eo=(0,B.useRender)();return s.default.createElement(W.Portal,{enabled:!!o&&(e.static||U),ownerDocument:H},eo({ourProps:er,theirProps:h,slot:en,defaultTag:"div",features:ei,visible:Q,name:"Menu.Items"}))}),el=(0,B.forwardRefWithAs)(function(e,t){let n=(0,s.useId)(),{id:i=`headlessui-menu-item-${n}`,disabled:r=!1,...o}=e,a=ee("Menu.Item"),l=(0,I.useSlice)(a,e=>a.selectors.isActive(e,i)),u=(0,s.useRef)(null),c=(0,S.useSyncRefs)(t,u),f=(0,I.useSlice)(a,e=>a.selectors.shouldScrollIntoView(e,i));(0,h.useIsoMorphicEffect)(()=>{if(f)return(0,k.disposables)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=u.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[f,u]);let p=(0,w.useTextValue)(u),m=(0,s.useRef)({disabled:r,domRef:u,get textValue(){return p()}});(0,h.useIsoMorphicEffect)(()=>{m.current.disabled=r},[m,r]),(0,h.useIsoMorphicEffect)(()=>(a.actions.registerItem(i,m),()=>a.actions.unregisterItem(i)),[m,i]);let v=(0,d.useEvent)(()=>{a.send({type:q.CloseMenu})}),g=(0,d.useEvent)(e=>{if(r)return e.preventDefault();a.send({type:q.CloseMenu}),(0,D.restoreFocusIfNecessary)(a.state.buttonElement)}),y=(0,d.useEvent)(()=>{if(r)return a.send({type:q.GoToItem,focus:O.Focus.Nothing});a.send({type:q.GoToItem,focus:O.Focus.Specific,id:i})}),b=(0,P.useTrackedPointer)(),x=(0,d.useEvent)(e=>b.update(e)),T=(0,d.useEvent)(e=>{b.wasMoved(e)&&(r||l||a.send({type:q.GoToItem,focus:O.Focus.Specific,id:i,trigger:G.Pointer}))}),R=(0,d.useEvent)(e=>{b.wasMoved(e)&&(r||l&&a.state.activationTrigger===G.Pointer&&a.send({type:q.GoToItem,focus:O.Focus.Nothing}))}),[C,M]=(0,H.useLabels)(),[F,A]=(0,N.useDescriptions)(),L=(0,E.useSlot)({active:l,focus:l,disabled:r,close:v}),V=(0,B.useRender)();return s.default.createElement(M,null,s.default.createElement(A,null,V({ourProps:{id:i,ref:c,role:"menuitem",tabIndex:!0===r?void 0:-1,"aria-disabled":!0===r||void 0,"aria-labelledby":C,"aria-describedby":F,disabled:void 0,onClick:g,onFocus:y,onPointerEnter:x,onMouseEnter:x,onPointerMove:T,onMouseMove:T,onPointerLeave:R,onMouseLeave:R},theirProps:o,slot:L,defaultTag:er,name:"Menu.Item"})))}),eu=(0,B.forwardRefWithAs)(function(e,t){let[n,i]=(0,H.useLabels)(),r=(0,B.useRender)();return s.default.createElement(i,null,r({ourProps:{ref:t,"aria-labelledby":n,role:"group"},theirProps:e,slot:{},defaultTag:"div",name:"Menu.Section"}))}),ec=(0,B.forwardRefWithAs)(function(e,t){let n=(0,s.useId)(),{id:i=`headlessui-menu-heading-${n}`,...r}=e,o=(0,H.useLabelContext)();(0,h.useIsoMorphicEffect)(()=>o.register(i),[i,o.register]);let a={id:i,ref:t,role:"presentation",...o.props};return(0,B.useRender)()({ourProps:a,theirProps:r,slot:{},defaultTag:"header",name:"Menu.Heading"})}),ed=(0,B.forwardRefWithAs)(function(e,t){return(0,B.useRender)()({ourProps:{ref:t,role:"separator"},theirProps:e,slot:{},defaultTag:"div",name:"Menu.Separator"})}
4),ef=Object.assign(eo,{Button:es,Items:ea,Item:el,Section:eu,Heading:ec,Separator:ed});e.s(["Menu",0,ef,"MenuButton",0,es,"MenuHeading",0,ec,"MenuItem",0,el,"MenuItems",0,ea,"MenuSection",0,eu,"MenuSeparator",0,ed],89895)},98307,e=>{"use strict";let t,n;var i=e.i(29427),r=e.i(71330),o=e.i(71645),s=e.i(94487),a=e.i(92704),l=e.i(14189),u=e.i(93456),c=e.i(35696),d=e.i(41444),f=e.i(77891),p=e.i(52744),h=e.i(5083),m=e.i(44279),v=e.i(85935),g=e.i(1852),y=e.i(55743),b=e.i(94316),x=e.i(61130),E=e.i(83733),S=e.i(74175),w=e.i(19751),P=e.i(2788),T=e.i(33137),R=e.i(40407),C=e.i(33538),M=e.i(13581),F=e.i(52265),I=e.i(97701),O=e.i(2155),k=e.i(20),A=e.i(98348),D=e.i(35307),L=e.i(25720),V=e.i(41650),B=Object.defineProperty,N=(e,t,n)=>{let i;return(i="symbol"!=typeof t?t+"":t)in e?B(e,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[i]=n,n},j=((t=j||{})[t.Open=0]="Open",t[t.Closed=1]="Closed",t),H=((n=H||{})[n.OpenPopover=0]="OpenPopover",n[n.ClosePopover=1]="ClosePopover",n[n.SetButton=2]="SetButton",n[n.SetButtonId=3]="SetButtonId",n[n.SetPanel=4]="SetPanel",n[n.SetPanelId=5]="SetPanelId",n);let W={0:e=>0===e.popoverState?e:{...e,popoverState:0,__demoMode:!1},1:e=>1===e.popoverState?e:{...e,popoverState:1,__demoMode:!1},2:(e,t)=>e.button===t.button?e:{...e,button:t.button},3:(e,t)=>
4e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},4:(e,t)=>e.panel===t.panel?e:{...e,panel:t.panel},5:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}};class _ extends L.Machine{constructor(e){super(e),N(this,"actions",{close:()=>this.send({type:1}),refocusableClose:e=>{this.actions.close();let t=e?M.isHTMLElement(e)?e:"current"in e&&M.isHTMLElement(e.current)?e.current:this.state.button:this.state.button;null==t||t.focus()},open:()=>this.send({type:0}),setButtonId:e=>this.send({type:3,buttonId:e}),setButton:e=>this.send({type:2,button:e}),setPanelId:e=>this.send({type:5,panelId:e}),setPanel:e=>this.send({type:4,panel:e})}),N(this,"selectors",{isPortalled:e=>{var t;if(!e.button||!e.panel)return!1;let n=null!=(t=(0,O.getOwnerDocument)(e.button))?t:document;for(let t of n.querySelectorAll("body > *"))if(Number(null==t?void 0:t.contains(e.button))^Number(null==t?void 0:t.contains(e.panel)))return!0;let i=(0,F.getFocusableElements)(n),r=i.indexOf(e.button),o=(r+i.length-1)%i.length,s=(r+1)%i.length,a=i[o],l=i[s];return!e.panel.contains(a)&&!e.panel.contains(l)}});{let e=this.state.id,t=V.stackMachines.get(null);this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}}static new({id:e,__demoMode:t=!1}){return new _({id:e,__demoMode:t,popoverState:+!t,buttons:{current:[]},button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:{current:null},afterPanelSentinel:{current:null},afterButtonSentinel:{current:null}})}reduce(e,t){return(0,I.match)(t.type,W,e,t)}}var z=e.i(26599);let U=(0,o.createContext)(null);function K(e){let t=(0,o.useContext)(U);if(null===t){let t=Error(`<${e} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,K),t}return t}let $=(0,o.createContext)(null);function G(){return(0,o.useContext)($)}$.displayName="PopoverGroupContext";let q=(0,o.createContext)(null);q.displayName="PopoverPanelContext";let Y=k.RenderFeatures.RenderStrategy|k.RenderFeatures.Static;function X(e,t){let n=(0,o.useId)(),{id:i=`headlessui-popover-backdrop-${n}`,transition:r=!1,...s}=e,a=K("Popover.Backdrop"),u=(0,R.useSlice)(a,(0,o.useCallback)(e=>e.popoverState,[])),[c,d]=(0,o.useState)(null),f=(0,b.useSyncRefs)(t,d),p=(0,T.useOpenClosed)(),[h,m]=(0,E.useTransition)(r,c,null!==p?(p&T.State.Open)===T.State.Open:u===j.Open),v=(0,l.useEvent)(e=>{if((0,C.isDisabledReactIssue7711)(e.currentTarget))return e.preventDefault();a.actions.close()}),g=(0,y.useSlot)({open:u===j.Open}),x={ref:f,id:i,"aria-hidden":!0,onClick:v,...(0,E.transitionDataAttributes)(m)};return(0,k.useRender)()({ourProps:x,theirProps:s,slot:g,defaultTag:"div",features:Y,visible:h,name:"Popover.Backdrop"})}let Q=k.RenderFeatures.RenderStrategy|k.RenderFeatures.Static,Z=(0,k.forwardRefWithAs)(function(e,t){var n;let i=(0,o.useId)(),{__demoMode:r=!1,...s}=e,a=function({id:e,__demoMode:t=!1}){let n=(0,o.useMemo)(()=>_.new({id:e,__demoMode:t}),[]);return(0,z.useOnUnmount)(()=>n.dispose()),n}({id:i,__demoMode:r}),c=(0,o.useRef)(null),f=(0,b.useSyncRefs)(t,(0,b.optionalRef)(e=>{c.current=e})),[m,g,x,E,P]=(0,R.useSlice)(a,(0,o.useCallback)(e=>[e.popoverState,e.button,e.panel,e.buttonId,e.panelId],[])),C=(0,h.useRootDocument)(null!=(n=c.current)?n:g),A=(0,d.useLatestValue)(E),L=(0,d.useLatestValue)(P),V=(0,o.useMemo)(()=>({buttonId:A,panelId:L,close:a.actions.close}),[A,L,a]),B=G(),N=null==B?void 0:B.registerPopover,H=(0,l.useEvent)(()=>{var e,t;let n=(0,O.getActiveElement)(null!=(e=c.current)?e:g);return null!=(t=null==B?void 0:B.isFocusWithinPopoverGroup())?t:n&&((null==g?void 0:g.contains(n))||(null==x?void 0:x.contains(n)))});(0,o.useEffect)(()=>null==N?void 0:N(V),[N,V]);let[W,K]=(0,D.useNestedPortals)(),$=(0,v.useMainTreeNode)(g),Y=(0,v.useRootContainers)({mainTreeNode:$,portals:W,defaultContainers:[{get current(){return a.state.button}},{get current(){return a.state.panel}}]});(0,u.useEventListener)(C,"focus",e=>{var t,n,i,r,o,s;e.target!==window&&M.isHTMLorSVGElement(e.target)&&a.state.popoverState===j.Open&&(H()||a.state.button&&a.state.panel&&(Y.contains(e.target)||null!=(n=null==(t=a.state.beforePanelSentinel.current)?void 0:t.contains)&&n.call(t,e.target)||null!=(r=null==(i=a.state.afterPanelSentinel.current)?void 0:i.contains)&&r.call(i,e.target)||null!=(s=null==(o=a.state.afterButtonSentinel.current)?void 0:o.contains)&&s.call(o,e.target)||a.actions.close()))},!0);let X=m===j.Open;
4(0,p.useOutsideClick)(X,Y.resolveContainers,(e,t)=>{a.actions.close(),(0,F.isFocusableElement)(t,F.FocusableMode.Loose)||(e.preventDefault(),null==g||g.focus())});let Q=(0,y.useSlot)({open:m===j.Open,close:a.actions.refocusableClose}),Z=(0,R.useSlice)(a,(0,o.useCallback)(e=>(0,I.match)(e.popoverState,{[j.Open]:T.State.Open,[j.Closed]:T.State.Closed}),[])),J=(0,k.useRender)();return o.default.createElement(v.MainTreeProvider,{node:$},o.default.createElement(w.FloatingProvider,null,o.default.createElement(q.Provider,{value:null},o.default.createElement(U.Provider,{value:a},o.default.createElement(S.CloseProvider,{value:a.actions.refocusableClose},o.default.createElement(T.OpenClosedProvider,{value:Z},o.default.createElement(K,null,J({ourProps:{ref:f},theirProps:s,slot:Q,defaultTag:"div",name:"Popover"}))))))))}),J=(0,k.forwardRefWithAs)(function(e,t){let n=(0,o.useId)(),{id:a=`headlessui-popover-button-${n}`,disabled:u=!1,autoFocus:c=!1,...d}=e,f=K("Popover.Button"),[p,h,v,g,E,S,T]=(0,R.useSlice)(f,(0,o.useCallback)(e=>[e.popoverState,f.selectors.isPortalled(e),e.button,e.buttonId,e.panel,e.panelId,e.afterButtonSentinel],[])),D=(0,o.useRef)(null),L=`headlessui-focus-sentinel-${(0,o.useId)()}`,V=G(),B=null==V?void 0:V.closeOthers,N=null!==(0,o.useContext)(q);(0,o.useEffect)(()=>{if(!N)return f.actions.setButtonId(a),()=>f.actions.setButtonId(null)},[N,a,f]);let[H]=(0,o.useState)(()=>Symbol()),W=(0,b.useSyncRefs)(D,t,(0,w.useFloatingReference)(),(0,l.useEvent)(e=>{if(!N){if(e)f.state.buttons.current.push(H);else{let e=f.state.buttons.current.indexOf(H);-1!==e&&f.state.buttons.current.splice(e,1)}f.state.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),e&&f.actions.setButton(e)}})),_=(0,b.useSyncRefs)(D,t),z=(0,l.useEvent)(e=>{var t,n,i;if(N){if(f.state.popoverState===j.Closed)return;switch(e.key){case A.Keys.Space:case A.Keys.Enter:e.preventDefault(),null==(n=(t=e.target).click)||n.call(t),f.actions.close(),null==(i=f.state.button)||i.focus()}}else switch(e.key){case A.Keys.Space:case A.Keys.Enter:e.preventDefault(),e.stopPropagation(),f.state.popoverState===j.Closed?(null==B||B(f.state.buttonId),f.actions.open()):f.actions.close();break;case A.Keys.Escape:if(f.state.popoverState!==j.Open)return null==B?void 0:B(f.state.buttonId);if(!D.current)return;let r=(0,O.getActiveElement)(D.current);if(r&&!D.current.contains(r))return;e.preventDefault(),e.stopPropagation(),f.actions.close()}}),U=(0,l.useEvent)(e=>{N||e.key===A.Keys.Space&&e.preventDefault()}),$=(0,l.useEvent)(e=>{var t,n;(0,C.isDisabledReactIssue7711)(e.currentTarget)||u||(N?(f.actions.close(),null==(t=f.state.button)||t.focus()):(e.preventDefault(),e.stopPropagation(),f.state.popoverState===j.Closed?(null==B||B(f.state.buttonId),f.actions.open()):f.actions.close(),null==(n=f.state.button)||n.focus()))}),Y=(0,l.useEvent)(e=>{e.preventDefault(),e.stopPropagation()}),{isFocusVisible:X,focusProps:Q}=(0,i.useFocusRing)({autoFocus:c}),{isHovered:Z,hoverProps:J}=(0,r.useHover)({isDisabled:u}),{pressed:ee,pressProps:et}=(0,s.useActivePress)({disabled:u}),en=p===j.Open,ei=(0,y.useSlot)({open:en,active:ee||en,disabled:u,hover:Z,focus:X,autofocus:c}),er=(0,m.useResolveButtonType)(e,v),eo=N?(0,k.mergeProps)({ref:_,type:er,onKeyDown:z,onClick:$,disabled:u||void 0,autoFocus:c},Q,J,et):(0,k.mergeProps)({ref:W,id:g,type:er,"aria-expanded":p===j.Open,"aria-controls":E?S:void 0,disabled:u||void 0,autoFocus:c,onKeyDown:z,onKeyUp:U,onClick:$,onMouseDown:Y},Q,J,et),es=(0,x.useTabDirection)(),ea=(0,l.useEvent)(()=>{if(!M.isHTMLElement(f.state.panel))return;let e=f.state.panel;(0,I.match)(es.current,{[x.Direction.Forwards]:()=>(0,F.focusIn)(e,F.Focus.First),[x.Direction.Backwards]:()=>(0,F.focusIn)(e,F.Focus.Last)})===F.FocusResult.Error&&(0,F.focusIn)((0,F.getFocusableElements)((0,O.getRootNode)(f.state.button)).filter(e=>"true"!==e.dataset.headlessuiFocusGuard),(0,I.match)(es.current,{[x.Direction.Forwards]:F.Focus.Next,[x.Direction.Backwards]:F.Focus.Previous}),{relativeTo:f.state.button})}),el=(0,k.useRender)();return o.default.createElement(o.default.Fragment,null,el({ourProps:eo,theirProps:d,slot:ei,defaultTag:"button",name:"Popover.Button"}),en&&!N&&h&&o.default.createElement(P.Hidden,{id:L,ref:T,features:P.HiddenFeatures.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:ea}))}),ee=(0,k.forwardRefWithAs)(X),et=(0,k.forwardRefWithAs)(X),en=(0,k.forwardRefWithAs)(function(e,t){let n=(0,o.useId)(),{id:i=`headlessui-popover-panel-${n}`,focus:r=!1,anchor:s,portal:u=!1,modal:d=!1,transition:p=!1,...m}=e,v=K("Popover.Panel"),C=(0,R.useSlice)(v,v.selectors.isPortalled),[M,L,V,B,N]=(0,R.useSlice)(v,(0,o.useCallback)(e=>[e.popoverState,e.button,e.__demoMode,e.beforePanelSentinel,e.afterPanelSentinel],[])),H=`headlessui-focus-sentinel-before-${n}`,W=`headlessui-focus-sentinel-after-${n}`,_=(0,o.useRef)(null),z=(0,w.useResolvedAnchor)(s),[U,$]=(0,w.useFloatingPanel)(z),G=(0,w.useFloatingPanelProps)();z&&(u=!0);let[Y,X]=(0,o.useState)(null),Z=(0,b.useSyncRefs)(_,t,z?U:null,v.actions.setPanel,X),J=(0,h.useOwnerDocument)(L),ee=(0,h.useOwnerDocument)(_.current);(0,c.useIsoMorphicEffect)(()=>(v.actions.setPanelId(i),()=>v.actions.setPanelId(null)),[i,v]);let et=(0,T.useOpenClosed)(),[en,ei]=(0,E.useTransition)(p,Y,null!==et?(et&T.State.Open)===T.State.Open:M===j.Open);(0,f.useOnDisappear)(en,L,v.actions.close),(0,g.useScrollLock)(!V&&d&&en,ee);let er=(0,l.useEvent)(e=>{var t;if(e.key===A.Keys.Escape){if(v.state.popoverState!==j.Open||!_.current)return;let n=(0,O.getActiveElement)(_.current);if(n&&!_.current.contains(n))return;e.preventDefault(),e.stopPropagation(),v.actions.close(),null==(t=v.state.button)||t.focu
4s()}});(0,o.useEffect)(()=>{var t;e.static||M===j.Closed&&(null==(t=e.unmount)||t)&&v.actions.setPanel(null)},[M,e.unmount,e.static,v]),(0,o.useEffect)(()=>{if(V||!r||M!==j.Open||!_.current)return;let e=(0,O.getActiveElement)(_.current);_.current.contains(e)||(0,F.focusIn)(_.current,F.Focus.First)},[V,r,_.current,M]);let eo=(0,y.useSlot)({open:M===j.Open,close:v.actions.refocusableClose}),es=(0,k.mergeProps)(z?G():{},{ref:Z,id:i,onKeyDown:er,onBlur:r&&M===j.Open?e=>{var t,n,i,r,o;let s=e.relatedTarget;s&&_.current&&(null!=(t=_.current)&&t.contains(s)||(v.actions.close(),(null!=(i=null==(n=B.current)?void 0:n.contains)&&i.call(n,s)||null!=(o=null==(r=N.current)?void 0:r.contains)&&o.call(r,s))&&s.focus({preventScroll:!0})))}:void 0,tabIndex:-1,style:{...m.style,...$,"--button-width":(0,a.useElementSize)(en,L,!0).width},...(0,E.transitionDataAttributes)(ei)}),ea=(0,x.useTabDirection)(),el=(0,l.useEvent)(()=>{let e=_.current;e&&(0,I.match)(ea.current,{[x.Direction.Forwards]:()=>{var t;(0,F.focusIn)(e,F.Focus.First)===F.FocusResult.Error&&(null==(t=v.state.afterPanelSentinel.current)||t.focus())},[x.Direction.Backwards]:()=>{var e;null==(e=v.state.button)||e.focus({preventScroll:!0})}})}),eu=(0,l.useEvent)(()=>{let e=_.current;e&&(0,I.match)(ea.current,{[x.Direction.Forwards]:()=>{var e;if(!v.state.button)return;let t=null!=(e=(0,O.getRootNode)(v.state.button))?e:document.body,n=(0,F.getFocusableElements)(t),i=n.indexOf(v.state.button),r=n.slice(0,i+1),o=[...n.slice(i+1),...r];for(let e of o.slice())if("true"===e.dataset.headlessuiFocusGuard||null!=Y&&Y.contains(e)){let t=o.indexOf(e);-1!==t&&o.splice(t,1)}(0,F.focusIn)(o,F.Focus.First,{sorted:!1})},[x.Direction.Backwards]:()=>{var t;(0,F.focusIn)(e,F.Focus.Previous)===F.FocusResult.Error&&(null==(t=v.state.button)||t.focus())}})}),ec=(0,k.useRender)();return o.default.createElement(T.ResetOpenClosedProvider,null,o.default.createElement(q.Provider,{value:i},o.default.createElement(S.CloseProvider,{value:v.actions.refocusableClose},o.default.createElement(D.Portal,{enabled:!!u&&(e.static||en),ownerDocument:J},en&&C&&o.default.createElement(P.Hidden,{id:H,ref:B,features:P.HiddenFeatures.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:el}),ec({ourProps:es,theirProps:m,slot:eo,defaultTag:"div",features:Q,visible:en,name:"Popover.Panel"}),en&&C&&o.default.createElement(P.Hidden,{id:W,ref:N,features:P.HiddenFeatures.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:eu})))))}),ei=(0,k.forwardRefWithAs)(function(e,t){let n=(0,o.useRef)(null),i=(0,b.useSyncRefs)(n,t),[r,s]=(0,o.useState)([]),a=(0,l.useEvent)(e=>{s(t=>{let n=t.indexOf(e);if(-1!==n){let e=t.slice();return e.splice(n,1),e}return t})}),u=(0,l.useEvent)(e=>(s(t=>[...t,e]),()=>a(e))),c=(0,l.useEvent)(()=>{var e;let t=(0,O.getRootNode)(n.current);if(!t)return!1;let i=(0,O.getActiveElement)(n.current);return!!(null!=(e=n.current)&&e.contains(i))||r.some(e=>{var n,r;return(null==(n=t.getElementById(e.buttonId.current))?void 0:n.contains(i))||(null==(r=t.getElementById(e.panelId.current))?void 0:r.contains(i))})}),d=(0,l.useEvent)(e=>{for(let t of r)t.buttonId.current!==e&&t.close()}),f=(0,o.useMemo)(()=>({registerPopover:u,unregisterPopover:a,isFocusWithinPopoverGroup:c,closeOthers:d}),[u,a,c,d]),p=(0,y.useSlot)({}),h=(0,k.useRender)();return o.default.createElement(v.MainTreeProvider,null,o.default.createElement($.Provider,{value:f},h({ourProps:{ref:i},theirProps:e,slot:p,defaultTag:"div",name:"Popover.Group"})))}),er=Object.assign(Z,{Button:J,Backdrop:et,Overlay:ee,Panel:en,Group:ei});e.s(["Popover",0,er,"PopoverBackdrop",0,et,"PopoverButton",0,J,"PopoverGroup",0,ei,"PopoverOverlay",0,ee,"PopoverPanel",0,en],98307)},35307,96629,e=>{"use strict";var t=e.i(71645),n=e.i(74080),i=e.i(46725),r=e.i(14189),o=e.i(26599),s=e.i(5083),a=e.i(78677),l=e.i(94316);let u=(0,t.createContext)(!1);function c(){return(0,t.useContext)(u)}e.s(["ForcePortalRoot",0,function(e){return t.default.createElement(u.Provider,{value:e.force},e.children)},"usePortalRoot",0,c],96629);var d=e.i(80758),f=e.i(20);let p=t.Fragment,h=(0,f.forwardRefWithAs)(function(e,r){let{ownerDocument:u=null,...h}=e,m=(0,t.useRef)(null),y=(0,l.useSyncRefs)((0,l.optionalRef)(e=>{m.current=e}),r),b=(0,s.useOwnerDocument)(m.current),x=function(e){let n=c(),i=(0,t.useContext)(v),[r,o]=(0,t.useState)(()=>{var t;if(!n&&null!==i)return null!=(t=i.current)?t:null;if(d.env.isServer)return null;let r=null==e?void 0:e.getElementById("headlessui-portal-root");
4if(r)return r;if(null===e)return null;let o=e.createElement("div");return o.setAttribute("id","headlessui-portal-root"),e.body.appendChild(o)});return(0,t.useEffect)(()=>{null!==r&&(null!=e&&e.body.contains(r)||null==e||e.body.appendChild(r))},[r,e]),(0,t.useEffect)(()=>{n||null!==i&&o(i.current)},[i,o,n]),r}(null!=u?u:b),E=(0,t.useContext)(g),S=(0,i.useDisposables)(),w=(0,a.useServerHandoffComplete)(),P=(0,f.useRender)();return(0,o.useOnUnmount)(()=>{var e;x&&x.childNodes.length<=0&&(null==(e=x.parentElement)||e.removeChild(x))}),x&&w?(0,n.createPortal)(t.default.createElement("div",{"data-headlessui-portal":"",ref:e=>{S.dispose(),E&&e&&S.add(E.register(e))}},P({ourProps:{ref:y},theirProps:h,slot:{},defaultTag:p,name:"Portal"})),x):null}),m=t.Fragment,v=(0,t.createContext)(null),g=(0,t.createContext)(null),y=(0,f.forwardRefWithAs)(function(e,n){let i=(0,l.useSyncRefs)(n),{enabled:r=!0,ownerDocument:o,...s}=e,a=(0,f.useRender)();return r?t.default.createElement(h,{...s,ownerDocument:o,ref:i}):a({ourProps:{ref:i},theirProps:s,slot:{},defaultTag:p,name:"Portal"})}),b=(0,f.forwardRefWithAs)(function(e,n){let{target:i,...r}=e,o={ref:(0,l.useSyncRefs)(n)},s=(0,f.useRender)();return t.default.createElement(v.Provider,{value:i},s({ourProps:o,theirProps:r,defaultTag:m,name:"Popover.Group"}))}),x=Object.assign(y,{Group:b});e.s(["Portal",0,x,"PortalGroup",0,b,"useNestedPortals",0,function(){let e=(0,t.useContext)(g),n=(0,t.useRef)([]),i=(0,r.useEvent)(t=>(n.current.push(t),e&&e.register(t),()=>o(t))),o=(0,r.useEvent)(t=>{let i=n.current.indexOf(t);-1!==i&&n.current.splice(i,1),e&&e.unregister(t)}),s=(0,t.useMemo)(()=>({register:i,unregister:o,portals:n}),[i,o,n]);return[n,(0,t.useMemo)(()=>function({children:e}){return t.default.createElement(g.Provider,{value:s},e)},[s])]}],35307)},53501,e=>{"use strict";let t;var n=e.i(29427),i=e.i(71330),r=e.i(71645),o=e.i(36289),s=e.i(3269),a=e.i(14520),l=e.i(14189),u=e.i(35696),c=e.i(41444),d=e.i(55743),f=e.i(94316),p=e.i(1893),h=e.i(40721),m=e.i(42803),v=e.i(33538),g=e.i(52265),y=e.i(94421),b=e.i(97701),x=e.i(2155),E=e.i(20),S=e.i(35889),w=e.i(98348),P=e.i(22678),T=((t=T||{})[t.RegisterOption=0]="RegisterOption",t[t.UnregisterOption=1]="UnregisterOption",t);let R={0(e,t){let n=[...e.options,{id:t.id,element:t.element,propsRef:t.propsRef}];return{...e,options:(0,g.sortByDomNode)(n,e=>e.element.current)}},1(e,t){let n=e.options.slice(),i=e.options.findIndex(e=>e.id===t.id);return -1===i?e:(n.splice(i,1),{...e,options:n})}},C=(0,r.createContext)(null);function M(e){let t=(0,r.useContext)(C);if(null===t){let t=Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,M),t}return t}C.displayName="RadioGroupDataContext";let F=(0,r.createContext)(null);function I(e){let t=(0,r.useContext)(F);if(null===t){let t=Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,I),t}return t}function O(e,t){return(0,b.match)(t.type,R,e,t)}F.displayName="RadioGroupActionsContext";let k=(0,E.forwardRefWithAs)(function(e,t){let n=(0,r.useId)(),i=(0,p.useDisabled)(),{id:u=`headlessui-radiogroup-${n}`,value:c,form:m,name:v,onChange:b,by:T,disabled:R=i||!1,defaultValue:M,tabIndex:I=0,...k}=e,A=(0,o.useByComparator)(T),[D,L]=(0,r.useReducer)(O,{options:[]}),V=D.options,[B,N]=(0,P.useLabels)(),[j,H]=(0,S.useDescriptions)(),W=(0,r.useRef)(null),_=(0,f.useSyncRefs)(W,t),z=(0,a.useDefaultValue)(M),[U,K]=(0,s.useControllable)(c,b,z),$=(0,r.useMemo)(()=>V.find(e=>!e.propsRef.current.disabled),[V]),G=(0,r.useMemo)(()=>V.some(e=>A(e.propsRef.current.value,U)),[V,U]),q=(0,l.useEvent)(e=>{var t;if(R||A(e,U))return!1;let n=null==(t=V.find(t=>A(t.propsRef.current.value,e)))?void 0:t.propsRef.current;return(null==n||!n.disabled)&&(null==K||K(e),!0)}),Y=(0,l.useEvent)(e=>{if(!W.current)return;let t=V.filter(e=>!1===e.propsRef.current.disabled).map(e=>e.element.current);switch(e.key){case w.Keys.Enter:(0,y.attemptSubmit)(e.currentTarget);break;case w.Keys.ArrowLeft:case w.Keys.ArrowUp:if(e.preventDefault(),e.stopPropagation(),(0,g.focusIn)(t,g.Focus.Previous|g.Focus.WrapAround)===g.FocusResult.Success){let e=V.find(e=>(0,x.isActiveElement)(e.element.current));e&&q(e.propsRef.current.value)}break;case w.Keys.ArrowRight:case w.Keys.ArrowDown:if(e.preventDefault(),e.stopPropagation(),(0,g.focusIn)(t,g.Focus.Next|g.Focus.WrapAround)===g.FocusResult.Success){let e=V.find(e=>(0,x.isActiveElement)(e.element.current));e&&q(e.propsRef.current.value)}break;case w.Keys.Space:{e.preventDefault(),e.stopPropagation();let t=V.find(e=>(0,x.isActiveElement)(e.element.current));t&&q(t.propsRef.current.value)}}}),X=(0,l.useEvent)(e=>(L({type:0,...e}),()=>L({type:1,id:e.id}))),Q=(0,r.useMemo)(()=>({value:U,firstOption:$,containsCheckedOption:G,disabled:R,compare:A,tabIndex:I,...D}),[U,$,G,R,A,I,D]),Z=(0,r.useMemo)(()=>({registerOption:X,change:q}),[X,q]),J=(0,d.useSlot)({value:U}),ee=(0,r.useCallback)(()=>
4{if(void 0!==z)return q(z)},[q,z]),et=(0,E.useRender)();return r.default.createElement(H,{name:"RadioGroup.Description"},r.default.createElement(N,{name:"RadioGroup.Label"},r.default.createElement(F.Provider,{value:Z},r.default.createElement(C.Provider,{value:Q},null!=v&&r.default.createElement(h.FormFields,{disabled:R,data:{[v]:U||"on"},overrides:{type:"radio",checked:null!=U},form:m,onReset:ee}),et({ourProps:{ref:_,id:u,role:"radiogroup","aria-labelledby":B,"aria-describedby":j,onKeyDown:Y},theirProps:k,slot:J,defaultTag:"div",name:"RadioGroup"})))))}),A=(0,E.forwardRefWithAs)(function(e,t){var o;let s=M("RadioGroup.Option"),a=I("RadioGroup.Option"),p=(0,r.useId)(),{id:h=`headlessui-radiogroup-option-${p}`,value:m,disabled:g=s.disabled||!1,autoFocus:y=!1,...b}=e,x=(0,r.useRef)(null),w=(0,f.useSyncRefs)(x,t),[T,R]=(0,P.useLabels)(),[C,F]=(0,S.useDescriptions)(),O=(0,c.useLatestValue)({value:m,disabled:g});(0,u.useIsoMorphicEffect)(()=>a.registerOption({id:h,element:x,propsRef:O}),[h,a,x,O]);let k=(0,l.useEvent)(e=>{var t;if((0,v.isDisabledReactIssue7711)(e.currentTarget))return e.preventDefault();a.change(m)&&(null==(t=x.current)||t.focus())}),A=(null==(o=s.firstOption)?void 0:o.id)===h,{isFocusVisible:D,focusProps:L}=(0,n.useFocusRing)({autoFocus:y}),{isHovered:V,hoverProps:B}=(0,i.useHover)({isDisabled:g}),N=s.compare(s.value,m),j=(0,E.mergeProps)({ref:w,id:h,role:"radio","aria-checked":N?"true":"false","aria-labelledby":T,"aria-describedby":C,"aria-disabled":!!g||void 0,tabIndex:g?-1:N||!s.containsCheckedOption&&A?s.tabIndex:-1,onClick:g?void 0:k,autoFocus:y},L,B),H=(0,d.useSlot)({checked:N,disabled:g,active:D,hover:V,focus:D,autofocus:y}),W=(0,E.useRender)();return r.default.createElement(F,{name:"RadioGroup.Description"},r.default.createElement(R,{name:"RadioGroup.Label"},W({ourProps:j,theirProps:b,slot:H,defaultTag:"div",name:"RadioGroup.Option"})))}),D=(0,E.forwardRefWithAs)(function(e,t){var o;let s=M("Radio"),a=I("Radio"),h=(0,r.useId)(),g=(0,m.useProvidedId)(),y=(0,p.useDisabled)(),{id:b=g||`headlessui-radio-${h}`,value:x,disabled:w=s.disabled||y||!1,autoFocus:T=!1,...R}=e,C=(0,r.useRef)(null),F=(0,f.useSyncRefs)(C,t),O=(0,P.useLabelledBy)(),k=(0,S.useDescribedBy)(),A=(0,c.useLatestValue)({value:x,disabled:w});(0,u.useIsoMorphicEffect)(()=>a.registerOption({id:b,element:C,propsRef:A}),[b,a,C,A]);let D=(0,l.useEvent)(e=>{var t;if((0,v.isDisabledReactIssue7711)(e.currentTarget))return e.preventDefault();a.change(x)&&(null==(t=C.current)||t.focus())}),{isFocusVisible:L,focusProps:V}=(0,n.useFocusRing)({autoFocus:T}),{isHovered:B,hoverProps:N}=(0,i.useHover)({isDisabled:w}),j=(null==(o=s.firstOption)?void 0:o.id)===b,H=s.compare(s.value,x),W=(0,E.mergeProps)({ref:F,id:b,role:"radio","aria-checked":H?"true":"false","aria-labelledby":O,"aria-describedby":k,"aria-disabled":!!w||void 0,tabIndex:w?-1:H||!s.containsCheckedOption&&j?s.tabIndex:-1,autoFocus:T,onClick:w?void 0:D},V,N),_=(0,d.useSlot)({checked:H,disabled:w,hover:B,focus:L,autofocus:T});return(0,E.useRender)()({ourProps:W,theirProps:R,slot:_,defaultTag:"span",name:"Radio"})}),L=P.Label,V=S.Description,B=Object.assign(k,{Option:A,Radio:D,Label:L,Description:V});e.s(["Radio",0,D,"RadioGroup",0,B,"RadioGroupDescription",0,V,"RadioGroupLabel",0,L,"RadioGroupOption",0,A])},62499,e=>{"use strict";var t=e.i(29427),n=e.i(71330),i=e.i(94487),r=e.i(71645),o=e.i(55743),s=e.i(1893),a=e.i(42803),l=e.i(20),u=e.i(35889),c=e.i(22678);let d=(0,l.forwardRefWithAs)(function(e,d){let f=(0,r.useId)(),p=(0,a.useProvidedId)(),h=(0,s.useDisabled)(),{id:m=p||`headlessui-select-${f}`,disabled:v=h||!1,invalid:g=!1,autoFocus:y=!1,...b}=e,x=(0,c.useLabelledBy)(),E=(0,u.useDescribedBy)(),{isFocusVisible:S,focusProps:w}=(0,t.useFocusRing)({autoFocus:y}),{isHovered:P,hoverProps:T}=(0,n.useHover)({isDisabled:v}),{pressed:R,pressProps:C}=(0,i.useActivePress)({disabled:v}),M=(0,l.mergeProps)({ref:d,id:m,"aria-labelledby":x,"aria-describedby":E,"aria-invalid":g?"true":void 0,disabled:v||void 0,autoFocus:y},w,T,C),F=(0,o.useSlot)({disabled:v,invalid:g,hover:P,focus:S,active:R,autofocus:y});return(0,l.useRender)()({ourProps:M,theirProps:b,slot:F,defaultTag:"select",name:"Select"})});e.s(["Select",0,d])},68497,e=>{"use strict";var t=e.i(29427),n=e.i(71330),i=e.i(71645),r=e.i(94487),o=e.i(3269),s=e.i(14520),a=e.i(46725),l=e.i(14189),u=e.i(44279),c=e.i(55743),d=e.i(94316),f=e.i(1893),p=e.i(40721),h=e.i(42803),m=e.i(33538),v=e.i(13581),g=e.i(94421),y=e.i(20),b=e.i(35889),x=e.i(98348),E=e.i(22678);let S=(0,i.createContext)(null);S.displayName="GroupContext";let w=i.Fragment,P=(0,y.forwardRefWithAs)(function(e,v){var w;let P=(0,i.useId)(),T=(0,h.useProvidedId)(),R=(0,f.useDisabled)(),{id:C=T||`headlessui-switch-${P}`,disabled:M=R||!1,checked:F,defaultChecked:I,onChange:O,name:k,value:A,form:D,autoFocus:L=!1,...V}=e,B=(0,i.useContext)(S),[N,j]=(0,i.useState)(null),H=(0,i.useRef)(null),W=(0,d.useSyncRefs)(H,v,null===B?null:B.setSwitch,j),_=(0,s.useDefaultValue)(I),[z,U]=(0,o.useControllable)(F,O,null!=_&&_),K=(0,a.useDisposables)(),[$,G]=(0,i.useState)(!1),q=(0,l.useEvent)(()=>{G(!0),null==U||U(!z),K.nextFrame(()=>{G(!1)})}),Y=(0,l.useEvent)(e=>{if((0,m.isDisabledReactIssue7711)(e.currentTarget))return e.preventDefault();e.preventDefault(),q()}),X=(0,l.useEvent)(e=>{e.key===x.Keys.Space?(e.preventDefault(),q()):e.key===x.Keys.Enter&&(0,g.attemptSubmit)(e.currentTarget)}),Q=(0,l.useEvent)(e=>e.preventDefault()),Z=(0,E.useLabelledBy)(),J=(0,b.useDescribedBy)(),{isFocusVisible:ee,focusProps:et}=(0,t.useFocusRing)({autoFocus:L}),{isHovered:en,hoverProps:ei}=(0,n.useHover)({isDisabled:M}),{pressed:er,pressProps:eo}=(0,r.useActivePress)({disabled:M}),es=(0,c.useSlot)({checked:z,disabled:M,hover:en,focus:ee,active:er,autofocus:L,changing:$}),ea=(0,y.mergeProps)({id:C,ref:W,role:"switch",type:(0,u.useResolveButtonType)(e,N),tabIndex:-1===e.tabIndex?0:null!=(w=e.tabIndex)?w:0,"aria-checked":z,"aria-labelledby":Z,"aria-describedby":J,disabled:M||void 0,autoFocus:L,onClick:Y,onKeyUp:X,onKeyPress:Q},et,ei,eo),el=(0,i.useCallback)(()=>
4{if(void 0!==_)return null==U?void 0:U(_)},[U,_]),eu=(0,y.useRender)();return i.default.createElement(i.default.Fragment,null,null!=k&&i.default.createElement(p.FormFields,{disabled:M,data:{[k]:A||"on"},overrides:{type:"checkbox",checked:z},form:D,onReset:el}),eu({ourProps:ea,theirProps:V,slot:es,defaultTag:"button",name:"Switch"}))}),T=function(e){var t;let[n,r]=(0,i.useState)(null),[o,s]=(0,E.useLabels)(),[a,l]=(0,b.useDescriptions)(),u=(0,i.useMemo)(()=>({switch:n,setSwitch:r}),[n,r]),c=(0,y.useRender)();return i.default.createElement(l,{name:"Switch.Description",value:a},i.default.createElement(s,{name:"Switch.Label",value:o,props:{htmlFor:null==(t=u.switch)?void 0:t.id,onClick(e){n&&(v.isHTMLLabelElement(e.currentTarget)&&e.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},i.default.createElement(S.Provider,{value:u},c({ourProps:{},theirProps:e,slot:{},defaultTag:w,name:"Switch.Group"}))))},R=E.Label,C=b.Description,M=Object.assign(P,{Group:T,Label:R,Description:C});e.s(["Switch",0,M,"SwitchDescription",0,C,"SwitchGroup",0,T,"SwitchLabel",0,R])},70554,e=>{"use strict";let t,n,i;var r=e.i(29427),o=e.i(71330),s=e.i(71645),a=e.i(94487),l=e.i(14189),u=e.i(35696),c=e.i(41444),d=e.i(44279),f=e.i(55743),p=e.i(94316),h=e.i(53521),m=e.i(2788);function v({onFocus:e}){let[t,n]=(0,s.useState)(!0),i=(0,h.useIsMounted)();return t?s.default.createElement(m.Hidden,{as:"button",type:"button",features:m.HiddenFeatures.Focusable,onFocus:t=>{t.preventDefault();let r,o=50;r=requestAnimationFrame(function t(){if(o--<=0){r&&cancelAnimationFrame(r);return}if(e()){if(cancelAnimationFrame(r),!i.current)return;n(!1);return}r=requestAnimationFrame(t)})}}):null}var g=e.i(52265),y=e.i(97701),b=e.i(68578),x=e.i(2155),E=e.i(20);let S=s.createContext(null);function w({children:e}){let t=s.useRef({groups:new Map,get(e,t){var n;let i=this.groups.get(e);i||(i=new Map,this.groups.set(e,i));let r=null!=(n=i.get(t))?n:0;return i.set(t,r+1),[Array.from(i.keys()).indexOf(t),function(){let e=i.get(t);e>1?i.set(t,e-1):i.delete(t)}]}});return s.createElement(S.Provider,{value:t},e)}function P(e){let t=s.useContext(S);if(!t)throw Error("You must wrap your component in a <StableCollection>");let n=s.useId(),[i,r]=t.current.get(e,n);return s.useEffect(()=>r,[]),i}var T=e.i(98348),R=((t=R||{})[t.Forwards=0]="Forwards",t[t.Backwards=1]="Backwards",t),C=((n=C||{})[n.Less=-1]="Less",n[n.Equal=0]="Equal",n[n.Greater=1]="Greater",n),M=((i=M||{})[i.SetSelectedIndex=0]="SetSelectedIndex",i[i.RegisterTab=1]="RegisterTab",i[i.UnregisterTab=2]="UnregisterTab",i[i.RegisterPanel=3]="RegisterPanel",i[i.UnregisterPanel=4]="UnregisterPanel",i);let F={0(e,t){var n;let i=(0,g.sortByDomNode)(e.tabs,e=>e.current),r=(0,g.sortByDomNode)(e.panels,e=>e.current),o=i.filter(e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))}),s={...e,tabs:i,panels:r};if(t.index<0||t.index>i.length-1){let n=(0,y.match)(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>(0,y.match)(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===o.length)return s;let r=(0,y.match)(n,{0:()=>i.indexOf(o[0]),1:()=>i.indexOf(o[o.length-1])});return{...s,selectedIndex:-1===r?e.selectedIndex:r}}let a=i.slice(0,t.index),l=[...i.slice(t.index),...a].find(e=>o.includes(e));if(!l)return s;let u=null!=(n=i.indexOf(l))?n:e.selectedIndex;return -1===u&&(u=e.selectedIndex),{...s,selectedIndex:u}},1(e,t){if(e.tabs.includes(t.tab))return e;let n=e.tabs[e.selectedIndex],i=(0,g.sortByDomNode)([...e.tabs,t.tab],e=>e.current),r=e.selectedIndex;return e.info.current.isControlled||-1===(r=i.indexOf(n))&&(r=e.selectedIndex),{...e,tabs:i,selectedIndex:r}},2:(e,t)=>({...e,tabs:e.tabs.filter(e=>e!==t.tab)}),3:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:(0,g.sortByDomNode)([...e.panels,t.panel],e=>e.current)},4:(e,t)=>({...e,panels:e.panels.filter(e=>e!==t.panel)})},I=(0,s.createContext)(null);function O(e){let t=(0,s.useContext)(I);if(null===t){let t=Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,O),t}return t}I.displayName="TabsDataContext";let k=(0,s.createContext)(null);function A(e){let t=(0,s.useContext)(k);if(null===t){let t=Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,A),t}return t}function D(e,t){return(0,y.match)(t.type,F,e,t)}k.displayName="TabsActionsContext";let L=E.RenderFeatures.RenderStrategy|E.RenderFeatures.Static,V=(0,E.forwardRefWithAs)(function(e,t){var n,i;let c=(0,s.useId)(),{id:h=`headlessui-tabs-tab-${c}`,disabled:m=!1,autoFocus:v=!1,...S}=e,{orientation:w,activation:R,selectedIndex:C,tabs:M,panels:F}
4=O("Tab"),I=A("Tab"),k=O("Tab"),[D,L]=(0,s.useState)(null),V=(0,s.useRef)(null),B=(0,p.useSyncRefs)(V,t,L);(0,u.useIsoMorphicEffect)(()=>I.registerTab(V),[I,V]);let N=P("tabs"),j=M.indexOf(V);-1===j&&(j=N);let H=j===C,W=(0,l.useEvent)(e=>{let t=e();if(t===g.FocusResult.Success&&"auto"===R){let e=(0,x.getActiveElement)(V.current),t=k.tabs.findIndex(t=>t.current===e);-1!==t&&I.change(t)}return t}),_=(0,l.useEvent)(e=>{let t=M.map(e=>e.current).filter(Boolean);if(e.key===T.Keys.Space||e.key===T.Keys.Enter){e.preventDefault(),e.stopPropagation(),I.change(j);return}switch(e.key){case T.Keys.Home:case T.Keys.PageUp:return e.preventDefault(),e.stopPropagation(),W(()=>(0,g.focusIn)(t,g.Focus.First));case T.Keys.End:case T.Keys.PageDown:return e.preventDefault(),e.stopPropagation(),W(()=>(0,g.focusIn)(t,g.Focus.Last))}if(W(()=>(0,y.match)(w,{vertical:()=>e.key===T.Keys.ArrowUp?(0,g.focusIn)(t,g.Focus.Previous|g.Focus.WrapAround):e.key===T.Keys.ArrowDown?(0,g.focusIn)(t,g.Focus.Next|g.Focus.WrapAround):g.FocusResult.Error,horizontal:()=>e.key===T.Keys.ArrowLeft?(0,g.focusIn)(t,g.Focus.Previous|g.Focus.WrapAround):e.key===T.Keys.ArrowRight?(0,g.focusIn)(t,g.Focus.Next|g.Focus.WrapAround):g.FocusResult.Error}))===g.FocusResult.Success)return e.preventDefault()}),z=(0,s.useRef)(!1),U=(0,l.useEvent)(()=>{var e;z.current||(z.current=!0,null==(e=V.current)||e.focus({preventScroll:!0}),I.change(j),(0,b.microTask)(()=>{z.current=!1}))}),K=(0,l.useEvent)(e=>{e.preventDefault()}),{isFocusVisible:$,focusProps:G}=(0,r.useFocusRing)({autoFocus:v}),{isHovered:q,hoverProps:Y}=(0,o.useHover)({isDisabled:m}),{pressed:X,pressProps:Q}=(0,a.useActivePress)({disabled:m}),Z=(0,f.useSlot)({selected:H,hover:q,active:X,focus:$,autofocus:v,disabled:m}),J=(0,E.mergeProps)({ref:B,onKeyDown:_,onMouseDown:K,onClick:U,id:h,role:"tab",type:(0,d.useResolveButtonType)(e,D),"aria-controls":null==(i=null==(n=F[j])?void 0:n.current)?void 0:i.id,"aria-selected":H,tabIndex:H?0:-1,disabled:m||void 0,autoFocus:v},G,Y,Q);return(0,E.useRender)()({ourProps:J,theirProps:S,slot:Z,defaultTag:"button",name:"Tabs.Tab"})}),B=(0,E.forwardRefWithAs)(function(e,t){let{defaultIndex:n=0,vertical:i=!1,manual:r=!1,onChange:o,selectedIndex:a=null,...d}=e,h=i?"vertical":"horizontal",m=r?"manual":"auto",y=null!==a,b=(0,c.useLatestValue)({isControlled:y}),x=(0,p.useSyncRefs)(t),[S,P]=(0,s.useReducer)(D,{info:b,selectedIndex:null!=a?a:n,tabs:[],panels:[]}),T=(0,f.useSlot)({selectedIndex:S.selectedIndex}),R=(0,c.useLatestValue)(o||(()=>{})),C=(0,c.useLatestValue)(S.tabs),M=(0,s.useMemo)(()=>({orientation:h,activation:m,...S}),[h,m,S]),F=(0,l.useEvent)(e=>(P({type:1,tab:e}),()=>P({type:2,tab:e}))),O=(0,l.useEvent)(e=>(P({type:3,panel:e}),()=>P({type:4,panel:e}))),A=(0,l.useEvent)(e=>{L.current!==e&&R.current(e),y||P({type:0,index:e})}),L=(0,c.useLatestValue)(y?e.selectedIndex:S.selectedIndex),V=(0,s.useMemo)(()=>({registerTab:F,registerPanel:O,change:A}),[]);(0,u.useIsoMorphicEffect)(()=>{P({type:0,index:null!=a?a:n})},[a]),(0,u.useIsoMorphicEffect)(()=>{if(void 0===L.current||S.tabs.length<=0)return;let e=(0,g.sortByDomNode)(S.tabs,e=>e.current);e.some((e,t)=>S.tabs[t]!==e)&&A(e.indexOf(S.tabs[L.current]))});let B=(0,E.useRender)();return s.default.createElement(w,null,s.default.createElement(k.Provider,{value:V},s.default.createElement(I.Provider,{value:M},M.tabs.length<=0&&s.default.createElement(v,{onFocus:()=>{var e,t;for(let n of C.current)if((null==(e=n.current)?void 0:e.tabIndex)===0)return null==(t=n.current)||t.focus(),!0;return!1}}),B({ourProps:{ref:x},theirProps:d,slot:T,defaultTag:"div",name:"Tabs"}))))}),N=(0,E.forwardRefWithAs)(function(e,t){let{orientation:n,selectedIndex:i}=O("Tab.List"),r=(0,p.useSyncRefs)(t),o=(0,f.useSlot)({selectedIndex:i});return(0,E.useRender)()({ourProps:{ref:r,role:"tablist","aria-orientation":n},theirProps:e,slot:o,defaultTag:"div",name:"Tabs.List"})}),j=(0,E.forwardRefWithAs)(function(e,t){let{selectedIndex:n}=O("Tab.Panels"),i=(0,p.useSyncRefs)(t),r=(0,f.useSlot)({selectedIndex:n});return(0,E.useRender)()({ourProps:{ref:i},theirProps:e,slot:r,defaultTag:"div",name:"Tabs.Panels"})}),H=(0,E.forwardRefWithAs)(function(e,t){var n,i,o,a;let l=(0,s.useId)(),{id:c=`headlessui-tabs-panel-${l}`,tabIndex:d=0,...h}=e,{selectedIndex:v,tabs:g,panels:y}=O("Tab.Panel"),b=A("Tab.Panel"),x=(0,s.useRef)(null),S=(0,p.useSyncRefs)(x,t);(0,u.useIsoMorphicEffect)(()=>b.registerPanel(x),[b,x]);let w=P("panels"),T=y.indexOf(x);-1===T&&(T=w);let R=T===v,{isFocusVisible:C,focusProps:M}=(0,r.useFocusRing)(),F=(0,f.useSlot)({selected:R,focus:C}),I=(0,E.mergeProps)({ref:S,id:c,role:"tabpanel","aria-labelledby":null==(i=null==(n=g[T])?void 0:n.current)?void 0:i.id,tabIndex:R?d:-1},M),k=(0,E.useRender)();return R||null!=(o=h.unmount)&&!o||null!=(a=h.static)&&a?k({ourProps:I,theirProps:h,slot:F,defaultTag:"div",features:L,visible:R,name:"Tabs.Panel"}):s.default.createElement(m.Hidden,{"aria-hidden":"true",...I})}),W=Object.assign(V,{Group:B,List:N,Panels:j,Panel:H});e.s(["Tab",0,W,"TabGroup",0,B,"TabList",0,N,"TabPanel",0,H,"TabPanels",0,j],70554)},54324,e=>{"use strict";var t=e.i(29427),n=e.i(71330),i=e.i(71645),r=e.i(55743),o=e.i(1893),s=e.i(42803),a=e.i(20),l=e.i(35889),u=e.i(22678);let c=(0,a.forwardRefWithAs)(function(e,c){let d=(0,i.useId)(),f=(0,s.useProvidedId)(),p=(0,o.useDisabled)(),{id:h=f||`headlessui-textarea-${d}`,disabled:m=p||!1,autoFocus:v=!1,invalid:g=!1,...y}=e,b=(0,u.useLabelledBy)(),x=(0,l.useDescribedBy)(),{isFocused:E,focusProps:S}=(0,t.useFocusRing)({autoFocus:v}),{isHovered:w,hoverProps:P}=(0,n.useHover)({isDisabled:m}),T=(0,a.mergeProps)({ref:c,id:h,"aria-labelledby":b,"aria-describedby":x,"aria-invalid":g?"true":void 0,disabled:m||void 0,autoFocus:v},S,P),R=(0,r.useSlot)({disabled:m,invalid:g,hover:w,focus:E,autofocus:v});return(0,a.useRender)()({ourProps:T,theirProps:y,slot:R,defaultTag:"textarea",
4name:"Textarea"})});e.s(["Textarea",0,c])},54056,e=>{"use strict";let t;var n=e.i(71645),i=e.i(46725),r=e.i(14189),o=e.i(53521),s=e.i(35696),a=e.i(41444),l=e.i(78677),u=e.i(94316),c=e.i(83733),d=e.i(33137),f=e.i(32607),p=e.i(97701),h=e.i(20);function m(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||!(0,h.isFragment)(null!=(t=e.as)?t:E)||1===n.default.Children.count(e.children)}let v=(0,n.createContext)(null);v.displayName="TransitionContext";var g=((t=g||{}).Visible="visible",t.Hidden="hidden",t);let y=(0,n.createContext)(null);function b(e){return"children"in e?b(e.children):e.current.filter(({el:e})=>null!==e.current).filter(({state:e})=>"visible"===e).length>0}function x(e,t){let s=(0,a.useLatestValue)(e),l=(0,n.useRef)([]),u=(0,o.useIsMounted)(),c=(0,i.useDisposables)(),d=(0,r.useEvent)((e,t=h.RenderStrategy.Hidden)=>{let n=l.current.findIndex(({el:t})=>t===e);-1!==n&&((0,p.match)(t,{[h.RenderStrategy.Unmount](){l.current.splice(n,1)},[h.RenderStrategy.Hidden](){l.current[n].state="hidden"}}),c.microTask(()=>{var e;!b(l)&&u.current&&(null==(e=s.current)||e.call(s))}))}),f=(0,r.useEvent)(e=>{let t=l.current.find(({el:t})=>t===e);return t?"visible"!==t.state&&(t.state="visible"):l.current.push({el:e,state:"visible"}),()=>d(e,h.RenderStrategy.Unmount)}),m=(0,n.useRef)([]),v=(0,n.useRef)(Promise.resolve()),g=(0,n.useRef)({enter:[],leave:[]}),y=(0,r.useEvent)((e,n,i)=>{m.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter(([t])=>t!==e)),null==t||t.chains.current[n].push([e,new Promise(e=>{m.current.push(e)})]),null==t||t.chains.current[n].push([e,new Promise(e=>{Promise.all(g.current[n].map(([e,t])=>t)).then(()=>e())}
4)]),"enter"===n?v.current=v.current.then(()=>null==t?void 0:t.wait.current).then(()=>i(n)):i(n)}),x=(0,r.useEvent)((e,t,n)=>{Promise.all(g.current[t].splice(0).map(([e,t])=>t)).then(()=>{var e;null==(e=m.current.shift())||e()}).then(()=>n(t))});return(0,n.useMemo)(()=>({children:l,register:f,unregister:d,onStart:y,onStop:x,wait:v,chains:g}),[f,d,l,y,x,g,v])}y.displayName="NestingContext";let E=n.Fragment,S=h.RenderFeatures.RenderStrategy,w=(0,h.forwardRefWithAs)(function(e,t){let{show:i,appear:o=!1,unmount:a=!0,...c}=e,f=(0,n.useRef)(null),p=m(e),g=(0,u.useSyncRefs)(...p?[f,t]:null===t?[]:[t]);(0,l.useServerHandoffComplete)();let E=(0,d.useOpenClosed)();if(void 0===i&&null!==E&&(i=(E&d.State.Open)===d.State.Open),void 0===i)throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[w,T]=(0,n.useState)(i?"visible":"hidden"),R=x(()=>{i||T("hidden")}),[C,M]=(0,n.useState)(!0),F=(0,n.useRef)([i]);(0,s.useIsoMorphicEffect)(()=>{!1!==C&&F.current[F.current.length-1]!==i&&(F.current.push(i),M(!1))},[F,i]);let I=(0,n.useMemo)(()=>({show:i,appear:o,initial:C}),[i,o,C]);(0,s.useIsoMorphicEffect)(()=>{i?T("visible"):b(R)||null===f.current||T("hidden")},[i,R]);let O={unmount:a},k=(0,r.useEvent)(()=>{var t;C&&M(!1),null==(t=e.beforeEnter)||t.call(e)}),A=(0,r.useEvent)(()=>{var t;C&&M(!1),null==(t=e.beforeLeave)||t.call(e)}),D=(0,h.useRender)();return n.default.createElement(y.Provider,{value:R},n.default.createElement(v.Provider,{value:I},D({ourProps:{...O,as:n.Fragment,children:n.default.createElement(P,{ref:g,...O,...c,beforeEnter:k,beforeLeave:A})},theirProps:{},defaultTag:n.Fragment,features:S,visible:"visible"===w,name:"Transition"})))}),P=(0,h.forwardRefWithAs)(function(e,t){var i,o;let{transition:a=!0,beforeEnter:g,afterEnter:w,beforeLeave:P,afterLeave:T,enter:R,enterFrom:C,enterTo:M,entered:F,leave:I,leaveFrom:O,leaveTo:k,...A}=e,[D,L]=(0,n.useState)(null),V=(0,n.useRef)(null),B=m(e),N=(0,u.useSyncRefs)(...B?[V,t,L]:null===t?[]:[t]),j=null==(i=A.unmount)||i?h.RenderStrategy.Unmount:h.RenderStrategy.Hidden,{show:H,appear:W,initial:_}=function(){let e=(0,n.useContext)(v);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[z,U]=(0,n.useState)(H?"visible":"hidden"),K=function(){let e=(0,n.useContext)(y);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:$,unregister:G}=K;(0,s.useIsoMorphicEffect)(()=>$(V),[$,V]),(0,s.useIsoMorphicEffect)(()=>{if(j===h.RenderStrategy.Hidden&&V.current)return H&&"visible"!==z?void U("visible"):(0,p.match)(z,{hidden:()=>G(V),visible:()=>$(V)})},[z,V,$,G,H,j]);let q=(0,l.useServerHandoffComplete)();(0,s.useIsoMorphicEffect)(()=>{if(B&&q&&"visible"===z&&null===V.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[V,z,q,B]);let Y=_&&!W,X=W&&H&&_,Q=(0,n.useRef)(!1),Z=x(()=>{Q.current||(U("hidden"),G(V))},K),J=(0,r.useEvent)(e=>{Q.current=!0,Z.onStart(V,e?"enter":"leave",e=>{"enter"===e?null==g||g():"leave"===e&&(null==P||P())})}),ee=(0,r.useEvent)(e=>{let t=e?"enter":"leave";Q.current=!1,Z.onStop(V,t,e=>{"enter"===e?null==w||w():"leave"===e&&(null==T||T())}),"leave"!==t||b(Z)||(U("hidden"),G(V))});(0,n.useEffect)(()=>{B&&a||(J(H),ee(H))},[H,B,a]);let et=!(!a||!B||!q||Y),[,en]=(0,c.useTransition)(et,D,H,{start:J,end:ee}),ei=(0,h.compact)({ref:N,className:(null==(o=(0,f.classNames)(A.className,X&&R,X&&C,en.enter&&R,en.enter&&en.closed&&C,en.enter&&!en.closed&&M,en.leave&&I,en.leave&&!en.closed&&O,en.leave&&en.closed&&k,!en.transition&&H&&F))?void 0:o.trim())||void 0,...(0,c.transitionDataAttributes)(en)}),er=0;"visible"===z&&(er|=d.State.Open),"hidden"===z&&(er|=d.State.Closed),H&&"hidden"===z&&(er|=d.State.Opening),H||"visible"!==z||(er|=d.State.Closing);let eo=(0,h.useRender)();return n.default.createElement(y.Provider,{value:Z},n.default.createElement(d.OpenClosedProvider,{value:er},eo({ourProps:ei,theirProps:A,defaultTag:E,features:S,visible:"visible"===z,name:"Transition.Child"})))}),T=(0,h.forwardRefWithAs)(function(e,t){let i=null!==(0,n.useContext)(v),r=null!==(0,d.useOpenClosed)();return n.default.createElement(n.default.Fragment,null,!i&&r?n.default.createElement(w,{ref:t,...e}):n.default.createElement(P,{ref:t,...e}))}),R=Object.assign(w,{Child:T,Root:w});e.s(["Transition",0,R,"TransitionChild",0,T])},94487,e=>{"use strict";var t=e.i(71645),n=e.i(2155),i=e.i(46725),r=e.i(14189);e.s(["useActivePress",0,function({disabled:e=!1}={}){let o=(0,t.useRef)(null),[s,a]=(0,t.useState)(!1),l=(0,i.useDisposables)(),u=(0,r.useEvent)(()=>{o.current=null,a(!1),l.dispose()}),c=(0,r.useEvent)(e=>{if(l.dispose(),null===o.current){o.current=e.currentTarget,a(!0);{let t=(0,n.getOwnerDocument)(e.currentTarget);l.addEventListener(t,"pointerup",u,!1),l.addEventListener(t,"pointermove",e=>{if(o.current){var t,n;let i,r;a((i=e.width/2,r=e.height/2,t={top:e.clientY-r,right:e.clientX+i,bottom:e.clientY+r,left:e.clientX-i},n=o.current.getBoundingClientRect(),!(!t||!n||t.right<n.left||t.left>n.right||t.bottom<n.top||t.top>n.bottom)))}},!1),l.addEventListener(t,"pointercancel",u,!1)}}});return{pressed:s,pressProps:e?{}:{onPointerDown:c,onPointerUp:u,onClick:u}}}])},36289,e=>{"use strict";var t=e.i(71645);function n(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}e.s(["useByComparator",0,function(e=n){return(0,t.useCallback)((t,n)=>"string"==typeof e?(null==t?void 0:t[e])===(null==n?void 0:n[e]):e(t,n),[e])}])},3269,14520,e=>{"use strict";var t=e.i(71645),n=e.i(74080),i=e.i(14189);e.s(["useControllable",0,function(e,r,o){let[s,a]=(0,t.useState)(o),l=void 0!==e,u=(0,t.useRef)(l),c=(0,t.useRef)(!1),d=(0,t.useRef)(!1);return!l||u.current||c.current?l||!u.current||d.current||(d.current=!0,u.current=l,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=l,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.")),[l?e:s,(0,i.useEvent)(e=>(l||(0,n.flushSync)(()=>a(e)),null==r?void 0:r(e)))]}],3269),e.s(["useDefaultValue",0,function(e){let[n]=(0,t.useState)(e);return n}],14520)},46725,68578,44508,e=>{"use strict";var t=e.i(71645);function n(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}function i(){let e=[],t={addEventListener:(e,n,i,r)=>(e.addEventListener(n,i,r),t.add(()=>e.removeEventListener(n,i,r))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(n))},nextFrame:(...e)=>t.requestAnimationFrame(()=>t.requestAnimationFrame(...e)),setTimeout(...e){let n=setTimeout(...e);return t.add(()=>clearTimeout(n))},microTask(...e){let i={current:!0};return n(()=>{i.current&&e[0]()}),t.add(()=>{i.current=!1})},style(e,t,n){let i=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:i})})},group(e){let t=i();return e(t),this.add(()=>t.dispose())},add:t=>(e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}e.s(["microTask",0,n],68578),e.s(["disposables",0,i],44508),e.s(["useDisposables",0,function(){let[e]=(0,t.useState)(i);return(0,t.useEffect)(()=>()=>
4e.dispose(),[e]),e}],46725)},92704,19751,e=>{"use strict";var t=e.i(71645),n=e.i(44508),i=e.i(35696);function r(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}e.s(["useElementSize",0,function(e,o,s=!1){let[a,l]=(0,t.useState)(()=>r(o));return(0,i.useIsoMorphicEffect)(()=>{if(!o||!e)return;let t=(0,n.disposables)();return t.requestAnimationFrame(function e(){t.requestAnimationFrame(e),l(e=>{let t=r(o);return t.width===e.width&&t.height===e.height?e:t})}),()=>{t.dispose()}},[o,e]),s?{width:`${a.width}px`,height:`${a.height}px`}:a}],92704);let o=Math.min,s=Math.max,a=Math.round,l=Math.floor,u=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},d={start:"end",end:"start"};function f(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function v(e){return"y"===e?"height":"width"}let g=new Set(["top","bottom"]);function y(e){return g.has(p(e))?"y":"x"}function b(e){return e.replace(/start|end/g,e=>d[e])}let x=["left","right"],E=["right","left"],S=["top","bottom"],w=["bottom","top"];function P(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function T(e){let{x:t,y:n,width:i,height:r}=e;return{width:i,height:r,top:n,left:t,right:t+i,bottom:n+r,x:t,y:n}}function R(e,t,n){let i,{reference:r,floating:o}=e,s=y(t),a=m(y(t)),l=v(a),u=p(t),c="y"===s,d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,g=r[l]/2-o[l]/2;switch(u){case"top":i={x:d,y:r.y-o.height};break;case"bottom":i={x:d,y:r.y+r.height};break;case"right":i={x:r.x+r.width,y:f};break;case"left":i={x:r.x-o.width,y:f};break;default:i={x:r.x,y:r.y}}switch(h(t)){case"start":i[a]-=g*(n&&c?-1:1);break;case"end":i[a]+=g*(n&&c?-1:1)}return i}let C=async(e,t,n)=>{let{placement:i="bottom",strategy:r="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await (null==s.isRTL?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:d}=R(u,i,l),f=i,p={},h=0;for(let n=0;n<a.length;n++){let{name:o,fn:m}=a[n],{x:v,y:g,data:y,reset:b}=await m({x:c,y:d,initialPlacement:i,placement:f,strategy:r,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});c=null!=v?v:c,d=null!=g?g:d,p={...p,[o]:{...p[o],...y}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await s.getElementRects({reference:e,floating:t,strategy:r}):b.rects),{x:c,y:d}=R(u,f,l)),n=-1)}return{x:c,y:d,placement:f,strategy:r,middlewareData:p}};async function M(e,t){var n,i;void 0===t&&(t={});let{x:r,y:o,platform:s,rects:a,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:m=0}=f(t,e),v="number"!=typeof(i=m)?{top:0,right:0,bottom:0,left:0,...i}:{top:i,right:i,bottom:i,left:i},g=l[h?"floating"===p?"reference":"floating":p],y=T(await s.getClippingRect({element:null==(n=await (null==s.isElement?void 0:s.isElement(g)))||n?g:g.contextElement||await (null==s.getDocumentElement?void 0:s.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:u})),b="floating"===p?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,x=await (null==s.getOffsetParent?void 0:s.getOffsetParent(l.floating)),E=await (null==s.isElement?void 0:s.isElement(x))&&await (null==s.getScale?void 0:s.getScale(x))||{x:1,y:1},S=T(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:b,offsetParent:x,strategy:u}):b);return{top:(y.top-S.top+v.top)/E.y,bottom:(S.bottom-y.bottom+v.bottom)/E.y,left:(y.left-S.left+v.left)/E.x,right:(S.right-y.right+v.right)/E.x}}let F=new Set(["left","top"]);async function I(e,t){let{placement:n,platform:i,elements:r}=e,o=await (null==i.isRTL?void 0:i.isRTL(r.floating)),s=p(n),a=h(n),l="y"===y(n),u=F.has(s)?-1:1,c=o&&l?-1:1,d=f(t,e),{mainAxis:m,crossAxis:v,alignmentAxis:g}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}
4:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof g&&(v="end"===a?-1*g:g),l?{x:v*c,y:m*u}:{x:m*u,y:v*c}}function O(){return"u">typeof window}function k(e){return L(e)?(e.nodeName||"").toLowerCase():"#document"}function A(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function D(e){var t;return null==(t=(L(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function L(e){return!!O()&&(e instanceof Node||e instanceof A(e).Node)}function V(e){return!!O()&&(e instanceof Element||e instanceof A(e).Element)}function B(e){return!!O()&&(e instanceof HTMLElement||e instanceof A(e).HTMLElement)}function N(e){return!(!O()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof A(e).ShadowRoot)}let j=new Set(["inline","contents"]);function H(e){let{overflow:t,overflowX:n,overflowY:i,display:r}=Q(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!j.has(r)}let W=new Set(["table","td","th"]),_=[":popover-open",":modal"];function z(e){return _.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let U=["transform","translate","scale","rotate","perspective"],K=["transform","translate","scale","rotate","perspective","filter"],$=["paint","layout","strict","content"];function G(e){let t=q(),n=V(e)?Q(e):e;return U.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||K.some(e=>(n.willChange||"").includes(e))||$.some(e=>(n.contain||"").includes(e))}function q(){return!("u"<typeof CSS)&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let Y=new Set(["html","body","#document"]);function X(e){return Y.has(k(e))}function Q(e){return A(e).getComputedStyle(e)}function Z(e){return V(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function J(e){if("html"===k(e))return e;let t=e.assignedSlot||e.parentNode||N(e)&&e.host||D(e);return N(t)?t.host:t}function ee(e,t,n){var i;void 0===t&&(t=[]),void 0===n&&(n=!0);let r=function e(t){let n=J(t);return X(n)?t.ownerDocument?t.ownerDocument.body:t.body:B(n)&&H(n)?n:e(n)}(e),o=r===(null==(i=e.ownerDocument)?void 0:i.body),s=A(r);if(o){let e=et(s);return t.concat(s,s.visualViewport||[],H(r)?r:[],e&&n?ee(e):[])}return t.concat(r,ee(r,[],n))}function et(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function en(e){let t=Q(e),n=parseFloat(t.width)||0,i=parseFloat(t.height)||0,r=B(e),o=r?e.offsetWidth:n,s=r?e.offsetHeight:i,l=a(n)!==o||a(i)!==s;return l&&(n=o,i=s),{width:n,height:i,$:l}}function ei(e){return V(e)?e:e.contextElement}function er(e){let t=ei(e);if(!B(t))return u(1);let n=t.getBoundingClientRect(),{width:i,height:r,$:o}=en(t),s=(o?a(n.width):n.width)/i,l=(o?a(n.height):n.height)/r;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}let eo=u(0);function es(e){let t=A(e);return q()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eo}function ea(e,t,n,i){var r;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),s=ei(e),a=u(1);t&&(i?V(i)&&(a=er(i)):a=er(e));let l=(void 0===(r=n)&&(r=!1),i&&(!r||i===A(s))&&r)?es(s):u(0),c=(o.left+l.x)/a.x,d=(o.top+l.y)/a.y,f=o.width/a.x,p=o.height/a.y;if(s){let e=A(s),t=i&&V(i)?A(i):i,n=e,r=et(n);for(;r&&i&&t!==n;){let e=er(r),t=r.getBoundingClientRect(),i=Q(r),o=t.left+(r.clientLeft+parseFloat(i.paddingLeft))*e.x,s=t.top+(r.clientTop+parseFloat(i.paddingTop))*e.y;c*=e.x,d*=e.y,f*=e.x,p*=e.y,c+=o,d+=s,r=et(n=A(r))}}return T({width:f,height:p,x:c,y:d})}function el(e,t){let n=Z(e).scrollLeft;return t?t.left+n:ea(D(e)).left+n}function eu(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-el(e,n),y:n.top+t.scrollTop}}let ec=new Set(["absolute","fixed"]);function ed(e,t,n){var i;let r;if("viewport"===t)r=function(e,t){let n=A(e),i=D(e),r=n.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;let e=q();(!e||e&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}let u=el(i);if(u<=0){let e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,s=Math.abs(i.clientWidth-t.clientWidth-r);s<=25&&(o-=s)}else u<=25&&(o+=u);return{width:o,height:s,x:a,y:l}}(e,n);else if("document"===t){let t,n,o,a,l,u,c;i=D(e),t=D(i),n=Z(i),o=i.ownerDocument.body,a=s(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=s(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),u=-n.scrollLeft+el(i),c=-n.scrollTop,"rtl"===Q(o).direction&&(u+=s(t.clientWidth,o.clientWidth)-a),r
4={width:a,height:l,x:u,y:c}}else if(V(t)){let e,i,o,s,a,l;i=(e=ea(t,!0,"fixed"===n)).top+t.clientTop,o=e.left+t.clientLeft,s=B(t)?er(t):u(1),a=t.clientWidth*s.x,l=t.clientHeight*s.y,r={width:a,height:l,x:o*s.x,y:i*s.y}}else{let n=es(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return T(r)}function ef(e){return"static"===Q(e).position}function ep(e,t){if(!B(e)||"fixed"===Q(e).position)return null;if(t)return t(e);let n=e.offsetParent;return D(e)===n&&(n=n.ownerDocument.body),n}function eh(e,t){var n;let i=A(e);if(z(e))return i;if(!B(e)){let t=J(e);for(;t&&!X(t);){if(V(t)&&!ef(t))return t;t=J(t)}return i}let r=ep(e,t);for(;r&&(n=r,W.has(k(n)))&&ef(r);)r=ep(r,t);return r&&X(r)&&ef(r)&&!G(r)?i:r||function(e){let t=J(e);for(;B(t)&&!X(t);){if(G(t))return t;if(z(t))break;t=J(t)}return null}(e)||i}let em=async function(e){let t=this.getOffsetParent||eh,n=this.getDimensions,i=await n(e.floating);return{reference:function(e,t,n){let i=B(t),r=D(t),o="fixed"===n,s=ea(e,!0,o,t),a={scrollLeft:0,scrollTop:0},l=u(0);if(i||!i&&!o)if(("body"!==k(t)||H(r))&&(a=Z(t)),i){let e=ea(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else r&&(l.x=el(r));o&&!i&&r&&(l.x=el(r));let c=!r||i||o?u(0):eu(r,a);return{x:s.left+a.scrollLeft-l.x-c.x,y:s.top+a.scrollTop-l.y-c.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}}},ev={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:i,strategy:r}=e,o="fixed"===r,s=D(i),a=!!t&&z(t.floating);if(i===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},c=u(1),d=u(0),f=B(i);if((f||!f&&!o)&&(("body"!==k(i)||H(s))&&(l=Z(i)),B(i))){let e=ea(i);c=er(i),d.x=e.x+i.clientLeft,d.y=e.y+i.clientTop}let p=!s||f||o?u(0):eu(s,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+p.x,y:n.y*c.y-l.scrollTop*c.y+d.y+p.y}},getDocumentElement:D,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i,strategy:r}=e,a=[..."clippingAncestors"===n?z(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let i=ee(e,[],!1).filter(e=>V(e)&&"body"!==k(e)),r=null,o="fixed"===Q(e).position,s=o?J(e):e;for(;V(s)&&!X(s);){let t=Q(s),n=G(s);n||"fixed"!==t.position||(r=null),(o?!n&&!r:!n&&"static"===t.position&&!!r&&ec.has(r.position)||H(s)&&!n&&function e(t,n){let i=J(t);return!(i===n||!V(i)||X(i))&&("fixed"===Q(i).position||e(i,n))}(e,s))?i=i.filter(e=>e!==s):r=t,s=J(s)}return t.set(e,i),i}(t,this._c):[].concat(n),i],l=a[0],u=a.reduce((e,n)=>{let i=ed(t,n,r);return e.top=s(i.top,e.top),e.right=o(i.right,e.right),e.bottom=o(i.bottom,e.bottom),e.left=s(i.left,e.left),e},ed(t,l,r));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:eh,getElementRects:em,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=en(e);return{width:t,height:n}},getScale:er,isElement:V,isRTL:function(e){return"rtl"===Q(e).direction}};function eg(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ey(e,t,n,i){let r;void 0===i&&(i={});let{ancestorScroll:a=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:f=!1}=i,p=ei(e),h=a||u?[...p?ee(p):[],...ee(t)]:[];h.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let m=p&&d?function(e,t){let n,i=null,r=D(e);function a(){var e;clearTimeout(n),null==(e=i)||e.disconnect(),i=null}return!function u(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),a();let f=e.getBoundingClientRect(),{left:p,top:h,width:m,height:v}=f;if(c||t(),!m||!v)return;let g={rootMargin:-l(h)+"px "+-l(r.clientWidth-(p+m))+"px "+-l(r.clientHeight-(h+v))+"px "+-l(p)+"px",threshold:s(0,o(1,d))||1},y=!0;function b(t){let i=t[0].intersectionRatio;if(i!==d){if(!y)return u();i?u(!1,i):n=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==i||eg(f,e.getBoundingClientRect())||u(),y=!1}try{i=new IntersectionObserver(b,{...g,root:r.ownerDocument})}catch(e){i=new IntersectionObserver(b,g)}i.observe(e)}(!0),a}(p,n):null,v=-1,g=null;c&&(g=new ResizeObserver(e=>{let[i]=e;i&&i.target===p&&g&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),p&&!f&&g.observe(p),g.observe(t));let y=f?ea(e):null;return f&&function t(){let i=ea(e);y&&!eg(y,i)&&n(),y=i,r=requestAnimationFrame(t)}(),n(),()=>{var e;
4h.forEach(e=>{a&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=g)||e.disconnect(),g=null,f&&cancelAnimationFrame(r)}}var eb=e.i(74080),ex="u">typeof document?t.useLayoutEffect:function(){};function eE(e,t){let n,i,r;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(i=n;0!=i--;)if(!eE(e[i],t[i]))return!1;return!0}if((n=(r=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(i=n;0!=i--;)if(!({}).hasOwnProperty.call(t,r[i]))return!1;for(i=n;0!=i--;){let n=r[i];if(("_owner"!==n||!e.$$typeof)&&!eE(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eS(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ew(e,t){let n=eS(e);return Math.round(t*n)/n}function eP(e){let n=t.useRef(e);return ex(()=>{n.current=e}),n}let eT=(e,t)=>{var n;return{...(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,i;let{x:r,y:o,placement:s,middlewareData:a}=e,l=await I(e,n);return s===(null==(t=a.offset)?void 0:t.placement)&&null!=(i=a.arrow)&&i.alignmentOffset?{}:{x:r+l.x,y:o+l.y,data:{...l,placement:s}}}}),options:[e,t]}};var eR="u"<typeof Element;eR||Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,eR||Element.prototype.getRootNode;let eC={...t},eM=eC.useInsertionEffect||(e=>e());function eF(e){let n=t.useRef(()=>{});return eM(()=>{n.current=e}),t.useCallback(function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return null==n.current?void 0:n.current(...t)},[])}var eI="u">typeof document?t.useLayoutEffect:t.useEffect;let eO=!1,ek=0,eA=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+ek++,eD=eC.useId||function(){let[e,n]=t.useState(()=>eO?eA():void 0);return eI(()=>{null==e&&n(eA())},[]),t.useEffect(()=>{eO=!0},[]),e},eL=t.createContext(null),eV=t.createContext(null),eB="active",eN="selected";function ej(e,t,n){let i=new Map,r="item"===n,o=e;if(r&&e){let{[eB]:t,[eN]:n,...i}=e;o=i}return{..."floating"===n&&{tabIndex:-1,"data-floating-ui-focusable":""},...o,...t.map(t=>{let i=t?t[n]:null;return"function"==typeof i?e?i(e):null:i}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,o]=t;if(!(r&&[eB,eN].includes(n)))if(0===n.indexOf("on")){if(i.has(n)||i.set(n,[]),"function"==typeof o){var s;null==(s=i.get(n))||s.push(o),e[n]=function(){for(var e,t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];return null==(e=i.get(n))?void 0:e.map(e=>e(...r)).find(e=>void 0!==e)}}}else e[n]=o}),e),{})}}function eH(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}var eW=e.i(46725),e_=e.i(14189),ez=e.i(13581);let eU=(0,t.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});eU.displayName="FloatingContext";let eK=(0,t.createContext)(null);function e$(e,n,r){let o=(0,eW.useDisposables)(),s=(0,e_.useEvent)((e,t)=>{if(null==e)return[r,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[r,null];let n=eG(e,t);return[n,i=>{let r=function e(t){let n=/var\((.*)\)/.exec(t);if(n){let t=n[1].indexOf(",");if(-1===t)return[n[1]];let i=n[1].slice(0,t).trim(),r=n[1].slice(t+1).trim();return r?[i,...e(r)]:[i]}return[]}(e);{let s=r.map(e=>window.getComputedStyle(t).getPropertyValue(e));o.requestAnimationFrame(function a(){o.nextFrame(a);let l=!1;for(let[e,n]of r.entries()){let i=window.getComputedStyle(t).getPropertyValue(n);if(s[e]!==i){s[e]=i,l=!0;break}}if(!l)return;let u=eG(e,t);n!==u&&(i(u),n=u)})}return o.dispose}]}return[r,null]}),a=(0,t.useMemo)(()=>s(e,n)[0],[e,n]),[l=a,u]=(0,t.useState)();return(0,i.useIsoMorphicEffect)(()=>{let[t,i]=s(e,n);if(u(t),i)return i(u)},[e,n]),l}function eG(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 i=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),i}eK.displayName="PlacementContext",e.s(["FloatingProvider",0,function({children:e,enabled:n=!0}){var r,l,u,c,d,g,T,R,F,I,O,k,A;let D,L,B,N,j,H,W,_,z,U,[K,$]=(0,t.useState)(null),[G,q]=(0,t.useState)(0),Y=(0,t.useRef)(null),[X,Q]=(0,t.useState)(null);R=X,(0,i.useIsoMorphicEffect)(()=>
4{if(!R)return;let e=new MutationObserver(()=>{let e=window.getComputedStyle(R).maxHeight,t=parseFloat(e);if(isNaN(t))return;let n=parseInt(e);isNaN(n)||t!==n&&(R.style.maxHeight=`${Math.ceil(t)}px`)});return e.observe(R,{attributes:!0,attributeFilter:["style"]}),()=>{e.disconnect()}},[R]);let Z=n&&null!==K&&null!==X,{to:J="bottom",gap:ee=0,offset:et=0,padding:en=0,inner:ei}=(F=K,I=X,D=e$(null!=(O=null==F?void 0:F.gap)?O:"var(--anchor-gap, 0)",I),L=e$(null!=(k=null==F?void 0:F.offset)?k:"var(--anchor-offset, 0)",I),B=e$(null!=(A=null==F?void 0:F.padding)?A:"var(--anchor-padding, 0)",I),{...F,gap:D,offset:L,padding:B}),[er,eo="center"]=J.split(" ");(0,i.useIsoMorphicEffect)(()=>{Z&&q(0)},[Z]);let{refs:es,floatingStyles:ea,context:el}=function(e){void 0===e&&(e={});let{nodeId:n}=e,i=function(e){var n;let{open:i=!1,onOpenChange:r,elements:o}=e,s=eD(),a=t.useRef({}),[l]=t.useState(()=>{let e;return e=new Map,{emit(t,n){var i;null==(i=e.get(t))||i.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var i;e.set(t,(null==(i=e.get(t))?void 0:i.filter(e=>e!==n))||[])}}}),u=null!=((null==(n=t.useContext(eL))?void 0:n.id)||null),[c,d]=t.useState(o.reference),f=eF((e,t,n)=>{a.current.openEvent=e?t:void 0,l.emit("openchange",{open:e,event:t,reason:n,nested:u}),null==r||r(e,t,n)}),p=t.useMemo(()=>({setPositionReference:d}),[]),h=t.useMemo(()=>({reference:c||o.reference||null,floating:o.floating||null,domReference:o.reference}),[c,o.reference,o.floating]);return t.useMemo(()=>({dataRef:a,open:i,onOpenChange:f,elements:h,events:l,floatingId:s,refs:p}),[i,f,h,l,s,p])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||i,o=r.elements,[s,a]=t.useState(null),[l,u]=t.useState(null),c=(null==o?void 0:o.domReference)||s,d=t.useRef(null),f=t.useContext(eV);eI(()=>{c&&(d.current=c)},[c]);let p=function(e){void 0===e&&(e={});let{placement:n="bottom",strategy:i="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[d,f]=t.useState({x:0,y:0,strategy:i,placement:n,middlewareData:{},isPositioned:!1}),[p,h]=t.useState(r);eE(p,r)||h(r);let[m,v]=t.useState(null),[g,y]=t.useState(null),b=t.useCallback(e=>{e!==w.current&&(w.current=e,v(e))},[]),x=t.useCallback(e=>{e!==P.current&&(P.current=e,y(e))},[]),E=s||m,S=a||g,w=t.useRef(null),P=t.useRef(null),T=t.useRef(d),R=null!=u,M=eP(u),F=eP(o),I=eP(c),O=t.useCallback(()=>{var e,t;let r,o,s;if(!w.current||!P.current)return;let a={placement:n,strategy:i,middleware:p};F.current&&(a.platform=F.current),(e=w.current,t=P.current,r=new Map,s={...(o={platform:ev,...a}).platform,_c:r},C(e,t,{...o,platform:s})).then(e=>{let t={...e,isPositioned:!1!==I.current};k.current&&!eE(T.current,t)&&(T.current=t,eb.flushSync(()=>{f(t)}))})},[p,n,i,F,I]);ex(()=>{!1===c&&T.current.isPositioned&&(T.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);let k=t.useRef(!1);ex(()=>(k.current=!0,()=>{k.current=!1}),[]),ex(()=>{if(E&&(w.current=E),S&&(P.current=S),E&&S){if(M.current)return M.current(E,S,O);O()}},[E,S,O,M,R]);let A=t.useMemo(()=>({reference:w,floating:P,setReference:b,setFloating:x}),[b,x]),D=t.useMemo(()=>({reference:E,floating:S}),[E,S]),L=t.useMemo(()=>{let e={position:i,left:0,top:0};if(!D.floating)return e;let t=ew(D.floating,d.x),n=ew(D.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...eS(D.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:t,top:n}},[i,l,D.floating,d.x,d.y]);return t.useMemo(()=>({...d,update:O,refs:A,elements:D,floatingStyles:L}),[d,O,A,D,L])}({...e,elements:{...o,...l&&{reference:l}}}),h=t.useCallback(e=>{let t=V(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;u(t),p.refs.setReference(t)},[p.refs]),m=t.useCallback(e=>{(V(e)||null===e)&&(d.current=e,a(e)),(V(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!V(e))&&p.refs.setReference(e)},[p.refs]),v=t.useMemo(()=>({...p.refs,setReference:m,setPositionReference:h,domReference:d}),[p.refs,m,h]),g=t.useMemo(()=>({...p.elements,domReference:c}),[p.elements,c]),y=t.useMemo(()=>({...p,...r,refs:v,elements:g,nodeId:n}),[p,v,g,n,r]);return eI(()=>{r.dataRef.current.floatingContext=y;let e=null==f?void 0:f.nodesRef.current.find(e=>e.id===n);e&&(e.context=y)}),t.useMemo(()=>({...p,context:y,refs:v,elements:g}),[p,v,g,y])}({open:Z,placement:"selection"===er?"center"===eo?"bottom":`bottom-${eo}`:"center"===eo?`${er}`:`${er}-${eo}`,strategy:"absolute",transform:!1,middleware:[eT({mainAxis:"selection"===er?0:ee,crossAxis:et}),{...{name:"shift",options:l=r={padding:en},async fn(e){let{x:t,y:n,placement:i}
4=e,{mainAxis:r=!0,crossAxis:a=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=f(l,e),d={x:t,y:n},h=await M(e,c),v=y(p(i)),g=m(v),b=d[g],x=d[v];if(r){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=b+h[e],i=b-h[t];b=s(n,o(b,i))}if(a){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=x+h[e],i=x-h[t];x=s(n,o(x,i))}let E=u.fn({...e,[g]:b,[v]:x});return{...E,data:{x:E.x-t,y:E.y-n,enabled:{[g]:r,[v]:a}}}}},options:[r,void 0]},"selection"!==er&&{...{name:"flip",options:c=u={padding:en},async fn(e){var t,n,i,r,o,s,a,l;let u,d,g,{placement:T,middlewareData:R,rects:C,initialPlacement:F,platform:I,elements:O}=e,{mainAxis:k=!0,crossAxis:A=!0,fallbackPlacements:D,fallbackStrategy:L="bestFit",fallbackAxisSideDirection:V="none",flipAlignment:B=!0,...N}=f(c,e);if(null!=(t=R.arrow)&&t.alignmentOffset)return{};let j=p(T),H=y(F),W=p(F)===F,_=await (null==I.isRTL?void 0:I.isRTL(O.floating)),z=D||(W||!B?[P(F)]:(u=P(F),[b(F),u,b(u)])),U="none"!==V;!D&&U&&z.push(...(d=h(F),g=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?E:x;return t?x:E;case"left":case"right":return t?S:w;default:return[]}}(p(F),"start"===V,_),d&&(g=g.map(e=>e+"-"+d),B&&(g=g.concat(g.map(b)))),g));let K=[F,...z],$=await M(e,N),G=[],q=(null==(n=R.flip)?void 0:n.overflows)||[];if(k&&G.push($[j]),A){let e,t,n,i,r=(s=T,a=C,void 0===(l=_)&&(l=!1),e=h(s),n=v(t=m(y(s))),i="x"===t?e===(l?"end":"start")?"right":"left":"start"===e?"bottom":"top",a.reference[n]>a.floating[n]&&(i=P(i)),[i,P(i)]);G.push($[r[0]],$[r[1]])}if(q=[...q,{placement:T,overflows:G}],!G.every(e=>e<=0)){let e=((null==(i=R.flip)?void 0:i.index)||0)+1,t=K[e];if(t&&("alignment"!==A||H===y(t)||q.every(e=>y(e.placement)!==H||e.overflows[0]>0)))return{data:{index:e,overflows:q},reset:{placement:t}};let n=null==(r=q.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:r.placement;if(!n)switch(L){case"bestFit":{let e=null==(o=q.filter(e=>{if(U){let t=y(e.placement);return t===H||"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:o[0];e&&(n=e);break}case"initialPlacement":n=F}if(T!==n)return{reset:{placement:n}}}return{}}},options:[u,void 0]},"selection"===er&&ei?{name:"inner",options:N={...ei,padding:en,overflowRef:Y,offset:G,minItemsVisible:4,referenceOverflowThreshold:en,onFallbackChange(e){var t,n;if(!e)return;let i=el.elements.floating;if(!i)return;let r=parseFloat(getComputedStyle(i).scrollPaddingBottom)||0,o=Math.min(4,i.childElementCount),s=0,a=0;for(let e of null!=(n=null==(t=el.elements.floating)?void 0:t.childNodes)?n:[])if(ez.isHTMLElement(e)){let t=e.offsetTop,n=t+e.clientHeight+r,l=i.scrollTop,u=l+i.clientHeight;if(t>=l&&n<=u)o--;else{a=Math.max(0,Math.min(n,u)-Math.max(t,l)),s=e.clientHeight;break}}o>=1&&q(e=>{let t=s*o-a+r;return e>=t?e:t})}},async fn(e){let{listRef:t,overflowRef:n,onFallbackChange:i,offset:r=0,index:l=0,minItemsVisible:u=4,referenceOverflowThreshold:c=0,scrollRef:d,...p}=f(N,e),{rects:h,elements:{floating:m}}=e,v=t.current[l],g=(null==d?void 0:d.current)||m,y=m.clientTop||g.clientTop,b=0!==m.clientTop,x=0!==g.clientTop,E=m===g;if(!v)return{};let S={...e,...await eT(-v.offsetTop-m.clientTop-h.reference.height/2-v.offsetHeight/2-r).fn(e)},w=await M(eH(S,g.scrollHeight+y+m.clientTop),p),P=await M(S,{...p,elementContext:"reference"}),T=s(0,w.top),R=S.y+T,C=(g.scrollHeight>g.clientHeight?e=>e:a)(s(0,g.scrollHeight+(b&&E||x?2*y:0)-T-s(0,w.bottom)));if(g.style.maxHeight=C+"px",g.scrollTop=T,i){let e=g.offsetHeight<v.offsetHeight*o(u,t.current.length)-1||P.top>=-c||P.bottom>=-c;eb.flushSync(()=>i(e))}return n&&(n.current=await M(eH({...S,y:R},g.offsetHeight+y+m.clientTop),p)),{y:R}}}:null,{...{name:"size",options:g=d={padding:en,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)`})}},async fn(e){var t,n;let i,r,{placement:a,rects:l,platform:u,elements:c}=e,{apply:d=()=>{},...m}=f(g,e),v=await M(e,m),b=p(a),x=h(a),E="y"===y(a),{width:S,height:w}=l.floating;"top"===b||"bottom"===b?(i=b,r=x===(await (null==u.isRTL?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(r=b,i="end"===x?"top":"bottom");let P=w-v.top-v.bottom,T=S-v.left-v.right,R=o(w-v[i],P),C=o(S-v[r],T),F=!e.middlewareData.shift,I=R,O=C;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(O=T),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(I=P),F&&!x){let e=s(v.left,0),t=s(v.right,0),n=s(v.top,0),i=s(v.bottom,0);E?O=S-2*(0!==e||0!==t?e+t:s(v.left,v.right)):I=w-2*(0!==n||0!==i?n+i:s(v.top,v.bottom))}await d({...e,availableWidth:O,availableHeight:I});let k=await u.getDimensions(c.floating);return S!==k.width||w!==k.height?{reset:{rects:!0}}:{}}},options:[d,void 0]}
4].filter(Boolean),whileElementsMounted:ey}),[eu=er,ec=eo]=el.placement.split("-");"selection"===er&&(eu="selection");let ed=(0,t.useMemo)(()=>({anchor:[eu,ec].filter(Boolean).join(" ")}),[eu,ec]),{getReferenceProps:ef,getFloatingProps:ep}=(j=(T=[function(e,n){let{open:i,elements:r}=e,{enabled:o=!0,overflowRef:s,scrollRef:a,onChange:l}=n,u=eF(l),c=t.useRef(!1),d=t.useRef(null),f=t.useRef(null);t.useEffect(()=>{if(!o)return;function e(e){if(e.ctrlKey||!t||null==s.current)return;let n=e.deltaY,i=s.current.top>=-.5,r=s.current.bottom>=-.5,o=t.scrollHeight-t.clientHeight,a=n<0?-1:1,l=n<0?"max":"min";if(!(t.scrollHeight<=t.clientHeight))if(!i&&n>0||!r&&n<0)e.preventDefault(),eb.flushSync(()=>{u(e=>e+Math[l](n,o*a))});else{let e;/firefox/i.test((e=navigator.userAgentData)&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent)&&(t.scrollTop+=n)}}let t=(null==a?void 0:a.current)||r.floating;if(i&&t)return t.addEventListener("wheel",e),requestAnimationFrame(()=>{d.current=t.scrollTop,null!=s.current&&(f.current={...s.current})}),()=>{d.current=null,f.current=null,t.removeEventListener("wheel",e)}},[o,i,r.floating,s,a,u]);let p=t.useMemo(()=>({onKeyDown(){c.current=!0},onWheel(){c.current=!1},onPointerMove(){c.current=!1},onScroll(){let e=(null==a?void 0:a.current)||r.floating;if(s.current&&e&&c.current){if(null!==d.current){let t=e.scrollTop-d.current;(s.current.bottom<-.5&&t<-1||s.current.top<-.5&&t>1)&&eb.flushSync(()=>u(e=>e+t))}requestAnimationFrame(()=>{d.current=e.scrollTop})}}}),[r.floating,u,s,a]);return t.useMemo(()=>o?{floating:p}:{},[o,p])}(el,{overflowRef:Y,onChange:q})]).map(e=>null==e?void 0:e.reference),H=T.map(e=>null==e?void 0:e.floating),W=T.map(e=>null==e?void 0:e.item),_=t.useCallback(e=>ej(e,T,"reference"),j),z=t.useCallback(e=>ej(e,T,"floating"),H),U=t.useCallback(e=>ej(e,T,"item"),W),t.useMemo(()=>({getReferenceProps:_,getFloatingProps:z,getItemProps:U}),[_,z,U])),eh=(0,e_.useEvent)(e=>{Q(e),es.setFloating(e)});return t.createElement(eK.Provider,{value:$},t.createElement(eU.Provider,{value:{setFloating:eh,setReference:es.setReference,styles:ea,getReferenceProps:ef,getFloatingProps:ep,slot:ed}},e))},"useFloatingPanel",0,function(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let n=(0,t.useContext)(eK),r=(0,t.useMemo)(()=>e,[JSON.stringify(e,(e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t})]);(0,i.useIsoMorphicEffect)(()=>{null==n||n(null!=r?r:null)},[n,r]);let o=(0,t.useContext)(eU);return(0,t.useMemo)(()=>[o.setFloating,e?o.styles:{}],[o.setFloating,e,o.styles])},"useFloatingPanelProps",0,function(){let{getFloatingProps:e,slot:n}=(0,t.useContext)(eU);return(0,t.useCallback)((...t)=>Object.assign({},e(...t),{"data-anchor":n.anchor}),[e,n])},"useFloatingReference",0,function(){return(0,t.useContext)(eU).setReference},"useFloatingReferenceProps",0,function(){return(0,t.useContext)(eU).getReferenceProps},"useResolvedAnchor",0,function(e){return(0,t.useMemo)(()=>e?"string"==typeof e?{to:e}:e:null,[e])}],19751)},93456,e=>{"use strict";var t=e.i(71645),n=e.i(41444);e.s(["useEventListener",0,function(e,i,r,o){let s=(0,n.useLatestValue)(r);(0,t.useEffect)(()=>{function t(e){s.current(e)}return(e=null!=e?e:window).addEventListener(i,t,o),()=>e.removeEventListener(i,t,o)},[e,i,o])}])},88374,63516,57138,71616,65659,67310,e=>{"use strict";let t,n,i;var r=e.i(71645),o=((t=o||{})[t.Left=0]="Left",t[t.Right=2]="Right",t);e.s(["MouseButton",0,o],63516);var s=e.i(33538),a=e.i(14189);e.s(["useHandleToggle",0,function(e){let t=(0,r.useRef)(null);return{onPointerDown:(0,a.useEvent)(n=>{t.current=n.pointerType,(0,s.isDisabledReactIssue7711)(n.currentTarget)||"mouse"!==n.pointerType||n.button!==o.Left||(n.preventDefault(),e(n))}),onClick:(0,a.useEvent)(n=>{"mouse"!==t.current&&((0,s.isDisabledReactIssue7711)(n.currentTarget)||e(n))})}}],88374);var l=e.i(13581),u=e.i(22357),c=((n=c||{})[n.Ignore=0]="Ignore",n[n.Select=1]="Select",n[n.Close=2]="Close",n);function d(e){return[e.screenX,e.screenY]}e.s(["Action",0,{Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}},"useQuickRelease",0,function(e,{trigger:t,action:n,close:i,select:o}){let s=(0,r.useRef)(null),a=(0,r.useRef)(null),c=(0,r.useRef)(null);(0,u.useDocumentEvent)(e&&null!==t,"pointerdown",e=>{l.isNode(null==e?void 0:e.target)&&null!=t&&t.contains(e.target)&&(a.current=e.x,c.current=e.y,s.current=e.timeStamp)}),(0,u.useDocumentEvent)(e&&null!==t,"pointerup",e=>{var t,r;let u=s.current;if(null===u||(s.current=null,!l.isHTMLorSVGElement(e.target))||5>Math.abs(e.x-(null!=(t=a.current)?t:e.x))&&5>
4Math.abs(e.y-(null!=(r=c.current)?r:e.y)))return;let d=n(e);switch(d.kind){case 0:return;case 1:e.timeStamp-u>200&&(o(d.target),i());break;case 2:i()}},{capture:!0})}],57138),e.s(["useTrackedPointer",0,function(){let e=(0,r.useRef)([-1,-1]);return{wasMoved(t){let n=d(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=d(t)}}}],71616);var f=((i=f||{})[i.First=0]="First",i[i.Previous=1]="Previous",i[i.Next=2]="Next",i[i.Last=3]="Last",i[i.Specific=4]="Specific",i[i.Nothing=5]="Nothing",i);e.s(["Focus",0,f,"calculateActiveIndex",0,function(e,t){let n=t.resolveItems();if(n.length<=0)return null;let i=t.resolveActiveIndex(),r=null!=i?i:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return i;case 1:-1===r&&(r=n.length);for(let e=r-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return i;case 2:for(let e=r+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return i;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return i;case 4:for(let i=0;i<n.length;++i)if(t.resolveId(n[i],i,n)===e.id)return i;return i;case 5:return null;default:throw Error("Unexpected object: "+e)}}],65659);var p=e.i(44508);function h(e){let t=e.getBoundingClientRect();return`${t.x},${t.y}`}e.s(["ElementPositionState",0,{Idle:{kind:"Idle"},Tracked:e=>({kind:"Tracked",position:e}),Moved:{kind:"Moved"}},"computeVisualPosition",0,h,"detectMovement",0,function(e,t,n){let i=(0,p.disposables)();if("Tracked"===t.kind){let r=function(){o!==h(e)&&(i.dispose(),n())},{position:o}=t,s=new ResizeObserver(r);s.observe(e),i.add(()=>s.disconnect()),i.addEventListener(window,"scroll",r,{passive:!0}),i.addEventListener(window,"resize",r)}return()=>i.dispose()}],67310)},84653,e=>{"use strict";var t=e.i(44508),n=e.i(2155),i=e.i(29644),r=e.i(35696);let o=new Map,s=new Map;function a(e){var t;let n=null!=(t=s.get(e))?t:0;return s.set(e,n+1),0!==n?()=>l(e):(o.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>l(e))}function l(e){var t;let n=null!=(t=s.get(e))?t:1;if(1===n?s.delete(e):s.set(e,n-1),1!==n)return;let i=o.get(e);i&&(null===i["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",i["aria-hidden"]),e.inert=i.inert,o.delete(e))}e.s(["useInertOthers",0,function(e,{allowed:o,disallowed:s}={}){let l=(0,i.useIsTopLayer)(e,"inert-others");(0,r.useIsoMorphicEffect)(()=>{var e,i;if(!l)return;let r=(0,t.disposables)();for(let t of null!=(e=null==s?void 0:s())?e:[])t&&r.add(a(t));let u=null!=(i=null==o?void 0:o())?i:[];for(let e of u){if(!e)continue;let t=(0,n.getOwnerDocument)(e);if(!t)continue;let i=e.parentElement;for(;i&&i!==t.body;){for(let e of i.children)u.some(t=>e.contains(t))||r.add(a(e));i=i.parentElement}}return r.dispose},[l,o,s])}])},53521,e=>{"use strict";var t=e.i(71645),n=e.i(35696);e.s(["useIsMounted",0,function(){let e=(0,t.useRef)(!1);return(0,n.useIsoMorphicEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}])},29644,25720,41650,40407,e=>{"use strict";let t;var n,i,r,o=e.i(71645);class s extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}}var a=e.i(44508),l=e.i(80758),u=Object.defineProperty,c=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},d=(e,t,n)=>(c(e,t,"read from private field"),n?n.call(e):t.get(e)),f=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},p=(e,t,n,i)=>(c(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n);class h{constructor(e){f(this,n,{}),f(this,i,new s(()=>new Set)),f(this,r,new Set),((e,t,n)=>{let i;return(i="symbol"!=typeof t?t+"":t)in e?u(e,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[i]=n})(this,"disposables",(0,a.disposables)()),p(this,n,e),l.env.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return d(this,n)}subscribe(e,t){if(l.env.isServer)return()=>{};let i={selector:e,callback:t,current:e(d(this,n))};return d(this,r).add(i),this.disposables.add(()=>{d(this,r).delete(i)})}on(e,t){return l.env.isServer?()=>{}:(d(this,i).get(e).add(t),this.disposables.add(()=>{d(this,i).get(e).delete(t)}))}send(e){let t=this.reduce(d(this,n),e);
4if(t!==d(this,n)){for(let e of(p(this,n,t),d(this,r))){let t=e.selector(d(this,n));m(e.current,t)||(e.current=t,e.callback(t))}for(let t of d(this,i).get(e.type))t(d(this,n),e)}}}function m(e,t){return!!Object.is(e,t)||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&(Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&v(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size===t.size&&v(e.entries(),t.entries()):!!(g(e)&&g(t))&&v(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()))}function v(e,t){for(;;){let n=e.next(),i=t.next();if(n.done&&i.done)return!0;if(n.done||i.done||!Object.is(n.value,i.value))return!1}}function g(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}n=new WeakMap,i=new WeakMap,r=new WeakMap,e.s(["Machine",0,h,"batch",0,function(e){let[t,n]=e(),i=(0,a.disposables)();return(...e)=>{t(...e),i.dispose(),i.microTask(n)}},"shallowEqual",0,m],25720);var y=e.i(97701),b=Object.defineProperty,x=(e,t,n)=>{let i;return(i="symbol"!=typeof t?t+"":t)in e?b(e,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[i]=n,n},E=((t=E||{})[t.Push=0]="Push",t[t.Pop=1]="Pop",t);let S={0(e,t){let n=t.id,i=e.stack,r=e.stack.indexOf(n);if(-1!==r){let t=e.stack.slice();return t.splice(r,1),t.push(n),i=t,{...e,stack:i}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,i=e.stack.indexOf(n);if(-1===i)return e;let r=e.stack.slice();return r.splice(i,1),{...e,stack:r}}};class w extends h{constructor(){super(...arguments),x(this,"actions",{push:e=>this.send({type:0,id:e}),pop:e=>this.send({type:1,id:e})}),x(this,"selectors",{isTop:(e,t)=>e.stack[e.stack.length-1]===t,inStack:(e,t)=>e.stack.includes(t)})}static new(){return new w({stack:[]})}reduce(e,t){return(0,y.match)(t.type,S,e,t)}}let P=new s(()=>w.new());e.s(["ActionTypes",0,E,"stackMachines",0,P],41650);var T=e.i(13027),R=e.i(14189);function C(e,t,n=m){return(0,T.useSyncExternalStoreWithSelector)((0,R.useEvent)(t=>e.subscribe(M,t)),(0,R.useEvent)(()=>e.state),(0,R.useEvent)(()=>e.state),(0,R.useEvent)(t),n)}function M(e){return e}e.s(["useSlice",0,C],40407);var F=e.i(35696);e.s(["useIsTopLayer",0,function(e,t){let n=(0,o.useId)(),i=P.get(t),[r,s]=C(i,(0,o.useCallback)(e=>[i.selectors.isTop(e,n),i.selectors.inStack(e,n)],[i,n]));return(0,F.useIsoMorphicEffect)(()=>{if(e)return i.actions.push(n),()=>i.actions.pop(n)},[i,e,n]),!!e&&(!s||r)}],29644)},77891,9507,22357,52744,1852,e=>{"use strict";let t,n;var i,r,o=e.i(71645),s=e.i(44508),a=e.i(13581),l=e.i(41444);e.s(["useOnDisappear",0,function(e,t,n){let i=(0,l.useLatestValue)(e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()});(0,o.useEffect)(()=>{if(!e)return;let n=null===t?null:a.isHTMLElement(t)?t:t.current;if(!n)return;let r=(0,s.disposables)();if("u">typeof ResizeObserver){let e=new ResizeObserver(()=>i.current(n));e.observe(n),r.add(()=>e.disconnect())}if("u">typeof IntersectionObserver){let e=new IntersectionObserver(()=>i.current(n));e.observe(n),r.add(()=>e.disconnect())}return()=>r.dispose()},[t,i,e])}],77891);var u=e.i(52265);function c(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function d(){return c()||/Android/gi.test(window.navigator.userAgent)}function f(e,t,n,i){let r=(0,l.useLatestValue)(n);(0,o.useEffect)(()=>{if(e)return document.addEventListener(t,n,i),()=>document.removeEventListener(t,n,i);function n(e){r.current(e)}},[e,t,i])}e.s(["isIOS",0,c,"isMobile",0,d],9507),e.s(["useDocumentEvent",0,f],22357);var p=e.i(1141);e.s(["useOutsideClick",0,function(e,t,n){let i=(0,l.useLatestValue)(n),r=(0,o.useCallback)(function(e,n){if(e.defaultPrevented)return;let r=n(e);if(null!==r&&r.getRootNode().contains(r)&&r.isConnected){for(let n of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t))if(null!==n&&(n.contains(r)||e.composed&&e.composedPath().includes(n)))return;return(0,u.isFocusableElement)(r,u.FocusableMode.Loose)||-1===r.tabIndex||e.preventDefault(),i.current(e,r)}},[i,t]),s=(0,o.useRef)(null);f(e,"pointerdown",e=>{var t,n;d()||(s.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),f(e,"pointerup",e=>{if(d()||!s.current)return;let t=s.current;return s.current=null,r(e,()=>t)},!0);let c=(0,o.useRef)({x:0,y:0});f(e,"touchstart",e=>{c.current.x=e.touches[0].clientX,c.current.y=e.touches[0].clientY},!0),f(e,"touchend",e=>{let t={x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY};if(!(Math.abs(t.x-c.current.x)>=30||Math.abs(t.y-c.current.y)>=30))return r(e,()=>a.isHTMLorSVGElement(e.target)?e.target:null)},!0),(0,p.useWindowEvent)(e,"blur",e=>r(e,()=>
4a.isHTMLIframeElement(window.document.activeElement)?window.document.activeElement:null),!0)}],52744);var h=e.i(35696);function m(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let v=(i=()=>new Map,r={PUSH(e,t){var n;let i=null!=(n=this.get(e))?n:{doc:e,count:0,d:(0,s.disposables)(),meta:new Set,computedMeta:{}};return i.count++,i.meta.add(t),i.computedMeta=m(i.meta),this.set(e,i),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t),n.computedMeta=m(n.meta)),this},SCROLL_PREVENT(e){let t,n={doc:e.doc,d:e.d,meta:()=>e.computedMeta},i=[c()?{before({doc:e,d:t,meta:n}){function i(e){for(let t of n().containers)for(let n of t())if(n.contains(e))return!0;return!1}t.microTask(()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=(0,s.disposables)();n.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>n.dispose()))}let r=null!=(n=window.scrollY)?n:window.pageYOffset,o=null;t.addEventListener(e,"click",t=>{if(a.isHTMLorSVGElement(t.target))try{let n=t.target.closest("a");if(!n)return;let{hash:r}=new URL(n.href),s=e.querySelector(r);a.isHTMLorSVGElement(s)&&!i(s)&&(o=s)}catch{}},!0),t.group(n=>{t.addEventListener(e,"touchstart",e=>{if(n.dispose(),a.isHTMLorSVGElement(e.target)&&a.hasInlineStyle(e.target))if(i(e.target)){let t=e.target;for(;t.parentElement&&i(t.parentElement);)t=t.parentElement;n.style(t,"overscrollBehavior","contain")}else n.style(e.target,"touchAction","none")})}),t.addEventListener(e,"touchmove",e=>{if(a.isHTMLorSVGElement(e.target)&&!a.isHTMLInputElement(e.target))if(i(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()},{passive:!1}),t.add(()=>{var e;r!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,r),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})})}}:{},{before({doc:e}){var n;let i=e.documentElement;t=Math.max(0,(null!=(n=e.defaultView)?n:window).innerWidth-i.clientWidth)},after({doc:e,d:n}){let i=e.documentElement,r=Math.max(0,i.clientWidth-i.offsetWidth),o=Math.max(0,t-r);n.style(i,"paddingRight",`${o}px`)}},{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];i.forEach(({before:e})=>
4null==e?void 0:e(n)),i.forEach(({after:e})=>null==e?void 0:e(n))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}},t=i(),n=new Set,{getSnapshot:()=>t,subscribe:e=>(n.add(e),()=>n.delete(e)),dispatch(e,...i){let o=r[e].call(t,...i);o&&(t=o,n.forEach(e=>e()))}});v.subscribe(()=>{let e=v.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),i=0!==n.count;(i&&!e||!i&&e)&&v.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&v.dispatch("TEARDOWN",n)}});var g=e.i(29644);e.s(["useScrollLock",0,function(e,t,n=()=>[document.body]){!function(e,t,n=()=>({containers:[]})){let i=(0,o.useSyncExternalStore)(v.subscribe,v.getSnapshot,v.getSnapshot),r=t?i.get(t):void 0;r&&r.count,(0,h.useIsoMorphicEffect)(()=>{if(!(!t||!e))return v.dispatch("PUSH",t,n),()=>v.dispatch("POP",t,n)},[e,t])}((0,g.useIsTopLayer)(e,"scroll-lock"),t,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}})}],1852)},5083,26599,e=>{"use strict";var t=e.i(71645),n=e.i(2155);e.s(["useOwnerDocument",0,function(...e){return(0,t.useMemo)(()=>(0,n.getOwnerDocument)(...e),[...e])},"useRootDocument",0,function(...e){return(0,t.useMemo)(()=>(0,n.getRootNode)(...e),[...e])}],5083);var i=e.i(68578),r=e.i(14189);e.s(["useOnUnmount",0,function(e){let n=(0,r.useEvent)(e),o=(0,t.useRef)(!1);(0,t.useEffect)(()=>(o.current=!1,()=>{o.current=!0,(0,i.microTask)(()=>{o.current&&n()})}),[n])}],26599)},44279,e=>{"use strict";var t=e.i(71645);e.s(["useResolveButtonType",0,function(e,n){return(0,t.useMemo)(()=>{var t;if(e.type)return e.type;let i=null!=(t=e.as)?t:"button";if("string"==typeof i&&"button"===i.toLowerCase()||(null==n?void 0:n.tagName)==="BUTTON"&&!n.hasAttribute("type"))return"button"},[e.type,e.as,n])}])},85935,e=>{"use strict";var t=e.i(71645),n=e.i(2788),i=e.i(13581),r=e.i(2155),o=e.i(14189);let s=(0,t.createContext)(null);function a(e=null){var n;return null!=(n=(0,t.useContext)(s))?n:e}e.s(["MainTreeProvider",0,function({children:e,node:o}){let[l,u]=(0,t.useState)(null),c=a(null!=o?o:l);return t.default.createElement(s.Provider,{value:c},e,null===c&&t.default.createElement(n.Hidden,{features:n.HiddenFeatures.Hidden,ref:e=>{var t,n;if(e){for(let o of null!=(n=null==(t=(0,r.getOwnerDocument)(e))?void 0:t.querySelectorAll("html > *, body > *"))?n:[])if(o!==document.body&&o!==document.head&&i.isElement(o)&&null!=o&&o.contains(e)){u(o);break}}}}))},"useMainTreeNode",0,a,"useRootContainers",0,function({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let s=(0,o.useEvent)(()=>{var o,s;let a=(0,r.getOwnerDocument)(n),l=[];for(let t of e)null!==t&&(i.isElement(t)?l.push(t):"current"in t&&i.isElement(t.current)&&l.push(t.current));if(null!=t&&t.current)for(let e of t.current)l.push(e);for(let e of null!=(o=null==a?void 0:a.querySelectorAll("html > *, body > *"))?o:[])e!==document.body&&e!==document.head&&i.isElement(e)&&"headlessui-portal-root"!==e.id&&(n&&(e.contains(n)||e.contains(null==(s=null==n?void 0:n.getRootNode())?void 0:s.host))||l.some(t=>e.contains(t))||l.push(e));return l});
4return{resolveContainers:s,contains:(0,o.useEvent)(e=>s().some(t=>t.contains(e)))}}])},78677,e=>{"use strict";var t=e.i(71645),n=e.i(80758);e.s(["useServerHandoffComplete",0,function(){let e,i=(e="u"<typeof document,"useSyncExternalStore"in t&&(0,t.useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[r,o]=t.useState(n.env.isHandoffComplete);return r&&!1===n.env.isHandoffComplete&&o(!1),t.useEffect(()=>{!0!==r&&o(!0)},[r]),t.useEffect(()=>n.env.handoff(),[]),!i&&r}])},55743,e=>{"use strict";var t=e.i(71645);e.s(["useSlot",0,function(e){return(0,t.useMemo)(()=>e,Object.values(e))}])},94316,e=>{"use strict";var t=e.i(71645),n=e.i(14189);let i=Symbol();e.s(["optionalRef",0,function(e,t=!0){return Object.assign(e,{[i]:t})},"useSyncRefs",0,function(...e){let r=(0,t.useRef)(e);(0,t.useEffect)(()=>{r.current=e},[e]);let o=(0,n.useEvent)(e=>{for(let t of r.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return e.every(e=>null==e||(null==e?void 0:e[i]))?void 0:o}])},61130,e=>{"use strict";let t;var n=e.i(71645),i=e.i(1141),r=((t=r||{})[t.Forwards=0]="Forwards",t[t.Backwards=1]="Backwards",t);e.s(["Direction",0,r,"useTabDirection",0,function(){let e=(0,n.useRef)(0);return(0,i.useWindowEvent)(!0,"keydown",t=>{"Tab"===t.key&&(e.current=+!!t.shiftKey)},!0),e}])},49578,e=>{"use strict";var t=e.i(71645),n=e.i(13581);let i=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function r(e){var t,r;let o=null!=(t=e.innerText)?t:"",s=e.cloneNode(!0);if(!n.isHTMLElement(s))return o;let a=!1;for(let e of s.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),a=!0;let l=a?null!=(r=s.innerText)?r:"":o;return i.test(l)&&(l=l.replace(i,"")),l}var o=e.i(14189);e.s(["useTextValue",0,function(e){let n=(0,t.useRef)(""),i=(0,t.useRef)("");return(0,o.useEvent)(()=>{let t=e.current;if(!t)return"";let o=t.innerText;if(n.current===o)return i.current;let s=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():r(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return r(e).trim()})(t).trim().toLowerCase();return n.current=o,i.current=s,s})}],49578)},83733,e=>{"use strict";let t;var n,i,r=e.i(47167),o=e.i(71645),s=e.i(44508),a=e.i(46725),l=e.i(35696);void 0!==r.default&&"u">typeof globalThis&&"u">typeof Element&&(null==(n=null==r.default?void 0:r.default.env)?void 0:n.NODE_ENV)==="test"&&void 0===(null==(i=null==Element?void 0:Element.prototype)?void 0:i.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
5`)),[]});var u=((t=u||{})[t.None=0]="None",t[t.Closed=1]="Closed",t[t.Enter=2]="Enter",t[t.Leave=4]="Leave",t);e.s(["transitionDataAttributes",0,function(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t},"useTransition",0,function(e,t,n,i){let[r,u]=(0,o.useState)(n),{hasFlag:c,addFlag:d,removeFlag:f}=function(e=0){let[t,n]=(0,o.useState)(e),i=(0,o.useCallback)(e=>n(e),[]),r=(0,o.useCallback)(e=>n(t=>t|e),[]),s=(0,o.useCallback)(e=>(t&e)===e,[t]);return{flags:t,setFlag:i,addFlag:r,hasFlag:s,removeFlag:(0,o.useCallback)(e=>n(t=>t&~e),[]),toggleFlag:(0,o.useCallback)(e=>n(t=>t^e),[])}}(e&&r?3:0),p=(0,o.useRef)(!1),h=(0,o.useRef)(!1),m=(0,a.useDisposables)();return(0,l.useIsoMorphicEffect)(()=>{var r;if(e){if(n&&u(!0),!t){n&&d(3);return}return null==(r=null==i?void 0:i.start)||r.call(i,n),function(e,{prepare:t,run:n,done:i,inFlight:r}){let o=(0,s.disposables)();return function(e,{inFlight:t,prepare:n}){if(null!=t&&t.current)return n();let i=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=i}(e,{prepare:t,inFlight:r}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(function(e,t){var n,i;let r=(0,s.disposables)();if(!e)return r.dispose;let o=!1;r.add(()=>{o=!0});let a=null!=(i=null==(n=e.getAnimations)?void 0:n.call(e).filter(e=>e instanceof CSSTransition))?i:[];return 0===a.length?t():Promise.allSettled(a.map(e=>e.finished)).then(()=>{o||t()}),r.dispose}(e,i))})}),o.dispose}(t,{inFlight:p,prepare(){h.current?h.current=!1:h.current=p.current,p.current=!0,h.current||(n?(d(3),f(4)):(d(4),f(2)))},run(){h.current?n?(f(3),d(4)):(f(4),d(3)):n?f(1):d(1)},done(){var e,r,o,s;h.current&&(null!=(s=null==(o=(r=t).getAnimations)?void 0:o.call(r))?s:[]).some(e=>e instanceof CSSTransition&&"finished"!==e.playState)||(p.current=!1,f(7),n||u(!1),null==(e=null==i?void 0:i.end)||e.call(i,n))}})}},[e,n,t,m]),e?[r,{closed:c(1),enter:c(2),leave:c(4),transition:c(2)||c(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}],83733)},40143,e=>{"use strict";var t=e.i(71645),n=e.i(2155),i=e.i(35696);e.s(["useTreeWalker",0,function(e,{container:r,accept:o,walk:s}){let a=(0,t.useRef)(o),l=(0,t.useRef)(s);(0,t.useEffect)(()=>{a.current=o,l.current=s},[o,s]),(0,i.useIsoMorphicEffect)(()=>
5{if(!r||!e)return;let t=(0,n.getOwnerDocument)(r);if(!t)return;let i=a.current,o=l.current,s=Object.assign(e=>i(e),{acceptNode:i}),u=t.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,s,!1);for(;u.nextNode();)o(u.currentNode)},[r,e,a,l])}])},33633,3935,e=>{"use strict";var t=e.i(71645),n=e.i(14189);e.s(["useWatch",0,function(e,i){let r=(0,t.useRef)([]),o=(0,n.useEvent)(e);(0,t.useEffect)(()=>{let e=[...r.current];for(let[t,n]of i.entries())if(r.current[t]!==n){let t=o(i,e);return r.current=i,t}},[o,...i])}],33633);var i=e.i(13581),r=e.i(52265);let o=[];function s(){"loading"!==document.readyState&&((()=>{function e(e){if(!i.isHTMLorSVGElement(e.target)||e.target===document.body||o[0]===e.target)return;let t=e.target;t=t.closest(r.focusableSelector),o.unshift(null!=t?t:e.target),(o=o.filter(e=>null!=e&&e.isConnected)).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})})(),document.removeEventListener("DOMContentLoaded",s))}"u">typeof window&&"u">typeof document&&(document.addEventListener("DOMContentLoaded",s),s()),e.s(["history",()=>o],3935)},1141,e=>{"use strict";var t=e.i(71645),n=e.i(41444);e.s(["useWindowEvent",0,function(e,i,r,o){let s=(0,n.useLatestValue)(r);(0,t.useEffect)(()=>{if(e)return window.addEventListener(i,t,o),()=>window.removeEventListener(i,t,o);function t(e){s.current(e)}},[e,i,o])}])},74175,e=>{"use strict";var t=e.i(71645);let n=(0,t.createContext)(()=>{});e.s(["CloseProvider",0,function({value:e,children:i}){return t.default.createElement(n.Provider,{value:e},i)},"useClose",0,function(){return(0,t.useContext)(n)}])},1893,e=>{"use strict";var t=e.i(71645);let n=(0,t.createContext)(void 0);e.s(["DisabledProvider",0,function({value:e,children:i}){return t.default.createElement(n.Provider,{value:e},i)},"useDisabled",0,function(){return(0,t.useContext)(n)}])},40721,94421,e=>{"use strict";var t=e.i(71645),n=e.i(74080),i=e.i(46725);function r(e={},n=null,i=[]){for(let[s,a]of Object.entries(e))!function e(n,i,s){if(Array.isArray(s))for(let[t,r]of s.entries())e(n,o(i,t.toString()),r);else s instanceof Date?n.push([i,s.toISOString()]):"boolean"==typeof s?n.push([i,s?"1":"0"]):"string"==typeof s?n.push([i,s]):"number"==typeof s?n.push([i,`${s}`]):null==s?n.push([i,""]):function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(s)&&!(0,t.isValidElement)(s)&&r(s,i,n)}(i,o(n,s),a);return i}function o(e,t){return e?e+"["+t+"]":t}e.s(["attemptSubmit",0,function(e){var t,n;let i=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(i){for(let t of i.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=i.requestSubmit)||n.call(i)}},"objectToFormEntries",0,r],94421);var s=e.i(20),a=e.i(2788);let l=(0,t.createContext)(null);function u({children:e}){let i=(0,t.useContext)(l);if(!i)return t.default.createElement(t.default.Fragment,null,e);let{target:r}=i;return r?(0,n.createPortal)(t.default.createElement(t.default.Fragment,null,e),r):null}function c({setForm:e,formId:n}){return(0,t.useEffect)(()=>{if(n){let t=document.getElementById(n);t&&e(t)}},[e,n]),n?null:t.default.createElement(a.Hidden,{features:a.HiddenFeatures.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let n=t.closest("form");n&&e(n)}})}e.s(["FormFields",0,function({data:e,form:n,disabled:o,onReset:l,overrides:d}){let[f,p]=(0,t.useState)(null),h=(0,i.useDisposables)();return(0,t.useEffect)(()=>{if(l&&f)return h.addEventListener(f,"reset",l)},[f,n,l]),t.default.createElement(u,null,t.default.createElement(c,{setForm:p,formId:n}),r(e).map(([e,i])=>t.default.createElement(a.Hidden,{features:a.HiddenFeatures.Hidden,...(0,s.compact)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:n,disabled:o,name:e,value:i,...d})})))},"FormFieldsProvider",0,function(e){let[n,i]=(0,t.useState)(null);return t.default.createElement(l.Provider,{value:{target:n}},e.children,t.default.createElement(a.Hidden,{features:a.HiddenFeatures.Hidden,ref:i}))}],40721)},4016,e=>{"use strict";var t=e.i(71645);let n=t.default.forwardRef(function({children:e,freeze:n},r){let o=i(n,e);return(0,t.isValidElement)(o)?(0,t.cloneElement)(o,{ref:r}):t.default.createElement(t.default.Fragment,null,o)});function i(e,n){let[i,r]=(0,t.useState)(n);return e||i===n||r(n),e?i:n}e.s(["Frozen",0,n,"useFrozenData",0,i])},2788,e=>{"use strict";let t;var n=e.i(20),i=((t=i||{})[t.None=1]="None",t[t.Focusable=2]="Focusable",t[t.Hidden=4]="Hidden",t);let r=(0,n.forwardRefWithAs)(function(e,t){var i;let{features:r=1,...o}=e,s={ref:t,"aria-hidden":(2&r)==2||(null!=(i=o["aria-hidden"])?i:void 0),hidden:(4&r)==4||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&r)==4&&(2&r)!=2&&{display:"none"}}};return(0,n.useRender)()({ourProps:s,theirProps:o,slot:{},defaultTag:"span",name:"Hidden"})});e.s(["Hidden",0,r,"HiddenFeatures",0,i])},42803,22678,e=>{"use strict";var t=e.i(71645);let n=(0,t.createContext)(void 0);function i(){return(0,t.useContext)(n)}
5e.s(["IdProvider",0,function({id:e,children:i}){return t.default.createElement(n.Provider,{value:e},i)},"useProvidedId",0,i],42803);var r=e.i(14189),o=e.i(35696),s=e.i(55743),a=e.i(94316),l=e.i(1893),u=e.i(13581),c=e.i(20);let d=(0,t.createContext)(null);function f(){let e=(0,t.useContext)(d);if(null===e){let e=Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,f),e}return e}function p(e){var n,i,r;let o=null!=(i=null==(n=(0,t.useContext)(d))?void 0:n.value)?i:void 0;return(null!=(r=null==e?void 0:e.length)?r:0)>0?[o,...e].filter(Boolean).join(" "):o}d.displayName="LabelContext";let h=Object.assign((0,c.forwardRefWithAs)(function(e,n){var d;let p=(0,t.useId)(),h=f(),m=i(),v=(0,l.useDisabled)(),{id:g=`headlessui-label-${p}`,htmlFor:y=null!=m?m:null==(d=h.props)?void 0:d.htmlFor,passive:b=!1,...x}=e,E=(0,a.useSyncRefs)(n);(0,o.useIsoMorphicEffect)(()=>h.register(g),[g,h.register]);let S=(0,r.useEvent)(e=>{let t=e.currentTarget;if(!(e.target!==e.currentTarget&&u.isInteractiveElement(e.target))&&(u.isHTMLLabelElement(t)&&e.preventDefault(),h.props&&"onClick"in h.props&&"function"==typeof h.props.onClick&&h.props.onClick(e),u.isHTMLLabelElement(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;(u.isHTMLInputElement(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})}}}),w=(0,s.useSlot)({...h.slot,disabled:v||!1}),P={ref:E,...h.props,id:g,htmlFor:y,onClick:S};return b&&("onClick"in P&&(delete P.htmlFor,delete P.onClick),"onClick"in x&&delete x.onClick),(0,c.useRender)()({ourProps:P,theirProps:x,slot:w,defaultTag:y?"label":"div",name:h.name||"Label"})}),{});e.s(["Label",0,h,"useLabelContext",0,f,"useLabelledBy",0,p,"useLabels",0,function({inherit:e=!1}={}){let n=p(),[i,o]=(0,t.useState)([]),s=e?[n,...i].filter(Boolean):i;return[s.length>0?s.join(" "):void 0,(0,t.useMemo)(()=>function(e){let n=(0,r.useEvent)(e=>(o(t=>[...t,e]),()=>o(t=>{let n=t.slice(),i=n.indexOf(e);return -1!==i&&n.splice(i,1),n}))),i=(0,t.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value}),[n,e.slot,e.name,e.props,e.value]);return t.default.createElement(d.Provider,{value:i},e.children)},[o])]}],22678)},33137,e=>{"use strict";let t;var n=e.i(71645);let i=(0,n.createContext)(null);i.displayName="OpenClosedContext";var r=((t=r||{})[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t);e.s(["OpenClosedProvider",0,function({value:e,children:t}){return n.default.createElement(i.Provider,{value:e},t)},"ResetOpenClosedProvider",0,function({children:e}){return n.default.createElement(i.Provider,{value:null},e)},"State",0,r,"useOpenClosed",0,function(){return(0,n.useContext)(i)}])},33538,e=>{"use strict";var t=e.i(13581);e.s(["isDisabledReactIssue7711",0,function(e){let n=e.parentElement,i=null;for(;n&&!t.isHTMLFieldSetElement(n);)t.isHTMLLegendElement(n)&&(i=n),n=n.parentElement;let r=(null==n?void 0:n.getAttribute("disabled"))==="";return!(r&&function(e){if(!e)return!1;let n=e.previousElementSibling;for(;null!==n;){if(t.isHTMLLegendElement(n))return!1;n=n.previousElementSibling}return!0}(i))&&r}
5])},32607,e=>{"use strict";e.s(["classNames",0,function(...e){return Array.from(new Set(e.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}])},13581,e=>{"use strict";function t(e){return"object"==typeof e&&null!==e&&"nodeType"in e}function n(e){return t(e)&&"tagName"in e}function i(e){return n(e)&&"accessKey"in e}e.s(["hasInlineStyle",0,function(e){return n(e)&&"style"in e},"isElement",0,n,"isHTMLElement",0,i,"isHTMLFieldSetElement",0,function(e){return i(e)&&"FIELDSET"===e.nodeName},"isHTMLIframeElement",0,function(e){return i(e)&&"IFRAME"===e.nodeName},"isHTMLInputElement",0,function(e){return i(e)&&"INPUT"===e.nodeName},"isHTMLLabelElement",0,function(e){return i(e)&&"LABEL"===e.nodeName},"isHTMLLegendElement",0,function(e){return i(e)&&"LEGEND"===e.nodeName},"isHTMLorSVGElement",0,function(e){return n(e)&&"tabIndex"in e},"isInteractiveElement",0,function(e){return!!n(e)&&e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]')},"isNode",0,t])},80758,35696,41444,14189,e=>{"use strict";var t=Object.defineProperty,n=(e,n,i)=>{let r;return(r="symbol"!=typeof n?n+"":n)in e?t(e,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[r]=i,i};let i=new class{constructor(){n(this,"current",this.detect()),n(this,"handoffState","pending"),n(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"u"<typeof window||"u"<typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}};e.s(["env",0,i],80758);var r=e.i(71645);let o=(e,t)=>{i.isServer?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)};function s(e){let t=(0,r.useRef)(e);return o(()=>{t.current=e},[e]),t}e.s(["useIsoMorphicEffect",0,o],35696),e.s(["useLatestValue",0,s],41444),e.s(["useEvent",0,function(e){let t=s(e);return r.default.useCallback((...e)=>t.current(...e),[t])}],14189)},52265,e=>{"use strict";let t,n,i,r,o;var s=e.i(44508),a=e.i(13581),l=e.i(97701),u=e.i(2155);let c=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),d=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var f=((t=f||{})[t.First=1]="First",t[t.Previous=2]="Previous",t[t.Next=4]="Next",t[t.Last=8]="Last",t[t.WrapAround=16]="WrapAround",t[t.NoScroll=32]="NoScroll",t[t.AutoFocus=64]="AutoFocus",t),p=((n=p||{})[n.Error=0]="Error",n[n.Overflow=1]="Overflow",n[n.Success=2]="Success",n[n.Underflow=3]="Underflow",n),h=((i=h||{})[i.Previous=-1]="Previous",i[i.Next=1]="Next",i);function m(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(c)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var v=((r=v||{})[r.Strict=0]="Strict",r[r.Loose=1]="Loose",r);function g(e,t=0){var n;return e!==(null==(n=(0,u.getOwnerDocument)(e))?void 0:n.body)&&(0,l.match)(t,{0:()=>e.matches(c),1(){let t=e;for(;null!==t;){if(t.matches(c))return!0;t=t.parentElement}return!1}})}var y=((o=y||{})[o.Keyboard=0]="Keyboard",o[o.Mouse=1]="Mouse",o);function b(e){null==e||e.focus({preventScroll:!0})}function x(e,t=e=>e){return e.slice().sort((e,n)=>{let i=t(e),r=t(n);if(null===i||null===r)return 0;let o=i.compareDocumentPosition(r);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function E(e,t,{sorted:n=!0,relativeTo:i=null,skipElements:r=[]}={}){var o,s,a;let l=Array.isArray(e)?e.length>0?(0,u.getRootNode)(e[0]):document:(0,u.getRootNode)(e),c=Array.isArray(e)?n?x(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(d)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e):m(e);r.length>0&&c.length>1&&(c=c.filter(e=>!r.some(t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))),i=null!=i?i:null==l?void 0:l.activeElement;let f=(()=>
5{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,c.indexOf(i))-1;if(4&t)return Math.max(0,c.indexOf(i))+1;if(8&t)return c.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),h=32&t?{preventScroll:!0}:{},v=0,g=c.length,y;do{if(v>=g||v+g<=0)return 0;let e=p+v;if(16&t)e=(e+g)%g;else{if(e<0)return 3;if(e>=g)return 1}null==(y=c[e])||y.focus(h),v+=f}while(y!==(0,u.getActiveElement)(y))return 6&t&&null!=(a=null==(s=null==(o=y)?void 0:o.matches)?void 0:s.call(o,"textarea,input"))&&a&&y.select(),2}"u">typeof window&&"u">typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0)),e.s(["Focus",0,f,"FocusResult",0,p,"FocusableMode",0,v,"focusElement",0,b,"focusFrom",0,function(e,t,n=null===e?document.body:(0,u.getRootNode)(e)){return E(m(n),t,{relativeTo:e})},"focusIn",0,E,"focusableSelector",0,c,"getFocusableElements",0,m,"isFocusableElement",0,g,"restoreFocusIfNecessary",0,function(e){(0,s.disposables)().nextFrame(()=>{let t=(0,u.getActiveElement)(e);t&&a.isHTMLorSVGElement(t)&&!g(t,0)&&b(e)})},"sortByDomNode",0,x])},97701,e=>{"use strict";e.s(["match",0,function e(t,n,...i){if(t in n){let e=n[t];return"function"==typeof e?e(...i):e}let r=Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,e),r}])},2155,e=>{"use strict";var t=e.i(80758);function n(e){var n,i;return t.env.isServer?null:null==e?document:null!=(i=null==(n=null==e?void 0:e.getRootNode)?void 0:n.call(e))?i:document}function i(e){var t,i;return null!=(i=null==(t=n(e))?void 0:t.activeElement)?i:null}e.s(["getActiveElement",0,i,"getOwnerDocument",0,function(e){var n;return t.env.isServer?null:null==e?document:null!=(n=null==e?void 0:e.ownerDocument)?n:document},"getRootNode",0,n,"isActiveElement",0,function(e){return i(e)===e}])},20,e=>{"use strict";let t,n;var i=e.i(71645),r=e.i(32607),o=e.i(97701),s=((t=s||{})[t.None=0]="None",t[t.RenderStrategy=1]="RenderStrategy",t[t.Static=2]="Static",t),a=((n=a||{})[n.Unmount=0]="Unmount",n[n.Hidden=1]="Hidden",n);function l(e,t={},n,o,s){let{as:a=n,children:u,refName:h="ref",...m}=f(e,["unmount","static"]),v=void 0!==e.ref?{[h]:e.ref}:{},g="function"==typeof u?u(t):u;g=function e(t){if(null!=t&&t.$$typeof===Symbol.for("react.lazy")){let n=t._payload;if(null!=n&&"fulfilled"===n.status)return e(n.value)}return t}(g),"className"in m&&m.className&&"function"==typeof m.className&&(m.className=m.className(t)),m["aria-labelledby"]&&m["aria-labelledby"]===m.id&&(m["aria-labelledby"]=void 0);let y={};if(t){let e=!1,n=[];for(let[i,r]of Object.entries(t))"boolean"==typeof r&&(e=!0),!0===r&&n.push(i.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`));if(e)for(let e of(y["data-headlessui-state"]=n.join(" "),n))y[`data-${e}`]=""}if(p(a)&&(Object.keys(d(m)).length>0||Object.keys(d(y)).length>0))if(!(0,i.isValidElement)(g)||Array.isArray(g)&&g.length>1||p(g.type)){if(Object.keys(d(m)).length>0)throw Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(d(m)).concat(Object.keys(d(y))).map(e=>`  - ${e}`).join(`
6`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>`  - ${e}`).join(`
7`)].join(`
8`))}else{var b;let e=g.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>(0,r.classNames)(t(...e),m.className):(0,r.classNames)(t,m.className),o=c(g.props,d(f(m,["ref"])));for(let e in y)e in o&&delete y[e];return(0,i.cloneElement)(g,Object.assign({},o,y,v,{ref:s((b=g,i.default.version.split(".")[0]>="19"?b.props.ref:b.ref),v.ref)},n?{className:n}:{}))}return(0,i.createElement)(a,Object.assign({},f(m,["ref"]),!p(a)&&v,!p(a)&&y),g)}function u(...e){return e.every(e=>null==e)?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function c(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let i of e)for(let e in i)e.startsWith("on")&&"function"==typeof i[e]?(null!=n[e]||(n[e]=[]),n[e].push(i[e])):t[e]=i[e];if(t.disabled||t["aria-disabled"])for(let e in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(n[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in n)Object.assign(t,{[e](t,...i){for(let r of n[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;r(t,...i)}}});return t}function d(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function f(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function p(e){return e===i.Fragment||e===Symbol.for("react.fragment")}e.s(["RenderFeatures",0,s,"RenderStrategy",0,a,"compact",0,d,"forwardRefWithAs",0,function(e){var t;return Object.assign((0,i.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})},"isFragment",0,p,"mergeProps",0,function(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let i of e)for(let e in i)e.startsWith("on")&&"function"==typeof i[e]?(null!=n[e]||(n[e]=[]),n[e].push(i[e])):t[e]=i[e];for(let e in n)Object.assign(t,{[e](...t){for(let i of n[e])null==i||i(...t)}});return t},"useRender",0,function(){let e,t,n=(e=(0,i.useRef)([]),t=(0,i.useCallback)(t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)},[]),(...n)=>{if(!n.every(e=>null==e))return e.current=n,t});return(0,i.useCallback)(e=>(function({ourProps:e,theirProps:t,slot:n,defaultTag:i,features:r,visible:s=!0,name:a,mergeRefs:d}){d=null!=d?d:u;let f=c(t,e);if(s)return l(f,n,i,a,d);let p=null!=r?r:0;if(2&p){let{static:e=!1,...t}=f;if(e)return l(t,n,i,a,d)}if(1&p){let{unmount:e=!0,...t}=f;return(0,o.match)(+!e,{0:()=>null,1:()=>l({...t,hidden:!0,style:{display:"none"}},n,i,a,d)})}return l(f,n,i,a,d)})({mergeRefs:n,...e}),[n])}])},29427,71330,e=>{"use strict";let t;var n,i=e.i(71645);let r="u">typeof document?i.default.useLayoutEffect:()=>{},o=null!=(n=i.default.useInsertionEffect)?n:r,s=e=>{var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document},a=e=>e&&"window"in e&&e.window===e?e:s(e).defaultView||window;"u">typeof Element&&Element.prototype;let l=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"];function u(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function c(e){var t;let n,s=(0,i.useRef)({isFocused:!1,observer:null});r(()=>{let e=s.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let a=(t=t=>{null==e||e(t)},n=(0,i.useRef)(null),o(()=>{n.current=t},[t]),(0,i.useCallback)((...e)=>{let t=n.current;return null==t?void 0:t(...e)},[]));return(0,i.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){s.current.isFocused=!0;let t=e.target;t.addEventListener("focusout",e=>{s.current.isFocused=!1,t.disabled&&a(u(e)),s.current.observer&&(s.current.observer.disconnect(),s.current.observer=null)},{once:!0}),s.current.observer=new MutationObserver(()=>{if(s.current.isFocused&&t.disabled){var e;null==(e=s.current.observer)||e.disconnect();
8let n=t===document.activeElement?null:document.activeElement;t.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}}),s.current.observer.observe(t,{attributes:!0,attributeFilter:["disabled"]})}},[a])}function d(e){var t;if("u"<typeof window||null==window.navigator)return!1;let n=null==(t=window.navigator.userAgentData)?void 0:t.brands;return Array.isArray(n)&&n.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function f(e){var t;return"u">typeof window&&null!=window.navigator&&e.test((null==(t=window.navigator.userAgentData)?void 0:t.platform)||window.navigator.platform)}function p(e){let t=null;return()=>(null==t&&(t=e()),t)}l.join(":not([hidden]),"),l.push('[tabindex]:not([tabindex="-1"]):not([disabled])'),l.join(':not([hidden]):not([tabindex="-1"]),');let h=p(function(){return f(/^Mac/i)}),m=p(function(){return f(/^iPhone/i)}),v=p(function(){return f(/^iPad/i)||h()&&navigator.maxTouchPoints>1}),g=p(function(){return m()||v()});p(function(){return h()||g()}),p(function(){return d(/AppleWebKit/i)&&!y()});let y=p(function(){return d(/Chrome/i)}),b=p(function(){return d(/Android/i)});p(function(){return d(/Firefox/i)});let x={prefix:String(Math.round(1e10*Math.random())),current:0};i.default.createContext(x),i.default.createContext(!1),"u">typeof window&&window.document&&window.document.createElement,new WeakMap;i.default.useId;let E=null,S=new Set,w=new Map,P=!1,T=!1,R={Tab:!0,Escape:!0};function C(e,t){for(let n of S)n(e,t)}function M(e){P=!0,e.metaKey||!h()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(E="keyboard",C("keyboard",e))}
8function F(e){E="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(P=!0,C("pointer",e))}function I(e){(""===e.pointerType&&e.isTrusted||(b()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType))&&(P=!0,E="virtual")}function O(e){e.target!==window&&e.target!==document&&e.isTrusted&&(P||T||(E="virtual",C("virtual",e)),P=!1,T=!1)}function k(){P=!1,T=!0}function A(e){if("u"<typeof window||"u"<typeof document||w.get(a(e)))return;let t=a(e),n=s(e),i=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){P=!0,i.apply(this,arguments)},n.addEventListener("keydown",M,!0),n.addEventListener("keyup",M,!0),n.addEventListener("click",I,!0),t.addEventListener("focus",O,!0),t.addEventListener("blur",k,!1),"u">typeof PointerEvent&&(n.addEventListener("pointerdown",F,!0),n.addEventListener("pointermove",F,!0),n.addEventListener("pointerup",F,!0)),t.addEventListener("beforeunload",()=>{D(e)},{once:!0}),w.set(t,{focus:i})}let D=(e,t)=>{let n=a(e),i=s(e);t&&i.removeEventListener("DOMContentLoaded",t),w.has(n)&&(n.HTMLElement.prototype.focus=w.get(n).focus,i.removeEventListener("keydown",M,!0),i.removeEventListener("keyup",M,!0),i.removeEventListener("click",I,!0),n.removeEventListener("focus",O,!0),n.removeEventListener("blur",k,!1),"u">typeof PointerEvent&&(i.removeEventListener("pointerdown",F,!0),i.removeEventListener("pointermove",F,!0),i.removeEventListener("pointerup",F,!0)),w.delete(n))};function L(){return"pointer"!==E}"u">typeof document&&("loading"!==(t=s(void 0)).readyState?A(void 0):t.addEventListener("DOMContentLoaded",()=>{A(void 0)}));let V=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function B(e,t){return!!t&&!!e&&e.contains(t)}function N(){let e=(0,i.useRef)(new Map),t=(0,i.useCallback)((t,n,i,r)=>{let o=(null==r?void 0:r.once)?(...t)=>{e.current.delete(i),i(...t)}:i;e.current.set(i,{type:n,eventTarget:t,fn:o,options:r}),t.addEventListener(n,o,r)},[]),n=(0,i.useCallback)((t,n,i,r)=>{var o;let s=(null==(o=e.current.get(i))?void 0:o.fn)||i;t.removeEventListener(n,s,r),e.current.delete(i)},[]),r=(0,i.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,i.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}e.s(["useFocusRing",0,function(e={}){var t;let{autoFocus:n=!1,isTextInput:r,within:o}=e,l=(0,i.useRef)({isFocused:!1,isFocusVisible:n||L()}),[d,f]=(0,i.useState)(!1),[p,h]=(0,i.useState)(()=>l.current.isFocused&&l.current.isFocusVisible),m=(0,i.useCallback)(()=>h(l.current.isFocused&&l.current.isFocusVisible),[]),v=(0,i.useCallback)(e=>{l.current.isFocused=e,f(e),m()},[m]);t={isTextInput:r},A(),(0,i.useEffect)(()=>{let e=(e,n)=>{var i;let r,o,u,c,d;i=!!(null==t?void 0:t.isTextInput),r=s(null==n?void 0:n.target),o="u">typeof window?a(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,u="u">typeof window?a(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,c="u">typeof window?a(null==n?void 0:n.target).HTMLElement:HTMLElement,d="u">typeof window?a(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent,(i=i||r.activeElement instanceof o&&!V.has(r.activeElement.type)||r.activeElement instanceof u||r.activeElement instanceof c&&r.activeElement.isContentEditable)&&"keyboard"===e&&n instanceof d&&!R[n.key]||(e=>{l.current.isFocusVisible=e,m()})(L())};return S.add(e),()=>{S.delete(e)}},[]);let{focusProps:g}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e,a=(0,i.useCallback)(e=>{if(e.target===e.currentTarget)return r&&r(e),o&&o(!1),!0},[r,o]),l=c(a),u=(0,i.useCallback)(e=>{var t;let i=s(e.target),r=i?((e=document)=>e.activeElement)(i):((e=document)=>e.activeElement)();e.target===e.currentTarget&&r===(t=e.nativeEvent,t.target)&&(n&&n(e),o&&o(!0),l(e))},[o,n,l]);return{focusProps:{onFocus:!t&&(n||o||r)?u:void 0,onBlur:!t&&(r||o)?a:void 0}}}({isDisabled:o,onFocusChange:v}),{focusWithinProps:y}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,a=(0,i.useRef)({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:d}=N(),f=(0,i.useCallback)(e=>{e.currentTarget.contains(e.target)&&a.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(a.current.isFocusWithin=!1,d(),n&&n(e),o&&o(!1))},[n,o,a,d]),p=c(f),h=(0,i.useCallback)(e=>{var t;if(!e.currentTarget.contains(e.target))return;let n=s(e.target),i=((e=document)=>e.activeElement)(n);if(!a.current.isFocusWithin&&i===(t=e.nativeEvent,t.target)){r&&r(e),o&&o(!0),a.current.isFocusWithin=!0,p(e);let t=e.currentTarget;
8l(n,"focus",e=>{if(a.current.isFocusWithin&&!B(t,e.target)){let i=new n.defaultView.FocusEvent("blur",{relatedTarget:e.target});Object.defineProperty(i,"target",{value:t}),Object.defineProperty(i,"currentTarget",{value:t}),f(u(i))}},{capture:!0})}},[r,o,p,l,f]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:h,onBlur:f}}}({isDisabled:!o,onFocusWithinChange:v});return{isFocused:d,isFocusVisible:p,focusProps:o?y:g}}],29427);let j=!1,H=0;function W(e){"touch"===e.pointerType&&(j=!0,setTimeout(()=>{j=!1},50))}function _(){if("u">typeof document)return 0===H&&"u">typeof PointerEvent&&document.addEventListener("pointerup",W),H++,()=>{!(--H>0)&&"u">typeof PointerEvent&&document.removeEventListener("pointerup",W)}}e.s(["useHover",0,function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[a,l]=(0,i.useState)(!1),u=(0,i.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,i.useEffect)(_,[]);let{addGlobalListener:c,removeAllGlobalListeners:d}=N(),{hoverProps:f,triggerHoverEnd:p}=(0,i.useMemo)(()=>{let e=(e,t)=>{let i=u.target;u.pointerType="",u.target=null,"touch"!==t&&u.isHovered&&i&&(u.isHovered=!1,d(),r&&r({type:"hoverend",target:i,pointerType:t}),n&&n(!1),l(!1))},i={};return"u">typeof PointerEvent&&(i.onPointerEnter=i=>{j&&"mouse"===i.pointerType||((i,r)=>{if(u.pointerType=r,o||"touch"===r||u.isHovered||!i.currentTarget.contains(i.target))return;u.isHovered=!0;let a=i.currentTarget;u.target=a,c(s(i.target),"pointerover",t=>{u.isHovered&&u.target&&!B(u.target,t.target)&&e(t,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:a,pointerType:r}),n&&n(!0),l(!0)})(i,i.pointerType)},i.onPointerLeave=t=>{!o&&t.currentTarget.contains(t.target)&&e(t,t.pointerType)}),{hoverProps:i,triggerHoverEnd:e}},[t,n,r,o,u,c,d]);return(0,i.useEffect)(()=>{o&&p({currentTarget:u.target},u.pointerType)},[o]),{hoverProps:f,isHovered:a}}],71330)},7670,e=>{"use strict";function t(){for(var e,t,n=0,i="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=function e(t){var n,i,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(i=e(t[n]))&&(r&&(r+=" "),r+=i)}else for(i in t)t[i]&&(r&&(r+=" "),r+=i);return r}(e))&&(i&&(i+=" "),i+=t);return i}e.s(["clsx",0,t,"default",0,t])},31178,e=>{"use strict";let t=(0,e.i(71645).createContext)({});e.s(["LayoutGroupContext",0,t])},48070,37806,88291,82474,8576,33871,21476,47414,11805,1664,76948,13565,21967,83640,35043,4035,25522,e=>{"use strict";var t,n=e.i(71645);let i=(0,n.createContext)({strict:!1});e.s(["LazyContext",0,i],48070);let r=(0,n.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});e.s(["MotionConfigContext",0,r],37806);let o=(0,n.createContext)({});e.s(["MotionContext",0,o],88291);var s=e.i(87576),a=e.i(32525);function l(e){return Array.isArray(e)?e.join(" "):e}e.s(["useCreateMotionContext",0,function(e){let{initial:t,animate:i}=function(e,t){if((0,s.isControllingVariants)(e)){let{initial:t,animate:n}=e;return{initial:!1===t||(0,a.isVariantLabel)(t)?t:void 0,animate:(0,a.isVariantLabel)(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,n.useContext)(o));return(0,n.useMemo)(()=>({initial:t,animate:i}),[l(t),l(i)])}],82474);var u=e.i(27228),c=e.i(30789),d=e.i(44947);let f=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function p(e,t,n){for(let i in t)(0,u.isMotionValue)(t[i])||(0,c.isForcedMotionValue)(i,n)||(e[i]=t[i])}var h=e.i(81261),m=e.i(99951);let v=()=>({...f(),attrs:{}}),g=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function y(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||g.has(e)}let b=e=>!y(e);try{t=e.r(34537).default,"function"==typeof t&&(b=e=>e.startsWith("on")?!y(e):t(e))}catch{}var x=e.i(44966);e.s(["useRender",0,function(e,t,i,{latestValues:r},o,s=!1,a){let l=(a??(0,x.isSVGComponent)(e)?function(e,t,i,r){let o=(0,n.useMemo)(()=>{let n=v();return(0,h.buildSVGAttrs)(n,t,(0,m.isSVGTag)(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};p(t,e.style,e),o.style={...t,...o.style}}return o}:function(e,t){let i,r,o={},s=(i=e.style||{},p(r={},i,e),Object.assign(r,function({transformTemplate:e},t){return(0,n.useMemo)(()=>
8{let n=f();return(0,d.buildHTMLStyles)(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r);return e.drag&&!1!==e.dragListener&&(o.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(o.tabIndex=0),o.style=s,o})(t,r,o,e),c=function(e,t,n){let i={};for(let r in e)("values"!==r||"object"!=typeof e.values)&&!(0,u.isMotionValue)(e[r])&&(b(r)||!0===n&&y(r)||!t&&!y(r)||e.draggable&&r.startsWith("onDrag"))&&(i[r]=e[r]);return i}(t,"string"==typeof e,s),g=e!==n.Fragment?{...c,...l,ref:i}:{},{children:E}=t,S=(0,n.useMemo)(()=>(0,u.isMotionValue)(E)?E.get():E,[E]);return(0,n.createElement)(e,{...g,children:S})}],8576);var E=e.i(84049),E=E;function S(e){return(0,u.isMotionValue)(e)?e.get():e}e.s(["resolveMotionValue",0,S],33871);var w=e.i(85983),P=e.i(86579);let T=(0,n.createContext)(null);function R(e){let t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}e.s(["PresenceContext",0,T],21476),e.s(["useConstant",0,R],47414);let C=e=>(t,i)=>{let r=(0,n.useContext)(o),a=(0,n.useContext)(T),l=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,i,r){return{latestValues:function(e,t,n,i){let r={},o=i(e,{});for(let e in o)r[e]=S(o[e]);let{initial:a,animate:l}=e,u=(0,s.isControllingVariants)(e),c=(0,s.isVariantNode)(e);t&&c&&!u&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===l&&(l=t.animate));let d=!!n&&!1===n.initial,f=(d=d||!1===a)?l:a;if(f&&"boolean"!=typeof f&&!(0,w.isAnimationControls)(f)){let t=Array.isArray(f)?f:[f];for(let n=0;n<t.length;n++){let i=(0,P.resolveVariantFromProps)(e,t[n]);if(i){let{transitionEnd:e,transition:t,...n}=i;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=d?t.length-1:0;t=t[e]}null!==t&&(r[e]=t)}for(let t in e)r[t]=e[t]}}}return r}(n,i,r,e),renderState:t()}})(e,t,r,a);return i?l():R(l)},M=C({scrapeMotionValuesFromProps:E.scrapeMotionValuesFromProps,createRenderState:f});e.s(["useHTMLVisualState",0,M],11805);var F=e.i(67926),F=F;let I=C({scrapeMotionValuesFromProps:F.scrapeMotionValuesFromProps,createRenderState:v});e.s(["useSVGVisualState",0,I],1664);var O=e.i(17218);let k={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},A=!1;function D(){return!function(){if(A)return;let e={};for(let t in k)e[t]={isEnabled:e=>k[t].some(t=>!!e[t])};(0,O.setFeatureDefinitions)(e),A=!0}(),(0,O.getFeatureDefinitions)()}e.s(["getInitializedFeatureDefinitions",0,D],76948),e.s(["loadFeatures",0,function(e){let t=D();for(let n in e)t[n]={...t[n],...e[n]};(0,O.setFeatureDefinitions)(t)}],13565);let L=Symbol.for("motionComponentSymbol");e.s(["motionComponentSymbol",0,L],21967),e.s(["useMotionRef",0,function(e,t,i){let r=(0,n.useRef)(i);(0,n.useInsertionEffect)(()=>{r.current=i});let o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let i=r.current;if("function"==typeof i)if(n){let e=i(n);"function"==typeof e&&(o.current=e)}else o.current?(o.current(),o.current=null):i(n);else i&&(i.current=n)},[t])}],83640);let V="data-"+(0,e.i(93787).camelToDash)("framerAppearId");e.s(["optimizedAppearDataAttribute",0,V],35043);let B=(0,n.createContext)({});e.s(["SwitchLayoutGroupContext",0,B],4035),e.s(["isRefObject",0,function(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}],25522)},46932,83920,44230,15923,83352,49652,61327,72846,e=>{"use strict";let t,n;var i=e.i(54505),r=e.i(43476),o=e.i(71645),s=e.i(31178),a=e.i(48070),l=e.i(37806),u=e.i(88291),c=e.i(82474),d=e.i(8576),f=e.i(44966),p=e.i(11805),h=e.i(1664),m=e.i(76948),v=e.i(13565),g=e.i(21967),y=e.i(83640),b=e.i(35043),x=e.i(21476),E=e.i(4035),S=e.i(25522),w=e.i(74008);function P(e,{forwardMotionProps:t=!1,type:n}={},i,T){i&&(0,v.loadFeatures)(i);let R=n?"svg"===n:(0,f.isSVGComponent)(e),C=R?h.useSVGVisualState:p.useHTMLVisualState;function M(n,i){let f,p={...(0,o.useContext)(l.MotionConfigContext),...n,layoutId:function({layoutId:e}){let t=(0,o.useContext)(s.LayoutGroupContext).id;return t&&void 0!==e?t+"-"+e:e}(n)},{isStatic:h}=p,v=(0,c.useCreateMotionContext)(n),g=C(n,h);if(!h&&"u">typeof window){(0,o.useContext)(a.LazyContext).strict;let t=function(e){let{drag:t,layout:n}=(0,m.getInitializedFeatureDefinitions)();if(!t&&!n)return{};let i={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}
8(p);f=t.MeasureLayout,v.visualElement=function(e,t,n,i,r,s){let{visualElement:c}=(0,o.useContext)(u.MotionContext),d=(0,o.useContext)(a.LazyContext),f=(0,o.useContext)(x.PresenceContext),p=(0,o.useContext)(l.MotionConfigContext),h=p.reducedMotion,m=p.skipAnimations,v=(0,o.useRef)(null),g=(0,o.useRef)(!1);i=i||d.renderer,!v.current&&i&&(v.current=i(e,{visualState:t,parent:c,props:n,presenceContext:f,blockInitialAnimation:!!f&&!1===f.initial,reducedMotionConfig:h,skipAnimations:m,isSVG:s}),g.current&&v.current&&(v.current.manuallyAnimateOnMount=!0));let y=v.current,P=(0,o.useContext)(E.SwitchLayoutGroupContext);y&&!y.projection&&r&&("html"===y.type||"svg"===y.type)&&function(e,t,n,i){let{layoutId:r,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:!!s||a&&(0,S.isRefObject)(a),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:i,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}(v.current,n,r,P);let T=(0,o.useRef)(!1);(0,o.useInsertionEffect)(()=>{y&&T.current&&y.update(n,f)});let R=n[b.optimizedAppearDataAttribute],C=(0,o.useRef)(!!R&&"u">typeof window&&!window.MotionHandoffIsComplete?.(R)&&window.MotionHasOptimisedAnimation?.(R));return(0,w.useIsomorphicLayoutEffect)(()=>{g.current=!0,y&&(T.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),C.current&&y.animationState&&y.animationState.animateChanges())}),(0,o.useEffect)(()=>{y&&(!C.current&&y.animationState&&y.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(R)}),C.current=!1),y.enteringChildren=void 0)}),y}(e,g,p,T,t.ProjectionNode,R)}return(0,r.jsxs)(u.MotionContext.Provider,{value:v,children:[f&&v.visualElement?(0,r.jsx)(f,{visualElement:v.visualElement,...p}):null,(0,d.useRender)(e,n,(0,y.useMotionRef)(g,v.visualElement,i),g,h,t,R)]})}M.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let F=(0,o.forwardRef)(M);return F[g.motionComponentSymbol]=e,F}class T{constructor(e){this.isMounted=!1,this.node=e}update(){}}var R=e.i(86579);function C(e,t,n){let i=e.getProps();return(0,R.resolveVariantFromProps)(i,t,void 0!==n?n:i.custom,e)}function M(e,t){if(e?.inherit&&t){let{inherit:n,...i}=e;return{...t,...i}}return e}function F(e,t){let n=e?.[t]??e?.default??e;return n!==e?M(n,e):n}var I=e.i(64440),O=e.i(86427);let k=e=>Array.isArray(e);var A=e.i(46791),D=e.i(27228);function L(e,t){let n=e.getValue("willChange");if((0,D.isMotionValue)(n)&&n.add)return n.add(t);if(!n&&A.MotionGlobalConfig.WillChange){let n=new A.MotionGlobalConfig.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function V(e){return e.props[b.optimizedAppearDataAttribute]}var B=e.i(63074),N=e.i(60830),j=e.i(96173);let H=(...e)=>e.reduce((e,t)=>n=>t(e(n)));var W=e.i(76959),_=e.i(65566),z=e.i(19928),U=e.i(79444),K=e.i(69577),$=e.i(63011),G=e.i(22660);function q(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var Y=e.i(66820);function X(e,t){return n=>n>0?t:e}var Q=e.i(706);let Z=(e,t,n)=>{let i=e*e,r=n*(t*t-i)+i;return r<0?0:Math.sqrt(r)},J=[$.hex,Y.rgba,G.hsla];function ee(e){let t=J.find(t=>t.test(e));if((0,_.warning)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===G.hsla&&(n=function({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,n/=100;let r=0,o=0,s=0;if(t/=100){let i=n<.5?n*(1+t):n+t-n*t,a=2*n-i;r=q(a,i,e+1/3),o=q(a,i,e),s=q(a,i,e-1/3)}else r=o=s=n;return{red:Math.round(255*r),green:Math.round(255*o),blue:Math.round(255*s),alpha:i}}(n)),n}let et=(e,t)=>{let n=ee(e),i=ee(t);if(!n||!i)return X(e,t);let r={...n};return e=>(r.red=Z(n.red,i.red,e),r.green=Z(n.green,i.green,e),r.blue=Z(n.blue,i.blue,e),r.alpha=(0,Q.mixNumber)(n.alpha,i.alpha,e),Y.rgba.transform(r))},en=new Set(["none","hidden"]);function ei(e,t){return n=>(0,Q.mixNumber)(e,t,n)}function er(e){return"number"==typeof e?ei:"string"==typeof e?(0,z.isCSSVariableToken)(e)?X:U.color.test(e)?et:ea:Array.isArray(e)?eo:"object"==typeof e?U.color.test(e)?et:es:X}function eo(e,t){let n=[...e],i=n.length,r=e.map((e,n)=>er(e)(e,t[n]));return e=>{for(let t=0;t<i;t++)n[t]=r[t](e);return n}}function es(e,t){let n={...e,...t},i={};for(let r in n)void 0!==e[r]&&void 0!==t[r]&&(i[r]=er(e[r])(e[r],t[r]));return e=>{for(let t in i)n[t]=i[t](e);return n}}let ea=(e,t)=>{let n=K.complex.createTransformer(t),i=(0,K.analyseComplexValue)(e),r=(0,K.analyseComplexValue)(t);if(!(i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length))return(0,_.warning)(!0,`Complex values '${e}' and '${t}
8' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),X(e,t);if(en.has(e)&&!r.values.length||en.has(t)&&!i.values.length)return en.has(e)?n=>n<=0?e:t:n=>n>=1?t:e;return H(eo(function(e,t){let n=[],i={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){let o=t.types[r],s=e.indexes[o][i[o]],a=e.values[s]??0;n[r]=a,i[o]++}return n}(i,r),r.values),n)};function el(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?(0,Q.mixNumber)(e,t,n):er(e)(e,t)}var eu=e.i(87022);let ec=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>eu.frame.update(t,e),stop:()=>(0,eu.cancelFrame)(t),now:()=>eu.frameData.isProcessing?eu.frameData.timestamp:j.time.now()}};var ed=e.i(56512);function ef(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}let ep=.01,eh=2,em=.005,ev=.5;function eg(e,t){return e*Math.sqrt(1-t*t)}let ey=["duration","bounce"],eb=["stiffness","damping","mass"];function ex(e,t){return t.some(t=>void 0!==e[t])}function eE(e=.3,t=.3){let n,i,r,o,s,a,l="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:u,restDelta:c}=l,d=l.keyframes[0],f=l.keyframes[l.keyframes.length-1],p={done:!1,value:d},{stiffness:h,damping:m,mass:v,duration:g,velocity:y,isResolvedFromDuration:b}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!ex(e,eb)&&ex(e,ey))if(t.velocity=0,e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),i=n*n,r=2*(0,W.clamp)(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:1,stiffness:i,damping:r}}else{let n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:i=1}){let r,o;(0,_.warning)(e<=(0,B.secondsToMilliseconds)(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=(0,W.clamp)(.05,1,s),e=(0,W.clamp)(.01,10,(0,B.millisecondsToSeconds)(e)),s<1?(r=t=>{let i=t*s,r=i*e;return .001-(i-n)/eg(t,s)*Math.exp(-r)},o=t=>{let i=t*s*e,o=Math.pow(s,2)*Math.pow(t,2)*e,a=Math.exp(-i),l=eg(Math.pow(t,2),s);return(i*n+n-o)*a*(-r(t)+.001>0?-1:1)/l}):(r=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>e*e*(n-t)*Math.exp(-t*e));let a=function(e,t,n){let i=n;for(let n=1;n<12;n++)i-=e(i)/t(i);return i}(r,o,5/e);if(e=(0,B.secondsToMilliseconds)(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(a,2)*i;return{stiffness:t,damping:2*s*Math.sqrt(i*t),duration:e}}}({...e,velocity:0});(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...l,velocity:-(0,B.millisecondsToSeconds)(l.velocity||0)}),x=y||0,E=m/(2*Math.sqrt(h*v)),S=f-d,w=(0,B.millisecondsToSeconds)(Math.sqrt(h/v)),P=5>Math.abs(S);if(u||(u=P?ep:eh),c||(c=P?em:ev),E<1)r=eg(w,E),o=(x+E*w*S)/r,n=e=>f-Math.exp(-E*w*e)*(o*Math.sin(r*e)+S*Math.cos(r*e)),s=E*w*o+S*r,a=E*w*S-o*r,i=e=>Math.exp(-E*w*e)*(s*Math.sin(r*e)+a*Math.cos(r*e));else if(1===E){n=e=>f-Math.exp(-w*e)*(S+(x+w*S)*e);let e=x+w*S;i=t=>Math.exp(-w*t)*(w*e*t-x)}else{let e=w*Math.sqrt(E*E-1);n=t=>{let n=Math.exp(-E*w*t),i=Math.min(e*t,300);return f-n*((x+E*w*S)*Math.sinh(i)+e*S*Math.cosh(i))/e};let t=(x+E*w*S)/e,r=E*w*t-S*e,o=E*w*S-t*e;i=t=>{let n=Math.exp(-E*w*t),i=Math.min(e*t,300);return n*(r*Math.sinh(i)+o*Math.cosh(i))}}let T={calculatedDuration:b&&g||null,velocity:e=>(0,B.secondsToMilliseconds)(i(e)),next:e=>{if(!b&&E<1){let t=Math.exp(-E*w*e),n=Math.sin(r*e),i=Math.cos(r*e),l=f-t*(o*n+S*i);return p.done=Math.abs((0,B.secondsToMilliseconds)(t*(s*n+a*i)))<=u&&Math.abs(f-l)<=c,p.value=p.done?f:l,p}let t=n(e);return b?p.done=e>=g:p.done=Math.abs((0,B.secondsToMilliseconds)(i(e)))<=u&&Math.abs(f-t)<=c,p.value=p.done?f:t,p},toString:()=>{let e=Math.min(ef(T),2e4),t=(0,ed.generateLinearEasing)(t=>T.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return T}eE.applyToOptions=e=>{let t=function(e,t=100,n){let i=n({...e,keyframes:[0,t]}),r=Math.min(ef(i),2e4);return{type:"keyframes",ease:e=>i.next(r*e).value/t,duration:(0,B.millisecondsToSeconds)(r)}}(e,100,eE);return e.ease=t.ease,e.duration=(0,B.secondsToMilliseconds)(t.duration),e.type="keyframes",e};var eS=e.i(25791);
8function ew(e,t,n){let i=Math.max(t-5,0);return(0,eS.velocityPerSecond)(n-e(i),t-i)}function eP({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){let d,f,p=e[0],h={done:!1,value:p},m=n*t,v=p+m,g=void 0===s?v:s(v);g!==v&&(m=g-p);let y=e=>-m*Math.exp(-e/i),b=e=>g+y(e),x=e=>{let t=y(e),n=b(e);h.done=Math.abs(t)<=u,h.value=h.done?g:n},E=e=>{let t;if(t=h.value,void 0!==a&&t<a||void 0!==l&&t>l){var n;d=e,f=eE({keyframes:[h.value,(n=h.value,void 0===a?l:void 0===l||Math.abs(a-n)<Math.abs(l-n)?a:l)],velocity:ew(b,e,h.value),damping:r,stiffness:o,restDelta:u,restSpeed:c})}};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return(f||void 0!==d||(t=!0,x(e),E(e)),void 0!==d&&e>=d)?f.next(e-d):(t||x(e),h)}}}let eT=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function eR(e,t,n,i){return e===t&&n===i?N.noop:r=>0===r||1===r?r:eT(function(e,t,n,i,r){let o,s,a=0;do(o=eT(s=t+(n-t)/2,i,r)-e)>0?n=s:t=s;while(Math.abs(o)>1e-7&&++a<12)return s}(r,0,1,e,n),t,i)}let eC=eR(.42,0,1,1),eM=eR(0,0,.58,1),eF=eR(.42,0,.58,1),eI=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,eO=e=>t=>1-e(1-t),ek=eR(.33,1.53,.69,.99),eA=eO(ek),eD=eI(eA),eL=e=>e>=1?1:(e*=2)<1?.5*eA(e):.5*(2-Math.pow(2,-10*(e-1))),eV=e=>1-Math.sin(Math.acos(e)),eB=eO(eV),eN=eI(eV);var ej=e.i(60855);let eH={linear:N.noop,easeIn:eC,easeInOut:eF,easeOut:eM,circIn:eV,circInOut:eN,circOut:eB,backIn:eA,backInOut:eD,backOut:ek,anticipate:eL},eW=e=>{if((0,ej.isBezierDefinition)(e)){(0,_.invariant)(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,n,i,r]=e;return eR(t,n,i,r)}return"string"==typeof e?((0,_.invariant)(void 0!==eH[e],`Invalid easing type '${e}'`,"invalid-easing-type"),eH[e]):e},e_=(e,t,n)=>{let i=t-e;return i?(n-e)/i:1};function ez(e,t,{clamp:n=!0,ease:i,mixer:r}={}){let o=e.length;if((0,_.invariant)(o===t.length,"Both input and output ranges must be the same length","range-length"),1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=function(e,t,n){let i=[],r=n||A.MotionGlobalConfig.mix||el,o=e.length-1;for(let n=0;n<o;n++){let o=r(e[n],e[n+1]);t&&(o=H(Array.isArray(t)?t[n]||N.noop:t,o)),i.push(o)}return i}(t,i,r),l=a.length,u=n=>{if(s&&n<e[0])return t[0];let i=0;if(l>1)for(;i<e.length-2&&!(n<e[i+1]);i++);let r=e_(e[i],e[i+1],n);return a[i](r)};return n?t=>u((0,W.clamp)(e[0],e[o-1],t)):u}function eU(e){let t=[0];return!function(e,t){let n=e[e.length-1];for(let i=1;i<=t;i++){let r=e_(0,t,i);e.push((0,Q.mixNumber)(n,1,r))}}(t,e.length-1),t}function eK({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){var r;let o=Array.isArray(i)&&"number"!=typeof i[0]?i.map(eW):eW(i),s={done:!1,value:t[0]},a=ez((r=n&&n.length===t.length?n:eU(t),r.map(t=>t*e)),t,{ease:Array.isArray(o)?o:t.map(()=>o||eF).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(s.value=a(t),s.done=t>=e,s)}}e.s(["progress",0,e_],83920),e.s(["interpolate",0,ez],44230),e.s(["defaultOffset",0,eU],15923);var e$=e.i(14229);let eG={decay:eP,inertia:eP,tween:eK,keyframes:eK,spring:eE};function eq(e){"string"==typeof e.type&&(e.type=eG[e.type])}var eY=e.i(79294);let eX=e=>e/100;class eQ extends eY.WithPromise{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==j.time.now()&&this.tick(j.time.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;eq(e);let{type:t=eK,repeat:n=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=e,{keyframes:s}=e,a=t||eK;a!==eK&&"number"!=typeof s[0]&&(this.mixKeyframes=H(eX,el(s[0],s[1])),s=[0,100]);let l=a({...e,keyframes:s});"mirror"===r&&(this.mirroredGenerator=a({...e,keyframes:[...s].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=ef(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let n,{generator:i,totalDuration:r,mixKeyframes:o,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return i.next(0);let{delay:u=0,keyframes:c,repeat:d,repeatType:f,repeatDelay:p,type:h,onUpdate:m,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let b=this.currentTime,x=i;if(d){let e=Math.min(this.currentTime,r)/a,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,d+1))%2&&("reverse"===f?(n=1-n,p&&(n-=p/a)):"mirror"===f&&(x=s)),b=(0,W.clamp)(0,1,n)*a}y?(this.delayState.value=c[0],n=this.delayState):n=x.next(b),o&&!y&&(n.value=o(n.value));let{done:E}=n;y||null===l||(E=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&E);return S&&h!==eP&&(n.value=(0,e$.getFinalKeyframe)(c,this.options,v,this.speed)),m&&m(n.value),S&&this.finish(),n}then(e,t){return this.finished.then(e,t)}get duration(){return(0,B.millisecondsToSeconds)(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+(0,B.millisecondsToSeconds)(e)}get time(){return(0,B.millisecondsToSeconds)(this.currentTime)}set time(e){e=(0,B.secondsToMilliseconds)(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return ew(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(j.time.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=(0,B.millisecondsToSeconds)(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=ec,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(j.time.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}e.s(["JSAnimation",0,eQ],83352);var eZ=e.i(21012),eJ=e.i(94581),e0=e.i(68e3);let e1={anticipate:eL,backInOut:eD,circInOut:eN};class e5 extends e0.NativeAnimation{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in e1&&(e.ease=e1[e.ease])}(e),eq(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:i,element:r,...o}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let s=new eQ({...o,autoplay:!1}),a=Math.max(10,j.time.now()-this.startTime),l=(0,W.clamp)(0,10,a-10),u=s.sample(a).value,{name:c}=this.options;r&&c&&(0,eJ.setStyle)(r,c,u),t.setWithVelocity(s.sample(Math.max(0,a-l)).value,u,l),s.stop()}}var e4=e.i(97307);let e2=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(K.complex.test(e)||"0"===e)&&!e.startsWith("url("));function e7(e){e.duration=0,e.type="keyframes"}var e3=eY,e6=e.i(60900),e8=e.i(62118);let e9=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,te=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),tt=(0,e6.memo)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class tn extends e3.WithPromise{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:
8o="loop",keyframes:s,name:a,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=j.time.now();const d={autoplay:e,delay:t,type:n,repeat:i,repeatDelay:r,repeatType:o,name:a,motionValue:l,element:u,...c},f=u?.KeyframeResolver||eZ.KeyframeResolver;this.keyframeResolver=new f(s,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,i){let r;this.keyframeResolver=void 0;let{name:o,type:s,velocity:a,delay:l,isHandoff:u,onUpdate:c}=n;this.resolvedAt=j.time.now();let d=!0;!function(e,t,n,i){let r=e[0];if(null===r)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],s=e2(r,t),a=e2(o,t);return(0,_.warning)(s===a,`You are trying to animate ${t} from "${r}" to "${o}". "${s?o:r}" is not an animatable value.`,"value-not-animatable"),!!s&&!!a&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||(0,e4.isGenerator)(n))&&i)}(e,o,s,a)&&(d=!1,(A.MotionGlobalConfig.instantAnimations||!l)&&c?.((0,e$.getFinalKeyframe)(e,n,t)),e[0]=e[e.length-1],e7(n),n.repeat=0);let f={startTime:i?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},p=d&&!u&&function(e){let{motionValue:t,name:n,repeatDelay:i,repeatType:r,damping:o,type:s,keyframes:a}=e,l=t?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;let{onUpdate:u,transformTemplate:c}=t.owner.getProps();return tt()&&n&&(e8.acceleratedValues.has(n)||te.has(n)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&e9.test(e[t]))return!0;return!1}(a))&&("transform"!==n||!c)&&!u&&!i&&"mirror"!==r&&0!==o&&"inertia"!==s}(f),h=f.motionValue?.owner?.current;if(p)try{r=new e5({...f,element:h})}catch{r=new eQ(f)}else r=new eQ(f);r.finished.then(()=>{this.notifyFinished()}).catch(N.noop),this.pendingTimeline&&(this.stopTimeline=r.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=r}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),(0,eZ.flushKeyframeResolvers)()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}var ti=e.i(57788);let tr={type:"spring",stiffness:500,damping:25,restSpeed:10},to={type:"keyframes",duration:.8},ts={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ta=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),tl=(e,t,n,i={},r,o)=>s=>{let a=F(i,e)||{},l=a.delay||i.delay||0,{elapsed:u=0}=i;u-=(0,B.secondsToMilliseconds)(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:r};!function(e){for(let t in e)if(!ta.has(t))return!0;return!1}(a)&&Object.assign(c,((e,{keyframes:t})=>t.length>2?to:ti.transformProps.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:tr:ts)(e,c)),c.duration&&(c.duration=(0,B.secondsToMilliseconds)(c.duration)),c.repeatDelay&&(c.repeatDelay=(0,B.secondsToMilliseconds)(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(e7(c),0===c.delay&&(d=!0)),(A.MotionGlobalConfig.instantAnimations||A.MotionGlobalConfig.skipAnimations||r?.shouldSkipAnimations||a.skipAnimations)&&(d=!0,e7(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,d&&!o&&void 0!==t.get()){let e=(0,e$.getFinalKeyframe)(c.keyframes,a);if(void 0!==e)return void eu.frame.update(()=>{c.onUpdate(e),c.onComplete()})}return a.isSync?new eQ(c):new tn(c)};function tu(e,t,{delay:n=0,transitionOverride:i,type:r}={}){let{transition:o,transitionEnd:s,...a}=t,l=e.getDefaultTransition();o=o?M(o,l):l;let u=o?.reduceMotion,c=o?.skipAnimations;i&&(o=i);let d=[],f=r&&e.animationState&&e.animationState.getState()[r],p=o?.path;for(let t in p&&p.animateVisualElement(e,a,o,n,d),a){let i=e.getValue(t,e.latestValues[t]??null),r=a[t];if(void 0===r||f&&function({protectedKeys:e,needsAnimating:t},n){let i=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,i}(f,t))continue;let s={delay:n,...F(o||{},t)};c&&(s.skipAnimations=!0);let l=i.get();if(void 0!==l&&!i.isAnimating()&&!Array.isArray(r)&&r===l&&!s.velocity){eu.frame.update(()=>i.set(r));continue}let p=!1;if(window.MotionHandoffAnimation){let n=V(e);if(n){let e=window.MotionHandoffAnimation(n,t,eu.frame);null!==e&&(s.startTime=e,p=!0)}}L(e,t);let h=u??e.shouldReduceMotion;i.start(tl(t,i,r,h&&I.positionalKeys.has(t)?{type:!1}:s,e,p));let m=i.animation;m&&d.push(m)}if(s){let t=()=>eu.frame.update(()=>{s&&function(e,t){let{transitionEnd:n={},transition:i={},...r}=C(e,t)||{};for(let t in r={...r,...n}){var o;let n=k(o=r[t])?o[o.length-1]||0:o;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,(0,O.motionValue)(n))}}(e,s)});d.length?Promise.all(d).then(t):t()}return d}function tc(e,t,n,i=0,r=1){let o=Array.from(e).sort((e,t)=>
8e.sortNodePosition(t)).indexOf(t),s=e.size,a=(s-1)*i;return"function"==typeof n?n(o,s):1===r?o*i:a-o*i}function td(e,t,n={}){let i=C(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:r=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);let o=i?()=>Promise.all(tu(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(i=0)=>{let{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=r;return function(e,t,n=0,i=0,r=0,o=1,s){let a=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),a.push(td(l,t,{...s,delay:n+("function"==typeof i?0:i)+tc(e.variantChildren,l,i,r,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}(e,t,i,o,s,a,n)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([o(),s(n.delay)]);{let[e,t]="beforeChildren"===a?[o,s]:[s,o];return e().then(()=>t())}}var tf=e.i(32525),tp=e.i(6840);let th=tp.variantProps.length;var tm=e.i(85983);function tv(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}let tg=[...tp.variantPriorityOrder].reverse(),ty=tp.variantPriorityOrder.length;function tb(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function tx(){return{animate:tb(!0),whileInView:tb(),whileHover:tb(),whileTap:tb(),whileDrag:tb(),whileFocus:tb(),exit:tb()}}let tE=0;var tS=e.i(30162);function tw(e){return[e("x"),e("y")]}var tP=e.i(53689),tT=e.i(27677);function tR(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}let tC={x:!1,y:!1};var tM=e.i(65091);function tF(e){return e.max-e.min}function tI(e,t,n,i=.5){e.origin=i,e.originPoint=(0,Q.mixNumber)(t.min,t.max,e.origin),e.scale=tF(n)/tF(t),e.translate=(0,Q.mixNumber)(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function tO(e,t,n,i){tI(e.x,t.x,n.x,i?i.originX:void 0),tI(e.y,t.y,n.y,i?i.originY:void 0)}function tk(e,t,n,i=0){e.min=(i?(0,Q.mixNumber)(n.min,n.max,i):n.min)+t.min,e.max=e.min+tF(t)}function tA(e,t,n,i=0){let r=i?(0,Q.mixNumber)(n.min,n.max,i):n.min;e.min=t.min-r,e.max=e.min+tF(t)}function tD(e,t,n,i){tA(e.x,t.x,n.x,i?.x),tA(e.y,t.y,n.y,i?.y)}let tL=e=>"object"==typeof e&&null!==e;function tV(e){return tL(e)&&"ownerSVGElement"in e}function tB(e,t,n){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let i=document;t&&(i=t.current);let r=n?.[e]??i.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e).filter(e=>null!=e)}e.s(["resolveElements",0,tB],49652);let tN=new WeakMap,tj=(e,t,n)=>(i,r)=>r&&r[0]?r[0][e+"Size"]:tV(i)&&"getBBox"in i?i.getBBox()[t]:i[n],tH=tj("inline","width","offsetWidth"),tW=tj("block","height","offsetHeight");function t_({target:e,borderBoxSize:t}){tN.get(e)?.forEach(n=>{n(e,{get width(){return tH(e,t)},get height(){return tW(e,t)}})})}function tz(e){e.forEach(t_)}let tU=new Set;function tK(e,i){let r;return"function"==typeof e?(tU.add(e),n||(n=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};tU.forEach(t=>t(e))},window.addEventListener("resize",n)),()=>{tU.delete(e),tU.size||"function"!=typeof n||(window.removeEventListener("resize",n),n=void 0)}):(!t&&"u">typeof ResizeObserver&&(t=new ResizeObserver(tz)),(r=tB(e)).forEach(e=>{let n=tN.get(e);n||(n=new Set,tN.set(e,n)),n.add(i),t?.observe(e)}),()=>{r.forEach(e=>{let n=tN.get(e);n?.delete(i),n?.size||t?.unobserve(e)})})}e.s(["resize",0,tK],61327);let t$=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),tG=new Set(["INPUT","SELECT","TEXTAREA"]),tq=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function tY(e){return{point:{x:e.pageX,y:e.pageY}}}function tX(e,t,n,i){return tR(e,t,e=>tq(e)&&n(e,tY(e)),i)}let tQ=({current:e})=>e?e.ownerDocument.defaultView:null,tZ=(e,t)=>Math.abs(e-t),tJ=new Set(["auto","scroll"]);class t0{constructor(e,t,{transformPagePoint:n,contextWindow:i=window,dragSnapToOrigin:r=!1,distanceThreshold:o=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=t1(this.lastRawMoveEventInfo,this.transformPagePoint));let n=t4(this.lastMoveEventInfo,this.history),i=null!==this.startEvent,r=(e=n.offset,t={x:0,y:0},Math.sqrt(tZ(e.x,t.x)**2+tZ(e.y,t.y)**2)>=this.distanceThreshold);if(!i&&!r)return;let{point:o}=n,{timestamp:s}=eu.frameData;this.history.push({...o,timestamp:s});let{onStart:a,onMove:l}=this.handlers;
8i||(a&&a(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=t1(t,this.transformPagePoint),eu.frame.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:i,resumeAnimation:r}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=t4("pointercancel"===e.type?this.lastMoveEventInfo:t1(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),i&&i(e,o)},!tq(e))return;this.dragSnapToOrigin=r,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=i||window;const a=t1(tY(e),this.transformPagePoint),{point:l}=a,{timestamp:u}=eu.frameData;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=t;c&&c(e,t4(a,this.history));const d={passive:!0,capture:!0};this.removeListeners=H(tX(this.contextWindow,"pointermove",this.handlePointerMove,d),tX(this.contextWindow,"pointerup",this.handlePointerUp,d),tX(this.contextWindow,"pointercancel",this.handlePointerUp,d)),s&&this.startScrollTracking(s)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(tJ.has(e.overflowX)||tJ.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,i=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},r={x:i.x-t.x,y:i.y-t.y};(0!==r.x||0!==r.y)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(e,i),eu.frame.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,eu.cancelFrame)(this.updatePoint)}}function t1(e,t){return t?{point:t(e.point)}:e}function t5(e,t){return{x:e.x-t.x,y:e.y-t.y}}function t4({point:e},t){return{point:e,delta:t5(e,t2(t)),offset:t5(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,n=null,i=t2(e);for(;t>=0&&(n=e[t],!(i.timestamp-n.timestamp>(0,B.secondsToMilliseconds)(.1)));)t--;if(!n)return{x:0,y:0};n===e[0]&&e.length>2&&i.timestamp-n.timestamp>2*(0,B.secondsToMilliseconds)(.1)&&(n=e[1]);let r=(0,B.millisecondsToSeconds)(i.timestamp-n.timestamp);if(0===r)return{x:0,y:0};let o={x:(i.x-n.x)/r,y:(i.y-n.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(t)}}function t2(e){return e[e.length-1]}function t7(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function t3(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function t6(e,t,n){return{min:t8(e,t),max:t8(e,n)}}function t8(e,t){return"number"==typeof e?e:e[t]||0}let t9=new WeakMap;class ne{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,tS.createBox)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let r=e=>{t&&this.snapToCursor(tY(e).point),this.stopAnimation()},o=(e,t)=>{let{drag:n,dragPropagation:i,onDragStart:r}=this.getProps();if(n&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(tC[e])return null;else return tC[e]=!0,()=>{tC[e]=!1};return tC.x||tC.y?null:(tC.x=tC.y=!0,()=>{tC.x=tC.y=!1})}(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tw(e=>{let t=this.getAxisMotionValue(e).get()||0;if(tM.percent.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let i=n.layout.layoutBox[e];i&&(t=tF(i)*(parseFloat(t)/100))}}this.originPoint[e]=t}),r&&eu.frame.update(()=>r(e,t),!1,!0),L(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:i,onDirectionLock:r,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:s}=t;if(i&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(s),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),o&&eu.frame.update(()=>o(e,t),!1,!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();
8this.panSession=new t0(e,{onSessionStart:r,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:n,contextWindow:tQ(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,i=t||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!i||!n)return;let{velocity:o}=i;this.startAnimation(o);let{onDragEnd:s}=this.getProps();s&&eu.frame.postRender(()=>s(n,i))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:i}=this.getProps();if(!n||!nn(e,i,this.currentDirection))return;let r=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},i){return void 0!==t&&e<t?e=i?(0,Q.mixNumber)(t,e,i.min):Math.max(e,t):void 0!==n&&e>n&&(e=i?(0,Q.mixNumber)(n,e,i.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&(0,S.isRefObject)(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:i,right:r}){return{x:t7(e.x,n,r),y:t7(e.y,t,i)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:t6(e,"left","right"),y:t6(e,"top","bottom")}}(t),i!==this.constraints&&!(0,S.isRefObject)(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&tw(e=>{var t,i;let r;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=n.layoutBox[e],i=this.constraints[e],r={},void 0!==i.min&&(r.min=i.min-t.min),void 0!==i.max&&(r.max=i.max-t.min),r))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!(0,S.isRefObject)(t))return!1;let i=t.current;(0,_.invariant)(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let o=(0,tP.measurePageBox)(i,r.root,this.visualElement.getTransformPagePoint()),s=(e=r.layout.layoutBox,{x:t3(e.x,o.x),y:t3(e.y,o.y)});if(n){let e=n((0,tT.convertBoxToBoundingBox)(s));this.hasMutatedConstraints=!!e,e&&(s=(0,tT.convertBoundingBoxToBox)(e))}return s}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(tw(s=>{if(!nn(s,t,this.currentDirection))return;let l=a&&a[s]||{};(!0===o||o===s)&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[s]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return L(this.visualElement,e),n.start(tl(e,n,0,t,this.visualElement,!1))}stopAnimation(){tw(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){tw(t=>{let{drag:n}=this.getProps();if(!nn(t,n,this.currentDirection))return;let{projection:i}=this.visualElement,r=this.getAxisMotionValue(t);if(i&&i.layout){let{min:n,max:o}=i.layout.layoutBox[t],s=r.get()||0;r.set(e[t]-(0,Q.mixNumber)(n,o,.5)+s)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!(0,S.isRefObject)(t)||!n||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};tw(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var n,r;let o,s,a,l=t.get();i[e]=(n={min:l,max:l},r=this.constraints[e],o=.5,s=tF(n),(a=tF(r))>s?o=e_(r.min,r.max-s,n.min):s>a&&(o=e_(n.min,n.max-a,r.min)),(0,W.clamp)(0,1,o))}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),tw(t=>{if(!nn(t,e,null))return;let n=this.getAxisMotionValue(t),{min:r,max:o}=this.constraints[t];n.set((0,Q.mixNumber)(r,o,i[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;t9.set(this.visualElement,this);let t=this.visualElement.current,n=tX(t,"pointerdown",e=>{let{drag:n,dragListener:i=!0}
8=this.getProps(),r=e.target,o=r!==t&&(tG.has(r.tagName)||!0===r.isContentEditable);n&&i&&!o&&this.start(e)}),i=()=>{var n,i,r;let o,s,{dragConstraints:a}=this.getProps();(0,S.isRefObject)(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),e||(n=t,i=a.current,o=tK(n,nt(r=()=>this.scalePositionWithinConstraints())),s=tK(i,nt(r)),e=()=>{o(),s()}))},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),eu.frame.read(i);let s=tR(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(tw(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=.35,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:s}}}function nt(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function nn(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let ni=e=>(t,n)=>{e&&eu.frame.update(()=>e(t,n),!1,!0)},nr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var no=e.i(60140),ns=o;let na=!1;class nl extends ns.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:i}=this.props,{projection:r}=e;r&&(t.group&&t.group.add(r),n&&n.register&&i&&n.register(r),na&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),nr.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:i,isPresent:r}=this.props,{projection:o}=n;return o&&(o.isPresent=r,e.layoutDependency!==t&&o.setOptions({...o.options,layoutDependency:t}),na=!0,i||e.layoutDependency!==t||void 0===t||e.isPresent!==r?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||eu.frame.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),no.microtask.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:i}=e;na=!0,i&&(i.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nu(e){let[t,n]=function(e=!0){let t=(0,o.useContext)(x.PresenceContext);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:i,register:r}=t,s=(0,o.useId)();(0,o.useEffect)(()=>{if(e)return r(s)},[e]);let a=(0,o.useCallback)(()=>e&&i&&i(s),[s,i,e]);return!n&&i?[!1,a]:[!0]}(),i=(0,ns.useContext)(s.LayoutGroupContext);return(0,r.jsx)(nl,{...e,layoutGroup:i,switchLayoutGroup:(0,ns.useContext)(E.SwitchLayoutGroupContext),isPresent:t,safeToRemove:n})}var nc=e.i(70596),nd=e.i(24463),nf=e.i(33871),np=e.i(95051);let nh=np.cornerRadiusProps.length,nm=e=>"string"==typeof e?parseFloat(e):e,nv=e=>"number"==typeof e||tM.px.test(e);function ng(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let ny=nx(0,.5,eB),nb=nx(.5,.95,N.noop);function nx(e,t,n){return i=>i<e?0:i>t?1:n(e_(e,t,i))}function nE(e,t){e.min=t.min,e.max=t.max}function nS(e,t){nE(e.x,t.x),nE(e.y,t.y)}function nw(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var nP=e.i(35636);function nT(e,t,n,i,r){return e-=t,e=(0,nP.scalePoint)(e,1/n,i),void 0!==r&&(e=(0,nP.scalePoint)(e,1/r,i)),e}function nR(e,t,[n,i,r],o,s){!function(e,t=0,n=1,i=.5,r,o=e,s=e){if(tM.percent.test(t)&&(t=parseFloat(t),t=(0,Q.mixNumber)(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let a=(0,Q.mixNumber)(o.min,o.max,i);e===o&&(a-=t),e.min=nT(e.min,t,n,a,r),e.max=nT(e.max,t,n,a,r)}(e,t[n],t[i],t[r],t.scale,o,s)}let nC=["x","scaleX","originX"],nM=["y","scaleY","originY"];function nF(e,t,n,i){nR(e.x,t,nC,n?n.x:void 0,i?i.x:void 0),nR(e.y,t,nM,n?n.y:void 0,i?i.y:void 0)}function nI(e){return 0===e.translate&&1===e.scale}function nO(e){return nI(e.x)&&nI(e.y)}function nk(e,t){return e.min===t.min&&e.max===t.max}function nA(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function nD(e,t){return nA(e.x,t.x)&&nA(e.y,t.y)}function nL(e){return tF(e.x)/tF(e.y)}function nV(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var nB=e.i(33887);
8class nN{constructor(){this.members=[]}add(e){(0,nB.addUniqueItem)(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let i=n.instance;i&&!1!==i.isConnected||n.snapshot||((0,nB.removeItem)(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if((0,nB.removeItem)(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:i}=n.options,{layoutDependency:r}=e.options;(void 0===i||i!==r)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let nj=(e,t)=>e.depth-t.depth;class nH{constructor(){this.children=[],this.isDirty=!1}add(e){(0,nB.addUniqueItem)(this.children,e),this.isDirty=!0}remove(e){(0,nB.removeItem)(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(nj),this.isDirty=!1,this.children.forEach(e)}}var nW=e.i(77777);let n_=["","X","Y","Z"],nz=0;function nU(e,t,n,i){let{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),i&&(i[e]=0))}function nK({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(e={},n=t?.()){this.id=nz++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(nq),this.nodes.forEach(n4),this.nodes.forEach(n2),this.nodes.forEach(nY)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new nH)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new nc.SubscriptionManager),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=tV(t)&&!(tV(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:n,layout:i,visualElement:r}=this.options;if(r&&!r.current&&r.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(i||n)&&(this.isLayoutDirty=!0),e){let n,i=0,r=()=>this.root.updateBlockedByResize=!1;eu.frame.read(()=>{i=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==i){let t,o;i=e,this.root.updateBlockedByResize=!0,n&&n(),t=j.time.now(),o=({timestamp:e})=>{let n=e-t;n>=250&&((0,eu.cancelFrame)(o),r())},eu.frame.setup(o,!0),n=()=>(0,eu.cancelFrame)(o),nr.hasAnimatedSinceResize&&(nr.hasAnimatedSinceResize=!1,this.nodes.forEac
8h(n5))}})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&r&&(n||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||r.getDefaultTransition()||ie,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!nD(this.targetLayout,i),u=!t&&n;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...F(o,"layout"),onPlay:s,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u,t.path)}else t||n5(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,eu.cancelFrame)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(n7),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let i=V(n);if(window.MotionHasOptimisedAnimation(i,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",eu.frame,!(e||n))}let{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&e(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(nZ),this.nodes.forEach(nQ);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(nJ);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(n0),this.nodes.forEach(n1),this.nodes.forEach(n$),this.nodes.forEach(nG)):this.nodes.forEach(nJ),this.clearAllSnapshots();let e=j.time.now();eu.frameData.delta=(0,W.clamp)(0,1e3/60,e-eu.frameData.timestamp),eu.frameData.timestamp=e,eu.frameData.isProcessing=!0,eu.frameSteps.update.process(eu.frameData),eu.frameSteps.preRender.process(eu.frameData),eu.frameSteps.render.process(eu.frameData),eu.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,no.microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nX),this.sharedNodes.forEach(n3)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eu.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eu.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||tF(this.snapshot.measuredBox.x)||tF(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=(0,tS.createBox)()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=i(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!r)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!nO(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,o=i!==this.prevTransformTemplateValue;e&&this.instance&&(t||(0,nW.hasTransform)(this.latestValues)||o)&&(r(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),i=this.removeElementScroll(n);return e&&(i=this.removeTransform(i)),ir((t=i).x),ir(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return(0,tS.createBox)();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(is))){let{scroll:e}=this.root;e&&((0,nP.translateAxis)(t.x,e.offset.x),(0,nP.translateAxis)(t.y,e.offset.y))}return t}removeElementScroll(e){let t=(0,tS.createBox)();if(nS(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let i=this.path[n],{scroll:r,options:o}=i;i!==this.root&&r&&o.layoutScroll&&(r.wasRoot&&nS(t,e),(0,nP.translateAxis)(t.x,r.offset.x),(0,nP.translateAxis)(t.y,r.offset.y))}return t}applyTransform(e,t=!1,n){let i=n||(0,tS.createBox)();nS(i,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&((0,nP.translateAxis)(i.x,-n.scroll.offset.x),(0,nP.translateAxis)(i.y,-n.scroll.offset.y)),(0,nW.hasTransform)(n.latestValues)&&(0,nP.transformBox)(i,n.latestValues,n.layout?.layoutBox)}return(0,nW.hasTransform)(this.latestValues)&&(0,nP.transformBox)(i,this.latestValues,this.layout?.layoutBox),i}removeTransform(e){let t=(0,tS.createBox)();nS(t,e);for(let e=0;e<this.path.length;e++){let n,i=this.path[e];(0,nW.hasTransform)(i.latestValues)&&(i.instance&&((0,nW.hasScale)(i.latestValues)&&i.updateSnapshot(),nS(n=(0,tS.createBox)(),i.measurePageBox())),nF(t,i.latestValues,i.snapshot?.layoutBox,n))}return(0,nW.hasTransform)(this.latestValues)&&nF(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==eu.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
8isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:i,layoutId:r}=this.options;if(!this.layout||!(i||r))return;this.resolvedRelativeTargetAt=eu.frameData.timestamp;let o=this.getClosestProjectingParent();if(o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,tS.createBox)(),this.targetWithTransforms=(0,tS.createBox)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var s,a,l,u;this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,tk(s.x,a.x,l.x,u?.x),tk(s.y,a.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):nS(this.target,this.layout.layoutBox),(0,nP.applyBoxDelta)(this.target,this.targetDelta)):nS(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||(0,nW.hasScale)(this.parent.latestValues)||(0,nW.has2DTranslate)(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,tS.createBox)(),this.relativeTargetOrigin=(0,tS.createBox)(),tD(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),nS(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===eu.frameData.timestamp&&(n=!1),n)return;let{layout:i,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||r))return;nS(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,s=this.treeScale.y;(0,nP.applyTreeDeltas)(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=(0,tS.createBox)());let{target:a}=e;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nw(this.prevProjectionDelta.x,this.projectionDelta.x),nw(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),tO(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===o&&this.treeScale.y===s&&nV(this.projectionDelta.x,this.prevProjectionDelta.x)&&nV(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,tS.createDelta)(),this.projectionDelta=(0,tS.createDelta)(),this.projectionDeltaWithTransform=(0,tS.createDelta)()}setAnimationOrigin(e,t=!1,n){let i,r=this.snapshot,o=r?r.latestValues:{},s={...this.latestValues},a=(0,tS.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;
8let l=(0,tS.createBox)(),u=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),d=!c||c.members.length<=1,f=!!(u&&!d&&!0===this.options.crossfade&&!this.path.some(n9));this.animationProgress=0;let p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);if(r?(a.x.translate=r.x,a.x.scale=(0,Q.mixNumber)(e.x.scale,1,n),a.x.origin=e.x.origin,a.x.originPoint=e.x.originPoint,a.y.translate=r.y,a.y.scale=(0,Q.mixNumber)(e.y.scale,1,n),a.y.origin=e.y.origin,a.y.originPoint=e.y.originPoint):(n6(a.x,e.x,n),n6(a.y,e.y,n)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,h,m,v,g,y;tD(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),m=this.relativeTarget,v=this.relativeTargetOrigin,g=l,y=n,n8(m.x,v.x,g.x,y),n8(m.y,v.y,g.y,y),i&&(c=this.relativeTarget,h=i,nk(c.x,h.x)&&nk(c.y,h.y))&&(this.isProjectionDirty=!1),i||(i=(0,tS.createBox)()),nS(i,this.relativeTarget)}u&&(this.animationValues=s,function(e,t,n,i,r,o){r?(e.opacity=(0,Q.mixNumber)(0,n.opacity??1,ny(i)),e.opacityExit=(0,Q.mixNumber)(t.opacity??1,0,nb(i))):o&&(e.opacity=(0,Q.mixNumber)(t.opacity??1,n.opacity??1,i));for(let r=0;r<nh;r++){let o=np.cornerRadiusProps[r],s=ng(t,o),a=ng(n,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||nv(s)===nv(a)?(e[o]=Math.max((0,Q.mixNumber)(nm(s),nm(a),i),0),(tM.percent.test(a)||tM.percent.test(s))&&(e[o]+="%")):e[o]=a)}(t.rotate||n.rotate)&&(e.rotate=(0,Q.mixNumber)(t.rotate||0,n.rotate||0,i))}(s,o,this.latestValues,n,f,d)),r&&void 0!==r.rotate&&(this.animationValues||(this.animationValues=s),this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,eu.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eu.frame.update(()=>{var t,n,i;let r;nr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=(0,O.motionValue)(0)),this.motionValue.jump(0,!1),this.currentAnimation=(t=this.motionValue,n=[0,1e3],i={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}},(r=(0,D.isMotionValue)(t)?t:(0,O.motionValue)(t)).start(tl("",r,n,i)
8),r.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:i,latestValues:r}=e;if(t&&n&&i){if(this!==e&&this.layout&&i&&io(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||(0,tS.createBox)();let t=tF(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let i=tF(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+i}nS(t,n),(0,nP.transformBox)(t,r),tO(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new nN),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let i=this.getStack();i&&i.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let i={};n.z&&nU("z",e,i,this.animationValues);for(let t=0;t<n_.length;t++)nU(`rotate${n_[t]}`,e,i,this.animationValues),nU(`skew${n_[t]}`,e,i,this.animationValues);for(let t in e.render(),i)e.setStaticValue(t,i[t]),this.animationValues&&(this.animationValues[t]=i[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=(0,nf.resolveMotionValue)(t?.pointerEvents)||"",e.transform=n?n(this.latestValues,""):"none";return}let i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=(0,nf.resolveMotionValue)(t?.pointerEvents)||""),this.hasProjected&&!(0,nW.hasTransform)(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1);return}e.visibility="";let r=i.animationValues||i.latestValues;this.applyTransformsToTarget();
8let o=function(e,t,n){let i="",r=e.x.translate/t.x,o=e.y.translate/t.y,s=n?.z||0;if((r||o||s)&&(i=`translate3d(${r}px, ${o}px, ${s}px) `),(1!==t.x||1!==t.y)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:r,rotateX:o,rotateY:s,skewX:a,skewY:l}=n;e&&(i=`perspective(${e}px) ${i}`),t&&(i+=`rotate(${t}deg) `),r&&(i+=`rotate(${r}deg) `),o&&(i+=`rotateX(${o}deg) `),s&&(i+=`rotateY(${s}deg) `),a&&(i+=`skewX(${a}deg) `),l&&(i+=`skewY(${l}deg) `)}let a=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==a||1!==l)&&(i+=`scale(${a}, ${l})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);n&&(o=n(r,o)),e.transform=o;let{x:s,y:a}=this.projectionDelta;for(let t in e.transformOrigin=`${100*s.origin}% ${100*a.origin}% 0`,i.animationValues?e.opacity=i===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:e.opacity=i===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,nd.scaleCorrectors){if(void 0===r[t])continue;let{correct:n,applyTo:s,isCSSVariable:a}=nd.scaleCorrectors[t],l="none"===o?r[t]:n(r[t],i);if(s){let t=s.length;for(let n=0;n<t;n++)e[s[n]]=l}else a?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=i===this?(0,nf.resolveMotionValue)(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(nQ),this.root.sharedNodes.clear()}}}function n$(e){e.updateLayout()}function nG(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:i}=e.layout,{animationType:r}=e.options,o=t.source!==e.layout.source;if("size"===r)tw(e=>{let i=o?t.measuredBox[e]:t.layoutBox[e],r=tF(i);i.min=n[e].min,i.max=i.min+r});else if("x"===r||"y"===r){let e="x"===r?"y":"x";nE(o?t.measuredBox[e]:t.layoutBox[e],n[e])}else io(r,t.layoutBox,n)&&tw(i=>{let r=o?t.measuredBox[i]:t.layoutBox[i],s=tF(n[i]);r.max=r.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[i].max=e.relativeTarget[i].min+s)});let s=(0,tS.createDelta)();tO(s,n,t.layoutBox);let a=(0,tS.createDelta)();o?tO(a,e.applyTransform(i,!0),t.measuredBox):tO(a,n,t.layoutBox);let l=!nO(s),u=!1;if(!e.resumeFrom){let i=e.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:r,layout:o}=i;if(r&&o){let s=e.options.layoutAnchor||void 0,a=(0,tS.createBox)();tD(a,t.layoutBox,r.layoutBox,s);let l=(0,tS.createBox)();tD(l,n,o.layoutBox,s),nD(a,l)||(u=!0),i.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=a,e.relativeParent=i)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function nq(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function nY(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function nX(e){e.clearSnapshot()}function nQ(e){e.clearMeasurements()}function nZ(e){e.isLayoutDirty=!0,e.updateLayout()}function nJ(e){e.isLayoutDirty=!1}function n0(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function n1(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function n5(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function n4(e){e.resolveTargetDelta()}function n2(e){e.calcProjection()}function n7(e){e.resetSkewAndRotation()}function n3(e){e.removeLeadSnapshot()}function n6(e,t,n){e.translate=(0,Q.mixNumber)(t.translate,0,n),e.scale=(0,Q.mixNumber)(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function n8(e,t,n,i){e.min=(0,Q.mixNumber)(t.min,n.min,i),e.max=(0,Q.mixNumber)(t.max,n.max,i)}function n9(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let ie={duration:.45,ease:[.4,0,.1,1]},it=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ii=it("applewebkit/")&&!it("chrome/")?Math.round:N.noop;function ir(e){e.min=ii(e.min),e.max=ii(e.max)}function io(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(nL(t)-nL(n)))}function is(e){return e!==e.root&&e.scroll?.wasRoot}let ia=nK({attachResizeListener:(e,t)=>tR(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),il={current:void 0},iu=nK({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!il.current){let e=new ia({});e.mount(window),e.setOptions({layoutScroll:!0}),il.current=e}return il.current},resetTransform:(e,t)=>
8{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function ic(e,t){let n=tB(e),i=new AbortController;return[n,{passive:!0,...t,signal:i.signal},()=>i.abort()]}function id(e,t,n){let{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover","Start"===n);let r=i["onHover"+n];r&&eu.frame.postRender(()=>r(t,tY(t)))}function ip(e){return tL(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}e.s(["isHTMLElement",0,ip],72846);let ih=(e,t)=>!!t&&(e===t||ih(e,t.parentElement)),im=new WeakSet;function iv(e){return t=>{"Enter"===t.key&&e(t)}}function ig(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function iy(e){return tq(e)&&!(tC.x||tC.y)}let ib=new WeakSet;function ix(e,t,n){let{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap","Start"===n);let r=i["onTap"+("End"===n?"":n)];r&&eu.frame.postRender(()=>r(t,tY(t)))}let iE=new WeakMap,iS=new WeakMap,iw=e=>{let t=iE.get(e.target);t&&t(e)},iP=e=>{e.forEach(iw)},iT={some:0,all:1},iR=function(e,t){if("u"<typeof Proxy)return P;let n=new Map,i=(n,i)=>P(n,i,e,t);return new Proxy((e,t)=>i(e,t),{get:(r,o)=>"create"===o?i:(n.has(o)||n.set(o,P(o,void 0,e,t)),n.get(o))})}({animation:{Feature:class extends T{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let i;if(e.notify("AnimationStart",t),Array.isArray(t))i=Promise.all(t.map(t=>td(e,t,n)));else if("string"==typeof t)i=td(e,t,n);else{let r="function"==typeof t?C(e,t,n.custom):t;i=Promise.all(tu(e,r,n))}return i.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=tx(),i=!0,r=!1,o=t=>(n,i)=>{let r=C(e,i,"exit"===t?e.presenceContext?.custom:void 0);if(r){let{transition:e,transitionEnd:t,...i}=r;n={...n,...i,...t}}return n};function s(s){let{props:a}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<th;e++){let i=tp.variantProps[e],r=t.props[i];((0,tf.isVariantLabel)(r)||!1===r)&&(n[i]=r)}return n}(e.parent)||{},u=[],c=new Set,d={},f=1/0;for(let t=0;t<ty;t++){var p,h;let m=tg[t],v=n[m],g=void 0!==a[m]?a[m]:l[m],y=(0,tf.isVariantLabel)(g),b=m===s?v.isActive:null;!1===b&&(f=t);let x=g===l[m]&&g!==a[m]&&y;if(x&&(i||r)&&e.manuallyAnimateOnMount&&(x=!1),v.protectedKeys={...d},!v.isActive&&null===b||!g&&!v.prevProp||(0,tm.isAnimationControls)(g)||"boolean"==typeof g)continue;if("exit"===m&&v.isActive&&!0!==b){v.prevResolvedValues&&(d={...d,...v.prevResolvedValues});continue}let E=(p=v.prevProp,"string"==typeof(h=g)?h!==p:!!Array.isArray(h)&&!tv(h,p)),S=E||m===s&&v.isActive&&!x&&y||t>f&&y,w=!1,P=Array.isArray(g)?g:[g],T=P.reduce(o(m),{});!1===b&&(T={});let{prevResolvedValues:R={}}=v,M={...R,...T},F=t=>{S=!0,c.has(t)&&(w=!0,c.delete(t)),v.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in M){let t=T[e],n=R[e];if(!d.hasOwnProperty(e))(k(t)&&k(n)?!tv(t,n)||E:t!==n)?null!=t?F(e):c.add(e):void 0!==t&&c.has(e)?F(e):v.protectedKeys[e]=!0}v.prevProp=g,v.prevResolvedValues=T,v.isActive&&(d={...d,...T}),(i||r)&&e.blockInitialAnimation&&(S=!1);let I=x&&E,O=!I||w;S&&O&&u.push(...P.map(t=>{let n={type:m};if("string"==typeof t&&(i||r)&&!I&&e.manuallyAnimateOnMount&&e.parent){let{parent:i}=e,r=C(i,t);if(i.enteringChildren&&r){let{delayChildren:t}=r.transition||{};n.delay=tc(i.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(c.size){let t={};if("boolean"!=typeof a.initial){let n=C(e,Array.isArray(a.initial)?a.initial[0]:a.initial);n&&n.transition&&(t.transition=n.transition)}c.forEach(n=>{let i=e.getBaseTarget(n),r=e.getValue(n);r&&(r.liveStyle=!0),t[n]=i??null}),u.push({animation:t})}let m=!!u.length;return i&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(m=!1),i=!1,r=!1,m?t(u):Promise.resolve()}return{animateChanges:s,setActive:function(t,i){if(n[t].isActive===i)return Promise.resolve();
8e.variantChildren?.forEach(e=>e.animationState?.setActive(t,i)),n[t].isActive=i;let r=s(t);for(let e in n)n[e].protectedKeys={};return r},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=tx(),r=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();(0,tm.isAnimationControls)(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends T{constructor(){super(...arguments),this.id=tE++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&!1===n){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){let n=C(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...i}=n;for(let e in i)this.node.getValue(e)?.jump(i[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let i=this.node.animationState.setActive("exit",!e);t&&!e&&i.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends T{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.stopObserver?.();let{viewport:n={}}=this.node.getProps(),{root:i,margin:r,amount:o="some",once:s}=n,a={root:i?i.current:void 0,rootMargin:r,threshold:"number"==typeof o?o:iT[o]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,s&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),r=t?n:i;r&&r(e)};this.stopObserver=(e=this.node.current,t=function({root:e,...t}){let n=e||document;iS.has(n)||iS.set(n,{});let i=iS.get(n),r=JSON.stringify(t);return i[r]||(i[r]=new IntersectionObserver(iP,{root:e,...t})),i[r]}(a),iE.set(e,l),t.observe(e),()=>{iE.delete(e),t.unobserve(e)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends T{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=function(e,t,n={}){let[i,r,o]=ic(e,n),s=e=>{let i=e.currentTarget;if(!iy(e)||ib.has(e))return;im.add(i),n.stopPropagation&&ib.add(e);let o=t(i,e),s={...r,capture:!0},a=(e,t)=>{window.removeEventListener("pointerup",l,s),window.removeEventListener("pointercancel",u,s),im.has(i)&&im.delete(i),iy(e)&&"function"==typeof o&&o(e,{success:t})},l=e=>{a(e,i===window||i===document||n.useGlobalTarget||ih(i,e.target))},u=e=>{a(e,!1)};window.addEventListener("pointerup",l,s),window.addEventListener("pointercancel",u,s)};return i.forEach(e=>{((n.useGlobalTarget?window:e).addEventListener("pointerdown",s,r),ip(e))&&(e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(!n)return;let i=iv(()=>{if(im.has(n))return;ig(n,"down");let e=iv(()=>{ig(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>ig(n,"cancel"),t)});n.addEventListener("keydown",i,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),t)})(e,r)),t$.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}(e,(e,t)=>(ix(this.node,t,"Start"),(e,{success:t})=>ix(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}}},focus:{Feature:class extends T{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=H(tR(this.node.current,"focus",()=>this.onFocus()),tR(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends T{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[i,r,o]=ic(e,n);
8return i.forEach(e=>{let n,i=!1,o=!1,s=t=>{n&&(n(t),n=void 0),e.removeEventListener("pointerleave",l)},a=e=>{i=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),o&&(o=!1,s(e))},l=e=>{if("touch"!==e.pointerType){if(i){o=!0;return}s(e)}};e.addEventListener("pointerenter",i=>{if("touch"===i.pointerType||tC.x||tC.y)return;o=!1;let s=t(e,i);"function"==typeof s&&(n=s,e.addEventListener("pointerleave",l,r))},r),e.addEventListener("pointerdown",()=>{i=!0,window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",a,r)},r)}),o}(e,(e,t)=>(id(this.node,t,"Start"),e=>id(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends T{constructor(){super(...arguments),this.removePointerDownListener=N.noop}onPointerDown(e){this.session=new t0(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tQ(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:ni(e),onStart:ni(t),onMove:ni(n),onEnd:(e,t)=>{delete this.session,i&&eu.frame.postRender(()=>i(e,t))}}}mount(){this.removePointerDownListener=tX(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends T{constructor(e){super(e),this.removeGroupControls=N.noop,this.removeListeners=N.noop,this.controls=new ne(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||N.noop}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:iu,MeasureLayout:nu},layout:{ProjectionNode:iu,MeasureLayout:nu}},i.createDomVisualElement);e.s(["motion",0,iR],46932)},54505,21012,63074,33887,70596,94581,60900,30551,14229,79294,60855,56512,97307,68e3,62118,60140,96173,25791,86427,85983,32525,6840,87576,86579,17218,93787,44947,81261,99951,95051,706,24463,30789,84049,67926,27677,77777,35636,53689,44966,e=>{"use strict";let t;var n=e.i(57788),i=e.i(3973),r=e.i(30162),o=e.i(27228),s=e.i(64440),a=e.i(77942),l=e.i(84015),u=e.i(19928),c=e.i(11485),d=e.i(44493),f=e.i(87022);let p=new Set,h=!1,m=!1,v=!1;function g(){if(m){let e=Array.from(p).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=(0,d.removeNonTranslationalTransform)(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}m=!1,h=!1,p.forEach(e=>e.complete(v)),p.clear()}function y(){p.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(m=!0)})}class b{constructor(e,t,n,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(p.add(this),h||(h=!0,f.frame.read(y),f.frame.resolveKeyframes(g))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:i}=this;if(null===e[0]){let r=i?.get(),o=e[e.length-1];if(void 0!==r)e[0]=r;else if(n&&t){let i=n.readValue(t,o);null!=i&&(e[0]=i)}void 0===e[0]&&(e[0]=o),i&&void 0===r&&i.set(e[0])}(0,c.fillWildcards)(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),p.delete(this)}cancel(){"scheduled"===this.state&&(p.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}e.s(["KeyframeResolver",0,b,"flushKeyframeResolvers",0,function(){v=!0,y(),g(),v=!1}],21012);var x=e.i(69577),E=e.i(8792),S=e.i(19991);let w=new Set([E.filter,S.mask]);function P(e,t){let n=(0,i.getDefaultValueType)(e);return w.has(n)||(n=x.complex),n.getAnimatableNone?n.getAnimatableNone(t):void 0}
8let T=new Set(["auto","none","0"]);class R extends b{constructor(e,t,n,i,r){super(e,t,n,i,r,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let i=e[n];if("string"==typeof i&&(i=i.trim(),(0,u.isCSSVariableToken)(i))){let r=(0,l.getVariableValue)(i,t.current);void 0!==r&&(e[n]=r),n===e.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!s.positionalKeys.has(n)||2!==e.length)return;let[i,r]=e,o=(0,a.findDimensionValueType)(i),c=(0,a.findDimensionValueType)(r);if((0,u.containsCSSVariable)(i)!==(0,u.containsCSSVariable)(r)&&d.positionalValues[n]){this.needsMeasurement=!0;return}if(o!==c)if((0,d.isNumOrPxType)(o)&&(0,d.isNumOrPxType)(c))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else d.positionalValues[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&n.push(t);n.length&&function(e,t,n){let i,r=0;for(;r<e.length&&!i;){let t=e[r];"string"==typeof t&&!T.has(t)&&(0,x.analyseComplexValue)(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=P(n,i)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=d.positionalValues[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let i=t[t.length-1];void 0!==i&&e.getValue(n,i).jump(i,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let i=e.getValue(t);i&&i.jump(this.measuredOrigin,!1);let r=n.length-1,o=n[r];n[r]=d.positionalValues[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
8h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}let C=e=>1e3*e,M=e=>e/1e3;e.s(["millisecondsToSeconds",0,M,"secondsToMilliseconds",0,C],63074);var F=e.i(72590);function I(e,t){-1===e.indexOf(t)&&e.push(t)}function O(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}e.s(["addUniqueItem",0,I,"removeItem",0,O],33887);class k{constructor(){this.subscriptions=[]}add(e){return I(this.subscriptions,e),()=>O(this.subscriptions,e)}notify(e,t,n){let i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](e,t,n);else for(let r=0;r<i;r++){let i=this.subscriptions[r];i&&i(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}e.s(["SubscriptionManager",0,k],70596);var A=e.i(65566),D=e.i(60830);function L(e,t,n){t.startsWith("--")?e.style.setProperty(t,n):e.style[t]=n}function V(e){let t;return()=>(void 0===t&&(t=e()),t)}e.s(["setStyle",0,L],94581),e.s(["memo",0,V],60900);let B={};function N(e,t){let n=V(e);return()=>B[t]??n()}let j=N(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),H=N(()=>void 0!==window.ViewTimeline,"viewTimeline");e.s(["supportsScrollTimeline",0,j,"supportsViewTimeline",0,H],30551);let W=e=>null!==e;function _(e,{repeat:t,repeatType:n="loop"},i,r=1){let o=e.filter(W),s=r<0||t&&"loop"!==n&&t%2==1?0:o.length-1;return s&&void 0!==i?i:o[s]}e.s(["getFinalKeyframe",0,_],14229);class z{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}e.s(["WithPromise",0,z],79294);let U=e=>Array.isArray(e)&&"number"==typeof e[0];e.s(["isBezierDefinition",0,U],60855);let K=N(()=>{try{document.createElement("div").animate({opacity:0}
8,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),$=(e,t,n=10)=>{let i="",r=Math.max(Math.round(t/n),2);for(let t=0;t<r;t++)i+=Math.round(1e4*e(t/(r-1)))/1e4+", ";return`linear(${i.substring(0,i.length-2)})`};e.s(["generateLinearEasing",0,$],56512);let G=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,q={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:G([0,.65,.55,1]),circOut:G([.55,0,1,.45]),backIn:G([.31,.01,.66,-.59]),backOut:G([.33,1.53,.69,.99])};function Y(e){return"function"==typeof e&&"applyToOptions"in e}e.s(["isGenerator",0,Y],97307);class X extends z{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:n,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:s,onComplete:a}=e;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=e,(0,A.invariant)("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return Y(e)&&K()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:i=0,duration:r=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},u){let c={[t]:n};l&&(c.offset=l);let d=function e(t,n){if(t)return"function"==typeof t?K()?$(t,n):"ease-out":U(t)?G(t):Array.isArray(t)?t.map(t=>e(t,n)||q.easeOut):q[t]}(a,r);Array.isArray(d)&&(c.easing=d);let f={delay:i,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(c,f)}(t,n,i,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let e=_(i,this.options,s,this.speed);this.updateMotionValue&&this.updateMotionValue(e),L(t,n,e),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return M(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+M(e)}get time(){return M(Number(this.animation.currentTime)||0)}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=C(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:i}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&j())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),D.noop):i(this)}}e.s(["NativeAnimation",0,X],68e3);let Q=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);e.s(["acceleratedValues",0,Q],62118);let{schedule:Z,cancel:J}=(0,e.i(51571).createRenderBatcher)(queueMicrotask,!1);e.s(["cancelMicrotask",0,J,"microtask",0,Z],60140);var ee=e.i(46791);function et(){t=void 0}let en={now:()=>(void 0===t&&en.set(f.frameData.isProcessing||ee.MotionGlobalConfig.useManualTiming?f.frameData.timestamp:performance.now()),t),set:e=>{t=e,queueMicrotask(et)}};e.s(["time",0,en],96173);let ei=(e,t)=>t?1e3/t*e:0;e.s(["velocityPerSecond",0,ei],25791);let er={current:void 0};class eo{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=en.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=en.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new k);let n=this.events[e].add(t);return"change"===e?()=>{n(),f.frame.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}
8setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return er.current&&er.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=en.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return ei(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function es(e,t){return new eo(e,t)}e.s(["collectMotionValues",0,er,"motionValue",0,es],86427);var ea=e.i(79444),el=e.i(84061);let eu=[...a.dimensionValueTypes,ea.color,x.complex],ec=new WeakMap;function ed(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function ef(e){return"string"==typeof e||Array.isArray(e)}e.s(["isAnimationControls",0,ed],85983),e.s(["isVariantLabel",0,ef],32525);let ep=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eh=["initial",...ep];function em(e){return ed(e.animate)||eh.some(t=>ef(e[t]))}function ev(e){return!!(em(e)||e.variants)}e.s(["variantPriorityOrder",0,ep,"variantProps",0,eh],6840),e.s(["isControllingVariants",0,em,"isVariantNode",0,ev],87576);let eg={current:null},ey={current:!1},eb="u">typeof window;function ex(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function eE(e,t,n,i){if("function"==typeof t){let[r,o]=ex(i);t=t(void 0!==n?n:e.custom,r,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[r,o]=ex(i);t=t(void 0!==n?n:e.custom,r,o)}return t}e.s(["resolveVariantFromProps",0,eE],86579);let eS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ew={};class eP{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:i,skipAnimations:r,blockInitialAnimation:s,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=b,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=en.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,f.frame.render(this.render,!1,!0))};const{latestValues:u,renderState:c}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=t.initial?{...u}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=r,this.options=l,this.blockInitialAnimation=!!s,this.isControllingVariants=em(t),this.isVariantNode=ev(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:d,...p}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in p){const t=p[e];void 0!==u[e]&&(0,o.isMotionValue)(t)&&t.set(u[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,ec.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
8h((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(ey.current||function(){if(ey.current=!0,eb)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>eg.current=e.matches;e.addEventListener("change",t),t()}else eg.current=!1}(),this.shouldReduceMotion=eg.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),(0,f.cancelFrame)(this.notifyUpdate),(0,f.cancelFrame)(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let i;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Q.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:i,times:r,ease:o,duration:s}=t.accelerate,a=new X({element:this.current,name:e,keyframes:i,times:r,ease:o,duration:C(s)}),l=n(a);this.valueSubscriptions.set(e,()=>{l(),a.cancel()});return}let r=n.transformProps.has(e);r&&this.onBindTransform&&this.onBindTransform();let o=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&f.frame.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{o(),i&&i()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in ew){let t=ew[e];if(!t)continue;let{isEnabled:n,Feature:i}=t;if(!this.features[e]&&i&&n(this.props)&&(this.features[e]=new i(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,r.createBox)()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<eS.length;t++){let n=eS[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i=e["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(e,t,n){for(let i in t){let r=t[i],s=n[i];if((0,o.isMotionValue)(r))e.addValue(i,r);else if((0,o.isMotionValue)(s))e.addValue(i,es(r,{owner:e}));else if(s!==r)if(e.hasValue(i)){let t=e.getValue(i);!0===t.liveStyle?t.jump(r):t.hasAnimated||t.set(r)}else{let t=e.getStaticValue(i);e.addValue(i,es(void 0!==t?t:r,{owner:e}))}}for(let i in n)void 0===t[i]&&e.removeValue(i);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=es(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=n){let i;if("string"==typeof n&&((0,F.isNumericalString)(n)||(i=n,/^0[^.\s]+$/u.test(i))))n=parseFloat(n);else{let i;i=n,!eu.find((0,el.testValueType)(i))&&x.complex.test(t)&&(n=P(e,t))}this.setBaseTarget(e,(0,o.isMotionValue)(n)?n.get():n)}return(0,o.isMotionValue)(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let i=eE(this.props,n,this.presenceContext?.custom);i&&(t=i[e])}if(n&&void 0!==t)return t;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||(0,o.isMotionValue)(i)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new k),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Z.render(this.render)}}e.s(["VisualElement",0,eP,"getFeatureDefinitions",0,function(){return ew},"setFeatureDefinitions",0,function(e){ew=e}],17218);class eT extends eP{constructor(){super(...arguments),this.KeyframeResolver=R}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;(0,o.isMotionValue)(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function eR(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}e.s(["camelToDash",0,eR],93787);let eC=(e,t)=>t&&"number"==typeof e?t.transform(e):e;var eM=e.i(34929);let eF={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eI=n.transformPropOrder.length;function eO(e,t,i){let{style:r,vars:o,transformOrigin:s}=e,a=!1,l=!1;for(let e in t){let i=t[e];if(n.transformProps.has(e)){a=!0;continue}if((0,u.isCSSVariableName)(e)){o[e]=i;continue}{let t=eC(i,eM.numberValueTypes[e]);e.startsWith("origin")?(l=!0,s[e]=t):r[e]=t}}if(!t.transform&&(a||i?r.transform=function(e,t,i){let r="",o=!0;for(let s=0;s<eI;s++){let a=n.transformPropOrder[s],l=e[a];if(void 0===l)continue;let u=!0;
8if("number"==typeof l)u=l===+!!a.startsWith("scale");else{let e=parseFloat(l);u=a.startsWith("scale")?1===e:0===e}if(!u||i){let e=eC(l,eM.numberValueTypes[a]);if(!u){o=!1;let t=eF[a]||a;r+=`${t}(${e}) `}i&&(t[a]=e)}}let s=e.pathRotation;return s&&(o=!1,r+=`rotate(${eC(s,eM.numberValueTypes.pathRotation)}) `),r=r.trim(),i?r=i(t,o?"":r):o&&(r="none"),r}(t,e.transform,i):r.transform&&(r.transform="none")),l){let{originX:e="50%",originY:t="50%",originZ:n=0}=s;r.transformOrigin=`${e} ${t} ${n}`}}e.s(["buildHTMLStyles",0,eO],44947);let ek={offset:"stroke-dashoffset",array:"stroke-dasharray"},eA={offset:"strokeDashoffset",array:"strokeDasharray"},eD=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function eL(e,{attrX:t,attrY:n,attrScale:i,pathLength:r,pathSpacing:o=1,pathOffset:s=0,...a},l,u,c){if(eO(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of(d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=c?.transformBox??"fill-box",delete d.transformBox),eD))void 0!==d[e]&&(f[e]=d[e],delete d[e]);void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==i&&(d.scale=i),void 0!==r&&function(e,t,n=1,i=0,r=!0){e.pathLength=1;let o=r?ek:eA;e[o.offset]=`${-i}`,e[o.array]=`${t} ${n}`}(d,r,o,s,!1)}e.s(["buildSVGAttrs",0,eL],81261);let eV=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),eB=e=>"string"==typeof e&&"svg"===e.toLowerCase();function eN(e,{style:t,vars:n},i,r){let o,s=e.style;for(o in t)s[o]=t[o];for(o in r?.applyProjectionStyles(s,i),n)s.setProperty(o,n[o])}e.s(["isSVGTag",0,eB],99951);let ej=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];e.s(["cornerRadiusProps",0,ej],95051);var eH=e.i(65091);function eW(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let e_={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!eH.px.test(e))return e;else e=parseFloat(e);let n=eW(e,t.target.x),i=eW(e,t.target.y);return`${n}% ${i}%`}},ez=(e,t,n)=>e+(t-e)*n;e.s(["mixNumber",0,ez],706);let eU={borderRadius:{...e_,applyTo:[...ej]},borderTopLeftRadius:e_,borderTopRightRadius:e_,borderBottomLeftRadius:e_,borderBottomRightRadius:e_,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let i=x.complex.parse(e);if(i.length>5)return e;let r=x.complex.createTransformer(e),o=+("number"!=typeof i[0]),s=n.x.scale*t.x,a=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=a;let l=ez(s,a,.5);return"number"==typeof i[2+o]&&(i[2+o]/=l),"number"==typeof i[3+o]&&(i[3+o]/=l),r(i)}}};function eK(e,{layout:t,layoutId:i}){return n.transformProps.has(e)||e.startsWith("origin")||(t||void 0!==i)&&(!!eU[e]||"opacity"===e)}function e$(e,t,n){let i=e.style,r=t?.style,s={};if(!i)return s;for(let t in i)((0,o.isMotionValue)(i[t])||r&&(0,o.isMotionValue)(r[t])||eK(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(s[t]=i[t]);return s}function eG(e,t,i){let r=e$(e,t,i);for(let i in e)((0,o.isMotionValue)(e[i])||(0,o.isMotionValue)(t[i]))&&(r[-1!==n.transformPropOrder.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]);return r}e.s(["scaleCorrectors",0,eU],24463),e.s(["isForcedMotionValue",0,eK],30789),e.s(["scrapeMotionValuesFromProps",0,e$],84049),e.s(["scrapeMotionValuesFromProps",0,eG],67926);class eq extends eT{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=r.createBox}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(n.transformProps.has(t)){let e=(0,i.getDefaultValueType)(t);return e&&e.default||0}return t=eV.has(t)?t:eR(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return eG(e,t,n)}
8build(e,t,n){eL(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,i){for(let n in eN(e,t,void 0,i),t.attrs)e.setAttribute(eV.has(n)?n:eR(n),t.attrs[n])}mount(e){this.isSVGTag=eB(e.tagName),super.mount(e)}}var eY=e.i(81296);function eX({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function eQ(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function eZ(e){return void 0===e||1===e}function eJ({scale:e,scaleX:t,scaleY:n}){return!eZ(e)||!eZ(t)||!eZ(n)}function e0(e){return eJ(e)||e1(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function e1(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function e5(e,t,n){return n+t*(e-n)}function e4(e,t,n,i,r){return void 0!==r&&(e=e5(e,r,i)),e5(e,n,i)+t}function e2(e,t=0,n=1,i,r){e.min=e4(e.min,t,n,i,r),e.max=e4(e.max,t,n,i,r)}function e7(e,{x:t,y:n}){e2(e.x,t.translate,t.scale,t.originPoint),e2(e.y,n.translate,n.scale,n.originPoint)}function e3(e,t){e.min+=t,e.max+=t}function e6(e,t,n,i,r=.5){let o=ez(e.min,e.max,r);e2(e,t,n,o,i)}function e8(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function e9(e,t,n){let i=n??e;e6(e.x,e8(t.x,i.x),t.scaleX,t.scale,t.originX),e6(e.y,e8(t.y,i.y),t.scaleY,t.scale,t.originY)}function te(e,t){return eX(eQ(e.getBoundingClientRect(),t))}e.s(["convertBoundingBoxToBox",0,eX,"convertBoxToBoundingBox",0,function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}},"transformBoxPoints",0,eQ],27677),e.s(["has2DTranslate",0,e1,"hasScale",0,eJ,"hasTransform",0,e0],77777),e.s(["applyBoxDelta",0,e7,"applyTreeDeltas",0,function(e,t,n,i=!1){let r,o,s=n.length;if(s){t.x=t.y=1;for(let a=0;a<s;a++){o=(r=n[a]).projectionDelta;let{visualElement:s}=r.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(e3(e.x,-r.scroll.offset.x),e3(e.y,-r.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,e7(e,o)),i&&e0(r.latestValues)&&e9(e,r.latestValues,r.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}},"scalePoint",0,e5,"transformBox",0,e9,"translateAxis",0,e3],35636),e.s(["measurePageBox",0,function(e,t,n){let i=te(e,n),{scroll:r}=t;return r&&(e3(i.x,r.offset.x),e3(i.y,r.offset.y)),i},"measureViewportBox",0,te],53689);class tt extends eT{constructor(){super(...arguments),this.type="html",this.renderInstance=eN}mount(e){(0,A.invariant)(!!e.style,"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),super.mount(e)}readValueFromInstance(e,t){if(n.transformProps.has(t))return this.projection?.isProjecting?(0,eY.defaultTransformValue)(t):(0,eY.readTransformValue)(e,t);{let n=window.getComputedStyle(e),i=((0,u.isCSSVariableName)(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return te(e,t)}build(e,t,n){eO(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return e$(e,t,n)}}var tn=e.i(71645);let ti=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function tr(e){if("string"!=typeof e||e.includes("-"));else if(ti.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}e.s(["isSVGComponent",0,tr],44966),e.s(["createDomVisualElement",0,(e,t)=>t.isSVG??tr(e)?new eq(t):new tt(t,{allowProjection:e!==tn.Fragment})],54505)},74008,e=>{"use strict";var t=e.i(71645);let n="u">typeof window?t.useLayoutEffect:t.useEffect;e.s(["useIsomorphicLayoutEffect",0,n],74008)},87022,60830,46791,51571,e=>{"use strict";let t=e=>e;e.s(["noop",0,t],60830);let n={};e.s(["MotionGlobalConfig",0,n],46791);let i=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function r(e,t){let r=!1,o=!0,s={delta:0,timestamp:0,isProcessing:!1},a=()=>r=!0,l=i.reduce((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,i=!1,r=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1};function a(t){o.has(t)&&(l.schedule(t),e()),t(s)}let l={schedule:(e,r=!1,s=!1)=>{let a=s&&i?t:n;return r&&o.add(e),a.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{if(s=e,i){r=!0;return}i=!0;let o=t;t=n,n=o,t.forEach(a),t.clear(),i=!1,r&&(r=!1,l.process(e))}};return l}(a),e),{}),{setup:u,read:c,resolveKeyframes:d,preUpdate:f,update:p,preRender:h,render:m,postRender:v}=l,g=()=>{let i=n.useManualTiming,a=i?s.timestamp:performance.now();r=!1,i||(s.delta=o?1e3/60:Math.max(Math.min(a-s.timestamp,40),1)),s.timestamp=a,s.isProcessing=!0,u.process(s),c.process(s),d.process(s),f.process(s),p.process(s),h.process(s),m.process(s),v.process(s),s.isProcessing=!1,r&&t&&(o=!1,e(g))};return{schedule:i.reduce((t,n)=>{let i=l[n];return t[n]=(t,n=!1,a=!1)=>(!r&&(r=!0,o=!0,s.isProcessing||e(g)),i.schedule(t,n,a)),t},{}),cancel:e=>{for(let t=0;t<i.length;t++)l[i[t]].cancel(e)},state:s,steps:l}}e.s(["createRenderBatcher",0,r],51571);let{schedule:o,cancel:s,state:a,steps:l}=r("u">typeof requestAnimationFrame?requestAnimationFrame:t,!0);e.s(["cancelFrame",0,s,"frame",0,o,"frameData",0,a,"frameSteps",0,l],87022)},57788,76959,66820,63011,65091,22660,79444,69577,8792,19991,34929,3973,30162,27228,64440,84061,77942,65566,72590,19928,84015,11485,81296,44493,e=>{"use strict";let t=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],n=new Set([...t,"pathRotation"]);e.s(["transformPropOrder",0,t,"transformProps",0,n],57788);let i=(e,t,n)=>n>t?t:n<e?e:n;
8e.s(["clamp",0,i],76959);let r={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},o={...r,transform:e=>i(0,1,e)},s={...r,default:1},a=e=>Math.round(1e5*e)/1e5,l=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,u=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,c=(e,t)=>n=>!!("string"==typeof n&&u.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),d=(e,t,n)=>i=>{if("string"!=typeof i)return i;let[r,o,s,a]=i.match(l);return{[e]:parseFloat(r),[t]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},f={...r,transform:e=>Math.round(i(0,255,e))},p={test:c("rgb","red"),parse:d("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+f.transform(e)+", "+f.transform(t)+", "+f.transform(n)+", "+a(o.transform(i))+")"};e.s(["rgba",0,p],66820);let h={test:c("#"),parse:function(e){let t="",n="",i="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,i+=i,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}},transform:p.transform};e.s(["hex",0,h],63011);let m=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),v=m("deg"),g=m("%"),y=m("px"),b=m("vh"),x=m("vw"),E={...g,parse:e=>g.parse(e)/100,transform:e=>g.transform(100*e)};e.s(["degrees",0,v,"percent",0,g,"progressPercentage",0,E,"px",0,y,"vh",0,b,"vw",0,x],65091);let S={test:c("hsl","hue"),parse:d("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+g.transform(a(t))+", "+g.transform(a(n))+", "+a(o.transform(i))+")"};e.s(["hsla",0,S],22660);let w={test:e=>p.test(e)||h.test(e)||S.test(e),parse:e=>p.test(e)?p.parse(e):S.test(e)?S.parse(e):h.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?p.transform(e):S.transform(e),getAnimatableNone:e=>{let t=w.parse(e);return t.alpha=0,w.transform(t)}};e.s(["color",0,w],79444);let P=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,T="number",R="color",C=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function M(e){let t=e.toString(),n=[],i={color:[],number:[],var:[]},r=[],o=0,s=t.replace(C,e=>(w.test(e)?(i.color.push(o),r.push(R),n.push(w.parse(e))):e.startsWith("var(")?(i.var.push(o),r.push("var"),n.push(e)):(i.number.push(o),r.push(T),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:s,indexes:i,types:r}}function F({split:e,types:t}){let n=e.length;return i=>{let r="";for(let o=0;o<n;o++)if(r+=e[o],void 0!==i[o]){let e=t[o];e===T?r+=a(i[o]):e===R?r+=w.transform(i[o]):r+=i[o]}return r}}let I={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(l)?.length||0)+(e.match(P)?.length||0)>0},parse:function(e){return M(e).values},createTransformer:function(e){return F(M(e))},getAnimatableNone:function(e){let t=M(e);return F(t)(t.values.map((e,n)=>((e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof e?0:w.test(e)?w.getAnimatableNone(e):e)(e,t.split[n])))}};e.s(["analyseComplexValue",0,M,"complex",0,I],69577);let O=new Set(["brightness","contrast","saturate","opacity"]);function k(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[i]=n.match(l)||[];if(!i)return e;let r=n.replace(i,""),o=+!!O.has(t);return i!==n&&(o*=100),t+"("+o+r+")"}let A=/\b([a-z-]*)\(.*?\)/gu,D={...I,getAnimatableNone:e=>{let t=e.match(A);return t?t.map(k).join(" "):e}};e.s(["filter",0,D],8792);let L={...I,getAnimatableNone:e=>{let t=I.parse(e);return I.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}};e.s(["mask",0,L],19991);let V={...r,transform:Math.round},B={borderWidth:y,borderTopWidth:y,borderRightWidth:y,borderBottomWidth:y,borderLeftWidth:y,borderRadius:y,borderTopLeftRadius:y,borderTopRightRadius:y,borderBottomRightRadius:y,borderBottomLeftRadius:y,width:y,maxWidth:y,height:y,maxHeight:y,top:y,right:y,bottom:y,left:y,inset:y,insetBlock:y,insetBlockStart:y,insetBlockEnd:y,insetInline:y,insetInlineStart:y,insetInlineEnd:y,padding:y,paddingTop:y,paddingRight:y,paddingBottom:y,paddingLeft:y,paddingBlock:y,paddingBlockStart:y,paddingBlockEnd:y,paddingInline:y,paddingInlineStart:y,paddingInlineEnd:y,margin:y,marginTop:y,marginRight:y,marginBottom:y,marginLeft:y,marginBlock:y,marginBlockStart:y,marginBlockEnd:y,marginInline:y,marginInlineStart:y,marginInlineEnd:y,fontSize:y,backgroundPositionX:y,backgroundPositionY:y,rotate:v,pathRotation:v,rotateX:v,rotateY:v,rotateZ:v,scale:s,scaleX:s,scaleY:s,scaleZ:s,skew:v,skewX:v,skewY:v,distance:y,translateX:y,translateY:y,translateZ:y,x:y,y:y,z:y,perspective:y,transformPerspective:y,opacity:o,originX:E,originY:E,originZ:y,zIndex:V,fillOpacity:o,strokeOpacity:o,numOctaves:V};e.s(["numberValueTypes",0,B],34929);let N={...B,color:w,backgroundColor:w,outlineColor:w,fill:w,stroke:w,borderColor:w,borderTopColor:w,borderRightColor:w,borderBottomColor:w,borderLeftColor:w,filter:D,WebkitFilter:D,mask:L,WebkitMask:L};e.s(["getDefaultValueType",0,e=>N[e]],3973);let j=()=>({translate:0,scale:1,origin:0,originPoint:0}),H=()=>({min:0,max:0});e.s(["createBox",0,()=>({x:H(),y:H()}),"createDelta",0,()=>({x:j(),y:j()})],30162),e.s(["isMotionValue",0,e=>!!(e&&e.getVelocity)],27228);let W=new Set(["width","height","top","left","right","bottom",...t]);e.s(["positionalKeys",0,W],64440);let _=e=>t=>t.test(e);e.s(["testValueType",0,_],84061);let z=[r,y,g,v,x,b,{test:e=>"auto"===e,parse:e=>e}];e.s(["dimensionValueTypes",0,z,"findDimensionValueType",0,e=>z.find(_(e))],77942);var U=e.i(47167);let K=()=>{};U.default,e.s(["invariant",0,K,"warning",0,()=>{}],65566);let $=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);e.s(["isNumericalString",0,$],72590);let G=e=>t=>"string"==typeof t&&t.startsWith(e),q=G("--"),Y=G("var(--"),X=e=>!!Y(e)&&Q.test(e.split("/*")[0].trim()),Q=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;e.s(["containsCSSVariable",0,function(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")},"isCSSVariableName",0,q,"isCSSVariableToken",0,X],19928);let Z=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;e.s(["getVariableValue",0,function e(t,n,i=1){K(`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[r,o]=function(e){let t=Z.exec(e);if(!t)return[,];let[,n,i,r]=t;return[`--${n??i}`,r]}(t);if(!r)return;let s=window.getComputedStyle(n).getPropertyValue(r);if(s){let e=s.trim();return $(e)?parseFloat(e):e}return X(o)?e(o,n,i+1):o}
8],84015),e.s(["fillWildcards",0,function(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}],11485);let J=e=>180*e/Math.PI,ee=e=>en(J(Math.atan2(e[1],e[0]))),et={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ee,rotateZ:ee,skewX:e=>J(Math.atan(e[1])),skewY:e=>J(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},en=e=>((e%=360)<0&&(e+=360),e),ei=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),er=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),eo={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ei,scaleY:er,scale:e=>(ei(e)+er(e))/2,rotateX:e=>en(J(Math.atan2(e[6],e[5]))),rotateY:e=>en(J(Math.atan2(-e[2],e[0]))),rotateZ:ee,rotate:ee,skewX:e=>J(Math.atan(e[4])),skewY:e=>J(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function es(e){return+!!e.includes("scale")}function ea(e,t){let n,i;if(!e||"none"===e)return es(t);let r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)n=eo,i=r;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=et,i=t}if(!i)return es(t);let o=n[t],s=i[1].split(",").map(el);return"function"==typeof o?o(s):s[o]}function el(e){return parseFloat(e.trim())}e.s(["defaultTransformValue",0,es,"parseValueFromTransform",0,ea,"readTransformValue",0,(e,t)=>{let{transform:n="none"}=getComputedStyle(e);return ea(n,t)}],81296);let eu=new Set(["x","y","z"]),ec=t.filter(e=>!eu.has(e)),ed={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:i})=>{let r=e.max-e.min;return"border-box"===i?r:r-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:i})=>{let r=e.max-e.min;return"border-box"===i?r:r-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ea(t,"x"),y:(e,{transform:t})=>ea(t,"y")};ed.translateX=ed.x,ed.translateY=ed.y,e.s(["isNumOrPxType",0,e=>e===r||e===y,"positionalValues",0,ed,"removeNonTranslationalTransform",0,function(e){let t=[];return ec.forEach(n=>{let i=e.getValue(n);void 0!==i&&(t.push([n,i.get()]),i.set(+!!n.startsWith("scale")))}),t}],44493)},22016,(e,t,n)=>{"use strict";e.i(47167),Object.defineProperty(n,"__esModule",{value:!0});var i={default:function(){return g},useLinkStatus:function(){return b}};for(var r in i)Object.defineProperty(n,r,{enumerable:!0,get:i[r]});let o=e.r(51836),s=e.r(43476),a=o._(e.r(71645)),l=e.r(95057),u=e.r(8372),c=e.r(18581),d=e.r(18967),f=e.r(5550),p=e.r(88540),h=e.r(91949),m=e.r(73668),v=e.r(9396);function g(t){var n;let i,r,o,[g,b]=(0,a.useOptimistic)(h.IDLE_LINK_STATUS),x=(0,a.useRef)(null),{href:E,as:S,children:w,prefetch:P=null,passHref:T,replace:R,shallow:C,scroll:M,onClick:F,onMouseEnter:I,onTouchStart:O,legacyBehavior:k=!1,onNavigate:A,transitionTypes:D,ref:L,unstable_dynamicOnHover:V,...B}=t;i=w,k&&("string"==typeof i||"number"==typeof i)&&(i=(0,s.jsx)("a",{children:i}));let N=a.default.useContext(u.AppRouterContext),j=!1!==P,H=!1===P?"none":!0===P?"full":"auto",W="none"!==H?"auto"===H?v.FetchStrategy.PPR:v.FetchStrategy.Full:v.FetchStrategy.PPR,_="string"==typeof(n=S||E)?n:(0,l.formatUrl)(n);if(k){if(i?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});r=a.default.Children.only(i)}let z=k?r&&"object"==typeof r&&r.ref:L,U,K=a.default.useCallback(e=>(null!==N&&(x.current=(0,h.mountLinkInstance)(e,_,N,W,j,b,U)),()=>{x.current&&((0,h.unmountLinkForCurrentNavigation)(x.current),x.current=null),(0,h.unmountPrefetchableInstance)(e)}),[j,_,N,W,b,U]),$={ref:(0,c.useMergedRef)(K,z),onClick(t){k||"function"!=typeof F||F(t),k&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(t),!N||t.defaultPrevented||function(t,n,i,r,o,s,l,u="none"){if("u">typeof window){let c,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;
8if(!(0,m.isLocalURL)(n)){r&&(t.preventDefault(),location.replace(n));return}if(t.preventDefault(),s){let e=!1;if(s({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:f}=e.r(99781);a.default.startTransition(()=>{f(n,r?"replace":"push",!1===o?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,i.current,l,u)})}}(t,_,x,R,M,A,D,H)},onMouseEnter(e){k||"function"!=typeof I||I(e),k&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),N&&j&&(0,h.onNavigationIntent)(e.currentTarget,!0===V)},onTouchStart:function(e){k||"function"!=typeof O||O(e),k&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),N&&j&&(0,h.onNavigationIntent)(e.currentTarget,!0===V)}};return(0,d.isAbsoluteUrl)(_)?$.href=_:k&&!T&&("a"!==r.type||"href"in r.props)||($.href=(0,f.addBasePath)(_)),o=k?a.default.cloneElement(r,$):(0,s.jsx)("a",{...B,...$,children:i}),(0,s.jsx)(y.Provider,{value:g,children:o})}let y=(0,a.createContext)(h.IDLE_LINK_STATUS),b=()=>(0,a.useContext)(y);("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},18581,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"useMergedRef",{enumerable:!0,get:function(){return r}});let i=e.r(71645);function r(e,t){let n=(0,i.useRef)(null),r=(0,i.useRef)(null);return(0,i.useCallback)(i=>{if(null===i){let e=n.current;e&&(n.current=null,e());let t=r.current;t&&(r.current=null,t())}else e&&(n.current=o(e,i)),t&&(r.current=o(t,i))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},73668,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"isLocalURL",{enumerable:!0,get:function(){return o}});let i=e.r(18967),r=e.r(52817);function o(e){if(!(0,i.isAbsoluteUrl)(e))return!0;try{let t=(0,i.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,r.hasBasePath)(n.pathname)}catch(e){return!1}}},98183,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i={assign:function(){return l},searchParamsToUrlQuery:function(){return o},urlQueryToSearchParams:function(){return a}};for(var r in i)Object.defineProperty(n,r,{enumerable:!0,get:i[r]});function o(e){let t={};for(let[n,i]of e.entries()){let e=t[n];void 0===e?t[n]=i:Array.isArray(e)?e.push(i):t[n]=[e,i]}return t}function s(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function a(e){let t=new URLSearchParams;for(let[n,i]of Object.entries(e))if(Array.isArray(i))for(let e of i)t.append(n,s(e));else t.set(n,s(i));return t}function l(e,...t){for(let n of t){for(let t of n.keys())e.delete(t);for(let[t,i]of n.entries())e.append(t,i)}return e}},95057,(e,t,n)=>{"use strict";e.i(47167),Object.defineProperty(n,"__esModule",{value:!0});var i={formatUrl:function(){return a},formatWithValidation:function(){return u},urlObjectKeys:function(){return l}};for(var r in i)Object.defineProperty(n,r,{enumerable:!0,get:i[r]});let o=e.r(51836)._(e.r(98183)),s=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:n}=e,i=e.protocol||"",r=e.pathname||"",a=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:n&&(u=t+(~n.indexOf(":")?`[${n}]`:n),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(o.urlQueryToSearchParams(l)));let c=e.search||l&&`?${l}`||"";return i&&!i.endsWith(":")&&(i+=":"),e.slashes||(!i||s.test(i))&&!1!==u?(u="//"+(u||""),r&&"/"!==r[0]&&(r="/"+r)):u||(u=""),a&&"#"!==a[0]&&(a="#"+a),c&&"?"!==c[0]&&(c="?"+c),r=r.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${i}${u}${r}${c}${a}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return a(e)}},18967,(e,t,n)=>{"use strict";e.i(47167),Object.defineProperty(n,"__esModule",{value:!0});var i={DecodeError:function(){return g},MiddlewareNotFoundError:function(){return E},MissingStaticPage:function(){return x},NormalizeError:function(){return y},PageNotFoundError:function(){return b},SP:function(){return m},ST:function(){return v},WEB_VITALS:function(){return o},execOnce:function(){return s},getDisplayName:function(){return d},getLocationOrigin:function(){return u},getURL:function(){return c},isAbsoluteUrl:function(){return l},isResSent:function(){return f},loadGetInitialProps:function(){return h}
8,normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return S}};for(var r in i)Object.defineProperty(n,r,{enumerable:!0,get:i[r]});let o=["CLS","FCP","FID","INP","LCP","TTFB"];function s(e){let t,n=!1;return(...i)=>(n||(n=!0,t=e(...i)),t)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&a.test(e)};function u(){let{protocol:e,hostname:t,port:n}=window.location;return`${e}//${t}${n?":"+n:""}`}function c(){let{href:e}=window.location,t=u();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function h(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let i=await e.getInitialProps(t);if(n&&f(n))return i;if(!i)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${i}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return i}let m="u">typeof performance,v=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class g extends Error{}class y extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class x extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class E extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function S(e){return JSON.stringify({message:e.message,stack:e.stack})}},14595,(e,t,n)=>{"use strict";var i=e.r(71645),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=i.useSyncExternalStore,s=i.useRef,a=i.useEffect,l=i.useMemo,u=i.useDebugValue;n.useSyncExternalStoreWithSelector=function(e,t,n,i,c){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=o(e,(d=l(function(){function e(e){if(!a){if(a=!0,o=e,e=i(e),void 0!==c&&f.hasValue){var t=f.value;if(c(t,e))return s=t}return s=e}if(t=s,r(o,e))return t;var n=i(e);return void 0!==c&&c(t,n)?(o=e,t):(o=e,s=n)}var o,s,a=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,i,c]))[0],d[1]);return a(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}},13027,(e,t,n)=>{"use strict";e.i(47167),t.exports=e.r(14595)},93435,68356,e=>{"use strict";var t=e.i(43476),n=e.i(29717),i=e.i(7670),r=e.i(76481),o=e.i(22016);let s=(0,e.i(71645).forwardRef)(function(e,n){return(0,t.jsx)(r.DataInteractive,{children:(0,t.jsx)(o.default,{ref:n,...e})})});e.s(["Link",0,s],68356);let a={primary:(0,i.clsx)("relative inline-flex items-center justify-center px-4 py-[calc(--spacing(2)-1px)]","rounded-full border border-transparent bg-gray-950 shadow-md","text-base font-medium whitespace-nowrap text-white","data-disabled:bg-gray-950 data-disabled:opacity-40 data-hover:bg-gray-800"),primaryPurple:(0,i.clsx)("relative inline-flex items-center justify-center px-4 py-[calc(--spacing(2)-1px)]","rounded-full border border-transparent bg-purple-950 shadow-md","text-base font-medium whitespace-nowrap text-white","data-disabled:bg-purple-950 data-disabled:opacity-40 data-hover:bg-purple-800"),secondary:(0,i.clsx)("relative inline-flex items-center justify-center px-4 py-[calc(--spacing(2)-1px)]","rounded-full border border-transparent bg-white shadow-md ring-1 ring-[#D15052]/15","after:absolute after:inset-0 after:rounded-full after:shadow-[inset_0_0_2px_1px_#ffffff4d]","text-base font-medium whitespace-nowrap text-gray-950","data-disabled:bg-white/15 data-disabled:opacity-40 data-hover:bg-white/80"),outline:(0,i.clsx)("relative inline-flex items-center justify-center px-2 py-[calc(--spacing(1.5)-1px)]","rounded-lg border border-transparent shadow-sm ring-1 ring-black/10","text-sm font-medium whitespace-nowrap text-gray-950","data-disabled:bg-transparent data-disabled:opacity-40 data-hover:bg-gray-50")};function l({children:e}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"absolute top-1/2 left-1/2 size-[max(100%,2.75rem)] -translate-x-1/2 -translate-y-1/2 [@media(pointer:fine)]:hidden","aria-hidden":"true"}),e]})}e.s(["Button",0,function({variant:e="primary",className:r,children:o,...u}){return(r=(0,i.clsx)("cursor-pointer",a[e],r),void 0===u.href)?(0,t.jsx)(n.Button,{...u,className:r,children:(0,t.jsx)(l,{children:o})}):(0,t.jsx)(s,{...u,className:r,children:(0,t.jsx)(l,{children:o})})},"TouchTarget",0,l],93435)},88760,e=>{"use strict";var t=e.i(43476),n=e.i(71645);let i=n.forwardRef(function({title:e,titleId:t,...i},r){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},i),e?n.createElement("title",{id:t},e):null,n.createElement("path",{d:"M15.98 1.804a1 1 0 0 0-1.96 0l-.24 1.192a1 1 0 0 1-.784.785l-1.192.238a1 1 0 0 0 0 1.962l1.192.238a1 1 0 0 1 .785.785l.238 1.192a1 1 0 0 0 1.962 0l.238-1.192a1 1 0 0 1 .785-.785l1.192-.238a1 1 0 0 0 0-1.962l-1.192-.238a1 1 0 0 1-.785-.785l-.238-1.192ZM6.949 5.684a1 1 0 0 0-1.898 0l-.683 2.051a1 1 0 0 1-.633.633l-2.051.683a1 1 0 0 0 0 1.898l2.051.684a1 1 0 0 1 .633.632l.683 2.051a1 1 0 0 0 1.898 0l.683-2.051a1 1 0 0 1 .633-.633l2.051-.683a1 1 0 0 0 0-1.898l-2.051-.683a1 1 0 0 1-.633-.633L6.95 5.684ZM13.949 13.684a1 1 0 0 0-1.898 0l-.184.551a1 1 0 0 1-.632.633l-.551.183a1 1 0 0 0 0 1.898l.551.183a1 1 0 0 1 .633.633l.183.551a1 1 0 0 0 1.898 0l.184-.551a1 1 0 0 1 .632-.633l.551-.183a1 1 0 0 0 0-1.898l-.551-.184a1 1 0 0 1-.633-.632l-.183-.551Z"}))});var r=e.i(7670);e.s(["Logo",0,function({className:e,invert:n=!1}){return(0,t.jsxs)("div",{className:(0,r.clsx)(e,"-mt-0.5 flex flex-initial items-center gap-2.5 font-sans text-3xl font-bold",n&&"text-neutral-300",!n&&"text-purple-950"),children:[(0,t.jsx)(i,{className:"mt-0.5 h-6 w-6"}),(0,t.jsx)("span",{children:"Kooky Clinic"})]})}],88760)},2874,e=>{"use strict";var t=e.i(43476),n=e.i(86148),i=e.i(29717),r=e.i(71645);let o=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
8currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M3 9a.75.75 0 0 1 .75-.75h16.5a.75.75 0 0 1 0 1.5H3.75A.75.75 0 0 1 3 9Zm0 6.75a.75.75 0 0 1 .75-.75h16.5a.75.75 0 0 1 0 1.5H3.75a.75.75 0 0 1-.75-.75Z",clipRule:"evenodd"}))});var s=e.i(7670),a=e.i(31178);let l=(0,r.createContext)(null);var u=e.i(87022),c=e.i(74008);let d=e=>!e.isLayoutDirty&&e.willUpdate(!1),f=({children:e,id:n,inherit:i=!0})=>{let o=(0,r.useContext)(a.LayoutGroupContext),s=(0,r.useContext)(l),[f,p]=function(){let e,t=(e=(0,r.useRef)(!1),(0,c.useIsomorphicLayoutEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),e),[n,i]=(0,r.useState)(0),o=(0,r.useCallback)(()=>{t.current&&i(n+1)},[n]);return[(0,r.useCallback)(()=>u.frame.postRender(o),[o]),n]}(),h=(0,r.useRef)(null),m=o.id||s;if(null===h.current){let e,t,r,s;(!0==(!0===(s=i))||"id"===s)&&m&&(n=n?m+"-"+n:m),h.current={id:n,group:!0===i&&o.group||(e=new Set,t=new WeakMap,{add:n=>{e.add(n),t.set(n,n.addEventListener("willUpdate",r))},remove:n=>{e.delete(n);let i=t.get(n);i&&(i(),t.delete(n)),r()},dirty:r=()=>e.forEach(d)})}}let v=(0,r.useMemo)(()=>({...h.current,forceRender:f}),[p]);return(0,t.jsx)(a.LayoutGroupContext.Provider,{value:v,children:e})};var p=e.i(46932),h=e.i(93435),m=e.i(68356),v=e.i(88760);function g({className:e="",children:n}){return(0,t.jsx)("div",{className:e,children:n})}function y({className:e="",children:n}){return(0,t.jsxs)("div",{className:(0,s.clsx)(e,"group/row relative isolate pt-[calc(--spacing(2)+1px)] last:pb-[calc(--spacing(2)+1px)]"),children:[(0,t.jsxs)("div",{"aria-hidden":"true",className:"absolute inset-y-0 left-1/2 -z-10 w-screen -translate-x-1/2",children:[(0,t.jsx)("div",{className:"absolute inset-x-0 top-0 border-t border-orange-800/5"}),(0,t.jsx)("div",{className:"absolute inset-x-0 top-2 border-t border-orange-800/5"}),(0,t.jsx)("div",{className:"absolute inset-x-0 bottom-0 hidden border-b border-orange-800/5 group-last/row:block"}),(0,t.jsx)("div",{className:"absolute inset-x-0 bottom-2 hidden border-b border-orange-800/5 group-last/row:block"})]}),n]})}function b({className:e="",children:n}){return(0,t.jsxs)("div",{className:(0,s.clsx)(e,"group/item relative"),children:[(0,t.jsx)(x,{placement:"top left",className:"hidden group-first/item:block"}),(0,t.jsx)(x,{placement:"top right"}),(0,t.jsx)(x,{placement:"bottom left",className:"hidden group-first/item:group-last/row:block"}),(0,t.jsx)(x,{placement:"bottom right",className:"hidden group-last/row:block"}),n]})}function x({className:e="",placement:n}){let[i,r]=n.split(" ");return(0,t.jsx)("svg",{viewBox:"0 0 15 15","aria-hidden":"true",className:(0,s.clsx)(e,"absolute size-[15px] fill-orange-800/10","top"===i?"-top-2":"-bottom-2","left"===r?"-left-2":"-right-2"),children:(0,t.jsx)("path",{d:"M8 0H7V7H0V8H7V15H8V8H15V7H8V0Z"})})}let E=[{href:"/careers",label:"Careers"},{href:"/contact",label:"Contact Us"}];function S(){return(0,t.jsx)("nav",{className:"relative hidden lg:flex",children:E.map(({href:e,label:n})=>(0,t.jsx)(b,{className:"relative flex",children:(0,t.jsx)(m.Link,{href:e,className:"flex items-center px-4 py-3 text-lg font-semibold tracking-wide text-purple-950 bg-blend-multiply data-hover:bg-black/[2.5%]",children:n})},e))})}function w(){return(0,t.jsx)(n.DisclosureButton,{className:"flex size-12 items-center justify-center self-center rounded-lg data-hover:bg-black/5 lg:hidden","aria-label":"Open main menu",children:(0,t.jsx)(o,{className:"size-6"})})}function P(){return(0,t.jsxs)(n.DisclosurePanel,{className:"lg:hidden",children:[(0,t.jsx)("div",{className:"flex flex-col gap-6 py-4",children:E.map(({href:e,label:n},i)=>(0,t.jsx)(p.motion.div,{initial:{opacity:0,rotateX:-90},animate:{opacity:1,rotateX:0},transition:{duration:.15,ease:"easeInOut",rotateX:{duration:.3,delay:.1*i}},children:(0,t.jsx)(m.Link,{href:e,className:"text-base font-medium text-purple-950",children:n})},e))}),(0,t.jsxs)("div",{className:"absolute left-1/2 w-screen -translate-x-1/2",children:[(0,t.jsx)("div",{className:"absolute inset-x-0 top-0 border-t border-black/5"}),(0,t.jsx)("div",{className:"absolute inset-x-0 top-2 border-t border-black/5"})]})]})}let T=(0,r.forwardRef)(function({current:e,className:n,children:r,...o},a){let l=(0,s.default)("relative flex min-w-0 items-center gap-3 rounded-lg p-2 text-left text-base/6 font-medium text-zinc-950 sm:text-sm/5","*:data-[slot=icon]:size-6 *:data-[slot=icon]:shrink-0 *:data-[slot=icon]:fill-zinc-500 sm:*:data-[slot=icon]:size-5","*:not-nth-2:last:data-[slot=icon]:ml-auto *:not-nth-2:last:data-[slot=icon]:size-5 sm:*:not-nth-2:last:data-[slot=icon]:size-4","*:data-[slot=avatar]:-m-0.5 *:data-[slot=avatar]:size-7 *:data-[slot=avatar]:[--avatar-radius:var(--radius)] *:data-[slot=avatar]:[--ring-opacity:10%] sm:*:data-[slot=avatar]:size-6","data-hover:bg-zinc-950/5 data-hover:*:data-[slot=icon]:fill-zinc-950","data-active:bg-zinc-950/5 data-active:
8*:data-[slot=icon]:fill-zinc-950","dark:text-white dark:*:data-[slot=icon]:fill-zinc-400","dark:data-hover:bg-white/5 dark:data-hover:*:data-[slot=icon]:fill-white","dark:data-active:bg-white/5 dark:data-active:*:data-[slot=icon]:fill-white");return(0,t.jsxs)("span",{className:(0,s.default)(n,"relative"),children:[e&&(0,t.jsx)(p.motion.span,{layoutId:"current-indicator",className:"absolute inset-x-2 -bottom-2.5 h-0.5 rounded-full bg-zinc-950 dark:bg-white"}),"href"in o?(0,t.jsx)(m.Link,{...o,className:l,"data-current":e?"true":void 0,ref:a,children:(0,t.jsx)(h.TouchTarget,{children:r})}):(0,t.jsx)(i.Button,{...o,className:(0,s.default)("cursor-default",l),"data-current":e?"true":void 0,ref:a,children:(0,t.jsx)(h.TouchTarget,{children:r})})]})});e.s(["Navbar",0,function({banner:e}){return(0,t.jsxs)(n.Disclosure,{as:"header",className:"pt-6 sm:pt-16",children:[(0,t.jsxs)(g,{children:[(0,t.jsxs)(y,{className:"relative flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"relative flex gap-6",children:[(0,t.jsx)(b,{className:"py-3",children:(0,t.jsx)(m.Link,{href:"/",title:"Home",children:(0,t.jsx)(v.Logo,{className:"mx-3 h-9 text-orange-800"})})}),e&&(0,t.jsx)("div",{className:"relative hidden items-center py-3 sm:flex",children:e})]}),(0,t.jsx)(S,{}),(0,t.jsx)(w,{})]}),(0,t.jsx)(y,{className:"relative flex sm:hidden",children:e})]}),(0,t.jsx)(P,{})]})},"NavbarDivider",0,function({className:e,...n}){return(0,t.jsx)("div",{"aria-hidden":"true",...n,className:(0,s.default)(e,"h-6 w-px bg-zinc-950/10 dark:bg-white/10")})},"NavbarItem",0,T,"NavbarLabel",0,function({className:e,...n}){return(0,t.jsx)("span",{...n,className:(0,s.default)(e,"truncate")})},"NavbarSection",0,function({className:e,...n}){let i=(0,r.useId)();return(0,t.jsx)(f,{id:i,children:(0,t.jsx)("div",{...n,className:(0,s.default)(e,"flex items-center gap-3")})})},"NavbarSpacer",0,function({className:e,...n}){return(0,t.jsx)("div",{"aria-hidden":"true",...n,className:(0,s.default)(e,"-ml-4 flex-1")})}],2874)}]);

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.