@movmo_app/react-common 0.11.5 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -111,5 +111,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
111
111
  Copyright (c) 2017 Jed Watson.
112
112
  Licensed under the MIT License (MIT), see
113
113
  http://jedwatson.github.io/classnames
114
- */(function(){var n={}.hasOwnProperty;function o(){for(var s=[],l=0;l<arguments.length;l++){var i=arguments[l];if(i){var u=typeof i;if(u==="string"||u==="number")s.push(i);else if(Array.isArray(i)&&i.length){var c=o.apply(null,i);c&&s.push(c)}else if(u==="object")for(var d in i)n.call(i,d)&&i[d]&&s.push(d)}}return s.join(" ")}e.exports?(o.default=o,e.exports=o):(a=(function(){return o}).apply(t,[]))===void 0||(e.exports=a)})()},function(e,t,r){(function(a){var n=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,i=parseInt,u=typeof a=="object"&&a&&a.Object===Object&&a,c=typeof self=="object"&&self&&self.Object===Object&&self,d=u||c||Function("return this")(),m=Object.prototype.toString,A=d.Symbol,y=A?A.prototype:void 0,C=y?y.toString:void 0;function p(E){if(typeof E=="string")return E;if(S(E))return C?C.call(E):"";var h=E+"";return h=="0"&&1/E==-1/0?"-0":h}function I(E){var h=typeof E;return!!E&&(h=="object"||h=="function")}function S(E){return typeof E=="symbol"||function(h){return!!h&&typeof h=="object"}(E)&&m.call(E)=="[object Symbol]"}function R(E){return E?(E=function(h){if(typeof h=="number")return h;if(S(h))return NaN;if(I(h)){var P=typeof h.valueOf=="function"?h.valueOf():h;h=I(P)?P+"":P}if(typeof h!="string")return h===0?h:+h;h=h.replace(n,"");var O=s.test(h);return O||l.test(h)?i(h.slice(2),O?2:8):o.test(h)?NaN:+h}(E))===1/0||E===-1/0?17976931348623157e292*(E<0?-1:1):E==E?E:0:E===0?E:0}e.exports=function(E,h,P){var O,F,$,J;return E=(O=E)==null?"":p(O),F=function(fe){var Z=R(fe),H=Z%1;return Z==Z?H?Z-H:Z:0}(P),$=0,J=E.length,F==F&&(J!==void 0&&(F=F<=J?F:J),$!==void 0&&(F=F>=$?F:$)),P=F,h=p(h),E.slice(P,P+h.length)==h}}).call(this,r(3))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch{typeof window=="object"&&(r=window)}e.exports=r},function(e,t,r){(function(a){var n=/^\[object .+?Constructor\]$/,o=typeof a=="object"&&a&&a.Object===Object&&a,s=typeof self=="object"&&self&&self.Object===Object&&self,l=o||s||Function("return this")(),i,u=Array.prototype,c=Function.prototype,d=Object.prototype,m=l["__core-js_shared__"],A=(i=/[^.]+$/.exec(m&&m.keys&&m.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"",y=c.toString,C=d.hasOwnProperty,p=d.toString,I=RegExp("^"+y.call(C).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),S=u.splice,R=fe(l,"Map"),E=fe(Object,"create");function h(N){var j=-1,W=N?N.length:0;for(this.clear();++j<W;){var K=N[j];this.set(K[0],K[1])}}function P(N){var j=-1,W=N?N.length:0;for(this.clear();++j<W;){var K=N[j];this.set(K[0],K[1])}}function O(N){var j=-1,W=N?N.length:0;for(this.clear();++j<W;){var K=N[j];this.set(K[0],K[1])}}function F(N,j){for(var W,K,ae=N.length;ae--;)if((W=N[ae][0])===(K=j)||W!=W&&K!=K)return ae;return-1}function $(N){return!(!H(N)||(j=N,A&&A in j))&&(function(W){var K=H(W)?p.call(W):"";return K=="[object Function]"||K=="[object GeneratorFunction]"}(N)||function(W){var K=!1;if(W!=null&&typeof W.toString!="function")try{K=!!(W+"")}catch{}return K}(N)?I:n).test(function(W){if(W!=null){try{return y.call(W)}catch{}try{return W+""}catch{}}return""}(N));var j}function J(N,j){var W,K,ae=N.__data__;return((K=typeof(W=j))=="string"||K=="number"||K=="symbol"||K=="boolean"?W!=="__proto__":W===null)?ae[typeof j=="string"?"string":"hash"]:ae.map}function fe(N,j){var W=function(K,ae){return K==null?void 0:K[ae]}(N,j);return $(W)?W:void 0}function Z(N,j){if(typeof N!="function"||j&&typeof j!="function")throw new TypeError("Expected a function");var W=function(){var K=arguments,ae=j?j.apply(this,K):K[0],we=W.cache;if(we.has(ae))return we.get(ae);var X=N.apply(this,K);return W.cache=we.set(ae,X),X};return W.cache=new(Z.Cache||O),W}function H(N){var j=typeof N;return!!N&&(j=="object"||j=="function")}h.prototype.clear=function(){this.__data__=E?E(null):{}},h.prototype.delete=function(N){return this.has(N)&&delete this.__data__[N]},h.prototype.get=function(N){var j=this.__data__;if(E){var W=j[N];return W==="__lodash_hash_undefined__"?void 0:W}return C.call(j,N)?j[N]:void 0},h.prototype.has=function(N){var j=this.__data__;return E?j[N]!==void 0:C.call(j,N)},h.prototype.set=function(N,j){return this.__data__[N]=E&&j===void 0?"__lodash_hash_undefined__":j,this},P.prototype.clear=function(){this.__data__=[]},P.prototype.delete=function(N){var j=this.__data__,W=F(j,N);return!(W<0)&&(W==j.length-1?j.pop():S.call(j,W,1),!0)},P.prototype.get=function(N){var j=this.__data__,W=F(j,N);return W<0?void 0:j[W][1]},P.prototype.has=function(N){return F(this.__data__,N)>-1},P.prototype.set=function(N,j){var W=this.__data__,K=F(W,N);return K<0?W.push([N,j]):W[K][1]=j,this},O.prototype.clear=function(){this.__data__={hash:new h,map:new(R||P),string:new h}},O.prototype.delete=function(N){return J(this,N).delete(N)},O.prototype.get=function(N){return J(this,N).get(N)},O.prototype.has=function(N){return J(this,N).has(N)},O.prototype.set=function(N,j){return J(this,N).set(N,j),this},Z.Cache=O,e.exports=Z}).call(this,r(3))},function(e,t,r){(function(a){var n=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,i=parseInt,u=typeof a=="object"&&a&&a.Object===Object&&a,c=typeof self=="object"&&self&&self.Object===Object&&self,d=u||c||Function("return this")(),m=Object.prototype.toString,A=Math.max,y=Math.min,C=function(){return d.Date.now()};function p(S){var R=typeof S;return!!S&&(R=="object"||R=="function")}function I(S){if(typeof S=="number")return S;if(function(h){return typeof h=="symbol"||function(P){return!!P&&typeof P=="object"}(h)&&m.call(h)=="[object Symbol]"}(S))return NaN;if(p(S)){var R=typeof S.valueOf=="function"?S.valueOf():S;S=p(R)?R+"":R}if(typeof S!="string")return S===0?S:+S;S=S.replace(n,"");var E=s.test(S);return E||l.test(S)?i(S.slice(2),E?2:8):o.test(S)?NaN:+S}e.exports=function(S,R,E){var h,P,O,F,$,J,fe=0,Z=!1,H=!1,N=!0;if(typeof S!="function")throw new TypeError("Expected a function");function j(V){var Y=h,ne=P;return h=P=void 0,fe=V,F=S.apply(ne,Y)}function W(V){return fe=V,$=setTimeout(ae,R),Z?j(V):F}function K(V){var Y=V-J;return J===void 0||Y>=R||Y<0||H&&V-fe>=O}function ae(){var V=C();if(K(V))return we(V);$=setTimeout(ae,function(Y){var ne=R-(Y-J);return H?y(ne,O-(Y-fe)):ne}(V))}function we(V){return $=void 0,N&&h?j(V):(h=P=void 0,F)}function X(){var V=C(),Y=K(V);if(h=arguments,P=this,J=V,Y){if($===void 0)return W(J);if(H)return $=setTimeout(ae,R),j(J)}return $===void 0&&($=setTimeout(ae,R)),F}return R=I(R)||0,p(E)&&(Z=!!E.leading,O=(H="maxWait"in E)?A(I(E.maxWait)||0,R):O,N="trailing"in E?!!E.trailing:N),X.cancel=function(){$!==void 0&&clearTimeout($),fe=0,h=J=P=$=void 0},X.flush=function(){return $===void 0?F:we(C())},X}}).call(this,r(3))},function(e,t,r){(function(a,n){var o="[object Arguments]",s="[object Map]",l="[object Object]",i="[object Set]",u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,d=/^\./,m=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,A=/\\(\\)?/g,y=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,p={};p["[object Float32Array]"]=p["[object Float64Array]"]=p["[object Int8Array]"]=p["[object Int16Array]"]=p["[object Int32Array]"]=p["[object Uint8Array]"]=p["[object Uint8ClampedArray]"]=p["[object Uint16Array]"]=p["[object Uint32Array]"]=!0,p[o]=p["[object Array]"]=p["[object ArrayBuffer]"]=p["[object Boolean]"]=p["[object DataView]"]=p["[object Date]"]=p["[object Error]"]=p["[object Function]"]=p[s]=p["[object Number]"]=p[l]=p["[object RegExp]"]=p[i]=p["[object String]"]=p["[object WeakMap]"]=!1;var I=typeof a=="object"&&a&&a.Object===Object&&a,S=typeof self=="object"&&self&&self.Object===Object&&self,R=I||S||Function("return this")(),E=t&&!t.nodeType&&t,h=E&&typeof n=="object"&&n&&!n.nodeType&&n,P=h&&h.exports===E&&I.process,O=function(){try{return P&&P.binding("util")}catch{}}(),F=O&&O.isTypedArray;function $(f,w,M,k){var Q=-1,ie=f?f.length:0;for(k&&ie&&(M=f[++Q]);++Q<ie;)M=w(M,f[Q],Q,f);return M}function J(f,w){for(var M=-1,k=f?f.length:0;++M<k;)if(w(f[M],M,f))return!0;return!1}function fe(f,w,M,k,Q){return Q(f,function(ie,ve,Le){M=k?(k=!1,ie):w(M,ie,ve,Le)}),M}function Z(f){var w=!1;if(f!=null&&typeof f.toString!="function")try{w=!!(f+"")}catch{}return w}function H(f){var w=-1,M=Array(f.size);return f.forEach(function(k,Q){M[++w]=[Q,k]}),M}function N(f){var w=-1,M=Array(f.size);return f.forEach(function(k){M[++w]=k}),M}var j,W,K,ae=Array.prototype,we=Function.prototype,X=Object.prototype,V=R["__core-js_shared__"],Y=(j=/[^.]+$/.exec(V&&V.keys&&V.keys.IE_PROTO||""))?"Symbol(src)_1."+j:"",ne=we.toString,L=X.hasOwnProperty,g=X.toString,de=RegExp("^"+ne.call(L).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ce=R.Symbol,se=R.Uint8Array,ye=X.propertyIsEnumerable,Se=ae.splice,Ne=(W=Object.keys,K=Object,function(f){return W(K(f))}),_=yt(R,"DataView"),Be=yt(R,"Map"),Ee=yt(R,"Promise"),G=yt(R,"Set"),B=yt(R,"WeakMap"),z=yt(Object,"create"),q=Ct(_),re=Ct(Be),me=Ct(Ee),he=Ct(G),Ge=Ct(B),ee=ce?ce.prototype:void 0,le=ee?ee.valueOf:void 0,Ce=ee?ee.toString:void 0;function te(f){var w=-1,M=f?f.length:0;for(this.clear();++w<M;){var k=f[w];this.set(k[0],k[1])}}function oe(f){var w=-1,M=f?f.length:0;for(this.clear();++w<M;){var k=f[w];this.set(k[0],k[1])}}function ke(f){var w=-1,M=f?f.length:0;for(this.clear();++w<M;){var k=f[w];this.set(k[0],k[1])}}function nt(f){var w=-1,M=f?f.length:0;for(this.__data__=new ke;++w<M;)this.add(f[w])}function Je(f){this.__data__=new oe(f)}function at(f,w){var M=v(f)||Pn(f)?function(ve,Le){for(var Xe=-1,We=Array(ve);++Xe<ve;)We[Xe]=Le(Xe);return We}(f.length,String):[],k=M.length,Q=!!k;for(var ie in f)!L.call(f,ie)||Q&&(ie=="length"||sn(ie,k))||M.push(ie);return M}function lt(f,w){for(var M=f.length;M--;)if(Nn(f[M][0],w))return M;return-1}te.prototype.clear=function(){this.__data__=z?z(null):{}},te.prototype.delete=function(f){return this.has(f)&&delete this.__data__[f]},te.prototype.get=function(f){var w=this.__data__;if(z){var M=w[f];return M==="__lodash_hash_undefined__"?void 0:M}return L.call(w,f)?w[f]:void 0},te.prototype.has=function(f){var w=this.__data__;return z?w[f]!==void 0:L.call(w,f)},te.prototype.set=function(f,w){return this.__data__[f]=z&&w===void 0?"__lodash_hash_undefined__":w,this},oe.prototype.clear=function(){this.__data__=[]},oe.prototype.delete=function(f){var w=this.__data__,M=lt(w,f);return!(M<0)&&(M==w.length-1?w.pop():Se.call(w,M,1),!0)},oe.prototype.get=function(f){var w=this.__data__,M=lt(w,f);return M<0?void 0:w[M][1]},oe.prototype.has=function(f){return lt(this.__data__,f)>-1},oe.prototype.set=function(f,w){var M=this.__data__,k=lt(M,f);return k<0?M.push([f,w]):M[k][1]=w,this},ke.prototype.clear=function(){this.__data__={hash:new te,map:new(Be||oe),string:new te}},ke.prototype.delete=function(f){return Yt(this,f).delete(f)},ke.prototype.get=function(f){return Yt(this,f).get(f)},ke.prototype.has=function(f){return Yt(this,f).has(f)},ke.prototype.set=function(f,w){return Yt(this,f).set(f,w),this},nt.prototype.add=nt.prototype.push=function(f){return this.__data__.set(f,"__lodash_hash_undefined__"),this},nt.prototype.has=function(f){return this.__data__.has(f)},Je.prototype.clear=function(){this.__data__=new oe},Je.prototype.delete=function(f){return this.__data__.delete(f)},Je.prototype.get=function(f){return this.__data__.get(f)},Je.prototype.has=function(f){return this.__data__.has(f)},Je.prototype.set=function(f,w){var M=this.__data__;if(M instanceof oe){var k=M.__data__;if(!Be||k.length<199)return k.push([f,w]),this;M=this.__data__=new ke(k)}return M.set(f,w),this};var vt,ze=(vt=function(f,w){return f&&Rt(f,w,Ue)},function(f,w){if(f==null)return f;if(!D(f))return vt(f,w);for(var M=f.length,k=-1,Q=Object(f);++k<M&&w(Q[k],k,Q)!==!1;);return f}),Rt=function(f){return function(w,M,k){for(var Q=-1,ie=Object(w),ve=k(w),Le=ve.length;Le--;){var Xe=ve[++Q];if(M(ie[Xe],Xe,ie)===!1)break}return w}}();function Wt(f,w){for(var M=0,k=(w=kt(w,f)?[w]:zt(w)).length;f!=null&&M<k;)f=f[Lt(w[M++])];return M&&M==k?f:void 0}function rn(f,w){return f!=null&&w in Object(f)}function ht(f,w,M,k,Q){return f===w||(f==null||w==null||!Re(f)&&!Pe(w)?f!=f&&w!=w:function(ie,ve,Le,Xe,We,Te){var ut=v(ie),qe=v(ve),Qe="[object Array]",Ke="[object Array]";ut||(Qe=(Qe=pt(ie))==o?l:Qe),qe||(Ke=(Ke=pt(ve))==o?l:Ke);var dt=Qe==l&&!Z(ie),Jt=Ke==l&&!Z(ve),Pt=Qe==Ke;if(Pt&&!dt)return Te||(Te=new Je),ut||Ae(ie)?on(ie,ve,Le,Xe,We,Te):function(_e,De,vr,_t,Tn,it,It){switch(vr){case"[object DataView]":if(_e.byteLength!=De.byteLength||_e.byteOffset!=De.byteOffset)return!1;_e=_e.buffer,De=De.buffer;case"[object ArrayBuffer]":return!(_e.byteLength!=De.byteLength||!_t(new se(_e),new se(De)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Nn(+_e,+De);case"[object Error]":return _e.name==De.name&&_e.message==De.message;case"[object RegExp]":case"[object String]":return _e==De+"";case s:var Tt=H;case i:var un=2&it;if(Tt||(Tt=N),_e.size!=De.size&&!un)return!1;var On=It.get(_e);if(On)return On==De;it|=1,It.set(_e,De);var Ut=on(Tt(_e),Tt(De),_t,Tn,it,It);return It.delete(_e),Ut;case"[object Symbol]":if(le)return le.call(_e)==le.call(De)}return!1}(ie,ve,Qe,Le,Xe,We,Te);if(!(2&We)){var ma=dt&&L.call(ie,"__wrapped__"),va=Jt&&L.call(ve,"__wrapped__");if(ma||va){var Vs=ma?ie.value():ie,js=va?ve.value():ve;return Te||(Te=new Je),Le(Vs,js,Xe,We,Te)}}return Pt?(Te||(Te=new Je),function(_e,De,vr,_t,Tn,it){var It=2&Tn,Tt=Ue(_e),un=Tt.length,On=Ue(De).length;if(un!=On&&!It)return!1;for(var Ut=un;Ut--;){var Ot=Tt[Ut];if(!(It?Ot in De:L.call(De,Ot)))return!1}var ha=it.get(_e);if(ha&&it.get(De))return ha==De;var Fn=!0;it.set(_e,De),it.set(De,_e);for(var hr=It;++Ut<un;){Ot=Tt[Ut];var Mn=_e[Ot],Bn=De[Ot];if(_t)var ya=It?_t(Bn,Mn,Ot,De,_e,it):_t(Mn,Bn,Ot,_e,De,it);if(!(ya===void 0?Mn===Bn||vr(Mn,Bn,_t,Tn,it):ya)){Fn=!1;break}hr||(hr=Ot=="constructor")}if(Fn&&!hr){var Vn=_e.constructor,jn=De.constructor;Vn==jn||!("constructor"in _e)||!("constructor"in De)||typeof Vn=="function"&&Vn instanceof Vn&&typeof jn=="function"&&jn instanceof jn||(Fn=!1)}return it.delete(_e),it.delete(De),Fn}(ie,ve,Le,Xe,We,Te)):!1}(f,w,ht,M,k,Q))}function Gt(f){return!(!Re(f)||function(w){return!!Y&&Y in w}(f))&&(U(f)||Z(f)?de:y).test(Ct(f))}function Nt(f){return typeof f=="function"?f:f==null?He:typeof f=="object"?v(f)?function(k,Q){return kt(k)&&wn(Q)?Rn(Lt(k),Q):function(ie){var ve=function(Le,Xe,We){var Te=Le==null?void 0:Wt(Le,Xe);return Te===void 0?We:Te}(ie,k);return ve===void 0&&ve===Q?function(Le,Xe){return Le!=null&&function(We,Te,ut){Te=kt(Te,We)?[Te]:zt(Te);for(var qe,Qe=-1,Ke=Te.length;++Qe<Ke;){var dt=Lt(Te[Qe]);if(!(qe=We!=null&&ut(We,dt)))break;We=We[dt]}return qe||!!(Ke=We?We.length:0)&&ge(Ke)&&sn(dt,Ke)&&(v(We)||Pn(We))}(Le,Xe,rn)}(ie,k):ht(Q,ve,void 0,3)}}(f[0],f[1]):function(k){var Q=function(ie){for(var ve=Ue(ie),Le=ve.length;Le--;){var Xe=ve[Le],We=ie[Xe];ve[Le]=[Xe,We,wn(We)]}return ve}(k);return Q.length==1&&Q[0][2]?Rn(Q[0][0],Q[0][1]):function(ie){return ie===k||function(ve,Le,Xe,We){var Te=Xe.length,ut=Te;if(ve==null)return!ut;for(ve=Object(ve);Te--;){var qe=Xe[Te];if(qe[2]?qe[1]!==ve[qe[0]]:!(qe[0]in ve))return!1}for(;++Te<ut;){var Qe=(qe=Xe[Te])[0],Ke=ve[Qe],dt=qe[1];if(qe[2]){if(Ke===void 0&&!(Qe in ve))return!1}else{var Jt=new Je,Pt;if(!(Pt===void 0?ht(dt,Ke,We,3,Jt):Pt))return!1}}return!0}(ie,k,Q)}}(f):kt(w=f)?(M=Lt(w),function(k){return k==null?void 0:k[M]}):function(k){return function(Q){return Wt(Q,k)}}(w);var w,M}function an(f){if(M=(w=f)&&w.constructor,k=typeof M=="function"&&M.prototype||X,w!==k)return Ne(f);var w,M,k,Q=[];for(var ie in Object(f))L.call(f,ie)&&ie!="constructor"&&Q.push(ie);return Q}function zt(f){return v(f)?f:Gn(f)}function on(f,w,M,k,Q,ie){var ve=2&Q,Le=f.length,Xe=w.length;if(Le!=Xe&&!(ve&&Xe>Le))return!1;var We=ie.get(f);if(We&&ie.get(w))return We==w;var Te=-1,ut=!0,qe=1&Q?new nt:void 0;for(ie.set(f,w),ie.set(w,f);++Te<Le;){var Qe=f[Te],Ke=w[Te];if(k)var dt=ve?k(Ke,Qe,Te,w,f,ie):k(Qe,Ke,Te,f,w,ie);if(dt!==void 0){if(dt)continue;ut=!1;break}if(qe){if(!J(w,function(Jt,Pt){if(!qe.has(Pt)&&(Qe===Jt||M(Qe,Jt,k,Q,ie)))return qe.add(Pt)})){ut=!1;break}}else if(Qe!==Ke&&!M(Qe,Ke,k,Q,ie)){ut=!1;break}}return ie.delete(f),ie.delete(w),ut}function Yt(f,w){var M,k,Q=f.__data__;return((k=typeof(M=w))=="string"||k=="number"||k=="symbol"||k=="boolean"?M!=="__proto__":M===null)?Q[typeof w=="string"?"string":"hash"]:Q.map}function yt(f,w){var M=function(k,Q){return k==null?void 0:k[Q]}(f,w);return Gt(M)?M:void 0}var pt=function(f){return g.call(f)};function sn(f,w){return!!(w=w??9007199254740991)&&(typeof f=="number"||C.test(f))&&f>-1&&f%1==0&&f<w}function kt(f,w){if(v(f))return!1;var M=typeof f;return!(M!="number"&&M!="symbol"&&M!="boolean"&&f!=null&&!xe(f))||c.test(f)||!u.test(f)||w!=null&&f in Object(w)}function wn(f){return f==f&&!Re(f)}function Rn(f,w){return function(M){return M!=null&&M[f]===w&&(w!==void 0||f in Object(M))}}(_&&pt(new _(new ArrayBuffer(1)))!="[object DataView]"||Be&&pt(new Be)!=s||Ee&&pt(Ee.resolve())!="[object Promise]"||G&&pt(new G)!=i||B&&pt(new B)!="[object WeakMap]")&&(pt=function(f){var w=g.call(f),M=w==l?f.constructor:void 0,k=M?Ct(M):void 0;if(k)switch(k){case q:return"[object DataView]";case re:return s;case me:return"[object Promise]";case he:return i;case Ge:return"[object WeakMap]"}return w});var Gn=ln(function(f){var w;f=(w=f)==null?"":function(k){if(typeof k=="string")return k;if(xe(k))return Ce?Ce.call(k):"";var Q=k+"";return Q=="0"&&1/k==-1/0?"-0":Q}(w);var M=[];return d.test(f)&&M.push(""),f.replace(m,function(k,Q,ie,ve){M.push(ie?ve.replace(A,"$1"):Q||k)}),M});function Lt(f){if(typeof f=="string"||xe(f))return f;var w=f+"";return w=="0"&&1/f==-1/0?"-0":w}function Ct(f){if(f!=null){try{return ne.call(f)}catch{}try{return f+""}catch{}}return""}function ln(f,w){if(typeof f!="function"||w&&typeof w!="function")throw new TypeError("Expected a function");var M=function(){var k=arguments,Q=w?w.apply(this,k):k[0],ie=M.cache;if(ie.has(Q))return ie.get(Q);var ve=f.apply(this,k);return M.cache=ie.set(Q,ve),ve};return M.cache=new(ln.Cache||ke),M}function Nn(f,w){return f===w||f!=f&&w!=w}function Pn(f){return function(w){return Pe(w)&&D(w)}(f)&&L.call(f,"callee")&&(!ye.call(f,"callee")||g.call(f)==o)}ln.Cache=ke;var v=Array.isArray;function D(f){return f!=null&&ge(f.length)&&!U(f)}function U(f){var w=Re(f)?g.call(f):"";return w=="[object Function]"||w=="[object GeneratorFunction]"}function ge(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=9007199254740991}function Re(f){var w=typeof f;return!!f&&(w=="object"||w=="function")}function Pe(f){return!!f&&typeof f=="object"}function xe(f){return typeof f=="symbol"||Pe(f)&&g.call(f)=="[object Symbol]"}var Ae=F?function(f){return function(w){return f(w)}}(F):function(f){return Pe(f)&&ge(f.length)&&!!p[g.call(f)]};function Ue(f){return D(f)?at(f):an(f)}function He(f){return f}n.exports=function(f,w,M){var k=v(f)?$:fe,Q=arguments.length<3;return k(f,Nt(w),M,Q,ze)}}).call(this,r(3),r(7)(e))},function(e,t){e.exports=function(r){return r.webpackPolyfill||(r.deprecate=function(){},r.paths=[],r.children||(r.children=[]),Object.defineProperty(r,"loaded",{enumerable:!0,get:function(){return r.l}}),Object.defineProperty(r,"id",{enumerable:!0,get:function(){return r.i}}),r.webpackPolyfill=1),r}},function(e,t){String.prototype.padEnd||(String.prototype.padEnd=function(r,a){return r>>=0,a=String(a!==void 0?a:" "),this.length>r?String(this):((r-=this.length)>a.length&&(a+=a.repeat(r/a.length)),String(this)+a.slice(0,r))})},function(e,t,r){function a(X,V,Y){return V in X?Object.defineProperty(X,V,{value:Y,enumerable:!0,configurable:!0,writable:!0}):X[V]=Y,X}function n(X){if(Symbol.iterator in Object(X)||Object.prototype.toString.call(X)==="[object Arguments]")return Array.from(X)}function o(X){return function(V){if(Array.isArray(V)){for(var Y=0,ne=new Array(V.length);Y<V.length;Y++)ne[Y]=V[Y];return ne}}(X)||n(X)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function s(X){if(Array.isArray(X))return X}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function i(X,V){if(!(X instanceof V))throw new TypeError("Cannot call a class as a function")}function u(X,V){for(var Y=0;Y<V.length;Y++){var ne=V[Y];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(X,ne.key,ne)}}function c(X){return(c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V})(X)}function d(X){return(d=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(V){return c(V)}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":c(V)})(X)}function m(X){if(X===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return X}function A(X){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(V){return V.__proto__||Object.getPrototypeOf(V)})(X)}function y(X,V){return(y=Object.setPrototypeOf||function(Y,ne){return Y.__proto__=ne,Y})(X,V)}r.r(t);var C=r(0),p=r.n(C),I=r(5),S=r.n(I),R=r(4),E=r.n(R),h=r(6),P=r.n(h),O=r(2),F=r.n(O),$=r(1),J=r.n($);r(8);function fe(X,V){return s(X)||function(Y,ne){var L=[],g=!0,de=!1,ce=void 0;try{for(var se,ye=Y[Symbol.iterator]();!(g=(se=ye.next()).done)&&(L.push(se.value),!ne||L.length!==ne);g=!0);}catch(Se){de=!0,ce=Se}finally{try{g||ye.return==null||ye.return()}finally{if(de)throw ce}}return L}(X,V)||l()}var Z=[["Afghanistan",["asia"],"af","93"],["Albania",["europe"],"al","355"],["Algeria",["africa","north-africa"],"dz","213"],["Andorra",["europe"],"ad","376"],["Angola",["africa"],"ao","244"],["Antigua and Barbuda",["america","carribean"],"ag","1268"],["Argentina",["america","south-america"],"ar","54","(..) ........",0,["11","221","223","261","264","2652","280","2905","291","2920","2966","299","341","342","343","351","376","379","381","3833","385","387","388"]],["Armenia",["asia","ex-ussr"],"am","374",".. ......"],["Aruba",["america","carribean"],"aw","297"],["Australia",["oceania"],"au","61","(..) .... ....",0,["2","3","4","7","8","02","03","04","07","08"]],["Austria",["europe","eu-union"],"at","43"],["Azerbaijan",["asia","ex-ussr"],"az","994","(..) ... .. .."],["Bahamas",["america","carribean"],"bs","1242"],["Bahrain",["middle-east"],"bh","973"],["Bangladesh",["asia"],"bd","880"],["Barbados",["america","carribean"],"bb","1246"],["Belarus",["europe","ex-ussr"],"by","375","(..) ... .. .."],["Belgium",["europe","eu-union"],"be","32","... .. .. .."],["Belize",["america","central-america"],"bz","501"],["Benin",["africa"],"bj","229"],["Bhutan",["asia"],"bt","975"],["Bolivia",["america","south-america"],"bo","591"],["Bosnia and Herzegovina",["europe","ex-yugos"],"ba","387"],["Botswana",["africa"],"bw","267"],["Brazil",["america","south-america"],"br","55","(..) ........."],["British Indian Ocean Territory",["asia"],"io","246"],["Brunei",["asia"],"bn","673"],["Bulgaria",["europe","eu-union"],"bg","359"],["Burkina Faso",["africa"],"bf","226"],["Burundi",["africa"],"bi","257"],["Cambodia",["asia"],"kh","855"],["Cameroon",["africa"],"cm","237"],["Canada",["america","north-america"],"ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde",["africa"],"cv","238"],["Caribbean Netherlands",["america","carribean"],"bq","599","",1],["Central African Republic",["africa"],"cf","236"],["Chad",["africa"],"td","235"],["Chile",["america","south-america"],"cl","56"],["China",["asia"],"cn","86","..-........."],["Colombia",["america","south-america"],"co","57","... ... ...."],["Comoros",["africa"],"km","269"],["Congo",["africa"],"cd","243"],["Congo",["africa"],"cg","242"],["Costa Rica",["america","central-america"],"cr","506","....-...."],["Côte d’Ivoire",["africa"],"ci","225",".. .. .. .."],["Croatia",["europe","eu-union","ex-yugos"],"hr","385"],["Cuba",["america","carribean"],"cu","53"],["Curaçao",["america","carribean"],"cw","599","",0],["Cyprus",["europe","eu-union"],"cy","357",".. ......"],["Czech Republic",["europe","eu-union"],"cz","420","... ... ..."],["Denmark",["europe","eu-union","baltic"],"dk","45",".. .. .. .."],["Djibouti",["africa"],"dj","253"],["Dominica",["america","carribean"],"dm","1767"],["Dominican Republic",["america","carribean"],"do","1","",2,["809","829","849"]],["Ecuador",["america","south-america"],"ec","593"],["Egypt",["africa","north-africa"],"eg","20"],["El Salvador",["america","central-america"],"sv","503","....-...."],["Equatorial Guinea",["africa"],"gq","240"],["Eritrea",["africa"],"er","291"],["Estonia",["europe","eu-union","ex-ussr","baltic"],"ee","372",".... ......"],["Ethiopia",["africa"],"et","251"],["Fiji",["oceania"],"fj","679"],["Finland",["europe","eu-union","baltic"],"fi","358",".. ... .. .."],["France",["europe","eu-union"],"fr","33",". .. .. .. .."],["French Guiana",["america","south-america"],"gf","594"],["French Polynesia",["oceania"],"pf","689"],["Gabon",["africa"],"ga","241"],["Gambia",["africa"],"gm","220"],["Georgia",["asia","ex-ussr"],"ge","995"],["Germany",["europe","eu-union","baltic"],"de","49",".... ........"],["Ghana",["africa"],"gh","233"],["Greece",["europe","eu-union"],"gr","30"],["Grenada",["america","carribean"],"gd","1473"],["Guadeloupe",["america","carribean"],"gp","590","",0],["Guam",["oceania"],"gu","1671"],["Guatemala",["america","central-america"],"gt","502","....-...."],["Guinea",["africa"],"gn","224"],["Guinea-Bissau",["africa"],"gw","245"],["Guyana",["america","south-america"],"gy","592"],["Haiti",["america","carribean"],"ht","509","....-...."],["Honduras",["america","central-america"],"hn","504"],["Hong Kong",["asia"],"hk","852",".... ...."],["Hungary",["europe","eu-union"],"hu","36"],["Iceland",["europe"],"is","354","... ...."],["India",["asia"],"in","91",".....-....."],["Indonesia",["asia"],"id","62"],["Iran",["middle-east"],"ir","98","... ... ...."],["Iraq",["middle-east"],"iq","964"],["Ireland",["europe","eu-union"],"ie","353",".. ......."],["Israel",["middle-east"],"il","972","... ... ...."],["Italy",["europe","eu-union"],"it","39","... .......",0],["Jamaica",["america","carribean"],"jm","1876"],["Japan",["asia"],"jp","81",".. .... ...."],["Jordan",["middle-east"],"jo","962"],["Kazakhstan",["asia","ex-ussr"],"kz","7","... ...-..-..",1,["310","311","312","313","315","318","321","324","325","326","327","336","7172","73622"]],["Kenya",["africa"],"ke","254"],["Kiribati",["oceania"],"ki","686"],["Kosovo",["europe","ex-yugos"],"xk","383"],["Kuwait",["middle-east"],"kw","965"],["Kyrgyzstan",["asia","ex-ussr"],"kg","996","... ... ..."],["Laos",["asia"],"la","856"],["Latvia",["europe","eu-union","ex-ussr","baltic"],"lv","371",".. ... ..."],["Lebanon",["middle-east"],"lb","961"],["Lesotho",["africa"],"ls","266"],["Liberia",["africa"],"lr","231"],["Libya",["africa","north-africa"],"ly","218"],["Liechtenstein",["europe"],"li","423"],["Lithuania",["europe","eu-union","ex-ussr","baltic"],"lt","370"],["Luxembourg",["europe","eu-union"],"lu","352"],["Macau",["asia"],"mo","853"],["Macedonia",["europe","ex-yugos"],"mk","389"],["Madagascar",["africa"],"mg","261"],["Malawi",["africa"],"mw","265"],["Malaysia",["asia"],"my","60","..-....-...."],["Maldives",["asia"],"mv","960"],["Mali",["africa"],"ml","223"],["Malta",["europe","eu-union"],"mt","356"],["Marshall Islands",["oceania"],"mh","692"],["Martinique",["america","carribean"],"mq","596"],["Mauritania",["africa"],"mr","222"],["Mauritius",["africa"],"mu","230"],["Mexico",["america","central-america"],"mx","52","... ... ....",0,["55","81","33","656","664","998","774","229"]],["Micronesia",["oceania"],"fm","691"],["Moldova",["europe"],"md","373","(..) ..-..-.."],["Monaco",["europe"],"mc","377"],["Mongolia",["asia"],"mn","976"],["Montenegro",["europe","ex-yugos"],"me","382"],["Morocco",["africa","north-africa"],"ma","212"],["Mozambique",["africa"],"mz","258"],["Myanmar",["asia"],"mm","95"],["Namibia",["africa"],"na","264"],["Nauru",["africa"],"nr","674"],["Nepal",["asia"],"np","977"],["Netherlands",["europe","eu-union"],"nl","31",".. ........"],["New Caledonia",["oceania"],"nc","687"],["New Zealand",["oceania"],"nz","64","...-...-...."],["Nicaragua",["america","central-america"],"ni","505"],["Niger",["africa"],"ne","227"],["Nigeria",["africa"],"ng","234"],["North Korea",["asia"],"kp","850"],["Norway",["europe","baltic"],"no","47","... .. ..."],["Oman",["middle-east"],"om","968"],["Pakistan",["asia"],"pk","92","...-......."],["Palau",["oceania"],"pw","680"],["Palestine",["middle-east"],"ps","970"],["Panama",["america","central-america"],"pa","507"],["Papua New Guinea",["oceania"],"pg","675"],["Paraguay",["america","south-america"],"py","595"],["Peru",["america","south-america"],"pe","51"],["Philippines",["asia"],"ph","63",".... ......."],["Poland",["europe","eu-union","baltic"],"pl","48","...-...-..."],["Portugal",["europe","eu-union"],"pt","351"],["Puerto Rico",["america","carribean"],"pr","1","",3,["787","939"]],["Qatar",["middle-east"],"qa","974"],["Réunion",["africa"],"re","262"],["Romania",["europe","eu-union"],"ro","40"],["Russia",["europe","asia","ex-ussr","baltic"],"ru","7","(...) ...-..-..",0],["Rwanda",["africa"],"rw","250"],["Saint Kitts and Nevis",["america","carribean"],"kn","1869"],["Saint Lucia",["america","carribean"],"lc","1758"],["Saint Vincent and the Grenadines",["america","carribean"],"vc","1784"],["Samoa",["oceania"],"ws","685"],["San Marino",["europe"],"sm","378"],["São Tomé and Príncipe",["africa"],"st","239"],["Saudi Arabia",["middle-east"],"sa","966"],["Senegal",["africa"],"sn","221"],["Serbia",["europe","ex-yugos"],"rs","381"],["Seychelles",["africa"],"sc","248"],["Sierra Leone",["africa"],"sl","232"],["Singapore",["asia"],"sg","65","....-...."],["Slovakia",["europe","eu-union"],"sk","421"],["Slovenia",["europe","eu-union","ex-yugos"],"si","386"],["Solomon Islands",["oceania"],"sb","677"],["Somalia",["africa"],"so","252"],["South Africa",["africa"],"za","27"],["South Korea",["asia"],"kr","82","... .... ...."],["South Sudan",["africa","north-africa"],"ss","211"],["Spain",["europe","eu-union"],"es","34","... ... ..."],["Sri Lanka",["asia"],"lk","94"],["Sudan",["africa"],"sd","249"],["Suriname",["america","south-america"],"sr","597"],["Swaziland",["africa"],"sz","268"],["Sweden",["europe","eu-union","baltic"],"se","46","(...) ...-..."],["Switzerland",["europe"],"ch","41",".. ... .. .."],["Syria",["middle-east"],"sy","963"],["Taiwan",["asia"],"tw","886"],["Tajikistan",["asia","ex-ussr"],"tj","992"],["Tanzania",["africa"],"tz","255"],["Thailand",["asia"],"th","66"],["Timor-Leste",["asia"],"tl","670"],["Togo",["africa"],"tg","228"],["Tonga",["oceania"],"to","676"],["Trinidad and Tobago",["america","carribean"],"tt","1868"],["Tunisia",["africa","north-africa"],"tn","216"],["Turkey",["europe"],"tr","90","... ... .. .."],["Turkmenistan",["asia","ex-ussr"],"tm","993"],["Tuvalu",["asia"],"tv","688"],["Uganda",["africa"],"ug","256"],["Ukraine",["europe","ex-ussr"],"ua","380","(..) ... .. .."],["United Arab Emirates",["middle-east"],"ae","971"],["United Kingdom",["europe","eu-union"],"gb","44",".... ......"],["United States",["america","north-america"],"us","1","(...) ...-....",0,["907","205","251","256","334","479","501","870","480","520","602","623","928","209","213","310","323","408","415","510","530","559","562","619","626","650","661","707","714","760","805","818","831","858","909","916","925","949","951","303","719","970","203","860","202","302","239","305","321","352","386","407","561","727","772","813","850","863","904","941","954","229","404","478","706","770","912","808","319","515","563","641","712","208","217","309","312","618","630","708","773","815","847","219","260","317","574","765","812","316","620","785","913","270","502","606","859","225","318","337","504","985","413","508","617","781","978","301","410","207","231","248","269","313","517","586","616","734","810","906","989","218","320","507","612","651","763","952","314","417","573","636","660","816","228","601","662","406","252","336","704","828","910","919","701","308","402","603","201","609","732","856","908","973","505","575","702","775","212","315","516","518","585","607","631","716","718","845","914","216","330","419","440","513","614","740","937","405","580","918","503","541","215","412","570","610","717","724","814","401","803","843","864","605","423","615","731","865","901","931","210","214","254","281","325","361","409","432","512","713","806","817","830","903","915","936","940","956","972","979","435","801","276","434","540","703","757","804","802","206","253","360","425","509","262","414","608","715","920","304","307"]],["Uruguay",["america","south-america"],"uy","598"],["Uzbekistan",["asia","ex-ussr"],"uz","998",".. ... .. .."],["Vanuatu",["oceania"],"vu","678"],["Vatican City",["europe"],"va","39",".. .... ....",1],["Venezuela",["america","south-america"],"ve","58"],["Vietnam",["asia"],"vn","84"],["Yemen",["middle-east"],"ye","967"],["Zambia",["africa"],"zm","260"],["Zimbabwe",["africa"],"zw","263"]],H=[["American Samoa",["oceania"],"as","1684"],["Anguilla",["america","carribean"],"ai","1264"],["Bermuda",["america","north-america"],"bm","1441"],["British Virgin Islands",["america","carribean"],"vg","1284"],["Cayman Islands",["america","carribean"],"ky","1345"],["Cook Islands",["oceania"],"ck","682"],["Falkland Islands",["america","south-america"],"fk","500"],["Faroe Islands",["europe"],"fo","298"],["Gibraltar",["europe"],"gi","350"],["Greenland",["america"],"gl","299"],["Jersey",["europe","eu-union"],"je","44",".... ......"],["Montserrat",["america","carribean"],"ms","1664"],["Niue",["asia"],"nu","683"],["Norfolk Island",["oceania"],"nf","672"],["Northern Mariana Islands",["oceania"],"mp","1670"],["Saint Barthélemy",["america","carribean"],"bl","590","",1],["Saint Helena",["africa"],"sh","290"],["Saint Martin",["america","carribean"],"mf","590","",2],["Saint Pierre and Miquelon",["america","north-america"],"pm","508"],["Sint Maarten",["america","carribean"],"sx","1721"],["Tokelau",["oceania"],"tk","690"],["Turks and Caicos Islands",["america","carribean"],"tc","1649"],["U.S. Virgin Islands",["america","carribean"],"vi","1340"],["Wallis and Futuna",["oceania"],"wf","681"]];function N(X,V,Y,ne,L){return!Y||L?X+"".padEnd(V.length,".")+" "+ne:X+"".padEnd(V.length,".")+" "+Y}function j(X,V,Y,ne,L){var g,de,ce=[];return de=V===!0,[(g=[]).concat.apply(g,o(X.map(function(se){var ye={name:se[0],regions:se[1],iso2:se[2],countryCode:se[3],dialCode:se[3],format:N(Y,se[3],se[4],ne,L),priority:se[5]||0},Se=[];return se[6]&&se[6].map(function(Ne){var _=function(Be){for(var Ee=1;Ee<arguments.length;Ee++){var G=arguments[Ee]!=null?arguments[Ee]:{},B=Object.keys(G);typeof Object.getOwnPropertySymbols=="function"&&(B=B.concat(Object.getOwnPropertySymbols(G).filter(function(z){return Object.getOwnPropertyDescriptor(G,z).enumerable}))),B.forEach(function(z){a(Be,z,G[z])})}return Be}({},ye);_.dialCode=se[3]+Ne,_.isAreaCode=!0,_.areaCodeLength=Ne.length,Se.push(_)}),Se.length>0?(ye.mainCode=!0,de||V.constructor.name==="Array"&&V.includes(se[2])?(ye.hasAreaCodes=!0,[ye].concat(Se)):(ce=ce.concat(Se),[ye])):[ye]}))),ce]}function W(X,V,Y,ne){if(Y!==null){var L=Object.keys(Y),g=Object.values(Y);L.forEach(function(de,ce){if(ne)return X.push([de,g[ce]]);var se=X.findIndex(function(Se){return Se[0]===de});if(se===-1){var ye=[de];ye[V]=g[ce],X.push(ye)}else X[se][V]=g[ce]})}}function K(X,V){return V.length===0?X:X.map(function(Y){var ne=V.findIndex(function(g){return g[0]===Y[2]});if(ne===-1)return Y;var L=V[ne];return L[1]&&(Y[4]=L[1]),L[3]&&(Y[5]=L[3]),L[2]&&(Y[6]=L[2]),Y})}var ae=function X(V,Y,ne,L,g,de,ce,se,ye,Se,Ne,_,Be,Ee){i(this,X),this.filterRegions=function(ee,le){if(typeof ee=="string"){var Ce=ee;return le.filter(function(te){return te.regions.some(function(oe){return oe===Ce})})}return le.filter(function(te){return ee.map(function(oe){return te.regions.some(function(ke){return ke===oe})}).some(function(oe){return oe})})},this.sortTerritories=function(ee,le){var Ce=[].concat(o(ee),o(le));return Ce.sort(function(te,oe){return te.name<oe.name?-1:te.name>oe.name?1:0}),Ce},this.getFilteredCountryList=function(ee,le,Ce){return ee.length===0?le:Ce?ee.map(function(te){var oe=le.find(function(ke){return ke.iso2===te});if(oe)return oe}).filter(function(te){return te}):le.filter(function(te){return ee.some(function(oe){return oe===te.iso2})})},this.localizeCountries=function(ee,le,Ce){for(var te=0;te<ee.length;te++)le[ee[te].iso2]!==void 0?ee[te].localName=le[ee[te].iso2]:le[ee[te].name]!==void 0&&(ee[te].localName=le[ee[te].name]);return Ce||ee.sort(function(oe,ke){return oe.localName<ke.localName?-1:oe.localName>ke.localName?1:0}),ee},this.getCustomAreas=function(ee,le){for(var Ce=[],te=0;te<le.length;te++){var oe=JSON.parse(JSON.stringify(ee));oe.dialCode+=le[te],Ce.push(oe)}return Ce},this.excludeCountries=function(ee,le){return le.length===0?ee:ee.filter(function(Ce){return!le.includes(Ce.iso2)})};var G=function(ee,le,Ce){var te=[];return W(te,1,ee,!0),W(te,3,le),W(te,2,Ce),te}(se,ye,Se),B=K(JSON.parse(JSON.stringify(Z)),G),z=K(JSON.parse(JSON.stringify(H)),G),q=fe(j(B,V,_,Be,Ee),2),re=q[0],me=q[1];if(Y){var he=fe(j(z,V,_,Be,Ee),2),Ge=he[0];he[1],re=this.sortTerritories(Ge,re)}ne&&(re=this.filterRegions(ne,re)),this.onlyCountries=this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(L,re,ce.includes("onlyCountries")),de),Ne,ce.includes("onlyCountries")),this.preferredCountries=g.length===0?[]:this.localizeCountries(this.getFilteredCountryList(g,re,ce.includes("preferredCountries")),Ne,ce.includes("preferredCountries")),this.hiddenAreaCodes=this.excludeCountries(this.getFilteredCountryList(L,me),de)},we=function(X){function V(L){var g;i(this,V),(g=function(G,B){return!B||d(B)!=="object"&&typeof B!="function"?m(G):B}(this,A(V).call(this,L))).getProbableCandidate=E()(function(G){return G&&G.length!==0?g.state.onlyCountries.filter(function(B){return F()(B.name.toLowerCase(),G.toLowerCase())},m(m(g)))[0]:null}),g.guessSelectedCountry=E()(function(G,B,z,q){var re;if(g.props.enableAreaCodes===!1&&(q.some(function(Ge){if(F()(G,Ge.dialCode))return z.some(function(ee){if(Ge.iso2===ee.iso2&&ee.mainCode)return re=ee,!0}),!0}),re))return re;var me=z.find(function(Ge){return Ge.iso2==B});if(G.trim()==="")return me;var he=z.reduce(function(Ge,ee){return F()(G,ee.dialCode)&&(ee.dialCode.length>Ge.dialCode.length||ee.dialCode.length===Ge.dialCode.length&&ee.priority<Ge.priority)?ee:Ge},{dialCode:"",priority:10001},m(m(g)));return he.name?he:me}),g.updateCountry=function(G){var B,z=g.state.onlyCountries;(B=G.indexOf(0)>="0"&&G.indexOf(0)<="9"?z.find(function(q){return q.dialCode==+G}):z.find(function(q){return q.iso2==G}))&&B.dialCode&&g.setState({selectedCountry:B,formattedNumber:g.props.disableCountryCode?"":g.formatNumber(B.dialCode,B)})},g.scrollTo=function(G,B){if(G){var z=g.dropdownRef;if(z&&document.body){var q=z.offsetHeight,re=z.getBoundingClientRect().top+document.body.scrollTop,me=re+q,he=G,Ge=he.getBoundingClientRect(),ee=he.offsetHeight,le=Ge.top+document.body.scrollTop,Ce=le+ee,te=le-re+z.scrollTop,oe=q/2-ee/2;if(g.props.enableSearch?le<re+32:le<re)B&&(te-=oe),z.scrollTop=te;else if(Ce>me){B&&(te+=oe);var ke=q-ee;z.scrollTop=te-ke}}}},g.scrollToTop=function(){var G=g.dropdownRef;G&&document.body&&(G.scrollTop=0)},g.formatNumber=function(G,B){if(!B)return G;var z,q=B.format,re=g.props,me=re.disableCountryCode,he=re.enableAreaCodeStretch,Ge=re.enableLongNumbers,ee=re.autoFormat;if(me?((z=q.split(" ")).shift(),z=z.join(" ")):he&&B.isAreaCode?((z=q.split(" "))[1]=z[1].replace(/\.+/,"".padEnd(B.areaCodeLength,".")),z=z.join(" ")):z=q,!G||G.length===0)return me?"":g.props.prefix;if(G&&G.length<2||!z||!ee)return me?G:g.props.prefix+G;var le,Ce=P()(z,function(te,oe){if(te.remainingText.length===0)return te;if(oe!==".")return{formattedText:te.formattedText+oe,remainingText:te.remainingText};var ke,nt=s(ke=te.remainingText)||n(ke)||l(),Je=nt[0],at=nt.slice(1);return{formattedText:te.formattedText+Je,remainingText:at}},{formattedText:"",remainingText:G.split("")});return(le=Ge?Ce.formattedText+Ce.remainingText.join(""):Ce.formattedText).includes("(")&&!le.includes(")")&&(le+=")"),le},g.cursorToEnd=function(){var G=g.numberInputRef;if(document.activeElement===G){G.focus();var B=G.value.length;G.value.charAt(B-1)===")"&&(B-=1),G.setSelectionRange(B,B)}},g.getElement=function(G){return g["flag_no_".concat(G)]},g.getCountryData=function(){return g.state.selectedCountry?{name:g.state.selectedCountry.name||"",dialCode:g.state.selectedCountry.dialCode||"",countryCode:g.state.selectedCountry.iso2||"",format:g.state.selectedCountry.format||""}:{}},g.handleFlagDropdownClick=function(G){if(G.preventDefault(),g.state.showDropdown||!g.props.disabled){var B=g.state,z=B.preferredCountries,q=B.onlyCountries,re=B.selectedCountry,me=g.concatPreferredCountries(z,q).findIndex(function(he){return he.dialCode===re.dialCode&&he.iso2===re.iso2});g.setState({showDropdown:!g.state.showDropdown,highlightCountryIndex:me},function(){g.state.showDropdown&&g.scrollTo(g.getElement(g.state.highlightCountryIndex))})}},g.handleInput=function(G){var B=G.target.value,z=g.props,q=z.prefix,re=z.onChange,me=g.props.disableCountryCode?"":q,he=g.state.selectedCountry,Ge=g.state.freezeSelection;if(!g.props.countryCodeEditable){var ee=q+(he.hasAreaCodes?g.state.onlyCountries.find(function(ze){return ze.iso2===he.iso2&&ze.mainCode}).dialCode:he.dialCode);if(B.slice(0,ee.length)!==ee)return}if(B===q)return re&&re("",g.getCountryData(),G,""),g.setState({formattedNumber:""});if(!(B.replace(/\D/g,"").length>15&&(g.props.enableLongNumbers===!1||typeof g.props.enableLongNumbers=="number"&&B.replace(/\D/g,"").length>g.props.enableLongNumbers))&&B!==g.state.formattedNumber){G.preventDefault?G.preventDefault():G.returnValue=!1;var le=g.props.country,Ce=g.state,te=Ce.onlyCountries,oe=Ce.selectedCountry,ke=Ce.hiddenAreaCodes;if(re&&G.persist(),B.length>0){var nt=B.replace(/\D/g,"");(!g.state.freezeSelection||oe&&oe.dialCode.length>nt.length)&&(he=g.props.disableCountryGuess?oe:g.guessSelectedCountry(nt.substring(0,6),le,te,ke)||oe,Ge=!1),me=g.formatNumber(nt,he),he=he.dialCode?he:oe}var Je=G.target.selectionStart,at=G.target.selectionStart,lt=g.state.formattedNumber,vt=me.length-lt.length;g.setState({formattedNumber:me,freezeSelection:Ge,selectedCountry:he},function(){vt>0&&(at-=vt),me.charAt(me.length-1)==")"?g.numberInputRef.setSelectionRange(me.length-1,me.length-1):at>0&&lt.length>=me.length?g.numberInputRef.setSelectionRange(at,at):Je<lt.length&&g.numberInputRef.setSelectionRange(Je,Je),re&&re(me.replace(/[^0-9]+/g,""),g.getCountryData(),G,me)})}},g.handleInputClick=function(G){g.setState({showDropdown:!1}),g.props.onClick&&g.props.onClick(G,g.getCountryData())},g.handleDoubleClick=function(G){var B=G.target.value.length;G.target.setSelectionRange(0,B)},g.handleFlagItemClick=function(G,B){var z=g.state.selectedCountry,q=g.state.onlyCountries.find(function(Ge){return Ge==G});if(q){var re=g.state.formattedNumber.replace(" ","").replace("(","").replace(")","").replace("-",""),me=re.length>1?re.replace(z.dialCode,q.dialCode):q.dialCode,he=g.formatNumber(me.replace(/\D/g,""),q);g.setState({showDropdown:!1,selectedCountry:q,freezeSelection:!0,formattedNumber:he,searchValue:""},function(){g.cursorToEnd(),g.props.onChange&&g.props.onChange(he.replace(/[^0-9]+/g,""),g.getCountryData(),B,he)})}},g.handleInputFocus=function(G){g.numberInputRef&&g.numberInputRef.value===g.props.prefix&&g.state.selectedCountry&&!g.props.disableCountryCode&&g.setState({formattedNumber:g.props.prefix+g.state.selectedCountry.dialCode},function(){g.props.jumpCursorToEnd&&setTimeout(g.cursorToEnd,0)}),g.setState({placeholder:""}),g.props.onFocus&&g.props.onFocus(G,g.getCountryData()),g.props.jumpCursorToEnd&&setTimeout(g.cursorToEnd,0)},g.handleInputBlur=function(G){G.target.value||g.setState({placeholder:g.props.placeholder}),g.props.onBlur&&g.props.onBlur(G,g.getCountryData())},g.handleInputCopy=function(G){if(g.props.copyNumbersOnly){var B=window.getSelection().toString().replace(/[^0-9]+/g,"");G.clipboardData.setData("text/plain",B),G.preventDefault()}},g.getHighlightCountryIndex=function(G){var B=g.state.highlightCountryIndex+G;return B<0||B>=g.state.onlyCountries.length+g.state.preferredCountries.length?B-G:g.props.enableSearch&&B>g.getSearchFilteredCountries().length?0:B},g.searchCountry=function(){var G=g.getProbableCandidate(g.state.queryString)||g.state.onlyCountries[0],B=g.state.onlyCountries.findIndex(function(z){return z==G})+g.state.preferredCountries.length;g.scrollTo(g.getElement(B),!0),g.setState({queryString:"",highlightCountryIndex:B})},g.handleKeydown=function(G){var B=g.props.keys,z=G.target.className;if(z.includes("selected-flag")&&G.which===B.ENTER&&!g.state.showDropdown)return g.handleFlagDropdownClick(G);if(z.includes("form-control")&&(G.which===B.ENTER||G.which===B.ESC))return G.target.blur();if(g.state.showDropdown&&!g.props.disabled&&(!z.includes("search-box")||G.which===B.UP||G.which===B.DOWN||G.which===B.ENTER||G.which===B.ESC&&G.target.value==="")){G.preventDefault?G.preventDefault():G.returnValue=!1;var q=function(re){g.setState({highlightCountryIndex:g.getHighlightCountryIndex(re)},function(){g.scrollTo(g.getElement(g.state.highlightCountryIndex),!0)})};switch(G.which){case B.DOWN:q(1);break;case B.UP:q(-1);break;case B.ENTER:g.props.enableSearch?g.handleFlagItemClick(g.getSearchFilteredCountries()[g.state.highlightCountryIndex]||g.getSearchFilteredCountries()[0],G):g.handleFlagItemClick([].concat(o(g.state.preferredCountries),o(g.state.onlyCountries))[g.state.highlightCountryIndex],G);break;case B.ESC:case B.TAB:g.setState({showDropdown:!1},g.cursorToEnd);break;default:(G.which>=B.A&&G.which<=B.Z||G.which===B.SPACE)&&g.setState({queryString:g.state.queryString+String.fromCharCode(G.which)},g.state.debouncedQueryStingSearcher)}}},g.handleInputKeyDown=function(G){var B=g.props,z=B.keys,q=B.onEnterKeyPress,re=B.onKeyDown;G.which===z.ENTER&&q&&q(G),re&&re(G)},g.handleClickOutside=function(G){g.dropdownRef&&!g.dropdownContainerRef.contains(G.target)&&g.state.showDropdown&&g.setState({showDropdown:!1})},g.handleSearchChange=function(G){var B=G.currentTarget.value,z=g.state,q=z.preferredCountries,re=z.selectedCountry,me=0;if(B===""&&re){var he=g.state.onlyCountries;me=g.concatPreferredCountries(q,he).findIndex(function(Ge){return Ge==re}),setTimeout(function(){return g.scrollTo(g.getElement(me))},100)}g.setState({searchValue:B,highlightCountryIndex:me})},g.concatPreferredCountries=function(G,B){return G.length>0?o(new Set(G.concat(B))):B},g.getDropdownCountryName=function(G){return G.localName||G.name},g.getSearchFilteredCountries=function(){var G=g.state,B=G.preferredCountries,z=G.onlyCountries,q=G.searchValue,re=g.props.enableSearch,me=g.concatPreferredCountries(B,z),he=q.trim().toLowerCase().replace("+","");if(re&&he){if(/^\d+$/.test(he))return me.filter(function(le){var Ce=le.dialCode;return["".concat(Ce)].some(function(te){return te.toLowerCase().includes(he)})});var Ge=me.filter(function(le){var Ce=le.iso2;return["".concat(Ce)].some(function(te){return te.toLowerCase().includes(he)})}),ee=me.filter(function(le){var Ce=le.name,te=le.localName;return le.iso2,["".concat(Ce),"".concat(te||"")].some(function(oe){return oe.toLowerCase().includes(he)})});return g.scrollToTop(),o(new Set([].concat(Ge,ee)))}return me},g.getCountryDropdownList=function(){var G=g.state,B=G.preferredCountries,z=G.highlightCountryIndex,q=G.showDropdown,re=G.searchValue,me=g.props,he=me.disableDropdown,Ge=me.prefix,ee=g.props,le=ee.enableSearch,Ce=ee.searchNotFound,te=ee.disableSearchIcon,oe=ee.searchClass,ke=ee.searchStyle,nt=ee.searchPlaceholder,Je=ee.autocompleteSearch,at=g.getSearchFilteredCountries().map(function(ze,Rt){var Wt=z===Rt,rn=J()({country:!0,preferred:ze.iso2==="us"||ze.iso2==="gb",active:ze.iso2==="us",highlight:Wt}),ht="flag ".concat(ze.iso2);return p.a.createElement("li",Object.assign({ref:function(Gt){return g["flag_no_".concat(Rt)]=Gt},key:"flag_no_".concat(Rt),"data-flag-key":"flag_no_".concat(Rt),className:rn,"data-dial-code":"1",tabIndex:he?"-1":"0","data-country-code":ze.iso2,onClick:function(Gt){return g.handleFlagItemClick(ze,Gt)},role:"option"},Wt?{"aria-selected":!0}:{}),p.a.createElement("div",{className:ht}),p.a.createElement("span",{className:"country-name"},g.getDropdownCountryName(ze)),p.a.createElement("span",{className:"dial-code"},ze.format?g.formatNumber(ze.dialCode,ze):Ge+ze.dialCode))}),lt=p.a.createElement("li",{key:"dashes",className:"divider"});B.length>0&&(!le||le&&!re.trim())&&at.splice(B.length,0,lt);var vt=J()(a({"country-list":!0,hide:!q},g.props.dropdownClass,!0));return p.a.createElement("ul",{ref:function(ze){return!le&&ze&&ze.focus(),g.dropdownRef=ze},className:vt,style:g.props.dropdownStyle,role:"listbox",tabIndex:"0"},le&&p.a.createElement("li",{className:J()(a({search:!0},oe,oe))},!te&&p.a.createElement("span",{className:J()(a({"search-emoji":!0},"".concat(oe,"-emoji"),oe)),role:"img","aria-label":"Magnifying glass"},"🔎"),p.a.createElement("input",{className:J()(a({"search-box":!0},"".concat(oe,"-box"),oe)),style:ke,type:"search",placeholder:nt,autoFocus:!0,autoComplete:Je?"on":"off",value:re,onChange:g.handleSearchChange})),at.length>0?at:p.a.createElement("li",{className:"no-entries-message"},p.a.createElement("span",null,Ce)))};var de,ce=new ae(L.enableAreaCodes,L.enableTerritories,L.regions,L.onlyCountries,L.preferredCountries,L.excludeCountries,L.preserveOrder,L.masks,L.priority,L.areaCodes,L.localization,L.prefix,L.defaultMask,L.alwaysDefaultMask),se=ce.onlyCountries,ye=ce.preferredCountries,Se=ce.hiddenAreaCodes,Ne=L.value?L.value.replace(/\D/g,""):"";de=L.disableInitialCountryGuess?0:Ne.length>1?g.guessSelectedCountry(Ne.substring(0,6),L.country,se,Se)||0:L.country&&se.find(function(G){return G.iso2==L.country})||0;var _,Be=Ne.length<2&&de&&!F()(Ne,de.dialCode)?de.dialCode:"";_=Ne===""&&de===0?"":g.formatNumber((L.disableCountryCode?"":Be)+Ne,de.name?de:void 0);var Ee=se.findIndex(function(G){return G==de});return g.state={showDropdown:L.showDropdown,formattedNumber:_,onlyCountries:se,preferredCountries:ye,hiddenAreaCodes:Se,selectedCountry:de,highlightCountryIndex:Ee,queryString:"",freezeSelection:!1,debouncedQueryStingSearcher:S()(g.searchCountry,250),searchValue:""},g}var Y,ne;return function(L,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(g&&g.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),g&&y(L,g)}(V,X),Y=V,(ne=[{key:"componentDidMount",value:function(){document.addEventListener&&this.props.enableClickOutside&&document.addEventListener("mousedown",this.handleClickOutside),this.props.onMount&&this.props.onMount(this.state.formattedNumber.replace(/[^0-9]+/g,""),this.getCountryData(),this.state.formattedNumber)}},{key:"componentWillUnmount",value:function(){document.removeEventListener&&this.props.enableClickOutside&&document.removeEventListener("mousedown",this.handleClickOutside)}},{key:"componentDidUpdate",value:function(L,g,de){L.country!==this.props.country?this.updateCountry(this.props.country):L.value!==this.props.value&&this.updateFormattedNumber(this.props.value)}},{key:"updateFormattedNumber",value:function(L){if(L===null)return this.setState({selectedCountry:0,formattedNumber:""});var g=this.state,de=g.onlyCountries,ce=g.selectedCountry,se=g.hiddenAreaCodes,ye=this.props,Se=ye.country,Ne=ye.prefix;if(L==="")return this.setState({selectedCountry:ce,formattedNumber:""});var _,Be,Ee=L.replace(/\D/g,"");if(ce&&F()(L,Ne+ce.dialCode))Be=this.formatNumber(Ee,ce),this.setState({formattedNumber:Be});else{var G=(_=this.props.disableCountryGuess?ce:this.guessSelectedCountry(Ee.substring(0,6),Se,de,se)||ce)&&F()(Ee,Ne+_.dialCode)?_.dialCode:"";Be=this.formatNumber((this.props.disableCountryCode?"":G)+Ee,_||void 0),this.setState({selectedCountry:_,formattedNumber:Be})}}},{key:"render",value:function(){var L,g,de,ce=this,se=this.state,ye=se.onlyCountries,Se=se.selectedCountry,Ne=se.showDropdown,_=se.formattedNumber,Be=se.hiddenAreaCodes,Ee=this.props,G=Ee.disableDropdown,B=Ee.renderStringAsFlag,z=Ee.isValid,q=Ee.defaultErrorMessage,re=Ee.specialLabel;if(typeof z=="boolean")g=z;else{var me=z(_.replace(/\D/g,""),Se,ye,Be);typeof me=="boolean"?(g=me)===!1&&(de=q):(g=!1,de=me)}var he=J()((a(L={},this.props.containerClass,!0),a(L,"react-tel-input",!0),L)),Ge=J()({arrow:!0,up:Ne}),ee=J()(a({"form-control":!0,"invalid-number":!g,open:Ne},this.props.inputClass,!0)),le=J()({"selected-flag":!0,open:Ne}),Ce=J()(a({"flag-dropdown":!0,"invalid-number":!g,open:Ne},this.props.buttonClass,!0)),te="flag ".concat(Se&&Se.iso2);return p.a.createElement("div",{className:"".concat(he," ").concat(this.props.className),style:this.props.style||this.props.containerStyle,onKeyDown:this.handleKeydown},re&&p.a.createElement("div",{className:"special-label"},re),de&&p.a.createElement("div",{className:"invalid-number-message"},de),p.a.createElement("input",Object.assign({className:ee,style:this.props.inputStyle,onChange:this.handleInput,onClick:this.handleInputClick,onDoubleClick:this.handleDoubleClick,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onCopy:this.handleInputCopy,value:_,onKeyDown:this.handleInputKeyDown,placeholder:this.props.placeholder,disabled:this.props.disabled,type:"tel"},this.props.inputProps,{ref:function(oe){ce.numberInputRef=oe,typeof ce.props.inputProps.ref=="function"?ce.props.inputProps.ref(oe):typeof ce.props.inputProps.ref=="object"&&(ce.props.inputProps.ref.current=oe)}})),p.a.createElement("div",{className:Ce,style:this.props.buttonStyle,ref:function(oe){return ce.dropdownContainerRef=oe}},B?p.a.createElement("div",{className:le},B):p.a.createElement("div",{onClick:G?void 0:this.handleFlagDropdownClick,className:le,title:Se?"".concat(Se.localName||Se.name,": + ").concat(Se.dialCode):"",tabIndex:G?"-1":"0",role:"button","aria-haspopup":"listbox","aria-expanded":!!Ne||void 0},p.a.createElement("div",{className:te},!G&&p.a.createElement("div",{className:Ge}))),Ne&&this.getCountryDropdownList()))}}])&&u(Y.prototype,ne),V}(p.a.Component);we.defaultProps={country:"",value:"",onlyCountries:[],preferredCountries:[],excludeCountries:[],placeholder:"1 (702) 123-4567",searchPlaceholder:"search",searchNotFound:"No entries to show",flagsImagePath:"./flags.png",disabled:!1,containerStyle:{},inputStyle:{},buttonStyle:{},dropdownStyle:{},searchStyle:{},containerClass:"",inputClass:"",buttonClass:"",dropdownClass:"",searchClass:"",className:"",autoFormat:!0,enableAreaCodes:!1,enableTerritories:!1,disableCountryCode:!1,disableDropdown:!1,enableLongNumbers:!1,countryCodeEditable:!0,enableSearch:!1,disableSearchIcon:!1,disableInitialCountryGuess:!1,disableCountryGuess:!1,regions:"",inputProps:{},localization:{},masks:null,priority:null,areaCodes:null,preserveOrder:[],defaultMask:"... ... ... ... ..",alwaysDefaultMask:!1,prefix:"+",copyNumbersOnly:!0,renderStringAsFlag:"",autocompleteSearch:!1,jumpCursorToEnd:!0,enableAreaCodeStretch:!1,enableClickOutside:!0,showDropdown:!1,isValid:!0,defaultErrorMessage:"",specialLabel:"Phone",onEnterKeyPress:null,keys:{UP:38,DOWN:40,RIGHT:39,LEFT:37,ENTER:13,ESC:27,PLUS:43,A:65,Z:90,SPACE:32,TAB:9}},t.default=we}]);const vg=ks(mg),Fs=({value:e,onChange:t,error:r,onBlur:a,id:n,name:o,required:s,defaultCountry:l="us",className:i,responsive:u=!1,enableSearch:c=!0,autoComplete:d})=>{const m=(A,y)=>{t("+"+A,y.countryCode)};return b.jsxs("div",{className:i,children:[b.jsx("div",{className:Oe("movmo-phone-input flex items-center px-3.5 py-0 h-10 rounded-lg border",u&&"movmo-phone-input-responsive",r?"border-error-500 focus:ring-error-500":"border-grayWarm-300 focus-within:ring-2 focus-within:ring-grayWarm-950"),children:b.jsx(vg,{country:l,value:e.replace("+",""),onChange:m,inputProps:{onBlur:a,required:s,id:n,name:o,...d&&{autoComplete:d}},enableSearch:c,autoFormat:!0})}),r&&b.jsx("p",{className:"text-error-500 text-xs mt-1",children:r})]})};function Xt(e){if(e)try{e.focus()}catch(t){if(t instanceof DOMException&&t.name==="SecurityError")return;throw t}}const Ms=({email:e,phone:t,otpLength:r,otpAction:a,onVerify:n,onClose:o,externalError:s,externalErrorVariant:l="error",disabled:i=!1,title:u,description:c,onOtpChange:d})=>{const[m,A]=T.useState("".padStart(r,"")),[y,C]=T.useState(null),p=T.useRef(null),I=(h,P)=>{if(i||!/^\d*$/.test(h))return;const O=m.split("");O[P]=h.slice(-1);const F=O.join("");A(F),d==null||d(F),y&&C(null),h&&P<r-1&&Xt(document.getElementById(`otp-input-${P+1}`))},S=h=>{if(i)return;h.preventDefault();const O=h.clipboardData.getData("text/plain").replace(/\D/g,"");if(O.length>0){const F=m.split("");for(let Z=0;Z<Math.min(O.length,r);Z++)F[Z]=O[Z];const $=F.join("");A($),d==null||d($),y&&C(null);const J=F.findIndex(Z=>Z===""),fe=J!==-1?J:r-1;Xt(document.getElementById(`otp-input-${fe}`))}},R=h=>{if(i)return;const P=m.split("");P[h]="";const O=P.join("");A(O),d==null||d(O),h>0&&Xt(document.getElementById(`otp-input-${h-1}`))};T.useEffect(()=>{if(i)return;if(!(m.length===r&&!m.includes(" ")&&m.trim().length===r)){p.current=null;return}p.current!==m&&(p.current=m,n(m))},[m,r,n,i]),T.useEffect(()=>{const h=P=>{P.key==="Escape"&&o()};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[o]);const E=l==="warning"?"text-warning-700":"text-error-500";return b.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex justify-center items-center z-[110] px-4",children:b.jsxs(Qr,{className:"w-full max-w-[400px] rounded-lg bg-white",children:[b.jsx(Kr,{className:"p-4 border-b border-grayWarm-200",children:b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("button",{onClick:o,className:"w-8 h-8 flex items-center justify-center bg-grayWarm-100 hover:bg-grayWarm-200 rounded-lg transition-colors","aria-label":"Close modal",children:b.jsx("svg",{className:"w-4 h-4 text-grayWarm-600",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),b.jsx("h2",{className:"text-xl md:text-lg font-bold text-center flex-1",children:u||"Verify Account"}),b.jsx("div",{className:"w-8"})]})}),b.jsxs(qr,{className:"p-4 text-center",children:[b.jsxs("div",{className:"text-center mb-3",children:[b.jsx("p",{className:"text-sm md:text-md text-grayWarm-600",children:c||`Enter the ${r}-digit code we sent to`}),!c&&b.jsx("p",{className:"text-sm md:text-md text-grayWarm-600 mt-1",children:a===et.OTPAction.EMAILED?e:t})]}),b.jsx("div",{className:"flex justify-center gap-1.5 sm:gap-2 mb-6",children:Array.from({length:r}).map((h,P)=>b.jsx("input",{type:"text",inputMode:"numeric",pattern:"[0-9]*",maxLength:1,disabled:i,className:`w-full max-w-10 h-16 border border-grayWarm-300 shadow-xs rounded-md text-center text-lg focus:outline-none focus:ring-2 focus:ring-grayWarm-950${i?" bg-grayWarm-100 text-grayWarm-400 cursor-not-allowed":""}`,value:m[P]||"",onChange:O=>I(O.target.value,P),onPaste:S,id:`otp-input-${P}`,"data-testid":`otp-input-${P}`,onKeyDown:O=>{O.key==="Backspace"&&R(P)}},P))}),(y||s)&&b.jsx("p",{className:`${E} text-center text-sm mb-4`,children:s||y})]})]})})},Bs=e=>/^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$/.test(e),hg={us:{dialCode:"1",lengths:[10]},ca:{dialCode:"1",lengths:[10]},gb:{dialCode:"44",lengths:[10]},au:{dialCode:"61",lengths:[9]},de:{dialCode:"49",lengths:[10,11]},fr:{dialCode:"33",lengths:[9]},it:{dialCode:"39",lengths:[9,10]},es:{dialCode:"34",lengths:[9]},jp:{dialCode:"81",lengths:[10,11]},kr:{dialCode:"82",lengths:[10,11]},in:{dialCode:"91",lengths:[10]},br:{dialCode:"55",lengths:[10,11]},mx:{dialCode:"52",lengths:[10]},cn:{dialCode:"86",lengths:[11]}};function Jr(e,t){if(!e||!e.startsWith("+"))return!1;const r=e.slice(1);if(!/^\d+$/.test(r))return!1;if(t){const a=hg[t.toLowerCase()];if(a){if(!r.startsWith(a.dialCode))return!1;const n=r.slice(a.dialCode.length);return a.lengths.includes(n.length)}}return r.length>=7&&r.length<=15}const yg=e=>{var r;return typeof e!="object"||e===null?!1:((r=e.response)==null?void 0:r.status)===429},Cg=e=>{var r;if(typeof e!="object"||e===null)return"Something went wrong. Please try again.";const t=(r=e.response)==null?void 0:r.status;return t===400?"Invalid or expired code. Please check and try again, or close to request a new one.":t===401?"Your session has expired. Please close and try again.":"Something went wrong. Please try again."},Ig=({isOpen:e,onClose:t,loginUser:r,verifyOTP:a,getCurrentUser:n,onLoginSuccess:o,hideCloseButton:s=!1,showPhone:l=!0,isRateLimitError:i=yg})=>{const u=l!==!1,[c,d]=T.useState(""),[m,A]=T.useState(null),[y,C]=T.useState(""),[p,I]=T.useState(null),[S,R]=T.useState(!1),[E,h]=T.useState(null),[P,O]=T.useState(6),[F,$]=T.useState(null),[J,fe]=T.useState(!1),[Z,H]=T.useState(""),[N,j]=T.useState(et.OTPAction.EMAILED),[W,K]=T.useState("us"),[ae,we]=T.useState(!1),[X,V]=T.useState(null),[Y,ne]=T.useState(null),[L,g]=T.useState(null),de=T.useRef(null),ce=T.useRef(null),se=T.useRef(null),ye=T.useRef(!1);T.useEffect(()=>{ae&&Xt(de.current)},[ae]),T.useEffect(()=>{L&&Xt(ce.current)},[L]),T.useEffect(()=>{e&&!S&&Xt(se.current)},[e,S]);const Se=z=>{const q=z.target.value;d(q),m&&A(null),L&&g(null)},Ne=(z,q)=>{C(z),K(q),p&&I(null),L&&g(null)},_=()=>{y&&!Jr(y,W)&&I("Please enter a valid phone number")},Be=async()=>{let z=!1;if((!c||!Bs(c))&&(A("Please enter a valid email address"),z=!0),u&&!Jr(y,W)&&(I("Please enter a valid phone number"),z=!0),!z){fe(!0);try{const q=await r(c,y,et.AuthenticationUsernameType.EMAIL);if(h(q.session),H(q.username||c),q.challengeName){const re=q.challengeName===et.AuthenticationChallengeName.SMS_OTP||q.challengeName===et.AuthenticationChallengeName.EMAIL_OTP;O(re?8:6),$(q.challengeName),j(q.challengeName===et.AuthenticationChallengeName.SMS_OTP?et.OTPAction.TEXTED:et.OTPAction.EMAILED)}R(!0),t()}catch(q){console.error("Error sending OTP:",q),i(q)?we(!0):g("We couldn't reach our sign-in service. Please try again.")}finally{fe(!1)}}},Ee=async z=>{if(!E)return;ye.current=!1;try{await a(Z,z,E,F)}catch(re){if(ye.current)return;console.error("Error verifying OTP:",re),i(re)?V("Too many attempts. Please close this and try again in a few minutes."):ne(Cg(re));return}if(ye.current)return;let q;try{q=await n()}catch(re){if(ye.current)return;console.error("Error fetching current user after OTP verify:",re),ne("Verified, but we could not load your account. Please try again.");return}ye.current||(o(q),R(!1),d(""),H(""),h(null),O(6),j(et.OTPAction.EMAILED),$(null))},G=()=>{ye.current=!0,R(!1),d(""),H(""),C(""),I(null),h(null),O(6),j(et.OTPAction.EMAILED),$(null),V(null),ne(null)},B=()=>{A(null),I(null),we(!1),V(null),ne(null),g(null),S||(d(""),C("")),t()};return b.jsxs(b.Fragment,{children:[b.jsx(gr,{isOpen:e&&!S,onClose:B,title:"Sign in to Movmo",maxWidthPx:398,hideCloseButton:s,allowOverflow:!0,children:ae?b.jsxs("div",{ref:de,role:"alert","aria-live":"assertive",tabIndex:-1,className:"rounded-lg bg-warning-50 border border-warning-200 p-4 focus:outline-none",children:[b.jsxs("div",{className:"flex items-start gap-2",children:[b.jsxs("svg",{className:"w-5 h-5 text-warning-700 flex-shrink-0 mt-0.5",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[b.jsx("path",{d:"M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),b.jsx("line",{x1:"12",y1:"9",x2:"12",y2:"13",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),b.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})]}),b.jsxs("div",{children:[b.jsx("p",{className:"text-sm font-semibold text-warning-700",children:"Too many attempts"}),b.jsx("p",{className:"text-sm text-grayWarm-600 mt-1",children:"You've hit a temporary limit. Please wait a few minutes and try again."})]})]}),b.jsx("button",{type:"button",onClick:B,className:"mt-4 w-full py-3 px-4 bg-grayWarm-100 hover:bg-grayWarm-200 text-grayWarm-950 font-semibold rounded-lg transition-all",children:"Got it"})]}):b.jsxs("form",{onSubmit:z=>{z.preventDefault(),Be()},className:"space-y-4",children:[b.jsxs("div",{children:[b.jsx(At,{id:"sign-in-email",type:"email",placeholder:"Email",required:!0,value:c,onChange:Se,className:`w-full ${m?"border-error-500 focus:ring-error-500":""} autofill:bg-white autofill:shadow-[inset_0_0_0px_1000px_white]`,ref:se}),m&&b.jsx("p",{className:"text-error-500 text-xs mt-1",children:m})]}),u&&b.jsx(Fs,{value:y,onChange:Ne,onBlur:_,error:p,required:!0,id:"sign-in-phone",name:"sign-in-phone"}),L&&b.jsxs("div",{ref:ce,role:"alert","aria-live":"assertive",tabIndex:-1,className:"rounded-lg bg-error-50 border border-error-200 p-3 flex items-start gap-2 focus:outline-none",children:[b.jsxs("svg",{className:"w-4 h-4 text-error-700 mt-0.5 flex-shrink-0",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[b.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:2}),b.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),b.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})]}),b.jsxs("div",{children:[b.jsx("p",{className:"text-sm font-semibold text-error-700",children:"Sign-in failed"}),b.jsx("p",{className:"text-sm text-grayWarm-600",children:L})]})]}),b.jsx("button",{type:"submit",disabled:J,className:"w-full py-3 px-4 bg-gradient-to-r from-[#E91E63] to-[#E91E63] hover:from-[#D81B60] hover:to-[#D81B60] text-white font-semibold rounded-lg transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:J?"Loading...":"Continue"})]})}),S&&b.jsx(Ms,{email:c,phone:y,otpLength:P,otpAction:N,onVerify:Ee,onClose:G,externalError:X??Y??void 0,externalErrorVariant:X?"warning":"error",disabled:X!==null,onOtpChange:()=>ne(null)})]})};exports.Avatar=Xi;exports.AvatarFallback=Hi;exports.AvatarImage=Zi;exports.Badge=Fi;exports.Button=So;exports.COUNTRY_OPTIONS=Yr;exports.CURRENCY_OPTIONS=mr;exports.Card=Qr;exports.CardContent=qr;exports.CardDescription=Oo;exports.CardFooter=Fo;exports.CardHeader=Kr;exports.CardTitle=To;exports.Checkbox=Oi;exports.Chip=hs;exports.CurrencyModal=bg;exports.DEFAULT_LOCALE=Ts;exports.DateDropdowns=zr;exports.IconButton=Mi;exports.Input=At;exports.LOCALE_OPTIONS=br;exports.LOCALE_STORAGE_KEY=lg;exports.LocaleModal=fg;exports.Modal=gr;exports.OTPModal=Ms;exports.Pagination=ms;exports.PassengerForm=ag;exports.PassengerFormSkeleton=sg;exports.PhoneInput=Fs;exports.SearchInput=vs;exports.SelectDropdown=Cn;exports.Separator=Po;exports.SignInModal=Ig;exports.Textarea=bs;exports.Toggle=Qi;exports.ToggleGroup=ps;exports.ToggleGroupItem=gs;exports.findCurrencyOption=gg;exports.findLocaleOption=ug;exports.getCurrencyDisplayText=Os;exports.getLanguageDisplayName=cg;exports.safeFocus=Xt;exports.validateEmail=Bs;exports.validatePhoneNumber=Jr;
114
+ */(function(){var n={}.hasOwnProperty;function o(){for(var s=[],l=0;l<arguments.length;l++){var i=arguments[l];if(i){var u=typeof i;if(u==="string"||u==="number")s.push(i);else if(Array.isArray(i)&&i.length){var c=o.apply(null,i);c&&s.push(c)}else if(u==="object")for(var d in i)n.call(i,d)&&i[d]&&s.push(d)}}return s.join(" ")}e.exports?(o.default=o,e.exports=o):(a=(function(){return o}).apply(t,[]))===void 0||(e.exports=a)})()},function(e,t,r){(function(a){var n=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,i=parseInt,u=typeof a=="object"&&a&&a.Object===Object&&a,c=typeof self=="object"&&self&&self.Object===Object&&self,d=u||c||Function("return this")(),m=Object.prototype.toString,A=d.Symbol,y=A?A.prototype:void 0,C=y?y.toString:void 0;function p(E){if(typeof E=="string")return E;if(S(E))return C?C.call(E):"";var h=E+"";return h=="0"&&1/E==-1/0?"-0":h}function I(E){var h=typeof E;return!!E&&(h=="object"||h=="function")}function S(E){return typeof E=="symbol"||function(h){return!!h&&typeof h=="object"}(E)&&m.call(E)=="[object Symbol]"}function R(E){return E?(E=function(h){if(typeof h=="number")return h;if(S(h))return NaN;if(I(h)){var P=typeof h.valueOf=="function"?h.valueOf():h;h=I(P)?P+"":P}if(typeof h!="string")return h===0?h:+h;h=h.replace(n,"");var O=s.test(h);return O||l.test(h)?i(h.slice(2),O?2:8):o.test(h)?NaN:+h}(E))===1/0||E===-1/0?17976931348623157e292*(E<0?-1:1):E==E?E:0:E===0?E:0}e.exports=function(E,h,P){var O,F,$,J;return E=(O=E)==null?"":p(O),F=function(fe){var Z=R(fe),H=Z%1;return Z==Z?H?Z-H:Z:0}(P),$=0,J=E.length,F==F&&(J!==void 0&&(F=F<=J?F:J),$!==void 0&&(F=F>=$?F:$)),P=F,h=p(h),E.slice(P,P+h.length)==h}}).call(this,r(3))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch{typeof window=="object"&&(r=window)}e.exports=r},function(e,t,r){(function(a){var n=/^\[object .+?Constructor\]$/,o=typeof a=="object"&&a&&a.Object===Object&&a,s=typeof self=="object"&&self&&self.Object===Object&&self,l=o||s||Function("return this")(),i,u=Array.prototype,c=Function.prototype,d=Object.prototype,m=l["__core-js_shared__"],A=(i=/[^.]+$/.exec(m&&m.keys&&m.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"",y=c.toString,C=d.hasOwnProperty,p=d.toString,I=RegExp("^"+y.call(C).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),S=u.splice,R=fe(l,"Map"),E=fe(Object,"create");function h(N){var j=-1,W=N?N.length:0;for(this.clear();++j<W;){var K=N[j];this.set(K[0],K[1])}}function P(N){var j=-1,W=N?N.length:0;for(this.clear();++j<W;){var K=N[j];this.set(K[0],K[1])}}function O(N){var j=-1,W=N?N.length:0;for(this.clear();++j<W;){var K=N[j];this.set(K[0],K[1])}}function F(N,j){for(var W,K,ae=N.length;ae--;)if((W=N[ae][0])===(K=j)||W!=W&&K!=K)return ae;return-1}function $(N){return!(!H(N)||(j=N,A&&A in j))&&(function(W){var K=H(W)?p.call(W):"";return K=="[object Function]"||K=="[object GeneratorFunction]"}(N)||function(W){var K=!1;if(W!=null&&typeof W.toString!="function")try{K=!!(W+"")}catch{}return K}(N)?I:n).test(function(W){if(W!=null){try{return y.call(W)}catch{}try{return W+""}catch{}}return""}(N));var j}function J(N,j){var W,K,ae=N.__data__;return((K=typeof(W=j))=="string"||K=="number"||K=="symbol"||K=="boolean"?W!=="__proto__":W===null)?ae[typeof j=="string"?"string":"hash"]:ae.map}function fe(N,j){var W=function(K,ae){return K==null?void 0:K[ae]}(N,j);return $(W)?W:void 0}function Z(N,j){if(typeof N!="function"||j&&typeof j!="function")throw new TypeError("Expected a function");var W=function(){var K=arguments,ae=j?j.apply(this,K):K[0],we=W.cache;if(we.has(ae))return we.get(ae);var X=N.apply(this,K);return W.cache=we.set(ae,X),X};return W.cache=new(Z.Cache||O),W}function H(N){var j=typeof N;return!!N&&(j=="object"||j=="function")}h.prototype.clear=function(){this.__data__=E?E(null):{}},h.prototype.delete=function(N){return this.has(N)&&delete this.__data__[N]},h.prototype.get=function(N){var j=this.__data__;if(E){var W=j[N];return W==="__lodash_hash_undefined__"?void 0:W}return C.call(j,N)?j[N]:void 0},h.prototype.has=function(N){var j=this.__data__;return E?j[N]!==void 0:C.call(j,N)},h.prototype.set=function(N,j){return this.__data__[N]=E&&j===void 0?"__lodash_hash_undefined__":j,this},P.prototype.clear=function(){this.__data__=[]},P.prototype.delete=function(N){var j=this.__data__,W=F(j,N);return!(W<0)&&(W==j.length-1?j.pop():S.call(j,W,1),!0)},P.prototype.get=function(N){var j=this.__data__,W=F(j,N);return W<0?void 0:j[W][1]},P.prototype.has=function(N){return F(this.__data__,N)>-1},P.prototype.set=function(N,j){var W=this.__data__,K=F(W,N);return K<0?W.push([N,j]):W[K][1]=j,this},O.prototype.clear=function(){this.__data__={hash:new h,map:new(R||P),string:new h}},O.prototype.delete=function(N){return J(this,N).delete(N)},O.prototype.get=function(N){return J(this,N).get(N)},O.prototype.has=function(N){return J(this,N).has(N)},O.prototype.set=function(N,j){return J(this,N).set(N,j),this},Z.Cache=O,e.exports=Z}).call(this,r(3))},function(e,t,r){(function(a){var n=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,i=parseInt,u=typeof a=="object"&&a&&a.Object===Object&&a,c=typeof self=="object"&&self&&self.Object===Object&&self,d=u||c||Function("return this")(),m=Object.prototype.toString,A=Math.max,y=Math.min,C=function(){return d.Date.now()};function p(S){var R=typeof S;return!!S&&(R=="object"||R=="function")}function I(S){if(typeof S=="number")return S;if(function(h){return typeof h=="symbol"||function(P){return!!P&&typeof P=="object"}(h)&&m.call(h)=="[object Symbol]"}(S))return NaN;if(p(S)){var R=typeof S.valueOf=="function"?S.valueOf():S;S=p(R)?R+"":R}if(typeof S!="string")return S===0?S:+S;S=S.replace(n,"");var E=s.test(S);return E||l.test(S)?i(S.slice(2),E?2:8):o.test(S)?NaN:+S}e.exports=function(S,R,E){var h,P,O,F,$,J,fe=0,Z=!1,H=!1,N=!0;if(typeof S!="function")throw new TypeError("Expected a function");function j(V){var Y=h,ne=P;return h=P=void 0,fe=V,F=S.apply(ne,Y)}function W(V){return fe=V,$=setTimeout(ae,R),Z?j(V):F}function K(V){var Y=V-J;return J===void 0||Y>=R||Y<0||H&&V-fe>=O}function ae(){var V=C();if(K(V))return we(V);$=setTimeout(ae,function(Y){var ne=R-(Y-J);return H?y(ne,O-(Y-fe)):ne}(V))}function we(V){return $=void 0,N&&h?j(V):(h=P=void 0,F)}function X(){var V=C(),Y=K(V);if(h=arguments,P=this,J=V,Y){if($===void 0)return W(J);if(H)return $=setTimeout(ae,R),j(J)}return $===void 0&&($=setTimeout(ae,R)),F}return R=I(R)||0,p(E)&&(Z=!!E.leading,O=(H="maxWait"in E)?A(I(E.maxWait)||0,R):O,N="trailing"in E?!!E.trailing:N),X.cancel=function(){$!==void 0&&clearTimeout($),fe=0,h=J=P=$=void 0},X.flush=function(){return $===void 0?F:we(C())},X}}).call(this,r(3))},function(e,t,r){(function(a,n){var o="[object Arguments]",s="[object Map]",l="[object Object]",i="[object Set]",u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,d=/^\./,m=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,A=/\\(\\)?/g,y=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,p={};p["[object Float32Array]"]=p["[object Float64Array]"]=p["[object Int8Array]"]=p["[object Int16Array]"]=p["[object Int32Array]"]=p["[object Uint8Array]"]=p["[object Uint8ClampedArray]"]=p["[object Uint16Array]"]=p["[object Uint32Array]"]=!0,p[o]=p["[object Array]"]=p["[object ArrayBuffer]"]=p["[object Boolean]"]=p["[object DataView]"]=p["[object Date]"]=p["[object Error]"]=p["[object Function]"]=p[s]=p["[object Number]"]=p[l]=p["[object RegExp]"]=p[i]=p["[object String]"]=p["[object WeakMap]"]=!1;var I=typeof a=="object"&&a&&a.Object===Object&&a,S=typeof self=="object"&&self&&self.Object===Object&&self,R=I||S||Function("return this")(),E=t&&!t.nodeType&&t,h=E&&typeof n=="object"&&n&&!n.nodeType&&n,P=h&&h.exports===E&&I.process,O=function(){try{return P&&P.binding("util")}catch{}}(),F=O&&O.isTypedArray;function $(f,w,M,k){var Q=-1,ie=f?f.length:0;for(k&&ie&&(M=f[++Q]);++Q<ie;)M=w(M,f[Q],Q,f);return M}function J(f,w){for(var M=-1,k=f?f.length:0;++M<k;)if(w(f[M],M,f))return!0;return!1}function fe(f,w,M,k,Q){return Q(f,function(ie,ve,Le){M=k?(k=!1,ie):w(M,ie,ve,Le)}),M}function Z(f){var w=!1;if(f!=null&&typeof f.toString!="function")try{w=!!(f+"")}catch{}return w}function H(f){var w=-1,M=Array(f.size);return f.forEach(function(k,Q){M[++w]=[Q,k]}),M}function N(f){var w=-1,M=Array(f.size);return f.forEach(function(k){M[++w]=k}),M}var j,W,K,ae=Array.prototype,we=Function.prototype,X=Object.prototype,V=R["__core-js_shared__"],Y=(j=/[^.]+$/.exec(V&&V.keys&&V.keys.IE_PROTO||""))?"Symbol(src)_1."+j:"",ne=we.toString,L=X.hasOwnProperty,g=X.toString,de=RegExp("^"+ne.call(L).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ce=R.Symbol,se=R.Uint8Array,ye=X.propertyIsEnumerable,Se=ae.splice,Ne=(W=Object.keys,K=Object,function(f){return W(K(f))}),_=yt(R,"DataView"),Be=yt(R,"Map"),Ee=yt(R,"Promise"),G=yt(R,"Set"),B=yt(R,"WeakMap"),z=yt(Object,"create"),q=Ct(_),re=Ct(Be),me=Ct(Ee),he=Ct(G),Ge=Ct(B),ee=ce?ce.prototype:void 0,le=ee?ee.valueOf:void 0,Ce=ee?ee.toString:void 0;function te(f){var w=-1,M=f?f.length:0;for(this.clear();++w<M;){var k=f[w];this.set(k[0],k[1])}}function oe(f){var w=-1,M=f?f.length:0;for(this.clear();++w<M;){var k=f[w];this.set(k[0],k[1])}}function ke(f){var w=-1,M=f?f.length:0;for(this.clear();++w<M;){var k=f[w];this.set(k[0],k[1])}}function nt(f){var w=-1,M=f?f.length:0;for(this.__data__=new ke;++w<M;)this.add(f[w])}function Je(f){this.__data__=new oe(f)}function at(f,w){var M=v(f)||Pn(f)?function(ve,Le){for(var Xe=-1,We=Array(ve);++Xe<ve;)We[Xe]=Le(Xe);return We}(f.length,String):[],k=M.length,Q=!!k;for(var ie in f)!L.call(f,ie)||Q&&(ie=="length"||sn(ie,k))||M.push(ie);return M}function lt(f,w){for(var M=f.length;M--;)if(Nn(f[M][0],w))return M;return-1}te.prototype.clear=function(){this.__data__=z?z(null):{}},te.prototype.delete=function(f){return this.has(f)&&delete this.__data__[f]},te.prototype.get=function(f){var w=this.__data__;if(z){var M=w[f];return M==="__lodash_hash_undefined__"?void 0:M}return L.call(w,f)?w[f]:void 0},te.prototype.has=function(f){var w=this.__data__;return z?w[f]!==void 0:L.call(w,f)},te.prototype.set=function(f,w){return this.__data__[f]=z&&w===void 0?"__lodash_hash_undefined__":w,this},oe.prototype.clear=function(){this.__data__=[]},oe.prototype.delete=function(f){var w=this.__data__,M=lt(w,f);return!(M<0)&&(M==w.length-1?w.pop():Se.call(w,M,1),!0)},oe.prototype.get=function(f){var w=this.__data__,M=lt(w,f);return M<0?void 0:w[M][1]},oe.prototype.has=function(f){return lt(this.__data__,f)>-1},oe.prototype.set=function(f,w){var M=this.__data__,k=lt(M,f);return k<0?M.push([f,w]):M[k][1]=w,this},ke.prototype.clear=function(){this.__data__={hash:new te,map:new(Be||oe),string:new te}},ke.prototype.delete=function(f){return Yt(this,f).delete(f)},ke.prototype.get=function(f){return Yt(this,f).get(f)},ke.prototype.has=function(f){return Yt(this,f).has(f)},ke.prototype.set=function(f,w){return Yt(this,f).set(f,w),this},nt.prototype.add=nt.prototype.push=function(f){return this.__data__.set(f,"__lodash_hash_undefined__"),this},nt.prototype.has=function(f){return this.__data__.has(f)},Je.prototype.clear=function(){this.__data__=new oe},Je.prototype.delete=function(f){return this.__data__.delete(f)},Je.prototype.get=function(f){return this.__data__.get(f)},Je.prototype.has=function(f){return this.__data__.has(f)},Je.prototype.set=function(f,w){var M=this.__data__;if(M instanceof oe){var k=M.__data__;if(!Be||k.length<199)return k.push([f,w]),this;M=this.__data__=new ke(k)}return M.set(f,w),this};var vt,ze=(vt=function(f,w){return f&&Rt(f,w,Ue)},function(f,w){if(f==null)return f;if(!D(f))return vt(f,w);for(var M=f.length,k=-1,Q=Object(f);++k<M&&w(Q[k],k,Q)!==!1;);return f}),Rt=function(f){return function(w,M,k){for(var Q=-1,ie=Object(w),ve=k(w),Le=ve.length;Le--;){var Xe=ve[++Q];if(M(ie[Xe],Xe,ie)===!1)break}return w}}();function Wt(f,w){for(var M=0,k=(w=kt(w,f)?[w]:zt(w)).length;f!=null&&M<k;)f=f[Lt(w[M++])];return M&&M==k?f:void 0}function rn(f,w){return f!=null&&w in Object(f)}function ht(f,w,M,k,Q){return f===w||(f==null||w==null||!Re(f)&&!Pe(w)?f!=f&&w!=w:function(ie,ve,Le,Xe,We,Te){var ut=v(ie),qe=v(ve),Qe="[object Array]",Ke="[object Array]";ut||(Qe=(Qe=pt(ie))==o?l:Qe),qe||(Ke=(Ke=pt(ve))==o?l:Ke);var dt=Qe==l&&!Z(ie),Jt=Ke==l&&!Z(ve),Pt=Qe==Ke;if(Pt&&!dt)return Te||(Te=new Je),ut||Ae(ie)?on(ie,ve,Le,Xe,We,Te):function(_e,De,vr,_t,Tn,it,It){switch(vr){case"[object DataView]":if(_e.byteLength!=De.byteLength||_e.byteOffset!=De.byteOffset)return!1;_e=_e.buffer,De=De.buffer;case"[object ArrayBuffer]":return!(_e.byteLength!=De.byteLength||!_t(new se(_e),new se(De)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Nn(+_e,+De);case"[object Error]":return _e.name==De.name&&_e.message==De.message;case"[object RegExp]":case"[object String]":return _e==De+"";case s:var Tt=H;case i:var un=2&it;if(Tt||(Tt=N),_e.size!=De.size&&!un)return!1;var On=It.get(_e);if(On)return On==De;it|=1,It.set(_e,De);var Ut=on(Tt(_e),Tt(De),_t,Tn,it,It);return It.delete(_e),Ut;case"[object Symbol]":if(le)return le.call(_e)==le.call(De)}return!1}(ie,ve,Qe,Le,Xe,We,Te);if(!(2&We)){var ma=dt&&L.call(ie,"__wrapped__"),va=Jt&&L.call(ve,"__wrapped__");if(ma||va){var Vs=ma?ie.value():ie,js=va?ve.value():ve;return Te||(Te=new Je),Le(Vs,js,Xe,We,Te)}}return Pt?(Te||(Te=new Je),function(_e,De,vr,_t,Tn,it){var It=2&Tn,Tt=Ue(_e),un=Tt.length,On=Ue(De).length;if(un!=On&&!It)return!1;for(var Ut=un;Ut--;){var Ot=Tt[Ut];if(!(It?Ot in De:L.call(De,Ot)))return!1}var ha=it.get(_e);if(ha&&it.get(De))return ha==De;var Fn=!0;it.set(_e,De),it.set(De,_e);for(var hr=It;++Ut<un;){Ot=Tt[Ut];var Mn=_e[Ot],Bn=De[Ot];if(_t)var ya=It?_t(Bn,Mn,Ot,De,_e,it):_t(Mn,Bn,Ot,_e,De,it);if(!(ya===void 0?Mn===Bn||vr(Mn,Bn,_t,Tn,it):ya)){Fn=!1;break}hr||(hr=Ot=="constructor")}if(Fn&&!hr){var Vn=_e.constructor,jn=De.constructor;Vn==jn||!("constructor"in _e)||!("constructor"in De)||typeof Vn=="function"&&Vn instanceof Vn&&typeof jn=="function"&&jn instanceof jn||(Fn=!1)}return it.delete(_e),it.delete(De),Fn}(ie,ve,Le,Xe,We,Te)):!1}(f,w,ht,M,k,Q))}function Gt(f){return!(!Re(f)||function(w){return!!Y&&Y in w}(f))&&(U(f)||Z(f)?de:y).test(Ct(f))}function Nt(f){return typeof f=="function"?f:f==null?He:typeof f=="object"?v(f)?function(k,Q){return kt(k)&&wn(Q)?Rn(Lt(k),Q):function(ie){var ve=function(Le,Xe,We){var Te=Le==null?void 0:Wt(Le,Xe);return Te===void 0?We:Te}(ie,k);return ve===void 0&&ve===Q?function(Le,Xe){return Le!=null&&function(We,Te,ut){Te=kt(Te,We)?[Te]:zt(Te);for(var qe,Qe=-1,Ke=Te.length;++Qe<Ke;){var dt=Lt(Te[Qe]);if(!(qe=We!=null&&ut(We,dt)))break;We=We[dt]}return qe||!!(Ke=We?We.length:0)&&ge(Ke)&&sn(dt,Ke)&&(v(We)||Pn(We))}(Le,Xe,rn)}(ie,k):ht(Q,ve,void 0,3)}}(f[0],f[1]):function(k){var Q=function(ie){for(var ve=Ue(ie),Le=ve.length;Le--;){var Xe=ve[Le],We=ie[Xe];ve[Le]=[Xe,We,wn(We)]}return ve}(k);return Q.length==1&&Q[0][2]?Rn(Q[0][0],Q[0][1]):function(ie){return ie===k||function(ve,Le,Xe,We){var Te=Xe.length,ut=Te;if(ve==null)return!ut;for(ve=Object(ve);Te--;){var qe=Xe[Te];if(qe[2]?qe[1]!==ve[qe[0]]:!(qe[0]in ve))return!1}for(;++Te<ut;){var Qe=(qe=Xe[Te])[0],Ke=ve[Qe],dt=qe[1];if(qe[2]){if(Ke===void 0&&!(Qe in ve))return!1}else{var Jt=new Je,Pt;if(!(Pt===void 0?ht(dt,Ke,We,3,Jt):Pt))return!1}}return!0}(ie,k,Q)}}(f):kt(w=f)?(M=Lt(w),function(k){return k==null?void 0:k[M]}):function(k){return function(Q){return Wt(Q,k)}}(w);var w,M}function an(f){if(M=(w=f)&&w.constructor,k=typeof M=="function"&&M.prototype||X,w!==k)return Ne(f);var w,M,k,Q=[];for(var ie in Object(f))L.call(f,ie)&&ie!="constructor"&&Q.push(ie);return Q}function zt(f){return v(f)?f:Gn(f)}function on(f,w,M,k,Q,ie){var ve=2&Q,Le=f.length,Xe=w.length;if(Le!=Xe&&!(ve&&Xe>Le))return!1;var We=ie.get(f);if(We&&ie.get(w))return We==w;var Te=-1,ut=!0,qe=1&Q?new nt:void 0;for(ie.set(f,w),ie.set(w,f);++Te<Le;){var Qe=f[Te],Ke=w[Te];if(k)var dt=ve?k(Ke,Qe,Te,w,f,ie):k(Qe,Ke,Te,f,w,ie);if(dt!==void 0){if(dt)continue;ut=!1;break}if(qe){if(!J(w,function(Jt,Pt){if(!qe.has(Pt)&&(Qe===Jt||M(Qe,Jt,k,Q,ie)))return qe.add(Pt)})){ut=!1;break}}else if(Qe!==Ke&&!M(Qe,Ke,k,Q,ie)){ut=!1;break}}return ie.delete(f),ie.delete(w),ut}function Yt(f,w){var M,k,Q=f.__data__;return((k=typeof(M=w))=="string"||k=="number"||k=="symbol"||k=="boolean"?M!=="__proto__":M===null)?Q[typeof w=="string"?"string":"hash"]:Q.map}function yt(f,w){var M=function(k,Q){return k==null?void 0:k[Q]}(f,w);return Gt(M)?M:void 0}var pt=function(f){return g.call(f)};function sn(f,w){return!!(w=w??9007199254740991)&&(typeof f=="number"||C.test(f))&&f>-1&&f%1==0&&f<w}function kt(f,w){if(v(f))return!1;var M=typeof f;return!(M!="number"&&M!="symbol"&&M!="boolean"&&f!=null&&!xe(f))||c.test(f)||!u.test(f)||w!=null&&f in Object(w)}function wn(f){return f==f&&!Re(f)}function Rn(f,w){return function(M){return M!=null&&M[f]===w&&(w!==void 0||f in Object(M))}}(_&&pt(new _(new ArrayBuffer(1)))!="[object DataView]"||Be&&pt(new Be)!=s||Ee&&pt(Ee.resolve())!="[object Promise]"||G&&pt(new G)!=i||B&&pt(new B)!="[object WeakMap]")&&(pt=function(f){var w=g.call(f),M=w==l?f.constructor:void 0,k=M?Ct(M):void 0;if(k)switch(k){case q:return"[object DataView]";case re:return s;case me:return"[object Promise]";case he:return i;case Ge:return"[object WeakMap]"}return w});var Gn=ln(function(f){var w;f=(w=f)==null?"":function(k){if(typeof k=="string")return k;if(xe(k))return Ce?Ce.call(k):"";var Q=k+"";return Q=="0"&&1/k==-1/0?"-0":Q}(w);var M=[];return d.test(f)&&M.push(""),f.replace(m,function(k,Q,ie,ve){M.push(ie?ve.replace(A,"$1"):Q||k)}),M});function Lt(f){if(typeof f=="string"||xe(f))return f;var w=f+"";return w=="0"&&1/f==-1/0?"-0":w}function Ct(f){if(f!=null){try{return ne.call(f)}catch{}try{return f+""}catch{}}return""}function ln(f,w){if(typeof f!="function"||w&&typeof w!="function")throw new TypeError("Expected a function");var M=function(){var k=arguments,Q=w?w.apply(this,k):k[0],ie=M.cache;if(ie.has(Q))return ie.get(Q);var ve=f.apply(this,k);return M.cache=ie.set(Q,ve),ve};return M.cache=new(ln.Cache||ke),M}function Nn(f,w){return f===w||f!=f&&w!=w}function Pn(f){return function(w){return Pe(w)&&D(w)}(f)&&L.call(f,"callee")&&(!ye.call(f,"callee")||g.call(f)==o)}ln.Cache=ke;var v=Array.isArray;function D(f){return f!=null&&ge(f.length)&&!U(f)}function U(f){var w=Re(f)?g.call(f):"";return w=="[object Function]"||w=="[object GeneratorFunction]"}function ge(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=9007199254740991}function Re(f){var w=typeof f;return!!f&&(w=="object"||w=="function")}function Pe(f){return!!f&&typeof f=="object"}function xe(f){return typeof f=="symbol"||Pe(f)&&g.call(f)=="[object Symbol]"}var Ae=F?function(f){return function(w){return f(w)}}(F):function(f){return Pe(f)&&ge(f.length)&&!!p[g.call(f)]};function Ue(f){return D(f)?at(f):an(f)}function He(f){return f}n.exports=function(f,w,M){var k=v(f)?$:fe,Q=arguments.length<3;return k(f,Nt(w),M,Q,ze)}}).call(this,r(3),r(7)(e))},function(e,t){e.exports=function(r){return r.webpackPolyfill||(r.deprecate=function(){},r.paths=[],r.children||(r.children=[]),Object.defineProperty(r,"loaded",{enumerable:!0,get:function(){return r.l}}),Object.defineProperty(r,"id",{enumerable:!0,get:function(){return r.i}}),r.webpackPolyfill=1),r}},function(e,t){String.prototype.padEnd||(String.prototype.padEnd=function(r,a){return r>>=0,a=String(a!==void 0?a:" "),this.length>r?String(this):((r-=this.length)>a.length&&(a+=a.repeat(r/a.length)),String(this)+a.slice(0,r))})},function(e,t,r){function a(X,V,Y){return V in X?Object.defineProperty(X,V,{value:Y,enumerable:!0,configurable:!0,writable:!0}):X[V]=Y,X}function n(X){if(Symbol.iterator in Object(X)||Object.prototype.toString.call(X)==="[object Arguments]")return Array.from(X)}function o(X){return function(V){if(Array.isArray(V)){for(var Y=0,ne=new Array(V.length);Y<V.length;Y++)ne[Y]=V[Y];return ne}}(X)||n(X)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function s(X){if(Array.isArray(X))return X}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function i(X,V){if(!(X instanceof V))throw new TypeError("Cannot call a class as a function")}function u(X,V){for(var Y=0;Y<V.length;Y++){var ne=V[Y];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(X,ne.key,ne)}}function c(X){return(c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V})(X)}function d(X){return(d=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(V){return c(V)}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":c(V)})(X)}function m(X){if(X===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return X}function A(X){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(V){return V.__proto__||Object.getPrototypeOf(V)})(X)}function y(X,V){return(y=Object.setPrototypeOf||function(Y,ne){return Y.__proto__=ne,Y})(X,V)}r.r(t);var C=r(0),p=r.n(C),I=r(5),S=r.n(I),R=r(4),E=r.n(R),h=r(6),P=r.n(h),O=r(2),F=r.n(O),$=r(1),J=r.n($);r(8);function fe(X,V){return s(X)||function(Y,ne){var L=[],g=!0,de=!1,ce=void 0;try{for(var se,ye=Y[Symbol.iterator]();!(g=(se=ye.next()).done)&&(L.push(se.value),!ne||L.length!==ne);g=!0);}catch(Se){de=!0,ce=Se}finally{try{g||ye.return==null||ye.return()}finally{if(de)throw ce}}return L}(X,V)||l()}var Z=[["Afghanistan",["asia"],"af","93"],["Albania",["europe"],"al","355"],["Algeria",["africa","north-africa"],"dz","213"],["Andorra",["europe"],"ad","376"],["Angola",["africa"],"ao","244"],["Antigua and Barbuda",["america","carribean"],"ag","1268"],["Argentina",["america","south-america"],"ar","54","(..) ........",0,["11","221","223","261","264","2652","280","2905","291","2920","2966","299","341","342","343","351","376","379","381","3833","385","387","388"]],["Armenia",["asia","ex-ussr"],"am","374",".. ......"],["Aruba",["america","carribean"],"aw","297"],["Australia",["oceania"],"au","61","(..) .... ....",0,["2","3","4","7","8","02","03","04","07","08"]],["Austria",["europe","eu-union"],"at","43"],["Azerbaijan",["asia","ex-ussr"],"az","994","(..) ... .. .."],["Bahamas",["america","carribean"],"bs","1242"],["Bahrain",["middle-east"],"bh","973"],["Bangladesh",["asia"],"bd","880"],["Barbados",["america","carribean"],"bb","1246"],["Belarus",["europe","ex-ussr"],"by","375","(..) ... .. .."],["Belgium",["europe","eu-union"],"be","32","... .. .. .."],["Belize",["america","central-america"],"bz","501"],["Benin",["africa"],"bj","229"],["Bhutan",["asia"],"bt","975"],["Bolivia",["america","south-america"],"bo","591"],["Bosnia and Herzegovina",["europe","ex-yugos"],"ba","387"],["Botswana",["africa"],"bw","267"],["Brazil",["america","south-america"],"br","55","(..) ........."],["British Indian Ocean Territory",["asia"],"io","246"],["Brunei",["asia"],"bn","673"],["Bulgaria",["europe","eu-union"],"bg","359"],["Burkina Faso",["africa"],"bf","226"],["Burundi",["africa"],"bi","257"],["Cambodia",["asia"],"kh","855"],["Cameroon",["africa"],"cm","237"],["Canada",["america","north-america"],"ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde",["africa"],"cv","238"],["Caribbean Netherlands",["america","carribean"],"bq","599","",1],["Central African Republic",["africa"],"cf","236"],["Chad",["africa"],"td","235"],["Chile",["america","south-america"],"cl","56"],["China",["asia"],"cn","86","..-........."],["Colombia",["america","south-america"],"co","57","... ... ...."],["Comoros",["africa"],"km","269"],["Congo",["africa"],"cd","243"],["Congo",["africa"],"cg","242"],["Costa Rica",["america","central-america"],"cr","506","....-...."],["Côte d’Ivoire",["africa"],"ci","225",".. .. .. .."],["Croatia",["europe","eu-union","ex-yugos"],"hr","385"],["Cuba",["america","carribean"],"cu","53"],["Curaçao",["america","carribean"],"cw","599","",0],["Cyprus",["europe","eu-union"],"cy","357",".. ......"],["Czech Republic",["europe","eu-union"],"cz","420","... ... ..."],["Denmark",["europe","eu-union","baltic"],"dk","45",".. .. .. .."],["Djibouti",["africa"],"dj","253"],["Dominica",["america","carribean"],"dm","1767"],["Dominican Republic",["america","carribean"],"do","1","",2,["809","829","849"]],["Ecuador",["america","south-america"],"ec","593"],["Egypt",["africa","north-africa"],"eg","20"],["El Salvador",["america","central-america"],"sv","503","....-...."],["Equatorial Guinea",["africa"],"gq","240"],["Eritrea",["africa"],"er","291"],["Estonia",["europe","eu-union","ex-ussr","baltic"],"ee","372",".... ......"],["Ethiopia",["africa"],"et","251"],["Fiji",["oceania"],"fj","679"],["Finland",["europe","eu-union","baltic"],"fi","358",".. ... .. .."],["France",["europe","eu-union"],"fr","33",". .. .. .. .."],["French Guiana",["america","south-america"],"gf","594"],["French Polynesia",["oceania"],"pf","689"],["Gabon",["africa"],"ga","241"],["Gambia",["africa"],"gm","220"],["Georgia",["asia","ex-ussr"],"ge","995"],["Germany",["europe","eu-union","baltic"],"de","49",".... ........"],["Ghana",["africa"],"gh","233"],["Greece",["europe","eu-union"],"gr","30"],["Grenada",["america","carribean"],"gd","1473"],["Guadeloupe",["america","carribean"],"gp","590","",0],["Guam",["oceania"],"gu","1671"],["Guatemala",["america","central-america"],"gt","502","....-...."],["Guinea",["africa"],"gn","224"],["Guinea-Bissau",["africa"],"gw","245"],["Guyana",["america","south-america"],"gy","592"],["Haiti",["america","carribean"],"ht","509","....-...."],["Honduras",["america","central-america"],"hn","504"],["Hong Kong",["asia"],"hk","852",".... ...."],["Hungary",["europe","eu-union"],"hu","36"],["Iceland",["europe"],"is","354","... ...."],["India",["asia"],"in","91",".....-....."],["Indonesia",["asia"],"id","62"],["Iran",["middle-east"],"ir","98","... ... ...."],["Iraq",["middle-east"],"iq","964"],["Ireland",["europe","eu-union"],"ie","353",".. ......."],["Israel",["middle-east"],"il","972","... ... ...."],["Italy",["europe","eu-union"],"it","39","... .......",0],["Jamaica",["america","carribean"],"jm","1876"],["Japan",["asia"],"jp","81",".. .... ...."],["Jordan",["middle-east"],"jo","962"],["Kazakhstan",["asia","ex-ussr"],"kz","7","... ...-..-..",1,["310","311","312","313","315","318","321","324","325","326","327","336","7172","73622"]],["Kenya",["africa"],"ke","254"],["Kiribati",["oceania"],"ki","686"],["Kosovo",["europe","ex-yugos"],"xk","383"],["Kuwait",["middle-east"],"kw","965"],["Kyrgyzstan",["asia","ex-ussr"],"kg","996","... ... ..."],["Laos",["asia"],"la","856"],["Latvia",["europe","eu-union","ex-ussr","baltic"],"lv","371",".. ... ..."],["Lebanon",["middle-east"],"lb","961"],["Lesotho",["africa"],"ls","266"],["Liberia",["africa"],"lr","231"],["Libya",["africa","north-africa"],"ly","218"],["Liechtenstein",["europe"],"li","423"],["Lithuania",["europe","eu-union","ex-ussr","baltic"],"lt","370"],["Luxembourg",["europe","eu-union"],"lu","352"],["Macau",["asia"],"mo","853"],["Macedonia",["europe","ex-yugos"],"mk","389"],["Madagascar",["africa"],"mg","261"],["Malawi",["africa"],"mw","265"],["Malaysia",["asia"],"my","60","..-....-...."],["Maldives",["asia"],"mv","960"],["Mali",["africa"],"ml","223"],["Malta",["europe","eu-union"],"mt","356"],["Marshall Islands",["oceania"],"mh","692"],["Martinique",["america","carribean"],"mq","596"],["Mauritania",["africa"],"mr","222"],["Mauritius",["africa"],"mu","230"],["Mexico",["america","central-america"],"mx","52","... ... ....",0,["55","81","33","656","664","998","774","229"]],["Micronesia",["oceania"],"fm","691"],["Moldova",["europe"],"md","373","(..) ..-..-.."],["Monaco",["europe"],"mc","377"],["Mongolia",["asia"],"mn","976"],["Montenegro",["europe","ex-yugos"],"me","382"],["Morocco",["africa","north-africa"],"ma","212"],["Mozambique",["africa"],"mz","258"],["Myanmar",["asia"],"mm","95"],["Namibia",["africa"],"na","264"],["Nauru",["africa"],"nr","674"],["Nepal",["asia"],"np","977"],["Netherlands",["europe","eu-union"],"nl","31",".. ........"],["New Caledonia",["oceania"],"nc","687"],["New Zealand",["oceania"],"nz","64","...-...-...."],["Nicaragua",["america","central-america"],"ni","505"],["Niger",["africa"],"ne","227"],["Nigeria",["africa"],"ng","234"],["North Korea",["asia"],"kp","850"],["Norway",["europe","baltic"],"no","47","... .. ..."],["Oman",["middle-east"],"om","968"],["Pakistan",["asia"],"pk","92","...-......."],["Palau",["oceania"],"pw","680"],["Palestine",["middle-east"],"ps","970"],["Panama",["america","central-america"],"pa","507"],["Papua New Guinea",["oceania"],"pg","675"],["Paraguay",["america","south-america"],"py","595"],["Peru",["america","south-america"],"pe","51"],["Philippines",["asia"],"ph","63",".... ......."],["Poland",["europe","eu-union","baltic"],"pl","48","...-...-..."],["Portugal",["europe","eu-union"],"pt","351"],["Puerto Rico",["america","carribean"],"pr","1","",3,["787","939"]],["Qatar",["middle-east"],"qa","974"],["Réunion",["africa"],"re","262"],["Romania",["europe","eu-union"],"ro","40"],["Russia",["europe","asia","ex-ussr","baltic"],"ru","7","(...) ...-..-..",0],["Rwanda",["africa"],"rw","250"],["Saint Kitts and Nevis",["america","carribean"],"kn","1869"],["Saint Lucia",["america","carribean"],"lc","1758"],["Saint Vincent and the Grenadines",["america","carribean"],"vc","1784"],["Samoa",["oceania"],"ws","685"],["San Marino",["europe"],"sm","378"],["São Tomé and Príncipe",["africa"],"st","239"],["Saudi Arabia",["middle-east"],"sa","966"],["Senegal",["africa"],"sn","221"],["Serbia",["europe","ex-yugos"],"rs","381"],["Seychelles",["africa"],"sc","248"],["Sierra Leone",["africa"],"sl","232"],["Singapore",["asia"],"sg","65","....-...."],["Slovakia",["europe","eu-union"],"sk","421"],["Slovenia",["europe","eu-union","ex-yugos"],"si","386"],["Solomon Islands",["oceania"],"sb","677"],["Somalia",["africa"],"so","252"],["South Africa",["africa"],"za","27"],["South Korea",["asia"],"kr","82","... .... ...."],["South Sudan",["africa","north-africa"],"ss","211"],["Spain",["europe","eu-union"],"es","34","... ... ..."],["Sri Lanka",["asia"],"lk","94"],["Sudan",["africa"],"sd","249"],["Suriname",["america","south-america"],"sr","597"],["Swaziland",["africa"],"sz","268"],["Sweden",["europe","eu-union","baltic"],"se","46","(...) ...-..."],["Switzerland",["europe"],"ch","41",".. ... .. .."],["Syria",["middle-east"],"sy","963"],["Taiwan",["asia"],"tw","886"],["Tajikistan",["asia","ex-ussr"],"tj","992"],["Tanzania",["africa"],"tz","255"],["Thailand",["asia"],"th","66"],["Timor-Leste",["asia"],"tl","670"],["Togo",["africa"],"tg","228"],["Tonga",["oceania"],"to","676"],["Trinidad and Tobago",["america","carribean"],"tt","1868"],["Tunisia",["africa","north-africa"],"tn","216"],["Turkey",["europe"],"tr","90","... ... .. .."],["Turkmenistan",["asia","ex-ussr"],"tm","993"],["Tuvalu",["asia"],"tv","688"],["Uganda",["africa"],"ug","256"],["Ukraine",["europe","ex-ussr"],"ua","380","(..) ... .. .."],["United Arab Emirates",["middle-east"],"ae","971"],["United Kingdom",["europe","eu-union"],"gb","44",".... ......"],["United States",["america","north-america"],"us","1","(...) ...-....",0,["907","205","251","256","334","479","501","870","480","520","602","623","928","209","213","310","323","408","415","510","530","559","562","619","626","650","661","707","714","760","805","818","831","858","909","916","925","949","951","303","719","970","203","860","202","302","239","305","321","352","386","407","561","727","772","813","850","863","904","941","954","229","404","478","706","770","912","808","319","515","563","641","712","208","217","309","312","618","630","708","773","815","847","219","260","317","574","765","812","316","620","785","913","270","502","606","859","225","318","337","504","985","413","508","617","781","978","301","410","207","231","248","269","313","517","586","616","734","810","906","989","218","320","507","612","651","763","952","314","417","573","636","660","816","228","601","662","406","252","336","704","828","910","919","701","308","402","603","201","609","732","856","908","973","505","575","702","775","212","315","516","518","585","607","631","716","718","845","914","216","330","419","440","513","614","740","937","405","580","918","503","541","215","412","570","610","717","724","814","401","803","843","864","605","423","615","731","865","901","931","210","214","254","281","325","361","409","432","512","713","806","817","830","903","915","936","940","956","972","979","435","801","276","434","540","703","757","804","802","206","253","360","425","509","262","414","608","715","920","304","307"]],["Uruguay",["america","south-america"],"uy","598"],["Uzbekistan",["asia","ex-ussr"],"uz","998",".. ... .. .."],["Vanuatu",["oceania"],"vu","678"],["Vatican City",["europe"],"va","39",".. .... ....",1],["Venezuela",["america","south-america"],"ve","58"],["Vietnam",["asia"],"vn","84"],["Yemen",["middle-east"],"ye","967"],["Zambia",["africa"],"zm","260"],["Zimbabwe",["africa"],"zw","263"]],H=[["American Samoa",["oceania"],"as","1684"],["Anguilla",["america","carribean"],"ai","1264"],["Bermuda",["america","north-america"],"bm","1441"],["British Virgin Islands",["america","carribean"],"vg","1284"],["Cayman Islands",["america","carribean"],"ky","1345"],["Cook Islands",["oceania"],"ck","682"],["Falkland Islands",["america","south-america"],"fk","500"],["Faroe Islands",["europe"],"fo","298"],["Gibraltar",["europe"],"gi","350"],["Greenland",["america"],"gl","299"],["Jersey",["europe","eu-union"],"je","44",".... ......"],["Montserrat",["america","carribean"],"ms","1664"],["Niue",["asia"],"nu","683"],["Norfolk Island",["oceania"],"nf","672"],["Northern Mariana Islands",["oceania"],"mp","1670"],["Saint Barthélemy",["america","carribean"],"bl","590","",1],["Saint Helena",["africa"],"sh","290"],["Saint Martin",["america","carribean"],"mf","590","",2],["Saint Pierre and Miquelon",["america","north-america"],"pm","508"],["Sint Maarten",["america","carribean"],"sx","1721"],["Tokelau",["oceania"],"tk","690"],["Turks and Caicos Islands",["america","carribean"],"tc","1649"],["U.S. Virgin Islands",["america","carribean"],"vi","1340"],["Wallis and Futuna",["oceania"],"wf","681"]];function N(X,V,Y,ne,L){return!Y||L?X+"".padEnd(V.length,".")+" "+ne:X+"".padEnd(V.length,".")+" "+Y}function j(X,V,Y,ne,L){var g,de,ce=[];return de=V===!0,[(g=[]).concat.apply(g,o(X.map(function(se){var ye={name:se[0],regions:se[1],iso2:se[2],countryCode:se[3],dialCode:se[3],format:N(Y,se[3],se[4],ne,L),priority:se[5]||0},Se=[];return se[6]&&se[6].map(function(Ne){var _=function(Be){for(var Ee=1;Ee<arguments.length;Ee++){var G=arguments[Ee]!=null?arguments[Ee]:{},B=Object.keys(G);typeof Object.getOwnPropertySymbols=="function"&&(B=B.concat(Object.getOwnPropertySymbols(G).filter(function(z){return Object.getOwnPropertyDescriptor(G,z).enumerable}))),B.forEach(function(z){a(Be,z,G[z])})}return Be}({},ye);_.dialCode=se[3]+Ne,_.isAreaCode=!0,_.areaCodeLength=Ne.length,Se.push(_)}),Se.length>0?(ye.mainCode=!0,de||V.constructor.name==="Array"&&V.includes(se[2])?(ye.hasAreaCodes=!0,[ye].concat(Se)):(ce=ce.concat(Se),[ye])):[ye]}))),ce]}function W(X,V,Y,ne){if(Y!==null){var L=Object.keys(Y),g=Object.values(Y);L.forEach(function(de,ce){if(ne)return X.push([de,g[ce]]);var se=X.findIndex(function(Se){return Se[0]===de});if(se===-1){var ye=[de];ye[V]=g[ce],X.push(ye)}else X[se][V]=g[ce]})}}function K(X,V){return V.length===0?X:X.map(function(Y){var ne=V.findIndex(function(g){return g[0]===Y[2]});if(ne===-1)return Y;var L=V[ne];return L[1]&&(Y[4]=L[1]),L[3]&&(Y[5]=L[3]),L[2]&&(Y[6]=L[2]),Y})}var ae=function X(V,Y,ne,L,g,de,ce,se,ye,Se,Ne,_,Be,Ee){i(this,X),this.filterRegions=function(ee,le){if(typeof ee=="string"){var Ce=ee;return le.filter(function(te){return te.regions.some(function(oe){return oe===Ce})})}return le.filter(function(te){return ee.map(function(oe){return te.regions.some(function(ke){return ke===oe})}).some(function(oe){return oe})})},this.sortTerritories=function(ee,le){var Ce=[].concat(o(ee),o(le));return Ce.sort(function(te,oe){return te.name<oe.name?-1:te.name>oe.name?1:0}),Ce},this.getFilteredCountryList=function(ee,le,Ce){return ee.length===0?le:Ce?ee.map(function(te){var oe=le.find(function(ke){return ke.iso2===te});if(oe)return oe}).filter(function(te){return te}):le.filter(function(te){return ee.some(function(oe){return oe===te.iso2})})},this.localizeCountries=function(ee,le,Ce){for(var te=0;te<ee.length;te++)le[ee[te].iso2]!==void 0?ee[te].localName=le[ee[te].iso2]:le[ee[te].name]!==void 0&&(ee[te].localName=le[ee[te].name]);return Ce||ee.sort(function(oe,ke){return oe.localName<ke.localName?-1:oe.localName>ke.localName?1:0}),ee},this.getCustomAreas=function(ee,le){for(var Ce=[],te=0;te<le.length;te++){var oe=JSON.parse(JSON.stringify(ee));oe.dialCode+=le[te],Ce.push(oe)}return Ce},this.excludeCountries=function(ee,le){return le.length===0?ee:ee.filter(function(Ce){return!le.includes(Ce.iso2)})};var G=function(ee,le,Ce){var te=[];return W(te,1,ee,!0),W(te,3,le),W(te,2,Ce),te}(se,ye,Se),B=K(JSON.parse(JSON.stringify(Z)),G),z=K(JSON.parse(JSON.stringify(H)),G),q=fe(j(B,V,_,Be,Ee),2),re=q[0],me=q[1];if(Y){var he=fe(j(z,V,_,Be,Ee),2),Ge=he[0];he[1],re=this.sortTerritories(Ge,re)}ne&&(re=this.filterRegions(ne,re)),this.onlyCountries=this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(L,re,ce.includes("onlyCountries")),de),Ne,ce.includes("onlyCountries")),this.preferredCountries=g.length===0?[]:this.localizeCountries(this.getFilteredCountryList(g,re,ce.includes("preferredCountries")),Ne,ce.includes("preferredCountries")),this.hiddenAreaCodes=this.excludeCountries(this.getFilteredCountryList(L,me),de)},we=function(X){function V(L){var g;i(this,V),(g=function(G,B){return!B||d(B)!=="object"&&typeof B!="function"?m(G):B}(this,A(V).call(this,L))).getProbableCandidate=E()(function(G){return G&&G.length!==0?g.state.onlyCountries.filter(function(B){return F()(B.name.toLowerCase(),G.toLowerCase())},m(m(g)))[0]:null}),g.guessSelectedCountry=E()(function(G,B,z,q){var re;if(g.props.enableAreaCodes===!1&&(q.some(function(Ge){if(F()(G,Ge.dialCode))return z.some(function(ee){if(Ge.iso2===ee.iso2&&ee.mainCode)return re=ee,!0}),!0}),re))return re;var me=z.find(function(Ge){return Ge.iso2==B});if(G.trim()==="")return me;var he=z.reduce(function(Ge,ee){return F()(G,ee.dialCode)&&(ee.dialCode.length>Ge.dialCode.length||ee.dialCode.length===Ge.dialCode.length&&ee.priority<Ge.priority)?ee:Ge},{dialCode:"",priority:10001},m(m(g)));return he.name?he:me}),g.updateCountry=function(G){var B,z=g.state.onlyCountries;(B=G.indexOf(0)>="0"&&G.indexOf(0)<="9"?z.find(function(q){return q.dialCode==+G}):z.find(function(q){return q.iso2==G}))&&B.dialCode&&g.setState({selectedCountry:B,formattedNumber:g.props.disableCountryCode?"":g.formatNumber(B.dialCode,B)})},g.scrollTo=function(G,B){if(G){var z=g.dropdownRef;if(z&&document.body){var q=z.offsetHeight,re=z.getBoundingClientRect().top+document.body.scrollTop,me=re+q,he=G,Ge=he.getBoundingClientRect(),ee=he.offsetHeight,le=Ge.top+document.body.scrollTop,Ce=le+ee,te=le-re+z.scrollTop,oe=q/2-ee/2;if(g.props.enableSearch?le<re+32:le<re)B&&(te-=oe),z.scrollTop=te;else if(Ce>me){B&&(te+=oe);var ke=q-ee;z.scrollTop=te-ke}}}},g.scrollToTop=function(){var G=g.dropdownRef;G&&document.body&&(G.scrollTop=0)},g.formatNumber=function(G,B){if(!B)return G;var z,q=B.format,re=g.props,me=re.disableCountryCode,he=re.enableAreaCodeStretch,Ge=re.enableLongNumbers,ee=re.autoFormat;if(me?((z=q.split(" ")).shift(),z=z.join(" ")):he&&B.isAreaCode?((z=q.split(" "))[1]=z[1].replace(/\.+/,"".padEnd(B.areaCodeLength,".")),z=z.join(" ")):z=q,!G||G.length===0)return me?"":g.props.prefix;if(G&&G.length<2||!z||!ee)return me?G:g.props.prefix+G;var le,Ce=P()(z,function(te,oe){if(te.remainingText.length===0)return te;if(oe!==".")return{formattedText:te.formattedText+oe,remainingText:te.remainingText};var ke,nt=s(ke=te.remainingText)||n(ke)||l(),Je=nt[0],at=nt.slice(1);return{formattedText:te.formattedText+Je,remainingText:at}},{formattedText:"",remainingText:G.split("")});return(le=Ge?Ce.formattedText+Ce.remainingText.join(""):Ce.formattedText).includes("(")&&!le.includes(")")&&(le+=")"),le},g.cursorToEnd=function(){var G=g.numberInputRef;if(document.activeElement===G){G.focus();var B=G.value.length;G.value.charAt(B-1)===")"&&(B-=1),G.setSelectionRange(B,B)}},g.getElement=function(G){return g["flag_no_".concat(G)]},g.getCountryData=function(){return g.state.selectedCountry?{name:g.state.selectedCountry.name||"",dialCode:g.state.selectedCountry.dialCode||"",countryCode:g.state.selectedCountry.iso2||"",format:g.state.selectedCountry.format||""}:{}},g.handleFlagDropdownClick=function(G){if(G.preventDefault(),g.state.showDropdown||!g.props.disabled){var B=g.state,z=B.preferredCountries,q=B.onlyCountries,re=B.selectedCountry,me=g.concatPreferredCountries(z,q).findIndex(function(he){return he.dialCode===re.dialCode&&he.iso2===re.iso2});g.setState({showDropdown:!g.state.showDropdown,highlightCountryIndex:me},function(){g.state.showDropdown&&g.scrollTo(g.getElement(g.state.highlightCountryIndex))})}},g.handleInput=function(G){var B=G.target.value,z=g.props,q=z.prefix,re=z.onChange,me=g.props.disableCountryCode?"":q,he=g.state.selectedCountry,Ge=g.state.freezeSelection;if(!g.props.countryCodeEditable){var ee=q+(he.hasAreaCodes?g.state.onlyCountries.find(function(ze){return ze.iso2===he.iso2&&ze.mainCode}).dialCode:he.dialCode);if(B.slice(0,ee.length)!==ee)return}if(B===q)return re&&re("",g.getCountryData(),G,""),g.setState({formattedNumber:""});if(!(B.replace(/\D/g,"").length>15&&(g.props.enableLongNumbers===!1||typeof g.props.enableLongNumbers=="number"&&B.replace(/\D/g,"").length>g.props.enableLongNumbers))&&B!==g.state.formattedNumber){G.preventDefault?G.preventDefault():G.returnValue=!1;var le=g.props.country,Ce=g.state,te=Ce.onlyCountries,oe=Ce.selectedCountry,ke=Ce.hiddenAreaCodes;if(re&&G.persist(),B.length>0){var nt=B.replace(/\D/g,"");(!g.state.freezeSelection||oe&&oe.dialCode.length>nt.length)&&(he=g.props.disableCountryGuess?oe:g.guessSelectedCountry(nt.substring(0,6),le,te,ke)||oe,Ge=!1),me=g.formatNumber(nt,he),he=he.dialCode?he:oe}var Je=G.target.selectionStart,at=G.target.selectionStart,lt=g.state.formattedNumber,vt=me.length-lt.length;g.setState({formattedNumber:me,freezeSelection:Ge,selectedCountry:he},function(){vt>0&&(at-=vt),me.charAt(me.length-1)==")"?g.numberInputRef.setSelectionRange(me.length-1,me.length-1):at>0&&lt.length>=me.length?g.numberInputRef.setSelectionRange(at,at):Je<lt.length&&g.numberInputRef.setSelectionRange(Je,Je),re&&re(me.replace(/[^0-9]+/g,""),g.getCountryData(),G,me)})}},g.handleInputClick=function(G){g.setState({showDropdown:!1}),g.props.onClick&&g.props.onClick(G,g.getCountryData())},g.handleDoubleClick=function(G){var B=G.target.value.length;G.target.setSelectionRange(0,B)},g.handleFlagItemClick=function(G,B){var z=g.state.selectedCountry,q=g.state.onlyCountries.find(function(Ge){return Ge==G});if(q){var re=g.state.formattedNumber.replace(" ","").replace("(","").replace(")","").replace("-",""),me=re.length>1?re.replace(z.dialCode,q.dialCode):q.dialCode,he=g.formatNumber(me.replace(/\D/g,""),q);g.setState({showDropdown:!1,selectedCountry:q,freezeSelection:!0,formattedNumber:he,searchValue:""},function(){g.cursorToEnd(),g.props.onChange&&g.props.onChange(he.replace(/[^0-9]+/g,""),g.getCountryData(),B,he)})}},g.handleInputFocus=function(G){g.numberInputRef&&g.numberInputRef.value===g.props.prefix&&g.state.selectedCountry&&!g.props.disableCountryCode&&g.setState({formattedNumber:g.props.prefix+g.state.selectedCountry.dialCode},function(){g.props.jumpCursorToEnd&&setTimeout(g.cursorToEnd,0)}),g.setState({placeholder:""}),g.props.onFocus&&g.props.onFocus(G,g.getCountryData()),g.props.jumpCursorToEnd&&setTimeout(g.cursorToEnd,0)},g.handleInputBlur=function(G){G.target.value||g.setState({placeholder:g.props.placeholder}),g.props.onBlur&&g.props.onBlur(G,g.getCountryData())},g.handleInputCopy=function(G){if(g.props.copyNumbersOnly){var B=window.getSelection().toString().replace(/[^0-9]+/g,"");G.clipboardData.setData("text/plain",B),G.preventDefault()}},g.getHighlightCountryIndex=function(G){var B=g.state.highlightCountryIndex+G;return B<0||B>=g.state.onlyCountries.length+g.state.preferredCountries.length?B-G:g.props.enableSearch&&B>g.getSearchFilteredCountries().length?0:B},g.searchCountry=function(){var G=g.getProbableCandidate(g.state.queryString)||g.state.onlyCountries[0],B=g.state.onlyCountries.findIndex(function(z){return z==G})+g.state.preferredCountries.length;g.scrollTo(g.getElement(B),!0),g.setState({queryString:"",highlightCountryIndex:B})},g.handleKeydown=function(G){var B=g.props.keys,z=G.target.className;if(z.includes("selected-flag")&&G.which===B.ENTER&&!g.state.showDropdown)return g.handleFlagDropdownClick(G);if(z.includes("form-control")&&(G.which===B.ENTER||G.which===B.ESC))return G.target.blur();if(g.state.showDropdown&&!g.props.disabled&&(!z.includes("search-box")||G.which===B.UP||G.which===B.DOWN||G.which===B.ENTER||G.which===B.ESC&&G.target.value==="")){G.preventDefault?G.preventDefault():G.returnValue=!1;var q=function(re){g.setState({highlightCountryIndex:g.getHighlightCountryIndex(re)},function(){g.scrollTo(g.getElement(g.state.highlightCountryIndex),!0)})};switch(G.which){case B.DOWN:q(1);break;case B.UP:q(-1);break;case B.ENTER:g.props.enableSearch?g.handleFlagItemClick(g.getSearchFilteredCountries()[g.state.highlightCountryIndex]||g.getSearchFilteredCountries()[0],G):g.handleFlagItemClick([].concat(o(g.state.preferredCountries),o(g.state.onlyCountries))[g.state.highlightCountryIndex],G);break;case B.ESC:case B.TAB:g.setState({showDropdown:!1},g.cursorToEnd);break;default:(G.which>=B.A&&G.which<=B.Z||G.which===B.SPACE)&&g.setState({queryString:g.state.queryString+String.fromCharCode(G.which)},g.state.debouncedQueryStingSearcher)}}},g.handleInputKeyDown=function(G){var B=g.props,z=B.keys,q=B.onEnterKeyPress,re=B.onKeyDown;G.which===z.ENTER&&q&&q(G),re&&re(G)},g.handleClickOutside=function(G){g.dropdownRef&&!g.dropdownContainerRef.contains(G.target)&&g.state.showDropdown&&g.setState({showDropdown:!1})},g.handleSearchChange=function(G){var B=G.currentTarget.value,z=g.state,q=z.preferredCountries,re=z.selectedCountry,me=0;if(B===""&&re){var he=g.state.onlyCountries;me=g.concatPreferredCountries(q,he).findIndex(function(Ge){return Ge==re}),setTimeout(function(){return g.scrollTo(g.getElement(me))},100)}g.setState({searchValue:B,highlightCountryIndex:me})},g.concatPreferredCountries=function(G,B){return G.length>0?o(new Set(G.concat(B))):B},g.getDropdownCountryName=function(G){return G.localName||G.name},g.getSearchFilteredCountries=function(){var G=g.state,B=G.preferredCountries,z=G.onlyCountries,q=G.searchValue,re=g.props.enableSearch,me=g.concatPreferredCountries(B,z),he=q.trim().toLowerCase().replace("+","");if(re&&he){if(/^\d+$/.test(he))return me.filter(function(le){var Ce=le.dialCode;return["".concat(Ce)].some(function(te){return te.toLowerCase().includes(he)})});var Ge=me.filter(function(le){var Ce=le.iso2;return["".concat(Ce)].some(function(te){return te.toLowerCase().includes(he)})}),ee=me.filter(function(le){var Ce=le.name,te=le.localName;return le.iso2,["".concat(Ce),"".concat(te||"")].some(function(oe){return oe.toLowerCase().includes(he)})});return g.scrollToTop(),o(new Set([].concat(Ge,ee)))}return me},g.getCountryDropdownList=function(){var G=g.state,B=G.preferredCountries,z=G.highlightCountryIndex,q=G.showDropdown,re=G.searchValue,me=g.props,he=me.disableDropdown,Ge=me.prefix,ee=g.props,le=ee.enableSearch,Ce=ee.searchNotFound,te=ee.disableSearchIcon,oe=ee.searchClass,ke=ee.searchStyle,nt=ee.searchPlaceholder,Je=ee.autocompleteSearch,at=g.getSearchFilteredCountries().map(function(ze,Rt){var Wt=z===Rt,rn=J()({country:!0,preferred:ze.iso2==="us"||ze.iso2==="gb",active:ze.iso2==="us",highlight:Wt}),ht="flag ".concat(ze.iso2);return p.a.createElement("li",Object.assign({ref:function(Gt){return g["flag_no_".concat(Rt)]=Gt},key:"flag_no_".concat(Rt),"data-flag-key":"flag_no_".concat(Rt),className:rn,"data-dial-code":"1",tabIndex:he?"-1":"0","data-country-code":ze.iso2,onClick:function(Gt){return g.handleFlagItemClick(ze,Gt)},role:"option"},Wt?{"aria-selected":!0}:{}),p.a.createElement("div",{className:ht}),p.a.createElement("span",{className:"country-name"},g.getDropdownCountryName(ze)),p.a.createElement("span",{className:"dial-code"},ze.format?g.formatNumber(ze.dialCode,ze):Ge+ze.dialCode))}),lt=p.a.createElement("li",{key:"dashes",className:"divider"});B.length>0&&(!le||le&&!re.trim())&&at.splice(B.length,0,lt);var vt=J()(a({"country-list":!0,hide:!q},g.props.dropdownClass,!0));return p.a.createElement("ul",{ref:function(ze){return!le&&ze&&ze.focus(),g.dropdownRef=ze},className:vt,style:g.props.dropdownStyle,role:"listbox",tabIndex:"0"},le&&p.a.createElement("li",{className:J()(a({search:!0},oe,oe))},!te&&p.a.createElement("span",{className:J()(a({"search-emoji":!0},"".concat(oe,"-emoji"),oe)),role:"img","aria-label":"Magnifying glass"},"🔎"),p.a.createElement("input",{className:J()(a({"search-box":!0},"".concat(oe,"-box"),oe)),style:ke,type:"search",placeholder:nt,autoFocus:!0,autoComplete:Je?"on":"off",value:re,onChange:g.handleSearchChange})),at.length>0?at:p.a.createElement("li",{className:"no-entries-message"},p.a.createElement("span",null,Ce)))};var de,ce=new ae(L.enableAreaCodes,L.enableTerritories,L.regions,L.onlyCountries,L.preferredCountries,L.excludeCountries,L.preserveOrder,L.masks,L.priority,L.areaCodes,L.localization,L.prefix,L.defaultMask,L.alwaysDefaultMask),se=ce.onlyCountries,ye=ce.preferredCountries,Se=ce.hiddenAreaCodes,Ne=L.value?L.value.replace(/\D/g,""):"";de=L.disableInitialCountryGuess?0:Ne.length>1?g.guessSelectedCountry(Ne.substring(0,6),L.country,se,Se)||0:L.country&&se.find(function(G){return G.iso2==L.country})||0;var _,Be=Ne.length<2&&de&&!F()(Ne,de.dialCode)?de.dialCode:"";_=Ne===""&&de===0?"":g.formatNumber((L.disableCountryCode?"":Be)+Ne,de.name?de:void 0);var Ee=se.findIndex(function(G){return G==de});return g.state={showDropdown:L.showDropdown,formattedNumber:_,onlyCountries:se,preferredCountries:ye,hiddenAreaCodes:Se,selectedCountry:de,highlightCountryIndex:Ee,queryString:"",freezeSelection:!1,debouncedQueryStingSearcher:S()(g.searchCountry,250),searchValue:""},g}var Y,ne;return function(L,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(g&&g.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),g&&y(L,g)}(V,X),Y=V,(ne=[{key:"componentDidMount",value:function(){document.addEventListener&&this.props.enableClickOutside&&document.addEventListener("mousedown",this.handleClickOutside),this.props.onMount&&this.props.onMount(this.state.formattedNumber.replace(/[^0-9]+/g,""),this.getCountryData(),this.state.formattedNumber)}},{key:"componentWillUnmount",value:function(){document.removeEventListener&&this.props.enableClickOutside&&document.removeEventListener("mousedown",this.handleClickOutside)}},{key:"componentDidUpdate",value:function(L,g,de){L.country!==this.props.country?this.updateCountry(this.props.country):L.value!==this.props.value&&this.updateFormattedNumber(this.props.value)}},{key:"updateFormattedNumber",value:function(L){if(L===null)return this.setState({selectedCountry:0,formattedNumber:""});var g=this.state,de=g.onlyCountries,ce=g.selectedCountry,se=g.hiddenAreaCodes,ye=this.props,Se=ye.country,Ne=ye.prefix;if(L==="")return this.setState({selectedCountry:ce,formattedNumber:""});var _,Be,Ee=L.replace(/\D/g,"");if(ce&&F()(L,Ne+ce.dialCode))Be=this.formatNumber(Ee,ce),this.setState({formattedNumber:Be});else{var G=(_=this.props.disableCountryGuess?ce:this.guessSelectedCountry(Ee.substring(0,6),Se,de,se)||ce)&&F()(Ee,Ne+_.dialCode)?_.dialCode:"";Be=this.formatNumber((this.props.disableCountryCode?"":G)+Ee,_||void 0),this.setState({selectedCountry:_,formattedNumber:Be})}}},{key:"render",value:function(){var L,g,de,ce=this,se=this.state,ye=se.onlyCountries,Se=se.selectedCountry,Ne=se.showDropdown,_=se.formattedNumber,Be=se.hiddenAreaCodes,Ee=this.props,G=Ee.disableDropdown,B=Ee.renderStringAsFlag,z=Ee.isValid,q=Ee.defaultErrorMessage,re=Ee.specialLabel;if(typeof z=="boolean")g=z;else{var me=z(_.replace(/\D/g,""),Se,ye,Be);typeof me=="boolean"?(g=me)===!1&&(de=q):(g=!1,de=me)}var he=J()((a(L={},this.props.containerClass,!0),a(L,"react-tel-input",!0),L)),Ge=J()({arrow:!0,up:Ne}),ee=J()(a({"form-control":!0,"invalid-number":!g,open:Ne},this.props.inputClass,!0)),le=J()({"selected-flag":!0,open:Ne}),Ce=J()(a({"flag-dropdown":!0,"invalid-number":!g,open:Ne},this.props.buttonClass,!0)),te="flag ".concat(Se&&Se.iso2);return p.a.createElement("div",{className:"".concat(he," ").concat(this.props.className),style:this.props.style||this.props.containerStyle,onKeyDown:this.handleKeydown},re&&p.a.createElement("div",{className:"special-label"},re),de&&p.a.createElement("div",{className:"invalid-number-message"},de),p.a.createElement("input",Object.assign({className:ee,style:this.props.inputStyle,onChange:this.handleInput,onClick:this.handleInputClick,onDoubleClick:this.handleDoubleClick,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onCopy:this.handleInputCopy,value:_,onKeyDown:this.handleInputKeyDown,placeholder:this.props.placeholder,disabled:this.props.disabled,type:"tel"},this.props.inputProps,{ref:function(oe){ce.numberInputRef=oe,typeof ce.props.inputProps.ref=="function"?ce.props.inputProps.ref(oe):typeof ce.props.inputProps.ref=="object"&&(ce.props.inputProps.ref.current=oe)}})),p.a.createElement("div",{className:Ce,style:this.props.buttonStyle,ref:function(oe){return ce.dropdownContainerRef=oe}},B?p.a.createElement("div",{className:le},B):p.a.createElement("div",{onClick:G?void 0:this.handleFlagDropdownClick,className:le,title:Se?"".concat(Se.localName||Se.name,": + ").concat(Se.dialCode):"",tabIndex:G?"-1":"0",role:"button","aria-haspopup":"listbox","aria-expanded":!!Ne||void 0},p.a.createElement("div",{className:te},!G&&p.a.createElement("div",{className:Ge}))),Ne&&this.getCountryDropdownList()))}}])&&u(Y.prototype,ne),V}(p.a.Component);we.defaultProps={country:"",value:"",onlyCountries:[],preferredCountries:[],excludeCountries:[],placeholder:"1 (702) 123-4567",searchPlaceholder:"search",searchNotFound:"No entries to show",flagsImagePath:"./flags.png",disabled:!1,containerStyle:{},inputStyle:{},buttonStyle:{},dropdownStyle:{},searchStyle:{},containerClass:"",inputClass:"",buttonClass:"",dropdownClass:"",searchClass:"",className:"",autoFormat:!0,enableAreaCodes:!1,enableTerritories:!1,disableCountryCode:!1,disableDropdown:!1,enableLongNumbers:!1,countryCodeEditable:!0,enableSearch:!1,disableSearchIcon:!1,disableInitialCountryGuess:!1,disableCountryGuess:!1,regions:"",inputProps:{},localization:{},masks:null,priority:null,areaCodes:null,preserveOrder:[],defaultMask:"... ... ... ... ..",alwaysDefaultMask:!1,prefix:"+",copyNumbersOnly:!0,renderStringAsFlag:"",autocompleteSearch:!1,jumpCursorToEnd:!0,enableAreaCodeStretch:!1,enableClickOutside:!0,showDropdown:!1,isValid:!0,defaultErrorMessage:"",specialLabel:"Phone",onEnterKeyPress:null,keys:{UP:38,DOWN:40,RIGHT:39,LEFT:37,ENTER:13,ESC:27,PLUS:43,A:65,Z:90,SPACE:32,TAB:9}},t.default=we}]);const vg=ks(mg),Fs=({value:e,onChange:t,error:r,onBlur:a,id:n,name:o,required:s,defaultCountry:l="us",className:i,responsive:u=!1,enableSearch:c=!0,autoComplete:d})=>{const m=(A,y)=>{t("+"+A,y.countryCode)};return b.jsxs("div",{className:i,children:[b.jsx("div",{className:Oe("movmo-phone-input flex items-center px-3.5 py-0 h-10 rounded-lg border",u&&"movmo-phone-input-responsive",r?"border-error-500 focus:ring-error-500":"border-grayWarm-300 focus-within:ring-2 focus-within:ring-grayWarm-950"),children:b.jsx(vg,{country:l,value:e.replace("+",""),onChange:m,inputProps:{onBlur:a,required:s,id:n,name:o,...d&&{autoComplete:d}},enableSearch:c,autoFormat:!0})}),r&&b.jsx("p",{className:"text-error-500 text-xs mt-1",children:r})]})};function Xt(e){if(e)try{e.focus()}catch(t){if(t instanceof DOMException&&t.name==="SecurityError")return;throw t}}const Ms=({email:e,phone:t,otpLength:r,otpAction:a,onVerify:n,onClose:o,externalError:s,externalErrorVariant:l="error",disabled:i=!1,title:u,description:c,onOtpChange:d})=>{const[m,A]=T.useState("".padStart(r,"")),[y,C]=T.useState(null),p=T.useRef(null),I=(h,P)=>{if(i||!/^\d*$/.test(h))return;const O=m.split("");O[P]=h.slice(-1);const F=O.join("");A(F),d==null||d(F),y&&C(null),h&&P<r-1&&Xt(document.getElementById(`otp-input-${P+1}`))},S=h=>{if(i)return;h.preventDefault();const O=h.clipboardData.getData("text/plain").replace(/\D/g,"");if(O.length>0){const F=m.split("");for(let Z=0;Z<Math.min(O.length,r);Z++)F[Z]=O[Z];const $=F.join("");A($),d==null||d($),y&&C(null);const J=F.findIndex(Z=>Z===""),fe=J!==-1?J:r-1;Xt(document.getElementById(`otp-input-${fe}`))}},R=h=>{if(i)return;const P=m.split("");P[h]="";const O=P.join("");A(O),d==null||d(O),h>0&&Xt(document.getElementById(`otp-input-${h-1}`))};T.useEffect(()=>{if(i)return;if(!(m.length===r&&!m.includes(" ")&&m.trim().length===r)){p.current=null;return}p.current!==m&&(p.current=m,n(m))},[m,r,n,i]),T.useEffect(()=>{const h=P=>{P.key==="Escape"&&o()};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[o]);const E=l==="warning"?"text-warning-700":"text-error-500";return b.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex justify-center items-center z-[110] px-4",children:b.jsxs(Qr,{className:"w-full max-w-[400px] rounded-lg bg-white",children:[b.jsx(Kr,{className:"p-4 border-b border-grayWarm-200",children:b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("button",{onClick:o,className:"w-8 h-8 flex items-center justify-center bg-grayWarm-100 hover:bg-grayWarm-200 rounded-lg transition-colors","aria-label":"Close modal",children:b.jsx("svg",{className:"w-4 h-4 text-grayWarm-600",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),b.jsx("h2",{className:"text-xl md:text-lg font-bold text-center flex-1",children:u||"Verify Account"}),b.jsx("div",{className:"w-8"})]})}),b.jsxs(qr,{className:"p-4 text-center",children:[b.jsxs("div",{className:"text-center mb-3",children:[b.jsx("p",{className:"text-sm md:text-md text-grayWarm-600",children:c||`Enter the ${r}-digit code we sent to`}),!c&&b.jsx("p",{className:"text-sm md:text-md text-grayWarm-600 mt-1",children:a===et.OTPAction.EMAILED?e:t})]}),b.jsx("div",{className:"flex justify-center gap-1.5 sm:gap-2 mb-6",children:Array.from({length:r}).map((h,P)=>b.jsx("input",{type:"text",inputMode:"numeric",pattern:"[0-9]*",maxLength:1,disabled:i,className:`w-full max-w-10 h-16 border border-grayWarm-300 shadow-xs rounded-md text-center text-lg focus:outline-none focus:ring-2 focus:ring-grayWarm-950${i?" bg-grayWarm-100 text-grayWarm-400 cursor-not-allowed":""}`,value:m[P]||"",onChange:O=>I(O.target.value,P),onPaste:S,id:`otp-input-${P}`,"data-testid":`otp-input-${P}`,onKeyDown:O=>{O.key==="Backspace"&&R(P)}},P))}),(y||s)&&b.jsx("p",{className:`${E} text-center text-sm mb-4`,children:s||y})]})]})})},Bs=e=>/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$/.test(e),hg={us:{dialCode:"1",lengths:[10]},ca:{dialCode:"1",lengths:[10]},gb:{dialCode:"44",lengths:[10]},au:{dialCode:"61",lengths:[9]},de:{dialCode:"49",lengths:[10,11]},fr:{dialCode:"33",lengths:[9]},it:{dialCode:"39",lengths:[9,10]},es:{dialCode:"34",lengths:[9]},jp:{dialCode:"81",lengths:[10,11]},kr:{dialCode:"82",lengths:[10,11]},in:{dialCode:"91",lengths:[10]},br:{dialCode:"55",lengths:[10,11]},mx:{dialCode:"52",lengths:[10]},cn:{dialCode:"86",lengths:[11]}};function Jr(e,t){if(!e||!e.startsWith("+"))return!1;const r=e.slice(1);if(!/^\d+$/.test(r))return!1;if(t){const a=hg[t.toLowerCase()];if(a){if(!r.startsWith(a.dialCode))return!1;const n=r.slice(a.dialCode.length);return a.lengths.includes(n.length)}}return r.length>=7&&r.length<=15}const yg=e=>{var r;return typeof e!="object"||e===null?!1:((r=e.response)==null?void 0:r.status)===429},Cg=e=>{var r;if(typeof e!="object"||e===null)return"Something went wrong. Please try again.";const t=(r=e.response)==null?void 0:r.status;return t===400?"Invalid or expired code. Please check and try again, or close to request a new one.":t===401?"Your session has expired. Please close and try again.":"Something went wrong. Please try again."},Ig=({isOpen:e,onClose:t,loginUser:r,verifyOTP:a,getCurrentUser:n,onLoginSuccess:o,hideCloseButton:s=!1,showPhone:l=!1,isRateLimitError:i=yg})=>{const u=l,[c,d]=T.useState(""),[m,A]=T.useState(null),[y,C]=T.useState(""),[p,I]=T.useState(null),[S,R]=T.useState(!1),[E,h]=T.useState(null),[P,O]=T.useState(6),[F,$]=T.useState(null),[J,fe]=T.useState(!1),[Z,H]=T.useState(""),[N,j]=T.useState(et.OTPAction.EMAILED),[W,K]=T.useState("us"),[ae,we]=T.useState(!1),[X,V]=T.useState(null),[Y,ne]=T.useState(null),[L,g]=T.useState(null),de=T.useRef(null),ce=T.useRef(null),se=T.useRef(null),ye=T.useRef(!1);T.useEffect(()=>{ae&&Xt(de.current)},[ae]),T.useEffect(()=>{L&&Xt(ce.current)},[L]),T.useEffect(()=>{e&&!S&&Xt(se.current)},[e,S]);const Se=z=>{const q=z.target.value;d(q),m&&A(null),L&&g(null)},Ne=(z,q)=>{C(z),K(q),p&&I(null),L&&g(null)},_=()=>{y&&!Jr(y,W)&&I("Please enter a valid phone number")},Be=async()=>{let z=!1;if((!c||!Bs(c))&&(A("Please enter a valid email address"),z=!0),u&&!Jr(y,W)&&(I("Please enter a valid phone number"),z=!0),!z){fe(!0);try{const q=await r(c,y,et.AuthenticationUsernameType.EMAIL);if(h(q.session),H(q.username||c),q.challengeName){const re=q.challengeName===et.AuthenticationChallengeName.SMS_OTP||q.challengeName===et.AuthenticationChallengeName.EMAIL_OTP;O(re?8:6),$(q.challengeName),j(q.challengeName===et.AuthenticationChallengeName.SMS_OTP?et.OTPAction.TEXTED:et.OTPAction.EMAILED)}R(!0),t()}catch(q){console.error("Error sending OTP:",q),i(q)?we(!0):g("We couldn't reach our sign-in service. Please try again.")}finally{fe(!1)}}},Ee=async z=>{if(!E)return;ye.current=!1;try{await a(Z,z,E,F)}catch(re){if(ye.current)return;console.error("Error verifying OTP:",re),i(re)?V("Too many attempts. Please close this and try again in a few minutes."):ne(Cg(re));return}if(ye.current)return;let q;try{q=await n()}catch(re){if(ye.current)return;console.error("Error fetching current user after OTP verify:",re),ne("Verified, but we could not load your account. Please try again.");return}ye.current||(o(q),R(!1),d(""),H(""),h(null),O(6),j(et.OTPAction.EMAILED),$(null))},G=()=>{ye.current=!0,R(!1),d(""),H(""),C(""),I(null),h(null),O(6),j(et.OTPAction.EMAILED),$(null),V(null),ne(null)},B=()=>{A(null),I(null),we(!1),V(null),ne(null),g(null),S||(d(""),C("")),t()};return b.jsxs(b.Fragment,{children:[b.jsx(gr,{isOpen:e&&!S,onClose:B,title:"Sign in to Movmo",maxWidthPx:398,hideCloseButton:s,allowOverflow:!0,children:ae?b.jsxs("div",{ref:de,role:"alert","aria-live":"assertive",tabIndex:-1,className:"rounded-lg bg-warning-50 border border-warning-200 p-4 focus:outline-none",children:[b.jsxs("div",{className:"flex items-start gap-2",children:[b.jsxs("svg",{className:"w-5 h-5 text-warning-700 flex-shrink-0 mt-0.5",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[b.jsx("path",{d:"M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),b.jsx("line",{x1:"12",y1:"9",x2:"12",y2:"13",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),b.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})]}),b.jsxs("div",{children:[b.jsx("p",{className:"text-sm font-semibold text-warning-700",children:"Too many attempts"}),b.jsx("p",{className:"text-sm text-grayWarm-600 mt-1",children:"You've hit a temporary limit. Please wait a few minutes and try again."})]})]}),b.jsx("button",{type:"button",onClick:B,className:"mt-4 w-full py-3 px-4 bg-grayWarm-100 hover:bg-grayWarm-200 text-grayWarm-950 font-semibold rounded-lg transition-all",children:"Got it"})]}):b.jsxs("form",{onSubmit:z=>{z.preventDefault(),Be()},className:"space-y-4",children:[b.jsxs("div",{children:[b.jsx(At,{id:"sign-in-email",type:"email",placeholder:"Email",required:!0,value:c,onChange:Se,className:`w-full ${m?"border-error-500 focus:ring-error-500":""} autofill:bg-white autofill:shadow-[inset_0_0_0px_1000px_white]`,ref:se}),m&&b.jsx("p",{className:"text-error-500 text-xs mt-1",children:m})]}),u&&b.jsx(Fs,{value:y,onChange:Ne,onBlur:_,error:p,required:!0,id:"sign-in-phone",name:"sign-in-phone"}),L&&b.jsxs("div",{ref:ce,role:"alert","aria-live":"assertive",tabIndex:-1,className:"rounded-lg bg-error-50 border border-error-200 p-3 flex items-start gap-2 focus:outline-none",children:[b.jsxs("svg",{className:"w-4 h-4 text-error-700 mt-0.5 flex-shrink-0",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[b.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:2}),b.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),b.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})]}),b.jsxs("div",{children:[b.jsx("p",{className:"text-sm font-semibold text-error-700",children:"Sign-in failed"}),b.jsx("p",{className:"text-sm text-grayWarm-600",children:L})]})]}),b.jsx("button",{type:"submit",disabled:J,className:"w-full py-3 px-4 bg-gradient-to-r from-[#E91E63] to-[#E91E63] hover:from-[#D81B60] hover:to-[#D81B60] text-white font-semibold rounded-lg transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:J?"Loading...":"Continue"})]})}),S&&b.jsx(Ms,{email:c,phone:y,otpLength:P,otpAction:N,onVerify:Ee,onClose:G,externalError:X??Y??void 0,externalErrorVariant:X?"warning":"error",disabled:X!==null,onOtpChange:()=>ne(null)})]})};exports.Avatar=Xi;exports.AvatarFallback=Hi;exports.AvatarImage=Zi;exports.Badge=Fi;exports.Button=So;exports.COUNTRY_OPTIONS=Yr;exports.CURRENCY_OPTIONS=mr;exports.Card=Qr;exports.CardContent=qr;exports.CardDescription=Oo;exports.CardFooter=Fo;exports.CardHeader=Kr;exports.CardTitle=To;exports.Checkbox=Oi;exports.Chip=hs;exports.CurrencyModal=bg;exports.DEFAULT_LOCALE=Ts;exports.DateDropdowns=zr;exports.IconButton=Mi;exports.Input=At;exports.LOCALE_OPTIONS=br;exports.LOCALE_STORAGE_KEY=lg;exports.LocaleModal=fg;exports.Modal=gr;exports.OTPModal=Ms;exports.Pagination=ms;exports.PassengerForm=ag;exports.PassengerFormSkeleton=sg;exports.PhoneInput=Fs;exports.SearchInput=vs;exports.SelectDropdown=Cn;exports.Separator=Po;exports.SignInModal=Ig;exports.Textarea=bs;exports.Toggle=Qi;exports.ToggleGroup=ps;exports.ToggleGroupItem=gs;exports.findCurrencyOption=gg;exports.findLocaleOption=ug;exports.getCurrencyDisplayText=Os;exports.getLanguageDisplayName=cg;exports.safeFocus=Xt;exports.validateEmail=Bs;exports.validatePhoneNumber=Jr;
115
115
  //# sourceMappingURL=index.cjs.js.map