1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[669],{87669:(e,t,n)=>{n.d(t,{Ay:()=>eb});var o=n(57078),i=n(71165),s=n(8972),a=n(14232),r=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"],u=n(44501),l=n(10810);function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,l.A)(o.key),o)}}var p=n(74767);function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}var h=n(54945),v=n(59696),m=n(16213);function b(e){return function(e){if(Array.isArray(e))return(0,v.A)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,m.A)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var g=n(64987),O=n(13950),I=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function y(e,t){if(e.length!==t.length)return!1;for(var n,o,i=0;i<e.length;i++)if(!((n=e[i])===(o=t[i])||I(n)&&I(o))&&1)return!1;return!0}for(var V={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"},C=function(e){return(0,O.Y)("span",(0,u.A)({css:V},e))},M={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.tabSelectsValue,i=e.context,s=e.isInitialFocus;switch(i){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 s?"".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,i=e.labels,s=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(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return s?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,o=e.options,i=e.label,s=void 0===i?"":i,a=e.selectValue,r=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(s," focused, ").concat(c(a,n),".");if("menu"===t&&l){var p="".concat(u?" selected":"").concat(r?" disabled":"");return"".concat(s).concat(p,", ").concat(c(o,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},E=function(e){var t=e.ariaSelection,n=e.focusedOption,i=e.focusedValue,s=e.focusableOptions,r=e.isFocused,u=e.selectValue,l=e.selectProps,c=e.id,p=e.isAppleDevice,d=l.ariaLiveMessages,f=l.getOptionLabel,h=l.inputValue,v=l.isMulti,m=l.isOptionDisabled,b=l.isSearchable,g=l.menuIsOpen,I=l.options,y=l.screenReaderStatus,V=l.tabSelectsValue,E=l.isLoading,D=l["aria-label"],A=l["aria-live"],S=(0,a.useMemo)(function(){return(0,o.A)((0,o.A)({},M),d||{})},[d]),F=(0,a.useMemo)(function(){var e="";if(t&&S.onChange){var n=t.option,i=t.options,s=t.removedValue,a=t.removedValues,r=t.value,l=s||n||(Array.isArray(r)?null:r),c=l?f(l):"",p=i||a||void 0,d=p?p.map(f):[],h=(0,o.A)({isDisabled:l&&m(l,u),label:c,labels:d},t);e=S.onChange(h)}return e},[t,S,m,u,f]),L=(0,a.useMemo)(function(){var e="",t=n||i,o=!!(n&&u&&u.includes(n));if(t&&S.onFocus){var a={focused:t,label:f(t),isDisabled:m(t,u),isSelected:o,options:s,context:t===n?"menu":"value",selectValue:u,isAppleDevice:p};e=S.onFocus(a)}return e},[n,i,f,m,S,s,u,p]),k=(0,a.useMemo)(function(){var e="";if(g&&I.length&&!E&&S.onFilter){var t=y({count:s.length});e=S.onFilter({inputValue:h,resultsMessage:t})}return e},[s,h,g,S,I,y,E]),w=(null==t?void 0:t.action)==="initial-input-focus",T=(0,a.useMemo)(function(){var e="";if(S.guidance){var t=i?"value":g?"menu":"input";e=S.guidance({"aria-label":D,context:t,isDisabled:n&&m(n,u),isMulti:v,isSearchable:b,tabSelectsValue:V,isInitialFocus:w}
1)}return e},[D,n,i,v,m,b,g,S,u,V,w]),R=(0,O.Y)(a.Fragment,null,(0,O.Y)("span",{id:"aria-selection"},F),(0,O.Y)("span",{id:"aria-focused"},L),(0,O.Y)("span",{id:"aria-results"},k),(0,O.Y)("span",{id:"aria-guidance"},T));return(0,O.Y)(a.Fragment,null,(0,O.Y)(C,{id:c},w&&R),(0,O.Y)(C,{"aria-live":A,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},r&&!w&&R))},D=[{base:"A",letters:"Aâ¶ï¼¡\xc0\xc1\xc2ẦẤẪẨ\xc3ÄÄáº°áº®áº´áº²È¦Ç \xc4ÇẢ\xc5ǺÇÈÈẠẬẶá¸ÄȺⱯ"},{base:"AA",letters:"ê²"},{base:"AE",letters:"\xc6ǼǢ"},{base:"AO",letters:"ê´"},{base:"AU",letters:"ê¶"},{base:"AV",letters:"ê¸êº"},{base:"AY",letters:"ê¼"},{base:"B",letters:"Bâ·ï¼¢á¸á¸á¸ÉÆÆ"},{base:"C",letters:"Câ¸ï¼£ÄÄÄÄ\xc7á¸ÆÈ»ê¾"},{base:"D",letters:"Dâ¹ï¼¤á¸Äá¸á¸á¸á¸ÄÆÆÆê¹"},{base:"DZ",letters:"DZÇ"},{base:"Dz",letters:"DzÇ
"},{base:"E",letters:"Eâºï¼¥\xc8\xc9\xcaá»áº¾á»á»áº¼Äá¸á¸ÄÄ\xcbẺÄÈÈẸá»È¨á¸Äá¸á¸ÆÆ"},{base:"F",letters:"Fâ»ï¼¦á¸Æê»"},{base:"G",letters:"Gâ¼ï¼§Ç´ÄḠÄÄ Ç¦Ä¢Ç¤Æê ê½ê¾"},{base:"H",letters:"Hâ½ï¼¨Ä¤á¸¢á¸¦ÈḤḨḪĦⱧⱵê"},{base:"I",letters:"Iâ¾ï¼©\xcc\xcd\xceĨĪĬİ\xcfḮá»ÇÈÈá»Ä®á¸¬Æ"},{base:"J",letters:"Jâ¿ï¼ªÄ´É"},{base:"K",letters:"KâKḰǨḲĶḴÆâ±©êêêê¢"},{base:"L",letters:"LâLĿĹĽḶḸĻḼḺÅȽⱢⱠêêê"},{base:"LJ",letters:"Ç"},{base:"Lj",letters:"Ç"},{base:"M",letters:"Mâï¼á¸¾á¹á¹â±®Æ"},{base:"N",letters:"NâNǸÅ\xd1á¹Åá¹Å
á¹á¹È Æêê¤"},{base:"NJ",letters:"Ç"},{base:"Nj",letters:"Ç"},{base:"O",letters:"OâO\xd2\xd3\xd4á»á»á»á»\xd5á¹È¬á¹Åá¹á¹ÅȮȰ\xd6Ȫá»ÅÇÈÈÆ á»á»á» á»á»¢á»á»ÇªÇ¬\xd8Ç¾ÆÆêê"},{base:"OI",letters:"Æ¢"},{base:"OO",letters:"ê"},{base:"OU",letters:"È¢"},{base:"P",letters:"Pâ
ï¼°á¹á¹Æ¤â±£êêê"},{base:"Q",letters:"Qâï¼±êêÉ"},{base:"R",letters:"Râï¼²Åá¹ÅÈÈá¹á¹Åá¹ÉⱤêê¦ê"},{base:"S",letters:"Sâï¼³áºÅṤÅṠŠṦṢṨÈÅâ±¾ê¨ê"},{base:"T",letters:"TâTṪŤṬÈŢṰṮŦƬƮȾê"},{base:"TZ",letters:"ê¨"},{base:"U",letters:"Uâï¼µ\xd9\xda\xdbŨṸŪṺŬ\xdcÇÇÇÇỦŮŰÇÈÈÆ¯á»ªá»¨á»®á»¬á»°á»¤á¹²Å²á¹¶á¹´É"},{base:"V",letters:"VâVṼṾƲêÉ
"},{base:"VY",letters:"ê "},{base:"W",letters:"Wâï¼·áºáºÅ´áºáºáºâ±²"},{base:"X",letters:"XâXáºáº"},{base:"Y",letters:"YâYỲ\xddŶỸȲáºÅ¸á»¶á»´Æ³ÉỾ"},{base:"Z",letters:"ZâZŹáºÅ»Å½áºáºÆµÈ¤â±¿â±«ê¢"},{base:"a",letters:"aâï½áº\xe0\xe1\xe2ầấẫẩ\xe3ÄÄằắẵẳȧǡ\xe4Çả\xe5Ç»ÇÈÈạáºáº·á¸Ä
â±¥É"},{base:"aa",letters:"ê³"},{base:"ae",letters:"\xe6ǽǣ"},{base:"ao",letters:"êµ"},{base:"au",letters:"ê·"},{base:"av",letters:"ê¹ê»"},{base:"ay",letters:"ê½"},{base:"b",letters:"bâï½á¸á¸
á¸ÆÆÉ"},{base:"c",letters:"câï½ÄÄÄÄ\xe7á¸ÆÈ¼ê¿â"},{base:"d",letters:"dâï½á¸Äá¸á¸á¸á¸ÄÆÉÉêº"},{base:"dz",letters:"dzÇ"},{base:"e",letters:"eâï½
\xe8\xe9\xeaá»áº¿á»
á»áº½Äá¸á¸ÄÄ\xebẻÄÈ
Èẹá»È©á¸Äá¸á¸ÉÉÇ"},{base:"f",letters:"fâï½á¸Æê¼"},{base:"g",letters:"gâï½ÇµÄḡÄÄ¡Ç§Ä£Ç¥É ê¡áµ¹ê¿"},{base:"h",letters:"hâï½Ä¥á¸£á¸§ÈḥḩḫáºÄ§â±¨â±¶É¥"},{base:"hv",letters:"Æ"},{base:"i",letters:"iâï½\xec\xed\xeeĩīÄ\xefḯá»ÇÈÈá»Ä¯á¸É¨Ä±"},{base:"j",letters:"jâï½ÄµÇ°É"},{base:"k",letters:"kâï½á¸±Ç©á¸³Ä·á¸µÆâ±ªêêê
ê£"},{base:"l",letters:"lâï½ÅÄºÄ¾á¸·á¸¹Ä¼á¸½á¸»Å¿ÅÆÉ«â±¡êêê"},{base:"lj",letters:"Ç"},{base:"m",letters:"mâï½á¸¿á¹á¹É±É¯"},{base:"n",letters:"nâï½Ç¹Å\xf1á¹
Åá¹Åá¹á¹ÆÉ²Åêê¥"},{base:"nj",letters:"Ç"},{base:"o",letters:"oâï½\xf2\xf3\xf4á»á»á»á»\xf5á¹Èá¹Åá¹á¹Åȯȱ\xf6È«á»ÅÇÈÈÆ¡á»á»á»¡á»á»£á»á»Ç«Ç\xf8Ç¿Éêêɵ"},{base:"oi",letters:"Æ£"},{base:"ou",letters:"È£"},{base:"oo",letters:"ê"},{base:"p",letters:"pâï½á¹á¹Æ¥áµ½êêê"},{base:"q",letters:"qâ ï½Éêê"},{base:"r",letters:"râ¡ï½Åá¹ÅÈÈá¹á¹Åá¹Éɽêê§ê"},{base:"s",letters:"sâ¢ï½\xdfÅá¹¥ÅṡšṧṣṩÈÅÈ¿ê©ê
áº"},{base:"t",letters:"tâ£ï½á¹«áºÅ¥á¹ÈţṱṯŧÆÊⱦê"},{base:"tz",letters:"ê©"},{base:"u",letters:"uâ¤ï½\xf9\xfa\xfbũṹūṻÅ\xfcÇÇÇÇủůűÇÈÈÆ°á»«á»©á»¯á»á»±á»¥á¹³Å³á¹·á¹µÊ"},{base:"v",letters:"vâ¥ï½á¹½á¹¿ÊêÊ"},{base:"vy",letters:"ê¡"},{base:"w",letters:"wâ¦ï½áºáºÅµáºáº
áºáºâ±³"},{base:"x",letters:"xâ§ï½áºáº"},{base:"y",letters:"yâ¨ï½á»³\xfdŷỹȳáº\xffá»·áºá»µÆ´Éỿ"},{base:"z",letters:"zâ©ï½ÅºáºÅ¼Å¾áºáºÆ¶È¥Éⱬê£"}],A=RegExp("["+D.map(function(e){return e.letters}).join("")+"]","g"),S={},F=0;F<D.length;F++)for(var L=D[F],k=0;k<L.letters.length;k++)S[L.letters[k]]=L.base;var w=function(e){return e.replace(A,function(e){return S[e]})},T=function(e,t){void 0===t&&(t=y);var n=null;function o(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var s=e.apply(this,o);return n={lastResult:s,lastArgs:o,lastThis:this},s}return o.clear=function(){n=null},o}(w),R=function(e){return e.replace(/^\s+|\s+$/g,"")},x=function(e){return"".concat(e.label," ").concat(e.value)},P=["innerRef"];function H(e){var t=e.innerRef,n=(0,s.A)(e,P),o=(0,g.r)(n,"onExited","in","enter","exit","appear");return(0,O.Y)("input",(0,u.A)({ref:t},o,{css:(0,O.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 U=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()},B=["boxSizing","height","overflow","paddingRight","position"],N={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Y(e){e.cancelable&&e.preventDefault()}function j(e){e.stopPropagation()}function z(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function W(){return"ontouchstart"in window||navigator.maxTouchPoints}var _=!!("undefined"!=typeof window&&window.document&&window.document.createElement),G=0,X={capture:!1,passive:!1},q=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},K={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function J(e){var t,n,o,i,s,r,u,l,c,p,d,f,h,v,m,b,I,y,V,C,M,E,D,A,S=e.children,F=e.lockEnabled,L=e.captureEnabled,k=(n=(t={isEnabled:void 0===L||L,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}).isEnabled,o=t.onBottomArrive,i=t.onBottomLeave,s=t.onTopArrive,r=t.onTopLeave,u=(0,a.useRef)(!1),l=(0,a.useRef)(!1),c=(0,a.useRef)(0),p=(0,a.useRef)(null),d=(0,a.useCallback)(function(e,t){if(null!==p.current){var n=p.current,a=n.scrollTop,c=n.scrollHeight,d=n.clientHeight,f=p.current,h=t>0,v=c-d-a,m=!1;v>t&&u.current&&(i&&i(e),u.current=!1),h&&l.current&&(r&&r(e),l.current=!1),h&&t>v?(o&&!u.current&&o(e),f.scrollTop=c,m=!0,u.current=!0):!h&&-t>a&&(s&&!l.current&&s(e),f.scrollTop=0,m=!0,l.current=!0),m&&U(e)}},[o,i,s,r]),f=(0,a.useCallback)(function(e){d(e,e.deltaY)},[d]),h=(0,a.useCallback)(function(e){c.current=e.changedTouches[0].clientY},[]),v=(0,a.useCallback)(function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)},[d]),m=(0,a.useCallback)(function(e){if(e){var t=!!g.s&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",v,t)}},[v,h,f]),b=(0,a.useCallback)(function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",v,!1))},[v,h,f]),(0,a.useEffect)(function(){if(n){var e=p.current;return m(e),function(){b(e)}}},[n,m,b]),function(e){p.current=e}),w=(y=(I={isEnabled:F}).isEnabled,C=void 0===(V=I.accountForScrollbars)||V,M=(0,a.useRef)({}),E=(0,a.useRef)(null),D=(0,a.useCallback)(function(e){if(_){var t=document.body,n=t&&t.style;if(C&&B.forEach(function(e){var t=n&&n[e];M.current[e]=t}),C&&G<1){var o=parseInt(M.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,s=window.innerWidth-i+o||0;
1Object.keys(N).forEach(function(e){var t=N[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(s,"px"))}t&&W()&&(t.addEventListener("touchmove",Y,X),e&&(e.addEventListener("touchstart",z,X),e.addEventListener("touchmove",j,X))),G+=1}},[C]),A=(0,a.useCallback)(function(e){if(_){var t=document.body,n=t&&t.style;G=Math.max(G-1,0),C&&G<1&&B.forEach(function(e){var t=M.current[e];n&&(n[e]=t)}),t&&W()&&(t.removeEventListener("touchmove",Y,X),e&&(e.removeEventListener("touchstart",z,X),e.removeEventListener("touchmove",j,X)))}},[C]),(0,a.useEffect)(function(){if(y){var e=E.current;return D(e),function(){A(e)}}},[y,D,A]),function(e){E.current=e});return(0,O.Y)(a.Fragment,null,F&&(0,O.Y)("div",{onClick:q,css:K}),S(function(e){k(e),w(e)}))}var Z={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Q=function(e){var t=e.name,n=e.onFocus;return(0,O.Y)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Z,value:"",onChange:function(){}})};function $(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null==(t=window.navigator.userAgentData)?void 0:t.platform)||window.navigator.platform)}var ee={clearIndicator:g.a,container:g.b,control:g.d,dropdownIndicator:g.e,group:g.g,groupHeading:g.f,indicatorsContainer:g.i,indicatorSeparator:g.h,input:g.j,loadingIndicator:g.l,loadingMessage:g.k,menu:g.m,menuList:g.n,menuPortal:g.o,multiValue:g.p,multiValueLabel:g.q,multiValueRemove:g.t,noOptionsMessage:g.u,option:g.v,placeholder:g.w,singleValue:g.x,valueContainer:g.y},et={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}},en={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,g.z)(),captureMenuScroll:!(0,g.z)(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,o.A)({ignoreCase:!0,ignoreAccents:!0,stringify:x,trim:!0,matchFrom:"any"},void 0),i=n.ignoreCase,s=n.ignoreAccents,a=n.stringify,r=n.trim,u=n.matchFrom,l=r?R(t):t,c=r?R(a(e)):a(e);return i&&(l=l.toLowerCase(),c=c.toLowerCase()),s&&(l=T(l),c=w(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:!(0,g.A)(),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 eo(e,t,n,o){var i=ep(e,t,n),s=ed(e,t,n),a=el(e,t),r=ec(e,t);return{type:"option",data:t,isDisabled:i,isSelected:s,label:a,value:r,index:o}}function ei(e,t){return e.options.map(function(n,o){if("options"in n){var i=n.options.map(function(n,o){return eo(e,n,t,o)}).filter(function(t){return er(e,t)});return i.length>0?{type:"group",data:n,options:i,index:o}:void 0}var s=eo(e,n,t,o);return er(e,s)?s:void 0}).filter(g.K)}function es(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,b(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function ea(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,b(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 er(e,t){var n=e.inputValue,o=t.data,i=t.isSelected,s=t.label,a=t.value;return(!eh(e)||!i)&&ef(e,{label:s,value:a,data:o},void 0===n?"":n)}var eu=function(e,t){var n;return(null==(n=e.find(function(e){return e.data===t}))?void 0:n.id)||null},el=function(e,t){return e.getOptionLabel(t)}
1,ec=function(e,t){return e.getOptionValue(t)};function ep(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ed(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=ec(e,t);return n.some(function(t){return ec(e,t)===o})}function ef(e,t,n){return!e.filterOption||e.filterOption(t,n)}var eh=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ev=1,em=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&(0,p.A)(r,e);var t,n,i,s=(t=f(),function(){var e,n=d(r);e=t?Reflect.construct(n,arguments,d(this).constructor):n.apply(this,arguments);if(e&&("object"==(0,h.A)(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return this});function r(e){var t;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");if((t=s.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:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=$(/^Mac/i)||$(/^iPhone/i)||$(/^iPad/i)||$(/^Mac/i)&&navigator.maxTouchPoints>1,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,i=o.onChange;n.name=o.name,t.ariaOnChange(e,n),i(e,n)},t.setValue=function(e,n,o){var i=t.props,s=i.closeMenuOnSelect,a=i.isMulti,r=i.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:r}),s&&(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,i=n.isMulti,s=n.name,a=t.state.selectValue,r=i&&t.isOptionSelected(e,a),u=t.isOptionDisabled(e,a);if(r){var l=t.getOptionValue(e);t.setValue((0,g.B)(a.filter(function(e){return t.getOptionValue(e)!==l})),"deselect-option",e)}else{if(u)return void t.ariaOnChange((0,g.C)(e),{action:"select-option",option:e,name:s});i?t.setValue((0,g.B)([].concat(b(a),[e])),"select-option",e):t.setValue((0,g.C)(e),"select-option")}o&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,o=t.state.selectValue,i=t.getOptionValue(e),s=o.filter(function(e){return t.getOptionValue(e)!==i}),a=(0,g.D)(n,s,s[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange((0,g.D)(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],i=n.slice(0,n.length-1),s=(0,g.D)(e,i,i[0]||null);o&&t.onChange(s,{action:"pop-value",removedValue:o})},t.getFocusedOptionId=function(e){return eu(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return ea(ei(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];return g.E.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return el(t.props,e)},t.getOptionValue=function(e){return ec(t.props,e)},t.getStyles=function(e,n){var o=t.props.unstyled,i=ee[e](n,o);i.boxSizing="border-box";var s=t.props.styles[e];return s?s(i,n):i},t.getClassNames=function(e,n){var o,i;return null==(o=(i=t.props.classNames)[e])?void 0:o.call(i,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return(0,g.F)(t.props)},t.buildCategorizedOptions=function(){return ei(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return es(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:(0,o.A)({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if((!e||"mousedown"!==e.type||0===e.button)&&!t.props.isDisabled){var n=t.props,o=n.isMulti,i=n.menuIsOpen;t.focusInput(),i?(t.setState({inputIsHiddenAfterUpdate:!o}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focu
1sInput():setTimeout(function(){return t.focusInput()}))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&(0,g.G)(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,o=n&&n.item(0);o&&(t.initialTouchX=o.clientX,t.initialTouchY=o.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,o=n&&n.item(0);if(o){var i=Math.abs(o.clientX-t.initialTouchX),s=Math.abs(o.clientY-t.initialTouchY);t.userIsDragging=i>5||s>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;if(t.menuListRef&&t.menuListRef.contains(document.activeElement))return void 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){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return eh(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,o=n.isMulti,i=n.backspaceRemovesValue,s=n.escapeClearsValue,a=n.inputValue,r=n.isClearable,u=n.isDisabled,l=n.menuIsOpen,c=n.onKeyDown,p=n.tabSelectsValue,d=n.openMenuOnFocus,f=t.state,h=f.focusedOption,v=f.focusedValue,m=f.selectValue;if(!u){if("function"==typeof c&&(c(e),e.defaultPrevented))return;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(!i)return;o?t.popValue():r&&t.clearValue()}break;case"Tab":if(t.isComposing||e.shiftKey||!l||!p||!h||d&&t.isOptionSelected(h,m))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(l){if(!h||t.isComposing)return;t.selectOption(h);break}return;case"Escape":l?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):r&&s&&t.clearValue();break;case" ":if(a)return;if(!l){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;
vendor: 10,283 bytes, line 1
1case"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.state.instancePrefix="react-select-"+(t.props.instanceId||++ev),t.state.selectValue=(0,g.H)(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),i=t.buildFocusableOptions(),a=i.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=i[a],t.state.focusedOptionId=eu(n,i[a])}return t}return 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&&(0,g.I)(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,o=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&o&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&((0,g.I)(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,i=n.isFocused,s=this.buildFocusableOptions(),a="first"===e?0:s.length-1;if(!this.props.isMulti){var r=s.indexOf(o[0]);r>-1&&(a=r)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:s[a],focusedOptionId:this.getFocusedOptionId(s[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 i=n.indexOf(o);o||(i=-1);var s=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?s:i-1;break;case"next":i>-1&&i<s&&(a=i+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 i=0,s=o.indexOf(n);n||(s=-1),"up"===e?i=s>0?s-1:o.length-1:"down"===e?i=(s+1)%o.length:"pageup"===e?(i=s-t)<0&&(i=0):"pagedown"===e?(i=s+t)>o.length-1&&(i=o.length-1):"last"===e&&(i=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(o[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(et):(0,o.A)((0,o.A)({},et),this.props.theme):et}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getClassNames,i=this.getValue,s=this.selectOption,a=this.setValue,r=this.props,u=r.isMulti,l=r.isRtl,c=r.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:i,hasValue:this.hasValue(),isMulti:u,isRtl:l,options:c,selectOption:s,selectProps:r,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 ep(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ed(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ef(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"!=typeof this.props.formatOptionLabel)return this.getOptionLabel(e);var n=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:o})}},{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,s=e.inputValue,r=e.tabIndex,l=e.form,c=e.menuIsOpen,p=e.required,d=this.getComponents().Input,f=this.state,h=f.inputIsHidden,v=f.ariaSelection,m=this.commonProps,b=i||this.getElementId("input"),O=(0,o.A)((0,o.A)((0,o.A)({"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()?(null==v?void 0:v.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?a.createElement(d,(0,u.A)({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:b,innerRef:this.getInputRef,isDisabled:t,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:r,form:l,type:"text",value:s},O)):a.createElement(H,(0,u.A)({id:b,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:g.J,onFocus:this.onInputFocus,disabled:t,tabIndex:r,inputMode:"none",form:l,value:""},O))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,i=t.MultiValueLabel,s=t.MultiValueRemove,r=t.SingleValue,l=t.Placeholder,c=this.commonProps,p=this.props,d=p.controlShouldRenderValue,f=p.isDisabled,h=p.isMulti,v=p.inputValue,m=p.placeholder,b=this.state,g=b.selectValue,O=b.focusedValue,I=b.isFocused;if(!this.hasValue()||!d)return v?null:a.createElement(l,(0,u.A)({},c,{key:"placeholder",isDisabled:f,isFocused:I,innerProps:{id:this.getElementId("placeholder")}}),m);if(h)return g.map(function(t,r){var l=t===O,p="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return a.createElement(n,(0,u.A)({},c,{components:{Container:o,Label:i,Remove:s},isFocused:l,isDisabled:f,key:p,index:r,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 y=g[0];return a.createElement(r,(0,u.A)({},c,{data:y,isDisabled:f}),this.formatOptionLabel(y,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,s=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||i)return null;var r={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(e,(0,u.A)({},t,{innerProps:r,isFocused:s}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,s=this.state.isFocused;return e&&i?a.createElement(e,(0,u.A)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:s})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,i=this.props.isDisabled,s=this.state.isFocused;return a.createElement(n,(0,u.A)({},o,{isDisabled:i,isFocused:s}))}},{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,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(e,(0,u.A)({},t,{innerProps:i,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e,t=this,n=this.getComponents(),o=n.Group,i=n.GroupHeading,s=n.Menu,r=n.MenuList,l=n.MenuPortal,c=n.LoadingMessage,p=n.NoOptionsMessage,d=n.Option,f=this.commonProps,h=this.state.focusedOption,v=this.props,m=v.captureMenuScroll,b=v.inputValue,O=v.isLoading,I=v.loadingMessage,y=v.minMenuHeight,V=v.maxMenuHeight,C=v.menuIsOpen,M=v.menuPlacement,E=v.menuPosition,D=v.menuPortalTarget,A=v.menuShouldBlockScroll,S=v.menuShouldScrollIntoView,F=v.noOptionsMessage,L=v.onMenu
1ScrollToTop,k=v.onMenuScrollToBottom;if(!C)return null;var w=function(e,n){var o=e.type,i=e.data,s=e.isDisabled,r=e.isSelected,l=e.label,c=e.value,p=h===i,v=s?void 0:function(){return t.onOptionHover(i)},m=s?void 0:function(){return t.selectOption(i)},b="".concat(t.getElementId("option"),"-").concat(n),g={id:b,onClick:m,onMouseMove:v,onMouseOver:v,tabIndex:-1,role:"option","aria-selected":t.isAppleDevice?void 0:r};return a.createElement(d,(0,u.A)({},f,{innerProps:g,data:i,isDisabled:s,isSelected:r,key:b,label:l,type:o,value:c,isFocused:p,innerRef:p?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(e.data,"menu"))};if(this.hasOptions())e=this.getCategorizedOptions().map(function(e){if("group"===e.type){var n=e.data,s=e.options,r=e.index,l="".concat(t.getElementId("group"),"-").concat(r),c="".concat(l,"-heading");return a.createElement(o,(0,u.A)({},f,{key:l,data:n,options:s,Heading:i,headingProps:{id:c,data:e.data},label:t.formatGroupLabel(e.data)}),e.options.map(function(e){return w(e,"".concat(r,"-").concat(e.index))}))}if("option"===e.type)return w(e,"".concat(e.index))});else if(O){var T=I({inputValue:b});if(null===T)return null;e=a.createElement(c,f,T)}else{var R=F({inputValue:b});if(null===R)return null;e=a.createElement(p,f,R)}var x={minMenuHeight:y,maxMenuHeight:V,menuPlacement:M,menuPosition:E,menuShouldScrollIntoView:S},P=a.createElement(g.M,(0,u.A)({},f,x),function(n){var o=n.ref,i=n.placerProps,l=i.placement,c=i.maxHeight;return a.createElement(s,(0,u.A)({},f,x,{innerRef:o,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:O,placement:l}),a.createElement(J,{captureEnabled:m,onTopArrive:L,onBottomArrive:k,lockEnabled:A},function(n){return a.createElement(r,(0,u.A)({},f,{innerRef:function(e){t.getMenuListRef(e),n(e)},innerProps:{role:"listbox","aria-multiselectable":f.isMulti,id:t.getElementId("listbox")},isLoading:O,maxHeight:c,focusedOption:h}),e)}))});return D||"fixed"===E?a.createElement(l,(0,u.A)({},f,{appendTo:D,controlElement:this.controlRef,menuPlacement:M,menuPosition:E}),P):P}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,i=t.isMulti,s=t.name,r=t.required,u=this.state.selectValue;if(r&&!this.hasValue()&&!o)return a.createElement(Q,{name:s,onFocus:this.onValueInputFocus});if(s&&!o)if(i)if(n){var l=u.map(function(t){return e.getOptionValue(t)}).join(n);return a.createElement("input",{name:s,type:"hidden",value:l})}else{var c=u.length>0?u.map(function(t,n){return a.createElement("input",{key:"i-".concat(n),name:s,type:"hidden",value:e.getOptionValue(t)})}):a.createElement("input",{name:s,type:"hidden",value:""});return a.createElement("div",null,c)}else{var p=u[0]?this.getOptionValue(u[0]):"";return a.createElement("input",{name:s,type:"hidden",value:p})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,i=t.focusedValue,s=t.isFocused,r=t.selectValue,l=this.getFocusableOptions();return a.createElement(E,(0,u.A)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:i,isFocused:s,selectValue:r,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,i=e.ValueContainer,s=this.props,r=s.className,l=s.id,c=s.isDisabled,p=s.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return a.createElement(o,(0,u.A)({},f,{className:r,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),a.createElement(t,(0,u.A)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:p}),a.createElement(i,(0,u.A)({},f,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),a.createElement(n,(0,u.A)({},f,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,i=t.clearFocusValueOnUpdate,s=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,r=t.isFocused,u=t.prevWasFocused,l=t.instancePrefix,c=e.options,p=e.value,d=e.menuIsOpen,f=e.inputValue,h=e.isMulti,v=(0,g.H)(p),m={};if(n&&(p!==n.value||c!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var b,O=d?es(ei(e,v)):[],I=d?ea(ei(e,v),"".concat(l,"-option")):[],y=i?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,v):null,V=(b=t.focusedOption)&&O.indexOf(b)>-1?b:O[0],C=eu(I,V);m={selectValue:v,focusedOption:V,focusedOptionId:C,focusableOptionsWithIds:I,focusedValue:y,clearFocusValueOnUpdate:!1}}var M=null!=s&&e!==n?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},E=a,D=r&&u;return r&&!D&&(E={value:(0,g.D)(h,v,v[0]||null),options:v,action:"initial-input-focus"},D=!u),(null==a?void 0:a.action)==="initial-input-focus"&&(E=null),(0,o.A)((0,o.A)((0,o.A)({},m),M),{},{prevProps:e,ariaSelection:E,prevWasFocused:D})}}],n&&c(r.prototype,n),i&&c(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r}(a.Component);em.defaultProps=en,n(3904),n(98477),n(97);var eb=(0,a.forwardRef)(function(e,t){var n,l,c,p,d,f,h,v,m,b,g,O,I,y,V,C,M,E,D,A,S,F,L,k,w,T,R,x,P,H,U=(n=e.defaultInputValue,l=e.defaultMenuIsOpen,c=e.defaultValue,p=e.inputValue,d=e.menuIsOpen,f=e.onChange,h=e.onInputChange,v=e.onMenuClose,m=e.onMenuOpen,b=e.value,g=(0,s.A)(e,r),O=(0,a.useState)(void 0!==p?p:void 0===n?"":n),y=(I=(0,i.A)(O,2))[0],V=I[1],C=(0,a.useState)(void 0!==d?d:void 0!==l&&l),E=(M=(0,i.A)(C,2))[0],D=M[1],A=(0,a.useState)(void 0!==b?b:void 0===c?null:c),F=(S=(0,i.A)(A,2))[0],L=S[1],k=(0,a.useCallback)(function(e,t){"function"==typeof f&&f(e,t),L(e)},[f]),w=(0,a.useCallback)(function(e,t){var n;"function"==typeof h&&(n=h(e,t)),V(void 0!==n?n:e)},[h]),T=(0,a.useCallback)(function(){"function"==typeof m&&m(),D(!0)},[m]),R=(0,a.useCallback)(function(){"function"==typeof v&&v(),D(!1)},[v]),x=void 0!==p?p:y,P=void 0!==d?d:E,H=void 0!==b?b:F,(0,o.A)((0,o.A)({},g),{},{inputValue:x,menuIsOpen:P,onChange:k,onInputChange:w,onMenuClose:R,onMenuOpen:T,value:H}));return a.createElement(em,(0,u.A)({ref:t}
1,U))})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.