1/*! For license information please see 21031.4b269ab7.chunk.js.LICENSE.txt */ 2(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[21031],{23676(e,t,n){"use strict";var i=n(62540),o=n(63696),r=n(4452),s=n(80191),l=n(33012);function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=a(o),d=a(r);const c=()=>{};var h=u.default.memo(function(e){s(l);const{offsetCollapse:t,disabled:n,selected:o,highlighted:r,id:a,onRef:h=c,className:p,onClick:g,onMouseDown:f,onMouseMove:m,label:I,renderOption:b,value:v,meta:x,listIndex:y,inputValue:w,whiteSpace:C}=e,k=u.default.useCallback(e=>{n||g?.(e)},[n,g]),O=u.default.useCallback(e=>{n||f?.(e)},[n,f]),S=u.default.useCallback(e=>{n||m?.(e)},[n,m]),E=u.default.useMemo(()=>{if(b)return b({label:I,value:v,meta:x,disabled:n},y,w);const e=C?d.default(l.label,{[l[`white-space-${C}`]]:C}):l.label;return i.jsx("div",{className:e,children:I})},[n,w,I,y,x,b,v,C]),D={...{className:d.default(l.root,p,{[l.offsetCollapse]:t,[l.disabled]:n,[l.selected]:o,[l.highlighted]:r}),onClick:k,ref:h},id:a,onMouseDown:O,onMouseMove:S};return i.jsx("div",{...D,children:E})});e.exports=h},33012(e,t,n){"use strict";var i=n(18952),o={root:"xNV9-",label:"D0XzL","white-space-unset":"I-JxX",disabled:"_2-tUH",offsetCollapse:"SwxVa",block:"f4Z1P",selected:"KjYsX",highlighted:"Fo3hg"},r=".xNV9-{cursor:pointer;padding:8px 12px}.D0XzL{min-width:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.D0XzL.I-JxX{white-space:unset}.xNV9-._2-tUH{color:#717d8f;cursor:default}.xNV9-.SwxVa{padding:0}.f4Z1P{display:block}.xNV9-.KjYsX{background:#e3e7eb;border-radius:2px}.Fo3hg{background:#ebedf0;border-radius:2px}";o._getCss=function(){return r},o._insertCss=function(){i([["490af",r]])},o._getId=function(){return"490af"},e.exports=o}
2,73591(e,t,n){"use strict";var i=n(62540),o=n(63696),r=n(4452),s=n(80191),l=n(21948);function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=a(o),d=a(r);const c="loading",h=2,p=u.default.forwardRef((e,t)=>{s(l);const{position:n,absolute:o,className:r,animationCount:a,animation:u=c,animationTime:p=h}=e,g=n||"",f={animationDuration:`${p}s`,...a?{animationIterationCount:a}:null},m=d.default(l.root,r,{[l[g]]:Boolean(n),[l.absolute]:o}),I=d.default(l.bar,{[l[u]]:Boolean(l[u])});return i.jsx("div",{ref:t,className:m,children:i.jsx("div",{className:I,style:f})})});e.exports=p},21948(e,t,n){"use strict";var i=n(18952),o={root:"uSf-1",absolute:"Fgc1u",bottom:"cpIo3 Fgc1u",top:"jnJcx Fgc1u",bar:"T5-t-",loading:"ogC4B",progress:"BhvML"},r='.uSf-1{background-color:#b2eddd;height:4px;position:relative;width:100%}.Fgc1u{position:absolute;width:100%;z-index:100}.cpIo3{bottom:0}.jnJcx{top:0}.T5-t-{background-color:#00a278;content:"";display:inline;height:100%;left:0;position:absolute;text-align:center;width:0}.ogC4B{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:ogC4B;animation-name:ogC4B;-webkit-animation-timing-function:linear;animation-timing-function:linear}.BhvML{-webkit-animation-duration:10s;animation-duration:10s;-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-name:BhvML;animation-name:BhvML;-webkit-animation-timing-function:linear;animation-timing-function:linear}@-webkit-keyframes BhvML{0%{left:0;width:0}to{left:0;width:100%}}@keyframes BhvML{0%{left:0;width:0}to{left:0;width:100%}}@-webkit-keyframes ogC4B{0%{left:0;width:0}50%{left:10%;width:70%}70%{left:60%;width:30%}to{left:100%;width:0}}@keyframes ogC4B{0%{left:0;width:0}50%{left:10%;width:70%}70%{left:60%;width:30%}to{left:100%;width:0}}';o._getCss=function(){return r},o._insertCss=function(){i([["feac1",r]])},o._getId=function(){return"feac1"},e.exports=o},78956(e,t,n){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=i(n(63696));const r=window.innerWidth,s=window.innerHeight,l=r,a=s,u=o.default.createContext({top:0,left:0,right:r,bottom:s,width:l,height:a,offset:{top:0,left:0},setOffset:e=>{throw new Error("ÐелÑÐ·Ñ Ð¸ÑполÑзоваÑÑ Ð´ÐµÑолÑнÑй setOffset")},subscribe:e=>window.addEventListener("scroll",e),unsubscribe:e=>window.removeEventListener("scroll",e)}),{Consumer:d,Provider:c}=u;t.Consumer=d,t.Provider=c},54254(e,t,n){"use strict";var i=n(62540),o=n(63696),r=n(75114),s=n(78956);function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=l(o),u=l(r);function d(e){const{subscribe:t,onRef:n,top:o,bottom:r,offset:s,height:l,offsetTop:d=0,offsetBottom:c=0,onReachTop:h=u.default,onLeaveTop:p=u.default,onReachBottom:g=u.default,onLeaveBottom:f=u.default,onEndOfScroll:m=u.default,className:I,children:b,unsubscribe:v}=e,x=a.default.useRef(null),[y,w]=a.default.useState(!1),[C,k]=a.default.useState(!1),[O,S]=a.default.useState(!1),E=a.default.useCallback(()=>{if(!x.current)return;const{top:e,bottom:t,height:n}=x.current.getBoundingClientRect(),i=r,a=t,u=e-d<=o+s.top,I=a+c>=i,b=n>l;a+c<=i&&!O&&(S(!0),m({hasScroll:b})),!O&&O&&S(!1),y&&!u&&(w(!1),p({hasScroll:b})),!y&&u&&(w(!0),h({hasScroll:b})),C&&!I&&(k(!1),f({hasScroll:b})),!C&&I&&(k(!0),g({hasScroll:b}))},[C,O,c,d,m,f,p,g,h,r,l,s.top,o,y]);return a.default.useEffect(()=>()=>v(E),[]),a.default.useEffect(()=>(n&&n(x),t(E),E(),()=>v(E)),[E,n,t,v]),i.jsx("div",{ref:x,className:I,children:b})}e.exports=function(e){return i.jsx(s.Consumer,{children:t=>i.jsx(d,{...t,...e})})}},78433(e,t,n){"use strict";var i=n(62540),o=n(63696),r=n(78956);function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=s(o);var a=l.default.memo(function(e){const{rootRef:t,contentRef:n=t,id:o,style:s,className:a,children:u}=e,d=t||l.default.createRef(),c=l.default.useRef(void 0),h=l.default.useRef(new Set),p=l.default.useRef(void 0),g=l.default.useRef(void 0),[f,m]=l.default.useState(0),[I,b]=l.default.useState(0),[v,x]=l.default.useState(0),[y,w]=l.default.useState(0),[C,k]=l.default.useState(0),[O,S]=l.default.useState(0),[E,D]=l.default.useState({top:0,left:0}),M=l.default.useCallback(e=>h.current.add(e),[h]),R=l.default.useCallback(e=>h.current.delete(e),[h]),A=l.default.useCallback(()=>
2{h.current.forEach(e=>e())},[h]),K=l.default.useCallback(()=>{if(!d.current)return;const{top:e,left:t,right:n,bottom:i,height:o,width:r}=d.current.getBoundingClientRect();m(e),b(t),x(n),S(i),k(o),w(r),A()},[d,A]);return l.default.useEffect(()=>{if(c.current=new ResizeObserver(()=>requestAnimationFrame(K)),g.current=requestAnimationFrame(()=>K()),!d.current)return()=>{};const e=d.current;return d.current.addEventListener("scroll",K),window.addEventListener("resize",K),n?.current&&c.current?.observe(n.current),()=>{p.current&&cancelAnimationFrame(p.current),g.current&&cancelAnimationFrame(g.current),e&&(e.removeEventListener("scroll",K),window.removeEventListener("resize",K),c.current?.disconnect())}},[n,g,p,K,d]),l.default.useEffect(()=>{p.current=requestAnimationFrame(()=>K())},[p,K,e]),l.default.useEffect(()=>{const e=h.current;return()=>e.clear()},[]),i.jsx("div",{ref:d,id:o,style:s,className:a,children:i.jsx(r.Provider,{value:{top:f,left:I,right:v,width:y,height:C,bottom:O,offset:E,subscribe:M,setOffset:D,unsubscribe:R},children:u})})});e.exports=a},18259(e,t,n){"use strict";var i=n(62540),o=n(63696),r=n(54254);function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=s(o);const a=({acc:e,child:t,optionsProps:n,selectedOption:i,selectedOptionEl:o,downshift:r})=>{if(!l.default.isValidElement(t))return e.elements.push(t),e;const{children:s,onClick:u}=t.props,d=l.default.Children.toArray(s),{elements:c}=d.reduce((e,t)=>a({acc:e,child:t,optionsProps:n,selectedOption:i,selectedOptionEl:o,downshift:r}),{elements:[],flattenedOptionsIndexOffset:e.flattenedOptionsIndexOffset});return e.elements.push(l.default.cloneElement(t,{...t.key?{key:t.key}:{},onClick:u||(e=>{e.stopPropagation(),e.preventDefault()}),children:c})),e};t.renderChildrenAsOptions=({children:e,handleEndOfOptionsReached:t,options:n,optionsProps:o,selectedOption:s,selectedOptionEl:u,downshift:d})=>{if(!e||"function"!=typeof e)return null;const c=e(n),h=l.default.Children.toArray(c),{elements:p}=h.reduce((e,t)=>a({acc:e,child:t,optionsProps:o,selectedOption:s,selectedOptionEl:u,downshift:d}),{elements:[],flattenedOptionsIndexOffset:0});return i.jsx(r,{onLeaveBottom:t,children:p})}},14476(e,t,n){"use strict";var i=n(62540),o=n(63696),r=n(4452),s=n(33924),l=n(46177),a=n(3583),u=n(11460),d=n(60096),c=n(24917),h=n(64884),p=n(41588),g=n(14828),f=n(23676),m=n(73591),I=n(54254),b=n(78433),v=n(80191),x=n(56455),y=n(63813),w=n(20280),C=n(81808),k=n(18259),O=n(79524);function S(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var E=S(o),D=S(r),M=S(s),R=S(l),A=S(a);const K=[c.KBD_KEYS.ARROW_DOWN,c.KBD_KEYS.ARROW_UP],P=E.default.forwardRef((e,t)=>{v(O);const{className:n,name:o,onClick:r,value:s,customOptionsFilter:l,onChange:a,validateOnChange:S,renderInput:P,label:N,inline:F,transparent:L,error:T,disabled:B,buttonClassName:H,onBlur:_,onFocus:V,onInputValueChange:j,dropDownOffset:U,onDropdownOpen:$,placeholder:z,selectedOptionWrapClassName:W,leftLabel:Y,renderButtonOption:X,renderOption:q,optionWhiteSpace:G,inProgress:J,dropDownClassName:Z,optionsWrapperMaxHeight:Q,optionWidthByContent:ee,noResultsText:te="Совпадений не найдено",children:ne,options:ie=[],withClearButton:oe,onEndOfOptionsReached:re,size:se="medium",noBorder:le,buttonWrapClassName:ae,buttonWrapActiveClassName:ue,message:de}=e,[ce,he]=E.default.useState(0),[pe,ge]=E.default.useState(""),fe=E.default.useRef(null),[me,Ie]=E.default.useState(""),be=E.default.useRef(null),ve=E.default.useRef(null),xe=E.default.createRef(),ye=E.default.useMemo(()=>(l||C.labelBasedOptionsFilter)([...w.getOptions({options:ie})],pe),[l,pe,ie]),we=E.default.useMemo(()=>{const e=w.getInternalValue({options:ie,name:o,onChange:a,value:s});return C.getSelectedOption(ye,e)},[o,a,ye,ie,s]),Ce=E.default.useCallback(e=>e?e.label:"",[]),ke=E.default.useCallback(()=>{const{isOpen:e}=fe.current||{};return!0===P&&e&&!F},[P,F]),Oe=E.default.useCallback(t=>{const n=t?w.getExternalValue(t.value,e):null;a&&a({value:n,name:o,validateOnChange:S}),P&&setTimeout(()=>{const e=fe.current?.isOpen,{current:t}=xe;!e&&t&&t.focus()})},[xe,o,a,e,P,S]),Se=E.default.useCallback(()=>{const e=C.findIndexByHightlightValue(ye,me);return{index:e,item:ye[e]}},[me,ye]),Ee=E.default.useCallback(()=>{const t=w.getOptions(e).findIndex(e=>e===we);fe.current?.setHighlightedIndex(t)},[e,we]),De=E.default.useMemo(()=>R.default(()=>Ie(""),1e3),[]),Me=E.default.useCallback((t,n)=>{if(!t.isOpen&&n.isOpen&&r){const t=w.getExternalValue(s,e);r({name:o,value:t})}return n},[o,r,e,s]),Re=E.default.useCallback(async()=>
2{if(B)return;const{isOpen:e}=fe.current||{},{current:t}=xe;fe.current?.setState({isOpen:!e}),t&&t.focus(),e||(await ge(""),Ee(),F&&setTimeout(()=>{if(ve.current&&be.current){const e=ve.current.getBoundingClientRect().top,t=be.current.getBoundingClientRect().top;he(e-t+ce)}},0),$&&$(),j&&j(""))},[ce,B,xe,Ee,F,$,j]),Ae=E.default.useCallback(({key:e})=>{if(!B){if(Ie(me+e),me){const{isOpen:e}=fe.current||{},{index:t,item:n}=Se();e&&t>=0?fe.current?.setHighlightedIndex(t):n&&Oe(n)}De()}},[B,me,De,Se,Oe]),Ke=E.default.useCallback(({key:e})=>{const{isOpen:t}=fe.current||{};if(B)return;if(!t&&K.includes(e))return void setTimeout(()=>{Ee()});const{highlightedIndex:n}=fe.current||{};if(n&&t&&e===c.KBD_KEYS.SPACE){const e=n?ye[n]:null;e&&Oe(e)}},[B,ye,Oe,Ee]),Pe=E.default.useCallback(t=>{(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i))&&(t.preventDownshiftDefault=!0);const n=w.getExternalValue(s,e);_&&_({name:o,value:n,event:t})},[o,_,e,s]),Ne=E.default.useCallback(t=>{const n=w.getExternalValue(s,e);V&&V({name:o,value:n,event:t})},[s,e,V,o]),Fe=E.default.useCallback(e=>{be.current=e},[]),Le=E.default.useCallback(e=>{e.stopPropagation(),fe.current?.clearSelection(),Oe(null),ge("")},[Oe]),Te=E.default.useCallback(async e=>{if(!("value"in e.target))return;const{value:t}=e.target;j&&j(t),await ge(t),fe.current?.setHighlightedIndex(0)},[j]),Be=E.default.useCallback(e=>{"function"==typeof P&&ge(Ce(e))},[Ce,P]),He=E.default.useCallback((e,t)=>{const{label:n,value:o,meta:r,onClick:s,onMouseDown:l,onMouseMove:a,...u}=e,d={onClick:s,onMouseDown:l,onMouseMove:a},{getItemProps:c,highlightedIndex:h}=fe.current||{},p=h===t,g=we===e,m=g?Fe:void 0,I=`${o}${n}`,b=D.default(ae,...g&&ue?[ue]:[]),v=c?c({index:t,item:e,...d}):d;return i.jsx(f,{highlighted:p,selected:g,item:e,label:n,value:o,meta:r,listIndex:t,inputValue:pe,renderOption:q,className:b,onRef:m,...v,...u},I)},[ue,ae,Fe,pe,q,we]),_e=E.default.useCallback(e=>{re&&re({...e,filterValue:pe})},[pe,re]),Ve=E.default.useCallback(()=>{if(!ye.length)return i.jsx(u,{padding:"2",children:te});if(ne&&"function"==typeof ne)return k.renderChildrenAsOptions({options:ye,optionsProps:ie,children:ne,handleEndOfOptionsReached:_e,selectedOption:we,selectedOptionEl:be.current,downshift:fe.current});const{OptionList:e}=C,{highlightedIndex:t}=fe.current||{},n=`${me}-${t||""}-${s}`;return i.jsx(I,{onLeaveBottom:_e,children:i.jsx(e,{renderOption:He,options:ye,externalKey:n,highlightedIndex:t})})},[ye,ne,me,s,_e,He,te,ie,we]),je=E.default.useCallback(()=>{const{isOpen:e}=fe.current||{},t=D.default("f-test-select-selected",O.selectButtonContent),n=D.default(O.selectedOptionWrap,W),o=we&&(!pe||!e),r=!(we||pe&&e);return i.jsxs("div",{className:t,children:[Y&&i.jsx(x,{size:"h400",variant:"disabled",className:O.leftLabel,children:Y}),o&&!!we&&i.jsx("div",{className:n,children:i.jsx(f,{offsetCollapse:!0,label:we.label,value:we.value,meta:we.meta,renderOption:X||q,whiteSpace:G})}),r&&i.jsx(x,{ellipsis:!0,size:"h400",variant:"disabled",className:O.placeholder,children:z||"Ðе вÑбÑано"})]})},[pe,Y,G,z,X,q,we,W]),Ue=E.default.useCallback(()=>{const{isOpen:e}=fe.current||{};let t=e?"keyboard_arrow_up":"keyboard_arrow_down";const n=we&&oe;let o=O.iconWrap;n&&(t="cancel_circle_fill",o+=" f-text-clear-button");const r={...n?{onClick:Le}:{},className:o,role:"button"},s=B?"lightgray":"gray";return i.jsx("div",{...r,children:i.jsx(g,{icon:t,color:s})})},[B,Le,we,oe]),$e=E.default.useCallback(()=>{const{getInputProps:e}=fe.current||{},t=D.default("f-test-select-input",`f-test-select-input-${y.transliterate(N)}`,O.inputElement),n=we?we.label:z,o=e?e({onBlur:Pe,onFocus:Ne,onChange:Te}):{};return i.jsx("input",{autoFocus:!0,...o,ref:xe,value:pe,disabled:!!B,placeholder:n,className:t})},[B,xe,Pe,Ne,Te,pe,N,z,we]),ze=E.default.useCallback(()=>{const{getInputProps:e}=fe.current||{},t=D.default("f-test-select-button",`f-test-select-button-${y.transliterate(N)}`,O.buttonElement),n=e?e({onBlur:Pe,onFocus:Ne,onKeyPress:Ae,onKeyDown:Ke}):{};return i.jsx("button",{...n,ref:xe,type:"button",className:t,disabled:!!B,children:je()})},[B,xe,Pe,Ke,Ae,Ne,N,je]),We=E.default.useCallback(()=>ke()?$e():ze(),[ze,$e,ke]),Ye=E.default.useCallback(()=>
2{if("function"!=typeof P)return null;const{getInputProps:e,getToggleButtonProps:t}=fe.current||{};if(!e||!t)return null;const{onClick:n}=t(),o=e({onBlur:Pe,onFocus:Ne,onKeyDown:Ke,onChange:Te}),{onBlur:r,onChange:s,onFocus:l,onKeyDown:a}=o,u={onBlur:r,onFocus:l,onKeyDown:a,onChange:s,value:pe};return i.jsx(d,{stretched:!0,tagName:"div",onClick:n,children:P(u)})},[Pe,Ke,Ne,Te,pe,P]),Xe=E.default.useCallback(e=>{void 0!==e&&(ve.current=e)},[]),qe=E.default.useCallback(()=>{if("function"==typeof P)return Ye();const{isOpen:e}=fe.current||{},t=ke(),n=D.default(O.selectButton,H,{[O.error]:!A.default(T),[O.disabled]:B,[O.inline]:F,[O.opened]:e,[O.closed]:!e,[O.withButton]:!t,[O.transparent]:L});return i.jsxs("div",{ref:Xe,role:"presentation",className:n,onClick:Re,children:[i.jsx("div",{className:O.focusableElementWrap,children:We()}),Ue()]})},[P,ke,H,T,B,F,L,Xe,Re,We,Ue,Ye]),Ge=E.default.useCallback(()=>A.default(T)?null:i.jsx(p,{type:"error",name:o,className:O.message,children:T}),[T,o]),Je=E.default.useCallback(()=>A.default(de)?null:i.jsx(p,{type:"secondary",name:o,className:O.message,children:de}),[o,de]),Ze=E.default.useCallback(()=>N?i.jsx(p,{withMargin:!F,name:o,className:O.label,children:N}):null,[N,o,F]),Qe=E.default.useCallback(()=>J?i.jsx(m,{position:"bottom"}):null,[J]),et=E.default.useCallback(()=>{const{isOpen:e}=fe.current||{};if(J&&!ye.length)return null;const t=F?0:10,n=D.default(O.optionsWrap,Z,O[`maxHeight_${Q||"regular"}`],{[O.default]:!Z,[O.widthByContent]:ee});return i.jsx(h,{mountOnEnter:!0,unmountOnExit:!0,in:!!e,shiftY:t,className:O.animationWrap,children:i.jsx(b,{className:n,style:{marginTop:U||ce},children:Ve()})})},[J,ye,F,Z,Q,ee,U,ce,Ve]),tt=E.default.useCallback(e=>{const{index:t,item:n}=Se();return n&&e.getItemProps({index:t,item:n}),fe.current=e,i.jsxs("div",{className:O.wrap,children:[qe(),Qe(),et()]})},[Se,et,Qe,qe]),nt=D.default(O.root,n,`f-test-select-${y.transliterate(o||N)}`,O[`size_${se}`],{[O.noBorder]:le,[O.inline]:F});return i.jsxs("div",{ref:t,className:nt,"data-field-name":o,children:[Ze(),i.jsx(M.default,{id:o,stateReducer:Me,selectedItem:we||null,itemToString:Ce,onChange:Oe,onSelect:Be,children:tt}),Ge()||Je()]})});e.exports=P},79524(e,t,n){"use strict";var i=n(18952),o={root:"pP1AL",size_small:"kG9rL",selectButton:"_2FKOf",size_medium:"GVFE7",optionsWrap:"zbRh9",maxHeight_regular:"g4UrJ",maxHeight_large:"rO-Oh",maxHeight_fitContent:"x7Uza",default:"Ovg8j",widthByContent:"q8Ok9",selectedOptionWrap:"-BKwh",wrap:"cUq0A",selectButtonContent:"vtpUG",placeholder:"UjdXu",iconWrap:"E6ePx",buttonElement:"-tJOS",inputElement:"_1zufU",focusableElementWrap:"_3aajk",closed:"ZzBH6",opened:"pd4Zz",withButton:"xK3Si",error:"n6LSY",disabled:"m9n7i",transparent:"Ot1H6",message:"oY4n3",leftLabel:"S-cKj",label:"UVCDF",inline:"Np7e9",animationWrap:"imSEA",noBorder:"VYXUO"},r='.pP1AL{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-flow:wrap;flex-flow:wrap;position:relative}.pP1AL.kG9rL ._2FKOf{min-height:32px}.pP1AL.GVFE7 ._2FKOf{min-height:40px}.zbRh9{-webkit-box-sizing:border-box;box-sizing:border-box;left:0;overflow-x:hidden;overflow-y:auto;position:absolute;top:100%;width:100%;z-index:400}.zbRh9.g4UrJ{max-height:200px!important}.zbRh9.rO-Oh{max-height:280px!important}.zbRh9.x7Uza{max-height:-webkit-fit-content!important;max-height:-moz-fit-content!important;max-height:fit-content!important}.zbRh9.Ovg8j{background-color:#fff;border-radius:12px;-webkit-box-shadow:0 3px 3px 0 rgba(4,27,38,.1),0 0 3px 0 rgba(4,27,38,.1);box-shadow:0 3px 3px 0 rgba(4,27,38,.1),0 0 3px 0 rgba(4,27,38,.1);line-height:1.5rem;padding:8px 4px 0}.zbRh9.Ovg8j:after{content:"";display:block;height:8px}.zbRh9.q8Ok9{width:auto}.-BKwh{display:inline-block;overflow:hidden}.cUq0A{position:relative;width:100%}.vtpUG{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;text-align:left}.UjdXu{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.E6ePx{cursor:pointer;padding-left:4px;padding-right:8px}.-tJOS,._1zufU{background:transparent;border:0;color:inherit;cursor:pointer;font-family:inherit;font-size:inherit;margin:0;outline:0;padding:0;width:100%}._1zufU{cursor:auto;position:static}._3aajk{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;overflow:hidden;padding-left:12px;text-overflow:ellipsis}._2FKOf{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#fff;border:1px solid #bac0c7;border-radius:12px;-webkit-box-sizing:border-box;box-sizing:border-box;
2cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;line-height:normal;overflow:hidden;position:relative;text-align:left;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}._2FKOf.ZzBH6:hover{background-color:#ebedf0;border-color:#9ca4b2}._2FKOf.pd4Zz.xK3Si{background-color:#e3e7eb;border-color:#7e8999}._2FKOf.n6LSY{border-color:#f05c5c}._2FKOf.m9n7i,._2FKOf.m9n7i:active,._2FKOf.m9n7i:hover{background-color:#ebedf0;border-color:#bac0c7}._2FKOf.Ot1H6{background-color:transparent}.oY4n3{width:100%}.S-cKj,.UVCDF{padding-right:8px}.UVCDF{width:100%}.pP1AL.Np7e9{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.pP1AL.Np7e9 .zbRh9{-webkit-box-sizing:content-box;box-sizing:content-box;left:-3px;top:-7px}.pP1AL.Np7e9 .cUq0A{-webkit-box-flex:unset;-ms-flex-positive:unset;flex-grow:unset}.pP1AL.Np7e9 .UVCDF,.pP1AL.Np7e9 .cUq0A{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;width:auto}.pP1AL.Np7e9 .UVCDF{padding-right:8px}.pP1AL.Np7e9 ._2FKOf{background:transparent;-webkit-box-shadow:none;box-shadow:none;width:auto}.pP1AL.Np7e9 ._2FKOf:hover{background:rgba(4,27,38,.05)}.pP1AL.Np7e9 ._2FKOf:active{background:rgba(4,27,38,.1)}.pP1AL.Np7e9 ._2FKOf.m9n7i,.pP1AL.Np7e9 ._2FKOf.m9n7i:active,.pP1AL.Np7e9 ._2FKOf.m9n7i:hover{background:transparent;-webkit-box-shadow:none;box-shadow:none}.imSEA{position:absolute;width:100%;z-index:400}.VYXUO ._2FKOf{border:none}';o._getCss=function(){return r},o._insertCss=function(){i([["62c4c",r]])},o._getId=function(){return"62c4c"},e.exports=o},21031(e,t,n){"use strict";var i=n(14476);e.exports=i},81808(e,t,n){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=i(n(63696));class r extends o.default.PureComponent{render(){const{options:e,renderOption:t}=this.props;return e.map(t)}}var s={labelBasedOptionsFilter:(e,t)=>t?e.filter(({label:e})=>e&&e.toLowerCase().includes(t.toLowerCase())):e,findIndexByHightlightValue:(e,t)=>{const n=t.toLowerCase();return e.findIndex(({label:e})=>e.toLowerCase().includes(n))},getSelectedOption:(e,t)=>e.find(e=>e.value===t),OptionList:r};e.exports=s},24917(e,t){"use strict";t.KBD_KEYS={ALT:"Alt",ALT_GRAPH:"AltGraph",CAPS_LOCK:"CapsLock",CONTROL:"Control",META:"Meta",SHIFT:"Shift",ENTER:"Enter",SPACE:" ",ESCAPE:"Escape",BACKSPACE:"Backspace",DELETE:"Delete",ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",TAB:"Tab"}},20280(e,t){"use strict";const n=e=>{const{nullOptionLabel:t}=e;return t};t.getExternalValue=(e,t)=>{if("string"!=typeof e&&"number"!=typeof e)return null;const i=n(t);return void 0===i?e:e===i?null:e},t.getInternalValue=e=>{const{value:t}=e,i=n(e);return void 0===i?t:t??i},t.getOptions=({nullOptionLabel:e,options:t})=>{const n=(e=>{if(void 0!==e)return{label:e,value:e}})(e);return n?[n,...t]:t}},33924(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return B},resetIdCounter:function(){return x},useCombobox:function(){return Ie},useMultipleSelection:function(){return Se},useSelect:function(){return he}});var i=n(62688),o=n.n(i),r=n(63696);n(65269);function s(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function l(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function a(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return l(n.overflowY,t)||l(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function u(e,t,n,i,o,r,s,l){return r<e&&s>t||r>e&&s<t?0:r<=e&&l<=n||s>=t&&l>=n?r-e-i:s>t&&l<n||r<e&&l>n?s-t+o:0}var d=n(34629);let c=0;function h(e){return"function"==typeof e?e:p}function p(){}function g(e,t){if(!e)return;const n=function(e,t){var n=window,i=t.scrollMode,o=t.block,r=t.inline,l=t.boundary,d=t.skipOverflowHiddenElements,c="function"==typeof l?l:function(e){return e!==l};if(!s(e))throw new TypeError("Invalid target");for(var h,p,g=document.scrollingElement||document.documentElement,f=[],m=e;s(m)&&c(m);){if((m=null==(p=(h=m).parentElement)?h.getRootNode().host||null:p)===g){f.push(m);break}null!=m&&m===document.body&&a(m)&&!a(document.documentElement)||null!=m&&a(m,d)&&f.push(m)}
2for(var I=n.visualViewport?n.visualViewport.width:innerWidth,b=n.visualViewport?n.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,x=window.scrollY||pageYOffset,y=e.getBoundingClientRect(),w=y.height,C=y.width,k=y.top,O=y.right,S=y.bottom,E=y.left,D="start"===o||"nearest"===o?k:"end"===o?S:k+w/2,M="center"===r?E+C/2:"end"===r?O:E,R=[],A=0;A<f.length;A++){var K=f[A],P=K.getBoundingClientRect(),N=P.height,F=P.width,L=P.top,T=P.right,B=P.bottom,H=P.left;if("if-needed"===i&&k>=0&&E>=0&&S<=b&&O<=I&&k>=L&&S<=B&&E>=H&&O<=T)return R;var _=getComputedStyle(K),V=parseInt(_.borderLeftWidth,10),j=parseInt(_.borderTopWidth,10),U=parseInt(_.borderRightWidth,10),$=parseInt(_.borderBottomWidth,10),z=0,W=0,Y="offsetWidth"in K?K.offsetWidth-K.clientWidth-V-U:0,X="offsetHeight"in K?K.offsetHeight-K.clientHeight-j-$:0,q="offsetWidth"in K?0===K.offsetWidth?0:F/K.offsetWidth:0,G="offsetHeight"in K?0===K.offsetHeight?0:N/K.offsetHeight:0;if(g===K)z="start"===o?D:"end"===o?D-b:"nearest"===o?u(x,x+b,b,j,$,x+D,x+D+w,w):D-b/2,W="start"===r?M:"center"===r?M-I/2:"end"===r?M-I:u(v,v+I,I,V,U,v+M,v+M+C,C),z=Math.max(0,z+x),W=Math.max(0,W+v);else{z="start"===o?D-L-j:"end"===o?D-B+$+X:"nearest"===o?u(L,B,N,j,$+X,D,D+w,w):D-(L+N/2)+X/2,W="start"===r?M-H-V:"center"===r?M-(H+F/2)+Y/2:"end"===r?M-T+U+Y:u(H,T,F,V,U+Y,M,M+C,C);var J=K.scrollLeft,Z=K.scrollTop;D+=Z-(z=Math.max(0,Math.min(Z+z/G,K.scrollHeight-N/G+X))),M+=J-(W=Math.max(0,Math.min(J+W/q,K.scrollWidth-F/q+Y)))}R.push({el:K,top:z,left:W})}return R}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach(e=>{let{el:t,top:n,left:i}=e;t.scrollTop=n,t.scrollLeft=i})}function f(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function m(e,t){let n;function i(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];i(),n=setTimeout(()=>{n=null,e(...r)},t)}return o.cancel=i,o}function I(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return t.some(t=>(t&&t(e,...i),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault))}}function b(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach(t=>{"function"==typeof t?t(e):t&&(t.current=e)})}}function v(){return String(c++)}function x(){c=0}function y(e){let{isOpen:t,resultCount:n,previousResultCount:i}=e;return t?n?n!==i?`${n} result${1===n?" is":"s are"} available, use up and down arrow keys to navigate. Press Enter key to select.`:"":"No results are available.":""}function w(e,t){return!(e=Array.isArray(e)?e[0]:e)&&t?t:e}function C(e){return"string"==typeof e.type}function k(e){return e.props}const O=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function S(e){void 0===e&&(e={});const t={};return O.forEach(n=>{e.hasOwnProperty(n)&&(t[n]=e[n])}),t}function E(e,t){return Object.keys(e).reduce((n,i)=>(n[i]=D(t,i)?t[i]:e[i],n),{})}function D(e,t){return void 0!==e[t]}function M(e){const{key:t,keyCode:n}=e;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?`Arrow${t}`:t}function R(e,t,n,i,o){if(void 0===o&&(o=!0),0===n)return-1;const r=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:r+1);let s=t+e;s<0?s=o?r:0:s>r&&(s=o?0:r);const l=A(e,s,n,i,o);return-1===l?t>=n?-1:t:l}function A(e,t,n,i,o){const r=i(t);if(!r||!r.hasAttribute("disabled"))return t;if(e>0){for(let e=t+1;e<n;e++)if(!i(e).hasAttribute("disabled"))return e}else for(let e=t-1;e>=0;e--)if(!i(e).hasAttribute("disabled"))return e;return o?e>0?A(1,0,n,i,!1):A(-1,n-1,n,i,!1):-1}function K(e,t,n,i){return void 0===i&&(i=!0),t.some(t=>t&&(f(t,e,n)||i&&f(t,n.document.activeElement,n)))}const P=m(e=>{F(e).textContent=""},500);function N(e,t){const n=F(t);e&&(n.textContent=e,P(t))}function F(e){void 0===e&&(e=document);let t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}
2var L=Object.freeze({__proto__:null,unknown:0,mouseUp:1,itemMouseEnter:2,keyDownArrowUp:3,keyDownArrowDown:4,keyDownEscape:5,keyDownEnter:6,keyDownHome:7,keyDownEnd:8,clickItem:9,blurInput:10,changeInput:11,keyDownSpaceButton:12,clickButton:13,blurButton:14,controlledPropUpdatedSelectedItem:15,touchEnd:16});const T=(()=>{class e extends r.Component{constructor(e){var t;super(e),t=this,this.id=this.props.id||`downshift-${v()}`,this.menuId=this.props.menuId||`${this.id}-menu`,this.labelId=this.props.labelId||`${this.id}-label`,this.inputId=this.props.inputId||`${this.id}-input`,this.getItemId=this.props.getItemId||(e=>`${this.id}-item-${e}`),this.input=null,this.items=[],this.itemCount=null,this.previousResultCount=0,this.timeoutIds=[],this.internalSetTimeout=(e,t)=>{const n=setTimeout(()=>{this.timeoutIds=this.timeoutIds.filter(e=>e!==n),e()},t);this.timeoutIds.push(n)},this.setItemCount=e=>{this.itemCount=e},this.unsetItemCount=()=>{this.itemCount=null},this.setHighlightedIndex=function(e,n){void 0===e&&(e=t.props.defaultHighlightedIndex),void 0===n&&(n={}),n=S(n),t.internalSetState({highlightedIndex:e,...n})},this.clearSelection=e=>{this.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:this.props.defaultHighlightedIndex,isOpen:this.props.defaultIsOpen},e)},this.selectItem=(e,t,n)=>{t=S(t),this.internalSetState({isOpen:this.props.defaultIsOpen,highlightedIndex:this.props.defaultHighlightedIndex,selectedItem:e,inputValue:this.props.itemToString(e),...t},n)},this.selectItemAtIndex=(e,t,n)=>{const i=this.items[e];null!=i&&this.selectItem(i,t,n)},this.selectHighlightedItem=(e,t)=>this.selectItemAtIndex(this.getState().highlightedIndex,e,t),this.internalSetState=(e,t)=>{let n,i;const o={},r="function"==typeof e;return!r&&e.hasOwnProperty("inputValue")&&this.props.onInputValueChange(e.inputValue,{...this.getStateAndHelpers(),...e}),this.setState(t=>{t=this.getState(t);let s=r?e(t):e;s=this.props.stateReducer(t,s),n=s.hasOwnProperty("selectedItem");const l={};return n&&s.selectedItem!==t.selectedItem&&(i=s.selectedItem),s.type=s.type||0,Object.keys(s).forEach(e=>{t[e]!==s[e]&&(o[e]=s[e]),"type"!==e&&(s[e],D(this.props,e)||(l[e]=s[e]))}),r&&s.hasOwnProperty("inputValue")&&this.props.onInputValueChange(s.inputValue,{...this.getStateAndHelpers(),...s}),l},()=>{h(t)();Object.keys(o).length>1&&this.props.onStateChange(o,this.getStateAndHelpers()),n&&this.props.onSelect(e.selectedItem,this.getStateAndHelpers()),void 0!==i&&this.props.onChange(i,this.getStateAndHelpers()),this.props.onUserAction(o,this.get
2StateAndHelpers())})},this.rootRef=e=>this._rootNode=e,this.getRootProps=function(e,n){let{refKey:i="ref",ref:o,...r}=void 0===e?{}:e,{suppressRefError:s=!1}=void 0===n?{}:n;t.getRootProps.called=!0,t.getRootProps.refKey=i,t.getRootProps.suppressRefError=s;const{isOpen:l}=t.getState();return{[i]:b(o,t.rootRef),role:"combobox","aria-expanded":l,"aria-haspopup":"listbox","aria-owns":l?t.menuId:null,"aria-labelledby":t.labelId,...r}},this.keyDownHandlers={ArrowDown(e){if(e.preventDefault(),this.getState().isOpen){const t=e.shiftKey?5:1;this.moveHighlightedIndex(t,{type:4})}else this.internalSetState({isOpen:!0,type:4},()=>{const e=this.getItemCount();if(e>0){const{highlightedIndex:t}=this.getState(),n=R(1,t,e,e=>this.getItemNodeFromIndex(e));this.setHighlightedIndex(n,{type:4})}})},ArrowUp(e){if(e.preventDefault(),this.getState().isOpen){const t=e.shiftKey?-5:-1;this.moveHighlightedIndex(t,{type:3})}else this.internalSetState({isOpen:!0,type:3},()=>{const e=this.getItemCount();if(e>0){const{highlightedIndex:t}=this.getState(),n=R(-1,t,e,e=>this.getItemNodeFromIndex(e));this.setHighlightedIndex(n,{type:3})}})},Enter(e){if(229===e.which)return;const{isOpen:t,highlightedIndex:n}=this.getState();if(t&&null!=n){e.preventDefault();const t=this.items[n],i=this.getItemNodeFromIndex(n);if(null==t||i&&i.hasAttribute("disabled"))return;this.selectHighlightedItem({type:6})}},Escape(e){e.preventDefault(),this.reset({type:5,...!this.state.isOpen&&{selectedItem:null,inputValue:""}})}}
2,this.buttonKeyDownHandlers={...this.keyDownHandlers," "(e){e.preventDefault(),this.toggleMenu({type:12})}},this.inputKeyDownHandlers={...this.keyDownHandlers,Home(e){const{isOpen:t}=this.getState();if(!t)return;e.preventDefault();const n=this.getItemCount();if(n<=0||!t)return;const i=A(1,0,n,e=>this.getItemNodeFromIndex(e),!1);this.setHighlightedIndex(i,{type:7})},End(e){const{isOpen:t}=this.getState();if(!t)return;e.preventDefault();const n=this.getItemCount();if(n<=0||!t)return;const i=A(-1,n-1,n,e=>this.getItemNodeFromIndex(e),!1);this.setHighlightedIndex(i,{type:8})}},this.getToggleButtonProps=function(e){let{onClick:n,onPress:i,onKeyDown:o,onKeyUp:r,onBlur:s,...l}=void 0===e?{}:e;const{isOpen:a}=t.getState(),u={onClick:I(n,t.buttonHandleClick),onKeyDown:I(o,t.buttonHandleKeyDown),onKeyUp:I(r,t.buttonHandleKeyUp),onBlur:I(s,t.buttonHandleBlur)};return{type:"button",role:"button","aria-label":a?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0,...l.disabled?{}:u,...l}},this.buttonHandleKeyUp=e=>{e.preventDefault()},this.buttonHandleKeyDown=e=>{const t=M(e);
2this.buttonKeyDownHandlers[t]&&this.buttonKeyDownHandlers[t].call(this,e)},this.buttonHandleClick=e=>{e.preventDefault(),this.props.environment.document.activeElement===this.props.environment.document.body&&e.target.focus(),this.internalSetTimeout(()=>this.toggleMenu({type:13}))},this.buttonHandleBlur=e=>{const t=e.target;this.internalSetTimeout(()=>{this.isMouseDown||null!=this.props.environment.document.activeElement&&this.props.environment.document.activeElement.id===this.inputId||this.props.environment.document.activeElement===t||this.reset({type:14})})},this.getLabelProps=e=>({htmlFor:this.inputId,id:this.labelId,...e}),this.getInputProps=function(e){let n,{onKeyDown:i,onBlur:o,onChange:r,onInput:s,onChangeText:l,...a}=void 0===e?{}:e,u={};n="onChange";const{inputValue:d,isOpen:c,highlightedIndex:h}=t.getState();return a.disabled||(u={[n]:I(r,s,t.inputHandleChange),onKeyDown:I(i,t.inputHandleKeyDown),onBlur:I(o,t.inputHandleBlur)}),{"aria-autocomplete":"list","aria-activedescendant":c&&"number"==typeof h&&h>=0?t.getItemId(h):null,"aria-controls":c?t.menuId:null,"aria-labelledby":t.labelId,autoComplete:"off",value:d,id:t.inputId,...u,...a}},this.inputHandleKeyDown=e=>{const t=M(e);t&&this.inputKeyDownHandlers[t]&&this.inputKeyDownHandlers[t].call(this,e)},this.inputHandleChange=e=>{this.internalSetState({type:11,isOpen:!0,inputValue:e.target.value,highlightedIndex:this.props.defaultHighlightedIndex})},this.inputHandleBlur=()=>{this.internalSetTimeout(()=>{const e=this.props.environment.document&&!!this.props.environment.document.activeElement&&!!this.props.environment.document.activeElement.dataset&&this.props.environment.document.activeElement.dataset.toggle&&this._rootNode&&this._rootNode.contains(this.props.environment.document.activeElement);this.isMouseDown||e||this.reset({type:10})})},this.menuRef=e=>{this._menuNode=e},this.getMenuProps=function(e,n){let{refKey:i="ref",ref:o,...r}=void 0===e?{}:e,{suppressRefError:s=!1}=void 0===n?{}:n;return t.getMenuProps.called=!0,t.getMenuProps.refKey=i,t.getMenuProps.suppressRefError=s,{[i]:b(o,t.menuRef),role:"listbox","aria-labelledby":r&&r["aria-label"]?null:t.labelId,id:t.menuId,...r}},this.getItemProps=function(e){let{onMouseMove:n,onMouseDown:i,onClick:o,onPress:r,index:s,item:l,...a}=void 0===e?{}:e;void 0===s?(t.items.push(l),s=t.items.indexOf(l)):t.items[s]=l;const u="onClick",d=o,c={onMouseMove:I(n,()=>{s!==t.getState().highlightedIndex&&(t.setHighlightedIndex(s,{type:2}),t.avoidScrolling=!0,t.internalSetTimeout(()=>t.avoidScrolling=!1,250))}),onMouseDown:I(i,e=>{e.preventDefault()}),[u]:I(d,()=>{t.selectItemAtIndex(s,{type:9})})},h=a.disabled?{onMouseDown:c.onMouseDown}:c;return{id:t.getItemId(s),role:"option","aria-selected":t.getState().highlightedIndex===s,...h,...a}},this.clearItems=()=>{this.items=[]},this.reset=function(e,n){void 0===e&&(e={}),e=S(e),t.internalSetState(n=>{let{selectedItem:i}=n;return{isOpen:t.props.defaultIsOpen,highlightedIndex:t.props.defaultHighlightedIndex,inputValue:t.props.itemToString(i),...e}},n)},this.toggleMenu=function(e,n){void 0===e&&(e={}),e=S(e),t.internalSetState(n=>{let{isOpen:i}=n;return{isOpen:!i,...i&&{highlightedIndex:t.props.defaultHighlightedIndex},...e}},()=>{const{isOpen:i,highlightedIndex:o}=t.getState();i&&t.getItemCount()>0&&"number"==typeof o&&t.setHighlightedIndex(o,e),h(n)()})},this.openMenu=e=>{this.internalSetState({isOpen:!0},e)},this.closeMenu=e=>{this.internalSetState({isOpen:!1},e)},this.updateStatus=m(()=>{const e=this.getState(),t=this.items[e.highlightedIndex],n=this.getItemCount(),i=this.props.getA11yStatusMessage({itemToString:this.props.itemToString,previousResultCount:this.previousResultCount,resultCount:n,highlightedItem:t,...e});this.previousResultCount=n,N(i,this.props.environment.document)},200);const{defaultHighlightedIndex:n,initialHighlightedIndex:i=n,defaultIsOpen:o,initialIsOpen:r=o,initialInputValue:s="",initialSelectedItem:l=null}=this.props,a=this.getState({highlightedIndex:i,isOpen:r,inputValue:s,selectedItem:l});null!=a.selectedItem&&void 0===this.props.initialInputValue&&(a.inputValue=this.props.itemToString(a.selectedItem)),this.state=a}
2internalClearTimeouts(){this.timeoutIds.forEach(e=>{clearTimeout(e)}),this.timeoutIds=[]}getState(e){return void 0===e&&(e=this.state),E(e,this.props)}getItemCount(){let e=this.items.length;return null!=this.itemCount?e=this.itemCount:void 0!==this.props.itemCount&&(e=this.props.itemCount),e}getItemNodeFromIndex(e){return this.props.environment.document.getElementById(this.getItemId(e))}scrollHighlightedItemIntoView(){{const e=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(e,this._menuNode)}}moveHighlightedIndex(e,t){const n=this.getItemCount(),{highlightedIndex:i}=this.getState();if(n>0){const o=R(e,i,n,e=>this.getItemNodeFromIndex(e));this.setHighlightedIndex(o,t)}}getStateAndHelpers(){const{highlightedIndex:e,inputValue:t,selectedItem:n,isOpen:i}=this.getState(),{itemToString:o}=this.props,{id:r}=this,{getRootProps:s,getToggleButtonProps:l,getLabelProps:a,getMenuProps:u,getInputProps:d,getItemProps:c,openMenu:h,closeMenu:p,toggleMenu:g,selectItem:f,selectItemAtIndex:m,selectHighlightedItem:I,setHighlightedIndex:b,clearSelection:v,clearItems:x,reset:y,setItemCount:w,unsetItemCount:C,internalSetState:k}=this;return{getRootProps:s,getToggleButtonProps:l,getLabelProps:a,getMenuProps:u,getInputProps:d,getItemProps:c,reset:y,openMenu:h,closeMenu:p,toggleMenu:g,selectItem:f,selectItemAtIndex:m,selectHighlightedItem:I,setHighlightedIndex:b,clearSelection:v,clearItems:x,setItemCount:w,unsetItemCount:C,setState:k,itemToString:o,id:r,highlightedIndex:e,inputValue:t,isOpen:i,selectedItem:n}}componentDidMount(){{const e=()=>{this.isMouseDown=!0},t=e=>{this.isMouseDown=!1;!K(e.target,[this._rootNode,this._menuNode],this.props.environment)&&this.getState().isOpen&&this.reset({type:1},()=>this.props.onOuterClick(this.getStateAndHelpers()))},n=()=>{this.isTouchMove=!1},i=()=>{this.isTouchMove=!0},o=e=>{const t=K(e.target,[this._rootNode,this._menuNode],this.props.environment,!1);this.isTouchMove||t||!this.getState().isOpen||this.reset({type:16},()=>this.props.onOuterClick(this.getStateAndHelpers()))},{environment:r}=this.props;r.addEventListener("mousedown",e),r.addEventListener("mouseup",t),r.addEventListener("touchstart",n),r.addEventListener("touchmove",i),r.addEventListener("touchend",o),this.cleanup=()=>{this.internalClearTimeouts(),this.updateStatus.cancel(),r.removeEventListener("mousedown",e),r.removeEventListener("mouseup",t),r.removeEventListener("touchstart",n),r.removeEventListener("touchmove",i),r.removeEventListener("touchend",o)}}}shouldScroll(e,t){const{highlightedIndex:n}=void 0===this.props.highlightedIndex?this.getState():this.props,{highlightedIndex:i}=void 0===t.highlightedIndex?e:t;return n&&this.getState().isOpen&&!e.isOpen||n!==i}componentDidUpdate(e,t){D(this.props,"selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:15,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(t,e)&&this.scrollHighlightedItemIntoView(),this.updateStatus()}componentWillUnmount(){this.cleanup()}render(){const e=w(this.props.children,p);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;const t=w(e(this.getStateAndHelpers()));return t?this.getRootProps.called||this.props.suppressRefError?t:C(t)?(0,r.cloneElement)(t,this.getRootProps(k(t))):void 0:null}}return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:y,itemToString:e=>null==e?"":String(e),onStateChange:p,onInputValueChange:p,onUserAction:p,onChange:p,onSelect:p,onOuterClick:p,selectedItemChanged:(e,t)=>e!==t,environment:"undefined"==typeof window?{}:window,stateReducer:(e,t)=>t,suppressRefError:!1,scrollIntoView:g},e.stateChangeTypes=L,e})();var B=T;const H={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function _(e,t,n){const{props:i,type:o}=e,r={};Object.keys(t).forEach(i=>
2{!function(e,t,n,i){const{props:o,type:r}=t,s=`on${W(e)}Change`;o[s]&&void 0!==i[e]&&i[e]!==n[e]&&o[s]({type:r,...i})}(i,e,t,n),n[i]!==t[i]&&(r[i]=n[i])}),i.onStateChange&&Object.keys(r).length&&i.onStateChange({type:o,...r})}const V=m((e,t)=>{N(e(),t)},200),j="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;function U(e){let{id:t=`downshift-${v()}`,labelId:n,menuId:i,getItemId:o,toggleButtonId:s,inputId:l}=e;return(0,r.useRef)({labelId:n||`${t}-label`,menuId:i||`${t}-menu`,getItemId:o||(e=>`${t}-item-${e}`),toggleButtonId:s||`${t}-toggle-button`,inputId:l||`${t}-input`}).current}function $(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function z(e){return/^\S{1}$/.test(e)}function W(e){return`${e.slice(0,1).toUpperCase()}${e.slice(1)}`}function Y(e){const t=(0,r.useRef)(e);return t.current=e,t}function X(e,t,n){const i=(0,r.useRef)(),o=(0,r.useRef)(),s=(0,r.useCallback)((t,n)=>{o.current=n,t=E(t,n.props);const i=e(t,n);return n.props.stateReducer(t,{...n,changes:i})},[e]),[l,a]=(0,r.useReducer)(s,t),u=Y(n),d=(0,r.useCallback)(e=>a({props:u.current,...e}),[u]),c=o.current;return(0,r.useEffect)(()=>{c&&i.current&&i.current!==l&&_(c,E(i.current,c.props),l),i.current=l},[l,n,c]),[l,d]}function q(e,t,n){const[i,o]=X(e,t,n);return[E(i,n),o]}const G={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){const{selectedItem:t,itemToString:n}=e;return t?`${n(t)} has been selected.`:""},scrollIntoView:g,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function J(e,t,n){void 0===n&&(n=H);const i=e[`default${W(t)}`];return void 0!==i?i:n[t]}function Z(e,t,n){void 0===n&&(n=H);const i=e[t];if(void 0!==i)return i;const o=e[`initial${W(t)}`];return void 0!==o?o:J(e,t,n)}function Q(e){const t=Z(e,"selectedItem"),n=Z(e,"isOpen"),i=Z(e,"highlightedIndex"),o=Z(e,"inputValue");return{highlightedIndex:i<0&&t&&n?e.items.indexOf(t):i,isOpen:n,selectedItem:t,inputValue:o}}function ee(e,t,n,i){const{items:o,initialHighlightedIndex:r,defaultHighlightedIndex:s}=e,{selectedItem:l,highlightedIndex:a}=t;return 0===o.length?-1:void 0!==r&&a===r?r:void 0!==s?s:l?0===n?o.indexOf(l):R(n,o.indexOf(l),o.length,i,!1):0===n?-1:n<0?o.length-1:0}function te(e,t,n,i){const o=(0,r.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,r.useEffect)(()=>{const r=()=>{o.current.isMouseDown=!0},s=r=>{o.current.isMouseDown=!1,e&&!K(r.target,t.map(e=>e.current),n)&&i()},l=()=>{o.current.isTouchMove=!1},a=()=>{o.current.isTouchMove=!0},u=r=>{!e||o.current.isTouchMove||K(r.target,t.map(e=>e.current),n,!1)||i()};return n.addEventListener("mousedown",r),n.addEventListener("mouseup",s),n.addEventListener("touchstart",l),n.addEventListener("touchmove",a),n.addEventListener("touchend",u),function(){n.removeEventListener("mousedown",r),n.removeEventListener("mouseup",s),n.removeEventListener("touchstart",l),n.removeEventListener("touchmove",a),n.removeEventListener("touchend",u)}},[e,n]),o}let ne=()=>p;function ie(e,t,n){let{isInitialMount:i,highlightedIndex:o,items:s,environment:l,...a}=n;(0,r.useEffect)(()=>{i||V(()=>e({highlightedIndex:o,highlightedItem:s[o],resultCount:s.length,...a}),l.document)},t)}function oe(e){let{highlightedIndex:t,isOpen:n,itemRefs:i,getItemNodeFromIndex:o,menuElement:s,scrollIntoView:l}=e;const a=(0,r.useRef)(!0);return j(()=>{t<0||!n||!Object.keys(i.current).length||(!1===a.current?a.current=!0:l(o(t),s))},[t]),a}let re=p;function se(e,t,n){const{type:i,props:o}=t;let r;switch(i){case n.ItemMouseMove:r={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:r={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:ee(o,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:ee(o,e,0)};break;case n.FunctionCloseMenu:r={isOpen:!1};break;case n.FunctionSetHighlightedIndex:r={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:r={inputValue:t.inputValue};break;case n.FunctionReset:r={highlightedIndex:J(o,"highlightedIndex"),isOpen:J(o,"isOpen"),selectedItem:J(o,"selectedItem"),inputValue:J(o,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return{...e,...r}}function le(e){for(var t=e.keysSoFar,n=e.highlightedIndex,i=e.items,o=e.itemToString,r=e.getItemNodeFromIndex,s=t.toLowerCase(),l=0;l<i.length;l++){var a=(l+n+1)%i.length,u=i[a];if(void 0!==u&&o(u).toLowerCase().startsWith(s)){var d=r(a);if(!(null==d?void 0:d.hasAttribute("disabled")))return a}}return n}o().array.isRequired,o().func,o().func,o().func,o().bool,o().number,o().number,o().number,o().bool,o().bool,o().bool,o().any,o().any,o().any,o().string,o().string,o().string,o().func,o().string,o().func,o().func,o().func,o().func,o().func,o().shape({addEventListener:o().func,removeEventListener:o().func,document:o().shape({getElementById:o().func,activeElement:o().any,body:o().any})});var ae=(0,d.Cl)((0,d.Cl)({}
2,G),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,i=e.previousResultCount;return t?n?n!==i?"".concat(n," result").concat(1===n?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}}),ue=p;var de=Object.freeze({__proto__:null,MenuKeyDownArrowDown:0,MenuKeyDownArrowUp:1,MenuKeyDownEscape:2,MenuKeyDownHome:3,MenuKeyDownEnd:4,MenuKeyDownEnter:5,MenuKeyDownSpaceButton:6,MenuKeyDownCharacter:7,MenuBlur:8,MenuMouseLeave:9,ItemMouseMove:10,ItemClick:11,ToggleButtonClick:12,ToggleButtonKeyDownArrowDown:13,ToggleButtonKeyDownArrowUp:14,ToggleButtonKeyDownCharacter:15,FunctionToggleMenu:16,FunctionOpenMenu:17,FunctionCloseMenu:18,FunctionSetHighlightedIndex:19,FunctionSelectItem:20,FunctionSetInputValue:21,FunctionReset:22});function ce(e,t){const{type:n,props:i,shiftKey:o}=t;let r;switch(n){case 11:r={isOpen:J(i,"isOpen"),highlightedIndex:J(i,"highlightedIndex"),selectedItem:i.items[t.index]};break;case 15:{const n=t.key,o=`${e.inputValue}${n}`,s=le({keysSoFar:o,highlightedIndex:e.selectedItem?i.items.indexOf(e.selectedItem):-1,items:i.items,itemToString:i.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});r={inputValue:o,...s>=0&&{selectedItem:i.items[s]}}}break;case 13:r={highlightedIndex:ee(i,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case 14:r={highlightedIndex:ee(i,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case 5:case 6:r={isOpen:J(i,"isOpen"),highlightedIndex:J(i,"highlightedIndex"),...e.highlightedIndex>=0&&{selectedItem:i.items[e.highlightedIndex]}};break;case 3:r={highlightedIndex:A(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case 4:r={highlightedIndex:A(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case 2:case 8:r={isOpen:!1,highlightedIndex:-1};break;case 7:{const n=t.key,o=`${e.inputValue}${n}`,s=le({keysSoFar:o,highlightedIndex:e.highlightedIndex,items:i.items,itemToString:i.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});r={inputValue:o,...s>=0&&{highlightedIndex:s}}}break;case 0:r={highlightedIndex:R(o?5:1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case 1:r={highlightedIndex:R(o?-5:-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case 20:r={selectedItem:t.selectedItem};break;default:return se(e,t,de)}return{...e,...r}}function he(e){void 0===e&&(e={}),ue(e,he);const t={...ae,...e},{items:n,scrollIntoView:i,environment:o,initialIsOpen:s,defaultIsOpen:l,itemToString:a,getA11ySelectionMessage:u,getA11yStatusMessage:d}=t,c=Q(t),[h,p]=q(ce,c,t),{isOpen:g,highlightedIndex:f,selectedItem:v,inputValue:x}=h,y=(0,r.useRef)(null),w=(0,r.useRef)(null),C=(0,r.useRef)({}
2),k=(0,r.useRef)(!0),O=(0,r.useRef)(null),S=U(t),E=(0,r.useRef)(),D=(0,r.useRef)(!0),R=Y({state:h,props:t}),A=(0,r.useCallback)(e=>C.current[S.getItemId(e)],[S]);ie(d,[g,f,x,n],{isInitialMount:D.current,previousResultCount:E.current,items:n,environment:o,itemToString:a,...h}),ie(u,[v],{isInitialMount:D.current,previousResultCount:E.current,items:n,environment:o,itemToString:a,...h});const K=oe({menuElement:w.current,highlightedIndex:f,isOpen:g,itemRefs:C,scrollIntoView:i,getItemNodeFromIndex:A});(0,r.useEffect)(()=>(O.current=m(e=>{e({type:21,inputValue:""})},500),()=>{O.current.cancel()}),[]),(0,r.useEffect)(()=>{x&&O.current(p)},[p,x]),re({isInitialMount:D.current,props:t,state:h}),(0,r.useEffect)(()=>{D.current?(s||l||g)&&w.current&&w.current.focus():g?w.current&&w.current.focus():o.document.activeElement===w.current&&y.current&&(k.current=!1,y.current.focus())},[g]),(0,r.useEffect)(()=>{D.current||(E.current=n.length)});const P=te(g,[w,y],o,()=>{p({type:8})}),N=ne();(0,r.useEffect)(()=>{D.current=!1},[]),(0,r.useEffect)(()=>{g||(C.current={})},[g]);const F=(0,r.useMemo)(()=>({ArrowDown(e){e.preventDefault(),p({type:13,getItemNodeFromIndex:A,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),p({type:14,getItemNodeFromIndex:A,shiftKey:e.shiftKey})}}),[p,A]),L=(0,r.useMemo)(()=>({ArrowDown(e){e.preventDefault(),p({type:0,getItemNodeFromIndex:A,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),p({type:1,getItemNodeFromIndex:A,shiftKey:e.shiftKey})},Home(e){e.preventDefault(),p({type:3,getItemNodeFromIndex:A})},End(e){e.preventDefault(),p({type:4,getItemNodeFromIndex:A})},Escape(){p({type:2})},Enter(e){e.preventDefault(),p({type:5})}," "(e){e.preventDefault(),p({type:6})}}),[p,A]),T=(0,r.useCallback)(()=>{p({type:16})}
2,[p]),B=(0,r.useCallback)(()=>{p({type:18})},[p]),H=(0,r.useCallback)(()=>{p({type:17})},[p]),_=(0,r.useCallback)(e=>{p({type:19,highlightedIndex:e})},[p]),V=(0,r.useCallback)(e=>{p({type:20,selectedItem:e})},[p]),j=(0,r.useCallback)(()=>{p({type:22})},[p]),W=(0,r.useCallback)(e=>{p({type:21,inputValue:e})},[p]),X=(0,r.useCallback)(e=>({id:S.labelId,htmlFor:S.toggleButtonId,...e}),[S]),G=(0,r.useCallback)(function(e,t){let{onMouseLeave:n,refKey:i="ref",onKeyDown:o,onBlur:r,ref:s,...l}=void 0===e?{}:e,{suppressRefError:a=!1}=void 0===t?{}:t;const u=R.current.state;return N("getMenuProps",a,i,w),{[i]:b(s,e=>{w.current=e}),id:S.menuId,role:"listbox","aria-labelledby":S.labelId,tabIndex:-1,...u.isOpen&&u.highlightedIndex>-1&&{"aria-activedescendant":S.getItemId(u.highlightedIndex)},onMouseLeave:I(n,()=>{p({type:9})}),onKeyDown:I(o,e=>{const t=M(e);t&&L[t]?L[t](e):z(t)&&p({type:7,key:t,getItemNodeFromIndex:A})}),onBlur:I(r,()=>{if(!1===k.current)return void(k.current=!0);!P.current.isMouseDown&&p({type:8})}),...l}},[p,R,L,P,N,S,A]);return{getToggleButtonProps:(0,r.useCallback)(function(e,t){let{onClick:n,onKeyDown:i,refKey:o="ref",ref:r,...s}=void 0===e?{}:e,{suppressRefError:l=!1}=void 0===t?{}:t;const a=()=>{p({type:12})},u=e=>{const t=M(e);t&&F[t]?F[t](e):z(t)&&p({type:15,key:t,getItemNodeFromIndex:A})},d={[o]:b(r,e=>{y.current=e}),id:S.toggleButtonId,"aria-haspopup":"listbox","aria-expanded":R.current.state.isOpen,"aria-labelledby":`${S.labelId} ${S.toggleButtonId}`,...s};return s.disabled||(d.onClick=I(n,a),d.onKeyDown=I(i,u)),N("getToggleButtonProps",l,o,y),d},[p,R,F,N,S,A]),getLabelProps:X,getMenuProps:G,getItemProps:(0,r.useCallback)(function(e){let{item:t,index:n,onMouseMove:i,onClick:o,refKey:r="ref",ref:s,disabled:l,...a}=void 0===e?{}:e;const{state:u,props:d}=R.current,c=()=>{p({type:11,index:n})},h=$(n,t,d.items);if(h<0)throw new Error("Pass either item or item index in getItemProps!");const g={disabled:l,role:"option","aria-selected":`${h===u.highlightedIndex}`,id:S.getItemId(h),[r]:b(s,e=>{e&&(C.current[S.getItemId(h)]=e)}),...a};return l||(g.onClick=I(o,c)),g.onMouseMove=I(i,()=>{n!==u.highlightedIndex&&(K.current=!1,p({type:10,index:n,disabled:l}))}),g},[p,R,K,S]),toggleMenu:T,openMenu:H,closeMenu:B,setHighlightedIndex:_,selectItem:V,reset:j,setInputValue:W,highlightedIndex:f,isOpen:g,selectedItem:v,inputValue:x}}he.stateChangeTypes=de;var pe=Object.freeze({__proto__:null,InputKeyDownArrowDown:0,InputKeyDownArrowUp:1,InputKeyDownEscape:2,InputKeyDownHome:3,InputKeyDownEnd:4,InputKeyDownEnter:5,InputChange:6,InputBlur:7,MenuMouseLeave:8,ItemMouseMove:9,ItemClick:10,ToggleButtonClick:11,FunctionToggleMenu:12,FunctionOpenMenu:13,FunctionCloseMenu:14,FunctionSetHighlightedIndex:15,FunctionSelectItem:16,FunctionSetInputValue:17,FunctionReset:18,ControlledPropUpdatedSelectedItem:19});o().array.isRequired,o().func,o().func,o().func,o().bool,o().number,o().number,o().number,o().bool,o().bool,o().bool,o().any,o().any,o().any,o().string,o().string,o().string,o().string,o().string,o().string,o().func,o().string,o().string,o().func,o().func,o().func,o().func,o().func,o().func,o().shape({addEventListener:o().func,removeEventListener:o().func,document:o().shape({getElementById:o().func,activeElement:o().any,body:o().any})});let ge=p;const fe={...G,getA11yStatusMessage:y,circularNavigation:!0};function me(e,t){const{type:n,props:i,shiftKey:o}=t;let r;switch(n){case 10:r={isOpen:J(i,"isOpen"),highlightedIndex:J(i,"highlightedIndex"),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case 0:r=e.isOpen?{highlightedIndex:R(o?5:1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)}:{highlightedIndex:ee(i,e,1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case 1:r=e.isOpen?{highlightedIndex:R(o?-5:-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)}:{highlightedIndex:ee(i,e,-1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case 5:r={...e.isOpen&&e.highlightedIndex>=0&&{selectedItem:i.items[e.highlightedIndex],isOpen:J(i,"isOpen"),highlightedIndex:J(i,"highlightedIndex"),inputValue:i.itemToString(i.items[e.highlightedIndex])}};break;case 2:r={isOpen:!1,highlightedIndex:-1,...!e.isOpen&&{selectedItem:null,inputValue:""}};break;case 3:r={highlightedIndex:A(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case 4:r={highlightedIndex:A(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case 7:r={isOpen:!1,highlightedIndex:-1,...e.highlightedIndex>=0&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])}};break;case 6:r={isOpen:!0,highlightedIndex:J(i,"highlightedIndex"),inputValue:t.inputValue};break;case 16:r={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case 19:r={inputValue:t.inputValue};break;default:return se(e,t,pe)}return{...e,...r}}function Ie(e){void 0===e&&(e={}),ge(e,Ie);const t={...fe,...e},{initialIsOpen:n,defaultIsOpen:i,items:o,scrollIntoView:s,environment:l,getA11yStatus
2Message:a,getA11ySelectionMessage:u,itemToString:d}=t,c=function(e){const t=Q(e),{selectedItem:n}=t;let{inputValue:i}=t;return""===i&&n&&void 0===e.defaultInputValue&&void 0===e.initialInputValue&&void 0===e.inputValue&&(i=e.itemToString(n)),{...t,inputValue:i}}(t),[h,p]=function(e,t,n){const i=(0,r.useRef)(),[o,s]=X(e,t,n);return(0,r.useEffect)(()=>{D(n,"selectedItem")&&(i.current!==n.selectedItem&&s({type:19,inputValue:n.itemToString(n.selectedItem)}),i.current=o.selectedItem===i.current?n.selectedItem:o.selectedItem)}),[E(o,n),s]}(me,c,t),{isOpen:g,highlightedIndex:f,selectedItem:m,inputValue:v}=h,x=(0,r.useRef)(null),y=(0,r.useRef)({}),w=(0,r.useRef)(null),C=(0,r.useRef)(null),k=(0,r.useRef)(null),O=(0,r.useRef)(!0),S=U(t),R=(0,r.useRef)(),A=Y({state:h,props:t}),K=(0,r.useCallback)(e=>y.current[S.getItemId(e)],[S]);ie(a,[g,f,v,o],{isInitialMount:O.current,previousResultCount:R.current,items:o,environment:l,itemToString:d,...h}),ie(u,[m],{isInitialMount:O.current,previousResultCount:R.current,items:o,environment:l,itemToString:d,...h});const P=oe({menuElement:x.current,highlightedIndex:f,isOpen:g,itemRefs:y,scrollIntoView:s,getItemNodeFromIndex:K});re({isInitialMount:O.current,props:t,state:h}),(0,r.useEffect)(()=>{(n||i||g)&&w.current&&w.current.focus()},[]),(0,r.useEffect)(()=>{O.current||(R.current=o.length)});const N=te(g,[k,x,C],l,()=>{p({type:7,selectItem:!1})}),F=ne();(0,r.useEffect)(()=>{O.current=!1},[]),(0,r.useEffect)(()=>{g||(y.current={})},[g]);const L=(0,r.useMemo)(()=>({ArrowDown(e){e.preventDefault(),p({type:0,shiftKey:e.shiftKey,getItemNodeFromIndex:K})},ArrowUp(e){e.preventDefault(),p({type:1,shiftKey:e.shiftKey,getItemNodeFromIndex:K})},Home(e){A.current.state.isOpen&&(e.preventDefault(),p({type:3,getItemNodeFromIndex:K}))},End(e){A.current.state.isOpen&&(e.preventDefault(),p({type:4,getItemNodeFromIndex:K}))},Escape(e){const t=A.current.state;(t.isOpen||t.inputValue||t.selectedItem||t.highlightedIndex>-1)&&(e.preventDefault(),p({type:2}))},Enter(e){const t=A.current.state;!t.isOpen||t.highlightedIndex<0||229===e.which||(e.preventDefault(),p({type:5,getItemNodeFromIndex:K}))}}),[p,A,K]),T=(0,r.useCallback)(e=>({id:S.labelId,htmlFor:S.inputId,...e}),[S]),B=(0,r.useCallback)(function(e,t){let{onMouseLeave:n,refKey:i="ref",ref:o,...r}=void 0===e?{}:e,{suppressRefError:s=!1}=void 0===t?{}:t;return F("getMenuProps",s,i,x),{[i]:b(o,e=>{x.current=e}),id:S.menuId,role:"listbox","aria-labelledby":S.labelId,onMouseLeave:I(n,()=>{p({type:8})}),...r}},[p,F,S]),H=(0,r.useCallback)(function(e){let{item:t,index:n,refKey:i="ref",ref:o,onMouseMove:r,onMouseDown:s,onClick:l,onPress:a,disabled:u,...d}=void 0===e?{}:e;const{props:c,state:h}=A.current,g=$(n,t,c.items);if(g<0)throw new Error("Pass either item or item index in getItemProps!");const f="onClick",m=l;return{[i]:b(o,e=>{e&&(y.current[S.getItemId(g)]=e)}),disabled:u,role:"option","aria-selected":`${g===h.highlightedIndex}`,id:S.getItemId(g),...!u&&{[f]:I(m,()=>{p({type:10,index:n})})},onMouseMove:I(r,()=>{n!==h.highlightedIndex&&(P.current=!1,p({type:9,index:n,disabled:u}))}),onMouseDown:I(s,e=>e.preventDefault()),...d}},[p,A,P,S]),_=(0,r.useCallback)(function(e){let{onClick:t,onPress:n,refKey:i="ref",ref:o,...r}=void 0===e?{}:e;return{[i]:b(o,e=>{C.current=e}),id:S.toggleButtonId,tabIndex:-1,...!r.disabled&&{onClick:I(t,()=>{p({type:11}),!A.current.state.isOpen&&w.current&&w.current.focus()})},...r}},[p,A,S]),V=(0,r.useCallback)(function(e,t){let{onKeyDown:n,onChange:i,onInput:o,onBlur:r,onChangeText:s,refKey:l="ref",ref:a,...u}=void 0===e?{}:e,{suppressRefError:d=!1}=void 0===t?{}:t;F("getInputProps",d,l,w);const c=A.current.state,h=e=>{const t=M(e);t&&L[t]&&L[t](e)},g=e=>{p({type:6,inputValue:e.target.value})},f=()=>{c.isOpen&&!N.current.isMouseDown&&p({type:7,selectItem:!0})},m="onChange";let v={};return u.disabled||(v={[m]:I(i,o,g),onKeyDown:I(n,h),onBlur:I(r,f)}),{[l]:b(a,e=>{w.current=e}),id:S.inputId,"aria-autocomplete":"list","aria-controls":S.menuId,...c.isOpen&&c.highlightedIndex>-1&&{"aria-activedescendant":S.getItemId(c.highlightedIndex)},"aria-labelledby":S.labelId,autoComplete:"off",value:c.inputValue,...v,...u}},[p,L,A,N,F,S]),j=(0,r.useCallback)(function(e,t){let{refKey:n="ref",ref:i,...o}=void 0===e?{}:e,{suppressRefError:r=!1}=void 0===t?{}:t;return F("getComboboxProps",r,n,k),{[n]:b(i,e=>{k.current=e}),role:"combobox","aria-haspopup":"listbox","aria-owns":S.menuId,"aria-expanded":A.current.state.isOpen,...o}},[A,F,S]),z=(0,r.useCallback)(()=>{p({type:12})},[p]),W=(0,r.useCallback)(()=>{p({type:14})},[p]),q=(0,r.useCallback)(()=>{p({type:13})},[p]),G=(0,r.useCallback)(e=>{p({type:15,highlightedIndex:e})},[p]),J=(0,r.useCallback)(e=>{p({type:16,selectedItem:e})},[p]);return{getItemProps:H,getLabelProps:T,getMenuProps:B,getInputProps:V,getComboboxProps:j,getToggleButtonProps:_,toggleMenu:z,o
2penMenu:q,closeMenu:W,setHighlightedIndex:G,setInputValue:(0,r.useCallback)(e=>{p({type:17,inputValue:e})},[p]),selectItem:J,reset:(0,r.useCallback)(()=>{p({type:18})},[p]),highlightedIndex:f,isOpen:g,selectedItem:m,inputValue:v}}Ie.stateChangeTypes=pe;const be={activeIndex:-1,selectedItems:[]};function ve(e,t){return Z(e,t,be)}function xe(e,t){return J(e,t,be)}function ye(e){if(e.shiftKey||e.metaKey||e.ctrlKey||e.altKey)return!1;const t=e.target;return!(t instanceof HTMLInputElement&&""!==t.value)||0===t.selectionStart&&0===t.selectionEnd}o().array,o().array,o().array,o().func,o().func,o().func,o().number,o().number,o().number,o().func,o().func,o().string,o().string,o().shape({addEventListener:o().func,removeEventListener:o().func,document:o().shape({getElementById:o().func,activeElement:o().any,body:o().any})});const we={itemToString:G.itemToString,stateReducer:G.stateReducer,environment:G.environment,getA11yRemovalMessage:function(e){const{removedSelectedItem:t,itemToString:n}=e;return`${n(t)} has been removed.`},keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"};let Ce=p;var ke=Object.freeze({__proto__:null,SelectedItemClick:0,SelectedItemKeyDownDelete:1,SelectedItemKeyDownBackspace:2,SelectedItemKeyDownNavigationNext:3,SelectedItemKeyDownNavigationPrevious:4,DropdownKeyDownNavigationPrevious:5,DropdownKeyDownBackspace:6,DropdownClick:7,FunctionAddSelectedItem:8,FunctionRemoveSelectedItem:9,FunctionSetSelectedItems:10,FunctionSetActiveIndex:11,FunctionReset:12});function Oe(e,t){const{type:n,index:i,props:o,selectedItem:r}=t,{activeIndex:s,selectedItems:l}=e;let a;switch(n){case 0:a={activeIndex:i};break;case 4:a={activeIndex:s-1<0?0:s-1};break;case 3:a={activeIndex:s+1>=l.length?-1:s+1};break;case 2:case 1:{let e=s;1===l.length?e=-1:s===l.length-1&&(e=l.length-2),a={selectedItems:[...l.slice(0,s),...l.slice(s+1)],activeIndex:e};break}case 5:a={activeIndex:l.length-1};break;case 6:a={selectedItems:l.slice(0,l.length-1)};break;case 8:a={selectedItems:[...l,r]};break;case 7:a={activeIndex:-1};break;case 9:{let e=s;const t=l.indexOf(r);t>=0&&(1===l.length?e=-1:t===l.length-1&&(e=l.length-2),a={selectedItems:[...l.slice(0,t),...l.slice(t+1)],activeIndex:e});break}case 10:{const{selectedItems:e}=t;a={selectedItems:e};break}case 11:{const{activeIndex:e}=t;a={activeIndex:e};break}case 12:a={activeIndex:xe(o,"activeIndex"),selectedItems:xe(o,"selectedItems")};break;default:throw new Error("Reducer called without proper action type.")}return{...e,...a}}function Se(e){void 0===e&&(e={}),Ce(e,Se);const t={...we,...e},{getA11yRemovalMessage:n,itemToString:i,environment:o,keyNavigationNext:s,keyNavigationPrevious:l}=t,[a,u]=q(Oe,function(e){return{activeIndex:ve(e,"activeIndex"),selectedItems:ve(e,"selectedItems")}}(t),t),{activeIndex:d,selectedItems:c}=a,h=(0,r.useRef)(!0),p=(0,r.useRef)(null),g=(0,r.useRef)(c),f=(0,r.useRef)();f.current=[];const m=Y({state:a,props:t});(0,r.useEffect)(()=>{if(!h.current){if(c.length<g.current.length){const e=g.current.find(e=>c.indexOf(e)<0);N(n({itemToString:i,resultCount:c.length,removedSelectedItem:e,activeIndex:d,activeSelectedItem:c[d]}),o.document)}g.current=c}},[c.length]),(0,r.useEffect)(()=>{h.current||(-1===d&&p.current?p.current.focus():f.current[d]&&f.current[d].focus())},[d]),re({isInitialMount:h.current,props:t,state:a});const v=ne();(0,r.useEffect)(()=>{h.current=!1},[]);const x=(0,r.useMemo)(()=>({[l](){u({type:4})},[s](){u({type:3})},Delete(){u({type:1})},Backspace(){u({type:2})}}),[u,s,l]),y=(0,r.useMemo)(()=>({[l](e){ye(e)&&u({type:5})},Backspace(e){ye(e)&&u({type:6})}}),[u,l]);return{getSelectedItemProps:(0,r.useCallback)(function(e){let{refKey:t="ref",ref:n,onClick:i,onKeyDown:o,selectedItem:r,index:s,...l}=void 0===e?{}:e;const{state:a}=m.current;if($(s,r,a.selectedItems)<0)throw new Error("Pass either selectedItem or index in getSelectedItemProps!");return{[t]:b(n,e=>{e&&f.current.push(e)}),tabIndex:s===a.activeIndex?0:-1,onClick:I(i,()=>{u({type:0,index:s})}),onKeyDown:I(o,e=>{const t=M(e);t&&x[t]&&x[t](e)}),...l}},[u,m,x]),getDropdownProps:(0,r.useCallback)(function(e,t){let{refKey:n="ref",ref:i,onKeyDown:o,onClick:r,preventKeyAction:s=!1,...l}=void 0===e?{}:e,{suppressRefError:a=!1}=void 0===t?{}:t;v("getDropdownProps",a,n,p);return{[n]:b(i,e=>{e&&(p.current=e)}),...!s&&{onKeyDown:I(o,e=>{const t=M(e);t&&y[t]&&y[t](e)}),onClick:I(r,()=>{u({type:7})})},...l}},[u,y,v]),addSelectedItem:(0,r.useCallback)(e=>{u({type:8,selectedItem:e})},[u]),removeSelectedItem:(0,r.useCallback)(e=>{u({type:9,selectedItem:e})},[u]),setSelectedItems:(0,r.useCallback)(e=>{u({type:10,selectedItems:e})},[u]),setActiveIndex:(0,r.useCallback)(e=>{u({type:11,activeIndex:e})},[u]),reset:(0,r.useCallback)(()=>{u({type:12})},[u]),selectedItems:c,activeIndex:d}}Se.stateChangeTypes=ke},22297(e,t){"use strict";var n=60103,i=60106,o=60107,r=60108,s=60114,l=60109,a=60110,u=60112,d=60113,c=60120,h=60115,p=60116,g=60121,f=60122,m=60117,I=60129,b=60131;if("function"==typeof Symbol&&Symbol.for){var v=Symbol.for;n=v("react.element"),i=v("react.portal"),o=v("react.fragment"),r=v("react.strict_mode"),s=v("react.profiler"),l=v("react.provider"),a=v("react.context"),u=v("react.forward_ref"),d=v("react.suspense"),c=v("react.suspense_list"),h=v("react.memo"),p=v("react.lazy"),g=v("react.block"),f=v("react.server.block"),m=v("react.fundamental"),I=v("react.debug_trace_mode"),b=v("react.legacy_hidden")}function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case s:case r:case d:case c:return e;default:switch(e=e&&e.$$typeof){case a:case u:case p:case h:case l:return e;default:return t}}case i:return t}}}},65269(e,t,n){"use strict";n(22297)},3583(e){e.exports=function(e){return null==e}},40362(e,t,n){"use strict";var i=n(56441);function o(){}function r(){}r.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,r,s){if(s!==i){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol
2:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:o};return n.PropTypes=n,n}},62688(e,t,n){e.exports=n(40362)()},56441(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},34629(e,t,n){"use strict";n.d(t,{Cl:function(){return i},fX:function(){return o}});var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.create;function o(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create}}]);
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.