1import{j as Te}from"./jsx-runtime-u17CrQMm.js";import{Q as d,_ as Ce}from"./consent-BZ5cs6rW.js";import{r as h,R as Me}from"./index-DMDFfyop.js";function an(e){return Te.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[Te.jsx("path",{d:"M11.4832 6.09161C11.4832 3.11391 9.06928 0.699998 6.09157 0.699998C3.11386 0.699998 0.699951 3.11391 0.699951 6.09161C0.699951 9.06932 3.11386 11.4832 6.09157 11.4832C9.06927 11.4832 11.4832 9.06932 11.4832 6.09161Z",stroke:"currentColor",strokeWidth:"1.4",strokeMiterlimit:"10"}),Te.jsx("path",{d:"M9.75879 9.75883L14.7 14.7",stroke:"currentColor",strokeWidth:"1.4"})]})}function Ie(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},C.apply(null,arguments)}var Ve={exports:{}},v={};var Qe;function Ct(){if(Qe)return v;Qe=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),u=Symbol.for("react.context"),s=Symbol.for("react.server_context"),a=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),E;E=Symbol.for("react.module.reference");function I(l){if(typeof l=="object"&&l!==null){var $=l.$$typeof;switch($){case e:switch(l=l.type,l){case r:case n:case i:case y:case b:return l;default:switch(l=l&&l.$$typeof,l){case s:case u:case a:case x:case O:case o:return l;default:return $}}case t:return $}}}return v.ContextConsumer=u,v.ContextProvider=o,v.Element=e,v.ForwardRef=a,v.Fragment=r,v.Lazy=x,v.Memo=O,v.Portal=t,v.Profiler=n,v.StrictMode=i,v.Suspense=y,v.SuspenseList=b,v.isAsyncMode=function(){return!1},v.isConcurrentMode=function(){return!1},v.isContextConsumer=function(l){return I(l)===u},v.isContextProvider=function(l){return I(l)===o},v.isElement=function(l){return typeof l=="object"&&l!==null&&l.$$typeof===e},v.isForwardRef=function(l){return I(l)===a},v.isFragment=function(l){return I(l)===r},v.isLazy=function(l){return I(l)===x},v.isMemo=function(l){return I(l)===O},v.isPortal=function(l){return I(l)===t},v.isProfiler=function(l){return I(l)===n},v.isStrictMode=function(l){return I(l)===i},v.isSuspense=function(l){return I(l)===y},v.isSuspenseList=function(l){return I(l)===b},v.isValidElementType=function(l){return typeof l=="string"||typeof l=="function"||l===r||l===n||l===i||l===y||l===b||l===M||typeof l=="object"&&l!==null&&(l.$$typeof===x||l.$$typeof===O||l.$$typeof===o||l.$$typeof===u||l.$$typeof===a||l.$$typeof===E||l.getModuleId!==void 0)},v.typeOf=I,v}var Ze;function Mt(){return Ze||(Ze=1,Ve.exports=Ct()),Ve.exports}Mt();const Je=e=>typeof e=="object"&&e!=null&&e.nodeType===1,_e=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",pe=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return _e(r.overflowY,t)||_e(r.overflowX,t)||(i=>{const n=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(i);return!!n&&(n.clientHeight<i.scrollHeight||n.clientWidth<i.scrollWidth)})(e)}return!1},ye=(e,t,r,i,n,o,u,s)=>o<e&&u>t||o>e&&u<t?0:o<=e&&s<=r||u>=t&&s>=r?o-e-i:u>t&&s<r||o<e&&s>r?u-t+n:0,Et=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Rt=(e,t)=>{var r,i,n,o;if(typeof document>"u")return[];const{inline:u,boundary:s,skipOverflowHiddenElements:a}=t,y=typeof s=="function"?s:P=>P!==s;if(!Je(e))throw new TypeError("Invalid target");const b=document.scrollingElement||document.documentElement,O=[];let x=e;for(;Je(x)&&y(x);){if(x=Et(x),x===b){O.push(x);break}x!=null&&x===document.body&&pe(x)&&!pe(document.documentElement)||x!=null&&pe(x,a)&&O.push(x)}
1const M=(i=(r=window.visualViewport)==null?void 0:r.width)!=null?i:innerWidth,E=(o=(n=window.visualViewport)==null?void 0:n.height)!=null?o:innerHeight,{scrollX:I,scrollY:l}=window,{height:$,width:w,top:te,right:R,bottom:de,left:N}=e.getBoundingClientRect(),{top:De,right:ce,left:z}=(P=>{const p=window.getComputedStyle(P);return{top:parseFloat(p.scrollMarginTop)||0,right:parseFloat(p.scrollMarginRight)||0,bottom:parseFloat(p.scrollMarginBottom)||0,left:parseFloat(p.scrollMarginLeft)||0}})(e);let F=te-De,D=u==="center"?N+w/2-z+ce:u==="end"?R+ce:N-z;const ne=[];for(let P=0;P<O.length;P++){const p=O[P],{height:re,width:Y,top:fe,right:ie,bottom:he,left:Q}=p.getBoundingClientRect();if(te>=0&&N>=0&&de<=E&&R<=M&&(p===b&&!pe(p)||te>=fe&&de<=he&&N>=Q&&R<=ie))return ne;const Z=getComputedStyle(p),J=parseInt(Z.borderLeftWidth,10),ue=parseInt(Z.borderTopWidth,10),g=parseInt(Z.borderRightWidth,10),f=parseInt(Z.borderBottomWidth,10);let c=0,m=0;const S="offsetWidth"in p?p.offsetWidth-p.clientWidth-J-g:0,K="offsetHeight"in p?p.offsetHeight-p.clientHeight-ue-f:0,k="offsetWidth"in p?p.offsetWidth===0?0:Y/p.offsetWidth:0,T="offsetHeight"in p?p.offsetHeight===0?0:re/p.offsetHeight:0;if(b===p)c=ye(l,l+E,E,ue,f,l+F,l+F+$,$),m=u==="start"?D:u==="center"?D-M/2:u==="end"?D-M:ye(I,I+M,M,J,g,I+D,I+D+w,w),c=Math.max(0,c+l),m=Math.max(0,m+I);else{c=ye(fe,he,re,ue,f+K,F,F+$,$),m=u==="start"?D-Q-J:u==="center"?D-(Q+Y/2)+S/2:u==="end"?D-ie+g+S:ye(Q,ie,Y,J,g+S,D,D+w,w);const{scrollLeft:V,scrollTop:H}=p;c=T===0?0:Math.max(0,Math.min(H+c/T,p.scrollHeight-re/T+K)),m=k===0?0:Math.max(0,Math.min(V+m/k,p.scrollWidth-Y/k+S)),F+=H-c,D+=V-m}ne.push({el:p,top:c,left:m})}return ne};var Dt=0;function it(){}function Ot(e,t){if(e){var r=Rt(e,{boundary:t});r.forEach(function(i){var n=i.el,o=i.top,u=i.left;n.scrollTop=o,n.scrollLeft=u})}}function et(e,t,r){var i=e===t||t instanceof r.Node&&e.contains&&e.contains(t);return i}function ut(e,t){var r;function i(){r&&clearTimeout(r)}function n(){for(var o=arguments.length,u=new Array(o),s=0;s<o;s++)u[s]=arguments[s];i(),r=setTimeout(function(){r=null,e.apply(void 0,u)},t)}return n.cancel=i,n}function A(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(i){for(var n=arguments.length,o=new Array(n>1?n-1:0),u=1;u<n;u++)o[u-1]=arguments[u];return t.some(function(s){return s&&s.apply(void 0,[i].concat(o)),i.preventDownshiftDefault||i.hasOwnProperty("nativeEvent")&&i.nativeEvent.preventDownshiftDefault})}}function be(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(i){t.forEach(function(n){typeof n=="function"?n(i):n&&(n.current=i)})}}function St(){return String(Dt++)}function Ke(e,t){return!e||!t?e:Object.keys(e).reduce(function(r,i){return r[i]=ot(t,i)?t[i]:e[i],r},{})}function ot(e,t){return e[t]!==void 0}function kt(e){var t=e.key,r=e.keyCode;return r>=37&&r<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function xe(e,t,r,i,n){var o=r.length;if(o===0)return-1;var u=o-1;(typeof e!="number"||e<0||e>u)&&(e=t>0?-1:u+1);var s=e+t;s<0?s=u:s>u&&(s=0);var a=Ee(s,t<0,r,i,n);return a===-1?e>=o?-1:e:a}function Ee(e,t,r,i,n){n===void 0&&(n=!1);var o=r.length;if(t){for(var u=e;u>=0;u--)if(!i(r[u],u))return u}else for(var s=e;s<o;s++)if(!i(r[s],s))return s;return n?Ee(t?o-1:0,t,r,i):-1}function tt(e,t,r,i){return i===void 0&&(i=!0),r&&t.some(function(n){return n&&(et(n,e,r)||i&&et(n,r.document.activeElement,r))})}var Tt=ut(function(e){lt(e).textContent=""},500);function lt(e){var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}function Vt(e,t){if(!(!e||!t)){var r=lt(t);r.textContent=e,Tt(t)}}function Kt(e){var t=e?.getElementById("a11y-status-message");t&&t.remove()}var at={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function Ht(e,t,r){var i=e.props,n=e.type,o={};Object.keys(t).forEach(function(u){$t(u,e,t,r),r[u]!==t[u]&&(o[u]=r[u])}),i.onStateChange&&Object.keys(o).length&&i.onStateChange(C({type:n},o))}
1function $t(e,t,r,i){var n=t.props,o=t.type,u="on"+$e(e)+"Change";n[u]&&i[e]!==void 0&&i[e]!==r[e]&&n[u](C({type:o},i))}function Pt(e,t){return t.changes}var nt=ut(function(e,t){Vt(e,t)},200),Lt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?h.useLayoutEffect:h.useEffect,Bt="useId"in Me?function(t){var r=t.id,i=t.labelId,n=t.menuId,o=t.getItemId,u=t.toggleButtonId,s=t.inputId,a="downshift-"+Me.useId();r||(r=a);var y=h.useMemo(function(){return{labelId:i||r+"-label",menuId:n||r+"-menu",getItemId:o||function(b){return r+"-item-"+b},toggleButtonId:u||r+"-toggle-button",inputId:s||r+"-input"}},[o,r,s,i,n,u]);return y}:function(t){var r=t.id,i=r===void 0?"downshift-"+St():r,n=t.labelId,o=t.menuId,u=t.getItemId,s=t.toggleButtonId,a=t.inputId,y=h.useMemo(function(){return{labelId:n||i+"-label",menuId:o||i+"-menu",getItemId:u||function(b){return i+"-item-"+b},toggleButtonId:s||i+"-toggle-button",inputId:a||i+"-input"}},[u,i,a,n,o,s]);return y};function At(e,t,r,i){var n,o;if(e===void 0){if(t===void 0)throw new Error(i);n=r[t],o=t}else o=t===void 0?r.indexOf(e):t,n=e;return[n,o]}function $e(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function st(e){var t=h.useRef(e);return t.current=e,t}function Ft(e,t,r,i){var n=h.useRef(),o=h.useRef(),u=h.useCallback(function(M,E){o.current=E,M=Ke(M,E.props);var I=e(M,E),l=E.props.stateReducer(M,C({},E,{changes:I}));return l},[e]),s=h.useReducer(u,t,r),a=s[0],y=s[1],b=st(t),O=h.useCallback(function(M){return y(C({props:b.current},M))},[b]),x=o.current;return h.useEffect(function(){var M=Ke(n.current,x?.props),E=x&&n.current&&!i(M,a);E&&Ht(x,M,a),n.current=a},[a,x,i]),[a,O]}var le={itemToString:function(t){return t?String(t):""},itemToKey:function(t){return t},stateReducer:Pt,scrollIntoView:Ot,environment:typeof window>"u"?void 0:window};function U(e,t,r){r===void 0&&(r=at);var i=e["default"+$e(t)];return i!==void 0?i:r[t]}function ae(e,t,r){r===void 0&&(r=at);var i=e[t];if(i!==void 0)return i;var n=e["initial"+$e(t)];return n!==void 0?n:U(e,t,r)}function Wt(e){var t=ae(e,"selectedItem"),r=ae(e,"isOpen"),i=Gt(e),n=ae(e,"inputValue");return{highlightedIndex:i<0&&t&&r?e.items.findIndex(function(o){return e.itemToKey(o)===e.itemToKey(t)}):i,isOpen:r,selectedItem:t,inputValue:n}}function se(e,t,r){var i=e.items,n=e.initialHighlightedIndex,o=e.defaultHighlightedIndex,u=e.isItemDisabled,s=e.itemToKey,a=t.selectedItem,y=t.highlightedIndex;return i.length===0?-1:n!==void 0&&y===n&&!u(i[n],n)?n:o!==void 0&&!u(i[o],o)?o:a?i.findIndex(function(b){return s(a)===s(b)}):r<0&&!u(i[i.length-1],i.length-1)?i.length-1:r>0&&!u(i[0],0)?0:-1}function jt(e,t,r){var i=h.useRef({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1}),n=h.useCallback(function(){return r.map(function(o){return o.current})},[r]);return h.useEffect(function(){if(!e)return it;function o(){i.current.isTouchEnd=!1,i.current.isMouseDown=!0}function u(b){i.current.isMouseDown=!1,tt(b.target,n(),e)||t()}function s(){i.current.isTouchEnd=!1,i.current.isTouchMove=!1}function a(){i.current.isTouchMove=!0}function y(b){i.current.isTouchEnd=!0,!i.current.isTouchMove&&!tt(b.target,n(),e,!1)&&t()}return e.addEventListener("mousedown",o),e.addEventListener("mouseup",u),e.addEventListener("touchstart",s),e.addEventListener("touchmove",a),e.addEventListener("touchend",y),function(){e.removeEventListener("mousedown",o),e.removeEventListener("mouseup",u),e.removeEventListener("touchstart",s),e.removeEventListener("touchmove",a),e.removeEventListener("touchend",y)}},[e,n,t]),i.current}var qt=function(){return it};
1function Ut(e,t,r,i){i===void 0&&(i={});var n=i.document,o=Pe();h.useEffect(function(){if(!(!e||o||!n)){var u=e(t);nt(u,n)}},r),h.useEffect(function(){return function(){nt.cancel(),Kt(n)}},[n])}function Nt(e){var t=e.highlightedIndex,r=e.isOpen,i=e.itemRefs,n=e.getItemNodeFromIndex,o=e.menuElement,u=e.scrollIntoView,s=h.useRef(!0);return Lt(function(){t<0||!r||!Object.keys(i.current).length||(s.current===!1?s.current=!0:u(n(t),o))},[t]),s}function rt(e,t,r){var i;r===void 0&&(r=!0);var n=((i=e.items)==null?void 0:i.length)&&t>=0;return C({isOpen:!1,highlightedIndex:-1},n&&C({selectedItem:e.items[t],isOpen:U(e,"isOpen"),highlightedIndex:U(e,"highlightedIndex")},r&&{inputValue:e.itemToString(e.items[t])}))}function zt(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function Pe(){var e=Me.useRef(!0);return Me.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),e.current}function He(e){var t=U(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}function Gt(e){var t=ae(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}var we={environment:d.shape({addEventListener:d.func.isRequired,removeEventListener:d.func.isRequired,document:d.shape({createElement:d.func.isRequired,getElementById:d.func.isRequired,activeElement:d.any.isRequired,body:d.any.isRequired}).isRequired,Node:d.func.isRequired}),itemToString:d.func,itemToKey:d.func,stateReducer:d.func},dt=C({},we,{getA11yStatusMessage:d.func,highlightedIndex:d.number,defaultHighlightedIndex:d.number,initialHighlightedIndex:d.number,isOpen:d.bool,defaultIsOpen:d.bool,initialIsOpen:d.bool,selectedItem:d.any,initialSelectedItem:d.any,defaultSelectedItem:d.any,id:d.string,labelId:d.string,menuId:d.string,getItemId:d.func,toggleButtonId:d.string,onSelectedItemChange:d.func,onHighlightedIndexChange:d.func,onStateChange:d.func,onIsOpenChange:d.func,scrollIntoView:d.func});function Xt(e,t,r){var i=t.type,n=t.props,o;switch(i){case r.ItemMouseMove:o={highlightedIndex:t.disabled?-1:t.index};break;case r.MenuMouseLeave:o={highlightedIndex:-1};break;case r.ToggleButtonClick:case r.FunctionToggleMenu:o={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:se(n,e,0)};break;case r.FunctionOpenMenu:o={isOpen:!0,highlightedIndex:se(n,e,0)};break;case r.FunctionCloseMenu:o={isOpen:!1};break;case r.FunctionSetHighlightedIndex:o={highlightedIndex:n.isItemDisabled(n.items[t.highlightedIndex],t.highlightedIndex)?-1:t.highlightedIndex};break;case r.FunctionSetInputValue:o={inputValue:t.inputValue};break;case r.FunctionReset:o={highlightedIndex:He(n),isOpen:U(n,"isOpen"),selectedItem:U(n,"selectedItem"),inputValue:U(n,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return C({},e,o)}Ce(Ce({},dt),{items:d.array.isRequired,isItemDisabled:d.func});Ce(Ce({},le),{isItemDisabled:function(){return!1}});var Le=0,Be=1,Ae=2,Fe=3,We=4,je=5,qe=6,Ue=7,Ne=8,Re=9,ze=10,ct=11,ft=12,Ge=13,ht=14,gt=15,mt=16,vt=17,It=18,Xe=19,pt=20,yt=21,Ye=22,bt=Object.freeze({__proto__:null,ControlledPropUpdatedSelectedItem:Ye,FunctionCloseMenu:vt,FunctionOpenMenu:mt,FunctionReset:yt,FunctionSelectItem:Xe,FunctionSetHighlightedIndex:It,FunctionSetInputValue:pt,FunctionToggleMenu:gt,InputBlur:Re,InputChange:Ne,InputClick:ze,InputKeyDownArrowDown:Le,InputKeyDownArrowUp:Be,InputKeyDownEnd:We,InputKeyDownEnter:Ue,InputKeyDownEscape:Ae,InputKeyDownHome:Fe,InputKeyDownPageDown:qe,InputKeyDownPageUp:je,ItemClick:Ge,ItemMouseMove:ft,MenuMouseLeave:ct,ToggleButtonClick:ht});function Yt(e){var t=Wt(e),r=t.selectedItem,i=t.inputValue;return i===""&&r&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(i=e.itemToString(r)),C({},t,{inputValue:i})}C({},dt,{items:d.array.isRequired,isItemDisabled:d.func,inputValue:d.string,defaultInputValue:d.string,initialInputValue:d.string,inputId:d.string,onInputValueChange:d.func});
1function Qt(e,t,r,i){var n=h.useRef(),o=Ft(e,t,r,i),u=o[0],s=o[1],a=Pe();return h.useEffect(function(){if(ot(t,"selectedItem")){if(!a){var y=t.itemToKey(t.selectedItem)!==t.itemToKey(n.current);y&&s({type:Ye,inputValue:t.itemToString(t.selectedItem)})}n.current=u.selectedItem===n.current?t.selectedItem:u.selectedItem}},[u.selectedItem,t.selectedItem]),[Ke(u,t),s]}var Zt=C({},le,{isItemDisabled:function(){return!1}});function Jt(e,t){var r,i=t.type,n=t.props,o=t.altKey,u;switch(i){case Ge:u={isOpen:U(n,"isOpen"),highlightedIndex:He(n),selectedItem:n.items[t.index],inputValue:n.itemToString(n.items[t.index])};break;case Le:e.isOpen?u={highlightedIndex:xe(e.highlightedIndex,1,n.items,n.isItemDisabled,!0)}:u={highlightedIndex:o&&e.selectedItem==null?-1:se(n,e,1),isOpen:n.items.length>=0};break;case Be:e.isOpen?o?u=rt(n,e.highlightedIndex):u={highlightedIndex:xe(e.highlightedIndex,-1,n.items,n.isItemDisabled,!0)}:u={highlightedIndex:se(n,e,-1),isOpen:n.items.length>=0};break;case Ue:u=rt(n,e.highlightedIndex);break;case Ae:u=C({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case je:u={highlightedIndex:xe(e.highlightedIndex,-10,n.items,n.isItemDisabled,!0)};break;case qe:u={highlightedIndex:xe(e.highlightedIndex,10,n.items,n.isItemDisabled,!0)};break;case Fe:u={highlightedIndex:Ee(0,!1,n.items,n.isItemDisabled)};break;case We:u={highlightedIndex:Ee(n.items.length-1,!0,n.items,n.isItemDisabled)};break;case Re:u=C({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((r=n.items)==null?void 0:r.length)&&t.selectItem&&{selectedItem:n.items[e.highlightedIndex],inputValue:n.itemToString(n.items[e.highlightedIndex])});break;case Ne:u={isOpen:!0,highlightedIndex:He(n),inputValue:t.inputValue};break;case ze:u={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:se(n,e,0)};break;case Xe:u={selectedItem:t.selectedItem,inputValue:n.itemToString(t.selectedItem)};break;case Ye:u={inputValue:t.inputValue};break;default:return Xt(e,t,bt)}return C({},e,u)}var _t=["onMouseLeave","refKey","ref"],en=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],tn=["onClick","onPress","refKey","ref"],nn=["onKeyDown","onChange","onInput","onBlur","onChangeText","onClick","refKey","ref"];rn.stateChangeTypes=bt;function rn(e){e===void 0&&(e={});var t=C({},Zt,e),r=t.items,i=t.scrollIntoView,n=t.environment,o=t.getA11yStatusMessage,u=Qt(Jt,t,Yt,zt),s=u[0],a=u[1],y=s.isOpen,b=s.highlightedIndex,O=s.selectedItem,x=s.inputValue,M=h.useRef(null),E=h.useRef({}),I=h.useRef(null),l=h.useRef(null),$=Pe(),w=Bt(t),te=h.useRef(),R=st({state:s,props:t}),de=h.useCallback(function(g){return E.current[w.getItemId(g)]},[w]);Ut(o,s,[y,b,O,x],n);var N=Nt({menuElement:M.current,highlightedIndex:b,isOpen:y,itemRefs:E,scrollIntoView:i,getItemNodeFromIndex:de});h.useEffect(function(){var g=ae(t,"isOpen");g&&I.current&&I.current.focus()},[]),h.useEffect(function(){$||(te.current=r.length)});var De=h.useCallback(function(){R.current.state.isOpen&&a({type:Re})},[a,R]),ce=h.useMemo(function(){return[M,l,I]},[]),z=jt(n,De,ce),F=qt();h.useEffect(function(){y||(E.current={})},[y]),h.useEffect(function(){var g;!y||!(n!=null&&n.document)||!(I!=null&&(g=I.current)!=null&&g.focus)||n.document.activeElement!==I.current&&I.current.focus()},[y,n]);var D=h.useMemo(function(){return{ArrowDown:function(f){f.preventDefault(),a({type:Le,altKey:f.altKey})},ArrowUp:function(f){f.preventDefault(),a({type:Be,altKey:f.altKey})},Home:function(f){R.current.state.isOpen&&(f.preventDefault(),a({type:Fe}))},End:function(f){R.current.state.isOpen&&(f.preventDefault(),a({type:We}))},Escape:function(f){var c=R.current.state;(c.isOpen||c.inputValue||c.selectedItem||c.highlightedIndex>-1)&&(f.preventDefault(),a({type:Ae}))},Enter:function(f){var c=R.current.state;!c.isOpen||f.which===229||(f.preventDefault(),a({type:Ue}))},PageUp:function(f){R.current.state.isOpen&&(f.preventDefault(),a({type:je}))},PageDown:function(f){R.current.state.isOpen&&(f.preventDefault(),a({type:qe}))}}},[a,R]),ne=h.useCallback(function(g){return C({id:w.labelId,htmlFor:w.inputId},g)},[w]),P=h.useCallback(function(g,f){var c,m=g===void 0?{}:g,S=m.onMouseLeave,K=m.refKey,k=K===void 0?"ref":K,T=m.ref,V=Ie(m,_t),H=f===void 0?{}:f;return H.suppressRefError,C((c={},c[k]=be(T,function(W){M.current=W}),c.id=w.menuId,c.role="listbox",c["aria-labelledby"]=V&&V["aria-label"]?void 0:""+w.labelId,c.onMouseLeave=A(S,function(){a({type:ct})}),c),V)},[a,F,w]),p=h.useCallback(function(g){var f,c,m=g===void 0?{}:g,S=m.item,K=m.index,k=m.refKey,T=k===void 0?"ref":k,V=m.ref,H=m.onMouseMove,W=m.onMouseDown,Oe=m.onClick;m.onPress;var _=m.disabled,Se=Ie(m,en);_!==void 0&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');var L=R.current,ge=L.props,me=L.state,ve=At(S,K,ge.items,"Pass either item or index to getItemProps!"),ke=ve[0],B=ve[1],ee=ge.isItemDisabled(ke,B),j="onClick",G=Oe,q=function(){z.isTouchEnd||B===me.highlightedIndex||(N.current=!1,a({type:ft,index:B,disabled:ee}))},X=function(){a({type:Ge,index:B})},xt=function(wt){return wt.preventDefault()};return C((f={},f[T]=be(V,function(oe){oe&&(E.current[w.getItemId(B)]=oe)}),f["aria-disabled"]=ee,f["aria-selected"]=B===me.highlightedIndex,f.id=w.getItemId(B),f.role="option",f),!ee&&(c={},c[j]=A(G,X),c),{onMouseMove:A(H,q),onMouseDown:A(W,xt)},Se)},[a,w,R,z,N]),re=h.useCallback(function(g){var f,c=g===void 0?{}:g,m=c.onClick;c.onPress;var S=c.refKey,K=S===void 0?"ref":S,k=c.ref,T=Ie(c,tn),V=R.current.state,H=function(){a({type:ht})};return C((f={},f[K]=be(k,function(W){l.current=W}),f["aria-controls"]=w.menuId,f["aria-expanded"]=V.isOpen,f.id=w.toggleButtonId,f.tabIndex=-1,f),!T.disabled&&C({},{onClick:A(m,H)}),T)},[a,R,w]),Y=h.useCallback(function(g,f){var c,m=g===void 0?{}:g,S=m.onKeyDown,K=m.onChange,k=m.onInput,T=m.onBlur;m.onChangeText;var V=m.onClick,H=m.refKey,W=H===void 0?"ref":H,Oe=m.ref,_=Ie(m,nn),Se=f===void 0?{}:f;Se.suppressRefError;var L=R.current.state,ge=function(q){var X=kt(q);X&&D[X]&&D[X](q)},me=function(q){a({type:Ne,inputValue:q.target.value})},ve=function(q){if(n!=null&&n.document&&L.isOpen&&!z.isMouseDown){var X=q.relatedTarget===null&&n.document.activeElement!==n.document.body;a({type:Re,selectItem:!X})}},ke=function(){a({type:ze})},B="onChange",ee={};if(!_.disabled){var j;ee=(j={},j[B]=A(K,k,me),j.onKeyDown=A(S,ge),j.onBlur=A(T,ve),j.onClick=A(V,ke),j)}return C((c={},c[W]=be(Oe,function(G){I.current=G}),c["aria-activedescendant"]=L.isOpen&&L.highlightedIndex>-1?w.getItemId(L.highlightedIndex):"",c["aria-autocomplete"]="list",c["aria-controls"]=w.menuId,c["aria-expanded"]=L.isOpen,c["aria-labelledby"]=_&&_["aria-label"]?void 0:w.labelId,c.autoComplete="off",c.id=w.inputId,c.role="combobox",c.value=L.inputValue,c),ee,_)},[a,w,n,D,R,z,F]),fe=h.useCallback(function(){a({type:gt})},[a]),ie=h.useCallback(function(){a({type:vt})},[a]),he=h.useCallback(function(){a({type:mt})},[a]),Q=h.useCallback(function(g){a({type:It,highlightedIndex:g})}
1,[a]),Z=h.useCallback(function(g){a({type:Xe,selectedItem:g})},[a]),J=h.useCallback(function(g){a({type:pt,inputValue:g})},[a]),ue=h.useCallback(function(){a({type:yt})},[a]);return{getItemProps:p,getLabelProps:ne,getMenuProps:P,getInputProps:Y,getToggleButtonProps:re,toggleMenu:fe,openMenu:he,closeMenu:ie,setHighlightedIndex:Q,setInputValue:J,selectItem:Z,reset:ue,highlightedIndex:b,isOpen:y,selectedItem:O,inputValue:x}}we.stateReducer,we.itemToKey,we.environment,d.array,d.array,d.array,d.func,d.number,d.number,d.number,d.func,d.func,d.string,d.string;le.itemToKey,le.stateReducer,le.environment;export{an as S,rn as u};
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.