index.js
110 KB
!function(){"use strict";var e,t={178:function(e,t,n){var o=window.wp.blocks;function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function i(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}function a(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(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.")}()}function s(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,_x,i,a=[],_n=!0,s=!1;try{if(_x=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;_n=!1}else for(;!(_n=(o=_x.call(n)).done)&&(a.push(o.value),a.length!==t);_n=!0);}catch(e){s=!0,r=e}finally{try{if(!_n&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return a}}(e,t)||i(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 l=window.wp.element,u=window.wp.i18n,c=window.lodash,p=window.wp.url,d=window.wp.blockEditor,f=window.wp.serverSideRender,m=n.n(f),h=window.wp.components,v=window.wp.apiFetch,g=n.n(v);function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},b.apply(this,arguments)}var y=window.React;function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function E(e){var t=function(e,t){if("object"!==w(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==w(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===w(t)?t:String(t)}function O(e,t,n){return(t=E(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(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 C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,E(o.key),o)}}function x(e,t){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},x(e,t)}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=M(e);if(t){var r=M(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===w(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}var P=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}(),V=Math.abs,I=String.fromCharCode,z=Object.assign;function R(e){return e.trim()}function T(e,t,n){return e.replace(t,n)}function D(e,t){return e.indexOf(t)}function N(e,t){return 0|e.charCodeAt(t)}function A(e,t,n){return e.slice(t,n)}function F(e){return e.length}function L(e){return e.length}function j(e,t){return t.push(e),e}var H=1,B=1,$=0,U=0,W=0,G="";function Y(e,t,n,o,r,i,a){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:H,column:B,length:a,return:""}}function q(e,t){return z(Y("",null,null,"",null,null,0),e,{length:-e.length},t)}function Z(){return W=U>0?N(G,--U):0,B--,10===W&&(B=1,H--),W}function X(){return W=U<$?N(G,U++):0,B++,10===W&&(B=1,H++),W}function K(){return N(G,U)}function J(){return U}function Q(e,t){return A(G,e,t)}function ee(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 te(e){return H=B=1,$=F(G=e),U=0,[]}function ne(e){return G="",e}function oe(e){return R(Q(U-1,ae(91===e?e+2:40===e?e+1:e)))}function re(e){for(;(W=K())&&W<33;)X();return ee(e)>2||ee(W)>3?"":" "}function ie(e,t){for(;--t&&X()&&!(W<48||W>102||W>57&&W<65||W>70&&W<97););return Q(e,J()+(t<6&&32==K()&&32==X()))}function ae(e){for(;X();)switch(W){case e:return U;case 34:case 39:34!==e&&39!==e&&ae(W);break;case 40:41===e&&ae(e);break;case 92:X()}return U}function se(e,t){for(;X()&&e+W!==57&&(e+W!==84||47!==K()););return"/*"+Q(t,U-1)+"*"+I(47===e?e:X())}function le(e){for(;!ee(K());)X();return Q(e,U)}var ue="-ms-",ce="-moz-",pe="-webkit-",de="comm",fe="rule",me="decl",he="@import",ve="@keyframes";function ge(e,t){for(var n="",o=L(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function be(e,t,n,o){switch(e.type){case he:case me:return e.return=e.return||e.value;case de:return"";case ve:return e.return=e.value+"{"+ge(e.children,o)+"}";case fe:e.value=e.props.join(",")}return F(n=ge(e.children,o))?e.return=e.value+"{"+n+"}":""}function ye(e){return ne(we("",null,null,null,[""],e=te(e),0,[0],e))}function we(e,t,n,o,r,i,a,s,l){for(var u=0,c=0,p=a,d=0,f=0,m=0,h=1,v=1,g=1,b=0,y="",w=r,E=i,O=o,S=y;v;)switch(m=b,b=X()){case 40:if(108!=m&&58==N(S,p-1)){-1!=D(S+=T(oe(b),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:S+=oe(b);break;case 9:case 10:case 13:case 32:S+=re(m);break;case 92:S+=ie(J()-1,7);continue;case 47:switch(K()){case 42:case 47:j(Oe(se(X(),J()),t,n),l);break;default:S+="/"}break;case 123*h:s[u++]=F(S)*g;case 125*h:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+c:f>0&&F(S)-p&&j(f>32?Se(S+";",o,n,p-1):Se(T(S," ","")+";",o,n,p-2),l);break;case 59:S+=";";default:if(j(O=Ee(S,t,n,u,c,r,s,y,w=[],E=[],p),i),123===b)if(0===c)we(S,t,O,O,w,i,p,s,E);else switch(99===d&&110===N(S,3)?100:d){case 100:case 109:case 115:we(e,O,O,o&&j(Ee(e,O,O,0,0,r,s,y,r,w=[],p),E),r,E,p,s,o?w:E);break;default:we(S,O,O,O,[""],E,0,s,E)}}u=c=f=0,h=g=1,y=S="",p=a;break;case 58:p=1+F(S),f=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==Z())continue;switch(S+=I(b),b*h){case 38:g=c>0?1:(S+="\f",-1);break;case 44:s[u++]=(F(S)-1)*g,g=1;break;case 64:45===K()&&(S+=oe(X())),d=K(),c=p=F(y=S+=le(J())),b++;break;case 45:45===m&&2==F(S)&&(h=0)}}return i}function Ee(e,t,n,o,r,i,a,s,l,u,c){for(var p=r-1,d=0===r?i:[""],f=L(d),m=0,h=0,v=0;m<o;++m)for(var g=0,b=A(e,p+1,p=V(h=a[m])),y=e;g<f;++g)(y=R(h>0?d[g]+" "+b:T(b,/&\f/g,d[g])))&&(l[v++]=y);return Y(e,t,n,0===r?fe:s,l,u,c)}function Oe(e,t,n){return Y(e,t,n,de,I(W),A(e,2,-2),0)}function Se(e,t,n,o){return Y(e,t,n,me,A(e,0,o),A(e,o+1,-1),o)}var Ce=function(e,t,n){for(var o=0,r=0;o=r,r=K(),38===o&&12===r&&(t[n]=1),!ee(r);)X();return Q(e,U)},ke=new WeakMap,xe=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)||ke.get(n))&&!o){ke.set(e,!0);for(var r=[],i=function(e,t){return ne(function(e,t){var n=-1,o=44;do{switch(ee(o)){case 0:38===o&&12===K()&&(t[n]=1),e[n]+=Ce(U-1,t,n);break;case 2:e[n]+=oe(o);break;case 4:if(44===o){e[++n]=58===K()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=I(o)}}while(o=X());return e}(te(e),t))}(t,r),a=n.props,s=0,l=0;s<i.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=r[s]?i[s].replace(/&\f/g,a[u]):a[u]+" "+i[s]}}},Me=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function _e(e,t){switch(function(e,t){return 45^N(e,0)?(((t<<2^N(e,0))<<2^N(e,1))<<2^N(e,2))<<2^N(e,3):0}(e,t)){case 5103:return pe+"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 pe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return pe+e+ce+e+ue+e+e;case 6828:case 4268:return pe+e+ue+e+e;case 6165:return pe+e+ue+"flex-"+e+e;case 5187:return pe+e+T(e,/(\w+).+(:[^]+)/,pe+"box-$1$2"+ue+"flex-$1$2")+e;case 5443:return pe+e+ue+"flex-item-"+T(e,/flex-|-self/,"")+e;case 4675:return pe+e+ue+"flex-line-pack"+T(e,/align-content|flex-|-self/,"")+e;case 5548:return pe+e+ue+T(e,"shrink","negative")+e;case 5292:return pe+e+ue+T(e,"basis","preferred-size")+e;case 6060:return pe+"box-"+T(e,"-grow","")+pe+e+ue+T(e,"grow","positive")+e;case 4554:return pe+T(e,/([^-])(transform)/g,"$1"+pe+"$2")+e;case 6187:return T(T(T(e,/(zoom-|grab)/,pe+"$1"),/(image-set)/,pe+"$1"),e,"")+e;case 5495:case 3959:return T(e,/(image-set\([^]*)/,pe+"$1$`$1");case 4968:return T(T(e,/(.+:)(flex-)?(.*)/,pe+"box-pack:$3"+ue+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+pe+e+e;case 4095:case 3583:case 4068:case 2532:return T(e,/(.+)-inline(.+)/,pe+"$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(F(e)-1-t>6)switch(N(e,t+1)){case 109:if(45!==N(e,t+4))break;case 102:return T(e,/(.+:)(.+)-([^]+)/,"$1"+pe+"$2-$3$1"+ce+(108==N(e,t+3)?"$3":"$2-$3"))+e;case 115:return~D(e,"stretch")?_e(T(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==N(e,t+1))break;case 6444:switch(N(e,F(e)-3-(~D(e,"!important")&&10))){case 107:return T(e,":",":"+pe)+e;case 101:return T(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pe+(45===N(e,14)?"inline-":"")+"box$3$1"+pe+"$2$3$1"+ue+"$2box$3")+e}break;case 5936:switch(N(e,t+11)){case 114:return pe+e+ue+T(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pe+e+ue+T(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pe+e+ue+T(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pe+e+ue+e+e}return e}var Pe=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case me:e.return=_e(e.value,e.length);break;case ve:return ge([q(e,{value:T(e.value,"@","@"+pe)})],o);case fe: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 ge([q(e,{props:[T(t,/:(read-\w+)/,":"+ce+"$1")]})],o);case"::placeholder":return ge([q(e,{props:[T(t,/:(plac\w+)/,":"+pe+"input-$1")]}),q(e,{props:[T(t,/:(plac\w+)/,":"+ce+"$1")]}),q(e,{props:[T(t,/:(plac\w+)/,ue+"input-$1")]})],o)}return""}))}}],Ve=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||Pe,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 l,u,c,p,d=[be,(p=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&p(e)})],f=(u=[xe,Me].concat(i,d),c=L(u),function(e,t,n,o){for(var r="",i=0;i<c;i++)r+=u[i](e,t,n,o)||"";return r});r=function(e,t,n,o){l=n,ge(ye(e?e+"{"+t.styles+"}":t.styles),f),o&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new P({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 m.sheet.hydrate(s),m},Ie=function(e,t,n){var o=e.key+"-"+t.name;!1===n&&void 0===e.registered[o]&&(e.registered[o]=t.styles)},ze=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)},Re={animationIterationCount: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},Te=/[A-Z]|^ms/g,De=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ne=function(e){return 45===e.charCodeAt(1)},Ae=function(e){return null!=e&&"boolean"!=typeof e},Fe=function(e){var t=Object.create(null);return function(e){return void 0===t[e]&&(t[e]=Ne(n=e)?n:n.replace(Te,"-$&").toLowerCase()),t[e];var n}}(),Le=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(De,(function(e,t,n){return He={name:t,styles:n,next:He},t}))}return 1===Re[e]||Ne(e)||"number"!=typeof t||0===t?t:t+"px"};function je(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 He={name:n.name,styles:n.styles,next:He},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)He={name:o.name,styles:o.styles,next:He},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+=je(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]+"}":Ae(a)&&(o+=Fe(i)+":"+Le(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=je(e,t,a);switch(i){case"animation":case"animationName":o+=Fe(i)+":"+s+";";break;default:o+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)Ae(a[l])&&(o+=Fe(i)+":"+Le(i,a[l])+";")}return o}(e,t,n);case"function":if(void 0!==e){var r=He,i=n(e);return He=r,je(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var He,Be=/label:\s*([^\s;\n{]+)\s*(;|$)/g,$e=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="";He=void 0;var i=e[0];null==i||void 0===i.raw?(o=!1,r+=je(n,t,i)):r+=i[0];for(var a=1;a<e.length;a++)r+=je(n,t,e[a]),o&&(r+=i[a]);Be.lastIndex=0;for(var s,l="";null!==(s=Be.exec(r));)l+="-"+s[1];return{name:ze(r)+l,styles:r,next:He}},Ue=!!y.useInsertionEffect&&y.useInsertionEffect,We=Ue||function(e){return e()},Ge=(Ue||y.useLayoutEffect,{}.hasOwnProperty),Ye=(0,y.createContext)("undefined"!=typeof HTMLElement?Ve({key:"css"}):null);Ye.Provider;var qe=function(e){return(0,y.forwardRef)((function(t,n){var o=(0,y.useContext)(Ye);return e(t,o,n)}))},Ze=(0,y.createContext)({}),Xe="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ke=function(e,t){var n={};for(var o in t)Ge.call(t,o)&&(n[o]=t[o]);return n[Xe]=e,n},Je=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;return Ie(t,n,o),We((function(){return function(e,t,n){Ie(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},Qe=qe((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var r=e[Xe],i=[o],a="";"string"==typeof e.className?a=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,i,e.className):null!=e.className&&(a=e.className+" ");var s=$e(i,void 0,(0,y.useContext)(Ze));a+=t.key+"-"+s.name;var l={};for(var u in e)Ge.call(e,u)&&"css"!==u&&u!==Xe&&(l[u]=e[u]);return l.ref=n,l.className=a,(0,y.createElement)(y.Fragment,null,(0,y.createElement)(Je,{cache:t,serialized:s,isStringTag:"string"==typeof r}),(0,y.createElement)(r,l))}));n(679);var et=function(e,t){var n=arguments;if(null==t||!Ge.call(t,"css"))return y.createElement.apply(void 0,n);var o=n.length,r=new Array(o);r[0]=Qe,r[1]=Ke(e,t);for(var i=2;i<o;i++)r[i]=n[i];return y.createElement.apply(null,r)};function tt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $e(t)}function nt(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(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 ot=window.ReactDOM;Math.min,Math.max;function rt(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function it(e){return rt(e).getComputedStyle(e)}["top","right","bottom","left"].reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]),Math.min,Math.max;const at=Math.round;function st(e){return pt(e)?(e.nodeName||"").toLowerCase():""}let lt;function ut(e){return e instanceof rt(e).HTMLElement}function ct(e){return e instanceof rt(e).Element}function pt(e){return e instanceof rt(e).Node}function dt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof rt(e).ShadowRoot||e instanceof ShadowRoot)}function ft(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=it(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function mt(){return/^((?!chrome|android).)*safari/i.test(function(){if(lt)return lt;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(lt=e.brands.map((e=>e.brand+"/"+e.version)).join(" "),lt):navigator.userAgent}())}function ht(e){return ct(e)?e:e.contextElement}const vt={x:1,y:1};function gt(e){const t=ht(e);if(!ut(t))return vt;const n=t.getBoundingClientRect(),{width:o,height:r,fallback:i}=function(e){const t=it(e);let n=parseFloat(t.width),o=parseFloat(t.height);const r=e.offsetWidth,i=e.offsetHeight,a=at(n)!==r||at(o)!==i;return a&&(n=r,o=i),{width:n,height:o,fallback:a}}(t);let a=(i?at(n.width):n.width)/o,s=(i?at(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}function bt(e,t,n,o){var r,i;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),s=ht(e);let l=vt;t&&(o?ct(o)&&(l=gt(o)):l=gt(e));const u=s?rt(s):window,c=mt()&&n;let p=(a.left+(c&&(null==(r=u.visualViewport)?void 0:r.offsetLeft)||0))/l.x,d=(a.top+(c&&(null==(i=u.visualViewport)?void 0:i.offsetTop)||0))/l.y,f=a.width/l.x,m=a.height/l.y;if(s){const e=rt(s),t=o&&ct(o)?rt(o):o;let n=e.frameElement;for(;n&&o&&t!==e;){const e=gt(n),t=n.getBoundingClientRect(),o=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(o.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(o.paddingTop))*e.y,p*=e.x,d*=e.y,f*=e.x,m*=e.y,p+=t.x,d+=t.y,n=rt(n).frameElement}}return{width:f,height:m,top:d,right:p+f,bottom:d+m,left:p,x:p,y:d}}function yt(e){if("html"===st(e))return e;const t=e.assignedSlot||e.parentNode||dt(e)&&e.host||function(e){return((pt(e)?e.ownerDocument:e.document)||window.document).documentElement}(e);return dt(t)?t.host:t}function wt(e){const t=yt(e);return function(e){return["html","body","#document"].includes(st(e))}(t)?t.ownerDocument.body:ut(t)&&ft(t)?t:wt(t)}function Et(e,t){var n;void 0===t&&(t=[]);const o=wt(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=rt(o);return r?t.concat(i,i.visualViewport||[],ft(o)?o:[]):t.concat(o,Et(o))}var Ot=y.useLayoutEffect,St=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Ct=function(){};function kt(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function xt(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(kt(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Mt=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===w(e)&&null!==e?[e]:[];var t},_t=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,C({},nt(e,St))},Pt=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 Vt(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function It(e){return Vt(e)?window.pageYOffset:e.scrollTop}function zt(e,t){Vt(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]:Ct,r=It(e),i=t-r,a=0;!function t(){var s,l=(s=a+=10,i*((s=s/n-1)*s*s+1)+r);zt(e,l),a<n?window.requestAnimationFrame(t):o(e)}()}function Tt(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=t.offsetHeight/3;o.bottom+r>n.bottom?zt(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):o.top-r<n.top&&zt(e,Math.max(t.offsetTop-r,0))}function Dt(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Nt=!1,At={get passive(){return Nt=!0}},Ft="undefined"!=typeof window?window:{};Ft.addEventListener&&Ft.removeEventListener&&(Ft.addEventListener("p",Ct,At),Ft.removeEventListener("p",Ct,!1));var Lt=Nt;function jt(e){return null!=e}function Ht(e,t,n){return e?t:n}var Bt=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=s(e,1)[0];return!n.includes(t)}));return r.reduce((function(e,t){var n=s(t,2),o=n[0],r=n[1];return e[o]=r,e}),{})};var $t=function(e){return"auto"===e?"bottom":e},Ut=(0,y.createContext)(null),Wt=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,r=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,l=e.theme,u=((0,y.useContext)(Ut)||{}).setPortalPlacement,c=(0,y.useRef)(null),p=s((0,y.useState)(o),2),d=p[0],f=p[1],m=s((0,y.useState)(null),2),h=m[0],v=m[1],g=l.spacing.controlHeight;return Ot((function(){var e=c.current;if(e){var t="fixed"===i,s=function(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,r=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=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),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c,p=l.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,m=d.height,h=d.top,v=n.offsetParent.getBoundingClientRect().top,g=a||Vt(c=l)?window.innerHeight:c.clientHeight,b=It(l),y=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),E=v-w,O=g-h,S=E+b,C=p-b-h,k=f-g+b+y,x=b+h-w,M=160;switch(r){case"auto":case"bottom":if(O>=m)return{placement:"bottom",maxHeight:t};if(C>=m&&!a)return i&&Rt(l,k,M),{placement:"bottom",maxHeight:t};if(!a&&C>=o||a&&O>=o)return i&&Rt(l,k,M),{placement:"bottom",maxHeight:a?O-y:C-y};if("auto"===r||a){var _=t,P=a?E:S;return P>=o&&(_=Math.min(P-y-s,t)),{placement:"top",maxHeight:_}}if("bottom"===r)return i&&zt(l,k),{placement:"bottom",maxHeight:t};break;case"top":if(E>=m)return{placement:"top",maxHeight:t};if(S>=m&&!a)return i&&Rt(l,x,M),{placement:"top",maxHeight:t};if(!a&&S>=o||a&&E>=o){var V=t;return(!a&&S>=o||a&&E>=o)&&(V=a?E-w:S-w),i&&Rt(l,x,M),{placement:"top",maxHeight:V}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return u}({maxHeight:o,menuEl:e,minHeight:n,placement:r,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:g});f(s.maxHeight),v(s.placement),null==u||u(s.placement)}}),[o,r,i,a,n,u,g]),t({ref:c,placerProps:C(C({},e),{},{placement:h||$t(r),maxHeight:d})})},Gt=function(e,t){var n=e.theme,o=n.spacing.baseUnit,r=n.colors;return C({textAlign:"center"},t?{}:{color:r.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},Yt=Gt,qt=Gt,Zt=function(e){var t=e.children,n=e.innerProps;return et("div",b({},Pt(e,"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),t)};Zt.defaultProps={children:"No options"};var Xt=function(e){var t=e.children,n=e.innerProps;return et("div",b({},Pt(e,"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),t)};Xt.defaultProps={children:"Loading..."};var Kt,Jt,Qt,en=["size"],tn={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},nn=function(e){var t=e.size,n=nt(e,en);return et("svg",b({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:tn},n))},on=function(e){return et(nn,b({size:20},e),et("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"}))},rn=function(e){return et(nn,b({size:20},e),et("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"}))},an=function(e,t){var n=e.isFocused,o=e.theme,r=o.spacing.baseUnit,i=o.colors;return C({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*r,":hover":{color:n?i.neutral80:i.neutral40}})},sn=an,ln=an,un=function(){var e=tt.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_"}}}(Kt||(Jt=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Qt||(Qt=Jt.slice(0)),Kt=Object.freeze(Object.defineProperties(Jt,{raw:{value:Object.freeze(Qt)}})))),cn=function(e){var t=e.delay,n=e.offset;return et("span",{css:tt({animation:"".concat(un," 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"},"","")})},pn=function(e){var t=e.innerProps,n=e.isRtl;return et("div",b({},Pt(e,"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),et(cn,{delay:0,offset:n}),et(cn,{delay:160,offset:!0}),et(cn,{delay:320,offset:!n}))};pn.defaultProps={size:4};var dn=["data"],fn=["innerRef","isDisabled","isHidden","inputClassName"],mn={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},hn={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":C({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},mn)},vn=function(e){return C({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},mn)},gn=function(e){var t=e.children,n=e.innerProps;return et("div",n,t)},bn={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return et("div",b({},Pt(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||et(on,null))},Control:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return et("div",b({ref:r},Pt(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":a}),i),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return et("div",b({},Pt(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||et(rn,null))},DownChevron:rn,CrossIcon:on,Group:function(e){var t=e.children,n=e.cx,o=e.getStyles,r=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,u=e.theme,c=e.selectProps;return et("div",b({},Pt(e,"group",{group:!0}),s),et(i,b({},a,{selectProps:c,theme:u,getStyles:o,getClassNames:r,cx:n}),l),et("div",null,t))},GroupHeading:function(e){var t=_t(e);t.data;var n=nt(t,dn);return et("div",b({},Pt(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return et("div",b({},Pt(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return et("span",b({},t,Pt(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,o=_t(e),r=o.innerRef,i=o.isDisabled,a=o.isHidden,s=o.inputClassName,l=nt(o,fn);return et("div",b({},Pt(e,"input",{"input-container":!0}),{"data-value":n||""}),et("input",b({className:t({input:!0},s),ref:r,style:vn(a),disabled:i},l)))},LoadingIndicator:pn,Menu:function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return et("div",b({},Pt(e,"menu",{menu:!0}),{ref:n},o),t)},MenuList:function(e){var t=e.children,n=e.innerProps,o=e.innerRef,r=e.isMulti;return et("div",b({},Pt(e,"menuList",{"menu-list":!0,"menu-list--is-multi":r}),{ref:o},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,o=e.controlElement,r=e.innerProps,i=e.menuPlacement,a=e.menuPosition,l=(0,y.useRef)(null),u=(0,y.useRef)(null),c=s((0,y.useState)($t(i)),2),p=c[0],d=c[1],f=(0,y.useMemo)((function(){return{setPortalPlacement:d}}),[]),m=s((0,y.useState)(null),2),h=m[0],v=m[1],g=(0,y.useCallback)((function(){if(o){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}}(o),t="fixed"===a?0:window.pageYOffset,n=e[p]+t;n===(null==h?void 0:h.offset)&&e.left===(null==h?void 0:h.rect.left)&&e.width===(null==h?void 0:h.rect.width)||v({offset:n,rect:e})}}),[o,a,p,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);Ot((function(){g()}),[g]);var w=(0,y.useCallback)((function(){"function"==typeof u.current&&(u.current(),u.current=null),o&&l.current&&(u.current=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=o,l=r&&!s,u=l||i?[...ct(e)?Et(e):e.contextElement?Et(e.contextElement):[],...Et(t)]:[];u.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let c,p=null;if(a){let o=!0;p=new ResizeObserver((()=>{o||n(),o=!1})),ct(e)&&!s&&p.observe(e),ct(e)||!e.contextElement||s||p.observe(e.contextElement),p.observe(t)}let d=s?bt(e):null;return s&&function t(){const o=bt(e);!d||o.x===d.x&&o.y===d.y&&o.width===d.width&&o.height===d.height||n(),d=o,c=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{l&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==(e=p)||e.disconnect(),p=null,s&&cancelAnimationFrame(c)}}(o,l.current,g,{elementResize:"ResizeObserver"in window}))}),[o,g]);Ot((function(){w()}),[w]);var E=(0,y.useCallback)((function(e){l.current=e,w()}),[w]);if(!t&&"fixed"!==a||!h)return null;var O=et("div",b({ref:E},Pt(C(C({},e),{},{offset:h.offset,position:a,rect:h.rect}),"menuPortal",{"menu-portal":!0}),r),n);return et(Ut.Provider,{value:f},t?(0,ot.createPortal)(O,t):O)},LoadingMessage:Xt,NoOptionsMessage:Zt,MultiValue:function(e){var t=e.children,n=e.components,o=e.data,r=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,l=n.Container,u=n.Label,c=n.Remove;return et(l,{data:o,innerProps:C(C({},Pt(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),r),selectProps:s},et(u,{data:o,innerProps:C({},Pt(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),et(c,{data:o,innerProps:C(C({},Pt(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:gn,MultiValueLabel:gn,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return et("div",b({role:"button"},n),t||et(on,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.innerRef,a=e.innerProps;return et("div",b({},Pt(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":r}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return et("div",b({},Pt(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,r=e.isRtl;return et("div",b({},Pt(e,"container",{"--is-disabled":o,"--is-rtl":r}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return et("div",b({},Pt(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,o=e.isMulti,r=e.hasValue;return et("div",b({},Pt(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":r}),n),t)}},yn=function(e){return C(C({},bn),e.components)},wn=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function En(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((o=e[n])===(r=t[n])||wn(o)&&wn(r)))return!1;var o,r;return!0}for(var On={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"},Sn=function(e){return et("span",b({css:On},e))},Cn={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.isDisabled,r=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(o?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return"".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,l=e.isSelected,u=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(u(a,n),".");if("menu"===t){var c=s?" disabled":"",p="".concat(l?"selected":"focused").concat(c);return"option ".concat(i," ").concat(p,", ").concat(u(o,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},kn=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,r=e.focusableOptions,i=e.isFocused,a=e.selectValue,s=e.selectProps,l=e.id,u=s.ariaLiveMessages,c=s.getOptionLabel,p=s.inputValue,d=s.isMulti,f=s.isOptionDisabled,m=s.isSearchable,h=s.menuIsOpen,v=s.options,g=s.screenReaderStatus,b=s.tabSelectsValue,w=s["aria-label"],E=s["aria-live"],O=(0,y.useMemo)((function(){return C(C({},Cn),u||{})}),[u]),S=(0,y.useMemo)((function(){var e,n="";if(t&&O.onChange){var o=t.option,r=t.options,i=t.removedValue,s=t.removedValues,l=t.value,u=i||o||(e=l,Array.isArray(e)?null:e),p=u?c(u):"",d=r||s||void 0,m=d?d.map(c):[],h=C({isDisabled:u&&f(u,a),label:p,labels:m},t);n=O.onChange(h)}return n}),[t,O,f,a,c]),k=(0,y.useMemo)((function(){var e="",t=n||o,i=!!(n&&a&&a.includes(n));if(t&&O.onFocus){var s={focused:t,label:c(t),isDisabled:f(t,a),isSelected:i,options:r,context:t===n?"menu":"value",selectValue:a};e=O.onFocus(s)}return e}),[n,o,c,f,O,r,a]),x=(0,y.useMemo)((function(){var e="";if(h&&v.length&&O.onFilter){var t=g({count:r.length});e=O.onFilter({inputValue:p,resultsMessage:t})}return e}),[r,p,h,O,v,g]),M=(0,y.useMemo)((function(){var e="";if(O.guidance){var t=o?"value":h?"menu":"input";e=O.guidance({"aria-label":w,context:t,isDisabled:n&&f(n,a),isMulti:d,isSearchable:m,tabSelectsValue:b})}return e}),[w,n,o,d,f,m,h,O,a,b]),_="".concat(k," ").concat(x," ").concat(M),P=et(y.Fragment,null,et("span",{id:"aria-selection"},S),et("span",{id:"aria-context"},_)),V="initial-input-focus"===(null==t?void 0:t.action);return et(y.Fragment,null,et(Sn,{id:l},V&&P),et(Sn,{"aria-live":E,"aria-atomic":"false","aria-relevant":"additions text"},i&&!V&&P))},xn=[{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źẑżžẓẕƶȥɀⱬꝣ"}],Mn=new RegExp("["+xn.map((function(e){return e.letters})).join("")+"]","g"),Pn={},Vn=0;Vn<xn.length;Vn++)for(var In=xn[Vn],zn=0;zn<In.letters.length;zn++)Pn[In.letters[zn]]=In.base;var Rn=function(e){return e.replace(Mn,(function(e){return Pn[e]}))},Tn=function(e,t){void 0===t&&(t=En);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}(Rn),Dn=function(e){return e.replace(/^\s+|\s+$/g,"")},Nn=function(e){return"".concat(e.label," ").concat(e.value)},An=["innerRef"];function Fn(e){var t=e.innerRef,n=nt(e,An),o=Bt(n,"onExited","in","enter","exit","appear");return et("input",b({ref:t},o,{css:tt({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 Ln=function(e){e.preventDefault(),e.stopPropagation()},jn=["boxSizing","height","overflow","paddingRight","position"],Hn={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Bn(e){e.preventDefault()}function $n(e){e.stopPropagation()}function Un(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Wn(){return"ontouchstart"in window||navigator.maxTouchPoints}var Gn=!("undefined"==typeof window||!window.document||!window.document.createElement),Yn=0,qn={capture:!1,passive:!1},Zn=function(){return document.activeElement&&document.activeElement.blur()},Xn={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Kn(e){var t=e.children,n=e.lockEnabled,o=e.captureEnabled,r=function(e){var t=e.isEnabled,n=e.onBottomArrive,o=e.onBottomLeave,r=e.onTopArrive,i=e.onTopLeave,a=(0,y.useRef)(!1),s=(0,y.useRef)(!1),l=(0,y.useRef)(0),u=(0,y.useRef)(null),c=(0,y.useCallback)((function(e,t){if(null!==u.current){var l=u.current,c=l.scrollTop,p=l.scrollHeight,d=l.clientHeight,f=u.current,m=t>0,h=p-d-c,v=!1;h>t&&a.current&&(o&&o(e),a.current=!1),m&&s.current&&(i&&i(e),s.current=!1),m&&t>h?(n&&!a.current&&n(e),f.scrollTop=p,v=!0,a.current=!0):!m&&-t>c&&(r&&!s.current&&r(e),f.scrollTop=0,v=!0,s.current=!0),v&&Ln(e)}}),[n,o,r,i]),p=(0,y.useCallback)((function(e){c(e,e.deltaY)}),[c]),d=(0,y.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),f=(0,y.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;c(e,t)}),[c]),m=(0,y.useCallback)((function(e){if(e){var t=!!Lt&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",d,t),e.addEventListener("touchmove",f,t)}}),[f,d,p]),h=(0,y.useCallback)((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",d,!1),e.removeEventListener("touchmove",f,!1))}),[f,d,p]);return(0,y.useEffect)((function(){if(t){var e=u.current;return m(e),function(){h(e)}}}),[t,m,h]),function(e){u.current=e}}({isEnabled:void 0===o||o,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,o=void 0===n||n,r=(0,y.useRef)({}),i=(0,y.useRef)(null),a=(0,y.useCallback)((function(e){if(Gn){var t=document.body,n=t&&t.style;if(o&&jn.forEach((function(e){var t=n&&n[e];r.current[e]=t})),o&&Yn<1){var i=parseInt(r.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(Hn).forEach((function(e){var t=Hn[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&Wn()&&(t.addEventListener("touchmove",Bn,qn),e&&(e.addEventListener("touchstart",Un,qn),e.addEventListener("touchmove",$n,qn))),Yn+=1}}),[o]),s=(0,y.useCallback)((function(e){if(Gn){var t=document.body,n=t&&t.style;Yn=Math.max(Yn-1,0),o&&Yn<1&&jn.forEach((function(e){var t=r.current[e];n&&(n[e]=t)})),t&&Wn()&&(t.removeEventListener("touchmove",Bn,qn),e&&(e.removeEventListener("touchstart",Un,qn),e.removeEventListener("touchmove",$n,qn)))}}),[o]);return(0,y.useEffect)((function(){if(t){var e=i.current;return a(e),function(){s(e)}}}),[t,a,s]),function(e){i.current=e}}({isEnabled:n});return et(y.Fragment,null,n&&et("div",{onClick:Zn,css:Xn}),t((function(e){r(e),i(e)})))}var Jn={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Qn=function(e){var t=e.name,n=e.onFocus;return et("input",{required:!0,name:t,tabIndex:-1,onFocus:n,css:Jn,value:"",onChange:function(){}})},eo={clearIndicator:ln,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 C({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:sn,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 C({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 C({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 C(C({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},hn),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 C({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:qt,menu:function(e,t){var n,o=e.placement,r=e.theme,i=r.borderRadius,a=r.spacing,s=r.colors;return C((O(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),O(n,"position","absolute"),O(n,"width","100%"),O(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return C({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 C({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 C({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 C({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:Yt,option:function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return C({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:r?s.primary:o?s.primary25:"transparent",color:n?s.neutral20:r?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:r?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,o=n.spacing,r=n.colors;return C({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 C({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 C({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")})}},to={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}},no={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Dt(),captureMenuScroll:!Dt(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=C({ignoreCase:!0,ignoreAccents:!0,stringify:Nn,trim:!0,matchFrom:"any"},undefined),o=n.ignoreCase,r=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,l=a?Dn(t):t,u=a?Dn(i(e)):i(e);return o&&(l=l.toLowerCase(),u=u.toLowerCase()),r&&(l=Tn(l),u=Rn(u)),"start"===s?u.substr(0,l.length)===l:u.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function oo(e,t,n,o){return{type:"option",data:t,isDisabled:uo(e,t,n),isSelected:co(e,t,n),label:so(e,t),value:lo(e,t),index:o}}function ro(e,t){return e.options.map((function(n,o){if("options"in n){var r=n.options.map((function(n,o){return oo(e,n,t,o)})).filter((function(t){return ao(e,t)}));return r.length>0?{type:"group",data:n,options:r,index:o}:void 0}var i=oo(e,n,t,o);return ao(e,i)?i:void 0})).filter(jt)}function io(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,a(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function ao(e,t){var n=e.inputValue,o=void 0===n?"":n,r=t.data,i=t.isSelected,a=t.label,s=t.value;return(!fo(e)||!i)&&po(e,{label:a,value:s,data:r},o)}var so=function(e,t){return e.getOptionLabel(t)},lo=function(e,t){return e.getOptionValue(t)};function uo(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function co(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=lo(e,t);return n.some((function(t){return lo(e,t)===o}))}function po(e,t,n){return!e.filterOption||e.filterOption(t,n)}var fo=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},mo=1,ho=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x(e,t)}(i,e);var t,n,o,r=_(i);function i(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=r.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var o=t.props,r=o.onChange,i=o.name;n.name=i,t.ariaOnChange(e,n),r(e,n)},t.setValue=function(e,n,o){var r=t.props,i=r.closeMenuOnSelect,a=r.isMulti,s=r.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:o})},t.selectOption=function(e){var n=t.props,o=n.blurInputOnSelect,r=n.isMulti,i=n.name,s=t.state.selectValue,l=r&&t.isOptionSelected(e,s),u=t.isOptionDisabled(e,s);if(l){var c=t.getOptionValue(e);t.setValue(s.filter((function(e){return t.getOptionValue(e)!==c})),"deselect-option",e)}else{if(u)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});r?t.setValue([].concat(a(s),[e]),"select-option",e):t.setValue(e,"select-option")}o&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,o=t.state.selectValue,r=t.getOptionValue(e),i=o.filter((function(e){return t.getOptionValue(e)!==r})),a=Ht(n,i,i[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(Ht(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,o=n[n.length-1],r=n.slice(0,n.length-1),i=Ht(e,r,r[0]||null);t.onChange(i,{action:"pop-value",removedValue:o})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return xt.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return so(t.props,e)},t.getOptionValue=function(e){return lo(t.props,e)},t.getStyles=function(e,n){var o=t.props.unstyled,r=eo[e](n,o);r.boxSizing="border-box";var i=t.props.styles[e];return i?i(r,n):r},t.getClassNames=function(e,n){var o,r;return null===(o=(r=t.props.classNames)[e])||void 0===o?void 0:o.call(r,n)},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return yn(t.props)},t.buildCategorizedOptions=function(){return ro(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return io(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:C({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,o=n.isMulti,r=n.menuIsOpen;t.focusInput(),r?(t.setState({inputIsHiddenAfterUpdate:!o}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Vt(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,o=n&&n.item(0);o&&(t.initialTouchX=o.clientX,t.initialTouchY=o.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,o=n&&n.item(0);if(o){var r=Math.abs(o.clientX-t.initialTouchX),i=Math.abs(o.clientY-t.initialTouchY);t.userIsDragging=r>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,o=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(o,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return fo(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,o=n.isMulti,r=n.backspaceRemovesValue,i=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,l=n.isDisabled,u=n.menuIsOpen,c=n.onKeyDown,p=n.tabSelectsValue,d=n.openMenuOnFocus,f=t.state,m=f.focusedOption,h=f.focusedValue,v=f.selectValue;if(!(l||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!o||a)return;t.focusValue("previous");break;case"ArrowRight":if(!o||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(h)t.removeValue(h);else{if(!r)return;o?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!u||!p||!m||d&&t.isOptionSelected(m,v))return;t.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(u){if(!m)return;if(t.isComposing)return;t.selectOption(m);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&i&&t.clearValue();break;case" ":if(a)return;if(!u){t.openMenu("first");break}if(!m)return;t.selectOption(m);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++mo),t.state.selectValue=Mt(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.buildFocusableOptions(),o=n.indexOf(t.state.selectValue[0]);t.state.focusedOption=n[o]}return t}return t=i,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&&Tt(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&&(Tt(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,o=n.selectValue,r=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(o[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(r&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var r=n.indexOf(o);o||(r=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===r?0:-1===r?i:r-1;break;case"next":r>-1&&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})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(to):C(C({},to),this.props.theme):to}},{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,l=s.isMulti,u=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:r,hasValue:this.hasValue(),isMulti:l,isRtl:u,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 uo(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return co(this.props,e,t)}},{key:"filterOption",value:function(e,t){return po(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,o=e.inputId,r=e.inputValue,i=e.tabIndex,a=e.form,s=e.menuIsOpen,l=e.required,u=this.getComponents().Input,c=this.state,p=c.inputIsHidden,d=c.ariaSelection,f=this.commonProps,m=o||this.getElementId("input"),h=C(C(C({"aria-autocomplete":"list","aria-expanded":s,"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":l,role:"combobox"},s&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==d?void 0:d.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?y.createElement(u,b({},f,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:r},h)):y.createElement(Fn,b({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ct,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},h))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,r=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,l=this.commonProps,u=this.props,c=u.controlShouldRenderValue,p=u.isDisabled,d=u.isMulti,f=u.inputValue,m=u.placeholder,h=this.state,v=h.selectValue,g=h.focusedValue,w=h.isFocused;if(!this.hasValue()||!c)return f?null:y.createElement(s,b({},l,{key:"placeholder",isDisabled:p,isFocused:w,innerProps:{id:this.getElementId("placeholder")}}),m);if(d)return v.map((function(t,a){var s=t===g,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return y.createElement(n,b({},l,{components:{Container:o,Label:r,Remove:i},isFocused:s,isDisabled:p,key:u,index:a,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(f)return null;var E=v[0];return y.createElement(a,b({},l,{data:E,isDisabled:p}),this.formatOptionLabel(E,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,r=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||r)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return y.createElement(e,b({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,r=n.isLoading,i=this.state.isFocused;return e&&r?y.createElement(e,b({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,r=this.props.isDisabled,i=this.state.isFocused;return y.createElement(n,b({},o,{isDisabled:r,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,r={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return y.createElement(e,b({},t,{innerProps:r,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,r=t.Menu,i=t.MenuList,a=t.MenuPortal,s=t.LoadingMessage,l=t.NoOptionsMessage,u=t.Option,c=this.commonProps,p=this.state.focusedOption,d=this.props,f=d.captureMenuScroll,m=d.inputValue,h=d.isLoading,v=d.loadingMessage,g=d.minMenuHeight,w=d.maxMenuHeight,E=d.menuIsOpen,O=d.menuPlacement,S=d.menuPosition,C=d.menuPortalTarget,k=d.menuShouldBlockScroll,x=d.menuShouldScrollIntoView,M=d.noOptionsMessage,_=d.onMenuScrollToTop,P=d.onMenuScrollToBottom;if(!E)return null;var V,I=function(t,n){var o=t.type,r=t.data,i=t.isDisabled,a=t.isSelected,s=t.label,l=t.value,d=p===r,f=i?void 0:function(){return e.onOptionHover(r)},m=i?void 0:function(){return e.selectOption(r)},h="".concat(e.getElementId("option"),"-").concat(n),v={id:h,onClick:m,onMouseMove:f,onMouseOver:f,tabIndex:-1};return y.createElement(u,b({},c,{innerProps:v,data:r,isDisabled:i,isSelected:a,key:h,label:s,type:o,value:l,isFocused:d,innerRef:d?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())V=this.getCategorizedOptions().map((function(t){if("group"===t.type){var r=t.data,i=t.options,a=t.index,s="".concat(e.getElementId("group"),"-").concat(a),l="".concat(s,"-heading");return y.createElement(n,b({},c,{key:s,data:r,options:i,Heading:o,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return I(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return I(t,"".concat(t.index))}));else if(h){var z=v({inputValue:m});if(null===z)return null;V=y.createElement(s,c,z)}else{var R=M({inputValue:m});if(null===R)return null;V=y.createElement(l,c,R)}var T={minMenuHeight:g,maxMenuHeight:w,menuPlacement:O,menuPosition:S,menuShouldScrollIntoView:x},D=y.createElement(Wt,b({},c,T),(function(t){var n=t.ref,o=t.placerProps,a=o.placement,s=o.maxHeight;return y.createElement(r,b({},c,T,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:h,placement:a}),y.createElement(Kn,{captureEnabled:f,onTopArrive:_,onBottomArrive:P,lockEnabled:k},(function(t){return y.createElement(i,b({},c,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:h,maxHeight:s,focusedOption:p}),V)})))}));return C||"fixed"===S?y.createElement(a,b({},c,{appendTo:C,controlElement:this.controlRef,menuPlacement:O,menuPosition:S}),D):D}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,r=t.isMulti,i=t.name,a=t.required,s=this.state.selectValue;if(i&&!o){if(a&&!this.hasValue())return y.createElement(Qn,{name:i,onFocus:this.onValueInputFocus});if(r){if(n){var l=s.map((function(t){return e.getOptionValue(t)})).join(n);return y.createElement("input",{name:i,type:"hidden",value:l})}var u=s.length>0?s.map((function(t,n){return y.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):y.createElement("input",{name:i,type:"hidden",value:""});return y.createElement("div",null,u)}var c=s[0]?this.getOptionValue(s[0]):"";return y.createElement("input",{name:i,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,r=t.focusedValue,i=t.isFocused,a=t.selectValue,s=this.getFocusableOptions();return y.createElement(kn,b({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:r,isFocused:i,selectValue:a,focusableOptions:s}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,r=e.ValueContainer,i=this.props,a=i.className,s=i.id,l=i.isDisabled,u=i.menuIsOpen,c=this.state.isFocused,p=this.commonProps=this.getCommonProps();return y.createElement(o,b({},p,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:c}),this.renderLiveRegion(),y.createElement(t,b({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:c,menuIsOpen:u}),y.createElement(r,b({},p,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),y.createElement(n,b({},p,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.clearFocusValueOnUpdate,r=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,l=e.options,u=e.value,c=e.menuIsOpen,p=e.inputValue,d=e.isMulti,f=Mt(u),m={};if(n&&(u!==n.value||l!==n.options||c!==n.menuIsOpen||p!==n.inputValue)){var h=c?function(e,t){return io(ro(e,t))}(e,f):[],v=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,f):null,g=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,h);m={selectValue:f,focusedOption:g,focusedValue:v,clearFocusValueOnUpdate:!1}}var b=null!=r&&e!==n?{inputIsHidden:r,inputIsHiddenAfterUpdate:void 0}:{},y=i,w=a&&s;return a&&!w&&(y={value:Ht(d,f,f[0]||null),options:f,action:"initial-input-focus"},w=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(y=null),C(C(C({},m),b),{},{prevProps:e,ariaSelection:y,prevWasFocused:w})}}],n&&k(t.prototype,n),o&&k(t,o),Object.defineProperty(t,"prototype",{writable:!1}),i}(y.Component);ho.defaultProps=no;var vo=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function go(e){var t=e.defaultInputValue,n=void 0===t?"":t,o=e.defaultMenuIsOpen,r=void 0!==o&&o,i=e.defaultValue,a=void 0===i?null:i,l=e.inputValue,u=e.menuIsOpen,c=e.onChange,p=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,m=e.value,h=nt(e,vo),v=s((0,y.useState)(void 0!==l?l:n),2),g=v[0],b=v[1],w=s((0,y.useState)(void 0!==u?u:r),2),E=w[0],O=w[1],S=s((0,y.useState)(void 0!==m?m:a),2),k=S[0],x=S[1],M=(0,y.useCallback)((function(e,t){"function"==typeof c&&c(e,t),x(e)}),[c]),_=(0,y.useCallback)((function(e,t){var n;"function"==typeof p&&(n=p(e,t)),b(void 0!==n?n:e)}),[p]),P=(0,y.useCallback)((function(){"function"==typeof f&&f(),O(!0)}),[f]),V=(0,y.useCallback)((function(){"function"==typeof d&&d(),O(!1)}),[d]),I=void 0!==l?l:g,z=void 0!==u?u:E,R=void 0!==m?m:k;return C(C({},h),{},{inputValue:I,menuIsOpen:z,onChange:M,onInputChange:_,onMenuClose:V,onMenuOpen:P,value:R})}var bo=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"],yo=(0,y.forwardRef)((function(e,t){var n=function(e){var t=e.defaultOptions,n=void 0!==t&&t,o=e.cacheOptions,r=void 0!==o&&o,i=e.loadOptions;e.options;var a=e.isLoading,l=void 0!==a&&a,u=e.onInputChange,c=e.filterOption,p=void 0===c?null:c,d=nt(e,bo),f=d.inputValue,m=(0,y.useRef)(void 0),h=(0,y.useRef)(!1),v=s((0,y.useState)(Array.isArray(n)?n:void 0),2),g=v[0],b=v[1],w=s((0,y.useState)(void 0!==f?f:""),2),E=w[0],S=w[1],k=s((0,y.useState)(!0===n),2),x=k[0],M=k[1],_=s((0,y.useState)(void 0),2),P=_[0],V=_[1],I=s((0,y.useState)([]),2),z=I[0],R=I[1],T=s((0,y.useState)(!1),2),D=T[0],N=T[1],A=s((0,y.useState)({}),2),F=A[0],L=A[1],j=s((0,y.useState)(void 0),2),H=j[0],B=j[1],$=s((0,y.useState)(void 0),2),U=$[0],W=$[1];r!==U&&(L({}),W(r)),n!==H&&(b(Array.isArray(n)?n:void 0),B(n)),(0,y.useEffect)((function(){return h.current=!0,function(){h.current=!1}}),[]);var G=(0,y.useCallback)((function(e,t){if(!i)return t();var n=i(e,t);n&&"function"==typeof n.then&&n.then(t,(function(){return t()}))}),[i]);(0,y.useEffect)((function(){!0===n&&G(E,(function(e){h.current&&(b(e||[]),M(!!m.current))}))}),[]);var Y=(0,y.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,u);if(!n)return m.current=void 0,S(""),V(""),R([]),M(!1),void N(!1);if(r&&F[n])S(n),V(n),R(F[n]),M(!1),N(!1);else{var o=m.current={};S(n),M(!0),N(!P),G(n,(function(e){h&&o===m.current&&(m.current=void 0,M(!1),V(n),R(e||[]),N(!1),L(e?C(C({},F),{},O({},n,e)):F))}))}}),[r,G,P,F,u]),q=D?[]:E&&P?z:g||[];return C(C({},d),{},{options:q,isLoading:x||l,onInputChange:Y,filterOption:p})}(e),o=go(n);return y.createElement(ho,b({ref:t},o))})),wo=yo;(0,o.registerBlockType)("vczapi/list-meetings",{apiVersion:2,edit:function(e){e.className;var t=e.attributes,n=e.setAttributes,o=(e.isSelected,t.shortcodeType),r=t.orderBy,i=t.postsToShow,f=t.displayType,v=t.showPastMeeting,b=t.showFilter,y=t.selectedCategory,w=t.selectedAuthor,E=t.columns,O=t.preview,S=(0,l.useRef)(),C=s((0,l.useState)([]),2),k=C[0],x=C[1],M=s((0,l.useState)([]),2),_=M[0],P=M[1];return(0,l.useEffect)((function(){S.current=!0,g()({path:"/wp/v2/zoom_meeting_cats"}).then((function(e){if(!0===S.current){var t=e.length>0?e.map((function(e,t){return{label:e.name+" ("+e.count+")",value:e.slug}})):[];x((function(e){return[].concat(a(e),a(t))}))}})).catch((function(){!0===S.current&&x([])}));var e={per_page:10,who:"authors"};0!==w&&(e.include=w);var t=(0,p.addQueryArgs)("/wp/v2/users",e);return g()({path:t}).then((function(e){if(!0===S.current){var t=e.length>0?e.map((function(e,t){return{label:e.name,value:e.id}})):[];P((function(e){return[].concat(a(e),a(t))}))}})).catch((function(){})),function(){S.current=!1}}),[]),O?(0,l.createElement)(l.Fragment,null,(0,l.createElement)(m(),{block:"vczapi/list-meetings",attributes:{columns:E,displayType:f,postsToShow:i,orderBy:r,shortcodeType:o,showFilter:b,selectedCategory:y,selectedAuthor:w}})):(0,l.createElement)(l.Fragment,null,(0,l.createElement)(d.InspectorControls,null,(0,l.createElement)(h.PanelBody,{title:"Settings",initialOpen:!0},S.current&&(0,l.createElement)(h.SelectControl,{label:(0,u.__)("Show Meeting or Webinar","video-conferencing-with-zoom-api"),value:o,options:[{label:"Meeting",value:"meeting"},{label:"Webinar",value:"webinar"}],help:"Determines whether to show Meeting or Webinar",onChange:function(e){return n({shortcodeType:e})}}),S.current&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(h.SelectControl,{label:(0,u.__)("Type of Meeting/Webinar to Show","video-conferencing-with-zoom-api"),value:f,onChange:function(e){return n({displayType:e})},options:[{label:"Show All",value:""},{label:"Upcoming",value:"upcoming"},{label:"Past",value:"past"}],help:"Show All,Upcoming or Past Meeting - default All"}),"upcoming"===f&&(0,l.createElement)(h.CheckboxControl,{label:(0,u.__)("Show Meeting that have started","video-conferencing-with-zoom-api"),checked:v,onChange:function(e){return n({showPastMeeting:e})},help:"will show meetings that have passed meeting start time - upto 30 minutes after the meeting was scheduled to start."})),S.current&&(0,l.createElement)(h.SelectControl,{label:(0,u.__)("Show Filter","video-conferencing-with-zoom-api"),value:b,options:[{label:"Yes",value:"yes"},{label:"No",value:"no"}],onChange:function(e){n({showFilter:e})}}),S.current&&(0,l.createElement)(h.RangeControl,{label:(0,u.__)("Columns","video-conferencing-with-zoom-api"),value:E,help:"how many columns in the grid. Default value is 3. Users can use 1 or 2 or 3 or 4 - Any value upper than 4 will take 3 column value.",onChange:function(e){n({columns:e})},min:1,max:4}),S.current&&(0,l.createElement)(h.SelectControl,{label:(0,u.__)("Order By","video-conferencing-with-zoom-api"),value:r,options:[{label:"Default Sorting",value:""},{label:"Ascending",value:"ASC"},{label:"Descending",value:"DESC"}],onChange:function(e){n({orderBy:e})}}),S.current&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)("span",null,(0,u.__)("Category","video-conferencing-with-zoom-api")),(0,l.createElement)(wo,{cacheOptions:!0,defaultOptions:k,isMulti:!0,isClearable:!0,placeholder:(0,u.__)("Select categories - default All categories are shown","video-conferencing-with-zoom-api"),onChange:function(e,t){var o=t.action;if("clear"===o)return n({selectedCategory:[]}),[];if("remove-value"===o)return n({selectedCategory:e}),e;if("select-option"===o){var r=(0,c.unionBy)(y,e,"value");n({selectedCategory:r}),P((function(t){return(0,c.unionBy)(t,[e],"value")}))}},defaultValue:(0,c.intersectionWith)(k,y,c.isEqual),className:"components-base-control"})),S.current&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)("span",null,(0,u.__)("Author","video-conferencing-with-zoom-api")),(0,l.createElement)(wo,{cacheOptions:!0,defaultOptions:_,noResultsText:!0,loadOptions:(0,c.debounce)((function(e,t){var n={per_page:5,who:"authors"};""!==e&&(n.search=e);var o=(0,p.addQueryArgs)("/wp/v2/users",n);return g()({path:o}).then((function(e){!0===S.current&&t(e.length>0?e.map((function(e,t){return{label:e.name,value:e.id}})):[])})).catch((function(){t([])}))}),800),isClearable:!0,placeholder:(0,u.__)("Select Author - Default All Authors are shown","video-conferencing-with-zoom-api"),onChange:function(e,t){var o=t.action;"clear"===o?n({selectedAuthor:0}):"remove-value"===o?n({selectedAuthor:e}):(n({selectedAuthor:e.value}),P((function(t){return(0,c.unionBy)(t,[e],"value")})))},defaultValue:_.filter((function(e){return e.value===w})),className:"components-base-control"})),S.current&&(0,l.createElement)(h.RangeControl,{label:(0,u.__)("Number of Meetings/Webinars to show","video-conferencing-with-zoom-api"),value:i,onChange:function(e){return n({postsToShow:e})},min:1,max:100}))),(0,l.createElement)("div",(0,d.useBlockProps)(),(0,l.createElement)(h.Disabled,null,(0,l.createElement)(m(),{block:"vczapi/list-meetings",attributes:{columns:E,displayType:f,postsToShow:i,orderBy:r,shortcodeType:o,showFilter:b,selectedCategory:y,selectedAuthor:w}}))))},example:{attributes:{preview:!0,columns:2,postsToShow:2}}}),(0,o.registerBlockType)("vczapi/show-meeting-post",{apiVersion:2,edit:function(e){var t=e.attributes,n=e.setAttributes,o=t.postID,r=t.preview,i=s((0,l.useState)([]),2),a=i[0],p=i[1],f=s((0,l.useState)(!1),2),v=f[0],b=f[1],y=(0,l.useRef)(),w=[{icon:v?"no":"edit",title:v?"Close":"Edit",subscript:"Edit",onClick:function(){b((function(e){return!e}))}}];return(0,l.useEffect)((function(){y.current=!0;var e="/wp/v2/zoom_meetings?per_page=5";return e=0!==o?e+"&include="+o:e,g()({path:e}).then((function(e){if(!0===y.current){var t=e.length>0?e.map((function(e,t){return{label:e.title.rendered,value:e.id}})):[];p(t)}})),function(){y.current=!1}}),[]),r?(0,l.createElement)("img",{src:vczapi_blocks.embed_post_preview,alt:"Embed Zoom post"}):(0,l.createElement)("div",(0,d.useBlockProps)(),(0,l.createElement)(d.BlockControls,null,(0,l.createElement)(h.ToolbarGroup,{controls:w})),!y.current&&(0,l.createElement)(h.Spinner,null),(0===o||v)&&(0,l.createElement)(h.Placeholder,null,(0,l.createElement)("h2",null,(0,u.__)("Zoom - Show Meeting Post","video-conferencing-with-zoom-api")),(0,l.createElement)("div",{className:"vczapi-blocks-form"},(0,l.createElement)(wo,{cacheOptions:!0,className:"vczapi-blocks-form--select",placeholder:(0,u.__)("Select Meeting to Show","video-conferencing-with-zoom-api"),defaultOptions:a,loadOptions:(0,c.debounce)((function(e,t){return g()({path:"/wp/v2/zoom_meetings?per_page=5&search="+e}).then((function(e){!0===y.current&&t(e.length>0?e.map((function(e,t){return{label:e.title.rendered,value:e.id}})):[])})).catch((function(){t([])}))}),800),onChange:function(e,t){t.action,n({postID:e.value}),b(!1)},defaultValue:a.filter((function(e){return e.value===o}))}))),0!==o&&!v&&(0,l.createElement)(h.Disabled,null,(0,l.createElement)(m(),{block:"vczapi/show-meeting-post",attributes:{postID:o}})))},example:{attributes:{preview:!0}}});var Eo=(0,y.forwardRef)((function(e,t){var n=go(e);return y.createElement(ho,b({ref:t},n))}));(0,o.registerBlockType)("vczapi/show-live-meeting",{apiVersion:2,edit:function(e){e.className;var t=e.attributes,n=e.setAttributes,o=t.host,r=t.selectedMeeting,i=t.link_only,a=t.preview,p=t.shouldShow,f=l.useRef,v=s((0,l.useState)(!1),2),g=v[0],b=v[1],y=s((0,l.useState)([]),2),E=y[0],O=y[1],S=s((0,l.useState)([o]),2),C=S[0],k=S[1],x=s((0,l.useState)(p),2),M=x[0],_=x[1],P=s((0,l.useState)({}),2),V=P[0],I=P[1],z=s((0,l.useState)(1),2),R=z[0],T=z[1],D=s((0,l.useState)(1),2),N=D[0],A=D[1],F=s((0,l.useState)(!1),2),L=F[0],j=F[1],H=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("undefined"===e||""===e)return[];var o=ajaxurl+"?action=vczapi_get_live_meetings&host_id="+e+"&show="+t.value;n.hasOwnProperty("page_number")&&"undefined"!==n.page_number&&(o+="&page_number="+n.page_number),j(!0),fetch(o).then((function(e){return e.json()})).then((function(e){var t=parseFloat(e.total_records)/parseFloat(e.page_size);if(t>1){var n=Math.round(t);T(n)}else T(1);O(e.formatted_meetings),j(!1)}))};return(0,l.useEffect)((function(){return f.current=!0,function(){f.current=!1}}),[]),a?(0,l.createElement)(l.Fragment,null,(0,l.createElement)("img",{src:vczapi_blocks.direct_meeting_preview_image,alt:"Direct Meeting from Zoom"})):(0,l.createElement)("div",(0,d.useBlockProps)(),(0,l.createElement)(d.BlockControls,null,(0,l.createElement)(h.ToolbarGroup,null,(0,l.createElement)(h.ToolbarButton,{icon:g?"no":"edit",title:g?"Close":"Edit",subscript:"Edit",onClick:function(){b((function(e){return!e}))}}))),(void 0===r||g)&&(0,l.createElement)(h.Placeholder,null,(0,l.createElement)("div",{className:"vczapi-label-header"},(0,l.createElement)("h2",null,(0,u.__)("Zoom - Show Meeting directly from Zoom","video-conferencing-with-zoom-api")),(0,l.createElement)("div",null,(0,l.createElement)("p",null,(0,u.__)("Get a meeting directly from Zoom","video-conferencing-with-zoom-api")))),(0,l.createElement)("div",{className:"vczapi-blocks-form"},void 0!==r&&r.hasOwnProperty("value")&&(0,l.createElement)("div",{className:"vczapi-blocks-form--selected-meeting"},(0,l.createElement)("h4",null,"Currently Selected Meeting: ",(0,l.createElement)("strong",null,r.label))),(0,l.createElement)("div",{className:"vczapi-blocks-form--group"},(0,l.createElement)(h.RadioControl,{className:"radio-inline",label:"Link Only",selected:i,options:[{label:"Yes",value:"yes"},{label:"No",value:"no"}],onChange:function(e){n({link_only:e})}})),(0,l.createElement)("div",{className:"vczapi-blocks-form--group"},(0,l.createElement)("div",{className:"vczapi-blocks-form--input-label"},(0,u.__)("Would you like to show a Meeting or Webinar","video-conferencing-with-zoom-api")),(0,l.createElement)(Eo,{label:"Show",className:"vczapi-blocks-form--select",defaultValue:M,options:[{label:"Meeting",value:"meeting"},{label:"Webinar",value:"webinar"}],onChange:function(e){_(e),"object"===w(o)&&o.hasOwnProperty("value")&&(O([]),H(o.value,e),k(o))}})),(0,l.createElement)("div",{className:"vczapi-blocks-form--group"},(0,l.createElement)("div",{className:"vczapi-blocks-form--input-label"},(0,u.__)("Select A Host","video-conferencing-with-zoom-api")),(0,l.createElement)(wo,{className:"vczapi-blocks-form--select",defaultOptions:!0,defaultValue:C,placeholder:(0,u.__)("Select host to see meetings","video-conferencing-with-zoom-api"),noOptionsMessage:function(){return(0,u.__)("No options found","video-conferencing-with-zoom-api")},loadOptions:(0,c.debounce)((function(e,t){fetch(ajaxurl+"?action=vczapi_get_zoom_hosts&host="+e).then((function(e){return e.json()})).then((function(e){t(e)})).catch((function(){t([])}))}),800),onChange:function(e,t){"select-option"===t.action&&(n({host:e}),k(e),H(e.value,M))}})),L&&(void 0===E||0===E.length)&&(0,l.createElement)("div",{className:"vczapi-blocks-form--group"},(0,l.createElement)(h.Spinner,null)),void 0!==E&&E.length>0&&(0,l.createElement)("div",{className:"vczapi-blocks-form--group"},(0,l.createElement)("div",{className:"vczapi-blocks-form--input-label"},(0,l.createElement)("span",null,(0,u.__)("Select A Meeting : ","video-conferencing-with-zoom-api"),R>1&&(0,l.createElement)("span",null,"use pagination to load more meeting if necessary"))),(0,l.createElement)(Eo,{className:"vczapi-blocks-form--select",defaultValue:r,options:E,isLoading:L,isDisabled:L,onChange:function(e){I(e)},placeholder:(0,u.__)("Select a meeting","video-conferencing-with-zoom-api")}),(0,l.createElement)((function(e){var t=e.numberOfPages,n=[];if(t>1){for(var r=function(e){var t=e===N?"selected":"";n.push((0,l.createElement)(h.Button,{key:e,className:t,onClick:function(){H(o.value,p,{page_number:e}),A(e)}},e))},i=1;i<=t;i++)r(i);return(0,l.createElement)("div",{className:"vczapi-blocks-pagination"},n)}return""}),{numberOfPages:R})),(0,l.createElement)("div",{className:"vczapi-blocks-form--group"},(0,l.createElement)(h.Button,{isPrimary:!0,onClick:function(){if(!V.hasOwnProperty("value"))return alert("Meeting Needs to be selected"),!1;n({selectedMeeting:V}),n({shouldShow:M}),b(!1)}},(0,u.__)("Save","video-conferencing-with-zoom-api"))))),void 0!==r&&r.hasOwnProperty("value")&&!g&&(0,l.createElement)(h.Disabled,null,(0,l.createElement)(m(),{block:"vczapi/show-live-meeting",attributes:{link_only:i,selectedMeeting:r,shouldShow:p}})))},example:{attributes:{preview:!0}}}),(0,o.registerBlockType)("vczapi/list-host-meetings",{apiVersion:2,edit:function(e){e.className;var t=e.attributes,n=e.setAttributes,o=t.host,r=t.shouldShow,i=t.preview,a=l.useRef,p=s((0,l.useState)(!1),2),f=p[0],v=p[1];return(0,l.useEffect)((function(){return a.current=!0,function(){a.current=!1}}),[]),i?(0,l.createElement)("img",{src:vczapi_blocks.list_host_meetings_preview_image,alt:"List Host meetings"}):(0,l.createElement)("div",(0,d.useBlockProps)(),(0,l.createElement)(d.BlockControls,null,(0,l.createElement)(h.ToolbarGroup,null,(0,l.createElement)(h.ToolbarButton,{icon:f?"no":"edit",title:f?"Close":"Edit",subscript:"Edit",onClick:function(){v((function(e){return!e}))}}))),(void 0===o||f)&&(0,l.createElement)(h.Placeholder,null,(0,l.createElement)("h2",null,(0,u.__)("Zoom - List Meetings/Webinars based on HOST","video-conferencing-with-zoom")),(0,l.createElement)("div",{className:"vczapi-blocks-form"},(0,l.createElement)("div",{className:"vczapi-blocks-form--group"},(0,l.createElement)(Eo,{className:"vczapi-blocks-form--select",defaultValue:r,options:[{label:"Meeting",value:"meeting"},{label:"Webinar",value:"webinar"}],onChange:function(e,t){"select-option"===t.action&&n({shouldShow:e})}})),(0,l.createElement)("div",{className:"vczapi-blocks-form--group"},(0,l.createElement)(wo,{className:"vczapi-blocks-form--select",defaultOptions:!0,noResultsText:(0,u.__)("No options found","video-conferencing-with-zoom-api"),loadOptions:(0,c.debounce)((function(e,t){fetch("admin-ajax.php?action=vczapi_get_zoom_hosts&host="+e).then((function(e){return e.json()})).then((function(e){t(e)})).catch((function(){t([])}))}),800),defaultValue:o,onChange:function(e,t){"select-option"===t.action&&n({host:e})}})),(0,l.createElement)("div",{className:"vczapi-blocks-form--group"},(0,l.createElement)(h.Button,{isPrimary:!0,onClick:function(){v(!1)}},(0,u.__)("Save","video-conferencing-with-zoom-api"))))),void 0!==o&&o.hasOwnProperty("value")&&!f&&(0,l.createElement)(m(),{block:"vczapi/list-host-meetings",attributes:{host:o,shouldShow:r}}))},example:{attributes:{preview:!0}}}),(0,o.registerBlockType)("vczapi/join-via-browser",{apiVersion:2,edit:function(e){e.className;var t=e.attributes,n=e.setAttributes,o=t.host,r=t.selectedMeeting,i=t.disable_countdown,a=t.login_required,p=t.preview,f=t.shouldShow,v=t.passcode,g=l.useRef,b=s((0,l.useState)(!1),2),y=b[0],E=b[1],O=s((0,l.useState)([]),2),S=O[0],C=O[1],k=s((0,l.useState)([o]),2),x=k[0],M=k[1],_=s((0,l.useState)(f),2),P=_[0],V=_[1],I=s((0,l.useState)({}),2),z=I[0],R=I[1],T=s((0,l.useState)(1),2),D=T[0],N=T[1],A=s((0,l.useState)(1),2),F=A[0],L=A[1],j=s((0,l.useState)(!1),2),H=j[0],B=j[1],$=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("undefined"===e||""===e)return[];var o=ajaxurl+"?action=vczapi_get_live_meetings&host_id="+e+"&show="+t.value;n.hasOwnProperty("page_number")&&"undefined"!==n.page_number&&(o+="&page_number="+n.page_number),B(!0),fetch(o).then((function(e){return e.json()})).then((function(e){if(g.current){var t=parseFloat(e.total_records)/parseFloat(e.page_size);if(t>1){var n=Math.round(t);N(n)}else N(1);C(e.formatted_meetings),B(!1)}}))};return(0,l.useEffect)((function(){return g.current=!0,"object"==w(o)&&o.hasOwnProperty("value")&&$(o.value,f),function(){g.current=!1}}),[]),p?(0,l.createElement)(l.Fragment,null,(0,l.createElement)("img",{src:vczapi_blocks.join_via_browser,alt:"Direct Meeting from Zoom"})):(0,l.createElement)("div",(0,d.useBlockProps)(),(0,l.createElement)(d.BlockControls,null,(0,l.createElement)(h.ToolbarGroup,null,(0,l.createElement)(h.ToolbarButton,{icon:y?"no":"edit",title:y?"Close":"Edit",subscript:"Edit",onClick:function(){E((function(e){return!e}))}}))),(void 0===r||y)&&(0,l.createElement)(h.Placeholder,null,(0,l.createElement)("div",{className:"vczapi-label-header"},(0,l.createElement)("h2",null,(0,u.__)("Zoom - Embed Join Via A Browser","video-conferencing-with-zoom-api")),(0,l.createElement)("div",null,(0,l.createElement)("p",null,(0,u.__)("Embed Join via a browser","video-conferencing-with-zoom-api")))),(0,l.createElement)("div",{className:"vczapi-blocks-form"},void 0!==r&&r.hasOwnProperty("value")&&(0,l.createElement)("div",{className:"vczapi-blocks-form--selected-meeting"},(0,l.createElement)("h4",null,"Currently Selected Meeting: ",(0,l.createElement)("strong",null,r.label))),(0,l.createElement)("div",{className:"vczapi-blocks-form--group"},(0,l.createElement)(h.TextControl,{className:"text-input",label:(0,u.__)("Passcode (Set password of your meeting to automatically let users join without needing them to enter password.)","video-conferencing-with-zoom-api"),value:v,onChange:function(e){n({passcode:e})}})),(0,l.createElement)("div",{className:"vczapi-blocks-form--group"},(0,l.createElement)(h.RadioControl,{className:"radio-inline",label:"Disable Countdown",selected:i,options:[{label:"Yes",value:"yes"},{label:"No",value:"no"}],onChange:function(e){n({disable_countdown:e})}})),(0,l.createElement)("div",{className:"vczapi-blocks-form--group"},(0,l.createElement)(h.RadioControl,{className:"radio-inline",label:"Login Required",selected:a,options:[{label:"Yes",value:"yes"},{label:"No",value:"no"}],onChange:function(e){n({login_required:e})}})),(0,l.createElement)("div",{className:"vczapi-blocks-form--group"},(0,l.createElement)("div",{className:"vczapi-blocks-form--input-label"},(0,u.__)("Would you like to show a Meeting or Webinar","video-conferencing-with-zoom-api")),(0,l.createElement)(Eo,{label:"Show",className:"vczapi-blocks-form--select",defaultValue:P,options:[{label:"Meeting",value:"meeting"},{label:"Webinar",value:"webinar"}],onChange:function(e){V(e),"object"===w(o)&&o.hasOwnProperty("value")&&(C([]),$(o.value,e),M(o))}})),(0,l.createElement)("div",{className:"vczapi-blocks-form--group"},(0,l.createElement)("div",{className:"vczapi-blocks-form--input-label"},(0,u.__)("Select A Host","video-conferencing-with-zoom-api")),(0,l.createElement)(wo,{className:"vczapi-blocks-form--select",defaultOptions:!0,defaultValue:x,placeholder:(0,u.__)("Select host to see meetings","video-conferencing-with-zoom-api"),noOptionsMessage:function(){return(0,u.__)("No options found","video-conferencing-with-zoom-api")},loadOptions:(0,c.debounce)((function(e,t){fetch(ajaxurl+"?action=vczapi_get_zoom_hosts&host="+e).then((function(e){return e.json()})).then((function(e){t(e)})).catch((function(){t([])}))}),800),onChange:function(e,t){"select-option"===t.action&&(n({host:e}),M(e),$(e.value,P))}})),H&&(void 0===S||0===S.length)&&(0,l.createElement)("div",{className:"vczapi-blocks-form--group"},(0,l.createElement)(h.Spinner,null)),void 0!==S&&S.length>0&&(0,l.createElement)("div",{className:"vczapi-blocks-form--group"},(0,l.createElement)("div",{className:"vczapi-blocks-form--input-label"},(0,l.createElement)("span",null,(0,u.__)("Select A Meeting : ","video-conferencing-with-zoom-api"),D>1&&(0,l.createElement)("span",null,"use pagination to load more meeting if necessary"))),(0,l.createElement)(Eo,{className:"vczapi-blocks-form--select",defaultValue:r,options:S,isLoading:H,isDisabled:H,onChange:function(e){R(e)},placeholder:(0,u.__)("Select a meeting","video-conferencing-with-zoom-api")}),(0,l.createElement)((function(e){var t=e.numberOfPages,n=[];if(t>1){for(var r=function(e){var t=e===F?"selected":"";n.push((0,l.createElement)(h.Button,{key:e,className:t,onClick:function(){$(o.value,f,{page_number:e}),L(e)}},e))},i=1;i<=t;i++)r(i);return(0,l.createElement)("div",{className:"vczapi-blocks-pagination"},n)}return""}),{numberOfPages:D})),(0,l.createElement)("div",{className:"vczapi-blocks-form--group"},(0,l.createElement)(h.Button,{isPrimary:!0,onClick:function(){if(!z.hasOwnProperty("value"))return alert("Meeting Needs to be selected"),!1;n({selectedMeeting:z}),n({shouldShow:P}),E(!1)}},(0,u.__)("Save","video-conferencing-with-zoom-api"))))),void 0!==r&&r.hasOwnProperty("value")&&!y&&(0,l.createElement)(h.Disabled,null,(0,l.createElement)(m(),{block:"vczapi/join-via-browser",attributes:{selectedMeeting:r,login_required:a,disable_countdown:i,passcode:v,shouldShow:f}})))},example:{attributes:{preview:!0}}}),(0,o.registerBlockType)("vczapi/recordings",{apiVersion:2,edit:function(e){e.className;var t=e.attributes,n=e.setAttributes,o=t.host,r=t.selectedMeeting,i=t.downloadable,a=(t.preview,t.shouldShow),p=t.showBy,f=l.useRef,v=s((0,l.useState)(!1),2),g=v[0],b=v[1],y=s((0,l.useState)([]),2),E=y[0],O=y[1],S=s((0,l.useState)(o),2),C=S[0],k=S[1],x=s((0,l.useState)(a),2),M=x[0],_=x[1],P=s((0,l.useState)({selectedMeeting:r}),2),V=P[0],I=P[1],z=s((0,l.useState)(1),2),R=z[0],T=z[1],D=s((0,l.useState)(1),2),N=D[0],A=D[1],F=s((0,l.useState)(!1),2),L=F[0],j=F[1],H=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("undefined"===e||""===e)return[];var o=ajaxurl+"?action=vczapi_get_live_meetings&host_id="+e+"&show="+t.value;n.hasOwnProperty("page_number")&&"undefined"!==n.page_number&&(o+="&page_number="+n.page_number),j(!0),fetch(o).then((function(e){return e.json()})).then((function(e){var t=parseFloat(e.total_records)/parseFloat(e.page_size);if(t>1){var n=Math.round(t);T(n)}else T(1);O(e.formatted_meetings),j(!1)}))};return(0,l.useEffect)((function(){return f.current=!0,function(){f.current=!1}}),[]),(0,l.createElement)("div",(0,d.useBlockProps)(),(0,l.createElement)(d.BlockControls,null,(0,l.createElement)(h.ToolbarGroup,null,(0,l.createElement)(h.ToolbarButton,{icon:g?"no":"edit",title:g?"Close":"Edit",subscript:"Edit",onClick:function(){b((function(e){return!e}))}}))),(void 0===r||void 0===o||g)&&(0,l.createElement)(h.Placeholder,null,(0,l.createElement)("div",{className:"vczapi-label-header"},(0,l.createElement)("h2",null,(0,u.__)("Zoom - Show Recordings","video-conferencing-with-zoom-api")),(0,l.createElement)("div",null,(0,l.createElement)("p",null,(0,u.__)("Show recordings from Zoom","video-conferencing-with-zoom-api")))),(0,l.createElement)("div",{className:"vczapi-blocks-form"},void 0!==r&&r.hasOwnProperty("value")&&(0,l.createElement)("div",{className:"vczapi-blocks-form--selected-meeting"},(0,l.createElement)("h4",null,"Currently Selected Meeting: ",(0,l.createElement)("strong",null,r.label))),(0,l.createElement)("div",{className:"vczapi-blocks-form--group"},(0,l.createElement)(h.RadioControl,{className:"radio-inline",label:(0,u.__)("Show Recordings by","video-conferencing-with-zoom-api"),options:[{label:"Host",value:"host"},{label:"Meeting",value:"meeting"}],selected:p,onChange:function(e){f.current&&n({showBy:e})}})),(0,l.createElement)("div",{className:"vczapi-blocks-form--group"},(0,l.createElement)("div",{className:"vczapi-blocks-form--input-label"},(0,u.__)("Select A Host","video-conferencing-with-zoom-api")),(0,l.createElement)(wo,{className:"vczapi-blocks-form--select",defaultOptions:!0,defaultValue:C,placeholder:(0,u.__)("Select host to see meetings","video-conferencing-with-zoom-api"),noOptionsMessage:function(){return(0,u.__)("No options found","video-conferencing-with-zoom-api")},loadOptions:(0,c.debounce)((function(e,t){fetch(ajaxurl+"?action=vczapi_get_zoom_hosts&host="+e).then((function(e){return e.json()})).then((function(e){t(e)})).catch((function(){t([])}))}),800),onChange:function(e,t){"select-option"===t.action&&f.current&&(k(e),H(e.value,M))}})),"meeting"===p&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"vczapi-blocks-form--group"},(0,l.createElement)("div",{className:"vczapi-blocks-form--input-label"},(0,u.__)("Would you like to show a Meeting or Webinar","video-conferencing-with-zoom-api")),(0,l.createElement)(Eo,{label:"Show",className:"vczapi-blocks-form--select",defaultValue:M,options:[{label:"Meeting",value:"meeting"},{label:"Webinar",value:"webinar"}],onChange:function(e){_(e),"object"===w(o)&&o.hasOwnProperty("value")&&f.current&&(O([]),H(o.value,e),k(o))}})),L&&(void 0===E||0===E.length)&&(0,l.createElement)("div",{className:"vczapi-blocks-form--group"},(0,l.createElement)(h.Spinner,null)),void 0!==E&&E.length>0&&(0,l.createElement)("div",{className:"vczapi-blocks-form--group"},(0,l.createElement)("div",{className:"vczapi-blocks-form--input-label"},(0,l.createElement)("span",null,(0,u.__)("Select A Meeting : ","video-conferencing-with-zoom-api"),R>1&&(0,l.createElement)("span",null,"use pagination to load more meeting if necessary"))),(0,l.createElement)(Eo,{className:"vczapi-blocks-form--select",defaultValue:r,options:E,isLoading:L,isDisabled:L,onChange:function(e){f.current&&I(e)},placeholder:(0,u.__)("Select a meeting","video-conferencing-with-zoom-api")}),(0,l.createElement)((function(e){var t=e.numberOfPages,n=[];if(t>1){for(var r=function(e){var t=e===N?"selected":"";n.push((0,l.createElement)(h.Button,{key:e,className:t,onClick:function(){H(o,{page_number:e}),A(e)}},e))},i=1;i<=t;i++)r(i);return(0,l.createElement)("div",{className:"vczapi-blocks-pagination"},n)}return""}),{numberOfPages:R}))),(0,l.createElement)("div",{className:"vczapi-blocks-form--group"},(0,l.createElement)(h.ToggleControl,{className:"toggle-inline",label:"Downloadable",checked:i,options:[{label:"Yes",value:"yes"},{label:"No",value:"no"}],onChange:function(e){f.current&&n({downloadable:e})}})),(0,l.createElement)("div",{className:"vczapi-blocks-form--group"},(0,l.createElement)(h.Button,{isPrimary:!0,onClick:function(){return"host"===p&&void 0===C?(alert("Host Needs to be selected"),!1):"meeting"!==p||V.hasOwnProperty("value")?void(f.current&&(n({selectedMeeting:V}),n({host:C}),n({shouldShow:M}),b(!1))):(alert("Meeting Needs to be selected"),!1)}},(0,u.__)("Save","video-conferencing-with-zoom-api"))))),("host"===p&&void 0!==o||"meeting"===p&&void 0!==r)&&!g&&(0,l.createElement)(h.Disabled,null,(0,l.createElement)(m(),{block:"vczapi/recordings",attributes:{downloadable:i,host:o,selectedMeeting:r,showBy:p}})))}})},679:function(e,t,n){var o=n(296),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 l(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 u=Object.defineProperty,c=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(m){var r=f(n);r&&r!==m&&e(t,r,o)}var a=c(n);p&&(a=a.concat(p(n)));for(var s=l(t),h=l(n),v=0;v<a.length;++v){var g=a[v];if(!(i[g]||o&&o[g]||h&&h[g]||s&&s[g])){var b=d(n,g);try{u(t,g,b)}catch(e){}}}}return t}},103:function(e,t){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,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,v=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,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case c:case p:case i:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case u:case d:case v:case h:case l:return e;default:return t}}case r:return t}}}function O(e){return E(e)===p}t.AsyncMode=c,t.ConcurrentMode=p,t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=d,t.Fragment=i,t.Lazy=v,t.Memo=h,t.Portal=r,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return O(e)||E(e)===c},t.isConcurrentMode=O,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return E(e)===d},t.isFragment=function(e){return E(e)===i},t.isLazy=function(e){return E(e)===v},t.isMemo=function(e){return E(e)===h},t.isPortal=function(e){return E(e)===r},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===s||e===a||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===g)},t.typeOf=E},296:function(e,t,n){e.exports=n(103)}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.m=t,e=[],o.O=function(t,n,r,i){if(!n){var a=1/0;for(c=0;c<e.length;c++){n=e[c][0],r=e[c][1],i=e[c][2];for(var s=!0,l=0;l<n.length;l++)(!1&i||a>=i)&&Object.keys(o.O).every((function(e){return o.O[e](n[l])}))?n.splice(l--,1):(s=!1,i<a&&(a=i));if(s){e.splice(c--,1);var u=r();void 0!==u&&(t=u)}}return t}i=i||0;for(var c=e.length;c>0&&e[c-1][2]>i;c--)e[c]=e[c-1];e[c]=[n,r,i]},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={826:0,431:0};o.O.j=function(t){return 0===e[t]};var t=function(t,n){var r,i,a=n[0],s=n[1],l=n[2],u=0;if(a.some((function(t){return 0!==e[t]}))){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);if(l)var c=l(o)}for(t&&t(n);u<a.length;u++)i=a[u],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return o.O(c)},n=self.webpackChunkvideo_conferencing_with_zoom_api=self.webpackChunkvideo_conferencing_with_zoom_api||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var r=o.O(void 0,[431],(function(){return o(178)}));r=o.O(r)}();