From 7e5b110dda0f55ab14f0f2cd5140d1b18ba0fb68 Mon Sep 17 00:00:00 2001 From: Sayan Datta Date: Wed, 7 Feb 2024 20:51:57 +0530 Subject: [PATCH] v1.4.1 added --- CHANGELOG.md | 6 ++++ includes/blocks/assets/blocks.asset.php | 2 +- includes/blocks/assets/blocks.js | 2 +- includes/class-payment.php | 48 +++++++++++++++++++++---- includes/css/checkout.min.css | 2 +- includes/css/checkout.scss | 6 ++-- includes/js/payment.js | 2 +- includes/js/payment.min.js | 2 +- index.js | 8 ++++- readme.txt | 8 ++++- upi-qr-code-payment-for-woocommerce.php | 22 ++++++------ 11 files changed, 80 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ede5aa7..9b62226 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Changelog All notable changes to this project will be documented in this file. +## 1.4.1 +Release Date: January 7, 2024 + +* Fixed: CSS issues. +* Tweak: PHP 8.3 Support. + ## 1.4.0 Release Date: January 6, 2024 diff --git a/includes/blocks/assets/blocks.asset.php b/includes/blocks/assets/blocks.asset.php index 751e881..5172858 100644 --- a/includes/blocks/assets/blocks.asset.php +++ b/includes/blocks/assets/blocks.asset.php @@ -1 +1 @@ - array('react', 'react-dom', 'wc-blocks-registry', 'wc-settings', 'wp-element', 'wp-html-entities'), 'version' => '0e052535178266cbf1ab'); + array('react', 'react-dom', 'wc-blocks-registry', 'wc-settings', 'wp-element', 'wp-html-entities'), 'version' => '4723d4f56e6951dfc10c'); diff --git a/includes/blocks/assets/blocks.js b/includes/blocks/assets/blocks.js index 49de168..887e68d 100644 --- a/includes/blocks/assets/blocks.js +++ b/includes/blocks/assets/blocks.js @@ -1 +1 @@ -(()=>{"use strict";var e={792:(e,t,n)=>{var o=n(819),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return o.isMemo(e)?a:s[e.$$typeof]||r}s[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[o.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(h){var r=f(n);r&&r!==h&&e(t,r,o)}var a=c(n);p&&(a=a.concat(p(n)));for(var s=u(t),m=u(n),v=0;v{var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=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,O=n?Symbol.for("react.scope"):60119;function w(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 l:case d:case v:case m:case u:return e;default:return t}}case r:return t}}}function C(e){return w(e)===p}t.AsyncMode=c,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=u,t.Element=o,t.ForwardRef=d,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=r,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return C(e)||w(e)===c},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===r},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===s||e===a||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===u||e.$$typeof===l||e.$$typeof===d||e.$$typeof===b||e.$$typeof===y||e.$$typeof===O||e.$$typeof===g)},t.typeOf=w},819:(e,t,n)=>{e.exports=n(560)}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}(()=>{const e=window.React,t=window.wc.wcBlocksRegistry,o=window.wp.htmlEntities,r=window.wc.wcSettings,i=window.wp.element;function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=new Array(t);n0?I(A,--F):0,L--,10===T&&(L=1,R--),T}function $(){return T=F2||B(T)>3?"":" "}function X(e,t){for(;--t&&$()&&!(T<48||T>102||T>57&&T<65||T>70&&T<97););return U(e,z()+(t<6&&32==_()&&32==$()))}function K(e){for(;$();)switch(T){case e:return F;case 34:case 39:34!==e&&39!==e&&K(T);break;case 40:41===e&&K(e);break;case 92:$()}return F}function Z(e,t){for(;$()&&e+T!==57&&(e+T!==84||47!==_()););return"/*"+U(t,F-1)+"*"+w(47===e?e:$())}function J(e){for(;!B(_());)$();return U(e,F)}var Q="-ms-",ee="-moz-",te="-webkit-",ne="comm",oe="rule",re="decl",ie="@keyframes";function ae(e,t){for(var n="",o=P(e),r=0;r0&&V(M)-p&&k(f>32?de(M+";",o,n,p-1):de(x(M," ","")+";",o,n,p-2),u);break;case 59:M+=";";default:if(k(S=ce(M,t,n,l,c,r,s,y,O=[],C=[],p),i),123===b)if(0===c)le(M,t,S,S,O,i,p,s,C);else switch(99===d&&110===I(M,3)?100:d){case 100:case 108:case 109:case 115:le(e,S,S,o&&k(ce(e,S,S,0,0,r,s,y,r,O=[],p),C),r,C,p,s,o?O:C);break;default:le(M,S,S,S,[""],C,0,s,C)}}l=c=f=0,m=g=1,y=M="",p=a;break;case 58:p=1+V(M),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==j())continue;switch(M+=w(b),b*m){case 38:g=c>0?1:(M+="\f",-1);break;case 44:s[l++]=(V(M)-1)*g,g=1;break;case 64:45===_()&&(M+=Y($())),d=_(),c=p=V(y=M+=J(z())),b++;break;case 45:45===h&&2==V(M)&&(m=0)}}return i}function ce(e,t,n,o,r,i,a,s,u,l,c){for(var p=r-1,d=0===r?i:[""],f=P(d),h=0,m=0,v=0;h0?d[g]+" "+b:x(b,/&\f/g,d[g])))&&(u[v++]=y);return H(e,t,n,0===r?oe:s,u,l,c)}function pe(e,t,n){return H(e,t,n,ne,w(T),M(e,2,-2),0)}function de(e,t,n,o){return H(e,t,n,re,M(e,0,o),M(e,o+1,-1),o)}var fe=function(e,t,n){for(var o=0,r=0;o=r,r=_(),38===o&&12===r&&(t[n]=1),!B(r);)$();return U(e,F)},he=new WeakMap,me=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)||he.get(n))&&!o){he.set(e,!0);for(var r=[],i=function(e,t){return G(function(e,t){var n=-1,o=44;do{switch(B(o)){case 0:38===o&&12===_()&&(t[n]=1),e[n]+=fe(F-1,t,n);break;case 2:e[n]+=Y(o);break;case 4:if(44===o){e[++n]=58===_()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=w(o)}}while(o=$());return e}(W(e),t))}(t,r),a=n.props,s=0,u=0;s6)switch(I(e,t+1)){case 109:if(45!==I(e,t+4))break;case 102:return x(e,/(.+:)(.+)-([^]+)/,"$1"+te+"$2-$3$1"+ee+(108==I(e,t+3)?"$3":"$2-$3"))+e;case 115:return~E(e,"stretch")?ge(x(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==I(e,t+1))break;case 6444:switch(I(e,V(e)-3-(~E(e,"!important")&&10))){case 107:return x(e,":",":"+te)+e;case 101:return x(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+te+(45===I(e,14)?"inline-":"")+"box$3$1"+te+"$2$3$1"+Q+"$2box$3")+e}break;case 5936:switch(I(e,t+11)){case 114:return te+e+Q+x(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return te+e+Q+x(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return te+e+Q+x(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return te+e+Q+e+e}return e}var be=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case re:e.return=ge(e.value,e.length);break;case ie:return ae([N(e,{value:x(e.value,"@","@"+te)})],o);case oe: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 ae([N(e,{props:[x(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return ae([N(e,{props:[x(t,/:(plac\w+)/,":"+te+"input-$1")]}),N(e,{props:[x(t,/:(plac\w+)/,":-moz-$1")]}),N(e,{props:[x(t,/:(plac\w+)/,Q+"input-$1")]})],o)}return""}))}}],ye=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||be,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=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(r)+u;return{name:l,styles:r,next:ke}},De=!!e.useInsertionEffect&&e.useInsertionEffect,Fe=De||function(e){return e()},Te=(De||e.useLayoutEffect,{}.hasOwnProperty),Ae=e.createContext("undefined"!=typeof HTMLElement?ye({key:"css"}):null);Ae.Provider;var He=function(t){return(0,e.forwardRef)((function(n,o){var r=(0,e.useContext)(Ae);return t(n,r,o)}))},Ne=e.createContext({}),je="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",$e=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;return Oe(t,n,o),Fe((function(){return function(e,t,n){Oe(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},_e=He((function(t,n,o){var r=t.css;"string"==typeof r&&void 0!==n.registered[r]&&(r=n.registered[r]);var i=t[je],a=[r],s="";"string"==typeof t.className?s=function(e,t,n){var o="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):o+=n+" "})),o}(n.registered,a,t.className):null!=t.className&&(s=t.className+" ");var u=Le(a,void 0,e.useContext(Ne));s+=n.key+"-"+u.name;var l={};for(var c in t)Te.call(t,c)&&"css"!==c&&c!==je&&(l[c]=t[c]);return l.ref=o,l.className=s,e.createElement(e.Fragment,null,e.createElement($e,{cache:n,serialized:u,isStringTag:"string"==typeof i}),e.createElement(i,l))})),ze=_e,Ue=(n(792),function(t,n){var o=arguments;if(null==n||!Te.call(n,"css"))return e.createElement.apply(void 0,o);var r=o.length,i=new Array(r);i[0]=ze,i[1]=function(e,t){var n={};for(var o in t)Te.call(t,o)&&(n[o]=t[o]);return n[je]=e,n}(t,n);for(var a=2;a=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}const Ye=window.ReactDOM,qe=Math.min,Xe=Math.max,Ke=Math.round,Ze=Math.floor,Je=e=>({x:e,y:e});function Qe(e){return nt(e)?(e.nodeName||"").toLowerCase():"#document"}function et(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function tt(e){var t;return null==(t=(nt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function nt(e){return e instanceof Node||e instanceof et(e).Node}function ot(e){return e instanceof Element||e instanceof et(e).Element}function rt(e){return e instanceof HTMLElement||e instanceof et(e).HTMLElement}function it(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof et(e).ShadowRoot)}function at(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=st(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function st(e){return et(e).getComputedStyle(e)}function ut(e){const t=function(e){if("html"===Qe(e))return e;const t=e.assignedSlot||e.parentNode||it(e)&&e.host||tt(e);return it(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(Qe(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:rt(t)&&at(t)?t:ut(t)}function lt(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=ut(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=et(r);return i?t.concat(a,a.visualViewport||[],at(r)?r:[],a.frameElement&&n?lt(a.frameElement):[]):t.concat(r,lt(r,[],n))}function ct(e){return ot(e)?e:e.contextElement}function pt(e){const t=ct(e);if(!rt(t))return Je(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=function(e){const t=st(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=rt(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,s=Ke(n)!==i||Ke(o)!==a;return s&&(n=i,o=a),{width:n,height:o,$:s}}(t);let a=(i?Ke(n.width):n.width)/o,s=(i?Ke(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const dt=Je(0);function ft(e){const t=et(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:dt}function ht(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=ct(e);let a=Je(1);t&&(o?ot(o)&&(a=pt(o)):a=pt(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==et(e))&&t}(i,n,o)?ft(i):Je(0);let u=(r.left+s.x)/a.x,l=(r.top+s.y)/a.y,c=r.width/a.x,p=r.height/a.y;if(i){const e=et(i),t=o&&ot(o)?et(o):o;let n=e.frameElement;for(;n&&o&&t!==e;){const e=pt(n),t=n.getBoundingClientRect(),o=st(n),r=t.left+(n.clientLeft+parseFloat(o.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(o.paddingTop))*e.y;u*=e.x,l*=e.y,c*=e.x,p*=e.y,u+=r,l+=i,n=et(n).frameElement}}return d={width:c,height:p,x:u,y:l},{...d,top:d.y,left:d.x,right:d.x+d.width,bottom:d.y+d.height};var d}const mt=e.useLayoutEffect;var vt=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],gt=function(){};function bt(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function yt(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r-1}function xt(e){return St(e)?window.pageYOffset:e.scrollTop}function Et(e,t){St(e)?window.scrollTo(0,t):e.scrollTop=t}function It(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:gt,r=xt(e),i=t-r,a=0;!function t(){var s,u=i*((s=(s=a+=10)/n-1)*s*s+1)+r;Et(e,u),an.bottom?Et(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):o.top-r=h)return{placement:"bottom",maxHeight:t};if(x>=h&&!a)return i&&It(u,E,M),{placement:"bottom",maxHeight:t};if(!a&&x>=o||a&&C>=o)return i&&It(u,E,M),{placement:"bottom",maxHeight:a?C-y:x-y};if("auto"===r||a){var V=t,P=a?w:S;return P>=o&&(V=Math.min(P-y-s,t)),{placement:"top",maxHeight:V}}if("bottom"===r)return i&&Et(u,E),{placement:"bottom",maxHeight:t};break;case"top":if(w>=h)return{placement:"top",maxHeight:t};if(S>=h&&!a)return i&&It(u,I,M),{placement:"top",maxHeight:t};if(!a&&S>=o||a&&w>=o){var k=t;return(!a&&S>=o||a&&w>=o)&&(k=a?w-O:S-O),i&&It(u,I,M),{placement:"top",maxHeight:k}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return l}({maxHeight:r,menuEl:e,minHeight:o,placement:i,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:b});h(n.maxHeight),g(n.placement),null==l||l(n.placement)}}),[r,i,a,s,o,l,b]),n({ref:c,placerProps:p(p({},t),{},{placement:v||$t(i),maxHeight:f})})},Ut=function(e,t){var n=e.theme,o=n.spacing.baseUnit,r=n.colors;return p({textAlign:"center"},t?{}:{color:r.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},Bt=Ut,Wt=Ut,Gt=["size"],Yt=["innerProps","isRtl","size"],qt={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Xt=function(e){var t=e.size,n=Ge(e,Gt);return Ue("svg",a({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:qt},n))},Kt=function(e){return Ue(Xt,a({size:20},e),Ue("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"}))},Zt=function(e){return Ue(Xt,a({size:20},e),Ue("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"}))},Jt=function(e,t){var n=e.isFocused,o=e.theme,r=o.spacing.baseUnit,i=o.colors;return p({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*r,":hover":{color:n?i.neutral80:i.neutral40}})},Qt=Jt,en=Jt,tn=function(){var e=Be.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_"}}}(Ht||(Nt=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],jt||(jt=Nt.slice(0)),Ht=Object.freeze(Object.defineProperties(Nt,{raw:{value:Object.freeze(jt)}})))),nn=function(e){var t=e.delay,n=e.offset;return Ue("span",{css:Be({animation:"".concat(tn," 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"},"","")})},on=["data"],rn=["innerRef","isDisabled","isHidden","inputClassName"],an={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},sn={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":p({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},an)},un=function(e){return p({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},an)},ln=function(e){var t=e.children,n=e.innerProps;return Ue("div",n,t)},cn={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Ue("div",a({},Ct(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Ue(Kt,null))},Control:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.innerRef,i=e.innerProps,s=e.menuIsOpen;return Ue("div",a({ref:r},Ct(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":s}),i,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Ue("div",a({},Ct(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Ue(Zt,null))},DownChevron:Zt,CrossIcon:Kt,Group:function(e){var t=e.children,n=e.cx,o=e.getStyles,r=e.getClassNames,i=e.Heading,s=e.headingProps,u=e.innerProps,l=e.label,c=e.theme,p=e.selectProps;return Ue("div",a({},Ct(e,"group",{group:!0}),u),Ue(i,a({},s,{selectProps:p,theme:c,getStyles:o,getClassNames:r,cx:n}),l),Ue("div",null,t))},GroupHeading:function(e){var t=wt(e);t.data;var n=Ge(t,on);return Ue("div",a({},Ct(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Ue("div",a({},Ct(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Ue("span",a({},t,Ct(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,o=wt(e),r=o.innerRef,i=o.isDisabled,s=o.isHidden,u=o.inputClassName,l=Ge(o,rn);return Ue("div",a({},Ct(e,"input",{"input-container":!0}),{"data-value":n||""}),Ue("input",a({className:t({input:!0},u),ref:r,style:un(s),disabled:i},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,o=e.size,r=void 0===o?4:o,i=Ge(e,Yt);return Ue("div",a({},Ct(p(p({},i),{},{innerProps:t,isRtl:n,size:r}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Ue(nn,{delay:0,offset:n}),Ue(nn,{delay:160,offset:!0}),Ue(nn,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return Ue("div",a({},Ct(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 Ue("div",a({},Ct(e,"menuList",{"menu-list":!0,"menu-list--is-multi":r}),{ref:o},n),t)},MenuPortal:function(t){var n=t.appendTo,o=t.children,r=t.controlElement,i=t.innerProps,s=t.menuPlacement,u=t.menuPosition,l=(0,e.useRef)(null),c=(0,e.useRef)(null),d=We((0,e.useState)($t(s)),2),f=d[0],h=d[1],m=(0,e.useMemo)((function(){return{setPortalPlacement:h}}),[]),v=We((0,e.useState)(null),2),g=v[0],b=v[1],y=(0,e.useCallback)((function(){if(r){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}}(r),t="fixed"===u?0:window.pageYOffset,n=e[f]+t;n===(null==g?void 0:g.offset)&&e.left===(null==g?void 0:g.rect.left)&&e.width===(null==g?void 0:g.rect.width)||b({offset:n,rect:e})}}),[r,u,f,null==g?void 0:g.offset,null==g?void 0:g.rect.left,null==g?void 0:g.rect.width]);mt((function(){y()}),[y]);var O=(0,e.useCallback)((function(){"function"==typeof c.current&&(c.current(),c.current=null),r&&l.current&&(c.current=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=o,l=ct(e),c=r||i?[...l?lt(l):[],...lt(t)]:[];c.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const p=l&&s?function(e,t){let n,o=null;const r=tt(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function a(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),i();const{left:l,top:c,width:p,height:d}=e.getBoundingClientRect();if(s||t(),!p||!d)return;const f={rootMargin:-Ze(c)+"px "+-Ze(r.clientWidth-(l+p))+"px "+-Ze(r.clientHeight-(c+d))+"px "+-Ze(l)+"px",threshold:Xe(0,qe(1,u))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==u){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}h=!1}try{o=new IntersectionObserver(m,{...f,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(m,f)}o.observe(e)}(!0),i}(l,n):null;let d,f=-1,h=null;a&&(h=new ResizeObserver((e=>{let[o]=e;o&&o.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),l&&!u&&h.observe(l),h.observe(t));let m=u?ht(e):null;return u&&function t(){const o=ht(e);!m||o.x===m.x&&o.y===m.y&&o.width===m.width&&o.height===m.height||n(),m=o,d=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==p||p(),null==(e=h)||e.disconnect(),h=null,u&&cancelAnimationFrame(d)}}(r,l.current,y,{elementResize:"ResizeObserver"in window}))}),[r,y]);mt((function(){O()}),[O]);var w=(0,e.useCallback)((function(e){l.current=e,O()}),[O]);if(!n&&"fixed"!==u||!g)return null;var C=Ue("div",a({ref:w},Ct(p(p({},t),{},{offset:g.offset,position:u,rect:g.rect}),"menuPortal",{"menu-portal":!0}),i),o);return Ue(_t.Provider,{value:m},n?(0,Ye.createPortal)(C,n):C)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,o=e.innerProps,r=Ge(e,At);return Ue("div",a({},Ct(p(p({},r),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,o=e.innerProps,r=Ge(e,Tt);return Ue("div",a({},Ct(p(p({},r),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},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,u=n.Container,l=n.Label,c=n.Remove;return Ue(u,{data:o,innerProps:p(p({},Ct(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),r),selectProps:s},Ue(l,{data:o,innerProps:p({},Ct(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),Ue(c,{data:o,innerProps:p(p({},Ct(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:ln,MultiValueLabel:ln,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Ue("div",a({role:"button"},n),t||Ue(Kt,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.innerRef,s=e.innerProps;return Ue("div",a({},Ct(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":r}),{ref:i,"aria-disabled":n},s),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Ue("div",a({},Ct(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,r=e.isRtl;return Ue("div",a({},Ct(e,"container",{"--is-disabled":o,"--is-rtl":r}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return Ue("div",a({},Ct(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 Ue("div",a({},Ct(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":r}),n),t)}},pn=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function dn(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return"option ".concat(o,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,o=e.options,r=e.label,i=void 0===r?"":r,a=e.selectValue,s=e.isDisabled,u=e.isSelected,l=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(c(a,n),".");if("menu"===t&&l){var p=s?" disabled":"",d="".concat(u?" selected":"").concat(p);return"".concat(i).concat(d,", ").concat(c(o,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},vn=function(t){var n=t.ariaSelection,o=t.focusedOption,r=t.focusedValue,i=t.focusableOptions,a=t.isFocused,s=t.selectValue,u=t.selectProps,l=t.id,c=t.isAppleDevice,d=u.ariaLiveMessages,f=u.getOptionLabel,h=u.inputValue,m=u.isMulti,v=u.isOptionDisabled,g=u.isSearchable,b=u.menuIsOpen,y=u.options,O=u.screenReaderStatus,w=u.tabSelectsValue,C=u.isLoading,S=u["aria-label"],x=u["aria-live"],E=(0,e.useMemo)((function(){return p(p({},mn),d||{})}),[d]),I=(0,e.useMemo)((function(){var e,t="";if(n&&E.onChange){var o=n.option,r=n.options,i=n.removedValue,a=n.removedValues,u=n.value,l=i||o||(e=u,Array.isArray(e)?null:e),c=l?f(l):"",d=r||a||void 0,h=d?d.map(f):[],m=p({isDisabled:l&&v(l,s),label:c,labels:h},n);t=E.onChange(m)}return t}),[n,E,v,s,f]),M=(0,e.useMemo)((function(){var e="",t=o||r,n=!!(o&&s&&s.includes(o));if(t&&E.onFocus){var a={focused:t,label:f(t),isDisabled:v(t,s),isSelected:n,options:i,context:t===o?"menu":"value",selectValue:s,isAppleDevice:c};e=E.onFocus(a)}return e}),[o,r,f,v,E,i,s,c]),V=(0,e.useMemo)((function(){var e="";if(b&&y.length&&!C&&E.onFilter){var t=O({count:i.length});e=E.onFilter({inputValue:h,resultsMessage:t})}return e}),[i,h,b,E,y,O,C]),P="initial-input-focus"===(null==n?void 0:n.action),k=(0,e.useMemo)((function(){var e="";if(E.guidance){var t=r?"value":b?"menu":"input";e=E.guidance({"aria-label":S,context:t,isDisabled:o&&v(o,s),isMulti:m,isSearchable:g,tabSelectsValue:w,isInitialFocus:P})}return e}),[S,o,r,m,v,g,b,E,s,w,P]),R=Ue(e.Fragment,null,Ue("span",{id:"aria-selection"},I),Ue("span",{id:"aria-focused"},M),Ue("span",{id:"aria-results"},V),Ue("span",{id:"aria-guidance"},k));return Ue(e.Fragment,null,Ue(hn,{id:l},P&&R),Ue(hn,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!P&&R))},gn=[{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źẑżžẓẕƶȥɀⱬꝣ"}],bn=new RegExp("["+gn.map((function(e){return e.letters})).join("")+"]","g"),yn={},On=0;On1?t-1:0),o=1;o0,m=p-d-l,v=!1;m>t&&s.current&&(r&&r(e),s.current=!1),h&&u.current&&(a&&a(e),u.current=!1),h&&t>m?(o&&!s.current&&o(e),f.scrollTop=p,v=!0,s.current=!0):!h&&-t>l&&(i&&!u.current&&i(e),f.scrollTop=0,v=!0,u.current=!0),v&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[o,r,i,a]),d=(0,e.useCallback)((function(e){p(e,e.deltaY)}),[p]),f=(0,e.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),h=(0,e.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;p(e,t)}),[p]),m=(0,e.useCallback)((function(e){if(e){var t=!!Lt&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",h,t)}}),[h,f,d]),v=(0,e.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",h,!1))}),[h,f,d]);return(0,e.useEffect)((function(){if(n){var e=c.current;return m(e),function(){v(e)}}}),[n,m,v]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),a=function(t){var n=t.isEnabled,o=t.accountForScrollbars,r=void 0===o||o,i=(0,e.useRef)({}),a=(0,e.useRef)(null),s=(0,e.useCallback)((function(e){if(Tn){var t=document.body,n=t&&t.style;if(r&&Pn.forEach((function(e){var t=n&&n[e];i.current[e]=t})),r&&An<1){var o=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+o||0;Object.keys(kn).forEach((function(e){var t=kn[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&Fn()&&(t.addEventListener("touchmove",Rn,Hn),e&&(e.addEventListener("touchstart",Dn,Hn),e.addEventListener("touchmove",Ln,Hn))),An+=1}}),[r]),u=(0,e.useCallback)((function(e){if(Tn){var t=document.body,n=t&&t.style;An=Math.max(An-1,0),r&&An<1&&Pn.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&Fn()&&(t.removeEventListener("touchmove",Rn,Hn),e&&(e.removeEventListener("touchstart",Dn,Hn),e.removeEventListener("touchmove",Ln,Hn)))}}),[r]);return(0,e.useEffect)((function(){if(n){var e=a.current;return s(e),function(){u(e)}}}),[n,s,u]),function(e){a.current=e}}({isEnabled:o});return Ue(e.Fragment,null,o&&Ue("div",{onClick:Nn,css:jn}),n((function(e){i(e),a(e)})))}var zn={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Un=function(e){var t=e.name,n=e.onFocus;return Ue("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:zn,value:"",onChange:function(){}})};function Bn(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Wn(){return Bn(/^Mac/i)}var Gn=function(e){return e.label},Yn=function(e){return e.value},qn={clearIndicator:en,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 p({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:Qt,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 p({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 p({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 p(p({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},sn),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 p({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:Wt,menu:function(e,t){var n,o=e.placement,r=e.theme,i=r.borderRadius,a=r.spacing,s=r.colors;return p((l(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),l(n,"position","absolute"),l(n,"width","100%"),l(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 p({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 p({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 p({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 p({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:Bt,option:function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return p({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 p({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 p({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 p({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")})}},Xn={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}},Kn={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Vt(),captureMenuScroll:!Vt(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=p({ignoreCase:!0,ignoreAccents:!0,stringify:In,trim:!0,matchFrom:"any"},undefined),o=n.ignoreCase,r=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,u=a?En(t):t,l=a?En(i(e)):i(e);return o&&(u=u.toLowerCase(),l=l.toLowerCase()),r&&(u=xn(u),l=Sn(l)),"start"===s?l.substr(0,u.length)===u:l.indexOf(u)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:Gn,getOptionValue:Yn,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 Zn(e,t,n,o){return{type:"option",data:t,isDisabled:io(e,t,n),isSelected:ao(e,t,n),label:oo(e,t),value:ro(e,t),index:o}}function Jn(e,t){return e.options.map((function(n,o){if("options"in n){var r=n.options.map((function(n,o){return Zn(e,n,t,o)})).filter((function(t){return to(e,t)}));return r.length>0?{type:"group",data:n,options:r,index:o}:void 0}var i=Zn(e,n,t,o);return to(e,i)?i:void 0})).filter(Dt)}function Qn(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,b(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function eo(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,b(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function to(e,t){var n=e.inputValue,o=void 0===n?"":n,r=t.data,i=t.isSelected,a=t.label,s=t.value;return(!uo(e)||!i)&&so(e,{label:a,value:s,data:r},o)}var no=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},oo=function(e,t){return e.getOptionLabel(t)},ro=function(e,t){return e.getOptionValue(t)};function io(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ao(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=ro(e,t);return n.some((function(t){return ro(e,t)===o}))}function so(e,t,n){return!e.filterOption||e.filterOption(t,n)}var uo=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},lo=1,co=function(t){!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&&f(e,t)}(c,t);var n,o,r,i,u,l=(n=c,o=m(),function(){var e,t=h(n);if(o){var r=h(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===s(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,e)});function c(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=l.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=Wn()||Bn(/^iPhone/i)||Bn(/^iPad/i)||Wn()&&navigator.maxTouchPoints>1,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var o=t.props,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,a=t.state.selectValue,s=r&&t.isOptionSelected(e,a),u=t.isOptionDisabled(e,a);if(s){var l=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==l})),"deselect-option",e)}else{if(u)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});r?t.setValue([].concat(b(a),[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=Ft(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(Ft(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=Ft(e,r,r[0]||null);t.onChange(i,{action:"pop-value",removedValue:o})},t.getFocusedOptionId=function(e){return no(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return eo(Jn(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),o=0;o5||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){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return uo(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,u=n.isDisabled,l=n.menuIsOpen,c=n.onKeyDown,p=n.tabSelectsValue,d=n.openMenuOnFocus,f=t.state,h=f.focusedOption,m=f.focusedValue,v=f.selectValue;if(!(u||"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(m)t.removeValue(m);else{if(!r)return;o?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!l||!p||!h||d&&t.isOptionSelected(h,v))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(l){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":l?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&i&&t.clearValue();break;case" ":if(a)return;if(!l){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":l?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":l?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!l)return;t.focusOption("pageup");break;case"PageDown":if(!l)return;t.focusOption("pagedown");break;case"Home":if(!l)return;t.focusOption("first");break;case"End":if(!l)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++lo),t.state.selectValue=Ot(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),o=t.buildFocusableOptions(),r=o.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=o[r],t.state.focusedOptionId=no(n,o[r])}return t}return r=c,i=[{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&&Mt(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&&(Mt(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,o=n.selectValue,r=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(o[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(r&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var r=n.indexOf(o);o||(r=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===r?0:-1===r?i:r-1;break;case"next":r>-1&&r0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var r=0,i=o.indexOf(n);n||(i=-1),"up"===e?r=i>0?i-1:o.length-1:"down"===e?r=(i+1)%o.length:"pageup"===e?(r=i-t)<0&&(r=0):"pagedown"===e?(r=i+t)>o.length-1&&(r=o.length-1):"last"===e&&(r=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[r],focusedValue:null,focusedOptionId:this.getFocusedOptionId(o[r])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Xn):p(p({},Xn),this.props.theme):Xn}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getClassNames,r=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,u=s.isMulti,l=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:r,hasValue:this.hasValue(),isMulti:u,isRtl:l,options:c,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return io(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ao(this.props,e,t)}},{key:"filterOption",value:function(e,t){return so(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 t=this.props,n=t.isDisabled,o=t.isSearchable,r=t.inputId,i=t.inputValue,s=t.tabIndex,u=t.form,l=t.menuIsOpen,c=t.required,d=this.getComponents().Input,f=this.state,h=f.inputIsHidden,m=f.ariaSelection,v=this.commonProps,g=r||this.getElementId("input"),b=p(p(p({"aria-autocomplete":"list","aria-expanded":l,"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":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!o&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==m?void 0:m.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return o?e.createElement(d,a({},v,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:n,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:u,type:"text",value:i},b)):e.createElement(Vn,a({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:gt,onFocus:this.onInputFocus,disabled:n,tabIndex:s,inputMode:"none",form:u,value:""},b))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,n=this.getComponents(),o=n.MultiValue,r=n.MultiValueContainer,i=n.MultiValueLabel,s=n.MultiValueRemove,u=n.SingleValue,l=n.Placeholder,c=this.commonProps,p=this.props,d=p.controlShouldRenderValue,f=p.isDisabled,h=p.isMulti,m=p.inputValue,v=p.placeholder,g=this.state,b=g.selectValue,y=g.focusedValue,O=g.isFocused;if(!this.hasValue()||!d)return m?null:e.createElement(l,a({},c,{key:"placeholder",isDisabled:f,isFocused:O,innerProps:{id:this.getElementId("placeholder")}}),v);if(h)return b.map((function(n,u){var l=n===y,p="".concat(t.getOptionLabel(n),"-").concat(t.getOptionValue(n));return e.createElement(o,a({},c,{components:{Container:r,Label:i,Remove:s},isFocused:l,isDisabled:f,key:p,index:u,removeProps:{onClick:function(){return t.removeValue(n)},onTouchEnd:function(){return t.removeValue(n)},onMouseDown:function(e){e.preventDefault()}},data:n}),t.formatOptionLabel(n,"value"))}));if(m)return null;var w=b[0];return e.createElement(u,a({},c,{data:w,isDisabled:f}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.getComponents().ClearIndicator,n=this.commonProps,o=this.props,r=o.isDisabled,i=o.isLoading,s=this.state.isFocused;if(!this.isClearable()||!t||r||!this.hasValue()||i)return null;var u={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,a({},n,{innerProps:u,isFocused:s}))}},{key:"renderLoadingIndicator",value:function(){var t=this.getComponents().LoadingIndicator,n=this.commonProps,o=this.props,r=o.isDisabled,i=o.isLoading,s=this.state.isFocused;return t&&i?e.createElement(t,a({},n,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:s})):null}},{key:"renderIndicatorSeparator",value:function(){var t=this.getComponents(),n=t.DropdownIndicator,o=t.IndicatorSeparator;if(!n||!o)return null;var r=this.commonProps,i=this.props.isDisabled,s=this.state.isFocused;return e.createElement(o,a({},r,{isDisabled:i,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var t=this.getComponents().DropdownIndicator;if(!t)return null;var n=this.commonProps,o=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,a({},n,{innerProps:i,isDisabled:o,isFocused:r}))}},{key:"renderMenu",value:function(){var t=this,n=this.getComponents(),o=n.Group,r=n.GroupHeading,i=n.Menu,s=n.MenuList,u=n.MenuPortal,l=n.LoadingMessage,c=n.NoOptionsMessage,p=n.Option,d=this.commonProps,f=this.state.focusedOption,h=this.props,m=h.captureMenuScroll,v=h.inputValue,g=h.isLoading,b=h.loadingMessage,y=h.minMenuHeight,O=h.maxMenuHeight,w=h.menuIsOpen,C=h.menuPlacement,S=h.menuPosition,x=h.menuPortalTarget,E=h.menuShouldBlockScroll,I=h.menuShouldScrollIntoView,M=h.noOptionsMessage,V=h.onMenuScrollToTop,P=h.onMenuScrollToBottom;if(!w)return null;var k,R=function(n,o){var r=n.type,i=n.data,s=n.isDisabled,u=n.isSelected,l=n.label,c=n.value,h=f===i,m=s?void 0:function(){return t.onOptionHover(i)},v=s?void 0:function(){return t.selectOption(i)},g="".concat(t.getElementId("option"),"-").concat(o),b={id:g,onClick:v,onMouseMove:m,onMouseOver:m,tabIndex:-1,role:"option","aria-selected":t.isAppleDevice?void 0:u};return e.createElement(p,a({},d,{innerProps:b,data:i,isDisabled:s,isSelected:u,key:g,label:l,type:r,value:c,isFocused:h,innerRef:h?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())k=this.getCategorizedOptions().map((function(n){if("group"===n.type){var i=n.data,s=n.options,u=n.index,l="".concat(t.getElementId("group"),"-").concat(u),c="".concat(l,"-heading");return e.createElement(o,a({},d,{key:l,data:i,options:s,Heading:r,headingProps:{id:c,data:n.data},label:t.formatGroupLabel(n.data)}),n.options.map((function(e){return R(e,"".concat(u,"-").concat(e.index))})))}if("option"===n.type)return R(n,"".concat(n.index))}));else if(g){var L=b({inputValue:v});if(null===L)return null;k=e.createElement(l,d,L)}else{var D=M({inputValue:v});if(null===D)return null;k=e.createElement(c,d,D)}var F={minMenuHeight:y,maxMenuHeight:O,menuPlacement:C,menuPosition:S,menuShouldScrollIntoView:I},T=e.createElement(zt,a({},d,F),(function(n){var o=n.ref,r=n.placerProps,u=r.placement,l=r.maxHeight;return e.createElement(i,a({},d,F,{innerRef:o,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:g,placement:u}),e.createElement($n,{captureEnabled:m,onTopArrive:V,onBottomArrive:P,lockEnabled:E},(function(n){return e.createElement(s,a({},d,{innerRef:function(e){t.getMenuListRef(e),n(e)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:t.getElementId("listbox")},isLoading:g,maxHeight:l,focusedOption:f}),k)})))}));return x||"fixed"===S?e.createElement(u,a({},d,{appendTo:x,controlElement:this.controlRef,menuPlacement:C,menuPosition:S}),T):T}},{key:"renderFormField",value:function(){var t=this,n=this.props,o=n.delimiter,r=n.isDisabled,i=n.isMulti,a=n.name,s=n.required,u=this.state.selectValue;if(s&&!this.hasValue()&&!r)return e.createElement(Un,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(i){if(o){var l=u.map((function(e){return t.getOptionValue(e)})).join(o);return e.createElement("input",{name:a,type:"hidden",value:l})}var c=u.length>0?u.map((function(n,o){return e.createElement("input",{key:"i-".concat(o),name:a,type:"hidden",value:t.getOptionValue(n)})})):e.createElement("input",{name:a,type:"hidden",value:""});return e.createElement("div",null,c)}var p=u[0]?this.getOptionValue(u[0]):"";return e.createElement("input",{name:a,type:"hidden",value:p})}}},{key:"renderLiveRegion",value:function(){var t=this.commonProps,n=this.state,o=n.ariaSelection,r=n.focusedOption,i=n.focusedValue,s=n.isFocused,u=n.selectValue,l=this.getFocusableOptions();return e.createElement(vn,a({},t,{id:this.getElementId("live-region"),ariaSelection:o,focusedOption:r,focusedValue:i,isFocused:s,selectValue:u,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var t=this.getComponents(),n=t.Control,o=t.IndicatorsContainer,r=t.SelectContainer,i=t.ValueContainer,s=this.props,u=s.className,l=s.id,c=s.isDisabled,p=s.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return e.createElement(r,a({},f,{className:u,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),e.createElement(n,a({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:p}),e.createElement(i,a({},f,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),e.createElement(o,a({},f,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],u=[{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,u=t.instancePrefix,l=e.options,c=e.value,d=e.menuIsOpen,f=e.inputValue,h=e.isMulti,m=Ot(c),v={};if(n&&(c!==n.value||l!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?function(e,t){return Qn(Jn(e,t))}(e,m):[],b=d?eo(Jn(e,m),"".concat(u,"-option")):[],y=o?function(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o-1?n:t[0]}(t,g);v={selectValue:m,focusedOption:O,focusedOptionId:no(b,O),focusableOptionsWithIds:b,focusedValue:y,clearFocusValueOnUpdate:!1}}var w=null!=r&&e!==n?{inputIsHidden:r,inputIsHiddenAfterUpdate:void 0}:{},C=i,S=a&&s;return a&&!S&&(C={value:Ft(h,m,m[0]||null),options:m,action:"initial-input-focus"},S=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(C=null),p(p(p({},v),w),{},{prevProps:e,ariaSelection:C,prevWasFocused:S})}}],i&&d(r.prototype,i),u&&d(r,u),Object.defineProperty(r,"prototype",{writable:!1}),c}(e.Component);co.defaultProps=Kn;var po=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"],fo=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],ho=function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),o=String(t.getOptionValue(e)).toLowerCase(),r=String(t.getOptionLabel(e)).toLowerCase();return o===n||r===n},mo={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,o){return!(!e||t.some((function(t){return ho(e,t,o)}))||n.some((function(t){return ho(e,t,o)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}},vo=(0,e.forwardRef)((function(t,n){var o=function(t){var n=t.defaultInputValue,o=void 0===n?"":n,r=t.defaultMenuIsOpen,i=void 0!==r&&r,a=t.defaultValue,s=void 0===a?null:a,u=t.inputValue,l=t.menuIsOpen,c=t.onChange,d=t.onInputChange,f=t.onMenuClose,h=t.onMenuOpen,m=t.value,v=Ge(t,po),g=We((0,e.useState)(void 0!==u?u:o),2),b=g[0],y=g[1],O=We((0,e.useState)(void 0!==l?l:i),2),w=O[0],C=O[1],S=We((0,e.useState)(void 0!==m?m:s),2),x=S[0],E=S[1],I=(0,e.useCallback)((function(e,t){"function"==typeof c&&c(e,t),E(e)}),[c]),M=(0,e.useCallback)((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),y(void 0!==n?n:e)}),[d]),V=(0,e.useCallback)((function(){"function"==typeof h&&h(),C(!0)}),[h]),P=(0,e.useCallback)((function(){"function"==typeof f&&f(),C(!1)}),[f]),k=void 0!==u?u:b,R=void 0!==l?l:w,L=void 0!==m?m:x;return p(p({},v),{},{inputValue:k,menuIsOpen:R,onChange:I,onInputChange:M,onMenuClose:P,onMenuOpen:V,value:L})}(t),r=function(t){var n=t.allowCreateWhileLoading,o=void 0!==n&&n,r=t.createOptionPosition,i=void 0===r?"last":r,a=t.formatCreateLabel,s=void 0===a?mo.formatCreateLabel:a,u=t.isValidNewOption,l=void 0===u?mo.isValidNewOption:u,c=t.getNewOptionData,d=void 0===c?mo.getNewOptionData:c,f=t.onCreateOption,h=t.options,m=void 0===h?[]:h,v=t.onChange,g=Ge(t,fo),y=g.getOptionValue,O=void 0===y?Yn:y,w=g.getOptionLabel,C=void 0===w?Gn:w,S=g.inputValue,x=g.isLoading,E=g.isMulti,I=g.value,M=g.name,V=(0,e.useMemo)((function(){return l(S,Ot(I),m,{getOptionValue:O,getOptionLabel:C})?d(S,s(S)):void 0}),[s,d,C,O,S,l,m,I]),P=(0,e.useMemo)((function(){return!o&&x||!V?m:"first"===i?[V].concat(b(m)):[].concat(b(m),[V])}),[o,i,x,V,m]),k=(0,e.useCallback)((function(e,t){if("select-option"!==t.action)return v(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]!==V)v(e,t);else if(f)f(S);else{var o=d(S,S),r={action:"create-option",name:M,option:o};v(Ft(E,[].concat(b(Ot(I)),[o]),o),r)}}),[d,S,E,M,V,f,v,I]);return p(p({},g),{},{options:P,onChange:k})}(o);return e.createElement(co,a({ref:n},r))})),go=vo;const bo=(0,r.getSetting)("wc-upi_data",{}),yo=(0,o.decodeEntities)(bo.title)||"Pay via UPI QR Code",Oo=()=>(0,o.decodeEntities)(bo.description||""),wo={name:"wc-upi",label:(0,e.createElement)((t=>{const{PaymentMethodLabel:n}=t.components;return(0,e.createElement)(n,{text:yo})}),null),content:"hide"===bo?.upi_address?(0,e.createElement)(Oo,null):(0,e.createElement)((t=>{const{eventRegistration:n,emitResponse:o}=t,{onPaymentSetup:r}=n,[a,s]=(0,i.useState)(""),[u,l]=(0,i.useState)("");return(0,i.useEffect)((()=>{const e=r((async()=>({type:o.responseTypes.SUCCESS,meta:{paymentMethodData:{customer_upiwc_address:a,customer_upiwc_handle:u?.value}}})));return()=>{e()}}),[o.responseTypes.ERROR,o.responseTypes.SUCCESS,r,a,u]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Oo,null),(0,e.createElement)("div",{className:"upiwc-input block"},(0,e.createElement)("label",null,"UPI Address ",bo?.require_upi&&(0,e.createElement)("span",{class:"required"},"*")),(0,e.createElement)("div",{className:"upiwc-input-field"},(0,e.createElement)("input",{id:"upiwc-address",pattern:"[a-zA-Z0-9]+",className:"upiwc-address block",type:"text",autocomplete:"off",placeholder:`e.g. ${bo?.placeholder}`,value:a,onChange:e=>s(e.target.value)}),"show_handle"===bo?.upi_address&&(0,e.createElement)(go,{isClearable:!0,value:u,options:bo?.handles,onChange:e=>l(e),className:"upiwc-upi-handle",styles:{container:(e,t)=>({...e,width:"80%",outline:"none !important"}),control:(e,t)=>({...e,boxShadow:"none",outline:"none",borderLeft:"0",borderBottomLeftRadius:"0",borderTopLeftRadius:"0",borderColor:"#d0d0d0 !important",backgroundColor:"transparent"}),valueContainer:(e,t)=>({...e,padding:"0 0 0 6px",fontSize:"13px"}),input:(e,t)=>({...e,padding:"0",margin:"0"}),menu:(e,t)=>({...e,fontSize:"13px"})}}))))}),null),edit:(0,e.createElement)(Oo,null),placeOrderButtonLabel:bo?.button_text,canMakePayment:()=>!0,ariaLabel:yo,supports:{features:bo.supports}};(0,t.registerPaymentMethod)(wo)})()})(); \ No newline at end of file +(()=>{"use strict";var e={792:(e,t,n)=>{var o=n(819),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return o.isMemo(e)?a:s[e.$$typeof]||r}s[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[o.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(h){var r=f(n);r&&r!==h&&e(t,r,o)}var a=c(n);p&&(a=a.concat(p(n)));for(var s=u(t),m=u(n),v=0;v{var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=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,O=n?Symbol.for("react.scope"):60119;function w(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 l:case d:case v:case m:case u:return e;default:return t}}case r:return t}}}function C(e){return w(e)===p}t.AsyncMode=c,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=u,t.Element=o,t.ForwardRef=d,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=r,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return C(e)||w(e)===c},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===r},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===s||e===a||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===u||e.$$typeof===l||e.$$typeof===d||e.$$typeof===b||e.$$typeof===y||e.$$typeof===O||e.$$typeof===g)},t.typeOf=w},819:(e,t,n)=>{e.exports=n(560)}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}(()=>{const e=window.React,t=window.wc.wcBlocksRegistry,o=window.wp.htmlEntities,r=window.wc.wcSettings,i=window.wp.element;function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=new Array(t);n0?I(A,--F):0,L--,10===T&&(L=1,R--),T}function $(){return T=F2||B(T)>3?"":" "}function X(e,t){for(;--t&&$()&&!(T<48||T>102||T>57&&T<65||T>70&&T<97););return U(e,z()+(t<6&&32==_()&&32==$()))}function K(e){for(;$();)switch(T){case e:return F;case 34:case 39:34!==e&&39!==e&&K(T);break;case 40:41===e&&K(e);break;case 92:$()}return F}function Z(e,t){for(;$()&&e+T!==57&&(e+T!==84||47!==_()););return"/*"+U(t,F-1)+"*"+w(47===e?e:$())}function J(e){for(;!B(_());)$();return U(e,F)}var Q="-ms-",ee="-moz-",te="-webkit-",ne="comm",oe="rule",re="decl",ie="@keyframes";function ae(e,t){for(var n="",o=P(e),r=0;r0&&V(M)-p&&k(f>32?de(M+";",o,n,p-1):de(x(M," ","")+";",o,n,p-2),u);break;case 59:M+=";";default:if(k(S=ce(M,t,n,l,c,r,s,y,O=[],C=[],p),i),123===b)if(0===c)le(M,t,S,S,O,i,p,s,C);else switch(99===d&&110===I(M,3)?100:d){case 100:case 108:case 109:case 115:le(e,S,S,o&&k(ce(e,S,S,0,0,r,s,y,r,O=[],p),C),r,C,p,s,o?O:C);break;default:le(M,S,S,S,[""],C,0,s,C)}}l=c=f=0,m=g=1,y=M="",p=a;break;case 58:p=1+V(M),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==j())continue;switch(M+=w(b),b*m){case 38:g=c>0?1:(M+="\f",-1);break;case 44:s[l++]=(V(M)-1)*g,g=1;break;case 64:45===_()&&(M+=Y($())),d=_(),c=p=V(y=M+=J(z())),b++;break;case 45:45===h&&2==V(M)&&(m=0)}}return i}function ce(e,t,n,o,r,i,a,s,u,l,c){for(var p=r-1,d=0===r?i:[""],f=P(d),h=0,m=0,v=0;h0?d[g]+" "+b:x(b,/&\f/g,d[g])))&&(u[v++]=y);return H(e,t,n,0===r?oe:s,u,l,c)}function pe(e,t,n){return H(e,t,n,ne,w(T),M(e,2,-2),0)}function de(e,t,n,o){return H(e,t,n,re,M(e,0,o),M(e,o+1,-1),o)}var fe=function(e,t,n){for(var o=0,r=0;o=r,r=_(),38===o&&12===r&&(t[n]=1),!B(r);)$();return U(e,F)},he=new WeakMap,me=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)||he.get(n))&&!o){he.set(e,!0);for(var r=[],i=function(e,t){return G(function(e,t){var n=-1,o=44;do{switch(B(o)){case 0:38===o&&12===_()&&(t[n]=1),e[n]+=fe(F-1,t,n);break;case 2:e[n]+=Y(o);break;case 4:if(44===o){e[++n]=58===_()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=w(o)}}while(o=$());return e}(W(e),t))}(t,r),a=n.props,s=0,u=0;s6)switch(I(e,t+1)){case 109:if(45!==I(e,t+4))break;case 102:return x(e,/(.+:)(.+)-([^]+)/,"$1"+te+"$2-$3$1"+ee+(108==I(e,t+3)?"$3":"$2-$3"))+e;case 115:return~E(e,"stretch")?ge(x(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==I(e,t+1))break;case 6444:switch(I(e,V(e)-3-(~E(e,"!important")&&10))){case 107:return x(e,":",":"+te)+e;case 101:return x(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+te+(45===I(e,14)?"inline-":"")+"box$3$1"+te+"$2$3$1"+Q+"$2box$3")+e}break;case 5936:switch(I(e,t+11)){case 114:return te+e+Q+x(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return te+e+Q+x(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return te+e+Q+x(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return te+e+Q+e+e}return e}var be=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case re:e.return=ge(e.value,e.length);break;case ie:return ae([N(e,{value:x(e.value,"@","@"+te)})],o);case oe: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 ae([N(e,{props:[x(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return ae([N(e,{props:[x(t,/:(plac\w+)/,":"+te+"input-$1")]}),N(e,{props:[x(t,/:(plac\w+)/,":-moz-$1")]}),N(e,{props:[x(t,/:(plac\w+)/,Q+"input-$1")]})],o)}return""}))}}],ye=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||be,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=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(r)+u;return{name:l,styles:r,next:ke}},De=!!e.useInsertionEffect&&e.useInsertionEffect,Fe=De||function(e){return e()},Te=(De||e.useLayoutEffect,{}.hasOwnProperty),Ae=e.createContext("undefined"!=typeof HTMLElement?ye({key:"css"}):null);Ae.Provider;var He=function(t){return(0,e.forwardRef)((function(n,o){var r=(0,e.useContext)(Ae);return t(n,r,o)}))},Ne=e.createContext({}),je="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",$e=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;return Oe(t,n,o),Fe((function(){return function(e,t,n){Oe(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},_e=He((function(t,n,o){var r=t.css;"string"==typeof r&&void 0!==n.registered[r]&&(r=n.registered[r]);var i=t[je],a=[r],s="";"string"==typeof t.className?s=function(e,t,n){var o="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):o+=n+" "})),o}(n.registered,a,t.className):null!=t.className&&(s=t.className+" ");var u=Le(a,void 0,e.useContext(Ne));s+=n.key+"-"+u.name;var l={};for(var c in t)Te.call(t,c)&&"css"!==c&&c!==je&&(l[c]=t[c]);return l.ref=o,l.className=s,e.createElement(e.Fragment,null,e.createElement($e,{cache:n,serialized:u,isStringTag:"string"==typeof i}),e.createElement(i,l))})),ze=_e,Ue=(n(792),function(t,n){var o=arguments;if(null==n||!Te.call(n,"css"))return e.createElement.apply(void 0,o);var r=o.length,i=new Array(r);i[0]=ze,i[1]=function(e,t){var n={};for(var o in t)Te.call(t,o)&&(n[o]=t[o]);return n[je]=e,n}(t,n);for(var a=2;a=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}const Ye=window.ReactDOM,qe=Math.min,Xe=Math.max,Ke=Math.round,Ze=Math.floor,Je=e=>({x:e,y:e});function Qe(e){return nt(e)?(e.nodeName||"").toLowerCase():"#document"}function et(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function tt(e){var t;return null==(t=(nt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function nt(e){return e instanceof Node||e instanceof et(e).Node}function ot(e){return e instanceof Element||e instanceof et(e).Element}function rt(e){return e instanceof HTMLElement||e instanceof et(e).HTMLElement}function it(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof et(e).ShadowRoot)}function at(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=st(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function st(e){return et(e).getComputedStyle(e)}function ut(e){const t=function(e){if("html"===Qe(e))return e;const t=e.assignedSlot||e.parentNode||it(e)&&e.host||tt(e);return it(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(Qe(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:rt(t)&&at(t)?t:ut(t)}function lt(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=ut(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=et(r);return i?t.concat(a,a.visualViewport||[],at(r)?r:[],a.frameElement&&n?lt(a.frameElement):[]):t.concat(r,lt(r,[],n))}function ct(e){return ot(e)?e:e.contextElement}function pt(e){const t=ct(e);if(!rt(t))return Je(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=function(e){const t=st(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=rt(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,s=Ke(n)!==i||Ke(o)!==a;return s&&(n=i,o=a),{width:n,height:o,$:s}}(t);let a=(i?Ke(n.width):n.width)/o,s=(i?Ke(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const dt=Je(0);function ft(e){const t=et(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:dt}function ht(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=ct(e);let a=Je(1);t&&(o?ot(o)&&(a=pt(o)):a=pt(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==et(e))&&t}(i,n,o)?ft(i):Je(0);let u=(r.left+s.x)/a.x,l=(r.top+s.y)/a.y,c=r.width/a.x,p=r.height/a.y;if(i){const e=et(i),t=o&&ot(o)?et(o):o;let n=e.frameElement;for(;n&&o&&t!==e;){const e=pt(n),t=n.getBoundingClientRect(),o=st(n),r=t.left+(n.clientLeft+parseFloat(o.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(o.paddingTop))*e.y;u*=e.x,l*=e.y,c*=e.x,p*=e.y,u+=r,l+=i,n=et(n).frameElement}}return d={width:c,height:p,x:u,y:l},{...d,top:d.y,left:d.x,right:d.x+d.width,bottom:d.y+d.height};var d}const mt=e.useLayoutEffect;var vt=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],gt=function(){};function bt(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function yt(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r-1}function xt(e){return St(e)?window.pageYOffset:e.scrollTop}function Et(e,t){St(e)?window.scrollTo(0,t):e.scrollTop=t}function It(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:gt,r=xt(e),i=t-r,a=0;!function t(){var s,u=i*((s=(s=a+=10)/n-1)*s*s+1)+r;Et(e,u),an.bottom?Et(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):o.top-r=h)return{placement:"bottom",maxHeight:t};if(x>=h&&!a)return i&&It(u,E,M),{placement:"bottom",maxHeight:t};if(!a&&x>=o||a&&C>=o)return i&&It(u,E,M),{placement:"bottom",maxHeight:a?C-y:x-y};if("auto"===r||a){var V=t,P=a?w:S;return P>=o&&(V=Math.min(P-y-s,t)),{placement:"top",maxHeight:V}}if("bottom"===r)return i&&Et(u,E),{placement:"bottom",maxHeight:t};break;case"top":if(w>=h)return{placement:"top",maxHeight:t};if(S>=h&&!a)return i&&It(u,I,M),{placement:"top",maxHeight:t};if(!a&&S>=o||a&&w>=o){var k=t;return(!a&&S>=o||a&&w>=o)&&(k=a?w-O:S-O),i&&It(u,I,M),{placement:"top",maxHeight:k}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return l}({maxHeight:r,menuEl:e,minHeight:o,placement:i,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:b});h(n.maxHeight),g(n.placement),null==l||l(n.placement)}}),[r,i,a,s,o,l,b]),n({ref:c,placerProps:p(p({},t),{},{placement:v||$t(i),maxHeight:f})})},Ut=function(e,t){var n=e.theme,o=n.spacing.baseUnit,r=n.colors;return p({textAlign:"center"},t?{}:{color:r.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},Bt=Ut,Wt=Ut,Gt=["size"],Yt=["innerProps","isRtl","size"],qt={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Xt=function(e){var t=e.size,n=Ge(e,Gt);return Ue("svg",a({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:qt},n))},Kt=function(e){return Ue(Xt,a({size:20},e),Ue("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"}))},Zt=function(e){return Ue(Xt,a({size:20},e),Ue("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"}))},Jt=function(e,t){var n=e.isFocused,o=e.theme,r=o.spacing.baseUnit,i=o.colors;return p({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*r,":hover":{color:n?i.neutral80:i.neutral40}})},Qt=Jt,en=Jt,tn=function(){var e=Be.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_"}}}(Ht||(Nt=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],jt||(jt=Nt.slice(0)),Ht=Object.freeze(Object.defineProperties(Nt,{raw:{value:Object.freeze(jt)}})))),nn=function(e){var t=e.delay,n=e.offset;return Ue("span",{css:Be({animation:"".concat(tn," 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"},"","")})},on=["data"],rn=["innerRef","isDisabled","isHidden","inputClassName"],an={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},sn={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":p({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},an)},un=function(e){return p({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},an)},ln=function(e){var t=e.children,n=e.innerProps;return Ue("div",n,t)},cn={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Ue("div",a({},Ct(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Ue(Kt,null))},Control:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.innerRef,i=e.innerProps,s=e.menuIsOpen;return Ue("div",a({ref:r},Ct(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":s}),i,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Ue("div",a({},Ct(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Ue(Zt,null))},DownChevron:Zt,CrossIcon:Kt,Group:function(e){var t=e.children,n=e.cx,o=e.getStyles,r=e.getClassNames,i=e.Heading,s=e.headingProps,u=e.innerProps,l=e.label,c=e.theme,p=e.selectProps;return Ue("div",a({},Ct(e,"group",{group:!0}),u),Ue(i,a({},s,{selectProps:p,theme:c,getStyles:o,getClassNames:r,cx:n}),l),Ue("div",null,t))},GroupHeading:function(e){var t=wt(e);t.data;var n=Ge(t,on);return Ue("div",a({},Ct(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Ue("div",a({},Ct(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Ue("span",a({},t,Ct(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,o=wt(e),r=o.innerRef,i=o.isDisabled,s=o.isHidden,u=o.inputClassName,l=Ge(o,rn);return Ue("div",a({},Ct(e,"input",{"input-container":!0}),{"data-value":n||""}),Ue("input",a({className:t({input:!0},u),ref:r,style:un(s),disabled:i},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,o=e.size,r=void 0===o?4:o,i=Ge(e,Yt);return Ue("div",a({},Ct(p(p({},i),{},{innerProps:t,isRtl:n,size:r}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Ue(nn,{delay:0,offset:n}),Ue(nn,{delay:160,offset:!0}),Ue(nn,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return Ue("div",a({},Ct(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 Ue("div",a({},Ct(e,"menuList",{"menu-list":!0,"menu-list--is-multi":r}),{ref:o},n),t)},MenuPortal:function(t){var n=t.appendTo,o=t.children,r=t.controlElement,i=t.innerProps,s=t.menuPlacement,u=t.menuPosition,l=(0,e.useRef)(null),c=(0,e.useRef)(null),d=We((0,e.useState)($t(s)),2),f=d[0],h=d[1],m=(0,e.useMemo)((function(){return{setPortalPlacement:h}}),[]),v=We((0,e.useState)(null),2),g=v[0],b=v[1],y=(0,e.useCallback)((function(){if(r){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}}(r),t="fixed"===u?0:window.pageYOffset,n=e[f]+t;n===(null==g?void 0:g.offset)&&e.left===(null==g?void 0:g.rect.left)&&e.width===(null==g?void 0:g.rect.width)||b({offset:n,rect:e})}}),[r,u,f,null==g?void 0:g.offset,null==g?void 0:g.rect.left,null==g?void 0:g.rect.width]);mt((function(){y()}),[y]);var O=(0,e.useCallback)((function(){"function"==typeof c.current&&(c.current(),c.current=null),r&&l.current&&(c.current=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=o,l=ct(e),c=r||i?[...l?lt(l):[],...lt(t)]:[];c.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const p=l&&s?function(e,t){let n,o=null;const r=tt(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function a(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),i();const{left:l,top:c,width:p,height:d}=e.getBoundingClientRect();if(s||t(),!p||!d)return;const f={rootMargin:-Ze(c)+"px "+-Ze(r.clientWidth-(l+p))+"px "+-Ze(r.clientHeight-(c+d))+"px "+-Ze(l)+"px",threshold:Xe(0,qe(1,u))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==u){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}h=!1}try{o=new IntersectionObserver(m,{...f,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(m,f)}o.observe(e)}(!0),i}(l,n):null;let d,f=-1,h=null;a&&(h=new ResizeObserver((e=>{let[o]=e;o&&o.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),l&&!u&&h.observe(l),h.observe(t));let m=u?ht(e):null;return u&&function t(){const o=ht(e);!m||o.x===m.x&&o.y===m.y&&o.width===m.width&&o.height===m.height||n(),m=o,d=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==p||p(),null==(e=h)||e.disconnect(),h=null,u&&cancelAnimationFrame(d)}}(r,l.current,y,{elementResize:"ResizeObserver"in window}))}),[r,y]);mt((function(){O()}),[O]);var w=(0,e.useCallback)((function(e){l.current=e,O()}),[O]);if(!n&&"fixed"!==u||!g)return null;var C=Ue("div",a({ref:w},Ct(p(p({},t),{},{offset:g.offset,position:u,rect:g.rect}),"menuPortal",{"menu-portal":!0}),i),o);return Ue(_t.Provider,{value:m},n?(0,Ye.createPortal)(C,n):C)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,o=e.innerProps,r=Ge(e,At);return Ue("div",a({},Ct(p(p({},r),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,o=e.innerProps,r=Ge(e,Tt);return Ue("div",a({},Ct(p(p({},r),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},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,u=n.Container,l=n.Label,c=n.Remove;return Ue(u,{data:o,innerProps:p(p({},Ct(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),r),selectProps:s},Ue(l,{data:o,innerProps:p({},Ct(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),Ue(c,{data:o,innerProps:p(p({},Ct(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:ln,MultiValueLabel:ln,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Ue("div",a({role:"button"},n),t||Ue(Kt,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.innerRef,s=e.innerProps;return Ue("div",a({},Ct(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":r}),{ref:i,"aria-disabled":n},s),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Ue("div",a({},Ct(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,r=e.isRtl;return Ue("div",a({},Ct(e,"container",{"--is-disabled":o,"--is-rtl":r}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return Ue("div",a({},Ct(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 Ue("div",a({},Ct(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":r}),n),t)}},pn=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function dn(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return"option ".concat(o,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,o=e.options,r=e.label,i=void 0===r?"":r,a=e.selectValue,s=e.isDisabled,u=e.isSelected,l=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(c(a,n),".");if("menu"===t&&l){var p=s?" disabled":"",d="".concat(u?" selected":"").concat(p);return"".concat(i).concat(d,", ").concat(c(o,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},vn=function(t){var n=t.ariaSelection,o=t.focusedOption,r=t.focusedValue,i=t.focusableOptions,a=t.isFocused,s=t.selectValue,u=t.selectProps,l=t.id,c=t.isAppleDevice,d=u.ariaLiveMessages,f=u.getOptionLabel,h=u.inputValue,m=u.isMulti,v=u.isOptionDisabled,g=u.isSearchable,b=u.menuIsOpen,y=u.options,O=u.screenReaderStatus,w=u.tabSelectsValue,C=u.isLoading,S=u["aria-label"],x=u["aria-live"],E=(0,e.useMemo)((function(){return p(p({},mn),d||{})}),[d]),I=(0,e.useMemo)((function(){var e,t="";if(n&&E.onChange){var o=n.option,r=n.options,i=n.removedValue,a=n.removedValues,u=n.value,l=i||o||(e=u,Array.isArray(e)?null:e),c=l?f(l):"",d=r||a||void 0,h=d?d.map(f):[],m=p({isDisabled:l&&v(l,s),label:c,labels:h},n);t=E.onChange(m)}return t}),[n,E,v,s,f]),M=(0,e.useMemo)((function(){var e="",t=o||r,n=!!(o&&s&&s.includes(o));if(t&&E.onFocus){var a={focused:t,label:f(t),isDisabled:v(t,s),isSelected:n,options:i,context:t===o?"menu":"value",selectValue:s,isAppleDevice:c};e=E.onFocus(a)}return e}),[o,r,f,v,E,i,s,c]),V=(0,e.useMemo)((function(){var e="";if(b&&y.length&&!C&&E.onFilter){var t=O({count:i.length});e=E.onFilter({inputValue:h,resultsMessage:t})}return e}),[i,h,b,E,y,O,C]),P="initial-input-focus"===(null==n?void 0:n.action),k=(0,e.useMemo)((function(){var e="";if(E.guidance){var t=r?"value":b?"menu":"input";e=E.guidance({"aria-label":S,context:t,isDisabled:o&&v(o,s),isMulti:m,isSearchable:g,tabSelectsValue:w,isInitialFocus:P})}return e}),[S,o,r,m,v,g,b,E,s,w,P]),R=Ue(e.Fragment,null,Ue("span",{id:"aria-selection"},I),Ue("span",{id:"aria-focused"},M),Ue("span",{id:"aria-results"},V),Ue("span",{id:"aria-guidance"},k));return Ue(e.Fragment,null,Ue(hn,{id:l},P&&R),Ue(hn,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!P&&R))},gn=[{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źẑżžẓẕƶȥɀⱬꝣ"}],bn=new RegExp("["+gn.map((function(e){return e.letters})).join("")+"]","g"),yn={},On=0;On1?t-1:0),o=1;o0,m=p-d-l,v=!1;m>t&&s.current&&(r&&r(e),s.current=!1),h&&u.current&&(a&&a(e),u.current=!1),h&&t>m?(o&&!s.current&&o(e),f.scrollTop=p,v=!0,s.current=!0):!h&&-t>l&&(i&&!u.current&&i(e),f.scrollTop=0,v=!0,u.current=!0),v&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[o,r,i,a]),d=(0,e.useCallback)((function(e){p(e,e.deltaY)}),[p]),f=(0,e.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),h=(0,e.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;p(e,t)}),[p]),m=(0,e.useCallback)((function(e){if(e){var t=!!Lt&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",h,t)}}),[h,f,d]),v=(0,e.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",h,!1))}),[h,f,d]);return(0,e.useEffect)((function(){if(n){var e=c.current;return m(e),function(){v(e)}}}),[n,m,v]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),a=function(t){var n=t.isEnabled,o=t.accountForScrollbars,r=void 0===o||o,i=(0,e.useRef)({}),a=(0,e.useRef)(null),s=(0,e.useCallback)((function(e){if(Tn){var t=document.body,n=t&&t.style;if(r&&Pn.forEach((function(e){var t=n&&n[e];i.current[e]=t})),r&&An<1){var o=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+o||0;Object.keys(kn).forEach((function(e){var t=kn[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&Fn()&&(t.addEventListener("touchmove",Rn,Hn),e&&(e.addEventListener("touchstart",Dn,Hn),e.addEventListener("touchmove",Ln,Hn))),An+=1}}),[r]),u=(0,e.useCallback)((function(e){if(Tn){var t=document.body,n=t&&t.style;An=Math.max(An-1,0),r&&An<1&&Pn.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&Fn()&&(t.removeEventListener("touchmove",Rn,Hn),e&&(e.removeEventListener("touchstart",Dn,Hn),e.removeEventListener("touchmove",Ln,Hn)))}}),[r]);return(0,e.useEffect)((function(){if(n){var e=a.current;return s(e),function(){u(e)}}}),[n,s,u]),function(e){a.current=e}}({isEnabled:o});return Ue(e.Fragment,null,o&&Ue("div",{onClick:Nn,css:jn}),n((function(e){i(e),a(e)})))}var zn={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Un=function(e){var t=e.name,n=e.onFocus;return Ue("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:zn,value:"",onChange:function(){}})};function Bn(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Wn(){return Bn(/^Mac/i)}var Gn=function(e){return e.label},Yn=function(e){return e.value},qn={clearIndicator:en,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 p({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:Qt,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 p({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 p({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 p(p({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},sn),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 p({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:Wt,menu:function(e,t){var n,o=e.placement,r=e.theme,i=r.borderRadius,a=r.spacing,s=r.colors;return p((l(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),l(n,"position","absolute"),l(n,"width","100%"),l(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 p({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 p({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 p({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 p({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:Bt,option:function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return p({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 p({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 p({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 p({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")})}},Xn={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}},Kn={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Vt(),captureMenuScroll:!Vt(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=p({ignoreCase:!0,ignoreAccents:!0,stringify:In,trim:!0,matchFrom:"any"},undefined),o=n.ignoreCase,r=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,u=a?En(t):t,l=a?En(i(e)):i(e);return o&&(u=u.toLowerCase(),l=l.toLowerCase()),r&&(u=xn(u),l=Sn(l)),"start"===s?l.substr(0,u.length)===u:l.indexOf(u)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:Gn,getOptionValue:Yn,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 Zn(e,t,n,o){return{type:"option",data:t,isDisabled:io(e,t,n),isSelected:ao(e,t,n),label:oo(e,t),value:ro(e,t),index:o}}function Jn(e,t){return e.options.map((function(n,o){if("options"in n){var r=n.options.map((function(n,o){return Zn(e,n,t,o)})).filter((function(t){return to(e,t)}));return r.length>0?{type:"group",data:n,options:r,index:o}:void 0}var i=Zn(e,n,t,o);return to(e,i)?i:void 0})).filter(Dt)}function Qn(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,b(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function eo(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,b(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function to(e,t){var n=e.inputValue,o=void 0===n?"":n,r=t.data,i=t.isSelected,a=t.label,s=t.value;return(!uo(e)||!i)&&so(e,{label:a,value:s,data:r},o)}var no=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},oo=function(e,t){return e.getOptionLabel(t)},ro=function(e,t){return e.getOptionValue(t)};function io(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ao(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=ro(e,t);return n.some((function(t){return ro(e,t)===o}))}function so(e,t,n){return!e.filterOption||e.filterOption(t,n)}var uo=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},lo=1,co=function(t){!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&&f(e,t)}(c,t);var n,o,r,i,u,l=(n=c,o=m(),function(){var e,t=h(n);if(o){var r=h(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===s(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,e)});function c(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=l.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=Wn()||Bn(/^iPhone/i)||Bn(/^iPad/i)||Wn()&&navigator.maxTouchPoints>1,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var o=t.props,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,a=t.state.selectValue,s=r&&t.isOptionSelected(e,a),u=t.isOptionDisabled(e,a);if(s){var l=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==l})),"deselect-option",e)}else{if(u)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});r?t.setValue([].concat(b(a),[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=Ft(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(Ft(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=Ft(e,r,r[0]||null);t.onChange(i,{action:"pop-value",removedValue:o})},t.getFocusedOptionId=function(e){return no(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return eo(Jn(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),o=0;o5||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){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return uo(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,u=n.isDisabled,l=n.menuIsOpen,c=n.onKeyDown,p=n.tabSelectsValue,d=n.openMenuOnFocus,f=t.state,h=f.focusedOption,m=f.focusedValue,v=f.selectValue;if(!(u||"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(m)t.removeValue(m);else{if(!r)return;o?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!l||!p||!h||d&&t.isOptionSelected(h,v))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(l){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":l?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&i&&t.clearValue();break;case" ":if(a)return;if(!l){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":l?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":l?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!l)return;t.focusOption("pageup");break;case"PageDown":if(!l)return;t.focusOption("pagedown");break;case"Home":if(!l)return;t.focusOption("first");break;case"End":if(!l)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++lo),t.state.selectValue=Ot(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),o=t.buildFocusableOptions(),r=o.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=o[r],t.state.focusedOptionId=no(n,o[r])}return t}return r=c,i=[{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&&Mt(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&&(Mt(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,o=n.selectValue,r=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(o[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(r&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var r=n.indexOf(o);o||(r=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===r?0:-1===r?i:r-1;break;case"next":r>-1&&r0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var r=0,i=o.indexOf(n);n||(i=-1),"up"===e?r=i>0?i-1:o.length-1:"down"===e?r=(i+1)%o.length:"pageup"===e?(r=i-t)<0&&(r=0):"pagedown"===e?(r=i+t)>o.length-1&&(r=o.length-1):"last"===e&&(r=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[r],focusedValue:null,focusedOptionId:this.getFocusedOptionId(o[r])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Xn):p(p({},Xn),this.props.theme):Xn}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getClassNames,r=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,u=s.isMulti,l=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:r,hasValue:this.hasValue(),isMulti:u,isRtl:l,options:c,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return io(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ao(this.props,e,t)}},{key:"filterOption",value:function(e,t){return so(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 t=this.props,n=t.isDisabled,o=t.isSearchable,r=t.inputId,i=t.inputValue,s=t.tabIndex,u=t.form,l=t.menuIsOpen,c=t.required,d=this.getComponents().Input,f=this.state,h=f.inputIsHidden,m=f.ariaSelection,v=this.commonProps,g=r||this.getElementId("input"),b=p(p(p({"aria-autocomplete":"list","aria-expanded":l,"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":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!o&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==m?void 0:m.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return o?e.createElement(d,a({},v,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:n,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:u,type:"text",value:i},b)):e.createElement(Vn,a({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:gt,onFocus:this.onInputFocus,disabled:n,tabIndex:s,inputMode:"none",form:u,value:""},b))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,n=this.getComponents(),o=n.MultiValue,r=n.MultiValueContainer,i=n.MultiValueLabel,s=n.MultiValueRemove,u=n.SingleValue,l=n.Placeholder,c=this.commonProps,p=this.props,d=p.controlShouldRenderValue,f=p.isDisabled,h=p.isMulti,m=p.inputValue,v=p.placeholder,g=this.state,b=g.selectValue,y=g.focusedValue,O=g.isFocused;if(!this.hasValue()||!d)return m?null:e.createElement(l,a({},c,{key:"placeholder",isDisabled:f,isFocused:O,innerProps:{id:this.getElementId("placeholder")}}),v);if(h)return b.map((function(n,u){var l=n===y,p="".concat(t.getOptionLabel(n),"-").concat(t.getOptionValue(n));return e.createElement(o,a({},c,{components:{Container:r,Label:i,Remove:s},isFocused:l,isDisabled:f,key:p,index:u,removeProps:{onClick:function(){return t.removeValue(n)},onTouchEnd:function(){return t.removeValue(n)},onMouseDown:function(e){e.preventDefault()}},data:n}),t.formatOptionLabel(n,"value"))}));if(m)return null;var w=b[0];return e.createElement(u,a({},c,{data:w,isDisabled:f}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.getComponents().ClearIndicator,n=this.commonProps,o=this.props,r=o.isDisabled,i=o.isLoading,s=this.state.isFocused;if(!this.isClearable()||!t||r||!this.hasValue()||i)return null;var u={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,a({},n,{innerProps:u,isFocused:s}))}},{key:"renderLoadingIndicator",value:function(){var t=this.getComponents().LoadingIndicator,n=this.commonProps,o=this.props,r=o.isDisabled,i=o.isLoading,s=this.state.isFocused;return t&&i?e.createElement(t,a({},n,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:s})):null}},{key:"renderIndicatorSeparator",value:function(){var t=this.getComponents(),n=t.DropdownIndicator,o=t.IndicatorSeparator;if(!n||!o)return null;var r=this.commonProps,i=this.props.isDisabled,s=this.state.isFocused;return e.createElement(o,a({},r,{isDisabled:i,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var t=this.getComponents().DropdownIndicator;if(!t)return null;var n=this.commonProps,o=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,a({},n,{innerProps:i,isDisabled:o,isFocused:r}))}},{key:"renderMenu",value:function(){var t=this,n=this.getComponents(),o=n.Group,r=n.GroupHeading,i=n.Menu,s=n.MenuList,u=n.MenuPortal,l=n.LoadingMessage,c=n.NoOptionsMessage,p=n.Option,d=this.commonProps,f=this.state.focusedOption,h=this.props,m=h.captureMenuScroll,v=h.inputValue,g=h.isLoading,b=h.loadingMessage,y=h.minMenuHeight,O=h.maxMenuHeight,w=h.menuIsOpen,C=h.menuPlacement,S=h.menuPosition,x=h.menuPortalTarget,E=h.menuShouldBlockScroll,I=h.menuShouldScrollIntoView,M=h.noOptionsMessage,V=h.onMenuScrollToTop,P=h.onMenuScrollToBottom;if(!w)return null;var k,R=function(n,o){var r=n.type,i=n.data,s=n.isDisabled,u=n.isSelected,l=n.label,c=n.value,h=f===i,m=s?void 0:function(){return t.onOptionHover(i)},v=s?void 0:function(){return t.selectOption(i)},g="".concat(t.getElementId("option"),"-").concat(o),b={id:g,onClick:v,onMouseMove:m,onMouseOver:m,tabIndex:-1,role:"option","aria-selected":t.isAppleDevice?void 0:u};return e.createElement(p,a({},d,{innerProps:b,data:i,isDisabled:s,isSelected:u,key:g,label:l,type:r,value:c,isFocused:h,innerRef:h?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())k=this.getCategorizedOptions().map((function(n){if("group"===n.type){var i=n.data,s=n.options,u=n.index,l="".concat(t.getElementId("group"),"-").concat(u),c="".concat(l,"-heading");return e.createElement(o,a({},d,{key:l,data:i,options:s,Heading:r,headingProps:{id:c,data:n.data},label:t.formatGroupLabel(n.data)}),n.options.map((function(e){return R(e,"".concat(u,"-").concat(e.index))})))}if("option"===n.type)return R(n,"".concat(n.index))}));else if(g){var L=b({inputValue:v});if(null===L)return null;k=e.createElement(l,d,L)}else{var D=M({inputValue:v});if(null===D)return null;k=e.createElement(c,d,D)}var F={minMenuHeight:y,maxMenuHeight:O,menuPlacement:C,menuPosition:S,menuShouldScrollIntoView:I},T=e.createElement(zt,a({},d,F),(function(n){var o=n.ref,r=n.placerProps,u=r.placement,l=r.maxHeight;return e.createElement(i,a({},d,F,{innerRef:o,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:g,placement:u}),e.createElement($n,{captureEnabled:m,onTopArrive:V,onBottomArrive:P,lockEnabled:E},(function(n){return e.createElement(s,a({},d,{innerRef:function(e){t.getMenuListRef(e),n(e)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:t.getElementId("listbox")},isLoading:g,maxHeight:l,focusedOption:f}),k)})))}));return x||"fixed"===S?e.createElement(u,a({},d,{appendTo:x,controlElement:this.controlRef,menuPlacement:C,menuPosition:S}),T):T}},{key:"renderFormField",value:function(){var t=this,n=this.props,o=n.delimiter,r=n.isDisabled,i=n.isMulti,a=n.name,s=n.required,u=this.state.selectValue;if(s&&!this.hasValue()&&!r)return e.createElement(Un,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(i){if(o){var l=u.map((function(e){return t.getOptionValue(e)})).join(o);return e.createElement("input",{name:a,type:"hidden",value:l})}var c=u.length>0?u.map((function(n,o){return e.createElement("input",{key:"i-".concat(o),name:a,type:"hidden",value:t.getOptionValue(n)})})):e.createElement("input",{name:a,type:"hidden",value:""});return e.createElement("div",null,c)}var p=u[0]?this.getOptionValue(u[0]):"";return e.createElement("input",{name:a,type:"hidden",value:p})}}},{key:"renderLiveRegion",value:function(){var t=this.commonProps,n=this.state,o=n.ariaSelection,r=n.focusedOption,i=n.focusedValue,s=n.isFocused,u=n.selectValue,l=this.getFocusableOptions();return e.createElement(vn,a({},t,{id:this.getElementId("live-region"),ariaSelection:o,focusedOption:r,focusedValue:i,isFocused:s,selectValue:u,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var t=this.getComponents(),n=t.Control,o=t.IndicatorsContainer,r=t.SelectContainer,i=t.ValueContainer,s=this.props,u=s.className,l=s.id,c=s.isDisabled,p=s.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return e.createElement(r,a({},f,{className:u,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),e.createElement(n,a({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:p}),e.createElement(i,a({},f,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),e.createElement(o,a({},f,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],u=[{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,u=t.instancePrefix,l=e.options,c=e.value,d=e.menuIsOpen,f=e.inputValue,h=e.isMulti,m=Ot(c),v={};if(n&&(c!==n.value||l!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?function(e,t){return Qn(Jn(e,t))}(e,m):[],b=d?eo(Jn(e,m),"".concat(u,"-option")):[],y=o?function(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o-1?n:t[0]}(t,g);v={selectValue:m,focusedOption:O,focusedOptionId:no(b,O),focusableOptionsWithIds:b,focusedValue:y,clearFocusValueOnUpdate:!1}}var w=null!=r&&e!==n?{inputIsHidden:r,inputIsHiddenAfterUpdate:void 0}:{},C=i,S=a&&s;return a&&!S&&(C={value:Ft(h,m,m[0]||null),options:m,action:"initial-input-focus"},S=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(C=null),p(p(p({},v),w),{},{prevProps:e,ariaSelection:C,prevWasFocused:S})}}],i&&d(r.prototype,i),u&&d(r,u),Object.defineProperty(r,"prototype",{writable:!1}),c}(e.Component);co.defaultProps=Kn;var po=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"],fo=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],ho=function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),o=String(t.getOptionValue(e)).toLowerCase(),r=String(t.getOptionLabel(e)).toLowerCase();return o===n||r===n},mo={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,o){return!(!e||t.some((function(t){return ho(e,t,o)}))||n.some((function(t){return ho(e,t,o)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}},vo=(0,e.forwardRef)((function(t,n){var o=function(t){var n=t.defaultInputValue,o=void 0===n?"":n,r=t.defaultMenuIsOpen,i=void 0!==r&&r,a=t.defaultValue,s=void 0===a?null:a,u=t.inputValue,l=t.menuIsOpen,c=t.onChange,d=t.onInputChange,f=t.onMenuClose,h=t.onMenuOpen,m=t.value,v=Ge(t,po),g=We((0,e.useState)(void 0!==u?u:o),2),b=g[0],y=g[1],O=We((0,e.useState)(void 0!==l?l:i),2),w=O[0],C=O[1],S=We((0,e.useState)(void 0!==m?m:s),2),x=S[0],E=S[1],I=(0,e.useCallback)((function(e,t){"function"==typeof c&&c(e,t),E(e)}),[c]),M=(0,e.useCallback)((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),y(void 0!==n?n:e)}),[d]),V=(0,e.useCallback)((function(){"function"==typeof h&&h(),C(!0)}),[h]),P=(0,e.useCallback)((function(){"function"==typeof f&&f(),C(!1)}),[f]),k=void 0!==u?u:b,R=void 0!==l?l:w,L=void 0!==m?m:x;return p(p({},v),{},{inputValue:k,menuIsOpen:R,onChange:I,onInputChange:M,onMenuClose:P,onMenuOpen:V,value:L})}(t),r=function(t){var n=t.allowCreateWhileLoading,o=void 0!==n&&n,r=t.createOptionPosition,i=void 0===r?"last":r,a=t.formatCreateLabel,s=void 0===a?mo.formatCreateLabel:a,u=t.isValidNewOption,l=void 0===u?mo.isValidNewOption:u,c=t.getNewOptionData,d=void 0===c?mo.getNewOptionData:c,f=t.onCreateOption,h=t.options,m=void 0===h?[]:h,v=t.onChange,g=Ge(t,fo),y=g.getOptionValue,O=void 0===y?Yn:y,w=g.getOptionLabel,C=void 0===w?Gn:w,S=g.inputValue,x=g.isLoading,E=g.isMulti,I=g.value,M=g.name,V=(0,e.useMemo)((function(){return l(S,Ot(I),m,{getOptionValue:O,getOptionLabel:C})?d(S,s(S)):void 0}),[s,d,C,O,S,l,m,I]),P=(0,e.useMemo)((function(){return!o&&x||!V?m:"first"===i?[V].concat(b(m)):[].concat(b(m),[V])}),[o,i,x,V,m]),k=(0,e.useCallback)((function(e,t){if("select-option"!==t.action)return v(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]!==V)v(e,t);else if(f)f(S);else{var o=d(S,S),r={action:"create-option",name:M,option:o};v(Ft(E,[].concat(b(Ot(I)),[o]),o),r)}}),[d,S,E,M,V,f,v,I]);return p(p({},g),{},{options:P,onChange:k})}(o);return e.createElement(co,a({ref:n},r))})),go=vo;const bo=(0,r.getSetting)("wc-upi_data",{}),yo=(0,o.decodeEntities)(bo.title)||"Pay via UPI QR Code",Oo=()=>(0,o.decodeEntities)(bo.description||""),wo={name:"wc-upi",label:(0,e.createElement)((t=>{const{PaymentMethodLabel:n}=t.components;return(0,e.createElement)(n,{text:yo})}),null),content:"hide"===bo?.upi_address?(0,e.createElement)(Oo,null):(0,e.createElement)((t=>{const{eventRegistration:n,emitResponse:o}=t,{onPaymentSetup:r}=n,[a,s]=(0,i.useState)(""),[u,l]=(0,i.useState)("");return(0,i.useEffect)((()=>{const e=r((async()=>({type:o.responseTypes.SUCCESS,meta:{paymentMethodData:{customer_upiwc_address:a,customer_upiwc_handle:u?.value}}})));return()=>{e()}}),[o.responseTypes.ERROR,o.responseTypes.SUCCESS,r,a,u]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Oo,null),(0,e.createElement)("div",{className:"upiwc-input block"},(0,e.createElement)("label",null,"UPI Address ",bo?.require_upi&&(0,e.createElement)("span",{class:"required"},"*")),(0,e.createElement)("div",{className:"upiwc-input-field"},(0,e.createElement)("input",{id:"upiwc-address",pattern:"[a-zA-Z0-9]+",className:`upiwc-address block ${bo?.upi_address?.replace("_","-")}`,type:"text",autocomplete:"off",placeholder:`e.g. ${bo?.placeholder}`,value:a,onChange:e=>s(e.target.value)}),"show_handle"===bo?.upi_address&&(0,e.createElement)(go,{isClearable:!0,value:u,options:bo?.handles,onChange:e=>l(e),className:"upiwc-upi-handle",styles:{container:(e,t)=>({...e,width:"80%",outline:"none !important"}),control:(e,t)=>({...e,boxShadow:"none",outline:"none",borderLeft:"0",borderBottomLeftRadius:"0",borderTopLeftRadius:"0",borderColor:"#d0d0d0 !important",backgroundColor:"transparent"}),valueContainer:(e,t)=>({...e,padding:"0 0 0 6px",fontSize:"13px"}),input:(e,t)=>({...e,padding:"0",margin:"0",height:"38px"}),menu:(e,t)=>({...e,fontSize:"13px"}),menuList:(e,t)=>({...e,padding:"0",margin:"0"})}}))))}),null),edit:(0,e.createElement)(Oo,null),placeOrderButtonLabel:bo?.button_text,canMakePayment:()=>!0,ariaLabel:yo,supports:{features:bo.supports}};(0,t.registerPaymentMethod)(wo)})()})(); \ No newline at end of file diff --git a/includes/class-payment.php b/includes/class-payment.php index b5b3282..8bf59ad 100644 --- a/includes/class-payment.php +++ b/includes/class-payment.php @@ -18,12 +18,42 @@ */ class UPI_WC_Payment_Gateway extends \WC_Payment_Gateway { + /** + * Unique id for the gateway. + * @var string + * + */ + public $id = 'wc-upi'; + + protected $instructions; + protected $instructions_mobile; + protected $confirm_message; + protected $thank_you; + protected $payment_status; + protected $name; + protected $vpa; + protected $pay_button; + protected $mc_code; + protected $upi_address; + protected $require_upi; + protected $theme; + protected $transaction_id; + protected $transaction_image; + protected $intent; + protected $download_qr; + protected $qrcode_mobile; + protected $hide_on_mobile; + protected $email_enabled; + protected $email_subject; + protected $email_heading; + protected $additional_content; + protected $default_status; + /** * Constructor for the gateway. */ public function __construct() { - - $this->id = 'wc-upi'; + $this->icon = apply_filters( 'upiwc_gateway_icon', UPIWC_URL . 'includes/icon/payment.gif' ); $this->has_fields = true; $this->method_title = __( 'UPI QR Code', 'upi-qr-code-payment-for-woocommerce' ); @@ -213,7 +243,7 @@ public function init_form_fields() { 'title' => __( 'Thank You Message:', 'upi-qr-code-payment-for-woocommerce' ), 'type' => 'textarea', 'description' => __( 'This displays a message to customer after a successful payment is made.', 'upi-qr-code-payment-for-woocommerce' ), - 'default' => __( 'Thank you for your payment. Your transaction has been completed, and your order has been successfully placed. Please check you Email inbox for details. Please check your bank account statement to view transaction details.', 'upi-qr-code-payment-for-woocommerce' ), + 'default' => __( 'Thank you for your order. Your transaction has been completed, and order has been successfully placed. Please check you Email inbox for details.', 'upi-qr-code-payment-for-woocommerce' ), 'desc_tip' => false, ), 'hide_on_mobile' => array( @@ -325,21 +355,21 @@ public function init_form_fields() { 'title' => __( 'Instructions:', 'upi-qr-code-payment-for-woocommerce' ), 'type' => 'textarea', 'description' => __( 'Instructions that will be added to the order pay popup on desktop devices.', 'upi-qr-code-payment-for-woocommerce' ), - 'default' => __( 'Scan the QR Code with any UPI apps like BHIM, Paytm, Google Pay, PhonePe or any Banking UPI app to make payment for this order. After successful payment, enter the UPI Reference ID or Transaction Number and your UPI ID in the next screen and submit the form. We will manually verify this payment against your 12-digits UPI Reference ID or Transaction Number (e.g. 301422121258) and your UPI ID.', 'upi-qr-code-payment-for-woocommerce' ), + 'default' => __( 'Please scan the QR code with any UPI app to pay for your order. After payment, enter the UPI Reference ID or Transaction Number (e.g. 401422121258) on the next screen. We\'ll manually verify your payment using the provided information.', 'upi-qr-code-payment-for-woocommerce' ), 'desc_tip' => false, ), 'instructions_mobile' => array( 'title' => __( 'Mobile Instructions:', 'upi-qr-code-payment-for-woocommerce' ), 'type' => 'textarea', 'description' => __( 'Instructions that will be added to the order pay popup on mobile devices.', 'upi-qr-code-payment-for-woocommerce' ), - 'default' => __( 'Scan the QR Code with any UPI apps like BHIM, Paytm, Google Pay, PhonePe or any Banking UPI app to make payment for this order. After successful payment, enter the UPI Reference ID or Transaction Number and your UPI ID in the next screen and submit the form. We will manually verify this payment against your 12-digits UPI Reference ID or Transaction Number (e.g. 301422121258) and your UPI ID.', 'upi-qr-code-payment-for-woocommerce' ), + 'default' => __( 'Please scan the QR code with any UPI app to pay for your order. After payment, enter the UPI Reference ID or Transaction Number (e.g. 401422121258) on the next screen. We\'ll manually verify your payment using the provided information.', 'upi-qr-code-payment-for-woocommerce' ), 'desc_tip' => false, ), 'confirm_message' => array( 'title' => __( 'Confirm Message:', 'upi-qr-code-payment-for-woocommerce' ), 'type' => 'textarea', 'description' => __( 'This displays a message to customer as payment processing text.', 'upi-qr-code-payment-for-woocommerce' ), - 'default' => __( 'Click Confirm, only after amount deducted from your account. We will manually verify your transaction. Are you sure?', 'upi-qr-code-payment-for-woocommerce' ), + 'default' => __( 'Please ensure that the amount has been deducted from your account before clicking "Confirm". We will manually verify your transaction once submitted.', 'upi-qr-code-payment-for-woocommerce' ), 'desc_tip' => false, ), 'email' => array( @@ -1028,6 +1058,12 @@ public function render_column( $column_name, $order_object_or_post_id ) { echo ( ! empty( $content ) ) ? $content : '—'; } + /** + * Get UPI ID + * + * @param WC_Order $order Order data. + * @return string + */ private function get_vpa( $order ) { $payee_vpa = apply_filters( 'upiwc_payee_vpa', $this->vpa, $order ); diff --git a/includes/css/checkout.min.css b/includes/css/checkout.min.css index 102ae4b..52dac35 100644 --- a/includes/css/checkout.min.css +++ b/includes/css/checkout.min.css @@ -1 +1 @@ -.wc_payment_method.payment_method_wc-upi>.payment_box.payment_method_wc-upi{display:flex;flex-direction:column;gap:12px}.wc_payment_method.payment_method_wc-upi>.payment_box.payment_method_wc-upi>p{margin:0 !important}.wc_payment_method.payment_method_wc-upi>.payment_box.payment_method_wc-upi>.upiwc-checkout-payment-form{display:flex;flex-direction:row;justify-content:space-between;align-items:center;background:rgba(0,0,0,0);margin:0 !important;padding:0 !important;border:none;gap:20px}@media only screen and (max-width: 576px){.wc_payment_method.payment_method_wc-upi>.payment_box.payment_method_wc-upi>.upiwc-checkout-payment-form{flex-direction:column}}.upiwc-input{display:flex;flex-direction:column;gap:5px;margin:0 !important;padding:0 !important;width:100%}.upiwc-input.block{margin-top:15px !important}@media only screen and (max-width: 576px){.upiwc-input{width:100%}}.upiwc-input label{font-size:13px;font-weight:700;margin:0}.upiwc-input label .required{color:red}.upiwc-input .upiwc-input-field{display:flex;flex-direction:row;align-items:center;justify-content:center}.upiwc-input .upiwc-input-field input.upiwc-address{width:100%;max-height:36px;min-height:36px;text-transform:lowercase;margin:0 !important;border:1px solid #d0d0d0;padding:8px 8px;position:relative;z-index:1;box-sizing:border-box;border-radius:3px;font-size:13px;color:#303030;background-color:#fafbfc;outline:0;box-shadow:none;background-image:none;-webkit-appearance:none}.upiwc-input .upiwc-input-field input.upiwc-address.show-handle{border-top-right-radius:0;border-bottom-right-radius:0}.upiwc-input .upiwc-input-field input.upiwc-address:focus{border-color:#d0d0d0}.upiwc-input .upiwc-input-field input.upiwc-address.block{padding:8px 12px;min-height:42px;border-top-right-radius:0;border-bottom-right-radius:0}.upiwc-input .upiwc-input-field .selectize-control:before{content:"@";position:absolute;display:block;top:50%;transform:translateY(-50%);left:8px;z-index:3;font-weight:700}.upiwc-input .upiwc-input-field .selectize-input{box-shadow:none !important;padding-left:26px !important;background-color:#fafbfc !important;border-left:0;border-top-left-radius:0;border-bottom-left-radius:0} \ No newline at end of file +.wc_payment_method.payment_method_wc-upi>.payment_box.payment_method_wc-upi{display:flex;flex-direction:column;gap:12px}.wc_payment_method.payment_method_wc-upi>.payment_box.payment_method_wc-upi>p{margin:0 !important}.wc_payment_method.payment_method_wc-upi>.payment_box.payment_method_wc-upi>.upiwc-checkout-payment-form{display:flex;flex-direction:row;justify-content:space-between;align-items:center;background:rgba(0,0,0,0);margin:0 !important;padding:0 !important;border:none;gap:20px}@media only screen and (max-width: 576px){.wc_payment_method.payment_method_wc-upi>.payment_box.payment_method_wc-upi>.upiwc-checkout-payment-form{flex-direction:column}}.upiwc-input{display:flex;flex-direction:column;gap:5px;margin:0 !important;padding:0 !important;width:100%}.upiwc-input.block{margin-top:15px !important}@media only screen and (max-width: 576px){.upiwc-input{width:100%}}.upiwc-input label{font-size:13px;font-weight:700;margin:0}.upiwc-input label .required{color:red}.upiwc-input .upiwc-input-field{display:flex;flex-direction:row;align-items:center;justify-content:center}.upiwc-input .upiwc-input-field input.upiwc-address{width:100%;max-height:36px;min-height:36px;text-transform:lowercase;margin:0 !important;border:1px solid #d0d0d0;padding:8px 8px;position:relative;z-index:1;box-sizing:border-box;border-radius:3px;font-size:13px;color:#303030;background-color:#fafbfc;outline:0;box-shadow:none;background-image:none;-webkit-appearance:none}.upiwc-input .upiwc-input-field input.upiwc-address.show-handle{border-top-right-radius:0;border-bottom-right-radius:0}.upiwc-input .upiwc-input-field input.upiwc-address:focus{border-color:#d0d0d0}.upiwc-input .upiwc-input-field input.upiwc-address.block{padding:8px 12px;min-height:40px}.upiwc-input .upiwc-input-field .selectize-control:before{content:"@";position:absolute;display:block;top:50%;transform:translateY(-50%);left:8px;z-index:3;font-weight:700}.upiwc-input .upiwc-input-field .selectize-input{box-shadow:none !important;padding-left:26px !important;background-color:#fafbfc !important;border-left:0;border-top-left-radius:0;border-bottom-left-radius:0} \ No newline at end of file diff --git a/includes/css/checkout.scss b/includes/css/checkout.scss index 0925fba..1ef90db 100644 --- a/includes/css/checkout.scss +++ b/includes/css/checkout.scss @@ -87,13 +87,11 @@ &.block { padding: 8px 12px; - min-height: 42px; - border-top-right-radius: 0; - border-bottom-right-radius: 0; + min-height: 40px; } } - .selectize-control:before{ + .selectize-control:before { content: '@'; position: absolute; display: block; diff --git a/includes/js/payment.js b/includes/js/payment.js index 3e508cb..61e424a 100644 --- a/includes/js/payment.js +++ b/includes/js/payment.js @@ -5,7 +5,7 @@ return false; } - let paymentLink = 'pay?pa=' + upiwcData.payee_vpa + '&pn=' + upiwcData.payee_name + '&am=' + upiwcData.order_amount + '&tr=' + upiwcData.order_key.replace( 'wc_order_', '' ) + '&mc=' + upiwcData.mc_code + '&cu=INR&tn=' + upiwcData.payee_name + '+OrderId:' + upiwcData.order_number; + let paymentLink = 'pay?pa=' + upiwcData.payee_vpa + '&pn=' + upiwcData.payee_name + '&am=' + upiwcData.order_amount + '&tr=' + upiwcData.order_key.replace( 'wc_order_', '' ) + '&mc=' + upiwcData.mc_code + '&orgid=000000&mode=01&cu=INR&tn=' + upiwcData.payee_name + '+OrderId:' + upiwcData.order_number; paymentLink = encodeURI( paymentLink.replace(/\s/g, '') ); $( 'body' ).on( 'contextmenu', '.upiwc-payment-qr-code img', function( e ) { diff --git a/includes/js/payment.min.js b/includes/js/payment.min.js index b347676..f71e7db 100644 --- a/includes/js/payment.min.js +++ b/includes/js/payment.min.js @@ -1 +1 @@ -function upiwcIntent(t,e){switch(e){case"gpay":prefix="gpay://upi/";break;case"phonepe":prefix="phonepe://";break;case"paytm":prefix="paytmmp://";break;default:prefix="upi://"}return prefix+t}function upiwcIsNumber(t){t=t||window.event;let e=t.which?t.which:t.keyCode;return!(8!=e&&0!=e&&e>31&&(e<48||e>57))}function upiwcStartTimer(t,e){function n(){i=t-((Date.now()-p)/1e3|0),o=i/60|0,c=i%60|0,o=o<10?"0"+o:o,c=c<10?"0"+c:c,e.textContent="Waiting... ("+o+":"+c+")",i<=0&&(p=Date.now()+1e3)}let i,o,c,a,p=Date.now();clearTimeout(a),n(),a=setInterval(n,1e3),setTimeout(function(){clearTimeout(a)},1e3*t)}(function(t){"use strict";if("undefined"==typeof upiwcData)return!1;let e="pay?pa="+upiwcData.payee_vpa+"&pn="+upiwcData.payee_name+"&am="+upiwcData.order_amount+"&tr="+upiwcData.order_key.replace("wc_order_","")+"&mc="+upiwcData.mc_code+"&cu=INR&tn="+upiwcData.payee_name+"+OrderId:"+upiwcData.order_number;e=encodeURI(e.replace(/\s/g,"")),t("body").on("contextmenu",".upiwc-payment-qr-code img",function(t){return!1}),t("body").on("click","#upiwc-cancel-payment",function(t){t.preventDefault(),window.location=upiwcData.cancel_url}),t("body").on("click",".upiwc-return-link",function(t){t.preventDefault(),window.location=upiwcData.payment_url}),t("body").on("click","#upiwc-confirm-payment",function(n){n.preventDefault();let i='₹ '+upiwcData.order_amount+"";""!=upiwcData.payer_vpa&&(i+=''+upiwcData.payer_vpa+"");let o=t.confirm({title:t("body").find(".upiwc-modal-header").html(),content:t("body").find(".upiwc-modal-content").html(),useBootstrap:!1,animation:"scale",boxWidth:"375px",draggable:!1,offsetBottom:0,offsetTop:0,closeIcon:!0,bgOpacity:.8,lazyOpen:!0,theme:upiwcData.theme,onOpenBefore:function(){this.$el.addClass("upiwc-payment-modal"),t(document).trigger("upiwcOnOpenBefore",[this])},onContentReady:function(){t(document).trigger("upiwcBeforeContentReady",[this]);let n,i,o=this;o.$content.find(".upiwc-payment-upi-id").on("click",function(e){e.preventDefault(),clearTimeout(i),navigator.clipboard.writeText(upiwcData.payee_vpa).then(function(){console.log("Copying to clipboard was successful!")},function(t){console.error("Could not copy text: ",t)});let n=t(this);n.text("Copied!"),i=setTimeout(function(){n.text(upiwcData.payee_vpa)},1e3)}),o.$content.find("#upiwc-payment-transaction-number").on("input",function(t){o.$content.find(".upiwc-payment-error").hide()}),o.$content.find("#upiwc-payment-file").on("change",function(t){o.$content.find(".upiwc-payment-error").hide()});let c=o.$content.find("#upiwc-payment-qr-code img").attr("src");o.$content.find("#upi-download").on("click",function(t){t.preventDefault();let e=document.createElement("a");e.href=c,e.download="QR Code.png",e.click()}),o.$content.find(".upiwc-payment-btn").on("click",function(i){i.preventDefault(),clearTimeout(n),o.$content.find(".upiwc-payment-intent-error").hide();let c=t(this).data("type"),a=window.open(upiwcIntent(e,c));n=setTimeout(function(){a.closed||(a.close(),o.$content.find(".upiwc-payment-intent-error").text("No specified UPI App on this device. Select other UPI option to proceed.").show())},2500)});let a=parseInt(upiwcData.btn_show_interval);a&&a>=1e3?(1==upiwcData.btn_timer&&upiwcStartTimer(a/1e3,document.querySelector(".btn.upiwc-next")),setTimeout(function(){o.buttons.nextStep.setText("Proceed to Next"),o.buttons.nextStep.enable()},a)):(o.buttons.nextStep.setText("Proceed to Next"),o.buttons.nextStep.enable()),t(document).trigger("upiwcAfterContentReady",[this])},onClose:function(){t("#upiwc-processing").hide(),t("#upiwc-confirm-payment, #upiwc-cancel-payment, .upiwc-return-link").show(),t(".upiwc-waiting-text").text("Please click the Pay Now button below to complete the payment against this order."),t(document).trigger("upiwcOnClose",[this])},onAction:function(e){t(document).trigger("upiwcOnAction",[this,e])},buttons:{amount:{text:i,btnClass:"upiwc-amount",action:function(){return!1}},nextStep:{text:"Waiting...",btnClass:"upiwc-next",isDisabled:!0,action:function(){t(document).trigger("upiwcBeforeNextStepAction",[this]);let e=this;return e.$content.find(".upiwc-payment-confirm").show(),e.$content.find(".upiwc-payment-info, .upiwc-payment-qr-code.upiwc-show, .upiwc-payment-actions, .upiwc-payment-container").hide(),e.$closeIcon.hide(),e.buttons.amount.hide(),e.buttons.nextStep.hide(),e.buttons.back.show(),e.buttons.confirm.show(),t(document).trigger("upiwcAfterNextStepAction",[this]),!1}},back:{text:"Back",isHidden:!0,btnClass:"upiwc-back",action:function(){t(document).trigger("upiwcBeforeBackAction",[this]);let e=this;return e.$content.find(".upiwc-payment-confirm").hide(),e.$content.find(".upiwc-payment-info, .upiwc-payment-qr-code.upiwc-show, .upiwc-payment-actions, .upiwc-payment-container").show(),e.buttons.amount.show(),e.buttons.nextStep.show(),e.buttons.back.hide(),e.buttons.confirm.hide(),e.$closeIcon.show(),t(document).trigger("upiwcAfterBackAction",[this]),!1}},confirm:{text:"Confirm",btnClass:"upiwc-confirm",isHidden:!0,action:function(){t(document).trigger("upiwcBeforeConfirmAction",[this]);let e=this,n=e.$content.find("#upiwc-payment-transaction-number"),i=e.$content.find("#upiwc-payment-file");if(n.length>0){let t=n.val();if(""!=t&&12!=t.length)return e.$content.find(".upiwc-payment-error").text("Transaction ID should be of 12 digits!").show(),!1;if("show_require"===upiwcData.transaction_id&&""==t)return e.$content.find(".upiwc-payment-error").text("Transaction ID is required!").show(),!1}if(i.length>0&&"show_require"===upiwcData.transaction_image){var o=i[0];if(!o.files.length)return e.$content.find(".upiwc-payment-error").text("File is required!").show(),!1}n.attr("disabled","disabled"),e.buttons.confirm.disable(),e.buttons.back.disable(),e.buttons.confirm.setText("Processing...");let c=e.$content.find("#upiwc-payment-confirm-form");return c.attr("method","POST"),c.attr("enctype","multipart/form-data"),c.attr("action",upiwcData.callback_url),c.append(''),c.submit(),t(document).trigger("upiwcAfterConfirmAction",[this]),!1}}}});o.open(),t("#upiwc-processing").show(),t("#upiwc-confirm-payment, #upiwc-cancel-payment, .upiwc-return-link").hide(),t(".upiwc-waiting-text").text("Please wait and don't press back or refresh this page while we are processing your payment...")}),t("#upiwc-payment-qr-code").length?new QRCode("upiwc-payment-qr-code",{text:"upi://"+e,width:200,height:200,correctLevel:QRCode.CorrectLevel.H,quietZone:8,onRenderingEnd:function(){t("#upiwc-confirm-payment").trigger("click")}}):t("#upiwc-confirm-payment").trigger("click")})(jQuery); \ No newline at end of file +function upiwcIntent(t,e){switch(e){case"gpay":prefix="gpay://upi/";break;case"phonepe":prefix="phonepe://";break;case"paytm":prefix="paytmmp://";break;default:prefix="upi://"}return prefix+t}function upiwcIsNumber(t){t=t||window.event;let e=t.which?t.which:t.keyCode;return!(8!=e&&0!=e&&e>31&&(e<48||e>57))}function upiwcStartTimer(t,e){function n(){i=t-((Date.now()-p)/1e3|0),o=i/60|0,c=i%60|0,o=o<10?"0"+o:o,c=c<10?"0"+c:c,e.textContent="Waiting... ("+o+":"+c+")",i<=0&&(p=Date.now()+1e3)}let i,o,c,a,p=Date.now();clearTimeout(a),n(),a=setInterval(n,1e3),setTimeout(function(){clearTimeout(a)},1e3*t)}(function(t){"use strict";if("undefined"==typeof upiwcData)return!1;let e="pay?pa="+upiwcData.payee_vpa+"&pn="+upiwcData.payee_name+"&am="+upiwcData.order_amount+"&tr="+upiwcData.order_key.replace("wc_order_","")+"&mc="+upiwcData.mc_code+"&orgid=000000&mode=01&cu=INR&tn="+upiwcData.payee_name+"+OrderId:"+upiwcData.order_number;e=encodeURI(e.replace(/\s/g,"")),t("body").on("contextmenu",".upiwc-payment-qr-code img",function(t){return!1}),t("body").on("click","#upiwc-cancel-payment",function(t){t.preventDefault(),window.location=upiwcData.cancel_url}),t("body").on("click",".upiwc-return-link",function(t){t.preventDefault(),window.location=upiwcData.payment_url}),t("body").on("click","#upiwc-confirm-payment",function(n){n.preventDefault();let i='₹ '+upiwcData.order_amount+"";""!=upiwcData.payer_vpa&&(i+=''+upiwcData.payer_vpa+"");let o=t.confirm({title:t("body").find(".upiwc-modal-header").html(),content:t("body").find(".upiwc-modal-content").html(),useBootstrap:!1,animation:"scale",boxWidth:"375px",draggable:!1,offsetBottom:0,offsetTop:0,closeIcon:!0,bgOpacity:.8,lazyOpen:!0,theme:upiwcData.theme,onOpenBefore:function(){this.$el.addClass("upiwc-payment-modal"),t(document).trigger("upiwcOnOpenBefore",[this])},onContentReady:function(){t(document).trigger("upiwcBeforeContentReady",[this]);let n,i,o=this;o.$content.find(".upiwc-payment-upi-id").on("click",function(e){e.preventDefault(),clearTimeout(i),navigator.clipboard.writeText(upiwcData.payee_vpa).then(function(){console.log("Copying to clipboard was successful!")},function(t){console.error("Could not copy text: ",t)});let n=t(this);n.text("Copied!"),i=setTimeout(function(){n.text(upiwcData.payee_vpa)},1e3)}),o.$content.find("#upiwc-payment-transaction-number").on("input",function(t){o.$content.find(".upiwc-payment-error").hide()}),o.$content.find("#upiwc-payment-file").on("change",function(t){o.$content.find(".upiwc-payment-error").hide()});let c=o.$content.find("#upiwc-payment-qr-code img").attr("src");o.$content.find("#upi-download").on("click",function(t){t.preventDefault();let e=document.createElement("a");e.href=c,e.download="QR Code.png",e.click()}),o.$content.find(".upiwc-payment-btn").on("click",function(i){i.preventDefault(),clearTimeout(n),o.$content.find(".upiwc-payment-intent-error").hide();let c=t(this).data("type"),a=window.open(upiwcIntent(e,c));n=setTimeout(function(){a.closed||(a.close(),o.$content.find(".upiwc-payment-intent-error").text("No specified UPI App on this device. Select other UPI option to proceed.").show())},2500)});let a=parseInt(upiwcData.btn_show_interval);a&&a>=1e3?(1==upiwcData.btn_timer&&upiwcStartTimer(a/1e3,document.querySelector(".btn.upiwc-next")),setTimeout(function(){o.buttons.nextStep.setText("Proceed to Next"),o.buttons.nextStep.enable()},a)):(o.buttons.nextStep.setText("Proceed to Next"),o.buttons.nextStep.enable()),t(document).trigger("upiwcAfterContentReady",[this])},onClose:function(){t("#upiwc-processing").hide(),t("#upiwc-confirm-payment, #upiwc-cancel-payment, .upiwc-return-link").show(),t(".upiwc-waiting-text").text("Please click the Pay Now button below to complete the payment against this order."),t(document).trigger("upiwcOnClose",[this])},onAction:function(e){t(document).trigger("upiwcOnAction",[this,e])},buttons:{amount:{text:i,btnClass:"upiwc-amount",action:function(){return!1}},nextStep:{text:"Waiting...",btnClass:"upiwc-next",isDisabled:!0,action:function(){t(document).trigger("upiwcBeforeNextStepAction",[this]);let e=this;return e.$content.find(".upiwc-payment-confirm").show(),e.$content.find(".upiwc-payment-info, .upiwc-payment-qr-code.upiwc-show, .upiwc-payment-actions, .upiwc-payment-container").hide(),e.$closeIcon.hide(),e.buttons.amount.hide(),e.buttons.nextStep.hide(),e.buttons.back.show(),e.buttons.confirm.show(),t(document).trigger("upiwcAfterNextStepAction",[this]),!1}},back:{text:"Back",isHidden:!0,btnClass:"upiwc-back",action:function(){t(document).trigger("upiwcBeforeBackAction",[this]);let e=this;return e.$content.find(".upiwc-payment-confirm").hide(),e.$content.find(".upiwc-payment-info, .upiwc-payment-qr-code.upiwc-show, .upiwc-payment-actions, .upiwc-payment-container").show(),e.buttons.amount.show(),e.buttons.nextStep.show(),e.buttons.back.hide(),e.buttons.confirm.hide(),e.$closeIcon.show(),t(document).trigger("upiwcAfterBackAction",[this]),!1}},confirm:{text:"Confirm",btnClass:"upiwc-confirm",isHidden:!0,action:function(){t(document).trigger("upiwcBeforeConfirmAction",[this]);let e=this,n=e.$content.find("#upiwc-payment-transaction-number"),i=e.$content.find("#upiwc-payment-file");if(n.length>0){let t=n.val();if(""!=t&&12!=t.length)return e.$content.find(".upiwc-payment-error").text("Transaction ID should be of 12 digits!").show(),!1;if("show_require"===upiwcData.transaction_id&&""==t)return e.$content.find(".upiwc-payment-error").text("Transaction ID is required!").show(),!1}if(i.length>0&&"show_require"===upiwcData.transaction_image){var o=i[0];if(!o.files.length)return e.$content.find(".upiwc-payment-error").text("File is required!").show(),!1}n.attr("disabled","disabled"),e.buttons.confirm.disable(),e.buttons.back.disable(),e.buttons.confirm.setText("Processing...");let c=e.$content.find("#upiwc-payment-confirm-form");return c.attr("method","POST"),c.attr("enctype","multipart/form-data"),c.attr("action",upiwcData.callback_url),c.append(''),c.submit(),t(document).trigger("upiwcAfterConfirmAction",[this]),!1}}}});o.open(),t("#upiwc-processing").show(),t("#upiwc-confirm-payment, #upiwc-cancel-payment, .upiwc-return-link").hide(),t(".upiwc-waiting-text").text("Please wait and don't press back or refresh this page while we are processing your payment...")}),t("#upiwc-payment-qr-code").length?new QRCode("upiwc-payment-qr-code",{text:"upi://"+e,width:200,height:200,correctLevel:QRCode.CorrectLevel.H,quietZone:8,onRenderingEnd:function(){t("#upiwc-confirm-payment").trigger("click")}}):t("#upiwc-confirm-payment").trigger("click")})(jQuery); \ No newline at end of file diff --git a/index.js b/index.js index 4b021a2..117f80f 100644 --- a/index.js +++ b/index.js @@ -52,7 +52,7 @@ const Form = ( props ) => {
- setUpiAddress(e.target.value)} /> + setUpiAddress(e.target.value)} /> { settings?.upi_address === 'show_handle' && { ...baseStyles, padding: '0', margin: '0', + height: '38px' }), menu: (baseStyles, state) => ({ ...baseStyles, fontSize: '13px', }), + menuList: (baseStyles, state) => ({ + ...baseStyles, + padding: '0', + margin: '0', + }), }} /> } diff --git a/readme.txt b/readme.txt index 11dfcc4..fc8daa9 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: infosatech Tags: upi, upi payment, woocommerce, qrcode, bhim upi, paytm upi, india Requires at least: 4.6 Tested up to: 6.4 -Stable tag: 1.4.0 +Stable tag: 1.4.1 Requires PHP: 5.6 Donate link: https://www.sayandatta.co.in/donate License: GPLv3 @@ -106,6 +106,12 @@ Post detailed information about the issue in the [support forum](https://wordpre If you like UPI QR Code Payment Gateway for WooCommerce, please take a moment to [give a 5-star rating](https://wordpress.org/support/plugin/upi-qr-code-payment-for-woocommerce/reviews/?rate=5#new-post). It helps to keep development and support going strong. Thank you! += 1.4.1 = +Release Date: January 7, 2024 + +* Fixed: CSS issues. +* Tweak: PHP 8.3 Support. + = 1.4.0 = Release Date: January 6, 2024 diff --git a/upi-qr-code-payment-for-woocommerce.php b/upi-qr-code-payment-for-woocommerce.php index d9f6948..726f677 100644 --- a/upi-qr-code-payment-for-woocommerce.php +++ b/upi-qr-code-payment-for-woocommerce.php @@ -3,7 +3,7 @@ * Plugin Name: UPI QR Code Payment Gateway * Plugin URI: https://wordpress.org/plugins/upi-qr-code-payment-for-woocommerce/ * Description: It enables a WooCommerce site to accept payments through UPI apps like BHIM, Google Pay, Paytm, PhonePe or any Banking UPI app. Avoid payment gateway charges. - * Version: 1.4.0 + * Version: 1.4.1 * Author: Sayan Datta * Author URI: https://www.sayandatta.co.in * License: GPLv3 @@ -48,7 +48,7 @@ final class UPIWC { * * @var string */ - public $version = '1.4.0'; + public $version = '1.4.1'; /** * Minimum version of WordPress required to run UPIWC. @@ -333,7 +333,7 @@ public function admin_notice() { } $show_rating = true; - if ( $this->calculate_time() > strtotime( '-10 days' ) + if ( $this->calculate_time() > strtotime( '-7 days' ) || '1' === get_option( 'upiwc_plugin_dismiss_rating_notice' ) || apply_filters( 'upiwc_plugin_hide_sticky_notice', false ) ) { $show_rating = false; @@ -352,12 +352,12 @@ public function admin_notice() { calculate_time() > strtotime( '-15 days' ) - // || '1' === get_option( 'upiwc_plugin_dismiss_donate_notice' ) - // || apply_filters( 'upiwc_plugin_hide_sticky_donate_notice', false ) ) { - // $show_donate = false; - // } + $show_donate = true; + if ( $this->calculate_time() > strtotime( '-10 days' ) + || '1' === get_option( 'upiwc_plugin_dismiss_donate_notice' ) + || apply_filters( 'upiwc_plugin_hide_sticky_donate_notice', false ) ) { + $show_donate = false; + } if ( $show_donate ) { $dismiss = wp_nonce_url( add_query_arg( 'upiwc_notice_action', 'dismiss_donate' ), 'upiwc_notice_nonce' ); @@ -379,14 +379,14 @@ public function admin_notice() { public function dismiss_notice() { // Check for Rating Notice if ( get_option( 'upiwc_plugin_no_thanks_rating_notice' ) === '1' - && get_option( 'upiwc_plugin_dismissed_time' ) <= strtotime( '-14 days' ) ) { + && get_option( 'upiwc_plugin_dismissed_time' ) <= strtotime( '-10 days' ) ) { delete_option( 'upiwc_plugin_dismiss_rating_notice' ); delete_option( 'upiwc_plugin_no_thanks_rating_notice' ); } // Check for Donate Notice if ( get_option( 'upiwc_plugin_no_thanks_donate_notice' ) === '1' - && get_option( 'upiwc_plugin_dismissed_time_donate' ) <= strtotime( '-15 days' ) ) { + && get_option( 'upiwc_plugin_dismissed_time_donate' ) <= strtotime( '-14 days' ) ) { delete_option( 'upiwc_plugin_dismiss_donate_notice' ); delete_option( 'upiwc_plugin_no_thanks_donate_notice' ); }