@movmo_app/react-common 0.17.1 → 0.18.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 +27 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +38 -0
- package/dist/index.es.js +4605 -4569
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var lu=Object.defineProperty;var uu=(e,t,n)=>t in e?lu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var mo=(e,t,n)=>uu(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react"),cu=require("react-dom");function du(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const S=du(w);var nr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var na={exports:{}},Nn={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var bo;function pu(){if(bo)return Nn;bo=1;var e=w,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function i(s,l,c){var d,f={},y=null,C=null;c!==void 0&&(y=""+c),l.key!==void 0&&(y=""+l.key),l.ref!==void 0&&(C=l.ref);for(d in l)a.call(l,d)&&!o.hasOwnProperty(d)&&(f[d]=l[d]);if(s&&s.defaultProps)for(d in l=s.defaultProps,l)f[d]===void 0&&(f[d]=l[d]);return{$$typeof:t,type:s,key:y,ref:C,props:f,_owner:r.current}}return Nn.Fragment=n,Nn.jsx=i,Nn.jsxs=i,Nn}var Gn={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,84 +14,84 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+
|
|
19
|
-
`),qe=
|
|
20
|
-
`),et=
|
|
21
|
-
`+
|
|
17
|
+
*/var ho;function gu(){return ho||(ho=1,process.env.NODE_ENV!=="production"&&function(){var e=w,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),b=Symbol.iterator,h="@@iterator";function p(v){if(v===null||typeof v!="object")return null;var D=b&&v[b]||v[h];return typeof D=="function"?D:null}var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(v){{for(var D=arguments.length,J=new Array(D>1?D-1:0),ve=1;ve<D;ve++)J[ve-1]=arguments[ve];R("error",v,J)}}function R(v,D,J){{var ve=x.ReactDebugCurrentFrame,ke=ve.getStackAddendum();ke!==""&&(D+="%s",J=J.concat([ke]));var Oe=J.map(function(Pe){return String(Pe)});Oe.unshift("Warning: "+D),Function.prototype.apply.call(console[v],console,Oe)}}var A=!1,I=!1,M=!1,B=!1,O=!1,re;re=Symbol.for("react.module.reference");function ne(v){return!!(typeof v=="string"||typeof v=="function"||v===a||v===o||O||v===r||v===c||v===d||B||v===C||A||I||M||typeof v=="object"&&v!==null&&(v.$$typeof===y||v.$$typeof===f||v.$$typeof===i||v.$$typeof===s||v.$$typeof===l||v.$$typeof===re||v.getModuleId!==void 0))}function ue(v,D,J){var ve=v.displayName;if(ve)return ve;var ke=D.displayName||D.name||"";return ke!==""?J+"("+ke+")":J}function z(v){return v.displayName||"Context"}function ie(v){if(v==null)return null;if(typeof v.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof v=="function")return v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case a:return"Fragment";case n:return"Portal";case o:return"Profiler";case r:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if(typeof v=="object")switch(v.$$typeof){case s:var D=v;return z(D)+".Consumer";case i:var J=v;return z(J._context)+".Provider";case l:return ue(v,v.render,"ForwardRef");case f:var ve=v.displayName||null;return ve!==null?ve:ie(v.type)||"Memo";case y:{var ke=v,Oe=ke._payload,Pe=ke._init;try{return ie(Pe(Oe))}catch{return null}}}return null}var G=Object.assign,T=0,V,$,K,we,_,L,Z;function ae(){}ae.__reactDisabledLog=!0;function X(){{if(T===0){V=console.log,$=console.info,K=console.warn,we=console.error,_=console.group,L=console.groupCollapsed,Z=console.groupEnd;var v={configurable:!0,enumerable:!0,value:ae,writable:!0};Object.defineProperties(console,{info:v,log:v,warn:v,error:v,group:v,groupCollapsed:v,groupEnd:v})}T++}}function m(){{if(T--,T===0){var v={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:G({},v,{value:V}),info:G({},v,{value:$}),warn:G({},v,{value:K}),error:G({},v,{value:we}),group:G({},v,{value:_}),groupCollapsed:G({},v,{value:L}),groupEnd:G({},v,{value:Z})})}T<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ge=x.ReactCurrentDispatcher,de;function ce(v,D,J){{if(de===void 0)try{throw Error()}catch(ke){var ve=ke.stack.trim().match(/\n( *(at )?)/);de=ve&&ve[1]||""}return`
|
|
18
|
+
`+de+v}}var Ne=!1,Y;{var me=typeof WeakMap=="function"?WeakMap:Map;Y=new me}function k(v,D){if(!v||Ne)return"";{var J=Y.get(v);if(J!==void 0)return J}var ve;Ne=!0;var ke=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Oe;Oe=ge.current,ge.current=null,X();try{if(D){var Pe=function(){throw Error()};if(Object.defineProperty(Pe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Pe,[])}catch(te){ve=te}Reflect.construct(v,[],Pe)}else{try{Pe.call()}catch(te){ve=te}v.call(Pe.prototype)}}else{try{throw Error()}catch(te){ve=te}v()}}catch(te){if(te&&ve&&typeof te.stack=="string"){for(var je=te.stack.split(`
|
|
19
|
+
`),qe=ve.stack.split(`
|
|
20
|
+
`),et=je.length-1,g=qe.length-1;et>=1&&g>=0&&je[et]!==qe[g];)g--;for(;et>=1&&g>=0;et--,g--)if(je[et]!==qe[g]){if(et!==1||g!==1)do if(et--,g--,g<0||je[et]!==qe[g]){var N=`
|
|
21
|
+
`+je[et].replace(" at new "," at ");return v.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",v.displayName)),typeof v=="function"&&Y.set(v,N),N}while(et>=1&&g>=0);break}}}finally{Ne=!1,ge.current=Oe,m(),Error.prepareStackTrace=ke}var F=v?v.displayName||v.name:"",H=F?ce(F):"";return typeof v=="function"&&Y.set(v,H),H}function Se(v,D,J){return k(v,!1)}function Ce(v){var D=v.prototype;return!!(D&&D.isReactComponent)}function P(v,D,J){if(v==null)return"";if(typeof v=="function")return k(v,Ce(v));if(typeof v=="string")return ce(v);switch(v){case c:return ce("Suspense");case d:return ce("SuspenseList")}if(typeof v=="object")switch(v.$$typeof){case l:return Se(v.render);case f:return P(v.type,D,J);case y:{var ve=v,ke=ve._payload,Oe=ve._init;try{return P(Oe(ke),D,J)}catch{}}}return""}var W=Object.prototype.hasOwnProperty,Q={},he=x.ReactDebugCurrentFrame;function le(v){if(v){var D=v._owner,J=P(v.type,v._source,D?D.type:null);he.setExtraStackFrame(J)}else he.setExtraStackFrame(null)}function xe(v,D,J,ve,ke){{var Oe=Function.call.bind(W);for(var Pe in v)if(Oe(v,Pe)){var je=void 0;try{if(typeof v[Pe]!="function"){var qe=Error((ve||"React class")+": "+J+" type `"+Pe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof v[Pe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw qe.name="Invariant Violation",qe}je=v[Pe](D,Pe,ve,J,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(et){je=et}je&&!(je instanceof Error)&&(le(ke),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ve||"React class",J,Pe,typeof je),le(null)),je instanceof Error&&!(je.message in Q)&&(Q[je.message]=!0,le(ke),E("Failed %s type: %s",J,je.message),le(null))}}}var Ee=Array.isArray;function Ge(v){return Ee(v)}function ee(v){{var D=typeof Symbol=="function"&&Symbol.toStringTag,J=D&&v[Symbol.toStringTag]||v.constructor.name||"Object";return J}}function fe(v){try{return Ae(v),!1}catch{return!0}}function Ae(v){return""+v}function q(v){if(fe(v))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ee(v)),Ae(v)}var se=x.ReactCurrentOwner,De={key:!0,ref:!0,__self:!0,__source:!0},ot,Ke;function lt(v){if(W.call(v,"ref")){var D=Object.getOwnPropertyDescriptor(v,"ref").get;if(D&&D.isReactWarning)return!1}return v.ref!==void 0}function gt(v){if(W.call(v,"key")){var D=Object.getOwnPropertyDescriptor(v,"key").get;if(D&&D.isReactWarning)return!1}return v.key!==void 0}function It(v,D){typeof v.ref=="string"&&se.current}function Ue(v,D){{var J=function(){ot||(ot=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",D))};J.isReactWarning=!0,Object.defineProperty(v,"key",{get:J,configurable:!0})}}function Nt(v,D){{var J=function(){Ke||(Ke=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",D))};J.isReactWarning=!0,Object.defineProperty(v,"ref",{get:J,configurable:!0})}}var Mt=function(v,D,J,ve,ke,Oe,Pe){var je={$$typeof:t,type:v,key:D,ref:J,props:Pe,_owner:Oe};return je._store={},Object.defineProperty(je._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(je,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ve}),Object.defineProperty(je,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ke}),Object.freeze&&(Object.freeze(je.props),Object.freeze(je)),je};function rn(v,D,J,ve,ke){{var Oe,Pe={},je=null,qe=null;J!==void 0&&(q(J),je=""+J),gt(D)&&(q(D.key),je=""+D.key),lt(D)&&(qe=D.ref,It(D,ke));for(Oe in D)W.call(D,Oe)&&!De.hasOwnProperty(Oe)&&(Pe[Oe]=D[Oe]);if(v&&v.defaultProps){var et=v.defaultProps;for(Oe in et)Pe[Oe]===void 0&&(Pe[Oe]=et[Oe])}if(je||qe){var g=typeof v=="function"?v.displayName||v.name||"Unknown":v;je&&Ue(Pe,g),qe&&Nt(Pe,g)}return Mt(v,je,qe,ke,ve,se.current,Pe)}}var St=x.ReactCurrentOwner,Gt=x.ReactDebugCurrentFrame;function Pt(v){if(v){var D=v._owner,J=P(v.type,v._source,D?D.type:null);Gt.setExtraStackFrame(J)}else Gt.setExtraStackFrame(null)}var an;an=!1;function Lt(v){return typeof v=="object"&&v!==null&&v.$$typeof===t}function on(){{if(St.current){var v=ie(St.current.type);if(v)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+v+"`."}return""}}function
|
|
23
|
+
Check the render method of \``+v+"`."}return""}}function Xt(v){return""}var Ct={};function ht(v){{var D=on();if(!D){var J=typeof v=="string"?v:v.displayName||v.name;J&&(D=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+J+">.")}return
|
|
25
|
+
Check the top-level render call using <`+J+">.")}return D}}function Ht(v,D){{if(!v._store||v._store.validated||v.key!=null)return;v._store.validated=!0;var J=ht(D);if(Ct[J])return;Ct[J]=!0;var ve="";v&&v._owner&&v._owner!==St.current&&(ve=" It was passed a child from "+ie(v._owner.type)+"."),Pt(v),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',J,ve),Pt(null)}}function Ot(v,D){{if(typeof v!="object")return;if(Ge(v))for(var J=0;J<v.length;J++){var ve=v[J];Lt(ve)&&Ht(ve,D)}else if(Lt(v))v._store&&(v._store.validated=!0);else if(v){var ke=p(v);if(typeof ke=="function"&&ke!==v.entries)for(var Oe=ke.call(v),Pe;!(Pe=Oe.next()).done;)Lt(Pe.value)&&Ht(Pe.value,D)}}}function sn(v){{var D=v.type;if(D==null||typeof D=="string")return;var J;if(typeof D=="function")J=D.propTypes;else if(typeof D=="object"&&(D.$$typeof===l||D.$$typeof===f))J=D.propTypes;else return;if(J){var ve=ie(D);xe(J,v.props,"prop",ve,v)}else if(D.PropTypes!==void 0&&!an){an=!0;var ke=ie(D);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ke||"Unknown")}typeof D.getDefaultProps=="function"&&!D.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ln(v){{for(var D=Object.keys(v.props),J=0;J<D.length;J++){var ve=D[J];if(ve!=="children"&&ve!=="key"){Pt(v),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ve),Pt(null);break}}v.ref!==null&&(Pt(v),E("Invalid attribute `ref` supplied to `React.Fragment`."),Pt(null))}}var j={};function U(v,D,J,ve,ke,Oe){{var Pe=ne(v);if(!Pe){var je="";(v===void 0||typeof v=="object"&&v!==null&&Object.keys(v).length===0)&&(je+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var qe=Xt();qe?je+=qe:je+=on();var et;v===null?et="null":Ge(v)?et="array":v!==void 0&&v.$$typeof===t?(et="<"+(ie(v.type)||"Unknown")+" />",je=" Did you accidentally export a JSX literal instead of a component?"):et=typeof v,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",et,je)}var g=rn(v,D,J,ke,Oe);if(g==null)return g;if(Pe){var N=D.children;if(N!==void 0)if(ve)if(Ge(N)){for(var F=0;F<N.length;F++)Ot(N[F],v);Object.freeze&&Object.freeze(N)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ot(N,v)}if(W.call(D,"key")){var H=ie(v),te=Object.keys(D).filter(function(Ye){return Ye!=="key"}),pe=te.length>0?"{key: someKey, "+te.join(": ..., ")+": ...}":"{key: someKey}";if(!j[H+pe]){var Re=te.length>0?"{"+te.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,fe,H,Ee,H),T[H+fe]=!0}}return v===a?un(g):ln(g),g}}function ie(v,B,J){return U(v,B,J,!0)}function Xe(v,B,J){return U(v,B,J,!1)}var rt=Xe,dt=ie;Pn.Fragment=a,Pn.jsx=rt,Pn.jsxs=dt}()),Pn}process.env.NODE_ENV==="production"?ta.exports=cu():ta.exports=du();var u=ta.exports;function bi(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=bi(e[t]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function fu(){for(var e,t,r=0,a="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=bi(e))&&(a&&(a+=" "),a+=t);return a}const Ia="-",pu=e=>{const t=mu(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:i=>{const l=i.split(Ia);return l[0]===""&&l.length!==1&&l.shift(),hi(l,t)||gu(i)},getConflictingClassGroupIds:(i,l)=>{const s=r[i]||[];return l&&a[i]?[...s,...a[i]]:s}}},hi=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],a=t.nextPart.get(r),n=a?hi(e.slice(1),a):void 0;if(n)return n;if(t.validators.length===0)return;const o=e.join(Ia);return(i=t.validators.find(({validator:l})=>l(o)))==null?void 0:i.classGroupId},ho=/^\[(.+)\]$/,gu=e=>{if(ho.test(e)){const t=ho.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},mu=e=>{const{theme:t,prefix:r}=e,a={nextPart:new Map,validators:[]};return hu(Object.entries(e.classGroups),r).forEach(([o,i])=>{na(i,a,o,t)}),a},na=(e,t,r,a)=>{e.forEach(n=>{if(typeof n=="string"){const o=n===""?t:vo(t,n);o.classGroupId=r;return}if(typeof n=="function"){if(bu(n)){na(n(a),t,r,a);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([o,i])=>{na(i,vo(t,o),r,a)})})},vo=(e,t)=>{let r=e;return t.split(Ia).forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},bu=e=>e.isThemeGetter,hu=(e,t)=>t?e.map(([r,a])=>{const n=a.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,l])=>[t+i,l])):o);return[r,n]}):e,vu=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,a=new Map;const n=(o,i)=>{r.set(o,i),t++,t>e&&(t=0,a=r,r=new Map)};return{get(o){let i=r.get(o);if(i!==void 0)return i;if((i=a.get(o))!==void 0)return n(o,i),i},set(o,i){r.has(o)?r.set(o,i):n(o,i)}}},vi="!",yu=e=>{const{separator:t,experimentalParseClassName:r}=e,a=t.length===1,n=t[0],o=t.length,i=l=>{const s=[];let c=0,d=0,f;for(let p=0;p<l.length;p++){let x=l[p];if(c===0){if(x===n&&(a||l.slice(p,p+o)===t)){s.push(l.slice(d,p)),d=p+o;continue}if(x==="/"){f=p;continue}}x==="["?c++:x==="]"&&c--}const y=s.length===0?l:l.substring(d),C=y.startsWith(vi),b=C?y.substring(1):y,h=f&&f>d?f-d:void 0;return{modifiers:s,hasImportantModifier:C,baseClassName:b,maybePostfixModifierPosition:h}};return r?l=>r({className:l,parseClassName:i}):i},Cu=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(a=>{a[0]==="["?(t.push(...r.sort(),a),r=[]):r.push(a)}),t.push(...r.sort()),t},xu=e=>({cache:vu(e.cacheSize),parseClassName:yu(e),...pu(e)}),Iu=/\s+/,Su=(e,t)=>{const{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:n}=t,o=[],i=e.trim().split(Iu);let l="";for(let s=i.length-1;s>=0;s-=1){const c=i[s],{modifiers:d,hasImportantModifier:f,baseClassName:y,maybePostfixModifierPosition:C}=r(c);let b=!!C,h=a(b?y.substring(0,C):y);if(!h){if(!b){l=c+(l.length>0?" "+l:l);continue}if(h=a(y),!h){l=c+(l.length>0?" "+l:l);continue}b=!1}const p=Cu(d).join(":"),x=f?p+vi:p,E=x+h;if(o.includes(E))continue;o.push(E);const R=n(h,b);for(let A=0;A<R.length;++A){const I=R[A];o.push(x+I)}l=c+(l.length>0?" "+l:l)}return l};function Au(){let e=0,t,r,a="";for(;e<arguments.length;)(t=arguments[e++])&&(r=yi(t))&&(a&&(a+=" "),a+=r);return a}const yi=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=yi(e[a]))&&(r&&(r+=" "),r+=t);return r};function wu(e,...t){let r,a,n,o=i;function i(s){const c=t.reduce((d,f)=>f(d),e());return r=xu(c),a=r.cache.get,n=r.cache.set,o=l,l(s)}function l(s){const c=a(s);if(c)return c;const d=Su(s,r);return n(s,d),d}return function(){return o(Au.apply(null,arguments))}}const Qe=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Ci=/^\[(?:([a-z-]+):)?(.+)\]$/i,Eu=/^\d+\/\d+$/,Ru=new Set(["px","full","screen"]),Nu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Gu=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Pu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Tu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ou=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Bt=e=>Cn(e)||Ru.has(e)||Eu.test(e),Ut=e=>wn(e,"length",Du),Cn=e=>!!e&&!Number.isNaN(Number(e)),Lr=e=>wn(e,"number",Cn),Tn=e=>!!e&&Number.isInteger(Number(e)),ju=e=>e.endsWith("%")&&Cn(e.slice(0,-1)),Pe=e=>Ci.test(e),$t=e=>Nu.test(e),Mu=new Set(["length","size","percentage"]),ku=e=>wn(e,Mu,xi),Fu=e=>wn(e,"position",xi),Bu=new Set(["image","url"]),Vu=e=>wn(e,Bu,Lu),_u=e=>wn(e,"",Wu),On=()=>!0,wn=(e,t,r)=>{const a=Ci.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):r(a[2]):!1},Du=e=>Gu.test(e)&&!Pu.test(e),xi=()=>!1,Wu=e=>Tu.test(e),Lu=e=>Ou.test(e),Xu=()=>{const e=Qe("colors"),t=Qe("spacing"),r=Qe("blur"),a=Qe("brightness"),n=Qe("borderColor"),o=Qe("borderRadius"),i=Qe("borderSpacing"),l=Qe("borderWidth"),s=Qe("contrast"),c=Qe("grayscale"),d=Qe("hueRotate"),f=Qe("invert"),y=Qe("gap"),C=Qe("gradientColorStops"),b=Qe("gradientColorStopPositions"),h=Qe("inset"),p=Qe("margin"),x=Qe("opacity"),E=Qe("padding"),R=Qe("saturate"),A=Qe("scale"),I=Qe("sepia"),j=Qe("skew"),F=Qe("space"),M=Qe("translate"),oe=()=>["auto","contain","none"],re=()=>["auto","hidden","clip","visible","scroll"],ce=()=>["auto",Pe,t],z=()=>[Pe,t],le=()=>["",Bt,Ut],G=()=>["auto",Cn,Pe],O=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],V=()=>["solid","dashed","dotted","double","none"],$=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>["start","end","center","between","around","evenly","stretch"],Ie=()=>["","0",Pe],_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[Cn,Pe];return{cacheSize:500,separator:":",theme:{colors:[On],spacing:[Bt,Ut],blur:["none","",$t,Pe],brightness:W(),borderColor:[e],borderRadius:["none","","full",$t,Pe],borderSpacing:z(),borderWidth:le(),contrast:W(),grayscale:Ie(),hueRotate:W(),invert:Ie(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[ju,Ut],inset:ce(),margin:ce(),opacity:W(),padding:z(),saturate:W(),scale:W(),sepia:Ie(),skew:W(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",Pe]}],container:["container"],columns:[{columns:[$t]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...O(),Pe]}],overflow:[{overflow:re()}],"overflow-x":[{"overflow-x":re()}],"overflow-y":[{"overflow-y":re()}],overscroll:[{overscroll:oe()}],"overscroll-x":[{"overscroll-x":oe()}],"overscroll-y":[{"overscroll-y":oe()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Tn,Pe]}],basis:[{basis:ce()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Pe]}],grow:[{grow:Ie()}],shrink:[{shrink:Ie()}],order:[{order:["first","last","none",Tn,Pe]}],"grid-cols":[{"grid-cols":[On]}],"col-start-end":[{col:["auto",{span:["full",Tn,Pe]},Pe]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[On]}],"row-start-end":[{row:["auto",{span:[Tn,Pe]},Pe]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Pe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Pe]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...ne()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ne(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ne(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[E]}],px:[{px:[E]}],py:[{py:[E]}],ps:[{ps:[E]}],pe:[{pe:[E]}],pt:[{pt:[E]}],pr:[{pr:[E]}],pb:[{pb:[E]}],pl:[{pl:[E]}],m:[{m:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[F]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[F]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Pe,t]}],"min-w":[{"min-w":[Pe,t,"min","max","fit"]}],"max-w":[{"max-w":[Pe,t,"none","full","min","max","fit","prose",{screen:[$t]},$t]}],h:[{h:[Pe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Pe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Pe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Pe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",$t,Ut]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Lr]}],"font-family":[{font:[On]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Pe]}],"line-clamp":[{"line-clamp":["none",Cn,Lr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Bt,Pe]}],"list-image":[{"list-image":["none",Pe]}],"list-style-type":[{list:["none","disc","decimal",Pe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Bt,Ut]}],"underline-offset":[{"underline-offset":["auto",Bt,Pe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Pe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...O(),Fu]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ku]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Vu]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...V(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:V()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...V()]}],"outline-offset":[{"outline-offset":[Bt,Pe]}],"outline-w":[{outline:[Bt,Ut]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[Bt,Ut]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",$t,_u]}],"shadow-color":[{shadow:[On]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...$(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":$()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",$t,Pe]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[R]}],sepia:[{sepia:[I]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[R]}],"backdrop-sepia":[{"backdrop-sepia":[I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Pe]}],duration:[{duration:W()}],ease:[{ease:["linear","in","out","in-out",Pe]}],delay:[{delay:W()}],animate:[{animate:["none","spin","ping","pulse","bounce",Pe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[Tn,Pe]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[j]}],"skew-y":[{"skew-y":[j]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Pe]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Pe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Pe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Bt,Ut,Lr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Hu=wu(Xu);function Me(...e){return Hu(fu(e))}const Ii=S.forwardRef(({variant:e="primary",size:t="md",isLoading:r=!1,fullWidth:a=!1,className:n,children:o,...i},l)=>{const s="font-inter inline-flex items-center justify-center rounded-lg text-white font-semibold transition-colors focus:outline-none",c={primary:"bg-brand-500 hover:bg-brand-600",secondary:"bg-secondary-500 hover:bg-secondary-600",error:"bg-error-500 hover:bg-error-600",success:"bg-success-500 hover:bg-success-600",warning:"bg-warning-500 hover:bg-warning-600"},d={sm:"px-3 py-2 text-sm",md:"px-3.5 py-2.5 text-sm",lg:"px-4 py-2.5 text-base",xl:"px-5 py-3 text-base","2xl":"px-6 py-4 text-lg"},f=r?"opacity-70 cursor-not-allowed":"",y=a?"w-full":"";return u.jsx("button",{ref:l,className:Me(s,c[e],d[t],f,y,n),disabled:r||i.disabled,...i,children:o})});Ii.displayName="Button";function Zu(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Si(...e){return t=>e.forEach(r=>Zu(r,t))}function Ai(...e){return S.useCallback(Si(...e),e)}var wi=S.forwardRef((e,t)=>{const{children:r,...a}=e,n=S.Children.toArray(r),o=n.find(Yu);if(o){const i=o.props.children,l=n.map(s=>s===o?S.Children.count(i)>1?S.Children.only(null):S.isValidElement(i)?i.props.children:null:s);return u.jsx(ra,{...a,ref:t,children:S.isValidElement(i)?S.cloneElement(i,void 0,l):null})}return u.jsx(ra,{...a,ref:t,children:r})});wi.displayName="Slot";var ra=S.forwardRef((e,t)=>{const{children:r,...a}=e;if(S.isValidElement(r)){const n=Uu(r);return S.cloneElement(r,{...Ju(a,r.props),ref:t?Si(t,n):n})}return S.Children.count(r)>1?S.Children.only(null):null});ra.displayName="SlotClone";var zu=({children:e})=>u.jsx(u.Fragment,{children:e});function Yu(e){return S.isValidElement(e)&&e.type===zu}function Ju(e,t){const r={...t};for(const a in t){const n=e[a],o=t[a];/^on[A-Z]/.test(a)?n&&o?r[a]=(...l)=>{o(...l),n(...l)}:n&&(r[a]=n):a==="style"?r[a]={...n,...o}:a==="className"&&(r[a]=[n,o].filter(Boolean).join(" "))}return{...e,...r}}function Uu(e){var a,n;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var $u=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Sa=$u.reduce((e,t)=>{const r=S.forwardRef((a,n)=>{const{asChild:o,...i}=a,l=o?wi:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...i,ref:n})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Qu="Separator",yo="horizontal",Ku=["horizontal","vertical"],Ei=S.forwardRef((e,t)=>{const{decorative:r,orientation:a=yo,...n}=e,o=qu(a)?a:yo,l=r?{role:"none"}:{"aria-orientation":o==="vertical"?o:void 0,role:"separator"};return u.jsx(Sa.div,{"data-orientation":o,...l,...n,ref:t})});Ei.displayName=Qu;function qu(e){return Ku.includes(e)}var Ri=Ei;const Ni=S.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,text:a,...n},o)=>a?u.jsxs("div",{className:"flex items-center w-full",children:[u.jsx("div",{className:"flex-grow border-t border-grayWarm-200"}),u.jsx("span",{className:Me("px-4 text-grayWarm-500 text-sm font-normal",e),children:a}),u.jsx("div",{className:"flex-grow border-t border-grayWarm-200"})]}):u.jsx(Ri,{ref:o,decorative:r,orientation:t,className:Me("shrink-0 bg-border bg-grayWarm-200",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));Ni.displayName=Ri.displayName;const Aa=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Me("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Aa.displayName="Card";const wa=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Me("flex flex-col space-y-1.5 p-6",e),...t}));wa.displayName="CardHeader";const Gi=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Me("font-semibold leading-none tracking-tight",e),...t}));Gi.displayName="CardTitle";const Pi=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Me("text-sm text-muted-foreground",e),...t}));Pi.displayName="CardDescription";const Ea=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Me("p-6 pt-0",e),...t}));Ea.displayName="CardContent";const Ti=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Me("flex items-center p-6 pt-0",e),...t}));Ti.displayName="CardFooter";function fn(e){"@babel/helpers - typeof";return fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fn(e)}function ec(e,t){if(fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(fn(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Oi(e){var t=ec(e,"string");return fn(t)=="symbol"?t:t+""}function Fn(e,t,r){return(t=Oi(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Co(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function ve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Co(Object(r),!0).forEach(function(a){Fn(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Co(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function tc(e){if(Array.isArray(e))return e}function nc(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,n,o,i,l=[],s=!0,c=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(a=o.call(r)).done)&&(l.push(a.value),l.length!==t);s=!0);}catch(d){c=!0,n=d}finally{try{if(!s&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw n}}return l}}function aa(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function ji(e,t){if(e){if(typeof e=="string")return aa(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?aa(e,t):void 0}}function rc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
31
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
32
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ra(e){return pc(e)||gc(e)||ji(e)||mc()}function bc(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function hc(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var vc=function(){function e(r){var a=this;this._insertTag=function(n){var o;a.tags.length===0?a.insertionPoint?o=a.insertionPoint.nextSibling:a.prepend?o=a.container.firstChild:o=a.before:o=a.tags[a.tags.length-1].nextSibling,a.container.insertBefore(n,o),a.tags.push(n)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(a){a.forEach(this._insertTag)},t.insert=function(a){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(hc(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=bc(n);try{o.insertRule(a,o.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(a));this.ctr++},t.flush=function(){this.tags.forEach(function(a){var n;return(n=a.parentNode)==null?void 0:n.removeChild(a)}),this.tags=[],this.ctr=0},e}(),ft="-ms-",mr="-moz-",Be="-webkit-",ki="comm",Na="rule",Ga="decl",yc="@import",Fi="@keyframes",Cc="@layer",xc=Math.abs,Er=String.fromCharCode,Ic=Object.assign;function Sc(e,t){return ct(e,0)^45?(((t<<2^ct(e,0))<<2^ct(e,1))<<2^ct(e,2))<<2^ct(e,3):0}function Bi(e){return e.trim()}function Ac(e,t){return(e=t.exec(e))?e[0]:e}function Ve(e,t,r){return e.replace(t,r)}function ia(e,t){return e.indexOf(t)}function ct(e,t){return e.charCodeAt(t)|0}function Bn(e,t,r){return e.slice(t,r)}function Tt(e){return e.length}function Pa(e){return e.length}function nr(e,t){return t.push(e),e}function wc(e,t){return e.map(t).join("")}var Rr=1,In=1,Vi=0,bt=0,at=0,En="";function Nr(e,t,r,a,n,o,i){return{value:e,root:t,parent:r,type:a,props:n,children:o,line:Rr,column:In,length:i,return:""}}function jn(e,t){return Ic(Nr("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ec(){return at}function Rc(){return at=bt>0?ct(En,--bt):0,In--,at===10&&(In=1,Rr--),at}function yt(){return at=bt<Vi?ct(En,bt++):0,In++,at===10&&(In=1,Rr++),at}function jt(){return ct(En,bt)}function ur(){return bt}function Xn(e,t){return Bn(En,e,t)}function Vn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function _i(e){return Rr=In=1,Vi=Tt(En=e),bt=0,[]}function Di(e){return En="",e}function cr(e){return Bi(Xn(bt-1,sa(e===91?e+2:e===40?e+1:e)))}function Nc(e){for(;(at=jt())&&at<33;)yt();return Vn(e)>2||Vn(at)>3?"":" "}function Gc(e,t){for(;--t&&yt()&&!(at<48||at>102||at>57&&at<65||at>70&&at<97););return Xn(e,ur()+(t<6&&jt()==32&&yt()==32))}function sa(e){for(;yt();)switch(at){case e:return bt;case 34:case 39:e!==34&&e!==39&&sa(at);break;case 40:e===41&&sa(e);break;case 92:yt();break}return bt}function Pc(e,t){for(;yt()&&e+at!==57;)if(e+at===84&&jt()===47)break;return"/*"+Xn(t,bt-1)+"*"+Er(e===47?e:yt())}function Tc(e){for(;!Vn(jt());)yt();return Xn(e,bt)}function Oc(e){return Di(dr("",null,null,null,[""],e=_i(e),0,[0],e))}function dr(e,t,r,a,n,o,i,l,s){for(var c=0,d=0,f=i,y=0,C=0,b=0,h=1,p=1,x=1,E=0,R="",A=n,I=o,j=a,F=R;p;)switch(b=E,E=yt()){case 40:if(b!=108&&ct(F,f-1)==58){ia(F+=Ve(cr(E),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:F+=cr(E);break;case 9:case 10:case 13:case 32:F+=Nc(b);break;case 92:F+=Gc(ur()-1,7);continue;case 47:switch(jt()){case 42:case 47:nr(jc(Pc(yt(),ur()),t,r),s);break;default:F+="/"}break;case 123*h:l[c++]=Tt(F)*x;case 125*h:case 59:case 0:switch(E){case 0:case 125:p=0;case 59+d:x==-1&&(F=Ve(F,/\f/g,"")),C>0&&Tt(F)-f&&nr(C>32?So(F+";",a,r,f-1):So(Ve(F," ","")+";",a,r,f-2),s);break;case 59:F+=";";default:if(nr(j=Io(F,t,r,c,d,n,l,R,A=[],I=[],f),o),E===123)if(d===0)dr(F,t,j,j,A,o,f,l,I);else switch(y===99&&ct(F,3)===110?100:y){case 100:case 108:case 109:case 115:dr(e,j,j,a&&nr(Io(e,j,j,0,0,n,l,R,n,A=[],f),I),n,I,f,l,a?A:I);break;default:dr(F,j,j,j,[""],I,0,l,I)}}c=d=C=0,h=x=1,R=F="",f=i;break;case 58:f=1+Tt(F),C=b;default:if(h<1){if(E==123)--h;else if(E==125&&h++==0&&Rc()==125)continue}switch(F+=Er(E),E*h){case 38:x=d>0?1:(F+="\f",-1);break;case 44:l[c++]=(Tt(F)-1)*x,x=1;break;case 64:jt()===45&&(F+=cr(yt())),y=jt(),d=f=Tt(R=F+=Tc(ur())),E++;break;case 45:b===45&&Tt(F)==2&&(h=0)}}return o}function Io(e,t,r,a,n,o,i,l,s,c,d){for(var f=n-1,y=n===0?o:[""],C=Pa(y),b=0,h=0,p=0;b<a;++b)for(var x=0,E=Bn(e,f+1,f=xc(h=i[b])),R=e;x<C;++x)(R=Bi(h>0?y[x]+" "+E:Ve(E,/&\f/g,y[x])))&&(s[p++]=R);return Nr(e,t,r,n===0?Na:l,s,c,d)}function jc(e,t,r){return Nr(e,t,r,ki,Er(Ec()),Bn(e,2,-2),0)}function So(e,t,r,a){return Nr(e,t,r,Ga,Bn(e,0,a),Bn(e,a+1,-1),a)}function xn(e,t){for(var r="",a=Pa(e),n=0;n<a;n++)r+=t(e[n],n,e,t)||"";return r}function Mc(e,t,r,a){switch(e.type){case Cc:if(e.children.length)break;case yc:case Ga:return e.return=e.return||e.value;case ki:return"";case Fi:return e.return=e.value+"{"+xn(e.children,a)+"}";case Na:e.value=e.props.join(",")}return Tt(r=xn(e.children,a))?e.return=e.value+"{"+r+"}":""}function kc(e){var t=Pa(e);return function(r,a,n,o){for(var i="",l=0;l<t;l++)i+=e[l](r,a,n,o)||"";return i}}function Fc(e){return function(t){t.root||(t=t.return)&&e(t)}}function Bc(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Vc=function(t,r,a){for(var n=0,o=0;n=o,o=jt(),n===38&&o===12&&(r[a]=1),!Vn(o);)yt();return Xn(t,bt)},_c=function(t,r){var a=-1,n=44;do switch(Vn(n)){case 0:n===38&&jt()===12&&(r[a]=1),t[a]+=Vc(bt-1,r,a);break;case 2:t[a]+=cr(n);break;case 4:if(n===44){t[++a]=jt()===58?"&\f":"",r[a]=t[a].length;break}default:t[a]+=Er(n)}while(n=yt());return t},Dc=function(t,r){return Di(_c(_i(t),r))},Ao=new WeakMap,Wc=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,a=t.parent,n=t.column===a.column&&t.line===a.line;a.type!=="rule";)if(a=a.parent,!a)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Ao.get(a))&&!n){Ao.set(t,!0);for(var o=[],i=Dc(r,o),l=a.props,s=0,c=0;s<i.length;s++)for(var d=0;d<l.length;d++,c++)t.props[c]=o[s]?i[s].replace(/&\f/g,l[d]):l[d]+" "+i[s]}}},Lc=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Wi(e,t){switch(Sc(e,t)){case 5103:return Be+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Be+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Be+e+mr+e+ft+e+e;case 6828:case 4268:return Be+e+ft+e+e;case 6165:return Be+e+ft+"flex-"+e+e;case 5187:return Be+e+Ve(e,/(\w+).+(:[^]+)/,Be+"box-$1$2"+ft+"flex-$1$2")+e;case 5443:return Be+e+ft+"flex-item-"+Ve(e,/flex-|-self/,"")+e;case 4675:return Be+e+ft+"flex-line-pack"+Ve(e,/align-content|flex-|-self/,"")+e;case 5548:return Be+e+ft+Ve(e,"shrink","negative")+e;case 5292:return Be+e+ft+Ve(e,"basis","preferred-size")+e;case 6060:return Be+"box-"+Ve(e,"-grow","")+Be+e+ft+Ve(e,"grow","positive")+e;case 4554:return Be+Ve(e,/([^-])(transform)/g,"$1"+Be+"$2")+e;case 6187:return Ve(Ve(Ve(e,/(zoom-|grab)/,Be+"$1"),/(image-set)/,Be+"$1"),e,"")+e;case 5495:case 3959:return Ve(e,/(image-set\([^]*)/,Be+"$1$`$1");case 4968:return Ve(Ve(e,/(.+:)(flex-)?(.*)/,Be+"box-pack:$3"+ft+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Be+e+e;case 4095:case 3583:case 4068:case 2532:return Ve(e,/(.+)-inline(.+)/,Be+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Tt(e)-1-t>6)switch(ct(e,t+1)){case 109:if(ct(e,t+4)!==45)break;case 102:return Ve(e,/(.+:)(.+)-([^]+)/,"$1"+Be+"$2-$3$1"+mr+(ct(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ia(e,"stretch")?Wi(Ve(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ct(e,t+1)!==115)break;case 6444:switch(ct(e,Tt(e)-3-(~ia(e,"!important")&&10))){case 107:return Ve(e,":",":"+Be)+e;case 101:return Ve(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Be+(ct(e,14)===45?"inline-":"")+"box$3$1"+Be+"$2$3$1"+ft+"$2box$3")+e}break;case 5936:switch(ct(e,t+11)){case 114:return Be+e+ft+Ve(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Be+e+ft+Ve(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Be+e+ft+Ve(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Be+e+ft+e+e}return e}var Xc=function(t,r,a,n){if(t.length>-1&&!t.return)switch(t.type){case Ga:t.return=Wi(t.value,t.length);break;case Fi:return xn([jn(t,{value:Ve(t.value,"@","@"+Be)})],n);case Na:if(t.length)return wc(t.props,function(o){switch(Ac(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xn([jn(t,{props:[Ve(o,/:(read-\w+)/,":"+mr+"$1")]})],n);case"::placeholder":return xn([jn(t,{props:[Ve(o,/:(plac\w+)/,":"+Be+"input-$1")]}),jn(t,{props:[Ve(o,/:(plac\w+)/,":"+mr+"$1")]}),jn(t,{props:[Ve(o,/:(plac\w+)/,ft+"input-$1")]})],n)}return""})}},Hc=[Xc],Zc=function(t){var r=t.key;if(r==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(h){var p=h.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var n=t.stylisPlugins||Hc,o={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(h){for(var p=h.getAttribute("data-emotion").split(" "),x=1;x<p.length;x++)o[p[x]]=!0;l.push(h)});var s,c=[Wc,Lc];{var d,f=[Mc,Fc(function(h){d.insert(h)})],y=kc(c.concat(n,f)),C=function(p){return xn(Oc(p),y)};s=function(p,x,E,R){d=E,C(p?p+"{"+x.styles+"}":x.styles),R&&(b.inserted[x.name]=!0)}}var b={key:r,sheet:new vc({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:s};return b.sheet.hydrate(l),b},la={exports:{}},De={};/** @license React v16.13.1
|
|
30
|
+
<%s key={someKey} {...props} />`,pe,H,Re,H),j[H+pe]=!0}}return v===a?ln(g):sn(g),g}}function oe(v,D,J){return U(v,D,J,!0)}function Xe(v,D,J){return U(v,D,J,!1)}var rt=Xe,dt=oe;Gn.Fragment=a,Gn.jsx=rt,Gn.jsxs=dt}()),Gn}process.env.NODE_ENV==="production"?na.exports=pu():na.exports=gu();var u=na.exports;function hi(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=hi(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function mu(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=hi(e))&&(a&&(a+=" "),a+=t);return a}const wa="-",bu=e=>{const t=vu(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:i=>{const s=i.split(wa);return s[0]===""&&s.length!==1&&s.shift(),vi(s,t)||hu(i)},getConflictingClassGroupIds:(i,s)=>{const l=n[i]||[];return s&&a[i]?[...l,...a[i]]:l}}},vi=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],a=t.nextPart.get(n),r=a?vi(e.slice(1),a):void 0;if(r)return r;if(t.validators.length===0)return;const o=e.join(wa);return(i=t.validators.find(({validator:s})=>s(o)))==null?void 0:i.classGroupId},vo=/^\[(.+)\]$/,hu=e=>{if(vo.test(e)){const t=vo.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},vu=e=>{const{theme:t,prefix:n}=e,a={nextPart:new Map,validators:[]};return Cu(Object.entries(e.classGroups),n).forEach(([o,i])=>{ra(i,a,o,t)}),a},ra=(e,t,n,a)=>{e.forEach(r=>{if(typeof r=="string"){const o=r===""?t:yo(t,r);o.classGroupId=n;return}if(typeof r=="function"){if(yu(r)){ra(r(a),t,n,a);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([o,i])=>{ra(i,yo(t,o),n,a)})})},yo=(e,t)=>{let n=e;return t.split(wa).forEach(a=>{n.nextPart.has(a)||n.nextPart.set(a,{nextPart:new Map,validators:[]}),n=n.nextPart.get(a)}),n},yu=e=>e.isThemeGetter,Cu=(e,t)=>t?e.map(([n,a])=>{const r=a.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,s])=>[t+i,s])):o);return[n,r]}):e,xu=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,a=new Map;const r=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,a=n,n=new Map)};return{get(o){let i=n.get(o);if(i!==void 0)return i;if((i=a.get(o))!==void 0)return r(o,i),i},set(o,i){n.has(o)?n.set(o,i):r(o,i)}}},yi="!",Iu=e=>{const{separator:t,experimentalParseClassName:n}=e,a=t.length===1,r=t[0],o=t.length,i=s=>{const l=[];let c=0,d=0,f;for(let p=0;p<s.length;p++){let x=s[p];if(c===0){if(x===r&&(a||s.slice(p,p+o)===t)){l.push(s.slice(d,p)),d=p+o;continue}if(x==="/"){f=p;continue}}x==="["?c++:x==="]"&&c--}const y=l.length===0?s:s.substring(d),C=y.startsWith(yi),b=C?y.substring(1):y,h=f&&f>d?f-d:void 0;return{modifiers:l,hasImportantModifier:C,baseClassName:b,maybePostfixModifierPosition:h}};return n?s=>n({className:s,parseClassName:i}):i},Su=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(a=>{a[0]==="["?(t.push(...n.sort(),a),n=[]):n.push(a)}),t.push(...n.sort()),t},Au=e=>({cache:xu(e.cacheSize),parseClassName:Iu(e),...bu(e)}),wu=/\s+/,Eu=(e,t)=>{const{parseClassName:n,getClassGroupId:a,getConflictingClassGroupIds:r}=t,o=[],i=e.trim().split(wu);let s="";for(let l=i.length-1;l>=0;l-=1){const c=i[l],{modifiers:d,hasImportantModifier:f,baseClassName:y,maybePostfixModifierPosition:C}=n(c);let b=!!C,h=a(b?y.substring(0,C):y);if(!h){if(!b){s=c+(s.length>0?" "+s:s);continue}if(h=a(y),!h){s=c+(s.length>0?" "+s:s);continue}b=!1}const p=Su(d).join(":"),x=f?p+yi:p,E=x+h;if(o.includes(E))continue;o.push(E);const R=r(h,b);for(let A=0;A<R.length;++A){const I=R[A];o.push(x+I)}s=c+(s.length>0?" "+s:s)}return s};function Ru(){let e=0,t,n,a="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Ci(t))&&(a&&(a+=" "),a+=n);return a}const Ci=e=>{if(typeof e=="string")return e;let t,n="";for(let a=0;a<e.length;a++)e[a]&&(t=Ci(e[a]))&&(n&&(n+=" "),n+=t);return n};function Nu(e,...t){let n,a,r,o=i;function i(l){const c=t.reduce((d,f)=>f(d),e());return n=Au(c),a=n.cache.get,r=n.cache.set,o=s,s(l)}function s(l){const c=a(l);if(c)return c;const d=Eu(l,n);return r(l,d),d}return function(){return o(Ru.apply(null,arguments))}}const Qe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},xi=/^\[(?:([a-z-]+):)?(.+)\]$/i,Gu=/^\d+\/\d+$/,Pu=new Set(["px","full","screen"]),ju=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Tu=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ku=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Mu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ou=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Bt=e=>yn(e)||Pu.has(e)||Gu.test(e),Jt=e=>An(e,"length",Xu),yn=e=>!!e&&!Number.isNaN(Number(e)),Xr=e=>An(e,"number",yn),Pn=e=>!!e&&Number.isInteger(Number(e)),Fu=e=>e.endsWith("%")&&yn(e.slice(0,-1)),Te=e=>xi.test(e),Ut=e=>ju.test(e),Bu=new Set(["length","size","percentage"]),Vu=e=>An(e,Bu,Ii),Du=e=>An(e,"position",Ii),_u=new Set(["image","url"]),Wu=e=>An(e,_u,Zu),Lu=e=>An(e,"",Hu),jn=()=>!0,An=(e,t,n)=>{const a=xi.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):n(a[2]):!1},Xu=e=>Tu.test(e)&&!ku.test(e),Ii=()=>!1,Hu=e=>Mu.test(e),Zu=e=>Ou.test(e),zu=()=>{const e=Qe("colors"),t=Qe("spacing"),n=Qe("blur"),a=Qe("brightness"),r=Qe("borderColor"),o=Qe("borderRadius"),i=Qe("borderSpacing"),s=Qe("borderWidth"),l=Qe("contrast"),c=Qe("grayscale"),d=Qe("hueRotate"),f=Qe("invert"),y=Qe("gap"),C=Qe("gradientColorStops"),b=Qe("gradientColorStopPositions"),h=Qe("inset"),p=Qe("margin"),x=Qe("opacity"),E=Qe("padding"),R=Qe("saturate"),A=Qe("scale"),I=Qe("sepia"),M=Qe("skew"),B=Qe("space"),O=Qe("translate"),re=()=>["auto","contain","none"],ne=()=>["auto","hidden","clip","visible","scroll"],ue=()=>["auto",Te,t],z=()=>[Te,t],ie=()=>["",Bt,Jt],G=()=>["auto",yn,Te],T=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],V=()=>["solid","dashed","dotted","double","none"],$=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>["start","end","center","between","around","evenly","stretch"],we=()=>["","0",Te],_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>[yn,Te];return{cacheSize:500,separator:":",theme:{colors:[jn],spacing:[Bt,Jt],blur:["none","",Ut,Te],brightness:L(),borderColor:[e],borderRadius:["none","","full",Ut,Te],borderSpacing:z(),borderWidth:ie(),contrast:L(),grayscale:we(),hueRotate:L(),invert:we(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[Fu,Jt],inset:ue(),margin:ue(),opacity:L(),padding:z(),saturate:L(),scale:L(),sepia:we(),skew:L(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",Te]}],container:["container"],columns:[{columns:[Ut]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...T(),Te]}],overflow:[{overflow:ne()}],"overflow-x":[{"overflow-x":ne()}],"overflow-y":[{"overflow-y":ne()}],overscroll:[{overscroll:re()}],"overscroll-x":[{"overscroll-x":re()}],"overscroll-y":[{"overscroll-y":re()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Pn,Te]}],basis:[{basis:ue()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Te]}],grow:[{grow:we()}],shrink:[{shrink:we()}],order:[{order:["first","last","none",Pn,Te]}],"grid-cols":[{"grid-cols":[jn]}],"col-start-end":[{col:["auto",{span:["full",Pn,Te]},Te]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[jn]}],"row-start-end":[{row:["auto",{span:[Pn,Te]},Te]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Te]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...K()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...K(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...K(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[E]}],px:[{px:[E]}],py:[{py:[E]}],ps:[{ps:[E]}],pe:[{pe:[E]}],pt:[{pt:[E]}],pr:[{pr:[E]}],pb:[{pb:[E]}],pl:[{pl:[E]}],m:[{m:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[B]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[B]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Te,t]}],"min-w":[{"min-w":[Te,t,"min","max","fit"]}],"max-w":[{"max-w":[Te,t,"none","full","min","max","fit","prose",{screen:[Ut]},Ut]}],h:[{h:[Te,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Te,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Te,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Te,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ut,Jt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Xr]}],"font-family":[{font:[jn]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Te]}],"line-clamp":[{"line-clamp":["none",yn,Xr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Bt,Te]}],"list-image":[{"list-image":["none",Te]}],"list-style-type":[{list:["none","disc","decimal",Te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Bt,Jt]}],"underline-offset":[{"underline-offset":["auto",Bt,Te]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...T(),Du]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Vu]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Wu]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...V(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:V()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...V()]}],"outline-offset":[{"outline-offset":[Bt,Te]}],"outline-w":[{outline:[Bt,Jt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ie()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[Bt,Jt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ut,Lu]}],"shadow-color":[{shadow:[jn]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...$(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":$()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[a]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Ut,Te]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[R]}],sepia:[{sepia:[I]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[R]}],"backdrop-sepia":[{"backdrop-sepia":[I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Te]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",Te]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",Te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[Pn,Te]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[M]}],"skew-y":[{"skew-y":[M]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Te]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Te]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Te]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Bt,Jt,Xr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Yu=Nu(zu);function Me(...e){return Yu(mu(e))}const Si=S.forwardRef(({variant:e="primary",size:t="md",isLoading:n=!1,fullWidth:a=!1,className:r,children:o,...i},s)=>{const l="font-inter inline-flex items-center justify-center rounded-lg text-white font-semibold transition-colors focus:outline-none",c={primary:"bg-brand-500 hover:bg-brand-600",secondary:"bg-secondary-500 hover:bg-secondary-600",error:"bg-error-500 hover:bg-error-600",success:"bg-success-500 hover:bg-success-600",warning:"bg-warning-500 hover:bg-warning-600"},d={sm:"px-3 py-2 text-sm",md:"px-3.5 py-2.5 text-sm",lg:"px-4 py-2.5 text-base",xl:"px-5 py-3 text-base","2xl":"px-6 py-4 text-lg"},f=n?"opacity-70 cursor-not-allowed":"",y=a?"w-full":"";return u.jsx("button",{ref:s,className:Me(l,c[e],d[t],f,y,r),disabled:n||i.disabled,...i,children:o})});Si.displayName="Button";function Ju(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ai(...e){return t=>e.forEach(n=>Ju(n,t))}function wi(...e){return S.useCallback(Ai(...e),e)}var Ei=S.forwardRef((e,t)=>{const{children:n,...a}=e,r=S.Children.toArray(n),o=r.find($u);if(o){const i=o.props.children,s=r.map(l=>l===o?S.Children.count(i)>1?S.Children.only(null):S.isValidElement(i)?i.props.children:null:l);return u.jsx(aa,{...a,ref:t,children:S.isValidElement(i)?S.cloneElement(i,void 0,s):null})}return u.jsx(aa,{...a,ref:t,children:n})});Ei.displayName="Slot";var aa=S.forwardRef((e,t)=>{const{children:n,...a}=e;if(S.isValidElement(n)){const r=Ku(n);return S.cloneElement(n,{...Qu(a,n.props),ref:t?Ai(t,r):r})}return S.Children.count(n)>1?S.Children.only(null):null});aa.displayName="SlotClone";var Uu=({children:e})=>u.jsx(u.Fragment,{children:e});function $u(e){return S.isValidElement(e)&&e.type===Uu}function Qu(e,t){const n={...t};for(const a in t){const r=e[a],o=t[a];/^on[A-Z]/.test(a)?r&&o?n[a]=(...s)=>{o(...s),r(...s)}:r&&(n[a]=r):a==="style"?n[a]={...r,...o}:a==="className"&&(n[a]=[r,o].filter(Boolean).join(" "))}return{...e,...n}}function Ku(e){var a,r;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var qu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ea=qu.reduce((e,t)=>{const n=S.forwardRef((a,r)=>{const{asChild:o,...i}=a,s=o?Ei:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(s,{...i,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),ec="Separator",Co="horizontal",tc=["horizontal","vertical"],Ri=S.forwardRef((e,t)=>{const{decorative:n,orientation:a=Co,...r}=e,o=nc(a)?a:Co,s=n?{role:"none"}:{"aria-orientation":o==="vertical"?o:void 0,role:"separator"};return u.jsx(Ea.div,{"data-orientation":o,...s,...r,ref:t})});Ri.displayName=ec;function nc(e){return tc.includes(e)}var Ni=Ri;const Gi=S.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,text:a,...r},o)=>a?u.jsxs("div",{className:"flex items-center w-full",children:[u.jsx("div",{className:"flex-grow border-t border-grayWarm-200"}),u.jsx("span",{className:Me("px-4 text-grayWarm-500 text-sm font-normal",e),children:a}),u.jsx("div",{className:"flex-grow border-t border-grayWarm-200"})]}):u.jsx(Ni,{ref:o,decorative:n,orientation:t,className:Me("shrink-0 bg-border bg-grayWarm-200",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));Gi.displayName=Ni.displayName;const Ra=S.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:Me("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Ra.displayName="Card";const Na=S.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:Me("flex flex-col space-y-1.5 p-6",e),...t}));Na.displayName="CardHeader";const Pi=S.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:Me("font-semibold leading-none tracking-tight",e),...t}));Pi.displayName="CardTitle";const ji=S.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:Me("text-sm text-muted-foreground",e),...t}));ji.displayName="CardDescription";const Ga=S.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:Me("p-6 pt-0",e),...t}));Ga.displayName="CardContent";const Ti=S.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:Me("flex items-center p-6 pt-0",e),...t}));Ti.displayName="CardFooter";function dn(e){"@babel/helpers - typeof";return dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dn(e)}function rc(e,t){if(dn(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t);if(dn(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ki(e){var t=rc(e,"string");return dn(t)=="symbol"?t:t+""}function On(e,t,n){return(t=ki(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,a)}return n}function ye(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xo(Object(n),!0).forEach(function(a){On(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xo(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function ac(e){if(Array.isArray(e))return e}function oc(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a,r,o,i,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=o.call(n)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(d){c=!0,r=d}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw r}}return s}}function oa(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function Mi(e,t){if(e){if(typeof e=="string")return oa(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oa(e,t):void 0}}function ic(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
31
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dt(e,t){return ac(e)||oc(e,t)||Mi(e,t)||ic()}function sc(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;n[a]=e[a]}return n}function Wt(e,t){if(e==null)return{};var n,a,r=sc(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var lc=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function uc(e){var t=e.defaultInputValue,n=t===void 0?"":t,a=e.defaultMenuIsOpen,r=a===void 0?!1:a,o=e.defaultValue,i=o===void 0?null:o,s=e.inputValue,l=e.menuIsOpen,c=e.onChange,d=e.onInputChange,f=e.onMenuClose,y=e.onMenuOpen,C=e.value,b=Wt(e,lc),h=w.useState(s!==void 0?s:n),p=Dt(h,2),x=p[0],E=p[1],R=w.useState(l!==void 0?l:r),A=Dt(R,2),I=A[0],M=A[1],B=w.useState(C!==void 0?C:i),O=Dt(B,2),re=O[0],ne=O[1],ue=w.useCallback(function(K,we){typeof c=="function"&&c(K,we),ne(K)},[c]),z=w.useCallback(function(K,we){var _;typeof d=="function"&&(_=d(K,we)),E(_!==void 0?_:K)},[d]),ie=w.useCallback(function(){typeof y=="function"&&y(),M(!0)},[y]),G=w.useCallback(function(){typeof f=="function"&&f(),M(!1)},[f]),T=s!==void 0?s:x,V=l!==void 0?l:I,$=C!==void 0?C:re;return ye(ye({},b),{},{inputValue:T,menuIsOpen:V,onChange:ue,onInputChange:z,onMenuClose:G,onMenuOpen:ie,value:$})}function Ie(){return Ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Ie.apply(null,arguments)}function cc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Io(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,ki(a.key),a)}}function dc(e,t,n){return t&&Io(e.prototype,t),n&&Io(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ia(e,t){return ia=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},ia(e,t)}function fc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ia(e,t)}function mr(e){return mr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},mr(e)}function Oi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Oi=function(){return!!e})()}function pc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gc(e,t){if(t&&(dn(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pc(e)}function mc(e){var t=Oi();return function(){var n,a=mr(e);if(t){var r=mr(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return gc(this,n)}}function bc(e){if(Array.isArray(e))return oa(e)}function hc(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vc(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
32
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pa(e){return bc(e)||hc(e)||Mi(e)||vc()}function yc(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Cc(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var xc=function(){function e(n){var a=this;this._insertTag=function(r){var o;a.tags.length===0?a.insertionPoint?o=a.insertionPoint.nextSibling:a.prepend?o=a.container.firstChild:o=a.before:o=a.tags[a.tags.length-1].nextSibling,a.container.insertBefore(r,o),a.tags.push(r)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(a){a.forEach(this._insertTag)},t.insert=function(a){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Cc(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=yc(r);try{o.insertRule(a,o.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(a));this.ctr++},t.flush=function(){this.tags.forEach(function(a){var r;return(r=a.parentNode)==null?void 0:r.removeChild(a)}),this.tags=[],this.ctr=0},e}(),ft="-ms-",br="-moz-",Be="-webkit-",Fi="comm",ja="rule",Ta="decl",Ic="@import",Bi="@keyframes",Sc="@layer",Ac=Math.abs,Rr=String.fromCharCode,wc=Object.assign;function Ec(e,t){return ct(e,0)^45?(((t<<2^ct(e,0))<<2^ct(e,1))<<2^ct(e,2))<<2^ct(e,3):0}function Vi(e){return e.trim()}function Rc(e,t){return(e=t.exec(e))?e[0]:e}function Ve(e,t,n){return e.replace(t,n)}function sa(e,t){return e.indexOf(t)}function ct(e,t){return e.charCodeAt(t)|0}function Fn(e,t,n){return e.slice(t,n)}function jt(e){return e.length}function ka(e){return e.length}function rr(e,t){return t.push(e),e}function Nc(e,t){return e.map(t).join("")}var Nr=1,xn=1,Di=0,bt=0,at=0,wn="";function Gr(e,t,n,a,r,o,i){return{value:e,root:t,parent:n,type:a,props:r,children:o,line:Nr,column:xn,length:i,return:""}}function Tn(e,t){return wc(Gr("",null,null,"",null,null,0),e,{length:-e.length},t)}function Gc(){return at}function Pc(){return at=bt>0?ct(wn,--bt):0,xn--,at===10&&(xn=1,Nr--),at}function yt(){return at=bt<Di?ct(wn,bt++):0,xn++,at===10&&(xn=1,Nr++),at}function kt(){return ct(wn,bt)}function cr(){return bt}function Ln(e,t){return Fn(wn,e,t)}function Bn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function _i(e){return Nr=xn=1,Di=jt(wn=e),bt=0,[]}function Wi(e){return wn="",e}function dr(e){return Vi(Ln(bt-1,la(e===91?e+2:e===40?e+1:e)))}function jc(e){for(;(at=kt())&&at<33;)yt();return Bn(e)>2||Bn(at)>3?"":" "}function Tc(e,t){for(;--t&&yt()&&!(at<48||at>102||at>57&&at<65||at>70&&at<97););return Ln(e,cr()+(t<6&&kt()==32&&yt()==32))}function la(e){for(;yt();)switch(at){case e:return bt;case 34:case 39:e!==34&&e!==39&&la(at);break;case 40:e===41&&la(e);break;case 92:yt();break}return bt}function kc(e,t){for(;yt()&&e+at!==57;)if(e+at===84&&kt()===47)break;return"/*"+Ln(t,bt-1)+"*"+Rr(e===47?e:yt())}function Mc(e){for(;!Bn(kt());)yt();return Ln(e,bt)}function Oc(e){return Wi(fr("",null,null,null,[""],e=_i(e),0,[0],e))}function fr(e,t,n,a,r,o,i,s,l){for(var c=0,d=0,f=i,y=0,C=0,b=0,h=1,p=1,x=1,E=0,R="",A=r,I=o,M=a,B=R;p;)switch(b=E,E=yt()){case 40:if(b!=108&&ct(B,f-1)==58){sa(B+=Ve(dr(E),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:B+=dr(E);break;case 9:case 10:case 13:case 32:B+=jc(b);break;case 92:B+=Tc(cr()-1,7);continue;case 47:switch(kt()){case 42:case 47:rr(Fc(kc(yt(),cr()),t,n),l);break;default:B+="/"}break;case 123*h:s[c++]=jt(B)*x;case 125*h:case 59:case 0:switch(E){case 0:case 125:p=0;case 59+d:x==-1&&(B=Ve(B,/\f/g,"")),C>0&&jt(B)-f&&rr(C>32?Ao(B+";",a,n,f-1):Ao(Ve(B," ","")+";",a,n,f-2),l);break;case 59:B+=";";default:if(rr(M=So(B,t,n,c,d,r,s,R,A=[],I=[],f),o),E===123)if(d===0)fr(B,t,M,M,A,o,f,s,I);else switch(y===99&&ct(B,3)===110?100:y){case 100:case 108:case 109:case 115:fr(e,M,M,a&&rr(So(e,M,M,0,0,r,s,R,r,A=[],f),I),r,I,f,s,a?A:I);break;default:fr(B,M,M,M,[""],I,0,s,I)}}c=d=C=0,h=x=1,R=B="",f=i;break;case 58:f=1+jt(B),C=b;default:if(h<1){if(E==123)--h;else if(E==125&&h++==0&&Pc()==125)continue}switch(B+=Rr(E),E*h){case 38:x=d>0?1:(B+="\f",-1);break;case 44:s[c++]=(jt(B)-1)*x,x=1;break;case 64:kt()===45&&(B+=dr(yt())),y=kt(),d=f=jt(R=B+=Mc(cr())),E++;break;case 45:b===45&&jt(B)==2&&(h=0)}}return o}function So(e,t,n,a,r,o,i,s,l,c,d){for(var f=r-1,y=r===0?o:[""],C=ka(y),b=0,h=0,p=0;b<a;++b)for(var x=0,E=Fn(e,f+1,f=Ac(h=i[b])),R=e;x<C;++x)(R=Vi(h>0?y[x]+" "+E:Ve(E,/&\f/g,y[x])))&&(l[p++]=R);return Gr(e,t,n,r===0?ja:s,l,c,d)}function Fc(e,t,n){return Gr(e,t,n,Fi,Rr(Gc()),Fn(e,2,-2),0)}function Ao(e,t,n,a){return Gr(e,t,n,Ta,Fn(e,0,a),Fn(e,a+1,-1),a)}function Cn(e,t){for(var n="",a=ka(e),r=0;r<a;r++)n+=t(e[r],r,e,t)||"";return n}function Bc(e,t,n,a){switch(e.type){case Sc:if(e.children.length)break;case Ic:case Ta:return e.return=e.return||e.value;case Fi:return"";case Bi:return e.return=e.value+"{"+Cn(e.children,a)+"}";case ja:e.value=e.props.join(",")}return jt(n=Cn(e.children,a))?e.return=e.value+"{"+n+"}":""}function Vc(e){var t=ka(e);return function(n,a,r,o){for(var i="",s=0;s<t;s++)i+=e[s](n,a,r,o)||"";return i}}function Dc(e){return function(t){t.root||(t=t.return)&&e(t)}}function _c(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Wc=function(t,n,a){for(var r=0,o=0;r=o,o=kt(),r===38&&o===12&&(n[a]=1),!Bn(o);)yt();return Ln(t,bt)},Lc=function(t,n){var a=-1,r=44;do switch(Bn(r)){case 0:r===38&&kt()===12&&(n[a]=1),t[a]+=Wc(bt-1,n,a);break;case 2:t[a]+=dr(r);break;case 4:if(r===44){t[++a]=kt()===58?"&\f":"",n[a]=t[a].length;break}default:t[a]+=Rr(r)}while(r=yt());return t},Xc=function(t,n){return Wi(Lc(_i(t),n))},wo=new WeakMap,Hc=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,a=t.parent,r=t.column===a.column&&t.line===a.line;a.type!=="rule";)if(a=a.parent,!a)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!wo.get(a))&&!r){wo.set(t,!0);for(var o=[],i=Xc(n,o),s=a.props,l=0,c=0;l<i.length;l++)for(var d=0;d<s.length;d++,c++)t.props[c]=o[l]?i[l].replace(/&\f/g,s[d]):s[d]+" "+i[l]}}},Zc=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Li(e,t){switch(Ec(e,t)){case 5103:return Be+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Be+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Be+e+br+e+ft+e+e;case 6828:case 4268:return Be+e+ft+e+e;case 6165:return Be+e+ft+"flex-"+e+e;case 5187:return Be+e+Ve(e,/(\w+).+(:[^]+)/,Be+"box-$1$2"+ft+"flex-$1$2")+e;case 5443:return Be+e+ft+"flex-item-"+Ve(e,/flex-|-self/,"")+e;case 4675:return Be+e+ft+"flex-line-pack"+Ve(e,/align-content|flex-|-self/,"")+e;case 5548:return Be+e+ft+Ve(e,"shrink","negative")+e;case 5292:return Be+e+ft+Ve(e,"basis","preferred-size")+e;case 6060:return Be+"box-"+Ve(e,"-grow","")+Be+e+ft+Ve(e,"grow","positive")+e;case 4554:return Be+Ve(e,/([^-])(transform)/g,"$1"+Be+"$2")+e;case 6187:return Ve(Ve(Ve(e,/(zoom-|grab)/,Be+"$1"),/(image-set)/,Be+"$1"),e,"")+e;case 5495:case 3959:return Ve(e,/(image-set\([^]*)/,Be+"$1$`$1");case 4968:return Ve(Ve(e,/(.+:)(flex-)?(.*)/,Be+"box-pack:$3"+ft+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Be+e+e;case 4095:case 3583:case 4068:case 2532:return Ve(e,/(.+)-inline(.+)/,Be+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(jt(e)-1-t>6)switch(ct(e,t+1)){case 109:if(ct(e,t+4)!==45)break;case 102:return Ve(e,/(.+:)(.+)-([^]+)/,"$1"+Be+"$2-$3$1"+br+(ct(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~sa(e,"stretch")?Li(Ve(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ct(e,t+1)!==115)break;case 6444:switch(ct(e,jt(e)-3-(~sa(e,"!important")&&10))){case 107:return Ve(e,":",":"+Be)+e;case 101:return Ve(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Be+(ct(e,14)===45?"inline-":"")+"box$3$1"+Be+"$2$3$1"+ft+"$2box$3")+e}break;case 5936:switch(ct(e,t+11)){case 114:return Be+e+ft+Ve(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Be+e+ft+Ve(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Be+e+ft+Ve(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Be+e+ft+e+e}return e}var zc=function(t,n,a,r){if(t.length>-1&&!t.return)switch(t.type){case Ta:t.return=Li(t.value,t.length);break;case Bi:return Cn([Tn(t,{value:Ve(t.value,"@","@"+Be)})],r);case ja:if(t.length)return Nc(t.props,function(o){switch(Rc(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Cn([Tn(t,{props:[Ve(o,/:(read-\w+)/,":"+br+"$1")]})],r);case"::placeholder":return Cn([Tn(t,{props:[Ve(o,/:(plac\w+)/,":"+Be+"input-$1")]}),Tn(t,{props:[Ve(o,/:(plac\w+)/,":"+br+"$1")]}),Tn(t,{props:[Ve(o,/:(plac\w+)/,ft+"input-$1")]})],r)}return""})}},Yc=[zc],Jc=function(t){var n=t.key;if(n==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(h){var p=h.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var r=t.stylisPlugins||Yc,o={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var p=h.getAttribute("data-emotion").split(" "),x=1;x<p.length;x++)o[p[x]]=!0;s.push(h)});var l,c=[Hc,Zc];{var d,f=[Bc,Dc(function(h){d.insert(h)})],y=Vc(c.concat(r,f)),C=function(p){return Cn(Oc(p),y)};l=function(p,x,E,R){d=E,C(p?p+"{"+x.styles+"}":x.styles),R&&(b.inserted[x.name]=!0)}}var b={key:n,sheet:new xc({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return b.sheet.hydrate(s),b},ua={exports:{}},_e={};/** @license React v16.13.1
|
|
33
33
|
* react-is.production.min.js
|
|
34
34
|
*
|
|
35
35
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
36
36
|
*
|
|
37
37
|
* This source code is licensed under the MIT license found in the
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
|
39
|
-
*/var
|
|
39
|
+
*/var Eo;function Uc(){if(Eo)return _e;Eo=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function R(I){if(typeof I=="object"&&I!==null){var M=I.$$typeof;switch(M){case t:switch(I=I.type,I){case l:case c:case a:case o:case r:case f:return I;default:switch(I=I&&I.$$typeof,I){case s:case d:case b:case C:case i:return I;default:return M}}case n:return M}}}function A(I){return R(I)===c}return _e.AsyncMode=l,_e.ConcurrentMode=c,_e.ContextConsumer=s,_e.ContextProvider=i,_e.Element=t,_e.ForwardRef=d,_e.Fragment=a,_e.Lazy=b,_e.Memo=C,_e.Portal=n,_e.Profiler=o,_e.StrictMode=r,_e.Suspense=f,_e.isAsyncMode=function(I){return A(I)||R(I)===l},_e.isConcurrentMode=A,_e.isContextConsumer=function(I){return R(I)===s},_e.isContextProvider=function(I){return R(I)===i},_e.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===t},_e.isForwardRef=function(I){return R(I)===d},_e.isFragment=function(I){return R(I)===a},_e.isLazy=function(I){return R(I)===b},_e.isMemo=function(I){return R(I)===C},_e.isPortal=function(I){return R(I)===n},_e.isProfiler=function(I){return R(I)===o},_e.isStrictMode=function(I){return R(I)===r},_e.isSuspense=function(I){return R(I)===f},_e.isValidElementType=function(I){return typeof I=="string"||typeof I=="function"||I===a||I===c||I===o||I===r||I===f||I===y||typeof I=="object"&&I!==null&&(I.$$typeof===b||I.$$typeof===C||I.$$typeof===i||I.$$typeof===s||I.$$typeof===d||I.$$typeof===p||I.$$typeof===x||I.$$typeof===E||I.$$typeof===h)},_e.typeOf=R,_e}var We={};/** @license React v16.13.1
|
|
40
40
|
* react-is.development.js
|
|
41
41
|
*
|
|
42
42
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
43
43
|
*
|
|
44
44
|
* This source code is licensed under the MIT license found in the
|
|
45
45
|
* LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/var Eo;function Yc(){return Eo||(Eo=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function R(X){return typeof X=="string"||typeof X=="function"||X===a||X===c||X===o||X===n||X===f||X===y||typeof X=="object"&&X!==null&&(X.$$typeof===b||X.$$typeof===C||X.$$typeof===i||X.$$typeof===l||X.$$typeof===d||X.$$typeof===p||X.$$typeof===x||X.$$typeof===E||X.$$typeof===h)}function A(X){if(typeof X=="object"&&X!==null){var je=X.$$typeof;switch(je){case t:var Ae=X.type;switch(Ae){case s:case c:case a:case o:case n:case f:return Ae;default:var P=Ae&&Ae.$$typeof;switch(P){case l:case d:case b:case C:case i:return P;default:return je}}case r:return je}}}var I=s,j=c,F=l,M=i,oe=t,re=d,ce=a,z=b,le=C,G=r,O=o,V=n,$=f,ne=!1;function Ie(X){return ne||(ne=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),_(X)||A(X)===s}function _(X){return A(X)===c}function W(X){return A(X)===l}function Z(X){return A(X)===i}function ae(X){return typeof X=="object"&&X!==null&&X.$$typeof===t}function L(X){return A(X)===d}function m(X){return A(X)===a}function pe(X){return A(X)===b}function Y(X){return A(X)===C}function K(X){return A(X)===r}function me(X){return A(X)===o}function ye(X){return A(X)===n}function Te(X){return A(X)===f}We.AsyncMode=I,We.ConcurrentMode=j,We.ContextConsumer=F,We.ContextProvider=M,We.Element=oe,We.ForwardRef=re,We.Fragment=ce,We.Lazy=z,We.Memo=le,We.Portal=G,We.Profiler=O,We.StrictMode=V,We.Suspense=$,We.isAsyncMode=Ie,We.isConcurrentMode=_,We.isContextConsumer=W,We.isContextProvider=Z,We.isElement=ae,We.isForwardRef=L,We.isFragment=m,We.isLazy=pe,We.isMemo=Y,We.isPortal=K,We.isProfiler=me,We.isStrictMode=ye,We.isSuspense=Te,We.isValidElementType=R,We.typeOf=A}()),We}process.env.NODE_ENV==="production"?la.exports=zc():la.exports=Yc();var Jc=la.exports,Li=Jc,Uc={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},$c={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Xi={};Xi[Li.ForwardRef]=Uc;Xi[Li.Memo]=$c;var Qc=!0;function Kc(e,t,r){var a="";return r.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):n&&(a+=n+" ")}),a}var Hi=function(t,r,a){var n=t.key+"-"+r.name;(a===!1||Qc===!1)&&t.registered[n]===void 0&&(t.registered[n]=r.styles)},qc=function(t,r,a){Hi(t,r,a);var n=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+n:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function ed(e){for(var t=0,r,a=0,n=e.length;n>=4;++a,n-=4)r=e.charCodeAt(a)&255|(e.charCodeAt(++a)&255)<<8|(e.charCodeAt(++a)&255)<<16|(e.charCodeAt(++a)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(a+2)&255)<<16;case 2:t^=(e.charCodeAt(a+1)&255)<<8;case 1:t^=e.charCodeAt(a)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var td={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},nd=/[A-Z]|^ms/g,rd=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Zi=function(t){return t.charCodeAt(1)===45},Ro=function(t){return t!=null&&typeof t!="boolean"},Xr=Bc(function(e){return Zi(e)?e:e.replace(nd,"-$&").toLowerCase()}),No=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(rd,function(a,n,o){return Ot={name:n,styles:o,next:Ot},n})}return td[t]!==1&&!Zi(t)&&typeof r=="number"&&r!==0?r+"px":r};function _n(e,t,r){if(r==null)return"";var a=r;if(a.__emotion_styles!==void 0)return a;switch(typeof r){case"boolean":return"";case"object":{var n=r;if(n.anim===1)return Ot={name:n.name,styles:n.styles,next:Ot},n.name;var o=r;if(o.styles!==void 0){var i=o.next;if(i!==void 0)for(;i!==void 0;)Ot={name:i.name,styles:i.styles,next:Ot},i=i.next;var l=o.styles+";";return l}return ad(e,t,r)}case"function":{if(e!==void 0){var s=Ot,c=r(e);return Ot=s,_n(e,t,c)}break}}var d=r;return d}function ad(e,t,r){var a="";if(Array.isArray(r))for(var n=0;n<r.length;n++)a+=_n(e,t,r[n])+";";else for(var o in r){var i=r[o];if(typeof i!="object"){var l=i;Ro(l)&&(a+=Xr(o)+":"+No(o,l)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var s=0;s<i.length;s++)Ro(i[s])&&(a+=Xr(o)+":"+No(o,i[s])+";");else{var c=_n(e,t,i);switch(o){case"animation":case"animationName":{a+=Xr(o)+":"+c+";";break}default:a+=o+"{"+c+"}"}}}return a}var Go=/label:\s*([^\s;{]+)\s*(;|$)/g,Ot;function zi(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var a=!0,n="";Ot=void 0;var o=e[0];if(o==null||o.raw===void 0)a=!1,n+=_n(r,t,o);else{var i=o;n+=i[0]}for(var l=1;l<e.length;l++)if(n+=_n(r,t,e[l]),a){var s=o;n+=s[l]}Go.lastIndex=0;for(var c="",d;(d=Go.exec(n))!==null;)c+="-"+d[1];var f=ed(n)+c;return{name:f,styles:n,next:Ot}}var od=function(t){return t()},id=S.useInsertionEffect?S.useInsertionEffect:!1,sd=id||od,Yi=S.createContext(typeof HTMLElement<"u"?Zc({key:"css"}):null);Yi.Provider;var ld=function(t){return w.forwardRef(function(r,a){var n=w.useContext(Yi);return t(r,n,a)})},ud=S.createContext({}),Ta={}.hasOwnProperty,ua="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",cd=function(t,r){var a={};for(var n in r)Ta.call(r,n)&&(a[n]=r[n]);return a[ua]=t,a},dd=function(t){var r=t.cache,a=t.serialized,n=t.isStringTag;return Hi(r,a,n),sd(function(){return qc(r,a,n)}),null},fd=ld(function(e,t,r){var a=e.css;typeof a=="string"&&t.registered[a]!==void 0&&(a=t.registered[a]);var n=e[ua],o=[a],i="";typeof e.className=="string"?i=Kc(t.registered,o,e.className):e.className!=null&&(i=e.className+" ");var l=zi(o,void 0,S.useContext(ud));i+=t.key+"-"+l.name;var s={};for(var c in e)Ta.call(e,c)&&c!=="css"&&c!==ua&&(s[c]=e[c]);return s.className=i,r&&(s.ref=r),S.createElement(S.Fragment,null,S.createElement(dd,{cache:t,serialized:l,isStringTag:typeof n=="string"}),S.createElement(n,s))}),pd=fd,ge=function(t,r){var a=arguments;if(r==null||!Ta.call(r,"css"))return S.createElement.apply(void 0,a);var n=a.length,o=new Array(n);o[0]=pd,o[1]=cd(t,r);for(var i=2;i<n;i++)o[i]=a[i];return S.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(ge||(ge={}));function Oa(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return zi(t)}function gd(){var e=Oa.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function md(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const bd=Math.min,hd=Math.max,br=Math.round,rr=Math.floor,hr=e=>({x:e,y:e});function vd(e){const{x:t,y:r,width:a,height:n}=e;return{width:a,height:n,top:r,left:t,right:t+a,bottom:r+n,x:t,y:r}}function Gr(){return typeof window<"u"}function Ji(e){return $i(e)?(e.nodeName||"").toLowerCase():"#document"}function Wt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ui(e){var t;return(t=($i(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $i(e){return Gr()?e instanceof Node||e instanceof Wt(e).Node:!1}function yd(e){return Gr()?e instanceof Element||e instanceof Wt(e).Element:!1}function ja(e){return Gr()?e instanceof HTMLElement||e instanceof Wt(e).HTMLElement:!1}function Po(e){return!Gr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Wt(e).ShadowRoot}function Qi(e){const{overflow:t,overflowX:r,overflowY:a,display:n}=Ma(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+r)&&!["inline","contents"].includes(n)}function Cd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function xd(e){return["html","body","#document"].includes(Ji(e))}function Ma(e){return Wt(e).getComputedStyle(e)}function Id(e){if(Ji(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Po(e)&&e.host||Ui(e);return Po(t)?t.host:t}function Ki(e){const t=Id(e);return xd(t)?e.ownerDocument?e.ownerDocument.body:e.body:ja(t)&&Qi(t)?t:Ki(t)}function vr(e,t,r){var a;t===void 0&&(t=[]),r===void 0&&(r=!0);const n=Ki(e),o=n===((a=e.ownerDocument)==null?void 0:a.body),i=Wt(n);if(o){const l=ca(i);return t.concat(i,i.visualViewport||[],Qi(n)?n:[],l&&r?vr(l):[])}return t.concat(n,vr(n,[],r))}function ca(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Sd(e){const t=Ma(e);let r=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const n=ja(e),o=n?e.offsetWidth:r,i=n?e.offsetHeight:a,l=br(r)!==o||br(a)!==i;return l&&(r=o,a=i),{width:r,height:a,$:l}}function ka(e){return yd(e)?e:e.contextElement}function To(e){const t=ka(e);if(!ja(t))return hr(1);const r=t.getBoundingClientRect(),{width:a,height:n,$:o}=Sd(t);let i=(o?br(r.width):r.width)/a,l=(o?br(r.height):r.height)/n;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const Ad=hr(0);function wd(e){const t=Wt(e);return!Cd()||!t.visualViewport?Ad:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ed(e,t,r){return!1}function Oo(e,t,r,a){t===void 0&&(t=!1);const n=e.getBoundingClientRect(),o=ka(e);let i=hr(1);t&&(i=To(e));const l=Ed()?wd(o):hr(0);let s=(n.left+l.x)/i.x,c=(n.top+l.y)/i.y,d=n.width/i.x,f=n.height/i.y;if(o){const y=Wt(o),C=a;let b=y,h=ca(b);for(;h&&a&&C!==b;){const p=To(h),x=h.getBoundingClientRect(),E=Ma(h),R=x.left+(h.clientLeft+parseFloat(E.paddingLeft))*p.x,A=x.top+(h.clientTop+parseFloat(E.paddingTop))*p.y;s*=p.x,c*=p.y,d*=p.x,f*=p.y,s+=R,c+=A,b=Wt(h),h=ca(b)}}return vd({width:d,height:f,x:s,y:c})}function Rd(e,t){let r=null,a;const n=Ui(e);function o(){var l;clearTimeout(a),(l=r)==null||l.disconnect(),r=null}function i(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),o();const{left:c,top:d,width:f,height:y}=e.getBoundingClientRect();if(l||t(),!f||!y)return;const C=rr(d),b=rr(n.clientWidth-(c+f)),h=rr(n.clientHeight-(d+y)),p=rr(c),E={rootMargin:-C+"px "+-b+"px "+-h+"px "+-p+"px",threshold:hd(0,bd(1,s))||1};let R=!0;function A(I){const j=I[0].intersectionRatio;if(j!==s){if(!R)return i();j?i(!1,j):a=setTimeout(()=>{i(!1,1e-7)},1e3)}R=!1}try{r=new IntersectionObserver(A,{...E,root:n.ownerDocument})}catch{r=new IntersectionObserver(A,E)}r.observe(e)}return i(!0),o}function Nd(e,t,r,a){a===void 0&&(a={});const{ancestorScroll:n=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=a,c=ka(e),d=n||o?[...c?vr(c):[],...vr(t)]:[];d.forEach(x=>{n&&x.addEventListener("scroll",r,{passive:!0}),o&&x.addEventListener("resize",r)});const f=c&&l?Rd(c,r):null;let y=-1,C=null;i&&(C=new ResizeObserver(x=>{let[E]=x;E&&E.target===c&&C&&(C.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var R;(R=C)==null||R.observe(t)})),r()}),c&&!s&&C.observe(c),C.observe(t));let b,h=s?Oo(e):null;s&&p();function p(){const x=Oo(e);h&&(x.x!==h.x||x.y!==h.y||x.width!==h.width||x.height!==h.height)&&r(),h=x,b=requestAnimationFrame(p)}return r(),()=>{var x;d.forEach(E=>{n&&E.removeEventListener("scroll",r),o&&E.removeEventListener("resize",r)}),f==null||f(),(x=C)==null||x.disconnect(),C=null,s&&cancelAnimationFrame(b)}}var da=w.useLayoutEffect,Gd=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],yr=function(){};function Pd(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Td(e,t){for(var r=arguments.length,a=new Array(r>2?r-2:0),n=2;n<r;n++)a[n-2]=arguments[n];var o=[].concat(a);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&o.push("".concat(Pd(e,i)));return o.filter(function(l){return l}).map(function(l){return String(l).trim()}).join(" ")}var jo=function(t){return Dd(t)?t.filter(Boolean):fn(t)==="object"&&t!==null?[t]:[]},qi=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var r=Lt(t,Gd);return ve({},r)},nt=function(t,r,a){var n=t.cx,o=t.getStyles,i=t.getClassNames,l=t.className;return{css:o(r,t),className:n(a??{},i(r,t),l)}};function Pr(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Od(e){return Pr(e)?window.innerHeight:e.clientHeight}function es(e){return Pr(e)?window.pageYOffset:e.scrollTop}function Cr(e,t){if(Pr(e)){window.scrollTo(0,t);return}e.scrollTop=t}function jd(e){var t=getComputedStyle(e),r=t.position==="absolute",a=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var n=e;n=n.parentElement;)if(t=getComputedStyle(n),!(r&&t.position==="static")&&a.test(t.overflow+t.overflowY+t.overflowX))return n;return document.documentElement}function Md(e,t,r,a){return r*((e=e/a-1)*e*e+1)+t}function ar(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:yr,n=es(e),o=t-n,i=10,l=0;function s(){l+=i;var c=Md(l,n,o,r);Cr(e,c),l<r?window.requestAnimationFrame(s):a(e)}s()}function Mo(e,t){var r=e.getBoundingClientRect(),a=t.getBoundingClientRect(),n=t.offsetHeight/3;a.bottom+n>r.bottom?Cr(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+n,e.scrollHeight)):a.top-n<r.top&&Cr(e,Math.max(t.offsetTop-n,0))}function kd(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function ko(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Fd(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var ts=!1,Bd={get passive(){return ts=!0}},or=typeof window<"u"?window:{};or.addEventListener&&or.removeEventListener&&(or.addEventListener("p",yr,Bd),or.removeEventListener("p",yr,!1));var Vd=ts;function _d(e){return e!=null}function Dd(e){return Array.isArray(e)}function ir(e,t,r){return e?t:r}var Wd=function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),n=1;n<r;n++)a[n-1]=arguments[n];var o=Object.entries(t).filter(function(i){var l=_t(i,1),s=l[0];return!a.includes(s)});return o.reduce(function(i,l){var s=_t(l,2),c=s[0],d=s[1];return i[c]=d,i},{})},Ld=["children","innerProps"],Xd=["children","innerProps"];function Hd(e){var t=e.maxHeight,r=e.menuEl,a=e.minHeight,n=e.placement,o=e.shouldScroll,i=e.isFixedPosition,l=e.controlHeight,s=jd(r),c={placement:"bottom",maxHeight:t};if(!r||!r.offsetParent)return c;var d=s.getBoundingClientRect(),f=d.height,y=r.getBoundingClientRect(),C=y.bottom,b=y.height,h=y.top,p=r.offsetParent.getBoundingClientRect(),x=p.top,E=i?window.innerHeight:Od(s),R=es(s),A=parseInt(getComputedStyle(r).marginBottom,10),I=parseInt(getComputedStyle(r).marginTop,10),j=x-I,F=E-h,M=j+R,oe=f-R-h,re=C-E+R+A,ce=R+h-I,z=160;switch(n){case"auto":case"bottom":if(F>=b)return{placement:"bottom",maxHeight:t};if(oe>=b&&!i)return o&&ar(s,re,z),{placement:"bottom",maxHeight:t};if(!i&&oe>=a||i&&F>=a){o&&ar(s,re,z);var le=i?F-A:oe-A;return{placement:"bottom",maxHeight:le}}if(n==="auto"||i){var G=t,O=i?j:M;return O>=a&&(G=Math.min(O-A-l,t)),{placement:"top",maxHeight:G}}if(n==="bottom")return o&&Cr(s,re),{placement:"bottom",maxHeight:t};break;case"top":if(j>=b)return{placement:"top",maxHeight:t};if(M>=b&&!i)return o&&ar(s,ce,z),{placement:"top",maxHeight:t};if(!i&&M>=a||i&&j>=a){var V=t;return(!i&&M>=a||i&&j>=a)&&(V=i?j-I:M-I),o&&ar(s,ce,z),{placement:"top",maxHeight:V}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(n,'".'))}return c}function Zd(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var ns=function(t){return t==="auto"?"bottom":t},zd=function(t,r){var a,n=t.placement,o=t.theme,i=o.borderRadius,l=o.spacing,s=o.colors;return ve((a={label:"menu"},Fn(a,Zd(n),"100%"),Fn(a,"position","absolute"),Fn(a,"width","100%"),Fn(a,"zIndex",1),a),r?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},rs=w.createContext(null),Yd=function(t){var r=t.children,a=t.minMenuHeight,n=t.maxMenuHeight,o=t.menuPlacement,i=t.menuPosition,l=t.menuShouldScrollIntoView,s=t.theme,c=w.useContext(rs)||{},d=c.setPortalPlacement,f=w.useRef(null),y=w.useState(n),C=_t(y,2),b=C[0],h=C[1],p=w.useState(null),x=_t(p,2),E=x[0],R=x[1],A=s.spacing.controlHeight;return da(function(){var I=f.current;if(I){var j=i==="fixed",F=l&&!j,M=Hd({maxHeight:n,menuEl:I,minHeight:a,placement:o,shouldScroll:F,isFixedPosition:j,controlHeight:A});h(M.maxHeight),R(M.placement),d==null||d(M.placement)}},[n,o,i,l,a,d,A]),r({ref:f,placerProps:ve(ve({},t),{},{placement:E||ns(o),maxHeight:b})})},Jd=function(t){var r=t.children,a=t.innerRef,n=t.innerProps;return ge("div",xe({},nt(t,"menu",{menu:!0}),{ref:a},n),r)},Ud=Jd,$d=function(t,r){var a=t.maxHeight,n=t.theme.spacing.baseUnit;return ve({maxHeight:a,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:n,paddingTop:n})},Qd=function(t){var r=t.children,a=t.innerProps,n=t.innerRef,o=t.isMulti;return ge("div",xe({},nt(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:n},a),r)},as=function(t,r){var a=t.theme,n=a.spacing.baseUnit,o=a.colors;return ve({textAlign:"center"},r?{}:{color:o.neutral40,padding:"".concat(n*2,"px ").concat(n*3,"px")})},Kd=as,qd=as,ef=function(t){var r=t.children,a=r===void 0?"No options":r,n=t.innerProps,o=Lt(t,Ld);return ge("div",xe({},nt(ve(ve({},o),{},{children:a,innerProps:n}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),a)},tf=function(t){var r=t.children,a=r===void 0?"Loading...":r,n=t.innerProps,o=Lt(t,Xd);return ge("div",xe({},nt(ve(ve({},o),{},{children:a,innerProps:n}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),a)},nf=function(t){var r=t.rect,a=t.offset,n=t.position;return{left:r.left,position:n,top:a,width:r.width,zIndex:1}},rf=function(t){var r=t.appendTo,a=t.children,n=t.controlElement,o=t.innerProps,i=t.menuPlacement,l=t.menuPosition,s=w.useRef(null),c=w.useRef(null),d=w.useState(ns(i)),f=_t(d,2),y=f[0],C=f[1],b=w.useMemo(function(){return{setPortalPlacement:C}},[]),h=w.useState(null),p=_t(h,2),x=p[0],E=p[1],R=w.useCallback(function(){if(n){var F=kd(n),M=l==="fixed"?0:window.pageYOffset,oe=F[y]+M;(oe!==(x==null?void 0:x.offset)||F.left!==(x==null?void 0:x.rect.left)||F.width!==(x==null?void 0:x.rect.width))&&E({offset:oe,rect:F})}},[n,l,y,x==null?void 0:x.offset,x==null?void 0:x.rect.left,x==null?void 0:x.rect.width]);da(function(){R()},[R]);var A=w.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),n&&s.current&&(c.current=Nd(n,s.current,R,{elementResize:"ResizeObserver"in window}))},[n,R]);da(function(){A()},[A]);var I=w.useCallback(function(F){s.current=F,A()},[A]);if(!r&&l!=="fixed"||!x)return null;var j=ge("div",xe({ref:I},nt(ve(ve({},t),{},{offset:x.offset,position:l,rect:x.rect}),"menuPortal",{"menu-portal":!0}),o),a);return ge(rs.Provider,{value:b},r?su.createPortal(j,r):j)},af=function(t){var r=t.isDisabled,a=t.isRtl;return{label:"container",direction:a?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},of=function(t){var r=t.children,a=t.innerProps,n=t.isDisabled,o=t.isRtl;return ge("div",xe({},nt(t,"container",{"--is-disabled":n,"--is-rtl":o}),a),r)},sf=function(t,r){var a=t.theme.spacing,n=t.isMulti,o=t.hasValue,i=t.selectProps.controlShouldRenderValue;return ve({alignItems:"center",display:n&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(a.baseUnit/2,"px ").concat(a.baseUnit*2,"px")})},lf=function(t){var r=t.children,a=t.innerProps,n=t.isMulti,o=t.hasValue;return ge("div",xe({},nt(t,"valueContainer",{"value-container":!0,"value-container--is-multi":n,"value-container--has-value":o}),a),r)},uf=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},cf=function(t){var r=t.children,a=t.innerProps;return ge("div",xe({},nt(t,"indicatorsContainer",{indicators:!0}),a),r)},Fo,df=["size"],ff=["innerProps","isRtl","size"];function pf(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var gf=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZV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C4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:pf},os=function(t){var r=t.size,a=Lt(t,df);return ge("svg",xe({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:gf},a))},Fa=function(t){return ge(os,xe({size:20},t),ge("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},is=function(t){return ge(os,xe({size:20},t),ge("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},ss=function(t,r){var a=t.isFocused,n=t.theme,o=n.spacing.baseUnit,i=n.colors;return ve({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:a?i.neutral60:i.neutral20,padding:o*2,":hover":{color:a?i.neutral80:i.neutral40}})},mf=ss,bf=function(t){var r=t.children,a=t.innerProps;return ge("div",xe({},nt(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),a),r||ge(is,null))},hf=ss,vf=function(t){var r=t.children,a=t.innerProps;return ge("div",xe({},nt(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),a),r||ge(Fa,null))},yf=function(t,r){var a=t.isDisabled,n=t.theme,o=n.spacing.baseUnit,i=n.colors;return ve({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:a?i.neutral10:i.neutral20,marginBottom:o*2,marginTop:o*2})},Cf=function(t){var r=t.innerProps;return ge("span",xe({},r,nt(t,"indicatorSeparator",{"indicator-separator":!0})))},xf=gd(Fo||(Fo=md([`
|
|
46
|
+
*/var Ro;function $c(){return Ro||(Ro=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function R(k){return typeof k=="string"||typeof k=="function"||k===a||k===c||k===o||k===r||k===f||k===y||typeof k=="object"&&k!==null&&(k.$$typeof===b||k.$$typeof===C||k.$$typeof===i||k.$$typeof===s||k.$$typeof===d||k.$$typeof===p||k.$$typeof===x||k.$$typeof===E||k.$$typeof===h)}function A(k){if(typeof k=="object"&&k!==null){var Se=k.$$typeof;switch(Se){case t:var Ce=k.type;switch(Ce){case l:case c:case a:case o:case r:case f:return Ce;default:var P=Ce&&Ce.$$typeof;switch(P){case s:case d:case b:case C:case i:return P;default:return Se}}case n:return Se}}}var I=l,M=c,B=s,O=i,re=t,ne=d,ue=a,z=b,ie=C,G=n,T=o,V=r,$=f,K=!1;function we(k){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),_(k)||A(k)===l}function _(k){return A(k)===c}function L(k){return A(k)===s}function Z(k){return A(k)===i}function ae(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function X(k){return A(k)===d}function m(k){return A(k)===a}function ge(k){return A(k)===b}function de(k){return A(k)===C}function ce(k){return A(k)===n}function Ne(k){return A(k)===o}function Y(k){return A(k)===r}function me(k){return A(k)===f}We.AsyncMode=I,We.ConcurrentMode=M,We.ContextConsumer=B,We.ContextProvider=O,We.Element=re,We.ForwardRef=ne,We.Fragment=ue,We.Lazy=z,We.Memo=ie,We.Portal=G,We.Profiler=T,We.StrictMode=V,We.Suspense=$,We.isAsyncMode=we,We.isConcurrentMode=_,We.isContextConsumer=L,We.isContextProvider=Z,We.isElement=ae,We.isForwardRef=X,We.isFragment=m,We.isLazy=ge,We.isMemo=de,We.isPortal=ce,We.isProfiler=Ne,We.isStrictMode=Y,We.isSuspense=me,We.isValidElementType=R,We.typeOf=A}()),We}process.env.NODE_ENV==="production"?ua.exports=Uc():ua.exports=$c();var Qc=ua.exports,Xi=Qc,Kc={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},qc={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Hi={};Hi[Xi.ForwardRef]=Kc;Hi[Xi.Memo]=qc;var ed=!0;function td(e,t,n){var a="";return n.split(" ").forEach(function(r){e[r]!==void 0?t.push(e[r]+";"):r&&(a+=r+" ")}),a}var Zi=function(t,n,a){var r=t.key+"-"+n.name;(a===!1||ed===!1)&&t.registered[r]===void 0&&(t.registered[r]=n.styles)},nd=function(t,n,a){Zi(t,n,a);var r=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+r:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function rd(e){for(var t=0,n,a=0,r=e.length;r>=4;++a,r-=4)n=e.charCodeAt(a)&255|(e.charCodeAt(++a)&255)<<8|(e.charCodeAt(++a)&255)<<16|(e.charCodeAt(++a)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(a+2)&255)<<16;case 2:t^=(e.charCodeAt(a+1)&255)<<8;case 1:t^=e.charCodeAt(a)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var ad={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},od=/[A-Z]|^ms/g,id=/_EMO_([^_]+?)_([^]*?)_EMO_/g,zi=function(t){return t.charCodeAt(1)===45},No=function(t){return t!=null&&typeof t!="boolean"},Hr=_c(function(e){return zi(e)?e:e.replace(od,"-$&").toLowerCase()}),Go=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(id,function(a,r,o){return Tt={name:r,styles:o,next:Tt},r})}return ad[t]!==1&&!zi(t)&&typeof n=="number"&&n!==0?n+"px":n};function Vn(e,t,n){if(n==null)return"";var a=n;if(a.__emotion_styles!==void 0)return a;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return Tt={name:r.name,styles:r.styles,next:Tt},r.name;var o=n;if(o.styles!==void 0){var i=o.next;if(i!==void 0)for(;i!==void 0;)Tt={name:i.name,styles:i.styles,next:Tt},i=i.next;var s=o.styles+";";return s}return sd(e,t,n)}case"function":{if(e!==void 0){var l=Tt,c=n(e);return Tt=l,Vn(e,t,c)}break}}var d=n;return d}function sd(e,t,n){var a="";if(Array.isArray(n))for(var r=0;r<n.length;r++)a+=Vn(e,t,n[r])+";";else for(var o in n){var i=n[o];if(typeof i!="object"){var s=i;No(s)&&(a+=Hr(o)+":"+Go(o,s)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var l=0;l<i.length;l++)No(i[l])&&(a+=Hr(o)+":"+Go(o,i[l])+";");else{var c=Vn(e,t,i);switch(o){case"animation":case"animationName":{a+=Hr(o)+":"+c+";";break}default:a+=o+"{"+c+"}"}}}return a}var Po=/label:\s*([^\s;{]+)\s*(;|$)/g,Tt;function Yi(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var a=!0,r="";Tt=void 0;var o=e[0];if(o==null||o.raw===void 0)a=!1,r+=Vn(n,t,o);else{var i=o;r+=i[0]}for(var s=1;s<e.length;s++)if(r+=Vn(n,t,e[s]),a){var l=o;r+=l[s]}Po.lastIndex=0;for(var c="",d;(d=Po.exec(r))!==null;)c+="-"+d[1];var f=rd(r)+c;return{name:f,styles:r,next:Tt}}var ld=function(t){return t()},ud=S.useInsertionEffect?S.useInsertionEffect:!1,cd=ud||ld,Ji=S.createContext(typeof HTMLElement<"u"?Jc({key:"css"}):null);Ji.Provider;var dd=function(t){return w.forwardRef(function(n,a){var r=w.useContext(Ji);return t(n,r,a)})},fd=S.createContext({}),Ma={}.hasOwnProperty,ca="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",pd=function(t,n){var a={};for(var r in n)Ma.call(n,r)&&(a[r]=n[r]);return a[ca]=t,a},gd=function(t){var n=t.cache,a=t.serialized,r=t.isStringTag;return Zi(n,a,r),cd(function(){return nd(n,a,r)}),null},md=dd(function(e,t,n){var a=e.css;typeof a=="string"&&t.registered[a]!==void 0&&(a=t.registered[a]);var r=e[ca],o=[a],i="";typeof e.className=="string"?i=td(t.registered,o,e.className):e.className!=null&&(i=e.className+" ");var s=Yi(o,void 0,S.useContext(fd));i+=t.key+"-"+s.name;var l={};for(var c in e)Ma.call(e,c)&&c!=="css"&&c!==ca&&(l[c]=e[c]);return l.className=i,n&&(l.ref=n),S.createElement(S.Fragment,null,S.createElement(gd,{cache:t,serialized:s,isStringTag:typeof r=="string"}),S.createElement(r,l))}),bd=md,be=function(t,n){var a=arguments;if(n==null||!Ma.call(n,"css"))return S.createElement.apply(void 0,a);var r=a.length,o=new Array(r);o[0]=bd,o[1]=pd(t,n);for(var i=2;i<r;i++)o[i]=a[i];return S.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(be||(be={}));function Oa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Yi(t)}function hd(){var e=Oa.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function vd(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const yd=Math.min,Cd=Math.max,hr=Math.round,ar=Math.floor,vr=e=>({x:e,y:e});function xd(e){const{x:t,y:n,width:a,height:r}=e;return{width:a,height:r,top:n,left:t,right:t+a,bottom:n+r,x:t,y:n}}function Pr(){return typeof window<"u"}function Ui(e){return Qi(e)?(e.nodeName||"").toLowerCase():"#document"}function _t(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function $i(e){var t;return(t=(Qi(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Qi(e){return Pr()?e instanceof Node||e instanceof _t(e).Node:!1}function Id(e){return Pr()?e instanceof Element||e instanceof _t(e).Element:!1}function Fa(e){return Pr()?e instanceof HTMLElement||e instanceof _t(e).HTMLElement:!1}function jo(e){return!Pr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _t(e).ShadowRoot}function Ki(e){const{overflow:t,overflowX:n,overflowY:a,display:r}=Ba(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&!["inline","contents"].includes(r)}function Sd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ad(e){return["html","body","#document"].includes(Ui(e))}function Ba(e){return _t(e).getComputedStyle(e)}function wd(e){if(Ui(e)==="html")return e;const t=e.assignedSlot||e.parentNode||jo(e)&&e.host||$i(e);return jo(t)?t.host:t}function qi(e){const t=wd(e);return Ad(t)?e.ownerDocument?e.ownerDocument.body:e.body:Fa(t)&&Ki(t)?t:qi(t)}function yr(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=qi(e),o=r===((a=e.ownerDocument)==null?void 0:a.body),i=_t(r);if(o){const s=da(i);return t.concat(i,i.visualViewport||[],Ki(r)?r:[],s&&n?yr(s):[])}return t.concat(r,yr(r,[],n))}function da(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ed(e){const t=Ba(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const r=Fa(e),o=r?e.offsetWidth:n,i=r?e.offsetHeight:a,s=hr(n)!==o||hr(a)!==i;return s&&(n=o,a=i),{width:n,height:a,$:s}}function Va(e){return Id(e)?e:e.contextElement}function To(e){const t=Va(e);if(!Fa(t))return vr(1);const n=t.getBoundingClientRect(),{width:a,height:r,$:o}=Ed(t);let i=(o?hr(n.width):n.width)/a,s=(o?hr(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Rd=vr(0);function Nd(e){const t=_t(e);return!Sd()||!t.visualViewport?Rd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Gd(e,t,n){return!1}function ko(e,t,n,a){t===void 0&&(t=!1);const r=e.getBoundingClientRect(),o=Va(e);let i=vr(1);t&&(i=To(e));const s=Gd()?Nd(o):vr(0);let l=(r.left+s.x)/i.x,c=(r.top+s.y)/i.y,d=r.width/i.x,f=r.height/i.y;if(o){const y=_t(o),C=a;let b=y,h=da(b);for(;h&&a&&C!==b;){const p=To(h),x=h.getBoundingClientRect(),E=Ba(h),R=x.left+(h.clientLeft+parseFloat(E.paddingLeft))*p.x,A=x.top+(h.clientTop+parseFloat(E.paddingTop))*p.y;l*=p.x,c*=p.y,d*=p.x,f*=p.y,l+=R,c+=A,b=_t(h),h=da(b)}}return xd({width:d,height:f,x:l,y:c})}function Pd(e,t){let n=null,a;const r=$i(e);function o(){var s;clearTimeout(a),(s=n)==null||s.disconnect(),n=null}function i(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const{left:c,top:d,width:f,height:y}=e.getBoundingClientRect();if(s||t(),!f||!y)return;const C=ar(d),b=ar(r.clientWidth-(c+f)),h=ar(r.clientHeight-(d+y)),p=ar(c),E={rootMargin:-C+"px "+-b+"px "+-h+"px "+-p+"px",threshold:Cd(0,yd(1,l))||1};let R=!0;function A(I){const M=I[0].intersectionRatio;if(M!==l){if(!R)return i();M?i(!1,M):a=setTimeout(()=>{i(!1,1e-7)},1e3)}R=!1}try{n=new IntersectionObserver(A,{...E,root:r.ownerDocument})}catch{n=new IntersectionObserver(A,E)}n.observe(e)}return i(!0),o}function jd(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=a,c=Va(e),d=r||o?[...c?yr(c):[],...yr(t)]:[];d.forEach(x=>{r&&x.addEventListener("scroll",n,{passive:!0}),o&&x.addEventListener("resize",n)});const f=c&&s?Pd(c,n):null;let y=-1,C=null;i&&(C=new ResizeObserver(x=>{let[E]=x;E&&E.target===c&&C&&(C.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var R;(R=C)==null||R.observe(t)})),n()}),c&&!l&&C.observe(c),C.observe(t));let b,h=l?ko(e):null;l&&p();function p(){const x=ko(e);h&&(x.x!==h.x||x.y!==h.y||x.width!==h.width||x.height!==h.height)&&n(),h=x,b=requestAnimationFrame(p)}return n(),()=>{var x;d.forEach(E=>{r&&E.removeEventListener("scroll",n),o&&E.removeEventListener("resize",n)}),f==null||f(),(x=C)==null||x.disconnect(),C=null,l&&cancelAnimationFrame(b)}}var fa=w.useLayoutEffect,Td=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Cr=function(){};function kd(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Md(e,t){for(var n=arguments.length,a=new Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];var o=[].concat(a);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&o.push("".concat(kd(e,i)));return o.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var Mo=function(t){return Xd(t)?t.filter(Boolean):dn(t)==="object"&&t!==null?[t]:[]},es=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=Wt(t,Td);return ye({},n)},nt=function(t,n,a){var r=t.cx,o=t.getStyles,i=t.getClassNames,s=t.className;return{css:o(n,t),className:r(a??{},i(n,t),s)}};function jr(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Od(e){return jr(e)?window.innerHeight:e.clientHeight}function ts(e){return jr(e)?window.pageYOffset:e.scrollTop}function xr(e,t){if(jr(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Fd(e){var t=getComputedStyle(e),n=t.position==="absolute",a=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),!(n&&t.position==="static")&&a.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}function Bd(e,t,n,a){return n*((e=e/a-1)*e*e+1)+t}function or(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Cr,r=ts(e),o=t-r,i=10,s=0;function l(){s+=i;var c=Bd(s,r,o,n);xr(e,c),s<n?window.requestAnimationFrame(l):a(e)}l()}function Oo(e,t){var n=e.getBoundingClientRect(),a=t.getBoundingClientRect(),r=t.offsetHeight/3;a.bottom+r>n.bottom?xr(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):a.top-r<n.top&&xr(e,Math.max(t.offsetTop-r,0))}function Vd(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function Fo(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Dd(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var ns=!1,_d={get passive(){return ns=!0}},ir=typeof window<"u"?window:{};ir.addEventListener&&ir.removeEventListener&&(ir.addEventListener("p",Cr,_d),ir.removeEventListener("p",Cr,!1));var Wd=ns;function Ld(e){return e!=null}function Xd(e){return Array.isArray(e)}function sr(e,t,n){return e?t:n}var Hd=function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r<n;r++)a[r-1]=arguments[r];var o=Object.entries(t).filter(function(i){var s=Dt(i,1),l=s[0];return!a.includes(l)});return o.reduce(function(i,s){var l=Dt(s,2),c=l[0],d=l[1];return i[c]=d,i},{})},Zd=["children","innerProps"],zd=["children","innerProps"];function Yd(e){var t=e.maxHeight,n=e.menuEl,a=e.minHeight,r=e.placement,o=e.shouldScroll,i=e.isFixedPosition,s=e.controlHeight,l=Fd(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var d=l.getBoundingClientRect(),f=d.height,y=n.getBoundingClientRect(),C=y.bottom,b=y.height,h=y.top,p=n.offsetParent.getBoundingClientRect(),x=p.top,E=i?window.innerHeight:Od(l),R=ts(l),A=parseInt(getComputedStyle(n).marginBottom,10),I=parseInt(getComputedStyle(n).marginTop,10),M=x-I,B=E-h,O=M+R,re=f-R-h,ne=C-E+R+A,ue=R+h-I,z=160;switch(r){case"auto":case"bottom":if(B>=b)return{placement:"bottom",maxHeight:t};if(re>=b&&!i)return o&&or(l,ne,z),{placement:"bottom",maxHeight:t};if(!i&&re>=a||i&&B>=a){o&&or(l,ne,z);var ie=i?B-A:re-A;return{placement:"bottom",maxHeight:ie}}if(r==="auto"||i){var G=t,T=i?M:O;return T>=a&&(G=Math.min(T-A-s,t)),{placement:"top",maxHeight:G}}if(r==="bottom")return o&&xr(l,ne),{placement:"bottom",maxHeight:t};break;case"top":if(M>=b)return{placement:"top",maxHeight:t};if(O>=b&&!i)return o&&or(l,ue,z),{placement:"top",maxHeight:t};if(!i&&O>=a||i&&M>=a){var V=t;return(!i&&O>=a||i&&M>=a)&&(V=i?M-I:O-I),o&&or(l,ue,z),{placement:"top",maxHeight:V}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return c}function Jd(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var rs=function(t){return t==="auto"?"bottom":t},Ud=function(t,n){var a,r=t.placement,o=t.theme,i=o.borderRadius,s=o.spacing,l=o.colors;return ye((a={label:"menu"},On(a,Jd(r),"100%"),On(a,"position","absolute"),On(a,"width","100%"),On(a,"zIndex",1),a),n?{}:{backgroundColor:l.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},as=w.createContext(null),$d=function(t){var n=t.children,a=t.minMenuHeight,r=t.maxMenuHeight,o=t.menuPlacement,i=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,c=w.useContext(as)||{},d=c.setPortalPlacement,f=w.useRef(null),y=w.useState(r),C=Dt(y,2),b=C[0],h=C[1],p=w.useState(null),x=Dt(p,2),E=x[0],R=x[1],A=l.spacing.controlHeight;return fa(function(){var I=f.current;if(I){var M=i==="fixed",B=s&&!M,O=Yd({maxHeight:r,menuEl:I,minHeight:a,placement:o,shouldScroll:B,isFixedPosition:M,controlHeight:A});h(O.maxHeight),R(O.placement),d==null||d(O.placement)}},[r,o,i,s,a,d,A]),n({ref:f,placerProps:ye(ye({},t),{},{placement:E||rs(o),maxHeight:b})})},Qd=function(t){var n=t.children,a=t.innerRef,r=t.innerProps;return be("div",Ie({},nt(t,"menu",{menu:!0}),{ref:a},r),n)},Kd=Qd,qd=function(t,n){var a=t.maxHeight,r=t.theme.spacing.baseUnit;return ye({maxHeight:a,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:r,paddingTop:r})},ef=function(t){var n=t.children,a=t.innerProps,r=t.innerRef,o=t.isMulti;return be("div",Ie({},nt(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},a),n)},os=function(t,n){var a=t.theme,r=a.spacing.baseUnit,o=a.colors;return ye({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(r*2,"px ").concat(r*3,"px")})},tf=os,nf=os,rf=function(t){var n=t.children,a=n===void 0?"No options":n,r=t.innerProps,o=Wt(t,Zd);return be("div",Ie({},nt(ye(ye({},o),{},{children:a,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),a)},af=function(t){var n=t.children,a=n===void 0?"Loading...":n,r=t.innerProps,o=Wt(t,zd);return be("div",Ie({},nt(ye(ye({},o),{},{children:a,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),a)},of=function(t){var n=t.rect,a=t.offset,r=t.position;return{left:n.left,position:r,top:a,width:n.width,zIndex:1}},sf=function(t){var n=t.appendTo,a=t.children,r=t.controlElement,o=t.innerProps,i=t.menuPlacement,s=t.menuPosition,l=w.useRef(null),c=w.useRef(null),d=w.useState(rs(i)),f=Dt(d,2),y=f[0],C=f[1],b=w.useMemo(function(){return{setPortalPlacement:C}},[]),h=w.useState(null),p=Dt(h,2),x=p[0],E=p[1],R=w.useCallback(function(){if(r){var B=Vd(r),O=s==="fixed"?0:window.pageYOffset,re=B[y]+O;(re!==(x==null?void 0:x.offset)||B.left!==(x==null?void 0:x.rect.left)||B.width!==(x==null?void 0:x.rect.width))&&E({offset:re,rect:B})}},[r,s,y,x==null?void 0:x.offset,x==null?void 0:x.rect.left,x==null?void 0:x.rect.width]);fa(function(){R()},[R]);var A=w.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),r&&l.current&&(c.current=jd(r,l.current,R,{elementResize:"ResizeObserver"in window}))},[r,R]);fa(function(){A()},[A]);var I=w.useCallback(function(B){l.current=B,A()},[A]);if(!n&&s!=="fixed"||!x)return null;var M=be("div",Ie({ref:I},nt(ye(ye({},t),{},{offset:x.offset,position:s,rect:x.rect}),"menuPortal",{"menu-portal":!0}),o),a);return be(as.Provider,{value:b},n?cu.createPortal(M,n):M)},lf=function(t){var n=t.isDisabled,a=t.isRtl;return{label:"container",direction:a?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},uf=function(t){var n=t.children,a=t.innerProps,r=t.isDisabled,o=t.isRtl;return be("div",Ie({},nt(t,"container",{"--is-disabled":r,"--is-rtl":o}),a),n)},cf=function(t,n){var a=t.theme.spacing,r=t.isMulti,o=t.hasValue,i=t.selectProps.controlShouldRenderValue;return ye({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(a.baseUnit/2,"px ").concat(a.baseUnit*2,"px")})},df=function(t){var n=t.children,a=t.innerProps,r=t.isMulti,o=t.hasValue;return be("div",Ie({},nt(t,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),a),n)},ff=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},pf=function(t){var n=t.children,a=t.innerProps;return be("div",Ie({},nt(t,"indicatorsContainer",{indicators:!0}),a),n)},Bo,gf=["size"],mf=["innerProps","isRtl","size"];function bf(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var hf=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aW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pc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:bf},is=function(t){var n=t.size,a=Wt(t,gf);return be("svg",Ie({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:hf},a))},Da=function(t){return be(is,Ie({size:20},t),be("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},ss=function(t){return be(is,Ie({size:20},t),be("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},ls=function(t,n){var a=t.isFocused,r=t.theme,o=r.spacing.baseUnit,i=r.colors;return ye({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:a?i.neutral60:i.neutral20,padding:o*2,":hover":{color:a?i.neutral80:i.neutral40}})},vf=ls,yf=function(t){var n=t.children,a=t.innerProps;return be("div",Ie({},nt(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),a),n||be(ss,null))},Cf=ls,xf=function(t){var n=t.children,a=t.innerProps;return be("div",Ie({},nt(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),a),n||be(Da,null))},If=function(t,n){var a=t.isDisabled,r=t.theme,o=r.spacing.baseUnit,i=r.colors;return ye({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:a?i.neutral10:i.neutral20,marginBottom:o*2,marginTop:o*2})},Sf=function(t){var n=t.innerProps;return be("span",Ie({},n,nt(t,"indicatorSeparator",{"indicator-separator":!0})))},Af=hd(Bo||(Bo=vd([`
|
|
47
47
|
0%, 80%, 100% { opacity: 0; }
|
|
48
48
|
40% { opacity: 1; }
|
|
49
|
-
`]))),If=function(t,r){var a=t.isFocused,n=t.size,o=t.theme,i=o.colors,l=o.spacing.baseUnit;return ve({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"},r?{}:{color:a?i.neutral60:i.neutral20,padding:l*2})},Hr=function(t){var r=t.delay,a=t.offset;return ge("span",{css:Oa({animation:"".concat(xf," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:a?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICd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Agey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},Sf=function(t){var r=t.innerProps,a=t.isRtl,n=t.size,o=n===void 0?4:n,i=Lt(t,ff);return ge("div",xe({},nt(ve(ve({},i),{},{innerProps:r,isRtl:a,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),ge(Hr,{delay:0,offset:a}),ge(Hr,{delay:160,offset:!0}),ge(Hr,{delay:320,offset:!a}))},Af=function(t,r){var a=t.isDisabled,n=t.isFocused,o=t.theme,i=o.colors,l=o.borderRadius,s=o.spacing;return ve({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:a?i.neutral5:i.neutral0,borderColor:a?i.neutral10:n?i.primary:i.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:n?i.primary:i.neutral30}})},wf=function(t){var r=t.children,a=t.isDisabled,n=t.isFocused,o=t.innerRef,i=t.innerProps,l=t.menuIsOpen;return ge("div",xe({ref:o},nt(t,"control",{control:!0,"control--is-disabled":a,"control--is-focused":n,"control--menu-is-open":l}),i,{"aria-disabled":a||void 0}),r)},Ef=wf,Rf=["data"],Nf=function(t,r){var a=t.theme.spacing;return r?{}:{paddingBottom:a.baseUnit*2,paddingTop:a.baseUnit*2}},Gf=function(t){var r=t.children,a=t.cx,n=t.getStyles,o=t.getClassNames,i=t.Heading,l=t.headingProps,s=t.innerProps,c=t.label,d=t.theme,f=t.selectProps;return ge("div",xe({},nt(t,"group",{group:!0}),s),ge(i,xe({},l,{selectProps:f,theme:d,getStyles:n,getClassNames:o,cx:a}),c),ge("div",null,r))},Pf=function(t,r){var a=t.theme,n=a.colors,o=a.spacing;return ve({label:"group",cursor:"default",display:"block"},r?{}:{color:n.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},Tf=function(t){var r=qi(t);r.data;var a=Lt(r,Rf);return ge("div",xe({},nt(t,"groupHeading",{"group-heading":!0}),a))},Of=Gf,jf=["innerRef","isDisabled","isHidden","inputClassName"],Mf=function(t,r){var a=t.isDisabled,n=t.value,o=t.theme,i=o.spacing,l=o.colors;return ve(ve({visibility:a?"hidden":"visible",transform:n?"translateZ(0)":""},kf),r?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:l.neutral80})},ls={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},kf={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ve({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ls)},Ff=function(t){return ve({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},ls)},Bf=function(t){var r=t.cx,a=t.value,n=qi(t),o=n.innerRef,i=n.isDisabled,l=n.isHidden,s=n.inputClassName,c=Lt(n,jf);return ge("div",xe({},nt(t,"input",{"input-container":!0}),{"data-value":a||""}),ge("input",xe({className:r({input:!0},s),ref:o,style:Ff(l),disabled:i},c)))},Vf=Bf,_f=function(t,r){var a=t.theme,n=a.spacing,o=a.borderRadius,i=a.colors;return ve({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:n.baseUnit/2})},Df=function(t,r){var a=t.theme,n=a.borderRadius,o=a.colors,i=t.cropWithEllipsis;return ve({overflow:"hidden",textOverflow:i||i===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:n/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Wf=function(t,r){var a=t.theme,n=a.spacing,o=a.borderRadius,i=a.colors,l=t.isFocused;return ve({alignItems:"center",display:"flex"},r?{}:{borderRadius:o/2,backgroundColor:l?i.dangerLight:void 0,paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},us=function(t){var r=t.children,a=t.innerProps;return ge("div",a,r)},Lf=us,Xf=us;function Hf(e){var t=e.children,r=e.innerProps;return ge("div",xe({role:"button"},r),t||ge(Fa,{size:14}))}var Zf=function(t){var r=t.children,a=t.components,n=t.data,o=t.innerProps,i=t.isDisabled,l=t.removeProps,s=t.selectProps,c=a.Container,d=a.Label,f=a.Remove;return ge(c,{data:n,innerProps:ve(ve({},nt(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},ge(d,{data:n,innerProps:ve({},nt(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},r),ge(f,{data:n,innerProps:ve(ve({},nt(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},l),selectProps:s}))},zf=Zf,Yf=function(t,r){var a=t.isDisabled,n=t.isFocused,o=t.isSelected,i=t.theme,l=i.spacing,s=i.colors;return ve({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:o?s.primary:n?s.primary25:"transparent",color:a?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:a?void 0:o?s.primary:s.primary50}})},Jf=function(t){var r=t.children,a=t.isDisabled,n=t.isFocused,o=t.isSelected,i=t.innerRef,l=t.innerProps;return ge("div",xe({},nt(t,"option",{option:!0,"option--is-disabled":a,"option--is-focused":n,"option--is-selected":o}),{ref:i,"aria-disabled":a},l),r)},Uf=Jf,$f=function(t,r){var a=t.theme,n=a.spacing,o=a.colors;return ve({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:o.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2})},Qf=function(t){var r=t.children,a=t.innerProps;return ge("div",xe({},nt(t,"placeholder",{placeholder:!0}),a),r)},Kf=Qf,qf=function(t,r){var a=t.isDisabled,n=t.theme,o=n.spacing,i=n.colors;return ve({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:a?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},ep=function(t){var r=t.children,a=t.isDisabled,n=t.innerProps;return ge("div",xe({},nt(t,"singleValue",{"single-value":!0,"single-value--is-disabled":a}),n),r)},tp=ep,cs={ClearIndicator:vf,Control:Ef,DropdownIndicator:bf,DownChevron:is,CrossIcon:Fa,Group:Of,GroupHeading:Tf,IndicatorsContainer:cf,IndicatorSeparator:Cf,Input:Vf,LoadingIndicator:Sf,Menu:Ud,MenuList:Qd,MenuPortal:rf,LoadingMessage:tf,NoOptionsMessage:ef,MultiValue:zf,MultiValueContainer:Lf,MultiValueLabel:Xf,MultiValueRemove:Hf,Option:Uf,Placeholder:Kf,SelectContainer:of,SingleValue:tp,ValueContainer:lf},np=function(t){return ve(ve({},cs),t.components)},Bo=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function rp(e,t){return!!(e===t||Bo(e)&&Bo(t))}function ap(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!rp(e[r],t[r]))return!1;return!0}function op(e,t){t===void 0&&(t=ap);var r=null;function a(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];if(r&&r.lastThis===this&&t(n,r.lastArgs))return r.lastResult;var i=e.apply(this,n);return r={lastResult:i,lastArgs:n,lastThis:this},i}return a.clear=function(){r=null},a}function ip(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var sp=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:ip},lp=function(t){return ge("span",xe({css:sp},t))},Vo=lp,up={guidance:function(t){var r=t.isSearchable,a=t.isMulti,n=t.tabSelectsValue,o=t.context,i=t.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(n?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(t["aria-label"]||"Select"," is focused ").concat(r?",type to refine list":"",", press Down to open the menu, ").concat(a?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var r=t.action,a=t.label,n=a===void 0?"":a,o=t.labels,i=t.isDisabled;switch(r){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return i?"option ".concat(n," is disabled. Select another option."):"option ".concat(n,", selected.");default:return""}},onFocus:function(t){var r=t.context,a=t.focused,n=t.options,o=t.label,i=o===void 0?"":o,l=t.selectValue,s=t.isDisabled,c=t.isSelected,d=t.isAppleDevice,f=function(h,p){return h&&h.length?"".concat(h.indexOf(p)+1," of ").concat(h.length):""};if(r==="value"&&l)return"value ".concat(i," focused, ").concat(f(l,a),".");if(r==="menu"&&d){var y=s?" disabled":"",C="".concat(c?" selected":"").concat(y);return"".concat(i).concat(C,", ").concat(f(n,a),".")}return""},onFilter:function(t){var r=t.inputValue,a=t.resultsMessage;return"".concat(a).concat(r?" for search term "+r:"",".")}},cp=function(t){var r=t.ariaSelection,a=t.focusedOption,n=t.focusedValue,o=t.focusableOptions,i=t.isFocused,l=t.selectValue,s=t.selectProps,c=t.id,d=t.isAppleDevice,f=s.ariaLiveMessages,y=s.getOptionLabel,C=s.inputValue,b=s.isMulti,h=s.isOptionDisabled,p=s.isSearchable,x=s.menuIsOpen,E=s.options,R=s.screenReaderStatus,A=s.tabSelectsValue,I=s.isLoading,j=s["aria-label"],F=s["aria-live"],M=w.useMemo(function(){return ve(ve({},up),f||{})},[f]),oe=w.useMemo(function(){var O="";if(r&&M.onChange){var V=r.option,$=r.options,ne=r.removedValue,Ie=r.removedValues,_=r.value,W=function(K){return Array.isArray(K)?null:K},Z=ne||V||W(_),ae=Z?y(Z):"",L=$||Ie||void 0,m=L?L.map(y):[],pe=ve({isDisabled:Z&&h(Z,l),label:ae,labels:m},r);O=M.onChange(pe)}return O},[r,M,h,l,y]),re=w.useMemo(function(){var O="",V=a||n,$=!!(a&&l&&l.includes(a));if(V&&M.onFocus){var ne={focused:V,label:y(V),isDisabled:h(V,l),isSelected:$,options:o,context:V===a?"menu":"value",selectValue:l,isAppleDevice:d};O=M.onFocus(ne)}return O},[a,n,y,h,M,o,l,d]),ce=w.useMemo(function(){var O="";if(x&&E.length&&!I&&M.onFilter){var V=R({count:o.length});O=M.onFilter({inputValue:C,resultsMessage:V})}return O},[o,C,x,M,E,R,I]),z=(r==null?void 0:r.action)==="initial-input-focus",le=w.useMemo(function(){var O="";if(M.guidance){var V=n?"value":x?"menu":"input";O=M.guidance({"aria-label":j,context:V,isDisabled:a&&h(a,l),isMulti:b,isSearchable:p,tabSelectsValue:A,isInitialFocus:z})}return O},[j,a,n,b,h,p,x,M,l,A,z]),G=ge(w.Fragment,null,ge("span",{id:"aria-selection"},oe),ge("span",{id:"aria-focused"},re),ge("span",{id:"aria-results"},ce),ge("span",{id:"aria-guidance"},le));return ge(w.Fragment,null,ge(Vo,{id:c},z&&G),ge(Vo,{"aria-live":F,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!z&&G))},dp=cp,fa=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],fp=new RegExp("["+fa.map(function(e){return e.letters}).join("")+"]","g"),ds={};for(var Zr=0;Zr<fa.length;Zr++)for(var zr=fa[Zr],Yr=0;Yr<zr.letters.length;Yr++)ds[zr.letters[Yr]]=zr.base;var fs=function(t){return t.replace(fp,function(r){return ds[r]})},pp=op(fs),_o=function(t){return t.replace(/^\s+|\s+$/g,"")},gp=function(t){return"".concat(t.label," ").concat(t.value)},mp=function(t){return function(r,a){if(r.data.__isNew__)return!0;var n=ve({ignoreCase:!0,ignoreAccents:!0,stringify:gp,trim:!0,matchFrom:"any"},t),o=n.ignoreCase,i=n.ignoreAccents,l=n.stringify,s=n.trim,c=n.matchFrom,d=s?_o(a):a,f=s?_o(l(r)):l(r);return o&&(d=d.toLowerCase(),f=f.toLowerCase()),i&&(d=pp(d),f=fs(f)),c==="start"?f.substr(0,d.length)===d:f.indexOf(d)>-1}},bp=["innerRef"];function hp(e){var t=e.innerRef,r=Lt(e,bp),a=Wd(r,"onExited","in","enter","exit","appear");return ge("input",xe({ref:t},a,{css:Oa({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQ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gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var vp=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function yp(e){var t=e.isEnabled,r=e.onBottomArrive,a=e.onBottomLeave,n=e.onTopArrive,o=e.onTopLeave,i=w.useRef(!1),l=w.useRef(!1),s=w.useRef(0),c=w.useRef(null),d=w.useCallback(function(p,x){if(c.current!==null){var E=c.current,R=E.scrollTop,A=E.scrollHeight,I=E.clientHeight,j=c.current,F=x>0,M=A-I-R,oe=!1;M>x&&i.current&&(a&&a(p),i.current=!1),F&&l.current&&(o&&o(p),l.current=!1),F&&x>M?(r&&!i.current&&r(p),j.scrollTop=A,oe=!0,i.current=!0):!F&&-x>R&&(n&&!l.current&&n(p),j.scrollTop=0,oe=!0,l.current=!0),oe&&vp(p)}},[r,a,n,o]),f=w.useCallback(function(p){d(p,p.deltaY)},[d]),y=w.useCallback(function(p){s.current=p.changedTouches[0].clientY},[]),C=w.useCallback(function(p){var x=s.current-p.changedTouches[0].clientY;d(p,x)},[d]),b=w.useCallback(function(p){if(p){var x=Vd?{passive:!1}:!1;p.addEventListener("wheel",f,x),p.addEventListener("touchstart",y,x),p.addEventListener("touchmove",C,x)}},[C,y,f]),h=w.useCallback(function(p){p&&(p.removeEventListener("wheel",f,!1),p.removeEventListener("touchstart",y,!1),p.removeEventListener("touchmove",C,!1))},[C,y,f]);return w.useEffect(function(){if(t){var p=c.current;return b(p),function(){h(p)}}},[t,b,h]),function(p){c.current=p}}var Do=["boxSizing","height","overflow","paddingRight","position"],Wo={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Lo(e){e.cancelable&&e.preventDefault()}function Xo(e){e.stopPropagation()}function Ho(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function Zo(){return"ontouchstart"in window||navigator.maxTouchPoints}var zo=!!(typeof window<"u"&&window.document&&window.document.createElement),Mn=0,vn={capture:!1,passive:!1};function Cp(e){var t=e.isEnabled,r=e.accountForScrollbars,a=r===void 0?!0:r,n=w.useRef({}),o=w.useRef(null),i=w.useCallback(function(s){if(zo){var c=document.body,d=c&&c.style;if(a&&Do.forEach(function(b){var h=d&&d[b];n.current[b]=h}),a&&Mn<1){var f=parseInt(n.current.paddingRight,10)||0,y=document.body?document.body.clientWidth:0,C=window.innerWidth-y+f||0;Object.keys(Wo).forEach(function(b){var h=Wo[b];d&&(d[b]=h)}),d&&(d.paddingRight="".concat(C,"px"))}c&&Zo()&&(c.addEventListener("touchmove",Lo,vn),s&&(s.addEventListener("touchstart",Ho,vn),s.addEventListener("touchmove",Xo,vn))),Mn+=1}},[a]),l=w.useCallback(function(s){if(zo){var c=document.body,d=c&&c.style;Mn=Math.max(Mn-1,0),a&&Mn<1&&Do.forEach(function(f){var y=n.current[f];d&&(d[f]=y)}),c&&Zo()&&(c.removeEventListener("touchmove",Lo,vn),s&&(s.removeEventListener("touchstart",Ho,vn),s.removeEventListener("touchmove",Xo,vn)))}},[a]);return w.useEffect(function(){if(t){var s=o.current;return i(s),function(){l(s)}}},[t,i,l]),function(s){o.current=s}}function xp(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Ip=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},Sp=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbn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NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:xp};function Ap(e){var t=e.children,r=e.lockEnabled,a=e.captureEnabled,n=a===void 0?!0:a,o=e.onBottomArrive,i=e.onBottomLeave,l=e.onTopArrive,s=e.onTopLeave,c=yp({isEnabled:n,onBottomArrive:o,onBottomLeave:i,onTopArrive:l,onTopLeave:s}),d=Cp({isEnabled:r}),f=function(C){c(C),d(C)};return ge(w.Fragment,null,r&&ge("div",{onClick:Ip,css:Sp}),t(f))}function wp(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Ep=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingUR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dlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:wp},Rp=function(t){var r=t.name,a=t.onFocus;return ge("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:a,css:Ep,value:"",onChange:function(){}})},Np=Rp;function Ba(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Gp(){return Ba(/^iPhone/i)}function ps(){return Ba(/^Mac/i)}function Pp(){return Ba(/^iPad/i)||ps()&&navigator.maxTouchPoints>1}function Tp(){return Gp()||Pp()}function Op(){return ps()||Tp()}var jp=function(t){return t.label},Mp=function(t){return t.label},kp=function(t){return t.value},Fp=function(t){return!!t.isDisabled},Bp={clearIndicator:hf,container:af,control:Af,dropdownIndicator:mf,group:Nf,groupHeading:Pf,indicatorsContainer:uf,indicatorSeparator:yf,input:Mf,loadingIndicator:If,loadingMessage:qd,menu:zd,menuList:$d,menuPortal:nf,multiValue:_f,multiValueLabel:Df,multiValueRemove:Wf,noOptionsMessage:Kd,option:Yf,placeholder:$f,singleValue:qf,valueContainer:sf},Vp={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},_p=4,gs=4,Dp=38,Wp=gs*2,Lp={baseUnit:gs,controlHeight:Dp,menuGutter:Wp},Jr={borderRadius:_p,colors:Vp,spacing:Lp},Xp={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ko(),captureMenuScroll:!ko(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:mp(),formatGroupLabel:jp,getOptionLabel:Mp,getOptionValue:kp,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Fp,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Fd(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Yo(e,t,r,a){var n=hs(e,t,r),o=vs(e,t,r),i=bs(e,t),l=xr(e,t);return{type:"option",data:t,isDisabled:n,isSelected:o,label:i,value:l,index:a}}function fr(e,t){return e.options.map(function(r,a){if("options"in r){var n=r.options.map(function(i,l){return Yo(e,i,t,l)}).filter(function(i){return Uo(e,i)});return n.length>0?{type:"group",data:r,options:n,index:a}:void 0}var o=Yo(e,r,t,a);return Uo(e,o)?o:void 0}).filter(_d)}function ms(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,Ra(r.options.map(function(a){return a.data}))):t.push(r.data),t},[])}function Jo(e,t){return e.reduce(function(r,a){return a.type==="group"?r.push.apply(r,Ra(a.options.map(function(n){return{data:n.data,id:"".concat(t,"-").concat(a.index,"-").concat(n.index)}}))):r.push({data:a.data,id:"".concat(t,"-").concat(a.index)}),r},[])}function Hp(e,t){return ms(fr(e,t))}function Uo(e,t){var r=e.inputValue,a=r===void 0?"":r,n=t.data,o=t.isSelected,i=t.label,l=t.value;return(!Cs(e)||!o)&&ys(e,{label:i,value:l,data:n},a)}function Zp(e,t){var r=e.focusedValue,a=e.selectValue,n=a.indexOf(r);if(n>-1){var o=t.indexOf(r);if(o>-1)return r;if(n<t.length)return t[n]}return null}function zp(e,t){var r=e.focusedOption;return r&&t.indexOf(r)>-1?r:t[0]}var Ur=function(t,r){var a,n=(a=t.find(function(o){return o.data===r}))===null||a===void 0?void 0:a.id;return n||null},bs=function(t,r){return t.getOptionLabel(r)},xr=function(t,r){return t.getOptionValue(r)};function hs(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function vs(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var a=xr(e,t);return r.some(function(n){return xr(e,n)===a})}function ys(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var Cs=function(t){var r=t.hideSelectedOptions,a=t.isMulti;return r===void 0?a:r},Yp=1,xs=function(e){uc(r,e);var t=fc(r);function r(a){var n;if(sc(this,r),n=t.call(this,a),n.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},n.blockOptionHover=!1,n.isComposing=!1,n.commonProps=void 0,n.initialTouchX=0,n.initialTouchY=0,n.openAfterFocus=!1,n.scrollToFocusedOptionOnUpdate=!1,n.userIsDragging=void 0,n.isAppleDevice=Op(),n.controlRef=null,n.getControlRef=function(s){n.controlRef=s},n.focusedOptionRef=null,n.getFocusedOptionRef=function(s){n.focusedOptionRef=s},n.menuListRef=null,n.getMenuListRef=function(s){n.menuListRef=s},n.inputRef=null,n.getInputRef=function(s){n.inputRef=s},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(s,c){var d=n.props,f=d.onChange,y=d.name;c.name=y,n.ariaOnChange(s,c),f(s,c)},n.setValue=function(s,c,d){var f=n.props,y=f.closeMenuOnSelect,C=f.isMulti,b=f.inputValue;n.onInputChange("",{action:"set-value",prevInputValue:b}),y&&(n.setState({inputIsHiddenAfterUpdate:!C}),n.onMenuClose()),n.setState({clearFocusValueOnUpdate:!0}),n.onChange(s,{action:c,option:d})},n.selectOption=function(s){var c=n.props,d=c.blurInputOnSelect,f=c.isMulti,y=c.name,C=n.state.selectValue,b=f&&n.isOptionSelected(s,C),h=n.isOptionDisabled(s,C);if(b){var p=n.getOptionValue(s);n.setValue(C.filter(function(x){return n.getOptionValue(x)!==p}),"deselect-option",s)}else if(!h)f?n.setValue([].concat(Ra(C),[s]),"select-option",s):n.setValue(s,"select-option");else{n.ariaOnChange(s,{action:"select-option",option:s,name:y});return}d&&n.blurInput()},n.removeValue=function(s){var c=n.props.isMulti,d=n.state.selectValue,f=n.getOptionValue(s),y=d.filter(function(b){return n.getOptionValue(b)!==f}),C=ir(c,y,y[0]||null);n.onChange(C,{action:"remove-value",removedValue:s}),n.focusInput()},n.clearValue=function(){var s=n.state.selectValue;n.onChange(ir(n.props.isMulti,[],null),{action:"clear",removedValues:s})},n.popValue=function(){var s=n.props.isMulti,c=n.state.selectValue,d=c[c.length-1],f=c.slice(0,c.length-1),y=ir(s,f,f[0]||null);d&&n.onChange(y,{action:"pop-value",removedValue:d})},n.getFocusedOptionId=function(s){return Ur(n.state.focusableOptionsWithIds,s)},n.getFocusableOptionsWithIds=function(){return Jo(fr(n.props,n.state.selectValue),n.getElementId("option"))},n.getValue=function(){return n.state.selectValue},n.cx=function(){for(var s=arguments.length,c=new Array(s),d=0;d<s;d++)c[d]=arguments[d];return Td.apply(void 0,[n.props.classNamePrefix].concat(c))},n.getOptionLabel=function(s){return bs(n.props,s)},n.getOptionValue=function(s){return xr(n.props,s)},n.getStyles=function(s,c){var d=n.props.unstyled,f=Bp[s](c,d);f.boxSizing="border-box";var y=n.props.styles[s];return y?y(f,c):f},n.getClassNames=function(s,c){var d,f;return(d=(f=n.props.classNames)[s])===null||d===void 0?void 0:d.call(f,c)},n.getElementId=function(s){return"".concat(n.state.instancePrefix,"-").concat(s)},n.getComponents=function(){return np(n.props)},n.buildCategorizedOptions=function(){return fr(n.props,n.state.selectValue)},n.getCategorizedOptions=function(){return n.props.menuIsOpen?n.buildCategorizedOptions():[]},n.buildFocusableOptions=function(){return ms(n.buildCategorizedOptions())},n.getFocusableOptions=function(){return n.props.menuIsOpen?n.buildFocusableOptions():[]},n.ariaOnChange=function(s,c){n.setState({ariaSelection:ve({value:s},c)})},n.onMenuMouseDown=function(s){s.button===0&&(s.stopPropagation(),s.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(s){n.blockOptionHover=!1},n.onControlMouseDown=function(s){if(!s.defaultPrevented){var c=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&n.onMenuClose():c&&n.openMenu("first"):(c&&(n.openAfterFocus=!0),n.focusInput()),s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&s.preventDefault()}},n.onDropdownIndicatorMouseDown=function(s){if(!(s&&s.type==="mousedown"&&s.button!==0)&&!n.props.isDisabled){var c=n.props,d=c.isMulti,f=c.menuIsOpen;n.focusInput(),f?(n.setState({inputIsHiddenAfterUpdate:!d}),n.onMenuClose()):n.openMenu("first"),s.preventDefault()}},n.onClearIndicatorMouseDown=function(s){s&&s.type==="mousedown"&&s.button!==0||(n.clearValue(),s.preventDefault(),n.openAfterFocus=!1,s.type==="touchend"?n.focusInput():setTimeout(function(){return n.focusInput()}))},n.onScroll=function(s){typeof n.props.closeMenuOnScroll=="boolean"?s.target instanceof HTMLElement&&Pr(s.target)&&n.props.onMenuClose():typeof n.props.closeMenuOnScroll=="function"&&n.props.closeMenuOnScroll(s)&&n.props.onMenuClose()},n.onCompositionStart=function(){n.isComposing=!0},n.onCompositionEnd=function(){n.isComposing=!1},n.onTouchStart=function(s){var c=s.touches,d=c&&c.item(0);d&&(n.initialTouchX=d.clientX,n.initialTouchY=d.clientY,n.userIsDragging=!1)},n.onTouchMove=function(s){var c=s.touches,d=c&&c.item(0);if(d){var f=Math.abs(d.clientX-n.initialTouchX),y=Math.abs(d.clientY-n.initialTouchY),C=5;n.userIsDragging=f>C||y>C}},n.onTouchEnd=function(s){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(s.target)&&n.menuListRef&&!n.menuListRef.contains(s.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(s){n.userIsDragging||n.onControlMouseDown(s)},n.onClearIndicatorTouchEnd=function(s){n.userIsDragging||n.onClearIndicatorMouseDown(s)},n.onDropdownIndicatorTouchEnd=function(s){n.userIsDragging||n.onDropdownIndicatorMouseDown(s)},n.handleInputChange=function(s){var c=n.props.inputValue,d=s.currentTarget.value;n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange(d,{action:"input-change",prevInputValue:c}),n.props.menuIsOpen||n.onMenuOpen()},n.onInputFocus=function(s){n.props.onFocus&&n.props.onFocus(s),n.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(s){var c=n.props.inputValue;if(n.menuListRef&&n.menuListRef.contains(document.activeElement)){n.inputRef.focus();return}n.props.onBlur&&n.props.onBlur(s),n.onInputChange("",{action:"input-blur",prevInputValue:c}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1})},n.onOptionHover=function(s){if(!(n.blockOptionHover||n.state.focusedOption===s)){var c=n.getFocusableOptions(),d=c.indexOf(s);n.setState({focusedOption:s,focusedOptionId:d>-1?n.getFocusedOptionId(s):null})}},n.shouldHideSelectedOptions=function(){return Cs(n.props)},n.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),n.focus()},n.onKeyDown=function(s){var c=n.props,d=c.isMulti,f=c.backspaceRemovesValue,y=c.escapeClearsValue,C=c.inputValue,b=c.isClearable,h=c.isDisabled,p=c.menuIsOpen,x=c.onKeyDown,E=c.tabSelectsValue,R=c.openMenuOnFocus,A=n.state,I=A.focusedOption,j=A.focusedValue,F=A.selectValue;if(!h&&!(typeof x=="function"&&(x(s),s.defaultPrevented))){switch(n.blockOptionHover=!0,s.key){case"ArrowLeft":if(!d||C)return;n.focusValue("previous");break;case"ArrowRight":if(!d||C)return;n.focusValue("next");break;case"Delete":case"Backspace":if(C)return;if(j)n.removeValue(j);else{if(!f)return;d?n.popValue():b&&n.clearValue()}break;case"Tab":if(n.isComposing||s.shiftKey||!p||!E||!I||R&&n.isOptionSelected(I,F))return;n.selectOption(I);break;case"Enter":if(s.keyCode===229)break;if(p){if(!I||n.isComposing)return;n.selectOption(I);break}return;case"Escape":p?(n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange("",{action:"menu-close",prevInputValue:C}),n.onMenuClose()):b&&y&&n.clearValue();break;case" ":if(C)return;if(!p){n.openMenu("first");break}if(!I)return;n.selectOption(I);break;case"ArrowUp":p?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":p?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!p)return;n.focusOption("pageup");break;case"PageDown":if(!p)return;n.focusOption("pagedown");break;case"Home":if(!p)return;n.focusOption("first");break;case"End":if(!p)return;n.focusOption("last");break;default:return}s.preventDefault()}},n.state.instancePrefix="react-select-"+(n.props.instanceId||++Yp),n.state.selectValue=jo(a.value),a.menuIsOpen&&n.state.selectValue.length){var o=n.getFocusableOptionsWithIds(),i=n.buildFocusableOptions(),l=i.indexOf(n.state.selectValue[0]);n.state.focusableOptionsWithIds=o,n.state.focusedOption=i[l],n.state.focusedOptionId=Ur(o,i[l])}return n}return lc(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Mo(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(n){var o=this.props,i=o.isDisabled,l=o.menuIsOpen,s=this.state.isFocused;(s&&!i&&n.isDisabled||s&&l&&!n.menuIsOpen)&&this.focusInput(),s&&i&&!n.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!s&&!i&&n.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Mo(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(n,o){this.props.onInputChange(n,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(n){var o=this,i=this.state,l=i.selectValue,s=i.isFocused,c=this.buildFocusableOptions(),d=n==="first"?0:c.length-1;if(!this.props.isMulti){var f=c.indexOf(l[0]);f>-1&&(d=f)}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:c[d],focusedOptionId:this.getFocusedOptionId(c[d])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(n){var o=this.state,i=o.selectValue,l=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=i.indexOf(l);l||(s=-1);var c=i.length-1,d=-1;if(i.length){switch(n){case"previous":s===0?d=0:s===-1?d=c:d=s-1;break;case"next":s>-1&&s<c&&(d=s+1);break}this.setState({inputIsHidden:d!==-1,focusedValue:i[d]})}}}},{key:"focusOption",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,i=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var s=0,c=l.indexOf(i);i||(c=-1),n==="up"?s=c>0?c-1:l.length-1:n==="down"?s=(c+1)%l.length:n==="pageup"?(s=c-o,s<0&&(s=0)):n==="pagedown"?(s=c+o,s>l.length-1&&(s=l.length-1)):n==="last"&&(s=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[s])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Jr):ve(ve({},Jr),this.props.theme):Jr}},{key:"getCommonProps",value:function(){var n=this.clearValue,o=this.cx,i=this.getStyles,l=this.getClassNames,s=this.getValue,c=this.selectOption,d=this.setValue,f=this.props,y=f.isMulti,C=f.isRtl,b=f.options,h=this.hasValue();return{clearValue:n,cx:o,getStyles:i,getClassNames:l,getValue:s,hasValue:h,isMulti:y,isRtl:C,options:b,selectOption:c,selectProps:f,setValue:d,theme:this.getTheme()}}},{key:"hasValue",value:function(){var n=this.state.selectValue;return n.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var n=this.props,o=n.isClearable,i=n.isMulti;return o===void 0?i:o}},{key:"isOptionDisabled",value:function(n,o){return hs(this.props,n,o)}},{key:"isOptionSelected",value:function(n,o){return vs(this.props,n,o)}},{key:"filterOption",value:function(n,o){return ys(this.props,n,o)}},{key:"formatOptionLabel",value:function(n,o){if(typeof this.props.formatOptionLabel=="function"){var i=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(n,{context:o,inputValue:i,selectValue:l})}else return this.getOptionLabel(n)}},{key:"formatGroupLabel",value:function(n){return this.props.formatGroupLabel(n)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var n=this.props,o=n.isDisabled,i=n.isSearchable,l=n.inputId,s=n.inputValue,c=n.tabIndex,d=n.form,f=n.menuIsOpen,y=n.required,C=this.getComponents(),b=C.Input,h=this.state,p=h.inputIsHidden,x=h.ariaSelection,E=this.commonProps,R=l||this.getElementId("input"),A=ve(ve(ve({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":y,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!i&&{"aria-readonly":!0}),this.hasValue()?(x==null?void 0:x.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return i?S.createElement(b,xe({},E,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:R,innerRef:this.getInputRef,isDisabled:o,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:c,form:d,type:"text",value:s},A)):S.createElement(hp,xe({id:R,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:yr,onFocus:this.onInputFocus,disabled:o,tabIndex:c,inputMode:"none",form:d,value:""},A))}},{key:"renderPlaceholderOrValue",value:function(){var n=this,o=this.getComponents(),i=o.MultiValue,l=o.MultiValueContainer,s=o.MultiValueLabel,c=o.MultiValueRemove,d=o.SingleValue,f=o.Placeholder,y=this.commonProps,C=this.props,b=C.controlShouldRenderValue,h=C.isDisabled,p=C.isMulti,x=C.inputValue,E=C.placeholder,R=this.state,A=R.selectValue,I=R.focusedValue,j=R.isFocused;if(!this.hasValue()||!b)return x?null:S.createElement(f,xe({},y,{key:"placeholder",isDisabled:h,isFocused:j,innerProps:{id:this.getElementId("placeholder")}}),E);if(p)return A.map(function(M,oe){var re=M===I,ce="".concat(n.getOptionLabel(M),"-").concat(n.getOptionValue(M));return S.createElement(i,xe({},y,{components:{Container:l,Label:s,Remove:c},isFocused:re,isDisabled:h,key:ce,index:oe,removeProps:{onClick:function(){return n.removeValue(M)},onTouchEnd:function(){return n.removeValue(M)},onMouseDown:function(le){le.preventDefault()}},data:M}),n.formatOptionLabel(M,"value"))});if(x)return null;var F=A[0];return S.createElement(d,xe({},y,{data:F,isDisabled:h}),this.formatOptionLabel(F,"value"))}},{key:"renderClearIndicator",value:function(){var n=this.getComponents(),o=n.ClearIndicator,i=this.commonProps,l=this.props,s=l.isDisabled,c=l.isLoading,d=this.state.isFocused;if(!this.isClearable()||!o||s||!this.hasValue()||c)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return S.createElement(o,xe({},i,{innerProps:f,isFocused:d}))}},{key:"renderLoadingIndicator",value:function(){var n=this.getComponents(),o=n.LoadingIndicator,i=this.commonProps,l=this.props,s=l.isDisabled,c=l.isLoading,d=this.state.isFocused;if(!o||!c)return null;var f={"aria-hidden":"true"};return S.createElement(o,xe({},i,{innerProps:f,isDisabled:s,isFocused:d}))}},{key:"renderIndicatorSeparator",value:function(){var n=this.getComponents(),o=n.DropdownIndicator,i=n.IndicatorSeparator;if(!o||!i)return null;var l=this.commonProps,s=this.props.isDisabled,c=this.state.isFocused;return S.createElement(i,xe({},l,{isDisabled:s,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var n=this.getComponents(),o=n.DropdownIndicator;if(!o)return null;var i=this.commonProps,l=this.props.isDisabled,s=this.state.isFocused,c={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return S.createElement(o,xe({},i,{innerProps:c,isDisabled:l,isFocused:s}))}},{key:"renderMenu",value:function(){var n=this,o=this.getComponents(),i=o.Group,l=o.GroupHeading,s=o.Menu,c=o.MenuList,d=o.MenuPortal,f=o.LoadingMessage,y=o.NoOptionsMessage,C=o.Option,b=this.commonProps,h=this.state.focusedOption,p=this.props,x=p.captureMenuScroll,E=p.inputValue,R=p.isLoading,A=p.loadingMessage,I=p.minMenuHeight,j=p.maxMenuHeight,F=p.menuIsOpen,M=p.menuPlacement,oe=p.menuPosition,re=p.menuPortalTarget,ce=p.menuShouldBlockScroll,z=p.menuShouldScrollIntoView,le=p.noOptionsMessage,G=p.onMenuScrollToTop,O=p.onMenuScrollToBottom;if(!F)return null;var V=function(ae,L){var m=ae.type,pe=ae.data,Y=ae.isDisabled,K=ae.isSelected,me=ae.label,ye=ae.value,Te=h===pe,X=Y?void 0:function(){return n.onOptionHover(pe)},je=Y?void 0:function(){return n.selectOption(pe)},Ae="".concat(n.getElementId("option"),"-").concat(L),P={id:Ae,onClick:je,onMouseMove:X,onMouseOver:X,tabIndex:-1,role:"option","aria-selected":n.isAppleDevice?void 0:K};return S.createElement(C,xe({},b,{innerProps:P,data:pe,isDisabled:Y,isSelected:K,key:Ae,label:me,type:m,value:ye,isFocused:Te,innerRef:Te?n.getFocusedOptionRef:void 0}),n.formatOptionLabel(ae.data,"menu"))},$;if(this.hasOptions())$=this.getCategorizedOptions().map(function(Z){if(Z.type==="group"){var ae=Z.data,L=Z.options,m=Z.index,pe="".concat(n.getElementId("group"),"-").concat(m),Y="".concat(pe,"-heading");return S.createElement(i,xe({},b,{key:pe,data:ae,options:L,Heading:l,headingProps:{id:Y,data:Z.data},label:n.formatGroupLabel(Z.data)}),Z.options.map(function(K){return V(K,"".concat(m,"-").concat(K.index))}))}else if(Z.type==="option")return V(Z,"".concat(Z.index))});else if(R){var ne=A({inputValue:E});if(ne===null)return null;$=S.createElement(f,b,ne)}else{var Ie=le({inputValue:E});if(Ie===null)return null;$=S.createElement(y,b,Ie)}var _={minMenuHeight:I,maxMenuHeight:j,menuPlacement:M,menuPosition:oe,menuShouldScrollIntoView:z},W=S.createElement(Yd,xe({},b,_),function(Z){var ae=Z.ref,L=Z.placerProps,m=L.placement,pe=L.maxHeight;return S.createElement(s,xe({},b,_,{innerRef:ae,innerProps:{onMouseDown:n.onMenuMouseDown,onMouseMove:n.onMenuMouseMove},isLoading:R,placement:m}),S.createElement(Ap,{captureEnabled:x,onTopArrive:G,onBottomArrive:O,lockEnabled:ce},function(Y){return S.createElement(c,xe({},b,{innerRef:function(me){n.getMenuListRef(me),Y(me)},innerProps:{role:"listbox","aria-multiselectable":b.isMulti,id:n.getElementId("listbox")},isLoading:R,maxHeight:pe,focusedOption:h}),$)}))});return re||oe==="fixed"?S.createElement(d,xe({},b,{appendTo:re,controlElement:this.controlRef,menuPlacement:M,menuPosition:oe}),W):W}},{key:"renderFormField",value:function(){var n=this,o=this.props,i=o.delimiter,l=o.isDisabled,s=o.isMulti,c=o.name,d=o.required,f=this.state.selectValue;if(d&&!this.hasValue()&&!l)return S.createElement(Np,{name:c,onFocus:this.onValueInputFocus});if(!(!c||l))if(s)if(i){var y=f.map(function(h){return n.getOptionValue(h)}).join(i);return S.createElement("input",{name:c,type:"hidden",value:y})}else{var C=f.length>0?f.map(function(h,p){return S.createElement("input",{key:"i-".concat(p),name:c,type:"hidden",value:n.getOptionValue(h)})}):S.createElement("input",{name:c,type:"hidden",value:""});return S.createElement("div",null,C)}else{var b=f[0]?this.getOptionValue(f[0]):"";return S.createElement("input",{name:c,type:"hidden",value:b})}}},{key:"renderLiveRegion",value:function(){var n=this.commonProps,o=this.state,i=o.ariaSelection,l=o.focusedOption,s=o.focusedValue,c=o.isFocused,d=o.selectValue,f=this.getFocusableOptions();return S.createElement(dp,xe({},n,{id:this.getElementId("live-region"),ariaSelection:i,focusedOption:l,focusedValue:s,isFocused:c,selectValue:d,focusableOptions:f,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var n=this.getComponents(),o=n.Control,i=n.IndicatorsContainer,l=n.SelectContainer,s=n.ValueContainer,c=this.props,d=c.className,f=c.id,y=c.isDisabled,C=c.menuIsOpen,b=this.state.isFocused,h=this.commonProps=this.getCommonProps();return S.createElement(l,xe({},h,{className:d,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:y,isFocused:b}),this.renderLiveRegion(),S.createElement(o,xe({},h,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:y,isFocused:b,menuIsOpen:C}),S.createElement(s,xe({},h,{isDisabled:y}),this.renderPlaceholderOrValue(),this.renderInput()),S.createElement(i,xe({},h,{isDisabled:y}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(n,o){var i=o.prevProps,l=o.clearFocusValueOnUpdate,s=o.inputIsHiddenAfterUpdate,c=o.ariaSelection,d=o.isFocused,f=o.prevWasFocused,y=o.instancePrefix,C=n.options,b=n.value,h=n.menuIsOpen,p=n.inputValue,x=n.isMulti,E=jo(b),R={};if(i&&(b!==i.value||C!==i.options||h!==i.menuIsOpen||p!==i.inputValue)){var A=h?Hp(n,E):[],I=h?Jo(fr(n,E),"".concat(y,"-option")):[],j=l?Zp(o,E):null,F=zp(o,A),M=Ur(I,F);R={selectValue:E,focusedOption:F,focusedOptionId:M,focusableOptionsWithIds:I,focusedValue:j,clearFocusValueOnUpdate:!1}}var oe=s!=null&&n!==i?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},re=c,ce=d&&f;return d&&!ce&&(re={value:ir(x,E,E[0]||null),options:E,action:"initial-input-focus"},ce=!f),(c==null?void 0:c.action)==="initial-input-focus"&&(re=null),ve(ve(ve({},R),oe),{},{prevProps:n,ariaSelection:re,prevWasFocused:ce})}}]),r}(w.Component);xs.defaultProps=Xp;var Jp=w.forwardRef(function(e,t){var r=ic(e);return S.createElement(xs,xe({ref:t},r))}),Up=Jp;const Dn=({value:e,options:t,placeholder:r,onChange:a,className:n="text-xs md:text-sm",styles:o={},isSearchable:i=!1,"data-testid":l})=>{const s={control:(d,f)=>({...d,borderRadius:"0.5rem",borderColor:f.isFocused?"#171412":"#D7D3D0",boxShadow:"none","&:hover":{borderColor:"#171412"},minHeight:"2.5rem",height:"2.5rem",cursor:"pointer"}),valueContainer:d=>({...d,height:"2.5rem",padding:"0 0.875rem"}),input:d=>({...d,margin:0,padding:0}),indicatorsContainer:d=>({...d,height:"2.5rem"}),dropdownIndicator:d=>({...d,color:"#79716B","&:hover":{color:"#79716B"},svg:{strokeWidth:"0.01rem"}}),indicatorSeparator:()=>({display:"none"}),placeholder:d=>({...d,color:"#79716B"}),...o},c=d=>u.jsx(cs.Option,{...d,innerRef:d.innerRef,children:u.jsx("div",{"data-testid":`option-${d.data.value}`,children:d.data.label})});return u.jsx("div",{"data-testid":l,children:u.jsx(Up,{value:e,options:t,placeholder:r,onChange:a,className:n,styles:s,isSearchable:i,components:{Option:c}})})},Vt=S.forwardRef(({className:e,type:t,required:r,...a},n)=>(r&&(a.placeholder=a.placeholder+"*"),u.jsx("input",{type:t,className:Me("flex h-10 w-full rounded-lg border bg-transparent px-3.5 py-2.5 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-grayWarm-400 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-grayWarm-950 disabled:cursor-not-allowed disabled:opacity-50 border-grayWarm-300 focus:border-grayWarm-950 text-grayWarm-700 md:text-s",e),ref:n,...a})));Vt.displayName="Input";function $p(e,t=[]){let r=[];function a(o,i){const l=S.createContext(i),s=r.length;r=[...r,i];const c=f=>{var x;const{scope:y,children:C,...b}=f,h=((x=y==null?void 0:y[e])==null?void 0:x[s])||l,p=S.useMemo(()=>b,Object.values(b));return u.jsx(h.Provider,{value:p,children:C})};c.displayName=o+"Provider";function d(f,y){var h;const C=((h=y==null?void 0:y[e])==null?void 0:h[s])||l,b=S.useContext(C);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[c,d]}const n=()=>{const o=r.map(i=>S.createContext(i));return function(l){const s=(l==null?void 0:l[e])||o;return S.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return n.scopeName=e,[a,Qp(n,...t)]}function Qp(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const a=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(o){const i=a.reduce((l,{useScope:s,scopeName:c})=>{const f=s(o)[`__scope${c}`];return{...l,...f}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function $o(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)}}function Is(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...r)=>{var a;return(a=t.current)==null?void 0:a.call(t,...r)},[])}function Kp({prop:e,defaultProp:t,onChange:r=()=>{}}){const[a,n]=qp({defaultProp:t,onChange:r}),o=e!==void 0,i=o?e:a,l=Is(r),s=S.useCallback(c=>{if(o){const f=typeof c=="function"?c(e):c;f!==e&&l(f)}else n(c)},[o,e,n,l]);return[i,s]}function qp({defaultProp:e,onChange:t}){const r=S.useState(e),[a]=r,n=S.useRef(a),o=Is(t);return S.useEffect(()=>{n.current!==a&&(o(a),n.current=a)},[a,n,o]),r}function eg(e){const t=S.useRef({value:e,previous:e});return S.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var pa=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{};function tg(e){const[t,r]=S.useState(void 0);return pa(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;const o=n[0];let i,l;if("borderBoxSize"in o){const s=o.borderBoxSize,c=Array.isArray(s)?s[0]:s;i=c.inlineSize,l=c.blockSize}else i=e.offsetWidth,l=e.offsetHeight;r({width:i,height:l})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else r(void 0)},[e]),t}function ng(e,t){return S.useReducer((r,a)=>t[r][a]??r,e)}var Ss=e=>{const{present:t,children:r}=e,a=rg(t),n=typeof r=="function"?r({present:a.isPresent}):S.Children.only(r),o=Ai(a.ref,ag(n));return typeof r=="function"||a.isPresent?S.cloneElement(n,{ref:o}):null};Ss.displayName="Presence";function rg(e){const[t,r]=S.useState(),a=S.useRef({}),n=S.useRef(e),o=S.useRef("none"),i=e?"mounted":"unmounted",[l,s]=ng(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const c=sr(a.current);o.current=l==="mounted"?c:"none"},[l]),pa(()=>{const c=a.current,d=n.current;if(d!==e){const y=o.current,C=sr(c);e?s("MOUNT"):C==="none"||(c==null?void 0:c.display)==="none"?s("UNMOUNT"):s(d&&y!==C?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,s]),pa(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,f=C=>{const h=sr(a.current).includes(C.animationName);if(C.target===t&&h&&(s("ANIMATION_END"),!n.current)){const p=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=p)})}},y=C=>{C.target===t&&(o.current=sr(a.current))};return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:S.useCallback(c=>{c&&(a.current=getComputedStyle(c)),r(c)},[])}}function sr(e){return(e==null?void 0:e.animationName)||"none"}function ag(e){var a,n;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Va="Checkbox",[og]=$p(Va),[ig,sg]=og(Va),As=S.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:a,checked:n,defaultChecked:o,required:i,disabled:l,value:s="on",onCheckedChange:c,form:d,...f}=e,[y,C]=S.useState(null),b=Ai(t,A=>C(A)),h=S.useRef(!1),p=y?d||!!y.closest("form"):!0,[x=!1,E]=Kp({prop:n,defaultProp:o,onChange:c}),R=S.useRef(x);return S.useEffect(()=>{const A=y==null?void 0:y.form;if(A){const I=()=>E(R.current);return A.addEventListener("reset",I),()=>A.removeEventListener("reset",I)}},[y,E]),u.jsxs(ig,{scope:r,state:x,disabled:l,children:[u.jsx(Sa.button,{type:"button",role:"checkbox","aria-checked":en(x)?"mixed":x,"aria-required":i,"data-state":Rs(x),"data-disabled":l?"":void 0,disabled:l,value:s,...f,ref:b,onKeyDown:$o(e.onKeyDown,A=>{A.key==="Enter"&&A.preventDefault()}),onClick:$o(e.onClick,A=>{E(I=>en(I)?!0:!I),p&&(h.current=A.isPropagationStopped(),h.current||A.stopPropagation())})}),p&&u.jsx(lg,{control:y,bubbles:!h.current,name:a,value:s,checked:x,required:i,disabled:l,form:d,style:{transform:"translateX(-100%)"},defaultChecked:en(o)?!1:o})]})});As.displayName=Va;var ws="CheckboxIndicator",Es=S.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:a,...n}=e,o=sg(ws,r);return u.jsx(Ss,{present:a||en(o.state)||o.state===!0,children:u.jsx(Sa.span,{"data-state":Rs(o.state),"data-disabled":o.disabled?"":void 0,...n,ref:t,style:{pointerEvents:"none",...e.style}})})});Es.displayName=ws;var lg=e=>{const{control:t,checked:r,bubbles:a=!0,defaultChecked:n,...o}=e,i=S.useRef(null),l=eg(r),s=tg(t);S.useEffect(()=>{const d=i.current,f=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(f,"checked").set;if(l!==r&&C){const b=new Event("click",{bubbles:a});d.indeterminate=en(r),C.call(d,en(r)?!1:r),d.dispatchEvent(b)}},[l,r,a]);const c=S.useRef(en(r)?!1:r);return u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n??c.current,...o,tabIndex:-1,ref:i,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function en(e){return e==="indeterminate"}function Rs(e){return en(e)?"indeterminate":e?"checked":"unchecked"}var Ns=As,ug=Es;/**
|
|
49
|
+
`]))),wf=function(t,n){var a=t.isFocused,r=t.size,o=t.theme,i=o.colors,s=o.spacing.baseUnit;return ye({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},n?{}:{color:a?i.neutral60:i.neutral20,padding:s*2})},Zr=function(t){var n=t.delay,a=t.offset;return be("span",{css:Oa({animation:"".concat(Af," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:a?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3M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AgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},Ef=function(t){var n=t.innerProps,a=t.isRtl,r=t.size,o=r===void 0?4:r,i=Wt(t,mf);return be("div",Ie({},nt(ye(ye({},i),{},{innerProps:n,isRtl:a,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),be(Zr,{delay:0,offset:a}),be(Zr,{delay:160,offset:!0}),be(Zr,{delay:320,offset:!a}))},Rf=function(t,n){var a=t.isDisabled,r=t.isFocused,o=t.theme,i=o.colors,s=o.borderRadius,l=o.spacing;return ye({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:a?i.neutral5:i.neutral0,borderColor:a?i.neutral10:r?i.primary:i.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},Nf=function(t){var n=t.children,a=t.isDisabled,r=t.isFocused,o=t.innerRef,i=t.innerProps,s=t.menuIsOpen;return be("div",Ie({ref:o},nt(t,"control",{control:!0,"control--is-disabled":a,"control--is-focused":r,"control--menu-is-open":s}),i,{"aria-disabled":a||void 0}),n)},Gf=Nf,Pf=["data"],jf=function(t,n){var a=t.theme.spacing;return n?{}:{paddingBottom:a.baseUnit*2,paddingTop:a.baseUnit*2}},Tf=function(t){var n=t.children,a=t.cx,r=t.getStyles,o=t.getClassNames,i=t.Heading,s=t.headingProps,l=t.innerProps,c=t.label,d=t.theme,f=t.selectProps;return be("div",Ie({},nt(t,"group",{group:!0}),l),be(i,Ie({},s,{selectProps:f,theme:d,getStyles:r,getClassNames:o,cx:a}),c),be("div",null,n))},kf=function(t,n){var a=t.theme,r=a.colors,o=a.spacing;return ye({label:"group",cursor:"default",display:"block"},n?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},Mf=function(t){var n=es(t);n.data;var a=Wt(n,Pf);return be("div",Ie({},nt(t,"groupHeading",{"group-heading":!0}),a))},Of=Tf,Ff=["innerRef","isDisabled","isHidden","inputClassName"],Bf=function(t,n){var a=t.isDisabled,r=t.value,o=t.theme,i=o.spacing,s=o.colors;return ye(ye({visibility:a?"hidden":"visible",transform:r?"translateZ(0)":""},Vf),n?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:s.neutral80})},us={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Vf={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ye({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},us)},Df=function(t){return ye({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},us)},_f=function(t){var n=t.cx,a=t.value,r=es(t),o=r.innerRef,i=r.isDisabled,s=r.isHidden,l=r.inputClassName,c=Wt(r,Ff);return be("div",Ie({},nt(t,"input",{"input-container":!0}),{"data-value":a||""}),be("input",Ie({className:n({input:!0},l),ref:o,style:Df(s),disabled:i},c)))},Wf=_f,Lf=function(t,n){var a=t.theme,r=a.spacing,o=a.borderRadius,i=a.colors;return ye({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},Xf=function(t,n){var a=t.theme,r=a.borderRadius,o=a.colors,i=t.cropWithEllipsis;return ye({overflow:"hidden",textOverflow:i||i===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Hf=function(t,n){var a=t.theme,r=a.spacing,o=a.borderRadius,i=a.colors,s=t.isFocused;return ye({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:s?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},cs=function(t){var n=t.children,a=t.innerProps;return be("div",a,n)},Zf=cs,zf=cs;function Yf(e){var t=e.children,n=e.innerProps;return be("div",Ie({role:"button"},n),t||be(Da,{size:14}))}var Jf=function(t){var n=t.children,a=t.components,r=t.data,o=t.innerProps,i=t.isDisabled,s=t.removeProps,l=t.selectProps,c=a.Container,d=a.Label,f=a.Remove;return be(c,{data:r,innerProps:ye(ye({},nt(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:l},be(d,{data:r,innerProps:ye({},nt(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),be(f,{data:r,innerProps:ye(ye({},nt(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:l}))},Uf=Jf,$f=function(t,n){var a=t.isDisabled,r=t.isFocused,o=t.isSelected,i=t.theme,s=i.spacing,l=i.colors;return ye({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?l.primary:r?l.primary25:"transparent",color:a?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:a?void 0:o?l.primary:l.primary50}})},Qf=function(t){var n=t.children,a=t.isDisabled,r=t.isFocused,o=t.isSelected,i=t.innerRef,s=t.innerProps;return be("div",Ie({},nt(t,"option",{option:!0,"option--is-disabled":a,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":a},s),n)},Kf=Qf,qf=function(t,n){var a=t.theme,r=a.spacing,o=a.colors;return ye({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},ep=function(t){var n=t.children,a=t.innerProps;return be("div",Ie({},nt(t,"placeholder",{placeholder:!0}),a),n)},tp=ep,np=function(t,n){var a=t.isDisabled,r=t.theme,o=r.spacing,i=r.colors;return ye({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:a?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},rp=function(t){var n=t.children,a=t.isDisabled,r=t.innerProps;return be("div",Ie({},nt(t,"singleValue",{"single-value":!0,"single-value--is-disabled":a}),r),n)},ap=rp,ds={ClearIndicator:xf,Control:Gf,DropdownIndicator:yf,DownChevron:ss,CrossIcon:Da,Group:Of,GroupHeading:Mf,IndicatorsContainer:pf,IndicatorSeparator:Sf,Input:Wf,LoadingIndicator:Ef,Menu:Kd,MenuList:ef,MenuPortal:sf,LoadingMessage:af,NoOptionsMessage:rf,MultiValue:Uf,MultiValueContainer:Zf,MultiValueLabel:zf,MultiValueRemove:Yf,Option:Kf,Placeholder:tp,SelectContainer:uf,SingleValue:ap,ValueContainer:df},op=function(t){return ye(ye({},ds),t.components)},Vo=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function ip(e,t){return!!(e===t||Vo(e)&&Vo(t))}function sp(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!ip(e[n],t[n]))return!1;return!0}function lp(e,t){t===void 0&&(t=sp);var n=null;function a(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return a.clear=function(){n=null},a}function up(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var cp=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:up},dp=function(t){return be("span",Ie({css:cp},t))},Do=dp,fp={guidance:function(t){var n=t.isSearchable,a=t.isMulti,r=t.tabSelectsValue,o=t.context,i=t.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(a?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,a=t.label,r=a===void 0?"":a,o=t.labels,i=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return i?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(t){var n=t.context,a=t.focused,r=t.options,o=t.label,i=o===void 0?"":o,s=t.selectValue,l=t.isDisabled,c=t.isSelected,d=t.isAppleDevice,f=function(h,p){return h&&h.length?"".concat(h.indexOf(p)+1," of ").concat(h.length):""};if(n==="value"&&s)return"value ".concat(i," focused, ").concat(f(s,a),".");if(n==="menu"&&d){var y=l?" disabled":"",C="".concat(c?" selected":"").concat(y);return"".concat(i).concat(C,", ").concat(f(r,a),".")}return""},onFilter:function(t){var n=t.inputValue,a=t.resultsMessage;return"".concat(a).concat(n?" for search term "+n:"",".")}},pp=function(t){var n=t.ariaSelection,a=t.focusedOption,r=t.focusedValue,o=t.focusableOptions,i=t.isFocused,s=t.selectValue,l=t.selectProps,c=t.id,d=t.isAppleDevice,f=l.ariaLiveMessages,y=l.getOptionLabel,C=l.inputValue,b=l.isMulti,h=l.isOptionDisabled,p=l.isSearchable,x=l.menuIsOpen,E=l.options,R=l.screenReaderStatus,A=l.tabSelectsValue,I=l.isLoading,M=l["aria-label"],B=l["aria-live"],O=w.useMemo(function(){return ye(ye({},fp),f||{})},[f]),re=w.useMemo(function(){var T="";if(n&&O.onChange){var V=n.option,$=n.options,K=n.removedValue,we=n.removedValues,_=n.value,L=function(ce){return Array.isArray(ce)?null:ce},Z=K||V||L(_),ae=Z?y(Z):"",X=$||we||void 0,m=X?X.map(y):[],ge=ye({isDisabled:Z&&h(Z,s),label:ae,labels:m},n);T=O.onChange(ge)}return T},[n,O,h,s,y]),ne=w.useMemo(function(){var T="",V=a||r,$=!!(a&&s&&s.includes(a));if(V&&O.onFocus){var K={focused:V,label:y(V),isDisabled:h(V,s),isSelected:$,options:o,context:V===a?"menu":"value",selectValue:s,isAppleDevice:d};T=O.onFocus(K)}return T},[a,r,y,h,O,o,s,d]),ue=w.useMemo(function(){var T="";if(x&&E.length&&!I&&O.onFilter){var V=R({count:o.length});T=O.onFilter({inputValue:C,resultsMessage:V})}return T},[o,C,x,O,E,R,I]),z=(n==null?void 0:n.action)==="initial-input-focus",ie=w.useMemo(function(){var T="";if(O.guidance){var V=r?"value":x?"menu":"input";T=O.guidance({"aria-label":M,context:V,isDisabled:a&&h(a,s),isMulti:b,isSearchable:p,tabSelectsValue:A,isInitialFocus:z})}return T},[M,a,r,b,h,p,x,O,s,A,z]),G=be(w.Fragment,null,be("span",{id:"aria-selection"},re),be("span",{id:"aria-focused"},ne),be("span",{id:"aria-results"},ue),be("span",{id:"aria-guidance"},ie));return be(w.Fragment,null,be(Do,{id:c},z&&G),be(Do,{"aria-live":B,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!z&&G))},gp=pp,pa=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],mp=new RegExp("["+pa.map(function(e){return e.letters}).join("")+"]","g"),fs={};for(var zr=0;zr<pa.length;zr++)for(var Yr=pa[zr],Jr=0;Jr<Yr.letters.length;Jr++)fs[Yr.letters[Jr]]=Yr.base;var ps=function(t){return t.replace(mp,function(n){return fs[n]})},bp=lp(ps),_o=function(t){return t.replace(/^\s+|\s+$/g,"")},hp=function(t){return"".concat(t.label," ").concat(t.value)},vp=function(t){return function(n,a){if(n.data.__isNew__)return!0;var r=ye({ignoreCase:!0,ignoreAccents:!0,stringify:hp,trim:!0,matchFrom:"any"},t),o=r.ignoreCase,i=r.ignoreAccents,s=r.stringify,l=r.trim,c=r.matchFrom,d=l?_o(a):a,f=l?_o(s(n)):s(n);return o&&(d=d.toLowerCase(),f=f.toLowerCase()),i&&(d=bp(d),f=ps(f)),c==="start"?f.substr(0,d.length)===d:f.indexOf(d)>-1}},yp=["innerRef"];function Cp(e){var t=e.innerRef,n=Wt(e,yp),a=Hd(n,"onExited","in","enter","exit","appear");return be("input",Ie({ref:t},a,{css:Oa({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uI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AgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var xp=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function Ip(e){var t=e.isEnabled,n=e.onBottomArrive,a=e.onBottomLeave,r=e.onTopArrive,o=e.onTopLeave,i=w.useRef(!1),s=w.useRef(!1),l=w.useRef(0),c=w.useRef(null),d=w.useCallback(function(p,x){if(c.current!==null){var E=c.current,R=E.scrollTop,A=E.scrollHeight,I=E.clientHeight,M=c.current,B=x>0,O=A-I-R,re=!1;O>x&&i.current&&(a&&a(p),i.current=!1),B&&s.current&&(o&&o(p),s.current=!1),B&&x>O?(n&&!i.current&&n(p),M.scrollTop=A,re=!0,i.current=!0):!B&&-x>R&&(r&&!s.current&&r(p),M.scrollTop=0,re=!0,s.current=!0),re&&xp(p)}},[n,a,r,o]),f=w.useCallback(function(p){d(p,p.deltaY)},[d]),y=w.useCallback(function(p){l.current=p.changedTouches[0].clientY},[]),C=w.useCallback(function(p){var x=l.current-p.changedTouches[0].clientY;d(p,x)},[d]),b=w.useCallback(function(p){if(p){var x=Wd?{passive:!1}:!1;p.addEventListener("wheel",f,x),p.addEventListener("touchstart",y,x),p.addEventListener("touchmove",C,x)}},[C,y,f]),h=w.useCallback(function(p){p&&(p.removeEventListener("wheel",f,!1),p.removeEventListener("touchstart",y,!1),p.removeEventListener("touchmove",C,!1))},[C,y,f]);return w.useEffect(function(){if(t){var p=c.current;return b(p),function(){h(p)}}},[t,b,h]),function(p){c.current=p}}var Wo=["boxSizing","height","overflow","paddingRight","position"],Lo={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Xo(e){e.cancelable&&e.preventDefault()}function Ho(e){e.stopPropagation()}function Zo(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function zo(){return"ontouchstart"in window||navigator.maxTouchPoints}var Yo=!!(typeof window<"u"&&window.document&&window.document.createElement),kn=0,hn={capture:!1,passive:!1};function Sp(e){var t=e.isEnabled,n=e.accountForScrollbars,a=n===void 0?!0:n,r=w.useRef({}),o=w.useRef(null),i=w.useCallback(function(l){if(Yo){var c=document.body,d=c&&c.style;if(a&&Wo.forEach(function(b){var h=d&&d[b];r.current[b]=h}),a&&kn<1){var f=parseInt(r.current.paddingRight,10)||0,y=document.body?document.body.clientWidth:0,C=window.innerWidth-y+f||0;Object.keys(Lo).forEach(function(b){var h=Lo[b];d&&(d[b]=h)}),d&&(d.paddingRight="".concat(C,"px"))}c&&zo()&&(c.addEventListener("touchmove",Xo,hn),l&&(l.addEventListener("touchstart",Zo,hn),l.addEventListener("touchmove",Ho,hn))),kn+=1}},[a]),s=w.useCallback(function(l){if(Yo){var c=document.body,d=c&&c.style;kn=Math.max(kn-1,0),a&&kn<1&&Wo.forEach(function(f){var y=r.current[f];d&&(d[f]=y)}),c&&zo()&&(c.removeEventListener("touchmove",Xo,hn),l&&(l.removeEventListener("touchstart",Zo,hn),l.removeEventListener("touchmove",Ho,hn)))}},[a]);return w.useEffect(function(){if(t){var l=o.current;return i(l),function(){s(l)}}},[t,i,s]),function(l){o.current=l}}function Ap(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var wp=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},Ep=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXI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GVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:Ap};function Rp(e){var t=e.children,n=e.lockEnabled,a=e.captureEnabled,r=a===void 0?!0:a,o=e.onBottomArrive,i=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,c=Ip({isEnabled:r,onBottomArrive:o,onBottomLeave:i,onTopArrive:s,onTopLeave:l}),d=Sp({isEnabled:n}),f=function(C){c(C),d(C)};return be(w.Fragment,null,n&&be("div",{onClick:wp,css:Ep}),t(f))}function Np(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Gp=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:Np},Pp=function(t){var n=t.name,a=t.onFocus;return be("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:a,css:Gp,value:"",onChange:function(){}})},jp=Pp;function _a(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Tp(){return _a(/^iPhone/i)}function gs(){return _a(/^Mac/i)}function kp(){return _a(/^iPad/i)||gs()&&navigator.maxTouchPoints>1}function Mp(){return Tp()||kp()}function Op(){return gs()||Mp()}var Fp=function(t){return t.label},Bp=function(t){return t.label},Vp=function(t){return t.value},Dp=function(t){return!!t.isDisabled},_p={clearIndicator:Cf,container:lf,control:Rf,dropdownIndicator:vf,group:jf,groupHeading:kf,indicatorsContainer:ff,indicatorSeparator:If,input:Bf,loadingIndicator:wf,loadingMessage:nf,menu:Ud,menuList:qd,menuPortal:of,multiValue:Lf,multiValueLabel:Xf,multiValueRemove:Hf,noOptionsMessage:tf,option:$f,placeholder:qf,singleValue:np,valueContainer:cf},Wp={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Lp=4,ms=4,Xp=38,Hp=ms*2,Zp={baseUnit:ms,controlHeight:Xp,menuGutter:Hp},Ur={borderRadius:Lp,colors:Wp,spacing:Zp},zp={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Fo(),captureMenuScroll:!Fo(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:vp(),formatGroupLabel:Fp,getOptionLabel:Bp,getOptionValue:Vp,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Dp,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Dd(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Jo(e,t,n,a){var r=vs(e,t,n),o=ys(e,t,n),i=hs(e,t),s=Ir(e,t);return{type:"option",data:t,isDisabled:r,isSelected:o,label:i,value:s,index:a}}function pr(e,t){return e.options.map(function(n,a){if("options"in n){var r=n.options.map(function(i,s){return Jo(e,i,t,s)}).filter(function(i){return $o(e,i)});return r.length>0?{type:"group",data:n,options:r,index:a}:void 0}var o=Jo(e,n,t,a);return $o(e,o)?o:void 0}).filter(Ld)}function bs(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Pa(n.options.map(function(a){return a.data}))):t.push(n.data),t},[])}function Uo(e,t){return e.reduce(function(n,a){return a.type==="group"?n.push.apply(n,Pa(a.options.map(function(r){return{data:r.data,id:"".concat(t,"-").concat(a.index,"-").concat(r.index)}}))):n.push({data:a.data,id:"".concat(t,"-").concat(a.index)}),n},[])}function Yp(e,t){return bs(pr(e,t))}function $o(e,t){var n=e.inputValue,a=n===void 0?"":n,r=t.data,o=t.isSelected,i=t.label,s=t.value;return(!xs(e)||!o)&&Cs(e,{label:i,value:s,data:r},a)}function Jp(e,t){var n=e.focusedValue,a=e.selectValue,r=a.indexOf(n);if(r>-1){var o=t.indexOf(n);if(o>-1)return n;if(r<t.length)return t[r]}return null}function Up(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var $r=function(t,n){var a,r=(a=t.find(function(o){return o.data===n}))===null||a===void 0?void 0:a.id;return r||null},hs=function(t,n){return t.getOptionLabel(n)},Ir=function(t,n){return t.getOptionValue(n)};function vs(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function ys(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var a=Ir(e,t);return n.some(function(r){return Ir(e,r)===a})}function Cs(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var xs=function(t){var n=t.hideSelectedOptions,a=t.isMulti;return n===void 0?a:n},$p=1,Is=function(e){fc(n,e);var t=mc(n);function n(a){var r;if(cc(this,n),r=t.call(this,a),r.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.isAppleDevice=Op(),r.controlRef=null,r.getControlRef=function(l){r.controlRef=l},r.focusedOptionRef=null,r.getFocusedOptionRef=function(l){r.focusedOptionRef=l},r.menuListRef=null,r.getMenuListRef=function(l){r.menuListRef=l},r.inputRef=null,r.getInputRef=function(l){r.inputRef=l},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(l,c){var d=r.props,f=d.onChange,y=d.name;c.name=y,r.ariaOnChange(l,c),f(l,c)},r.setValue=function(l,c,d){var f=r.props,y=f.closeMenuOnSelect,C=f.isMulti,b=f.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:b}),y&&(r.setState({inputIsHiddenAfterUpdate:!C}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(l,{action:c,option:d})},r.selectOption=function(l){var c=r.props,d=c.blurInputOnSelect,f=c.isMulti,y=c.name,C=r.state.selectValue,b=f&&r.isOptionSelected(l,C),h=r.isOptionDisabled(l,C);if(b){var p=r.getOptionValue(l);r.setValue(C.filter(function(x){return r.getOptionValue(x)!==p}),"deselect-option",l)}else if(!h)f?r.setValue([].concat(Pa(C),[l]),"select-option",l):r.setValue(l,"select-option");else{r.ariaOnChange(l,{action:"select-option",option:l,name:y});return}d&&r.blurInput()},r.removeValue=function(l){var c=r.props.isMulti,d=r.state.selectValue,f=r.getOptionValue(l),y=d.filter(function(b){return r.getOptionValue(b)!==f}),C=sr(c,y,y[0]||null);r.onChange(C,{action:"remove-value",removedValue:l}),r.focusInput()},r.clearValue=function(){var l=r.state.selectValue;r.onChange(sr(r.props.isMulti,[],null),{action:"clear",removedValues:l})},r.popValue=function(){var l=r.props.isMulti,c=r.state.selectValue,d=c[c.length-1],f=c.slice(0,c.length-1),y=sr(l,f,f[0]||null);d&&r.onChange(y,{action:"pop-value",removedValue:d})},r.getFocusedOptionId=function(l){return $r(r.state.focusableOptionsWithIds,l)},r.getFocusableOptionsWithIds=function(){return Uo(pr(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];return Md.apply(void 0,[r.props.classNamePrefix].concat(c))},r.getOptionLabel=function(l){return hs(r.props,l)},r.getOptionValue=function(l){return Ir(r.props,l)},r.getStyles=function(l,c){var d=r.props.unstyled,f=_p[l](c,d);f.boxSizing="border-box";var y=r.props.styles[l];return y?y(f,c):f},r.getClassNames=function(l,c){var d,f;return(d=(f=r.props.classNames)[l])===null||d===void 0?void 0:d.call(f,c)},r.getElementId=function(l){return"".concat(r.state.instancePrefix,"-").concat(l)},r.getComponents=function(){return op(r.props)},r.buildCategorizedOptions=function(){return pr(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return bs(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(l,c){r.setState({ariaSelection:ye({value:l},c)})},r.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(l){r.blockOptionHover=!1},r.onControlMouseDown=function(l){if(!l.defaultPrevented){var c=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&r.onMenuClose():c&&r.openMenu("first"):(c&&(r.openAfterFocus=!0),r.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},r.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!r.props.isDisabled){var c=r.props,d=c.isMulti,f=c.menuIsOpen;r.focusInput(),f?(r.setState({inputIsHiddenAfterUpdate:!d}),r.onMenuClose()):r.openMenu("first"),l.preventDefault()}},r.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(r.clearValue(),l.preventDefault(),r.openAfterFocus=!1,l.type==="touchend"?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(l){typeof r.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&jr(l.target)&&r.props.onMenuClose():typeof r.props.closeMenuOnScroll=="function"&&r.props.closeMenuOnScroll(l)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(l){var c=l.touches,d=c&&c.item(0);d&&(r.initialTouchX=d.clientX,r.initialTouchY=d.clientY,r.userIsDragging=!1)},r.onTouchMove=function(l){var c=l.touches,d=c&&c.item(0);if(d){var f=Math.abs(d.clientX-r.initialTouchX),y=Math.abs(d.clientY-r.initialTouchY),C=5;r.userIsDragging=f>C||y>C}},r.onTouchEnd=function(l){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(l.target)&&r.menuListRef&&!r.menuListRef.contains(l.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(l){r.userIsDragging||r.onControlMouseDown(l)},r.onClearIndicatorTouchEnd=function(l){r.userIsDragging||r.onClearIndicatorMouseDown(l)},r.onDropdownIndicatorTouchEnd=function(l){r.userIsDragging||r.onDropdownIndicatorMouseDown(l)},r.handleInputChange=function(l){var c=r.props.inputValue,d=l.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(d,{action:"input-change",prevInputValue:c}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(l){r.props.onFocus&&r.props.onFocus(l),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(l){var c=r.props.inputValue;if(r.menuListRef&&r.menuListRef.contains(document.activeElement)){r.inputRef.focus();return}r.props.onBlur&&r.props.onBlur(l),r.onInputChange("",{action:"input-blur",prevInputValue:c}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1})},r.onOptionHover=function(l){if(!(r.blockOptionHover||r.state.focusedOption===l)){var c=r.getFocusableOptions(),d=c.indexOf(l);r.setState({focusedOption:l,focusedOptionId:d>-1?r.getFocusedOptionId(l):null})}},r.shouldHideSelectedOptions=function(){return xs(r.props)},r.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),r.focus()},r.onKeyDown=function(l){var c=r.props,d=c.isMulti,f=c.backspaceRemovesValue,y=c.escapeClearsValue,C=c.inputValue,b=c.isClearable,h=c.isDisabled,p=c.menuIsOpen,x=c.onKeyDown,E=c.tabSelectsValue,R=c.openMenuOnFocus,A=r.state,I=A.focusedOption,M=A.focusedValue,B=A.selectValue;if(!h&&!(typeof x=="function"&&(x(l),l.defaultPrevented))){switch(r.blockOptionHover=!0,l.key){case"ArrowLeft":if(!d||C)return;r.focusValue("previous");break;case"ArrowRight":if(!d||C)return;r.focusValue("next");break;case"Delete":case"Backspace":if(C)return;if(M)r.removeValue(M);else{if(!f)return;d?r.popValue():b&&r.clearValue()}break;case"Tab":if(r.isComposing||l.shiftKey||!p||!E||!I||R&&r.isOptionSelected(I,B))return;r.selectOption(I);break;case"Enter":if(l.keyCode===229)break;if(p){if(!I||r.isComposing)return;r.selectOption(I);break}return;case"Escape":p?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:C}),r.onMenuClose()):b&&y&&r.clearValue();break;case" ":if(C)return;if(!p){r.openMenu("first");break}if(!I)return;r.selectOption(I);break;case"ArrowUp":p?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":p?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!p)return;r.focusOption("pageup");break;case"PageDown":if(!p)return;r.focusOption("pagedown");break;case"Home":if(!p)return;r.focusOption("first");break;case"End":if(!p)return;r.focusOption("last");break;default:return}l.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++$p),r.state.selectValue=Mo(a.value),a.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),i=r.buildFocusableOptions(),s=i.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=i[s],r.state.focusedOptionId=$r(o,i[s])}return r}return dc(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Oo(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(r){var o=this.props,i=o.isDisabled,s=o.menuIsOpen,l=this.state.isFocused;(l&&!i&&r.isDisabled||l&&s&&!r.menuIsOpen)&&this.focusInput(),l&&i&&!r.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!i&&r.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Oo(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(r,o){this.props.onInputChange(r,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(r){var o=this,i=this.state,s=i.selectValue,l=i.isFocused,c=this.buildFocusableOptions(),d=r==="first"?0:c.length-1;if(!this.props.isMulti){var f=c.indexOf(s[0]);f>-1&&(d=f)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:c[d],focusedOptionId:this.getFocusedOptionId(c[d])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(r){var o=this.state,i=o.selectValue,s=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=i.indexOf(s);s||(l=-1);var c=i.length-1,d=-1;if(i.length){switch(r){case"previous":l===0?d=0:l===-1?d=c:d=l-1;break;case"next":l>-1&&l<c&&(d=l+1);break}this.setState({inputIsHidden:d!==-1,focusedValue:i[d]})}}}},{key:"focusOption",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,i=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var l=0,c=s.indexOf(i);i||(c=-1),r==="up"?l=c>0?c-1:s.length-1:r==="down"?l=(c+1)%s.length:r==="pageup"?(l=c-o,l<0&&(l=0)):r==="pagedown"?(l=c+o,l>s.length-1&&(l=s.length-1)):r==="last"&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Ur):ye(ye({},Ur),this.props.theme):Ur}},{key:"getCommonProps",value:function(){var r=this.clearValue,o=this.cx,i=this.getStyles,s=this.getClassNames,l=this.getValue,c=this.selectOption,d=this.setValue,f=this.props,y=f.isMulti,C=f.isRtl,b=f.options,h=this.hasValue();return{clearValue:r,cx:o,getStyles:i,getClassNames:s,getValue:l,hasValue:h,isMulti:y,isRtl:C,options:b,selectOption:c,selectProps:f,setValue:d,theme:this.getTheme()}}},{key:"hasValue",value:function(){var r=this.state.selectValue;return r.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var r=this.props,o=r.isClearable,i=r.isMulti;return o===void 0?i:o}},{key:"isOptionDisabled",value:function(r,o){return vs(this.props,r,o)}},{key:"isOptionSelected",value:function(r,o){return ys(this.props,r,o)}},{key:"filterOption",value:function(r,o){return Cs(this.props,r,o)}},{key:"formatOptionLabel",value:function(r,o){if(typeof this.props.formatOptionLabel=="function"){var i=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(r,{context:o,inputValue:i,selectValue:s})}else return this.getOptionLabel(r)}},{key:"formatGroupLabel",value:function(r){return this.props.formatGroupLabel(r)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var r=this.props,o=r.isDisabled,i=r.isSearchable,s=r.inputId,l=r.inputValue,c=r.tabIndex,d=r.form,f=r.menuIsOpen,y=r.required,C=this.getComponents(),b=C.Input,h=this.state,p=h.inputIsHidden,x=h.ariaSelection,E=this.commonProps,R=s||this.getElementId("input"),A=ye(ye(ye({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":y,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!i&&{"aria-readonly":!0}),this.hasValue()?(x==null?void 0:x.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return i?S.createElement(b,Ie({},E,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:R,innerRef:this.getInputRef,isDisabled:o,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:c,form:d,type:"text",value:l},A)):S.createElement(Cp,Ie({id:R,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Cr,onFocus:this.onInputFocus,disabled:o,tabIndex:c,inputMode:"none",form:d,value:""},A))}},{key:"renderPlaceholderOrValue",value:function(){var r=this,o=this.getComponents(),i=o.MultiValue,s=o.MultiValueContainer,l=o.MultiValueLabel,c=o.MultiValueRemove,d=o.SingleValue,f=o.Placeholder,y=this.commonProps,C=this.props,b=C.controlShouldRenderValue,h=C.isDisabled,p=C.isMulti,x=C.inputValue,E=C.placeholder,R=this.state,A=R.selectValue,I=R.focusedValue,M=R.isFocused;if(!this.hasValue()||!b)return x?null:S.createElement(f,Ie({},y,{key:"placeholder",isDisabled:h,isFocused:M,innerProps:{id:this.getElementId("placeholder")}}),E);if(p)return A.map(function(O,re){var ne=O===I,ue="".concat(r.getOptionLabel(O),"-").concat(r.getOptionValue(O));return S.createElement(i,Ie({},y,{components:{Container:s,Label:l,Remove:c},isFocused:ne,isDisabled:h,key:ue,index:re,removeProps:{onClick:function(){return r.removeValue(O)},onTouchEnd:function(){return r.removeValue(O)},onMouseDown:function(ie){ie.preventDefault()}},data:O}),r.formatOptionLabel(O,"value"))});if(x)return null;var B=A[0];return S.createElement(d,Ie({},y,{data:B,isDisabled:h}),this.formatOptionLabel(B,"value"))}},{key:"renderClearIndicator",value:function(){var r=this.getComponents(),o=r.ClearIndicator,i=this.commonProps,s=this.props,l=s.isDisabled,c=s.isLoading,d=this.state.isFocused;if(!this.isClearable()||!o||l||!this.hasValue()||c)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return S.createElement(o,Ie({},i,{innerProps:f,isFocused:d}))}},{key:"renderLoadingIndicator",value:function(){var r=this.getComponents(),o=r.LoadingIndicator,i=this.commonProps,s=this.props,l=s.isDisabled,c=s.isLoading,d=this.state.isFocused;if(!o||!c)return null;var f={"aria-hidden":"true"};return S.createElement(o,Ie({},i,{innerProps:f,isDisabled:l,isFocused:d}))}},{key:"renderIndicatorSeparator",value:function(){var r=this.getComponents(),o=r.DropdownIndicator,i=r.IndicatorSeparator;if(!o||!i)return null;var s=this.commonProps,l=this.props.isDisabled,c=this.state.isFocused;return S.createElement(i,Ie({},s,{isDisabled:l,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var r=this.getComponents(),o=r.DropdownIndicator;if(!o)return null;var i=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused,c={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return S.createElement(o,Ie({},i,{innerProps:c,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var r=this,o=this.getComponents(),i=o.Group,s=o.GroupHeading,l=o.Menu,c=o.MenuList,d=o.MenuPortal,f=o.LoadingMessage,y=o.NoOptionsMessage,C=o.Option,b=this.commonProps,h=this.state.focusedOption,p=this.props,x=p.captureMenuScroll,E=p.inputValue,R=p.isLoading,A=p.loadingMessage,I=p.minMenuHeight,M=p.maxMenuHeight,B=p.menuIsOpen,O=p.menuPlacement,re=p.menuPosition,ne=p.menuPortalTarget,ue=p.menuShouldBlockScroll,z=p.menuShouldScrollIntoView,ie=p.noOptionsMessage,G=p.onMenuScrollToTop,T=p.onMenuScrollToBottom;if(!B)return null;var V=function(ae,X){var m=ae.type,ge=ae.data,de=ae.isDisabled,ce=ae.isSelected,Ne=ae.label,Y=ae.value,me=h===ge,k=de?void 0:function(){return r.onOptionHover(ge)},Se=de?void 0:function(){return r.selectOption(ge)},Ce="".concat(r.getElementId("option"),"-").concat(X),P={id:Ce,onClick:Se,onMouseMove:k,onMouseOver:k,tabIndex:-1,role:"option","aria-selected":r.isAppleDevice?void 0:ce};return S.createElement(C,Ie({},b,{innerProps:P,data:ge,isDisabled:de,isSelected:ce,key:Ce,label:Ne,type:m,value:Y,isFocused:me,innerRef:me?r.getFocusedOptionRef:void 0}),r.formatOptionLabel(ae.data,"menu"))},$;if(this.hasOptions())$=this.getCategorizedOptions().map(function(Z){if(Z.type==="group"){var ae=Z.data,X=Z.options,m=Z.index,ge="".concat(r.getElementId("group"),"-").concat(m),de="".concat(ge,"-heading");return S.createElement(i,Ie({},b,{key:ge,data:ae,options:X,Heading:s,headingProps:{id:de,data:Z.data},label:r.formatGroupLabel(Z.data)}),Z.options.map(function(ce){return V(ce,"".concat(m,"-").concat(ce.index))}))}else if(Z.type==="option")return V(Z,"".concat(Z.index))});else if(R){var K=A({inputValue:E});if(K===null)return null;$=S.createElement(f,b,K)}else{var we=ie({inputValue:E});if(we===null)return null;$=S.createElement(y,b,we)}var _={minMenuHeight:I,maxMenuHeight:M,menuPlacement:O,menuPosition:re,menuShouldScrollIntoView:z},L=S.createElement($d,Ie({},b,_),function(Z){var ae=Z.ref,X=Z.placerProps,m=X.placement,ge=X.maxHeight;return S.createElement(l,Ie({},b,_,{innerRef:ae,innerProps:{onMouseDown:r.onMenuMouseDown,onMouseMove:r.onMenuMouseMove},isLoading:R,placement:m}),S.createElement(Rp,{captureEnabled:x,onTopArrive:G,onBottomArrive:T,lockEnabled:ue},function(de){return S.createElement(c,Ie({},b,{innerRef:function(Ne){r.getMenuListRef(Ne),de(Ne)},innerProps:{role:"listbox","aria-multiselectable":b.isMulti,id:r.getElementId("listbox")},isLoading:R,maxHeight:ge,focusedOption:h}),$)}))});return ne||re==="fixed"?S.createElement(d,Ie({},b,{appendTo:ne,controlElement:this.controlRef,menuPlacement:O,menuPosition:re}),L):L}},{key:"renderFormField",value:function(){var r=this,o=this.props,i=o.delimiter,s=o.isDisabled,l=o.isMulti,c=o.name,d=o.required,f=this.state.selectValue;if(d&&!this.hasValue()&&!s)return S.createElement(jp,{name:c,onFocus:this.onValueInputFocus});if(!(!c||s))if(l)if(i){var y=f.map(function(h){return r.getOptionValue(h)}).join(i);return S.createElement("input",{name:c,type:"hidden",value:y})}else{var C=f.length>0?f.map(function(h,p){return S.createElement("input",{key:"i-".concat(p),name:c,type:"hidden",value:r.getOptionValue(h)})}):S.createElement("input",{name:c,type:"hidden",value:""});return S.createElement("div",null,C)}else{var b=f[0]?this.getOptionValue(f[0]):"";return S.createElement("input",{name:c,type:"hidden",value:b})}}},{key:"renderLiveRegion",value:function(){var r=this.commonProps,o=this.state,i=o.ariaSelection,s=o.focusedOption,l=o.focusedValue,c=o.isFocused,d=o.selectValue,f=this.getFocusableOptions();return S.createElement(gp,Ie({},r,{id:this.getElementId("live-region"),ariaSelection:i,focusedOption:s,focusedValue:l,isFocused:c,selectValue:d,focusableOptions:f,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var r=this.getComponents(),o=r.Control,i=r.IndicatorsContainer,s=r.SelectContainer,l=r.ValueContainer,c=this.props,d=c.className,f=c.id,y=c.isDisabled,C=c.menuIsOpen,b=this.state.isFocused,h=this.commonProps=this.getCommonProps();return S.createElement(s,Ie({},h,{className:d,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:y,isFocused:b}),this.renderLiveRegion(),S.createElement(o,Ie({},h,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:y,isFocused:b,menuIsOpen:C}),S.createElement(l,Ie({},h,{isDisabled:y}),this.renderPlaceholderOrValue(),this.renderInput()),S.createElement(i,Ie({},h,{isDisabled:y}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(r,o){var i=o.prevProps,s=o.clearFocusValueOnUpdate,l=o.inputIsHiddenAfterUpdate,c=o.ariaSelection,d=o.isFocused,f=o.prevWasFocused,y=o.instancePrefix,C=r.options,b=r.value,h=r.menuIsOpen,p=r.inputValue,x=r.isMulti,E=Mo(b),R={};if(i&&(b!==i.value||C!==i.options||h!==i.menuIsOpen||p!==i.inputValue)){var A=h?Yp(r,E):[],I=h?Uo(pr(r,E),"".concat(y,"-option")):[],M=s?Jp(o,E):null,B=Up(o,A),O=$r(I,B);R={selectValue:E,focusedOption:B,focusedOptionId:O,focusableOptionsWithIds:I,focusedValue:M,clearFocusValueOnUpdate:!1}}var re=l!=null&&r!==i?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},ne=c,ue=d&&f;return d&&!ue&&(ne={value:sr(x,E,E[0]||null),options:E,action:"initial-input-focus"},ue=!f),(c==null?void 0:c.action)==="initial-input-focus"&&(ne=null),ye(ye(ye({},R),re),{},{prevProps:r,ariaSelection:ne,prevWasFocused:ue})}}]),n}(w.Component);Is.defaultProps=zp;var Qp=w.forwardRef(function(e,t){var n=uc(e);return S.createElement(Is,Ie({ref:t},n))}),Kp=Qp;const Dn=({value:e,options:t,placeholder:n,onChange:a,className:r="text-xs md:text-sm",styles:o={},isSearchable:i=!1,"data-testid":s})=>{const l={control:(d,f)=>({...d,borderRadius:"0.5rem",borderColor:f.isFocused?"#171412":"#D7D3D0",boxShadow:"none","&:hover":{borderColor:"#171412"},minHeight:"2.5rem",height:"2.5rem",cursor:"pointer"}),valueContainer:d=>({...d,height:"2.5rem",padding:"0 0.875rem"}),input:d=>({...d,margin:0,padding:0}),indicatorsContainer:d=>({...d,height:"2.5rem"}),dropdownIndicator:d=>({...d,color:"#79716B","&:hover":{color:"#79716B"},svg:{strokeWidth:"0.01rem"}}),indicatorSeparator:()=>({display:"none"}),placeholder:d=>({...d,color:"#79716B"}),...o},c=d=>u.jsx(ds.Option,{...d,innerRef:d.innerRef,children:u.jsx("div",{"data-testid":`option-${d.data.value}`,children:d.data.label})});return u.jsx("div",{"data-testid":s,children:u.jsx(Kp,{value:e,options:t,placeholder:n,onChange:a,className:r,styles:l,isSearchable:i,components:{Option:c}})})},Vt=S.forwardRef(({className:e,type:t,required:n,...a},r)=>(n&&(a.placeholder=a.placeholder+"*"),u.jsx("input",{type:t,className:Me("flex h-10 w-full rounded-lg border bg-transparent px-3.5 py-2.5 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-grayWarm-400 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-grayWarm-950 disabled:cursor-not-allowed disabled:opacity-50 border-grayWarm-300 focus:border-grayWarm-950 text-grayWarm-700 md:text-s",e),ref:r,...a})));Vt.displayName="Input";function qp(e,t=[]){let n=[];function a(o,i){const s=S.createContext(i),l=n.length;n=[...n,i];const c=f=>{var x;const{scope:y,children:C,...b}=f,h=((x=y==null?void 0:y[e])==null?void 0:x[l])||s,p=S.useMemo(()=>b,Object.values(b));return u.jsx(h.Provider,{value:p,children:C})};c.displayName=o+"Provider";function d(f,y){var h;const C=((h=y==null?void 0:y[e])==null?void 0:h[l])||s,b=S.useContext(C);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[c,d]}const r=()=>{const o=n.map(i=>S.createContext(i));return function(s){const l=(s==null?void 0:s[e])||o;return S.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return r.scopeName=e,[a,eg(r,...t)]}function eg(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const a=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(o){const i=a.reduce((s,{useScope:l,scopeName:c})=>{const f=l(o)[`__scope${c}`];return{...s,...f}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Qo(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Ss(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...n)=>{var a;return(a=t.current)==null?void 0:a.call(t,...n)},[])}function tg({prop:e,defaultProp:t,onChange:n=()=>{}}){const[a,r]=ng({defaultProp:t,onChange:n}),o=e!==void 0,i=o?e:a,s=Ss(n),l=S.useCallback(c=>{if(o){const f=typeof c=="function"?c(e):c;f!==e&&s(f)}else r(c)},[o,e,r,s]);return[i,l]}function ng({defaultProp:e,onChange:t}){const n=S.useState(e),[a]=n,r=S.useRef(a),o=Ss(t);return S.useEffect(()=>{r.current!==a&&(o(a),r.current=a)},[a,r,o]),n}function rg(e){const t=S.useRef({value:e,previous:e});return S.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var ga=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{};function ag(e){const[t,n]=S.useState(void 0);return ga(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const o=r[0];let i,s;if("borderBoxSize"in o){const l=o.borderBoxSize,c=Array.isArray(l)?l[0]:l;i=c.inlineSize,s=c.blockSize}else i=e.offsetWidth,s=e.offsetHeight;n({width:i,height:s})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else n(void 0)},[e]),t}function og(e,t){return S.useReducer((n,a)=>t[n][a]??n,e)}var As=e=>{const{present:t,children:n}=e,a=ig(t),r=typeof n=="function"?n({present:a.isPresent}):S.Children.only(n),o=wi(a.ref,sg(r));return typeof n=="function"||a.isPresent?S.cloneElement(r,{ref:o}):null};As.displayName="Presence";function ig(e){const[t,n]=S.useState(),a=S.useRef({}),r=S.useRef(e),o=S.useRef("none"),i=e?"mounted":"unmounted",[s,l]=og(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const c=lr(a.current);o.current=s==="mounted"?c:"none"},[s]),ga(()=>{const c=a.current,d=r.current;if(d!==e){const y=o.current,C=lr(c);e?l("MOUNT"):C==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&y!==C?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),ga(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,f=C=>{const h=lr(a.current).includes(C.animationName);if(C.target===t&&h&&(l("ANIMATION_END"),!r.current)){const p=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=p)})}},y=C=>{C.target===t&&(o.current=lr(a.current))};return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:S.useCallback(c=>{c&&(a.current=getComputedStyle(c)),n(c)},[])}}function lr(e){return(e==null?void 0:e.animationName)||"none"}function sg(e){var a,r;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Wa="Checkbox",[lg]=qp(Wa),[ug,cg]=lg(Wa),ws=S.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:a,checked:r,defaultChecked:o,required:i,disabled:s,value:l="on",onCheckedChange:c,form:d,...f}=e,[y,C]=S.useState(null),b=wi(t,A=>C(A)),h=S.useRef(!1),p=y?d||!!y.closest("form"):!0,[x=!1,E]=tg({prop:r,defaultProp:o,onChange:c}),R=S.useRef(x);return S.useEffect(()=>{const A=y==null?void 0:y.form;if(A){const I=()=>E(R.current);return A.addEventListener("reset",I),()=>A.removeEventListener("reset",I)}},[y,E]),u.jsxs(ug,{scope:n,state:x,disabled:s,children:[u.jsx(Ea.button,{type:"button",role:"checkbox","aria-checked":qt(x)?"mixed":x,"aria-required":i,"data-state":Ns(x),"data-disabled":s?"":void 0,disabled:s,value:l,...f,ref:b,onKeyDown:Qo(e.onKeyDown,A=>{A.key==="Enter"&&A.preventDefault()}),onClick:Qo(e.onClick,A=>{E(I=>qt(I)?!0:!I),p&&(h.current=A.isPropagationStopped(),h.current||A.stopPropagation())})}),p&&u.jsx(dg,{control:y,bubbles:!h.current,name:a,value:l,checked:x,required:i,disabled:s,form:d,style:{transform:"translateX(-100%)"},defaultChecked:qt(o)?!1:o})]})});ws.displayName=Wa;var Es="CheckboxIndicator",Rs=S.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:a,...r}=e,o=cg(Es,n);return u.jsx(As,{present:a||qt(o.state)||o.state===!0,children:u.jsx(Ea.span,{"data-state":Ns(o.state),"data-disabled":o.disabled?"":void 0,...r,ref:t,style:{pointerEvents:"none",...e.style}})})});Rs.displayName=Es;var dg=e=>{const{control:t,checked:n,bubbles:a=!0,defaultChecked:r,...o}=e,i=S.useRef(null),s=rg(n),l=ag(t);S.useEffect(()=>{const d=i.current,f=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(f,"checked").set;if(s!==n&&C){const b=new Event("click",{bubbles:a});d.indeterminate=qt(n),C.call(d,qt(n)?!1:n),d.dispatchEvent(b)}},[s,n,a]);const c=S.useRef(qt(n)?!1:n);return u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r??c.current,...o,tabIndex:-1,ref:i,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function qt(e){return e==="indeterminate"}function Ns(e){return qt(e)?"indeterminate":e?"checked":"unchecked"}var Gs=ws,fg=Rs;/**
|
|
50
50
|
* @license lucide-react v0.456.0 - ISC
|
|
51
51
|
*
|
|
52
52
|
* This source code is licensed under the ISC license.
|
|
53
53
|
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
-
*/const
|
|
54
|
+
*/const pg=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ps=(...e)=>e.filter((t,n,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===n).join(" ").trim();/**
|
|
55
55
|
* @license lucide-react v0.456.0 - ISC
|
|
56
56
|
*
|
|
57
57
|
* This source code is licensed under the ISC license.
|
|
58
58
|
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
-
*/var
|
|
59
|
+
*/var gg={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
60
60
|
* @license lucide-react v0.456.0 - ISC
|
|
61
61
|
*
|
|
62
62
|
* This source code is licensed under the ISC license.
|
|
63
63
|
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
-
*/const
|
|
64
|
+
*/const mg=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:a,className:r="",children:o,iconNode:i,...s},l)=>w.createElement("svg",{ref:l,...gg,width:t,height:t,stroke:e,strokeWidth:a?Number(n)*24/Number(t):n,className:Ps("lucide",r),...s},[...i.map(([c,d])=>w.createElement(c,d)),...Array.isArray(o)?o:[o]]));/**
|
|
65
65
|
* @license lucide-react v0.456.0 - ISC
|
|
66
66
|
*
|
|
67
67
|
* This source code is licensed under the ISC license.
|
|
68
68
|
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/const
|
|
69
|
+
*/const Xn=(e,t)=>{const n=w.forwardRef(({className:a,...r},o)=>w.createElement(mg,{ref:o,iconNode:t,className:Ps(`lucide-${pg(e)}`,a),...r}));return n.displayName=`${e}`,n};/**
|
|
70
70
|
* @license lucide-react v0.456.0 - ISC
|
|
71
71
|
*
|
|
72
72
|
* This source code is licensed under the ISC license.
|
|
73
73
|
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
-
*/const
|
|
74
|
+
*/const bg=Xn("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
75
75
|
* @license lucide-react v0.456.0 - ISC
|
|
76
76
|
*
|
|
77
77
|
* This source code is licensed under the ISC license.
|
|
78
78
|
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
-
*/const
|
|
79
|
+
*/const hg=Xn("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
80
80
|
* @license lucide-react v0.456.0 - ISC
|
|
81
81
|
*
|
|
82
82
|
* This source code is licensed under the ISC license.
|
|
83
83
|
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
-
*/const
|
|
84
|
+
*/const vg=Xn("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
85
85
|
* @license lucide-react v0.456.0 - ISC
|
|
86
86
|
*
|
|
87
87
|
* This source code is licensed under the ISC license.
|
|
88
88
|
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
-
*/const
|
|
89
|
+
*/const yg=Xn("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
90
90
|
* @license lucide-react v0.456.0 - ISC
|
|
91
91
|
*
|
|
92
92
|
* This source code is licensed under the ISC license.
|
|
93
93
|
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
-
*/const
|
|
94
|
+
*/const Cg=Xn("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),js=S.forwardRef(({className:e,...t},n)=>u.jsx(Gs,{ref:n,className:Me("peer h-4 w-4 shrink-0 rounded-sm border border-primary border-grayWarm-300 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:u.jsx(fg,{className:Me("flex items-center justify-center text-current"),children:u.jsx(bg,{className:"h-4 w-4"})})}));js.displayName=Gs.displayName;const La=S.forwardRef(({variant:e="default",size:t="sm",className:n,children:a,...r},o)=>{const i={success:"bg-success-100 text-success-800",error:"bg-error-100 text-error-700",warning:"bg-warning-100 text-warning-700",info:"bg-blueDark-100 text-blueDark-800",default:"bg-grayWarm-100 text-grayWarm-700"},s={sm:"px-2 py-0.5 text-xs",md:"px-2.5 py-1 text-sm"};return u.jsx("span",{ref:o,className:Me("inline-flex items-center font-medium rounded-full",i[e],s[t],n),...r,children:a})});La.displayName="Badge";const Ts=S.forwardRef(({variant:e="ghost",size:t="md",className:n,children:a,...r},o)=>{const i={ghost:"bg-transparent hover:bg-grayWarm-100",outline:"bg-white border border-grayWarm-200 hover:bg-grayWarm-50",default:"bg-grayWarm-100 hover:bg-grayWarm-200"},s={sm:"w-8 h-8",md:"w-10 h-10",lg:"w-12 h-12"};return u.jsx("button",{ref:o,className:Me("inline-flex items-center justify-center rounded-lg transition-colors focus:outline-none",i[e],s[t],n),...r,children:a})});Ts.displayName="IconButton";function xg(e,t=[]){let n=[];function a(o,i){const s=S.createContext(i);s.displayName=o+"Context";const l=n.length;n=[...n,i];const c=f=>{var x;const{scope:y,children:C,...b}=f,h=((x=y==null?void 0:y[e])==null?void 0:x[l])||s,p=S.useMemo(()=>b,Object.values(b));return u.jsx(h.Provider,{value:p,children:C})};c.displayName=o+"Provider";function d(f,y){var h;const C=((h=y==null?void 0:y[e])==null?void 0:h[l])||s,b=S.useContext(C);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[c,d]}const r=()=>{const o=n.map(i=>S.createContext(i));return function(s){const l=(s==null?void 0:s[e])||o;return S.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return r.scopeName=e,[a,Ig(r,...t)]}function Ig(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const a=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(o){const i=a.reduce((s,{useScope:l,scopeName:c})=>{const f=l(o)[`__scope${c}`];return{...s,...f}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function ks(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...n)=>{var a;return(a=t.current)==null?void 0:a.call(t,...n)},[])}var In=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{};function Ko(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Xa(...e){return t=>{let n=!1;const a=e.map(r=>{const o=Ko(r,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let r=0;r<a.length;r++){const o=a[r];typeof o=="function"?o():Ko(e[r],null)}}}}function _n(...e){return S.useCallback(Xa(...e),e)}var Sg=Symbol.for("react.lazy"),Sr=S[" use ".trim().toString()];function Ag(e){return typeof e=="object"&&e!==null&&"then"in e}function Ms(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Sg&&"_payload"in e&&Ag(e._payload)}function wg(e){const t=Eg(e),n=S.forwardRef((a,r)=>{let{children:o,...i}=a;Ms(o)&&typeof Sr=="function"&&(o=Sr(o._payload));const s=S.Children.toArray(o),l=s.find(Ng);if(l){const c=l.props.children,d=s.map(f=>f===l?S.Children.count(c)>1?S.Children.only(null):S.isValidElement(c)?c.props.children:null:f);return u.jsx(t,{...i,ref:r,children:S.isValidElement(c)?S.cloneElement(c,void 0,d):null})}return u.jsx(t,{...i,ref:r,children:o})});return n.displayName=`${e}.Slot`,n}function Eg(e){const t=S.forwardRef((n,a)=>{let{children:r,...o}=n;if(Ms(r)&&typeof Sr=="function"&&(r=Sr(r._payload)),S.isValidElement(r)){const i=Pg(r),s=Gg(o,r.props);return r.type!==S.Fragment&&(s.ref=a?Xa(a,i):i),S.cloneElement(r,s)}return S.Children.count(r)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Rg=Symbol("radix.slottable");function Ng(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Rg}function Gg(e,t){const n={...t};for(const a in t){const r=e[a],o=t[a];/^on[A-Z]/.test(a)?r&&o?n[a]=(...s)=>{const l=o(...s);return r(...s),l}:r&&(n[a]=r):a==="style"?n[a]={...r,...o}:a==="className"&&(n[a]=[r,o].filter(Boolean).join(" "))}return{...e,...n}}function Pg(e){var a,r;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var jg=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ha=jg.reduce((e,t)=>{const n=wg(`Primitive.${t}`),a=S.forwardRef((r,o)=>{const{asChild:i,...s}=r,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...s,ref:o})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),ma={exports:{}},Qr={};/**
|
|
95
95
|
* @license React
|
|
96
96
|
* use-sync-external-store-shim.production.js
|
|
97
97
|
*
|
|
@@ -99,7 +99,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
99
99
|
*
|
|
100
100
|
* This source code is licensed under the MIT license found in the
|
|
101
101
|
* LICENSE file in the root directory of this source tree.
|
|
102
|
-
*/var
|
|
102
|
+
*/var qo;function Tg(){if(qo)return Qr;qo=1;var e=w;function t(f,y){return f===y&&(f!==0||1/f===1/y)||f!==f&&y!==y}var n=typeof Object.is=="function"?Object.is:t,a=e.useState,r=e.useEffect,o=e.useLayoutEffect,i=e.useDebugValue;function s(f,y){var C=y(),b=a({inst:{value:C,getSnapshot:y}}),h=b[0].inst,p=b[1];return o(function(){h.value=C,h.getSnapshot=y,l(h)&&p({inst:h})},[f,C,y]),r(function(){return l(h)&&p({inst:h}),f(function(){l(h)&&p({inst:h})})},[f]),i(C),C}function l(f){var y=f.getSnapshot;f=f.value;try{var C=y();return!n(f,C)}catch{return!0}}function c(f,y){return y()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return Qr.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,Qr}var Kr={};/**
|
|
103
103
|
* @license React
|
|
104
104
|
* use-sync-external-store-shim.development.js
|
|
105
105
|
*
|
|
@@ -107,9 +107,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
107
107
|
*
|
|
108
108
|
* This source code is licensed under the MIT license found in the
|
|
109
109
|
* LICENSE file in the root directory of this source tree.
|
|
110
|
-
*/var qo;function Pg(){return qo||(qo=1,process.env.NODE_ENV!=="production"&&function(){function e(C,b){return C===b&&(C!==0||1/C===1/b)||C!==C&&b!==b}function t(C,b){d||n.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var h=b();if(!f){var p=b();o(h,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}p=i({inst:{value:h,getSnapshot:b}});var x=p[0].inst,E=p[1];return s(function(){x.value=h,x.getSnapshot=b,r(x)&&E({inst:x})},[C,h,b]),l(function(){return r(x)&&E({inst:x}),C(function(){r(x)&&E({inst:x})})},[C]),c(h),h}function r(C){var b=C.getSnapshot;C=C.value;try{var h=b();return!o(C,h)}catch{return!0}}function a(C,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=w,o=typeof Object.is=="function"?Object.is:e,i=n.useState,l=n.useEffect,s=n.useLayoutEffect,c=n.useDebugValue,d=!1,f=!1,y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?a:t;Qr.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:y,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Qr}process.env.NODE_ENV==="production"?ga.exports=Gg():ga.exports=Pg();var Tg=ga.exports;function Og(){return Tg.useSyncExternalStore(jg,()=>!0,()=>!1)}function jg(){return()=>{}}var La="Avatar",[Mg]=vg(La),[kg,Ms]=Mg(La),ks=S.forwardRef((e,t)=>{const{__scopeAvatar:r,...a}=e,[n,o]=S.useState("idle");return u.jsx(kg,{scope:r,imageLoadingStatus:n,onImageLoadingStatusChange:o,children:u.jsx(Wa.span,{...a,ref:t})})});ks.displayName=La;var Fs="AvatarImage",Bs=S.forwardRef((e,t)=>{const{__scopeAvatar:r,src:a,onLoadingStatusChange:n=()=>{},...o}=e,i=Ms(Fs,r),l=Fg(a,o),s=Os(c=>{n(c),i.onImageLoadingStatusChange(c)});return Sn(()=>{l!=="idle"&&s(l)},[l,s]),l==="loaded"?u.jsx(Wa.img,{...o,ref:t,src:a}):null});Bs.displayName=Fs;var Vs="AvatarFallback",_s=S.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:a,...n}=e,o=Ms(Vs,r),[i,l]=S.useState(a===void 0);return S.useEffect(()=>{if(a!==void 0){const s=window.setTimeout(()=>l(!0),a);return()=>window.clearTimeout(s)}},[a]),i&&o.imageLoadingStatus!=="loaded"?u.jsx(Wa.span,{...n,ref:t}):null});_s.displayName=Vs;function ei(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Fg(e,{referrerPolicy:t,crossOrigin:r}){const a=Og(),n=S.useRef(null),o=a?(n.current||(n.current=new window.Image),n.current):null,[i,l]=S.useState(()=>ei(o,e));return Sn(()=>{l(ei(o,e))},[o,e]),Sn(()=>{const s=f=>()=>{l(f)};if(!o)return;const c=s("loaded"),d=s("error");return o.addEventListener("load",c),o.addEventListener("error",d),t&&(o.referrerPolicy=t),typeof r=="string"&&(o.crossOrigin=r),()=>{o.removeEventListener("load",c),o.removeEventListener("error",d)}},[o,r,t]),i}var Bg=ks,Vg=Bs,_g=_s;const Ds=S.forwardRef(({size:e="md",className:t,...r},a)=>{const n={sm:"w-8 h-8",md:"w-10 h-10",lg:"w-12 h-12",xl:"w-16 h-16"};return u.jsx(Bg,{ref:a,className:Me("relative flex shrink-0 overflow-hidden rounded-full",n[e],t),...r})});Ds.displayName="Avatar";const Ws=S.forwardRef(({className:e,...t},r)=>u.jsx(Vg,{ref:r,className:Me("aspect-square h-full w-full object-cover",e),...t}));Ws.displayName="AvatarImage";const Ls=S.forwardRef(({className:e,...t},r)=>u.jsx(_g,{ref:r,className:Me("flex h-full w-full items-center justify-center rounded-full bg-grayWarm-100 text-grayWarm-600 font-semibold",e),...t}));Ls.displayName="AvatarFallback";function tn(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)}}function Tr(e,t=[]){let r=[];function a(o,i){const l=S.createContext(i),s=r.length;r=[...r,i];const c=f=>{var x;const{scope:y,children:C,...b}=f,h=((x=y==null?void 0:y[e])==null?void 0:x[s])||l,p=S.useMemo(()=>b,Object.values(b));return u.jsx(h.Provider,{value:p,children:C})};c.displayName=o+"Provider";function d(f,y){var h;const C=((h=y==null?void 0:y[e])==null?void 0:h[s])||l,b=S.useContext(C);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[c,d]}const n=()=>{const o=r.map(i=>S.createContext(i));return function(l){const s=(l==null?void 0:l[e])||o;return S.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return n.scopeName=e,[a,Dg(n,...t)]}function Dg(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const a=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(o){const i=a.reduce((l,{useScope:s,scopeName:c})=>{const f=s(o)[`__scope${c}`];return{...l,...f}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}var Wg=S[" useInsertionEffect ".trim().toString()]||Sn;function Zn({prop:e,defaultProp:t,onChange:r=()=>{},caller:a}){const[n,o,i]=Lg({defaultProp:t,onChange:r}),l=e!==void 0,s=l?e:n;{const d=S.useRef(e!==void 0);S.useEffect(()=>{const f=d.current;f!==l&&console.warn(`${a} is changing from ${f?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=l},[l,a])}const c=S.useCallback(d=>{var f;if(l){const y=Xg(d)?d(e):d;y!==e&&((f=i.current)==null||f.call(i,y))}else o(d)},[l,e,o,i]);return[s,c]}function Lg({defaultProp:e,onChange:t}){const[r,a]=S.useState(e),n=S.useRef(r),o=S.useRef(t);return Wg(()=>{o.current=t},[t]),S.useEffect(()=>{var i;n.current!==r&&((i=o.current)==null||i.call(o,r),n.current=r)},[r,n]),[r,a,o]}function Xg(e){return typeof e=="function"}function Hg(e){const t=S.useRef({value:e,previous:e});return S.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Zg(e){const[t,r]=S.useState(void 0);return Sn(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;const o=n[0];let i,l;if("borderBoxSize"in o){const s=o.borderBoxSize,c=Array.isArray(s)?s[0]:s;i=c.inlineSize,l=c.blockSize}else i=e.offsetWidth,l=e.offsetHeight;r({width:i,height:l})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else r(void 0)},[e]),t}function ma(e){const t=zg(e),r=S.forwardRef((a,n)=>{const{children:o,...i}=a,l=S.Children.toArray(o),s=l.find(Jg);if(s){const c=s.props.children,d=l.map(f=>f===s?S.Children.count(c)>1?S.Children.only(null):S.isValidElement(c)?c.props.children:null:f);return u.jsx(t,{...i,ref:n,children:S.isValidElement(c)?S.cloneElement(c,void 0,d):null})}return u.jsx(t,{...i,ref:n,children:o})});return r.displayName=`${e}.Slot`,r}function zg(e){const t=S.forwardRef((r,a)=>{const{children:n,...o}=r;if(S.isValidElement(n)){const i=$g(n),l=Ug(o,n.props);return n.type!==S.Fragment&&(l.ref=a?Da(a,i):i),S.cloneElement(n,l)}return S.Children.count(n)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Yg=Symbol("radix.slottable");function Jg(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Yg}function Ug(e,t){const r={...t};for(const a in t){const n=e[a],o=t[a];/^on[A-Z]/.test(a)?n&&o?r[a]=(...l)=>{const s=o(...l);return n(...l),s}:n&&(r[a]=n):a==="style"?r[a]={...n,...o}:a==="className"&&(r[a]=[n,o].filter(Boolean).join(" "))}return{...e,...r}}function $g(e){var a,n;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Qg=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pn=Qg.reduce((e,t)=>{const r=ma(`Primitive.${t}`),a=S.forwardRef((n,o)=>{const{asChild:i,...l}=n,s=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(s,{...l,ref:o})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),Or="Switch",[Kg]=Tr(Or),[qg,em]=Kg(Or),Xs=S.forwardRef((e,t)=>{const{__scopeSwitch:r,name:a,checked:n,defaultChecked:o,required:i,disabled:l,value:s="on",onCheckedChange:c,form:d,...f}=e,[y,C]=S.useState(null),b=Wn(t,R=>C(R)),h=S.useRef(!1),p=y?d||!!y.closest("form"):!0,[x,E]=Zn({prop:n,defaultProp:o??!1,onChange:c,caller:Or});return u.jsxs(qg,{scope:r,checked:x,disabled:l,children:[u.jsx(pn.button,{type:"button",role:"switch","aria-checked":x,"aria-required":i,"data-state":Ys(x),"data-disabled":l?"":void 0,disabled:l,value:s,...f,ref:b,onClick:tn(e.onClick,R=>{E(A=>!A),p&&(h.current=R.isPropagationStopped(),h.current||R.stopPropagation())})}),p&&u.jsx(zs,{control:y,bubbles:!h.current,name:a,value:s,checked:x,required:i,disabled:l,form:d,style:{transform:"translateX(-100%)"}})]})});Xs.displayName=Or;var Hs="SwitchThumb",Zs=S.forwardRef((e,t)=>{const{__scopeSwitch:r,...a}=e,n=em(Hs,r);return u.jsx(pn.span,{"data-state":Ys(n.checked),"data-disabled":n.disabled?"":void 0,...a,ref:t})});Zs.displayName=Hs;var tm="SwitchBubbleInput",zs=S.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:a=!0,...n},o)=>{const i=S.useRef(null),l=Wn(i,o),s=Hg(r),c=Zg(t);return S.useEffect(()=>{const d=i.current;if(!d)return;const f=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(f,"checked").set;if(s!==r&&C){const b=new Event("click",{bubbles:a});C.call(d,r),d.dispatchEvent(b)}},[s,r,a]),u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...n,tabIndex:-1,ref:l,style:{...n.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});zs.displayName=tm;function Ys(e){return e?"checked":"unchecked"}var nm=Xs,rm=Zs;const Xa=S.forwardRef(({size:e="md",className:t,...r},a)=>{const n={sm:"w-9 h-5",md:"w-11 h-6"},o={sm:"w-4 h-4 data-[state=checked]:translate-x-4",md:"w-5 h-5 data-[state=checked]:translate-x-5"};return u.jsx(nm,{ref:a,className:Me("peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-500 focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:bg-brand-500 data-[state=unchecked]:bg-grayWarm-200",n[e],t),...r,children:u.jsx(rm,{className:Me("pointer-events-none block rounded-full bg-white shadow-xs transition-transform data-[state=unchecked]:translate-x-0",o[e])})})});Xa.displayName="Toggle";function am(e){const t=e+"CollectionProvider",[r,a]=Tr(t),[n,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=h=>{const{scope:p,children:x}=h,E=w.useRef(null),R=w.useRef(new Map).current;return u.jsx(n,{scope:p,itemMap:R,collectionRef:E,children:x})};i.displayName=t;const l=e+"CollectionSlot",s=ma(l),c=w.forwardRef((h,p)=>{const{scope:x,children:E}=h,R=o(l,x),A=Wn(p,R.collectionRef);return u.jsx(s,{ref:A,children:E})});c.displayName=l;const d=e+"CollectionItemSlot",f="data-radix-collection-item",y=ma(d),C=w.forwardRef((h,p)=>{const{scope:x,children:E,...R}=h,A=w.useRef(null),I=Wn(p,A),j=o(d,x);return w.useEffect(()=>(j.itemMap.set(A,{ref:A,...R}),()=>void j.itemMap.delete(A))),u.jsx(y,{[f]:"",ref:I,children:E})});C.displayName=d;function b(h){const p=o(e+"CollectionConsumer",h);return w.useCallback(()=>{const E=p.collectionRef.current;if(!E)return[];const R=Array.from(E.querySelectorAll(`[${f}]`));return Array.from(p.itemMap.values()).sort((j,F)=>R.indexOf(j.ref.current)-R.indexOf(F.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:i,Slot:c,ItemSlot:C},b,a]}var om=S[" useId ".trim().toString()]||(()=>{}),im=0;function sm(e){const[t,r]=S.useState(om());return Sn(()=>{r(a=>a??String(im++))},[e]),t?`radix-${t}`:""}var lm=S.createContext(void 0);function Js(e){const t=S.useContext(lm);return e||t||"ltr"}var Kr="rovingFocusGroup.onEntryFocus",um={bubbles:!1,cancelable:!0},zn="RovingFocusGroup",[ba,Us,cm]=am(zn),[dm,$s]=Tr(zn,[cm]),[fm,pm]=dm(zn),Qs=S.forwardRef((e,t)=>u.jsx(ba.Provider,{scope:e.__scopeRovingFocusGroup,children:u.jsx(ba.Slot,{scope:e.__scopeRovingFocusGroup,children:u.jsx(gm,{...e,ref:t})})}));Qs.displayName=zn;var gm=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:a,loop:n=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:s,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...f}=e,y=S.useRef(null),C=Wn(t,y),b=Js(o),[h,p]=Zn({prop:i,defaultProp:l??null,onChange:s,caller:zn}),[x,E]=S.useState(!1),R=Os(c),A=Us(r),I=S.useRef(!1),[j,F]=S.useState(0);return S.useEffect(()=>{const M=y.current;if(M)return M.addEventListener(Kr,R),()=>M.removeEventListener(Kr,R)},[R]),u.jsx(fm,{scope:r,orientation:a,dir:b,loop:n,currentTabStopId:h,onItemFocus:S.useCallback(M=>p(M),[p]),onItemShiftTab:S.useCallback(()=>E(!0),[]),onFocusableItemAdd:S.useCallback(()=>F(M=>M+1),[]),onFocusableItemRemove:S.useCallback(()=>F(M=>M-1),[]),children:u.jsx(pn.div,{tabIndex:x||j===0?-1:0,"data-orientation":a,...f,ref:C,style:{outline:"none",...e.style},onMouseDown:tn(e.onMouseDown,()=>{I.current=!0}),onFocus:tn(e.onFocus,M=>{const oe=!I.current;if(M.target===M.currentTarget&&oe&&!x){const re=new CustomEvent(Kr,um);if(M.currentTarget.dispatchEvent(re),!re.defaultPrevented){const ce=A().filter(V=>V.focusable),z=ce.find(V=>V.active),le=ce.find(V=>V.id===h),O=[z,le,...ce].filter(Boolean).map(V=>V.ref.current);el(O,d)}}I.current=!1}),onBlur:tn(e.onBlur,()=>E(!1))})})}),Ks="RovingFocusGroupItem",qs=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:a=!0,active:n=!1,tabStopId:o,children:i,...l}=e,s=sm(),c=o||s,d=pm(Ks,r),f=d.currentTabStopId===c,y=Us(r),{onFocusableItemAdd:C,onFocusableItemRemove:b,currentTabStopId:h}=d;return S.useEffect(()=>{if(a)return C(),()=>b()},[a,C,b]),u.jsx(ba.ItemSlot,{scope:r,id:c,focusable:a,active:n,children:u.jsx(pn.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...l,ref:t,onMouseDown:tn(e.onMouseDown,p=>{a?d.onItemFocus(c):p.preventDefault()}),onFocus:tn(e.onFocus,()=>d.onItemFocus(c)),onKeyDown:tn(e.onKeyDown,p=>{if(p.key==="Tab"&&p.shiftKey){d.onItemShiftTab();return}if(p.target!==p.currentTarget)return;const x=hm(p,d.orientation,d.dir);if(x!==void 0){if(p.metaKey||p.ctrlKey||p.altKey||p.shiftKey)return;p.preventDefault();let R=y().filter(A=>A.focusable).map(A=>A.ref.current);if(x==="last")R.reverse();else if(x==="prev"||x==="next"){x==="prev"&&R.reverse();const A=R.indexOf(p.currentTarget);R=d.loop?vm(R,A+1):R.slice(A+1)}setTimeout(()=>el(R))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:h!=null}):i})})});qs.displayName=Ks;var mm={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function bm(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function hm(e,t,r){const a=bm(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return mm[a]}function el(e,t=!1){const r=document.activeElement;for(const a of e)if(a===r||(a.focus({preventScroll:t}),document.activeElement!==r))return}function vm(e,t){return e.map((r,a)=>e[(t+a)%e.length])}var ym=Qs,Cm=qs,tl="Toggle",nl=S.forwardRef((e,t)=>{const{pressed:r,defaultPressed:a,onPressedChange:n,...o}=e,[i,l]=Zn({prop:r,onChange:n,defaultProp:a??!1,caller:tl});return u.jsx(pn.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0,...o,ref:t,onClick:tn(e.onClick,()=>{e.disabled||l(!i)})})});nl.displayName=tl;var rn="ToggleGroup",[rl]=Tr(rn,[$s]),al=$s(),Ha=w.forwardRef((e,t)=>{const{type:r,...a}=e;if(r==="single"){const n=a;return u.jsx(xm,{...n,ref:t})}if(r==="multiple"){const n=a;return u.jsx(Im,{...n,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${rn}\``)});Ha.displayName=rn;var[ol,il]=rl(rn),xm=w.forwardRef((e,t)=>{const{value:r,defaultValue:a,onValueChange:n=()=>{},...o}=e,[i,l]=Zn({prop:r,defaultProp:a??"",onChange:n,caller:rn});return u.jsx(ol,{scope:e.__scopeToggleGroup,type:"single",value:w.useMemo(()=>i?[i]:[],[i]),onItemActivate:l,onItemDeactivate:w.useCallback(()=>l(""),[l]),children:u.jsx(sl,{...o,ref:t})})}),Im=w.forwardRef((e,t)=>{const{value:r,defaultValue:a,onValueChange:n=()=>{},...o}=e,[i,l]=Zn({prop:r,defaultProp:a??[],onChange:n,caller:rn}),s=w.useCallback(d=>l((f=[])=>[...f,d]),[l]),c=w.useCallback(d=>l((f=[])=>f.filter(y=>y!==d)),[l]);return u.jsx(ol,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:s,onItemDeactivate:c,children:u.jsx(sl,{...o,ref:t})})});Ha.displayName=rn;var[Sm,Am]=rl(rn),sl=w.forwardRef((e,t)=>{const{__scopeToggleGroup:r,disabled:a=!1,rovingFocus:n=!0,orientation:o,dir:i,loop:l=!0,...s}=e,c=al(r),d=Js(i),f={role:"group",dir:d,...s};return u.jsx(Sm,{scope:r,rovingFocus:n,disabled:a,children:n?u.jsx(ym,{asChild:!0,...c,orientation:o,dir:d,loop:l,children:u.jsx(pn.div,{...f,ref:t})}):u.jsx(pn.div,{...f,ref:t})})}),Sr="ToggleGroupItem",ll=w.forwardRef((e,t)=>{const r=il(Sr,e.__scopeToggleGroup),a=Am(Sr,e.__scopeToggleGroup),n=al(e.__scopeToggleGroup),o=r.value.includes(e.value),i=a.disabled||e.disabled,l={...e,pressed:o,disabled:i},s=w.useRef(null);return a.rovingFocus?u.jsx(Cm,{asChild:!0,...n,focusable:!i,active:o,ref:s,children:u.jsx(ti,{...l,ref:t})}):u.jsx(ti,{...l,ref:t})});ll.displayName=Sr;var ti=w.forwardRef((e,t)=>{const{__scopeToggleGroup:r,value:a,...n}=e,o=il(Sr,r),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l=o.type==="single"?i:void 0;return u.jsx(nl,{...l,...n,ref:t,onPressedChange:s=>{s?o.onItemActivate(a):o.onItemDeactivate(a)}})}),wm=Ha,Em=ll;const ul=S.forwardRef(({className:e,...t},r)=>u.jsx(wm,{ref:r,className:Me("inline-flex items-center rounded-lg border border-grayWarm-200 overflow-hidden",e),...t}));ul.displayName="ToggleGroup";const cl=S.forwardRef(({className:e,children:t,...r},a)=>u.jsx(Em,{ref:a,className:Me("inline-flex items-center justify-center px-4 py-2 text-sm font-semibold transition-colors","border-r border-grayWarm-200 last:border-r-0","data-[state=on]:bg-grayWarm-100 data-[state=on]:text-grayWarm-950","data-[state=off]:bg-white data-[state=off]:text-grayWarm-600 data-[state=off]:hover:bg-grayWarm-50","focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500",e),...r,children:t}));cl.displayName="ToggleGroupItem";const dl=S.forwardRef(({className:e,...t},r)=>u.jsx("textarea",{ref:r,className:Me("flex min-h-[80px] w-full rounded-lg border border-grayWarm-200 bg-white px-3.5 py-2.5 text-base text-grayWarm-950","placeholder:text-grayWarm-400","focus:outline-none focus:ring-2 focus:ring-brand-500 focus:border-brand-500","disabled:cursor-not-allowed disabled:opacity-50","resize-vertical",e),...t}));dl.displayName="Textarea";const fl=({currentPage:e,totalPages:t,onPageChange:r,className:a})=>{const n=()=>{const o=[];if(t<=7){for(let s=1;s<=t;s++)o.push(s);return o}o.push(1),e>3&&o.push("...");const i=Math.max(2,e-1),l=Math.min(t-1,e+1);for(let s=i;s<=l;s++)o.push(s);return e<t-2&&o.push("..."),o.push(t),o};return u.jsxs("nav",{className:Me("flex items-center justify-between",a),children:[u.jsxs("button",{onClick:()=>r(e-1),disabled:e<=1,className:Me("inline-flex items-center gap-1.5 px-3 py-2 text-sm font-semibold rounded-lg transition-colors","text-grayWarm-600 hover:bg-grayWarm-50","disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-transparent"),children:[u.jsx(gg,{className:"w-4 h-4"}),"Previous"]}),u.jsx("div",{className:"flex items-center gap-0.5",children:n().map((o,i)=>o==="..."?u.jsx("span",{className:"w-10 h-10 flex items-center justify-center text-sm text-grayWarm-500",children:"..."},`ellipsis-${i}`):u.jsx("button",{onClick:()=>r(o),className:Me("w-10 h-10 flex items-center justify-center text-sm font-medium rounded-lg transition-colors",o===e?"bg-grayWarm-100 text-grayWarm-950":"text-grayWarm-600 hover:bg-grayWarm-50"),children:o},o))}),u.jsxs("button",{onClick:()=>r(e+1),disabled:e>=t,className:Me("inline-flex items-center gap-1.5 px-3 py-2 text-sm font-semibold rounded-lg transition-colors","text-grayWarm-600 hover:bg-grayWarm-50","disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-transparent"),children:["Next",u.jsx(mg,{className:"w-4 h-4"})]})]})};fl.displayName="Pagination";const pl=S.forwardRef(({className:e,...t},r)=>u.jsxs("div",{className:Me("relative",e),children:[u.jsx(bg,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-grayWarm-400"}),u.jsx("input",{ref:r,type:"search",className:Me("w-full rounded-lg border border-grayWarm-200 bg-white pl-10 pr-3.5 py-2.5 text-base text-grayWarm-950","placeholder:text-grayWarm-400","focus:outline-none focus:ring-2 focus:ring-brand-500 focus:border-brand-500"),...t})]}));pl.displayName="SearchInput";const gl=S.forwardRef(({variant:e="default",onRemove:t,className:r,children:a,...n},o)=>{const i={default:"bg-white border-grayWarm-200 text-grayWarm-700",selected:"bg-brand-50 border-brand-300 text-brand-600"};return u.jsxs("span",{ref:o,className:Me("inline-flex items-center gap-1.5 px-3 py-1 rounded-full border text-sm font-medium",i[e],r),...n,children:[a,t&&u.jsx("button",{onClick:t,className:"inline-flex items-center justify-center w-4 h-4 rounded-full hover:bg-grayWarm-200 transition-colors",children:u.jsx(hg,{className:"w-3 h-3"})})]})});gl.displayName="Chip";const ha=({value:e,onChange:t,travelerType:r,departureDate:a,uniqueId:n,label:o="Date of Birth",yearDirection:i="past",errorState:l=!1,labelClassName:s,className:c,monthSearchable:d=!1})=>{const f=["January","February","March","April","May","June","July","August","September","October","November","December"],y=new Date().getUTCFullYear(),C=w.useMemo(()=>i==="future"?Array.from({length:21},(G,O)=>y+O):Array.from({length:120},(G,O)=>y-O),[y,i]),[b,h]=w.useState(e?new Date(e).getUTCMonth():void 0),[p,x]=w.useState(e?new Date(e).getUTCDate():void 0),[E,R]=w.useState(e?new Date(e).getUTCFullYear():void 0),A=(G,O)=>new Date(Date.UTC(O,G+1,0)).getUTCDate(),I=w.useMemo(()=>b!==void 0?A(b,E??2e3):31,[b,E]),j=w.useRef(void 0);w.useEffect(()=>{if(e&&e!==j.current)try{const G=new Date(e);isNaN(G.getTime())||(h(G.getUTCMonth()),x(G.getUTCDate()),R(G.getUTCFullYear()))}catch(G){console.error("Invalid date format:",G)}},[e]),w.useEffect(()=>{p!==void 0&&p>I&&x(I)},[I,p]),w.useEffect(()=>{if(b!==void 0&&p!==void 0&&E!==void 0){const G=Math.min(p,A(b,E)),O=new Date(Date.UTC(E,b,G)),V=O.toISOString();if(j.current=V,e){const $=new Date(e);if(!isNaN($.getTime())&&$.getTime()===O.getTime())return}t(V)}},[b,p,E]);const F=G=>{G&&h(f.indexOf(G.value))},M=G=>{if(G===""){x(void 0);return}const O=parseInt(G,10);isNaN(O)||x(Math.min(Math.max(O,1),I))},oe=G=>{if(G){const O=parseInt(G.value,10);isNaN(O)||R(O)}},re=l&&b===void 0,ce=l&&p===void 0,z=l&&E===void 0,le=G=>G?{control:(O,V)=>({...O,borderRadius:"0.5rem",borderColor:"#EF4444",boxShadow:"none","&:hover":{borderColor:"#EF4444"},minHeight:"2.5rem",height:"2.5rem",cursor:"pointer"})}:{};return u.jsxs("div",{className:c||"mt-7",children:[u.jsx("p",{className:s||"text-sm md:text-base font-semibold",children:o}),u.jsxs("div",{className:"flex flex-row gap-4 mt-2",children:[u.jsx("div",{className:"relative w-full md:max-w-[140px]",children:u.jsx(Dn,{value:b!==void 0?{value:f[b],label:f[b]}:null,options:f.map(G=>({value:G,label:G})),placeholder:"Month*",onChange:F,styles:le(re),isSearchable:d})}),u.jsx("div",{className:"relative w-full md:max-w-[80px]",children:u.jsx(Vt,{type:"text",inputMode:"numeric",required:!0,placeholder:"Day",value:p!==void 0?p:"",onChange:G=>M(G.target.value),disabled:b===void 0,max:I,min:1,className:`text-xs md:text-sm border-grayWarm-300 rounded-lg h-10${ce?" border-error-500":""}`,id:`date-dropdowns-day-${n}`,name:"date-dropdowns-day"})}),u.jsx("div",{className:"relative w-full md:max-w-[140px]",children:u.jsx(Dn,{value:E!==void 0?{value:E.toString(),label:E.toString()}:null,options:C.map(G=>({value:G.toString(),label:G.toString()})),placeholder:"Year*",onChange:oe,styles:le(z),isSearchable:!0})})]})]})};var qt={},jr={};Object.defineProperty(jr,"__esModule",{value:!0});jr.Gender=void 0;var ni;(function(e){e.MALE="male",e.FEMALE="female",e.DEFAULT=""})(ni||(jr.Gender=ni={}));var Mr={};Object.defineProperty(Mr,"__esModule",{value:!0});Mr.CustomerResourceType=void 0;var ri;(function(e){e.STORAGE="storage",e.HOSTING="hosting",e.DNS="dns",e.AUTHENTICATION="authentication",e.AUTHORIZATION="authorization"})(ri||(Mr.CustomerResourceType=ri={}));var ml={};Object.defineProperty(ml,"__esModule",{value:!0});var nn={};Object.defineProperty(nn,"__esModule",{value:!0});nn.TravelerType=nn.FlightOfferSegmentLegType=nn.FlightOfferDataSource=void 0;var ai;(function(e){e.Amadeus="amadeus"})(ai||(nn.FlightOfferDataSource=ai={}));var oi;(function(e){e.Inbound="inbound",e.Outbound="outbound"})(oi||(nn.FlightOfferSegmentLegType=oi={}));var ii;(function(e){e.ADULT="adult",e.CHILD="child",e.INFANT="infant"})(ii||(nn.TravelerType=ii={}));var kr={};Object.defineProperty(kr,"__esModule",{value:!0});kr.OTPAction=void 0;var si;(function(e){e.EMAILED="emailed",e.TEXTED="texted"})(si||(kr.OTPAction=si={}));var bl={};Object.defineProperty(bl,"__esModule",{value:!0});var hl={};Object.defineProperty(hl,"__esModule",{value:!0});var vl={};Object.defineProperty(vl,"__esModule",{value:!0});var yl={};Object.defineProperty(yl,"__esModule",{value:!0});var Cl={};Object.defineProperty(Cl,"__esModule",{value:!0});var xl={};Object.defineProperty(xl,"__esModule",{value:!0});var Il={};Object.defineProperty(Il,"__esModule",{value:!0});var Sl={};Object.defineProperty(Sl,"__esModule",{value:!0});var Al={};Object.defineProperty(Al,"__esModule",{value:!0});var wl={};Object.defineProperty(wl,"__esModule",{value:!0});var Dt={};Object.defineProperty(Dt,"__esModule",{value:!0});Dt.MOVMO_PARTNER_ORIGINS=Dt.MOVMO_FLIGHTS_ORIGINS=Dt.MovmoFrameMessageType=void 0;Dt.isTrustedOrigin=Rm;var li;(function(e){e.READY="MOVMO_READY",e.INIT="MOVMO_INIT",e.BOOKING_COMPLETE="MOVMO_BOOKING_COMPLETE",e.BOOKING_FAILED="MOVMO_BOOKING_FAILED",e.RECOGNITION_STATE="MOVMO_RECOGNITION_STATE",e.RECOGNITION_TOKEN="MOVMO_RECOGNITION_TOKEN",e.RECOGNITION_RESIZE="MOVMO_RECOGNITION_RESIZE",e.RECOGNITION_CONNECT="MOVMO_RECOGNITION_CONNECT",e.RECOGNITION_ERROR="MOVMO_RECOGNITION_ERROR",e.RECOGNITION_SIGNED_OUT="MOVMO_RECOGNITION_SIGNED_OUT"})(li||(Dt.MovmoFrameMessageType=li={}));Dt.MOVMO_FLIGHTS_ORIGINS={prod:["https://flights.movmo.io"],nonProd:["https://flights.e2e.movmo.io","http://localhost:3000"]};Dt.MOVMO_PARTNER_ORIGINS={prod:[],nonProd:["https://mockairline-e2e.app.flyeasyapp.com","https://mockairline-e2e.app.movmoapp.com","http://localhost:3000"]};function Rm(e,t,{isProd:r,extraOrigins:a=[]}){if(r)return t.prod.includes(e);const n=[...t.nonProd];for(const o of a)if(o)try{n.push(new URL(o).origin)}catch{console.warn(`[movmo] isTrustedOrigin: ignoring malformed extra origin "${o}"`)}return n.includes(e)}var Za={};Object.defineProperty(Za,"__esModule",{value:!0});Za.mapIdentityPartners=Nm;function Nm(e){var t;return((t=e==null?void 0:e.partners)!==null&&t!==void 0?t:[]).map(r=>{var a;return{clientId:r.client_id,airlineName:r.airline_name,airlineDomain:r.airline_domain,providerId:r.provider_id,supportedScopes:(a=r.supported_scopes)!==null&&a!==void 0?a:[]}})}var El={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PAIR_COPY=e.SCOPE_COPY=void 0,e.displayRows=t,e.SCOPE_COPY={"profile.read":{label:"View your profile",detail:"Name and contact details"},"profile.write":{label:"Update your profile",detail:"Including your profile photo"},"preferences.read":{label:"View your travel preferences",detail:"Seat, meal, and assistance preferences; language and currency"},"preferences.write":{label:"Update your travel preferences"},"passengers.read":{label:"View your saved travelers",detail:"Including travel document details"},"passengers.write":{label:"Add, update, and remove saved travelers"},"payments.read":{label:"View saved payment methods",detail:"Card brand and last 4 digits only — never full numbers"},"payments.write":{label:"Update or remove saved payment methods",detail:"Cannot add new cards"},"loyalty.read":{label:"View your loyalty status",detail:"Your membership in that airline's loyalty program"},"bookings.read":{label:"View your bookings and trip history"},"bookings.write":{label:"Search and book flights",detail:"Bookings are charged to a saved payment method"}},e.PAIR_COPY={profile:{label:"View and manage your profile",detail:"Name, contact details, and profile photo"},preferences:{label:"View and manage your travel preferences",detail:"Update seat, meal, and assistance preferences you’ve saved"},passengers:{label:"View and manage saved travelers",detail:"Add, update, and remove travelers — including travel document details"},payments:{label:"View and manage saved payment methods",detail:"Card brand and last 4 digits only — never full numbers. Can’t add new cards."}};function t(r){const a=new Set(r),n=new Set,o=[];for(const i of r){const[l]=i.split("."),s=e.PAIR_COPY[l],c=a.has(`${l}.read`)&&a.has(`${l}.write`);if(s&&c){n.has(l)||(n.add(l),o.push(Object.assign(Object.assign({},s),{key:l,scopes:[`${l}.read`,`${l}.write`]})));continue}const d=e.SCOPE_COPY[i];o.push(d?Object.assign(Object.assign({},d),{key:i,scopes:[i]}):{label:i,key:i,scopes:[i]})}return o}})(El);var Rl={};Object.defineProperty(Rl,"__esModule",{value:!0});(function(e){var t=tr&&tr.__createBinding||(Object.create?function(a,n,o,i){i===void 0&&(i=o);var l=Object.getOwnPropertyDescriptor(n,o);(!l||("get"in l?!n.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(a,i,l)}:function(a,n,o,i){i===void 0&&(i=o),a[i]=n[o]}),r=tr&&tr.__exportStar||function(a,n){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&t(n,a,o)};Object.defineProperty(e,"__esModule",{value:!0}),r(jr,e),r(Mr,e),r(ml,e),r(nn,e),r(kr,e),r(bl,e),r(hl,e),r(vl,e),r(yl,e),r(Cl,e),r(xl,e),r(Il,e),r(Sl,e),r(Al,e),r(wl,e),r(Dt,e),r(Za,e),r(El,e),r(Rl,e)})(qt);const va=[{value:"US",label:"United States"},{value:"CA",label:"Canada"},{value:"GB",label:"United Kingdom"},{value:"AU",label:"Australia"},{value:"AF",label:"Afghanistan"},{value:"AX",label:"Åland Islands"},{value:"AL",label:"Albania"},{value:"DZ",label:"Algeria"},{value:"AS",label:"American Samoa"},{value:"AD",label:"Andorra"},{value:"AO",label:"Angola"},{value:"AI",label:"Anguilla"},{value:"AQ",label:"Antarctica"},{value:"AG",label:"Antigua and Barbuda"},{value:"AR",label:"Argentina"},{value:"AM",label:"Armenia"},{value:"AW",label:"Aruba"},{value:"AT",label:"Austria"},{value:"AZ",label:"Azerbaijan"},{value:"BS",label:"Bahamas"},{value:"BH",label:"Bahrain"},{value:"BD",label:"Bangladesh"},{value:"BB",label:"Barbados"},{value:"BY",label:"Belarus"},{value:"BE",label:"Belgium"},{value:"BZ",label:"Belize"},{value:"BJ",label:"Benin"},{value:"BM",label:"Bermuda"},{value:"BT",label:"Bhutan"},{value:"BO",label:"Bolivia"},{value:"BQ",label:"Bonaire, Sint Eustatius and Saba"},{value:"BA",label:"Bosnia and Herzegovina"},{value:"BW",label:"Botswana"},{value:"BV",label:"Bouvet Island"},{value:"BR",label:"Brazil"},{value:"IO",label:"British Indian Ocean Territory"},{value:"BN",label:"Brunei Darussalam"},{value:"BG",label:"Bulgaria"},{value:"BF",label:"Burkina Faso"},{value:"BI",label:"Burundi"},{value:"CV",label:"Cabo Verde"},{value:"KH",label:"Cambodia"},{value:"CM",label:"Cameroon"},{value:"KY",label:"Cayman Islands"},{value:"CF",label:"Central African Republic"},{value:"TD",label:"Chad"},{value:"CL",label:"Chile"},{value:"CN",label:"China"},{value:"CX",label:"Christmas Island"},{value:"CC",label:"Cocos (Keeling) Islands"},{value:"CO",label:"Colombia"},{value:"KM",label:"Comoros"},{value:"CG",label:"Congo"},{value:"CD",label:"Congo, Democratic Republic of the"},{value:"CK",label:"Cook Islands"},{value:"CR",label:"Costa Rica"},{value:"CI",label:"Côte d'Ivoire"},{value:"HR",label:"Croatia"},{value:"CU",label:"Cuba"},{value:"CW",label:"Curaçao"},{value:"CY",label:"Cyprus"},{value:"CZ",label:"Czechia"},{value:"DK",label:"Denmark"},{value:"DJ",label:"Djibouti"},{value:"DM",label:"Dominica"},{value:"DO",label:"Dominican Republic"},{value:"EC",label:"Ecuador"},{value:"EG",label:"Egypt"},{value:"SV",label:"El Salvador"},{value:"GQ",label:"Equatorial Guinea"},{value:"ER",label:"Eritrea"},{value:"EE",label:"Estonia"},{value:"SZ",label:"Eswatini"},{value:"ET",label:"Ethiopia"},{value:"FK",label:"Falkland Islands (Malvinas)"},{value:"FO",label:"Faroe Islands"},{value:"FJ",label:"Fiji"},{value:"FI",label:"Finland"},{value:"FR",label:"France"},{value:"GF",label:"French Guiana"},{value:"PF",label:"French Polynesia"},{value:"TF",label:"French Southern Territories"},{value:"GA",label:"Gabon"},{value:"GM",label:"Gambia"},{value:"GE",label:"Georgia"},{value:"DE",label:"Germany"},{value:"GH",label:"Ghana"},{value:"GI",label:"Gibraltar"},{value:"GR",label:"Greece"},{value:"GL",label:"Greenland"},{value:"GD",label:"Grenada"},{value:"GP",label:"Guadeloupe"},{value:"GU",label:"Guam"},{value:"GT",label:"Guatemala"},{value:"GG",label:"Guernsey"},{value:"GN",label:"Guinea"},{value:"GW",label:"Guinea-Bissau"},{value:"GY",label:"Guyana"},{value:"HT",label:"Haiti"},{value:"HM",label:"Heard Island and McDonald Islands"},{value:"VA",label:"Holy See"},{value:"HN",label:"Honduras"},{value:"HK",label:"Hong Kong"},{value:"HU",label:"Hungary"},{value:"IS",label:"Iceland"},{value:"IN",label:"India"},{value:"ID",label:"Indonesia"},{value:"IR",label:"Iran, Islamic Republic of"},{value:"IQ",label:"Iraq"},{value:"IE",label:"Ireland"},{value:"IM",label:"Isle of Man"},{value:"IL",label:"Israel"},{value:"IT",label:"Italy"},{value:"JM",label:"Jamaica"},{value:"JP",label:"Japan"},{value:"JE",label:"Jersey"},{value:"JO",label:"Jordan"},{value:"KZ",label:"Kazakhstan"},{value:"KE",label:"Kenya"},{value:"KI",label:"Kiribati"},{value:"KP",label:"Korea, Democratic People's Republic of"},{value:"KR",label:"Korea, Republic of"},{value:"KW",label:"Kuwait"},{value:"KG",label:"Kyrgyzstan"},{value:"LA",label:"Lao People's Democratic Republic"},{value:"LV",label:"Latvia"},{value:"LB",label:"Lebanon"},{value:"LS",label:"Lesotho"},{value:"LR",label:"Liberia"},{value:"LY",label:"Libya"},{value:"LI",label:"Liechtenstein"},{value:"LT",label:"Lithuania"},{value:"LU",label:"Luxembourg"},{value:"MO",label:"Macao"},{value:"MG",label:"Madagascar"},{value:"MW",label:"Malawi"},{value:"MY",label:"Malaysia"},{value:"MV",label:"Maldives"},{value:"ML",label:"Mali"},{value:"MT",label:"Malta"},{value:"MH",label:"Marshall Islands"},{value:"MQ",label:"Martinique"},{value:"MR",label:"Mauritania"},{value:"MU",label:"Mauritius"},{value:"YT",label:"Mayotte"},{value:"MX",label:"Mexico"},{value:"FM",label:"Micronesia, Federated States of"},{value:"MD",label:"Moldova, Republic of"},{value:"MC",label:"Monaco"},{value:"MN",label:"Mongolia"},{value:"ME",label:"Montenegro"},{value:"MS",label:"Montserrat"},{value:"MA",label:"Morocco"},{value:"MZ",label:"Mozambique"},{value:"MM",label:"Myanmar"},{value:"NA",label:"Namibia"},{value:"NR",label:"Nauru"},{value:"NP",label:"Nepal"},{value:"NL",label:"Netherlands"},{value:"NC",label:"New Caledonia"},{value:"NZ",label:"New Zealand"},{value:"NI",label:"Nicaragua"},{value:"NE",label:"Niger"},{value:"NG",label:"Nigeria"},{value:"NU",label:"Niue"},{value:"NF",label:"Norfolk Island"},{value:"MK",label:"North Macedonia"},{value:"MP",label:"Northern Mariana Islands"},{value:"NO",label:"Norway"},{value:"OM",label:"Oman"},{value:"PK",label:"Pakistan"},{value:"PW",label:"Palau"},{value:"PS",label:"Palestine, State of"},{value:"PA",label:"Panama"},{value:"PG",label:"Papua New Guinea"},{value:"PY",label:"Paraguay"},{value:"PE",label:"Peru"},{value:"PH",label:"Philippines"},{value:"PN",label:"Pitcairn"},{value:"PL",label:"Poland"},{value:"PT",label:"Portugal"},{value:"PR",label:"Puerto Rico"},{value:"QA",label:"Qatar"},{value:"RE",label:"Réunion"},{value:"RO",label:"Romania"},{value:"RU",label:"Russian Federation"},{value:"RW",label:"Rwanda"},{value:"BL",label:"Saint Barthélemy"},{value:"SH",label:"Saint Helena, Ascension and Tristan da Cunha"},{value:"KN",label:"Saint Kitts and Nevis"},{value:"LC",label:"Saint Lucia"},{value:"MF",label:"Saint Martin (French part)"},{value:"PM",label:"Saint Pierre and Miquelon"},{value:"VC",label:"Saint Vincent and the Grenadines"},{value:"WS",label:"Samoa"},{value:"SM",label:"San Marino"},{value:"ST",label:"Sao Tome and Principe"},{value:"SA",label:"Saudi Arabia"},{value:"SN",label:"Senegal"},{value:"RS",label:"Serbia"},{value:"SC",label:"Seychelles"},{value:"SL",label:"Sierra Leone"},{value:"SG",label:"Singapore"},{value:"SX",label:"Sint Maarten (Dutch part)"},{value:"SK",label:"Slovakia"},{value:"SI",label:"Slovenia"},{value:"SB",label:"Solomon Islands"},{value:"SO",label:"Somalia"},{value:"ZA",label:"South Africa"},{value:"GS",label:"South Georgia and the South Sandwich Islands"},{value:"SS",label:"South Sudan"},{value:"ES",label:"Spain"},{value:"LK",label:"Sri Lanka"},{value:"SD",label:"Sudan"},{value:"SR",label:"Suriname"},{value:"SJ",label:"Svalbard and Jan Mayen"},{value:"SE",label:"Sweden"},{value:"CH",label:"Switzerland"},{value:"SY",label:"Syrian Arab Republic"},{value:"TW",label:"Taiwan, Province of China"},{value:"TJ",label:"Tajikistan"},{value:"TZ",label:"Tanzania, United Republic of"},{value:"TH",label:"Thailand"},{value:"TL",label:"Timor-Leste"},{value:"TG",label:"Togo"},{value:"TK",label:"Tokelau"},{value:"TO",label:"Tonga"},{value:"TT",label:"Trinidad and Tobago"},{value:"TN",label:"Tunisia"},{value:"TR",label:"Turkey"},{value:"TM",label:"Turkmenistan"},{value:"TC",label:"Turks and Caicos Islands"},{value:"TV",label:"Tuvalu"},{value:"UG",label:"Uganda"},{value:"UA",label:"Ukraine"},{value:"AE",label:"United Arab Emirates"},{value:"UM",label:"United States Minor Outlying Islands"},{value:"UY",label:"Uruguay"},{value:"UZ",label:"Uzbekistan"},{value:"VU",label:"Vanuatu"},{value:"VE",label:"Venezuela, Bolivarian Republic of"},{value:"VN",label:"Viet Nam"},{value:"VG",label:"Virgin Islands, British"},{value:"VI",label:"Virgin Islands, U.S."},{value:"WF",label:"Wallis and Futuna"},{value:"EH",label:"Western Sahara"},{value:"YE",label:"Yemen"},{value:"ZM",label:"Zambia"},{value:"ZW",label:"Zimbabwe"}],Gm=({firstName:e,setFirstName:t,middleName:r,setMiddleName:a,lastName:n,setLastName:o,gender:i,setGender:l,knownTravelerNumber:s,setKnownTravelerNumber:c,dateOfBirth:d,setDateOfBirth:f,travelerType:y,departureDate:C,uniqueId:b,ktnAdornment:h,additionalFields:p,errorState:x=!1,errorMessage:E,firstNameError:R=!1,firstNameErrorMessage:A,middleNameError:I=!1,middleNameErrorMessage:j,lastNameError:F=!1,lastNameErrorMessage:M,showPassportFields:oe=!1,passportNumber:re,setPassportNumber:ce,issuingCountry:z,setIssuingCountry:le,expirationDate:G,setExpirationDate:O,passportErrorState:V=!1,passportErrorMessage:$})=>{const ne=Object.values(qt.Gender).filter(_=>_!==qt.Gender.DEFAULT).map(_=>({value:_.toString(),label:_.charAt(0).toUpperCase()+_.slice(1)})),Ie=_=>{_&&(_.value===qt.Gender.MALE?l(qt.Gender.MALE):_.value===qt.Gender.FEMALE&&l(qt.Gender.FEMALE))};return u.jsxs("div",{children:[u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3 place-content-center",children:[u.jsxs("div",{className:"md:order-none order-1",children:[u.jsx(Vt,{type:"text",required:!0,placeholder:"First name",value:e,onChange:_=>t(_.target.value),className:`text-xs md:text-sm${R?" border-error-500":""}`,id:`passenger-first-name-${b}`,name:`passenger-first-name-${b}`}),R&&A&&u.jsx("p",{className:"text-error-700 text-sm mt-1",children:A})]}),u.jsxs("div",{className:"md:order-none order-2",children:[u.jsx(Vt,{type:"text",required:!1,placeholder:"Middle name",value:r,onChange:_=>a(_.target.value),className:`text-xs md:text-sm${I?" border-error-500":""}`,id:`passenger-middle-name-${b}`,name:`passenger-middle-name-${b}`}),I&&j&&u.jsx("p",{className:"text-error-700 text-sm mt-1",children:j})]}),u.jsxs("div",{className:"md:order-none order-3",children:[u.jsx(Vt,{type:"text",required:!0,placeholder:"Last name",value:n,onChange:_=>o(_.target.value),className:`text-xs md:text-sm${F?" border-error-500":""}`,id:`passenger-last-name-${b}`,name:`passenger-last-name-${b}`}),F&&M&&u.jsx("p",{className:"text-error-700 text-sm mt-1",children:M})]})]}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 place-content-center mt-3",children:[u.jsx("div",{className:"md:order-none order-1",children:u.jsx(Dn,{value:ne.find(_=>_.value===i)||null,placeholder:"Gender",options:ne,onChange:Ie,"data-testid":"gender-dropdown"})}),u.jsxs("div",{className:"md:order-none order-2 relative",children:[u.jsx(Vt,{type:"text",placeholder:"Known traveler number",value:s,onChange:_=>c(_.target.value),className:"text-xs md:text-sm pr-10",id:`passenger-known-traveler-number-${b}`,name:`passenger-known-traveler-number-${b}`}),h]})]}),p,u.jsx(ha,{value:d,onChange:f,travelerType:y,departureDate:C,uniqueId:b}),oe&&(()=>{const _=V&&!(re||"").trim(),W=V&&!(z||"").trim(),Z=V&&!(G||"").trim(),ae=W?{control:(L,m)=>({...L,borderRadius:"0.5rem",borderColor:"#EF4444",boxShadow:"none","&:hover":{borderColor:"#EF4444"},minHeight:"2.5rem",height:"2.5rem",cursor:"pointer"})}:{};return u.jsxs("div",{className:"mt-7",children:[u.jsx("p",{className:"text-sm md:text-base font-semibold",children:"Passport information"}),V&&$&&u.jsx("p",{className:"text-error-700 text-sm mt-1",children:$}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 mt-2",children:[u.jsx(Vt,{type:"text",placeholder:"Passport number",required:!0,value:re||"",onChange:L=>ce==null?void 0:ce(L.target.value),className:`text-xs md:text-sm${_?" border-error-500":""}`,id:`passport-number-${b}`,name:`passport-number-${b}`}),u.jsx(Dn,{value:z&&va.find(L=>L.value===z)||null,placeholder:"Issuing country",options:va,isSearchable:!0,onChange:L=>le==null?void 0:le((L==null?void 0:L.value)||""),styles:ae})]}),u.jsx(ha,{value:G,onChange:L=>O==null?void 0:O(L),label:"Expiration date",labelClassName:"text-sm font-medium text-grayWarm-600",className:"mt-4",yearDirection:"future",uniqueId:b?`passport-exp-${b}`:void 0,errorState:Z})]})})(),x&&u.jsx("div",{className:"text-error-700 text-sm mt-3",children:E||"Error saving passenger. Please try again."})]})},Pm=w.createContext({}),Nl=!0;function Tm({baseColor:e,highlightColor:t,width:r,height:a,borderRadius:n,circle:o,direction:i,duration:l,enableAnimation:s=Nl,customHighlightBackground:c}){const d={};return i==="rtl"&&(d["--animation-direction"]="reverse"),typeof l=="number"&&(d["--animation-duration"]=`${l}s`),s||(d["--pseudo-element-display"]="none"),(typeof r=="string"||typeof r=="number")&&(d.width=r),(typeof a=="string"||typeof a=="number")&&(d.height=a),(typeof n=="string"||typeof n=="number")&&(d.borderRadius=n),o&&(d.borderRadius="50%"),typeof e<"u"&&(d["--base-color"]=e),typeof t<"u"&&(d["--highlight-color"]=t),typeof c=="string"&&(d["--custom-highlight-background"]=c),d}function wt({count:e=1,wrapper:t,className:r,containerClassName:a,containerTestId:n,circle:o=!1,style:i,...l}){var s,c,d;const f=w.useContext(Pm),y={...l};for(const[R,A]of Object.entries(l))typeof A>"u"&&delete y[R];const C={...f,...y,circle:o},b={...i,...Tm(C)};let h="react-loading-skeleton";r&&(h+=` ${r}`);const p=(s=C.inline)!==null&&s!==void 0?s:!1,x=[],E=Math.ceil(e);for(let R=0;R<E;R++){let A=b;if(E>e&&R===E-1){const j=(c=A.width)!==null&&c!==void 0?c:"100%",F=e%1,M=typeof j=="number"?j*F:`calc(${j} * ${F})`;A={...A,width:M}}const I=w.createElement("span",{className:h,style:A,key:R},"");p?x.push(I):x.push(w.createElement(w.Fragment,{key:R},I,w.createElement("br",null)))}return w.createElement("span",{className:a,"data-testid":n,"aria-live":"polite","aria-busy":(d=C.enableAnimation)!==null&&d!==void 0?d:Nl},t?x.map((R,A)=>w.createElement(t,{key:A},R)):x)}const Om=({children:e,showFooter:t=!1})=>u.jsxs("div",{children:[u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3 place-content-center",children:[u.jsx(wt,{height:40,borderRadius:8}),u.jsx(wt,{height:40,borderRadius:8}),u.jsx(wt,{height:40,borderRadius:8})]}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 place-content-center mt-3",children:[u.jsx(wt,{height:44,borderRadius:8}),u.jsx(wt,{height:40,borderRadius:8})]}),e,u.jsxs("div",{className:"mt-7",children:[u.jsx(wt,{height:20,width:100,borderRadius:4}),u.jsxs("div",{className:"flex flex-row gap-4 mt-2",children:[u.jsx("div",{className:"w-full md:max-w-[140px]",children:u.jsx(wt,{height:44,borderRadius:8})}),u.jsx("div",{className:"w-full md:max-w-[80px]",children:u.jsx(wt,{height:40,borderRadius:8})}),u.jsx("div",{className:"w-full md:max-w-[140px]",children:u.jsx(wt,{height:44,borderRadius:8})})]})]}),t&&u.jsxs("div",{className:"flex gap-3 mt-8 pt-4 border-t border-grayWarm-200",children:[u.jsx(wt,{height:40,borderRadius:8,containerClassName:"flex-1"}),u.jsx(wt,{height:40,borderRadius:8,containerClassName:"flex-1"})]})]}),mt=({size:e=20,title:t,children:r,...a})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",role:t?"img":void 0,"aria-hidden":t?void 0:!0,...a,children:[t&&u.jsx("title",{children:t}),r]}),za=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M17 8.99994C17 8.48812 16.8047 7.9763 16.4142 7.58579C16.0237 7.19526 15.5118 7 15 7M15 15C18.3137 15 21 12.3137 21 9C21 5.68629 18.3137 3 15 3C11.6863 3 9 5.68629 9 9C9 9.27368 9.01832 9.54308 9.05381 9.80704C9.11218 10.2412 9.14136 10.4583 9.12172 10.5956C9.10125 10.7387 9.0752 10.8157 9.00469 10.9419C8.937 11.063 8.81771 11.1823 8.57913 11.4209L3.46863 16.5314C3.29568 16.7043 3.2092 16.7908 3.14736 16.8917C3.09253 16.9812 3.05213 17.0787 3.02763 17.1808C3 17.2959 3 17.4182 3 17.6627V19.4C3 19.9601 3 20.2401 3.10899 20.454C3.20487 20.6422 3.35785 20.7951 3.54601 20.891C3.75992 21 4.03995 21 4.6 21H7V19H9V17H11L12.5791 15.4209C12.8177 15.1823 12.937 15.063 13.0581 14.9953C13.1843 14.9248 13.2613 14.8987 13.4044 14.8783C13.5417 14.8586 13.7588 14.8878 14.193 14.9462C14.4569 14.9817 14.7263 15 15 15Z"})}),Gl=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M8 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V8M8 21H7.8C6.11984 21 5.27976 21 4.63803 20.673C4.07354 20.3854 3.6146 19.9265 3.32698 19.362C3 18.7202 3 17.8802 3 16.2V16M21 8V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H16M21 16V16.2C21 17.8802 21 18.7202 20.673 19.362C20.3854 19.9265 19.9265 20.3854 19.362 20.673C18.7202 21 17.8802 21 16.2 21H16M7.5 8V9.5M16.5 8V9.5M11 12.6001C11.8 12.6001 12.5 11.9001 12.5 11.1001V8M15.2002 15.2C13.4002 17 10.5002 17 8.7002 15.2"})}),Pl=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M5.80688 18.5304C5.82459 18.5005 5.84273 18.4709 5.8613 18.4413C7.2158 16.2881 7.99991 13.7418 7.99991 11C7.99991 8.79086 9.79077 7 11.9999 7C14.209 7 15.9999 8.79086 15.9999 11C15.9999 12.017 15.9307 13.0186 15.7966 14M13.6792 20.8436C14.2909 19.6226 14.7924 18.3369 15.1707 17M19.0097 18.132C19.6547 15.8657 20 13.4732 20 11C20 6.58172 16.4183 3 12 3C10.5429 3 9.17669 3.38958 8 4.07026M3 15.3641C3.64066 14.0454 4 12.5646 4 11C4 9.54285 4.38958 8.17669 5.07026 7M11.9999 11C11.9999 14.5172 10.9911 17.7988 9.24707 20.5712"})}),Tl=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M18 9V3.6C18 3.03995 18 2.75992 17.891 2.54601C17.7951 2.35785 17.6422 2.20487 17.454 2.10899C17.2401 2 16.9601 2 16.4 2H7.6C7.03995 2 6.75992 2 6.54601 2.10899C6.35785 2.20487 6.20487 2.35785 6.10899 2.54601C6 2.75992 6 3.03995 6 3.6V9M10 6V5M14 6V5M8.8 22H15.2C16.8802 22 17.7202 22 18.362 21.673C18.9265 21.3854 19.3854 20.9265 19.673 20.362C20 19.7202 20 18.8802 20 17.2V12.2C20 11.0799 20 10.5198 19.782 10.092C19.5903 9.71569 19.2843 9.40973 18.908 9.21799C18.4802 9 17.9201 9 16.8 9H7.2C6.0799 9 5.51984 9 5.09202 9.21799C4.71569 9.40973 4.40973 9.71569 4.21799 10.092C4 10.5198 4 11.0799 4 12.2V17.2C4 18.8802 4 19.7202 4.32698 20.362C4.6146 20.9265 5.07354 21.3854 5.63803 21.673C6.27976 22 7.11984 22 8.8 22Z"})}),Ol=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M3 16V7.2C3 6.07989 3 5.51984 3.21799 5.09202C3.40973 4.71569 3.71569 4.40973 4.09202 4.21799C4.51984 4 5.0799 4 6.2 4H17.8C18.9201 4 19.4802 4 19.908 4.21799C20.2843 4.40973 20.5903 4.71569 20.782 5.09202C21 5.51984 21 6.0799 21 7.2V16H15.6627C15.4182 16 15.2959 16 15.1808 16.0276C15.0787 16.0521 14.9812 16.0925 14.8917 16.1474C14.7908 16.2092 14.7043 16.2957 14.5314 16.4686L14.4686 16.5314C14.2957 16.7043 14.2092 16.7908 14.1083 16.8526C14.0188 16.9075 13.9213 16.9479 13.8192 16.9724C13.7041 17 13.5818 17 13.3373 17H10.6627C10.4182 17 10.2959 17 10.1808 16.9724C10.0787 16.9479 9.98119 16.9075 9.89172 16.8526C9.7908 16.7908 9.70432 16.7043 9.53137 16.5314L9.46863 16.4686C9.29568 16.2957 9.2092 16.2092 9.10828 16.1474C9.01881 16.0925 8.92127 16.0521 8.81923 16.0276C8.70414 16 8.58185 16 8.33726 16H3ZM3 16C2.44772 16 2 16.4477 2 17V17.3333C2 17.9533 2 18.2633 2.06815 18.5176C2.25308 19.2078 2.79218 19.7469 3.48236 19.9319C3.7367 20 4.04669 20 4.66667 20H19.3333C19.9533 20 20.2633 20 20.5176 19.9319C21.2078 19.7469 21.7469 19.2078 21.9319 18.5176C22 18.2633 22 17.9533 22 17.3333C22 17.0233 22 16.8683 21.9659 16.7412C21.8735 16.3961 21.6039 16.1265 21.2588 16.0341C21.1317 16 20.9767 16 20.6667 16H20"})}),jl=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M9 11.4999L11 13.4999L15.5 8.99987M20 11.9999C20 16.9083 14.646 20.4783 12.698 21.6147C12.4766 21.7439 12.3659 21.8085 12.2097 21.842C12.0884 21.868 11.9116 21.868 11.7903 21.842C11.6341 21.8085 11.5234 21.7439 11.302 21.6147C9.35396 20.4783 4 16.9083 4 11.9999V7.21747C4 6.41796 4 6.0182 4.13076 5.67457C4.24627 5.37101 4.43398 5.10015 4.67766 4.8854C4.9535 4.64231 5.3278 4.50195 6.0764 4.22122L11.4382 2.21054C11.6461 2.13258 11.75 2.0936 11.857 2.07815C11.9518 2.06444 12.0482 2.06444 12.143 2.07815C12.25 2.0936 12.3539 2.13258 12.5618 2.21054L17.9236 4.22122C18.6722 4.50195 19.0465 4.64231 19.3223 4.8854C19.566 5.10015 19.7537 5.37101 19.8692 5.67457C20 6.0182 20 6.41796 20 7.21747V11.9999Z"})}),Ya=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M16 6V5.2C16 4.0799 16 3.51984 15.782 3.09202C15.5903 2.71569 15.2843 2.40973 14.908 2.21799C14.4802 2 13.9201 2 12.8 2H11.2C10.0799 2 9.51984 2 9.09202 2.21799C8.71569 2.40973 8.40973 2.71569 8.21799 3.09202C8 3.51984 8 4.0799 8 5.2V6M10 11.5V16.5M14 11.5V16.5M3 6H21M19 6V17.2C19 18.8802 19 19.7202 18.673 20.362C18.3854 20.9265 17.9265 21.3854 17.362 21.673C16.7202 22 15.8802 22 14.2 22H9.8C8.11984 22 7.27976 22 6.63803 21.673C6.07354 21.3854 5.6146 20.9265 5.32698 20.362C5 19.7202 5 18.8802 5 17.2V6"})}),Ml=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M12 5V19M5 12H19"})}),jm=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M6.5 19C4.01472 19 2 16.9853 2 14.5C2 12.1564 3.79151 10.2313 6.07974 10.0194C6.54781 7.17213 9.02024 5 12 5C14.9798 5 17.4522 7.17213 17.9203 10.0194C20.2085 10.2313 22 12.1564 22 14.5C22 16.9853 19.9853 19 17.5 19C13.1102 19 10.3433 19 6.5 19Z"})}),Fr=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M2 7L10.1649 12.7154C10.8261 13.1783 11.1567 13.4097 11.5163 13.4993C11.8339 13.5785 12.1661 13.5785 12.4837 13.4993C12.8433 13.4097 13.1739 13.1783 13.8351 12.7154L22 7M6.8 20H17.2C18.8802 20 19.7202 20 20.362 19.673C20.9265 19.3854 21.3854 18.9265 21.673 18.362C22 17.7202 22 16.8802 22 15.2V8.8C22 7.11984 22 6.27976 21.673 5.63803C21.3854 5.07354 20.9265 4.6146 20.362 4.32698C19.7202 4 18.8802 4 17.2 4H6.8C5.11984 4 4.27976 4 3.63803 4.32698C3.07354 4.6146 2.6146 5.07354 2.32698 5.63803C2 6.27976 2 7.11984 2 8.8V15.2C2 16.8802 2 17.7202 2.32698 18.362C2.6146 18.9265 3.07354 19.3854 3.63803 19.673C4.27976 20 5.11984 20 6.8 20Z"})}),kl=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M18 6L6 18M6 6L18 18"})}),Ja=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M7.5 12L10.5 15L16.5 9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"})}),Rn=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M12 8V12M12 16H12.01M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"})}),Mm=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M12 12H12.005M17 12H17.005M7 12H7.005M5.2 7H18.8C19.9201 7 20.4802 7 20.908 7.21799C21.2843 7.40973 21.5903 7.71569 21.782 8.09202C22 8.51984 22 9.0799 22 10.2V13.8C22 14.9201 22 15.4802 21.782 15.908C21.5903 16.2843 21.2843 16.5903 20.908 16.782C20.4802 17 19.9201 17 18.8 17H5.2C4.0799 17 3.51984 17 3.09202 16.782C2.71569 16.5903 2.40973 16.2843 2.21799 15.908C2 15.4802 2 14.9201 2 13.8V10.2C2 9.0799 2 8.51984 2.21799 8.09202C2.40973 7.71569 2.71569 7.40973 3.09202 7.21799C3.51984 7 4.0799 7 5.2 7ZM12.25 12C12.25 12.1381 12.1381 12.25 12 12.25C11.8619 12.25 11.75 12.1381 11.75 12C11.75 11.8619 11.8619 11.75 12 11.75C12.1381 11.75 12.25 11.8619 12.25 12ZM17.25 12C17.25 12.1381 17.1381 12.25 17 12.25C16.8619 12.25 16.75 12.1381 16.75 12C16.75 11.8619 16.8619 11.75 17 11.75C17.1381 11.75 17.25 11.8619 17.25 12ZM7.25 12C7.25 12.1381 7.13807 12.25 7 12.25C6.86193 12.25 6.75 12.1381 6.75 12C6.75 11.8619 6.86193 11.75 7 11.75C7.13807 11.75 7.25 11.8619 7.25 12Z"})}),Fl=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M15 3H16.2C17.8802 3 18.7202 3 19.362 3.32698C19.9265 3.6146 20.3854 4.07354 20.673 4.63803C21 5.27976 21 6.11984 21 7.8V16.2C21 17.8802 21 18.7202 20.673 19.362C20.3854 19.9265 19.9265 20.3854 19.362 20.673C18.7202 21 17.8802 21 16.2 21H15M10 7L15 12M15 12L10 17M15 12L3 12"})});function Et(e){if(e)try{e.focus()}catch(t){if(t instanceof DOMException&&t.name==="SecurityError")return;throw t}}const km=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),ui=e=>Array.from(e.querySelectorAll(km)),kn=[],Fm=()=>u.jsx("svg",{className:"w-4 h-4 text-grayWarm-600",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),gn=e=>e.isOpen?u.jsx(Bm,{...e}):null,Bm=({onClose:e,title:t,children:r,footer:a,maxWidth:n="max-w-screen-sm",maxWidthPx:o,footerHasBorder:i=!1,hideCloseButton:l=!1,allowOverflow:s=!1,header:c="bar"})=>{const d=w.useRef(null),f=w.useId(),y=w.useRef(e);y.current=e;const C=w.useRef(!l);C.current=!l;const[b]=w.useState(()=>typeof document>"u"?null:document.activeElement);w.useEffect(()=>{const p=d.current;if(!p)return;const x=Symbol("modal");kn.push(x),p.contains(document.activeElement)||Et(ui(p)[0]??p);const E=R=>{if(kn[kn.length-1]!==x||R.defaultPrevented)return;if(R.key==="Escape"){C.current&&y.current();return}if(R.key!=="Tab")return;const A=ui(p);if(A.length===0){R.preventDefault(),Et(p);return}const I=A[0],j=A[A.length-1],F=document.activeElement,M=p.contains(F);R.shiftKey&&(!M||F===I)?(R.preventDefault(),Et(j)):!R.shiftKey&&(!M||F===j)&&(R.preventDefault(),Et(I))};return document.addEventListener("keydown",E),()=>{document.removeEventListener("keydown",E);const R=kn.indexOf(x);R!==-1&&kn.splice(R,1),b&&b!==document.body&&b.isConnected&&Et(b)}},[]);const h=c==="bar";return u.jsxs("div",{className:"fixed inset-0 z-[110] flex items-center justify-center",children:[u.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 transition-opacity",onClick:l?void 0:e,"data-testid":"modal-backdrop"}),u.jsxs("div",{ref:d,role:"dialog","aria-modal":"true","aria-labelledby":h&&t?f:void 0,"aria-label":!h&&typeof t=="string"?t:void 0,tabIndex:-1,className:Me("relative w-full mx-4 bg-white rounded-xl shadow-xl transform transition-all focus:outline-none",o?"":n),style:o?{maxWidth:`${o}px`}:void 0,children:[h&&(t||!l)&&u.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-grayWarm-200",children:[l?u.jsx("div",{className:"w-8"}):u.jsx("button",{onClick:e,"aria-label":"Close modal",className:"w-8 h-8 flex items-center justify-center bg-grayWarm-100 hover:bg-grayWarm-200 rounded-lg transition-colors",children:u.jsx(Fm,{})}),u.jsx("h2",{id:f,className:"text-lg font-semibold text-grayWarm-950",children:t}),u.jsx("div",{className:"w-8"})]}),!h&&!l&&u.jsx("button",{type:"button",onClick:e,"aria-label":"Close modal",className:"absolute top-4 right-4 z-10 w-8 h-8 flex items-center justify-center rounded-lg text-grayWarm-500 hover:bg-grayWarm-100 hover:text-grayWarm-700 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-grayWarm-950",children:u.jsx(kl,{size:24})}),u.jsx("div",{className:Me("p-6",s?"overflow-visible":"max-h-[90vh] overflow-y-auto"),children:r}),i&&u.jsx("div",{className:"border-t border-grayWarm-200"}),a&&u.jsx("div",{className:"p-6",children:a})]})]})},Br=[{languageCode:"en",regionCode:"US",currencyCode:"USD",languageDisplay:"English",regionDisplay:"United States"},{languageCode:"en",regionCode:"GB",currencyCode:"GBP",languageDisplay:"English",regionDisplay:"United Kingdom"},{languageCode:"en",regionCode:"CA",currencyCode:"CAD",languageDisplay:"English",regionDisplay:"Canada"},{languageCode:"en",regionCode:"AU",currencyCode:"AUD",languageDisplay:"English",regionDisplay:"Australia"},{languageCode:"es",regionCode:"ES",currencyCode:"EUR",languageDisplay:"Español",regionDisplay:"España"},{languageCode:"es",regionCode:"MX",currencyCode:"MXN",languageDisplay:"Español",regionDisplay:"México"},{languageCode:"fr",regionCode:"FR",currencyCode:"EUR",languageDisplay:"Français",regionDisplay:"France"},{languageCode:"fr",regionCode:"CA",currencyCode:"CAD",languageDisplay:"Français",regionDisplay:"Canada"},{languageCode:"de",regionCode:"DE",currencyCode:"EUR",languageDisplay:"Deutsch",regionDisplay:"Deutschland"},{languageCode:"it",regionCode:"IT",currencyCode:"EUR",languageDisplay:"Italiano",regionDisplay:"Italia"},{languageCode:"pt",regionCode:"BR",currencyCode:"BRL",languageDisplay:"Português",regionDisplay:"Brasil"},{languageCode:"ja",regionCode:"JP",currencyCode:"JPY",languageDisplay:"日本語",regionDisplay:"日本"},{languageCode:"ko",regionCode:"KR",currencyCode:"KRW",languageDisplay:"한국어",regionDisplay:"대한민국"},{languageCode:"zh",regionCode:"CN",currencyCode:"CNY",languageDisplay:"中文",regionDisplay:"中国"},{languageCode:"hi",regionCode:"IN",currencyCode:"INR",languageDisplay:"हिन्दी",regionDisplay:"भारत"}],Bl=Br[0],Vm="movmo_locale_preferences",_m=(e,t)=>Br.find(r=>r.languageCode.toLowerCase()===e.toLowerCase()&&r.regionCode.toLowerCase()===t.toLowerCase())??Bl,Dm=e=>e.languageDisplay,Wm=()=>u.jsx("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:u.jsx("path",{d:"M12.913 17H20.087M12.913 17L11 21M12.913 17L16.5 9L20.087 17M2 5H12M7 2V5M11 5C9.72 8.44 7.36 11.44 4.5 13.5M7.5 16.5C6.26 15.34 5.14 14.04 4.17 12.63"})}),Lm=({isOpen:e,onClose:t,currentLanguageCode:r,currentRegionCode:a,onLocaleSelect:n,translateIconUrl:o})=>{const i=l=>l.languageCode===r&&l.regionCode===a;return u.jsxs(gn,{isOpen:e,onClose:t,title:null,maxWidthPx:860,hideCloseButton:!0,children:[u.jsx("div",{className:"flex items-center mb-6",children:u.jsx("button",{onClick:t,"aria-label":"Close",className:"w-8 h-8 flex items-center justify-center bg-grayWarm-100 hover:bg-grayWarm-200 rounded-lg transition-colors",children:u.jsx("svg",{className:"w-4 h-4 text-grayWarm-600",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})}),u.jsxs("div",{className:"border border-grayWarm-200 rounded-xl p-4 mb-6 flex items-center justify-between opacity-60 cursor-not-allowed",children:[u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"font-semibold text-grayWarm-950",children:"Translation"}),o?u.jsx("img",{src:o,alt:"",className:"w-4 h-4"}):u.jsx(Wm,{})]}),u.jsx("p",{className:"text-sm text-grayWarm-600 mt-1",children:"Automatically translate descriptions to English."})]}),u.jsx("div",{className:"w-11 h-6 bg-grayWarm-950 rounded-full relative flex-shrink-0","aria-hidden":"true",children:u.jsx("div",{className:"w-5 h-5 bg-white rounded-full absolute top-0.5 right-0.5"})})]}),u.jsx("h3",{className:"text-base font-semibold text-grayWarm-950 mb-4",children:"Choose a language and region"}),u.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-1 p-px",role:"radiogroup","aria-label":"Language and region selection",children:Br.map(l=>{const s=i(l);return u.jsxs("button",{onClick:()=>n(l),role:"radio","aria-checked":s,className:`p-3 rounded-lg text-left cursor-pointer border transition-colors ${s?"border-grayWarm-950 ring-1 ring-grayWarm-950":"border-transparent hover:bg-grayWarm-50"}`,children:[u.jsx("p",{className:"text-sm font-semibold text-grayWarm-950",children:l.languageDisplay}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:l.regionDisplay})]},`${l.languageCode}-${l.regionCode}`)})})]})},Vr=[{code:"USD",name:"United States dollar",symbol:"$"},{code:"AUD",name:"Australian dollar",symbol:"$"},{code:"BRL",name:"Brazilian real",symbol:"R$"},{code:"BGN",name:"Bulgarian lev",symbol:"лв."},{code:"CAD",name:"Canadian dollar",symbol:"$"},{code:"CLP",name:"Chilean peso",symbol:"$"},{code:"CNY",name:"Chinese yuan",symbol:"¥"},{code:"COP",name:"Colombian peso",symbol:"$"},{code:"CRC",name:"Costa Rican colon",symbol:"₡"},{code:"CZK",name:"Czech koruna",symbol:"Kč"},{code:"DKK",name:"Danish krone",symbol:"kr"},{code:"EGP",name:"Egyptian pound",symbol:"ج.م"},{code:"AED",name:"Emirati dirham",symbol:"د.إ"},{code:"EUR",name:"Euro",symbol:"€"},{code:"GHS",name:"Ghanaian cedi",symbol:"GH₵"},{code:"HKD",name:"Hong Kong dollar",symbol:"$"},{code:"HUF",name:"Hungarian forint",symbol:"Ft"},{code:"INR",name:"Indian rupee",symbol:"₹"},{code:"IDR",name:"Indonesian rupiah",symbol:"Rp"},{code:"ILS",name:"Israeli new shekel",symbol:"₪"},{code:"JPY",name:"Japanese yen",symbol:"¥"},{code:"KZT",name:"Kazakhstani tenge",symbol:"₸"},{code:"KES",name:"Kenyan shilling",symbol:"KSh"},{code:"MYR",name:"Malaysian ringgit",symbol:"RM"},{code:"MXN",name:"Mexican peso",symbol:"$"},{code:"MAD",name:"Moroccan dirham",symbol:"MAD"},{code:"TWD",name:"New Taiwan dollar",symbol:"$"},{code:"NZD",name:"New Zealand dollar",symbol:"$"},{code:"NOK",name:"Norwegian krone",symbol:"kr"},{code:"PEN",name:"Peruvian sol",symbol:"S/"},{code:"PHP",name:"Philippine peso",symbol:"₱"},{code:"PLN",name:"Polish zloty",symbol:"zł"},{code:"GBP",name:"Pound sterling",symbol:"£"},{code:"QAR",name:"Qatari riyal",symbol:"ر.ق"},{code:"RON",name:"Romanian leu",symbol:"lei"},{code:"SAR",name:"Saudi Arabian riyal",symbol:"SR"},{code:"SGD",name:"Singapore dollar",symbol:"$"},{code:"ZAR",name:"South African rand",symbol:"R"},{code:"KRW",name:"South Korean won",symbol:"₩"},{code:"SEK",name:"Swedish krona",symbol:"kr"},{code:"CHF",name:"Swiss franc",symbol:"CHF"},{code:"THB",name:"Thai baht",symbol:"฿"},{code:"TRY",name:"Turkish lira",symbol:"₺"},{code:"UGX",name:"Ugandan shilling",symbol:"USh"},{code:"UAH",name:"Ukrainian hryvnia",symbol:"₴"},{code:"UYU",name:"Uruguayan peso",symbol:"$U"},{code:"VND",name:"Vietnamese dong",symbol:"₫"}],Xm=Vr[0],Hm=e=>Vr.find(t=>t.code.toUpperCase()===e.toUpperCase())??Xm,Vl=e=>e.code===e.symbol?e.code:`${e.code} – ${e.symbol}`,Zm=({isOpen:e,onClose:t,currentCurrencyCode:r,onCurrencySelect:a})=>u.jsxs(gn,{isOpen:e,onClose:t,title:null,maxWidthPx:920,hideCloseButton:!0,children:[u.jsx("div",{className:"flex items-center mb-6",children:u.jsx("button",{onClick:t,"aria-label":"Close",className:"w-8 h-8 flex items-center justify-center bg-grayWarm-100 hover:bg-grayWarm-200 rounded-lg transition-colors",children:u.jsx("svg",{className:"w-4 h-4 text-grayWarm-600",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})}),u.jsx("h3",{className:"text-base font-semibold text-grayWarm-950 mb-4",children:"Choose a currency"}),u.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-x-3 gap-y-1 p-px",role:"radiogroup","aria-label":"Currency selection",children:Vr.map(n=>{const o=n.code===r;return u.jsxs("button",{onClick:()=>a(n.code),role:"radio","aria-checked":o,className:`p-3 rounded-lg text-left cursor-pointer border transition-colors ${o?"border-grayWarm-950 ring-1 ring-grayWarm-950":"border-transparent hover:bg-grayWarm-50"}`,children:[u.jsx("p",{className:"text-sm font-medium text-grayWarm-950",children:n.name}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:Vl(n)})]},n.code)})})]});var zm=function(e){var t={};function r(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(a,n,o){r.o(a,n)||Object.defineProperty(a,n,{enumerable:!0,get:o})},r.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},r.t=function(a,n){if(1&n&&(a=r(a)),8&n||4&n&&typeof a=="object"&&a&&a.__esModule)return a;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:a}),2&n&&typeof a!="string")for(var i in a)r.d(o,i,(function(l){return a[l]}).bind(null,i));return o},r.n=function(a){var n=a&&a.__esModule?function(){return a.default}:function(){return a};return r.d(n,"a",n),n},r.o=function(a,n){return Object.prototype.hasOwnProperty.call(a,n)},r.p="",r(r.s=9)}([function(e,t){e.exports=w},function(e,t,r){var a;/*!
|
|
110
|
+
*/var ei;function kg(){return ei||(ei=1,process.env.NODE_ENV!=="production"&&function(){function e(C,b){return C===b&&(C!==0||1/C===1/b)||C!==C&&b!==b}function t(C,b){d||r.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var h=b();if(!f){var p=b();o(h,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}p=i({inst:{value:h,getSnapshot:b}});var x=p[0].inst,E=p[1];return l(function(){x.value=h,x.getSnapshot=b,n(x)&&E({inst:x})},[C,h,b]),s(function(){return n(x)&&E({inst:x}),C(function(){n(x)&&E({inst:x})})},[C]),c(h),h}function n(C){var b=C.getSnapshot;C=C.value;try{var h=b();return!o(C,h)}catch{return!0}}function a(C,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var r=w,o=typeof Object.is=="function"?Object.is:e,i=r.useState,s=r.useEffect,l=r.useLayoutEffect,c=r.useDebugValue,d=!1,f=!1,y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?a:t;Kr.useSyncExternalStore=r.useSyncExternalStore!==void 0?r.useSyncExternalStore:y,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Kr}process.env.NODE_ENV==="production"?ma.exports=Tg():ma.exports=kg();var Mg=ma.exports;function Og(){return Mg.useSyncExternalStore(Fg,()=>!0,()=>!1)}function Fg(){return()=>{}}var Za="Avatar",[Bg]=xg(Za),[Vg,Os]=Bg(Za),Fs=S.forwardRef((e,t)=>{const{__scopeAvatar:n,...a}=e,[r,o]=S.useState("idle");return u.jsx(Vg,{scope:n,imageLoadingStatus:r,onImageLoadingStatusChange:o,children:u.jsx(Ha.span,{...a,ref:t})})});Fs.displayName=Za;var Bs="AvatarImage",Vs=S.forwardRef((e,t)=>{const{__scopeAvatar:n,src:a,onLoadingStatusChange:r=()=>{},...o}=e,i=Os(Bs,n),s=Dg(a,o),l=ks(c=>{r(c),i.onImageLoadingStatusChange(c)});return In(()=>{s!=="idle"&&l(s)},[s,l]),s==="loaded"?u.jsx(Ha.img,{...o,ref:t,src:a}):null});Vs.displayName=Bs;var Ds="AvatarFallback",_s=S.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:a,...r}=e,o=Os(Ds,n),[i,s]=S.useState(a===void 0);return S.useEffect(()=>{if(a!==void 0){const l=window.setTimeout(()=>s(!0),a);return()=>window.clearTimeout(l)}},[a]),i&&o.imageLoadingStatus!=="loaded"?u.jsx(Ha.span,{...r,ref:t}):null});_s.displayName=Ds;function ti(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Dg(e,{referrerPolicy:t,crossOrigin:n}){const a=Og(),r=S.useRef(null),o=a?(r.current||(r.current=new window.Image),r.current):null,[i,s]=S.useState(()=>ti(o,e));return In(()=>{s(ti(o,e))},[o,e]),In(()=>{const l=f=>()=>{s(f)};if(!o)return;const c=l("loaded"),d=l("error");return o.addEventListener("load",c),o.addEventListener("error",d),t&&(o.referrerPolicy=t),typeof n=="string"&&(o.crossOrigin=n),()=>{o.removeEventListener("load",c),o.removeEventListener("error",d)}},[o,n,t]),i}var _g=Fs,Wg=Vs,Lg=_s;const Ws=S.forwardRef(({size:e="md",className:t,...n},a)=>{const r={sm:"w-8 h-8",md:"w-10 h-10",lg:"w-12 h-12",xl:"w-16 h-16"};return u.jsx(_g,{ref:a,className:Me("relative flex shrink-0 overflow-hidden rounded-full",r[e],t),...n})});Ws.displayName="Avatar";const Ls=S.forwardRef(({className:e,...t},n)=>u.jsx(Wg,{ref:n,className:Me("aspect-square h-full w-full object-cover",e),...t}));Ls.displayName="AvatarImage";const Xs=S.forwardRef(({className:e,...t},n)=>u.jsx(Lg,{ref:n,className:Me("flex h-full w-full items-center justify-center rounded-full bg-grayWarm-100 text-grayWarm-600 font-semibold",e),...t}));Xs.displayName="AvatarFallback";function en(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Tr(e,t=[]){let n=[];function a(o,i){const s=S.createContext(i),l=n.length;n=[...n,i];const c=f=>{var x;const{scope:y,children:C,...b}=f,h=((x=y==null?void 0:y[e])==null?void 0:x[l])||s,p=S.useMemo(()=>b,Object.values(b));return u.jsx(h.Provider,{value:p,children:C})};c.displayName=o+"Provider";function d(f,y){var h;const C=((h=y==null?void 0:y[e])==null?void 0:h[l])||s,b=S.useContext(C);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[c,d]}const r=()=>{const o=n.map(i=>S.createContext(i));return function(s){const l=(s==null?void 0:s[e])||o;return S.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return r.scopeName=e,[a,Xg(r,...t)]}function Xg(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const a=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(o){const i=a.reduce((s,{useScope:l,scopeName:c})=>{const f=l(o)[`__scope${c}`];return{...s,...f}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var Hg=S[" useInsertionEffect ".trim().toString()]||In;function Hn({prop:e,defaultProp:t,onChange:n=()=>{},caller:a}){const[r,o,i]=Zg({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:r;{const d=S.useRef(e!==void 0);S.useEffect(()=>{const f=d.current;f!==s&&console.warn(`${a} is changing from ${f?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=s},[s,a])}const c=S.useCallback(d=>{var f;if(s){const y=zg(d)?d(e):d;y!==e&&((f=i.current)==null||f.call(i,y))}else o(d)},[s,e,o,i]);return[l,c]}function Zg({defaultProp:e,onChange:t}){const[n,a]=S.useState(e),r=S.useRef(n),o=S.useRef(t);return Hg(()=>{o.current=t},[t]),S.useEffect(()=>{var i;r.current!==n&&((i=o.current)==null||i.call(o,n),r.current=n)},[n,r]),[n,a,o]}function zg(e){return typeof e=="function"}function Yg(e){const t=S.useRef({value:e,previous:e});return S.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Jg(e){const[t,n]=S.useState(void 0);return In(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const o=r[0];let i,s;if("borderBoxSize"in o){const l=o.borderBoxSize,c=Array.isArray(l)?l[0]:l;i=c.inlineSize,s=c.blockSize}else i=e.offsetWidth,s=e.offsetHeight;n({width:i,height:s})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else n(void 0)},[e]),t}function ba(e){const t=Ug(e),n=S.forwardRef((a,r)=>{const{children:o,...i}=a,s=S.Children.toArray(o),l=s.find(Qg);if(l){const c=l.props.children,d=s.map(f=>f===l?S.Children.count(c)>1?S.Children.only(null):S.isValidElement(c)?c.props.children:null:f);return u.jsx(t,{...i,ref:r,children:S.isValidElement(c)?S.cloneElement(c,void 0,d):null})}return u.jsx(t,{...i,ref:r,children:o})});return n.displayName=`${e}.Slot`,n}function Ug(e){const t=S.forwardRef((n,a)=>{const{children:r,...o}=n;if(S.isValidElement(r)){const i=qg(r),s=Kg(o,r.props);return r.type!==S.Fragment&&(s.ref=a?Xa(a,i):i),S.cloneElement(r,s)}return S.Children.count(r)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $g=Symbol("radix.slottable");function Qg(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===$g}function Kg(e,t){const n={...t};for(const a in t){const r=e[a],o=t[a];/^on[A-Z]/.test(a)?r&&o?n[a]=(...s)=>{const l=o(...s);return r(...s),l}:r&&(n[a]=r):a==="style"?n[a]={...r,...o}:a==="className"&&(n[a]=[r,o].filter(Boolean).join(" "))}return{...e,...n}}function qg(e){var a,r;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var em=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],fn=em.reduce((e,t)=>{const n=ba(`Primitive.${t}`),a=S.forwardRef((r,o)=>{const{asChild:i,...s}=r,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...s,ref:o})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),kr="Switch",[tm]=Tr(kr),[nm,rm]=tm(kr),Hs=S.forwardRef((e,t)=>{const{__scopeSwitch:n,name:a,checked:r,defaultChecked:o,required:i,disabled:s,value:l="on",onCheckedChange:c,form:d,...f}=e,[y,C]=S.useState(null),b=_n(t,R=>C(R)),h=S.useRef(!1),p=y?d||!!y.closest("form"):!0,[x,E]=Hn({prop:r,defaultProp:o??!1,onChange:c,caller:kr});return u.jsxs(nm,{scope:n,checked:x,disabled:s,children:[u.jsx(fn.button,{type:"button",role:"switch","aria-checked":x,"aria-required":i,"data-state":Js(x),"data-disabled":s?"":void 0,disabled:s,value:l,...f,ref:b,onClick:en(e.onClick,R=>{E(A=>!A),p&&(h.current=R.isPropagationStopped(),h.current||R.stopPropagation())})}),p&&u.jsx(Ys,{control:y,bubbles:!h.current,name:a,value:l,checked:x,required:i,disabled:s,form:d,style:{transform:"translateX(-100%)"}})]})});Hs.displayName=kr;var Zs="SwitchThumb",zs=S.forwardRef((e,t)=>{const{__scopeSwitch:n,...a}=e,r=rm(Zs,n);return u.jsx(fn.span,{"data-state":Js(r.checked),"data-disabled":r.disabled?"":void 0,...a,ref:t})});zs.displayName=Zs;var am="SwitchBubbleInput",Ys=S.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:a=!0,...r},o)=>{const i=S.useRef(null),s=_n(i,o),l=Yg(n),c=Jg(t);return S.useEffect(()=>{const d=i.current;if(!d)return;const f=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(f,"checked").set;if(l!==n&&C){const b=new Event("click",{bubbles:a});C.call(d,n),d.dispatchEvent(b)}},[l,n,a]),u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...r,tabIndex:-1,ref:s,style:{...r.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Ys.displayName=am;function Js(e){return e?"checked":"unchecked"}var om=Hs,im=zs;const za=S.forwardRef(({size:e="md",className:t,...n},a)=>{const r={sm:"w-9 h-5",md:"w-11 h-6"},o={sm:"w-4 h-4 data-[state=checked]:translate-x-4",md:"w-5 h-5 data-[state=checked]:translate-x-5"};return u.jsx(om,{ref:a,className:Me("peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-500 focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:bg-brand-500 data-[state=unchecked]:bg-grayWarm-200",r[e],t),...n,children:u.jsx(im,{className:Me("pointer-events-none block rounded-full bg-white shadow-xs transition-transform data-[state=unchecked]:translate-x-0",o[e])})})});za.displayName="Toggle";function sm(e){const t=e+"CollectionProvider",[n,a]=Tr(t),[r,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=h=>{const{scope:p,children:x}=h,E=w.useRef(null),R=w.useRef(new Map).current;return u.jsx(r,{scope:p,itemMap:R,collectionRef:E,children:x})};i.displayName=t;const s=e+"CollectionSlot",l=ba(s),c=w.forwardRef((h,p)=>{const{scope:x,children:E}=h,R=o(s,x),A=_n(p,R.collectionRef);return u.jsx(l,{ref:A,children:E})});c.displayName=s;const d=e+"CollectionItemSlot",f="data-radix-collection-item",y=ba(d),C=w.forwardRef((h,p)=>{const{scope:x,children:E,...R}=h,A=w.useRef(null),I=_n(p,A),M=o(d,x);return w.useEffect(()=>(M.itemMap.set(A,{ref:A,...R}),()=>void M.itemMap.delete(A))),u.jsx(y,{[f]:"",ref:I,children:E})});C.displayName=d;function b(h){const p=o(e+"CollectionConsumer",h);return w.useCallback(()=>{const E=p.collectionRef.current;if(!E)return[];const R=Array.from(E.querySelectorAll(`[${f}]`));return Array.from(p.itemMap.values()).sort((M,B)=>R.indexOf(M.ref.current)-R.indexOf(B.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:i,Slot:c,ItemSlot:C},b,a]}var lm=S[" useId ".trim().toString()]||(()=>{}),um=0;function cm(e){const[t,n]=S.useState(lm());return In(()=>{n(a=>a??String(um++))},[e]),t?`radix-${t}`:""}var dm=S.createContext(void 0);function Us(e){const t=S.useContext(dm);return e||t||"ltr"}var qr="rovingFocusGroup.onEntryFocus",fm={bubbles:!1,cancelable:!0},Zn="RovingFocusGroup",[ha,$s,pm]=sm(Zn),[gm,Qs]=Tr(Zn,[pm]),[mm,bm]=gm(Zn),Ks=S.forwardRef((e,t)=>u.jsx(ha.Provider,{scope:e.__scopeRovingFocusGroup,children:u.jsx(ha.Slot,{scope:e.__scopeRovingFocusGroup,children:u.jsx(hm,{...e,ref:t})})}));Ks.displayName=Zn;var hm=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:a,loop:r=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...f}=e,y=S.useRef(null),C=_n(t,y),b=Us(o),[h,p]=Hn({prop:i,defaultProp:s??null,onChange:l,caller:Zn}),[x,E]=S.useState(!1),R=ks(c),A=$s(n),I=S.useRef(!1),[M,B]=S.useState(0);return S.useEffect(()=>{const O=y.current;if(O)return O.addEventListener(qr,R),()=>O.removeEventListener(qr,R)},[R]),u.jsx(mm,{scope:n,orientation:a,dir:b,loop:r,currentTabStopId:h,onItemFocus:S.useCallback(O=>p(O),[p]),onItemShiftTab:S.useCallback(()=>E(!0),[]),onFocusableItemAdd:S.useCallback(()=>B(O=>O+1),[]),onFocusableItemRemove:S.useCallback(()=>B(O=>O-1),[]),children:u.jsx(fn.div,{tabIndex:x||M===0?-1:0,"data-orientation":a,...f,ref:C,style:{outline:"none",...e.style},onMouseDown:en(e.onMouseDown,()=>{I.current=!0}),onFocus:en(e.onFocus,O=>{const re=!I.current;if(O.target===O.currentTarget&&re&&!x){const ne=new CustomEvent(qr,fm);if(O.currentTarget.dispatchEvent(ne),!ne.defaultPrevented){const ue=A().filter(V=>V.focusable),z=ue.find(V=>V.active),ie=ue.find(V=>V.id===h),T=[z,ie,...ue].filter(Boolean).map(V=>V.ref.current);tl(T,d)}}I.current=!1}),onBlur:en(e.onBlur,()=>E(!1))})})}),qs="RovingFocusGroupItem",el=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:a=!0,active:r=!1,tabStopId:o,children:i,...s}=e,l=cm(),c=o||l,d=bm(qs,n),f=d.currentTabStopId===c,y=$s(n),{onFocusableItemAdd:C,onFocusableItemRemove:b,currentTabStopId:h}=d;return S.useEffect(()=>{if(a)return C(),()=>b()},[a,C,b]),u.jsx(ha.ItemSlot,{scope:n,id:c,focusable:a,active:r,children:u.jsx(fn.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...s,ref:t,onMouseDown:en(e.onMouseDown,p=>{a?d.onItemFocus(c):p.preventDefault()}),onFocus:en(e.onFocus,()=>d.onItemFocus(c)),onKeyDown:en(e.onKeyDown,p=>{if(p.key==="Tab"&&p.shiftKey){d.onItemShiftTab();return}if(p.target!==p.currentTarget)return;const x=Cm(p,d.orientation,d.dir);if(x!==void 0){if(p.metaKey||p.ctrlKey||p.altKey||p.shiftKey)return;p.preventDefault();let R=y().filter(A=>A.focusable).map(A=>A.ref.current);if(x==="last")R.reverse();else if(x==="prev"||x==="next"){x==="prev"&&R.reverse();const A=R.indexOf(p.currentTarget);R=d.loop?xm(R,A+1):R.slice(A+1)}setTimeout(()=>tl(R))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:h!=null}):i})})});el.displayName=qs;var vm={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ym(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Cm(e,t,n){const a=ym(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return vm[a]}function tl(e,t=!1){const n=document.activeElement;for(const a of e)if(a===n||(a.focus({preventScroll:t}),document.activeElement!==n))return}function xm(e,t){return e.map((n,a)=>e[(t+a)%e.length])}var Im=Ks,Sm=el,nl="Toggle",rl=S.forwardRef((e,t)=>{const{pressed:n,defaultPressed:a,onPressedChange:r,...o}=e,[i,s]=Hn({prop:n,onChange:r,defaultProp:a??!1,caller:nl});return u.jsx(fn.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0,...o,ref:t,onClick:en(e.onClick,()=>{e.disabled||s(!i)})})});rl.displayName=nl;var nn="ToggleGroup",[al]=Tr(nn,[Qs]),ol=Qs(),Ya=w.forwardRef((e,t)=>{const{type:n,...a}=e;if(n==="single"){const r=a;return u.jsx(Am,{...r,ref:t})}if(n==="multiple"){const r=a;return u.jsx(wm,{...r,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${nn}\``)});Ya.displayName=nn;var[il,sl]=al(nn),Am=w.forwardRef((e,t)=>{const{value:n,defaultValue:a,onValueChange:r=()=>{},...o}=e,[i,s]=Hn({prop:n,defaultProp:a??"",onChange:r,caller:nn});return u.jsx(il,{scope:e.__scopeToggleGroup,type:"single",value:w.useMemo(()=>i?[i]:[],[i]),onItemActivate:s,onItemDeactivate:w.useCallback(()=>s(""),[s]),children:u.jsx(ll,{...o,ref:t})})}),wm=w.forwardRef((e,t)=>{const{value:n,defaultValue:a,onValueChange:r=()=>{},...o}=e,[i,s]=Hn({prop:n,defaultProp:a??[],onChange:r,caller:nn}),l=w.useCallback(d=>s((f=[])=>[...f,d]),[s]),c=w.useCallback(d=>s((f=[])=>f.filter(y=>y!==d)),[s]);return u.jsx(il,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:c,children:u.jsx(ll,{...o,ref:t})})});Ya.displayName=nn;var[Em,Rm]=al(nn),ll=w.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:a=!1,rovingFocus:r=!0,orientation:o,dir:i,loop:s=!0,...l}=e,c=ol(n),d=Us(i),f={role:"group",dir:d,...l};return u.jsx(Em,{scope:n,rovingFocus:r,disabled:a,children:r?u.jsx(Im,{asChild:!0,...c,orientation:o,dir:d,loop:s,children:u.jsx(fn.div,{...f,ref:t})}):u.jsx(fn.div,{...f,ref:t})})}),Ar="ToggleGroupItem",ul=w.forwardRef((e,t)=>{const n=sl(Ar,e.__scopeToggleGroup),a=Rm(Ar,e.__scopeToggleGroup),r=ol(e.__scopeToggleGroup),o=n.value.includes(e.value),i=a.disabled||e.disabled,s={...e,pressed:o,disabled:i},l=w.useRef(null);return a.rovingFocus?u.jsx(Sm,{asChild:!0,...r,focusable:!i,active:o,ref:l,children:u.jsx(ni,{...s,ref:t})}):u.jsx(ni,{...s,ref:t})});ul.displayName=Ar;var ni=w.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:a,...r}=e,o=sl(Ar,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=o.type==="single"?i:void 0;return u.jsx(rl,{...s,...r,ref:t,onPressedChange:l=>{l?o.onItemActivate(a):o.onItemDeactivate(a)}})}),Nm=Ya,Gm=ul;const cl=S.forwardRef(({className:e,...t},n)=>u.jsx(Nm,{ref:n,className:Me("inline-flex items-center rounded-lg border border-grayWarm-200 overflow-hidden",e),...t}));cl.displayName="ToggleGroup";const dl=S.forwardRef(({className:e,children:t,...n},a)=>u.jsx(Gm,{ref:a,className:Me("inline-flex items-center justify-center px-4 py-2 text-sm font-semibold transition-colors","border-r border-grayWarm-200 last:border-r-0","data-[state=on]:bg-grayWarm-100 data-[state=on]:text-grayWarm-950","data-[state=off]:bg-white data-[state=off]:text-grayWarm-600 data-[state=off]:hover:bg-grayWarm-50","focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500",e),...n,children:t}));dl.displayName="ToggleGroupItem";const fl=S.forwardRef(({className:e,...t},n)=>u.jsx("textarea",{ref:n,className:Me("flex min-h-[80px] w-full rounded-lg border border-grayWarm-200 bg-white px-3.5 py-2.5 text-base text-grayWarm-950","placeholder:text-grayWarm-400","focus:outline-none focus:ring-2 focus:ring-brand-500 focus:border-brand-500","disabled:cursor-not-allowed disabled:opacity-50","resize-vertical",e),...t}));fl.displayName="Textarea";const pl=({currentPage:e,totalPages:t,onPageChange:n,className:a})=>{const r=()=>{const o=[];if(t<=7){for(let l=1;l<=t;l++)o.push(l);return o}o.push(1),e>3&&o.push("...");const i=Math.max(2,e-1),s=Math.min(t-1,e+1);for(let l=i;l<=s;l++)o.push(l);return e<t-2&&o.push("..."),o.push(t),o};return u.jsxs("nav",{className:Me("flex items-center justify-between",a),children:[u.jsxs("button",{onClick:()=>n(e-1),disabled:e<=1,className:Me("inline-flex items-center gap-1.5 px-3 py-2 text-sm font-semibold rounded-lg transition-colors","text-grayWarm-600 hover:bg-grayWarm-50","disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-transparent"),children:[u.jsx(hg,{className:"w-4 h-4"}),"Previous"]}),u.jsx("div",{className:"flex items-center gap-0.5",children:r().map((o,i)=>o==="..."?u.jsx("span",{className:"w-10 h-10 flex items-center justify-center text-sm text-grayWarm-500",children:"..."},`ellipsis-${i}`):u.jsx("button",{onClick:()=>n(o),className:Me("w-10 h-10 flex items-center justify-center text-sm font-medium rounded-lg transition-colors",o===e?"bg-grayWarm-100 text-grayWarm-950":"text-grayWarm-600 hover:bg-grayWarm-50"),children:o},o))}),u.jsxs("button",{onClick:()=>n(e+1),disabled:e>=t,className:Me("inline-flex items-center gap-1.5 px-3 py-2 text-sm font-semibold rounded-lg transition-colors","text-grayWarm-600 hover:bg-grayWarm-50","disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-transparent"),children:["Next",u.jsx(vg,{className:"w-4 h-4"})]})]})};pl.displayName="Pagination";const gl=S.forwardRef(({className:e,...t},n)=>u.jsxs("div",{className:Me("relative",e),children:[u.jsx(yg,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-grayWarm-400"}),u.jsx("input",{ref:n,type:"search",className:Me("w-full rounded-lg border border-grayWarm-200 bg-white pl-10 pr-3.5 py-2.5 text-base text-grayWarm-950","placeholder:text-grayWarm-400","focus:outline-none focus:ring-2 focus:ring-brand-500 focus:border-brand-500"),...t})]}));gl.displayName="SearchInput";const ml=S.forwardRef(({variant:e="default",onRemove:t,className:n,children:a,...r},o)=>{const i={default:"bg-white border-grayWarm-200 text-grayWarm-700",selected:"bg-brand-50 border-brand-300 text-brand-600"};return u.jsxs("span",{ref:o,className:Me("inline-flex items-center gap-1.5 px-3 py-1 rounded-full border text-sm font-medium",i[e],n),...r,children:[a,t&&u.jsx("button",{onClick:t,className:"inline-flex items-center justify-center w-4 h-4 rounded-full hover:bg-grayWarm-200 transition-colors",children:u.jsx(Cg,{className:"w-3 h-3"})})]})});ml.displayName="Chip";const va=({value:e,onChange:t,travelerType:n,departureDate:a,uniqueId:r,label:o="Date of Birth",yearDirection:i="past",errorState:s=!1,labelClassName:l,className:c,monthSearchable:d=!1})=>{const f=["January","February","March","April","May","June","July","August","September","October","November","December"],y=new Date().getUTCFullYear(),C=w.useMemo(()=>i==="future"?Array.from({length:21},(G,T)=>y+T):Array.from({length:120},(G,T)=>y-T),[y,i]),[b,h]=w.useState(e?new Date(e).getUTCMonth():void 0),[p,x]=w.useState(e?new Date(e).getUTCDate():void 0),[E,R]=w.useState(e?new Date(e).getUTCFullYear():void 0),A=(G,T)=>new Date(Date.UTC(T,G+1,0)).getUTCDate(),I=w.useMemo(()=>b!==void 0?A(b,E??2e3):31,[b,E]),M=w.useRef(void 0);w.useEffect(()=>{if(e&&e!==M.current)try{const G=new Date(e);isNaN(G.getTime())||(h(G.getUTCMonth()),x(G.getUTCDate()),R(G.getUTCFullYear()))}catch(G){console.error("Invalid date format:",G)}},[e]),w.useEffect(()=>{p!==void 0&&p>I&&x(I)},[I,p]),w.useEffect(()=>{if(b!==void 0&&p!==void 0&&E!==void 0){const G=Math.min(p,A(b,E)),T=new Date(Date.UTC(E,b,G)),V=T.toISOString();if(M.current=V,e){const $=new Date(e);if(!isNaN($.getTime())&&$.getTime()===T.getTime())return}t(V)}},[b,p,E]);const B=G=>{G&&h(f.indexOf(G.value))},O=G=>{if(G===""){x(void 0);return}const T=parseInt(G,10);isNaN(T)||x(Math.min(Math.max(T,1),I))},re=G=>{if(G){const T=parseInt(G.value,10);isNaN(T)||R(T)}},ne=s&&b===void 0,ue=s&&p===void 0,z=s&&E===void 0,ie=G=>G?{control:(T,V)=>({...T,borderRadius:"0.5rem",borderColor:"#EF4444",boxShadow:"none","&:hover":{borderColor:"#EF4444"},minHeight:"2.5rem",height:"2.5rem",cursor:"pointer"})}:{};return u.jsxs("div",{className:c||"mt-7",children:[u.jsx("p",{className:l||"text-sm md:text-base font-semibold",children:o}),u.jsxs("div",{className:"flex flex-row gap-4 mt-2",children:[u.jsx("div",{className:"relative w-full md:max-w-[140px]",children:u.jsx(Dn,{value:b!==void 0?{value:f[b],label:f[b]}:null,options:f.map(G=>({value:G,label:G})),placeholder:"Month*",onChange:B,styles:ie(ne),isSearchable:d})}),u.jsx("div",{className:"relative w-full md:max-w-[80px]",children:u.jsx(Vt,{type:"text",inputMode:"numeric",required:!0,placeholder:"Day",value:p!==void 0?p:"",onChange:G=>O(G.target.value),disabled:b===void 0,max:I,min:1,className:`text-xs md:text-sm border-grayWarm-300 rounded-lg h-10${ue?" border-error-500":""}`,id:`date-dropdowns-day-${r}`,name:"date-dropdowns-day"})}),u.jsx("div",{className:"relative w-full md:max-w-[140px]",children:u.jsx(Dn,{value:E!==void 0?{value:E.toString(),label:E.toString()}:null,options:C.map(G=>({value:G.toString(),label:G.toString()})),placeholder:"Year*",onChange:re,styles:ie(z),isSearchable:!0})})]})]})};var Kt={},Mr={};Object.defineProperty(Mr,"__esModule",{value:!0});Mr.Gender=void 0;var ri;(function(e){e.MALE="male",e.FEMALE="female",e.DEFAULT=""})(ri||(Mr.Gender=ri={}));var Or={};Object.defineProperty(Or,"__esModule",{value:!0});Or.CustomerResourceType=void 0;var ai;(function(e){e.STORAGE="storage",e.HOSTING="hosting",e.DNS="dns",e.AUTHENTICATION="authentication",e.AUTHORIZATION="authorization"})(ai||(Or.CustomerResourceType=ai={}));var bl={};Object.defineProperty(bl,"__esModule",{value:!0});var tn={};Object.defineProperty(tn,"__esModule",{value:!0});tn.TravelerType=tn.FlightOfferSegmentLegType=tn.FlightOfferDataSource=void 0;var oi;(function(e){e.Amadeus="amadeus"})(oi||(tn.FlightOfferDataSource=oi={}));var ii;(function(e){e.Inbound="inbound",e.Outbound="outbound"})(ii||(tn.FlightOfferSegmentLegType=ii={}));var si;(function(e){e.ADULT="adult",e.CHILD="child",e.INFANT="infant"})(si||(tn.TravelerType=si={}));var Fr={};Object.defineProperty(Fr,"__esModule",{value:!0});Fr.OTPAction=void 0;var li;(function(e){e.EMAILED="emailed",e.TEXTED="texted"})(li||(Fr.OTPAction=li={}));var hl={};Object.defineProperty(hl,"__esModule",{value:!0});var vl={};Object.defineProperty(vl,"__esModule",{value:!0});var yl={};Object.defineProperty(yl,"__esModule",{value:!0});var Cl={};Object.defineProperty(Cl,"__esModule",{value:!0});var xl={};Object.defineProperty(xl,"__esModule",{value:!0});var Il={};Object.defineProperty(Il,"__esModule",{value:!0});var Sl={};Object.defineProperty(Sl,"__esModule",{value:!0});var Al={};Object.defineProperty(Al,"__esModule",{value:!0});var wl={};Object.defineProperty(wl,"__esModule",{value:!0});var El={};Object.defineProperty(El,"__esModule",{value:!0});var Rl={};Object.defineProperty(Rl,"__esModule",{value:!0});var Ja={};Object.defineProperty(Ja,"__esModule",{value:!0});Ja.mapIdentityPartners=Pm;function Pm(e){var t;return((t=e==null?void 0:e.partners)!==null&&t!==void 0?t:[]).map(n=>{var a;return{clientId:n.client_id,airlineName:n.airline_name,airlineDomain:n.airline_domain,providerId:n.provider_id,supportedScopes:(a=n.supported_scopes)!==null&&a!==void 0?a:[]}})}var Nl={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PAIR_COPY=e.SCOPE_COPY=void 0,e.displayRows=t,e.SCOPE_COPY={"profile.read":{label:"View your profile",detail:"Name and contact details"},"profile.write":{label:"Update your profile",detail:"Including your profile photo"},"preferences.read":{label:"View your travel preferences",detail:"Seat, meal, and assistance preferences; language and currency"},"preferences.write":{label:"Update your travel preferences"},"passengers.read":{label:"View your saved travelers",detail:"Including travel document details"},"passengers.write":{label:"Add, update, and remove saved travelers"},"payments.read":{label:"View saved payment methods",detail:"Card brand and last 4 digits only — never full numbers"},"payments.write":{label:"Update or remove saved payment methods",detail:"Cannot add new cards"},"loyalty.read":{label:"View your loyalty status",detail:"Your membership in that airline's loyalty program"},"bookings.read":{label:"View your bookings and trip history"},"bookings.write":{label:"Search and book flights",detail:"Bookings are charged to a saved payment method"}},e.PAIR_COPY={profile:{label:"View and manage your profile",detail:"Name, contact details, and profile photo"},preferences:{label:"View and manage your travel preferences",detail:"Update seat, meal, and assistance preferences you’ve saved"},passengers:{label:"View and manage saved travelers",detail:"Add, update, and remove travelers — including travel document details"},payments:{label:"View and manage saved payment methods",detail:"Card brand and last 4 digits only — never full numbers. Can’t add new cards."}};function t(n){const a=new Set(n),r=new Set,o=[];for(const i of n){const[s]=i.split("."),l=e.PAIR_COPY[s],c=a.has(`${s}.read`)&&a.has(`${s}.write`);if(l&&c){r.has(s)||(r.add(s),o.push(Object.assign(Object.assign({},l),{key:s,scopes:[`${s}.read`,`${s}.write`]})));continue}const d=e.SCOPE_COPY[i];o.push(d?Object.assign(Object.assign({},d),{key:i,scopes:[i]}):{label:i,key:i,scopes:[i]})}return o}})(Nl);var Gl={};Object.defineProperty(Gl,"__esModule",{value:!0});(function(e){var t=nr&&nr.__createBinding||(Object.create?function(a,r,o,i){i===void 0&&(i=o);var s=Object.getOwnPropertyDescriptor(r,o);(!s||("get"in s?!r.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return r[o]}}),Object.defineProperty(a,i,s)}:function(a,r,o,i){i===void 0&&(i=o),a[i]=r[o]}),n=nr&&nr.__exportStar||function(a,r){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(r,o)&&t(r,a,o)};Object.defineProperty(e,"__esModule",{value:!0}),n(Mr,e),n(Or,e),n(bl,e),n(tn,e),n(Fr,e),n(hl,e),n(vl,e),n(yl,e),n(Cl,e),n(xl,e),n(Il,e),n(Sl,e),n(Al,e),n(wl,e),n(El,e),n(Rl,e),n(Ja,e),n(Nl,e),n(Gl,e)})(Kt);const ya=[{value:"US",label:"United States"},{value:"CA",label:"Canada"},{value:"GB",label:"United Kingdom"},{value:"AU",label:"Australia"},{value:"AF",label:"Afghanistan"},{value:"AX",label:"Åland Islands"},{value:"AL",label:"Albania"},{value:"DZ",label:"Algeria"},{value:"AS",label:"American Samoa"},{value:"AD",label:"Andorra"},{value:"AO",label:"Angola"},{value:"AI",label:"Anguilla"},{value:"AQ",label:"Antarctica"},{value:"AG",label:"Antigua and Barbuda"},{value:"AR",label:"Argentina"},{value:"AM",label:"Armenia"},{value:"AW",label:"Aruba"},{value:"AT",label:"Austria"},{value:"AZ",label:"Azerbaijan"},{value:"BS",label:"Bahamas"},{value:"BH",label:"Bahrain"},{value:"BD",label:"Bangladesh"},{value:"BB",label:"Barbados"},{value:"BY",label:"Belarus"},{value:"BE",label:"Belgium"},{value:"BZ",label:"Belize"},{value:"BJ",label:"Benin"},{value:"BM",label:"Bermuda"},{value:"BT",label:"Bhutan"},{value:"BO",label:"Bolivia"},{value:"BQ",label:"Bonaire, Sint Eustatius and Saba"},{value:"BA",label:"Bosnia and Herzegovina"},{value:"BW",label:"Botswana"},{value:"BV",label:"Bouvet Island"},{value:"BR",label:"Brazil"},{value:"IO",label:"British Indian Ocean Territory"},{value:"BN",label:"Brunei Darussalam"},{value:"BG",label:"Bulgaria"},{value:"BF",label:"Burkina Faso"},{value:"BI",label:"Burundi"},{value:"CV",label:"Cabo Verde"},{value:"KH",label:"Cambodia"},{value:"CM",label:"Cameroon"},{value:"KY",label:"Cayman Islands"},{value:"CF",label:"Central African Republic"},{value:"TD",label:"Chad"},{value:"CL",label:"Chile"},{value:"CN",label:"China"},{value:"CX",label:"Christmas Island"},{value:"CC",label:"Cocos (Keeling) Islands"},{value:"CO",label:"Colombia"},{value:"KM",label:"Comoros"},{value:"CG",label:"Congo"},{value:"CD",label:"Congo, Democratic Republic of the"},{value:"CK",label:"Cook Islands"},{value:"CR",label:"Costa Rica"},{value:"CI",label:"Côte d'Ivoire"},{value:"HR",label:"Croatia"},{value:"CU",label:"Cuba"},{value:"CW",label:"Curaçao"},{value:"CY",label:"Cyprus"},{value:"CZ",label:"Czechia"},{value:"DK",label:"Denmark"},{value:"DJ",label:"Djibouti"},{value:"DM",label:"Dominica"},{value:"DO",label:"Dominican Republic"},{value:"EC",label:"Ecuador"},{value:"EG",label:"Egypt"},{value:"SV",label:"El Salvador"},{value:"GQ",label:"Equatorial Guinea"},{value:"ER",label:"Eritrea"},{value:"EE",label:"Estonia"},{value:"SZ",label:"Eswatini"},{value:"ET",label:"Ethiopia"},{value:"FK",label:"Falkland Islands (Malvinas)"},{value:"FO",label:"Faroe Islands"},{value:"FJ",label:"Fiji"},{value:"FI",label:"Finland"},{value:"FR",label:"France"},{value:"GF",label:"French Guiana"},{value:"PF",label:"French Polynesia"},{value:"TF",label:"French Southern Territories"},{value:"GA",label:"Gabon"},{value:"GM",label:"Gambia"},{value:"GE",label:"Georgia"},{value:"DE",label:"Germany"},{value:"GH",label:"Ghana"},{value:"GI",label:"Gibraltar"},{value:"GR",label:"Greece"},{value:"GL",label:"Greenland"},{value:"GD",label:"Grenada"},{value:"GP",label:"Guadeloupe"},{value:"GU",label:"Guam"},{value:"GT",label:"Guatemala"},{value:"GG",label:"Guernsey"},{value:"GN",label:"Guinea"},{value:"GW",label:"Guinea-Bissau"},{value:"GY",label:"Guyana"},{value:"HT",label:"Haiti"},{value:"HM",label:"Heard Island and McDonald Islands"},{value:"VA",label:"Holy See"},{value:"HN",label:"Honduras"},{value:"HK",label:"Hong Kong"},{value:"HU",label:"Hungary"},{value:"IS",label:"Iceland"},{value:"IN",label:"India"},{value:"ID",label:"Indonesia"},{value:"IR",label:"Iran, Islamic Republic of"},{value:"IQ",label:"Iraq"},{value:"IE",label:"Ireland"},{value:"IM",label:"Isle of Man"},{value:"IL",label:"Israel"},{value:"IT",label:"Italy"},{value:"JM",label:"Jamaica"},{value:"JP",label:"Japan"},{value:"JE",label:"Jersey"},{value:"JO",label:"Jordan"},{value:"KZ",label:"Kazakhstan"},{value:"KE",label:"Kenya"},{value:"KI",label:"Kiribati"},{value:"KP",label:"Korea, Democratic People's Republic of"},{value:"KR",label:"Korea, Republic of"},{value:"KW",label:"Kuwait"},{value:"KG",label:"Kyrgyzstan"},{value:"LA",label:"Lao People's Democratic Republic"},{value:"LV",label:"Latvia"},{value:"LB",label:"Lebanon"},{value:"LS",label:"Lesotho"},{value:"LR",label:"Liberia"},{value:"LY",label:"Libya"},{value:"LI",label:"Liechtenstein"},{value:"LT",label:"Lithuania"},{value:"LU",label:"Luxembourg"},{value:"MO",label:"Macao"},{value:"MG",label:"Madagascar"},{value:"MW",label:"Malawi"},{value:"MY",label:"Malaysia"},{value:"MV",label:"Maldives"},{value:"ML",label:"Mali"},{value:"MT",label:"Malta"},{value:"MH",label:"Marshall Islands"},{value:"MQ",label:"Martinique"},{value:"MR",label:"Mauritania"},{value:"MU",label:"Mauritius"},{value:"YT",label:"Mayotte"},{value:"MX",label:"Mexico"},{value:"FM",label:"Micronesia, Federated States of"},{value:"MD",label:"Moldova, Republic of"},{value:"MC",label:"Monaco"},{value:"MN",label:"Mongolia"},{value:"ME",label:"Montenegro"},{value:"MS",label:"Montserrat"},{value:"MA",label:"Morocco"},{value:"MZ",label:"Mozambique"},{value:"MM",label:"Myanmar"},{value:"NA",label:"Namibia"},{value:"NR",label:"Nauru"},{value:"NP",label:"Nepal"},{value:"NL",label:"Netherlands"},{value:"NC",label:"New Caledonia"},{value:"NZ",label:"New Zealand"},{value:"NI",label:"Nicaragua"},{value:"NE",label:"Niger"},{value:"NG",label:"Nigeria"},{value:"NU",label:"Niue"},{value:"NF",label:"Norfolk Island"},{value:"MK",label:"North Macedonia"},{value:"MP",label:"Northern Mariana Islands"},{value:"NO",label:"Norway"},{value:"OM",label:"Oman"},{value:"PK",label:"Pakistan"},{value:"PW",label:"Palau"},{value:"PS",label:"Palestine, State of"},{value:"PA",label:"Panama"},{value:"PG",label:"Papua New Guinea"},{value:"PY",label:"Paraguay"},{value:"PE",label:"Peru"},{value:"PH",label:"Philippines"},{value:"PN",label:"Pitcairn"},{value:"PL",label:"Poland"},{value:"PT",label:"Portugal"},{value:"PR",label:"Puerto Rico"},{value:"QA",label:"Qatar"},{value:"RE",label:"Réunion"},{value:"RO",label:"Romania"},{value:"RU",label:"Russian Federation"},{value:"RW",label:"Rwanda"},{value:"BL",label:"Saint Barthélemy"},{value:"SH",label:"Saint Helena, Ascension and Tristan da Cunha"},{value:"KN",label:"Saint Kitts and Nevis"},{value:"LC",label:"Saint Lucia"},{value:"MF",label:"Saint Martin (French part)"},{value:"PM",label:"Saint Pierre and Miquelon"},{value:"VC",label:"Saint Vincent and the Grenadines"},{value:"WS",label:"Samoa"},{value:"SM",label:"San Marino"},{value:"ST",label:"Sao Tome and Principe"},{value:"SA",label:"Saudi Arabia"},{value:"SN",label:"Senegal"},{value:"RS",label:"Serbia"},{value:"SC",label:"Seychelles"},{value:"SL",label:"Sierra Leone"},{value:"SG",label:"Singapore"},{value:"SX",label:"Sint Maarten (Dutch part)"},{value:"SK",label:"Slovakia"},{value:"SI",label:"Slovenia"},{value:"SB",label:"Solomon Islands"},{value:"SO",label:"Somalia"},{value:"ZA",label:"South Africa"},{value:"GS",label:"South Georgia and the South Sandwich Islands"},{value:"SS",label:"South Sudan"},{value:"ES",label:"Spain"},{value:"LK",label:"Sri Lanka"},{value:"SD",label:"Sudan"},{value:"SR",label:"Suriname"},{value:"SJ",label:"Svalbard and Jan Mayen"},{value:"SE",label:"Sweden"},{value:"CH",label:"Switzerland"},{value:"SY",label:"Syrian Arab Republic"},{value:"TW",label:"Taiwan, Province of China"},{value:"TJ",label:"Tajikistan"},{value:"TZ",label:"Tanzania, United Republic of"},{value:"TH",label:"Thailand"},{value:"TL",label:"Timor-Leste"},{value:"TG",label:"Togo"},{value:"TK",label:"Tokelau"},{value:"TO",label:"Tonga"},{value:"TT",label:"Trinidad and Tobago"},{value:"TN",label:"Tunisia"},{value:"TR",label:"Turkey"},{value:"TM",label:"Turkmenistan"},{value:"TC",label:"Turks and Caicos Islands"},{value:"TV",label:"Tuvalu"},{value:"UG",label:"Uganda"},{value:"UA",label:"Ukraine"},{value:"AE",label:"United Arab Emirates"},{value:"UM",label:"United States Minor Outlying Islands"},{value:"UY",label:"Uruguay"},{value:"UZ",label:"Uzbekistan"},{value:"VU",label:"Vanuatu"},{value:"VE",label:"Venezuela, Bolivarian Republic of"},{value:"VN",label:"Viet Nam"},{value:"VG",label:"Virgin Islands, British"},{value:"VI",label:"Virgin Islands, U.S."},{value:"WF",label:"Wallis and Futuna"},{value:"EH",label:"Western Sahara"},{value:"YE",label:"Yemen"},{value:"ZM",label:"Zambia"},{value:"ZW",label:"Zimbabwe"}],jm=({firstName:e,setFirstName:t,middleName:n,setMiddleName:a,lastName:r,setLastName:o,gender:i,setGender:s,knownTravelerNumber:l,setKnownTravelerNumber:c,dateOfBirth:d,setDateOfBirth:f,travelerType:y,departureDate:C,uniqueId:b,ktnAdornment:h,additionalFields:p,errorState:x=!1,errorMessage:E,firstNameError:R=!1,firstNameErrorMessage:A,middleNameError:I=!1,middleNameErrorMessage:M,lastNameError:B=!1,lastNameErrorMessage:O,showPassportFields:re=!1,passportNumber:ne,setPassportNumber:ue,issuingCountry:z,setIssuingCountry:ie,expirationDate:G,setExpirationDate:T,passportErrorState:V=!1,passportErrorMessage:$})=>{const K=Object.values(Kt.Gender).filter(_=>_!==Kt.Gender.DEFAULT).map(_=>({value:_.toString(),label:_.charAt(0).toUpperCase()+_.slice(1)})),we=_=>{_&&(_.value===Kt.Gender.MALE?s(Kt.Gender.MALE):_.value===Kt.Gender.FEMALE&&s(Kt.Gender.FEMALE))};return u.jsxs("div",{children:[u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3 place-content-center",children:[u.jsxs("div",{className:"md:order-none order-1",children:[u.jsx(Vt,{type:"text",required:!0,placeholder:"First name",value:e,onChange:_=>t(_.target.value),className:`text-xs md:text-sm${R?" border-error-500":""}`,id:`passenger-first-name-${b}`,name:`passenger-first-name-${b}`}),R&&A&&u.jsx("p",{className:"text-error-700 text-sm mt-1",children:A})]}),u.jsxs("div",{className:"md:order-none order-2",children:[u.jsx(Vt,{type:"text",required:!1,placeholder:"Middle name",value:n,onChange:_=>a(_.target.value),className:`text-xs md:text-sm${I?" border-error-500":""}`,id:`passenger-middle-name-${b}`,name:`passenger-middle-name-${b}`}),I&&M&&u.jsx("p",{className:"text-error-700 text-sm mt-1",children:M})]}),u.jsxs("div",{className:"md:order-none order-3",children:[u.jsx(Vt,{type:"text",required:!0,placeholder:"Last name",value:r,onChange:_=>o(_.target.value),className:`text-xs md:text-sm${B?" border-error-500":""}`,id:`passenger-last-name-${b}`,name:`passenger-last-name-${b}`}),B&&O&&u.jsx("p",{className:"text-error-700 text-sm mt-1",children:O})]})]}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 place-content-center mt-3",children:[u.jsx("div",{className:"md:order-none order-1",children:u.jsx(Dn,{value:K.find(_=>_.value===i)||null,placeholder:"Gender",options:K,onChange:we,"data-testid":"gender-dropdown"})}),u.jsxs("div",{className:"md:order-none order-2 relative",children:[u.jsx(Vt,{type:"text",placeholder:"Known traveler number",value:l,onChange:_=>c(_.target.value),className:"text-xs md:text-sm pr-10",id:`passenger-known-traveler-number-${b}`,name:`passenger-known-traveler-number-${b}`}),h]})]}),p,u.jsx(va,{value:d,onChange:f,travelerType:y,departureDate:C,uniqueId:b}),re&&(()=>{const _=V&&!(ne||"").trim(),L=V&&!(z||"").trim(),Z=V&&!(G||"").trim(),ae=L?{control:(X,m)=>({...X,borderRadius:"0.5rem",borderColor:"#EF4444",boxShadow:"none","&:hover":{borderColor:"#EF4444"},minHeight:"2.5rem",height:"2.5rem",cursor:"pointer"})}:{};return u.jsxs("div",{className:"mt-7",children:[u.jsx("p",{className:"text-sm md:text-base font-semibold",children:"Passport information"}),V&&$&&u.jsx("p",{className:"text-error-700 text-sm mt-1",children:$}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 mt-2",children:[u.jsx(Vt,{type:"text",placeholder:"Passport number",required:!0,value:ne||"",onChange:X=>ue==null?void 0:ue(X.target.value),className:`text-xs md:text-sm${_?" border-error-500":""}`,id:`passport-number-${b}`,name:`passport-number-${b}`}),u.jsx(Dn,{value:z&&ya.find(X=>X.value===z)||null,placeholder:"Issuing country",options:ya,isSearchable:!0,onChange:X=>ie==null?void 0:ie((X==null?void 0:X.value)||""),styles:ae})]}),u.jsx(va,{value:G,onChange:X=>T==null?void 0:T(X),label:"Expiration date",labelClassName:"text-sm font-medium text-grayWarm-600",className:"mt-4",yearDirection:"future",uniqueId:b?`passport-exp-${b}`:void 0,errorState:Z})]})})(),x&&u.jsx("div",{className:"text-error-700 text-sm mt-3",children:E||"Error saving passenger. Please try again."})]})},Tm=w.createContext({}),Pl=!0;function km({baseColor:e,highlightColor:t,width:n,height:a,borderRadius:r,circle:o,direction:i,duration:s,enableAnimation:l=Pl,customHighlightBackground:c}){const d={};return i==="rtl"&&(d["--animation-direction"]="reverse"),typeof s=="number"&&(d["--animation-duration"]=`${s}s`),l||(d["--pseudo-element-display"]="none"),(typeof n=="string"||typeof n=="number")&&(d.width=n),(typeof a=="string"||typeof a=="number")&&(d.height=a),(typeof r=="string"||typeof r=="number")&&(d.borderRadius=r),o&&(d.borderRadius="50%"),typeof e<"u"&&(d["--base-color"]=e),typeof t<"u"&&(d["--highlight-color"]=t),typeof c=="string"&&(d["--custom-highlight-background"]=c),d}function wt({count:e=1,wrapper:t,className:n,containerClassName:a,containerTestId:r,circle:o=!1,style:i,...s}){var l,c,d;const f=w.useContext(Tm),y={...s};for(const[R,A]of Object.entries(s))typeof A>"u"&&delete y[R];const C={...f,...y,circle:o},b={...i,...km(C)};let h="react-loading-skeleton";n&&(h+=` ${n}`);const p=(l=C.inline)!==null&&l!==void 0?l:!1,x=[],E=Math.ceil(e);for(let R=0;R<E;R++){let A=b;if(E>e&&R===E-1){const M=(c=A.width)!==null&&c!==void 0?c:"100%",B=e%1,O=typeof M=="number"?M*B:`calc(${M} * ${B})`;A={...A,width:O}}const I=w.createElement("span",{className:h,style:A,key:R},"");p?x.push(I):x.push(w.createElement(w.Fragment,{key:R},I,w.createElement("br",null)))}return w.createElement("span",{className:a,"data-testid":r,"aria-live":"polite","aria-busy":(d=C.enableAnimation)!==null&&d!==void 0?d:Pl},t?x.map((R,A)=>w.createElement(t,{key:A},R)):x)}const Mm=({children:e,showFooter:t=!1})=>u.jsxs("div",{children:[u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3 place-content-center",children:[u.jsx(wt,{height:40,borderRadius:8}),u.jsx(wt,{height:40,borderRadius:8}),u.jsx(wt,{height:40,borderRadius:8})]}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 place-content-center mt-3",children:[u.jsx(wt,{height:44,borderRadius:8}),u.jsx(wt,{height:40,borderRadius:8})]}),e,u.jsxs("div",{className:"mt-7",children:[u.jsx(wt,{height:20,width:100,borderRadius:4}),u.jsxs("div",{className:"flex flex-row gap-4 mt-2",children:[u.jsx("div",{className:"w-full md:max-w-[140px]",children:u.jsx(wt,{height:44,borderRadius:8})}),u.jsx("div",{className:"w-full md:max-w-[80px]",children:u.jsx(wt,{height:40,borderRadius:8})}),u.jsx("div",{className:"w-full md:max-w-[140px]",children:u.jsx(wt,{height:44,borderRadius:8})})]})]}),t&&u.jsxs("div",{className:"flex gap-3 mt-8 pt-4 border-t border-grayWarm-200",children:[u.jsx(wt,{height:40,borderRadius:8,containerClassName:"flex-1"}),u.jsx(wt,{height:40,borderRadius:8,containerClassName:"flex-1"})]})]}),mt=({size:e=20,title:t,children:n,...a})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",role:t?"img":void 0,"aria-hidden":t?void 0:!0,...a,children:[t&&u.jsx("title",{children:t}),n]}),Ua=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M17 8.99994C17 8.48812 16.8047 7.9763 16.4142 7.58579C16.0237 7.19526 15.5118 7 15 7M15 15C18.3137 15 21 12.3137 21 9C21 5.68629 18.3137 3 15 3C11.6863 3 9 5.68629 9 9C9 9.27368 9.01832 9.54308 9.05381 9.80704C9.11218 10.2412 9.14136 10.4583 9.12172 10.5956C9.10125 10.7387 9.0752 10.8157 9.00469 10.9419C8.937 11.063 8.81771 11.1823 8.57913 11.4209L3.46863 16.5314C3.29568 16.7043 3.2092 16.7908 3.14736 16.8917C3.09253 16.9812 3.05213 17.0787 3.02763 17.1808C3 17.2959 3 17.4182 3 17.6627V19.4C3 19.9601 3 20.2401 3.10899 20.454C3.20487 20.6422 3.35785 20.7951 3.54601 20.891C3.75992 21 4.03995 21 4.6 21H7V19H9V17H11L12.5791 15.4209C12.8177 15.1823 12.937 15.063 13.0581 14.9953C13.1843 14.9248 13.2613 14.8987 13.4044 14.8783C13.5417 14.8586 13.7588 14.8878 14.193 14.9462C14.4569 14.9817 14.7263 15 15 15Z"})}),jl=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M8 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V8M8 21H7.8C6.11984 21 5.27976 21 4.63803 20.673C4.07354 20.3854 3.6146 19.9265 3.32698 19.362C3 18.7202 3 17.8802 3 16.2V16M21 8V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H16M21 16V16.2C21 17.8802 21 18.7202 20.673 19.362C20.3854 19.9265 19.9265 20.3854 19.362 20.673C18.7202 21 17.8802 21 16.2 21H16M7.5 8V9.5M16.5 8V9.5M11 12.6001C11.8 12.6001 12.5 11.9001 12.5 11.1001V8M15.2002 15.2C13.4002 17 10.5002 17 8.7002 15.2"})}),Tl=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M5.80688 18.5304C5.82459 18.5005 5.84273 18.4709 5.8613 18.4413C7.2158 16.2881 7.99991 13.7418 7.99991 11C7.99991 8.79086 9.79077 7 11.9999 7C14.209 7 15.9999 8.79086 15.9999 11C15.9999 12.017 15.9307 13.0186 15.7966 14M13.6792 20.8436C14.2909 19.6226 14.7924 18.3369 15.1707 17M19.0097 18.132C19.6547 15.8657 20 13.4732 20 11C20 6.58172 16.4183 3 12 3C10.5429 3 9.17669 3.38958 8 4.07026M3 15.3641C3.64066 14.0454 4 12.5646 4 11C4 9.54285 4.38958 8.17669 5.07026 7M11.9999 11C11.9999 14.5172 10.9911 17.7988 9.24707 20.5712"})}),kl=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M18 9V3.6C18 3.03995 18 2.75992 17.891 2.54601C17.7951 2.35785 17.6422 2.20487 17.454 2.10899C17.2401 2 16.9601 2 16.4 2H7.6C7.03995 2 6.75992 2 6.54601 2.10899C6.35785 2.20487 6.20487 2.35785 6.10899 2.54601C6 2.75992 6 3.03995 6 3.6V9M10 6V5M14 6V5M8.8 22H15.2C16.8802 22 17.7202 22 18.362 21.673C18.9265 21.3854 19.3854 20.9265 19.673 20.362C20 19.7202 20 18.8802 20 17.2V12.2C20 11.0799 20 10.5198 19.782 10.092C19.5903 9.71569 19.2843 9.40973 18.908 9.21799C18.4802 9 17.9201 9 16.8 9H7.2C6.0799 9 5.51984 9 5.09202 9.21799C4.71569 9.40973 4.40973 9.71569 4.21799 10.092C4 10.5198 4 11.0799 4 12.2V17.2C4 18.8802 4 19.7202 4.32698 20.362C4.6146 20.9265 5.07354 21.3854 5.63803 21.673C6.27976 22 7.11984 22 8.8 22Z"})}),Ml=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M3 16V7.2C3 6.07989 3 5.51984 3.21799 5.09202C3.40973 4.71569 3.71569 4.40973 4.09202 4.21799C4.51984 4 5.0799 4 6.2 4H17.8C18.9201 4 19.4802 4 19.908 4.21799C20.2843 4.40973 20.5903 4.71569 20.782 5.09202C21 5.51984 21 6.0799 21 7.2V16H15.6627C15.4182 16 15.2959 16 15.1808 16.0276C15.0787 16.0521 14.9812 16.0925 14.8917 16.1474C14.7908 16.2092 14.7043 16.2957 14.5314 16.4686L14.4686 16.5314C14.2957 16.7043 14.2092 16.7908 14.1083 16.8526C14.0188 16.9075 13.9213 16.9479 13.8192 16.9724C13.7041 17 13.5818 17 13.3373 17H10.6627C10.4182 17 10.2959 17 10.1808 16.9724C10.0787 16.9479 9.98119 16.9075 9.89172 16.8526C9.7908 16.7908 9.70432 16.7043 9.53137 16.5314L9.46863 16.4686C9.29568 16.2957 9.2092 16.2092 9.10828 16.1474C9.01881 16.0925 8.92127 16.0521 8.81923 16.0276C8.70414 16 8.58185 16 8.33726 16H3ZM3 16C2.44772 16 2 16.4477 2 17V17.3333C2 17.9533 2 18.2633 2.06815 18.5176C2.25308 19.2078 2.79218 19.7469 3.48236 19.9319C3.7367 20 4.04669 20 4.66667 20H19.3333C19.9533 20 20.2633 20 20.5176 19.9319C21.2078 19.7469 21.7469 19.2078 21.9319 18.5176C22 18.2633 22 17.9533 22 17.3333C22 17.0233 22 16.8683 21.9659 16.7412C21.8735 16.3961 21.6039 16.1265 21.2588 16.0341C21.1317 16 20.9767 16 20.6667 16H20"})}),Ol=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M9 11.4999L11 13.4999L15.5 8.99987M20 11.9999C20 16.9083 14.646 20.4783 12.698 21.6147C12.4766 21.7439 12.3659 21.8085 12.2097 21.842C12.0884 21.868 11.9116 21.868 11.7903 21.842C11.6341 21.8085 11.5234 21.7439 11.302 21.6147C9.35396 20.4783 4 16.9083 4 11.9999V7.21747C4 6.41796 4 6.0182 4.13076 5.67457C4.24627 5.37101 4.43398 5.10015 4.67766 4.8854C4.9535 4.64231 5.3278 4.50195 6.0764 4.22122L11.4382 2.21054C11.6461 2.13258 11.75 2.0936 11.857 2.07815C11.9518 2.06444 12.0482 2.06444 12.143 2.07815C12.25 2.0936 12.3539 2.13258 12.5618 2.21054L17.9236 4.22122C18.6722 4.50195 19.0465 4.64231 19.3223 4.8854C19.566 5.10015 19.7537 5.37101 19.8692 5.67457C20 6.0182 20 6.41796 20 7.21747V11.9999Z"})}),$a=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M16 6V5.2C16 4.0799 16 3.51984 15.782 3.09202C15.5903 2.71569 15.2843 2.40973 14.908 2.21799C14.4802 2 13.9201 2 12.8 2H11.2C10.0799 2 9.51984 2 9.09202 2.21799C8.71569 2.40973 8.40973 2.71569 8.21799 3.09202C8 3.51984 8 4.0799 8 5.2V6M10 11.5V16.5M14 11.5V16.5M3 6H21M19 6V17.2C19 18.8802 19 19.7202 18.673 20.362C18.3854 20.9265 17.9265 21.3854 17.362 21.673C16.7202 22 15.8802 22 14.2 22H9.8C8.11984 22 7.27976 22 6.63803 21.673C6.07354 21.3854 5.6146 20.9265 5.32698 20.362C5 19.7202 5 18.8802 5 17.2V6"})}),Fl=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M12 5V19M5 12H19"})}),Om=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M6.5 19C4.01472 19 2 16.9853 2 14.5C2 12.1564 3.79151 10.2313 6.07974 10.0194C6.54781 7.17213 9.02024 5 12 5C14.9798 5 17.4522 7.17213 17.9203 10.0194C20.2085 10.2313 22 12.1564 22 14.5C22 16.9853 19.9853 19 17.5 19C13.1102 19 10.3433 19 6.5 19Z"})}),Br=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M2 7L10.1649 12.7154C10.8261 13.1783 11.1567 13.4097 11.5163 13.4993C11.8339 13.5785 12.1661 13.5785 12.4837 13.4993C12.8433 13.4097 13.1739 13.1783 13.8351 12.7154L22 7M6.8 20H17.2C18.8802 20 19.7202 20 20.362 19.673C20.9265 19.3854 21.3854 18.9265 21.673 18.362C22 17.7202 22 16.8802 22 15.2V8.8C22 7.11984 22 6.27976 21.673 5.63803C21.3854 5.07354 20.9265 4.6146 20.362 4.32698C19.7202 4 18.8802 4 17.2 4H6.8C5.11984 4 4.27976 4 3.63803 4.32698C3.07354 4.6146 2.6146 5.07354 2.32698 5.63803C2 6.27976 2 7.11984 2 8.8V15.2C2 16.8802 2 17.7202 2.32698 18.362C2.6146 18.9265 3.07354 19.3854 3.63803 19.673C4.27976 20 5.11984 20 6.8 20Z"})}),Bl=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M18 6L6 18M6 6L18 18"})}),Qa=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M7.5 12L10.5 15L16.5 9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"})}),En=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M12 8V12M12 16H12.01M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"})}),Fm=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M12 12H12.005M17 12H17.005M7 12H7.005M5.2 7H18.8C19.9201 7 20.4802 7 20.908 7.21799C21.2843 7.40973 21.5903 7.71569 21.782 8.09202C22 8.51984 22 9.0799 22 10.2V13.8C22 14.9201 22 15.4802 21.782 15.908C21.5903 16.2843 21.2843 16.5903 20.908 16.782C20.4802 17 19.9201 17 18.8 17H5.2C4.0799 17 3.51984 17 3.09202 16.782C2.71569 16.5903 2.40973 16.2843 2.21799 15.908C2 15.4802 2 14.9201 2 13.8V10.2C2 9.0799 2 8.51984 2.21799 8.09202C2.40973 7.71569 2.71569 7.40973 3.09202 7.21799C3.51984 7 4.0799 7 5.2 7ZM12.25 12C12.25 12.1381 12.1381 12.25 12 12.25C11.8619 12.25 11.75 12.1381 11.75 12C11.75 11.8619 11.8619 11.75 12 11.75C12.1381 11.75 12.25 11.8619 12.25 12ZM17.25 12C17.25 12.1381 17.1381 12.25 17 12.25C16.8619 12.25 16.75 12.1381 16.75 12C16.75 11.8619 16.8619 11.75 17 11.75C17.1381 11.75 17.25 11.8619 17.25 12ZM7.25 12C7.25 12.1381 7.13807 12.25 7 12.25C6.86193 12.25 6.75 12.1381 6.75 12C6.75 11.8619 6.86193 11.75 7 11.75C7.13807 11.75 7.25 11.8619 7.25 12Z"})}),Vl=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M15 3H16.2C17.8802 3 18.7202 3 19.362 3.32698C19.9265 3.6146 20.3854 4.07354 20.673 4.63803C21 5.27976 21 6.11984 21 7.8V16.2C21 17.8802 21 18.7202 20.673 19.362C20.3854 19.9265 19.9265 20.3854 19.362 20.673C18.7202 21 17.8802 21 16.2 21H15M10 7L15 12M15 12L10 17M15 12L3 12"})});function Et(e){if(e)try{e.focus()}catch(t){if(t instanceof DOMException&&t.name==="SecurityError")return;throw t}}const Bm=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),ui=e=>Array.from(e.querySelectorAll(Bm)),Mn=[],Vm=()=>u.jsx("svg",{className:"w-4 h-4 text-grayWarm-600",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),pn=e=>e.isOpen?u.jsx(Dm,{...e}):null,Dm=({onClose:e,title:t,children:n,footer:a,maxWidth:r="max-w-screen-sm",maxWidthPx:o,footerHasBorder:i=!1,hideCloseButton:s=!1,allowOverflow:l=!1,header:c="bar"})=>{const d=w.useRef(null),f=w.useId(),y=w.useRef(e);y.current=e;const C=w.useRef(!s);C.current=!s;const[b]=w.useState(()=>typeof document>"u"?null:document.activeElement);w.useEffect(()=>{const p=d.current;if(!p)return;const x=Symbol("modal");Mn.push(x),p.contains(document.activeElement)||Et(ui(p)[0]??p);const E=R=>{if(Mn[Mn.length-1]!==x||R.defaultPrevented)return;if(R.key==="Escape"){C.current&&y.current();return}if(R.key!=="Tab")return;const A=ui(p);if(A.length===0){R.preventDefault(),Et(p);return}const I=A[0],M=A[A.length-1],B=document.activeElement,O=p.contains(B);R.shiftKey&&(!O||B===I)?(R.preventDefault(),Et(M)):!R.shiftKey&&(!O||B===M)&&(R.preventDefault(),Et(I))};return document.addEventListener("keydown",E),()=>{document.removeEventListener("keydown",E);const R=Mn.indexOf(x);R!==-1&&Mn.splice(R,1),b&&b!==document.body&&b.isConnected&&Et(b)}},[]);const h=c==="bar";return u.jsxs("div",{className:"fixed inset-0 z-[110] flex items-center justify-center",children:[u.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 transition-opacity",onClick:s?void 0:e,"data-testid":"modal-backdrop"}),u.jsxs("div",{ref:d,role:"dialog","aria-modal":"true","aria-labelledby":h&&t?f:void 0,"aria-label":!h&&typeof t=="string"?t:void 0,tabIndex:-1,className:Me("relative w-full mx-4 bg-white rounded-xl shadow-xl transform transition-all focus:outline-none",o?"":r),style:o?{maxWidth:`${o}px`}:void 0,children:[h&&(t||!s)&&u.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-grayWarm-200",children:[s?u.jsx("div",{className:"w-8"}):u.jsx("button",{onClick:e,"aria-label":"Close modal",className:"w-8 h-8 flex items-center justify-center bg-grayWarm-100 hover:bg-grayWarm-200 rounded-lg transition-colors",children:u.jsx(Vm,{})}),u.jsx("h2",{id:f,className:"text-lg font-semibold text-grayWarm-950",children:t}),u.jsx("div",{className:"w-8"})]}),!h&&!s&&u.jsx("button",{type:"button",onClick:e,"aria-label":"Close modal",className:"absolute top-4 right-4 z-10 w-8 h-8 flex items-center justify-center rounded-lg text-grayWarm-500 hover:bg-grayWarm-100 hover:text-grayWarm-700 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-grayWarm-950",children:u.jsx(Bl,{size:24})}),u.jsx("div",{className:Me("p-6",l?"overflow-visible":"max-h-[90vh] overflow-y-auto"),children:n}),i&&u.jsx("div",{className:"border-t border-grayWarm-200"}),a&&u.jsx("div",{className:"p-6",children:a})]})]})},Vr=[{languageCode:"en",regionCode:"US",currencyCode:"USD",languageDisplay:"English",regionDisplay:"United States"},{languageCode:"en",regionCode:"GB",currencyCode:"GBP",languageDisplay:"English",regionDisplay:"United Kingdom"},{languageCode:"en",regionCode:"CA",currencyCode:"CAD",languageDisplay:"English",regionDisplay:"Canada"},{languageCode:"en",regionCode:"AU",currencyCode:"AUD",languageDisplay:"English",regionDisplay:"Australia"},{languageCode:"es",regionCode:"ES",currencyCode:"EUR",languageDisplay:"Español",regionDisplay:"España"},{languageCode:"es",regionCode:"MX",currencyCode:"MXN",languageDisplay:"Español",regionDisplay:"México"},{languageCode:"fr",regionCode:"FR",currencyCode:"EUR",languageDisplay:"Français",regionDisplay:"France"},{languageCode:"fr",regionCode:"CA",currencyCode:"CAD",languageDisplay:"Français",regionDisplay:"Canada"},{languageCode:"de",regionCode:"DE",currencyCode:"EUR",languageDisplay:"Deutsch",regionDisplay:"Deutschland"},{languageCode:"it",regionCode:"IT",currencyCode:"EUR",languageDisplay:"Italiano",regionDisplay:"Italia"},{languageCode:"pt",regionCode:"BR",currencyCode:"BRL",languageDisplay:"Português",regionDisplay:"Brasil"},{languageCode:"ja",regionCode:"JP",currencyCode:"JPY",languageDisplay:"日本語",regionDisplay:"日本"},{languageCode:"ko",regionCode:"KR",currencyCode:"KRW",languageDisplay:"한국어",regionDisplay:"대한민국"},{languageCode:"zh",regionCode:"CN",currencyCode:"CNY",languageDisplay:"中文",regionDisplay:"中国"},{languageCode:"hi",regionCode:"IN",currencyCode:"INR",languageDisplay:"हिन्दी",regionDisplay:"भारत"}],Dl=Vr[0],_m="movmo_locale_preferences",Wm=(e,t)=>Vr.find(n=>n.languageCode.toLowerCase()===e.toLowerCase()&&n.regionCode.toLowerCase()===t.toLowerCase())??Dl,Lm=e=>e.languageDisplay,Xm=()=>u.jsx("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:u.jsx("path",{d:"M12.913 17H20.087M12.913 17L11 21M12.913 17L16.5 9L20.087 17M2 5H12M7 2V5M11 5C9.72 8.44 7.36 11.44 4.5 13.5M7.5 16.5C6.26 15.34 5.14 14.04 4.17 12.63"})}),Hm=({isOpen:e,onClose:t,currentLanguageCode:n,currentRegionCode:a,onLocaleSelect:r,translateIconUrl:o})=>{const i=s=>s.languageCode===n&&s.regionCode===a;return u.jsxs(pn,{isOpen:e,onClose:t,title:null,maxWidthPx:860,hideCloseButton:!0,children:[u.jsx("div",{className:"flex items-center mb-6",children:u.jsx("button",{onClick:t,"aria-label":"Close",className:"w-8 h-8 flex items-center justify-center bg-grayWarm-100 hover:bg-grayWarm-200 rounded-lg transition-colors",children:u.jsx("svg",{className:"w-4 h-4 text-grayWarm-600",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})}),u.jsxs("div",{className:"border border-grayWarm-200 rounded-xl p-4 mb-6 flex items-center justify-between opacity-60 cursor-not-allowed",children:[u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"font-semibold text-grayWarm-950",children:"Translation"}),o?u.jsx("img",{src:o,alt:"",className:"w-4 h-4"}):u.jsx(Xm,{})]}),u.jsx("p",{className:"text-sm text-grayWarm-600 mt-1",children:"Automatically translate descriptions to English."})]}),u.jsx("div",{className:"w-11 h-6 bg-grayWarm-950 rounded-full relative flex-shrink-0","aria-hidden":"true",children:u.jsx("div",{className:"w-5 h-5 bg-white rounded-full absolute top-0.5 right-0.5"})})]}),u.jsx("h3",{className:"text-base font-semibold text-grayWarm-950 mb-4",children:"Choose a language and region"}),u.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-1 p-px",role:"radiogroup","aria-label":"Language and region selection",children:Vr.map(s=>{const l=i(s);return u.jsxs("button",{onClick:()=>r(s),role:"radio","aria-checked":l,className:`p-3 rounded-lg text-left cursor-pointer border transition-colors ${l?"border-grayWarm-950 ring-1 ring-grayWarm-950":"border-transparent hover:bg-grayWarm-50"}`,children:[u.jsx("p",{className:"text-sm font-semibold text-grayWarm-950",children:s.languageDisplay}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:s.regionDisplay})]},`${s.languageCode}-${s.regionCode}`)})})]})},Dr=[{code:"USD",name:"United States dollar",symbol:"$"},{code:"AUD",name:"Australian dollar",symbol:"$"},{code:"BRL",name:"Brazilian real",symbol:"R$"},{code:"BGN",name:"Bulgarian lev",symbol:"лв."},{code:"CAD",name:"Canadian dollar",symbol:"$"},{code:"CLP",name:"Chilean peso",symbol:"$"},{code:"CNY",name:"Chinese yuan",symbol:"¥"},{code:"COP",name:"Colombian peso",symbol:"$"},{code:"CRC",name:"Costa Rican colon",symbol:"₡"},{code:"CZK",name:"Czech koruna",symbol:"Kč"},{code:"DKK",name:"Danish krone",symbol:"kr"},{code:"EGP",name:"Egyptian pound",symbol:"ج.م"},{code:"AED",name:"Emirati dirham",symbol:"د.إ"},{code:"EUR",name:"Euro",symbol:"€"},{code:"GHS",name:"Ghanaian cedi",symbol:"GH₵"},{code:"HKD",name:"Hong Kong dollar",symbol:"$"},{code:"HUF",name:"Hungarian forint",symbol:"Ft"},{code:"INR",name:"Indian rupee",symbol:"₹"},{code:"IDR",name:"Indonesian rupiah",symbol:"Rp"},{code:"ILS",name:"Israeli new shekel",symbol:"₪"},{code:"JPY",name:"Japanese yen",symbol:"¥"},{code:"KZT",name:"Kazakhstani tenge",symbol:"₸"},{code:"KES",name:"Kenyan shilling",symbol:"KSh"},{code:"MYR",name:"Malaysian ringgit",symbol:"RM"},{code:"MXN",name:"Mexican peso",symbol:"$"},{code:"MAD",name:"Moroccan dirham",symbol:"MAD"},{code:"TWD",name:"New Taiwan dollar",symbol:"$"},{code:"NZD",name:"New Zealand dollar",symbol:"$"},{code:"NOK",name:"Norwegian krone",symbol:"kr"},{code:"PEN",name:"Peruvian sol",symbol:"S/"},{code:"PHP",name:"Philippine peso",symbol:"₱"},{code:"PLN",name:"Polish zloty",symbol:"zł"},{code:"GBP",name:"Pound sterling",symbol:"£"},{code:"QAR",name:"Qatari riyal",symbol:"ر.ق"},{code:"RON",name:"Romanian leu",symbol:"lei"},{code:"SAR",name:"Saudi Arabian riyal",symbol:"SR"},{code:"SGD",name:"Singapore dollar",symbol:"$"},{code:"ZAR",name:"South African rand",symbol:"R"},{code:"KRW",name:"South Korean won",symbol:"₩"},{code:"SEK",name:"Swedish krona",symbol:"kr"},{code:"CHF",name:"Swiss franc",symbol:"CHF"},{code:"THB",name:"Thai baht",symbol:"฿"},{code:"TRY",name:"Turkish lira",symbol:"₺"},{code:"UGX",name:"Ugandan shilling",symbol:"USh"},{code:"UAH",name:"Ukrainian hryvnia",symbol:"₴"},{code:"UYU",name:"Uruguayan peso",symbol:"$U"},{code:"VND",name:"Vietnamese dong",symbol:"₫"}],Zm=Dr[0],zm=e=>Dr.find(t=>t.code.toUpperCase()===e.toUpperCase())??Zm,_l=e=>e.code===e.symbol?e.code:`${e.code} – ${e.symbol}`,Ym=({isOpen:e,onClose:t,currentCurrencyCode:n,onCurrencySelect:a})=>u.jsxs(pn,{isOpen:e,onClose:t,title:null,maxWidthPx:920,hideCloseButton:!0,children:[u.jsx("div",{className:"flex items-center mb-6",children:u.jsx("button",{onClick:t,"aria-label":"Close",className:"w-8 h-8 flex items-center justify-center bg-grayWarm-100 hover:bg-grayWarm-200 rounded-lg transition-colors",children:u.jsx("svg",{className:"w-4 h-4 text-grayWarm-600",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})}),u.jsx("h3",{className:"text-base font-semibold text-grayWarm-950 mb-4",children:"Choose a currency"}),u.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-x-3 gap-y-1 p-px",role:"radiogroup","aria-label":"Currency selection",children:Dr.map(r=>{const o=r.code===n;return u.jsxs("button",{onClick:()=>a(r.code),role:"radio","aria-checked":o,className:`p-3 rounded-lg text-left cursor-pointer border transition-colors ${o?"border-grayWarm-950 ring-1 ring-grayWarm-950":"border-transparent hover:bg-grayWarm-50"}`,children:[u.jsx("p",{className:"text-sm font-medium text-grayWarm-950",children:r.name}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:_l(r)})]},r.code)})})]});var Jm=function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(a,r,o){n.o(a,r)||Object.defineProperty(a,r,{enumerable:!0,get:o})},n.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},n.t=function(a,r){if(1&r&&(a=n(a)),8&r||4&r&&typeof a=="object"&&a&&a.__esModule)return a;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:a}),2&r&&typeof a!="string")for(var i in a)n.d(o,i,(function(s){return a[s]}).bind(null,i));return o},n.n=function(a){var r=a&&a.__esModule?function(){return a.default}:function(){return a};return n.d(r,"a",r),r},n.o=function(a,r){return Object.prototype.hasOwnProperty.call(a,r)},n.p="",n(n.s=9)}([function(e,t){e.exports=w},function(e,t,n){var a;/*!
|
|
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 i=[],l=0;l<arguments.length;l++){var s=arguments[l];if(s){var c=typeof s;if(c==="string"||c==="number")i.push(s);else if(Array.isArray(s)&&s.length){var d=o.apply(null,s);d&&i.push(d)}else if(c==="object")for(var f in s)n.call(s,f)&&s[f]&&i.push(f)}}return i.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,i=/^0b[01]+$/i,l=/^0o[0-7]+$/i,s=parseInt,c=typeof a=="object"&&a&&a.Object===Object&&a,d=typeof self=="object"&&self&&self.Object===Object&&self,f=c||d||Function("return this")(),y=Object.prototype.toString,C=f.Symbol,b=C?C.prototype:void 0,h=b?b.toString:void 0;function p(A){if(typeof A=="string")return A;if(E(A))return h?h.call(A):"";var I=A+"";return I=="0"&&1/A==-1/0?"-0":I}function x(A){var I=typeof A;return!!A&&(I=="object"||I=="function")}function E(A){return typeof A=="symbol"||function(I){return!!I&&typeof I=="object"}(A)&&y.call(A)=="[object Symbol]"}function R(A){return A?(A=function(I){if(typeof I=="number")return I;if(E(I))return NaN;if(x(I)){var j=typeof I.valueOf=="function"?I.valueOf():I;I=x(j)?j+"":j}if(typeof I!="string")return I===0?I:+I;I=I.replace(n,"");var F=i.test(I);return F||l.test(I)?s(I.slice(2),F?2:8):o.test(I)?NaN:+I}(A))===1/0||A===-1/0?17976931348623157e292*(A<0?-1:1):A==A?A:0:A===0?A:0}e.exports=function(A,I,j){var F,M,oe,re;return A=(F=A)==null?"":p(F),M=function(ce){var z=R(ce),le=z%1;return z==z?le?z-le:z:0}(j),oe=0,re=A.length,M==M&&(re!==void 0&&(M=M<=re?M:re),oe!==void 0&&(M=M>=oe?M:oe)),j=M,I=p(I),A.slice(j,j+I.length)==I}}).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,i=typeof self=="object"&&self&&self.Object===Object&&self,l=o||i||Function("return this")(),s,c=Array.prototype,d=Function.prototype,f=Object.prototype,y=l["__core-js_shared__"],C=(s=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"",b=d.toString,h=f.hasOwnProperty,p=f.toString,x=RegExp("^"+b.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),E=c.splice,R=ce(l,"Map"),A=ce(Object,"create");function I(G){var O=-1,V=G?G.length:0;for(this.clear();++O<V;){var $=G[O];this.set($[0],$[1])}}function j(G){var O=-1,V=G?G.length:0;for(this.clear();++O<V;){var $=G[O];this.set($[0],$[1])}}function F(G){var O=-1,V=G?G.length:0;for(this.clear();++O<V;){var $=G[O];this.set($[0],$[1])}}function M(G,O){for(var V,$,ne=G.length;ne--;)if((V=G[ne][0])===($=O)||V!=V&&$!=$)return ne;return-1}function oe(G){return!(!le(G)||(O=G,C&&C in O))&&(function(V){var $=le(V)?p.call(V):"";return $=="[object Function]"||$=="[object GeneratorFunction]"}(G)||function(V){var $=!1;if(V!=null&&typeof V.toString!="function")try{$=!!(V+"")}catch{}return $}(G)?x:n).test(function(V){if(V!=null){try{return b.call(V)}catch{}try{return V+""}catch{}}return""}(G));var O}function re(G,O){var V,$,ne=G.__data__;return(($=typeof(V=O))=="string"||$=="number"||$=="symbol"||$=="boolean"?V!=="__proto__":V===null)?ne[typeof O=="string"?"string":"hash"]:ne.map}function ce(G,O){var V=function($,ne){return $==null?void 0:$[ne]}(G,O);return oe(V)?V:void 0}function z(G,O){if(typeof G!="function"||O&&typeof O!="function")throw new TypeError("Expected a function");var V=function(){var $=arguments,ne=O?O.apply(this,$):$[0],Ie=V.cache;if(Ie.has(ne))return Ie.get(ne);var _=G.apply(this,$);return V.cache=Ie.set(ne,_),_};return V.cache=new(z.Cache||F),V}function le(G){var O=typeof G;return!!G&&(O=="object"||O=="function")}I.prototype.clear=function(){this.__data__=A?A(null):{}},I.prototype.delete=function(G){return this.has(G)&&delete this.__data__[G]},I.prototype.get=function(G){var O=this.__data__;if(A){var V=O[G];return V==="__lodash_hash_undefined__"?void 0:V}return h.call(O,G)?O[G]:void 0},I.prototype.has=function(G){var O=this.__data__;return A?O[G]!==void 0:h.call(O,G)},I.prototype.set=function(G,O){return this.__data__[G]=A&&O===void 0?"__lodash_hash_undefined__":O,this},j.prototype.clear=function(){this.__data__=[]},j.prototype.delete=function(G){var O=this.__data__,V=M(O,G);return!(V<0)&&(V==O.length-1?O.pop():E.call(O,V,1),!0)},j.prototype.get=function(G){var O=this.__data__,V=M(O,G);return V<0?void 0:O[V][1]},j.prototype.has=function(G){return M(this.__data__,G)>-1},j.prototype.set=function(G,O){var V=this.__data__,$=M(V,G);return $<0?V.push([G,O]):V[$][1]=O,this},F.prototype.clear=function(){this.__data__={hash:new I,map:new(R||j),string:new I}},F.prototype.delete=function(G){return re(this,G).delete(G)},F.prototype.get=function(G){return re(this,G).get(G)},F.prototype.has=function(G){return re(this,G).has(G)},F.prototype.set=function(G,O){return re(this,G).set(G,O),this},z.Cache=F,e.exports=z}).call(this,r(3))},function(e,t,r){(function(a){var n=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,l=/^0o[0-7]+$/i,s=parseInt,c=typeof a=="object"&&a&&a.Object===Object&&a,d=typeof self=="object"&&self&&self.Object===Object&&self,f=c||d||Function("return this")(),y=Object.prototype.toString,C=Math.max,b=Math.min,h=function(){return f.Date.now()};function p(E){var R=typeof E;return!!E&&(R=="object"||R=="function")}function x(E){if(typeof E=="number")return E;if(function(I){return typeof I=="symbol"||function(j){return!!j&&typeof j=="object"}(I)&&y.call(I)=="[object Symbol]"}(E))return NaN;if(p(E)){var R=typeof E.valueOf=="function"?E.valueOf():E;E=p(R)?R+"":R}if(typeof E!="string")return E===0?E:+E;E=E.replace(n,"");var A=i.test(E);return A||l.test(E)?s(E.slice(2),A?2:8):o.test(E)?NaN:+E}e.exports=function(E,R,A){var I,j,F,M,oe,re,ce=0,z=!1,le=!1,G=!0;if(typeof E!="function")throw new TypeError("Expected a function");function O(W){var Z=I,ae=j;return I=j=void 0,ce=W,M=E.apply(ae,Z)}function V(W){return ce=W,oe=setTimeout(ne,R),z?O(W):M}function $(W){var Z=W-re;return re===void 0||Z>=R||Z<0||le&&W-ce>=F}function ne(){var W=h();if($(W))return Ie(W);oe=setTimeout(ne,function(Z){var ae=R-(Z-re);return le?b(ae,F-(Z-ce)):ae}(W))}function Ie(W){return oe=void 0,G&&I?O(W):(I=j=void 0,M)}function _(){var W=h(),Z=$(W);if(I=arguments,j=this,re=W,Z){if(oe===void 0)return V(re);if(le)return oe=setTimeout(ne,R),O(re)}return oe===void 0&&(oe=setTimeout(ne,R)),M}return R=x(R)||0,p(A)&&(z=!!A.leading,F=(le="maxWait"in A)?C(x(A.maxWait)||0,R):F,G="trailing"in A?!!A.trailing:G),_.cancel=function(){oe!==void 0&&clearTimeout(oe),ce=0,I=re=j=oe=void 0},_.flush=function(){return oe===void 0?M:Ie(h())},_}}).call(this,r(3))},function(e,t,r){(function(a,n){var o="[object Arguments]",i="[object Map]",l="[object Object]",s="[object Set]",c=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d=/^\w*$/,f=/^\./,y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,C=/\\(\\)?/g,b=/^\[object .+?Constructor\]$/,h=/^(?: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[i]=p["[object Number]"]=p[l]=p["[object RegExp]"]=p[s]=p["[object String]"]=p["[object WeakMap]"]=!1;var x=typeof a=="object"&&a&&a.Object===Object&&a,E=typeof self=="object"&&self&&self.Object===Object&&self,R=x||E||Function("return this")(),A=t&&!t.nodeType&&t,I=A&&typeof n=="object"&&n&&!n.nodeType&&n,j=I&&I.exports===A&&x.process,F=function(){try{return j&&j.binding("util")}catch{}}(),M=F&&F.isTypedArray;function oe(g,N,k,H){var te=-1,fe=g?g.length:0;for(H&&fe&&(k=g[++te]);++te<fe;)k=N(k,g[te],te,g);return k}function re(g,N){for(var k=-1,H=g?g.length:0;++k<H;)if(N(g[k],k,g))return!0;return!1}function ce(g,N,k,H,te){return te(g,function(fe,Ee,Ye){k=H?(H=!1,fe):N(k,fe,Ee,Ye)}),k}function z(g){var N=!1;if(g!=null&&typeof g.toString!="function")try{N=!!(g+"")}catch{}return N}function le(g){var N=-1,k=Array(g.size);return g.forEach(function(H,te){k[++N]=[te,H]}),k}function G(g){var N=-1,k=Array(g.size);return g.forEach(function(H){k[++N]=H}),k}var O,V,$,ne=Array.prototype,Ie=Function.prototype,_=Object.prototype,W=R["__core-js_shared__"],Z=(O=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||""))?"Symbol(src)_1."+O:"",ae=Ie.toString,L=_.hasOwnProperty,m=_.toString,pe=RegExp("^"+ae.call(L).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Y=R.Symbol,K=R.Uint8Array,me=_.propertyIsEnumerable,ye=ne.splice,Te=(V=Object.keys,$=Object,function(g){return V($(g))}),X=Ct(R,"DataView"),je=Ct(R,"Map"),Ae=Ct(R,"Promise"),P=Ct(R,"Set"),D=Ct(R,"WeakMap"),Q=Ct(Object,"create"),be=ie(X),ue=ie(je),Ce=ie(Ae),we=ie(P),Re=ie(D),ee=Y?Y.prototype:void 0,de=ee?ee.valueOf:void 0,Se=ee?ee.toString:void 0;function q(g){var N=-1,k=g?g.length:0;for(this.clear();++N<k;){var H=g[N];this.set(H[0],H[1])}}function se(g){var N=-1,k=g?g.length:0;for(this.clear();++N<k;){var H=g[N];this.set(H[0],H[1])}}function _e(g){var N=-1,k=g?g.length:0;for(this.clear();++N<k;){var H=g[N];this.set(H[0],H[1])}}function ot(g){var N=-1,k=g?g.length:0;for(this.__data__=new _e;++N<k;)this.add(g[N])}function Ke(g){this.__data__=new se(g)}function lt(g,N){var k=v(g)||dt(g)?function(Ee,Ye){for(var $e=-1,ze=Array(Ee);++$e<Ee;)ze[$e]=Ye($e);return ze}(g.length,String):[],H=k.length,te=!!H;for(var fe in g)!L.call(g,fe)||te&&(fe=="length"||Zt(fe,H))||k.push(fe);return k}function gt(g,N){for(var k=g.length;k--;)if(rt(g[k][0],N))return k;return-1}q.prototype.clear=function(){this.__data__=Q?Q(null):{}},q.prototype.delete=function(g){return this.has(g)&&delete this.__data__[g]},q.prototype.get=function(g){var N=this.__data__;if(Q){var k=N[g];return k==="__lodash_hash_undefined__"?void 0:k}return L.call(N,g)?N[g]:void 0},q.prototype.has=function(g){var N=this.__data__;return Q?N[g]!==void 0:L.call(N,g)},q.prototype.set=function(g,N){return this.__data__[g]=Q&&N===void 0?"__lodash_hash_undefined__":N,this},se.prototype.clear=function(){this.__data__=[]},se.prototype.delete=function(g){var N=this.__data__,k=gt(N,g);return!(k<0)&&(k==N.length-1?N.pop():ye.call(N,k,1),!0)},se.prototype.get=function(g){var N=this.__data__,k=gt(N,g);return k<0?void 0:N[k][1]},se.prototype.has=function(g){return gt(this.__data__,g)>-1},se.prototype.set=function(g,N){var k=this.__data__,H=gt(k,g);return H<0?k.push([g,N]):k[H][1]=N,this},_e.prototype.clear=function(){this.__data__={hash:new q,map:new(je||se),string:new q}},_e.prototype.delete=function(g){return Ht(this,g).delete(g)},_e.prototype.get=function(g){return Ht(this,g).get(g)},_e.prototype.has=function(g){return Ht(this,g).has(g)},_e.prototype.set=function(g,N){return Ht(this,g).set(g,N),this},ot.prototype.add=ot.prototype.push=function(g){return this.__data__.set(g,"__lodash_hash_undefined__"),this},ot.prototype.has=function(g){return this.__data__.has(g)},Ke.prototype.clear=function(){this.__data__=new se},Ke.prototype.delete=function(g){return this.__data__.delete(g)},Ke.prototype.get=function(g){return this.__data__.get(g)},Ke.prototype.has=function(g){return this.__data__.has(g)},Ke.prototype.set=function(g,N){var k=this.__data__;if(k instanceof se){var H=k.__data__;if(!je||H.length<199)return H.push([g,N]),this;k=this.__data__=new _e(H)}return k.set(g,N),this};var It,Ue=(It=function(g,N){return g&&Nt(g,N,qe)},function(g,N){if(g==null)return g;if(!B(g))return It(g,N);for(var k=g.length,H=-1,te=Object(g);++H<k&&N(te[H],H,te)!==!1;);return g}),Nt=function(g){return function(N,k,H){for(var te=-1,fe=Object(N),Ee=H(N),Ye=Ee.length;Ye--;){var $e=Ee[++te];if(k(fe[$e],$e,fe)===!1)break}return N}}();function Mt(g,N){for(var k=0,H=(N=kt(N,g)?[N]:Xt(N)).length;g!=null&&k<H;)g=g[U(N[k++])];return k&&k==H?g:void 0}function an(g,N){return g!=null&&N in Object(g)}function St(g,N,k,H,te){return g===N||(g==null||N==null||!Oe(g)&&!ke(N)?g!=g&&N!=N:function(fe,Ee,Ye,$e,ze,Fe){var xt=v(fe),ut=v(Ee),it="[object Array]",st="[object Array]";xt||(it=(it=ht(fe))==o?l:it),ut||(st=(st=ht(Ee))==o?l:st);var At=it==l&&!z(fe),bn=st==l&&!z(Ee),zt=it==st;if(zt&&!At)return Fe||(Fe=new Ke),xt||Ge(fe)?sn(fe,Ee,Ye,$e,ze,Fe):function(Je,He,Dr,cn,Jn,vt,Ft){switch(Dr){case"[object DataView]":if(Je.byteLength!=He.byteLength||Je.byteOffset!=He.byteOffset)return!1;Je=Je.buffer,He=He.buffer;case"[object ArrayBuffer]":return!(Je.byteLength!=He.byteLength||!cn(new K(Je),new K(He)));case"[object Boolean]":case"[object Date]":case"[object Number]":return rt(+Je,+He);case"[object Error]":return Je.name==He.name&&Je.message==He.message;case"[object RegExp]":case"[object String]":return Je==He+"";case i:var Yt=le;case s:var Nn=2&vt;if(Yt||(Yt=G),Je.size!=He.size&&!Nn)return!1;var Un=Ft.get(Je);if(Un)return Un==He;vt|=1,Ft.set(Je,He);var hn=sn(Yt(Je),Yt(He),cn,Jn,vt,Ft);return Ft.delete(Je),hn;case"[object Symbol]":if(de)return de.call(Je)==de.call(He)}return!1}(fe,Ee,it,Ye,$e,ze,Fe);if(!(2&ze)){var uo=At&&L.call(fe,"__wrapped__"),co=bn&&L.call(Ee,"__wrapped__");if(uo||co){var ru=uo?fe.value():fe,au=co?Ee.value():Ee;return Fe||(Fe=new Ke),Ye(ru,au,$e,ze,Fe)}}return zt?(Fe||(Fe=new Ke),function(Je,He,Dr,cn,Jn,vt){var Ft=2&Jn,Yt=qe(Je),Nn=Yt.length,Un=qe(He).length;if(Nn!=Un&&!Ft)return!1;for(var hn=Nn;hn--;){var Jt=Yt[hn];if(!(Ft?Jt in He:L.call(He,Jt)))return!1}var fo=vt.get(Je);if(fo&&vt.get(He))return fo==He;var $n=!0;vt.set(Je,He),vt.set(He,Je);for(var Wr=Ft;++hn<Nn;){Jt=Yt[hn];var Qn=Je[Jt],Kn=He[Jt];if(cn)var po=Ft?cn(Kn,Qn,Jt,He,Je,vt):cn(Qn,Kn,Jt,Je,He,vt);if(!(po===void 0?Qn===Kn||Dr(Qn,Kn,cn,Jn,vt):po)){$n=!1;break}Wr||(Wr=Jt=="constructor")}if($n&&!Wr){var qn=Je.constructor,er=He.constructor;qn==er||!("constructor"in Je)||!("constructor"in He)||typeof qn=="function"&&qn instanceof qn&&typeof er=="function"&&er instanceof er||($n=!1)}return vt.delete(Je),vt.delete(He),$n}(fe,Ee,Ye,$e,ze,Fe)):!1}(g,N,St,k,H,te))}function Gt(g){return!(!Oe(g)||function(N){return!!Z&&Z in N}(g))&&(J(g)||z(g)?pe:b).test(ie(g))}function Pt(g){return typeof g=="function"?g:g==null?et:typeof g=="object"?v(g)?function(H,te){return kt(H)&&ln(te)?un(U(H),te):function(fe){var Ee=function(Ye,$e,ze){var Fe=Ye==null?void 0:Mt(Ye,$e);return Fe===void 0?ze:Fe}(fe,H);return Ee===void 0&&Ee===te?function(Ye,$e){return Ye!=null&&function(ze,Fe,xt){Fe=kt(Fe,ze)?[Fe]:Xt(Fe);for(var ut,it=-1,st=Fe.length;++it<st;){var At=U(Fe[it]);if(!(ut=ze!=null&&xt(ze,At)))break;ze=ze[At]}return ut||!!(st=ze?ze.length:0)&&he(st)&&Zt(At,st)&&(v(ze)||dt(ze))}(Ye,$e,an)}(fe,H):St(te,Ee,void 0,3)}}(g[0],g[1]):function(H){var te=function(fe){for(var Ee=qe(fe),Ye=Ee.length;Ye--;){var $e=Ee[Ye],ze=fe[$e];Ee[Ye]=[$e,ze,ln(ze)]}return Ee}(H);return te.length==1&&te[0][2]?un(te[0][0],te[0][1]):function(fe){return fe===H||function(Ee,Ye,$e,ze){var Fe=$e.length,xt=Fe;if(Ee==null)return!xt;for(Ee=Object(Ee);Fe--;){var ut=$e[Fe];if(ut[2]?ut[1]!==Ee[ut[0]]:!(ut[0]in Ee))return!1}for(;++Fe<xt;){var it=(ut=$e[Fe])[0],st=Ee[it],At=ut[1];if(ut[2]){if(st===void 0&&!(it in Ee))return!1}else{var bn=new Ke,zt;if(!(zt===void 0?St(At,st,ze,3,bn):zt))return!1}}return!0}(fe,H,te)}}(g):kt(N=g)?(k=U(N),function(H){return H==null?void 0:H[k]}):function(H){return function(te){return Mt(te,H)}}(N);var N,k}function on(g){if(k=(N=g)&&N.constructor,H=typeof k=="function"&&k.prototype||_,N!==H)return Te(g);var N,k,H,te=[];for(var fe in Object(g))L.call(g,fe)&&fe!="constructor"&&te.push(fe);return te}function Xt(g){return v(g)?g:T(g)}function sn(g,N,k,H,te,fe){var Ee=2&te,Ye=g.length,$e=N.length;if(Ye!=$e&&!(Ee&&$e>Ye))return!1;var ze=fe.get(g);if(ze&&fe.get(N))return ze==N;var Fe=-1,xt=!0,ut=1&te?new ot:void 0;for(fe.set(g,N),fe.set(N,g);++Fe<Ye;){var it=g[Fe],st=N[Fe];if(H)var At=Ee?H(st,it,Fe,N,g,fe):H(it,st,Fe,g,N,fe);if(At!==void 0){if(At)continue;xt=!1;break}if(ut){if(!re(N,function(bn,zt){if(!ut.has(zt)&&(it===bn||k(it,bn,H,te,fe)))return ut.add(zt)})){xt=!1;break}}else if(it!==st&&!k(it,st,H,te,fe)){xt=!1;break}}return fe.delete(g),fe.delete(N),xt}function Ht(g,N){var k,H,te=g.__data__;return((H=typeof(k=N))=="string"||H=="number"||H=="symbol"||H=="boolean"?k!=="__proto__":k===null)?te[typeof N=="string"?"string":"hash"]:te.map}function Ct(g,N){var k=function(H,te){return H==null?void 0:H[te]}(g,N);return Gt(k)?k:void 0}var ht=function(g){return m.call(g)};function Zt(g,N){return!!(N=N??9007199254740991)&&(typeof g=="number"||h.test(g))&&g>-1&&g%1==0&&g<N}function kt(g,N){if(v(g))return!1;var k=typeof g;return!(k!="number"&&k!="symbol"&&k!="boolean"&&g!=null&&!Ne(g))||d.test(g)||!c.test(g)||N!=null&&g in Object(N)}function ln(g){return g==g&&!Oe(g)}function un(g,N){return function(k){return k!=null&&k[g]===N&&(N!==void 0||g in Object(k))}}(X&&ht(new X(new ArrayBuffer(1)))!="[object DataView]"||je&&ht(new je)!=i||Ae&&ht(Ae.resolve())!="[object Promise]"||P&&ht(new P)!=s||D&&ht(new D)!="[object WeakMap]")&&(ht=function(g){var N=m.call(g),k=N==l?g.constructor:void 0,H=k?ie(k):void 0;if(H)switch(H){case be:return"[object DataView]";case ue:return i;case Ce:return"[object Promise]";case we:return s;case Re:return"[object WeakMap]"}return N});var T=Xe(function(g){var N;g=(N=g)==null?"":function(H){if(typeof H=="string")return H;if(Ne(H))return Se?Se.call(H):"";var te=H+"";return te=="0"&&1/H==-1/0?"-0":te}(N);var k=[];return f.test(g)&&k.push(""),g.replace(y,function(H,te,fe,Ee){k.push(fe?Ee.replace(C,"$1"):te||H)}),k});function U(g){if(typeof g=="string"||Ne(g))return g;var N=g+"";return N=="0"&&1/g==-1/0?"-0":N}function ie(g){if(g!=null){try{return ae.call(g)}catch{}try{return g+""}catch{}}return""}function Xe(g,N){if(typeof g!="function"||N&&typeof N!="function")throw new TypeError("Expected a function");var k=function(){var H=arguments,te=N?N.apply(this,H):H[0],fe=k.cache;if(fe.has(te))return fe.get(te);var Ee=g.apply(this,H);return k.cache=fe.set(te,Ee),Ee};return k.cache=new(Xe.Cache||_e),k}function rt(g,N){return g===N||g!=g&&N!=N}function dt(g){return function(N){return ke(N)&&B(N)}(g)&&L.call(g,"callee")&&(!me.call(g,"callee")||m.call(g)==o)}Xe.Cache=_e;var v=Array.isArray;function B(g){return g!=null&&he(g.length)&&!J(g)}function J(g){var N=Oe(g)?m.call(g):"";return N=="[object Function]"||N=="[object GeneratorFunction]"}function he(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=9007199254740991}function Oe(g){var N=typeof g;return!!g&&(N=="object"||N=="function")}function ke(g){return!!g&&typeof g=="object"}function Ne(g){return typeof g=="symbol"||ke(g)&&m.call(g)=="[object Symbol]"}var Ge=M?function(g){return function(N){return g(N)}}(M):function(g){return ke(g)&&he(g.length)&&!!p[m.call(g)]};function qe(g){return B(g)?lt(g):on(g)}function et(g){return g}n.exports=function(g,N,k){var H=v(g)?oe:ce,te=arguments.length<3;return H(g,Pt(N),k,te,Ue)}}).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(_,W,Z){return W in _?Object.defineProperty(_,W,{value:Z,enumerable:!0,configurable:!0,writable:!0}):_[W]=Z,_}function n(_){if(Symbol.iterator in Object(_)||Object.prototype.toString.call(_)==="[object Arguments]")return Array.from(_)}function o(_){return function(W){if(Array.isArray(W)){for(var Z=0,ae=new Array(W.length);Z<W.length;Z++)ae[Z]=W[Z];return ae}}(_)||n(_)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(_){if(Array.isArray(_))return _}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function s(_,W){if(!(_ instanceof W))throw new TypeError("Cannot call a class as a function")}function c(_,W){for(var Z=0;Z<W.length;Z++){var ae=W[Z];ae.enumerable=ae.enumerable||!1,ae.configurable=!0,"value"in ae&&(ae.writable=!0),Object.defineProperty(_,ae.key,ae)}}function d(_){return(d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W})(_)}function f(_){return(f=typeof Symbol=="function"&&d(Symbol.iterator)==="symbol"?function(W){return d(W)}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":d(W)})(_)}function y(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function C(_){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(W){return W.__proto__||Object.getPrototypeOf(W)})(_)}function b(_,W){return(b=Object.setPrototypeOf||function(Z,ae){return Z.__proto__=ae,Z})(_,W)}r.r(t);var h=r(0),p=r.n(h),x=r(5),E=r.n(x),R=r(4),A=r.n(R),I=r(6),j=r.n(I),F=r(2),M=r.n(F),oe=r(1),re=r.n(oe);r(8);function ce(_,W){return i(_)||function(Z,ae){var L=[],m=!0,pe=!1,Y=void 0;try{for(var K,me=Z[Symbol.iterator]();!(m=(K=me.next()).done)&&(L.push(K.value),!ae||L.length!==ae);m=!0);}catch(ye){pe=!0,Y=ye}finally{try{m||me.return==null||me.return()}finally{if(pe)throw Y}}return L}(_,W)||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"]],le=[["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 G(_,W,Z,ae,L){return!Z||L?_+"".padEnd(W.length,".")+" "+ae:_+"".padEnd(W.length,".")+" "+Z}function O(_,W,Z,ae,L){var m,pe,Y=[];return pe=W===!0,[(m=[]).concat.apply(m,o(_.map(function(K){var me={name:K[0],regions:K[1],iso2:K[2],countryCode:K[3],dialCode:K[3],format:G(Z,K[3],K[4],ae,L),priority:K[5]||0},ye=[];return K[6]&&K[6].map(function(Te){var X=function(je){for(var Ae=1;Ae<arguments.length;Ae++){var P=arguments[Ae]!=null?arguments[Ae]:{},D=Object.keys(P);typeof Object.getOwnPropertySymbols=="function"&&(D=D.concat(Object.getOwnPropertySymbols(P).filter(function(Q){return Object.getOwnPropertyDescriptor(P,Q).enumerable}))),D.forEach(function(Q){a(je,Q,P[Q])})}return je}({},me);X.dialCode=K[3]+Te,X.isAreaCode=!0,X.areaCodeLength=Te.length,ye.push(X)}),ye.length>0?(me.mainCode=!0,pe||W.constructor.name==="Array"&&W.includes(K[2])?(me.hasAreaCodes=!0,[me].concat(ye)):(Y=Y.concat(ye),[me])):[me]}))),Y]}function V(_,W,Z,ae){if(Z!==null){var L=Object.keys(Z),m=Object.values(Z);L.forEach(function(pe,Y){if(ae)return _.push([pe,m[Y]]);var K=_.findIndex(function(ye){return ye[0]===pe});if(K===-1){var me=[pe];me[W]=m[Y],_.push(me)}else _[K][W]=m[Y]})}}function $(_,W){return W.length===0?_:_.map(function(Z){var ae=W.findIndex(function(m){return m[0]===Z[2]});if(ae===-1)return Z;var L=W[ae];return L[1]&&(Z[4]=L[1]),L[3]&&(Z[5]=L[3]),L[2]&&(Z[6]=L[2]),Z})}var ne=function _(W,Z,ae,L,m,pe,Y,K,me,ye,Te,X,je,Ae){s(this,_),this.filterRegions=function(ee,de){if(typeof ee=="string"){var Se=ee;return de.filter(function(q){return q.regions.some(function(se){return se===Se})})}return de.filter(function(q){return ee.map(function(se){return q.regions.some(function(_e){return _e===se})}).some(function(se){return se})})},this.sortTerritories=function(ee,de){var Se=[].concat(o(ee),o(de));return Se.sort(function(q,se){return q.name<se.name?-1:q.name>se.name?1:0}),Se},this.getFilteredCountryList=function(ee,de,Se){return ee.length===0?de:Se?ee.map(function(q){var se=de.find(function(_e){return _e.iso2===q});if(se)return se}).filter(function(q){return q}):de.filter(function(q){return ee.some(function(se){return se===q.iso2})})},this.localizeCountries=function(ee,de,Se){for(var q=0;q<ee.length;q++)de[ee[q].iso2]!==void 0?ee[q].localName=de[ee[q].iso2]:de[ee[q].name]!==void 0&&(ee[q].localName=de[ee[q].name]);return Se||ee.sort(function(se,_e){return se.localName<_e.localName?-1:se.localName>_e.localName?1:0}),ee},this.getCustomAreas=function(ee,de){for(var Se=[],q=0;q<de.length;q++){var se=JSON.parse(JSON.stringify(ee));se.dialCode+=de[q],Se.push(se)}return Se},this.excludeCountries=function(ee,de){return de.length===0?ee:ee.filter(function(Se){return!de.includes(Se.iso2)})};var P=function(ee,de,Se){var q=[];return V(q,1,ee,!0),V(q,3,de),V(q,2,Se),q}(K,me,ye),D=$(JSON.parse(JSON.stringify(z)),P),Q=$(JSON.parse(JSON.stringify(le)),P),be=ce(O(D,W,X,je,Ae),2),ue=be[0],Ce=be[1];if(Z){var we=ce(O(Q,W,X,je,Ae),2),Re=we[0];we[1],ue=this.sortTerritories(Re,ue)}ae&&(ue=this.filterRegions(ae,ue)),this.onlyCountries=this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(L,ue,Y.includes("onlyCountries")),pe),Te,Y.includes("onlyCountries")),this.preferredCountries=m.length===0?[]:this.localizeCountries(this.getFilteredCountryList(m,ue,Y.includes("preferredCountries")),Te,Y.includes("preferredCountries")),this.hiddenAreaCodes=this.excludeCountries(this.getFilteredCountryList(L,Ce),pe)},Ie=function(_){function W(L){var m;s(this,W),(m=function(P,D){return!D||f(D)!=="object"&&typeof D!="function"?y(P):D}(this,C(W).call(this,L))).getProbableCandidate=A()(function(P){return P&&P.length!==0?m.state.onlyCountries.filter(function(D){return M()(D.name.toLowerCase(),P.toLowerCase())},y(y(m)))[0]:null}),m.guessSelectedCountry=A()(function(P,D,Q,be){var ue;if(m.props.enableAreaCodes===!1&&(be.some(function(Re){if(M()(P,Re.dialCode))return Q.some(function(ee){if(Re.iso2===ee.iso2&&ee.mainCode)return ue=ee,!0}),!0}),ue))return ue;var Ce=Q.find(function(Re){return Re.iso2==D});if(P.trim()==="")return Ce;var we=Q.reduce(function(Re,ee){return M()(P,ee.dialCode)&&(ee.dialCode.length>Re.dialCode.length||ee.dialCode.length===Re.dialCode.length&&ee.priority<Re.priority)?ee:Re},{dialCode:"",priority:10001},y(y(m)));return we.name?we:Ce}),m.updateCountry=function(P){var D,Q=m.state.onlyCountries;(D=P.indexOf(0)>="0"&&P.indexOf(0)<="9"?Q.find(function(be){return be.dialCode==+P}):Q.find(function(be){return be.iso2==P}))&&D.dialCode&&m.setState({selectedCountry:D,formattedNumber:m.props.disableCountryCode?"":m.formatNumber(D.dialCode,D)})},m.scrollTo=function(P,D){if(P){var Q=m.dropdownRef;if(Q&&document.body){var be=Q.offsetHeight,ue=Q.getBoundingClientRect().top+document.body.scrollTop,Ce=ue+be,we=P,Re=we.getBoundingClientRect(),ee=we.offsetHeight,de=Re.top+document.body.scrollTop,Se=de+ee,q=de-ue+Q.scrollTop,se=be/2-ee/2;if(m.props.enableSearch?de<ue+32:de<ue)D&&(q-=se),Q.scrollTop=q;else if(Se>Ce){D&&(q+=se);var _e=be-ee;Q.scrollTop=q-_e}}}},m.scrollToTop=function(){var P=m.dropdownRef;P&&document.body&&(P.scrollTop=0)},m.formatNumber=function(P,D){if(!D)return P;var Q,be=D.format,ue=m.props,Ce=ue.disableCountryCode,we=ue.enableAreaCodeStretch,Re=ue.enableLongNumbers,ee=ue.autoFormat;if(Ce?((Q=be.split(" ")).shift(),Q=Q.join(" ")):we&&D.isAreaCode?((Q=be.split(" "))[1]=Q[1].replace(/\.+/,"".padEnd(D.areaCodeLength,".")),Q=Q.join(" ")):Q=be,!P||P.length===0)return Ce?"":m.props.prefix;if(P&&P.length<2||!Q||!ee)return Ce?P:m.props.prefix+P;var de,Se=j()(Q,function(q,se){if(q.remainingText.length===0)return q;if(se!==".")return{formattedText:q.formattedText+se,remainingText:q.remainingText};var _e,ot=i(_e=q.remainingText)||n(_e)||l(),Ke=ot[0],lt=ot.slice(1);return{formattedText:q.formattedText+Ke,remainingText:lt}},{formattedText:"",remainingText:P.split("")});return(de=Re?Se.formattedText+Se.remainingText.join(""):Se.formattedText).includes("(")&&!de.includes(")")&&(de+=")"),de},m.cursorToEnd=function(){var P=m.numberInputRef;if(document.activeElement===P){P.focus();var D=P.value.length;P.value.charAt(D-1)===")"&&(D-=1),P.setSelectionRange(D,D)}},m.getElement=function(P){return m["flag_no_".concat(P)]},m.getCountryData=function(){return m.state.selectedCountry?{name:m.state.selectedCountry.name||"",dialCode:m.state.selectedCountry.dialCode||"",countryCode:m.state.selectedCountry.iso2||"",format:m.state.selectedCountry.format||""}:{}},m.handleFlagDropdownClick=function(P){if(P.preventDefault(),m.state.showDropdown||!m.props.disabled){var D=m.state,Q=D.preferredCountries,be=D.onlyCountries,ue=D.selectedCountry,Ce=m.concatPreferredCountries(Q,be).findIndex(function(we){return we.dialCode===ue.dialCode&&we.iso2===ue.iso2});m.setState({showDropdown:!m.state.showDropdown,highlightCountryIndex:Ce},function(){m.state.showDropdown&&m.scrollTo(m.getElement(m.state.highlightCountryIndex))})}},m.handleInput=function(P){var D=P.target.value,Q=m.props,be=Q.prefix,ue=Q.onChange,Ce=m.props.disableCountryCode?"":be,we=m.state.selectedCountry,Re=m.state.freezeSelection;if(!m.props.countryCodeEditable){var ee=be+(we.hasAreaCodes?m.state.onlyCountries.find(function(Ue){return Ue.iso2===we.iso2&&Ue.mainCode}).dialCode:we.dialCode);if(D.slice(0,ee.length)!==ee)return}if(D===be)return ue&&ue("",m.getCountryData(),P,""),m.setState({formattedNumber:""});if(!(D.replace(/\D/g,"").length>15&&(m.props.enableLongNumbers===!1||typeof m.props.enableLongNumbers=="number"&&D.replace(/\D/g,"").length>m.props.enableLongNumbers))&&D!==m.state.formattedNumber){P.preventDefault?P.preventDefault():P.returnValue=!1;var de=m.props.country,Se=m.state,q=Se.onlyCountries,se=Se.selectedCountry,_e=Se.hiddenAreaCodes;if(ue&&P.persist(),D.length>0){var ot=D.replace(/\D/g,"");(!m.state.freezeSelection||se&&se.dialCode.length>ot.length)&&(we=m.props.disableCountryGuess?se:m.guessSelectedCountry(ot.substring(0,6),de,q,_e)||se,Re=!1),Ce=m.formatNumber(ot,we),we=we.dialCode?we:se}var Ke=P.target.selectionStart,lt=P.target.selectionStart,gt=m.state.formattedNumber,It=Ce.length-gt.length;m.setState({formattedNumber:Ce,freezeSelection:Re,selectedCountry:we},function(){It>0&&(lt-=It),Ce.charAt(Ce.length-1)==")"?m.numberInputRef.setSelectionRange(Ce.length-1,Ce.length-1):lt>0&>.length>=Ce.length?m.numberInputRef.setSelectionRange(lt,lt):Ke<gt.length&&m.numberInputRef.setSelectionRange(Ke,Ke),ue&&ue(Ce.replace(/[^0-9]+/g,""),m.getCountryData(),P,Ce)})}},m.handleInputClick=function(P){m.setState({showDropdown:!1}),m.props.onClick&&m.props.onClick(P,m.getCountryData())},m.handleDoubleClick=function(P){var D=P.target.value.length;P.target.setSelectionRange(0,D)},m.handleFlagItemClick=function(P,D){var Q=m.state.selectedCountry,be=m.state.onlyCountries.find(function(Re){return Re==P});if(be){var ue=m.state.formattedNumber.replace(" ","").replace("(","").replace(")","").replace("-",""),Ce=ue.length>1?ue.replace(Q.dialCode,be.dialCode):be.dialCode,we=m.formatNumber(Ce.replace(/\D/g,""),be);m.setState({showDropdown:!1,selectedCountry:be,freezeSelection:!0,formattedNumber:we,searchValue:""},function(){m.cursorToEnd(),m.props.onChange&&m.props.onChange(we.replace(/[^0-9]+/g,""),m.getCountryData(),D,we)})}},m.handleInputFocus=function(P){m.numberInputRef&&m.numberInputRef.value===m.props.prefix&&m.state.selectedCountry&&!m.props.disableCountryCode&&m.setState({formattedNumber:m.props.prefix+m.state.selectedCountry.dialCode},function(){m.props.jumpCursorToEnd&&setTimeout(m.cursorToEnd,0)}),m.setState({placeholder:""}),m.props.onFocus&&m.props.onFocus(P,m.getCountryData()),m.props.jumpCursorToEnd&&setTimeout(m.cursorToEnd,0)},m.handleInputBlur=function(P){P.target.value||m.setState({placeholder:m.props.placeholder}),m.props.onBlur&&m.props.onBlur(P,m.getCountryData())},m.handleInputCopy=function(P){if(m.props.copyNumbersOnly){var D=window.getSelection().toString().replace(/[^0-9]+/g,"");P.clipboardData.setData("text/plain",D),P.preventDefault()}},m.getHighlightCountryIndex=function(P){var D=m.state.highlightCountryIndex+P;return D<0||D>=m.state.onlyCountries.length+m.state.preferredCountries.length?D-P:m.props.enableSearch&&D>m.getSearchFilteredCountries().length?0:D},m.searchCountry=function(){var P=m.getProbableCandidate(m.state.queryString)||m.state.onlyCountries[0],D=m.state.onlyCountries.findIndex(function(Q){return Q==P})+m.state.preferredCountries.length;m.scrollTo(m.getElement(D),!0),m.setState({queryString:"",highlightCountryIndex:D})},m.handleKeydown=function(P){var D=m.props.keys,Q=P.target.className;if(Q.includes("selected-flag")&&P.which===D.ENTER&&!m.state.showDropdown)return m.handleFlagDropdownClick(P);if(Q.includes("form-control")&&(P.which===D.ENTER||P.which===D.ESC))return P.target.blur();if(m.state.showDropdown&&!m.props.disabled&&(!Q.includes("search-box")||P.which===D.UP||P.which===D.DOWN||P.which===D.ENTER||P.which===D.ESC&&P.target.value==="")){P.preventDefault?P.preventDefault():P.returnValue=!1;var be=function(ue){m.setState({highlightCountryIndex:m.getHighlightCountryIndex(ue)},function(){m.scrollTo(m.getElement(m.state.highlightCountryIndex),!0)})};switch(P.which){case D.DOWN:be(1);break;case D.UP:be(-1);break;case D.ENTER:m.props.enableSearch?m.handleFlagItemClick(m.getSearchFilteredCountries()[m.state.highlightCountryIndex]||m.getSearchFilteredCountries()[0],P):m.handleFlagItemClick([].concat(o(m.state.preferredCountries),o(m.state.onlyCountries))[m.state.highlightCountryIndex],P);break;case D.ESC:case D.TAB:m.setState({showDropdown:!1},m.cursorToEnd);break;default:(P.which>=D.A&&P.which<=D.Z||P.which===D.SPACE)&&m.setState({queryString:m.state.queryString+String.fromCharCode(P.which)},m.state.debouncedQueryStingSearcher)}}},m.handleInputKeyDown=function(P){var D=m.props,Q=D.keys,be=D.onEnterKeyPress,ue=D.onKeyDown;P.which===Q.ENTER&&be&&be(P),ue&&ue(P)},m.handleClickOutside=function(P){m.dropdownRef&&!m.dropdownContainerRef.contains(P.target)&&m.state.showDropdown&&m.setState({showDropdown:!1})},m.handleSearchChange=function(P){var D=P.currentTarget.value,Q=m.state,be=Q.preferredCountries,ue=Q.selectedCountry,Ce=0;if(D===""&&ue){var we=m.state.onlyCountries;Ce=m.concatPreferredCountries(be,we).findIndex(function(Re){return Re==ue}),setTimeout(function(){return m.scrollTo(m.getElement(Ce))},100)}m.setState({searchValue:D,highlightCountryIndex:Ce})},m.concatPreferredCountries=function(P,D){return P.length>0?o(new Set(P.concat(D))):D},m.getDropdownCountryName=function(P){return P.localName||P.name},m.getSearchFilteredCountries=function(){var P=m.state,D=P.preferredCountries,Q=P.onlyCountries,be=P.searchValue,ue=m.props.enableSearch,Ce=m.concatPreferredCountries(D,Q),we=be.trim().toLowerCase().replace("+","");if(ue&&we){if(/^\d+$/.test(we))return Ce.filter(function(de){var Se=de.dialCode;return["".concat(Se)].some(function(q){return q.toLowerCase().includes(we)})});var Re=Ce.filter(function(de){var Se=de.iso2;return["".concat(Se)].some(function(q){return q.toLowerCase().includes(we)})}),ee=Ce.filter(function(de){var Se=de.name,q=de.localName;return de.iso2,["".concat(Se),"".concat(q||"")].some(function(se){return se.toLowerCase().includes(we)})});return m.scrollToTop(),o(new Set([].concat(Re,ee)))}return Ce},m.getCountryDropdownList=function(){var P=m.state,D=P.preferredCountries,Q=P.highlightCountryIndex,be=P.showDropdown,ue=P.searchValue,Ce=m.props,we=Ce.disableDropdown,Re=Ce.prefix,ee=m.props,de=ee.enableSearch,Se=ee.searchNotFound,q=ee.disableSearchIcon,se=ee.searchClass,_e=ee.searchStyle,ot=ee.searchPlaceholder,Ke=ee.autocompleteSearch,lt=m.getSearchFilteredCountries().map(function(Ue,Nt){var Mt=Q===Nt,an=re()({country:!0,preferred:Ue.iso2==="us"||Ue.iso2==="gb",active:Ue.iso2==="us",highlight:Mt}),St="flag ".concat(Ue.iso2);return p.a.createElement("li",Object.assign({ref:function(Gt){return m["flag_no_".concat(Nt)]=Gt},key:"flag_no_".concat(Nt),"data-flag-key":"flag_no_".concat(Nt),className:an,"data-dial-code":"1",tabIndex:we?"-1":"0","data-country-code":Ue.iso2,onClick:function(Gt){return m.handleFlagItemClick(Ue,Gt)},role:"option"},Mt?{"aria-selected":!0}:{}),p.a.createElement("div",{className:St}),p.a.createElement("span",{className:"country-name"},m.getDropdownCountryName(Ue)),p.a.createElement("span",{className:"dial-code"},Ue.format?m.formatNumber(Ue.dialCode,Ue):Re+Ue.dialCode))}),gt=p.a.createElement("li",{key:"dashes",className:"divider"});D.length>0&&(!de||de&&!ue.trim())&<.splice(D.length,0,gt);var It=re()(a({"country-list":!0,hide:!be},m.props.dropdownClass,!0));return p.a.createElement("ul",{ref:function(Ue){return!de&&Ue&&Ue.focus(),m.dropdownRef=Ue},className:It,style:m.props.dropdownStyle,role:"listbox",tabIndex:"0"},de&&p.a.createElement("li",{className:re()(a({search:!0},se,se))},!q&&p.a.createElement("span",{className:re()(a({"search-emoji":!0},"".concat(se,"-emoji"),se)),role:"img","aria-label":"Magnifying glass"},"🔎"),p.a.createElement("input",{className:re()(a({"search-box":!0},"".concat(se,"-box"),se)),style:_e,type:"search",placeholder:ot,autoFocus:!0,autoComplete:Ke?"on":"off",value:ue,onChange:m.handleSearchChange})),lt.length>0?lt:p.a.createElement("li",{className:"no-entries-message"},p.a.createElement("span",null,Se)))};var pe,Y=new ne(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),K=Y.onlyCountries,me=Y.preferredCountries,ye=Y.hiddenAreaCodes,Te=L.value?L.value.replace(/\D/g,""):"";pe=L.disableInitialCountryGuess?0:Te.length>1?m.guessSelectedCountry(Te.substring(0,6),L.country,K,ye)||0:L.country&&K.find(function(P){return P.iso2==L.country})||0;var X,je=Te.length<2&&pe&&!M()(Te,pe.dialCode)?pe.dialCode:"";X=Te===""&&pe===0?"":m.formatNumber((L.disableCountryCode?"":je)+Te,pe.name?pe:void 0);var Ae=K.findIndex(function(P){return P==pe});return m.state={showDropdown:L.showDropdown,formattedNumber:X,onlyCountries:K,preferredCountries:me,hiddenAreaCodes:ye,selectedCountry:pe,highlightCountryIndex:Ae,queryString:"",freezeSelection:!1,debouncedQueryStingSearcher:E()(m.searchCountry,250),searchValue:""},m}var Z,ae;return function(L,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(m&&m.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),m&&b(L,m)}(W,_),Z=W,(ae=[{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,m,pe){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 m=this.state,pe=m.onlyCountries,Y=m.selectedCountry,K=m.hiddenAreaCodes,me=this.props,ye=me.country,Te=me.prefix;if(L==="")return this.setState({selectedCountry:Y,formattedNumber:""});var X,je,Ae=L.replace(/\D/g,"");if(Y&&M()(L,Te+Y.dialCode))je=this.formatNumber(Ae,Y),this.setState({formattedNumber:je});else{var P=(X=this.props.disableCountryGuess?Y:this.guessSelectedCountry(Ae.substring(0,6),ye,pe,K)||Y)&&M()(Ae,Te+X.dialCode)?X.dialCode:"";je=this.formatNumber((this.props.disableCountryCode?"":P)+Ae,X||void 0),this.setState({selectedCountry:X,formattedNumber:je})}}},{key:"render",value:function(){var L,m,pe,Y=this,K=this.state,me=K.onlyCountries,ye=K.selectedCountry,Te=K.showDropdown,X=K.formattedNumber,je=K.hiddenAreaCodes,Ae=this.props,P=Ae.disableDropdown,D=Ae.renderStringAsFlag,Q=Ae.isValid,be=Ae.defaultErrorMessage,ue=Ae.specialLabel;if(typeof Q=="boolean")m=Q;else{var Ce=Q(X.replace(/\D/g,""),ye,me,je);typeof Ce=="boolean"?(m=Ce)===!1&&(pe=be):(m=!1,pe=Ce)}var we=re()((a(L={},this.props.containerClass,!0),a(L,"react-tel-input",!0),L)),Re=re()({arrow:!0,up:Te}),ee=re()(a({"form-control":!0,"invalid-number":!m,open:Te},this.props.inputClass,!0)),de=re()({"selected-flag":!0,open:Te}),Se=re()(a({"flag-dropdown":!0,"invalid-number":!m,open:Te},this.props.buttonClass,!0)),q="flag ".concat(ye&&ye.iso2);return p.a.createElement("div",{className:"".concat(we," ").concat(this.props.className),style:this.props.style||this.props.containerStyle,onKeyDown:this.handleKeydown},ue&&p.a.createElement("div",{className:"special-label"},ue),pe&&p.a.createElement("div",{className:"invalid-number-message"},pe),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:X,onKeyDown:this.handleInputKeyDown,placeholder:this.props.placeholder,disabled:this.props.disabled,type:"tel"},this.props.inputProps,{ref:function(se){Y.numberInputRef=se,typeof Y.props.inputProps.ref=="function"?Y.props.inputProps.ref(se):typeof Y.props.inputProps.ref=="object"&&(Y.props.inputProps.ref.current=se)}})),p.a.createElement("div",{className:Se,style:this.props.buttonStyle,ref:function(se){return Y.dropdownContainerRef=se}},D?p.a.createElement("div",{className:de},D):p.a.createElement("div",{onClick:P?void 0:this.handleFlagDropdownClick,className:de,title:ye?"".concat(ye.localName||ye.name,": + ").concat(ye.dialCode):"",tabIndex:P?"-1":"0",role:"button","aria-haspopup":"listbox","aria-expanded":!!Te||void 0},p.a.createElement("div",{className:q},!P&&p.a.createElement("div",{className:Re}))),Te&&this.getCountryDropdownList()))}}])&&c(Z.prototype,ae),W}(p.a.Component);Ie.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=Ie}]);const Ym=uu(zm),Jm=({value:e,onChange:t,error:r,onBlur:a,id:n,name:o,required:i,defaultCountry:l="us",className:s,responsive:c=!1,enableSearch:d=!0,autoComplete:f})=>{const y=(C,b)=>{t("+"+C,b.countryCode)};return u.jsxs("div",{className:s,children:[u.jsx("div",{className:Me("movmo-phone-input flex items-center px-3.5 py-0 h-10 rounded-lg border",c&&"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:u.jsx(Ym,{country:l,value:e.replace("+",""),onChange:y,inputProps:{onBlur:a,required:i,id:n,name:o,...f&&{autoComplete:f}},enableSearch:d,autoFormat:!0})}),r&&u.jsx("p",{className:"text-error-500 text-xs mt-1",children:r})]})},ya=e=>`otp-input-${e}`,lr=e=>Et(document.getElementById(ya(e))),Um=e=>Array.from({length:e},()=>""),Ua=({length:e,onComplete:t,onChange:r,disabled:a=!1,autoFocus:n=!1})=>{const[o,i]=w.useState(()=>Um(e)),l=w.useRef(null),s=w.useRef(t);s.current=t;const c=b=>{i(b),r==null||r(b.join(""))},d=b=>{const h=[...o];for(let x=0;x<Math.min(b.length,e);x++)h[x]=b[x];c(h);const p=h.findIndex(x=>x==="");lr(p!==-1?p:e-1)},f=(b,h)=>{if(a||!/^\d*$/.test(b))return;if(b.length>=e){d(b);return}const p=[...o];p[h]=b.slice(-1),c(p),b&&h<e-1&&lr(h+1)},y=b=>{if(a)return;b.preventDefault();const h=b.clipboardData.getData("text/plain").replace(/\D/g,"");h&&d(h)},C=b=>{if(a)return;const h=[...o];h[b]="",c(h),b>0&&lr(b-1)};return w.useEffect(()=>{n&&lr(0)},[]),w.useEffect(()=>{if(a)return;const b=o.join("");if(o.some(h=>h==="")){l.current=null;return}l.current!==b&&(l.current=b,s.current(b))},[o,a]),u.jsx("div",{className:"flex justify-center gap-1.5 sm:gap-2",children:Array.from({length:e}).map((b,h)=>u.jsx("input",{type:"text",inputMode:"numeric",pattern:"[0-9]*",maxLength:h===0?e:1,autoComplete:h===0?"one-time-code":"off","aria-label":`Digit ${h+1} of ${e}`,disabled:a,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${a?" bg-grayWarm-100 text-grayWarm-400 cursor-not-allowed":""}`,value:o[h]??"",onChange:p=>f(p.target.value,h),onPaste:y,id:ya(h),"data-testid":ya(h),onKeyDown:p=>{p.key==="Backspace"&&C(h)}},h))})};function $m(e){const t=Math.max(0,Math.ceil(e));return`${Math.floor(t/60)}:${String(t%60).padStart(2,"0")}`}const pr={didntGetIt:"Didn't get it?",resend:"Resend code",resendIn:e=>`Resend code in ${$m(e)}`,attemptsLeft:e=>`${e} ${e===1?"attempt":"attempts"} left.`},_l=({secondsLeft:e,onResend:t,disabled:r=!1,className:a=""})=>u.jsx("p",{className:`text-sm text-grayWarm-600 ${a}`,children:e>0?pr.resendIn(e):u.jsxs(u.Fragment,{children:[u.jsx("span",{children:pr.didntGetIt})," ",u.jsx("button",{type:"button",onClick:t,disabled:r,className:"font-semibold text-brand-600 hover:text-brand-700 rounded focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500 disabled:opacity-60 disabled:cursor-not-allowed",children:pr.resend})]})}),Qm=({email:e,phone:t,otpLength:r,otpAction:a,onVerify:n,onClose:o,externalError:i,externalErrorVariant:l="error",disabled:s=!1,title:c,description:d,onOtpChange:f,onResend:y,resendAfter:C=0,attemptsRemaining:b})=>{const[h,p]=w.useState(C);w.useEffect(()=>{p(C)},[C]);const x=h>0;w.useEffect(()=>{if(!x)return;const A=setInterval(()=>p(I=>Math.max(0,I-1)),1e3);return()=>clearInterval(A)},[x]);const E=()=>{y==null||y(),p(C)};w.useEffect(()=>{const A=I=>{I.key==="Escape"&&o()};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[o]);const R=l==="warning"?"text-warning-700":"text-error-500";return u.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex justify-center items-center z-[110] px-4",children:u.jsxs(Aa,{className:"w-full max-w-[400px] rounded-lg bg-white",children:[u.jsx(wa,{className:"p-4 border-b border-grayWarm-200",children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.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:u.jsx("svg",{className:"w-4 h-4 text-grayWarm-600",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),u.jsx("h2",{className:"text-xl md:text-lg font-bold text-center flex-1",children:c||"Verify Account"}),u.jsx("div",{className:"w-8"})]})}),u.jsxs(Ea,{className:"p-4 text-center",children:[u.jsxs("div",{className:"text-center mb-3",children:[u.jsx("p",{className:"text-sm md:text-md text-grayWarm-600",children:d||"Enter the code we sent to"}),!d&&u.jsx("p",{className:"text-sm md:text-md text-grayWarm-600 mt-1",children:a===qt.OTPAction.EMAILED?e:t})]}),u.jsx("div",{className:"mb-6",children:u.jsx(Ua,{length:r,onComplete:n,onChange:f,disabled:s})}),i&&u.jsx("p",{className:`${R} text-center text-sm mb-4`,children:i}),b!==void 0&&u.jsx("p",{className:"text-error-500 text-center text-sm mb-4",children:pr.attemptsLeft(b)}),y&&u.jsx(_l,{secondsLeft:h,onResend:E,disabled:s,className:"text-center mb-2"})]})]})})};function $a(){if(typeof window>"u")return!1;try{return window.self!==window.top}catch{return!0}}const Km=new Set(["invalid_email","rate_limited","resend_too_soon","flow_expired","invalid_code","too_many_attempts","invalid_request","invalid_credential","passkey_limit","credential_exists","not_found","reauth_required","movmo_session_required","first_party_only","issuer_unavailable","passkey_failed","sign_in_failed","recovery_required","recovery_blocked","recovery_cooldown","code_sends_paused"]);function qm(e){return Km.has(e)}class Rt extends Error{constructor(t,r,a,n,o){super(r),this.status=t,this.code=r,this.retryAfter=a,this.attemptsRemaining=n,this.until=o}}function eb(e){return typeof e=="object"&&e!==null?e:void 0}function ci(e){return typeof e=="number"&&Number.isFinite(e)?e:void 0}function pt(e){if(e instanceof Rt)return e;const t=eb(e);if(t){const{response:r}=t;if(r&&typeof r=="object"){const a=typeof r.status=="number"?r.status:0,n=r.data&&typeof r.data=="object"?r.data:void 0,o=n==null?void 0:n.code,i=typeof o=="string"&&qm(o)?o:"unknown";return new Rt(a,i,ci(n==null?void 0:n.retry_after),ci(n==null?void 0:n.attempts_remaining),i==="recovery_cooldown"&&typeof(n==null?void 0:n.until)=="string"?n.until:void 0)}if(t.isAxiosError===!0||t.request!==void 0)return new Rt(0,"network")}return e instanceof TypeError&&/failed to fetch/i.test(e.message)?new Rt(0,"network"):new Rt(0,"unknown")}const tb=/^[A-Za-z0-9_-]{1,512}$/,nb=/^rc1\.[A-Za-z0-9_-]+$/,Dl=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}};function rb(e,t){const r=()=>{var n;return((n=t==null?void 0:t.locale)==null?void 0:n.call(t))??"en-US"};function a(n){const o=Dl();return o?{...n,time_zone:o}:n}return{async login(n){try{const{data:o}=await e.post("/v1/auth/login",a({email:n,locale:r()}));return o}catch(o){throw pt(o)}},async sendCode(n){try{const{data:o}=await e.post("/v1/auth/code",a({flow_id:n}));return o}catch(o){throw pt(o)}},async startRecovery(n){try{const{data:o}=await e.post("/v1/auth/recovery",a({flow_id:n}));return o}catch(o){throw pt(o)}},async cancelRecovery(n){if(!nb.test(n))throw new Rt(0,"invalid_request");try{await e.post("/v1/auth/recovery/cancel",{token:n})}catch(o){throw pt(o)}},async passkeyOptions(){try{const{data:n}=await e.post("/v1/auth/passkey/options",{});return n}catch(n){throw pt(n)}},async verifyCode(n,o){try{const{data:i}=await e.post("/v1/auth/verify",{flow_id:n,code:o});return i}catch(i){throw pt(i)}},async verifyPasskey(n,o){try{const{data:i}=await e.post("/v1/auth/verify",{flow_id:n,credential:o});return i}catch(i){throw pt(i)}},async listPasskeys(){try{const{data:n}=await e.get("/v1/users/me/passkeys");return n.passkeys??[]}catch(n){throw pt(n)}},async startRegistration(){try{const{data:n}=await e.post("/v1/users/me/passkeys/registration/start",{});return n}catch(n){throw pt(n)}},async completeRegistration(n,o){try{const{data:i}=await e.post("/v1/users/me/passkeys/registration/complete",a({flow_id:n,credential:o}));return i.passkey}catch(i){throw pt(i)}},async logout(){try{await e.post("/v1/auth/logout",{})}catch(n){pt(n)}},async deletePasskey(n){if(!tb.test(n))throw new Rt(0,"invalid_request");try{await e.delete(`/v1/users/me/passkeys/${encodeURIComponent(n)}`)}catch(o){throw pt(o)}}}}const tt={passkeyNotRecognized:"That passkey isn't recognized. We've sent you a code instead.",tooManyAttempts:"Too many attempts. Start again.",flowExpired:"That took too long. Start again.",codeSent:"Code sent",signedIn:"Signed in",generic:"Something went wrong. Try again.",accountMismatch:"That's a different account. Sign in with the account you're using.",passkeyExists:"This passkey is already on your account.",enrollExpired:"That took too long. Try again.",invalidEmail:"Enter a valid email address.",passkeyUnavailable:"This browser couldn't use a passkey. Choose 'I can't use my passkey' to sign in with a code.",discoverableNotRecognized:"That passkey isn't recognized. Continue with your email instead.",recoveryStarted:"Sign in without your passkey",recoveryBlocked:"We can't recover this account right now"};function Wl(e){return e===void 0?"Incorrect code.":`Incorrect code. ${e} ${e===1?"attempt":"attempts"} left.`}function Qa(e){const t=e!==void 0&&Number.isFinite(e)?Math.max(1,Math.ceil(e/60)):1;return`Too many requests. Try again in ${t} ${t===1?"minute":"minutes"}.`}const Ka="movmo_pk_prompt",ab=864e5,ob=14,ib=3,sb=99,lb=3456e4,qa=e=>Math.floor(e/ab),ub=/^\d{1,3}(\.\d{1,3}){3}$/;function Ll(e){if(!e||e.includes(":")||ub.test(e))return;const t=e.split(".");if(!(t.length<2))return"."+t.slice(-2).join(".")}function cb(e,t){const r=[];for(const a of e.split(";")){const n=a.indexOf("=");n!==-1&&a.slice(0,n).trim()===t&&r.push(a.slice(n+1))}return r}function db(e){if(typeof e!="object"||e===null)return!1;const{v:t,d:r,n:a,x:n}=e;return t===1&&typeof r=="number"&&Number.isInteger(r)&&r>=0&&typeof a=="number"&&Number.isInteger(a)&&a>=0&&(n===0||n===1)}function Yn(e=document.cookie,t=Date.now()){const r=cb(e,Ka);if(r.length!==1)return null;let a;try{a=JSON.parse(decodeURIComponent(r[0]))}catch{return null}return!db(a)||a.d>qa(t)?null:a}function Xl(e=Date.now(),t=Yn(document.cookie,e)){return t?t.x===1?!1:t.d===0?!0:qa(e)-t.d>=ob&&t.n>=ib:!0}function eo(e){try{const t=Ll(window.location.hostname),r={...e,n:Math.min(e.n,sb)};document.cookie=`${Ka}=${encodeURIComponent(JSON.stringify(r))}; Path=/; Max-Age=${lb}; SameSite=Lax; Secure${t?"; Domain="+t:""}`}catch{}}function Hl(){const e=Yn();!e||e.d<=0||e.x!==0||eo({v:1,d:e.d,n:e.n+1,x:e.x})}function Zl(e=Date.now()){eo({v:1,d:qa(e),n:0,x:0})}function zl(e){const t=Yn();eo({v:1,d:(t==null?void 0:t.d)??0,n:(t==null?void 0:t.n)??0,x:e?1:0})}function Yl(){var e;return((e=Yn())==null?void 0:e.x)===1}function _r(e){switch(e instanceof DOMException||typeof e=="object"&&e!==null&&"name"in e?e.name:void 0){case"NotAllowedError":return"cancelled";case"AbortError":return"aborted";case"InvalidStateError":return"exists";case"NotSupportedError":return"unsupported";case"SecurityError":return"security";default:return"unknown"}}function to(){if(!(typeof window>"u"||!window.PublicKeyCredential))return window.PublicKeyCredential}async function no(){const e=to();if(!e)return{webauthn:!1,conditional:!1,platform:!1};let t=!1;try{typeof e.isConditionalMediationAvailable=="function"&&(t=await e.isConditionalMediationAvailable())}catch{t=!1}let r=!1;try{typeof e.isUserVerifyingPlatformAuthenticatorAvailable=="function"&&(r=await e.isUserVerifyingPlatformAuthenticatorAvailable())}catch{r=!1}return{webauthn:!0,conditional:t,platform:r}}class ro{constructor(){go(this,"current",null)}begin(){return this.abortCurrent(),this.current=new AbortController,this.current.signal}abort(){this.abortCurrent()}abortCurrent(){this.current&&!this.current.signal.aborted&&this.current.abort(new DOMException("Superseded by a new ceremony","AbortError"))}}function fb(e){return ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}function yn(e){const t=fb(e);let r="";for(let a=0;a<t.length;a++)r+=String.fromCharCode(t[a]);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function Ar(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),r=(4-t.length%4)%4;if(r===3)throw new Error("Invalid base64url string");const a=t+"=".repeat(r),n=atob(a),o=new Uint8Array(n.length);for(let i=0;i<n.length;i++)o[i]=n.charCodeAt(i);return o.buffer}function Jl(e){if(Array.isArray(e))return e.map(t=>({...t,id:typeof t.id=="string"?Ar(t.id):t.id}))}function pb(e){const t={...e};typeof e.challenge=="string"&&(t.challenge=Ar(e.challenge));const r=Jl(e.allowCredentials);return r&&(t.allowCredentials=r),t}function gb(e){const t={...e};if(typeof e.challenge=="string"&&(t.challenge=Ar(e.challenge)),e.user&&typeof e.user=="object"){const a=e.user;t.user={...a,id:typeof a.id=="string"?Ar(a.id):a.id}}const r=Jl(e.excludeCredentials);return r&&(t.excludeCredentials=r),t}function mb(e){const t=to();return t&&typeof t.parseRequestOptionsFromJSON=="function"?t.parseRequestOptionsFromJSON(e.publicKey):pb(e.publicKey)}function bb(e){const t=to();return t&&typeof t.parseCreationOptionsFromJSON=="function"?t.parseCreationOptionsFromJSON(e.publicKey):gb(e.publicKey)}function hb(e){const t={clientDataJSON:yn(e.clientDataJSON)},r=e;r.authenticatorData&&(t.authenticatorData=yn(r.authenticatorData),t.signature=r.signature?yn(r.signature):void 0,t.userHandle=r.userHandle?yn(r.userHandle):void 0);const a=e;return a.attestationObject&&(t.attestationObject=yn(a.attestationObject),typeof a.getTransports=="function"&&(t.transports=a.getTransports())),t}function vb(e){return{id:e.id,rawId:yn(e.rawId),type:e.type,authenticatorAttachment:e.authenticatorAttachment??void 0,clientExtensionResults:e.getClientExtensionResults(),response:hb(e.response)}}function Ul(e){const t=e;if(typeof t.toJSON=="function")try{return t.toJSON()}catch{}return vb(e)}async function Ca(e,t){const a={publicKey:mb(e),signal:t.signal};t.conditional&&(a.mediation="conditional");const n=await navigator.credentials.get(a);if(!n)throw new DOMException("No credential returned","NotAllowedError");return Ul(n)}async function $l(e,t){let r=e.publicKey;if(t.securityKey){const o=r.authenticatorSelection??{};r={...r,hints:["security-key"],authenticatorSelection:{...o,authenticatorAttachment:"cross-platform"}}}const a=bb({publicKey:r}),n=await navigator.credentials.create({publicKey:a,signal:t.signal});if(!n)throw new DOMException("No credential returned","NotAllowedError");return Ul(n)}function di(e){if(e.aborted)throw new DOMException("Registration aborted","AbortError")}async function ao(e,t){const r=await e.startRegistration();di(t.signal);const a=await $l(r.options,{signal:t.signal,securityKey:t.securityKey});return di(t.signal),e.completeRegistration(r.flow_id,a)}function qr(e){switch(e.code){case"invalid_code":return{code:e.code,message:Wl(e.attemptsRemaining)};case"too_many_attempts":return{code:e.code,message:tt.tooManyAttempts};case"rate_limited":return{code:e.code,message:Qa(e.retryAfter)};case"flow_expired":return{code:e.code,message:tt.flowExpired};case"invalid_email":return{code:e.code,message:tt.invalidEmail};default:return{code:e.code,message:tt.generic}}}function yb(e){return e==="flow_expired"||e==="too_many_attempts"}function Cb(e){const t=e==="security"||e==="unsupported"?tt.passkeyUnavailable:tt.generic;return{code:e,message:t}}function xb(e){if(e instanceof Rt)switch(e.code){case"credential_exists":return{code:e.code,message:tt.passkeyExists};case"flow_expired":return{code:e.code,message:tt.enrollExpired};case"rate_limited":return{code:e.code,message:Qa(e.retryAfter)};default:return{code:e.code,message:tt.generic}}const t=_r(e);return t==="cancelled"||t==="aborted"?null:t==="exists"?{code:t,message:tt.passkeyExists}:{code:t,message:tt.generic}}async function Ib(e){return e.method!=="otp"||e.loginNext!=="code"||e.surface!=="top-level"||e.offerEnrollment===!1||!await e.platformAuthenticator()?!1:Xl()}const Ql=27e4,ea=6;function Kl(e){const t=w.useRef(e);t.current=e;const[r]=w.useState($a),a=e.surface==="top-level"&&!r,n=a?"top-level":"embedded",o=e.lockedEmail!==void 0||e.expectedUserId!==void 0,[i,l]=w.useState("email"),[s,c]=w.useState(e.lockedEmail??e.initialEmail??""),[d,f]=w.useState(!1),[y,C]=w.useState(null),[b,h]=w.useState(ea),[p,x]=w.useState(0),[E,R]=w.useState(void 0),[A,I]=w.useState(!1),[j,F]=w.useState(!1),[M,oe]=w.useState(!1),[re,ce]=w.useState(""),[z]=w.useState(()=>new ro),le=w.useRef(!1),G=w.useRef("email"),O=w.useRef(s),V=w.useRef(0);V.current=p;const $=w.useRef(0),ne=w.useRef(null),Ie=w.useRef(null),_=w.useRef(null),W=w.useRef(0),Z=w.useRef(null),ae=w.useRef(null),L=w.useRef(!1),m=w.useRef(null),pe=w.useRef(!1),Y=w.useRef(!1),K=w.useRef(!1),me=()=>ae.current??(ae.current=no()),ye=T=>{G.current=T,l(T),T!=="code"&&x(0),T!=="passkey"&&F(!1),T!=="recovery"&&oe(!1)},Te=T=>{C(T),T&&ce("")},X=T=>le.current&&$.current===T,je=T=>{const U=++$.current;return ne.current=T,f(!0),C(null),U},Ae=T=>{$.current===T&&(ne.current=null,f(!1))},P=()=>{$.current++,ne.current=null,f(!1)},D=()=>({surface:t.current.promptSurface??"modal"}),Q=T=>{var U,ie;return(ie=(U=t.current).onEvent)==null?void 0:ie.call(U,T,D())},be=()=>{Z.current!==null&&(clearTimeout(Z.current),Z.current=null),W.current++},ue=()=>{be(),z.abort()},Ce=async()=>{if(!a||o)return;be();const T=W.current,U=()=>le.current&&W.current===T&&G.current==="email"&&ne.current===null,{conditional:ie}=await me();if(!U()||!ie)return;const Xe=z.begin();Z.current=setTimeout(()=>void Ce(),Ql);let rt;try{rt=await t.current.api.passkeyOptions()}catch{return}if(!U()||Xe.aborted)return;const dt=rt.flow_id;Ca(rt.options,{signal:Xe,conditional:!0}).then(v=>{U()&&we(dt,v)},()=>{})},we=async(T,U)=>{be();const ie=je("request");let Xe;try{Xe=await t.current.api.verifyPasskey(T,U)}catch(rt){if(!X(ie))return;const dt=pt(rt).code==="invalid_credential";Re(ie,dt?{code:"invalid_credential",message:tt.discoverableNotRecognized}:null);return}X(ie)&&await Ke(ie,Xe,"passkey",null)},Re=(T,U)=>{Ae(T),Te(U),G.current==="passkey"&&F(!0),G.current==="email"&&Ce()},ee=(T,U)=>{const ie=G.current==="email";Ae(T),Ie.current=null,ye("email"),Te(U),ie&&Ce()},de=(T,U)=>{const ie=pt(U);if(ie.code==="recovery_required"){Ae(T),Te(null),ye("recovery"),ce(tt.recoveryStarted);return}if(ie.code==="recovery_blocked"){Ae(T),Te(null),oe(!0),ce(tt.recoveryBlocked);return}if(yb(ie.code)){ee(T,qr(ie));return}if(ie.code==="resend_too_soon"){Ae(T),x(Math.max(0,Math.ceil(ie.retryAfter??0)));return}ie.code==="invalid_code"&&R(ie.attemptsRemaining),Re(T,qr(ie))},Se=async(T,U)=>{ne.current="request";try{const ie=await U();return X(T)?ie:void 0}catch(ie){X(T)&&de(T,ie);return}},q=(T,U)=>{_.current=T.flow_id,h(T.code_length||ea),R(void 0),ye("code"),x(Math.max(0,T.resend_after??0)),ce(tt.codeSent),U&&C(U)},se=async(T,U,ie)=>{const Xe=await Se(T,()=>t.current.api.sendCode(U));Xe&&(Ae(T),q(Xe,ie))},_e=()=>{P(),ue(),Ie.current=null,ye("mismatch"),Te({code:"account_mismatch",message:tt.accountMismatch});const{api:T}=t.current;(async()=>{var U,ie;try{await T.logout()}catch{}(ie=(U=t.current).onAccountMismatch)==null||ie.call(U)})()},ot=(T,U)=>{pe.current||(pe.current=!0,m.current=null,ye("done"),ce(tt.signedIn),t.current.onSignedIn(T,U))},Ke=async(T,U,ie,Xe)=>{var Oe,ke,Ne,Ge;const rt=t.current,dt=rt.expectedUserId;if(dt!==void 0&&U.user_id!==dt){_e();return}let v;try{v=await rt.getCurrentUser()}catch{if(!X(T))return;const qe={code:"unknown",message:tt.generic};G.current==="passkey"?ee(T,qe):Re(T,qe);return}if(!X(T))return;if(dt!==void 0&&v.id!==dt){_e();return}const B=typeof U.recovery_until=="string"&&U.recovery_until!=="",J=B?{method:"recovery",newUser:U.new_user,recoveryUntil:U.recovery_until}:{method:ie,newUser:U.new_user};Y.current||(Y.current=!0,(ke=(Oe=t.current).onVerified)==null||ke.call(Oe,v,J)),J.method==="otp"&&a&&Hl(),B&&((Ge=(Ne=t.current).onEvent)==null||Ge.call(Ne,"sign_in",{...D(),method:"recovery"}));const he=await Ib({method:J.method,loginNext:Xe,surface:n,offerEnrollment:rt.offerEnrollment,platformAuthenticator:async()=>(await me()).platform});X(T)&&(Ae(T),he?(m.current={user:v,info:J},ye("enroll"),Q("passkey_prompt_shown")):ot(v,J))},lt=async(T,U,ie,Xe)=>{if(!a){Ae(T);return}ne.current="ceremony";let rt;try{rt=await Ca(U.options,{signal:ie})}catch(v){if(!X(T))return;const B=_r(v);Re(T,B==="cancelled"||B==="aborted"?null:Cb(B));return}if(!X(T))return;ne.current="request";let dt;try{dt=await t.current.api.verifyPasskey(U.flow_id,rt)}catch(v){if(!X(T))return;const B=pt(v);if(B.code==="invalid_credential"&&Xe){const J={code:"invalid_credential",message:tt.passkeyNotRecognized};await se(T,U.flow_id,J)}else B.code==="invalid_credential"?Re(T,{code:"invalid_credential",message:tt.discoverableNotRecognized}):Xe?ee(T,qr(B)):de(T,v);return}X(T)&&await Ke(T,dt,"passkey",Xe?"passkey":null)},gt=(T,U)=>(F(!1),lt(T,U,z.begin(),!0)),It=T=>{t.current.lockedEmail===void 0&&(O.current=T,c(T))},Ue=async()=>{if(ne.current||G.current!=="email")return;ue();const T=(t.current.lockedEmail??O.current).trim();if(!T){Te({code:"invalid_email",message:tt.invalidEmail}),Ce();return}O.current=T,c(T);const U=je("request"),ie=await Se(U,()=>t.current.api.login(T));ie&&await Nt(U,ie)},Nt=async(T,U)=>{Ie.current=U,U.next==="code"?(Ae(T),q(U)):a?(h(U.code_length||ea),ye("passkey"),await gt(T,U)):await se(T,U.flow_id)},Mt=async()=>{if(!a||o||!L.current||ne.current||G.current!=="email")return;ue();const T=je("ceremony"),U=z.begin(),ie=await Se(T,()=>t.current.api.passkeyOptions());ie&&await lt(T,ie,U,!1)},an=()=>{const T=Ie.current;!a||G.current!=="passkey"||ne.current||(T==null?void 0:T.next)!=="passkey"||gt(je("ceremony"),T)},St=()=>{o||G.current!=="passkey"||ne.current==="request"||!Ie.current||(P(),z.abort(),C(null),ye("recovery"),ce(tt.recoveryStarted))},Gt=async()=>{var Xe;const T=(Xe=Ie.current)==null?void 0:Xe.flow_id;if(G.current!=="recovery"||ne.current||!T||o)return;const U=je("request"),ie=await Se(U,()=>t.current.api.startRecovery(T));ie&&(Ae(U),Q("recovery_started"),q(ie))},Pt=()=>{var T;G.current!=="recovery"||ne.current||M||(C(null),a&&((T=Ie.current)==null?void 0:T.next)==="passkey"?ye("passkey"):(Ie.current=null,ye("email")))},on=()=>{G.current!=="passkey"&&G.current!=="code"||(P(),z.abort(),Ie.current=null,C(null),ye("email"))},Xt=async T=>{var rt;const U=_.current;if(G.current!=="code"||ne.current||!U)return;const ie=je("request"),Xe=await Se(ie,()=>t.current.api.verifyCode(U,T));Xe&&await Ke(ie,Xe,"otp",((rt=Ie.current)==null?void 0:rt.next)??null)},sn=async()=>{const T=_.current;if(G.current!=="code"||ne.current||V.current>0||!T)return;ce("");const U=je("request"),ie=await Se(U,()=>t.current.api.sendCode(T));ie&&(Ae(U),q(ie))},Ht=async()=>{if(!a||G.current!=="enroll"||ne.current)return;const T=je("ceremony"),U=z.begin();try{await ao(t.current.api,{signal:U})}catch(ie){X(T)&&Re(T,xb(ie));return}X(T)&&(Ae(T),ye("enrolled"),Q("passkey_prompt_accepted"))},Ct=()=>{const T=m.current;T&&ot(T.user,T.info)},ht=()=>{G.current==="enroll"&&(P(),z.abort(),C(null),Zl(),Q("passkey_prompt_declined"),Ct())},Zt=()=>{G.current==="enrolled"&&Ct()},kt=()=>{G.current==="enroll"?ht():G.current==="enrolled"?Zt():(P(),ue())};w.useEffect(()=>(le.current=!0,()=>{le.current=!1,ue()}),[]),w.useEffect(()=>{if(!a||o)return;let T=!1;return me().then(U=>{L.current=U.webauthn,T||I(U.webauthn)}),()=>{T=!0}},[a,o]);const ln=()=>{var Xe;const{autoContinue:T,lockedEmail:U,initialEmail:ie}=t.current;return!!(T&&((Xe=U??ie)!=null&&Xe.trim())&&!K.current)};w.useEffect(()=>{if(!(i!=="email"||ne.current||ln()))return Ce(),be},[i]),w.useEffect(()=>{ln()&&(K.current=!0,Ue())},[]);const un=i==="code"&&p>0;return w.useEffect(()=>{if(!un)return;const T=setInterval(()=>x(U=>Math.max(0,U-1)),1e3);return()=>clearInterval(T)},[un]),{step:i,email:s,setEmail:It,busy:d,error:(y==null?void 0:y.message)??null,errorCode:(y==null?void 0:y.code)??null,codeLength:b,resendIn:p,attemptsRemaining:E,canUsePasskeyButton:A,passkeyFailed:j,recoveryAvailable:!o,recoveryBlocked:M,liveMessage:re,submitEmail:()=>void Ue(),signInWithPasskey:()=>void Mt(),retryPasskey:an,cantUsePasskey:St,sendRecoveryCode:()=>void Gt(),back:Pt,changeEmail:on,submitCode:T=>void Xt(T),resendCode:()=>void sn(),acceptEnrollment:()=>void Ht(),declineEnrollment:ht,finish:Zt,close:kt}}const Qt={prompt:{heading:"Skip the code next time",body:"Set up a passkey and sign in with Face ID, your fingerprint or your screen lock.",accept:"Set up passkey",decline:"Not now",footnote:"You can manage passkeys anytime in Security."},added:{heading:"Passkey added",body:"Next time, sign in with Face ID, your fingerprint or your screen lock. We've emailed you a confirmation.",done:"Done"}},xa=({status:e="prompt",onAccept:t,onDecline:r,onDone:a,busy:n=!1,error:o=null})=>e==="added"?u.jsxs("div",{className:"flex flex-col items-center text-center gap-4",children:[u.jsx("div",{className:"flex items-center justify-center w-12 h-12 rounded-full bg-success-50",children:u.jsx(Ja,{size:24,className:"text-success-600"})}),u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx("h2",{tabIndex:-1,className:"text-lg font-semibold text-grayWarm-950 focus:outline-none",children:Qt.added.heading}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:Qt.added.body})]}),u.jsx("button",{type:"button",onClick:a,className:"w-full py-3 px-4 bg-gradient-to-r from-brand-500 to-brand-600 text-white font-semibold rounded-xl transition-opacity hover:opacity-90",children:Qt.added.done})]}):u.jsxs("div",{className:"flex flex-col items-center text-center gap-4",children:[u.jsx("div",{className:"flex items-center justify-center w-12 h-12 rounded-full bg-brand-50",children:u.jsx(Pl,{size:24,className:"text-brand-600"})}),u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx("h2",{tabIndex:-1,className:"text-lg font-semibold text-grayWarm-950 focus:outline-none",children:Qt.prompt.heading}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:Qt.prompt.body})]}),o&&u.jsxs("div",{role:"alert",className:"w-full flex items-start gap-2 rounded-lg bg-warning-50 border border-warning-200 p-3 text-left",children:[u.jsx(Rn,{size:20,className:"text-warning-700 flex-shrink-0 mt-0.5"}),u.jsx("p",{className:"text-sm text-warning-700",children:o})]}),u.jsxs("div",{className:"w-full flex flex-col gap-2",children:[u.jsx("button",{type:"button",onClick:t,disabled:n,"aria-busy":n,className:"w-full py-3 px-4 bg-gradient-to-r from-brand-500 to-brand-600 text-white font-semibold rounded-xl transition-opacity hover:opacity-90 disabled:opacity-70 disabled:cursor-not-allowed",children:Qt.prompt.accept}),u.jsx("button",{type:"button",onClick:r,className:"w-full py-3 px-4 bg-white border border-grayWarm-300 text-grayWarm-700 font-semibold rounded-xl transition-colors hover:bg-grayWarm-50",children:Qt.prompt.decline})]}),u.jsx("p",{className:"text-xs text-grayWarm-500",children:Qt.prompt.footnote})]}),oo="focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500 focus-visible:ring-offset-2",Ln=S.forwardRef(({className:e,type:t="button",...r},a)=>u.jsx("button",{ref:a,type:t,className:Me("w-full h-11 px-4 inline-flex items-center justify-center gap-2 rounded-xl bg-gradient-to-r from-brand-500 to-brand-600 text-white font-semibold shadow-sm transition-opacity hover:opacity-95 disabled:opacity-60 disabled:cursor-not-allowed",oo,e),...r})),mn=S.forwardRef(({className:e,type:t="button",...r},a)=>u.jsx("button",{ref:a,type:t,className:Me("w-full h-11 px-4 inline-flex items-center justify-center gap-2 rounded-xl bg-white border border-grayWarm-300 text-grayWarm-700 font-semibold shadow-sm transition-colors hover:bg-grayWarm-50 disabled:opacity-60 disabled:cursor-not-allowed",oo,e),...r})),wr=S.forwardRef(({className:e,type:t="button",...r},a)=>u.jsx("button",{ref:a,type:t,className:Me("text-sm font-semibold text-brand-600 hover:text-brand-700 rounded disabled:opacity-60 disabled:cursor-not-allowed",oo,e),...r}));Ln.displayName="PrimaryButton";mn.displayName="SecondaryButton";wr.displayName="LinkButton";const Ze={email:{title:"Sign in to Movmo",description:"Enter your email. New here? We'll create your account.",label:"Email",continue:"Continue",divider:"or",passkey:"Sign in with passkey"},passkey:{title:"Sign in with your passkey",description:"Use Face ID, your fingerprint or your screen lock.",change:"Change",changeLabel:"Change email",continue:"Continue",failed:"Your passkey didn't finish. Try again, or choose 'I can't use my passkey'.",tryAgain:"Try again",cantUse:"I can't use my passkey",reauthDescription:"Use your passkey to continue. Lost it? Recover your account from the sign-in page."},recovery:{title:"Sign in without your passkey",description:e=>`We'll email a code to ${e}. Signing in this way starts account recovery: everyone on your account is notified, and for 24 hours this session can't add passkeys, change contact details, add payment methods or connect airlines.`,send:"Send me a code",back:"Back",blockedTitle:"We can't recover this account right now",blockedDescription:"Too many recovery attempts, or recovery was recently cancelled from this account. Try again later or sign in with a passkey on another device.",close:"Close"},code:{title:"Check your email",description:e=>`Enter the code we sent to ${e}.`},cancel:"Cancel"},io=({flow:e,lockedEmail:t,title:r,description:a,onCancel:n,onClose:o,icon:i})=>{const l=n?()=>{e.close(),n()}:void 0;let s=null;switch(e.step){case"email":s=u.jsx(Sb,{flow:e,locked:t!==void 0,title:r,description:a,onCancel:l,icon:i});break;case"passkey":s=u.jsx(Ab,{flow:e,locked:t!==void 0,title:r,description:a,onCancel:l,icon:i});break;case"recovery":s=u.jsx(Eb,{flow:e,onCancel:l??o});break;case"code":s=u.jsx(Nb,{flow:e,title:r,onCancel:l});break;case"enroll":s=u.jsx(fi,{children:u.jsx(xa,{status:"prompt",onAccept:e.acceptEnrollment,onDecline:e.declineEnrollment,busy:e.busy,error:e.error})});break;case"enrolled":s=u.jsx(fi,{children:u.jsx(xa,{status:"added",onAccept:e.acceptEnrollment,onDecline:e.declineEnrollment,onDone:e.finish})});break;case"mismatch":s=u.jsx(Rb,{flow:e,title:r,onCancel:l,icon:i});break}return u.jsxs("div",{className:"text-left",children:[u.jsx("div",{"aria-live":"polite",className:"sr-only",children:e.error??e.liveMessage}),u.jsx("div",{"data-step":e.step,className:"motion-safe:animate-in motion-safe:fade-in-0 motion-safe:slide-in-from-bottom-1 motion-safe:duration-200",children:s},e.step)]})},fi=({children:e})=>{const t=w.useRef(null);return w.useEffect(()=>{var r;Et((r=t.current)==null?void 0:r.querySelector("h2"))},[]),u.jsx("div",{ref:t,children:e})},An=({icon:e,title:t,description:r,headingRef:a})=>u.jsxs("div",{className:"flex flex-col gap-5 mb-5",children:[u.jsx("div",{className:"flex items-center justify-center w-12 h-12 rounded-[10px] border border-grayWarm-200 shadow-sm text-grayWarm-700",children:u.jsx(e,{size:24})}),u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx("h2",{ref:a,tabIndex:a?-1:void 0,className:"text-lg font-semibold text-grayWarm-950 focus:outline-none",children:t}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:r})]})]}),so=({children:e})=>u.jsxs("div",{className:"flex items-start gap-3 rounded-xl border border-warning-200 bg-warning-50 p-4",children:[u.jsx(Rn,{size:20,className:"flex-shrink-0 text-warning-700"}),u.jsx("p",{className:"text-sm text-warning-700",children:e})]}),ql=({primary:e,onCancel:t})=>t?u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsx(mn,{onClick:t,children:Ze.cancel}),e]}):u.jsx(u.Fragment,{children:e}),Sb=({flow:e,locked:t,title:r,description:a,onCancel:n,icon:o})=>{const i=w.useRef(null),l=w.useRef(null),s=w.useId(),c=w.useId();return w.useEffect(()=>{Et(t?l.current:i.current)},[t]),u.jsxs(u.Fragment,{children:[u.jsx(An,{icon:o??Fl,title:r??Ze.email.title,description:a??Ze.email.description}),u.jsxs("form",{noValidate:!0,onSubmit:d=>{d.preventDefault(),e.submitEmail()},className:"flex flex-col gap-5",children:[u.jsxs("div",{className:"flex flex-col gap-1.5",children:[u.jsx("label",{htmlFor:s,className:"text-sm font-medium text-grayWarm-700",children:Ze.email.label}),u.jsxs("div",{className:"relative",children:[u.jsx(Fr,{size:20,className:"pointer-events-none absolute left-3.5 top-1/2 -translate-y-1/2 text-grayWarm-500"}),u.jsx(Vt,{ref:i,id:s,type:"email",name:"email",autoComplete:"username webauthn",value:e.email,onChange:d=>e.setEmail(d.target.value),disabled:t,"aria-invalid":e.error?!0:void 0,"aria-describedby":e.error?c:void 0,className:`h-11 pl-10 ${e.error?"border-error-500 focus:border-error-500":""} autofill:bg-white autofill:shadow-[inset_0_0_0px_1000px_white]`})]}),e.error&&u.jsx("p",{id:c,className:"text-sm text-error-500",children:e.error})]}),u.jsx(ql,{onCancel:n,primary:u.jsx(Ln,{ref:l,type:"submit",disabled:e.busy,"aria-busy":e.busy,children:Ze.email.continue})})]}),e.canUsePasskeyButton&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"flex items-center gap-2 my-5","aria-hidden":"true",children:[u.jsx("div",{className:"h-px flex-1 bg-grayWarm-200"}),u.jsx("span",{className:"text-sm text-grayWarm-500",children:Ze.email.divider}),u.jsx("div",{className:"h-px flex-1 bg-grayWarm-200"})]}),u.jsxs(mn,{onClick:e.signInWithPasskey,disabled:e.busy,children:[u.jsx(za,{size:20}),Ze.email.passkey]})]})]})},Ab=({flow:e,locked:t,title:r,description:a,onCancel:n,icon:o})=>{const i=w.useRef(null);w.useEffect(()=>{Et(i.current)},[]);const l=e.error??(e.passkeyFailed?Ze.passkey.failed:null);return u.jsxs(u.Fragment,{children:[u.jsx(An,{icon:o??Gl,title:r??Ze.passkey.title,description:e.recoveryAvailable?a??Ze.passkey.description:Ze.passkey.reauthDescription,headingRef:i}),u.jsxs("div",{className:"flex flex-col gap-5",children:[l?u.jsx(so,{children:l}):u.jsxs("div",{className:"flex items-center justify-between gap-3 h-11 rounded-lg border border-grayWarm-300 bg-grayWarm-50 px-3.5 shadow-sm",children:[u.jsx("span",{className:"truncate text-base text-grayWarm-700",children:e.email}),!t&&u.jsx(wr,{onClick:e.changeEmail,"aria-label":Ze.passkey.changeLabel,children:Ze.passkey.change})]}),u.jsx(ql,{onCancel:n,primary:u.jsx(Ln,{onClick:e.retryPasskey,disabled:e.busy,"aria-busy":e.busy,children:e.passkeyFailed?Ze.passkey.tryAgain:Ze.passkey.continue})}),e.recoveryAvailable&&u.jsx(wr,{onClick:e.cantUsePasskey,className:"self-center",children:Ze.passkey.cantUse})]})]})},wb=e=>{const t=e.lastIndexOf("@");return t<1?e:`${e.slice(0,1)}•••${e.slice(t)}`},Eb=({flow:e,onCancel:t})=>{const r=w.useRef(null);return w.useEffect(()=>{Et(r.current)},[e.recoveryBlocked]),e.recoveryBlocked?u.jsxs(u.Fragment,{children:[u.jsx(An,{icon:Rn,title:Ze.recovery.blockedTitle,description:Ze.recovery.blockedDescription,headingRef:r}),u.jsx(Ln,{onClick:t??e.close,children:Ze.recovery.close})]}):u.jsxs(u.Fragment,{children:[u.jsx(An,{icon:Fr,title:Ze.recovery.title,description:Ze.recovery.description(wb(e.email)),headingRef:r}),u.jsxs("div",{className:"flex flex-col gap-5",children:[e.error&&u.jsx(so,{children:e.error}),u.jsx(Ln,{onClick:e.sendRecoveryCode,disabled:e.busy,"aria-busy":e.busy,children:Ze.recovery.send}),u.jsx(wr,{onClick:e.back,disabled:e.busy,className:"self-center",children:Ze.recovery.back})]})]})},Rb=({flow:e,title:t,onCancel:r,icon:a})=>u.jsxs(u.Fragment,{children:[u.jsx(An,{icon:a??Rn,title:t??Ze.email.title,description:e.error??""}),r&&u.jsx(mn,{onClick:r,children:Ze.cancel})]}),Nb=({flow:e,title:t,onCancel:r})=>u.jsxs(u.Fragment,{children:[u.jsx(An,{icon:Fr,title:t??Ze.code.title,description:Ze.code.description(e.email)}),u.jsxs("div",{className:"flex flex-col gap-5",children:[u.jsxs("div",{className:"flex flex-col gap-1.5",children:[u.jsx(Ua,{length:e.codeLength,onComplete:e.submitCode,autoFocus:!0}),e.error&&e.errorCode!=="invalid_credential"&&u.jsx("p",{className:"text-error-500 text-center text-sm",children:e.error})]}),e.error&&e.errorCode==="invalid_credential"&&u.jsx(so,{children:e.error}),u.jsx(_l,{secondsLeft:e.resendIn,onResend:e.resendCode,disabled:e.busy}),r&&u.jsx(mn,{onClick:r,children:Ze.cancel})]})]});function lo(e){const t=Kl(e),r=w.useRef(t);return r.current=t,w.useEffect(()=>()=>{const{step:a,close:n}=r.current;(a==="enroll"||a==="enrolled")&&n()},[]),t}const Gb=({title:e,description:t,onCancel:r,...a})=>{const n=lo(a);return u.jsx(io,{flow:n,lockedEmail:a.lockedEmail,title:e,description:t,onCancel:r})},Pb=({isOpen:e,...t})=>e?u.jsx(Tb,{...t}):null,Tb=({onClose:e,hideCloseButton:t=!1,onLoginSuccess:r,...a})=>{const n=lo({...a,promptSurface:a.promptSurface??"modal",onSignedIn:r}),o=()=>{n.close(),e()};return u.jsx(gn,{isOpen:n.step!=="done",onClose:o,title:Ze.email.title,header:"none",maxWidthPx:400,hideCloseButton:t,children:u.jsx(io,{flow:n,lockedEmail:a.lockedEmail,onClose:o})})},dn={title:"Confirm it's you",framed:"Manage passkeys on the Movmo Security page.",cancel:"Cancel",description:{add:"For your security, sign in again to add a passkey.",remove:"For your security, sign in again to remove this passkey."}},eu=({isOpen:e,...t})=>e?u.jsx(Ob,{...t}):null,Ob=e=>{const[t]=w.useState($a);return t?u.jsx(jb,{onCancel:e.onCancel}):u.jsx(Mb,{...e})},jb=({onCancel:e})=>u.jsx(gn,{isOpen:!0,onClose:e,title:dn.title,header:"none",maxWidthPx:400,children:u.jsxs("div",{className:"flex flex-col gap-5 text-left",children:[u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx("h2",{className:"text-lg font-semibold text-grayWarm-950",children:dn.title}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:dn.framed})]}),u.jsx(mn,{onClick:e,children:dn.cancel})]})}),Mb=({action:e,account:t,api:r,getCurrentUser:a,onConfirmed:n,onCancel:o,onMismatch:i})=>{const l=lo({api:r,surface:"top-level",getCurrentUser:a,lockedEmail:t.email,expectedUserId:t.id,autoContinue:!0,offerEnrollment:!1,onSignedIn:()=>n(),onAccountMismatch:i}),s=()=>{l.close(),o()};return u.jsx(gn,{isOpen:l.step!=="done",onClose:s,title:dn.title,header:"none",maxWidthPx:400,children:u.jsx(io,{flow:l,lockedEmail:t.email,title:dn.title,description:dn.description[e],onCancel:o,icon:jl})})},Le={loading:"Loading passkeys",framed:"Manage passkeys on the Movmo Security page.",empty:"Passkeys let you sign in with Face ID, your fingerprint, your screen lock or a security key. No code to wait for.",addPasskey:"Passkey",addPasskeyLabel:"Add passkey",addSecurityKey:"Security key",addSecurityKeyLabel:"Add security key",suggestToggle:"Suggest a passkey after I sign in with a code",limit:"You've reached the limit of 10 passkeys. Remove one to add another.",unsupported:"This browser doesn't support passkeys. You can still remove them here.",added:"Passkey added. We've emailed you a confirmation.",exists:"This passkey is already on your account.",expired:"That took too long. Try again.",generic:"Something went wrong. Try again.",confirmedAdd:"You're confirmed. Select + Passkey again to finish.",confirmedAddKey:"You're confirmed. Select + Security key again to finish.",recoveryInProgress:e=>e?`Account recovery is in progress. You can change passkeys after ${e}.`:"Account recovery is in progress. You can change passkeys once it ends.",retry:"Retry",sessionRequired:"Sign in again to manage passkeys",signIn:"Sign in",kind:{synced:"Synced",device:"This device",security_key:"Security key"},securityKeyTitle:"Security key",addedOn:e=>`Added ${e}`,lastUsed:e=>`Last used ${e}`,neverUsed:"Never used",removeLabel:e=>`Remove ${e}`,remove:{title:e=>`Remove ${e}?`,body:"You won't be able to sign in with it anymore. You can still sign in with a code.",cancel:"Cancel",confirm:"Remove"}},kb=10,Fb=6e3,Bb=new Set(["confirmedAdd","confirmedAddKey"]),Vb={synced:za,device:Ol,security_key:Tl},_b=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}),Db=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"}),Wb=e=>{const t=new Date(e);return Number.isNaN(t.getTime())?void 0:Db.format(t)},pi=e=>{const t=new Date(e);return Number.isNaN(t.getTime())?e:_b.format(t)};function tu(e){const t=e.kind??(e.synced?"synced":"device"),r=e.provider==="Passkey"&&t==="security_key"?Le.securityKeyTitle:e.provider,a=Le.kind[t]===r?null:Le.kind[t],n=`${Le.addedOn(pi(e.created_at))} · ${e.last_used_at?Le.lastUsed(pi(e.last_used_at)):Le.neverUsed}`;return{kind:t,title:r,badge:a,meta:n,Icon:Vb[t]}}const Lb=e=>{const t=w.useRef(e);t.current=e;const[r]=w.useState($a),[a,n]=w.useState("loading"),[o,i]=w.useState([]),[l,s]=w.useState(!1),[c,d]=w.useState(!1),[f,y]=w.useState(!1),[C,b]=w.useState(null),[h,p]=w.useState(0),[x,E]=w.useState(!1),[R,A]=w.useState(null),[I,j]=w.useState(null),[F,M]=w.useState(()=>!Yl()),[oe,re]=w.useState(null),[ce]=w.useState(()=>new ro),z=w.useRef(!1),le=w.useRef(!1),G=w.useRef(0),O=w.useId(),V=w.useCallback(async()=>{const Y=++G.current;n("loading");try{const[K,me]=await Promise.all([t.current.api.listPasskeys(),no()]);if(!le.current||Y!==G.current)return;i(K),s(me.webauthn),n("ready")}catch(K){if(!le.current||Y!==G.current)return;const me=K instanceof Rt&&K.code==="movmo_session_required";n(me?"sessionRequired":"error")}},[]);w.useEffect(()=>(le.current=!0,r||V(),()=>{le.current=!1,ce.abort()}),[r,ce,V]),w.useEffect(()=>{if(h===0)return;E(!0);const Y=setTimeout(()=>E(!1),Fb);return()=>clearTimeout(Y)},[h]);const $=Y=>{i(K=>K.filter(me=>me.id!==Y)),d(!1)},ne=(Y,K,me)=>{if(K instanceof Rt){switch(K.code){case"recovery_cooldown":re(K.until??"");return;case"reauth_required":me?b("generic"):j(Y);return;case"movmo_session_required":b("sessionRequired"),t.current.onSessionRequired();return;case"credential_exists":b("exists");return;case"passkey_limit":d(!0);return;case"flow_expired":b("expired");return;case"not_found":if(Y.type==="remove"){$(Y.passkey.id);return}break}b("generic");return}switch(_r(K)){case"cancelled":case"aborted":me&&Y.type==="add"&&b(Y.securityKey?"confirmedAddKey":"confirmedAdd");return;case"exists":b("exists");return;default:b("generic")}},Ie=async(Y,K=!1)=>{if(!z.current){z.current=!0,y(!0),b(null);try{if(Y.type==="add"){const me=await ao(t.current.api,{securityKey:Y.securityKey,signal:ce.begin()});if(!le.current)return;i(ye=>[me,...ye.filter(Te=>Te.id!==me.id)]),p(ye=>ye+1)}else{if(await t.current.api.deletePasskey(Y.passkey.id),!le.current)return;$(Y.passkey.id)}}catch(me){le.current&&ne(Y,me,K)}finally{z.current=!1,le.current&&(y(!1),A(null))}}},_=()=>{const Y=I;j(null),Y&&Ie(Y,!0)},W=()=>{j(null),t.current.onAccountMismatch()};if(r)return u.jsx(Kt,{tone:"neutral",children:Le.framed});if(a==="loading")return u.jsx(Hb,{});if(a==="error")return u.jsxs(Kt,{tone:"neutral",role:"alert",children:[u.jsx("span",{children:Le.generic}),u.jsx(nu,{onClick:()=>void V(),children:Le.retry})]});if(a==="sessionRequired")return u.jsx(mi,{onSignIn:()=>t.current.onSessionRequired()});const Z=oe??e.recoveryUntil??null,ae=Z?new Date(Z).getTime():Number.NaN,L=Z!==null&&(Number.isNaN(ae)||ae>Date.now()),m=c||o.length>=kb,pe=o.length===0;return u.jsxs("div",{className:"flex flex-col gap-4",children:[pe?u.jsx("p",{className:"text-sm text-grayWarm-600",children:Le.empty}):u.jsx("ul",{className:"flex flex-col divide-y divide-grayWarm-200 -my-3",children:o.map(Y=>u.jsx(Xb,{passkey:Y,disabled:f||L,onRemove:()=>A(Y)},Y.id))}),L&&u.jsx(Kt,{tone:"neutral",role:"status",children:Le.recoveryInProgress(Z?Wb(Z):void 0)}),u.jsx("div",{role:"status","aria-live":"polite",children:x&&u.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium text-grayWarm-700",children:[u.jsx(Ja,{size:20,className:"flex-shrink-0 text-success-600"}),Le.added]})}),l?m&&u.jsx(Kt,{tone:"neutral",children:Le.limit}):u.jsx(Kt,{tone:"neutral",children:Le.unsupported}),C==="sessionRequired"?u.jsx(mi,{onSignIn:()=>t.current.onSessionRequired()}):C&&Bb.has(C)?u.jsx(Kt,{tone:"neutral",role:"status",children:Le[C]}):C&&u.jsx(Kt,{tone:"warning",role:"alert",children:Le[C]}),l&&u.jsxs("div",{className:"flex flex-wrap gap-3",children:[u.jsx(gi,{label:Le.addPasskeyLabel,disabled:f||m||L,onClick:()=>void Ie({type:"add",securityKey:!1}),children:Le.addPasskey}),u.jsx(gi,{label:Le.addSecurityKeyLabel,disabled:f||m||L,onClick:()=>void Ie({type:"add",securityKey:!0}),children:Le.addSecurityKey})]}),pe&&u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(Xa,{id:O,checked:F,onCheckedChange:Y=>{M(Y),zl(!Y)}}),u.jsx("label",{htmlFor:O,className:"text-sm font-medium text-grayWarm-700",children:Le.suggestToggle})]}),R&&u.jsx(Zb,{title:tu(R).title,busy:f,onCancel:()=>A(null),onConfirm:()=>void Ie({type:"remove",passkey:R})}),u.jsx(eu,{isOpen:I!==null,action:(I==null?void 0:I.type)??"add",account:e.account,api:e.api,getCurrentUser:e.getCurrentUser,onConfirmed:_,onCancel:()=>j(null),onMismatch:W})]})},Xb=({passkey:e,disabled:t,onRemove:r})=>{const{title:a,badge:n,meta:o,Icon:i}=tu(e);return u.jsxs("li",{className:"flex items-center gap-3 py-3",children:[u.jsx("div",{className:"flex items-center justify-center flex-shrink-0 w-10 h-10 rounded-lg bg-grayWarm-100 text-grayWarm-700",children:u.jsx(i,{size:20})}),u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[u.jsx("span",{className:"text-base font-semibold text-grayWarm-950",children:a}),n&&u.jsx(_a,{variant:n===Le.kind.synced?"info":"default",children:n})]}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:o})]}),u.jsx("button",{type:"button","aria-label":Le.removeLabel(a),disabled:t,onClick:r,className:"flex items-center justify-center flex-shrink-0 w-9 h-9 rounded-lg bg-grayWarm-100 text-grayWarm-600 transition-colors hover:bg-grayWarm-200 hover:text-grayWarm-800 disabled:opacity-60 disabled:cursor-not-allowed focus:outline-none focus-visible:ring-2 focus-visible:ring-grayWarm-950",children:u.jsx(Ya,{size:18})})]})},gi=({label:e,disabled:t,onClick:r,children:a})=>u.jsxs("button",{type:"button","aria-label":e,disabled:t,onClick:r,className:"inline-flex items-center gap-2 px-3.5 py-2.5 rounded-lg bg-grayWarm-100 text-sm font-semibold text-grayWarm-950 transition-colors hover:bg-grayWarm-200 disabled:bg-transparent disabled:text-grayWarm-400 disabled:cursor-not-allowed focus:outline-none focus-visible:ring-2 focus-visible:ring-grayWarm-950",children:[u.jsx(Ml,{size:20}),a]}),Kt=({tone:e,role:t,children:r})=>u.jsxs("div",{role:t,className:Me("flex items-start gap-3 rounded-xl border p-4 text-sm",e==="warning"?"border-warning-200 bg-warning-50 text-warning-700":"border-grayWarm-200 bg-grayWarm-50 text-grayWarm-700"),children:[u.jsx(Rn,{size:20,className:Me("flex-shrink-0",e==="warning"?"text-warning-700":"text-grayWarm-500")}),u.jsx("div",{className:"flex flex-1 flex-wrap items-center justify-between gap-3",children:r})]}),nu=({onClick:e,children:t})=>u.jsx("button",{type:"button",onClick:e,className:"px-3 py-2 rounded-lg bg-grayWarm-100 text-sm font-semibold text-grayWarm-950 transition-colors hover:bg-grayWarm-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-grayWarm-950",children:t}),mi=({onSignIn:e})=>u.jsxs(Kt,{tone:"neutral",children:[u.jsx("span",{children:Le.sessionRequired}),u.jsx(nu,{onClick:e,children:Le.signIn})]}),Hb=()=>u.jsxs("div",{"aria-busy":"true",className:"flex flex-col gap-3",children:[u.jsx("span",{className:"sr-only",children:Le.loading}),[0,1].map(e=>u.jsxs("div",{"aria-hidden":"true",className:"flex items-center gap-3 py-1",children:[u.jsx("div",{className:"w-10 h-10 rounded-lg bg-grayWarm-100 motion-safe:animate-pulse"}),u.jsxs("div",{className:"flex-1 flex flex-col gap-2",children:[u.jsx("div",{className:"h-4 w-40 rounded bg-grayWarm-100 motion-safe:animate-pulse"}),u.jsx("div",{className:"h-3 w-56 rounded bg-grayWarm-100 motion-safe:animate-pulse"})]})]},e))]}),Zb=({title:e,busy:t,onCancel:r,onConfirm:a})=>{const n=Le.remove.title(e);return u.jsx(gn,{isOpen:!0,onClose:r,title:n,header:"none",maxWidthPx:400,children:u.jsxs("div",{className:"flex flex-col gap-5 text-left",children:[u.jsx("div",{className:"flex items-center justify-center w-12 h-12 rounded-full bg-error-100 text-error-600",children:u.jsx(Ya,{size:24})}),u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx("h2",{className:"text-lg font-semibold text-grayWarm-950",children:n}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:Le.remove.body})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsx(mn,{onClick:r,children:Le.remove.cancel}),u.jsx("button",{type:"button",disabled:t,"aria-busy":t||void 0,onClick:a,className:"w-full h-11 px-4 inline-flex items-center justify-center rounded-xl bg-error-600 text-white font-semibold shadow-sm transition-colors hover:bg-error-700 disabled:opacity-60 disabled:cursor-not-allowed focus:outline-none focus-visible:ring-2 focus-visible:ring-error-500 focus-visible:ring-offset-2",children:Le.remove.confirm})]})]})})},zb={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 Yb(e,t){if(!e||!e.startsWith("+"))return!1;const r=e.slice(1);if(!/^\d+$/.test(r))return!1;if(t){const a=zb[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 Jb=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),Ub=new RegExp("^[\\p{L} '-]{2,100}$","u");function $b(e){return Ub.test(e)?{isValid:!0}:{isValid:!1,message:"must contain only letters, spaces, hyphens, and apostrophes (2-100 characters)"}}exports.AUTOFILL_REFRESH_MS=Ql;exports.AlertCircleIcon=Rn;exports.AuthError=Rt;exports.Avatar=Ds;exports.AvatarFallback=Ls;exports.AvatarImage=Ws;exports.Badge=_a;exports.Button=Ii;exports.COUNTRY_OPTIONS=va;exports.CURRENCY_OPTIONS=Vr;exports.Card=Aa;exports.CardContent=Ea;exports.CardDescription=Pi;exports.CardFooter=Ti;exports.CardHeader=wa;exports.CardTitle=Gi;exports.CeremonyGate=ro;exports.CheckCircleIcon=Ja;exports.Checkbox=Ps;exports.Chip=gl;exports.CloudIcon=jm;exports.CurrencyModal=Zm;exports.DEFAULT_LOCALE=Bl;exports.DateDropdowns=ha;exports.FaceIdIcon=Gl;exports.FingerprintIcon=Pl;exports.IconButton=Ts;exports.Input=Vt;exports.KeyIcon=za;exports.LOCALE_OPTIONS=Br;exports.LOCALE_STORAGE_KEY=Vm;exports.LaptopIcon=Ol;exports.LocaleModal=Lm;exports.LogInIcon=Fl;exports.MailIcon=Fr;exports.Modal=gn;exports.OTPModal=Qm;exports.OtpCodeInput=Ua;exports.PROMPT_COOKIE=Ka;exports.Pagination=fl;exports.PasscodeIcon=Mm;exports.PassengerForm=Gm;exports.PassengerFormSkeleton=Om;exports.PasskeyEnrollPrompt=xa;exports.PasskeyList=Lb;exports.PhoneInput=Jm;exports.PlusIcon=Ml;exports.ReauthDialog=eu;exports.SearchInput=pl;exports.SelectDropdown=Dn;exports.Separator=Ni;exports.ShieldTickIcon=jl;exports.SignInFlow=Gb;exports.SignInModal=Pb;exports.Textarea=dl;exports.Toggle=Xa;exports.ToggleGroup=ul;exports.ToggleGroupItem=cl;exports.TrashIcon=Ya;exports.UsbKeyIcon=Tl;exports.XCloseIcon=kl;exports.classifyWebAuthnError=_r;exports.cookieDomain=Ll;exports.createMovmoAuthApi=rb;exports.createPasskey=$l;exports.detectSupport=no;exports.dismissPrompt=Zl;exports.findCurrencyOption=Hm;exports.findLocaleOption=_m;exports.getCurrencyDisplayText=Vl;exports.getLanguageDisplayName=Dm;exports.getPasskey=Ca;exports.incorrectCode=Wl;exports.neverAsk=Yl;exports.rateLimited=Qa;exports.readPromptState=Yn;exports.recordCodeSignIn=Hl;exports.registerPasskey=ao;exports.safeFocus=Et;exports.setNeverAsk=zl;exports.shouldOfferPasskey=Xl;exports.signInCopy=tt;exports.timeZone=Dl;exports.toAuthError=pt;exports.useMovmoSignIn=Kl;exports.validateEmail=Jb;exports.validateName=$b;exports.validatePhoneNumber=Yb;
|
|
114
|
+
*/(function(){var r={}.hasOwnProperty;function o(){for(var i=[],s=0;s<arguments.length;s++){var l=arguments[s];if(l){var c=typeof l;if(c==="string"||c==="number")i.push(l);else if(Array.isArray(l)&&l.length){var d=o.apply(null,l);d&&i.push(d)}else if(c==="object")for(var f in l)r.call(l,f)&&l[f]&&i.push(f)}}return i.join(" ")}e.exports?(o.default=o,e.exports=o):(a=(function(){return o}).apply(t,[]))===void 0||(e.exports=a)})()},function(e,t,n){(function(a){var r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,c=typeof a=="object"&&a&&a.Object===Object&&a,d=typeof self=="object"&&self&&self.Object===Object&&self,f=c||d||Function("return this")(),y=Object.prototype.toString,C=f.Symbol,b=C?C.prototype:void 0,h=b?b.toString:void 0;function p(A){if(typeof A=="string")return A;if(E(A))return h?h.call(A):"";var I=A+"";return I=="0"&&1/A==-1/0?"-0":I}function x(A){var I=typeof A;return!!A&&(I=="object"||I=="function")}function E(A){return typeof A=="symbol"||function(I){return!!I&&typeof I=="object"}(A)&&y.call(A)=="[object Symbol]"}function R(A){return A?(A=function(I){if(typeof I=="number")return I;if(E(I))return NaN;if(x(I)){var M=typeof I.valueOf=="function"?I.valueOf():I;I=x(M)?M+"":M}if(typeof I!="string")return I===0?I:+I;I=I.replace(r,"");var B=i.test(I);return B||s.test(I)?l(I.slice(2),B?2:8):o.test(I)?NaN:+I}(A))===1/0||A===-1/0?17976931348623157e292*(A<0?-1:1):A==A?A:0:A===0?A:0}e.exports=function(A,I,M){var B,O,re,ne;return A=(B=A)==null?"":p(B),O=function(ue){var z=R(ue),ie=z%1;return z==z?ie?z-ie:z:0}(M),re=0,ne=A.length,O==O&&(ne!==void 0&&(O=O<=ne?O:ne),re!==void 0&&(O=O>=re?O:re)),M=O,I=p(I),A.slice(M,M+I.length)==I}}).call(this,n(3))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch{typeof window=="object"&&(n=window)}e.exports=n},function(e,t,n){(function(a){var r=/^\[object .+?Constructor\]$/,o=typeof a=="object"&&a&&a.Object===Object&&a,i=typeof self=="object"&&self&&self.Object===Object&&self,s=o||i||Function("return this")(),l,c=Array.prototype,d=Function.prototype,f=Object.prototype,y=s["__core-js_shared__"],C=(l=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||""))?"Symbol(src)_1."+l:"",b=d.toString,h=f.hasOwnProperty,p=f.toString,x=RegExp("^"+b.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),E=c.splice,R=ue(s,"Map"),A=ue(Object,"create");function I(G){var T=-1,V=G?G.length:0;for(this.clear();++T<V;){var $=G[T];this.set($[0],$[1])}}function M(G){var T=-1,V=G?G.length:0;for(this.clear();++T<V;){var $=G[T];this.set($[0],$[1])}}function B(G){var T=-1,V=G?G.length:0;for(this.clear();++T<V;){var $=G[T];this.set($[0],$[1])}}function O(G,T){for(var V,$,K=G.length;K--;)if((V=G[K][0])===($=T)||V!=V&&$!=$)return K;return-1}function re(G){return!(!ie(G)||(T=G,C&&C in T))&&(function(V){var $=ie(V)?p.call(V):"";return $=="[object Function]"||$=="[object GeneratorFunction]"}(G)||function(V){var $=!1;if(V!=null&&typeof V.toString!="function")try{$=!!(V+"")}catch{}return $}(G)?x:r).test(function(V){if(V!=null){try{return b.call(V)}catch{}try{return V+""}catch{}}return""}(G));var T}function ne(G,T){var V,$,K=G.__data__;return(($=typeof(V=T))=="string"||$=="number"||$=="symbol"||$=="boolean"?V!=="__proto__":V===null)?K[typeof T=="string"?"string":"hash"]:K.map}function ue(G,T){var V=function($,K){return $==null?void 0:$[K]}(G,T);return re(V)?V:void 0}function z(G,T){if(typeof G!="function"||T&&typeof T!="function")throw new TypeError("Expected a function");var V=function(){var $=arguments,K=T?T.apply(this,$):$[0],we=V.cache;if(we.has(K))return we.get(K);var _=G.apply(this,$);return V.cache=we.set(K,_),_};return V.cache=new(z.Cache||B),V}function ie(G){var T=typeof G;return!!G&&(T=="object"||T=="function")}I.prototype.clear=function(){this.__data__=A?A(null):{}},I.prototype.delete=function(G){return this.has(G)&&delete this.__data__[G]},I.prototype.get=function(G){var T=this.__data__;if(A){var V=T[G];return V==="__lodash_hash_undefined__"?void 0:V}return h.call(T,G)?T[G]:void 0},I.prototype.has=function(G){var T=this.__data__;return A?T[G]!==void 0:h.call(T,G)},I.prototype.set=function(G,T){return this.__data__[G]=A&&T===void 0?"__lodash_hash_undefined__":T,this},M.prototype.clear=function(){this.__data__=[]},M.prototype.delete=function(G){var T=this.__data__,V=O(T,G);return!(V<0)&&(V==T.length-1?T.pop():E.call(T,V,1),!0)},M.prototype.get=function(G){var T=this.__data__,V=O(T,G);return V<0?void 0:T[V][1]},M.prototype.has=function(G){return O(this.__data__,G)>-1},M.prototype.set=function(G,T){var V=this.__data__,$=O(V,G);return $<0?V.push([G,T]):V[$][1]=T,this},B.prototype.clear=function(){this.__data__={hash:new I,map:new(R||M),string:new I}},B.prototype.delete=function(G){return ne(this,G).delete(G)},B.prototype.get=function(G){return ne(this,G).get(G)},B.prototype.has=function(G){return ne(this,G).has(G)},B.prototype.set=function(G,T){return ne(this,G).set(G,T),this},z.Cache=B,e.exports=z}).call(this,n(3))},function(e,t,n){(function(a){var r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,c=typeof a=="object"&&a&&a.Object===Object&&a,d=typeof self=="object"&&self&&self.Object===Object&&self,f=c||d||Function("return this")(),y=Object.prototype.toString,C=Math.max,b=Math.min,h=function(){return f.Date.now()};function p(E){var R=typeof E;return!!E&&(R=="object"||R=="function")}function x(E){if(typeof E=="number")return E;if(function(I){return typeof I=="symbol"||function(M){return!!M&&typeof M=="object"}(I)&&y.call(I)=="[object Symbol]"}(E))return NaN;if(p(E)){var R=typeof E.valueOf=="function"?E.valueOf():E;E=p(R)?R+"":R}if(typeof E!="string")return E===0?E:+E;E=E.replace(r,"");var A=i.test(E);return A||s.test(E)?l(E.slice(2),A?2:8):o.test(E)?NaN:+E}e.exports=function(E,R,A){var I,M,B,O,re,ne,ue=0,z=!1,ie=!1,G=!0;if(typeof E!="function")throw new TypeError("Expected a function");function T(L){var Z=I,ae=M;return I=M=void 0,ue=L,O=E.apply(ae,Z)}function V(L){return ue=L,re=setTimeout(K,R),z?T(L):O}function $(L){var Z=L-ne;return ne===void 0||Z>=R||Z<0||ie&&L-ue>=B}function K(){var L=h();if($(L))return we(L);re=setTimeout(K,function(Z){var ae=R-(Z-ne);return ie?b(ae,B-(Z-ue)):ae}(L))}function we(L){return re=void 0,G&&I?T(L):(I=M=void 0,O)}function _(){var L=h(),Z=$(L);if(I=arguments,M=this,ne=L,Z){if(re===void 0)return V(ne);if(ie)return re=setTimeout(K,R),T(ne)}return re===void 0&&(re=setTimeout(K,R)),O}return R=x(R)||0,p(A)&&(z=!!A.leading,B=(ie="maxWait"in A)?C(x(A.maxWait)||0,R):B,G="trailing"in A?!!A.trailing:G),_.cancel=function(){re!==void 0&&clearTimeout(re),ue=0,I=ne=M=re=void 0},_.flush=function(){return re===void 0?O:we(h())},_}}).call(this,n(3))},function(e,t,n){(function(a,r){var o="[object Arguments]",i="[object Map]",s="[object Object]",l="[object Set]",c=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d=/^\w*$/,f=/^\./,y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,C=/\\(\\)?/g,b=/^\[object .+?Constructor\]$/,h=/^(?: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[i]=p["[object Number]"]=p[s]=p["[object RegExp]"]=p[l]=p["[object String]"]=p["[object WeakMap]"]=!1;var x=typeof a=="object"&&a&&a.Object===Object&&a,E=typeof self=="object"&&self&&self.Object===Object&&self,R=x||E||Function("return this")(),A=t&&!t.nodeType&&t,I=A&&typeof r=="object"&&r&&!r.nodeType&&r,M=I&&I.exports===A&&x.process,B=function(){try{return M&&M.binding("util")}catch{}}(),O=B&&B.isTypedArray;function re(g,N,F,H){var te=-1,pe=g?g.length:0;for(H&&pe&&(F=g[++te]);++te<pe;)F=N(F,g[te],te,g);return F}function ne(g,N){for(var F=-1,H=g?g.length:0;++F<H;)if(N(g[F],F,g))return!0;return!1}function ue(g,N,F,H,te){return te(g,function(pe,Re,Ye){F=H?(H=!1,pe):N(F,pe,Re,Ye)}),F}function z(g){var N=!1;if(g!=null&&typeof g.toString!="function")try{N=!!(g+"")}catch{}return N}function ie(g){var N=-1,F=Array(g.size);return g.forEach(function(H,te){F[++N]=[te,H]}),F}function G(g){var N=-1,F=Array(g.size);return g.forEach(function(H){F[++N]=H}),F}var T,V,$,K=Array.prototype,we=Function.prototype,_=Object.prototype,L=R["__core-js_shared__"],Z=(T=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||""))?"Symbol(src)_1."+T:"",ae=we.toString,X=_.hasOwnProperty,m=_.toString,ge=RegExp("^"+ae.call(X).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),de=R.Symbol,ce=R.Uint8Array,Ne=_.propertyIsEnumerable,Y=K.splice,me=(V=Object.keys,$=Object,function(g){return V($(g))}),k=Ct(R,"DataView"),Se=Ct(R,"Map"),Ce=Ct(R,"Promise"),P=Ct(R,"Set"),W=Ct(R,"WeakMap"),Q=Ct(Object,"create"),he=oe(k),le=oe(Se),xe=oe(Ce),Ee=oe(P),Ge=oe(W),ee=de?de.prototype:void 0,fe=ee?ee.valueOf:void 0,Ae=ee?ee.toString:void 0;function q(g){var N=-1,F=g?g.length:0;for(this.clear();++N<F;){var H=g[N];this.set(H[0],H[1])}}function se(g){var N=-1,F=g?g.length:0;for(this.clear();++N<F;){var H=g[N];this.set(H[0],H[1])}}function De(g){var N=-1,F=g?g.length:0;for(this.clear();++N<F;){var H=g[N];this.set(H[0],H[1])}}function ot(g){var N=-1,F=g?g.length:0;for(this.__data__=new De;++N<F;)this.add(g[N])}function Ke(g){this.__data__=new se(g)}function lt(g,N){var F=v(g)||dt(g)?function(Re,Ye){for(var $e=-1,ze=Array(Re);++$e<Re;)ze[$e]=Ye($e);return ze}(g.length,String):[],H=F.length,te=!!H;for(var pe in g)!X.call(g,pe)||te&&(pe=="length"||Ht(pe,H))||F.push(pe);return F}function gt(g,N){for(var F=g.length;F--;)if(rt(g[F][0],N))return F;return-1}q.prototype.clear=function(){this.__data__=Q?Q(null):{}},q.prototype.delete=function(g){return this.has(g)&&delete this.__data__[g]},q.prototype.get=function(g){var N=this.__data__;if(Q){var F=N[g];return F==="__lodash_hash_undefined__"?void 0:F}return X.call(N,g)?N[g]:void 0},q.prototype.has=function(g){var N=this.__data__;return Q?N[g]!==void 0:X.call(N,g)},q.prototype.set=function(g,N){return this.__data__[g]=Q&&N===void 0?"__lodash_hash_undefined__":N,this},se.prototype.clear=function(){this.__data__=[]},se.prototype.delete=function(g){var N=this.__data__,F=gt(N,g);return!(F<0)&&(F==N.length-1?N.pop():Y.call(N,F,1),!0)},se.prototype.get=function(g){var N=this.__data__,F=gt(N,g);return F<0?void 0:N[F][1]},se.prototype.has=function(g){return gt(this.__data__,g)>-1},se.prototype.set=function(g,N){var F=this.__data__,H=gt(F,g);return H<0?F.push([g,N]):F[H][1]=N,this},De.prototype.clear=function(){this.__data__={hash:new q,map:new(Se||se),string:new q}},De.prototype.delete=function(g){return Xt(this,g).delete(g)},De.prototype.get=function(g){return Xt(this,g).get(g)},De.prototype.has=function(g){return Xt(this,g).has(g)},De.prototype.set=function(g,N){return Xt(this,g).set(g,N),this},ot.prototype.add=ot.prototype.push=function(g){return this.__data__.set(g,"__lodash_hash_undefined__"),this},ot.prototype.has=function(g){return this.__data__.has(g)},Ke.prototype.clear=function(){this.__data__=new se},Ke.prototype.delete=function(g){return this.__data__.delete(g)},Ke.prototype.get=function(g){return this.__data__.get(g)},Ke.prototype.has=function(g){return this.__data__.has(g)},Ke.prototype.set=function(g,N){var F=this.__data__;if(F instanceof se){var H=F.__data__;if(!Se||H.length<199)return H.push([g,N]),this;F=this.__data__=new De(H)}return F.set(g,N),this};var It,Ue=(It=function(g,N){return g&&Nt(g,N,qe)},function(g,N){if(g==null)return g;if(!D(g))return It(g,N);for(var F=g.length,H=-1,te=Object(g);++H<F&&N(te[H],H,te)!==!1;);return g}),Nt=function(g){return function(N,F,H){for(var te=-1,pe=Object(N),Re=H(N),Ye=Re.length;Ye--;){var $e=Re[++te];if(F(pe[$e],$e,pe)===!1)break}return N}}();function Mt(g,N){for(var F=0,H=(N=Ot(N,g)?[N]:Lt(N)).length;g!=null&&F<H;)g=g[U(N[F++])];return F&&F==H?g:void 0}function rn(g,N){return g!=null&&N in Object(g)}function St(g,N,F,H,te){return g===N||(g==null||N==null||!ke(g)&&!Oe(N)?g!=g&&N!=N:function(pe,Re,Ye,$e,ze,Fe){var xt=v(pe),ut=v(Re),it="[object Array]",st="[object Array]";xt||(it=(it=ht(pe))==o?s:it),ut||(st=(st=ht(Re))==o?s:st);var At=it==s&&!z(pe),mn=st==s&&!z(Re),Zt=it==st;if(Zt&&!At)return Fe||(Fe=new Ke),xt||je(pe)?on(pe,Re,Ye,$e,ze,Fe):function(Je,He,Wr,un,Un,vt,Ft){switch(Wr){case"[object DataView]":if(Je.byteLength!=He.byteLength||Je.byteOffset!=He.byteOffset)return!1;Je=Je.buffer,He=He.buffer;case"[object ArrayBuffer]":return!(Je.byteLength!=He.byteLength||!un(new ce(Je),new ce(He)));case"[object Boolean]":case"[object Date]":case"[object Number]":return rt(+Je,+He);case"[object Error]":return Je.name==He.name&&Je.message==He.message;case"[object RegExp]":case"[object String]":return Je==He+"";case i:var zt=ie;case l:var Rn=2&vt;if(zt||(zt=G),Je.size!=He.size&&!Rn)return!1;var $n=Ft.get(Je);if($n)return $n==He;vt|=1,Ft.set(Je,He);var bn=on(zt(Je),zt(He),un,Un,vt,Ft);return Ft.delete(Je),bn;case"[object Symbol]":if(fe)return fe.call(Je)==fe.call(He)}return!1}(pe,Re,it,Ye,$e,ze,Fe);if(!(2&ze)){var co=At&&X.call(pe,"__wrapped__"),fo=mn&&X.call(Re,"__wrapped__");if(co||fo){var iu=co?pe.value():pe,su=fo?Re.value():Re;return Fe||(Fe=new Ke),Ye(iu,su,$e,ze,Fe)}}return Zt?(Fe||(Fe=new Ke),function(Je,He,Wr,un,Un,vt){var Ft=2&Un,zt=qe(Je),Rn=zt.length,$n=qe(He).length;if(Rn!=$n&&!Ft)return!1;for(var bn=Rn;bn--;){var Yt=zt[bn];if(!(Ft?Yt in He:X.call(He,Yt)))return!1}var po=vt.get(Je);if(po&&vt.get(He))return po==He;var Qn=!0;vt.set(Je,He),vt.set(He,Je);for(var Lr=Ft;++bn<Rn;){Yt=zt[bn];var Kn=Je[Yt],qn=He[Yt];if(un)var go=Ft?un(qn,Kn,Yt,He,Je,vt):un(Kn,qn,Yt,Je,He,vt);if(!(go===void 0?Kn===qn||Wr(Kn,qn,un,Un,vt):go)){Qn=!1;break}Lr||(Lr=Yt=="constructor")}if(Qn&&!Lr){var er=Je.constructor,tr=He.constructor;er==tr||!("constructor"in Je)||!("constructor"in He)||typeof er=="function"&&er instanceof er&&typeof tr=="function"&&tr instanceof tr||(Qn=!1)}return vt.delete(Je),vt.delete(He),Qn}(pe,Re,Ye,$e,ze,Fe)):!1}(g,N,St,F,H,te))}function Gt(g){return!(!ke(g)||function(N){return!!Z&&Z in N}(g))&&(J(g)||z(g)?ge:b).test(oe(g))}function Pt(g){return typeof g=="function"?g:g==null?et:typeof g=="object"?v(g)?function(H,te){return Ot(H)&&sn(te)?ln(U(H),te):function(pe){var Re=function(Ye,$e,ze){var Fe=Ye==null?void 0:Mt(Ye,$e);return Fe===void 0?ze:Fe}(pe,H);return Re===void 0&&Re===te?function(Ye,$e){return Ye!=null&&function(ze,Fe,xt){Fe=Ot(Fe,ze)?[Fe]:Lt(Fe);for(var ut,it=-1,st=Fe.length;++it<st;){var At=U(Fe[it]);if(!(ut=ze!=null&&xt(ze,At)))break;ze=ze[At]}return ut||!!(st=ze?ze.length:0)&&ve(st)&&Ht(At,st)&&(v(ze)||dt(ze))}(Ye,$e,rn)}(pe,H):St(te,Re,void 0,3)}}(g[0],g[1]):function(H){var te=function(pe){for(var Re=qe(pe),Ye=Re.length;Ye--;){var $e=Re[Ye],ze=pe[$e];Re[Ye]=[$e,ze,sn(ze)]}return Re}(H);return te.length==1&&te[0][2]?ln(te[0][0],te[0][1]):function(pe){return pe===H||function(Re,Ye,$e,ze){var Fe=$e.length,xt=Fe;if(Re==null)return!xt;for(Re=Object(Re);Fe--;){var ut=$e[Fe];if(ut[2]?ut[1]!==Re[ut[0]]:!(ut[0]in Re))return!1}for(;++Fe<xt;){var it=(ut=$e[Fe])[0],st=Re[it],At=ut[1];if(ut[2]){if(st===void 0&&!(it in Re))return!1}else{var mn=new Ke,Zt;if(!(Zt===void 0?St(At,st,ze,3,mn):Zt))return!1}}return!0}(pe,H,te)}}(g):Ot(N=g)?(F=U(N),function(H){return H==null?void 0:H[F]}):function(H){return function(te){return Mt(te,H)}}(N);var N,F}function an(g){if(F=(N=g)&&N.constructor,H=typeof F=="function"&&F.prototype||_,N!==H)return me(g);var N,F,H,te=[];for(var pe in Object(g))X.call(g,pe)&&pe!="constructor"&&te.push(pe);return te}function Lt(g){return v(g)?g:j(g)}function on(g,N,F,H,te,pe){var Re=2&te,Ye=g.length,$e=N.length;if(Ye!=$e&&!(Re&&$e>Ye))return!1;var ze=pe.get(g);if(ze&&pe.get(N))return ze==N;var Fe=-1,xt=!0,ut=1&te?new ot:void 0;for(pe.set(g,N),pe.set(N,g);++Fe<Ye;){var it=g[Fe],st=N[Fe];if(H)var At=Re?H(st,it,Fe,N,g,pe):H(it,st,Fe,g,N,pe);if(At!==void 0){if(At)continue;xt=!1;break}if(ut){if(!ne(N,function(mn,Zt){if(!ut.has(Zt)&&(it===mn||F(it,mn,H,te,pe)))return ut.add(Zt)})){xt=!1;break}}else if(it!==st&&!F(it,st,H,te,pe)){xt=!1;break}}return pe.delete(g),pe.delete(N),xt}function Xt(g,N){var F,H,te=g.__data__;return((H=typeof(F=N))=="string"||H=="number"||H=="symbol"||H=="boolean"?F!=="__proto__":F===null)?te[typeof N=="string"?"string":"hash"]:te.map}function Ct(g,N){var F=function(H,te){return H==null?void 0:H[te]}(g,N);return Gt(F)?F:void 0}var ht=function(g){return m.call(g)};function Ht(g,N){return!!(N=N??9007199254740991)&&(typeof g=="number"||h.test(g))&&g>-1&&g%1==0&&g<N}function Ot(g,N){if(v(g))return!1;var F=typeof g;return!(F!="number"&&F!="symbol"&&F!="boolean"&&g!=null&&!Pe(g))||d.test(g)||!c.test(g)||N!=null&&g in Object(N)}function sn(g){return g==g&&!ke(g)}function ln(g,N){return function(F){return F!=null&&F[g]===N&&(N!==void 0||g in Object(F))}}(k&&ht(new k(new ArrayBuffer(1)))!="[object DataView]"||Se&&ht(new Se)!=i||Ce&&ht(Ce.resolve())!="[object Promise]"||P&&ht(new P)!=l||W&&ht(new W)!="[object WeakMap]")&&(ht=function(g){var N=m.call(g),F=N==s?g.constructor:void 0,H=F?oe(F):void 0;if(H)switch(H){case he:return"[object DataView]";case le:return i;case xe:return"[object Promise]";case Ee:return l;case Ge:return"[object WeakMap]"}return N});var j=Xe(function(g){var N;g=(N=g)==null?"":function(H){if(typeof H=="string")return H;if(Pe(H))return Ae?Ae.call(H):"";var te=H+"";return te=="0"&&1/H==-1/0?"-0":te}(N);var F=[];return f.test(g)&&F.push(""),g.replace(y,function(H,te,pe,Re){F.push(pe?Re.replace(C,"$1"):te||H)}),F});function U(g){if(typeof g=="string"||Pe(g))return g;var N=g+"";return N=="0"&&1/g==-1/0?"-0":N}function oe(g){if(g!=null){try{return ae.call(g)}catch{}try{return g+""}catch{}}return""}function Xe(g,N){if(typeof g!="function"||N&&typeof N!="function")throw new TypeError("Expected a function");var F=function(){var H=arguments,te=N?N.apply(this,H):H[0],pe=F.cache;if(pe.has(te))return pe.get(te);var Re=g.apply(this,H);return F.cache=pe.set(te,Re),Re};return F.cache=new(Xe.Cache||De),F}function rt(g,N){return g===N||g!=g&&N!=N}function dt(g){return function(N){return Oe(N)&&D(N)}(g)&&X.call(g,"callee")&&(!Ne.call(g,"callee")||m.call(g)==o)}Xe.Cache=De;var v=Array.isArray;function D(g){return g!=null&&ve(g.length)&&!J(g)}function J(g){var N=ke(g)?m.call(g):"";return N=="[object Function]"||N=="[object GeneratorFunction]"}function ve(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=9007199254740991}function ke(g){var N=typeof g;return!!g&&(N=="object"||N=="function")}function Oe(g){return!!g&&typeof g=="object"}function Pe(g){return typeof g=="symbol"||Oe(g)&&m.call(g)=="[object Symbol]"}var je=O?function(g){return function(N){return g(N)}}(O):function(g){return Oe(g)&&ve(g.length)&&!!p[m.call(g)]};function qe(g){return D(g)?lt(g):an(g)}function et(g){return g}r.exports=function(g,N,F){var H=v(g)?re:ue,te=arguments.length<3;return H(g,Pt(N),F,te,Ue)}}).call(this,n(3),n(7)(e))},function(e,t){e.exports=function(n){return n.webpackPolyfill||(n.deprecate=function(){},n.paths=[],n.children||(n.children=[]),Object.defineProperty(n,"loaded",{enumerable:!0,get:function(){return n.l}}),Object.defineProperty(n,"id",{enumerable:!0,get:function(){return n.i}}),n.webpackPolyfill=1),n}},function(e,t){String.prototype.padEnd||(String.prototype.padEnd=function(n,a){return n>>=0,a=String(a!==void 0?a:" "),this.length>n?String(this):((n-=this.length)>a.length&&(a+=a.repeat(n/a.length)),String(this)+a.slice(0,n))})},function(e,t,n){function a(_,L,Z){return L in _?Object.defineProperty(_,L,{value:Z,enumerable:!0,configurable:!0,writable:!0}):_[L]=Z,_}function r(_){if(Symbol.iterator in Object(_)||Object.prototype.toString.call(_)==="[object Arguments]")return Array.from(_)}function o(_){return function(L){if(Array.isArray(L)){for(var Z=0,ae=new Array(L.length);Z<L.length;Z++)ae[Z]=L[Z];return ae}}(_)||r(_)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(_){if(Array.isArray(_))return _}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function l(_,L){if(!(_ instanceof L))throw new TypeError("Cannot call a class as a function")}function c(_,L){for(var Z=0;Z<L.length;Z++){var ae=L[Z];ae.enumerable=ae.enumerable||!1,ae.configurable=!0,"value"in ae&&(ae.writable=!0),Object.defineProperty(_,ae.key,ae)}}function d(_){return(d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L})(_)}function f(_){return(f=typeof Symbol=="function"&&d(Symbol.iterator)==="symbol"?function(L){return d(L)}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":d(L)})(_)}function y(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function C(_){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(L){return L.__proto__||Object.getPrototypeOf(L)})(_)}function b(_,L){return(b=Object.setPrototypeOf||function(Z,ae){return Z.__proto__=ae,Z})(_,L)}n.r(t);var h=n(0),p=n.n(h),x=n(5),E=n.n(x),R=n(4),A=n.n(R),I=n(6),M=n.n(I),B=n(2),O=n.n(B),re=n(1),ne=n.n(re);n(8);function ue(_,L){return i(_)||function(Z,ae){var X=[],m=!0,ge=!1,de=void 0;try{for(var ce,Ne=Z[Symbol.iterator]();!(m=(ce=Ne.next()).done)&&(X.push(ce.value),!ae||X.length!==ae);m=!0);}catch(Y){ge=!0,de=Y}finally{try{m||Ne.return==null||Ne.return()}finally{if(ge)throw de}}return X}(_,L)||s()}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"]],ie=[["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 G(_,L,Z,ae,X){return!Z||X?_+"".padEnd(L.length,".")+" "+ae:_+"".padEnd(L.length,".")+" "+Z}function T(_,L,Z,ae,X){var m,ge,de=[];return ge=L===!0,[(m=[]).concat.apply(m,o(_.map(function(ce){var Ne={name:ce[0],regions:ce[1],iso2:ce[2],countryCode:ce[3],dialCode:ce[3],format:G(Z,ce[3],ce[4],ae,X),priority:ce[5]||0},Y=[];return ce[6]&&ce[6].map(function(me){var k=function(Se){for(var Ce=1;Ce<arguments.length;Ce++){var P=arguments[Ce]!=null?arguments[Ce]:{},W=Object.keys(P);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(P).filter(function(Q){return Object.getOwnPropertyDescriptor(P,Q).enumerable}))),W.forEach(function(Q){a(Se,Q,P[Q])})}return Se}({},Ne);k.dialCode=ce[3]+me,k.isAreaCode=!0,k.areaCodeLength=me.length,Y.push(k)}),Y.length>0?(Ne.mainCode=!0,ge||L.constructor.name==="Array"&&L.includes(ce[2])?(Ne.hasAreaCodes=!0,[Ne].concat(Y)):(de=de.concat(Y),[Ne])):[Ne]}))),de]}function V(_,L,Z,ae){if(Z!==null){var X=Object.keys(Z),m=Object.values(Z);X.forEach(function(ge,de){if(ae)return _.push([ge,m[de]]);var ce=_.findIndex(function(Y){return Y[0]===ge});if(ce===-1){var Ne=[ge];Ne[L]=m[de],_.push(Ne)}else _[ce][L]=m[de]})}}function $(_,L){return L.length===0?_:_.map(function(Z){var ae=L.findIndex(function(m){return m[0]===Z[2]});if(ae===-1)return Z;var X=L[ae];return X[1]&&(Z[4]=X[1]),X[3]&&(Z[5]=X[3]),X[2]&&(Z[6]=X[2]),Z})}var K=function _(L,Z,ae,X,m,ge,de,ce,Ne,Y,me,k,Se,Ce){l(this,_),this.filterRegions=function(ee,fe){if(typeof ee=="string"){var Ae=ee;return fe.filter(function(q){return q.regions.some(function(se){return se===Ae})})}return fe.filter(function(q){return ee.map(function(se){return q.regions.some(function(De){return De===se})}).some(function(se){return se})})},this.sortTerritories=function(ee,fe){var Ae=[].concat(o(ee),o(fe));return Ae.sort(function(q,se){return q.name<se.name?-1:q.name>se.name?1:0}),Ae},this.getFilteredCountryList=function(ee,fe,Ae){return ee.length===0?fe:Ae?ee.map(function(q){var se=fe.find(function(De){return De.iso2===q});if(se)return se}).filter(function(q){return q}):fe.filter(function(q){return ee.some(function(se){return se===q.iso2})})},this.localizeCountries=function(ee,fe,Ae){for(var q=0;q<ee.length;q++)fe[ee[q].iso2]!==void 0?ee[q].localName=fe[ee[q].iso2]:fe[ee[q].name]!==void 0&&(ee[q].localName=fe[ee[q].name]);return Ae||ee.sort(function(se,De){return se.localName<De.localName?-1:se.localName>De.localName?1:0}),ee},this.getCustomAreas=function(ee,fe){for(var Ae=[],q=0;q<fe.length;q++){var se=JSON.parse(JSON.stringify(ee));se.dialCode+=fe[q],Ae.push(se)}return Ae},this.excludeCountries=function(ee,fe){return fe.length===0?ee:ee.filter(function(Ae){return!fe.includes(Ae.iso2)})};var P=function(ee,fe,Ae){var q=[];return V(q,1,ee,!0),V(q,3,fe),V(q,2,Ae),q}(ce,Ne,Y),W=$(JSON.parse(JSON.stringify(z)),P),Q=$(JSON.parse(JSON.stringify(ie)),P),he=ue(T(W,L,k,Se,Ce),2),le=he[0],xe=he[1];if(Z){var Ee=ue(T(Q,L,k,Se,Ce),2),Ge=Ee[0];Ee[1],le=this.sortTerritories(Ge,le)}ae&&(le=this.filterRegions(ae,le)),this.onlyCountries=this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(X,le,de.includes("onlyCountries")),ge),me,de.includes("onlyCountries")),this.preferredCountries=m.length===0?[]:this.localizeCountries(this.getFilteredCountryList(m,le,de.includes("preferredCountries")),me,de.includes("preferredCountries")),this.hiddenAreaCodes=this.excludeCountries(this.getFilteredCountryList(X,xe),ge)},we=function(_){function L(X){var m;l(this,L),(m=function(P,W){return!W||f(W)!=="object"&&typeof W!="function"?y(P):W}(this,C(L).call(this,X))).getProbableCandidate=A()(function(P){return P&&P.length!==0?m.state.onlyCountries.filter(function(W){return O()(W.name.toLowerCase(),P.toLowerCase())},y(y(m)))[0]:null}),m.guessSelectedCountry=A()(function(P,W,Q,he){var le;if(m.props.enableAreaCodes===!1&&(he.some(function(Ge){if(O()(P,Ge.dialCode))return Q.some(function(ee){if(Ge.iso2===ee.iso2&&ee.mainCode)return le=ee,!0}),!0}),le))return le;var xe=Q.find(function(Ge){return Ge.iso2==W});if(P.trim()==="")return xe;var Ee=Q.reduce(function(Ge,ee){return O()(P,ee.dialCode)&&(ee.dialCode.length>Ge.dialCode.length||ee.dialCode.length===Ge.dialCode.length&&ee.priority<Ge.priority)?ee:Ge},{dialCode:"",priority:10001},y(y(m)));return Ee.name?Ee:xe}),m.updateCountry=function(P){var W,Q=m.state.onlyCountries;(W=P.indexOf(0)>="0"&&P.indexOf(0)<="9"?Q.find(function(he){return he.dialCode==+P}):Q.find(function(he){return he.iso2==P}))&&W.dialCode&&m.setState({selectedCountry:W,formattedNumber:m.props.disableCountryCode?"":m.formatNumber(W.dialCode,W)})},m.scrollTo=function(P,W){if(P){var Q=m.dropdownRef;if(Q&&document.body){var he=Q.offsetHeight,le=Q.getBoundingClientRect().top+document.body.scrollTop,xe=le+he,Ee=P,Ge=Ee.getBoundingClientRect(),ee=Ee.offsetHeight,fe=Ge.top+document.body.scrollTop,Ae=fe+ee,q=fe-le+Q.scrollTop,se=he/2-ee/2;if(m.props.enableSearch?fe<le+32:fe<le)W&&(q-=se),Q.scrollTop=q;else if(Ae>xe){W&&(q+=se);var De=he-ee;Q.scrollTop=q-De}}}},m.scrollToTop=function(){var P=m.dropdownRef;P&&document.body&&(P.scrollTop=0)},m.formatNumber=function(P,W){if(!W)return P;var Q,he=W.format,le=m.props,xe=le.disableCountryCode,Ee=le.enableAreaCodeStretch,Ge=le.enableLongNumbers,ee=le.autoFormat;if(xe?((Q=he.split(" ")).shift(),Q=Q.join(" ")):Ee&&W.isAreaCode?((Q=he.split(" "))[1]=Q[1].replace(/\.+/,"".padEnd(W.areaCodeLength,".")),Q=Q.join(" ")):Q=he,!P||P.length===0)return xe?"":m.props.prefix;if(P&&P.length<2||!Q||!ee)return xe?P:m.props.prefix+P;var fe,Ae=M()(Q,function(q,se){if(q.remainingText.length===0)return q;if(se!==".")return{formattedText:q.formattedText+se,remainingText:q.remainingText};var De,ot=i(De=q.remainingText)||r(De)||s(),Ke=ot[0],lt=ot.slice(1);return{formattedText:q.formattedText+Ke,remainingText:lt}},{formattedText:"",remainingText:P.split("")});return(fe=Ge?Ae.formattedText+Ae.remainingText.join(""):Ae.formattedText).includes("(")&&!fe.includes(")")&&(fe+=")"),fe},m.cursorToEnd=function(){var P=m.numberInputRef;if(document.activeElement===P){P.focus();var W=P.value.length;P.value.charAt(W-1)===")"&&(W-=1),P.setSelectionRange(W,W)}},m.getElement=function(P){return m["flag_no_".concat(P)]},m.getCountryData=function(){return m.state.selectedCountry?{name:m.state.selectedCountry.name||"",dialCode:m.state.selectedCountry.dialCode||"",countryCode:m.state.selectedCountry.iso2||"",format:m.state.selectedCountry.format||""}:{}},m.handleFlagDropdownClick=function(P){if(P.preventDefault(),m.state.showDropdown||!m.props.disabled){var W=m.state,Q=W.preferredCountries,he=W.onlyCountries,le=W.selectedCountry,xe=m.concatPreferredCountries(Q,he).findIndex(function(Ee){return Ee.dialCode===le.dialCode&&Ee.iso2===le.iso2});m.setState({showDropdown:!m.state.showDropdown,highlightCountryIndex:xe},function(){m.state.showDropdown&&m.scrollTo(m.getElement(m.state.highlightCountryIndex))})}},m.handleInput=function(P){var W=P.target.value,Q=m.props,he=Q.prefix,le=Q.onChange,xe=m.props.disableCountryCode?"":he,Ee=m.state.selectedCountry,Ge=m.state.freezeSelection;if(!m.props.countryCodeEditable){var ee=he+(Ee.hasAreaCodes?m.state.onlyCountries.find(function(Ue){return Ue.iso2===Ee.iso2&&Ue.mainCode}).dialCode:Ee.dialCode);if(W.slice(0,ee.length)!==ee)return}if(W===he)return le&&le("",m.getCountryData(),P,""),m.setState({formattedNumber:""});if(!(W.replace(/\D/g,"").length>15&&(m.props.enableLongNumbers===!1||typeof m.props.enableLongNumbers=="number"&&W.replace(/\D/g,"").length>m.props.enableLongNumbers))&&W!==m.state.formattedNumber){P.preventDefault?P.preventDefault():P.returnValue=!1;var fe=m.props.country,Ae=m.state,q=Ae.onlyCountries,se=Ae.selectedCountry,De=Ae.hiddenAreaCodes;if(le&&P.persist(),W.length>0){var ot=W.replace(/\D/g,"");(!m.state.freezeSelection||se&&se.dialCode.length>ot.length)&&(Ee=m.props.disableCountryGuess?se:m.guessSelectedCountry(ot.substring(0,6),fe,q,De)||se,Ge=!1),xe=m.formatNumber(ot,Ee),Ee=Ee.dialCode?Ee:se}var Ke=P.target.selectionStart,lt=P.target.selectionStart,gt=m.state.formattedNumber,It=xe.length-gt.length;m.setState({formattedNumber:xe,freezeSelection:Ge,selectedCountry:Ee},function(){It>0&&(lt-=It),xe.charAt(xe.length-1)==")"?m.numberInputRef.setSelectionRange(xe.length-1,xe.length-1):lt>0&>.length>=xe.length?m.numberInputRef.setSelectionRange(lt,lt):Ke<gt.length&&m.numberInputRef.setSelectionRange(Ke,Ke),le&&le(xe.replace(/[^0-9]+/g,""),m.getCountryData(),P,xe)})}},m.handleInputClick=function(P){m.setState({showDropdown:!1}),m.props.onClick&&m.props.onClick(P,m.getCountryData())},m.handleDoubleClick=function(P){var W=P.target.value.length;P.target.setSelectionRange(0,W)},m.handleFlagItemClick=function(P,W){var Q=m.state.selectedCountry,he=m.state.onlyCountries.find(function(Ge){return Ge==P});if(he){var le=m.state.formattedNumber.replace(" ","").replace("(","").replace(")","").replace("-",""),xe=le.length>1?le.replace(Q.dialCode,he.dialCode):he.dialCode,Ee=m.formatNumber(xe.replace(/\D/g,""),he);m.setState({showDropdown:!1,selectedCountry:he,freezeSelection:!0,formattedNumber:Ee,searchValue:""},function(){m.cursorToEnd(),m.props.onChange&&m.props.onChange(Ee.replace(/[^0-9]+/g,""),m.getCountryData(),W,Ee)})}},m.handleInputFocus=function(P){m.numberInputRef&&m.numberInputRef.value===m.props.prefix&&m.state.selectedCountry&&!m.props.disableCountryCode&&m.setState({formattedNumber:m.props.prefix+m.state.selectedCountry.dialCode},function(){m.props.jumpCursorToEnd&&setTimeout(m.cursorToEnd,0)}),m.setState({placeholder:""}),m.props.onFocus&&m.props.onFocus(P,m.getCountryData()),m.props.jumpCursorToEnd&&setTimeout(m.cursorToEnd,0)},m.handleInputBlur=function(P){P.target.value||m.setState({placeholder:m.props.placeholder}),m.props.onBlur&&m.props.onBlur(P,m.getCountryData())},m.handleInputCopy=function(P){if(m.props.copyNumbersOnly){var W=window.getSelection().toString().replace(/[^0-9]+/g,"");P.clipboardData.setData("text/plain",W),P.preventDefault()}},m.getHighlightCountryIndex=function(P){var W=m.state.highlightCountryIndex+P;return W<0||W>=m.state.onlyCountries.length+m.state.preferredCountries.length?W-P:m.props.enableSearch&&W>m.getSearchFilteredCountries().length?0:W},m.searchCountry=function(){var P=m.getProbableCandidate(m.state.queryString)||m.state.onlyCountries[0],W=m.state.onlyCountries.findIndex(function(Q){return Q==P})+m.state.preferredCountries.length;m.scrollTo(m.getElement(W),!0),m.setState({queryString:"",highlightCountryIndex:W})},m.handleKeydown=function(P){var W=m.props.keys,Q=P.target.className;if(Q.includes("selected-flag")&&P.which===W.ENTER&&!m.state.showDropdown)return m.handleFlagDropdownClick(P);if(Q.includes("form-control")&&(P.which===W.ENTER||P.which===W.ESC))return P.target.blur();if(m.state.showDropdown&&!m.props.disabled&&(!Q.includes("search-box")||P.which===W.UP||P.which===W.DOWN||P.which===W.ENTER||P.which===W.ESC&&P.target.value==="")){P.preventDefault?P.preventDefault():P.returnValue=!1;var he=function(le){m.setState({highlightCountryIndex:m.getHighlightCountryIndex(le)},function(){m.scrollTo(m.getElement(m.state.highlightCountryIndex),!0)})};switch(P.which){case W.DOWN:he(1);break;case W.UP:he(-1);break;case W.ENTER:m.props.enableSearch?m.handleFlagItemClick(m.getSearchFilteredCountries()[m.state.highlightCountryIndex]||m.getSearchFilteredCountries()[0],P):m.handleFlagItemClick([].concat(o(m.state.preferredCountries),o(m.state.onlyCountries))[m.state.highlightCountryIndex],P);break;case W.ESC:case W.TAB:m.setState({showDropdown:!1},m.cursorToEnd);break;default:(P.which>=W.A&&P.which<=W.Z||P.which===W.SPACE)&&m.setState({queryString:m.state.queryString+String.fromCharCode(P.which)},m.state.debouncedQueryStingSearcher)}}},m.handleInputKeyDown=function(P){var W=m.props,Q=W.keys,he=W.onEnterKeyPress,le=W.onKeyDown;P.which===Q.ENTER&&he&&he(P),le&&le(P)},m.handleClickOutside=function(P){m.dropdownRef&&!m.dropdownContainerRef.contains(P.target)&&m.state.showDropdown&&m.setState({showDropdown:!1})},m.handleSearchChange=function(P){var W=P.currentTarget.value,Q=m.state,he=Q.preferredCountries,le=Q.selectedCountry,xe=0;if(W===""&&le){var Ee=m.state.onlyCountries;xe=m.concatPreferredCountries(he,Ee).findIndex(function(Ge){return Ge==le}),setTimeout(function(){return m.scrollTo(m.getElement(xe))},100)}m.setState({searchValue:W,highlightCountryIndex:xe})},m.concatPreferredCountries=function(P,W){return P.length>0?o(new Set(P.concat(W))):W},m.getDropdownCountryName=function(P){return P.localName||P.name},m.getSearchFilteredCountries=function(){var P=m.state,W=P.preferredCountries,Q=P.onlyCountries,he=P.searchValue,le=m.props.enableSearch,xe=m.concatPreferredCountries(W,Q),Ee=he.trim().toLowerCase().replace("+","");if(le&&Ee){if(/^\d+$/.test(Ee))return xe.filter(function(fe){var Ae=fe.dialCode;return["".concat(Ae)].some(function(q){return q.toLowerCase().includes(Ee)})});var Ge=xe.filter(function(fe){var Ae=fe.iso2;return["".concat(Ae)].some(function(q){return q.toLowerCase().includes(Ee)})}),ee=xe.filter(function(fe){var Ae=fe.name,q=fe.localName;return fe.iso2,["".concat(Ae),"".concat(q||"")].some(function(se){return se.toLowerCase().includes(Ee)})});return m.scrollToTop(),o(new Set([].concat(Ge,ee)))}return xe},m.getCountryDropdownList=function(){var P=m.state,W=P.preferredCountries,Q=P.highlightCountryIndex,he=P.showDropdown,le=P.searchValue,xe=m.props,Ee=xe.disableDropdown,Ge=xe.prefix,ee=m.props,fe=ee.enableSearch,Ae=ee.searchNotFound,q=ee.disableSearchIcon,se=ee.searchClass,De=ee.searchStyle,ot=ee.searchPlaceholder,Ke=ee.autocompleteSearch,lt=m.getSearchFilteredCountries().map(function(Ue,Nt){var Mt=Q===Nt,rn=ne()({country:!0,preferred:Ue.iso2==="us"||Ue.iso2==="gb",active:Ue.iso2==="us",highlight:Mt}),St="flag ".concat(Ue.iso2);return p.a.createElement("li",Object.assign({ref:function(Gt){return m["flag_no_".concat(Nt)]=Gt},key:"flag_no_".concat(Nt),"data-flag-key":"flag_no_".concat(Nt),className:rn,"data-dial-code":"1",tabIndex:Ee?"-1":"0","data-country-code":Ue.iso2,onClick:function(Gt){return m.handleFlagItemClick(Ue,Gt)},role:"option"},Mt?{"aria-selected":!0}:{}),p.a.createElement("div",{className:St}),p.a.createElement("span",{className:"country-name"},m.getDropdownCountryName(Ue)),p.a.createElement("span",{className:"dial-code"},Ue.format?m.formatNumber(Ue.dialCode,Ue):Ge+Ue.dialCode))}),gt=p.a.createElement("li",{key:"dashes",className:"divider"});W.length>0&&(!fe||fe&&!le.trim())&<.splice(W.length,0,gt);var It=ne()(a({"country-list":!0,hide:!he},m.props.dropdownClass,!0));return p.a.createElement("ul",{ref:function(Ue){return!fe&&Ue&&Ue.focus(),m.dropdownRef=Ue},className:It,style:m.props.dropdownStyle,role:"listbox",tabIndex:"0"},fe&&p.a.createElement("li",{className:ne()(a({search:!0},se,se))},!q&&p.a.createElement("span",{className:ne()(a({"search-emoji":!0},"".concat(se,"-emoji"),se)),role:"img","aria-label":"Magnifying glass"},"🔎"),p.a.createElement("input",{className:ne()(a({"search-box":!0},"".concat(se,"-box"),se)),style:De,type:"search",placeholder:ot,autoFocus:!0,autoComplete:Ke?"on":"off",value:le,onChange:m.handleSearchChange})),lt.length>0?lt:p.a.createElement("li",{className:"no-entries-message"},p.a.createElement("span",null,Ae)))};var ge,de=new K(X.enableAreaCodes,X.enableTerritories,X.regions,X.onlyCountries,X.preferredCountries,X.excludeCountries,X.preserveOrder,X.masks,X.priority,X.areaCodes,X.localization,X.prefix,X.defaultMask,X.alwaysDefaultMask),ce=de.onlyCountries,Ne=de.preferredCountries,Y=de.hiddenAreaCodes,me=X.value?X.value.replace(/\D/g,""):"";ge=X.disableInitialCountryGuess?0:me.length>1?m.guessSelectedCountry(me.substring(0,6),X.country,ce,Y)||0:X.country&&ce.find(function(P){return P.iso2==X.country})||0;var k,Se=me.length<2&&ge&&!O()(me,ge.dialCode)?ge.dialCode:"";k=me===""&&ge===0?"":m.formatNumber((X.disableCountryCode?"":Se)+me,ge.name?ge:void 0);var Ce=ce.findIndex(function(P){return P==ge});return m.state={showDropdown:X.showDropdown,formattedNumber:k,onlyCountries:ce,preferredCountries:Ne,hiddenAreaCodes:Y,selectedCountry:ge,highlightCountryIndex:Ce,queryString:"",freezeSelection:!1,debouncedQueryStingSearcher:E()(m.searchCountry,250),searchValue:""},m}var Z,ae;return function(X,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");X.prototype=Object.create(m&&m.prototype,{constructor:{value:X,writable:!0,configurable:!0}}),m&&b(X,m)}(L,_),Z=L,(ae=[{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(X,m,ge){X.country!==this.props.country?this.updateCountry(this.props.country):X.value!==this.props.value&&this.updateFormattedNumber(this.props.value)}},{key:"updateFormattedNumber",value:function(X){if(X===null)return this.setState({selectedCountry:0,formattedNumber:""});var m=this.state,ge=m.onlyCountries,de=m.selectedCountry,ce=m.hiddenAreaCodes,Ne=this.props,Y=Ne.country,me=Ne.prefix;if(X==="")return this.setState({selectedCountry:de,formattedNumber:""});var k,Se,Ce=X.replace(/\D/g,"");if(de&&O()(X,me+de.dialCode))Se=this.formatNumber(Ce,de),this.setState({formattedNumber:Se});else{var P=(k=this.props.disableCountryGuess?de:this.guessSelectedCountry(Ce.substring(0,6),Y,ge,ce)||de)&&O()(Ce,me+k.dialCode)?k.dialCode:"";Se=this.formatNumber((this.props.disableCountryCode?"":P)+Ce,k||void 0),this.setState({selectedCountry:k,formattedNumber:Se})}}},{key:"render",value:function(){var X,m,ge,de=this,ce=this.state,Ne=ce.onlyCountries,Y=ce.selectedCountry,me=ce.showDropdown,k=ce.formattedNumber,Se=ce.hiddenAreaCodes,Ce=this.props,P=Ce.disableDropdown,W=Ce.renderStringAsFlag,Q=Ce.isValid,he=Ce.defaultErrorMessage,le=Ce.specialLabel;if(typeof Q=="boolean")m=Q;else{var xe=Q(k.replace(/\D/g,""),Y,Ne,Se);typeof xe=="boolean"?(m=xe)===!1&&(ge=he):(m=!1,ge=xe)}var Ee=ne()((a(X={},this.props.containerClass,!0),a(X,"react-tel-input",!0),X)),Ge=ne()({arrow:!0,up:me}),ee=ne()(a({"form-control":!0,"invalid-number":!m,open:me},this.props.inputClass,!0)),fe=ne()({"selected-flag":!0,open:me}),Ae=ne()(a({"flag-dropdown":!0,"invalid-number":!m,open:me},this.props.buttonClass,!0)),q="flag ".concat(Y&&Y.iso2);return p.a.createElement("div",{className:"".concat(Ee," ").concat(this.props.className),style:this.props.style||this.props.containerStyle,onKeyDown:this.handleKeydown},le&&p.a.createElement("div",{className:"special-label"},le),ge&&p.a.createElement("div",{className:"invalid-number-message"},ge),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:k,onKeyDown:this.handleInputKeyDown,placeholder:this.props.placeholder,disabled:this.props.disabled,type:"tel"},this.props.inputProps,{ref:function(se){de.numberInputRef=se,typeof de.props.inputProps.ref=="function"?de.props.inputProps.ref(se):typeof de.props.inputProps.ref=="object"&&(de.props.inputProps.ref.current=se)}})),p.a.createElement("div",{className:Ae,style:this.props.buttonStyle,ref:function(se){return de.dropdownContainerRef=se}},W?p.a.createElement("div",{className:fe},W):p.a.createElement("div",{onClick:P?void 0:this.handleFlagDropdownClick,className:fe,title:Y?"".concat(Y.localName||Y.name,": + ").concat(Y.dialCode):"",tabIndex:P?"-1":"0",role:"button","aria-haspopup":"listbox","aria-expanded":!!me||void 0},p.a.createElement("div",{className:q},!P&&p.a.createElement("div",{className:Ge}))),me&&this.getCountryDropdownList()))}}])&&c(Z.prototype,ae),L}(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 Um=fu(Jm),$m=({value:e,onChange:t,error:n,onBlur:a,id:r,name:o,required:i,defaultCountry:s="us",className:l,responsive:c=!1,enableSearch:d=!0,autoComplete:f})=>{const y=(C,b)=>{t("+"+C,b.countryCode)};return u.jsxs("div",{className:l,children:[u.jsx("div",{className:Me("movmo-phone-input flex items-center px-3.5 py-0 h-10 rounded-lg border",c&&"movmo-phone-input-responsive",n?"border-error-500 focus:ring-error-500":"border-grayWarm-300 focus-within:ring-2 focus-within:ring-grayWarm-950"),children:u.jsx(Um,{country:s,value:e.replace("+",""),onChange:y,inputProps:{onBlur:a,required:i,id:r,name:o,...f&&{autoComplete:f}},enableSearch:d,autoFormat:!0})}),n&&u.jsx("p",{className:"text-error-500 text-xs mt-1",children:n})]})},Ca=e=>`otp-input-${e}`,ur=e=>Et(document.getElementById(Ca(e))),Qm=e=>Array.from({length:e},()=>""),Ka=({length:e,onComplete:t,onChange:n,disabled:a=!1,autoFocus:r=!1})=>{const[o,i]=w.useState(()=>Qm(e)),s=w.useRef(null),l=w.useRef(t);l.current=t;const c=b=>{i(b),n==null||n(b.join(""))},d=b=>{const h=[...o];for(let x=0;x<Math.min(b.length,e);x++)h[x]=b[x];c(h);const p=h.findIndex(x=>x==="");ur(p!==-1?p:e-1)},f=(b,h)=>{if(a||!/^\d*$/.test(b))return;if(b.length>=e){d(b);return}const p=[...o];p[h]=b.slice(-1),c(p),b&&h<e-1&&ur(h+1)},y=b=>{if(a)return;b.preventDefault();const h=b.clipboardData.getData("text/plain").replace(/\D/g,"");h&&d(h)},C=b=>{if(a)return;const h=[...o];h[b]="",c(h),b>0&&ur(b-1)};return w.useEffect(()=>{r&&ur(0)},[]),w.useEffect(()=>{if(a)return;const b=o.join("");if(o.some(h=>h==="")){s.current=null;return}s.current!==b&&(s.current=b,l.current(b))},[o,a]),u.jsx("div",{className:"flex justify-center gap-1.5 sm:gap-2",children:Array.from({length:e}).map((b,h)=>u.jsx("input",{type:"text",inputMode:"numeric",pattern:"[0-9]*",maxLength:h===0?e:1,autoComplete:h===0?"one-time-code":"off","aria-label":`Digit ${h+1} of ${e}`,disabled:a,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${a?" bg-grayWarm-100 text-grayWarm-400 cursor-not-allowed":""}`,value:o[h]??"",onChange:p=>f(p.target.value,h),onPaste:y,id:Ca(h),"data-testid":Ca(h),onKeyDown:p=>{p.key==="Backspace"&&C(h)}},h))})};function Km(e){const t=Math.max(0,Math.ceil(e));return`${Math.floor(t/60)}:${String(t%60).padStart(2,"0")}`}const gr={didntGetIt:"Didn't get it?",resend:"Resend code",resendIn:e=>`Resend code in ${Km(e)}`,attemptsLeft:e=>`${e} ${e===1?"attempt":"attempts"} left.`},Wl=({secondsLeft:e,onResend:t,disabled:n=!1,className:a=""})=>u.jsx("p",{className:`text-sm text-grayWarm-600 ${a}`,children:e>0?gr.resendIn(e):u.jsxs(u.Fragment,{children:[u.jsx("span",{children:gr.didntGetIt})," ",u.jsx("button",{type:"button",onClick:t,disabled:n,className:"font-semibold text-brand-600 hover:text-brand-700 rounded focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500 disabled:opacity-60 disabled:cursor-not-allowed",children:gr.resend})]})}),qm=({email:e,phone:t,otpLength:n,otpAction:a,onVerify:r,onClose:o,externalError:i,externalErrorVariant:s="error",disabled:l=!1,title:c,description:d,onOtpChange:f,onResend:y,resendAfter:C=0,attemptsRemaining:b})=>{const[h,p]=w.useState(C);w.useEffect(()=>{p(C)},[C]);const x=h>0;w.useEffect(()=>{if(!x)return;const A=setInterval(()=>p(I=>Math.max(0,I-1)),1e3);return()=>clearInterval(A)},[x]);const E=()=>{y==null||y(),p(C)};w.useEffect(()=>{const A=I=>{I.key==="Escape"&&o()};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[o]);const R=s==="warning"?"text-warning-700":"text-error-500";return u.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex justify-center items-center z-[110] px-4",children:u.jsxs(Ra,{className:"w-full max-w-[400px] rounded-lg bg-white",children:[u.jsx(Na,{className:"p-4 border-b border-grayWarm-200",children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.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:u.jsx("svg",{className:"w-4 h-4 text-grayWarm-600",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),u.jsx("h2",{className:"text-xl md:text-lg font-bold text-center flex-1",children:c||"Verify Account"}),u.jsx("div",{className:"w-8"})]})}),u.jsxs(Ga,{className:"p-4 text-center",children:[u.jsxs("div",{className:"text-center mb-3",children:[u.jsx("p",{className:"text-sm md:text-md text-grayWarm-600",children:d||"Enter the code we sent to"}),!d&&u.jsx("p",{className:"text-sm md:text-md text-grayWarm-600 mt-1",children:a===Kt.OTPAction.EMAILED?e:t})]}),u.jsx("div",{className:"mb-6",children:u.jsx(Ka,{length:n,onComplete:r,onChange:f,disabled:l})}),i&&u.jsx("p",{className:`${R} text-center text-sm mb-4`,children:i}),b!==void 0&&u.jsx("p",{className:"text-error-500 text-center text-sm mb-4",children:gr.attemptsLeft(b)}),y&&u.jsx(Wl,{secondsLeft:h,onResend:E,disabled:l,className:"text-center mb-2"})]})]})})};function zn(){if(typeof window>"u")return!1;try{return window.self!==window.top}catch{return!0}}const eb=new Set(["invalid_email","rate_limited","resend_too_soon","flow_expired","invalid_code","too_many_attempts","invalid_request","invalid_credential","passkey_limit","credential_exists","not_found","reauth_required","movmo_session_required","first_party_only","issuer_unavailable","passkey_failed","sign_in_failed","recovery_required","recovery_blocked","recovery_cooldown","code_sends_paused"]);function tb(e){return eb.has(e)}class Rt extends Error{constructor(t,n,a,r,o){super(n),this.status=t,this.code=n,this.retryAfter=a,this.attemptsRemaining=r,this.until=o}}function nb(e){return typeof e=="object"&&e!==null?e:void 0}function ci(e){return typeof e=="number"&&Number.isFinite(e)?e:void 0}function pt(e){if(e instanceof Rt)return e;const t=nb(e);if(t){const{response:n}=t;if(n&&typeof n=="object"){const a=typeof n.status=="number"?n.status:0,r=n.data&&typeof n.data=="object"?n.data:void 0,o=r==null?void 0:r.code,i=typeof o=="string"&&tb(o)?o:"unknown";return new Rt(a,i,ci(r==null?void 0:r.retry_after),ci(r==null?void 0:r.attempts_remaining),i==="recovery_cooldown"&&typeof(r==null?void 0:r.until)=="string"?r.until:void 0)}if(t.isAxiosError===!0||t.request!==void 0)return new Rt(0,"network")}return e instanceof TypeError&&/failed to fetch/i.test(e.message)?new Rt(0,"network"):new Rt(0,"unknown")}const rb=/^[A-Za-z0-9_-]{1,512}$/,ab=/^rc1\.[A-Za-z0-9_-]+$/,Ll=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}};function ob(e,t){async function n(){try{const{data:o}=await e.get("/v1/users/me/passkeys");return{...o,passkeys:o.passkeys??[]}}catch(o){throw pt(o)}}const a=()=>{var o;return((o=t==null?void 0:t.locale)==null?void 0:o.call(t))??"en-US"};function r(o){const i=Ll();return i?{...o,time_zone:i}:o}return{async login(o){try{const{data:i}=await e.post("/v1/auth/login",r({email:o,locale:a()}));return i}catch(i){throw pt(i)}},async sendCode(o){try{const{data:i}=await e.post("/v1/auth/code",r({flow_id:o}));return i}catch(i){throw pt(i)}},async startRecovery(o){try{const{data:i}=await e.post("/v1/auth/recovery",r({flow_id:o}));return i}catch(i){throw pt(i)}},async cancelRecovery(o){if(!ab.test(o))throw new Rt(0,"invalid_request");try{await e.post("/v1/auth/recovery/cancel",{token:o})}catch(i){throw pt(i)}},async passkeyOptions(){try{const{data:o}=await e.post("/v1/auth/passkey/options",{});return o}catch(o){throw pt(o)}},async verifyCode(o,i){try{const{data:s}=await e.post("/v1/auth/verify",{flow_id:o,code:i});return s}catch(s){throw pt(s)}},async verifyPasskey(o,i){try{const{data:s}=await e.post("/v1/auth/verify",{flow_id:o,credential:i});return s}catch(s){throw pt(s)}},fetchPasskeyList:n,async listPasskeys(){return(await n()).passkeys},async startRegistration(){try{const{data:o}=await e.post("/v1/users/me/passkeys/registration/start",{});return o}catch(o){throw pt(o)}},async completeRegistration(o,i){try{const{data:s}=await e.post("/v1/users/me/passkeys/registration/complete",r({flow_id:o,credential:i}));return s.passkey}catch(s){throw pt(s)}},async logout(){try{await e.post("/v1/auth/logout",{})}catch(o){pt(o)}},async deletePasskey(o){if(!rb.test(o))throw new Rt(0,"invalid_request");try{await e.delete(`/v1/users/me/passkeys/${encodeURIComponent(o)}`)}catch(i){throw pt(i)}}}}const tt={passkeyNotRecognized:"That passkey isn't recognized. We've sent you a code instead.",tooManyAttempts:"Too many attempts. Start again.",flowExpired:"That took too long. Start again.",codeSent:"Code sent",signedIn:"Signed in",generic:"Something went wrong. Try again.",accountMismatch:"That's a different account. Sign in with the account you're using.",passkeyExists:"This passkey is already on your account.",enrollExpired:"That took too long. Try again.",invalidEmail:"Enter a valid email address.",passkeyUnavailable:"This browser couldn't use a passkey. Choose 'I can't use my passkey' to sign in with a code.",discoverableNotRecognized:"That passkey isn't recognized. Continue with your email instead.",recoveryStarted:"Sign in without your passkey",recoveryBlocked:"We can't recover this account right now"};function Xl(e){return e===void 0?"Incorrect code.":`Incorrect code. ${e} ${e===1?"attempt":"attempts"} left.`}function qa(e){const t=e!==void 0&&Number.isFinite(e)?Math.max(1,Math.ceil(e/60)):1;return`Too many requests. Try again in ${t} ${t===1?"minute":"minutes"}.`}const eo="movmo_pk_prompt",ib=864e5,sb=14,lb=3,ub=99,cb=3456e4,to=e=>Math.floor(e/ib),db=/^\d{1,3}(\.\d{1,3}){3}$/;function Hl(e){if(!e||e.includes(":")||db.test(e))return;const t=e.split(".");if(!(t.length<2))return"."+t.slice(-2).join(".")}function fb(e,t){const n=[];for(const a of e.split(";")){const r=a.indexOf("=");r!==-1&&a.slice(0,r).trim()===t&&n.push(a.slice(r+1))}return n}function pb(e){if(typeof e!="object"||e===null)return!1;const{v:t,d:n,n:a,x:r}=e;return t===1&&typeof n=="number"&&Number.isInteger(n)&&n>=0&&typeof a=="number"&&Number.isInteger(a)&&a>=0&&(r===0||r===1)}function Yn(e=document.cookie,t=Date.now()){const n=fb(e,eo);if(n.length!==1)return null;let a;try{a=JSON.parse(decodeURIComponent(n[0]))}catch{return null}return!pb(a)||a.d>to(t)?null:a}function Zl(e=Date.now(),t=Yn(document.cookie,e)){return t?t.x===1?!1:t.d===0?!0:to(e)-t.d>=sb&&t.n>=lb:!0}function no(e){try{const t=Hl(window.location.hostname),n={...e,n:Math.min(e.n,ub)};document.cookie=`${eo}=${encodeURIComponent(JSON.stringify(n))}; Path=/; Max-Age=${cb}; SameSite=Lax; Secure${t?"; Domain="+t:""}`}catch{}}function zl(){const e=Yn();!e||e.d<=0||e.x!==0||no({v:1,d:e.d,n:e.n+1,x:e.x})}function Yl(e=Date.now()){no({v:1,d:to(e),n:0,x:0})}function Jl(e){const t=Yn();no({v:1,d:(t==null?void 0:t.d)??0,n:(t==null?void 0:t.n)??0,x:e?1:0})}function Ul(){var e;return((e=Yn())==null?void 0:e.x)===1}function _r(e){switch(e instanceof DOMException||typeof e=="object"&&e!==null&&"name"in e?e.name:void 0){case"NotAllowedError":return"cancelled";case"AbortError":return"aborted";case"InvalidStateError":return"exists";case"NotSupportedError":return"unsupported";case"SecurityError":return"security";default:return"unknown"}}function Jn(){if(!(typeof window>"u"||!window.PublicKeyCredential))return window.PublicKeyCredential}async function ro(){const e=Jn();if(!e)return{webauthn:!1,conditional:!1,platform:!1};let t=!1;try{typeof e.isConditionalMediationAvailable=="function"&&(t=await e.isConditionalMediationAvailable())}catch{t=!1}let n=!1;try{typeof e.isUserVerifyingPlatformAuthenticatorAvailable=="function"&&(n=await e.isUserVerifyingPlatformAuthenticatorAvailable())}catch{n=!1}return{webauthn:!0,conditional:t,platform:n}}class ao{constructor(){mo(this,"current",null)}begin(){return this.abortCurrent(),this.current=new AbortController,this.current.signal}abort(){this.abortCurrent()}abortCurrent(){this.current&&!this.current.signal.aborted&&this.current.abort(new DOMException("Superseded by a new ceremony","AbortError"))}}function gb(e){return ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}function vn(e){const t=gb(e);let n="";for(let a=0;a<t.length;a++)n+=String.fromCharCode(t[a]);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function wr(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),n=(4-t.length%4)%4;if(n===3)throw new Error("Invalid base64url string");const a=t+"=".repeat(n),r=atob(a),o=new Uint8Array(r.length);for(let i=0;i<r.length;i++)o[i]=r.charCodeAt(i);return o.buffer}function $l(e){if(Array.isArray(e))return e.map(t=>({...t,id:typeof t.id=="string"?wr(t.id):t.id}))}function mb(e){const t={...e};typeof e.challenge=="string"&&(t.challenge=wr(e.challenge));const n=$l(e.allowCredentials);return n&&(t.allowCredentials=n),t}function bb(e){const t={...e};if(typeof e.challenge=="string"&&(t.challenge=wr(e.challenge)),e.user&&typeof e.user=="object"){const a=e.user;t.user={...a,id:typeof a.id=="string"?wr(a.id):a.id}}const n=$l(e.excludeCredentials);return n&&(t.excludeCredentials=n),t}function hb(e){const t=Jn();return t&&typeof t.parseRequestOptionsFromJSON=="function"?t.parseRequestOptionsFromJSON(e.publicKey):mb(e.publicKey)}function vb(e){const t=Jn();return t&&typeof t.parseCreationOptionsFromJSON=="function"?t.parseCreationOptionsFromJSON(e.publicKey):bb(e.publicKey)}function yb(e){const t={clientDataJSON:vn(e.clientDataJSON)},n=e;n.authenticatorData&&(t.authenticatorData=vn(n.authenticatorData),t.signature=n.signature?vn(n.signature):void 0,t.userHandle=n.userHandle?vn(n.userHandle):void 0);const a=e;return a.attestationObject&&(t.attestationObject=vn(a.attestationObject),typeof a.getTransports=="function"&&(t.transports=a.getTransports())),t}function Cb(e){return{id:e.id,rawId:vn(e.rawId),type:e.type,authenticatorAttachment:e.authenticatorAttachment??void 0,clientExtensionResults:e.getClientExtensionResults(),response:yb(e.response)}}function Ql(e){const t=e;if(typeof t.toJSON=="function")try{return t.toJSON()}catch{}return Cb(e)}async function xa(e,t){const a={publicKey:hb(e),signal:t.signal};t.conditional&&(a.mediation="conditional");const r=await navigator.credentials.get(a);if(!r)throw new DOMException("No credential returned","NotAllowedError");return Ql(r)}async function Kl(e,t){let n=e.publicKey;if(t.securityKey){const o=n.authenticatorSelection??{};n={...n,hints:["security-key"],authenticatorSelection:{...o,authenticatorAttachment:"cross-platform"}}}const a=vb({publicKey:n}),r=await navigator.credentials.create({publicKey:a,signal:t.signal});if(!r)throw new DOMException("No credential returned","NotAllowedError");return Ql(r)}function di(e){if(e.aborted)throw new DOMException("Registration aborted","AbortError")}async function oo(e,t){const n=await e.startRegistration();di(t.signal);const a=await Kl(n.options,{signal:t.signal,securityKey:t.securityKey});return di(t.signal),e.completeRegistration(n.flow_id,a)}function ea(e){switch(e.code){case"invalid_code":return{code:e.code,message:Xl(e.attemptsRemaining)};case"too_many_attempts":return{code:e.code,message:tt.tooManyAttempts};case"rate_limited":return{code:e.code,message:qa(e.retryAfter)};case"flow_expired":return{code:e.code,message:tt.flowExpired};case"invalid_email":return{code:e.code,message:tt.invalidEmail};default:return{code:e.code,message:tt.generic}}}function xb(e){return e==="flow_expired"||e==="too_many_attempts"}function Ib(e){const t=e==="security"||e==="unsupported"?tt.passkeyUnavailable:tt.generic;return{code:e,message:t}}function Sb(e){if(e instanceof Rt)switch(e.code){case"credential_exists":return{code:e.code,message:tt.passkeyExists};case"flow_expired":return{code:e.code,message:tt.enrollExpired};case"rate_limited":return{code:e.code,message:qa(e.retryAfter)};default:return{code:e.code,message:tt.generic}}const t=_r(e);return t==="cancelled"||t==="aborted"?null:t==="exists"?{code:t,message:tt.passkeyExists}:{code:t,message:tt.generic}}async function Ab(e){return e.method!=="otp"||e.loginNext!=="code"||e.surface!=="top-level"||e.offerEnrollment===!1||!await e.platformAuthenticator()?!1:Zl()}const ql=27e4,ta=6;function eu(e){const t=w.useRef(e);t.current=e;const[n]=w.useState(zn),a=e.surface==="top-level"&&!n,r=a?"top-level":"embedded",o=e.lockedEmail!==void 0||e.expectedUserId!==void 0,[i,s]=w.useState("email"),[l,c]=w.useState(e.lockedEmail??e.initialEmail??""),[d,f]=w.useState(!1),[y,C]=w.useState(null),[b,h]=w.useState(ta),[p,x]=w.useState(0),[E,R]=w.useState(void 0),[A,I]=w.useState(!1),[M,B]=w.useState(!1),[O,re]=w.useState(!1),[ne,ue]=w.useState(""),[z]=w.useState(()=>new ao),ie=w.useRef(!1),G=w.useRef("email"),T=w.useRef(l),V=w.useRef(0);V.current=p;const $=w.useRef(0),K=w.useRef(null),we=w.useRef(null),_=w.useRef(null),L=w.useRef(0),Z=w.useRef(null),ae=w.useRef(null),X=w.useRef(!1),m=w.useRef(null),ge=w.useRef(!1),de=w.useRef(!1),ce=w.useRef(!1),Ne=()=>ae.current??(ae.current=ro()),Y=j=>{G.current=j,s(j),j!=="code"&&x(0),j!=="passkey"&&B(!1),j!=="recovery"&&re(!1)},me=j=>{C(j),j&&ue("")},k=j=>ie.current&&$.current===j,Se=j=>{const U=++$.current;return K.current=j,f(!0),C(null),U},Ce=j=>{$.current===j&&(K.current=null,f(!1))},P=()=>{$.current++,K.current=null,f(!1)},W=()=>({surface:t.current.promptSurface??"modal"}),Q=j=>{var U,oe;return(oe=(U=t.current).onEvent)==null?void 0:oe.call(U,j,W())},he=()=>{Z.current!==null&&(clearTimeout(Z.current),Z.current=null),L.current++},le=()=>{he(),z.abort()},xe=async()=>{if(!a||o)return;he();const j=L.current,U=()=>ie.current&&L.current===j&&G.current==="email"&&K.current===null,{conditional:oe}=await Ne();if(!U()||!oe)return;const Xe=z.begin();Z.current=setTimeout(()=>void xe(),ql);let rt;try{rt=await t.current.api.passkeyOptions()}catch{return}if(!U()||Xe.aborted)return;const dt=rt.flow_id;xa(rt.options,{signal:Xe,conditional:!0}).then(v=>{U()&&Ee(dt,v)},()=>{})},Ee=async(j,U)=>{he();const oe=Se("request");let Xe;try{Xe=await t.current.api.verifyPasskey(j,U)}catch(rt){if(!k(oe))return;const dt=pt(rt).code==="invalid_credential";Ge(oe,dt?{code:"invalid_credential",message:tt.discoverableNotRecognized}:null);return}k(oe)&&await Ke(oe,Xe,"passkey",null)},Ge=(j,U)=>{Ce(j),me(U),G.current==="passkey"&&B(!0),G.current==="email"&&xe()},ee=(j,U)=>{const oe=G.current==="email";Ce(j),we.current=null,Y("email"),me(U),oe&&xe()},fe=(j,U)=>{const oe=pt(U);if(oe.code==="recovery_required"){Ce(j),me(null),Y("recovery"),ue(tt.recoveryStarted);return}if(oe.code==="recovery_blocked"){Ce(j),me(null),re(!0),ue(tt.recoveryBlocked);return}if(xb(oe.code)){ee(j,ea(oe));return}if(oe.code==="resend_too_soon"){Ce(j),x(Math.max(0,Math.ceil(oe.retryAfter??0)));return}oe.code==="invalid_code"&&R(oe.attemptsRemaining),Ge(j,ea(oe))},Ae=async(j,U)=>{K.current="request";try{const oe=await U();return k(j)?oe:void 0}catch(oe){k(j)&&fe(j,oe);return}},q=(j,U)=>{_.current=j.flow_id,h(j.code_length||ta),R(void 0),Y("code"),x(Math.max(0,j.resend_after??0)),ue(tt.codeSent),U&&C(U)},se=async(j,U,oe)=>{const Xe=await Ae(j,()=>t.current.api.sendCode(U));Xe&&(Ce(j),q(Xe,oe))},De=()=>{P(),le(),we.current=null,Y("mismatch"),me({code:"account_mismatch",message:tt.accountMismatch});const{api:j}=t.current;(async()=>{var U,oe;try{await j.logout()}catch{}(oe=(U=t.current).onAccountMismatch)==null||oe.call(U)})()},ot=(j,U)=>{ge.current||(ge.current=!0,m.current=null,Y("done"),ue(tt.signedIn),t.current.onSignedIn(j,U))},Ke=async(j,U,oe,Xe)=>{var ke,Oe,Pe,je;const rt=t.current,dt=rt.expectedUserId;if(dt!==void 0&&U.user_id!==dt){De();return}let v;try{v=await rt.getCurrentUser()}catch{if(!k(j))return;const qe={code:"unknown",message:tt.generic};G.current==="passkey"?ee(j,qe):Ge(j,qe);return}if(!k(j))return;if(dt!==void 0&&v.id!==dt){De();return}const D=typeof U.recovery_until=="string"&&U.recovery_until!=="",J=D?{method:"recovery",newUser:U.new_user,recoveryUntil:U.recovery_until}:{method:oe,newUser:U.new_user};de.current||(de.current=!0,(Oe=(ke=t.current).onVerified)==null||Oe.call(ke,v,J)),J.method==="otp"&&a&&zl(),D&&((je=(Pe=t.current).onEvent)==null||je.call(Pe,"sign_in",{...W(),method:"recovery"}));const ve=await Ab({method:J.method,loginNext:Xe,surface:r,offerEnrollment:rt.offerEnrollment,platformAuthenticator:async()=>(await Ne()).platform});k(j)&&(Ce(j),ve?(m.current={user:v,info:J},Y("enroll"),Q("passkey_prompt_shown")):ot(v,J))},lt=async(j,U,oe,Xe)=>{if(!a){Ce(j);return}K.current="ceremony";let rt;try{rt=await xa(U.options,{signal:oe})}catch(v){if(!k(j))return;const D=_r(v);Ge(j,D==="cancelled"||D==="aborted"?null:Ib(D));return}if(!k(j))return;K.current="request";let dt;try{dt=await t.current.api.verifyPasskey(U.flow_id,rt)}catch(v){if(!k(j))return;const D=pt(v);if(D.code==="invalid_credential"&&Xe){const J={code:"invalid_credential",message:tt.passkeyNotRecognized};await se(j,U.flow_id,J)}else D.code==="invalid_credential"?Ge(j,{code:"invalid_credential",message:tt.discoverableNotRecognized}):Xe?ee(j,ea(D)):fe(j,v);return}k(j)&&await Ke(j,dt,"passkey",Xe?"passkey":null)},gt=(j,U)=>(B(!1),lt(j,U,z.begin(),!0)),It=j=>{t.current.lockedEmail===void 0&&(T.current=j,c(j))},Ue=async()=>{if(K.current||G.current!=="email")return;le();const j=(t.current.lockedEmail??T.current).trim();if(!j){me({code:"invalid_email",message:tt.invalidEmail}),xe();return}T.current=j,c(j);const U=Se("request"),oe=await Ae(U,()=>t.current.api.login(j));oe&&await Nt(U,oe)},Nt=async(j,U)=>{we.current=U,U.next==="code"?(Ce(j),q(U)):a?(h(U.code_length||ta),Y("passkey"),await gt(j,U)):await se(j,U.flow_id)},Mt=async()=>{if(!a||o||!X.current||K.current||G.current!=="email")return;le();const j=Se("ceremony"),U=z.begin(),oe=await Ae(j,()=>t.current.api.passkeyOptions());oe&&await lt(j,oe,U,!1)},rn=()=>{const j=we.current;!a||G.current!=="passkey"||K.current||(j==null?void 0:j.next)!=="passkey"||gt(Se("ceremony"),j)},St=()=>{o||G.current!=="passkey"||K.current==="request"||!we.current||(P(),z.abort(),C(null),Y("recovery"),ue(tt.recoveryStarted))},Gt=async()=>{var Xe;const j=(Xe=we.current)==null?void 0:Xe.flow_id;if(G.current!=="recovery"||K.current||!j||o)return;const U=Se("request"),oe=await Ae(U,()=>t.current.api.startRecovery(j));oe&&(Ce(U),Q("recovery_started"),q(oe))},Pt=()=>{var j;G.current!=="recovery"||K.current||O||(C(null),a&&((j=we.current)==null?void 0:j.next)==="passkey"?Y("passkey"):(we.current=null,Y("email")))},an=()=>{G.current!=="passkey"&&G.current!=="code"||(P(),z.abort(),we.current=null,C(null),Y("email"))},Lt=async j=>{var rt;const U=_.current;if(G.current!=="code"||K.current||!U)return;const oe=Se("request"),Xe=await Ae(oe,()=>t.current.api.verifyCode(U,j));Xe&&await Ke(oe,Xe,"otp",((rt=we.current)==null?void 0:rt.next)??null)},on=async()=>{const j=_.current;if(G.current!=="code"||K.current||V.current>0||!j)return;ue("");const U=Se("request"),oe=await Ae(U,()=>t.current.api.sendCode(j));oe&&(Ce(U),q(oe))},Xt=async()=>{if(!a||G.current!=="enroll"||K.current)return;const j=Se("ceremony"),U=z.begin();try{await oo(t.current.api,{signal:U})}catch(oe){k(j)&&Ge(j,Sb(oe));return}k(j)&&(Ce(j),Y("enrolled"),Q("passkey_prompt_accepted"))},Ct=()=>{const j=m.current;j&&ot(j.user,j.info)},ht=()=>{G.current==="enroll"&&(P(),z.abort(),C(null),Yl(),Q("passkey_prompt_declined"),Ct())},Ht=()=>{G.current==="enrolled"&&Ct()},Ot=()=>{G.current==="enroll"?ht():G.current==="enrolled"?Ht():(P(),le())};w.useEffect(()=>(ie.current=!0,()=>{ie.current=!1,le()}),[]),w.useEffect(()=>{if(!a||o)return;let j=!1;return Ne().then(U=>{X.current=U.webauthn,j||I(U.webauthn)}),()=>{j=!0}},[a,o]);const sn=()=>{var Xe;const{autoContinue:j,lockedEmail:U,initialEmail:oe}=t.current;return!!(j&&((Xe=U??oe)!=null&&Xe.trim())&&!ce.current)};w.useEffect(()=>{if(!(i!=="email"||K.current||sn()))return xe(),he},[i]),w.useEffect(()=>{sn()&&(ce.current=!0,Ue())},[]);const ln=i==="code"&&p>0;return w.useEffect(()=>{if(!ln)return;const j=setInterval(()=>x(U=>Math.max(0,U-1)),1e3);return()=>clearInterval(j)},[ln]),{step:i,email:l,setEmail:It,busy:d,error:(y==null?void 0:y.message)??null,errorCode:(y==null?void 0:y.code)??null,codeLength:b,resendIn:p,attemptsRemaining:E,canUsePasskeyButton:A,passkeyFailed:M,recoveryAvailable:!o,recoveryBlocked:O,liveMessage:ne,submitEmail:()=>void Ue(),signInWithPasskey:()=>void Mt(),retryPasskey:rn,cantUsePasskey:St,sendRecoveryCode:()=>void Gt(),back:Pt,changeEmail:an,submitCode:j=>void Lt(j),resendCode:()=>void on(),acceptEnrollment:()=>void Xt(),declineEnrollment:ht,finish:Ht,close:Ot}}const $t={prompt:{heading:"Skip the code next time",body:"Set up a passkey and sign in with Face ID, your fingerprint or your screen lock.",accept:"Set up passkey",decline:"Not now",footnote:"You can manage passkeys anytime in Security."},added:{heading:"Passkey added",body:"Next time, sign in with Face ID, your fingerprint or your screen lock. We've emailed you a confirmation.",done:"Done"}},Ia=({status:e="prompt",onAccept:t,onDecline:n,onDone:a,busy:r=!1,error:o=null})=>e==="added"?u.jsxs("div",{className:"flex flex-col items-center text-center gap-4",children:[u.jsx("div",{className:"flex items-center justify-center w-12 h-12 rounded-full bg-success-50",children:u.jsx(Qa,{size:24,className:"text-success-600"})}),u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx("h2",{tabIndex:-1,className:"text-lg font-semibold text-grayWarm-950 focus:outline-none",children:$t.added.heading}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:$t.added.body})]}),u.jsx("button",{type:"button",onClick:a,className:"w-full py-3 px-4 bg-gradient-to-r from-brand-500 to-brand-600 text-white font-semibold rounded-xl transition-opacity hover:opacity-90",children:$t.added.done})]}):u.jsxs("div",{className:"flex flex-col items-center text-center gap-4",children:[u.jsx("div",{className:"flex items-center justify-center w-12 h-12 rounded-full bg-brand-50",children:u.jsx(Tl,{size:24,className:"text-brand-600"})}),u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx("h2",{tabIndex:-1,className:"text-lg font-semibold text-grayWarm-950 focus:outline-none",children:$t.prompt.heading}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:$t.prompt.body})]}),o&&u.jsxs("div",{role:"alert",className:"w-full flex items-start gap-2 rounded-lg bg-warning-50 border border-warning-200 p-3 text-left",children:[u.jsx(En,{size:20,className:"text-warning-700 flex-shrink-0 mt-0.5"}),u.jsx("p",{className:"text-sm text-warning-700",children:o})]}),u.jsxs("div",{className:"w-full flex flex-col gap-2",children:[u.jsx("button",{type:"button",onClick:t,disabled:r,"aria-busy":r,className:"w-full py-3 px-4 bg-gradient-to-r from-brand-500 to-brand-600 text-white font-semibold rounded-xl transition-opacity hover:opacity-90 disabled:opacity-70 disabled:cursor-not-allowed",children:$t.prompt.accept}),u.jsx("button",{type:"button",onClick:n,className:"w-full py-3 px-4 bg-white border border-grayWarm-300 text-grayWarm-700 font-semibold rounded-xl transition-colors hover:bg-grayWarm-50",children:$t.prompt.decline})]}),u.jsx("p",{className:"text-xs text-grayWarm-500",children:$t.prompt.footnote})]}),io="focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500 focus-visible:ring-offset-2",Wn=S.forwardRef(({className:e,type:t="button",...n},a)=>u.jsx("button",{ref:a,type:t,className:Me("w-full h-11 px-4 inline-flex items-center justify-center gap-2 rounded-xl bg-gradient-to-r from-brand-500 to-brand-600 text-white font-semibold shadow-sm transition-opacity hover:opacity-95 disabled:opacity-60 disabled:cursor-not-allowed",io,e),...n})),gn=S.forwardRef(({className:e,type:t="button",...n},a)=>u.jsx("button",{ref:a,type:t,className:Me("w-full h-11 px-4 inline-flex items-center justify-center gap-2 rounded-xl bg-white border border-grayWarm-300 text-grayWarm-700 font-semibold shadow-sm transition-colors hover:bg-grayWarm-50 disabled:opacity-60 disabled:cursor-not-allowed",io,e),...n})),Er=S.forwardRef(({className:e,type:t="button",...n},a)=>u.jsx("button",{ref:a,type:t,className:Me("text-sm font-semibold text-brand-600 hover:text-brand-700 rounded disabled:opacity-60 disabled:cursor-not-allowed",io,e),...n}));Wn.displayName="PrimaryButton";gn.displayName="SecondaryButton";Er.displayName="LinkButton";const Ze={email:{title:"Sign in to Movmo",description:"Enter your email. New here? We'll create your account.",label:"Email",continue:"Continue",divider:"or",passkey:"Sign in with passkey"},passkey:{title:"Sign in with your passkey",description:"Use Face ID, your fingerprint or your screen lock.",change:"Change",changeLabel:"Change email",continue:"Continue",failed:"Your passkey didn't finish. Try again, or choose 'I can't use my passkey'.",tryAgain:"Try again",cantUse:"I can't use my passkey",reauthDescription:"Use your passkey to continue. Lost it? Recover your account from the sign-in page."},recovery:{title:"Sign in without your passkey",description:e=>`We'll email a code to ${e}. Signing in this way starts account recovery: everyone on your account is notified, and for 24 hours this session can't add passkeys, change contact details, add payment methods or connect airlines.`,send:"Send me a code",back:"Back",blockedTitle:"We can't recover this account right now",blockedDescription:"Too many recovery attempts, or recovery was recently cancelled from this account. Try again later or sign in with a passkey on another device.",close:"Close"},code:{title:"Check your email",description:e=>`Enter the code we sent to ${e}.`},cancel:"Cancel"},so=({flow:e,lockedEmail:t,title:n,description:a,onCancel:r,onClose:o,icon:i})=>{const s=r?()=>{e.close(),r()}:void 0;let l=null;switch(e.step){case"email":l=u.jsx(wb,{flow:e,locked:t!==void 0,title:n,description:a,onCancel:s,icon:i});break;case"passkey":l=u.jsx(Eb,{flow:e,locked:t!==void 0,title:n,description:a,onCancel:s,icon:i});break;case"recovery":l=u.jsx(Nb,{flow:e,onCancel:s??o});break;case"code":l=u.jsx(Pb,{flow:e,title:n,onCancel:s});break;case"enroll":l=u.jsx(fi,{children:u.jsx(Ia,{status:"prompt",onAccept:e.acceptEnrollment,onDecline:e.declineEnrollment,busy:e.busy,error:e.error})});break;case"enrolled":l=u.jsx(fi,{children:u.jsx(Ia,{status:"added",onAccept:e.acceptEnrollment,onDecline:e.declineEnrollment,onDone:e.finish})});break;case"mismatch":l=u.jsx(Gb,{flow:e,title:n,onCancel:s,icon:i});break}return u.jsxs("div",{className:"text-left",children:[u.jsx("div",{"aria-live":"polite",className:"sr-only",children:e.error??e.liveMessage}),u.jsx("div",{"data-step":e.step,className:"motion-safe:animate-in motion-safe:fade-in-0 motion-safe:slide-in-from-bottom-1 motion-safe:duration-200",children:l},e.step)]})},fi=({children:e})=>{const t=w.useRef(null);return w.useEffect(()=>{var n;Et((n=t.current)==null?void 0:n.querySelector("h2"))},[]),u.jsx("div",{ref:t,children:e})},Sn=({icon:e,title:t,description:n,headingRef:a})=>u.jsxs("div",{className:"flex flex-col gap-5 mb-5",children:[u.jsx("div",{className:"flex items-center justify-center w-12 h-12 rounded-[10px] border border-grayWarm-200 shadow-sm text-grayWarm-700",children:u.jsx(e,{size:24})}),u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx("h2",{ref:a,tabIndex:a?-1:void 0,className:"text-lg font-semibold text-grayWarm-950 focus:outline-none",children:t}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:n})]})]}),lo=({children:e})=>u.jsxs("div",{className:"flex items-start gap-3 rounded-xl border border-warning-200 bg-warning-50 p-4",children:[u.jsx(En,{size:20,className:"flex-shrink-0 text-warning-700"}),u.jsx("p",{className:"text-sm text-warning-700",children:e})]}),tu=({primary:e,onCancel:t})=>t?u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsx(gn,{onClick:t,children:Ze.cancel}),e]}):u.jsx(u.Fragment,{children:e}),wb=({flow:e,locked:t,title:n,description:a,onCancel:r,icon:o})=>{const i=w.useRef(null),s=w.useRef(null),l=w.useId(),c=w.useId();return w.useEffect(()=>{Et(t?s.current:i.current)},[t]),u.jsxs(u.Fragment,{children:[u.jsx(Sn,{icon:o??Vl,title:n??Ze.email.title,description:a??Ze.email.description}),u.jsxs("form",{noValidate:!0,onSubmit:d=>{d.preventDefault(),e.submitEmail()},className:"flex flex-col gap-5",children:[u.jsxs("div",{className:"flex flex-col gap-1.5",children:[u.jsx("label",{htmlFor:l,className:"text-sm font-medium text-grayWarm-700",children:Ze.email.label}),u.jsxs("div",{className:"relative",children:[u.jsx(Br,{size:20,className:"pointer-events-none absolute left-3.5 top-1/2 -translate-y-1/2 text-grayWarm-500"}),u.jsx(Vt,{ref:i,id:l,type:"email",name:"email",autoComplete:"username webauthn",value:e.email,onChange:d=>e.setEmail(d.target.value),disabled:t,"aria-invalid":e.error?!0:void 0,"aria-describedby":e.error?c:void 0,className:`h-11 pl-10 ${e.error?"border-error-500 focus:border-error-500":""} autofill:bg-white autofill:shadow-[inset_0_0_0px_1000px_white]`})]}),e.error&&u.jsx("p",{id:c,className:"text-sm text-error-500",children:e.error})]}),u.jsx(tu,{onCancel:r,primary:u.jsx(Wn,{ref:s,type:"submit",disabled:e.busy,"aria-busy":e.busy,children:Ze.email.continue})})]}),e.canUsePasskeyButton&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"flex items-center gap-2 my-5","aria-hidden":"true",children:[u.jsx("div",{className:"h-px flex-1 bg-grayWarm-200"}),u.jsx("span",{className:"text-sm text-grayWarm-500",children:Ze.email.divider}),u.jsx("div",{className:"h-px flex-1 bg-grayWarm-200"})]}),u.jsxs(gn,{onClick:e.signInWithPasskey,disabled:e.busy,children:[u.jsx(Ua,{size:20}),Ze.email.passkey]})]})]})},Eb=({flow:e,locked:t,title:n,description:a,onCancel:r,icon:o})=>{const i=w.useRef(null);w.useEffect(()=>{Et(i.current)},[]);const s=e.error??(e.passkeyFailed?Ze.passkey.failed:null);return u.jsxs(u.Fragment,{children:[u.jsx(Sn,{icon:o??jl,title:n??Ze.passkey.title,description:e.recoveryAvailable?a??Ze.passkey.description:Ze.passkey.reauthDescription,headingRef:i}),u.jsxs("div",{className:"flex flex-col gap-5",children:[s?u.jsx(lo,{children:s}):u.jsxs("div",{className:"flex items-center justify-between gap-3 h-11 rounded-lg border border-grayWarm-300 bg-grayWarm-50 px-3.5 shadow-sm",children:[u.jsx("span",{className:"truncate text-base text-grayWarm-700",children:e.email}),!t&&u.jsx(Er,{onClick:e.changeEmail,"aria-label":Ze.passkey.changeLabel,children:Ze.passkey.change})]}),u.jsx(tu,{onCancel:r,primary:u.jsx(Wn,{onClick:e.retryPasskey,disabled:e.busy,"aria-busy":e.busy,children:e.passkeyFailed?Ze.passkey.tryAgain:Ze.passkey.continue})}),e.recoveryAvailable&&u.jsx(Er,{onClick:e.cantUsePasskey,className:"self-center",children:Ze.passkey.cantUse})]})]})},Rb=e=>{const t=e.lastIndexOf("@");return t<1?e:`${e.slice(0,1)}•••${e.slice(t)}`},Nb=({flow:e,onCancel:t})=>{const n=w.useRef(null);return w.useEffect(()=>{Et(n.current)},[e.recoveryBlocked]),e.recoveryBlocked?u.jsxs(u.Fragment,{children:[u.jsx(Sn,{icon:En,title:Ze.recovery.blockedTitle,description:Ze.recovery.blockedDescription,headingRef:n}),u.jsx(Wn,{onClick:t??e.close,children:Ze.recovery.close})]}):u.jsxs(u.Fragment,{children:[u.jsx(Sn,{icon:Br,title:Ze.recovery.title,description:Ze.recovery.description(Rb(e.email)),headingRef:n}),u.jsxs("div",{className:"flex flex-col gap-5",children:[e.error&&u.jsx(lo,{children:e.error}),u.jsx(Wn,{onClick:e.sendRecoveryCode,disabled:e.busy,"aria-busy":e.busy,children:Ze.recovery.send}),u.jsx(Er,{onClick:e.back,disabled:e.busy,className:"self-center",children:Ze.recovery.back})]})]})},Gb=({flow:e,title:t,onCancel:n,icon:a})=>u.jsxs(u.Fragment,{children:[u.jsx(Sn,{icon:a??En,title:t??Ze.email.title,description:e.error??""}),n&&u.jsx(gn,{onClick:n,children:Ze.cancel})]}),Pb=({flow:e,title:t,onCancel:n})=>u.jsxs(u.Fragment,{children:[u.jsx(Sn,{icon:Br,title:t??Ze.code.title,description:Ze.code.description(e.email)}),u.jsxs("div",{className:"flex flex-col gap-5",children:[u.jsxs("div",{className:"flex flex-col gap-1.5",children:[u.jsx(Ka,{length:e.codeLength,onComplete:e.submitCode,autoFocus:!0}),e.error&&e.errorCode!=="invalid_credential"&&u.jsx("p",{className:"text-error-500 text-center text-sm",children:e.error})]}),e.error&&e.errorCode==="invalid_credential"&&u.jsx(lo,{children:e.error}),u.jsx(Wl,{secondsLeft:e.resendIn,onResend:e.resendCode,disabled:e.busy}),n&&u.jsx(gn,{onClick:n,children:Ze.cancel})]})]});function uo(e){const t=eu(e),n=w.useRef(t);return n.current=t,w.useEffect(()=>()=>{const{step:a,close:r}=n.current;(a==="enroll"||a==="enrolled")&&r()},[]),t}const jb=({title:e,description:t,onCancel:n,...a})=>{const r=uo(a);return u.jsx(so,{flow:r,lockedEmail:a.lockedEmail,title:e,description:t,onCancel:n})},Tb=({isOpen:e,...t})=>e?u.jsx(kb,{...t}):null,kb=({onClose:e,hideCloseButton:t=!1,onLoginSuccess:n,...a})=>{const r=uo({...a,promptSurface:a.promptSurface??"modal",onSignedIn:n}),o=()=>{r.close(),e()};return u.jsx(pn,{isOpen:r.step!=="done",onClose:o,title:Ze.email.title,header:"none",maxWidthPx:400,hideCloseButton:t,children:u.jsx(so,{flow:r,lockedEmail:a.lockedEmail,onClose:o})})};function Sa(e){try{const t=e();t&&typeof t.catch=="function"&&t.catch(()=>{})}catch{}}function Aa(e,t){if(zn())return;const n=e.rp_id??(t==null?void 0:t.rp_id),a=e.user_handle??(t==null?void 0:t.user_handle);if(!n||!a)return;const r=Jn();if(r){if(typeof r.signalAllAcceptedCredentials=="function"){const o=(e.passkeys??[]).map(i=>i.id);Sa(()=>{var i;return(i=r.signalAllAcceptedCredentials)==null?void 0:i.call(r,{rpId:n,userId:a,allAcceptedCredentialIds:o})})}if(e.user_handle&&e.rp_id&&e.user_name&&typeof r.signalCurrentUserDetails=="function"){const o=e.user_name,i=e.user_display_name??e.user_name;Sa(()=>{var s;return(s=r.signalCurrentUserDetails)==null?void 0:s.call(r,{rpId:n,userId:a,name:o,displayName:i})})}}}function nu(e,t){if(zn()||!e||!t)return;const n=Jn();!n||typeof n.signalUnknownCredential!="function"||Sa(()=>{var a;return(a=n.signalUnknownCredential)==null?void 0:a.call(n,{rpId:e,credentialId:t})})}const cn={title:"Confirm it's you",framed:"Manage passkeys on the Movmo Security page.",cancel:"Cancel",description:{add:"For your security, sign in again to add a passkey.",remove:"For your security, sign in again to remove this passkey."}},ru=({isOpen:e,...t})=>e?u.jsx(Mb,{...t}):null,Mb=e=>{const[t]=w.useState(zn);return t?u.jsx(Ob,{onCancel:e.onCancel}):u.jsx(Fb,{...e})},Ob=({onCancel:e})=>u.jsx(pn,{isOpen:!0,onClose:e,title:cn.title,header:"none",maxWidthPx:400,children:u.jsxs("div",{className:"flex flex-col gap-5 text-left",children:[u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx("h2",{className:"text-lg font-semibold text-grayWarm-950",children:cn.title}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:cn.framed})]}),u.jsx(gn,{onClick:e,children:cn.cancel})]})}),Fb=({action:e,account:t,api:n,getCurrentUser:a,onConfirmed:r,onCancel:o,onMismatch:i})=>{const s=uo({api:n,surface:"top-level",getCurrentUser:a,lockedEmail:t.email,expectedUserId:t.id,autoContinue:!0,offerEnrollment:!1,onSignedIn:()=>r(),onAccountMismatch:i}),l=()=>{s.close(),o()};return u.jsx(pn,{isOpen:s.step!=="done",onClose:l,title:cn.title,header:"none",maxWidthPx:400,children:u.jsx(so,{flow:s,lockedEmail:t.email,title:cn.title,description:cn.description[e],onCancel:o,icon:Ol})})},Le={loading:"Loading passkeys",framed:"Manage passkeys on the Movmo Security page.",empty:"Passkeys let you sign in with Face ID, your fingerprint, your screen lock or a security key. No code to wait for.",addPasskey:"Passkey",addPasskeyLabel:"Add passkey",addSecurityKey:"Security key",addSecurityKeyLabel:"Add security key",suggestToggle:"Suggest a passkey after I sign in with a code",limit:"You've reached the limit of 10 passkeys. Remove one to add another.",unsupported:"This browser doesn't support passkeys. You can still remove them here.",added:"Passkey added. We've emailed you a confirmation.",exists:"This passkey is already on your account.",expired:"That took too long. Try again.",generic:"Something went wrong. Try again.",confirmedAdd:"You're confirmed. Select + Passkey again to finish.",confirmedAddKey:"You're confirmed. Select + Security key again to finish.",recoveryInProgress:e=>e?`Account recovery is in progress. You can change passkeys after ${e}.`:"Account recovery is in progress. You can change passkeys once it ends.",retry:"Retry",sessionRequired:"Sign in again to manage passkeys",signIn:"Sign in",kind:{synced:"Synced",device:"This device",security_key:"Security key"},securityKeyTitle:"Security key",addedOn:e=>`Added ${e}`,lastUsed:e=>`Last used ${e}`,neverUsed:"Never used",removeLabel:e=>`Remove ${e}`,remove:{title:e=>`Remove ${e}?`,body:"You won't be able to sign in with it anymore. You can still sign in with a code.",cancel:"Cancel",confirm:"Remove"}},Bb=10,Vb=6e3,Db=new Set(["confirmedAdd","confirmedAddKey"]),_b={synced:Ua,device:Ml,security_key:kl},Wb=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}),Lb=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"}),Xb=e=>{const t=new Date(e);return Number.isNaN(t.getTime())?void 0:Lb.format(t)},pi=e=>{const t=new Date(e);return Number.isNaN(t.getTime())?e:Wb.format(t)};function au(e){const t=e.kind??(e.synced?"synced":"device"),n=e.provider==="Passkey"&&t==="security_key"?Le.securityKeyTitle:e.provider,a=Le.kind[t]===n?null:Le.kind[t],r=`${Le.addedOn(pi(e.created_at))} · ${e.last_used_at?Le.lastUsed(pi(e.last_used_at)):Le.neverUsed}`;return{kind:t,title:n,badge:a,meta:r,Icon:_b[t]}}const gi=e=>e.user_handle&&e.rp_id?{fallback:{user_handle:e.user_handle,rp_id:e.rp_id},ids:new Set(e.passkeys.map(t=>t.id))}:null,Hb=e=>{const t=w.useRef(e);t.current=e;const[n]=w.useState(zn),[a,r]=w.useState("loading"),[o,i]=w.useState([]),[s,l]=w.useState(!1),[c,d]=w.useState(!1),[f,y]=w.useState(!1),[C,b]=w.useState(null),[h,p]=w.useState(0),[x,E]=w.useState(!1),[R,A]=w.useState(null),[I,M]=w.useState(null),[B,O]=w.useState(()=>!Ul()),[re,ne]=w.useState(null),[ue]=w.useState(()=>new ao),z=w.useRef(!1),ie=w.useRef(!1),G=w.useRef(0),T=w.useRef(0),V=w.useRef(null),$=w.useId(),K=w.useCallback(async()=>{const Y=++G.current;r("loading");try{const[me,k]=await Promise.all([t.current.api.fetchPasskeyList(),ro()]);if(!ie.current||Y!==G.current)return;V.current=gi(me),Aa(me),i(me.passkeys),l(k.webauthn),r("ready")}catch(me){if(!ie.current||Y!==G.current)return;const k=me instanceof Rt&&me.code==="movmo_session_required";r(k?"sessionRequired":"error")}},[]),we=w.useCallback(async Y=>{const me=++T.current;let k;try{k=await t.current.api.fetchPasskeyList()}catch{return}if(me!==T.current)return;const Se=V.current,Ce=Y!==void 0&&(Se!=null&&Se.ids.has(Y))?Se.fallback:void 0;V.current=gi(k)??Se,Aa(k,Ce),ie.current&&i(k.passkeys)},[]);w.useEffect(()=>(ie.current=!0,n||K(),()=>{ie.current=!1,ue.abort()}),[n,ue,K]),w.useEffect(()=>{if(h===0)return;E(!0);const Y=setTimeout(()=>E(!1),Vb);return()=>clearTimeout(Y)},[h]);const _=(Y,me)=>{i(k=>k.filter(Se=>Se.id!==Y)),d(!1),we(me?Y:void 0)},L=(Y,me,k)=>{if(me instanceof Rt){switch(me.code){case"recovery_cooldown":ne(me.until??"");return;case"reauth_required":k?b("generic"):M(Y);return;case"movmo_session_required":b("sessionRequired"),t.current.onSessionRequired();return;case"credential_exists":b("exists");return;case"passkey_limit":d(!0);return;case"flow_expired":b("expired");return;case"not_found":if(Y.type==="remove"){_(Y.passkey.id,!1);return}break}b("generic");return}switch(_r(me)){case"cancelled":case"aborted":k&&Y.type==="add"&&b(Y.securityKey?"confirmedAddKey":"confirmedAdd");return;case"exists":b("exists");return;default:b("generic")}},Z=async(Y,me=!1)=>{if(!z.current){z.current=!0,y(!0),b(null);try{if(Y.type==="add"){const k=await oo(t.current.api,{securityKey:Y.securityKey,signal:ue.begin()});if(!ie.current)return;i(Se=>[k,...Se.filter(Ce=>Ce.id!==k.id)]),p(Se=>Se+1),we()}else{await t.current.api.deletePasskey(Y.passkey.id);const k=V.current;if(k&&nu(k.fallback.rp_id,Y.passkey.id),!ie.current)return;_(Y.passkey.id,!0)}}catch(k){ie.current&&L(Y,k,me)}finally{z.current=!1,ie.current&&(y(!1),A(null))}}},ae=()=>{const Y=I;M(null),Y&&Z(Y,!0)},X=()=>{M(null),t.current.onAccountMismatch()};if(n)return u.jsx(Qt,{tone:"neutral",children:Le.framed});if(a==="loading")return u.jsx(zb,{});if(a==="error")return u.jsxs(Qt,{tone:"neutral",role:"alert",children:[u.jsx("span",{children:Le.generic}),u.jsx(ou,{onClick:()=>void K(),children:Le.retry})]});if(a==="sessionRequired")return u.jsx(bi,{onSignIn:()=>t.current.onSessionRequired()});const m=re??e.recoveryUntil??null,ge=m?new Date(m).getTime():Number.NaN,de=m!==null&&(Number.isNaN(ge)||ge>Date.now()),ce=c||o.length>=Bb,Ne=o.length===0;return u.jsxs("div",{className:"flex flex-col gap-4",children:[Ne?u.jsx("p",{className:"text-sm text-grayWarm-600",children:Le.empty}):u.jsx("ul",{className:"flex flex-col divide-y divide-grayWarm-200 -my-3",children:o.map(Y=>u.jsx(Zb,{passkey:Y,disabled:f||de,onRemove:()=>A(Y)},Y.id))}),de&&u.jsx(Qt,{tone:"neutral",role:"status",children:Le.recoveryInProgress(m?Xb(m):void 0)}),u.jsx("div",{role:"status","aria-live":"polite",children:x&&u.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium text-grayWarm-700",children:[u.jsx(Qa,{size:20,className:"flex-shrink-0 text-success-600"}),Le.added]})}),s?ce&&u.jsx(Qt,{tone:"neutral",children:Le.limit}):u.jsx(Qt,{tone:"neutral",children:Le.unsupported}),C==="sessionRequired"?u.jsx(bi,{onSignIn:()=>t.current.onSessionRequired()}):C&&Db.has(C)?u.jsx(Qt,{tone:"neutral",role:"status",children:Le[C]}):C&&u.jsx(Qt,{tone:"warning",role:"alert",children:Le[C]}),s&&u.jsxs("div",{className:"flex flex-wrap gap-3",children:[u.jsx(mi,{label:Le.addPasskeyLabel,disabled:f||ce||de,onClick:()=>void Z({type:"add",securityKey:!1}),children:Le.addPasskey}),u.jsx(mi,{label:Le.addSecurityKeyLabel,disabled:f||ce||de,onClick:()=>void Z({type:"add",securityKey:!0}),children:Le.addSecurityKey})]}),Ne&&u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(za,{id:$,checked:B,onCheckedChange:Y=>{O(Y),Jl(!Y)}}),u.jsx("label",{htmlFor:$,className:"text-sm font-medium text-grayWarm-700",children:Le.suggestToggle})]}),R&&u.jsx(Yb,{title:au(R).title,busy:f,onCancel:()=>A(null),onConfirm:()=>void Z({type:"remove",passkey:R})}),u.jsx(ru,{isOpen:I!==null,action:(I==null?void 0:I.type)??"add",account:e.account,api:e.api,getCurrentUser:e.getCurrentUser,onConfirmed:ae,onCancel:()=>M(null),onMismatch:X})]})},Zb=({passkey:e,disabled:t,onRemove:n})=>{const{title:a,badge:r,meta:o,Icon:i}=au(e);return u.jsxs("li",{className:"flex items-center gap-3 py-3",children:[u.jsx("div",{className:"flex items-center justify-center flex-shrink-0 w-10 h-10 rounded-lg bg-grayWarm-100 text-grayWarm-700",children:u.jsx(i,{size:20})}),u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[u.jsx("span",{className:"text-base font-semibold text-grayWarm-950",children:a}),r&&u.jsx(La,{variant:r===Le.kind.synced?"info":"default",children:r})]}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:o})]}),u.jsx("button",{type:"button","aria-label":Le.removeLabel(a),disabled:t,onClick:n,className:"flex items-center justify-center flex-shrink-0 w-9 h-9 rounded-lg bg-grayWarm-100 text-grayWarm-600 transition-colors hover:bg-grayWarm-200 hover:text-grayWarm-800 disabled:opacity-60 disabled:cursor-not-allowed focus:outline-none focus-visible:ring-2 focus-visible:ring-grayWarm-950",children:u.jsx($a,{size:18})})]})},mi=({label:e,disabled:t,onClick:n,children:a})=>u.jsxs("button",{type:"button","aria-label":e,disabled:t,onClick:n,className:"inline-flex items-center gap-2 px-3.5 py-2.5 rounded-lg bg-grayWarm-100 text-sm font-semibold text-grayWarm-950 transition-colors hover:bg-grayWarm-200 disabled:bg-transparent disabled:text-grayWarm-400 disabled:cursor-not-allowed focus:outline-none focus-visible:ring-2 focus-visible:ring-grayWarm-950",children:[u.jsx(Fl,{size:20}),a]}),Qt=({tone:e,role:t,children:n})=>u.jsxs("div",{role:t,className:Me("flex items-start gap-3 rounded-xl border p-4 text-sm",e==="warning"?"border-warning-200 bg-warning-50 text-warning-700":"border-grayWarm-200 bg-grayWarm-50 text-grayWarm-700"),children:[u.jsx(En,{size:20,className:Me("flex-shrink-0",e==="warning"?"text-warning-700":"text-grayWarm-500")}),u.jsx("div",{className:"flex flex-1 flex-wrap items-center justify-between gap-3",children:n})]}),ou=({onClick:e,children:t})=>u.jsx("button",{type:"button",onClick:e,className:"px-3 py-2 rounded-lg bg-grayWarm-100 text-sm font-semibold text-grayWarm-950 transition-colors hover:bg-grayWarm-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-grayWarm-950",children:t}),bi=({onSignIn:e})=>u.jsxs(Qt,{tone:"neutral",children:[u.jsx("span",{children:Le.sessionRequired}),u.jsx(ou,{onClick:e,children:Le.signIn})]}),zb=()=>u.jsxs("div",{"aria-busy":"true",className:"flex flex-col gap-3",children:[u.jsx("span",{className:"sr-only",children:Le.loading}),[0,1].map(e=>u.jsxs("div",{"aria-hidden":"true",className:"flex items-center gap-3 py-1",children:[u.jsx("div",{className:"w-10 h-10 rounded-lg bg-grayWarm-100 motion-safe:animate-pulse"}),u.jsxs("div",{className:"flex-1 flex flex-col gap-2",children:[u.jsx("div",{className:"h-4 w-40 rounded bg-grayWarm-100 motion-safe:animate-pulse"}),u.jsx("div",{className:"h-3 w-56 rounded bg-grayWarm-100 motion-safe:animate-pulse"})]})]},e))]}),Yb=({title:e,busy:t,onCancel:n,onConfirm:a})=>{const r=Le.remove.title(e);return u.jsx(pn,{isOpen:!0,onClose:n,title:r,header:"none",maxWidthPx:400,children:u.jsxs("div",{className:"flex flex-col gap-5 text-left",children:[u.jsx("div",{className:"flex items-center justify-center w-12 h-12 rounded-full bg-error-100 text-error-600",children:u.jsx($a,{size:24})}),u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx("h2",{className:"text-lg font-semibold text-grayWarm-950",children:r}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:Le.remove.body})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsx(gn,{onClick:n,children:Le.remove.cancel}),u.jsx("button",{type:"button",disabled:t,"aria-busy":t||void 0,onClick:a,className:"w-full h-11 px-4 inline-flex items-center justify-center rounded-xl bg-error-600 text-white font-semibold shadow-sm transition-colors hover:bg-error-700 disabled:opacity-60 disabled:cursor-not-allowed focus:outline-none focus-visible:ring-2 focus-visible:ring-error-500 focus-visible:ring-offset-2",children:Le.remove.confirm})]})]})})},Jb={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 Ub(e,t){if(!e||!e.startsWith("+"))return!1;const n=e.slice(1);if(!/^\d+$/.test(n))return!1;if(t){const a=Jb[t.toLowerCase()];if(a){if(!n.startsWith(a.dialCode))return!1;const r=n.slice(a.dialCode.length);return a.lengths.includes(r.length)}}return n.length>=7&&n.length<=15}const $b=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),Qb=new RegExp("^[\\p{L} '-]{2,100}$","u");function Kb(e){return Qb.test(e)?{isValid:!0}:{isValid:!1,message:"must contain only letters, spaces, hyphens, and apostrophes (2-100 characters)"}}exports.AUTOFILL_REFRESH_MS=ql;exports.AlertCircleIcon=En;exports.AuthError=Rt;exports.Avatar=Ws;exports.AvatarFallback=Xs;exports.AvatarImage=Ls;exports.Badge=La;exports.Button=Si;exports.COUNTRY_OPTIONS=ya;exports.CURRENCY_OPTIONS=Dr;exports.Card=Ra;exports.CardContent=Ga;exports.CardDescription=ji;exports.CardFooter=Ti;exports.CardHeader=Na;exports.CardTitle=Pi;exports.CeremonyGate=ao;exports.CheckCircleIcon=Qa;exports.Checkbox=js;exports.Chip=ml;exports.CloudIcon=Om;exports.CurrencyModal=Ym;exports.DEFAULT_LOCALE=Dl;exports.DateDropdowns=va;exports.FaceIdIcon=jl;exports.FingerprintIcon=Tl;exports.IconButton=Ts;exports.Input=Vt;exports.KeyIcon=Ua;exports.LOCALE_OPTIONS=Vr;exports.LOCALE_STORAGE_KEY=_m;exports.LaptopIcon=Ml;exports.LocaleModal=Hm;exports.LogInIcon=Vl;exports.MailIcon=Br;exports.Modal=pn;exports.OTPModal=qm;exports.OtpCodeInput=Ka;exports.PROMPT_COOKIE=eo;exports.Pagination=pl;exports.PasscodeIcon=Fm;exports.PassengerForm=jm;exports.PassengerFormSkeleton=Mm;exports.PasskeyEnrollPrompt=Ia;exports.PasskeyList=Hb;exports.PhoneInput=$m;exports.PlusIcon=Fl;exports.ReauthDialog=ru;exports.SearchInput=gl;exports.SelectDropdown=Dn;exports.Separator=Gi;exports.ShieldTickIcon=Ol;exports.SignInFlow=jb;exports.SignInModal=Tb;exports.Textarea=fl;exports.Toggle=za;exports.ToggleGroup=cl;exports.ToggleGroupItem=dl;exports.TrashIcon=$a;exports.UsbKeyIcon=kl;exports.XCloseIcon=Bl;exports.classifyWebAuthnError=_r;exports.cookieDomain=Hl;exports.createMovmoAuthApi=ob;exports.createPasskey=Kl;exports.detectSupport=ro;exports.dismissPrompt=Yl;exports.findCurrencyOption=zm;exports.findLocaleOption=Wm;exports.getCurrencyDisplayText=_l;exports.getLanguageDisplayName=Lm;exports.getPasskey=xa;exports.incorrectCode=Xl;exports.neverAsk=Ul;exports.rateLimited=qa;exports.readPromptState=Yn;exports.recordCodeSignIn=zl;exports.registerPasskey=oo;exports.safeFocus=Et;exports.setNeverAsk=Jl;exports.shouldOfferPasskey=Zl;exports.signInCopy=tt;exports.signalPasskeyState=Aa;exports.signalRemovedPasskey=nu;exports.timeZone=Ll;exports.toAuthError=pt;exports.useMovmoSignIn=eu;exports.validateEmail=$b;exports.validateName=Kb;exports.validatePhoneNumber=Ub;
|
|
115
115
|
//# sourceMappingURL=index.cjs.map
|