PageSourceSearch

https://atlasmagnetics.com/_next/static/chunks/5223-9ea1fb07eada122d.js

js atlasmagnetics.com collected 2026-10-08 07:40:39 UTC 84,522 bytes, 4 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="60a2f9d9-039a-46cc-93cd-a9a472d47aae",e._sentryDebugIdIdentifier="sentry-dbid-60a2f9d9-039a-46cc-93cd-a9a472d47aae")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5223],{7283:(e,t,l)=>{l.d(t,{d:()=>e8});var i=l(39475),s=l(9150),n=l(63726),o=l(39419),r=l(33545),a=l(11401),u=l(68069),d=l(81552),c=l(97251),h=l(32708),g=l(47870),p=l(57270),f=l(44532);class v{*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){var t;let l=this.keyMap.get(e);return l&&null!=(t=l.prevKey)?t:null}getKeyAfter(e){var t;let l=this.keyMap.get(e);return l&&null!=(t=l.nextKey)?t:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return null!=(t=this.keyMap.get(e))?t:null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(null==t?void 0:t.childNodes)||[]}constructor(e){var t;this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let l=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let t of e.childNodes)l(t)};for(let t of e)l(t);let i=null,s=0,n=0;for(let[e,t]of this.keyMap)i?(i.nextKey=e,t.prevKey=i.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=s++),("section"===t.type||"item"===t.type)&&n++,(i=t).nextKey=void 0;this._size=n,this.lastKey=null!=(t=null==i?void 0:i.key)?t:null}}var m=l(92735),y=l(49396),b=l(78652);function x(e){let{filter:t,layoutDelegate:l}=e,i=(0,m.R)(e),s=(0,d.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),n=(0,d.useCallback)(e=>new v(t?t(e):e),[t]),o=(0,d.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),r=(0,b.G)(e,n,o),a=(0,d.useMemo)(()=>new(0,y.Y)(r,i,{layoutDelegate:l}),[r,i,l]);return function(e,t){let l=(0,d.useRef)(null);(0,d.useEffect)(()=>{if(null!=t.focusedKey&&!e.getItem(t.focusedKey)&&l.current){var i,s,n,o,r,a,u;let d=l.current.getItem(t.focusedKey),c=[...l.current.getKeys()].map(e=>{let t=l.current.getItem(e);return(null==t?void 0:t.type)==="item"?t:null}).filter(e=>null!==e),h=[...e.getKeys()].map(t=>{let l=e.getItem(t);return(null==l?void 0:l.type)==="item"?l:null}).filter(e=>null!==e),g=(null!=(i=null==c?void 0:c.length)?i:0)-(null!=(s=null==h?void 0:h.length)?s:0),p=Math.min(g>1?Math.max((null!=(n=null==d?void 0:d.index)?n:0)-g+1,0):null!=(o=null==d?void 0:d.index)?o:0,(null!=(r=null==h?void 0:h.length)?r:0)-1),f=null,v=!1;for(;p>=0;){if(!t.isDisabled(h[p].key)){f=h[p];break}p<h.length-1&&!v?p++:(v=!0,p>(null!=(a=null==d?void 0:d.index)?a:0)&&(p=null!=(u=null==d?void 0:d.index)?u:0),p--)}t.setFocusedKey(f?f.key:null)}l.current=e},[e,t])}(r,a),{collection:r,disabledKeys:s,selectionManager:a}}var D=l(83261),C=l(47630),E=l(40374);let S=new Map;var w=l(34314),M=l(78966),P=l(14643),K=l(68865),k={};k={"ar-AE":{longPressMessage:`\u{627}\u{636}\u{63A}\u{637} \u{645}\u{637}\u{648}\u{644}\u{627}\u{64B} \u{623}\u{648} \u{627}\u{636}\u{63A}\u{637} \u{639}\u{644}\u{649} Alt + \u{627}\u{644}\u{633}\u{647}\u{645} \u{644}\u{623}\u{633}\u{641}\u{644} \u{644}\u{641}\u{62A}\u{62D} \u{627}\u{644}\u{642}\u{627}\u{626}\u{645}\u{629}`},"bg-BG":{longPressMessage:`\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{435}\u{442}\u{435} \u{43F}\u{440}\u{43E}\u{434}\u{44A}\u{43B}\u{436}\u{438}\u{442}\u{435}\u{43B}\u{43D}\u{43E} \u{438}\u{43B}\u{438} \u{43D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{435}\u{442}\u{435} Alt+ \u{441}\u{442}\u{440}\u{435}\u{43B}\u{43A}\u{430} \u{43D}\u{430}\u{434}\u{43E}\u{43B}\u{443}, \u{437}\u{430} \u{434}\u{430} \u{43E}\u{442}\u{432}\u{43E}\u{440}\u{438}\u{442}\u{435} \u{43C}\u{435}\u{43D}\u{44E}\u{442}\u{43E}`},"cs-CZ":{longPressMessage:`Dlouh\xfdm stiskem nebo stisknut\xedm kl\xe1ves Alt + \u{161}ipka dol\u{16F} otev\u{159}ete nab\xeddku`},"da-DK":{longPressMessage:`Langt tryk eller tryk p\xe5 Alt + pil ned for at \xe5bne menuen`},"de-DE":{longPressMessage:`Dr\xfccken Sie lange oder dr\xfccken Sie Alt + Nach-unten, um das Men\xfc zu \xf6ffnen`},"el-GR":{longPressMessage:`\u{3A0}\u{3B9}\u{3AD}\u{3C3}\u{3C4}\u{3B5} \u{3C0}\u{3B1}\u{3C1}\u{3B1}\u{3C4}\u{3B5}\u{3C4}\u{3B1}\u{3BC}\u{3AD}\u{3BD}\u{3B1} \u{3AE} \u{3C0}\u{3B1}\u{3C4}\u{3AE}\u{3C3}\u{3C4}\u{3B5} Alt + \u{3BA}\u{3AC}\u{3C4}\u{3C9} \u{3B2}\u{3AD}\u{3BB}\u{3BF}\u{3C2} \u{3B3}\u{3B9}\u{3B1} \u{3BD}\u{3B1} \u{3B1}\u{3BD}\u{3BF}\u{3AF}\u{3BE}\u{3B5}\u{3C4}\u{3B5} \u{3C4}\u{3BF} \u{3BC}\u{3B5}\u{3BD}\u{3BF}\u{3CD}`},"en-US":{longPressMessage:"Long press or press Alt + ArrowDown to open menu"},"es-ES":{longPressMessage:`Mantenga pulsado o pulse Alt + flecha abajo para abrir el men\xfa`},"et-EE":{longPressMessage:`Men\xfc\xfc avamiseks vajutage pikalt v\xf5i vajutage klahve Alt + allanool`},"fi-FI":{longPressMessage:`Avaa valikko painamalla pohjassa tai n\xe4pp\xe4inyhdistelm\xe4ll\xe4 Alt + Alanuoli`},"fr-FR":{longPressMessage:`Appuyez de mani\xe8re prolong\xe9e ou appuyez sur Alt\xa0+\xa0Fl\xe8che vers le bas pour ouvrir le menu.`},"he-IL":{longPressMessage:`\u{5DC}\u{5D7}\u{5E5} \u{5DC}\u{5D7}\u{5D9}\u{5E6}\u{5D4} \u{5D0}\u{5E8}\u{5D5}\u{5DB}\u{5D4} \u{5D0}\u{5D5} \u{5D4}\u{5E7}\u{5E9} Alt + ArrowDown \u{5DB}\u{5D3}\u{5D9} \u{5DC}\u{5E4}\u{5EA}\u{5D5}\u{5D7} \u{5D0}\u{5EA} \u{5D4}\u{5EA}\u{5E4}\u{5E8}\u{5D9}\u{5D8}`},"hr-HR":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"},"hu-HU":{longPressMessage:`Nyomja meg hosszan, vagy nyomja meg az Alt + lefele ny\xedl gombot a men\xfc megnyit\xe1s\xe1hoz`},"it-IT":{longPressMessage:`Premi a lungo o premi Alt + Freccia gi\xf9 per aprire il menu`},"ja-JP":{longPressMessage:`\u{9577}\u{62BC}\u{3057}\u{307E}\u{305F}\u{306F} Alt+\u{4E0B}\u{77E2}\u{5370}\u{30AD}\u{30FC}\u{3067}\u{30E1}\u{30CB}\u{30E5}\u{30FC}\u{3092}\u{958B}\u{304F}`},"ko-KR":{longPressMessage:`\u{AE38}\u{AC8C} \u{B204}\u{B974}\u{AC70}\u{B098} Alt + \u{C544}\u{B798}\u{CABD} \u{D654}\u{C0B4}\u{D45C}\u{B97C} \u{B20C}\u{B7EC} \u{BA54}\u{B274} \u{C5F4}\u{AE30}`},"lt-LT":{longPressMessage:`Nor\u{117}dami atidaryti meniu, nuspaud\u{119} palaikykite arba paspauskite \u{201E}Alt + ArrowDown\u{201C}.`},"lv-LV":{longPressMessage:`Lai atv\u{113}rtu izv\u{113}lni, turiet nospiestu vai nospiediet tausti\u{146}u kombin\u{101}ciju Alt + lejupv\u{113}rst\u{101} bulti\u{146}a`},"nb-NO":{longPressMessage:`Langt trykk eller trykk Alt + PilNed for \xe5 \xe5pne menyen`},"nl-NL":{longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"},"pl-PL":{longPressMessage:`Naci\u{15B}nij i przytrzymaj lub naci\u{15B}nij klawisze Alt + Strza\u{142}ka w d\xf3\u{142}, aby otworzy\u{107} menu`},"pt-BR":{longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"},"pt-PT":{longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"},"ro-RO":{longPressMessage:`Ap\u{103}sa\u{21B}i lung sau ap\u{103}sa\u{21B}i pe Alt + s\u{103}geat\u{103} \xeen jos pentru a deschide meniul`},"ru-RU":{longPressMessage:`\u{41D}\u{430}\u{436}\u{43C}\u{438}\u{442}\u{435} \u{438} \u{443}\u{434}\u{435}\u{440}\u{436}\u{438}\u{432}\u{430}\u{439}\u{442}\u{435} \u{438}\u{43B}\u{438} \u{43D}\u{430}\u{436}\u{43C}\u{438}\u{442}\u{435} Alt + \u{421}\u{442}\u{440}\u{435}\u{43B}\u{43A}\u{430} \u{432}\u{43D}\u{438}\u{437}, \u{447}\u{442}\u{43E}\u{431}\u{44B} \u{43E}\u{442}\u{43A}\u{440}\u{44B}\u{442}\u{44C} \u{43C}\u{435}\u{43D}\u{44E}`},"sk-SK":{longPressMessage:`Ponuku otvor\xedte dlh\xfdm stla\u{10D}en\xedm alebo stla\u{10D}en\xedm kl\xe1vesu Alt + kl\xe1vesu so \u{161}\xedpkou nadol`},"sl-SI":{longPressMessage:`Za odprtje menija pritisnite in dr\u{17E}ite gumb ali pritisnite Alt+pu\u{161}\u{10D}ica navzdol`},"sr-SP":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"},"sv-SE":{longPressMessage:`H\xe5ll nedtryckt eller tryck p\xe5 Alt + pil ned\xe5t f\xf6r att \xf6ppna menyn`}
1,"tr-TR":{longPressMessage:`Men\xfcy\xfc a\xe7mak i\xe7in uzun bas\u{131}n veya Alt + A\u{15F}a\u{11F}\u{131} Ok tu\u{15F}una bas\u{131}n`},"uk-UA":{longPressMessage:`\u{414}\u{43E}\u{432}\u{433}\u{43E} \u{430}\u{431}\u{43E} \u{437}\u{432}\u{438}\u{447}\u{430}\u{439}\u{43D}\u{43E} \u{43D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{456}\u{442}\u{44C} \u{43A}\u{43E}\u{43C}\u{431}\u{456}\u{43D}\u{430}\u{446}\u{456}\u{44E} \u{43A}\u{43B}\u{430}\u{432}\u{456}\u{448} Alt \u{456} \u{441}\u{442}\u{440}\u{456}\u{43B}\u{43A}\u{430} \u{432}\u{43D}\u{438}\u{437}, \u{449}\u{43E}\u{431} \u{432}\u{456}\u{434}\u{43A}\u{440}\u{438}\u{442}\u{438} \u{43C}\u{435}\u{43D}\u{44E}`},"zh-CN":{longPressMessage:`\u{957F}\u{6309}\u{6216}\u{6309} Alt + \u{5411}\u{4E0B}\u{65B9}\u{5411}\u{952E}\u{4EE5}\u{6253}\u{5F00}\u{83DC}\u{5355}`},"zh-TW":{longPressMessage:`\u{9577}\u{6309}\u{6216}\u{6309} Alt+\u{5411}\u{4E0B}\u{9375}\u{4EE5}\u{958B}\u{555F}\u{529F}\u{80FD}\u{8868}`}};var B=l(73822),N=l(95904),A=l(84276),I=l(61610),R=l(51371);let z=new WeakMap;new WeakMap;class O{getItemRect(e){var t,l,i;let s,n,o=this.ref.current;if(!o)return null;let r=null!=e?(t=this.ref,s=`[data-key="${CSS.escape(String(e))}"]`,(n=null==(l=t.current)?void 0:l.dataset.collection)&&(s=`[data-collection="${CSS.escape(n)}"]${s}`),null==(i=t.current)?void 0:i.querySelector(s)):null;if(!r)return null;let a=o.getBoundingClientRect(),u=r.getBoundingClientRect();return{x:u.left-a.left-o.clientLeft+o.scrollLeft,y:u.top-a.top-o.clientTop+o.scrollTop,width:u.width,height:u.height}}getContentSize(){var e,t;let l=this.ref.current;return{width:null!=(e=null==l?void 0:l.scrollWidth)?e:0,height:null!=(t=null==l?void 0:l.scrollHeight)?t:0}}getVisibleRect(){var e,t,l,i;let s=this.ref.current;return{x:null!=(e=null==s?void 0:s.scrollLeft)?e:0,y:null!=(t=null==s?void 0:s.scrollTop)?t:0,width:null!=(l=null==s?void 0:s.clientWidth)?l:0,height:null!=(i=null==s?void 0:s.clientHeight)?i:0}}constructor(e){this.ref=e}}var T=l(35664);class j{isDisabled(e){var t;return"all"===this.disabledBehavior&&((null==(t=e.props)?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let l=e;for(;null!=l;){let e=this.collection.getItem(l);if((null==e?void 0:e.type)==="item"&&!this.isDisabled(e))return l;l=t(l)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,e=>this.collection.getKeyAfter(e))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,e=>this.collection.getKeyBefore(e))}findKey(e,t,l){let i=e,s=this.layoutDelegate.getItemRect(i);if(!s||null==i)return null;let n=s;do{if(null==(i=t(i)))break;s=this.layoutDelegate.getItemRect(i)}while(s&&l(n,s)&&null!=i);return i}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,e=>this.getNextKey(e),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,e=>this.getPreviousKey(e),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t="ltr"===this.direction?"getKeyRightOf":"getKeyLeftOf";if(this.layoutDelegate[t])return e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e));if("grid"===this.layout)if("vertical"===this.orientation)return this.getNextColumn(e,"rtl"===this.direction);else return this.findKey(e,e=>this.getNextColumn(e,"rtl"===this.direction),this.isSameColumn);return"horizontal"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):null}getKeyLeftOf(e){let t="ltr"===this.direction?"getKeyLeftOf":"getKeyRightOf";if(this.layoutDelegate[t])return e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e));if("grid"===this.layout)if("vertical"===this.orientation)return this.getNextColumn(e,"ltr"===this.direction);else return this.findKey(e,e=>this.getNextColumn(e,"ltr"===this.direction),this.isSameColumn);return"horizontal"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyAfter(e))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(e){let t=this.ref.current,l=this.layoutDelegate.getItemRect(e);
1if(!l)return null;if(t&&!(0,T.o)(t))return this.getFirstKey();let i=e;if("horizontal"===this.orientation){let e=Math.max(0,l.x+l.width-this.layoutDelegate.getVisibleRect().width);for(;l&&l.x>e&&null!=i;)l=null==(i=this.getKeyAbove(i))?null:this.layoutDelegate.getItemRect(i)}else{let e=Math.max(0,l.y+l.height-this.layoutDelegate.getVisibleRect().height);for(;l&&l.y>e&&null!=i;)l=null==(i=this.getKeyAbove(i))?null:this.layoutDelegate.getItemRect(i)}return null!=i?i:this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,l=this.layoutDelegate.getItemRect(e);if(!l)return null;if(t&&!(0,T.o)(t))return this.getLastKey();let i=e;if("horizontal"===this.orientation){let e=Math.min(this.layoutDelegate.getContentSize().width,l.y-l.width+this.layoutDelegate.getVisibleRect().width);for(;l&&l.x<e&&null!=i;)l=null==(i=this.getKeyBelow(i))?null:this.layoutDelegate.getItemRect(i)}else{let e=Math.min(this.layoutDelegate.getContentSize().height,l.y-l.height+this.layoutDelegate.getVisibleRect().height);for(;l&&l.y<e&&null!=i;)l=null==(i=this.getKeyBelow(i))?null:this.layoutDelegate.getItemRect(i)}return null!=i?i:this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let l=this.collection,i=t||this.getFirstKey();for(;null!=i;){let t=l.getItem(i);if(!t)break;let s=t.textValue.slice(0,e.length);if(t.textValue&&0===this.collator.compare(s,e))return i;i=this.getNextKey(i)}return null}constructor(...e){if(1===e.length){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new O(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new O(this.ref);"stack"===this.layout&&"vertical"===this.orientation&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}var F=l(79360),L=l(75398),W=l(97348),_=l(43957),V=l(59691),$=l(87197),H=l(32449),U=l(71732),q=new WeakMap,G="undefined"!=typeof document?d.useLayoutEffect:()=>{},J=l(54550);let Q={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function X(e={}){let{style:t,isFocusable:l}=e,[i,s]=(0,d.useState)(!1),{focusWithinProps:n}=(0,J.R)({isDisabled:!l,onFocusWithinChange:e=>s(e)}),o=(0,d.useMemo)(()=>i?t:t?{...Q,...t}:Q,[i]);return{visuallyHiddenProps:{...n,style:o}}}function Y(e){let{children:t,elementType:l="div",isFocusable:i,style:s,...n}=e,{visuallyHiddenProps:o}=X(e);return d.createElement(l,(0,K.v)(n,o),t)}var Z=l(49387),ee=l(98937),et=l(88828);function el(e){var t;let{state:l,triggerRef:i,selectRef:s,label:n,name:o,isDisabled:r,form:a}=e,{containerProps:u,selectProps:c}=function(e,t,l){var i,s,n,o;let r,a,u=q.get(t)||{},{autoComplete:c,name:h=u.name,isDisabled:g=u.isDisabled,selectionMode:p,onChange:f,form:v}=e,{validationBehavior:m,isRequired:y,isInvalid:b}=u,{visuallyHiddenProps:x}=X();return s=e.selectRef,n=t.selectedKeys,o=t.setSelectedKeys,r=(0,d.useRef)(n),a=function(e){let t=(0,d.useRef)(null);return G(()=>{t.current=e},[e]),(0,d.useCallback)((...e)=>{let l=t.current;return null==l?void 0:l(...e)},[])}(()=>{o&&o(r.current)}),(0,d.useEffect)(()=>{var e;let t=null==(e=null==s?void 0:s.current)?void 0:e.form;return null==t||t.addEventListener("reset",a),()=>{null==t||t.removeEventListener("reset",a)}},[s,a]),!function(e,t,l){let{validationBehavior:i,focus:s}=e;(0,Z.N)(()=>{if("native"===i&&(null==l?void 0:l.current)&&!l.current.disabled){var e;let i,s=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";l.current.setCustomValidity(s),l.current.hasAttribute("title")||(l.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation({isInvalid:!(e=l.current).validity.valid,validationDetails:{badInput:(i=e.validity).badInput,customError:i.customError,patternMismatch:i.patternMismatch,rangeOverflow:i.rangeOverflow,rangeUnderflow:i.rangeUnderflow,stepMismatch:i.stepMismatch,tooLong:i.tooLong,tooShort:i.tooShort,typeMismatch:i.typeMismatch,valueMissing:i.valueMissing,valid:i.valid},validationErrors:e.validationMessage?[e.validationMessage]:[]})}});let n=(0,d.useRef)(!1),o=(0,ee.J)(()=>{n.current||t.resetValidation()}),r=(0,ee.J)(e=>{var i,n;t.displayValidation.isInvalid||t.commitValidation();let o=null==l||null==(i=l.current)?void 0:i.form;!e.defaultPrevented&&l&&o&&function(e){for(let t=0;t<e.elements.length;t++){let l=e.elements[t];if(!l.validity.valid)return l}return null}(o)===l.current&&(s?s():null==(n=l.current)||n.focus(),(0,w.Cl)("keyboard")),e.preventDefault()}),a=(0,ee.J)(()=>{t.commitValidation()});(0,d.useEffect)(()=>{let e=null==l?void 0:l.current;if(!e)return;let t=e.form,i=null==t?void 0:t.reset;return t&&(t.reset=()=>{n.current=!window.event||"message"===window.event.type&&window.event.target instanceof MessagePort,null==i||i.call(t),n.current=!1}),e.addEventListener("invalid",r),e.addEventListener("change",a),null==t||t.addEventListener("reset",o),()=>{e.removeEventListener("invalid",r),e.removeEventListener("change",a),null==t||t.removeEventListener("reset",o),t&&(t.reset=i)}},[l,i])}({validationBehavior:m,focus:()=>{var e;return null==(e=l.current)?void 0:e.focus()}},t,e.selectRef),{containerProps:{...x,"aria-hidden":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{form:v,autoComplete:c,disabled:g,"aria-invalid":b||void 0,"aria-required":y&&"aria"===m||void 0,required:y&&"native"===m,name:h,tabIndex:-1,value:"multiple"===p?[...t.selectedKeys].map(e=>String(e)):null!=(i=[...t.selectedKeys][0])?i:"",multiple:"multiple"===p,onChange:e=>{t.setSelectedKeys(e.target.value),null==f||f(e)}}}}({...e,selectRef:s},l,i);return l.collection.size<=300?(0,et.jsx)("div",{...u,"data-testid":"hidden-select-container",children:(0,et.jsxs)("label",{children:[n,(0,et.jsxs)("select",{...c,ref:s,children:[(0,et.jsx)("option",{}),[...l.collection.getKeys()].map(e=>{let t=l.collection.getItem(e);if((null==t?void 0:t.type)==="item")return(0,et.jsx)("option",{value:t.key,children:t.textValue},t.key)})]})]})}):o?(0,et.jsx)("input",{autoComplete:c.autoComplete,disabled:r,form:a,name:o,type:"hidden",value:null!=(t=[...l.selectedKeys].join(","))?t:""}):null}let ei=new WeakMap;var es=l(46559),en=l(55587),eo=l(26741),er=l(60725),ea=l(41326);class eu{getItemRect(e){let t=this.ref.current;if(!t)return null;let l=null!=e?(0,ea.au)(this.ref,e):null;if(!l)return null;let i=t.getBoundingClientRect(),s=l.getBoundingClientRect();return{x:s.left-i.left-t.clientLeft+t.scrollLeft,y:s.top-i.top-t.clientTop+t.scrollTop,width:s.width,height:s.height}}getContentSize(){var e,t;let l=this.ref.current;return{width:null!=(e=null==l?void 0:l.scrollWidth)?e:0,height:null!=(t=null==l?void 0:l.scrollHeight)?t:0}}getVisibleRect(){var e,t,l,i;let s=this.ref.current;return{x:null!=(e=null==s?void 0:s.scrollLeft)?e:0,y:null!=(t=null==s?void 0:s.scrollTop)?t:0,width:null!=(l=null==s?void 0:s.clientWidth)?l:0,height:null!=(i=null==s?void 0:s.clientHeight)?i:0}}constructor(e){this.ref=e}}class ed{isDisabled(e){var t;return"all"===this.disabledBehavior&&((null==(t=e.props)?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let l=e;for(;null!=l;){let e=this.collection.getItem(l);if((null==e?void 0:e.type)==="item"&&!this.isDisabled(e))return l;l=t(l)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,e=>this.collection.getKeyAfter(e))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,e=>this.collection.getKeyBefore(e))}findKey(e,t,l){let i=e,s=this.layoutDelegate.getItemRect(i);if(!s||null==i)return null;let n=s;do{if(null==(i=t(i)))break;s=this.layoutDelegate.getItemRect(i)}while(s&&l(n,s)&&null!=i);return i}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,e=>this.getNextKey(e),this.isSameRow):this.getNextKey(e)}
1getKeyAbove(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,e=>this.getPreviousKey(e),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t="ltr"===this.direction?"getKeyRightOf":"getKeyLeftOf";if(this.layoutDelegate[t])return e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e));if("grid"===this.layout)if("vertical"===this.orientation)return this.getNextColumn(e,"rtl"===this.direction);else return this.findKey(e,e=>this.getNextColumn(e,"rtl"===this.direction),this.isSameColumn);return"horizontal"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):null}getKeyLeftOf(e){let t="ltr"===this.direction?"getKeyLeftOf":"getKeyRightOf";if(this.layoutDelegate[t])return e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e));if("grid"===this.layout)if("vertical"===this.orientation)return this.getNextColumn(e,"ltr"===this.direction);else return this.findKey(e,e=>this.getNextColumn(e,"ltr"===this.direction),this.isSameColumn);return"horizontal"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyAfter(e))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(e){let t=this.ref.current,l=this.layoutDelegate.getItemRect(e);if(!l)return null;if(t&&!(0,T.o)(t))return this.getFirstKey();let i=e;if("horizontal"===this.orientation){let e=Math.max(0,l.x+l.width-this.layoutDelegate.getVisibleRect().width);for(;l&&l.x>e&&null!=i;)l=null==(i=this.getKeyAbove(i))?null:this.layoutDelegate.getItemRect(i)}else{let e=Math.max(0,l.y+l.height-this.layoutDelegate.getVisibleRect().height);for(;l&&l.y>e&&null!=i;)l=null==(i=this.getKeyAbove(i))?null:this.layoutDelegate.getItemRect(i)}return null!=i?i:this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,l=this.layoutDelegate.getItemRect(e);if(!l)return null;if(t&&!(0,T.o)(t))return this.getLastKey();let i=e;if("horizontal"===this.orientation){let e=Math.min(this.layoutDelegate.getContentSize().width,l.y-l.width+this.layoutDelegate.getVisibleRect().width);for(;l&&l.x<e&&null!=i;)l=null==(i=this.getKeyBelow(i))?null:this.layoutDelegate.getItemRect(i)}else{let e=Math.min(this.layoutDelegate.getContentSize().height,l.y-l.height+this.layoutDelegate.getVisibleRect().height);for(;l&&l.y<e&&null!=i;)l=null==(i=this.getKeyBelow(i))?null:this.layoutDelegate.getItemRect(i)}return null!=i?i:this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let l=this.collection,i=t||this.getFirstKey();for(;null!=i;){let t=l.getItem(i);if(!t)break;let s=t.textValue.slice(0,e.length);if(t.textValue&&0===this.collator.compare(s,e))return i;i=this.getNextKey(i)}return null}constructor(...e){if(1===e.length){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new eu(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new eu(this.ref);"stack"===this.layout&&"vertical"===this.orientation&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}var ec=l(52651);let eh=new Map;function eg(e){let{isSelected:t,disableAnimation:l,...i}=e;return(0,et.jsx)("svg",{"aria-hidden":"true","data-selected":t,role:"presentation",viewBox:"0 0 17 18",...i,children:(0,et.jsx)("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,style:l?{}:{transition:"stroke-dashoffset 200ms ease"}})})}var ep=l(39662),ef=l(99048),ev=l(88091),em=l(90944);let ey=new WeakMap;var eb=l(81638),ex=l(80447),eD=e=>{let{Component:t,rendered:l,description:n,isSelectable:a,isSelected:c,isDisabled:v,selectedIcon:m,startContent:y,endContent:b,hideSelectedIcon:x,disableAnimation:D,getItemProps:C,getLabelProps:E,getWrapperProps:S,getDescriptionProps:P,getSelectedIconProps:k}=function(e){var t,l;let n=(0,i.o)(),[a,c]=(0,s.rE)(e,o.j$.variantKeys),{as:v,item:m,state:y,description:b,startContent:x,endContent:D,isVirtualized:C,selectedIcon:E,className:S,classNames:P,autoFocus:k,onPress:B,onPressUp:N,onPressStart:A,onPressEnd:I,onPressChange:R,onClick:z,shouldHighlightOnFocus:O,hideSelectedIcon:T=!1,isReadOnly:j=!1,...F}=a,L=null!=(l=null!=(t=e.disableAnimation)?t:null==n?void 0:n.disableAnimation)&&l,W=(0,d.useRef)(null),_=v||(e.href?"a":"li"),V="string"==typeof _,{rendered:$,key:H}=m,U=y.disabledKeys.has(H)||e.isDisabled,q="none"!==y.selectionManager.selectionMode,G
1=(0,ex.a)(),{pressProps:J,isPressed:Q}=(0,p.d)({ref:W,isDisabled:U,onClick:z,onPress:B,onPressUp:N,onPressStart:A,onPressEnd:I,onPressChange:R}),{isHovered:X,hoverProps:Y}=(0,f.M)({isDisabled:U}),{isFocusVisible:Z,focusProps:ee}=(0,h.o)({autoFocus:k}),{isFocused:et,isSelected:el,optionProps:en,labelProps:eo,descriptionProps:er}=function(e,t,l){var i,s,n,o,r,a,u,d;let{key:c}=e,h=ei.get(t),g=null!=(n=e.isDisabled)?n:t.selectionManager.isDisabled(c),p=null!=(o=e.isSelected)?o:t.selectionManager.isSelected(c),v=null!=(r=e.shouldSelectOnPressUp)?r:null==h?void 0:h.shouldSelectOnPressUp,m=null!=(a=e.shouldFocusOnHover)?a:null==h?void 0:h.shouldFocusOnHover,y=null!=(u=e.shouldUseVirtualFocus)?u:null==h?void 0:h.shouldUseVirtualFocus,b=null!=(d=e.isVirtualized)?d:null==h?void 0:h.isVirtualized,x=(0,M.X1)(),D=(0,M.X1)(),C={role:"option","aria-disabled":g||void 0,"aria-selected":"none"!==t.selectionManager.selectionMode?p:void 0};(0,ep.cX)()&&(0,ep.Tc)()||(C["aria-label"]=e["aria-label"],C["aria-labelledby"]=x,C["aria-describedby"]=D);let E=t.collection.getItem(c);if(b){let e=Number(null==E?void 0:E.index);C["aria-posinset"]=Number.isNaN(e)?void 0:e+1,C["aria-setsize"]=function(e){let t=ey.get(e);if(null!=t)return t;let l=0,i=t=>{for(let s of t)"section"===s.type?i((0,em.iQ)(s,e)):"item"===s.type&&l++};return i(e),ey.set(e,l),l}(t.collection)}let S=(null==h?void 0:h.onAction)?()=>{var e;return null==h||null==(e=h.onAction)?void 0:e.call(h,c)}:void 0,P=function(e,t){let l=ei.get(e);if(!l)throw Error("Unknown list");return`${l.id}-option-${"string"==typeof t?t.replace(/\s*/g,""):""+t}`}(t,c),{itemProps:k,isPressed:B,isFocused:N,hasAction:A,allowsSelection:I}=(0,eb.p)({selectionManager:t.selectionManager,key:c,ref:l,shouldSelectOnPressUp:v,allowsDifferentPressOrigin:v&&m,isVirtualized:b,shouldUseVirtualFocus:y,isDisabled:g,onAction:S||(null==E||null==(i=E.props)?void 0:i.onAction)?(0,ef.c)(null==E||null==(s=E.props)?void 0:s.onAction,S):void 0,linkBehavior:null==h?void 0:h.linkBehavior,UNSTABLE_itemBehavior:null==h?void 0:h.UNSTABLE_itemBehavior,id:P}),{hoverProps:R}=(0,f.M)({isDisabled:g||!m,onHoverStart(){(0,w.pP)()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(c))}}),z=(0,es.$)(null==E?void 0:E.props);delete z.id;let O=(0,ev._h)(null==E?void 0:E.props);return{optionProps:{...C,...(0,K.v)(z,k,R,O),id:P},labelProps:{id:x},descriptionProps:{id:D},isFocused:N,isFocusVisible:N&&t.selectionManager.isFocused&&(0,w.pP)(),isSelected:p,isDisabled:g,isPressed:B,allowsSelection:I,hasAction:A}}({key:H,isDisabled:U,"aria-label":a["aria-label"],isVirtualized:C},y,W),ea=en,eu=(0,d.useMemo)(()=>(0,o.j$)({...c,isDisabled:U,disableAnimation:L,hasTitleTextChild:"string"==typeof $,hasDescriptionTextChild:"string"==typeof b}),[(0,g.t6)(c),U,L,$,b]),ed=(0,r.cn)(null==P?void 0:P.base,S);j&&(ea=(0,g.GU)(ea));let ec=O&&et||(G?X||Q:X||et&&!Z),eh=e=>{let t=e.target;(t.closest("[data-slot='startContent']")||t.closest("[data-slot='endContent']"))&&e.stopPropagation()},eg=(0,d.useCallback)((e={})=>({"aria-hidden":(0,g.sE)(!0),"data-disabled":(0,g.sE)(U),className:eu.selectedIcon({class:null==P?void 0:P.selectedIcon}),...e}),[U,eu,P]);return{Component:_,domRef:W,slots:eu,classNames:P,isSelectable:q,isSelected:el,isDisabled:U,rendered:$,description:b,startContent:x,endContent:D,selectedIcon:E,hideSelectedIcon:T,disableAnimation:L,getItemProps:(e={})=>({ref:W,onFocusCapture:eh,...(0,g.v6)(ea,j?{}:(0,g.v6)(ee,J),Y,(0,u.$)(F,{enabled:V}),e),"data-selectable":(0,g.sE)(q),"data-focus":(0,g.sE)(et),"data-hover":(0,g.sE)(ec),"data-disabled":(0,g.sE)(U),"data-selected":(0,g.sE)(el),"data-pressed":(0,g.sE)(Q),"data-focus-visible":(0,g.sE)(Z),className:eu.base({class:(0,r.cn)(ed,e.className)})}),getLabelProps:(e={})=>({...(0,g.v6)(eo,e),"data-label":(0,g.sE)(!0),className:eu.title({class:null==P?void 0:P.title})}),getWrapperProps:(e={})=>({...(0,g.v6)(e),className:eu.wrapper({class:null==P?void 0:P.wrapper})}),getDescriptionProps:(e={})=>({...(0,g.v6)(er,e),className:eu.description({class:null==P?void 0:P.description})}),getSelectedIconProps:eg}}(e),B=(0,d.useMemo)(()=>{let e=(0,et.jsx)(eg,{disableAnimation:D,isSelected:c});return"function"==typeof m?m({icon:e,isSelected:c,isDisabled:v}):m||e},[m,c,v,D]);return(0,et.jsxs)(t,{...C(),children:[y&&(0,et.jsx)("span",{"data-slot":"startContent",children:y}),n?(0,et.jsxs)("div",{...S(),children:[(0,et.jsx)("span",{...E(),children:l}),(0,et.jsx)("span",{...P(),children:n})]}):(0,et.jsx)("span",{...E(),children:l}),a&&!x&&(0,et.jsx)("span",{...k(),children:B}),b&&(0,et.jsx)("span",{"data-slot":"endContent",children:b})]})};eD.displayName="HeroUI.ListboxItem";var eC=l(85255),eE=(0,s.Rf)(({item:e,state:t,as:l,variant:i,color:s,disableAnimation:n,className:a,classNames:u,hideSelectedIcon:c,showDivider:h=!1,dividerProps:p={},itemClasses:f,title:v,items:m,...y},b)=>{let x=(0,d.useMemo)(()=>(0,o.Dt)(),[]),D=(0,r.cn)(null==u?void 0:u.base,a),C=(0,r.cn)(null==u?void 0:u.divi
1der,null==p?void 0:p.className),{itemProps:E,headingProps:S,groupProps:w}=function(e){let{heading:t,"aria-label":l}=e,i=(0,M.Bi)();return{itemProps:{role:"presentation"},headingProps:t?{id:i,role:"presentation"}:{},groupProps:{role:"group","aria-label":l,"aria-labelledby":t?i:void 0}}}({heading:e.rendered,"aria-label":e["aria-label"]});return(0,et.jsxs)(l||"li",{"data-slot":"base",...(0,g.v6)(E,y),className:x.base({class:D}),children:[e.rendered&&(0,et.jsx)("span",{...S,className:x.heading({class:null==u?void 0:u.heading}),"data-slot":"heading",children:e.rendered}),(0,et.jsxs)("ul",{...w,className:x.group({class:null==u?void 0:u.group}),"data-has-title":!!e.rendered,"data-slot":"group",children:[[...e.childNodes].map(e=>{let{key:l,props:o}=e,r=(0,et.jsx)(eD,{classNames:f,color:s,disableAnimation:n,hideSelectedIcon:c,item:e,state:t,variant:i,...o},l);return e.wrapper&&(r=e.wrapper(r)),r}),h&&(0,et.jsx)(eC.y,{as:"li",className:x.divider({class:C}),...p})]})]},e.key)});eE.displayName="HeroUI.ListboxSection";var eS=l(45674);function ew(e,t,l){let i,s=l.initialDeps??[];return()=>{var n,o,r,a;let u,d;l.key&&(null==(n=l.debug)?void 0:n.call(l))&&(u=Date.now());let c=e();if(!(c.length!==s.length||c.some((e,t)=>s[t]!==e)))return i;if(s=c,l.key&&(null==(o=l.debug)?void 0:o.call(l))&&(d=Date.now()),i=t(...c),l.key&&(null==(r=l.debug)?void 0:r.call(l))){let e=Math.round((Date.now()-u)*100)/100,t=Math.round((Date.now()-d)*100)/100,i=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*i,120))}deg 100% 31%);`,null==l?void 0:l.key)}return null==(a=null==l?void 0:l.onChange)||a.call(l,i),i}}function eM(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}let eP=e=>e,eK=e=>{let t=Math.max(e.startIndex-e.overscan,0),l=Math.min(e.endIndex+e.overscan,e.count-1),i=[];for(let e=t;e<=l;e++)i.push(e);return i},ek=(e,t)=>{let l=e.scrollElement;if(!l)return;let i=e.targetWindow;if(!i)return;let s=e=>{let{width:l,height:i}=e;t({width:Math.round(l),height:Math.round(i)})};if(s(l.getBoundingClientRect()),!i.ResizeObserver)return()=>{};let n=new i.ResizeObserver(e=>{let t=e[0];if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return void s({width:e.inlineSize,height:e.blockSize})}s(l.getBoundingClientRect())});return n.observe(l,{box:"border-box"}),()=>{n.unobserve(l)}},eB={passive:!0},eN="undefined"==typeof window||"onscrollend"in window,eA=(e,t)=>{let l=e.scrollElement;if(!l)return;let i=e.targetWindow;if(!i)return;let s=0,n=e.options.useScrollendEvent&&eN?()=>void 0:((e,t,l)=>{let i;return function(...s){e.clearTimeout(i),i=e.setTimeout(()=>t.apply(this,s),l)}})(i,()=>{t(s,!1)},e.options.isScrollingResetDelay),o=i=>()=>{let{horizontal:o,isRtl:r}=e.options;s=o?l.scrollLeft*(r&&-1||1):l.scrollTop,n(),t(s,i)},r=o(!0),a=o(!1);return a(),l.addEventListener("scroll",r,eB),l.addEventListener("scrollend",a,eB),()=>{l.removeEventListener("scroll",r),l.removeEventListener("scrollend",a)}},eI=(e,t,l)=>{if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[l.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[l.options.horizontal?"width":"height"])},eR=(e,{adjustments:t=0,behavior:l},i)=>{var s,n;null==(n=null==(s=i.scrollElement)?void 0:s.scrollTo)||n.call(s,{[i.options.horizontal?"left":"top"]:e+t,behavior:l})};class ez{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{this._measureElement(e.target,e)})}):null);return{disconnect:()=>{var l;null==(l=t())||l.disconnect(),e=null},observe:e=>{var l;return null==(l=t())?void 0:l.observe(e,{box:"border-box"})},unobserve:e=>{var l;return null==(l=t())?void 0:l.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,l])=>{void 0===l&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:eP,rangeExtractor:eK,onChange:()=>{},measureElement:eI,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var t,l;null==(l=(t=this.options).onChange)||l.call(t,this,e)},this.maybeNotify=ew(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>
4{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;let t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{let l=new Map,i=new Map;for(let s=t-1;s>=0;s--){let t=e[s];if(l.has(t.lane))continue;let n=i.get(t.lane);if(null==n||t.end>n.end?i.set(t.lane,t):t.end<n.end&&l.set(t.lane,!0),l.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=ew(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,t,l,i,s)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:l,getItemKey:i,enabled:s}),{key:!1}),this.getMeasurements=ew(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:l,getItemKey:i,enabled:s},n)=>{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 o=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let r=this.measurementsCache.slice(0,o);for(let s=o;s<e;s++){let e=i(s),o=1===this.options.lanes?r[s-1]:this.getFurthestMeasurement(r,s),a=o?o.end+this.options.gap:t+l,u=n.get(e),d="number"==typeof u?u:this.options.estimateSize(s),c=a+d,h=o?o.lane:s%this.options.lanes;r[s]={index:s,start:a,size:d,end:c,key:e,lane:h}}return this.measurementsCache=r,r},{key:!1,debug:()=>this.options.debug}),this.calculateRange=ew(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,t,l)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:l}){let i=e.length-1,s=eO(0,i,t=>e[t].start,l),n=s;for(;n<i&&e[n].end<l+t;)n++;return{startIndex:s,endIndex:n}}({measurements:e,outerSize:t,scrollOffset:l}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=ew(()=>{let e=null,t=null,l=this.calculateRange();return l&&(e=l.startIndex,t=l.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,l,i,s)=>null===i||null===s?[]:e({startIndex:i,endIndex:s,overscan:t,count:l}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,l=e.getAttribute(t);return l?parseInt(l,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{let l=this.indexFromElement(e),i=this.measurementsCache[l];if(!i)return;let s=i.key,n=this.elementsCache.get(s);n!==e&&(n&&this.observer.unobserve(n),this.observer.observe(e),this.elementsCache.set(s,e)),e.isConnected&&this.resizeItem(l,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>
4{let l=this.measurementsCache[e];if(!l)return;let i=t-(this.itemSizeCache.get(l.key)??l.size);0!==i&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(l,i,this):l.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(l.index),this.itemSizeCache=new Map(this.itemSizeCache.set(l.key,t)),this.notify(!1))},this.measureElement=e=>{if(!e)return void this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});this._measureElement(e,void 0)},this.getVirtualItems=ew(()=>[this.getIndexes(),this.getMeasurements()],(e,t)=>{let l=[];for(let i=0,s=e.length;i<s;i++){let s=t[e[i]];l.push(s)}return l},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0!==t.length)return eM(t[eO(0,t.length-1,e=>eM(t[e]).start,e)])},this.getOffsetForAlignment=(e,t)=>{let l=this.getSize(),i=this.getScrollOffset();"auto"===t&&e>=i+l&&(t="end"),"end"===t&&(e-=l);let s=this.options.horizontal?"scrollWidth":"scrollHeight";return Math.max(Math.min((this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-l,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let l=this.measurementsCache[e];if(!l)return;let i=this.getSize(),s=this.getScrollOffset();if("auto"===t)if(l.end>=s+i-this.options.scrollPaddingEnd)t="end";else{if(!(l.start<=s+this.options.scrollPaddingStart))return[s,t];t="start"}let n=l.start-this.options.scrollPaddingStart+(l.size-i)/2;switch(t){case"center":return[this.getOffsetForAlignment(n,t),t];case"end":return[this.getOffsetForAlignment(l.end+this.options.scrollPaddingEnd,t),t];default:return[this.getOffsetForAlignment(l.start-this.options.scrollPaddingStart,t),t]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{null!==this.scrollToIndexTimeoutId&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t="start",behavior:l}={})=>{this.cancelScrollToIndex(),"smooth"===l&&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:l})},this.scrollToIndex=(e,{align:t="auto",behavior:l}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),"smooth"===l&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let i=this.getOffsetForIndex(e,t);if(!i)return;let[s,n]=i;this._scrollToOffset(s,{adjustments:void 0,behavior:l}),"smooth"!==l&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[t]=eM(this.getOffsetForIndex(e,n));1>Math.abs(t-this.getScrollOffset())||this.scrollToIndex(e,{align:n,behavior:l})}else this.scrollToIndex(e,{align:n,behavior:l})}))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),"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=this.getMeasurements();return Math.max((0===t.length?this.options.paddingStart:1===this.options.lanes?(null==(e=t[t.length-1])?void 0:e.end)??0:Math.max(...t.slice(-this.options.lanes).map(e=>e.end)))-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:l})=>{this.options.scrollToFn(e,{behavior:l,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}let eO=(e,t,l,i)=>{for(;e<=t;){let s=(e+t)/2|0,n=l(s);if(n<i)e=s+1;else{if(!(n>i))return s;t=s-1}}return e>0?e-1:0},eT="undefined"!=typeof document?d.useLayoutEffect:d.useEffect;var ej=l(57816),eF=e=>{var t;let{Component:l,state:i,color:n,variant:o,itemClasses:r,getBaseProps:c,topContent:h,bottomContent:p,hideEmptyContent:f,hideSelectedIcon:v,shouldHighlightOnFocus:m,disableAnimation:y,getEmptyContentProps:b,getListProps:x,scrollShadowProps:D}=e,{virtualization:C}=e;if(!C||!(0,g.Im)(C)&&!C.maxListboxHeight&&!C.itemHeight)throw Error("You are using a virtualized listbox. VirtualizedListbox requires 'virtualization' props with 'maxListboxHeight' and 'itemHeight' properties. This error might have originated from autocomplete components that use VirtualizedListbox. Please provide these props to use the virtualized listbox.");let{maxListboxHeight:E,itemHeight:S}=C,w=Math.min(E,S*i.collection.size),M=(0,d.useRef)(null),P=(0,d.useMemo)(()=>((e,t)=>{let l=[];for(let i of e)"section"===i.type?l.push(([...i.childNodes].length+1)*t):l.push(t);return l})([...i.collection],S),[i.collection,S]),K=function(e){let t=d.useReducer(()=>({}),{})[1],l={...e,onChange:(l,i)=>{var s;i?(0,eS.flushSync)(t):t(),null==(s=e.onChange)||s.call(e,l,i)}},[i]=d.useState(()=>new ez(l));return i.setOptions(l),eT(()=>i._didMount(),[]),eT(()=>i._willUpdate()),i}({observeElementRect:ek,observeElementOffset:eA,scrollToFn:eR,...{count:[...i.collection].length,getScrollElement:()=>M.current,estimateSize:e=>P[e]}}),k=K.getVirtualItems(),B=K.getTotalSize(),{getBaseProps:N}=function(e){var t;let[l,i]=(0,s.rE)(e,ej.Q.variantKeys),{ref:n,as:o,children:r,className:u,style:c,size:h=40,offset:p=0,visibility:f="auto",isEnabled:v=!0,onVisibilityChange:m,...y}=l,b=(0,a.zD)(n);!function(e={}){let{domRef:t,isEnabled:l=!0,overflowCheck:i="vertical",visibility:s="auto",offset:n=0,onVisibilityChange:o,updateDeps:r=[]}=e,a=(0,d.useRef)(s);(0,d.useEffect)(()=>{let e=null==t?void 0:t.current;if(!e||!l)return;let r=(t,l,i,n,r)=>{if("auto"===s){let t=`${n}${(0,g.ZH)(r)}Scroll`;l&&i?(e.dataset[t]="true",e.removeAttribute(`data-${n}-scroll`),e.removeAttribute(`data-${r}-scroll`)):(e.dataset[`${n}Scroll`]=l.toString(),e.dataset[`${r}Scroll`]=i.toString(),e.removeAttribute(`data-${n}-${r}-scroll`))}else{let e=l&&i?"both":l?n:i?r:"none";e!==a.current&&(null==o||o(e),a.current=e)}},u=()=>{var t,l;let s=e.querySelector('ul[data-slot="list"]'),o=+(null!=(t=null==s?void 0:s.getAttribute("data-virtual-scroll-height"))?t:e.scrollHeight),a=+(null!=(l=null==s?void 0:s.getAttribute("data-virtual-scroll-top"))?l:e.scrollTop);for(let{type:t,prefix:l,suffix:s}of[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}])if(i===t||"both"===i){let i="vertical"===t?a>n:e.scrollLeft>n,u="vertical"===t?a+e.clientHeight+n<o:e.scrollLeft+e.clientWidth+n<e.scrollWidth;r(t,i,u,l,s)}},d=()=>{["top","bottom","top-bottom","left","right","left-right"].forEach(t=>{e.removeAttribute(`data-${t}-scroll`)})};return u(),e.addEventListener("scroll",u,!0),"auto"!==s&&(d(),"both"===s?(e.dataset.topBottomScroll=String("vertical"===i),e.dataset.leftRightScroll=String("horizontal"===i)):(e.dataset.topBottomScroll="false",e.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(t=>{e.dataset[`${t}Scroll`]=String(s===t)}))),()=>{e.removeEventListener("scroll",u,!0),d()}},[...r,l,s,i,o,t])}({domRef:b,offset:p,visibility:f,isEnabled:v,onVisibilityChange:m,updateDeps:[r],overflowCheck:null!=(t=e.orientation)?t:"vertical"});let x=(0,d.useMemo)(()=>(0,ej.Q)({...i,className:u}),[(0,g.t6)(i),u]);return{Component:o||"div",styles:x,domRef:b,children:r,getBaseProps:(t={})=>{var l;return{ref:b,className:x,"data-orientation":null!=(l=e.orientation)?l:"vertical",style:{"--scroll-shadow-size":`${h}px`,...c,...t.style},...y,...t}}}}({...D}),[A,I]=(0,d.useState)({isTop:!1,isBottom:!0,isMiddle:!1}),R=(0,et.jsxs)(l,{...x(),"data-virtual-scroll-height":B,"data-virtual-scroll-top":null==(t=null==M?void 0:M.current)?void 0:t.scrollTop,children:[!i.collection.size&&!f&&(0,et.jsx)("li",{children:(0,et.jsx)("div",{...b()})}),(0,et.jsx)("div",{...(0,u.$)(N()),ref:M,style:{height:E,overflow:"auto"},onScroll:e=>{I((e=>{if(!e||void 0===e.scrollTop||void 0===e.clientHeight||void 0===e.scrollHeight)return{isTop:!1,isBottom:!1,isMiddle:!1};let t=0===e.scrollTop,l=Math.ceil(e.scrollTop+e.clientHeight)>=e.scrollHeight;return{isTop:t,isBottom:l,isMiddle:!t&&!l}})(e.target))},children:w>0&&S>0&&(0,et.jsx)("div",{style:{height:`${B}px`,width:"100%",position:"relative"},children:k.map(e=>(e=>{var t;let l=[...i.collection][e.index];if(!l)return null;let s={color:n,item:l,state:i,variant:o,disableAnimation:y,hideSelectedIcon:v,...l.props},a={position:"absolute",top:0,left:0,width:"100%",height:`${e.size}px`,transform:`translateY(${e.start}px)`};if("section"===l.type)return(0,et.jsx)(eE,{...s,itemClasses:r,style:{...a,...s.style}},l.key);let u=(0,et.jsx)(eD,{...s,classNames:(0,g.v6)(r,null==(t=l.props)?void 0:t.classNames),shouldHighlightOnFocus:m,style:{...a,...s.style}},l.key);return l.wrapper&&(u=l.wrapper(u)),u})(e))})})]});return(0,et.jsxs)("div",{...c(),children:[h,R,p]})},eL=(0,s.Rf)(function(e,t){let{isVirtualized:l,...s}=e,n=function(e){var t;let l=(0,i.o)(),{ref:s,as:n,state:c,variant:h,color:g,onAction:p,children:f,onSelectionChange:v,disableAnimation:m=null!=(t=null==l?void 0:l.disableAnimation)&&t,itemClasses:y,className:b,topContent:D,bottomContent:C,emptyContent:E="No items.",hideSelectedIcon:S=!1,hideEmptyContent:w=!1,shouldHighlightOnFocus:P=!1,
4classNames:k,...B}=e,N=n||"ul",A="string"==typeof N,I=(0,a.zD)(s),R=x({...e,children:f,onSelectionChange:v}),z=c||R,{listBoxProps:O}=function(e,t,l){let i=(0,es.$)(e,{labelable:!0}),s=e.selectionBehavior||"toggle",n=e.linkBehavior||("replace"===s?"action":"override");"toggle"===s&&"action"===n&&(n="override");let{listProps:o}=function(e){let{selectionManager:t,collection:l,disabledKeys:i,ref:s,keyboardDelegate:n,layoutDelegate:o}=e,r=function(e){let{locale:t}=(0,ec.Y)(),l=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(eh.has(l))return eh.get(l);let i=new Intl.Collator(t,e);return eh.set(l,i),i}({usage:"search",sensitivity:"base"}),a=t.disabledBehavior,u=(0,d.useMemo)(()=>n||new ed({collection:l,disabledKeys:i,disabledBehavior:a,ref:s,collator:r,layoutDelegate:o}),[n,o,l,i,s,r,a]),{collectionProps:c}=(0,er.y)({...e,ref:s,selectionManager:t,keyboardDelegate:u});return{listProps:c}}({...e,ref:l,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:n}),{focusWithinProps:r}=(0,en.R)({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),a=(0,M.Bi)(e.id);ei.set(t,{id:a,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:n,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:u,fieldProps:c}=(0,eo.M)({...e,id:a,labelElementType:"span"});return{labelProps:u,listBoxProps:(0,K.v)(i,r,"multiple"===t.selectionManager.selectionMode?{"aria-multiselectable":"true"}:{},{role:"listbox",...(0,K.v)(c,o)})}}({...e,onAction:p},z,I),T=(0,d.useMemo)(()=>(0,o.MK)(),[]),j=(0,r.cn)(null==k?void 0:k.base,b);return{Component:N,state:z,variant:h,color:g,slots:T,classNames:k,topContent:D,bottomContent:C,emptyContent:E,hideEmptyContent:w,shouldHighlightOnFocus:P,hideSelectedIcon:S,disableAnimation:m,className:b,itemClasses:y,getBaseProps:(e={})=>({ref:I,"data-slot":"base",className:T.base({class:j}),...(0,u.$)(B,{enabled:A}),...e}),getListProps:(e={})=>({"data-slot":"list",className:T.list({class:null==k?void 0:k.list}),...O,...e}),getEmptyContentProps:(e={})=>({"data-slot":"empty-content",children:E,className:T.emptyContent({class:null==k?void 0:k.emptyContent}),...e})}}({...s,ref:t}),{Component:c,state:h,color:p,variant:f,itemClasses:v,getBaseProps:m,topContent:y,bottomContent:b,hideEmptyContent:D,hideSelectedIcon:C,shouldHighlightOnFocus:E,disableAnimation:S,getEmptyContentProps:w,getListProps:P}=n;if(l)return(0,et.jsx)(eF,{...e,...n});let k=(0,et.jsxs)(c,{...P(),children:[!h.collection.size&&!D&&(0,et.jsx)("li",{children:(0,et.jsx)("div",{...w()})}),[...h.collection].map(e=>{var t;let l={color:p,item:e,state:h,variant:f,disableAnimation:S,hideSelectedIcon:C,...e.props};if("section"===e.type)return(0,et.jsx)(eE,{...l,itemClasses:v},e.key);let i=(0,et.jsx)(eD,{...l,classNames:(0,g.v6)(v,null==(t=e.props)?void 0:t.classNames),shouldHighlightOnFocus:E},e.key);return e.wrapper&&(i=e.wrapper(i)),i})]});return(0,et.jsxs)("div",{...m(),children:[y,k,b]})}),eW=l(53541),e_=new WeakMap,eV=[],e$=l(24826),eH=l(20685),eU=l(16826),eq=l(54074),eG=l(99107),eJ=l(74623),eQ=l(37405),eX=l(76201),eY=l(81394),eZ=l(70602),e0=()=>Promise.all([l.e(6379),l.e(9328)]).then(l.bind(l,99328)).then(e=>e.default),e4=(0,s.Rf)(({children:e,motionProps:t,placement:l,disableAnimation:i,style:s={},transformOrigin:n={},...o},r)=>{let a=s;return void 0!==n.originX||void 0!==n.originY?a={...a,transformOrigin:n}:l&&(a={...a,...(0,eW.kn)("center"===l?"top":l)}),i?(0,et.jsx)("div",{...o,ref:r,children:e}):(0,et.jsx)(eQ.F,{features:e0,children:(0,et.jsx)(eX.m.div,{ref:r,animate:"enter",exit:"exit",initial:"initial",style:a,variants:eY.zF.scaleSpringOpacity,...(0,g.v6)(o,t),children:e})})});e4.displayName="HeroUI.FreeSoloPopoverWrapper";var e3=(0,s.Rf)(({children:e,transformOrigin:t,disableDialogFocus:l=!1,...n},u)=>{let{Component:c,state:p,placement:f,backdrop:v,portalContainer:m,disableAnimation:y,motionProps:b,isNonModal:x,getPopoverProps:D,getBackdropProps:C,getDialogProps:E,getContentProps:S}=function(e){var t,l,n;let u=(0,i.o)(),[c,p]=(0,s.rE)(e,o.oO.variantKeys),{as:f,ref:v,children:m,state:y,triggerRef:b,scrollRef:x,defaultOpen:D,onOpenChange:C,isOpen:E,isNonModal:S=!0,shouldFlip:w=!0,containerPadding:P=12,
4shouldBlockScroll:K=!1,isDismissable:k=!0,shouldCloseOnBlur:B,portalContainer:N,updatePositionDeps:A,dialogProps:I,placement:R="top",triggerType:z="dialog",showArrow:O=!1,offset:T=7,crossOffset:j=0,boundaryElement:F,isKeyboardDismissDisabled:L,shouldCloseOnInteractOutside:W,shouldCloseOnScroll:_,triggerAnchorPoint:$,motionProps:H,className:q,classNames:G,onClose:J,...Q}=c,X=(0,a.zD)(v),Y=(0,d.useRef)(null),Z=(0,d.useRef)(!1),ee=b||Y,et=null!=(l=null!=(t=e.disableAnimation)?t:null==u?void 0:u.disableAnimation)&&l,el=(0,eU.T)({isOpen:E,defaultOpen:D,onOpenChange:e=>{null==C||C(e),e||null==J||J()}}),ei=y||el,{popoverProps:es,underlayProps:en,placement:eo}=function(e,t){let{groupRef:l,triggerRef:i,popoverRef:s,showArrow:n,offset:o=7,crossOffset:r=0,scrollRef:a,shouldFlip:u,boundaryElement:c,isDismissable:h=!0,shouldCloseOnBlur:p=!0,shouldCloseOnScroll:f=!0,placement:v="top",containerPadding:m,shouldCloseOnInteractOutside:y,isNonModal:b,isKeyboardDismissDisabled:x,updatePositionDeps:D=[],...C}=e,E=null==b||b,S="SubmenuTrigger"===C.trigger,{overlayProps:w,underlayProps:M}=(0,eH.P)({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:p,isDismissable:h||S,isKeyboardDismissDisabled:x,shouldCloseOnInteractOutside:y||(e=>{var t;return!(null==(t=i.current)?void 0:t.contains(e))}),disableOutsideEvents:!E},s),{overlayProps:P,arrowProps:K,placement:k,updatePosition:B,triggerAnchorPoint:N}=(0,e$.v)({...C,shouldFlip:u,crossOffset:r,targetRef:i,overlayRef:s,isOpen:t.isOpen,scrollRef:a,boundaryElement:c,containerPadding:m,placement:(0,eW.VO)(v),offset:n?o+3:o,onClose:E&&!S&&f?t.close:()=>{}});return(0,V.U)(()=>{D.length&&B()},D),(0,d.useEffect)(()=>{var e,i;if(t.isOpen&&s.current)if(!E)return function(e,t=document.body){let l=new Set(e),i=new Set,s=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(t);let t=e=>{if(l.has(e)||e.parentElement&&i.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of l)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},s=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),o=t(e);if(o===NodeFilter.FILTER_ACCEPT&&n(e),o!==NodeFilter.FILTER_REJECT){let e=s.nextNode();for(;null!=e;)n(e),e=s.nextNode()}},n=e=>{var t;let l=null!=(t=e_.get(e))?t:0;("true"!==e.getAttribute("aria-hidden")||0!==l)&&(0===l&&e.setAttribute("aria-hidden","true"),i.add(e),e_.set(e,l+1))};eV.length&&eV[eV.length-1].disconnect(),s(t);let o=new MutationObserver(e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...l,...i].some(e=>e.contains(t.target))){for(let e of t.removedNodes)e instanceof Element&&(l.delete(e),i.delete(e));for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&("true"===e.dataset.liveAnnouncer||"true"===e.dataset.reactAriaTopLayer)?l.add(e):e instanceof Element&&s(e)}});o.observe(t,{childList:!0,subtree:!0});let r={visibleNodes:l,hiddenNodes:i,observe(){o.observe(t,{childList:!0,subtree:!0})},disconnect(){o.disconnect()}};return eV.push(r),()=>{for(let e of(o.disconnect(),i)){let t=e_.get(e);null!=t&&(1===t?(e.removeAttribute("aria-hidden"),e_.delete(e)):e_.set(e,t-1))}r===eV[eV.length-1]?(eV.pop(),eV.length&&eV[eV.length-1].observe()):eV.splice(eV.indexOf(r),1)}}([null!=(i=null==l?void 0:l.current)?i:s.current]);else{var n=null!=(e=null==l?void 0:l.current)?e:s.current;let t=eV[eV.length-1];return t&&!t.visibleNodes.has(n)?(t.visibleNodes.add(n),()=>{t.visibleNodes.delete(n)}):void 0}},[E,t.isOpen,s,l]),{popoverProps:(0,g.v6)(w,P),arrowProps:K,underlayProps:M,placement:k,triggerAnchorPoint:N}}({triggerRef:ee,isNonModal:S,popoverRef:X,placement:R,offset:T,scrollRef:x,isDismissable:k,shouldCloseOnBlur:B,boundaryElement:F,crossOffset:j,shouldFlip:w,containerPadding:P,updatePositionDeps:A,isKeyboardDismissDisabled:L,shouldCloseOnScroll:_,shouldCloseOnInteractOutside:W,triggerAnchorPoint:$},ei),er=(0,d.useMemo)(()=>eo?(0,eW.p8)(eo,R)?eo:R:null,[eo,R]),{triggerProps:ea}=function(e,t,l){let i,{type:s}=e,{isOpen:n}=t;(0,d.useEffect)(()=>{l&&l.current&&eq.a.set(l.current,t.close)}),"menu"===s?i=!0:"listbox"===s&&(i="listbox");let o=(0,M.Bi)();return{triggerProps:{"aria-haspopup":i,"aria-expanded":n,"aria-controls":n?o:void 0,onPress:t.toggle},overlayProps:{id:o}}}({type:z}
4,ei,ee),{isFocusVisible:eu,isFocused:ed,focusProps:ec}=(0,h.o)(),eh=(0,d.useMemo)(()=>(0,o.oO)({...p}),[(0,g.t6)(p)]),eg=(0,r.cn)(null==G?void 0:G.base,q),ep={"--trigger-anchor-point":$?`${$.x}px ${$.y}px`:void 0};(0,U.H)({isDisabled:!(K&&ei.isOpen)});let ef=(0,d.useCallback)((e={})=>({"data-slot":"content","data-open":(0,g.sE)(ei.isOpen),"data-arrow":(0,g.sE)(O),"data-placement":eo?(0,eW.Fh)(eo,R):void 0,className:eh.content({class:(0,r.cn)(null==G?void 0:G.content,e.className)})}),[eh,ei.isOpen,O,er,R,G,eo]),ev=(0,d.useCallback)(t=>{var l;let i;return"touch"===t.pointerType&&((null==e?void 0:e.backdrop)==="blur"||(null==e?void 0:e.backdrop)==="opaque")?i=setTimeout(()=>{Z.current=!0},100):Z.current=!0,null==(l=ea.onPress)||l.call(ea,t),()=>{clearTimeout(i)}},[null==ea?void 0:ea.onPress]),em=(0,d.useCallback)((e={},t=null)=>{let{isDisabled:l,...i}=e;return{"data-slot":"trigger",...(0,g.v6)({"aria-haspopup":"dialog"},ea,i),onPress:ev,isDisabled:l,className:eh.trigger({class:(0,r.cn)(null==G?void 0:G.trigger,e.className),isTriggerDisabled:l}),ref:(0,g.Px)(t,ee)}},[ei,ea,ev,ee]),ey=(0,d.useCallback)((e={})=>({"data-slot":"backdrop",className:eh.backdrop({class:null==G?void 0:G.backdrop}),onClick:e=>{if(!Z.current)return void e.preventDefault();ei.close(),Z.current=!1},...en,...e}),[eh,ei.isOpen,G,en]);return{state:ei,Component:f||"div",children:m,classNames:G,showArrow:O,triggerRef:ee,placement:er,isNonModal:S,popoverRef:X,portalContainer:N,isOpen:ei.isOpen,onClose:ei.close,disableAnimation:et,shouldBlockScroll:K,backdrop:null!=(n=e.backdrop)?n:"transparent",motionProps:H,getBackdropProps:ey,getPopoverProps:(e={})=>({ref:X,...(0,g.v6)(es,Q,e),style:(0,g.v6)(es.style,Q.style,e.style)}),getTriggerProps:em,getDialogProps:(e={})=>({"data-slot":"base","data-open":(0,g.sE)(ei.isOpen),"data-focus":(0,g.sE)(ed),"data-arrow":(0,g.sE)(O),"data-focus-visible":(0,g.sE)(eu),"data-placement":eo?(0,eW.Fh)(eo,R):void 0,...(0,g.v6)(ec,I,e),className:eh.base({class:(0,r.cn)(eg)}),style:{outline:"none",...ep}}),getContentProps:ef}}({...n,ref:u}),w=d.useRef(null),{dialogProps:P,titleProps:K}=(0,eZ.s)({},w),k=E({...!l&&{ref:w},...P}),B=d.useMemo(()=>"transparent"===v?null:y?(0,et.jsx)("div",{...C()}):(0,et.jsx)(eQ.F,{features:e0,children:(0,et.jsx)(eX.m.div,{animate:"enter",exit:"exit",initial:"exit",variants:eY.zF.fade,...C()})}),[v,y,C]);return(0,et.jsxs)(eG.hJ,{portalContainer:m,children:[!x&&B,(0,et.jsx)(c,{...D(),children:(0,et.jsxs)(e4,{disableAnimation:y,motionProps:b,placement:f,tabIndex:-1,transformOrigin:t,...k,children:[!x&&(0,et.jsx)(eJ.R,{onDismiss:p.close}),(0,et.jsx)("div",{...S(),children:"function"==typeof e?e(K):e}),(0,et.jsx)(eJ.R,{onDismiss:p.close})]})})]})});e3.displayName="HeroUI.FreeSoloPopover";var e1=({strokeWidth:e=1.5,...t})=>
4(0,et.jsx)("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:e,viewBox:"0 0 24 24",width:"1em",...t,children:(0,et.jsx)("path",{d:"m6 9 6 6 6-6"})}),e5=l(10700),e6=l(88543),e2=l(49635),e7=l(63861),e8=(0,s.Rf)(function(e,t){var l;let{Component:v,state:m,label:y,hasHelper:b,isLoading:O,triggerRef:T,selectorIcon:G=(0,et.jsx)(e1,{}),description:J,errorMessage:Q,isInvalid:X,startContent:Z,endContent:ee,placeholder:ei,renderValue:es,shouldLabelBeOutside:en,disableAnimation:eo,getBaseProps:er,getLabelProps:ea,getTriggerProps:eu,getValueProps:ed,getListboxProps:ec,getPopoverProps:eh,getSpinnerProps:eg,getMainWrapperProps:ep,getInnerWrapperProps:ef,getHiddenSelectProps:ev,getHelperWrapperProps:em,getListboxWrapperProps:ey,getDescriptionProps:eb,getErrorMessageProps:ex,getSelectorIconProps:eD,isClearable:eC,getClearButtonProps:eE,getEndWrapperProps:eS,getEndContentProps:ew}=function(e){var t,l,v,m,y,b;let O=(0,i.o)(),{validationBehavior:T}=(0,$.CC)(H.c)||{},[G,J]=(0,s.rE)(e,o.Lt.variantKeys),Q=null!=(l=null!=(t=e.disableAnimation)?t:null==O?void 0:O.disableAnimation)&&l,{ref:X,as:Y,label:Z,name:ee,isLoading:et,selectorIcon:el,isOpen:ei,defaultOpen:es,onOpenChange:en,startContent:eo,endContent:er,description:ea,renderValue:eu,onSelectionChange:ed,placeholder:ec,isVirtualized:eh,itemHeight:eg=36,maxListboxHeight:ep=256,children:ef,disallowEmptySelection:ev=!1,selectionMode:em="single",spinnerRef:ey,scrollRef:eb,popoverProps:ex={},scrollShadowProps:eD={},listboxProps:eC={},spinnerProps:eE={},validationState:eS,onChange:ew,onClose:eM,className:eP,classNames:eK,validationBehavior:ek=null!=(v=null!=T?T:null==O?void 0:O.validationBehavior)?v:"native",hideEmptyContent:eB=!1,onClear:eN,...eA}=G,eI=(0,a.zD)(eb),eR={popoverProps:(0,g.v6)({placement:"bottom",triggerScaleOnOpen:!1,offset:5,disableAnimation:Q},ex),scrollShadowProps:(0,g.v6)({ref:eI,isEnabled:null==(m=e.showScrollIndicators)||m,hideScrollBar:!0,offset:15},eD),listboxProps:(0,g.v6)({disableAnimation:Q},eC)},ez=Y||"button",eO="string"==typeof ez,eT=(0,a.zD)(X),ej=(0,d.useRef)(null),eF=(0,d.useRef)(null),eL=(0,d.useRef)(null),eW=function({validate:e,validationBehavior:t,...l}){let[i,s]=(0,d.useState)(!1),[n,o]=(0,d.useState)(null),r=function(e){let t=(0,D.T)(e),[l,i]=(0,d.useState)(null),[s,n]=(0,d.useState)([]);return{focusStrategy:l,...t,open(e=null){i(e),t.open()},toggle(e=null){i(e),t.toggle()},close(){n([]),t.close()},expandedKeysStack:s,openSubmenu:(e,t)=>{n(l=>t>l.length?l:[...l.slice(0,t),e])},closeSubmenu:(e,t)=>{n(l=>l[t]===e?l.slice(0,t):l)}}}(l),a=function(e){let{collection:t,disabledKeys:l,selectionManager:i,selectionManager:{setSelectedKeys:s,selectedKeys:n,selectionMode:o}}=x(e),r=(0,d.useMemo)(()=>e.isLoading||0===n.size?[]:Array.from(n).filter(Boolean).filter(e=>!t.getItem(e)),[n,t]),a=0!==n.size?Array.from(n).map(e=>t.getItem(e)).filter(Boolean):null;return r.length&&console.warn(`Select: Keys "${r.join(", ")}" passed to "selectedKeys" are not present in the collection.`),{collection:t,disabledKeys:l,selectionManager:i,selectionMode:o,selectedKeys:n,setSelectedKeys:s.bind(i),selectedItems:a}}({...l,onSelectionChange:e=>{null!=l.onSelectionChange&&("all"===e?l.onSelectionChange(new Set(a.collection.getKeys())):l.onSelectionChange(e)),"single"===l.selectionMode&&r.close()}}),u=(0,C.KZ)({...l,validationBehavior:t,validate:t=>{if(!e)return;let i=Array.from(t);return e("single"===l.selectionMode?i[0]:i)},value:a.selectedKeys}),c=0===a.collection.size&&l.hideEmptyContent;return{...u,...a,...r,focusStrategy:n,close(){r.close()},open(e=null){c||(o(e),r.open())},toggle(e=null){c||(o(e),r.toggle())},isFocused:i,setFocused:s}}({...G,isOpen:ei,selectionMode:em,disallowEmptySelection:ev,validationBehavior:ek,children:ef,isRequired:e.isRequired,isDisabled:e.isDisabled,isInvalid:e.isInvalid,defaultOpen:es,hideEmptyContent:eB,onOpenChange:e=>{null==en||en(e),e||null==eM||eM()},onSelectionChange:e=>{null==ed||ed(e),ew&&"function"==typeof ew&&ew({target:{...eT.current&&{...eT.current,name:eT.current.name},value:Array.from(e).join(",")}}),eW.commitValidation()}});eW={...eW,...e.isDisabled&&{disabledKeys:new Set([...eW.collection.getKeys()])}},(0,V.U)(()=>{var e;(null==(e=eT.current)?void 0:e.value)&&eW.setSelectedKeys(new Set([...eW.selectedKeys,eT.current.value]))},[eT.current]);let{labelProps:e_,triggerProps:eV,valueProps:e$,menuProps:eH,descriptionProps:eU,errorMessageProps:eq,isInvalid:eG,validationErrors:eJ,validationDetail
4s:eQ}=function(e,t,l){let{disallowEmptySelection:i,isDisabled:s}=e,n=function(e){let{locale:t}=(0,E.Y)(),l=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(S.has(l))return S.get(l);let i=new Intl.Collator(t,e);return S.set(l,i),i}({usage:"search",sensitivity:"base"}),o=(0,d.useMemo)(()=>new j(t.collection,t.disabledKeys,null,n),[t.collection,t.disabledKeys,n]),{menuTriggerProps:r,menuProps:a}=function(e,t,l){var i;let{type:s="menu",isDisabled:n,trigger:o="press"}=e,r=(0,M.Bi)(),{triggerProps:a,overlayProps:u}=function(e,t,l){let i,{type:s}=e,{isOpen:n}=t;(0,d.useEffect)(()=>{l&&l.current&&z.set(l.current,t.close)}),"menu"===s?i=!0:"listbox"===s&&(i="listbox");let o=(0,M.Bi)();return{triggerProps:{"aria-haspopup":i,"aria-expanded":n,"aria-controls":n?o:void 0,onPress:t.toggle},overlayProps:{id:o}}}({type:s},t,l),{longPressProps:c}=function(e){let{isDisabled:t,onLongPressStart:l,onLongPressEnd:i,onLongPress:s,threshold:n=500,accessibilityDescription:o}=e,r=(0,d.useRef)(void 0),{addGlobalListener:a,removeGlobalListener:u}=(0,N.A)(),{pressProps:c}=(0,p.d)({isDisabled:t,onPressStart(e){if(e.continuePropagation(),("mouse"===e.pointerType||"touch"===e.pointerType)&&(l&&l({...e,type:"longpressstart"}),r.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),(0,A.TW)(e.target).activeElement!==e.target&&(0,B.e)(e.target),s&&s({...e,type:"longpress"}),r.current=void 0},n),"touch"===e.pointerType)){let t=e=>{e.preventDefault()};a(e.target,"contextmenu",t,{once:!0}),a(window,"pointerup",()=>{setTimeout(()=>{u(e.target,"contextmenu",t)}
4,30)},{once:!0})}},onPressEnd(e){r.current&&clearTimeout(r.current),i&&("mouse"===e.pointerType||"touch"===e.pointerType)&&i({...e,type:"longpressend"})}}),h=(0,I.I)(s&&!t?o:void 0);return{longPressProps:(0,K.v)(c,h)}}({isDisabled:n||"longPress"!==o,accessibilityDescription:(0,R.o)((i=k)&&i.__esModule?i.default:i,"@react-aria/menu").format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}});return delete a.onPress,{menuTriggerProps:{...a,..."press"===o?{preventFocusOnPress:!0,onPressStart(e){"touch"===e.pointerType||"keyboard"===e.pointerType||n||((0,B.e)(e.target),t.open("virtual"===e.pointerType?"first":null))},onPress(e){"touch"!==e.pointerType||n||((0,B.e)(e.target),t.toggle())}}:c,id:r,onKeyDown:e=>{if(!n&&("longPress"!==o||e.altKey)&&l&&l.current)switch(e.key){case"Enter":case" ":if("longPress"===o||e.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),t.toggle("last");break;default:"continuePropagation"in e&&e.continuePropagation()}}},menuProps:{...u,"aria-labelledby":r,autoFocus:t.focusStrategy||!0,onClose:t.close}}}({isDisabled:s,type:"listbox"},t,l),{typeSelectProps:u}=function(e){let{keyboardDelegate:t,selectionManager:l,onTypeSelect:i}=e,s=(0,d.useRef)({search:"",timeout:void 0}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{var n;let o=1!==(n=e.key).length&&/^[A-Z]/i.test(n)?"":n;if(o&&!e.ctrlKey&&!e.metaKey&&e.currentTarget.contains(e.target)&&(0!==s.search.length||" "!==o)){if(" "===o&&s.search.trim().length>0&&(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),s.search+=o,null!=t.getKeyForSearch){let e=t.getKeyForSearch(s.search,l.focusedKey);null==e&&(e=t.getKeyForSearch(s.search)),null!=e&&(l.setFocusedKey(e),i&&i(e))}clearTimeout(s.timeout),s.timeout=setTimeout(()=>{s.search=""},1e3)}}:void 0}}}({keyboardDelegate:o,selectionManager:t.selectionManager,onTypeSelect(e){t.setSelectedKeys([e])}}),{isInvalid:c,validationErrors:h,validationDetails:g}=t.displayValidation,{labelProps:f,fieldProps:v,descriptionProps:m,errorMessageProps:y}=function(e){let{description:t,errorMessage:l,isInvalid:i,validationState:s}=e,{labelProps:n,fieldProps:o}=function(e){let{id:t,label:l,"aria-labelledby":i,"aria-label":s,labelElementType:n="label"}=e;t=(0,M.Bi)(t);let o=(0,M.Bi)(),r={};return l&&(i=i?`${o} ${i}`:o,r={id:o,htmlFor:"label"===n?t:void 0}),{labelProps:r,fieldProps:(0,P.b)({id:t,"aria-label":s,"aria-labelledby":i})}}(e),r=(0,M.X1)([!!t,!!l,i,s]),a=(0,M.X1)([!!t,!!l,i,s]);return{labelProps:n,fieldProps:o=(0,K.v)(o,{"aria-describedby":[r,a,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),descriptionProps:{id:r},errorMessageProps:{id:a}}}({...e,labelElementType:"span",isInvalid:c,errorMessage:e.errorMessage||h});u.onKeyDown=u.onKeyDownCapture,delete u.onKeyDownCapture,r.onPressStart=e=>{"touch"===e.pointerType||"keyboard"===e.pointerType||s||t.toggle("virtual"===e.pointerType?"first":null)};let b=(0,F.$)(e,{labelable:!0}),x=(0,L.v)(u,r,v),D=(0,W.Bi)();return{labelProps:{...f,onClick:()=>{var t;e.isDisabled||(null==(t=l.current)||t.focus(),(0,w.Cl)("keyboard"))}},triggerProps:(0,L.v)(b,{...x,onKeyDown:(0,_.c)(x.onKeyDown,e=>{if("single"===t.selectionMode)switch(e.key){case"ArrowLeft":{e.preventDefault();let l=t.selectedKeys.size>0?o.getKeyAbove(t.selectedKeys.values().next().value):o.getFirstKey();l&&t.setSelectedKeys([l]);break}case"ArrowRight":{e.preventDefault();let l=t.selectedKeys.size>0?o.getKeyBelow(t.selectedKeys.values().next().value):o.getFirstKey();l&&t.setSelectedKeys([l])}}},e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[D,x["aria-labelledby"],x["aria-label"]&&!x["aria-labelledby"]?x.id:null].join(" "),onFocus(l){t.isFocused||(e.onFocus&&e.onFocus(l),t.setFocused(!0))},onBlur(l){t.isOpen||(e.onBlur&&e.onBlur(l),t.setFocused(!1))}}),valueProps:{id:D},menuProps:{...a,disallowEmptySelection:i,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,onBlur:l=>{l.currentTarget.contains(l.relatedTarget)||(e.onBlur&&e.onBlur(l),t.setFocused(!1))},onFocus:null==a?void 0:a.onFocus,"aria-labelledby":[v["aria-labelledby"],x["aria-label"]&&!v["aria-labelledby"]?x.id:null].filter(
4Boolean).join(" ")},descriptionProps:m,errorMessageProps:y,isInvalid:c,validationErrors:h,validationDetails:g}}({...G,disallowEmptySelection:ev,isDisabled:e.isDisabled},eW,ej),eX=(0,d.useCallback)(()=>{var e;eW.setSelectedKeys(new Set([])),null==eN||eN(),null==(e=ej.current)||e.focus()},[eN,eW]),{pressProps:eY}=(0,p.d)({isDisabled:!!(null==e?void 0:e.isDisabled),onPress:eX}),eZ=e.isInvalid||"invalid"===eS||eG,{isPressed:e0,buttonProps:e4}=(0,c.l)(eV,ej),{focusProps:e3,isFocused:e1,isFocusVisible:e5}=(0,h.o)(),{focusProps:e6,isFocusVisible:e2}=(0,h.o)(),{isHovered:e7,hoverProps:e8}=(0,f.M)({isDisabled:e.isDisabled}),e9=(0,n.n)({labelPlacement:e.labelPlacement,label:Z}),te=!!ec,tt="outside-left"===e9||"outside"===e9||"outside-top"===e9,tl="inside"===e9,ti="outside-left"===e9,ts=e.isClearable,tn=eW.isOpen||te||!!(null==(y=eW.selectedItems)?void 0:y.length)||!!eo||!!er||!!e.isMultiline,to=!!(null==(b=eW.selectedItems)?void 0:b.length),tr=!!Z,ta=tr&&(ti||tt&&te),tu=(0,r.cn)(null==eK?void 0:eK.base,eP),td=(0,d.useMemo)(()=>(0,o.Lt)({...J,isInvalid:eZ,isClearable:ts,labelPlacement:e9,disableAnimation:Q}),[(0,g.t6)(J),eZ,e9,Q]);(0,U.H)({isDisabled:!eW.isOpen});let tc="function"==typeof G.errorMessage?G.errorMessage({isInvalid:eZ,validationErrors:eJ,validationDetails:eQ}):G.errorMessage||(null==eJ?void 0:eJ.join(" ")),th=!!ea||!!tc,tg=!!er;(0,d.useEffect)(()=>{if(eW.isOpen&&eL.current&&ej.current){let e=ej.current.getBoundingClientRect();eL.current.style.width=e.width+"px"}},[eW.isOpen]);let tp=(0,d.useCallback)((e={})=>({"data-slot":"base","data-filled":(0,g.sE)(tn),"data-has-value":(0,g.sE)(to),"data-has-label":(0,g.sE)(tr),"data-has-helper":(0,g.sE)(th),"data-has-end-content":(0,g.sE)(tg),"data-invalid":(0,g.sE)(eZ),"data-has-label-outside":(0,g.sE)(ta),className:td.base({class:(0,r.cn)(tu,e.className)}),...e}),[td,th,to,tr,ta,tn,tu]),tf=(0,d.useCallback)((t={})=>({ref:ej,"data-slot":"trigger","data-open":(0,g.sE)(eW.isOpen),"data-disabled":(0,g.sE)(null==e?void 0:e.isDisabled),"data-focus":(0,g.sE)(e1),"data-pressed":(0,g.sE)(e0),"data-focus-visible":(0,g.sE)(e5),"data-hover":(0,g.sE)(e7),className:td.trigger({class:null==eK?void 0:eK.trigger}),...(0,g.v6)(e4,e3,e8,(0,u.$)(eA,{enabled:eO}),(0,u.$)(t))}),[td,ej,eW.isOpen,null==eK?void 0:eK.trigger,null==e?void 0:e.isDisabled,e1,e0,e5,e7,e4,e3,e8,eA,eO]),tv=(0,d.useCallback)((t={})=>({state:eW,triggerRef:ej,selectRef:eT,selectionMode:em,label:null==e?void 0:e.label,name:null==e?void 0:e.name,isRequired:null==e?void 0:e.isRequired,autoComplete:null==e?void 0:e.autoComplete,isDisabled:null==e?void 0:e.isDisabled,form:null==e?void 0:e.form,onChange:ew,...t}),[eW,em,null==e?void 0:e.label,null==e?void 0:e.autoComplete,null==e?void 0:e.name,null==e?void 0:e.isDisabled,ej]),tm=(0,d.useCallback)((e={})=>({"data-slot":"label",className:td.label({class:(0,r.cn)(null==eK?void 0:eK.label,e.className)}),...e_,...e}),[td,null==eK?void 0:eK.label,e_]),ty=(0,d.useCallback)((e={})=>({"data-slot":"value",className:td.value({class:(0,r.cn)(null==eK?void 0:eK.value,e.className)}),...e$,...e}),[td,null==eK?void 0:eK.value,e$]),tb=(0,d.useCallback)((e={})=>({"data-slot":"listboxWrapper",className:td.listboxWrapper({class:(0,r.cn)(null==eK?void 0:eK.listboxWrapper,null==e?void 0:e.className)}),style:{maxHeight:null!=ep?ep:256,...e.style},...(0,g.v6)(eR.scrollShadowProps,e)}),[td.listboxWrapper,null==eK?void 0:eK.listboxWrapper,eR.scrollShadowProps,ep]),tx=(0,d.useCallback)((e={})=>{var t,l;let i=(0,g.v6)(eR.popoverProps,e);return{state:eW,triggerRef:ej,ref:eL,"data-slot":"popover",scrollRef:eF,triggerType:"listbox",classNames:{content:td.popoverContent({class:(0,r.cn)(null==eK?void 0:eK.popoverContent,e.className)})},...i,offset:eW.selectedItems&&eW.selectedItems.length>0?1e-8*eW.selectedItems.length+((null==(t=eR.popoverProps)?void 0:t.offset)||0):null==(l=eR.popoverProps)?void 0:l.offset}},[td,null==eK?void 0:eK.popoverContent,eR.popoverProps,ej,eW,eW.selectedItems]),tD=(0,d.useCallback)(()=>({"data-slot":"selectorIcon","aria-hidden":(0,g.sE)(!0),"data-open":(0,g.sE)(eW.isOpen),className:td.selectorIcon({class:null==eK?void 0:eK.selectorIcon})}),[td,null==eK?void 0:eK.selectorIcon,eW.isOpen]),tC=(0,d.useCallback)((e={})=>({...e,"data-slot":"innerWrapper",className:td.innerWrapper({class:(0,r.cn)(null==eK?void 0:eK.innerWrapper,null==e?void 0:e.className)})}),[td,null==eK?void 0:eK.innerWrapper]),tE=(0,d.useCallback)((e={})=>({...e,"data-slot":"helperWrapper",className:td.helperWrapper({class:(0,r.cn)(null==eK?void 0:eK.helperWrapper,null==e?void 0:e.className)})}),[td,null==eK?void 0:eK.helperWrapper]),tS=(0,d.useCallback)((e={})=>({...e,...eU,"data-slot":"description",className:td.description({class:(0,r.cn)(null==eK?void 0:eK.description,null==e?void 0:e.className)})}),[td,null==eK?void 0:eK.description]),tw=(0,d.useCallback)((e={})=>({...e,"data-slot":"mainWrapper",className:td.mainWrapper({class:(0,r.cn)(null==eK?void 0:eK.mainWrapper,null==e?void 0:e.className)})}),[td,null==eK?void 0:eK.mainWrapper]),tM=(0,d.useCallback)((e={})=>({...e,"data-slot":"end-wrapper",className:td.endWrapper({class:(0,r.cn)(null==eK?void 0:eK.endWrapper,null==e?void 0:e.className)})}),[td,null==eK?void 0:eK.endWrapper]),tP=(0,d.useCallback)((e={})=>({...e,"data-slot":"end-content",className:td.endContent({class:(0,r.cn)(null==eK?void 0:eK.endContent,null==e?void 0:e.className)})}),[td,null==eK?void 0:eK.endContent]),tK=(0,d.useCallback)((e={})=>({...e,...eq,"data-slot":"error-message",className:td.errorMessage({class:(0,r.cn)(null==eK?void 0:eK.errorMessage,null==e?void 0:e.className)})}),[td,eq,null==eK?void 0:eK.errorMessage]),tk=(0,d.useCallback)((e={})=>({"aria-hidden":(0,g.sE)(!0),"data-slot":"spinner",color:"current",size:"sm",...eE,...e,ref:ey,className:td.spinner({class:(0,r.cn)(null==eK?void 0:eK.spinner,null==e?void 0:e.className)})}),[td,ey,eE,null==eK?void 0:eK.spinner]),tB=(0,d.useCallback)((e={})=>({...e,type:"button",tabIndex:-1,"aria-label":"clear selection","data-slot":"clear-button","data-focus-visible":(0,g.sE)(e2),className:td.clearButton({class:(0,r.cn)(null==eK?void 0:eK.clearButton,null==e?void 0:e.className)}),...(0,g.v6)(eY,e6)}),[td,e2,eY,e6,null==eK?void 0:eK.clearButton]);return q.set(eW,{isDisabled:null==e?void 0:e.isDisabled,isRequired:null==e?void 0:e.isRequired,name:null==e?void 0:e.name,isInvalid:eZ,validationBehavior:ek}),{Component:ez,domRef:eT,state:eW,label:Z,name:ee,triggerRef:ej,isLoading:et,placeholder:ec,startContent:eo,endContent:er,description:ea,selectorIcon:el,hasHelper:th,labelPlacement:e9,hasPlaceholder:te,renderValue:eu,selectionMode:em,disableAnimation:Q,isOutsideLeft:ti,shouldLabelBeOutside:tt,shouldLabelBeInside:tl,isInvalid:eZ,errorMessage:tc,isClearable:ts,getClearButtonProps:tB,getBaseProps:tp,getTriggerProps:tf,getLabelProps:tm,getValueProps:ty,getListboxProps:(e={})=>{let t=null!=eh?eh:eW.collection.size>50;return{state:eW,ref:eF,isVirtualized:t,virtualization:t?{maxListboxHeight:ep,itemHeight:eg}:void 0,"data-slot":"listbox",className:td.listbox({class:(0,r.cn)(null==eK?void 0:eK.listbox,null==e?void 0:e.className)}),scrollShadowProps:eR.scrollShadowProps,...(0,g.v6)(eR.listboxProps,e,eH)}},getPopoverProps:tx,getSpinnerProps:tk,getMainWrapperProps:tw,getListboxWrapperProps:tb,getHiddenSelectProps:tv,getInnerWrapperProps:tC,getHelperWrapperProps:tE,getDescriptionProps:tS,getErrorMessageProps:tK,getSelectorIconProps:tD,getEndWrapperProps:tM,getEndContentProps:tP}}({...e,ref:t}),eM=y?(0,et.jsx)("label",{...ea(),children:y}):null,eP=(0,d.cloneElement)(G,eD()),eK=(0,d.useMemo)(()=>{var e;return eC&&(null==(e=m.selectedItems)?void 0:e.length)?(0,et.jsx)("span",{...eE(),children:(0,et.jsx)(e5.o,{})}):null},[eC,eE,null==(l=m.selectedItems)?void 0:l.length]),ek=(0,d.useMemo)(()=>eK?(0,et.jsxs)("div",{...eS(),children:[eK,ee&&(0,et.jsx)("span",{...ew(),children:ee})]}):ee&&(0,et.jsx)("span",{...ew(),children:ee}),[eK,ee,eS,ew]),eB=(0,d.useMemo)(()=>{let e=X&&Q,t=e||J;return b&&t?(0,et.jsx)("div",{...em(),children:e?(0,et.jsx)("div",{...ex(),children:Q}):(0,et.jsx)("div",{...eb(),children:J})}):null},[b,X,Q,J,em,ex,eb]),eN=(0,d.useMemo)(()=>{var e;return(null==(e=m.selectedItems)?void 0:e.length)?es&&"function"==typeof es?es([...m.selectedItems].map(e=>({key:e.key,data:e.value,type:e.type,props:e.props,textValue:e.textValue,rendered:e.rendered,"aria-label":e["aria-label"]}))):m.selectedItems.map(e=>e.textValue).join(", "):ei},[m.selectedItems,es,ei]),eA=(0,d.useMemo)(()=>O?(0,et.jsx)(e6.o,{...eg()}):eP,[O,eP,eg]),eI=(0,d.useMemo)(()=>m.isOpen?(0,et.jsx)(e3,{...eh(),children:(0,et.jsx)(e2.H,{...ey(),children:(0,et.jsx)(eL,{...ec()})})}):null,[m.isOpen,eh,m,T,ey,ec]);return(0,et.jsxs)("div",{...er(),children:[(0,et.jsx)(el,{...ev()}),en?eM:null,(0,et.jsxs)("div",{...ep(),children:[(0,et.jsxs)(v,{...eu(),children:[en?null:eM,(0,et.jsxs)("div",{...ef(),children:[Z,(0,et.jsx)("span",{...ed(),children:eN}),ee&&m.selectedItems&&(0,et.jsx)(Y,{elementType:"span",children:","}),ek]}),eA]}),eB]}),eo?eI:(0,et.jsx)(e7.N,{children:eI}
4)]})})},40533:(e,t,l)=>{l.d(t,{y:()=>i});var i=l(41791).q},49635:(e,t,l)=>{l.d(t,{H:()=>d});var i=l(9150),s=l(57816),n=l(11401),o=l(47870),r=l(81552),a=l(88828),u=(0,i.Rf)((e,t)=>{let{Component:l,children:u,getBaseProps:d}=function(e){var t;let[l,a]=(0,i.rE)(e,s.Q.variantKeys),{ref:u,as:d,children:c,className:h,style:g,size:p=40,offset:f=0,visibility:v="auto",isEnabled:m=!0,onVisibilityChange:y,...b}=l,x=(0,n.zD)(u);!function(e={}){let{domRef:t,isEnabled:l=!0,overflowCheck:i="vertical",visibility:s="auto",offset:n=0,onVisibilityChange:a,updateDeps:u=[]}=e,d=(0,r.useRef)(s);(0,r.useEffect)(()=>{let e=null==t?void 0:t.current;if(!e||!l)return;let r=(t,l,i,n,r)=>{if("auto"===s){let t=`${n}${(0,o.ZH)(r)}Scroll`;l&&i?(e.dataset[t]="true",e.removeAttribute(`data-${n}-scroll`),e.removeAttribute(`data-${r}-scroll`)):(e.dataset[`${n}Scroll`]=l.toString(),e.dataset[`${r}Scroll`]=i.toString(),e.removeAttribute(`data-${n}-${r}-scroll`))}else{let e=l&&i?"both":l?n:i?r:"none";e!==d.current&&(null==a||a(e),d.current=e)}},u=()=>{var t,l;let s=e.querySelector('ul[data-slot="list"]'),o=+(null!=(t=null==s?void 0:s.getAttribute("data-virtual-scroll-height"))?t:e.scrollHeight),a=+(null!=(l=null==s?void 0:s.getAttribute("data-virtual-scroll-top"))?l:e.scrollTop);for(let{type:t,prefix:l,suffix:s}of[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}])if(i===t||"both"===i){let i="vertical"===t?a>n:e.scrollLeft>n,u="vertical"===t?a+e.clientHeight+n<o:e.scrollLeft+e.clientWidth+n<e.scrollWidth;r(t,i,u,l,s)}},c=()=>{["top","bottom","top-bottom","left","right","left-right"].forEach(t=>{e.removeAttribute(`data-${t}-scroll`)})};return u(),e.addEventListener("scroll",u,!0),"auto"!==s&&(c(),"both"===s?(e.dataset.topBottomScroll=String("vertical"===i),e.dataset.leftRightScroll=String("horizontal"===i)):(e.dataset.topBottomScroll="false",e.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(t=>{e.dataset[`${t}Scroll`]=String(s===t)}))),()=>{e.removeEventListener("scroll",u,!0),c()}},[...u,l,s,i,a,t])}({domRef:x,offset:f,visibility:v,isEnabled:m,onVisibilityChange:y,updateDeps:[c],overflowCheck:null!=(t=e.orientation)?t:"vertical"});let D=(0,r.useMemo)(()=>(0,s.Q)({...a,className:h}),[(0,o.t6)(a),h]);return{Component:d||"div",styles:D,domRef:x,children:c,getBaseProps:(t={})=>{var l;return{ref:x,className:D,"data-orientation":null!=(l=e.orientation)?l:"vertical",style:{"--scroll-shadow-size":`${p}px`,...g,...t.style},...b,...t}}}}({...e,ref:t});return(0,a.jsx)(l,{...d(),children:u})});u.displayName="HeroUI.ScrollShadow";var d=u},57816:(e,t,l)=>{l.d(t,{Q:()=>i});var i=(0,l(68226).tv)({base:[],variants:{orientation:{vertical:["overflow-y-auto","data-[top-scroll=true]:[mask-image:linear-gradient(0deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[bottom-scroll=true]:[mask-image:linear-gradient(180deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[top-bottom-scroll=true]:[mask-image:linear-gradient(#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"],horizontal:["overflow-x-auto","data-[left-scroll=true]:[mask-image:linear-gradient(270deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[right-scroll=true]:[mask-image:linear-gradient(90deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[left-right-scroll=true]:[mask-image:linear-gradient(to_right,#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"]},hideScrollBar:{true:"scrollbar-hide",false:""}},defaultVariants:{orientation:"vertical",hideScrollBar:!1}})}}]);

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.