(globalThis.webpackChunkburst_statistics=globalThis.webpackChunkburst_statistics||[]).push([[456],{4792:(e,t,n)=>{"use strict";var o=n(9819),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return o.isMemo(e)?a:s[e.$$typeof]||r}s[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[o.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,v=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(v){var r=f(n);r&&r!==v&&e(t,r,o)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=u(t),m=u(n),h=0;h<a.length;++h){var g=a[h];if(!(i[g]||o&&o[g]||m&&m[g]||s&&s[g])){var b=p(n,g);try{l(t,g,b)}catch(e){}}}}return t}},6560:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,v=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,O=n?Symbol.for("react.scope"):60119;function C(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case c:case d:case i:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case l:case p:case h:case m:case u:return e;default:return t}}case r:return t}}}function w(e){return C(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=u,t.Element=o,t.ForwardRef=p,t.Fragment=i,t.Lazy=h,t.Memo=m,t.Portal=r,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return w(e)||C(e)===c},t.isConcurrentMode=w,t.isContextConsumer=function(e){return C(e)===l},t.isContextProvider=function(e){return C(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return C(e)===p},t.isFragment=function(e){return C(e)===i},t.isLazy=function(e){return C(e)===h},t.isMemo=function(e){return C(e)===m},t.isPortal=function(e){return C(e)===r},t.isProfiler=function(e){return C(e)===s},t.isStrictMode=function(e){return C(e)===a},t.isSuspense=function(e){return C(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===f||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===u||e.$$typeof===l||e.$$typeof===p||e.$$typeof===b||e.$$typeof===y||e.$$typeof===O||e.$$typeof===g)},t.typeOf=C},9819:(e,t,n)=>{"use strict";e.exports=n(6560)},7128:(e,t,n)=>{var o=n(7188).Symbol;e.exports=o},6944:(e,t,n)=>{var o=n(7128),r=n(5664),i=n(3168),a=o?o.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?r(e):i(e)}},4428:(e,t,n)=>{var o=n(5608),r=/^\s+/;e.exports=function(e){return e?e.slice(0,o(e)+1).replace(r,""):e}},4848:(e,t,n)=>{var o="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=o},5664:(e,t,n)=>{var o=n(7128),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,s=o?o.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var o=!0}catch(e){}var r=a.call(e);return o&&(t?e[s]=n:delete e[s]),r}},3168:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},7188:(e,t,n)=>{var o=n(4848),r="object"==typeof self&&self&&self.Object===Object&&self,i=o||r||Function("return this")();e.exports=i},5608:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},3336:(e,t,n)=>{var o=n(8940),r=n(9868),i=n(8472),a=Math.max,s=Math.min;e.exports=function(e,t,n){var u,l,c,d,p,f,v=0,m=!1,h=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=u,o=l;return u=l=void 0,v=t,d=e.apply(o,n)}function y(e){var n=e-f;return void 0===f||n>=t||n<0||h&&e-v>=c}function O(){var e=r();if(y(e))return C(e);p=setTimeout(O,function(e){var n=t-(e-f);return h?s(n,c-(e-v)):n}(e))}function C(e){return p=void 0,g&&u?b(e):(u=l=void 0,d)}function w(){var e=r(),n=y(e);if(u=arguments,l=this,f=e,n){if(void 0===p)return function(e){return v=e,p=setTimeout(O,t),m?b(e):d}(f);if(h)return clearTimeout(p),p=setTimeout(O,t),b(f)}return void 0===p&&(p=setTimeout(O,t)),d}return t=i(t)||0,o(n)&&(m=!!n.leading,c=(h="maxWait"in n)?a(i(n.maxWait)||0,t):c,g="trailing"in n?!!n.trailing:g),w.cancel=function(){void 0!==p&&clearTimeout(p),v=0,u=f=l=p=void 0},w.flush=function(){return void 0===p?d:C(r())},w}},8940:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},2892:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},7712:(e,t,n)=>{var o=n(6944),r=n(2892);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==o(e)}},9868:(e,t,n)=>{var o=n(7188);e.exports=function(){return o.Date.now()}},8472:(e,t,n)=>{var o=n(4428),r=n(8940),i=n(7712),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=o(e);var n=s.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):a.test(e)?NaN:+e}},1320:(e,t,n)=>{"use strict";n.d(t,{c:()=>qn});var o=n(5072),r=n(1280),i=n(2536);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,i.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u=n(7088),l=n(2920),c=n(2988),d=n(3060),p=n(9988),f=n(309);function v(e){return function(e){if(Array.isArray(e))return(0,p.c)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,f.c)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var m=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),h=Math.abs,g=String.fromCharCode,b=Object.assign;function y(e){return e.trim()}function O(e,t,n){return e.replace(t,n)}function C(e,t){return e.indexOf(t)}function w(e,t){return 0|e.charCodeAt(t)}function E(e,t,n){return e.slice(t,n)}function S(e){return e.length}function x(e){return e.length}function I(e,t){return t.push(e),e}var P=1,M=1,D=0,k=0,V=0,R="";function L(e,t,n,o,r,i,a){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:P,column:M,length:a,return:""}}function T(e,t){return b(L("",null,null,"",null,null,0),e,{length:-e.length},t)}function F(){return V=k>0?w(R,--k):0,M--,10===V&&(M=1,P--),V}function A(){return V=k<D?w(R,k++):0,M++,10===V&&(M=1,P++),V}function N(){return w(R,k)}function H(){return k}function _(e,t){return E(R,e,t)}function $(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function j(e){return P=M=1,D=S(R=e),k=0,[]}function U(e){return R="",e}function z(e){return y(_(k-1,K(91===e?e+2:40===e?e+1:e)))}function B(e){for(;(V=N())&&V<33;)A();return $(e)>2||$(V)>3?"":" "}function W(e,t){for(;--t&&A()&&!(V<48||V>102||V>57&&V<65||V>70&&V<97););return _(e,H()+(t<6&&32==N()&&32==A()))}function K(e){for(;A();)switch(V){case e:return k;case 34:case 39:34!==e&&39!==e&&K(V);break;case 40:41===e&&K(e);break;case 92:A()}return k}function Y(e,t){for(;A()&&e+V!==57&&(e+V!==84||47!==N()););return"/*"+_(t,k-1)+"*"+g(47===e?e:A())}function G(e){for(;!$(N());)A();return _(e,k)}var q="-ms-",X="-moz-",Z="-webkit-",J="comm",Q="rule",ee="decl",te="@keyframes";function ne(e,t){for(var n="",o=x(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function oe(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ee:return e.return=e.return||e.value;case J:return"";case te:return e.return=e.value+"{"+ne(e.children,o)+"}";case Q:e.value=e.props.join(",")}return S(n=ne(e.children,o))?e.return=e.value+"{"+n+"}":""}function re(e){return U(ie("",null,null,null,[""],e=j(e),0,[0],e))}function ie(e,t,n,o,r,i,a,s,u){for(var l=0,c=0,d=a,p=0,f=0,v=0,m=1,h=1,b=1,y=0,E="",x=r,P=i,M=o,D=E;h;)switch(v=y,y=A()){case 40:if(108!=v&&58==w(D,d-1)){-1!=C(D+=O(z(y),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:D+=z(y);break;case 9:case 10:case 13:case 32:D+=B(v);break;case 92:D+=W(H()-1,7);continue;case 47:switch(N()){case 42:case 47:I(se(Y(A(),H()),t,n),u);break;default:D+="/"}break;case 123*m:s[l++]=S(D)*b;case 125*m:case 59:case 0:switch(y){case 0:case 125:h=0;case 59+c:-1==b&&(D=O(D,/\f/g,"")),f>0&&S(D)-d&&I(f>32?ue(D+";",o,n,d-1):ue(O(D," ","")+";",o,n,d-2),u);break;case 59:D+=";";default:if(I(M=ae(D,t,n,l,c,r,s,E,x=[],P=[],d),i),123===y)if(0===c)ie(D,t,M,M,x,i,d,s,P);else switch(99===p&&110===w(D,3)?100:p){case 100:case 108:case 109:case 115:ie(e,M,M,o&&I(ae(e,M,M,0,0,r,s,E,r,x=[],d),P),r,P,d,s,o?x:P);break;default:ie(D,M,M,M,[""],P,0,s,P)}}l=c=f=0,m=b=1,E=D="",d=a;break;case 58:d=1+S(D),f=v;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==F())continue;switch(D+=g(y),y*m){case 38:b=c>0?1:(D+="\f",-1);break;case 44:s[l++]=(S(D)-1)*b,b=1;break;case 64:45===N()&&(D+=z(A())),p=N(),c=d=S(E=D+=G(H())),y++;break;case 45:45===v&&2==S(D)&&(m=0)}}return i}function ae(e,t,n,o,r,i,a,s,u,l,c){for(var d=r-1,p=0===r?i:[""],f=x(p),v=0,m=0,g=0;v<o;++v)for(var b=0,C=E(e,d+1,d=h(m=a[v])),w=e;b<f;++b)(w=y(m>0?p[b]+" "+C:O(C,/&\f/g,p[b])))&&(u[g++]=w);return L(e,t,n,0===r?Q:s,u,l,c)}function se(e,t,n){return L(e,t,n,J,g(V),E(e,2,-2),0)}function ue(e,t,n,o){return L(e,t,n,ee,E(e,0,o),E(e,o+1,-1),o)}var le=function(e,t,n){for(var o=0,r=0;o=r,r=N(),38===o&&12===r&&(t[n]=1),!$(r);)A();return _(e,k)},ce=new WeakMap,de=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ce.get(n))&&!o){ce.set(e,!0);for(var r=[],i=function(e,t){return U(function(e,t){var n=-1,o=44;do{switch($(o)){case 0:38===o&&12===N()&&(t[n]=1),e[n]+=le(k-1,t,n);break;case 2:e[n]+=z(o);break;case 4:if(44===o){e[++n]=58===N()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=g(o)}}while(o=A());return e}(j(e),t))}(t,r),a=n.props,s=0,u=0;s<i.length;s++)for(var l=0;l<a.length;l++,u++)e.props[u]=r[s]?i[s].replace(/&\f/g,a[l]):a[l]+" "+i[s]}}},pe=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function fe(e,t){switch(function(e,t){return 45^w(e,0)?(((t<<2^w(e,0))<<2^w(e,1))<<2^w(e,2))<<2^w(e,3):0}(e,t)){case 5103:return Z+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Z+e+X+e+q+e+e;case 6828:case 4268:return Z+e+q+e+e;case 6165:return Z+e+q+"flex-"+e+e;case 5187:return Z+e+O(e,/(\w+).+(:[^]+)/,Z+"box-$1$2"+q+"flex-$1$2")+e;case 5443:return Z+e+q+"flex-item-"+O(e,/flex-|-self/,"")+e;case 4675:return Z+e+q+"flex-line-pack"+O(e,/align-content|flex-|-self/,"")+e;case 5548:return Z+e+q+O(e,"shrink","negative")+e;case 5292:return Z+e+q+O(e,"basis","preferred-size")+e;case 6060:return Z+"box-"+O(e,"-grow","")+Z+e+q+O(e,"grow","positive")+e;case 4554:return Z+O(e,/([^-])(transform)/g,"$1"+Z+"$2")+e;case 6187:return O(O(O(e,/(zoom-|grab)/,Z+"$1"),/(image-set)/,Z+"$1"),e,"")+e;case 5495:case 3959:return O(e,/(image-set\([^]*)/,Z+"$1$`$1");case 4968:return O(O(e,/(.+:)(flex-)?(.*)/,Z+"box-pack:$3"+q+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Z+e+e;case 4095:case 3583:case 4068:case 2532:return O(e,/(.+)-inline(.+)/,Z+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(S(e)-1-t>6)switch(w(e,t+1)){case 109:if(45!==w(e,t+4))break;case 102:return O(e,/(.+:)(.+)-([^]+)/,"$1"+Z+"$2-$3$1"+X+(108==w(e,t+3)?"$3":"$2-$3"))+e;case 115:return~C(e,"stretch")?fe(O(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==w(e,t+1))break;case 6444:switch(w(e,S(e)-3-(~C(e,"!important")&&10))){case 107:return O(e,":",":"+Z)+e;case 101:return O(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Z+(45===w(e,14)?"inline-":"")+"box$3$1"+Z+"$2$3$1"+q+"$2box$3")+e}break;case 5936:switch(w(e,t+11)){case 114:return Z+e+q+O(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Z+e+q+O(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Z+e+q+O(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Z+e+q+e+e}return e}var ve=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case ee:e.return=fe(e.value,e.length);break;case te:return ne([T(e,{value:O(e.value,"@","@"+Z)})],o);case Q:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return ne([T(e,{props:[O(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return ne([T(e,{props:[O(t,/:(plac\w+)/,":"+Z+"input-$1")]}),T(e,{props:[O(t,/:(plac\w+)/,":-moz-$1")]}),T(e,{props:[O(t,/:(plac\w+)/,q+"input-$1")]})],o)}return""}))}}],me=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,r,i=e.stylisPlugins||ve,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var u,l,c,d,p=[oe,(d=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],f=(l=[de,pe].concat(i,p),c=x(l),function(e,t,n,o){for(var r="",i=0;i<c;i++)r+=l[i](e,t,n,o)||"";return r});r=function(e,t,n,o){u=n,ne(re(e?e+"{"+t.styles+"}":t.styles),f),o&&(v.inserted[t.name]=!0)};var v={key:t,sheet:new m({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:r};return v.sheet.hydrate(s),v},he=function(e,t,n){var o=e.key+"-"+t.name;!1===n&&void 0===e.registered[o]&&(e.registered[o]=t.styles)},ge={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function be(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ye=/[A-Z]|^ms/g,Oe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ce=function(e){return 45===e.charCodeAt(1)},we=function(e){return null!=e&&"boolean"!=typeof e},Ee=be((function(e){return Ce(e)?e:e.replace(ye,"-$&").toLowerCase()})),Se=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Oe,(function(e,t,n){return Ie={name:t,styles:n,next:Ie},t}))}return 1===ge[e]||Ce(e)||"number"!=typeof t||0===t?t:t+"px"};function xe(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Ie={name:n.name,styles:n.styles,next:Ie},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)Ie={name:o.name,styles:o.styles,next:Ie},o=o.next;return n.styles+";"}return function(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=xe(e,t,n[r])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?o+=i+"{"+t[a]+"}":we(a)&&(o+=Ee(i)+":"+Se(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=xe(e,t,a);switch(i){case"animation":case"animationName":o+=Ee(i)+":"+s+";";break;default:o+=i+"{"+s+"}"}}else for(var u=0;u<a.length;u++)we(a[u])&&(o+=Ee(i)+":"+Se(i,a[u])+";")}return o}(e,t,n);case"function":if(void 0!==e){var r=Ie,i=n(e);return Ie=r,xe(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Ie,Pe=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Me=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,r="";Ie=void 0;var i=e[0];null==i||void 0===i.raw?(o=!1,r+=xe(n,t,i)):r+=i[0];for(var a=1;a<e.length;a++)r+=xe(n,t,e[a]),o&&(r+=i[a]);Pe.lastIndex=0;for(var s,u="";null!==(s=Pe.exec(r));)u+="-"+s[1];var l=function(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(r)+u;return{name:l,styles:r,next:Ie}},De=!!r.useInsertionEffect&&r.useInsertionEffect,ke=De||function(e){return e()},Ve=(De||r.useLayoutEffect,{}.hasOwnProperty),Re=r.createContext("undefined"!=typeof HTMLElement?me({key:"css"}):null);Re.Provider;var Le=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(Re);return e(t,o,n)}))},Te=r.createContext({}),Fe="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ae=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;return he(t,n,o),ke((function(){return function(e,t,n){he(e,t,n);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r=t;do{e.insert(t===r?"."+o:"",r,e.sheet,!0),r=r.next}while(void 0!==r)}}(t,n,o)})),null},Ne=Le((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var i=e[Fe],a=[o],s="";"string"==typeof e.className?s=function(e,t,n){var o="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):o+=n+" "})),o}(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var u=Me(a,void 0,r.useContext(Te));s+=t.key+"-"+u.name;var l={};for(var c in e)Ve.call(e,c)&&"css"!==c&&c!==Fe&&(l[c]=e[c]);return l.ref=n,l.className=s,r.createElement(r.Fragment,null,r.createElement(Ae,{cache:t,serialized:u,isStringTag:"string"==typeof i}),r.createElement(i,l))})),He=Ne,_e=(n(4792),function(e,t){var n=arguments;if(null==t||!Ve.call(t,"css"))return r.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=He,i[1]=function(e,t){var n={};for(var o in t)Ve.call(t,o)&&(n[o]=t[o]);return n[Fe]=e,n}(e,t);for(var a=2;a<o;a++)i[a]=n[a];return r.createElement.apply(null,i)});function $e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Me(t)}function je(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);u=!0);}catch(e){l=!0,r=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||(0,f.c)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ue=n(5656);function ze(e,t){if(null==e)return{};var n,o,r=(0,Ue.c)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Be=n(1568),We=n(1034),Ke=n(5284);const Ye=r.useLayoutEffect;var Ge=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],qe=function(){};function Xe(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Ze(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];var i=[].concat(o);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(Xe(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Je=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===(0,Be.c)(e)&&null!==e?[e]:[];var t},Qe=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,s({},ze(e,Ge))},et=function(e,t,n){var o=e.cx,r=e.getStyles,i=e.getClassNames,a=e.className;return{css:r(t,e),className:o(null!=n?n:{},i(t,e),a)}};function tt(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function nt(e){return tt(e)?window.pageYOffset:e.scrollTop}function ot(e,t){tt(e)?window.scrollTo(0,t):e.scrollTop=t}function rt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:qe,r=nt(e),i=t-r,a=0;!function t(){var s,u=i*((s=(s=a+=10)/n-1)*s*s+1)+r;ot(e,u),a<n?window.requestAnimationFrame(t):o(e)}()}function it(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=t.offsetHeight/3;o.bottom+r>n.bottom?ot(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):o.top-r<n.top&&ot(e,Math.max(t.offsetTop-r,0))}function at(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var st=!1,ut={get passive(){return st=!0}},lt="undefined"!=typeof window?window:{};lt.addEventListener&&lt.removeEventListener&&(lt.addEventListener("p",qe,ut),lt.removeEventListener("p",qe,!1));var ct=st;function dt(e){return null!=e}function pt(e,t,n){return e?t:n}var ft=["children","innerProps"],vt=["children","innerProps"];var mt,ht,gt,bt=function(e){return"auto"===e?"bottom":e},yt=(0,r.createContext)(null),Ot=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,i=e.menuPlacement,a=e.menuPosition,u=e.menuShouldScrollIntoView,l=e.theme,c=((0,r.useContext)(yt)||{}).setPortalPlacement,d=(0,r.useRef)(null),p=je((0,r.useState)(o),2),f=p[0],v=p[1],m=je((0,r.useState)(null),2),h=m[0],g=m[1],b=l.spacing.controlHeight;return Ye((function(){var e=d.current;if(e){var t="fixed"===a,r=function(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,r=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,o=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),(!n||"static"!==t.position)&&o.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c,d=u.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,v=p.height,m=p.top,h=n.offsetParent.getBoundingClientRect().top,g=a||tt(c=u)?window.innerHeight:c.clientHeight,b=nt(u),y=parseInt(getComputedStyle(n).marginBottom,10),O=parseInt(getComputedStyle(n).marginTop,10),C=h-O,w=g-m,E=C+b,S=d-b-m,x=f-g+b+y,I=b+m-O,P=160;switch(r){case"auto":case"bottom":if(w>=v)return{placement:"bottom",maxHeight:t};if(S>=v&&!a)return i&&rt(u,x,P),{placement:"bottom",maxHeight:t};if(!a&&S>=o||a&&w>=o)return i&&rt(u,x,P),{placement:"bottom",maxHeight:a?w-y:S-y};if("auto"===r||a){var M=t,D=a?C:E;return D>=o&&(M=Math.min(D-y-s,t)),{placement:"top",maxHeight:M}}if("bottom"===r)return i&&ot(u,x),{placement:"bottom",maxHeight:t};break;case"top":if(C>=v)return{placement:"top",maxHeight:t};if(E>=v&&!a)return i&&rt(u,I,P),{placement:"top",maxHeight:t};if(!a&&E>=o||a&&C>=o){var k=t;return(!a&&E>=o||a&&C>=o)&&(k=a?C-O:E-O),i&&rt(u,I,P),{placement:"top",maxHeight:k}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return l}({maxHeight:o,menuEl:e,minHeight:n,placement:i,shouldScroll:u&&!t,isFixedPosition:t,controlHeight:b});v(r.maxHeight),g(r.placement),null==c||c(r.placement)}}),[o,i,a,u,n,c,b]),t({ref:d,placerProps:s(s({},e),{},{placement:h||bt(i),maxHeight:f})})},Ct=function(e,t){var n=e.theme,o=n.spacing.baseUnit,r=n.colors;return s({textAlign:"center"},t?{}:{color:r.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},wt=Ct,Et=Ct,St=["size"],xt=["innerProps","isRtl","size"],It={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Pt=function(e){var t=e.size,n=ze(e,St);return _e("svg",(0,o.c)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:It},n))},Mt=function(e){return _e(Pt,(0,o.c)({size:20},e),_e("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Dt=function(e){return _e(Pt,(0,o.c)({size:20},e),_e("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},kt=function(e,t){var n=e.isFocused,o=e.theme,r=o.spacing.baseUnit,i=o.colors;return s({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*r,":hover":{color:n?i.neutral80:i.neutral40}})},Vt=kt,Rt=kt,Lt=function(){var e=$e.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(mt||(ht=["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"],gt||(gt=ht.slice(0)),mt=Object.freeze(Object.defineProperties(ht,{raw:{value:Object.freeze(gt)}})))),Tt=function(e){var t=e.delay,n=e.offset;return _e("span",{css:$e({animation:"".concat(Lt," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Ft=["data"],At=["innerRef","isDisabled","isHidden","inputClassName"],Nt={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Ht={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":s({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Nt)},_t=function(e){return s({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Nt)},$t=function(e){var t=e.children,n=e.innerProps;return _e("div",n,t)},jt={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return _e("div",(0,o.c)({},et(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||_e(Mt,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,a=e.innerProps,s=e.menuIsOpen;return _e("div",(0,o.c)({ref:i},et(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":s}),a,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return _e("div",(0,o.c)({},et(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||_e(Dt,null))},DownChevron:Dt,CrossIcon:Mt,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,a=e.Heading,s=e.headingProps,u=e.innerProps,l=e.label,c=e.theme,d=e.selectProps;return _e("div",(0,o.c)({},et(e,"group",{group:!0}),u),_e(a,(0,o.c)({},s,{selectProps:d,theme:c,getStyles:r,getClassNames:i,cx:n}),l),_e("div",null,t))},GroupHeading:function(e){var t=Qe(e);t.data;var n=ze(t,Ft);return _e("div",(0,o.c)({},et(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return _e("div",(0,o.c)({},et(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return _e("span",(0,o.c)({},t,et(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=Qe(e),i=r.innerRef,a=r.isDisabled,s=r.isHidden,u=r.inputClassName,l=ze(r,At);return _e("div",(0,o.c)({},et(e,"input",{"input-container":!0}),{"data-value":n||""}),_e("input",(0,o.c)({className:t({input:!0},u),ref:i,style:_t(s),disabled:a},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,i=void 0===r?4:r,a=ze(e,xt);return _e("div",(0,o.c)({},et(s(s({},a),{},{innerProps:t,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),_e(Tt,{delay:0,offset:n}),_e(Tt,{delay:160,offset:!0}),_e(Tt,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return _e("div",(0,o.c)({},et(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return _e("div",(0,o.c)({},et(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,i=e.controlElement,a=e.innerProps,u=e.menuPlacement,l=e.menuPosition,c=(0,r.useRef)(null),d=(0,r.useRef)(null),p=je((0,r.useState)(bt(u)),2),f=p[0],v=p[1],m=(0,r.useMemo)((function(){return{setPortalPlacement:v}}),[]),h=je((0,r.useState)(null),2),g=h[0],b=h[1],y=(0,r.useCallback)((function(){if(i){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),t="fixed"===l?0:window.pageYOffset,n=e[f]+t;n===(null==g?void 0:g.offset)&&e.left===(null==g?void 0:g.rect.left)&&e.width===(null==g?void 0:g.rect.width)||b({offset:n,rect:e})}}),[i,l,f,null==g?void 0:g.offset,null==g?void 0:g.rect.left,null==g?void 0:g.rect.width]);Ye((function(){y()}),[y]);var O=(0,r.useCallback)((function(){"function"==typeof d.current&&(d.current(),d.current=null),i&&c.current&&(d.current=(0,Ke.kN)(i,c.current,y,{elementResize:"ResizeObserver"in window}))}),[i,y]);Ye((function(){O()}),[O]);var C=(0,r.useCallback)((function(e){c.current=e,O()}),[O]);if(!t&&"fixed"!==l||!g)return null;var w=_e("div",(0,o.c)({ref:C},et(s(s({},e),{},{offset:g.offset,position:l,rect:g.rect}),"menuPortal",{"menu-portal":!0}),a),n);return _e(yt.Provider,{value:m},t?(0,We.createPortal)(w,t):w)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,i=ze(e,vt);return _e("div",(0,o.c)({},et(s(s({},i),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,i=ze(e,ft);return _e("div",(0,o.c)({},et(s(s({},i),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,o=e.data,r=e.innerProps,i=e.isDisabled,a=e.removeProps,u=e.selectProps,l=n.Container,c=n.Label,d=n.Remove;return _e(l,{data:o,innerProps:s(s({},et(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),r),selectProps:u},_e(c,{data:o,innerProps:s({},et(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},t),_e(d,{data:o,innerProps:s(s({},et(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:u}))},MultiValueContainer:$t,MultiValueLabel:$t,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return _e("div",(0,o.c)({role:"button"},n),t||_e(Mt,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,a=e.innerRef,s=e.innerProps;return _e("div",(0,o.c)({},et(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:a,"aria-disabled":n},s),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return _e("div",(0,o.c)({},et(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return _e("div",(0,o.c)({},et(e,"container",{"--is-disabled":r,"--is-rtl":i}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return _e("div",(0,o.c)({},et(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return _e("div",(0,o.c)({},et(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)}},Ut=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function zt(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((o=e[n])===(r=t[n])||Ut(o)&&Ut(r)))return!1;var o,r;return!0}for(var Bt={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"},Wt=function(e){return _e("span",(0,o.c)({css:Bt},e))},Kt={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.tabSelectsValue,r=e.context,i=e.isInitialFocus;switch(r){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,o=void 0===n?"":n,r=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(r.length>1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return"option ".concat(o,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,o=e.options,r=e.label,i=void 0===r?"":r,a=e.selectValue,s=e.isDisabled,u=e.isSelected,l=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(c(a,n),".");if("menu"===t&&l){var d=s?" disabled":"",p="".concat(u?" selected":"").concat(d);return"".concat(i).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:"",".")}},Yt=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,i=e.focusableOptions,a=e.isFocused,u=e.selectValue,l=e.selectProps,c=e.id,d=e.isAppleDevice,p=l.ariaLiveMessages,f=l.getOptionLabel,v=l.inputValue,m=l.isMulti,h=l.isOptionDisabled,g=l.isSearchable,b=l.menuIsOpen,y=l.options,O=l.screenReaderStatus,C=l.tabSelectsValue,w=l.isLoading,E=l["aria-label"],S=l["aria-live"],x=(0,r.useMemo)((function(){return s(s({},Kt),p||{})}),[p]),I=(0,r.useMemo)((function(){var e,n="";if(t&&x.onChange){var o=t.option,r=t.options,i=t.removedValue,a=t.removedValues,l=t.value,c=i||o||(e=l,Array.isArray(e)?null:e),d=c?f(c):"",p=r||a||void 0,v=p?p.map(f):[],m=s({isDisabled:c&&h(c,u),label:d,labels:v},t);n=x.onChange(m)}return n}),[t,x,h,u,f]),P=(0,r.useMemo)((function(){var e="",t=n||o,r=!!(n&&u&&u.includes(n));if(t&&x.onFocus){var a={focused:t,label:f(t),isDisabled:h(t,u),isSelected:r,options:i,context:t===n?"menu":"value",selectValue:u,isAppleDevice:d};e=x.onFocus(a)}return e}),[n,o,f,h,x,i,u,d]),M=(0,r.useMemo)((function(){var e="";if(b&&y.length&&!w&&x.onFilter){var t=O({count:i.length});e=x.onFilter({inputValue:v,resultsMessage:t})}return e}),[i,v,b,x,y,O,w]),D="initial-input-focus"===(null==t?void 0:t.action),k=(0,r.useMemo)((function(){var e="";if(x.guidance){var t=o?"value":b?"menu":"input";e=x.guidance({"aria-label":E,context:t,isDisabled:n&&h(n,u),isMulti:m,isSearchable:g,tabSelectsValue:C,isInitialFocus:D})}return e}),[E,n,o,m,h,g,b,x,u,C,D]),V=_e(r.Fragment,null,_e("span",{id:"aria-selection"},I),_e("span",{id:"aria-focused"},P),_e("span",{id:"aria-results"},M),_e("span",{id:"aria-guidance"},k));return _e(r.Fragment,null,_e(Wt,{id:c},D&&V),_e(Wt,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!D&&V))},Gt=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],qt=new RegExp("["+Gt.map((function(e){return e.letters})).join("")+"]","g"),Xt={},Zt=0;Zt<Gt.length;Zt++)for(var Jt=Gt[Zt],Qt=0;Qt<Jt.letters.length;Qt++)Xt[Jt.letters[Qt]]=Jt.base;var en=function(e){return e.replace(qt,(function(e){return Xt[e]}))},tn=function(e,t){void 0===t&&(t=zt);var n=null;function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var i=e.apply(this,o);return n={lastResult:i,lastArgs:o,lastThis:this},i}return o.clear=function(){n=null},o}(en),nn=function(e){return e.replace(/^\s+|\s+$/g,"")},on=function(e){return"".concat(e.label," ").concat(e.value)},rn=["innerRef"];function an(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=Object.entries(e).filter((function(e){var t=je(e,1)[0];return!n.includes(t)}));return r.reduce((function(e,t){var n=je(t,2),o=n[0],r=n[1];return e[o]=r,e}),{})}(ze(e,rn),"onExited","in","enter","exit","appear");return _e("input",(0,o.c)({ref:t},n,{css:$e({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 sn=["boxSizing","height","overflow","paddingRight","position"],un={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function ln(e){e.preventDefault()}function cn(e){e.stopPropagation()}function dn(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function pn(){return"ontouchstart"in window||navigator.maxTouchPoints}var fn=!("undefined"==typeof window||!window.document||!window.document.createElement),vn=0,mn={capture:!1,passive:!1},hn=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},gn={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function bn(e){var t=e.children,n=e.lockEnabled,o=e.captureEnabled,i=function(e){var t=e.isEnabled,n=e.onBottomArrive,o=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,s=(0,r.useRef)(!1),u=(0,r.useRef)(!1),l=(0,r.useRef)(0),c=(0,r.useRef)(null),d=(0,r.useCallback)((function(e,t){if(null!==c.current){var r=c.current,l=r.scrollTop,d=r.scrollHeight,p=r.clientHeight,f=c.current,v=t>0,m=d-p-l,h=!1;m>t&&s.current&&(o&&o(e),s.current=!1),v&&u.current&&(a&&a(e),u.current=!1),v&&t>m?(n&&!s.current&&n(e),f.scrollTop=d,h=!0,s.current=!0):!v&&-t>l&&(i&&!u.current&&i(e),f.scrollTop=0,h=!0,u.current=!0),h&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,o,i,a]),p=(0,r.useCallback)((function(e){d(e,e.deltaY)}),[d]),f=(0,r.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),v=(0,r.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;d(e,t)}),[d]),m=(0,r.useCallback)((function(e){if(e){var t=!!ct&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",v,t)}}),[v,f,p]),h=(0,r.useCallback)((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",v,!1))}),[v,f,p]);return(0,r.useEffect)((function(){if(t){var e=c.current;return m(e),function(){h(e)}}}),[t,m,h]),function(e){c.current=e}}({isEnabled:void 0===o||o,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,o=void 0===n||n,i=(0,r.useRef)({}),a=(0,r.useRef)(null),s=(0,r.useCallback)((function(e){if(fn){var t=document.body,n=t&&t.style;if(o&&sn.forEach((function(e){var t=n&&n[e];i.current[e]=t})),o&&vn<1){var r=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+r||0;Object.keys(un).forEach((function(e){var t=un[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&pn()&&(t.addEventListener("touchmove",ln,mn),e&&(e.addEventListener("touchstart",dn,mn),e.addEventListener("touchmove",cn,mn))),vn+=1}}),[o]),u=(0,r.useCallback)((function(e){if(fn){var t=document.body,n=t&&t.style;vn=Math.max(vn-1,0),o&&vn<1&&sn.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&pn()&&(t.removeEventListener("touchmove",ln,mn),e&&(e.removeEventListener("touchstart",dn,mn),e.removeEventListener("touchmove",cn,mn)))}}),[o]);return(0,r.useEffect)((function(){if(t){var e=a.current;return s(e),function(){u(e)}}}),[t,s,u]),function(e){a.current=e}}({isEnabled:n});return _e(r.Fragment,null,n&&_e("div",{onClick:hn,css:gn}),t((function(e){i(e),a(e)})))}var yn={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},On=function(e){var t=e.name,n=e.onFocus;return _e("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:yn,value:"",onChange:function(){}})};function Cn(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function wn(){return Cn(/^Mac/i)}var En=function(e){return e.label},Sn=function(e){return e.value},xn={clearIndicator:Rt,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.theme,i=r.colors,a=r.borderRadius;return s({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:r.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:o?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:o?i.primary:i.neutral30}})},dropdownIndicator:Vt,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,o=n.colors,r=n.spacing;return s({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*r.baseUnit,paddingRight:3*r.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing.baseUnit,i=o.colors;return s({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*r,marginTop:2*r})},input:function(e,t){var n=e.isDisabled,o=e.value,r=e.theme,i=r.spacing,a=r.colors;return s(s({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},Ht),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,o=e.size,r=e.theme,i=r.colors,a=r.spacing.baseUnit;return s({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:Et,menu:function(e,t){var n,o=e.placement,r=e.theme,a=r.borderRadius,u=r.spacing,l=r.colors;return s((n={label:"menu"},(0,i.c)(n,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),(0,i.c)(n,"position","absolute"),(0,i.c)(n,"width","100%"),(0,i.c)(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:u.menuGutter,marginTop:u.menuGutter})},menuList:function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return s({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},menuPortal:function(e){var t=e.rect,n=e.offset,o=e.position;return{left:t.left,position:o,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,i=n.colors;return s({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:r/2,margin:o.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,o=n.borderRadius,r=n.colors,i=e.cropWithEllipsis;return s({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:r.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,i=n.colors,a=e.isFocused;return s({alignItems:"center",display:"flex"},t?{}:{borderRadius:r/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:wt,option:function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.theme,a=i.spacing,u=i.colors;return s({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:r?u.primary:o?u.primary25:"transparent",color:n?u.neutral20:r?u.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:r?u.primary:u.primary50}})},placeholder:function(e,t){var n=e.theme,o=n.spacing,r=n.colors;return s({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:r.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing,i=o.colors;return s({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,o=e.isMulti,r=e.hasValue,i=e.selectProps.controlShouldRenderValue;return s({alignItems:"center",display:o&&r&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},In={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}},Pn={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:at(),captureMenuScroll:!at(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=s({ignoreCase:!0,ignoreAccents:!0,stringify:on,trim:!0,matchFrom:"any"},undefined),o=n.ignoreCase,r=n.ignoreAccents,i=n.stringify,a=n.trim,u=n.matchFrom,l=a?nn(t):t,c=a?nn(i(e)):i(e);return o&&(l=l.toLowerCase(),c=c.toLowerCase()),r&&(l=tn(l),c=en(c)),"start"===u?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:En,getOptionValue:Sn,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Mn(e,t,n,o){return{type:"option",data:t,isDisabled:An(e,t,n),isSelected:Nn(e,t,n),label:Tn(e,t),value:Fn(e,t),index:o}}function Dn(e,t){return e.options.map((function(n,o){if("options"in n){var r=n.options.map((function(n,o){return Mn(e,n,t,o)})).filter((function(t){return Rn(e,t)}));return r.length>0?{type:"group",data:n,options:r,index:o}:void 0}var i=Mn(e,n,t,o);return Rn(e,i)?i:void 0})).filter(dt)}function kn(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,v(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Vn(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,v(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 Rn(e,t){var n=e.inputValue,o=void 0===n?"":n,r=t.data,i=t.isSelected,a=t.label,s=t.value;return(!$n(e)||!i)&&Hn(e,{label:a,value:s,data:r},o)}var Ln=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},Tn=function(e,t){return e.getOptionLabel(t)},Fn=function(e,t){return e.getOptionValue(t)};function An(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Nn(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=Fn(e,t);return n.some((function(t){return Fn(e,t)===o}))}function Hn(e,t,n){return!e.filterOption||e.filterOption(t,n)}var $n=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},jn=1,Un=function(e){(0,c.c)(n,e);var t=(0,d.c)(n);function n(e){var o;if((0,u.c)(this,n),(o=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.isAppleDevice=wn()||Cn(/^iPhone/i)||Cn(/^iPad/i)||wn()&&navigator.maxTouchPoints>1,o.controlRef=null,o.getControlRef=function(e){o.controlRef=e},o.focusedOptionRef=null,o.getFocusedOptionRef=function(e){o.focusedOptionRef=e},o.menuListRef=null,o.getMenuListRef=function(e){o.menuListRef=e},o.inputRef=null,o.getInputRef=function(e){o.inputRef=e},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(e,t){var n=o.props,r=n.onChange,i=n.name;t.name=i,o.ariaOnChange(e,t),r(e,t)},o.setValue=function(e,t,n){var r=o.props,i=r.closeMenuOnSelect,a=r.isMulti,s=r.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(o.setState({inputIsHiddenAfterUpdate:!a}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(e,{action:t,option:n})},o.selectOption=function(e){var t=o.props,n=t.blurInputOnSelect,r=t.isMulti,i=t.name,a=o.state.selectValue,s=r&&o.isOptionSelected(e,a),u=o.isOptionDisabled(e,a);if(s){var l=o.getOptionValue(e);o.setValue(a.filter((function(e){return o.getOptionValue(e)!==l})),"deselect-option",e)}else{if(u)return void o.ariaOnChange(e,{action:"select-option",option:e,name:i});r?o.setValue([].concat(v(a),[e]),"select-option",e):o.setValue(e,"select-option")}n&&o.blurInput()},o.removeValue=function(e){var t=o.props.isMulti,n=o.state.selectValue,r=o.getOptionValue(e),i=n.filter((function(e){return o.getOptionValue(e)!==r})),a=pt(t,i,i[0]||null);o.onChange(a,{action:"remove-value",removedValue:e}),o.focusInput()},o.clearValue=function(){var e=o.state.selectValue;o.onChange(pt(o.props.isMulti,[],null),{action:"clear",removedValues:e})},o.popValue=function(){var e=o.props.isMulti,t=o.state.selectValue,n=t[t.length-1],r=t.slice(0,t.length-1),i=pt(e,r,r[0]||null);o.onChange(i,{action:"pop-value",removedValue:n})},o.getFocusedOptionId=function(e){return Ln(o.state.focusableOptionsWithIds,e)},o.getFocusableOptionsWithIds=function(){return Vn(Dn(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ze.apply(void 0,[o.props.classNamePrefix].concat(t))},o.getOptionLabel=function(e){return Tn(o.props,e)},o.getOptionValue=function(e){return Fn(o.props,e)},o.getStyles=function(e,t){var n=o.props.unstyled,r=xn[e](t,n);r.boxSizing="border-box";var i=o.props.styles[e];return i?i(r,t):r},o.getClassNames=function(e,t){var n,r;return null===(n=(r=o.props.classNames)[e])||void 0===n?void 0:n.call(r,t)},o.getElementId=function(e){return"".concat(o.state.instancePrefix,"-").concat(e)},o.getComponents=function(){return e=o.props,s(s({},jt),e.components);var e},o.buildCategorizedOptions=function(){return Dn(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return kn(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(e,t){o.setState({ariaSelection:s({value:e},t)})},o.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(e){o.blockOptionHover=!1},o.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&o.onMenuClose():t&&o.openMenu("first"):(t&&(o.openAfterFocus=!0),o.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},o.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||o.props.isDisabled)){var t=o.props,n=t.isMulti,r=t.menuIsOpen;o.focusInput(),r?(o.setState({inputIsHiddenAfterUpdate:!n}),o.onMenuClose()):o.openMenu("first"),e.preventDefault()}},o.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(o.clearValue(),e.preventDefault(),o.openAfterFocus=!1,"touchend"===e.type?o.focusInput():setTimeout((function(){return o.focusInput()})))},o.onScroll=function(e){"boolean"==typeof o.props.closeMenuOnScroll?e.target instanceof HTMLElement&&tt(e.target)&&o.props.onMenuClose():"function"==typeof o.props.closeMenuOnScroll&&o.props.closeMenuOnScroll(e)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(o.initialTouchX=n.clientX,o.initialTouchY=n.clientY,o.userIsDragging=!1)},o.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var r=Math.abs(n.clientX-o.initialTouchX),i=Math.abs(n.clientY-o.initialTouchY);o.userIsDragging=r>5||i>5}},o.onTouchEnd=function(e){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(e.target)&&o.menuListRef&&!o.menuListRef.contains(e.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(e){o.userIsDragging||o.onControlMouseDown(e)},o.onClearIndicatorTouchEnd=function(e){o.userIsDragging||o.onClearIndicatorMouseDown(e)},o.onDropdownIndicatorTouchEnd=function(e){o.userIsDragging||o.onDropdownIndicatorMouseDown(e)},o.handleInputChange=function(e){var t=o.props.inputValue,n=e.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(n,{action:"input-change",prevInputValue:t}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(e){o.props.onFocus&&o.props.onFocus(e),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(e){var t=o.props.inputValue;o.menuListRef&&o.menuListRef.contains(document.activeElement)?o.inputRef.focus():(o.props.onBlur&&o.props.onBlur(e),o.onInputChange("",{action:"input-blur",prevInputValue:t}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1}))},o.onOptionHover=function(e){if(!o.blockOptionHover&&o.state.focusedOption!==e){var t=o.getFocusableOptions().indexOf(e);o.setState({focusedOption:e,focusedOptionId:t>-1?o.getFocusedOptionId(e):null})}},o.shouldHideSelectedOptions=function(){return $n(o.props)},o.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),o.focus()},o.onKeyDown=function(e){var t=o.props,n=t.isMulti,r=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,u=t.isDisabled,l=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=o.state,v=f.focusedOption,m=f.focusedValue,h=f.selectValue;if(!(u||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(o.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;o.focusValue("previous");break;case"ArrowRight":if(!n||a)return;o.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)o.removeValue(m);else{if(!r)return;n?o.popValue():s&&o.clearValue()}break;case"Tab":if(o.isComposing)return;if(e.shiftKey||!l||!d||!v||p&&o.isOptionSelected(v,h))return;o.selectOption(v);break;case"Enter":if(229===e.keyCode)break;if(l){if(!v)return;if(o.isComposing)return;o.selectOption(v);break}return;case"Escape":l?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:a}),o.onMenuClose()):s&&i&&o.clearValue();break;case" ":if(a)return;if(!l){o.openMenu("first");break}if(!v)return;o.selectOption(v);break;case"ArrowUp":l?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":l?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!l)return;o.focusOption("pageup");break;case"PageDown":if(!l)return;o.focusOption("pagedown");break;case"Home":if(!l)return;o.focusOption("first");break;case"End":if(!l)return;o.focusOption("last");break;default:return}e.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++jn),o.state.selectValue=Je(e.value),e.menuIsOpen&&o.state.selectValue.length){var r=o.getFocusableOptionsWithIds(),i=o.buildFocusableOptions(),a=i.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=r,o.state.focusedOption=i[a],o.state.focusedOptionId=Ln(r,i[a])}return o}return(0,l.c)(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&&it(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,o=t.menuIsOpen,r=this.state.isFocused;(r&&!n&&e.isDisabled||r&&o&&!e.menuIsOpen)&&this.focusInput(),r&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):r||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(it(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,o=n.selectValue,r=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(o[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(r&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var r=n.indexOf(o);o||(r=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===r?0:-1===r?i:r-1;break;case"next":r>-1&&r<i&&(a=r+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var r=0,i=o.indexOf(n);n||(i=-1),"up"===e?r=i>0?i-1:o.length-1:"down"===e?r=(i+1)%o.length:"pageup"===e?(r=i-t)<0&&(r=0):"pagedown"===e?(r=i+t)>o.length-1&&(r=o.length-1):"last"===e&&(r=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[r],focusedValue:null,focusedOptionId:this.getFocusedOptionId(o[r])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(In):s(s({},In),this.props.theme):In}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getClassNames,r=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,u=s.isMulti,l=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:r,hasValue:this.hasValue(),isMulti:u,isRtl:l,options:c,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return An(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Nn(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Hn(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:o})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,i=e.inputId,a=e.inputValue,u=e.tabIndex,l=e.form,c=e.menuIsOpen,d=e.required,p=this.getComponents().Input,f=this.state,v=f.inputIsHidden,m=f.ariaSelection,h=this.commonProps,g=i||this.getElementId("input"),b=s(s(s({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},c&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==m?void 0:m.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?r.createElement(p,(0,o.c)({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:t,isHidden:v,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:l,type:"text",value:a},b)):r.createElement(an,(0,o.c)({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:qe,onFocus:this.onInputFocus,disabled:t,tabIndex:u,inputMode:"none",form:l,value:""},b))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,i=t.MultiValueContainer,a=t.MultiValueLabel,s=t.MultiValueRemove,u=t.SingleValue,l=t.Placeholder,c=this.commonProps,d=this.props,p=d.controlShouldRenderValue,f=d.isDisabled,v=d.isMulti,m=d.inputValue,h=d.placeholder,g=this.state,b=g.selectValue,y=g.focusedValue,O=g.isFocused;if(!this.hasValue()||!p)return m?null:r.createElement(l,(0,o.c)({},c,{key:"placeholder",isDisabled:f,isFocused:O,innerProps:{id:this.getElementId("placeholder")}}),h);if(v)return b.map((function(t,u){var l=t===y,d="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return r.createElement(n,(0,o.c)({},c,{components:{Container:i,Label:a,Remove:s},isFocused:l,isDisabled:f,key:d,index:u,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var C=b[0];return r.createElement(u,(0,o.c)({},c,{data:C,isDisabled:f}),this.formatOptionLabel(C,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,a=n.isLoading,s=this.state.isFocused;if(!this.isClearable()||!e||i||!this.hasValue()||a)return null;var u={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return r.createElement(e,(0,o.c)({},t,{innerProps:u,isFocused:s}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,a=n.isLoading,s=this.state.isFocused;return e&&a?r.createElement(e,(0,o.c)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:s})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var i=this.commonProps,a=this.props.isDisabled,s=this.state.isFocused;return r.createElement(n,(0,o.c)({},i,{isDisabled:a,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,i=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return r.createElement(e,(0,o.c)({},t,{innerProps:a,isDisabled:n,isFocused:i}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,i=t.GroupHeading,a=t.Menu,s=t.MenuList,u=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,d=t.Option,p=this.commonProps,f=this.state.focusedOption,v=this.props,m=v.captureMenuScroll,h=v.inputValue,g=v.isLoading,b=v.loadingMessage,y=v.minMenuHeight,O=v.maxMenuHeight,C=v.menuIsOpen,w=v.menuPlacement,E=v.menuPosition,S=v.menuPortalTarget,x=v.menuShouldBlockScroll,I=v.menuShouldScrollIntoView,P=v.noOptionsMessage,M=v.onMenuScrollToTop,D=v.onMenuScrollToBottom;if(!C)return null;var k,V=function(t,n){var i=t.type,a=t.data,s=t.isDisabled,u=t.isSelected,l=t.label,c=t.value,v=f===a,m=s?void 0:function(){return e.onOptionHover(a)},h=s?void 0:function(){return e.selectOption(a)},g="".concat(e.getElementId("option"),"-").concat(n),b={id:g,onClick:h,onMouseMove:m,onMouseOver:m,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:u};return r.createElement(d,(0,o.c)({},p,{innerProps:b,data:a,isDisabled:s,isSelected:u,key:g,label:l,type:i,value:c,isFocused:v,innerRef:v?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())k=this.getCategorizedOptions().map((function(t){if("group"===t.type){var a=t.data,s=t.options,u=t.index,l="".concat(e.getElementId("group"),"-").concat(u),c="".concat(l,"-heading");return r.createElement(n,(0,o.c)({},p,{key:l,data:a,options:s,Heading:i,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return V(e,"".concat(u,"-").concat(e.index))})))}if("option"===t.type)return V(t,"".concat(t.index))}));else if(g){var R=b({inputValue:h});if(null===R)return null;k=r.createElement(l,p,R)}else{var L=P({inputValue:h});if(null===L)return null;k=r.createElement(c,p,L)}var T={minMenuHeight:y,maxMenuHeight:O,menuPlacement:w,menuPosition:E,menuShouldScrollIntoView:I},F=r.createElement(Ot,(0,o.c)({},p,T),(function(t){var n=t.ref,i=t.placerProps,u=i.placement,l=i.maxHeight;return r.createElement(a,(0,o.c)({},p,T,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:u}),r.createElement(bn,{captureEnabled:m,onTopArrive:M,onBottomArrive:D,lockEnabled:x},(function(t){return r.createElement(s,(0,o.c)({},p,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":p.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:l,focusedOption:f}),k)})))}));return S||"fixed"===E?r.createElement(u,(0,o.c)({},p,{appendTo:S,controlElement:this.controlRef,menuPlacement:w,menuPosition:E}),F):F}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,i=t.isMulti,a=t.name,s=t.required,u=this.state.selectValue;if(s&&!this.hasValue()&&!o)return r.createElement(On,{name:a,onFocus:this.onValueInputFocus});if(a&&!o){if(i){if(n){var l=u.map((function(t){return e.getOptionValue(t)})).join(n);return r.createElement("input",{name:a,type:"hidden",value:l})}var c=u.length>0?u.map((function(t,n){return r.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):r.createElement("input",{name:a,type:"hidden",value:""});return r.createElement("div",null,c)}var d=u[0]?this.getOptionValue(u[0]):"";return r.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,i=t.focusedOption,a=t.focusedValue,s=t.isFocused,u=t.selectValue,l=this.getFocusableOptions();return r.createElement(Yt,(0,o.c)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:i,focusedValue:a,isFocused:s,selectValue:u,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,i=e.SelectContainer,a=e.ValueContainer,s=this.props,u=s.className,l=s.id,c=s.isDisabled,d=s.menuIsOpen,p=this.state.isFocused,f=this.commonProps=this.getCommonProps();return r.createElement(i,(0,o.c)({},f,{className:u,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:p}),this.renderLiveRegion(),r.createElement(t,(0,o.c)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:p,menuIsOpen:d}),r.createElement(a,(0,o.c)({},f,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),r.createElement(n,(0,o.c)({},f,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.clearFocusValueOnUpdate,r=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,u=t.prevWasFocused,l=t.instancePrefix,c=e.options,d=e.value,p=e.menuIsOpen,f=e.inputValue,v=e.isMulti,m=Je(d),h={};if(n&&(d!==n.value||c!==n.options||p!==n.menuIsOpen||f!==n.inputValue)){var g=p?function(e,t){return kn(Dn(e,t))}(e,m):[],b=p?Vn(Dn(e,m),"".concat(l,"-option")):[],y=o?function(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o<t.length)return t[o]}return null}(t,m):null,O=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);h={selectValue:m,focusedOption:O,focusedOptionId:Ln(b,O),focusableOptionsWithIds:b,focusedValue:y,clearFocusValueOnUpdate:!1}}var C=null!=r&&e!==n?{inputIsHidden:r,inputIsHiddenAfterUpdate:void 0}:{},w=i,E=a&&u;return a&&!E&&(w={value:pt(v,m,m[0]||null),options:m,action:"initial-input-focus"},E=!u),"initial-input-focus"===(null==i?void 0:i.action)&&(w=null),s(s(s({},h),C),{},{prevProps:e,ariaSelection:w,prevWasFocused:E})}}]),n}(r.Component);Un.defaultProps=Pn;var zn=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"],Bn=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"],Wn=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Kn=function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),o=String(t.getOptionValue(e)).toLowerCase(),r=String(t.getOptionLabel(e)).toLowerCase();return o===n||r===n},Yn={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,o){return!(!e||t.some((function(t){return Kn(e,t,o)}))||n.some((function(t){return Kn(e,t,o)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}},Gn=(0,r.forwardRef)((function(e,t){var n=function(e){var t=e.defaultOptions,n=void 0!==t&&t,o=e.cacheOptions,a=void 0!==o&&o,u=e.loadOptions;e.options;var l=e.isLoading,c=void 0!==l&&l,d=e.onInputChange,p=e.filterOption,f=void 0===p?null:p,v=ze(e,zn),m=v.inputValue,h=(0,r.useRef)(void 0),g=(0,r.useRef)(!1),b=je((0,r.useState)(Array.isArray(n)?n:void 0),2),y=b[0],O=b[1],C=je((0,r.useState)(void 0!==m?m:""),2),w=C[0],E=C[1],S=je((0,r.useState)(!0===n),2),x=S[0],I=S[1],P=je((0,r.useState)(void 0),2),M=P[0],D=P[1],k=je((0,r.useState)([]),2),V=k[0],R=k[1],L=je((0,r.useState)(!1),2),T=L[0],F=L[1],A=je((0,r.useState)({}),2),N=A[0],H=A[1],_=je((0,r.useState)(void 0),2),$=_[0],j=_[1],U=je((0,r.useState)(void 0),2),z=U[0],B=U[1];a!==z&&(H({}),B(a)),n!==$&&(O(Array.isArray(n)?n:void 0),j(n)),(0,r.useEffect)((function(){return g.current=!0,function(){g.current=!1}}),[]);var W=(0,r.useCallback)((function(e,t){if(!u)return t();var n=u(e,t);n&&"function"==typeof n.then&&n.then(t,(function(){return t()}))}),[u]);(0,r.useEffect)((function(){!0===n&&W(w,(function(e){g.current&&(O(e||[]),I(!!h.current))}))}),[]);var K=(0,r.useCallback)((function(e,t){var n=function(e,t,n){if(n){var o=n(e,t);if("string"==typeof o)return o}return e}(e,t,d);if(!n)return h.current=void 0,E(""),D(""),R([]),I(!1),void F(!1);if(a&&N[n])E(n),D(n),R(N[n]),I(!1),F(!1);else{var o=h.current={};E(n),I(!0),F(!M),W(n,(function(e){g&&o===h.current&&(h.current=void 0,I(!1),D(n),R(e||[]),F(!1),H(e?s(s({},N),{},(0,i.c)({},n,e)):N))}))}}),[a,W,M,N,d]),Y=T?[]:w&&M?V:y||[];return s(s({},v),{},{options:Y,isLoading:x||c,onInputChange:K,filterOption:f})}(e),a=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,o=e.defaultMenuIsOpen,i=void 0!==o&&o,a=e.defaultValue,u=void 0===a?null:a,l=e.inputValue,c=e.menuIsOpen,d=e.onChange,p=e.onInputChange,f=e.onMenuClose,v=e.onMenuOpen,m=e.value,h=ze(e,Bn),g=je((0,r.useState)(void 0!==l?l:n),2),b=g[0],y=g[1],O=je((0,r.useState)(void 0!==c?c:i),2),C=O[0],w=O[1],E=je((0,r.useState)(void 0!==m?m:u),2),S=E[0],x=E[1],I=(0,r.useCallback)((function(e,t){"function"==typeof d&&d(e,t),x(e)}),[d]),P=(0,r.useCallback)((function(e,t){var n;"function"==typeof p&&(n=p(e,t)),y(void 0!==n?n:e)}),[p]),M=(0,r.useCallback)((function(){"function"==typeof v&&v(),w(!0)}),[v]),D=(0,r.useCallback)((function(){"function"==typeof f&&f(),w(!1)}),[f]),k=void 0!==l?l:b,V=void 0!==c?c:C,R=void 0!==m?m:S;return s(s({},h),{},{inputValue:k,menuIsOpen:V,onChange:I,onInputChange:P,onMenuClose:D,onMenuOpen:M,value:R})}(n),u=function(e){var t=e.allowCreateWhileLoading,n=void 0!==t&&t,o=e.createOptionPosition,i=void 0===o?"last":o,a=e.formatCreateLabel,u=void 0===a?Yn.formatCreateLabel:a,l=e.isValidNewOption,c=void 0===l?Yn.isValidNewOption:l,d=e.getNewOptionData,p=void 0===d?Yn.getNewOptionData:d,f=e.onCreateOption,m=e.options,h=void 0===m?[]:m,g=e.onChange,b=ze(e,Wn),y=b.getOptionValue,O=void 0===y?Sn:y,C=b.getOptionLabel,w=void 0===C?En:C,E=b.inputValue,S=b.isLoading,x=b.isMulti,I=b.value,P=b.name,M=(0,r.useMemo)((function(){return c(E,Je(I),h,{getOptionValue:O,getOptionLabel:w})?p(E,u(E)):void 0}),[u,p,w,O,E,c,h,I]),D=(0,r.useMemo)((function(){return!n&&S||!M?h:"first"===i?[M].concat(v(h)):[].concat(v(h),[M])}),[n,i,S,M,h]),k=(0,r.useCallback)((function(e,t){if("select-option"!==t.action)return g(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]!==M)g(e,t);else if(f)f(E);else{var o=p(E,E),r={action:"create-option",name:P,option:o};g(pt(x,[].concat(v(Je(I)),[o]),o),r)}}),[p,E,x,P,M,f,g,I]);return s(s({},b),{},{options:D,onChange:k})}(a);return r.createElement(Un,(0,o.c)({ref:t},u))})),qn=Gn},9784:(e,t,n)=>{"use strict";n.d(t,{uO:()=>fe,kP:()=>ce,y:()=>pe,mc:()=>le,a8:()=>ue,Ss:()=>ae,OY:()=>de,mf:()=>se});var o=n(5072),r=n(1280),i=n(3608),a=n(304),s=n(9016),u=n(1340),l=n(4664),c=n(1480),d=n(2600),p=n(1720);const f="dismissableLayer.update";let v;const m=(0,r.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h=(0,r.forwardRef)(((e,t)=>{var n;const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:u,onPointerDownOutside:l,onFocusOutside:h,onInteractOutside:y,onDismiss:O,...C}=e,w=(0,r.useContext)(m),[E,S]=(0,r.useState)(null),x=null!==(n=null==E?void 0:E.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,I]=(0,r.useState)({}),P=(0,a.q)(t,(e=>S(e))),M=Array.from(w.layers),[D]=[...w.layersWithOutsidePointerEventsDisabled].slice(-1),k=M.indexOf(D),V=E?M.indexOf(E):-1,R=w.layersWithOutsidePointerEventsDisabled.size>0,L=V>=k,T=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=(0,d.Y)(e),o=(0,r.useRef)(!1),i=(0,r.useRef)((()=>{}));return(0,r.useEffect)((()=>{const e=e=>{if(e.target&&!o.current){const r={originalEvent:e};function a(){b("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=a,t.addEventListener("click",i.current,{once:!0})):a()}else t.removeEventListener("click",i.current);o.current=!1},r=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(r),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}}),[t,n]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,n=[...w.branches].some((e=>e.contains(t)));L&&!n&&(null==l||l(e),null==y||y(e),e.defaultPrevented||null==O||O())}),x),F=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=(0,d.Y)(e),o=(0,r.useRef)(!1);return(0,r.useEffect)((()=>{const e=e=>{e.target&&!o.current&&b("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}((e=>{const t=e.target;[...w.branches].some((e=>e.contains(t)))||(null==h||h(e),null==y||y(e),e.defaultPrevented||null==O||O())}),x);return(0,p.O)((e=>{V===w.layers.size-1&&(null==u||u(e),!e.defaultPrevented&&O&&(e.preventDefault(),O()))}),x),(0,r.useEffect)((()=>{if(E)return s&&(0===w.layersWithOutsidePointerEventsDisabled.size&&(v=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),w.layersWithOutsidePointerEventsDisabled.add(E)),w.layers.add(E),g(),()=>{s&&1===w.layersWithOutsidePointerEventsDisabled.size&&(x.body.style.pointerEvents=v)}}),[E,x,s,w]),(0,r.useEffect)((()=>()=>{E&&(w.layers.delete(E),w.layersWithOutsidePointerEventsDisabled.delete(E),g())}),[E,w]),(0,r.useEffect)((()=>{const e=()=>I({});return document.addEventListener(f,e),()=>document.removeEventListener(f,e)}),[]),(0,r.createElement)(c.K0.div,(0,o.c)({},C,{ref:P,style:{pointerEvents:R?L?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.K)(e.onFocusCapture,F.onFocusCapture),onBlurCapture:(0,i.K)(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:(0,i.K)(e.onPointerDownCapture,T.onPointerDownCapture)}))}));function g(){const e=new CustomEvent(f);document.dispatchEvent(e)}function b(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?(0,c.G2)(r,i):r.dispatchEvent(i)}const y="focusScope.autoFocusOnMount",O="focusScope.autoFocusOnUnmount",C={bubbles:!1,cancelable:!0},w=(0,r.forwardRef)(((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:u,...l}=e,[p,f]=(0,r.useState)(null),v=(0,d.Y)(s),m=(0,d.Y)(u),h=(0,r.useRef)(null),g=(0,a.q)(t,(e=>f(e))),b=(0,r.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,r.useEffect)((()=>{if(i){function e(e){if(b.paused||!p)return;const t=e.target;p.contains(t)?h.current=t:I(h.current,{select:!0})}function t(e){if(b.paused||!p)return;const t=e.relatedTarget;null!==t&&(p.contains(t)||I(h.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&I(p)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const o=new MutationObserver(n);return p&&o.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),o.disconnect()}}}),[i,p,b.paused]),(0,r.useEffect)((()=>{if(p){P.add(b);const e=document.activeElement;if(!p.contains(e)){const t=new CustomEvent(y,C);p.addEventListener(y,v),p.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(I(o,{select:t}),document.activeElement!==n)return}(E(p).filter((e=>"A"!==e.tagName)),{select:!0}),document.activeElement===e&&I(p))}return()=>{p.removeEventListener(y,v),setTimeout((()=>{const t=new CustomEvent(O,C);p.addEventListener(O,m),p.dispatchEvent(t),t.defaultPrevented||I(null!=e?e:document.body,{select:!0}),p.removeEventListener(O,m),P.remove(b)}),0)}}}),[p,v,m,b]);const w=(0,r.useCallback)((e=>{if(!n&&!i)return;if(b.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=E(e);return[S(t,e),S(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&I(i,{select:!0})):(e.preventDefault(),n&&I(r,{select:!0})):o===t&&e.preventDefault()}}),[n,i,b.paused]);return(0,r.createElement)(c.K0.div,(0,o.c)({tabIndex:-1},l,{ref:g,onKeyDown:w}))}));function E(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function S(e,t){for(const n of e)if(!x(n,{upTo:t}))return n}function x(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function I(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const P=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=M(e,t),e.unshift(t)},remove(t){var n;e=M(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function M(e,t){const n=[...e],o=n.indexOf(t);return-1!==o&&n.splice(o,1),n}var D=n(1034);const k=(0,r.forwardRef)(((e,t)=>{var n;const{container:i=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...a}=e;return i?D.createPortal((0,r.createElement)(c.K0.div,(0,o.c)({},a,{ref:t})),i):null}));var V=n(6860),R=n(4619),L=n(9179),T=n(1155),F=n(2896);const A="Dialog",[N,H]=(0,s._)(A),[_,$]=N(A),j=(0,r.forwardRef)(((e,t)=>{const{__scopeDialog:n,...s}=e,u=$("DialogTrigger",n),l=(0,a.q)(t,u.triggerRef);return(0,r.createElement)(c.K0.button,(0,o.c)({type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":oe(u.open)},s,{ref:l,onClick:(0,i.K)(e.onClick,u.onOpenToggle)}))})),U="DialogPortal",[z,B]=N(U,{forceMount:void 0}),W="DialogOverlay",K=(0,r.forwardRef)(((e,t)=>{const n=B(W,e.__scopeDialog),{forceMount:i=n.forceMount,...a}=e,s=$(W,e.__scopeDialog);return s.modal?(0,r.createElement)(V.s,{present:i||s.open},(0,r.createElement)(Y,(0,o.c)({},a,{ref:t}))):null})),Y=(0,r.forwardRef)(((e,t)=>{const{__scopeDialog:n,...i}=e,a=$(W,n);return(0,r.createElement)(L.c,{as:F.k$,allowPinchZoom:!0,shards:[a.contentRef]},(0,r.createElement)(c.K0.div,(0,o.c)({"data-state":oe(a.open)},i,{ref:t,style:{pointerEvents:"auto",...i.style}})))})),G="DialogContent",q=(0,r.forwardRef)(((e,t)=>{const n=B(G,e.__scopeDialog),{forceMount:i=n.forceMount,...a}=e,s=$(G,e.__scopeDialog);return(0,r.createElement)(V.s,{present:i||s.open},s.modal?(0,r.createElement)(X,(0,o.c)({},a,{ref:t})):(0,r.createElement)(Z,(0,o.c)({},a,{ref:t})))})),X=(0,r.forwardRef)(((e,t)=>{const n=$(G,e.__scopeDialog),s=(0,r.useRef)(null),u=(0,a.q)(t,n.contentRef,s);return(0,r.useEffect)((()=>{const e=s.current;if(e)return(0,T.gP)(e)}),[]),(0,r.createElement)(J,(0,o.c)({},e,{ref:u,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.K)(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:(0,i.K)(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:(0,i.K)(e.onFocusOutside,(e=>e.preventDefault()))}))})),Z=(0,r.forwardRef)(((e,t)=>{const n=$(G,e.__scopeDialog),i=(0,r.useRef)(!1),a=(0,r.useRef)(!1);return(0,r.createElement)(J,(0,o.c)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,r;null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented||(i.current||null===(r=n.triggerRef.current)||void 0===r||r.focus(),t.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:t=>{var o,r;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));const s=t.target;(null===(r=n.triggerRef.current)||void 0===r?void 0:r.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}}))})),J=(0,r.forwardRef)(((e,t)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:u,...l}=e,c=$(G,n),d=(0,r.useRef)(null),p=(0,a.q)(t,d);return(0,R.SS)(),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(w,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:u},(0,r.createElement)(h,(0,o.c)({role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":oe(c.open)},l,{ref:p,onDismiss:()=>c.onOpenChange(!1)}))),!1)})),Q="DialogTitle",ee=(0,r.forwardRef)(((e,t)=>{const{__scopeDialog:n,...i}=e,a=$(Q,n);return(0,r.createElement)(c.K0.h2,(0,o.c)({id:a.titleId},i,{ref:t}))})),te=(0,r.forwardRef)(((e,t)=>{const{__scopeDialog:n,...i}=e,a=$("DialogDescription",n);return(0,r.createElement)(c.K0.p,(0,o.c)({id:a.descriptionId},i,{ref:t}))})),ne=(0,r.forwardRef)(((e,t)=>{const{__scopeDialog:n,...a}=e,s=$("DialogClose",n);return(0,r.createElement)(c.K0.button,(0,o.c)({type:"button"},a,{ref:t,onClick:(0,i.K)(e.onClick,(()=>s.onOpenChange(!1)))}))}));function oe(e){return e?"open":"closed"}const[re,ie]=(0,s.G)("DialogTitleWarning",{contentName:G,titleName:Q,docsSlug:"dialog"}),ae=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,c=(0,r.useRef)(null),d=(0,r.useRef)(null),[p=!1,f]=(0,l.W)({prop:o,defaultProp:i,onChange:a});return(0,r.createElement)(_,{scope:t,triggerRef:c,contentRef:d,contentId:(0,u.I)(),titleId:(0,u.I)(),descriptionId:(0,u.I)(),open:p,onOpenChange:f,onOpenToggle:(0,r.useCallback)((()=>f((e=>!e))),[f]),modal:s},n)},se=j,ue=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:i}=e,a=$(U,t);return(0,r.createElement)(z,{scope:t,forceMount:n},r.Children.map(o,(e=>(0,r.createElement)(V.s,{present:n||a.open},(0,r.createElement)(k,{asChild:!0,container:i},e)))))},le=K,ce=q,de=ee,pe=te,fe=ne}}]);