@movmo_app/react-common 0.14.0 → 0.14.1
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 +16 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +787 -813
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var uu=Object.defineProperty;var cu=(e,t,r)=>t in e?uu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var
|
|
1
|
+
"use strict";var uu=Object.defineProperty;var cu=(e,t,r)=>t in e?uu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var po=(e,t,r)=>cu(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("react"),du=require("react-dom");function fu(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const S=fu(E);var er=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Kr={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 go;function gu(){if(go)return Nn;go=1;var e=E,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,n=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={},v=null,x=null;c!==void 0&&(v=""+c),l.key!==void 0&&(v=""+l.key),l.ref!==void 0&&(x=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:v,ref:x,props:f,_owner:n.current}}return Nn.Fragment=r,Nn.jsx=i,Nn.jsxs=i,Nn}var Gn={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
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
|
|
17
|
+
*/var mo;function mu(){return mo||(mo=1,process.env.NODE_ENV!=="production"&&function(){var e=E,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),n=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"),v=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),b=Symbol.iterator,h="@@iterator";function p(y){if(y===null||typeof y!="object")return null;var X=b&&y[b]||y[h];return typeof X=="function"?X:null}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(y){{for(var X=arguments.length,Q=new Array(X>1?X-1:0),be=1;be<X;be++)Q[be-1]=arguments[be];R("error",y,Q)}}function R(y,X,Q){{var be=C.ReactDebugCurrentFrame,je=be.getStackAddendum();je!==""&&(X+="%s",Q=Q.concat([je]));var Fe=Q.map(function(Pe){return String(Pe)});Fe.unshift("Warning: "+X),Function.prototype.apply.call(console[y],console,Fe)}}var A=!1,I=!1,M=!1,B=!1,V=!1,q;q=Symbol.for("react.module.reference");function J(y){return!!(typeof y=="string"||typeof y=="function"||y===a||y===o||V||y===n||y===c||y===d||B||y===x||A||I||M||typeof y=="object"&&y!==null&&(y.$$typeof===v||y.$$typeof===f||y.$$typeof===i||y.$$typeof===s||y.$$typeof===l||y.$$typeof===q||y.getModuleId!==void 0))}function ae(y,X,Q){var be=y.displayName;if(be)return be;var je=X.displayName||X.name||"";return je!==""?Q+"("+je+")":Q}function H(y){return y.displayName||"Context"}function pe(y){if(y==null)return null;if(typeof y.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case a:return"Fragment";case r:return"Portal";case o:return"Profiler";case n:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case s:var X=y;return H(X)+".Consumer";case i:var Q=y;return H(Q._context)+".Provider";case l:return ae(y,y.render,"ForwardRef");case f:var be=y.displayName||null;return be!==null?be:pe(y.type)||"Memo";case v:{var je=y,Fe=je._payload,Pe=je._init;try{return pe(Pe(Fe))}catch{return null}}}return null}var P=Object.assign,O=0,T,Y,ge,Ne,_,L,W;function U(){}U.__reactDisabledLog=!0;function F(){{if(O===0){T=console.log,Y=console.info,ge=console.warn,Ne=console.error,_=console.group,L=console.groupCollapsed,W=console.groupEnd;var y={configurable:!0,enumerable:!0,value:U,writable:!0};Object.defineProperties(console,{info:y,log:y,warn:y,error:y,group:y,groupCollapsed:y,groupEnd:y})}O++}}function m(){{if(O--,O===0){var y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:P({},y,{value:T}),info:P({},y,{value:Y}),warn:P({},y,{value:ge}),error:P({},y,{value:Ne}),group:P({},y,{value:_}),groupCollapsed:P({},y,{value:L}),groupEnd:P({},y,{value:W})})}O<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ce=C.ReactCurrentDispatcher,de;function oe(y,X,Q){{if(de===void 0)try{throw Error()}catch(je){var be=je.stack.trim().match(/\n( *(at )?)/);de=be&&be[1]||""}return`
|
|
18
18
|
`+de+y}}var we=!1,Ce;{var Ee=typeof WeakMap=="function"?WeakMap:Map;Ce=new Ee}function z(y,X){if(!y||we)return"";{var Q=Ce.get(y);if(Q!==void 0)return Q}var be;we=!0;var je=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Fe;Fe=ce.current,ce.current=null,F();try{if(X){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){be=te}Reflect.construct(y,[],Pe)}else{try{Pe.call()}catch(te){be=te}y.call(Pe.prototype)}}else{try{throw Error()}catch(te){be=te}y()}}catch(te){if(te&&be&&typeof te.stack=="string"){for(var Oe=te.stack.split(`
|
|
19
19
|
`),nt=be.stack.split(`
|
|
20
20
|
`),Qe=Oe.length-1,g=nt.length-1;Qe>=1&&g>=0&&Oe[Qe]!==nt[g];)g--;for(;Qe>=1&&g>=0;Qe--,g--)if(Oe[Qe]!==nt[g]){if(Qe!==1||g!==1)do if(Qe--,g--,g<0||Oe[Qe]!==nt[g]){var N=`
|
|
@@ -27,31 +27,31 @@ Check the top-level render call using <`+Q+">.")}return X}}function se(y,X){{if(
|
|
|
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} />`,ue,Z,Se,Z),ct[Z+ue]=!0}}return y===a?pt(g):tt(g),g}}function ht(y,X,Q){return it(y,X,Q,!0)}function Jt(y,X,Q){return it(y,X,Q,!1)}var ln=Jt,un=ht;Gn.Fragment=a,Gn.jsx=ln,Gn.jsxs=un}()),Gn}process.env.NODE_ENV==="production"?qr.exports=gu():qr.exports=mu();var u=qr.exports;function Ci(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=Ci(e[t]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function bu(){for(var e,t,r=0,a="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=Ci(e))&&(a&&(a+=" "),a+=t);return a}const xa="-",hu=e=>{const t=yu(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:i=>{const s=i.split(xa);return s[0]===""&&s.length!==1&&s.shift(),xi(s,t)||vu(i)},getConflictingClassGroupIds:(i,s)=>{const l=r[i]||[];return s&&a[i]?[...l,...a[i]]:l}}},xi=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],a=t.nextPart.get(r),n=a?xi(e.slice(1),a):void 0;if(n)return n;if(t.validators.length===0)return;const o=e.join(xa);return(i=t.validators.find(({validator:s})=>s(o)))==null?void 0:i.classGroupId},ho=/^\[(.+)\]$/,vu=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}},yu=e=>{const{theme:t,prefix:r}=e,a={nextPart:new Map,validators:[]};return xu(Object.entries(e.classGroups),r).forEach(([o,i])=>{ea(i,a,o,t)}),a},ea=(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(Cu(n)){ea(n(a),t,r,a);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([o,i])=>{ea(i,vo(t,o),r,a)})})},vo=(e,t)=>{let r=e;return t.split(xa).forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},Cu=e=>e.isThemeGetter,xu=(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,s])=>[t+i,s])):o);return[r,n]}):e,Iu=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)}}},Ii="!",Su=e=>{const{separator:t,experimentalParseClassName:r}=e,a=t.length===1,n=t[0],o=t.length,i=s=>{const l=[];let c=0,d=0,f;for(let p=0;p<s.length;p++){let C=s[p];if(c===0){if(C===n&&(a||s.slice(p,p+o)===t)){l.push(s.slice(d,p)),d=p+o;continue}if(C==="/"){f=p;continue}}C==="["?c++:C==="]"&&c--}const v=l.length===0?s:s.substring(d),x=v.startsWith(Ii),b=x?v.substring(1):v,h=f&&f>d?f-d:void 0;return{modifiers:l,hasImportantModifier:x,baseClassName:b,maybePostfixModifierPosition:h}};return r?s=>r({className:s,parseClassName:i}):i},Au=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},wu=e=>({cache:Iu(e.cacheSize),parseClassName:Su(e),...hu(e)}),Eu=/\s+/,Ru=(e,t)=>{const{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:n}=t,o=[],i=e.trim().split(Eu);let s="";for(let l=i.length-1;l>=0;l-=1){const c=i[l],{modifiers:d,hasImportantModifier:f,baseClassName:v,maybePostfixModifierPosition:x}=r(c);let b=!!x,h=a(b?v.substring(0,x):v);if(!h){if(!b){s=c+(s.length>0?" "+s:s);continue}if(h=a(v),!h){s=c+(s.length>0?" "+s:s);continue}b=!1}const p=Au(d).join(":"),C=f?p+Ii:p,w=C+h;if(o.includes(w))continue;o.push(w);const R=n(h,b);for(let A=0;A<R.length;++A){const I=R[A];o.push(C+I)}s=c+(s.length>0?" "+s:s)}return s};function Nu(){let e=0,t,r,a="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Si(t))&&(a&&(a+=" "),a+=r);return a}const Si=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=Si(e[a]))&&(r&&(r+=" "),r+=t);return r};function Gu(e,...t){let r,a,n,o=i;function i(l){const c=t.reduce((d,f)=>f(d),e());return r=wu(c),a=r.cache.get,n=r.cache.set,o=s,s(l)}function s(l){const c=a(l);if(c)return c;const d=Ru(l,r);return n(l,d),d}return function(){return o(Nu.apply(null,arguments))}}const Ue=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Ai=/^\[(?:([a-z-]+):)?(.+)\]$/i,Pu=/^\d+\/\d+$/,Ou=new Set(["px","full","screen"]),Tu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ju=/\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$/,Mu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Fu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ku=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_t=e=>Cn(e)||Ou.has(e)||Pu.test(e),Kt=e=>An(e,"length",Hu),Cn=e=>!!e&&!Number.isNaN(Number(e)),Dr=e=>An(e,"number",Cn),Pn=e=>!!e&&Number.isInteger(Number(e)),Bu=e=>e.endsWith("%")&&Cn(e.slice(0,-1)),Ae=e=>Ai.test(e),qt=e=>Tu.test(e),Vu=new Set(["length","size","percentage"]),_u=e=>An(e,Vu,wi),Du=e=>An(e,"position",wi),Wu=new Set(["image","url"]),Lu=e=>An(e,Wu,zu),Xu=e=>An(e,"",Zu),On=()=>!0,An=(e,t,r)=>{const a=Ai.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):r(a[2]):!1},Hu=e=>ju.test(e)&&!Mu.test(e),wi=()=>!1,Zu=e=>Fu.test(e),zu=e=>ku.test(e),Yu=()=>{const e=Ue("colors"),t=Ue("spacing"),r=Ue("blur"),a=Ue("brightness"),n=Ue("borderColor"),o=Ue("borderRadius"),i=Ue("borderSpacing"),s=Ue("borderWidth"),l=Ue("contrast"),c=Ue("grayscale"),d=Ue("hueRotate"),f=Ue("invert"),v=Ue("gap"),x=Ue("gradientColorStops"),b=Ue("gradientColorStopPositions"),h=Ue("inset"),p=Ue("margin"),C=Ue("opacity"),w=Ue("padding"),R=Ue("saturate"),A=Ue("scale"),I=Ue("sepia"),M=Ue("skew"),B=Ue("space"),V=Ue("translate"),q=()=>["auto","contain","none"],J=()=>["auto","hidden","clip","visible","scroll"],ae=()=>["auto",Ae,t],H=()=>[Ae,t],pe=()=>["",_t,Kt],P=()=>["auto",Cn,Ae],O=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],T=()=>["solid","dashed","dotted","double","none"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ge=()=>["start","end","center","between","around","evenly","stretch"],Ne=()=>["","0",Ae],_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>[Cn,Ae];return{cacheSize:500,separator:":",theme:{colors:[On],spacing:[_t,Kt],blur:["none","",qt,Ae],brightness:L(),borderColor:[e],borderRadius:["none","","full",qt,Ae],borderSpacing:H(),borderWidth:pe(),contrast:L(),grayscale:Ne(),hueRotate:L(),invert:Ne(),gap:H(),gradientColorStops:[e],gradientColorStopPositions:[Bu,Kt],inset:ae(),margin:ae(),opacity:L(),padding:H(),saturate:L(),scale:L(),sepia:Ne(),skew:L(),space:H(),translate:H()},classGroups:{aspect:[{aspect:["auto","square","video",Ae]}],container:["container"],columns:[{columns:[qt]}],"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(),Ae]}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],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,Ae]}],basis:[{basis:ae()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ae]}],grow:[{grow:Ne()}],shrink:[{shrink:Ne()}],order:[{order:["first","last","none",Pn,Ae]}],"grid-cols":[{"grid-cols":[On]}],"col-start-end":[{col:["auto",{span:["full",Pn,Ae]},Ae]}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":[On]}],"row-start-end":[{row:["auto",{span:[Pn,Ae]},Ae]}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ae]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ae]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal",...ge()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ge(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ge(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],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",Ae,t]}],"min-w":[{"min-w":[Ae,t,"min","max","fit"]}],"max-w":[{"max-w":[Ae,t,"none","full","min","max","fit","prose",{screen:[qt]},qt]}],h:[{h:[Ae,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ae,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ae,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ae,t,"auto","min","max","fit"]}],"font-size":[{text:["base",qt,Kt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Dr]}],"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",Ae]}],"line-clamp":[{"line-clamp":["none",Cn,Dr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",_t,Ae]}],"list-image":[{"list-image":["none",Ae]}],"list-style-type":[{list:["none","disc","decimal",Ae]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[C]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...T(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",_t,Kt]}],"underline-offset":[{"underline-offset":["auto",_t,Ae]}],"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:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ae]}],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",Ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[C]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...O(),Du]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",_u]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Lu]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],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":[C]}],"border-style":[{border:[...T(),"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":[C]}],"divide-style":[{divide:T()}],"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:["",...T()]}],"outline-offset":[{"outline-offset":[_t,Ae]}],"outline-w":[{outline:[_t,Kt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[C]}],"ring-offset-w":[{"ring-offset":[_t,Kt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",qt,Xu]}],"shadow-color":[{shadow:[On]}],opacity:[{opacity:[C]}],"mix-blend":[{"mix-blend":[...Y(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Y()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",qt,Ae]}],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":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[C]}],"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",Ae]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",Ae]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ae]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[Pn,Ae]}],"translate-x":[{"translate-x":[V]}],"translate-y":[{"translate-y":[V]}],"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",Ae]}],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",Ae]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"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",Ae]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[_t,Kt,Dr]}],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"]}}},Ju=Gu(Yu);function Te(...e){return Ju(bu(e))}const Ei=S.forwardRef(({variant:e="primary",size:t="md",isLoading:r=!1,fullWidth:a=!1,className:n,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=r?"opacity-70 cursor-not-allowed":"",v=a?"w-full":"";return u.jsx("button",{ref:s,className:Te(l,c[e],d[t],f,v,n),disabled:r||i.disabled,...i,children:o})});Ei.displayName="Button";function Uu(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ri(...e){return t=>e.forEach(r=>Uu(r,t))}function Ni(...e){return S.useCallback(Ri(...e),e)}var Gi=S.forwardRef((e,t)=>{const{children:r,...a}=e,n=S.Children.toArray(r),o=n.find(Qu);if(o){const i=o.props.children,s=n.map(l=>l===o?S.Children.count(i)>1?S.Children.only(null):S.isValidElement(i)?i.props.children:null:l);return u.jsx(ta,{...a,ref:t,children:S.isValidElement(i)?S.cloneElement(i,void 0,s):null})}return u.jsx(ta,{...a,ref:t,children:r})});Gi.displayName="Slot";var ta=S.forwardRef((e,t)=>{const{children:r,...a}=e;if(S.isValidElement(r)){const n=qu(r);return S.cloneElement(r,{...Ku(a,r.props),ref:t?Ri(t,n):n})}return S.Children.count(r)>1?S.Children.only(null):null});ta.displayName="SlotClone";var $u=({children:e})=>u.jsx(u.Fragment,{children:e});function Qu(e){return S.isValidElement(e)&&e.type===$u}function Ku(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]=(...s)=>{o(...s),n(...s)}:n&&(r[a]=n):a==="style"?r[a]={...n,...o}:a==="className"&&(r[a]=[n,o].filter(Boolean).join(" "))}return{...e,...r}}function qu(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 ec=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ia=ec.reduce((e,t)=>{const r=S.forwardRef((a,n)=>{const{asChild:o,...i}=a,s=o?Gi:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(s,{...i,ref:n})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),tc="Separator",yo="horizontal",nc=["horizontal","vertical"],Pi=S.forwardRef((e,t)=>{const{decorative:r,orientation:a=yo,...n}=e,o=rc(a)?a:yo,s=r?{role:"none"}:{"aria-orientation":o==="vertical"?o:void 0,role:"separator"};return u.jsx(Ia.div,{"data-orientation":o,...s,...n,ref:t})});Pi.displayName=tc;function rc(e){return nc.includes(e)}var Oi=Pi;const Ti=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:Te("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(Oi,{ref:o,decorative:r,orientation:t,className:Te("shrink-0 bg-border bg-grayWarm-200",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));Ti.displayName=Oi.displayName;const Sa=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Te("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Sa.displayName="Card";const Aa=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Te("flex flex-col space-y-1.5 p-6",e),...t}));Aa.displayName="CardHeader";const ji=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Te("font-semibold leading-none tracking-tight",e),...t}));ji.displayName="CardTitle";const Mi=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Te("text-sm text-muted-foreground",e),...t}));Mi.displayName="CardDescription";const wa=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Te("p-6 pt-0",e),...t}));wa.displayName="CardContent";const Fi=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Te("flex items-center p-6 pt-0",e),...t}));Fi.displayName="CardFooter";function pn(e){"@babel/helpers - typeof";return pn=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},pn(e)}function ac(e,t){if(pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(pn(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ki(e){var t=ac(e,"string");return pn(t)=="symbol"?t:t+""}function Fn(e,t,r){return(t=ki(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 me(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 oc(e){if(Array.isArray(e))return e}function ic(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,n,o,i,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(a=o.call(r)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(d){c=!0,n=d}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw n}}return s}}function na(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 Bi(e,t){if(e){if(typeof e=="string")return na(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)?na(e,t):void 0}}function sc(){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 Wt(e,t){return oc(e)||ic(e,t)||
|
|
32
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ea(e){return hc(e)||vc(e)||Bi(e)||yc()}function Cc(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 xc(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 Ic=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(xc(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Cc(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}(),gt="-ms-",gr="-moz-",Be="-webkit-",_i="comm",Ra="rule",Na="decl",Sc="@import",Di="@keyframes",Ac="@layer",wc=Math.abs,Ar=String.fromCharCode,Ec=Object.assign;function Rc(e,t){return ft(e,0)^45?(((t<<2^ft(e,0))<<2^ft(e,1))<<2^ft(e,2))<<2^ft(e,3):0}function Wi(e){return e.trim()}function Nc(e,t){return(e=t.exec(e))?e[0]:e}function Ve(e,t,r){return e.replace(t,r)}function aa(e,t){return e.indexOf(t)}function ft(e,t){return e.charCodeAt(t)|0}function kn(e,t,r){return e.slice(t,r)}function Ot(e){return e.length}function Ga(e){return e.length}function tr(e,t){return t.push(e),e}function Gc(e,t){return e.map(t).join("")}var wr=1,In=1,Li=0,yt=0,at=0,wn="";function Er(e,t,r,a,n,o,i){return{value:e,root:t,parent:r,type:a,props:n,children:o,line:wr,column:In,length:i,return:""}}function Tn(e,t){return Ec(Er("",null,null,"",null,null,0),e,{length:-e.length},t)}function Pc(){return at}function Oc(){return at=yt>0?ft(wn,--yt):0,In--,at===10&&(In=1,wr--),at}function xt(){return at=yt<Li?ft(wn,yt++):0,In++,at===10&&(In=1,wr++),at}function Ft(){return ft(wn,yt)}function lr(){return yt}function Wn(e,t){return kn(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 Xi(e){return wr=In=1,Li=Ot(wn=e),yt=0,[]}function Hi(e){return wn="",e}function ur(e){return Wi(Wn(yt-1,oa(e===91?e+2:e===40?e+1:e)))}function Tc(e){for(;(at=Ft())&&at<33;)xt();return Bn(e)>2||Bn(at)>3?"":" "}function jc(e,t){for(;--t&&xt()&&!(at<48||at>102||at>57&&at<65||at>70&&at<97););return Wn(e,lr()+(t<6&&Ft()==32&&xt()==32))}function oa(e){for(;xt();)switch(at){case e:return yt;case 34:case 39:e!==34&&e!==39&&oa(at);break;case 40:e===41&&oa(e);break;case 92:xt();break}return yt}function Mc(e,t){for(;xt()&&e+at!==57;)if(e+at===84&&Ft()===47)break;return"/*"+Wn(t,yt-1)+"*"+Ar(e===47?e:xt())}function Fc(e){for(;!Bn(Ft());)xt();return Wn(e,yt)}function kc(e){return Hi(cr("",null,null,null,[""],e=Xi(e),0,[0],e))}function cr(e,t,r,a,n,o,i,s,l){for(var c=0,d=0,f=i,v=0,x=0,b=0,h=1,p=1,C=1,w=0,R="",A=n,I=o,M=a,B=R;p;)switch(b=w,w=xt()){case 40:if(b!=108&&ft(B,f-1)==58){aa(B+=Ve(ur(w),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:B+=ur(w);break;case 9:case 10:case 13:case 32:B+=Tc(b);break;case 92:B+=jc(lr()-1,7);continue;case 47:switch(Ft()){case 42:case 47:tr(Bc(Mc(xt(),lr()),t,r),l);break;default:B+="/"}break;case 123*h:s[c++]=Ot(B)*C;case 125*h:case 59:case 0:switch(w){case 0:case 125:p=0;case 59+d:C==-1&&(B=Ve(B,/\f/g,"")),x>0&&Ot(B)-f&&tr(x>32?So(B+";",a,r,f-1):So(Ve(B," ","")+";",a,r,f-2),l);break;case 59:B+=";";default:if(tr(M=Io(B,t,r,c,d,n,s,R,A=[],I=[],f),o),w===123)if(d===0)cr(B,t,M,M,A,o,f,s,I);else switch(v===99&&ft(B,3)===110?100:v){case 100:case 108:case 109:case 115:cr(e,M,M,a&&tr(Io(e,M,M,0,0,n,s,R,n,A=[],f),I),n,I,f,s,a?A:I);break;default:cr(B,M,M,M,[""],I,0,s,I)}}c=d=x=0,h=C=1,R=B="",f=i;break;case 58:f=1+Ot(B),x=b;default:if(h<1){if(w==123)--h;else if(w==125&&h++==0&&Oc()==125)continue}switch(B+=Ar(w),w*h){case 38:C=d>0?1:(B+="\f",-1);break;case 44:s[c++]=(Ot(B)-1)*C,C=1;break;case 64:Ft()===45&&(B+=ur(xt())),v=Ft(),d=f=Ot(R=B+=Fc(lr())),w++;break;case 45:b===45&&Ot(B)==2&&(h=0)}}return o}function Io(e,t,r,a,n,o,i,s,l,c,d){for(var f=n-1,v=n===0?o:[""],x=Ga(v),b=0,h=0,p=0;b<a;++b)for(var C=0,w=kn(e,f+1,f=wc(h=i[b])),R=e;C<x;++C)(R=Wi(h>0?v[C]+" "+w:Ve(w,/&\f/g,v[C])))&&(l[p++]=R);return Er(e,t,r,n===0?Ra:s,l,c,d)}function Bc(e,t,r){return Er(e,t,r,_i,Ar(Pc()),kn(e,2,-2),0)}function So(e,t,r,a){return Er(e,t,r,Na,kn(e,0,a),kn(e,a+1,-1),a)}function xn(e,t){for(var r="",a=Ga(e),n=0;n<a;n++)r+=t(e[n],n,e,t)||"";return r}function Vc(e,t,r,a){switch(e.type){case Ac:if(e.children.length)break;case Sc:case Na:return e.return=e.return||e.value;case _i:return"";case Di:return e.return=e.value+"{"+xn(e.children,a)+"}";case Ra:e.value=e.props.join(",")}return Ot(r=xn(e.children,a))?e.return=e.value+"{"+r+"}":""}function _c(e){var t=Ga(e);return function(r,a,n,o){for(var i="",s=0;s<t;s++)i+=e[s](r,a,n,o)||"";return i}}function Dc(e){return function(t){t.root||(t=t.return)&&e(t)}}function Wc(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Lc=function(t,r,a){for(var n=0,o=0;n=o,o=Ft(),n===38&&o===12&&(r[a]=1),!Bn(o);)xt();return Wn(t,yt)},Xc=function(t,r){var a=-1,n=44;do switch(Bn(n)){case 0:n===38&&Ft()===12&&(r[a]=1),t[a]+=Lc(yt-1,r,a);break;case 2:t[a]+=ur(n);break;case 4:if(n===44){t[++a]=Ft()===58?"&\f":"",r[a]=t[a].length;break}default:t[a]+=Ar(n)}while(n=xt());return t},Hc=function(t,r){return Hi(Xc(Xi(t),r))},Ao=new WeakMap,Zc=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=Hc(r,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 r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Zi(e,t){switch(Rc(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+gr+e+gt+e+e;case 6828:case 4268:return Be+e+gt+e+e;case 6165:return Be+e+gt+"flex-"+e+e;case 5187:return Be+e+Ve(e,/(\w+).+(:[^]+)/,Be+"box-$1$2"+gt+"flex-$1$2")+e;case 5443:return Be+e+gt+"flex-item-"+Ve(e,/flex-|-self/,"")+e;case 4675:return Be+e+gt+"flex-line-pack"+Ve(e,/align-content|flex-|-self/,"")+e;case 5548:return Be+e+gt+Ve(e,"shrink","negative")+e;case 5292:return Be+e+gt+Ve(e,"basis","preferred-size")+e;case 6060:return Be+"box-"+Ve(e,"-grow","")+Be+e+gt+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"+gt+"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(Ot(e)-1-t>6)switch(ft(e,t+1)){case 109:if(ft(e,t+4)!==45)break;case 102:return Ve(e,/(.+:)(.+)-([^]+)/,"$1"+Be+"$2-$3$1"+gr+(ft(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~aa(e,"stretch")?Zi(Ve(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ft(e,t+1)!==115)break;case 6444:switch(ft(e,Ot(e)-3-(~aa(e,"!important")&&10))){case 107:return Ve(e,":",":"+Be)+e;case 101:return Ve(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Be+(ft(e,14)===45?"inline-":"")+"box$3$1"+Be+"$2$3$1"+gt+"$2box$3")+e}break;case 5936:switch(ft(e,t+11)){case 114:return Be+e+gt+Ve(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Be+e+gt+Ve(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Be+e+gt+Ve(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Be+e+gt+e+e}return e}var Yc=function(t,r,a,n){if(t.length>-1&&!t.return)switch(t.type){case Na:t.return=Zi(t.value,t.length);break;case Di:return xn([Tn(t,{value:Ve(t.value,"@","@"+Be)})],n);case Ra:if(t.length)return Gc(t.props,function(o){switch(Nc(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xn([Tn(t,{props:[Ve(o,/:(read-\w+)/,":"+gr+"$1")]})],n);case"::placeholder":return xn([Tn(t,{props:[Ve(o,/:(plac\w+)/,":"+Be+"input-$1")]}),Tn(t,{props:[Ve(o,/:(plac\w+)/,":"+gr+"$1")]}),Tn(t,{props:[Ve(o,/:(plac\w+)/,gt+"input-$1")]})],n)}return""})}},Jc=[Yc],Uc=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||Jc,o={},i,s=[];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(" "),C=1;C<p.length;C++)o[p[C]]=!0;s.push(h)});var l,c=[Zc,zc];{var d,f=[Vc,Dc(function(h){d.insert(h)})],v=_c(c.concat(n,f)),x=function(p){return xn(kc(p),v)};l=function(p,C,w,R){d=w,x(p?p+"{"+C.styles+"}":C.styles),R&&(b.inserted[C.name]=!0)}}var b={key:r,sheet:new Ic({key:r,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},ia={exports:{}},De={};/** @license React v16.13.1
|
|
30
|
+
<%s key={someKey} {...props} />`,ue,Z,Se,Z),ct[Z+ue]=!0}}return y===a?pt(g):tt(g),g}}function ht(y,X,Q){return it(y,X,Q,!0)}function Jt(y,X,Q){return it(y,X,Q,!1)}var ln=Jt,un=ht;Gn.Fragment=a,Gn.jsx=ln,Gn.jsxs=un}()),Gn}process.env.NODE_ENV==="production"?Kr.exports=gu():Kr.exports=mu();var u=Kr.exports;function yi(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=yi(e[t]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function bu(){for(var e,t,r=0,a="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=yi(e))&&(a&&(a+=" "),a+=t);return a}const Ca="-",hu=e=>{const t=yu(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:i=>{const s=i.split(Ca);return s[0]===""&&s.length!==1&&s.shift(),Ci(s,t)||vu(i)},getConflictingClassGroupIds:(i,s)=>{const l=r[i]||[];return s&&a[i]?[...l,...a[i]]:l}}},Ci=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],a=t.nextPart.get(r),n=a?Ci(e.slice(1),a):void 0;if(n)return n;if(t.validators.length===0)return;const o=e.join(Ca);return(i=t.validators.find(({validator:s})=>s(o)))==null?void 0:i.classGroupId},bo=/^\[(.+)\]$/,vu=e=>{if(bo.test(e)){const t=bo.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},yu=e=>{const{theme:t,prefix:r}=e,a={nextPart:new Map,validators:[]};return xu(Object.entries(e.classGroups),r).forEach(([o,i])=>{qr(i,a,o,t)}),a},qr=(e,t,r,a)=>{e.forEach(n=>{if(typeof n=="string"){const o=n===""?t:ho(t,n);o.classGroupId=r;return}if(typeof n=="function"){if(Cu(n)){qr(n(a),t,r,a);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([o,i])=>{qr(i,ho(t,o),r,a)})})},ho=(e,t)=>{let r=e;return t.split(Ca).forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},Cu=e=>e.isThemeGetter,xu=(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,s])=>[t+i,s])):o);return[r,n]}):e,Iu=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)}}},xi="!",Su=e=>{const{separator:t,experimentalParseClassName:r}=e,a=t.length===1,n=t[0],o=t.length,i=s=>{const l=[];let c=0,d=0,f;for(let p=0;p<s.length;p++){let C=s[p];if(c===0){if(C===n&&(a||s.slice(p,p+o)===t)){l.push(s.slice(d,p)),d=p+o;continue}if(C==="/"){f=p;continue}}C==="["?c++:C==="]"&&c--}const v=l.length===0?s:s.substring(d),x=v.startsWith(xi),b=x?v.substring(1):v,h=f&&f>d?f-d:void 0;return{modifiers:l,hasImportantModifier:x,baseClassName:b,maybePostfixModifierPosition:h}};return r?s=>r({className:s,parseClassName:i}):i},Au=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},wu=e=>({cache:Iu(e.cacheSize),parseClassName:Su(e),...hu(e)}),Eu=/\s+/,Ru=(e,t)=>{const{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:n}=t,o=[],i=e.trim().split(Eu);let s="";for(let l=i.length-1;l>=0;l-=1){const c=i[l],{modifiers:d,hasImportantModifier:f,baseClassName:v,maybePostfixModifierPosition:x}=r(c);let b=!!x,h=a(b?v.substring(0,x):v);if(!h){if(!b){s=c+(s.length>0?" "+s:s);continue}if(h=a(v),!h){s=c+(s.length>0?" "+s:s);continue}b=!1}const p=Au(d).join(":"),C=f?p+xi:p,w=C+h;if(o.includes(w))continue;o.push(w);const R=n(h,b);for(let A=0;A<R.length;++A){const I=R[A];o.push(C+I)}s=c+(s.length>0?" "+s:s)}return s};function Nu(){let e=0,t,r,a="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Ii(t))&&(a&&(a+=" "),a+=r);return a}const Ii=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=Ii(e[a]))&&(r&&(r+=" "),r+=t);return r};function Gu(e,...t){let r,a,n,o=i;function i(l){const c=t.reduce((d,f)=>f(d),e());return r=wu(c),a=r.cache.get,n=r.cache.set,o=s,s(l)}function s(l){const c=a(l);if(c)return c;const d=Ru(l,r);return n(l,d),d}return function(){return o(Nu.apply(null,arguments))}}const Ue=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Si=/^\[(?:([a-z-]+):)?(.+)\]$/i,Pu=/^\d+\/\d+$/,Ou=new Set(["px","full","screen"]),Tu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ju=/\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$/,Mu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Fu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ku=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_t=e=>xn(e)||Ou.has(e)||Pu.test(e),Kt=e=>wn(e,"length",Hu),xn=e=>!!e&&!Number.isNaN(Number(e)),_r=e=>wn(e,"number",xn),Pn=e=>!!e&&Number.isInteger(Number(e)),Bu=e=>e.endsWith("%")&&xn(e.slice(0,-1)),Ae=e=>Si.test(e),qt=e=>Tu.test(e),Vu=new Set(["length","size","percentage"]),_u=e=>wn(e,Vu,Ai),Du=e=>wn(e,"position",Ai),Wu=new Set(["image","url"]),Lu=e=>wn(e,Wu,zu),Xu=e=>wn(e,"",Zu),On=()=>!0,wn=(e,t,r)=>{const a=Si.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):r(a[2]):!1},Hu=e=>ju.test(e)&&!Mu.test(e),Ai=()=>!1,Zu=e=>Fu.test(e),zu=e=>ku.test(e),Yu=()=>{const e=Ue("colors"),t=Ue("spacing"),r=Ue("blur"),a=Ue("brightness"),n=Ue("borderColor"),o=Ue("borderRadius"),i=Ue("borderSpacing"),s=Ue("borderWidth"),l=Ue("contrast"),c=Ue("grayscale"),d=Ue("hueRotate"),f=Ue("invert"),v=Ue("gap"),x=Ue("gradientColorStops"),b=Ue("gradientColorStopPositions"),h=Ue("inset"),p=Ue("margin"),C=Ue("opacity"),w=Ue("padding"),R=Ue("saturate"),A=Ue("scale"),I=Ue("sepia"),M=Ue("skew"),B=Ue("space"),V=Ue("translate"),q=()=>["auto","contain","none"],J=()=>["auto","hidden","clip","visible","scroll"],ae=()=>["auto",Ae,t],H=()=>[Ae,t],pe=()=>["",_t,Kt],P=()=>["auto",xn,Ae],O=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],T=()=>["solid","dashed","dotted","double","none"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ge=()=>["start","end","center","between","around","evenly","stretch"],Ne=()=>["","0",Ae],_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>[xn,Ae];return{cacheSize:500,separator:":",theme:{colors:[On],spacing:[_t,Kt],blur:["none","",qt,Ae],brightness:L(),borderColor:[e],borderRadius:["none","","full",qt,Ae],borderSpacing:H(),borderWidth:pe(),contrast:L(),grayscale:Ne(),hueRotate:L(),invert:Ne(),gap:H(),gradientColorStops:[e],gradientColorStopPositions:[Bu,Kt],inset:ae(),margin:ae(),opacity:L(),padding:H(),saturate:L(),scale:L(),sepia:Ne(),skew:L(),space:H(),translate:H()},classGroups:{aspect:[{aspect:["auto","square","video",Ae]}],container:["container"],columns:[{columns:[qt]}],"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(),Ae]}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],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,Ae]}],basis:[{basis:ae()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ae]}],grow:[{grow:Ne()}],shrink:[{shrink:Ne()}],order:[{order:["first","last","none",Pn,Ae]}],"grid-cols":[{"grid-cols":[On]}],"col-start-end":[{col:["auto",{span:["full",Pn,Ae]},Ae]}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":[On]}],"row-start-end":[{row:["auto",{span:[Pn,Ae]},Ae]}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ae]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ae]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal",...ge()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ge(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ge(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],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",Ae,t]}],"min-w":[{"min-w":[Ae,t,"min","max","fit"]}],"max-w":[{"max-w":[Ae,t,"none","full","min","max","fit","prose",{screen:[qt]},qt]}],h:[{h:[Ae,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ae,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ae,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ae,t,"auto","min","max","fit"]}],"font-size":[{text:["base",qt,Kt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",_r]}],"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",Ae]}],"line-clamp":[{"line-clamp":["none",xn,_r]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",_t,Ae]}],"list-image":[{"list-image":["none",Ae]}],"list-style-type":[{list:["none","disc","decimal",Ae]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[C]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...T(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",_t,Kt]}],"underline-offset":[{"underline-offset":["auto",_t,Ae]}],"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:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ae]}],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",Ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[C]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...O(),Du]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",_u]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Lu]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],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":[C]}],"border-style":[{border:[...T(),"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":[C]}],"divide-style":[{divide:T()}],"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:["",...T()]}],"outline-offset":[{"outline-offset":[_t,Ae]}],"outline-w":[{outline:[_t,Kt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[C]}],"ring-offset-w":[{"ring-offset":[_t,Kt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",qt,Xu]}],"shadow-color":[{shadow:[On]}],opacity:[{opacity:[C]}],"mix-blend":[{"mix-blend":[...Y(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Y()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",qt,Ae]}],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":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[C]}],"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",Ae]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",Ae]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ae]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[Pn,Ae]}],"translate-x":[{"translate-x":[V]}],"translate-y":[{"translate-y":[V]}],"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",Ae]}],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",Ae]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"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",Ae]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[_t,Kt,_r]}],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"]}}},Ju=Gu(Yu);function Te(...e){return Ju(bu(e))}const wi=S.forwardRef(({variant:e="primary",size:t="md",isLoading:r=!1,fullWidth:a=!1,className:n,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=r?"opacity-70 cursor-not-allowed":"",v=a?"w-full":"";return u.jsx("button",{ref:s,className:Te(l,c[e],d[t],f,v,n),disabled:r||i.disabled,...i,children:o})});wi.displayName="Button";function Uu(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ei(...e){return t=>e.forEach(r=>Uu(r,t))}function Ri(...e){return S.useCallback(Ei(...e),e)}var Ni=S.forwardRef((e,t)=>{const{children:r,...a}=e,n=S.Children.toArray(r),o=n.find(Qu);if(o){const i=o.props.children,s=n.map(l=>l===o?S.Children.count(i)>1?S.Children.only(null):S.isValidElement(i)?i.props.children:null:l);return u.jsx(ea,{...a,ref:t,children:S.isValidElement(i)?S.cloneElement(i,void 0,s):null})}return u.jsx(ea,{...a,ref:t,children:r})});Ni.displayName="Slot";var ea=S.forwardRef((e,t)=>{const{children:r,...a}=e;if(S.isValidElement(r)){const n=qu(r);return S.cloneElement(r,{...Ku(a,r.props),ref:t?Ei(t,n):n})}return S.Children.count(r)>1?S.Children.only(null):null});ea.displayName="SlotClone";var $u=({children:e})=>u.jsx(u.Fragment,{children:e});function Qu(e){return S.isValidElement(e)&&e.type===$u}function Ku(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]=(...s)=>{o(...s),n(...s)}:n&&(r[a]=n):a==="style"?r[a]={...n,...o}:a==="className"&&(r[a]=[n,o].filter(Boolean).join(" "))}return{...e,...r}}function qu(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 ec=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],xa=ec.reduce((e,t)=>{const r=S.forwardRef((a,n)=>{const{asChild:o,...i}=a,s=o?Ni:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(s,{...i,ref:n})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),tc="Separator",vo="horizontal",nc=["horizontal","vertical"],Gi=S.forwardRef((e,t)=>{const{decorative:r,orientation:a=vo,...n}=e,o=rc(a)?a:vo,s=r?{role:"none"}:{"aria-orientation":o==="vertical"?o:void 0,role:"separator"};return u.jsx(xa.div,{"data-orientation":o,...s,...n,ref:t})});Gi.displayName=tc;function rc(e){return nc.includes(e)}var Pi=Gi;const Oi=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:Te("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(Pi,{ref:o,decorative:r,orientation:t,className:Te("shrink-0 bg-border bg-grayWarm-200",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));Oi.displayName=Pi.displayName;const Ia=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Te("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Ia.displayName="Card";const Sa=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Te("flex flex-col space-y-1.5 p-6",e),...t}));Sa.displayName="CardHeader";const Ti=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Te("font-semibold leading-none tracking-tight",e),...t}));Ti.displayName="CardTitle";const ji=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Te("text-sm text-muted-foreground",e),...t}));ji.displayName="CardDescription";const Aa=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Te("p-6 pt-0",e),...t}));Aa.displayName="CardContent";const Mi=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Te("flex items-center p-6 pt-0",e),...t}));Mi.displayName="CardFooter";function pn(e){"@babel/helpers - typeof";return pn=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},pn(e)}function ac(e,t){if(pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(pn(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fi(e){var t=ac(e,"string");return pn(t)=="symbol"?t:t+""}function Fn(e,t,r){return(t=Fi(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yo(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 me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yo(Object(r),!0).forEach(function(a){Fn(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yo(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function oc(e){if(Array.isArray(e))return e}function ic(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,n,o,i,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(a=o.call(r)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(d){c=!0,n=d}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw n}}return s}}function ta(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 ki(e,t){if(e){if(typeof e=="string")return ta(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)?ta(e,t):void 0}}function sc(){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 Wt(e,t){return oc(e)||ic(e,t)||ki(e,t)||sc()}function lc(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}function Ht(e,t){if(e==null)return{};var r,a,n=lc(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var uc=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function cc(e){var t=e.defaultInputValue,r=t===void 0?"":t,a=e.defaultMenuIsOpen,n=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,v=e.onMenuOpen,x=e.value,b=Ht(e,uc),h=E.useState(s!==void 0?s:r),p=Wt(h,2),C=p[0],w=p[1],R=E.useState(l!==void 0?l:n),A=Wt(R,2),I=A[0],M=A[1],B=E.useState(x!==void 0?x:i),V=Wt(B,2),q=V[0],J=V[1],ae=E.useCallback(function(ge,Ne){typeof c=="function"&&c(ge,Ne),J(ge)},[c]),H=E.useCallback(function(ge,Ne){var _;typeof d=="function"&&(_=d(ge,Ne)),w(_!==void 0?_:ge)},[d]),pe=E.useCallback(function(){typeof v=="function"&&v(),M(!0)},[v]),P=E.useCallback(function(){typeof f=="function"&&f(),M(!1)},[f]),O=s!==void 0?s:C,T=l!==void 0?l:I,Y=x!==void 0?x:q;return me(me({},b),{},{inputValue:O,menuIsOpen:T,onChange:ae,onInputChange:H,onMenuClose:P,onMenuOpen:pe,value:Y})}function he(){return he=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},he.apply(null,arguments)}function dc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Co(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,Fi(a.key),a)}}function fc(e,t,r){return t&&Co(e.prototype,t),r&&Co(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function na(e,t){return na=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},na(e,t)}function pc(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&&na(e,t)}function pr(e){return pr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},pr(e)}function Bi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bi=function(){return!!e})()}function gc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mc(e,t){if(t&&(pn(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gc(e)}function bc(e){var t=Bi();return function(){var r,a=pr(e);if(t){var n=pr(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return mc(this,r)}}function hc(e){if(Array.isArray(e))return ta(e)}function vc(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yc(){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 wa(e){return hc(e)||vc(e)||ki(e)||yc()}function Cc(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 xc(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 Ic=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(xc(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Cc(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}(),gt="-ms-",gr="-moz-",Be="-webkit-",Vi="comm",Ea="rule",Ra="decl",Sc="@import",_i="@keyframes",Ac="@layer",wc=Math.abs,Ar=String.fromCharCode,Ec=Object.assign;function Rc(e,t){return ft(e,0)^45?(((t<<2^ft(e,0))<<2^ft(e,1))<<2^ft(e,2))<<2^ft(e,3):0}function Di(e){return e.trim()}function Nc(e,t){return(e=t.exec(e))?e[0]:e}function Ve(e,t,r){return e.replace(t,r)}function ra(e,t){return e.indexOf(t)}function ft(e,t){return e.charCodeAt(t)|0}function kn(e,t,r){return e.slice(t,r)}function Ot(e){return e.length}function Na(e){return e.length}function tr(e,t){return t.push(e),e}function Gc(e,t){return e.map(t).join("")}var wr=1,Sn=1,Wi=0,yt=0,at=0,En="";function Er(e,t,r,a,n,o,i){return{value:e,root:t,parent:r,type:a,props:n,children:o,line:wr,column:Sn,length:i,return:""}}function Tn(e,t){return Ec(Er("",null,null,"",null,null,0),e,{length:-e.length},t)}function Pc(){return at}function Oc(){return at=yt>0?ft(En,--yt):0,Sn--,at===10&&(Sn=1,wr--),at}function xt(){return at=yt<Wi?ft(En,yt++):0,Sn++,at===10&&(Sn=1,wr++),at}function Ft(){return ft(En,yt)}function lr(){return yt}function Wn(e,t){return kn(En,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 Li(e){return wr=Sn=1,Wi=Ot(En=e),yt=0,[]}function Xi(e){return En="",e}function ur(e){return Di(Wn(yt-1,aa(e===91?e+2:e===40?e+1:e)))}function Tc(e){for(;(at=Ft())&&at<33;)xt();return Bn(e)>2||Bn(at)>3?"":" "}function jc(e,t){for(;--t&&xt()&&!(at<48||at>102||at>57&&at<65||at>70&&at<97););return Wn(e,lr()+(t<6&&Ft()==32&&xt()==32))}function aa(e){for(;xt();)switch(at){case e:return yt;case 34:case 39:e!==34&&e!==39&&aa(at);break;case 40:e===41&&aa(e);break;case 92:xt();break}return yt}function Mc(e,t){for(;xt()&&e+at!==57;)if(e+at===84&&Ft()===47)break;return"/*"+Wn(t,yt-1)+"*"+Ar(e===47?e:xt())}function Fc(e){for(;!Bn(Ft());)xt();return Wn(e,yt)}function kc(e){return Xi(cr("",null,null,null,[""],e=Li(e),0,[0],e))}function cr(e,t,r,a,n,o,i,s,l){for(var c=0,d=0,f=i,v=0,x=0,b=0,h=1,p=1,C=1,w=0,R="",A=n,I=o,M=a,B=R;p;)switch(b=w,w=xt()){case 40:if(b!=108&&ft(B,f-1)==58){ra(B+=Ve(ur(w),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:B+=ur(w);break;case 9:case 10:case 13:case 32:B+=Tc(b);break;case 92:B+=jc(lr()-1,7);continue;case 47:switch(Ft()){case 42:case 47:tr(Bc(Mc(xt(),lr()),t,r),l);break;default:B+="/"}break;case 123*h:s[c++]=Ot(B)*C;case 125*h:case 59:case 0:switch(w){case 0:case 125:p=0;case 59+d:C==-1&&(B=Ve(B,/\f/g,"")),x>0&&Ot(B)-f&&tr(x>32?Io(B+";",a,r,f-1):Io(Ve(B," ","")+";",a,r,f-2),l);break;case 59:B+=";";default:if(tr(M=xo(B,t,r,c,d,n,s,R,A=[],I=[],f),o),w===123)if(d===0)cr(B,t,M,M,A,o,f,s,I);else switch(v===99&&ft(B,3)===110?100:v){case 100:case 108:case 109:case 115:cr(e,M,M,a&&tr(xo(e,M,M,0,0,n,s,R,n,A=[],f),I),n,I,f,s,a?A:I);break;default:cr(B,M,M,M,[""],I,0,s,I)}}c=d=x=0,h=C=1,R=B="",f=i;break;case 58:f=1+Ot(B),x=b;default:if(h<1){if(w==123)--h;else if(w==125&&h++==0&&Oc()==125)continue}switch(B+=Ar(w),w*h){case 38:C=d>0?1:(B+="\f",-1);break;case 44:s[c++]=(Ot(B)-1)*C,C=1;break;case 64:Ft()===45&&(B+=ur(xt())),v=Ft(),d=f=Ot(R=B+=Fc(lr())),w++;break;case 45:b===45&&Ot(B)==2&&(h=0)}}return o}function xo(e,t,r,a,n,o,i,s,l,c,d){for(var f=n-1,v=n===0?o:[""],x=Na(v),b=0,h=0,p=0;b<a;++b)for(var C=0,w=kn(e,f+1,f=wc(h=i[b])),R=e;C<x;++C)(R=Di(h>0?v[C]+" "+w:Ve(w,/&\f/g,v[C])))&&(l[p++]=R);return Er(e,t,r,n===0?Ea:s,l,c,d)}function Bc(e,t,r){return Er(e,t,r,Vi,Ar(Pc()),kn(e,2,-2),0)}function Io(e,t,r,a){return Er(e,t,r,Ra,kn(e,0,a),kn(e,a+1,-1),a)}function In(e,t){for(var r="",a=Na(e),n=0;n<a;n++)r+=t(e[n],n,e,t)||"";return r}function Vc(e,t,r,a){switch(e.type){case Ac:if(e.children.length)break;case Sc:case Ra:return e.return=e.return||e.value;case Vi:return"";case _i:return e.return=e.value+"{"+In(e.children,a)+"}";case Ea:e.value=e.props.join(",")}return Ot(r=In(e.children,a))?e.return=e.value+"{"+r+"}":""}function _c(e){var t=Na(e);return function(r,a,n,o){for(var i="",s=0;s<t;s++)i+=e[s](r,a,n,o)||"";return i}}function Dc(e){return function(t){t.root||(t=t.return)&&e(t)}}function Wc(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Lc=function(t,r,a){for(var n=0,o=0;n=o,o=Ft(),n===38&&o===12&&(r[a]=1),!Bn(o);)xt();return Wn(t,yt)},Xc=function(t,r){var a=-1,n=44;do switch(Bn(n)){case 0:n===38&&Ft()===12&&(r[a]=1),t[a]+=Lc(yt-1,r,a);break;case 2:t[a]+=ur(n);break;case 4:if(n===44){t[++a]=Ft()===58?"&\f":"",r[a]=t[a].length;break}default:t[a]+=Ar(n)}while(n=xt());return t},Hc=function(t,r){return Xi(Xc(Li(t),r))},So=new WeakMap,Zc=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&&!So.get(a))&&!n){So.set(t,!0);for(var o=[],i=Hc(r,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 r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Hi(e,t){switch(Rc(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+gr+e+gt+e+e;case 6828:case 4268:return Be+e+gt+e+e;case 6165:return Be+e+gt+"flex-"+e+e;case 5187:return Be+e+Ve(e,/(\w+).+(:[^]+)/,Be+"box-$1$2"+gt+"flex-$1$2")+e;case 5443:return Be+e+gt+"flex-item-"+Ve(e,/flex-|-self/,"")+e;case 4675:return Be+e+gt+"flex-line-pack"+Ve(e,/align-content|flex-|-self/,"")+e;case 5548:return Be+e+gt+Ve(e,"shrink","negative")+e;case 5292:return Be+e+gt+Ve(e,"basis","preferred-size")+e;case 6060:return Be+"box-"+Ve(e,"-grow","")+Be+e+gt+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"+gt+"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(Ot(e)-1-t>6)switch(ft(e,t+1)){case 109:if(ft(e,t+4)!==45)break;case 102:return Ve(e,/(.+:)(.+)-([^]+)/,"$1"+Be+"$2-$3$1"+gr+(ft(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ra(e,"stretch")?Hi(Ve(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ft(e,t+1)!==115)break;case 6444:switch(ft(e,Ot(e)-3-(~ra(e,"!important")&&10))){case 107:return Ve(e,":",":"+Be)+e;case 101:return Ve(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Be+(ft(e,14)===45?"inline-":"")+"box$3$1"+Be+"$2$3$1"+gt+"$2box$3")+e}break;case 5936:switch(ft(e,t+11)){case 114:return Be+e+gt+Ve(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Be+e+gt+Ve(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Be+e+gt+Ve(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Be+e+gt+e+e}return e}var Yc=function(t,r,a,n){if(t.length>-1&&!t.return)switch(t.type){case Ra:t.return=Hi(t.value,t.length);break;case _i:return In([Tn(t,{value:Ve(t.value,"@","@"+Be)})],n);case Ea:if(t.length)return Gc(t.props,function(o){switch(Nc(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return In([Tn(t,{props:[Ve(o,/:(read-\w+)/,":"+gr+"$1")]})],n);case"::placeholder":return In([Tn(t,{props:[Ve(o,/:(plac\w+)/,":"+Be+"input-$1")]}),Tn(t,{props:[Ve(o,/:(plac\w+)/,":"+gr+"$1")]}),Tn(t,{props:[Ve(o,/:(plac\w+)/,gt+"input-$1")]})],n)}return""})}},Jc=[Yc],Uc=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||Jc,o={},i,s=[];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(" "),C=1;C<p.length;C++)o[p[C]]=!0;s.push(h)});var l,c=[Zc,zc];{var d,f=[Vc,Dc(function(h){d.insert(h)})],v=_c(c.concat(n,f)),x=function(p){return In(kc(p),v)};l=function(p,C,w,R){d=w,x(p?p+"{"+C.styles+"}":C.styles),R&&(b.inserted[C.name]=!0)}}var b={key:r,sheet:new Ic({key:r,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},oa={exports:{}},De={};/** @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 Ao;function $c(){if(Ao)return De;Ao=1;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,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,v=e?Symbol.for("react.suspense_list"):60120,x=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,C=e?Symbol.for("react.responder"):60118,w=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 n:case f:return I;default:switch(I=I&&I.$$typeof,I){case s:case d:case b:case x:case i:return I;default:return M}}case r:return M}}}function A(I){return R(I)===c}return De.AsyncMode=l,De.ConcurrentMode=c,De.ContextConsumer=s,De.ContextProvider=i,De.Element=t,De.ForwardRef=d,De.Fragment=a,De.Lazy=b,De.Memo=x,De.Portal=r,De.Profiler=o,De.StrictMode=n,De.Suspense=f,De.isAsyncMode=function(I){return A(I)||R(I)===l},De.isConcurrentMode=A,De.isContextConsumer=function(I){return R(I)===s},De.isContextProvider=function(I){return R(I)===i},De.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===t},De.isForwardRef=function(I){return R(I)===d},De.isFragment=function(I){return R(I)===a},De.isLazy=function(I){return R(I)===b},De.isMemo=function(I){return R(I)===x},De.isPortal=function(I){return R(I)===r},De.isProfiler=function(I){return R(I)===o},De.isStrictMode=function(I){return R(I)===n},De.isSuspense=function(I){return R(I)===f},De.isValidElementType=function(I){return typeof I=="string"||typeof I=="function"||I===a||I===c||I===o||I===n||I===f||I===v||typeof I=="object"&&I!==null&&(I.$$typeof===b||I.$$typeof===x||I.$$typeof===i||I.$$typeof===s||I.$$typeof===d||I.$$typeof===p||I.$$typeof===C||I.$$typeof===w||I.$$typeof===h)},De.typeOf=R,De}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 Qc(){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,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,v=e?Symbol.for("react.suspense_list"):60120,x=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,C=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function R(z){return typeof z=="string"||typeof z=="function"||z===a||z===c||z===o||z===n||z===f||z===v||typeof z=="object"&&z!==null&&(z.$$typeof===b||z.$$typeof===x||z.$$typeof===i||z.$$typeof===s||z.$$typeof===d||z.$$typeof===p||z.$$typeof===C||z.$$typeof===w||z.$$typeof===h)}function A(z){if(typeof z=="object"&&z!==null){var Me=z.$$typeof;switch(Me){case t:var Ge=z.type;switch(Ge){case l:case c:case a:case o:case n:case f:return Ge;default:var G=Ge&&Ge.$$typeof;switch(G){case s:case d:case b:case x:case i:return G;default:return Me}}case r:return Me}}}var I=l,M=c,B=s,V=i,q=t,J=d,ae=a,H=b,pe=x,P=r,O=o,T=n,Y=f,ge=!1;function Ne(z){return ge||(ge=!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.")),_(z)||A(z)===l}function _(z){return A(z)===c}function L(z){return A(z)===s}function W(z){return A(z)===i}function U(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function F(z){return A(z)===d}function m(z){return A(z)===a}function ce(z){return A(z)===b}function de(z){return A(z)===x}function oe(z){return A(z)===r}function we(z){return A(z)===o}function Ce(z){return A(z)===n}function Ee(z){return A(z)===f}We.AsyncMode=I,We.ConcurrentMode=M,We.ContextConsumer=B,We.ContextProvider=V,We.Element=q,We.ForwardRef=J,We.Fragment=ae,We.Lazy=H,We.Memo=pe,We.Portal=P,We.Profiler=O,We.StrictMode=T,We.Suspense=Y,We.isAsyncMode=Ne,We.isConcurrentMode=_,We.isContextConsumer=L,We.isContextProvider=W,We.isElement=U,We.isForwardRef=F,We.isFragment=m,We.isLazy=ce,We.isMemo=de,We.isPortal=oe,We.isProfiler=we,We.isStrictMode=Ce,We.isSuspense=Ee,We.isValidElementType=R,We.typeOf=A}()),We}process.env.NODE_ENV==="production"?ia.exports=$c():ia.exports=Qc();var Kc=ia.exports,zi=Kc,qc={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ed={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Yi={};Yi[zi.ForwardRef]=qc;Yi[zi.Memo]=ed;var td=!0;function nd(e,t,r){var a="";return r.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):n&&(a+=n+" ")}),a}var Ji=function(t,r,a){var n=t.key+"-"+r.name;(a===!1||td===!1)&&t.registered[n]===void 0&&(t.registered[n]=r.styles)},rd=function(t,r,a){Ji(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 ad(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 od={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},id=/[A-Z]|^ms/g,sd=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ui=function(t){return t.charCodeAt(1)===45},Ro=function(t){return t!=null&&typeof t!="boolean"},Wr=Wc(function(e){return Ui(e)?e:e.replace(id,"-$&").toLowerCase()}),No=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(sd,function(a,n,o){return Tt={name:n,styles:o,next:Tt},n})}return od[t]!==1&&!Ui(t)&&typeof r=="number"&&r!==0?r+"px":r};function Vn(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 Tt={name:n.name,styles:n.styles,next:Tt},n.name;var o=r;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 ld(e,t,r)}case"function":{if(e!==void 0){var l=Tt,c=r(e);return Tt=l,Vn(e,t,c)}break}}var d=r;return d}function ld(e,t,r){var a="";if(Array.isArray(r))for(var n=0;n<r.length;n++)a+=Vn(e,t,r[n])+";";else for(var o in r){var i=r[o];if(typeof i!="object"){var s=i;Ro(s)&&(a+=Wr(o)+":"+No(o,s)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var l=0;l<i.length;l++)Ro(i[l])&&(a+=Wr(o)+":"+No(o,i[l])+";");else{var c=Vn(e,t,i);switch(o){case"animation":case"animationName":{a+=Wr(o)+":"+c+";";break}default:a+=o+"{"+c+"}"}}}return a}var Go=/label:\s*([^\s;{]+)\s*(;|$)/g,Tt;function $i(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="";Tt=void 0;var o=e[0];if(o==null||o.raw===void 0)a=!1,n+=Vn(r,t,o);else{var i=o;n+=i[0]}for(var s=1;s<e.length;s++)if(n+=Vn(r,t,e[s]),a){var l=o;n+=l[s]}Go.lastIndex=0;for(var c="",d;(d=Go.exec(n))!==null;)c+="-"+d[1];var f=ad(n)+c;return{name:f,styles:n,next:Tt}}var ud=function(t){return t()},cd=S.useInsertionEffect?S.useInsertionEffect:!1,dd=cd||ud,Qi=S.createContext(typeof HTMLElement<"u"?Uc({key:"css"}):null);Qi.Provider;var fd=function(t){return E.forwardRef(function(r,a){var n=E.useContext(Qi);return t(r,n,a)})},pd=S.createContext({}),Pa={}.hasOwnProperty,sa="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",gd=function(t,r){var a={};for(var n in r)Pa.call(r,n)&&(a[n]=r[n]);return a[sa]=t,a},md=function(t){var r=t.cache,a=t.serialized,n=t.isStringTag;return Ji(r,a,n),dd(function(){return rd(r,a,n)}),null},bd=fd(function(e,t,r){var a=e.css;typeof a=="string"&&t.registered[a]!==void 0&&(a=t.registered[a]);var n=e[sa],o=[a],i="";typeof e.className=="string"?i=nd(t.registered,o,e.className):e.className!=null&&(i=e.className+" ");var s=$i(o,void 0,S.useContext(pd));i+=t.key+"-"+s.name;var l={};for(var c in e)Pa.call(e,c)&&c!=="css"&&c!==sa&&(l[c]=e[c]);return l.className=i,r&&(l.ref=r),S.createElement(S.Fragment,null,S.createElement(md,{cache:t,serialized:s,isStringTag:typeof n=="string"}),S.createElement(n,l))}),hd=bd,fe=function(t,r){var a=arguments;if(r==null||!Pa.call(r,"css"))return S.createElement.apply(void 0,a);var n=a.length,o=new Array(n);o[0]=hd,o[1]=gd(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={}))})(fe||(fe={}));function Oa(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return $i(t)}function vd(){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 yd(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const Cd=Math.min,xd=Math.max,mr=Math.round,nr=Math.floor,br=e=>({x:e,y:e});function Id(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 Rr(){return typeof window<"u"}function Ki(e){return es(e)?(e.nodeName||"").toLowerCase():"#document"}function Xt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qi(e){var t;return(t=(es(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function es(e){return Rr()?e instanceof Node||e instanceof Xt(e).Node:!1}function Sd(e){return Rr()?e instanceof Element||e instanceof Xt(e).Element:!1}function Ta(e){return Rr()?e instanceof HTMLElement||e instanceof Xt(e).HTMLElement:!1}function Po(e){return!Rr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xt(e).ShadowRoot}function ts(e){const{overflow:t,overflowX:r,overflowY:a,display:n}=ja(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+r)&&!["inline","contents"].includes(n)}function Ad(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function wd(e){return["html","body","#document"].includes(Ki(e))}function ja(e){return Xt(e).getComputedStyle(e)}function Ed(e){if(Ki(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Po(e)&&e.host||qi(e);return Po(t)?t.host:t}function ns(e){const t=Ed(e);return wd(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ta(t)&&ts(t)?t:ns(t)}function hr(e,t,r){var a;t===void 0&&(t=[]),r===void 0&&(r=!0);const n=ns(e),o=n===((a=e.ownerDocument)==null?void 0:a.body),i=Xt(n);if(o){const s=la(i);return t.concat(i,i.visualViewport||[],ts(n)?n:[],s&&r?hr(s):[])}return t.concat(n,hr(n,[],r))}function la(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Rd(e){const t=ja(e);let r=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const n=Ta(e),o=n?e.offsetWidth:r,i=n?e.offsetHeight:a,s=mr(r)!==o||mr(a)!==i;return s&&(r=o,a=i),{width:r,height:a,$:s}}function Ma(e){return Sd(e)?e:e.contextElement}function Oo(e){const t=Ma(e);if(!Ta(t))return br(1);const r=t.getBoundingClientRect(),{width:a,height:n,$:o}=Rd(t);let i=(o?mr(r.width):r.width)/a,s=(o?mr(r.height):r.height)/n;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Nd=br(0);function Gd(e){const t=Xt(e);return!Ad()||!t.visualViewport?Nd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Pd(e,t,r){return!1}function To(e,t,r,a){t===void 0&&(t=!1);const n=e.getBoundingClientRect(),o=Ma(e);let i=br(1);t&&(i=Oo(e));const s=Pd()?Gd(o):br(0);let l=(n.left+s.x)/i.x,c=(n.top+s.y)/i.y,d=n.width/i.x,f=n.height/i.y;if(o){const v=Xt(o),x=a;let b=v,h=la(b);for(;h&&a&&x!==b;){const p=Oo(h),C=h.getBoundingClientRect(),w=ja(h),R=C.left+(h.clientLeft+parseFloat(w.paddingLeft))*p.x,A=C.top+(h.clientTop+parseFloat(w.paddingTop))*p.y;l*=p.x,c*=p.y,d*=p.x,f*=p.y,l+=R,c+=A,b=Xt(h),h=la(b)}}return Id({width:d,height:f,x:l,y:c})}function Od(e,t){let r=null,a;const n=qi(e);function o(){var s;clearTimeout(a),(s=r)==null||s.disconnect(),r=null}function i(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const{left:c,top:d,width:f,height:v}=e.getBoundingClientRect();if(s||t(),!f||!v)return;const x=nr(d),b=nr(n.clientWidth-(c+f)),h=nr(n.clientHeight-(d+v)),p=nr(c),w={rootMargin:-x+"px "+-b+"px "+-h+"px "+-p+"px",threshold:xd(0,Cd(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{r=new IntersectionObserver(A,{...w,root:n.ownerDocument})}catch{r=new IntersectionObserver(A,w)}r.observe(e)}return i(!0),o}function Td(e,t,r,a){a===void 0&&(a={});const{ancestorScroll:n=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=a,c=Ma(e),d=n||o?[...c?hr(c):[],...hr(t)]:[];d.forEach(C=>{n&&C.addEventListener("scroll",r,{passive:!0}),o&&C.addEventListener("resize",r)});const f=c&&s?Od(c,r):null;let v=-1,x=null;i&&(x=new ResizeObserver(C=>{let[w]=C;w&&w.target===c&&x&&(x.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var R;(R=x)==null||R.observe(t)})),r()}),c&&!l&&x.observe(c),x.observe(t));let b,h=l?To(e):null;l&&p();function p(){const C=To(e);h&&(C.x!==h.x||C.y!==h.y||C.width!==h.width||C.height!==h.height)&&r(),h=C,b=requestAnimationFrame(p)}return r(),()=>{var C;d.forEach(w=>{n&&w.removeEventListener("scroll",r),o&&w.removeEventListener("resize",r)}),f==null||f(),(C=x)==null||C.disconnect(),x=null,l&&cancelAnimationFrame(b)}}var ua=E.useLayoutEffect,jd=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],vr=function(){};function Md(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Fd(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(Md(e,i)));return o.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var jo=function(t){return Hd(t)?t.filter(Boolean):pn(t)==="object"&&t!==null?[t]:[]},rs=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=Ht(t,jd);return me({},r)},qe=function(t,r,a){var n=t.cx,o=t.getStyles,i=t.getClassNames,s=t.className;return{css:o(r,t),className:n(a??{},i(r,t),s)}};function Nr(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function kd(e){return Nr(e)?window.innerHeight:e.clientHeight}function as(e){return Nr(e)?window.pageYOffset:e.scrollTop}function yr(e,t){if(Nr(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Bd(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 Vd(e,t,r,a){return r*((e=e/a-1)*e*e+1)+t}function rr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:vr,n=as(e),o=t-n,i=10,s=0;function l(){s+=i;var c=Vd(s,n,o,r);yr(e,c),s<r?window.requestAnimationFrame(l):a(e)}l()}function Mo(e,t){var r=e.getBoundingClientRect(),a=t.getBoundingClientRect(),n=t.offsetHeight/3;a.bottom+n>r.bottom?yr(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+n,e.scrollHeight)):a.top-n<r.top&&yr(e,Math.max(t.offsetTop-n,0))}function _d(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 os=!1,Wd={get passive(){return os=!0}},ar=typeof window<"u"?window:{};ar.addEventListener&&ar.removeEventListener&&(ar.addEventListener("p",vr,Wd),ar.removeEventListener("p",vr,!1));var Ld=os;function Xd(e){return e!=null}function Hd(e){return Array.isArray(e)}function or(e,t,r){return e?t:r}var Zd=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 s=Wt(i,1),l=s[0];return!a.includes(l)});return o.reduce(function(i,s){var l=Wt(s,2),c=l[0],d=l[1];return i[c]=d,i},{})},zd=["children","innerProps"],Yd=["children","innerProps"];function Jd(e){var t=e.maxHeight,r=e.menuEl,a=e.minHeight,n=e.placement,o=e.shouldScroll,i=e.isFixedPosition,s=e.controlHeight,l=Bd(r),c={placement:"bottom",maxHeight:t};if(!r||!r.offsetParent)return c;var d=l.getBoundingClientRect(),f=d.height,v=r.getBoundingClientRect(),x=v.bottom,b=v.height,h=v.top,p=r.offsetParent.getBoundingClientRect(),C=p.top,w=i?window.innerHeight:kd(l),R=as(l),A=parseInt(getComputedStyle(r).marginBottom,10),I=parseInt(getComputedStyle(r).marginTop,10),M=C-I,B=w-h,V=M+R,q=f-R-h,J=x-w+R+A,ae=R+h-I,H=160;switch(n){case"auto":case"bottom":if(B>=b)return{placement:"bottom",maxHeight:t};if(q>=b&&!i)return o&&rr(l,J,H),{placement:"bottom",maxHeight:t};if(!i&&q>=a||i&&B>=a){o&&rr(l,J,H);var pe=i?B-A:q-A;return{placement:"bottom",maxHeight:pe}}if(n==="auto"||i){var P=t,O=i?M:V;return O>=a&&(P=Math.min(O-A-s,t)),{placement:"top",maxHeight:P}}if(n==="bottom")return o&&yr(l,J),{placement:"bottom",maxHeight:t};break;case"top":if(M>=b)return{placement:"top",maxHeight:t};if(V>=b&&!i)return o&&rr(l,ae,H),{placement:"top",maxHeight:t};if(!i&&V>=a||i&&M>=a){var T=t;return(!i&&V>=a||i&&M>=a)&&(T=i?M-I:V-I),o&&rr(l,ae,H),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(n,'".'))}return c}function Ud(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var is=function(t){return t==="auto"?"bottom":t},$d=function(t,r){var a,n=t.placement,o=t.theme,i=o.borderRadius,s=o.spacing,l=o.colors;return me((a={label:"menu"},Fn(a,Ud(n),"100%"),Fn(a,"position","absolute"),Fn(a,"width","100%"),Fn(a,"zIndex",1),a),r?{}:{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})},ss=E.createContext(null),Qd=function(t){var r=t.children,a=t.minMenuHeight,n=t.maxMenuHeight,o=t.menuPlacement,i=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,c=E.useContext(ss)||{},d=c.setPortalPlacement,f=E.useRef(null),v=E.useState(n),x=Wt(v,2),b=x[0],h=x[1],p=E.useState(null),C=Wt(p,2),w=C[0],R=C[1],A=l.spacing.controlHeight;return ua(function(){var I=f.current;if(I){var M=i==="fixed",B=s&&!M,V=Jd({maxHeight:n,menuEl:I,minHeight:a,placement:o,shouldScroll:B,isFixedPosition:M,controlHeight:A});h(V.maxHeight),R(V.placement),d==null||d(V.placement)}},[n,o,i,s,a,d,A]),r({ref:f,placerProps:me(me({},t),{},{placement:w||is(o),maxHeight:b})})},Kd=function(t){var r=t.children,a=t.innerRef,n=t.innerProps;return fe("div",he({},qe(t,"menu",{menu:!0}),{ref:a},n),r)},qd=Kd,ef=function(t,r){var a=t.maxHeight,n=t.theme.spacing.baseUnit;return me({maxHeight:a,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:n,paddingTop:n})},tf=function(t){var r=t.children,a=t.innerProps,n=t.innerRef,o=t.isMulti;return fe("div",he({},qe(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:n},a),r)},ls=function(t,r){var a=t.theme,n=a.spacing.baseUnit,o=a.colors;return me({textAlign:"center"},r?{}:{color:o.neutral40,padding:"".concat(n*2,"px ").concat(n*3,"px")})},nf=ls,rf=ls,af=function(t){var r=t.children,a=r===void 0?"No options":r,n=t.innerProps,o=Ht(t,zd);return fe("div",he({},qe(me(me({},o),{},{children:a,innerProps:n}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),a)},of=function(t){var r=t.children,a=r===void 0?"Loading...":r,n=t.innerProps,o=Ht(t,Yd);return fe("div",he({},qe(me(me({},o),{},{children:a,innerProps:n}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),a)},sf=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}},lf=function(t){var r=t.appendTo,a=t.children,n=t.controlElement,o=t.innerProps,i=t.menuPlacement,s=t.menuPosition,l=E.useRef(null),c=E.useRef(null),d=E.useState(is(i)),f=Wt(d,2),v=f[0],x=f[1],b=E.useMemo(function(){return{setPortalPlacement:x}},[]),h=E.useState(null),p=Wt(h,2),C=p[0],w=p[1],R=E.useCallback(function(){if(n){var B=_d(n),V=s==="fixed"?0:window.pageYOffset,q=B[v]+V;(q!==(C==null?void 0:C.offset)||B.left!==(C==null?void 0:C.rect.left)||B.width!==(C==null?void 0:C.rect.width))&&w({offset:q,rect:B})}},[n,s,v,C==null?void 0:C.offset,C==null?void 0:C.rect.left,C==null?void 0:C.rect.width]);ua(function(){R()},[R]);var A=E.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),n&&l.current&&(c.current=Td(n,l.current,R,{elementResize:"ResizeObserver"in window}))},[n,R]);ua(function(){A()},[A]);var I=E.useCallback(function(B){l.current=B,A()},[A]);if(!r&&s!=="fixed"||!C)return null;var M=fe("div",he({ref:I},qe(me(me({},t),{},{offset:C.offset,position:s,rect:C.rect}),"menuPortal",{"menu-portal":!0}),o),a);return fe(ss.Provider,{value:b},r?du.createPortal(M,r):M)},uf=function(t){var r=t.isDisabled,a=t.isRtl;return{label:"container",direction:a?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},cf=function(t){var r=t.children,a=t.innerProps,n=t.isDisabled,o=t.isRtl;return fe("div",he({},qe(t,"container",{"--is-disabled":n,"--is-rtl":o}),a),r)},df=function(t,r){var a=t.theme.spacing,n=t.isMulti,o=t.hasValue,i=t.selectProps.controlShouldRenderValue;return me({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")})},ff=function(t){var r=t.children,a=t.innerProps,n=t.isMulti,o=t.hasValue;return fe("div",he({},qe(t,"valueContainer",{"value-container":!0,"value-container--is-multi":n,"value-container--has-value":o}),a),r)},pf=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},gf=function(t){var r=t.children,a=t.innerProps;return fe("div",he({},qe(t,"indicatorsContainer",{indicators:!0}),a),r)},ko,mf=["size"],bf=["innerProps","isRtl","size"];function hf(){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 vf=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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYX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,mf);return fe("svg",he({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:vf},a))},Fa=function(t){return fe(us,he({size:20},t),fe("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"}))},cs=function(t){return fe(us,he({size:20},t),fe("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"}))},ds=function(t,r){var a=t.isFocused,n=t.theme,o=n.spacing.baseUnit,i=n.colors;return me({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:a?i.neutral60:i.neutral20,padding:o*2,":hover":{color:a?i.neutral80:i.neutral40}})},yf=ds,Cf=function(t){var r=t.children,a=t.innerProps;return fe("div",he({},qe(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),a),r||fe(cs,null))},xf=ds,If=function(t){var r=t.children,a=t.innerProps;return fe("div",he({},qe(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),a),r||fe(Fa,null))},Sf=function(t,r){var a=t.isDisabled,n=t.theme,o=n.spacing.baseUnit,i=n.colors;return me({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:a?i.neutral10:i.neutral20,marginBottom:o*2,marginTop:o*2})},Af=function(t){var r=t.innerProps;return fe("span",he({},r,qe(t,"indicatorSeparator",{"indicator-separator":!0})))},wf=vd(ko||(ko=yd([`
|
|
46
|
+
*/var wo;function Qc(){return wo||(wo=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,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,v=e?Symbol.for("react.suspense_list"):60120,x=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,C=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function R(z){return typeof z=="string"||typeof z=="function"||z===a||z===c||z===o||z===n||z===f||z===v||typeof z=="object"&&z!==null&&(z.$$typeof===b||z.$$typeof===x||z.$$typeof===i||z.$$typeof===s||z.$$typeof===d||z.$$typeof===p||z.$$typeof===C||z.$$typeof===w||z.$$typeof===h)}function A(z){if(typeof z=="object"&&z!==null){var Me=z.$$typeof;switch(Me){case t:var Ge=z.type;switch(Ge){case l:case c:case a:case o:case n:case f:return Ge;default:var G=Ge&&Ge.$$typeof;switch(G){case s:case d:case b:case x:case i:return G;default:return Me}}case r:return Me}}}var I=l,M=c,B=s,V=i,q=t,J=d,ae=a,H=b,pe=x,P=r,O=o,T=n,Y=f,ge=!1;function Ne(z){return ge||(ge=!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.")),_(z)||A(z)===l}function _(z){return A(z)===c}function L(z){return A(z)===s}function W(z){return A(z)===i}function U(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function F(z){return A(z)===d}function m(z){return A(z)===a}function ce(z){return A(z)===b}function de(z){return A(z)===x}function oe(z){return A(z)===r}function we(z){return A(z)===o}function Ce(z){return A(z)===n}function Ee(z){return A(z)===f}We.AsyncMode=I,We.ConcurrentMode=M,We.ContextConsumer=B,We.ContextProvider=V,We.Element=q,We.ForwardRef=J,We.Fragment=ae,We.Lazy=H,We.Memo=pe,We.Portal=P,We.Profiler=O,We.StrictMode=T,We.Suspense=Y,We.isAsyncMode=Ne,We.isConcurrentMode=_,We.isContextConsumer=L,We.isContextProvider=W,We.isElement=U,We.isForwardRef=F,We.isFragment=m,We.isLazy=ce,We.isMemo=de,We.isPortal=oe,We.isProfiler=we,We.isStrictMode=Ce,We.isSuspense=Ee,We.isValidElementType=R,We.typeOf=A}()),We}process.env.NODE_ENV==="production"?oa.exports=$c():oa.exports=Qc();var Kc=oa.exports,Zi=Kc,qc={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ed={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},zi={};zi[Zi.ForwardRef]=qc;zi[Zi.Memo]=ed;var td=!0;function nd(e,t,r){var a="";return r.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):n&&(a+=n+" ")}),a}var Yi=function(t,r,a){var n=t.key+"-"+r.name;(a===!1||td===!1)&&t.registered[n]===void 0&&(t.registered[n]=r.styles)},rd=function(t,r,a){Yi(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 ad(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 od={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},id=/[A-Z]|^ms/g,sd=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ji=function(t){return t.charCodeAt(1)===45},Eo=function(t){return t!=null&&typeof t!="boolean"},Dr=Wc(function(e){return Ji(e)?e:e.replace(id,"-$&").toLowerCase()}),Ro=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(sd,function(a,n,o){return Tt={name:n,styles:o,next:Tt},n})}return od[t]!==1&&!Ji(t)&&typeof r=="number"&&r!==0?r+"px":r};function Vn(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 Tt={name:n.name,styles:n.styles,next:Tt},n.name;var o=r;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 ld(e,t,r)}case"function":{if(e!==void 0){var l=Tt,c=r(e);return Tt=l,Vn(e,t,c)}break}}var d=r;return d}function ld(e,t,r){var a="";if(Array.isArray(r))for(var n=0;n<r.length;n++)a+=Vn(e,t,r[n])+";";else for(var o in r){var i=r[o];if(typeof i!="object"){var s=i;Eo(s)&&(a+=Dr(o)+":"+Ro(o,s)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var l=0;l<i.length;l++)Eo(i[l])&&(a+=Dr(o)+":"+Ro(o,i[l])+";");else{var c=Vn(e,t,i);switch(o){case"animation":case"animationName":{a+=Dr(o)+":"+c+";";break}default:a+=o+"{"+c+"}"}}}return a}var No=/label:\s*([^\s;{]+)\s*(;|$)/g,Tt;function Ui(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="";Tt=void 0;var o=e[0];if(o==null||o.raw===void 0)a=!1,n+=Vn(r,t,o);else{var i=o;n+=i[0]}for(var s=1;s<e.length;s++)if(n+=Vn(r,t,e[s]),a){var l=o;n+=l[s]}No.lastIndex=0;for(var c="",d;(d=No.exec(n))!==null;)c+="-"+d[1];var f=ad(n)+c;return{name:f,styles:n,next:Tt}}var ud=function(t){return t()},cd=S.useInsertionEffect?S.useInsertionEffect:!1,dd=cd||ud,$i=S.createContext(typeof HTMLElement<"u"?Uc({key:"css"}):null);$i.Provider;var fd=function(t){return E.forwardRef(function(r,a){var n=E.useContext($i);return t(r,n,a)})},pd=S.createContext({}),Ga={}.hasOwnProperty,ia="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",gd=function(t,r){var a={};for(var n in r)Ga.call(r,n)&&(a[n]=r[n]);return a[ia]=t,a},md=function(t){var r=t.cache,a=t.serialized,n=t.isStringTag;return Yi(r,a,n),dd(function(){return rd(r,a,n)}),null},bd=fd(function(e,t,r){var a=e.css;typeof a=="string"&&t.registered[a]!==void 0&&(a=t.registered[a]);var n=e[ia],o=[a],i="";typeof e.className=="string"?i=nd(t.registered,o,e.className):e.className!=null&&(i=e.className+" ");var s=Ui(o,void 0,S.useContext(pd));i+=t.key+"-"+s.name;var l={};for(var c in e)Ga.call(e,c)&&c!=="css"&&c!==ia&&(l[c]=e[c]);return l.className=i,r&&(l.ref=r),S.createElement(S.Fragment,null,S.createElement(md,{cache:t,serialized:s,isStringTag:typeof n=="string"}),S.createElement(n,l))}),hd=bd,fe=function(t,r){var a=arguments;if(r==null||!Ga.call(r,"css"))return S.createElement.apply(void 0,a);var n=a.length,o=new Array(n);o[0]=hd,o[1]=gd(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={}))})(fe||(fe={}));function Pa(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ui(t)}function vd(){var e=Pa.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 yd(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const Cd=Math.min,xd=Math.max,mr=Math.round,nr=Math.floor,br=e=>({x:e,y:e});function Id(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 Rr(){return typeof window<"u"}function Qi(e){return qi(e)?(e.nodeName||"").toLowerCase():"#document"}function Xt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ki(e){var t;return(t=(qi(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function qi(e){return Rr()?e instanceof Node||e instanceof Xt(e).Node:!1}function Sd(e){return Rr()?e instanceof Element||e instanceof Xt(e).Element:!1}function Oa(e){return Rr()?e instanceof HTMLElement||e instanceof Xt(e).HTMLElement:!1}function Go(e){return!Rr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xt(e).ShadowRoot}function es(e){const{overflow:t,overflowX:r,overflowY:a,display:n}=Ta(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+r)&&!["inline","contents"].includes(n)}function Ad(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function wd(e){return["html","body","#document"].includes(Qi(e))}function Ta(e){return Xt(e).getComputedStyle(e)}function Ed(e){if(Qi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Go(e)&&e.host||Ki(e);return Go(t)?t.host:t}function ts(e){const t=Ed(e);return wd(t)?e.ownerDocument?e.ownerDocument.body:e.body:Oa(t)&&es(t)?t:ts(t)}function hr(e,t,r){var a;t===void 0&&(t=[]),r===void 0&&(r=!0);const n=ts(e),o=n===((a=e.ownerDocument)==null?void 0:a.body),i=Xt(n);if(o){const s=sa(i);return t.concat(i,i.visualViewport||[],es(n)?n:[],s&&r?hr(s):[])}return t.concat(n,hr(n,[],r))}function sa(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Rd(e){const t=Ta(e);let r=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const n=Oa(e),o=n?e.offsetWidth:r,i=n?e.offsetHeight:a,s=mr(r)!==o||mr(a)!==i;return s&&(r=o,a=i),{width:r,height:a,$:s}}function ja(e){return Sd(e)?e:e.contextElement}function Po(e){const t=ja(e);if(!Oa(t))return br(1);const r=t.getBoundingClientRect(),{width:a,height:n,$:o}=Rd(t);let i=(o?mr(r.width):r.width)/a,s=(o?mr(r.height):r.height)/n;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Nd=br(0);function Gd(e){const t=Xt(e);return!Ad()||!t.visualViewport?Nd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Pd(e,t,r){return!1}function Oo(e,t,r,a){t===void 0&&(t=!1);const n=e.getBoundingClientRect(),o=ja(e);let i=br(1);t&&(i=Po(e));const s=Pd()?Gd(o):br(0);let l=(n.left+s.x)/i.x,c=(n.top+s.y)/i.y,d=n.width/i.x,f=n.height/i.y;if(o){const v=Xt(o),x=a;let b=v,h=sa(b);for(;h&&a&&x!==b;){const p=Po(h),C=h.getBoundingClientRect(),w=Ta(h),R=C.left+(h.clientLeft+parseFloat(w.paddingLeft))*p.x,A=C.top+(h.clientTop+parseFloat(w.paddingTop))*p.y;l*=p.x,c*=p.y,d*=p.x,f*=p.y,l+=R,c+=A,b=Xt(h),h=sa(b)}}return Id({width:d,height:f,x:l,y:c})}function Od(e,t){let r=null,a;const n=Ki(e);function o(){var s;clearTimeout(a),(s=r)==null||s.disconnect(),r=null}function i(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const{left:c,top:d,width:f,height:v}=e.getBoundingClientRect();if(s||t(),!f||!v)return;const x=nr(d),b=nr(n.clientWidth-(c+f)),h=nr(n.clientHeight-(d+v)),p=nr(c),w={rootMargin:-x+"px "+-b+"px "+-h+"px "+-p+"px",threshold:xd(0,Cd(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{r=new IntersectionObserver(A,{...w,root:n.ownerDocument})}catch{r=new IntersectionObserver(A,w)}r.observe(e)}return i(!0),o}function Td(e,t,r,a){a===void 0&&(a={});const{ancestorScroll:n=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=a,c=ja(e),d=n||o?[...c?hr(c):[],...hr(t)]:[];d.forEach(C=>{n&&C.addEventListener("scroll",r,{passive:!0}),o&&C.addEventListener("resize",r)});const f=c&&s?Od(c,r):null;let v=-1,x=null;i&&(x=new ResizeObserver(C=>{let[w]=C;w&&w.target===c&&x&&(x.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var R;(R=x)==null||R.observe(t)})),r()}),c&&!l&&x.observe(c),x.observe(t));let b,h=l?Oo(e):null;l&&p();function p(){const C=Oo(e);h&&(C.x!==h.x||C.y!==h.y||C.width!==h.width||C.height!==h.height)&&r(),h=C,b=requestAnimationFrame(p)}return r(),()=>{var C;d.forEach(w=>{n&&w.removeEventListener("scroll",r),o&&w.removeEventListener("resize",r)}),f==null||f(),(C=x)==null||C.disconnect(),x=null,l&&cancelAnimationFrame(b)}}var la=E.useLayoutEffect,jd=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],vr=function(){};function Md(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Fd(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(Md(e,i)));return o.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var To=function(t){return Hd(t)?t.filter(Boolean):pn(t)==="object"&&t!==null?[t]:[]},ns=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=Ht(t,jd);return me({},r)},qe=function(t,r,a){var n=t.cx,o=t.getStyles,i=t.getClassNames,s=t.className;return{css:o(r,t),className:n(a??{},i(r,t),s)}};function Nr(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function kd(e){return Nr(e)?window.innerHeight:e.clientHeight}function rs(e){return Nr(e)?window.pageYOffset:e.scrollTop}function yr(e,t){if(Nr(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Bd(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 Vd(e,t,r,a){return r*((e=e/a-1)*e*e+1)+t}function rr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:vr,n=rs(e),o=t-n,i=10,s=0;function l(){s+=i;var c=Vd(s,n,o,r);yr(e,c),s<r?window.requestAnimationFrame(l):a(e)}l()}function jo(e,t){var r=e.getBoundingClientRect(),a=t.getBoundingClientRect(),n=t.offsetHeight/3;a.bottom+n>r.bottom?yr(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+n,e.scrollHeight)):a.top-n<r.top&&yr(e,Math.max(t.offsetTop-n,0))}function _d(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 Mo(){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 as=!1,Wd={get passive(){return as=!0}},ar=typeof window<"u"?window:{};ar.addEventListener&&ar.removeEventListener&&(ar.addEventListener("p",vr,Wd),ar.removeEventListener("p",vr,!1));var Ld=as;function Xd(e){return e!=null}function Hd(e){return Array.isArray(e)}function or(e,t,r){return e?t:r}var Zd=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 s=Wt(i,1),l=s[0];return!a.includes(l)});return o.reduce(function(i,s){var l=Wt(s,2),c=l[0],d=l[1];return i[c]=d,i},{})},zd=["children","innerProps"],Yd=["children","innerProps"];function Jd(e){var t=e.maxHeight,r=e.menuEl,a=e.minHeight,n=e.placement,o=e.shouldScroll,i=e.isFixedPosition,s=e.controlHeight,l=Bd(r),c={placement:"bottom",maxHeight:t};if(!r||!r.offsetParent)return c;var d=l.getBoundingClientRect(),f=d.height,v=r.getBoundingClientRect(),x=v.bottom,b=v.height,h=v.top,p=r.offsetParent.getBoundingClientRect(),C=p.top,w=i?window.innerHeight:kd(l),R=rs(l),A=parseInt(getComputedStyle(r).marginBottom,10),I=parseInt(getComputedStyle(r).marginTop,10),M=C-I,B=w-h,V=M+R,q=f-R-h,J=x-w+R+A,ae=R+h-I,H=160;switch(n){case"auto":case"bottom":if(B>=b)return{placement:"bottom",maxHeight:t};if(q>=b&&!i)return o&&rr(l,J,H),{placement:"bottom",maxHeight:t};if(!i&&q>=a||i&&B>=a){o&&rr(l,J,H);var pe=i?B-A:q-A;return{placement:"bottom",maxHeight:pe}}if(n==="auto"||i){var P=t,O=i?M:V;return O>=a&&(P=Math.min(O-A-s,t)),{placement:"top",maxHeight:P}}if(n==="bottom")return o&&yr(l,J),{placement:"bottom",maxHeight:t};break;case"top":if(M>=b)return{placement:"top",maxHeight:t};if(V>=b&&!i)return o&&rr(l,ae,H),{placement:"top",maxHeight:t};if(!i&&V>=a||i&&M>=a){var T=t;return(!i&&V>=a||i&&M>=a)&&(T=i?M-I:V-I),o&&rr(l,ae,H),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(n,'".'))}return c}function Ud(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var os=function(t){return t==="auto"?"bottom":t},$d=function(t,r){var a,n=t.placement,o=t.theme,i=o.borderRadius,s=o.spacing,l=o.colors;return me((a={label:"menu"},Fn(a,Ud(n),"100%"),Fn(a,"position","absolute"),Fn(a,"width","100%"),Fn(a,"zIndex",1),a),r?{}:{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})},is=E.createContext(null),Qd=function(t){var r=t.children,a=t.minMenuHeight,n=t.maxMenuHeight,o=t.menuPlacement,i=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,c=E.useContext(is)||{},d=c.setPortalPlacement,f=E.useRef(null),v=E.useState(n),x=Wt(v,2),b=x[0],h=x[1],p=E.useState(null),C=Wt(p,2),w=C[0],R=C[1],A=l.spacing.controlHeight;return la(function(){var I=f.current;if(I){var M=i==="fixed",B=s&&!M,V=Jd({maxHeight:n,menuEl:I,minHeight:a,placement:o,shouldScroll:B,isFixedPosition:M,controlHeight:A});h(V.maxHeight),R(V.placement),d==null||d(V.placement)}},[n,o,i,s,a,d,A]),r({ref:f,placerProps:me(me({},t),{},{placement:w||os(o),maxHeight:b})})},Kd=function(t){var r=t.children,a=t.innerRef,n=t.innerProps;return fe("div",he({},qe(t,"menu",{menu:!0}),{ref:a},n),r)},qd=Kd,ef=function(t,r){var a=t.maxHeight,n=t.theme.spacing.baseUnit;return me({maxHeight:a,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:n,paddingTop:n})},tf=function(t){var r=t.children,a=t.innerProps,n=t.innerRef,o=t.isMulti;return fe("div",he({},qe(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:n},a),r)},ss=function(t,r){var a=t.theme,n=a.spacing.baseUnit,o=a.colors;return me({textAlign:"center"},r?{}:{color:o.neutral40,padding:"".concat(n*2,"px ").concat(n*3,"px")})},nf=ss,rf=ss,af=function(t){var r=t.children,a=r===void 0?"No options":r,n=t.innerProps,o=Ht(t,zd);return fe("div",he({},qe(me(me({},o),{},{children:a,innerProps:n}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),a)},of=function(t){var r=t.children,a=r===void 0?"Loading...":r,n=t.innerProps,o=Ht(t,Yd);return fe("div",he({},qe(me(me({},o),{},{children:a,innerProps:n}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),a)},sf=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}},lf=function(t){var r=t.appendTo,a=t.children,n=t.controlElement,o=t.innerProps,i=t.menuPlacement,s=t.menuPosition,l=E.useRef(null),c=E.useRef(null),d=E.useState(os(i)),f=Wt(d,2),v=f[0],x=f[1],b=E.useMemo(function(){return{setPortalPlacement:x}},[]),h=E.useState(null),p=Wt(h,2),C=p[0],w=p[1],R=E.useCallback(function(){if(n){var B=_d(n),V=s==="fixed"?0:window.pageYOffset,q=B[v]+V;(q!==(C==null?void 0:C.offset)||B.left!==(C==null?void 0:C.rect.left)||B.width!==(C==null?void 0:C.rect.width))&&w({offset:q,rect:B})}},[n,s,v,C==null?void 0:C.offset,C==null?void 0:C.rect.left,C==null?void 0:C.rect.width]);la(function(){R()},[R]);var A=E.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),n&&l.current&&(c.current=Td(n,l.current,R,{elementResize:"ResizeObserver"in window}))},[n,R]);la(function(){A()},[A]);var I=E.useCallback(function(B){l.current=B,A()},[A]);if(!r&&s!=="fixed"||!C)return null;var M=fe("div",he({ref:I},qe(me(me({},t),{},{offset:C.offset,position:s,rect:C.rect}),"menuPortal",{"menu-portal":!0}),o),a);return fe(is.Provider,{value:b},r?du.createPortal(M,r):M)},uf=function(t){var r=t.isDisabled,a=t.isRtl;return{label:"container",direction:a?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},cf=function(t){var r=t.children,a=t.innerProps,n=t.isDisabled,o=t.isRtl;return fe("div",he({},qe(t,"container",{"--is-disabled":n,"--is-rtl":o}),a),r)},df=function(t,r){var a=t.theme.spacing,n=t.isMulti,o=t.hasValue,i=t.selectProps.controlShouldRenderValue;return me({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")})},ff=function(t){var r=t.children,a=t.innerProps,n=t.isMulti,o=t.hasValue;return fe("div",he({},qe(t,"valueContainer",{"value-container":!0,"value-container--is-multi":n,"value-container--has-value":o}),a),r)},pf=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},gf=function(t){var r=t.children,a=t.innerProps;return fe("div",he({},qe(t,"indicatorsContainer",{indicators:!0}),a),r)},Fo,mf=["size"],bf=["innerProps","isRtl","size"];function hf(){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 vf=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+IChcbiA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NlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:hf},ls=function(t){var r=t.size,a=Ht(t,mf);return fe("svg",he({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:vf},a))},Ma=function(t){return fe(ls,he({size:20},t),fe("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"}))},us=function(t){return fe(ls,he({size:20},t),fe("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"}))},cs=function(t,r){var a=t.isFocused,n=t.theme,o=n.spacing.baseUnit,i=n.colors;return me({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:a?i.neutral60:i.neutral20,padding:o*2,":hover":{color:a?i.neutral80:i.neutral40}})},yf=cs,Cf=function(t){var r=t.children,a=t.innerProps;return fe("div",he({},qe(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),a),r||fe(us,null))},xf=cs,If=function(t){var r=t.children,a=t.innerProps;return fe("div",he({},qe(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),a),r||fe(Ma,null))},Sf=function(t,r){var a=t.isDisabled,n=t.theme,o=n.spacing.baseUnit,i=n.colors;return me({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:a?i.neutral10:i.neutral20,marginBottom:o*2,marginTop:o*2})},Af=function(t){var r=t.innerProps;return fe("span",he({},r,qe(t,"indicatorSeparator",{"indicator-separator":!0})))},wf=vd(Fo||(Fo=yd([`
|
|
47
47
|
0%, 80%, 100% { opacity: 0; }
|
|
48
48
|
40% { opacity: 1; }
|
|
49
|
-
`]))),Ef=function(t,r){var a=t.isFocused,n=t.size,o=t.theme,i=o.colors,s=o.spacing.baseUnit;return me({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:s*2})},Lr=function(t){var r=t.delay,a=t.offset;return fe("span",{css:Oa({animation:"".concat(wf," 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+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNl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KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},Rf=function(t){var r=t.innerProps,a=t.isRtl,n=t.size,o=n===void 0?4:n,i=Ht(t,bf);return fe("div",he({},qe(me(me({},i),{},{innerProps:r,isRtl:a,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),fe(Lr,{delay:0,offset:a}),fe(Lr,{delay:160,offset:!0}),fe(Lr,{delay:320,offset:!a}))},Nf=function(t,r){var a=t.isDisabled,n=t.isFocused,o=t.theme,i=o.colors,s=o.borderRadius,l=o.spacing;return me({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.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:s,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:n?i.primary:i.neutral30}})},Gf=function(t){var r=t.children,a=t.isDisabled,n=t.isFocused,o=t.innerRef,i=t.innerProps,s=t.menuIsOpen;return fe("div",he({ref:o},qe(t,"control",{control:!0,"control--is-disabled":a,"control--is-focused":n,"control--menu-is-open":s}),i,{"aria-disabled":a||void 0}),r)},Pf=Gf,Of=["data"],Tf=function(t,r){var a=t.theme.spacing;return r?{}:{paddingBottom:a.baseUnit*2,paddingTop:a.baseUnit*2}},jf=function(t){var r=t.children,a=t.cx,n=t.getStyles,o=t.getClassNames,i=t.Heading,s=t.headingProps,l=t.innerProps,c=t.label,d=t.theme,f=t.selectProps;return fe("div",he({},qe(t,"group",{group:!0}),l),fe(i,he({},s,{selectProps:f,theme:d,getStyles:n,getClassNames:o,cx:a}),c),fe("div",null,r))},Mf=function(t,r){var a=t.theme,n=a.colors,o=a.spacing;return me({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"})},Ff=function(t){var r=rs(t);r.data;var a=Ht(r,Of);return fe("div",he({},qe(t,"groupHeading",{"group-heading":!0}),a))},kf=jf,Bf=["innerRef","isDisabled","isHidden","inputClassName"],Vf=function(t,r){var a=t.isDisabled,n=t.value,o=t.theme,i=o.spacing,s=o.colors;return me(me({visibility:a?"hidden":"visible",transform:n?"translateZ(0)":""},_f),r?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:s.neutral80})},fs={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},_f={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":me({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},fs)},Df=function(t){return me({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},fs)},Wf=function(t){var r=t.cx,a=t.value,n=rs(t),o=n.innerRef,i=n.isDisabled,s=n.isHidden,l=n.inputClassName,c=Ht(n,Bf);return fe("div",he({},qe(t,"input",{"input-container":!0}),{"data-value":a||""}),fe("input",he({className:r({input:!0},l),ref:o,style:Df(s),disabled:i},c)))},Lf=Wf,Xf=function(t,r){var a=t.theme,n=a.spacing,o=a.borderRadius,i=a.colors;return me({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:n.baseUnit/2})},Hf=function(t,r){var a=t.theme,n=a.borderRadius,o=a.colors,i=t.cropWithEllipsis;return me({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})},Zf=function(t,r){var a=t.theme,n=a.spacing,o=a.borderRadius,i=a.colors,s=t.isFocused;return me({alignItems:"center",display:"flex"},r?{}:{borderRadius:o/2,backgroundColor:s?i.dangerLight:void 0,paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},ps=function(t){var r=t.children,a=t.innerProps;return fe("div",a,r)},zf=ps,Yf=ps;function Jf(e){var t=e.children,r=e.innerProps;return fe("div",he({role:"button"},r),t||fe(Fa,{size:14}))}var Uf=function(t){var r=t.children,a=t.components,n=t.data,o=t.innerProps,i=t.isDisabled,s=t.removeProps,l=t.selectProps,c=a.Container,d=a.Label,f=a.Remove;return fe(c,{data:n,innerProps:me(me({},qe(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:l},fe(d,{data:n,innerProps:me({},qe(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},r),fe(f,{data:n,innerProps:me(me({},qe(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},s),selectProps:l}))},$f=Uf,Qf=function(t,r){var a=t.isDisabled,n=t.isFocused,o=t.isSelected,i=t.theme,s=i.spacing,l=i.colors;return me({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:o?l.primary:n?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}})},Kf=function(t){var r=t.children,a=t.isDisabled,n=t.isFocused,o=t.isSelected,i=t.innerRef,s=t.innerProps;return fe("div",he({},qe(t,"option",{option:!0,"option--is-disabled":a,"option--is-focused":n,"option--is-selected":o}),{ref:i,"aria-disabled":a},s),r)},qf=Kf,ep=function(t,r){var a=t.theme,n=a.spacing,o=a.colors;return me({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:o.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2})},tp=function(t){var r=t.children,a=t.innerProps;return fe("div",he({},qe(t,"placeholder",{placeholder:!0}),a),r)},np=tp,rp=function(t,r){var a=t.isDisabled,n=t.theme,o=n.spacing,i=n.colors;return me({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})},ap=function(t){var r=t.children,a=t.isDisabled,n=t.innerProps;return fe("div",he({},qe(t,"singleValue",{"single-value":!0,"single-value--is-disabled":a}),n),r)},op=ap,gs={ClearIndicator:If,Control:Pf,DropdownIndicator:Cf,DownChevron:cs,CrossIcon:Fa,Group:kf,GroupHeading:Ff,IndicatorsContainer:gf,IndicatorSeparator:Af,Input:Lf,LoadingIndicator:Rf,Menu:qd,MenuList:tf,MenuPortal:lf,LoadingMessage:of,NoOptionsMessage:af,MultiValue:$f,MultiValueContainer:zf,MultiValueLabel:Yf,MultiValueRemove:Jf,Option:qf,Placeholder:np,SelectContainer:cf,SingleValue:op,ValueContainer:ff},ip=function(t){return me(me({},gs),t.components)},Bo=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function sp(e,t){return!!(e===t||Bo(e)&&Bo(t))}function lp(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!sp(e[r],t[r]))return!1;return!0}function up(e,t){t===void 0&&(t=lp);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 cp(){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 dp=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:cp},fp=function(t){return fe("span",he({css:dp},t))},Vo=fp,pp={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,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(r==="value"&&s)return"value ".concat(i," focused, ").concat(f(s,a),".");if(r==="menu"&&d){var v=l?" disabled":"",x="".concat(c?" selected":"").concat(v);return"".concat(i).concat(x,", ").concat(f(n,a),".")}return""},onFilter:function(t){var r=t.inputValue,a=t.resultsMessage;return"".concat(a).concat(r?" for search term "+r:"",".")}},gp=function(t){var r=t.ariaSelection,a=t.focusedOption,n=t.focusedValue,o=t.focusableOptions,i=t.isFocused,s=t.selectValue,l=t.selectProps,c=t.id,d=t.isAppleDevice,f=l.ariaLiveMessages,v=l.getOptionLabel,x=l.inputValue,b=l.isMulti,h=l.isOptionDisabled,p=l.isSearchable,C=l.menuIsOpen,w=l.options,R=l.screenReaderStatus,A=l.tabSelectsValue,I=l.isLoading,M=l["aria-label"],B=l["aria-live"],V=E.useMemo(function(){return me(me({},pp),f||{})},[f]),q=E.useMemo(function(){var O="";if(r&&V.onChange){var T=r.option,Y=r.options,ge=r.removedValue,Ne=r.removedValues,_=r.value,L=function(oe){return Array.isArray(oe)?null:oe},W=ge||T||L(_),U=W?v(W):"",F=Y||Ne||void 0,m=F?F.map(v):[],ce=me({isDisabled:W&&h(W,s),label:U,labels:m},r);O=V.onChange(ce)}return O},[r,V,h,s,v]),J=E.useMemo(function(){var O="",T=a||n,Y=!!(a&&s&&s.includes(a));if(T&&V.onFocus){var ge={focused:T,label:v(T),isDisabled:h(T,s),isSelected:Y,options:o,context:T===a?"menu":"value",selectValue:s,isAppleDevice:d};O=V.onFocus(ge)}return O},[a,n,v,h,V,o,s,d]),ae=E.useMemo(function(){var O="";if(C&&w.length&&!I&&V.onFilter){var T=R({count:o.length});O=V.onFilter({inputValue:x,resultsMessage:T})}return O},[o,x,C,V,w,R,I]),H=(r==null?void 0:r.action)==="initial-input-focus",pe=E.useMemo(function(){var O="";if(V.guidance){var T=n?"value":C?"menu":"input";O=V.guidance({"aria-label":M,context:T,isDisabled:a&&h(a,s),isMulti:b,isSearchable:p,tabSelectsValue:A,isInitialFocus:H})}return O},[M,a,n,b,h,p,C,V,s,A,H]),P=fe(E.Fragment,null,fe("span",{id:"aria-selection"},q),fe("span",{id:"aria-focused"},J),fe("span",{id:"aria-results"},ae),fe("span",{id:"aria-guidance"},pe));return fe(E.Fragment,null,fe(Vo,{id:c},H&&P),fe(Vo,{"aria-live":B,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!H&&P))},mp=gp,ca=[{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źẑżžẓẕƶȥɀⱬꝣ"}],bp=new RegExp("["+ca.map(function(e){return e.letters}).join("")+"]","g"),ms={};for(var Xr=0;Xr<ca.length;Xr++)for(var Hr=ca[Xr],Zr=0;Zr<Hr.letters.length;Zr++)ms[Hr.letters[Zr]]=Hr.base;var bs=function(t){return t.replace(bp,function(r){return ms[r]})},hp=up(bs),_o=function(t){return t.replace(/^\s+|\s+$/g,"")},vp=function(t){return"".concat(t.label," ").concat(t.value)},yp=function(t){return function(r,a){if(r.data.__isNew__)return!0;var n=me({ignoreCase:!0,ignoreAccents:!0,stringify:vp,trim:!0,matchFrom:"any"},t),o=n.ignoreCase,i=n.ignoreAccents,s=n.stringify,l=n.trim,c=n.matchFrom,d=l?_o(a):a,f=l?_o(s(r)):s(r);return o&&(d=d.toLowerCase(),f=f.toLowerCase()),i&&(d=hp(d),f=bs(f)),c==="start"?f.substr(0,d.length)===d:f.indexOf(d)>-1}},Cp=["innerRef"];function xp(e){var t=e.innerRef,r=Ht(e,Cp),a=Zd(r,"onExited","in","enter","exit","appear");return fe("input",he({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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmV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4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var Ip=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function Sp(e){var t=e.isEnabled,r=e.onBottomArrive,a=e.onBottomLeave,n=e.onTopArrive,o=e.onTopLeave,i=E.useRef(!1),s=E.useRef(!1),l=E.useRef(0),c=E.useRef(null),d=E.useCallback(function(p,C){if(c.current!==null){var w=c.current,R=w.scrollTop,A=w.scrollHeight,I=w.clientHeight,M=c.current,B=C>0,V=A-I-R,q=!1;V>C&&i.current&&(a&&a(p),i.current=!1),B&&s.current&&(o&&o(p),s.current=!1),B&&C>V?(r&&!i.current&&r(p),M.scrollTop=A,q=!0,i.current=!0):!B&&-C>R&&(n&&!s.current&&n(p),M.scrollTop=0,q=!0,s.current=!0),q&&Ip(p)}},[r,a,n,o]),f=E.useCallback(function(p){d(p,p.deltaY)},[d]),v=E.useCallback(function(p){l.current=p.changedTouches[0].clientY},[]),x=E.useCallback(function(p){var C=l.current-p.changedTouches[0].clientY;d(p,C)},[d]),b=E.useCallback(function(p){if(p){var C=Ld?{passive:!1}:!1;p.addEventListener("wheel",f,C),p.addEventListener("touchstart",v,C),p.addEventListener("touchmove",x,C)}},[x,v,f]),h=E.useCallback(function(p){p&&(p.removeEventListener("wheel",f,!1),p.removeEventListener("touchstart",v,!1),p.removeEventListener("touchmove",x,!1))},[x,v,f]);return E.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),jn=0,vn={capture:!1,passive:!1};function Ap(e){var t=e.isEnabled,r=e.accountForScrollbars,a=r===void 0?!0:r,n=E.useRef({}),o=E.useRef(null),i=E.useCallback(function(l){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&&jn<1){var f=parseInt(n.current.paddingRight,10)||0,v=document.body?document.body.clientWidth:0,x=window.innerWidth-v+f||0;Object.keys(Wo).forEach(function(b){var h=Wo[b];d&&(d[b]=h)}),d&&(d.paddingRight="".concat(x,"px"))}c&&Zo()&&(c.addEventListener("touchmove",Lo,vn),l&&(l.addEventListener("touchstart",Ho,vn),l.addEventListener("touchmove",Xo,vn))),jn+=1}},[a]),s=E.useCallback(function(l){if(zo){var c=document.body,d=c&&c.style;jn=Math.max(jn-1,0),a&&jn<1&&Do.forEach(function(f){var v=n.current[f];d&&(d[f]=v)}),c&&Zo()&&(c.removeEventListener("touchmove",Lo,vn),l&&(l.removeEventListener("touchstart",Ho,vn),l.removeEventListener("touchmove",Xo,vn)))}},[a]);return E.useEffect(function(){if(t){var l=o.current;return i(l),function(){s(l)}}},[t,i,s]),function(l){o.current=l}}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=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},Rp=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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+I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YmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:wp};function Np(e){var t=e.children,r=e.lockEnabled,a=e.captureEnabled,n=a===void 0?!0:a,o=e.onBottomArrive,i=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,c=Sp({isEnabled:n,onBottomArrive:o,onBottomLeave:i,onTopArrive:s,onTopLeave:l}),d=Ap({isEnabled:r}),f=function(x){c(x),d(x)};return fe(E.Fragment,null,r&&fe("div",{onClick:Ep,css:Rp}),t(f))}function Gp(){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 Pp=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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oKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:Gp},Op=function(t){var r=t.name,a=t.onFocus;return fe("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:a,css:Pp,value:"",onChange:function(){}})},Tp=Op;function ka(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 jp(){return ka(/^iPhone/i)}function hs(){return ka(/^Mac/i)}function Mp(){return ka(/^iPad/i)||hs()&&navigator.maxTouchPoints>1}function Fp(){return jp()||Mp()}function kp(){return hs()||Fp()}var Bp=function(t){return t.label},Vp=function(t){return t.label},_p=function(t){return t.value},Dp=function(t){return!!t.isDisabled},Wp={clearIndicator:xf,container:uf,control:Nf,dropdownIndicator:yf,group:Tf,groupHeading:Mf,indicatorsContainer:pf,indicatorSeparator:Sf,input:Vf,loadingIndicator:Ef,loadingMessage:rf,menu:$d,menuList:ef,menuPortal:sf,multiValue:Xf,multiValueLabel:Hf,multiValueRemove:Zf,noOptionsMessage:nf,option:Qf,placeholder:ep,singleValue:rp,valueContainer:df},Lp={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%)"},Xp=4,vs=4,Hp=38,Zp=vs*2,zp={baseUnit:vs,controlHeight:Hp,menuGutter:Zp},zr={borderRadius:Xp,colors:Lp,spacing:zp},Yp={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Fo(),captureMenuScroll:!Fo(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:yp(),formatGroupLabel:Bp,getOptionLabel:Vp,getOptionValue:_p,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 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=xs(e,t,r),o=Is(e,t,r),i=Cs(e,t),s=Cr(e,t);return{type:"option",data:t,isDisabled:n,isSelected:o,label:i,value:s,index:a}}function dr(e,t){return e.options.map(function(r,a){if("options"in r){var n=r.options.map(function(i,s){return Yo(e,i,t,s)}).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(Xd)}function ys(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,Ea(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,Ea(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 Jp(e,t){return ys(dr(e,t))}function Uo(e,t){var r=e.inputValue,a=r===void 0?"":r,n=t.data,o=t.isSelected,i=t.label,s=t.value;return(!As(e)||!o)&&Ss(e,{label:i,value:s,data:n},a)}function Up(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 $p(e,t){var r=e.focusedOption;return r&&t.indexOf(r)>-1?r:t[0]}var Yr=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},Cs=function(t,r){return t.getOptionLabel(r)},Cr=function(t,r){return t.getOptionValue(r)};function xs(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function Is(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var a=Cr(e,t);return r.some(function(n){return Cr(e,n)===a})}function Ss(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var As=function(t){var r=t.hideSelectedOptions,a=t.isMulti;return r===void 0?a:r},Qp=1,ws=function(e){pc(r,e);var t=bc(r);function r(a){var n;if(dc(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=kp(),n.controlRef=null,n.getControlRef=function(l){n.controlRef=l},n.focusedOptionRef=null,n.getFocusedOptionRef=function(l){n.focusedOptionRef=l},n.menuListRef=null,n.getMenuListRef=function(l){n.menuListRef=l},n.inputRef=null,n.getInputRef=function(l){n.inputRef=l},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(l,c){var d=n.props,f=d.onChange,v=d.name;c.name=v,n.ariaOnChange(l,c),f(l,c)},n.setValue=function(l,c,d){var f=n.props,v=f.closeMenuOnSelect,x=f.isMulti,b=f.inputValue;n.onInputChange("",{action:"set-value",prevInputValue:b}),v&&(n.setState({inputIsHiddenAfterUpdate:!x}),n.onMenuClose()),n.setState({clearFocusValueOnUpdate:!0}),n.onChange(l,{action:c,option:d})},n.selectOption=function(l){var c=n.props,d=c.blurInputOnSelect,f=c.isMulti,v=c.name,x=n.state.selectValue,b=f&&n.isOptionSelected(l,x),h=n.isOptionDisabled(l,x);if(b){var p=n.getOptionValue(l);n.setValue(x.filter(function(C){return n.getOptionValue(C)!==p}),"deselect-option",l)}else if(!h)f?n.setValue([].concat(Ea(x),[l]),"select-option",l):n.setValue(l,"select-option");else{n.ariaOnChange(l,{action:"select-option",option:l,name:v});return}d&&n.blurInput()},n.removeValue=function(l){var c=n.props.isMulti,d=n.state.selectValue,f=n.getOptionValue(l),v=d.filter(function(b){return n.getOptionValue(b)!==f}),x=or(c,v,v[0]||null);n.onChange(x,{action:"remove-value",removedValue:l}),n.focusInput()},n.clearValue=function(){var l=n.state.selectValue;n.onChange(or(n.props.isMulti,[],null),{action:"clear",removedValues:l})},n.popValue=function(){var l=n.props.isMulti,c=n.state.selectValue,d=c[c.length-1],f=c.slice(0,c.length-1),v=or(l,f,f[0]||null);d&&n.onChange(v,{action:"pop-value",removedValue:d})},n.getFocusedOptionId=function(l){return Yr(n.state.focusableOptionsWithIds,l)},n.getFocusableOptionsWithIds=function(){return Jo(dr(n.props,n.state.selectValue),n.getElementId("option"))},n.getValue=function(){return n.state.selectValue},n.cx=function(){for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];return Fd.apply(void 0,[n.props.classNamePrefix].concat(c))},n.getOptionLabel=function(l){return Cs(n.props,l)},n.getOptionValue=function(l){return Cr(n.props,l)},n.getStyles=function(l,c){var d=n.props.unstyled,f=Wp[l](c,d);f.boxSizing="border-box";var v=n.props.styles[l];return v?v(f,c):f},n.getClassNames=function(l,c){var d,f;return(d=(f=n.props.classNames)[l])===null||d===void 0?void 0:d.call(f,c)},n.getElementId=function(l){return"".concat(n.state.instancePrefix,"-").concat(l)},n.getComponents=function(){return ip(n.props)},n.buildCategorizedOptions=function(){return dr(n.props,n.state.selectValue)},n.getCategorizedOptions=function(){return n.props.menuIsOpen?n.buildCategorizedOptions():[]},n.buildFocusableOptions=function(){return ys(n.buildCategorizedOptions())},n.getFocusableOptions=function(){return n.props.menuIsOpen?n.buildFocusableOptions():[]},n.ariaOnChange=function(l,c){n.setState({ariaSelection:me({value:l},c)})},n.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(l){n.blockOptionHover=!1},n.onControlMouseDown=function(l){if(!l.defaultPrevented){var c=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&n.onMenuClose():c&&n.openMenu("first"):(c&&(n.openAfterFocus=!0),n.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},n.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.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"),l.preventDefault()}},n.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(n.clearValue(),l.preventDefault(),n.openAfterFocus=!1,l.type==="touchend"?n.focusInput():setTimeout(function(){return n.focusInput()}))},n.onScroll=function(l){typeof n.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&Nr(l.target)&&n.props.onMenuClose():typeof n.props.closeMenuOnScroll=="function"&&n.props.closeMenuOnScroll(l)&&n.props.onMenuClose()},n.onCompositionStart=function(){n.isComposing=!0},n.onCompositionEnd=function(){n.isComposing=!1},n.onTouchStart=function(l){var c=l.touches,d=c&&c.item(0);d&&(n.initialTouchX=d.clientX,n.initialTouchY=d.clientY,n.userIsDragging=!1)},n.onTouchMove=function(l){var c=l.touches,d=c&&c.item(0);if(d){var f=Math.abs(d.clientX-n.initialTouchX),v=Math.abs(d.clientY-n.initialTouchY),x=5;n.userIsDragging=f>x||v>x}},n.onTouchEnd=function(l){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(l.target)&&n.menuListRef&&!n.menuListRef.contains(l.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(l){n.userIsDragging||n.onControlMouseDown(l)},n.onClearIndicatorTouchEnd=function(l){n.userIsDragging||n.onClearIndicatorMouseDown(l)},n.onDropdownIndicatorTouchEnd=function(l){n.userIsDragging||n.onDropdownIndicatorMouseDown(l)},n.handleInputChange=function(l){var c=n.props.inputValue,d=l.currentTarget.value;n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange(d,{action:"input-change",prevInputValue:c}),n.props.menuIsOpen||n.onMenuOpen()},n.onInputFocus=function(l){n.props.onFocus&&n.props.onFocus(l),n.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(l){var c=n.props.inputValue;if(n.menuListRef&&n.menuListRef.contains(document.activeElement)){n.inputRef.focus();return}n.props.onBlur&&n.props.onBlur(l),n.onInputChange("",{action:"input-blur",prevInputValue:c}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1})},n.onOptionHover=function(l){if(!(n.blockOptionHover||n.state.focusedOption===l)){var c=n.getFocusableOptions(),d=c.indexOf(l);n.setState({focusedOption:l,focusedOptionId:d>-1?n.getFocusedOptionId(l):null})}},n.shouldHideSelectedOptions=function(){return As(n.props)},n.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),n.focus()},n.onKeyDown=function(l){var c=n.props,d=c.isMulti,f=c.backspaceRemovesValue,v=c.escapeClearsValue,x=c.inputValue,b=c.isClearable,h=c.isDisabled,p=c.menuIsOpen,C=c.onKeyDown,w=c.tabSelectsValue,R=c.openMenuOnFocus,A=n.state,I=A.focusedOption,M=A.focusedValue,B=A.selectValue;if(!h&&!(typeof C=="function"&&(C(l),l.defaultPrevented))){switch(n.blockOptionHover=!0,l.key){case"ArrowLeft":if(!d||x)return;n.focusValue("previous");break;case"ArrowRight":if(!d||x)return;n.focusValue("next");break;case"Delete":case"Backspace":if(x)return;if(M)n.removeValue(M);else{if(!f)return;d?n.popValue():b&&n.clearValue()}break;case"Tab":if(n.isComposing||l.shiftKey||!p||!w||!I||R&&n.isOptionSelected(I,B))return;n.selectOption(I);break;case"Enter":if(l.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:x}),n.onMenuClose()):b&&v&&n.clearValue();break;case" ":if(x)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}l.preventDefault()}},n.state.instancePrefix="react-select-"+(n.props.instanceId||++Qp),n.state.selectValue=jo(a.value),a.menuIsOpen&&n.state.selectValue.length){var o=n.getFocusableOptionsWithIds(),i=n.buildFocusableOptions(),s=i.indexOf(n.state.selectValue[0]);n.state.focusableOptionsWithIds=o,n.state.focusedOption=i[s],n.state.focusedOptionId=Yr(o,i[s])}return n}return fc(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,s=o.menuIsOpen,l=this.state.isFocused;(l&&!i&&n.isDisabled||l&&s&&!n.menuIsOpen)&&this.focusInput(),l&&i&&!n.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!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,s=i.selectValue,l=i.isFocused,c=this.buildFocusableOptions(),d=n==="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(n){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(n){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 n=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),n==="up"?l=c>0?c-1:s.length-1:n==="down"?l=(c+1)%s.length:n==="pageup"?(l=c-o,l<0&&(l=0)):n==="pagedown"?(l=c+o,l>s.length-1&&(l=s.length-1)):n==="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(zr):me(me({},zr),this.props.theme):zr}},{key:"getCommonProps",value:function(){var n=this.clearValue,o=this.cx,i=this.getStyles,s=this.getClassNames,l=this.getValue,c=this.selectOption,d=this.setValue,f=this.props,v=f.isMulti,x=f.isRtl,b=f.options,h=this.hasValue();return{clearValue:n,cx:o,getStyles:i,getClassNames:s,getValue:l,hasValue:h,isMulti:v,isRtl:x,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 xs(this.props,n,o)}},{key:"isOptionSelected",value:function(n,o){return Is(this.props,n,o)}},{key:"filterOption",value:function(n,o){return Ss(this.props,n,o)}},{key:"formatOptionLabel",value:function(n,o){if(typeof this.props.formatOptionLabel=="function"){var i=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(n,{context:o,inputValue:i,selectValue:s})}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,s=n.inputId,l=n.inputValue,c=n.tabIndex,d=n.form,f=n.menuIsOpen,v=n.required,x=this.getComponents(),b=x.Input,h=this.state,p=h.inputIsHidden,C=h.ariaSelection,w=this.commonProps,R=s||this.getElementId("input"),A=me(me(me({"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":v,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!i&&{"aria-readonly":!0}),this.hasValue()?(C==null?void 0:C.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return i?S.createElement(b,he({},w,{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(xp,he({id:R,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:vr,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,s=o.MultiValueContainer,l=o.MultiValueLabel,c=o.MultiValueRemove,d=o.SingleValue,f=o.Placeholder,v=this.commonProps,x=this.props,b=x.controlShouldRenderValue,h=x.isDisabled,p=x.isMulti,C=x.inputValue,w=x.placeholder,R=this.state,A=R.selectValue,I=R.focusedValue,M=R.isFocused;if(!this.hasValue()||!b)return C?null:S.createElement(f,he({},v,{key:"placeholder",isDisabled:h,isFocused:M,innerProps:{id:this.getElementId("placeholder")}}),w);if(p)return A.map(function(V,q){var J=V===I,ae="".concat(n.getOptionLabel(V),"-").concat(n.getOptionValue(V));return S.createElement(i,he({},v,{components:{Container:s,Label:l,Remove:c},isFocused:J,isDisabled:h,key:ae,index:q,removeProps:{onClick:function(){return n.removeValue(V)},onTouchEnd:function(){return n.removeValue(V)},onMouseDown:function(pe){pe.preventDefault()}},data:V}),n.formatOptionLabel(V,"value"))});if(C)return null;var B=A[0];return S.createElement(d,he({},v,{data:B,isDisabled:h}),this.formatOptionLabel(B,"value"))}},{key:"renderClearIndicator",value:function(){var n=this.getComponents(),o=n.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,he({},i,{innerProps:f,isFocused:d}))}},{key:"renderLoadingIndicator",value:function(){var n=this.getComponents(),o=n.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,he({},i,{innerProps:f,isDisabled:l,isFocused:d}))}},{key:"renderIndicatorSeparator",value:function(){var n=this.getComponents(),o=n.DropdownIndicator,i=n.IndicatorSeparator;if(!o||!i)return null;var s=this.commonProps,l=this.props.isDisabled,c=this.state.isFocused;return S.createElement(i,he({},s,{isDisabled:l,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var n=this.getComponents(),o=n.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,he({},i,{innerProps:c,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var n=this,o=this.getComponents(),i=o.Group,s=o.GroupHeading,l=o.Menu,c=o.MenuList,d=o.MenuPortal,f=o.LoadingMessage,v=o.NoOptionsMessage,x=o.Option,b=this.commonProps,h=this.state.focusedOption,p=this.props,C=p.captureMenuScroll,w=p.inputValue,R=p.isLoading,A=p.loadingMessage,I=p.minMenuHeight,M=p.maxMenuHeight,B=p.menuIsOpen,V=p.menuPlacement,q=p.menuPosition,J=p.menuPortalTarget,ae=p.menuShouldBlockScroll,H=p.menuShouldScrollIntoView,pe=p.noOptionsMessage,P=p.onMenuScrollToTop,O=p.onMenuScrollToBottom;if(!B)return null;var T=function(U,F){var m=U.type,ce=U.data,de=U.isDisabled,oe=U.isSelected,we=U.label,Ce=U.value,Ee=h===ce,z=de?void 0:function(){return n.onOptionHover(ce)},Me=de?void 0:function(){return n.selectOption(ce)},Ge="".concat(n.getElementId("option"),"-").concat(F),G={id:Ge,onClick:Me,onMouseMove:z,onMouseOver:z,tabIndex:-1,role:"option","aria-selected":n.isAppleDevice?void 0:oe};return S.createElement(x,he({},b,{innerProps:G,data:ce,isDisabled:de,isSelected:oe,key:Ge,label:we,type:m,value:Ce,isFocused:Ee,innerRef:Ee?n.getFocusedOptionRef:void 0}),n.formatOptionLabel(U.data,"menu"))},Y;if(this.hasOptions())Y=this.getCategorizedOptions().map(function(W){if(W.type==="group"){var U=W.data,F=W.options,m=W.index,ce="".concat(n.getElementId("group"),"-").concat(m),de="".concat(ce,"-heading");return S.createElement(i,he({},b,{key:ce,data:U,options:F,Heading:s,headingProps:{id:de,data:W.data},label:n.formatGroupLabel(W.data)}),W.options.map(function(oe){return T(oe,"".concat(m,"-").concat(oe.index))}))}else if(W.type==="option")return T(W,"".concat(W.index))});else if(R){var ge=A({inputValue:w});if(ge===null)return null;Y=S.createElement(f,b,ge)}else{var Ne=pe({inputValue:w});if(Ne===null)return null;Y=S.createElement(v,b,Ne)}var _={minMenuHeight:I,maxMenuHeight:M,menuPlacement:V,menuPosition:q,menuShouldScrollIntoView:H},L=S.createElement(Qd,he({},b,_),function(W){var U=W.ref,F=W.placerProps,m=F.placement,ce=F.maxHeight;return S.createElement(l,he({},b,_,{innerRef:U,innerProps:{onMouseDown:n.onMenuMouseDown,onMouseMove:n.onMenuMouseMove},isLoading:R,placement:m}),S.createElement(Np,{captureEnabled:C,onTopArrive:P,onBottomArrive:O,lockEnabled:ae},function(de){return S.createElement(c,he({},b,{innerRef:function(we){n.getMenuListRef(we),de(we)},innerProps:{role:"listbox","aria-multiselectable":b.isMulti,id:n.getElementId("listbox")},isLoading:R,maxHeight:ce,focusedOption:h}),Y)}))});return J||q==="fixed"?S.createElement(d,he({},b,{appendTo:J,controlElement:this.controlRef,menuPlacement:V,menuPosition:q}),L):L}},{key:"renderFormField",value:function(){var n=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(Tp,{name:c,onFocus:this.onValueInputFocus});if(!(!c||s))if(l)if(i){var v=f.map(function(h){return n.getOptionValue(h)}).join(i);return S.createElement("input",{name:c,type:"hidden",value:v})}else{var x=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,x)}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,s=o.focusedOption,l=o.focusedValue,c=o.isFocused,d=o.selectValue,f=this.getFocusableOptions();return S.createElement(mp,he({},n,{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 n=this.getComponents(),o=n.Control,i=n.IndicatorsContainer,s=n.SelectContainer,l=n.ValueContainer,c=this.props,d=c.className,f=c.id,v=c.isDisabled,x=c.menuIsOpen,b=this.state.isFocused,h=this.commonProps=this.getCommonProps();return S.createElement(s,he({},h,{className:d,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:v,isFocused:b}),this.renderLiveRegion(),S.createElement(o,he({},h,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:v,isFocused:b,menuIsOpen:x}),S.createElement(l,he({},h,{isDisabled:v}),this.renderPlaceholderOrValue(),this.renderInput()),S.createElement(i,he({},h,{isDisabled:v}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(n,o){var i=o.prevProps,s=o.clearFocusValueOnUpdate,l=o.inputIsHiddenAfterUpdate,c=o.ariaSelection,d=o.isFocused,f=o.prevWasFocused,v=o.instancePrefix,x=n.options,b=n.value,h=n.menuIsOpen,p=n.inputValue,C=n.isMulti,w=jo(b),R={};if(i&&(b!==i.value||x!==i.options||h!==i.menuIsOpen||p!==i.inputValue)){var A=h?Jp(n,w):[],I=h?Jo(dr(n,w),"".concat(v,"-option")):[],M=s?Up(o,w):null,B=$p(o,A),V=Yr(I,B);R={selectValue:w,focusedOption:B,focusedOptionId:V,focusableOptionsWithIds:I,focusedValue:M,clearFocusValueOnUpdate:!1}}var q=l!=null&&n!==i?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},J=c,ae=d&&f;return d&&!ae&&(J={value:or(C,w,w[0]||null),options:w,action:"initial-input-focus"},ae=!f),(c==null?void 0:c.action)==="initial-input-focus"&&(J=null),me(me(me({},R),q),{},{prevProps:n,ariaSelection:J,prevWasFocused:ae})}}]),r}(E.Component);ws.defaultProps=Yp;var Kp=E.forwardRef(function(e,t){var r=cc(e);return S.createElement(ws,he({ref:t},r))}),qp=Kp;const _n=({value:e,options:t,placeholder:r,onChange:a,className:n="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(gs.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(qp,{value:e,options:t,placeholder:r,onChange:a,className:n,styles:l,isSearchable:i,components:{Option:c}})})},Dt=S.forwardRef(({className:e,type:t,required:r,...a},n)=>(r&&(a.placeholder=a.placeholder+"*"),u.jsx("input",{type:t,className:Te("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})));Dt.displayName="Input";function eg(e,t=[]){let r=[];function a(o,i){const s=S.createContext(i),l=r.length;r=[...r,i];const c=f=>{var C;const{scope:v,children:x,...b}=f,h=((C=v==null?void 0:v[e])==null?void 0:C[l])||s,p=S.useMemo(()=>b,Object.values(b));return u.jsx(h.Provider,{value:p,children:x})};c.displayName=o+"Provider";function d(f,v){var h;const x=((h=v==null?void 0:v[e])==null?void 0:h[l])||s,b=S.useContext(x);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(s){const l=(s==null?void 0:s[e])||o;return S.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return n.scopeName=e,[a,tg(n,...t)]}function tg(...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((s,{useScope:l,scopeName:c})=>{const f=l(o)[`__scope${c}`];return{...s,...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 Es(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 ng({prop:e,defaultProp:t,onChange:r=()=>{}}){const[a,n]=rg({defaultProp:t,onChange:r}),o=e!==void 0,i=o?e:a,s=Es(r),l=S.useCallback(c=>{if(o){const f=typeof c=="function"?c(e):c;f!==e&&s(f)}else n(c)},[o,e,n,s]);return[i,l]}function rg({defaultProp:e,onChange:t}){const r=S.useState(e),[a]=r,n=S.useRef(a),o=Es(t);return S.useEffect(()=>{n.current!==a&&(o(a),n.current=a)},[a,n,o]),r}function ag(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 da=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{};function og(e){const[t,r]=S.useState(void 0);return da(()=>{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,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;r({width:i,height:s})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else r(void 0)},[e]),t}function ig(e,t){return S.useReducer((r,a)=>t[r][a]??r,e)}var Rs=e=>{const{present:t,children:r}=e,a=sg(t),n=typeof r=="function"?r({present:a.isPresent}):S.Children.only(r),o=Ni(a.ref,lg(n));return typeof r=="function"||a.isPresent?S.cloneElement(n,{ref:o}):null};Rs.displayName="Presence";function sg(e){const[t,r]=S.useState(),a=S.useRef({}),n=S.useRef(e),o=S.useRef("none"),i=e?"mounted":"unmounted",[s,l]=ig(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const c=ir(a.current);o.current=s==="mounted"?c:"none"},[s]),da(()=>{const c=a.current,d=n.current;if(d!==e){const v=o.current,x=ir(c);e?l("MOUNT"):x==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&v!==x?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,l]),da(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,f=x=>{const h=ir(a.current).includes(x.animationName);if(x.target===t&&h&&(l("ANIMATION_END"),!n.current)){const p=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=p)})}},v=x=>{x.target===t&&(o.current=ir(a.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",v),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)),r(c)},[])}}function ir(e){return(e==null?void 0:e.animationName)||"none"}function lg(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 Ba="Checkbox",[ug]=eg(Ba),[cg,dg]=ug(Ba),Ns=S.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:a,checked:n,defaultChecked:o,required:i,disabled:s,value:l="on",onCheckedChange:c,form:d,...f}=e,[v,x]=S.useState(null),b=Ni(t,A=>x(A)),h=S.useRef(!1),p=v?d||!!v.closest("form"):!0,[C=!1,w]=ng({prop:n,defaultProp:o,onChange:c}),R=S.useRef(C);return S.useEffect(()=>{const A=v==null?void 0:v.form;if(A){const I=()=>w(R.current);return A.addEventListener("reset",I),()=>A.removeEventListener("reset",I)}},[v,w]),u.jsxs(cg,{scope:r,state:C,disabled:s,children:[u.jsx(Ia.button,{type:"button",role:"checkbox","aria-checked":nn(C)?"mixed":C,"aria-required":i,"data-state":Os(C),"data-disabled":s?"":void 0,disabled:s,value:l,...f,ref:b,onKeyDown:$o(e.onKeyDown,A=>{A.key==="Enter"&&A.preventDefault()}),onClick:$o(e.onClick,A=>{w(I=>nn(I)?!0:!I),p&&(h.current=A.isPropagationStopped(),h.current||A.stopPropagation())})}),p&&u.jsx(fg,{control:v,bubbles:!h.current,name:a,value:l,checked:C,required:i,disabled:s,form:d,style:{transform:"translateX(-100%)"},defaultChecked:nn(o)?!1:o})]})});Ns.displayName=Ba;var Gs="CheckboxIndicator",Ps=S.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:a,...n}=e,o=dg(Gs,r);return u.jsx(Rs,{present:a||nn(o.state)||o.state===!0,children:u.jsx(Ia.span,{"data-state":Os(o.state),"data-disabled":o.disabled?"":void 0,...n,ref:t,style:{pointerEvents:"none",...e.style}})})});Ps.displayName=Gs;var fg=e=>{const{control:t,checked:r,bubbles:a=!0,defaultChecked:n,...o}=e,i=S.useRef(null),s=ag(r),l=og(t);S.useEffect(()=>{const d=i.current,f=window.HTMLInputElement.prototype,x=Object.getOwnPropertyDescriptor(f,"checked").set;if(s!==r&&x){const b=new Event("click",{bubbles:a});d.indeterminate=nn(r),x.call(d,nn(r)?!1:r),d.dispatchEvent(b)}},[s,r,a]);const c=S.useRef(nn(r)?!1:r);return u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n??c.current,...o,tabIndex:-1,ref:i,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function nn(e){return e==="indeterminate"}function Os(e){return nn(e)?"indeterminate":e?"checked":"unchecked"}var Ts=Ns,pg=Ps;/**
|
|
49
|
+
`]))),Ef=function(t,r){var a=t.isFocused,n=t.size,o=t.theme,i=o.colors,s=o.spacing.baseUnit;return me({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:s*2})},Wr=function(t){var r=t.delay,a=t.offset;return fe("span",{css:Pa({animation:"".concat(wf," 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRz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lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},Rf=function(t){var r=t.innerProps,a=t.isRtl,n=t.size,o=n===void 0?4:n,i=Ht(t,bf);return fe("div",he({},qe(me(me({},i),{},{innerProps:r,isRtl:a,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),fe(Wr,{delay:0,offset:a}),fe(Wr,{delay:160,offset:!0}),fe(Wr,{delay:320,offset:!a}))},Nf=function(t,r){var a=t.isDisabled,n=t.isFocused,o=t.theme,i=o.colors,s=o.borderRadius,l=o.spacing;return me({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.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:s,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:n?i.primary:i.neutral30}})},Gf=function(t){var r=t.children,a=t.isDisabled,n=t.isFocused,o=t.innerRef,i=t.innerProps,s=t.menuIsOpen;return fe("div",he({ref:o},qe(t,"control",{control:!0,"control--is-disabled":a,"control--is-focused":n,"control--menu-is-open":s}),i,{"aria-disabled":a||void 0}),r)},Pf=Gf,Of=["data"],Tf=function(t,r){var a=t.theme.spacing;return r?{}:{paddingBottom:a.baseUnit*2,paddingTop:a.baseUnit*2}},jf=function(t){var r=t.children,a=t.cx,n=t.getStyles,o=t.getClassNames,i=t.Heading,s=t.headingProps,l=t.innerProps,c=t.label,d=t.theme,f=t.selectProps;return fe("div",he({},qe(t,"group",{group:!0}),l),fe(i,he({},s,{selectProps:f,theme:d,getStyles:n,getClassNames:o,cx:a}),c),fe("div",null,r))},Mf=function(t,r){var a=t.theme,n=a.colors,o=a.spacing;return me({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"})},Ff=function(t){var r=ns(t);r.data;var a=Ht(r,Of);return fe("div",he({},qe(t,"groupHeading",{"group-heading":!0}),a))},kf=jf,Bf=["innerRef","isDisabled","isHidden","inputClassName"],Vf=function(t,r){var a=t.isDisabled,n=t.value,o=t.theme,i=o.spacing,s=o.colors;return me(me({visibility:a?"hidden":"visible",transform:n?"translateZ(0)":""},_f),r?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:s.neutral80})},ds={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},_f={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":me({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ds)},Df=function(t){return me({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},ds)},Wf=function(t){var r=t.cx,a=t.value,n=ns(t),o=n.innerRef,i=n.isDisabled,s=n.isHidden,l=n.inputClassName,c=Ht(n,Bf);return fe("div",he({},qe(t,"input",{"input-container":!0}),{"data-value":a||""}),fe("input",he({className:r({input:!0},l),ref:o,style:Df(s),disabled:i},c)))},Lf=Wf,Xf=function(t,r){var a=t.theme,n=a.spacing,o=a.borderRadius,i=a.colors;return me({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:n.baseUnit/2})},Hf=function(t,r){var a=t.theme,n=a.borderRadius,o=a.colors,i=t.cropWithEllipsis;return me({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})},Zf=function(t,r){var a=t.theme,n=a.spacing,o=a.borderRadius,i=a.colors,s=t.isFocused;return me({alignItems:"center",display:"flex"},r?{}:{borderRadius:o/2,backgroundColor:s?i.dangerLight:void 0,paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},fs=function(t){var r=t.children,a=t.innerProps;return fe("div",a,r)},zf=fs,Yf=fs;function Jf(e){var t=e.children,r=e.innerProps;return fe("div",he({role:"button"},r),t||fe(Ma,{size:14}))}var Uf=function(t){var r=t.children,a=t.components,n=t.data,o=t.innerProps,i=t.isDisabled,s=t.removeProps,l=t.selectProps,c=a.Container,d=a.Label,f=a.Remove;return fe(c,{data:n,innerProps:me(me({},qe(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:l},fe(d,{data:n,innerProps:me({},qe(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},r),fe(f,{data:n,innerProps:me(me({},qe(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},s),selectProps:l}))},$f=Uf,Qf=function(t,r){var a=t.isDisabled,n=t.isFocused,o=t.isSelected,i=t.theme,s=i.spacing,l=i.colors;return me({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:o?l.primary:n?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}})},Kf=function(t){var r=t.children,a=t.isDisabled,n=t.isFocused,o=t.isSelected,i=t.innerRef,s=t.innerProps;return fe("div",he({},qe(t,"option",{option:!0,"option--is-disabled":a,"option--is-focused":n,"option--is-selected":o}),{ref:i,"aria-disabled":a},s),r)},qf=Kf,ep=function(t,r){var a=t.theme,n=a.spacing,o=a.colors;return me({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:o.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2})},tp=function(t){var r=t.children,a=t.innerProps;return fe("div",he({},qe(t,"placeholder",{placeholder:!0}),a),r)},np=tp,rp=function(t,r){var a=t.isDisabled,n=t.theme,o=n.spacing,i=n.colors;return me({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})},ap=function(t){var r=t.children,a=t.isDisabled,n=t.innerProps;return fe("div",he({},qe(t,"singleValue",{"single-value":!0,"single-value--is-disabled":a}),n),r)},op=ap,ps={ClearIndicator:If,Control:Pf,DropdownIndicator:Cf,DownChevron:us,CrossIcon:Ma,Group:kf,GroupHeading:Ff,IndicatorsContainer:gf,IndicatorSeparator:Af,Input:Lf,LoadingIndicator:Rf,Menu:qd,MenuList:tf,MenuPortal:lf,LoadingMessage:of,NoOptionsMessage:af,MultiValue:$f,MultiValueContainer:zf,MultiValueLabel:Yf,MultiValueRemove:Jf,Option:qf,Placeholder:np,SelectContainer:cf,SingleValue:op,ValueContainer:ff},ip=function(t){return me(me({},ps),t.components)},ko=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function sp(e,t){return!!(e===t||ko(e)&&ko(t))}function lp(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!sp(e[r],t[r]))return!1;return!0}function up(e,t){t===void 0&&(t=lp);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 cp(){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 dp=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:cp},fp=function(t){return fe("span",he({css:dp},t))},Bo=fp,pp={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,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(r==="value"&&s)return"value ".concat(i," focused, ").concat(f(s,a),".");if(r==="menu"&&d){var v=l?" disabled":"",x="".concat(c?" selected":"").concat(v);return"".concat(i).concat(x,", ").concat(f(n,a),".")}return""},onFilter:function(t){var r=t.inputValue,a=t.resultsMessage;return"".concat(a).concat(r?" for search term "+r:"",".")}},gp=function(t){var r=t.ariaSelection,a=t.focusedOption,n=t.focusedValue,o=t.focusableOptions,i=t.isFocused,s=t.selectValue,l=t.selectProps,c=t.id,d=t.isAppleDevice,f=l.ariaLiveMessages,v=l.getOptionLabel,x=l.inputValue,b=l.isMulti,h=l.isOptionDisabled,p=l.isSearchable,C=l.menuIsOpen,w=l.options,R=l.screenReaderStatus,A=l.tabSelectsValue,I=l.isLoading,M=l["aria-label"],B=l["aria-live"],V=E.useMemo(function(){return me(me({},pp),f||{})},[f]),q=E.useMemo(function(){var O="";if(r&&V.onChange){var T=r.option,Y=r.options,ge=r.removedValue,Ne=r.removedValues,_=r.value,L=function(oe){return Array.isArray(oe)?null:oe},W=ge||T||L(_),U=W?v(W):"",F=Y||Ne||void 0,m=F?F.map(v):[],ce=me({isDisabled:W&&h(W,s),label:U,labels:m},r);O=V.onChange(ce)}return O},[r,V,h,s,v]),J=E.useMemo(function(){var O="",T=a||n,Y=!!(a&&s&&s.includes(a));if(T&&V.onFocus){var ge={focused:T,label:v(T),isDisabled:h(T,s),isSelected:Y,options:o,context:T===a?"menu":"value",selectValue:s,isAppleDevice:d};O=V.onFocus(ge)}return O},[a,n,v,h,V,o,s,d]),ae=E.useMemo(function(){var O="";if(C&&w.length&&!I&&V.onFilter){var T=R({count:o.length});O=V.onFilter({inputValue:x,resultsMessage:T})}return O},[o,x,C,V,w,R,I]),H=(r==null?void 0:r.action)==="initial-input-focus",pe=E.useMemo(function(){var O="";if(V.guidance){var T=n?"value":C?"menu":"input";O=V.guidance({"aria-label":M,context:T,isDisabled:a&&h(a,s),isMulti:b,isSearchable:p,tabSelectsValue:A,isInitialFocus:H})}return O},[M,a,n,b,h,p,C,V,s,A,H]),P=fe(E.Fragment,null,fe("span",{id:"aria-selection"},q),fe("span",{id:"aria-focused"},J),fe("span",{id:"aria-results"},ae),fe("span",{id:"aria-guidance"},pe));return fe(E.Fragment,null,fe(Bo,{id:c},H&&P),fe(Bo,{"aria-live":B,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!H&&P))},mp=gp,ua=[{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źẑżžẓẕƶȥɀⱬꝣ"}],bp=new RegExp("["+ua.map(function(e){return e.letters}).join("")+"]","g"),gs={};for(var Lr=0;Lr<ua.length;Lr++)for(var Xr=ua[Lr],Hr=0;Hr<Xr.letters.length;Hr++)gs[Xr.letters[Hr]]=Xr.base;var ms=function(t){return t.replace(bp,function(r){return gs[r]})},hp=up(ms),Vo=function(t){return t.replace(/^\s+|\s+$/g,"")},vp=function(t){return"".concat(t.label," ").concat(t.value)},yp=function(t){return function(r,a){if(r.data.__isNew__)return!0;var n=me({ignoreCase:!0,ignoreAccents:!0,stringify:vp,trim:!0,matchFrom:"any"},t),o=n.ignoreCase,i=n.ignoreAccents,s=n.stringify,l=n.trim,c=n.matchFrom,d=l?Vo(a):a,f=l?Vo(s(r)):s(r);return o&&(d=d.toLowerCase(),f=f.toLowerCase()),i&&(d=hp(d),f=ms(f)),c==="start"?f.substr(0,d.length)===d:f.indexOf(d)>-1}},Cp=["innerRef"];function xp(e){var t=e.innerRef,r=Ht(e,Cp),a=Zd(r,"onExited","in","enter","exit","appear");return fe("input",he({ref:t},a,{css:Pa({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+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCB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pdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var Ip=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function Sp(e){var t=e.isEnabled,r=e.onBottomArrive,a=e.onBottomLeave,n=e.onTopArrive,o=e.onTopLeave,i=E.useRef(!1),s=E.useRef(!1),l=E.useRef(0),c=E.useRef(null),d=E.useCallback(function(p,C){if(c.current!==null){var w=c.current,R=w.scrollTop,A=w.scrollHeight,I=w.clientHeight,M=c.current,B=C>0,V=A-I-R,q=!1;V>C&&i.current&&(a&&a(p),i.current=!1),B&&s.current&&(o&&o(p),s.current=!1),B&&C>V?(r&&!i.current&&r(p),M.scrollTop=A,q=!0,i.current=!0):!B&&-C>R&&(n&&!s.current&&n(p),M.scrollTop=0,q=!0,s.current=!0),q&&Ip(p)}},[r,a,n,o]),f=E.useCallback(function(p){d(p,p.deltaY)},[d]),v=E.useCallback(function(p){l.current=p.changedTouches[0].clientY},[]),x=E.useCallback(function(p){var C=l.current-p.changedTouches[0].clientY;d(p,C)},[d]),b=E.useCallback(function(p){if(p){var C=Ld?{passive:!1}:!1;p.addEventListener("wheel",f,C),p.addEventListener("touchstart",v,C),p.addEventListener("touchmove",x,C)}},[x,v,f]),h=E.useCallback(function(p){p&&(p.removeEventListener("wheel",f,!1),p.removeEventListener("touchstart",v,!1),p.removeEventListener("touchmove",x,!1))},[x,v,f]);return E.useEffect(function(){if(t){var p=c.current;return b(p),function(){h(p)}}},[t,b,h]),function(p){c.current=p}}var _o=["boxSizing","height","overflow","paddingRight","position"],Do={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Wo(e){e.cancelable&&e.preventDefault()}function Lo(e){e.stopPropagation()}function Xo(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function Ho(){return"ontouchstart"in window||navigator.maxTouchPoints}var Zo=!!(typeof window<"u"&&window.document&&window.document.createElement),jn=0,yn={capture:!1,passive:!1};function Ap(e){var t=e.isEnabled,r=e.accountForScrollbars,a=r===void 0?!0:r,n=E.useRef({}),o=E.useRef(null),i=E.useCallback(function(l){if(Zo){var c=document.body,d=c&&c.style;if(a&&_o.forEach(function(b){var h=d&&d[b];n.current[b]=h}),a&&jn<1){var f=parseInt(n.current.paddingRight,10)||0,v=document.body?document.body.clientWidth:0,x=window.innerWidth-v+f||0;Object.keys(Do).forEach(function(b){var h=Do[b];d&&(d[b]=h)}),d&&(d.paddingRight="".concat(x,"px"))}c&&Ho()&&(c.addEventListener("touchmove",Wo,yn),l&&(l.addEventListener("touchstart",Xo,yn),l.addEventListener("touchmove",Lo,yn))),jn+=1}},[a]),s=E.useCallback(function(l){if(Zo){var c=document.body,d=c&&c.style;jn=Math.max(jn-1,0),a&&jn<1&&_o.forEach(function(f){var v=n.current[f];d&&(d[f]=v)}),c&&Ho()&&(c.removeEventListener("touchmove",Wo,yn),l&&(l.removeEventListener("touchstart",Xo,yn),l.removeEventListener("touchmove",Lo,yn)))}},[a]);return E.useEffect(function(){if(t){var l=o.current;return i(l),function(){s(l)}}},[t,i,s]),function(l){o.current=l}}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=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},Rp=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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUi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XJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:wp};function Np(e){var t=e.children,r=e.lockEnabled,a=e.captureEnabled,n=a===void 0?!0:a,o=e.onBottomArrive,i=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,c=Sp({isEnabled:n,onBottomArrive:o,onBottomLeave:i,onTopArrive:s,onTopLeave:l}),d=Ap({isEnabled:r}),f=function(x){c(x),d(x)};return fe(E.Fragment,null,r&&fe("div",{onClick:Ep,css:Rp}),t(f))}function Gp(){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 Pp=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:Gp},Op=function(t){var r=t.name,a=t.onFocus;return fe("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:a,css:Pp,value:"",onChange:function(){}})},Tp=Op;function Fa(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 jp(){return Fa(/^iPhone/i)}function bs(){return Fa(/^Mac/i)}function Mp(){return Fa(/^iPad/i)||bs()&&navigator.maxTouchPoints>1}function Fp(){return jp()||Mp()}function kp(){return bs()||Fp()}var Bp=function(t){return t.label},Vp=function(t){return t.label},_p=function(t){return t.value},Dp=function(t){return!!t.isDisabled},Wp={clearIndicator:xf,container:uf,control:Nf,dropdownIndicator:yf,group:Tf,groupHeading:Mf,indicatorsContainer:pf,indicatorSeparator:Sf,input:Vf,loadingIndicator:Ef,loadingMessage:rf,menu:$d,menuList:ef,menuPortal:sf,multiValue:Xf,multiValueLabel:Hf,multiValueRemove:Zf,noOptionsMessage:nf,option:Qf,placeholder:ep,singleValue:rp,valueContainer:df},Lp={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%)"},Xp=4,hs=4,Hp=38,Zp=hs*2,zp={baseUnit:hs,controlHeight:Hp,menuGutter:Zp},Zr={borderRadius:Xp,colors:Lp,spacing:zp},Yp={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Mo(),captureMenuScroll:!Mo(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:yp(),formatGroupLabel:Bp,getOptionLabel:Vp,getOptionValue:_p,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 r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function zo(e,t,r,a){var n=Cs(e,t,r),o=xs(e,t,r),i=ys(e,t),s=Cr(e,t);return{type:"option",data:t,isDisabled:n,isSelected:o,label:i,value:s,index:a}}function dr(e,t){return e.options.map(function(r,a){if("options"in r){var n=r.options.map(function(i,s){return zo(e,i,t,s)}).filter(function(i){return Jo(e,i)});return n.length>0?{type:"group",data:r,options:n,index:a}:void 0}var o=zo(e,r,t,a);return Jo(e,o)?o:void 0}).filter(Xd)}function vs(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,wa(r.options.map(function(a){return a.data}))):t.push(r.data),t},[])}function Yo(e,t){return e.reduce(function(r,a){return a.type==="group"?r.push.apply(r,wa(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 Jp(e,t){return vs(dr(e,t))}function Jo(e,t){var r=e.inputValue,a=r===void 0?"":r,n=t.data,o=t.isSelected,i=t.label,s=t.value;return(!Ss(e)||!o)&&Is(e,{label:i,value:s,data:n},a)}function Up(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 $p(e,t){var r=e.focusedOption;return r&&t.indexOf(r)>-1?r:t[0]}var zr=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},ys=function(t,r){return t.getOptionLabel(r)},Cr=function(t,r){return t.getOptionValue(r)};function Cs(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function xs(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var a=Cr(e,t);return r.some(function(n){return Cr(e,n)===a})}function Is(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var Ss=function(t){var r=t.hideSelectedOptions,a=t.isMulti;return r===void 0?a:r},Qp=1,As=function(e){pc(r,e);var t=bc(r);function r(a){var n;if(dc(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=kp(),n.controlRef=null,n.getControlRef=function(l){n.controlRef=l},n.focusedOptionRef=null,n.getFocusedOptionRef=function(l){n.focusedOptionRef=l},n.menuListRef=null,n.getMenuListRef=function(l){n.menuListRef=l},n.inputRef=null,n.getInputRef=function(l){n.inputRef=l},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(l,c){var d=n.props,f=d.onChange,v=d.name;c.name=v,n.ariaOnChange(l,c),f(l,c)},n.setValue=function(l,c,d){var f=n.props,v=f.closeMenuOnSelect,x=f.isMulti,b=f.inputValue;n.onInputChange("",{action:"set-value",prevInputValue:b}),v&&(n.setState({inputIsHiddenAfterUpdate:!x}),n.onMenuClose()),n.setState({clearFocusValueOnUpdate:!0}),n.onChange(l,{action:c,option:d})},n.selectOption=function(l){var c=n.props,d=c.blurInputOnSelect,f=c.isMulti,v=c.name,x=n.state.selectValue,b=f&&n.isOptionSelected(l,x),h=n.isOptionDisabled(l,x);if(b){var p=n.getOptionValue(l);n.setValue(x.filter(function(C){return n.getOptionValue(C)!==p}),"deselect-option",l)}else if(!h)f?n.setValue([].concat(wa(x),[l]),"select-option",l):n.setValue(l,"select-option");else{n.ariaOnChange(l,{action:"select-option",option:l,name:v});return}d&&n.blurInput()},n.removeValue=function(l){var c=n.props.isMulti,d=n.state.selectValue,f=n.getOptionValue(l),v=d.filter(function(b){return n.getOptionValue(b)!==f}),x=or(c,v,v[0]||null);n.onChange(x,{action:"remove-value",removedValue:l}),n.focusInput()},n.clearValue=function(){var l=n.state.selectValue;n.onChange(or(n.props.isMulti,[],null),{action:"clear",removedValues:l})},n.popValue=function(){var l=n.props.isMulti,c=n.state.selectValue,d=c[c.length-1],f=c.slice(0,c.length-1),v=or(l,f,f[0]||null);d&&n.onChange(v,{action:"pop-value",removedValue:d})},n.getFocusedOptionId=function(l){return zr(n.state.focusableOptionsWithIds,l)},n.getFocusableOptionsWithIds=function(){return Yo(dr(n.props,n.state.selectValue),n.getElementId("option"))},n.getValue=function(){return n.state.selectValue},n.cx=function(){for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];return Fd.apply(void 0,[n.props.classNamePrefix].concat(c))},n.getOptionLabel=function(l){return ys(n.props,l)},n.getOptionValue=function(l){return Cr(n.props,l)},n.getStyles=function(l,c){var d=n.props.unstyled,f=Wp[l](c,d);f.boxSizing="border-box";var v=n.props.styles[l];return v?v(f,c):f},n.getClassNames=function(l,c){var d,f;return(d=(f=n.props.classNames)[l])===null||d===void 0?void 0:d.call(f,c)},n.getElementId=function(l){return"".concat(n.state.instancePrefix,"-").concat(l)},n.getComponents=function(){return ip(n.props)},n.buildCategorizedOptions=function(){return dr(n.props,n.state.selectValue)},n.getCategorizedOptions=function(){return n.props.menuIsOpen?n.buildCategorizedOptions():[]},n.buildFocusableOptions=function(){return vs(n.buildCategorizedOptions())},n.getFocusableOptions=function(){return n.props.menuIsOpen?n.buildFocusableOptions():[]},n.ariaOnChange=function(l,c){n.setState({ariaSelection:me({value:l},c)})},n.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(l){n.blockOptionHover=!1},n.onControlMouseDown=function(l){if(!l.defaultPrevented){var c=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&n.onMenuClose():c&&n.openMenu("first"):(c&&(n.openAfterFocus=!0),n.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},n.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.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"),l.preventDefault()}},n.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(n.clearValue(),l.preventDefault(),n.openAfterFocus=!1,l.type==="touchend"?n.focusInput():setTimeout(function(){return n.focusInput()}))},n.onScroll=function(l){typeof n.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&Nr(l.target)&&n.props.onMenuClose():typeof n.props.closeMenuOnScroll=="function"&&n.props.closeMenuOnScroll(l)&&n.props.onMenuClose()},n.onCompositionStart=function(){n.isComposing=!0},n.onCompositionEnd=function(){n.isComposing=!1},n.onTouchStart=function(l){var c=l.touches,d=c&&c.item(0);d&&(n.initialTouchX=d.clientX,n.initialTouchY=d.clientY,n.userIsDragging=!1)},n.onTouchMove=function(l){var c=l.touches,d=c&&c.item(0);if(d){var f=Math.abs(d.clientX-n.initialTouchX),v=Math.abs(d.clientY-n.initialTouchY),x=5;n.userIsDragging=f>x||v>x}},n.onTouchEnd=function(l){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(l.target)&&n.menuListRef&&!n.menuListRef.contains(l.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(l){n.userIsDragging||n.onControlMouseDown(l)},n.onClearIndicatorTouchEnd=function(l){n.userIsDragging||n.onClearIndicatorMouseDown(l)},n.onDropdownIndicatorTouchEnd=function(l){n.userIsDragging||n.onDropdownIndicatorMouseDown(l)},n.handleInputChange=function(l){var c=n.props.inputValue,d=l.currentTarget.value;n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange(d,{action:"input-change",prevInputValue:c}),n.props.menuIsOpen||n.onMenuOpen()},n.onInputFocus=function(l){n.props.onFocus&&n.props.onFocus(l),n.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(l){var c=n.props.inputValue;if(n.menuListRef&&n.menuListRef.contains(document.activeElement)){n.inputRef.focus();return}n.props.onBlur&&n.props.onBlur(l),n.onInputChange("",{action:"input-blur",prevInputValue:c}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1})},n.onOptionHover=function(l){if(!(n.blockOptionHover||n.state.focusedOption===l)){var c=n.getFocusableOptions(),d=c.indexOf(l);n.setState({focusedOption:l,focusedOptionId:d>-1?n.getFocusedOptionId(l):null})}},n.shouldHideSelectedOptions=function(){return Ss(n.props)},n.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),n.focus()},n.onKeyDown=function(l){var c=n.props,d=c.isMulti,f=c.backspaceRemovesValue,v=c.escapeClearsValue,x=c.inputValue,b=c.isClearable,h=c.isDisabled,p=c.menuIsOpen,C=c.onKeyDown,w=c.tabSelectsValue,R=c.openMenuOnFocus,A=n.state,I=A.focusedOption,M=A.focusedValue,B=A.selectValue;if(!h&&!(typeof C=="function"&&(C(l),l.defaultPrevented))){switch(n.blockOptionHover=!0,l.key){case"ArrowLeft":if(!d||x)return;n.focusValue("previous");break;case"ArrowRight":if(!d||x)return;n.focusValue("next");break;case"Delete":case"Backspace":if(x)return;if(M)n.removeValue(M);else{if(!f)return;d?n.popValue():b&&n.clearValue()}break;case"Tab":if(n.isComposing||l.shiftKey||!p||!w||!I||R&&n.isOptionSelected(I,B))return;n.selectOption(I);break;case"Enter":if(l.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:x}),n.onMenuClose()):b&&v&&n.clearValue();break;case" ":if(x)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}l.preventDefault()}},n.state.instancePrefix="react-select-"+(n.props.instanceId||++Qp),n.state.selectValue=To(a.value),a.menuIsOpen&&n.state.selectValue.length){var o=n.getFocusableOptionsWithIds(),i=n.buildFocusableOptions(),s=i.indexOf(n.state.selectValue[0]);n.state.focusableOptionsWithIds=o,n.state.focusedOption=i[s],n.state.focusedOptionId=zr(o,i[s])}return n}return fc(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&&jo(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(n){var o=this.props,i=o.isDisabled,s=o.menuIsOpen,l=this.state.isFocused;(l&&!i&&n.isDisabled||l&&s&&!n.menuIsOpen)&&this.focusInput(),l&&i&&!n.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!i&&n.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(jo(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,s=i.selectValue,l=i.isFocused,c=this.buildFocusableOptions(),d=n==="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(n){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(n){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 n=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),n==="up"?l=c>0?c-1:s.length-1:n==="down"?l=(c+1)%s.length:n==="pageup"?(l=c-o,l<0&&(l=0)):n==="pagedown"?(l=c+o,l>s.length-1&&(l=s.length-1)):n==="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(Zr):me(me({},Zr),this.props.theme):Zr}},{key:"getCommonProps",value:function(){var n=this.clearValue,o=this.cx,i=this.getStyles,s=this.getClassNames,l=this.getValue,c=this.selectOption,d=this.setValue,f=this.props,v=f.isMulti,x=f.isRtl,b=f.options,h=this.hasValue();return{clearValue:n,cx:o,getStyles:i,getClassNames:s,getValue:l,hasValue:h,isMulti:v,isRtl:x,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 Cs(this.props,n,o)}},{key:"isOptionSelected",value:function(n,o){return xs(this.props,n,o)}},{key:"filterOption",value:function(n,o){return Is(this.props,n,o)}},{key:"formatOptionLabel",value:function(n,o){if(typeof this.props.formatOptionLabel=="function"){var i=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(n,{context:o,inputValue:i,selectValue:s})}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,s=n.inputId,l=n.inputValue,c=n.tabIndex,d=n.form,f=n.menuIsOpen,v=n.required,x=this.getComponents(),b=x.Input,h=this.state,p=h.inputIsHidden,C=h.ariaSelection,w=this.commonProps,R=s||this.getElementId("input"),A=me(me(me({"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":v,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!i&&{"aria-readonly":!0}),this.hasValue()?(C==null?void 0:C.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return i?S.createElement(b,he({},w,{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(xp,he({id:R,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:vr,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,s=o.MultiValueContainer,l=o.MultiValueLabel,c=o.MultiValueRemove,d=o.SingleValue,f=o.Placeholder,v=this.commonProps,x=this.props,b=x.controlShouldRenderValue,h=x.isDisabled,p=x.isMulti,C=x.inputValue,w=x.placeholder,R=this.state,A=R.selectValue,I=R.focusedValue,M=R.isFocused;if(!this.hasValue()||!b)return C?null:S.createElement(f,he({},v,{key:"placeholder",isDisabled:h,isFocused:M,innerProps:{id:this.getElementId("placeholder")}}),w);if(p)return A.map(function(V,q){var J=V===I,ae="".concat(n.getOptionLabel(V),"-").concat(n.getOptionValue(V));return S.createElement(i,he({},v,{components:{Container:s,Label:l,Remove:c},isFocused:J,isDisabled:h,key:ae,index:q,removeProps:{onClick:function(){return n.removeValue(V)},onTouchEnd:function(){return n.removeValue(V)},onMouseDown:function(pe){pe.preventDefault()}},data:V}),n.formatOptionLabel(V,"value"))});if(C)return null;var B=A[0];return S.createElement(d,he({},v,{data:B,isDisabled:h}),this.formatOptionLabel(B,"value"))}},{key:"renderClearIndicator",value:function(){var n=this.getComponents(),o=n.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,he({},i,{innerProps:f,isFocused:d}))}},{key:"renderLoadingIndicator",value:function(){var n=this.getComponents(),o=n.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,he({},i,{innerProps:f,isDisabled:l,isFocused:d}))}},{key:"renderIndicatorSeparator",value:function(){var n=this.getComponents(),o=n.DropdownIndicator,i=n.IndicatorSeparator;if(!o||!i)return null;var s=this.commonProps,l=this.props.isDisabled,c=this.state.isFocused;return S.createElement(i,he({},s,{isDisabled:l,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var n=this.getComponents(),o=n.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,he({},i,{innerProps:c,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var n=this,o=this.getComponents(),i=o.Group,s=o.GroupHeading,l=o.Menu,c=o.MenuList,d=o.MenuPortal,f=o.LoadingMessage,v=o.NoOptionsMessage,x=o.Option,b=this.commonProps,h=this.state.focusedOption,p=this.props,C=p.captureMenuScroll,w=p.inputValue,R=p.isLoading,A=p.loadingMessage,I=p.minMenuHeight,M=p.maxMenuHeight,B=p.menuIsOpen,V=p.menuPlacement,q=p.menuPosition,J=p.menuPortalTarget,ae=p.menuShouldBlockScroll,H=p.menuShouldScrollIntoView,pe=p.noOptionsMessage,P=p.onMenuScrollToTop,O=p.onMenuScrollToBottom;if(!B)return null;var T=function(U,F){var m=U.type,ce=U.data,de=U.isDisabled,oe=U.isSelected,we=U.label,Ce=U.value,Ee=h===ce,z=de?void 0:function(){return n.onOptionHover(ce)},Me=de?void 0:function(){return n.selectOption(ce)},Ge="".concat(n.getElementId("option"),"-").concat(F),G={id:Ge,onClick:Me,onMouseMove:z,onMouseOver:z,tabIndex:-1,role:"option","aria-selected":n.isAppleDevice?void 0:oe};return S.createElement(x,he({},b,{innerProps:G,data:ce,isDisabled:de,isSelected:oe,key:Ge,label:we,type:m,value:Ce,isFocused:Ee,innerRef:Ee?n.getFocusedOptionRef:void 0}),n.formatOptionLabel(U.data,"menu"))},Y;if(this.hasOptions())Y=this.getCategorizedOptions().map(function(W){if(W.type==="group"){var U=W.data,F=W.options,m=W.index,ce="".concat(n.getElementId("group"),"-").concat(m),de="".concat(ce,"-heading");return S.createElement(i,he({},b,{key:ce,data:U,options:F,Heading:s,headingProps:{id:de,data:W.data},label:n.formatGroupLabel(W.data)}),W.options.map(function(oe){return T(oe,"".concat(m,"-").concat(oe.index))}))}else if(W.type==="option")return T(W,"".concat(W.index))});else if(R){var ge=A({inputValue:w});if(ge===null)return null;Y=S.createElement(f,b,ge)}else{var Ne=pe({inputValue:w});if(Ne===null)return null;Y=S.createElement(v,b,Ne)}var _={minMenuHeight:I,maxMenuHeight:M,menuPlacement:V,menuPosition:q,menuShouldScrollIntoView:H},L=S.createElement(Qd,he({},b,_),function(W){var U=W.ref,F=W.placerProps,m=F.placement,ce=F.maxHeight;return S.createElement(l,he({},b,_,{innerRef:U,innerProps:{onMouseDown:n.onMenuMouseDown,onMouseMove:n.onMenuMouseMove},isLoading:R,placement:m}),S.createElement(Np,{captureEnabled:C,onTopArrive:P,onBottomArrive:O,lockEnabled:ae},function(de){return S.createElement(c,he({},b,{innerRef:function(we){n.getMenuListRef(we),de(we)},innerProps:{role:"listbox","aria-multiselectable":b.isMulti,id:n.getElementId("listbox")},isLoading:R,maxHeight:ce,focusedOption:h}),Y)}))});return J||q==="fixed"?S.createElement(d,he({},b,{appendTo:J,controlElement:this.controlRef,menuPlacement:V,menuPosition:q}),L):L}},{key:"renderFormField",value:function(){var n=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(Tp,{name:c,onFocus:this.onValueInputFocus});if(!(!c||s))if(l)if(i){var v=f.map(function(h){return n.getOptionValue(h)}).join(i);return S.createElement("input",{name:c,type:"hidden",value:v})}else{var x=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,x)}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,s=o.focusedOption,l=o.focusedValue,c=o.isFocused,d=o.selectValue,f=this.getFocusableOptions();return S.createElement(mp,he({},n,{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 n=this.getComponents(),o=n.Control,i=n.IndicatorsContainer,s=n.SelectContainer,l=n.ValueContainer,c=this.props,d=c.className,f=c.id,v=c.isDisabled,x=c.menuIsOpen,b=this.state.isFocused,h=this.commonProps=this.getCommonProps();return S.createElement(s,he({},h,{className:d,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:v,isFocused:b}),this.renderLiveRegion(),S.createElement(o,he({},h,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:v,isFocused:b,menuIsOpen:x}),S.createElement(l,he({},h,{isDisabled:v}),this.renderPlaceholderOrValue(),this.renderInput()),S.createElement(i,he({},h,{isDisabled:v}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(n,o){var i=o.prevProps,s=o.clearFocusValueOnUpdate,l=o.inputIsHiddenAfterUpdate,c=o.ariaSelection,d=o.isFocused,f=o.prevWasFocused,v=o.instancePrefix,x=n.options,b=n.value,h=n.menuIsOpen,p=n.inputValue,C=n.isMulti,w=To(b),R={};if(i&&(b!==i.value||x!==i.options||h!==i.menuIsOpen||p!==i.inputValue)){var A=h?Jp(n,w):[],I=h?Yo(dr(n,w),"".concat(v,"-option")):[],M=s?Up(o,w):null,B=$p(o,A),V=zr(I,B);R={selectValue:w,focusedOption:B,focusedOptionId:V,focusableOptionsWithIds:I,focusedValue:M,clearFocusValueOnUpdate:!1}}var q=l!=null&&n!==i?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},J=c,ae=d&&f;return d&&!ae&&(J={value:or(C,w,w[0]||null),options:w,action:"initial-input-focus"},ae=!f),(c==null?void 0:c.action)==="initial-input-focus"&&(J=null),me(me(me({},R),q),{},{prevProps:n,ariaSelection:J,prevWasFocused:ae})}}]),r}(E.Component);As.defaultProps=Yp;var Kp=E.forwardRef(function(e,t){var r=cc(e);return S.createElement(As,he({ref:t},r))}),qp=Kp;const _n=({value:e,options:t,placeholder:r,onChange:a,className:n="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(ps.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(qp,{value:e,options:t,placeholder:r,onChange:a,className:n,styles:l,isSearchable:i,components:{Option:c}})})},Dt=S.forwardRef(({className:e,type:t,required:r,...a},n)=>(r&&(a.placeholder=a.placeholder+"*"),u.jsx("input",{type:t,className:Te("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})));Dt.displayName="Input";function eg(e,t=[]){let r=[];function a(o,i){const s=S.createContext(i),l=r.length;r=[...r,i];const c=f=>{var C;const{scope:v,children:x,...b}=f,h=((C=v==null?void 0:v[e])==null?void 0:C[l])||s,p=S.useMemo(()=>b,Object.values(b));return u.jsx(h.Provider,{value:p,children:x})};c.displayName=o+"Provider";function d(f,v){var h;const x=((h=v==null?void 0:v[e])==null?void 0:h[l])||s,b=S.useContext(x);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(s){const l=(s==null?void 0:s[e])||o;return S.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return n.scopeName=e,[a,tg(n,...t)]}function tg(...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((s,{useScope:l,scopeName:c})=>{const f=l(o)[`__scope${c}`];return{...s,...f}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function Uo(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 ws(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 ng({prop:e,defaultProp:t,onChange:r=()=>{}}){const[a,n]=rg({defaultProp:t,onChange:r}),o=e!==void 0,i=o?e:a,s=ws(r),l=S.useCallback(c=>{if(o){const f=typeof c=="function"?c(e):c;f!==e&&s(f)}else n(c)},[o,e,n,s]);return[i,l]}function rg({defaultProp:e,onChange:t}){const r=S.useState(e),[a]=r,n=S.useRef(a),o=ws(t);return S.useEffect(()=>{n.current!==a&&(o(a),n.current=a)},[a,n,o]),r}function ag(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 ca=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{};function og(e){const[t,r]=S.useState(void 0);return ca(()=>{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,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;r({width:i,height:s})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else r(void 0)},[e]),t}function ig(e,t){return S.useReducer((r,a)=>t[r][a]??r,e)}var Es=e=>{const{present:t,children:r}=e,a=sg(t),n=typeof r=="function"?r({present:a.isPresent}):S.Children.only(r),o=Ri(a.ref,lg(n));return typeof r=="function"||a.isPresent?S.cloneElement(n,{ref:o}):null};Es.displayName="Presence";function sg(e){const[t,r]=S.useState(),a=S.useRef({}),n=S.useRef(e),o=S.useRef("none"),i=e?"mounted":"unmounted",[s,l]=ig(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const c=ir(a.current);o.current=s==="mounted"?c:"none"},[s]),ca(()=>{const c=a.current,d=n.current;if(d!==e){const v=o.current,x=ir(c);e?l("MOUNT"):x==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&v!==x?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,l]),ca(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,f=x=>{const h=ir(a.current).includes(x.animationName);if(x.target===t&&h&&(l("ANIMATION_END"),!n.current)){const p=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=p)})}},v=x=>{x.target===t&&(o.current=ir(a.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",v),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)),r(c)},[])}}function ir(e){return(e==null?void 0:e.animationName)||"none"}function lg(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 ka="Checkbox",[ug]=eg(ka),[cg,dg]=ug(ka),Rs=S.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:a,checked:n,defaultChecked:o,required:i,disabled:s,value:l="on",onCheckedChange:c,form:d,...f}=e,[v,x]=S.useState(null),b=Ri(t,A=>x(A)),h=S.useRef(!1),p=v?d||!!v.closest("form"):!0,[C=!1,w]=ng({prop:n,defaultProp:o,onChange:c}),R=S.useRef(C);return S.useEffect(()=>{const A=v==null?void 0:v.form;if(A){const I=()=>w(R.current);return A.addEventListener("reset",I),()=>A.removeEventListener("reset",I)}},[v,w]),u.jsxs(cg,{scope:r,state:C,disabled:s,children:[u.jsx(xa.button,{type:"button",role:"checkbox","aria-checked":nn(C)?"mixed":C,"aria-required":i,"data-state":Ps(C),"data-disabled":s?"":void 0,disabled:s,value:l,...f,ref:b,onKeyDown:Uo(e.onKeyDown,A=>{A.key==="Enter"&&A.preventDefault()}),onClick:Uo(e.onClick,A=>{w(I=>nn(I)?!0:!I),p&&(h.current=A.isPropagationStopped(),h.current||A.stopPropagation())})}),p&&u.jsx(fg,{control:v,bubbles:!h.current,name:a,value:l,checked:C,required:i,disabled:s,form:d,style:{transform:"translateX(-100%)"},defaultChecked:nn(o)?!1:o})]})});Rs.displayName=ka;var Ns="CheckboxIndicator",Gs=S.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:a,...n}=e,o=dg(Ns,r);return u.jsx(Es,{present:a||nn(o.state)||o.state===!0,children:u.jsx(xa.span,{"data-state":Ps(o.state),"data-disabled":o.disabled?"":void 0,...n,ref:t,style:{pointerEvents:"none",...e.style}})})});Gs.displayName=Ns;var fg=e=>{const{control:t,checked:r,bubbles:a=!0,defaultChecked:n,...o}=e,i=S.useRef(null),s=ag(r),l=og(t);S.useEffect(()=>{const d=i.current,f=window.HTMLInputElement.prototype,x=Object.getOwnPropertyDescriptor(f,"checked").set;if(s!==r&&x){const b=new Event("click",{bubbles:a});d.indeterminate=nn(r),x.call(d,nn(r)?!1:r),d.dispatchEvent(b)}},[s,r,a]);const c=S.useRef(nn(r)?!1:r);return u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n??c.current,...o,tabIndex:-1,ref:i,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function nn(e){return e==="indeterminate"}function Ps(e){return nn(e)?"indeterminate":e?"checked":"unchecked"}var Os=Rs,pg=Gs;/**
|
|
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 gg=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),
|
|
54
|
+
*/const gg=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ts=(...e)=>e.filter((t,r,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===r).join(" ").trim();/**
|
|
55
55
|
* @license lucide-react v0.456.0 - ISC
|
|
56
56
|
*
|
|
57
57
|
* This source code is licensed under the ISC license.
|
|
@@ -61,12 +61,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
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 bg=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:n="",children:o,iconNode:i,...s},l)=>E.createElement("svg",{ref:l,...mg,width:t,height:t,stroke:e,strokeWidth:a?Number(r)*24/Number(t):r,className:
|
|
64
|
+
*/const bg=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:n="",children:o,iconNode:i,...s},l)=>E.createElement("svg",{ref:l,...mg,width:t,height:t,stroke:e,strokeWidth:a?Number(r)*24/Number(t):r,className:Ts("lucide",n),...s},[...i.map(([c,d])=>E.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 Ln=(e,t)=>{const r=E.forwardRef(({className:a,...n},o)=>E.createElement(bg,{ref:o,iconNode:t,className:
|
|
69
|
+
*/const Ln=(e,t)=>{const r=E.forwardRef(({className:a,...n},o)=>E.createElement(bg,{ref:o,iconNode:t,className:Ts(`lucide-${gg(e)}`,a),...n}));return r.displayName=`${e}`,r};/**
|
|
70
70
|
* @license lucide-react v0.456.0 - ISC
|
|
71
71
|
*
|
|
72
72
|
* This source code is licensed under the ISC license.
|
|
@@ -91,7 +91,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
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 xg=Ln("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),
|
|
94
|
+
*/const xg=Ln("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),js=S.forwardRef(({className:e,...t},r)=>u.jsx(Os,{ref:r,className:Te("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(pg,{className:Te("flex items-center justify-center text-current"),children:u.jsx(hg,{className:"h-4 w-4"})})}));js.displayName=Os.displayName;const Ba=S.forwardRef(({variant:e="default",size:t="sm",className:r,children:a,...n},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:Te("inline-flex items-center font-medium rounded-full",i[e],s[t],r),...n,children:a})});Ba.displayName="Badge";const Ms=S.forwardRef(({variant:e="ghost",size:t="md",className:r,children:a,...n},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:Te("inline-flex items-center justify-center rounded-lg transition-colors focus:outline-none",i[e],s[t],r),...n,children:a})});Ms.displayName="IconButton";function Ig(e,t=[]){let r=[];function a(o,i){const s=S.createContext(i);s.displayName=o+"Context";const l=r.length;r=[...r,i];const c=f=>{var C;const{scope:v,children:x,...b}=f,h=((C=v==null?void 0:v[e])==null?void 0:C[l])||s,p=S.useMemo(()=>b,Object.values(b));return u.jsx(h.Provider,{value:p,children:x})};c.displayName=o+"Provider";function d(f,v){var h;const x=((h=v==null?void 0:v[e])==null?void 0:h[l])||s,b=S.useContext(x);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(s){const l=(s==null?void 0:s[e])||o;return S.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return n.scopeName=e,[a,Sg(n,...t)]}function Sg(...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((s,{useScope:l,scopeName:c})=>{const f=l(o)[`__scope${c}`];return{...s,...f}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function Fs(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)},[])}var An=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{};function $o(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Va(...e){return t=>{let r=!1;const a=e.map(n=>{const o=$o(n,t);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let n=0;n<a.length;n++){const o=a[n];typeof o=="function"?o():$o(e[n],null)}}}}function Dn(...e){return S.useCallback(Va(...e),e)}var Ag=Symbol.for("react.lazy"),xr=S[" use ".trim().toString()];function wg(e){return typeof e=="object"&&e!==null&&"then"in e}function ks(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Ag&&"_payload"in e&&wg(e._payload)}function Eg(e){const t=Rg(e),r=S.forwardRef((a,n)=>{let{children:o,...i}=a;ks(o)&&typeof xr=="function"&&(o=xr(o._payload));const s=S.Children.toArray(o),l=s.find(Gg);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: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 Rg(e){const t=S.forwardRef((r,a)=>{let{children:n,...o}=r;if(ks(n)&&typeof xr=="function"&&(n=xr(n._payload)),S.isValidElement(n)){const i=Og(n),s=Pg(o,n.props);return n.type!==S.Fragment&&(s.ref=a?Va(a,i):i),S.cloneElement(n,s)}return S.Children.count(n)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ng=Symbol("radix.slottable");function Gg(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ng}function Pg(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]=(...s)=>{const l=o(...s);return n(...s),l}:n&&(r[a]=n):a==="style"?r[a]={...n,...o}:a==="className"&&(r[a]=[n,o].filter(Boolean).join(" "))}return{...e,...r}}function Og(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 Tg=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_a=Tg.reduce((e,t)=>{const r=Eg(`Primitive.${t}`),a=S.forwardRef((n,o)=>{const{asChild:i,...s}=n,l=i?r: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}},{}),da={exports:{}},Yr={};/**
|
|
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 jg(){if(Qo)return Yr;Qo=1;var e=E;function t(f,v){return f===v&&(f!==0||1/f===1/v)||f!==f&&v!==v}var r=typeof Object.is=="function"?Object.is:t,a=e.useState,n=e.useEffect,o=e.useLayoutEffect,i=e.useDebugValue;function s(f,v){var x=v(),b=a({inst:{value:x,getSnapshot:v}}),h=b[0].inst,p=b[1];return o(function(){h.value=x,h.getSnapshot=v,l(h)&&p({inst:h})},[f,x,v]),n(function(){return l(h)&&p({inst:h}),f(function(){l(h)&&p({inst:h})})},[f]),i(x),x}function l(f){var v=f.getSnapshot;f=f.value;try{var x=v();return!r(f,x)}catch{return!0}}function c(f,v){return v()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return Yr.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,Yr}var Jr={};/**
|
|
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 Mg(){return qo||(qo=1,process.env.NODE_ENV!=="production"&&function(){function e(x,b){return x===b&&(x!==0||1/x===1/b)||x!==x&&b!==b}function t(x,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 C=p[0].inst,w=p[1];return l(function(){C.value=h,C.getSnapshot=b,r(C)&&w({inst:C})},[x,h,b]),s(function(){return r(C)&&w({inst:C}),x(function(){r(C)&&w({inst:C})})},[x]),c(h),h}function r(x){var b=x.getSnapshot;x=x.value;try{var h=b();return!o(x,h)}catch{return!0}}function a(x,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=E,o=typeof Object.is=="function"?Object.is:e,i=n.useState,s=n.useEffect,l=n.useLayoutEffect,c=n.useDebugValue,d=!1,f=!1,v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?a:t;Ur.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:v,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Ur}process.env.NODE_ENV==="production"?fa.exports=jg():fa.exports=Mg();var Fg=fa.exports;function kg(){return Fg.useSyncExternalStore(Bg,()=>!0,()=>!1)}function Bg(){return()=>{}}var Wa="Avatar",[Vg]=Ig(Wa),[_g,Vs]=Vg(Wa),_s=S.forwardRef((e,t)=>{const{__scopeAvatar:r,...a}=e,[n,o]=S.useState("idle");return u.jsx(_g,{scope:r,imageLoadingStatus:n,onImageLoadingStatusChange:o,children:u.jsx(Da.span,{...a,ref:t})})});_s.displayName=Wa;var Ds="AvatarImage",Ws=S.forwardRef((e,t)=>{const{__scopeAvatar:r,src:a,onLoadingStatusChange:n=()=>{},...o}=e,i=Vs(Ds,r),s=Dg(a,o),l=ks(c=>{n(c),i.onImageLoadingStatusChange(c)});return Sn(()=>{s!=="idle"&&l(s)},[s,l]),s==="loaded"?u.jsx(Da.img,{...o,ref:t,src:a}):null});Ws.displayName=Ds;var Ls="AvatarFallback",Xs=S.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:a,...n}=e,o=Vs(Ls,r),[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(Da.span,{...n,ref:t}):null});Xs.displayName=Ls;function ei(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:r}){const a=kg(),n=S.useRef(null),o=a?(n.current||(n.current=new window.Image),n.current):null,[i,s]=S.useState(()=>ei(o,e));return Sn(()=>{s(ei(o,e))},[o,e]),Sn(()=>{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 r=="string"&&(o.crossOrigin=r),()=>{o.removeEventListener("load",c),o.removeEventListener("error",d)}},[o,r,t]),i}var Wg=_s,Lg=Ws,Xg=Xs;const Hs=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(Wg,{ref:a,className:Te("relative flex shrink-0 overflow-hidden rounded-full",n[e],t),...r})});Hs.displayName="Avatar";const Zs=S.forwardRef(({className:e,...t},r)=>u.jsx(Lg,{ref:r,className:Te("aspect-square h-full w-full object-cover",e),...t}));Zs.displayName="AvatarImage";const zs=S.forwardRef(({className:e,...t},r)=>u.jsx(Xg,{ref:r,className:Te("flex h-full w-full items-center justify-center rounded-full bg-grayWarm-100 text-grayWarm-600 font-semibold",e),...t}));zs.displayName="AvatarFallback";function rn(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 Gr(e,t=[]){let r=[];function a(o,i){const s=S.createContext(i),l=r.length;r=[...r,i];const c=f=>{var C;const{scope:v,children:x,...b}=f,h=((C=v==null?void 0:v[e])==null?void 0:C[l])||s,p=S.useMemo(()=>b,Object.values(b));return u.jsx(h.Provider,{value:p,children:x})};c.displayName=o+"Provider";function d(f,v){var h;const x=((h=v==null?void 0:v[e])==null?void 0:h[l])||s,b=S.useContext(x);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(s){const l=(s==null?void 0:s[e])||o;return S.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return n.scopeName=e,[a,Hg(n,...t)]}function Hg(...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((s,{useScope:l,scopeName:c})=>{const f=l(o)[`__scope${c}`];return{...s,...f}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}var Zg=S[" useInsertionEffect ".trim().toString()]||Sn;function Xn({prop:e,defaultProp:t,onChange:r=()=>{},caller:a}){const[n,o,i]=zg({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:n;{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 v=Yg(d)?d(e):d;v!==e&&((f=i.current)==null||f.call(i,v))}else o(d)},[s,e,o,i]);return[l,c]}function zg({defaultProp:e,onChange:t}){const[r,a]=S.useState(e),n=S.useRef(r),o=S.useRef(t);return Zg(()=>{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 Yg(e){return typeof e=="function"}function Jg(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 Ug(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,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;r({width:i,height:s})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else r(void 0)},[e]),t}function pa(e){const t=$g(e),r=S.forwardRef((a,n)=>{const{children:o,...i}=a,s=S.Children.toArray(o),l=s.find(Kg);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: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 $g(e){const t=S.forwardRef((r,a)=>{const{children:n,...o}=r;if(S.isValidElement(n)){const i=em(n),s=qg(o,n.props);return n.type!==S.Fragment&&(s.ref=a?_a(a,i):i),S.cloneElement(n,s)}return S.Children.count(n)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Qg=Symbol("radix.slottable");function Kg(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qg}function qg(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]=(...s)=>{const l=o(...s);return n(...s),l}:n&&(r[a]=n):a==="style"?r[a]={...n,...o}:a==="className"&&(r[a]=[n,o].filter(Boolean).join(" "))}return{...e,...r}}function em(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 tm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],gn=tm.reduce((e,t)=>{const r=pa(`Primitive.${t}`),a=S.forwardRef((n,o)=>{const{asChild:i,...s}=n,l=i?r: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}},{}),Pr="Switch",[nm]=Gr(Pr),[rm,am]=nm(Pr),Ys=S.forwardRef((e,t)=>{const{__scopeSwitch:r,name:a,checked:n,defaultChecked:o,required:i,disabled:s,value:l="on",onCheckedChange:c,form:d,...f}=e,[v,x]=S.useState(null),b=Dn(t,R=>x(R)),h=S.useRef(!1),p=v?d||!!v.closest("form"):!0,[C,w]=Xn({prop:n,defaultProp:o??!1,onChange:c,caller:Pr});return u.jsxs(rm,{scope:r,checked:C,disabled:s,children:[u.jsx(gn.button,{type:"button",role:"switch","aria-checked":C,"aria-required":i,"data-state":Qs(C),"data-disabled":s?"":void 0,disabled:s,value:l,...f,ref:b,onClick:rn(e.onClick,R=>{w(A=>!A),p&&(h.current=R.isPropagationStopped(),h.current||R.stopPropagation())})}),p&&u.jsx($s,{control:v,bubbles:!h.current,name:a,value:l,checked:C,required:i,disabled:s,form:d,style:{transform:"translateX(-100%)"}})]})});Ys.displayName=Pr;var Js="SwitchThumb",Us=S.forwardRef((e,t)=>{const{__scopeSwitch:r,...a}=e,n=am(Js,r);return u.jsx(gn.span,{"data-state":Qs(n.checked),"data-disabled":n.disabled?"":void 0,...a,ref:t})});Us.displayName=Js;var om="SwitchBubbleInput",$s=S.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:a=!0,...n},o)=>{const i=S.useRef(null),s=Dn(i,o),l=Jg(r),c=Ug(t);return S.useEffect(()=>{const d=i.current;if(!d)return;const f=window.HTMLInputElement.prototype,x=Object.getOwnPropertyDescriptor(f,"checked").set;if(l!==r&&x){const b=new Event("click",{bubbles:a});x.call(d,r),d.dispatchEvent(b)}},[l,r,a]),u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...n,tabIndex:-1,ref:s,style:{...n.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});$s.displayName=om;function Qs(e){return e?"checked":"unchecked"}var im=Ys,sm=Us;const La=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(im,{ref:a,className:Te("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(sm,{className:Te("pointer-events-none block rounded-full bg-white shadow-xs transition-transform data-[state=unchecked]:translate-x-0",o[e])})})});La.displayName="Toggle";function lm(e){const t=e+"CollectionProvider",[r,a]=Gr(t),[n,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=h=>{const{scope:p,children:C}=h,w=E.useRef(null),R=E.useRef(new Map).current;return u.jsx(n,{scope:p,itemMap:R,collectionRef:w,children:C})};i.displayName=t;const s=e+"CollectionSlot",l=pa(s),c=E.forwardRef((h,p)=>{const{scope:C,children:w}=h,R=o(s,C),A=Dn(p,R.collectionRef);return u.jsx(l,{ref:A,children:w})});c.displayName=s;const d=e+"CollectionItemSlot",f="data-radix-collection-item",v=pa(d),x=E.forwardRef((h,p)=>{const{scope:C,children:w,...R}=h,A=E.useRef(null),I=Dn(p,A),M=o(d,C);return E.useEffect(()=>(M.itemMap.set(A,{ref:A,...R}),()=>void M.itemMap.delete(A))),u.jsx(v,{[f]:"",ref:I,children:w})});x.displayName=d;function b(h){const p=o(e+"CollectionConsumer",h);return E.useCallback(()=>{const w=p.collectionRef.current;if(!w)return[];const R=Array.from(w.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:x},b,a]}var um=S[" useId ".trim().toString()]||(()=>{}),cm=0;function dm(e){const[t,r]=S.useState(um());return Sn(()=>{r(a=>a??String(cm++))},[e]),t?`radix-${t}`:""}var fm=S.createContext(void 0);function Ks(e){const t=S.useContext(fm);return e||t||"ltr"}var $r="rovingFocusGroup.onEntryFocus",pm={bubbles:!1,cancelable:!0},Hn="RovingFocusGroup",[ga,qs,gm]=lm(Hn),[mm,el]=Gr(Hn,[gm]),[bm,hm]=mm(Hn),tl=S.forwardRef((e,t)=>u.jsx(ga.Provider,{scope:e.__scopeRovingFocusGroup,children:u.jsx(ga.Slot,{scope:e.__scopeRovingFocusGroup,children:u.jsx(vm,{...e,ref:t})})}));tl.displayName=Hn;var vm=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:a,loop:n=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...f}=e,v=S.useRef(null),x=Dn(t,v),b=Ks(o),[h,p]=Xn({prop:i,defaultProp:s??null,onChange:l,caller:Hn}),[C,w]=S.useState(!1),R=ks(c),A=qs(r),I=S.useRef(!1),[M,B]=S.useState(0);return S.useEffect(()=>{const V=v.current;if(V)return V.addEventListener($r,R),()=>V.removeEventListener($r,R)},[R]),u.jsx(bm,{scope:r,orientation:a,dir:b,loop:n,currentTabStopId:h,onItemFocus:S.useCallback(V=>p(V),[p]),onItemShiftTab:S.useCallback(()=>w(!0),[]),onFocusableItemAdd:S.useCallback(()=>B(V=>V+1),[]),onFocusableItemRemove:S.useCallback(()=>B(V=>V-1),[]),children:u.jsx(gn.div,{tabIndex:C||M===0?-1:0,"data-orientation":a,...f,ref:x,style:{outline:"none",...e.style},onMouseDown:rn(e.onMouseDown,()=>{I.current=!0}),onFocus:rn(e.onFocus,V=>{const q=!I.current;if(V.target===V.currentTarget&&q&&!C){const J=new CustomEvent($r,pm);if(V.currentTarget.dispatchEvent(J),!J.defaultPrevented){const ae=A().filter(T=>T.focusable),H=ae.find(T=>T.active),pe=ae.find(T=>T.id===h),O=[H,pe,...ae].filter(Boolean).map(T=>T.ref.current);al(O,d)}}I.current=!1}),onBlur:rn(e.onBlur,()=>w(!1))})})}),nl="RovingFocusGroupItem",rl=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:a=!0,active:n=!1,tabStopId:o,children:i,...s}=e,l=dm(),c=o||l,d=hm(nl,r),f=d.currentTabStopId===c,v=qs(r),{onFocusableItemAdd:x,onFocusableItemRemove:b,currentTabStopId:h}=d;return S.useEffect(()=>{if(a)return x(),()=>b()},[a,x,b]),u.jsx(ga.ItemSlot,{scope:r,id:c,focusable:a,active:n,children:u.jsx(gn.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...s,ref:t,onMouseDown:rn(e.onMouseDown,p=>{a?d.onItemFocus(c):p.preventDefault()}),onFocus:rn(e.onFocus,()=>d.onItemFocus(c)),onKeyDown:rn(e.onKeyDown,p=>{if(p.key==="Tab"&&p.shiftKey){d.onItemShiftTab();return}if(p.target!==p.currentTarget)return;const C=xm(p,d.orientation,d.dir);if(C!==void 0){if(p.metaKey||p.ctrlKey||p.altKey||p.shiftKey)return;p.preventDefault();let R=v().filter(A=>A.focusable).map(A=>A.ref.current);if(C==="last")R.reverse();else if(C==="prev"||C==="next"){C==="prev"&&R.reverse();const A=R.indexOf(p.currentTarget);R=d.loop?Im(R,A+1):R.slice(A+1)}setTimeout(()=>al(R))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:h!=null}):i})})});rl.displayName=nl;var ym={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Cm(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function xm(e,t,r){const a=Cm(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return ym[a]}function al(e,t=!1){const r=document.activeElement;for(const a of e)if(a===r||(a.focus({preventScroll:t}),document.activeElement!==r))return}function Im(e,t){return e.map((r,a)=>e[(t+a)%e.length])}var Sm=tl,Am=rl,ol="Toggle",il=S.forwardRef((e,t)=>{const{pressed:r,defaultPressed:a,onPressedChange:n,...o}=e,[i,s]=Xn({prop:r,onChange:n,defaultProp:a??!1,caller:ol});return u.jsx(gn.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0,...o,ref:t,onClick:rn(e.onClick,()=>{e.disabled||s(!i)})})});il.displayName=ol;var on="ToggleGroup",[sl]=Gr(on,[el]),ll=el(),Xa=E.forwardRef((e,t)=>{const{type:r,...a}=e;if(r==="single"){const n=a;return u.jsx(wm,{...n,ref:t})}if(r==="multiple"){const n=a;return u.jsx(Em,{...n,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${on}\``)});Xa.displayName=on;var[ul,cl]=sl(on),wm=E.forwardRef((e,t)=>{const{value:r,defaultValue:a,onValueChange:n=()=>{},...o}=e,[i,s]=Xn({prop:r,defaultProp:a??"",onChange:n,caller:on});return u.jsx(ul,{scope:e.__scopeToggleGroup,type:"single",value:E.useMemo(()=>i?[i]:[],[i]),onItemActivate:s,onItemDeactivate:E.useCallback(()=>s(""),[s]),children:u.jsx(dl,{...o,ref:t})})}),Em=E.forwardRef((e,t)=>{const{value:r,defaultValue:a,onValueChange:n=()=>{},...o}=e,[i,s]=Xn({prop:r,defaultProp:a??[],onChange:n,caller:on}),l=E.useCallback(d=>s((f=[])=>[...f,d]),[s]),c=E.useCallback(d=>s((f=[])=>f.filter(v=>v!==d)),[s]);return u.jsx(ul,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:c,children:u.jsx(dl,{...o,ref:t})})});Xa.displayName=on;var[Rm,Nm]=sl(on),dl=E.forwardRef((e,t)=>{const{__scopeToggleGroup:r,disabled:a=!1,rovingFocus:n=!0,orientation:o,dir:i,loop:s=!0,...l}=e,c=ll(r),d=Ks(i),f={role:"group",dir:d,...l};return u.jsx(Rm,{scope:r,rovingFocus:n,disabled:a,children:n?u.jsx(Sm,{asChild:!0,...c,orientation:o,dir:d,loop:s,children:u.jsx(gn.div,{...f,ref:t})}):u.jsx(gn.div,{...f,ref:t})})}),Ir="ToggleGroupItem",fl=E.forwardRef((e,t)=>{const r=cl(Ir,e.__scopeToggleGroup),a=Nm(Ir,e.__scopeToggleGroup),n=ll(e.__scopeToggleGroup),o=r.value.includes(e.value),i=a.disabled||e.disabled,s={...e,pressed:o,disabled:i},l=E.useRef(null);return a.rovingFocus?u.jsx(Am,{asChild:!0,...n,focusable:!i,active:o,ref:l,children:u.jsx(ti,{...s,ref:t})}):u.jsx(ti,{...s,ref:t})});fl.displayName=Ir;var ti=E.forwardRef((e,t)=>{const{__scopeToggleGroup:r,value:a,...n}=e,o=cl(Ir,r),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=o.type==="single"?i:void 0;return u.jsx(il,{...s,...n,ref:t,onPressedChange:l=>{l?o.onItemActivate(a):o.onItemDeactivate(a)}})}),Gm=Xa,Pm=fl;const pl=S.forwardRef(({className:e,...t},r)=>u.jsx(Gm,{ref:r,className:Te("inline-flex items-center rounded-lg border border-grayWarm-200 overflow-hidden",e),...t}));pl.displayName="ToggleGroup";const gl=S.forwardRef(({className:e,children:t,...r},a)=>u.jsx(Pm,{ref:a,className:Te("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}));gl.displayName="ToggleGroupItem";const ml=S.forwardRef(({className:e,...t},r)=>u.jsx("textarea",{ref:r,className:Te("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}));ml.displayName="Textarea";const bl=({currentPage:e,totalPages:t,onPageChange:r,className:a})=>{const n=()=>{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:Te("flex items-center justify-between",a),children:[u.jsxs("button",{onClick:()=>r(e-1),disabled:e<=1,className:Te("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(vg,{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:Te("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:Te("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(yg,{className:"w-4 h-4"})]})]})};bl.displayName="Pagination";const hl=S.forwardRef(({className:e,...t},r)=>u.jsxs("div",{className:Te("relative",e),children:[u.jsx(Cg,{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:Te("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})]}));hl.displayName="SearchInput";const vl=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:Te("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(xg,{className:"w-3 h-3"})})]})});vl.displayName="Chip";const ma=({value:e,onChange:t,travelerType:r,departureDate:a,uniqueId:n,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"],v=new Date().getUTCFullYear(),x=E.useMemo(()=>i==="future"?Array.from({length:21},(P,O)=>v+O):Array.from({length:120},(P,O)=>v-O),[v,i]),[b,h]=E.useState(e?new Date(e).getUTCMonth():void 0),[p,C]=E.useState(e?new Date(e).getUTCDate():void 0),[w,R]=E.useState(e?new Date(e).getUTCFullYear():void 0),A=(P,O)=>new Date(Date.UTC(O,P+1,0)).getUTCDate(),I=E.useMemo(()=>b!==void 0?A(b,w??2e3):31,[b,w]),M=E.useRef(void 0);E.useEffect(()=>{if(e&&e!==M.current)try{const P=new Date(e);isNaN(P.getTime())||(h(P.getUTCMonth()),C(P.getUTCDate()),R(P.getUTCFullYear()))}catch(P){console.error("Invalid date format:",P)}},[e]),E.useEffect(()=>{p!==void 0&&p>I&&C(I)},[I,p]),E.useEffect(()=>{if(b!==void 0&&p!==void 0&&w!==void 0){const P=Math.min(p,A(b,w)),O=new Date(Date.UTC(w,b,P)),T=O.toISOString();if(M.current=T,e){const Y=new Date(e);if(!isNaN(Y.getTime())&&Y.getTime()===O.getTime())return}t(T)}},[b,p,w]);const B=P=>{P&&h(f.indexOf(P.value))},V=P=>{if(P===""){C(void 0);return}const O=parseInt(P,10);isNaN(O)||C(Math.min(Math.max(O,1),I))},q=P=>{if(P){const O=parseInt(P.value,10);isNaN(O)||R(O)}},J=s&&b===void 0,ae=s&&p===void 0,H=s&&w===void 0,pe=P=>P?{control:(O,T)=>({...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: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(_n,{value:b!==void 0?{value:f[b],label:f[b]}:null,options:f.map(P=>({value:P,label:P})),placeholder:"Month*",onChange:B,styles:pe(J),isSearchable:d})}),u.jsx("div",{className:"relative w-full md:max-w-[80px]",children:u.jsx(Dt,{type:"text",inputMode:"numeric",required:!0,placeholder:"Day",value:p!==void 0?p:"",onChange:P=>V(P.target.value),disabled:b===void 0,max:I,min:1,className:`text-xs md:text-sm border-grayWarm-300 rounded-lg h-10${ae?" 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(_n,{value:w!==void 0?{value:w.toString(),label:w.toString()}:null,options:x.map(P=>({value:P.toString(),label:P.toString()})),placeholder:"Year*",onChange:q,styles:pe(H),isSearchable:!0})})]})]})};var tn={},Or={};Object.defineProperty(Or,"__esModule",{value:!0});Or.Gender=void 0;var ni;(function(e){e.MALE="male",e.FEMALE="female",e.DEFAULT=""})(ni||(Or.Gender=ni={}));var Tr={};Object.defineProperty(Tr,"__esModule",{value:!0});Tr.CustomerResourceType=void 0;var ri;(function(e){e.STORAGE="storage",e.HOSTING="hosting",e.DNS="dns",e.AUTHENTICATION="authentication",e.AUTHORIZATION="authorization"})(ri||(Tr.CustomerResourceType=ri={}));var yl={};Object.defineProperty(yl,"__esModule",{value:!0});var an={};Object.defineProperty(an,"__esModule",{value:!0});an.TravelerType=an.FlightOfferSegmentLegType=an.FlightOfferDataSource=void 0;var ai;(function(e){e.Amadeus="amadeus"})(ai||(an.FlightOfferDataSource=ai={}));var oi;(function(e){e.Inbound="inbound",e.Outbound="outbound"})(oi||(an.FlightOfferSegmentLegType=oi={}));var ii;(function(e){e.ADULT="adult",e.CHILD="child",e.INFANT="infant"})(ii||(an.TravelerType=ii={}));var St={};Object.defineProperty(St,"__esModule",{value:!0});St.OTPAction=St.AuthenticationChallengeResponse=St.AuthenticationChallengeName=St.AuthenticationUserStatus=St.AuthenticationUsernameType=void 0;var si;(function(e){e.EMAIL="email",e.PHONE_NUMBER="phoneNumber"})(si||(St.AuthenticationUsernameType=si={}));var li;(function(e){e.CONFIRMED="CONFIRMED",e.UNCONFIRMED="UNCONFIRMED"})(li||(St.AuthenticationUserStatus=li={}));var ui;(function(e){e.SMS_OTP="SMS_OTP",e.EMAIL_OTP="EMAIL_OTP",e.CONFIRM_SIGN_UP="CONFIRM_SIGN_UP"})(ui||(St.AuthenticationChallengeName=ui={}));var ci;(function(e){e.SMS_OTP_CODE="SMS_OTP_CODE",e.EMAIL_OTP_CODE="EMAIL_OTP_CODE"})(ci||(St.AuthenticationChallengeResponse=ci={}));var di;(function(e){e.EMAILED="emailed",e.TEXTED="texted"})(di||(St.OTPAction=di={}));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 Nl={};Object.defineProperty(Nl,"__esModule",{value:!0});var Gl={};Object.defineProperty(Gl,"__esModule",{value:!0});var Lt={};Object.defineProperty(Lt,"__esModule",{value:!0});Lt.MOVMO_PARTNER_ORIGINS=Lt.MOVMO_FLIGHTS_ORIGINS=Lt.MovmoFrameMessageType=void 0;Lt.isTrustedOrigin=Om;var fi;(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"})(fi||(Lt.MovmoFrameMessageType=fi={}));Lt.MOVMO_FLIGHTS_ORIGINS={prod:["https://flights.movmo.io"],nonProd:["https://flights.e2e.movmo.io","http://localhost:3000"]};Lt.MOVMO_PARTNER_ORIGINS={prod:[],nonProd:["https://mockairline-e2e.app.flyeasyapp.com","https://mockairline-e2e.app.movmoapp.com","http://localhost:3000"]};function Om(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 Ha={};Object.defineProperty(Ha,"__esModule",{value:!0});Ha.mapIdentityPartners=Tm;function Tm(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 Pl={};(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[s]=i.split("."),l=e.PAIR_COPY[s],c=a.has(`${s}.read`)&&a.has(`${s}.write`);if(l&&c){n.has(s)||(n.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}})(Pl);var Ol={};Object.defineProperty(Ol,"__esModule",{value:!0});(function(e){var t=er&&er.__createBinding||(Object.create?function(a,n,o,i){i===void 0&&(i=o);var s=Object.getOwnPropertyDescriptor(n,o);(!s||("get"in s?!n.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(a,i,s)}:function(a,n,o,i){i===void 0&&(i=o),a[i]=n[o]}),r=er&&er.__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(Or,e),r(Tr,e),r(yl,e),r(an,e),r(St,e),r(Cl,e),r(xl,e),r(Il,e),r(Sl,e),r(Al,e),r(wl,e),r(El,e),r(Rl,e),r(Nl,e),r(Gl,e),r(Lt,e),r(Ha,e),r(Pl,e),r(Ol,e)})(tn);const ba=[{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:r,setMiddleName:a,lastName:n,setLastName:o,gender:i,setGender:s,knownTravelerNumber:l,setKnownTravelerNumber:c,dateOfBirth:d,setDateOfBirth:f,travelerType:v,departureDate:x,uniqueId:b,ktnAdornment:h,additionalFields:p,errorState:C=!1,errorMessage:w,firstNameError:R=!1,firstNameErrorMessage:A,middleNameError:I=!1,middleNameErrorMessage:M,lastNameError:B=!1,lastNameErrorMessage:V,showPassportFields:q=!1,passportNumber:J,setPassportNumber:ae,issuingCountry:H,setIssuingCountry:pe,expirationDate:P,setExpirationDate:O,passportErrorState:T=!1,passportErrorMessage:Y})=>{const ge=Object.values(tn.Gender).filter(_=>_!==tn.Gender.DEFAULT).map(_=>({value:_.toString(),label:_.charAt(0).toUpperCase()+_.slice(1)})),Ne=_=>{_&&(_.value===tn.Gender.MALE?s(tn.Gender.MALE):_.value===tn.Gender.FEMALE&&s(tn.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(Dt,{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(Dt,{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&&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(Dt,{type:"text",required:!0,placeholder:"Last name",value:n,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&&V&&u.jsx("p",{className:"text-error-700 text-sm mt-1",children:V})]})]}),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(_n,{value:ge.find(_=>_.value===i)||null,placeholder:"Gender",options:ge,onChange:Ne,"data-testid":"gender-dropdown"})}),u.jsxs("div",{className:"md:order-none order-2 relative",children:[u.jsx(Dt,{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(ma,{value:d,onChange:f,travelerType:v,departureDate:x,uniqueId:b}),q&&(()=>{const _=T&&!(J||"").trim(),L=T&&!(H||"").trim(),W=T&&!(P||"").trim(),U=L?{control:(F,m)=>({...F,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"}),T&&Y&&u.jsx("p",{className:"text-error-700 text-sm mt-1",children:Y}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 mt-2",children:[u.jsx(Dt,{type:"text",placeholder:"Passport number",required:!0,value:J||"",onChange:F=>ae==null?void 0:ae(F.target.value),className:`text-xs md:text-sm${_?" border-error-500":""}`,id:`passport-number-${b}`,name:`passport-number-${b}`}),u.jsx(_n,{value:H&&ba.find(F=>F.value===H)||null,placeholder:"Issuing country",options:ba,isSearchable:!0,onChange:F=>pe==null?void 0:pe((F==null?void 0:F.value)||""),styles:U})]}),u.jsx(ma,{value:P,onChange:F=>O==null?void 0:O(F),label:"Expiration date",labelClassName:"text-sm font-medium text-grayWarm-600",className:"mt-4",yearDirection:"future",uniqueId:b?`passport-exp-${b}`:void 0,errorState:W})]})})(),C&&u.jsx("div",{className:"text-error-700 text-sm mt-3",children:w||"Error saving passenger. Please try again."})]})},Mm=E.createContext({}),Tl=!0;function Fm({baseColor:e,highlightColor:t,width:r,height:a,borderRadius:n,circle:o,direction:i,duration:s,enableAnimation:l=Tl,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 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 Gt({count:e=1,wrapper:t,className:r,containerClassName:a,containerTestId:n,circle:o=!1,style:i,...s}){var l,c,d;const f=E.useContext(Mm),v={...s};for(const[R,A]of Object.entries(s))typeof A>"u"&&delete v[R];const x={...f,...v,circle:o},b={...i,...Fm(x)};let h="react-loading-skeleton";r&&(h+=` ${r}`);const p=(l=x.inline)!==null&&l!==void 0?l:!1,C=[],w=Math.ceil(e);for(let R=0;R<w;R++){let A=b;if(w>e&&R===w-1){const M=(c=A.width)!==null&&c!==void 0?c:"100%",B=e%1,V=typeof M=="number"?M*B:`calc(${M} * ${B})`;A={...A,width:V}}const I=E.createElement("span",{className:h,style:A,key:R},"");p?C.push(I):C.push(E.createElement(E.Fragment,{key:R},I,E.createElement("br",null)))}return E.createElement("span",{className:a,"data-testid":n,"aria-live":"polite","aria-busy":(d=x.enableAnimation)!==null&&d!==void 0?d:Tl},t?C.map((R,A)=>E.createElement(t,{key:A},R)):C)}const km=({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(Gt,{height:40,borderRadius:8}),u.jsx(Gt,{height:40,borderRadius:8}),u.jsx(Gt,{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(Gt,{height:44,borderRadius:8}),u.jsx(Gt,{height:40,borderRadius:8})]}),e,u.jsxs("div",{className:"mt-7",children:[u.jsx(Gt,{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(Gt,{height:44,borderRadius:8})}),u.jsx("div",{className:"w-full md:max-w-[80px]",children:u.jsx(Gt,{height:40,borderRadius:8})}),u.jsx("div",{className:"w-full md:max-w-[140px]",children:u.jsx(Gt,{height:44,borderRadius:8})})]})]}),t&&u.jsxs("div",{className:"flex gap-3 mt-8 pt-4 border-t border-grayWarm-200",children:[u.jsx(Gt,{height:40,borderRadius:8,containerClassName:"flex-1"}),u.jsx(Gt,{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"})}),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"})}),Ml=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"})}),Fl=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"})}),kl=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"})}),Bl=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"})}),za=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"})}),Vl=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M12 5V19M5 12H19"})}),Bm=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"})}),Ya=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"})}),_l=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"})}),Zn=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"})}),Vm=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"})}),Dl=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 jt(e){if(e)try{e.focus()}catch(t){if(t instanceof DOMException&&t.name==="SecurityError")return;throw t}}const _m=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),pi=e=>Array.from(e.querySelectorAll(_m)),Mn=[],Dm=()=>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"})}),mn=e=>e.isOpen?u.jsx(Wm,{...e}):null,Wm=({onClose:e,title:t,children:r,footer:a,maxWidth:n="max-w-screen-sm",maxWidthPx:o,footerHasBorder:i=!1,hideCloseButton:s=!1,allowOverflow:l=!1,header:c="bar"})=>{const d=E.useRef(null),f=E.useId(),v=E.useRef(e);v.current=e;const x=E.useRef(!s);x.current=!s;const[b]=E.useState(()=>typeof document>"u"?null:document.activeElement);E.useEffect(()=>{const p=d.current;if(!p)return;const C=Symbol("modal");Mn.push(C),p.contains(document.activeElement)||jt(pi(p)[0]??p);const w=R=>{if(Mn[Mn.length-1]!==C||R.defaultPrevented)return;if(R.key==="Escape"){x.current&&v.current();return}if(R.key!=="Tab")return;const A=pi(p);if(A.length===0){R.preventDefault(),jt(p);return}const I=A[0],M=A[A.length-1],B=document.activeElement,V=p.contains(B);R.shiftKey&&(!V||B===I)?(R.preventDefault(),jt(M)):!R.shiftKey&&(!V||B===M)&&(R.preventDefault(),jt(I))};return document.addEventListener("keydown",w),()=>{document.removeEventListener("keydown",w);const R=Mn.indexOf(C);R!==-1&&Mn.splice(R,1),b&&b!==document.body&&b.isConnected&&jt(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:Te("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||!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(Dm,{})}),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(_l,{size:24})}),u.jsx("div",{className:Te("p-6",l?"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})]})]})},jr=[{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:"भारत"}],Wl=jr[0],Lm="movmo_locale_preferences",Xm=(e,t)=>jr.find(r=>r.languageCode.toLowerCase()===e.toLowerCase()&&r.regionCode.toLowerCase()===t.toLowerCase())??Wl,Hm=e=>e.languageDisplay,Zm=()=>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"})}),zm=({isOpen:e,onClose:t,currentLanguageCode:r,currentRegionCode:a,onLocaleSelect:n,translateIconUrl:o})=>{const i=s=>s.languageCode===r&&s.regionCode===a;return u.jsxs(mn,{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(Zm,{})]}),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:jr.map(s=>{const l=i(s);return u.jsxs("button",{onClick:()=>n(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}`)})})]})},Mr=[{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:"₫"}],Ym=Mr[0],Jm=e=>Mr.find(t=>t.code.toUpperCase()===e.toUpperCase())??Ym,Ll=e=>e.code===e.symbol?e.code:`${e.code} – ${e.symbol}`,Um=({isOpen:e,onClose:t,currentCurrencyCode:r,onCurrencySelect:a})=>u.jsxs(mn,{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:Mr.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:Ll(n)})]},n.code)})})]});var $m=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(s){return a[s]}).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=E},function(e,t,r){var a;/*!
|
|
110
|
+
*/var Ko;function Mg(){return Ko||(Ko=1,process.env.NODE_ENV!=="production"&&function(){function e(x,b){return x===b&&(x!==0||1/x===1/b)||x!==x&&b!==b}function t(x,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 C=p[0].inst,w=p[1];return l(function(){C.value=h,C.getSnapshot=b,r(C)&&w({inst:C})},[x,h,b]),s(function(){return r(C)&&w({inst:C}),x(function(){r(C)&&w({inst:C})})},[x]),c(h),h}function r(x){var b=x.getSnapshot;x=x.value;try{var h=b();return!o(x,h)}catch{return!0}}function a(x,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=E,o=typeof Object.is=="function"?Object.is:e,i=n.useState,s=n.useEffect,l=n.useLayoutEffect,c=n.useDebugValue,d=!1,f=!1,v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?a:t;Jr.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:v,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Jr}process.env.NODE_ENV==="production"?da.exports=jg():da.exports=Mg();var Fg=da.exports;function kg(){return Fg.useSyncExternalStore(Bg,()=>!0,()=>!1)}function Bg(){return()=>{}}var Da="Avatar",[Vg]=Ig(Da),[_g,Bs]=Vg(Da),Vs=S.forwardRef((e,t)=>{const{__scopeAvatar:r,...a}=e,[n,o]=S.useState("idle");return u.jsx(_g,{scope:r,imageLoadingStatus:n,onImageLoadingStatusChange:o,children:u.jsx(_a.span,{...a,ref:t})})});Vs.displayName=Da;var _s="AvatarImage",Ds=S.forwardRef((e,t)=>{const{__scopeAvatar:r,src:a,onLoadingStatusChange:n=()=>{},...o}=e,i=Bs(_s,r),s=Dg(a,o),l=Fs(c=>{n(c),i.onImageLoadingStatusChange(c)});return An(()=>{s!=="idle"&&l(s)},[s,l]),s==="loaded"?u.jsx(_a.img,{...o,ref:t,src:a}):null});Ds.displayName=_s;var Ws="AvatarFallback",Ls=S.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:a,...n}=e,o=Bs(Ws,r),[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(_a.span,{...n,ref:t}):null});Ls.displayName=Ws;function qo(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:r}){const a=kg(),n=S.useRef(null),o=a?(n.current||(n.current=new window.Image),n.current):null,[i,s]=S.useState(()=>qo(o,e));return An(()=>{s(qo(o,e))},[o,e]),An(()=>{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 r=="string"&&(o.crossOrigin=r),()=>{o.removeEventListener("load",c),o.removeEventListener("error",d)}},[o,r,t]),i}var Wg=Vs,Lg=Ds,Xg=Ls;const Xs=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(Wg,{ref:a,className:Te("relative flex shrink-0 overflow-hidden rounded-full",n[e],t),...r})});Xs.displayName="Avatar";const Hs=S.forwardRef(({className:e,...t},r)=>u.jsx(Lg,{ref:r,className:Te("aspect-square h-full w-full object-cover",e),...t}));Hs.displayName="AvatarImage";const Zs=S.forwardRef(({className:e,...t},r)=>u.jsx(Xg,{ref:r,className:Te("flex h-full w-full items-center justify-center rounded-full bg-grayWarm-100 text-grayWarm-600 font-semibold",e),...t}));Zs.displayName="AvatarFallback";function rn(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 Gr(e,t=[]){let r=[];function a(o,i){const s=S.createContext(i),l=r.length;r=[...r,i];const c=f=>{var C;const{scope:v,children:x,...b}=f,h=((C=v==null?void 0:v[e])==null?void 0:C[l])||s,p=S.useMemo(()=>b,Object.values(b));return u.jsx(h.Provider,{value:p,children:x})};c.displayName=o+"Provider";function d(f,v){var h;const x=((h=v==null?void 0:v[e])==null?void 0:h[l])||s,b=S.useContext(x);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(s){const l=(s==null?void 0:s[e])||o;return S.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return n.scopeName=e,[a,Hg(n,...t)]}function Hg(...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((s,{useScope:l,scopeName:c})=>{const f=l(o)[`__scope${c}`];return{...s,...f}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}var Zg=S[" useInsertionEffect ".trim().toString()]||An;function Xn({prop:e,defaultProp:t,onChange:r=()=>{},caller:a}){const[n,o,i]=zg({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:n;{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 v=Yg(d)?d(e):d;v!==e&&((f=i.current)==null||f.call(i,v))}else o(d)},[s,e,o,i]);return[l,c]}function zg({defaultProp:e,onChange:t}){const[r,a]=S.useState(e),n=S.useRef(r),o=S.useRef(t);return Zg(()=>{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 Yg(e){return typeof e=="function"}function Jg(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 Ug(e){const[t,r]=S.useState(void 0);return An(()=>{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,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;r({width:i,height:s})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else r(void 0)},[e]),t}function fa(e){const t=$g(e),r=S.forwardRef((a,n)=>{const{children:o,...i}=a,s=S.Children.toArray(o),l=s.find(Kg);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: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 $g(e){const t=S.forwardRef((r,a)=>{const{children:n,...o}=r;if(S.isValidElement(n)){const i=em(n),s=qg(o,n.props);return n.type!==S.Fragment&&(s.ref=a?Va(a,i):i),S.cloneElement(n,s)}return S.Children.count(n)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Qg=Symbol("radix.slottable");function Kg(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qg}function qg(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]=(...s)=>{const l=o(...s);return n(...s),l}:n&&(r[a]=n):a==="style"?r[a]={...n,...o}:a==="className"&&(r[a]=[n,o].filter(Boolean).join(" "))}return{...e,...r}}function em(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 tm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],gn=tm.reduce((e,t)=>{const r=fa(`Primitive.${t}`),a=S.forwardRef((n,o)=>{const{asChild:i,...s}=n,l=i?r: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}},{}),Pr="Switch",[nm]=Gr(Pr),[rm,am]=nm(Pr),zs=S.forwardRef((e,t)=>{const{__scopeSwitch:r,name:a,checked:n,defaultChecked:o,required:i,disabled:s,value:l="on",onCheckedChange:c,form:d,...f}=e,[v,x]=S.useState(null),b=Dn(t,R=>x(R)),h=S.useRef(!1),p=v?d||!!v.closest("form"):!0,[C,w]=Xn({prop:n,defaultProp:o??!1,onChange:c,caller:Pr});return u.jsxs(rm,{scope:r,checked:C,disabled:s,children:[u.jsx(gn.button,{type:"button",role:"switch","aria-checked":C,"aria-required":i,"data-state":$s(C),"data-disabled":s?"":void 0,disabled:s,value:l,...f,ref:b,onClick:rn(e.onClick,R=>{w(A=>!A),p&&(h.current=R.isPropagationStopped(),h.current||R.stopPropagation())})}),p&&u.jsx(Us,{control:v,bubbles:!h.current,name:a,value:l,checked:C,required:i,disabled:s,form:d,style:{transform:"translateX(-100%)"}})]})});zs.displayName=Pr;var Ys="SwitchThumb",Js=S.forwardRef((e,t)=>{const{__scopeSwitch:r,...a}=e,n=am(Ys,r);return u.jsx(gn.span,{"data-state":$s(n.checked),"data-disabled":n.disabled?"":void 0,...a,ref:t})});Js.displayName=Ys;var om="SwitchBubbleInput",Us=S.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:a=!0,...n},o)=>{const i=S.useRef(null),s=Dn(i,o),l=Jg(r),c=Ug(t);return S.useEffect(()=>{const d=i.current;if(!d)return;const f=window.HTMLInputElement.prototype,x=Object.getOwnPropertyDescriptor(f,"checked").set;if(l!==r&&x){const b=new Event("click",{bubbles:a});x.call(d,r),d.dispatchEvent(b)}},[l,r,a]),u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...n,tabIndex:-1,ref:s,style:{...n.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Us.displayName=om;function $s(e){return e?"checked":"unchecked"}var im=zs,sm=Js;const Wa=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(im,{ref:a,className:Te("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(sm,{className:Te("pointer-events-none block rounded-full bg-white shadow-xs transition-transform data-[state=unchecked]:translate-x-0",o[e])})})});Wa.displayName="Toggle";function lm(e){const t=e+"CollectionProvider",[r,a]=Gr(t),[n,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=h=>{const{scope:p,children:C}=h,w=E.useRef(null),R=E.useRef(new Map).current;return u.jsx(n,{scope:p,itemMap:R,collectionRef:w,children:C})};i.displayName=t;const s=e+"CollectionSlot",l=fa(s),c=E.forwardRef((h,p)=>{const{scope:C,children:w}=h,R=o(s,C),A=Dn(p,R.collectionRef);return u.jsx(l,{ref:A,children:w})});c.displayName=s;const d=e+"CollectionItemSlot",f="data-radix-collection-item",v=fa(d),x=E.forwardRef((h,p)=>{const{scope:C,children:w,...R}=h,A=E.useRef(null),I=Dn(p,A),M=o(d,C);return E.useEffect(()=>(M.itemMap.set(A,{ref:A,...R}),()=>void M.itemMap.delete(A))),u.jsx(v,{[f]:"",ref:I,children:w})});x.displayName=d;function b(h){const p=o(e+"CollectionConsumer",h);return E.useCallback(()=>{const w=p.collectionRef.current;if(!w)return[];const R=Array.from(w.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:x},b,a]}var um=S[" useId ".trim().toString()]||(()=>{}),cm=0;function dm(e){const[t,r]=S.useState(um());return An(()=>{r(a=>a??String(cm++))},[e]),t?`radix-${t}`:""}var fm=S.createContext(void 0);function Qs(e){const t=S.useContext(fm);return e||t||"ltr"}var Ur="rovingFocusGroup.onEntryFocus",pm={bubbles:!1,cancelable:!0},Hn="RovingFocusGroup",[pa,Ks,gm]=lm(Hn),[mm,qs]=Gr(Hn,[gm]),[bm,hm]=mm(Hn),el=S.forwardRef((e,t)=>u.jsx(pa.Provider,{scope:e.__scopeRovingFocusGroup,children:u.jsx(pa.Slot,{scope:e.__scopeRovingFocusGroup,children:u.jsx(vm,{...e,ref:t})})}));el.displayName=Hn;var vm=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:a,loop:n=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...f}=e,v=S.useRef(null),x=Dn(t,v),b=Qs(o),[h,p]=Xn({prop:i,defaultProp:s??null,onChange:l,caller:Hn}),[C,w]=S.useState(!1),R=Fs(c),A=Ks(r),I=S.useRef(!1),[M,B]=S.useState(0);return S.useEffect(()=>{const V=v.current;if(V)return V.addEventListener(Ur,R),()=>V.removeEventListener(Ur,R)},[R]),u.jsx(bm,{scope:r,orientation:a,dir:b,loop:n,currentTabStopId:h,onItemFocus:S.useCallback(V=>p(V),[p]),onItemShiftTab:S.useCallback(()=>w(!0),[]),onFocusableItemAdd:S.useCallback(()=>B(V=>V+1),[]),onFocusableItemRemove:S.useCallback(()=>B(V=>V-1),[]),children:u.jsx(gn.div,{tabIndex:C||M===0?-1:0,"data-orientation":a,...f,ref:x,style:{outline:"none",...e.style},onMouseDown:rn(e.onMouseDown,()=>{I.current=!0}),onFocus:rn(e.onFocus,V=>{const q=!I.current;if(V.target===V.currentTarget&&q&&!C){const J=new CustomEvent(Ur,pm);if(V.currentTarget.dispatchEvent(J),!J.defaultPrevented){const ae=A().filter(T=>T.focusable),H=ae.find(T=>T.active),pe=ae.find(T=>T.id===h),O=[H,pe,...ae].filter(Boolean).map(T=>T.ref.current);rl(O,d)}}I.current=!1}),onBlur:rn(e.onBlur,()=>w(!1))})})}),tl="RovingFocusGroupItem",nl=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:a=!0,active:n=!1,tabStopId:o,children:i,...s}=e,l=dm(),c=o||l,d=hm(tl,r),f=d.currentTabStopId===c,v=Ks(r),{onFocusableItemAdd:x,onFocusableItemRemove:b,currentTabStopId:h}=d;return S.useEffect(()=>{if(a)return x(),()=>b()},[a,x,b]),u.jsx(pa.ItemSlot,{scope:r,id:c,focusable:a,active:n,children:u.jsx(gn.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...s,ref:t,onMouseDown:rn(e.onMouseDown,p=>{a?d.onItemFocus(c):p.preventDefault()}),onFocus:rn(e.onFocus,()=>d.onItemFocus(c)),onKeyDown:rn(e.onKeyDown,p=>{if(p.key==="Tab"&&p.shiftKey){d.onItemShiftTab();return}if(p.target!==p.currentTarget)return;const C=xm(p,d.orientation,d.dir);if(C!==void 0){if(p.metaKey||p.ctrlKey||p.altKey||p.shiftKey)return;p.preventDefault();let R=v().filter(A=>A.focusable).map(A=>A.ref.current);if(C==="last")R.reverse();else if(C==="prev"||C==="next"){C==="prev"&&R.reverse();const A=R.indexOf(p.currentTarget);R=d.loop?Im(R,A+1):R.slice(A+1)}setTimeout(()=>rl(R))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:h!=null}):i})})});nl.displayName=tl;var ym={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Cm(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function xm(e,t,r){const a=Cm(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return ym[a]}function rl(e,t=!1){const r=document.activeElement;for(const a of e)if(a===r||(a.focus({preventScroll:t}),document.activeElement!==r))return}function Im(e,t){return e.map((r,a)=>e[(t+a)%e.length])}var Sm=el,Am=nl,al="Toggle",ol=S.forwardRef((e,t)=>{const{pressed:r,defaultPressed:a,onPressedChange:n,...o}=e,[i,s]=Xn({prop:r,onChange:n,defaultProp:a??!1,caller:al});return u.jsx(gn.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0,...o,ref:t,onClick:rn(e.onClick,()=>{e.disabled||s(!i)})})});ol.displayName=al;var on="ToggleGroup",[il]=Gr(on,[qs]),sl=qs(),La=E.forwardRef((e,t)=>{const{type:r,...a}=e;if(r==="single"){const n=a;return u.jsx(wm,{...n,ref:t})}if(r==="multiple"){const n=a;return u.jsx(Em,{...n,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${on}\``)});La.displayName=on;var[ll,ul]=il(on),wm=E.forwardRef((e,t)=>{const{value:r,defaultValue:a,onValueChange:n=()=>{},...o}=e,[i,s]=Xn({prop:r,defaultProp:a??"",onChange:n,caller:on});return u.jsx(ll,{scope:e.__scopeToggleGroup,type:"single",value:E.useMemo(()=>i?[i]:[],[i]),onItemActivate:s,onItemDeactivate:E.useCallback(()=>s(""),[s]),children:u.jsx(cl,{...o,ref:t})})}),Em=E.forwardRef((e,t)=>{const{value:r,defaultValue:a,onValueChange:n=()=>{},...o}=e,[i,s]=Xn({prop:r,defaultProp:a??[],onChange:n,caller:on}),l=E.useCallback(d=>s((f=[])=>[...f,d]),[s]),c=E.useCallback(d=>s((f=[])=>f.filter(v=>v!==d)),[s]);return u.jsx(ll,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:c,children:u.jsx(cl,{...o,ref:t})})});La.displayName=on;var[Rm,Nm]=il(on),cl=E.forwardRef((e,t)=>{const{__scopeToggleGroup:r,disabled:a=!1,rovingFocus:n=!0,orientation:o,dir:i,loop:s=!0,...l}=e,c=sl(r),d=Qs(i),f={role:"group",dir:d,...l};return u.jsx(Rm,{scope:r,rovingFocus:n,disabled:a,children:n?u.jsx(Sm,{asChild:!0,...c,orientation:o,dir:d,loop:s,children:u.jsx(gn.div,{...f,ref:t})}):u.jsx(gn.div,{...f,ref:t})})}),Ir="ToggleGroupItem",dl=E.forwardRef((e,t)=>{const r=ul(Ir,e.__scopeToggleGroup),a=Nm(Ir,e.__scopeToggleGroup),n=sl(e.__scopeToggleGroup),o=r.value.includes(e.value),i=a.disabled||e.disabled,s={...e,pressed:o,disabled:i},l=E.useRef(null);return a.rovingFocus?u.jsx(Am,{asChild:!0,...n,focusable:!i,active:o,ref:l,children:u.jsx(ei,{...s,ref:t})}):u.jsx(ei,{...s,ref:t})});dl.displayName=Ir;var ei=E.forwardRef((e,t)=>{const{__scopeToggleGroup:r,value:a,...n}=e,o=ul(Ir,r),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=o.type==="single"?i:void 0;return u.jsx(ol,{...s,...n,ref:t,onPressedChange:l=>{l?o.onItemActivate(a):o.onItemDeactivate(a)}})}),Gm=La,Pm=dl;const fl=S.forwardRef(({className:e,...t},r)=>u.jsx(Gm,{ref:r,className:Te("inline-flex items-center rounded-lg border border-grayWarm-200 overflow-hidden",e),...t}));fl.displayName="ToggleGroup";const pl=S.forwardRef(({className:e,children:t,...r},a)=>u.jsx(Pm,{ref:a,className:Te("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}));pl.displayName="ToggleGroupItem";const gl=S.forwardRef(({className:e,...t},r)=>u.jsx("textarea",{ref:r,className:Te("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}));gl.displayName="Textarea";const ml=({currentPage:e,totalPages:t,onPageChange:r,className:a})=>{const n=()=>{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:Te("flex items-center justify-between",a),children:[u.jsxs("button",{onClick:()=>r(e-1),disabled:e<=1,className:Te("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(vg,{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:Te("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:Te("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(yg,{className:"w-4 h-4"})]})]})};ml.displayName="Pagination";const bl=S.forwardRef(({className:e,...t},r)=>u.jsxs("div",{className:Te("relative",e),children:[u.jsx(Cg,{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:Te("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})]}));bl.displayName="SearchInput";const hl=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:Te("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(xg,{className:"w-3 h-3"})})]})});hl.displayName="Chip";const ga=({value:e,onChange:t,travelerType:r,departureDate:a,uniqueId:n,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"],v=new Date().getUTCFullYear(),x=E.useMemo(()=>i==="future"?Array.from({length:21},(P,O)=>v+O):Array.from({length:120},(P,O)=>v-O),[v,i]),[b,h]=E.useState(e?new Date(e).getUTCMonth():void 0),[p,C]=E.useState(e?new Date(e).getUTCDate():void 0),[w,R]=E.useState(e?new Date(e).getUTCFullYear():void 0),A=(P,O)=>new Date(Date.UTC(O,P+1,0)).getUTCDate(),I=E.useMemo(()=>b!==void 0?A(b,w??2e3):31,[b,w]),M=E.useRef(void 0);E.useEffect(()=>{if(e&&e!==M.current)try{const P=new Date(e);isNaN(P.getTime())||(h(P.getUTCMonth()),C(P.getUTCDate()),R(P.getUTCFullYear()))}catch(P){console.error("Invalid date format:",P)}},[e]),E.useEffect(()=>{p!==void 0&&p>I&&C(I)},[I,p]),E.useEffect(()=>{if(b!==void 0&&p!==void 0&&w!==void 0){const P=Math.min(p,A(b,w)),O=new Date(Date.UTC(w,b,P)),T=O.toISOString();if(M.current=T,e){const Y=new Date(e);if(!isNaN(Y.getTime())&&Y.getTime()===O.getTime())return}t(T)}},[b,p,w]);const B=P=>{P&&h(f.indexOf(P.value))},V=P=>{if(P===""){C(void 0);return}const O=parseInt(P,10);isNaN(O)||C(Math.min(Math.max(O,1),I))},q=P=>{if(P){const O=parseInt(P.value,10);isNaN(O)||R(O)}},J=s&&b===void 0,ae=s&&p===void 0,H=s&&w===void 0,pe=P=>P?{control:(O,T)=>({...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: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(_n,{value:b!==void 0?{value:f[b],label:f[b]}:null,options:f.map(P=>({value:P,label:P})),placeholder:"Month*",onChange:B,styles:pe(J),isSearchable:d})}),u.jsx("div",{className:"relative w-full md:max-w-[80px]",children:u.jsx(Dt,{type:"text",inputMode:"numeric",required:!0,placeholder:"Day",value:p!==void 0?p:"",onChange:P=>V(P.target.value),disabled:b===void 0,max:I,min:1,className:`text-xs md:text-sm border-grayWarm-300 rounded-lg h-10${ae?" 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(_n,{value:w!==void 0?{value:w.toString(),label:w.toString()}:null,options:x.map(P=>({value:P.toString(),label:P.toString()})),placeholder:"Year*",onChange:q,styles:pe(H),isSearchable:!0})})]})]})};var tn={},Or={};Object.defineProperty(Or,"__esModule",{value:!0});Or.Gender=void 0;var ti;(function(e){e.MALE="male",e.FEMALE="female",e.DEFAULT=""})(ti||(Or.Gender=ti={}));var Tr={};Object.defineProperty(Tr,"__esModule",{value:!0});Tr.CustomerResourceType=void 0;var ni;(function(e){e.STORAGE="storage",e.HOSTING="hosting",e.DNS="dns",e.AUTHENTICATION="authentication",e.AUTHORIZATION="authorization"})(ni||(Tr.CustomerResourceType=ni={}));var vl={};Object.defineProperty(vl,"__esModule",{value:!0});var an={};Object.defineProperty(an,"__esModule",{value:!0});an.TravelerType=an.FlightOfferSegmentLegType=an.FlightOfferDataSource=void 0;var ri;(function(e){e.Amadeus="amadeus"})(ri||(an.FlightOfferDataSource=ri={}));var ai;(function(e){e.Inbound="inbound",e.Outbound="outbound"})(ai||(an.FlightOfferSegmentLegType=ai={}));var oi;(function(e){e.ADULT="adult",e.CHILD="child",e.INFANT="infant"})(oi||(an.TravelerType=oi={}));var St={};Object.defineProperty(St,"__esModule",{value:!0});St.OTPAction=St.AuthenticationChallengeResponse=St.AuthenticationChallengeName=St.AuthenticationUserStatus=St.AuthenticationUsernameType=void 0;var ii;(function(e){e.EMAIL="email",e.PHONE_NUMBER="phoneNumber"})(ii||(St.AuthenticationUsernameType=ii={}));var si;(function(e){e.CONFIRMED="CONFIRMED",e.UNCONFIRMED="UNCONFIRMED"})(si||(St.AuthenticationUserStatus=si={}));var li;(function(e){e.SMS_OTP="SMS_OTP",e.EMAIL_OTP="EMAIL_OTP",e.CONFIRM_SIGN_UP="CONFIRM_SIGN_UP"})(li||(St.AuthenticationChallengeName=li={}));var ui;(function(e){e.SMS_OTP_CODE="SMS_OTP_CODE",e.EMAIL_OTP_CODE="EMAIL_OTP_CODE"})(ui||(St.AuthenticationChallengeResponse=ui={}));var ci;(function(e){e.EMAILED="emailed",e.TEXTED="texted"})(ci||(St.OTPAction=ci={}));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 Nl={};Object.defineProperty(Nl,"__esModule",{value:!0});var Lt={};Object.defineProperty(Lt,"__esModule",{value:!0});Lt.MOVMO_PARTNER_ORIGINS=Lt.MOVMO_FLIGHTS_ORIGINS=Lt.MovmoFrameMessageType=void 0;Lt.isTrustedOrigin=Om;var di;(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"})(di||(Lt.MovmoFrameMessageType=di={}));Lt.MOVMO_FLIGHTS_ORIGINS={prod:["https://flights.movmo.io"],nonProd:["https://flights.e2e.movmo.io","http://localhost:3000"]};Lt.MOVMO_PARTNER_ORIGINS={prod:[],nonProd:["https://mockairline-e2e.app.flyeasyapp.com","https://mockairline-e2e.app.movmoapp.com","http://localhost:3000"]};function Om(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 Xa={};Object.defineProperty(Xa,"__esModule",{value:!0});Xa.mapIdentityPartners=Tm;function Tm(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 Gl={};(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[s]=i.split("."),l=e.PAIR_COPY[s],c=a.has(`${s}.read`)&&a.has(`${s}.write`);if(l&&c){n.has(s)||(n.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}})(Gl);var Pl={};Object.defineProperty(Pl,"__esModule",{value:!0});(function(e){var t=er&&er.__createBinding||(Object.create?function(a,n,o,i){i===void 0&&(i=o);var s=Object.getOwnPropertyDescriptor(n,o);(!s||("get"in s?!n.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(a,i,s)}:function(a,n,o,i){i===void 0&&(i=o),a[i]=n[o]}),r=er&&er.__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(Or,e),r(Tr,e),r(vl,e),r(an,e),r(St,e),r(yl,e),r(Cl,e),r(xl,e),r(Il,e),r(Sl,e),r(Al,e),r(wl,e),r(El,e),r(Rl,e),r(Nl,e),r(Lt,e),r(Xa,e),r(Gl,e),r(Pl,e)})(tn);const ma=[{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:r,setMiddleName:a,lastName:n,setLastName:o,gender:i,setGender:s,knownTravelerNumber:l,setKnownTravelerNumber:c,dateOfBirth:d,setDateOfBirth:f,travelerType:v,departureDate:x,uniqueId:b,ktnAdornment:h,additionalFields:p,errorState:C=!1,errorMessage:w,firstNameError:R=!1,firstNameErrorMessage:A,middleNameError:I=!1,middleNameErrorMessage:M,lastNameError:B=!1,lastNameErrorMessage:V,showPassportFields:q=!1,passportNumber:J,setPassportNumber:ae,issuingCountry:H,setIssuingCountry:pe,expirationDate:P,setExpirationDate:O,passportErrorState:T=!1,passportErrorMessage:Y})=>{const ge=Object.values(tn.Gender).filter(_=>_!==tn.Gender.DEFAULT).map(_=>({value:_.toString(),label:_.charAt(0).toUpperCase()+_.slice(1)})),Ne=_=>{_&&(_.value===tn.Gender.MALE?s(tn.Gender.MALE):_.value===tn.Gender.FEMALE&&s(tn.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(Dt,{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(Dt,{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&&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(Dt,{type:"text",required:!0,placeholder:"Last name",value:n,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&&V&&u.jsx("p",{className:"text-error-700 text-sm mt-1",children:V})]})]}),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(_n,{value:ge.find(_=>_.value===i)||null,placeholder:"Gender",options:ge,onChange:Ne,"data-testid":"gender-dropdown"})}),u.jsxs("div",{className:"md:order-none order-2 relative",children:[u.jsx(Dt,{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(ga,{value:d,onChange:f,travelerType:v,departureDate:x,uniqueId:b}),q&&(()=>{const _=T&&!(J||"").trim(),L=T&&!(H||"").trim(),W=T&&!(P||"").trim(),U=L?{control:(F,m)=>({...F,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"}),T&&Y&&u.jsx("p",{className:"text-error-700 text-sm mt-1",children:Y}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 mt-2",children:[u.jsx(Dt,{type:"text",placeholder:"Passport number",required:!0,value:J||"",onChange:F=>ae==null?void 0:ae(F.target.value),className:`text-xs md:text-sm${_?" border-error-500":""}`,id:`passport-number-${b}`,name:`passport-number-${b}`}),u.jsx(_n,{value:H&&ma.find(F=>F.value===H)||null,placeholder:"Issuing country",options:ma,isSearchable:!0,onChange:F=>pe==null?void 0:pe((F==null?void 0:F.value)||""),styles:U})]}),u.jsx(ga,{value:P,onChange:F=>O==null?void 0:O(F),label:"Expiration date",labelClassName:"text-sm font-medium text-grayWarm-600",className:"mt-4",yearDirection:"future",uniqueId:b?`passport-exp-${b}`:void 0,errorState:W})]})})(),C&&u.jsx("div",{className:"text-error-700 text-sm mt-3",children:w||"Error saving passenger. Please try again."})]})},Mm=E.createContext({}),Ol=!0;function Fm({baseColor:e,highlightColor:t,width:r,height:a,borderRadius:n,circle:o,direction:i,duration:s,enableAnimation:l=Ol,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 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 Gt({count:e=1,wrapper:t,className:r,containerClassName:a,containerTestId:n,circle:o=!1,style:i,...s}){var l,c,d;const f=E.useContext(Mm),v={...s};for(const[R,A]of Object.entries(s))typeof A>"u"&&delete v[R];const x={...f,...v,circle:o},b={...i,...Fm(x)};let h="react-loading-skeleton";r&&(h+=` ${r}`);const p=(l=x.inline)!==null&&l!==void 0?l:!1,C=[],w=Math.ceil(e);for(let R=0;R<w;R++){let A=b;if(w>e&&R===w-1){const M=(c=A.width)!==null&&c!==void 0?c:"100%",B=e%1,V=typeof M=="number"?M*B:`calc(${M} * ${B})`;A={...A,width:V}}const I=E.createElement("span",{className:h,style:A,key:R},"");p?C.push(I):C.push(E.createElement(E.Fragment,{key:R},I,E.createElement("br",null)))}return E.createElement("span",{className:a,"data-testid":n,"aria-live":"polite","aria-busy":(d=x.enableAnimation)!==null&&d!==void 0?d:Ol},t?C.map((R,A)=>E.createElement(t,{key:A},R)):C)}const km=({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(Gt,{height:40,borderRadius:8}),u.jsx(Gt,{height:40,borderRadius:8}),u.jsx(Gt,{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(Gt,{height:44,borderRadius:8}),u.jsx(Gt,{height:40,borderRadius:8})]}),e,u.jsxs("div",{className:"mt-7",children:[u.jsx(Gt,{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(Gt,{height:44,borderRadius:8})}),u.jsx("div",{className:"w-full md:max-w-[80px]",children:u.jsx(Gt,{height:40,borderRadius:8})}),u.jsx("div",{className:"w-full md:max-w-[140px]",children:u.jsx(Gt,{height:44,borderRadius:8})})]})]}),t&&u.jsxs("div",{className:"flex gap-3 mt-8 pt-4 border-t border-grayWarm-200",children:[u.jsx(Gt,{height:40,borderRadius:8,containerClassName:"flex-1"}),u.jsx(Gt,{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]}),Ha=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"})}),Tl=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"})}),jl=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"})}),Ml=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"})}),Fl=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"})}),kl=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"})}),Za=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"})}),Bl=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M12 5V19M5 12H19"})}),Bm=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"})}),za=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"})}),Vl=e=>u.jsx(mt,{...e,children:u.jsx("path",{d:"M18 6L6 18M6 6L18 18"})}),Ya=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"})}),Zn=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"})}),Vm=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"})}),_l=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 jt(e){if(e)try{e.focus()}catch(t){if(t instanceof DOMException&&t.name==="SecurityError")return;throw t}}const _m=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),fi=e=>Array.from(e.querySelectorAll(_m)),Mn=[],Dm=()=>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"})}),mn=e=>e.isOpen?u.jsx(Wm,{...e}):null,Wm=({onClose:e,title:t,children:r,footer:a,maxWidth:n="max-w-screen-sm",maxWidthPx:o,footerHasBorder:i=!1,hideCloseButton:s=!1,allowOverflow:l=!1,header:c="bar"})=>{const d=E.useRef(null),f=E.useId(),v=E.useRef(e);v.current=e;const x=E.useRef(!s);x.current=!s;const[b]=E.useState(()=>typeof document>"u"?null:document.activeElement);E.useEffect(()=>{const p=d.current;if(!p)return;const C=Symbol("modal");Mn.push(C),p.contains(document.activeElement)||jt(fi(p)[0]??p);const w=R=>{if(Mn[Mn.length-1]!==C||R.defaultPrevented)return;if(R.key==="Escape"){x.current&&v.current();return}if(R.key!=="Tab")return;const A=fi(p);if(A.length===0){R.preventDefault(),jt(p);return}const I=A[0],M=A[A.length-1],B=document.activeElement,V=p.contains(B);R.shiftKey&&(!V||B===I)?(R.preventDefault(),jt(M)):!R.shiftKey&&(!V||B===M)&&(R.preventDefault(),jt(I))};return document.addEventListener("keydown",w),()=>{document.removeEventListener("keydown",w);const R=Mn.indexOf(C);R!==-1&&Mn.splice(R,1),b&&b!==document.body&&b.isConnected&&jt(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:Te("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||!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(Dm,{})}),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(Vl,{size:24})}),u.jsx("div",{className:Te("p-6",l?"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})]})]})},jr=[{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=jr[0],Lm="movmo_locale_preferences",Xm=(e,t)=>jr.find(r=>r.languageCode.toLowerCase()===e.toLowerCase()&&r.regionCode.toLowerCase()===t.toLowerCase())??Dl,Hm=e=>e.languageDisplay,Zm=()=>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"})}),zm=({isOpen:e,onClose:t,currentLanguageCode:r,currentRegionCode:a,onLocaleSelect:n,translateIconUrl:o})=>{const i=s=>s.languageCode===r&&s.regionCode===a;return u.jsxs(mn,{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(Zm,{})]}),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:jr.map(s=>{const l=i(s);return u.jsxs("button",{onClick:()=>n(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}`)})})]})},Mr=[{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:"₫"}],Ym=Mr[0],Jm=e=>Mr.find(t=>t.code.toUpperCase()===e.toUpperCase())??Ym,Wl=e=>e.code===e.symbol?e.code:`${e.code} – ${e.symbol}`,Um=({isOpen:e,onClose:t,currentCurrencyCode:r,onCurrencySelect:a})=>u.jsxs(mn,{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:Mr.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:Wl(n)})]},n.code)})})]});var $m=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(s){return a[s]}).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=E},function(e,t,r){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=[],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)n.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,r){(function(a){var n=/^\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")(),v=Object.prototype.toString,x=f.Symbol,b=x?x.prototype:void 0,h=b?b.toString:void 0;function p(A){if(typeof A=="string")return A;if(w(A))return h?h.call(A):"";var I=A+"";return I=="0"&&1/A==-1/0?"-0":I}function C(A){var I=typeof A;return!!A&&(I=="object"||I=="function")}function w(A){return typeof A=="symbol"||function(I){return!!I&&typeof I=="object"}(A)&&v.call(A)=="[object Symbol]"}function R(A){return A?(A=function(I){if(typeof I=="number")return I;if(w(I))return NaN;if(C(I)){var M=typeof I.valueOf=="function"?I.valueOf():I;I=C(M)?M+"":M}if(typeof I!="string")return I===0?I:+I;I=I.replace(n,"");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,V,q,J;return A=(B=A)==null?"":p(B),V=function(ae){var H=R(ae),pe=H%1;return H==H?pe?H-pe:H:0}(M),q=0,J=A.length,V==V&&(J!==void 0&&(V=V<=J?V:J),q!==void 0&&(V=V>=q?V:q)),M=V,I=p(I),A.slice(M,M+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,s=o||i||Function("return this")(),l,c=Array.prototype,d=Function.prototype,f=Object.prototype,v=s["__core-js_shared__"],x=(l=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||""))?"Symbol(src)_1."+l:"",b=d.toString,h=f.hasOwnProperty,p=f.toString,C=RegExp("^"+b.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),w=c.splice,R=ae(s,"Map"),A=ae(Object,"create");function I(P){var O=-1,T=P?P.length:0;for(this.clear();++O<T;){var Y=P[O];this.set(Y[0],Y[1])}}function M(P){var O=-1,T=P?P.length:0;for(this.clear();++O<T;){var Y=P[O];this.set(Y[0],Y[1])}}function B(P){var O=-1,T=P?P.length:0;for(this.clear();++O<T;){var Y=P[O];this.set(Y[0],Y[1])}}function V(P,O){for(var T,Y,ge=P.length;ge--;)if((T=P[ge][0])===(Y=O)||T!=T&&Y!=Y)return ge;return-1}function q(P){return!(!pe(P)||(O=P,x&&x in O))&&(function(T){var Y=pe(T)?p.call(T):"";return Y=="[object Function]"||Y=="[object GeneratorFunction]"}(P)||function(T){var Y=!1;if(T!=null&&typeof T.toString!="function")try{Y=!!(T+"")}catch{}return Y}(P)?C:n).test(function(T){if(T!=null){try{return b.call(T)}catch{}try{return T+""}catch{}}return""}(P));var O}function J(P,O){var T,Y,ge=P.__data__;return((Y=typeof(T=O))=="string"||Y=="number"||Y=="symbol"||Y=="boolean"?T!=="__proto__":T===null)?ge[typeof O=="string"?"string":"hash"]:ge.map}function ae(P,O){var T=function(Y,ge){return Y==null?void 0:Y[ge]}(P,O);return q(T)?T:void 0}function H(P,O){if(typeof P!="function"||O&&typeof O!="function")throw new TypeError("Expected a function");var T=function(){var Y=arguments,ge=O?O.apply(this,Y):Y[0],Ne=T.cache;if(Ne.has(ge))return Ne.get(ge);var _=P.apply(this,Y);return T.cache=Ne.set(ge,_),_};return T.cache=new(H.Cache||B),T}function pe(P){var O=typeof P;return!!P&&(O=="object"||O=="function")}I.prototype.clear=function(){this.__data__=A?A(null):{}},I.prototype.delete=function(P){return this.has(P)&&delete this.__data__[P]},I.prototype.get=function(P){var O=this.__data__;if(A){var T=O[P];return T==="__lodash_hash_undefined__"?void 0:T}return h.call(O,P)?O[P]:void 0},I.prototype.has=function(P){var O=this.__data__;return A?O[P]!==void 0:h.call(O,P)},I.prototype.set=function(P,O){return this.__data__[P]=A&&O===void 0?"__lodash_hash_undefined__":O,this},M.prototype.clear=function(){this.__data__=[]},M.prototype.delete=function(P){var O=this.__data__,T=V(O,P);return!(T<0)&&(T==O.length-1?O.pop():w.call(O,T,1),!0)},M.prototype.get=function(P){var O=this.__data__,T=V(O,P);return T<0?void 0:O[T][1]},M.prototype.has=function(P){return V(this.__data__,P)>-1},M.prototype.set=function(P,O){var T=this.__data__,Y=V(T,P);return Y<0?T.push([P,O]):T[Y][1]=O,this},B.prototype.clear=function(){this.__data__={hash:new I,map:new(R||M),string:new I}},B.prototype.delete=function(P){return J(this,P).delete(P)},B.prototype.get=function(P){return J(this,P).get(P)},B.prototype.has=function(P){return J(this,P).has(P)},B.prototype.set=function(P,O){return J(this,P).set(P,O),this},H.Cache=B,e.exports=H}).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,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")(),v=Object.prototype.toString,x=Math.max,b=Math.min,h=function(){return f.Date.now()};function p(w){var R=typeof w;return!!w&&(R=="object"||R=="function")}function C(w){if(typeof w=="number")return w;if(function(I){return typeof I=="symbol"||function(M){return!!M&&typeof M=="object"}(I)&&v.call(I)=="[object Symbol]"}(w))return NaN;if(p(w)){var R=typeof w.valueOf=="function"?w.valueOf():w;w=p(R)?R+"":R}if(typeof w!="string")return w===0?w:+w;w=w.replace(n,"");var A=i.test(w);return A||s.test(w)?l(w.slice(2),A?2:8):o.test(w)?NaN:+w}e.exports=function(w,R,A){var I,M,B,V,q,J,ae=0,H=!1,pe=!1,P=!0;if(typeof w!="function")throw new TypeError("Expected a function");function O(L){var W=I,U=M;return I=M=void 0,ae=L,V=w.apply(U,W)}function T(L){return ae=L,q=setTimeout(ge,R),H?O(L):V}function Y(L){var W=L-J;return J===void 0||W>=R||W<0||pe&&L-ae>=B}function ge(){var L=h();if(Y(L))return Ne(L);q=setTimeout(ge,function(W){var U=R-(W-J);return pe?b(U,B-(W-ae)):U}(L))}function Ne(L){return q=void 0,P&&I?O(L):(I=M=void 0,V)}function _(){var L=h(),W=Y(L);if(I=arguments,M=this,J=L,W){if(q===void 0)return T(J);if(pe)return q=setTimeout(ge,R),O(J)}return q===void 0&&(q=setTimeout(ge,R)),V}return R=C(R)||0,p(A)&&(H=!!A.leading,B=(pe="maxWait"in A)?x(C(A.maxWait)||0,R):B,P="trailing"in A?!!A.trailing:P),_.cancel=function(){q!==void 0&&clearTimeout(q),ae=0,I=J=M=q=void 0},_.flush=function(){return q===void 0?V:Ne(h())},_}}).call(this,r(3))},function(e,t,r){(function(a,n){var o="[object Arguments]",i="[object Map]",s="[object Object]",l="[object Set]",c=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d=/^\w*$/,f=/^\./,v=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,x=/\\(\\)?/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 C=typeof a=="object"&&a&&a.Object===Object&&a,w=typeof self=="object"&&self&&self.Object===Object&&self,R=C||w||Function("return this")(),A=t&&!t.nodeType&&t,I=A&&typeof n=="object"&&n&&!n.nodeType&&n,M=I&&I.exports===A&&C.process,B=function(){try{return M&&M.binding("util")}catch{}}(),V=B&&B.isTypedArray;function q(g,N,k,Z){var te=-1,ue=g?g.length:0;for(Z&&ue&&(k=g[++te]);++te<ue;)k=N(k,g[te],te,g);return k}function J(g,N){for(var k=-1,Z=g?g.length:0;++k<Z;)if(N(g[k],k,g))return!0;return!1}function ae(g,N,k,Z,te){return te(g,function(ue,Se,ze){k=Z?(Z=!1,ue):N(k,ue,Se,ze)}),k}function H(g){var N=!1;if(g!=null&&typeof g.toString!="function")try{N=!!(g+"")}catch{}return N}function pe(g){var N=-1,k=Array(g.size);return g.forEach(function(Z,te){k[++N]=[te,Z]}),k}function P(g){var N=-1,k=Array(g.size);return g.forEach(function(Z){k[++N]=Z}),k}var O,T,Y,ge=Array.prototype,Ne=Function.prototype,_=Object.prototype,L=R["__core-js_shared__"],W=(O=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||""))?"Symbol(src)_1."+O:"",U=Ne.toString,F=_.hasOwnProperty,m=_.toString,ce=RegExp("^"+U.call(F).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),de=R.Symbol,oe=R.Uint8Array,we=_.propertyIsEnumerable,Ce=ge.splice,Ee=(T=Object.keys,Y=Object,function(g){return T(Y(g))}),z=j(R,"DataView"),Me=j(R,"Map"),Ge=j(R,"Promise"),G=j(R,"Set"),D=j(R,"WeakMap"),$=j(Object,"create"),ve=ht(z),ie=ht(Me),ye=ht(Ge),xe=ht(G),Re=ht(D),ee=de?de.prototype:void 0,le=ee?ee.valueOf:void 0,Ie=ee?ee.toString:void 0;function ne(g){var N=-1,k=g?g.length:0;for(this.clear();++N<k;){var Z=g[N];this.set(Z[0],Z[1])}}function re(g){var N=-1,k=g?g.length:0;for(this.clear();++N<k;){var Z=g[N];this.set(Z[0],Z[1])}}function _e(g){var N=-1,k=g?g.length:0;for(this.clear();++N<k;){var Z=g[N];this.set(Z[0],Z[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 re(g)}function ut(g,N){var k=y(g)||un(g)?function(Se,ze){for(var Je=-1,Ze=Array(Se);++Je<Se;)Ze[Je]=ze(Je);return Ze}(g.length,String):[],Z=k.length,te=!!Z;for(var ue in g)!F.call(g,ue)||te&&(ue=="length"||se(ue,Z))||k.push(ue);return k}function bt(g,N){for(var k=g.length;k--;)if(ln(g[k][0],N))return k;return-1}ne.prototype.clear=function(){this.__data__=$?$(null):{}},ne.prototype.delete=function(g){return this.has(g)&&delete this.__data__[g]},ne.prototype.get=function(g){var N=this.__data__;if($){var k=N[g];return k==="__lodash_hash_undefined__"?void 0:k}return F.call(N,g)?N[g]:void 0},ne.prototype.has=function(g){var N=this.__data__;return $?N[g]!==void 0:F.call(N,g)},ne.prototype.set=function(g,N){return this.__data__[g]=$&&N===void 0?"__lodash_hash_undefined__":N,this},re.prototype.clear=function(){this.__data__=[]},re.prototype.delete=function(g){var N=this.__data__,k=bt(N,g);return!(k<0)&&(k==N.length-1?N.pop():Ce.call(N,k,1),!0)},re.prototype.get=function(g){var N=this.__data__,k=bt(N,g);return k<0?void 0:N[k][1]},re.prototype.has=function(g){return bt(this.__data__,g)>-1},re.prototype.set=function(g,N){var k=this.__data__,Z=bt(k,g);return Z<0?k.push([g,N]):k[Z][1]=N,this},_e.prototype.clear=function(){this.__data__={hash:new ne,map:new(Me||re),string:new ne}},_e.prototype.delete=function(g){return Bt(this,g).delete(g)},_e.prototype.get=function(g){return Bt(this,g).get(g)},_e.prototype.has=function(g){return Bt(this,g).has(g)},_e.prototype.set=function(g,N){return Bt(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 re},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 re){var Z=k.__data__;if(!Me||Z.length<199)return Z.push([g,N]),this;k=this.__data__=new _e(Z)}return k.set(g,N),this};var At,$e=(At=function(g,N){return g&&Pt(g,N,nt)},function(g,N){if(g==null)return g;if(!X(g))return At(g,N);for(var k=g.length,Z=-1,te=Object(g);++Z<k&&N(te[Z],Z,te)!==!1;);return g}),Pt=function(g){return function(N,k,Z){for(var te=-1,ue=Object(N),Se=Z(N),ze=Se.length;ze--;){var Je=Se[++te];if(k(ue[Je],Je,ue)===!1)break}return N}}();function kt(g,N){for(var k=0,Z=(N=He(N,g)?[N]:zt(N)).length;g!=null&&k<Z;)g=g[it(N[k++])];return k&&k==Z?g:void 0}function sn(g,N){return g!=null&&N in Object(g)}function wt(g,N,k,Z,te){return g===N||(g==null||N==null||!je(g)&&!Fe(N)?g!=g&&N!=N:function(ue,Se,ze,Je,Ze,ke){var It=y(ue),dt=y(Se),st="[object Array]",lt="[object Array]";It||(st=(st=K(ue))==o?s:st),dt||(lt=(lt=K(Se))==o?s:lt);var Nt=st==s&&!H(ue),bn=lt==s&&!H(Se),Ut=st==lt;if(Ut&&!Nt)return ke||(ke=new Ke),It||Oe(ue)?Yt(ue,Se,ze,Je,Ze,ke):function(Ye,Le,Vr,cn,Yn,Ct,Vt){switch(Vr){case"[object DataView]":if(Ye.byteLength!=Le.byteLength||Ye.byteOffset!=Le.byteOffset)return!1;Ye=Ye.buffer,Le=Le.buffer;case"[object ArrayBuffer]":return!(Ye.byteLength!=Le.byteLength||!cn(new oe(Ye),new oe(Le)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ln(+Ye,+Le);case"[object Error]":return Ye.name==Le.name&&Ye.message==Le.message;case"[object RegExp]":case"[object String]":return Ye==Le+"";case i:var $t=pe;case l:var Rn=2&Ct;if($t||($t=P),Ye.size!=Le.size&&!Rn)return!1;var Jn=Vt.get(Ye);if(Jn)return Jn==Le;Ct|=1,Vt.set(Ye,Le);var hn=Yt($t(Ye),$t(Le),cn,Yn,Ct,Vt);return Vt.delete(Ye),hn;case"[object Symbol]":if(le)return le.call(Ye)==le.call(Le)}return!1}(ue,Se,st,ze,Je,Ze,ke);if(!(2&Ze)){var uo=Nt&&F.call(ue,"__wrapped__"),co=bn&&F.call(Se,"__wrapped__");if(uo||co){var su=uo?ue.value():ue,lu=co?Se.value():Se;return ke||(ke=new Ke),ze(su,lu,Je,Ze,ke)}}return Ut?(ke||(ke=new Ke),function(Ye,Le,Vr,cn,Yn,Ct){var Vt=2&Yn,$t=nt(Ye),Rn=$t.length,Jn=nt(Le).length;if(Rn!=Jn&&!Vt)return!1;for(var hn=Rn;hn--;){var Qt=$t[hn];if(!(Vt?Qt in Le:F.call(Le,Qt)))return!1}var fo=Ct.get(Ye);if(fo&&Ct.get(Le))return fo==Le;var Un=!0;Ct.set(Ye,Le),Ct.set(Le,Ye);for(var _r=Vt;++hn<Rn;){Qt=$t[hn];var $n=Ye[Qt],Qn=Le[Qt];if(cn)var po=Vt?cn(Qn,$n,Qt,Le,Ye,Ct):cn($n,Qn,Qt,Ye,Le,Ct);if(!(po===void 0?$n===Qn||Vr($n,Qn,cn,Yn,Ct):po)){Un=!1;break}_r||(_r=Qt=="constructor")}if(Un&&!_r){var Kn=Ye.constructor,qn=Le.constructor;Kn==qn||!("constructor"in Ye)||!("constructor"in Le)||typeof Kn=="function"&&Kn instanceof Kn&&typeof qn=="function"&&qn instanceof qn||(Un=!1)}return Ct.delete(Ye),Ct.delete(Le),Un}(ue,Se,ze,Je,Ze,ke)):!1}(g,N,wt,k,Z,te))}function Et(g){return!(!je(g)||function(N){return!!W&&W in N}(g))&&(Q(g)||H(g)?ce:b).test(ht(g))}function Rt(g){return typeof g=="function"?g:g==null?Qe:typeof g=="object"?y(g)?function(Z,te){return He(Z)&&tt(te)?pt(it(Z),te):function(ue){var Se=function(ze,Je,Ze){var ke=ze==null?void 0:kt(ze,Je);return ke===void 0?Ze:ke}(ue,Z);return Se===void 0&&Se===te?function(ze,Je){return ze!=null&&function(Ze,ke,It){ke=He(ke,Ze)?[ke]:zt(ke);for(var dt,st=-1,lt=ke.length;++st<lt;){var Nt=it(ke[st]);if(!(dt=Ze!=null&&It(Ze,Nt)))break;Ze=Ze[Nt]}return dt||!!(lt=Ze?Ze.length:0)&&be(lt)&&se(Nt,lt)&&(y(Ze)||un(Ze))}(ze,Je,sn)}(ue,Z):wt(te,Se,void 0,3)}}(g[0],g[1]):function(Z){var te=function(ue){for(var Se=nt(ue),ze=Se.length;ze--;){var Je=Se[ze],Ze=ue[Je];Se[ze]=[Je,Ze,tt(Ze)]}return Se}(Z);return te.length==1&&te[0][2]?pt(te[0][0],te[0][1]):function(ue){return ue===Z||function(Se,ze,Je,Ze){var ke=Je.length,It=ke;if(Se==null)return!It;for(Se=Object(Se);ke--;){var dt=Je[ke];if(dt[2]?dt[1]!==Se[dt[0]]:!(dt[0]in Se))return!1}for(;++ke<It;){var st=(dt=Je[ke])[0],lt=Se[st],Nt=dt[1];if(dt[2]){if(lt===void 0&&!(st in Se))return!1}else{var bn=new Ke,Ut;if(!(Ut===void 0?wt(Nt,lt,Ze,3,bn):Ut))return!1}}return!0}(ue,Z,te)}}(g):He(N=g)?(k=it(N),function(Z){return Z==null?void 0:Z[k]}):function(Z){return function(te){return kt(te,Z)}}(N);var N,k}function Zt(g){if(k=(N=g)&&N.constructor,Z=typeof k=="function"&&k.prototype||_,N!==Z)return Ee(g);var N,k,Z,te=[];for(var ue in Object(g))F.call(g,ue)&&ue!="constructor"&&te.push(ue);return te}function zt(g){return y(g)?g:ct(g)}function Yt(g,N,k,Z,te,ue){var Se=2&te,ze=g.length,Je=N.length;if(ze!=Je&&!(Se&&Je>ze))return!1;var Ze=ue.get(g);if(Ze&&ue.get(N))return Ze==N;var ke=-1,It=!0,dt=1&te?new ot:void 0;for(ue.set(g,N),ue.set(N,g);++ke<ze;){var st=g[ke],lt=N[ke];if(Z)var Nt=Se?Z(lt,st,ke,N,g,ue):Z(st,lt,ke,g,N,ue);if(Nt!==void 0){if(Nt)continue;It=!1;break}if(dt){if(!J(N,function(bn,Ut){if(!dt.has(Ut)&&(st===bn||k(st,bn,Z,te,ue)))return dt.add(Ut)})){It=!1;break}}else if(st!==lt&&!k(st,lt,Z,te,ue)){It=!1;break}}return ue.delete(g),ue.delete(N),It}function Bt(g,N){var k,Z,te=g.__data__;return((Z=typeof(k=N))=="string"||Z=="number"||Z=="symbol"||Z=="boolean"?k!=="__proto__":k===null)?te[typeof N=="string"?"string":"hash"]:te.map}function j(g,N){var k=function(Z,te){return Z==null?void 0:Z[te]}(g,N);return Et(k)?k:void 0}var K=function(g){return m.call(g)};function se(g,N){return!!(N=N??9007199254740991)&&(typeof g=="number"||h.test(g))&&g>-1&&g%1==0&&g<N}function He(g,N){if(y(g))return!1;var k=typeof g;return!(k!="number"&&k!="symbol"&&k!="boolean"&&g!=null&&!Pe(g))||d.test(g)||!c.test(g)||N!=null&&g in Object(N)}function tt(g){return g==g&&!je(g)}function pt(g,N){return function(k){return k!=null&&k[g]===N&&(N!==void 0||g in Object(k))}}(z&&K(new z(new ArrayBuffer(1)))!="[object DataView]"||Me&&K(new Me)!=i||Ge&&K(Ge.resolve())!="[object Promise]"||G&&K(new G)!=l||D&&K(new D)!="[object WeakMap]")&&(K=function(g){var N=m.call(g),k=N==s?g.constructor:void 0,Z=k?ht(k):void 0;if(Z)switch(Z){case ve:return"[object DataView]";case ie:return i;case ye:return"[object Promise]";case xe:return l;case Re:return"[object WeakMap]"}return N});var ct=Jt(function(g){var N;g=(N=g)==null?"":function(Z){if(typeof Z=="string")return Z;if(Pe(Z))return Ie?Ie.call(Z):"";var te=Z+"";return te=="0"&&1/Z==-1/0?"-0":te}(N);var k=[];return f.test(g)&&k.push(""),g.replace(v,function(Z,te,ue,Se){k.push(ue?Se.replace(x,"$1"):te||Z)}),k});function it(g){if(typeof g=="string"||Pe(g))return g;var N=g+"";return N=="0"&&1/g==-1/0?"-0":N}function ht(g){if(g!=null){try{return U.call(g)}catch{}try{return g+""}catch{}}return""}function Jt(g,N){if(typeof g!="function"||N&&typeof N!="function")throw new TypeError("Expected a function");var k=function(){var Z=arguments,te=N?N.apply(this,Z):Z[0],ue=k.cache;if(ue.has(te))return ue.get(te);var Se=g.apply(this,Z);return k.cache=ue.set(te,Se),Se};return k.cache=new(Jt.Cache||_e),k}function ln(g,N){return g===N||g!=g&&N!=N}function un(g){return function(N){return Fe(N)&&X(N)}(g)&&F.call(g,"callee")&&(!we.call(g,"callee")||m.call(g)==o)}Jt.Cache=_e;var y=Array.isArray;function X(g){return g!=null&&be(g.length)&&!Q(g)}function Q(g){var N=je(g)?m.call(g):"";return N=="[object Function]"||N=="[object GeneratorFunction]"}function be(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=9007199254740991}function je(g){var N=typeof g;return!!g&&(N=="object"||N=="function")}function Fe(g){return!!g&&typeof g=="object"}function Pe(g){return typeof g=="symbol"||Fe(g)&&m.call(g)=="[object Symbol]"}var Oe=V?function(g){return function(N){return g(N)}}(V):function(g){return Fe(g)&&be(g.length)&&!!p[m.call(g)]};function nt(g){return X(g)?ut(g):Zt(g)}function Qe(g){return g}n.exports=function(g,N,k){var Z=y(g)?q:ae,te=arguments.length<3;return Z(g,Rt(N),k,te,$e)}}).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(_,L,W){return L in _?Object.defineProperty(_,L,{value:W,enumerable:!0,configurable:!0,writable:!0}):_[L]=W,_}function n(_){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 W=0,U=new Array(L.length);W<L.length;W++)U[W]=L[W];return U}}(_)||n(_)||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 W=0;W<L.length;W++){var U=L[W];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(_,U.key,U)}}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 v(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function x(_){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(L){return L.__proto__||Object.getPrototypeOf(L)})(_)}function b(_,L){return(b=Object.setPrototypeOf||function(W,U){return W.__proto__=U,W})(_,L)}r.r(t);var h=r(0),p=r.n(h),C=r(5),w=r.n(C),R=r(4),A=r.n(R),I=r(6),M=r.n(I),B=r(2),V=r.n(B),q=r(1),J=r.n(q);r(8);function ae(_,L){return i(_)||function(W,U){var F=[],m=!0,ce=!1,de=void 0;try{for(var oe,we=W[Symbol.iterator]();!(m=(oe=we.next()).done)&&(F.push(oe.value),!U||F.length!==U);m=!0);}catch(Ce){ce=!0,de=Ce}finally{try{m||we.return==null||we.return()}finally{if(ce)throw de}}return F}(_,L)||s()}var H=[["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"]],pe=[["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 P(_,L,W,U,F){return!W||F?_+"".padEnd(L.length,".")+" "+U:_+"".padEnd(L.length,".")+" "+W}function O(_,L,W,U,F){var m,ce,de=[];return ce=L===!0,[(m=[]).concat.apply(m,o(_.map(function(oe){var we={name:oe[0],regions:oe[1],iso2:oe[2],countryCode:oe[3],dialCode:oe[3],format:P(W,oe[3],oe[4],U,F),priority:oe[5]||0},Ce=[];return oe[6]&&oe[6].map(function(Ee){var z=function(Me){for(var Ge=1;Ge<arguments.length;Ge++){var G=arguments[Ge]!=null?arguments[Ge]:{},D=Object.keys(G);typeof Object.getOwnPropertySymbols=="function"&&(D=D.concat(Object.getOwnPropertySymbols(G).filter(function($){return Object.getOwnPropertyDescriptor(G,$).enumerable}))),D.forEach(function($){a(Me,$,G[$])})}return Me}({},we);z.dialCode=oe[3]+Ee,z.isAreaCode=!0,z.areaCodeLength=Ee.length,Ce.push(z)}),Ce.length>0?(we.mainCode=!0,ce||L.constructor.name==="Array"&&L.includes(oe[2])?(we.hasAreaCodes=!0,[we].concat(Ce)):(de=de.concat(Ce),[we])):[we]}))),de]}function T(_,L,W,U){if(W!==null){var F=Object.keys(W),m=Object.values(W);F.forEach(function(ce,de){if(U)return _.push([ce,m[de]]);var oe=_.findIndex(function(Ce){return Ce[0]===ce});if(oe===-1){var we=[ce];we[L]=m[de],_.push(we)}else _[oe][L]=m[de]})}}function Y(_,L){return L.length===0?_:_.map(function(W){var U=L.findIndex(function(m){return m[0]===W[2]});if(U===-1)return W;var F=L[U];return F[1]&&(W[4]=F[1]),F[3]&&(W[5]=F[3]),F[2]&&(W[6]=F[2]),W})}var ge=function _(L,W,U,F,m,ce,de,oe,we,Ce,Ee,z,Me,Ge){l(this,_),this.filterRegions=function(ee,le){if(typeof ee=="string"){var Ie=ee;return le.filter(function(ne){return ne.regions.some(function(re){return re===Ie})})}return le.filter(function(ne){return ee.map(function(re){return ne.regions.some(function(_e){return _e===re})}).some(function(re){return re})})},this.sortTerritories=function(ee,le){var Ie=[].concat(o(ee),o(le));return Ie.sort(function(ne,re){return ne.name<re.name?-1:ne.name>re.name?1:0}),Ie},this.getFilteredCountryList=function(ee,le,Ie){return ee.length===0?le:Ie?ee.map(function(ne){var re=le.find(function(_e){return _e.iso2===ne});if(re)return re}).filter(function(ne){return ne}):le.filter(function(ne){return ee.some(function(re){return re===ne.iso2})})},this.localizeCountries=function(ee,le,Ie){for(var ne=0;ne<ee.length;ne++)le[ee[ne].iso2]!==void 0?ee[ne].localName=le[ee[ne].iso2]:le[ee[ne].name]!==void 0&&(ee[ne].localName=le[ee[ne].name]);return Ie||ee.sort(function(re,_e){return re.localName<_e.localName?-1:re.localName>_e.localName?1:0}),ee},this.getCustomAreas=function(ee,le){for(var Ie=[],ne=0;ne<le.length;ne++){var re=JSON.parse(JSON.stringify(ee));re.dialCode+=le[ne],Ie.push(re)}return Ie},this.excludeCountries=function(ee,le){return le.length===0?ee:ee.filter(function(Ie){return!le.includes(Ie.iso2)})};var G=function(ee,le,Ie){var ne=[];return T(ne,1,ee,!0),T(ne,3,le),T(ne,2,Ie),ne}(oe,we,Ce),D=Y(JSON.parse(JSON.stringify(H)),G),$=Y(JSON.parse(JSON.stringify(pe)),G),ve=ae(O(D,L,z,Me,Ge),2),ie=ve[0],ye=ve[1];if(W){var xe=ae(O($,L,z,Me,Ge),2),Re=xe[0];xe[1],ie=this.sortTerritories(Re,ie)}U&&(ie=this.filterRegions(U,ie)),this.onlyCountries=this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(F,ie,de.includes("onlyCountries")),ce),Ee,de.includes("onlyCountries")),this.preferredCountries=m.length===0?[]:this.localizeCountries(this.getFilteredCountryList(m,ie,de.includes("preferredCountries")),Ee,de.includes("preferredCountries")),this.hiddenAreaCodes=this.excludeCountries(this.getFilteredCountryList(F,ye),ce)},Ne=function(_){function L(F){var m;l(this,L),(m=function(G,D){return!D||f(D)!=="object"&&typeof D!="function"?v(G):D}(this,x(L).call(this,F))).getProbableCandidate=A()(function(G){return G&&G.length!==0?m.state.onlyCountries.filter(function(D){return V()(D.name.toLowerCase(),G.toLowerCase())},v(v(m)))[0]:null}),m.guessSelectedCountry=A()(function(G,D,$,ve){var ie;if(m.props.enableAreaCodes===!1&&(ve.some(function(Re){if(V()(G,Re.dialCode))return $.some(function(ee){if(Re.iso2===ee.iso2&&ee.mainCode)return ie=ee,!0}),!0}),ie))return ie;var ye=$.find(function(Re){return Re.iso2==D});if(G.trim()==="")return ye;var xe=$.reduce(function(Re,ee){return V()(G,ee.dialCode)&&(ee.dialCode.length>Re.dialCode.length||ee.dialCode.length===Re.dialCode.length&&ee.priority<Re.priority)?ee:Re},{dialCode:"",priority:10001},v(v(m)));return xe.name?xe:ye}),m.updateCountry=function(G){var D,$=m.state.onlyCountries;(D=G.indexOf(0)>="0"&&G.indexOf(0)<="9"?$.find(function(ve){return ve.dialCode==+G}):$.find(function(ve){return ve.iso2==G}))&&D.dialCode&&m.setState({selectedCountry:D,formattedNumber:m.props.disableCountryCode?"":m.formatNumber(D.dialCode,D)})},m.scrollTo=function(G,D){if(G){var $=m.dropdownRef;if($&&document.body){var ve=$.offsetHeight,ie=$.getBoundingClientRect().top+document.body.scrollTop,ye=ie+ve,xe=G,Re=xe.getBoundingClientRect(),ee=xe.offsetHeight,le=Re.top+document.body.scrollTop,Ie=le+ee,ne=le-ie+$.scrollTop,re=ve/2-ee/2;if(m.props.enableSearch?le<ie+32:le<ie)D&&(ne-=re),$.scrollTop=ne;else if(Ie>ye){D&&(ne+=re);var _e=ve-ee;$.scrollTop=ne-_e}}}},m.scrollToTop=function(){var G=m.dropdownRef;G&&document.body&&(G.scrollTop=0)},m.formatNumber=function(G,D){if(!D)return G;var $,ve=D.format,ie=m.props,ye=ie.disableCountryCode,xe=ie.enableAreaCodeStretch,Re=ie.enableLongNumbers,ee=ie.autoFormat;if(ye?(($=ve.split(" ")).shift(),$=$.join(" ")):xe&&D.isAreaCode?(($=ve.split(" "))[1]=$[1].replace(/\.+/,"".padEnd(D.areaCodeLength,".")),$=$.join(" ")):$=ve,!G||G.length===0)return ye?"":m.props.prefix;if(G&&G.length<2||!$||!ee)return ye?G:m.props.prefix+G;var le,Ie=M()($,function(ne,re){if(ne.remainingText.length===0)return ne;if(re!==".")return{formattedText:ne.formattedText+re,remainingText:ne.remainingText};var _e,ot=i(_e=ne.remainingText)||n(_e)||s(),Ke=ot[0],ut=ot.slice(1);return{formattedText:ne.formattedText+Ke,remainingText:ut}},{formattedText:"",remainingText:G.split("")});return(le=Re?Ie.formattedText+Ie.remainingText.join(""):Ie.formattedText).includes("(")&&!le.includes(")")&&(le+=")"),le},m.cursorToEnd=function(){var G=m.numberInputRef;if(document.activeElement===G){G.focus();var D=G.value.length;G.value.charAt(D-1)===")"&&(D-=1),G.setSelectionRange(D,D)}},m.getElement=function(G){return m["flag_no_".concat(G)]},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(G){if(G.preventDefault(),m.state.showDropdown||!m.props.disabled){var D=m.state,$=D.preferredCountries,ve=D.onlyCountries,ie=D.selectedCountry,ye=m.concatPreferredCountries($,ve).findIndex(function(xe){return xe.dialCode===ie.dialCode&&xe.iso2===ie.iso2});m.setState({showDropdown:!m.state.showDropdown,highlightCountryIndex:ye},function(){m.state.showDropdown&&m.scrollTo(m.getElement(m.state.highlightCountryIndex))})}},m.handleInput=function(G){var D=G.target.value,$=m.props,ve=$.prefix,ie=$.onChange,ye=m.props.disableCountryCode?"":ve,xe=m.state.selectedCountry,Re=m.state.freezeSelection;if(!m.props.countryCodeEditable){var ee=ve+(xe.hasAreaCodes?m.state.onlyCountries.find(function($e){return $e.iso2===xe.iso2&&$e.mainCode}).dialCode:xe.dialCode);if(D.slice(0,ee.length)!==ee)return}if(D===ve)return ie&&ie("",m.getCountryData(),G,""),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){G.preventDefault?G.preventDefault():G.returnValue=!1;var le=m.props.country,Ie=m.state,ne=Ie.onlyCountries,re=Ie.selectedCountry,_e=Ie.hiddenAreaCodes;if(ie&&G.persist(),D.length>0){var ot=D.replace(/\D/g,"");(!m.state.freezeSelection||re&&re.dialCode.length>ot.length)&&(xe=m.props.disableCountryGuess?re:m.guessSelectedCountry(ot.substring(0,6),le,ne,_e)||re,Re=!1),ye=m.formatNumber(ot,xe),xe=xe.dialCode?xe:re}var Ke=G.target.selectionStart,ut=G.target.selectionStart,bt=m.state.formattedNumber,At=ye.length-bt.length;m.setState({formattedNumber:ye,freezeSelection:Re,selectedCountry:xe},function(){At>0&&(ut-=At),ye.charAt(ye.length-1)==")"?m.numberInputRef.setSelectionRange(ye.length-1,ye.length-1):ut>0&&bt.length>=ye.length?m.numberInputRef.setSelectionRange(ut,ut):Ke<bt.length&&m.numberInputRef.setSelectionRange(Ke,Ke),ie&&ie(ye.replace(/[^0-9]+/g,""),m.getCountryData(),G,ye)})}},m.handleInputClick=function(G){m.setState({showDropdown:!1}),m.props.onClick&&m.props.onClick(G,m.getCountryData())},m.handleDoubleClick=function(G){var D=G.target.value.length;G.target.setSelectionRange(0,D)},m.handleFlagItemClick=function(G,D){var $=m.state.selectedCountry,ve=m.state.onlyCountries.find(function(Re){return Re==G});if(ve){var ie=m.state.formattedNumber.replace(" ","").replace("(","").replace(")","").replace("-",""),ye=ie.length>1?ie.replace($.dialCode,ve.dialCode):ve.dialCode,xe=m.formatNumber(ye.replace(/\D/g,""),ve);m.setState({showDropdown:!1,selectedCountry:ve,freezeSelection:!0,formattedNumber:xe,searchValue:""},function(){m.cursorToEnd(),m.props.onChange&&m.props.onChange(xe.replace(/[^0-9]+/g,""),m.getCountryData(),D,xe)})}},m.handleInputFocus=function(G){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(G,m.getCountryData()),m.props.jumpCursorToEnd&&setTimeout(m.cursorToEnd,0)},m.handleInputBlur=function(G){G.target.value||m.setState({placeholder:m.props.placeholder}),m.props.onBlur&&m.props.onBlur(G,m.getCountryData())},m.handleInputCopy=function(G){if(m.props.copyNumbersOnly){var D=window.getSelection().toString().replace(/[^0-9]+/g,"");G.clipboardData.setData("text/plain",D),G.preventDefault()}},m.getHighlightCountryIndex=function(G){var D=m.state.highlightCountryIndex+G;return D<0||D>=m.state.onlyCountries.length+m.state.preferredCountries.length?D-G:m.props.enableSearch&&D>m.getSearchFilteredCountries().length?0:D},m.searchCountry=function(){var G=m.getProbableCandidate(m.state.queryString)||m.state.onlyCountries[0],D=m.state.onlyCountries.findIndex(function($){return $==G})+m.state.preferredCountries.length;m.scrollTo(m.getElement(D),!0),m.setState({queryString:"",highlightCountryIndex:D})},m.handleKeydown=function(G){var D=m.props.keys,$=G.target.className;if($.includes("selected-flag")&&G.which===D.ENTER&&!m.state.showDropdown)return m.handleFlagDropdownClick(G);if($.includes("form-control")&&(G.which===D.ENTER||G.which===D.ESC))return G.target.blur();if(m.state.showDropdown&&!m.props.disabled&&(!$.includes("search-box")||G.which===D.UP||G.which===D.DOWN||G.which===D.ENTER||G.which===D.ESC&&G.target.value==="")){G.preventDefault?G.preventDefault():G.returnValue=!1;var ve=function(ie){m.setState({highlightCountryIndex:m.getHighlightCountryIndex(ie)},function(){m.scrollTo(m.getElement(m.state.highlightCountryIndex),!0)})};switch(G.which){case D.DOWN:ve(1);break;case D.UP:ve(-1);break;case D.ENTER:m.props.enableSearch?m.handleFlagItemClick(m.getSearchFilteredCountries()[m.state.highlightCountryIndex]||m.getSearchFilteredCountries()[0],G):m.handleFlagItemClick([].concat(o(m.state.preferredCountries),o(m.state.onlyCountries))[m.state.highlightCountryIndex],G);break;case D.ESC:case D.TAB:m.setState({showDropdown:!1},m.cursorToEnd);break;default:(G.which>=D.A&&G.which<=D.Z||G.which===D.SPACE)&&m.setState({queryString:m.state.queryString+String.fromCharCode(G.which)},m.state.debouncedQueryStingSearcher)}}},m.handleInputKeyDown=function(G){var D=m.props,$=D.keys,ve=D.onEnterKeyPress,ie=D.onKeyDown;G.which===$.ENTER&&ve&&ve(G),ie&&ie(G)},m.handleClickOutside=function(G){m.dropdownRef&&!m.dropdownContainerRef.contains(G.target)&&m.state.showDropdown&&m.setState({showDropdown:!1})},m.handleSearchChange=function(G){var D=G.currentTarget.value,$=m.state,ve=$.preferredCountries,ie=$.selectedCountry,ye=0;if(D===""&&ie){var xe=m.state.onlyCountries;ye=m.concatPreferredCountries(ve,xe).findIndex(function(Re){return Re==ie}),setTimeout(function(){return m.scrollTo(m.getElement(ye))},100)}m.setState({searchValue:D,highlightCountryIndex:ye})},m.concatPreferredCountries=function(G,D){return G.length>0?o(new Set(G.concat(D))):D},m.getDropdownCountryName=function(G){return G.localName||G.name},m.getSearchFilteredCountries=function(){var G=m.state,D=G.preferredCountries,$=G.onlyCountries,ve=G.searchValue,ie=m.props.enableSearch,ye=m.concatPreferredCountries(D,$),xe=ve.trim().toLowerCase().replace("+","");if(ie&&xe){if(/^\d+$/.test(xe))return ye.filter(function(le){var Ie=le.dialCode;return["".concat(Ie)].some(function(ne){return ne.toLowerCase().includes(xe)})});var Re=ye.filter(function(le){var Ie=le.iso2;return["".concat(Ie)].some(function(ne){return ne.toLowerCase().includes(xe)})}),ee=ye.filter(function(le){var Ie=le.name,ne=le.localName;return le.iso2,["".concat(Ie),"".concat(ne||"")].some(function(re){return re.toLowerCase().includes(xe)})});return m.scrollToTop(),o(new Set([].concat(Re,ee)))}return ye},m.getCountryDropdownList=function(){var G=m.state,D=G.preferredCountries,$=G.highlightCountryIndex,ve=G.showDropdown,ie=G.searchValue,ye=m.props,xe=ye.disableDropdown,Re=ye.prefix,ee=m.props,le=ee.enableSearch,Ie=ee.searchNotFound,ne=ee.disableSearchIcon,re=ee.searchClass,_e=ee.searchStyle,ot=ee.searchPlaceholder,Ke=ee.autocompleteSearch,ut=m.getSearchFilteredCountries().map(function($e,Pt){var kt=$===Pt,sn=J()({country:!0,preferred:$e.iso2==="us"||$e.iso2==="gb",active:$e.iso2==="us",highlight:kt}),wt="flag ".concat($e.iso2);return p.a.createElement("li",Object.assign({ref:function(Et){return m["flag_no_".concat(Pt)]=Et},key:"flag_no_".concat(Pt),"data-flag-key":"flag_no_".concat(Pt),className:sn,"data-dial-code":"1",tabIndex:xe?"-1":"0","data-country-code":$e.iso2,onClick:function(Et){return m.handleFlagItemClick($e,Et)},role:"option"},kt?{"aria-selected":!0}:{}),p.a.createElement("div",{className:wt}),p.a.createElement("span",{className:"country-name"},m.getDropdownCountryName($e)),p.a.createElement("span",{className:"dial-code"},$e.format?m.formatNumber($e.dialCode,$e):Re+$e.dialCode))}),bt=p.a.createElement("li",{key:"dashes",className:"divider"});D.length>0&&(!le||le&&!ie.trim())&&ut.splice(D.length,0,bt);var At=J()(a({"country-list":!0,hide:!ve},m.props.dropdownClass,!0));return p.a.createElement("ul",{ref:function($e){return!le&&$e&&$e.focus(),m.dropdownRef=$e},className:At,style:m.props.dropdownStyle,role:"listbox",tabIndex:"0"},le&&p.a.createElement("li",{className:J()(a({search:!0},re,re))},!ne&&p.a.createElement("span",{className:J()(a({"search-emoji":!0},"".concat(re,"-emoji"),re)),role:"img","aria-label":"Magnifying glass"},"🔎"),p.a.createElement("input",{className:J()(a({"search-box":!0},"".concat(re,"-box"),re)),style:_e,type:"search",placeholder:ot,autoFocus:!0,autoComplete:Ke?"on":"off",value:ie,onChange:m.handleSearchChange})),ut.length>0?ut:p.a.createElement("li",{className:"no-entries-message"},p.a.createElement("span",null,Ie)))};var ce,de=new ge(F.enableAreaCodes,F.enableTerritories,F.regions,F.onlyCountries,F.preferredCountries,F.excludeCountries,F.preserveOrder,F.masks,F.priority,F.areaCodes,F.localization,F.prefix,F.defaultMask,F.alwaysDefaultMask),oe=de.onlyCountries,we=de.preferredCountries,Ce=de.hiddenAreaCodes,Ee=F.value?F.value.replace(/\D/g,""):"";ce=F.disableInitialCountryGuess?0:Ee.length>1?m.guessSelectedCountry(Ee.substring(0,6),F.country,oe,Ce)||0:F.country&&oe.find(function(G){return G.iso2==F.country})||0;var z,Me=Ee.length<2&&ce&&!V()(Ee,ce.dialCode)?ce.dialCode:"";z=Ee===""&&ce===0?"":m.formatNumber((F.disableCountryCode?"":Me)+Ee,ce.name?ce:void 0);var Ge=oe.findIndex(function(G){return G==ce});return m.state={showDropdown:F.showDropdown,formattedNumber:z,onlyCountries:oe,preferredCountries:we,hiddenAreaCodes:Ce,selectedCountry:ce,highlightCountryIndex:Ge,queryString:"",freezeSelection:!1,debouncedQueryStingSearcher:w()(m.searchCountry,250),searchValue:""},m}var W,U;return function(F,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(m&&m.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),m&&b(F,m)}(L,_),W=L,(U=[{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(F,m,ce){F.country!==this.props.country?this.updateCountry(this.props.country):F.value!==this.props.value&&this.updateFormattedNumber(this.props.value)}},{key:"updateFormattedNumber",value:function(F){if(F===null)return this.setState({selectedCountry:0,formattedNumber:""});var m=this.state,ce=m.onlyCountries,de=m.selectedCountry,oe=m.hiddenAreaCodes,we=this.props,Ce=we.country,Ee=we.prefix;if(F==="")return this.setState({selectedCountry:de,formattedNumber:""});var z,Me,Ge=F.replace(/\D/g,"");if(de&&V()(F,Ee+de.dialCode))Me=this.formatNumber(Ge,de),this.setState({formattedNumber:Me});else{var G=(z=this.props.disableCountryGuess?de:this.guessSelectedCountry(Ge.substring(0,6),Ce,ce,oe)||de)&&V()(Ge,Ee+z.dialCode)?z.dialCode:"";Me=this.formatNumber((this.props.disableCountryCode?"":G)+Ge,z||void 0),this.setState({selectedCountry:z,formattedNumber:Me})}}},{key:"render",value:function(){var F,m,ce,de=this,oe=this.state,we=oe.onlyCountries,Ce=oe.selectedCountry,Ee=oe.showDropdown,z=oe.formattedNumber,Me=oe.hiddenAreaCodes,Ge=this.props,G=Ge.disableDropdown,D=Ge.renderStringAsFlag,$=Ge.isValid,ve=Ge.defaultErrorMessage,ie=Ge.specialLabel;if(typeof $=="boolean")m=$;else{var ye=$(z.replace(/\D/g,""),Ce,we,Me);typeof ye=="boolean"?(m=ye)===!1&&(ce=ve):(m=!1,ce=ye)}var xe=J()((a(F={},this.props.containerClass,!0),a(F,"react-tel-input",!0),F)),Re=J()({arrow:!0,up:Ee}),ee=J()(a({"form-control":!0,"invalid-number":!m,open:Ee},this.props.inputClass,!0)),le=J()({"selected-flag":!0,open:Ee}),Ie=J()(a({"flag-dropdown":!0,"invalid-number":!m,open:Ee},this.props.buttonClass,!0)),ne="flag ".concat(Ce&&Ce.iso2);return p.a.createElement("div",{className:"".concat(xe," ").concat(this.props.className),style:this.props.style||this.props.containerStyle,onKeyDown:this.handleKeydown},ie&&p.a.createElement("div",{className:"special-label"},ie),ce&&p.a.createElement("div",{className:"invalid-number-message"},ce),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:z,onKeyDown:this.handleInputKeyDown,placeholder:this.props.placeholder,disabled:this.props.disabled,type:"tel"},this.props.inputProps,{ref:function(re){de.numberInputRef=re,typeof de.props.inputProps.ref=="function"?de.props.inputProps.ref(re):typeof de.props.inputProps.ref=="object"&&(de.props.inputProps.ref.current=re)}})),p.a.createElement("div",{className:Ie,style:this.props.buttonStyle,ref:function(re){return de.dropdownContainerRef=re}},D?p.a.createElement("div",{className:le},D):p.a.createElement("div",{onClick:G?void 0:this.handleFlagDropdownClick,className:le,title:Ce?"".concat(Ce.localName||Ce.name,": + ").concat(Ce.dialCode):"",tabIndex:G?"-1":"0",role:"button","aria-haspopup":"listbox","aria-expanded":!!Ee||void 0},p.a.createElement("div",{className:ne},!G&&p.a.createElement("div",{className:Re}))),Ee&&this.getCountryDropdownList()))}}])&&c(W.prototype,U),L}(p.a.Component);Ne.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=Ne}]);const Qm=pu($m),Km=({value:e,onChange:t,error:r,onBlur:a,id:n,name:o,required:i,defaultCountry:s="us",className:l,responsive:c=!1,enableSearch:d=!0,autoComplete:f})=>{const v=(x,b)=>{t("+"+x,b.countryCode)};return u.jsxs("div",{className:l,children:[u.jsx("div",{className:Te("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(Qm,{country:s,value:e.replace("+",""),onChange:v,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})]})},ha=e=>`otp-input-${e}`,sr=e=>jt(document.getElementById(ha(e))),qm=e=>Array.from({length:e},()=>""),Ua=({length:e,onComplete:t,onChange:r,disabled:a=!1,autoFocus:n=!1})=>{const[o,i]=E.useState(()=>qm(e)),s=E.useRef(null),l=E.useRef(t);l.current=t;const c=b=>{i(b),r==null||r(b.join(""))},d=b=>{const h=[...o];for(let C=0;C<Math.min(b.length,e);C++)h[C]=b[C];c(h);const p=h.findIndex(C=>C==="");sr(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&&sr(h+1)},v=b=>{if(a)return;b.preventDefault();const h=b.clipboardData.getData("text/plain").replace(/\D/g,"");h&&d(h)},x=b=>{if(a)return;const h=[...o];h[b]="",c(h),b>0&&sr(b-1)};return E.useEffect(()=>{n&&sr(0)},[]),E.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:v,id:ha(h),"data-testid":ha(h),onKeyDown:p=>{p.key==="Backspace"&&x(h)}},h))})};function eb(e){const t=Math.max(0,Math.ceil(e));return`${Math.floor(t/60)}:${String(t%60).padStart(2,"0")}`}const fr={didntGetIt:"Didn't get it?",resend:"Resend code",resendIn:e=>`Resend code in ${eb(e)}`,attemptsLeft:e=>`${e} ${e===1?"attempt":"attempts"} left.`},Xl=({secondsLeft:e,onResend:t,disabled:r=!1,className:a=""})=>u.jsx("p",{className:`text-sm text-grayWarm-600 ${a}`,children:e>0?fr.resendIn(e):u.jsxs(u.Fragment,{children:[u.jsx("span",{children:fr.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:fr.resend})]})}),tb=({email:e,phone:t,otpLength:r,otpAction:a,onVerify:n,onClose:o,externalError:i,externalErrorVariant:s="error",disabled:l=!1,title:c,description:d,onOtpChange:f,onResend:v,resendAfter:x=0,attemptsRemaining:b})=>{const[h,p]=E.useState(x);E.useEffect(()=>{p(x)},[x]);const C=h>0;E.useEffect(()=>{if(!C)return;const A=setInterval(()=>p(I=>Math.max(0,I-1)),1e3);return()=>clearInterval(A)},[C]);const w=()=>{v==null||v(),p(x)};E.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(Sa,{className:"w-full max-w-[400px] rounded-lg bg-white",children:[u.jsx(Aa,{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(wa,{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===tn.OTPAction.EMAILED?e:t})]}),u.jsx("div",{className:"mb-6",children:u.jsx(Ua,{length:r,onComplete:n,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:fr.attemptsLeft(b)}),v&&u.jsx(Xl,{secondsLeft:h,onResend:w,disabled:l,className:"text-center mb-2"})]})]})})};function $a(){if(typeof window>"u")return!1;try{return window.self!==window.top}catch{return!0}}const nb=new Set(["invalid_email","rate_limited","resend_too_soon","flow_expired","invalid_code","too_many_attempts","invalid_request","invalid_credential","topOrigin_required","passkey_limit","credential_exists","not_found","reauth_required","movmo_session_required","first_party_only","issuer_unavailable","passkey_failed","sign_in_failed"]);function rb(e){return nb.has(e)}class Mt extends Error{constructor(t,r,a,n){super(r),this.status=t,this.code=r,this.retryAfter=a,this.attemptsRemaining=n}}function ab(e){return typeof e=="object"&&e!==null?e:void 0}function gi(e){return typeof e=="number"&&Number.isFinite(e)?e:void 0}function vt(e){if(e instanceof Mt)return e;const t=ab(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"&&rb(o)?o:"unknown";return new Mt(a,i,gi(n==null?void 0:n.retry_after),gi(n==null?void 0:n.attempts_remaining))}if(t.isAxiosError===!0||t.request!==void 0)return new Mt(0,"network")}return e instanceof TypeError&&/failed to fetch/i.test(e.message)?new Mt(0,"network"):new Mt(0,"unknown")}const ob=/^[A-Za-z0-9_-]{1,512}$/,Hl=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}};function ib(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=Hl();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 vt(o)}},async sendCode(n){try{const{data:o}=await e.post("/v1/auth/code",a({flow_id:n}));return o}catch(o){throw vt(o)}},async passkeyOptions(){try{const{data:n}=await e.post("/v1/auth/passkey/options",{});return n}catch(n){throw vt(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 vt(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 vt(i)}},async listPasskeys(){try{const{data:n}=await e.get("/v1/users/me/passkeys");return n.passkeys??[]}catch(n){throw vt(n)}},async startRegistration(){try{const{data:n}=await e.post("/v1/users/me/passkeys/registration/start",{});return n}catch(n){throw vt(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 vt(i)}},async logout(){try{await e.post("/v1/auth/logout",{})}catch(n){vt(n)}},async deletePasskey(n){if(!ob.test(n))throw new Mt(0,"invalid_request");try{await e.delete(`/v1/users/me/passkeys/${encodeURIComponent(n)}`)}catch(o){throw vt(o)}}}}const rt={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. Use a code instead.",discoverableNotRecognized:"That passkey isn't recognized. Continue with your email instead."};function Zl(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",sb=864e5,lb=14,ub=3,cb=99,db=3456e4,qa=e=>Math.floor(e/sb),fb=/^\d{1,3}(\.\d{1,3}){3}$/;function zl(e){if(!e||e.includes(":")||fb.test(e))return;const t=e.split(".");if(!(t.length<2))return"."+t.slice(-2).join(".")}function pb(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 gb(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 zn(e=document.cookie,t=Date.now()){const r=pb(e,Ka);if(r.length!==1)return null;let a;try{a=JSON.parse(decodeURIComponent(r[0]))}catch{return null}return!gb(a)||a.d>qa(t)?null:a}function Yl(e=Date.now(),t=zn(document.cookie,e)){return t?t.x===1?!1:t.d===0?!0:qa(e)-t.d>=lb&&t.n>=ub:!0}function eo(e){try{const t=zl(window.location.hostname),r={...e,n:Math.min(e.n,cb)};document.cookie=`${Ka}=${encodeURIComponent(JSON.stringify(r))}; Path=/; Max-Age=${db}; SameSite=Lax; Secure${t?"; Domain="+t:""}`}catch{}}function Jl(){const e=zn();!e||e.d<=0||e.x!==0||eo({v:1,d:e.d,n:e.n+1,x:e.x})}function Ul(e=Date.now()){eo({v:1,d:qa(e),n:0,x:0})}function $l(e){const t=zn();eo({v:1,d:(t==null?void 0:t.d)??0,n:(t==null?void 0:t.n)??0,x:e?1:0})}function Ql(){var e;return((e=zn())==null?void 0:e.x)===1}function Fr(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 mb(e){return ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}function yn(e){const t=mb(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 Sr(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 Kl(e){if(Array.isArray(e))return e.map(t=>({...t,id:typeof t.id=="string"?Sr(t.id):t.id}))}function bb(e){const t={...e};typeof e.challenge=="string"&&(t.challenge=Sr(e.challenge));const r=Kl(e.allowCredentials);return r&&(t.allowCredentials=r),t}function hb(e){const t={...e};if(typeof e.challenge=="string"&&(t.challenge=Sr(e.challenge)),e.user&&typeof e.user=="object"){const a=e.user;t.user={...a,id:typeof a.id=="string"?Sr(a.id):a.id}}const r=Kl(e.excludeCredentials);return r&&(t.excludeCredentials=r),t}function vb(e){const t=to();return t&&typeof t.parseRequestOptionsFromJSON=="function"?t.parseRequestOptionsFromJSON(e.publicKey):bb(e.publicKey)}function yb(e){const t=to();return t&&typeof t.parseCreationOptionsFromJSON=="function"?t.parseCreationOptionsFromJSON(e.publicKey):hb(e.publicKey)}function Cb(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 xb(e){return{id:e.id,rawId:yn(e.rawId),type:e.type,authenticatorAttachment:e.authenticatorAttachment??void 0,clientExtensionResults:e.getClientExtensionResults(),response:Cb(e.response)}}function ql(e){const t=e;if(typeof t.toJSON=="function")try{return t.toJSON()}catch{}return xb(e)}async function va(e,t){const a={publicKey:vb(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 ql(n)}async function eu(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=yb({publicKey:r}),n=await navigator.credentials.create({publicKey:a,signal:t.signal});if(!n)throw new DOMException("No credential returned","NotAllowedError");return ql(n)}function mi(e){if(e.aborted)throw new DOMException("Registration aborted","AbortError")}async function ao(e,t){const r=await e.startRegistration();mi(t.signal);const a=await eu(r.options,{signal:t.signal,securityKey:t.securityKey});return mi(t.signal),e.completeRegistration(r.flow_id,a)}function Qr(e){switch(e.code){case"invalid_code":return{code:e.code,message:Zl(e.attemptsRemaining)};case"too_many_attempts":return{code:e.code,message:rt.tooManyAttempts};case"rate_limited":return{code:e.code,message:Qa(e.retryAfter)};case"flow_expired":case"topOrigin_required":return{code:e.code,message:rt.flowExpired};case"invalid_email":return{code:e.code,message:rt.invalidEmail};default:return{code:e.code,message:rt.generic}}}function Ib(e){return e==="flow_expired"||e==="topOrigin_required"||e==="too_many_attempts"}function Sb(e){const t=e==="security"||e==="unsupported"?rt.passkeyUnavailable:rt.generic;return{code:e,message:t}}function Ab(e){if(e instanceof Mt)switch(e.code){case"credential_exists":return{code:e.code,message:rt.passkeyExists};case"flow_expired":return{code:e.code,message:rt.enrollExpired};case"rate_limited":return{code:e.code,message:Qa(e.retryAfter)};default:return{code:e.code,message:rt.generic}}const t=Fr(e);return t==="cancelled"||t==="aborted"?null:t==="exists"?{code:t,message:rt.passkeyExists}:{code:t,message:rt.generic}}async function wb(e){return e.method!=="otp"||e.loginNext!=="code"||e.surface!=="top-level"||e.offerEnrollment===!1||!await e.platformAuthenticator()?!1:Yl()}const tu=27e4,Kr=6;function nu(e){const t=E.useRef(e);t.current=e;const[r]=E.useState($a),a=e.surface==="top-level"&&!r,n=a?"top-level":"embedded",o=e.lockedEmail!==void 0||e.expectedUserId!==void 0,[i,s]=E.useState("email"),[l,c]=E.useState(e.lockedEmail??e.initialEmail??""),[d,f]=E.useState(!1),[v,x]=E.useState(null),[b,h]=E.useState(Kr),[p,C]=E.useState(0),[w,R]=E.useState(void 0),[A,I]=E.useState(!1),[M,B]=E.useState(!1),[V,q]=E.useState(""),[J]=E.useState(()=>new ro),ae=E.useRef(!1),H=E.useRef("email"),pe=E.useRef(l),P=E.useRef(0);P.current=p;const O=E.useRef(0),T=E.useRef(null),Y=E.useRef(null),ge=E.useRef(null),Ne=E.useRef(0),_=E.useRef(null),L=E.useRef(null),W=E.useRef(!1),U=E.useRef(null),F=E.useRef(!1),m=E.useRef(!1),ce=E.useRef(!1),de=()=>L.current??(L.current=no()),oe=j=>{H.current=j,s(j),j!=="code"&&C(0),j!=="passkey"&&B(!1)},we=j=>{x(j),j&&q("")},Ce=j=>ae.current&&O.current===j,Ee=j=>{const K=++O.current;return T.current=j,f(!0),x(null),K},z=j=>{O.current===j&&(T.current=null,f(!1))},Me=()=>{O.current++,T.current=null,f(!1)},Ge=j=>{var K,se;return(se=(K=t.current).onEvent)==null?void 0:se.call(K,j,{surface:t.current.promptSurface??"modal"})},G=()=>{_.current!==null&&(clearTimeout(_.current),_.current=null),Ne.current++},D=()=>{G(),J.abort()},$=async()=>{if(!a||o)return;G();const j=Ne.current,K=()=>ae.current&&Ne.current===j&&H.current==="email"&&T.current===null,{conditional:se}=await de();if(!K()||!se)return;const He=J.begin();_.current=setTimeout(()=>void $(),tu);let tt;try{tt=await t.current.api.passkeyOptions()}catch{return}if(!K()||He.aborted)return;const pt=tt.flow_id;va(tt.options,{signal:He,conditional:!0}).then(ct=>{K()&&ve(pt,ct)},()=>{})},ve=async(j,K)=>{G();const se=Ee("request");let He;try{He=await t.current.api.verifyPasskey(j,K)}catch(tt){if(!Ce(se))return;const pt=vt(tt).code==="invalid_credential";ie(se,pt?{code:"invalid_credential",message:rt.discoverableNotRecognized}:null);return}Ce(se)&&await re(se,He,"passkey",null)},ie=(j,K)=>{z(j),we(K),H.current==="passkey"&&B(!0),H.current==="email"&&$()},ye=(j,K)=>{const se=H.current==="email";z(j),Y.current=null,oe("email"),we(K),se&&$()},xe=(j,K)=>{const se=vt(K);if(Ib(se.code)){ye(j,Qr(se));return}if(se.code==="resend_too_soon"){z(j),C(Math.max(0,Math.ceil(se.retryAfter??0)));return}se.code==="invalid_code"&&R(se.attemptsRemaining),ie(j,Qr(se))},Re=async(j,K)=>{T.current="request";try{const se=await K();return Ce(j)?se:void 0}catch(se){Ce(j)&&xe(j,se);return}},ee=(j,K)=>{ge.current=j.flow_id,h(j.code_length||Kr),R(void 0),oe("code"),C(Math.max(0,j.resend_after??0)),q(rt.codeSent),K&&x(K)},le=async(j,K,se)=>{const He=await Re(j,()=>t.current.api.sendCode(K));He&&(z(j),ee(He,se))},Ie=()=>{Me(),D(),Y.current=null,oe("mismatch"),we({code:"account_mismatch",message:rt.accountMismatch});const{api:j}=t.current;(async()=>{var K,se;try{await j.logout()}catch{}(se=(K=t.current).onAccountMismatch)==null||se.call(K)})()},ne=(j,K)=>{F.current||(F.current=!0,U.current=null,oe("done"),q(rt.signedIn),t.current.onSignedIn(j,K))},re=async(j,K,se,He)=>{var Jt,ln;const tt=t.current,pt=tt.expectedUserId;if(pt!==void 0&&K.user_id!==pt){Ie();return}let ct;try{ct=await tt.getCurrentUser()}catch{if(!Ce(j))return;const un={code:"unknown",message:rt.generic};H.current==="passkey"?ye(j,un):ie(j,un);return}if(!Ce(j))return;if(pt!==void 0&&ct.id!==pt){Ie();return}const it={method:se,newUser:K.new_user};m.current||(m.current=!0,(ln=(Jt=t.current).onVerified)==null||ln.call(Jt,ct,it)),se==="otp"&&a&&Jl();const ht=await wb({method:se,loginNext:He,surface:n,offerEnrollment:tt.offerEnrollment,platformAuthenticator:async()=>(await de()).platform});Ce(j)&&(z(j),ht?(U.current={user:ct,info:it},oe("enroll"),Ge("passkey_prompt_shown")):ne(ct,it))},_e=async(j,K,se,He)=>{if(!a){z(j);return}T.current="ceremony";let tt;try{tt=await va(K.options,{signal:se})}catch(ct){if(!Ce(j))return;const it=Fr(ct);ie(j,it==="cancelled"||it==="aborted"?null:Sb(it));return}if(!Ce(j))return;T.current="request";let pt;try{pt=await t.current.api.verifyPasskey(K.flow_id,tt)}catch(ct){if(!Ce(j))return;const it=vt(ct);if(it.code==="invalid_credential"&&He){const ht={code:"invalid_credential",message:rt.passkeyNotRecognized};await le(j,K.flow_id,ht)}else it.code==="invalid_credential"?ie(j,{code:"invalid_credential",message:rt.discoverableNotRecognized}):He?ye(j,Qr(it)):xe(j,ct);return}Ce(j)&&await re(j,pt,"passkey",He?"passkey":null)},ot=(j,K)=>(B(!1),_e(j,K,J.begin(),!0)),Ke=j=>{t.current.lockedEmail===void 0&&(pe.current=j,c(j))},ut=async()=>{if(T.current||H.current!=="email")return;D();const j=(t.current.lockedEmail??pe.current).trim();if(!j){we({code:"invalid_email",message:rt.invalidEmail}),$();return}pe.current=j,c(j);const K=Ee("request"),se=await Re(K,()=>t.current.api.login(j));se&&(Y.current=se,se.next==="code"?(z(K),ee(se)):a?(h(se.code_length||Kr),oe("passkey"),await ot(K,se)):await le(K,se.flow_id))},bt=async()=>{if(!a||o||!W.current||T.current||H.current!=="email")return;D();const j=Ee("ceremony"),K=J.begin(),se=await Re(j,()=>t.current.api.passkeyOptions());se&&await _e(j,se,K,!1)},At=()=>{const j=Y.current;!a||H.current!=="passkey"||T.current||(j==null?void 0:j.next)!=="passkey"||ot(Ee("ceremony"),j)},$e=()=>{const j=Y.current;H.current!=="passkey"||T.current==="request"||!j||(J.abort(),le(Ee("request"),j.flow_id))},Pt=()=>{H.current!=="passkey"&&H.current!=="code"||(Me(),J.abort(),Y.current=null,x(null),oe("email"))},kt=async j=>{var tt;const K=ge.current;if(H.current!=="code"||T.current||!K)return;const se=Ee("request"),He=await Re(se,()=>t.current.api.verifyCode(K,j));He&&await re(se,He,"otp",((tt=Y.current)==null?void 0:tt.next)??null)},sn=async()=>{const j=ge.current;if(H.current!=="code"||T.current||P.current>0||!j)return;q("");const K=Ee("request"),se=await Re(K,()=>t.current.api.sendCode(j));se&&(z(K),ee(se))},wt=async()=>{if(!a||H.current!=="enroll"||T.current)return;const j=Ee("ceremony"),K=J.begin();try{await ao(t.current.api,{signal:K})}catch(se){Ce(j)&&ie(j,Ab(se));return}Ce(j)&&(z(j),oe("enrolled"),Ge("passkey_prompt_accepted"))},Et=()=>{const j=U.current;j&&ne(j.user,j.info)},Rt=()=>{H.current==="enroll"&&(Me(),J.abort(),x(null),Ul(),Ge("passkey_prompt_declined"),Et())},Zt=()=>{H.current==="enrolled"&&Et()},zt=()=>{H.current==="enroll"?Rt():H.current==="enrolled"?Zt():(Me(),D())};E.useEffect(()=>(ae.current=!0,()=>{ae.current=!1,D()}),[]),E.useEffect(()=>{if(!a||o)return;let j=!1;return de().then(K=>{W.current=K.webauthn,j||I(K.webauthn)}),()=>{j=!0}},[a,o]);const Yt=()=>{var He;const{autoContinue:j,lockedEmail:K,initialEmail:se}=t.current;return!!(j&&((He=K??se)!=null&&He.trim())&&!ce.current)};E.useEffect(()=>{if(!(i!=="email"||T.current||Yt()))return $(),G},[i]),E.useEffect(()=>{Yt()&&(ce.current=!0,ut())},[]);const Bt=i==="code"&&p>0;return E.useEffect(()=>{if(!Bt)return;const j=setInterval(()=>C(K=>Math.max(0,K-1)),1e3);return()=>clearInterval(j)},[Bt]),{step:i,email:l,setEmail:Ke,busy:d,error:(v==null?void 0:v.message)??null,errorCode:(v==null?void 0:v.code)??null,codeLength:b,resendIn:p,attemptsRemaining:w,canUsePasskeyButton:A,passkeyFailed:M,liveMessage:V,submitEmail:()=>void ut(),signInWithPasskey:()=>void bt(),retryPasskey:At,useCodeInstead:$e,changeEmail:Pt,submitCode:j=>void kt(j),resendCode:()=>void sn(),acceptEnrollment:()=>void wt(),declineEnrollment:Rt,finish:Zt,close:zt}}const en={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"}},ya=({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:en.added.heading}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:en.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:en.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(Ml,{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:en.prompt.heading}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:en.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(Zn,{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:en.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:en.prompt.decline})]}),u.jsx("p",{className:"text-xs text-grayWarm-500",children:en.prompt.footnote})]}),oo="focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500 focus-visible:ring-offset-2",kr=S.forwardRef(({className:e,type:t="button",...r},a)=>u.jsx("button",{ref:a,type:t,className:Te("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})),En=S.forwardRef(({className:e,type:t="button",...r},a)=>u.jsx("button",{ref:a,type:t,className:Te("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})),Ca=S.forwardRef(({className:e,type:t="button",...r},a)=>u.jsx("button",{ref:a,type:t,className:Te("text-sm font-semibold text-brand-600 hover:text-brand-700 rounded disabled:opacity-60 disabled:cursor-not-allowed",oo,e),...r}));kr.displayName="PrimaryButton";En.displayName="SecondaryButton";Ca.displayName="LinkButton";const et={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 use a code.",tryAgain:"Try again",useCode:"Use a code instead"},code:{title:"Check your email",description:e=>`Enter the code we sent to ${e}.`,confirm:"Confirm"},cancel:"Cancel"},io=({flow:e,lockedEmail:t,title:r,description:a,onCancel:n,icon:o})=>{const i=n?()=>{e.close(),n()}:void 0;let s=null;switch(e.step){case"email":s=u.jsx(Eb,{flow:e,locked:t!==void 0,title:r,description:a,onCancel:i,icon:o});break;case"passkey":s=u.jsx(Rb,{flow:e,locked:t!==void 0,title:r,description:a,onCancel:i,icon:o});break;case"code":s=u.jsx(Gb,{flow:e,title:r,onCancel:i});break;case"enroll":s=u.jsx(bi,{children:u.jsx(ya,{status:"prompt",onAccept:e.acceptEnrollment,onDecline:e.declineEnrollment,busy:e.busy,error:e.error})});break;case"enrolled":s=u.jsx(bi,{children:u.jsx(ya,{status:"added",onAccept:e.acceptEnrollment,onDecline:e.declineEnrollment,onDone:e.finish})});break;case"mismatch":s=u.jsx(Nb,{flow:e,title:r,onCancel:i,icon:o});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)]})},bi=({children:e})=>{const t=E.useRef(null);return E.useEffect(()=>{var r;jt((r=t.current)==null?void 0:r.querySelector("h2"))},[]),u.jsx("div",{ref:t,children:e})},Br=({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})]})]}),ru=({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(Zn,{size:20,className:"flex-shrink-0 text-warning-700"}),u.jsx("p",{className:"text-sm text-warning-700",children:e})]}),so=({primary:e,onCancel:t})=>t?u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsx(En,{onClick:t,children:et.cancel}),e]}):u.jsx(u.Fragment,{children:e}),Eb=({flow:e,locked:t,title:r,description:a,onCancel:n,icon:o})=>{const i=E.useRef(null),s=E.useRef(null),l=E.useId(),c=E.useId();return E.useEffect(()=>{jt(t?s.current:i.current)},[t]),u.jsxs(u.Fragment,{children:[u.jsx(Br,{icon:o??Dl,title:r??et.email.title,description:a??et.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:et.email.label}),u.jsxs("div",{className:"relative",children:[u.jsx(Ya,{size:20,className:"pointer-events-none absolute left-3.5 top-1/2 -translate-y-1/2 text-grayWarm-500"}),u.jsx(Dt,{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(so,{onCancel:n,primary:u.jsx(kr,{ref:s,type:"submit",disabled:e.busy,"aria-busy":e.busy,children:et.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:et.email.divider}),u.jsx("div",{className:"h-px flex-1 bg-grayWarm-200"})]}),u.jsxs(En,{onClick:e.signInWithPasskey,disabled:e.busy,children:[u.jsx(Za,{size:20}),et.email.passkey]})]})]})},Rb=({flow:e,locked:t,title:r,description:a,onCancel:n,icon:o})=>{const i=E.useRef(null);E.useEffect(()=>{jt(i.current)},[]);const s=e.error??(e.passkeyFailed?et.passkey.failed:null);return u.jsxs(u.Fragment,{children:[u.jsx(Br,{icon:o??jl,title:r??et.passkey.title,description:a??et.passkey.description,headingRef:i}),u.jsxs("div",{className:"flex flex-col gap-5",children:[s?u.jsx(ru,{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(Ca,{onClick:e.changeEmail,"aria-label":et.passkey.changeLabel,children:et.passkey.change})]}),u.jsx(so,{onCancel:n,primary:u.jsx(kr,{onClick:e.retryPasskey,disabled:e.busy,"aria-busy":e.busy,children:e.passkeyFailed?et.passkey.tryAgain:et.passkey.continue})}),u.jsx(Ca,{onClick:e.useCodeInstead,className:"self-center",children:et.passkey.useCode})]})]})},Nb=({flow:e,title:t,onCancel:r,icon:a})=>u.jsxs(u.Fragment,{children:[u.jsx(Br,{icon:a??Zn,title:t??et.email.title,description:e.error??""}),r&&u.jsx(En,{onClick:r,children:et.cancel})]}),Gb=({flow:e,title:t,onCancel:r})=>{const[a,n]=E.useState(""),o=a.length===e.codeLength;return u.jsxs(u.Fragment,{children:[u.jsx(Br,{icon:Ya,title:t??et.code.title,description:et.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,onChange:n,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(ru,{children:e.error}),u.jsx(Xl,{secondsLeft:e.resendIn,onResend:e.resendCode,disabled:e.busy}),u.jsx(so,{onCancel:r,primary:u.jsx(kr,{onClick:()=>e.submitCode(a),disabled:!o||e.busy,"aria-busy":e.busy,children:et.code.confirm})})]})]})};function lo(e){const t=nu(e),r=E.useRef(t);return r.current=t,E.useEffect(()=>()=>{const{step:a,close:n}=r.current;(a==="enroll"||a==="enrolled")&&n()},[]),t}const Pb=({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})},Ob=({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(mn,{isOpen:n.step!=="done",onClose:o,title:et.email.title,header:"none",maxWidthPx:400,hideCloseButton:t,children:u.jsx(io,{flow:n,lockedEmail:a.lockedEmail})})},fn={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."}},au=({isOpen:e,...t})=>e?u.jsx(jb,{...t}):null,jb=e=>{const[t]=E.useState($a);return t?u.jsx(Mb,{onCancel:e.onCancel}):u.jsx(Fb,{...e})},Mb=({onCancel:e})=>u.jsx(mn,{isOpen:!0,onClose:e,title:fn.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:fn.title}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:fn.framed})]}),u.jsx(En,{onClick:e,children:fn.cancel})]})}),Fb=({action:e,account:t,api:r,getCurrentUser:a,onConfirmed:n,onCancel:o,onMismatch:i})=>{const s=lo({api:r,surface:"top-level",getCurrentUser:a,lockedEmail:t.email,expectedUserId:t.id,autoContinue:!0,offerEnrollment:!1,onSignedIn:()=>n(),onAccountMismatch:i}),l=()=>{s.close(),o()};return u.jsx(mn,{isOpen:s.step!=="done",onClose:l,title:fn.title,header:"none",maxWidthPx:400,children:u.jsx(io,{flow:s,lockedEmail:t.email,title:fn.title,description:fn.description[e],onCancel:o,icon:Bl})})},Xe={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.",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,Bb=6e3,Vb=new Set(["confirmedAdd","confirmedAddKey"]),_b={synced:Za,device:kl,security_key:Fl},Db=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}),hi=e=>{const t=new Date(e);return Number.isNaN(t.getTime())?e:Db.format(t)};function ou(e){const t=e.kind??(e.synced?"synced":"device"),r=e.provider==="Passkey"&&t==="security_key"?Xe.securityKeyTitle:e.provider,a=Xe.kind[t]===r?null:Xe.kind[t],n=`${Xe.addedOn(hi(e.created_at))} · ${e.last_used_at?Xe.lastUsed(hi(e.last_used_at)):Xe.neverUsed}`;return{kind:t,title:r,badge:a,meta:n,Icon:_b[t]}}const Wb=e=>{const t=E.useRef(e);t.current=e;const[r]=E.useState($a),[a,n]=E.useState("loading"),[o,i]=E.useState([]),[s,l]=E.useState(!1),[c,d]=E.useState(!1),[f,v]=E.useState(!1),[x,b]=E.useState(null),[h,p]=E.useState(0),[C,w]=E.useState(!1),[R,A]=E.useState(null),[I,M]=E.useState(null),[B,V]=E.useState(()=>!Ql()),[q]=E.useState(()=>new ro),J=E.useRef(!1),ae=E.useRef(!1),H=E.useRef(0),pe=E.useId(),P=E.useCallback(async()=>{const W=++H.current;n("loading");try{const[U,F]=await Promise.all([t.current.api.listPasskeys(),no()]);if(!ae.current||W!==H.current)return;i(U),l(F.webauthn),n("ready")}catch(U){if(!ae.current||W!==H.current)return;const F=U instanceof Mt&&U.code==="movmo_session_required";n(F?"sessionRequired":"error")}},[]);E.useEffect(()=>(ae.current=!0,r||P(),()=>{ae.current=!1,q.abort()}),[r,q,P]),E.useEffect(()=>{if(h===0)return;w(!0);const W=setTimeout(()=>w(!1),Bb);return()=>clearTimeout(W)},[h]);const O=W=>{i(U=>U.filter(F=>F.id!==W)),d(!1)},T=(W,U,F)=>{if(U instanceof Mt){switch(U.code){case"reauth_required":F?b("generic"):M(W);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(W.type==="remove"){O(W.passkey.id);return}break}b("generic");return}switch(Fr(U)){case"cancelled":case"aborted":F&&W.type==="add"&&b(W.securityKey?"confirmedAddKey":"confirmedAdd");return;case"exists":b("exists");return;default:b("generic")}},Y=async(W,U=!1)=>{if(!J.current){J.current=!0,v(!0),b(null);try{if(W.type==="add"){const F=await ao(t.current.api,{securityKey:W.securityKey,signal:q.begin()});if(!ae.current)return;i(m=>[F,...m.filter(ce=>ce.id!==F.id)]),p(m=>m+1)}else{if(await t.current.api.deletePasskey(W.passkey.id),!ae.current)return;O(W.passkey.id)}}catch(F){ae.current&&T(W,F,U)}finally{J.current=!1,ae.current&&(v(!1),A(null))}}},ge=()=>{const W=I;M(null),W&&Y(W,!0)},Ne=()=>{M(null),t.current.onAccountMismatch()};if(r)return u.jsx(dn,{tone:"neutral",children:Xe.framed});if(a==="loading")return u.jsx(Xb,{});if(a==="error")return u.jsxs(dn,{tone:"neutral",role:"alert",children:[u.jsx("span",{children:Xe.generic}),u.jsx(iu,{onClick:()=>void P(),children:Xe.retry})]});if(a==="sessionRequired")return u.jsx(yi,{onSignIn:()=>t.current.onSessionRequired()});const _=c||o.length>=kb,L=o.length===0;return u.jsxs("div",{className:"flex flex-col gap-4",children:[L?u.jsx("p",{className:"text-sm text-grayWarm-600",children:Xe.empty}):u.jsx("ul",{className:"flex flex-col divide-y divide-grayWarm-200 -my-3",children:o.map(W=>u.jsx(Lb,{passkey:W,disabled:f,onRemove:()=>A(W)},W.id))}),u.jsx("div",{role:"status","aria-live":"polite",children:C&&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"}),Xe.added]})}),s?_&&u.jsx(dn,{tone:"neutral",children:Xe.limit}):u.jsx(dn,{tone:"neutral",children:Xe.unsupported}),x==="sessionRequired"?u.jsx(yi,{onSignIn:()=>t.current.onSessionRequired()}):x&&Vb.has(x)?u.jsx(dn,{tone:"neutral",role:"status",children:Xe[x]}):x&&u.jsx(dn,{tone:"warning",role:"alert",children:Xe[x]}),s&&u.jsxs("div",{className:"flex flex-wrap gap-3",children:[u.jsx(vi,{label:Xe.addPasskeyLabel,disabled:f||_,onClick:()=>void Y({type:"add",securityKey:!1}),children:Xe.addPasskey}),u.jsx(vi,{label:Xe.addSecurityKeyLabel,disabled:f||_,onClick:()=>void Y({type:"add",securityKey:!0}),children:Xe.addSecurityKey})]}),L&&u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(La,{id:pe,checked:B,onCheckedChange:W=>{V(W),$l(!W)}}),u.jsx("label",{htmlFor:pe,className:"text-sm font-medium text-grayWarm-700",children:Xe.suggestToggle})]}),R&&u.jsx(Hb,{title:ou(R).title,busy:f,onCancel:()=>A(null),onConfirm:()=>void Y({type:"remove",passkey:R})}),u.jsx(au,{isOpen:I!==null,action:(I==null?void 0:I.type)??"add",account:e.account,api:e.api,getCurrentUser:e.getCurrentUser,onConfirmed:ge,onCancel:()=>M(null),onMismatch:Ne})]})},Lb=({passkey:e,disabled:t,onRemove:r})=>{const{title:a,badge:n,meta:o,Icon:i}=ou(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(Va,{variant:n===Xe.kind.synced?"info":"default",children:n})]}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:o})]}),u.jsx("button",{type:"button","aria-label":Xe.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(za,{size:18})})]})},vi=({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(Vl,{size:20}),a]}),dn=({tone:e,role:t,children:r})=>u.jsxs("div",{role:t,className:Te("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(Zn,{size:20,className:Te("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})]}),iu=({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}),yi=({onSignIn:e})=>u.jsxs(dn,{tone:"neutral",children:[u.jsx("span",{children:Xe.sessionRequired}),u.jsx(iu,{onClick:e,children:Xe.signIn})]}),Xb=()=>u.jsxs("div",{"aria-busy":"true",className:"flex flex-col gap-3",children:[u.jsx("span",{className:"sr-only",children:Xe.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))]}),Hb=({title:e,busy:t,onCancel:r,onConfirm:a})=>{const n=Xe.remove.title(e);return u.jsx(mn,{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(za,{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:Xe.remove.body})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsx(En,{onClick:r,children:Xe.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:Xe.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 zb(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 Yb=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),Jb=new RegExp("^[\\p{L} '-]{2,100}$","u");function Ub(e){return Jb.test(e)?{isValid:!0}:{isValid:!1,message:"must contain only letters, spaces, hyphens, and apostrophes (2-100 characters)"}}exports.AUTOFILL_REFRESH_MS=tu;exports.AlertCircleIcon=Zn;exports.AuthError=Mt;exports.Avatar=Hs;exports.AvatarFallback=zs;exports.AvatarImage=Zs;exports.Badge=Va;exports.Button=Ei;exports.COUNTRY_OPTIONS=ba;exports.CURRENCY_OPTIONS=Mr;exports.Card=Sa;exports.CardContent=wa;exports.CardDescription=Mi;exports.CardFooter=Fi;exports.CardHeader=Aa;exports.CardTitle=ji;exports.CeremonyGate=ro;exports.CheckCircleIcon=Ja;exports.Checkbox=Ms;exports.Chip=vl;exports.CloudIcon=Bm;exports.CurrencyModal=Um;exports.DEFAULT_LOCALE=Wl;exports.DateDropdowns=ma;exports.FaceIdIcon=jl;exports.FingerprintIcon=Ml;exports.IconButton=Fs;exports.Input=Dt;exports.KeyIcon=Za;exports.LOCALE_OPTIONS=jr;exports.LOCALE_STORAGE_KEY=Lm;exports.LaptopIcon=kl;exports.LocaleModal=zm;exports.LogInIcon=Dl;exports.MailIcon=Ya;exports.Modal=mn;exports.OTPModal=tb;exports.OtpCodeInput=Ua;exports.PROMPT_COOKIE=Ka;exports.Pagination=bl;exports.PasscodeIcon=Vm;exports.PassengerForm=jm;exports.PassengerFormSkeleton=km;exports.PasskeyEnrollPrompt=ya;exports.PasskeyList=Wb;exports.PhoneInput=Km;exports.PlusIcon=Vl;exports.ReauthDialog=au;exports.SearchInput=hl;exports.SelectDropdown=_n;exports.Separator=Ti;exports.ShieldTickIcon=Bl;exports.SignInFlow=Pb;exports.SignInModal=Ob;exports.Textarea=ml;exports.Toggle=La;exports.ToggleGroup=pl;exports.ToggleGroupItem=gl;exports.TrashIcon=za;exports.UsbKeyIcon=Fl;exports.XCloseIcon=_l;exports.classifyWebAuthnError=Fr;exports.cookieDomain=zl;exports.createMovmoAuthApi=ib;exports.createPasskey=eu;exports.detectSupport=no;exports.dismissPrompt=Ul;exports.findCurrencyOption=Jm;exports.findLocaleOption=Xm;exports.getCurrencyDisplayText=Ll;exports.getLanguageDisplayName=Hm;exports.getPasskey=va;exports.incorrectCode=Zl;exports.neverAsk=Ql;exports.rateLimited=Qa;exports.readPromptState=zn;exports.recordCodeSignIn=Jl;exports.registerPasskey=ao;exports.safeFocus=jt;exports.setNeverAsk=$l;exports.shouldOfferPasskey=Yl;exports.signInCopy=rt;exports.timeZone=Hl;exports.toAuthError=vt;exports.useMovmoSignIn=nu;exports.validateEmail=Yb;exports.validateName=Ub;exports.validatePhoneNumber=zb;
|
|
114
|
+
*/(function(){var n={}.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)n.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,r){(function(a){var n=/^\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")(),v=Object.prototype.toString,x=f.Symbol,b=x?x.prototype:void 0,h=b?b.toString:void 0;function p(A){if(typeof A=="string")return A;if(w(A))return h?h.call(A):"";var I=A+"";return I=="0"&&1/A==-1/0?"-0":I}function C(A){var I=typeof A;return!!A&&(I=="object"||I=="function")}function w(A){return typeof A=="symbol"||function(I){return!!I&&typeof I=="object"}(A)&&v.call(A)=="[object Symbol]"}function R(A){return A?(A=function(I){if(typeof I=="number")return I;if(w(I))return NaN;if(C(I)){var M=typeof I.valueOf=="function"?I.valueOf():I;I=C(M)?M+"":M}if(typeof I!="string")return I===0?I:+I;I=I.replace(n,"");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,V,q,J;return A=(B=A)==null?"":p(B),V=function(ae){var H=R(ae),pe=H%1;return H==H?pe?H-pe:H:0}(M),q=0,J=A.length,V==V&&(J!==void 0&&(V=V<=J?V:J),q!==void 0&&(V=V>=q?V:q)),M=V,I=p(I),A.slice(M,M+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,s=o||i||Function("return this")(),l,c=Array.prototype,d=Function.prototype,f=Object.prototype,v=s["__core-js_shared__"],x=(l=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||""))?"Symbol(src)_1."+l:"",b=d.toString,h=f.hasOwnProperty,p=f.toString,C=RegExp("^"+b.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),w=c.splice,R=ae(s,"Map"),A=ae(Object,"create");function I(P){var O=-1,T=P?P.length:0;for(this.clear();++O<T;){var Y=P[O];this.set(Y[0],Y[1])}}function M(P){var O=-1,T=P?P.length:0;for(this.clear();++O<T;){var Y=P[O];this.set(Y[0],Y[1])}}function B(P){var O=-1,T=P?P.length:0;for(this.clear();++O<T;){var Y=P[O];this.set(Y[0],Y[1])}}function V(P,O){for(var T,Y,ge=P.length;ge--;)if((T=P[ge][0])===(Y=O)||T!=T&&Y!=Y)return ge;return-1}function q(P){return!(!pe(P)||(O=P,x&&x in O))&&(function(T){var Y=pe(T)?p.call(T):"";return Y=="[object Function]"||Y=="[object GeneratorFunction]"}(P)||function(T){var Y=!1;if(T!=null&&typeof T.toString!="function")try{Y=!!(T+"")}catch{}return Y}(P)?C:n).test(function(T){if(T!=null){try{return b.call(T)}catch{}try{return T+""}catch{}}return""}(P));var O}function J(P,O){var T,Y,ge=P.__data__;return((Y=typeof(T=O))=="string"||Y=="number"||Y=="symbol"||Y=="boolean"?T!=="__proto__":T===null)?ge[typeof O=="string"?"string":"hash"]:ge.map}function ae(P,O){var T=function(Y,ge){return Y==null?void 0:Y[ge]}(P,O);return q(T)?T:void 0}function H(P,O){if(typeof P!="function"||O&&typeof O!="function")throw new TypeError("Expected a function");var T=function(){var Y=arguments,ge=O?O.apply(this,Y):Y[0],Ne=T.cache;if(Ne.has(ge))return Ne.get(ge);var _=P.apply(this,Y);return T.cache=Ne.set(ge,_),_};return T.cache=new(H.Cache||B),T}function pe(P){var O=typeof P;return!!P&&(O=="object"||O=="function")}I.prototype.clear=function(){this.__data__=A?A(null):{}},I.prototype.delete=function(P){return this.has(P)&&delete this.__data__[P]},I.prototype.get=function(P){var O=this.__data__;if(A){var T=O[P];return T==="__lodash_hash_undefined__"?void 0:T}return h.call(O,P)?O[P]:void 0},I.prototype.has=function(P){var O=this.__data__;return A?O[P]!==void 0:h.call(O,P)},I.prototype.set=function(P,O){return this.__data__[P]=A&&O===void 0?"__lodash_hash_undefined__":O,this},M.prototype.clear=function(){this.__data__=[]},M.prototype.delete=function(P){var O=this.__data__,T=V(O,P);return!(T<0)&&(T==O.length-1?O.pop():w.call(O,T,1),!0)},M.prototype.get=function(P){var O=this.__data__,T=V(O,P);return T<0?void 0:O[T][1]},M.prototype.has=function(P){return V(this.__data__,P)>-1},M.prototype.set=function(P,O){var T=this.__data__,Y=V(T,P);return Y<0?T.push([P,O]):T[Y][1]=O,this},B.prototype.clear=function(){this.__data__={hash:new I,map:new(R||M),string:new I}},B.prototype.delete=function(P){return J(this,P).delete(P)},B.prototype.get=function(P){return J(this,P).get(P)},B.prototype.has=function(P){return J(this,P).has(P)},B.prototype.set=function(P,O){return J(this,P).set(P,O),this},H.Cache=B,e.exports=H}).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,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")(),v=Object.prototype.toString,x=Math.max,b=Math.min,h=function(){return f.Date.now()};function p(w){var R=typeof w;return!!w&&(R=="object"||R=="function")}function C(w){if(typeof w=="number")return w;if(function(I){return typeof I=="symbol"||function(M){return!!M&&typeof M=="object"}(I)&&v.call(I)=="[object Symbol]"}(w))return NaN;if(p(w)){var R=typeof w.valueOf=="function"?w.valueOf():w;w=p(R)?R+"":R}if(typeof w!="string")return w===0?w:+w;w=w.replace(n,"");var A=i.test(w);return A||s.test(w)?l(w.slice(2),A?2:8):o.test(w)?NaN:+w}e.exports=function(w,R,A){var I,M,B,V,q,J,ae=0,H=!1,pe=!1,P=!0;if(typeof w!="function")throw new TypeError("Expected a function");function O(L){var W=I,U=M;return I=M=void 0,ae=L,V=w.apply(U,W)}function T(L){return ae=L,q=setTimeout(ge,R),H?O(L):V}function Y(L){var W=L-J;return J===void 0||W>=R||W<0||pe&&L-ae>=B}function ge(){var L=h();if(Y(L))return Ne(L);q=setTimeout(ge,function(W){var U=R-(W-J);return pe?b(U,B-(W-ae)):U}(L))}function Ne(L){return q=void 0,P&&I?O(L):(I=M=void 0,V)}function _(){var L=h(),W=Y(L);if(I=arguments,M=this,J=L,W){if(q===void 0)return T(J);if(pe)return q=setTimeout(ge,R),O(J)}return q===void 0&&(q=setTimeout(ge,R)),V}return R=C(R)||0,p(A)&&(H=!!A.leading,B=(pe="maxWait"in A)?x(C(A.maxWait)||0,R):B,P="trailing"in A?!!A.trailing:P),_.cancel=function(){q!==void 0&&clearTimeout(q),ae=0,I=J=M=q=void 0},_.flush=function(){return q===void 0?V:Ne(h())},_}}).call(this,r(3))},function(e,t,r){(function(a,n){var o="[object Arguments]",i="[object Map]",s="[object Object]",l="[object Set]",c=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d=/^\w*$/,f=/^\./,v=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,x=/\\(\\)?/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 C=typeof a=="object"&&a&&a.Object===Object&&a,w=typeof self=="object"&&self&&self.Object===Object&&self,R=C||w||Function("return this")(),A=t&&!t.nodeType&&t,I=A&&typeof n=="object"&&n&&!n.nodeType&&n,M=I&&I.exports===A&&C.process,B=function(){try{return M&&M.binding("util")}catch{}}(),V=B&&B.isTypedArray;function q(g,N,k,Z){var te=-1,ue=g?g.length:0;for(Z&&ue&&(k=g[++te]);++te<ue;)k=N(k,g[te],te,g);return k}function J(g,N){for(var k=-1,Z=g?g.length:0;++k<Z;)if(N(g[k],k,g))return!0;return!1}function ae(g,N,k,Z,te){return te(g,function(ue,Se,ze){k=Z?(Z=!1,ue):N(k,ue,Se,ze)}),k}function H(g){var N=!1;if(g!=null&&typeof g.toString!="function")try{N=!!(g+"")}catch{}return N}function pe(g){var N=-1,k=Array(g.size);return g.forEach(function(Z,te){k[++N]=[te,Z]}),k}function P(g){var N=-1,k=Array(g.size);return g.forEach(function(Z){k[++N]=Z}),k}var O,T,Y,ge=Array.prototype,Ne=Function.prototype,_=Object.prototype,L=R["__core-js_shared__"],W=(O=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||""))?"Symbol(src)_1."+O:"",U=Ne.toString,F=_.hasOwnProperty,m=_.toString,ce=RegExp("^"+U.call(F).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),de=R.Symbol,oe=R.Uint8Array,we=_.propertyIsEnumerable,Ce=ge.splice,Ee=(T=Object.keys,Y=Object,function(g){return T(Y(g))}),z=j(R,"DataView"),Me=j(R,"Map"),Ge=j(R,"Promise"),G=j(R,"Set"),D=j(R,"WeakMap"),$=j(Object,"create"),ve=ht(z),ie=ht(Me),ye=ht(Ge),xe=ht(G),Re=ht(D),ee=de?de.prototype:void 0,le=ee?ee.valueOf:void 0,Ie=ee?ee.toString:void 0;function ne(g){var N=-1,k=g?g.length:0;for(this.clear();++N<k;){var Z=g[N];this.set(Z[0],Z[1])}}function re(g){var N=-1,k=g?g.length:0;for(this.clear();++N<k;){var Z=g[N];this.set(Z[0],Z[1])}}function _e(g){var N=-1,k=g?g.length:0;for(this.clear();++N<k;){var Z=g[N];this.set(Z[0],Z[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 re(g)}function ut(g,N){var k=y(g)||un(g)?function(Se,ze){for(var Je=-1,Ze=Array(Se);++Je<Se;)Ze[Je]=ze(Je);return Ze}(g.length,String):[],Z=k.length,te=!!Z;for(var ue in g)!F.call(g,ue)||te&&(ue=="length"||se(ue,Z))||k.push(ue);return k}function bt(g,N){for(var k=g.length;k--;)if(ln(g[k][0],N))return k;return-1}ne.prototype.clear=function(){this.__data__=$?$(null):{}},ne.prototype.delete=function(g){return this.has(g)&&delete this.__data__[g]},ne.prototype.get=function(g){var N=this.__data__;if($){var k=N[g];return k==="__lodash_hash_undefined__"?void 0:k}return F.call(N,g)?N[g]:void 0},ne.prototype.has=function(g){var N=this.__data__;return $?N[g]!==void 0:F.call(N,g)},ne.prototype.set=function(g,N){return this.__data__[g]=$&&N===void 0?"__lodash_hash_undefined__":N,this},re.prototype.clear=function(){this.__data__=[]},re.prototype.delete=function(g){var N=this.__data__,k=bt(N,g);return!(k<0)&&(k==N.length-1?N.pop():Ce.call(N,k,1),!0)},re.prototype.get=function(g){var N=this.__data__,k=bt(N,g);return k<0?void 0:N[k][1]},re.prototype.has=function(g){return bt(this.__data__,g)>-1},re.prototype.set=function(g,N){var k=this.__data__,Z=bt(k,g);return Z<0?k.push([g,N]):k[Z][1]=N,this},_e.prototype.clear=function(){this.__data__={hash:new ne,map:new(Me||re),string:new ne}},_e.prototype.delete=function(g){return Bt(this,g).delete(g)},_e.prototype.get=function(g){return Bt(this,g).get(g)},_e.prototype.has=function(g){return Bt(this,g).has(g)},_e.prototype.set=function(g,N){return Bt(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 re},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 re){var Z=k.__data__;if(!Me||Z.length<199)return Z.push([g,N]),this;k=this.__data__=new _e(Z)}return k.set(g,N),this};var At,$e=(At=function(g,N){return g&&Pt(g,N,nt)},function(g,N){if(g==null)return g;if(!X(g))return At(g,N);for(var k=g.length,Z=-1,te=Object(g);++Z<k&&N(te[Z],Z,te)!==!1;);return g}),Pt=function(g){return function(N,k,Z){for(var te=-1,ue=Object(N),Se=Z(N),ze=Se.length;ze--;){var Je=Se[++te];if(k(ue[Je],Je,ue)===!1)break}return N}}();function kt(g,N){for(var k=0,Z=(N=He(N,g)?[N]:zt(N)).length;g!=null&&k<Z;)g=g[it(N[k++])];return k&&k==Z?g:void 0}function sn(g,N){return g!=null&&N in Object(g)}function wt(g,N,k,Z,te){return g===N||(g==null||N==null||!je(g)&&!Fe(N)?g!=g&&N!=N:function(ue,Se,ze,Je,Ze,ke){var It=y(ue),dt=y(Se),st="[object Array]",lt="[object Array]";It||(st=(st=K(ue))==o?s:st),dt||(lt=(lt=K(Se))==o?s:lt);var Nt=st==s&&!H(ue),hn=lt==s&&!H(Se),Ut=st==lt;if(Ut&&!Nt)return ke||(ke=new Ke),It||Oe(ue)?Yt(ue,Se,ze,Je,Ze,ke):function(Ye,Le,Br,cn,Yn,Ct,Vt){switch(Br){case"[object DataView]":if(Ye.byteLength!=Le.byteLength||Ye.byteOffset!=Le.byteOffset)return!1;Ye=Ye.buffer,Le=Le.buffer;case"[object ArrayBuffer]":return!(Ye.byteLength!=Le.byteLength||!cn(new oe(Ye),new oe(Le)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ln(+Ye,+Le);case"[object Error]":return Ye.name==Le.name&&Ye.message==Le.message;case"[object RegExp]":case"[object String]":return Ye==Le+"";case i:var $t=pe;case l:var Rn=2&Ct;if($t||($t=P),Ye.size!=Le.size&&!Rn)return!1;var Jn=Vt.get(Ye);if(Jn)return Jn==Le;Ct|=1,Vt.set(Ye,Le);var vn=Yt($t(Ye),$t(Le),cn,Yn,Ct,Vt);return Vt.delete(Ye),vn;case"[object Symbol]":if(le)return le.call(Ye)==le.call(Le)}return!1}(ue,Se,st,ze,Je,Ze,ke);if(!(2&Ze)){var lo=Nt&&F.call(ue,"__wrapped__"),uo=hn&&F.call(Se,"__wrapped__");if(lo||uo){var su=lo?ue.value():ue,lu=uo?Se.value():Se;return ke||(ke=new Ke),ze(su,lu,Je,Ze,ke)}}return Ut?(ke||(ke=new Ke),function(Ye,Le,Br,cn,Yn,Ct){var Vt=2&Yn,$t=nt(Ye),Rn=$t.length,Jn=nt(Le).length;if(Rn!=Jn&&!Vt)return!1;for(var vn=Rn;vn--;){var Qt=$t[vn];if(!(Vt?Qt in Le:F.call(Le,Qt)))return!1}var co=Ct.get(Ye);if(co&&Ct.get(Le))return co==Le;var Un=!0;Ct.set(Ye,Le),Ct.set(Le,Ye);for(var Vr=Vt;++vn<Rn;){Qt=$t[vn];var $n=Ye[Qt],Qn=Le[Qt];if(cn)var fo=Vt?cn(Qn,$n,Qt,Le,Ye,Ct):cn($n,Qn,Qt,Ye,Le,Ct);if(!(fo===void 0?$n===Qn||Br($n,Qn,cn,Yn,Ct):fo)){Un=!1;break}Vr||(Vr=Qt=="constructor")}if(Un&&!Vr){var Kn=Ye.constructor,qn=Le.constructor;Kn==qn||!("constructor"in Ye)||!("constructor"in Le)||typeof Kn=="function"&&Kn instanceof Kn&&typeof qn=="function"&&qn instanceof qn||(Un=!1)}return Ct.delete(Ye),Ct.delete(Le),Un}(ue,Se,ze,Je,Ze,ke)):!1}(g,N,wt,k,Z,te))}function Et(g){return!(!je(g)||function(N){return!!W&&W in N}(g))&&(Q(g)||H(g)?ce:b).test(ht(g))}function Rt(g){return typeof g=="function"?g:g==null?Qe:typeof g=="object"?y(g)?function(Z,te){return He(Z)&&tt(te)?pt(it(Z),te):function(ue){var Se=function(ze,Je,Ze){var ke=ze==null?void 0:kt(ze,Je);return ke===void 0?Ze:ke}(ue,Z);return Se===void 0&&Se===te?function(ze,Je){return ze!=null&&function(Ze,ke,It){ke=He(ke,Ze)?[ke]:zt(ke);for(var dt,st=-1,lt=ke.length;++st<lt;){var Nt=it(ke[st]);if(!(dt=Ze!=null&&It(Ze,Nt)))break;Ze=Ze[Nt]}return dt||!!(lt=Ze?Ze.length:0)&&be(lt)&&se(Nt,lt)&&(y(Ze)||un(Ze))}(ze,Je,sn)}(ue,Z):wt(te,Se,void 0,3)}}(g[0],g[1]):function(Z){var te=function(ue){for(var Se=nt(ue),ze=Se.length;ze--;){var Je=Se[ze],Ze=ue[Je];Se[ze]=[Je,Ze,tt(Ze)]}return Se}(Z);return te.length==1&&te[0][2]?pt(te[0][0],te[0][1]):function(ue){return ue===Z||function(Se,ze,Je,Ze){var ke=Je.length,It=ke;if(Se==null)return!It;for(Se=Object(Se);ke--;){var dt=Je[ke];if(dt[2]?dt[1]!==Se[dt[0]]:!(dt[0]in Se))return!1}for(;++ke<It;){var st=(dt=Je[ke])[0],lt=Se[st],Nt=dt[1];if(dt[2]){if(lt===void 0&&!(st in Se))return!1}else{var hn=new Ke,Ut;if(!(Ut===void 0?wt(Nt,lt,Ze,3,hn):Ut))return!1}}return!0}(ue,Z,te)}}(g):He(N=g)?(k=it(N),function(Z){return Z==null?void 0:Z[k]}):function(Z){return function(te){return kt(te,Z)}}(N);var N,k}function Zt(g){if(k=(N=g)&&N.constructor,Z=typeof k=="function"&&k.prototype||_,N!==Z)return Ee(g);var N,k,Z,te=[];for(var ue in Object(g))F.call(g,ue)&&ue!="constructor"&&te.push(ue);return te}function zt(g){return y(g)?g:ct(g)}function Yt(g,N,k,Z,te,ue){var Se=2&te,ze=g.length,Je=N.length;if(ze!=Je&&!(Se&&Je>ze))return!1;var Ze=ue.get(g);if(Ze&&ue.get(N))return Ze==N;var ke=-1,It=!0,dt=1&te?new ot:void 0;for(ue.set(g,N),ue.set(N,g);++ke<ze;){var st=g[ke],lt=N[ke];if(Z)var Nt=Se?Z(lt,st,ke,N,g,ue):Z(st,lt,ke,g,N,ue);if(Nt!==void 0){if(Nt)continue;It=!1;break}if(dt){if(!J(N,function(hn,Ut){if(!dt.has(Ut)&&(st===hn||k(st,hn,Z,te,ue)))return dt.add(Ut)})){It=!1;break}}else if(st!==lt&&!k(st,lt,Z,te,ue)){It=!1;break}}return ue.delete(g),ue.delete(N),It}function Bt(g,N){var k,Z,te=g.__data__;return((Z=typeof(k=N))=="string"||Z=="number"||Z=="symbol"||Z=="boolean"?k!=="__proto__":k===null)?te[typeof N=="string"?"string":"hash"]:te.map}function j(g,N){var k=function(Z,te){return Z==null?void 0:Z[te]}(g,N);return Et(k)?k:void 0}var K=function(g){return m.call(g)};function se(g,N){return!!(N=N??9007199254740991)&&(typeof g=="number"||h.test(g))&&g>-1&&g%1==0&&g<N}function He(g,N){if(y(g))return!1;var k=typeof g;return!(k!="number"&&k!="symbol"&&k!="boolean"&&g!=null&&!Pe(g))||d.test(g)||!c.test(g)||N!=null&&g in Object(N)}function tt(g){return g==g&&!je(g)}function pt(g,N){return function(k){return k!=null&&k[g]===N&&(N!==void 0||g in Object(k))}}(z&&K(new z(new ArrayBuffer(1)))!="[object DataView]"||Me&&K(new Me)!=i||Ge&&K(Ge.resolve())!="[object Promise]"||G&&K(new G)!=l||D&&K(new D)!="[object WeakMap]")&&(K=function(g){var N=m.call(g),k=N==s?g.constructor:void 0,Z=k?ht(k):void 0;if(Z)switch(Z){case ve:return"[object DataView]";case ie:return i;case ye:return"[object Promise]";case xe:return l;case Re:return"[object WeakMap]"}return N});var ct=Jt(function(g){var N;g=(N=g)==null?"":function(Z){if(typeof Z=="string")return Z;if(Pe(Z))return Ie?Ie.call(Z):"";var te=Z+"";return te=="0"&&1/Z==-1/0?"-0":te}(N);var k=[];return f.test(g)&&k.push(""),g.replace(v,function(Z,te,ue,Se){k.push(ue?Se.replace(x,"$1"):te||Z)}),k});function it(g){if(typeof g=="string"||Pe(g))return g;var N=g+"";return N=="0"&&1/g==-1/0?"-0":N}function ht(g){if(g!=null){try{return U.call(g)}catch{}try{return g+""}catch{}}return""}function Jt(g,N){if(typeof g!="function"||N&&typeof N!="function")throw new TypeError("Expected a function");var k=function(){var Z=arguments,te=N?N.apply(this,Z):Z[0],ue=k.cache;if(ue.has(te))return ue.get(te);var Se=g.apply(this,Z);return k.cache=ue.set(te,Se),Se};return k.cache=new(Jt.Cache||_e),k}function ln(g,N){return g===N||g!=g&&N!=N}function un(g){return function(N){return Fe(N)&&X(N)}(g)&&F.call(g,"callee")&&(!we.call(g,"callee")||m.call(g)==o)}Jt.Cache=_e;var y=Array.isArray;function X(g){return g!=null&&be(g.length)&&!Q(g)}function Q(g){var N=je(g)?m.call(g):"";return N=="[object Function]"||N=="[object GeneratorFunction]"}function be(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=9007199254740991}function je(g){var N=typeof g;return!!g&&(N=="object"||N=="function")}function Fe(g){return!!g&&typeof g=="object"}function Pe(g){return typeof g=="symbol"||Fe(g)&&m.call(g)=="[object Symbol]"}var Oe=V?function(g){return function(N){return g(N)}}(V):function(g){return Fe(g)&&be(g.length)&&!!p[m.call(g)]};function nt(g){return X(g)?ut(g):Zt(g)}function Qe(g){return g}n.exports=function(g,N,k){var Z=y(g)?q:ae,te=arguments.length<3;return Z(g,Rt(N),k,te,$e)}}).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(_,L,W){return L in _?Object.defineProperty(_,L,{value:W,enumerable:!0,configurable:!0,writable:!0}):_[L]=W,_}function n(_){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 W=0,U=new Array(L.length);W<L.length;W++)U[W]=L[W];return U}}(_)||n(_)||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 W=0;W<L.length;W++){var U=L[W];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(_,U.key,U)}}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 v(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function x(_){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(L){return L.__proto__||Object.getPrototypeOf(L)})(_)}function b(_,L){return(b=Object.setPrototypeOf||function(W,U){return W.__proto__=U,W})(_,L)}r.r(t);var h=r(0),p=r.n(h),C=r(5),w=r.n(C),R=r(4),A=r.n(R),I=r(6),M=r.n(I),B=r(2),V=r.n(B),q=r(1),J=r.n(q);r(8);function ae(_,L){return i(_)||function(W,U){var F=[],m=!0,ce=!1,de=void 0;try{for(var oe,we=W[Symbol.iterator]();!(m=(oe=we.next()).done)&&(F.push(oe.value),!U||F.length!==U);m=!0);}catch(Ce){ce=!0,de=Ce}finally{try{m||we.return==null||we.return()}finally{if(ce)throw de}}return F}(_,L)||s()}var H=[["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"]],pe=[["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 P(_,L,W,U,F){return!W||F?_+"".padEnd(L.length,".")+" "+U:_+"".padEnd(L.length,".")+" "+W}function O(_,L,W,U,F){var m,ce,de=[];return ce=L===!0,[(m=[]).concat.apply(m,o(_.map(function(oe){var we={name:oe[0],regions:oe[1],iso2:oe[2],countryCode:oe[3],dialCode:oe[3],format:P(W,oe[3],oe[4],U,F),priority:oe[5]||0},Ce=[];return oe[6]&&oe[6].map(function(Ee){var z=function(Me){for(var Ge=1;Ge<arguments.length;Ge++){var G=arguments[Ge]!=null?arguments[Ge]:{},D=Object.keys(G);typeof Object.getOwnPropertySymbols=="function"&&(D=D.concat(Object.getOwnPropertySymbols(G).filter(function($){return Object.getOwnPropertyDescriptor(G,$).enumerable}))),D.forEach(function($){a(Me,$,G[$])})}return Me}({},we);z.dialCode=oe[3]+Ee,z.isAreaCode=!0,z.areaCodeLength=Ee.length,Ce.push(z)}),Ce.length>0?(we.mainCode=!0,ce||L.constructor.name==="Array"&&L.includes(oe[2])?(we.hasAreaCodes=!0,[we].concat(Ce)):(de=de.concat(Ce),[we])):[we]}))),de]}function T(_,L,W,U){if(W!==null){var F=Object.keys(W),m=Object.values(W);F.forEach(function(ce,de){if(U)return _.push([ce,m[de]]);var oe=_.findIndex(function(Ce){return Ce[0]===ce});if(oe===-1){var we=[ce];we[L]=m[de],_.push(we)}else _[oe][L]=m[de]})}}function Y(_,L){return L.length===0?_:_.map(function(W){var U=L.findIndex(function(m){return m[0]===W[2]});if(U===-1)return W;var F=L[U];return F[1]&&(W[4]=F[1]),F[3]&&(W[5]=F[3]),F[2]&&(W[6]=F[2]),W})}var ge=function _(L,W,U,F,m,ce,de,oe,we,Ce,Ee,z,Me,Ge){l(this,_),this.filterRegions=function(ee,le){if(typeof ee=="string"){var Ie=ee;return le.filter(function(ne){return ne.regions.some(function(re){return re===Ie})})}return le.filter(function(ne){return ee.map(function(re){return ne.regions.some(function(_e){return _e===re})}).some(function(re){return re})})},this.sortTerritories=function(ee,le){var Ie=[].concat(o(ee),o(le));return Ie.sort(function(ne,re){return ne.name<re.name?-1:ne.name>re.name?1:0}),Ie},this.getFilteredCountryList=function(ee,le,Ie){return ee.length===0?le:Ie?ee.map(function(ne){var re=le.find(function(_e){return _e.iso2===ne});if(re)return re}).filter(function(ne){return ne}):le.filter(function(ne){return ee.some(function(re){return re===ne.iso2})})},this.localizeCountries=function(ee,le,Ie){for(var ne=0;ne<ee.length;ne++)le[ee[ne].iso2]!==void 0?ee[ne].localName=le[ee[ne].iso2]:le[ee[ne].name]!==void 0&&(ee[ne].localName=le[ee[ne].name]);return Ie||ee.sort(function(re,_e){return re.localName<_e.localName?-1:re.localName>_e.localName?1:0}),ee},this.getCustomAreas=function(ee,le){for(var Ie=[],ne=0;ne<le.length;ne++){var re=JSON.parse(JSON.stringify(ee));re.dialCode+=le[ne],Ie.push(re)}return Ie},this.excludeCountries=function(ee,le){return le.length===0?ee:ee.filter(function(Ie){return!le.includes(Ie.iso2)})};var G=function(ee,le,Ie){var ne=[];return T(ne,1,ee,!0),T(ne,3,le),T(ne,2,Ie),ne}(oe,we,Ce),D=Y(JSON.parse(JSON.stringify(H)),G),$=Y(JSON.parse(JSON.stringify(pe)),G),ve=ae(O(D,L,z,Me,Ge),2),ie=ve[0],ye=ve[1];if(W){var xe=ae(O($,L,z,Me,Ge),2),Re=xe[0];xe[1],ie=this.sortTerritories(Re,ie)}U&&(ie=this.filterRegions(U,ie)),this.onlyCountries=this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(F,ie,de.includes("onlyCountries")),ce),Ee,de.includes("onlyCountries")),this.preferredCountries=m.length===0?[]:this.localizeCountries(this.getFilteredCountryList(m,ie,de.includes("preferredCountries")),Ee,de.includes("preferredCountries")),this.hiddenAreaCodes=this.excludeCountries(this.getFilteredCountryList(F,ye),ce)},Ne=function(_){function L(F){var m;l(this,L),(m=function(G,D){return!D||f(D)!=="object"&&typeof D!="function"?v(G):D}(this,x(L).call(this,F))).getProbableCandidate=A()(function(G){return G&&G.length!==0?m.state.onlyCountries.filter(function(D){return V()(D.name.toLowerCase(),G.toLowerCase())},v(v(m)))[0]:null}),m.guessSelectedCountry=A()(function(G,D,$,ve){var ie;if(m.props.enableAreaCodes===!1&&(ve.some(function(Re){if(V()(G,Re.dialCode))return $.some(function(ee){if(Re.iso2===ee.iso2&&ee.mainCode)return ie=ee,!0}),!0}),ie))return ie;var ye=$.find(function(Re){return Re.iso2==D});if(G.trim()==="")return ye;var xe=$.reduce(function(Re,ee){return V()(G,ee.dialCode)&&(ee.dialCode.length>Re.dialCode.length||ee.dialCode.length===Re.dialCode.length&&ee.priority<Re.priority)?ee:Re},{dialCode:"",priority:10001},v(v(m)));return xe.name?xe:ye}),m.updateCountry=function(G){var D,$=m.state.onlyCountries;(D=G.indexOf(0)>="0"&&G.indexOf(0)<="9"?$.find(function(ve){return ve.dialCode==+G}):$.find(function(ve){return ve.iso2==G}))&&D.dialCode&&m.setState({selectedCountry:D,formattedNumber:m.props.disableCountryCode?"":m.formatNumber(D.dialCode,D)})},m.scrollTo=function(G,D){if(G){var $=m.dropdownRef;if($&&document.body){var ve=$.offsetHeight,ie=$.getBoundingClientRect().top+document.body.scrollTop,ye=ie+ve,xe=G,Re=xe.getBoundingClientRect(),ee=xe.offsetHeight,le=Re.top+document.body.scrollTop,Ie=le+ee,ne=le-ie+$.scrollTop,re=ve/2-ee/2;if(m.props.enableSearch?le<ie+32:le<ie)D&&(ne-=re),$.scrollTop=ne;else if(Ie>ye){D&&(ne+=re);var _e=ve-ee;$.scrollTop=ne-_e}}}},m.scrollToTop=function(){var G=m.dropdownRef;G&&document.body&&(G.scrollTop=0)},m.formatNumber=function(G,D){if(!D)return G;var $,ve=D.format,ie=m.props,ye=ie.disableCountryCode,xe=ie.enableAreaCodeStretch,Re=ie.enableLongNumbers,ee=ie.autoFormat;if(ye?(($=ve.split(" ")).shift(),$=$.join(" ")):xe&&D.isAreaCode?(($=ve.split(" "))[1]=$[1].replace(/\.+/,"".padEnd(D.areaCodeLength,".")),$=$.join(" ")):$=ve,!G||G.length===0)return ye?"":m.props.prefix;if(G&&G.length<2||!$||!ee)return ye?G:m.props.prefix+G;var le,Ie=M()($,function(ne,re){if(ne.remainingText.length===0)return ne;if(re!==".")return{formattedText:ne.formattedText+re,remainingText:ne.remainingText};var _e,ot=i(_e=ne.remainingText)||n(_e)||s(),Ke=ot[0],ut=ot.slice(1);return{formattedText:ne.formattedText+Ke,remainingText:ut}},{formattedText:"",remainingText:G.split("")});return(le=Re?Ie.formattedText+Ie.remainingText.join(""):Ie.formattedText).includes("(")&&!le.includes(")")&&(le+=")"),le},m.cursorToEnd=function(){var G=m.numberInputRef;if(document.activeElement===G){G.focus();var D=G.value.length;G.value.charAt(D-1)===")"&&(D-=1),G.setSelectionRange(D,D)}},m.getElement=function(G){return m["flag_no_".concat(G)]},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(G){if(G.preventDefault(),m.state.showDropdown||!m.props.disabled){var D=m.state,$=D.preferredCountries,ve=D.onlyCountries,ie=D.selectedCountry,ye=m.concatPreferredCountries($,ve).findIndex(function(xe){return xe.dialCode===ie.dialCode&&xe.iso2===ie.iso2});m.setState({showDropdown:!m.state.showDropdown,highlightCountryIndex:ye},function(){m.state.showDropdown&&m.scrollTo(m.getElement(m.state.highlightCountryIndex))})}},m.handleInput=function(G){var D=G.target.value,$=m.props,ve=$.prefix,ie=$.onChange,ye=m.props.disableCountryCode?"":ve,xe=m.state.selectedCountry,Re=m.state.freezeSelection;if(!m.props.countryCodeEditable){var ee=ve+(xe.hasAreaCodes?m.state.onlyCountries.find(function($e){return $e.iso2===xe.iso2&&$e.mainCode}).dialCode:xe.dialCode);if(D.slice(0,ee.length)!==ee)return}if(D===ve)return ie&&ie("",m.getCountryData(),G,""),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){G.preventDefault?G.preventDefault():G.returnValue=!1;var le=m.props.country,Ie=m.state,ne=Ie.onlyCountries,re=Ie.selectedCountry,_e=Ie.hiddenAreaCodes;if(ie&&G.persist(),D.length>0){var ot=D.replace(/\D/g,"");(!m.state.freezeSelection||re&&re.dialCode.length>ot.length)&&(xe=m.props.disableCountryGuess?re:m.guessSelectedCountry(ot.substring(0,6),le,ne,_e)||re,Re=!1),ye=m.formatNumber(ot,xe),xe=xe.dialCode?xe:re}var Ke=G.target.selectionStart,ut=G.target.selectionStart,bt=m.state.formattedNumber,At=ye.length-bt.length;m.setState({formattedNumber:ye,freezeSelection:Re,selectedCountry:xe},function(){At>0&&(ut-=At),ye.charAt(ye.length-1)==")"?m.numberInputRef.setSelectionRange(ye.length-1,ye.length-1):ut>0&&bt.length>=ye.length?m.numberInputRef.setSelectionRange(ut,ut):Ke<bt.length&&m.numberInputRef.setSelectionRange(Ke,Ke),ie&&ie(ye.replace(/[^0-9]+/g,""),m.getCountryData(),G,ye)})}},m.handleInputClick=function(G){m.setState({showDropdown:!1}),m.props.onClick&&m.props.onClick(G,m.getCountryData())},m.handleDoubleClick=function(G){var D=G.target.value.length;G.target.setSelectionRange(0,D)},m.handleFlagItemClick=function(G,D){var $=m.state.selectedCountry,ve=m.state.onlyCountries.find(function(Re){return Re==G});if(ve){var ie=m.state.formattedNumber.replace(" ","").replace("(","").replace(")","").replace("-",""),ye=ie.length>1?ie.replace($.dialCode,ve.dialCode):ve.dialCode,xe=m.formatNumber(ye.replace(/\D/g,""),ve);m.setState({showDropdown:!1,selectedCountry:ve,freezeSelection:!0,formattedNumber:xe,searchValue:""},function(){m.cursorToEnd(),m.props.onChange&&m.props.onChange(xe.replace(/[^0-9]+/g,""),m.getCountryData(),D,xe)})}},m.handleInputFocus=function(G){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(G,m.getCountryData()),m.props.jumpCursorToEnd&&setTimeout(m.cursorToEnd,0)},m.handleInputBlur=function(G){G.target.value||m.setState({placeholder:m.props.placeholder}),m.props.onBlur&&m.props.onBlur(G,m.getCountryData())},m.handleInputCopy=function(G){if(m.props.copyNumbersOnly){var D=window.getSelection().toString().replace(/[^0-9]+/g,"");G.clipboardData.setData("text/plain",D),G.preventDefault()}},m.getHighlightCountryIndex=function(G){var D=m.state.highlightCountryIndex+G;return D<0||D>=m.state.onlyCountries.length+m.state.preferredCountries.length?D-G:m.props.enableSearch&&D>m.getSearchFilteredCountries().length?0:D},m.searchCountry=function(){var G=m.getProbableCandidate(m.state.queryString)||m.state.onlyCountries[0],D=m.state.onlyCountries.findIndex(function($){return $==G})+m.state.preferredCountries.length;m.scrollTo(m.getElement(D),!0),m.setState({queryString:"",highlightCountryIndex:D})},m.handleKeydown=function(G){var D=m.props.keys,$=G.target.className;if($.includes("selected-flag")&&G.which===D.ENTER&&!m.state.showDropdown)return m.handleFlagDropdownClick(G);if($.includes("form-control")&&(G.which===D.ENTER||G.which===D.ESC))return G.target.blur();if(m.state.showDropdown&&!m.props.disabled&&(!$.includes("search-box")||G.which===D.UP||G.which===D.DOWN||G.which===D.ENTER||G.which===D.ESC&&G.target.value==="")){G.preventDefault?G.preventDefault():G.returnValue=!1;var ve=function(ie){m.setState({highlightCountryIndex:m.getHighlightCountryIndex(ie)},function(){m.scrollTo(m.getElement(m.state.highlightCountryIndex),!0)})};switch(G.which){case D.DOWN:ve(1);break;case D.UP:ve(-1);break;case D.ENTER:m.props.enableSearch?m.handleFlagItemClick(m.getSearchFilteredCountries()[m.state.highlightCountryIndex]||m.getSearchFilteredCountries()[0],G):m.handleFlagItemClick([].concat(o(m.state.preferredCountries),o(m.state.onlyCountries))[m.state.highlightCountryIndex],G);break;case D.ESC:case D.TAB:m.setState({showDropdown:!1},m.cursorToEnd);break;default:(G.which>=D.A&&G.which<=D.Z||G.which===D.SPACE)&&m.setState({queryString:m.state.queryString+String.fromCharCode(G.which)},m.state.debouncedQueryStingSearcher)}}},m.handleInputKeyDown=function(G){var D=m.props,$=D.keys,ve=D.onEnterKeyPress,ie=D.onKeyDown;G.which===$.ENTER&&ve&&ve(G),ie&&ie(G)},m.handleClickOutside=function(G){m.dropdownRef&&!m.dropdownContainerRef.contains(G.target)&&m.state.showDropdown&&m.setState({showDropdown:!1})},m.handleSearchChange=function(G){var D=G.currentTarget.value,$=m.state,ve=$.preferredCountries,ie=$.selectedCountry,ye=0;if(D===""&&ie){var xe=m.state.onlyCountries;ye=m.concatPreferredCountries(ve,xe).findIndex(function(Re){return Re==ie}),setTimeout(function(){return m.scrollTo(m.getElement(ye))},100)}m.setState({searchValue:D,highlightCountryIndex:ye})},m.concatPreferredCountries=function(G,D){return G.length>0?o(new Set(G.concat(D))):D},m.getDropdownCountryName=function(G){return G.localName||G.name},m.getSearchFilteredCountries=function(){var G=m.state,D=G.preferredCountries,$=G.onlyCountries,ve=G.searchValue,ie=m.props.enableSearch,ye=m.concatPreferredCountries(D,$),xe=ve.trim().toLowerCase().replace("+","");if(ie&&xe){if(/^\d+$/.test(xe))return ye.filter(function(le){var Ie=le.dialCode;return["".concat(Ie)].some(function(ne){return ne.toLowerCase().includes(xe)})});var Re=ye.filter(function(le){var Ie=le.iso2;return["".concat(Ie)].some(function(ne){return ne.toLowerCase().includes(xe)})}),ee=ye.filter(function(le){var Ie=le.name,ne=le.localName;return le.iso2,["".concat(Ie),"".concat(ne||"")].some(function(re){return re.toLowerCase().includes(xe)})});return m.scrollToTop(),o(new Set([].concat(Re,ee)))}return ye},m.getCountryDropdownList=function(){var G=m.state,D=G.preferredCountries,$=G.highlightCountryIndex,ve=G.showDropdown,ie=G.searchValue,ye=m.props,xe=ye.disableDropdown,Re=ye.prefix,ee=m.props,le=ee.enableSearch,Ie=ee.searchNotFound,ne=ee.disableSearchIcon,re=ee.searchClass,_e=ee.searchStyle,ot=ee.searchPlaceholder,Ke=ee.autocompleteSearch,ut=m.getSearchFilteredCountries().map(function($e,Pt){var kt=$===Pt,sn=J()({country:!0,preferred:$e.iso2==="us"||$e.iso2==="gb",active:$e.iso2==="us",highlight:kt}),wt="flag ".concat($e.iso2);return p.a.createElement("li",Object.assign({ref:function(Et){return m["flag_no_".concat(Pt)]=Et},key:"flag_no_".concat(Pt),"data-flag-key":"flag_no_".concat(Pt),className:sn,"data-dial-code":"1",tabIndex:xe?"-1":"0","data-country-code":$e.iso2,onClick:function(Et){return m.handleFlagItemClick($e,Et)},role:"option"},kt?{"aria-selected":!0}:{}),p.a.createElement("div",{className:wt}),p.a.createElement("span",{className:"country-name"},m.getDropdownCountryName($e)),p.a.createElement("span",{className:"dial-code"},$e.format?m.formatNumber($e.dialCode,$e):Re+$e.dialCode))}),bt=p.a.createElement("li",{key:"dashes",className:"divider"});D.length>0&&(!le||le&&!ie.trim())&&ut.splice(D.length,0,bt);var At=J()(a({"country-list":!0,hide:!ve},m.props.dropdownClass,!0));return p.a.createElement("ul",{ref:function($e){return!le&&$e&&$e.focus(),m.dropdownRef=$e},className:At,style:m.props.dropdownStyle,role:"listbox",tabIndex:"0"},le&&p.a.createElement("li",{className:J()(a({search:!0},re,re))},!ne&&p.a.createElement("span",{className:J()(a({"search-emoji":!0},"".concat(re,"-emoji"),re)),role:"img","aria-label":"Magnifying glass"},"🔎"),p.a.createElement("input",{className:J()(a({"search-box":!0},"".concat(re,"-box"),re)),style:_e,type:"search",placeholder:ot,autoFocus:!0,autoComplete:Ke?"on":"off",value:ie,onChange:m.handleSearchChange})),ut.length>0?ut:p.a.createElement("li",{className:"no-entries-message"},p.a.createElement("span",null,Ie)))};var ce,de=new ge(F.enableAreaCodes,F.enableTerritories,F.regions,F.onlyCountries,F.preferredCountries,F.excludeCountries,F.preserveOrder,F.masks,F.priority,F.areaCodes,F.localization,F.prefix,F.defaultMask,F.alwaysDefaultMask),oe=de.onlyCountries,we=de.preferredCountries,Ce=de.hiddenAreaCodes,Ee=F.value?F.value.replace(/\D/g,""):"";ce=F.disableInitialCountryGuess?0:Ee.length>1?m.guessSelectedCountry(Ee.substring(0,6),F.country,oe,Ce)||0:F.country&&oe.find(function(G){return G.iso2==F.country})||0;var z,Me=Ee.length<2&&ce&&!V()(Ee,ce.dialCode)?ce.dialCode:"";z=Ee===""&&ce===0?"":m.formatNumber((F.disableCountryCode?"":Me)+Ee,ce.name?ce:void 0);var Ge=oe.findIndex(function(G){return G==ce});return m.state={showDropdown:F.showDropdown,formattedNumber:z,onlyCountries:oe,preferredCountries:we,hiddenAreaCodes:Ce,selectedCountry:ce,highlightCountryIndex:Ge,queryString:"",freezeSelection:!1,debouncedQueryStingSearcher:w()(m.searchCountry,250),searchValue:""},m}var W,U;return function(F,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(m&&m.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),m&&b(F,m)}(L,_),W=L,(U=[{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(F,m,ce){F.country!==this.props.country?this.updateCountry(this.props.country):F.value!==this.props.value&&this.updateFormattedNumber(this.props.value)}},{key:"updateFormattedNumber",value:function(F){if(F===null)return this.setState({selectedCountry:0,formattedNumber:""});var m=this.state,ce=m.onlyCountries,de=m.selectedCountry,oe=m.hiddenAreaCodes,we=this.props,Ce=we.country,Ee=we.prefix;if(F==="")return this.setState({selectedCountry:de,formattedNumber:""});var z,Me,Ge=F.replace(/\D/g,"");if(de&&V()(F,Ee+de.dialCode))Me=this.formatNumber(Ge,de),this.setState({formattedNumber:Me});else{var G=(z=this.props.disableCountryGuess?de:this.guessSelectedCountry(Ge.substring(0,6),Ce,ce,oe)||de)&&V()(Ge,Ee+z.dialCode)?z.dialCode:"";Me=this.formatNumber((this.props.disableCountryCode?"":G)+Ge,z||void 0),this.setState({selectedCountry:z,formattedNumber:Me})}}},{key:"render",value:function(){var F,m,ce,de=this,oe=this.state,we=oe.onlyCountries,Ce=oe.selectedCountry,Ee=oe.showDropdown,z=oe.formattedNumber,Me=oe.hiddenAreaCodes,Ge=this.props,G=Ge.disableDropdown,D=Ge.renderStringAsFlag,$=Ge.isValid,ve=Ge.defaultErrorMessage,ie=Ge.specialLabel;if(typeof $=="boolean")m=$;else{var ye=$(z.replace(/\D/g,""),Ce,we,Me);typeof ye=="boolean"?(m=ye)===!1&&(ce=ve):(m=!1,ce=ye)}var xe=J()((a(F={},this.props.containerClass,!0),a(F,"react-tel-input",!0),F)),Re=J()({arrow:!0,up:Ee}),ee=J()(a({"form-control":!0,"invalid-number":!m,open:Ee},this.props.inputClass,!0)),le=J()({"selected-flag":!0,open:Ee}),Ie=J()(a({"flag-dropdown":!0,"invalid-number":!m,open:Ee},this.props.buttonClass,!0)),ne="flag ".concat(Ce&&Ce.iso2);return p.a.createElement("div",{className:"".concat(xe," ").concat(this.props.className),style:this.props.style||this.props.containerStyle,onKeyDown:this.handleKeydown},ie&&p.a.createElement("div",{className:"special-label"},ie),ce&&p.a.createElement("div",{className:"invalid-number-message"},ce),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:z,onKeyDown:this.handleInputKeyDown,placeholder:this.props.placeholder,disabled:this.props.disabled,type:"tel"},this.props.inputProps,{ref:function(re){de.numberInputRef=re,typeof de.props.inputProps.ref=="function"?de.props.inputProps.ref(re):typeof de.props.inputProps.ref=="object"&&(de.props.inputProps.ref.current=re)}})),p.a.createElement("div",{className:Ie,style:this.props.buttonStyle,ref:function(re){return de.dropdownContainerRef=re}},D?p.a.createElement("div",{className:le},D):p.a.createElement("div",{onClick:G?void 0:this.handleFlagDropdownClick,className:le,title:Ce?"".concat(Ce.localName||Ce.name,": + ").concat(Ce.dialCode):"",tabIndex:G?"-1":"0",role:"button","aria-haspopup":"listbox","aria-expanded":!!Ee||void 0},p.a.createElement("div",{className:ne},!G&&p.a.createElement("div",{className:Re}))),Ee&&this.getCountryDropdownList()))}}])&&c(W.prototype,U),L}(p.a.Component);Ne.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=Ne}]);const Qm=pu($m),Km=({value:e,onChange:t,error:r,onBlur:a,id:n,name:o,required:i,defaultCountry:s="us",className:l,responsive:c=!1,enableSearch:d=!0,autoComplete:f})=>{const v=(x,b)=>{t("+"+x,b.countryCode)};return u.jsxs("div",{className:l,children:[u.jsx("div",{className:Te("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(Qm,{country:s,value:e.replace("+",""),onChange:v,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})]})},ba=e=>`otp-input-${e}`,sr=e=>jt(document.getElementById(ba(e))),qm=e=>Array.from({length:e},()=>""),Ja=({length:e,onComplete:t,onChange:r,disabled:a=!1,autoFocus:n=!1})=>{const[o,i]=E.useState(()=>qm(e)),s=E.useRef(null),l=E.useRef(t);l.current=t;const c=b=>{i(b),r==null||r(b.join(""))},d=b=>{const h=[...o];for(let C=0;C<Math.min(b.length,e);C++)h[C]=b[C];c(h);const p=h.findIndex(C=>C==="");sr(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&&sr(h+1)},v=b=>{if(a)return;b.preventDefault();const h=b.clipboardData.getData("text/plain").replace(/\D/g,"");h&&d(h)},x=b=>{if(a)return;const h=[...o];h[b]="",c(h),b>0&&sr(b-1)};return E.useEffect(()=>{n&&sr(0)},[]),E.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:v,id:ba(h),"data-testid":ba(h),onKeyDown:p=>{p.key==="Backspace"&&x(h)}},h))})};function eb(e){const t=Math.max(0,Math.ceil(e));return`${Math.floor(t/60)}:${String(t%60).padStart(2,"0")}`}const fr={didntGetIt:"Didn't get it?",resend:"Resend code",resendIn:e=>`Resend code in ${eb(e)}`,attemptsLeft:e=>`${e} ${e===1?"attempt":"attempts"} left.`},Ll=({secondsLeft:e,onResend:t,disabled:r=!1,className:a=""})=>u.jsx("p",{className:`text-sm text-grayWarm-600 ${a}`,children:e>0?fr.resendIn(e):u.jsxs(u.Fragment,{children:[u.jsx("span",{children:fr.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:fr.resend})]})}),tb=({email:e,phone:t,otpLength:r,otpAction:a,onVerify:n,onClose:o,externalError:i,externalErrorVariant:s="error",disabled:l=!1,title:c,description:d,onOtpChange:f,onResend:v,resendAfter:x=0,attemptsRemaining:b})=>{const[h,p]=E.useState(x);E.useEffect(()=>{p(x)},[x]);const C=h>0;E.useEffect(()=>{if(!C)return;const A=setInterval(()=>p(I=>Math.max(0,I-1)),1e3);return()=>clearInterval(A)},[C]);const w=()=>{v==null||v(),p(x)};E.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(Ia,{className:"w-full max-w-[400px] rounded-lg bg-white",children:[u.jsx(Sa,{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(Aa,{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===tn.OTPAction.EMAILED?e:t})]}),u.jsx("div",{className:"mb-6",children:u.jsx(Ja,{length:r,onComplete:n,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:fr.attemptsLeft(b)}),v&&u.jsx(Ll,{secondsLeft:h,onResend:w,disabled:l,className:"text-center mb-2"})]})]})})};function Ua(){if(typeof window>"u")return!1;try{return window.self!==window.top}catch{return!0}}const nb=new Set(["invalid_email","rate_limited","resend_too_soon","flow_expired","invalid_code","too_many_attempts","invalid_request","invalid_credential","topOrigin_required","passkey_limit","credential_exists","not_found","reauth_required","movmo_session_required","first_party_only","issuer_unavailable","passkey_failed","sign_in_failed"]);function rb(e){return nb.has(e)}class Mt extends Error{constructor(t,r,a,n){super(r),this.status=t,this.code=r,this.retryAfter=a,this.attemptsRemaining=n}}function ab(e){return typeof e=="object"&&e!==null?e:void 0}function pi(e){return typeof e=="number"&&Number.isFinite(e)?e:void 0}function vt(e){if(e instanceof Mt)return e;const t=ab(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"&&rb(o)?o:"unknown";return new Mt(a,i,pi(n==null?void 0:n.retry_after),pi(n==null?void 0:n.attempts_remaining))}if(t.isAxiosError===!0||t.request!==void 0)return new Mt(0,"network")}return e instanceof TypeError&&/failed to fetch/i.test(e.message)?new Mt(0,"network"):new Mt(0,"unknown")}const ob=/^[A-Za-z0-9_-]{1,512}$/,Xl=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}};function ib(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=Xl();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 vt(o)}},async sendCode(n){try{const{data:o}=await e.post("/v1/auth/code",a({flow_id:n}));return o}catch(o){throw vt(o)}},async passkeyOptions(){try{const{data:n}=await e.post("/v1/auth/passkey/options",{});return n}catch(n){throw vt(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 vt(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 vt(i)}},async listPasskeys(){try{const{data:n}=await e.get("/v1/users/me/passkeys");return n.passkeys??[]}catch(n){throw vt(n)}},async startRegistration(){try{const{data:n}=await e.post("/v1/users/me/passkeys/registration/start",{});return n}catch(n){throw vt(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 vt(i)}},async logout(){try{await e.post("/v1/auth/logout",{})}catch(n){vt(n)}},async deletePasskey(n){if(!ob.test(n))throw new Mt(0,"invalid_request");try{await e.delete(`/v1/users/me/passkeys/${encodeURIComponent(n)}`)}catch(o){throw vt(o)}}}}const rt={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. Use a code instead.",discoverableNotRecognized:"That passkey isn't recognized. Continue with your email instead."};function Hl(e){return e===void 0?"Incorrect code.":`Incorrect code. ${e} ${e===1?"attempt":"attempts"} left.`}function $a(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 Qa="movmo_pk_prompt",sb=864e5,lb=14,ub=3,cb=99,db=3456e4,Ka=e=>Math.floor(e/sb),fb=/^\d{1,3}(\.\d{1,3}){3}$/;function Zl(e){if(!e||e.includes(":")||fb.test(e))return;const t=e.split(".");if(!(t.length<2))return"."+t.slice(-2).join(".")}function pb(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 gb(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 zn(e=document.cookie,t=Date.now()){const r=pb(e,Qa);if(r.length!==1)return null;let a;try{a=JSON.parse(decodeURIComponent(r[0]))}catch{return null}return!gb(a)||a.d>Ka(t)?null:a}function zl(e=Date.now(),t=zn(document.cookie,e)){return t?t.x===1?!1:t.d===0?!0:Ka(e)-t.d>=lb&&t.n>=ub:!0}function qa(e){try{const t=Zl(window.location.hostname),r={...e,n:Math.min(e.n,cb)};document.cookie=`${Qa}=${encodeURIComponent(JSON.stringify(r))}; Path=/; Max-Age=${db}; SameSite=Lax; Secure${t?"; Domain="+t:""}`}catch{}}function Yl(){const e=zn();!e||e.d<=0||e.x!==0||qa({v:1,d:e.d,n:e.n+1,x:e.x})}function Jl(e=Date.now()){qa({v:1,d:Ka(e),n:0,x:0})}function Ul(e){const t=zn();qa({v:1,d:(t==null?void 0:t.d)??0,n:(t==null?void 0:t.n)??0,x:e?1:0})}function $l(){var e;return((e=zn())==null?void 0:e.x)===1}function Fr(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 eo(){if(!(typeof window>"u"||!window.PublicKeyCredential))return window.PublicKeyCredential}async function to(){const e=eo();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 no{constructor(){po(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 mb(e){return ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}function Cn(e){const t=mb(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 Sr(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 Ql(e){if(Array.isArray(e))return e.map(t=>({...t,id:typeof t.id=="string"?Sr(t.id):t.id}))}function bb(e){const t={...e};typeof e.challenge=="string"&&(t.challenge=Sr(e.challenge));const r=Ql(e.allowCredentials);return r&&(t.allowCredentials=r),t}function hb(e){const t={...e};if(typeof e.challenge=="string"&&(t.challenge=Sr(e.challenge)),e.user&&typeof e.user=="object"){const a=e.user;t.user={...a,id:typeof a.id=="string"?Sr(a.id):a.id}}const r=Ql(e.excludeCredentials);return r&&(t.excludeCredentials=r),t}function vb(e){const t=eo();return t&&typeof t.parseRequestOptionsFromJSON=="function"?t.parseRequestOptionsFromJSON(e.publicKey):bb(e.publicKey)}function yb(e){const t=eo();return t&&typeof t.parseCreationOptionsFromJSON=="function"?t.parseCreationOptionsFromJSON(e.publicKey):hb(e.publicKey)}function Cb(e){const t={clientDataJSON:Cn(e.clientDataJSON)},r=e;r.authenticatorData&&(t.authenticatorData=Cn(r.authenticatorData),t.signature=r.signature?Cn(r.signature):void 0,t.userHandle=r.userHandle?Cn(r.userHandle):void 0);const a=e;return a.attestationObject&&(t.attestationObject=Cn(a.attestationObject),typeof a.getTransports=="function"&&(t.transports=a.getTransports())),t}function xb(e){return{id:e.id,rawId:Cn(e.rawId),type:e.type,authenticatorAttachment:e.authenticatorAttachment??void 0,clientExtensionResults:e.getClientExtensionResults(),response:Cb(e.response)}}function Kl(e){const t=e;if(typeof t.toJSON=="function")try{return t.toJSON()}catch{}return xb(e)}async function ha(e,t){const a={publicKey:vb(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 Kl(n)}async function ql(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=yb({publicKey:r}),n=await navigator.credentials.create({publicKey:a,signal:t.signal});if(!n)throw new DOMException("No credential returned","NotAllowedError");return Kl(n)}function gi(e){if(e.aborted)throw new DOMException("Registration aborted","AbortError")}async function ro(e,t){const r=await e.startRegistration();gi(t.signal);const a=await ql(r.options,{signal:t.signal,securityKey:t.securityKey});return gi(t.signal),e.completeRegistration(r.flow_id,a)}function $r(e){switch(e.code){case"invalid_code":return{code:e.code,message:Hl(e.attemptsRemaining)};case"too_many_attempts":return{code:e.code,message:rt.tooManyAttempts};case"rate_limited":return{code:e.code,message:$a(e.retryAfter)};case"flow_expired":case"topOrigin_required":return{code:e.code,message:rt.flowExpired};case"invalid_email":return{code:e.code,message:rt.invalidEmail};default:return{code:e.code,message:rt.generic}}}function Ib(e){return e==="flow_expired"||e==="topOrigin_required"||e==="too_many_attempts"}function Sb(e){const t=e==="security"||e==="unsupported"?rt.passkeyUnavailable:rt.generic;return{code:e,message:t}}function Ab(e){if(e instanceof Mt)switch(e.code){case"credential_exists":return{code:e.code,message:rt.passkeyExists};case"flow_expired":return{code:e.code,message:rt.enrollExpired};case"rate_limited":return{code:e.code,message:$a(e.retryAfter)};default:return{code:e.code,message:rt.generic}}const t=Fr(e);return t==="cancelled"||t==="aborted"?null:t==="exists"?{code:t,message:rt.passkeyExists}:{code:t,message:rt.generic}}async function wb(e){return e.method!=="otp"||e.loginNext!=="code"||e.surface!=="top-level"||e.offerEnrollment===!1||!await e.platformAuthenticator()?!1:zl()}const eu=27e4,Qr=6;function tu(e){const t=E.useRef(e);t.current=e;const[r]=E.useState(Ua),a=e.surface==="top-level"&&!r,n=a?"top-level":"embedded",o=e.lockedEmail!==void 0||e.expectedUserId!==void 0,[i,s]=E.useState("email"),[l,c]=E.useState(e.lockedEmail??e.initialEmail??""),[d,f]=E.useState(!1),[v,x]=E.useState(null),[b,h]=E.useState(Qr),[p,C]=E.useState(0),[w,R]=E.useState(void 0),[A,I]=E.useState(!1),[M,B]=E.useState(!1),[V,q]=E.useState(""),[J]=E.useState(()=>new no),ae=E.useRef(!1),H=E.useRef("email"),pe=E.useRef(l),P=E.useRef(0);P.current=p;const O=E.useRef(0),T=E.useRef(null),Y=E.useRef(null),ge=E.useRef(null),Ne=E.useRef(0),_=E.useRef(null),L=E.useRef(null),W=E.useRef(!1),U=E.useRef(null),F=E.useRef(!1),m=E.useRef(!1),ce=E.useRef(!1),de=()=>L.current??(L.current=to()),oe=j=>{H.current=j,s(j),j!=="code"&&C(0),j!=="passkey"&&B(!1)},we=j=>{x(j),j&&q("")},Ce=j=>ae.current&&O.current===j,Ee=j=>{const K=++O.current;return T.current=j,f(!0),x(null),K},z=j=>{O.current===j&&(T.current=null,f(!1))},Me=()=>{O.current++,T.current=null,f(!1)},Ge=j=>{var K,se;return(se=(K=t.current).onEvent)==null?void 0:se.call(K,j,{surface:t.current.promptSurface??"modal"})},G=()=>{_.current!==null&&(clearTimeout(_.current),_.current=null),Ne.current++},D=()=>{G(),J.abort()},$=async()=>{if(!a||o)return;G();const j=Ne.current,K=()=>ae.current&&Ne.current===j&&H.current==="email"&&T.current===null,{conditional:se}=await de();if(!K()||!se)return;const He=J.begin();_.current=setTimeout(()=>void $(),eu);let tt;try{tt=await t.current.api.passkeyOptions()}catch{return}if(!K()||He.aborted)return;const pt=tt.flow_id;ha(tt.options,{signal:He,conditional:!0}).then(ct=>{K()&&ve(pt,ct)},()=>{})},ve=async(j,K)=>{G();const se=Ee("request");let He;try{He=await t.current.api.verifyPasskey(j,K)}catch(tt){if(!Ce(se))return;const pt=vt(tt).code==="invalid_credential";ie(se,pt?{code:"invalid_credential",message:rt.discoverableNotRecognized}:null);return}Ce(se)&&await re(se,He,"passkey",null)},ie=(j,K)=>{z(j),we(K),H.current==="passkey"&&B(!0),H.current==="email"&&$()},ye=(j,K)=>{const se=H.current==="email";z(j),Y.current=null,oe("email"),we(K),se&&$()},xe=(j,K)=>{const se=vt(K);if(Ib(se.code)){ye(j,$r(se));return}if(se.code==="resend_too_soon"){z(j),C(Math.max(0,Math.ceil(se.retryAfter??0)));return}se.code==="invalid_code"&&R(se.attemptsRemaining),ie(j,$r(se))},Re=async(j,K)=>{T.current="request";try{const se=await K();return Ce(j)?se:void 0}catch(se){Ce(j)&&xe(j,se);return}},ee=(j,K)=>{ge.current=j.flow_id,h(j.code_length||Qr),R(void 0),oe("code"),C(Math.max(0,j.resend_after??0)),q(rt.codeSent),K&&x(K)},le=async(j,K,se)=>{const He=await Re(j,()=>t.current.api.sendCode(K));He&&(z(j),ee(He,se))},Ie=()=>{Me(),D(),Y.current=null,oe("mismatch"),we({code:"account_mismatch",message:rt.accountMismatch});const{api:j}=t.current;(async()=>{var K,se;try{await j.logout()}catch{}(se=(K=t.current).onAccountMismatch)==null||se.call(K)})()},ne=(j,K)=>{F.current||(F.current=!0,U.current=null,oe("done"),q(rt.signedIn),t.current.onSignedIn(j,K))},re=async(j,K,se,He)=>{var Jt,ln;const tt=t.current,pt=tt.expectedUserId;if(pt!==void 0&&K.user_id!==pt){Ie();return}let ct;try{ct=await tt.getCurrentUser()}catch{if(!Ce(j))return;const un={code:"unknown",message:rt.generic};H.current==="passkey"?ye(j,un):ie(j,un);return}if(!Ce(j))return;if(pt!==void 0&&ct.id!==pt){Ie();return}const it={method:se,newUser:K.new_user};m.current||(m.current=!0,(ln=(Jt=t.current).onVerified)==null||ln.call(Jt,ct,it)),se==="otp"&&a&&Yl();const ht=await wb({method:se,loginNext:He,surface:n,offerEnrollment:tt.offerEnrollment,platformAuthenticator:async()=>(await de()).platform});Ce(j)&&(z(j),ht?(U.current={user:ct,info:it},oe("enroll"),Ge("passkey_prompt_shown")):ne(ct,it))},_e=async(j,K,se,He)=>{if(!a){z(j);return}T.current="ceremony";let tt;try{tt=await ha(K.options,{signal:se})}catch(ct){if(!Ce(j))return;const it=Fr(ct);ie(j,it==="cancelled"||it==="aborted"?null:Sb(it));return}if(!Ce(j))return;T.current="request";let pt;try{pt=await t.current.api.verifyPasskey(K.flow_id,tt)}catch(ct){if(!Ce(j))return;const it=vt(ct);if(it.code==="invalid_credential"&&He){const ht={code:"invalid_credential",message:rt.passkeyNotRecognized};await le(j,K.flow_id,ht)}else it.code==="invalid_credential"?ie(j,{code:"invalid_credential",message:rt.discoverableNotRecognized}):He?ye(j,$r(it)):xe(j,ct);return}Ce(j)&&await re(j,pt,"passkey",He?"passkey":null)},ot=(j,K)=>(B(!1),_e(j,K,J.begin(),!0)),Ke=j=>{t.current.lockedEmail===void 0&&(pe.current=j,c(j))},ut=async()=>{if(T.current||H.current!=="email")return;D();const j=(t.current.lockedEmail??pe.current).trim();if(!j){we({code:"invalid_email",message:rt.invalidEmail}),$();return}pe.current=j,c(j);const K=Ee("request"),se=await Re(K,()=>t.current.api.login(j));se&&(Y.current=se,se.next==="code"?(z(K),ee(se)):a?(h(se.code_length||Qr),oe("passkey"),await ot(K,se)):await le(K,se.flow_id))},bt=async()=>{if(!a||o||!W.current||T.current||H.current!=="email")return;D();const j=Ee("ceremony"),K=J.begin(),se=await Re(j,()=>t.current.api.passkeyOptions());se&&await _e(j,se,K,!1)},At=()=>{const j=Y.current;!a||H.current!=="passkey"||T.current||(j==null?void 0:j.next)!=="passkey"||ot(Ee("ceremony"),j)},$e=()=>{const j=Y.current;H.current!=="passkey"||T.current==="request"||!j||(J.abort(),le(Ee("request"),j.flow_id))},Pt=()=>{H.current!=="passkey"&&H.current!=="code"||(Me(),J.abort(),Y.current=null,x(null),oe("email"))},kt=async j=>{var tt;const K=ge.current;if(H.current!=="code"||T.current||!K)return;const se=Ee("request"),He=await Re(se,()=>t.current.api.verifyCode(K,j));He&&await re(se,He,"otp",((tt=Y.current)==null?void 0:tt.next)??null)},sn=async()=>{const j=ge.current;if(H.current!=="code"||T.current||P.current>0||!j)return;q("");const K=Ee("request"),se=await Re(K,()=>t.current.api.sendCode(j));se&&(z(K),ee(se))},wt=async()=>{if(!a||H.current!=="enroll"||T.current)return;const j=Ee("ceremony"),K=J.begin();try{await ro(t.current.api,{signal:K})}catch(se){Ce(j)&&ie(j,Ab(se));return}Ce(j)&&(z(j),oe("enrolled"),Ge("passkey_prompt_accepted"))},Et=()=>{const j=U.current;j&&ne(j.user,j.info)},Rt=()=>{H.current==="enroll"&&(Me(),J.abort(),x(null),Jl(),Ge("passkey_prompt_declined"),Et())},Zt=()=>{H.current==="enrolled"&&Et()},zt=()=>{H.current==="enroll"?Rt():H.current==="enrolled"?Zt():(Me(),D())};E.useEffect(()=>(ae.current=!0,()=>{ae.current=!1,D()}),[]),E.useEffect(()=>{if(!a||o)return;let j=!1;return de().then(K=>{W.current=K.webauthn,j||I(K.webauthn)}),()=>{j=!0}},[a,o]);const Yt=()=>{var He;const{autoContinue:j,lockedEmail:K,initialEmail:se}=t.current;return!!(j&&((He=K??se)!=null&&He.trim())&&!ce.current)};E.useEffect(()=>{if(!(i!=="email"||T.current||Yt()))return $(),G},[i]),E.useEffect(()=>{Yt()&&(ce.current=!0,ut())},[]);const Bt=i==="code"&&p>0;return E.useEffect(()=>{if(!Bt)return;const j=setInterval(()=>C(K=>Math.max(0,K-1)),1e3);return()=>clearInterval(j)},[Bt]),{step:i,email:l,setEmail:Ke,busy:d,error:(v==null?void 0:v.message)??null,errorCode:(v==null?void 0:v.code)??null,codeLength:b,resendIn:p,attemptsRemaining:w,canUsePasskeyButton:A,passkeyFailed:M,liveMessage:V,submitEmail:()=>void ut(),signInWithPasskey:()=>void bt(),retryPasskey:At,useCodeInstead:$e,changeEmail:Pt,submitCode:j=>void kt(j),resendCode:()=>void sn(),acceptEnrollment:()=>void wt(),declineEnrollment:Rt,finish:Zt,close:zt}}const en={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"}},va=({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(Ya,{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:en.added.heading}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:en.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:en.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(jl,{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:en.prompt.heading}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:en.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(Zn,{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:en.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:en.prompt.decline})]}),u.jsx("p",{className:"text-xs text-grayWarm-500",children:en.prompt.footnote})]}),ao="focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500 focus-visible:ring-offset-2",oo=S.forwardRef(({className:e,type:t="button",...r},a)=>u.jsx("button",{ref:a,type:t,className:Te("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",ao,e),...r})),bn=S.forwardRef(({className:e,type:t="button",...r},a)=>u.jsx("button",{ref:a,type:t,className:Te("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",ao,e),...r})),ya=S.forwardRef(({className:e,type:t="button",...r},a)=>u.jsx("button",{ref:a,type:t,className:Te("text-sm font-semibold text-brand-600 hover:text-brand-700 rounded disabled:opacity-60 disabled:cursor-not-allowed",ao,e),...r}));oo.displayName="PrimaryButton";bn.displayName="SecondaryButton";ya.displayName="LinkButton";const et={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 use a code.",tryAgain:"Try again",useCode:"Use a code instead"},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,icon:o})=>{const i=n?()=>{e.close(),n()}:void 0;let s=null;switch(e.step){case"email":s=u.jsx(Eb,{flow:e,locked:t!==void 0,title:r,description:a,onCancel:i,icon:o});break;case"passkey":s=u.jsx(Rb,{flow:e,locked:t!==void 0,title:r,description:a,onCancel:i,icon:o});break;case"code":s=u.jsx(Gb,{flow:e,title:r,onCancel:i});break;case"enroll":s=u.jsx(mi,{children:u.jsx(va,{status:"prompt",onAccept:e.acceptEnrollment,onDecline:e.declineEnrollment,busy:e.busy,error:e.error})});break;case"enrolled":s=u.jsx(mi,{children:u.jsx(va,{status:"added",onAccept:e.acceptEnrollment,onDecline:e.declineEnrollment,onDone:e.finish})});break;case"mismatch":s=u.jsx(Nb,{flow:e,title:r,onCancel:i,icon:o});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)]})},mi=({children:e})=>{const t=E.useRef(null);return E.useEffect(()=>{var r;jt((r=t.current)==null?void 0:r.querySelector("h2"))},[]),u.jsx("div",{ref:t,children:e})},kr=({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})]})]}),nu=({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(Zn,{size:20,className:"flex-shrink-0 text-warning-700"}),u.jsx("p",{className:"text-sm text-warning-700",children:e})]}),ru=({primary:e,onCancel:t})=>t?u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsx(bn,{onClick:t,children:et.cancel}),e]}):u.jsx(u.Fragment,{children:e}),Eb=({flow:e,locked:t,title:r,description:a,onCancel:n,icon:o})=>{const i=E.useRef(null),s=E.useRef(null),l=E.useId(),c=E.useId();return E.useEffect(()=>{jt(t?s.current:i.current)},[t]),u.jsxs(u.Fragment,{children:[u.jsx(kr,{icon:o??_l,title:r??et.email.title,description:a??et.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:et.email.label}),u.jsxs("div",{className:"relative",children:[u.jsx(za,{size:20,className:"pointer-events-none absolute left-3.5 top-1/2 -translate-y-1/2 text-grayWarm-500"}),u.jsx(Dt,{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(ru,{onCancel:n,primary:u.jsx(oo,{ref:s,type:"submit",disabled:e.busy,"aria-busy":e.busy,children:et.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:et.email.divider}),u.jsx("div",{className:"h-px flex-1 bg-grayWarm-200"})]}),u.jsxs(bn,{onClick:e.signInWithPasskey,disabled:e.busy,children:[u.jsx(Ha,{size:20}),et.email.passkey]})]})]})},Rb=({flow:e,locked:t,title:r,description:a,onCancel:n,icon:o})=>{const i=E.useRef(null);E.useEffect(()=>{jt(i.current)},[]);const s=e.error??(e.passkeyFailed?et.passkey.failed:null);return u.jsxs(u.Fragment,{children:[u.jsx(kr,{icon:o??Tl,title:r??et.passkey.title,description:a??et.passkey.description,headingRef:i}),u.jsxs("div",{className:"flex flex-col gap-5",children:[s?u.jsx(nu,{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(ya,{onClick:e.changeEmail,"aria-label":et.passkey.changeLabel,children:et.passkey.change})]}),u.jsx(ru,{onCancel:n,primary:u.jsx(oo,{onClick:e.retryPasskey,disabled:e.busy,"aria-busy":e.busy,children:e.passkeyFailed?et.passkey.tryAgain:et.passkey.continue})}),u.jsx(ya,{onClick:e.useCodeInstead,className:"self-center",children:et.passkey.useCode})]})]})},Nb=({flow:e,title:t,onCancel:r,icon:a})=>u.jsxs(u.Fragment,{children:[u.jsx(kr,{icon:a??Zn,title:t??et.email.title,description:e.error??""}),r&&u.jsx(bn,{onClick:r,children:et.cancel})]}),Gb=({flow:e,title:t,onCancel:r})=>u.jsxs(u.Fragment,{children:[u.jsx(kr,{icon:za,title:t??et.code.title,description:et.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(Ja,{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(nu,{children:e.error}),u.jsx(Ll,{secondsLeft:e.resendIn,onResend:e.resendCode,disabled:e.busy}),r&&u.jsx(bn,{onClick:r,children:et.cancel})]})]});function so(e){const t=tu(e),r=E.useRef(t);return r.current=t,E.useEffect(()=>()=>{const{step:a,close:n}=r.current;(a==="enroll"||a==="enrolled")&&n()},[]),t}const Pb=({title:e,description:t,onCancel:r,...a})=>{const n=so(a);return u.jsx(io,{flow:n,lockedEmail:a.lockedEmail,title:e,description:t,onCancel:r})},Ob=({isOpen:e,...t})=>e?u.jsx(Tb,{...t}):null,Tb=({onClose:e,hideCloseButton:t=!1,onLoginSuccess:r,...a})=>{const n=so({...a,promptSurface:a.promptSurface??"modal",onSignedIn:r}),o=()=>{n.close(),e()};return u.jsx(mn,{isOpen:n.step!=="done",onClose:o,title:et.email.title,header:"none",maxWidthPx:400,hideCloseButton:t,children:u.jsx(io,{flow:n,lockedEmail:a.lockedEmail})})},fn={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."}},au=({isOpen:e,...t})=>e?u.jsx(jb,{...t}):null,jb=e=>{const[t]=E.useState(Ua);return t?u.jsx(Mb,{onCancel:e.onCancel}):u.jsx(Fb,{...e})},Mb=({onCancel:e})=>u.jsx(mn,{isOpen:!0,onClose:e,title:fn.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:fn.title}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:fn.framed})]}),u.jsx(bn,{onClick:e,children:fn.cancel})]})}),Fb=({action:e,account:t,api:r,getCurrentUser:a,onConfirmed:n,onCancel:o,onMismatch:i})=>{const s=so({api:r,surface:"top-level",getCurrentUser:a,lockedEmail:t.email,expectedUserId:t.id,autoContinue:!0,offerEnrollment:!1,onSignedIn:()=>n(),onAccountMismatch:i}),l=()=>{s.close(),o()};return u.jsx(mn,{isOpen:s.step!=="done",onClose:l,title:fn.title,header:"none",maxWidthPx:400,children:u.jsx(io,{flow:s,lockedEmail:t.email,title:fn.title,description:fn.description[e],onCancel:o,icon:kl})})},Xe={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.",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,Bb=6e3,Vb=new Set(["confirmedAdd","confirmedAddKey"]),_b={synced:Ha,device:Fl,security_key:Ml},Db=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}),bi=e=>{const t=new Date(e);return Number.isNaN(t.getTime())?e:Db.format(t)};function ou(e){const t=e.kind??(e.synced?"synced":"device"),r=e.provider==="Passkey"&&t==="security_key"?Xe.securityKeyTitle:e.provider,a=Xe.kind[t]===r?null:Xe.kind[t],n=`${Xe.addedOn(bi(e.created_at))} · ${e.last_used_at?Xe.lastUsed(bi(e.last_used_at)):Xe.neverUsed}`;return{kind:t,title:r,badge:a,meta:n,Icon:_b[t]}}const Wb=e=>{const t=E.useRef(e);t.current=e;const[r]=E.useState(Ua),[a,n]=E.useState("loading"),[o,i]=E.useState([]),[s,l]=E.useState(!1),[c,d]=E.useState(!1),[f,v]=E.useState(!1),[x,b]=E.useState(null),[h,p]=E.useState(0),[C,w]=E.useState(!1),[R,A]=E.useState(null),[I,M]=E.useState(null),[B,V]=E.useState(()=>!$l()),[q]=E.useState(()=>new no),J=E.useRef(!1),ae=E.useRef(!1),H=E.useRef(0),pe=E.useId(),P=E.useCallback(async()=>{const W=++H.current;n("loading");try{const[U,F]=await Promise.all([t.current.api.listPasskeys(),to()]);if(!ae.current||W!==H.current)return;i(U),l(F.webauthn),n("ready")}catch(U){if(!ae.current||W!==H.current)return;const F=U instanceof Mt&&U.code==="movmo_session_required";n(F?"sessionRequired":"error")}},[]);E.useEffect(()=>(ae.current=!0,r||P(),()=>{ae.current=!1,q.abort()}),[r,q,P]),E.useEffect(()=>{if(h===0)return;w(!0);const W=setTimeout(()=>w(!1),Bb);return()=>clearTimeout(W)},[h]);const O=W=>{i(U=>U.filter(F=>F.id!==W)),d(!1)},T=(W,U,F)=>{if(U instanceof Mt){switch(U.code){case"reauth_required":F?b("generic"):M(W);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(W.type==="remove"){O(W.passkey.id);return}break}b("generic");return}switch(Fr(U)){case"cancelled":case"aborted":F&&W.type==="add"&&b(W.securityKey?"confirmedAddKey":"confirmedAdd");return;case"exists":b("exists");return;default:b("generic")}},Y=async(W,U=!1)=>{if(!J.current){J.current=!0,v(!0),b(null);try{if(W.type==="add"){const F=await ro(t.current.api,{securityKey:W.securityKey,signal:q.begin()});if(!ae.current)return;i(m=>[F,...m.filter(ce=>ce.id!==F.id)]),p(m=>m+1)}else{if(await t.current.api.deletePasskey(W.passkey.id),!ae.current)return;O(W.passkey.id)}}catch(F){ae.current&&T(W,F,U)}finally{J.current=!1,ae.current&&(v(!1),A(null))}}},ge=()=>{const W=I;M(null),W&&Y(W,!0)},Ne=()=>{M(null),t.current.onAccountMismatch()};if(r)return u.jsx(dn,{tone:"neutral",children:Xe.framed});if(a==="loading")return u.jsx(Xb,{});if(a==="error")return u.jsxs(dn,{tone:"neutral",role:"alert",children:[u.jsx("span",{children:Xe.generic}),u.jsx(iu,{onClick:()=>void P(),children:Xe.retry})]});if(a==="sessionRequired")return u.jsx(vi,{onSignIn:()=>t.current.onSessionRequired()});const _=c||o.length>=kb,L=o.length===0;return u.jsxs("div",{className:"flex flex-col gap-4",children:[L?u.jsx("p",{className:"text-sm text-grayWarm-600",children:Xe.empty}):u.jsx("ul",{className:"flex flex-col divide-y divide-grayWarm-200 -my-3",children:o.map(W=>u.jsx(Lb,{passkey:W,disabled:f,onRemove:()=>A(W)},W.id))}),u.jsx("div",{role:"status","aria-live":"polite",children:C&&u.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium text-grayWarm-700",children:[u.jsx(Ya,{size:20,className:"flex-shrink-0 text-success-600"}),Xe.added]})}),s?_&&u.jsx(dn,{tone:"neutral",children:Xe.limit}):u.jsx(dn,{tone:"neutral",children:Xe.unsupported}),x==="sessionRequired"?u.jsx(vi,{onSignIn:()=>t.current.onSessionRequired()}):x&&Vb.has(x)?u.jsx(dn,{tone:"neutral",role:"status",children:Xe[x]}):x&&u.jsx(dn,{tone:"warning",role:"alert",children:Xe[x]}),s&&u.jsxs("div",{className:"flex flex-wrap gap-3",children:[u.jsx(hi,{label:Xe.addPasskeyLabel,disabled:f||_,onClick:()=>void Y({type:"add",securityKey:!1}),children:Xe.addPasskey}),u.jsx(hi,{label:Xe.addSecurityKeyLabel,disabled:f||_,onClick:()=>void Y({type:"add",securityKey:!0}),children:Xe.addSecurityKey})]}),L&&u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(Wa,{id:pe,checked:B,onCheckedChange:W=>{V(W),Ul(!W)}}),u.jsx("label",{htmlFor:pe,className:"text-sm font-medium text-grayWarm-700",children:Xe.suggestToggle})]}),R&&u.jsx(Hb,{title:ou(R).title,busy:f,onCancel:()=>A(null),onConfirm:()=>void Y({type:"remove",passkey:R})}),u.jsx(au,{isOpen:I!==null,action:(I==null?void 0:I.type)??"add",account:e.account,api:e.api,getCurrentUser:e.getCurrentUser,onConfirmed:ge,onCancel:()=>M(null),onMismatch:Ne})]})},Lb=({passkey:e,disabled:t,onRemove:r})=>{const{title:a,badge:n,meta:o,Icon:i}=ou(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(Ba,{variant:n===Xe.kind.synced?"info":"default",children:n})]}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:o})]}),u.jsx("button",{type:"button","aria-label":Xe.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(Za,{size:18})})]})},hi=({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(Bl,{size:20}),a]}),dn=({tone:e,role:t,children:r})=>u.jsxs("div",{role:t,className:Te("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(Zn,{size:20,className:Te("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})]}),iu=({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}),vi=({onSignIn:e})=>u.jsxs(dn,{tone:"neutral",children:[u.jsx("span",{children:Xe.sessionRequired}),u.jsx(iu,{onClick:e,children:Xe.signIn})]}),Xb=()=>u.jsxs("div",{"aria-busy":"true",className:"flex flex-col gap-3",children:[u.jsx("span",{className:"sr-only",children:Xe.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))]}),Hb=({title:e,busy:t,onCancel:r,onConfirm:a})=>{const n=Xe.remove.title(e);return u.jsx(mn,{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(Za,{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:Xe.remove.body})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsx(bn,{onClick:r,children:Xe.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:Xe.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 zb(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 Yb=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),Jb=new RegExp("^[\\p{L} '-]{2,100}$","u");function Ub(e){return Jb.test(e)?{isValid:!0}:{isValid:!1,message:"must contain only letters, spaces, hyphens, and apostrophes (2-100 characters)"}}exports.AUTOFILL_REFRESH_MS=eu;exports.AlertCircleIcon=Zn;exports.AuthError=Mt;exports.Avatar=Xs;exports.AvatarFallback=Zs;exports.AvatarImage=Hs;exports.Badge=Ba;exports.Button=wi;exports.COUNTRY_OPTIONS=ma;exports.CURRENCY_OPTIONS=Mr;exports.Card=Ia;exports.CardContent=Aa;exports.CardDescription=ji;exports.CardFooter=Mi;exports.CardHeader=Sa;exports.CardTitle=Ti;exports.CeremonyGate=no;exports.CheckCircleIcon=Ya;exports.Checkbox=js;exports.Chip=hl;exports.CloudIcon=Bm;exports.CurrencyModal=Um;exports.DEFAULT_LOCALE=Dl;exports.DateDropdowns=ga;exports.FaceIdIcon=Tl;exports.FingerprintIcon=jl;exports.IconButton=Ms;exports.Input=Dt;exports.KeyIcon=Ha;exports.LOCALE_OPTIONS=jr;exports.LOCALE_STORAGE_KEY=Lm;exports.LaptopIcon=Fl;exports.LocaleModal=zm;exports.LogInIcon=_l;exports.MailIcon=za;exports.Modal=mn;exports.OTPModal=tb;exports.OtpCodeInput=Ja;exports.PROMPT_COOKIE=Qa;exports.Pagination=ml;exports.PasscodeIcon=Vm;exports.PassengerForm=jm;exports.PassengerFormSkeleton=km;exports.PasskeyEnrollPrompt=va;exports.PasskeyList=Wb;exports.PhoneInput=Km;exports.PlusIcon=Bl;exports.ReauthDialog=au;exports.SearchInput=bl;exports.SelectDropdown=_n;exports.Separator=Oi;exports.ShieldTickIcon=kl;exports.SignInFlow=Pb;exports.SignInModal=Ob;exports.Textarea=gl;exports.Toggle=Wa;exports.ToggleGroup=fl;exports.ToggleGroupItem=pl;exports.TrashIcon=Za;exports.UsbKeyIcon=Ml;exports.XCloseIcon=Vl;exports.classifyWebAuthnError=Fr;exports.cookieDomain=Zl;exports.createMovmoAuthApi=ib;exports.createPasskey=ql;exports.detectSupport=to;exports.dismissPrompt=Jl;exports.findCurrencyOption=Jm;exports.findLocaleOption=Xm;exports.getCurrencyDisplayText=Wl;exports.getLanguageDisplayName=Hm;exports.getPasskey=ha;exports.incorrectCode=Hl;exports.neverAsk=$l;exports.rateLimited=$a;exports.readPromptState=zn;exports.recordCodeSignIn=Yl;exports.registerPasskey=ro;exports.safeFocus=jt;exports.setNeverAsk=Ul;exports.shouldOfferPasskey=zl;exports.signInCopy=rt;exports.timeZone=Xl;exports.toAuthError=vt;exports.useMovmoSignIn=tu;exports.validateEmail=Yb;exports.validateName=Ub;exports.validatePhoneNumber=zb;
|
|
115
115
|
//# sourceMappingURL=index.cjs.map
|