"use strict";(globalThis.webpackChunkcomplianz_gdpr=globalThis.webpackChunkcomplianz_gdpr||[]).push([[8992],{37489:(e,t,n)=>{n.d(t,{A:()=>mt});var o=n(58168),r=n(51609),i=n(64467);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,i.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u=n(23029),l=n(92901),c=n(85501),p=n(52962),d=n(45458),f=n(17437),v=n(27800);function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);u=!0);}catch(e){l=!0,r=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||(0,v.A)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var m=n(98587);function g(e,t){if(null==e)return{};var n,o,r=(0,m.A)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var b=n(82284),O=n(75795),y=n(52425);const C=r.useLayoutEffect;var I=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],w=function(){};function S(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function A(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];var i=[].concat(o);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(S(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var V=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===(0,b.A)(e)&&null!==e?[e]:[];var t},M=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,s({},g(e,I))},E=function(e,t,n){var o=e.cx,r=e.getStyles,i=e.getClassNames,a=e.className;return{css:r(t,e),className:o(null!=n?n:{},i(t,e),a)}};function x(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function P(e){return x(e)?window.pageYOffset:e.scrollTop}function R(e,t){x(e)?window.scrollTo(0,t):e.scrollTop=t}function D(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w,r=P(e),i=t-r,a=0;!function t(){var s,u=i*((s=(s=a+=10)/n-1)*s*s+1)+r;R(e,u),a<n?window.requestAnimationFrame(t):o(e)}()}function k(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=t.offsetHeight/3;o.bottom+r>n.bottom?R(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):o.top-r<n.top&&R(e,Math.max(t.offsetTop-r,0))}function L(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var F=!1,T={get passive(){return F=!0}},H="undefined"!=typeof window?window:{};H.addEventListener&&H.removeEventListener&&(H.addEventListener("p",w,T),H.removeEventListener("p",w,!1));var Y=F;function U(e){return null!=e}function j(e,t,n){return e?t:n}var B=["children","innerProps"],z=["children","innerProps"];var N,W,_,G=function(e){return"auto"===e?"bottom":e},X=(0,r.createContext)(null),q=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,i=e.menuPlacement,a=e.menuPosition,u=e.menuShouldScrollIntoView,l=e.theme,c=((0,r.useContext)(X)||{}).setPortalPlacement,p=(0,r.useRef)(null),d=h((0,r.useState)(o),2),f=d[0],v=d[1],m=h((0,r.useState)(null),2),g=m[0],b=m[1],O=l.spacing.controlHeight;return C((function(){var e=p.current;if(e){var t="fixed"===a,r=function(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,r=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,o=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),(!n||"static"!==t.position)&&o.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c,p=u.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,v=d.height,h=d.top,m=n.offsetParent.getBoundingClientRect().top,g=a||x(c=u)?window.innerHeight:c.clientHeight,b=P(u),O=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),C=m-y,I=g-h,w=C+b,S=p-b-h,A=f-g+b+O,V=b+h-y,M=160;switch(r){case"auto":case"bottom":if(I>=v)return{placement:"bottom",maxHeight:t};if(S>=v&&!a)return i&&D(u,A,M),{placement:"bottom",maxHeight:t};if(!a&&S>=o||a&&I>=o)return i&&D(u,A,M),{placement:"bottom",maxHeight:a?I-O:S-O};if("auto"===r||a){var E=t,k=a?C:w;return k>=o&&(E=Math.min(k-O-s,t)),{placement:"top",maxHeight:E}}if("bottom"===r)return i&&R(u,A),{placement:"bottom",maxHeight:t};break;case"top":if(C>=v)return{placement:"top",maxHeight:t};if(w>=v&&!a)return i&&D(u,V,M),{placement:"top",maxHeight:t};if(!a&&w>=o||a&&C>=o){var L=t;return(!a&&w>=o||a&&C>=o)&&(L=a?C-y:w-y),i&&D(u,V,M),{placement:"top",maxHeight:L}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return l}({maxHeight:o,menuEl:e,minHeight:n,placement:i,shouldScroll:u&&!t,isFixedPosition:t,controlHeight:O});v(r.maxHeight),b(r.placement),null==c||c(r.placement)}}),[o,i,a,u,n,c,O]),t({ref:p,placerProps:s(s({},e),{},{placement:g||G(i),maxHeight:f})})},K=function(e,t){var n=e.theme,o=n.spacing.baseUnit,r=n.colors;return s({textAlign:"center"},t?{}:{color:r.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},Z=K,J=K,$=["size"],Q=["innerProps","isRtl","size"],ee={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},te=function(e){var t=e.size,n=g(e,$);return(0,f.Y)("svg",(0,o.A)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ee},n))},ne=function(e){return(0,f.Y)(te,(0,o.A)({size:20},e),(0,f.Y)("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"}))},oe=function(e){return(0,f.Y)(te,(0,o.A)({size:20},e),(0,f.Y)("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"}))},re=function(e,t){var n=e.isFocused,o=e.theme,r=o.spacing.baseUnit,i=o.colors;return s({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*r,":hover":{color:n?i.neutral80:i.neutral40}})},ie=re,ae=re,se=(0,f.i7)(N||(W=["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"],_||(_=W.slice(0)),N=Object.freeze(Object.defineProperties(W,{raw:{value:Object.freeze(_)}})))),ue=function(e){var t=e.delay,n=e.offset;return(0,f.Y)("span",{css:(0,f.AH)({animation:"".concat(se," 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"},"","")})},le=["data"],ce=["innerRef","isDisabled","isHidden","inputClassName"],pe={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},de={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":s({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},pe)},fe=function(e){return s({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},pe)},ve=function(e){var t=e.children,n=e.innerProps;return(0,f.Y)("div",n,t)},he={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return(0,f.Y)("div",(0,o.A)({},E(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||(0,f.Y)(ne,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,a=e.innerProps,s=e.menuIsOpen;return(0,f.Y)("div",(0,o.A)({ref:i},E(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":s}),a,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return(0,f.Y)("div",(0,o.A)({},E(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||(0,f.Y)(oe,null))},DownChevron:oe,CrossIcon:ne,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,a=e.Heading,s=e.headingProps,u=e.innerProps,l=e.label,c=e.theme,p=e.selectProps;return(0,f.Y)("div",(0,o.A)({},E(e,"group",{group:!0}),u),(0,f.Y)(a,(0,o.A)({},s,{selectProps:p,theme:c,getStyles:r,getClassNames:i,cx:n}),l),(0,f.Y)("div",null,t))},GroupHeading:function(e){var t=M(e);t.data;var n=g(t,le);return(0,f.Y)("div",(0,o.A)({},E(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return(0,f.Y)("div",(0,o.A)({},E(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return(0,f.Y)("span",(0,o.A)({},t,E(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=M(e),i=r.innerRef,a=r.isDisabled,s=r.isHidden,u=r.inputClassName,l=g(r,ce);return(0,f.Y)("div",(0,o.A)({},E(e,"input",{"input-container":!0}),{"data-value":n||""}),(0,f.Y)("input",(0,o.A)({className:t({input:!0},u),ref:i,style:fe(s),disabled:a},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,i=void 0===r?4:r,a=g(e,Q);return(0,f.Y)("div",(0,o.A)({},E(s(s({},a),{},{innerProps:t,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,f.Y)(ue,{delay:0,offset:n}),(0,f.Y)(ue,{delay:160,offset:!0}),(0,f.Y)(ue,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return(0,f.Y)("div",(0,o.A)({},E(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return(0,f.Y)("div",(0,o.A)({},E(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,i=e.controlElement,a=e.innerProps,u=e.menuPlacement,l=e.menuPosition,c=(0,r.useRef)(null),p=(0,r.useRef)(null),d=h((0,r.useState)(G(u)),2),v=d[0],m=d[1],g=(0,r.useMemo)((function(){return{setPortalPlacement:m}}),[]),b=h((0,r.useState)(null),2),I=b[0],w=b[1],S=(0,r.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"===l?0:window.pageYOffset,n=e[v]+t;n===(null==I?void 0:I.offset)&&e.left===(null==I?void 0:I.rect.left)&&e.width===(null==I?void 0:I.rect.width)||w({offset:n,rect:e})}}),[i,l,v,null==I?void 0:I.offset,null==I?void 0:I.rect.left,null==I?void 0:I.rect.width]);C((function(){S()}),[S]);var A=(0,r.useCallback)((function(){"function"==typeof p.current&&(p.current(),p.current=null),i&&c.current&&(p.current=(0,y.ll)(i,c.current,S,{elementResize:"ResizeObserver"in window}))}),[i,S]);C((function(){A()}),[A]);var V=(0,r.useCallback)((function(e){c.current=e,A()}),[A]);if(!t&&"fixed"!==l||!I)return null;var M=(0,f.Y)("div",(0,o.A)({ref:V},E(s(s({},e),{},{offset:I.offset,position:l,rect:I.rect}),"menuPortal",{"menu-portal":!0}),a),n);return(0,f.Y)(X.Provider,{value:g},t?(0,O.createPortal)(M,t):M)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,i=g(e,z);return(0,f.Y)("div",(0,o.A)({},E(s(s({},i),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,i=g(e,B);return(0,f.Y)("div",(0,o.A)({},E(s(s({},i),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,o=e.data,r=e.innerProps,i=e.isDisabled,a=e.removeProps,u=e.selectProps,l=n.Container,c=n.Label,p=n.Remove;return(0,f.Y)(l,{data:o,innerProps:s(s({},E(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),r),selectProps:u},(0,f.Y)(c,{data:o,innerProps:s({},E(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},t),(0,f.Y)(p,{data:o,innerProps:s(s({},E(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:u}))},MultiValueContainer:ve,MultiValueLabel:ve,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,f.Y)("div",(0,o.A)({role:"button"},n),t||(0,f.Y)(ne,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,a=e.innerRef,s=e.innerProps;return(0,f.Y)("div",(0,o.A)({},E(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:a,"aria-disabled":n},s),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return(0,f.Y)("div",(0,o.A)({},E(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return(0,f.Y)("div",(0,o.A)({},E(e,"container",{"--is-disabled":r,"--is-rtl":i}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return(0,f.Y)("div",(0,o.A)({},E(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return(0,f.Y)("div",(0,o.A)({},E(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)}},me=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ge(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((o=e[n])===(r=t[n])||me(o)&&me(r)))return!1;var o,r;return!0}for(var be={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Oe=function(e){return(0,f.Y)("span",(0,o.A)({css:be},e))},ye={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.tabSelectsValue,r=e.context,i=e.isInitialFocus;switch(r){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,o=void 0===n?"":n,r=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(r.length>1?"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=e.isAppleDevice,c=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(c(a,n),".");if("menu"===t&&l){var p=s?" disabled":"",d="".concat(u?" selected":"").concat(p);return"".concat(i).concat(d,", ").concat(c(o,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Ce=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,i=e.focusableOptions,a=e.isFocused,u=e.selectValue,l=e.selectProps,c=e.id,p=e.isAppleDevice,d=l.ariaLiveMessages,v=l.getOptionLabel,h=l.inputValue,m=l.isMulti,g=l.isOptionDisabled,b=l.isSearchable,O=l.menuIsOpen,y=l.options,C=l.screenReaderStatus,I=l.tabSelectsValue,w=l.isLoading,S=l["aria-label"],A=l["aria-live"],V=(0,r.useMemo)((function(){return s(s({},ye),d||{})}),[d]),M=(0,r.useMemo)((function(){var e,n="";if(t&&V.onChange){var o=t.option,r=t.options,i=t.removedValue,a=t.removedValues,l=t.value,c=i||o||(e=l,Array.isArray(e)?null:e),p=c?v(c):"",d=r||a||void 0,f=d?d.map(v):[],h=s({isDisabled:c&&g(c,u),label:p,labels:f},t);n=V.onChange(h)}return n}),[t,V,g,u,v]),E=(0,r.useMemo)((function(){var e="",t=n||o,r=!!(n&&u&&u.includes(n));if(t&&V.onFocus){var a={focused:t,label:v(t),isDisabled:g(t,u),isSelected:r,options:i,context:t===n?"menu":"value",selectValue:u,isAppleDevice:p};e=V.onFocus(a)}return e}),[n,o,v,g,V,i,u,p]),x=(0,r.useMemo)((function(){var e="";if(O&&y.length&&!w&&V.onFilter){var t=C({count:i.length});e=V.onFilter({inputValue:h,resultsMessage:t})}return e}),[i,h,O,V,y,C,w]),P="initial-input-focus"===(null==t?void 0:t.action),R=(0,r.useMemo)((function(){var e="";if(V.guidance){var t=o?"value":O?"menu":"input";e=V.guidance({"aria-label":S,context:t,isDisabled:n&&g(n,u),isMulti:m,isSearchable:b,tabSelectsValue:I,isInitialFocus:P})}return e}),[S,n,o,m,g,b,O,V,u,I,P]),D=(0,f.Y)(r.Fragment,null,(0,f.Y)("span",{id:"aria-selection"},M),(0,f.Y)("span",{id:"aria-focused"},E),(0,f.Y)("span",{id:"aria-results"},x),(0,f.Y)("span",{id:"aria-guidance"},R));return(0,f.Y)(r.Fragment,null,(0,f.Y)(Oe,{id:c},P&&D),(0,f.Y)(Oe,{"aria-live":A,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!P&&D))},Ie=[{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źẑżžẓẕƶȥɀⱬꝣ"}],we=new RegExp("["+Ie.map((function(e){return e.letters})).join("")+"]","g"),Se={},Ae=0;Ae<Ie.length;Ae++)for(var Ve=Ie[Ae],Me=0;Me<Ve.letters.length;Me++)Se[Ve.letters[Me]]=Ve.base;var Ee=function(e){return e.replace(we,(function(e){return Se[e]}))},xe=function(e,t){void 0===t&&(t=ge);var n=null;function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var i=e.apply(this,o);return n={lastResult:i,lastArgs:o,lastThis:this},i}return o.clear=function(){n=null},o}(Ee),Pe=function(e){return e.replace(/^\s+|\s+$/g,"")},Re=function(e){return"".concat(e.label," ").concat(e.value)},De=["innerRef"];function ke(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=Object.entries(e).filter((function(e){var t=h(e,1)[0];return!n.includes(t)}));return r.reduce((function(e,t){var n=h(t,2),o=n[0],r=n[1];return e[o]=r,e}),{})}(g(e,De),"onExited","in","enter","exit","appear");return(0,f.Y)("input",(0,o.A)({ref:t},n,{css:(0,f.AH)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Le=["boxSizing","height","overflow","paddingRight","position"],Fe={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Te(e){e.preventDefault()}function He(e){e.stopPropagation()}function Ye(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Ue(){return"ontouchstart"in window||navigator.maxTouchPoints}var je=!("undefined"==typeof window||!window.document||!window.document.createElement),Be=0,ze={capture:!1,passive:!1},Ne=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},We={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function _e(e){var t=e.children,n=e.lockEnabled,o=e.captureEnabled,i=function(e){var t=e.isEnabled,n=e.onBottomArrive,o=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,s=(0,r.useRef)(!1),u=(0,r.useRef)(!1),l=(0,r.useRef)(0),c=(0,r.useRef)(null),p=(0,r.useCallback)((function(e,t){if(null!==c.current){var r=c.current,l=r.scrollTop,p=r.scrollHeight,d=r.clientHeight,f=c.current,v=t>0,h=p-d-l,m=!1;h>t&&s.current&&(o&&o(e),s.current=!1),v&&u.current&&(a&&a(e),u.current=!1),v&&t>h?(n&&!s.current&&n(e),f.scrollTop=p,m=!0,s.current=!0):!v&&-t>l&&(i&&!u.current&&i(e),f.scrollTop=0,m=!0,u.current=!0),m&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,o,i,a]),d=(0,r.useCallback)((function(e){p(e,e.deltaY)}),[p]),f=(0,r.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),v=(0,r.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;p(e,t)}),[p]),h=(0,r.useCallback)((function(e){if(e){var t=!!Y&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",v,t)}}),[v,f,d]),m=(0,r.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",v,!1))}),[v,f,d]);return(0,r.useEffect)((function(){if(t){var e=c.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){c.current=e}}({isEnabled:void 0===o||o,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,o=void 0===n||n,i=(0,r.useRef)({}),a=(0,r.useRef)(null),s=(0,r.useCallback)((function(e){if(je){var t=document.body,n=t&&t.style;if(o&&Le.forEach((function(e){var t=n&&n[e];i.current[e]=t})),o&&Be<1){var r=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+r||0;Object.keys(Fe).forEach((function(e){var t=Fe[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&Ue()&&(t.addEventListener("touchmove",Te,ze),e&&(e.addEventListener("touchstart",Ye,ze),e.addEventListener("touchmove",He,ze))),Be+=1}}),[o]),u=(0,r.useCallback)((function(e){if(je){var t=document.body,n=t&&t.style;Be=Math.max(Be-1,0),o&&Be<1&&Le.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&Ue()&&(t.removeEventListener("touchmove",Te,ze),e&&(e.removeEventListener("touchstart",Ye,ze),e.removeEventListener("touchmove",He,ze)))}}),[o]);return(0,r.useEffect)((function(){if(t){var e=a.current;return s(e),function(){u(e)}}}),[t,s,u]),function(e){a.current=e}}({isEnabled:n});return(0,f.Y)(r.Fragment,null,n&&(0,f.Y)("div",{onClick:Ne,css:We}),t((function(e){i(e),a(e)})))}var Ge={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Xe=function(e){var t=e.name,n=e.onFocus;return(0,f.Y)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Ge,value:"",onChange:function(){}})};function qe(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Ke(){return qe(/^Mac/i)}var Ze={clearIndicator:ae,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,o=e.isFocused,r=e.theme,i=r.colors,a=r.borderRadius;return s({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:r.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:o?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:o?i.primary:i.neutral30}})},dropdownIndicator:ie,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,o=n.colors,r=n.spacing;return s({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*r.baseUnit,paddingRight:3*r.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing.baseUnit,i=o.colors;return s({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*r,marginTop:2*r})},input:function(e,t){var n=e.isDisabled,o=e.value,r=e.theme,i=r.spacing,a=r.colors;return s(s({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},de),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,o=e.size,r=e.theme,i=r.colors,a=r.spacing.baseUnit;return s({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:J,menu:function(e,t){var n,o=e.placement,r=e.theme,a=r.borderRadius,u=r.spacing,l=r.colors;return s((n={label:"menu"},(0,i.A)(n,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),(0,i.A)(n,"position","absolute"),(0,i.A)(n,"width","100%"),(0,i.A)(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:u.menuGutter,marginTop:u.menuGutter})},menuList:function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return s({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},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,o=n.spacing,r=n.borderRadius,i=n.colors;return s({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:r/2,margin:o.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,o=n.borderRadius,r=n.colors,i=e.cropWithEllipsis;return s({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:r.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,i=n.colors,a=e.isFocused;return s({alignItems:"center",display:"flex"},t?{}:{borderRadius:r/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:Z,option:function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.theme,a=i.spacing,u=i.colors;return s({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:r?u.primary:o?u.primary25:"transparent",color:n?u.neutral20:r?u.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:r?u.primary:u.primary50}})},placeholder:function(e,t){var n=e.theme,o=n.spacing,r=n.colors;return s({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:r.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing,i=o.colors;return s({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,o=e.isMulti,r=e.hasValue,i=e.selectProps.controlShouldRenderValue;return s({alignItems:"center",display:o&&r&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Je={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}},$e={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:L(),captureMenuScroll:!L(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=s({ignoreCase:!0,ignoreAccents:!0,stringify:Re,trim:!0,matchFrom:"any"},undefined),o=n.ignoreCase,r=n.ignoreAccents,i=n.stringify,a=n.trim,u=n.matchFrom,l=a?Pe(t):t,c=a?Pe(i(e)):i(e);return o&&(l=l.toLowerCase(),c=c.toLowerCase()),r&&(l=xe(l),c=Ee(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 Qe(e,t,n,o){return{type:"option",data:t,isDisabled:st(e,t,n),isSelected:ut(e,t,n),label:it(e,t),value:at(e,t),index:o}}function et(e,t){return e.options.map((function(n,o){if("options"in n){var r=n.options.map((function(n,o){return Qe(e,n,t,o)})).filter((function(t){return ot(e,t)}));return r.length>0?{type:"group",data:n,options:r,index:o}:void 0}var i=Qe(e,n,t,o);return ot(e,i)?i:void 0})).filter(U)}function tt(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,(0,d.A)(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function nt(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,(0,d.A)(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function ot(e,t){var n=e.inputValue,o=void 0===n?"":n,r=t.data,i=t.isSelected,a=t.label,s=t.value;return(!ct(e)||!i)&&lt(e,{label:a,value:s,data:r},o)}var rt=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},it=function(e,t){return e.getOptionLabel(t)},at=function(e,t){return e.getOptionValue(t)};function st(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ut(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=at(e,t);return n.some((function(t){return at(e,t)===o}))}function lt(e,t,n){return!e.filterOption||e.filterOption(t,n)}var ct=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},pt=1,dt=function(e){(0,c.A)(n,e);var t=(0,p.A)(n);function n(e){var o;if((0,u.A)(this,n),(o=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.isAppleDevice=Ke()||qe(/^iPhone/i)||qe(/^iPad/i)||Ke()&&navigator.maxTouchPoints>1,o.controlRef=null,o.getControlRef=function(e){o.controlRef=e},o.focusedOptionRef=null,o.getFocusedOptionRef=function(e){o.focusedOptionRef=e},o.menuListRef=null,o.getMenuListRef=function(e){o.menuListRef=e},o.inputRef=null,o.getInputRef=function(e){o.inputRef=e},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(e,t){var n=o.props,r=n.onChange,i=n.name;t.name=i,o.ariaOnChange(e,t),r(e,t)},o.setValue=function(e,t,n){var r=o.props,i=r.closeMenuOnSelect,a=r.isMulti,s=r.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(o.setState({inputIsHiddenAfterUpdate:!a}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(e,{action:t,option:n})},o.selectOption=function(e){var t=o.props,n=t.blurInputOnSelect,r=t.isMulti,i=t.name,a=o.state.selectValue,s=r&&o.isOptionSelected(e,a),u=o.isOptionDisabled(e,a);if(s){var l=o.getOptionValue(e);o.setValue(a.filter((function(e){return o.getOptionValue(e)!==l})),"deselect-option",e)}else{if(u)return void o.ariaOnChange(e,{action:"select-option",option:e,name:i});r?o.setValue([].concat((0,d.A)(a),[e]),"select-option",e):o.setValue(e,"select-option")}n&&o.blurInput()},o.removeValue=function(e){var t=o.props.isMulti,n=o.state.selectValue,r=o.getOptionValue(e),i=n.filter((function(e){return o.getOptionValue(e)!==r})),a=j(t,i,i[0]||null);o.onChange(a,{action:"remove-value",removedValue:e}),o.focusInput()},o.clearValue=function(){var e=o.state.selectValue;o.onChange(j(o.props.isMulti,[],null),{action:"clear",removedValues:e})},o.popValue=function(){var e=o.props.isMulti,t=o.state.selectValue,n=t[t.length-1],r=t.slice(0,t.length-1),i=j(e,r,r[0]||null);o.onChange(i,{action:"pop-value",removedValue:n})},o.getFocusedOptionId=function(e){return rt(o.state.focusableOptionsWithIds,e)},o.getFocusableOptionsWithIds=function(){return nt(et(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return A.apply(void 0,[o.props.classNamePrefix].concat(t))},o.getOptionLabel=function(e){return it(o.props,e)},o.getOptionValue=function(e){return at(o.props,e)},o.getStyles=function(e,t){var n=o.props.unstyled,r=Ze[e](t,n);r.boxSizing="border-box";var i=o.props.styles[e];return i?i(r,t):r},o.getClassNames=function(e,t){var n,r;return null===(n=(r=o.props.classNames)[e])||void 0===n?void 0:n.call(r,t)},o.getElementId=function(e){return"".concat(o.state.instancePrefix,"-").concat(e)},o.getComponents=function(){return e=o.props,s(s({},he),e.components);var e},o.buildCategorizedOptions=function(){return et(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return tt(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(e,t){o.setState({ariaSelection:s({value:e},t)})},o.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(e){o.blockOptionHover=!1},o.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&o.onMenuClose():t&&o.openMenu("first"):(t&&(o.openAfterFocus=!0),o.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},o.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||o.props.isDisabled)){var t=o.props,n=t.isMulti,r=t.menuIsOpen;o.focusInput(),r?(o.setState({inputIsHiddenAfterUpdate:!n}),o.onMenuClose()):o.openMenu("first"),e.preventDefault()}},o.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(o.clearValue(),e.preventDefault(),o.openAfterFocus=!1,"touchend"===e.type?o.focusInput():setTimeout((function(){return o.focusInput()})))},o.onScroll=function(e){"boolean"==typeof o.props.closeMenuOnScroll?e.target instanceof HTMLElement&&x(e.target)&&o.props.onMenuClose():"function"==typeof o.props.closeMenuOnScroll&&o.props.closeMenuOnScroll(e)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(o.initialTouchX=n.clientX,o.initialTouchY=n.clientY,o.userIsDragging=!1)},o.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var r=Math.abs(n.clientX-o.initialTouchX),i=Math.abs(n.clientY-o.initialTouchY);o.userIsDragging=r>5||i>5}},o.onTouchEnd=function(e){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(e.target)&&o.menuListRef&&!o.menuListRef.contains(e.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(e){o.userIsDragging||o.onControlMouseDown(e)},o.onClearIndicatorTouchEnd=function(e){o.userIsDragging||o.onClearIndicatorMouseDown(e)},o.onDropdownIndicatorTouchEnd=function(e){o.userIsDragging||o.onDropdownIndicatorMouseDown(e)},o.handleInputChange=function(e){var t=o.props.inputValue,n=e.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(n,{action:"input-change",prevInputValue:t}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(e){o.props.onFocus&&o.props.onFocus(e),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(e){var t=o.props.inputValue;o.menuListRef&&o.menuListRef.contains(document.activeElement)?o.inputRef.focus():(o.props.onBlur&&o.props.onBlur(e),o.onInputChange("",{action:"input-blur",prevInputValue:t}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1}))},o.onOptionHover=function(e){if(!o.blockOptionHover&&o.state.focusedOption!==e){var t=o.getFocusableOptions().indexOf(e);o.setState({focusedOption:e,focusedOptionId:t>-1?o.getFocusedOptionId(e):null})}},o.shouldHideSelectedOptions=function(){return ct(o.props)},o.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),o.focus()},o.onKeyDown=function(e){var t=o.props,n=t.isMulti,r=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,u=t.isDisabled,l=t.menuIsOpen,c=t.onKeyDown,p=t.tabSelectsValue,d=t.openMenuOnFocus,f=o.state,v=f.focusedOption,h=f.focusedValue,m=f.selectValue;if(!(u||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(o.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;o.focusValue("previous");break;case"ArrowRight":if(!n||a)return;o.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(h)o.removeValue(h);else{if(!r)return;n?o.popValue():s&&o.clearValue()}break;case"Tab":if(o.isComposing)return;if(e.shiftKey||!l||!p||!v||d&&o.isOptionSelected(v,m))return;o.selectOption(v);break;case"Enter":if(229===e.keyCode)break;if(l){if(!v)return;if(o.isComposing)return;o.selectOption(v);break}return;case"Escape":l?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:a}),o.onMenuClose()):s&&i&&o.clearValue();break;case" ":if(a)return;if(!l){o.openMenu("first");break}if(!v)return;o.selectOption(v);break;case"ArrowUp":l?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":l?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!l)return;o.focusOption("pageup");break;case"PageDown":if(!l)return;o.focusOption("pagedown");break;case"Home":if(!l)return;o.focusOption("first");break;case"End":if(!l)return;o.focusOption("last");break;default:return}e.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++pt),o.state.selectValue=V(e.value),e.menuIsOpen&&o.state.selectValue.length){var r=o.getFocusableOptionsWithIds(),i=o.buildFocusableOptions(),a=i.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=r,o.state.focusedOption=i[a],o.state.focusedOptionId=rt(r,i[a])}return o}return(0,l.A)(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&&k(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&&(k(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],focusedOptionId:this.getFocusedOptionId(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&&r<i&&(a=r+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&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,focusedOptionId:this.getFocusedOptionId(o[r])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Je):s(s({},Je),this.props.theme):Je}},{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 st(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ut(this.props,e,t)}},{key:"filterOption",value:function(e,t){return lt(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,i=e.inputId,a=e.inputValue,u=e.tabIndex,l=e.form,c=e.menuIsOpen,p=e.required,d=this.getComponents().Input,f=this.state,v=f.inputIsHidden,h=f.ariaSelection,m=this.commonProps,g=i||this.getElementId("input"),b=s(s(s({"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":p,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},c&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==h?void 0:h.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?r.createElement(d,(0,o.A)({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:t,isHidden:v,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:l,type:"text",value:a},b)):r.createElement(ke,(0,o.A)({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:w,onFocus:this.onInputFocus,disabled:t,tabIndex:u,inputMode:"none",form:l,value:""},b))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,i=t.MultiValueContainer,a=t.MultiValueLabel,s=t.MultiValueRemove,u=t.SingleValue,l=t.Placeholder,c=this.commonProps,p=this.props,d=p.controlShouldRenderValue,f=p.isDisabled,v=p.isMulti,h=p.inputValue,m=p.placeholder,g=this.state,b=g.selectValue,O=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!d)return h?null:r.createElement(l,(0,o.A)({},c,{key:"placeholder",isDisabled:f,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),m);if(v)return b.map((function(t,u){var l=t===O,p="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return r.createElement(n,(0,o.A)({},c,{components:{Container:i,Label:a,Remove:s},isFocused:l,isDisabled:f,key:p,index:u,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(h)return null;var C=b[0];return r.createElement(u,(0,o.A)({},c,{data:C,isDisabled:f}),this.formatOptionLabel(C,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,a=n.isLoading,s=this.state.isFocused;if(!this.isClearable()||!e||i||!this.hasValue()||a)return null;var u={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return r.createElement(e,(0,o.A)({},t,{innerProps:u,isFocused:s}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,a=n.isLoading,s=this.state.isFocused;return e&&a?r.createElement(e,(0,o.A)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:s})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var i=this.commonProps,a=this.props.isDisabled,s=this.state.isFocused;return r.createElement(n,(0,o.A)({},i,{isDisabled:a,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,i=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return r.createElement(e,(0,o.A)({},t,{innerProps:a,isDisabled:n,isFocused:i}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,i=t.GroupHeading,a=t.Menu,s=t.MenuList,u=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,p=t.Option,d=this.commonProps,f=this.state.focusedOption,v=this.props,h=v.captureMenuScroll,m=v.inputValue,g=v.isLoading,b=v.loadingMessage,O=v.minMenuHeight,y=v.maxMenuHeight,C=v.menuIsOpen,I=v.menuPlacement,w=v.menuPosition,S=v.menuPortalTarget,A=v.menuShouldBlockScroll,V=v.menuShouldScrollIntoView,M=v.noOptionsMessage,E=v.onMenuScrollToTop,x=v.onMenuScrollToBottom;if(!C)return null;var P,R=function(t,n){var i=t.type,a=t.data,s=t.isDisabled,u=t.isSelected,l=t.label,c=t.value,v=f===a,h=s?void 0:function(){return e.onOptionHover(a)},m=s?void 0:function(){return e.selectOption(a)},g="".concat(e.getElementId("option"),"-").concat(n),b={id:g,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:u};return r.createElement(p,(0,o.A)({},d,{innerProps:b,data:a,isDisabled:s,isSelected:u,key:g,label:l,type:i,value:c,isFocused:v,innerRef:v?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map((function(t){if("group"===t.type){var a=t.data,s=t.options,u=t.index,l="".concat(e.getElementId("group"),"-").concat(u),c="".concat(l,"-heading");return r.createElement(n,(0,o.A)({},d,{key:l,data:a,options:s,Heading:i,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return R(e,"".concat(u,"-").concat(e.index))})))}if("option"===t.type)return R(t,"".concat(t.index))}));else if(g){var D=b({inputValue:m});if(null===D)return null;P=r.createElement(l,d,D)}else{var k=M({inputValue:m});if(null===k)return null;P=r.createElement(c,d,k)}var L={minMenuHeight:O,maxMenuHeight:y,menuPlacement:I,menuPosition:w,menuShouldScrollIntoView:V},F=r.createElement(q,(0,o.A)({},d,L),(function(t){var n=t.ref,i=t.placerProps,u=i.placement,l=i.maxHeight;return r.createElement(a,(0,o.A)({},d,L,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:u}),r.createElement(_e,{captureEnabled:h,onTopArrive:E,onBottomArrive:x,lockEnabled:A},(function(t){return r.createElement(s,(0,o.A)({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:l,focusedOption:f}),P)})))}));return S||"fixed"===w?r.createElement(u,(0,o.A)({},d,{appendTo:S,controlElement:this.controlRef,menuPlacement:I,menuPosition:w}),F):F}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,i=t.isMulti,a=t.name,s=t.required,u=this.state.selectValue;if(s&&!this.hasValue()&&!o)return r.createElement(Xe,{name:a,onFocus:this.onValueInputFocus});if(a&&!o){if(i){if(n){var l=u.map((function(t){return e.getOptionValue(t)})).join(n);return r.createElement("input",{name:a,type:"hidden",value:l})}var c=u.length>0?u.map((function(t,n){return r.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):r.createElement("input",{name:a,type:"hidden",value:""});return r.createElement("div",null,c)}var p=u[0]?this.getOptionValue(u[0]):"";return r.createElement("input",{name:a,type:"hidden",value:p})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,i=t.focusedOption,a=t.focusedValue,s=t.isFocused,u=t.selectValue,l=this.getFocusableOptions();return r.createElement(Ce,(0,o.A)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:i,focusedValue:a,isFocused:s,selectValue:u,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,i=e.SelectContainer,a=e.ValueContainer,s=this.props,u=s.className,l=s.id,c=s.isDisabled,p=s.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return r.createElement(i,(0,o.A)({},f,{className:u,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),r.createElement(t,(0,o.A)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:p}),r.createElement(a,(0,o.A)({},f,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),r.createElement(n,(0,o.A)({},f,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.clearFocusValueOnUpdate,r=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,u=t.prevWasFocused,l=t.instancePrefix,c=e.options,p=e.value,d=e.menuIsOpen,f=e.inputValue,v=e.isMulti,h=V(p),m={};if(n&&(p!==n.value||c!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?function(e,t){return tt(et(e,t))}(e,h):[],b=d?nt(et(e,h),"".concat(l,"-option")):[],O=o?function(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o<t.length)return t[o]}return null}(t,h):null,y=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);m={selectValue:h,focusedOption:y,focusedOptionId:rt(b,y),focusableOptionsWithIds:b,focusedValue:O,clearFocusValueOnUpdate:!1}}var C=null!=r&&e!==n?{inputIsHidden:r,inputIsHiddenAfterUpdate:void 0}:{},I=i,w=a&&u;return a&&!w&&(I={value:j(v,h,h[0]||null),options:h,action:"initial-input-focus"},w=!u),"initial-input-focus"===(null==i?void 0:i.action)&&(I=null),s(s(s({},m),C),{},{prevProps:e,ariaSelection:I,prevWasFocused:w})}}]),n}(r.Component);dt.defaultProps=$e;var ft=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"],vt=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"],ht=(0,r.forwardRef)((function(e,t){var n=function(e){var t=e.defaultOptions,n=void 0!==t&&t,o=e.cacheOptions,a=void 0!==o&&o,u=e.loadOptions;e.options;var l=e.isLoading,c=void 0!==l&&l,p=e.onInputChange,d=e.filterOption,f=void 0===d?null:d,v=g(e,vt),m=v.inputValue,b=(0,r.useRef)(void 0),O=(0,r.useRef)(!1),y=h((0,r.useState)(Array.isArray(n)?n:void 0),2),C=y[0],I=y[1],w=h((0,r.useState)(void 0!==m?m:""),2),S=w[0],A=w[1],V=h((0,r.useState)(!0===n),2),M=V[0],E=V[1],x=h((0,r.useState)(void 0),2),P=x[0],R=x[1],D=h((0,r.useState)([]),2),k=D[0],L=D[1],F=h((0,r.useState)(!1),2),T=F[0],H=F[1],Y=h((0,r.useState)({}),2),U=Y[0],j=Y[1],B=h((0,r.useState)(void 0),2),z=B[0],N=B[1],W=h((0,r.useState)(void 0),2),_=W[0],G=W[1];a!==_&&(j({}),G(a)),n!==z&&(I(Array.isArray(n)?n:void 0),N(n)),(0,r.useEffect)((function(){return O.current=!0,function(){O.current=!1}}),[]);var X=(0,r.useCallback)((function(e,t){if(!u)return t();var n=u(e,t);n&&"function"==typeof n.then&&n.then(t,(function(){return t()}))}),[u]);(0,r.useEffect)((function(){!0===n&&X(S,(function(e){O.current&&(I(e||[]),E(!!b.current))}))}),[]);var q=(0,r.useCallback)((function(e,t){var n=function(e,t,n){if(n){var o=n(e,t);if("string"==typeof o)return o}return e}(e,t,p);if(!n)return b.current=void 0,A(""),R(""),L([]),E(!1),void H(!1);if(a&&U[n])A(n),R(n),L(U[n]),E(!1),H(!1);else{var o=b.current={};A(n),E(!0),H(!P),X(n,(function(e){O&&o===b.current&&(b.current=void 0,E(!1),R(n),L(e||[]),H(!1),j(e?s(s({},U),{},(0,i.A)({},n,e)):U))}))}}),[a,X,P,U,p]),K=T?[]:S&&P?k:C||[];return s(s({},v),{},{options:K,isLoading:M||c,onInputChange:q,filterOption:f})}(e),a=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,o=e.defaultMenuIsOpen,i=void 0!==o&&o,a=e.defaultValue,u=void 0===a?null:a,l=e.inputValue,c=e.menuIsOpen,p=e.onChange,d=e.onInputChange,f=e.onMenuClose,v=e.onMenuOpen,m=e.value,b=g(e,ft),O=h((0,r.useState)(void 0!==l?l:n),2),y=O[0],C=O[1],I=h((0,r.useState)(void 0!==c?c:i),2),w=I[0],S=I[1],A=h((0,r.useState)(void 0!==m?m:u),2),V=A[0],M=A[1],E=(0,r.useCallback)((function(e,t){"function"==typeof p&&p(e,t),M(e)}),[p]),x=(0,r.useCallback)((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),C(void 0!==n?n:e)}),[d]),P=(0,r.useCallback)((function(){"function"==typeof v&&v(),S(!0)}),[v]),R=(0,r.useCallback)((function(){"function"==typeof f&&f(),S(!1)}),[f]),D=void 0!==l?l:y,k=void 0!==c?c:w,L=void 0!==m?m:V;return s(s({},b),{},{inputValue:D,menuIsOpen:k,onChange:E,onInputChange:x,onMenuClose:R,onMenuOpen:P,value:L})}(n);return r.createElement(dt,(0,o.A)({ref:t},a))})),mt=ht},22589:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(51609);const r=function(e,t){var n,r=(n=(0,o.useRef)(!0)).current?(n.current=!1,!0):n.current;(0,o.useEffect)((function(){if(!r)return e()}),t)}},43145:(e,t,n)=>{function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}n.d(t,{A:()=>o})},9417:(e,t,n)=>{function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>o})},23029:(e,t,n)=>{function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>o})},92901:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(20816);function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(0,o.A)(r.key),r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},52962:(e,t,n)=>{function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(r=function(){return!!e})()}n.d(t,{A:()=>s});var i=n(82284),a=n(9417);function s(e){var t=r();return function(){var n,r=o(e);if(t){var s=o(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===(0,i.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,a.A)(e)}(this,n)}}},64467:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(20816);function r(e,t,n){return(t=(0,o.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},85501:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(63662);function r(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,o.A)(e,t)}},45458:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(43145),r=n(27800);function i(e){return function(e){if(Array.isArray(e))return(0,o.A)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,r.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},20816:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(82284);function r(e){var t=function(e,t){if("object"!=(0,o.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=(0,o.A)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,o.A)(t)?t:t+""}},82284:(e,t,n)=>{function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(t,{A:()=>o})},27800:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(43145);function r(e,t){if(e){if("string"==typeof e)return(0,o.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,o.A)(e,t):void 0}}},16214:(e,t,n)=>{n.d(t,{N:()=>s});var o=n(51609),r=n(62133),i=n(91071),a=n(33362);function s(e){const t=e+"CollectionProvider",[n,s]=(0,r.A)(t),[u,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=e+"CollectionSlot",p=e+"CollectionItemSlot",d="data-radix-collection-item";return[{Provider:e=>{const{scope:t,children:n}=e,r=o.useRef(null),i=o.useRef(new Map).current;return o.createElement(u,{scope:t,itemMap:i,collectionRef:r},n)},Slot:o.forwardRef(((e,t)=>{const{scope:n,children:r}=e,s=l(c,n),u=(0,i.s)(t,s.collectionRef);return o.createElement(a.DX,{ref:u},r)})),ItemSlot:o.forwardRef(((e,t)=>{const{scope:n,children:r,...s}=e,u=o.useRef(null),c=(0,i.s)(t,u),f=l(p,n);return o.useEffect((()=>(f.itemMap.set(u,{ref:u,...s}),()=>{f.itemMap.delete(u)}))),o.createElement(a.DX,{[d]:"",ref:c},r)}))},function(t){const n=l(e+"CollectionConsumer",t);return o.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},s]}},71427:(e,t,n)=>{n.d(t,{jH:()=>i});var o=n(51609);const r=(0,o.createContext)(void 0);function i(e){const t=(0,o.useContext)(r);return e||t||"ltr"}},18723:(e,t,n)=>{var o;n.d(t,{B:()=>u});var r=n(51609),i=n(88200);const a=(o||(o=n.t(r,2)))["useId".toString()]||(()=>{});let s=0;function u(e){const[t,n]=r.useState(a());return(0,i.N)((()=>{e||n((e=>null!=e?e:String(s++)))}),[e]),e||(t?`radix-${t}`:"")}},85357:(e,t,n)=>{n.d(t,{Z:()=>r});var o=n(51609);function r(e){const t=(0,o.useRef)({value:e,previous:e});return(0,o.useMemo)((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}}}]);