PageSourceSearch

https://cdn.apryse.com/4e43dd1/_next/static/chunks/07.jcyxznrxzk.js

js apryse.com collected 2026-10-02 05:19:25 UTC 150,738 bytes, 4 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,929717,e=>{"use strict";var t=e.i(429427),n=e.i(371330),o=e.i(394487),s=e.i(255743),i=e.i(601893),a=e.i(700020);let l=(0,a.forwardRefWithAs)(function(e,l){var r;let u=(0,i.useDisabled)(),{disabled:c=u||!1,autoFocus:d=!1,...p}=e,{isFocusVisible:f,focusProps:m}=(0,t.useFocusRing)({autoFocus:d}),{isHovered:v,hoverProps:h}=(0,n.useHover)({isDisabled:c}),{pressed:b,pressProps:g}=(0,o.useActivePress)({disabled:c}),x=(0,a.mergeProps)({ref:l,type:null!=(r=p.type)?r:"button",disabled:c||void 0,autoFocus:d},m,h,g),y=(0,s.useSlot)({disabled:c,hover:v,focus:f,active:b,autofocus:d});return(0,a.useRender)()({ourProps:x,theirProps:p,slot:y,defaultTag:"button",name:"Button"})});e.s(["Button",0,l])},503269,214520,e=>{"use strict";var t=e.i(271645),n=e.i(174080),o=e.i(914189);e.s(["useControllable",0,function(e,s,i){let[a,l]=(0,t.useState)(i),r=void 0!==e,u=(0,t.useRef)(r),c=(0,t.useRef)(!1),d=(0,t.useRef)(!1);return!r||u.current||c.current?r||!u.current||d.current||(d.current=!0,u.current=r,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=r,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.")),[r?e:a,(0,o.useEvent)(e=>(r||(0,n.flushSync)(()=>l(e)),null==s?void 0:s(e)))]}],503269),e.s(["useDefaultValue",0,function(e){let[n]=(0,t.useState)(e);return n}],214520)},140721,694421,e=>{"use strict";var t=e.i(271645),n=e.i(174080),o=e.i(746725);function s(e={},n=null,o=[]){for(let[a,l]of Object.entries(e))!function e(n,o,a){if(Array.isArray(a))for(let[t,s]of a.entries())e(n,i(o,t.toString()),s);else a instanceof Date?n.push([o,a.toISOString()]):"boolean"==typeof a?n.push([o,a?"1":"0"]):"string"==typeof a?n.push([o,a]):"number"==typeof a?n.push([o,`${a}`]):null==a?n.push([o,""]):function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(a)&&!(0,t.isValidElement)(a)&&s(a,o,n)}(o,i(n,a),l);return o}function i(e,t){return e?e+"["+t+"]":t}e.s(["attemptSubmit",0,function(e){var t,n;let o=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(o){for(let t of o.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(n=o.requestSubmit)||n.call(o)}},"objectToFormEntries",0,s],694421);var a=e.i(700020),l=e.i(2788);let r=(0,t.createContext)(null);function u({children:e}){let o=(0,t.useContext)(r);if(!o)return t.default.createElement(t.default.Fragment,null,e);let{target:s}=o;return s?(0,n.createPortal)(t.default.createElement(t.default.Fragment,null,e),s):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(l.Hidden,{features:l.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:i,onReset:r,overrides:d}){let[p,f]=(0,t.useState)(null),m=(0,o.useDisposables)();return(0,t.useEffect)(()=>{if(r&&p)return m.addEventListener(p,"reset",r)},[p,n,r]),t.default.createElement(u,null,t.default.createElement(c,{setForm:f,formId:n}),s(e).map(([e,o])=>t.default.createElement(l.Hidden,{features:l.HiddenFeatures.Hidden,...(0,a.compact)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:n,disabled:i,name:e,value:o,...d})})))},"FormFieldsProvider",0,function(e){let[n,o]=(0,t.useState)(null);return t.default.createElement(r.Provider,{value:{target:n}},e.children,t.default.createElement(l.Hidden,{features:l.HiddenFeatures.Hidden,ref:o}))}],140721)},24489,e=>{"use strict";var t=e.i(429427),n=e.i(371330),o=e.i(271645),s=e.i(394487),i=e.i(503269),a=e.i(214520),l=e.i(746725),r=e.i(914189),u=e.i(255743),c=e.i(601893),d=e.i(140721),p=e.i(942803),f=e.i(233538),m=e.i(694421),v=e.i(700020),h=e.i(35889),b=e.i(998348),g=e.i(722678);let x=(0,v.forwardRefWithAs)(function(e,x){let y=(0,o.useId)(),E=(0,p.useProvidedId)(),w=(0,c.useDisabled)(),{id:S=E||`headlessui-checkbox-${y}
1`,disabled:O=w||!1,autoFocus:P=!1,checked:I,defaultChecked:C,onChange:R,name:F,value:T,form:k,indeterminate:M=!1,tabIndex:j=0,...N}=e,D=(0,a.useDefaultValue)(C),[A,L]=(0,i.useControllable)(I,R,null!=D&&D),_=(0,g.useLabelledBy)(),B=(0,h.useDescribedBy)(),z=(0,l.useDisposables)(),[K,V]=(0,o.useState)(!1),H=(0,r.useEvent)(()=>{V(!0),null==L||L(!A),z.nextFrame(()=>{V(!1)})}),$=(0,r.useEvent)(e=>{if((0,f.isDisabledReactIssue7711)(e.currentTarget))return e.preventDefault();e.preventDefault(),H()}),W=(0,r.useEvent)(e=>{e.key===b.Keys.Space?(e.preventDefault(),H()):e.key===b.Keys.Enter&&(0,m.attemptSubmit)(e.currentTarget)}),G=(0,r.useEvent)(e=>e.preventDefault()),{isFocusVisible:U,focusProps:q}=(0,t.useFocusRing)({autoFocus:P}),{isHovered:Q,hoverProps:Y}=(0,n.useHover)({isDisabled:O}),{pressed:J,pressProps:X}=(0,s.useActivePress)({disabled:O}),Z=(0,v.mergeProps)({ref:x,id:S,role:"checkbox","aria-checked":M?"mixed":A?"true":"false","aria-labelledby":_,"aria-describedby":B,"aria-disabled":!!O||void 0,indeterminate:M?"true":void 0,tabIndex:O?void 0:j,onKeyUp:O?void 0:W,onKeyPress:O?void 0:G,onClick:O?void 0:$},q,Y,X),ee=(0,u.useSlot)({checked:A,disabled:O,hover:Q,focus:U,active:J,indeterminate:M,changing:K,autofocus:P}),et=(0,o.useCallback)(()=>{if(void 0!==D)return null==L?void 0:L(D)},[L,D]),en=(0,v.useRender)();return o.default.createElement(o.default.Fragment,null,null!=F&&o.default.createElement(d.FormFields,{disabled:O,data:{[F]:T||"on"},overrides:{type:"checkbox",checked:A},form:k,onReset:et}),en({ourProps:Z,theirProps:N,slot:ee,defaultTag:"span",name:"Checkbox"}))});e.s(["Checkbox",0,x])},326962,e=>{"use strict";var t=e.i(271645),n=e.i(674175),o=e.i(700020),s=e.i(929717);let i=(0,o.forwardRefWithAs)(function(e,i){let a=(0,n.useClose)();return t.default.createElement(s.Button,{ref:i,...(0,o.mergeProps)({onClick:a},e)})});e.s(["CloseButton",0,i])},436289,e=>{"use strict";var t=e.i(271645);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])}])},904016,e=>{"use strict";var t=e.i(271645);let n=t.default.forwardRef(function({children:e,freeze:n},s){let i=o(n,e);return(0,t.isValidElement)(i)?(0,t.cloneElement)(i,{ref:s}):t.default.createElement(t.default.Fragment,null,i)});function o(e,n){let[o,s]=(0,t.useState)(n);return e||o===n||s(n),e?o:n}e.s(["Frozen",0,n,"useFrozenData",0,o])},762630,e=>{"use strict";let t,n,o,s;var i=e.i(429427),a=e.i(371330),l=e.i(271645),r=e.i(174080);function u(e,t,n){let o,s=n.initialDeps??[];function i(){var i,a,l,r;let u,c;n.key&&(null==(i=n.debug)?void 0:i.call(n))&&(u=Date.now());let d=e();if(!(d.length!==s.length||d.some((e,t)=>s[t]!==e)))return o;if(s=d,n.key&&(null==(a=n.debug)?void 0:a.call(n))&&(c=Date.now()),o=t(...d),n.key&&(null==(l=n.debug)?void 0:l.call(n))){let e=Math.round((Date.now()-u)*100)/100,t=Math.round((Date.now()-c)*100)/100,o=t/16,s=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${s(t,5)} /${s(e,5)} ms`,`
2            font-size: .6rem;
3            font-weight: bold;
4            color: hsl(${Math.max(0,Math.min(120-120*o,120))}deg 100% 31%);`,null==n?void 0:n.key)}return null==(r=null==n?void 0:n.onChange)||r.call(n,o),o}return i.updateDeps=e=>{s=e},i}function c(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}e.i(247167);let d=e=>{let{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},p=e=>e,f=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),o=[];for(let e=t;e<=n;e++)o.push(e);return o},m=(e,t)=>{let n=e.scrollElement;if(!n)return;let o=e.targetWindow;if(!o)return;let s=e=>{let{width:n,height:o}=e;t({width:Math.round(n),height:Math.round(o)})};if(s(d(n)),!o.ResizeObserver)return()=>{};let i=new o.ResizeObserver(t=>{let o=()=>{let e=t[0];if(null==e?void 0:e.borderBoxSize){let t=e.borderBoxSize[0];if(t)return void s({width:t.inlineSize,height:t.blockSize})}s(d(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},v={passive:!0},h="u"<typeof window||"onscrollend"in window,b=(e,t)=>{var n,o;let s,i=e.scrollElement;if(!i)return;let a=e.targetWindow;if(!a)return;let l=0,r=e.options.useScrollendEvent&&h?()=>void 0:(n=()=>{t(l,!1)},o=e.options.isScrollingResetDelay,function(...e){a.clearTimeout(s),s=a.setTimeout(()=>n.apply(this,e),o)}),u=n=>()=>{let{horizontal:o,isRtl:s}=e.options;l=o?i.scrollLeft*(s&&-1||1):i.scrollTop,r(),t(l,n)},c=u(!0),d=u(!1);d(),i.addEventListener("scroll",c,v);let p=e.options.useScrollendEvent&&h;return p&&i.addEventListener("scrollend",d,v),()=>{i.removeEventListener("scroll",c),p&&i.removeEventListener("scrollend",d)}},g=(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"]}
vendor: 2,924 bytes, line 4
4,x=(e,{adjustments:t=0,behavior:n},o)=>{var s,i;null==(i=null==(s=o.scrollElement)?void 0:s.scrollTo)||i.call(s,{[o.options.horizontal?"left":"top"]:e+t,behavior:n})};class y{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:p,rangeExtractor:f,onChange:()=>{},measureElement:g,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=()=>{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()}))}}
4,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{let n=new Map,o=new Map;for(let s=t-1;s>=0;s--){let t=e[s];if(n.has(t.lane))continue;let i=o.get(t.lane);if(null==i||t.end>i.end?o.set(t.lane,t):t.end<i.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return o.size===this.options.lanes?Array.from(o.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=u(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,t,n,o,s)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:o,enabled:s}),{key:!1}),this.getMeasurements=u(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:o,enabled:s},i)=>{if(!s)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 a=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let l=this.measurementsCache.slice(0,a);for(let s=a;s<e;s++){let e=o(s),a=1===this.options.lanes?l[s-1]:this.getFurthestMeasurement(l,s),r=a?a.end+this.options.gap:t+n,u=i.get(e),c="number"==typeof u?u:this.options.estimateSize(s),d=r+c,p=a?a.lane:s%this.options.lanes;l[s]={index:s,start:r,size:c,end:d,key:e,lane:p}}return this.measurementsCache=l,l},{key:!1,debug:()=>this.options.debug}),this.calculateRange=u(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,o)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n,lanes:o}){let s=e.length-1;if(e.length<=o)return{startIndex:0,endIndex:s};let i=E(0,s,t=>e[t].start,n),a=i;if(1===o)for(;a<s&&e[a].end<n+t;)a++;else if(o>1){let l=Array(o).fill(0);for(;a<s&&l.some(e=>e<n+t);){let t=e[a];l[t.lane]=t.end,a++}let r=Array(o).fill(n+t);for(;i>=0&&r.some(e=>e>=n);){let t=e[i];r[t.lane]=t.start,i--}i=Math.max(0,i-i%o),a=Math.min(s,a+(o-1-a%o))}return{startIndex:i,endIndex:a}}({measurements:e,outerSize:t,scrollOffset:n,lanes:o}):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,o,s)=>null===o||null===s?[]:e({startIndex:o,endIndex:s,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{let n=this.indexFromElement(e),o=this.measurementsCache[n];if(!o)return;let s=o.key,i=this.elementsCache.get(s);i!==e&&(i&&this.observer.unobserve(i),this.observer.observe(e),this.elementsCache.set(s,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{let n=this.measurementsCache[e];if(!n)return;let o=t-(this.itemSizeCache.get(n.key)??n.size);0!==o&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(n,o,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=o,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,t)),this.notify(!1))},this.measureElement=e=>{e?this._measureElement(e,void 0):this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))})},this.getVirtualItems=u(()=>
4[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let o=0,s=e.length;o<s;o++){let s=t[e[o]];n.push(s)}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 o=this.getSize(),s=this.getScrollOffset();return"auto"===t&&(t=e>=s+o?"end":"start"),"center"===t?e+=(n-o)/2:"end"===t&&(e-=o),Math.max(Math.min(this.getTotalSize()+this.options.scrollMargin-o,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.measurementsCache[e];if(!n)return;let o=this.getSize(),s=this.getScrollOffset();if("auto"===t)if(n.end>=s+o-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=s+this.options.scrollPaddingStart))return[s,t];t="start"}let i="end"===t?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,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 o=0,s=t=>{if(!this.targetWindow)return;let o=this.getOffsetForIndex(e,t);if(!o)return void console.warn("Failed to get offset for index:",e);let[s,a]=o;this._scrollToOffset(s,{adjustments:void 0,behavior:n}),this.targetWindow.requestAnimationFrame(()=>{let t=this.getScrollOffset(),n=this.getOffsetForIndex(e,a);n?1.01>Math.abs(n[0]-t)||i(a):console.warn("Failed to get offset for index:",e)})},i=t=>{this.targetWindow&&(++o<10?this.targetWindow.requestAnimationFrame(()=>s(t)):console.warn(`Failed to scroll to index ${e} after 10 attempts.`))};s(t)},this.scrollBy=(e,{behavior:t}={})=>{"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adju
4stments:void 0,behavior:t})},this.getTotalSize=()=>{var e;let t,n=this.getMeasurements();if(0===n.length)t=this.options.paddingStart;else if(1===this.options.lanes)t=(null==(e=n[n.length-1])?void 0:e.end)??0;else{let e=Array(this.options.lanes).fill(null),o=n.length-1;for(;o>=0&&e.some(e=>null===e);){let t=n[o];null===e[t.lane]&&(e[t.lane]=t.end),o--}t=Math.max(...e.filter(e=>null!==e))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}let E=(e,t,n,o)=>{for(;e<=t;){let s=(e+t)/2|0,i=n(s);if(i<o)e=s+1;else{if(!(i>o))return s;t=s-1}}return e>0?e-1:0},w="u">typeof document?l.useLayoutEffect:l.useEffect;var S=e.i(394487),O=e.i(436289),P=e.i(503269),I=e.i(214520),C=e.i(746725),R=e.i(992704),F=e.i(914189),T=e.i(488374),k=e.i(684653),M=e.i(835696),j=e.i(941444),N=e.i(877891),D=e.i(952744),A=e.i(605083),L=e.i(157138),_=e.i(813581),B=e.i(402155),z=e.i(693456);function K(e){let t=(0,l.useRef)({value:"",selectionStart:null,selectionEnd:null});return(0,z.useEventListener)(e,"blur",e=>{let n=e.target;_.isHTMLInputElement(n)&&(t.current={value:n.value,selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})}),(0,F.useEvent)(()=>{if(!(0,B.isActiveElement)(e)&&_.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:o}=t.current;null!==n&&null!==o&&e.setSelectionRange(n,o)}t.current={value:"",selectionStart:null,selectionEnd:null}}})}var V=e.i(144279),H=e.i(101852),$=e.i(255743),W=e.i(294316),G=e.i(571616),U=e.i(83733),q=e.i(340143),Q=e.i(833633),Y=e.i(601893),J=e.i(919751),X=e.i(140721),Z=e.i(904016),ee=e.i(942803),et=e.i(233137),en=e.i(341650),eo=e.i(140407),es=e.i(103935),ei=e.i(6
45659),ea=e.i(544508),el=e.i(397701),er=e.i(309507),eu=e.i(700020),ec=e.i(35889),ed=e.i(998348),ep=e.i(722678),ef=e.i(863516),em=e.i(635307),ev=e.i(825720),eh=e.i(667310),eb=e.i(652265),eg=Object.defineProperty,ex=(e,t,n)=>{let o;return(o="symbol"!=typeof t?t+"":t)in e?eg(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,n},ey=((t=ey||{})[t.Open=0]="Open",t[t.Closed=1]="Closed",t),eE=((n=eE||{})[n.Single=0]="Single",n[n.Multi=1]="Multi",n),ew=((o=ew||{})[o.Pointer=0]="Pointer",o[o.Focus=1]="Focus",o[o.Other=2]="Other",o),eS=((s=eS||{})[s.OpenCombobox=0]="OpenCombobox",s[s.CloseCombobox=1]="CloseCombobox",s[s.GoToOption=2]="GoToOption",s[s.SetTyping=3]="SetTyping",s[s.RegisterOption=4]="RegisterOption",s[s.UnregisterOption=5]="UnregisterOption",s[s.DefaultToFirstOption=6]="DefaultToFirstOption",s[s.SetActivationTrigger=7]="SetActivationTrigger",s[s.UpdateVirtualConfiguration=8]="UpdateVirtualConfiguration",s[s.SetInputElement=9]="SetInputElement",s[s.SetButtonElement=10]="SetButtonElement",s[s.SetOptionsElement=11]="SetOptionsElement",s[s.MarkInputAsMoved=12]="MarkInputAsMoved",s);function eO(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,o=t(e.options.slice()),s=o.length>0&&null!==o[0].dataRef.current.order?o.sort((e,t)=>e.dataRef.current.order-t.dataRef.current.order):(0,eb.sortByDomNode)(o,e=>e.dataRef.current.domRef.current),i=n?s.indexOf(n):null;return -1===i&&(i=null),{options:s,activeOptionIndex:i}}let eP={1(e){var t;if(null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState)return e;let n=e.inputElement?eh.ElementPositionState.Tracked((0,eh.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:eh.ElementPositionState.Idle}}return{...e,comboboxState:0,inputPositionState:eh.ElementPositionState.Idle,__demoMode:!1}},3:(e,t)=>e.isTyping===t.isTyping?e:{...e,isTyping:t.isTyping},2(e,t){var n,o,s,i;if(null!=(n=e.dataRef.current)&&n.disabled||e.optionsElement&&!(null!=(o=e.dataRef.current)&&o.optionsPropsRef.current.static)&&1===e.comboboxState)return e;if(e.virtual){let{options:n,disabled:o}=e.virtual,i=t.focus===ei.Focus.Specific?t.idx:(0,ei.calculateActiveIndex)(t,{resolveItems:()=>n,resolveActiveIndex:()=>{var t,s;return null!=(s=null!=(t=e.activeOptionIndex)?t:n.findIndex(e=>!o(e)))?s:null},resolveDisabled:o,resolveId(){throw Error("Function not implemented.")}}),a=null!=(s=t.trigger)?s:2;return e.activeOptionIndex===i&&e.activationTrigger===a?e:{...e,activeOptionIndex:i,activationTrigger:a,isTyping:!1,__demoMode:!1}}let a=eO(e);if(null===a.activeOptionIndex){let e=a.options.findIndex(e=>!e.dataRef.current.disabled);-1!==e&&(a.activeOptionIndex=e)}let l=t.focus===ei.Focus.Specific?t.idx:(0,ei.calculateActiveIndex)(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled}),r=null!=(i=t.trigger)?i:2;return e.activeOptionIndex===l&&e.activationTrigger===r?e:{...e,...a,isTyping:!1,activeOptionIndex:l,activationTrigger:r,__demoMode:!1}},4:(e,t)=>{var n,o,s,i;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:[...e.options,t.payload]};let a=t.payload,l=eO(e,e=>(e.push(a),e));null===e.activeOptionIndex&&null!=(s=(o=e.dataRef.current).isSelected)&&s.call(o,t.payload.dataRef.current.value)&&(l.activeOptionIndex=l.options.indexOf(a));let r={...e,...l,activationTrigger:2};return null!=(i=e.dataRef.current)&&i.__demoMode&&void 0===e.dataRef.current.value&&(r.activeOptionIndex=0),r},5:(e,t)=>{var n;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:e.options.filter(e=>e.id!==t.id)};let o=eO(e,e=>{let n=e.findIndex(e=>e.id===t.id);return -1!==n&&e.splice(n,1),e});return{...e,...o,activationTrigger:2}},6:(e,t)=>e.defaultToFirstOption===t.value?e:{...e,defaultToFirstOption:t.value},7:(e,t)=>e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},8:(e,t)=>
4{var n,o;if(null===e.virtual)return{...e,virtual:{options:t.options,disabled:null!=(n=t.disabled)?n:()=>!1}};if(e.virtual.options===t.options&&e.virtual.disabled===t.disabled)return e;let s=e.activeOptionIndex;if(null!==e.activeOptionIndex){let n=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);s=-1!==n?n:null}return{...e,activeOptionIndex:s,virtual:{options:t.options,disabled:null!=(o=t.disabled)?o:()=>!1}}},9:(e,t)=>e.inputElement===t.element?e:{...e,inputElement:t.element},10:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},11:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},12:e=>"Tracked"!==e.inputPositionState.kind?e:{...e,inputPositionState:eh.ElementPositionState.Moved}};class eI extends ev.Machine{constructor(e){super(e),ex(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:o,value:s}=this.state.dataRef.current;return(0,el.match)(o,{0:()=>null==t?void 0:t(e),1:()=>{let o=s.slice(),i=o.findIndex(t=>n(t,e));return -1===i?o.push(e):o.splice(i,1),null==t?void 0:t(o)}})},registerOption:(e,t)=>(this.send({type:4,payload:{id:e,dataRef:t}}),()=>{this.state.activeOptionIndex===this.state.dataRef.current.calculateIndex(t.current.value)&&this.send({type:6,value:!0}),this.send({type:5,id:e})}),goToOption:(e,t)=>(this.send({type:6,value:!1}),this.send({type:2,...e,trigger:t})),setIsTyping:e=>{this.send({type:3,isTyping:e})},closeCombobox:()=>{var e,t;this.send({type:1}),this.send({type:6,value:!1}),null==(t=(e=this.state.dataRef.current).onClose)||t.call(e)},openCombobox:()=>{this.send({type:0}),this.send({type:6,value:!0})},setActivationTrigger:e=>{this.send({type:7,trigger:e})},selectActiveOption:()=>{let e=this.selectors.activeOptionIndex(this.state);if(null!==e){if(this.actions.setIsTyping(!1),this.state.virtual)this.actions.onChange(this.state.virtual.options[e]);else{let{dataRef:t}=this.state.options[e];this.actions.onChange(t.current.value)}this.actions.goToOption({focus:ei.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})}}),ex(this,"selectors",{activeDescendantId:e=>{var t,n;let o=this.selectors.activeOptionIndex(e);if(null!==o)return e.virtual?null==(n=e.options.find(t=>!t.dataRef.current.disabled&&e.dataRef.current.compare(t.dataRef.current.value,e.virtual.options[o])))?void 0:n.id:null==(t=e.options[o])?void 0:t.id},activeOptionIndex:e=>{if(e.defaultToFirstOption&&null===e.activeOptionIndex&&(e.virtual?e.virtual.options.length>0:e.options.length>0)){if(e.virtual){let{options:t,disabled:n}=e.virtual,o=t.findIndex(e=>{var t;return!(null!=(t=null==n?void 0:n(e))&&t)});if(-1!==o)return o}let t=e.options.findIndex(e=>!e.dataRef.current.disabled);if(-1!==t)return t}return e.activeOptionIndex},activeOption:e=>{var t,n;let o=this.selectors.activeOptionIndex(e);return null===o?null:e.virtual?e.virtual.options[null!=o?o:0]:null!=(n=null==(t=e.options[o])?void 0:t.dataRef.current.value)?n:null},isActive:(e,t,n)=>{var o;let s=this.selectors.activeOptionIndex(e);return null!==s&&(e.virtual?s===e.dataRef.current.calculateIndex(t):(null==(o=e.options[s])?void 0:o.id)===n)},shouldScrollIntoView:(e,t,n)=>!(e.virtual||e.__demoMode||0!==e.comboboxState||0===e.activationTrigger||!this.selectors.isActive(e,t,n)),didInputMove:e=>"Moved"===e.inputPositionState.kind});{let e=this.state.id,t=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,eh.detectMovement)(t.inputElement,t.inputPositionState,()=>{this.send({type:12})})))})})}static new({id:e,virtual:t=null,__demoMode:n=!1}){var o;return new eI({id:e,dataRef:{current:{}},comboboxState:+!n,isTyping:!1,options:[],virtual:t?{options:t.options,disabled:null!=(o=t.disabled)?o:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:n,inputPositionState:eh.ElementPositionState.Idle})}reduce(e,t){return(0,el.match)(t.type,eP,e,t)}}var eC=e.i(526599);let eR=(0,l.createContext)(null);function eF(e){let t=(0,l.useContext)(eR);if(null===t){let t=Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,eT),t}return t}function eT({id:e,virtual:t=null,__demoMode:n=!1}){let o=(0,l.useMemo)(()=>eI.new({id:e,virtual:t,__demoMode:n}),[]);return(0,eC.useOnUnmount)(()=>o.dispose()),o}let ek=(0,l.createContext)(null);function eM(e){let t=(0,l.useContext)(ek);if(null===t){let t=Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,eM),t}return t}ek.displayName="ComboboxDataContext";let ej=(0,l.createContext)(null);function eN(e){let t=eF("VirtualProvider"),{options:n}=eM("VirtualProvider").virtual,o=(0,eo.useSlice)(t,e=>e.optionsElement),[s,i]=(0,l.useMemo)(()=>
4{if(!o)return[0,0];let e=window.getComputedStyle(o);return[parseFloat(e.paddingBlockStart||e.paddingTop),parseFloat(e.paddingBlockEnd||e.paddingBottom)]},[o]),a=function(e){let t=l.useReducer(()=>({}),{})[1],n={...e,onChange:(n,o)=>{var s;o?(0,r.flushSync)(t):t(),null==(s=e.onChange)||s.call(e,n,o)}},[o]=l.useState(()=>new y(n));return o.setOptions(n),w(()=>o._didMount(),[]),w(()=>o._willUpdate()),o}({observeElementRect:m,observeElementOffset:b,scrollToFn:x,...{enabled:0!==n.length,scrollPaddingStart:s,scrollPaddingEnd:i,count:n.length,estimateSize:()=>40,getScrollElement:()=>t.state.optionsElement,overscan:12}}),[u,c]=(0,l.useState)(0);(0,M.useIsoMorphicEffect)(()=>{c(e=>e+1)},[n]);let d=a.getVirtualItems(),p=(0,eo.useSlice)(t,e=>e.activationTrigger===ew.Pointer),f=(0,eo.useSlice)(t,t.selectors.activeOptionIndex);return 0===d.length?null:l.default.createElement(ej.Provider,{value:a},l.default.createElement("div",{style:{position:"relative",width:"100%",height:`${a.getTotalSize()}px`},ref:e=>{e&&(p||null!==f&&n.length>f&&a.scrollToIndex(f))}},d.map(t=>{var o;return l.default.createElement(l.Fragment,{key:t.key},l.default.cloneElement(null==(o=e.children)?void 0:o.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 eD=l.Fragment,eA=eu.RenderFeatures.RenderStrategy|eu.RenderFeatures.Static,eL=(0,eu.forwardRefWithAs)(function(e,t){let n=(0,l.useId)(),o=(0,Y.useDisabled)(),{value:s,defaultValue:i,onChange:a,form:r,name:u,by:c,invalid:d=!1,disabled:p=o||!1,onClose:f,__demoMode:m=!1,multiple:v=!1,immediate:h=!1,virtual:b=null,nullable:g,...x}=e,y=(0,I.useDefaultValue)(i),[E=v?[]:void 0,w]=(0,P.useControllable)(s,a,y),S=eT({id:n,virtual:b,__demoMode:m}),C=(0,l.useRef)({static:!1,hold:!1}),R=(0,O.useByComparator)(c),T=(0,F.useEvent)(e=>b?null===c?b.options.indexOf(e):b.options.findIndex(t=>R(t,e)):S.state.options.findIndex(t=>R(t.dataRef.current.value,e))),k=(0,l.useCallback)(e=>(0,el.match)(A.mode,{[eE.Multi]:()=>E.some(t=>R(t,e)),[eE.Single]:()=>R(E,e)}),[E]),j=(0,eo.useSlice)(S,e=>e.virtual),N=(0,F.useEvent)(()=>null==f?void 0:f()),A=(0,l.useMemo)(()=>({__demoMode:m,immediate:h,optionsPropsRef:C,value:E,defaultValue:y,disabled:p,invalid:d,mode:v?eE.Multi:eE.Single,virtual:b?j:null,onChange:w,isSelected:k,calculateIndex:T,compare:R,onClose:N}),[m,h,C,E,y,p,d,v,b,j,w,k,T,R,N]);(0,M.useIsoMorphicEffect)(()=>{var e;b&&S.send({type:eS.UpdateVirtualConfiguration,options:b.options,disabled:null!=(e=b.disabled)?e:null})},[b,null==b?void 0:b.options,null==b?void 0:b.disabled]),(0,M.useIsoMorphicEffect)(()=>{S.state.dataRef.current=A},[A]);let[L,_,B,z]=(0,eo.useSlice)(S,e=>[e.comboboxState,e.buttonElement,e.inputElement,e.optionsElement]),K=en.stackMachines.get(null),V=(0,eo.useSlice)(K,(0,l.useCallback)(e=>K.selectors.isTop(e,n),[K,n]));(0,D.useOutsideClick)(V,[_,B,z],()=>S.actions.closeCombobox());let H=(0,eo.useSlice)(S,S.selectors.activeOptionIndex),W=(0,eo.useSlice)(S,S.selectors.activeOption),G=(0,$.useSlot)({open:L===ey.Open,disabled:p,invalid:d,activeIndex:H,activeOption:W,value:E}),[U,q]=(0,ep.useLabels)(),Q=(0,l.useCallback)(()=>{if(void 0!==y)return null==w?void 0:w(y)},[w,y]),Z=(0,eu.useRender)();return l.default.createElement(q,{value:U,props:{htmlFor:null==B?void 0:B.id},slot:{open:L===ey.Open,disabled:p}},l.default.createElement(J.FloatingProvider,null,l.default.createElement(ek.Provider,{value:A},l.default.createElement(eR.Provider,{value:S},l.default.createElement(et.OpenClosedProvider,{value:(0,el.match)(L,{[ey.Open]:et.State.Open,[ey.Closed]:et.State.Closed})},null!=u&&l.default.createElement(X.FormFields,{disabled:p,data:null!=E?{[u]:E}:{},form:r,onReset:Q}),Z({ourProps:null===t?{}:{ref:t},theirProps:x,slot:G,defaultTag:eD,name:"Combobox"}))))))}),e_=(0,eu.forwardRefWithAs)(function(e,t){let n=eF("Combobox.Button"),o=eM("Combobox.Button"),[s,u]=(0,l.useState)(null),c=(0,W.useSyncRefs)(t,u,n.actions.setButtonElement),d=(0,l.useId)(),{id:p=`headlessui-combobox-button-${d}`,disabled:f=o.disabled||!1,autoFocus:m=!1,...v}=e,[h,b,g]=(0,eo.useSlice)(n,e=>[e.comboboxState,e.inputElement,e.optionsElement]),x=K(b),y=h===ey.Open;(0,L.useQuickRelease)(y,{trigger:s,action:(0,l.useCallback)(e=>{if(null!=s&&s.contains(e.target)||null!=b&&b.contains(e.target))return L.Action.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return _.isHTMLElement(t)?L.Action.Select(t):null!=g&&g.contains(e.target)?L.Action.Ignore:L.Action.Close},[s,b,g]),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===ey.Closed&&(0,r.flushSync)(()=>n.actions.openCombobox()),x();return;case ed.Keys.ArrowDown:e.preventDefault(),e.stopPropagation(),n.state.comboboxState===ey.Closed&&((0,r.flushSync)(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:ei.Focus.First})),x();return;case ed.Keys.ArrowUp:e.preventDefault(),e.stopPropagation(),n.state.comboboxState===ey.Closed&&((0,r.flushSync)(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:ei.Focus.Last})),x();return;case ed.Keys.Escape:if(n.state.comboboxState!==ey.Open)return;e.preventDefault(),n.state.optionsElement&&!o.optionsPropsRef.current.static&&e.stopPropagation(),(0,r.flushSync)(()=>n.actions.closeCombobox()),x();return;default:return}}),w=(0,T.useHandleToggle)(()=>{n.state.comboboxState===ey.Open?n.actions.closeCombobox():n.actions.openCombobox(),x()}),O=(0,ep.useLabelledBy)([p]),{isFocusVisible:P,focusProps:I}=(0,i.useFocusRing)({autoFocus:m}),{isHovered:C,hoverProps:R}=(0,a.useHover)({isDisabled:f}),{pressed:k,pressProps:M}=(0,S.useActivePress)({disabled:f}),j=(0,$.useSlot)({open:h===ey.Open,active:k||h===ey.Open,disabled:f,invali
4d:o.invalid,value:o.value,hover:C,focus:P}),N=(0,eu.mergeProps)({ref:c,id:p,type:(0,V.useResolveButtonType)(e,s),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==g?void 0:g.id,"aria-expanded":h===ey.Open,"aria-labelledby":O,disabled:f||void 0,autoFocus:m,onKeyDown:E},w,I,R,M);return(0,eu.useRender)()({ourProps:N,theirProps:v,slot:j,defaultTag:"button",name:"Combobox.Button"})}),eB=(0,eu.forwardRefWithAs)(function(e,t){var n,o;let s=eF("Combobox.Input"),u=eM("Combobox.Input"),c=(0,l.useId)(),d=(0,ee.useProvidedId)(),{id:p=d||`headlessui-combobox-input-${c}`,onChange:f,displayValue:m,disabled:v=u.disabled||!1,autoFocus:h=!1,type:b="text",...g}=e,x=(0,l.useRef)(null),y=(0,W.useSyncRefs)(x,t,(0,J.useFloatingReference)(),s.actions.setInputElement),[E,w]=(0,eo.useSlice)(s,e=>[e.comboboxState,e.isTyping]),S=(0,C.useDisposables)(),O=(0,F.useEvent)(()=>{s.actions.onChange(null),s.state.optionsElement&&(s.state.optionsElement.scrollTop=0),s.actions.goToOption({focus:ei.Focus.Nothing})}),P=(0,l.useMemo)(()=>{var e;return"function"==typeof m&&void 0!==u.value?null!=(e=m(u.value))?e:"":"string"==typeof u.value?u.value:""},[u.value,m]);(0,Q.useWatch)(([e,t],[n,o])=>{if(s.state.isTyping)return;let i=x.current;i&&((o===ey.Open&&t===ey.Closed||e!==n)&&(i.value=e),requestAnimationFrame(()=>{if(s.state.isTyping||!i||(0,B.isActiveElement)(i))return;let{selectionStart:e,selectionEnd:t}=i;0===Math.abs((null!=t?t:0)-(null!=e?e:0))&&0===e&&i.setSelectionRange(i.value.length,i.value.length)}))},[P,E,w]),(0,Q.useWatch)(([e],[t])=>{if(e===ey.Open&&t===ey.Closed){if(s.state.isTyping)return;let e=x.current;if(!e)return;let t=e.value,{selectionStart:n,selectionEnd:o,selectionDirection:i}=e;e.value="",e.value=t,null!==i?e.setSelectionRange(n,o,i):e.setSelectionRange(n,o)}},[E]);let I=(0,l.useRef)(!1),R=(0,F.useEvent)(()=>{I.current=!0}),T=(0,F.useEvent)(()=>{S.nextFrame(()=>{I.current=!1})}),k=(0,F.useEvent)(e=>{switch(s.actions.setIsTyping(!0),e.key){case ed.Keys.Enter:if(s.state.comboboxState!==ey.Open||I.current)return;if(e.preventDefault(),e.stopPropagation(),null===s.selectors.activeOptionIndex(s.state))return void s.actions.closeCombobox();s.actions.selectActiveOption(),u.mode===eE.Single&&s.actions.closeCombobox();break;case ed.Keys.ArrowDown:return e.preventDefault(),e.stopPropagation(),(0,el.match)(s.state.comboboxState,{[ey.Open]:()=>s.actions.goToOption({focus:ei.Focus.Next}),[ey.Closed]:()=>s.actions.openCombobox()});case ed.Keys.ArrowUp:return e.preventDefault(),e.stopPropagation(),(0,el.match)(s.state.comboboxState,{[ey.Open]:()=>s.actions.goToOption({focus:ei.Focus.Previous}),[ey.Closed]:()=>{(0,r.flushSync)(()=>s.actions.openCombobox()),u.value||s.actions.goToOption({focus:ei.Focus.Last})}});case ed.Keys.Home:if(s.state.comboboxState===ey.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),s.actions.goToOption({focus:ei.Focus.First});case ed.Keys.PageUp:return e.preventDefault(),e.stopPropagation(),s.actions.goToOption({focus:ei.Focus.First});case ed.Keys.End:if(s.state.comboboxState===ey.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),s.actions.goToOption({focus:ei.Focus.Last});case ed.Keys.PageDown:return e.preventDefault(),e.stopPropagation(),s.actions.goToOption({focus:ei.Focus.Last});case ed.Keys.Escape:return s.state.comboboxState!==ey.Open?void 0:(e.preventDefault(),s.state.optionsElement&&!u.optionsPropsRef.current.static&&e.stopPropagation(),u.mode===eE.Single&&null===u.value&&O(),s.actions.closeCombobox());case ed.Keys.Tab:if(s.actions.setIsTyping(!1),s.state.comboboxState!==ey.Open)return;u.mode===eE.Single&&s.state.activationTrigger!==ew.Focus&&s.actions.selectActiveOption(),s.actions.closeCombobox()}}),M=(0,F.useEvent)(e=>{null==f||f(e),u.mode===eE.Single&&""===e.target.value&&O(),s.actions.openCombobox()}),j=(0,F.useEvent)(e=>{var t,n,o;let i=null!=(t=e.relatedTarget)?t:es.history.find(t=>t!==e.currentTarget);if(!(null!=(n=s.state.optionsElement)&&n.contains(i))&&!(null!=(o=s.state.buttonElement)&&o.contains(i))&&s.state.comboboxState===ey.Open)return e.preventDefault(),u.mode===eE.Single&&null===u.value&&O(),s.actions.closeCombobox()}),N=(0,F.useEvent)(e=>{var t,n,o;let i=null!=(t=e.relatedTarget)?t:es.history.find(t=>t!==e.currentTarget);
4null!=(n=s.state.buttonElement)&&n.contains(i)||null!=(o=s.state.optionsElement)&&o.contains(i)||u.disabled||u.immediate&&s.state.comboboxState!==ey.Open&&S.microTask(()=>{(0,r.flushSync)(()=>s.actions.openCombobox()),s.actions.setActivationTrigger(ew.Focus)})}),D=(0,ep.useLabelledBy)(),A=(0,ec.useDescribedBy)(),{isFocused:L,focusProps:_}=(0,i.useFocusRing)({autoFocus:h}),{isHovered:z,hoverProps:K}=(0,a.useHover)({isDisabled:v}),V=(0,eo.useSlice)(s,e=>e.optionsElement),H=(0,$.useSlot)({open:E===ey.Open,disabled:v,invalid:u.invalid,hover:z,focus:L,autofocus:h}),G=(0,eu.mergeProps)({ref:y,id:p,role:"combobox",type:b,"aria-controls":null==V?void 0:V.id,"aria-expanded":E===ey.Open,"aria-activedescendant":(0,eo.useSlice)(s,s.selectors.activeDescendantId),"aria-labelledby":D,"aria-describedby":A,"aria-autocomplete":"list",defaultValue:null!=(o=null!=(n=e.defaultValue)?n:void 0!==u.defaultValue?null==m?void 0:m(u.defaultValue):null)?o:u.defaultValue,disabled:v||void 0,autoFocus:h,onCompositionStart:R,onCompositionEnd:T,onKeyDown:k,onChange:M,onFocus:N,onBlur:j},_,K);return(0,eu.useRender)()({ourProps:G,theirProps:g,slot:H,defaultTag:"input",name:"Combobox.Input"})}),ez=ep.Label,eK=(0,eu.forwardRefWithAs)(function(e,t){var n,o,s;let i=(0,l.useId)(),{id:a=`headlessui-combobox-options-${i}`,hold:r=!1,anchor:u,portal:c=!1,modal:d=!0,transition:p=!1,...f}=e,m=eF("Combobox.Options"),v=eM("Combobox.Options"),h=(0,J.useResolvedAnchor)(u);h&&(c=!0);let[b,g]=(0,J.useFloatingPanel)(h),[x,y]=(0,l.useState)(null),E=(0,J.useFloatingPanelProps)(),w=(0,W.useSyncRefs)(t,h?b:null,m.actions.setOptionsElement,y),[S,O,P,I,C]=(0,eo.useSlice)(m,e=>[e.comboboxState,e.inputElement,e.buttonElement,e.optionsElement,e.activationTrigger]),T=(0,A.useOwnerDocument)(O||P),j=(0,A.useOwnerDocument)(I),D=(0,et.useOpenClosed)(),[L,_]=(0,U.useTransition)(p,x,null!==D?(D&et.State.Open)===et.State.Open:S===ey.Open);(0,N.useOnDisappear)(L,O,m.actions.closeCombobox);let B=!v.__demoMode&&d&&S===ey.Open;(0,H.useScrollLock)(B,j);let z=!v.__demoMode&&d&&S===ey.Open;(0,k.useInertOthers)(z,{allowed:(0,l.useCallback)(()=>[O,P,I],[O,P,I])});let K=!(0,eo.useSlice)(m,m.selectors.didInputMove)&&L;(0,M.useIsoMorphicEffect)(()=>{var t;v.optionsPropsRef.current.static=null!=(t=e.static)&&t},[v.optionsPropsRef,e.static]),(0,M.useIsoMorphicEffect)(()=>{v.optionsPropsRef.current.hold=r},[v.optionsPropsRef,r]),(0,q.useTreeWalker)(S===ey.Open,{container:I,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let V=(0,ep.useLabelledBy)([null==P?void 0:P.id]),G=(0,$.useSlot)({open:S===ey.Open,option:void 0}),Q=(0,F.useEvent)(()=>{m.actions.setActivationTrigger(ew.Pointer)}),Y=(0,F.useEvent)(e=>{e.preventDefault(),m.actions.setActivationTrigger(ew.Pointer)}),X=(0,eu.mergeProps)(h?E():{},{"aria-labelledby":V,role:"listbox","aria-multiselectable":v.mode===eE.Multi||void 0,id:a,ref:w,style:{...f.style,...g,"--input-width":(0,R.useElementSize)(L,O,!0).width,"--button-width":(0,R.useElementSize)(L,P,!0).width},onWheel:C===ew.Pointer?void 0:Q,onMouseDown:Y,...(0,U.transitionDataAttributes)(_)}),ee=L&&S===ey.Closed&&!e.static,en=(0,Z.useFrozenData)(ee,null==(n=v.virtual)?void 0:n.options),es=(0,Z.useFrozenData)(ee,v.value),ei=(0,l.useCallback)(e=>v.compare(es,e),[v.compare,es]),ea=(0,l.useMemo)(()=>{if(!v.virtual)return v;if(void 0===en)throw Error("Missing `options` in virtual mode");return en!==v.virtual.options?{...v,virtual:{...v.virtual,options:en}}:v},[v,en,null==(o=v.virtual)?void 0:o.options]);v.virtual&&Object.assign(f,{children:l.default.createElement(ek.Provider,{value:ea},l.default.createElement(eN,{slot:G},f.children))});let el=(0,eu.useRender)(),er=(0,l.useMemo)(()=>v.mode===eE.Multi?v:{...v,isSelected:ei},[v,ei]);return l.default.createElement(em.Portal,{enabled:!!c&&(e.static||L),ownerDocument:T},l.default.createElement(ek.Provider,{value:er},el({ourProps:X,theirProps:{...f,children:l.default.createElement(Z.Frozen,{freeze:ee},"function"==typeof f.children?null==(s=f.children)?void 0:s.call(f,G):f.children)},slot:G,defaultTag:"div",features:eA,visible:K,name:"Combobox.Options"}
4)))}),eV=(0,eu.forwardRefWithAs)(function(e,t){var n,o,s;let i=eM("Combobox.Option"),a=eF("Combobox.Option"),r=(0,l.useId)(),{id:u=`headlessui-combobox-option-${r}`,value:c,disabled:d=null!=(s=null==(o=null==(n=i.virtual)?void 0:n.disabled)?void 0:o.call(n,c))&&s,order:p=null,...f}=e,[m]=(0,eo.useSlice)(a,e=>[e.inputElement]),v=K(m),h=(0,eo.useSlice)(a,(0,l.useCallback)(e=>a.selectors.isActive(e,c,u),[c,u])),b=i.isSelected(c),g=(0,l.useRef)(null),x=(0,j.useLatestValue)({disabled:d,value:c,domRef:g,order:p}),y=(0,l.useContext)(ej),E=(0,W.useSyncRefs)(t,g,y?y.measureElement:null),w=(0,F.useEvent)(()=>{a.actions.setIsTyping(!1),a.actions.onChange(c)});(0,M.useIsoMorphicEffect)(()=>a.actions.registerOption(u,x),[x,u]);let S=(0,eo.useSlice)(a,(0,l.useCallback)(e=>a.selectors.shouldScrollIntoView(e,c,u),[c,u]));(0,M.useIsoMorphicEffect)(()=>{if(S)return(0,ea.disposables)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=g.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[S,g]);let O=(0,F.useEvent)(e=>{e.preventDefault(),e.button===ef.MouseButton.Left&&(d||(w(),(0,er.isMobile)()||requestAnimationFrame(()=>v()),i.mode===eE.Single&&a.actions.closeCombobox()))}),P=(0,F.useEvent)(()=>{if(d)return a.actions.goToOption({focus:ei.Focus.Nothing});let e=i.calculateIndex(c);a.actions.goToOption({focus:ei.Focus.Specific,idx:e})}),I=(0,G.useTrackedPointer)(),C=(0,F.useEvent)(e=>I.update(e)),R=(0,F.useEvent)(e=>{if(!I.wasMoved(e)||d||h&&a.state.activationTrigger===ew.Pointer)return;let t=i.calculateIndex(c);a.actions.goToOption({focus:ei.Focus.Specific,idx:t},ew.Pointer)}),T=(0,F.useEvent)(e=>{I.wasMoved(e)&&(d||h&&(i.optionsPropsRef.current.hold||a.state.activationTrigger===ew.Pointer&&a.actions.goToOption({focus:ei.Focus.Nothing})))}),k=(0,$.useSlot)({active:h,focus:h,selected:b,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":b,disabled:void 0,onMouseDown:O,onFocus:P,onPointerEnter:C,onMouseEnter:C,onPointerMove:R,onMouseMove:R,onPointerLeave:T,onMouseLeave:T},theirProps:f,slot:k,defaultTag:"div",name:"Combobox.Option"})}),eH=Object.assign(eL,{Input:eB,Button:e_,Label:ez,Options:eK,Option:eV});e.s(["Combobox",0,eH,"ComboboxButton",0,e_,"ComboboxInput",0,eB,"ComboboxLabel",0,ez,"ComboboxOption",0,eV,"ComboboxOptions",0,eK],762630)},476481,e=>{"use strict";var t=e.i(429427),n=e.i(371330),o=e.i(271645),s=e.i(394487),i=e.i(255743),a=e.i(700020);let l=o.Fragment,r=(0,a.forwardRefWithAs)(function(e,o){let{...r}=e,{isFocusVisible:u,focusProps:c}=(0,t.useFocusRing)(),{isHovered:d,hoverProps:p}=(0,n.useHover)({isDisabled:!1}),{pressed:f,pressProps:m}=(0,s.useActivePress)({disabled:!1}),v=(0,a.mergeProps)({ref:o},c,p,m),h=(0,i.useSlot)({hover:d,focus:u,active:f});return(0,a.useRender)()({ourProps:v,theirProps:r,slot:h,defaultTag:l,name:"DataInteractive"})});e.s(["DataInteractive",0,r])},639100,e=>{"use strict";var t=e.i(271645),n=e.i(255743),o=e.i(601893),s=e.i(140721),i=e.i(942803),a=e.i(700020),l=e.i(35889),r=e.i(722678);let u=(0,a.forwardRefWithAs)(function(e,u){let c=`headlessui-control-${(0,t.useId)()}`,[d,p]=(0,r.useLabels)(),[f,m]=(0,l.useDescriptions)(),v=(0,o.useDisabled)(),{disabled:h=v||!1,...b}=e,g=(0,n.useSlot)({disabled:h}),x=(0,a.useRender)();return t.default.createElement(o.DisabledProvider,{value:h},t.default.createElement(p,{value:d},t.default.createElement(m,{value:f},t.default.createElement(i.IdProvider,{id:c},x({ourProps:{ref:u,disabled:h||void 0,"aria-disabled":h||void 0},theirProps:{...b,children:t.default.createElement(s.FormFieldsProvider,null,"function"==typeof b.children?b.children(g):b.children)},slot:g,defaultTag:"div",name:"Field"})))))});e.s(["Field",0,u])},98631,e=>{"use strict";var t=e.i(271645),n=e.i(813581),o=e.i(255743),s=e.i(294316),i=e.i(601893),a=e.i(700020),l=e.i(722678);let r="fieldset",u=(0,a.forwardRefWithAs)(function(e,u){var c;let d=(0,i.useDisabled)(),{disabled:p=d||!1,...f}=e,[m,v]=function(e){let o="string"==typeof e?e:void 0,[s,i]=(0,t.useState)(o);return[null!=o?o:s,(0,t.useCallback)(e=>{o||n.isHTMLElement(e)&&i(e.tagName.toLowerCase())},[o])]}
4(null!=(c=e.as)?c:r),h=(0,s.useSyncRefs)(u,v),[b,g]=(0,l.useLabels)(),x=(0,o.useSlot)({disabled:p}),y="fieldset"===m?{ref:h,"aria-labelledby":b,disabled:p||void 0}:{ref:h,role:"group","aria-labelledby":b,"aria-disabled":p||void 0},E=(0,a.useRender)();return t.default.createElement(i.DisabledProvider,{value:p},t.default.createElement(g,null,E({ourProps:y,theirProps:f,slot:x,defaultTag:r,name:"Fieldset"})))});e.s(["Fieldset",0,u],98631)},813589,e=>{"use strict";var t=e.i(429427),n=e.i(371330),o=e.i(271645),s=e.i(255743),i=e.i(601893),a=e.i(942803),l=e.i(700020),r=e.i(35889),u=e.i(722678);let c=(0,l.forwardRefWithAs)(function(e,c){let d=(0,o.useId)(),p=(0,a.useProvidedId)(),f=(0,i.useDisabled)(),{id:m=p||`headlessui-input-${d}`,disabled:v=f||!1,autoFocus:h=!1,invalid:b=!1,...g}=e,x=(0,u.useLabelledBy)(),y=(0,r.useDescribedBy)(),{isFocused:E,focusProps:w}=(0,t.useFocusRing)({autoFocus:h}),{isHovered:S,hoverProps:O}=(0,n.useHover)({isDisabled:v}),P=(0,l.mergeProps)({ref:c,id:m,"aria-labelledby":x,"aria-describedby":y,"aria-invalid":b?"true":void 0,disabled:v||void 0,autoFocus:h},w,O),I=(0,s.useSlot)({disabled:v,invalid:b,hover:S,focus:E,autofocus:h});return(0,l.useRender)()({ourProps:P,theirProps:g,slot:I,defaultTag:"input",name:"Input"})});e.s(["Input",0,c])},758246,e=>{"use strict";var t=e.i(271645),n=e.i(700020),o=e.i(722678);o.Label;let s=(0,n.forwardRefWithAs)(function(e,n){return t.default.createElement(o.Label,{as:"div",ref:n,...e})});e.s(["Legend",0,s])},495470,e=>{"use strict";let t,n,o,s;var i=e.i(429427),a=e.i(371330),l=e.i(271645),r=e.i(174080),u=e.i(394487),c=e.i(436289),d=e.i(503269),p=e.i(214520),f=e.i(746725),m=e.i(992704),v=e.i(914189),h=e.i(488374),b=e.i(684653),g=e.i(835696),x=e.i(941444),y=e.i(877891),E=e.i(952744),w=e.i(605083),S=e.i(157138),O=e.i(144279),P=e.i(101852),I=e.i(255743),C=e.i(294316),R=e.i(249578),F=e.i(571616),T=e.i(83733),k=e.i(601893),M=e.i(919751),j=e.i(140721),N=e.i(904016),D=e.i(942803),A=e.i(233137),L=e.i(341650),_=e.i(140407),B=e.i(65659),z=e.i(544508),K=e.i(813581),V=e.i(652265),H=e.i(694421),$=e.i(397701),W=e.i(402155),G=e.i(700020),U=e.i(35889),q=e.i(998348),Q=e.i(722678),Y=e.i(635307),J=e.i(825720),X=e.i(667310),Z=Object.defineProperty,ee=(e,t,n)=>{let o;return(o="symbol"!=typeof t?t+"":t)in e?Z(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=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),eo=((o=eo||{})[o.Pointer=0]="Pointer",o[o.Other=1]="Other",o),es=((s=es||{})[s.OpenListbox=0]="OpenListbox",s[s.CloseListbox=1]="CloseListbox",s[s.GoToOption=2]="GoToOption",s[s.Search=3]="Search",s[s.ClearSearch=4]="ClearSearch",s[s.SelectOption=5]="SelectOption",s[s.RegisterOptions=6]="RegisterOptions",s[s.UnregisterOptions=7]="UnregisterOptions",s[s.SetButtonElement=8]="SetButtonElement",s[s.SetOptionsElement=9]="SetOptionsElement",s[s.SortOptions=10]="SortOptions",s[s.MarkButtonAsMoved=11]="MarkButtonAsMoved",s);function ei(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,o=(0,V.sortByDomNode)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),s=n?o.indexOf(n):null;return -1===s&&(s=null),{options:o,activeOptionIndex:s}}let ea={1(e){if(e.dataRef.current.disabled||1===e.listboxState)return e;let t=e.buttonElement?X.ElementPositionState.Tracked((0,X.computeVisualPosition)(e.buttonElement)):e.buttonPositionState;return{...e,activeOptionIndex:null,pendingFocus:{focus:B.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:o}=e.dataRef.current,s=e.options.findIndex(e=>o(e.dataRef.current.value));return -1!==s&&(n=s),{...e,frozenValue:!1,pendingFocus:t.focus,listboxState:0,activeOptionIndex:n,__demoMode:!1,buttonPositionState:X.ElementPositionState.Idle}},2(e,t){var n,o,s,i,a;if(e.dataRef.current.disabled||1===e.listboxState)return e;let l={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===B.Focus.Nothing)return{...l,activeOptionIndex:null};if(t.focus===B.Focus.Specific)return{...l,activeOptionIndex:e.options.findIndex(e=>e.id===t.id)};if(t.focus===B.Focus.Previous){let n=e.activeOptionIndex;if(null!==n){let i=e.options[n].dataRef.current.domRef,a=(0,B.calculateActiveIndex)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==a){let t=e.options[a].dataRef.current.domRef;if((null==(o=i.current)?void 0:o.previousElementSibling)===t.current||(null==(s=t.current)?void 0:s.previousElementSibling)===null)return{...l,activeOptionIndex:a}}}}else if(t.focus===B.Focus.Next){let n=e.activeOptionIndex;if(null!==n){let o=e.options[n].dataRef.current.domRef,s=(0,B.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.nextElementSibling)===t.current||(null==(a=t.current)?void 0:a.nextElementSibling)===null)return{...l,activeOptionIndex:s}}}}let r=ei(e),u=(0,B.calculateActiveIndex)(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...l,...r,activeOptionIndex:u}},3:(e,t)=>
4{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=+(""===e.searchQuery),o=e.searchQuery+t.value.toLowerCase(),s=(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(o))}),i=s?e.options.indexOf(s):-1;return -1===i||i===e.activeOptionIndex?{...e,searchQuery:o}:{...e,searchQuery:o,activeOptionIndex:i,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),o=e.activeOptionIndex;if(e.pendingFocus.focus!==B.Focus.Nothing&&(o=(0,B.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&&(o=e)}}return{...e,options:n,activeOptionIndex:o,pendingFocus:{focus:B.Focus.Nothing},pendingShouldSort:!0}},7:(e,t)=>{let n=e.options,o=[],s=new Set(t.options);for(let[e,t]of n.entries())if(s.has(t.id)&&(o.push(e),s.delete(t.id),0===s.size))break;if(o.length>0)for(let e of(n=n.slice(),o.reverse()))n.splice(e,1);return{...e,options:n,activationTrigger:1}},8:(e,t)=>e.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,...ei(e),pendingShouldSort:!1}:e,11:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:X.ElementPositionState.Moved}};class el extends J.Machine{constructor(e){super(e),ee(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:o,value:s}=this.state.dataRef.current;return(0,$.match)(o,{0:()=>null==t?void 0:t(e),1:()=>{let o=s.slice(),i=o.findIndex(t=>n(t,e));return -1===i?o.push(e):o.splice(i,1),null==t?void 0:t(o)}})},registerOption:(0,J.batch)(()=>{let e=[],t=new Set;return[(n,o)=>{t.has(o)||(t.add(o),e.push({id:n,dataRef:o}))},()=>(t.clear(),this.send({type:6,options:e.splice(0)}))]}),unregisterOption:(0,J.batch)(()=>{let e=[];return[t=>e.push(t),()=>{this.send({type:7,options:e.splice(0)})}]}),goToOption:(0,J.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,o=e.options;return null===n||null==(t=o[n])?void 0:t.id},isActive(e,t){var n;let o=e.activeOptionIndex,s=e.options;return null!==o&&(null==(n=s[o])?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=L.stackMachines.get(null);this.disposables.add(t.on(L.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,X.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 el({id:e,dataRef:{current:{}},listboxState:+!t,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:B.Focus.Nothing},frozenValue:!1,__demoMode:t,buttonPositionState:X.ElementPositionState.Idle})}reduce(e,t){return(0,$.match)(t.type,ea,e,t)}}var er=e.i(526599);let eu=(0,l.createContext)(null);function ec(e){let t=(0,l.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,l.useMemo)(()=>el.new({id:e,__demoMode:t}),[]);return(0,er.useOnUnmount)(()=>n.dispose()),n}let ep=(0,l.createContext)(null);function ef(e){let t=(0,l.useContext)(ep);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ef),t}return t}ep.displayName="ListboxDataContext";let em=l.Fragment,ev=(0,l.createContext)(!1),eh=G.RenderFeatures.RenderStrategy|G.RenderFeatures.Static,eb=l.Fragment,eg=(0,G.forwardRefWithAs)(function(e,t){let n=(0,l.useId)(),o=(0,k.useDisabled)(),{value:s,defaultValue:i,form:a,name:r,onChange:u,by:f,invali
4d:m=!1,disabled:v=o||!1,horizontal:h=!1,multiple:b=!1,__demoMode:x=!1,...y}=e,w=(0,C.useSyncRefs)(t),S=(0,p.useDefaultValue)(i),[O=b?[]:void 0,P]=(0,d.useControllable)(s,u,S),R=ed({id:n,__demoMode:x}),F=(0,l.useRef)({static:!1,hold:!1}),T=(0,l.useRef)(new Map),N=(0,c.useByComparator)(f),D=(0,l.useCallback)(e=>(0,$.match)(B.mode,{[en.Multi]:()=>O.some(t=>N(t,e)),[en.Single]:()=>N(O,e)}),[O]),B=(0,I.useSlot)({value:O,disabled:v,invalid:m,mode:b?en.Multi:en.Single,orientation:h?"horizontal":"vertical",onChange:P,compare:N,isSelected:D,optionsPropsRef:F,listRef:T});(0,g.useIsoMorphicEffect)(()=>{R.state.dataRef.current=B},[B]);let z=(0,_.useSlice)(R,e=>e.listboxState),K=L.stackMachines.get(null),H=(0,_.useSlice)(K,(0,l.useCallback)(e=>K.selectors.isTop(e,n),[K,n])),[W,U]=(0,_.useSlice)(R,e=>[e.buttonElement,e.optionsElement]);(0,E.useOutsideClick)(H,[W,U],(e,t)=>{R.send({type:es.CloseListbox}),(0,V.isFocusableElement)(t,V.FocusableMode.Loose)||(e.preventDefault(),null==W||W.focus())});let q=(0,I.useSlot)({open:z===et.Open,disabled:v,invalid:m,value:O}),[Y,J]=(0,Q.useLabels)({inherit:!0}),X=(0,l.useCallback)(()=>{if(void 0!==S)return null==P?void 0:P(S)},[P,S]),Z=(0,G.useRender)();return l.default.createElement(J,{value:Y,props:{htmlFor:null==W?void 0:W.id},slot:{open:z===et.Open,disabled:v}},l.default.createElement(M.FloatingProvider,null,l.default.createElement(eu.Provider,{value:R},l.default.createElement(ep.Provider,{value:B},l.default.createElement(A.OpenClosedProvider,{value:(0,$.match)(z,{[et.Open]:A.State.Open,[et.Closed]:A.State.Closed})},null!=r&&null!=O&&l.default.createElement(j.FormFields,{disabled:v,data:{[r]:O},form:a,onReset:X}),Z({ourProps:{ref:w},theirProps:y,slot:q,defaultTag:em,name:"Listbox"}))))))}),ex=(0,G.forwardRefWithAs)(function(e,t){let n=(0,l.useId)(),o=(0,D.useProvidedId)(),s=ef("Listbox.Button"),c=ec("Listbox.Button"),{id:d=o||`headlessui-listbox-button-${n}`,disabled:p=s.disabled||!1,autoFocus:f=!1,...m}=e,b=(0,C.useSyncRefs)(t,(0,M.useFloatingReference)(),c.actions.setButtonElement),g=(0,M.useFloatingReferenceProps)(),[x,y,E]=(0,_.useSlice)(c,e=>[e.listboxState,e.buttonElement,e.optionsElement]),w=x===et.Open;(0,S.useQuickRelease)(w,{trigger:y,action:(0,l.useCallback)(e=>{if(null!=y&&y.contains(e.target))return S.Action.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return K.isHTMLElement(t)?S.Action.Select(t):null!=E&&E.contains(e.target)?S.Action.Ignore:S.Action.Close},[y,E]),close:c.actions.closeListbox,select:c.actions.selectActiveOption});let P=(0,v.useEvent)(e=>{switch(e.key){case q.Keys.Enter:(0,H.attemptSubmit)(e.currentTarget);break;case q.Keys.Space:case q.Keys.ArrowDown:e.preventDefault(),c.actions.openListbox({focus:s.value?B.Focus.Nothing:B.Focus.First});break;case q.Keys.ArrowUp:e.preventDefault(),c.actions.openListbox({focus:s.value?B.Focus.Nothing:B.Focus.Last})}}),R=(0,v.useEvent)(e=>{e.key===q.Keys.Space&&e.preventDefault()}),F=(0,h.useHandleToggle)(e=>{var t;c.state.listboxState===et.Open?((0,r.flushSync)(()=>c.actions.closeListbox()),null==(t=c.state.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),c.actions.openListbox({focus:B.Focus.Nothing}))}),T=(0,v.useEvent)(e=>e.preventDefault()),k=(0,Q.useLabelledBy)([d]),j=(0,U.useDescribedBy)(),{isFocusVisible:N,focusProps:A}=(0,i.useFocusRing)({autoFocus:f}),{isHovered:L,hoverProps:z}=(0,a.useHover)({isDisabled:p}),{pressed:V,pressProps:$}=(0,u.useActivePress)({disabled:p}),W=(0,I.useSlot)({open:x===et.Open,active:V||x===et.Open,disabled:p,invalid:s.invalid,value:s.value,hover:L,focus:N,autofocus:f}),Y=(0,_.useSlice)(c,e=>e.listboxState===et.Open),J=(0,G.mergeProps)(g(),{ref:b,id:d,type:(0,O.useResolveButtonType)(e,y),"aria-haspopup":"listbox","aria-controls":null==E?void 0:E.id,"aria-expanded":Y,"aria-labelledby":k,"aria-describedby":j,disabled:p||void 0,autoFocus:f,onKeyDown:P,onKeyUp:R,onKeyPress:T},F,A,z,$);return(0,G.useRender)()({ourProps:J,theirProps:m,slot:W,defaultTag:"button",name:"Listbox.Button"})}),ey=Q.Label,eE=(0,G.forwardRefWithAs)(function(e,t){let n=(0,l.useId)(),{id:o=`headlessui-listbox-options-${n}
4`,anchor:s,portal:i=!1,modal:a=!0,transition:u=!1,...c}=e,d=(0,M.useResolvedAnchor)(s),[p,h]=(0,l.useState)(null);d&&(i=!0);let g=ef("Listbox.Options"),x=ec("Listbox.Options"),[E,S,O,R]=(0,_.useSlice)(x,e=>[e.listboxState,e.buttonElement,e.optionsElement,e.__demoMode]),F=(0,w.useOwnerDocument)(S),k=(0,w.useOwnerDocument)(O),j=(0,A.useOpenClosed)(),[D,L]=(0,T.useTransition)(u,p,null!==j?(j&A.State.Open)===A.State.Open:E===et.Open);(0,y.useOnDisappear)(D,S,x.actions.closeListbox);let z=!R&&a&&E===et.Open;(0,P.useScrollLock)(z,k);let K=!R&&a&&E===et.Open;(0,b.useInertOthers)(K,{allowed:(0,l.useCallback)(()=>[S,O],[S,O])});let H=!(0,_.useSlice)(x,x.selectors.didButtonMove)&&D,U=(0,_.useSlice)(x,x.selectors.hasFrozenValue)&&!e.static,Q=(0,N.useFrozenData)(U,g.value),J=(0,l.useCallback)(e=>g.compare(Q,e),[g.compare,Q]),X=(0,_.useSlice)(x,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=>J(e.dataRef.current.value));return -1===n&&(n=0),n}),Z=(()=>{if(null==d)return;if(null===X)return{...d,inner:void 0};let e=Array.from(g.listRef.current.values());return{...d,inner:{listRef:{current:e},index:X}}})(),[ee,eo]=(0,M.useFloatingPanel)(Z),es=(0,M.useFloatingPanelProps)(),ei=(0,C.useSyncRefs)(t,d?ee:null,x.actions.setOptionsElement,h),ea=(0,f.useDisposables)();(0,l.useEffect)(()=>{O&&E===et.Open&&((0,W.isActiveElement)(O)||null==O||O.focus({preventScroll:!0}))},[E,O]);let el=(0,v.useEvent)(e=>{var t;switch(ea.dispose(),e.key){case q.Keys.Space:if(""!==x.state.searchQuery)return e.preventDefault(),e.stopPropagation(),x.actions.search(e.key);case q.Keys.Enter:e.preventDefault(),e.stopPropagation(),x.actions.selectActiveOption();break;case(0,$.match)(g.orientation,{vertical:q.Keys.ArrowDown,horizontal:q.Keys.ArrowRight}):return e.preventDefault(),e.stopPropagation(),x.actions.goToOption({focus:B.Focus.Next});case(0,$.match)(g.orientation,{vertical:q.Keys.ArrowUp,horizontal:q.Keys.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),x.actions.goToOption({focus:B.Focus.Previous});case q.Keys.Home:case q.Keys.PageUp:return e.preventDefault(),e.stopPropagation(),x.actions.goToOption({focus:B.Focus.First});case q.Keys.End:case q.Keys.PageDown:return e.preventDefault(),e.stopPropagation(),x.actions.goToOption({focus:B.Focus.Last});case q.Keys.Escape:e.preventDefault(),e.stopPropagation(),(0,r.flushSync)(()=>x.actions.closeListbox()),null==(t=x.state.buttonElement)||t.focus({preventScroll:!0});return;case q.Keys.Tab:e.preventDefault(),e.stopPropagation(),(0,r.flushSync)(()=>x.actions.closeListbox()),(0,V.focusFrom)(x.state.buttonElement,e.shiftKey?V.Focus.Previous:V.Focus.Next);break;default:1===e.key.length&&(x.actions.search(e.key),ea.setTimeout(()=>x.actions.clearSearch(),350))}}),er=(0,_.useSlice)(x,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),eu=(0,I.useSlot)({open:E===et.Open}),ed=(0,G.mergeProps)(d?es():{},{id:o,ref:ei,"aria-activedescendant":(0,_.useSlice)(x,x.selectors.activeDescendantId),"aria-multiselectable":g.mode===en.Multi||void 0,"aria-labelledby":er,"aria-orientation":g.orientation,onKeyDown:el,role:"listbox",tabIndex:E===et.Open?0:void 0,style:{...c.style,...eo,"--button-width":(0,m.useElementSize)(D,S,!0).width},...(0,T.transitionDataAttributes)(L)}),em=(0,G.useRender)(),ev=(0,l.useMemo)(()=>g.mode===en.Multi?g:{...g,isSelected:J},[g,J]);return l.default.createElement(Y.Portal,{enabled:!!i&&(e.static||D),ownerDocument:F},l.default.createElement(ep.Provider,{value:ev},em({ourProps:ed,theirProps:c,slot:eu,defaultTag:"div",features:eh,visible:H,name:"Listbox.Options"}
4)))}),ew=(0,G.forwardRefWithAs)(function(e,t){let n=(0,l.useId)(),{id:o=`headlessui-listbox-option-${n}`,disabled:s=!1,value:i,...a}=e,r=!0===(0,l.useContext)(ev),u=ef("Listbox.Option"),c=ec("Listbox.Option"),d=(0,_.useSlice)(c,e=>c.selectors.isActive(e,o)),p=u.isSelected(i),f=(0,l.useRef)(null),m=(0,R.useTextValue)(f),h=(0,x.useLatestValue)({disabled:s,value:i,domRef:f,get textValue(){return m()}}),b=(0,C.useSyncRefs)(t,f,e=>{e?u.listRef.current.set(o,e):u.listRef.current.delete(o)}),y=(0,_.useSlice)(c,e=>c.selectors.shouldScrollIntoView(e,o));(0,g.useIsoMorphicEffect)(()=>{if(y)return(0,z.disposables)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=f.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[y,f]),(0,g.useIsoMorphicEffect)(()=>{if(!r)return c.actions.registerOption(o,h),()=>c.actions.unregisterOption(o)},[h,o,r]);let E=(0,v.useEvent)(e=>{if(s)return e.preventDefault();c.actions.selectOption(i)}),w=(0,v.useEvent)(()=>{if(s)return c.actions.goToOption({focus:B.Focus.Nothing});c.actions.goToOption({focus:B.Focus.Specific,id:o})}),S=(0,F.useTrackedPointer)(),O=(0,v.useEvent)(e=>S.update(e)),P=(0,v.useEvent)(e=>{S.wasMoved(e)&&(s||d&&c.state.activationTrigger===eo.Pointer||c.actions.goToOption({focus:B.Focus.Specific,id:o},eo.Pointer))}),T=(0,v.useEvent)(e=>{S.wasMoved(e)&&(s||d&&c.state.activationTrigger===eo.Pointer&&c.actions.goToOption({focus:B.Focus.Nothing}))}),k=(0,I.useSlot)({active:d,focus:d,selected:p,disabled:s,selectedOption:p&&r}),M=r?{}:{id:o,ref:b,role:"option",tabIndex:!0===s?void 0:-1,"aria-disabled":!0===s||void 0,"aria-selected":p,disabled:void 0,onClick:E,onFocus:w,onPointerEnter:O,onMouseEnter:O,onPointerMove:P,onMouseMove:P,onPointerLeave:T,onMouseLeave:T},j=(0,G.useRender)();return!p&&r?null:j({ourProps:M,theirProps:a,slot:k,defaultTag:"div",name:"Listbox.Option"})}),eS=(0,G.forwardRefWithAs)(function(e,t){let{options:n,placeholder:o,...s}=e,i={ref:(0,C.useSyncRefs)(t)},a=ef("ListboxSelectedOption"),r=(0,I.useSlot)({}),u=void 0===a.value||null===a.value||a.mode===en.Multi&&Array.isArray(a.value)&&0===a.value.length,c=(0,G.useRender)();return l.default.createElement(ev.Provider,{value:!0},c({ourProps:i,theirProps:{...s,children:l.default.createElement(l.default.Fragment,null,o&&u?o:n)},slot:r,defaultTag:eb,name:"ListboxSelectedOption"}))}),eO=Object.assign(eg,{Button:ex,Label:ey,Options:eE,Option:ew,SelectedOption:eS});e.s(["Listbox",0,eO,"ListboxButton",0,ex,"ListboxLabel",0,ey,"ListboxOption",0,ew,"ListboxOptions",0,eE,"ListboxSelectedOption",0,eS],495470)},998307,e=>{"use strict";let t,n;var o=e.i(429427),s=e.i(371330),i=e.i(271645),a=e.i(394487),l=e.i(992704),r=e.i(914189),u=e.i(693456),c=e.i(835696),d=e.i(941444),p=e.i(877891),f=e.i(952744),m=e.i(605083),v=e.i(144279),h=e.i(185935),b=e.i(101852),g=e.i(255743),x=e.i(294316),y=e.i(661130),E=e.i(83733),w=e.i(674175),S=e.i(919751),O=e.i(2788),P=e.i(233137),I=e.i(140407),C=e.i(233538),R=e.i(813581),F=e.i(652265),T=e.i(397701),k=e.i(402155),M=e.i(700020),j=e.i(998348),N=e.i(635307),D=e.i(825720),A=e.i(341650),L=Object.defineProperty,_=(e,t,n)=>{let o;return(o="symbol"!=typeof t?t+"":t)in e?L(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,n},B=((t=B||{})[t.Open=0]="Open",t[t.Closed=1]="Closed",t),z=((n=z||{})[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 K={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 V extends D.Machine{constructor(e){super(e),_(this,"actions",{close:()=>this.send({type:1}),refocusableClose:e=>{this.actions.close();let t=e?R.isHTMLElement(e)?e:"current"in e&&R.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})}),_(this,"selectors",{isPortalled:e=>{var t;if(!e.button||!e.panel)return!1;let n=null!=(t=(0,k.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 o=(0,F.getFocusableElements)(n),s=o.indexOf(e.button),i=(s+o.length-1)%o.length,a=(s+1)%o.length,l=o[i],r=o[a];return!e.panel.contains(l)&&!e.panel.contains(r)}});{let e=this.state.id,t=A.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 V({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,T.match)(t.type,K,e,t)}}var H=e.i(526599);let $=(0,i.createContext)(null);function W(e){let t=(0,i.useContext)($);if(null===t){let t=Error(`<${e} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,W),t}return t}let G=(0,i.createContext)(null);function U(){return(0,i.useContext)(G)}G.displayName="PopoverGroupContext";let q=(0,i.createContext)(null);q.displayName="PopoverPanelContext";let Q=M.RenderFeatures.RenderStrategy|M.RenderFeatures.Static;function Y(e,t){let n=(0,i.useId)(),{id:o=`headlessui-popover-backdrop-${n}`,transition:s=!1,...a}=e,l=W("Popover.Backdrop"),u=(0,I.useSlice)(l,(0,i.useCallback)(e=>e.popoverState,[])),[c,d]=(0,i.useState)(null),p=(0,x.useSyncRefs)(t,d),f=(0,P.useOpenClosed)(),[m,v]=(0,E.useTransition)(s,c,null!==f?(f&P.State.Open)===P.State.Open:u===B.Open),h=(0,r.useEvent)(e=>{if((0,C.isDisabledReactIssue7711)(e.currentTarget))return e.preventDefault();l.actions.close()}),b=(0,g.useSlot)({open:u===B.Open}),y={ref:p,id:o,"aria-hidden":!0,onClick:h,...(0,E.transitionDataAttributes)(v)};return(0,M.useRender)()({ourProps:y,theirProps:a,slot:b,defaultTag:"div",features:Q,visible:m,name:"Popover.Backdrop"})}let J=M.RenderFeatures.RenderStrategy|M.RenderFeatures.Static,X=(0,M.forwardRefWithAs)(function(e,t){var n;let o=(0,i.useId)(),{__demoMode:s=!1,...a}=e,l=function({id:e,__demoMode:t=!1}){let n=(0,i.useMemo)(()=>V.new({id:e,__demoMode:t}),[]);return(0,H.useOnUnmount)(()=>n.dispose()),n}({id:o,__demoMode:s}),c=(0,i.useRef)(null),p=(0,x.useSyncRefs)(t,(0,x.optionalRef)(e=>{c.current=e})),[v,b,y,E,O]=(0,I.useSlice)(l,(0,i.useCallback)(e=>[e.popoverState,e.button,e.panel,e.buttonId,e.panelId],[])),C=(0,m.useRootDocument)(null!=(n=c.current)?n:b),j=(0,d.useLatestValue)(E),D=(0,d.useLatestValue)(O),A=(0,i.useMemo)(()=>({buttonId:j,panelId:D,close:l.actions.close}),[j,D,l]),L=U(),_=null==L?void 0:L.registerPopover,z=(0,r.useEvent)(()=>{var e,t;let n=(0,k.getActiveElement)(null!=(e=c.current)?e:b);return null!=(t=null==L?void 0:L.isFocusWithinPopoverGroup())?t:n&&((null==b?void 0:b.contains(n))||(null==y?void 0:y.contains(n)))});(0,i.useEffect)(()=>null==_?void 0:_(A),[_,A]);let[K,W]=(0,N.useNestedPortals)(),G=(0,h.useMainTreeNode)(b),Q=(0,h.useRootContainers)({mainTreeNode:G,portals:K,defaultContainers:[{get current(){return l.state.button}},{get current(){return l.state.panel}}]});(0,u.useEventListener)(C,"focus",e=>{var t,n,o,s,i,a;e.target!==window&&R.isHTMLorSVGElement(e.target)&&l.state.popoverState===B.Open&&(z()||l.state.button&&l.state.panel&&(Q.contains(e.target)||null!=(n=null==(t=l.state.beforePanelSentinel.current)?void 0:t.contains)&&n.call(t,e.target)||null!=(s=null==(o=l.state.afterPanelSentinel.current)?void 0:o.contains)&&s.call(o,e.target)||null!=(a=null==(i=l.state.afterButtonSentinel.current)?void 0:i.contains)&&a.call(i,e.target)||l.actions.close()))},!0);let Y=v===B.Open;(0,f.useOutsideClick)(Y,Q.resolveContainers,(e,t)=>{l.actions.close(),(0,F.isFocusableElement)(t,F.FocusableMode.Loose)||(e.preventDefault(),null==b||b.focu
4s())});let J=(0,g.useSlot)({open:v===B.Open,close:l.actions.refocusableClose}),X=(0,I.useSlice)(l,(0,i.useCallback)(e=>(0,T.match)(e.popoverState,{[B.Open]:P.State.Open,[B.Closed]:P.State.Closed}),[])),Z=(0,M.useRender)();return i.default.createElement(h.MainTreeProvider,{node:G},i.default.createElement(S.FloatingProvider,null,i.default.createElement(q.Provider,{value:null},i.default.createElement($.Provider,{value:l},i.default.createElement(w.CloseProvider,{value:l.actions.refocusableClose},i.default.createElement(P.OpenClosedProvider,{value:X},i.default.createElement(W,null,Z({ourProps:{ref:p},theirProps:a,slot:J,defaultTag:"div",name:"Popover"}))))))))}),Z=(0,M.forwardRefWithAs)(function(e,t){let n=(0,i.useId)(),{id:l=`headlessui-popover-button-${n}`,disabled:u=!1,autoFocus:c=!1,...d}=e,p=W("Popover.Button"),[f,m,h,b,E,w,P]=(0,I.useSlice)(p,(0,i.useCallback)(e=>[e.popoverState,p.selectors.isPortalled(e),e.button,e.buttonId,e.panel,e.panelId,e.afterButtonSentinel],[])),N=(0,i.useRef)(null),D=`headlessui-focus-sentinel-${(0,i.useId)()}`,A=U(),L=null==A?void 0:A.closeOthers,_=null!==(0,i.useContext)(q);(0,i.useEffect)(()=>{if(!_)return p.actions.setButtonId(l),()=>p.actions.setButtonId(null)},[_,l,p]);let[z]=(0,i.useState)(()=>Symbol()),K=(0,x.useSyncRefs)(N,t,(0,S.useFloatingReference)(),(0,r.useEvent)(e=>{if(!_){if(e)p.state.buttons.current.push(z);else{let e=p.state.buttons.current.indexOf(z);-1!==e&&p.state.buttons.current.splice(e,1)}p.state.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),e&&p.actions.setButton(e)}})),V=(0,x.useSyncRefs)(N,t),H=(0,r.useEvent)(e=>{var t,n,o;if(_){if(p.state.popoverState===B.Closed)return;switch(e.key){case j.Keys.Space:case j.Keys.Enter:e.preventDefault(),null==(n=(t=e.target).click)||n.call(t),p.actions.close(),null==(o=p.state.button)||o.focus()}}else switch(e.key){case j.Keys.Space:case j.Keys.Enter:e.preventDefault(),e.stopPropagation(),p.state.popoverState===B.Closed?(null==L||L(p.state.buttonId),p.actions.open()):p.actions.close();break;case j.Keys.Escape:if(p.state.popoverState!==B.Open)return null==L?void 0:L(p.state.buttonId);if(!N.current)return;let s=(0,k.getActiveElement)(N.current);if(s&&!N.current.contains(s))return;e.preventDefault(),e.stopPropagation(),p.actions.close()}}),$=(0,r.useEvent)(e=>{_||e.key===j.Keys.Space&&e.preventDefault()}),G=(0,r.useEvent)(e=>{var t,n;(0,C.isDisabledReactIssue7711)(e.currentTarget)||u||(_?(p.actions.close(),null==(t=p.state.button)||t.focus()):(e.preventDefault(),e.stopPropagation(),p.state.popoverState===B.Closed?(null==L||L(p.state.buttonId),p.actions.open()):p.actions.close(),null==(n=p.state.button)||n.focus()))}),Q=(0,r.useEvent)(e=>{e.preventDefault(),e.stopPropagation()}),{isFocusVisible:Y,focusProps:J}=(0,o.useFocusRing)({autoFocus:c}),{isHovered:X,hoverProps:Z}=(0,s.useHover)({isDisabled:u}),{pressed:ee,pressProps:et}=(0,a.useActivePress)({disabled:u}),en=f===B.Open,eo=(0,g.useSlot)({open:en,active:ee||en,disabled:u,hover:X,focus:Y,autofocus:c}),es=(0,v.useResolveButtonType)(e,h),ei=_?(0,M.mergeProps)({ref:V,type:es,onKeyDown:H,onClick:G,disabled:u||void 0,autoFocus:c},J,Z,et):(0,M.mergeProps)({ref:K,id:b,type:es,"aria-expanded":f===B.Open,"aria-controls":E?w:void 0,disabled:u||void 0,autoFocus:c,onKeyDown:H,onKeyUp:$,onClick:G,onMouseDown:Q},J,Z,et),ea=(0,y.useTabDirection)(),el=(0,r.useEvent)(()=>{if(!R.isHTMLElement(p.state.panel))return;let e=p.state.panel;(0,T.match)(ea.current,{[y.Direction.Forwards]:()=>(0,F.focusIn)(e,F.Focus.First),[y.Direction.Backwards]:()=>(0,F.focusIn)(e,F.Focus.Last)})===F.FocusResult.Error&&(0,F.focusIn)((0,F.getFocusableElements)((0,k.getRootNode)(p.state.button)).filter(e=>"true"!==e.dataset.headlessuiFocusGuard),(0,T.match)(ea.current,{[y.Direction.Forwards]:F.Focus.Next,[y.Direction.Backwards]:F.Focus.Previous}),{relativeTo:p.state.button})}),er=(0,M.useRender)();return i.default.createElement(i.default.Fragment,null,er({ourProps:ei,theirProps:d,slot:eo,defaultTag:"button",name:"Popover.Button"}),en&&!_&&m&&i.default.createElement(O.Hidden,{id:D,ref:P,features:O.HiddenFeatures.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:el}))}),ee=(0,M.forwardRefWithAs)(Y),et=(0,M.forwardRefWithAs)(Y),en=(0,M.forwardRefWithAs)(function(e,t){let n=(0,i.useId)(),{id:o=`headlessui-popover-panel-${n}`,focus:s=!1,anchor:a,portal:u=!1,modal:d=!1,transition:f=!1,...v}=e,h=W("Popover.Panel"),C=(0,I.useSlice)(h,h.selectors.isPortalled),[R,D,A,L,_]=(0,I.useSlice)(h,(0,i.useCallback)(e=>[e.popoverState,e.button,e.__demoMode,e.beforePanelSentinel,e.afterPanelSentinel],[])),z=`headlessui-focus-sentinel-before-${n}`,K=`headlessui-focus-sentinel-after-${n}`,V=(0,i.useRef)(null),H=(0,S.useResolvedAnchor)(a),[$,G]=(0,S.useFloatingPanel)(H),U=(0,S.useFloatingPanelProps)();H&&(u=!0);let[Q,Y]=(0,i.useState)(null),X=(0,x.useSyncRefs)(V,t,H?$:null,h.actions.setPanel,Y),Z=(0,m.useOwnerDocument)(D),ee=(0,m.useOwnerDocument)(V.current);(0,c.useIsoMorphicEffect)(()=>(h.actions.setPanelId(o),()=>h.actions.setPanelId(null)),[o,h]);let et=(0,P.useOpenClosed)(),[en,eo]=(0,E.useTransition)(f,Q,null!==et?(et&P.State.Open)===P.State.Open:R===B.Open);(0,p.useOnDisappear)(en,D,h.actions.close),(0,b.useScrollLock)(!A&&d&&en,ee);let es=(0,r.useEvent)(e=>{var t;if(e.key===j.Keys.Escape){if(h.state.popoverState!==B.Open||!V.current)return;let n=(0,k.getActiveElement)(V.current);if(n&&!V.current.contains(n))return;e.preventDefault(),e.stopPropagation(),h.actions.close(),null==(t=h.state.button)||t.focu
4s()}});(0,i.useEffect)(()=>{var t;e.static||R===B.Closed&&(null==(t=e.unmount)||t)&&h.actions.setPanel(null)},[R,e.unmount,e.static,h]),(0,i.useEffect)(()=>{if(A||!s||R!==B.Open||!V.current)return;let e=(0,k.getActiveElement)(V.current);V.current.contains(e)||(0,F.focusIn)(V.current,F.Focus.First)},[A,s,V.current,R]);let ei=(0,g.useSlot)({open:R===B.Open,close:h.actions.refocusableClose}),ea=(0,M.mergeProps)(H?U():{},{ref:X,id:o,onKeyDown:es,onBlur:s&&R===B.Open?e=>{var t,n,o,s,i;let a=e.relatedTarget;a&&V.current&&(null!=(t=V.current)&&t.contains(a)||(h.actions.close(),(null!=(o=null==(n=L.current)?void 0:n.contains)&&o.call(n,a)||null!=(i=null==(s=_.current)?void 0:s.contains)&&i.call(s,a))&&a.focus({preventScroll:!0})))}:void 0,tabIndex:-1,style:{...v.style,...G,"--button-width":(0,l.useElementSize)(en,D,!0).width},...(0,E.transitionDataAttributes)(eo)}),el=(0,y.useTabDirection)(),er=(0,r.useEvent)(()=>{let e=V.current;e&&(0,T.match)(el.current,{[y.Direction.Forwards]:()=>{var t;(0,F.focusIn)(e,F.Focus.First)===F.FocusResult.Error&&(null==(t=h.state.afterPanelSentinel.current)||t.focus())},[y.Direction.Backwards]:()=>{var e;null==(e=h.state.button)||e.focus({preventScroll:!0})}})}),eu=(0,r.useEvent)(()=>{let e=V.current;e&&(0,T.match)(el.current,{[y.Direction.Forwards]:()=>{var e;if(!h.state.button)return;let t=null!=(e=(0,k.getRootNode)(h.state.button))?e:document.body,n=(0,F.getFocusableElements)(t),o=n.indexOf(h.state.button),s=n.slice(0,o+1),i=[...n.slice(o+1),...s];for(let e of i.slice())if("true"===e.dataset.headlessuiFocusGuard||null!=Q&&Q.contains(e)){let t=i.indexOf(e);-1!==t&&i.splice(t,1)}(0,F.focusIn)(i,F.Focus.First,{sorted:!1})},[y.Direction.Backwards]:()=>{var t;(0,F.focusIn)(e,F.Focus.Previous)===F.FocusResult.Error&&(null==(t=h.state.button)||t.focus())}})}),ec=(0,M.useRender)();return i.default.createElement(P.ResetOpenClosedProvider,null,i.default.createElement(q.Provider,{value:o},i.default.createElement(w.CloseProvider,{value:h.actions.refocusableClose},i.default.createElement(N.Portal,{enabled:!!u&&(e.static||en),ownerDocument:Z},en&&C&&i.default.createElement(O.Hidden,{id:z,ref:L,features:O.HiddenFeatures.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:er}),ec({ourProps:ea,theirProps:v,slot:ei,defaultTag:"div",features:J,visible:en,name:"Popover.Panel"}),en&&C&&i.default.createElement(O.Hidden,{id:K,ref:_,features:O.HiddenFeatures.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:eu})))))}),eo=(0,M.forwardRefWithAs)(function(e,t){let n=(0,i.useRef)(null),o=(0,x.useSyncRefs)(n,t),[s,a]=(0,i.useState)([]),l=(0,r.useEvent)(e=>{a(t=>{let n=t.indexOf(e);if(-1!==n){let e=t.slice();return e.splice(n,1),e}return t})}),u=(0,r.useEvent)(e=>(a(t=>[...t,e]),()=>l(e))),c=(0,r.useEvent)(()=>{var e;let t=(0,k.getRootNode)(n.current);if(!t)return!1;let o=(0,k.getActiveElement)(n.current);return!!(null!=(e=n.current)&&e.contains(o))||s.some(e=>{var n,s;return(null==(n=t.getElementById(e.buttonId.current))?void 0:n.contains(o))||(null==(s=t.getElementById(e.panelId.current))?void 0:s.contains(o))})}),d=(0,r.useEvent)(e=>{for(let t of s)t.buttonId.current!==e&&t.close()}),p=(0,i.useMemo)(()=>({registerPopover:u,unregisterPopover:l,isFocusWithinPopoverGroup:c,closeOthers:d}),[u,l,c,d]),f=(0,g.useSlot)({}),m=(0,M.useRender)();return i.default.createElement(h.MainTreeProvider,null,i.default.createElement(G.Provider,{value:p},m({ourProps:{ref:o},theirProps:e,slot:f,defaultTag:"div",name:"Popover.Group"})))}),es=Object.assign(X,{Button:Z,Backdrop:et,Overlay:ee,Panel:en,Group:eo});e.s(["Popover",0,es,"PopoverBackdrop",0,et,"PopoverButton",0,Z,"PopoverGroup",0,eo,"PopoverOverlay",0,ee,"PopoverPanel",0,en],998307)},153501,e=>{"use strict";let t;var n=e.i(429427),o=e.i(371330),s=e.i(271645),i=e.i(436289),a=e.i(503269),l=e.i(214520),r=e.i(914189),u=e.i(835696),c=e.i(941444),d=e.i(255743),p=e.i(294316),f=e.i(601893),m=e.i(140721),v=e.i(942803),h=e.i(233538),b=e.i(652265),g=e.i(694421),x=e.i(397701),y=e.i(402155),E=e.i(700020),w=e.i(35889),S=e.i(998348),O=e.i(722678),P=((t=P||{})[t.RegisterOption=0]="RegisterOption",t[t.UnregisterOption=1]="UnregisterOption",t);let I={0(e,t){let n=[...e.options,{id:t.id,element:t.element,propsRef:t.propsRef}];return{...e,options:(0,b.sortByDomNode)(n,e=>e.element.current)}},1(e,t){let n=e.options.slice(),o=e.options.findIndex(e=>e.id===t.id);return -1===o?e:(n.splice(o,1),{...e,options:n})}},C=(0,s.createContext)(null);function R(e){let t=(0,s.useContext)(C);if(null===t){let t=Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,R),t}return t}C.displayName="RadioGroupDataContext";let F=(0,s.createContext)(null);function T(e){let t=(0,s.useContext)(F);if(null===t){let t=Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,T),t}return t}function k(e,t){return(0,x.match)(t.type,I,e,t)}F.displayName="RadioGroupActionsContext";let M=(0,E.forwardRefWithAs)(function(e,t){let n=(0,s.useId)(),o=(0,f.useDisabled)(),{id:u=`headlessui-radiogroup-${n}`,value:c,form:v,name:h,onChange:x,by:P,disabled:I=o||!1,defaultValue:R,tabIndex:T=0,...M}=e,j=(0,i.useByComparator)(P),[N,D]=(0,s.useReducer)(k,{options:[]}),A=N.options,[L,_]=(0,O.useLabels)(),[B,z]=(0,w.useDescriptions)(),K=(0,s.useRef)(null),V=(0,p.useSyncRefs)(K,t),H=(0,l.useDefaultValue)(R),[$,W]=(0,a.useControllable)(c,x,H),G=(0,s.useMemo)(()=>A.find(e=>!e.propsRef.current.disabled),[A]),U=(0,s.useMemo)(()=>A.some(e=>j(e.propsRef.current.value,$)),[A,$]),q=(0,r.useEvent)(e=>{var t;if(I||j(e,$))return!1;let n=null==(t=A.find(t=>j(t.propsRef.current.value,e)))?void 0:t.propsRef.current;return(null==n||!n.disabled)&&(null==W||W(e),!0)}),Q=(0,r.useEvent)(e=>{if(!K.current)return;let t=A.filter(e=>!1===e.propsRef.current.disabled).map(e=>e.element.current);switch(e.key){case S.Keys.Enter:(0,g.attemptSubmit)(e.currentTarget);break;case S.Keys.ArrowLeft:case S.Keys.ArrowUp:if(e.preventDefault(),e.stopPropagation(),(0,b.focusIn)(t,b.Focus.Previous|b.Focus.WrapAround)===b.FocusResult.Success){let e=A.find(e=>(0,y.isActiveElement)(e.element.current));e&&q(e.propsRef.current.value)}break;case S.Keys.ArrowRight:case S.Keys.ArrowDown:if(e.preventDefault(),e.stopPropagation(),(0,b.focusIn)(t,b.Focus.Next|b.Focus.WrapAround)===b.FocusResult.Success){let e=A.find(e=>(0,y.isActiveElement)(e.element.current));e&&q(e.propsRef.current.value)}break;case S.Keys.Space:{e.preventDefault(),e.stopPropagation();let t=A.find(e=>(0,y.isActiveElement)(e.element.current));t&&q(t.propsRef.current.value)}}}),Y=(0,r.useEvent)(e=>(D({type:0,...e}),()=>D({type:1,id:e.id}))),J=(0,s.useMemo)(()=>({value:$,firstOption:G,containsCheckedOption:U,disabled:I,compare:j,tabIndex:T,...N}),[$,G,U,I,j,T,N]),X=(0,s.useMemo)(()=>({registerOption:Y,change:q}),[Y,q]),Z=(0,d.useSlot)({value:$}),ee=(0,s.useCallback)(()=>
4{if(void 0!==H)return q(H)},[q,H]),et=(0,E.useRender)();return s.default.createElement(z,{name:"RadioGroup.Description"},s.default.createElement(_,{name:"RadioGroup.Label"},s.default.createElement(F.Provider,{value:X},s.default.createElement(C.Provider,{value:J},null!=h&&s.default.createElement(m.FormFields,{disabled:I,data:{[h]:$||"on"},overrides:{type:"radio",checked:null!=$},form:v,onReset:ee}),et({ourProps:{ref:V,id:u,role:"radiogroup","aria-labelledby":L,"aria-describedby":B,onKeyDown:Q},theirProps:M,slot:Z,defaultTag:"div",name:"RadioGroup"})))))}),j=(0,E.forwardRefWithAs)(function(e,t){var i;let a=R("RadioGroup.Option"),l=T("RadioGroup.Option"),f=(0,s.useId)(),{id:m=`headlessui-radiogroup-option-${f}`,value:v,disabled:b=a.disabled||!1,autoFocus:g=!1,...x}=e,y=(0,s.useRef)(null),S=(0,p.useSyncRefs)(y,t),[P,I]=(0,O.useLabels)(),[C,F]=(0,w.useDescriptions)(),k=(0,c.useLatestValue)({value:v,disabled:b});(0,u.useIsoMorphicEffect)(()=>l.registerOption({id:m,element:y,propsRef:k}),[m,l,y,k]);let M=(0,r.useEvent)(e=>{var t;if((0,h.isDisabledReactIssue7711)(e.currentTarget))return e.preventDefault();l.change(v)&&(null==(t=y.current)||t.focus())}),j=(null==(i=a.firstOption)?void 0:i.id)===m,{isFocusVisible:N,focusProps:D}=(0,n.useFocusRing)({autoFocus:g}),{isHovered:A,hoverProps:L}=(0,o.useHover)({isDisabled:b}),_=a.compare(a.value,v),B=(0,E.mergeProps)({ref:S,id:m,role:"radio","aria-checked":_?"true":"false","aria-labelledby":P,"aria-describedby":C,"aria-disabled":!!b||void 0,tabIndex:b?-1:_||!a.containsCheckedOption&&j?a.tabIndex:-1,onClick:b?void 0:M,autoFocus:g},D,L),z=(0,d.useSlot)({checked:_,disabled:b,active:N,hover:A,focus:N,autofocus:g}),K=(0,E.useRender)();return s.default.createElement(F,{name:"RadioGroup.Description"},s.default.createElement(I,{name:"RadioGroup.Label"},K({ourProps:B,theirProps:x,slot:z,defaultTag:"div",name:"RadioGroup.Option"})))}),N=(0,E.forwardRefWithAs)(function(e,t){var i;let a=R("Radio"),l=T("Radio"),m=(0,s.useId)(),b=(0,v.useProvidedId)(),g=(0,f.useDisabled)(),{id:x=b||`headlessui-radio-${m}`,value:y,disabled:S=a.disabled||g||!1,autoFocus:P=!1,...I}=e,C=(0,s.useRef)(null),F=(0,p.useSyncRefs)(C,t),k=(0,O.useLabelledBy)(),M=(0,w.useDescribedBy)(),j=(0,c.useLatestValue)({value:y,disabled:S});(0,u.useIsoMorphicEffect)(()=>l.registerOption({id:x,element:C,propsRef:j}),[x,l,C,j]);let N=(0,r.useEvent)(e=>{var t;if((0,h.isDisabledReactIssue7711)(e.currentTarget))return e.preventDefault();l.change(y)&&(null==(t=C.current)||t.focus())}),{isFocusVisible:D,focusProps:A}=(0,n.useFocusRing)({autoFocus:P}),{isHovered:L,hoverProps:_}=(0,o.useHover)({isDisabled:S}),B=(null==(i=a.firstOption)?void 0:i.id)===x,z=a.compare(a.value,y),K=(0,E.mergeProps)({ref:F,id:x,role:"radio","aria-checked":z?"true":"false","aria-labelledby":k,"aria-describedby":M,"aria-disabled":!!S||void 0,tabIndex:S?-1:z||!a.containsCheckedOption&&B?a.tabIndex:-1,autoFocus:P,onClick:S?void 0:N},A,_),V=(0,d.useSlot)({checked:z,disabled:S,hover:L,focus:D,autofocus:P});return(0,E.useRender)()({ourProps:K,theirProps:I,slot:V,defaultTag:"span",name:"Radio"})}),D=O.Label,A=w.Description,L=Object.assign(M,{Option:j,Radio:N,Label:D,Description:A});e.s(["Radio",0,N,"RadioGroup",0,L,"RadioGroupDescription",0,A,"RadioGroupLabel",0,D,"RadioGroupOption",0,j])},662499,e=>{"use strict";var t=e.i(429427),n=e.i(371330),o=e.i(394487),s=e.i(271645),i=e.i(255743),a=e.i(601893),l=e.i(942803),r=e.i(700020),u=e.i(35889),c=e.i(722678);let d=(0,r.forwardRefWithAs)(function(e,d){let p=(0,s.useId)(),f=(0,l.useProvidedId)(),m=(0,a.useDisabled)(),{id:v=f||`headlessui-select-${p}`,disabled:h=m||!1,invalid:b=!1,autoFocus:g=!1,...x}=e,y=(0,c.useLabelledBy)(),E=(0,u.useDescribedBy)(),{isFocusVisible:w,focusProps:S}=(0,t.useFocusRing)({autoFocus:g}),{isHovered:O,hoverProps:P}=(0,n.useHover)({isDisabled:h}),{pressed:I,pressProps:C}=(0,o.useActivePress)({disabled:h}),R=(0,r.mergeProps)({ref:d,id:v,"aria-labelledby":y,"aria-describedby":E,"aria-invalid":b?"true":void 0,disabled:h||void 0,autoFocus:g},S,P,C),F=(0,i.useSlot)({disabled:h,invalid:b,hover:O,focus:w,active:I,autofocus:g});return(0,r.useRender)()({ourProps:R,theirProps:x,slot:F,defaultTag:"select",name:"Select"})});e.s(["Select",0,d])},368497,e=>{"use strict";var t=e.i(429427),n=e.i(371330),o=e.i(271645),s=e.i(394487),i=e.i(503269),a=e.i(214520),l=e.i(746725),r=e.i(914189),u=e.i(144279),c=e.i(255743),d=e.i(294316),p=e.i(601893),f=e.i(140721),m=e.i(942803),v=e.i(233538),h=e.i(813581),b=e.i(694421),g=e.i(700020),x=e.i(35889),y=e.i(998348),E=e.i(722678);let w=(0,o.createContext)(null);w.displayName="GroupContext";let S=o.Fragment,O=(0,g.forwardRefWithAs)(function(e,h){var S;let O=(0,o.useId)(),P=(0,m.useProvidedId)(),I=(0,p.useDisabled)(),{id:C=P||`headlessui-switch-${O}
4`,disabled:R=I||!1,checked:F,defaultChecked:T,onChange:k,name:M,value:j,form:N,autoFocus:D=!1,...A}=e,L=(0,o.useContext)(w),[_,B]=(0,o.useState)(null),z=(0,o.useRef)(null),K=(0,d.useSyncRefs)(z,h,null===L?null:L.setSwitch,B),V=(0,a.useDefaultValue)(T),[H,$]=(0,i.useControllable)(F,k,null!=V&&V),W=(0,l.useDisposables)(),[G,U]=(0,o.useState)(!1),q=(0,r.useEvent)(()=>{U(!0),null==$||$(!H),W.nextFrame(()=>{U(!1)})}),Q=(0,r.useEvent)(e=>{if((0,v.isDisabledReactIssue7711)(e.currentTarget))return e.preventDefault();e.preventDefault(),q()}),Y=(0,r.useEvent)(e=>{e.key===y.Keys.Space?(e.preventDefault(),q()):e.key===y.Keys.Enter&&(0,b.attemptSubmit)(e.currentTarget)}),J=(0,r.useEvent)(e=>e.preventDefault()),X=(0,E.useLabelledBy)(),Z=(0,x.useDescribedBy)(),{isFocusVisible:ee,focusProps:et}=(0,t.useFocusRing)({autoFocus:D}),{isHovered:en,hoverProps:eo}=(0,n.useHover)({isDisabled:R}),{pressed:es,pressProps:ei}=(0,s.useActivePress)({disabled:R}),ea=(0,c.useSlot)({checked:H,disabled:R,hover:en,focus:ee,active:es,autofocus:D,changing:G}),el=(0,g.mergeProps)({id:C,ref:K,role:"switch",type:(0,u.useResolveButtonType)(e,_),tabIndex:-1===e.tabIndex?0:null!=(S=e.tabIndex)?S:0,"aria-checked":H,"aria-labelledby":X,"aria-describedby":Z,disabled:R||void 0,autoFocus:D,onClick:Q,onKeyUp:Y,onKeyPress:J},et,eo,ei),er=(0,o.useCallback)(()=>{if(void 0!==V)return null==$?void 0:$(V)},[$,V]),eu=(0,g.useRender)();return o.default.createElement(o.default.Fragment,null,null!=M&&o.default.createElement(f.FormFields,{disabled:R,data:{[M]:j||"on"},overrides:{type:"checkbox",checked:H},form:N,onReset:er}),eu({ourProps:el,theirProps:A,slot:ea,defaultTag:"button",name:"Switch"}))}),P=function(e){var t;let[n,s]=(0,o.useState)(null),[i,a]=(0,E.useLabels)(),[l,r]=(0,x.useDescriptions)(),u=(0,o.useMemo)(()=>({switch:n,setSwitch:s}),[n,s]),c=(0,g.useRender)();return o.default.createElement(r,{name:"Switch.Description",value:l},o.default.createElement(a,{name:"Switch.Label",value:i,props:{htmlFor:null==(t=u.switch)?void 0:t.id,onClick(e){n&&(h.isHTMLLabelElement(e.currentTarget)&&e.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},o.default.createElement(w.Provider,{value:u},c({ourProps:{},theirProps:e,slot:{},defaultTag:S,name:"Switch.Group"}))))},I=E.Label,C=x.Description,R=Object.assign(O,{Group:P,Label:I,Description:C});e.s(["Switch",0,R,"SwitchDescription",0,C,"SwitchGroup",0,P,"SwitchLabel",0,I])},970554,e=>{"use strict";let t,n,o;var s=e.i(429427),i=e.i(371330),a=e.i(271645),l=e.i(394487),r=e.i(914189),u=e.i(835696),c=e.i(941444),d=e.i(144279),p=e.i(255743),f=e.i(294316),m=e.i(553521),v=e.i(2788);function h({onFocus:e}){let[t,n]=(0,a.useState)(!0),o=(0,m.useIsMounted)();return t?a.default.createElement(v.Hidden,{as:"button",type:"button",features:v.HiddenFeatures.Focusable,onFocus:t=>{t.preventDefault();let s,i=50;s=requestAnimationFrame(function t(){if(i--<=0){s&&cancelAnimationFrame(s);return}if(e()){if(cancelAnimationFrame(s),!o.current)return;n(!1);return}s=requestAnimationFrame(t)})}}):null}var b=e.i(652265),g=e.i(397701),x=e.i(368578),y=e.i(402155),E=e.i(700020);let w=a.createContext(null);function S({children:e}){let t=a.useRef({groups:new Map,get(e,t){var n;let o=this.groups.get(e);o||(o=new Map,this.groups.set(e,o));let s=null!=(n=o.get(t))?n:0;return o.set(t,s+1),[Array.from(o.keys()).indexOf(t),function(){let e=o.get(t);e>1?o.set(t,e-1):o.delete(t)}]}});return a.createElement(w.Provider,{value:t},e)}function O(e){let t=a.useContext(w);if(!t)throw Error("You must wrap your component in a <StableCollection>");let n=a.useId(),[o,s]=t.current.get(e,n);return a.useEffect(()=>s,[]),o}var P=e.i(998348),I=((t=I||{})[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),R=((o=R||{})[o.SetSelectedIndex=0]="SetSelectedIndex",o[o.RegisterTab=1]="RegisterTab",o[o.UnregisterTab=2]="UnregisterTab",o[o.RegisterPanel=3]="RegisterPanel",o[o.UnregisterPanel=4]="UnregisterPanel",o);let F={0(e,t){var n;let o=(0,b.sortByDomNode)(e.tabs,e=>e.current),s=(0,b.sortByDomNode)(e.panels,e=>e.current),i=o.filter(e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))}),a={...e,tabs:o,panels:s};if(t.index<0||t.index>o.length-1){let n=(0,g.match)(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>(0,g.match)(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===i.length)return a;let s=(0,g.match)(n,{0:()=>o.indexOf(i[0]),1:()=>o.indexOf(i[i.length-1])});return{...a,selectedIndex:-1===s?e.selectedIndex:s}}let l=o.slice(0,t.index),r=[...o.slice(t.index),...l].find(e=>i.includes(e));if(!r)return a;let u=null!=(n=o.indexOf(r))?n:e.selectedIndex;return -1===u&&(u=e.selectedIndex),{...a,selectedIndex:u}},1(e,t){if(e.tabs.includes(t.tab))return e;let n=e.tabs[e.selectedIndex],o=(0,b.sortByDomNode)([...e.tabs,t.tab],e=>e.current),s=e.selectedIndex;return e.info.current.isControlled||-1===(s=o.indexOf(n))&&(s=e.selectedIndex),{...e,tabs:o,selectedIndex:s}},2:(e,t)=>({...e,tabs:e.tabs.filter(e=>e!==t.tab)}),3:(e,t)=>
4e.panels.includes(t.panel)?e:{...e,panels:(0,b.sortByDomNode)([...e.panels,t.panel],e=>e.current)},4:(e,t)=>({...e,panels:e.panels.filter(e=>e!==t.panel)})},T=(0,a.createContext)(null);function k(e){let t=(0,a.useContext)(T);if(null===t){let t=Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,k),t}return t}T.displayName="TabsDataContext";let M=(0,a.createContext)(null);function j(e){let t=(0,a.useContext)(M);if(null===t){let t=Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,j),t}return t}function N(e,t){return(0,g.match)(t.type,F,e,t)}M.displayName="TabsActionsContext";let D=E.RenderFeatures.RenderStrategy|E.RenderFeatures.Static,A=(0,E.forwardRefWithAs)(function(e,t){var n,o;let c=(0,a.useId)(),{id:m=`headlessui-tabs-tab-${c}`,disabled:v=!1,autoFocus:h=!1,...w}=e,{orientation:S,activation:I,selectedIndex:C,tabs:R,panels:F}=k("Tab"),T=j("Tab"),M=k("Tab"),[N,D]=(0,a.useState)(null),A=(0,a.useRef)(null),L=(0,f.useSyncRefs)(A,t,D);(0,u.useIsoMorphicEffect)(()=>T.registerTab(A),[T,A]);let _=O("tabs"),B=R.indexOf(A);-1===B&&(B=_);let z=B===C,K=(0,r.useEvent)(e=>{let t=e();if(t===b.FocusResult.Success&&"auto"===I){let e=(0,y.getActiveElement)(A.current),t=M.tabs.findIndex(t=>t.current===e);-1!==t&&T.change(t)}return t}),V=(0,r.useEvent)(e=>{let t=R.map(e=>e.current).filter(Boolean);if(e.key===P.Keys.Space||e.key===P.Keys.Enter){e.preventDefault(),e.stopPropagation(),T.change(B);return}switch(e.key){case P.Keys.Home:case P.Keys.PageUp:return e.preventDefault(),e.stopPropagation(),K(()=>(0,b.focusIn)(t,b.Focus.First));case P.Keys.End:case P.Keys.PageDown:return e.preventDefault(),e.stopPropagation(),K(()=>(0,b.focusIn)(t,b.Focus.Last))}if(K(()=>(0,g.match)(S,{vertical:()=>e.key===P.Keys.ArrowUp?(0,b.focusIn)(t,b.Focus.Previous|b.Focus.WrapAround):e.key===P.Keys.ArrowDown?(0,b.focusIn)(t,b.Focus.Next|b.Focus.WrapAround):b.FocusResult.Error,horizontal:()=>e.key===P.Keys.ArrowLeft?(0,b.focusIn)(t,b.Focus.Previous|b.Focus.WrapAround):e.key===P.Keys.ArrowRight?(0,b.focusIn)(t,b.Focus.Next|b.Focus.WrapAround):b.FocusResult.Error}))===b.FocusResult.Success)return e.preventDefault()}),H=(0,a.useRef)(!1),$=(0,r.useEvent)(()=>{var e;H.current||(H.current=!0,null==(e=A.current)||e.focus({preventScroll:!0}),T.change(B),(0,x.microTask)(()=>{H.current=!1}))}),W=(0,r.useEvent)(e=>{e.preventDefault()}),{isFocusVisible:G,focusProps:U}=(0,s.useFocusRing)({autoFocus:h}),{isHovered:q,hoverProps:Q}=(0,i.useHover)({isDisabled:v}),{pressed:Y,pressProps:J}=(0,l.useActivePress)({disabled:v}),X=(0,p.useSlot)({selected:z,hover:q,active:Y,focus:G,autofocus:h,disabled:v}),Z=(0,E.mergeProps)({ref:L,onKeyDown:V,onMouseDown:W,onClick:$,id:m,role:"tab",type:(0,d.useResolveButtonType)(e,N),"aria-controls":null==(o=null==(n=F[B])?void 0:n.current)?void 0:o.id,"aria-selected":z,tabIndex:z?0:-1,disabled:v||void 0,autoFocus:h},U,Q,J);return(0,E.useRender)()({ourProps:Z,theirProps:w,slot:X,defaultTag:"button",name:"Tabs.Tab"})}),L=(0,E.forwardRefWithAs)(function(e,t){let{defaultIndex:n=0,vertical:o=!1,manual:s=!1,onChange:i,selectedIndex:l=null,...d}=e,m=o?"vertical":"horizontal",v=s?"manual":"auto",g=null!==l,x=(0,c.useLatestValue)({isControlled:g}),y=(0,f.useSyncRefs)(t),[w,O]=(0,a.useReducer)(N,{info:x,selectedIndex:null!=l?l:n,tabs:[],panels:[]}),P=(0,p.useSlot)({selectedIndex:w.selectedIndex}),I=(0,c.useLatestValue)(i||(()=>{})),C=(0,c.useLatestValue)(w.tabs),R=(0,a.useMemo)(()=>({orientation:m,activation:v,...w}),[m,v,w]),F=(0,r.useEvent)(e=>(O({type:1,tab:e}),()=>O({type:2,tab:e}))),k=(0,r.useEvent)(e=>(O({type:3,panel:e}),()=>O({type:4,panel:e}))),j=(0,r.useEvent)(e=>{D.current!==e&&I.current(e),g||O({type:0,index:e})}),D=(0,c.useLatestValue)(g?e.selectedIndex:w.selectedIndex),A=(0,a.useMemo)(()=>({registerTab:F,registerPanel:k,change:j}),[]);(0,u.useIsoMorphicEffect)(()=>{O({type:0,index:null!=l?l:n})},[l]),(0,u.useIsoMorphicEffect)(()=>{if(void 0===D.current||w.tabs.length<=0)return;let e=(0,b.sortByDomNode)(w.tabs,e=>e.current);e.some((e,t)=>w.tabs[t]!==e)&&j(e.indexOf(w.tabs[D.current]))});let L=(0,E.useRender)();return a.default.createElement(S,null,a.default.createElement(M.Provider,{value:A},a.default.createElement(T.Provider,{value:R},R.tabs.length<=0&&a.default.createElement(h,{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.focu
4s(),!0;return!1}}),L({ourProps:{ref:y},theirProps:d,slot:P,defaultTag:"div",name:"Tabs"}))))}),_=(0,E.forwardRefWithAs)(function(e,t){let{orientation:n,selectedIndex:o}=k("Tab.List"),s=(0,f.useSyncRefs)(t),i=(0,p.useSlot)({selectedIndex:o});return(0,E.useRender)()({ourProps:{ref:s,role:"tablist","aria-orientation":n},theirProps:e,slot:i,defaultTag:"div",name:"Tabs.List"})}),B=(0,E.forwardRefWithAs)(function(e,t){let{selectedIndex:n}=k("Tab.Panels"),o=(0,f.useSyncRefs)(t),s=(0,p.useSlot)({selectedIndex:n});return(0,E.useRender)()({ourProps:{ref:o},theirProps:e,slot:s,defaultTag:"div",name:"Tabs.Panels"})}),z=(0,E.forwardRefWithAs)(function(e,t){var n,o,i,l;let r=(0,a.useId)(),{id:c=`headlessui-tabs-panel-${r}`,tabIndex:d=0,...m}=e,{selectedIndex:h,tabs:b,panels:g}=k("Tab.Panel"),x=j("Tab.Panel"),y=(0,a.useRef)(null),w=(0,f.useSyncRefs)(y,t);(0,u.useIsoMorphicEffect)(()=>x.registerPanel(y),[x,y]);let S=O("panels"),P=g.indexOf(y);-1===P&&(P=S);let I=P===h,{isFocusVisible:C,focusProps:R}=(0,s.useFocusRing)(),F=(0,p.useSlot)({selected:I,focus:C}),T=(0,E.mergeProps)({ref:w,id:c,role:"tabpanel","aria-labelledby":null==(o=null==(n=b[P])?void 0:n.current)?void 0:o.id,tabIndex:I?d:-1},R),M=(0,E.useRender)();return I||null!=(i=m.unmount)&&!i||null!=(l=m.static)&&l?M({ourProps:T,theirProps:m,slot:F,defaultTag:"div",features:D,visible:I,name:"Tabs.Panel"}):a.default.createElement(v.Hidden,{"aria-hidden":"true",...T})}),K=Object.assign(A,{Group:L,List:_,Panels:B,Panel:z});e.s(["Tab",0,K,"TabGroup",0,L,"TabList",0,_,"TabPanel",0,z,"TabPanels",0,B],970554)},154324,e=>{"use strict";var t=e.i(429427),n=e.i(371330),o=e.i(271645),s=e.i(255743),i=e.i(601893),a=e.i(942803),l=e.i(700020),r=e.i(35889),u=e.i(722678);let c=(0,l.forwardRefWithAs)(function(e,c){let d=(0,o.useId)(),p=(0,a.useProvidedId)(),f=(0,i.useDisabled)(),{id:m=p||`headlessui-textarea-${d}`,disabled:v=f||!1,autoFocus:h=!1,invalid:b=!1,...g}=e,x=(0,u.useLabelledBy)(),y=(0,r.useDescribedBy)(),{isFocused:E,focusProps:w}=(0,t.useFocusRing)({autoFocus:h}),{isHovered:S,hoverProps:O}=(0,n.useHover)({isDisabled:v}),P=(0,l.mergeProps)({ref:c,id:m,"aria-labelledby":x,"aria-describedby":y,"aria-invalid":b?"true":void 0,disabled:v||void 0,autoFocus:h},w,O),I=(0,s.useSlot)({disabled:v,invalid:b,hover:S,focus:E,autofocus:h});return(0,l.useRender)()({ourProps:P,theirProps:g,slot:I,defaultTag:"textarea",name:"Textarea"})});e.s(["Textarea",0,c])},65365,e=>{"use strict";var t=e.i(843476),n=e.i(54755),o=e.i(225913);let s=(0,o.cva)("py-0.5 rounded-full text-sm m-auto",{variants:{variant:{yellow:"bg-yellow px-1",orange:"bg-orange px-1",green:"bg-gradient-to-r px-.5 from-[#00E2EA] to-[#00EB9B] p-[1px] text-white"}},defaultVariants:{variant:"yellow"}}),i=(0,o.cva)("",{variants:{variant:{yellow:"",orange:"",green:"bg-[#1D1D1F] py-0.5 px-1 rounded-full"}},defaultVariants:{variant:"yellow"}});e.s(["default",0,e=>(0,t.jsx)("div",{className:"flex select-none",children:(0,t.jsx)("div",{className:s({variant:"green"}),children:(0,t.jsx)("div",{className:i({variant:"green"}),children:(0,t.jsx)(n.default,{className:"text-[8px] leading-[12px] text-inherit font-extralight",children:e.text})})})})])},315812,e=>{"use strict";var t=e.i(843476),n=e.i(271645),o=e.i(998307),s=e.i(854056),i=e.i(225913),a=e.i(54755),l=e.i(65365),r=e.i(553758),u=e.i(926130);let c=(0,i.cva)("w-0 h-0 transition-opacity ease-out border-t-0 border-r-[15px] border-b-[15px] border-l-[15px] border-transparent border-b-obsidian absolute -bottom-[9px] left-[20%] right-[80%] z-20",{variants:{isShowing:{true:"opacity",false:"opacity-0"}}});e.s(["NavMenu",0,({navItem:e})=>{let[i,d]=(0,n.useState)(!1),p=(0,n.useRef)(null);return(0,t.jsxs)(o.Popover,{className:"flex align-middle",children:[(0,t.jsxs)("div",{className:"relative",onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),children:[(0,t.jsx)(o.PopoverButton,{className:"py-2 focus:outline-none",ref:p,children:(0,t.jsx)(a.default,{className:"text-white font-medium hover:text-light-blue",children:e.menuTitle})}),(0,t.jsx)("span",{className:c({isShowing:i})})]}),(0,t.jsx)(s.Transition,{as:"div",enter:"transition duration-50 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",className:"absolute z-10 top-16 drop-shadow-2xl rounded bg-white left-0 right-0 mx-auto w-max",show:i,appear:!0,unmount:!1,onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),children:(0,t.jsx)(o.PopoverPanel,{unmount:!1,className:"flex-col gap-6 py-12 px-[60px] bg-
4obsidian",children:(0,t.jsx)("div",{className:`grid grid-cols-${e?.navColumn?.navColumn?.length||2} gap-6 bg-obsidian`,children:e?.navColumn&&e?.navColumn?.navColumn?.map((n,o)=>(0,t.jsxs)("div",{className:"flex flex-col min-w-[270px]",children:[(0,t.jsx)("div",{className:"mb-4 text-white",children:n?.columnTitle?.text&&(0,t.jsx)("div",{className:`w-min text-white whitespace-nowrap ${n.columnTitle.link&&"hover:text-light-blue cursor-pointer"} flex align-bottom gap-1.5`,onClick:()=>d(!1),children:n?.columnTitle?.link?(0,t.jsxs)(r.default,{href:n.columnTitle.link??"",className:"flex text-white align-bottom gap-1.5 items-center",tagManagerEvent:e.tagManagerEvent,children:[(0,t.jsx)(a.default,{size:"p1",className:"font-bold text-white",children:n.columnTitle.text}),(0,t.jsx)(u.default,{direction:"right",className:"pt-0.5",width:18,height:18})]}):(0,t.jsx)(a.default,{className:"text-white text-p-small",children:n?.columnTitle.text})})}),(0,t.jsx)("div",{children:n.navColumnItem&&n?.navColumnItem?.columnItems?.map((n,o)=>(0,t.jsx)(r.default,{href:n.link??"",tagManagerEvent:e.tagManagerEvent,children:(0,t.jsxs)("div",{className:"text-white whitespace-nowrap flex gap-3 cursor-pointer group",onClick:()=>d(!1),children:[(0,t.jsx)(a.default,{size:"p",className:"font-normal text-white group-hover:text-light-blue",children:n.text}),n.pill&&n.pill.text&&(0,t.jsx)(l.default,{text:n.pill.text,variant:n.pill.variant})]})},o))})]},o))})})})]})},"pointerStyle",0,c])},510254,862743,12237,e=>{"use strict";var t=e.i(843476),n=e.i(348978),o=e.i(553758),s=e.i(926130);e.s(["default",0,({buttons:e,tagManagerEvent:i})=>{let a=!!(e.buttonOne?.label&&e.buttonOne?.link),l=!!(e.buttonTwo?.label&&e.buttonTwo?.link);if(!a&&!l)return null;let r=a&&!l;return(0,t.jsxs)("div",{className:`mt-auto flex ${r?"align-bottom":"flex-col"}`,children:[a&&(r?(0,t.jsxs)(o.default,{href:e.buttonOne.link,tagManagerEvent:i,className:"w-full flex justify-center items-center font-medium text-sm text-transparent bg-text-gradient-teal bg-clip-text px-3 py-4 group/nav-col-button",children:[e.buttonOne.label,(0,t.jsx)(s.default,{direction:"right",className:"fill-white w-auto h-auto transition-transform duration-600 ease-in-out group-hover/nav-col-button:translate-x-1 mt-0.5",width:14,height:14})]}):(0,t.jsx)(n.default,{to:e.buttonOne.link,tagManagerEvent:i,variant:e.buttonOne.variant,className:"w-full",children:e.buttonOne.label})),l&&(0,t.jsx)(n.default,{to:e.buttonTwo.link,tagManagerEvent:i,variant:e.buttonTwo.variant,className:"w-full mt-1",children:e.buttonTwo.label})]})}],510254),e.s(["default",0,({label:e,link:n,tagManagerEvent:i,onClick:a})=>(0,t.jsxs)(o.default,{href:n,className:"group/link self-start inline-flex items-center text-xs font-medium text-white pb-0.5 relative before:content-[''] before:absolute before:left-0 before:bottom-0 before:h-px before:w-0 before:border-b before:border-teal before:transition-all before:duration-600 before:ease-in-out hover:before:w-full",tagManagerEvent:i,onClick:a,children:[e,(0,t.jsx)(s.default,{direction:"right",className:"fill-white w-auto h-auto transition-transform duration-600 ease-in-out group-hover/link:translate-x-1",width:14,height:14})]})],862743),e.s(["default",0,({condition:e,href:n,className:s,tagManagerEvent:i,children:a,onLinkClick:l})=>e?(0,t.jsx)(o.default,{href:n,className:s,tagManagerEvent:i,onClick:l,children:a}):(0,t.jsx)("div",{className:s,children:a})],12237)},585170,e=>{"use strict";var t=e.i(843476),n=e.i(271645),o=e.i(998307),s=e.i(225913),i=e.i(54755),a=e.i(926130),l=e.i(553758);let r=({label:e,link:n,tagManagerEvent:o,callback:s})=>(0,t.jsx)("div",{className:"flex items-center min-h-4 mb-5",children:n?(0,t.jsxs)(l.default,{href:n,className:"group/column-title flex self-start items-center transition-all duration-600 ease-in-out pl-[18px]",tagManagerEvent:o,onClick:s,children:[(0,t.jsx)(i.default,{size:"p1",className:"font-medium text-sm text-transparent bg-text-gradient-teal bg-clip-text",children:e}),(0,t.jsx)(a.default,{direction:"right",className:"fill-white w-auto h-auto transition-transform duration-600 ease-in-out mt-1 group-hover/column-title:translate-x-1",width:14,height:14})]}):(0,t.jsx)("div",{className:"text-white pl-[18px]",children:(0,t.jsx)(i.default,{size:"p1",className:"font-medium text-sm text-transparent bg-text-gradient-teal bg-clip-text",children:e})})});var u=e.i(225268),c=e.i(862743),d=e.i(12237);let p=({item:e,variant:n,tagManagerEvent:o,callback:s})=>{let a=!!e.additionalLinks?.length;return(0,t.jsxs)(d.default,{condition:!a,href:e.link??"",tagManagerEvent:o,className:`flex gap-2.5 rounded-lg py-2.5 px-[18px] ${"v1"===n?"hover:bg-[#0e0e0f]":"hover:bg-obsidian"} transition-color duration-200 ${!e.additionalLinks&&!e.subtext&&"flex items-center max-h-[50px]"}`,onLinkClick:s,children:[e?.image&&(0,t.jsx)(u.default,{className:"size-[22px] shrink-0",imageData:e.image,width:22,height:22,contain:!0}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"flex gap-2.5 max-w-[420px]",children:(0,t.jsx)("div",{className:"w-full",children:a?(0,t.jsxs)(l.default,{href:e.link??"",tagManagerEvent:o,className:"w-full",onClick:s,children:[(0,t.jsx)("div",{className:"flex items-center gap-1.5 w-full",children:(0,t.jsx)(i.default,{className:"text-white",children:e.text})}),e.subtext&&(0,t.jsx)("div",{className:"mt-[7px] mb-[7px]",children:(0,t.jsx)(i.default,{className:"text-xs text-secondary-text",children:e.subtext})})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"flex items-center gap-1.5 w-full",children:(0,t.jsx)(i.default,{className:"text-white",children:e.text})}),e.subtext&&(0,t.jsx)("div",{className:"mt-[7px] mb-[7px]",children:(0,t.jsx)(i.default,{className:"text-xs text-secondary-text",children:e.subtext})})]})})}),a&&(0,t.jsx)("div",{className:"flex flex-col gap-y-1 gap-x-2.5 max-w-[420px]",children:e.additionalLinks&&e.additionalLinks.map((e,n)=>(0,t.jsx)(c.default,{label:e.label??"",link:e.link??"",tagManagerEvent:o,onClick:s},n))})]})]})};var f=e.i(510254);let m=({column:e,tagManagerEvent:o,callback:s})=>
4(0,t.jsxs)("div",{className:"flex flex-col p-[15px] min-w-[240px] max-w-[360px]",style:{backgroundColor:((e,t="#1D1D1F")=>"#0e0e0f"===e||"#1D1D1F"===e?e:t)(e.backgroundColor)},children:[e?.columnTitle?.text&&(0,t.jsx)(r,{label:e.columnTitle.text,link:e.columnTitle?.link,tagManagerEvent:o,callback:()=>s()}),(0,t.jsx)("div",{className:"flex flex-col gap-x-6 gap-y-0.5 text-left h-full",children:e.detailedNavColumnItem&&e?.detailedNavColumnItem?.columnItems?.map((i,a)=>{switch(i._type){case"columnItem":return(0,t.jsx)(p,{item:i,variant:"#1D1D1F"===e.backgroundColor?"v1":"#0e0e0f"===e.backgroundColor?"v2":"v1",tagManagerEvent:o,callback:()=>s()},a);case"additionalHeader":return(0,t.jsxs)(n.Fragment,{children:[(0,t.jsx)("div",{className:"min-h-8"}),(0,t.jsx)(r,{label:i.header??"",link:i.link,tagManagerEvent:o,callback:()=>s()})]},a);case"buttons":return(0,t.jsx)(f.default,{buttons:i,tagManagerEvent:o},a)}})})]}),v=({button:e,tagManagerEvent:n,callback:o})=>(0,t.jsxs)(l.default,{href:e.link,className:"group/col-button relative flex flex-col place-content-between w-40 pt-[27px] pb-[27px] pl-[18.5px] pr-[18.5px] ml-[-1px] bg-[#030303] cursor-pointer hover:bg-obsidian border-l border-white/20 transition-colors duration-150 overflow-hidden",tagManagerEvent:n,onClick:()=>o(),children:[e.image&&(0,t.jsx)("div",{className:"absolute w-full",style:{top:"5%",left:"0"},children:(0,t.jsx)(u.default,{className:"w-full h-auto opacity-20",imageData:e.image,width:120,height:120})}),(0,t.jsxs)("div",{className:"relative z-10 mt-auto",children:[(0,t.jsxs)("span",{className:"inline-flex items-end font-medium text-sm text-transparent bg-text-gradient-teal bg-clip-text text-balance",children:[e.title,(0,t.jsx)(a.default,{direction:"right",className:"shrink-0 fill-white w-auto h-auto transition-transform duration-600 ease-in-out group-hover/col-button:translate-x-1 mb-0.5",width:14,height:14})]}),e.subtitle&&(0,t.jsx)("p",{className:"font-bold uppercase text-[10px] text-white mt-4 tracking-[0.63px]",children:e.subt
4itle})]})]}),h=(0,s.cva)(["absolute z-10 top-[5rem]","drop-shadow-2xl bg-obsidian w-max","rounded-br-[7px] rounded-bl-[7px]","border border-white/20 overflow-hidden","transition ease-out","data-[enter]:duration-100 data-[leave]:duration-75","data-[closed]:scale-95 data-[closed]:opacity-0"],{variants:{layout:{wide:"left-0 right-0 mx-auto",narrow:"translate-x-[-40%]"}},defaultVariants:{layout:"narrow"}}),b=(0,s.cva)(["flex items-center font-medium text-base text-white","pb-[25px] mt-[25px]","transition-[border] duration-75","border-b-2 border-transparent"],{variants:{open:{true:"border-b-teal",false:""}}}),g=({open:e,close:s,navItem:l})=>{let r=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(!e)return;let t=e=>{r.current&&!r.current.contains(e.target)&&s()};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[e,s]);let u=l.detailedNavColumn?.detailedNavColumn??[],c=u.length>2?"wide":"narrow";return(0,t.jsxs)("div",{ref:r,className:"contents",children:[(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)(o.PopoverButton,{className:"outline-none data-[focus]:outline data-[focus]:outline-white",children:(0,t.jsxs)(i.default,{className:b({open:e}),children:[l.menuTitle,(0,t.jsx)(a.default,{direction:"down",fill:"white",className:`mt-[3px] ml-[3px] h-4 w-4 transition-transform duration-100 ${e?"rotate-180":"rotate-0"}`})]})})}),(0,t.jsx)(o.PopoverPanel,{transition:!0,unmount:!1,className:h({layout:c}),children:(0,t.jsx)("div",{className:"flex-col gap-8 bg-obsidian border-t border-t-white/10",children:(0,t.jsx)("div",{className:"grid grid-flow-col auto-cols-max gap-[1px] bg-obsidian w-auto",children:u.map((e,n)=>{switch(e._type){case"detailedNavColumnObject":return(0,t.jsx)(m,{column:e,tagManagerEvent:l.tagManagerEvent,callback:()=>s()},n);case"detailedNavColumnButton":return(0,t.jsx)(v,{button:e,tagManagerEvent:l.tagManagerEvent,callback:()=>s()},n)}})})})})]})};e.s(["default",0,({navItem:e})=>(0,t.jsx)(o.Popover,{className:"group flex align-middle",children:({open:n,close:o})=>(0,t.jsx)(g,{open:n,close:o,navItem:e})})],585170)},309882,e=>{"use strict";var t=e.i(843476),n=e.i(271645),o=e.i(618566),s=e.i(168048),i=e.i(553758);let a=e=>{let n=(0,t.jsx)(s.default,{bg:void 0,className:"flex items-center py-2",outerClassName:"!bg-[linear-gradient(to_right,_#00E2EA,_#00EB9B)]",children:e.subTitle&&(0,t.jsxs)("p",{className:"text-sm h-full px-2 sm:px-0 text-black",children:[e.title&&(0,t.jsx)("strong",{children:e.title}),e.subTitle]})});return(0,t.jsx)(t.Fragment,{children:e.link?(0,t.jsx)(i.default,{href:e.link.to??"",tagManagerEvent:e.tagManagerEvent,newTab:e.link.newTab??!1,children:n}):(0,t.jsx)(t.Fragment,{children:n})})};var l=e.i(998307),r=e.i(854056),u=e.i(225913),c=e.i(54755),d=e.i(926130);let p=({label:e,link:n,className:o})=>(0,t.jsx)(i.default,{href:n,className:o??"font-[15px] cursor-pointer text-inherit text-white hover:text-teal",children:e}),f=({menuItem:e})=>{let[o,s]=(0,n.useState)(!1),[i,a]=(0,n.useState)([]),f=(0,u.cva)("font-normal cursor-pointer",{variants:{isShowing:{true:"text-teal",false:"text-white"}}}),h=(0,t.jsx)(c.default,{className:f({isShowing:o}),children:e.name}),b=()=>{a(e=>(e.forEach(e=>{clearTimeout(e)}),[]))},g=()=>{let e=setTimeout(()=>{s(!1),b()},100);a(t=>[...t,e])};return e.dropdownItems?(0,t.jsxs)(l.Popover,{children:[(0,t.jsx)("div",{className:"relative",onMouseEnter:()=>{b(),s(!0)},onMouseLeave:()=>g(),children:(0,t.jsxs)(l.PopoverButton,{className:"flex flex-row items-center focus:outline-none text-white",onClick:()=>s(e=>!e),children:[h,(0,t.jsx)(d.default,{direction:o?"up":"down",className:`size-4 mt-0.5 ${o?"fill-teal":"fill-white"}`})]})}),(0,t.jsx)(r.Transition,{as:"div",enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-50 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",className:"absolute p-[10px] drop-shadow-2xl w-max z-10 bg-obsidian border-t-[3px] border-t-solid border-t-teal -translate-x-1/4 translate-y-[12px]",show:o,appear:!0,unmount:!1,onMouseEnter:()=>{b(),s(!0)},onMouseLeave:()=>g(),children:(0,t.jsx)(l.PopoverPanel,{unmount:!1,className:"flex flex-col text-white",children:e.dropdownItems&&e.dropdownItems.map((e,o)=>(0,t.jsxs)(n.Fragment,{children:[0!==o&&(0,t.jsx)(v,{height:2,margin:7,color:"#4d4d4d"}),"staticSubmenuItem"===e._type&&e.label&&e.link&&(0,t.jsx)(p,{label:e.label,link:e.link,className:"text-white hover:text-teal font-normal rounded-[7px] pl-[7px] pt-[5px] pb-[5px]"}),"secondDropdownMenu"===e._type&&(0,t.jsx)(m,{menuItem:e})]},e._key))})})]}):h},m=({menuItem:e})=>
4{let[o,s]=(0,n.useState)(!1),[i,a]=(0,n.useState)(),[f,m]=(0,n.useState)(),[h,b]=(0,n.useState)([]),g=`${e._type}_${e.name}`,x=`${g}_popover`,y=(0,u.cva)("rounded-[7px] mr-[5px]",{variants:{isShowing:{true:"text-teal",false:"text-white "}}}),E=(0,t.jsx)(c.default,{className:y({isShowing:o}),children:e.name}),w=()=>{b(e=>(e.forEach(e=>{clearTimeout(e)}),[]))},S=()=>{let e=setTimeout(()=>{s(!1),w()},100);b(t=>[...t,e])};return e.dropdownItems?(0,t.jsxs)(l.Popover,{id:g,children:[(0,t.jsx)("div",{className:"relative",onMouseEnter:()=>{let e;(e=document.getElementById(g))&&(a(e.getBoundingClientRect()),setTimeout(()=>{let e=document.getElementById(x);e&&m(e.getBoundingClientRect())},100),w(),s(!0))},onMouseLeave:()=>S(),children:(0,t.jsxs)(l.PopoverButton,{className:`flex flex-row items-center focus:outline-none ${"secondDropdownMenu"===e._type?`text-white justify-between w-full rounded-[7px] px-[7px] py-[5px] ${o&&"bg-obsidian"}`:"text-teal"}`,onClick:()=>s(e=>!e),children:[E,(0,t.jsx)(d.default,{direction:o?"down":"right",fill:o?"teal":"white",className:"size-4 mt-0.5"})]})}),(0,t.jsx)(r.Transition,{as:"div",enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-50 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",className:`absolute p-2.5 drop-shadow-2xl w-max z-20 bg-obsidian rounded-[7px] ${f?"visible":"invisible"}`,show:o,appear:!0,unmount:!1,onMouseEnter:()=>{w(),s(!0)},onMouseLeave:()=>S(),id:x,style:i&&f?{left:`${i.right+f.width+22<window.innerWidth?i.width+22:-1*(f.width+2)}px`,marginTop:`${-1*i.height}px`}:{},children:(0,t.jsx)(l.PopoverPanel,{unmount:!1,className:"flex flex-col text-white",children:e.dropdownItems&&e.dropdownItems.map((e,o)=>(0,t.jsxs)(n.Fragment,{children:[0!==o&&(0,t.jsx)(v,{height:2,margin:5,color:"#4d4d4d"}),e.link&&e.label&&(0,t.jsx)(p,{label:e.label,link:e.link,className:"text-white hover:text-teal rounded-[7px] pl-[7px] pr-[15px] pt-[5px] pb-[5px]"})]},o))})})]}):E},v=({height:e,margin:n,color:o})=>(0,t.jsx)("div",{style:{minHeight:`${e}px`,height:`${e}px`,maxHeight:`${e}px`,marginTop:`${n}px`,marginBottom:`${n}px`,backgroundColor:o}}),h=({menu:e})=>{let n=e.submenuTitle??(e.subdirectory?e.subdirectory[0].toUpperCase()+e.subdirectory.slice(1):"");return(0,t.jsx)("div",{className:"hidden tablet:block fixed h-fit w-full test z-20",children:(0,t.jsx)(s.default,{bg:"obsidian/80",outerClassName:"backdrop-blur",className:"flex justify-center",children:(0,t.jsxs)("div",{className:"flex flex-row gap-[25px] h-full py-[12px] text-white",children:[(0,t.jsx)("p",{className:"text-white text-[15px] font-medium",children:n})," ",(0,t.jsx)("p",{className:"text-white text-[15px] font-medium",children:"|"}),e.subDirectoryMenuItems&&e.subDirectoryMenuItems.map((e,n)=>{switch(e._type){case"staticSubmenuItem":if(!e.label||!e.link)return null;return(0,t.jsx)(p,{label:e.label,link:e.link},n);case"submenuDropdown":return(0,t.jsx)(f,{menuItem:e},n)}})]})})})},b=({menuItem:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.default,{className:"font-[15px] text-secondary-text",children:e.name}),e.dropdownItems&&e.dropdownItems.length>0&&(0,t.jsx)("div",{className:"flex flex-col gap-[10px] border-l-[2px] border-l-white/40 pl-[10px]",children:e.dropdownItems.map((e,n)=>{switch(e._type){case"staticSubmenuItem":return(0,t.jsx)(p,{label:e.label??"",link:e.link??"",className:"font-[15px] cursor-pointer text-inherit"},n);case"secondDropdownMenu":return(0,t.jsx)(b,{menuItem:e},e._key)}})})]});function g({menu:e}){let o=e.submenuTitle??(e.subdirectory?e.subdirectory[0].toUpperCase()+e.subdirectory.slice(1):""),[s,i]=(0,n.useState)(!1);return(0,t.jsx)("div",{className:"fixed tablet:hidden h-fit w-full z-20",onClick:()=>i(e=>!e),children:(0,t.jsxs)(l.Popover,{children:[(0,t.jsx)("div",{className:"relative",children:(0,t.jsxs)(l.PopoverButton,{className:"flex flex-row place-content-between bg-darkNavy w-full text-white pt-[12px] pb-[12px] pl-[15px] pr-[15px] focus:outline-none",onClick:()=>i(e=>!e),children:[(0,t.jsx)("span",{children:o}),(0,t.jsx)(d.default,{direction:s?"up":"down",fill:"white",className:"h-[25px] w-[25px]"})]})}),(0,t.jsx)(r.Transition,{as:"div",enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",className:"absolute p-[10
4px] z-10 drop-shadow-2xl bg-obsidian border-t-[2px] border-t-[#000253] w-full",show:s,appear:!0,unmount:!1,children:(0,t.jsx)(l.PopoverPanel,{unmount:!1,className:"flex flex-col gap-[10px] p-[10px] pt-[0px] max-h-[350px] overflow-scroll scrollbar-hide  text-white",children:e.subDirectoryMenuItems&&e.subDirectoryMenuItems.map((e,n)=>{switch(e._type){case"staticSubmenuItem":return(0,t.jsx)(p,{label:e.label??"",link:e.link??"",className:"font-[15px] cursor-pointer text-inherit"},n);case"submenuDropdown":return(0,t.jsx)(b,{menuItem:e},n)}})})})]})})}e.s(["default",0,function({submenus:e,banner:s}){let i,l=(0,o.usePathname)()??"";if(e){let t=l.split("/");for(let n=t.length-1;n>0;n--){for(let o=0;o<e.length;o++){let s=e[o];if(s?.subdirectory&&t[n]===s.subdirectory.toLocaleLowerCase()){i=e[o];break}}if(i)break}}return i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(g,{menu:i}),(0,t.jsx)(h,{menu:i})]}):s?.isEnabled&&(0,n.createElement)(a,{...s,key:"banner"})}],309882)},821388,996071,e=>{"use strict";var t=e.i(271645);let n=!1,o=new Set;function s(e){n!==e&&(n=e,o.forEach(e=>e()))}function i(e){return o.add(e),()=>o.delete(e)}function a(){return n}function l(){return!1}function r(){return[(0,t.useSyncExternalStore)(i,a,l),s]}let u={current:null};e.s(["mobileNavToggleButtonRef",0,u,"useMobileNavOpen",0,r],821388);var c=e.i(843476);let d="mobile-nav-panel";e.s(["MOBILE_NAV_PANEL_ID",0,d,"default",0,()=>{let[e,t]=r();return(0,c.jsx)("div",{className:"flex justify-end xl:hidden",children:(0,c.jsxs)("button",{ref:u,type:"button",className:"group cursor-pointer focus:outline-none focus-visible:outline focus-visible:outline-white size-10 fixed top-5 right-4 z-[1000] mobileNavHamburgerClick ","aria-label":"hamburger menu","aria-expanded":e,"aria-controls":d,onClick:()=>t(!e),children:[(0,c.jsx)("span",{className:`w-6 h-0.5 block bg-white transition duration-300 ease-in-out mx-auto ${e?"translate-y-0.5 rotate-45 h-1":"mb-1"}`}),(0,c.jsx)("span",{className:`w-6 h-0.5 block bg-white transition duration-300 ease-in-out mx-auto ${e?"opacity-0":"my-1"}`}),(0,c.jsx)("span",{className:`w-6 h-0.5 block bg-white transition duration-300 ease-in-out mx-auto ${e?"-translate-y-1  -rotate-45 h-1":"mt-1"}`})]})})}],996071)},663832,e=>{"use strict";var t=e.i(843476),n=e.i(442925),o=e.i(854056),s=e.i(427217),i=e.i(271645),a=e.i(407653),l=e.i(821388),r=e.i(996071),u=e.i(348978),c=e.i(553758),d=e.i(65365),p=e.i(54755);let f=({data:e,tagManagerEvent:n})=>{let{setIsOpen:o}=(0,i.useContext)(a.default);return e?(0,t.jsxs)("div",{className:"mb-4",children:[e?.columnTitle?.link?(0,t.jsx)(c.default,{href:e?.columnTitle?.link??"",tagManagerEvent:n,children:(0,t.jsx)("div",{onClick:()=>o(!1),children:(0,t.jsx)(p.default,{className:"mb-7 text-transparent bg-text-gradient-teal bg-clip-text font-medium",children:e?.columnTitle?.text})})}):(0,t.jsx)(p.default,{className:"text-secondary-text mb-7",children:e?.columnTitle?.text}),(0,t.jsx)("div",{className:"flex flex-col gap-4 pb-10",children:e?.navColumnItem?.columnItems?.map((e,s)=>(0,t.jsx)(c.default,{href:e.link??"",className:"group",tagManagerEvent:n,children:(0,t.jsxs)("div",{className:"flex gap-3 align-middle",onClick:()=>o(!1),children:[(0,t.jsx)(p.default,{className:"text-white group-hover:text-light-blue",children:e.text}),e.pill&&(0,t.jsx)(d.default,{text:e.pill.text,variant:e.pill.variant})]})},s))})]}):null};var m=e.i(510254),v=e.i(225268),h=e.i(862743),b=e.i(12237);let g=({item:e,tagManagerEvent:n,callback:o})=>{let s=!!e.additionalLinks?.length;return(0,t.jsx)(b.default,{condition:!s,href:e.link??"",tagManagerEvent:n,className:"group/mobile-nav-link-add",children:(0,t.jsxs)("div",{className:"flex flex-col align-middle cursor-pointer",onClick:()=>o(),children:[(0,t.jsxs)("div",{className:"flex flex-row gap-[7px]",children:[e?.image&&(0,t.jsx)(v.default,{className:"size-[30px]",imageData:e?.image,width:30,height:30}),s?(0,t.jsxs)(c.default,{href:e.link??"",tagManagerEvent:n,className:"group/mobile-nav-link",children:[(0,t.jsx)(p.default,{className:"text-white group-hover/mobile-nav-link:text-teal",children:e.text}),(0,t.jsx)(p.default,{size:"p1",className:"text-secondary-text mt-1.5 max-w-[290px]",children:e.subtext})]}):(0,t.jsxs)("div",{children:[(0,t.jsx)(p.default,{className:"text-white group-hover/mobile-nav-link-add:text-teal",children:e.text}),(0,t.jsx)(p.default,{size:"p1",className:"text-secondary-text mt-1.5 max-w-[290px]",children:e.subtext})]})]}),s&&(0,t.jsx)("div",{className:"flex flex-col gap-y-1 gap-x-2.5 pl-[37px] max-w-[325px] mt-2",children:e.additionalLinks&&e.additionalLinks.map((e,s)=>(0,t.jsx)(h.default,{label:e.label??"",link:e.link??"",tagManagerEvent:n,onClick:o},s))})]})})};var x=e.i(926130);let y=({label:e,link:n,tagManagerEvent:o,callback:s})=>n?(0,t.jsx)(c.default,{href:n,tagManagerEvent:o,className:"group/column-title-mobile",children:(0,t.jsxs)("div",{className:"flex flex-row",onClick:()=>s(),children:[(0,t.jsx)(p.default,{className:"text-transparent bg-text-gradient-teal bg-clip-text font-medium",children:e}),(0,t.jsx)(x.default,{direction:"right",className:"pt-0.5 pr-2 transition-transform duration-600 ease-in-out group-hover/column-title-mobile:translate-x-0.5",fill:"#fff"})]})}):(0,t.jsx)(p.default,{className:"font-medium text-transparent bg-text-gradient-teal bg-clip-text",children:e}),E=({data:e,tagManagerEvent:n})=>{let{setIsOpen:o}=(0,i.useContext)(a.default);return e&&e?._type!=="detailedNavColumnButton"?(0,t.jsxs)("div",{className:"flex flex-col gap-5 mb-[10px] w-full",children:[(0,t.jsx)(y,{label:e.columnTitle?.text??"",link:e.columnTitle?.link,tagManagerEvent:n,callback:()=>o(!1)}),e?.detailedNavColumnItem?.columnItems?.map((e,s)=>{switch(e._type){case"columnItem":return(0,t.jsx)(g,{item:e,tagManagerEvent:n,callback:()=>o(!1)},s);case"additionalHeader":return(0,t.jsx)(y,{label:e.header??"",link:e.link,tagManagerEvent:n,callback:()=>o(!1)},s);case"buttons":return(0,t.jsx)(m.default,{buttons:e,tagManagerEvent:n},s)}})]}):null},w=({label:e,link:n,tagManagerEvent:o,callback:s})=>(0,t.jsx)(c.default,{href:n,tagManagerEvent:o,onClick:()=>{s&&s()},children:(0,t.jsx)("div",{className:"pt-4 pb-4 pl-[15px] border-b border-white/10 flex items-center transition-all gap-1 group-hover:gap-1.5",children:(0,t.jsx)(p.default,{className:"font-medium text-white ",children:e})})}),S=({label:e,isOpen:n,controlsId:o,onToggle:s})=>(0,t.jsxs)("button",{type:"button",className:"w-full flex flex-row gap-[5px] pt-4 pb-4 pl-[15px] border-b border-white/10 text-left cursor-pointer",style:{background:"#1D1D1F"},"aria-expanded":n,"aria-controls":o,onClick:s,children:[(0,t.jsx)(p.default,{className:"font-medium text-white test",children:e}),(0,t.jsx)(x.default,{direction:n?"up":"down",className:"pt-0.5 pr-2 ml-auto",fill:"white"})]}),O=({label:e,isOpen:n,onToggle:o,children:s})=>{let a=(0,i.useId)();return(0,t.jsxs)("div",{children:[(0,t.jsx)(S,{label:e,isOpen:n,controlsId:a,onToggle:o}),(0,t.jsx)("div",{id:a,className:"w-full",hidden:!n,children:s})]})},P=({data:e})=>{let{setIsOpen:n}=(0,i.useContext)(a.default),[o,s]=(0,i.useState)(null),l=(0,i.useRef)(null),r=e=>{l.current&&l.current.scrollTo({top:0,behavior:"smooth"}),s(t=>t===e?null:e)};return(0,t.jsxs)("div",{className:"h-full sm:h-full max-h-[calc(100vh-100px)] flex flex-col gap-5",children:[(0,t.jsx)("div",{ref:l,className:"overflow-y-scroll touch-p
4an-y scrollbar-hide h-full",children:e?.navItems?.map((e,s)=>{switch(e._type){case"staticNavItem":return e.label&&e.label?.trim().length>0&&(0,t.jsx)(w,{label:e.label,link:e.link,tagManagerEvent:e.tagManagerEvent,callback:()=>n(!1)},s+"mobile-link");case"navMenu":if(!e.menuTitle?.trim().length)return null;return(0,t.jsx)(O,{label:e.menuTitle??"",isOpen:s===o,onToggle:()=>r(s),children:e.navColumn?.navColumn?.map(n=>(0,t.jsx)("div",{className:"w-full pt-[10px] pb-[5px] pl-[15px] xl:border-b border-white/20 flex items-center justify-between",children:(0,t.jsx)(f,{data:n,tagManagerEvent:e.tagManagerEvent},n._key)},n._key))},s);case"detailedNavMenu":return(0,t.jsx)(O,{label:e.menuTitle??"",isOpen:s===o,onToggle:()=>r(s),children:e.detailedNavColumn?.detailedNavColumn?.map(n=>"detailedNavColumnObject"===n._type&&n.columnTitle?.text?.trim().length?(0,t.jsx)("div",{className:"w-full pt-[10px] pb-[5px] pl-[15px] xl:border-b border-white/20 flex items-center justify-between",children:(0,t.jsx)(E,{data:n,tagManagerEvent:e.tagManagerEvent})},n._key):null)},s);default:return null}})}),(0,t.jsx)("div",{className:"xl:hidden flex flex-row gap-[10px]",children:e.buttons&&e?.buttons.map((n,o)=>(0,t.jsx)(u.default,{className:"text-p w-full first:mb-4",tagManagerEvent:e.tagManagerEvent,variant:o%2==0?"black-outline":"blue-gradient-glow",to:n.to,children:n.label},o))})]})};e.s(["default",0,({data:e})=>{let[u,c]=(0,l.useMobileNavOpen)(),d=(0,i.useRef)(null),p=(0,i.useRef)(null),f=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{if(u){let e=requestAnimationFrame(()=>{p.current?.focus()});return()=>cancelAnimationFrame(e)}f.current&&l.mobileNavToggleButtonRef.current?.focus()},[u]),(0,i.useEffect)(()=>{f.current=u},[u]),(0,i.useEffect)(()=>{if(!u)return;let e=e=>{"Escape"===e.key&&c(!1)},t=e=>{let t=e.target;d.current?.contains(t)||l.mobileNavToggleButtonRef.current?.contains(t)||c(!1)};return document.addEventListener("keydown",e),document.addEventListener("mousedown",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("mousedown",t)}},[u,c]),(0,t.jsx)(a.default.Provider,{value:{isOpen:u,setIsOpen:c},children:(0,t.jsx)(o.Transition,{as:"div",enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",show:u,appear:!0,unmount:!1,className:"fixed -right-0 xl:right-0 top-20 bottom-0 sm:bottom-[unset] xl:top-20 z-[9999]",children:(0,t.jsx)("div",{id:r.MOBILE_NAV_PANEL_ID,ref:d,className:"h-full",children:(0,t.jsx)(n.FocusTrap,{className:"h-full",features:u?n.FocusTrapFeatures.TabLock|n.FocusTrapFeatures.FocusLock:n.FocusTrapFeatures.None,children:(0,t.jsxs)("nav",{"aria-label":"Mobile Navigation",className:"relative h-full flex-col xl:space-x-8 xl:align-middle xl:hidden xl:min-w-[375px] w-screen xl:w-auto mb-4 shadow-md pl-6 pr-4 py-5 bg-obsidian",children:[(0,t.jsx)("button",{ref:p,type:"button",className:"sr-only focus-visible:not-sr-only focus-visible:absolute focus-visible:top-4 focus-visible:right-4 focus-visible:z-10 focus-visible:bg-obsidian focus-visible:p-2 focus-visible:rounded focus-visible:outline focus-visible:outline-white","aria-label":"close menu",onClick:()=>c(!1),children:(0,t.jsx)(s.XMarkIcon,{className:"size-6 text-white"})}),e&&(0,t.jsx)(P,{data:e})]})})})})})}],663832)},716720,e=>{"use strict";var t,n=e.i(843476),o=e.i(271645),s=e.i(236280),i=e.i(618566);let a={};function l({blackList:e,whiteList:t,run:n,name:r,loadOnInteraction:u,setInteractedAfterMS:c}){let d=(0,o.useRef)(!1),p=(0,i.usePathname)()||"",f=(0,s.default)({setInteractedAfterMS:c});return(0,o.useEffect)(()=>{if(a[r]||d.current)return;if(!(e&&e.some(e=>p.match(e))))(!t||t.some(e=>p.match(e)))&&(!u||f)&&(n(),a[r]=!0,d.current=!0)},[p,f,e,t,u,r,n]),null}var r=e.i(252865),u=e.i(560077),c=((t={}).ACCEPT="ACCEPT",t.DENY="DENY",t);e.s(["default",0,function(){let e=(0,i.usePathname)(),t=(0,o.useRef)(e),{analytics:s,marketing:a,loaded:d}=function(){let[e,t]=(0,o.useState)({essential:"ACCEPT",loaded:!1,marketing:"DENY",personalization:"DENY",analytics:"DENY"});return(0,o.useEffect)(()=>{let e=setInterval(()=>{window.Osano?.cm&&(clearInterval(e),(()=>{try{if(window.Osano?.cm){let e=window.Osano.cm.getConsent();return t({essential:"ACCEPT",loaded:!0,marketing:e.MARKETING,personalization:e.PE
4RSONALIZATION,analytics:e.ANALYTICS}),e}return null}catch(e){return null}})(),window.Osano.cm.addEventListener("osano-cm-consent-saved",e=>{t({essential:"ACCEPT",loaded:!0,marketing:e.MARKETING,personalization:e.PERSONALIZATION,analytics:e.ANALYTICS})}))},200);return()=>{clearInterval(e),window.Osano?.cm&&window.Osano.cm.removeEventListener("osano-cm-consent-saved")}},[]),e}();return(0,o.useEffect)(()=>{if(console.log(`Environment is ${(0,r.getEnvName)()}`),(0,u.setLongLivedTrackingCookie)(location),(0,u.setSessionTrackingCookie)(location),window&&window.location.hostname.includes("pdftron")){let e=document.createElement("meta");e.name="robots",e.content="noindex",document.head.appendChild(e)}window.qualified&&window.analytics&&setTimeout(()=>{window.qualified("handleEvents",(e,t)=>{if("Email Captured"===e&&t&&t.field_values){for(let[e,n]of Object.entries(t.field_values))if("string"==typeof n&&/.+\@.+\..+/.test(n)){window.analytics.identify(n,{email:n});break}}})},50)},[]),(0,o.useEffect)(()=>{t.current!==e&&(window.dataLayer&&window.dataLayer.push({event:"urlChange",previousUrl:t.current,newUrl:e}),t.current=e,window&&window.Munchkin&&window.Munchkin.munchkinFunction?.("visitWebPage",{url:e,params:document.location.search.substring(1)}),window.qualified&&window.qualified("page"))},[e]),(0,o.useEffect)(()=>{d&&s&&window._paq?.push(["setConsentGiven"])},[s,d]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l,{name:"GoogleAnalytics",loadOnInteraction:!0,setInteractedAfterMS:3e3,run:()=>{var e,t,n,o,s;e=window,t=document,e[n="dataLayer"]=e[n]||[],e[n].push({"gtm.start":new Date().getTime(),event:"gtm.js"}),o=t.getElementsByTagName("script")[0],(s=t.createElement("script")).async=!0,s.src="https://www.googletagmanager.com/gtm.js?id=GTM-5FFX2TF",o?.parentNode?.insertBefore(s,o)}}),(0,n.jsx)(l,{name:"SearchScript",run:()=>{let e=document.createElement("script");e.src="https://prod.global-search.apryse.com/apryse-search.umd.js",e.async=!0,e.onload=()=>{window.apryseSearch&&window.apryseSearch.loadSearchTool({targetSelector:"#search-trigger",searchConfig:{tabs:[{name:"Solutions"},{name:"Blog"},{name:"Guides"},{name:"API"},{name:"Forum posts"}],defaultTabIndex:0,theme:"dark"}})},document.body.appendChild(e)}}),(0,n.jsx)(l,{name:"Qualified",loadOnInteraction:!0,run:()=>{var e,t;let n=document.createElement("script");n.src="https://js.qualified.com/qualified.js?token=Vy9sz2h6dVojMN7p",n.async=!0,document.body.appendChild(n),t="qualified",(e=window).QualifiedObject=t,e[t]=e[t]||function(){(e[t].q=e[t].q||[]).push(arguments)}}}),(0,n.jsx)(l,{name:"Munchkin",loadOnInteraction:!0,run:()=>{var e=!1;function t(){!1===e&&(e=!0,window.Munchkin.init("243-NCO-372",{anonymizeIP:!0}))}var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src="//munchkin.marketo.net/munchkin.js",n.onreadystatechange=function(){("complete"==this.readyState||"loaded"==this.readyState)&&t()},n.onload=t,document.getElementsByTagName("head")[0].appendChild(n)}}),d&&(0,n.jsx)(l,{name:"VWO Consent Check",loadOnInteraction:!1,run:()=>{window.VWO=window.VWO||[],window.VWO.init=window.VWO.init||function(e){window.VWO.consentState=e};var e,t,n,o="MARKETING";function s(){var e=window.Osano&&window.Osano.cm;if(e){var t=e.getConsent&&e.getConsent();if(!t||void 0===t[o])return window.VWO.init(2);var n="ACCEPT"===t[o];window.VWO.init(n?1:3)}}t="Osano",n="data",(e=window)[t]=e[t]||function(){(e[t][n]=e[t][n]||[]).push(arguments)},e[t][n]=e[t][n]||[],window.Osano("onInitialized",function(){var e=window.Osano.cm;e&&(s(),e.addEventListener("osano-cm-consent-saved",s))})}}),d&&s===c.ACCEPT&&a===c.ACCEPT&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l,{name:"Clearbit",loadOnInteraction:!1,run:()=>{let e=document.createElement("script");e.src="https://tag.clearbitscripts.com/v1/pk_eb78f9a1539ad1f2a79d8ed4a52a36d6/tags.js",e.async=!0,document.body.appendChild(e)}}),(0,n.jsx)(l,{name:"CM",loadOnInteraction:!1,run:()=>{var e=window.analytics=window.analytics||[];if(!e.initialize)if(e.invoked)window.console&&console.error&&console.error("MetaRouter snippet included twice.");else{e.invoked=!0,e.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],e.factory=function(t){return function(){var n=Array.prototype.slice.call(arguments);return n.unshift(t),e.push(n),e}};for(var t=0;t<e.methods.length;t++){var n=e.methods[t];e[n]=e.factory(n)}e.load=function(t,n){e._loadOptions=n;var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.calibermind.com/"+t+".js";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(o,s)},e.SNIPPET_VERSION="4.13.1",e.load("a",{writeKey:"tx8naeC5nMvkAByz3Xsd8"}),e.page()}}})]})]})}],716720)},615754,e=>{"use strict";var t=e.i(843476),n=e.i(17139),o=e.i(618566),s=e.i(271645),i=e.i(214),a=e.i(633068);let l=({onLanguageChange:e})=>{let l=(0,o.usePathname)(),r=(0,o.useRouter)(),{locale:u}
4=(0,n.useLanguage)(),[c,d]=(0,s.useState)(u),p=async t=>{let{value:n}=t.target,o=i.USER_ENABLED_LANGUAGES.find(e=>l?.startsWith(`/${e.id}`)),s=o?l?.replace(`/${o.id}`,""):l;d(n),(0,a.default)({event:"language_switch",additionalData:{fromToLanguage:`${u} to ${n}`}}),e(n),r.push(`/${n}${s}`),r.refresh()};return(0,s.useEffect)(()=>{let e=i.USER_ENABLED_LANGUAGES.find(e=>l?.includes(`/${e.id}`));e?d(e.id):d(i.USER_ENABLED_LANGUAGES[0].id)},[l]),(0,t.jsx)(t.Fragment,{children:i.USER_ENABLED_LANGUAGES&&i.USER_ENABLED_LANGUAGES.length>1&&l&&!i.NON_LOCALIZED_URLS.some(e=>l.startsWith(e))&&(0,t.jsxs)("div",{className:"flex flex-row md:gap-2 items-center ",children:[(0,t.jsx)(()=>(0,t.jsx)("div",{className:"ml-2 flex-shrink-0 mr-3 w-6 h-6",children:(0,t.jsxs)("svg",{fill:"#FFFFFF",version:"1.1",id:"globe",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 466.337 466.337",stroke:"#FFFFFF",children:[(0,t.jsx)("path",{d:"M233.168,0C104.604,0,0,104.604,0,233.168c0,128.565,104.604,233.169,233.168,233.169 c128.565,0,233.169-104.604,233.169-233.169C466.337,104.604,361.733,0,233.168,0z M223.984,441.874 c-22.321,0-46.405-41.384-59.045-107.815h118.067C270.371,400.49,246.316,441.874,223.984,441.874z M161.114,310.144 c-2.738-19.991-4.437-41.781-4.881-65.018H291.74c-0.443,23.237-2.148,45.027-4.869,65.018H161.114z M24.521,245.126h107.704 c0.443,21.883,2.09,43.859,4.887,65.018H38.768C30.693,289.826,25.818,267.966,24.521,245.126z M223.984,24.464 c21.982,0,45.687,40.14,58.484,104.877h-116.97C178.286,64.604,201.996,24.464,223.984,24.464z M286.463,153.245 c2.978,20.785,4.811,43.596,5.277,67.966H156.222c0.467-24.37,2.295-47.169,5.272-67.966H286.463z M132.226,221.211H24.521 c1.354-23.926,6.568-46.836,15.332-67.966h97.656C134.462,175.32,132.681,198.312,132.226,221.211z M315.749,245.126h126.065 c-1.296,22.84-6.188,44.7-14.246,65.018H310.855C313.646,288.985,315.305,267.009,315.749,245.126z M315.749,221.211 c-0.468-22.898-2.254-45.891-5.29-67.966h116.023c8.77,21.13,13.978,44.04,15.332,67.966H315.749z M414.596,129.33H306.617 c-7.894-42.067-20.727-78.844-38.195-102.222C330.952,37.799,384.06,76.205,414.596,129.33z M176.073,32.036 c-15.7,23.459-27.348,58.1-34.699,97.305H51.741C78.657,82.505,123.064,47.1,176.073,32.036z M49.96,334.058h90.895 c7.311,40.403,19.133,76.205,35.219,100.26C121.944,418.904,76.672,382.378,49.96,334.058z M268.41,439.222 c17.865-23.938,30.874-61.889,38.697-105.164h109.274C386.15,388.743,332.12,428.339,268.41,439.222z"})," "]})}),{}),(0,t.jsx)("div",{className:"bg-gradient-to-r from-[#00E2EA] to-[#00EB9B] p-[2px] rounded-md",children:(0,t.jsx)("select",{name:"language-switcher",role:"listbox",onChange:p,value:c,className:"w-full md:min-w-full text-p p-2 pr-9 rounded-md bg-[#1D1D1F] text-white hover:cursor-pointer focus:ring-transparent",children:i.USER_ENABLED_LANGUAGES.map(({id:e,title:n},o)=>(0,t.jsx)("option",{value:e,children:n},o))})})]})})};e.s(["default",0,function(){let{setLocale:e}=(0,n.useLanguage)();return(0,t.jsx)("div",{className:"flex flex-row",children:(0,t.jsx)(l,{onLanguageChange:t=>e(t)})})}],615754)},115910,e=>{"use strict";var t=e.i(843476),n=e.i(271645);let o=(0,n.lazy)(()=>e.A(896535));e.s(["default",0,function(e){return(0,t.jsx)(n.Suspense,{fallback:null,children:(0,t.jsx)(o,{...e})})}])},18739,e=>{"use strict";var t=e.i(843476);let n=new Set;e.i(145587);var o=e.i(271645);Object.prototype.hasOwnProperty,e.i(462576),e.i(523694),e.s(["default",0,function(){let e=(0,o.useSyncExternalStore)((0,o.useCallback)(e=>(n.add(e),()=>n.delete(e)),[]),()=>"checking",()=>"checking");return"live"!==e&&"unknown"!==e&&"checking"!==e?null:(0,t.jsx)("a",{href:"/api/draft-mode/disable",className:"absolute top-4 left-4 bg-yellow text-black px-4 py-2 z-[100]",children:"Disable Draft Mode"})}],18739)},808341,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o={cancelIdleCallback:function(){return a},requestIdleCallback:function(){return i}};for(var s in o)Object.defineProperty(n,s,{enumerable:!0,get:o[s]});let i="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},a="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esMo
4dule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},519083,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o={ESCAPE_REGEX:function(){return a},htmlEscapeAttributeString:function(){return c},htmlEscapeJsonString:function(){return u}};for(var s in o)Object.defineProperty(n,s,{enumerable:!0,get:o[s]});let i={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},a=/[&><\u2028\u2029]/g,l={"&":"&amp;",'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;"},r=/[&"'<>]/g;function u(e){return e.replace(a,e=>i[e])}function c(e){return e.replace(r,e=>l[e])}},479520,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o={default:function(){return y},handleClientScriptLoad:function(){return b},initScriptLoader:function(){return g}};for(var s in o)Object.defineProperty(n,s,{enumerable:!0,get:o[s]});let i=e.r(563141),a=e.r(151836),l=e.r(843476),r=i._(e.r(174080)),u=a._(e.r(271645)),c=e.r(742732),d=e.r(922737),p=e.r(808341),f=e.r(519083),m=new Map,v=new Set,h=e=>{let{src:t,id:n,onLoad:o=()=>{},onReady:s=null,dangerouslySetInnerHTML:i,children:a="",strategy:l="afterInteractive",onError:u,stylesheets:c}=e,p=n||t;if(p&&v.has(p))return;if(m.has(t)){v.add(p),m.get(t).then(o,u);return}let f=()=>{s&&s(),v.add(p)},h=document.createElement("script"),b=new Promise((e,t)=>{h.addEventListener("load",function(t){e(),o&&o.call(this,t),f()}),h.addEventListener("error",function(e){t(e)})}).catch(function(e){u&&u(e)});i?(h.innerHTML=i.__html||"",f()):a?(h.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"",f()):t&&(h.src=t,m.set(t,b)),(0,d.setAttributesFromProps)(h,e),"worker"===l&&h.setAttribute("type","text/partytown"),h.setAttribute("data-nscript",l),c&&(e=>{if(r.default.preinit)return e.forEach(e=>{r.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.href=e,t.appendChild(n)})}})(c),document.body.appendChild(h)};function b(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,p.requestIdleCallback)(()=>h(e))}):h(e)}function g(e){e.forEach(b),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");v.add(t)})}function x(e){let{id:t,src:n="",onLoad:o=()=>{},onReady:s=null,strategy:i="afterInteractive",onError:a,stylesheets:d,...m}=e,{updateScripts:b,scripts:g,getIsSsr:x,appDir:y,nonce:E}=(0,u.useContext)(c.HeadManagerContext);E=m.nonce||E;let w=(0,u.useRef)(!1);(0,u.useEffect)(()=>{let e=t||n;w.current||(s&&e&&v.has(e)&&s(),w.current=!0)},[s,t,n]);let S=(0,u.useRef)(!1);if((0,u.useEffect)(()=>{if(!S.current){if("afterInteractive"===i)h(e);else"lazyOnload"===i&&("complete"===document.readyState?(0,p.requestIdleCallback)(()=>h(e)):window.addEventListener("load",()=>{(0,p.requestIdleCallback)(()=>h(e))}));S.current=!0}},[e,i]),("beforeInteractive"===i||"worker"===i)&&(b?(g[i]=(g[i]||[]).concat([{id:t,src:n,onLoad:o,onReady:s,onError:a,...m,nonce:E}]),b(g)):x&&x()?v.add(t||n):x&&!x()&&h({...e,nonce:E})),y){if(d&&d.forEach(e=>{r.default.preinit(e,{as:"style"})}),"beforeInteractive"===i)if(!n)return m.dangerouslySetInnerHTML&&(m.children=m.dangerouslySetInnerHTML.__html,delete m.dangerouslySetInnerHTML),(0,l.jsx)("script",{nonce:E,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,f.htmlEscapeJsonString)(JSON.stringify([0,{...m,id:t}]))})`}});else return r.default.preload(n,m.integrity?{as:"script",integrity:m.integrity,nonce:E,crossOrigin:m.crossOrigin}:{as:"script",nonce:E,crossOrigin:m.crossOrigin}),(0,l.jsx)("script",{nonce:E,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,f.htmlEscapeJsonString)(JSON.stringify([n,{...m,id:t}]))})`}});"afterInteractive"===i&&n&&r.default.preload(n,m.integrity?{as:"script",integrity:m.integrity,nonce:E,crossOrigin:m.crossOrigin}:{as:"script",nonce:E,crossOrigin:m.crossOrigin})}return null}Object.defineProperty(x,"__nextScript",{value:!0});let y=x;("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esMo
4dule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},3303,(e,t,n)=>{t.exports=e.r(479520)},549551,e=>{"use strict";var t=e.i(843476),n=e.i(3303);e.s(["default",0,function(){return(0,t.jsx)(n.default,{id:"qualified-piper-setup",strategy:"afterInteractive",src:"https://js.qualified.com/docking.js",onLoad:()=>{window.qualified.docking.init({defaultDocked:!1,showSkeleton:!0})}})}])}]);

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.