"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[7257],{37257:function(e,t,n){n.d(t,{ZP:function(){return eo}});var o=n(1413),r=n(70885),i=n(45987),a=n(67294),s=n.t(a,2),u=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"],l=n(87462);function c(e,t){for(var n=0;n0?E(Z,--R):0,L--,10===D&&(L=1,k--),D}function H(){return D=R2||B(D)>3?"":" "}function Y(e,t){for(;--t&&H()&&!(D<48||D>102||D>57&&D<65||D>70&&D<97););return _(e,U()+(t<6&&32==N()&&32==H()))}function G(e){for(;H();)switch(D){case e:return R;case 34:case 39:34!==e&&39!==e&&G(D);break;case 40:41===e&&G(e);break;case 92:H()}return R}function q(e,t){for(;H()&&e+D!==57&&(e+D!==84||47!==N()););return"/*"+_(t,R-1)+"*"+y(47===e?e:H())}function X(e){for(;!B(N());)H();return _(e,R)}var K="-ms-",J="-moz-",Q="-webkit-",ee="comm",te="rule",ne="decl",oe="@keyframes";function re(e,t){for(var n="",o=M(e),r=0;r6)switch(E(e,t+1)){case 109:if(45!==E(e,t+4))break;case 102:return C(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+J+(108==E(e,t+3)?"$3":"$2-$3"))+e;case 115:return~x(e,"stretch")?ae(C(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==E(e,t+1))break;case 6444:switch(E(e,V(e)-3-(~x(e,"!important")&&10))){case 107:return C(e,":",":"+Q)+e;case 101:return C(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Q+(45===E(e,14)?"inline-":"")+"box$3$1"+Q+"$2$3$1"+K+"$2box$3")+e}break;case 5936:switch(E(e,t+11)){case 114:return Q+e+K+C(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Q+e+K+C(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Q+e+K+C(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Q+e+K+e+e}return e}function se(e){return $(ue("",null,null,null,[""],e=z(e),0,[0],e))}function ue(e,t,n,o,r,i,a,s,u){for(var l=0,c=0,d=a,p=0,f=0,h=0,v=1,m=1,g=1,b=0,w="",O=r,E=i,I=o,M=w;m;)switch(h=b,b=H()){case 40:if(108!=h&&58==M.charCodeAt(d-1)){-1!=x(M+=C(j(b),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:M+=j(b);break;case 9:case 10:case 13:case 32:M+=W(h);break;case 92:M+=Y(U()-1,7);continue;case 47:switch(N()){case 42:case 47:S(ce(q(H(),U()),t,n),u);break;default:M+="/"}break;case 123*v:s[l++]=V(M)*g;case 125*v:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+c:f>0&&V(M)-d&&S(f>32?de(M+";",o,n,d-1):de(C(M," ","")+";",o,n,d-2),u);break;case 59:M+=";";default:if(S(I=le(M,t,n,l,c,r,s,w,O=[],E=[],d),i),123===b)if(0===c)ue(M,t,I,I,O,i,d,s,E);else switch(p){case 100:case 109:case 115:ue(e,I,I,o&&S(le(e,I,I,0,0,r,s,w,r,O=[],d),E),r,E,d,s,o?O:E);break;default:ue(M,I,I,I,[""],E,0,s,E)}}l=c=f=0,v=g=1,w=M="",d=a;break;case 58:d=1+V(M),f=h;default:if(v<1)if(123==b)--v;else if(125==b&&0==v++&&125==A())continue;switch(M+=y(b),b*v){case 38:g=c>0?1:(M+="\f",-1);break;case 44:s[l++]=(V(M)-1)*g,g=1;break;case 64:45===N()&&(M+=j(H())),p=N(),c=d=V(w=M+=X(U())),b++;break;case 45:45===h&&2==V(M)&&(v=0)}}return i}function le(e,t,n,o,r,i,a,s,u,l,c){for(var d=r-1,p=0===r?i:[""],f=M(p),h=0,v=0,m=0;h0?p[g]+" "+y:C(y,/&\f/g,p[g])))&&(u[m++]=w);return F(e,t,n,0===r?te:s,u,l,c)}function ce(e,t,n){return F(e,t,n,ee,y(D),I(e,2,-2),0)}function de(e,t,n,o){return F(e,t,n,ne,I(e,0,o),I(e,o+1,-1),o)}var pe=function(e,t,n){for(var o=0,r=0;o=r,r=N(),38===o&&12===r&&(t[n]=1),!B(r);)H();return _(e,R)},fe=new WeakMap,he=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||fe.get(n))&&!o){fe.set(e,!0);for(var r=[],i=function(e,t){return $(function(e,t){var n=-1,o=44;do{switch(B(o)){case 0:38===o&&12===N()&&(t[n]=1),e[n]+=pe(R-1,t,n);break;case 2:e[n]+=j(o);break;case 4:if(44===o){e[++n]=58===N()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=y(o)}}while(o=H());return e}(z(e),t))}(t,r),a=n.props,s=0,u=0;s-1&&!e.return)switch(e.type){case ne:e.return=ae(e.value,e.length);break;case oe:return re([T(e,{value:C(e.value,"@","@"+Q)})],o);case te:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return re([T(e,{props:[C(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return re([T(e,{props:[C(t,/:(plac\w+)/,":-webkit-input-$1")]}),T(e,{props:[C(t,/:(plac\w+)/,":-moz-$1")]}),T(e,{props:[C(t,/:(plac\w+)/,K+"input-$1")]})],o)}return""}))}}],ge=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,r,i=e.stylisPlugins||me,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},we=n(40351),Oe=n(67866),Ce=/[A-Z]|^ms/g,xe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ee=function(e){return 45===e.charCodeAt(1)},Ie=function(e){return null!=e&&"boolean"!=typeof e},Ve=(0,Oe.Z)((function(e){return Ee(e)?e:e.replace(Ce,"-$&").toLowerCase()})),Me=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(xe,(function(e,t,n){return ke={name:t,styles:n,next:ke},t}))}return 1===we.Z[e]||Ee(e)||"number"!=typeof t||0===t?t:t+"px"};function Se(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return ke={name:n.name,styles:n.styles,next:ke},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)ke={name:o.name,styles:o.styles,next:ke},o=o.next;return n.styles+";"}return function(e,t,n){var o="";if(Array.isArray(n))for(var r=0;re.brand+"/"+e.version)).join(" "),qe):navigator.userAgent}())}["top","right","bottom","left"].reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]),Math.min,Math.max;const tt=Math.round;function nt(e){return Ke(e)?e:e.contextElement}const ot={x:1,y:1};function rt(e){const t=nt(e);if(!Xe(t))return ot;const n=t.getBoundingClientRect(),{width:o,height:r,fallback:i}=function(e){const t=We(e);let n=parseFloat(t.width),o=parseFloat(t.height);const r=Xe(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,s=tt(n)!==i||tt(o)!==a;return s&&(n=i,o=a),{width:n,height:o,fallback:s}}(t);let a=(i?tt(n.width):n.width)/o,s=(i?tt(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}function it(e,t,n,o){var r,i;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),s=nt(e);let u=ot;t&&(o?Ke(o)&&(u=rt(o)):u=rt(e));const l=s?je(s):window,c=et()&&n;let d=(a.left+(c&&(null==(r=l.visualViewport)?void 0:r.offsetLeft)||0))/u.x,p=(a.top+(c&&(null==(i=l.visualViewport)?void 0:i.offsetTop)||0))/u.y,f=a.width/u.x,h=a.height/u.y;if(s){const e=je(s),t=o&&Ke(o)?je(o):o;let n=e.frameElement;for(;n&&o&&t!==e;){const e=rt(n),t=n.getBoundingClientRect(),o=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(o.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(o.paddingTop))*e.y,d*=e.x,p*=e.y,f*=e.x,h*=e.y,d+=t.x,p+=t.y,n=je(n).frameElement}}return v={width:f,height:h,x:d,y:p},{...v,top:v.y,left:v.x,right:v.x+v.width,bottom:v.y+v.height};var v}function at(e){if("html"===Ge(e))return e;const t=e.assignedSlot||e.parentNode||Je(e)&&e.host||function(e){return((Ye(e)?e.ownerDocument:e.document)||window.document).documentElement}(e);return Je(t)?t.host:t}function st(e){const t=at(e);return function(e){return["html","body","#document"].includes(Ge(e))}(t)?t.ownerDocument.body:Xe(t)&&Qe(t)?t:st(t)}function ut(e,t){var n;void 0===t&&(t=[]);const o=st(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=je(o);return r?t.concat(i,i.visualViewport||[],Qe(o)?o:[]):t.concat(o,ut(o))}var lt=a.useLayoutEffect,ct=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],dt=function(){};function pt(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function ft(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r-1}function bt(e){return gt(e)?window.pageYOffset:e.scrollTop}function yt(e,t){gt(e)?window.scrollTo(0,t):e.scrollTop=t}function wt(e,t,n,o){return n*((e=e/o-1)*e*e+1)+t}function Ot(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:dt,r=bt(e),i=t-r,a=10,s=0;function u(){var t=wt(s+=a,r,i,n);yt(e,t),sn.bottom?yt(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):o.top-r=h)return{placement:"bottom",maxHeight:t};if(E>=h&&!a)return i&&Ot(u,I,M),{placement:"bottom",maxHeight:t};if(!a&&E>=o||a&&C>=o)return i&&Ot(u,I,M),{placement:"bottom",maxHeight:a?C-y:E-y};if("auto"===r||a){var S=t,k=a?O:x;return k>=o&&(S=Math.min(k-y-s,t)),{placement:"top",maxHeight:S}}if("bottom"===r)return i&&yt(u,I),{placement:"bottom",maxHeight:t};break;case"top":if(O>=h)return{placement:"top",maxHeight:t};if(x>=h&&!a)return i&&Ot(u,V,M),{placement:"top",maxHeight:t};if(!a&&x>=o||a&&O>=o){var L=t;return(!a&&x>=o||a&&O>=o)&&(L=a?O-w:x-w),i&&Ot(u,V,M),{placement:"top",maxHeight:L}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return l}({maxHeight:i,menuEl:e,minHeight:n,placement:s,shouldScroll:l&&!t,isFixedPosition:t,controlHeight:O});m(o.maxHeight),w(o.placement),null==d||d(o.placement)}}),[i,s,u,l,n,d,O]),t({ref:p,placerProps:(0,o.Z)((0,o.Z)({},e),{},{placement:y||Lt(s),maxHeight:v})})},Dt=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return(0,o.Z)({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Zt=Dt,Ft=Dt,Tt=function(e){var t=e.children,n=e.innerProps;return _e("div",(0,l.Z)({},mt(e,"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),t)};Tt.defaultProps={children:"No options"};var At=function(e){var t=e.children,n=e.innerProps;return _e("div",(0,l.Z)({},mt(e,"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),t)};At.defaultProps={children:"Loading..."};var Ht,Nt,Ut,_t=["size"],Bt={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},zt=function(e){var t=e.size,n=(0,i.Z)(e,_t);return _e("svg",(0,l.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Bt},n))},$t=function(e){return _e(zt,(0,l.Z)({size:20},e),_e("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},jt=function(e){return _e(zt,(0,l.Z)({size:20},e),_e("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Wt=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,a=r.colors;return(0,o.Z)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*i,":hover":{color:n?a.neutral80:a.neutral40}})},Yt=Wt,Gt=Wt,qt=function(){var e=Be.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Ht||(Nt=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Ut||(Ut=Nt.slice(0)),Ht=Object.freeze(Object.defineProperties(Nt,{raw:{value:Object.freeze(Ut)}})))),Xt=function(e){var t=e.delay,n=e.offset;return _e("span",{css:Be({animation:"".concat(qt," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Kt=function(e){var t=e.innerProps,n=e.isRtl;return _e("div",(0,l.Z)({},mt(e,"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),_e(Xt,{delay:0,offset:n}),_e(Xt,{delay:160,offset:!0}),_e(Xt,{delay:320,offset:!n}))};Kt.defaultProps={size:4};var Jt=["data"],Qt=["innerRef","isDisabled","isHidden","inputClassName"],en={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},tn={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,o.Z)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},en)},nn=function(e){return(0,o.Z)({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},en)},on=function(e){var t=e.children,n=e.innerProps;return _e("div",n,t)},rn={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return _e("div",(0,l.Z)({},mt(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||_e($t,null))},Control:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return _e("div",(0,l.Z)({ref:r},mt(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":a}),i),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return _e("div",(0,l.Z)({},mt(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||_e(jt,null))},DownChevron:jt,CrossIcon:$t,Group:function(e){var t=e.children,n=e.cx,o=e.getStyles,r=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,u=e.label,c=e.theme,d=e.selectProps;return _e("div",(0,l.Z)({},mt(e,"group",{group:!0}),s),_e(i,(0,l.Z)({},a,{selectProps:d,theme:c,getStyles:o,getClassNames:r,cx:n}),u),_e("div",null,t))},GroupHeading:function(e){var t=vt(e);t.data;var n=(0,i.Z)(t,Jt);return _e("div",(0,l.Z)({},mt(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return _e("div",(0,l.Z)({},mt(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return _e("span",(0,l.Z)({},t,mt(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,o=vt(e),r=o.innerRef,a=o.isDisabled,s=o.isHidden,u=o.inputClassName,c=(0,i.Z)(o,Qt);return _e("div",(0,l.Z)({},mt(e,"input",{"input-container":!0}),{"data-value":n||""}),_e("input",(0,l.Z)({className:t({input:!0},u),ref:r,style:nn(s),disabled:a},c)))},LoadingIndicator:Kt,Menu:function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return _e("div",(0,l.Z)({},mt(e,"menu",{menu:!0}),{ref:n},o),t)},MenuList:function(e){var t=e.children,n=e.innerProps,o=e.innerRef,r=e.isMulti;return _e("div",(0,l.Z)({},mt(e,"menuList",{"menu-list":!0,"menu-list--is-multi":r}),{ref:o},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,i=e.controlElement,s=e.innerProps,u=e.menuPlacement,c=e.menuPosition,d=(0,a.useRef)(null),p=(0,a.useRef)(null),f=(0,a.useState)(Lt(u)),h=(0,r.Z)(f,2),v=h[0],m=h[1],g=(0,a.useMemo)((function(){return{setPortalPlacement:m}}),[]),b=(0,a.useState)(null),y=(0,r.Z)(b,2),w=y[0],O=y[1],C=(0,a.useCallback)((function(){if(i){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),t="fixed"===c?0:window.pageYOffset,n=e[v]+t;n===(null==w?void 0:w.offset)&&e.left===(null==w?void 0:w.rect.left)&&e.width===(null==w?void 0:w.rect.width)||O({offset:n,rect:e})}}),[i,c,v,null==w?void 0:w.offset,null==w?void 0:w.rect.left,null==w?void 0:w.rect.width]);lt((function(){C()}),[C]);var x=(0,a.useCallback)((function(){"function"==typeof p.current&&(p.current(),p.current=null),i&&d.current&&(p.current=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=o,u=r&&!s,l=u||i?[...Ke(e)?ut(e):e.contextElement?ut(e.contextElement):[],...ut(t)]:[];l.forEach((e=>{u&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let c,d=null;a&&(d=new ResizeObserver((()=>{n()})),Ke(e)&&!s&&d.observe(e),Ke(e)||!e.contextElement||s||d.observe(e.contextElement),d.observe(t));let p=s?it(e):null;return s&&function t(){const o=it(e);!p||o.x===p.x&&o.y===p.y&&o.width===p.width&&o.height===p.height||n(),p=o,c=requestAnimationFrame(t)}(),n(),()=>{var e;l.forEach((e=>{u&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(c)}}(i,d.current,C,{elementResize:"ResizeObserver"in window}))}),[i,C]);lt((function(){x()}),[x]);var E=(0,a.useCallback)((function(e){d.current=e,x()}),[x]);if(!t&&"fixed"!==c||!w)return null;var I=_e("div",(0,l.Z)({ref:E},mt((0,o.Z)((0,o.Z)({},e),{},{offset:w.offset,position:c,rect:w.rect}),"menuPortal",{"menu-portal":!0}),s),n);return _e(Pt.Provider,{value:g},t?(0,$e.createPortal)(I,t):I)},LoadingMessage:At,NoOptionsMessage:Tt,MultiValue:function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,a=e.isDisabled,s=e.removeProps,u=e.selectProps,l=n.Container,c=n.Label,d=n.Remove;return _e(l,{data:r,innerProps:(0,o.Z)((0,o.Z)({},mt(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:u},_e(c,{data:r,innerProps:(0,o.Z)({},mt(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},t),_e(d,{data:r,innerProps:(0,o.Z)((0,o.Z)({},mt(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},s),selectProps:u}))},MultiValueContainer:on,MultiValueLabel:on,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return _e("div",(0,l.Z)({role:"button"},n),t||_e($t,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.innerRef,a=e.innerProps;return _e("div",(0,l.Z)({},mt(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":r}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return _e("div",(0,l.Z)({},mt(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,r=e.isRtl;return _e("div",(0,l.Z)({},mt(e,"container",{"--is-disabled":o,"--is-rtl":r}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return _e("div",(0,l.Z)({},mt(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,o=e.isMulti,r=e.hasValue;return _e("div",(0,l.Z)({},mt(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":r}),n),t)}},an=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function sn(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return"option ".concat(o,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,o=e.options,r=e.label,i=void 0===r?"":r,a=e.selectValue,s=e.isDisabled,u=e.isSelected,l=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(l(a,n),".");if("menu"===t){var c=s?" disabled":"",d="".concat(u?"selected":"focused").concat(c);return"option ".concat(i," ").concat(d,", ").concat(l(o,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},dn=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,s=e.isFocused,u=e.selectValue,l=e.selectProps,c=e.id,d=l.ariaLiveMessages,p=l.getOptionLabel,f=l.inputValue,h=l.isMulti,v=l.isOptionDisabled,m=l.isSearchable,g=l.menuIsOpen,b=l.options,y=l.screenReaderStatus,w=l.tabSelectsValue,O=l["aria-label"],C=l["aria-live"],x=(0,a.useMemo)((function(){return(0,o.Z)((0,o.Z)({},cn),d||{})}),[d]),E=(0,a.useMemo)((function(){var e,n="";if(t&&x.onChange){var r=t.option,i=t.options,a=t.removedValue,s=t.removedValues,l=t.value,c=a||r||(e=l,Array.isArray(e)?null:e),d=c?p(c):"",f=i||s||void 0,h=f?f.map(p):[],m=(0,o.Z)({isDisabled:c&&v(c,u),label:d,labels:h},t);n=x.onChange(m)}return n}),[t,x,v,u,p]),I=(0,a.useMemo)((function(){var e="",t=n||r,o=!!(n&&u&&u.includes(n));if(t&&x.onFocus){var a={focused:t,label:p(t),isDisabled:v(t,u),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:u};e=x.onFocus(a)}return e}),[n,r,p,v,x,i,u]),V=(0,a.useMemo)((function(){var e="";if(g&&b.length&&x.onFilter){var t=y({count:i.length});e=x.onFilter({inputValue:f,resultsMessage:t})}return e}),[i,f,g,x,b,y]),M=(0,a.useMemo)((function(){var e="";if(x.guidance){var t=r?"value":g?"menu":"input";e=x.guidance({"aria-label":O,context:t,isDisabled:n&&v(n,u),isMulti:h,isSearchable:m,tabSelectsValue:w})}return e}),[O,n,r,h,v,m,g,x,u,w]),S="".concat(I," ").concat(V," ").concat(M),k=_e(a.Fragment,null,_e("span",{id:"aria-selection"},E),_e("span",{id:"aria-context"},S)),L="initial-input-focus"===(null==t?void 0:t.action);return _e(a.Fragment,null,_e(ln,{id:c},L&&k),_e(ln,{"aria-live":C,"aria-atomic":"false","aria-relevant":"additions text"},s&&!L&&k))},pn=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],fn=new RegExp("["+pn.map((function(e){return e.letters})).join("")+"]","g"),hn={},vn=0;vn1?t-1:0),o=1;o0,v=d-p-l,m=!1;v>t&&s.current&&(o&&o(e),s.current=!1),h&&u.current&&(i&&i(e),u.current=!1),h&&t>v?(n&&!s.current&&n(e),f.scrollTop=d,m=!0,s.current=!0):!h&&-t>l&&(r&&!u.current&&r(e),f.scrollTop=0,m=!0,u.current=!0),m&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[n,o,r,i]),p=(0,a.useCallback)((function(e){d(e,e.deltaY)}),[d]),f=(0,a.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),h=(0,a.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;d(e,t)}),[d]),v=(0,a.useCallback)((function(e){if(e){var t=!!Mt&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",h,t)}}),[h,f,p]),m=(0,a.useCallback)((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",h,!1))}),[h,f,p]);return(0,a.useEffect)((function(){if(t){var e=c.current;return v(e),function(){m(e)}}}),[t,v,m]),function(e){c.current=e}}({isEnabled:void 0===o||o,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,o=void 0===n||n,r=(0,a.useRef)({}),i=(0,a.useRef)(null),s=(0,a.useCallback)((function(e){if(Ln){var t=document.body,n=t&&t.style;if(o&&En.forEach((function(e){var t=n&&n[e];r.current[e]=t})),o&&Pn<1){var i=parseInt(r.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(In).forEach((function(e){var t=In[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&kn()&&(t.addEventListener("touchmove",Vn,Rn),e&&(e.addEventListener("touchstart",Sn,Rn),e.addEventListener("touchmove",Mn,Rn))),Pn+=1}}),[o]),u=(0,a.useCallback)((function(e){if(Ln){var t=document.body,n=t&&t.style;Pn=Math.max(Pn-1,0),o&&Pn<1&&En.forEach((function(e){var t=r.current[e];n&&(n[e]=t)})),t&&kn()&&(t.removeEventListener("touchmove",Vn,Rn),e&&(e.removeEventListener("touchstart",Sn,Rn),e.removeEventListener("touchmove",Mn,Rn)))}}),[o]);return(0,a.useEffect)((function(){if(t){var e=i.current;return s(e),function(){u(e)}}}),[t,s,u]),function(e){i.current=e}}({isEnabled:n});return _e(a.Fragment,null,n&&_e("div",{onClick:Dn,css:Zn}),t((function(e){r(e),i(e)})))}var Tn={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},An=function(e){var t=e.name,n=e.onFocus;return _e("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Tn,value:"",onChange:function(){}})},Hn={clearIndicator:Gt,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.theme,a=i.colors,s=i.borderRadius,u=i.spacing;return(0,o.Z)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:u.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},dropdownIndicator:Yt,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,i=n.spacing;return(0,o.Z)({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing.baseUnit,a=r.colors;return(0,o.Z)({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,a=i.spacing,s=i.colors;return(0,o.Z)((0,o.Z)({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},tn),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,i=e.theme,a=i.colors,s=i.spacing.baseUnit;return(0,o.Z)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*s})},loadingMessage:Ft,menu:function(e,t){var n,r=e.placement,i=e.theme,a=i.borderRadius,s=i.spacing,u=i.colors;return(0,o.Z)((n={label:"menu"},(0,ze.Z)(n,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),(0,ze.Z)(n,"position","absolute"),(0,ze.Z)(n,"width","100%"),(0,ze.Z)(n,"zIndex",1),n),t?{}:{backgroundColor:u.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return(0,o.Z)({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,o=e.position;return{left:t.left,position:o,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,a=n.colors;return(0,o.Z)({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,a=e.cropWithEllipsis;return(0,o.Z)({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,a=n.colors,s=e.isFocused;return(0,o.Z)({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},noOptionsMessage:Zt,option:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,a=e.theme,s=a.spacing,u=a.colors;return(0,o.Z)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?u.primary:r?u.primary25:"transparent",color:n?u.neutral20:i?u.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?u.primary:u.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return(0,o.Z)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,a=r.colors;return(0,o.Z)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,a=e.selectProps.controlShouldRenderValue;return(0,o.Z)({alignItems:"center",display:r&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Nn={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Un={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:xt(),captureMenuScroll:!xt(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,o.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:On,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,i=n.ignoreAccents,a=n.stringify,s=n.trim,u=n.matchFrom,l=s?wn(t):t,c=s?wn(a(e)):a(e);return r&&(l=l.toLowerCase(),c=c.toLowerCase()),i&&(l=yn(l),c=bn(c)),"start"===u?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function _n(e,t,n,o){return{type:"option",data:t,isDisabled:Yn(e,t,n),isSelected:Gn(e,t,n),label:jn(e,t),value:Wn(e,t),index:o}}function Bn(e,t){return e.options.map((function(n,o){if("options"in n){var r=n.options.map((function(n,o){return _n(e,n,t,o)})).filter((function(t){return $n(e,t)}));return r.length>0?{type:"group",data:n,options:r,index:o}:void 0}var i=_n(e,n,t,o);return $n(e,i)?i:void 0})).filter(St)}function zn(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,(0,m.Z)(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function $n(e,t){var n=e.inputValue,o=void 0===n?"":n,r=t.data,i=t.isSelected,a=t.label,s=t.value;return(!Xn(e)||!i)&&qn(e,{label:a,value:s,data:r},o)}var jn=function(e,t){return e.getOptionLabel(t)},Wn=function(e,t){return e.getOptionValue(t)};function Yn(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Gn(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=Wn(e,t);return n.some((function(t){return Wn(e,t)===o}))}function qn(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Xn=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Kn=1,Jn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,d.Z)(e,t)}(f,e);var t,n,r,i,s,u=(i=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(i);if(s){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return v(this,e)});function f(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=u.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var o=t.props,r=o.onChange,i=o.name;n.name=i,t.ariaOnChange(e,n),r(e,n)},t.setValue=function(e,n,o){var r=t.props,i=r.closeMenuOnSelect,a=r.isMulti,s=r.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:o})},t.selectOption=function(e){var n=t.props,o=n.blurInputOnSelect,r=n.isMulti,i=n.name,a=t.state.selectValue,s=r&&t.isOptionSelected(e,a),u=t.isOptionDisabled(e,a);if(s){var l=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==l})),"deselect-option",e)}else{if(u)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});r?t.setValue([].concat((0,m.Z)(a),[e]),"select-option",e):t.setValue(e,"select-option")}o&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,o=t.state.selectValue,r=t.getOptionValue(e),i=o.filter((function(e){return t.getOptionValue(e)!==r})),a=kt(n,i,i[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(kt(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,o=n[n.length-1],r=n.slice(0,n.length-1),i=kt(e,r,r[0]||null);t.onChange(i,{action:"pop-value",removedValue:o})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),o=0;o5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,o=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(o,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return Xn(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,o=n.isMulti,r=n.backspaceRemovesValue,i=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,u=n.isDisabled,l=n.menuIsOpen,c=n.onKeyDown,d=n.tabSelectsValue,p=n.openMenuOnFocus,f=t.state,h=f.focusedOption,v=f.focusedValue,m=f.selectValue;if(!(u||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!o||a)return;t.focusValue("previous");break;case"ArrowRight":if(!o||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(v)t.removeValue(v);else{if(!r)return;o?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!l||!d||!h||p&&t.isOptionSelected(h,m))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(l){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":l?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&i&&t.clearValue();break;case" ":if(a)return;if(!l){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":l?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":l?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!l)return;t.focusOption("pageup");break;case"PageDown":if(!l)return;t.focusOption("pagedown");break;case"Home":if(!l)return;t.focusOption("first");break;case"End":if(!l)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++Kn),t.state.selectValue=ht(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.buildFocusableOptions(),r=n.indexOf(t.state.selectValue[0]);t.state.focusedOption=n[r]}return t}return t=f,n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Ct(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,o=t.menuIsOpen,r=this.state.isFocused;(r&&!n&&e.isDisabled||r&&o&&!e.menuIsOpen)&&this.focusInput(),r&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):r||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Ct(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,o=n.selectValue,r=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(o[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(r&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var r=n.indexOf(o);o||(r=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===r?0:-1===r?i:r-1;break;case"next":r>-1&&r0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var r=0,i=o.indexOf(n);n||(i=-1),"up"===e?r=i>0?i-1:o.length-1:"down"===e?r=(i+1)%o.length:"pageup"===e?(r=i-t)<0&&(r=0):"pagedown"===e?(r=i+t)>o.length-1&&(r=o.length-1):"last"===e&&(r=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[r],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Nn):(0,o.Z)((0,o.Z)({},Nn),this.props.theme):Nn}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getClassNames,r=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,u=s.isMulti,l=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:r,hasValue:this.hasValue(),isMulti:u,isRtl:l,options:c,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Yn(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Gn(this.props,e,t)}},{key:"filterOption",value:function(e,t){return qn(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:o})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,s=e.tabIndex,u=e.form,c=e.menuIsOpen,d=e.required,p=this.getComponents().Input,f=this.state,h=f.inputIsHidden,v=f.ariaSelection,m=this.commonProps,g=r||this.getElementId("input"),b=(0,o.Z)((0,o.Z)((0,o.Z)({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox"},c&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==v?void 0:v.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?a.createElement(p,(0,l.Z)({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:t,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:u,type:"text",value:i},b)):a.createElement(xn,(0,l.Z)({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:dt,onFocus:this.onInputFocus,disabled:t,tabIndex:s,inputMode:"none",form:u,value:""},b))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,r=t.MultiValueLabel,i=t.MultiValueRemove,s=t.SingleValue,u=t.Placeholder,c=this.commonProps,d=this.props,p=d.controlShouldRenderValue,f=d.isDisabled,h=d.isMulti,v=d.inputValue,m=d.placeholder,g=this.state,b=g.selectValue,y=g.focusedValue,w=g.isFocused;if(!this.hasValue()||!p)return v?null:a.createElement(u,(0,l.Z)({},c,{key:"placeholder",isDisabled:f,isFocused:w,innerProps:{id:this.getElementId("placeholder")}}),m);if(h)return b.map((function(t,s){var u=t===y,d="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return a.createElement(n,(0,l.Z)({},c,{components:{Container:o,Label:r,Remove:i},isFocused:u,isDisabled:f,key:d,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(v)return null;var O=b[0];return a.createElement(s,(0,l.Z)({},c,{data:O,isDisabled:f}),this.formatOptionLabel(O,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,r=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||r)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(e,(0,l.Z)({},t,{innerProps:s,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,r=n.isLoading,i=this.state.isFocused;return e&&r?a.createElement(e,(0,l.Z)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,r=this.props.isDisabled,i=this.state.isFocused;return a.createElement(n,(0,l.Z)({},o,{isDisabled:r,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,r={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(e,(0,l.Z)({},t,{innerProps:r,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,r=t.Menu,i=t.MenuList,s=t.MenuPortal,u=t.LoadingMessage,c=t.NoOptionsMessage,d=t.Option,p=this.commonProps,f=this.state.focusedOption,h=this.props,v=h.captureMenuScroll,m=h.inputValue,g=h.isLoading,b=h.loadingMessage,y=h.minMenuHeight,w=h.maxMenuHeight,O=h.menuIsOpen,C=h.menuPlacement,x=h.menuPosition,E=h.menuPortalTarget,I=h.menuShouldBlockScroll,V=h.menuShouldScrollIntoView,M=h.noOptionsMessage,S=h.onMenuScrollToTop,k=h.onMenuScrollToBottom;if(!O)return null;var L,P=function(t,n){var o=t.type,r=t.data,i=t.isDisabled,s=t.isSelected,u=t.label,c=t.value,h=f===r,v=i?void 0:function(){return e.onOptionHover(r)},m=i?void 0:function(){return e.selectOption(r)},g="".concat(e.getElementId("option"),"-").concat(n),b={id:g,onClick:m,onMouseMove:v,onMouseOver:v,tabIndex:-1};return a.createElement(d,(0,l.Z)({},p,{innerProps:b,data:r,isDisabled:i,isSelected:s,key:g,label:u,type:o,value:c,isFocused:h,innerRef:h?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())L=this.getCategorizedOptions().map((function(t){if("group"===t.type){var r=t.data,i=t.options,s=t.index,u="".concat(e.getElementId("group"),"-").concat(s),c="".concat(u,"-heading");return a.createElement(n,(0,l.Z)({},p,{key:u,data:r,options:i,Heading:o,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return P(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return P(t,"".concat(t.index))}));else if(g){var R=b({inputValue:m});if(null===R)return null;L=a.createElement(u,p,R)}else{var D=M({inputValue:m});if(null===D)return null;L=a.createElement(c,p,D)}var Z={minMenuHeight:y,maxMenuHeight:w,menuPlacement:C,menuPosition:x,menuShouldScrollIntoView:V},F=a.createElement(Rt,(0,l.Z)({},p,Z),(function(t){var n=t.ref,o=t.placerProps,s=o.placement,u=o.maxHeight;return a.createElement(r,(0,l.Z)({},p,Z,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:g,placement:s}),a.createElement(Fn,{captureEnabled:v,onTopArrive:S,onBottomArrive:k,lockEnabled:I},(function(t){return a.createElement(i,(0,l.Z)({},p,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:g,maxHeight:u,focusedOption:f}),L)})))}));return E||"fixed"===x?a.createElement(s,(0,l.Z)({},p,{appendTo:E,controlElement:this.controlRef,menuPlacement:C,menuPosition:x}),F):F}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,r=t.isMulti,i=t.name,s=t.required,u=this.state.selectValue;if(s&&!this.hasValue()&&!o)return a.createElement(An,{name:i,onFocus:this.onValueInputFocus});if(i&&!o){if(r){if(n){var l=u.map((function(t){return e.getOptionValue(t)})).join(n);return a.createElement("input",{name:i,type:"hidden",value:l})}var c=u.length>0?u.map((function(t,n){return a.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):a.createElement("input",{name:i,type:"hidden",value:""});return a.createElement("div",null,c)}var d=u[0]?this.getOptionValue(u[0]):"";return a.createElement("input",{name:i,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,r=t.focusedValue,i=t.isFocused,s=t.selectValue,u=this.getFocusableOptions();return a.createElement(dn,(0,l.Z)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:r,isFocused:i,selectValue:s,focusableOptions:u}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,r=e.ValueContainer,i=this.props,s=i.className,u=i.id,c=i.isDisabled,d=i.menuIsOpen,p=this.state.isFocused,f=this.commonProps=this.getCommonProps();return a.createElement(o,(0,l.Z)({},f,{className:s,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:p}),this.renderLiveRegion(),a.createElement(t,(0,l.Z)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:p,menuIsOpen:d}),a.createElement(r,(0,l.Z)({},f,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),a.createElement(n,(0,l.Z)({},f,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,s=t.isFocused,u=t.prevWasFocused,l=e.options,c=e.value,d=e.menuIsOpen,p=e.inputValue,f=e.isMulti,h=ht(c),v={};if(n&&(c!==n.value||l!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var m=d?function(e,t){return zn(Bn(e,t))}(e,h):[],g=r?function(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o-1?n:t[0]}(t,m);v={selectValue:h,focusedOption:b,focusedValue:g,clearFocusValueOnUpdate:!1}}var y=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},w=a,O=s&&u;return s&&!O&&(w={value:kt(f,h,h[0]||null),options:h,action:"initial-input-focus"},O=!u),"initial-input-focus"===(null==a?void 0:a.action)&&(w=null),(0,o.Z)((0,o.Z)((0,o.Z)({},v),y),{},{prevProps:e,ariaSelection:w,prevWasFocused:O})}}],n&&c(t.prototype,n),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),f}(a.Component);Jn.defaultProps=Un;var Qn=(0,a.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,s=e.defaultMenuIsOpen,l=void 0!==s&&s,c=e.defaultValue,d=void 0===c?null:c,p=e.inputValue,f=e.menuIsOpen,h=e.onChange,v=e.onInputChange,m=e.onMenuClose,g=e.onMenuOpen,b=e.value,y=(0,i.Z)(e,u),w=(0,a.useState)(void 0!==p?p:n),O=(0,r.Z)(w,2),C=O[0],x=O[1],E=(0,a.useState)(void 0!==f?f:l),I=(0,r.Z)(E,2),V=I[0],M=I[1],S=(0,a.useState)(void 0!==b?b:d),k=(0,r.Z)(S,2),L=k[0],P=k[1],R=(0,a.useCallback)((function(e,t){"function"==typeof h&&h(e,t),P(e)}),[h]),D=(0,a.useCallback)((function(e,t){var n;"function"==typeof v&&(n=v(e,t)),x(void 0!==n?n:e)}),[v]),Z=(0,a.useCallback)((function(){"function"==typeof g&&g(),M(!0)}),[g]),F=(0,a.useCallback)((function(){"function"==typeof m&&m(),M(!1)}),[m]),T=void 0!==p?p:C,A=void 0!==f?f:V,H=void 0!==b?b:L;return(0,o.Z)((0,o.Z)({},y),{},{inputValue:T,menuIsOpen:A,onChange:R,onInputChange:D,onMenuClose:F,onMenuOpen:Z,value:H})}(e);return a.createElement(Jn,(0,l.Z)({ref:t},n))})),eo=Qn}}]);