globalfy-design-system 0.28.0 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(Pe,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],f):(Pe=typeof globalThis<"u"?globalThis:Pe||self,f(Pe["Globalfy Design System"]={},Pe.React,Pe.$k7QOs$reactdom))})(this,function(Pe,f,gn){"use strict";function Ql(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const U=Ql(f),
|
|
1
|
+
(function(Pe,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],f):(Pe=typeof globalThis<"u"?globalThis:Pe||self,f(Pe["Globalfy Design System"]={},Pe.React,Pe.$k7QOs$reactdom))})(this,function(Pe,f,gn){"use strict";function Ql(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const U=Ql(f),A0=Ql(gn),B8="";var es={exports:{}},vn={};/**
|
|
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 Xl;function
|
|
9
|
+
*/var Xl;function O0(){if(Xl)return vn;Xl=1;var e=f,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(i,l,c){var u,d={},h=null,p=null;c!==void 0&&(h=""+c),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(p=l.ref);for(u in l)n.call(l,u)&&!a.hasOwnProperty(u)&&(d[u]=l[u]);if(i&&i.defaultProps)for(u in l=i.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:i,key:h,ref:p,props:d,_owner:o.current}}return vn.Fragment=r,vn.jsx=s,vn.jsxs=s,vn}var bn={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,17 +14,17 @@
|
|
|
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 Zl;function
|
|
17
|
+
*/var Zl;function N0(){return Zl||(Zl=1,process.env.NODE_ENV!=="production"&&function(){var e=f,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m=Symbol.iterator,y="@@iterator";function b(v){if(v===null||typeof v!="object")return null;var k=m&&v[m]||v[y];return typeof k=="function"?k:null}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(v){{for(var k=arguments.length,_=new Array(k>1?k-1:0),W=1;W<k;W++)_[W-1]=arguments[W];P("error",v,_)}}function P(v,k,_){{var W=C.ReactDebugCurrentFrame,Z=W.getStackAddendum();Z!==""&&(k+="%s",_=_.concat([Z]));var J=_.map(function(q){return String(q)});J.unshift("Warning: "+k),Function.prototype.apply.call(console[v],console,J)}}var E=!1,S=!1,N=!1,j=!1,g=!1,A;A=Symbol.for("react.module.reference");function I(v){return!!(typeof v=="string"||typeof v=="function"||v===n||v===a||g||v===o||v===c||v===u||j||v===p||E||S||N||typeof v=="object"&&v!==null&&(v.$$typeof===h||v.$$typeof===d||v.$$typeof===s||v.$$typeof===i||v.$$typeof===l||v.$$typeof===A||v.getModuleId!==void 0))}function T(v,k,_){var W=v.displayName;if(W)return W;var Z=k.displayName||k.name||"";return Z!==""?_+"("+Z+")":_}function D(v){return v.displayName||"Context"}function w(v){if(v==null)return null;if(typeof v.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof v=="function")return v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof v=="object")switch(v.$$typeof){case i:var k=v;return D(k)+".Consumer";case s:var _=v;return D(_._context)+".Provider";case l:return T(v,v.render,"ForwardRef");case d:var W=v.displayName||null;return W!==null?W:w(v.type)||"Memo";case h:{var Z=v,J=Z._payload,q=Z._init;try{return w(q(J))}catch{return null}}}return null}var M=Object.assign,O=0,F,$,V,Y,K,R,re;function H(){}H.__reactDisabledLog=!0;function ie(){{if(O===0){F=console.log,$=console.info,V=console.warn,Y=console.error,K=console.group,R=console.groupCollapsed,re=console.groupEnd;var v={configurable:!0,enumerable:!0,value:H,writable:!0};Object.defineProperties(console,{info:v,log:v,warn:v,error:v,group:v,groupCollapsed:v,groupEnd:v})}O++}}function ee(){{if(O--,O===0){var v={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},v,{value:F}),info:M({},v,{value:$}),warn:M({},v,{value:V}),error:M({},v,{value:Y}),group:M({},v,{value:K}),groupCollapsed:M({},v,{value:R}),groupEnd:M({},v,{value:re})})}O<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var te=C.ReactCurrentDispatcher,ve;function be(v,k,_){{if(ve===void 0)try{throw Error()}catch(Z){var W=Z.stack.trim().match(/\n( *(at )?)/);ve=W&&W[1]||""}return`
|
|
18
18
|
`+ve+v}}var fe=!1,de;{var pe=typeof WeakMap=="function"?WeakMap:Map;de=new pe}function Te(v,k){if(!v||fe)return"";{var _=de.get(v);if(_!==void 0)return _}var W;fe=!0;var Z=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var J;J=te.current,te.current=null,ie();try{if(k){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(ze){W=ze}Reflect.construct(v,[],q)}else{try{q.call()}catch(ze){W=ze}v.call(q.prototype)}}else{try{throw Error()}catch(ze){W=ze}v()}}catch(ze){if(ze&&W&&typeof ze.stack=="string"){for(var G=ze.stack.split(`
|
|
19
19
|
`),we=W.stack.split(`
|
|
20
20
|
`),le=G.length-1,ue=we.length-1;le>=1&&ue>=0&&G[le]!==we[ue];)ue--;for(;le>=1&&ue>=0;le--,ue--)if(G[le]!==we[ue]){if(le!==1||ue!==1)do if(le--,ue--,ue<0||G[le]!==we[ue]){var ke=`
|
|
21
|
-
`+G[le].replace(" at new "," at ");return v.displayName&&ke.includes("<anonymous>")&&(ke=ke.replace("<anonymous>",v.displayName)),typeof v=="function"&&de.set(v,ke),ke}while(le>=1&&ue>=0);break}}}finally{fe=!1,te.current=J,ee(),Error.prepareStackTrace=Z}var ut=v?v.displayName||v.name:"",Mo=ut?be(ut):"";return typeof v=="function"&&de.set(v,Mo),Mo}function Ee(v,k,_){return Te(v,!1)}function oe(v){var k=v.prototype;return!!(k&&k.isReactComponent)}function X(v,k,_){if(v==null)return"";if(typeof v=="function")return Te(v,oe(v));if(typeof v=="string")return be(v);switch(v){case c:return be("Suspense");case u:return be("SuspenseList")}if(typeof v=="object")switch(v.$$typeof){case l:return Ee(v.render);case d:return X(v.type,k,_);case h:{var W=v,Z=W._payload,J=W._init;try{return X(J(Z),k,_)}catch{}}}return""}var Oe=Object.prototype.hasOwnProperty,_e={},Fe=C.ReactDebugCurrentFrame;function De(v){if(v){var k=v._owner,_=X(v.type,v._source,k?k.type:null);Fe.setExtraStackFrame(_)}else Fe.setExtraStackFrame(null)}function It(v,k,_,W,Z){{var J=Function.call.bind(Oe);for(var q in v)if(J(v,q)){var G=void 0;try{if(typeof v[q]!="function"){var we=Error((W||"React class")+": "+_+" type `"+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof v[q]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw we.name="Invariant Violation",we}G=v[q](k,q,W,_,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(le){G=le}G&&!(G instanceof Error)&&(De(Z),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",W||"React class",_,q,typeof G),De(null)),G instanceof Error&&!(G.message in _e)&&(_e[G.message]=!0,De(Z),x("Failed %s type: %s",_,G.message),De(null))}}}var
|
|
21
|
+
`+G[le].replace(" at new "," at ");return v.displayName&&ke.includes("<anonymous>")&&(ke=ke.replace("<anonymous>",v.displayName)),typeof v=="function"&&de.set(v,ke),ke}while(le>=1&&ue>=0);break}}}finally{fe=!1,te.current=J,ee(),Error.prepareStackTrace=Z}var ut=v?v.displayName||v.name:"",Mo=ut?be(ut):"";return typeof v=="function"&&de.set(v,Mo),Mo}function Ee(v,k,_){return Te(v,!1)}function oe(v){var k=v.prototype;return!!(k&&k.isReactComponent)}function X(v,k,_){if(v==null)return"";if(typeof v=="function")return Te(v,oe(v));if(typeof v=="string")return be(v);switch(v){case c:return be("Suspense");case u:return be("SuspenseList")}if(typeof v=="object")switch(v.$$typeof){case l:return Ee(v.render);case d:return X(v.type,k,_);case h:{var W=v,Z=W._payload,J=W._init;try{return X(J(Z),k,_)}catch{}}}return""}var Oe=Object.prototype.hasOwnProperty,_e={},Fe=C.ReactDebugCurrentFrame;function De(v){if(v){var k=v._owner,_=X(v.type,v._source,k?k.type:null);Fe.setExtraStackFrame(_)}else Fe.setExtraStackFrame(null)}function It(v,k,_,W,Z){{var J=Function.call.bind(Oe);for(var q in v)if(J(v,q)){var G=void 0;try{if(typeof v[q]!="function"){var we=Error((W||"React class")+": "+_+" type `"+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof v[q]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw we.name="Invariant Violation",we}G=v[q](k,q,W,_,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(le){G=le}G&&!(G instanceof Error)&&(De(Z),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",W||"React class",_,q,typeof G),De(null)),G instanceof Error&&!(G.message in _e)&&(_e[G.message]=!0,De(Z),x("Failed %s type: %s",_,G.message),De(null))}}}var gt=Array.isArray;function Je(v){return gt(v)}function Ir(v){{var k=typeof Symbol=="function"&&Symbol.toStringTag,_=k&&v[Symbol.toStringTag]||v.constructor.name||"Object";return _}}function Ye(v){try{return Ge(v),!1}catch{return!0}}function Ge(v){return""+v}function kr(v){if(Ye(v))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ir(v)),Ge(v)}var xe=C.ReactCurrentOwner,uo={key:!0,ref:!0,__self:!0,__source:!0},Ar,Or,Ht;Ht={};function fo(v){if(Oe.call(v,"ref")){var k=Object.getOwnPropertyDescriptor(v,"ref").get;if(k&&k.isReactWarning)return!1}return v.ref!==void 0}function po(v){if(Oe.call(v,"key")){var k=Object.getOwnPropertyDescriptor(v,"key").get;if(k&&k.isReactWarning)return!1}return v.key!==void 0}function ho(v,k){if(typeof v.ref=="string"&&xe.current&&k&&xe.current.stateNode!==k){var _=w(xe.current.type);Ht[_]||(x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',w(xe.current.type),v.ref),Ht[_]=!0)}}function mo(v,k){{var _=function(){Ar||(Ar=!0,x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",k))};_.isReactWarning=!0,Object.defineProperty(v,"key",{get:_,configurable:!0})}}function go(v,k){{var _=function(){Or||(Or=!0,x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",k))};_.isReactWarning=!0,Object.defineProperty(v,"ref",{get:_,configurable:!0})}}var vo=function(v,k,_,W,Z,J,q){var G={$$typeof:t,type:v,key:k,ref:_,props:q,_owner:J};return G._store={},Object.defineProperty(G._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(G,"_self",{configurable:!1,enumerable:!1,writable:!1,value:W}),Object.defineProperty(G,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Z}),Object.freeze&&(Object.freeze(G.props),Object.freeze(G)),G};function ce(v,k,_,W,Z){{var J,q={},G=null,we=null;_!==void 0&&(kr(_),G=""+_),po(k)&&(kr(k.key),G=""+k.key),fo(k)&&(we=k.ref,ho(k,Z));for(J in k)Oe.call(k,J)&&!uo.hasOwnProperty(J)&&(q[J]=k[J]);if(v&&v.defaultProps){var le=v.defaultProps;for(J in le)q[J]===void 0&&(q[J]=le[J])}if(G||we){var ue=typeof v=="function"?v.displayName||v.name||"Unknown":v;G&&mo(q,ue),we&&go(q,ue)}return vo(v,G,we,Z,W,xe.current,q)}}var lt=C.ReactCurrentOwner,bo=C.ReactDebugCurrentFrame;function ct(v){if(v){var k=v._owner,_=X(v.type,v._source,k?k.type:null);bo.setExtraStackFrame(_)}else bo.setExtraStackFrame(null)}var Nr;Nr=!1;function Lr(v){return typeof v=="object"&&v!==null&&v.$$typeof===t}function yo(){{if(lt.current){var v=w(lt.current.type);if(v)return`
|
|
22
22
|
|
|
23
23
|
Check the render method of \``+v+"`."}return""}}function Bl(v){{if(v!==void 0){var k=v.fileName.replace(/^.*[\\\/]/,""),_=v.lineNumber;return`
|
|
24
24
|
|
|
25
25
|
Check your code at `+k+":"+_+"."}return""}}var xo={};function Rl(v){{var k=yo();if(!k){var _=typeof v=="string"?v:v.displayName||v.name;_&&(k=`
|
|
26
26
|
|
|
27
|
-
Check the top-level render call using <`+_+">.")}return k}}function wo(v,k){{if(!v._store||v._store.validated||v.key!=null)return;v._store.validated=!0;var _=Rl(k);if(xo[_])return;xo[_]=!0;var W="";v&&v._owner&&v._owner!==lt.current&&(W=" It was passed a child from "+w(v._owner.type)+"."),ct(v),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',_,W),ct(null)}}function Co(v,k){{if(typeof v!="object")return;if(Je(v))for(var _=0;_<v.length;_++){var W=v[_];Lr(W)&&wo(W,k)}else if(Lr(v))v._store&&(v._store.validated=!0);else if(v){var Z=b(v);if(typeof Z=="function"&&Z!==v.entries)for(var J=Z.call(v),q;!(q=J.next()).done;)Lr(q.value)&&wo(q.value,k)}}}function Kl(v){{var k=v.type;if(k==null||typeof k=="string")return;var _;if(typeof k=="function")_=k.propTypes;else if(typeof k=="object"&&(k.$$typeof===l||k.$$typeof===d))_=k.propTypes;else return;if(_){var W=w(k);It(_,v.props,"prop",W,v)}else if(k.PropTypes!==void 0&&!Nr){Nr=!0;var Z=w(k);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Z||"Unknown")}typeof k.getDefaultProps=="function"&&!k.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ul(v){{for(var k=Object.keys(v.props),_=0;_<k.length;_++){var W=k[_];if(W!=="children"&&W!=="key"){ct(v),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",W),ct(null);break}}v.ref!==null&&(ct(v),x("Invalid attribute `ref` supplied to `React.Fragment`."),ct(null))}}function Po(v,k,_,W,Z,J){{var q=I(v);if(!q){var G="";(v===void 0||typeof v=="object"&&v!==null&&Object.keys(v).length===0)&&(G+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var we=Bl(Z);we?G+=we:G+=yo();var le;v===null?le="null":Je(v)?le="array":v!==void 0&&v.$$typeof===t?(le="<"+(w(v.type)||"Unknown")+" />",G=" Did you accidentally export a JSX literal instead of a component?"):le=typeof v,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",le,G)}var ue=ce(v,k,_,Z,J);if(ue==null)return ue;if(q){var ke=k.children;if(ke!==void 0)if(W)if(Je(ke)){for(var ut=0;ut<ke.length;ut++)Co(ke[ut],v);Object.freeze&&Object.freeze(ke)}else x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Co(ke,v)}return v===n?Ul(ue):Kl(ue),ue}}function Hl(v,k,_){return Po(v,k,_,!0)}function Yl(v,k,_){return Po(v,k,_,!1)}var Gl=Yl,ql=Hl;bn.Fragment=n,bn.jsx=Gl,bn.jsxs=ql}()),bn}process.env.NODE_ENV==="production"?es.exports=k0():es.exports=A0();var j=es.exports,Jl=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ke=e=>!e||typeof e!="object"||Object.keys(e).length===0,O0=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function ec(e,t){e.forEach(function(r){Array.isArray(r)?ec(r,t):t.push(r)})}function tc(e){let t=[];return ec(e,t),t}var N0=(...e)=>tc(e).filter(Boolean),rc=(e,t)=>{let r={},n=Object.keys(e),o=Object.keys(t);for(let a of n)if(o.includes(a)){let s=e[a],i=t[a];typeof s=="object"&&typeof i=="object"?r[a]=rc(s,i):r[a]=i+" "+s}else r[a]=e[a];for(let a of o)n.includes(a)||(r[a]=t[a]);return r},nc=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function L0(){for(var e=0,t,r,n="";e<arguments.length;)(t=arguments[e++])&&(r=oc(t))&&(n&&(n+=" "),n+=r);return n}function oc(e){if(typeof e=="string")return e;for(var t,r="",n=0;n<e.length;n++)e[n]&&(t=oc(e[n]))&&(r&&(r+=" "),r+=t);return r}var ts="-";function j0(e){var t=F0(e),r=e.conflictingClassGroups,n=e.conflictingClassGroupModifiers,o=n===void 0?{}:n;function a(i){var l=i.split(ts);return l[0]===""&&l.length!==1&&l.shift(),ac(l,t)||_0(i)}function s(i,l){var c=r[i]||[];return l&&o[i]?[].concat(c,o[i]):c}return{getClassGroupId:a,getConflictingClassGroupIds:s}}function ac(e,t){var s;if(e.length===0)return t.classGroupId;var r=e[0],n=t.nextPart.get(r),o=n?ac(e.slice(1),n):void 0;if(o)return o;if(t.validators.length!==0){var a=e.join(ts);return(s=t.validators.find(function(i){var l=i.validator;return l(a)}))==null?void 0:s.classGroupId}}var sc=/^\[(.+)\]$/;function _0(e){if(sc.test(e)){var t=sc.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function F0(e){var t=e.theme,r=e.prefix,n={nextPart:new Map,validators:[]},o=z0(Object.entries(e.classGroups),r);return o.forEach(function(a){var s=a[0],i=a[1];rs(i,n,s,t)}),n}function rs(e,t,r,n){e.forEach(function(o){if(typeof o=="string"){var a=o===""?t:ic(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(V0(o)){rs(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(function(s){var i=s[0],l=s[1];rs(l,ic(t,i),r,n)})})}function ic(e,t){var r=e;return t.split(ts).forEach(function(n){r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r}function V0(e){return e.isThemeGetter}function z0(e,t){return t?e.map(function(r){var n=r[0],o=r[1],a=o.map(function(s){return typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(function(i){var l=i[0],c=i[1];return[t+l,c]})):s});return[n,a]}):e}function W0(e){if(e<1)return{get:function(){},set:function(){}};var t=0,r=new Map,n=new Map;function o(a,s){r.set(a,s),t++,t>e&&(t=0,n=r,r=new Map)}return{get:function(s){var i=r.get(s);if(i!==void 0)return i;if((i=n.get(s))!==void 0)return o(s,i),i},set:function(s,i){r.has(s)?r.set(s,i):o(s,i)}}}var lc="!";function B0(e){var t=e.separator||":",r=t.length===1,n=t[0],o=t.length;return function(s){for(var i=[],l=0,c=0,u,d=0;d<s.length;d++){var h=s[d];if(l===0){if(h===n&&(r||s.slice(d,d+o)===t)){i.push(s.slice(c,d)),c=d+o;continue}if(h==="/"){u=d;continue}}h==="["?l++:h==="]"&&l--}var p=i.length===0?s:s.substring(c),m=p.startsWith(lc),y=m?p.substring(1):p,b=u&&u>c?u-c:void 0;return{modifiers:i,hasImportantModifier:m,baseClassName:y,maybePostfixModifierPosition:b}}}function R0(e){if(e.length<=1)return e;var t=[],r=[];return e.forEach(function(n){var o=n[0]==="[";o?(t.push.apply(t,r.sort().concat([n])),r=[]):r.push(n)}),t.push.apply(t,r.sort()),t}function K0(e){return{cache:W0(e.cacheSize),splitModifiers:B0(e),...j0(e)}}var U0=/\s+/;function H0(e,t){var r=t.splitModifiers,n=t.getClassGroupId,o=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(U0).map(function(s){var i=r(s),l=i.modifiers,c=i.hasImportantModifier,u=i.baseClassName,d=i.maybePostfixModifierPosition,h=n(d?u.substring(0,d):u),p=!!d;if(!h){if(!d)return{isTailwindClass:!1,originalClassName:s};if(h=n(u),!h)return{isTailwindClass:!1,originalClassName:s};p=!1}var m=R0(l).join(":"),y=c?m+lc:m;return{isTailwindClass:!0,modifierId:y,classGroupId:h,originalClassName:s,hasPostfixModifier:p}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var i=s.modifierId,l=s.classGroupId,c=s.hasPostfixModifier,u=i+l;return a.has(u)?!1:(a.add(u),o(l,c).forEach(function(d){return a.add(i+d)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function ns(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,o,a,s=i;function i(c){var u=t[0],d=t.slice(1),h=d.reduce(function(p,m){return m(p)},u());return n=K0(h),o=n.cache.get,a=n.cache.set,s=l,l(c)}function l(c){var u=o(c);if(u)return u;var d=H0(c,n);return a(c,d),d}return function(){return s(L0.apply(null,arguments))}}function Ie(e){var t=function(n){return n[e]||[]};return t.isThemeGetter=!0,t}var cc=/^\[(?:([a-z-]+):)?(.+)\]$/i,Y0=/^\d+\/\d+$/,G0=new Set(["px","full","screen"]),q0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Q0=/\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$/,X0=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function gt(e){return lr(e)||G0.has(e)||Y0.test(e)||os(e)}function os(e){return cr(e,"length",nm)}function Z0(e){return cr(e,"size",uc)}function J0(e){return cr(e,"position",uc)}function em(e){return cr(e,"url",om)}function To(e){return cr(e,"number",lr)}function lr(e){return!Number.isNaN(Number(e))}function tm(e){return e.endsWith("%")&&lr(e.slice(0,-1))}function yn(e){return dc(e)||cr(e,"number",dc)}function ge(e){return cc.test(e)}function xn(){return!0}function Yt(e){return q0.test(e)}function rm(e){return cr(e,"",am)}function cr(e,t,r){var n=cc.exec(e);return n?n[1]?n[1]===t:r(n[2]):!1}function nm(e){return Q0.test(e)}function uc(){return!1}function om(e){return e.startsWith("url(")}function dc(e){return Number.isInteger(Number(e))}function am(e){return X0.test(e)}function as(){var e=Ie("colors"),t=Ie("spacing"),r=Ie("blur"),n=Ie("brightness"),o=Ie("borderColor"),a=Ie("borderRadius"),s=Ie("borderSpacing"),i=Ie("borderWidth"),l=Ie("contrast"),c=Ie("grayscale"),u=Ie("hueRotate"),d=Ie("invert"),h=Ie("gap"),p=Ie("gradientColorStops"),m=Ie("gradientColorStopPositions"),y=Ie("inset"),b=Ie("margin"),C=Ie("opacity"),x=Ie("padding"),P=Ie("saturate"),E=Ie("scale"),S=Ie("sepia"),N=Ie("skew"),L=Ie("space"),g=Ie("translate"),A=function(){return["auto","contain","none"]},I=function(){return["auto","hidden","clip","visible","scroll"]},T=function(){return["auto",ge,t]},D=function(){return[ge,t]},w=function(){return["",gt]},M=function(){return["auto",lr,ge]},O=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},F=function(){return["solid","dashed","dotted","double","none"]},$=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},V=function(){return["start","end","center","between","around","evenly","stretch"]},Y=function(){return["","0",ge]},K=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},R=function(){return[lr,To]},re=function(){return[lr,ge]};return{cacheSize:500,theme:{colors:[xn],spacing:[gt],blur:["none","",Yt,ge],brightness:R(),borderColor:[e],borderRadius:["none","","full",Yt,ge],borderSpacing:D(),borderWidth:w(),contrast:R(),grayscale:Y(),hueRotate:re(),invert:Y(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[tm,os],inset:T(),margin:T(),opacity:R(),padding:D(),saturate:R(),scale:R(),sepia:Y(),skew:re(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",ge]}],container:["container"],columns:[{columns:[Yt]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"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"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(O(),[ge])}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",yn]}],basis:[{basis:T()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ge]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",yn]}],"grid-cols":[{"grid-cols":[xn]}],"col-start-end":[{col:["auto",{span:["full",yn]},ge]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[xn]}],"row-start-end":[{row:["auto",{span:[yn]},ge]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ge]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ge]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal"].concat(V())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(V(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(V(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[L]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[L]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",ge,t]}],"min-w":[{"min-w":["min","max","fit",ge,gt]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Yt]},Yt,ge]}],h:[{h:[ge,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",ge,gt]}],"max-h":[{"max-h":[ge,t,"min","max","fit"]}],"font-size":[{text:["base",Yt,os]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",To]}],"font-family":[{font:[xn]}],"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",ge]}],"line-clamp":[{"line-clamp":["none",lr,To]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ge,gt]}],"list-image":[{"list-image":["none",ge]}],"list-style-type":[{list:["none","disc","decimal",ge]}],"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:[].concat(F(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",gt]}],"underline-offset":[{"underline-offset":["auto",ge,gt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge]}],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",ge]}],"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:[].concat(O(),[J0])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Z0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},em]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[C]}],"border-style":[{border:[].concat(F(),["hidden"])}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[C]}],"divide-style":[{divide:F()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(F())}],"outline-offset":[{"outline-offset":[ge,gt]}],"outline-w":[{outline:[gt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:w()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[C]}],"ring-offset-w":[{"ring-offset":[gt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Yt,rm]}],"shadow-color":[{shadow:[xn]}],opacity:[{opacity:[C]}],"mix-blend":[{"mix-blend":$()}],"bg-blend":[{"bg-blend":$()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Yt,ge]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[P]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[C]}],"backdrop-saturate":[{"backdrop-saturate":[P]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ge]}],duration:[{duration:re()}],ease:[{ease:["linear","in","out","in-out",ge]}],delay:[{delay:re()}],animate:[{animate:["none","spin","ping","pulse","bounce",ge]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[yn,ge]}],"translate-x":[{"translate-x":[g]}],"translate-y":[{"translate-y":[g]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ge]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],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",ge]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ge]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[gt,To]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},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"],"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"],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-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"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function sm(e,t){for(var r in t)fc(e,r,t[r]);return e}var im=Object.prototype.hasOwnProperty,lm=new Set(["string","number","boolean"]);function fc(e,t,r){if(!im.call(e,t)||lm.has(typeof r)||r===null){e[t]=r;return}if(Array.isArray(r)&&Array.isArray(e[t])){e[t]=e[t].concat(r);return}if(typeof r=="object"&&typeof e[t]=="object"){if(e[t]===null){e[t]=r;return}for(var n in r)fc(e[t],n,r[n])}}function cm(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return typeof e=="function"?ns.apply(void 0,[as,e].concat(r)):ns.apply(void 0,[function(){return sm(as(),e)}].concat(r))}var ss=ns(as),um={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},pc=e=>e||void 0,Eo=(...e)=>pc(tc(e).filter(Boolean).join(" ")),is=null,So={},ls=!1,wn=(...e)=>t=>t.twMerge?((!is||ls)&&(ls=!1,is=Ke(So)?ss:cm(So)),pc(is(Eo(e)))):Eo(e),hc=(e,t)=>{for(let r in t)e.hasOwnProperty(r)?e[r]=Eo(e[r],t[r]):e[r]=t[r];return e},Me=(e,t)=>{let{extend:r=null,slots:n={},variants:o={},compoundVariants:a=[],compoundSlots:s=[],defaultVariants:i={}}=e,l={...um,...t},c=r!=null&&r.base?Eo(r.base,e==null?void 0:e.base):e==null?void 0:e.base,u=r!=null&&r.variants&&!Ke(r.variants)?rc(o,r.variants):o,d=r!=null&&r.defaultVariants&&!Ke(r.defaultVariants)?{...r.defaultVariants,...i}:i;!Ke(l.twMergeConfig)&&!O0(l.twMergeConfig,So)&&(ls=!0,So=l.twMergeConfig);let h=Ke(n)?{}:{base:e==null?void 0:e.base,...n},p=Ke(r==null?void 0:r.slots)?h:hc({...r==null?void 0:r.slots},Ke(h)?{base:e==null?void 0:e.base}:h),m=b=>{if(Ke(u)&&Ke(n)&&Ke(r==null?void 0:r.slots))return wn(c,b==null?void 0:b.class,b==null?void 0:b.className)(l);if(a&&!Array.isArray(a))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof a}`);if(s&&!Array.isArray(s))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof s}`);let C=(T,D,w=[],M)=>{let O=w;if(typeof D=="string")O=O.concat(nc(D).split(" ").map(F=>`${T}:${F}`));else if(Array.isArray(D))O=O.concat(D.reduce((F,$)=>F.concat(`${T}:${$}`),[]));else if(typeof D=="object"&&typeof M=="string"){for(let F in D)if(D.hasOwnProperty(F)&&F===M){let $=D[F];if($&&typeof $=="string"){let V=nc($);O[M]?O[M]=O[M].concat(V.split(" ").map(Y=>`${T}:${Y}`)):O[M]=V.split(" ").map(Y=>`${T}:${Y}`)}else Array.isArray($)&&$.length>0&&(O[M]=$.reduce((V,Y)=>V.concat(`${T}:${Y}`),[]))}}return O},x=(T,D=u,w=null,M=null)=>{var O;let F=D[T];if(!F||Ke(F))return null;let $=(O=M==null?void 0:M[T])!=null?O:b==null?void 0:b[T];if($===null)return null;let V=Jl($),Y=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,K=d==null?void 0:d[T],R=[];if(typeof V=="object"&&Y)for(let[H,ie]of Object.entries(V)){let ee=F[ie];if(H==="initial"){K=ie;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(H)||(R=C(H,ee,R,w))}let re=F[V]||F[Jl(K)];return typeof R=="object"&&typeof w=="string"&&R[w]?hc(R,re):R.length>0?(R.push(re),R):re},P=()=>u?Object.keys(u).map(T=>x(T,u)):null,E=(T,D)=>{if(!u||typeof u!="object")return null;let w=new Array;for(let M in u){let O=x(M,u,T,D),F=T==="base"&&typeof O=="string"?O:O&&O[T];F&&(w[w.length]=F)}return w},S={};for(let T in b)b[T]!==void 0&&(S[T]=b[T]);let N=(T,D)=>{var w;let M=typeof(b==null?void 0:b[T])=="object"?{[T]:(w=b[T])==null?void 0:w.initial}:{};return{...d,...S,...M,...D}},L=(T=[],D)=>{let w=[];for(let{class:M,className:O,...F}of T){let $=!0;for(let[V,Y]of Object.entries(F)){let K=N(V,D);if(Array.isArray(Y)){if(!Y.includes(K[V])){$=!1;break}}else if(K[V]!==Y){$=!1;break}}$&&(M&&w.push(M),O&&w.push(O))}return w},g=T=>{let D=L(a,T),w=L(r==null?void 0:r.compoundVariants,T);return N0(w,D)},A=T=>{let D=g(T);if(!Array.isArray(D))return D;let w={};for(let M of D)if(typeof M=="string"&&(w.base=wn(w.base,M)(l)),typeof M=="object")for(let[O,F]of Object.entries(M))w[O]=wn(w[O],F)(l);return w},I=T=>{if(s.length<1)return null;let D={};for(let{slots:w=[],class:M,className:O,...F}of s){if(!Ke(F)){let $=!0;for(let V of Object.keys(F)){let Y=N(V,T)[V];if(Y===void 0||(Array.isArray(F[V])?!F[V].includes(Y):F[V]!==Y)){$=!1;break}}if(!$)continue}for(let $ of w)D[$]=D[$]||[],D[$].push([M,O])}return D};if(!Ke(n)||!Ke(r==null?void 0:r.slots)){let T={};if(typeof p=="object"&&!Ke(p))for(let D of Object.keys(p))T[D]=w=>{var M,O;return wn(p[D],E(D,w),((M=A(w))!=null?M:[])[D],((O=I(w))!=null?O:[])[D],w==null?void 0:w.class,w==null?void 0:w.className)(l)};return T}return wn(c,P(),g(),b==null?void 0:b.class,b==null?void 0:b.className)(l)},y=()=>{if(!(!u||typeof u!="object"))return Object.keys(u)};return m.variantKeys=y(),m.extend=r,m.base=c,m.slots=p,m.variants=u,m.defaultVariants=d,m.compoundSlots=s,m.compoundVariants=a,m};const dm=258,fm=70,pm=223,hm=266;function mm({variant:e="default",className:t,short:r,width:n,height:o}){let a=r?pm:dm,s=r?hm:fm;const i=a/s;n&&(a=n,s=parseFloat((n/i).toFixed(2))),o&&(s=o,a=parseFloat((o*i).toFixed(2)));const l=Me({base:"",variants:{variant:{default:"fill-secondary-green-500",dark:"fill-primary-green-500",light:"fill-white"}}});return r?j.jsx("svg",{preserveAspectRatio:"none",width:a,height:s,viewBox:"0 0 223 266",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:l({variant:e,className:t}),children:j.jsx("path",{d:"M222.964 194.18V85.6459C222.964 85.2381 222.88 84.8344 222.718 84.458C222.556 84.0816 222.319 83.74 222.02 83.4529C221.721 83.1657 221.366 82.9388 220.975 82.7852C220.585 82.6316 220.167 82.5543 219.746 82.5577H182.608C182.191 82.5577 181.777 82.6378 181.392 82.7933C181.006 82.9488 180.656 83.1767 180.362 83.4638C180.068 83.7509 179.836 84.0916 179.678 84.4661C179.521 84.8406 179.442 85.2416 179.445 85.6459V171.586C177.727 171.586 176.719 171.586 176.364 171.586C164.721 170.029 159.213 167.178 152.914 161.028C146.616 154.878 144.516 146.089 144.025 135.637V104.914C144.03 104.501 143.948 104.091 143.784 103.71C143.62 103.329 143.377 102.984 143.071 102.697L121.966 82.9009L101.434 62.498C101.143 62.1997 100.792 61.9617 100.403 61.7984C100.014 61.6351 99.5947 61.5498 99.1707 61.5478H66.0684C66.7731 54.8644 69.6353 48.5659 74.2486 43.5468C77.1792 40.3682 80.7538 37.8071 84.7504 36.0226C88.7469 34.2381 93.08 33.2684 97.4802 33.1738C98.2977 33.14 99.0706 32.8033 99.639 32.2335C100.207 31.6636 100.528 30.9041 100.534 30.112V2.66184C100.546 2.04062 100.331 1.43533 99.9266 0.952523C99.5226 0.469716 98.9556 0.140347 98.3255 0.0223983H97.7529C97.5176 -0.00746611 97.2792 -0.00746611 97.0439 0.0223983C84.1284 0.266286 71.4425 3.37237 59.9605 9.10208C49.7635 14.1971 41.0132 21.6355 34.4766 30.7653C27.94 39.8951 23.8167 50.4375 22.4681 61.4686H3.163C2.32163 61.4756 1.51715 61.804 0.924744 62.3824C0.332339 62.9608 -3.07314e-05 63.7423 2.13119e-09 64.5568V100.612C2.13119e-09 101.014 0.0817794 101.412 0.240735 101.783C0.39969 102.155 0.632697 102.492 0.926408 102.777C1.22012 103.061 1.56884 103.286 1.95259 103.44C2.33634 103.594 2.74763 103.673 3.163 103.673H21.841V201.517C21.841 201.922 21.9237 202.322 22.0844 202.695C22.245 203.068 22.4804 203.407 22.777 203.692C23.0736 203.976 23.4255 204.201 23.8124 204.354C24.1993 204.506 24.6136 204.583 25.0313 204.579H62.1691C62.5868 204.583 63.0011 204.506 63.388 204.354C63.7749 204.201 64.1268 203.976 64.4234 203.692C64.72 203.407 64.9554 203.068 65.116 202.695C65.2767 202.322 65.3595 201.922 65.3594 201.517V103.673H100.534V132.707C100.534 132.707 100.534 132.918 100.534 133.05C100.31 146.04 103.822 158.834 110.677 170.002C117.395 180.787 127.07 189.558 138.626 195.341C150.258 201.217 163.137 204.406 176.255 204.658H179.5C178.479 211.37 175.291 217.597 170.393 222.448C163.549 229.416 158.013 233.006 147.379 233.006C146.958 233.002 146.54 233.08 146.15 233.233C145.76 233.387 145.405 233.614 145.106 233.901C144.806 234.188 144.569 234.53 144.407 234.906C144.245 235.283 144.162 235.686 144.162 236.094V262.937C144.158 263.345 144.239 263.749 144.4 264.126C144.561 264.502 144.799 264.843 145.099 265.129C145.399 265.415 145.756 265.639 146.148 265.789C146.539 265.938 146.958 266.01 147.379 265.999C160.384 265.772 173.152 262.589 184.653 256.708C196.283 250.973 206.042 242.23 212.848 231.449C219.691 220.275 223.202 207.485 222.991 194.496C222.991 194.496 222.964 194.312 222.964 194.18Z"})}):j.jsxs("svg",{preserveAspectRatio:"none",width:a,height:s,viewBox:"0 0 258 70",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:l({variant:e,className:t}),children:[j.jsx("path",{d:"M44.1576 5.54621e-10H53.8953C54.117 5.54621e-10 54.3296 0.0853594 54.4864 0.2373C54.6431 0.389241 54.7312 0.595316 54.7312 0.810193V52.8634C54.7312 52.9694 54.7095 53.0745 54.6674 53.1724C54.6253 53.2703 54.5637 53.3591 54.486 53.4338C54.4082 53.5085 54.316 53.5675 54.2147 53.6075C54.1133 53.6474 54.0048 53.6675 53.8953 53.6666H44.1576C43.9378 53.6666 43.727 53.582 43.5716 53.4314C43.4162 53.2807 43.3289 53.0764 43.3289 52.8634V0.810193C43.3279 0.704125 43.3487 0.598926 43.3899 0.500669C43.4311 0.402411 43.492 0.31304 43.5691 0.237715C43.6461 0.162389 43.7378 0.102601 43.8388 0.0618008C43.9398 0.0210004 44.0482 -3.94095e-06 44.1576 5.54621e-10Z"}),j.jsx("path",{d:"M68.7089 51.2755C65.8506 49.7718 63.4549 47.4816 61.7891 44.6605C60.1032 41.7448 59.2396 38.4048 59.2947 35.0137C59.2396 31.6226 60.1032 28.2825 61.7891 25.3668C63.45 22.5364 65.8465 20.2384 68.7089 18.7312C71.8146 17.1539 75.2322 16.3335 78.6964 16.3335C82.1606 16.3335 85.5782 17.1539 88.6838 18.7312C91.5312 20.2475 93.9147 22.5442 95.5701 25.3668C97.251 28.2844 98.1121 31.6236 98.0578 35.0137C98.1121 38.4038 97.251 41.743 95.5701 44.6605C93.9093 47.4735 91.5268 49.7622 88.6838 51.2755C85.577 52.8486 82.1599 53.6668 78.6964 53.6668C75.2329 53.6668 71.8157 52.8486 68.7089 51.2755ZM85.1703 42.3177C86.8555 40.4802 87.6982 38.0432 87.6982 35.0068C87.6982 31.9703 86.8555 29.5379 85.1703 27.7096C84.3456 26.806 83.3434 26.093 82.2302 25.6178C81.1169 25.1426 79.9181 24.9161 78.7131 24.9534C77.5026 24.9186 76.2984 25.146 75.179 25.6209C74.0596 26.0957 73.0499 26.8074 72.2157 27.7096C70.5215 29.5287 69.6744 31.9657 69.6744 35.0206C69.6744 38.0754 70.5215 40.5078 72.2157 42.3177C73.0507 43.2189 74.0605 43.9299 75.1797 44.4047C76.2989 44.8795 77.5027 45.1075 78.7131 45.074C79.9179 45.1103 81.1166 44.8834 82.2297 44.4083C83.3428 43.9332 84.3451 43.2206 85.1703 42.3177Z"}),j.jsx("path",{d:"M187.827 5.54621e-10H197.565C197.787 5.54621e-10 197.999 0.0853594 198.156 0.2373C198.313 0.389241 198.401 0.595316 198.401 0.810193V52.8634C198.401 52.9694 198.379 53.0745 198.337 53.1724C198.295 53.2703 198.233 53.3591 198.156 53.4338C198.078 53.5085 197.986 53.5675 197.884 53.6075C197.783 53.6474 197.674 53.6675 197.565 53.6666H187.827C187.718 53.6666 187.611 53.6459 187.51 53.6055C187.41 53.5651 187.318 53.506 187.241 53.4314C187.164 53.3568 187.103 53.2682 187.062 53.1708C187.02 53.0733 186.999 52.9688 186.999 52.8634V0.810193C186.998 0.704125 187.018 0.598926 187.06 0.500669C187.101 0.402411 187.162 0.31304 187.239 0.237715C187.316 0.162389 187.407 0.102601 187.508 0.0618008C187.61 0.0210004 187.718 -3.94095e-06 187.827 5.54621e-10V5.54621e-10Z"}),j.jsx("path",{d:"M138.924 25.2187C137.26 22.3784 134.865 20.0701 132.005 18.5505C129.42 17.1729 126.578 16.3842 123.671 16.2378C123.128 16.1962 122.591 16.1408 122.027 16.1408C121.464 16.1408 120.927 16.1962 120.377 16.2378C117.94 16.3776 115.546 16.9589 113.304 17.955V0.810156C113.306 0.599481 113.227 0.396499 113.085 0.244956C112.944 0.0934118 112.75 0.00544026 112.546 0L103.406 0C103.198 0 102.998 0.0853555 102.851 0.237289C102.704 0.389223 102.621 0.59529 102.621 0.810156V52.861C102.623 53.0746 102.706 53.2789 102.853 53.4294C103 53.5798 103.199 53.6642 103.406 53.6642H112.546C112.752 53.6642 112.95 53.5796 113.096 53.4289C113.242 53.2783 113.324 53.074 113.324 52.861V51.8569C116.078 53.0793 119.049 53.6948 122.047 53.6642C125.51 53.718 128.931 52.8854 132.005 51.2407C134.853 49.7142 137.238 47.4069 138.897 44.5725C140.579 41.6406 141.441 38.285 141.386 34.8783C141.443 31.4859 140.591 28.1433 138.924 25.2187ZM128.523 42.2389C127.695 43.1457 126.691 43.8613 125.576 44.3387C124.461 44.8161 123.261 45.0445 122.054 45.0087C120.843 45.0424 119.638 44.8132 118.518 44.3361C117.398 43.859 116.387 43.1445 115.552 42.2389C114.427 40.9975 113.659 39.4587 113.331 37.7935C112.883 35.8844 112.883 33.8929 113.331 31.9839C113.659 30.3207 114.428 28.7842 115.552 27.5453C116.387 26.6387 117.397 25.9235 118.517 25.4463C119.638 24.9691 120.843 24.7406 122.054 24.7756C123.261 24.7385 124.462 24.9662 125.577 25.4437C126.692 25.9211 127.696 26.6375 128.523 27.5453C130.205 29.3918 131.046 31.8408 131.046 34.8921C131.046 37.9435 130.205 40.3924 128.523 42.2389Z"}),j.jsx("path",{d:"M171.742 17.1428V18.1215C169.01 16.9171 166.064 16.3092 163.092 16.3365C159.615 16.2772 156.179 17.1011 153.087 18.7349C150.224 20.2425 147.828 22.541 146.166 25.3719C144.48 28.2882 143.617 31.6289 143.672 35.0207C143.617 38.4125 144.48 41.7532 146.166 44.6695C147.834 47.4861 150.23 49.7718 153.087 51.2721C156.179 52.9037 159.616 53.7252 163.092 53.6636C166.064 53.693 169.009 53.0875 171.742 51.8855V52.8641C171.742 53.0762 171.824 53.2795 171.97 53.4294C172.116 53.5794 172.313 53.6636 172.52 53.6636H181.66C181.866 53.6636 182.064 53.5794 182.21 53.4294C182.355 53.2795 182.437 53.0762 182.437 52.8641V17.1428C182.437 16.9302 182.356 16.7261 182.21 16.5751C182.064 16.4241 181.866 16.3383 181.66 16.3365H172.52C172.313 16.3383 172.115 16.4241 171.969 16.5751C171.824 16.7261 171.742 16.9302 171.742 17.1428ZM169.549 42.3125C168.724 43.2155 167.722 43.9282 166.608 44.4035C165.495 44.8787 164.296 45.1056 163.092 45.0693C161.881 45.1028 160.677 44.8747 159.558 44.3998C158.439 43.9249 157.429 43.2138 156.594 42.3125C154.891 40.4746 154.039 38.0371 154.039 35C154.039 31.963 154.891 29.5255 156.594 27.6876C157.428 26.7852 158.438 26.0734 159.557 25.5984C160.677 25.1235 161.881 24.896 163.092 24.9308C164.297 24.8936 165.495 25.1201 166.609 25.5954C167.722 26.0707 168.724 26.7839 169.549 27.6876C170.66 28.9209 171.418 30.4446 171.742 32.0916C172.189 34.0033 172.189 35.9967 171.742 37.9085C171.416 39.5549 170.658 41.0781 169.549 42.3125Z"}),j.jsx("path",{d:"M41.0484 51.1316V17.1532C41.0485 16.9392 40.9619 16.7339 40.8076 16.582C40.6533 16.43 40.4437 16.3437 40.2246 16.3419H30.5438C30.3247 16.3437 30.1151 16.43 29.9608 16.582C29.8065 16.7339 29.7199 16.9392 29.7199 17.1532V18.2003C26.8101 16.9534 23.6643 16.3179 20.4866 16.335C16.8207 16.2935 13.2007 17.1342 9.9465 18.7828C6.92093 20.297 4.38759 22.6047 2.6309 25.4467C0.855237 28.3743 -0.0544231 31.7252 0.00296367 35.1271C-0.0590547 38.5392 0.853371 41.9008 2.638 44.8352C4.39099 47.6742 6.92257 49.9777 9.9465 51.4853C13.2111 53.1311 16.8413 53.9648 20.515 53.9123C23.7856 53.8752 27.015 53.196 30.0111 51.9152C30.0135 54.3789 29.0796 56.7559 27.3903 58.5861C25.6076 60.4167 24.116 61.3043 21.3318 61.3043C21.1127 61.3062 20.9031 61.3925 20.7488 61.5444C20.5945 61.6964 20.5079 61.9017 20.5079 62.1157V69.1887C20.5089 69.2968 20.5317 69.4036 20.5751 69.503C20.6185 69.6023 20.6817 69.6923 20.7609 69.7678C20.8402 69.8432 20.9339 69.9026 21.0368 69.9424C21.1397 69.9823 21.2496 70.0019 21.3603 70C24.7569 69.9521 28.0956 69.1331 31.112 67.6077C34.128 66.0809 36.6507 63.7667 38.3992 60.923C40.1863 57.9893 41.1012 54.6276 41.0413 51.2148C41.0413 51.2148 41.0484 51.1663 41.0484 51.1316ZM29.7199 37.8107C29.4003 39.553 28.5772 41.1698 27.3477 42.4706C26.475 43.379 25.4145 44.0961 24.2366 44.5742C23.0587 45.0524 21.7902 45.2808 20.515 45.2443C19.2361 45.2782 17.9641 45.0487 16.782 44.5708C15.5999 44.0929 14.5341 43.3773 13.654 42.4706C11.8594 40.6214 10.9598 38.1736 10.9551 35.1271C10.9503 32.0806 11.85 29.6328 13.654 27.7836C14.5349 26.878 15.6009 26.1631 16.7828 25.6852C17.9647 25.2074 19.2362 24.9773 20.515 25.0099C21.79 24.9747 23.0581 25.2037 24.2358 25.6818C25.4136 26.1599 26.4741 26.8762 27.3477 27.7836C28.5734 29.0842 29.396 30.6977 29.7199 32.4366C30.1081 34.2079 30.1081 36.0394 29.7199 37.8107Z"}),j.jsx("path",{d:"M257.684 51.0999V22.5384C257.684 22.4311 257.662 22.3248 257.621 22.2258C257.579 22.1267 257.519 22.0368 257.442 21.9613C257.366 21.8857 257.275 21.826 257.175 21.7856C257.076 21.7451 256.969 21.7248 256.861 21.7257H247.366C247.26 21.7257 247.154 21.7468 247.055 21.7877C246.957 21.8286 246.867 21.8886 246.792 21.9642C246.717 22.0397 246.658 22.1294 246.617 22.2279C246.577 22.3265 246.557 22.432 246.558 22.5384V45.1542C246.119 45.1542 245.861 45.1542 245.77 45.1542C242.793 44.7444 241.385 43.9943 239.775 42.3759C238.165 40.7575 237.628 38.4445 237.502 35.6939V27.6089C237.504 27.5002 237.483 27.3924 237.441 27.2921C237.399 27.1918 237.337 27.101 237.258 27.0254L231.863 21.816L226.614 16.4468C226.539 16.3683 226.449 16.3057 226.35 16.2627C226.251 16.2198 226.143 16.1973 226.035 16.1968H217.572C217.752 14.438 218.484 12.7805 219.663 11.4597C220.413 10.6232 221.327 9.94923 222.348 9.47962C223.37 9.01002 224.478 8.75484 225.603 8.72994C225.812 8.72104 226.009 8.63245 226.155 8.48249C226.3 8.33253 226.382 8.13267 226.384 7.92422V0.700484C226.386 0.537006 226.331 0.377718 226.228 0.250664C226.125 0.123609 225.98 0.0369334 225.819 0.00589429H225.672C225.612 -0.00196476 225.551 -0.00196476 225.491 0.00589429C222.189 0.0700753 218.946 0.887465 216.011 2.39528C213.404 3.73607 211.166 5.69354 209.495 8.09612C207.824 10.4987 206.77 13.273 206.425 16.1759H201.49C201.275 16.1778 201.069 16.2642 200.918 16.4164C200.766 16.5686 200.681 16.7743 200.681 16.9886V26.4767C200.681 26.5825 200.702 26.6873 200.743 26.7851C200.783 26.8828 200.843 26.9716 200.918 27.0465C200.993 27.1213 201.082 27.1806 201.18 27.2211C201.278 27.2616 201.384 27.2824 201.49 27.2824H206.265V53.0309C206.265 53.1373 206.286 53.2426 206.327 53.3408C206.368 53.439 206.428 53.5282 206.504 53.6031C206.58 53.678 206.67 53.7372 206.769 53.7773C206.868 53.8174 206.974 53.8375 207.081 53.8366H216.575C216.682 53.8375 216.788 53.8174 216.887 53.7773C216.986 53.7372 217.076 53.678 217.152 53.6031C217.227 53.5282 217.288 53.439 217.329 53.3408C217.37 53.2426 217.391 53.1373 217.391 53.0309V27.2824H226.384V34.9229C226.384 34.9229 226.384 34.9785 226.384 35.0132C226.326 38.4315 227.224 41.7984 228.977 44.7375C230.694 47.5755 233.168 49.8836 236.122 51.4056C239.096 52.9517 242.389 53.791 245.742 53.8575H246.572C246.311 55.6236 245.496 57.2623 244.243 58.539C242.494 60.3727 241.079 61.3173 238.36 61.3173C238.252 61.3164 238.145 61.3368 238.046 61.3772C237.946 61.4176 237.855 61.4774 237.779 61.5529C237.702 61.6285 237.641 61.7184 237.6 61.8174C237.559 61.9165 237.537 62.0227 237.537 62.13V69.194C237.536 69.3013 237.557 69.4076 237.598 69.5067C237.639 69.6058 237.7 69.6956 237.777 69.7708C237.854 69.846 237.945 69.9051 238.045 69.9444C238.145 69.9837 238.252 70.0025 238.36 69.9997C241.685 69.94 244.949 69.1025 247.889 67.5548C250.862 66.0456 253.358 63.7446 255.097 60.9075C256.847 57.9672 257.745 54.6012 257.691 51.1833C257.691 51.1833 257.684 51.1347 257.684 51.0999Z"})]})}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 n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},he.apply(this,arguments)}function gm(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function mc(...e){return t=>e.forEach(r=>gm(r,t))}function dt(...e){return f.useCallback(mc(...e),e)}const jr=f.forwardRef((e,t)=>{const{children:r,...n}=e,o=f.Children.toArray(r),a=o.find(vm);if(a){const s=a.props.children,i=o.map(l=>l===a?f.Children.count(s)>1?f.Children.only(null):f.isValidElement(s)?s.props.children:null:l);return f.createElement(cs,he({},n,{ref:t}),f.isValidElement(s)?f.cloneElement(s,void 0,i):null)}return f.createElement(cs,he({},n,{ref:t}),r)});jr.displayName="Slot";const cs=f.forwardRef((e,t)=>{const{children:r,...n}=e;return f.isValidElement(r)?f.cloneElement(r,{...bm(n,r.props),ref:t?mc(t,r.ref):r.ref}):f.Children.count(r)>1?f.Children.only(null):null});cs.displayName="SlotClone";const gc=({children:e})=>f.createElement(f.Fragment,null,e);function vm(e){return f.isValidElement(e)&&e.type===gc}function bm(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{a(...i),o(...i)}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}const ym=f.createContext(null),xm=()=>f.useContext(ym),Be=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const r=f.forwardRef((n,o)=>{const{asChild:a,...s}=n,i=a?jr:t;return f.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),f.createElement(i,he({},s,{ref:o}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function wm(e,t){e&&gn.flushSync(()=>e.dispatchEvent(t))}const vc=f.forwardRef((e,t)=>f.createElement(Be.label,he({},e,{ref:t,onMouseDown:r=>{var n;(n=e.onMouseDown)===null||n===void 0||n.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault()}})));function bc(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=bc(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function $o(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=bc(e))&&(n&&(n+=" "),n+=t);return n}const yc=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,xc=$o,Cm=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return xc(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(c=>{const u=r==null?void 0:r[c],d=a==null?void 0:a[c];if(u===null)return null;const h=yc(u)||yc(d);return o[c][h]}),i=r&&Object.entries(r).reduce((c,u)=>{let[d,h]=u;return h===void 0||(c[d]=h),c},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,u)=>{let{class:d,className:h,...p}=u;return Object.entries(p).every(m=>{let[y,b]=m;return Array.isArray(b)?b.includes({...a,...i}[y]):{...a,...i}[y]===b})?[...c,d,h]:c},[]);return xc(e,s,l,r==null?void 0:r.class,r==null?void 0:r.className)};function Cn(...e){return ss($o(e))}const Pm=Cm("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),wc=U.forwardRef(({className:e,...t},r)=>j.jsx(vc,{ref:r,className:Cn(Pm(),e),...t}));wc.displayName=vc.displayName;const Mm=U.createContext({}),Do=()=>{const e=U.useContext(Mm),t=U.useContext(Cc),{getFieldState:r,formState:n}=xm(),o=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},Cc=U.createContext({}),Tm=U.forwardRef(({className:e,...t},r)=>{const n=U.useId();return j.jsx(Cc.Provider,{value:{id:n},children:j.jsx("div",{ref:r,className:Cn("space-y-2",e),...t})})});Tm.displayName="FormItem";const Em=U.forwardRef(({className:e,...t},r)=>{const{error:n,formItemId:o}=Do();return j.jsx(wc,{ref:r,className:Cn(n&&"text-destructive",e),htmlFor:o,...t})});Em.displayName="FormLabel";const Sm=U.forwardRef(({...e},t)=>{const{error:r,formItemId:n,formDescriptionId:o,formMessageId:a}=Do();return j.jsx(jr,{ref:t,id:n,"aria-describedby":r?`${o} ${a}`:`${o}`,"aria-invalid":!!r,...e})});Sm.displayName="FormControl";const $m=U.forwardRef(({className:e,...t},r)=>{const{formDescriptionId:n}=Do();return j.jsx("p",{ref:r,id:n,className:Cn("text-sm text-muted-foreground",e),...t})});$m.displayName="FormDescription";const Pc=U.forwardRef(({className:e,children:t,...r},n)=>{const{error:o,formMessageId:a}=Do(),s=o?String(o==null?void 0:o.message):t;return s?j.jsx("p",{ref:n,id:a,className:Cn("text-sm font-medium text-destructive",e),...r,children:s}):null});Pc.displayName="FormMessage";const Dm=({children:e})=>j.jsx(Pc,{children:e}),ur=(...e)=>ss($o(e)),Mc=({children:e,className:t,font:r="satoshi",weight:n="regular",...o})=>{const a=Me({variants:{font:{satoshi:"font-satoshi",livvic:"font-livvic"},weight:{light:"font-light",regular:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",black:"font-black"}}});return j.jsx("p",{...o,className:ur(t,a({font:r,weight:n})),children:e})},Im={bra:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzciIHZpZXdCb3g9IjAgMCAzOCAzNyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTguNTA5OSIgY3k9IjE4LjUwMzMiIHI9IjE4LjUwMzMiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0xOC41MSAzNS4xODY1QzI3LjcyMzkgMzUuMTg2NSAzNS4xOTMzIDI3LjcxNzEgMzUuMTkzMyAxOC41MDMyQzM1LjE5MzMgOS4yODkyMSAyNy43MjM5IDEuODE5ODIgMTguNTEgMS44MTk4MkM5LjI5NjA0IDEuODE5ODIgMS44MjY2NiA5LjI4OTIxIDEuODI2NjYgMTguNTAzMkMxLjgyNjY2IDI3LjcxNzEgOS4yOTYwNCAzNS4xODY1IDE4LjUxIDM1LjE4NjVaIiBmaWxsPSIjMEI5RjU5Ii8+CjxwYXRoIGQ9Ik0xOC41MTAxIDguMzQ4MjhMMzIuMjkyIDE4LjUwMzNMMTguNTEwMSAyOC42NTg0TDQuNzI4MjQgMTguNTAzM0wxOC41MTAxIDguMzQ4MjhaIiBmaWxsPSIjRkZEQTQ0Ii8+CjxwYXRoIGQ9Ik0xOC41MDk5IDI0LjMwNjJDMjEuNzE0OCAyNC4zMDYyIDI0LjMxMjggMjEuNzA4MSAyNC4zMTI4IDE4LjUwMzNDMjQuMzEyOCAxNS4yOTg1IDIxLjcxNDggMTIuNzAwNCAxOC41MDk5IDEyLjcwMDRDMTUuMzA1MSAxMi43MDA0IDEyLjcwNyAxNS4yOTg1IDEyLjcwNyAxOC41MDMzQzEyLjcwNyAyMS43MDgxIDE1LjMwNTEgMjQuMzA2MiAxOC41MDk5IDI0LjMwNjJaIiBmaWxsPSIjRjBGMEYwIi8+CjxwYXRoIGQ9Ik0xNS42MDgzIDE4LjEzOTdDMTQuNTk5MiAxOC4xMzk3IDEzLjYyNTQgMTguMjkzMSAxMi43MDg3IDE4LjU3NzlDMTIuNzQ5MyAyMS43NDc4IDE1LjMzMDMgMjQuMzA1MyAxOC41MDk4IDI0LjMwNTNDMjAuNDc1OCAyNC4zMDUzIDIyLjIxMjIgMjMuMzI2NiAyMy4yNjE4IDIxLjgzMDlDMjEuNDY2IDE5LjU4MjggMTguNzAyNyAxOC4xMzk3IDE1LjYwODMgMTguMTM5N1oiIGZpbGw9IiMwMDUyQjQiLz4KPHBhdGggZD0iTTI0LjIwNTEgMTkuNjE0MkMyNC4yNzUgMTkuMjU0MiAyNC4zMTI3IDE4Ljg4MjggMjQuMzEyNyAxOC41MDI1QzI0LjMxMjcgMTUuMjk3NiAyMS43MTQ3IDEyLjY5OTYgMTguNTA5OSAxMi42OTk2QzE2LjExODUgMTIuNjk5NiAxNC4wNjU3IDE0LjE0NjQgMTMuMTc3MyAxNi4yMTIxQzEzLjk2MjYgMTYuMDQ5NCAxNC43NzU3IDE1Ljk2MzcgMTUuNjA4NSAxNS45NjM3QzE4Ljk3ODggMTUuOTYzNyAyMi4wMjc4IDE3LjM2NDcgMjQuMjA1MSAxOS42MTQyWiIgZmlsbD0iIzAwNTJCNCIvPgo8L3N2Zz4K",esp:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzciIHZpZXdCb3g9IjAgMCAzOCAzNyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTguNTE2OCIgY3k9IjE4LjUwMzMiIHI9IjE4LjUwMzMiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0xLjgzMzUgMTguNTAyN0MxLjgzMzUgMjAuNTQzNCAyLjIwMDU5IDIyLjQ5ODIgMi44NzExOSAyNC4zMDU2TDE4LjUxNjggMjUuNzU2M0wzNC4xNjI1IDI0LjMwNTZDMzQuODMzMSAyMi40OTgyIDM1LjIwMDIgMjAuNTQzNCAzNS4yMDAyIDE4LjUwMjdDMzUuMjAwMiAxNi40NjIgMzQuODMzMSAxNC41MDcyIDM0LjE2MjUgMTIuNjk5OEwxOC41MTY4IDExLjI0OTFMMi44NzExOSAxMi42OTk4QzIuMjAwNTkgMTQuNTA3MiAxLjgzMzUgMTYuNDYyIDEuODMzNSAxOC41MDI3WiIgZmlsbD0iI0ZGREE0NCIvPgo8cGF0aCBkPSJNMzQuMTYyOCAxMi43MDAzQzMxLjgwNTUgNi4zNDczNSAyNS42OTA0IDEuODE5ODIgMTguNTE3MSAxLjgxOTgyQzExLjM0MzkgMS44MTk4MiA1LjIyODcgNi4zNDczNSAyLjg3MTQ2IDEyLjcwMDNIMzQuMTYyOFoiIGZpbGw9IiNEODAwMjciLz4KPHBhdGggZD0iTTIuODcxMTkgMjQuMzA1NkM1LjIyODQyIDMwLjY1ODYgMTEuMzQzOSAzNS4xODY1IDE4LjUxNzEgMzUuMTg2NUMyNS42OTA0IDM1LjE4NjUgMzEuODA1MiAzMC42NTg2IDM0LjE2MjUgMjQuMzA1NkgyLjg3MTE5WiIgZmlsbD0iI0Q4MDAyNyIvPgo8L3N2Zz4K",usa:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzciIGhlaWdodD0iMzciIHZpZXdCb3g9IjAgMCAzNyAzNyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTguNTAzMyIgY3k9IjE4LjUwMzMiIHI9IjE4LjUwMzMiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0xOC41MDM0IDM1LjE4NjVDMjcuNzE3NCAzNS4xODY1IDM1LjE4NjcgMjcuNzE3MSAzNS4xODY3IDE4LjUwMzJDMzUuMTg2NyA5LjI4OTIxIDI3LjcxNzQgMS44MTk4MiAxOC41MDM0IDEuODE5ODJDOS4yODk0NSAxLjgxOTgyIDEuODIwMDcgOS4yODkyMSAxLjgyMDA3IDE4LjUwMzJDMS44MjAwNyAyNy43MTcxIDkuMjg5NDUgMzUuMTg2NSAxOC41MDM0IDM1LjE4NjVaIiBmaWxsPSIjRjBGMEYwIi8+CjxwYXRoIGQ9Ik0xNy43Nzc5IDE4LjUwMzdIMzUuMTg2NkMzNS4xODY2IDE2Ljk5NzggMzQuOTg1OCAxNS41MzkxIDM0LjYxMTggMTQuMTUxNUgxNy43Nzc5VjE4LjUwMzdaIiBmaWxsPSIjRDgwMDI3Ii8+CjxwYXRoIGQ9Ik0xNy43Nzc5IDkuNzk5MzRIMzIuNzM3OUMzMS43MTY2IDguMTMyODMgMzAuNDEwOCA2LjY1OTgxIDI4Ljg4ODMgNS40NDcxNEgxNy43Nzc5VjkuNzk5MzRaIiBmaWxsPSIjRDgwMDI3Ii8+CjxwYXRoIGQ9Ik0xOC41MDM0IDM1LjE4NjVDMjIuNDI5OCAzNS4xODY1IDI2LjAzODQgMzMuODI5OCAyOC44ODgyIDMxLjU2MDFIOC4xMTc5OUMxMC45Njc4IDMzLjgyOTggMTQuNTc3IDM1LjE4NjUgMTguNTAzNCAzNS4xODY1WiIgZmlsbD0iI0Q4MDAyNyIvPgo8cGF0aCBkPSJNNC4yNjg1NyAyNy4yMDhIMzIuNzM3OUMzMy41NTc4IDI1Ljg3MDEgMzQuMTkzNiAyNC40MDc3IDM0LjYxMTggMjIuODU1OEgyLjM5NDYzQzIuODEyODIgMjQuNDA3NyAzLjQ0ODY3IDI1Ljg3MDEgNC4yNjg1NyAyNy4yMDhaIiBmaWxsPSIjRDgwMDI3Ii8+CjxwYXRoIGQ9Ik05LjU0ODEgNC40MjUxNkgxMS4wNjg0TDkuNjU0MjYgNS40NTI1NUwxMC4xOTQ0IDcuMTE0OTZMOC43ODAzNCA2LjA4NzU2TDcuMzY2MjMgNy4xMTQ5Nkw3LjgzMjg1IDUuNjc4ODJDNi41ODc3MiA2LjcxNTk5IDUuNDk2NCA3LjkzMTE0IDQuNTk3MDYgOS4yODUwOUg1LjA4NDJMNC4xODQwMiA5LjkzOTA3QzQuMDQzNzcgMTAuMTczIDMuOTA5MjYgMTAuNDEwNyAzLjc4MDM2IDEwLjY1MTlMNC4yMTAyMiAxMS45NzQ5TDMuNDA4MjQgMTEuMzkyMkMzLjIwODg5IDExLjgxNDYgMy4wMjY1NSAxMi4yNDY1IDIuODYyNjUgMTIuNjg3M0wzLjMzNjIzIDE0LjE0NUg1LjA4NDJMMy42NzAwMyAxNS4xNzI0TDQuMjEwMjIgMTYuODM0OEwyLjc5NjExIDE1LjgwNzRMMS45NDkwNCAxNi40MjI5QzEuODY0MjUgMTcuMTA0NCAxLjgyMDA3IDE3Ljc5ODYgMS44MjAwNyAxOC41MDMySDE4LjUwMzRDMTguNTAzNCA5LjI4OTI3IDE4LjUwMzQgOC4yMDMwMiAxOC41MDM0IDEuODE5ODJDMTUuMjA3NyAxLjgxOTgyIDEyLjEzNTQgMi43NzU4NiA5LjU0ODEgNC40MjUxNlpNMTAuMTk0NCAxNi44MzQ4TDguNzgwMzQgMTUuODA3NEw3LjM2NjIzIDE2LjgzNDhMNy45MDY0MiAxNS4xNzI0TDYuNDkyMjUgMTQuMTQ1SDguMjQwMjJMOC43ODAzNCAxMi40ODI2TDkuMzIwNDYgMTQuMTQ1SDExLjA2ODRMOS42NTQyNiAxNS4xNzI0TDEwLjE5NDQgMTYuODM0OFpNOS42NTQyNiAxMC4zMTI1TDEwLjE5NDQgMTEuOTc0OUw4Ljc4MDM0IDEwLjk0NzVMNy4zNjYyMyAxMS45NzQ5TDcuOTA2NDIgMTAuMzEyNUw2LjQ5MjI1IDkuMjg1MDlIOC4yNDAyMkw4Ljc4MDM0IDcuNjIyNjlMOS4zMjA0NiA5LjI4NTA5SDExLjA2ODRMOS42NTQyNiAxMC4zMTI1Wk0xNi4xNzg3IDE2LjgzNDhMMTQuNzY0NiAxNS44MDc0TDEzLjM1MDUgMTYuODM0OEwxMy44OTA3IDE1LjE3MjRMMTIuNDc2NSAxNC4xNDVIMTQuMjI0NUwxNC43NjQ2IDEyLjQ4MjZMMTUuMzA0NyAxNC4xNDVIMTcuMDUyN0wxNS42Mzg1IDE1LjE3MjRMMTYuMTc4NyAxNi44MzQ4Wk0xNS42Mzg1IDEwLjMxMjVMMTYuMTc4NyAxMS45NzQ5TDE0Ljc2NDYgMTAuOTQ3NUwxMy4zNTA1IDExLjk3NDlMMTMuODkwNyAxMC4zMTI1TDEyLjQ3NjUgOS4yODUwOUgxNC4yMjQ1TDE0Ljc2NDYgNy42MjI2OUwxNS4zMDQ3IDkuMjg1MDlIMTcuMDUyN0wxNS42Mzg1IDEwLjMxMjVaTTE1LjYzODUgNS40NTI1NUwxNi4xNzg3IDcuMTE0OTZMMTQuNzY0NiA2LjA4NzU2TDEzLjM1MDUgNy4xMTQ5NkwxMy44OTA3IDUuNDUyNTVMMTIuNDc2NSA0LjQyNTE2SDE0LjIyNDVMMTQuNzY0NiAyLjc2Mjc2TDE1LjMwNDcgNC40MjUxNkgxNy4wNTI3TDE1LjYzODUgNS40NTI1NVoiIGZpbGw9IiMwMDUyQjQiLz4KPC9zdmc+Cg=="},km=({shadow:e,country:t,className:r,...n})=>{const o=Me({base:"rounded-full",variants:{shadow:{true:"shadow-[4px_4px_6px_0px_rgba(0,0,0,0.17)]",false:""}}}),a=Im[t];return j.jsx("img",{...n,src:a,alt:`${t} flag`,className:ur(r,o({shadow:e}))})},H8="",et=({name:e,className:t,...r})=>j.jsx("span",{...r,className:`icon-${e} ${t??""}`});({IcoMoonType:"selection",icons:[{icon:{paths:["M310.499 16.002c-23.478 0-42.513 19.035-42.513 42.513v0 31.663c-73.907 6.95-136.926 27.183-179.246 68.199-50.775 49.212-72.741 118.961-72.741 194.857v385.506c0 75.896 21.966 145.754 72.741 194.966s126.295 74.291 221.76 74.291h402.999c95.465 0 170.986-25.078 221.76-74.291s72.741-119.071 72.741-194.966v-385.506c0-75.896-21.966-145.644-72.741-194.857-42.318-41.017-105.339-61.249-179.246-68.199v-31.663c0-23.478-19.035-42.513-42.513-42.513v0c-23.478 0-42.513 19.035-42.513 42.513v0 25.463h-317.969v-25.463c0-23.478-19.035-42.513-42.513-42.513v0zM353.011 169.008h317.969v25.575c0 23.478 19.035 42.513 42.513 42.513v0c23.478 0 42.513-19.035 42.513-42.513v0-19.597c53.909 6.407 95.525 20.662 120.013 44.397 27.978 27.117 41.762 66.998 44.616 118.134h-817.293c2.854-51.13 16.643-91.016 44.616-118.134 24.489-23.736 66.107-37.991 120.013-44.397v19.597c0 23.478 19.035 42.513 42.513 42.513v0c23.478 0 42.513-19.035 42.513-42.513v0zM101.030 422.544h821.943v316.199c0 60.151-15.841 103.706-46.943 133.853s-81.639 50.375-162.53 50.375h-402.999c-80.887 0-131.424-20.23-162.53-50.375s-46.943-73.703-46.943-133.853zM325.335 546.544c-23.478 0-42.513 19.035-42.513 42.513v0c0 23.478 19.035 42.513 42.513 42.513v0h0.443c23.478 0 42.513-19.035 42.513-42.513v0c0-23.478-19.035-42.513-42.513-42.513v0zM511.779 546.544c-23.478 0-42.513 19.035-42.513 42.513v0c0 23.478 19.035 42.513 42.513 42.513v0h0.443c23.478 0 42.513-19.035 42.513-42.513v0c0-23.478-19.035-42.513-42.513-42.513v0zM698.217 546.544c-23.478 0-42.513 19.035-42.513 42.513v0c0 23.478 19.035 42.513 42.513 42.513v0h0.443c23.478 0 42.513-19.035 42.513-42.513v0c0-23.478-19.035-42.513-42.513-42.513v0zM325.335 682.611c-23.478 0-42.513 19.035-42.513 42.513v0c0 23.478 19.035 42.513 42.513 42.513v0h0.443c23.478 0 42.513-19.035 42.513-42.513v0c0-23.478-19.035-42.513-42.513-42.513v0zM511.779 682.611c-23.478 0-42.513 19.035-42.513 42.513v0c0 23.478 19.035 42.513 42.513 42.513v0h0.443c23.478 0 42.513-19.035 42.513-42.513v0c0-23.478-19.035-42.513-42.513-42.513v0zM698.217 682.611c-23.478 0-42.513 19.035-42.513 42.513v0c0 23.478 19.035 42.513 42.513 42.513v0h0.443c23.478 0 42.513-19.035 42.513-42.513v0c0-23.478-19.035-42.513-42.513-42.513v0z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["calendar"],colorPermutations:{}},attrs:[],properties:{order:22,id:13,name:"calendar",prevSize:32,code:59660},setIdx:0,setId:2,iconIdx:0},{icon:{paths:["M92.308 1008.001l-76.307-76.31 419.692-419.691-419.692-419.692 76.307-76.307 419.692 419.692 419.691-419.692 76.31 76.307-419.692 419.692 419.692 419.691-76.31 76.31-419.691-419.692-419.692 419.692z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["close"],colorPermutations:{}},attrs:[],properties:{order:20,id:12,name:"close",prevSize:32,code:59659},setIdx:0,setId:2,iconIdx:1},{icon:{paths:["M511.987 16c-149.541 0-272.515 116.646-272.515 261.345s122.974 261.318 272.515 261.318c149.541 0 272.54-116.619 272.54-261.318s-123-261.345-272.54-261.345zM511.987 69.327c122.036 0 219.215 93.514 219.215 208.019s-97.181 207.991-219.215 207.991c-122.036 0-219.189-93.488-219.189-207.991s97.154-208.019 219.189-208.019zM511.987 626.151c-122.143 0-233.304 38.294-314.957 101.757s-134.096 153.351-134.096 253.428c0 14.725 11.937 26.663 26.663 26.663v0c14.725 0 26.663-11.937 26.663-26.663v0c0-81.552 42.225-155.929 113.499-211.327s171.288-90.535 282.227-90.535c110.94 0 210.978 35.138 282.254 90.535s113.499 129.773 113.499 211.327c0 14.725 11.937 26.663 26.663 26.663v0c14.725 0 26.663-11.937 26.663-26.663v0c0-100.079-52.443-189.967-134.096-253.428s-192.841-101.757-314.984-101.757z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["user"],colorPermutations:{}},attrs:[],properties:{order:18,id:11,name:"user",prevSize:32,code:59658},setIdx:0,setId:2,iconIdx:2},{icon:{paths:["M479.562 16.805l-25.249 2.704c-85.122 9.016-168.126 42.381-241.661 97.025-27.458 20.423-75.563 68.53-96.213 96.124-112.624 150.903-131.877 345.585-50.901 514.566 24.618 51.308 53.156 91.118 96.528 134.446 43.329 43.372 83.138 71.911 134.446 96.528 168.936 80.974 363.753 61.632 514.745-51.083 27.458-20.47 75.698-68.711 96.169-96.169 134.086-179.667 134.086-418.804 0-598.47-20.47-27.413-68.666-75.61-96.033-95.944-71.911-53.472-147.656-84.537-235.214-96.44-19.071-2.616-83.365-4.78-96.62-3.292zM571.537 110.494c115.556 17.447 216.593 82.507 281.336 181.201 13.662 20.875 33.498 61.272 42.020 85.663 15.6 44.769 21.866 83.183 21.866 134.357 0 67.314-11.587 118.17-40.442 177.639-31.786 65.555-79.757 120.244-142.157 161.949-35.573 23.806-92.472 47.612-136.114 57.034-25.62 5.722-55.043 8.998-85.231 8.998-96.674 0-185.496-33.609-255.424-89.779l0.796 0.619c-68.215-54.644-119.387-134.806-139.902-219.072-8.387-34.401-11-57.348-11-97.385 0-67.314 11.587-118.17 40.442-177.639 48.209-97.574 131.699-171.591 233.4-206.28l2.851-0.844c31.786-10.504 57.348-15.69 98.288-19.928 14.519-1.488 70.83 0.676 89.27 3.471zM494.621 288.856c-9.882 2.687-17.931 9.133-22.672 17.667l-0.094 0.187c-4.012 7.484-4.012 7.935-4.508 110.821-0.36 66.771 0.136 105.727 1.352 110.19 4.735 17.674 17.764 27.322 38.638 28.674 21.866 1.397 36.204-4.915 44.365-19.523l4.508-8.025v-214.608l-4.012-7.528c-2.526-4.494-5.734-8.293-9.532-11.395l-0.071-0.056c-11.903-8.52-32.507-11.227-47.972-6.403zM494.621 649.453c-17.764 5.816-25.925 17.223-27.277 38.097-1.397 21.687 4.959 36.025 19.523 44.184 6.988 3.923 10.235 4.508 25.158 4.508 14.067 0 18.395-0.721 24.346-3.876 14.698-7.935 20.739-19.611 20.739-40.306 0-28.99-12.939-42.922-41.344-44.365-8.567-0.452-16.455 0.224-21.146 1.759z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["alert-circle"]},attrs:[{}],properties:{order:3,id:9,name:"alert-circle",prevSize:32,code:59648},setIdx:0,setId:2,iconIdx:3},{icon:{paths:["M86.74 248.039c-13.743 7.271-32.022 25.885-39.226 39.959-3.593 6.962-5.699 15.194-5.699 23.918 0 8.777 2.132 17.053 5.906 24.343l-0.14-0.295c8.339 16.68 423.485 431.822 440.161 440.161 7.050 3.626 15.386 5.753 24.216 5.753s17.166-2.127 24.519-5.894l-0.303 0.141c16.68-8.339 431.822-423.485 440.161-440.161 11.741-23.549 5.737-47.899-17.345-70.981-22.684-22.684-48.099-28.753-71.58-17.012-7.472 3.734-71.38 65.711-193.329 187.392l-182.121 181.854-182.121-181.854c-121.949-121.682-185.858-183.656-193.329-187.392-7.274-3.457-15.806-5.475-24.812-5.475-9.058 0-17.641 2.042-25.313 5.692l0.355-0.152z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["chevron-down"]},attrs:[{}],properties:{order:4,id:8,name:"chevron-down",prevSize:32,code:59649},setIdx:0,setId:2,iconIdx:4},{icon:{paths:["M696.431 22.299c-16.683 8.519-455.166 447.703-463.259 463.964-3.67 7.465-5.925 16.214-6.192 25.461l-0.002 0.092c0 7.814 2.463 18.021 6.195 25.553 8.798 17.599 446.859 455.657 464.458 464.458 24.848 12.388 50.544 6.053 74.898-18.302 24.426-24.426 30.692-50.050 18.302-74.898-4.434-8.729-63.566-69.902-198.087-204.633l-191.892-192.174 191.892-192.174c134.521-134.733 193.654-195.904 198.087-204.633 12.388-24.848 6.124-50.472-18.302-74.898-23.934-23.934-51.6-30.411-76.097-17.811z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["chevron-left"]},attrs:[{}],properties:{order:5,id:7,name:"chevron-left",prevSize:32,code:59650},setIdx:0,setId:2,iconIdx:5},{icon:{paths:["M274.397 21.85c-14.506 7.676-33.802 27.323-41.407 42.182-3.793 7.347-6.016 16.037-6.016 25.248 0 9.265 2.25 18.003 6.233 25.699l-0.148-0.312c4.436 8.732 63.589 69.927 198.164 204.713l191.967 192.248-191.967 192.248c-134.573 134.785-193.727 195.98-198.164 204.713-12.393 24.858-6.126 50.492 18.309 74.927 24.366 24.366 50.068 30.704 74.927 18.309 17.606-8.802 455.833-447.031 464.636-464.636 3.671-7.468 5.928-16.22 6.194-25.472l0.002-0.092c-0.268-9.341-2.525-18.096-6.36-25.936l0.164 0.373c-8.522-17.112-446.96-455.833-464.002-464.284-7.679-3.647-16.687-5.779-26.192-5.779-9.563 0-18.623 2.157-26.72 6.009l0.376-0.161z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["chevron-right"]},attrs:[{}],properties:{order:6,id:6,name:"chevron-right",prevSize:32,code:59651},setIdx:0,setId:2,iconIdx:6},{icon:{paths:["M122.87 145.282c-45.789 7.741-83.47 41.162-97.682 86.706l-3.85 12.287v535.715l3.85 12.287c12.591 40.186 43.612 71.207 82.901 83.554l0.897 0.243 12.287 3.85h781.455l12.287-3.85c40.186-12.591 71.207-43.612 83.554-82.901l0.243-0.897 3.85-12.287v-535.715l-3.85-12.287c-12.527-39.881-43.174-70.717-82.042-83.262l-0.897-0.25-13.147-4.136-385.813-0.246c-212.197-0.122-389.54 0.41-394.045 1.187zM893.308 227.933c6.274 1.981 11.613 5.404 15.833 9.892l0.019 0.020c12.122 12.122 12.41 14.212 12.41 87.812v63.606h-819.135v-63.606c0-73.641 0.287-75.688 12.451-87.812 4.087-4.335 9.153-7.7 14.847-9.746l0.265-0.083c6.554-2.006 60.903-2.375 381.308-2.458 329.949-0.122 374.59 0.163 382.004 2.375zM921.568 616.736c0 157.93 0.205 154.324-9.051 166.448-2.499 3.277-7.945 7.986-12.082 10.403l-7.536 4.424h-761.796l-7.536-4.424c-4.601-2.832-8.531-6.217-11.861-10.129l-0.058-0.069c-9.543-12.532-9.216-6.511-9.216-165.793v-146.42h819.135v145.56z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["credit-card"]},attrs:[{}],properties:{order:7,id:5,name:"credit-card",prevSize:32,code:59652},setIdx:0,setId:2,iconIdx:7},{icon:{paths:["M492.829 18.619c-10.883 2.958-19.748 10.059-24.973 19.459l-0.104 0.207-4.42 8.292-0.545 247.21-0.497 247.258-85.911-85.614c-55.718-55.57-88.793-87.104-94.207-89.835-17.481-8.74-36.402-4.222-53.286 12.664-17.232 17.232-21.653 35.309-12.863 52.839 3.029 6.107 42.559 47.177 128.818 133.984 68.432 68.879 126.138 127.775 128.223 130.854 5.065 7.649 27.064 17.529 38.934 17.529s33.869-9.884 38.934-17.529c2.085-3.078 59.792-61.975 128.223-130.854 86.261-86.806 125.79-127.875 128.818-133.984 8.789-17.529 4.371-35.607-12.863-52.839-16.886-16.886-35.805-21.404-53.286-12.664-5.414 2.732-38.487 34.265-94.207 89.835l-85.863 85.565-1.092-494.419-4.42-8.292c-2.783-4.951-6.316-9.135-10.5-12.553l-0.078-0.062c-13.111-9.387-35.805-12.366-52.839-7.052zM45.887 614.542c-10.883 2.958-19.748 10.059-24.973 19.459l-0.104 0.207-4.42 8.292v244.328l4.669 14.899c9.139 29.298 24.583 52.293 49.412 73.547 14.004 12.017 32.33 21.901 52.193 28.058l14.899 4.669h748.876l14.899-4.669c48.726-15.268 86.337-52.879 101.311-100.52l0.294-1.085 4.669-14.899v-244.328l-4.519-8.442c-8.194-15.396-27.808-23.838-50.406-21.801-21.603 1.987-36.402 13.060-41.367 30.988-1.242 4.42-2.035 48.816-2.035 114.666 0 116.601-0.15 118.588-10.975 132.792-3.029 3.973-9.634 9.684-14.651 12.614l-9.139 5.363h-725.040l-9.139-5.363c-9.66-5.925-17.262-14.373-22.001-24.433l-0.147-0.346c-1.837-4.172-2.732-34.762-3.477-120.823-0.993-114.418-1.043-115.261-5.414-123.505-2.783-4.951-6.316-9.135-10.5-12.553l-0.078-0.062c-13.111-9.387-35.805-12.366-52.839-7.052z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["download"]},attrs:[{}],properties:{order:8,id:4,name:"download",prevSize:32,code:59653},setIdx:0,setId:2,iconIdx:8},{icon:{paths:["M794.006 17.661l-151.696 1.040-9.863 5.054c-16.85 8.673-23.837 23.986-22.3 48.666 1.437 22.747 11.943 37.069 31.023 42.371 4.362 1.239 44.353 2.031 101.345 2.031h94.11l-234.158 234.406c-167.702 167.801-235.446 236.884-238.618 243.178-8.721 17.494-4.311 35.583 12.884 52.728 17.147 17.197 35.236 21.607 52.728 12.884 6.293-3.172 75.377-70.917 243.178-238.618l234.406-234.158v94.11c0 56.992 0.793 96.984 2.031 101.345 5.301 19.080 19.624 29.586 42.371 31.023 24.034 1.536 39.794-5.402 48.764-21.459l4.956-8.822 1.337-156.601c0.743-86.13 1.389-159.525 1.487-163.094 0.199-9.367-10.010-30.676-17.197-35.781-11.101-7.88-24.034-12.29-34.839-11.796-5.65 0.247-78.549 0.942-161.954 1.487zM138.857 168.514c-55.307 9.267-100.999 49.804-118.194 104.912l-4.659 14.867v598.654l4.659 14.867c15.235 48.626 52.77 86.159 100.311 101.101l1.085 0.293 14.867 4.659h598.654l14.867-4.659c48.626-15.235 86.159-52.77 101.101-100.311l0.293-1.085 4.659-14.867v-342.936l-4.51-8.424c-8.177-15.363-27.751-23.787-50.3-21.756-21.557 1.983-36.326 13.034-41.281 30.924-1.288 4.558-2.031 65.068-2.031 163.985 0 170.081 0.149 167.504-10.951 182.074-3.023 3.964-9.614 9.664-14.62 12.587l-9.119 5.353h-574.865l-9.119-5.353c-5.567-3.428-10.323-7.523-14.351-12.254l-0.070-0.086c-11.796-15.463-11.15 1.585-11.15-302.349 0-314.194-1.090-292.092 15.016-308.198 15.61-15.61 8.177-15.016 186.040-15.016 98.917 0 159.377-0.743 163.935-2.031 11.026-3.042 20.021-10.196 25.414-19.667l0.108-0.206c4.311-7.73 4.956-11.2 4.906-27.653-0.050-21.459-4.014-31.964-14.916-39.696-13.925-9.911-13.034-9.863-185.048-9.614-88.411 0.098-165.274 0.991-170.726 1.884z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["external-link"]},attrs:[{}],properties:{order:9,id:3,name:"external-link",prevSize:32,code:59654},setIdx:0,setId:2,iconIdx:9},{icon:{paths:["M37.011 21.092c-7.44 4.919-15.211 13.392-19.096 20.832-2.893 5.497-2.397 26.205 0.744 32.446 1.488 2.893 43.936 46.623 94.363 97.173l91.676 91.883-22.072 19.881c-55.882 50.302-111.391 120.526-152.394 192.652-19.923 35.091-19.551 40.216 6.572 83.906 22.981 38.439 50.839 77.582 81.963 114.987 17.277 20.832 68.571 72.374 88.204 88.659 77.664 64.52 156.486 101.967 243.863 115.938 29.181 4.671 84.691 4.919 114.905 0.537 64.774-9.256 123.081-30.451 174.918-61.366l-2.146 1.186 14.053-8.391 95.891 95.643c52.74 52.575 98.289 96.801 101.182 98.289 3.431 1.695 9.589 2.645 17.484 2.645 10.871 0 13.061-0.579 19.881-5.084 7.44-4.919 15.211-13.392 19.096-20.832 1.033-1.984 1.901-9.135 1.901-15.872 0-10.788-0.579-13.061-4.877-19.509-6.696-10.003-922.132-924.736-928.745-928.042-3.431-1.695-9.631-2.645-17.484-2.645-10.871 0-13.061 0.579-19.881 5.084zM483.073 140.957c-38.77 3.885-70.679 9.879-81.384 15.335-17.443 8.928-22.651 27.611-14.467 51.748 3.431 9.961 12.565 20.501 19.964 22.94 7.233 2.397 20.584 2.356 31.413-0.083 21.828-4.99 46.894-7.847 72.629-7.847 24.765 0 48.908 2.647 72.168 7.674l-2.239-0.405c112.673 22.94 225.345 110.358 314.128 243.697 27.404 41.126 25.833 34.802 13.681 54.89-18.486 29.629-36.424 54.854-55.698 78.967l1.263-1.635c-15.665 19.427-20.419 28.396-20.419 38.728 0 9.961 3.844 17.897 13.020 26.825 15.789 15.335 32.074 19.179 47.078 10.995 16.285-8.845 62.164-70.431 96.553-129.578 23.188-39.844 23.064-44.267-2.356-87.212-37.302-62.647-79.77-116.755-128.241-164.821l-0.056-0.055c-52.906-52.864-96.015-84.608-154.667-113.789-47.987-23.891-92.875-37.778-142.185-43.978-14.921-1.901-69.067-3.472-80.186-2.397zM363.497 436.278c-7.027 12.235-16.161 40.547-18.6 57.411-2.273 15.748-1.281 38.026 2.439 55.51 13.81 64.070 63.4 113.659 126.385 127.273l1.085 0.197c36.992 7.853 73.986 2.976 109.035-14.467l13.144-6.531 95.767 95.767-18.145 9.093c-55.551 27.859-106.762 40.010-167.562 39.762-34.884-0.124-55.51-2.852-85.146-11.325-108.953-31.041-213.029-116.558-296.355-243.491-23.767-36.207-22.609-30.421-10.209-50.798 36.103-58.15 77.662-108.281 125.123-152.115l0.487-0.445 22.196-20.295 105.481 105.481-5.125 8.969zM482.99 541.677c28.148 28.189 50.839 51.5 50.426 51.872-2.371 0.956-5.22 1.825-8.155 2.456l-0.358 0.065c-32.694 8.019-71.795-10.664-88.618-42.324-7.068-13.309-10.871-31.165-9.424-44.226s2.645-19.013 3.927-19.013c0.579 0 24.097 23.023 52.203 51.17z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["eye-off"]},attrs:[{}],properties:{order:10,id:2,name:"eye-off",prevSize:32,code:59655},setIdx:0,setId:2,iconIdx:10},{icon:{paths:["M476.812 145.058c-91.938 8.183-178.844 45.99-262.682 114.237-22.013 17.88-73.24 69.23-93.411 93.576-27.898 33.332-54.401 70.307-78.054 109.206l-2.265 4.009c-25.408 43.004-25.408 48.075 0 91.079 26.595 43.828 53.754 81.602 83.511 117.127l-1.187-1.456c17.103 20.621 67.881 71.644 87.316 87.765 95.252 79.132 196.848 119.231 301.963 119.231 101.186 0 199.262-37.274 291.528-110.8 24.55-19.599 77.168-71.317 97.789-96.194 28.531-34.062 55.678-71.838 79.947-111.56l2.335-4.112c25.408-43.004 25.408-48.075 0-91.079-36.927-62.014-78.968-115.578-126.948-163.159l-0.056-0.055c-52.373-52.333-95.049-83.755-153.109-112.642-47.258-23.526-92.471-37.52-140.752-43.534-19.762-2.456-66.611-3.355-85.924-1.636zM542.401 226.93c113.297 11.048 221.112 79.46 315.996 200.613 12.97 16.572 49.221 69.557 54.46 79.622 2.865 5.524 3.109 4.991-18.289 37.602-76.268 116.162-173.648 200.285-270.457 233.633-36.375 12.521-63.503 17.677-100.654 19.107-41.858 1.595-75.777-3.436-118.575-17.634-99.877-33.061-197.545-116.447-275.448-235.106-21.4-32.57-21.154-32.118-18.289-37.561 5.319-10.106 35.598-54.828 49.058-72.503 112.439-147.544 247.339-220.865 382.198-207.772zM485.731 350.456c-46.153 7.2-90.63 37.358-114.115 77.413-14.495 23.907-23.073 52.8-23.073 83.696 0 68.318 41.943 126.839 101.484 151.218l1.089 0.394c18.045 7.475 38.999 11.817 60.968 11.817 68.256 0 126.725-41.91 151.074-101.401l0.393-1.088c7.497-18.004 11.851-38.921 11.851-60.853 0-21.895-4.34-42.775-12.205-61.827l0.393 1.079c-21.587-53.034-68.85-91.572-125.925-100.454l-0.915-0.116c-7.561-1.328-16.266-2.088-25.149-2.088-9.141 0-18.093 0.805-26.792 2.346l0.92-0.135zM533.4 432.78c30.737 8.794 53.801 34.225 59.016 65.681l0.066 0.48c4.092 26.718-3.846 50.859-23.077 70.131-16.407 16.489-35.024 24.386-57.404 24.386-21.072 0-39.361-7.284-55.114-21.891-54.418-50.572-18.985-141.571 55.114-141.571 5.851 0 15.467 1.268 21.4 2.782z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["eye"]},attrs:[{}],properties:{order:11,id:1,name:"eye",prevSize:32,code:59656},setIdx:0,setId:2,iconIdx:11},{icon:{paths:["M481.28 43.648l-23.893 2.56c-80.555 8.533-159.104 40.107-228.693 91.819-25.984 19.328-71.509 64.853-91.051 90.965-106.581 142.805-124.8 327.040-48.171 486.955 23.296 48.555 50.304 86.229 91.349 127.232 41.003 41.045 78.677 68.053 127.232 91.349 159.872 76.629 344.235 58.325 487.125-48.341 25.984-19.371 71.637-65.024 91.008-91.008 126.891-170.027 126.891-396.331 0-566.357-19.371-25.941-64.981-71.552-90.88-90.795-68.053-50.603-139.733-80-222.592-91.264-18.048-2.475-78.891-4.523-91.435-3.115zM568.32 132.309c109.355 16.512 204.971 78.080 266.24 171.477 12.928 19.755 31.701 57.984 39.765 81.067 14.763 42.368 20.693 78.72 20.693 127.147 0 63.701-10.965 111.829-38.272 168.107-30.080 62.037-75.477 113.792-134.528 153.259-33.664 22.528-87.509 45.056-128.811 53.973-24.244 5.414-52.089 8.515-80.658 8.515-91.486 0-175.543-31.805-241.717-84.962l0.754 0.586c-64.555-51.712-112.981-127.573-132.395-207.317-7.936-32.555-10.411-54.272-10.411-92.16 0-63.701 10.965-111.829 38.272-168.107 45.622-92.339 124.633-162.383 220.876-195.211l2.698-0.799c30.080-9.941 54.272-14.848 93.013-18.859 13.739-1.408 67.029 0.64 84.48 3.285zM482.133 257.792c-22.357 3.456-48.768 14.165-70.827 28.715-38.101 25.131-71.424 80-66.261 109.184 2.56 14.72 15.104 25.173 36.309 30.421 9.771 2.389 12.843 2.517 19.499 0.768 11.392-3.029 20.821-12.971 27.563-28.928 6.741-16.085 12.8-25.003 23.509-34.645 26.325-23.68 61.141-28.501 94.208-13.013 14.848 6.955 31.744 24.021 38.997 39.381 6.059 12.843 9.643 32.128 8.021 43.093-4.096 27.221-38.699 56.917-92.288 79.232-31.019 12.885-39.424 24.107-34.944 46.805 5.675 28.8 22.997 43.221 46.421 38.613 24.832-4.907 68.651-26.965 97.451-49.109 49.365-37.973 71.595-80.213 68.949-130.987-2.261-43.136-18.731-79.957-49.749-111.189-21.063-21.482-47.858-37.271-77.909-44.894l-1.152-0.248c-15.317-3.968-51.925-5.675-67.797-3.2zM495.531 685.013c-16.811 5.504-24.533 16.299-25.813 36.053-1.323 20.523 4.693 34.091 18.475 41.813 6.613 3.712 9.685 4.267 23.808 4.267 13.312 0 17.408-0.683 23.040-3.669 13.909-7.509 19.627-18.56 19.627-38.144 0-27.435-12.245-40.619-39.125-41.984-8.107-0.427-15.573 0.213-20.011 1.664z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["help-circle"]},attrs:[{}],properties:{order:12,id:0,name:"help-circle",prevSize:32,code:59657},setIdx:0,setId:2,iconIdx:12}],height:1024,metadata:{name:"icomoon"},preferences:{showGlyphs:!0,showQuickUse:!0,showQuickUse2:!0,showSVGs:!0,fontPref:{prefix:"icon-",metadata:{fontFamily:"icomoon"},metrics:{emSize:1024,baseline:6.25,whitespace:50},embed:!1},imagePref:{prefix:"icon-",png:!0,useClassSelector:!0,color:0,bgColor:16777215,classSelector:".icon",name:"icomoon"},historySize:50,showCodes:!0,gridSize:16,showGrid:!1}}).icons.map(e=>e.properties.name).reduce((e,t)=>(e[t]=t,e),{});const Io={prefix:String(Math.round(Math.random()*1e10)),current:0},Tc=f.createContext(Io),Am=f.createContext(!1);let Om=!!(typeof window<"u"&&window.document&&window.document.createElement),us=new WeakMap;function Nm(e=!1){let t=f.useContext(Tc),r=f.useRef(null);if(r.current===null&&!e){var n,o;let a=(o=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(a){let s=us.get(a);s==null?us.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==s.state&&(t.current=s.id,us.delete(a))}r.current=++t.current}return r.current}function Lm(e){let t=f.useContext(Tc);t===Io&&!Om&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=Nm(!!e),n=t===Io&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${n}-${r}`}function jm(e){let t=f.useId(),[r]=f.useState(Ec()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Io.prefix}`;return e||`${n}-${t}`}const _m=typeof f.useId=="function"?jm:Lm;function Fm(){return!1}function Vm(){return!0}function zm(e){return()=>{}}function Ec(){return typeof f.useSyncExternalStore=="function"?f.useSyncExternalStore(zm,Fm,Vm):f.useContext(Am)}function Wm(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Bm(e,t,r){Wm(e,t),t.set(e,r)}function _r(e,t,r){let[n,o]=f.useState(e||t),a=f.useRef(e!==void 0),s=e!==void 0;f.useEffect(()=>{let c=a.current;c!==s&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s},[s]);let i=s?e:n,l=f.useCallback((c,...u)=>{let d=(h,...p)=>{r&&(Object.is(i,h)||r(h,...p)),s||(i=h)};typeof c=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((p,...m)=>{let y=c(s?i:p,...m);return d(y,...u),s?p:y})):(s||o(c),d(c,...u))},[s,i,r]);return[i,l]}const kt=typeof document<"u"?f.useLayoutEffect:()=>{};function We(e){const t=f.useRef(null);return kt(()=>{t.current=e},[e]),f.useCallback((...r)=>{const n=t.current;return n(...r)},[])}function Rm(e){let[t,r]=f.useState(e),n=f.useRef(null),o=We(()=>{let s=n.current.next();if(s.done){n.current=null;return}t===s.value?o():r(s.value)});kt(()=>{n.current&&o()});let a=We(s=>{n.current=s(t),o()});return[t,a]}let Km=!!(typeof window<"u"&&window.document&&window.document.createElement),ko=new Map;function Fr(e){let[t,r]=f.useState(e),n=f.useRef(null),o=_m(t),a=f.useCallback(s=>{n.current=s},[]);return Km&&ko.set(o,a),kt(()=>{let s=o;return()=>{ko.delete(s)}},[o]),f.useEffect(()=>{let s=n.current;s&&(n.current=null,r(s))}),o}function Um(e,t){if(e===t)return e;let r=ko.get(e);if(r)return r(t),t;let n=ko.get(t);return n?(n(e),e):t}function Sc(e=[]){let t=Fr(),[r,n]=Rm(t),o=f.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return kt(o,[t,o,...e]),r}function dr(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const Ct=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Pn=e=>e&&"window"in e&&e.window===e?e:Ct(e).defaultView||window;function se(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let a=t[o],s=n[o];typeof a=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=dr(a,s):(o==="className"||o==="UNSAFE_className")&&typeof a=="string"&&typeof s=="string"?t[o]=$o(a,s):o==="id"&&a&&s?t.id=Um(a,s):t[o]=s!==void 0?s:a}}return t}const Hm=new Set(["id"]),Ym=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Gm=new Set(["href","target","rel","download","ping","referrerPolicy"]),qm=/^(data-.*)$/;function Vr(e,t={}){let{labelable:r,isLink:n,propNames:o}=t,a={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(Hm.has(s)||r&&Ym.has(s)||n&&Gm.has(s)||o!=null&&o.has(s)||qm.test(s))&&(a[s]=e[s]);return a}function tt(e){if(Qm())e.focus({preventScroll:!0});else{let t=Xm(e);e.focus(),Zm(t)}}let Ao=null;function Qm(){if(Ao==null){Ao=!1;try{var e=document.createElement("div");e.focus({get preventScroll(){return Ao=!0,!0}})}catch{}}return Ao}function Xm(e){for(var t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function Zm(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function Oo(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function ds(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 Gt(){return ds(/^Mac/i)}function Jm(){return ds(/^iPhone/i)}function $c(){return ds(/^iPad/i)||Gt()&&navigator.maxTouchPoints>1}function Mn(){return Jm()||$c()}function eg(){return Gt()||Mn()}function tg(){return Oo(/AppleWebKit/i)&&!rg()}function rg(){return Oo(/Chrome/i)}function Dc(){return Oo(/Android/i)}function ng(){return Oo(/Firefox/i)}const og=f.createContext({isNative:!0,open:sg});function Ic(){return f.useContext(og)}function At(e,t,r=!0){var n,o;let{metaKey:a,ctrlKey:s,altKey:i,shiftKey:l}=t;ng()&&(!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key"))&&e.target==="_blank"&&(Gt()?a=!0:s=!0);let c=tg()&&Gt()&&!$c()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:s,altKey:i,shiftKey:l}):new MouseEvent("click",{metaKey:a,ctrlKey:s,altKey:i,shiftKey:l,bubbles:!0,cancelable:!0});At.isOpening=r,tt(e),e.dispatchEvent(c),At.isOpening=!1}At.isOpening=!1;function ag(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function sg(e,t){ag(e,r=>At(r,t))}let zr=new Map,fs=new Set;function kc(){if(typeof window>"u")return;let e=r=>{let n=zr.get(r.target);n||(n=new Set,zr.set(r.target,n),r.target.addEventListener("transitioncancel",t)),n.add(r.propertyName)},t=r=>{let n=zr.get(r.target);if(n&&(n.delete(r.propertyName),n.size===0&&(r.target.removeEventListener("transitioncancel",t),zr.delete(r.target)),zr.size===0)){for(let o of fs)o();fs.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?kc():document.addEventListener("DOMContentLoaded",kc));function ps(e){requestAnimationFrame(()=>{zr.size===0?e():fs.add(e)})}function hs(){let e=f.useRef(new Map),t=f.useCallback((o,a,s,i)=>{let l=i!=null&&i.once?(...c)=>{e.current.delete(s),s(...c)}:s;e.current.set(s,{type:a,eventTarget:o,fn:l,options:i}),o.addEventListener(a,s,i)},[]),r=f.useCallback((o,a,s,i)=>{var l;let c=((l=e.current.get(s))===null||l===void 0?void 0:l.fn)||s;o.removeEventListener(a,c,i),e.current.delete(s)},[]),n=f.useCallback(()=>{e.current.forEach((o,a)=>{r(o.eventTarget,o.type,a,o.options)})},[r]);return f.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function ms(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=Fr(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}function gs(e,t){kt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}})}function Ac(e,t){for(Oc(e,t)&&(e=e.parentElement);e&&!Oc(e,t);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function Oc(e,t){let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}let ig=0;const vs=new Map;function lg(e){let[t,r]=f.useState(void 0);return kt(()=>{if(!e)return;let n=vs.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${ig++}`;r(o);let a=document.createElement("div");a.id=o,a.style.display="none",a.textContent=e,document.body.appendChild(a),n={refCount:0,element:a},vs.set(e,n)}return n.refCount++,()=>{--n.refCount===0&&(n.element.remove(),vs.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function cg(e,t,r,n){let o=We(r),a=r==null;f.useEffect(()=>{if(a)return;let s=e.current;return s.addEventListener(t,o,n),()=>{s.removeEventListener(t,o,n)}},[e,t,n,a,o])}function Nc(e,t){let r=Lc(e,t,"left"),n=Lc(e,t,"top"),o=t.offsetWidth,a=t.offsetHeight,s=e.scrollLeft,i=e.scrollTop,{borderTopWidth:l,borderLeftWidth:c}=getComputedStyle(e),u=e.scrollLeft+parseInt(c,10),d=e.scrollTop+parseInt(l,10),h=u+e.clientWidth,p=d+e.clientHeight;r<=s?s=r-parseInt(c,10):r+o>h&&(s+=r+o-h),n<=d?i=n-parseInt(l,10):n+a>p&&(i+=n+a-p),e.scrollLeft=s,e.scrollTop=i}function Lc(e,t,r){const n=r==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[n];break}t=t.offsetParent}return o}function jc(e,t){if(document.contains(e)){let s=document.scrollingElement||document.documentElement;if(window.getComputedStyle(s).overflow==="hidden"){let l=Ac(e);for(;e&&l&&e!==s&&l!==s;)Nc(l,e),e=l,l=Ac(e)}else{var r;let{left:l,top:c}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:u,top:d}=e.getBoundingClientRect();if(Math.abs(l-u)>1||Math.abs(c-d)>1){var n,o,a;t==null||(o=t.containingElement)===null||o===void 0||(n=o.scrollIntoView)===null||n===void 0||n.call(o,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function Tn(e){return e.mozInputSource===0&&e.isTrusted?!0:Dc()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function _c(e){return!Dc()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function bs(e,t,r){let n=f.useRef(t),o=We(()=>{r&&r(n.current)});f.useEffect(()=>{var a;let s=e==null||(a=e.current)===null||a===void 0?void 0:a.form;return s==null||s.addEventListener("reset",o),()=>{s==null||s.removeEventListener("reset",o)}},[e,o])}const ug=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),dg=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function fg(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return ug.has(r.script)}let t=e.split("-")[0];return dg.has(t)}const pg=Symbol.for("react-aria.i18n.locale");function Fc(){let e=typeof window<"u"&&window[pg]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:fg(e)?"rtl":"ltr"}}let ys=Fc(),En=new Set;function Vc(){ys=Fc();for(let e of En)e(ys)}function hg(){let e=Ec(),[t,r]=f.useState(ys);return f.useEffect(()=>(En.size===0&&window.addEventListener("languagechange",Vc),En.add(r),()=>{En.delete(r),En.size===0&&window.removeEventListener("languagechange",Vc)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const mg=f.createContext(null);function xs(){let e=hg();return f.useContext(mg)||e}var Pt=function(){return Pt=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Pt.apply(this,arguments)};function zc(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function gg(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function vg(e,t){return t.get?t.get.call(e):t.value}function Wc(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function bg(e,t){var r=Wc(e,t,"get");return vg(e,r)}function yg(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function Bc(e,t,r){var n=Wc(e,t,"set");return yg(e,n,r),r}let Wr="default",ws="",No=new WeakMap;function Rc(e){if(Mn()){if(Wr==="default"){const t=Ct(e);ws=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Wr="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(No.set(e,e.style.userSelect),e.style.userSelect="none")}function Lo(e){if(Mn()){if(Wr!=="disabled")return;Wr="restoring",setTimeout(()=>{ps(()=>{if(Wr==="restoring"){const t=Ct(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=ws||""),ws="",Wr="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&No.has(e)){let t=No.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),No.delete(e)}}const Kc=f.createContext({register:()=>{}});Kc.displayName="PressResponderContext";function xg(e){let t=f.useContext(Kc);if(t){let{register:r,...n}=t;e=se(n,e),r()}return gs(t,e.ref),e}var jo=new WeakMap;class _o{continuePropagation(){Bc(this,jo,!1)}get shouldStopPropagation(){return bg(this,jo)}constructor(t,r,n){Bm(this,jo,{writable:!0,value:void 0}),Bc(this,jo,!0),this.type=t,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey}}const Uc=Symbol("linkClicked");function fr(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:a,isDisabled:s,isPressed:i,preventFocusOnPress:l,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:u,ref:d,...h}=xg(e),[p,m]=f.useState(!1),y=f.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:b,removeAllGlobalListeners:C}=hs(),x=We((g,A)=>{let I=y.current;if(s||I.didFirePressStart)return!1;let T=!0;if(I.isTriggeringEvent=!0,n){let D=new _o("pressstart",A,g);n(D),T=D.shouldStopPropagation}return r&&r(!0),I.isTriggeringEvent=!1,I.didFirePressStart=!0,m(!0),T}),P=We((g,A,I=!0)=>{let T=y.current;if(!T.didFirePressStart)return!1;T.ignoreClickAfterPress=!0,T.didFirePressStart=!1,T.isTriggeringEvent=!0;let D=!0;if(o){let w=new _o("pressend",A,g);o(w),D=w.shouldStopPropagation}if(r&&r(!1),m(!1),t&&I&&!s){let w=new _o("press",A,g);t(w),D&&(D=w.shouldStopPropagation)}return T.isTriggeringEvent=!1,D}),E=We((g,A)=>{let I=y.current;if(s)return!1;if(a){I.isTriggeringEvent=!0;let T=new _o("pressup",A,g);return a(T),I.isTriggeringEvent=!1,T.shouldStopPropagation}return!0}),S=We(g=>{let A=y.current;A.isPressed&&A.target&&(A.isOverTarget&&A.pointerType!=null&&P(Ot(A.target,g),A.pointerType,!1),A.isPressed=!1,A.isOverTarget=!1,A.activePointerId=null,A.pointerType=null,C(),u||Lo(A.target))}),N=We(g=>{c&&S(g)}),L=f.useMemo(()=>{let g=y.current,A={onKeyDown(T){if(Ps(T.nativeEvent,T.currentTarget)&&T.currentTarget.contains(T.target)){var D;Yc(T.target,T.key)&&T.preventDefault();let w=!0;!g.isPressed&&!T.repeat&&(g.target=T.currentTarget,g.isPressed=!0,w=x(T,"keyboard"),b(Ct(T.currentTarget),"keyup",I,!1)),w&&T.stopPropagation(),T.metaKey&&Gt()&&((D=g.metaKeyEvents)===null||D===void 0||D.set(T.key,T.nativeEvent))}else T.key==="Meta"&&(g.metaKeyEvents=new Map)},onKeyUp(T){Ps(T.nativeEvent,T.currentTarget)&&!T.repeat&&T.currentTarget.contains(T.target)&&g.target&&E(Ot(g.target,T),"keyboard")},onClick(T){if(!(T&&!T.currentTarget.contains(T.target))&&T&&T.button===0&&!g.isTriggeringEvent&&!At.isOpening){let D=!0;if(s&&T.preventDefault(),!g.ignoreClickAfterPress&&!g.ignoreEmulatedMouseEvents&&!g.isPressed&&(g.pointerType==="virtual"||Tn(T.nativeEvent))){!s&&!l&&tt(T.currentTarget);let w=x(T,"virtual"),M=E(T,"virtual"),O=P(T,"virtual");D=w&&M&&O}g.ignoreEmulatedMouseEvents=!1,g.ignoreClickAfterPress=!1,D&&T.stopPropagation()}}},I=T=>{var D;if(g.isPressed&&g.target&&Ps(T,g.target)){var w;Yc(T.target,T.key)&&T.preventDefault();let O=T.target,F=P(Ot(g.target,T),"keyboard",g.target.contains(O));C(),F&&T.stopPropagation(),T.key!=="Enter"&&Cs(g.target)&&g.target.contains(O)&&!T[Uc]&&(T[Uc]=!0,At(g.target,T,!1)),g.isPressed=!1,(w=g.metaKeyEvents)===null||w===void 0||w.delete(T.key)}else if(T.key==="Meta"&&(!((D=g.metaKeyEvents)===null||D===void 0)&&D.size)){var M;let O=g.metaKeyEvents;g.metaKeyEvents=void 0;for(let F of O.values())(M=g.target)===null||M===void 0||M.dispatchEvent(new KeyboardEvent("keyup",F))}};if(typeof PointerEvent<"u"){A.onPointerDown=M=>{if(M.button!==0||!M.currentTarget.contains(M.target))return;if(_c(M.nativeEvent)){g.pointerType="virtual";return}Ms(M.currentTarget)&&M.preventDefault(),g.pointerType=M.pointerType;let O=!0;g.isPressed||(g.isPressed=!0,g.isOverTarget=!0,g.activePointerId=M.pointerId,g.target=M.currentTarget,!s&&!l&&tt(M.currentTarget),u||Rc(g.target),O=x(M,g.pointerType),b(Ct(M.currentTarget),"pointermove",T,!1),b(Ct(M.currentTarget),"pointerup",D,!1),b(Ct(M.currentTarget),"pointercancel",w,!1)),O&&M.stopPropagation()},A.onMouseDown=M=>{M.currentTarget.contains(M.target)&&M.button===0&&(Ms(M.currentTarget)&&M.preventDefault(),M.stopPropagation())},A.onPointerUp=M=>{!M.currentTarget.contains(M.target)||g.pointerType==="virtual"||M.button===0&&Br(M,M.currentTarget)&&E(M,g.pointerType||M.pointerType)};let T=M=>{M.pointerId===g.activePointerId&&(g.target&&Br(M,g.target)?!g.isOverTarget&&g.pointerType!=null&&(g.isOverTarget=!0,x(Ot(g.target,M),g.pointerType)):g.target&&g.isOverTarget&&g.pointerType!=null&&(g.isOverTarget=!1,P(Ot(g.target,M),g.pointerType,!1),N(M)))},D=M=>{M.pointerId===g.activePointerId&&g.isPressed&&M.button===0&&g.target&&(Br(M,g.target)&&g.pointerType!=null?P(Ot(g.target,M),g.pointerType):g.isOverTarget&&g.pointerType!=null&&P(Ot(g.target,M),g.pointerType,!1),g.isPressed=!1,g.isOverTarget=!1,g.activePointerId=null,g.pointerType=null,C(),u||Lo(g.target))},w=M=>{S(M)};A.onDragStart=M=>{M.currentTarget.contains(M.target)&&S(M)}}else{A.onMouseDown=w=>{if(w.button!==0||!w.currentTarget.contains(w.target))return;if(Ms(w.currentTarget)&&w.preventDefault(),g.ignoreEmulatedMouseEvents){w.stopPropagation();return}g.isPressed=!0,g.isOverTarget=!0,g.target=w.currentTarget,g.pointerType=Tn(w.nativeEvent)?"virtual":"mouse",!s&&!l&&tt(w.currentTarget),x(w,g.pointerType)&&w.stopPropagation(),b(Ct(w.currentTarget),"mouseup",T,!1)},A.onMouseEnter=w=>{if(!w.currentTarget.contains(w.target))return;let M=!0;g.isPressed&&!g.ignoreEmulatedMouseEvents&&g.pointerType!=null&&(g.isOverTarget=!0,M=x(w,g.pointerType)),M&&w.stopPropagation()},A.onMouseLeave=w=>{if(!w.currentTarget.contains(w.target))return;let M=!0;g.isPressed&&!g.ignoreEmulatedMouseEvents&&g.pointerType!=null&&(g.isOverTarget=!1,M=P(w,g.pointerType,!1),N(w)),M&&w.stopPropagation()},A.onMouseUp=w=>{w.currentTarget.contains(w.target)&&!g.ignoreEmulatedMouseEvents&&w.button===0&&E(w,g.pointerType||"mouse")};let T=w=>{if(w.button===0){if(g.isPressed=!1,C(),g.ignoreEmulatedMouseEvents){g.ignoreEmulatedMouseEvents=!1;return}g.target&&Br(w,g.target)&&g.pointerType!=null?P(Ot(g.target,w),g.pointerType):g.target&&g.isOverTarget&&g.pointerType!=null&&P(Ot(g.target,w),g.pointerType,!1),g.isOverTarget=!1}};A.onTouchStart=w=>{if(!w.currentTarget.contains(w.target))return;let M=wg(w.nativeEvent);if(!M)return;g.activePointerId=M.identifier,g.ignoreEmulatedMouseEvents=!0,g.isOverTarget=!0,g.isPressed=!0,g.target=w.currentTarget,g.pointerType="touch",!s&&!l&&tt(w.currentTarget),u||Rc(g.target),x(w,g.pointerType)&&w.stopPropagation(),b(Pn(w.currentTarget),"scroll",D,!0)},A.onTouchMove=w=>{if(!w.currentTarget.contains(w.target))return;if(!g.isPressed){w.stopPropagation();return}let M=Hc(w.nativeEvent,g.activePointerId),O=!0;M&&Br(M,w.currentTarget)?!g.isOverTarget&&g.pointerType!=null&&(g.isOverTarget=!0,O=x(w,g.pointerType)):g.isOverTarget&&g.pointerType!=null&&(g.isOverTarget=!1,O=P(w,g.pointerType,!1),N(w)),O&&w.stopPropagation()},A.onTouchEnd=w=>{if(!w.currentTarget.contains(w.target))return;if(!g.isPressed){w.stopPropagation();return}let M=Hc(w.nativeEvent,g.activePointerId),O=!0;M&&Br(M,w.currentTarget)&&g.pointerType!=null?(E(w,g.pointerType),O=P(w,g.pointerType)):g.isOverTarget&&g.pointerType!=null&&(O=P(w,g.pointerType,!1)),O&&w.stopPropagation(),g.isPressed=!1,g.activePointerId=null,g.isOverTarget=!1,g.ignoreEmulatedMouseEvents=!0,g.target&&!u&&Lo(g.target),C()},A.onTouchCancel=w=>{w.currentTarget.contains(w.target)&&(w.stopPropagation(),g.isPressed&&S(w))};let D=w=>{g.isPressed&&w.target.contains(g.target)&&S({currentTarget:g.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};A.onDragStart=w=>{w.currentTarget.contains(w.target)&&S(w)}}return A},[b,s,l,C,u,S,N,P,x,E]);return f.useEffect(()=>()=>{var g;u||Lo((g=y.current.target)!==null&&g!==void 0?g:void 0)},[u]),{isPressed:i||p,pressProps:se(h,L)}}function Cs(e){return e.tagName==="A"&&e.hasAttribute("href")}function Ps(e,t){const{key:r,code:n}=e,o=t,a=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof Pn(o).HTMLInputElement&&!Gc(o,r)||o instanceof Pn(o).HTMLTextAreaElement||o.isContentEditable)&&!((a==="link"||!a&&Cs(o))&&r!=="Enter")}function wg(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Hc(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===t)return o}return null}function Ot(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function Cg(e){let t=0,r=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?r=e.height/2:e.radiusY!==void 0&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function Pg(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Br(e,t){let r=t.getBoundingClientRect(),n=Cg(e);return Pg(r,n)}function Ms(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function Yc(e,t){return e instanceof HTMLInputElement?!Gc(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Cs(e)}const Mg=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Gc(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Mg.has(e.type)}class Tg{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,r){this.nativeEvent=r,this.target=r.target,this.currentTarget=r.currentTarget,this.relatedTarget=r.relatedTarget,this.bubbles=r.bubbles,this.cancelable=r.cancelable,this.defaultPrevented=r.defaultPrevented,this.eventPhase=r.eventPhase,this.isTrusted=r.isTrusted,this.timeStamp=r.timeStamp,this.type=t}}function qc(e){let t=f.useRef({isFocused:!1,observer:null});kt(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=We(n=>{e==null||e(n)});return f.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=n.target,a=s=>{t.current.isFocused=!1,o.disabled&&r(new Tg("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let i=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:i})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:i}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}function Qc(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const a=f.useCallback(l=>{if(l.target===l.currentTarget)return n&&n(l),o&&o(!1),!0},[n,o]),s=qc(a),i=f.useCallback(l=>{l.target===l.currentTarget&&document.activeElement===l.target&&(r&&r(l),o&&o(!0),s(l))},[o,r,s]);return{focusProps:{onFocus:!t&&(r||o||n)?i:void 0,onBlur:!t&&(n||o)?a:void 0}}}let pr=null,Ts=new Set,Xc=!1,hr=!1,Es=!1;const Eg={Tab:!0,Escape:!0};function Fo(e,t){for(let r of Ts)r(e,t)}function Sg(e){return!(e.metaKey||!Gt()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Zc(e){hr=!0,Sg(e)&&(pr="keyboard",Fo("keyboard",e))}function Rr(e){pr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(hr=!0,Fo("pointer",e))}function $g(e){Tn(e)&&(hr=!0,pr="virtual")}function Dg(e){e.target===window||e.target===document||(!hr&&!Es&&(pr="virtual",Fo("virtual",e)),hr=!1,Es=!1)}function Ig(){hr=!1,Es=!0}function Ss(){if(typeof window>"u"||Xc)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){hr=!0,e.apply(this,arguments)},document.addEventListener("keydown",Zc,!0),document.addEventListener("keyup",Zc,!0),document.addEventListener("click",$g,!0),window.addEventListener("focus",Dg,!0),window.addEventListener("blur",Ig,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Rr,!0),document.addEventListener("pointermove",Rr,!0),document.addEventListener("pointerup",Rr,!0)):(document.addEventListener("mousedown",Rr,!0),document.addEventListener("mousemove",Rr,!0),document.addEventListener("mouseup",Rr,!0)),Xc=!0}typeof document<"u"&&(document.readyState!=="loading"?Ss():document.addEventListener("DOMContentLoaded",Ss));function Jc(){return pr!=="pointer"}function $s(){return pr}function kg(e){pr=e,Fo(e,null)}const Ag=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Og(e,t,r){var n;return e=e||(r==null?void 0:r.target)instanceof HTMLInputElement&&!Ag.has(r==null||(n=r.target)===null||n===void 0?void 0:n.type)||(r==null?void 0:r.target)instanceof HTMLTextAreaElement||(r==null?void 0:r.target)instanceof HTMLElement&&(r==null?void 0:r.target.isContentEditable),!(e&&t==="keyboard"&&r instanceof KeyboardEvent&&!Eg[r.key])}function Ng(e,t,r){Ss(),f.useEffect(()=>{let n=(o,a)=>{Og(!!(r!=null&&r.isTextInput),o,a)&&e(Jc())};return Ts.add(n),()=>{Ts.delete(n)}},t)}function Vo(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,a=f.useRef({isFocusWithin:!1}),s=f.useCallback(c=>{a.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(a.current.isFocusWithin=!1,r&&r(c),o&&o(!1))},[r,o,a]),i=qc(s),l=f.useCallback(c=>{!a.current.isFocusWithin&&document.activeElement===c.target&&(n&&n(c),o&&o(!0),a.current.isFocusWithin=!0,i(c))},[n,o,i]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:s}}}let zo=!1,Ds=0;function Is(){zo=!0,setTimeout(()=>{zo=!1},50)}function eu(e){e.pointerType==="touch"&&Is()}function Lg(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",eu):document.addEventListener("touchend",Is),Ds++,()=>{Ds--,!(Ds>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",eu):document.removeEventListener("touchend",Is))}}function mr(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[a,s]=f.useState(!1),i=f.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;f.useEffect(Lg,[]);let{hoverProps:l,triggerHoverEnd:c}=f.useMemo(()=>{let u=(p,m)=>{if(i.pointerType=m,o||m==="touch"||i.isHovered||!p.currentTarget.contains(p.target))return;i.isHovered=!0;let y=p.currentTarget;i.target=y,t&&t({type:"hoverstart",target:y,pointerType:m}),r&&r(!0),s(!0)},d=(p,m)=>{if(i.pointerType="",i.target=null,m==="touch"||!i.isHovered)return;i.isHovered=!1;let y=p.currentTarget;n&&n({type:"hoverend",target:y,pointerType:m}),r&&r(!1),s(!1)},h={};return typeof PointerEvent<"u"?(h.onPointerEnter=p=>{zo&&p.pointerType==="mouse"||u(p,p.pointerType)},h.onPointerLeave=p=>{!o&&p.currentTarget.contains(p.target)&&d(p,p.pointerType)}):(h.onTouchStart=()=>{i.ignoreEmulatedMouseEvents=!0},h.onMouseEnter=p=>{!i.ignoreEmulatedMouseEvents&&!zo&&u(p,"mouse"),i.ignoreEmulatedMouseEvents=!1},h.onMouseLeave=p=>{!o&&p.currentTarget.contains(p.target)&&d(p,"mouse")}),{hoverProps:h,triggerHoverEnd:d}},[t,r,n,o,i]);return f.useEffect(()=>{o&&c({currentTarget:i.target},i.pointerType)},[o]),{hoverProps:l,isHovered:a}}function tu(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(n),t&&r.stopPropagation()}}function jg(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:tu(e.onKeyDown),onKeyUp:tu(e.onKeyUp)}}}const _g=500;function Fg(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:a=_g,accessibilityDescription:s}=e;const i=f.useRef();let{addGlobalListener:l,removeGlobalListener:c}=hs(),{pressProps:u}=fr({isDisabled:t,onPressStart(h){if(h.continuePropagation(),(h.pointerType==="mouse"||h.pointerType==="touch")&&(r&&r({...h,type:"longpressstart"}),i.current=setTimeout(()=>{h.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...h,type:"longpress"}),i.current=void 0},a),h.pointerType==="touch")){let p=m=>{m.preventDefault()};l(h.target,"contextmenu",p,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{c(h.target,"contextmenu",p)},30)},{once:!0})}},onPressEnd(h){i.current&&clearTimeout(i.current),n&&(h.pointerType==="mouse"||h.pointerType==="touch")&&n({...h,type:"longpressend"})}}),d=lg(o&&!t?s:void 0);return{longPressProps:se(u,d)}}function Wo(e){const t=Ct(e);if($s()==="virtual"){let r=t.activeElement;ps(()=>{t.activeElement===r&&e.isConnected&&tt(e)})}else tt(e)}function Vg(e){const t=Pn(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:a}=e.ownerDocument.defaultView;let{display:s,visibility:i}=a(e);o=s!=="none"&&i!=="hidden"&&i!=="collapse"}return o}function zg(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function ru(e,t){return e.nodeName!=="#comment"&&Vg(e)&&zg(e,t)&&(!e.parentElement||ru(e.parentElement,e))}const ks=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],Wg=ks.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";ks.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Bg=ks.join(':not([hidden]):not([tabindex="-1"]),');function nu(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function As(e,t,r){let n=t!=null&&t.tabbable?Bg:Wg,o=Ct(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(a)?NodeFilter.FILTER_REJECT:a.matches(n)&&ru(a)&&(!r||nu(a,r))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}class Os{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null);if(!o)return;let a=new ou({scopeRef:t});o.addChild(a),a.parent=o,this.fastMap.set(t,a),n&&(a.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let n=r.parent;for(let a of this.traverse())a!==r&&r.nodeToRestore&&a.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&nu(a.nodeToRestore,r.scopeRef.current)&&(a.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(a=>n&&n.addChild(a))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new Os;var n;for(let o of this.traverse())r.addTreeNode(o.scopeRef,(n=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&n!==void 0?n:null,o.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new ou({scopeRef:null}),this.fastMap.set(null,this.root)}}class ou{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}new Os;function Mt(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=f.useRef({isFocused:!1,isFocusVisible:t||Jc()}),[a,s]=f.useState(!1),[i,l]=f.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=f.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),u=f.useCallback(p=>{o.current.isFocused=p,s(p),c()},[c]);Ng(p=>{o.current.isFocusVisible=p,c()},[],{isTextInput:r});let{focusProps:d}=Qc({isDisabled:n,onFocusChange:u}),{focusWithinProps:h}=Vo({isDisabled:!n,onFocusWithinChange:u});return{isFocused:a,isFocusVisible:i,focusProps:n?h:d}}let Rg=f.createContext(null);function Kg(e){let t=f.useContext(Rg)||{};gs(t,e);let{ref:r,...n}=t;return n}function Bo(e,t){let{focusProps:r}=Qc(e),{keyboardProps:n}=jg(e),o=se(r,n),a=Kg(t),s=e.isDisabled?{}:a,i=f.useRef(e.autoFocus);return f.useEffect(()=>{i.current&&t.current&&Wo(t.current),i.current=!1},[t]),{focusableProps:se({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}function Ug(e,t){let r=t==null?void 0:t.isDisabled,[n,o]=f.useState(!1);return kt(()=>{if(e!=null&&e.current&&!r){let a=()=>{if(e.current){let i=As(e.current,{tabbable:!0});o(!!i.nextNode())}};a();let s=new MutationObserver(a);return s.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{s.disconnect()}}}),r?!1:n}const au={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Hg(e={}){let{style:t,isFocusable:r}=e,[n,o]=f.useState(!1),{focusWithinProps:a}=Vo({isDisabled:!r,onFocusWithinChange:i=>o(i)}),s=f.useMemo(()=>n?t:t?{...au,...t}:au,[n]);return{visuallyHiddenProps:{...a,style:s}}}function Ns(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...a}=e,{visuallyHiddenProps:s}=Hg(e);return f.createElement(r,se(a,s),t)}function vt(e){return f.forwardRef(e)}var Sn=(e,t,r=!0)=>{if(!t)return[e,{}];const n=t.reduce((o,a)=>a in e?{...o,[a]:e[a]}:o,{});return r?[Object.keys(e).filter(a=>!t.includes(a)).reduce((a,s)=>({...a,[s]:e[s]}),{}),n]:[e,n]},Yg=["0","xs","sm","md","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl","8xl","9xl","1","2","3","3.5","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","20","24","28","32","36","40","44","48","52","56","60","64","72","80","96"],Ls=Yg.map(e=>`unit-${e}`),Ro=["small","medium","large"],rt=(e,t)=>{var r,n,o;return Me(e,{...t,twMerge:(r=t==null?void 0:t.twMerge)!=null?r:!0,twMergeConfig:{...t==null?void 0:t.twMergeConfig,theme:{...(n=t==null?void 0:t.twMergeConfig)==null?void 0:n.theme,opacity:["disabled"],spacing:["divider","unit",...Ls],borderWidth:Ro,borderRadius:Ro},classGroups:{...(o=t==null?void 0:t.twMergeConfig)==null?void 0:o.classGroups,shadow:[{shadow:Ro}],"font-size":[{text:["tiny",...Ro]}],"bg-image":["bg-stripe-gradient"],"min-w":[{"min-w":["unit",...Ls]}],"min-h":[{"min-h":["unit",...Ls]}]}}})},$n=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],Ko=["outline-none","group-data-[focus-visible=true]:z-10","group-data-[focus-visible=true]:ring-2","group-data-[focus-visible=true]:ring-focus","group-data-[focus-visible=true]:ring-offset-2","group-data-[focus-visible=true]:ring-offset-background"],Gg=["outline-none","ring-2","ring-focus","ring-offset-2","ring-offset-background"],js=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],Kr={default:["[&+.border-medium.border-default]:ms-[calc(theme(borderWidth.medium)*-1)]"],primary:["[&+.border-medium.border-primary]:ms-[calc(theme(borderWidth.medium)*-1)]"],secondary:["[&+.border-medium.border-secondary]:ms-[calc(theme(borderWidth.medium)*-1)]"],success:["[&+.border-medium.border-success]:ms-[calc(theme(borderWidth.medium)*-1)]"],warning:["[&+.border-medium.border-warning]:ms-[calc(theme(borderWidth.medium)*-1)]"],danger:["[&+.border-medium.border-danger]:ms-[calc(theme(borderWidth.medium)*-1)]"]},qg={default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},Qg={default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground",foreground:"shadow-lg shadow-foreground/40 bg-foreground text-background"},Xg={default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger",foreground:"bg-transparent border-foreground text-foreground"},Zg={default:"bg-default/40 text-default-foreground",primary:"bg-primary/20 text-primary",secondary:"bg-secondary/20 text-secondary",success:"bg-success/20 text-success-600 dark:text-success",warning:"bg-warning/20 text-warning-600 dark:text-warning",danger:"bg-danger/20 text-danger dark:text-danger-500",foreground:"bg-foreground/10 text-foreground"},Jg={default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger",foreground:"border-default bg-default-100 text-foreground"},e1={default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger",foreground:"bg-transparent text-foreground"},t1={default:"border-default text-default-foreground hover:!bg-default",primary:"border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",secondary:"border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",success:"border-success text-success hover:!text-success-foreground hover:!bg-success",warning:"border-warning text-warning hover:!text-warning-foreground hover:!bg-warning",danger:"border-danger text-danger hover:!text-danger-foreground hover:!bg-danger",foreground:"border-foreground text-foreground hover:!bg-foreground"},B={solid:qg,shadow:Qg,bordered:Xg,flat:Zg,faded:Jg,light:e1,ghost:t1},su=rt({slots:{base:"relative inline-flex flex-col gap-2 items-center justify-center",wrapper:"relative flex",circle1:["absolute","w-full","h-full","rounded-full","animate-spinner-ease-spin","border-2","border-solid","border-t-transparent","border-l-transparent","border-r-transparent"],circle2:["absolute","w-full","h-full","rounded-full","opacity-75","animate-spinner-linear-spin","border-2","border-dotted","border-t-transparent","border-l-transparent","border-r-transparent"],label:"text-foreground dark:text-foreground-dark font-regular"},variants:{size:{sm:{wrapper:"w-5 h-5",circle1:"border-2",circle2:"border-2",label:"text-small"},md:{wrapper:"w-8 h-8",circle1:"border-3",circle2:"border-3",label:"text-medium"},lg:{wrapper:"w-10 h-10",circle1:"border-3",circle2:"border-3",label:"text-large"}},color:{current:{circle1:"border-b-current",circle2:"border-b-current"},white:{circle1:"border-b-white",circle2:"border-b-white"},default:{circle1:"border-b-default",circle2:"border-b-default"},primary:{circle1:"border-b-primary",circle2:"border-b-primary"},secondary:{circle1:"border-b-secondary",circle2:"border-b-secondary"},success:{circle1:"border-b-success",circle2:"border-b-success"},warning:{circle1:"border-b-warning",circle2:"border-b-warning"},danger:{circle1:"border-b-danger",circle2:"border-b-danger"}},labelColor:{foreground:{label:"text-foreground"},primary:{label:"text-primary"},secondary:{label:"text-secondary"},success:{label:"text-success"},warning:{label:"text-warning"},danger:{label:"text-danger"}}},defaultVariants:{size:"md",color:"primary",labelColor:"foreground"}}),iu=rt({slots:{base:"inline-flex",tabList:["flex","p-1","h-fit","gap-2","items-center","flex-nowrap","overflow-x-scroll","scrollbar-hide","bg-default-100"],tab:["z-0","w-full","px-3","py-1","flex","group","relative","justify-center","items-center","outline-none","cursor-pointer","transition-opacity","tap-highlight-transparent","data-[disabled=true]:cursor-not-allowed","data-[disabled=true]:opacity-30","data-[hover-unselected=true]:opacity-disabled",...$n],tabContent:["relative","z-10","text-inherit","whitespace-nowrap","transition-colors","text-default-500","group-data-[selected=true]:text-foreground"],cursor:["absolute","z-0","bg-white"],panel:["py-3","px-1","outline-none",...$n]},variants:{variant:{solid:{cursor:"inset-0"},light:{tabList:"bg-transparent dark:bg-transparent",cursor:"inset-0"},underlined:{tabList:"bg-transparent dark:bg-transparent",cursor:"h-[2px] w-[80%] bottom-0 shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]"},bordered:{tabList:"bg-transparent dark:bg-transparent border-medium border-default-200 shadow-sm",cursor:"inset-0"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{tabList:"rounded-medium",tab:"h-7 text-tiny rounded-small",cursor:"rounded-small"},md:{tabList:"rounded-medium",tab:"h-8 text-small rounded-small",cursor:"rounded-small"},lg:{tabList:"rounded-large",tab:"h-9 text-medium rounded-medium",cursor:"rounded-medium"}},radius:{none:{tabList:"rounded-none",tab:"rounded-none",cursor:"rounded-none"},sm:{tabList:"rounded-medium",tab:"rounded-small",cursor:"rounded-small"},md:{tabList:"rounded-medium",tab:"rounded-small",cursor:"rounded-small"},lg:{tabList:"rounded-large",tab:"rounded-medium",cursor:"rounded-medium"},full:{tabList:"rounded-full",tab:"rounded-full",cursor:"rounded-full"}},fullWidth:{true:{base:"w-full",tabList:"w-full"}},isDisabled:{true:{tabList:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{tab:"transition-none",tabContent:"transition-none"}}},defaultVariants:{color:"default",variant:"solid",size:"md",fullWidth:!1,isDisabled:!1,disableAnimation:!1},compoundVariants:[{variant:["solid","bordered","light"],color:"default",class:{cursor:["bg-background","dark:bg-default","shadow-small"],tabContent:"group-data-[selected=true]:text-default-foreground"}},{variant:["solid","bordered","light"],color:"primary",class:{cursor:B.solid.primary,tabContent:"group-data-[selected=true]:text-primary-foreground"}},{variant:["solid","bordered","light"],color:"secondary",class:{cursor:B.solid.secondary,tabContent:"group-data-[selected=true]:text-secondary-foreground"}},{variant:["solid","bordered","light"],color:"success",class:{cursor:B.solid.success,tabContent:"group-data-[selected=true]:text-success-foreground"}},{variant:["solid","bordered","light"],color:"warning",class:{cursor:B.solid.warning,tabContent:"group-data-[selected=true]:text-warning-foreground"}},{variant:["solid","bordered","light"],color:"danger",class:{cursor:B.solid.danger,tabContent:"group-data-[selected=true]:text-danger-foreground"}},{variant:"underlined",color:"default",class:{cursor:"bg-foreground",tabContent:"group-data-[selected=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{cursor:"bg-primary",tabContent:"group-data-[selected=true]:text-primary"}},{variant:"underlined",color:"secondary",class:{cursor:"bg-secondary",tabContent:"group-data-[selected=true]:text-secondary"}},{variant:"underlined",color:"success",class:{cursor:"bg-success",tabContent:"group-data-[selected=true]:text-success"}},{variant:"underlined",color:"warning",class:{cursor:"bg-warning",tabContent:"group-data-[selected=true]:text-warning"}},{variant:"underlined",color:"danger",class:{cursor:"bg-danger",tabContent:"group-data-[selected=true]:text-danger"}},{disableAnimation:!0,variant:"underlined",class:{tab:["after:content-['']","after:absolute","after:bottom-0","after:h-[2px]","after:w-[80%]","after:opacity-0","after:shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","data-[selected=true]:after:opacity-100"]}},{disableAnimation:!0,color:"default",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-default data-[selected=true]:text-default-foreground"}},{disableAnimation:!0,color:"primary",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-primary data-[selected=true]:text-primary-foreground"}},{disableAnimation:!0,color:"secondary",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-secondary data-[selected=true]:text-secondary-foreground"}},{disableAnimation:!0,color:"success",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-success data-[selected=true]:text-success-foreground"}},{disableAnimation:!0,color:"warning",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-warning data-[selected=true]:text-warning-foreground"}},{disableAnimation:!0,color:"danger",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-danger data-[selected=true]:text-danger-foreground"}},{disableAnimation:!0,color:"default",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-foreground"}},{disableAnimation:!0,color:"primary",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-primary"}},{disableAnimation:!0,color:"secondary",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-secondary"}},{disableAnimation:!0,color:"success",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-success"}},{disableAnimation:!0,color:"warning",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-warning"}},{disableAnimation:!0,color:"danger",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-danger"}}],compoundSlots:[{variant:"underlined",slots:["tab","tabList","cursor"],class:["rounded-none"]}]}),lu=rt({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer touch-none tap-highlight-transparent",wrapper:["px-1","relative","inline-flex","items-center","justify-start","flex-shrink-0","overflow-hidden","bg-default-200","rounded-full",...Ko],thumb:["z-10","flex","items-center","justify-center","bg-white","shadow-small","rounded-full","origin-right"],startContent:"z-0 absolute left-1.5 text-current",endContent:"z-0 absolute right-1.5 text-default-600",thumbIcon:"text-black",label:"relative text-foreground select-none"},variants:{color:{default:{wrapper:["group-data-[selected=true]:bg-default-400","group-data-[selected=true]:text-default-foreground"]},primary:{wrapper:["group-data-[selected=true]:bg-primary","group-data-[selected=true]:text-primary-foreground"]},secondary:{wrapper:["group-data-[selected=true]:bg-secondary","group-data-[selected=true]:text-secondary-foreground"]},success:{wrapper:["group-data-[selected=true]:bg-success","group-data-[selected=true]:text-success-foreground"]},warning:{wrapper:["group-data-[selected=true]:bg-warning","group-data-[selected=true]:text-warning-foreground"]},danger:{wrapper:["group-data-[selected=true]:bg-danger","data-[selected=true]:text-danger-foreground"]}},size:{sm:{wrapper:"w-10 h-6 mr-2",thumb:["w-4 h-4 text-tiny","group-data-[selected=true]:ml-4"],endContent:"text-tiny",startContent:"text-tiny",label:"text-small"},md:{wrapper:"w-12 h-7 mr-2",thumb:["w-5 h-5 text-small","group-data-[selected=true]:ml-5"],endContent:"text-small",startContent:"text-small",label:"text-medium"},lg:{wrapper:"w-14 h-8 mr-2",thumb:["w-6 h-6 text-medium","group-data-[selected=true]:ml-6"],endContent:"text-medium",startContent:"text-medium",label:"text-large"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{wrapper:"transition-none",thumb:"transition-none"},false:{wrapper:"transition-background",thumb:"transition-all",startContent:["opacity-0","scale-50","transition-transform-opacity","group-data-[selected=true]:scale-100","group-data-[selected=true]:opacity-100"],endContent:["opacity-100","transition-transform-opacity","group-data-[selected=true]:translate-x-3","group-data-[selected=true]:opacity-0"]}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,disableAnimation:!1},compoundVariants:[{disableAnimation:!1,size:"sm",class:{thumb:["group-data-[pressed=true]:w-5","group-data-[selected]:group-data-[pressed]:ml-3"]}},{disableAnimation:!1,size:"md",class:{thumb:["group-data-[pressed=true]:w-6","group-data-[selected]:group-data-[pressed]:ml-4"]}},{disableAnimation:!1,size:"lg",class:{thumb:["group-data-[pressed=true]:w-7","group-data-[selected]:group-data-[pressed]:ml-5"]}}]}),r1=rt({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2",wrapper:["relative","inline-flex","items-center","justify-center","flex-shrink-0","overflow-hidden","border-solid","border-medium","box-border","border-default","rounded-full","group-data-[hover-unselected=true]:bg-default-100",...Ko],labelWrapper:"flex flex-col ml-1",control:["z-10","w-2","h-2","opacity-0","scale-0","origin-center","rounded-full","group-data-[selected=true]:opacity-100","group-data-[selected=true]:scale-100"],label:"relative text-foreground select-none",description:"relative text-foreground-400"},variants:{color:{default:{control:"bg-default-500 text-default-foreground",wrapper:"group-data-[selected=true]:border-default-500"},primary:{control:"bg-primary text-primary-foreground",wrapper:"group-data-[selected=true]:border-primary"},secondary:{control:"bg-secondary text-secondary-foreground",wrapper:"group-data-[selected=true]:border-secondary"},success:{control:"bg-success text-success-foreground",wrapper:"group-data-[selected=true]:border-success"},warning:{control:"bg-warning text-warning-foreground",wrapper:"group-data-[selected=true]:border-warning"},danger:{control:"bg-danger text-danger-foreground",wrapper:"group-data-[selected=true]:border-danger"}},size:{sm:{wrapper:"w-4 h-4",control:"w-1.5 h-1.5",labelWrapper:"ml-1",label:"text-small",description:"text-tiny"},md:{wrapper:"w-5 h-5",control:"w-2 h-2",labelWrapper:"ml-2",label:"text-medium",description:"text-small"},lg:{wrapper:"w-6 h-6",control:"w-2.5 h-2.5",labelWrapper:"ml-2",label:"text-large",description:"text-medium"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{control:"bg-danger text-danger-foreground",wrapper:"border-danger group-data-[selected=true]:border-danger",label:"text-danger",description:"text-danger-300"}},disableAnimation:{true:{},false:{wrapper:["group-data-[pressed=true]:scale-95","transition-transform-colors","motion-reduce:transition-none"],control:"transition-transform-opacity motion-reduce:transition-none",label:"transition-colors motion-reduce:transition-none",description:"transition-colors motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,isInvalid:!1,disableAnimation:!1}}),n1=rt({slots:{base:"relative flex flex-col gap-2",label:"relative text-foreground-500",wrapper:"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isInvalid:{true:{description:"text-danger"}},disableAnimation:{true:{},false:{description:"transition-colors !duration-150 motion-reduce:transition-none"}}},defaultVariants:{isInvalid:!1,isRequired:!1,disableAnimation:!1}}),cu=rt({slots:{base:"group flex flex-col",label:["absolute","z-10","pointer-events-none","origin-top-left","subpixel-antialiased","block","text-small","text-foreground-500"],mainWrapper:"h-full",inputWrapper:"relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-sm px-3 gap-3",innerWrapper:"inline-flex w-full items-center h-full box-border",input:["w-full font-normal bg-transparent !outline-none placeholder:text-foreground-500 focus-visible:outline-none","data-[has-start-content=true]:ps-1.5","data-[has-end-content=true]:pe-1.5"],clearButton:["p-2","-m-2","z-10","hidden","absolute","right-3","appearance-none","outline-none","select-none","opacity-0","hover:!opacity-100","cursor-pointer","active:!opacity-70","rounded-full",...$n],helperWrapper:"hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{variant:{flat:{inputWrapper:["bg-default-100","data-[hover=true]:bg-default-200","group-data-[focus=true]:bg-default-100"]},faded:{inputWrapper:["bg-default-100","border-medium","border-default-200","data-[hover=true]:border-default-400"],value:"group-data-[has-value=true]:text-default-foreground"},bordered:{inputWrapper:["border-medium","border-default-200","data-[hover=true]:border-default-400","group-data-[focus=true]:border-default-foreground"]},underlined:{inputWrapper:["!px-1","!pb-0","!gap-0","relative","box-border","border-b-medium","shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","border-default-200","!rounded-none","hover:border-default-300","after:content-['']","after:w-0","after:origin-center","after:bg-default-foreground","after:absolute","after:left-1/2","after:-translate-x-1/2","after:-bottom-[2px]","after:h-[2px]","group-data-[focus=true]:after:w-full"],innerWrapper:"pb-1",label:"group-data-[filled-within=true]:text-foreground"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{label:"text-tiny",inputWrapper:"h-unit-8 min-h-unit-8 px-2 rounded-small",input:"text-small",clearButton:"text-medium"},md:{inputWrapper:"h-unit-10 min-h-unit-10 rounded-medium",input:"text-small",clearButton:"text-large"},lg:{inputWrapper:"h-unit-12 min-h-unit-12 rounded-large",input:"text-medium",clearButton:"text-large"}},radius:{none:{inputWrapper:"rounded-none"},sm:{inputWrapper:"rounded-small"},md:{inputWrapper:"rounded-medium"},lg:{inputWrapper:"rounded-large"},full:{inputWrapper:"rounded-full"}},labelPlacement:{outside:{mainWrapper:"flex flex-col"},"outside-left":{base:"flex-row items-center flex-nowrap data-[has-helper=true]:items-start",inputWrapper:"flex-1",mainWrapper:"flex flex-col",label:"relative text-foreground pr-2"},inside:{label:"text-tiny cursor-text",inputWrapper:"flex-col items-start justify-center gap-0",innerWrapper:"group-data-[has-label=true]:items-end"}},fullWidth:{true:{base:"w-full"}},isClearable:{true:{input:"peer pr-6",clearButton:"peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none",inputWrapper:"pointer-events-none",label:"pointer-events-none"}},isInvalid:{true:{label:"!text-danger",input:"!placeholder:text-danger !text-danger"}},isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isMultiline:{true:{label:"relative",inputWrapper:"!h-auto",innerWrapper:"items-start group-data-[has-label=true]:items-start",input:"resize-none data-[hide-scroll=true]:scrollbar-hide"}},disableAnimation:{true:{input:"transition-none",inputWrapper:"transition-none",label:"transition-none"},false:{inputWrapper:"transition-background motion-reduce:transition-none !duration-150",label:["will-change-auto","!duration-200","!ease-out","motion-reduce:transition-none","transition-[transform,color,left,opacity]"],clearButton:["transition-opacity","motion-reduce:transition-none"]}}},defaultVariants:{variant:"flat",color:"default",size:"md",fullWidth:!0,labelPlacement:"inside",isDisabled:!1,isMultiline:!1,disableAnimation:!1},compoundVariants:[{variant:"flat",color:"default",class:{input:"group-data-[has-value=true]:text-default-foreground"}},{variant:"flat",color:"primary",class:{inputWrapper:["bg-primary-50","data-[hover=true]:bg-primary-100","text-primary","group-data-[focus=true]:bg-primary-50","placeholder:text-primary"],input:"placeholder:text-primary",label:"text-primary"}},{variant:"flat",color:"secondary",class:{inputWrapper:["bg-secondary-50","text-secondary","data-[hover=true]:bg-secondary-100","group-data-[focus=true]:bg-secondary-50","placeholder:text-secondary"],input:"placeholder:text-secondary",label:"text-secondary"}},{variant:"flat",color:"success",class:{inputWrapper:["bg-success-50","text-success-600","dark:text-success","placeholder:text-success-600","dark:placeholder:text-success","data-[hover=true]:bg-success-100","group-data-[focus=true]:bg-success-50"],input:"placeholder:text-success-600 dark:placeholder:text-success",label:"text-success-600 dark:text-success"}},{variant:"flat",color:"warning",class:{inputWrapper:["bg-warning-50","text-warning-600","dark:text-warning","placeholder:text-warning-600","dark:placeholder:text-warning","data-[hover=true]:bg-warning-100","group-data-[focus=true]:bg-warning-50"],input:"placeholder:text-warning-600 dark:placeholder:text-warning",label:"text-warning-600 dark:text-warning"}},{variant:"flat",color:"danger",class:{inputWrapper:["bg-danger-50","text-danger","dark:text-danger-500","placeholder:text-danger","dark:placeholder:text-danger-500","data-[hover=true]:bg-danger-100","group-data-[focus=true]:bg-danger-50"],input:"placeholder:text-danger dark:placeholder:text-danger-500",label:"text-danger dark:text-danger-500"}},{variant:"faded",color:"primary",class:{label:"text-primary",inputWrapper:"data-[hover=true]:border-primary focus-within:border-primary"}},{variant:"faded",color:"secondary",class:{label:"text-secondary",inputWrapper:"data-[hover=true]:border-secondary focus-within:border-secondary"}},{variant:"faded",color:"success",class:{label:"text-success",inputWrapper:"data-[hover=true]:border-success focus-within:border-success"}},{variant:"faded",color:"warning",class:{label:"text-warning",inputWrapper:"data-[hover=true]:border-warning focus-within:border-warning"}},{variant:"faded",color:"danger",class:{label:"text-danger",inputWrapper:"data-[hover=true]:border-danger focus-within:border-danger"}},{variant:"underlined",color:"default",class:{input:"group-data-[has-value=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{inputWrapper:"after:bg-primary",label:"text-primary"}},{variant:"underlined",color:"secondary",class:{inputWrapper:"after:bg-secondary",label:"text-secondary"}},{variant:"underlined",color:"success",class:{inputWrapper:"after:bg-success",label:"text-success"}},{variant:"underlined",color:"warning",class:{inputWrapper:"after:bg-warning",label:"text-warning"}},{variant:"underlined",color:"danger",class:{inputWrapper:"after:bg-danger",label:"text-danger"}},{variant:"bordered",color:"primary",class:{inputWrapper:"group-data-[focus=true]:border-primary",label:"text-primary"}},{variant:"bordered",color:"secondary",class:{inputWrapper:"group-data-[focus=true]:border-secondary",label:"text-secondary"}},{variant:"bordered",color:"success",class:{inputWrapper:"group-data-[focus=true]:border-success",label:"text-success"}},{variant:"bordered",color:"warning",class:{inputWrapper:"group-data-[focus=true]:border-warning",label:"text-warning"}},{variant:"bordered",color:"danger",class:{inputWrapper:"group-data-[focus=true]:border-danger",label:"text-danger"}},{labelPlacement:"inside",color:"default",class:{label:"group-data-[filled-within=true]:text-default-600"}},{labelPlacement:"outside",color:"default",class:{label:"group-data-[filled-within=true]:text-foreground"}},{radius:"full",size:["sm"],class:{inputWrapper:"px-3"}},{radius:"full",size:"md",class:{inputWrapper:"px-4"}},{radius:"full",size:"lg",class:{inputWrapper:"px-5"}},{disableAnimation:!1,variant:["faded","bordered"],class:{inputWrapper:"transition-colors motion-reduce:transition-none"}},{disableAnimation:!1,variant:"underlined",class:{inputWrapper:"after:transition-width motion-reduce:after:transition-none"}},{variant:["flat","faded"],class:{inputWrapper:[...Ko]}},{isInvalid:!0,variant:"flat",class:{inputWrapper:["bg-danger-50","data-[hover=true]:bg-danger-100","group-data-[focus=true]:bg-danger-50"]}},{isInvalid:!0,variant:"bordered",class:{inputWrapper:"!border-danger group-data-[focus=true]:border-danger"}},{isInvalid:!0,variant:"underlined",class:{inputWrapper:"after:bg-danger"}},{labelPlacement:"inside",size:"sm",class:{inputWrapper:"h-12 py-1.5 px-3"}},{labelPlacement:"inside",size:"md",class:{inputWrapper:"h-14 py-2"}},{labelPlacement:"inside",size:"lg",class:{label:"text-small",inputWrapper:"h-16 py-2.5 gap-0"}},{labelPlacement:"inside",size:"sm",variant:["bordered","faded"],class:{inputWrapper:"py-1"}},{labelPlacement:["inside","outside"],class:{label:["group-data-[filled-within=true]:pointer-events-auto"]}},{labelPlacement:["outside","outside-left"],class:{input:"h-full"}},{labelPlacement:"outside",isMultiline:!1,class:{base:"group relative justify-end",label:["pb-0","z-20","top-1/2","-translate-y-1/2","group-data-[filled-within=true]:left-0"]}},{labelPlacement:["inside"],class:{label:["group-data-[filled-within=true]:scale-85"]}},{labelPlacement:["inside"],variant:"flat",class:{innerWrapper:"pb-0.5"}},{variant:"underlined",size:"sm",class:{innerWrapper:"pb-1"}},{variant:"underlined",size:["md","lg"],class:{innerWrapper:"pb-1.5"}},{labelPlacement:"inside",size:["sm","md"],class:{label:"text-small"}},{labelPlacement:"inside",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"]}},{labelPlacement:"inside",variant:"underlined",size:"lg",isMultiline:!1,class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"]}},{labelPlacement:"outside",size:"sm",isMultiline:!1,class:{label:["left-2","text-tiny","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"}},{labelPlacement:"outside",size:"md",isMultiline:!1,class:{label:["left-3","text-small","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"}},{labelPlacement:"outside",size:"lg",isMultiline:!1,class:{label:["left-3","text-medium","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"}},{labelPlacement:"outside-left",size:"sm",class:{label:"group-data-[has-helper=true]:pt-2"}},{labelPlacement:"outside-left",size:"md",class:{label:"group-data-[has-helper=true]:pt-3"}},{labelPlacement:"outside-left",size:"lg",class:{label:"group-data-[has-helper=true]:pt-4"}},{labelPlacement:["outside","outside-left"],isMultiline:!0,class:{inputWrapper:"py-2"}},{labelPlacement:"outside",isMultiline:!0,class:{label:"pb-1.5"}},{labelPlacement:"inside",isMultiline:!0,class:{label:"pb-0.5",input:"pt-0"}},{isMultiline:!0,disableAnimation:!1,class:{input:"transition-height !duration-100 motion-reduce:transition-none"}},{labelPlacement:["inside","outside"],class:{label:["pe-2","max-w-full","text-ellipsis","overflow-hidden"]}},{isMultiline:!0,radius:"full",class:{inputWrapper:"data-[has-multiple-rows=true]:rounded-large"}}]}),o1=rt({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2",wrapper:["relative","inline-flex","items-center","justify-center","flex-shrink-0","overflow-hidden","before:content-['']","before:absolute","before:inset-0","before:border-solid","before:border-2","before:box-border","before:border-default","after:content-['']","after:absolute","after:inset-0","after:scale-50","after:opacity-0","after:origin-center","group-data-[selected=true]:after:scale-100","group-data-[selected=true]:after:opacity-100","group-data-[hover=true]:before:bg-default-100",...Ko],icon:"z-10 w-4 h-3 opacity-0 group-data-[selected=true]:opacity-100",label:"relative text-foreground select-none"},variants:{color:{default:{wrapper:"after:bg-default after:text-default-foreground text-default-foreground"},primary:{wrapper:"after:bg-primary after:text-primary-foreground text-primary-foreground"},secondary:{wrapper:"after:bg-secondary after:text-secondary-foreground text-secondary-foreground"},success:{wrapper:"after:bg-success after:text-success-foreground text-success-foreground"},warning:{wrapper:"after:bg-warning after:text-warning-foreground text-warning-foreground"},danger:{wrapper:"after:bg-danger after:text-danger-foreground text-danger-foreground"}},size:{sm:{wrapper:["w-4 h-4 mr-2","rounded-[calc(theme(borderRadius.medium)*0.5)]","before:rounded-[calc(theme(borderRadius.medium)*0.5)]","after:rounded-[calc(theme(borderRadius.medium)*0.5)]"],label:"text-small",icon:"w-3 h-2"},md:{wrapper:["w-5 h-5 mr-2","rounded-[calc(theme(borderRadius.medium)*0.6)]","before:rounded-[calc(theme(borderRadius.medium)*0.6)]","after:rounded-[calc(theme(borderRadius.medium)*0.6)]"],label:"text-medium",icon:"w-4 h-3"},lg:{wrapper:["w-6 h-6 mr-2","rounded-[calc(theme(borderRadius.medium)*0.7)]","before:rounded-[calc(theme(borderRadius.medium)*0.7)]","after:rounded-[calc(theme(borderRadius.medium)*0.7)]"],label:"text-large",icon:"w-5 h-4"}},radius:{none:{wrapper:"rounded-none before:rounded-none after:rounded-none"},sm:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.5)]","before:rounded-[calc(theme(borderRadius.medium)*0.5)]","after:rounded-[calc(theme(borderRadius.medium)*0.5)]"]},md:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.6)]","before:rounded-[calc(theme(borderRadius.medium)*0.6)]","after:rounded-[calc(theme(borderRadius.medium)*0.6)]"]},lg:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.7)]","before:rounded-[calc(theme(borderRadius.medium)*0.7)]","after:rounded-[calc(theme(borderRadius.medium)*0.7)]"]},full:{wrapper:"rounded-full before:rounded-full after:rounded-full"}},lineThrough:{true:{label:["inline-flex","items-center","justify-center","before:content-['']","before:absolute","before:bg-foreground","before:w-0","before:h-0.5","group-data-[selected=true]:opacity-60","group-data-[selected=true]:before:w-full"]}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{wrapper:"before:border-danger",label:"text-danger"}},disableAnimation:{true:{wrapper:"transition-none",icon:"transition-none",label:"transition-none"},false:{wrapper:["before:transition-colors","group-data-[pressed=true]:scale-95","transition-transform","after:transition-transform-opacity","after:!ease-linear","after:!duration-200","motion-reduce:transition-none"],icon:"transition-opacity motion-reduce:transition-none",label:"transition-colors-opacity before:transition-width motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,lineThrough:!1,disableAnimation:!1}});rt({slots:{base:"relative flex flex-col gap-2",label:"relative text-medium text-foreground-500",wrapper:"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",description:"text-small text-foreground-400",errorMessage:"text-small text-danger"},variants:{isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isInvalid:{true:{description:"text-danger"}},disableAnimation:{true:{},false:{description:"transition-colors !duration-150 motion-reduce:transition-none"}}},defaultVariants:{isInvalid:!1,isRequired:!1,disableAnimation:!1}});var uu=rt({slots:{base:["relative","max-w-fit","inline-flex","items-center","justify-between","box-border","whitespace-nowrap"],content:"flex-1 text-inherit font-normal",dot:["w-2","h-2","ml-1","rounded-full"],avatar:"flex-shrink-0",closeButton:["z-10","appearance-none","outline-none","select-none","transition-opacity","opacity-70","hover:opacity-100","cursor-pointer","active:opacity-disabled","tap-highlight-transparent"]},variants:{variant:{solid:{},bordered:{base:"border-medium bg-transparent"},light:{base:"bg-transparent"},flat:{},faded:{base:"border-medium"},shadow:{},dot:{base:"border-medium border-default text-foreground bg-transparent"}},color:{default:{dot:"bg-default-400"},primary:{dot:"bg-primary"},secondary:{dot:"bg-secondary"},success:{dot:"bg-success"},warning:{dot:"bg-warning"},danger:{dot:"bg-danger"}},size:{sm:{base:"px-1 h-6 text-tiny",content:"px-1",closeButton:"text-medium",avatar:"w-4 h-4"},md:{base:"px-1 h-7 text-small",content:"px-2",closeButton:"text-large",avatar:"w-5 h-5"},lg:{base:"px-2 h-8 text-medium",content:"px-2",closeButton:"text-xl",avatar:"w-6 h-6"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isOneChar:{true:{},false:{}},isCloseable:{true:{},false:{}},hasStartContent:{true:{}},hasEndContent:{true:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isCloseButtonFocusVisible:{true:{closeButton:[...Gg,"ring-1","rounded-full"]}}},defaultVariants:{variant:"solid",color:"default",size:"md",radius:"full",isDisabled:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:B.solid.default}},{variant:"solid",color:"primary",class:{base:B.solid.primary}},{variant:"solid",color:"secondary",class:{base:B.solid.secondary}},{variant:"solid",color:"success",class:{base:B.solid.success}},{variant:"solid",color:"warning",class:{base:B.solid.warning}},{variant:"solid",color:"danger",class:{base:B.solid.danger}},{variant:"shadow",color:"default",class:{base:B.shadow.default}},{variant:"shadow",color:"primary",class:{base:B.shadow.primary}},{variant:"shadow",color:"secondary",class:{base:B.shadow.secondary}},{variant:"shadow",color:"success",class:{base:B.shadow.success}},{variant:"shadow",color:"warning",class:{base:B.shadow.warning}},{variant:"shadow",color:"danger",class:{base:B.shadow.danger}},{variant:"bordered",color:"default",class:{base:B.bordered.default}},{variant:"bordered",color:"primary",class:{base:B.bordered.primary}},{variant:"bordered",color:"secondary",class:{base:B.bordered.secondary}},{variant:"bordered",color:"success",class:{base:B.bordered.success}},{variant:"bordered",color:"warning",class:{base:B.bordered.warning}},{variant:"bordered",color:"danger",class:{base:B.bordered.danger}},{variant:"flat",color:"default",class:{base:B.flat.default}},{variant:"flat",color:"primary",class:{base:B.flat.primary}},{variant:"flat",color:"secondary",class:{base:B.flat.secondary}},{variant:"flat",color:"success",class:{base:B.flat.success}},{variant:"flat",color:"warning",class:{base:B.flat.warning}},{variant:"flat",color:"danger",class:{base:B.flat.danger}},{variant:"faded",color:"default",class:{base:B.faded.default}},{variant:"faded",color:"primary",class:{base:B.faded.primary}},{variant:"faded",color:"secondary",class:{base:B.faded.secondary}},{variant:"faded",color:"success",class:{base:B.faded.success}},{variant:"faded",color:"warning",class:{base:B.faded.warning}},{variant:"faded",color:"danger",class:{base:B.faded.danger}},{variant:"light",color:"default",class:{base:B.light.default}},{variant:"light",color:"primary",class:{base:B.light.primary}},{variant:"light",color:"secondary",class:{base:B.light.secondary}},{variant:"light",color:"success",class:{base:B.light.success}},{variant:"light",color:"warning",class:{base:B.light.warning}},{variant:"light",color:"danger",class:{base:B.light.danger}},{isOneChar:!0,size:"sm",class:{base:"w-5 h-5 min-w-unit-5 min-h-5"}},{isOneChar:!0,size:"md",class:{base:"w-6 h-6 min-w-unit-6 min-h-6"}},{isOneChar:!0,size:"lg",class:{base:"w-7 h-7 min-w-unit-7 min-h-7"}},{isOneChar:!0,isCloseable:!1,class:{base:"px-0 justify-center",content:"px-0 flex-none"}},{isOneChar:!0,isCloseable:!0,class:{base:"w-auto"}},{hasStartContent:!0,size:"sm",class:{content:"pl-0.5"}},{hasStartContent:!0,size:["md","lg"],class:{content:"pl-1"}},{hasEndContent:!0,size:"sm",class:{content:"pr-0.5"}},{hasEndContent:!0,size:["md","lg"],class:{content:"pr-1"}}]}),a1=rt({slots:{base:["flex","relative","justify-center","items-center","box-border","overflow-hidden","align-middle","text-white","z-0",...$n],img:["flex","object-cover","w-full","h-full","transition-opacity","!duration-500","opacity-0","data-[loaded=true]:opacity-100"],fallback:[...js,"flex","items-center","justify-center"],name:[...js,"font-normal","text-center","text-inherit"],icon:[...js,"flex","items-center","justify-center","text-inherit","w-full","h-full"]},variants:{size:{sm:{base:"w-8 h-8 text-tiny"},md:{base:"w-10 h-10 text-tiny"},lg:{base:"w-14 h-14 text-small"}},color:{default:{base:B.solid.default},primary:{base:B.solid.primary},secondary:{base:B.solid.secondary},success:{base:B.solid.success},warning:{base:B.solid.warning},danger:{base:B.solid.danger}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isBordered:{true:{base:"ring-2 ring-offset-2 ring-offset-background dark:ring-offset-background-dark"}},isDisabled:{true:{base:"opacity-disabled"}},isInGroup:{true:{base:["-ms-2 data-[hover=true]:-translate-x-3 transition-transform","data-[focus-visible=true]:-translate-x-3"]}},isInGridGroup:{true:{base:"m-0 data-[hover=true]:translate-x-0"}}},defaultVariants:{size:"md",color:"default",radius:"full"},compoundVariants:[{color:"default",isBordered:!0,class:{base:"ring-default"}},{color:"primary",isBordered:!0,class:{base:"ring-primary"}},{color:"secondary",isBordered:!0,class:{base:"ring-secondary"}},{color:"success",isBordered:!0,class:{base:"ring-success"}},{color:"warning",isBordered:!0,class:{base:"ring-warning"}},{color:"danger",isBordered:!0,class:{base:"ring-danger"}}]});rt({base:"flex items-center justify-center h-auto w-max-content",variants:{isGrid:{true:"inline-grid grid-cols-4 gap-3"}}});var s1=rt({base:["z-0","group","relative","inline-flex","items-center","justify-center","box-border","appearance-none","outline-none","select-none","whitespace-nowrap","min-w-max","font-normal","subpixel-antialiased","overflow-hidden","tap-highlight-transparent",...$n],variants:{variant:{solid:"",bordered:"border-medium bg-transparent",light:"bg-transparent",flat:"",faded:"border-medium",shadow:"",ghost:"border-medium bg-transparent"},size:{sm:"px-unit-3 min-w-unit-16 h-unit-8 text-tiny gap-unit-2 rounded-small",md:"px-unit-4 min-w-unit-20 h-unit-10 text-small gap-unit-2 rounded-medium",lg:"px-unit-6 min-w-unit-24 h-unit-12 text-medium gap-unit-3 rounded-large"},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},radius:{none:"rounded-none",sm:"rounded-small",md:"rounded-medium",lg:"rounded-large",full:"rounded-full"},fullWidth:{true:"w-full"},isDisabled:{true:"opacity-disabled pointer-events-none"},isInGroup:{true:"[&:not(:first-child):not(:last-child)]:rounded-none"},isIconOnly:{true:"px-unit-0 !gap-unit-0",false:"[&>svg]:max-w-[theme(spacing.unit-8)]"},disableAnimation:{true:"!transition-none",false:"data-[pressed=true]:scale-[0.97] transition-transform-colors-opacity motion-reduce:transition-none"}},defaultVariants:{size:"md",variant:"solid",color:"default",fullWidth:!1,isDisabled:!1,isInGroup:!1,disableAnimation:!1},compoundVariants:[{variant:"solid",color:"default",class:B.solid.default},{variant:"solid",color:"primary",class:B.solid.primary},{variant:"solid",color:"secondary",class:B.solid.secondary},{variant:"solid",color:"success",class:B.solid.success},{variant:"solid",color:"warning",class:B.solid.warning},{variant:"solid",color:"danger",class:B.solid.danger},{variant:"shadow",color:"default",class:B.shadow.default},{variant:"shadow",color:"primary",class:B.shadow.primary},{variant:"shadow",color:"secondary",class:B.shadow.secondary},{variant:"shadow",color:"success",class:B.shadow.success},{variant:"shadow",color:"warning",class:B.shadow.warning},{variant:"shadow",color:"danger",class:B.shadow.danger},{variant:"bordered",color:"default",class:B.bordered.default},{variant:"bordered",color:"primary",class:B.bordered.primary},{variant:"bordered",color:"secondary",class:B.bordered.secondary},{variant:"bordered",color:"success",class:B.bordered.success},{variant:"bordered",color:"warning",class:B.bordered.warning},{variant:"bordered",color:"danger",class:B.bordered.danger},{variant:"flat",color:"default",class:B.flat.default},{variant:"flat",color:"primary",class:B.flat.primary},{variant:"flat",color:"secondary",class:B.flat.secondary},{variant:"flat",color:"success",class:B.flat.success},{variant:"flat",color:"warning",class:B.flat.warning},{variant:"flat",color:"danger",class:B.flat.danger},{variant:"faded",color:"default",class:B.faded.default},{variant:"faded",color:"primary",class:B.faded.primary},{variant:"faded",color:"secondary",class:B.faded.secondary},{variant:"faded",color:"success",class:B.faded.success},{variant:"faded",color:"warning",class:B.faded.warning},{variant:"faded",color:"danger",class:B.faded.danger},{variant:"light",color:"default",class:[B.light.default,"data-[hover=true]:bg-default/40"]},{variant:"light",color:"primary",class:[B.light.primary,"data-[hover=true]:bg-primary/20"]},{variant:"light",color:"secondary",class:[B.light.secondary,"data-[hover=true]:bg-secondary/20"]},{variant:"light",color:"success",class:[B.light.success,"data-[hover=true]:bg-success/20"]},{variant:"light",color:"warning",class:[B.light.warning,"data-[hover=true]:bg-warning/20"]},{variant:"light",color:"danger",class:[B.light.danger,"data-[hover=true]:bg-danger/20"]},{variant:"ghost",color:"default",class:B.ghost.default},{variant:"ghost",color:"primary",class:B.ghost.primary},{variant:"ghost",color:"secondary",class:B.ghost.secondary},{variant:"ghost",color:"success",class:B.ghost.success},{variant:"ghost",color:"warning",class:B.ghost.warning},{variant:"ghost",color:"danger",class:B.ghost.danger},{isInGroup:!0,class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,size:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,isRounded:!0,class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,radius:"none",class:"rounded-none first:rounded-s-none last:rounded-e-none"},{isInGroup:!0,radius:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,radius:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,radius:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,radius:"full",class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,variant:["ghost","bordered"],color:"default",className:Kr.default},{isInGroup:!0,variant:["ghost","bordered"],color:"primary",className:Kr.primary},{isInGroup:!0,variant:["ghost","bordered"],color:"secondary",className:Kr.secondary},{isInGroup:!0,variant:["ghost","bordered"],color:"success",className:Kr.success},{isInGroup:!0,variant:["ghost","bordered"],color:"warning",className:Kr.warning},{isInGroup:!0,variant:["ghost","bordered"],color:"danger",className:Kr.danger},{isIconOnly:!0,size:"sm",class:"min-w-unit-8 w-unit-8 h-unit-8"},{isIconOnly:!0,size:"md",class:"min-w-unit-10 w-unit-10 h-unit-10"},{isIconOnly:!0,size:"lg",class:"min-w-unit-12 w-unit-12 h-unit-12"},{variant:["solid","faded","flat","bordered","shadow"],class:"data-[hover=true]:opacity-hover"}]});rt({base:"inline-flex items-center justify-center h-auto",variants:{fullWidth:{true:"w-full"}},defaultVariants:{fullWidth:!1}});var i1=e=>(e==null?void 0:e.length)<=4?e:e==null?void 0:e.slice(0,3),_s=(...e)=>{let t=" ";for(const r of e)if(typeof r=="string"&&r.length>0){t=r;break}return t};function du(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=du(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function me(...e){for(var t=0,r,n,o="";t<e.length;)(r=e[t++])&&(n=du(r))&&(o&&(o+=" "),o+=n);return o}var fu={};function Uo(e,t,...r){var n;const a=`[Next UI]${t?` [${t}]`:" "}: ${e}`;if(!(typeof console>"u")&&!fu[a]&&(fu[a]=!0,((n=process==null?void 0:process.env)==null?void 0:n.NODE_ENV)!=="production"))return console.warn(a,r)}function l1(e){return`${e}-${Math.floor(Math.random()*1e6)}`}var pu=process.env.NODE_ENV!=="production";process.env.NODE_ENV;var Q=e=>e?"true":void 0;function Ho(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=U.createContext(void 0);o.displayName=n;function a(){var s;const i=U.useContext(o);if(!i&&t){const l=new Error(r);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,a),l}return i}return[o.Provider,a,o]}function c1(e){return{UNSAFE_getDOMNode(){return e.current}}}function u1(e,t=e){return{...c1(e),focus(){t.current&&t.current.focus()}}}function nt(e){const t=f.useRef(null);return f.useImperativeHandle(e,()=>t.current),t}function hu(e,t){const r=f.useRef(null);return f.useImperativeHandle(e,()=>u1(r,t)),r}var d1=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),f1=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]),p1=/^(data-.*)$/,h1=/^(aria-.*)$/,Fs=/^(on[A-Z].*)$/;function Dn(e,t={}){let{labelable:r=!0,enabled:n=!0,propNames:o,omitPropNames:a,omitEventNames:s}=t,i={};if(!n)return e;for(const l in e)a!=null&&a.has(l)||s!=null&&s.has(l)&&Fs.test(l)||Fs.test(l)&&!f1.has(l)||(Object.prototype.hasOwnProperty.call(e,l)&&(d1.has(l)||r&&h1.test(l)||o!=null&&o.has(l)||p1.test(l))||Fs.test(l))&&(i[l]=e[l]);return i}function Vs(e){return eg()?e.altKey:e.ctrlKey}function Ur(e){return Gt()?e.metaKey:e.ctrlKey}const m1=1e3;function g1(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=f.useRef({search:"",timeout:null}).current,a=s=>{let i=v1(s.key);if(!i||s.ctrlKey||s.metaKey||!s.currentTarget.contains(s.target))return;i===" "&&o.search.trim().length>0&&(s.preventDefault(),"continuePropagation"in s||s.stopPropagation()),o.search+=i;let l=t.getKeyForSearch(o.search,r.focusedKey);l==null&&(l=t.getKeyForSearch(o.search)),l!=null&&(r.setFocusedKey(l),n&&n(l)),clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},m1)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:null}}}function v1(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function b1(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:a=!1,disallowEmptySelection:s=!1,disallowSelectAll:i=!1,selectOnFocus:l=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:u,allowsTabNavigation:d=!1,isVirtualized:h,scrollRef:p=n,linkBehavior:m="action"}=e,{direction:y}=xs(),b=Ic(),C=I=>{if(I.altKey&&I.key==="Tab"&&I.preventDefault(),!n.current.contains(I.target))return;const T=(K,R)=>{if(K!=null){if(t.isLink(K)&&m==="selection"&&l&&!Vs(I)){gn.flushSync(()=>{t.setFocusedKey(K,R)});let re=p.current.querySelector(`[data-key="${CSS.escape(K.toString())}"]`);b.open(re,I);return}if(t.setFocusedKey(K,R),t.isLink(K)&&m==="override")return;I.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(K):l&&!Vs(I)&&t.replaceSelection(K)}};switch(I.key){case"ArrowDown":if(r.getKeyBelow){var D,w;I.preventDefault();let K=t.focusedKey!=null?r.getKeyBelow(t.focusedKey):(D=r.getFirstKey)===null||D===void 0?void 0:D.call(r);K==null&&a&&(K=(w=r.getFirstKey)===null||w===void 0?void 0:w.call(r,t.focusedKey)),T(K)}break;case"ArrowUp":if(r.getKeyAbove){var M,O;I.preventDefault();let K=t.focusedKey!=null?r.getKeyAbove(t.focusedKey):(M=r.getLastKey)===null||M===void 0?void 0:M.call(r);K==null&&a&&(K=(O=r.getLastKey)===null||O===void 0?void 0:O.call(r,t.focusedKey)),T(K)}break;case"ArrowLeft":if(r.getKeyLeftOf){var F,$;I.preventDefault();let K=r.getKeyLeftOf(t.focusedKey);K==null&&a&&(K=y==="rtl"?(F=r.getFirstKey)===null||F===void 0?void 0:F.call(r,t.focusedKey):($=r.getLastKey)===null||$===void 0?void 0:$.call(r,t.focusedKey)),T(K,y==="rtl"?"first":"last")}break;case"ArrowRight":if(r.getKeyRightOf){var V,Y;I.preventDefault();let K=r.getKeyRightOf(t.focusedKey);K==null&&a&&(K=y==="rtl"?(V=r.getLastKey)===null||V===void 0?void 0:V.call(r,t.focusedKey):(Y=r.getFirstKey)===null||Y===void 0?void 0:Y.call(r,t.focusedKey)),T(K,y==="rtl"?"last":"first")}break;case"Home":if(r.getFirstKey){I.preventDefault();let K=r.getFirstKey(t.focusedKey,Ur(I));t.setFocusedKey(K),Ur(I)&&I.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(K):l&&t.replaceSelection(K)}break;case"End":if(r.getLastKey){I.preventDefault();let K=r.getLastKey(t.focusedKey,Ur(I));t.setFocusedKey(K),Ur(I)&&I.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(K):l&&t.replaceSelection(K)}break;case"PageDown":if(r.getKeyPageBelow){I.preventDefault();let K=r.getKeyPageBelow(t.focusedKey);T(K)}break;case"PageUp":if(r.getKeyPageAbove){I.preventDefault();let K=r.getKeyPageAbove(t.focusedKey);T(K)}break;case"a":Ur(I)&&t.selectionMode==="multiple"&&i!==!0&&(I.preventDefault(),t.selectAll());break;case"Escape":I.preventDefault(),s||t.clearSelection();break;case"Tab":if(!d){if(I.shiftKey)n.current.focus();else{let K=As(n.current,{tabbable:!0}),R,re;do re=K.lastChild(),re&&(R=re);while(re);R&&!R.contains(document.activeElement)&&tt(R)}break}}},x=f.useRef({top:0,left:0});cg(p,"scroll",h?null:()=>{x.current={top:p.current.scrollTop,left:p.current.scrollLeft}});let P=I=>{if(t.isFocused){I.currentTarget.contains(I.target)||t.setFocused(!1);return}if(I.currentTarget.contains(I.target)){if(t.setFocused(!0),t.focusedKey==null){let w=O=>{O!=null&&(t.setFocusedKey(O),l&&t.replaceSelection(O))},M=I.relatedTarget;var T,D;M&&I.currentTarget.compareDocumentPosition(M)&Node.DOCUMENT_POSITION_FOLLOWING?w((T=t.lastSelectedKey)!==null&&T!==void 0?T:r.getLastKey()):w((D=t.firstSelectedKey)!==null&&D!==void 0?D:r.getFirstKey())}else h||(p.current.scrollTop=x.current.top,p.current.scrollLeft=x.current.left);if(!h&&t.focusedKey!=null){let w=p.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);w&&(w.contains(document.activeElement)||tt(w),$s()==="keyboard"&&jc(w,{containingElement:n.current}))}}},E=I=>{I.currentTarget.contains(I.relatedTarget)||t.setFocused(!1)};const S=f.useRef(o);f.useEffect(()=>{if(S.current){let I=null;o==="first"&&(I=r.getFirstKey()),o==="last"&&(I=r.getLastKey());let T=t.selectedKeys;if(T.size){for(let D of T)if(t.canSelectItem(D)){I=D;break}}t.setFocused(!0),t.setFocusedKey(I),I==null&&!u&&Wo(n.current)}},[]);let N=f.useRef(t.focusedKey);f.useEffect(()=>{let I=$s();if(t.isFocused&&t.focusedKey!=null&&(p!=null&&p.current)){let T=p.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);T&&(I==="keyboard"||S.current)&&(h||Nc(p.current,T),jc(T,{containingElement:n.current}))}t.isFocused&&t.focusedKey==null&&N.current!=null&&Wo(n.current),N.current=t.focusedKey,S.current=!1},[h,p,t.focusedKey,t.isFocused,n]);let L={onKeyDown:C,onFocus:P,onBlur:E,onMouseDown(I){p.current===I.target&&I.preventDefault()}},{typeSelectProps:g}=g1({keyboardDelegate:r,selectionManager:t});c||(L=se(g,L));let A;return u||(A=t.focusedKey==null?0:-1),{collectionProps:{...L,tabIndex:A}}}function y1(e){let{selectionManager:t,key:r,ref:n,shouldSelectOnPressUp:o,shouldUseVirtualFocus:a,focus:s,isDisabled:i,onAction:l,allowsDifferentPressOrigin:c,linkBehavior:u="action"}=e,d=Ic(),h=$=>{if($.pointerType==="keyboard"&&Vs($))t.toggleSelection(r);else{if(t.selectionMode==="none")return;if(t.isLink(r)){if(u==="selection"){d.open(n.current,$),t.setSelectedKeys(t.selectedKeys);return}else if(u==="override"||u==="none")return}t.selectionMode==="single"?t.isSelected(r)&&!t.disallowEmptySelection?t.toggleSelection(r):t.replaceSelection(r):$&&$.shiftKey?t.extendSelection(r):t.selectionBehavior==="toggle"||$&&(Ur($)||$.pointerType==="touch"||$.pointerType==="virtual")?t.toggleSelection(r):t.replaceSelection(r)}};f.useEffect(()=>{r===t.focusedKey&&t.isFocused&&!a&&(s?s():document.activeElement!==n.current&&Wo(n.current))},[n,r,t.focusedKey,t.childFocusStrategy,t.isFocused,a]),i=i||t.isDisabled(r);let p={};!a&&!i?p={tabIndex:r===t.focusedKey?0:-1,onFocus($){$.target===n.current&&t.setFocusedKey(r)}}:i&&(p.onMouseDown=$=>{$.preventDefault()});let m=t.isLink(r)&&u==="override",y=t.isLink(r)&&u!=="selection"&&u!=="none",b=!i&&t.canSelectItem(r)&&!m,C=(l||y)&&!i,x=C&&(t.selectionBehavior==="replace"?!b:!b||t.isEmpty),P=C&&b&&t.selectionBehavior==="replace",E=x||P,S=f.useRef(null),N=E&&b,L=f.useRef(!1),g=f.useRef(!1),A=$=>{l&&l(),y&&d.open(n.current,$)},I={};o?(I.onPressStart=$=>{S.current=$.pointerType,L.current=N,$.pointerType==="keyboard"&&(!E||gu())&&h($)},c?(I.onPressUp=x?null:$=>{$.pointerType!=="keyboard"&&b&&h($)},I.onPress=x?A:null):I.onPress=$=>{if(x||P&&$.pointerType!=="mouse"){if($.pointerType==="keyboard"&&!mu())return;A($)}else $.pointerType!=="keyboard"&&b&&h($)}):(I.onPressStart=$=>{S.current=$.pointerType,L.current=N,g.current=x,b&&($.pointerType==="mouse"&&!x||$.pointerType==="keyboard"&&(!C||gu()))&&h($)},I.onPress=$=>{($.pointerType==="touch"||$.pointerType==="pen"||$.pointerType==="virtual"||$.pointerType==="keyboard"&&E&&mu()||$.pointerType==="mouse"&&g.current)&&(E?A($):b&&h($))}),p["data-key"]=r,I.preventFocusOnPress=a;let{pressProps:T,isPressed:D}=fr(I),w=P?$=>{S.current==="mouse"&&($.stopPropagation(),$.preventDefault(),A($))}:void 0,{longPressProps:M}=Fg({isDisabled:!N,onLongPress($){$.pointerType==="touch"&&(h($),t.setSelectionBehavior("toggle"))}}),O=$=>{S.current==="touch"&&L.current&&$.preventDefault()},F=t.isLink(r)?$=>{At.isOpening||$.preventDefault()}:void 0;return{itemProps:se(p,b||x?T:{},N?M:{},{onDoubleClick:w,onDragStartCapture:O,onClick:F}),isPressed:D,isSelected:t.isSelected(r),isFocused:t.isFocused&&t.focusedKey===r,isDisabled:i,allowsSelection:b,hasAction:E}}function mu(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function gu(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}var vu=f.createContext(null);vu.displayName="PressResponderContext";var x1=Object.defineProperty,w1=(e,t,r)=>t in e?x1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gr=(e,t,r)=>(w1(e,typeof t!="symbol"?t+"":t,r),r),bu=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},C1=(e,t,r)=>(bu(e,t,"read from private field"),r?r.call(e):t.get(e)),P1=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},M1=(e,t,r,n)=>(bu(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Yo,Go=class{constructor(e,t,r){gr(this,"type"),gr(this,"pointerType"),gr(this,"target"),gr(this,"shiftKey"),gr(this,"ctrlKey"),gr(this,"metaKey"),gr(this,"altKey"),P1(this,Yo,!0),this.type=e,this.pointerType=t,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}continuePropagation(){M1(this,Yo,!1)}get shouldStopPropagation(){return C1(this,Yo)}};Yo=new WeakMap;var vr=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document},zs=e=>{var t,r;return(r=(t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)!=null?r:window},Hr="default",Ws="",qo=new WeakMap;function yu(e){if(Mn()){if(Hr==="default"){const t=vr(e);Ws=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Hr="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(qo.set(e,e.style.userSelect),e.style.userSelect="none")}function Qo(e){if(Mn()){if(Hr!=="disabled")return;Hr="restoring",setTimeout(()=>{ps(()=>{if(Hr==="restoring"){const t=vr(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Ws||""),Ws="",Hr="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&qo.has(e)){let t=qo.get(e);e.style.userSelect==="none"&&t&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),qo.delete(e)}}function T1(e){let t=f.useContext(vu);if(t){let{register:r,...n}=t;e=se(n,e),r()}return gs(t,e.ref),e}var xu=Symbol("linkClicked");function In(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:a,isDisabled:s,isPressed:i,preventFocusOnPress:l,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:u,ref:d,...h}=T1(e),[p,m]=f.useState(!1),y=f.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:b,removeAllGlobalListeners:C}=hs(),x=We((g,A)=>{let I=y.current;if(s||I.didFirePressStart)return;let T=!0;if(I.isTriggeringEvent=!0,n){let D=new Go("pressstart",A,g);n(D),T=D.shouldStopPropagation}return r&&r(!0),I.isTriggeringEvent=!1,I.didFirePressStart=!0,m(!0),T}),P=We((g,A,I=!0)=>{let T=y.current;if(!T.didFirePressStart)return;T.ignoreClickAfterPress=!0,T.didFirePressStart=!1,T.isTriggeringEvent=!0;let D=!0;if(o){let w=new Go("pressend",A,g);o(w),D=w.shouldStopPropagation}if(r&&r(!1),m(!1),t&&I&&!s){let w=new Go("press",A,g);t(w),D&&(D=w.shouldStopPropagation)}return T.isTriggeringEvent=!1,D}),E=We((g,A)=>{let I=y.current;if(!s){if(a){I.isTriggeringEvent=!0;let T=new Go("pressup",A,g);return a(T),I.isTriggeringEvent=!1,T.shouldStopPropagation}return!0}}),S=We(g=>{let A=y.current;A.isPressed&&(A.isOverTarget&&A.target&&P(Nt(A.target,g),A.pointerType,!1),A.isPressed=!1,A.isOverTarget=!1,A.activePointerId=null,A.pointerType=null,C(),!u&&A.target&&Qo(A.target))}),N=We(g=>{c&&S(g)}),L=f.useMemo(()=>{let g=y.current,A={onKeyDown(T){var D;if(Rs(T.nativeEvent,T.currentTarget)&&T.currentTarget.contains(T.target)){Cu(T.target,T.key)&&T.preventDefault();let w=!0;!g.isPressed&&!T.repeat&&(g.target=T.currentTarget,g.isPressed=!0,w=x(T,"keyboard"),b(vr(T.currentTarget),"keyup",I,!1)),w&&T.stopPropagation(),T.metaKey&&Gt()&&((D=g.metaKeyEvents)==null||D.set(T.key,T.nativeEvent))}else T.key==="Meta"&&(g.metaKeyEvents=new Map)},onKeyUp(T){g.target&&Rs(T.nativeEvent,T.currentTarget)&&!T.repeat&&T.currentTarget.contains(T.target)&&E(Nt(g.target,T),"keyboard")},onClick(T){if(!(T&&!T.currentTarget.contains(T.target))&&T&&T.button===0&&!g.isTriggeringEvent&&!At.isOpening){let D=!0;if(s&&T.preventDefault(),!g.ignoreClickAfterPress&&!g.ignoreEmulatedMouseEvents&&!g.isPressed&&(g.pointerType==="virtual"||Tn(T.nativeEvent))){!s&&!l&&tt(T.currentTarget);let w=x(T,"virtual"),M=E(T,"virtual"),O=P(T,"virtual");D=w&&M&&O}g.ignoreEmulatedMouseEvents=!1,g.ignoreClickAfterPress=!1,D&&T.stopPropagation()}}},I=T=>{var D,w;if(g.isPressed&&g.target&&Rs(T,g.target)){Cu(T.target,T.key)&&T.preventDefault();let M=T.target,O=P(Nt(g.target,T),"keyboard",g.target.contains(M));C(),O&&T.stopPropagation(),T.key!=="Enter"&&Bs(g.target)&&g.target.contains(M)&&!T[xu]&&(T[xu]=!0,At(g.target,T,!1)),g.isPressed=!1,(D=g.metaKeyEvents)==null||D.delete(T.key)}else if(T.key==="Meta"&&((w=g.metaKeyEvents)!=null&&w.size)){let M=g.metaKeyEvents;g.metaKeyEvents=null;for(let O of M.values())g.target&&g.target.dispatchEvent(new KeyboardEvent("keyup",O))}};if(typeof PointerEvent<"u"){A.onPointerDown=M=>{if(M.button!==0||!M.currentTarget.contains(M.target))return;if(_c(M.nativeEvent)){g.pointerType="virtual";return}Ks(M.currentTarget)&&M.preventDefault(),g.pointerType=M.pointerType;let O=!0;g.isPressed||(g.isPressed=!0,g.isOverTarget=!0,g.activePointerId=M.pointerId,g.target=M.currentTarget,!s&&!l&&tt(M.currentTarget),u||yu(g.target),O=x(M,g.pointerType),b(vr(M.currentTarget),"pointermove",T,!1),b(vr(M.currentTarget),"pointerup",D,!1),b(vr(M.currentTarget),"pointercancel",w,!1)),O&&M.stopPropagation()},A.onMouseDown=M=>{M.currentTarget.contains(M.target)&&M.button===0&&(Ks(M.currentTarget)&&M.preventDefault(),M.stopPropagation())},A.onPointerUp=M=>{!M.currentTarget.contains(M.target)||g.pointerType==="virtual"||M.button===0&&Yr(M,M.currentTarget)&&E(M,g.pointerType||M.pointerType)};let T=M=>{M.pointerId!==g.activePointerId||!g.target||(Yr(M,g.target)?g.isOverTarget||(g.isOverTarget=!0,x(Nt(g.target,M),g.pointerType)):g.isOverTarget&&(g.isOverTarget=!1,P(Nt(g.target,M),g.pointerType,!1),N(M)))},D=M=>{M.pointerId===g.activePointerId&&g.isPressed&&M.button===0&&g.target&&((Yr(M,g.target)||g.isOverTarget)&&P(Nt(g.target,M),g.pointerType),g.isPressed=!1,g.isOverTarget=!1,g.activePointerId=null,g.pointerType=null,C(),u||Qo(g.target))},w=M=>{S(M)};A.onDragStart=M=>{M.currentTarget.contains(M.target)&&S(M)}}else{A.onMouseDown=w=>{if(w.button!==0||!w.currentTarget.contains(w.target))return;if(Ks(w.currentTarget)&&w.preventDefault(),g.ignoreEmulatedMouseEvents){w.stopPropagation();return}g.isPressed=!0,g.isOverTarget=!0,g.target=w.currentTarget,g.pointerType=Tn(w.nativeEvent)?"virtual":"mouse",!s&&!l&&tt(w.currentTarget),x(w,g.pointerType)&&w.stopPropagation(),b(vr(w.currentTarget),"mouseup",T,!1)},A.onMouseEnter=w=>{if(!w.currentTarget.contains(w.target))return;let M=!0;g.isPressed&&!g.ignoreEmulatedMouseEvents&&(g.isOverTarget=!0,M=x(w,g.pointerType)),M&&w.stopPropagation()},A.onMouseLeave=w=>{if(!w.currentTarget.contains(w.target))return;let M=!0;g.isPressed&&!g.ignoreEmulatedMouseEvents&&(g.isOverTarget=!1,M=P(w,g.pointerType,!1),N(w)),M&&w.stopPropagation()},A.onMouseUp=w=>{w.currentTarget.contains(w.target)&&!g.ignoreEmulatedMouseEvents&&w.button===0&&E(w,g.pointerType||"mouse")};let T=w=>{if(w.button===0){if(g.isPressed=!1,C(),g.ignoreEmulatedMouseEvents){g.ignoreEmulatedMouseEvents=!1;return}g.target&&(Yr(w,g.target)?P(Nt(g.target,w),g.pointerType):g.isOverTarget&&P(Nt(g.target,w),g.pointerType,!1),g.isOverTarget=!1)}};A.onTouchStart=w=>{if(!w.currentTarget.contains(w.target))return;let M=E1(w.nativeEvent);if(!M)return;g.activePointerId=M.identifier,g.ignoreEmulatedMouseEvents=!0,g.isOverTarget=!0,g.isPressed=!0,g.target=w.currentTarget,g.pointerType="touch",!s&&!l&&tt(w.currentTarget),u||yu(g.target),x(w,g.pointerType)&&w.stopPropagation(),b(zs(w.currentTarget),"scroll",D,!0)},A.onTouchMove=w=>{if(!w.currentTarget.contains(w.target))return;if(!g.isPressed){w.stopPropagation();return}let M=wu(w.nativeEvent,g.activePointerId),O=!0;M&&Yr(M,w.currentTarget)?g.isOverTarget||(g.isOverTarget=!0,O=x(w,g.pointerType)):g.isOverTarget&&(g.isOverTarget=!1,O=P(w,g.pointerType,!1),N(w)),O&&w.stopPropagation()},A.onTouchEnd=w=>{if(!w.currentTarget.contains(w.target))return;if(!g.isPressed){w.stopPropagation();return}let M=wu(w.nativeEvent,g.activePointerId),O=!0;M&&Yr(M,w.currentTarget)?(E(w,g.pointerType),O=P(w,g.pointerType)):g.isOverTarget&&(O=P(w,g.pointerType,!1)),O&&w.stopPropagation(),g.isPressed=!1,g.activePointerId=null,g.isOverTarget=!1,g.ignoreEmulatedMouseEvents=!0,!u&&g.target&&Qo(g.target),C()},A.onTouchCancel=w=>{w.currentTarget.contains(w.target)&&(w.stopPropagation(),g.isPressed&&S(w))};let D=w=>{g.isPressed&&w.target.contains(g.target)&&S({currentTarget:g.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};A.onDragStart=w=>{w.currentTarget.contains(w.target)&&S(w)}}return A},[b,s,l,C,u,S,N,P,x,E]);return f.useEffect(()=>()=>{!u&&y.current.target&&Qo(y.current.target)},[u]),{isPressed:i||p,pressProps:se(h,L)}}function Bs(e){return e.tagName==="A"&&e.hasAttribute("href")}function Rs(e,t){const{key:r,code:n}=e,o=t,a=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof zs(o).HTMLInputElement&&!Pu(o,r)||o instanceof zs(o).HTMLTextAreaElement||o.isContentEditable)&&!((a==="link"||!a&&Bs(o))&&r!=="Enter")}function E1(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function wu(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===t)return o}return null}function Nt(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function S1(e){let t=e.width?e.width/2:e.radiusX||0,r=e.height?e.height/2:e.radiusY||0;return{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function $1(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Yr(e,t){let r=t.getBoundingClientRect(),n=S1(e);return $1(r,n)}function Ks(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function Cu(e,t){return e instanceof HTMLInputElement?!Pu(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Bs(e)}var D1=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Pu(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":D1.has(e.type)}var I1=e=>j.jsx("svg",{"aria-hidden":"true",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:j.jsx("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:"currentColor"})});const Mu=f.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Xo=f.createContext({}),Zo=f.createContext(null),Jo=typeof document<"u",Us=Jo?f.useLayoutEffect:f.useEffect,Tu=f.createContext({strict:!1}),Hs=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Eu="data-"+Hs("framerAppearId");function k1(e,t,r,n){const{visualElement:o}=f.useContext(Xo),a=f.useContext(Tu),s=f.useContext(Zo),i=f.useContext(Mu).reducedMotion,l=f.useRef();n=n||a.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:o,props:r,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:i}));const c=l.current;f.useInsertionEffect(()=>{c&&c.update(r,s)});const u=f.useRef(!!(r[Eu]&&!window.HandoffComplete));return Us(()=>{c&&(c.render(),u.current&&c.animationState&&c.animationState.animateChanges())}),f.useEffect(()=>{c&&(c.updateFeatures(),!u.current&&c.animationState&&c.animationState.animateChanges(),u.current&&(u.current=!1,window.HandoffComplete=!0))}),c}function Gr(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function A1(e,t,r){return f.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Gr(r)&&(r.current=n))},[t])}function kn(e){return typeof e=="string"||Array.isArray(e)}function ea(e){return typeof e=="object"&&typeof e.start=="function"}const Ys=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Gs=["initial",...Ys];function ta(e){return ea(e.animate)||Gs.some(t=>kn(e[t]))}function Su(e){return!!(ta(e)||e.variants)}function O1(e,t){if(ta(e)){const{initial:r,animate:n}=e;return{initial:r===!1||kn(r)?r:void 0,animate:kn(n)?n:void 0}}return e.inherit!==!1?t:{}}function N1(e){const{initial:t,animate:r}=O1(e,f.useContext(Xo));return f.useMemo(()=>({initial:t,animate:r}),[$u(t),$u(r)])}function $u(e){return Array.isArray(e)?e.join(" "):e}const Du={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},An={};for(const e in Du)An[e]={isEnabled:t=>Du[e].some(r=>!!t[r])};function L1(e){for(const t in e)An[t]={...An[t],...e[t]}}const On=f.createContext({}),Iu=f.createContext({}),j1=Symbol.for("motionComponentSymbol");function _1({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:o}){e&&L1(e);function a(i,l){let c;const u={...f.useContext(Mu),...i,layoutId:F1(i)},{isStatic:d}=u,h=N1(i),p=n(i,d);if(!d&&Jo){h.visualElement=k1(o,p,u,t);const m=f.useContext(Iu),y=f.useContext(Tu).strict;h.visualElement&&(c=h.visualElement.loadFeatures(u,y,e,m))}return U.createElement(Xo.Provider,{value:h},c&&h.visualElement?U.createElement(c,{visualElement:h.visualElement,...u}):null,r(o,i,A1(p,h.visualElement,l),p,d,h.visualElement))}const s=f.forwardRef(a);return s[j1]=o,s}function F1({layoutId:e}){const t=f.useContext(On).id;return t&&e!==void 0?t+"-"+e:e}function V1(e){function t(n,o={}){return _1(e(n,o))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,o)=>(r.has(o)||r.set(o,t(o)),r.get(o))})}const z1=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function qs(e){return typeof e!="string"||e.includes("-")?!1:!!(z1.indexOf(e)>-1||/[A-Z]/.test(e))}const ra={};function W1(e){Object.assign(ra,e)}const Nn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],br=new Set(Nn);function ku(e,{layout:t,layoutId:r}){return br.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!ra[e]||e==="opacity")}const qe=e=>!!(e&&e.getVelocity),B1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},R1=Nn.length;function K1(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,o){let a="";for(let s=0;s<R1;s++){const i=Nn[s];if(e[i]!==void 0){const l=B1[i]||i;a+=`${l}(${e[i]}) `}}return t&&!e.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(e,n?"":a):r&&n&&(a="none"),a}const Au=e=>t=>typeof t=="string"&&t.startsWith(e),Ou=Au("--"),Qs=Au("var(--"),U1=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,H1=(e,t)=>t&&typeof e=="number"?t.transform(e):e,qt=(e,t,r)=>Math.min(Math.max(r,e),t),yr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ln={...yr,transform:e=>qt(0,1,e)},na={...yr,default:1},jn=e=>Math.round(e*1e5)/1e5,oa=/(-)?([\d]*\.?[\d])+/g,Nu=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Y1=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function _n(e){return typeof e=="string"}const Fn=e=>({test:t=>_n(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Qt=Fn("deg"),Tt=Fn("%"),ne=Fn("px"),G1=Fn("vh"),q1=Fn("vw"),Lu={...Tt,parse:e=>Tt.parse(e)/100,transform:e=>Tt.transform(e*100)},ju={...yr,transform:Math.round},_u={borderWidth:ne,borderTopWidth:ne,borderRightWidth:ne,borderBottomWidth:ne,borderLeftWidth:ne,borderRadius:ne,radius:ne,borderTopLeftRadius:ne,borderTopRightRadius:ne,borderBottomRightRadius:ne,borderBottomLeftRadius:ne,width:ne,maxWidth:ne,height:ne,maxHeight:ne,size:ne,top:ne,right:ne,bottom:ne,left:ne,padding:ne,paddingTop:ne,paddingRight:ne,paddingBottom:ne,paddingLeft:ne,margin:ne,marginTop:ne,marginRight:ne,marginBottom:ne,marginLeft:ne,rotate:Qt,rotateX:Qt,rotateY:Qt,rotateZ:Qt,scale:na,scaleX:na,scaleY:na,scaleZ:na,skew:Qt,skewX:Qt,skewY:Qt,distance:ne,translateX:ne,translateY:ne,translateZ:ne,x:ne,y:ne,z:ne,perspective:ne,transformPerspective:ne,opacity:Ln,originX:Lu,originY:Lu,originZ:ne,zIndex:ju,fillOpacity:Ln,strokeOpacity:Ln,numOctaves:ju};function Xs(e,t,r,n){const{style:o,vars:a,transform:s,transformOrigin:i}=e;let l=!1,c=!1,u=!0;for(const d in t){const h=t[d];if(Ou(d)){a[d]=h;continue}const p=_u[d],m=H1(h,p);if(br.has(d)){if(l=!0,s[d]=m,!u)continue;h!==(p.default||0)&&(u=!1)}else d.startsWith("origin")?(c=!0,i[d]=m):o[d]=m}if(t.transform||(l||n?o.transform=K1(e.transform,r,u,n):o.transform&&(o.transform="none")),c){const{originX:d="50%",originY:h="50%",originZ:p=0}=i;o.transformOrigin=`${d} ${h} ${p}`}}const Zs=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Fu(e,t,r){for(const n in t)!qe(t[n])&&!ku(n,r)&&(e[n]=t[n])}function Q1({transformTemplate:e},t,r){return f.useMemo(()=>{const n=Zs();return Xs(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function X1(e,t,r){const n=e.style||{},o={};return Fu(o,n,e),Object.assign(o,Q1(e,t,r)),e.transformValues?e.transformValues(o):o}function Z1(e,t,r){const n={},o=X1(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const J1=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function aa(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||J1.has(e)}let Vu=e=>!aa(e);function ev(e){e&&(Vu=t=>t.startsWith("on")?!aa(t):e(t))}try{ev(require("@emotion/is-prop-valid").default)}catch{}function tv(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||(Vu(o)||r===!0&&aa(o)||!t&&!aa(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}function zu(e,t,r){return typeof e=="string"?e:ne.transform(t+r*e)}function rv(e,t,r){const n=zu(t,e.x,e.width),o=zu(r,e.y,e.height);return`${n} ${o}`}const nv={offset:"stroke-dashoffset",array:"stroke-dasharray"},ov={offset:"strokeDashoffset",array:"strokeDasharray"};function av(e,t,r=1,n=0,o=!0){e.pathLength=1;const a=o?nv:ov;e[a.offset]=ne.transform(-n);const s=ne.transform(t),i=ne.transform(r);e[a.array]=`${s} ${i}`}function Js(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:a,pathLength:s,pathSpacing:i=1,pathOffset:l=0,...c},u,d,h){if(Xs(e,c,u,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:m,dimensions:y}=e;p.transform&&(y&&(m.transform=p.transform),delete p.transform),y&&(o!==void 0||a!==void 0||m.transform)&&(m.transformOrigin=rv(y,o!==void 0?o:.5,a!==void 0?a:.5)),t!==void 0&&(p.x=t),r!==void 0&&(p.y=r),n!==void 0&&(p.scale=n),s!==void 0&&av(p,s,i,l,!1)}const Wu=()=>({...Zs(),attrs:{}}),ei=e=>typeof e=="string"&&e.toLowerCase()==="svg";function sv(e,t,r,n){const o=f.useMemo(()=>{const a=Wu();return Js(a,t,{enableHardwareAcceleration:!1},ei(n),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};Fu(a,e.style,e),o.style={...a,...o.style}}return o}function iv(e=!1){return(r,n,o,{latestValues:a},s)=>{const l=(qs(r)?sv:Z1)(n,a,s,r),u={...tv(n,typeof r=="string",e),...l,ref:o},{children:d}=n,h=f.useMemo(()=>qe(d)?d.get():d,[d]);return f.createElement(r,{...u,children:h})}}function Bu(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(const a in r)e.style.setProperty(a,r[a])}const Ru=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ku(e,t,r,n){Bu(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(Ru.has(o)?o:Hs(o),t.attrs[o])}function ti(e,t){const{style:r}=e,n={};for(const o in r)(qe(r[o])||t.style&&qe(t.style[o])||ku(o,e))&&(n[o]=r[o]);return n}function Uu(e,t){const r=ti(e,t);for(const n in e)if(qe(e[n])||qe(t[n])){const o=Nn.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[o]=e[n]}return r}function ri(e,t,r,n={},o={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),t}function Hu(e){const t=f.useRef(null);return t.current===null&&(t.current=e()),t.current}const sa=e=>Array.isArray(e),lv=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),cv=e=>sa(e)?e[e.length-1]||0:e;function ia(e){const t=qe(e)?e.get():e;return lv(t)?t.toValue():t}function uv({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,a){const s={latestValues:dv(n,o,a,e),renderState:t()};return r&&(s.mount=i=>r(n,i,s)),s}const Yu=e=>(t,r)=>{const n=f.useContext(Xo),o=f.useContext(Zo),a=()=>uv(e,t,n,o);return r?a():Hu(a)};function dv(e,t,r,n){const o={},a=n(e,{});for(const h in a)o[h]=ia(a[h]);let{initial:s,animate:i}=e;const l=ta(e),c=Su(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),i===void 0&&(i=t.animate));let u=r?r.initial===!1:!1;u=u||s===!1;const d=u?i:s;return d&&typeof d!="boolean"&&!ea(d)&&(Array.isArray(d)?d:[d]).forEach(p=>{const m=ri(e,p);if(!m)return;const{transitionEnd:y,transition:b,...C}=m;for(const x in C){let P=C[x];if(Array.isArray(P)){const E=u?P.length-1:0;P=P[E]}P!==null&&(o[x]=P)}for(const x in y)o[x]=y[x]}),o}const Le=e=>e;class Gu{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function fv(e){let t=new Gu,r=new Gu,n=0,o=!1,a=!1;const s=new WeakSet,i={schedule:(l,c=!1,u=!1)=>{const d=u&&o,h=d?t:r;return c&&s.add(l),h.add(l)&&d&&o&&(n=t.order.length),l},cancel:l=>{r.remove(l),s.delete(l)},process:l=>{if(o){a=!0;return}if(o=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let c=0;c<n;c++){const u=t.order[c];u(l),s.has(u)&&(i.schedule(u),e())}o=!1,a&&(a=!1,i.process(l))}};return i}const la=["prepare","read","update","preRender","render","postRender"],pv=40;function hv(e,t){let r=!1,n=!0;const o={delta:0,timestamp:0,isProcessing:!1},a=la.reduce((d,h)=>(d[h]=fv(()=>r=!0),d),{}),s=d=>a[d].process(o),i=()=>{const d=performance.now();r=!1,o.delta=n?1e3/60:Math.max(Math.min(d-o.timestamp,pv),1),o.timestamp=d,o.isProcessing=!0,la.forEach(s),o.isProcessing=!1,r&&t&&(n=!1,e(i))},l=()=>{r=!0,n=!0,o.isProcessing||e(i)};return{schedule:la.reduce((d,h)=>{const p=a[h];return d[h]=(m,y=!1,b=!1)=>(r||l(),p.schedule(m,y,b)),d},{}),cancel:d=>la.forEach(h=>a[h].cancel(d)),state:o,steps:a}}const{schedule:Se,cancel:Lt,state:Re,steps:ni}=hv(typeof requestAnimationFrame<"u"?requestAnimationFrame:Le,!0),mv={useVisualState:Yu({scrapeMotionValuesFromProps:Uu,createRenderState:Wu,onMount:(e,t,{renderState:r,latestValues:n})=>{Se.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),Se.render(()=>{Js(r,n,{enableHardwareAcceleration:!1},ei(t.tagName),e.transformTemplate),Ku(t,r)})}})},gv={useVisualState:Yu({scrapeMotionValuesFromProps:ti,createRenderState:Zs})};function vv(e,{forwardMotionProps:t=!1},r,n){return{...qs(e)?mv:gv,preloadedFeatures:r,useRender:iv(t),createVisualElement:n,Component:e}}function jt(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const qu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function ca(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const bv=e=>t=>qu(t)&&e(t,ca(t));function _t(e,t,r,n){return jt(e,t,bv(r),n)}const yv=(e,t)=>r=>t(e(r)),Xt=(...e)=>e.reduce(yv);function Qu(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const Xu=Qu("dragHorizontal"),Zu=Qu("dragVertical");function Ju(e){let t=!1;if(e==="y")t=Zu();else if(e==="x")t=Xu();else{const r=Xu(),n=Zu();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function ed(){const e=Ju(!0);return e?(e(),!1):!0}class Zt{constructor(t){this.isMounted=!1,this.node=t}update(){}}function td(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),o=(a,s)=>{if(a.type==="touch"||ed())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[n]&&Se.update(()=>i[n](a,s))};return _t(e.current,r,o,{passive:!e.getProps()[n]})}class xv extends Zt{mount(){this.unmount=Xt(td(this.node,!0),td(this.node,!1))}unmount(){}}class wv extends Zt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Xt(jt(this.node.current,"focus",()=>this.onFocus()),jt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const rd=(e,t)=>t?e===t?!0:rd(e,t.parentElement):!1;function oi(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,ca(r))}class Cv extends Zt{constructor(){super(...arguments),this.removeStartListeners=Le,this.removeEndListeners=Le,this.removeAccessibleListeners=Le,this.startPointerPress=(t,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),a=_t(window,"pointerup",(i,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u}=this.node.getProps();Se.update(()=>{rd(this.node.current,i.target)?c&&c(i,l):u&&u(i,l)})},{passive:!(n.onTap||n.onPointerUp)}),s=_t(window,"pointercancel",(i,l)=>this.cancelPress(i,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Xt(a,s),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=a=>{if(a.key!=="Enter"||this.isPressing)return;const s=i=>{i.key!=="Enter"||!this.checkPressEnd()||oi("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&Se.update(()=>u(l,c))})};this.removeEndListeners(),this.removeEndListeners=jt(this.node.current,"keyup",s),oi("down",(i,l)=>{this.startPress(i,l)})},r=jt(this.node.current,"keydown",t),n=()=>{this.isPressing&&oi("cancel",(a,s)=>this.cancelPress(a,s))},o=jt(this.node.current,"blur",n);this.removeAccessibleListeners=Xt(r,o)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Se.update(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ed()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Se.update(()=>n(t,r))}mount(){const t=this.node.getProps(),r=_t(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=jt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Xt(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const ai=new WeakMap,si=new WeakMap,Pv=e=>{const t=ai.get(e.target);t&&t(e)},Mv=e=>{e.forEach(Pv)};function Tv({root:e,...t}){const r=e||document;si.has(r)||si.set(r,{});const n=si.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(Mv,{root:e,...t})),n[o]}function Ev(e,t,r){const n=Tv(t);return ai.set(e,r),n.observe(e),()=>{ai.delete(e),n.unobserve(e)}}const Sv={some:0,all:1};class $v extends Zt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:o="some",once:a}=t,s={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:Sv[o]},i=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,a&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),h=c?u:d;h&&h(l)};return Ev(this.node.current,s,i)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(Dv(t,r))&&this.startObserver()}unmount(){}}function Dv({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const Iv={inView:{Feature:$v},tap:{Feature:Cv},focus:{Feature:wv},hover:{Feature:xv}};function nd(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function kv(e){const t={};return e.values.forEach((r,n)=>t[n]=r.get()),t}function Av(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function ua(e,t,r){const n=e.getProps();return ri(n,t,r!==void 0?r:n.custom,kv(e),Av(e))}let Vn=Le,bt=Le;process.env.NODE_ENV!=="production"&&(Vn=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},bt=(e,t)=>{if(!e)throw new Error(t)});const Jt=e=>e*1e3,Ft=e=>e/1e3,Ov={current:!1},od=e=>Array.isArray(e)&&typeof e[0]=="number";function ad(e){return!!(!e||typeof e=="string"&&sd[e]||od(e)||Array.isArray(e)&&e.every(ad))}const zn=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,sd={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zn([0,.65,.55,1]),circOut:zn([.55,0,1,.45]),backIn:zn([.31,.01,.66,-.59]),backOut:zn([.33,1.53,.69,.99])};function id(e){if(e)return od(e)?zn(e):Array.isArray(e)?e.map(id):sd[e]}function Nv(e,t,r,{delay:n=0,duration:o,repeat:a=0,repeatType:s="loop",ease:i,times:l}={}){const c={[t]:r};l&&(c.offset=l);const u=id(i);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:n,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"})}function Lv(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const ld=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,jv=1e-7,_v=12;function Fv(e,t,r,n,o){let a,s,i=0;do s=t+(r-t)/2,a=ld(s,n,o)-e,a>0?r=s:t=s;while(Math.abs(a)>jv&&++i<_v);return s}function Wn(e,t,r,n){if(e===t&&r===n)return Le;const o=a=>Fv(a,0,1,e,r);return a=>a===0||a===1?a:ld(o(a),t,n)}const Vv=Wn(.42,0,1,1),zv=Wn(0,0,.58,1),cd=Wn(.42,0,.58,1),Wv=e=>Array.isArray(e)&&typeof e[0]!="number",ud=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,dd=e=>t=>1-e(1-t),ii=e=>1-Math.sin(Math.acos(e)),fd=dd(ii),Bv=ud(ii),pd=Wn(.33,1.53,.69,.99),li=dd(pd),Rv=ud(li),hd={linear:Le,easeIn:Vv,easeInOut:cd,easeOut:zv,circIn:ii,circInOut:Bv,circOut:fd,backIn:li,backInOut:Rv,backOut:pd,anticipate:e=>(e*=2)<1?.5*li(e):.5*(2-Math.pow(2,-10*(e-1)))},md=e=>{if(Array.isArray(e)){bt(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,r,n,o]=e;return Wn(t,r,n,o)}else if(typeof e=="string")return bt(hd[e]!==void 0,`Invalid easing type '${e}'`),hd[e];return e},ci=(e,t)=>r=>!!(_n(r)&&Y1.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),gd=(e,t,r)=>n=>{if(!_n(n))return n;const[o,a,s,i]=n.match(oa);return{[e]:parseFloat(o),[t]:parseFloat(a),[r]:parseFloat(s),alpha:i!==void 0?parseFloat(i):1}},Kv=e=>qt(0,255,e),ui={...yr,transform:e=>Math.round(Kv(e))},xr={test:ci("rgb","red"),parse:gd("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+ui.transform(e)+", "+ui.transform(t)+", "+ui.transform(r)+", "+jn(Ln.transform(n))+")"};function Uv(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const di={test:ci("#"),parse:Uv,transform:xr.transform},qr={test:ci("hsl","hue"),parse:gd("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Tt.transform(jn(t))+", "+Tt.transform(jn(r))+", "+jn(Ln.transform(n))+")"},Ue={test:e=>xr.test(e)||di.test(e)||qr.test(e),parse:e=>xr.test(e)?xr.parse(e):qr.test(e)?qr.parse(e):di.parse(e),transform:e=>_n(e)?e:e.hasOwnProperty("red")?xr.transform(e):qr.transform(e)},Ne=(e,t,r)=>-r*e+r*t+e;function fi(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Hv({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,a=0,s=0;if(!t)o=a=s=r;else{const i=r<.5?r*(1+t):r+t-r*t,l=2*r-i;o=fi(l,i,e+1/3),a=fi(l,i,e),s=fi(l,i,e-1/3)}return{red:Math.round(o*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:n}}const pi=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},Yv=[di,xr,qr],Gv=e=>Yv.find(t=>t.test(e));function vd(e){const t=Gv(e);bt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===qr&&(r=Hv(r)),r}const bd=(e,t)=>{const r=vd(e),n=vd(t),o={...r};return a=>(o.red=pi(r.red,n.red,a),o.green=pi(r.green,n.green,a),o.blue=pi(r.blue,n.blue,a),o.alpha=Ne(r.alpha,n.alpha,a),xr.transform(o))};function qv(e){var t,r;return isNaN(e)&&_n(e)&&(((t=e.match(oa))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(Nu))===null||r===void 0?void 0:r.length)||0)>0}const yd={regex:U1,countKey:"Vars",token:"${v}",parse:Le},xd={regex:Nu,countKey:"Colors",token:"${c}",parse:Ue.parse},wd={regex:oa,countKey:"Numbers",token:"${n}",parse:yr.parse};function hi(e,{regex:t,countKey:r,token:n,parse:o}){const a=e.tokenised.match(t);a&&(e["num"+r]=a.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...a.map(o)))}function da(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&hi(r,yd),hi(r,xd),hi(r,wd),r}function Cd(e){return da(e).values}function Pd(e){const{values:t,numColors:r,numVars:n,tokenised:o}=da(e),a=t.length;return s=>{let i=o;for(let l=0;l<a;l++)l<n?i=i.replace(yd.token,s[l]):l<n+r?i=i.replace(xd.token,Ue.transform(s[l])):i=i.replace(wd.token,jn(s[l]));return i}}const Qv=e=>typeof e=="number"?0:e;function Xv(e){const t=Cd(e);return Pd(e)(t.map(Qv))}const er={test:qv,parse:Cd,createTransformer:Pd,getAnimatableNone:Xv},Md=(e,t)=>r=>`${r>0?t:e}`;function Td(e,t){return typeof e=="number"?r=>Ne(e,t,r):Ue.test(e)?bd(e,t):e.startsWith("var(")?Md(e,t):Sd(e,t)}const Ed=(e,t)=>{const r=[...e],n=r.length,o=e.map((a,s)=>Td(a,t[s]));return a=>{for(let s=0;s<n;s++)r[s]=o[s](a);return r}},Zv=(e,t)=>{const r={...e,...t},n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=Td(e[o],t[o]));return o=>{for(const a in n)r[a]=n[a](o);return r}},Sd=(e,t)=>{const r=er.createTransformer(t),n=da(e),o=da(t);return n.numVars===o.numVars&&n.numColors===o.numColors&&n.numNumbers>=o.numNumbers?Xt(Ed(n.values,o.values),r):(Vn(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Md(e,t))},Bn=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},$d=(e,t)=>r=>Ne(e,t,r);function Jv(e){return typeof e=="number"?$d:typeof e=="string"?Ue.test(e)?bd:Sd:Array.isArray(e)?Ed:typeof e=="object"?Zv:$d}function eb(e,t,r){const n=[],o=r||Jv(e[0]),a=e.length-1;for(let s=0;s<a;s++){let i=o(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||Le:t;i=Xt(l,i)}n.push(i)}return n}function Dd(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const a=e.length;if(bt(a===t.length,"Both input and output ranges must be the same length"),a===1)return()=>t[0];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=eb(t,n,o),i=s.length,l=c=>{let u=0;if(i>1)for(;u<e.length-2&&!(c<e[u+1]);u++);const d=Bn(e[u],e[u+1],c);return s[u](d)};return r?c=>l(qt(e[0],e[a-1],c)):l}function tb(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=Bn(0,t,n);e.push(Ne(r,1,o))}}function rb(e){const t=[0];return tb(t,e.length-1),t}function nb(e,t){return e.map(r=>r*t)}function ob(e,t){return e.map(()=>t||cd).splice(0,e.length-1)}function fa({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=Wv(n)?n.map(md):md(n),a={done:!1,value:t[0]},s=nb(r&&r.length===t.length?r:rb(t),e),i=Dd(s,t,{ease:Array.isArray(o)?o:ob(t,o)});return{calculatedDuration:e,next:l=>(a.value=i(l),a.done=l>=e,a)}}function Id(e,t){return t?e*(1e3/t):0}const ab=5;function kd(e,t,r){const n=Math.max(t-ab,0);return Id(r-e(n),t-n)}const mi=.001,sb=.01,Ad=10,ib=.05,lb=1;function cb({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,a;Vn(e<=Jt(Ad),"Spring duration must be 10 seconds or less");let s=1-t;s=qt(ib,lb,s),e=qt(sb,Ad,Ft(e)),s<1?(o=c=>{const u=c*s,d=u*e,h=u-r,p=gi(c,s),m=Math.exp(-d);return mi-h/p*m},a=c=>{const d=c*s*e,h=d*r+r,p=Math.pow(s,2)*Math.pow(c,2)*e,m=Math.exp(-d),y=gi(Math.pow(c,2),s);return(-o(c)+mi>0?-1:1)*((h-p)*m)/y}):(o=c=>{const u=Math.exp(-c*e),d=(c-r)*e+1;return-mi+u*d},a=c=>{const u=Math.exp(-c*e),d=(r-c)*(e*e);return u*d});const i=5/e,l=db(o,a,i);if(e=Jt(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*n;return{stiffness:c,damping:s*2*Math.sqrt(n*c),duration:e}}}const ub=12;function db(e,t,r){let n=r;for(let o=1;o<ub;o++)n=n-e(n)/t(n);return n}function gi(e,t){return e*Math.sqrt(1-t*t)}const fb=["duration","bounce"],pb=["stiffness","damping","mass"];function Od(e,t){return t.some(r=>e[r]!==void 0)}function hb(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Od(e,pb)&&Od(e,fb)){const r=cb(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function Nd({keyframes:e,restDelta:t,restSpeed:r,...n}){const o=e[0],a=e[e.length-1],s={done:!1,value:o},{stiffness:i,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:h}=hb(n),p=u?-Ft(u):0,m=l/(2*Math.sqrt(i*c)),y=a-o,b=Ft(Math.sqrt(i/c)),C=Math.abs(y)<5;r||(r=C?.01:2),t||(t=C?.005:.5);let x;if(m<1){const P=gi(b,m);x=E=>{const S=Math.exp(-m*b*E);return a-S*((p+m*b*y)/P*Math.sin(P*E)+y*Math.cos(P*E))}}else if(m===1)x=P=>a-Math.exp(-b*P)*(y+(p+b*y)*P);else{const P=b*Math.sqrt(m*m-1);x=E=>{const S=Math.exp(-m*b*E),N=Math.min(P*E,300);return a-S*((p+m*b*y)*Math.sinh(N)+P*y*Math.cosh(N))/P}}return{calculatedDuration:h&&d||null,next:P=>{const E=x(P);if(h)s.done=P>=d;else{let S=p;P!==0&&(m<1?S=kd(x,P,E):S=0);const N=Math.abs(S)<=r,L=Math.abs(a-E)<=t;s.done=N&&L}return s.value=s.done?a:E,s}}}function Ld({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:s,min:i,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},p=g=>i!==void 0&&g<i||l!==void 0&&g>l,m=g=>i===void 0?l:l===void 0||Math.abs(i-g)<Math.abs(l-g)?i:l;let y=r*t;const b=d+y,C=s===void 0?b:s(b);C!==b&&(y=C-d);const x=g=>-y*Math.exp(-g/n),P=g=>C+x(g),E=g=>{const A=x(g),I=P(g);h.done=Math.abs(A)<=c,h.value=h.done?C:I};let S,N;const L=g=>{p(h.value)&&(S=g,N=Nd({keyframes:[h.value,m(h.value)],velocity:kd(P,g,h.value),damping:o,stiffness:a,restDelta:c,restSpeed:u}))};return L(0),{calculatedDuration:null,next:g=>{let A=!1;return!N&&S===void 0&&(A=!0,E(g),L(g)),S!==void 0&&g>S?N.next(g-S):(!A&&E(g),h)}}}const mb=e=>{const t=({timestamp:r})=>e(r);return{start:()=>Se.update(t,!0),stop:()=>Lt(t),now:()=>Re.isProcessing?Re.timestamp:performance.now()}},jd=2e4;function _d(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<jd;)t+=r,n=e.next(t);return t>=jd?1/0:t}const gb={decay:Ld,inertia:Ld,tween:fa,keyframes:fa,spring:Nd};function pa({autoplay:e=!0,delay:t=0,driver:r=mb,keyframes:n,type:o="keyframes",repeat:a=0,repeatDelay:s=0,repeatType:i="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...h}){let p=1,m=!1,y,b;const C=()=>{b=new Promise(R=>{y=R})};C();let x;const P=gb[o]||fa;let E;P!==fa&&typeof n[0]!="number"&&(E=Dd([0,100],n,{clamp:!1}),n=[0,100]);const S=P({...h,keyframes:n});let N;i==="mirror"&&(N=P({...h,keyframes:[...n].reverse(),velocity:-(h.velocity||0)}));let L="idle",g=null,A=null,I=null;S.calculatedDuration===null&&a&&(S.calculatedDuration=_d(S));const{calculatedDuration:T}=S;let D=1/0,w=1/0;T!==null&&(D=T+s,w=D*(a+1)-s);let M=0;const O=R=>{if(A===null)return;p>0&&(A=Math.min(A,R)),p<0&&(A=Math.min(R-w/p,A)),g!==null?M=g:M=Math.round(R-A)*p;const re=M-t*(p>=0?1:-1),H=p>=0?re<0:re>w;M=Math.max(re,0),L==="finished"&&g===null&&(M=w);let ie=M,ee=S;if(a){const fe=M/D;let de=Math.floor(fe),pe=fe%1;!pe&&fe>=1&&(pe=1),pe===1&&de--,de=Math.min(de,a+1);const Te=!!(de%2);Te&&(i==="reverse"?(pe=1-pe,s&&(pe-=s/D)):i==="mirror"&&(ee=N));let Ee=qt(0,1,pe);M>w&&(Ee=i==="reverse"&&Te?1:0),ie=Ee*D}const te=H?{done:!1,value:n[0]}:ee.next(ie);E&&(te.value=E(te.value));let{done:ve}=te;!H&&T!==null&&(ve=p>=0?M>=w:M<=0);const be=g===null&&(L==="finished"||L==="running"&&ve);return d&&d(te.value),be&&V(),te},F=()=>{x&&x.stop(),x=void 0},$=()=>{L="idle",F(),y(),C(),A=I=null},V=()=>{L="finished",u&&u(),F(),y()},Y=()=>{if(m)return;x||(x=r(O));const R=x.now();l&&l(),g!==null?A=R-g:(!A||L==="finished")&&(A=R),L==="finished"&&C(),I=A,g=null,L="running",x.start()};e&&Y();const K={then(R,re){return b.then(R,re)},get time(){return Ft(M)},set time(R){R=Jt(R),M=R,g!==null||!x||p===0?g=R:A=x.now()-R/p},get duration(){const R=S.calculatedDuration===null?_d(S):S.calculatedDuration;return Ft(R)},get speed(){return p},set speed(R){R===p||!x||(p=R,K.time=Ft(M))},get state(){return L},play:Y,pause:()=>{L="paused",g=M},stop:()=>{m=!0,L!=="idle"&&(L="idle",c&&c(),$())},cancel:()=>{I!==null&&O(I),$()},complete:()=>{L="finished"},sample:R=>(A=0,O(R))};return K}function vb(e){let t;return()=>(t===void 0&&(t=e()),t)}const bb=vb(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),yb=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ha=10,xb=2e4,wb=(e,t)=>t.type==="spring"||e==="backgroundColor"||!ad(t.ease);function Cb(e,t,{onUpdate:r,onComplete:n,...o}){if(!(bb()&&yb.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let s=!1,i,l;const c=()=>{l=new Promise(x=>{i=x})};c();let{keyframes:u,duration:d=300,ease:h,times:p}=o;if(wb(t,o)){const x=pa({...o,repeat:0,delay:0});let P={done:!1,value:u[0]};const E=[];let S=0;for(;!P.done&&S<xb;)P=x.sample(S),E.push(P.value),S+=ha;p=void 0,u=E,d=S-ha,h="linear"}const m=Nv(e.owner.current,t,u,{...o,duration:d,ease:h,times:p}),y=()=>m.cancel(),b=()=>{Se.update(y),i(),c()};return m.onfinish=()=>{e.set(Lv(u,o)),n&&n(),b()},{then(x,P){return l.then(x,P)},attachTimeline(x){return m.timeline=x,m.onfinish=null,Le},get time(){return Ft(m.currentTime||0)},set time(x){m.currentTime=Jt(x)},get speed(){return m.playbackRate},set speed(x){m.playbackRate=x},get duration(){return Ft(d)},play:()=>{s||(m.play(),Lt(y))},pause:()=>m.pause(),stop:()=>{if(s=!0,m.playState==="idle")return;const{currentTime:x}=m;if(x){const P=pa({...o,autoplay:!1});e.setWithVelocity(P.sample(x-ha).value,P.sample(x).value,ha)}b()},complete:()=>m.finish(),cancel:b}}function Pb({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const o=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:Le,pause:Le,stop:Le,then:a=>(a(),Promise.resolve()),cancel:Le,complete:Le});return t?pa({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const Mb={type:"spring",stiffness:500,damping:25,restSpeed:10},Tb=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Eb={type:"keyframes",duration:.8},Sb={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},$b=(e,{keyframes:t})=>t.length>2?Eb:br.has(e)?e.startsWith("scale")?Tb(t[1]):Mb:Sb,vi=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(er.test(t)||t==="0")&&!t.startsWith("url(")),Db=new Set(["brightness","contrast","saturate","opacity"]);function Ib(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(oa)||[];if(!n)return e;const o=r.replace(n,"");let a=Db.has(t)?1:0;return n!==r&&(a*=100),t+"("+a+o+")"}const kb=/([a-z-]*)\(.*?\)/g,bi={...er,getAnimatableNone:e=>{const t=e.match(kb);return t?t.map(Ib).join(" "):e}},Ab={..._u,color:Ue,backgroundColor:Ue,outlineColor:Ue,fill:Ue,stroke:Ue,borderColor:Ue,borderTopColor:Ue,borderRightColor:Ue,borderBottomColor:Ue,borderLeftColor:Ue,filter:bi,WebkitFilter:bi},yi=e=>Ab[e];function Fd(e,t){let r=yi(e);return r!==bi&&(r=er),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const Vd=e=>/^0[^.\s]+$/.test(e);function Ob(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Vd(e)}function Nb(e,t,r,n){const o=vi(t,r);let a;Array.isArray(r)?a=[...r]:a=[null,r];const s=n.from!==void 0?n.from:e.get();let i;const l=[];for(let c=0;c<a.length;c++)a[c]===null&&(a[c]=c===0?s:a[c-1]),Ob(a[c])&&l.push(c),typeof a[c]=="string"&&a[c]!=="none"&&a[c]!=="0"&&(i=a[c]);if(o&&l.length&&i)for(let c=0;c<l.length;c++){const u=l[c];a[u]=Fd(t,i)}return a}function Lb({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:a,repeatType:s,repeatDelay:i,from:l,elapsed:c,...u}){return!!Object.keys(u).length}function xi(e,t){return e[t]||e.default||e}const wi=(e,t,r,n={})=>o=>{const a=xi(n,e)||{},s=a.delay||n.delay||0;let{elapsed:i=0}=n;i=i-Jt(s);const l=Nb(t,e,r,a),c=l[0],u=l[l.length-1],d=vi(e,c),h=vi(e,u);Vn(d===h,`You are trying to animate ${e} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...a,delay:-i,onUpdate:m=>{t.set(m),a.onUpdate&&a.onUpdate(m)},onComplete:()=>{o(),a.onComplete&&a.onComplete()}};if(Lb(a)||(p={...p,...$b(e,p)}),p.duration&&(p.duration=Jt(p.duration)),p.repeatDelay&&(p.repeatDelay=Jt(p.repeatDelay)),!d||!h||Ov.current||a.type===!1)return Pb(p);if(!n.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const m=Cb(t,e,p);if(m)return m}return pa(p)};function ma(e){return!!(qe(e)&&e.add)}const zd=e=>/^\-?\d*\.?\d+$/.test(e);function Ci(e,t){e.indexOf(t)===-1&&e.push(t)}function Pi(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class Mi{constructor(){this.subscriptions=[]}add(t){return Ci(this.subscriptions,t),()=>Pi(this.subscriptions,t)}notify(t,r,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let a=0;a<o;a++){const s=this.subscriptions[a];s&&s(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Wd=new Set;function Ti(e,t,r){e||Wd.has(t)||(console.warn(t),r&&console.warn(r),Wd.add(t))}const jb=e=>!isNaN(parseFloat(e));class _b{constructor(t,r={}){this.version="10.16.16",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,o=!0)=>{this.prev=this.current,this.current=n;const{delta:a,timestamp:s}=Re;this.lastUpdated!==s&&(this.timeDelta=a,this.lastUpdated=s,Se.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Se.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=jb(this.current),this.owner=r.owner}onChange(t){return process.env.NODE_ENV!=="production"&&Ti(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Mi);const n=this.events[t].add(r);return t==="change"?()=>{n(),Se.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Id(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Qr(e,t){return new _b(e,t)}const Bd=e=>t=>t.test(e),Rd=[yr,ne,Tt,Qt,q1,G1,{test:e=>e==="auto",parse:e=>e}],Rn=e=>Rd.find(Bd(e)),Fb=[...Rd,Ue,er],Vb=e=>Fb.find(Bd(e));function zb(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Qr(r))}function Wb(e,t){const r=ua(e,t);let{transitionEnd:n={},transition:o={},...a}=r?e.makeTargetAnimatable(r,!1):{};a={...a,...n};for(const s in a){const i=cv(a[s]);zb(e,s,i)}}function Bb(e,t,r){var n,o;const a=Object.keys(t).filter(i=>!e.hasValue(i)),s=a.length;if(s)for(let i=0;i<s;i++){const l=a[i],c=t[l];let u=null;Array.isArray(c)&&(u=c[0]),u===null&&(u=(o=(n=r[l])!==null&&n!==void 0?n:e.readValue(l))!==null&&o!==void 0?o:t[l]),u!=null&&(typeof u=="string"&&(zd(u)||Vd(u))?u=parseFloat(u):!Vb(u)&&er.test(c)&&(u=Fd(l,c)),e.addValue(l,Qr(u,{owner:e})),r[l]===void 0&&(r[l]=u),u!==null&&e.setBaseTarget(l,u))}}function Rb(e,t){return t?(t[e]||t.default||t).from:void 0}function Kb(e,t,r){const n={};for(const o in e){const a=Rb(o,t);if(a!==void 0)n[o]=a;else{const s=r.getValue(o);s&&(n[o]=s.get())}}return n}function Ub({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function Hb(e,t){const r=e.get();if(Array.isArray(t)){for(let n=0;n<t.length;n++)if(t[n]!==r)return!0}else return r!==t}function Kd(e,t,{delay:r=0,transitionOverride:n,type:o}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...i}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");n&&(a=n);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const d in i){const h=e.getValue(d),p=i[d];if(!h||p===void 0||u&&Ub(u,d))continue;const m={delay:r,elapsed:0,...xi(a||{},d)};if(window.HandoffAppearAnimations){const C=e.getProps()[Eu];if(C){const x=window.HandoffAppearAnimations(C,d,h,Se);x!==null&&(m.elapsed=x,m.isHandoff=!0)}}let y=!m.isHandoff&&!Hb(h,p);if(m.type==="spring"&&(h.getVelocity()||m.velocity)&&(y=!1),h.animation&&(y=!1),y)continue;h.start(wi(d,h,p,e.shouldReduceMotion&&br.has(d)?{type:!1}:m));const b=h.animation;ma(l)&&(l.add(d),b.then(()=>l.remove(d))),c.push(b)}return s&&Promise.all(c).then(()=>{s&&Wb(e,s)}),c}function Ei(e,t,r={}){const n=ua(e,t,r.custom);let{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);const a=n?()=>Promise.all(Kd(e,n,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=o;return Yb(e,t,c+l,u,d,r)}:()=>Promise.resolve(),{when:i}=o;if(i){const[l,c]=i==="beforeChildren"?[a,s]:[s,a];return l().then(()=>c())}else return Promise.all([a(),s(r.delay)])}function Yb(e,t,r=0,n=0,o=1,a){const s=[],i=(e.variantChildren.size-1)*n,l=o===1?(c=0)=>c*n:(c=0)=>i-c*n;return Array.from(e.variantChildren).sort(Gb).forEach((c,u)=>{c.notify("AnimationStart",t),s.push(Ei(c,t,{...a,delay:r+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function Gb(e,t){return e.sortNodePosition(t)}function qb(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const o=t.map(a=>Ei(e,a,r));n=Promise.all(o)}else if(typeof t=="string")n=Ei(e,t,r);else{const o=typeof t=="function"?ua(e,t,r.custom):t;n=Promise.all(Kd(e,o,r))}return n.then(()=>e.notify("AnimationComplete",t))}const Qb=[...Ys].reverse(),Xb=Ys.length;function Zb(e){return t=>Promise.all(t.map(({animation:r,options:n})=>qb(e,r,n)))}function Jb(e){let t=Zb(e);const r=ty();let n=!0;const o=(l,c)=>{const u=ua(e,c);if(u){const{transition:d,transitionEnd:h,...p}=u;l={...l,...p,...h}}return l};function a(l){t=l(e)}function s(l,c){const u=e.getProps(),d=e.getVariantContext(!0)||{},h=[],p=new Set;let m={},y=1/0;for(let C=0;C<Xb;C++){const x=Qb[C],P=r[x],E=u[x]!==void 0?u[x]:d[x],S=kn(E),N=x===c?P.isActive:null;N===!1&&(y=C);let L=E===d[x]&&E!==u[x]&&S;if(L&&n&&e.manuallyAnimateOnMount&&(L=!1),P.protectedKeys={...m},!P.isActive&&N===null||!E&&!P.prevProp||ea(E)||typeof E=="boolean")continue;const g=ey(P.prevProp,E);let A=g||x===c&&P.isActive&&!L&&S||C>y&&S;const I=Array.isArray(E)?E:[E];let T=I.reduce(o,{});N===!1&&(T={});const{prevResolvedValues:D={}}=P,w={...D,...T},M=O=>{A=!0,p.delete(O),P.needsAnimating[O]=!0};for(const O in w){const F=T[O],$=D[O];m.hasOwnProperty(O)||(F!==$?sa(F)&&sa($)?!nd(F,$)||g?M(O):P.protectedKeys[O]=!0:F!==void 0?M(O):p.add(O):F!==void 0&&p.has(O)?M(O):P.protectedKeys[O]=!0)}P.prevProp=E,P.prevResolvedValues=T,P.isActive&&(m={...m,...T}),n&&e.blockInitialAnimation&&(A=!1),A&&!L&&h.push(...I.map(O=>({animation:O,options:{type:x,...l}})))}if(p.size){const C={};p.forEach(x=>{const P=e.getBaseTarget(x);P!==void 0&&(C[x]=P)}),h.push({animation:C})}let b=!!h.length;return n&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(b=!1),n=!1,b?t(h):Promise.resolve()}function i(l,c,u){var d;if(r[l].isActive===c)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var m;return(m=p.animationState)===null||m===void 0?void 0:m.setActive(l,c)}),r[l].isActive=c;const h=s(u,l);for(const p in r)r[p].protectedKeys={};return h}return{animateChanges:s,setActive:i,setAnimateFunction:a,getState:()=>r}}function ey(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!nd(t,e):!1}function wr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ty(){return{animate:wr(!0),whileInView:wr(),whileHover:wr(),whileTap:wr(),whileDrag:wr(),whileFocus:wr(),exit:wr()}}class ry extends Zt{constructor(t){super(t),t.animationState||(t.animationState=Jb(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),ea(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let ny=0;class oy extends Zt{constructor(){super(...arguments),this.id=ny++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const a=this.node.animationState.setActive("exit",!t,{custom:n??this.node.getProps().custom});r&&!t&&a.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const ay={animation:{Feature:ry},exit:{Feature:oy}},Ud=(e,t)=>Math.abs(e-t);function sy(e,t){const r=Ud(e.x,t.x),n=Ud(e.y,t.y);return Math.sqrt(r**2+n**2)}class Hd{constructor(t,r,{transformPagePoint:n,contextWindow:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=$i(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,h=sy(u.offset,{x:0,y:0})>=3;if(!d&&!h)return;const{point:p}=u,{timestamp:m}=Re;this.history.push({...p,timestamp:m});const{onStart:y,onMove:b}=this.handlers;d||(y&&y(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,u)},this.handlePointerMove=(u,d)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=Si(d,this.transformPagePoint),Se.update(this.updatePoint,!0)},this.handlePointerUp=(u,d)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:h,onSessionEnd:p}=this.handlers,m=$i(u.type==="pointercancel"?this.lastMoveEventInfo:Si(d,this.transformPagePoint),this.history);this.startEvent&&h&&h(u,m),p&&p(u,m)},!qu(t))return;this.handlers=r,this.transformPagePoint=n,this.contextWindow=o||window;const a=ca(t),s=Si(a,this.transformPagePoint),{point:i}=s,{timestamp:l}=Re;this.history=[{...i,timestamp:l}];const{onSessionStart:c}=r;c&&c(t,$i(s,this.history)),this.removeListeners=Xt(_t(this.contextWindow,"pointermove",this.handlePointerMove),_t(this.contextWindow,"pointerup",this.handlePointerUp),_t(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Lt(this.updatePoint)}}function Si(e,t){return t?{point:t(e.point)}:e}function Yd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function $i({point:e},t){return{point:e,delta:Yd(e,Gd(t)),offset:Yd(e,iy(t)),velocity:ly(t,.1)}}function iy(e){return e[0]}function Gd(e){return e[e.length-1]}function ly(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=Gd(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>Jt(t)));)r--;if(!n)return{x:0,y:0};const a=Ft(o.timestamp-n.timestamp);if(a===0)return{x:0,y:0};const s={x:(o.x-n.x)/a,y:(o.y-n.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function ot(e){return e.max-e.min}function Di(e,t=0,r=.01){return Math.abs(e-t)<=r}function qd(e,t,r,n=.5){e.origin=n,e.originPoint=Ne(t.min,t.max,e.origin),e.scale=ot(r)/ot(t),(Di(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Ne(r.min,r.max,e.origin)-e.originPoint,(Di(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Kn(e,t,r,n){qd(e.x,t.x,r.x,n?n.originX:void 0),qd(e.y,t.y,r.y,n?n.originY:void 0)}function Qd(e,t,r){e.min=r.min+t.min,e.max=e.min+ot(t)}function cy(e,t,r){Qd(e.x,t.x,r.x),Qd(e.y,t.y,r.y)}function Xd(e,t,r){e.min=t.min-r.min,e.max=e.min+ot(t)}function Un(e,t,r){Xd(e.x,t.x,r.x),Xd(e.y,t.y,r.y)}function uy(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?Ne(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?Ne(r,e,n.max):Math.min(e,r)),e}function Zd(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function dy(e,{top:t,left:r,bottom:n,right:o}){return{x:Zd(e.x,r,o),y:Zd(e.y,t,n)}}function Jd(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function fy(e,t){return{x:Jd(e.x,t.x),y:Jd(e.y,t.y)}}function py(e,t){let r=.5;const n=ot(e),o=ot(t);return o>n?r=Bn(t.min,t.max-n,e.min):n>o&&(r=Bn(e.min,e.max-o,t.min)),qt(0,1,r)}function hy(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const Ii=.35;function my(e=Ii){return e===!1?e=0:e===!0&&(e=Ii),{x:ef(e,"left","right"),y:ef(e,"top","bottom")}}function ef(e,t,r){return{min:tf(e,t),max:tf(e,r)}}function tf(e,t){return typeof e=="number"?e:e[t]||0}const rf=()=>({translate:0,scale:1,origin:0,originPoint:0}),Xr=()=>({x:rf(),y:rf()}),nf=()=>({min:0,max:0}),Ve=()=>({x:nf(),y:nf()});function Et(e){return[e("x"),e("y")]}function of({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function gy({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function vy(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function ki(e){return e===void 0||e===1}function Ai({scale:e,scaleX:t,scaleY:r}){return!ki(e)||!ki(t)||!ki(r)}function Cr(e){return Ai(e)||af(e)||e.z||e.rotate||e.rotateX||e.rotateY}function af(e){return sf(e.x)||sf(e.y)}function sf(e){return e&&e!=="0%"}function ga(e,t,r){const n=e-r,o=t*n;return r+o}function lf(e,t,r,n,o){return o!==void 0&&(e=ga(e,o,n)),ga(e,r,n)+t}function Oi(e,t=0,r=1,n,o){e.min=lf(e.min,t,r,n,o),e.max=lf(e.max,t,r,n,o)}function cf(e,{x:t,y:r}){Oi(e.x,t.translate,t.scale,t.originPoint),Oi(e.y,r.translate,r.scale,r.originPoint)}function by(e,t,r,n=!1){const o=r.length;if(!o)return;t.x=t.y=1;let a,s;for(let i=0;i<o;i++){a=r[i],s=a.projectionDelta;const l=a.instance;l&&l.style&&l.style.display==="contents"||(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Zr(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,cf(e,s)),n&&Cr(a.latestValues)&&Zr(e,a.latestValues))}t.x=uf(t.x),t.y=uf(t.y)}function uf(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function tr(e,t){e.min=e.min+t,e.max=e.max+t}function df(e,t,[r,n,o]){const a=t[o]!==void 0?t[o]:.5,s=Ne(e.min,e.max,a);Oi(e,t[r],t[n],s,t.scale)}const yy=["x","scaleX","originX"],xy=["y","scaleY","originY"];function Zr(e,t){df(e.x,t,yy),df(e.y,t,xy)}function ff(e,t){return of(vy(e.getBoundingClientRect(),t))}function wy(e,t,r){const n=ff(e,r),{scroll:o}=t;return o&&(tr(n.x,o.offset.x),tr(n.y,o.offset.y)),n}const pf=({current:e})=>e?e.ownerDocument.defaultView:null,Cy=new WeakMap;class Py{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ve(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const o=l=>{this.stopAnimation(),r&&this.snapToCursor(ca(l,"page").point)},a=(l,c)=>{const{drag:u,dragPropagation:d,onDragStart:h}=this.getProps();if(u&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Ju(u),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Et(m=>{let y=this.getAxisMotionValue(m).get()||0;if(Tt.test(y)){const{projection:b}=this.visualElement;if(b&&b.layout){const C=b.layout.layoutBox[m];C&&(y=ot(C)*(parseFloat(y)/100))}}this.originPoint[m]=y}),h&&Se.update(()=>h(l,c),!1,!0);const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},s=(l,c)=>{const{dragPropagation:u,dragDirectionLock:d,onDirectionLock:h,onDrag:p}=this.getProps();if(!u&&!this.openGlobalLock)return;const{offset:m}=c;if(d&&this.currentDirection===null){this.currentDirection=My(m),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",c.point,m),this.updateAxis("y",c.point,m),this.visualElement.render(),p&&p(l,c)},i=(l,c)=>this.stop(l,c);this.panSession=new Hd(t,{onSessionStart:o,onStart:a,onMove:s,onSessionEnd:i},{transformPagePoint:this.visualElement.getTransformPagePoint(),contextWindow:pf(this.visualElement)})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&Se.update(()=>a(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:o}=this.getProps();if(!n||!va(t,o,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=uy(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){var t;const{dragConstraints:r,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;r&&Gr(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=dy(o.layoutBox,r):this.constraints=!1,this.elastic=my(n),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Et(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=hy(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Gr(t))return!1;const n=t.current;bt(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const a=wy(n,o.root,this.visualElement.getTransformPagePoint());let s=fy(o.layout.layoutBox,a);if(r){const i=r(gy(s));this.hasMutatedConstraints=!!i,i&&(s=of(i))}return s}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:o,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:i}=this.getProps(),l=this.constraints||{},c=Et(u=>{if(!va(u,r,this.currentDirection))return;let d=l&&l[u]||{};s&&(d={min:0,max:0});const h=o?200:1e6,p=o?40:1e7,m={type:"inertia",velocity:n?t[u]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...a,...d};return this.startAxisValueAnimation(u,m)});return Promise.all(c).then(i)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start(wi(t,n,0,r))}stopAnimation(){Et(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),o=n[r];return o||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Et(r=>{const{drag:n}=this.getProps();if(!va(r,n,this.currentDirection))return;const{projection:o}=this.visualElement,a=this.getAxisMotionValue(r);if(o&&o.layout){const{min:s,max:i}=o.layout.layoutBox[r];a.set(t[r]-Ne(s,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Gr(r)||!n||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Et(s=>{const i=this.getAxisMotionValue(s);if(i){const l=i.get();o[s]=py({min:l,max:l},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Et(s=>{if(!va(s,t,null))return;const i=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];i.set(Ne(l,c,o[s]))})}addListeners(){if(!this.visualElement.current)return;Cy.set(this.visualElement,this);const t=this.visualElement.current,r=_t(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();Gr(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,a=o.addEventListener("measure",n);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),n();const s=jt(window,"resize",()=>this.scalePositionWithinConstraints()),i=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Et(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{s(),r(),a(),i&&i()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:a=!1,dragElastic:s=Ii,dragMomentum:i=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:a,dragElastic:s,dragMomentum:i}}}function va(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function My(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class Ty extends Zt{constructor(t){super(t),this.removeGroupControls=Le,this.removeListeners=Le,this.controls=new Py(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Le}unmount(){this.removeGroupControls(),this.removeListeners()}}const hf=e=>(t,r)=>{e&&Se.update(()=>e(t,r))};class Ey extends Zt{constructor(){super(...arguments),this.removePointerDownListener=Le}onPointerDown(t){this.session=new Hd(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:pf(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:hf(t),onStart:hf(r),onMove:n,onEnd:(a,s)=>{delete this.session,o&&Se.update(()=>o(a,s))}}}mount(){this.removePointerDownListener=_t(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Sy(){const e=f.useContext(Zo);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,o=f.useId();return f.useEffect(()=>n(o),[]),!t&&r?[!1,()=>r&&r(o)]:[!0]}const ba={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function mf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Hn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ne.test(e))e=parseFloat(e);else return e;const r=mf(e,t.target.x),n=mf(e,t.target.y);return`${r}% ${n}%`}},$y={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=er.parse(e);if(o.length>5)return n;const a=er.createTransformer(e),s=typeof o[0]!="number"?1:0,i=r.x.scale*t.x,l=r.y.scale*t.y;o[0+s]/=i,o[1+s]/=l;const c=Ne(i,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=c),typeof o[3+s]=="number"&&(o[3+s]/=c),a(o)}};class Dy extends f.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:a}=t;W1(Iy),a&&(r.group&&r.group.add(a),n&&n.register&&o&&n.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),ba.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:o,isPresent:a}=this.props,s=n.projection;return s&&(s.isPresent=a,o||t.layoutDependency!==r||r===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||Se.postRender(()=>{const i=s.getStack();(!i||!i.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(o),n&&n.deregister&&n.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function gf(e){const[t,r]=Sy(),n=f.useContext(On);return f.createElement(Dy,{...e,layoutGroup:n,switchLayoutGroup:f.useContext(Iu),isPresent:t,safeToRemove:r})}const Iy={borderRadius:{...Hn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Hn,borderTopRightRadius:Hn,borderBottomLeftRadius:Hn,borderBottomRightRadius:Hn,boxShadow:$y},vf=["TopLeft","TopRight","BottomLeft","BottomRight"],ky=vf.length,bf=e=>typeof e=="string"?parseFloat(e):e,yf=e=>typeof e=="number"||ne.test(e);function Ay(e,t,r,n,o,a){o?(e.opacity=Ne(0,r.opacity!==void 0?r.opacity:1,Oy(n)),e.opacityExit=Ne(t.opacity!==void 0?t.opacity:1,0,Ny(n))):a&&(e.opacity=Ne(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let s=0;s<ky;s++){const i=`border${vf[s]}Radius`;let l=xf(t,i),c=xf(r,i);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||yf(l)===yf(c)?(e[i]=Math.max(Ne(bf(l),bf(c),n),0),(Tt.test(c)||Tt.test(l))&&(e[i]+="%")):e[i]=c}(t.rotate||r.rotate)&&(e.rotate=Ne(t.rotate||0,r.rotate||0,n))}function xf(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Oy=wf(0,.5,fd),Ny=wf(.5,.95,Le);function wf(e,t,r){return n=>n<e?0:n>t?1:r(Bn(e,t,n))}function Cf(e,t){e.min=t.min,e.max=t.max}function ft(e,t){Cf(e.x,t.x),Cf(e.y,t.y)}function Pf(e,t,r,n,o){return e-=t,e=ga(e,1/r,n),o!==void 0&&(e=ga(e,1/o,n)),e}function Ly(e,t=0,r=1,n=.5,o,a=e,s=e){if(Tt.test(t)&&(t=parseFloat(t),t=Ne(s.min,s.max,t/100)-s.min),typeof t!="number")return;let i=Ne(a.min,a.max,n);e===a&&(i-=t),e.min=Pf(e.min,t,r,i,o),e.max=Pf(e.max,t,r,i,o)}function Mf(e,t,[r,n,o],a,s){Ly(e,t[r],t[n],t[o],t.scale,a,s)}const jy=["x","scaleX","originX"],_y=["y","scaleY","originY"];function Tf(e,t,r,n){Mf(e.x,t,jy,r?r.x:void 0,n?n.x:void 0),Mf(e.y,t,_y,r?r.y:void 0,n?n.y:void 0)}function Ef(e){return e.translate===0&&e.scale===1}function Sf(e){return Ef(e.x)&&Ef(e.y)}function Fy(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function $f(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Df(e){return ot(e.x)/ot(e.y)}class Vy{constructor(){this.members=[]}add(t){Ci(this.members,t),t.scheduleRender()}remove(t){if(Pi(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(o=>t===o);if(r===0)return!1;let n;for(let o=r;o>=0;o--){const a=this.members[o];if(a.isPresent!==!1){n=a;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function If(e,t,r){let n="";const o=e.x.translate/t.x,a=e.y.translate/t.y;if((o||a)&&(n=`translate3d(${o}px, ${a}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:l,rotateX:c,rotateY:u}=r;l&&(n+=`rotate(${l}deg) `),c&&(n+=`rotateX(${c}deg) `),u&&(n+=`rotateY(${u}deg) `)}const s=e.x.scale*t.x,i=e.y.scale*t.y;return(s!==1||i!==1)&&(n+=`scale(${s}, ${i})`),n||"none"}const zy=(e,t)=>e.depth-t.depth;class Wy{constructor(){this.children=[],this.isDirty=!1}add(t){Ci(this.children,t),this.isDirty=!0}remove(t){Pi(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(zy),this.isDirty=!1,this.children.forEach(t)}}function By(e,t){const r=performance.now(),n=({timestamp:o})=>{const a=o-r;a>=t&&(Lt(n),e(a-t))};return Se.read(n,!0),()=>Lt(n)}function Ry(e){window.MotionDebug&&window.MotionDebug.record(e)}function Ky(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Uy(e,t,r){const n=qe(e)?e:Qr(e);return n.start(wi("",n,t,r)),n.animation}const kf=["","X","Y","Z"],Hy={visibility:"hidden"},Af=1e3;let Yy=0;const Pr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Of({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(s={},i=t==null?void 0:t()){this.id=Yy++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Pr.totalNodes=Pr.resolvedTargetDeltas=Pr.recalculatedProjection=0,this.nodes.forEach(Qy),this.nodes.forEach(t2),this.nodes.forEach(r2),this.nodes.forEach(Xy),Ry(Pr)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Wy)}addEventListener(s,i){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Mi),this.eventHandlers.get(s).add(i)}notifyListeners(s,...i){const l=this.eventHandlers.get(s);l&&l.notify(...i)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Ky(s),this.instance=s;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(c||l)&&(this.isLayoutDirty=!0),e){let d;const h=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=By(h,250),ba.hasAnimatedSinceResize&&(ba.hasAnimatedSinceResize=!1,this.nodes.forEach(Lf))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeTargetChanged:p,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||u.getDefaultTransition()||i2,{onLayoutAnimationStart:b,onLayoutAnimationComplete:C}=u.getProps(),x=!this.targetLayout||!$f(this.targetLayout,m)||p,P=!h&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||P||h&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,P);const E={...xi(y,"layout"),onPlay:b,onComplete:C};(u.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else h||Lf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Lt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(n2),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:i,layout:l}=this.options;if(i===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Nf);return}this.isUpdating||this.nodes.forEach(Jy),this.isUpdating=!1,this.nodes.forEach(e2),this.nodes.forEach(Gy),this.nodes.forEach(qy),this.clearAllSnapshots();const i=performance.now();Re.delta=qt(0,1e3/60,i-Re.timestamp),Re.timestamp=i,Re.isProcessing=!0,ni.update.process(Re),ni.preRender.process(Re),ni.render.process(Re),Re.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Zy),this.sharedNodes.forEach(o2)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Se.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Se.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ve(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:i}=this.options;i&&i.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let i=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(i=!1),i&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){if(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform,i=this.projectionDelta&&!Sf(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;s&&(i||Cr(this.latestValues)||u)&&(o(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const i=this.measurePageBox();let l=this.removeElementScroll(i);return s&&(l=this.removeTransform(l)),l2(l),{animationId:this.root.animationId,measuredBox:i,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return Ve();const i=s.measureViewportBox(),{scroll:l}=this.root;return l&&(tr(i.x,l.offset.x),tr(i.y,l.offset.y)),i}removeElementScroll(s){const i=Ve();ft(i,s);for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:d}=c;if(c!==this.root&&u&&d.layoutScroll){if(u.isRoot){ft(i,s);const{scroll:h}=this.root;h&&(tr(i.x,-h.offset.x),tr(i.y,-h.offset.y))}tr(i.x,u.offset.x),tr(i.y,u.offset.y)}}return i}applyTransform(s,i=!1){const l=Ve();ft(l,s);for(let c=0;c<this.path.length;c++){const u=this.path[c];!i&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Zr(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Cr(u.latestValues)&&Zr(l,u.latestValues)}return Cr(this.latestValues)&&Zr(l,this.latestValues),l}removeTransform(s){const i=Ve();ft(i,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Cr(c.latestValues))continue;Ai(c.latestValues)&&c.updateSnapshot();const u=Ve(),d=c.measurePageBox();ft(u,d),Tf(i,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return Cr(this.latestValues)&&Tf(i,this.latestValues),i}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Re.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var i;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((i=this.parent)===null||i===void 0)&&i.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:d,layoutId:h}=this.options;if(!(!this.layout||!(d||h))){if(this.resolvedRelativeTargetAt=Re.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ve(),this.relativeTargetOrigin=Ve(),Un(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),ft(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ve(),this.targetWithTransforms=Ve()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),cy(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ft(this.target,this.layout.layoutBox),cf(this.target,this.targetDelta)):ft(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ve(),this.relativeTargetOrigin=Ve(),Un(this.relativeTargetOrigin,this.target,p.target),ft(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Pr.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Ai(this.parent.latestValues)||af(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const i=this.getLead(),l=!!this.resumingFrom||this!==i;let c=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Re.timestamp&&(c=!1),c)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;ft(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,p=this.treeScale.y;by(this.layoutCorrected,this.treeScale,this.path,l),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox);const{target:m}=i;if(!m){this.projectionTransform&&(this.projectionDelta=Xr(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Xr(),this.projectionDeltaWithTransform=Xr());const y=this.projectionTransform;Kn(this.projectionDelta,this.layoutCorrected,m,this.latestValues),this.projectionTransform=If(this.projectionDelta,this.treeScale),(this.projectionTransform!==y||this.treeScale.x!==h||this.treeScale.y!==p)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Pr.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const i=this.getStack();i&&i.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,i=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=Xr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;const h=Ve(),p=l?l.source:void 0,m=this.layout?this.layout.source:void 0,y=p!==m,b=this.getStack(),C=!b||b.members.length<=1,x=!!(y&&!C&&this.options.crossfade===!0&&!this.path.some(s2));this.animationProgress=0;let P;this.mixTargetDelta=E=>{const S=E/1e3;jf(d.x,s.x,S),jf(d.y,s.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Un(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),a2(this.relativeTarget,this.relativeTargetOrigin,h,S),P&&Fy(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=Ve()),ft(P,this.relativeTarget)),y&&(this.animationValues=u,Ay(u,c,this.latestValues,S,x,C)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Lt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Se.update(()=>{ba.hasAnimatedSinceResize=!0,this.currentAnimation=Uy(0,Af,{...s,onUpdate:i=>{this.mixTargetDelta(i),s.onUpdate&&s.onUpdate(i)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Af),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:i,target:l,layout:c,latestValues:u}=s;if(!(!i||!l||!c)){if(this!==s&&this.layout&&c&&Wf(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Ve();const d=ot(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const h=ot(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}ft(i,l),Zr(i,u),Kn(this.projectionDeltaWithTransform,this.layoutCorrected,i,u)}}registerSharedNode(s,i){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Vy),this.sharedNodes.get(s).add(i);const c=i.options.initialPromotionConfig;i.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(i):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:i}=this.options;return i?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:i}=this.options;return i?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:i,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),i&&this.setOptions({transition:i})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let i=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(i=!0),!i)return;const c={};for(let u=0;u<kf.length;u++){const d="rotate"+kf[u];l[d]&&(c[d]=l[d],s.setStaticValue(d,0))}s.render();for(const u in c)s.setStaticValue(u,c[u]);s.scheduleRender()}getProjectionStyles(s){var i,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Hy;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=ia(s==null?void 0:s.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=ia(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Cr(this.latestValues)&&(y.transform=u?u({},""):"none",this.hasProjected=!1),y}const h=d.animationValues||d.latestValues;this.applyTransformsToTarget(),c.transform=If(this.projectionDeltaWithTransform,this.treeScale,h),u&&(c.transform=u(h,c.transform));const{x:p,y:m}=this.projectionDelta;c.transformOrigin=`${p.origin*100}% ${m.origin*100}% 0`,d.animationValues?c.opacity=d===this?(l=(i=h.opacity)!==null&&i!==void 0?i:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:c.opacity=d===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const y in ra){if(h[y]===void 0)continue;const{correct:b,applyTo:C}=ra[y],x=c.transform==="none"?h[y]:b(h[y],d);if(C){const P=C.length;for(let E=0;E<P;E++)c[C[E]]=x}else c[y]=x}return this.options.layoutId&&(c.pointerEvents=d===this?ia(s==null?void 0:s.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var i;return(i=s.currentAnimation)===null||i===void 0?void 0:i.stop()}),this.root.nodes.forEach(Nf),this.root.sharedNodes.clear()}}}function Gy(e){e.updateLayout()}function qy(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:o}=e.layout,{animationType:a}=e.options,s=r.source!==e.layout.source;a==="size"?Et(d=>{const h=s?r.measuredBox[d]:r.layoutBox[d],p=ot(h);h.min=n[d].min,h.max=h.min+p}):Wf(a,r.layoutBox,n)&&Et(d=>{const h=s?r.measuredBox[d]:r.layoutBox[d],p=ot(n[d]);h.max=h.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const i=Xr();Kn(i,n,r.layoutBox);const l=Xr();s?Kn(l,e.applyTransform(o,!0),r.measuredBox):Kn(l,n,r.layoutBox);const c=!Sf(i);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:p}=d;if(h&&p){const m=Ve();Un(m,r.layoutBox,h.layoutBox);const y=Ve();Un(y,n,p.layoutBox),$f(m,y)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:i,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Qy(e){Pr.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Xy(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Zy(e){e.clearSnapshot()}function Nf(e){e.clearMeasurements()}function Jy(e){e.isLayoutDirty=!1}function e2(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Lf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function t2(e){e.resolveTargetDelta()}function r2(e){e.calcProjection()}function n2(e){e.resetRotation()}function o2(e){e.removeLeadSnapshot()}function jf(e,t,r){e.translate=Ne(t.translate,0,r),e.scale=Ne(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function _f(e,t,r,n){e.min=Ne(t.min,r.min,n),e.max=Ne(t.max,r.max,n)}function a2(e,t,r,n){_f(e.x,t.x,r.x,n),_f(e.y,t.y,r.y,n)}function s2(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const i2={duration:.45,ease:[.4,0,.1,1]},Ff=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Vf=Ff("applewebkit/")&&!Ff("chrome/")?Math.round:Le;function zf(e){e.min=Vf(e.min),e.max=Vf(e.max)}function l2(e){zf(e.x),zf(e.y)}function Wf(e,t,r){return e==="position"||e==="preserve-aspect"&&!Di(Df(t),Df(r),.2)}const c2=Of({attachResizeListener:(e,t)=>jt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ni={current:void 0},Bf=Of({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ni.current){const e=new c2({});e.mount(window),e.setOptions({layoutScroll:!0}),Ni.current=e}return Ni.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),u2={pan:{Feature:Ey},drag:{Feature:Ty,ProjectionNode:Bf,MeasureLayout:gf}},d2=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function f2(e){const t=d2.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}const p2=4;function Li(e,t,r=1){bt(r<=p2,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[n,o]=f2(e);if(!n)return;const a=window.getComputedStyle(t).getPropertyValue(n);if(a){const s=a.trim();return zd(s)?parseFloat(s):s}else return Qs(o)?Li(o,t,r+1):o}function h2(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(o=>{const a=o.get();if(!Qs(a))return;const s=Li(a,n);s&&o.set(s)});for(const o in t){const a=t[o];if(!Qs(a))continue;const s=Li(a,n);s&&(t[o]=s,r||(r={}),r[o]===void 0&&(r[o]=a))}return{target:t,transitionEnd:r}}const m2=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Rf=e=>m2.has(e),g2=e=>Object.keys(e).some(Rf),ya=e=>e===yr||e===ne,Kf=(e,t)=>parseFloat(e.split(", ")[t]),Uf=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const o=n.match(/^matrix3d\((.+)\)$/);if(o)return Kf(o[1],t);{const a=n.match(/^matrix\((.+)\)$/);return a?Kf(a[1],e):0}},v2=new Set(["x","y","z"]),b2=Nn.filter(e=>!v2.has(e));function y2(e){const t=[];return b2.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Jr={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Uf(4,13),y:Uf(5,14)};Jr.translateX=Jr.x,Jr.translateY=Jr.y;const x2=(e,t,r)=>{const n=t.measureViewportBox(),o=t.current,a=getComputedStyle(o),{display:s}=a,i={};s==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(c=>{i[c]=Jr[c](n,a)}),t.render();const l=t.measureViewportBox();return r.forEach(c=>{const u=t.getValue(c);u&&u.jump(i[c]),e[c]=Jr[c](l,a)}),e},w2=(e,t,r={},n={})=>{t={...t},n={...n};const o=Object.keys(t).filter(Rf);let a=[],s=!1;const i=[];if(o.forEach(l=>{const c=e.getValue(l);if(!e.hasValue(l))return;let u=r[l],d=Rn(u);const h=t[l];let p;if(sa(h)){const m=h.length,y=h[0]===null?1:0;u=h[y],d=Rn(u);for(let b=y;b<m&&h[b]!==null;b++)p?bt(Rn(h[b])===p,"All keyframes must be of the same type"):(p=Rn(h[b]),bt(p===d||ya(d)&&ya(p),"Keyframes must be of the same dimension as the current value"))}else p=Rn(h);if(d!==p)if(ya(d)&&ya(p)){const m=c.get();typeof m=="string"&&c.set(parseFloat(m)),typeof h=="string"?t[l]=parseFloat(h):Array.isArray(h)&&p===ne&&(t[l]=h.map(parseFloat))}else d!=null&&d.transform&&(p!=null&&p.transform)&&(u===0||h===0)?u===0?c.set(p.transform(u)):t[l]=d.transform(h):(s||(a=y2(e),s=!0),i.push(l),n[l]=n[l]!==void 0?n[l]:t[l],c.jump(h))}),i.length){const l=i.indexOf("height")>=0?window.pageYOffset:null,c=x2(t,e,i);return a.length&&a.forEach(([u,d])=>{e.getValue(u).set(d)}),e.render(),Jo&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:n}}else return{target:t,transitionEnd:n}};function C2(e,t,r,n){return g2(t)?w2(e,t,r,n):{target:t,transitionEnd:n}}const P2=(e,t,r,n)=>{const o=h2(e,t,n);return t=o.target,n=o.transitionEnd,C2(e,t,r,n)},ji={current:null},Hf={current:!1};function M2(){if(Hf.current=!0,!!Jo)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ji.current=e.matches;e.addListener(t),t()}else ji.current=!1}function T2(e,t,r){const{willChange:n}=t;for(const o in t){const a=t[o],s=r[o];if(qe(a))e.addValue(o,a),ma(n)&&n.add(o),process.env.NODE_ENV==="development"&&Ti(a.version==="10.16.16",`Attempting to mix Framer Motion versions ${a.version} with 10.16.16 may not work as expected.`);else if(qe(s))e.addValue(o,Qr(a,{owner:e})),ma(n)&&n.remove(o);else if(s!==a)if(e.hasValue(o)){const i=e.getValue(o);!i.hasAnimated&&i.set(a)}else{const i=e.getStaticValue(o);e.addValue(o,Qr(i!==void 0?i:a,{owner:e}))}}for(const o in r)t[o]===void 0&&e.removeValue(o);return t}const Yf=new WeakMap,Gf=Object.keys(An),E2=Gf.length,qf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],S2=Gs.length;class $2{constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,visualState:a},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Se.render(this.render,!1,!0);const{latestValues:i,renderState:l}=a;this.latestValues=i,this.baseTarget={...i},this.initialValues=r.initial?{...i}:{},this.renderState=l,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.isControllingVariants=ta(r),this.isVariantNode=Su(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(r,{});for(const d in u){const h=u[d];i[d]!==void 0&&qe(h)&&(h.set(i[d],!1),ma(c)&&c.add(d))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,Yf.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),Hf.current||M2(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ji.current,process.env.NODE_ENV!=="production"&&Ti(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Yf.delete(this.current),this.projection&&this.projection.unmount(),Lt(this.notifyUpdate),Lt(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,r){const n=br.has(t),o=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Se.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),a=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),a()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,o,a){let s,i;if(process.env.NODE_ENV!=="production"&&o&&n){const l="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";r.ignoreStrict?Vn(!1,l):bt(!1,l)}for(let l=0;l<E2;l++){const c=Gf[l],{isEnabled:u,Feature:d,ProjectionNode:h,MeasureLayout:p}=An[c];h&&(s=h),u(r)&&(!this.features[c]&&d&&(this.features[c]=new d(this)),p&&(i=p))}if(!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:c,drag:u,dragConstraints:d,layoutScroll:h,layoutRoot:p}=r;this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!u||d&&Gr(d),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:a,layoutScroll:h,layoutRoot:p})}return i}updateFeatures(){for(const t in this.features){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ve()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<qf.length;n++){const o=qf[n];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const a=t["on"+o];a&&(this.propEventSubscriptions[o]=this.on(o,a))}this.prevMotionValues=T2(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const n=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(n.initial=this.props.initial),n}const r={};for(let n=0;n<S2;n++){const o=Gs[n],a=this.props[o];(kn(a)||a===!1)&&(r[o]=a)}return r}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get()}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Qr(r,{owner:this}),this.addValue(t,n)),n}readValue(t){var r;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props,o=typeof n=="string"||typeof n=="object"?(r=ri(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&o!==void 0)return o;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!qe(a)?a:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Mi),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class Qf extends $2{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:r,...n},{transformValues:o},a){let s=Kb(n,t||{},this);if(o&&(r&&(r=o(r)),n&&(n=o(n)),s&&(s=o(s))),a){Bb(this,n,s);const i=P2(this,n,s,r);r=i.transitionEnd,n=i.target}return{transition:t,transitionEnd:r,...n}}}function D2(e){return window.getComputedStyle(e)}class I2 extends Qf{readValueFromInstance(t,r){if(br.has(r)){const n=yi(r);return n&&n.default||0}else{const n=D2(t),o=(Ou(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return ff(t,r)}build(t,r,n,o){Xs(t,r,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,r){return ti(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;qe(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,o){Bu(t,r,n,o)}}class k2 extends Qf{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(br.has(r)){const n=yi(r);return n&&n.default||0}return r=Ru.has(r)?r:Hs(r),t.getAttribute(r)}measureInstanceViewportBox(){return Ve()}scrapeMotionValuesFromProps(t,r){return Uu(t,r)}build(t,r,n,o){Js(t,r,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,r,n,o){Ku(t,r,n,o)}mount(t){this.isSVGTag=ei(t.tagName),super.mount(t)}}const A2=(e,t)=>qs(e)?new k2(t,{enableHardwareAcceleration:!1}):new I2(t,{enableHardwareAcceleration:!0}),O2={...ay,...Iv,...u2,...{layout:{ProjectionNode:Bf,MeasureLayout:gf}}},Xf=V1((e,t)=>vv(e,t,O2,A2));function Zf(){const e=f.useRef(!1);return Us(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Jf(){const e=Zf(),[t,r]=f.useState(0),n=f.useCallback(()=>{e.current&&r(t+1)},[t]);return[f.useCallback(()=>Se.postRender(n),[n]),t]}class N2 extends U.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function L2({children:e,isPresent:t}){const r=f.useId(),n=f.useRef(null),o=f.useRef({width:0,height:0,top:0,left:0});return f.useInsertionEffect(()=>{const{width:a,height:s,top:i,left:l}=o.current;if(t||!n.current||!a||!s)return;n.current.dataset.motionPopId=r;const c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
|
|
27
|
+
Check the top-level render call using <`+_+">.")}return k}}function wo(v,k){{if(!v._store||v._store.validated||v.key!=null)return;v._store.validated=!0;var _=Rl(k);if(xo[_])return;xo[_]=!0;var W="";v&&v._owner&&v._owner!==lt.current&&(W=" It was passed a child from "+w(v._owner.type)+"."),ct(v),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',_,W),ct(null)}}function Co(v,k){{if(typeof v!="object")return;if(Je(v))for(var _=0;_<v.length;_++){var W=v[_];Lr(W)&&wo(W,k)}else if(Lr(v))v._store&&(v._store.validated=!0);else if(v){var Z=b(v);if(typeof Z=="function"&&Z!==v.entries)for(var J=Z.call(v),q;!(q=J.next()).done;)Lr(q.value)&&wo(q.value,k)}}}function Kl(v){{var k=v.type;if(k==null||typeof k=="string")return;var _;if(typeof k=="function")_=k.propTypes;else if(typeof k=="object"&&(k.$$typeof===l||k.$$typeof===d))_=k.propTypes;else return;if(_){var W=w(k);It(_,v.props,"prop",W,v)}else if(k.PropTypes!==void 0&&!Nr){Nr=!0;var Z=w(k);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Z||"Unknown")}typeof k.getDefaultProps=="function"&&!k.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ul(v){{for(var k=Object.keys(v.props),_=0;_<k.length;_++){var W=k[_];if(W!=="children"&&W!=="key"){ct(v),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",W),ct(null);break}}v.ref!==null&&(ct(v),x("Invalid attribute `ref` supplied to `React.Fragment`."),ct(null))}}function Po(v,k,_,W,Z,J){{var q=I(v);if(!q){var G="";(v===void 0||typeof v=="object"&&v!==null&&Object.keys(v).length===0)&&(G+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var we=Bl(Z);we?G+=we:G+=yo();var le;v===null?le="null":Je(v)?le="array":v!==void 0&&v.$$typeof===t?(le="<"+(w(v.type)||"Unknown")+" />",G=" Did you accidentally export a JSX literal instead of a component?"):le=typeof v,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",le,G)}var ue=ce(v,k,_,Z,J);if(ue==null)return ue;if(q){var ke=k.children;if(ke!==void 0)if(W)if(Je(ke)){for(var ut=0;ut<ke.length;ut++)Co(ke[ut],v);Object.freeze&&Object.freeze(ke)}else x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Co(ke,v)}return v===n?Ul(ue):Kl(ue),ue}}function Hl(v,k,_){return Po(v,k,_,!0)}function Yl(v,k,_){return Po(v,k,_,!1)}var Gl=Yl,ql=Hl;bn.Fragment=n,bn.jsx=Gl,bn.jsxs=ql}()),bn}process.env.NODE_ENV==="production"?es.exports=O0():es.exports=N0();var L=es.exports,Jl=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ke=e=>!e||typeof e!="object"||Object.keys(e).length===0,L0=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function ec(e,t){e.forEach(function(r){Array.isArray(r)?ec(r,t):t.push(r)})}function tc(e){let t=[];return ec(e,t),t}var j0=(...e)=>tc(e).filter(Boolean),rc=(e,t)=>{let r={},n=Object.keys(e),o=Object.keys(t);for(let a of n)if(o.includes(a)){let s=e[a],i=t[a];typeof s=="object"&&typeof i=="object"?r[a]=rc(s,i):r[a]=i+" "+s}else r[a]=e[a];for(let a of o)n.includes(a)||(r[a]=t[a]);return r},nc=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function _0(){for(var e=0,t,r,n="";e<arguments.length;)(t=arguments[e++])&&(r=oc(t))&&(n&&(n+=" "),n+=r);return n}function oc(e){if(typeof e=="string")return e;for(var t,r="",n=0;n<e.length;n++)e[n]&&(t=oc(e[n]))&&(r&&(r+=" "),r+=t);return r}var ts="-";function F0(e){var t=z0(e),r=e.conflictingClassGroups,n=e.conflictingClassGroupModifiers,o=n===void 0?{}:n;function a(i){var l=i.split(ts);return l[0]===""&&l.length!==1&&l.shift(),ac(l,t)||V0(i)}function s(i,l){var c=r[i]||[];return l&&o[i]?[].concat(c,o[i]):c}return{getClassGroupId:a,getConflictingClassGroupIds:s}}function ac(e,t){var s;if(e.length===0)return t.classGroupId;var r=e[0],n=t.nextPart.get(r),o=n?ac(e.slice(1),n):void 0;if(o)return o;if(t.validators.length!==0){var a=e.join(ts);return(s=t.validators.find(function(i){var l=i.validator;return l(a)}))==null?void 0:s.classGroupId}}var sc=/^\[(.+)\]$/;function V0(e){if(sc.test(e)){var t=sc.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function z0(e){var t=e.theme,r=e.prefix,n={nextPart:new Map,validators:[]},o=B0(Object.entries(e.classGroups),r);return o.forEach(function(a){var s=a[0],i=a[1];rs(i,n,s,t)}),n}function rs(e,t,r,n){e.forEach(function(o){if(typeof o=="string"){var a=o===""?t:ic(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(W0(o)){rs(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(function(s){var i=s[0],l=s[1];rs(l,ic(t,i),r,n)})})}function ic(e,t){var r=e;return t.split(ts).forEach(function(n){r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r}function W0(e){return e.isThemeGetter}function B0(e,t){return t?e.map(function(r){var n=r[0],o=r[1],a=o.map(function(s){return typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(function(i){var l=i[0],c=i[1];return[t+l,c]})):s});return[n,a]}):e}function R0(e){if(e<1)return{get:function(){},set:function(){}};var t=0,r=new Map,n=new Map;function o(a,s){r.set(a,s),t++,t>e&&(t=0,n=r,r=new Map)}return{get:function(s){var i=r.get(s);if(i!==void 0)return i;if((i=n.get(s))!==void 0)return o(s,i),i},set:function(s,i){r.has(s)?r.set(s,i):o(s,i)}}}var lc="!";function K0(e){var t=e.separator||":",r=t.length===1,n=t[0],o=t.length;return function(s){for(var i=[],l=0,c=0,u,d=0;d<s.length;d++){var h=s[d];if(l===0){if(h===n&&(r||s.slice(d,d+o)===t)){i.push(s.slice(c,d)),c=d+o;continue}if(h==="/"){u=d;continue}}h==="["?l++:h==="]"&&l--}var p=i.length===0?s:s.substring(c),m=p.startsWith(lc),y=m?p.substring(1):p,b=u&&u>c?u-c:void 0;return{modifiers:i,hasImportantModifier:m,baseClassName:y,maybePostfixModifierPosition:b}}}function U0(e){if(e.length<=1)return e;var t=[],r=[];return e.forEach(function(n){var o=n[0]==="[";o?(t.push.apply(t,r.sort().concat([n])),r=[]):r.push(n)}),t.push.apply(t,r.sort()),t}function H0(e){return{cache:R0(e.cacheSize),splitModifiers:K0(e),...F0(e)}}var Y0=/\s+/;function G0(e,t){var r=t.splitModifiers,n=t.getClassGroupId,o=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(Y0).map(function(s){var i=r(s),l=i.modifiers,c=i.hasImportantModifier,u=i.baseClassName,d=i.maybePostfixModifierPosition,h=n(d?u.substring(0,d):u),p=!!d;if(!h){if(!d)return{isTailwindClass:!1,originalClassName:s};if(h=n(u),!h)return{isTailwindClass:!1,originalClassName:s};p=!1}var m=U0(l).join(":"),y=c?m+lc:m;return{isTailwindClass:!0,modifierId:y,classGroupId:h,originalClassName:s,hasPostfixModifier:p}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var i=s.modifierId,l=s.classGroupId,c=s.hasPostfixModifier,u=i+l;return a.has(u)?!1:(a.add(u),o(l,c).forEach(function(d){return a.add(i+d)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function ns(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,o,a,s=i;function i(c){var u=t[0],d=t.slice(1),h=d.reduce(function(p,m){return m(p)},u());return n=H0(h),o=n.cache.get,a=n.cache.set,s=l,l(c)}function l(c){var u=o(c);if(u)return u;var d=G0(c,n);return a(c,d),d}return function(){return s(_0.apply(null,arguments))}}function Ie(e){var t=function(n){return n[e]||[]};return t.isThemeGetter=!0,t}var cc=/^\[(?:([a-z-]+):)?(.+)\]$/i,q0=/^\d+\/\d+$/,Q0=new Set(["px","full","screen"]),X0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Z0=/\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$/,J0=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function vt(e){return lr(e)||Q0.has(e)||q0.test(e)||os(e)}function os(e){return cr(e,"length",am)}function em(e){return cr(e,"size",uc)}function tm(e){return cr(e,"position",uc)}function rm(e){return cr(e,"url",sm)}function To(e){return cr(e,"number",lr)}function lr(e){return!Number.isNaN(Number(e))}function nm(e){return e.endsWith("%")&&lr(e.slice(0,-1))}function yn(e){return dc(e)||cr(e,"number",dc)}function ge(e){return cc.test(e)}function xn(){return!0}function Yt(e){return X0.test(e)}function om(e){return cr(e,"",im)}function cr(e,t,r){var n=cc.exec(e);return n?n[1]?n[1]===t:r(n[2]):!1}function am(e){return Z0.test(e)}function uc(){return!1}function sm(e){return e.startsWith("url(")}function dc(e){return Number.isInteger(Number(e))}function im(e){return J0.test(e)}function as(){var e=Ie("colors"),t=Ie("spacing"),r=Ie("blur"),n=Ie("brightness"),o=Ie("borderColor"),a=Ie("borderRadius"),s=Ie("borderSpacing"),i=Ie("borderWidth"),l=Ie("contrast"),c=Ie("grayscale"),u=Ie("hueRotate"),d=Ie("invert"),h=Ie("gap"),p=Ie("gradientColorStops"),m=Ie("gradientColorStopPositions"),y=Ie("inset"),b=Ie("margin"),C=Ie("opacity"),x=Ie("padding"),P=Ie("saturate"),E=Ie("scale"),S=Ie("sepia"),N=Ie("skew"),j=Ie("space"),g=Ie("translate"),A=function(){return["auto","contain","none"]},I=function(){return["auto","hidden","clip","visible","scroll"]},T=function(){return["auto",ge,t]},D=function(){return[ge,t]},w=function(){return["",vt]},M=function(){return["auto",lr,ge]},O=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},F=function(){return["solid","dashed","dotted","double","none"]},$=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},V=function(){return["start","end","center","between","around","evenly","stretch"]},Y=function(){return["","0",ge]},K=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},R=function(){return[lr,To]},re=function(){return[lr,ge]};return{cacheSize:500,theme:{colors:[xn],spacing:[vt],blur:["none","",Yt,ge],brightness:R(),borderColor:[e],borderRadius:["none","","full",Yt,ge],borderSpacing:D(),borderWidth:w(),contrast:R(),grayscale:Y(),hueRotate:re(),invert:Y(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[nm,os],inset:T(),margin:T(),opacity:R(),padding:D(),saturate:R(),scale:R(),sepia:Y(),skew:re(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",ge]}],container:["container"],columns:[{columns:[Yt]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"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"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(O(),[ge])}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",yn]}],basis:[{basis:T()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ge]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",yn]}],"grid-cols":[{"grid-cols":[xn]}],"col-start-end":[{col:["auto",{span:["full",yn]},ge]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[xn]}],"row-start-end":[{row:["auto",{span:[yn]},ge]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ge]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ge]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal"].concat(V())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(V(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(V(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",ge,t]}],"min-w":[{"min-w":["min","max","fit",ge,vt]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Yt]},Yt,ge]}],h:[{h:[ge,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",ge,vt]}],"max-h":[{"max-h":[ge,t,"min","max","fit"]}],"font-size":[{text:["base",Yt,os]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",To]}],"font-family":[{font:[xn]}],"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",ge]}],"line-clamp":[{"line-clamp":["none",lr,To]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ge,vt]}],"list-image":[{"list-image":["none",ge]}],"list-style-type":[{list:["none","disc","decimal",ge]}],"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:[].concat(F(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",vt]}],"underline-offset":[{"underline-offset":["auto",ge,vt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge]}],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",ge]}],"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:[].concat(O(),[tm])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",em]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},rm]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[C]}],"border-style":[{border:[].concat(F(),["hidden"])}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[C]}],"divide-style":[{divide:F()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(F())}],"outline-offset":[{"outline-offset":[ge,vt]}],"outline-w":[{outline:[vt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:w()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[C]}],"ring-offset-w":[{"ring-offset":[vt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Yt,om]}],"shadow-color":[{shadow:[xn]}],opacity:[{opacity:[C]}],"mix-blend":[{"mix-blend":$()}],"bg-blend":[{"bg-blend":$()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Yt,ge]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[P]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[C]}],"backdrop-saturate":[{"backdrop-saturate":[P]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ge]}],duration:[{duration:re()}],ease:[{ease:["linear","in","out","in-out",ge]}],delay:[{delay:re()}],animate:[{animate:["none","spin","ping","pulse","bounce",ge]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[yn,ge]}],"translate-x":[{"translate-x":[g]}],"translate-y":[{"translate-y":[g]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ge]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],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",ge]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ge]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[vt,To]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},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"],"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"],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-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"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function lm(e,t){for(var r in t)fc(e,r,t[r]);return e}var cm=Object.prototype.hasOwnProperty,um=new Set(["string","number","boolean"]);function fc(e,t,r){if(!cm.call(e,t)||um.has(typeof r)||r===null){e[t]=r;return}if(Array.isArray(r)&&Array.isArray(e[t])){e[t]=e[t].concat(r);return}if(typeof r=="object"&&typeof e[t]=="object"){if(e[t]===null){e[t]=r;return}for(var n in r)fc(e[t],n,r[n])}}function dm(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return typeof e=="function"?ns.apply(void 0,[as,e].concat(r)):ns.apply(void 0,[function(){return lm(as(),e)}].concat(r))}var ss=ns(as),fm={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},pc=e=>e||void 0,Eo=(...e)=>pc(tc(e).filter(Boolean).join(" ")),is=null,So={},ls=!1,wn=(...e)=>t=>t.twMerge?((!is||ls)&&(ls=!1,is=Ke(So)?ss:dm(So)),pc(is(Eo(e)))):Eo(e),hc=(e,t)=>{for(let r in t)e.hasOwnProperty(r)?e[r]=Eo(e[r],t[r]):e[r]=t[r];return e},Me=(e,t)=>{let{extend:r=null,slots:n={},variants:o={},compoundVariants:a=[],compoundSlots:s=[],defaultVariants:i={}}=e,l={...fm,...t},c=r!=null&&r.base?Eo(r.base,e==null?void 0:e.base):e==null?void 0:e.base,u=r!=null&&r.variants&&!Ke(r.variants)?rc(o,r.variants):o,d=r!=null&&r.defaultVariants&&!Ke(r.defaultVariants)?{...r.defaultVariants,...i}:i;!Ke(l.twMergeConfig)&&!L0(l.twMergeConfig,So)&&(ls=!0,So=l.twMergeConfig);let h=Ke(n)?{}:{base:e==null?void 0:e.base,...n},p=Ke(r==null?void 0:r.slots)?h:hc({...r==null?void 0:r.slots},Ke(h)?{base:e==null?void 0:e.base}:h),m=b=>{if(Ke(u)&&Ke(n)&&Ke(r==null?void 0:r.slots))return wn(c,b==null?void 0:b.class,b==null?void 0:b.className)(l);if(a&&!Array.isArray(a))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof a}`);if(s&&!Array.isArray(s))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof s}`);let C=(T,D,w=[],M)=>{let O=w;if(typeof D=="string")O=O.concat(nc(D).split(" ").map(F=>`${T}:${F}`));else if(Array.isArray(D))O=O.concat(D.reduce((F,$)=>F.concat(`${T}:${$}`),[]));else if(typeof D=="object"&&typeof M=="string"){for(let F in D)if(D.hasOwnProperty(F)&&F===M){let $=D[F];if($&&typeof $=="string"){let V=nc($);O[M]?O[M]=O[M].concat(V.split(" ").map(Y=>`${T}:${Y}`)):O[M]=V.split(" ").map(Y=>`${T}:${Y}`)}else Array.isArray($)&&$.length>0&&(O[M]=$.reduce((V,Y)=>V.concat(`${T}:${Y}`),[]))}}return O},x=(T,D=u,w=null,M=null)=>{var O;let F=D[T];if(!F||Ke(F))return null;let $=(O=M==null?void 0:M[T])!=null?O:b==null?void 0:b[T];if($===null)return null;let V=Jl($),Y=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,K=d==null?void 0:d[T],R=[];if(typeof V=="object"&&Y)for(let[H,ie]of Object.entries(V)){let ee=F[ie];if(H==="initial"){K=ie;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(H)||(R=C(H,ee,R,w))}let re=F[V]||F[Jl(K)];return typeof R=="object"&&typeof w=="string"&&R[w]?hc(R,re):R.length>0?(R.push(re),R):re},P=()=>u?Object.keys(u).map(T=>x(T,u)):null,E=(T,D)=>{if(!u||typeof u!="object")return null;let w=new Array;for(let M in u){let O=x(M,u,T,D),F=T==="base"&&typeof O=="string"?O:O&&O[T];F&&(w[w.length]=F)}return w},S={};for(let T in b)b[T]!==void 0&&(S[T]=b[T]);let N=(T,D)=>{var w;let M=typeof(b==null?void 0:b[T])=="object"?{[T]:(w=b[T])==null?void 0:w.initial}:{};return{...d,...S,...M,...D}},j=(T=[],D)=>{let w=[];for(let{class:M,className:O,...F}of T){let $=!0;for(let[V,Y]of Object.entries(F)){let K=N(V,D);if(Array.isArray(Y)){if(!Y.includes(K[V])){$=!1;break}}else if(K[V]!==Y){$=!1;break}}$&&(M&&w.push(M),O&&w.push(O))}return w},g=T=>{let D=j(a,T),w=j(r==null?void 0:r.compoundVariants,T);return j0(w,D)},A=T=>{let D=g(T);if(!Array.isArray(D))return D;let w={};for(let M of D)if(typeof M=="string"&&(w.base=wn(w.base,M)(l)),typeof M=="object")for(let[O,F]of Object.entries(M))w[O]=wn(w[O],F)(l);return w},I=T=>{if(s.length<1)return null;let D={};for(let{slots:w=[],class:M,className:O,...F}of s){if(!Ke(F)){let $=!0;for(let V of Object.keys(F)){let Y=N(V,T)[V];if(Y===void 0||(Array.isArray(F[V])?!F[V].includes(Y):F[V]!==Y)){$=!1;break}}if(!$)continue}for(let $ of w)D[$]=D[$]||[],D[$].push([M,O])}return D};if(!Ke(n)||!Ke(r==null?void 0:r.slots)){let T={};if(typeof p=="object"&&!Ke(p))for(let D of Object.keys(p))T[D]=w=>{var M,O;return wn(p[D],E(D,w),((M=A(w))!=null?M:[])[D],((O=I(w))!=null?O:[])[D],w==null?void 0:w.class,w==null?void 0:w.className)(l)};return T}return wn(c,P(),g(),b==null?void 0:b.class,b==null?void 0:b.className)(l)},y=()=>{if(!(!u||typeof u!="object"))return Object.keys(u)};return m.variantKeys=y(),m.extend=r,m.base=c,m.slots=p,m.variants=u,m.defaultVariants=d,m.compoundSlots=s,m.compoundVariants=a,m};const pm=258,hm=70,mm=223,gm=266;function vm({variant:e="default",className:t,short:r,width:n,height:o}){let a=r?mm:pm,s=r?gm:hm;const i=a/s;n&&(a=n,s=parseFloat((n/i).toFixed(2))),o&&(s=o,a=parseFloat((o*i).toFixed(2)));const l=Me({base:"",variants:{variant:{default:"fill-secondary-green-500",dark:"fill-primary-green-500",light:"fill-white"}}});return r?L.jsx("svg",{preserveAspectRatio:"none",width:a,height:s,viewBox:"0 0 223 266",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:l({variant:e,className:t}),children:L.jsx("path",{d:"M222.964 194.18V85.6459C222.964 85.2381 222.88 84.8344 222.718 84.458C222.556 84.0816 222.319 83.74 222.02 83.4529C221.721 83.1657 221.366 82.9388 220.975 82.7852C220.585 82.6316 220.167 82.5543 219.746 82.5577H182.608C182.191 82.5577 181.777 82.6378 181.392 82.7933C181.006 82.9488 180.656 83.1767 180.362 83.4638C180.068 83.7509 179.836 84.0916 179.678 84.4661C179.521 84.8406 179.442 85.2416 179.445 85.6459V171.586C177.727 171.586 176.719 171.586 176.364 171.586C164.721 170.029 159.213 167.178 152.914 161.028C146.616 154.878 144.516 146.089 144.025 135.637V104.914C144.03 104.501 143.948 104.091 143.784 103.71C143.62 103.329 143.377 102.984 143.071 102.697L121.966 82.9009L101.434 62.498C101.143 62.1997 100.792 61.9617 100.403 61.7984C100.014 61.6351 99.5947 61.5498 99.1707 61.5478H66.0684C66.7731 54.8644 69.6353 48.5659 74.2486 43.5468C77.1792 40.3682 80.7538 37.8071 84.7504 36.0226C88.7469 34.2381 93.08 33.2684 97.4802 33.1738C98.2977 33.14 99.0706 32.8033 99.639 32.2335C100.207 31.6636 100.528 30.9041 100.534 30.112V2.66184C100.546 2.04062 100.331 1.43533 99.9266 0.952523C99.5226 0.469716 98.9556 0.140347 98.3255 0.0223983H97.7529C97.5176 -0.00746611 97.2792 -0.00746611 97.0439 0.0223983C84.1284 0.266286 71.4425 3.37237 59.9605 9.10208C49.7635 14.1971 41.0132 21.6355 34.4766 30.7653C27.94 39.8951 23.8167 50.4375 22.4681 61.4686H3.163C2.32163 61.4756 1.51715 61.804 0.924744 62.3824C0.332339 62.9608 -3.07314e-05 63.7423 2.13119e-09 64.5568V100.612C2.13119e-09 101.014 0.0817794 101.412 0.240735 101.783C0.39969 102.155 0.632697 102.492 0.926408 102.777C1.22012 103.061 1.56884 103.286 1.95259 103.44C2.33634 103.594 2.74763 103.673 3.163 103.673H21.841V201.517C21.841 201.922 21.9237 202.322 22.0844 202.695C22.245 203.068 22.4804 203.407 22.777 203.692C23.0736 203.976 23.4255 204.201 23.8124 204.354C24.1993 204.506 24.6136 204.583 25.0313 204.579H62.1691C62.5868 204.583 63.0011 204.506 63.388 204.354C63.7749 204.201 64.1268 203.976 64.4234 203.692C64.72 203.407 64.9554 203.068 65.116 202.695C65.2767 202.322 65.3595 201.922 65.3594 201.517V103.673H100.534V132.707C100.534 132.707 100.534 132.918 100.534 133.05C100.31 146.04 103.822 158.834 110.677 170.002C117.395 180.787 127.07 189.558 138.626 195.341C150.258 201.217 163.137 204.406 176.255 204.658H179.5C178.479 211.37 175.291 217.597 170.393 222.448C163.549 229.416 158.013 233.006 147.379 233.006C146.958 233.002 146.54 233.08 146.15 233.233C145.76 233.387 145.405 233.614 145.106 233.901C144.806 234.188 144.569 234.53 144.407 234.906C144.245 235.283 144.162 235.686 144.162 236.094V262.937C144.158 263.345 144.239 263.749 144.4 264.126C144.561 264.502 144.799 264.843 145.099 265.129C145.399 265.415 145.756 265.639 146.148 265.789C146.539 265.938 146.958 266.01 147.379 265.999C160.384 265.772 173.152 262.589 184.653 256.708C196.283 250.973 206.042 242.23 212.848 231.449C219.691 220.275 223.202 207.485 222.991 194.496C222.991 194.496 222.964 194.312 222.964 194.18Z"})}):L.jsxs("svg",{preserveAspectRatio:"none",width:a,height:s,viewBox:"0 0 258 70",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:l({variant:e,className:t}),children:[L.jsx("path",{d:"M44.1576 5.54621e-10H53.8953C54.117 5.54621e-10 54.3296 0.0853594 54.4864 0.2373C54.6431 0.389241 54.7312 0.595316 54.7312 0.810193V52.8634C54.7312 52.9694 54.7095 53.0745 54.6674 53.1724C54.6253 53.2703 54.5637 53.3591 54.486 53.4338C54.4082 53.5085 54.316 53.5675 54.2147 53.6075C54.1133 53.6474 54.0048 53.6675 53.8953 53.6666H44.1576C43.9378 53.6666 43.727 53.582 43.5716 53.4314C43.4162 53.2807 43.3289 53.0764 43.3289 52.8634V0.810193C43.3279 0.704125 43.3487 0.598926 43.3899 0.500669C43.4311 0.402411 43.492 0.31304 43.5691 0.237715C43.6461 0.162389 43.7378 0.102601 43.8388 0.0618008C43.9398 0.0210004 44.0482 -3.94095e-06 44.1576 5.54621e-10Z"}),L.jsx("path",{d:"M68.7089 51.2755C65.8506 49.7718 63.4549 47.4816 61.7891 44.6605C60.1032 41.7448 59.2396 38.4048 59.2947 35.0137C59.2396 31.6226 60.1032 28.2825 61.7891 25.3668C63.45 22.5364 65.8465 20.2384 68.7089 18.7312C71.8146 17.1539 75.2322 16.3335 78.6964 16.3335C82.1606 16.3335 85.5782 17.1539 88.6838 18.7312C91.5312 20.2475 93.9147 22.5442 95.5701 25.3668C97.251 28.2844 98.1121 31.6236 98.0578 35.0137C98.1121 38.4038 97.251 41.743 95.5701 44.6605C93.9093 47.4735 91.5268 49.7622 88.6838 51.2755C85.577 52.8486 82.1599 53.6668 78.6964 53.6668C75.2329 53.6668 71.8157 52.8486 68.7089 51.2755ZM85.1703 42.3177C86.8555 40.4802 87.6982 38.0432 87.6982 35.0068C87.6982 31.9703 86.8555 29.5379 85.1703 27.7096C84.3456 26.806 83.3434 26.093 82.2302 25.6178C81.1169 25.1426 79.9181 24.9161 78.7131 24.9534C77.5026 24.9186 76.2984 25.146 75.179 25.6209C74.0596 26.0957 73.0499 26.8074 72.2157 27.7096C70.5215 29.5287 69.6744 31.9657 69.6744 35.0206C69.6744 38.0754 70.5215 40.5078 72.2157 42.3177C73.0507 43.2189 74.0605 43.9299 75.1797 44.4047C76.2989 44.8795 77.5027 45.1075 78.7131 45.074C79.9179 45.1103 81.1166 44.8834 82.2297 44.4083C83.3428 43.9332 84.3451 43.2206 85.1703 42.3177Z"}),L.jsx("path",{d:"M187.827 5.54621e-10H197.565C197.787 5.54621e-10 197.999 0.0853594 198.156 0.2373C198.313 0.389241 198.401 0.595316 198.401 0.810193V52.8634C198.401 52.9694 198.379 53.0745 198.337 53.1724C198.295 53.2703 198.233 53.3591 198.156 53.4338C198.078 53.5085 197.986 53.5675 197.884 53.6075C197.783 53.6474 197.674 53.6675 197.565 53.6666H187.827C187.718 53.6666 187.611 53.6459 187.51 53.6055C187.41 53.5651 187.318 53.506 187.241 53.4314C187.164 53.3568 187.103 53.2682 187.062 53.1708C187.02 53.0733 186.999 52.9688 186.999 52.8634V0.810193C186.998 0.704125 187.018 0.598926 187.06 0.500669C187.101 0.402411 187.162 0.31304 187.239 0.237715C187.316 0.162389 187.407 0.102601 187.508 0.0618008C187.61 0.0210004 187.718 -3.94095e-06 187.827 5.54621e-10V5.54621e-10Z"}),L.jsx("path",{d:"M138.924 25.2187C137.26 22.3784 134.865 20.0701 132.005 18.5505C129.42 17.1729 126.578 16.3842 123.671 16.2378C123.128 16.1962 122.591 16.1408 122.027 16.1408C121.464 16.1408 120.927 16.1962 120.377 16.2378C117.94 16.3776 115.546 16.9589 113.304 17.955V0.810156C113.306 0.599481 113.227 0.396499 113.085 0.244956C112.944 0.0934118 112.75 0.00544026 112.546 0L103.406 0C103.198 0 102.998 0.0853555 102.851 0.237289C102.704 0.389223 102.621 0.59529 102.621 0.810156V52.861C102.623 53.0746 102.706 53.2789 102.853 53.4294C103 53.5798 103.199 53.6642 103.406 53.6642H112.546C112.752 53.6642 112.95 53.5796 113.096 53.4289C113.242 53.2783 113.324 53.074 113.324 52.861V51.8569C116.078 53.0793 119.049 53.6948 122.047 53.6642C125.51 53.718 128.931 52.8854 132.005 51.2407C134.853 49.7142 137.238 47.4069 138.897 44.5725C140.579 41.6406 141.441 38.285 141.386 34.8783C141.443 31.4859 140.591 28.1433 138.924 25.2187ZM128.523 42.2389C127.695 43.1457 126.691 43.8613 125.576 44.3387C124.461 44.8161 123.261 45.0445 122.054 45.0087C120.843 45.0424 119.638 44.8132 118.518 44.3361C117.398 43.859 116.387 43.1445 115.552 42.2389C114.427 40.9975 113.659 39.4587 113.331 37.7935C112.883 35.8844 112.883 33.8929 113.331 31.9839C113.659 30.3207 114.428 28.7842 115.552 27.5453C116.387 26.6387 117.397 25.9235 118.517 25.4463C119.638 24.9691 120.843 24.7406 122.054 24.7756C123.261 24.7385 124.462 24.9662 125.577 25.4437C126.692 25.9211 127.696 26.6375 128.523 27.5453C130.205 29.3918 131.046 31.8408 131.046 34.8921C131.046 37.9435 130.205 40.3924 128.523 42.2389Z"}),L.jsx("path",{d:"M171.742 17.1428V18.1215C169.01 16.9171 166.064 16.3092 163.092 16.3365C159.615 16.2772 156.179 17.1011 153.087 18.7349C150.224 20.2425 147.828 22.541 146.166 25.3719C144.48 28.2882 143.617 31.6289 143.672 35.0207C143.617 38.4125 144.48 41.7532 146.166 44.6695C147.834 47.4861 150.23 49.7718 153.087 51.2721C156.179 52.9037 159.616 53.7252 163.092 53.6636C166.064 53.693 169.009 53.0875 171.742 51.8855V52.8641C171.742 53.0762 171.824 53.2795 171.97 53.4294C172.116 53.5794 172.313 53.6636 172.52 53.6636H181.66C181.866 53.6636 182.064 53.5794 182.21 53.4294C182.355 53.2795 182.437 53.0762 182.437 52.8641V17.1428C182.437 16.9302 182.356 16.7261 182.21 16.5751C182.064 16.4241 181.866 16.3383 181.66 16.3365H172.52C172.313 16.3383 172.115 16.4241 171.969 16.5751C171.824 16.7261 171.742 16.9302 171.742 17.1428ZM169.549 42.3125C168.724 43.2155 167.722 43.9282 166.608 44.4035C165.495 44.8787 164.296 45.1056 163.092 45.0693C161.881 45.1028 160.677 44.8747 159.558 44.3998C158.439 43.9249 157.429 43.2138 156.594 42.3125C154.891 40.4746 154.039 38.0371 154.039 35C154.039 31.963 154.891 29.5255 156.594 27.6876C157.428 26.7852 158.438 26.0734 159.557 25.5984C160.677 25.1235 161.881 24.896 163.092 24.9308C164.297 24.8936 165.495 25.1201 166.609 25.5954C167.722 26.0707 168.724 26.7839 169.549 27.6876C170.66 28.9209 171.418 30.4446 171.742 32.0916C172.189 34.0033 172.189 35.9967 171.742 37.9085C171.416 39.5549 170.658 41.0781 169.549 42.3125Z"}),L.jsx("path",{d:"M41.0484 51.1316V17.1532C41.0485 16.9392 40.9619 16.7339 40.8076 16.582C40.6533 16.43 40.4437 16.3437 40.2246 16.3419H30.5438C30.3247 16.3437 30.1151 16.43 29.9608 16.582C29.8065 16.7339 29.7199 16.9392 29.7199 17.1532V18.2003C26.8101 16.9534 23.6643 16.3179 20.4866 16.335C16.8207 16.2935 13.2007 17.1342 9.9465 18.7828C6.92093 20.297 4.38759 22.6047 2.6309 25.4467C0.855237 28.3743 -0.0544231 31.7252 0.00296367 35.1271C-0.0590547 38.5392 0.853371 41.9008 2.638 44.8352C4.39099 47.6742 6.92257 49.9777 9.9465 51.4853C13.2111 53.1311 16.8413 53.9648 20.515 53.9123C23.7856 53.8752 27.015 53.196 30.0111 51.9152C30.0135 54.3789 29.0796 56.7559 27.3903 58.5861C25.6076 60.4167 24.116 61.3043 21.3318 61.3043C21.1127 61.3062 20.9031 61.3925 20.7488 61.5444C20.5945 61.6964 20.5079 61.9017 20.5079 62.1157V69.1887C20.5089 69.2968 20.5317 69.4036 20.5751 69.503C20.6185 69.6023 20.6817 69.6923 20.7609 69.7678C20.8402 69.8432 20.9339 69.9026 21.0368 69.9424C21.1397 69.9823 21.2496 70.0019 21.3603 70C24.7569 69.9521 28.0956 69.1331 31.112 67.6077C34.128 66.0809 36.6507 63.7667 38.3992 60.923C40.1863 57.9893 41.1012 54.6276 41.0413 51.2148C41.0413 51.2148 41.0484 51.1663 41.0484 51.1316ZM29.7199 37.8107C29.4003 39.553 28.5772 41.1698 27.3477 42.4706C26.475 43.379 25.4145 44.0961 24.2366 44.5742C23.0587 45.0524 21.7902 45.2808 20.515 45.2443C19.2361 45.2782 17.9641 45.0487 16.782 44.5708C15.5999 44.0929 14.5341 43.3773 13.654 42.4706C11.8594 40.6214 10.9598 38.1736 10.9551 35.1271C10.9503 32.0806 11.85 29.6328 13.654 27.7836C14.5349 26.878 15.6009 26.1631 16.7828 25.6852C17.9647 25.2074 19.2362 24.9773 20.515 25.0099C21.79 24.9747 23.0581 25.2037 24.2358 25.6818C25.4136 26.1599 26.4741 26.8762 27.3477 27.7836C28.5734 29.0842 29.396 30.6977 29.7199 32.4366C30.1081 34.2079 30.1081 36.0394 29.7199 37.8107Z"}),L.jsx("path",{d:"M257.684 51.0999V22.5384C257.684 22.4311 257.662 22.3248 257.621 22.2258C257.579 22.1267 257.519 22.0368 257.442 21.9613C257.366 21.8857 257.275 21.826 257.175 21.7856C257.076 21.7451 256.969 21.7248 256.861 21.7257H247.366C247.26 21.7257 247.154 21.7468 247.055 21.7877C246.957 21.8286 246.867 21.8886 246.792 21.9642C246.717 22.0397 246.658 22.1294 246.617 22.2279C246.577 22.3265 246.557 22.432 246.558 22.5384V45.1542C246.119 45.1542 245.861 45.1542 245.77 45.1542C242.793 44.7444 241.385 43.9943 239.775 42.3759C238.165 40.7575 237.628 38.4445 237.502 35.6939V27.6089C237.504 27.5002 237.483 27.3924 237.441 27.2921C237.399 27.1918 237.337 27.101 237.258 27.0254L231.863 21.816L226.614 16.4468C226.539 16.3683 226.449 16.3057 226.35 16.2627C226.251 16.2198 226.143 16.1973 226.035 16.1968H217.572C217.752 14.438 218.484 12.7805 219.663 11.4597C220.413 10.6232 221.327 9.94923 222.348 9.47962C223.37 9.01002 224.478 8.75484 225.603 8.72994C225.812 8.72104 226.009 8.63245 226.155 8.48249C226.3 8.33253 226.382 8.13267 226.384 7.92422V0.700484C226.386 0.537006 226.331 0.377718 226.228 0.250664C226.125 0.123609 225.98 0.0369334 225.819 0.00589429H225.672C225.612 -0.00196476 225.551 -0.00196476 225.491 0.00589429C222.189 0.0700753 218.946 0.887465 216.011 2.39528C213.404 3.73607 211.166 5.69354 209.495 8.09612C207.824 10.4987 206.77 13.273 206.425 16.1759H201.49C201.275 16.1778 201.069 16.2642 200.918 16.4164C200.766 16.5686 200.681 16.7743 200.681 16.9886V26.4767C200.681 26.5825 200.702 26.6873 200.743 26.7851C200.783 26.8828 200.843 26.9716 200.918 27.0465C200.993 27.1213 201.082 27.1806 201.18 27.2211C201.278 27.2616 201.384 27.2824 201.49 27.2824H206.265V53.0309C206.265 53.1373 206.286 53.2426 206.327 53.3408C206.368 53.439 206.428 53.5282 206.504 53.6031C206.58 53.678 206.67 53.7372 206.769 53.7773C206.868 53.8174 206.974 53.8375 207.081 53.8366H216.575C216.682 53.8375 216.788 53.8174 216.887 53.7773C216.986 53.7372 217.076 53.678 217.152 53.6031C217.227 53.5282 217.288 53.439 217.329 53.3408C217.37 53.2426 217.391 53.1373 217.391 53.0309V27.2824H226.384V34.9229C226.384 34.9229 226.384 34.9785 226.384 35.0132C226.326 38.4315 227.224 41.7984 228.977 44.7375C230.694 47.5755 233.168 49.8836 236.122 51.4056C239.096 52.9517 242.389 53.791 245.742 53.8575H246.572C246.311 55.6236 245.496 57.2623 244.243 58.539C242.494 60.3727 241.079 61.3173 238.36 61.3173C238.252 61.3164 238.145 61.3368 238.046 61.3772C237.946 61.4176 237.855 61.4774 237.779 61.5529C237.702 61.6285 237.641 61.7184 237.6 61.8174C237.559 61.9165 237.537 62.0227 237.537 62.13V69.194C237.536 69.3013 237.557 69.4076 237.598 69.5067C237.639 69.6058 237.7 69.6956 237.777 69.7708C237.854 69.846 237.945 69.9051 238.045 69.9444C238.145 69.9837 238.252 70.0025 238.36 69.9997C241.685 69.94 244.949 69.1025 247.889 67.5548C250.862 66.0456 253.358 63.7446 255.097 60.9075C256.847 57.9672 257.745 54.6012 257.691 51.1833C257.691 51.1833 257.684 51.1347 257.684 51.0999Z"})]})}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 n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},he.apply(this,arguments)}function bm(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function mc(...e){return t=>e.forEach(r=>bm(r,t))}function dt(...e){return f.useCallback(mc(...e),e)}const jr=f.forwardRef((e,t)=>{const{children:r,...n}=e,o=f.Children.toArray(r),a=o.find(ym);if(a){const s=a.props.children,i=o.map(l=>l===a?f.Children.count(s)>1?f.Children.only(null):f.isValidElement(s)?s.props.children:null:l);return f.createElement(cs,he({},n,{ref:t}),f.isValidElement(s)?f.cloneElement(s,void 0,i):null)}return f.createElement(cs,he({},n,{ref:t}),r)});jr.displayName="Slot";const cs=f.forwardRef((e,t)=>{const{children:r,...n}=e;return f.isValidElement(r)?f.cloneElement(r,{...xm(n,r.props),ref:t?mc(t,r.ref):r.ref}):f.Children.count(r)>1?f.Children.only(null):null});cs.displayName="SlotClone";const gc=({children:e})=>f.createElement(f.Fragment,null,e);function ym(e){return f.isValidElement(e)&&e.type===gc}function xm(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{a(...i),o(...i)}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}const wm=f.createContext(null),Cm=()=>f.useContext(wm),Be=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const r=f.forwardRef((n,o)=>{const{asChild:a,...s}=n,i=a?jr:t;return f.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),f.createElement(i,he({},s,{ref:o}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Pm(e,t){e&&gn.flushSync(()=>e.dispatchEvent(t))}const vc=f.forwardRef((e,t)=>f.createElement(Be.label,he({},e,{ref:t,onMouseDown:r=>{var n;(n=e.onMouseDown)===null||n===void 0||n.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault()}})));function bc(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=bc(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function $o(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=bc(e))&&(n&&(n+=" "),n+=t);return n}const yc=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,xc=$o,Mm=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return xc(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(c=>{const u=r==null?void 0:r[c],d=a==null?void 0:a[c];if(u===null)return null;const h=yc(u)||yc(d);return o[c][h]}),i=r&&Object.entries(r).reduce((c,u)=>{let[d,h]=u;return h===void 0||(c[d]=h),c},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,u)=>{let{class:d,className:h,...p}=u;return Object.entries(p).every(m=>{let[y,b]=m;return Array.isArray(b)?b.includes({...a,...i}[y]):{...a,...i}[y]===b})?[...c,d,h]:c},[]);return xc(e,s,l,r==null?void 0:r.class,r==null?void 0:r.className)};function Cn(...e){return ss($o(e))}const Tm=Mm("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),wc=U.forwardRef(({className:e,...t},r)=>L.jsx(vc,{ref:r,className:Cn(Tm(),e),...t}));wc.displayName=vc.displayName;const Em=U.createContext({}),Do=()=>{const e=U.useContext(Em),t=U.useContext(Cc),{getFieldState:r,formState:n}=Cm(),o=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},Cc=U.createContext({}),Sm=U.forwardRef(({className:e,...t},r)=>{const n=U.useId();return L.jsx(Cc.Provider,{value:{id:n},children:L.jsx("div",{ref:r,className:Cn("space-y-2",e),...t})})});Sm.displayName="FormItem";const $m=U.forwardRef(({className:e,...t},r)=>{const{error:n,formItemId:o}=Do();return L.jsx(wc,{ref:r,className:Cn(n&&"text-destructive",e),htmlFor:o,...t})});$m.displayName="FormLabel";const Dm=U.forwardRef(({...e},t)=>{const{error:r,formItemId:n,formDescriptionId:o,formMessageId:a}=Do();return L.jsx(jr,{ref:t,id:n,"aria-describedby":r?`${o} ${a}`:`${o}`,"aria-invalid":!!r,...e})});Dm.displayName="FormControl";const Im=U.forwardRef(({className:e,...t},r)=>{const{formDescriptionId:n}=Do();return L.jsx("p",{ref:r,id:n,className:Cn("text-sm text-muted-foreground",e),...t})});Im.displayName="FormDescription";const Pc=U.forwardRef(({className:e,children:t,...r},n)=>{const{error:o,formMessageId:a}=Do(),s=o?String(o==null?void 0:o.message):t;return s?L.jsx("p",{ref:n,id:a,className:Cn("text-sm font-medium text-destructive",e),...r,children:s}):null});Pc.displayName="FormMessage";const km=({children:e})=>L.jsx(Pc,{children:e}),ur=(...e)=>ss($o(e)),Mc=({children:e,className:t,font:r="satoshi",weight:n="regular",...o})=>{const a=Me({variants:{font:{satoshi:"font-satoshi",livvic:"font-livvic"},weight:{light:"font-light",regular:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",black:"font-black"}}});return L.jsx("p",{...o,className:ur(t,a({font:r,weight:n})),children:e})},Am={bra:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzciIHZpZXdCb3g9IjAgMCAzOCAzNyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTguNTA5OSIgY3k9IjE4LjUwMzMiIHI9IjE4LjUwMzMiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0xOC41MSAzNS4xODY1QzI3LjcyMzkgMzUuMTg2NSAzNS4xOTMzIDI3LjcxNzEgMzUuMTkzMyAxOC41MDMyQzM1LjE5MzMgOS4yODkyMSAyNy43MjM5IDEuODE5ODIgMTguNTEgMS44MTk4MkM5LjI5NjA0IDEuODE5ODIgMS44MjY2NiA5LjI4OTIxIDEuODI2NjYgMTguNTAzMkMxLjgyNjY2IDI3LjcxNzEgOS4yOTYwNCAzNS4xODY1IDE4LjUxIDM1LjE4NjVaIiBmaWxsPSIjMEI5RjU5Ii8+CjxwYXRoIGQ9Ik0xOC41MTAxIDguMzQ4MjhMMzIuMjkyIDE4LjUwMzNMMTguNTEwMSAyOC42NTg0TDQuNzI4MjQgMTguNTAzM0wxOC41MTAxIDguMzQ4MjhaIiBmaWxsPSIjRkZEQTQ0Ii8+CjxwYXRoIGQ9Ik0xOC41MDk5IDI0LjMwNjJDMjEuNzE0OCAyNC4zMDYyIDI0LjMxMjggMjEuNzA4MSAyNC4zMTI4IDE4LjUwMzNDMjQuMzEyOCAxNS4yOTg1IDIxLjcxNDggMTIuNzAwNCAxOC41MDk5IDEyLjcwMDRDMTUuMzA1MSAxMi43MDA0IDEyLjcwNyAxNS4yOTg1IDEyLjcwNyAxOC41MDMzQzEyLjcwNyAyMS43MDgxIDE1LjMwNTEgMjQuMzA2MiAxOC41MDk5IDI0LjMwNjJaIiBmaWxsPSIjRjBGMEYwIi8+CjxwYXRoIGQ9Ik0xNS42MDgzIDE4LjEzOTdDMTQuNTk5MiAxOC4xMzk3IDEzLjYyNTQgMTguMjkzMSAxMi43MDg3IDE4LjU3NzlDMTIuNzQ5MyAyMS43NDc4IDE1LjMzMDMgMjQuMzA1MyAxOC41MDk4IDI0LjMwNTNDMjAuNDc1OCAyNC4zMDUzIDIyLjIxMjIgMjMuMzI2NiAyMy4yNjE4IDIxLjgzMDlDMjEuNDY2IDE5LjU4MjggMTguNzAyNyAxOC4xMzk3IDE1LjYwODMgMTguMTM5N1oiIGZpbGw9IiMwMDUyQjQiLz4KPHBhdGggZD0iTTI0LjIwNTEgMTkuNjE0MkMyNC4yNzUgMTkuMjU0MiAyNC4zMTI3IDE4Ljg4MjggMjQuMzEyNyAxOC41MDI1QzI0LjMxMjcgMTUuMjk3NiAyMS43MTQ3IDEyLjY5OTYgMTguNTA5OSAxMi42OTk2QzE2LjExODUgMTIuNjk5NiAxNC4wNjU3IDE0LjE0NjQgMTMuMTc3MyAxNi4yMTIxQzEzLjk2MjYgMTYuMDQ5NCAxNC43NzU3IDE1Ljk2MzcgMTUuNjA4NSAxNS45NjM3QzE4Ljk3ODggMTUuOTYzNyAyMi4wMjc4IDE3LjM2NDcgMjQuMjA1MSAxOS42MTQyWiIgZmlsbD0iIzAwNTJCNCIvPgo8L3N2Zz4K",esp:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzciIHZpZXdCb3g9IjAgMCAzOCAzNyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTguNTE2OCIgY3k9IjE4LjUwMzMiIHI9IjE4LjUwMzMiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0xLjgzMzUgMTguNTAyN0MxLjgzMzUgMjAuNTQzNCAyLjIwMDU5IDIyLjQ5ODIgMi44NzExOSAyNC4zMDU2TDE4LjUxNjggMjUuNzU2M0wzNC4xNjI1IDI0LjMwNTZDMzQuODMzMSAyMi40OTgyIDM1LjIwMDIgMjAuNTQzNCAzNS4yMDAyIDE4LjUwMjdDMzUuMjAwMiAxNi40NjIgMzQuODMzMSAxNC41MDcyIDM0LjE2MjUgMTIuNjk5OEwxOC41MTY4IDExLjI0OTFMMi44NzExOSAxMi42OTk4QzIuMjAwNTkgMTQuNTA3MiAxLjgzMzUgMTYuNDYyIDEuODMzNSAxOC41MDI3WiIgZmlsbD0iI0ZGREE0NCIvPgo8cGF0aCBkPSJNMzQuMTYyOCAxMi43MDAzQzMxLjgwNTUgNi4zNDczNSAyNS42OTA0IDEuODE5ODIgMTguNTE3MSAxLjgxOTgyQzExLjM0MzkgMS44MTk4MiA1LjIyODcgNi4zNDczNSAyLjg3MTQ2IDEyLjcwMDNIMzQuMTYyOFoiIGZpbGw9IiNEODAwMjciLz4KPHBhdGggZD0iTTIuODcxMTkgMjQuMzA1NkM1LjIyODQyIDMwLjY1ODYgMTEuMzQzOSAzNS4xODY1IDE4LjUxNzEgMzUuMTg2NUMyNS42OTA0IDM1LjE4NjUgMzEuODA1MiAzMC42NTg2IDM0LjE2MjUgMjQuMzA1NkgyLjg3MTE5WiIgZmlsbD0iI0Q4MDAyNyIvPgo8L3N2Zz4K",usa:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzciIGhlaWdodD0iMzciIHZpZXdCb3g9IjAgMCAzNyAzNyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTguNTAzMyIgY3k9IjE4LjUwMzMiIHI9IjE4LjUwMzMiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0xOC41MDM0IDM1LjE4NjVDMjcuNzE3NCAzNS4xODY1IDM1LjE4NjcgMjcuNzE3MSAzNS4xODY3IDE4LjUwMzJDMzUuMTg2NyA5LjI4OTIxIDI3LjcxNzQgMS44MTk4MiAxOC41MDM0IDEuODE5ODJDOS4yODk0NSAxLjgxOTgyIDEuODIwMDcgOS4yODkyMSAxLjgyMDA3IDE4LjUwMzJDMS44MjAwNyAyNy43MTcxIDkuMjg5NDUgMzUuMTg2NSAxOC41MDM0IDM1LjE4NjVaIiBmaWxsPSIjRjBGMEYwIi8+CjxwYXRoIGQ9Ik0xNy43Nzc5IDE4LjUwMzdIMzUuMTg2NkMzNS4xODY2IDE2Ljk5NzggMzQuOTg1OCAxNS41MzkxIDM0LjYxMTggMTQuMTUxNUgxNy43Nzc5VjE4LjUwMzdaIiBmaWxsPSIjRDgwMDI3Ii8+CjxwYXRoIGQ9Ik0xNy43Nzc5IDkuNzk5MzRIMzIuNzM3OUMzMS43MTY2IDguMTMyODMgMzAuNDEwOCA2LjY1OTgxIDI4Ljg4ODMgNS40NDcxNEgxNy43Nzc5VjkuNzk5MzRaIiBmaWxsPSIjRDgwMDI3Ii8+CjxwYXRoIGQ9Ik0xOC41MDM0IDM1LjE4NjVDMjIuNDI5OCAzNS4xODY1IDI2LjAzODQgMzMuODI5OCAyOC44ODgyIDMxLjU2MDFIOC4xMTc5OUMxMC45Njc4IDMzLjgyOTggMTQuNTc3IDM1LjE4NjUgMTguNTAzNCAzNS4xODY1WiIgZmlsbD0iI0Q4MDAyNyIvPgo8cGF0aCBkPSJNNC4yNjg1NyAyNy4yMDhIMzIuNzM3OUMzMy41NTc4IDI1Ljg3MDEgMzQuMTkzNiAyNC40MDc3IDM0LjYxMTggMjIuODU1OEgyLjM5NDYzQzIuODEyODIgMjQuNDA3NyAzLjQ0ODY3IDI1Ljg3MDEgNC4yNjg1NyAyNy4yMDhaIiBmaWxsPSIjRDgwMDI3Ii8+CjxwYXRoIGQ9Ik05LjU0ODEgNC40MjUxNkgxMS4wNjg0TDkuNjU0MjYgNS40NTI1NUwxMC4xOTQ0IDcuMTE0OTZMOC43ODAzNCA2LjA4NzU2TDcuMzY2MjMgNy4xMTQ5Nkw3LjgzMjg1IDUuNjc4ODJDNi41ODc3MiA2LjcxNTk5IDUuNDk2NCA3LjkzMTE0IDQuNTk3MDYgOS4yODUwOUg1LjA4NDJMNC4xODQwMiA5LjkzOTA3QzQuMDQzNzcgMTAuMTczIDMuOTA5MjYgMTAuNDEwNyAzLjc4MDM2IDEwLjY1MTlMNC4yMTAyMiAxMS45NzQ5TDMuNDA4MjQgMTEuMzkyMkMzLjIwODg5IDExLjgxNDYgMy4wMjY1NSAxMi4yNDY1IDIuODYyNjUgMTIuNjg3M0wzLjMzNjIzIDE0LjE0NUg1LjA4NDJMMy42NzAwMyAxNS4xNzI0TDQuMjEwMjIgMTYuODM0OEwyLjc5NjExIDE1LjgwNzRMMS45NDkwNCAxNi40MjI5QzEuODY0MjUgMTcuMTA0NCAxLjgyMDA3IDE3Ljc5ODYgMS44MjAwNyAxOC41MDMySDE4LjUwMzRDMTguNTAzNCA5LjI4OTI3IDE4LjUwMzQgOC4yMDMwMiAxOC41MDM0IDEuODE5ODJDMTUuMjA3NyAxLjgxOTgyIDEyLjEzNTQgMi43NzU4NiA5LjU0ODEgNC40MjUxNlpNMTAuMTk0NCAxNi44MzQ4TDguNzgwMzQgMTUuODA3NEw3LjM2NjIzIDE2LjgzNDhMNy45MDY0MiAxNS4xNzI0TDYuNDkyMjUgMTQuMTQ1SDguMjQwMjJMOC43ODAzNCAxMi40ODI2TDkuMzIwNDYgMTQuMTQ1SDExLjA2ODRMOS42NTQyNiAxNS4xNzI0TDEwLjE5NDQgMTYuODM0OFpNOS42NTQyNiAxMC4zMTI1TDEwLjE5NDQgMTEuOTc0OUw4Ljc4MDM0IDEwLjk0NzVMNy4zNjYyMyAxMS45NzQ5TDcuOTA2NDIgMTAuMzEyNUw2LjQ5MjI1IDkuMjg1MDlIOC4yNDAyMkw4Ljc4MDM0IDcuNjIyNjlMOS4zMjA0NiA5LjI4NTA5SDExLjA2ODRMOS42NTQyNiAxMC4zMTI1Wk0xNi4xNzg3IDE2LjgzNDhMMTQuNzY0NiAxNS44MDc0TDEzLjM1MDUgMTYuODM0OEwxMy44OTA3IDE1LjE3MjRMMTIuNDc2NSAxNC4xNDVIMTQuMjI0NUwxNC43NjQ2IDEyLjQ4MjZMMTUuMzA0NyAxNC4xNDVIMTcuMDUyN0wxNS42Mzg1IDE1LjE3MjRMMTYuMTc4NyAxNi44MzQ4Wk0xNS42Mzg1IDEwLjMxMjVMMTYuMTc4NyAxMS45NzQ5TDE0Ljc2NDYgMTAuOTQ3NUwxMy4zNTA1IDExLjk3NDlMMTMuODkwNyAxMC4zMTI1TDEyLjQ3NjUgOS4yODUwOUgxNC4yMjQ1TDE0Ljc2NDYgNy42MjI2OUwxNS4zMDQ3IDkuMjg1MDlIMTcuMDUyN0wxNS42Mzg1IDEwLjMxMjVaTTE1LjYzODUgNS40NTI1NUwxNi4xNzg3IDcuMTE0OTZMMTQuNzY0NiA2LjA4NzU2TDEzLjM1MDUgNy4xMTQ5NkwxMy44OTA3IDUuNDUyNTVMMTIuNDc2NSA0LjQyNTE2SDE0LjIyNDVMMTQuNzY0NiAyLjc2Mjc2TDE1LjMwNDcgNC40MjUxNkgxNy4wNTI3TDE1LjYzODUgNS40NTI1NVoiIGZpbGw9IiMwMDUyQjQiLz4KPC9zdmc+Cg=="},Om=({shadow:e,country:t,className:r,...n})=>{const o=Me({base:"rounded-full",variants:{shadow:{true:"shadow-[4px_4px_6px_0px_rgba(0,0,0,0.17)]",false:""}}}),a=Am[t];return L.jsx("img",{...n,src:a,alt:`${t} flag`,className:ur(r,o({shadow:e}))})},G8="",et=({name:e,className:t,...r})=>L.jsx("span",{...r,className:`icon-${e} ${t??""}`});({IcoMoonType:"selection",icons:[{icon:{paths:["M310.499 16.002c-23.478 0-42.513 19.035-42.513 42.513v0 31.663c-73.907 6.95-136.926 27.183-179.246 68.199-50.775 49.212-72.741 118.961-72.741 194.857v385.506c0 75.896 21.966 145.754 72.741 194.966s126.295 74.291 221.76 74.291h402.999c95.465 0 170.986-25.078 221.76-74.291s72.741-119.071 72.741-194.966v-385.506c0-75.896-21.966-145.644-72.741-194.857-42.318-41.017-105.339-61.249-179.246-68.199v-31.663c0-23.478-19.035-42.513-42.513-42.513v0c-23.478 0-42.513 19.035-42.513 42.513v0 25.463h-317.969v-25.463c0-23.478-19.035-42.513-42.513-42.513v0zM353.011 169.008h317.969v25.575c0 23.478 19.035 42.513 42.513 42.513v0c23.478 0 42.513-19.035 42.513-42.513v0-19.597c53.909 6.407 95.525 20.662 120.013 44.397 27.978 27.117 41.762 66.998 44.616 118.134h-817.293c2.854-51.13 16.643-91.016 44.616-118.134 24.489-23.736 66.107-37.991 120.013-44.397v19.597c0 23.478 19.035 42.513 42.513 42.513v0c23.478 0 42.513-19.035 42.513-42.513v0zM101.030 422.544h821.943v316.199c0 60.151-15.841 103.706-46.943 133.853s-81.639 50.375-162.53 50.375h-402.999c-80.887 0-131.424-20.23-162.53-50.375s-46.943-73.703-46.943-133.853zM325.335 546.544c-23.478 0-42.513 19.035-42.513 42.513v0c0 23.478 19.035 42.513 42.513 42.513v0h0.443c23.478 0 42.513-19.035 42.513-42.513v0c0-23.478-19.035-42.513-42.513-42.513v0zM511.779 546.544c-23.478 0-42.513 19.035-42.513 42.513v0c0 23.478 19.035 42.513 42.513 42.513v0h0.443c23.478 0 42.513-19.035 42.513-42.513v0c0-23.478-19.035-42.513-42.513-42.513v0zM698.217 546.544c-23.478 0-42.513 19.035-42.513 42.513v0c0 23.478 19.035 42.513 42.513 42.513v0h0.443c23.478 0 42.513-19.035 42.513-42.513v0c0-23.478-19.035-42.513-42.513-42.513v0zM325.335 682.611c-23.478 0-42.513 19.035-42.513 42.513v0c0 23.478 19.035 42.513 42.513 42.513v0h0.443c23.478 0 42.513-19.035 42.513-42.513v0c0-23.478-19.035-42.513-42.513-42.513v0zM511.779 682.611c-23.478 0-42.513 19.035-42.513 42.513v0c0 23.478 19.035 42.513 42.513 42.513v0h0.443c23.478 0 42.513-19.035 42.513-42.513v0c0-23.478-19.035-42.513-42.513-42.513v0zM698.217 682.611c-23.478 0-42.513 19.035-42.513 42.513v0c0 23.478 19.035 42.513 42.513 42.513v0h0.443c23.478 0 42.513-19.035 42.513-42.513v0c0-23.478-19.035-42.513-42.513-42.513v0z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["calendar"],colorPermutations:{}},attrs:[],properties:{order:22,id:13,name:"calendar",prevSize:32,code:59660},setIdx:0,setId:2,iconIdx:0},{icon:{paths:["M92.308 1008.001l-76.307-76.31 419.692-419.691-419.692-419.692 76.307-76.307 419.692 419.692 419.691-419.692 76.31 76.307-419.692 419.692 419.692 419.691-76.31 76.31-419.691-419.692-419.692 419.692z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["close"],colorPermutations:{}},attrs:[],properties:{order:20,id:12,name:"close",prevSize:32,code:59659},setIdx:0,setId:2,iconIdx:1},{icon:{paths:["M511.987 16c-149.541 0-272.515 116.646-272.515 261.345s122.974 261.318 272.515 261.318c149.541 0 272.54-116.619 272.54-261.318s-123-261.345-272.54-261.345zM511.987 69.327c122.036 0 219.215 93.514 219.215 208.019s-97.181 207.991-219.215 207.991c-122.036 0-219.189-93.488-219.189-207.991s97.154-208.019 219.189-208.019zM511.987 626.151c-122.143 0-233.304 38.294-314.957 101.757s-134.096 153.351-134.096 253.428c0 14.725 11.937 26.663 26.663 26.663v0c14.725 0 26.663-11.937 26.663-26.663v0c0-81.552 42.225-155.929 113.499-211.327s171.288-90.535 282.227-90.535c110.94 0 210.978 35.138 282.254 90.535s113.499 129.773 113.499 211.327c0 14.725 11.937 26.663 26.663 26.663v0c14.725 0 26.663-11.937 26.663-26.663v0c0-100.079-52.443-189.967-134.096-253.428s-192.841-101.757-314.984-101.757z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["user"],colorPermutations:{}},attrs:[],properties:{order:18,id:11,name:"user",prevSize:32,code:59658},setIdx:0,setId:2,iconIdx:2},{icon:{paths:["M479.562 16.805l-25.249 2.704c-85.122 9.016-168.126 42.381-241.661 97.025-27.458 20.423-75.563 68.53-96.213 96.124-112.624 150.903-131.877 345.585-50.901 514.566 24.618 51.308 53.156 91.118 96.528 134.446 43.329 43.372 83.138 71.911 134.446 96.528 168.936 80.974 363.753 61.632 514.745-51.083 27.458-20.47 75.698-68.711 96.169-96.169 134.086-179.667 134.086-418.804 0-598.47-20.47-27.413-68.666-75.61-96.033-95.944-71.911-53.472-147.656-84.537-235.214-96.44-19.071-2.616-83.365-4.78-96.62-3.292zM571.537 110.494c115.556 17.447 216.593 82.507 281.336 181.201 13.662 20.875 33.498 61.272 42.020 85.663 15.6 44.769 21.866 83.183 21.866 134.357 0 67.314-11.587 118.17-40.442 177.639-31.786 65.555-79.757 120.244-142.157 161.949-35.573 23.806-92.472 47.612-136.114 57.034-25.62 5.722-55.043 8.998-85.231 8.998-96.674 0-185.496-33.609-255.424-89.779l0.796 0.619c-68.215-54.644-119.387-134.806-139.902-219.072-8.387-34.401-11-57.348-11-97.385 0-67.314 11.587-118.17 40.442-177.639 48.209-97.574 131.699-171.591 233.4-206.28l2.851-0.844c31.786-10.504 57.348-15.69 98.288-19.928 14.519-1.488 70.83 0.676 89.27 3.471zM494.621 288.856c-9.882 2.687-17.931 9.133-22.672 17.667l-0.094 0.187c-4.012 7.484-4.012 7.935-4.508 110.821-0.36 66.771 0.136 105.727 1.352 110.19 4.735 17.674 17.764 27.322 38.638 28.674 21.866 1.397 36.204-4.915 44.365-19.523l4.508-8.025v-214.608l-4.012-7.528c-2.526-4.494-5.734-8.293-9.532-11.395l-0.071-0.056c-11.903-8.52-32.507-11.227-47.972-6.403zM494.621 649.453c-17.764 5.816-25.925 17.223-27.277 38.097-1.397 21.687 4.959 36.025 19.523 44.184 6.988 3.923 10.235 4.508 25.158 4.508 14.067 0 18.395-0.721 24.346-3.876 14.698-7.935 20.739-19.611 20.739-40.306 0-28.99-12.939-42.922-41.344-44.365-8.567-0.452-16.455 0.224-21.146 1.759z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["alert-circle"]},attrs:[{}],properties:{order:3,id:9,name:"alert-circle",prevSize:32,code:59648},setIdx:0,setId:2,iconIdx:3},{icon:{paths:["M86.74 248.039c-13.743 7.271-32.022 25.885-39.226 39.959-3.593 6.962-5.699 15.194-5.699 23.918 0 8.777 2.132 17.053 5.906 24.343l-0.14-0.295c8.339 16.68 423.485 431.822 440.161 440.161 7.050 3.626 15.386 5.753 24.216 5.753s17.166-2.127 24.519-5.894l-0.303 0.141c16.68-8.339 431.822-423.485 440.161-440.161 11.741-23.549 5.737-47.899-17.345-70.981-22.684-22.684-48.099-28.753-71.58-17.012-7.472 3.734-71.38 65.711-193.329 187.392l-182.121 181.854-182.121-181.854c-121.949-121.682-185.858-183.656-193.329-187.392-7.274-3.457-15.806-5.475-24.812-5.475-9.058 0-17.641 2.042-25.313 5.692l0.355-0.152z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["chevron-down"]},attrs:[{}],properties:{order:4,id:8,name:"chevron-down",prevSize:32,code:59649},setIdx:0,setId:2,iconIdx:4},{icon:{paths:["M696.431 22.299c-16.683 8.519-455.166 447.703-463.259 463.964-3.67 7.465-5.925 16.214-6.192 25.461l-0.002 0.092c0 7.814 2.463 18.021 6.195 25.553 8.798 17.599 446.859 455.657 464.458 464.458 24.848 12.388 50.544 6.053 74.898-18.302 24.426-24.426 30.692-50.050 18.302-74.898-4.434-8.729-63.566-69.902-198.087-204.633l-191.892-192.174 191.892-192.174c134.521-134.733 193.654-195.904 198.087-204.633 12.388-24.848 6.124-50.472-18.302-74.898-23.934-23.934-51.6-30.411-76.097-17.811z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["chevron-left"]},attrs:[{}],properties:{order:5,id:7,name:"chevron-left",prevSize:32,code:59650},setIdx:0,setId:2,iconIdx:5},{icon:{paths:["M274.397 21.85c-14.506 7.676-33.802 27.323-41.407 42.182-3.793 7.347-6.016 16.037-6.016 25.248 0 9.265 2.25 18.003 6.233 25.699l-0.148-0.312c4.436 8.732 63.589 69.927 198.164 204.713l191.967 192.248-191.967 192.248c-134.573 134.785-193.727 195.98-198.164 204.713-12.393 24.858-6.126 50.492 18.309 74.927 24.366 24.366 50.068 30.704 74.927 18.309 17.606-8.802 455.833-447.031 464.636-464.636 3.671-7.468 5.928-16.22 6.194-25.472l0.002-0.092c-0.268-9.341-2.525-18.096-6.36-25.936l0.164 0.373c-8.522-17.112-446.96-455.833-464.002-464.284-7.679-3.647-16.687-5.779-26.192-5.779-9.563 0-18.623 2.157-26.72 6.009l0.376-0.161z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["chevron-right"]},attrs:[{}],properties:{order:6,id:6,name:"chevron-right",prevSize:32,code:59651},setIdx:0,setId:2,iconIdx:6},{icon:{paths:["M122.87 145.282c-45.789 7.741-83.47 41.162-97.682 86.706l-3.85 12.287v535.715l3.85 12.287c12.591 40.186 43.612 71.207 82.901 83.554l0.897 0.243 12.287 3.85h781.455l12.287-3.85c40.186-12.591 71.207-43.612 83.554-82.901l0.243-0.897 3.85-12.287v-535.715l-3.85-12.287c-12.527-39.881-43.174-70.717-82.042-83.262l-0.897-0.25-13.147-4.136-385.813-0.246c-212.197-0.122-389.54 0.41-394.045 1.187zM893.308 227.933c6.274 1.981 11.613 5.404 15.833 9.892l0.019 0.020c12.122 12.122 12.41 14.212 12.41 87.812v63.606h-819.135v-63.606c0-73.641 0.287-75.688 12.451-87.812 4.087-4.335 9.153-7.7 14.847-9.746l0.265-0.083c6.554-2.006 60.903-2.375 381.308-2.458 329.949-0.122 374.59 0.163 382.004 2.375zM921.568 616.736c0 157.93 0.205 154.324-9.051 166.448-2.499 3.277-7.945 7.986-12.082 10.403l-7.536 4.424h-761.796l-7.536-4.424c-4.601-2.832-8.531-6.217-11.861-10.129l-0.058-0.069c-9.543-12.532-9.216-6.511-9.216-165.793v-146.42h819.135v145.56z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["credit-card"]},attrs:[{}],properties:{order:7,id:5,name:"credit-card",prevSize:32,code:59652},setIdx:0,setId:2,iconIdx:7},{icon:{paths:["M492.829 18.619c-10.883 2.958-19.748 10.059-24.973 19.459l-0.104 0.207-4.42 8.292-0.545 247.21-0.497 247.258-85.911-85.614c-55.718-55.57-88.793-87.104-94.207-89.835-17.481-8.74-36.402-4.222-53.286 12.664-17.232 17.232-21.653 35.309-12.863 52.839 3.029 6.107 42.559 47.177 128.818 133.984 68.432 68.879 126.138 127.775 128.223 130.854 5.065 7.649 27.064 17.529 38.934 17.529s33.869-9.884 38.934-17.529c2.085-3.078 59.792-61.975 128.223-130.854 86.261-86.806 125.79-127.875 128.818-133.984 8.789-17.529 4.371-35.607-12.863-52.839-16.886-16.886-35.805-21.404-53.286-12.664-5.414 2.732-38.487 34.265-94.207 89.835l-85.863 85.565-1.092-494.419-4.42-8.292c-2.783-4.951-6.316-9.135-10.5-12.553l-0.078-0.062c-13.111-9.387-35.805-12.366-52.839-7.052zM45.887 614.542c-10.883 2.958-19.748 10.059-24.973 19.459l-0.104 0.207-4.42 8.292v244.328l4.669 14.899c9.139 29.298 24.583 52.293 49.412 73.547 14.004 12.017 32.33 21.901 52.193 28.058l14.899 4.669h748.876l14.899-4.669c48.726-15.268 86.337-52.879 101.311-100.52l0.294-1.085 4.669-14.899v-244.328l-4.519-8.442c-8.194-15.396-27.808-23.838-50.406-21.801-21.603 1.987-36.402 13.060-41.367 30.988-1.242 4.42-2.035 48.816-2.035 114.666 0 116.601-0.15 118.588-10.975 132.792-3.029 3.973-9.634 9.684-14.651 12.614l-9.139 5.363h-725.040l-9.139-5.363c-9.66-5.925-17.262-14.373-22.001-24.433l-0.147-0.346c-1.837-4.172-2.732-34.762-3.477-120.823-0.993-114.418-1.043-115.261-5.414-123.505-2.783-4.951-6.316-9.135-10.5-12.553l-0.078-0.062c-13.111-9.387-35.805-12.366-52.839-7.052z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["download"]},attrs:[{}],properties:{order:8,id:4,name:"download",prevSize:32,code:59653},setIdx:0,setId:2,iconIdx:8},{icon:{paths:["M794.006 17.661l-151.696 1.040-9.863 5.054c-16.85 8.673-23.837 23.986-22.3 48.666 1.437 22.747 11.943 37.069 31.023 42.371 4.362 1.239 44.353 2.031 101.345 2.031h94.11l-234.158 234.406c-167.702 167.801-235.446 236.884-238.618 243.178-8.721 17.494-4.311 35.583 12.884 52.728 17.147 17.197 35.236 21.607 52.728 12.884 6.293-3.172 75.377-70.917 243.178-238.618l234.406-234.158v94.11c0 56.992 0.793 96.984 2.031 101.345 5.301 19.080 19.624 29.586 42.371 31.023 24.034 1.536 39.794-5.402 48.764-21.459l4.956-8.822 1.337-156.601c0.743-86.13 1.389-159.525 1.487-163.094 0.199-9.367-10.010-30.676-17.197-35.781-11.101-7.88-24.034-12.29-34.839-11.796-5.65 0.247-78.549 0.942-161.954 1.487zM138.857 168.514c-55.307 9.267-100.999 49.804-118.194 104.912l-4.659 14.867v598.654l4.659 14.867c15.235 48.626 52.77 86.159 100.311 101.101l1.085 0.293 14.867 4.659h598.654l14.867-4.659c48.626-15.235 86.159-52.77 101.101-100.311l0.293-1.085 4.659-14.867v-342.936l-4.51-8.424c-8.177-15.363-27.751-23.787-50.3-21.756-21.557 1.983-36.326 13.034-41.281 30.924-1.288 4.558-2.031 65.068-2.031 163.985 0 170.081 0.149 167.504-10.951 182.074-3.023 3.964-9.614 9.664-14.62 12.587l-9.119 5.353h-574.865l-9.119-5.353c-5.567-3.428-10.323-7.523-14.351-12.254l-0.070-0.086c-11.796-15.463-11.15 1.585-11.15-302.349 0-314.194-1.090-292.092 15.016-308.198 15.61-15.61 8.177-15.016 186.040-15.016 98.917 0 159.377-0.743 163.935-2.031 11.026-3.042 20.021-10.196 25.414-19.667l0.108-0.206c4.311-7.73 4.956-11.2 4.906-27.653-0.050-21.459-4.014-31.964-14.916-39.696-13.925-9.911-13.034-9.863-185.048-9.614-88.411 0.098-165.274 0.991-170.726 1.884z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["external-link"]},attrs:[{}],properties:{order:9,id:3,name:"external-link",prevSize:32,code:59654},setIdx:0,setId:2,iconIdx:9},{icon:{paths:["M37.011 21.092c-7.44 4.919-15.211 13.392-19.096 20.832-2.893 5.497-2.397 26.205 0.744 32.446 1.488 2.893 43.936 46.623 94.363 97.173l91.676 91.883-22.072 19.881c-55.882 50.302-111.391 120.526-152.394 192.652-19.923 35.091-19.551 40.216 6.572 83.906 22.981 38.439 50.839 77.582 81.963 114.987 17.277 20.832 68.571 72.374 88.204 88.659 77.664 64.52 156.486 101.967 243.863 115.938 29.181 4.671 84.691 4.919 114.905 0.537 64.774-9.256 123.081-30.451 174.918-61.366l-2.146 1.186 14.053-8.391 95.891 95.643c52.74 52.575 98.289 96.801 101.182 98.289 3.431 1.695 9.589 2.645 17.484 2.645 10.871 0 13.061-0.579 19.881-5.084 7.44-4.919 15.211-13.392 19.096-20.832 1.033-1.984 1.901-9.135 1.901-15.872 0-10.788-0.579-13.061-4.877-19.509-6.696-10.003-922.132-924.736-928.745-928.042-3.431-1.695-9.631-2.645-17.484-2.645-10.871 0-13.061 0.579-19.881 5.084zM483.073 140.957c-38.77 3.885-70.679 9.879-81.384 15.335-17.443 8.928-22.651 27.611-14.467 51.748 3.431 9.961 12.565 20.501 19.964 22.94 7.233 2.397 20.584 2.356 31.413-0.083 21.828-4.99 46.894-7.847 72.629-7.847 24.765 0 48.908 2.647 72.168 7.674l-2.239-0.405c112.673 22.94 225.345 110.358 314.128 243.697 27.404 41.126 25.833 34.802 13.681 54.89-18.486 29.629-36.424 54.854-55.698 78.967l1.263-1.635c-15.665 19.427-20.419 28.396-20.419 38.728 0 9.961 3.844 17.897 13.020 26.825 15.789 15.335 32.074 19.179 47.078 10.995 16.285-8.845 62.164-70.431 96.553-129.578 23.188-39.844 23.064-44.267-2.356-87.212-37.302-62.647-79.77-116.755-128.241-164.821l-0.056-0.055c-52.906-52.864-96.015-84.608-154.667-113.789-47.987-23.891-92.875-37.778-142.185-43.978-14.921-1.901-69.067-3.472-80.186-2.397zM363.497 436.278c-7.027 12.235-16.161 40.547-18.6 57.411-2.273 15.748-1.281 38.026 2.439 55.51 13.81 64.070 63.4 113.659 126.385 127.273l1.085 0.197c36.992 7.853 73.986 2.976 109.035-14.467l13.144-6.531 95.767 95.767-18.145 9.093c-55.551 27.859-106.762 40.010-167.562 39.762-34.884-0.124-55.51-2.852-85.146-11.325-108.953-31.041-213.029-116.558-296.355-243.491-23.767-36.207-22.609-30.421-10.209-50.798 36.103-58.15 77.662-108.281 125.123-152.115l0.487-0.445 22.196-20.295 105.481 105.481-5.125 8.969zM482.99 541.677c28.148 28.189 50.839 51.5 50.426 51.872-2.371 0.956-5.22 1.825-8.155 2.456l-0.358 0.065c-32.694 8.019-71.795-10.664-88.618-42.324-7.068-13.309-10.871-31.165-9.424-44.226s2.645-19.013 3.927-19.013c0.579 0 24.097 23.023 52.203 51.17z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["eye-off"]},attrs:[{}],properties:{order:10,id:2,name:"eye-off",prevSize:32,code:59655},setIdx:0,setId:2,iconIdx:10},{icon:{paths:["M476.812 145.058c-91.938 8.183-178.844 45.99-262.682 114.237-22.013 17.88-73.24 69.23-93.411 93.576-27.898 33.332-54.401 70.307-78.054 109.206l-2.265 4.009c-25.408 43.004-25.408 48.075 0 91.079 26.595 43.828 53.754 81.602 83.511 117.127l-1.187-1.456c17.103 20.621 67.881 71.644 87.316 87.765 95.252 79.132 196.848 119.231 301.963 119.231 101.186 0 199.262-37.274 291.528-110.8 24.55-19.599 77.168-71.317 97.789-96.194 28.531-34.062 55.678-71.838 79.947-111.56l2.335-4.112c25.408-43.004 25.408-48.075 0-91.079-36.927-62.014-78.968-115.578-126.948-163.159l-0.056-0.055c-52.373-52.333-95.049-83.755-153.109-112.642-47.258-23.526-92.471-37.52-140.752-43.534-19.762-2.456-66.611-3.355-85.924-1.636zM542.401 226.93c113.297 11.048 221.112 79.46 315.996 200.613 12.97 16.572 49.221 69.557 54.46 79.622 2.865 5.524 3.109 4.991-18.289 37.602-76.268 116.162-173.648 200.285-270.457 233.633-36.375 12.521-63.503 17.677-100.654 19.107-41.858 1.595-75.777-3.436-118.575-17.634-99.877-33.061-197.545-116.447-275.448-235.106-21.4-32.57-21.154-32.118-18.289-37.561 5.319-10.106 35.598-54.828 49.058-72.503 112.439-147.544 247.339-220.865 382.198-207.772zM485.731 350.456c-46.153 7.2-90.63 37.358-114.115 77.413-14.495 23.907-23.073 52.8-23.073 83.696 0 68.318 41.943 126.839 101.484 151.218l1.089 0.394c18.045 7.475 38.999 11.817 60.968 11.817 68.256 0 126.725-41.91 151.074-101.401l0.393-1.088c7.497-18.004 11.851-38.921 11.851-60.853 0-21.895-4.34-42.775-12.205-61.827l0.393 1.079c-21.587-53.034-68.85-91.572-125.925-100.454l-0.915-0.116c-7.561-1.328-16.266-2.088-25.149-2.088-9.141 0-18.093 0.805-26.792 2.346l0.92-0.135zM533.4 432.78c30.737 8.794 53.801 34.225 59.016 65.681l0.066 0.48c4.092 26.718-3.846 50.859-23.077 70.131-16.407 16.489-35.024 24.386-57.404 24.386-21.072 0-39.361-7.284-55.114-21.891-54.418-50.572-18.985-141.571 55.114-141.571 5.851 0 15.467 1.268 21.4 2.782z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["eye"]},attrs:[{}],properties:{order:11,id:1,name:"eye",prevSize:32,code:59656},setIdx:0,setId:2,iconIdx:11},{icon:{paths:["M481.28 43.648l-23.893 2.56c-80.555 8.533-159.104 40.107-228.693 91.819-25.984 19.328-71.509 64.853-91.051 90.965-106.581 142.805-124.8 327.040-48.171 486.955 23.296 48.555 50.304 86.229 91.349 127.232 41.003 41.045 78.677 68.053 127.232 91.349 159.872 76.629 344.235 58.325 487.125-48.341 25.984-19.371 71.637-65.024 91.008-91.008 126.891-170.027 126.891-396.331 0-566.357-19.371-25.941-64.981-71.552-90.88-90.795-68.053-50.603-139.733-80-222.592-91.264-18.048-2.475-78.891-4.523-91.435-3.115zM568.32 132.309c109.355 16.512 204.971 78.080 266.24 171.477 12.928 19.755 31.701 57.984 39.765 81.067 14.763 42.368 20.693 78.72 20.693 127.147 0 63.701-10.965 111.829-38.272 168.107-30.080 62.037-75.477 113.792-134.528 153.259-33.664 22.528-87.509 45.056-128.811 53.973-24.244 5.414-52.089 8.515-80.658 8.515-91.486 0-175.543-31.805-241.717-84.962l0.754 0.586c-64.555-51.712-112.981-127.573-132.395-207.317-7.936-32.555-10.411-54.272-10.411-92.16 0-63.701 10.965-111.829 38.272-168.107 45.622-92.339 124.633-162.383 220.876-195.211l2.698-0.799c30.080-9.941 54.272-14.848 93.013-18.859 13.739-1.408 67.029 0.64 84.48 3.285zM482.133 257.792c-22.357 3.456-48.768 14.165-70.827 28.715-38.101 25.131-71.424 80-66.261 109.184 2.56 14.72 15.104 25.173 36.309 30.421 9.771 2.389 12.843 2.517 19.499 0.768 11.392-3.029 20.821-12.971 27.563-28.928 6.741-16.085 12.8-25.003 23.509-34.645 26.325-23.68 61.141-28.501 94.208-13.013 14.848 6.955 31.744 24.021 38.997 39.381 6.059 12.843 9.643 32.128 8.021 43.093-4.096 27.221-38.699 56.917-92.288 79.232-31.019 12.885-39.424 24.107-34.944 46.805 5.675 28.8 22.997 43.221 46.421 38.613 24.832-4.907 68.651-26.965 97.451-49.109 49.365-37.973 71.595-80.213 68.949-130.987-2.261-43.136-18.731-79.957-49.749-111.189-21.063-21.482-47.858-37.271-77.909-44.894l-1.152-0.248c-15.317-3.968-51.925-5.675-67.797-3.2zM495.531 685.013c-16.811 5.504-24.533 16.299-25.813 36.053-1.323 20.523 4.693 34.091 18.475 41.813 6.613 3.712 9.685 4.267 23.808 4.267 13.312 0 17.408-0.683 23.040-3.669 13.909-7.509 19.627-18.56 19.627-38.144 0-27.435-12.245-40.619-39.125-41.984-8.107-0.427-15.573 0.213-20.011 1.664z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["help-circle"]},attrs:[{}],properties:{order:12,id:0,name:"help-circle",prevSize:32,code:59657},setIdx:0,setId:2,iconIdx:12}],height:1024,metadata:{name:"icomoon"},preferences:{showGlyphs:!0,showQuickUse:!0,showQuickUse2:!0,showSVGs:!0,fontPref:{prefix:"icon-",metadata:{fontFamily:"icomoon"},metrics:{emSize:1024,baseline:6.25,whitespace:50},embed:!1},imagePref:{prefix:"icon-",png:!0,useClassSelector:!0,color:0,bgColor:16777215,classSelector:".icon",name:"icomoon"},historySize:50,showCodes:!0,gridSize:16,showGrid:!1}}).icons.map(e=>e.properties.name).reduce((e,t)=>(e[t]=t,e),{});const Io={prefix:String(Math.round(Math.random()*1e10)),current:0},Tc=f.createContext(Io),Nm=f.createContext(!1);let Lm=!!(typeof window<"u"&&window.document&&window.document.createElement),us=new WeakMap;function jm(e=!1){let t=f.useContext(Tc),r=f.useRef(null);if(r.current===null&&!e){var n,o;let a=(o=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(a){let s=us.get(a);s==null?us.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==s.state&&(t.current=s.id,us.delete(a))}r.current=++t.current}return r.current}function _m(e){let t=f.useContext(Tc);t===Io&&!Lm&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=jm(!!e),n=t===Io&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${n}-${r}`}function Fm(e){let t=f.useId(),[r]=f.useState(Ec()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Io.prefix}`;return e||`${n}-${t}`}const Vm=typeof f.useId=="function"?Fm:_m;function zm(){return!1}function Wm(){return!0}function Bm(e){return()=>{}}function Ec(){return typeof f.useSyncExternalStore=="function"?f.useSyncExternalStore(Bm,zm,Wm):f.useContext(Nm)}function Rm(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Km(e,t,r){Rm(e,t),t.set(e,r)}function _r(e,t,r){let[n,o]=f.useState(e||t),a=f.useRef(e!==void 0),s=e!==void 0;f.useEffect(()=>{let c=a.current;c!==s&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s},[s]);let i=s?e:n,l=f.useCallback((c,...u)=>{let d=(h,...p)=>{r&&(Object.is(i,h)||r(h,...p)),s||(i=h)};typeof c=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((p,...m)=>{let y=c(s?i:p,...m);return d(y,...u),s?p:y})):(s||o(c),d(c,...u))},[s,i,r]);return[i,l]}const kt=typeof document<"u"?f.useLayoutEffect:()=>{};function We(e){const t=f.useRef(null);return kt(()=>{t.current=e},[e]),f.useCallback((...r)=>{const n=t.current;return n(...r)},[])}function Um(e){let[t,r]=f.useState(e),n=f.useRef(null),o=We(()=>{let s=n.current.next();if(s.done){n.current=null;return}t===s.value?o():r(s.value)});kt(()=>{n.current&&o()});let a=We(s=>{n.current=s(t),o()});return[t,a]}let Hm=!!(typeof window<"u"&&window.document&&window.document.createElement),ko=new Map;function Fr(e){let[t,r]=f.useState(e),n=f.useRef(null),o=Vm(t),a=f.useCallback(s=>{n.current=s},[]);return Hm&&ko.set(o,a),kt(()=>{let s=o;return()=>{ko.delete(s)}},[o]),f.useEffect(()=>{let s=n.current;s&&(n.current=null,r(s))}),o}function Ym(e,t){if(e===t)return e;let r=ko.get(e);if(r)return r(t),t;let n=ko.get(t);return n?(n(e),e):t}function Sc(e=[]){let t=Fr(),[r,n]=Um(t),o=f.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return kt(o,[t,o,...e]),r}function dr(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const Ct=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Pn=e=>e&&"window"in e&&e.window===e?e:Ct(e).defaultView||window;function se(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let a=t[o],s=n[o];typeof a=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=dr(a,s):(o==="className"||o==="UNSAFE_className")&&typeof a=="string"&&typeof s=="string"?t[o]=$o(a,s):o==="id"&&a&&s?t.id=Ym(a,s):t[o]=s!==void 0?s:a}}return t}const Gm=new Set(["id"]),qm=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Qm=new Set(["href","target","rel","download","ping","referrerPolicy"]),Xm=/^(data-.*)$/;function Vr(e,t={}){let{labelable:r,isLink:n,propNames:o}=t,a={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(Gm.has(s)||r&&qm.has(s)||n&&Qm.has(s)||o!=null&&o.has(s)||Xm.test(s))&&(a[s]=e[s]);return a}function tt(e){if(Zm())e.focus({preventScroll:!0});else{let t=Jm(e);e.focus(),eg(t)}}let Ao=null;function Zm(){if(Ao==null){Ao=!1;try{var e=document.createElement("div");e.focus({get preventScroll(){return Ao=!0,!0}})}catch{}}return Ao}function Jm(e){for(var t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function eg(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function Oo(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function ds(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 Gt(){return ds(/^Mac/i)}function tg(){return ds(/^iPhone/i)}function $c(){return ds(/^iPad/i)||Gt()&&navigator.maxTouchPoints>1}function Mn(){return tg()||$c()}function rg(){return Gt()||Mn()}function ng(){return Oo(/AppleWebKit/i)&&!og()}function og(){return Oo(/Chrome/i)}function Dc(){return Oo(/Android/i)}function ag(){return Oo(/Firefox/i)}const sg=f.createContext({isNative:!0,open:lg});function Ic(){return f.useContext(sg)}function At(e,t,r=!0){var n,o;let{metaKey:a,ctrlKey:s,altKey:i,shiftKey:l}=t;ag()&&(!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key"))&&e.target==="_blank"&&(Gt()?a=!0:s=!0);let c=ng()&&Gt()&&!$c()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:s,altKey:i,shiftKey:l}):new MouseEvent("click",{metaKey:a,ctrlKey:s,altKey:i,shiftKey:l,bubbles:!0,cancelable:!0});At.isOpening=r,tt(e),e.dispatchEvent(c),At.isOpening=!1}At.isOpening=!1;function ig(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function lg(e,t){ig(e,r=>At(r,t))}let zr=new Map,fs=new Set;function kc(){if(typeof window>"u")return;let e=r=>{let n=zr.get(r.target);n||(n=new Set,zr.set(r.target,n),r.target.addEventListener("transitioncancel",t)),n.add(r.propertyName)},t=r=>{let n=zr.get(r.target);if(n&&(n.delete(r.propertyName),n.size===0&&(r.target.removeEventListener("transitioncancel",t),zr.delete(r.target)),zr.size===0)){for(let o of fs)o();fs.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?kc():document.addEventListener("DOMContentLoaded",kc));function ps(e){requestAnimationFrame(()=>{zr.size===0?e():fs.add(e)})}function hs(){let e=f.useRef(new Map),t=f.useCallback((o,a,s,i)=>{let l=i!=null&&i.once?(...c)=>{e.current.delete(s),s(...c)}:s;e.current.set(s,{type:a,eventTarget:o,fn:l,options:i}),o.addEventListener(a,s,i)},[]),r=f.useCallback((o,a,s,i)=>{var l;let c=((l=e.current.get(s))===null||l===void 0?void 0:l.fn)||s;o.removeEventListener(a,c,i),e.current.delete(s)},[]),n=f.useCallback(()=>{e.current.forEach((o,a)=>{r(o.eventTarget,o.type,a,o.options)})},[r]);return f.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function ms(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=Fr(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}function gs(e,t){kt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}})}function Ac(e,t){for(Oc(e,t)&&(e=e.parentElement);e&&!Oc(e,t);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function Oc(e,t){let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}let cg=0;const vs=new Map;function ug(e){let[t,r]=f.useState(void 0);return kt(()=>{if(!e)return;let n=vs.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${cg++}`;r(o);let a=document.createElement("div");a.id=o,a.style.display="none",a.textContent=e,document.body.appendChild(a),n={refCount:0,element:a},vs.set(e,n)}return n.refCount++,()=>{--n.refCount===0&&(n.element.remove(),vs.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function dg(e,t,r,n){let o=We(r),a=r==null;f.useEffect(()=>{if(a)return;let s=e.current;return s.addEventListener(t,o,n),()=>{s.removeEventListener(t,o,n)}},[e,t,n,a,o])}function Nc(e,t){let r=Lc(e,t,"left"),n=Lc(e,t,"top"),o=t.offsetWidth,a=t.offsetHeight,s=e.scrollLeft,i=e.scrollTop,{borderTopWidth:l,borderLeftWidth:c}=getComputedStyle(e),u=e.scrollLeft+parseInt(c,10),d=e.scrollTop+parseInt(l,10),h=u+e.clientWidth,p=d+e.clientHeight;r<=s?s=r-parseInt(c,10):r+o>h&&(s+=r+o-h),n<=d?i=n-parseInt(l,10):n+a>p&&(i+=n+a-p),e.scrollLeft=s,e.scrollTop=i}function Lc(e,t,r){const n=r==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[n];break}t=t.offsetParent}return o}function jc(e,t){if(document.contains(e)){let s=document.scrollingElement||document.documentElement;if(window.getComputedStyle(s).overflow==="hidden"){let l=Ac(e);for(;e&&l&&e!==s&&l!==s;)Nc(l,e),e=l,l=Ac(e)}else{var r;let{left:l,top:c}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:u,top:d}=e.getBoundingClientRect();if(Math.abs(l-u)>1||Math.abs(c-d)>1){var n,o,a;t==null||(o=t.containingElement)===null||o===void 0||(n=o.scrollIntoView)===null||n===void 0||n.call(o,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function Tn(e){return e.mozInputSource===0&&e.isTrusted?!0:Dc()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function _c(e){return!Dc()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function bs(e,t,r){let n=f.useRef(t),o=We(()=>{r&&r(n.current)});f.useEffect(()=>{var a;let s=e==null||(a=e.current)===null||a===void 0?void 0:a.form;return s==null||s.addEventListener("reset",o),()=>{s==null||s.removeEventListener("reset",o)}},[e,o])}const fg=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),pg=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function hg(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return fg.has(r.script)}let t=e.split("-")[0];return pg.has(t)}const mg=Symbol.for("react-aria.i18n.locale");function Fc(){let e=typeof window<"u"&&window[mg]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:hg(e)?"rtl":"ltr"}}let ys=Fc(),En=new Set;function Vc(){ys=Fc();for(let e of En)e(ys)}function gg(){let e=Ec(),[t,r]=f.useState(ys);return f.useEffect(()=>(En.size===0&&window.addEventListener("languagechange",Vc),En.add(r),()=>{En.delete(r),En.size===0&&window.removeEventListener("languagechange",Vc)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const vg=f.createContext(null);function xs(){let e=gg();return f.useContext(vg)||e}var Pt=function(){return Pt=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Pt.apply(this,arguments)};function zc(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function bg(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function yg(e,t){return t.get?t.get.call(e):t.value}function Wc(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function xg(e,t){var r=Wc(e,t,"get");return yg(e,r)}function wg(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function Bc(e,t,r){var n=Wc(e,t,"set");return wg(e,n,r),r}let Wr="default",ws="",No=new WeakMap;function Rc(e){if(Mn()){if(Wr==="default"){const t=Ct(e);ws=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Wr="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(No.set(e,e.style.userSelect),e.style.userSelect="none")}function Lo(e){if(Mn()){if(Wr!=="disabled")return;Wr="restoring",setTimeout(()=>{ps(()=>{if(Wr==="restoring"){const t=Ct(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=ws||""),ws="",Wr="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&No.has(e)){let t=No.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),No.delete(e)}}const Kc=f.createContext({register:()=>{}});Kc.displayName="PressResponderContext";function Cg(e){let t=f.useContext(Kc);if(t){let{register:r,...n}=t;e=se(n,e),r()}return gs(t,e.ref),e}var jo=new WeakMap;class _o{continuePropagation(){Bc(this,jo,!1)}get shouldStopPropagation(){return xg(this,jo)}constructor(t,r,n){Km(this,jo,{writable:!0,value:void 0}),Bc(this,jo,!0),this.type=t,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey}}const Uc=Symbol("linkClicked");function fr(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:a,isDisabled:s,isPressed:i,preventFocusOnPress:l,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:u,ref:d,...h}=Cg(e),[p,m]=f.useState(!1),y=f.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:b,removeAllGlobalListeners:C}=hs(),x=We((g,A)=>{let I=y.current;if(s||I.didFirePressStart)return!1;let T=!0;if(I.isTriggeringEvent=!0,n){let D=new _o("pressstart",A,g);n(D),T=D.shouldStopPropagation}return r&&r(!0),I.isTriggeringEvent=!1,I.didFirePressStart=!0,m(!0),T}),P=We((g,A,I=!0)=>{let T=y.current;if(!T.didFirePressStart)return!1;T.ignoreClickAfterPress=!0,T.didFirePressStart=!1,T.isTriggeringEvent=!0;let D=!0;if(o){let w=new _o("pressend",A,g);o(w),D=w.shouldStopPropagation}if(r&&r(!1),m(!1),t&&I&&!s){let w=new _o("press",A,g);t(w),D&&(D=w.shouldStopPropagation)}return T.isTriggeringEvent=!1,D}),E=We((g,A)=>{let I=y.current;if(s)return!1;if(a){I.isTriggeringEvent=!0;let T=new _o("pressup",A,g);return a(T),I.isTriggeringEvent=!1,T.shouldStopPropagation}return!0}),S=We(g=>{let A=y.current;A.isPressed&&A.target&&(A.isOverTarget&&A.pointerType!=null&&P(Ot(A.target,g),A.pointerType,!1),A.isPressed=!1,A.isOverTarget=!1,A.activePointerId=null,A.pointerType=null,C(),u||Lo(A.target))}),N=We(g=>{c&&S(g)}),j=f.useMemo(()=>{let g=y.current,A={onKeyDown(T){if(Ps(T.nativeEvent,T.currentTarget)&&T.currentTarget.contains(T.target)){var D;Yc(T.target,T.key)&&T.preventDefault();let w=!0;!g.isPressed&&!T.repeat&&(g.target=T.currentTarget,g.isPressed=!0,w=x(T,"keyboard"),b(Ct(T.currentTarget),"keyup",I,!1)),w&&T.stopPropagation(),T.metaKey&&Gt()&&((D=g.metaKeyEvents)===null||D===void 0||D.set(T.key,T.nativeEvent))}else T.key==="Meta"&&(g.metaKeyEvents=new Map)},onKeyUp(T){Ps(T.nativeEvent,T.currentTarget)&&!T.repeat&&T.currentTarget.contains(T.target)&&g.target&&E(Ot(g.target,T),"keyboard")},onClick(T){if(!(T&&!T.currentTarget.contains(T.target))&&T&&T.button===0&&!g.isTriggeringEvent&&!At.isOpening){let D=!0;if(s&&T.preventDefault(),!g.ignoreClickAfterPress&&!g.ignoreEmulatedMouseEvents&&!g.isPressed&&(g.pointerType==="virtual"||Tn(T.nativeEvent))){!s&&!l&&tt(T.currentTarget);let w=x(T,"virtual"),M=E(T,"virtual"),O=P(T,"virtual");D=w&&M&&O}g.ignoreEmulatedMouseEvents=!1,g.ignoreClickAfterPress=!1,D&&T.stopPropagation()}}},I=T=>{var D;if(g.isPressed&&g.target&&Ps(T,g.target)){var w;Yc(T.target,T.key)&&T.preventDefault();let O=T.target,F=P(Ot(g.target,T),"keyboard",g.target.contains(O));C(),F&&T.stopPropagation(),T.key!=="Enter"&&Cs(g.target)&&g.target.contains(O)&&!T[Uc]&&(T[Uc]=!0,At(g.target,T,!1)),g.isPressed=!1,(w=g.metaKeyEvents)===null||w===void 0||w.delete(T.key)}else if(T.key==="Meta"&&(!((D=g.metaKeyEvents)===null||D===void 0)&&D.size)){var M;let O=g.metaKeyEvents;g.metaKeyEvents=void 0;for(let F of O.values())(M=g.target)===null||M===void 0||M.dispatchEvent(new KeyboardEvent("keyup",F))}};if(typeof PointerEvent<"u"){A.onPointerDown=M=>{if(M.button!==0||!M.currentTarget.contains(M.target))return;if(_c(M.nativeEvent)){g.pointerType="virtual";return}Ms(M.currentTarget)&&M.preventDefault(),g.pointerType=M.pointerType;let O=!0;g.isPressed||(g.isPressed=!0,g.isOverTarget=!0,g.activePointerId=M.pointerId,g.target=M.currentTarget,!s&&!l&&tt(M.currentTarget),u||Rc(g.target),O=x(M,g.pointerType),b(Ct(M.currentTarget),"pointermove",T,!1),b(Ct(M.currentTarget),"pointerup",D,!1),b(Ct(M.currentTarget),"pointercancel",w,!1)),O&&M.stopPropagation()},A.onMouseDown=M=>{M.currentTarget.contains(M.target)&&M.button===0&&(Ms(M.currentTarget)&&M.preventDefault(),M.stopPropagation())},A.onPointerUp=M=>{!M.currentTarget.contains(M.target)||g.pointerType==="virtual"||M.button===0&&Br(M,M.currentTarget)&&E(M,g.pointerType||M.pointerType)};let T=M=>{M.pointerId===g.activePointerId&&(g.target&&Br(M,g.target)?!g.isOverTarget&&g.pointerType!=null&&(g.isOverTarget=!0,x(Ot(g.target,M),g.pointerType)):g.target&&g.isOverTarget&&g.pointerType!=null&&(g.isOverTarget=!1,P(Ot(g.target,M),g.pointerType,!1),N(M)))},D=M=>{M.pointerId===g.activePointerId&&g.isPressed&&M.button===0&&g.target&&(Br(M,g.target)&&g.pointerType!=null?P(Ot(g.target,M),g.pointerType):g.isOverTarget&&g.pointerType!=null&&P(Ot(g.target,M),g.pointerType,!1),g.isPressed=!1,g.isOverTarget=!1,g.activePointerId=null,g.pointerType=null,C(),u||Lo(g.target))},w=M=>{S(M)};A.onDragStart=M=>{M.currentTarget.contains(M.target)&&S(M)}}else{A.onMouseDown=w=>{if(w.button!==0||!w.currentTarget.contains(w.target))return;if(Ms(w.currentTarget)&&w.preventDefault(),g.ignoreEmulatedMouseEvents){w.stopPropagation();return}g.isPressed=!0,g.isOverTarget=!0,g.target=w.currentTarget,g.pointerType=Tn(w.nativeEvent)?"virtual":"mouse",!s&&!l&&tt(w.currentTarget),x(w,g.pointerType)&&w.stopPropagation(),b(Ct(w.currentTarget),"mouseup",T,!1)},A.onMouseEnter=w=>{if(!w.currentTarget.contains(w.target))return;let M=!0;g.isPressed&&!g.ignoreEmulatedMouseEvents&&g.pointerType!=null&&(g.isOverTarget=!0,M=x(w,g.pointerType)),M&&w.stopPropagation()},A.onMouseLeave=w=>{if(!w.currentTarget.contains(w.target))return;let M=!0;g.isPressed&&!g.ignoreEmulatedMouseEvents&&g.pointerType!=null&&(g.isOverTarget=!1,M=P(w,g.pointerType,!1),N(w)),M&&w.stopPropagation()},A.onMouseUp=w=>{w.currentTarget.contains(w.target)&&!g.ignoreEmulatedMouseEvents&&w.button===0&&E(w,g.pointerType||"mouse")};let T=w=>{if(w.button===0){if(g.isPressed=!1,C(),g.ignoreEmulatedMouseEvents){g.ignoreEmulatedMouseEvents=!1;return}g.target&&Br(w,g.target)&&g.pointerType!=null?P(Ot(g.target,w),g.pointerType):g.target&&g.isOverTarget&&g.pointerType!=null&&P(Ot(g.target,w),g.pointerType,!1),g.isOverTarget=!1}};A.onTouchStart=w=>{if(!w.currentTarget.contains(w.target))return;let M=Pg(w.nativeEvent);if(!M)return;g.activePointerId=M.identifier,g.ignoreEmulatedMouseEvents=!0,g.isOverTarget=!0,g.isPressed=!0,g.target=w.currentTarget,g.pointerType="touch",!s&&!l&&tt(w.currentTarget),u||Rc(g.target),x(w,g.pointerType)&&w.stopPropagation(),b(Pn(w.currentTarget),"scroll",D,!0)},A.onTouchMove=w=>{if(!w.currentTarget.contains(w.target))return;if(!g.isPressed){w.stopPropagation();return}let M=Hc(w.nativeEvent,g.activePointerId),O=!0;M&&Br(M,w.currentTarget)?!g.isOverTarget&&g.pointerType!=null&&(g.isOverTarget=!0,O=x(w,g.pointerType)):g.isOverTarget&&g.pointerType!=null&&(g.isOverTarget=!1,O=P(w,g.pointerType,!1),N(w)),O&&w.stopPropagation()},A.onTouchEnd=w=>{if(!w.currentTarget.contains(w.target))return;if(!g.isPressed){w.stopPropagation();return}let M=Hc(w.nativeEvent,g.activePointerId),O=!0;M&&Br(M,w.currentTarget)&&g.pointerType!=null?(E(w,g.pointerType),O=P(w,g.pointerType)):g.isOverTarget&&g.pointerType!=null&&(O=P(w,g.pointerType,!1)),O&&w.stopPropagation(),g.isPressed=!1,g.activePointerId=null,g.isOverTarget=!1,g.ignoreEmulatedMouseEvents=!0,g.target&&!u&&Lo(g.target),C()},A.onTouchCancel=w=>{w.currentTarget.contains(w.target)&&(w.stopPropagation(),g.isPressed&&S(w))};let D=w=>{g.isPressed&&w.target.contains(g.target)&&S({currentTarget:g.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};A.onDragStart=w=>{w.currentTarget.contains(w.target)&&S(w)}}return A},[b,s,l,C,u,S,N,P,x,E]);return f.useEffect(()=>()=>{var g;u||Lo((g=y.current.target)!==null&&g!==void 0?g:void 0)},[u]),{isPressed:i||p,pressProps:se(h,j)}}function Cs(e){return e.tagName==="A"&&e.hasAttribute("href")}function Ps(e,t){const{key:r,code:n}=e,o=t,a=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof Pn(o).HTMLInputElement&&!Gc(o,r)||o instanceof Pn(o).HTMLTextAreaElement||o.isContentEditable)&&!((a==="link"||!a&&Cs(o))&&r!=="Enter")}function Pg(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Hc(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===t)return o}return null}function Ot(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function Mg(e){let t=0,r=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?r=e.height/2:e.radiusY!==void 0&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function Tg(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Br(e,t){let r=t.getBoundingClientRect(),n=Mg(e);return Tg(r,n)}function Ms(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function Yc(e,t){return e instanceof HTMLInputElement?!Gc(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Cs(e)}const Eg=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Gc(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Eg.has(e.type)}class Sg{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,r){this.nativeEvent=r,this.target=r.target,this.currentTarget=r.currentTarget,this.relatedTarget=r.relatedTarget,this.bubbles=r.bubbles,this.cancelable=r.cancelable,this.defaultPrevented=r.defaultPrevented,this.eventPhase=r.eventPhase,this.isTrusted=r.isTrusted,this.timeStamp=r.timeStamp,this.type=t}}function qc(e){let t=f.useRef({isFocused:!1,observer:null});kt(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=We(n=>{e==null||e(n)});return f.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=n.target,a=s=>{t.current.isFocused=!1,o.disabled&&r(new Sg("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let i=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:i})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:i}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}function Qc(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const a=f.useCallback(l=>{if(l.target===l.currentTarget)return n&&n(l),o&&o(!1),!0},[n,o]),s=qc(a),i=f.useCallback(l=>{l.target===l.currentTarget&&document.activeElement===l.target&&(r&&r(l),o&&o(!0),s(l))},[o,r,s]);return{focusProps:{onFocus:!t&&(r||o||n)?i:void 0,onBlur:!t&&(n||o)?a:void 0}}}let pr=null,Ts=new Set,Xc=!1,hr=!1,Es=!1;const $g={Tab:!0,Escape:!0};function Fo(e,t){for(let r of Ts)r(e,t)}function Dg(e){return!(e.metaKey||!Gt()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Zc(e){hr=!0,Dg(e)&&(pr="keyboard",Fo("keyboard",e))}function Rr(e){pr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(hr=!0,Fo("pointer",e))}function Ig(e){Tn(e)&&(hr=!0,pr="virtual")}function kg(e){e.target===window||e.target===document||(!hr&&!Es&&(pr="virtual",Fo("virtual",e)),hr=!1,Es=!1)}function Ag(){hr=!1,Es=!0}function Ss(){if(typeof window>"u"||Xc)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){hr=!0,e.apply(this,arguments)},document.addEventListener("keydown",Zc,!0),document.addEventListener("keyup",Zc,!0),document.addEventListener("click",Ig,!0),window.addEventListener("focus",kg,!0),window.addEventListener("blur",Ag,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Rr,!0),document.addEventListener("pointermove",Rr,!0),document.addEventListener("pointerup",Rr,!0)):(document.addEventListener("mousedown",Rr,!0),document.addEventListener("mousemove",Rr,!0),document.addEventListener("mouseup",Rr,!0)),Xc=!0}typeof document<"u"&&(document.readyState!=="loading"?Ss():document.addEventListener("DOMContentLoaded",Ss));function Jc(){return pr!=="pointer"}function $s(){return pr}function Og(e){pr=e,Fo(e,null)}const Ng=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Lg(e,t,r){var n;return e=e||(r==null?void 0:r.target)instanceof HTMLInputElement&&!Ng.has(r==null||(n=r.target)===null||n===void 0?void 0:n.type)||(r==null?void 0:r.target)instanceof HTMLTextAreaElement||(r==null?void 0:r.target)instanceof HTMLElement&&(r==null?void 0:r.target.isContentEditable),!(e&&t==="keyboard"&&r instanceof KeyboardEvent&&!$g[r.key])}function jg(e,t,r){Ss(),f.useEffect(()=>{let n=(o,a)=>{Lg(!!(r!=null&&r.isTextInput),o,a)&&e(Jc())};return Ts.add(n),()=>{Ts.delete(n)}},t)}function Vo(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,a=f.useRef({isFocusWithin:!1}),s=f.useCallback(c=>{a.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(a.current.isFocusWithin=!1,r&&r(c),o&&o(!1))},[r,o,a]),i=qc(s),l=f.useCallback(c=>{!a.current.isFocusWithin&&document.activeElement===c.target&&(n&&n(c),o&&o(!0),a.current.isFocusWithin=!0,i(c))},[n,o,i]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:s}}}let zo=!1,Ds=0;function Is(){zo=!0,setTimeout(()=>{zo=!1},50)}function eu(e){e.pointerType==="touch"&&Is()}function _g(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",eu):document.addEventListener("touchend",Is),Ds++,()=>{Ds--,!(Ds>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",eu):document.removeEventListener("touchend",Is))}}function mr(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[a,s]=f.useState(!1),i=f.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;f.useEffect(_g,[]);let{hoverProps:l,triggerHoverEnd:c}=f.useMemo(()=>{let u=(p,m)=>{if(i.pointerType=m,o||m==="touch"||i.isHovered||!p.currentTarget.contains(p.target))return;i.isHovered=!0;let y=p.currentTarget;i.target=y,t&&t({type:"hoverstart",target:y,pointerType:m}),r&&r(!0),s(!0)},d=(p,m)=>{if(i.pointerType="",i.target=null,m==="touch"||!i.isHovered)return;i.isHovered=!1;let y=p.currentTarget;n&&n({type:"hoverend",target:y,pointerType:m}),r&&r(!1),s(!1)},h={};return typeof PointerEvent<"u"?(h.onPointerEnter=p=>{zo&&p.pointerType==="mouse"||u(p,p.pointerType)},h.onPointerLeave=p=>{!o&&p.currentTarget.contains(p.target)&&d(p,p.pointerType)}):(h.onTouchStart=()=>{i.ignoreEmulatedMouseEvents=!0},h.onMouseEnter=p=>{!i.ignoreEmulatedMouseEvents&&!zo&&u(p,"mouse"),i.ignoreEmulatedMouseEvents=!1},h.onMouseLeave=p=>{!o&&p.currentTarget.contains(p.target)&&d(p,"mouse")}),{hoverProps:h,triggerHoverEnd:d}},[t,r,n,o,i]);return f.useEffect(()=>{o&&c({currentTarget:i.target},i.pointerType)},[o]),{hoverProps:l,isHovered:a}}function tu(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(n),t&&r.stopPropagation()}}function Fg(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:tu(e.onKeyDown),onKeyUp:tu(e.onKeyUp)}}}const Vg=500;function zg(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:a=Vg,accessibilityDescription:s}=e;const i=f.useRef();let{addGlobalListener:l,removeGlobalListener:c}=hs(),{pressProps:u}=fr({isDisabled:t,onPressStart(h){if(h.continuePropagation(),(h.pointerType==="mouse"||h.pointerType==="touch")&&(r&&r({...h,type:"longpressstart"}),i.current=setTimeout(()=>{h.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...h,type:"longpress"}),i.current=void 0},a),h.pointerType==="touch")){let p=m=>{m.preventDefault()};l(h.target,"contextmenu",p,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{c(h.target,"contextmenu",p)},30)},{once:!0})}},onPressEnd(h){i.current&&clearTimeout(i.current),n&&(h.pointerType==="mouse"||h.pointerType==="touch")&&n({...h,type:"longpressend"})}}),d=ug(o&&!t?s:void 0);return{longPressProps:se(u,d)}}function Wo(e){const t=Ct(e);if($s()==="virtual"){let r=t.activeElement;ps(()=>{t.activeElement===r&&e.isConnected&&tt(e)})}else tt(e)}function Wg(e){const t=Pn(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:a}=e.ownerDocument.defaultView;let{display:s,visibility:i}=a(e);o=s!=="none"&&i!=="hidden"&&i!=="collapse"}return o}function Bg(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function ru(e,t){return e.nodeName!=="#comment"&&Wg(e)&&Bg(e,t)&&(!e.parentElement||ru(e.parentElement,e))}const ks=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],Rg=ks.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";ks.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Kg=ks.join(':not([hidden]):not([tabindex="-1"]),');function nu(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function As(e,t,r){let n=t!=null&&t.tabbable?Kg:Rg,o=Ct(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(a)?NodeFilter.FILTER_REJECT:a.matches(n)&&ru(a)&&(!r||nu(a,r))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}class Os{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null);if(!o)return;let a=new ou({scopeRef:t});o.addChild(a),a.parent=o,this.fastMap.set(t,a),n&&(a.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let n=r.parent;for(let a of this.traverse())a!==r&&r.nodeToRestore&&a.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&nu(a.nodeToRestore,r.scopeRef.current)&&(a.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(a=>n&&n.addChild(a))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new Os;var n;for(let o of this.traverse())r.addTreeNode(o.scopeRef,(n=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&n!==void 0?n:null,o.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new ou({scopeRef:null}),this.fastMap.set(null,this.root)}}class ou{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}new Os;function Mt(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=f.useRef({isFocused:!1,isFocusVisible:t||Jc()}),[a,s]=f.useState(!1),[i,l]=f.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=f.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),u=f.useCallback(p=>{o.current.isFocused=p,s(p),c()},[c]);jg(p=>{o.current.isFocusVisible=p,c()},[],{isTextInput:r});let{focusProps:d}=Qc({isDisabled:n,onFocusChange:u}),{focusWithinProps:h}=Vo({isDisabled:!n,onFocusWithinChange:u});return{isFocused:a,isFocusVisible:i,focusProps:n?h:d}}let Ug=f.createContext(null);function Hg(e){let t=f.useContext(Ug)||{};gs(t,e);let{ref:r,...n}=t;return n}function Bo(e,t){let{focusProps:r}=Qc(e),{keyboardProps:n}=Fg(e),o=se(r,n),a=Hg(t),s=e.isDisabled?{}:a,i=f.useRef(e.autoFocus);return f.useEffect(()=>{i.current&&t.current&&Wo(t.current),i.current=!1},[t]),{focusableProps:se({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}function Yg(e,t){let r=t==null?void 0:t.isDisabled,[n,o]=f.useState(!1);return kt(()=>{if(e!=null&&e.current&&!r){let a=()=>{if(e.current){let i=As(e.current,{tabbable:!0});o(!!i.nextNode())}};a();let s=new MutationObserver(a);return s.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{s.disconnect()}}}),r?!1:n}const au={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Gg(e={}){let{style:t,isFocusable:r}=e,[n,o]=f.useState(!1),{focusWithinProps:a}=Vo({isDisabled:!r,onFocusWithinChange:i=>o(i)}),s=f.useMemo(()=>n?t:t?{...au,...t}:au,[n]);return{visuallyHiddenProps:{...a,style:s}}}function Ns(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...a}=e,{visuallyHiddenProps:s}=Gg(e);return f.createElement(r,se(a,s),t)}function ft(e){return f.forwardRef(e)}var Sn=(e,t,r=!0)=>{if(!t)return[e,{}];const n=t.reduce((o,a)=>a in e?{...o,[a]:e[a]}:o,{});return r?[Object.keys(e).filter(a=>!t.includes(a)).reduce((a,s)=>({...a,[s]:e[s]}),{}),n]:[e,n]},qg=["0","xs","sm","md","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl","8xl","9xl","1","2","3","3.5","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","20","24","28","32","36","40","44","48","52","56","60","64","72","80","96"],Ls=qg.map(e=>`unit-${e}`),Ro=["small","medium","large"],rt=(e,t)=>{var r,n,o;return Me(e,{...t,twMerge:(r=t==null?void 0:t.twMerge)!=null?r:!0,twMergeConfig:{...t==null?void 0:t.twMergeConfig,theme:{...(n=t==null?void 0:t.twMergeConfig)==null?void 0:n.theme,opacity:["disabled"],spacing:["divider","unit",...Ls],borderWidth:Ro,borderRadius:Ro},classGroups:{...(o=t==null?void 0:t.twMergeConfig)==null?void 0:o.classGroups,shadow:[{shadow:Ro}],"font-size":[{text:["tiny",...Ro]}],"bg-image":["bg-stripe-gradient"],"min-w":[{"min-w":["unit",...Ls]}],"min-h":[{"min-h":["unit",...Ls]}]}}})},$n=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],Ko=["outline-none","group-data-[focus-visible=true]:z-10","group-data-[focus-visible=true]:ring-2","group-data-[focus-visible=true]:ring-focus","group-data-[focus-visible=true]:ring-offset-2","group-data-[focus-visible=true]:ring-offset-background"],Qg=["outline-none","ring-2","ring-focus","ring-offset-2","ring-offset-background"],js=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],Kr={default:["[&+.border-medium.border-default]:ms-[calc(theme(borderWidth.medium)*-1)]"],primary:["[&+.border-medium.border-primary]:ms-[calc(theme(borderWidth.medium)*-1)]"],secondary:["[&+.border-medium.border-secondary]:ms-[calc(theme(borderWidth.medium)*-1)]"],success:["[&+.border-medium.border-success]:ms-[calc(theme(borderWidth.medium)*-1)]"],warning:["[&+.border-medium.border-warning]:ms-[calc(theme(borderWidth.medium)*-1)]"],danger:["[&+.border-medium.border-danger]:ms-[calc(theme(borderWidth.medium)*-1)]"]},Xg={default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},Zg={default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground",foreground:"shadow-lg shadow-foreground/40 bg-foreground text-background"},Jg={default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger",foreground:"bg-transparent border-foreground text-foreground"},e1={default:"bg-default/40 text-default-foreground",primary:"bg-primary/20 text-primary",secondary:"bg-secondary/20 text-secondary",success:"bg-success/20 text-success-600 dark:text-success",warning:"bg-warning/20 text-warning-600 dark:text-warning",danger:"bg-danger/20 text-danger dark:text-danger-500",foreground:"bg-foreground/10 text-foreground"},t1={default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger",foreground:"border-default bg-default-100 text-foreground"},r1={default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger",foreground:"bg-transparent text-foreground"},n1={default:"border-default text-default-foreground hover:!bg-default",primary:"border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",secondary:"border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",success:"border-success text-success hover:!text-success-foreground hover:!bg-success",warning:"border-warning text-warning hover:!text-warning-foreground hover:!bg-warning",danger:"border-danger text-danger hover:!text-danger-foreground hover:!bg-danger",foreground:"border-foreground text-foreground hover:!bg-foreground"},B={solid:Xg,shadow:Zg,bordered:Jg,flat:e1,faded:t1,light:r1,ghost:n1},su=rt({slots:{base:"relative inline-flex flex-col gap-2 items-center justify-center",wrapper:"relative flex",circle1:["absolute","w-full","h-full","rounded-full","animate-spinner-ease-spin","border-2","border-solid","border-t-transparent","border-l-transparent","border-r-transparent"],circle2:["absolute","w-full","h-full","rounded-full","opacity-75","animate-spinner-linear-spin","border-2","border-dotted","border-t-transparent","border-l-transparent","border-r-transparent"],label:"text-foreground dark:text-foreground-dark font-regular"},variants:{size:{sm:{wrapper:"w-5 h-5",circle1:"border-2",circle2:"border-2",label:"text-small"},md:{wrapper:"w-8 h-8",circle1:"border-3",circle2:"border-3",label:"text-medium"},lg:{wrapper:"w-10 h-10",circle1:"border-3",circle2:"border-3",label:"text-large"}},color:{current:{circle1:"border-b-current",circle2:"border-b-current"},white:{circle1:"border-b-white",circle2:"border-b-white"},default:{circle1:"border-b-default",circle2:"border-b-default"},primary:{circle1:"border-b-primary",circle2:"border-b-primary"},secondary:{circle1:"border-b-secondary",circle2:"border-b-secondary"},success:{circle1:"border-b-success",circle2:"border-b-success"},warning:{circle1:"border-b-warning",circle2:"border-b-warning"},danger:{circle1:"border-b-danger",circle2:"border-b-danger"}},labelColor:{foreground:{label:"text-foreground"},primary:{label:"text-primary"},secondary:{label:"text-secondary"},success:{label:"text-success"},warning:{label:"text-warning"},danger:{label:"text-danger"}}},defaultVariants:{size:"md",color:"primary",labelColor:"foreground"}}),iu=rt({slots:{base:"inline-flex",tabList:["flex","p-1","h-fit","gap-2","items-center","flex-nowrap","overflow-x-scroll","scrollbar-hide","bg-default-100"],tab:["z-0","w-full","px-3","py-1","flex","group","relative","justify-center","items-center","outline-none","cursor-pointer","transition-opacity","tap-highlight-transparent","data-[disabled=true]:cursor-not-allowed","data-[disabled=true]:opacity-30","data-[hover-unselected=true]:opacity-disabled",...$n],tabContent:["relative","z-10","text-inherit","whitespace-nowrap","transition-colors","text-default-500","group-data-[selected=true]:text-foreground"],cursor:["absolute","z-0","bg-white"],panel:["py-3","px-1","outline-none",...$n]},variants:{variant:{solid:{cursor:"inset-0"},light:{tabList:"bg-transparent dark:bg-transparent",cursor:"inset-0"},underlined:{tabList:"bg-transparent dark:bg-transparent",cursor:"h-[2px] w-[80%] bottom-0 shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]"},bordered:{tabList:"bg-transparent dark:bg-transparent border-medium border-default-200 shadow-sm",cursor:"inset-0"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{tabList:"rounded-medium",tab:"h-7 text-tiny rounded-small",cursor:"rounded-small"},md:{tabList:"rounded-medium",tab:"h-8 text-small rounded-small",cursor:"rounded-small"},lg:{tabList:"rounded-large",tab:"h-9 text-medium rounded-medium",cursor:"rounded-medium"}},radius:{none:{tabList:"rounded-none",tab:"rounded-none",cursor:"rounded-none"},sm:{tabList:"rounded-medium",tab:"rounded-small",cursor:"rounded-small"},md:{tabList:"rounded-medium",tab:"rounded-small",cursor:"rounded-small"},lg:{tabList:"rounded-large",tab:"rounded-medium",cursor:"rounded-medium"},full:{tabList:"rounded-full",tab:"rounded-full",cursor:"rounded-full"}},fullWidth:{true:{base:"w-full",tabList:"w-full"}},isDisabled:{true:{tabList:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{tab:"transition-none",tabContent:"transition-none"}}},defaultVariants:{color:"default",variant:"solid",size:"md",fullWidth:!1,isDisabled:!1,disableAnimation:!1},compoundVariants:[{variant:["solid","bordered","light"],color:"default",class:{cursor:["bg-background","dark:bg-default","shadow-small"],tabContent:"group-data-[selected=true]:text-default-foreground"}},{variant:["solid","bordered","light"],color:"primary",class:{cursor:B.solid.primary,tabContent:"group-data-[selected=true]:text-primary-foreground"}},{variant:["solid","bordered","light"],color:"secondary",class:{cursor:B.solid.secondary,tabContent:"group-data-[selected=true]:text-secondary-foreground"}},{variant:["solid","bordered","light"],color:"success",class:{cursor:B.solid.success,tabContent:"group-data-[selected=true]:text-success-foreground"}},{variant:["solid","bordered","light"],color:"warning",class:{cursor:B.solid.warning,tabContent:"group-data-[selected=true]:text-warning-foreground"}},{variant:["solid","bordered","light"],color:"danger",class:{cursor:B.solid.danger,tabContent:"group-data-[selected=true]:text-danger-foreground"}},{variant:"underlined",color:"default",class:{cursor:"bg-foreground",tabContent:"group-data-[selected=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{cursor:"bg-primary",tabContent:"group-data-[selected=true]:text-primary"}},{variant:"underlined",color:"secondary",class:{cursor:"bg-secondary",tabContent:"group-data-[selected=true]:text-secondary"}},{variant:"underlined",color:"success",class:{cursor:"bg-success",tabContent:"group-data-[selected=true]:text-success"}},{variant:"underlined",color:"warning",class:{cursor:"bg-warning",tabContent:"group-data-[selected=true]:text-warning"}},{variant:"underlined",color:"danger",class:{cursor:"bg-danger",tabContent:"group-data-[selected=true]:text-danger"}},{disableAnimation:!0,variant:"underlined",class:{tab:["after:content-['']","after:absolute","after:bottom-0","after:h-[2px]","after:w-[80%]","after:opacity-0","after:shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","data-[selected=true]:after:opacity-100"]}},{disableAnimation:!0,color:"default",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-default data-[selected=true]:text-default-foreground"}},{disableAnimation:!0,color:"primary",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-primary data-[selected=true]:text-primary-foreground"}},{disableAnimation:!0,color:"secondary",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-secondary data-[selected=true]:text-secondary-foreground"}},{disableAnimation:!0,color:"success",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-success data-[selected=true]:text-success-foreground"}},{disableAnimation:!0,color:"warning",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-warning data-[selected=true]:text-warning-foreground"}},{disableAnimation:!0,color:"danger",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-danger data-[selected=true]:text-danger-foreground"}},{disableAnimation:!0,color:"default",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-foreground"}},{disableAnimation:!0,color:"primary",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-primary"}},{disableAnimation:!0,color:"secondary",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-secondary"}},{disableAnimation:!0,color:"success",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-success"}},{disableAnimation:!0,color:"warning",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-warning"}},{disableAnimation:!0,color:"danger",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-danger"}}],compoundSlots:[{variant:"underlined",slots:["tab","tabList","cursor"],class:["rounded-none"]}]}),lu=rt({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer touch-none tap-highlight-transparent",wrapper:["px-1","relative","inline-flex","items-center","justify-start","flex-shrink-0","overflow-hidden","bg-default-200","rounded-full",...Ko],thumb:["z-10","flex","items-center","justify-center","bg-white","shadow-small","rounded-full","origin-right"],startContent:"z-0 absolute left-1.5 text-current",endContent:"z-0 absolute right-1.5 text-default-600",thumbIcon:"text-black",label:"relative text-foreground select-none"},variants:{color:{default:{wrapper:["group-data-[selected=true]:bg-default-400","group-data-[selected=true]:text-default-foreground"]},primary:{wrapper:["group-data-[selected=true]:bg-primary","group-data-[selected=true]:text-primary-foreground"]},secondary:{wrapper:["group-data-[selected=true]:bg-secondary","group-data-[selected=true]:text-secondary-foreground"]},success:{wrapper:["group-data-[selected=true]:bg-success","group-data-[selected=true]:text-success-foreground"]},warning:{wrapper:["group-data-[selected=true]:bg-warning","group-data-[selected=true]:text-warning-foreground"]},danger:{wrapper:["group-data-[selected=true]:bg-danger","data-[selected=true]:text-danger-foreground"]}},size:{sm:{wrapper:"w-10 h-6 mr-2",thumb:["w-4 h-4 text-tiny","group-data-[selected=true]:ml-4"],endContent:"text-tiny",startContent:"text-tiny",label:"text-small"},md:{wrapper:"w-12 h-7 mr-2",thumb:["w-5 h-5 text-small","group-data-[selected=true]:ml-5"],endContent:"text-small",startContent:"text-small",label:"text-medium"},lg:{wrapper:"w-14 h-8 mr-2",thumb:["w-6 h-6 text-medium","group-data-[selected=true]:ml-6"],endContent:"text-medium",startContent:"text-medium",label:"text-large"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{wrapper:"transition-none",thumb:"transition-none"},false:{wrapper:"transition-background",thumb:"transition-all",startContent:["opacity-0","scale-50","transition-transform-opacity","group-data-[selected=true]:scale-100","group-data-[selected=true]:opacity-100"],endContent:["opacity-100","transition-transform-opacity","group-data-[selected=true]:translate-x-3","group-data-[selected=true]:opacity-0"]}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,disableAnimation:!1},compoundVariants:[{disableAnimation:!1,size:"sm",class:{thumb:["group-data-[pressed=true]:w-5","group-data-[selected]:group-data-[pressed]:ml-3"]}},{disableAnimation:!1,size:"md",class:{thumb:["group-data-[pressed=true]:w-6","group-data-[selected]:group-data-[pressed]:ml-4"]}},{disableAnimation:!1,size:"lg",class:{thumb:["group-data-[pressed=true]:w-7","group-data-[selected]:group-data-[pressed]:ml-5"]}}]}),o1=rt({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2",wrapper:["relative","inline-flex","items-center","justify-center","flex-shrink-0","overflow-hidden","border-solid","border-medium","box-border","border-default","rounded-full","group-data-[hover-unselected=true]:bg-default-100",...Ko],labelWrapper:"flex flex-col ml-1",control:["z-10","w-2","h-2","opacity-0","scale-0","origin-center","rounded-full","group-data-[selected=true]:opacity-100","group-data-[selected=true]:scale-100"],label:"relative text-foreground select-none",description:"relative text-foreground-400"},variants:{color:{default:{control:"bg-default-500 text-default-foreground",wrapper:"group-data-[selected=true]:border-default-500"},primary:{control:"bg-primary text-primary-foreground",wrapper:"group-data-[selected=true]:border-primary"},secondary:{control:"bg-secondary text-secondary-foreground",wrapper:"group-data-[selected=true]:border-secondary"},success:{control:"bg-success text-success-foreground",wrapper:"group-data-[selected=true]:border-success"},warning:{control:"bg-warning text-warning-foreground",wrapper:"group-data-[selected=true]:border-warning"},danger:{control:"bg-danger text-danger-foreground",wrapper:"group-data-[selected=true]:border-danger"}},size:{sm:{wrapper:"w-4 h-4",control:"w-1.5 h-1.5",labelWrapper:"ml-1",label:"text-small",description:"text-tiny"},md:{wrapper:"w-5 h-5",control:"w-2 h-2",labelWrapper:"ml-2",label:"text-medium",description:"text-small"},lg:{wrapper:"w-6 h-6",control:"w-2.5 h-2.5",labelWrapper:"ml-2",label:"text-large",description:"text-medium"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{control:"bg-danger text-danger-foreground",wrapper:"border-danger group-data-[selected=true]:border-danger",label:"text-danger",description:"text-danger-300"}},disableAnimation:{true:{},false:{wrapper:["group-data-[pressed=true]:scale-95","transition-transform-colors","motion-reduce:transition-none"],control:"transition-transform-opacity motion-reduce:transition-none",label:"transition-colors motion-reduce:transition-none",description:"transition-colors motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,isInvalid:!1,disableAnimation:!1}}),a1=rt({slots:{base:"relative flex flex-col gap-2",label:"relative text-foreground-500",wrapper:"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isInvalid:{true:{description:"text-danger"}},disableAnimation:{true:{},false:{description:"transition-colors !duration-150 motion-reduce:transition-none"}}},defaultVariants:{isInvalid:!1,isRequired:!1,disableAnimation:!1}}),cu=rt({slots:{base:"group flex flex-col",label:["absolute","z-10","pointer-events-none","origin-top-left","subpixel-antialiased","block","text-small","text-foreground-500"],mainWrapper:"h-full",inputWrapper:"relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-sm px-3 gap-3",innerWrapper:"inline-flex w-full items-center h-full box-border",input:["w-full font-normal bg-transparent !outline-none placeholder:text-foreground-500 focus-visible:outline-none","data-[has-start-content=true]:ps-1.5","data-[has-end-content=true]:pe-1.5"],clearButton:["p-2","-m-2","z-10","hidden","absolute","right-3","appearance-none","outline-none","select-none","opacity-0","hover:!opacity-100","cursor-pointer","active:!opacity-70","rounded-full",...$n],helperWrapper:"hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{variant:{flat:{inputWrapper:["bg-default-100","data-[hover=true]:bg-default-200","group-data-[focus=true]:bg-default-100"]},faded:{inputWrapper:["bg-default-100","border-medium","border-default-200","data-[hover=true]:border-default-400"],value:"group-data-[has-value=true]:text-default-foreground"},bordered:{inputWrapper:["border-medium","border-default-200","data-[hover=true]:border-default-400","group-data-[focus=true]:border-default-foreground"]},underlined:{inputWrapper:["!px-1","!pb-0","!gap-0","relative","box-border","border-b-medium","shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","border-default-200","!rounded-none","hover:border-default-300","after:content-['']","after:w-0","after:origin-center","after:bg-default-foreground","after:absolute","after:left-1/2","after:-translate-x-1/2","after:-bottom-[2px]","after:h-[2px]","group-data-[focus=true]:after:w-full"],innerWrapper:"pb-1",label:"group-data-[filled-within=true]:text-foreground"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{label:"text-tiny",inputWrapper:"h-unit-8 min-h-unit-8 px-2 rounded-small",input:"text-small",clearButton:"text-medium"},md:{inputWrapper:"h-unit-10 min-h-unit-10 rounded-medium",input:"text-small",clearButton:"text-large"},lg:{inputWrapper:"h-unit-12 min-h-unit-12 rounded-large",input:"text-medium",clearButton:"text-large"}},radius:{none:{inputWrapper:"rounded-none"},sm:{inputWrapper:"rounded-small"},md:{inputWrapper:"rounded-medium"},lg:{inputWrapper:"rounded-large"},full:{inputWrapper:"rounded-full"}},labelPlacement:{outside:{mainWrapper:"flex flex-col"},"outside-left":{base:"flex-row items-center flex-nowrap data-[has-helper=true]:items-start",inputWrapper:"flex-1",mainWrapper:"flex flex-col",label:"relative text-foreground pr-2"},inside:{label:"text-tiny cursor-text",inputWrapper:"flex-col items-start justify-center gap-0",innerWrapper:"group-data-[has-label=true]:items-end"}},fullWidth:{true:{base:"w-full"}},isClearable:{true:{input:"peer pr-6",clearButton:"peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none",inputWrapper:"pointer-events-none",label:"pointer-events-none"}},isInvalid:{true:{label:"!text-danger",input:"!placeholder:text-danger !text-danger"}},isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isMultiline:{true:{label:"relative",inputWrapper:"!h-auto",innerWrapper:"items-start group-data-[has-label=true]:items-start",input:"resize-none data-[hide-scroll=true]:scrollbar-hide"}},disableAnimation:{true:{input:"transition-none",inputWrapper:"transition-none",label:"transition-none"},false:{inputWrapper:"transition-background motion-reduce:transition-none !duration-150",label:["will-change-auto","!duration-200","!ease-out","motion-reduce:transition-none","transition-[transform,color,left,opacity]"],clearButton:["transition-opacity","motion-reduce:transition-none"]}}},defaultVariants:{variant:"flat",color:"default",size:"md",fullWidth:!0,labelPlacement:"inside",isDisabled:!1,isMultiline:!1,disableAnimation:!1},compoundVariants:[{variant:"flat",color:"default",class:{input:"group-data-[has-value=true]:text-default-foreground"}},{variant:"flat",color:"primary",class:{inputWrapper:["bg-primary-50","data-[hover=true]:bg-primary-100","text-primary","group-data-[focus=true]:bg-primary-50","placeholder:text-primary"],input:"placeholder:text-primary",label:"text-primary"}},{variant:"flat",color:"secondary",class:{inputWrapper:["bg-secondary-50","text-secondary","data-[hover=true]:bg-secondary-100","group-data-[focus=true]:bg-secondary-50","placeholder:text-secondary"],input:"placeholder:text-secondary",label:"text-secondary"}},{variant:"flat",color:"success",class:{inputWrapper:["bg-success-50","text-success-600","dark:text-success","placeholder:text-success-600","dark:placeholder:text-success","data-[hover=true]:bg-success-100","group-data-[focus=true]:bg-success-50"],input:"placeholder:text-success-600 dark:placeholder:text-success",label:"text-success-600 dark:text-success"}},{variant:"flat",color:"warning",class:{inputWrapper:["bg-warning-50","text-warning-600","dark:text-warning","placeholder:text-warning-600","dark:placeholder:text-warning","data-[hover=true]:bg-warning-100","group-data-[focus=true]:bg-warning-50"],input:"placeholder:text-warning-600 dark:placeholder:text-warning",label:"text-warning-600 dark:text-warning"}},{variant:"flat",color:"danger",class:{inputWrapper:["bg-danger-50","text-danger","dark:text-danger-500","placeholder:text-danger","dark:placeholder:text-danger-500","data-[hover=true]:bg-danger-100","group-data-[focus=true]:bg-danger-50"],input:"placeholder:text-danger dark:placeholder:text-danger-500",label:"text-danger dark:text-danger-500"}},{variant:"faded",color:"primary",class:{label:"text-primary",inputWrapper:"data-[hover=true]:border-primary focus-within:border-primary"}},{variant:"faded",color:"secondary",class:{label:"text-secondary",inputWrapper:"data-[hover=true]:border-secondary focus-within:border-secondary"}},{variant:"faded",color:"success",class:{label:"text-success",inputWrapper:"data-[hover=true]:border-success focus-within:border-success"}},{variant:"faded",color:"warning",class:{label:"text-warning",inputWrapper:"data-[hover=true]:border-warning focus-within:border-warning"}},{variant:"faded",color:"danger",class:{label:"text-danger",inputWrapper:"data-[hover=true]:border-danger focus-within:border-danger"}},{variant:"underlined",color:"default",class:{input:"group-data-[has-value=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{inputWrapper:"after:bg-primary",label:"text-primary"}},{variant:"underlined",color:"secondary",class:{inputWrapper:"after:bg-secondary",label:"text-secondary"}},{variant:"underlined",color:"success",class:{inputWrapper:"after:bg-success",label:"text-success"}},{variant:"underlined",color:"warning",class:{inputWrapper:"after:bg-warning",label:"text-warning"}},{variant:"underlined",color:"danger",class:{inputWrapper:"after:bg-danger",label:"text-danger"}},{variant:"bordered",color:"primary",class:{inputWrapper:"group-data-[focus=true]:border-primary",label:"text-primary"}},{variant:"bordered",color:"secondary",class:{inputWrapper:"group-data-[focus=true]:border-secondary",label:"text-secondary"}},{variant:"bordered",color:"success",class:{inputWrapper:"group-data-[focus=true]:border-success",label:"text-success"}},{variant:"bordered",color:"warning",class:{inputWrapper:"group-data-[focus=true]:border-warning",label:"text-warning"}},{variant:"bordered",color:"danger",class:{inputWrapper:"group-data-[focus=true]:border-danger",label:"text-danger"}},{labelPlacement:"inside",color:"default",class:{label:"group-data-[filled-within=true]:text-default-600"}},{labelPlacement:"outside",color:"default",class:{label:"group-data-[filled-within=true]:text-foreground"}},{radius:"full",size:["sm"],class:{inputWrapper:"px-3"}},{radius:"full",size:"md",class:{inputWrapper:"px-4"}},{radius:"full",size:"lg",class:{inputWrapper:"px-5"}},{disableAnimation:!1,variant:["faded","bordered"],class:{inputWrapper:"transition-colors motion-reduce:transition-none"}},{disableAnimation:!1,variant:"underlined",class:{inputWrapper:"after:transition-width motion-reduce:after:transition-none"}},{variant:["flat","faded"],class:{inputWrapper:[...Ko]}},{isInvalid:!0,variant:"flat",class:{inputWrapper:["bg-danger-50","data-[hover=true]:bg-danger-100","group-data-[focus=true]:bg-danger-50"]}},{isInvalid:!0,variant:"bordered",class:{inputWrapper:"!border-danger group-data-[focus=true]:border-danger"}},{isInvalid:!0,variant:"underlined",class:{inputWrapper:"after:bg-danger"}},{labelPlacement:"inside",size:"sm",class:{inputWrapper:"h-12 py-1.5 px-3"}},{labelPlacement:"inside",size:"md",class:{inputWrapper:"h-14 py-2"}},{labelPlacement:"inside",size:"lg",class:{label:"text-small",inputWrapper:"h-16 py-2.5 gap-0"}},{labelPlacement:"inside",size:"sm",variant:["bordered","faded"],class:{inputWrapper:"py-1"}},{labelPlacement:["inside","outside"],class:{label:["group-data-[filled-within=true]:pointer-events-auto"]}},{labelPlacement:["outside","outside-left"],class:{input:"h-full"}},{labelPlacement:"outside",isMultiline:!1,class:{base:"group relative justify-end",label:["pb-0","z-20","top-1/2","-translate-y-1/2","group-data-[filled-within=true]:left-0"]}},{labelPlacement:["inside"],class:{label:["group-data-[filled-within=true]:scale-85"]}},{labelPlacement:["inside"],variant:"flat",class:{innerWrapper:"pb-0.5"}},{variant:"underlined",size:"sm",class:{innerWrapper:"pb-1"}},{variant:"underlined",size:["md","lg"],class:{innerWrapper:"pb-1.5"}},{labelPlacement:"inside",size:["sm","md"],class:{label:"text-small"}},{labelPlacement:"inside",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"]}},{labelPlacement:"inside",variant:"underlined",size:"lg",isMultiline:!1,class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"]}},{labelPlacement:"outside",size:"sm",isMultiline:!1,class:{label:["left-2","text-tiny","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"}},{labelPlacement:"outside",size:"md",isMultiline:!1,class:{label:["left-3","text-small","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"}},{labelPlacement:"outside",size:"lg",isMultiline:!1,class:{label:["left-3","text-medium","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"}},{labelPlacement:"outside-left",size:"sm",class:{label:"group-data-[has-helper=true]:pt-2"}},{labelPlacement:"outside-left",size:"md",class:{label:"group-data-[has-helper=true]:pt-3"}},{labelPlacement:"outside-left",size:"lg",class:{label:"group-data-[has-helper=true]:pt-4"}},{labelPlacement:["outside","outside-left"],isMultiline:!0,class:{inputWrapper:"py-2"}},{labelPlacement:"outside",isMultiline:!0,class:{label:"pb-1.5"}},{labelPlacement:"inside",isMultiline:!0,class:{label:"pb-0.5",input:"pt-0"}},{isMultiline:!0,disableAnimation:!1,class:{input:"transition-height !duration-100 motion-reduce:transition-none"}},{labelPlacement:["inside","outside"],class:{label:["pe-2","max-w-full","text-ellipsis","overflow-hidden"]}},{isMultiline:!0,radius:"full",class:{inputWrapper:"data-[has-multiple-rows=true]:rounded-large"}}]}),s1=rt({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2",wrapper:["relative","inline-flex","items-center","justify-center","flex-shrink-0","overflow-hidden","before:content-['']","before:absolute","before:inset-0","before:border-solid","before:border-2","before:box-border","before:border-default","after:content-['']","after:absolute","after:inset-0","after:scale-50","after:opacity-0","after:origin-center","group-data-[selected=true]:after:scale-100","group-data-[selected=true]:after:opacity-100","group-data-[hover=true]:before:bg-default-100",...Ko],icon:"z-10 w-4 h-3 opacity-0 group-data-[selected=true]:opacity-100",label:"relative text-foreground select-none"},variants:{color:{default:{wrapper:"after:bg-default after:text-default-foreground text-default-foreground"},primary:{wrapper:"after:bg-primary after:text-primary-foreground text-primary-foreground"},secondary:{wrapper:"after:bg-secondary after:text-secondary-foreground text-secondary-foreground"},success:{wrapper:"after:bg-success after:text-success-foreground text-success-foreground"},warning:{wrapper:"after:bg-warning after:text-warning-foreground text-warning-foreground"},danger:{wrapper:"after:bg-danger after:text-danger-foreground text-danger-foreground"}},size:{sm:{wrapper:["w-4 h-4 mr-2","rounded-[calc(theme(borderRadius.medium)*0.5)]","before:rounded-[calc(theme(borderRadius.medium)*0.5)]","after:rounded-[calc(theme(borderRadius.medium)*0.5)]"],label:"text-small",icon:"w-3 h-2"},md:{wrapper:["w-5 h-5 mr-2","rounded-[calc(theme(borderRadius.medium)*0.6)]","before:rounded-[calc(theme(borderRadius.medium)*0.6)]","after:rounded-[calc(theme(borderRadius.medium)*0.6)]"],label:"text-medium",icon:"w-4 h-3"},lg:{wrapper:["w-6 h-6 mr-2","rounded-[calc(theme(borderRadius.medium)*0.7)]","before:rounded-[calc(theme(borderRadius.medium)*0.7)]","after:rounded-[calc(theme(borderRadius.medium)*0.7)]"],label:"text-large",icon:"w-5 h-4"}},radius:{none:{wrapper:"rounded-none before:rounded-none after:rounded-none"},sm:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.5)]","before:rounded-[calc(theme(borderRadius.medium)*0.5)]","after:rounded-[calc(theme(borderRadius.medium)*0.5)]"]},md:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.6)]","before:rounded-[calc(theme(borderRadius.medium)*0.6)]","after:rounded-[calc(theme(borderRadius.medium)*0.6)]"]},lg:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.7)]","before:rounded-[calc(theme(borderRadius.medium)*0.7)]","after:rounded-[calc(theme(borderRadius.medium)*0.7)]"]},full:{wrapper:"rounded-full before:rounded-full after:rounded-full"}},lineThrough:{true:{label:["inline-flex","items-center","justify-center","before:content-['']","before:absolute","before:bg-foreground","before:w-0","before:h-0.5","group-data-[selected=true]:opacity-60","group-data-[selected=true]:before:w-full"]}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{wrapper:"before:border-danger",label:"text-danger"}},disableAnimation:{true:{wrapper:"transition-none",icon:"transition-none",label:"transition-none"},false:{wrapper:["before:transition-colors","group-data-[pressed=true]:scale-95","transition-transform","after:transition-transform-opacity","after:!ease-linear","after:!duration-200","motion-reduce:transition-none"],icon:"transition-opacity motion-reduce:transition-none",label:"transition-colors-opacity before:transition-width motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,lineThrough:!1,disableAnimation:!1}});rt({slots:{base:"relative flex flex-col gap-2",label:"relative text-medium text-foreground-500",wrapper:"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",description:"text-small text-foreground-400",errorMessage:"text-small text-danger"},variants:{isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isInvalid:{true:{description:"text-danger"}},disableAnimation:{true:{},false:{description:"transition-colors !duration-150 motion-reduce:transition-none"}}},defaultVariants:{isInvalid:!1,isRequired:!1,disableAnimation:!1}});var uu=rt({slots:{base:["relative","max-w-fit","inline-flex","items-center","justify-between","box-border","whitespace-nowrap"],content:"flex-1 text-inherit font-normal",dot:["w-2","h-2","ml-1","rounded-full"],avatar:"flex-shrink-0",closeButton:["z-10","appearance-none","outline-none","select-none","transition-opacity","opacity-70","hover:opacity-100","cursor-pointer","active:opacity-disabled","tap-highlight-transparent"]},variants:{variant:{solid:{},bordered:{base:"border-medium bg-transparent"},light:{base:"bg-transparent"},flat:{},faded:{base:"border-medium"},shadow:{},dot:{base:"border-medium border-default text-foreground bg-transparent"}},color:{default:{dot:"bg-default-400"},primary:{dot:"bg-primary"},secondary:{dot:"bg-secondary"},success:{dot:"bg-success"},warning:{dot:"bg-warning"},danger:{dot:"bg-danger"}},size:{sm:{base:"px-1 h-6 text-tiny",content:"px-1",closeButton:"text-medium",avatar:"w-4 h-4"},md:{base:"px-1 h-7 text-small",content:"px-2",closeButton:"text-large",avatar:"w-5 h-5"},lg:{base:"px-2 h-8 text-medium",content:"px-2",closeButton:"text-xl",avatar:"w-6 h-6"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isOneChar:{true:{},false:{}},isCloseable:{true:{},false:{}},hasStartContent:{true:{}},hasEndContent:{true:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isCloseButtonFocusVisible:{true:{closeButton:[...Qg,"ring-1","rounded-full"]}}},defaultVariants:{variant:"solid",color:"default",size:"md",radius:"full",isDisabled:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:B.solid.default}},{variant:"solid",color:"primary",class:{base:B.solid.primary}},{variant:"solid",color:"secondary",class:{base:B.solid.secondary}},{variant:"solid",color:"success",class:{base:B.solid.success}},{variant:"solid",color:"warning",class:{base:B.solid.warning}},{variant:"solid",color:"danger",class:{base:B.solid.danger}},{variant:"shadow",color:"default",class:{base:B.shadow.default}},{variant:"shadow",color:"primary",class:{base:B.shadow.primary}},{variant:"shadow",color:"secondary",class:{base:B.shadow.secondary}},{variant:"shadow",color:"success",class:{base:B.shadow.success}},{variant:"shadow",color:"warning",class:{base:B.shadow.warning}},{variant:"shadow",color:"danger",class:{base:B.shadow.danger}},{variant:"bordered",color:"default",class:{base:B.bordered.default}},{variant:"bordered",color:"primary",class:{base:B.bordered.primary}},{variant:"bordered",color:"secondary",class:{base:B.bordered.secondary}},{variant:"bordered",color:"success",class:{base:B.bordered.success}},{variant:"bordered",color:"warning",class:{base:B.bordered.warning}},{variant:"bordered",color:"danger",class:{base:B.bordered.danger}},{variant:"flat",color:"default",class:{base:B.flat.default}},{variant:"flat",color:"primary",class:{base:B.flat.primary}},{variant:"flat",color:"secondary",class:{base:B.flat.secondary}},{variant:"flat",color:"success",class:{base:B.flat.success}},{variant:"flat",color:"warning",class:{base:B.flat.warning}},{variant:"flat",color:"danger",class:{base:B.flat.danger}},{variant:"faded",color:"default",class:{base:B.faded.default}},{variant:"faded",color:"primary",class:{base:B.faded.primary}},{variant:"faded",color:"secondary",class:{base:B.faded.secondary}},{variant:"faded",color:"success",class:{base:B.faded.success}},{variant:"faded",color:"warning",class:{base:B.faded.warning}},{variant:"faded",color:"danger",class:{base:B.faded.danger}},{variant:"light",color:"default",class:{base:B.light.default}},{variant:"light",color:"primary",class:{base:B.light.primary}},{variant:"light",color:"secondary",class:{base:B.light.secondary}},{variant:"light",color:"success",class:{base:B.light.success}},{variant:"light",color:"warning",class:{base:B.light.warning}},{variant:"light",color:"danger",class:{base:B.light.danger}},{isOneChar:!0,size:"sm",class:{base:"w-5 h-5 min-w-unit-5 min-h-5"}},{isOneChar:!0,size:"md",class:{base:"w-6 h-6 min-w-unit-6 min-h-6"}},{isOneChar:!0,size:"lg",class:{base:"w-7 h-7 min-w-unit-7 min-h-7"}},{isOneChar:!0,isCloseable:!1,class:{base:"px-0 justify-center",content:"px-0 flex-none"}},{isOneChar:!0,isCloseable:!0,class:{base:"w-auto"}},{hasStartContent:!0,size:"sm",class:{content:"pl-0.5"}},{hasStartContent:!0,size:["md","lg"],class:{content:"pl-1"}},{hasEndContent:!0,size:"sm",class:{content:"pr-0.5"}},{hasEndContent:!0,size:["md","lg"],class:{content:"pr-1"}}]}),i1=rt({slots:{base:["flex","relative","justify-center","items-center","box-border","overflow-hidden","align-middle","text-white","z-0",...$n],img:["flex","object-cover","w-full","h-full","transition-opacity","!duration-500","opacity-0","data-[loaded=true]:opacity-100"],fallback:[...js,"flex","items-center","justify-center"],name:[...js,"font-normal","text-center","text-inherit"],icon:[...js,"flex","items-center","justify-center","text-inherit","w-full","h-full"]},variants:{size:{sm:{base:"w-8 h-8 text-tiny"},md:{base:"w-10 h-10 text-tiny"},lg:{base:"w-14 h-14 text-small"}},color:{default:{base:B.solid.default},primary:{base:B.solid.primary},secondary:{base:B.solid.secondary},success:{base:B.solid.success},warning:{base:B.solid.warning},danger:{base:B.solid.danger}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isBordered:{true:{base:"ring-2 ring-offset-2 ring-offset-background dark:ring-offset-background-dark"}},isDisabled:{true:{base:"opacity-disabled"}},isInGroup:{true:{base:["-ms-2 data-[hover=true]:-translate-x-3 transition-transform","data-[focus-visible=true]:-translate-x-3"]}},isInGridGroup:{true:{base:"m-0 data-[hover=true]:translate-x-0"}}},defaultVariants:{size:"md",color:"default",radius:"full"},compoundVariants:[{color:"default",isBordered:!0,class:{base:"ring-default"}},{color:"primary",isBordered:!0,class:{base:"ring-primary"}},{color:"secondary",isBordered:!0,class:{base:"ring-secondary"}},{color:"success",isBordered:!0,class:{base:"ring-success"}},{color:"warning",isBordered:!0,class:{base:"ring-warning"}},{color:"danger",isBordered:!0,class:{base:"ring-danger"}}]});rt({base:"flex items-center justify-center h-auto w-max-content",variants:{isGrid:{true:"inline-grid grid-cols-4 gap-3"}}});var l1=rt({base:["z-0","group","relative","inline-flex","items-center","justify-center","box-border","appearance-none","outline-none","select-none","whitespace-nowrap","min-w-max","font-normal","subpixel-antialiased","overflow-hidden","tap-highlight-transparent",...$n],variants:{variant:{solid:"",bordered:"border-medium bg-transparent",light:"bg-transparent",flat:"",faded:"border-medium",shadow:"",ghost:"border-medium bg-transparent"},size:{sm:"px-unit-3 min-w-unit-16 h-unit-8 text-tiny gap-unit-2 rounded-small",md:"px-unit-4 min-w-unit-20 h-unit-10 text-small gap-unit-2 rounded-medium",lg:"px-unit-6 min-w-unit-24 h-unit-12 text-medium gap-unit-3 rounded-large"},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},radius:{none:"rounded-none",sm:"rounded-small",md:"rounded-medium",lg:"rounded-large",full:"rounded-full"},fullWidth:{true:"w-full"},isDisabled:{true:"opacity-disabled pointer-events-none"},isInGroup:{true:"[&:not(:first-child):not(:last-child)]:rounded-none"},isIconOnly:{true:"px-unit-0 !gap-unit-0",false:"[&>svg]:max-w-[theme(spacing.unit-8)]"},disableAnimation:{true:"!transition-none",false:"data-[pressed=true]:scale-[0.97] transition-transform-colors-opacity motion-reduce:transition-none"}},defaultVariants:{size:"md",variant:"solid",color:"default",fullWidth:!1,isDisabled:!1,isInGroup:!1,disableAnimation:!1},compoundVariants:[{variant:"solid",color:"default",class:B.solid.default},{variant:"solid",color:"primary",class:B.solid.primary},{variant:"solid",color:"secondary",class:B.solid.secondary},{variant:"solid",color:"success",class:B.solid.success},{variant:"solid",color:"warning",class:B.solid.warning},{variant:"solid",color:"danger",class:B.solid.danger},{variant:"shadow",color:"default",class:B.shadow.default},{variant:"shadow",color:"primary",class:B.shadow.primary},{variant:"shadow",color:"secondary",class:B.shadow.secondary},{variant:"shadow",color:"success",class:B.shadow.success},{variant:"shadow",color:"warning",class:B.shadow.warning},{variant:"shadow",color:"danger",class:B.shadow.danger},{variant:"bordered",color:"default",class:B.bordered.default},{variant:"bordered",color:"primary",class:B.bordered.primary},{variant:"bordered",color:"secondary",class:B.bordered.secondary},{variant:"bordered",color:"success",class:B.bordered.success},{variant:"bordered",color:"warning",class:B.bordered.warning},{variant:"bordered",color:"danger",class:B.bordered.danger},{variant:"flat",color:"default",class:B.flat.default},{variant:"flat",color:"primary",class:B.flat.primary},{variant:"flat",color:"secondary",class:B.flat.secondary},{variant:"flat",color:"success",class:B.flat.success},{variant:"flat",color:"warning",class:B.flat.warning},{variant:"flat",color:"danger",class:B.flat.danger},{variant:"faded",color:"default",class:B.faded.default},{variant:"faded",color:"primary",class:B.faded.primary},{variant:"faded",color:"secondary",class:B.faded.secondary},{variant:"faded",color:"success",class:B.faded.success},{variant:"faded",color:"warning",class:B.faded.warning},{variant:"faded",color:"danger",class:B.faded.danger},{variant:"light",color:"default",class:[B.light.default,"data-[hover=true]:bg-default/40"]},{variant:"light",color:"primary",class:[B.light.primary,"data-[hover=true]:bg-primary/20"]},{variant:"light",color:"secondary",class:[B.light.secondary,"data-[hover=true]:bg-secondary/20"]},{variant:"light",color:"success",class:[B.light.success,"data-[hover=true]:bg-success/20"]},{variant:"light",color:"warning",class:[B.light.warning,"data-[hover=true]:bg-warning/20"]},{variant:"light",color:"danger",class:[B.light.danger,"data-[hover=true]:bg-danger/20"]},{variant:"ghost",color:"default",class:B.ghost.default},{variant:"ghost",color:"primary",class:B.ghost.primary},{variant:"ghost",color:"secondary",class:B.ghost.secondary},{variant:"ghost",color:"success",class:B.ghost.success},{variant:"ghost",color:"warning",class:B.ghost.warning},{variant:"ghost",color:"danger",class:B.ghost.danger},{isInGroup:!0,class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,size:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,isRounded:!0,class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,radius:"none",class:"rounded-none first:rounded-s-none last:rounded-e-none"},{isInGroup:!0,radius:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,radius:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,radius:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,radius:"full",class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,variant:["ghost","bordered"],color:"default",className:Kr.default},{isInGroup:!0,variant:["ghost","bordered"],color:"primary",className:Kr.primary},{isInGroup:!0,variant:["ghost","bordered"],color:"secondary",className:Kr.secondary},{isInGroup:!0,variant:["ghost","bordered"],color:"success",className:Kr.success},{isInGroup:!0,variant:["ghost","bordered"],color:"warning",className:Kr.warning},{isInGroup:!0,variant:["ghost","bordered"],color:"danger",className:Kr.danger},{isIconOnly:!0,size:"sm",class:"min-w-unit-8 w-unit-8 h-unit-8"},{isIconOnly:!0,size:"md",class:"min-w-unit-10 w-unit-10 h-unit-10"},{isIconOnly:!0,size:"lg",class:"min-w-unit-12 w-unit-12 h-unit-12"},{variant:["solid","faded","flat","bordered","shadow"],class:"data-[hover=true]:opacity-hover"}]});rt({base:"inline-flex items-center justify-center h-auto",variants:{fullWidth:{true:"w-full"}},defaultVariants:{fullWidth:!1}});var c1=e=>(e==null?void 0:e.length)<=4?e:e==null?void 0:e.slice(0,3),_s=(...e)=>{let t=" ";for(const r of e)if(typeof r=="string"&&r.length>0){t=r;break}return t};function du(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=du(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function me(...e){for(var t=0,r,n,o="";t<e.length;)(r=e[t++])&&(n=du(r))&&(o&&(o+=" "),o+=n);return o}var fu={};function Uo(e,t,...r){var n;const a=`[Next UI]${t?` [${t}]`:" "}: ${e}`;if(!(typeof console>"u")&&!fu[a]&&(fu[a]=!0,((n=process==null?void 0:process.env)==null?void 0:n.NODE_ENV)!=="production"))return console.warn(a,r)}function u1(e){return`${e}-${Math.floor(Math.random()*1e6)}`}var pu=process.env.NODE_ENV!=="production";process.env.NODE_ENV;var Q=e=>e?"true":void 0;function Ho(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=U.createContext(void 0);o.displayName=n;function a(){var s;const i=U.useContext(o);if(!i&&t){const l=new Error(r);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,a),l}return i}return[o.Provider,a,o]}function d1(e){return{UNSAFE_getDOMNode(){return e.current}}}function f1(e,t=e){return{...d1(e),focus(){t.current&&t.current.focus()}}}function nt(e){const t=f.useRef(null);return f.useImperativeHandle(e,()=>t.current),t}function hu(e,t){const r=f.useRef(null);return f.useImperativeHandle(e,()=>f1(r,t)),r}var p1=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),h1=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]),m1=/^(data-.*)$/,g1=/^(aria-.*)$/,Fs=/^(on[A-Z].*)$/;function Dn(e,t={}){let{labelable:r=!0,enabled:n=!0,propNames:o,omitPropNames:a,omitEventNames:s}=t,i={};if(!n)return e;for(const l in e)a!=null&&a.has(l)||s!=null&&s.has(l)&&Fs.test(l)||Fs.test(l)&&!h1.has(l)||(Object.prototype.hasOwnProperty.call(e,l)&&(p1.has(l)||r&&g1.test(l)||o!=null&&o.has(l)||m1.test(l))||Fs.test(l))&&(i[l]=e[l]);return i}function Vs(e){return rg()?e.altKey:e.ctrlKey}function Ur(e){return Gt()?e.metaKey:e.ctrlKey}const v1=1e3;function b1(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=f.useRef({search:"",timeout:null}).current,a=s=>{let i=y1(s.key);if(!i||s.ctrlKey||s.metaKey||!s.currentTarget.contains(s.target))return;i===" "&&o.search.trim().length>0&&(s.preventDefault(),"continuePropagation"in s||s.stopPropagation()),o.search+=i;let l=t.getKeyForSearch(o.search,r.focusedKey);l==null&&(l=t.getKeyForSearch(o.search)),l!=null&&(r.setFocusedKey(l),n&&n(l)),clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},v1)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:null}}}function y1(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function x1(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:a=!1,disallowEmptySelection:s=!1,disallowSelectAll:i=!1,selectOnFocus:l=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:u,allowsTabNavigation:d=!1,isVirtualized:h,scrollRef:p=n,linkBehavior:m="action"}=e,{direction:y}=xs(),b=Ic(),C=I=>{if(I.altKey&&I.key==="Tab"&&I.preventDefault(),!n.current.contains(I.target))return;const T=(K,R)=>{if(K!=null){if(t.isLink(K)&&m==="selection"&&l&&!Vs(I)){gn.flushSync(()=>{t.setFocusedKey(K,R)});let re=p.current.querySelector(`[data-key="${CSS.escape(K.toString())}"]`);b.open(re,I);return}if(t.setFocusedKey(K,R),t.isLink(K)&&m==="override")return;I.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(K):l&&!Vs(I)&&t.replaceSelection(K)}};switch(I.key){case"ArrowDown":if(r.getKeyBelow){var D,w;I.preventDefault();let K=t.focusedKey!=null?r.getKeyBelow(t.focusedKey):(D=r.getFirstKey)===null||D===void 0?void 0:D.call(r);K==null&&a&&(K=(w=r.getFirstKey)===null||w===void 0?void 0:w.call(r,t.focusedKey)),T(K)}break;case"ArrowUp":if(r.getKeyAbove){var M,O;I.preventDefault();let K=t.focusedKey!=null?r.getKeyAbove(t.focusedKey):(M=r.getLastKey)===null||M===void 0?void 0:M.call(r);K==null&&a&&(K=(O=r.getLastKey)===null||O===void 0?void 0:O.call(r,t.focusedKey)),T(K)}break;case"ArrowLeft":if(r.getKeyLeftOf){var F,$;I.preventDefault();let K=r.getKeyLeftOf(t.focusedKey);K==null&&a&&(K=y==="rtl"?(F=r.getFirstKey)===null||F===void 0?void 0:F.call(r,t.focusedKey):($=r.getLastKey)===null||$===void 0?void 0:$.call(r,t.focusedKey)),T(K,y==="rtl"?"first":"last")}break;case"ArrowRight":if(r.getKeyRightOf){var V,Y;I.preventDefault();let K=r.getKeyRightOf(t.focusedKey);K==null&&a&&(K=y==="rtl"?(V=r.getLastKey)===null||V===void 0?void 0:V.call(r,t.focusedKey):(Y=r.getFirstKey)===null||Y===void 0?void 0:Y.call(r,t.focusedKey)),T(K,y==="rtl"?"last":"first")}break;case"Home":if(r.getFirstKey){I.preventDefault();let K=r.getFirstKey(t.focusedKey,Ur(I));t.setFocusedKey(K),Ur(I)&&I.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(K):l&&t.replaceSelection(K)}break;case"End":if(r.getLastKey){I.preventDefault();let K=r.getLastKey(t.focusedKey,Ur(I));t.setFocusedKey(K),Ur(I)&&I.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(K):l&&t.replaceSelection(K)}break;case"PageDown":if(r.getKeyPageBelow){I.preventDefault();let K=r.getKeyPageBelow(t.focusedKey);T(K)}break;case"PageUp":if(r.getKeyPageAbove){I.preventDefault();let K=r.getKeyPageAbove(t.focusedKey);T(K)}break;case"a":Ur(I)&&t.selectionMode==="multiple"&&i!==!0&&(I.preventDefault(),t.selectAll());break;case"Escape":I.preventDefault(),s||t.clearSelection();break;case"Tab":if(!d){if(I.shiftKey)n.current.focus();else{let K=As(n.current,{tabbable:!0}),R,re;do re=K.lastChild(),re&&(R=re);while(re);R&&!R.contains(document.activeElement)&&tt(R)}break}}},x=f.useRef({top:0,left:0});dg(p,"scroll",h?null:()=>{x.current={top:p.current.scrollTop,left:p.current.scrollLeft}});let P=I=>{if(t.isFocused){I.currentTarget.contains(I.target)||t.setFocused(!1);return}if(I.currentTarget.contains(I.target)){if(t.setFocused(!0),t.focusedKey==null){let w=O=>{O!=null&&(t.setFocusedKey(O),l&&t.replaceSelection(O))},M=I.relatedTarget;var T,D;M&&I.currentTarget.compareDocumentPosition(M)&Node.DOCUMENT_POSITION_FOLLOWING?w((T=t.lastSelectedKey)!==null&&T!==void 0?T:r.getLastKey()):w((D=t.firstSelectedKey)!==null&&D!==void 0?D:r.getFirstKey())}else h||(p.current.scrollTop=x.current.top,p.current.scrollLeft=x.current.left);if(!h&&t.focusedKey!=null){let w=p.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);w&&(w.contains(document.activeElement)||tt(w),$s()==="keyboard"&&jc(w,{containingElement:n.current}))}}},E=I=>{I.currentTarget.contains(I.relatedTarget)||t.setFocused(!1)};const S=f.useRef(o);f.useEffect(()=>{if(S.current){let I=null;o==="first"&&(I=r.getFirstKey()),o==="last"&&(I=r.getLastKey());let T=t.selectedKeys;if(T.size){for(let D of T)if(t.canSelectItem(D)){I=D;break}}t.setFocused(!0),t.setFocusedKey(I),I==null&&!u&&Wo(n.current)}},[]);let N=f.useRef(t.focusedKey);f.useEffect(()=>{let I=$s();if(t.isFocused&&t.focusedKey!=null&&(p!=null&&p.current)){let T=p.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);T&&(I==="keyboard"||S.current)&&(h||Nc(p.current,T),jc(T,{containingElement:n.current}))}t.isFocused&&t.focusedKey==null&&N.current!=null&&Wo(n.current),N.current=t.focusedKey,S.current=!1},[h,p,t.focusedKey,t.isFocused,n]);let j={onKeyDown:C,onFocus:P,onBlur:E,onMouseDown(I){p.current===I.target&&I.preventDefault()}},{typeSelectProps:g}=b1({keyboardDelegate:r,selectionManager:t});c||(j=se(g,j));let A;return u||(A=t.focusedKey==null?0:-1),{collectionProps:{...j,tabIndex:A}}}function w1(e){let{selectionManager:t,key:r,ref:n,shouldSelectOnPressUp:o,shouldUseVirtualFocus:a,focus:s,isDisabled:i,onAction:l,allowsDifferentPressOrigin:c,linkBehavior:u="action"}=e,d=Ic(),h=$=>{if($.pointerType==="keyboard"&&Vs($))t.toggleSelection(r);else{if(t.selectionMode==="none")return;if(t.isLink(r)){if(u==="selection"){d.open(n.current,$),t.setSelectedKeys(t.selectedKeys);return}else if(u==="override"||u==="none")return}t.selectionMode==="single"?t.isSelected(r)&&!t.disallowEmptySelection?t.toggleSelection(r):t.replaceSelection(r):$&&$.shiftKey?t.extendSelection(r):t.selectionBehavior==="toggle"||$&&(Ur($)||$.pointerType==="touch"||$.pointerType==="virtual")?t.toggleSelection(r):t.replaceSelection(r)}};f.useEffect(()=>{r===t.focusedKey&&t.isFocused&&!a&&(s?s():document.activeElement!==n.current&&Wo(n.current))},[n,r,t.focusedKey,t.childFocusStrategy,t.isFocused,a]),i=i||t.isDisabled(r);let p={};!a&&!i?p={tabIndex:r===t.focusedKey?0:-1,onFocus($){$.target===n.current&&t.setFocusedKey(r)}}:i&&(p.onMouseDown=$=>{$.preventDefault()});let m=t.isLink(r)&&u==="override",y=t.isLink(r)&&u!=="selection"&&u!=="none",b=!i&&t.canSelectItem(r)&&!m,C=(l||y)&&!i,x=C&&(t.selectionBehavior==="replace"?!b:!b||t.isEmpty),P=C&&b&&t.selectionBehavior==="replace",E=x||P,S=f.useRef(null),N=E&&b,j=f.useRef(!1),g=f.useRef(!1),A=$=>{l&&l(),y&&d.open(n.current,$)},I={};o?(I.onPressStart=$=>{S.current=$.pointerType,j.current=N,$.pointerType==="keyboard"&&(!E||gu())&&h($)},c?(I.onPressUp=x?null:$=>{$.pointerType!=="keyboard"&&b&&h($)},I.onPress=x?A:null):I.onPress=$=>{if(x||P&&$.pointerType!=="mouse"){if($.pointerType==="keyboard"&&!mu())return;A($)}else $.pointerType!=="keyboard"&&b&&h($)}):(I.onPressStart=$=>{S.current=$.pointerType,j.current=N,g.current=x,b&&($.pointerType==="mouse"&&!x||$.pointerType==="keyboard"&&(!C||gu()))&&h($)},I.onPress=$=>{($.pointerType==="touch"||$.pointerType==="pen"||$.pointerType==="virtual"||$.pointerType==="keyboard"&&E&&mu()||$.pointerType==="mouse"&&g.current)&&(E?A($):b&&h($))}),p["data-key"]=r,I.preventFocusOnPress=a;let{pressProps:T,isPressed:D}=fr(I),w=P?$=>{S.current==="mouse"&&($.stopPropagation(),$.preventDefault(),A($))}:void 0,{longPressProps:M}=zg({isDisabled:!N,onLongPress($){$.pointerType==="touch"&&(h($),t.setSelectionBehavior("toggle"))}}),O=$=>{S.current==="touch"&&j.current&&$.preventDefault()},F=t.isLink(r)?$=>{At.isOpening||$.preventDefault()}:void 0;return{itemProps:se(p,b||x?T:{},N?M:{},{onDoubleClick:w,onDragStartCapture:O,onClick:F}),isPressed:D,isSelected:t.isSelected(r),isFocused:t.isFocused&&t.focusedKey===r,isDisabled:i,allowsSelection:b,hasAction:E}}function mu(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function gu(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}var vu=f.createContext(null);vu.displayName="PressResponderContext";var C1=Object.defineProperty,P1=(e,t,r)=>t in e?C1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gr=(e,t,r)=>(P1(e,typeof t!="symbol"?t+"":t,r),r),bu=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},M1=(e,t,r)=>(bu(e,t,"read from private field"),r?r.call(e):t.get(e)),T1=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},E1=(e,t,r,n)=>(bu(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Yo,Go=class{constructor(e,t,r){gr(this,"type"),gr(this,"pointerType"),gr(this,"target"),gr(this,"shiftKey"),gr(this,"ctrlKey"),gr(this,"metaKey"),gr(this,"altKey"),T1(this,Yo,!0),this.type=e,this.pointerType=t,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}continuePropagation(){E1(this,Yo,!1)}get shouldStopPropagation(){return M1(this,Yo)}};Yo=new WeakMap;var vr=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document},zs=e=>{var t,r;return(r=(t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)!=null?r:window},Hr="default",Ws="",qo=new WeakMap;function yu(e){if(Mn()){if(Hr==="default"){const t=vr(e);Ws=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Hr="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(qo.set(e,e.style.userSelect),e.style.userSelect="none")}function Qo(e){if(Mn()){if(Hr!=="disabled")return;Hr="restoring",setTimeout(()=>{ps(()=>{if(Hr==="restoring"){const t=vr(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Ws||""),Ws="",Hr="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&qo.has(e)){let t=qo.get(e);e.style.userSelect==="none"&&t&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),qo.delete(e)}}function S1(e){let t=f.useContext(vu);if(t){let{register:r,...n}=t;e=se(n,e),r()}return gs(t,e.ref),e}var xu=Symbol("linkClicked");function In(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:a,isDisabled:s,isPressed:i,preventFocusOnPress:l,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:u,ref:d,...h}=S1(e),[p,m]=f.useState(!1),y=f.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:b,removeAllGlobalListeners:C}=hs(),x=We((g,A)=>{let I=y.current;if(s||I.didFirePressStart)return;let T=!0;if(I.isTriggeringEvent=!0,n){let D=new Go("pressstart",A,g);n(D),T=D.shouldStopPropagation}return r&&r(!0),I.isTriggeringEvent=!1,I.didFirePressStart=!0,m(!0),T}),P=We((g,A,I=!0)=>{let T=y.current;if(!T.didFirePressStart)return;T.ignoreClickAfterPress=!0,T.didFirePressStart=!1,T.isTriggeringEvent=!0;let D=!0;if(o){let w=new Go("pressend",A,g);o(w),D=w.shouldStopPropagation}if(r&&r(!1),m(!1),t&&I&&!s){let w=new Go("press",A,g);t(w),D&&(D=w.shouldStopPropagation)}return T.isTriggeringEvent=!1,D}),E=We((g,A)=>{let I=y.current;if(!s){if(a){I.isTriggeringEvent=!0;let T=new Go("pressup",A,g);return a(T),I.isTriggeringEvent=!1,T.shouldStopPropagation}return!0}}),S=We(g=>{let A=y.current;A.isPressed&&(A.isOverTarget&&A.target&&P(Nt(A.target,g),A.pointerType,!1),A.isPressed=!1,A.isOverTarget=!1,A.activePointerId=null,A.pointerType=null,C(),!u&&A.target&&Qo(A.target))}),N=We(g=>{c&&S(g)}),j=f.useMemo(()=>{let g=y.current,A={onKeyDown(T){var D;if(Rs(T.nativeEvent,T.currentTarget)&&T.currentTarget.contains(T.target)){Cu(T.target,T.key)&&T.preventDefault();let w=!0;!g.isPressed&&!T.repeat&&(g.target=T.currentTarget,g.isPressed=!0,w=x(T,"keyboard"),b(vr(T.currentTarget),"keyup",I,!1)),w&&T.stopPropagation(),T.metaKey&&Gt()&&((D=g.metaKeyEvents)==null||D.set(T.key,T.nativeEvent))}else T.key==="Meta"&&(g.metaKeyEvents=new Map)},onKeyUp(T){g.target&&Rs(T.nativeEvent,T.currentTarget)&&!T.repeat&&T.currentTarget.contains(T.target)&&E(Nt(g.target,T),"keyboard")},onClick(T){if(!(T&&!T.currentTarget.contains(T.target))&&T&&T.button===0&&!g.isTriggeringEvent&&!At.isOpening){let D=!0;if(s&&T.preventDefault(),!g.ignoreClickAfterPress&&!g.ignoreEmulatedMouseEvents&&!g.isPressed&&(g.pointerType==="virtual"||Tn(T.nativeEvent))){!s&&!l&&tt(T.currentTarget);let w=x(T,"virtual"),M=E(T,"virtual"),O=P(T,"virtual");D=w&&M&&O}g.ignoreEmulatedMouseEvents=!1,g.ignoreClickAfterPress=!1,D&&T.stopPropagation()}}},I=T=>{var D,w;if(g.isPressed&&g.target&&Rs(T,g.target)){Cu(T.target,T.key)&&T.preventDefault();let M=T.target,O=P(Nt(g.target,T),"keyboard",g.target.contains(M));C(),O&&T.stopPropagation(),T.key!=="Enter"&&Bs(g.target)&&g.target.contains(M)&&!T[xu]&&(T[xu]=!0,At(g.target,T,!1)),g.isPressed=!1,(D=g.metaKeyEvents)==null||D.delete(T.key)}else if(T.key==="Meta"&&((w=g.metaKeyEvents)!=null&&w.size)){let M=g.metaKeyEvents;g.metaKeyEvents=null;for(let O of M.values())g.target&&g.target.dispatchEvent(new KeyboardEvent("keyup",O))}};if(typeof PointerEvent<"u"){A.onPointerDown=M=>{if(M.button!==0||!M.currentTarget.contains(M.target))return;if(_c(M.nativeEvent)){g.pointerType="virtual";return}Ks(M.currentTarget)&&M.preventDefault(),g.pointerType=M.pointerType;let O=!0;g.isPressed||(g.isPressed=!0,g.isOverTarget=!0,g.activePointerId=M.pointerId,g.target=M.currentTarget,!s&&!l&&tt(M.currentTarget),u||yu(g.target),O=x(M,g.pointerType),b(vr(M.currentTarget),"pointermove",T,!1),b(vr(M.currentTarget),"pointerup",D,!1),b(vr(M.currentTarget),"pointercancel",w,!1)),O&&M.stopPropagation()},A.onMouseDown=M=>{M.currentTarget.contains(M.target)&&M.button===0&&(Ks(M.currentTarget)&&M.preventDefault(),M.stopPropagation())},A.onPointerUp=M=>{!M.currentTarget.contains(M.target)||g.pointerType==="virtual"||M.button===0&&Yr(M,M.currentTarget)&&E(M,g.pointerType||M.pointerType)};let T=M=>{M.pointerId!==g.activePointerId||!g.target||(Yr(M,g.target)?g.isOverTarget||(g.isOverTarget=!0,x(Nt(g.target,M),g.pointerType)):g.isOverTarget&&(g.isOverTarget=!1,P(Nt(g.target,M),g.pointerType,!1),N(M)))},D=M=>{M.pointerId===g.activePointerId&&g.isPressed&&M.button===0&&g.target&&((Yr(M,g.target)||g.isOverTarget)&&P(Nt(g.target,M),g.pointerType),g.isPressed=!1,g.isOverTarget=!1,g.activePointerId=null,g.pointerType=null,C(),u||Qo(g.target))},w=M=>{S(M)};A.onDragStart=M=>{M.currentTarget.contains(M.target)&&S(M)}}else{A.onMouseDown=w=>{if(w.button!==0||!w.currentTarget.contains(w.target))return;if(Ks(w.currentTarget)&&w.preventDefault(),g.ignoreEmulatedMouseEvents){w.stopPropagation();return}g.isPressed=!0,g.isOverTarget=!0,g.target=w.currentTarget,g.pointerType=Tn(w.nativeEvent)?"virtual":"mouse",!s&&!l&&tt(w.currentTarget),x(w,g.pointerType)&&w.stopPropagation(),b(vr(w.currentTarget),"mouseup",T,!1)},A.onMouseEnter=w=>{if(!w.currentTarget.contains(w.target))return;let M=!0;g.isPressed&&!g.ignoreEmulatedMouseEvents&&(g.isOverTarget=!0,M=x(w,g.pointerType)),M&&w.stopPropagation()},A.onMouseLeave=w=>{if(!w.currentTarget.contains(w.target))return;let M=!0;g.isPressed&&!g.ignoreEmulatedMouseEvents&&(g.isOverTarget=!1,M=P(w,g.pointerType,!1),N(w)),M&&w.stopPropagation()},A.onMouseUp=w=>{w.currentTarget.contains(w.target)&&!g.ignoreEmulatedMouseEvents&&w.button===0&&E(w,g.pointerType||"mouse")};let T=w=>{if(w.button===0){if(g.isPressed=!1,C(),g.ignoreEmulatedMouseEvents){g.ignoreEmulatedMouseEvents=!1;return}g.target&&(Yr(w,g.target)?P(Nt(g.target,w),g.pointerType):g.isOverTarget&&P(Nt(g.target,w),g.pointerType,!1),g.isOverTarget=!1)}};A.onTouchStart=w=>{if(!w.currentTarget.contains(w.target))return;let M=$1(w.nativeEvent);if(!M)return;g.activePointerId=M.identifier,g.ignoreEmulatedMouseEvents=!0,g.isOverTarget=!0,g.isPressed=!0,g.target=w.currentTarget,g.pointerType="touch",!s&&!l&&tt(w.currentTarget),u||yu(g.target),x(w,g.pointerType)&&w.stopPropagation(),b(zs(w.currentTarget),"scroll",D,!0)},A.onTouchMove=w=>{if(!w.currentTarget.contains(w.target))return;if(!g.isPressed){w.stopPropagation();return}let M=wu(w.nativeEvent,g.activePointerId),O=!0;M&&Yr(M,w.currentTarget)?g.isOverTarget||(g.isOverTarget=!0,O=x(w,g.pointerType)):g.isOverTarget&&(g.isOverTarget=!1,O=P(w,g.pointerType,!1),N(w)),O&&w.stopPropagation()},A.onTouchEnd=w=>{if(!w.currentTarget.contains(w.target))return;if(!g.isPressed){w.stopPropagation();return}let M=wu(w.nativeEvent,g.activePointerId),O=!0;M&&Yr(M,w.currentTarget)?(E(w,g.pointerType),O=P(w,g.pointerType)):g.isOverTarget&&(O=P(w,g.pointerType,!1)),O&&w.stopPropagation(),g.isPressed=!1,g.activePointerId=null,g.isOverTarget=!1,g.ignoreEmulatedMouseEvents=!0,!u&&g.target&&Qo(g.target),C()},A.onTouchCancel=w=>{w.currentTarget.contains(w.target)&&(w.stopPropagation(),g.isPressed&&S(w))};let D=w=>{g.isPressed&&w.target.contains(g.target)&&S({currentTarget:g.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};A.onDragStart=w=>{w.currentTarget.contains(w.target)&&S(w)}}return A},[b,s,l,C,u,S,N,P,x,E]);return f.useEffect(()=>()=>{!u&&y.current.target&&Qo(y.current.target)},[u]),{isPressed:i||p,pressProps:se(h,j)}}function Bs(e){return e.tagName==="A"&&e.hasAttribute("href")}function Rs(e,t){const{key:r,code:n}=e,o=t,a=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof zs(o).HTMLInputElement&&!Pu(o,r)||o instanceof zs(o).HTMLTextAreaElement||o.isContentEditable)&&!((a==="link"||!a&&Bs(o))&&r!=="Enter")}function $1(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function wu(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===t)return o}return null}function Nt(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function D1(e){let t=e.width?e.width/2:e.radiusX||0,r=e.height?e.height/2:e.radiusY||0;return{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function I1(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Yr(e,t){let r=t.getBoundingClientRect(),n=D1(e);return I1(r,n)}function Ks(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function Cu(e,t){return e instanceof HTMLInputElement?!Pu(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Bs(e)}var k1=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Pu(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":k1.has(e.type)}var Mu=e=>L.jsx("svg",{"aria-hidden":"true",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:L.jsx("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:"currentColor"})});const Tu=f.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Xo=f.createContext({}),Zo=f.createContext(null),Jo=typeof document<"u",Us=Jo?f.useLayoutEffect:f.useEffect,Eu=f.createContext({strict:!1}),Hs=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Su="data-"+Hs("framerAppearId");function A1(e,t,r,n){const{visualElement:o}=f.useContext(Xo),a=f.useContext(Eu),s=f.useContext(Zo),i=f.useContext(Tu).reducedMotion,l=f.useRef();n=n||a.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:o,props:r,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:i}));const c=l.current;f.useInsertionEffect(()=>{c&&c.update(r,s)});const u=f.useRef(!!(r[Su]&&!window.HandoffComplete));return Us(()=>{c&&(c.render(),u.current&&c.animationState&&c.animationState.animateChanges())}),f.useEffect(()=>{c&&(c.updateFeatures(),!u.current&&c.animationState&&c.animationState.animateChanges(),u.current&&(u.current=!1,window.HandoffComplete=!0))}),c}function Gr(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function O1(e,t,r){return f.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Gr(r)&&(r.current=n))},[t])}function kn(e){return typeof e=="string"||Array.isArray(e)}function ea(e){return typeof e=="object"&&typeof e.start=="function"}const Ys=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Gs=["initial",...Ys];function ta(e){return ea(e.animate)||Gs.some(t=>kn(e[t]))}function $u(e){return!!(ta(e)||e.variants)}function N1(e,t){if(ta(e)){const{initial:r,animate:n}=e;return{initial:r===!1||kn(r)?r:void 0,animate:kn(n)?n:void 0}}return e.inherit!==!1?t:{}}function L1(e){const{initial:t,animate:r}=N1(e,f.useContext(Xo));return f.useMemo(()=>({initial:t,animate:r}),[Du(t),Du(r)])}function Du(e){return Array.isArray(e)?e.join(" "):e}const Iu={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},An={};for(const e in Iu)An[e]={isEnabled:t=>Iu[e].some(r=>!!t[r])};function j1(e){for(const t in e)An[t]={...An[t],...e[t]}}const On=f.createContext({}),ku=f.createContext({}),_1=Symbol.for("motionComponentSymbol");function F1({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:o}){e&&j1(e);function a(i,l){let c;const u={...f.useContext(Tu),...i,layoutId:V1(i)},{isStatic:d}=u,h=L1(i),p=n(i,d);if(!d&&Jo){h.visualElement=A1(o,p,u,t);const m=f.useContext(ku),y=f.useContext(Eu).strict;h.visualElement&&(c=h.visualElement.loadFeatures(u,y,e,m))}return U.createElement(Xo.Provider,{value:h},c&&h.visualElement?U.createElement(c,{visualElement:h.visualElement,...u}):null,r(o,i,O1(p,h.visualElement,l),p,d,h.visualElement))}const s=f.forwardRef(a);return s[_1]=o,s}function V1({layoutId:e}){const t=f.useContext(On).id;return t&&e!==void 0?t+"-"+e:e}function z1(e){function t(n,o={}){return F1(e(n,o))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,o)=>(r.has(o)||r.set(o,t(o)),r.get(o))})}const W1=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function qs(e){return typeof e!="string"||e.includes("-")?!1:!!(W1.indexOf(e)>-1||/[A-Z]/.test(e))}const ra={};function B1(e){Object.assign(ra,e)}const Nn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],br=new Set(Nn);function Au(e,{layout:t,layoutId:r}){return br.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!ra[e]||e==="opacity")}const qe=e=>!!(e&&e.getVelocity),R1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},K1=Nn.length;function U1(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,o){let a="";for(let s=0;s<K1;s++){const i=Nn[s];if(e[i]!==void 0){const l=R1[i]||i;a+=`${l}(${e[i]}) `}}return t&&!e.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(e,n?"":a):r&&n&&(a="none"),a}const Ou=e=>t=>typeof t=="string"&&t.startsWith(e),Nu=Ou("--"),Qs=Ou("var(--"),H1=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,Y1=(e,t)=>t&&typeof e=="number"?t.transform(e):e,qt=(e,t,r)=>Math.min(Math.max(r,e),t),yr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ln={...yr,transform:e=>qt(0,1,e)},na={...yr,default:1},jn=e=>Math.round(e*1e5)/1e5,oa=/(-)?([\d]*\.?[\d])+/g,Lu=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,G1=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function _n(e){return typeof e=="string"}const Fn=e=>({test:t=>_n(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Qt=Fn("deg"),Tt=Fn("%"),ne=Fn("px"),q1=Fn("vh"),Q1=Fn("vw"),ju={...Tt,parse:e=>Tt.parse(e)/100,transform:e=>Tt.transform(e*100)},_u={...yr,transform:Math.round},Fu={borderWidth:ne,borderTopWidth:ne,borderRightWidth:ne,borderBottomWidth:ne,borderLeftWidth:ne,borderRadius:ne,radius:ne,borderTopLeftRadius:ne,borderTopRightRadius:ne,borderBottomRightRadius:ne,borderBottomLeftRadius:ne,width:ne,maxWidth:ne,height:ne,maxHeight:ne,size:ne,top:ne,right:ne,bottom:ne,left:ne,padding:ne,paddingTop:ne,paddingRight:ne,paddingBottom:ne,paddingLeft:ne,margin:ne,marginTop:ne,marginRight:ne,marginBottom:ne,marginLeft:ne,rotate:Qt,rotateX:Qt,rotateY:Qt,rotateZ:Qt,scale:na,scaleX:na,scaleY:na,scaleZ:na,skew:Qt,skewX:Qt,skewY:Qt,distance:ne,translateX:ne,translateY:ne,translateZ:ne,x:ne,y:ne,z:ne,perspective:ne,transformPerspective:ne,opacity:Ln,originX:ju,originY:ju,originZ:ne,zIndex:_u,fillOpacity:Ln,strokeOpacity:Ln,numOctaves:_u};function Xs(e,t,r,n){const{style:o,vars:a,transform:s,transformOrigin:i}=e;let l=!1,c=!1,u=!0;for(const d in t){const h=t[d];if(Nu(d)){a[d]=h;continue}const p=Fu[d],m=Y1(h,p);if(br.has(d)){if(l=!0,s[d]=m,!u)continue;h!==(p.default||0)&&(u=!1)}else d.startsWith("origin")?(c=!0,i[d]=m):o[d]=m}if(t.transform||(l||n?o.transform=U1(e.transform,r,u,n):o.transform&&(o.transform="none")),c){const{originX:d="50%",originY:h="50%",originZ:p=0}=i;o.transformOrigin=`${d} ${h} ${p}`}}const Zs=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Vu(e,t,r){for(const n in t)!qe(t[n])&&!Au(n,r)&&(e[n]=t[n])}function X1({transformTemplate:e},t,r){return f.useMemo(()=>{const n=Zs();return Xs(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function Z1(e,t,r){const n=e.style||{},o={};return Vu(o,n,e),Object.assign(o,X1(e,t,r)),e.transformValues?e.transformValues(o):o}function J1(e,t,r){const n={},o=Z1(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const ev=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function aa(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||ev.has(e)}let zu=e=>!aa(e);function tv(e){e&&(zu=t=>t.startsWith("on")?!aa(t):e(t))}try{tv(require("@emotion/is-prop-valid").default)}catch{}function rv(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||(zu(o)||r===!0&&aa(o)||!t&&!aa(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}function Wu(e,t,r){return typeof e=="string"?e:ne.transform(t+r*e)}function nv(e,t,r){const n=Wu(t,e.x,e.width),o=Wu(r,e.y,e.height);return`${n} ${o}`}const ov={offset:"stroke-dashoffset",array:"stroke-dasharray"},av={offset:"strokeDashoffset",array:"strokeDasharray"};function sv(e,t,r=1,n=0,o=!0){e.pathLength=1;const a=o?ov:av;e[a.offset]=ne.transform(-n);const s=ne.transform(t),i=ne.transform(r);e[a.array]=`${s} ${i}`}function Js(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:a,pathLength:s,pathSpacing:i=1,pathOffset:l=0,...c},u,d,h){if(Xs(e,c,u,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:m,dimensions:y}=e;p.transform&&(y&&(m.transform=p.transform),delete p.transform),y&&(o!==void 0||a!==void 0||m.transform)&&(m.transformOrigin=nv(y,o!==void 0?o:.5,a!==void 0?a:.5)),t!==void 0&&(p.x=t),r!==void 0&&(p.y=r),n!==void 0&&(p.scale=n),s!==void 0&&sv(p,s,i,l,!1)}const Bu=()=>({...Zs(),attrs:{}}),ei=e=>typeof e=="string"&&e.toLowerCase()==="svg";function iv(e,t,r,n){const o=f.useMemo(()=>{const a=Bu();return Js(a,t,{enableHardwareAcceleration:!1},ei(n),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};Vu(a,e.style,e),o.style={...a,...o.style}}return o}function lv(e=!1){return(r,n,o,{latestValues:a},s)=>{const l=(qs(r)?iv:J1)(n,a,s,r),u={...rv(n,typeof r=="string",e),...l,ref:o},{children:d}=n,h=f.useMemo(()=>qe(d)?d.get():d,[d]);return f.createElement(r,{...u,children:h})}}function Ru(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(const a in r)e.style.setProperty(a,r[a])}const Ku=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Uu(e,t,r,n){Ru(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(Ku.has(o)?o:Hs(o),t.attrs[o])}function ti(e,t){const{style:r}=e,n={};for(const o in r)(qe(r[o])||t.style&&qe(t.style[o])||Au(o,e))&&(n[o]=r[o]);return n}function Hu(e,t){const r=ti(e,t);for(const n in e)if(qe(e[n])||qe(t[n])){const o=Nn.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[o]=e[n]}return r}function ri(e,t,r,n={},o={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),t}function Yu(e){const t=f.useRef(null);return t.current===null&&(t.current=e()),t.current}const sa=e=>Array.isArray(e),cv=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),uv=e=>sa(e)?e[e.length-1]||0:e;function ia(e){const t=qe(e)?e.get():e;return cv(t)?t.toValue():t}function dv({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,a){const s={latestValues:fv(n,o,a,e),renderState:t()};return r&&(s.mount=i=>r(n,i,s)),s}const Gu=e=>(t,r)=>{const n=f.useContext(Xo),o=f.useContext(Zo),a=()=>dv(e,t,n,o);return r?a():Yu(a)};function fv(e,t,r,n){const o={},a=n(e,{});for(const h in a)o[h]=ia(a[h]);let{initial:s,animate:i}=e;const l=ta(e),c=$u(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),i===void 0&&(i=t.animate));let u=r?r.initial===!1:!1;u=u||s===!1;const d=u?i:s;return d&&typeof d!="boolean"&&!ea(d)&&(Array.isArray(d)?d:[d]).forEach(p=>{const m=ri(e,p);if(!m)return;const{transitionEnd:y,transition:b,...C}=m;for(const x in C){let P=C[x];if(Array.isArray(P)){const E=u?P.length-1:0;P=P[E]}P!==null&&(o[x]=P)}for(const x in y)o[x]=y[x]}),o}const Le=e=>e;class qu{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function pv(e){let t=new qu,r=new qu,n=0,o=!1,a=!1;const s=new WeakSet,i={schedule:(l,c=!1,u=!1)=>{const d=u&&o,h=d?t:r;return c&&s.add(l),h.add(l)&&d&&o&&(n=t.order.length),l},cancel:l=>{r.remove(l),s.delete(l)},process:l=>{if(o){a=!0;return}if(o=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let c=0;c<n;c++){const u=t.order[c];u(l),s.has(u)&&(i.schedule(u),e())}o=!1,a&&(a=!1,i.process(l))}};return i}const la=["prepare","read","update","preRender","render","postRender"],hv=40;function mv(e,t){let r=!1,n=!0;const o={delta:0,timestamp:0,isProcessing:!1},a=la.reduce((d,h)=>(d[h]=pv(()=>r=!0),d),{}),s=d=>a[d].process(o),i=()=>{const d=performance.now();r=!1,o.delta=n?1e3/60:Math.max(Math.min(d-o.timestamp,hv),1),o.timestamp=d,o.isProcessing=!0,la.forEach(s),o.isProcessing=!1,r&&t&&(n=!1,e(i))},l=()=>{r=!0,n=!0,o.isProcessing||e(i)};return{schedule:la.reduce((d,h)=>{const p=a[h];return d[h]=(m,y=!1,b=!1)=>(r||l(),p.schedule(m,y,b)),d},{}),cancel:d=>la.forEach(h=>a[h].cancel(d)),state:o,steps:a}}const{schedule:Se,cancel:Lt,state:Re,steps:ni}=mv(typeof requestAnimationFrame<"u"?requestAnimationFrame:Le,!0),gv={useVisualState:Gu({scrapeMotionValuesFromProps:Hu,createRenderState:Bu,onMount:(e,t,{renderState:r,latestValues:n})=>{Se.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),Se.render(()=>{Js(r,n,{enableHardwareAcceleration:!1},ei(t.tagName),e.transformTemplate),Uu(t,r)})}})},vv={useVisualState:Gu({scrapeMotionValuesFromProps:ti,createRenderState:Zs})};function bv(e,{forwardMotionProps:t=!1},r,n){return{...qs(e)?gv:vv,preloadedFeatures:r,useRender:lv(t),createVisualElement:n,Component:e}}function jt(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const Qu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function ca(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const yv=e=>t=>Qu(t)&&e(t,ca(t));function _t(e,t,r,n){return jt(e,t,yv(r),n)}const xv=(e,t)=>r=>t(e(r)),Xt=(...e)=>e.reduce(xv);function Xu(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const Zu=Xu("dragHorizontal"),Ju=Xu("dragVertical");function ed(e){let t=!1;if(e==="y")t=Ju();else if(e==="x")t=Zu();else{const r=Zu(),n=Ju();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function td(){const e=ed(!0);return e?(e(),!1):!0}class Zt{constructor(t){this.isMounted=!1,this.node=t}update(){}}function rd(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),o=(a,s)=>{if(a.type==="touch"||td())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[n]&&Se.update(()=>i[n](a,s))};return _t(e.current,r,o,{passive:!e.getProps()[n]})}class wv extends Zt{mount(){this.unmount=Xt(rd(this.node,!0),rd(this.node,!1))}unmount(){}}class Cv extends Zt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Xt(jt(this.node.current,"focus",()=>this.onFocus()),jt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const nd=(e,t)=>t?e===t?!0:nd(e,t.parentElement):!1;function oi(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,ca(r))}class Pv extends Zt{constructor(){super(...arguments),this.removeStartListeners=Le,this.removeEndListeners=Le,this.removeAccessibleListeners=Le,this.startPointerPress=(t,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),a=_t(window,"pointerup",(i,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u}=this.node.getProps();Se.update(()=>{nd(this.node.current,i.target)?c&&c(i,l):u&&u(i,l)})},{passive:!(n.onTap||n.onPointerUp)}),s=_t(window,"pointercancel",(i,l)=>this.cancelPress(i,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Xt(a,s),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=a=>{if(a.key!=="Enter"||this.isPressing)return;const s=i=>{i.key!=="Enter"||!this.checkPressEnd()||oi("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&Se.update(()=>u(l,c))})};this.removeEndListeners(),this.removeEndListeners=jt(this.node.current,"keyup",s),oi("down",(i,l)=>{this.startPress(i,l)})},r=jt(this.node.current,"keydown",t),n=()=>{this.isPressing&&oi("cancel",(a,s)=>this.cancelPress(a,s))},o=jt(this.node.current,"blur",n);this.removeAccessibleListeners=Xt(r,o)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Se.update(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!td()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Se.update(()=>n(t,r))}mount(){const t=this.node.getProps(),r=_t(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=jt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Xt(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const ai=new WeakMap,si=new WeakMap,Mv=e=>{const t=ai.get(e.target);t&&t(e)},Tv=e=>{e.forEach(Mv)};function Ev({root:e,...t}){const r=e||document;si.has(r)||si.set(r,{});const n=si.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(Tv,{root:e,...t})),n[o]}function Sv(e,t,r){const n=Ev(t);return ai.set(e,r),n.observe(e),()=>{ai.delete(e),n.unobserve(e)}}const $v={some:0,all:1};class Dv extends Zt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:o="some",once:a}=t,s={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:$v[o]},i=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,a&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),h=c?u:d;h&&h(l)};return Sv(this.node.current,s,i)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(Iv(t,r))&&this.startObserver()}unmount(){}}function Iv({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const kv={inView:{Feature:Dv},tap:{Feature:Pv},focus:{Feature:Cv},hover:{Feature:wv}};function od(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function Av(e){const t={};return e.values.forEach((r,n)=>t[n]=r.get()),t}function Ov(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function ua(e,t,r){const n=e.getProps();return ri(n,t,r!==void 0?r:n.custom,Av(e),Ov(e))}let Vn=Le,bt=Le;process.env.NODE_ENV!=="production"&&(Vn=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},bt=(e,t)=>{if(!e)throw new Error(t)});const Jt=e=>e*1e3,Ft=e=>e/1e3,Nv={current:!1},ad=e=>Array.isArray(e)&&typeof e[0]=="number";function sd(e){return!!(!e||typeof e=="string"&&id[e]||ad(e)||Array.isArray(e)&&e.every(sd))}const zn=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,id={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zn([0,.65,.55,1]),circOut:zn([.55,0,1,.45]),backIn:zn([.31,.01,.66,-.59]),backOut:zn([.33,1.53,.69,.99])};function ld(e){if(e)return ad(e)?zn(e):Array.isArray(e)?e.map(ld):id[e]}function Lv(e,t,r,{delay:n=0,duration:o,repeat:a=0,repeatType:s="loop",ease:i,times:l}={}){const c={[t]:r};l&&(c.offset=l);const u=ld(i);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:n,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"})}function jv(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const cd=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,_v=1e-7,Fv=12;function Vv(e,t,r,n,o){let a,s,i=0;do s=t+(r-t)/2,a=cd(s,n,o)-e,a>0?r=s:t=s;while(Math.abs(a)>_v&&++i<Fv);return s}function Wn(e,t,r,n){if(e===t&&r===n)return Le;const o=a=>Vv(a,0,1,e,r);return a=>a===0||a===1?a:cd(o(a),t,n)}const zv=Wn(.42,0,1,1),Wv=Wn(0,0,.58,1),ud=Wn(.42,0,.58,1),Bv=e=>Array.isArray(e)&&typeof e[0]!="number",dd=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,fd=e=>t=>1-e(1-t),ii=e=>1-Math.sin(Math.acos(e)),pd=fd(ii),Rv=dd(ii),hd=Wn(.33,1.53,.69,.99),li=fd(hd),Kv=dd(li),md={linear:Le,easeIn:zv,easeInOut:ud,easeOut:Wv,circIn:ii,circInOut:Rv,circOut:pd,backIn:li,backInOut:Kv,backOut:hd,anticipate:e=>(e*=2)<1?.5*li(e):.5*(2-Math.pow(2,-10*(e-1)))},gd=e=>{if(Array.isArray(e)){bt(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,r,n,o]=e;return Wn(t,r,n,o)}else if(typeof e=="string")return bt(md[e]!==void 0,`Invalid easing type '${e}'`),md[e];return e},ci=(e,t)=>r=>!!(_n(r)&&G1.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),vd=(e,t,r)=>n=>{if(!_n(n))return n;const[o,a,s,i]=n.match(oa);return{[e]:parseFloat(o),[t]:parseFloat(a),[r]:parseFloat(s),alpha:i!==void 0?parseFloat(i):1}},Uv=e=>qt(0,255,e),ui={...yr,transform:e=>Math.round(Uv(e))},xr={test:ci("rgb","red"),parse:vd("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+ui.transform(e)+", "+ui.transform(t)+", "+ui.transform(r)+", "+jn(Ln.transform(n))+")"};function Hv(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const di={test:ci("#"),parse:Hv,transform:xr.transform},qr={test:ci("hsl","hue"),parse:vd("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Tt.transform(jn(t))+", "+Tt.transform(jn(r))+", "+jn(Ln.transform(n))+")"},Ue={test:e=>xr.test(e)||di.test(e)||qr.test(e),parse:e=>xr.test(e)?xr.parse(e):qr.test(e)?qr.parse(e):di.parse(e),transform:e=>_n(e)?e:e.hasOwnProperty("red")?xr.transform(e):qr.transform(e)},Ne=(e,t,r)=>-r*e+r*t+e;function fi(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Yv({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,a=0,s=0;if(!t)o=a=s=r;else{const i=r<.5?r*(1+t):r+t-r*t,l=2*r-i;o=fi(l,i,e+1/3),a=fi(l,i,e),s=fi(l,i,e-1/3)}return{red:Math.round(o*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:n}}const pi=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},Gv=[di,xr,qr],qv=e=>Gv.find(t=>t.test(e));function bd(e){const t=qv(e);bt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===qr&&(r=Yv(r)),r}const yd=(e,t)=>{const r=bd(e),n=bd(t),o={...r};return a=>(o.red=pi(r.red,n.red,a),o.green=pi(r.green,n.green,a),o.blue=pi(r.blue,n.blue,a),o.alpha=Ne(r.alpha,n.alpha,a),xr.transform(o))};function Qv(e){var t,r;return isNaN(e)&&_n(e)&&(((t=e.match(oa))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(Lu))===null||r===void 0?void 0:r.length)||0)>0}const xd={regex:H1,countKey:"Vars",token:"${v}",parse:Le},wd={regex:Lu,countKey:"Colors",token:"${c}",parse:Ue.parse},Cd={regex:oa,countKey:"Numbers",token:"${n}",parse:yr.parse};function hi(e,{regex:t,countKey:r,token:n,parse:o}){const a=e.tokenised.match(t);a&&(e["num"+r]=a.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...a.map(o)))}function da(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&hi(r,xd),hi(r,wd),hi(r,Cd),r}function Pd(e){return da(e).values}function Md(e){const{values:t,numColors:r,numVars:n,tokenised:o}=da(e),a=t.length;return s=>{let i=o;for(let l=0;l<a;l++)l<n?i=i.replace(xd.token,s[l]):l<n+r?i=i.replace(wd.token,Ue.transform(s[l])):i=i.replace(Cd.token,jn(s[l]));return i}}const Xv=e=>typeof e=="number"?0:e;function Zv(e){const t=Pd(e);return Md(e)(t.map(Xv))}const er={test:Qv,parse:Pd,createTransformer:Md,getAnimatableNone:Zv},Td=(e,t)=>r=>`${r>0?t:e}`;function Ed(e,t){return typeof e=="number"?r=>Ne(e,t,r):Ue.test(e)?yd(e,t):e.startsWith("var(")?Td(e,t):$d(e,t)}const Sd=(e,t)=>{const r=[...e],n=r.length,o=e.map((a,s)=>Ed(a,t[s]));return a=>{for(let s=0;s<n;s++)r[s]=o[s](a);return r}},Jv=(e,t)=>{const r={...e,...t},n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=Ed(e[o],t[o]));return o=>{for(const a in n)r[a]=n[a](o);return r}},$d=(e,t)=>{const r=er.createTransformer(t),n=da(e),o=da(t);return n.numVars===o.numVars&&n.numColors===o.numColors&&n.numNumbers>=o.numNumbers?Xt(Sd(n.values,o.values),r):(Vn(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Td(e,t))},Bn=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},Dd=(e,t)=>r=>Ne(e,t,r);function eb(e){return typeof e=="number"?Dd:typeof e=="string"?Ue.test(e)?yd:$d:Array.isArray(e)?Sd:typeof e=="object"?Jv:Dd}function tb(e,t,r){const n=[],o=r||eb(e[0]),a=e.length-1;for(let s=0;s<a;s++){let i=o(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||Le:t;i=Xt(l,i)}n.push(i)}return n}function Id(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const a=e.length;if(bt(a===t.length,"Both input and output ranges must be the same length"),a===1)return()=>t[0];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=tb(t,n,o),i=s.length,l=c=>{let u=0;if(i>1)for(;u<e.length-2&&!(c<e[u+1]);u++);const d=Bn(e[u],e[u+1],c);return s[u](d)};return r?c=>l(qt(e[0],e[a-1],c)):l}function rb(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=Bn(0,t,n);e.push(Ne(r,1,o))}}function nb(e){const t=[0];return rb(t,e.length-1),t}function ob(e,t){return e.map(r=>r*t)}function ab(e,t){return e.map(()=>t||ud).splice(0,e.length-1)}function fa({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=Bv(n)?n.map(gd):gd(n),a={done:!1,value:t[0]},s=ob(r&&r.length===t.length?r:nb(t),e),i=Id(s,t,{ease:Array.isArray(o)?o:ab(t,o)});return{calculatedDuration:e,next:l=>(a.value=i(l),a.done=l>=e,a)}}function kd(e,t){return t?e*(1e3/t):0}const sb=5;function Ad(e,t,r){const n=Math.max(t-sb,0);return kd(r-e(n),t-n)}const mi=.001,ib=.01,Od=10,lb=.05,cb=1;function ub({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,a;Vn(e<=Jt(Od),"Spring duration must be 10 seconds or less");let s=1-t;s=qt(lb,cb,s),e=qt(ib,Od,Ft(e)),s<1?(o=c=>{const u=c*s,d=u*e,h=u-r,p=gi(c,s),m=Math.exp(-d);return mi-h/p*m},a=c=>{const d=c*s*e,h=d*r+r,p=Math.pow(s,2)*Math.pow(c,2)*e,m=Math.exp(-d),y=gi(Math.pow(c,2),s);return(-o(c)+mi>0?-1:1)*((h-p)*m)/y}):(o=c=>{const u=Math.exp(-c*e),d=(c-r)*e+1;return-mi+u*d},a=c=>{const u=Math.exp(-c*e),d=(r-c)*(e*e);return u*d});const i=5/e,l=fb(o,a,i);if(e=Jt(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*n;return{stiffness:c,damping:s*2*Math.sqrt(n*c),duration:e}}}const db=12;function fb(e,t,r){let n=r;for(let o=1;o<db;o++)n=n-e(n)/t(n);return n}function gi(e,t){return e*Math.sqrt(1-t*t)}const pb=["duration","bounce"],hb=["stiffness","damping","mass"];function Nd(e,t){return t.some(r=>e[r]!==void 0)}function mb(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Nd(e,hb)&&Nd(e,pb)){const r=ub(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function Ld({keyframes:e,restDelta:t,restSpeed:r,...n}){const o=e[0],a=e[e.length-1],s={done:!1,value:o},{stiffness:i,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:h}=mb(n),p=u?-Ft(u):0,m=l/(2*Math.sqrt(i*c)),y=a-o,b=Ft(Math.sqrt(i/c)),C=Math.abs(y)<5;r||(r=C?.01:2),t||(t=C?.005:.5);let x;if(m<1){const P=gi(b,m);x=E=>{const S=Math.exp(-m*b*E);return a-S*((p+m*b*y)/P*Math.sin(P*E)+y*Math.cos(P*E))}}else if(m===1)x=P=>a-Math.exp(-b*P)*(y+(p+b*y)*P);else{const P=b*Math.sqrt(m*m-1);x=E=>{const S=Math.exp(-m*b*E),N=Math.min(P*E,300);return a-S*((p+m*b*y)*Math.sinh(N)+P*y*Math.cosh(N))/P}}return{calculatedDuration:h&&d||null,next:P=>{const E=x(P);if(h)s.done=P>=d;else{let S=p;P!==0&&(m<1?S=Ad(x,P,E):S=0);const N=Math.abs(S)<=r,j=Math.abs(a-E)<=t;s.done=N&&j}return s.value=s.done?a:E,s}}}function jd({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:s,min:i,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},p=g=>i!==void 0&&g<i||l!==void 0&&g>l,m=g=>i===void 0?l:l===void 0||Math.abs(i-g)<Math.abs(l-g)?i:l;let y=r*t;const b=d+y,C=s===void 0?b:s(b);C!==b&&(y=C-d);const x=g=>-y*Math.exp(-g/n),P=g=>C+x(g),E=g=>{const A=x(g),I=P(g);h.done=Math.abs(A)<=c,h.value=h.done?C:I};let S,N;const j=g=>{p(h.value)&&(S=g,N=Ld({keyframes:[h.value,m(h.value)],velocity:Ad(P,g,h.value),damping:o,stiffness:a,restDelta:c,restSpeed:u}))};return j(0),{calculatedDuration:null,next:g=>{let A=!1;return!N&&S===void 0&&(A=!0,E(g),j(g)),S!==void 0&&g>S?N.next(g-S):(!A&&E(g),h)}}}const gb=e=>{const t=({timestamp:r})=>e(r);return{start:()=>Se.update(t,!0),stop:()=>Lt(t),now:()=>Re.isProcessing?Re.timestamp:performance.now()}},_d=2e4;function Fd(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<_d;)t+=r,n=e.next(t);return t>=_d?1/0:t}const vb={decay:jd,inertia:jd,tween:fa,keyframes:fa,spring:Ld};function pa({autoplay:e=!0,delay:t=0,driver:r=gb,keyframes:n,type:o="keyframes",repeat:a=0,repeatDelay:s=0,repeatType:i="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...h}){let p=1,m=!1,y,b;const C=()=>{b=new Promise(R=>{y=R})};C();let x;const P=vb[o]||fa;let E;P!==fa&&typeof n[0]!="number"&&(E=Id([0,100],n,{clamp:!1}),n=[0,100]);const S=P({...h,keyframes:n});let N;i==="mirror"&&(N=P({...h,keyframes:[...n].reverse(),velocity:-(h.velocity||0)}));let j="idle",g=null,A=null,I=null;S.calculatedDuration===null&&a&&(S.calculatedDuration=Fd(S));const{calculatedDuration:T}=S;let D=1/0,w=1/0;T!==null&&(D=T+s,w=D*(a+1)-s);let M=0;const O=R=>{if(A===null)return;p>0&&(A=Math.min(A,R)),p<0&&(A=Math.min(R-w/p,A)),g!==null?M=g:M=Math.round(R-A)*p;const re=M-t*(p>=0?1:-1),H=p>=0?re<0:re>w;M=Math.max(re,0),j==="finished"&&g===null&&(M=w);let ie=M,ee=S;if(a){const fe=M/D;let de=Math.floor(fe),pe=fe%1;!pe&&fe>=1&&(pe=1),pe===1&&de--,de=Math.min(de,a+1);const Te=!!(de%2);Te&&(i==="reverse"?(pe=1-pe,s&&(pe-=s/D)):i==="mirror"&&(ee=N));let Ee=qt(0,1,pe);M>w&&(Ee=i==="reverse"&&Te?1:0),ie=Ee*D}const te=H?{done:!1,value:n[0]}:ee.next(ie);E&&(te.value=E(te.value));let{done:ve}=te;!H&&T!==null&&(ve=p>=0?M>=w:M<=0);const be=g===null&&(j==="finished"||j==="running"&&ve);return d&&d(te.value),be&&V(),te},F=()=>{x&&x.stop(),x=void 0},$=()=>{j="idle",F(),y(),C(),A=I=null},V=()=>{j="finished",u&&u(),F(),y()},Y=()=>{if(m)return;x||(x=r(O));const R=x.now();l&&l(),g!==null?A=R-g:(!A||j==="finished")&&(A=R),j==="finished"&&C(),I=A,g=null,j="running",x.start()};e&&Y();const K={then(R,re){return b.then(R,re)},get time(){return Ft(M)},set time(R){R=Jt(R),M=R,g!==null||!x||p===0?g=R:A=x.now()-R/p},get duration(){const R=S.calculatedDuration===null?Fd(S):S.calculatedDuration;return Ft(R)},get speed(){return p},set speed(R){R===p||!x||(p=R,K.time=Ft(M))},get state(){return j},play:Y,pause:()=>{j="paused",g=M},stop:()=>{m=!0,j!=="idle"&&(j="idle",c&&c(),$())},cancel:()=>{I!==null&&O(I),$()},complete:()=>{j="finished"},sample:R=>(A=0,O(R))};return K}function bb(e){let t;return()=>(t===void 0&&(t=e()),t)}const yb=bb(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),xb=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ha=10,wb=2e4,Cb=(e,t)=>t.type==="spring"||e==="backgroundColor"||!sd(t.ease);function Pb(e,t,{onUpdate:r,onComplete:n,...o}){if(!(yb()&&xb.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let s=!1,i,l;const c=()=>{l=new Promise(x=>{i=x})};c();let{keyframes:u,duration:d=300,ease:h,times:p}=o;if(Cb(t,o)){const x=pa({...o,repeat:0,delay:0});let P={done:!1,value:u[0]};const E=[];let S=0;for(;!P.done&&S<wb;)P=x.sample(S),E.push(P.value),S+=ha;p=void 0,u=E,d=S-ha,h="linear"}const m=Lv(e.owner.current,t,u,{...o,duration:d,ease:h,times:p}),y=()=>m.cancel(),b=()=>{Se.update(y),i(),c()};return m.onfinish=()=>{e.set(jv(u,o)),n&&n(),b()},{then(x,P){return l.then(x,P)},attachTimeline(x){return m.timeline=x,m.onfinish=null,Le},get time(){return Ft(m.currentTime||0)},set time(x){m.currentTime=Jt(x)},get speed(){return m.playbackRate},set speed(x){m.playbackRate=x},get duration(){return Ft(d)},play:()=>{s||(m.play(),Lt(y))},pause:()=>m.pause(),stop:()=>{if(s=!0,m.playState==="idle")return;const{currentTime:x}=m;if(x){const P=pa({...o,autoplay:!1});e.setWithVelocity(P.sample(x-ha).value,P.sample(x).value,ha)}b()},complete:()=>m.finish(),cancel:b}}function Mb({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const o=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:Le,pause:Le,stop:Le,then:a=>(a(),Promise.resolve()),cancel:Le,complete:Le});return t?pa({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const Tb={type:"spring",stiffness:500,damping:25,restSpeed:10},Eb=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Sb={type:"keyframes",duration:.8},$b={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Db=(e,{keyframes:t})=>t.length>2?Sb:br.has(e)?e.startsWith("scale")?Eb(t[1]):Tb:$b,vi=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(er.test(t)||t==="0")&&!t.startsWith("url(")),Ib=new Set(["brightness","contrast","saturate","opacity"]);function kb(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(oa)||[];if(!n)return e;const o=r.replace(n,"");let a=Ib.has(t)?1:0;return n!==r&&(a*=100),t+"("+a+o+")"}const Ab=/([a-z-]*)\(.*?\)/g,bi={...er,getAnimatableNone:e=>{const t=e.match(Ab);return t?t.map(kb).join(" "):e}},Ob={...Fu,color:Ue,backgroundColor:Ue,outlineColor:Ue,fill:Ue,stroke:Ue,borderColor:Ue,borderTopColor:Ue,borderRightColor:Ue,borderBottomColor:Ue,borderLeftColor:Ue,filter:bi,WebkitFilter:bi},yi=e=>Ob[e];function Vd(e,t){let r=yi(e);return r!==bi&&(r=er),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const zd=e=>/^0[^.\s]+$/.test(e);function Nb(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||zd(e)}function Lb(e,t,r,n){const o=vi(t,r);let a;Array.isArray(r)?a=[...r]:a=[null,r];const s=n.from!==void 0?n.from:e.get();let i;const l=[];for(let c=0;c<a.length;c++)a[c]===null&&(a[c]=c===0?s:a[c-1]),Nb(a[c])&&l.push(c),typeof a[c]=="string"&&a[c]!=="none"&&a[c]!=="0"&&(i=a[c]);if(o&&l.length&&i)for(let c=0;c<l.length;c++){const u=l[c];a[u]=Vd(t,i)}return a}function jb({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:a,repeatType:s,repeatDelay:i,from:l,elapsed:c,...u}){return!!Object.keys(u).length}function xi(e,t){return e[t]||e.default||e}const wi=(e,t,r,n={})=>o=>{const a=xi(n,e)||{},s=a.delay||n.delay||0;let{elapsed:i=0}=n;i=i-Jt(s);const l=Lb(t,e,r,a),c=l[0],u=l[l.length-1],d=vi(e,c),h=vi(e,u);Vn(d===h,`You are trying to animate ${e} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...a,delay:-i,onUpdate:m=>{t.set(m),a.onUpdate&&a.onUpdate(m)},onComplete:()=>{o(),a.onComplete&&a.onComplete()}};if(jb(a)||(p={...p,...Db(e,p)}),p.duration&&(p.duration=Jt(p.duration)),p.repeatDelay&&(p.repeatDelay=Jt(p.repeatDelay)),!d||!h||Nv.current||a.type===!1)return Mb(p);if(!n.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const m=Pb(t,e,p);if(m)return m}return pa(p)};function ma(e){return!!(qe(e)&&e.add)}const Wd=e=>/^\-?\d*\.?\d+$/.test(e);function Ci(e,t){e.indexOf(t)===-1&&e.push(t)}function Pi(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class Mi{constructor(){this.subscriptions=[]}add(t){return Ci(this.subscriptions,t),()=>Pi(this.subscriptions,t)}notify(t,r,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let a=0;a<o;a++){const s=this.subscriptions[a];s&&s(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Bd=new Set;function Ti(e,t,r){e||Bd.has(t)||(console.warn(t),r&&console.warn(r),Bd.add(t))}const _b=e=>!isNaN(parseFloat(e));class Fb{constructor(t,r={}){this.version="10.16.16",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,o=!0)=>{this.prev=this.current,this.current=n;const{delta:a,timestamp:s}=Re;this.lastUpdated!==s&&(this.timeDelta=a,this.lastUpdated=s,Se.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Se.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=_b(this.current),this.owner=r.owner}onChange(t){return process.env.NODE_ENV!=="production"&&Ti(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Mi);const n=this.events[t].add(r);return t==="change"?()=>{n(),Se.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?kd(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Qr(e,t){return new Fb(e,t)}const Rd=e=>t=>t.test(e),Kd=[yr,ne,Tt,Qt,Q1,q1,{test:e=>e==="auto",parse:e=>e}],Rn=e=>Kd.find(Rd(e)),Vb=[...Kd,Ue,er],zb=e=>Vb.find(Rd(e));function Wb(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Qr(r))}function Bb(e,t){const r=ua(e,t);let{transitionEnd:n={},transition:o={},...a}=r?e.makeTargetAnimatable(r,!1):{};a={...a,...n};for(const s in a){const i=uv(a[s]);Wb(e,s,i)}}function Rb(e,t,r){var n,o;const a=Object.keys(t).filter(i=>!e.hasValue(i)),s=a.length;if(s)for(let i=0;i<s;i++){const l=a[i],c=t[l];let u=null;Array.isArray(c)&&(u=c[0]),u===null&&(u=(o=(n=r[l])!==null&&n!==void 0?n:e.readValue(l))!==null&&o!==void 0?o:t[l]),u!=null&&(typeof u=="string"&&(Wd(u)||zd(u))?u=parseFloat(u):!zb(u)&&er.test(c)&&(u=Vd(l,c)),e.addValue(l,Qr(u,{owner:e})),r[l]===void 0&&(r[l]=u),u!==null&&e.setBaseTarget(l,u))}}function Kb(e,t){return t?(t[e]||t.default||t).from:void 0}function Ub(e,t,r){const n={};for(const o in e){const a=Kb(o,t);if(a!==void 0)n[o]=a;else{const s=r.getValue(o);s&&(n[o]=s.get())}}return n}function Hb({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function Yb(e,t){const r=e.get();if(Array.isArray(t)){for(let n=0;n<t.length;n++)if(t[n]!==r)return!0}else return r!==t}function Ud(e,t,{delay:r=0,transitionOverride:n,type:o}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...i}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");n&&(a=n);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const d in i){const h=e.getValue(d),p=i[d];if(!h||p===void 0||u&&Hb(u,d))continue;const m={delay:r,elapsed:0,...xi(a||{},d)};if(window.HandoffAppearAnimations){const C=e.getProps()[Su];if(C){const x=window.HandoffAppearAnimations(C,d,h,Se);x!==null&&(m.elapsed=x,m.isHandoff=!0)}}let y=!m.isHandoff&&!Yb(h,p);if(m.type==="spring"&&(h.getVelocity()||m.velocity)&&(y=!1),h.animation&&(y=!1),y)continue;h.start(wi(d,h,p,e.shouldReduceMotion&&br.has(d)?{type:!1}:m));const b=h.animation;ma(l)&&(l.add(d),b.then(()=>l.remove(d))),c.push(b)}return s&&Promise.all(c).then(()=>{s&&Bb(e,s)}),c}function Ei(e,t,r={}){const n=ua(e,t,r.custom);let{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);const a=n?()=>Promise.all(Ud(e,n,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=o;return Gb(e,t,c+l,u,d,r)}:()=>Promise.resolve(),{when:i}=o;if(i){const[l,c]=i==="beforeChildren"?[a,s]:[s,a];return l().then(()=>c())}else return Promise.all([a(),s(r.delay)])}function Gb(e,t,r=0,n=0,o=1,a){const s=[],i=(e.variantChildren.size-1)*n,l=o===1?(c=0)=>c*n:(c=0)=>i-c*n;return Array.from(e.variantChildren).sort(qb).forEach((c,u)=>{c.notify("AnimationStart",t),s.push(Ei(c,t,{...a,delay:r+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function qb(e,t){return e.sortNodePosition(t)}function Qb(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const o=t.map(a=>Ei(e,a,r));n=Promise.all(o)}else if(typeof t=="string")n=Ei(e,t,r);else{const o=typeof t=="function"?ua(e,t,r.custom):t;n=Promise.all(Ud(e,o,r))}return n.then(()=>e.notify("AnimationComplete",t))}const Xb=[...Ys].reverse(),Zb=Ys.length;function Jb(e){return t=>Promise.all(t.map(({animation:r,options:n})=>Qb(e,r,n)))}function ey(e){let t=Jb(e);const r=ry();let n=!0;const o=(l,c)=>{const u=ua(e,c);if(u){const{transition:d,transitionEnd:h,...p}=u;l={...l,...p,...h}}return l};function a(l){t=l(e)}function s(l,c){const u=e.getProps(),d=e.getVariantContext(!0)||{},h=[],p=new Set;let m={},y=1/0;for(let C=0;C<Zb;C++){const x=Xb[C],P=r[x],E=u[x]!==void 0?u[x]:d[x],S=kn(E),N=x===c?P.isActive:null;N===!1&&(y=C);let j=E===d[x]&&E!==u[x]&&S;if(j&&n&&e.manuallyAnimateOnMount&&(j=!1),P.protectedKeys={...m},!P.isActive&&N===null||!E&&!P.prevProp||ea(E)||typeof E=="boolean")continue;const g=ty(P.prevProp,E);let A=g||x===c&&P.isActive&&!j&&S||C>y&&S;const I=Array.isArray(E)?E:[E];let T=I.reduce(o,{});N===!1&&(T={});const{prevResolvedValues:D={}}=P,w={...D,...T},M=O=>{A=!0,p.delete(O),P.needsAnimating[O]=!0};for(const O in w){const F=T[O],$=D[O];m.hasOwnProperty(O)||(F!==$?sa(F)&&sa($)?!od(F,$)||g?M(O):P.protectedKeys[O]=!0:F!==void 0?M(O):p.add(O):F!==void 0&&p.has(O)?M(O):P.protectedKeys[O]=!0)}P.prevProp=E,P.prevResolvedValues=T,P.isActive&&(m={...m,...T}),n&&e.blockInitialAnimation&&(A=!1),A&&!j&&h.push(...I.map(O=>({animation:O,options:{type:x,...l}})))}if(p.size){const C={};p.forEach(x=>{const P=e.getBaseTarget(x);P!==void 0&&(C[x]=P)}),h.push({animation:C})}let b=!!h.length;return n&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(b=!1),n=!1,b?t(h):Promise.resolve()}function i(l,c,u){var d;if(r[l].isActive===c)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var m;return(m=p.animationState)===null||m===void 0?void 0:m.setActive(l,c)}),r[l].isActive=c;const h=s(u,l);for(const p in r)r[p].protectedKeys={};return h}return{animateChanges:s,setActive:i,setAnimateFunction:a,getState:()=>r}}function ty(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!od(t,e):!1}function wr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ry(){return{animate:wr(!0),whileInView:wr(),whileHover:wr(),whileTap:wr(),whileDrag:wr(),whileFocus:wr(),exit:wr()}}class ny extends Zt{constructor(t){super(t),t.animationState||(t.animationState=ey(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),ea(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let oy=0;class ay extends Zt{constructor(){super(...arguments),this.id=oy++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const a=this.node.animationState.setActive("exit",!t,{custom:n??this.node.getProps().custom});r&&!t&&a.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const sy={animation:{Feature:ny},exit:{Feature:ay}},Hd=(e,t)=>Math.abs(e-t);function iy(e,t){const r=Hd(e.x,t.x),n=Hd(e.y,t.y);return Math.sqrt(r**2+n**2)}class Yd{constructor(t,r,{transformPagePoint:n,contextWindow:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=$i(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,h=iy(u.offset,{x:0,y:0})>=3;if(!d&&!h)return;const{point:p}=u,{timestamp:m}=Re;this.history.push({...p,timestamp:m});const{onStart:y,onMove:b}=this.handlers;d||(y&&y(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,u)},this.handlePointerMove=(u,d)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=Si(d,this.transformPagePoint),Se.update(this.updatePoint,!0)},this.handlePointerUp=(u,d)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:h,onSessionEnd:p}=this.handlers,m=$i(u.type==="pointercancel"?this.lastMoveEventInfo:Si(d,this.transformPagePoint),this.history);this.startEvent&&h&&h(u,m),p&&p(u,m)},!Qu(t))return;this.handlers=r,this.transformPagePoint=n,this.contextWindow=o||window;const a=ca(t),s=Si(a,this.transformPagePoint),{point:i}=s,{timestamp:l}=Re;this.history=[{...i,timestamp:l}];const{onSessionStart:c}=r;c&&c(t,$i(s,this.history)),this.removeListeners=Xt(_t(this.contextWindow,"pointermove",this.handlePointerMove),_t(this.contextWindow,"pointerup",this.handlePointerUp),_t(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Lt(this.updatePoint)}}function Si(e,t){return t?{point:t(e.point)}:e}function Gd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function $i({point:e},t){return{point:e,delta:Gd(e,qd(t)),offset:Gd(e,ly(t)),velocity:cy(t,.1)}}function ly(e){return e[0]}function qd(e){return e[e.length-1]}function cy(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=qd(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>Jt(t)));)r--;if(!n)return{x:0,y:0};const a=Ft(o.timestamp-n.timestamp);if(a===0)return{x:0,y:0};const s={x:(o.x-n.x)/a,y:(o.y-n.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function ot(e){return e.max-e.min}function Di(e,t=0,r=.01){return Math.abs(e-t)<=r}function Qd(e,t,r,n=.5){e.origin=n,e.originPoint=Ne(t.min,t.max,e.origin),e.scale=ot(r)/ot(t),(Di(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Ne(r.min,r.max,e.origin)-e.originPoint,(Di(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Kn(e,t,r,n){Qd(e.x,t.x,r.x,n?n.originX:void 0),Qd(e.y,t.y,r.y,n?n.originY:void 0)}function Xd(e,t,r){e.min=r.min+t.min,e.max=e.min+ot(t)}function uy(e,t,r){Xd(e.x,t.x,r.x),Xd(e.y,t.y,r.y)}function Zd(e,t,r){e.min=t.min-r.min,e.max=e.min+ot(t)}function Un(e,t,r){Zd(e.x,t.x,r.x),Zd(e.y,t.y,r.y)}function dy(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?Ne(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?Ne(r,e,n.max):Math.min(e,r)),e}function Jd(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function fy(e,{top:t,left:r,bottom:n,right:o}){return{x:Jd(e.x,r,o),y:Jd(e.y,t,n)}}function ef(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function py(e,t){return{x:ef(e.x,t.x),y:ef(e.y,t.y)}}function hy(e,t){let r=.5;const n=ot(e),o=ot(t);return o>n?r=Bn(t.min,t.max-n,e.min):n>o&&(r=Bn(e.min,e.max-o,t.min)),qt(0,1,r)}function my(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const Ii=.35;function gy(e=Ii){return e===!1?e=0:e===!0&&(e=Ii),{x:tf(e,"left","right"),y:tf(e,"top","bottom")}}function tf(e,t,r){return{min:rf(e,t),max:rf(e,r)}}function rf(e,t){return typeof e=="number"?e:e[t]||0}const nf=()=>({translate:0,scale:1,origin:0,originPoint:0}),Xr=()=>({x:nf(),y:nf()}),of=()=>({min:0,max:0}),Ve=()=>({x:of(),y:of()});function Et(e){return[e("x"),e("y")]}function af({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function vy({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function by(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function ki(e){return e===void 0||e===1}function Ai({scale:e,scaleX:t,scaleY:r}){return!ki(e)||!ki(t)||!ki(r)}function Cr(e){return Ai(e)||sf(e)||e.z||e.rotate||e.rotateX||e.rotateY}function sf(e){return lf(e.x)||lf(e.y)}function lf(e){return e&&e!=="0%"}function ga(e,t,r){const n=e-r,o=t*n;return r+o}function cf(e,t,r,n,o){return o!==void 0&&(e=ga(e,o,n)),ga(e,r,n)+t}function Oi(e,t=0,r=1,n,o){e.min=cf(e.min,t,r,n,o),e.max=cf(e.max,t,r,n,o)}function uf(e,{x:t,y:r}){Oi(e.x,t.translate,t.scale,t.originPoint),Oi(e.y,r.translate,r.scale,r.originPoint)}function yy(e,t,r,n=!1){const o=r.length;if(!o)return;t.x=t.y=1;let a,s;for(let i=0;i<o;i++){a=r[i],s=a.projectionDelta;const l=a.instance;l&&l.style&&l.style.display==="contents"||(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Zr(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,uf(e,s)),n&&Cr(a.latestValues)&&Zr(e,a.latestValues))}t.x=df(t.x),t.y=df(t.y)}function df(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function tr(e,t){e.min=e.min+t,e.max=e.max+t}function ff(e,t,[r,n,o]){const a=t[o]!==void 0?t[o]:.5,s=Ne(e.min,e.max,a);Oi(e,t[r],t[n],s,t.scale)}const xy=["x","scaleX","originX"],wy=["y","scaleY","originY"];function Zr(e,t){ff(e.x,t,xy),ff(e.y,t,wy)}function pf(e,t){return af(by(e.getBoundingClientRect(),t))}function Cy(e,t,r){const n=pf(e,r),{scroll:o}=t;return o&&(tr(n.x,o.offset.x),tr(n.y,o.offset.y)),n}const hf=({current:e})=>e?e.ownerDocument.defaultView:null,Py=new WeakMap;class My{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ve(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const o=l=>{this.stopAnimation(),r&&this.snapToCursor(ca(l,"page").point)},a=(l,c)=>{const{drag:u,dragPropagation:d,onDragStart:h}=this.getProps();if(u&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ed(u),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Et(m=>{let y=this.getAxisMotionValue(m).get()||0;if(Tt.test(y)){const{projection:b}=this.visualElement;if(b&&b.layout){const C=b.layout.layoutBox[m];C&&(y=ot(C)*(parseFloat(y)/100))}}this.originPoint[m]=y}),h&&Se.update(()=>h(l,c),!1,!0);const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},s=(l,c)=>{const{dragPropagation:u,dragDirectionLock:d,onDirectionLock:h,onDrag:p}=this.getProps();if(!u&&!this.openGlobalLock)return;const{offset:m}=c;if(d&&this.currentDirection===null){this.currentDirection=Ty(m),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",c.point,m),this.updateAxis("y",c.point,m),this.visualElement.render(),p&&p(l,c)},i=(l,c)=>this.stop(l,c);this.panSession=new Yd(t,{onSessionStart:o,onStart:a,onMove:s,onSessionEnd:i},{transformPagePoint:this.visualElement.getTransformPagePoint(),contextWindow:hf(this.visualElement)})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&Se.update(()=>a(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:o}=this.getProps();if(!n||!va(t,o,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=dy(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){var t;const{dragConstraints:r,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;r&&Gr(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=fy(o.layoutBox,r):this.constraints=!1,this.elastic=gy(n),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Et(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=my(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Gr(t))return!1;const n=t.current;bt(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const a=Cy(n,o.root,this.visualElement.getTransformPagePoint());let s=py(o.layout.layoutBox,a);if(r){const i=r(vy(s));this.hasMutatedConstraints=!!i,i&&(s=af(i))}return s}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:o,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:i}=this.getProps(),l=this.constraints||{},c=Et(u=>{if(!va(u,r,this.currentDirection))return;let d=l&&l[u]||{};s&&(d={min:0,max:0});const h=o?200:1e6,p=o?40:1e7,m={type:"inertia",velocity:n?t[u]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...a,...d};return this.startAxisValueAnimation(u,m)});return Promise.all(c).then(i)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start(wi(t,n,0,r))}stopAnimation(){Et(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),o=n[r];return o||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Et(r=>{const{drag:n}=this.getProps();if(!va(r,n,this.currentDirection))return;const{projection:o}=this.visualElement,a=this.getAxisMotionValue(r);if(o&&o.layout){const{min:s,max:i}=o.layout.layoutBox[r];a.set(t[r]-Ne(s,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Gr(r)||!n||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Et(s=>{const i=this.getAxisMotionValue(s);if(i){const l=i.get();o[s]=hy({min:l,max:l},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Et(s=>{if(!va(s,t,null))return;const i=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];i.set(Ne(l,c,o[s]))})}addListeners(){if(!this.visualElement.current)return;Py.set(this.visualElement,this);const t=this.visualElement.current,r=_t(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();Gr(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,a=o.addEventListener("measure",n);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),n();const s=jt(window,"resize",()=>this.scalePositionWithinConstraints()),i=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Et(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{s(),r(),a(),i&&i()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:a=!1,dragElastic:s=Ii,dragMomentum:i=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:a,dragElastic:s,dragMomentum:i}}}function va(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function Ty(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class Ey extends Zt{constructor(t){super(t),this.removeGroupControls=Le,this.removeListeners=Le,this.controls=new My(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Le}unmount(){this.removeGroupControls(),this.removeListeners()}}const mf=e=>(t,r)=>{e&&Se.update(()=>e(t,r))};class Sy extends Zt{constructor(){super(...arguments),this.removePointerDownListener=Le}onPointerDown(t){this.session=new Yd(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:hf(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:mf(t),onStart:mf(r),onMove:n,onEnd:(a,s)=>{delete this.session,o&&Se.update(()=>o(a,s))}}}mount(){this.removePointerDownListener=_t(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function $y(){const e=f.useContext(Zo);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,o=f.useId();return f.useEffect(()=>n(o),[]),!t&&r?[!1,()=>r&&r(o)]:[!0]}const ba={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function gf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Hn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ne.test(e))e=parseFloat(e);else return e;const r=gf(e,t.target.x),n=gf(e,t.target.y);return`${r}% ${n}%`}},Dy={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=er.parse(e);if(o.length>5)return n;const a=er.createTransformer(e),s=typeof o[0]!="number"?1:0,i=r.x.scale*t.x,l=r.y.scale*t.y;o[0+s]/=i,o[1+s]/=l;const c=Ne(i,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=c),typeof o[3+s]=="number"&&(o[3+s]/=c),a(o)}};class Iy extends f.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:a}=t;B1(ky),a&&(r.group&&r.group.add(a),n&&n.register&&o&&n.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),ba.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:o,isPresent:a}=this.props,s=n.projection;return s&&(s.isPresent=a,o||t.layoutDependency!==r||r===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||Se.postRender(()=>{const i=s.getStack();(!i||!i.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(o),n&&n.deregister&&n.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function vf(e){const[t,r]=$y(),n=f.useContext(On);return f.createElement(Iy,{...e,layoutGroup:n,switchLayoutGroup:f.useContext(ku),isPresent:t,safeToRemove:r})}const ky={borderRadius:{...Hn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Hn,borderTopRightRadius:Hn,borderBottomLeftRadius:Hn,borderBottomRightRadius:Hn,boxShadow:Dy},bf=["TopLeft","TopRight","BottomLeft","BottomRight"],Ay=bf.length,yf=e=>typeof e=="string"?parseFloat(e):e,xf=e=>typeof e=="number"||ne.test(e);function Oy(e,t,r,n,o,a){o?(e.opacity=Ne(0,r.opacity!==void 0?r.opacity:1,Ny(n)),e.opacityExit=Ne(t.opacity!==void 0?t.opacity:1,0,Ly(n))):a&&(e.opacity=Ne(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let s=0;s<Ay;s++){const i=`border${bf[s]}Radius`;let l=wf(t,i),c=wf(r,i);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||xf(l)===xf(c)?(e[i]=Math.max(Ne(yf(l),yf(c),n),0),(Tt.test(c)||Tt.test(l))&&(e[i]+="%")):e[i]=c}(t.rotate||r.rotate)&&(e.rotate=Ne(t.rotate||0,r.rotate||0,n))}function wf(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Ny=Cf(0,.5,pd),Ly=Cf(.5,.95,Le);function Cf(e,t,r){return n=>n<e?0:n>t?1:r(Bn(e,t,n))}function Pf(e,t){e.min=t.min,e.max=t.max}function pt(e,t){Pf(e.x,t.x),Pf(e.y,t.y)}function Mf(e,t,r,n,o){return e-=t,e=ga(e,1/r,n),o!==void 0&&(e=ga(e,1/o,n)),e}function jy(e,t=0,r=1,n=.5,o,a=e,s=e){if(Tt.test(t)&&(t=parseFloat(t),t=Ne(s.min,s.max,t/100)-s.min),typeof t!="number")return;let i=Ne(a.min,a.max,n);e===a&&(i-=t),e.min=Mf(e.min,t,r,i,o),e.max=Mf(e.max,t,r,i,o)}function Tf(e,t,[r,n,o],a,s){jy(e,t[r],t[n],t[o],t.scale,a,s)}const _y=["x","scaleX","originX"],Fy=["y","scaleY","originY"];function Ef(e,t,r,n){Tf(e.x,t,_y,r?r.x:void 0,n?n.x:void 0),Tf(e.y,t,Fy,r?r.y:void 0,n?n.y:void 0)}function Sf(e){return e.translate===0&&e.scale===1}function $f(e){return Sf(e.x)&&Sf(e.y)}function Vy(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Df(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function If(e){return ot(e.x)/ot(e.y)}class zy{constructor(){this.members=[]}add(t){Ci(this.members,t),t.scheduleRender()}remove(t){if(Pi(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(o=>t===o);if(r===0)return!1;let n;for(let o=r;o>=0;o--){const a=this.members[o];if(a.isPresent!==!1){n=a;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function kf(e,t,r){let n="";const o=e.x.translate/t.x,a=e.y.translate/t.y;if((o||a)&&(n=`translate3d(${o}px, ${a}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:l,rotateX:c,rotateY:u}=r;l&&(n+=`rotate(${l}deg) `),c&&(n+=`rotateX(${c}deg) `),u&&(n+=`rotateY(${u}deg) `)}const s=e.x.scale*t.x,i=e.y.scale*t.y;return(s!==1||i!==1)&&(n+=`scale(${s}, ${i})`),n||"none"}const Wy=(e,t)=>e.depth-t.depth;class By{constructor(){this.children=[],this.isDirty=!1}add(t){Ci(this.children,t),this.isDirty=!0}remove(t){Pi(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Wy),this.isDirty=!1,this.children.forEach(t)}}function Ry(e,t){const r=performance.now(),n=({timestamp:o})=>{const a=o-r;a>=t&&(Lt(n),e(a-t))};return Se.read(n,!0),()=>Lt(n)}function Ky(e){window.MotionDebug&&window.MotionDebug.record(e)}function Uy(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Hy(e,t,r){const n=qe(e)?e:Qr(e);return n.start(wi("",n,t,r)),n.animation}const Af=["","X","Y","Z"],Yy={visibility:"hidden"},Of=1e3;let Gy=0;const Pr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Nf({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(s={},i=t==null?void 0:t()){this.id=Gy++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Pr.totalNodes=Pr.resolvedTargetDeltas=Pr.recalculatedProjection=0,this.nodes.forEach(Xy),this.nodes.forEach(r2),this.nodes.forEach(n2),this.nodes.forEach(Zy),Ky(Pr)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new By)}addEventListener(s,i){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Mi),this.eventHandlers.get(s).add(i)}notifyListeners(s,...i){const l=this.eventHandlers.get(s);l&&l.notify(...i)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Uy(s),this.instance=s;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(c||l)&&(this.isLayoutDirty=!0),e){let d;const h=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=Ry(h,250),ba.hasAnimatedSinceResize&&(ba.hasAnimatedSinceResize=!1,this.nodes.forEach(jf))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeTargetChanged:p,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||u.getDefaultTransition()||l2,{onLayoutAnimationStart:b,onLayoutAnimationComplete:C}=u.getProps(),x=!this.targetLayout||!Df(this.targetLayout,m)||p,P=!h&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||P||h&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,P);const E={...xi(y,"layout"),onPlay:b,onComplete:C};(u.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else h||jf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Lt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(o2),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:i,layout:l}=this.options;if(i===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Lf);return}this.isUpdating||this.nodes.forEach(e2),this.isUpdating=!1,this.nodes.forEach(t2),this.nodes.forEach(qy),this.nodes.forEach(Qy),this.clearAllSnapshots();const i=performance.now();Re.delta=qt(0,1e3/60,i-Re.timestamp),Re.timestamp=i,Re.isProcessing=!0,ni.update.process(Re),ni.preRender.process(Re),ni.render.process(Re),Re.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Jy),this.sharedNodes.forEach(a2)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Se.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Se.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ve(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:i}=this.options;i&&i.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let i=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(i=!1),i&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){if(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform,i=this.projectionDelta&&!$f(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;s&&(i||Cr(this.latestValues)||u)&&(o(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const i=this.measurePageBox();let l=this.removeElementScroll(i);return s&&(l=this.removeTransform(l)),c2(l),{animationId:this.root.animationId,measuredBox:i,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return Ve();const i=s.measureViewportBox(),{scroll:l}=this.root;return l&&(tr(i.x,l.offset.x),tr(i.y,l.offset.y)),i}removeElementScroll(s){const i=Ve();pt(i,s);for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:d}=c;if(c!==this.root&&u&&d.layoutScroll){if(u.isRoot){pt(i,s);const{scroll:h}=this.root;h&&(tr(i.x,-h.offset.x),tr(i.y,-h.offset.y))}tr(i.x,u.offset.x),tr(i.y,u.offset.y)}}return i}applyTransform(s,i=!1){const l=Ve();pt(l,s);for(let c=0;c<this.path.length;c++){const u=this.path[c];!i&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Zr(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Cr(u.latestValues)&&Zr(l,u.latestValues)}return Cr(this.latestValues)&&Zr(l,this.latestValues),l}removeTransform(s){const i=Ve();pt(i,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Cr(c.latestValues))continue;Ai(c.latestValues)&&c.updateSnapshot();const u=Ve(),d=c.measurePageBox();pt(u,d),Ef(i,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return Cr(this.latestValues)&&Ef(i,this.latestValues),i}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Re.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var i;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((i=this.parent)===null||i===void 0)&&i.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:d,layoutId:h}=this.options;if(!(!this.layout||!(d||h))){if(this.resolvedRelativeTargetAt=Re.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ve(),this.relativeTargetOrigin=Ve(),Un(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),pt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ve(),this.targetWithTransforms=Ve()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),uy(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):pt(this.target,this.layout.layoutBox),uf(this.target,this.targetDelta)):pt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ve(),this.relativeTargetOrigin=Ve(),Un(this.relativeTargetOrigin,this.target,p.target),pt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Pr.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Ai(this.parent.latestValues)||sf(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const i=this.getLead(),l=!!this.resumingFrom||this!==i;let c=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Re.timestamp&&(c=!1),c)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;pt(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,p=this.treeScale.y;yy(this.layoutCorrected,this.treeScale,this.path,l),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox);const{target:m}=i;if(!m){this.projectionTransform&&(this.projectionDelta=Xr(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Xr(),this.projectionDeltaWithTransform=Xr());const y=this.projectionTransform;Kn(this.projectionDelta,this.layoutCorrected,m,this.latestValues),this.projectionTransform=kf(this.projectionDelta,this.treeScale),(this.projectionTransform!==y||this.treeScale.x!==h||this.treeScale.y!==p)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Pr.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const i=this.getStack();i&&i.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,i=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=Xr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;const h=Ve(),p=l?l.source:void 0,m=this.layout?this.layout.source:void 0,y=p!==m,b=this.getStack(),C=!b||b.members.length<=1,x=!!(y&&!C&&this.options.crossfade===!0&&!this.path.some(i2));this.animationProgress=0;let P;this.mixTargetDelta=E=>{const S=E/1e3;_f(d.x,s.x,S),_f(d.y,s.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Un(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),s2(this.relativeTarget,this.relativeTargetOrigin,h,S),P&&Vy(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=Ve()),pt(P,this.relativeTarget)),y&&(this.animationValues=u,Oy(u,c,this.latestValues,S,x,C)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Lt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Se.update(()=>{ba.hasAnimatedSinceResize=!0,this.currentAnimation=Hy(0,Of,{...s,onUpdate:i=>{this.mixTargetDelta(i),s.onUpdate&&s.onUpdate(i)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Of),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:i,target:l,layout:c,latestValues:u}=s;if(!(!i||!l||!c)){if(this!==s&&this.layout&&c&&Bf(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Ve();const d=ot(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const h=ot(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}pt(i,l),Zr(i,u),Kn(this.projectionDeltaWithTransform,this.layoutCorrected,i,u)}}registerSharedNode(s,i){this.sharedNodes.has(s)||this.sharedNodes.set(s,new zy),this.sharedNodes.get(s).add(i);const c=i.options.initialPromotionConfig;i.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(i):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:i}=this.options;return i?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:i}=this.options;return i?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:i,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),i&&this.setOptions({transition:i})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let i=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(i=!0),!i)return;const c={};for(let u=0;u<Af.length;u++){const d="rotate"+Af[u];l[d]&&(c[d]=l[d],s.setStaticValue(d,0))}s.render();for(const u in c)s.setStaticValue(u,c[u]);s.scheduleRender()}getProjectionStyles(s){var i,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Yy;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=ia(s==null?void 0:s.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=ia(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Cr(this.latestValues)&&(y.transform=u?u({},""):"none",this.hasProjected=!1),y}const h=d.animationValues||d.latestValues;this.applyTransformsToTarget(),c.transform=kf(this.projectionDeltaWithTransform,this.treeScale,h),u&&(c.transform=u(h,c.transform));const{x:p,y:m}=this.projectionDelta;c.transformOrigin=`${p.origin*100}% ${m.origin*100}% 0`,d.animationValues?c.opacity=d===this?(l=(i=h.opacity)!==null&&i!==void 0?i:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:c.opacity=d===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const y in ra){if(h[y]===void 0)continue;const{correct:b,applyTo:C}=ra[y],x=c.transform==="none"?h[y]:b(h[y],d);if(C){const P=C.length;for(let E=0;E<P;E++)c[C[E]]=x}else c[y]=x}return this.options.layoutId&&(c.pointerEvents=d===this?ia(s==null?void 0:s.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var i;return(i=s.currentAnimation)===null||i===void 0?void 0:i.stop()}),this.root.nodes.forEach(Lf),this.root.sharedNodes.clear()}}}function qy(e){e.updateLayout()}function Qy(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:o}=e.layout,{animationType:a}=e.options,s=r.source!==e.layout.source;a==="size"?Et(d=>{const h=s?r.measuredBox[d]:r.layoutBox[d],p=ot(h);h.min=n[d].min,h.max=h.min+p}):Bf(a,r.layoutBox,n)&&Et(d=>{const h=s?r.measuredBox[d]:r.layoutBox[d],p=ot(n[d]);h.max=h.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const i=Xr();Kn(i,n,r.layoutBox);const l=Xr();s?Kn(l,e.applyTransform(o,!0),r.measuredBox):Kn(l,n,r.layoutBox);const c=!$f(i);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:p}=d;if(h&&p){const m=Ve();Un(m,r.layoutBox,h.layoutBox);const y=Ve();Un(y,n,p.layoutBox),Df(m,y)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:i,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Xy(e){Pr.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Zy(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Jy(e){e.clearSnapshot()}function Lf(e){e.clearMeasurements()}function e2(e){e.isLayoutDirty=!1}function t2(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function jf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function r2(e){e.resolveTargetDelta()}function n2(e){e.calcProjection()}function o2(e){e.resetRotation()}function a2(e){e.removeLeadSnapshot()}function _f(e,t,r){e.translate=Ne(t.translate,0,r),e.scale=Ne(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Ff(e,t,r,n){e.min=Ne(t.min,r.min,n),e.max=Ne(t.max,r.max,n)}function s2(e,t,r,n){Ff(e.x,t.x,r.x,n),Ff(e.y,t.y,r.y,n)}function i2(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const l2={duration:.45,ease:[.4,0,.1,1]},Vf=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),zf=Vf("applewebkit/")&&!Vf("chrome/")?Math.round:Le;function Wf(e){e.min=zf(e.min),e.max=zf(e.max)}function c2(e){Wf(e.x),Wf(e.y)}function Bf(e,t,r){return e==="position"||e==="preserve-aspect"&&!Di(If(t),If(r),.2)}const u2=Nf({attachResizeListener:(e,t)=>jt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ni={current:void 0},Rf=Nf({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ni.current){const e=new u2({});e.mount(window),e.setOptions({layoutScroll:!0}),Ni.current=e}return Ni.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),d2={pan:{Feature:Sy},drag:{Feature:Ey,ProjectionNode:Rf,MeasureLayout:vf}},f2=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function p2(e){const t=f2.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}const h2=4;function Li(e,t,r=1){bt(r<=h2,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[n,o]=p2(e);if(!n)return;const a=window.getComputedStyle(t).getPropertyValue(n);if(a){const s=a.trim();return Wd(s)?parseFloat(s):s}else return Qs(o)?Li(o,t,r+1):o}function m2(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(o=>{const a=o.get();if(!Qs(a))return;const s=Li(a,n);s&&o.set(s)});for(const o in t){const a=t[o];if(!Qs(a))continue;const s=Li(a,n);s&&(t[o]=s,r||(r={}),r[o]===void 0&&(r[o]=a))}return{target:t,transitionEnd:r}}const g2=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Kf=e=>g2.has(e),v2=e=>Object.keys(e).some(Kf),ya=e=>e===yr||e===ne,Uf=(e,t)=>parseFloat(e.split(", ")[t]),Hf=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const o=n.match(/^matrix3d\((.+)\)$/);if(o)return Uf(o[1],t);{const a=n.match(/^matrix\((.+)\)$/);return a?Uf(a[1],e):0}},b2=new Set(["x","y","z"]),y2=Nn.filter(e=>!b2.has(e));function x2(e){const t=[];return y2.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Jr={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Hf(4,13),y:Hf(5,14)};Jr.translateX=Jr.x,Jr.translateY=Jr.y;const w2=(e,t,r)=>{const n=t.measureViewportBox(),o=t.current,a=getComputedStyle(o),{display:s}=a,i={};s==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(c=>{i[c]=Jr[c](n,a)}),t.render();const l=t.measureViewportBox();return r.forEach(c=>{const u=t.getValue(c);u&&u.jump(i[c]),e[c]=Jr[c](l,a)}),e},C2=(e,t,r={},n={})=>{t={...t},n={...n};const o=Object.keys(t).filter(Kf);let a=[],s=!1;const i=[];if(o.forEach(l=>{const c=e.getValue(l);if(!e.hasValue(l))return;let u=r[l],d=Rn(u);const h=t[l];let p;if(sa(h)){const m=h.length,y=h[0]===null?1:0;u=h[y],d=Rn(u);for(let b=y;b<m&&h[b]!==null;b++)p?bt(Rn(h[b])===p,"All keyframes must be of the same type"):(p=Rn(h[b]),bt(p===d||ya(d)&&ya(p),"Keyframes must be of the same dimension as the current value"))}else p=Rn(h);if(d!==p)if(ya(d)&&ya(p)){const m=c.get();typeof m=="string"&&c.set(parseFloat(m)),typeof h=="string"?t[l]=parseFloat(h):Array.isArray(h)&&p===ne&&(t[l]=h.map(parseFloat))}else d!=null&&d.transform&&(p!=null&&p.transform)&&(u===0||h===0)?u===0?c.set(p.transform(u)):t[l]=d.transform(h):(s||(a=x2(e),s=!0),i.push(l),n[l]=n[l]!==void 0?n[l]:t[l],c.jump(h))}),i.length){const l=i.indexOf("height")>=0?window.pageYOffset:null,c=w2(t,e,i);return a.length&&a.forEach(([u,d])=>{e.getValue(u).set(d)}),e.render(),Jo&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:n}}else return{target:t,transitionEnd:n}};function P2(e,t,r,n){return v2(t)?C2(e,t,r,n):{target:t,transitionEnd:n}}const M2=(e,t,r,n)=>{const o=m2(e,t,n);return t=o.target,n=o.transitionEnd,P2(e,t,r,n)},ji={current:null},Yf={current:!1};function T2(){if(Yf.current=!0,!!Jo)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ji.current=e.matches;e.addListener(t),t()}else ji.current=!1}function E2(e,t,r){const{willChange:n}=t;for(const o in t){const a=t[o],s=r[o];if(qe(a))e.addValue(o,a),ma(n)&&n.add(o),process.env.NODE_ENV==="development"&&Ti(a.version==="10.16.16",`Attempting to mix Framer Motion versions ${a.version} with 10.16.16 may not work as expected.`);else if(qe(s))e.addValue(o,Qr(a,{owner:e})),ma(n)&&n.remove(o);else if(s!==a)if(e.hasValue(o)){const i=e.getValue(o);!i.hasAnimated&&i.set(a)}else{const i=e.getStaticValue(o);e.addValue(o,Qr(i!==void 0?i:a,{owner:e}))}}for(const o in r)t[o]===void 0&&e.removeValue(o);return t}const Gf=new WeakMap,qf=Object.keys(An),S2=qf.length,Qf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],$2=Gs.length;class D2{constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,visualState:a},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Se.render(this.render,!1,!0);const{latestValues:i,renderState:l}=a;this.latestValues=i,this.baseTarget={...i},this.initialValues=r.initial?{...i}:{},this.renderState=l,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.isControllingVariants=ta(r),this.isVariantNode=$u(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(r,{});for(const d in u){const h=u[d];i[d]!==void 0&&qe(h)&&(h.set(i[d],!1),ma(c)&&c.add(d))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,Gf.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),Yf.current||T2(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ji.current,process.env.NODE_ENV!=="production"&&Ti(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Gf.delete(this.current),this.projection&&this.projection.unmount(),Lt(this.notifyUpdate),Lt(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,r){const n=br.has(t),o=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Se.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),a=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),a()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,o,a){let s,i;if(process.env.NODE_ENV!=="production"&&o&&n){const l="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";r.ignoreStrict?Vn(!1,l):bt(!1,l)}for(let l=0;l<S2;l++){const c=qf[l],{isEnabled:u,Feature:d,ProjectionNode:h,MeasureLayout:p}=An[c];h&&(s=h),u(r)&&(!this.features[c]&&d&&(this.features[c]=new d(this)),p&&(i=p))}if(!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:c,drag:u,dragConstraints:d,layoutScroll:h,layoutRoot:p}=r;this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!u||d&&Gr(d),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:a,layoutScroll:h,layoutRoot:p})}return i}updateFeatures(){for(const t in this.features){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ve()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<Qf.length;n++){const o=Qf[n];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const a=t["on"+o];a&&(this.propEventSubscriptions[o]=this.on(o,a))}this.prevMotionValues=E2(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const n=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(n.initial=this.props.initial),n}const r={};for(let n=0;n<$2;n++){const o=Gs[n],a=this.props[o];(kn(a)||a===!1)&&(r[o]=a)}return r}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get()}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Qr(r,{owner:this}),this.addValue(t,n)),n}readValue(t){var r;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props,o=typeof n=="string"||typeof n=="object"?(r=ri(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&o!==void 0)return o;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!qe(a)?a:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Mi),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class Xf extends D2{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:r,...n},{transformValues:o},a){let s=Ub(n,t||{},this);if(o&&(r&&(r=o(r)),n&&(n=o(n)),s&&(s=o(s))),a){Rb(this,n,s);const i=M2(this,n,s,r);r=i.transitionEnd,n=i.target}return{transition:t,transitionEnd:r,...n}}}function I2(e){return window.getComputedStyle(e)}class k2 extends Xf{readValueFromInstance(t,r){if(br.has(r)){const n=yi(r);return n&&n.default||0}else{const n=I2(t),o=(Nu(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return pf(t,r)}build(t,r,n,o){Xs(t,r,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,r){return ti(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;qe(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,o){Ru(t,r,n,o)}}class A2 extends Xf{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(br.has(r)){const n=yi(r);return n&&n.default||0}return r=Ku.has(r)?r:Hs(r),t.getAttribute(r)}measureInstanceViewportBox(){return Ve()}scrapeMotionValuesFromProps(t,r){return Hu(t,r)}build(t,r,n,o){Js(t,r,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,r,n,o){Uu(t,r,n,o)}mount(t){this.isSVGTag=ei(t.tagName),super.mount(t)}}const O2=(e,t)=>qs(e)?new A2(t,{enableHardwareAcceleration:!1}):new k2(t,{enableHardwareAcceleration:!0}),N2={...sy,...kv,...d2,...{layout:{ProjectionNode:Rf,MeasureLayout:vf}}},Zf=z1((e,t)=>bv(e,t,N2,O2));function Jf(){const e=f.useRef(!1);return Us(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function ep(){const e=Jf(),[t,r]=f.useState(0),n=f.useCallback(()=>{e.current&&r(t+1)},[t]);return[f.useCallback(()=>Se.postRender(n),[n]),t]}class L2 extends U.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function j2({children:e,isPresent:t}){const r=f.useId(),n=f.useRef(null),o=f.useRef({width:0,height:0,top:0,left:0});return f.useInsertionEffect(()=>{const{width:a,height:s,top:i,left:l}=o.current;if(t||!n.current||!a||!s)return;n.current.dataset.motionPopId=r;const c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
|
|
28
28
|
[data-motion-pop-id="${r}"] {
|
|
29
29
|
position: absolute !important;
|
|
30
30
|
width: ${a}px !important;
|
|
@@ -32,8 +32,8 @@ Check the top-level render call using <`+_+">.")}return k}}function wo(v,k){{if(
|
|
|
32
32
|
top: ${i}px !important;
|
|
33
33
|
left: ${l}px !important;
|
|
34
34
|
}
|
|
35
|
-
`),()=>{document.head.removeChild(c)}},[t]),U.createElement(N2,{isPresent:t,childRef:n,sizeRef:o},U.cloneElement(e,{ref:n}))}const _i=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:a,mode:s})=>{const i=Hu(j2),l=f.useId(),c=f.useMemo(()=>({id:l,initial:t,isPresent:r,custom:o,onExitComplete:u=>{i.set(u,!0);for(const d of i.values())if(!d)return;n&&n()},register:u=>(i.set(u,!1),()=>i.delete(u))}),a?void 0:[r]);return f.useMemo(()=>{i.forEach((u,d)=>i.set(d,!1))},[r]),U.useEffect(()=>{!r&&!i.size&&n&&n()},[r]),s==="popLayout"&&(e=U.createElement(L2,{isPresent:r},e)),U.createElement(Zo.Provider,{value:c},e)};function j2(){return new Map}function _2(e){return f.useEffect(()=>()=>e(),[])}const Mr=e=>e.key||"";function F2(e,t){e.forEach(r=>{const n=Mr(r);t.set(n,r)})}function V2(e){const t=[];return f.Children.forEach(e,r=>{f.isValidElement(r)&&t.push(r)}),t}const z2=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:o,presenceAffectsLayout:a=!0,mode:s="sync"})=>{bt(!o,"Replace exitBeforeEnter with mode='wait'");const i=f.useContext(On).forceRender||Jf()[0],l=Zf(),c=V2(e);let u=c;const d=f.useRef(new Map).current,h=f.useRef(u),p=f.useRef(new Map).current,m=f.useRef(!0);if(Us(()=>{m.current=!1,F2(c,p),h.current=u}),_2(()=>{m.current=!0,p.clear(),d.clear()}),m.current)return U.createElement(U.Fragment,null,u.map(x=>U.createElement(_i,{key:Mr(x),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:a,mode:s},x)));u=[...u];const y=h.current.map(Mr),b=c.map(Mr),C=y.length;for(let x=0;x<C;x++){const P=y[x];b.indexOf(P)===-1&&!d.has(P)&&d.set(P,void 0)}return s==="wait"&&d.size&&(u=[]),d.forEach((x,P)=>{if(b.indexOf(P)!==-1)return;const E=p.get(P);if(!E)return;const S=y.indexOf(P);let N=x;if(!N){const L=()=>{d.delete(P);const g=Array.from(p.keys()).filter(A=>!b.includes(A));if(g.forEach(A=>p.delete(A)),h.current=c.filter(A=>{const I=Mr(A);return I===P||g.includes(I)}),!d.size){if(l.current===!1)return;i(),n&&n()}};N=U.createElement(_i,{key:Mr(E),isPresent:!1,onExitComplete:L,custom:t,presenceAffectsLayout:a,mode:s},E),d.set(P,N)}u.splice(S,0,N)}),u=u.map(x=>{const P=x.key;return d.has(P)?x:U.createElement(_i,{key:Mr(x),isPresent:!0,presenceAffectsLayout:a,mode:s},x)}),process.env.NODE_ENV!=="production"&&s==="wait"&&u.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),U.createElement(U.Fragment,null,d.size?u:u.map(x=>f.cloneElement(x)))},W2=f.createContext(null),B2=e=>!e.isLayoutDirty&&e.willUpdate(!1);function ep(){const e=new Set,t=new WeakMap,r=()=>e.forEach(B2);return{add:n=>{e.add(n),t.set(n,n.addEventListener("willUpdate",r))},remove:n=>{e.delete(n);const o=t.get(n);o&&(o(),t.delete(n)),r()},dirty:r}}const tp=e=>e===!0,R2=e=>tp(e===!0)||e==="id",K2=({children:e,id:t,inherit:r=!0})=>{const n=f.useContext(On),o=f.useContext(W2),[a,s]=Jf(),i=f.useRef(null),l=n.id||o;i.current===null&&(R2(r)&&l&&(t=t?l+"-"+t:l),i.current={id:t,group:tp(r)&&n.group||ep()});const c=f.useMemo(()=>({...i.current,forceRender:a}),[s]);return U.createElement(On.Provider,{value:c},e)};function rp(e){return null}rp.getCollectionNode=function*(t,r){let{childItems:n,title:o,children:a}=t,s=t.title||t.children,i=t.textValue||(typeof s=="string"?s:"")||t["aria-label"]||"";!i&&!(r!=null&&r.suppressTextValueWarning)&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:s,textValue:i,"aria-label":t["aria-label"],hasChildNodes:U2(t),*childNodes(){if(n)for(let l of n)yield{type:"item",value:l};else if(o){let l=[];f.Children.forEach(a,c=>{l.push({type:"item",element:c})}),yield*l}}}};function U2(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&f.Children.count(e.children)>0)}let H2=rp;class Y2{build(t,r){return this.context=r,np(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:r,items:n}=t;if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");for(let o of t.items)yield*this.getFullNode({value:o},{renderer:r})}else{let o=[];f.Children.forEach(r,s=>{o.push(s)});let a=0;for(let s of o){let i=this.getFullNode({element:s,index:a},{});for(let l of i)a++,yield l}}}getKey(t,r,n,o){if(t.key!=null)return t.key;if(r.type==="cell"&&r.key!=null)return`${o}${r.key}`;let a=r.value;if(a!=null){var s;let i=(s=a.key)!==null&&s!==void 0?s:a.id;if(i==null)throw new Error("No key found for item");return i}return o?`${o}.${r.index}`:`$.${r.index}`}getChildState(t,r){return{renderer:r.renderer||t.renderer}}*getFullNode(t,r,n,o){let a=t.element;if(!a&&t.value&&r&&r.renderer){let l=this.cache.get(t.value);if(l&&(!l.shouldInvalidate||!l.shouldInvalidate(this.context))){l.index=t.index,l.parentKey=o?o.key:null,yield l;return}a=r.renderer(t.value)}if(f.isValidElement(a)){let l=a.type;if(typeof l!="function"&&typeof l.getCollectionNode!="function"){let h=typeof a.type=="function"?a.type.name:a.type;throw new Error(`Unknown element <${h}> in collection.`)}let c=l.getCollectionNode(a.props,this.context),u=t.index,d=c.next();for(;!d.done&&d.value;){let h=d.value;t.index=u;let p=h.key;p||(p=h.element?null:this.getKey(a,t,r,n));let y=[...this.getFullNode({...h,key:p,index:u,wrapper:G2(t.wrapper,h.wrapper)},this.getChildState(r,h),n?`${n}${a.key}`:a.key,o)];for(let b of y){if(b.value=h.value||t.value,b.value&&this.cache.set(b.value,b),t.type&&b.type!==t.type)throw new Error(`Unsupported type <${Fi(b.type)}> in <${Fi(o.type)}>. Only <${Fi(t.type)}> is supported.`);u++,yield b}d=c.next(y)}return}if(t.key==null)return;let s=this,i={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:t.value,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue,"aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes,childNodes:np(function*(){if(!t.hasChildNodes)return;let l=0;for(let c of t.childNodes()){c.key!=null&&(c.key=`${i.key}${c.key}`),c.index=l;let u=s.getFullNode(c,s.getChildState(r,c),i.key,i);for(let d of u)l++,yield d}})};yield i}constructor(){this.cache=new WeakMap}}function np(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function G2(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function Fi(e){return e[0].toUpperCase()+e.slice(1)}function q2(e,t,r){let n=f.useMemo(()=>new Y2,[]),{children:o,items:a,collection:s}=e;return f.useMemo(()=>{if(s)return s;let l=n.build({children:o,items:a},r);return t(l)},[n,o,a,s,r,t])}function Q2(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function X2(e){return Z2(e,0)}function Z2(e,t){if(t<0)return;let r=0;for(let n of e){if(r===t)return n;r++}}function Vi(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...op(e,t),t],o=[...op(e,r),r],a=n.slice(0,o.length).findIndex((s,i)=>s!==o[i]);return a!==-1?(t=n[a],r=o[a],t.index-r.index):n.findIndex(s=>s===r)>=0?1:(o.findIndex(s=>s===t)>=0,-1)}function op(e,t){let r=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),r.unshift(t);return r}class yt extends Set{constructor(t,r,n){super(t),t instanceof yt?(this.anchorKey=r||t.anchorKey,this.currentKey=n||t.currentKey):(this.anchorKey=r,this.currentKey=n)}}function J2(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function e5(e){let{selectionMode:t="none",disallowEmptySelection:r,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:a="all"}=e,s=f.useRef(!1),[,i]=f.useState(!1),l=f.useRef(null),c=f.useRef(null),[,u]=f.useState(null),d=f.useMemo(()=>ap(e.selectedKeys),[e.selectedKeys]),h=f.useMemo(()=>ap(e.defaultSelectedKeys,new yt),[e.defaultSelectedKeys]),[p,m]=_r(d,h,e.onSelectionChange),y=f.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[b,C]=f.useState(o);o==="replace"&&b==="toggle"&&typeof p=="object"&&p.size===0&&C("replace");let x=f.useRef(o);return f.useEffect(()=>{o!==x.current&&(C(o),x.current=o)},[o]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:b,setSelectionBehavior:C,get isFocused(){return s.current},setFocused(P){s.current=P,i(P)},get focusedKey(){return l.current},get childFocusStrategy(){return c.current},setFocusedKey(P,E="first"){l.current=P,c.current=E,u(P)},selectedKeys:p,setSelectedKeys(P){(n||!J2(P,p))&&m(P)},disabledKeys:y,disabledBehavior:a}}function ap(e,t){return e?e==="all"?"all":new yt(e):t}class t5{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){return this.state.selectionMode==="none"?!1:(t=this.getKey(t),this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let n=this.collection.getItem(r);(!t||n&&Vi(this.collection,n,t)<0)&&(t=n)}return t==null?void 0:t.key}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let n=this.collection.getItem(r);(!t||n&&Vi(this.collection,n,t)>0)&&(t=n)}return t==null?void 0:t.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}t=this.getKey(t);let r;if(this.state.selectedKeys==="all")r=new yt([t],t,t);else{let n=this.state.selectedKeys,o=n.anchorKey||t;r=new yt(n,o,t);for(let a of this.getKeyRange(o,n.currentKey||t))r.delete(a);for(let a of this.getKeyRange(t,o))this.canSelectItem(a)&&r.add(a)}this.state.setSelectedKeys(r)}getKeyRange(t,r){let n=this.collection.getItem(t),o=this.collection.getItem(r);return n&&o?Vi(this.collection,n,o)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){let n=[],o=t;for(;o;){let a=this.collection.getItem(o);if((a&&a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&n.push(o),o===r)return n;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}if(t=this.getKey(t),t==null)return;let r=new yt(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(t)?r.delete(t):this.canSelectItem(t)&&(r.add(t),r.anchorKey=t,r.currentKey=t),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none"||(t=this.getKey(t),t==null))return;let r=this.canSelectItem(t)?new yt([t],t,t):new yt;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new yt;for(let n of t)if(n=this.getKey(n),n!=null&&(r.add(n),this.selectionMode==="single"))break;this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n;){if(this.canSelectItem(n)){let o=this.collection.getItem(n);o.type==="item"&&t.push(n),o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&r(X2(Q2(o,this.collection)).key)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new yt)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){return this.state.disabledKeys.has(t)&&this.state.disabledBehavior==="all"}isLink(t){var r,n;return!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}constructor(t,r,n){this.collection=t,this.state=r;var o;this.allowsCellSelection=(o=n==null?void 0:n.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null}}var r5=()=>j.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"80%",role:"presentation",viewBox:"0 0 24 24",width:"80%",children:[j.jsx("path",{d:"M12 2C9.38 2 7.25 4.13 7.25 6.75C7.25 9.32 9.26 11.4 11.88 11.49C11.96 11.48 12.04 11.48 12.1 11.49C12.12 11.49 12.13 11.49 12.15 11.49C12.16 11.49 12.16 11.49 12.17 11.49C14.73 11.4 16.74 9.32 16.75 6.75C16.75 4.13 14.62 2 12 2Z",fill:"currentColor"}),j.jsx("path",{d:"M17.0809 14.1489C14.2909 12.2889 9.74094 12.2889 6.93094 14.1489C5.66094 14.9989 4.96094 16.1489 4.96094 17.3789C4.96094 18.6089 5.66094 19.7489 6.92094 20.5889C8.32094 21.5289 10.1609 21.9989 12.0009 21.9989C13.8409 21.9989 15.6809 21.5289 17.0809 20.5889C18.3409 19.7389 19.0409 18.5989 19.0409 17.3589C19.0309 16.1289 18.3409 14.9889 17.0809 14.1489Z",fill:"currentColor"})]}),[ow,n5]=Ho({name:"AvatarGroupContext",strict:!1}),o5=globalThis!=null&&globalThis.document?f.useLayoutEffect:f.useEffect;function a5(e={}){const{loading:t,src:r,srcSet:n,onLoad:o,onError:a,crossOrigin:s,sizes:i,ignoreFallback:l}=e,[c,u]=f.useState("pending");f.useEffect(()=>{u(r?"loading":"pending")},[r]);const d=f.useRef(),h=f.useCallback(()=>{if(!r)return;p();const m=new Image;m.src=r,s&&(m.crossOrigin=s),n&&(m.srcset=n),i&&(m.sizes=i),t&&(m.loading=t),m.onload=y=>{p(),u("loaded"),o==null||o(y)},m.onerror=y=>{p(),u("failed"),a==null||a(y)},d.current=m},[r,s,n,i,o,a,t]),p=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return o5(()=>{if(!l)return c==="loading"&&h(),()=>{p()}},[c,h,l]),l?"loaded":c}function s5(e={}){var t,r,n,o,a;const s=n5(),i=!!s,{as:l,ref:c,src:u,name:d,icon:h,classNames:p,fallback:m,alt:y=d||"avatar",imgRef:b,color:C=(t=s==null?void 0:s.color)!=null?t:"default",radius:x=(r=s==null?void 0:s.radius)!=null?r:"full",size:P=(n=s==null?void 0:s.size)!=null?n:"md",isBordered:E=(o=s==null?void 0:s.isBordered)!=null?o:!1,isDisabled:S=(a=s==null?void 0:s.isDisabled)!=null?a:!1,isFocusable:N=!1,getInitials:L=i1,ignoreFallback:g=!1,showFallback:A=!1,ImgComponent:I="img",imgProps:T,className:D,onError:w,...M}=e,O=l||"span",F=nt(c),$=nt(b),{isFocusVisible:V,isFocused:Y,focusProps:K}=Mt(),{isHovered:R,hoverProps:re}=mr({isDisabled:S}),ie=a5({src:u,onError:w,ignoreFallback:g})==="loaded",ee=(!u||!ie)&&A,te=f.useMemo(()=>{var pe;return a1({color:C,radius:x,size:P,isBordered:E,isDisabled:S,isInGroup:i,isInGridGroup:(pe=s==null?void 0:s.isGrid)!=null?pe:!1})},[C,x,P,E,S,i,s==null?void 0:s.isGrid]),ve=me(p==null?void 0:p.base,D),be=f.useMemo(()=>N||l==="button",[N,l]),fe=f.useCallback((pe={})=>({ref:F,tabIndex:be?0:-1,"data-hover":Q(R),"data-focus":Q(Y),"data-focus-visible":Q(V),className:te.base({class:me(ve,pe==null?void 0:pe.className)}),...se(M,re,be?K:{})}),[be,te,ve,K,M]),de=f.useCallback((pe={})=>({ref:$,src:u,"data-loaded":Q(ie),className:te.img({class:p==null?void 0:p.img}),...se(T,pe)}),[te,ie,T,u,$]);return{Component:O,ImgComponent:I,src:u,alt:y,icon:h,name:d,imgRef:$,slots:te,classNames:p,fallback:m,isImgLoaded:ie,showFallback:ee,ignoreFallback:g,getInitials:L,getAvatarProps:fe,getImageProps:de}}var sp=vt((e,t)=>{const{Component:r,ImgComponent:n,src:o,icon:a=j.jsx(r5,{}),alt:s,classNames:i,slots:l,name:c,showFallback:u,fallback:d,getInitials:h,getAvatarProps:p,getImageProps:m}=s5({...e,ref:t}),y=f.useMemo(()=>!u&&o?null:d?j.jsx("div",{"aria-label":s,className:l.fallback({class:i==null?void 0:i.fallback}),role:"img",children:d}):c?j.jsx("span",{"aria-label":s,className:l.name({class:i==null?void 0:i.name}),role:"img",children:h(c)}):j.jsx("span",{"aria-label":s,className:l.icon({class:i==null?void 0:i.icon}),role:"img",children:a}),[u,o,d,c,i]);return j.jsxs(r,{...p(),children:[o&&j.jsx(n,{...m(),alt:s}),y]})});sp.displayName="NextUI.Avatar";var i5=sp,[aw,l5]=Ho({name:"ButtonGroupContext",strict:!1});function c5(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:a,onPressEnd:s,onPressChange:i,preventFocusOnPress:l,allowFocusWhenDisabled:c,onClick:u,href:d,target:h,rel:p,type:m="button",allowTextSelectionOnPress:y}=e,b;r==="button"?b={type:m,disabled:n}:b={role:"button",tabIndex:n?void 0:0,href:r==="a"&&n?void 0:d,target:r==="a"?h:void 0,type:r==="input"?m:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?p:void 0};let{pressProps:C,isPressed:x}=In({onPressStart:a,onPressEnd:s,onPressChange:i,onPress:o,isDisabled:n,preventFocusOnPress:l,allowTextSelectionOnPress:y,ref:t}),{focusableProps:P}=Bo(e,t);c&&(P.tabIndex=n?-1:P.tabIndex);let E=se(P,C,Vr(e,{labelable:!0}));return{isPressed:x,buttonProps:se(b,E,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:S=>{u==null||u(S)}})}}var u5=(e,t,r)=>Math.min(Math.max(e,t),r),ip=e=>{const{ripples:t=[],motionProps:r,color:n="currentColor",style:o,onClear:a}=e;return j.jsx(j.Fragment,{children:t.map(s=>{const i=u5(.01*s.size,.2,s.size>100?.75:.5);return j.jsx(z2,{mode:"popLayout",children:j.jsx(Xf.span,{animate:{transform:"scale(2)",opacity:0},className:"nextui-ripple",exit:{opacity:0},initial:{transform:"scale(0)",opacity:.35},style:{position:"absolute",backgroundColor:n,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",zIndex:10,top:s.y,left:s.x,width:`${s.size}px`,height:`${s.size}px`,...o},transition:{duration:i},onAnimationComplete:()=>{a(s.key)},...r})},s.key)})})};ip.displayName="NextUI.Ripple";var d5=ip;function f5(e={}){const[t,r]=f.useState([]),n=f.useCallback(a=>{const s=a.currentTarget,i=Math.max(s.clientWidth,s.clientHeight),l=s.getBoundingClientRect();r(c=>[...c,{key:l1(c.length.toString()),size:i,x:a.clientX-l.x-i/2,y:a.clientY-l.y-i/2}])},[]),o=f.useCallback(a=>{r(s=>s.filter(i=>i.key!==a))},[]);return{ripples:t,onClick:n,onClear:o,...e}}function p5(e){var t,r,n,o,a,s,i,l;const c=l5(),u=!!c,{ref:d,as:h,children:p,startContent:m,endContent:y,autoFocus:b,className:C,spinner:x,fullWidth:P=(t=c==null?void 0:c.fullWidth)!=null?t:!1,size:E=(r=c==null?void 0:c.size)!=null?r:"md",color:S=(n=c==null?void 0:c.color)!=null?n:"default",variant:N=(o=c==null?void 0:c.variant)!=null?o:"solid",disableAnimation:L=(a=c==null?void 0:c.disableAnimation)!=null?a:!1,radius:g=c==null?void 0:c.radius,disableRipple:A=(s=c==null?void 0:c.disableRipple)!=null?s:!1,isDisabled:I=(i=c==null?void 0:c.isDisabled)!=null?i:!1,isIconOnly:T=(l=c==null?void 0:c.isIconOnly)!=null?l:!1,isLoading:D=!1,spinnerPlacement:w="start",onPress:M,onClick:O,...F}=e,$=h||"button",V=typeof $=="string",Y=nt(d),{isFocusVisible:K,isFocused:R,focusProps:re}=Mt({autoFocus:b}),H=I||D,ie=f.useMemo(()=>s1({size:E,color:S,variant:N,radius:g,fullWidth:P,isDisabled:H,isInGroup:u,disableAnimation:L,isIconOnly:T,className:C}),[E,S,N,g,P,H,u,T,L,C]),{onClick:ee,onClear:te,ripples:ve}=f5(),be=f.useCallback(De=>{A||H||L||Y.current&&ee(De)},[A,H,L,Y,ee]),{buttonProps:fe,isPressed:de}=c5({elementType:h,isDisabled:H,onPress:M,onClick:dr(O,be),...F},Y),{isHovered:pe,hoverProps:Te}=mr({isDisabled:H}),Ee=f.useCallback((De={})=>({"data-disabled":Q(H),"data-focus":Q(R),"data-pressed":Q(de),"data-focus-visible":Q(K),"data-hover":Q(pe),"data-loading":Q(D),...se(fe,re,Te,Dn(F,{enabled:V}),Dn(De))}),[D,H,R,de,V,K,pe,fe,re,Te,F]),oe=De=>f.isValidElement(De)?f.cloneElement(De,{"aria-hidden":!0,focusable:!1,tabIndex:-1}):null,X=oe(m),Oe=oe(y),_e=f.useMemo(()=>({sm:"sm",md:"sm",lg:"md"})[E],[E]),Fe=f.useCallback(()=>({ripples:ve,onClear:te}),[ve,te]);return{Component:$,children:p,domRef:Y,spinner:x,styles:ie,startContent:X,endContent:Oe,isLoading:D,spinnerPlacement:w,spinnerSize:_e,disableRipple:A,getButtonProps:Ee,getRippleProps:Fe,isIconOnly:T}}function h5(e){const[t,r]=Sn(e,su.variantKeys),{children:n,className:o,classNames:a,label:s,...i}=t,l=f.useMemo(()=>su({...r}),[...Object.values(r)]),c=me(a==null?void 0:a.base,o),u=s||n,d=f.useMemo(()=>u&&typeof u=="string"?u:i["aria-label"]?"":"Loading",[n,u,i["aria-label"]]),h=f.useCallback(()=>({"aria-label":d,className:l.base({class:c}),...i}),[d,l,c,i]);return{label:u,slots:l,classNames:a,getSpinnerProps:h}}var lp=vt((e,t)=>{const{slots:r,classNames:n,label:o,getSpinnerProps:a}=h5({...e});return j.jsxs("div",{ref:t,...a(),children:[j.jsxs("div",{className:r.wrapper({class:n==null?void 0:n.wrapper}),children:[j.jsx("i",{className:r.circle1({class:n==null?void 0:n.circle1})}),j.jsx("i",{className:r.circle2({class:n==null?void 0:n.circle2})})]}),o&&j.jsx("span",{className:r.label(),children:o})]})});lp.displayName="NextUI.Spinner";var m5=lp,cp=vt((e,t)=>{const{Component:r,domRef:n,children:o,styles:a,spinnerSize:s,spinner:i=j.jsx(m5,{color:"current",size:s}),spinnerPlacement:l,startContent:c,endContent:u,isLoading:d,disableRipple:h,getButtonProps:p,getRippleProps:m,isIconOnly:y}=p5({...e,ref:t});return j.jsxs(r,{ref:n,className:a,...p(),children:[c,d&&l==="start"&&i,d&&y?null:o,d&&l==="end"&&i,u,!h&&j.jsx(d5,{...m()})]})});cp.displayName="NextUI.Button";var g5=cp;function v5(e){const[t,r]=Sn(e,uu.variantKeys),{ref:n,as:o,children:a,avatar:s,startContent:i,endContent:l,onClose:c,classNames:u,className:d,...h}=t,p=o||"div",m=nt(n),y=me(u==null?void 0:u.base,d),b=!!c,C=e.variant==="dot",{focusProps:x,isFocusVisible:P}=Mt(),E=f.useMemo(()=>typeof a=="string"&&(a==null?void 0:a.length)===1,[a]),S=f.useMemo(()=>!!s||!!i,[s,i]),N=f.useMemo(()=>!!l||b,[l,b]),L=f.useMemo(()=>uu({...r,hasStartContent:S,hasEndContent:N,isOneChar:E,isCloseable:b,isCloseButtonFocusVisible:P}),[...Object.values(r),P,S,N,E,b]),{pressProps:g}=In({isDisabled:!!(e!=null&&e.isDisabled),onPress:c}),A=()=>({ref:m,className:L.base({class:y}),...h}),I=()=>({role:"button",tabIndex:0,className:L.closeButton({class:u==null?void 0:u.closeButton}),...se(g,x)}),T=w=>f.isValidElement(w)?f.cloneElement(w,{className:L.avatar({class:u==null?void 0:u.avatar})}):null,D=w=>f.isValidElement(w)?f.cloneElement(w,{className:me("max-h-[80%]",w.props.className)}):null;return{Component:p,children:a,slots:L,classNames:u,isDot:C,isCloseable:b,startContent:T(s)||D(i),endContent:D(l),getCloseButtonProps:I,getChipProps:A}}var up=vt((e,t)=>{const{Component:r,children:n,slots:o,classNames:a,isDot:s,isCloseable:i,startContent:l,endContent:c,getCloseButtonProps:u,getChipProps:d}=v5({...e,ref:t}),h=f.useMemo(()=>s&&!l?j.jsx("span",{className:o.dot({class:a==null?void 0:a.dot})}):l,[o,l,s]),p=f.useMemo(()=>i?j.jsx("span",{...u(),children:c||j.jsx(I1,{})}):c,[c,i,u]);return j.jsxs(r,{...d(),children:[h,j.jsx("span",{className:o.content({class:a==null?void 0:a.content}),children:n}),p]})});up.displayName="NextUI.Chip";var b5=up;function zi(e,t,r){let{validationBehavior:n,focus:o}=e;kt(()=>{if(n==="native"&&(r!=null&&r.current)){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(l),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(x5(r.current))}});let a=We(()=>{t.resetValidation()}),s=We(l=>{var c;t.displayValidation.isInvalid||t.commitValidation();let u=r==null||(c=r.current)===null||c===void 0?void 0:c.form;if(!l.defaultPrevented&&r&&u&&w5(u)===r.current){var d;o?o():(d=r.current)===null||d===void 0||d.focus(),kg("keyboard")}l.preventDefault()}),i=We(()=>{t.commitValidation()});f.useEffect(()=>{let l=r==null?void 0:r.current;if(!l)return;let c=l.form;return l.addEventListener("invalid",s),l.addEventListener("change",i),c==null||c.addEventListener("reset",a),()=>{l.removeEventListener("invalid",s),l.removeEventListener("change",i),c==null||c.removeEventListener("reset",a)}},[r,s,i,a,n])}function y5(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function x5(e){return{isInvalid:!e.validity.valid,validationDetails:y5(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function w5(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(!r.validity.valid)return r}return null}const dp={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},fp={...dp,customError:!0,valid:!1},en={isInvalid:!1,validationDetails:dp,validationErrors:[]},C5=f.createContext({}),Wi="__formValidationState"+Date.now();function xa(e){if(e[Wi]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:a}=e[Wi];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:a}}return P5(e)}function P5(e){let{isInvalid:t,validationState:r,name:n,value:o,builtinValidation:a,validate:s,validationBehavior:i="aria"}=e;r&&(t||(t=r==="invalid"));let l=t?{isInvalid:!0,validationErrors:[],validationDetails:fp}:null,c=f.useMemo(()=>pp(M5(s,o)),[s,o]);a!=null&&a.validationDetails.valid&&(a=null);let u=f.useContext(C5),d=f.useMemo(()=>n?Array.isArray(n)?n.flatMap(I=>Bi(u[I])):Bi(u[n]):[],[u,n]),[h,p]=f.useState(u),[m,y]=f.useState(!1);u!==h&&(p(u),y(!1));let b=f.useMemo(()=>pp(m?[]:d),[m,d]),C=f.useRef(en),[x,P]=f.useState(en),E=f.useRef(en),S=()=>{if(!N)return;L(!1);let I=c||a||C.current;Ri(I,E.current)||(E.current=I,P(I))},[N,L]=f.useState(!1);return f.useEffect(S),{realtimeValidation:l||b||c||a||en,displayValidation:i==="native"?l||b||x:l||b||c||a||x,updateValidation(I){i==="aria"&&!Ri(x,I)?P(I):C.current=I},resetValidation(){let I=en;Ri(I,E.current)||(E.current=I,P(I)),i==="native"&&L(!1),y(!0)},commitValidation(){i==="native"&&L(!0),y(!0)}}}function Bi(e){return e?Array.isArray(e)?e:[e]:[]}function M5(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return Bi(r)}return[]}function pp(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:fp}:null}function Ri(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,n)=>r===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([r,n])=>t.validationDetails[r]===n)}function hp(e,t,r){let{isDisabled:n=!1,isReadOnly:o=!1,value:a,name:s,children:i,"aria-label":l,"aria-labelledby":c,validationState:u="valid",isInvalid:d}=e,h=N=>{N.stopPropagation(),t.setSelected(N.target.checked)},p=i!=null,m=l!=null||c!=null;!p&&!m&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:y,isPressed:b}=fr({isDisabled:n}),{pressProps:C,isPressed:x}=fr({isDisabled:n||o,onPress(){t.toggle()}}),{focusableProps:P}=Bo(e,r),E=se(y,P),S=Vr(e,{labelable:!0});return bs(r,t.isSelected,t.setSelected),{labelProps:se(C,{onClick:N=>N.preventDefault()}),inputProps:se(S,{"aria-invalid":d||u==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:h,disabled:n,...a==null?{}:{value:a},name:s,type:"checkbox",...E}),isSelected:t.isSelected,isPressed:b||x,isDisabled:n,isReadOnly:o,isInvalid:d||u==="invalid"}}function T5(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:a="label"}=e;t=Fr(t);let s=Fr(),i={};r?(n=n?`${s} ${n}`:s,i={id:s,htmlFor:a==="label"?t:void 0}):!n&&!o&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=ms({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:i,fieldProps:l}}function mp(e){let{description:t,errorMessage:r,isInvalid:n,validationState:o}=e,{labelProps:a,fieldProps:s}=T5(e),i=Sc([!!t,!!r,n,o]),l=Sc([!!t,!!r,n,o]);return s=se(s,{"aria-describedby":[i,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:s,descriptionProps:{id:i},errorMessageProps:{id:l}}}function Ki(e={}){let{isReadOnly:t}=e,[r,n]=_r(e.isSelected,e.defaultSelected||!1,e.onChange);function o(s){t||n(s)}function a(){t||n(!r)}return{isSelected:r,setSelected:o,toggle:a}}function gp(e,t,r){let n=xa({...e,value:t.isSelected}),{isInvalid:o,validationErrors:a,validationDetails:s}=n.displayValidation,{labelProps:i,inputProps:l,isSelected:c,isPressed:u,isDisabled:d,isReadOnly:h}=hp({...e,isInvalid:o},t,r);zi(e,n,r);let{isIndeterminate:p,isRequired:m,validationBehavior:y="aria"}=e;return f.useEffect(()=>{r.current&&(r.current.indeterminate=!!p)}),{labelProps:i,inputProps:{...l,checked:c,"aria-required":m&&y==="aria"||void 0,required:m&&y==="native"},isSelected:c,isPressed:u,isDisabled:d,isReadOnly:h,isInvalid:o,validationErrors:a,validationDetails:s}}const E5=new WeakMap;function S5(e,t,r){const n=Ki({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(b){b?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(b)}});let{name:o,descriptionId:a,errorMessageId:s,validationBehavior:i}=E5.get(t);var l;i=(l=e.validationBehavior)!==null&&l!==void 0?l:i;let{realtimeValidation:c}=xa({...e,value:n.isSelected,name:void 0,validationBehavior:"aria"}),u=f.useRef(en),d=()=>{t.setInvalid(e.value,c.isInvalid?c:u.current)};f.useEffect(d);let h=t.realtimeValidation.isInvalid?t.realtimeValidation:c,p=i==="native"?t.displayValidation:h;var m;let y=gp({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||o,isRequired:(m=e.isRequired)!==null&&m!==void 0?m:t.isRequired,validationBehavior:i,[Wi]:{realtimeValidation:h,displayValidation:p,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(b){u.current=b,d()}}},n,r);return{...y,inputProps:{...y.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?s:null,a].filter(Boolean).join(" ")||void 0}}}var[sw,$5]=Ho({name:"CheckboxGroupContext",strict:!1});function D5(e){const{isSelected:t,disableAnimation:r,...n}=e;return j.jsx("svg",{"aria-hidden":"true",role:"presentation",viewBox:"0 0 17 18",...n,children:j.jsx("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,style:!r&&t?{transition:"stroke-dashoffset 250ms linear 0.2s"}:{}})})}function I5(e){const{isSelected:t,disableAnimation:r,...n}=e;return j.jsx("svg",{stroke:"currentColor",strokeWidth:3,viewBox:"0 0 24 24",...n,children:j.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function k5(e){const{isIndeterminate:t,...r}=e,n=t?I5:D5;return j.jsx(n,{...r})}function A5(e={}){var t,r,n,o,a,s;const i=$5(),l=!!i,{as:c,ref:u,value:d="",children:h,icon:p,name:m,isRequired:y=!1,isReadOnly:b=!1,autoFocus:C=!1,isSelected:x,validationState:P,size:E=(t=i==null?void 0:i.size)!=null?t:"md",color:S=(r=i==null?void 0:i.color)!=null?r:"primary",radius:N=i==null?void 0:i.radius,lineThrough:L=(n=i==null?void 0:i.lineThrough)!=null?n:!1,isDisabled:g=(o=i==null?void 0:i.isDisabled)!=null?o:!1,disableAnimation:A=(a=i==null?void 0:i.disableAnimation)!=null?a:!1,isInvalid:I=P?P==="invalid":(s=i==null?void 0:i.isInvalid)!=null?s:!1,isIndeterminate:T=!1,defaultSelected:D,classNames:w,onChange:M,className:O,onValueChange:F,...$}=e;i&&pu&&(x&&Uo("The Checkbox.Group is being used, `isSelected` will be ignored. Use the `value` of the Checkbox.Group instead.","Checkbox"),D&&Uo("The Checkbox.Group is being used, `defaultSelected` will be ignored. Use the `defaultValue` of the Checkbox.Group instead.","Checkbox"));const V=c||"label",Y=f.useRef(null),K=hu(u,Y),R=f.useId(),re=f.useMemo(()=>({name:m,value:d,children:h,autoFocus:C,defaultSelected:D,isIndeterminate:T,isRequired:y,isInvalid:I,isSelected:x,isDisabled:g,isReadOnly:b,"aria-label":_s($["aria-label"],h),"aria-labelledby":$["aria-labelledby"]||R,onChange:F}),[d,m,R,h,C,I,T,g,b,x,D,$["aria-label"],$["aria-labelledby"],F]),{inputProps:H,isSelected:ie,isDisabled:ee,isReadOnly:te,isPressed:ve}=l?S5({...re,isInvalid:I},i.groupState,Y):gp(re,Ki(re),Y),be=ee||te,[fe,de]=f.useState(!1),{pressProps:pe}=In({isDisabled:be,onPressStart(Ge){Ge.pointerType!=="keyboard"&&de(!0)},onPressEnd(Ge){Ge.pointerType!=="keyboard"&&de(!1)}}),Te=be?!1:fe||ve;y&&(H.required=!0);const{hoverProps:Ee,isHovered:oe}=mr({isDisabled:H.disabled}),{focusProps:X,isFocused:Oe,isFocusVisible:_e}=Mt({autoFocus:H.autoFocus}),Fe=f.useMemo(()=>o1({color:S,size:E,radius:N,isInvalid:I,lineThrough:L,isDisabled:ee,disableAnimation:A}),[S,E,N,I,L,ee,A]),De=me(w==null?void 0:w.base,O),It=f.useCallback(()=>({ref:K,className:Fe.base({class:De}),"data-disabled":Q(ee),"data-selected":Q(ie||T),"data-invalid":Q(I),"data-hover":Q(oe),"data-focus":Q(Oe),"data-pressed":Q(Te),"data-readonly":Q(H.readOnly),"data-focus-visible":Q(_e),"data-indeterminate":Q(T),...se(Ee,pe,$)}),[Fe,De,ee,ie,T,I,oe,Oe,Te,H.readOnly,_e,Ee,pe,$]),mt=f.useCallback((Ge={})=>({...Ge,"aria-hidden":!0,className:me(Fe.wrapper({class:me(w==null?void 0:w.wrapper,Ge==null?void 0:Ge.className)}))}),[Fe,w==null?void 0:w.wrapper]),Je=f.useCallback(()=>({ref:Y,...se(H,X),onChange:dr(H.onChange,M)}),[H,X,M]),Ir=f.useCallback(()=>({id:R,className:Fe.label({class:w==null?void 0:w.label})}),[Fe,w==null?void 0:w.label,ee,ie,I]),Ye=f.useCallback(()=>({isSelected:ie,isIndeterminate:!!T,disableAnimation:!!A,className:Fe.icon({class:w==null?void 0:w.icon})}),[Fe,w==null?void 0:w.icon,ie,T,A]);return{Component:V,icon:p,children:h,isSelected:ie,isDisabled:ee,isInvalid:I,isFocused:Oe,isHovered:oe,isFocusVisible:_e,getBaseProps:It,getWrapperProps:mt,getInputProps:Je,getLabelProps:Ir,getIconProps:Ye}}var vp=vt((e,t)=>{const{Component:r,children:n,icon:o=j.jsx(k5,{}),getBaseProps:a,getWrapperProps:s,getInputProps:i,getIconProps:l,getLabelProps:c}=A5({...e,ref:t}),u=typeof o=="function"?o(l()):f.cloneElement(o,l());return j.jsxs(r,{...a(),children:[j.jsx(Ns,{children:j.jsx("input",{...i()})}),j.jsx("span",{...s(),children:u}),n&&j.jsx("span",{...c(),children:n})]})});vp.displayName="NextUI.Checkbox";var O5=vp;const bp=e=>typeof e=="object"&&e!=null&&e.nodeType===1,yp=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Ui=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return yp(r.overflowY,t)||yp(r.overflowX,t)||(n=>{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!o&&(o.clientHeight<n.scrollHeight||o.clientWidth<n.scrollWidth)})(e)}return!1},wa=(e,t,r,n,o,a,s,i)=>a<e&&s>t||a>e&&s<t?0:a<=e&&i<=r||s>=t&&i>=r?a-e-n:s>t&&i<r||a<e&&i>r?s-t+o:0,N5=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},xp=(e,t)=>{var r,n,o,a;if(typeof document>"u")return[];const{scrollMode:s,block:i,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d=typeof c=="function"?c:F=>F!==c;if(!bp(e))throw new TypeError("Invalid target");const h=document.scrollingElement||document.documentElement,p=[];let m=e;for(;bp(m)&&d(m);){if(m=N5(m),m===h){p.push(m);break}m!=null&&m===document.body&&Ui(m)&&!Ui(document.documentElement)||m!=null&&Ui(m,u)&&p.push(m)}const y=(n=(r=window.visualViewport)==null?void 0:r.width)!=null?n:innerWidth,b=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:C,scrollY:x}=window,{height:P,width:E,top:S,right:N,bottom:L,left:g}=e.getBoundingClientRect(),{top:A,right:I,bottom:T,left:D}=(F=>{const $=window.getComputedStyle(F);return{top:parseFloat($.scrollMarginTop)||0,right:parseFloat($.scrollMarginRight)||0,bottom:parseFloat($.scrollMarginBottom)||0,left:parseFloat($.scrollMarginLeft)||0}})(e);let w=i==="start"||i==="nearest"?S-A:i==="end"?L+T:S+P/2-A+T,M=l==="center"?g+E/2-D+I:l==="end"?N+I:g-D;const O=[];for(let F=0;F<p.length;F++){const $=p[F],{height:V,width:Y,top:K,right:R,bottom:re,left:H}=$.getBoundingClientRect();if(s==="if-needed"&&S>=0&&g>=0&&L<=b&&N<=y&&S>=K&&L<=re&&g>=H&&N<=R)return O;const ie=getComputedStyle($),ee=parseInt(ie.borderLeftWidth,10),te=parseInt(ie.borderTopWidth,10),ve=parseInt(ie.borderRightWidth,10),be=parseInt(ie.borderBottomWidth,10);let fe=0,de=0;const pe="offsetWidth"in $?$.offsetWidth-$.clientWidth-ee-ve:0,Te="offsetHeight"in $?$.offsetHeight-$.clientHeight-te-be:0,Ee="offsetWidth"in $?$.offsetWidth===0?0:Y/$.offsetWidth:0,oe="offsetHeight"in $?$.offsetHeight===0?0:V/$.offsetHeight:0;if(h===$)fe=i==="start"?w:i==="end"?w-b:i==="nearest"?wa(x,x+b,b,te,be,x+w,x+w+P,P):w-b/2,de=l==="start"?M:l==="center"?M-y/2:l==="end"?M-y:wa(C,C+y,y,ee,ve,C+M,C+M+E,E),fe=Math.max(0,fe+x),de=Math.max(0,de+C);else{fe=i==="start"?w-K-te:i==="end"?w-re+be+Te:i==="nearest"?wa(K,re,V,te,be+Te,w,w+P,P):w-(K+V/2)+Te/2,de=l==="start"?M-H-ee:l==="center"?M-(H+Y/2)+pe/2:l==="end"?M-R+ve+pe:wa(H,R,Y,ee,ve+pe,M,M+E,E);const{scrollLeft:X,scrollTop:Oe}=$;fe=oe===0?0:Math.max(0,Math.min(Oe+fe/oe,$.scrollHeight-V/oe+Te)),de=Ee===0?0:Math.max(0,Math.min(X+de/Ee,$.scrollWidth-Y/Ee+pe)),w+=Oe-fe,M+=X-de}O.push({el:$,top:fe,left:de})}return O},L5=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function j5(e,t){if(!e.isConnected||!(n=>{let o=n;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;if((n=>typeof n=="object"&&typeof n.behavior=="function")(t))return t.behavior(xp(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:n,top:o,left:a}of xp(e,L5(t)))n.scroll({top:o,left:a,behavior:r})}let _5=Math.round(Math.random()*1e10),F5=0;function V5(e){let t=f.useMemo(()=>e.name||`radio-group-${_5}-${++F5}`,[e.name]);var r;let[n,o]=_r(e.value,(r=e.defaultValue)!==null&&r!==void 0?r:null,e.onChange),[a,s]=f.useState(null),i=xa({...e,value:n}),l=u=>{!e.isReadOnly&&!e.isDisabled&&(o(u),i.commitValidation())},c=i.displayValidation.isInvalid;return{...i,name:t,selectedValue:n,setSelectedValue:l,lastFocusedValue:a,setLastFocusedValue:s,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(c?"invalid":null),isInvalid:c}}const wp=new WeakMap;function z5(e,t,r){let{value:n,children:o,"aria-label":a,"aria-labelledby":s}=e;const i=e.isDisabled||t.isDisabled;let l=o!=null,c=a!=null||s!=null;!l&&!c&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let u=t.selectedValue===n,d=g=>{g.stopPropagation(),t.setSelectedValue(n)},{pressProps:h,isPressed:p}=fr({isDisabled:i}),{pressProps:m,isPressed:y}=fr({isDisabled:i,onPress(){t.setSelectedValue(n)}}),{focusableProps:b}=Bo(se(e,{onFocus:()=>t.setLastFocusedValue(n)}),r),C=se(h,b),x=Vr(e,{labelable:!0}),P=-1;t.selectedValue!=null?t.selectedValue===n&&(P=0):(t.lastFocusedValue===n||t.lastFocusedValue==null)&&(P=0),i&&(P=void 0);let{name:E,descriptionId:S,errorMessageId:N,validationBehavior:L}=wp.get(t);return bs(r,t.selectedValue,t.setSelectedValue),zi({validationBehavior:L},t,r),{labelProps:se(m,{onClick:g=>g.preventDefault()}),inputProps:se(x,{...C,type:"radio",name:E,tabIndex:P,disabled:i,required:t.isRequired&&L==="native",checked:u,value:n,onChange:d,"aria-describedby":[e["aria-describedby"],t.isInvalid?N:null,S].filter(Boolean).join(" ")||void 0}),isDisabled:i,isSelected:u,isPressed:p||y}}function W5(e,t){let{name:r,isReadOnly:n,isRequired:o,isDisabled:a,orientation:s="vertical",validationBehavior:i="aria"}=e,{direction:l}=xs(),{isInvalid:c,validationErrors:u,validationDetails:d}=t.displayValidation,{labelProps:h,fieldProps:p,descriptionProps:m,errorMessageProps:y}=mp({...e,labelElementType:"span",isInvalid:t.isInvalid,errorMessage:e.errorMessage||u}),b=Vr(e,{labelable:!0}),{focusWithinProps:C}=Vo({onBlurWithin(E){var S;(S=e.onBlur)===null||S===void 0||S.call(e,E),t.selectedValue||t.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),x=E=>{let S;switch(E.key){case"ArrowRight":l==="rtl"&&s!=="vertical"?S="prev":S="next";break;case"ArrowLeft":l==="rtl"&&s!=="vertical"?S="next":S="prev";break;case"ArrowDown":S="next";break;case"ArrowUp":S="prev";break;default:return}E.preventDefault();let N=As(E.currentTarget,{from:E.target}),L;S==="next"?(L=N.nextNode(),L||(N.currentNode=E.currentTarget,L=N.firstChild())):(L=N.previousNode(),L||(N.currentNode=E.currentTarget,L=N.lastChild())),L&&(L.focus(),t.setSelectedValue(L.value))},P=Fr(r);return wp.set(t,{name:P,descriptionId:m.id,errorMessageId:y.id,validationBehavior:i}),{radioGroupProps:se(b,{role:"radiogroup",onKeyDown:x,"aria-invalid":t.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":n||void 0,"aria-required":o||void 0,"aria-disabled":a||void 0,"aria-orientation":s,...p,...C}),labelProps:h,descriptionProps:m,errorMessageProps:y,isInvalid:c,validationErrors:u,validationDetails:d}}function B5(e){const{as:t,ref:r,classNames:n,children:o,label:a,value:s,name:i,size:l="md",color:c="primary",isDisabled:u=!1,disableAnimation:d=!1,orientation:h="vertical",isRequired:p=!1,validationState:m,isInvalid:y=m==="invalid",isReadOnly:b,errorMessage:C,description:x,className:P,onChange:E,onValueChange:S,...N}=e,L=t||"div",g=nt(r),A=f.useMemo(()=>({...N,value:s,name:i,"aria-label":_s(N["aria-label"],a),isRequired:p,isReadOnly:b,isInvalid:y,orientation:h,onChange:S}),[N,s,i,a,p,b,y,h,S]),I=V5(A),{labelProps:T,radioGroupProps:D,errorMessageProps:w,descriptionProps:M}=W5(A,I),O=f.useMemo(()=>({size:l,color:c,groupState:I,isRequired:p,isInvalid:y,isDisabled:u,disableAnimation:d,onChange:E}),[l,c,p,u,y,E,d,I.name,I==null?void 0:I.isDisabled,I==null?void 0:I.isReadOnly,I==null?void 0:I.isRequired,I==null?void 0:I.selectedValue,I==null?void 0:I.lastFocusedValue]),F=f.useMemo(()=>n1({isRequired:p,isInvalid:y,disableAnimation:d}),[y,p,d]),$=me(n==null?void 0:n.base,P),V=f.useCallback(()=>({ref:g,className:F.base({class:$}),...se(D,N)}),[g,F,$,D,N]),Y=f.useCallback(()=>({className:F.label({class:n==null?void 0:n.label}),...T}),[F,n==null?void 0:n.label,T,n==null?void 0:n.label]),K=f.useCallback(()=>({className:F.wrapper({class:n==null?void 0:n.wrapper}),role:"presentation","data-orientation":h}),[F,n==null?void 0:n.wrapper,h,F.wrapper]),R=f.useCallback((H={})=>({...H,...M,className:F.description({class:me(n==null?void 0:n.description,H==null?void 0:H.className)})}),[F,n==null?void 0:n.description,M,F.description]),re=f.useCallback((H={})=>({...H,...w,className:F.errorMessage({class:me(n==null?void 0:n.errorMessage,H==null?void 0:H.className)})}),[F,n==null?void 0:n.errorMessage,w]);return{Component:L,children:o,label:a,context:O,errorMessage:C,description:x,getGroupProps:V,getLabelProps:Y,getWrapperProps:K,getDescriptionProps:R,getErrorMessageProps:re}}var[R5,K5]=Ho({name:"RadioGroupContext",strict:!1}),Cp=vt((e,t)=>{const{Component:r,children:n,label:o,context:a,description:s,errorMessage:i,getGroupProps:l,getLabelProps:c,getWrapperProps:u,getDescriptionProps:d,getErrorMessageProps:h}=B5({...e,ref:t});return j.jsxs(r,{...l(),children:[o&&j.jsx("span",{...c(),children:o}),j.jsx("div",{...u(),children:j.jsx(R5,{value:a,children:n})}),i?j.jsx("div",{...h(),children:i}):s?j.jsx("div",{...d(),children:s}):null]})});Cp.displayName="NextUI.RadioGroup";var U5=Cp;function H5(e){var t,r,n,o;const a=K5(),{as:s,ref:i,classNames:l,id:c,value:u,children:d,description:h,size:p=(t=a==null?void 0:a.size)!=null?t:"md",color:m=(r=a==null?void 0:a.color)!=null?r:"primary",isDisabled:y=(n=a==null?void 0:a.isDisabled)!=null?n:!1,disableAnimation:b=(o=a==null?void 0:a.disableAnimation)!=null?o:!1,onChange:C=a==null?void 0:a.onChange,autoFocus:x=!1,className:P,...E}=e;a&&pu&&("checked"in E&&Uo('Remove props "checked" if in the Radio.Group.',"Radio"),u===void 0&&Uo('Props "value" must be defined if in the Radio.Group.',"Radio"));const S=s||"label",N=nt(i),L=f.useRef(null),g=f.useId(),A=f.useMemo(()=>{var oe;return(oe=a.isRequired)!=null?oe:!1},[a.isRequired]),I=a.isInvalid,T=f.useMemo(()=>{const oe=E["aria-label"]||typeof d=="string"?d:void 0,X=E["aria-describedby"]||typeof h=="string"?h:void 0;return{id:c,isRequired:A,isDisabled:y,"aria-label":oe,"aria-labelledby":E["aria-labelledby"]||g,"aria-describedby":X}},[g,c,y,A]),{inputProps:D,isDisabled:w,isSelected:M,isPressed:O}=z5({value:u,children:d,...a,...T},a.groupState,L),{focusProps:F,isFocused:$,isFocusVisible:V}=Mt({autoFocus:x}),Y=w||D.readOnly,[K,R]=f.useState(!1),{pressProps:re}=In({isDisabled:Y,onPressStart(oe){oe.pointerType!=="keyboard"&&R(!0)},onPressEnd(oe){oe.pointerType!=="keyboard"&&R(!1)}}),{hoverProps:H,isHovered:ie}=mr({isDisabled:Y}),ee=Y?!1:K||O,te=f.useMemo(()=>r1({color:m,size:p,isInvalid:I,isDisabled:w,disableAnimation:b}),[m,p,w,I,b]),ve=me(l==null?void 0:l.base,P),be=f.useCallback((oe={})=>({...oe,ref:N,className:te.base({class:ve}),"data-disabled":Q(w),"data-focus":Q($),"data-focus-visible":Q(V),"data-selected":Q(M),"data-invalid":Q(I),"data-hover":Q(ie),"data-pressed":Q(ee),"data-hover-unselected":Q(ie&&!M),"data-readonly":Q(D.readOnly),"aria-required":Q(A),...se(H,re,E)}),[te,ve,N,w,$,V,M,I,ie,ee,D.readOnly,A,E]),fe=f.useCallback((oe={})=>({...oe,"aria-hidden":!0,className:me(te.wrapper({class:me(l==null?void 0:l.wrapper,oe.className)}))}),[te,l==null?void 0:l.wrapper]),de=f.useCallback((oe={})=>({...oe,ref:L,required:A,...se(D,F),onChange:dr(D.onChange,C)}),[D,F,A,C]),pe=f.useCallback((oe={})=>({...oe,id:g,className:te.label({class:l==null?void 0:l.label})}),[te,l==null?void 0:l.label,w,M,I]),Te=f.useCallback((oe={})=>({...oe,className:te.labelWrapper({class:l==null?void 0:l.labelWrapper})}),[te,l==null?void 0:l.labelWrapper]),Ee=f.useCallback((oe={})=>({...oe,className:te.control({class:l==null?void 0:l.control})}),[te,l==null?void 0:l.control]);return{Component:S,children:d,slots:te,classNames:l,description:h,isSelected:M,isDisabled:w,isInvalid:I,isFocusVisible:V,getBaseProps:be,getWrapperProps:fe,getInputProps:de,getLabelProps:pe,getLabelWrapperProps:Te,getControlProps:Ee}}var Pp=vt((e,t)=>{const{Component:r,children:n,slots:o,classNames:a,description:s,getBaseProps:i,getWrapperProps:l,getInputProps:c,getLabelProps:u,getLabelWrapperProps:d,getControlProps:h}=H5({...e,ref:t});return j.jsxs(r,{...i(),children:[j.jsx(Ns,{children:j.jsx("input",{...c()})}),j.jsx("span",{...l(),children:j.jsx("span",{...h()})}),j.jsxs("div",{...d(),children:[n&&j.jsx("span",{...u(),children:n}),s&&j.jsx("span",{className:o.description({class:a==null?void 0:a.description}),children:s})]})]})});Pp.displayName="NextUI.Radio";var Y5=Pp;function G5(e,t,r){let{labelProps:n,inputProps:o,isSelected:a,isPressed:s,isDisabled:i,isReadOnly:l}=hp(e,t,r);return{labelProps:n,inputProps:{...o,role:"switch",checked:a},isSelected:a,isPressed:s,isDisabled:i,isReadOnly:l}}function q5(e={}){const[t,r]=Sn(e,lu.variantKeys),{ref:n,as:o,name:a,value:s="",isReadOnly:i=!1,autoFocus:l=!1,startContent:c,endContent:u,defaultSelected:d,isSelected:h,children:p,thumbIcon:m,className:y,classNames:b,onChange:C,onValueChange:x,...P}=t,E=o||"label",S=f.useRef(null),N=hu(n,S),L=f.useId(),g=f.useMemo(()=>{const X=P["aria-label"]||typeof p=="string"?p:void 0;return{name:a,value:s,children:p,autoFocus:l,defaultSelected:d,isSelected:h,isDisabled:!!e.isDisabled,isReadOnly:i,"aria-label":X,"aria-labelledby":P["aria-labelledby"]||L,onChange:x}},[s,a,L,p,l,i,h,d,e.isDisabled,P["aria-label"],P["aria-labelledby"],x]),A=Ki(g),{inputProps:I,isPressed:T,isReadOnly:D}=G5(g,A,S),{focusProps:w,isFocused:M,isFocusVisible:O}=Mt({autoFocus:I.autoFocus}),{hoverProps:F,isHovered:$}=mr({isDisabled:I.disabled}),V=g.isDisabled||D,[Y,K]=f.useState(!1),{pressProps:R}=In({isDisabled:V,onPressStart(X){X.pointerType!=="keyboard"&&K(!0)},onPressEnd(X){X.pointerType!=="keyboard"&&K(!1)}}),re=V?!1:Y||T,H=I.checked,ie=I.disabled,ee=f.useMemo(()=>lu({...r}),[...Object.values(r)]),te=me(b==null?void 0:b.base,y),ve=X=>({...se(F,R,P,X),ref:N,className:ee.base({class:me(te,X==null?void 0:X.className)}),"data-disabled":Q(ie),"data-selected":Q(H),"data-readonly":Q(D),"data-focus":Q(M),"data-focus-visible":Q(O),"data-hover":Q($),"data-pressed":Q(re)}),be=f.useCallback((X={})=>({...X,"aria-hidden":!0,className:me(ee.wrapper({class:me(b==null?void 0:b.wrapper,X==null?void 0:X.className)}))}),[ee,b==null?void 0:b.wrapper]),fe=(X={})=>({...se(I,w,X),ref:S,id:I.id,onChange:dr(C,I.onChange)}),de=f.useCallback((X={})=>({...X,className:ee.thumb({class:me(b==null?void 0:b.thumb,X==null?void 0:X.className)})}),[ee,b==null?void 0:b.thumb]),pe=f.useCallback((X={})=>({...X,id:L,className:ee.label({class:me(b==null?void 0:b.label,X==null?void 0:X.className)})}),[ee,b==null?void 0:b.label,ie,H]),Te=f.useCallback((X={includeStateProps:!1})=>se({width:"1em",height:"1em",className:ee.thumbIcon({class:me(b==null?void 0:b.thumbIcon)})},X.includeStateProps?{isSelected:H}:{}),[ee,b==null?void 0:b.thumbIcon,H]),Ee=f.useCallback((X={})=>({width:"1em",height:"1em",...X,className:ee.startContent({class:me(b==null?void 0:b.startContent,X==null?void 0:X.className)})}),[ee,b==null?void 0:b.startContent,H]),oe=f.useCallback((X={})=>({width:"1em",height:"1em",...X,className:ee.endContent({class:me(b==null?void 0:b.endContent,X==null?void 0:X.className)})}),[ee,b==null?void 0:b.endContent,H]);return{Component:E,slots:ee,classNames:b,domRef:N,children:p,thumbIcon:m,startContent:c,endContent:u,isHovered:$,isSelected:H,isPressed:re,isFocused:M,isFocusVisible:O,isDisabled:ie,getBaseProps:ve,getWrapperProps:be,getInputProps:fe,getLabelProps:pe,getThumbProps:de,getThumbIconProps:Te,getStartContentProps:Ee,getEndContentProps:oe}}var Mp=vt((e,t)=>{const{Component:r,children:n,startContent:o,endContent:a,thumbIcon:s,getBaseProps:i,getInputProps:l,getWrapperProps:c,getThumbProps:u,getThumbIconProps:d,getLabelProps:h,getStartContentProps:p,getEndContentProps:m}=q5({...e,ref:t}),y=typeof s=="function"?s(d({includeStateProps:!0})):s&&f.cloneElement(s,d()),b=o&&f.cloneElement(o,p()),C=a&&f.cloneElement(a,m());return j.jsxs(r,{...i(),children:[j.jsx(Ns,{children:j.jsx("input",{...l()})}),j.jsxs("span",{...c(),children:[o&&b,j.jsx("span",{...u(),children:s&&y}),a&&C]}),n&&j.jsx("span",{...h(),children:n})]})});Mp.displayName="NextUI.Switch";var Q5=Mp;function X5(e={}){const{rerender:t=!1,delay:r=0}=e,n=f.useRef(!1),[o,a]=f.useState(!1);return f.useEffect(()=>{n.current=!0;let s=null;return t&&(r>0?s=setTimeout(()=>{a(!0)},r):a(!0)),()=>{n.current=!1,t&&a(!1),s&&clearTimeout(s)}},[t]),[f.useCallback(()=>n.current,[]),o]}function Z5(e,t){let{inputElementType:r="input",isDisabled:n=!1,isRequired:o=!1,isReadOnly:a=!1,type:s="text",validationBehavior:i="aria"}=e,[l,c]=_r(e.value,e.defaultValue||"",e.onChange),{focusableProps:u}=Bo(e,t),d=xa({...e,value:l}),{isInvalid:h,validationErrors:p,validationDetails:m}=d.displayValidation,{labelProps:y,fieldProps:b,descriptionProps:C,errorMessageProps:x}=mp({...e,isInvalid:h,errorMessage:e.errorMessage||p}),P=Vr(e,{labelable:!0});const E={type:s,pattern:e.pattern};return bs(t,l,c),zi(e,d,t),f.useEffect(()=>{if(t.current instanceof Pn(t.current).HTMLTextAreaElement){let S=t.current;Object.defineProperty(S,"defaultValue",{get:()=>S.value,set:()=>{},configurable:!0})}},[t]),{labelProps:y,inputProps:se(P,r==="input"&&E,{disabled:n,readOnly:a,required:o&&i==="native","aria-required":o&&i==="aria"||void 0,"aria-invalid":h||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:l,onChange:S=>c(S.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...u,...b}),descriptionProps:C,errorMessageProps:x,isInvalid:h,validationErrors:p,validationDetails:m}}function J5(e){const[t,r]=Sn(e,cu.variantKeys),{ref:n,as:o,label:a,baseRef:s,wrapperRef:i,description:l,errorMessage:c,className:u,classNames:d,autoFocus:h,startContent:p,endContent:m,onClear:y,onChange:b,validationState:C,innerWrapperRef:x,onValueChange:P=()=>{},...E}=t,S=f.useCallback(ce=>{P(ce??"")},[P]),[N,L]=_r(t.value,t.defaultValue,S),[g,A]=f.useState(!1),I=o||"div",T=!!N,D=T||g,w=me(d==null?void 0:d.base,u,T?"is-filled":""),M=e.isMultiline,O=nt(n),F=nt(s),$=nt(i),V=nt(x),Y=f.useCallback(()=>{L(""),O.current&&(O.current.value="",O.current.focus()),y==null||y()},[O,L,y]),{labelProps:K,inputProps:R,descriptionProps:re,errorMessageProps:H}=Z5({...e,"aria-label":_s(e==null?void 0:e["aria-label"],e==null?void 0:e.label,e==null?void 0:e.placeholder),inputElementType:M?"textarea":"input",onChange:L},O),{isFocusVisible:ie,isFocused:ee,focusProps:te}=Mt({autoFocus:h,isTextInput:!0}),{isHovered:ve,hoverProps:be}=mr({isDisabled:!!(e!=null&&e.isDisabled)}),{focusProps:fe,isFocusVisible:de}=Mt(),{focusWithinProps:pe}=Vo({onFocusWithinChange:A}),{pressProps:Te}=fr({isDisabled:!!(e!=null&&e.isDisabled),onPress:Y}),Ee=C==="invalid"||e.isInvalid,oe=f.useMemo(()=>{var ce;return(!e.labelPlacement||e.labelPlacement==="inside")&&!a?"outside":(ce=e.labelPlacement)!=null?ce:"inside"},[e.labelPlacement,a]),X=!!y||e.isClearable,Oe=!!a||!!l||!!c,_e=!!t.placeholder,Fe=!!a,De=!!l||!!c,It=oe==="outside"||oe==="outside-left",mt=oe==="inside",Je=O.current?(!O.current.value||O.current.value===""||!N||N==="")&&_e:!1,Ir=oe==="outside-left",Ye=!!p,Ge=It?oe==="outside-left"||_e||oe==="outside"&&Ye:!1,kr=oe==="outside"&&!_e&&!Ye,xe=f.useMemo(()=>cu({...r,isInvalid:Ee,isClearable:X}),[...Object.values(r),Ee,X,Ye]),uo=f.useCallback((ce={})=>({ref:F,className:xe.base({class:w}),"data-slot":"base","data-filled":Q(T||_e||Ye||Je),"data-filled-within":Q(D||_e||Ye||Je),"data-focus-within":Q(g),"data-focus-visible":Q(ie),"data-readonly":Q(e.isReadOnly),"data-focus":Q(ee),"data-hover":Q(ve),"data-required":Q(e.isRequired),"data-invalid":Q(Ee),"data-disabled":Q(e.isDisabled),"data-has-elements":Q(Oe),"data-has-helper":Q(De),"data-has-label":Q(Fe),"data-has-value":Q(!Je),...pe,...ce}),[xe,w,T,ee,ve,Ee,De,Fe,Oe,Je,Ye,g,ie,D,_e,pe,e.isReadOnly,e.isRequired,e.isDisabled]),Ar=f.useCallback((ce={})=>({"data-slot":"label",className:xe.label({class:d==null?void 0:d.label}),...K,...ce}),[xe,K,d==null?void 0:d.label]),Or=f.useCallback((ce={})=>({ref:O,"data-slot":"input","data-filled":Q(T),"data-filled-within":Q(D),"data-has-start-content":Q(Ye),"data-has-end-content":Q(!!m),className:xe.input({class:me(d==null?void 0:d.input,N?"is-filled":"")}),...se(te,R,Dn(E,{enabled:!0,labelable:!0,omitEventNames:new Set(Object.keys(R))}),ce),required:e.isRequired,"aria-readonly":Q(e.isReadOnly),"aria-required":Q(e.isRequired),onChange:dr(R.onChange,b)}),[xe,N,te,R,E,T,D,Ye,m,d==null?void 0:d.input,e.isReadOnly,e.isRequired,b]),Ht=f.useCallback((ce={})=>({ref:$,"data-slot":"input-wrapper","data-hover":Q(ve),"data-focus-visible":Q(ie),"data-focus":Q(ee),className:xe.inputWrapper({class:me(d==null?void 0:d.inputWrapper,N?"is-filled":"")}),...se(ce,be),onClick:lt=>{O.current&<.currentTarget===lt.target&&O.current.focus()},style:{cursor:"text",...ce.style}}),[xe,ve,ie,ee,N,d==null?void 0:d.inputWrapper]),fo=f.useCallback((ce={})=>({...ce,ref:V,"data-slot":"inner-wrapper",onClick:lt=>{O.current&<.currentTarget===lt.target&&O.current.focus()},className:xe.innerWrapper({class:me(d==null?void 0:d.innerWrapper,ce==null?void 0:ce.className)})}),[xe,d==null?void 0:d.innerWrapper]),po=f.useCallback((ce={})=>({...ce,"data-slot":"main-wrapper",className:xe.mainWrapper({class:me(d==null?void 0:d.mainWrapper,ce==null?void 0:ce.className)})}),[xe,d==null?void 0:d.mainWrapper]),ho=f.useCallback((ce={})=>({...ce,"data-slot":"helper-wrapper",className:xe.helperWrapper({class:me(d==null?void 0:d.helperWrapper,ce==null?void 0:ce.className)})}),[xe,d==null?void 0:d.helperWrapper]),mo=f.useCallback((ce={})=>({...ce,...re,"data-slot":"description",className:xe.description({class:me(d==null?void 0:d.description,ce==null?void 0:ce.className)})}),[xe,d==null?void 0:d.description]),go=f.useCallback((ce={})=>({...ce,...H,"data-slot":"error-message",className:xe.errorMessage({class:me(d==null?void 0:d.errorMessage,ce==null?void 0:ce.className)})}),[xe,H,d==null?void 0:d.errorMessage]),vo=f.useCallback((ce={})=>({...ce,role:"button",tabIndex:0,"data-slot":"clear-button","data-focus-visible":Q(de),className:xe.clearButton({class:me(d==null?void 0:d.clearButton,ce==null?void 0:ce.className)}),...se(Te,fe)}),[xe,de,Te,fe,d==null?void 0:d.clearButton]);return{Component:I,classNames:d,domRef:O,label:a,description:l,startContent:p,endContent:m,labelPlacement:oe,isClearable:X,isInvalid:Ee,hasHelper:De,hasStartContent:Ye,isLabelOutside:Ge,isOutsideLeft:Ir,isLabelOutsideAsPlaceholder:kr,shouldLabelBeOutside:It,shouldLabelBeInside:mt,hasPlaceholder:_e,errorMessage:c,getBaseProps:uo,getLabelProps:Ar,getInputProps:Or,getMainWrapperProps:po,getInputWrapperProps:Ht,getInnerWrapperProps:fo,getHelperWrapperProps:ho,getDescriptionProps:mo,getErrorMessageProps:go,getClearButtonProps:vo}}var Ca="right-scroll-bar-position",Pa="width-before-scroll-bar",e4="with-scroll-bars-hidden",t4="--removed-body-scroll-bar-size";function r4(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function n4(e,t){var r=f.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}function o4(e,t){return n4(t||null,function(r){return e.forEach(function(n){return r4(n,r)})})}function a4(e){return e}function s4(e,t){t===void 0&&(t=a4);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var s=t(a,n);return r.push(s),function(){r=r.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(n=!0;r.length;){var s=r;r=[],s.forEach(a)}r={push:function(i){return a(i)},filter:function(){return r}}},assignMedium:function(a){n=!0;var s=[];if(r.length){var i=r;r=[],i.forEach(a),s=r}var l=function(){var u=s;s=[],u.forEach(a)},c=function(){return Promise.resolve().then(l)};c(),r={push:function(u){s.push(u),c()},filter:function(u){return s=s.filter(u),r}}}};return o}function i4(e){e===void 0&&(e={});var t=s4(null);return t.options=Pt({async:!0,ssr:!1},e),t}var Tp=function(e){var t=e.sideCar,r=zc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return U.createElement(n,Pt({},r))};Tp.isSideCarExport=!0;function l4(e,t){return e.useMedium(t),Tp}var Ep,c4=function(){if(Ep)return Ep;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function u4(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=c4();return t&&e.setAttribute("nonce",t),e}function d4(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function f4(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var p4=function(){var e=0,t=null;return{add:function(r){e==0&&(t=u4())&&(d4(t,r),f4(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},h4=function(){var e=p4();return function(t,r){U.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Sp=function(){var e=h4(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},m4={left:0,top:0,right:0,gap:0},Hi=function(e){return parseInt(e||"",10)||0},g4=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Hi(r),Hi(n),Hi(o)]},v4=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return m4;var t=g4(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},b4=Sp(),y4=function(e,t,r,n){var o=e.left,a=e.top,s=e.right,i=e.gap;return r===void 0&&(r="margin"),`
|
|
36
|
-
.`.concat(
|
|
35
|
+
`),()=>{document.head.removeChild(c)}},[t]),U.createElement(L2,{isPresent:t,childRef:n,sizeRef:o},U.cloneElement(e,{ref:n}))}const _i=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:a,mode:s})=>{const i=Yu(_2),l=f.useId(),c=f.useMemo(()=>({id:l,initial:t,isPresent:r,custom:o,onExitComplete:u=>{i.set(u,!0);for(const d of i.values())if(!d)return;n&&n()},register:u=>(i.set(u,!1),()=>i.delete(u))}),a?void 0:[r]);return f.useMemo(()=>{i.forEach((u,d)=>i.set(d,!1))},[r]),U.useEffect(()=>{!r&&!i.size&&n&&n()},[r]),s==="popLayout"&&(e=U.createElement(j2,{isPresent:r},e)),U.createElement(Zo.Provider,{value:c},e)};function _2(){return new Map}function F2(e){return f.useEffect(()=>()=>e(),[])}const Mr=e=>e.key||"";function V2(e,t){e.forEach(r=>{const n=Mr(r);t.set(n,r)})}function z2(e){const t=[];return f.Children.forEach(e,r=>{f.isValidElement(r)&&t.push(r)}),t}const W2=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:o,presenceAffectsLayout:a=!0,mode:s="sync"})=>{bt(!o,"Replace exitBeforeEnter with mode='wait'");const i=f.useContext(On).forceRender||ep()[0],l=Jf(),c=z2(e);let u=c;const d=f.useRef(new Map).current,h=f.useRef(u),p=f.useRef(new Map).current,m=f.useRef(!0);if(Us(()=>{m.current=!1,V2(c,p),h.current=u}),F2(()=>{m.current=!0,p.clear(),d.clear()}),m.current)return U.createElement(U.Fragment,null,u.map(x=>U.createElement(_i,{key:Mr(x),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:a,mode:s},x)));u=[...u];const y=h.current.map(Mr),b=c.map(Mr),C=y.length;for(let x=0;x<C;x++){const P=y[x];b.indexOf(P)===-1&&!d.has(P)&&d.set(P,void 0)}return s==="wait"&&d.size&&(u=[]),d.forEach((x,P)=>{if(b.indexOf(P)!==-1)return;const E=p.get(P);if(!E)return;const S=y.indexOf(P);let N=x;if(!N){const j=()=>{d.delete(P);const g=Array.from(p.keys()).filter(A=>!b.includes(A));if(g.forEach(A=>p.delete(A)),h.current=c.filter(A=>{const I=Mr(A);return I===P||g.includes(I)}),!d.size){if(l.current===!1)return;i(),n&&n()}};N=U.createElement(_i,{key:Mr(E),isPresent:!1,onExitComplete:j,custom:t,presenceAffectsLayout:a,mode:s},E),d.set(P,N)}u.splice(S,0,N)}),u=u.map(x=>{const P=x.key;return d.has(P)?x:U.createElement(_i,{key:Mr(x),isPresent:!0,presenceAffectsLayout:a,mode:s},x)}),process.env.NODE_ENV!=="production"&&s==="wait"&&u.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),U.createElement(U.Fragment,null,d.size?u:u.map(x=>f.cloneElement(x)))},B2=f.createContext(null),R2=e=>!e.isLayoutDirty&&e.willUpdate(!1);function tp(){const e=new Set,t=new WeakMap,r=()=>e.forEach(R2);return{add:n=>{e.add(n),t.set(n,n.addEventListener("willUpdate",r))},remove:n=>{e.delete(n);const o=t.get(n);o&&(o(),t.delete(n)),r()},dirty:r}}const rp=e=>e===!0,K2=e=>rp(e===!0)||e==="id",U2=({children:e,id:t,inherit:r=!0})=>{const n=f.useContext(On),o=f.useContext(B2),[a,s]=ep(),i=f.useRef(null),l=n.id||o;i.current===null&&(K2(r)&&l&&(t=t?l+"-"+t:l),i.current={id:t,group:rp(r)&&n.group||tp()});const c=f.useMemo(()=>({...i.current,forceRender:a}),[s]);return U.createElement(On.Provider,{value:c},e)};function np(e){return null}np.getCollectionNode=function*(t,r){let{childItems:n,title:o,children:a}=t,s=t.title||t.children,i=t.textValue||(typeof s=="string"?s:"")||t["aria-label"]||"";!i&&!(r!=null&&r.suppressTextValueWarning)&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:s,textValue:i,"aria-label":t["aria-label"],hasChildNodes:H2(t),*childNodes(){if(n)for(let l of n)yield{type:"item",value:l};else if(o){let l=[];f.Children.forEach(a,c=>{l.push({type:"item",element:c})}),yield*l}}}};function H2(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&f.Children.count(e.children)>0)}let Y2=np;class G2{build(t,r){return this.context=r,op(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:r,items:n}=t;if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");for(let o of t.items)yield*this.getFullNode({value:o},{renderer:r})}else{let o=[];f.Children.forEach(r,s=>{o.push(s)});let a=0;for(let s of o){let i=this.getFullNode({element:s,index:a},{});for(let l of i)a++,yield l}}}getKey(t,r,n,o){if(t.key!=null)return t.key;if(r.type==="cell"&&r.key!=null)return`${o}${r.key}`;let a=r.value;if(a!=null){var s;let i=(s=a.key)!==null&&s!==void 0?s:a.id;if(i==null)throw new Error("No key found for item");return i}return o?`${o}.${r.index}`:`$.${r.index}`}getChildState(t,r){return{renderer:r.renderer||t.renderer}}*getFullNode(t,r,n,o){let a=t.element;if(!a&&t.value&&r&&r.renderer){let l=this.cache.get(t.value);if(l&&(!l.shouldInvalidate||!l.shouldInvalidate(this.context))){l.index=t.index,l.parentKey=o?o.key:null,yield l;return}a=r.renderer(t.value)}if(f.isValidElement(a)){let l=a.type;if(typeof l!="function"&&typeof l.getCollectionNode!="function"){let h=typeof a.type=="function"?a.type.name:a.type;throw new Error(`Unknown element <${h}> in collection.`)}let c=l.getCollectionNode(a.props,this.context),u=t.index,d=c.next();for(;!d.done&&d.value;){let h=d.value;t.index=u;let p=h.key;p||(p=h.element?null:this.getKey(a,t,r,n));let y=[...this.getFullNode({...h,key:p,index:u,wrapper:q2(t.wrapper,h.wrapper)},this.getChildState(r,h),n?`${n}${a.key}`:a.key,o)];for(let b of y){if(b.value=h.value||t.value,b.value&&this.cache.set(b.value,b),t.type&&b.type!==t.type)throw new Error(`Unsupported type <${Fi(b.type)}> in <${Fi(o.type)}>. Only <${Fi(t.type)}> is supported.`);u++,yield b}d=c.next(y)}return}if(t.key==null)return;let s=this,i={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:t.value,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue,"aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes,childNodes:op(function*(){if(!t.hasChildNodes)return;let l=0;for(let c of t.childNodes()){c.key!=null&&(c.key=`${i.key}${c.key}`),c.index=l;let u=s.getFullNode(c,s.getChildState(r,c),i.key,i);for(let d of u)l++,yield d}})};yield i}constructor(){this.cache=new WeakMap}}function op(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function q2(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function Fi(e){return e[0].toUpperCase()+e.slice(1)}function Q2(e,t,r){let n=f.useMemo(()=>new G2,[]),{children:o,items:a,collection:s}=e;return f.useMemo(()=>{if(s)return s;let l=n.build({children:o,items:a},r);return t(l)},[n,o,a,s,r,t])}function X2(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function Z2(e){return J2(e,0)}function J2(e,t){if(t<0)return;let r=0;for(let n of e){if(r===t)return n;r++}}function Vi(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...ap(e,t),t],o=[...ap(e,r),r],a=n.slice(0,o.length).findIndex((s,i)=>s!==o[i]);return a!==-1?(t=n[a],r=o[a],t.index-r.index):n.findIndex(s=>s===r)>=0?1:(o.findIndex(s=>s===t)>=0,-1)}function ap(e,t){let r=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),r.unshift(t);return r}class yt extends Set{constructor(t,r,n){super(t),t instanceof yt?(this.anchorKey=r||t.anchorKey,this.currentKey=n||t.currentKey):(this.anchorKey=r,this.currentKey=n)}}function e5(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function t5(e){let{selectionMode:t="none",disallowEmptySelection:r,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:a="all"}=e,s=f.useRef(!1),[,i]=f.useState(!1),l=f.useRef(null),c=f.useRef(null),[,u]=f.useState(null),d=f.useMemo(()=>sp(e.selectedKeys),[e.selectedKeys]),h=f.useMemo(()=>sp(e.defaultSelectedKeys,new yt),[e.defaultSelectedKeys]),[p,m]=_r(d,h,e.onSelectionChange),y=f.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[b,C]=f.useState(o);o==="replace"&&b==="toggle"&&typeof p=="object"&&p.size===0&&C("replace");let x=f.useRef(o);return f.useEffect(()=>{o!==x.current&&(C(o),x.current=o)},[o]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:b,setSelectionBehavior:C,get isFocused(){return s.current},setFocused(P){s.current=P,i(P)},get focusedKey(){return l.current},get childFocusStrategy(){return c.current},setFocusedKey(P,E="first"){l.current=P,c.current=E,u(P)},selectedKeys:p,setSelectedKeys(P){(n||!e5(P,p))&&m(P)},disabledKeys:y,disabledBehavior:a}}function sp(e,t){return e?e==="all"?"all":new yt(e):t}class r5{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){return this.state.selectionMode==="none"?!1:(t=this.getKey(t),this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let n=this.collection.getItem(r);(!t||n&&Vi(this.collection,n,t)<0)&&(t=n)}return t==null?void 0:t.key}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let n=this.collection.getItem(r);(!t||n&&Vi(this.collection,n,t)>0)&&(t=n)}return t==null?void 0:t.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}t=this.getKey(t);let r;if(this.state.selectedKeys==="all")r=new yt([t],t,t);else{let n=this.state.selectedKeys,o=n.anchorKey||t;r=new yt(n,o,t);for(let a of this.getKeyRange(o,n.currentKey||t))r.delete(a);for(let a of this.getKeyRange(t,o))this.canSelectItem(a)&&r.add(a)}this.state.setSelectedKeys(r)}getKeyRange(t,r){let n=this.collection.getItem(t),o=this.collection.getItem(r);return n&&o?Vi(this.collection,n,o)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){let n=[],o=t;for(;o;){let a=this.collection.getItem(o);if((a&&a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&n.push(o),o===r)return n;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}if(t=this.getKey(t),t==null)return;let r=new yt(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(t)?r.delete(t):this.canSelectItem(t)&&(r.add(t),r.anchorKey=t,r.currentKey=t),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none"||(t=this.getKey(t),t==null))return;let r=this.canSelectItem(t)?new yt([t],t,t):new yt;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new yt;for(let n of t)if(n=this.getKey(n),n!=null&&(r.add(n),this.selectionMode==="single"))break;this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n;){if(this.canSelectItem(n)){let o=this.collection.getItem(n);o.type==="item"&&t.push(n),o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&r(Z2(X2(o,this.collection)).key)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new yt)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){return this.state.disabledKeys.has(t)&&this.state.disabledBehavior==="all"}isLink(t){var r,n;return!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}constructor(t,r,n){this.collection=t,this.state=r;var o;this.allowsCellSelection=(o=n==null?void 0:n.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null}}var n5=()=>L.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"80%",role:"presentation",viewBox:"0 0 24 24",width:"80%",children:[L.jsx("path",{d:"M12 2C9.38 2 7.25 4.13 7.25 6.75C7.25 9.32 9.26 11.4 11.88 11.49C11.96 11.48 12.04 11.48 12.1 11.49C12.12 11.49 12.13 11.49 12.15 11.49C12.16 11.49 12.16 11.49 12.17 11.49C14.73 11.4 16.74 9.32 16.75 6.75C16.75 4.13 14.62 2 12 2Z",fill:"currentColor"}),L.jsx("path",{d:"M17.0809 14.1489C14.2909 12.2889 9.74094 12.2889 6.93094 14.1489C5.66094 14.9989 4.96094 16.1489 4.96094 17.3789C4.96094 18.6089 5.66094 19.7489 6.92094 20.5889C8.32094 21.5289 10.1609 21.9989 12.0009 21.9989C13.8409 21.9989 15.6809 21.5289 17.0809 20.5889C18.3409 19.7389 19.0409 18.5989 19.0409 17.3589C19.0309 16.1289 18.3409 14.9889 17.0809 14.1489Z",fill:"currentColor"})]}),[sw,o5]=Ho({name:"AvatarGroupContext",strict:!1}),a5=globalThis!=null&&globalThis.document?f.useLayoutEffect:f.useEffect;function s5(e={}){const{loading:t,src:r,srcSet:n,onLoad:o,onError:a,crossOrigin:s,sizes:i,ignoreFallback:l}=e,[c,u]=f.useState("pending");f.useEffect(()=>{u(r?"loading":"pending")},[r]);const d=f.useRef(),h=f.useCallback(()=>{if(!r)return;p();const m=new Image;m.src=r,s&&(m.crossOrigin=s),n&&(m.srcset=n),i&&(m.sizes=i),t&&(m.loading=t),m.onload=y=>{p(),u("loaded"),o==null||o(y)},m.onerror=y=>{p(),u("failed"),a==null||a(y)},d.current=m},[r,s,n,i,o,a,t]),p=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return a5(()=>{if(!l)return c==="loading"&&h(),()=>{p()}},[c,h,l]),l?"loaded":c}function i5(e={}){var t,r,n,o,a;const s=o5(),i=!!s,{as:l,ref:c,src:u,name:d,icon:h,classNames:p,fallback:m,alt:y=d||"avatar",imgRef:b,color:C=(t=s==null?void 0:s.color)!=null?t:"default",radius:x=(r=s==null?void 0:s.radius)!=null?r:"full",size:P=(n=s==null?void 0:s.size)!=null?n:"md",isBordered:E=(o=s==null?void 0:s.isBordered)!=null?o:!1,isDisabled:S=(a=s==null?void 0:s.isDisabled)!=null?a:!1,isFocusable:N=!1,getInitials:j=c1,ignoreFallback:g=!1,showFallback:A=!1,ImgComponent:I="img",imgProps:T,className:D,onError:w,...M}=e,O=l||"span",F=nt(c),$=nt(b),{isFocusVisible:V,isFocused:Y,focusProps:K}=Mt(),{isHovered:R,hoverProps:re}=mr({isDisabled:S}),ie=s5({src:u,onError:w,ignoreFallback:g})==="loaded",ee=(!u||!ie)&&A,te=f.useMemo(()=>{var pe;return i1({color:C,radius:x,size:P,isBordered:E,isDisabled:S,isInGroup:i,isInGridGroup:(pe=s==null?void 0:s.isGrid)!=null?pe:!1})},[C,x,P,E,S,i,s==null?void 0:s.isGrid]),ve=me(p==null?void 0:p.base,D),be=f.useMemo(()=>N||l==="button",[N,l]),fe=f.useCallback((pe={})=>({ref:F,tabIndex:be?0:-1,"data-hover":Q(R),"data-focus":Q(Y),"data-focus-visible":Q(V),className:te.base({class:me(ve,pe==null?void 0:pe.className)}),...se(M,re,be?K:{})}),[be,te,ve,K,M]),de=f.useCallback((pe={})=>({ref:$,src:u,"data-loaded":Q(ie),className:te.img({class:p==null?void 0:p.img}),...se(T,pe)}),[te,ie,T,u,$]);return{Component:O,ImgComponent:I,src:u,alt:y,icon:h,name:d,imgRef:$,slots:te,classNames:p,fallback:m,isImgLoaded:ie,showFallback:ee,ignoreFallback:g,getInitials:j,getAvatarProps:fe,getImageProps:de}}var ip=ft((e,t)=>{const{Component:r,ImgComponent:n,src:o,icon:a=L.jsx(n5,{}),alt:s,classNames:i,slots:l,name:c,showFallback:u,fallback:d,getInitials:h,getAvatarProps:p,getImageProps:m}=i5({...e,ref:t}),y=f.useMemo(()=>!u&&o?null:d?L.jsx("div",{"aria-label":s,className:l.fallback({class:i==null?void 0:i.fallback}),role:"img",children:d}):c?L.jsx("span",{"aria-label":s,className:l.name({class:i==null?void 0:i.name}),role:"img",children:h(c)}):L.jsx("span",{"aria-label":s,className:l.icon({class:i==null?void 0:i.icon}),role:"img",children:a}),[u,o,d,c,i]);return L.jsxs(r,{...p(),children:[o&&L.jsx(n,{...m(),alt:s}),y]})});ip.displayName="NextUI.Avatar";var l5=ip,[iw,c5]=Ho({name:"ButtonGroupContext",strict:!1});function u5(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:a,onPressEnd:s,onPressChange:i,preventFocusOnPress:l,allowFocusWhenDisabled:c,onClick:u,href:d,target:h,rel:p,type:m="button",allowTextSelectionOnPress:y}=e,b;r==="button"?b={type:m,disabled:n}:b={role:"button",tabIndex:n?void 0:0,href:r==="a"&&n?void 0:d,target:r==="a"?h:void 0,type:r==="input"?m:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?p:void 0};let{pressProps:C,isPressed:x}=In({onPressStart:a,onPressEnd:s,onPressChange:i,onPress:o,isDisabled:n,preventFocusOnPress:l,allowTextSelectionOnPress:y,ref:t}),{focusableProps:P}=Bo(e,t);c&&(P.tabIndex=n?-1:P.tabIndex);let E=se(P,C,Vr(e,{labelable:!0}));return{isPressed:x,buttonProps:se(b,E,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:S=>{u==null||u(S)}})}}var d5=(e,t,r)=>Math.min(Math.max(e,t),r),lp=e=>{const{ripples:t=[],motionProps:r,color:n="currentColor",style:o,onClear:a}=e;return L.jsx(L.Fragment,{children:t.map(s=>{const i=d5(.01*s.size,.2,s.size>100?.75:.5);return L.jsx(W2,{mode:"popLayout",children:L.jsx(Zf.span,{animate:{transform:"scale(2)",opacity:0},className:"nextui-ripple",exit:{opacity:0},initial:{transform:"scale(0)",opacity:.35},style:{position:"absolute",backgroundColor:n,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",zIndex:10,top:s.y,left:s.x,width:`${s.size}px`,height:`${s.size}px`,...o},transition:{duration:i},onAnimationComplete:()=>{a(s.key)},...r})},s.key)})})};lp.displayName="NextUI.Ripple";var f5=lp;function p5(e={}){const[t,r]=f.useState([]),n=f.useCallback(a=>{const s=a.currentTarget,i=Math.max(s.clientWidth,s.clientHeight),l=s.getBoundingClientRect();r(c=>[...c,{key:u1(c.length.toString()),size:i,x:a.clientX-l.x-i/2,y:a.clientY-l.y-i/2}])},[]),o=f.useCallback(a=>{r(s=>s.filter(i=>i.key!==a))},[]);return{ripples:t,onClick:n,onClear:o,...e}}function h5(e){var t,r,n,o,a,s,i,l;const c=c5(),u=!!c,{ref:d,as:h,children:p,startContent:m,endContent:y,autoFocus:b,className:C,spinner:x,fullWidth:P=(t=c==null?void 0:c.fullWidth)!=null?t:!1,size:E=(r=c==null?void 0:c.size)!=null?r:"md",color:S=(n=c==null?void 0:c.color)!=null?n:"default",variant:N=(o=c==null?void 0:c.variant)!=null?o:"solid",disableAnimation:j=(a=c==null?void 0:c.disableAnimation)!=null?a:!1,radius:g=c==null?void 0:c.radius,disableRipple:A=(s=c==null?void 0:c.disableRipple)!=null?s:!1,isDisabled:I=(i=c==null?void 0:c.isDisabled)!=null?i:!1,isIconOnly:T=(l=c==null?void 0:c.isIconOnly)!=null?l:!1,isLoading:D=!1,spinnerPlacement:w="start",onPress:M,onClick:O,...F}=e,$=h||"button",V=typeof $=="string",Y=nt(d),{isFocusVisible:K,isFocused:R,focusProps:re}=Mt({autoFocus:b}),H=I||D,ie=f.useMemo(()=>l1({size:E,color:S,variant:N,radius:g,fullWidth:P,isDisabled:H,isInGroup:u,disableAnimation:j,isIconOnly:T,className:C}),[E,S,N,g,P,H,u,T,j,C]),{onClick:ee,onClear:te,ripples:ve}=p5(),be=f.useCallback(De=>{A||H||j||Y.current&&ee(De)},[A,H,j,Y,ee]),{buttonProps:fe,isPressed:de}=u5({elementType:h,isDisabled:H,onPress:M,onClick:dr(O,be),...F},Y),{isHovered:pe,hoverProps:Te}=mr({isDisabled:H}),Ee=f.useCallback((De={})=>({"data-disabled":Q(H),"data-focus":Q(R),"data-pressed":Q(de),"data-focus-visible":Q(K),"data-hover":Q(pe),"data-loading":Q(D),...se(fe,re,Te,Dn(F,{enabled:V}),Dn(De))}),[D,H,R,de,V,K,pe,fe,re,Te,F]),oe=De=>f.isValidElement(De)?f.cloneElement(De,{"aria-hidden":!0,focusable:!1,tabIndex:-1}):null,X=oe(m),Oe=oe(y),_e=f.useMemo(()=>({sm:"sm",md:"sm",lg:"md"})[E],[E]),Fe=f.useCallback(()=>({ripples:ve,onClear:te}),[ve,te]);return{Component:$,children:p,domRef:Y,spinner:x,styles:ie,startContent:X,endContent:Oe,isLoading:D,spinnerPlacement:w,spinnerSize:_e,disableRipple:A,getButtonProps:Ee,getRippleProps:Fe,isIconOnly:T}}function m5(e){const[t,r]=Sn(e,su.variantKeys),{children:n,className:o,classNames:a,label:s,...i}=t,l=f.useMemo(()=>su({...r}),[...Object.values(r)]),c=me(a==null?void 0:a.base,o),u=s||n,d=f.useMemo(()=>u&&typeof u=="string"?u:i["aria-label"]?"":"Loading",[n,u,i["aria-label"]]),h=f.useCallback(()=>({"aria-label":d,className:l.base({class:c}),...i}),[d,l,c,i]);return{label:u,slots:l,classNames:a,getSpinnerProps:h}}var cp=ft((e,t)=>{const{slots:r,classNames:n,label:o,getSpinnerProps:a}=m5({...e});return L.jsxs("div",{ref:t,...a(),children:[L.jsxs("div",{className:r.wrapper({class:n==null?void 0:n.wrapper}),children:[L.jsx("i",{className:r.circle1({class:n==null?void 0:n.circle1})}),L.jsx("i",{className:r.circle2({class:n==null?void 0:n.circle2})})]}),o&&L.jsx("span",{className:r.label(),children:o})]})});cp.displayName="NextUI.Spinner";var g5=cp,up=ft((e,t)=>{const{Component:r,domRef:n,children:o,styles:a,spinnerSize:s,spinner:i=L.jsx(g5,{color:"current",size:s}),spinnerPlacement:l,startContent:c,endContent:u,isLoading:d,disableRipple:h,getButtonProps:p,getRippleProps:m,isIconOnly:y}=h5({...e,ref:t});return L.jsxs(r,{ref:n,className:a,...p(),children:[c,d&&l==="start"&&i,d&&y?null:o,d&&l==="end"&&i,u,!h&&L.jsx(f5,{...m()})]})});up.displayName="NextUI.Button";var v5=up;function b5(e){const[t,r]=Sn(e,uu.variantKeys),{ref:n,as:o,children:a,avatar:s,startContent:i,endContent:l,onClose:c,classNames:u,className:d,...h}=t,p=o||"div",m=nt(n),y=me(u==null?void 0:u.base,d),b=!!c,C=e.variant==="dot",{focusProps:x,isFocusVisible:P}=Mt(),E=f.useMemo(()=>typeof a=="string"&&(a==null?void 0:a.length)===1,[a]),S=f.useMemo(()=>!!s||!!i,[s,i]),N=f.useMemo(()=>!!l||b,[l,b]),j=f.useMemo(()=>uu({...r,hasStartContent:S,hasEndContent:N,isOneChar:E,isCloseable:b,isCloseButtonFocusVisible:P}),[...Object.values(r),P,S,N,E,b]),{pressProps:g}=In({isDisabled:!!(e!=null&&e.isDisabled),onPress:c}),A=()=>({ref:m,className:j.base({class:y}),...h}),I=()=>({role:"button",tabIndex:0,className:j.closeButton({class:u==null?void 0:u.closeButton}),...se(g,x)}),T=w=>f.isValidElement(w)?f.cloneElement(w,{className:j.avatar({class:u==null?void 0:u.avatar})}):null,D=w=>f.isValidElement(w)?f.cloneElement(w,{className:me("max-h-[80%]",w.props.className)}):null;return{Component:p,children:a,slots:j,classNames:u,isDot:C,isCloseable:b,startContent:T(s)||D(i),endContent:D(l),getCloseButtonProps:I,getChipProps:A}}var dp=ft((e,t)=>{const{Component:r,children:n,slots:o,classNames:a,isDot:s,isCloseable:i,startContent:l,endContent:c,getCloseButtonProps:u,getChipProps:d}=b5({...e,ref:t}),h=f.useMemo(()=>s&&!l?L.jsx("span",{className:o.dot({class:a==null?void 0:a.dot})}):l,[o,l,s]),p=f.useMemo(()=>i?L.jsx("span",{...u(),children:c||L.jsx(Mu,{})}):c,[c,i,u]);return L.jsxs(r,{...d(),children:[h,L.jsx("span",{className:o.content({class:a==null?void 0:a.content}),children:n}),p]})});dp.displayName="NextUI.Chip";var y5=dp;function zi(e,t,r){let{validationBehavior:n,focus:o}=e;kt(()=>{if(n==="native"&&(r!=null&&r.current)){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(l),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(w5(r.current))}});let a=We(()=>{t.resetValidation()}),s=We(l=>{var c;t.displayValidation.isInvalid||t.commitValidation();let u=r==null||(c=r.current)===null||c===void 0?void 0:c.form;if(!l.defaultPrevented&&r&&u&&C5(u)===r.current){var d;o?o():(d=r.current)===null||d===void 0||d.focus(),Og("keyboard")}l.preventDefault()}),i=We(()=>{t.commitValidation()});f.useEffect(()=>{let l=r==null?void 0:r.current;if(!l)return;let c=l.form;return l.addEventListener("invalid",s),l.addEventListener("change",i),c==null||c.addEventListener("reset",a),()=>{l.removeEventListener("invalid",s),l.removeEventListener("change",i),c==null||c.removeEventListener("reset",a)}},[r,s,i,a,n])}function x5(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function w5(e){return{isInvalid:!e.validity.valid,validationDetails:x5(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function C5(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(!r.validity.valid)return r}return null}const fp={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},pp={...fp,customError:!0,valid:!1},en={isInvalid:!1,validationDetails:fp,validationErrors:[]},P5=f.createContext({}),Wi="__formValidationState"+Date.now();function xa(e){if(e[Wi]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:a}=e[Wi];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:a}}return M5(e)}function M5(e){let{isInvalid:t,validationState:r,name:n,value:o,builtinValidation:a,validate:s,validationBehavior:i="aria"}=e;r&&(t||(t=r==="invalid"));let l=t?{isInvalid:!0,validationErrors:[],validationDetails:pp}:null,c=f.useMemo(()=>hp(T5(s,o)),[s,o]);a!=null&&a.validationDetails.valid&&(a=null);let u=f.useContext(P5),d=f.useMemo(()=>n?Array.isArray(n)?n.flatMap(I=>Bi(u[I])):Bi(u[n]):[],[u,n]),[h,p]=f.useState(u),[m,y]=f.useState(!1);u!==h&&(p(u),y(!1));let b=f.useMemo(()=>hp(m?[]:d),[m,d]),C=f.useRef(en),[x,P]=f.useState(en),E=f.useRef(en),S=()=>{if(!N)return;j(!1);let I=c||a||C.current;Ri(I,E.current)||(E.current=I,P(I))},[N,j]=f.useState(!1);return f.useEffect(S),{realtimeValidation:l||b||c||a||en,displayValidation:i==="native"?l||b||x:l||b||c||a||x,updateValidation(I){i==="aria"&&!Ri(x,I)?P(I):C.current=I},resetValidation(){let I=en;Ri(I,E.current)||(E.current=I,P(I)),i==="native"&&j(!1),y(!0)},commitValidation(){i==="native"&&j(!0),y(!0)}}}function Bi(e){return e?Array.isArray(e)?e:[e]:[]}function T5(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return Bi(r)}return[]}function hp(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:pp}:null}function Ri(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,n)=>r===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([r,n])=>t.validationDetails[r]===n)}function mp(e,t,r){let{isDisabled:n=!1,isReadOnly:o=!1,value:a,name:s,children:i,"aria-label":l,"aria-labelledby":c,validationState:u="valid",isInvalid:d}=e,h=N=>{N.stopPropagation(),t.setSelected(N.target.checked)},p=i!=null,m=l!=null||c!=null;!p&&!m&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:y,isPressed:b}=fr({isDisabled:n}),{pressProps:C,isPressed:x}=fr({isDisabled:n||o,onPress(){t.toggle()}}),{focusableProps:P}=Bo(e,r),E=se(y,P),S=Vr(e,{labelable:!0});return bs(r,t.isSelected,t.setSelected),{labelProps:se(C,{onClick:N=>N.preventDefault()}),inputProps:se(S,{"aria-invalid":d||u==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:h,disabled:n,...a==null?{}:{value:a},name:s,type:"checkbox",...E}),isSelected:t.isSelected,isPressed:b||x,isDisabled:n,isReadOnly:o,isInvalid:d||u==="invalid"}}function E5(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:a="label"}=e;t=Fr(t);let s=Fr(),i={};r?(n=n?`${s} ${n}`:s,i={id:s,htmlFor:a==="label"?t:void 0}):!n&&!o&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=ms({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:i,fieldProps:l}}function gp(e){let{description:t,errorMessage:r,isInvalid:n,validationState:o}=e,{labelProps:a,fieldProps:s}=E5(e),i=Sc([!!t,!!r,n,o]),l=Sc([!!t,!!r,n,o]);return s=se(s,{"aria-describedby":[i,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:s,descriptionProps:{id:i},errorMessageProps:{id:l}}}function Ki(e={}){let{isReadOnly:t}=e,[r,n]=_r(e.isSelected,e.defaultSelected||!1,e.onChange);function o(s){t||n(s)}function a(){t||n(!r)}return{isSelected:r,setSelected:o,toggle:a}}function vp(e,t,r){let n=xa({...e,value:t.isSelected}),{isInvalid:o,validationErrors:a,validationDetails:s}=n.displayValidation,{labelProps:i,inputProps:l,isSelected:c,isPressed:u,isDisabled:d,isReadOnly:h}=mp({...e,isInvalid:o},t,r);zi(e,n,r);let{isIndeterminate:p,isRequired:m,validationBehavior:y="aria"}=e;return f.useEffect(()=>{r.current&&(r.current.indeterminate=!!p)}),{labelProps:i,inputProps:{...l,checked:c,"aria-required":m&&y==="aria"||void 0,required:m&&y==="native"},isSelected:c,isPressed:u,isDisabled:d,isReadOnly:h,isInvalid:o,validationErrors:a,validationDetails:s}}const S5=new WeakMap;function $5(e,t,r){const n=Ki({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(b){b?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(b)}});let{name:o,descriptionId:a,errorMessageId:s,validationBehavior:i}=S5.get(t);var l;i=(l=e.validationBehavior)!==null&&l!==void 0?l:i;let{realtimeValidation:c}=xa({...e,value:n.isSelected,name:void 0,validationBehavior:"aria"}),u=f.useRef(en),d=()=>{t.setInvalid(e.value,c.isInvalid?c:u.current)};f.useEffect(d);let h=t.realtimeValidation.isInvalid?t.realtimeValidation:c,p=i==="native"?t.displayValidation:h;var m;let y=vp({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||o,isRequired:(m=e.isRequired)!==null&&m!==void 0?m:t.isRequired,validationBehavior:i,[Wi]:{realtimeValidation:h,displayValidation:p,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(b){u.current=b,d()}}},n,r);return{...y,inputProps:{...y.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?s:null,a].filter(Boolean).join(" ")||void 0}}}var[lw,D5]=Ho({name:"CheckboxGroupContext",strict:!1});function I5(e){const{isSelected:t,disableAnimation:r,...n}=e;return L.jsx("svg",{"aria-hidden":"true",role:"presentation",viewBox:"0 0 17 18",...n,children:L.jsx("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,style:!r&&t?{transition:"stroke-dashoffset 250ms linear 0.2s"}:{}})})}function k5(e){const{isSelected:t,disableAnimation:r,...n}=e;return L.jsx("svg",{stroke:"currentColor",strokeWidth:3,viewBox:"0 0 24 24",...n,children:L.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function A5(e){const{isIndeterminate:t,...r}=e,n=t?k5:I5;return L.jsx(n,{...r})}function O5(e={}){var t,r,n,o,a,s;const i=D5(),l=!!i,{as:c,ref:u,value:d="",children:h,icon:p,name:m,isRequired:y=!1,isReadOnly:b=!1,autoFocus:C=!1,isSelected:x,validationState:P,size:E=(t=i==null?void 0:i.size)!=null?t:"md",color:S=(r=i==null?void 0:i.color)!=null?r:"primary",radius:N=i==null?void 0:i.radius,lineThrough:j=(n=i==null?void 0:i.lineThrough)!=null?n:!1,isDisabled:g=(o=i==null?void 0:i.isDisabled)!=null?o:!1,disableAnimation:A=(a=i==null?void 0:i.disableAnimation)!=null?a:!1,isInvalid:I=P?P==="invalid":(s=i==null?void 0:i.isInvalid)!=null?s:!1,isIndeterminate:T=!1,defaultSelected:D,classNames:w,onChange:M,className:O,onValueChange:F,...$}=e;i&&pu&&(x&&Uo("The Checkbox.Group is being used, `isSelected` will be ignored. Use the `value` of the Checkbox.Group instead.","Checkbox"),D&&Uo("The Checkbox.Group is being used, `defaultSelected` will be ignored. Use the `defaultValue` of the Checkbox.Group instead.","Checkbox"));const V=c||"label",Y=f.useRef(null),K=hu(u,Y),R=f.useId(),re=f.useMemo(()=>({name:m,value:d,children:h,autoFocus:C,defaultSelected:D,isIndeterminate:T,isRequired:y,isInvalid:I,isSelected:x,isDisabled:g,isReadOnly:b,"aria-label":_s($["aria-label"],h),"aria-labelledby":$["aria-labelledby"]||R,onChange:F}),[d,m,R,h,C,I,T,g,b,x,D,$["aria-label"],$["aria-labelledby"],F]),{inputProps:H,isSelected:ie,isDisabled:ee,isReadOnly:te,isPressed:ve}=l?$5({...re,isInvalid:I},i.groupState,Y):vp(re,Ki(re),Y),be=ee||te,[fe,de]=f.useState(!1),{pressProps:pe}=In({isDisabled:be,onPressStart(Ge){Ge.pointerType!=="keyboard"&&de(!0)},onPressEnd(Ge){Ge.pointerType!=="keyboard"&&de(!1)}}),Te=be?!1:fe||ve;y&&(H.required=!0);const{hoverProps:Ee,isHovered:oe}=mr({isDisabled:H.disabled}),{focusProps:X,isFocused:Oe,isFocusVisible:_e}=Mt({autoFocus:H.autoFocus}),Fe=f.useMemo(()=>s1({color:S,size:E,radius:N,isInvalid:I,lineThrough:j,isDisabled:ee,disableAnimation:A}),[S,E,N,I,j,ee,A]),De=me(w==null?void 0:w.base,O),It=f.useCallback(()=>({ref:K,className:Fe.base({class:De}),"data-disabled":Q(ee),"data-selected":Q(ie||T),"data-invalid":Q(I),"data-hover":Q(oe),"data-focus":Q(Oe),"data-pressed":Q(Te),"data-readonly":Q(H.readOnly),"data-focus-visible":Q(_e),"data-indeterminate":Q(T),...se(Ee,pe,$)}),[Fe,De,ee,ie,T,I,oe,Oe,Te,H.readOnly,_e,Ee,pe,$]),gt=f.useCallback((Ge={})=>({...Ge,"aria-hidden":!0,className:me(Fe.wrapper({class:me(w==null?void 0:w.wrapper,Ge==null?void 0:Ge.className)}))}),[Fe,w==null?void 0:w.wrapper]),Je=f.useCallback(()=>({ref:Y,...se(H,X),onChange:dr(H.onChange,M)}),[H,X,M]),Ir=f.useCallback(()=>({id:R,className:Fe.label({class:w==null?void 0:w.label})}),[Fe,w==null?void 0:w.label,ee,ie,I]),Ye=f.useCallback(()=>({isSelected:ie,isIndeterminate:!!T,disableAnimation:!!A,className:Fe.icon({class:w==null?void 0:w.icon})}),[Fe,w==null?void 0:w.icon,ie,T,A]);return{Component:V,icon:p,children:h,isSelected:ie,isDisabled:ee,isInvalid:I,isFocused:Oe,isHovered:oe,isFocusVisible:_e,getBaseProps:It,getWrapperProps:gt,getInputProps:Je,getLabelProps:Ir,getIconProps:Ye}}var bp=ft((e,t)=>{const{Component:r,children:n,icon:o=L.jsx(A5,{}),getBaseProps:a,getWrapperProps:s,getInputProps:i,getIconProps:l,getLabelProps:c}=O5({...e,ref:t}),u=typeof o=="function"?o(l()):f.cloneElement(o,l());return L.jsxs(r,{...a(),children:[L.jsx(Ns,{children:L.jsx("input",{...i()})}),L.jsx("span",{...s(),children:u}),n&&L.jsx("span",{...c(),children:n})]})});bp.displayName="NextUI.Checkbox";var N5=bp;const yp=e=>typeof e=="object"&&e!=null&&e.nodeType===1,xp=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Ui=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return xp(r.overflowY,t)||xp(r.overflowX,t)||(n=>{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!o&&(o.clientHeight<n.scrollHeight||o.clientWidth<n.scrollWidth)})(e)}return!1},wa=(e,t,r,n,o,a,s,i)=>a<e&&s>t||a>e&&s<t?0:a<=e&&i<=r||s>=t&&i>=r?a-e-n:s>t&&i<r||a<e&&i>r?s-t+o:0,L5=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},wp=(e,t)=>{var r,n,o,a;if(typeof document>"u")return[];const{scrollMode:s,block:i,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d=typeof c=="function"?c:F=>F!==c;if(!yp(e))throw new TypeError("Invalid target");const h=document.scrollingElement||document.documentElement,p=[];let m=e;for(;yp(m)&&d(m);){if(m=L5(m),m===h){p.push(m);break}m!=null&&m===document.body&&Ui(m)&&!Ui(document.documentElement)||m!=null&&Ui(m,u)&&p.push(m)}const y=(n=(r=window.visualViewport)==null?void 0:r.width)!=null?n:innerWidth,b=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:C,scrollY:x}=window,{height:P,width:E,top:S,right:N,bottom:j,left:g}=e.getBoundingClientRect(),{top:A,right:I,bottom:T,left:D}=(F=>{const $=window.getComputedStyle(F);return{top:parseFloat($.scrollMarginTop)||0,right:parseFloat($.scrollMarginRight)||0,bottom:parseFloat($.scrollMarginBottom)||0,left:parseFloat($.scrollMarginLeft)||0}})(e);let w=i==="start"||i==="nearest"?S-A:i==="end"?j+T:S+P/2-A+T,M=l==="center"?g+E/2-D+I:l==="end"?N+I:g-D;const O=[];for(let F=0;F<p.length;F++){const $=p[F],{height:V,width:Y,top:K,right:R,bottom:re,left:H}=$.getBoundingClientRect();if(s==="if-needed"&&S>=0&&g>=0&&j<=b&&N<=y&&S>=K&&j<=re&&g>=H&&N<=R)return O;const ie=getComputedStyle($),ee=parseInt(ie.borderLeftWidth,10),te=parseInt(ie.borderTopWidth,10),ve=parseInt(ie.borderRightWidth,10),be=parseInt(ie.borderBottomWidth,10);let fe=0,de=0;const pe="offsetWidth"in $?$.offsetWidth-$.clientWidth-ee-ve:0,Te="offsetHeight"in $?$.offsetHeight-$.clientHeight-te-be:0,Ee="offsetWidth"in $?$.offsetWidth===0?0:Y/$.offsetWidth:0,oe="offsetHeight"in $?$.offsetHeight===0?0:V/$.offsetHeight:0;if(h===$)fe=i==="start"?w:i==="end"?w-b:i==="nearest"?wa(x,x+b,b,te,be,x+w,x+w+P,P):w-b/2,de=l==="start"?M:l==="center"?M-y/2:l==="end"?M-y:wa(C,C+y,y,ee,ve,C+M,C+M+E,E),fe=Math.max(0,fe+x),de=Math.max(0,de+C);else{fe=i==="start"?w-K-te:i==="end"?w-re+be+Te:i==="nearest"?wa(K,re,V,te,be+Te,w,w+P,P):w-(K+V/2)+Te/2,de=l==="start"?M-H-ee:l==="center"?M-(H+Y/2)+pe/2:l==="end"?M-R+ve+pe:wa(H,R,Y,ee,ve+pe,M,M+E,E);const{scrollLeft:X,scrollTop:Oe}=$;fe=oe===0?0:Math.max(0,Math.min(Oe+fe/oe,$.scrollHeight-V/oe+Te)),de=Ee===0?0:Math.max(0,Math.min(X+de/Ee,$.scrollWidth-Y/Ee+pe)),w+=Oe-fe,M+=X-de}O.push({el:$,top:fe,left:de})}return O},j5=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function _5(e,t){if(!e.isConnected||!(n=>{let o=n;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;if((n=>typeof n=="object"&&typeof n.behavior=="function")(t))return t.behavior(wp(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:n,top:o,left:a}of wp(e,j5(t)))n.scroll({top:o,left:a,behavior:r})}let F5=Math.round(Math.random()*1e10),V5=0;function z5(e){let t=f.useMemo(()=>e.name||`radio-group-${F5}-${++V5}`,[e.name]);var r;let[n,o]=_r(e.value,(r=e.defaultValue)!==null&&r!==void 0?r:null,e.onChange),[a,s]=f.useState(null),i=xa({...e,value:n}),l=u=>{!e.isReadOnly&&!e.isDisabled&&(o(u),i.commitValidation())},c=i.displayValidation.isInvalid;return{...i,name:t,selectedValue:n,setSelectedValue:l,lastFocusedValue:a,setLastFocusedValue:s,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(c?"invalid":null),isInvalid:c}}const Cp=new WeakMap;function W5(e,t,r){let{value:n,children:o,"aria-label":a,"aria-labelledby":s}=e;const i=e.isDisabled||t.isDisabled;let l=o!=null,c=a!=null||s!=null;!l&&!c&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let u=t.selectedValue===n,d=g=>{g.stopPropagation(),t.setSelectedValue(n)},{pressProps:h,isPressed:p}=fr({isDisabled:i}),{pressProps:m,isPressed:y}=fr({isDisabled:i,onPress(){t.setSelectedValue(n)}}),{focusableProps:b}=Bo(se(e,{onFocus:()=>t.setLastFocusedValue(n)}),r),C=se(h,b),x=Vr(e,{labelable:!0}),P=-1;t.selectedValue!=null?t.selectedValue===n&&(P=0):(t.lastFocusedValue===n||t.lastFocusedValue==null)&&(P=0),i&&(P=void 0);let{name:E,descriptionId:S,errorMessageId:N,validationBehavior:j}=Cp.get(t);return bs(r,t.selectedValue,t.setSelectedValue),zi({validationBehavior:j},t,r),{labelProps:se(m,{onClick:g=>g.preventDefault()}),inputProps:se(x,{...C,type:"radio",name:E,tabIndex:P,disabled:i,required:t.isRequired&&j==="native",checked:u,value:n,onChange:d,"aria-describedby":[e["aria-describedby"],t.isInvalid?N:null,S].filter(Boolean).join(" ")||void 0}),isDisabled:i,isSelected:u,isPressed:p||y}}function B5(e,t){let{name:r,isReadOnly:n,isRequired:o,isDisabled:a,orientation:s="vertical",validationBehavior:i="aria"}=e,{direction:l}=xs(),{isInvalid:c,validationErrors:u,validationDetails:d}=t.displayValidation,{labelProps:h,fieldProps:p,descriptionProps:m,errorMessageProps:y}=gp({...e,labelElementType:"span",isInvalid:t.isInvalid,errorMessage:e.errorMessage||u}),b=Vr(e,{labelable:!0}),{focusWithinProps:C}=Vo({onBlurWithin(E){var S;(S=e.onBlur)===null||S===void 0||S.call(e,E),t.selectedValue||t.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),x=E=>{let S;switch(E.key){case"ArrowRight":l==="rtl"&&s!=="vertical"?S="prev":S="next";break;case"ArrowLeft":l==="rtl"&&s!=="vertical"?S="next":S="prev";break;case"ArrowDown":S="next";break;case"ArrowUp":S="prev";break;default:return}E.preventDefault();let N=As(E.currentTarget,{from:E.target}),j;S==="next"?(j=N.nextNode(),j||(N.currentNode=E.currentTarget,j=N.firstChild())):(j=N.previousNode(),j||(N.currentNode=E.currentTarget,j=N.lastChild())),j&&(j.focus(),t.setSelectedValue(j.value))},P=Fr(r);return Cp.set(t,{name:P,descriptionId:m.id,errorMessageId:y.id,validationBehavior:i}),{radioGroupProps:se(b,{role:"radiogroup",onKeyDown:x,"aria-invalid":t.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":n||void 0,"aria-required":o||void 0,"aria-disabled":a||void 0,"aria-orientation":s,...p,...C}),labelProps:h,descriptionProps:m,errorMessageProps:y,isInvalid:c,validationErrors:u,validationDetails:d}}function R5(e){const{as:t,ref:r,classNames:n,children:o,label:a,value:s,name:i,size:l="md",color:c="primary",isDisabled:u=!1,disableAnimation:d=!1,orientation:h="vertical",isRequired:p=!1,validationState:m,isInvalid:y=m==="invalid",isReadOnly:b,errorMessage:C,description:x,className:P,onChange:E,onValueChange:S,...N}=e,j=t||"div",g=nt(r),A=f.useMemo(()=>({...N,value:s,name:i,"aria-label":_s(N["aria-label"],a),isRequired:p,isReadOnly:b,isInvalid:y,orientation:h,onChange:S}),[N,s,i,a,p,b,y,h,S]),I=z5(A),{labelProps:T,radioGroupProps:D,errorMessageProps:w,descriptionProps:M}=B5(A,I),O=f.useMemo(()=>({size:l,color:c,groupState:I,isRequired:p,isInvalid:y,isDisabled:u,disableAnimation:d,onChange:E}),[l,c,p,u,y,E,d,I.name,I==null?void 0:I.isDisabled,I==null?void 0:I.isReadOnly,I==null?void 0:I.isRequired,I==null?void 0:I.selectedValue,I==null?void 0:I.lastFocusedValue]),F=f.useMemo(()=>a1({isRequired:p,isInvalid:y,disableAnimation:d}),[y,p,d]),$=me(n==null?void 0:n.base,P),V=f.useCallback(()=>({ref:g,className:F.base({class:$}),...se(D,N)}),[g,F,$,D,N]),Y=f.useCallback(()=>({className:F.label({class:n==null?void 0:n.label}),...T}),[F,n==null?void 0:n.label,T,n==null?void 0:n.label]),K=f.useCallback(()=>({className:F.wrapper({class:n==null?void 0:n.wrapper}),role:"presentation","data-orientation":h}),[F,n==null?void 0:n.wrapper,h,F.wrapper]),R=f.useCallback((H={})=>({...H,...M,className:F.description({class:me(n==null?void 0:n.description,H==null?void 0:H.className)})}),[F,n==null?void 0:n.description,M,F.description]),re=f.useCallback((H={})=>({...H,...w,className:F.errorMessage({class:me(n==null?void 0:n.errorMessage,H==null?void 0:H.className)})}),[F,n==null?void 0:n.errorMessage,w]);return{Component:j,children:o,label:a,context:O,errorMessage:C,description:x,getGroupProps:V,getLabelProps:Y,getWrapperProps:K,getDescriptionProps:R,getErrorMessageProps:re}}var[K5,U5]=Ho({name:"RadioGroupContext",strict:!1}),Pp=ft((e,t)=>{const{Component:r,children:n,label:o,context:a,description:s,errorMessage:i,getGroupProps:l,getLabelProps:c,getWrapperProps:u,getDescriptionProps:d,getErrorMessageProps:h}=R5({...e,ref:t});return L.jsxs(r,{...l(),children:[o&&L.jsx("span",{...c(),children:o}),L.jsx("div",{...u(),children:L.jsx(K5,{value:a,children:n})}),i?L.jsx("div",{...h(),children:i}):s?L.jsx("div",{...d(),children:s}):null]})});Pp.displayName="NextUI.RadioGroup";var H5=Pp;function Y5(e){var t,r,n,o;const a=U5(),{as:s,ref:i,classNames:l,id:c,value:u,children:d,description:h,size:p=(t=a==null?void 0:a.size)!=null?t:"md",color:m=(r=a==null?void 0:a.color)!=null?r:"primary",isDisabled:y=(n=a==null?void 0:a.isDisabled)!=null?n:!1,disableAnimation:b=(o=a==null?void 0:a.disableAnimation)!=null?o:!1,onChange:C=a==null?void 0:a.onChange,autoFocus:x=!1,className:P,...E}=e;a&&pu&&("checked"in E&&Uo('Remove props "checked" if in the Radio.Group.',"Radio"),u===void 0&&Uo('Props "value" must be defined if in the Radio.Group.',"Radio"));const S=s||"label",N=nt(i),j=f.useRef(null),g=f.useId(),A=f.useMemo(()=>{var oe;return(oe=a.isRequired)!=null?oe:!1},[a.isRequired]),I=a.isInvalid,T=f.useMemo(()=>{const oe=E["aria-label"]||typeof d=="string"?d:void 0,X=E["aria-describedby"]||typeof h=="string"?h:void 0;return{id:c,isRequired:A,isDisabled:y,"aria-label":oe,"aria-labelledby":E["aria-labelledby"]||g,"aria-describedby":X}},[g,c,y,A]),{inputProps:D,isDisabled:w,isSelected:M,isPressed:O}=W5({value:u,children:d,...a,...T},a.groupState,j),{focusProps:F,isFocused:$,isFocusVisible:V}=Mt({autoFocus:x}),Y=w||D.readOnly,[K,R]=f.useState(!1),{pressProps:re}=In({isDisabled:Y,onPressStart(oe){oe.pointerType!=="keyboard"&&R(!0)},onPressEnd(oe){oe.pointerType!=="keyboard"&&R(!1)}}),{hoverProps:H,isHovered:ie}=mr({isDisabled:Y}),ee=Y?!1:K||O,te=f.useMemo(()=>o1({color:m,size:p,isInvalid:I,isDisabled:w,disableAnimation:b}),[m,p,w,I,b]),ve=me(l==null?void 0:l.base,P),be=f.useCallback((oe={})=>({...oe,ref:N,className:te.base({class:ve}),"data-disabled":Q(w),"data-focus":Q($),"data-focus-visible":Q(V),"data-selected":Q(M),"data-invalid":Q(I),"data-hover":Q(ie),"data-pressed":Q(ee),"data-hover-unselected":Q(ie&&!M),"data-readonly":Q(D.readOnly),"aria-required":Q(A),...se(H,re,E)}),[te,ve,N,w,$,V,M,I,ie,ee,D.readOnly,A,E]),fe=f.useCallback((oe={})=>({...oe,"aria-hidden":!0,className:me(te.wrapper({class:me(l==null?void 0:l.wrapper,oe.className)}))}),[te,l==null?void 0:l.wrapper]),de=f.useCallback((oe={})=>({...oe,ref:j,required:A,...se(D,F),onChange:dr(D.onChange,C)}),[D,F,A,C]),pe=f.useCallback((oe={})=>({...oe,id:g,className:te.label({class:l==null?void 0:l.label})}),[te,l==null?void 0:l.label,w,M,I]),Te=f.useCallback((oe={})=>({...oe,className:te.labelWrapper({class:l==null?void 0:l.labelWrapper})}),[te,l==null?void 0:l.labelWrapper]),Ee=f.useCallback((oe={})=>({...oe,className:te.control({class:l==null?void 0:l.control})}),[te,l==null?void 0:l.control]);return{Component:S,children:d,slots:te,classNames:l,description:h,isSelected:M,isDisabled:w,isInvalid:I,isFocusVisible:V,getBaseProps:be,getWrapperProps:fe,getInputProps:de,getLabelProps:pe,getLabelWrapperProps:Te,getControlProps:Ee}}var Mp=ft((e,t)=>{const{Component:r,children:n,slots:o,classNames:a,description:s,getBaseProps:i,getWrapperProps:l,getInputProps:c,getLabelProps:u,getLabelWrapperProps:d,getControlProps:h}=Y5({...e,ref:t});return L.jsxs(r,{...i(),children:[L.jsx(Ns,{children:L.jsx("input",{...c()})}),L.jsx("span",{...l(),children:L.jsx("span",{...h()})}),L.jsxs("div",{...d(),children:[n&&L.jsx("span",{...u(),children:n}),s&&L.jsx("span",{className:o.description({class:a==null?void 0:a.description}),children:s})]})]})});Mp.displayName="NextUI.Radio";var G5=Mp;function q5(e,t,r){let{labelProps:n,inputProps:o,isSelected:a,isPressed:s,isDisabled:i,isReadOnly:l}=mp(e,t,r);return{labelProps:n,inputProps:{...o,role:"switch",checked:a},isSelected:a,isPressed:s,isDisabled:i,isReadOnly:l}}function Q5(e={}){const[t,r]=Sn(e,lu.variantKeys),{ref:n,as:o,name:a,value:s="",isReadOnly:i=!1,autoFocus:l=!1,startContent:c,endContent:u,defaultSelected:d,isSelected:h,children:p,thumbIcon:m,className:y,classNames:b,onChange:C,onValueChange:x,...P}=t,E=o||"label",S=f.useRef(null),N=hu(n,S),j=f.useId(),g=f.useMemo(()=>{const X=P["aria-label"]||typeof p=="string"?p:void 0;return{name:a,value:s,children:p,autoFocus:l,defaultSelected:d,isSelected:h,isDisabled:!!e.isDisabled,isReadOnly:i,"aria-label":X,"aria-labelledby":P["aria-labelledby"]||j,onChange:x}},[s,a,j,p,l,i,h,d,e.isDisabled,P["aria-label"],P["aria-labelledby"],x]),A=Ki(g),{inputProps:I,isPressed:T,isReadOnly:D}=q5(g,A,S),{focusProps:w,isFocused:M,isFocusVisible:O}=Mt({autoFocus:I.autoFocus}),{hoverProps:F,isHovered:$}=mr({isDisabled:I.disabled}),V=g.isDisabled||D,[Y,K]=f.useState(!1),{pressProps:R}=In({isDisabled:V,onPressStart(X){X.pointerType!=="keyboard"&&K(!0)},onPressEnd(X){X.pointerType!=="keyboard"&&K(!1)}}),re=V?!1:Y||T,H=I.checked,ie=I.disabled,ee=f.useMemo(()=>lu({...r}),[...Object.values(r)]),te=me(b==null?void 0:b.base,y),ve=X=>({...se(F,R,P,X),ref:N,className:ee.base({class:me(te,X==null?void 0:X.className)}),"data-disabled":Q(ie),"data-selected":Q(H),"data-readonly":Q(D),"data-focus":Q(M),"data-focus-visible":Q(O),"data-hover":Q($),"data-pressed":Q(re)}),be=f.useCallback((X={})=>({...X,"aria-hidden":!0,className:me(ee.wrapper({class:me(b==null?void 0:b.wrapper,X==null?void 0:X.className)}))}),[ee,b==null?void 0:b.wrapper]),fe=(X={})=>({...se(I,w,X),ref:S,id:I.id,onChange:dr(C,I.onChange)}),de=f.useCallback((X={})=>({...X,className:ee.thumb({class:me(b==null?void 0:b.thumb,X==null?void 0:X.className)})}),[ee,b==null?void 0:b.thumb]),pe=f.useCallback((X={})=>({...X,id:j,className:ee.label({class:me(b==null?void 0:b.label,X==null?void 0:X.className)})}),[ee,b==null?void 0:b.label,ie,H]),Te=f.useCallback((X={includeStateProps:!1})=>se({width:"1em",height:"1em",className:ee.thumbIcon({class:me(b==null?void 0:b.thumbIcon)})},X.includeStateProps?{isSelected:H}:{}),[ee,b==null?void 0:b.thumbIcon,H]),Ee=f.useCallback((X={})=>({width:"1em",height:"1em",...X,className:ee.startContent({class:me(b==null?void 0:b.startContent,X==null?void 0:X.className)})}),[ee,b==null?void 0:b.startContent,H]),oe=f.useCallback((X={})=>({width:"1em",height:"1em",...X,className:ee.endContent({class:me(b==null?void 0:b.endContent,X==null?void 0:X.className)})}),[ee,b==null?void 0:b.endContent,H]);return{Component:E,slots:ee,classNames:b,domRef:N,children:p,thumbIcon:m,startContent:c,endContent:u,isHovered:$,isSelected:H,isPressed:re,isFocused:M,isFocusVisible:O,isDisabled:ie,getBaseProps:ve,getWrapperProps:be,getInputProps:fe,getLabelProps:pe,getThumbProps:de,getThumbIconProps:Te,getStartContentProps:Ee,getEndContentProps:oe}}var Tp=ft((e,t)=>{const{Component:r,children:n,startContent:o,endContent:a,thumbIcon:s,getBaseProps:i,getInputProps:l,getWrapperProps:c,getThumbProps:u,getThumbIconProps:d,getLabelProps:h,getStartContentProps:p,getEndContentProps:m}=Q5({...e,ref:t}),y=typeof s=="function"?s(d({includeStateProps:!0})):s&&f.cloneElement(s,d()),b=o&&f.cloneElement(o,p()),C=a&&f.cloneElement(a,m());return L.jsxs(r,{...i(),children:[L.jsx(Ns,{children:L.jsx("input",{...l()})}),L.jsxs("span",{...c(),children:[o&&b,L.jsx("span",{...u(),children:s&&y}),a&&C]}),n&&L.jsx("span",{...h(),children:n})]})});Tp.displayName="NextUI.Switch";var X5=Tp;function Z5(e={}){const{rerender:t=!1,delay:r=0}=e,n=f.useRef(!1),[o,a]=f.useState(!1);return f.useEffect(()=>{n.current=!0;let s=null;return t&&(r>0?s=setTimeout(()=>{a(!0)},r):a(!0)),()=>{n.current=!1,t&&a(!1),s&&clearTimeout(s)}},[t]),[f.useCallback(()=>n.current,[]),o]}function J5(e,t){let{inputElementType:r="input",isDisabled:n=!1,isRequired:o=!1,isReadOnly:a=!1,type:s="text",validationBehavior:i="aria"}=e,[l,c]=_r(e.value,e.defaultValue||"",e.onChange),{focusableProps:u}=Bo(e,t),d=xa({...e,value:l}),{isInvalid:h,validationErrors:p,validationDetails:m}=d.displayValidation,{labelProps:y,fieldProps:b,descriptionProps:C,errorMessageProps:x}=gp({...e,isInvalid:h,errorMessage:e.errorMessage||p}),P=Vr(e,{labelable:!0});const E={type:s,pattern:e.pattern};return bs(t,l,c),zi(e,d,t),f.useEffect(()=>{if(t.current instanceof Pn(t.current).HTMLTextAreaElement){let S=t.current;Object.defineProperty(S,"defaultValue",{get:()=>S.value,set:()=>{},configurable:!0})}},[t]),{labelProps:y,inputProps:se(P,r==="input"&&E,{disabled:n,readOnly:a,required:o&&i==="native","aria-required":o&&i==="aria"||void 0,"aria-invalid":h||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:l,onChange:S=>c(S.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...u,...b}),descriptionProps:C,errorMessageProps:x,isInvalid:h,validationErrors:p,validationDetails:m}}function e4(e){const[t,r]=Sn(e,cu.variantKeys),{ref:n,as:o,label:a,baseRef:s,wrapperRef:i,description:l,errorMessage:c,className:u,classNames:d,autoFocus:h,startContent:p,endContent:m,onClear:y,onChange:b,validationState:C,innerWrapperRef:x,onValueChange:P=()=>{},...E}=t,S=f.useCallback(ce=>{P(ce??"")},[P]),[N,j]=_r(t.value,t.defaultValue,S),[g,A]=f.useState(!1),I=o||"div",T=!!N,D=T||g,w=me(d==null?void 0:d.base,u,T?"is-filled":""),M=e.isMultiline,O=nt(n),F=nt(s),$=nt(i),V=nt(x),Y=f.useCallback(()=>{j(""),O.current&&(O.current.value="",O.current.focus()),y==null||y()},[O,j,y]),{labelProps:K,inputProps:R,descriptionProps:re,errorMessageProps:H}=J5({...e,"aria-label":_s(e==null?void 0:e["aria-label"],e==null?void 0:e.label,e==null?void 0:e.placeholder),inputElementType:M?"textarea":"input",onChange:j},O),{isFocusVisible:ie,isFocused:ee,focusProps:te}=Mt({autoFocus:h,isTextInput:!0}),{isHovered:ve,hoverProps:be}=mr({isDisabled:!!(e!=null&&e.isDisabled)}),{focusProps:fe,isFocusVisible:de}=Mt(),{focusWithinProps:pe}=Vo({onFocusWithinChange:A}),{pressProps:Te}=fr({isDisabled:!!(e!=null&&e.isDisabled),onPress:Y}),Ee=C==="invalid"||e.isInvalid,oe=f.useMemo(()=>{var ce;return(!e.labelPlacement||e.labelPlacement==="inside")&&!a?"outside":(ce=e.labelPlacement)!=null?ce:"inside"},[e.labelPlacement,a]),X=!!y||e.isClearable,Oe=!!a||!!l||!!c,_e=!!t.placeholder,Fe=!!a,De=!!l||!!c,It=oe==="outside"||oe==="outside-left",gt=oe==="inside",Je=O.current?(!O.current.value||O.current.value===""||!N||N==="")&&_e:!1,Ir=oe==="outside-left",Ye=!!p,Ge=It?oe==="outside-left"||_e||oe==="outside"&&Ye:!1,kr=oe==="outside"&&!_e&&!Ye,xe=f.useMemo(()=>cu({...r,isInvalid:Ee,isClearable:X}),[...Object.values(r),Ee,X,Ye]),uo=f.useCallback((ce={})=>({ref:F,className:xe.base({class:w}),"data-slot":"base","data-filled":Q(T||_e||Ye||Je),"data-filled-within":Q(D||_e||Ye||Je),"data-focus-within":Q(g),"data-focus-visible":Q(ie),"data-readonly":Q(e.isReadOnly),"data-focus":Q(ee),"data-hover":Q(ve),"data-required":Q(e.isRequired),"data-invalid":Q(Ee),"data-disabled":Q(e.isDisabled),"data-has-elements":Q(Oe),"data-has-helper":Q(De),"data-has-label":Q(Fe),"data-has-value":Q(!Je),...pe,...ce}),[xe,w,T,ee,ve,Ee,De,Fe,Oe,Je,Ye,g,ie,D,_e,pe,e.isReadOnly,e.isRequired,e.isDisabled]),Ar=f.useCallback((ce={})=>({"data-slot":"label",className:xe.label({class:d==null?void 0:d.label}),...K,...ce}),[xe,K,d==null?void 0:d.label]),Or=f.useCallback((ce={})=>({ref:O,"data-slot":"input","data-filled":Q(T),"data-filled-within":Q(D),"data-has-start-content":Q(Ye),"data-has-end-content":Q(!!m),className:xe.input({class:me(d==null?void 0:d.input,N?"is-filled":"")}),...se(te,R,Dn(E,{enabled:!0,labelable:!0,omitEventNames:new Set(Object.keys(R))}),ce),required:e.isRequired,"aria-readonly":Q(e.isReadOnly),"aria-required":Q(e.isRequired),onChange:dr(R.onChange,b)}),[xe,N,te,R,E,T,D,Ye,m,d==null?void 0:d.input,e.isReadOnly,e.isRequired,b]),Ht=f.useCallback((ce={})=>({ref:$,"data-slot":"input-wrapper","data-hover":Q(ve),"data-focus-visible":Q(ie),"data-focus":Q(ee),className:xe.inputWrapper({class:me(d==null?void 0:d.inputWrapper,N?"is-filled":"")}),...se(ce,be),onClick:lt=>{O.current&<.currentTarget===lt.target&&O.current.focus()},style:{cursor:"text",...ce.style}}),[xe,ve,ie,ee,N,d==null?void 0:d.inputWrapper]),fo=f.useCallback((ce={})=>({...ce,ref:V,"data-slot":"inner-wrapper",onClick:lt=>{O.current&<.currentTarget===lt.target&&O.current.focus()},className:xe.innerWrapper({class:me(d==null?void 0:d.innerWrapper,ce==null?void 0:ce.className)})}),[xe,d==null?void 0:d.innerWrapper]),po=f.useCallback((ce={})=>({...ce,"data-slot":"main-wrapper",className:xe.mainWrapper({class:me(d==null?void 0:d.mainWrapper,ce==null?void 0:ce.className)})}),[xe,d==null?void 0:d.mainWrapper]),ho=f.useCallback((ce={})=>({...ce,"data-slot":"helper-wrapper",className:xe.helperWrapper({class:me(d==null?void 0:d.helperWrapper,ce==null?void 0:ce.className)})}),[xe,d==null?void 0:d.helperWrapper]),mo=f.useCallback((ce={})=>({...ce,...re,"data-slot":"description",className:xe.description({class:me(d==null?void 0:d.description,ce==null?void 0:ce.className)})}),[xe,d==null?void 0:d.description]),go=f.useCallback((ce={})=>({...ce,...H,"data-slot":"error-message",className:xe.errorMessage({class:me(d==null?void 0:d.errorMessage,ce==null?void 0:ce.className)})}),[xe,H,d==null?void 0:d.errorMessage]),vo=f.useCallback((ce={})=>({...ce,role:"button",tabIndex:0,"data-slot":"clear-button","data-focus-visible":Q(de),className:xe.clearButton({class:me(d==null?void 0:d.clearButton,ce==null?void 0:ce.className)}),...se(Te,fe)}),[xe,de,Te,fe,d==null?void 0:d.clearButton]);return{Component:I,classNames:d,domRef:O,label:a,description:l,startContent:p,endContent:m,labelPlacement:oe,isClearable:X,isInvalid:Ee,hasHelper:De,hasStartContent:Ye,isLabelOutside:Ge,isOutsideLeft:Ir,isLabelOutsideAsPlaceholder:kr,shouldLabelBeOutside:It,shouldLabelBeInside:gt,hasPlaceholder:_e,errorMessage:c,getBaseProps:uo,getLabelProps:Ar,getInputProps:Or,getMainWrapperProps:po,getInputWrapperProps:Ht,getInnerWrapperProps:fo,getHelperWrapperProps:ho,getDescriptionProps:mo,getErrorMessageProps:go,getClearButtonProps:vo}}var Ep=ft((e,t)=>{const{Component:r,label:n,description:o,isClearable:a,startContent:s,endContent:i,labelPlacement:l,hasHelper:c,isOutsideLeft:u,shouldLabelBeOutside:d,errorMessage:h,getBaseProps:p,getLabelProps:m,getInputProps:y,getInnerWrapperProps:b,getInputWrapperProps:C,getMainWrapperProps:x,getHelperWrapperProps:P,getDescriptionProps:E,getErrorMessageProps:S,getClearButtonProps:N}=e4({...e,ref:t}),j=n?L.jsx("label",{...m(),children:n}):null,g=f.useMemo(()=>a?L.jsx("span",{...N(),children:i||L.jsx(Mu,{})}):i,[a,N]),A=f.useMemo(()=>c?L.jsx("div",{...P(),children:h?L.jsx("div",{...S(),children:h}):o?L.jsx("div",{...E(),children:o}):null}):null,[c,h,o,P,S,E]),I=f.useMemo(()=>s||g?L.jsxs("div",{...b(),children:[s,L.jsx("input",{...y()}),g]}):L.jsx("div",{...b(),children:L.jsx("input",{...y()})}),[s,g,y,b]),T=f.useMemo(()=>d?L.jsxs("div",{...x(),children:[L.jsxs("div",{...C(),children:[u?null:j,I]}),A]}):L.jsxs(L.Fragment,{children:[L.jsxs("div",{...C(),children:[j,I]}),A]}),[l,A,d,j,I,h,o,x,C,S,E]);return L.jsxs(r,{...p(),children:[u?j:null,T]})});Ep.displayName="NextUI.Input";var t4=Ep,Ca="right-scroll-bar-position",Pa="width-before-scroll-bar",r4="with-scroll-bars-hidden",n4="--removed-body-scroll-bar-size";function o4(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function a4(e,t){var r=f.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}function s4(e,t){return a4(t||null,function(r){return e.forEach(function(n){return o4(n,r)})})}function i4(e){return e}function l4(e,t){t===void 0&&(t=i4);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var s=t(a,n);return r.push(s),function(){r=r.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(n=!0;r.length;){var s=r;r=[],s.forEach(a)}r={push:function(i){return a(i)},filter:function(){return r}}},assignMedium:function(a){n=!0;var s=[];if(r.length){var i=r;r=[],i.forEach(a),s=r}var l=function(){var u=s;s=[],u.forEach(a)},c=function(){return Promise.resolve().then(l)};c(),r={push:function(u){s.push(u),c()},filter:function(u){return s=s.filter(u),r}}}};return o}function c4(e){e===void 0&&(e={});var t=l4(null);return t.options=Pt({async:!0,ssr:!1},e),t}var Sp=function(e){var t=e.sideCar,r=zc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return U.createElement(n,Pt({},r))};Sp.isSideCarExport=!0;function u4(e,t){return e.useMedium(t),Sp}var $p,d4=function(){if($p)return $p;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function f4(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=d4();return t&&e.setAttribute("nonce",t),e}function p4(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function h4(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var m4=function(){var e=0,t=null;return{add:function(r){e==0&&(t=f4())&&(p4(t,r),h4(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},g4=function(){var e=m4();return function(t,r){U.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Dp=function(){var e=g4(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},v4={left:0,top:0,right:0,gap:0},Hi=function(e){return parseInt(e||"",10)||0},b4=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Hi(r),Hi(n),Hi(o)]},y4=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return v4;var t=b4(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},x4=Dp(),w4=function(e,t,r,n){var o=e.left,a=e.top,s=e.right,i=e.gap;return r===void 0&&(r="margin"),`
|
|
36
|
+
.`.concat(r4,` {
|
|
37
37
|
overflow: hidden `).concat(n,`;
|
|
38
38
|
padding-right: `).concat(i,"px ").concat(n,`;
|
|
39
39
|
}
|
|
@@ -67,12 +67,12 @@ Check the top-level render call using <`+_+">.")}return k}}function wo(v,k){{if(
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
body {
|
|
70
|
-
`).concat(
|
|
70
|
+
`).concat(n4,": ").concat(i,`px;
|
|
71
71
|
}
|
|
72
|
-
`)},x4=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n,a=U.useMemo(function(){return v4(o)},[o]);return U.createElement(b4,{styles:y4(a,!t,o,r?"":"!important")})};const $p=new WeakMap;function Ma(e,t,r){return typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${$p.get(e)}-${r}-${t}`}function w4(e,t,r){var n;let{key:o,isDisabled:a,shouldSelectOnPressUp:s}=e,{selectionManager:i,selectedKey:l}=t,c=o===l,u=a||t.isDisabled||t.disabledKeys.has(o),{itemProps:d,isPressed:h}=y1({selectionManager:i,key:o,ref:r,isDisabled:u,shouldSelectOnPressUp:s,linkBehavior:"selection"}),p=Ma(t,o,"tab"),m=Ma(t,o,"tabpanel"),{tabIndex:y}=d,b=t.collection.getItem(o),C=Vr(b==null?void 0:b.props,{isLink:!!(!(b==null||(n=b.props)===null||n===void 0)&&n.href),labelable:!0});return delete C.id,{tabProps:se(C,d,{id:p,"aria-selected":c,"aria-disabled":u||void 0,"aria-controls":c?m:void 0,tabIndex:u?void 0:y,role:"tab"}),isSelected:c,isDisabled:u,isPressed:h}}function C4(e,t,r){let n=Ug(r)?void 0:0;var o;const a=Ma(t,(o=e.id)!==null&&o!==void 0?o:t==null?void 0:t.selectedKey,"tabpanel"),s=ms({...e,id:a,"aria-labelledby":Ma(t,t==null?void 0:t.selectedKey,"tab")});return{tabPanelProps:se(s,{tabIndex:n,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}class P4{getKeyLeftOf(t){return this.flipDirection?this.getNextKey(t):this.getPreviousKey(t)}getKeyRightOf(t){return this.flipDirection?this.getPreviousKey(t):this.getNextKey(t)}getKeyAbove(t){return this.getPreviousKey(t)}getKeyBelow(t){return this.getNextKey(t)}getFirstKey(){let t=this.collection.getFirstKey();return t!=null&&this.disabledKeys.has(t)&&(t=this.getNextKey(t)),t}getLastKey(){let t=this.collection.getLastKey();return t!=null&&this.disabledKeys.has(t)&&(t=this.getPreviousKey(t)),t}getNextKey(t){do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(this.disabledKeys.has(t));return t}getPreviousKey(t){do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(this.disabledKeys.has(t));return t}constructor(t,r,n,o=new Set){this.collection=t,this.flipDirection=r==="rtl"&&n==="horizontal",this.disabledKeys=o}}function M4(e,t,r){let{orientation:n="horizontal",keyboardActivation:o="automatic"}=e,{collection:a,selectionManager:s,disabledKeys:i}=t,{direction:l}=xs(),c=f.useMemo(()=>new P4(a,l,n,i),[a,i,n,l]),{collectionProps:u}=b1({ref:r,selectionManager:s,keyboardDelegate:c,selectOnFocus:o==="automatic",disallowEmptySelection:!0,scrollRef:r,linkBehavior:"selection"}),d=Fr();$p.set(t,d);let h=ms({...e,id:d});return{tabListProps:{...se(u,h),role:"tablist","aria-orientation":n,tabIndex:void 0}}}var Dp=vt((e,t)=>{var r,n,o;const{as:a,state:s,className:i,slots:l,classNames:c,...u}=e,d=a||"div",h=nt(t),{tabPanelProps:p}=C4(e,s,h),{focusProps:m,isFocused:y,isFocusVisible:b}=Mt(),C=s.selectedItem,x=(r=C==null?void 0:C.props)==null?void 0:r.children,P=me(c==null?void 0:c.panel,i,(n=C==null?void 0:C.props)==null?void 0:n.className);return x?j.jsx(d,{ref:h,"data-focus":y,"data-focus-visible":b,...se(p,m,u),className:(o=l.panel)==null?void 0:o.call(l,{class:P}),"data-slot":"panel",children:x}):null});Dp.displayName="NextUI.TabPanel";var T4=Dp,Ip=vt((e,t)=>{var r;const{className:n,as:o,item:a,state:s,classNames:i,isDisabled:l,listRef:c,slots:u,motionProps:d,disableAnimation:h,disableCursorAnimation:p,shouldSelectOnPressUp:m,onClick:y,...b}=e,{key:C}=a,x=nt(t),P=o||(e.href?"a":"button"),E=typeof P=="string",{tabProps:S,isSelected:N,isDisabled:L,isPressed:g}=w4({key:C,isDisabled:l,shouldSelectOnPressUp:m},s,x),A=l||L,{focusProps:I,isFocused:T,isFocusVisible:D}=Mt(),{hoverProps:w,isHovered:M}=mr({isDisabled:A}),O=me(i==null?void 0:i.tab,n),[,F]=X5({rerender:!0}),$=()=>{dr(y,S.onClick),!(!(x!=null&&x.current)||!(c!=null&&c.current))&&j5(x.current,{scrollMode:"if-needed",behavior:"smooth",block:"end",inline:"end",boundary:c==null?void 0:c.current})};return j.jsxs(P,{ref:x,"data-disabled":Q(L),"data-focus":Q(T),"data-focus-visible":Q(D),"data-hover":Q(M),"data-hover-unselected":Q((M||g)&&!N),"data-pressed":Q(g),"data-selected":Q(N),"data-slot":"tab",...se(S,A?{}:{...I,...w},Dn(b,{enabled:E,omitPropNames:new Set(["title"])})),className:(r=u.tab)==null?void 0:r.call(u,{class:O}),title:b==null?void 0:b.titleValue,type:P==="button"?"button":void 0,onClick:$,children:[N&&!h&&!p&&F?j.jsx(Xf.span,{className:u.cursor({class:i==null?void 0:i.cursor}),"data-slot":"cursor",layoutDependency:!1,layoutId:"cursor",transition:{type:"spring",bounce:.15,duration:.5},...d}):null,j.jsx("div",{className:u.tabContent({class:i==null?void 0:i.tabContent}),"data-slot":"tabContent",children:a.rendered})]})});Ip.displayName="NextUI.Tab";var E4=Ip;class kp{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);return r?r.prevKey:null}getKeyAfter(t){let r=this.keyMap.get(t);return r?r.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){let r=this.keyMap.get(t);return(r==null?void 0:r.childNodes)||[]}constructor(t){this.keyMap=new Map,this.iterable=t;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let s of a.childNodes)r(s)};for(let a of t)r(a);let n,o=0;for(let[a,s]of this.keyMap)n?(n.nextKey=a,s.prevKey=n.key):(this.firstKey=a,s.prevKey=void 0),s.type==="item"&&(s.index=o++),n=s,n.nextKey=void 0;this.lastKey=n==null?void 0:n.key}}function S4(e){let{filter:t}=e,r=e5(e),n=f.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=f.useCallback(c=>t?new kp(t(c)):new kp(c),[t]),a=f.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),s=q2(e,o,a),i=f.useMemo(()=>new t5(s,r),[s,r]);const l=f.useRef(null);return f.useEffect(()=>{if(r.focusedKey!=null&&!s.getItem(r.focusedKey)){const c=l.current.getItem(r.focusedKey),u=[...l.current.getKeys()].map(y=>{const b=l.current.getItem(y);return b.type==="item"?b:null}).filter(y=>y!==null),d=[...s.getKeys()].map(y=>{const b=s.getItem(y);return b.type==="item"?b:null}).filter(y=>y!==null),h=u.length-d.length;let p=Math.min(h>1?Math.max(c.index-h+1,0):c.index,d.length-1),m;for(;p>=0;){if(!i.isDisabled(d[p].key)){m=d[p];break}p<d.length-1?p++:(p>c.index&&(p=c.index),p--)}r.setFocusedKey(m?m.key:null)}l.current=s},[s,i,r,r.focusedKey]),{collection:s,disabledKeys:n,selectionManager:i}}function $4(e){var t;let[r,n]=_r(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=f.useMemo(()=>r!=null?[r]:[],[r]),{collection:a,disabledKeys:s,selectionManager:i}=S4({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:c=>{var u;let d=(u=c.values().next().value)!==null&&u!==void 0?u:null;d===r&&e.onSelectionChange&&e.onSelectionChange(d),n(d)}}),l=r!=null?a.getItem(r):null;return{collection:a,disabledKeys:s,selectionManager:i,selectedKey:r,setSelectedKey:n,selectedItem:l}}function D4(e){var t;let r=$4({...e,suppressTextValueWarning:!0,defaultSelectedKey:(t=e.defaultSelectedKey)!==null&&t!==void 0?t:Ap(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)}),{selectionManager:n,collection:o,selectedKey:a}=r,s=f.useRef(a);return f.useEffect(()=>{let i=a;(n.isEmpty||!o.getItem(i))&&(i=Ap(o,r.disabledKeys),i!=null&&n.setSelectedKeys([i])),(i!=null&&n.focusedKey==null||!n.isFocused&&i!==s.current)&&n.setFocusedKey(i),s.current=i}),{...r,isDisabled:e.isDisabled||!1}}function Ap(e,t){let r=null;if(e){for(r=e.getFirstKey();t.has(r)&&r!==e.getLastKey();)r=e.getKeyAfter(r);t.has(r)&&r===e.getLastKey()&&(r=e.getFirstKey())}return r}function I4(e){const[t,r]=Sn(e,iu.variantKeys),{ref:n,as:o,className:a,classNames:s,children:i,disableCursorAnimation:l,shouldSelectOnPressUp:c=!0,motionProps:u,...d}=t,h=o||"div",p=typeof h=="string",m=nt(n),y=D4({children:i,...d}),{tabListProps:b}=M4(d,y,m),C=f.useMemo(()=>iu({...r,className:a}),[...Object.values(r),a]),x=me(s==null?void 0:s.base,a),P=f.useMemo(()=>({state:y,slots:C,classNames:s,motionProps:u,listRef:m,shouldSelectOnPressUp:c,disableCursorAnimation:l,isDisabled:e==null?void 0:e.isDisabled,disableAnimation:e==null?void 0:e.disableAnimation}),[y,C,m,u,l,c,e==null?void 0:e.disableAnimation,e==null?void 0:e.isDisabled,s]),E=f.useCallback(N=>({"data-slot":"base",className:C.base({class:me(x,N==null?void 0:N.className)}),...se(Dn(d,{enabled:p}),N)}),[x,d,C]),S=f.useCallback(N=>({ref:m,"data-slot":"tabList",className:C.tabList({class:me(s==null?void 0:s.tabList,N==null?void 0:N.className)}),...se(b,N)}),[m,b,s,C]);return{Component:h,domRef:m,state:y,values:P,getBaseProps:E,getTabListProps:S}}function Op(e,t){var r;const{Component:n,values:o,state:a,getBaseProps:s,getTabListProps:i}=I4({...e,ref:t}),l=f.useId(),c=!e.disableAnimation&&!e.disableCursorAnimation,u={state:a,listRef:o.listRef,slots:o.slots,classNames:o.classNames,isDisabled:o.isDisabled,motionProps:o.motionProps,disableAnimation:o.disableAnimation,shouldSelectOnPressUp:o.shouldSelectOnPressUp,disableCursorAnimation:o.disableCursorAnimation},d=[...a.collection].map(h=>j.jsx(E4,{item:h,...u,...h.props},h.key));return j.jsxs(j.Fragment,{children:[j.jsx("div",{...s(),children:j.jsx(n,{...i(),children:c?j.jsx(K2,{id:l,children:d}):d})}),j.jsx(T4,{classNames:o.classNames,slots:o.slots,state:o.state},(r=a.selectedItem)==null?void 0:r.key)]})}var k4=vt(Op);Op.displayName="NextUI.Tabs";var A4=H2,O4=A4;const N4=({icons:e,className:t})=>{const r=Me({base:"bg-primary-grey-700",variants:{withIcon:{false:"h-6 w-11 px-[2px] group-data-[selected=true]:bg-secondary-green-500",true:"h-[52px] w-[88px] bg-secondary-green-500 group-data-[selected=true]:bg-primary-green-500"}}}),n=Me({variants:{withIcon:{false:"h-5 w-5 group-data-[selected=true]:ml-5",true:"h-11 w-11 group-data-[selected=true]:ml-9"}}});return j.jsx(Q5,{classNames:{wrapper:r({withIcon:!!e,className:t}),thumb:n({withIcon:!!e})},thumbIcon:({isSelected:o,className:a})=>e&&(o?j.jsx(et,{name:e.selectedIcon,className:ur(a,"text-lg")}):j.jsx(et,{name:e.unselectedIcon,className:ur(a,"text-lg")}))})},L4=()=>j.jsx(O5,{classNames:{wrapper:"w-4 h-4 rounded-sm before:rounded-sm before:border before:border-primary-grey-700 after:rounded-sm after:bg-secondary-green-500",icon:"w-[11px] h-2.5 [&>*]:stroke-[4px]"}}),Np=({size:e="md",className:t,border:r=!1,image:n,label:o,...a})=>{const s=Me({base:"bg-white font-satoshi font-bold capitalize text-white",variants:{size:{lg:"h-28 w-28 text-[48px]",md:"h-[72px] w-[72px] text-[32px]",sm:"h-12 w-12 text-[24px]",xs:"h-6 w-6 text-[12px]"},border:{true:"border-primary-grey-600"},isText:{true:"bg-complementary-violet-500 "}},compoundVariants:[{border:!0,size:"lg",class:"border-[4px]"},{border:!0,size:"md",class:"border-[3px]"},{border:!0,size:"sm",class:"border-2"},{border:!0,size:"xs",class:"border"}]}),i=Me({base:"text-primary-grey-600",variants:{size:{xs:"text-[12px]",sm:"text-[24px]",md:"text-[32px]",lg:"text-[48px]"}}});return j.jsx(i5,{fallback:!o&&j.jsx(et,{name:"user",className:i({size:e})}),showFallback:!!o,src:n,name:o,className:s({size:e,border:r,isText:!!(o&&!n),className:t}),...a})},j4=({options:e,labelPosition:t="right"})=>j.jsx(U5,{children:e.map(r=>j.jsxs("div",{className:"flex items-center gap-2",children:[t==="left"&&j.jsx("label",{"data-testid":"label-position-left",children:r.label}),j.jsx(Y5,{value:r.value,id:r.id,classNames:{wrapper:"border border-primary-grey-700 group-data-[selected=true]:border-secondary-green-500 group-data-[selected=true]:bg-secondary-green-500",control:"bg-white"}}),t==="right"&&r.label&&j.jsx("label",{"data-testid":"label-position-right",children:r.label})]},r.value))}),Yi=({children:e,size:t,variant:r="primary",disabled:n,full:o=!1,iconLeft:a,iconRight:s,className:i,hasLoading:l,isLoadingComplete:c,onClick:u,onLoadingAnimationComplete:d})=>{const[h,p]=f.useState(!1);let m=null;const[y,b]=f.useState("w-0"),C=E=>{if(l){p(!0);let S=1;m=setInterval(()=>{b(`w-${S}/4`),S<3?S++:m&&clearInterval(m)},1e3)}u&&u(E)},x=Me({base:`absolute left-0 top-0 h-full rounded-full bg-transparent duration-1000 ease-in ${y}`,variants:{isLoadingComplete:{true:"w-full duration-500",false:""},loadingVariant:{primaryDark:"bg-white",primaryLight:"bg-primary-green-500 ",primary:"bg-primary-green-500 ",negative:"bg-complementary-red-700",secondaryNegative:"bg-complementary-red-50",secondary:"bg-secondary-green-50",tertiary:"",tertiaryDark:"",tertiaryLight:"",direction:"",directionCircle:""}}}),P=Me({base:"relative !overflow-hidden rounded-full border-transparent px-10 py-4 font-bold text-white !ring-0 !ring-transparent hover:text-white focus:outline focus:outline-2 focus:-outline-offset-4 focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-4 focus-visible:outline-white",variants:{size:{small:"h-9",medium:"h-12",large:"h-14"},variant:{primaryDark:"bg-white text-primary-green-500 hover:bg-secondary-green-500 focus:bg-secondary-green-500 focus:text-white focus:outline-primary-green-500",primaryLight:"bg-primary-green-500 hover:bg-white hover:text-secondary-green-500 focus:bg-white focus:text-secondary-green-500 focus:outline-secondary-green-500",primary:"bg-primary-green-500 hover:bg-secondary-green-500 focus:bg-secondary-green-500 focus:outline-white",negative:"bg-complementary-red-700 hover:border-transparent hover:bg-complementary-red-500 focus:bg-complementary-red-500 focus:outline-white",secondaryNegative:"border border-complementary-red-700 !bg-white font-medium text-complementary-red-700 hover:border-2 hover:border-complementary-red-500 hover:text-complementary-red-500 focus:border-[3px] focus:border-complementary-red-500 focus:text-complementary-red-500",secondary:"border border-primary-green-500 !bg-transparent font-medium text-primary-green-500 hover:border-2 hover:border-secondary-green-500 hover:text-secondary-green-500 focus:border-[3px] focus:border-secondary-green-500 focus:text-secondary-green-500",tertiary:"!bg-transparent px-4 font-medium text-primary-green-500 underline hover:text-secondary-green-500 focus:font-bold focus:text-secondary-green-500 focus:outline-none",tertiaryDark:"!bg-transparent px-4 font-medium text-secondary-green-500 underline focus:font-bold focus:text-secondary-green-500 focus:outline-none",tertiaryLight:"!bg-transparent px-4 font-medium text-primary-green-500 underline focus:font-bold focus:text-primary-green-500 focus:outline-none",direction:"h-10 bg-primary-green-500 p-2.5 font-medium hover:bg-secondary-green-500 focus:border-none focus:bg-secondary-green-500 focus:outline-none",directionCircle:"font:medium bg-primary-green-500 hover:bg-secondary-green-500 focus:border-none focus:bg-secondary-green-500 focus:outline-none"},full:{true:"w-full",false:""},disabled:{true:"pointer-events-none border-transparent bg-primary-grey-500 font-medium text-primary-grey-700",false:""},isLoading:{true:"",false:""},hasIcon:{true:"!px-6"}},compoundVariants:[{variant:"primaryDark",isLoading:!0,class:"!bg-secondary-green-500 !text-primary-green-500 focus:bg-secondary-green-500 focus:outline-secondary-green-500"},{variant:"primaryLight",isLoading:!0,class:"!bg-white text-secondary-green-500 focus:outline-white"},{variant:"primary",isLoading:!0,class:"!bg-secondary-green-500 focus:outline-secondary-green-500"},{variant:"negative",isLoading:!0,class:"!bg-complementary-red-500 focus:outline-complementary-red-500"},{variant:"secondaryNegative",isLoading:!0,class:"!border !border-complementary-red-700 !bg-white text-complementary-red-700 focus:outline-none"},{variant:"secondary",isLoading:!0,class:"!border !border-secondary-green-500 !bg-white text-secondary-green-500 focus:outline-none"},{variant:"tertiary",isLoading:!0,class:"!font-medium"},{variant:"tertiaryDark",isLoading:!0,class:"!font-medium"},{variant:"tertiaryLight",isLoading:!0,class:"!font-medium"},{variant:"secondaryNegative",disabled:!0,class:"border border-primary-grey-700 bg-transparent"},{variant:"secondary",disabled:!0,class:"border border-primary-grey-700 bg-transparent"},{variant:"tertiary",disabled:!0,class:"bg-transparent underline"},{variant:"directionCircle",hasIcon:!0,class:"!min-w-unit-10 !px-0"}]});return f.useEffect(()=>{setTimeout(()=>{d&&d()})},[c,d]),f.useEffect(()=>()=>{m&&clearInterval(m)},[m]),j.jsx(g5,{onClick:C,className:ur(i,P({size:t,variant:r,disabled:n,full:o,isLoading:h,hasIcon:!!(a||s)})),children:j.jsxs("div",{children:[j.jsx("div",{className:ur(i,x({isLoadingComplete:c,loadingVariant:r}))}),j.jsxs("div",{className:"relative flex items-center gap-3 text-center",children:[a&&j.jsx(et,{"data-testid":"button-component-icon-left",name:a}),e,s&&j.jsx(et,{"data-testid":"button-component-icon-right",name:s})]})]})})},_4=({children:e,className:t,avatar:r,size:n="sm",disabled:o=!1,iconLeft:a,iconRight:s})=>{const i=Me({base:"flex h-6 cursor-pointer items-center justify-center gap-2 border border-primary-green-500 bg-white px-2 pt-[1px] font-satoshi text-[10px] font-medium leading-[15px] text-primary-green-500 hover:border-secondary-green-500 hover:text-secondary-green-500 active:border-[2px] active:px-[7px]",variants:{size:{sm:"",lg:"h-[54px] gap-3 px-4 text-base active:px-[15px]"},hasAvatar:{true:"!border-0 bg-primary-grey-600 pl-6"},disabled:{true:"cursor-default !border-1 !border-primary-grey-500 bg-primary-grey-500 !text-primary-grey-800"}},compoundVariants:[{size:"sm",hasAvatar:!0,class:"pl-6 active:pl-[24px] active:pr-[8px]"},{size:"lg",hasAvatar:!0,class:"pl-14 active:pl-[56px] active:pr-[16px]"},{size:"sm",disabled:!0,class:"active:px-[8px]"},{size:"lg",disabled:!0,class:"active:px-[16px]"}]}),l=Me({base:"absolute left-0 top-0",variants:{size:{sm:"",lg:"h-[54px] w-[54px]"}}}),c=Me({base:"text-xs",variants:{size:{sm:"",lg:"text-lg"}}});return j.jsxs(b5,{size:n,className:ur(i({hasAvatar:!!r,size:n,disabled:o,className:t})),startContent:a&&j.jsx(et,{className:c({size:n}),name:a}),endContent:s&&j.jsx(et,{className:c({size:n}),name:s}),children:[r&&j.jsx(Np,{className:l({size:n}),border:!1,size:"xs",image:r}),e]})};function F4(e,t,r=window){const n=f.useRef(t);f.useEffect(()=>{n.current=t},[t]),f.useEffect(()=>{if(r==null)return;const o=a=>n.current(a);return r.addEventListener(e,o),()=>r.removeEventListener(e,o)},[e,r])}const V4=({tabs:e,size:t="md",selectedKey:r,onSelectionChange:n,...o})=>{const[a,s]=f.useState(r??e[0].key),i=Me({base:"bg-primary-grey-600 p-[1px]",variants:{size:{sm:"h-8",md:"h-9",lg:"h-11"}}}),l=Me({base:"h-full data-[selected=true]:!font-bold data-[hover-unselected='true']:!text-secondary-green-500 data-[selected=true]:!text-primary-green-500 data-[hover='true']:opacity-100",variants:{size:{sm:"px-[40px]",md:"px-[80px]",lg:"px-[75px]"}}}),c=Me({base:"!text-white shadow-none"}),u=Me({base:"!font-inherit font-satoshi !text-inherit",variants:{size:{sm:"text-[14px]",md:"text-[14px]",lg:"text-[20px]"}}});return F4("click",d=>{var m;const h=d.target,p=(m=h==null?void 0:h.closest)==null?void 0:m.call(h,'button[data-slot="tab"]');if(p){const y=p==null?void 0:p.dataset.key;s(y)}}),j.jsx(k4,{selectedKey:a,onSelectionChange:d=>{n?n(d):s(d)},classNames:{tabList:i({size:t}),tab:l({size:t}),cursor:c(),tabContent:u({size:t})},radius:"full",size:t,...o,children:e.map(({key:d,title:h,component:p})=>j.jsx(O4,{title:h,children:p},d))})},Lp=({message:e,actions:t,inlineActions:r=!0})=>{const n=Me({base:"flex gap-3 rounded-lg bg-primary-black-400 p-4",variants:{inlineActions:{true:"flex flex-row",false:"flex flex-col items-end justify-end"},toastType:{alert:"rounded-2xl bg-primary-grey-600",snackbar:"bg-primary-black-400",banner:"rounded-2xl bg-complementary-red-500"}}});return j.jsxs("div",{className:n({inlineActions:r}),children:[j.jsx("div",{className:"flex flex-1 items-center gap-4",children:j.jsx("p",{className:"font-satoshi text-sm",children:e})}),j.jsx("div",{children:t&&j.jsx("div",{className:"flex",children:t.map(({label:o,onClick:a})=>j.jsx(Yi,{onClick:a,variant:"tertiaryDark",children:o},o))})})]})};function jp(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=jp(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function rr(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=jp(e))&&(n&&(n+=" "),n+=t);return n}const Yn=e=>typeof e=="number"&&!isNaN(e),Tr=e=>typeof e=="string",Qe=e=>typeof e=="function",Ta=e=>Tr(e)||Qe(e)?e:null,Gi=e=>f.isValidElement(e)||Tr(e)||Qe(e)||Yn(e);function z4(e,t,r){r===void 0&&(r=300);const{scrollHeight:n,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=n+"px",o.transition=`all ${r}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,r)})})}function Ea(e){let{enter:t,exit:r,appendPosition:n=!1,collapse:o=!0,collapseDuration:a=300}=e;return function(s){let{children:i,position:l,preventExitTransition:c,done:u,nodeRef:d,isIn:h}=s;const p=n?`${t}--${l}`:t,m=n?`${r}--${l}`:r,y=f.useRef(0);return f.useLayoutEffect(()=>{const b=d.current,C=p.split(" "),x=P=>{P.target===d.current&&(b.dispatchEvent(new Event("d")),b.removeEventListener("animationend",x),b.removeEventListener("animationcancel",x),y.current===0&&P.type!=="animationcancel"&&b.classList.remove(...C))};b.classList.add(...C),b.addEventListener("animationend",x),b.addEventListener("animationcancel",x)},[]),f.useEffect(()=>{const b=d.current,C=()=>{b.removeEventListener("animationend",C),o?z4(b,u,a):u()};h||(c?C():(y.current=1,b.className+=` ${m}`,b.addEventListener("animationend",C)))},[h]),f.createElement(f.Fragment,null,i)}}function _p(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const pt={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const r=this.list.get(e).filter(n=>n!==t);return this.list.set(e,r),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{const r=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(r)})}},Sa=e=>{let{theme:t,type:r,...n}=e;return f.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${r})`,...n})},qi={info:function(e){return f.createElement(Sa,{...e},f.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return f.createElement(Sa,{...e},f.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return f.createElement(Sa,{...e},f.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return f.createElement(Sa,{...e},f.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return f.createElement("div",{className:"Toastify__spinner"})}};function W4(e){const[,t]=f.useReducer(p=>p+1,0),[r,n]=f.useState([]),o=f.useRef(null),a=f.useRef(new Map).current,s=p=>r.indexOf(p)!==-1,i=f.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:s,getToast:p=>a.get(p)}).current;function l(p){let{containerId:m}=p;const{limit:y}=i.props;!y||m&&i.containerId!==m||(i.count-=i.queue.length,i.queue=[])}function c(p){n(m=>p==null?[]:m.filter(y=>y!==p))}function u(){const{toastContent:p,toastProps:m,staleId:y}=i.queue.shift();h(p,m,y)}function d(p,m){let{delay:y,staleId:b,...C}=m;if(!Gi(p)||function(D){return!o.current||i.props.enableMultiContainer&&D.containerId!==i.props.containerId||a.has(D.toastId)&&D.updateId==null}(C))return;const{toastId:x,updateId:P,data:E}=C,{props:S}=i,N=()=>c(x),L=P==null;L&&i.count++;const g={...S,style:S.toastStyle,key:i.toastKey++,...Object.fromEntries(Object.entries(C).filter(D=>{let[w,M]=D;return M!=null})),toastId:x,updateId:P,data:E,closeToast:N,isIn:!1,className:Ta(C.className||S.toastClassName),bodyClassName:Ta(C.bodyClassName||S.bodyClassName),progressClassName:Ta(C.progressClassName||S.progressClassName),autoClose:!C.isLoading&&(A=C.autoClose,I=S.autoClose,A===!1||Yn(A)&&A>0?A:I),deleteToast(){const D=_p(a.get(x),"removed");a.delete(x),pt.emit(4,D);const w=i.queue.length;if(i.count=x==null?i.count-i.displayedToast:i.count-1,i.count<0&&(i.count=0),w>0){const M=x==null?i.props.limit:1;if(w===1||M===1)i.displayedToast++,u();else{const O=M>w?w:M;i.displayedToast=O;for(let F=0;F<O;F++)u()}}else t()}};var A,I;g.iconOut=function(D){let{theme:w,type:M,isLoading:O,icon:F}=D,$=null;const V={theme:w,type:M};return F===!1||(Qe(F)?$=F(V):f.isValidElement(F)?$=f.cloneElement(F,V):Tr(F)||Yn(F)?$=F:O?$=qi.spinner():(Y=>Y in qi)(M)&&($=qi[M](V))),$}(g),Qe(C.onOpen)&&(g.onOpen=C.onOpen),Qe(C.onClose)&&(g.onClose=C.onClose),g.closeButton=S.closeButton,C.closeButton===!1||Gi(C.closeButton)?g.closeButton=C.closeButton:C.closeButton===!0&&(g.closeButton=!Gi(S.closeButton)||S.closeButton);let T=p;f.isValidElement(p)&&!Tr(p.type)?T=f.cloneElement(p,{closeToast:N,toastProps:g,data:E}):Qe(p)&&(T=p({closeToast:N,toastProps:g,data:E})),S.limit&&S.limit>0&&i.count>S.limit&&L?i.queue.push({toastContent:T,toastProps:g,staleId:b}):Yn(y)?setTimeout(()=>{h(T,g,b)},y):h(T,g,b)}function h(p,m,y){const{toastId:b}=m;y&&a.delete(y);const C={content:p,props:m};a.set(b,C),n(x=>[...x,b].filter(P=>P!==y)),pt.emit(4,_p(C,C.props.updateId==null?"added":"updated"))}return f.useEffect(()=>(i.containerId=e.containerId,pt.cancelEmit(3).on(0,d).on(1,p=>o.current&&c(p)).on(5,l).emit(2,i),()=>{a.clear(),pt.emit(3,i)}),[]),f.useEffect(()=>{i.props=e,i.isToastActive=s,i.displayedToast=r.length}),{getToastToRender:function(p){const m=new Map,y=Array.from(a.values());return e.newestOnTop&&y.reverse(),y.forEach(b=>{const{position:C}=b.props;m.has(C)||m.set(C,[]),m.get(C).push(b)}),Array.from(m,b=>p(b[0],b[1]))},containerRef:o,isToastActive:s}}function Fp(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function Vp(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function B4(e){const[t,r]=f.useState(!1),[n,o]=f.useState(!1),a=f.useRef(null),s=f.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,i=f.useRef(e),{autoClose:l,pauseOnHover:c,closeToast:u,onClick:d,closeOnClick:h}=e;function p(E){if(e.draggable){E.nativeEvent.type==="touchstart"&&E.nativeEvent.preventDefault(),s.didMove=!1,document.addEventListener("mousemove",C),document.addEventListener("mouseup",x),document.addEventListener("touchmove",C),document.addEventListener("touchend",x);const S=a.current;s.canCloseOnClick=!0,s.canDrag=!0,s.boundingRect=S.getBoundingClientRect(),S.style.transition="",s.x=Fp(E.nativeEvent),s.y=Vp(E.nativeEvent),e.draggableDirection==="x"?(s.start=s.x,s.removalDistance=S.offsetWidth*(e.draggablePercent/100)):(s.start=s.y,s.removalDistance=S.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent/100))}}function m(E){if(s.boundingRect){const{top:S,bottom:N,left:L,right:g}=s.boundingRect;E.nativeEvent.type!=="touchend"&&e.pauseOnHover&&s.x>=L&&s.x<=g&&s.y>=S&&s.y<=N?b():y()}}function y(){r(!0)}function b(){r(!1)}function C(E){const S=a.current;s.canDrag&&S&&(s.didMove=!0,t&&b(),s.x=Fp(E),s.y=Vp(E),s.delta=e.draggableDirection==="x"?s.x-s.start:s.y-s.start,s.start!==s.x&&(s.canCloseOnClick=!1),S.style.transform=`translate${e.draggableDirection}(${s.delta}px)`,S.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function x(){document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",x),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",x);const E=a.current;if(s.canDrag&&s.didMove&&E){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return o(!0),void e.closeToast();E.style.transition="transform 0.2s, opacity 0.2s",E.style.transform=`translate${e.draggableDirection}(0)`,E.style.opacity="1"}}f.useEffect(()=>{i.current=e}),f.useEffect(()=>(a.current&&a.current.addEventListener("d",y,{once:!0}),Qe(e.onOpen)&&e.onOpen(f.isValidElement(e.children)&&e.children.props),()=>{const E=i.current;Qe(E.onClose)&&E.onClose(f.isValidElement(E.children)&&E.children.props)}),[]),f.useEffect(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||b(),window.addEventListener("focus",y),window.addEventListener("blur",b)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",y),window.removeEventListener("blur",b))}),[e.pauseOnFocusLoss]);const P={onMouseDown:p,onTouchStart:p,onMouseUp:m,onTouchEnd:m};return l&&c&&(P.onMouseEnter=b,P.onMouseLeave=y),h&&(P.onClick=E=>{d&&d(E),s.canCloseOnClick&&u()}),{playToast:y,pauseToast:b,isRunning:t,preventExitTransition:n,toastRef:a,eventHandlers:P}}function zp(e){let{closeToast:t,theme:r,ariaLabel:n="close"}=e;return f.createElement("button",{className:`Toastify__close-button Toastify__close-button--${r}`,type:"button",onClick:o=>{o.stopPropagation(),t(o)},"aria-label":n},f.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},f.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function R4(e){let{delay:t,isRunning:r,closeToast:n,type:o="default",hide:a,className:s,style:i,controlledProgress:l,progress:c,rtl:u,isIn:d,theme:h}=e;const p=a||l&&c===0,m={...i,animationDuration:`${t}ms`,animationPlayState:r?"running":"paused",opacity:p?0:1};l&&(m.transform=`scaleX(${c})`);const y=rr("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${h}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":u}),b=Qe(s)?s({rtl:u,type:o,defaultClassName:y}):rr(y,s);return f.createElement("div",{role:"progressbar","aria-hidden":p?"true":"false","aria-label":"notification timer",className:b,style:m,[l&&c>=1?"onTransitionEnd":"onAnimationEnd"]:l&&c<1?null:()=>{d&&n()}})}const K4=e=>{const{isRunning:t,preventExitTransition:r,toastRef:n,eventHandlers:o}=B4(e),{closeButton:a,children:s,autoClose:i,onClick:l,type:c,hideProgressBar:u,closeToast:d,transition:h,position:p,className:m,style:y,bodyClassName:b,bodyStyle:C,progressClassName:x,progressStyle:P,updateId:E,role:S,progress:N,rtl:L,toastId:g,deleteToast:A,isIn:I,isLoading:T,iconOut:D,closeOnClick:w,theme:M}=e,O=rr("Toastify__toast",`Toastify__toast-theme--${M}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":L},{"Toastify__toast--close-on-click":w}),F=Qe(m)?m({rtl:L,position:p,type:c,defaultClassName:O}):rr(O,m),$=!!N||!i,V={closeToast:d,type:c,theme:M};let Y=null;return a===!1||(Y=Qe(a)?a(V):f.isValidElement(a)?f.cloneElement(a,V):zp(V)),f.createElement(h,{isIn:I,done:A,position:p,preventExitTransition:r,nodeRef:n},f.createElement("div",{id:g,onClick:l,className:F,...o,style:y,ref:n},f.createElement("div",{...I&&{role:S},className:Qe(b)?b({type:c}):rr("Toastify__toast-body",b),style:C},D!=null&&f.createElement("div",{className:rr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!T})},D),f.createElement("div",null,s)),Y,f.createElement(R4,{...E&&!$?{key:`pb-${E}`}:{},rtl:L,theme:M,delay:i,isRunning:t,isIn:I,closeToast:d,hide:u,type:c,style:P,className:x,controlledProgress:$,progress:N||0})))},$a=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},U4=Ea($a("bounce",!0));Ea($a("slide",!0)),Ea($a("zoom")),Ea($a("flip"));const Wp=f.forwardRef((e,t)=>{const{getToastToRender:r,containerRef:n,isToastActive:o}=W4(e),{className:a,style:s,rtl:i,containerId:l}=e;function c(u){const d=rr("Toastify__toast-container",`Toastify__toast-container--${u}`,{"Toastify__toast-container--rtl":i});return Qe(a)?a({position:u,rtl:i,defaultClassName:d}):rr(d,Ta(a))}return f.useEffect(()=>{t&&(t.current=n.current)},[]),f.createElement("div",{ref:n,className:"Toastify",id:l},r((u,d)=>{const h=d.length?{...s}:{...s,pointerEvents:"none"};return f.createElement("div",{className:c(u),style:h,key:`container-${u}`},d.map((p,m)=>{let{content:y,props:b}=p;return f.createElement(K4,{...b,isIn:o(b.toastId),style:{...b.style,"--nth":m+1,"--len":d.length},key:`toast-${b.key}`},y)}))}))});Wp.displayName="ToastContainer",Wp.defaultProps={position:"top-right",transition:U4,autoClose:5e3,closeButton:zp,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let Qi,Er=new Map,Gn=[],H4=1;function Bp(){return""+H4++}function Y4(e){return e&&(Tr(e.toastId)||Yn(e.toastId))?e.toastId:Bp()}function qn(e,t){return Er.size>0?pt.emit(0,e,t):Gn.push({content:e,options:t}),t.toastId}function Da(e,t){return{...t,type:t&&t.type||e,toastId:Y4(t)}}function Ia(e){return(t,r)=>qn(t,Da(e,r))}function Ae(e,t){return qn(e,Da("default",t))}Ae.loading=(e,t)=>qn(e,Da("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Ae.promise=function(e,t,r){let n,{pending:o,error:a,success:s}=t;o&&(n=Tr(o)?Ae.loading(o,r):Ae.loading(o.render,{...r,...o}));const i={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(u,d,h)=>{if(d==null)return void Ae.dismiss(n);const p={type:u,...i,...r,data:h},m=Tr(d)?{render:d}:d;return n?Ae.update(n,{...p,...m}):Ae(m.render,{...p,...m}),h},c=Qe(e)?e():e;return c.then(u=>l("success",s,u)).catch(u=>l("error",a,u)),c},Ae.success=Ia("success"),Ae.info=Ia("info"),Ae.error=Ia("error"),Ae.warning=Ia("warning"),Ae.warn=Ae.warning,Ae.dark=(e,t)=>qn(e,Da("default",{theme:"dark",...t})),Ae.dismiss=e=>{Er.size>0?pt.emit(1,e):Gn=Gn.filter(t=>e!=null&&t.options.toastId!==e)},Ae.clearWaitingQueue=function(e){return e===void 0&&(e={}),pt.emit(5,e)},Ae.isActive=e=>{let t=!1;return Er.forEach(r=>{r.isToastActive&&r.isToastActive(e)&&(t=!0)}),t},Ae.update=function(e,t){t===void 0&&(t={}),setTimeout(()=>{const r=function(n,o){let{containerId:a}=o;const s=Er.get(a||Qi);return s&&s.getToast(n)}(e,t);if(r){const{props:n,content:o}=r,a={delay:100,...n,...t,toastId:t.toastId||e,updateId:Bp()};a.toastId!==e&&(a.staleId=e);const s=a.render||o;delete a.render,qn(s,a)}},0)},Ae.done=e=>{Ae.update(e,{progress:1})},Ae.onChange=e=>(pt.on(4,e),()=>{pt.off(4,e)}),Ae.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Ae.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},pt.on(2,e=>{Qi=e.containerId||e,Er.set(Qi,e),Gn.forEach(t=>{pt.emit(0,t.content,t.options)}),Gn=[]}).on(3,e=>{Er.delete(e.containerId||e),Er.size===0&&pt.off(0).off(1).off(5)});const iw="",G4=()=>({snackbar:(t,r)=>{Ae(j.jsx(Lp,{message:t,actions:r==null?void 0:r.actions,inlineActions:r==null?void 0:r.inlineActions}))}});function je(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function tn(e,t=[]){let r=[];function n(a,s){const i=f.createContext(s),l=r.length;r=[...r,s];function c(d){const{scope:h,children:p,...m}=d,y=(h==null?void 0:h[e][l])||i,b=f.useMemo(()=>m,Object.values(m));return f.createElement(y.Provider,{value:b},p)}function u(d,h){const p=(h==null?void 0:h[e][l])||i,m=f.useContext(p);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,u]}const o=()=>{const a=r.map(s=>f.createContext(s));return function(i){const l=(i==null?void 0:i[e])||a;return f.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[n,q4(o,...t)]}function q4(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=n.reduce((i,{useScope:l,scopeName:c})=>{const d=l(a)[`__scope${c}`];return{...i,...d}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function Vt(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}function Q4(e,t=globalThis==null?void 0:globalThis.document){const r=Vt(e);f.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}const Xi="dismissableLayer.update",X4="dismissableLayer.pointerDownOutside",Z4="dismissableLayer.focusOutside";let Rp;const J4=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Kp=f.forwardRef((e,t)=>{var r;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:i,onDismiss:l,...c}=e,u=f.useContext(J4),[d,h]=f.useState(null),p=(r=d==null?void 0:d.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,m]=f.useState({}),y=dt(t,g=>h(g)),b=Array.from(u.layers),[C]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=b.indexOf(C),P=d?b.indexOf(d):-1,E=u.layersWithOutsidePointerEventsDisabled.size>0,S=P>=x,N=e3(g=>{const A=g.target,I=[...u.branches].some(T=>T.contains(A));!S||I||(a==null||a(g),i==null||i(g),g.defaultPrevented||l==null||l())},p),L=t3(g=>{const A=g.target;[...u.branches].some(T=>T.contains(A))||(s==null||s(g),i==null||i(g),g.defaultPrevented||l==null||l())},p);return Q4(g=>{P===u.layers.size-1&&(o==null||o(g),!g.defaultPrevented&&l&&(g.preventDefault(),l()))},p),f.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Rp=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Up(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Rp)}},[d,p,n,u]),f.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Up())},[d,u]),f.useEffect(()=>{const g=()=>m({});return document.addEventListener(Xi,g),()=>document.removeEventListener(Xi,g)},[]),f.createElement(Be.div,he({},c,{ref:y,style:{pointerEvents:E?S?"auto":"none":void 0,...e.style},onFocusCapture:je(e.onFocusCapture,L.onFocusCapture),onBlurCapture:je(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:je(e.onPointerDownCapture,N.onPointerDownCapture)}))});function e3(e,t=globalThis==null?void 0:globalThis.document){const r=Vt(e),n=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const a=i=>{if(i.target&&!n.current){let c=function(){Hp(X4,r,l,{discrete:!0})};const l={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function t3(e,t=globalThis==null?void 0:globalThis.document){const r=Vt(e),n=f.useRef(!1);return f.useEffect(()=>{const o=a=>{a.target&&!n.current&&Hp(Z4,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Up(){const e=new CustomEvent(Xi);document.dispatchEvent(e)}function Hp(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?wm(o,a):o.dispatchEvent(a)}const rn=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},r3=U["useId".toString()]||(()=>{});let n3=0;function ka(e){const[t,r]=U.useState(r3());return rn(()=>{e||r(n=>n??String(n3++))},[e]),e||(t?`radix-${t}`:"")}const o3=["top","right","bottom","left"],nr=Math.min,at=Math.max,Aa=Math.round,Oa=Math.floor,or=e=>({x:e,y:e}),a3={left:"right",right:"left",bottom:"top",top:"bottom"},s3={start:"end",end:"start"};function Zi(e,t,r){return at(e,nr(t,r))}function zt(e,t){return typeof e=="function"?e(t):e}function Wt(e){return e.split("-")[0]}function nn(e){return e.split("-")[1]}function Ji(e){return e==="x"?"y":"x"}function el(e){return e==="y"?"height":"width"}function on(e){return["top","bottom"].includes(Wt(e))?"y":"x"}function tl(e){return Ji(on(e))}function i3(e,t,r){r===void 0&&(r=!1);const n=nn(e),o=tl(e),a=el(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Na(s)),[s,Na(s)]}function l3(e){const t=Na(e);return[rl(e),t,rl(t)]}function rl(e){return e.replace(/start|end/g,t=>s3[t])}function c3(e,t,r){const n=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?a:s;default:return[]}}function u3(e,t,r,n){const o=nn(e);let a=c3(Wt(e),r==="start",n);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(rl)))),a}function Na(e){return e.replace(/left|right|bottom|top/g,t=>a3[t])}function d3(e){return{top:0,right:0,bottom:0,left:0,...e}}function Yp(e){return typeof e!="number"?d3(e):{top:e,right:e,bottom:e,left:e}}function La(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Gp(e,t,r){let{reference:n,floating:o}=e;const a=on(t),s=tl(t),i=el(s),l=Wt(t),c=a==="y",u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,h=n[i]/2-o[i]/2;let p;switch(l){case"top":p={x:u,y:n.y-o.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-o.width,y:d};break;default:p={x:n.x,y:n.y}}switch(nn(t)){case"start":p[s]-=h*(r&&c?-1:1);break;case"end":p[s]+=h*(r&&c?-1:1);break}return p}const f3=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:s}=r,i=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Gp(c,n,l),h=n,p={},m=0;for(let y=0;y<i.length;y++){const{name:b,fn:C}=i[y],{x,y:P,data:E,reset:S}=await C({x:u,y:d,initialPlacement:n,placement:h,strategy:o,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});if(u=x??u,d=P??d,p={...p,[b]:{...p[b],...E}},S&&m<=50){m++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(c=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:u,y:d}=Gp(c,h,l)),y=-1;continue}}return{x:u,y:d,placement:h,strategy:o,middlewareData:p}};async function Qn(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:s,elements:i,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=zt(t,e),m=Yp(p),b=i[h?d==="floating"?"reference":"floating":d],C=La(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(b)))==null||r?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:u,strategy:l})),x=d==="floating"?{...s.floating,x:n,y:o}:s.reference,P=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),E=await(a.isElement==null?void 0:a.isElement(P))?await(a.getScale==null?void 0:a.getScale(P))||{x:1,y:1}:{x:1,y:1},S=La(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:x,offsetParent:P,strategy:l}):x);return{top:(C.top-S.top+m.top)/E.y,bottom:(S.bottom-C.bottom+m.bottom)/E.y,left:(C.left-S.left+m.left)/E.x,right:(S.right-C.right+m.right)/E.x}}const qp=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:s,elements:i,middlewareData:l}=t,{element:c,padding:u=0}=zt(e,t)||{};if(c==null)return{};const d=Yp(u),h={x:r,y:n},p=tl(o),m=el(p),y=await s.getDimensions(c),b=p==="y",C=b?"top":"left",x=b?"bottom":"right",P=b?"clientHeight":"clientWidth",E=a.reference[m]+a.reference[p]-h[p]-a.floating[m],S=h[p]-a.reference[p],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let L=N?N[P]:0;(!L||!await(s.isElement==null?void 0:s.isElement(N)))&&(L=i.floating[P]||a.floating[m]);const g=E/2-S/2,A=L/2-y[m]/2-1,I=nr(d[C],A),T=nr(d[x],A),D=I,w=L-y[m]-T,M=L/2-y[m]/2+g,O=Zi(D,M,w),F=!l.arrow&&nn(o)!=null&&M!=O&&a.reference[m]/2-(M<D?I:T)-y[m]/2<0,$=F?M<D?M-D:M-w:0;return{[p]:h[p]+$,data:{[p]:O,centerOffset:M-O-$,...F&&{alignmentOffset:$}},reset:F}}}),p3=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:y=!0,...b}=zt(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const C=Wt(o),x=Wt(i)===i,P=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=h||(x||!y?[Na(i)]:l3(i));!h&&m!=="none"&&E.push(...u3(i,y,m,P));const S=[i,...E],N=await Qn(t,b),L=[];let g=((n=a.flip)==null?void 0:n.overflows)||[];if(u&&L.push(N[C]),d){const D=i3(o,s,P);L.push(N[D[0]],N[D[1]])}if(g=[...g,{placement:o,overflows:L}],!L.every(D=>D<=0)){var A,I;const D=(((A=a.flip)==null?void 0:A.index)||0)+1,w=S[D];if(w)return{data:{index:D,overflows:g},reset:{placement:w}};let M=(I=g.filter(O=>O.overflows[0]<=0).sort((O,F)=>O.overflows[1]-F.overflows[1])[0])==null?void 0:I.placement;if(!M)switch(p){case"bestFit":{var T;const O=(T=g.map(F=>[F.placement,F.overflows.filter($=>$>0).reduce(($,V)=>$+V,0)]).sort((F,$)=>F[1]-$[1])[0])==null?void 0:T[0];O&&(M=O);break}case"initialPlacement":M=i;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function Qp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Xp(e){return o3.some(t=>e[t]>=0)}const h3=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=zt(e,t);switch(n){case"referenceHidden":{const a=await Qn(t,{...o,elementContext:"reference"}),s=Qp(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Xp(s)}}}case"escaped":{const a=await Qn(t,{...o,altBoundary:!0}),s=Qp(a,r.floating);return{data:{escapedOffsets:s,escaped:Xp(s)}}}default:return{}}}}};async function m3(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Wt(r),i=nn(r),l=on(r)==="y",c=["left","top"].includes(s)?-1:1,u=a&&l?-1:1,d=zt(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return i&&typeof m=="number"&&(p=i==="end"?m*-1:m),l?{x:p*u,y:h*c}:{x:h*c,y:p*u}}const g3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:n}=t,o=await m3(t,e);return{x:r+o.x,y:n+o.y,data:o}}}},v3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:b=>{let{x:C,y:x}=b;return{x:C,y:x}}},...l}=zt(e,t),c={x:r,y:n},u=await Qn(t,l),d=on(Wt(o)),h=Ji(d);let p=c[h],m=c[d];if(a){const b=h==="y"?"top":"left",C=h==="y"?"bottom":"right",x=p+u[b],P=p-u[C];p=Zi(x,p,P)}if(s){const b=d==="y"?"top":"left",C=d==="y"?"bottom":"right",x=m+u[b],P=m-u[C];m=Zi(x,m,P)}const y=i.fn({...t,[h]:p,[d]:m});return{...y,data:{x:y.x-r,y:y.y-n}}}}},b3=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:l=!0,crossAxis:c=!0}=zt(e,t),u={x:r,y:n},d=on(o),h=Ji(d);let p=u[h],m=u[d];const y=zt(i,t),b=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const P=h==="y"?"height":"width",E=a.reference[h]-a.floating[P]+b.mainAxis,S=a.reference[h]+a.reference[P]-b.mainAxis;p<E?p=E:p>S&&(p=S)}if(c){var C,x;const P=h==="y"?"width":"height",E=["top","left"].includes(Wt(o)),S=a.reference[d]-a.floating[P]+(E&&((C=s.offset)==null?void 0:C[d])||0)+(E?0:b.crossAxis),N=a.reference[d]+a.reference[P]+(E?0:((x=s.offset)==null?void 0:x[d])||0)-(E?b.crossAxis:0);m<S?m=S:m>N&&(m=N)}return{[h]:p,[d]:m}}}},y3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:o,elements:a}=t,{apply:s=()=>{},...i}=zt(e,t),l=await Qn(t,i),c=Wt(r),u=nn(r),d=on(r)==="y",{width:h,height:p}=n.floating;let m,y;c==="top"||c==="bottom"?(m=c,y=u===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(y=c,m=u==="end"?"top":"bottom");const b=p-l[m],C=h-l[y],x=!t.middlewareData.shift;let P=b,E=C;if(d){const N=h-l.left-l.right;E=u||x?nr(C,N):N}else{const N=p-l.top-l.bottom;P=u||x?nr(b,N):N}if(x&&!u){const N=at(l.left,0),L=at(l.right,0),g=at(l.top,0),A=at(l.bottom,0);d?E=h-2*(N!==0||L!==0?N+L:at(l.left,l.right)):P=p-2*(g!==0||A!==0?g+A:at(l.top,l.bottom))}await s({...t,availableWidth:E,availableHeight:P});const S=await o.getDimensions(a.floating);return h!==S.width||p!==S.height?{reset:{rects:!0}}:{}}}};function ar(e){return Zp(e)?(e.nodeName||"").toLowerCase():"#document"}function st(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Bt(e){var t;return(t=(Zp(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Zp(e){return e instanceof Node||e instanceof st(e).Node}function Rt(e){return e instanceof Element||e instanceof st(e).Element}function St(e){return e instanceof HTMLElement||e instanceof st(e).HTMLElement}function Jp(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof st(e).ShadowRoot}function Xn(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=ht(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function x3(e){return["table","td","th"].includes(ar(e))}function nl(e){const t=ol(),r=ht(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function w3(e){let t=an(e);for(;St(t)&&!ja(t);){if(nl(t))return t;t=an(t)}return null}function ol(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ja(e){return["html","body","#document"].includes(ar(e))}function ht(e){return st(e).getComputedStyle(e)}function _a(e){return Rt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function an(e){if(ar(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Jp(e)&&e.host||Bt(e);return Jp(t)?t.host:t}function eh(e){const t=an(e);return ja(t)?e.ownerDocument?e.ownerDocument.body:e.body:St(t)&&Xn(t)?t:eh(t)}function Zn(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=eh(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),s=st(o);return a?t.concat(s,s.visualViewport||[],Xn(o)?o:[],s.frameElement&&r?Zn(s.frameElement):[]):t.concat(o,Zn(o,[],r))}function th(e){const t=ht(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=St(e),a=o?e.offsetWidth:r,s=o?e.offsetHeight:n,i=Aa(r)!==a||Aa(n)!==s;return i&&(r=a,n=s),{width:r,height:n,$:i}}function al(e){return Rt(e)?e:e.contextElement}function sn(e){const t=al(e);if(!St(t))return or(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=th(t);let s=(a?Aa(r.width):r.width)/n,i=(a?Aa(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const C3=or(0);function rh(e){const t=st(e);return!ol()||!t.visualViewport?C3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function P3(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==st(e)?!1:t}function Sr(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=al(e);let s=or(1);t&&(n?Rt(n)&&(s=sn(n)):s=sn(e));const i=P3(a,r,n)?rh(a):or(0);let l=(o.left+i.x)/s.x,c=(o.top+i.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(a){const h=st(a),p=n&&Rt(n)?st(n):n;let m=h.frameElement;for(;m&&n&&p!==h;){const y=sn(m),b=m.getBoundingClientRect(),C=ht(m),x=b.left+(m.clientLeft+parseFloat(C.paddingLeft))*y.x,P=b.top+(m.clientTop+parseFloat(C.paddingTop))*y.y;l*=y.x,c*=y.y,u*=y.x,d*=y.y,l+=x,c+=P,m=st(m).frameElement}}return La({width:u,height:d,x:l,y:c})}function M3(e){let{rect:t,offsetParent:r,strategy:n}=e;const o=St(r),a=Bt(r);if(r===a)return t;let s={scrollLeft:0,scrollTop:0},i=or(1);const l=or(0);if((o||!o&&n!=="fixed")&&((ar(r)!=="body"||Xn(a))&&(s=_a(r)),St(r))){const c=Sr(r);i=sn(r),l.x=c.x+r.clientLeft,l.y=c.y+r.clientTop}return{width:t.width*i.x,height:t.height*i.y,x:t.x*i.x-s.scrollLeft*i.x+l.x,y:t.y*i.y-s.scrollTop*i.y+l.y}}function T3(e){return Array.from(e.getClientRects())}function nh(e){return Sr(Bt(e)).left+_a(e).scrollLeft}function E3(e){const t=Bt(e),r=_a(e),n=e.ownerDocument.body,o=at(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=at(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+nh(e);const i=-r.scrollTop;return ht(n).direction==="rtl"&&(s+=at(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:s,y:i}}function S3(e,t){const r=st(e),n=Bt(e),o=r.visualViewport;let a=n.clientWidth,s=n.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;const c=ol();(!c||c&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:i,y:l}}function $3(e,t){const r=Sr(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=St(e)?sn(e):or(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,l=o*a.x,c=n*a.y;return{width:s,height:i,x:l,y:c}}function oh(e,t,r){let n;if(t==="viewport")n=S3(e,r);else if(t==="document")n=E3(Bt(e));else if(Rt(t))n=$3(t,r);else{const o=rh(e);n={...t,x:t.x-o.x,y:t.y-o.y}}return La(n)}function ah(e,t){const r=an(e);return r===t||!Rt(r)||ja(r)?!1:ht(r).position==="fixed"||ah(r,t)}function D3(e,t){const r=t.get(e);if(r)return r;let n=Zn(e,[],!1).filter(i=>Rt(i)&&ar(i)!=="body"),o=null;const a=ht(e).position==="fixed";let s=a?an(e):e;for(;Rt(s)&&!ja(s);){const i=ht(s),l=nl(s);!l&&i.position==="fixed"&&(o=null),(a?!l&&!o:!l&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Xn(s)&&!l&&ah(e,s))?n=n.filter(u=>u!==s):o=i,s=an(s)}return t.set(e,n),n}function I3(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?D3(t,this._c):[].concat(r),n],i=s[0],l=s.reduce((c,u)=>{const d=oh(t,u,o);return c.top=at(d.top,c.top),c.right=nr(d.right,c.right),c.bottom=nr(d.bottom,c.bottom),c.left=at(d.left,c.left),c},oh(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function k3(e){return th(e)}function A3(e,t,r){const n=St(t),o=Bt(t),a=r==="fixed",s=Sr(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const l=or(0);if(n||!n&&!a)if((ar(t)!=="body"||Xn(o))&&(i=_a(t)),n){const c=Sr(t,!0,a,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else o&&(l.x=nh(o));return{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function sh(e,t){return!St(e)||ht(e).position==="fixed"?null:t?t(e):e.offsetParent}function ih(e,t){const r=st(e);if(!St(e))return r;let n=sh(e,t);for(;n&&x3(n)&&ht(n).position==="static";)n=sh(n,t);return n&&(ar(n)==="html"||ar(n)==="body"&&ht(n).position==="static"&&!nl(n))?r:n||w3(e)||r}const O3=async function(e){let{reference:t,floating:r,strategy:n}=e;const o=this.getOffsetParent||ih,a=this.getDimensions;return{reference:A3(t,await o(r),n),floating:{x:0,y:0,...await a(r)}}};function N3(e){return ht(e).direction==="rtl"}const L3={convertOffsetParentRelativeRectToViewportRelativeRect:M3,getDocumentElement:Bt,getClippingRect:I3,getOffsetParent:ih,getElementRects:O3,getClientRects:T3,getDimensions:k3,getScale:sn,isElement:Rt,isRTL:N3};function j3(e,t){let r=null,n;const o=Bt(e);function a(){clearTimeout(n),r&&r.disconnect(),r=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const{left:c,top:u,width:d,height:h}=e.getBoundingClientRect();if(i||t(),!d||!h)return;const p=Oa(u),m=Oa(o.clientWidth-(c+d)),y=Oa(o.clientHeight-(u+h)),b=Oa(c),x={rootMargin:-p+"px "+-m+"px "+-y+"px "+-b+"px",threshold:at(0,nr(1,l))||1};let P=!0;function E(S){const N=S[0].intersectionRatio;if(N!==l){if(!P)return s();N?s(!1,N):n=setTimeout(()=>{s(!1,1e-7)},100)}P=!1}try{r=new IntersectionObserver(E,{...x,root:o.ownerDocument})}catch{r=new IntersectionObserver(E,x)}r.observe(e)}return s(!0),a}function _3(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=al(e),u=o||a?[...c?Zn(c):[],...Zn(t)]:[];u.forEach(C=>{o&&C.addEventListener("scroll",r,{passive:!0}),a&&C.addEventListener("resize",r)});const d=c&&i?j3(c,r):null;let h=-1,p=null;s&&(p=new ResizeObserver(C=>{let[x]=C;x&&x.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{p&&p.observe(t)})),r()}),c&&!l&&p.observe(c),p.observe(t));let m,y=l?Sr(e):null;l&&b();function b(){const C=Sr(e);y&&(C.x!==y.x||C.y!==y.y||C.width!==y.width||C.height!==y.height)&&r(),y=C,m=requestAnimationFrame(b)}return r(),()=>{u.forEach(C=>{o&&C.removeEventListener("scroll",r),a&&C.removeEventListener("resize",r)}),d&&d(),p&&p.disconnect(),p=null,l&&cancelAnimationFrame(m)}}const F3=(e,t,r)=>{const n=new Map,o={platform:L3,...r},a={...o.platform,_c:n};return f3(e,t,{...o,platform:a})},V3=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?qp({element:n.current,padding:o}).fn(r):{}:n?qp({element:n,padding:o}).fn(r):{}}}};var Fa=typeof document<"u"?f.useLayoutEffect:f.useEffect;function Va(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Va(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!Va(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function lh(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ch(e,t){const r=lh(e);return Math.round(t*r)/r}function uh(e){const t=U.useRef(e);return Fa(()=>{t.current=e}),t}function z3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:l,open:c}=e,[u,d]=U.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=U.useState(n);Va(h,n)||p(n);const[m,y]=U.useState(null),[b,C]=U.useState(null),x=U.useCallback(F=>{F!=N.current&&(N.current=F,y(F))},[y]),P=U.useCallback(F=>{F!==L.current&&(L.current=F,C(F))},[C]),E=a||m,S=s||b,N=U.useRef(null),L=U.useRef(null),g=U.useRef(u),A=uh(l),I=uh(o),T=U.useCallback(()=>{if(!N.current||!L.current)return;const F={placement:t,strategy:r,middleware:h};I.current&&(F.platform=I.current),F3(N.current,L.current,F).then($=>{const V={...$,isPositioned:!0};D.current&&!Va(g.current,V)&&(g.current=V,I0.flushSync(()=>{d(V)}))})},[h,t,r,I]);Fa(()=>{c===!1&&g.current.isPositioned&&(g.current.isPositioned=!1,d(F=>({...F,isPositioned:!1})))},[c]);const D=U.useRef(!1);Fa(()=>(D.current=!0,()=>{D.current=!1}),[]),Fa(()=>{if(E&&(N.current=E),S&&(L.current=S),E&&S){if(A.current)return A.current(E,S,T);T()}},[E,S,T,A]);const w=U.useMemo(()=>({reference:N,floating:L,setReference:x,setFloating:P}),[x,P]),M=U.useMemo(()=>({reference:E,floating:S}),[E,S]),O=U.useMemo(()=>{const F={position:r,left:0,top:0};if(!M.floating)return F;const $=ch(M.floating,u.x),V=ch(M.floating,u.y);return i?{...F,transform:"translate("+$+"px, "+V+"px)",...lh(M.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:$,top:V}},[r,i,M.floating,u.x,u.y]);return U.useMemo(()=>({...u,update:T,refs:w,elements:M,floatingStyles:O}),[u,T,w,M,O])}const W3=f.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return f.createElement(Be.svg,he({},a,{ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?r:f.createElement("polygon",{points:"0,0 30,0 15,10"}))});function B3(e){const[t,r]=f.useState(void 0);return rn(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,i=c.blockSize}else s=e.offsetWidth,i=e.offsetHeight;r({width:s,height:i})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}const dh="Popper",[fh,za]=tn(dh),[R3,ph]=fh(dh),K3=e=>{const{__scopePopper:t,children:r}=e,[n,o]=f.useState(null);return f.createElement(R3,{scope:t,anchor:n,onAnchorChange:o},r)},U3="PopperAnchor",H3=f.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=ph(U3,r),s=f.useRef(null),i=dt(t,s);return f.useEffect(()=>{a.onAnchorChange((n==null?void 0:n.current)||s.current)}),n?null:f.createElement(Be.div,he({},o,{ref:i}))}),hh="PopperContent",[Y3,G3]=fh(hh),q3=f.forwardRef((e,t)=>{var r,n,o,a,s,i,l,c;const{__scopePopper:u,side:d="bottom",sideOffset:h=0,align:p="center",alignOffset:m=0,arrowPadding:y=0,avoidCollisions:b=!0,collisionBoundary:C=[],collisionPadding:x=0,sticky:P="partial",hideWhenDetached:E=!1,updatePositionStrategy:S="optimized",onPlaced:N,...L}=e,g=ph(hh,u),[A,I]=f.useState(null),T=dt(t,X=>I(X)),[D,w]=f.useState(null),M=B3(D),O=(r=M==null?void 0:M.width)!==null&&r!==void 0?r:0,F=(n=M==null?void 0:M.height)!==null&&n!==void 0?n:0,$=d+(p!=="center"?"-"+p:""),V=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},Y=Array.isArray(C)?C:[C],K=Y.length>0,R={padding:V,boundary:Y.filter(J3),altBoundary:K},{refs:re,floatingStyles:H,placement:ie,isPositioned:ee,middlewareData:te}=z3({strategy:"fixed",placement:$,whileElementsMounted:(...X)=>_3(...X,{animationFrame:S==="always"}),elements:{reference:g.anchor},middleware:[g3({mainAxis:h+F,alignmentAxis:m}),b&&v3({mainAxis:!0,crossAxis:!1,limiter:P==="partial"?b3():void 0,...R}),b&&p3({...R}),y3({...R,apply:({elements:X,rects:Oe,availableWidth:_e,availableHeight:Fe})=>{const{width:De,height:It}=Oe.reference,mt=X.floating.style;mt.setProperty("--radix-popper-available-width",`${_e}px`),mt.setProperty("--radix-popper-available-height",`${Fe}px`),mt.setProperty("--radix-popper-anchor-width",`${De}px`),mt.setProperty("--radix-popper-anchor-height",`${It}px`)}}),D&&V3({element:D,padding:y}),e6({arrowWidth:O,arrowHeight:F}),E&&h3({strategy:"referenceHidden",...R})]}),[ve,be]=mh(ie),fe=Vt(N);rn(()=>{ee&&(fe==null||fe())},[ee,fe]);const de=(o=te.arrow)===null||o===void 0?void 0:o.x,pe=(a=te.arrow)===null||a===void 0?void 0:a.y,Te=((s=te.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[Ee,oe]=f.useState();return rn(()=>{A&&oe(window.getComputedStyle(A).zIndex)},[A]),f.createElement("div",{ref:re.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:ee?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ee,"--radix-popper-transform-origin":[(i=te.transformOrigin)===null||i===void 0?void 0:i.x,(l=te.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},f.createElement(Y3,{scope:u,placedSide:ve,onArrowChange:w,arrowX:de,arrowY:pe,shouldHideArrow:Te},f.createElement(Be.div,he({"data-side":ve,"data-align":be},L,{ref:T,style:{...L.style,animation:ee?void 0:"none",opacity:(c=te.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))}),Q3="PopperArrow",X3={top:"bottom",right:"left",bottom:"top",left:"right"},Z3=f.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=G3(Q3,n),s=X3[a.placedSide];return f.createElement("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0}},f.createElement(W3,he({},o,{ref:r,style:{...o.style,display:"block"}})))});function J3(e){return e!==null}const e6=e=>({name:"transformOrigin",options:e,fn(t){var r,n,o,a,s;const{placement:i,rects:l,middlewareData:c}=t,d=((r=c.arrow)===null||r===void 0?void 0:r.centerOffset)!==0,h=d?0:e.arrowWidth,p=d?0:e.arrowHeight,[m,y]=mh(i),b={start:"0%",center:"50%",end:"100%"}[y],C=((n=(o=c.arrow)===null||o===void 0?void 0:o.x)!==null&&n!==void 0?n:0)+h/2,x=((a=(s=c.arrow)===null||s===void 0?void 0:s.y)!==null&&a!==void 0?a:0)+p/2;let P="",E="";return m==="bottom"?(P=d?b:`${C}px`,E=`${-p}px`):m==="top"?(P=d?b:`${C}px`,E=`${l.floating.height+p}px`):m==="right"?(P=`${-p}px`,E=d?b:`${x}px`):m==="left"&&(P=`${l.floating.width+p}px`,E=d?b:`${x}px`),{data:{x:P,y:E}}}});function mh(e){const[t,r="center"]=e.split("-");return[t,r]}const gh=K3,vh=H3,bh=q3,t6=Z3,yh=f.forwardRef((e,t)=>{var r;const{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body,...o}=e;return n?gn.createPortal(f.createElement(Be.div,he({},o,{ref:t})),n):null});function r6(e,t){return f.useReducer((r,n)=>{const o=t[r][n];return o??r},e)}const ln=e=>{const{present:t,children:r}=e,n=n6(t),o=typeof r=="function"?r({present:n.isPresent}):f.Children.only(r),a=dt(n.ref,o.ref);return typeof r=="function"||n.isPresent?f.cloneElement(o,{ref:a}):null};ln.displayName="Presence";function n6(e){const[t,r]=f.useState(),n=f.useRef({}),o=f.useRef(e),a=f.useRef("none"),s=e?"mounted":"unmounted",[i,l]=r6(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const c=Wa(n.current);a.current=i==="mounted"?c:"none"},[i]),rn(()=>{const c=n.current,u=o.current;if(u!==e){const h=a.current,p=Wa(c);e?l("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&h!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),rn(()=>{if(t){const c=d=>{const p=Wa(n.current).includes(d.animationName);d.target===t&&p&&gn.flushSync(()=>l("ANIMATION_END"))},u=d=>{d.target===t&&(a.current=Wa(n.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:f.useCallback(c=>{c&&(n.current=getComputedStyle(c)),r(c)},[])}}function Wa(e){return(e==null?void 0:e.animationName)||"none"}function Ba({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,o]=o6({defaultProp:t,onChange:r}),a=e!==void 0,s=a?e:n,i=Vt(r),l=f.useCallback(c=>{if(a){const d=typeof c=="function"?c(e):c;d!==e&&i(d)}else o(c)},[a,e,o,i]);return[s,l]}function o6({defaultProp:e,onChange:t}){const r=f.useState(e),[n]=r,o=f.useRef(n),a=Vt(t);return f.useEffect(()=>{o.current!==n&&(a(n),o.current=n)},[n,o,a]),r}const a6=f.forwardRef((e,t)=>f.createElement(Be.span,he({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),[Ra,uw]=tn("Tooltip",[za]),Ka=za(),s6="TooltipProvider",i6=700,sl="tooltip.open",[l6,il]=Ra(s6),c6=e=>{const{__scopeTooltip:t,delayDuration:r=i6,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,[s,i]=f.useState(!0),l=f.useRef(!1),c=f.useRef(0);return f.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),f.createElement(l6,{scope:t,isOpenDelayed:s,delayDuration:r,onOpen:f.useCallback(()=>{window.clearTimeout(c.current),i(!1)},[]),onClose:f.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i(!0),n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:f.useCallback(u=>{l.current=u},[]),disableHoverableContent:o},a)},ll="Tooltip",[u6,Jn]=Ra(ll),d6=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,l=il(ll,e.__scopeTooltip),c=Ka(t),[u,d]=f.useState(null),h=ka(),p=f.useRef(0),m=s??l.disableHoverableContent,y=i??l.delayDuration,b=f.useRef(!1),[C=!1,x]=Ba({prop:n,defaultProp:o,onChange:L=>{L?(l.onOpen(),document.dispatchEvent(new CustomEvent(sl))):l.onClose(),a==null||a(L)}}),P=f.useMemo(()=>C?b.current?"delayed-open":"instant-open":"closed",[C]),E=f.useCallback(()=>{window.clearTimeout(p.current),b.current=!1,x(!0)},[x]),S=f.useCallback(()=>{window.clearTimeout(p.current),x(!1)},[x]),N=f.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{b.current=!0,x(!0)},y)},[y,x]);return f.useEffect(()=>()=>window.clearTimeout(p.current),[]),f.createElement(gh,c,f.createElement(u6,{scope:t,contentId:h,open:C,stateAttribute:P,trigger:u,onTriggerChange:d,onTriggerEnter:f.useCallback(()=>{l.isOpenDelayed?N():E()},[l.isOpenDelayed,N,E]),onTriggerLeave:f.useCallback(()=>{m?S():window.clearTimeout(p.current)},[S,m]),onOpen:E,onClose:S,disableHoverableContent:m},r))},xh="TooltipTrigger",f6=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Jn(xh,r),a=il(xh,r),s=Ka(r),i=f.useRef(null),l=dt(t,i,o.onTriggerChange),c=f.useRef(!1),u=f.useRef(!1),d=f.useCallback(()=>c.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),f.createElement(vh,he({asChild:!0},s),f.createElement(Be.button,he({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},n,{ref:l,onPointerMove:je(e.onPointerMove,h=>{h.pointerType!=="touch"&&!u.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:je(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:je(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:je(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:je(e.onBlur,o.onClose),onClick:je(e.onClick,o.onClose)})))}),wh="TooltipPortal",[p6,h6]=Ra(wh,{forceMount:void 0}),m6=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=Jn(wh,t);return f.createElement(p6,{scope:t,forceMount:r},f.createElement(ln,{present:r||a.open},f.createElement(yh,{asChild:!0,container:o},n)))},eo="TooltipContent",g6=f.forwardRef((e,t)=>{const r=h6(eo,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,s=Jn(eo,e.__scopeTooltip);return f.createElement(ln,{present:n||s.open},s.disableHoverableContent?f.createElement(Ch,he({side:o},a,{ref:t})):f.createElement(v6,he({side:o},a,{ref:t})))}),v6=f.forwardRef((e,t)=>{const r=Jn(eo,e.__scopeTooltip),n=il(eo,e.__scopeTooltip),o=f.useRef(null),a=dt(t,o),[s,i]=f.useState(null),{trigger:l,onClose:c}=r,u=o.current,{onPointerInTransitChange:d}=n,h=f.useCallback(()=>{i(null),d(!1)},[d]),p=f.useCallback((m,y)=>{const b=m.currentTarget,C={x:m.clientX,y:m.clientY},x=C6(C,b.getBoundingClientRect()),P=P6(C,x),E=M6(y.getBoundingClientRect()),S=E6([...P,...E]);i(S),d(!0)},[d]);return f.useEffect(()=>()=>h(),[h]),f.useEffect(()=>{if(l&&u){const m=b=>p(b,u),y=b=>p(b,l);return l.addEventListener("pointerleave",m),u.addEventListener("pointerleave",y),()=>{l.removeEventListener("pointerleave",m),u.removeEventListener("pointerleave",y)}}},[l,u,p,h]),f.useEffect(()=>{if(s){const m=y=>{const b=y.target,C={x:y.clientX,y:y.clientY},x=(l==null?void 0:l.contains(b))||(u==null?void 0:u.contains(b)),P=!T6(C,s);x?h():P&&(h(),c())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[l,u,s,c,h]),f.createElement(Ch,he({},e,{ref:a}))}),[b6,y6]=Ra(ll,{isInside:!1}),Ch=f.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,l=Jn(eo,r),c=Ka(r),{onClose:u}=l;return f.useEffect(()=>(document.addEventListener(sl,u),()=>document.removeEventListener(sl,u)),[u]),f.useEffect(()=>{if(l.trigger){const d=h=>{const p=h.target;p!=null&&p.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),f.createElement(Kp,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:u},f.createElement(bh,he({"data-state":l.stateAttribute},c,i,{ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),f.createElement(gc,null,n),f.createElement(b6,{scope:r,isInside:!0},f.createElement(a6,{id:l.contentId,role:"tooltip"},o||n))))}),x6="TooltipArrow",w6=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Ka(r);return y6(x6,r).isInside?null:f.createElement(t6,he({},o,n,{ref:t}))});function C6(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function P6(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function M6(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function T6(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a].x,l=t[a].y,c=t[s].x,u=t[s].y;l>n!=u>n&&r<(c-i)*(n-l)/(u-l)+i&&(o=!o)}return o}function E6(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),S6(t)}function S6(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const a=r[r.length-1],s=r[r.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}const $6=c6,D6=d6,I6=f6,k6=m6,A6=g6,O6=w6,N6=({children:e,showArrow:t=!1,startOpen:r=!1,content:n,hasCloseButton:o=!1,action:a,size:s="sm"})=>{const[i,l]=f.useState(r),c=Me({base:"rounded-lg bg-primary-black-400 px-4 pb-[13px] pt-[12px] font-satoshi text-sm font-medium text-white",variants:{size:{sm:"max-w-[215px]",lg:"max-w-[342px]"}}}),u=()=>{l(!1)},d=()=>{a&&a.onClick(),u()};return j.jsx($6,{children:j.jsxs(D6,{delayDuration:0,defaultOpen:i,open:i,onOpenChange:h=>l(h),children:[j.jsx(I6,{asChild:!0,children:e}),j.jsx(k6,{children:j.jsxs(A6,{className:c({size:s}),sideOffset:5,children:[j.jsxs("div",{children:[j.jsxs("div",{className:"flex gap-4",children:[n,o&&j.jsx(et,{onClick:u,name:"close",className:"mt-1 cursor-pointer text-xs text-white"})]}),a&&j.jsx(Yi,{className:"-mb-1 mt-1 !h-6 !px-0",variant:"tertiaryDark",onClick:d,children:a.label})]}),t&&j.jsx(O6,{className:"TooltipArrow"})]})})]})})};function L6(e){const t=e+"CollectionProvider",[r,n]=tn(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=p=>{const{scope:m,children:y}=p,b=f.useRef(null),C=f.useRef(new Map).current;return f.createElement(o,{scope:m,itemMap:C,collectionRef:b},y)},i=e+"CollectionSlot",l=f.forwardRef((p,m)=>{const{scope:y,children:b}=p,C=a(i,y),x=dt(m,C.collectionRef);return f.createElement(jr,{ref:x},b)}),c=e+"CollectionItemSlot",u="data-radix-collection-item",d=f.forwardRef((p,m)=>{const{scope:y,children:b,...C}=p,x=f.useRef(null),P=dt(m,x),E=a(c,y);return f.useEffect(()=>(E.itemMap.set(x,{ref:x,...C}),()=>void E.itemMap.delete(x))),f.createElement(jr,{[u]:"",ref:P},b)});function h(p){const m=a(e+"CollectionConsumer",p);return f.useCallback(()=>{const b=m.collectionRef.current;if(!b)return[];const C=Array.from(b.querySelectorAll(`[${u}]`));return Array.from(m.itemMap.values()).sort((E,S)=>C.indexOf(E.ref.current)-C.indexOf(S.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:s,Slot:l,ItemSlot:d},h,n]}const j6=f.createContext(void 0);function Ph(e){const t=f.useContext(j6);return e||t||"ltr"}const cl="rovingFocusGroup.onEntryFocus",_6={bubbles:!1,cancelable:!0},ul="RovingFocusGroup",[dl,Mh,F6]=L6(ul),[V6,Th]=tn(ul,[F6]),[z6,W6]=V6(ul),B6=f.forwardRef((e,t)=>f.createElement(dl.Provider,{scope:e.__scopeRovingFocusGroup},f.createElement(dl.Slot,{scope:e.__scopeRovingFocusGroup},f.createElement(R6,he({},e,{ref:t}))))),R6=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:c,...u}=e,d=f.useRef(null),h=dt(t,d),p=Ph(a),[m=null,y]=Ba({prop:s,defaultProp:i,onChange:l}),[b,C]=f.useState(!1),x=Vt(c),P=Mh(r),E=f.useRef(!1),[S,N]=f.useState(0);return f.useEffect(()=>{const L=d.current;if(L)return L.addEventListener(cl,x),()=>L.removeEventListener(cl,x)},[x]),f.createElement(z6,{scope:r,orientation:n,dir:p,loop:o,currentTabStopId:m,onItemFocus:f.useCallback(L=>y(L),[y]),onItemShiftTab:f.useCallback(()=>C(!0),[]),onFocusableItemAdd:f.useCallback(()=>N(L=>L+1),[]),onFocusableItemRemove:f.useCallback(()=>N(L=>L-1),[])},f.createElement(Be.div,he({tabIndex:b||S===0?-1:0,"data-orientation":n},u,{ref:h,style:{outline:"none",...e.style},onMouseDown:je(e.onMouseDown,()=>{E.current=!0}),onFocus:je(e.onFocus,L=>{const g=!E.current;if(L.target===L.currentTarget&&g&&!b){const A=new CustomEvent(cl,_6);if(L.currentTarget.dispatchEvent(A),!A.defaultPrevented){const I=P().filter(O=>O.focusable),T=I.find(O=>O.active),D=I.find(O=>O.id===m),M=[T,D,...I].filter(Boolean).map(O=>O.ref.current);Eh(M)}}E.current=!1}),onBlur:je(e.onBlur,()=>C(!1))})))}),K6="RovingFocusGroupItem",U6=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,...s}=e,i=ka(),l=a||i,c=W6(K6,r),u=c.currentTabStopId===l,d=Mh(r),{onFocusableItemAdd:h,onFocusableItemRemove:p}=c;return f.useEffect(()=>{if(n)return h(),()=>p()},[n,h,p]),f.createElement(dl.ItemSlot,{scope:r,id:l,focusable:n,active:o},f.createElement(Be.span,he({tabIndex:u?0:-1,"data-orientation":c.orientation},s,{ref:t,onMouseDown:je(e.onMouseDown,m=>{n?c.onItemFocus(l):m.preventDefault()}),onFocus:je(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:je(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){c.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const y=G6(m,c.orientation,c.dir);if(y!==void 0){m.preventDefault();let C=d().filter(x=>x.focusable).map(x=>x.ref.current);if(y==="last")C.reverse();else if(y==="prev"||y==="next"){y==="prev"&&C.reverse();const x=C.indexOf(m.currentTarget);C=c.loop?q6(C,x+1):C.slice(x+1)}setTimeout(()=>Eh(C))}})})))}),H6={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Y6(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function G6(e,t,r){const n=Y6(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return H6[n]}function Eh(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function q6(e,t){return e.map((r,n)=>e[(t+n)%e.length])}const Q6=B6,X6=U6,Sh="Tabs",[Z6,dw]=tn(Sh,[Th]),$h=Th(),[J6,fl]=Z6(Sh),e7=f.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:s="horizontal",dir:i,activationMode:l="automatic",...c}=e,u=Ph(i),[d,h]=Ba({prop:n,onChange:o,defaultProp:a});return f.createElement(J6,{scope:r,baseId:ka(),value:d,onValueChange:h,orientation:s,dir:u,activationMode:l},f.createElement(Be.div,he({dir:u,"data-orientation":s},c,{ref:t})))}),t7="TabsList",r7=f.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=fl(t7,r),s=$h(r);return f.createElement(Q6,he({asChild:!0},s,{orientation:a.orientation,dir:a.dir,loop:n}),f.createElement(Be.div,he({role:"tablist","aria-orientation":a.orientation},o,{ref:t})))}),n7="TabsTrigger",o7=f.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,s=fl(n7,r),i=$h(r),l=Dh(s.baseId,n),c=Ih(s.baseId,n),u=n===s.value;return f.createElement(X6,he({asChild:!0},i,{focusable:!o,active:u}),f.createElement(Be.button,he({type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l},a,{ref:t,onMouseDown:je(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?s.onValueChange(n):d.preventDefault()}),onKeyDown:je(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&s.onValueChange(n)}),onFocus:je(e.onFocus,()=>{const d=s.activationMode!=="manual";!u&&!o&&d&&s.onValueChange(n)})})))}),a7="TabsContent",s7=f.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...s}=e,i=fl(a7,r),l=Dh(i.baseId,n),c=Ih(i.baseId,n),u=n===i.value,d=f.useRef(u);return f.useEffect(()=>{const h=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(h)},[]),f.createElement(ln,{present:o||u},({present:h})=>f.createElement(Be.div,he({"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!h,id:c,tabIndex:0},s,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),h&&a))});function Dh(e,t){return`${e}-trigger-${t}`}function Ih(e,t){return`${e}-content-${t}`}const i7=e7,l7=r7,c7=o7,u7=s7,d7=({tabs:e,defaultValue:t,variant:r="button",className:n,...o})=>{const a=Me({base:"",variants:{variant:{underline:"",button:""}}}),s=Me({base:"flex flex-row",variants:{variant:{underline:"",button:""}}}),i=Me({base:"flex h-[82px] w-[197px] items-center justify-center gap-2 text-lg font-medium text-primary-grey-700 hover:text-primary-grey-800 data-[state=active]:font-bold data-[state=active]:text-secondary-green-500",variants:{variant:{underline:"border-b border-primary-grey-600 border-t-transparent hover:border-b-4 hover:border-t-3 hover:border-b-primary-grey-700 hover:font-bold data-[state=active]:border-b-4 data-[state=active]:border-t-3 data-[state=active]:border-b-secondary-green-500 data-[state=active]:text-secondary-green-500",button:"relative z-0 -mr-[1px] rounded-none border border-primary-grey-600 first:rounded-l-xl last:rounded-r-xl hover:z-10 hover:border-2 hover:border-primary-grey-800 data-[state=active]:z-20 data-[state=active]:border-2 data-[state=active]:border-secondary-green-500"}}});return j.jsxs(i7,{defaultValue:t??e[0].key,className:a({variant:r,className:n}),...o,children:[j.jsx(l7,{className:s({variant:r}),children:e.map(({icon:l,key:c,title:u})=>j.jsxs(c7,{value:c,className:i({variant:r}),children:[l&&j.jsx(et,{className:"-mt-[1px]",name:l}),u]},c))}),e.map(({content:l,key:c})=>j.jsx(u7,{value:c,children:l},c))]})},kh=f.forwardRef(({disabled:e,isDatePicker:t,isInvalid:r,isValid:n,className:o,icon:a,message:s,iconAction:i,...l},c)=>{const u=Me({base:"[&_label]:data-[filled-within=true]:!left-[15px] [&_label]:data-[filled-within=true]:!top-[20px] [&_label]:data-[filled-within=true]:!ml-[1px] [&_label]:data-[filled-within=true]:!text-xs [&_label]:data-[filled-within=true]:!text-primary-grey-800",variants:{isInvalid:{true:"[&_label]:data-[filled-within=true]:!text-complementary-red-500"},isValid:{true:"[&_label]:data-[filled-within=true]:!text-secondary-green-500"},disabled:{true:"[&_label]:data-[filled-within=true]:!text-primary-grey-700"}}}),d=Me({base:"left-[15px] top-[36%] font-satoshi font-satoshi text-base text-sm text-primary-grey-800",variants:{isInvalid:{true:"text-complementary-red-500"},isValid:{true:"text-secondary-green-500"},disabled:{true:"text-primary-grey-700"}}}),h=Me({base:"text-left font-satoshi text-base",variants:{disabled:{true:"!text-primary-grey-700"},isDatePicker:{true:"!cursor-pointer"}}}),p=Me({base:"h-12 rounded-lg border border-primary-grey-700 !bg-white px-[15px] text-black !ring-0 !ring-offset-0",variants:{isInvalid:{true:"border-complementary-red-500"},isValid:{true:"border-secondary-green-500"},disabled:{true:"!border-primary-grey-500 !bg-primary-grey-500"},isDatePicker:{true:"!cursor-pointer"}}}),m=Me({base:"mt-[5px] pl-3 font-satoshi",variants:{isInvalid:{true:"text-complementary-red-500"},isValid:{true:"text-secondary-green-500"}}}),y=Me({base:"text-primary-grey-800",variants:{iconAction:{true:"cursor-pointer"}}}),{Component:b,label:C,domRef:x,startContent:P,shouldLabelBeOutside:E,shouldLabelBeInside:S,getBaseProps:N,getLabelProps:L,getInputProps:g,getInnerWrapperProps:A,getInputWrapperProps:I,getDescriptionProps:T}=J5({...l,disabled:e,labelPlacement:"outside",ref:c,classNames:{input:h({disabled:e,isDatePicker:t}),inputWrapper:p({isInvalid:r,isValid:n,disabled:e,isDatePicker:t}),base:u({isInvalid:r,isValid:n,disabled:e,className:o}),label:d({isInvalid:r,isValid:n,disabled:e}),description:m({isInvalid:r,isValid:n})}}),D=j.jsx("label",{...L(),children:C}),w=f.useMemo(()=>P||a?j.jsxs("div",{...A(),children:[P,j.jsx("input",{...g()}),a&&j.jsx(et,{onClick:i,name:a,className:y({iconAction:!!i})})]}):j.jsx("input",{...g()}),[P,i,y,a,g,A]);return j.jsxs(b,{...N(),children:[E?D:null,j.jsxs("div",{...I(),role:"button",onClick:()=>{var M;(M=x.current)==null||M.focus()},children:[S?D:null,w]}),s&&j.jsx("div",{...T(),children:s})]})});let pl=0;function f7(){f.useEffect(()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:Ah()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:Ah()),pl++,()=>{pl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),pl--}},[])}function Ah(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const hl="focusScope.autoFocusOnMount",ml="focusScope.autoFocusOnUnmount",Oh={bubbles:!1,cancelable:!0},p7=f.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,l]=f.useState(null),c=Vt(o),u=Vt(a),d=f.useRef(null),h=dt(t,y=>l(y)),p=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(n){let y=function(P){if(p.paused||!i)return;const E=P.target;i.contains(E)?d.current=E:sr(d.current,{select:!0})},b=function(P){if(p.paused||!i)return;const E=P.relatedTarget;E!==null&&(i.contains(E)||sr(d.current,{select:!0}))},C=function(P){if(document.activeElement===document.body)for(const S of P)S.removedNodes.length>0&&sr(i)};document.addEventListener("focusin",y),document.addEventListener("focusout",b);const x=new MutationObserver(C);return i&&x.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",b),x.disconnect()}}},[n,i,p.paused]),f.useEffect(()=>{if(i){jh.add(p);const y=document.activeElement;if(!i.contains(y)){const C=new CustomEvent(hl,Oh);i.addEventListener(hl,c),i.dispatchEvent(C),C.defaultPrevented||(h7(y7(Nh(i)),{select:!0}),document.activeElement===y&&sr(i))}return()=>{i.removeEventListener(hl,c),setTimeout(()=>{const C=new CustomEvent(ml,Oh);i.addEventListener(ml,u),i.dispatchEvent(C),C.defaultPrevented||sr(y??document.body,{select:!0}),i.removeEventListener(ml,u),jh.remove(p)},0)}}},[i,c,u,p]);const m=f.useCallback(y=>{if(!r&&!n||p.paused)return;const b=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,C=document.activeElement;if(b&&C){const x=y.currentTarget,[P,E]=m7(x);P&&E?!y.shiftKey&&C===E?(y.preventDefault(),r&&sr(P,{select:!0})):y.shiftKey&&C===P&&(y.preventDefault(),r&&sr(E,{select:!0})):C===x&&y.preventDefault()}},[r,n,p.paused]);return f.createElement(Be.div,he({tabIndex:-1},s,{ref:h,onKeyDown:m}))});function h7(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(sr(n,{select:t}),document.activeElement!==r)return}function m7(e){const t=Nh(e),r=Lh(t,e),n=Lh(t.reverse(),e);return[r,n]}function Nh(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Lh(e,t){for(const r of e)if(!g7(r,{upTo:t}))return r}function g7(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function v7(e){return e instanceof HTMLInputElement&&"select"in e}function sr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&v7(e)&&t&&e.select()}}const jh=b7();function b7(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=_h(e,t),e.unshift(t)},remove(t){var r;e=_h(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function _h(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function y7(e){return e.filter(t=>t.tagName!=="A")}var x7=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},cn=new WeakMap,Ua=new WeakMap,Ha={},gl=0,Fh=function(e){return e&&(e.host||Fh(e.parentNode))},w7=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Fh(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},C7=function(e,t,r,n){var o=w7(t,Array.isArray(e)?e:[e]);Ha[r]||(Ha[r]=new WeakMap);var a=Ha[r],s=[],i=new Set,l=new Set(o),c=function(d){!d||i.has(d)||(i.add(d),c(d.parentNode))};o.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(i.has(h))u(h);else{var p=h.getAttribute(n),m=p!==null&&p!=="false",y=(cn.get(h)||0)+1,b=(a.get(h)||0)+1;cn.set(h,y),a.set(h,b),s.push(h),y===1&&m&&Ua.set(h,!0),b===1&&h.setAttribute(r,"true"),m||h.setAttribute(n,"true")}})};return u(t),i.clear(),gl++,function(){s.forEach(function(d){var h=cn.get(d)-1,p=a.get(d)-1;cn.set(d,h),a.set(d,p),h||(Ua.has(d)||d.removeAttribute(n),Ua.delete(d)),p||d.removeAttribute(r)}),gl--,gl||(cn=new WeakMap,cn=new WeakMap,Ua=new WeakMap,Ha={})}},P7=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||x7(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),C7(n,o,r,"aria-hidden")):function(){return null}},Vh=i4(),vl=function(){},Ya=U.forwardRef(function(e,t){var r=U.useRef(null),n=U.useState({onScrollCapture:vl,onWheelCapture:vl,onTouchMoveCapture:vl}),o=n[0],a=n[1],s=e.forwardProps,i=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,h=e.sideCar,p=e.noIsolation,m=e.inert,y=e.allowPinchZoom,b=e.as,C=b===void 0?"div":b,x=zc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),P=h,E=o4([r,t]),S=Pt(Pt({},x),o);return U.createElement(U.Fragment,null,u&&U.createElement(P,{sideCar:Vh,removeScrollBar:c,shards:d,noIsolation:p,inert:m,setCallbacks:a,allowPinchZoom:!!y,lockRef:r}),s?U.cloneElement(U.Children.only(i),Pt(Pt({},S),{ref:E})):U.createElement(C,Pt({},S,{className:l,ref:E}),i))});Ya.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ya.classNames={fullWidth:Pa,zeroRight:Ca};var bl=!1;if(typeof window<"u")try{var Ga=Object.defineProperty({},"passive",{get:function(){return bl=!0,!0}});window.addEventListener("test",Ga,Ga),window.removeEventListener("test",Ga,Ga)}catch{bl=!1}var un=bl?{passive:!1}:!1,M7=function(e){return e.tagName==="TEXTAREA"},zh=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!M7(e)&&r[t]==="visible")},T7=function(e){return zh(e,"overflowY")},E7=function(e){return zh(e,"overflowX")},Wh=function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=Bh(e,r);if(n){var o=Rh(e,r),a=o[1],s=o[2];if(a>s)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},S7=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},$7=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Bh=function(e,t){return e==="v"?T7(t):E7(t)},Rh=function(e,t){return e==="v"?S7(t):$7(t)},D7=function(e,t){return e==="h"&&t==="rtl"?-1:1},I7=function(e,t,r,n,o){var a=D7(e,window.getComputedStyle(t).direction),s=a*n,i=r.target,l=t.contains(i),c=!1,u=s>0,d=0,h=0;do{var p=Rh(e,i),m=p[0],y=p[1],b=p[2],C=y-b-a*m;(m||C)&&Bh(e,i)&&(d+=C,h+=m),i=i.parentNode}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(u&&(o&&d===0||!o&&s>d)||!u&&(o&&h===0||!o&&-s>h))&&(c=!0),c},qa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Kh=function(e){return[e.deltaX,e.deltaY]},Uh=function(e){return e&&"current"in e?e.current:e},k7=function(e,t){return e[0]===t[0]&&e[1]===t[1]},A7=function(e){return`
|
|
72
|
+
`)},C4=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n,a=U.useMemo(function(){return y4(o)},[o]);return U.createElement(x4,{styles:w4(a,!t,o,r?"":"!important")})};const Ip=new WeakMap;function Ma(e,t,r){return typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${Ip.get(e)}-${r}-${t}`}function P4(e,t,r){var n;let{key:o,isDisabled:a,shouldSelectOnPressUp:s}=e,{selectionManager:i,selectedKey:l}=t,c=o===l,u=a||t.isDisabled||t.disabledKeys.has(o),{itemProps:d,isPressed:h}=w1({selectionManager:i,key:o,ref:r,isDisabled:u,shouldSelectOnPressUp:s,linkBehavior:"selection"}),p=Ma(t,o,"tab"),m=Ma(t,o,"tabpanel"),{tabIndex:y}=d,b=t.collection.getItem(o),C=Vr(b==null?void 0:b.props,{isLink:!!(!(b==null||(n=b.props)===null||n===void 0)&&n.href),labelable:!0});return delete C.id,{tabProps:se(C,d,{id:p,"aria-selected":c,"aria-disabled":u||void 0,"aria-controls":c?m:void 0,tabIndex:u?void 0:y,role:"tab"}),isSelected:c,isDisabled:u,isPressed:h}}function M4(e,t,r){let n=Yg(r)?void 0:0;var o;const a=Ma(t,(o=e.id)!==null&&o!==void 0?o:t==null?void 0:t.selectedKey,"tabpanel"),s=ms({...e,id:a,"aria-labelledby":Ma(t,t==null?void 0:t.selectedKey,"tab")});return{tabPanelProps:se(s,{tabIndex:n,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}class T4{getKeyLeftOf(t){return this.flipDirection?this.getNextKey(t):this.getPreviousKey(t)}getKeyRightOf(t){return this.flipDirection?this.getPreviousKey(t):this.getNextKey(t)}getKeyAbove(t){return this.getPreviousKey(t)}getKeyBelow(t){return this.getNextKey(t)}getFirstKey(){let t=this.collection.getFirstKey();return t!=null&&this.disabledKeys.has(t)&&(t=this.getNextKey(t)),t}getLastKey(){let t=this.collection.getLastKey();return t!=null&&this.disabledKeys.has(t)&&(t=this.getPreviousKey(t)),t}getNextKey(t){do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(this.disabledKeys.has(t));return t}getPreviousKey(t){do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(this.disabledKeys.has(t));return t}constructor(t,r,n,o=new Set){this.collection=t,this.flipDirection=r==="rtl"&&n==="horizontal",this.disabledKeys=o}}function E4(e,t,r){let{orientation:n="horizontal",keyboardActivation:o="automatic"}=e,{collection:a,selectionManager:s,disabledKeys:i}=t,{direction:l}=xs(),c=f.useMemo(()=>new T4(a,l,n,i),[a,i,n,l]),{collectionProps:u}=x1({ref:r,selectionManager:s,keyboardDelegate:c,selectOnFocus:o==="automatic",disallowEmptySelection:!0,scrollRef:r,linkBehavior:"selection"}),d=Fr();Ip.set(t,d);let h=ms({...e,id:d});return{tabListProps:{...se(u,h),role:"tablist","aria-orientation":n,tabIndex:void 0}}}var kp=ft((e,t)=>{var r,n,o;const{as:a,state:s,className:i,slots:l,classNames:c,...u}=e,d=a||"div",h=nt(t),{tabPanelProps:p}=M4(e,s,h),{focusProps:m,isFocused:y,isFocusVisible:b}=Mt(),C=s.selectedItem,x=(r=C==null?void 0:C.props)==null?void 0:r.children,P=me(c==null?void 0:c.panel,i,(n=C==null?void 0:C.props)==null?void 0:n.className);return x?L.jsx(d,{ref:h,"data-focus":y,"data-focus-visible":b,...se(p,m,u),className:(o=l.panel)==null?void 0:o.call(l,{class:P}),"data-slot":"panel",children:x}):null});kp.displayName="NextUI.TabPanel";var S4=kp,Ap=ft((e,t)=>{var r;const{className:n,as:o,item:a,state:s,classNames:i,isDisabled:l,listRef:c,slots:u,motionProps:d,disableAnimation:h,disableCursorAnimation:p,shouldSelectOnPressUp:m,onClick:y,...b}=e,{key:C}=a,x=nt(t),P=o||(e.href?"a":"button"),E=typeof P=="string",{tabProps:S,isSelected:N,isDisabled:j,isPressed:g}=P4({key:C,isDisabled:l,shouldSelectOnPressUp:m},s,x),A=l||j,{focusProps:I,isFocused:T,isFocusVisible:D}=Mt(),{hoverProps:w,isHovered:M}=mr({isDisabled:A}),O=me(i==null?void 0:i.tab,n),[,F]=Z5({rerender:!0}),$=()=>{dr(y,S.onClick),!(!(x!=null&&x.current)||!(c!=null&&c.current))&&_5(x.current,{scrollMode:"if-needed",behavior:"smooth",block:"end",inline:"end",boundary:c==null?void 0:c.current})};return L.jsxs(P,{ref:x,"data-disabled":Q(j),"data-focus":Q(T),"data-focus-visible":Q(D),"data-hover":Q(M),"data-hover-unselected":Q((M||g)&&!N),"data-pressed":Q(g),"data-selected":Q(N),"data-slot":"tab",...se(S,A?{}:{...I,...w},Dn(b,{enabled:E,omitPropNames:new Set(["title"])})),className:(r=u.tab)==null?void 0:r.call(u,{class:O}),title:b==null?void 0:b.titleValue,type:P==="button"?"button":void 0,onClick:$,children:[N&&!h&&!p&&F?L.jsx(Zf.span,{className:u.cursor({class:i==null?void 0:i.cursor}),"data-slot":"cursor",layoutDependency:!1,layoutId:"cursor",transition:{type:"spring",bounce:.15,duration:.5},...d}):null,L.jsx("div",{className:u.tabContent({class:i==null?void 0:i.tabContent}),"data-slot":"tabContent",children:a.rendered})]})});Ap.displayName="NextUI.Tab";var $4=Ap;class Op{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);return r?r.prevKey:null}getKeyAfter(t){let r=this.keyMap.get(t);return r?r.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){let r=this.keyMap.get(t);return(r==null?void 0:r.childNodes)||[]}constructor(t){this.keyMap=new Map,this.iterable=t;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let s of a.childNodes)r(s)};for(let a of t)r(a);let n,o=0;for(let[a,s]of this.keyMap)n?(n.nextKey=a,s.prevKey=n.key):(this.firstKey=a,s.prevKey=void 0),s.type==="item"&&(s.index=o++),n=s,n.nextKey=void 0;this.lastKey=n==null?void 0:n.key}}function D4(e){let{filter:t}=e,r=t5(e),n=f.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=f.useCallback(c=>t?new Op(t(c)):new Op(c),[t]),a=f.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),s=Q2(e,o,a),i=f.useMemo(()=>new r5(s,r),[s,r]);const l=f.useRef(null);return f.useEffect(()=>{if(r.focusedKey!=null&&!s.getItem(r.focusedKey)){const c=l.current.getItem(r.focusedKey),u=[...l.current.getKeys()].map(y=>{const b=l.current.getItem(y);return b.type==="item"?b:null}).filter(y=>y!==null),d=[...s.getKeys()].map(y=>{const b=s.getItem(y);return b.type==="item"?b:null}).filter(y=>y!==null),h=u.length-d.length;let p=Math.min(h>1?Math.max(c.index-h+1,0):c.index,d.length-1),m;for(;p>=0;){if(!i.isDisabled(d[p].key)){m=d[p];break}p<d.length-1?p++:(p>c.index&&(p=c.index),p--)}r.setFocusedKey(m?m.key:null)}l.current=s},[s,i,r,r.focusedKey]),{collection:s,disabledKeys:n,selectionManager:i}}function I4(e){var t;let[r,n]=_r(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=f.useMemo(()=>r!=null?[r]:[],[r]),{collection:a,disabledKeys:s,selectionManager:i}=D4({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:c=>{var u;let d=(u=c.values().next().value)!==null&&u!==void 0?u:null;d===r&&e.onSelectionChange&&e.onSelectionChange(d),n(d)}}),l=r!=null?a.getItem(r):null;return{collection:a,disabledKeys:s,selectionManager:i,selectedKey:r,setSelectedKey:n,selectedItem:l}}function k4(e){var t;let r=I4({...e,suppressTextValueWarning:!0,defaultSelectedKey:(t=e.defaultSelectedKey)!==null&&t!==void 0?t:Np(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)}),{selectionManager:n,collection:o,selectedKey:a}=r,s=f.useRef(a);return f.useEffect(()=>{let i=a;(n.isEmpty||!o.getItem(i))&&(i=Np(o,r.disabledKeys),i!=null&&n.setSelectedKeys([i])),(i!=null&&n.focusedKey==null||!n.isFocused&&i!==s.current)&&n.setFocusedKey(i),s.current=i}),{...r,isDisabled:e.isDisabled||!1}}function Np(e,t){let r=null;if(e){for(r=e.getFirstKey();t.has(r)&&r!==e.getLastKey();)r=e.getKeyAfter(r);t.has(r)&&r===e.getLastKey()&&(r=e.getFirstKey())}return r}function A4(e){const[t,r]=Sn(e,iu.variantKeys),{ref:n,as:o,className:a,classNames:s,children:i,disableCursorAnimation:l,shouldSelectOnPressUp:c=!0,motionProps:u,...d}=t,h=o||"div",p=typeof h=="string",m=nt(n),y=k4({children:i,...d}),{tabListProps:b}=E4(d,y,m),C=f.useMemo(()=>iu({...r,className:a}),[...Object.values(r),a]),x=me(s==null?void 0:s.base,a),P=f.useMemo(()=>({state:y,slots:C,classNames:s,motionProps:u,listRef:m,shouldSelectOnPressUp:c,disableCursorAnimation:l,isDisabled:e==null?void 0:e.isDisabled,disableAnimation:e==null?void 0:e.disableAnimation}),[y,C,m,u,l,c,e==null?void 0:e.disableAnimation,e==null?void 0:e.isDisabled,s]),E=f.useCallback(N=>({"data-slot":"base",className:C.base({class:me(x,N==null?void 0:N.className)}),...se(Dn(d,{enabled:p}),N)}),[x,d,C]),S=f.useCallback(N=>({ref:m,"data-slot":"tabList",className:C.tabList({class:me(s==null?void 0:s.tabList,N==null?void 0:N.className)}),...se(b,N)}),[m,b,s,C]);return{Component:h,domRef:m,state:y,values:P,getBaseProps:E,getTabListProps:S}}function Lp(e,t){var r;const{Component:n,values:o,state:a,getBaseProps:s,getTabListProps:i}=A4({...e,ref:t}),l=f.useId(),c=!e.disableAnimation&&!e.disableCursorAnimation,u={state:a,listRef:o.listRef,slots:o.slots,classNames:o.classNames,isDisabled:o.isDisabled,motionProps:o.motionProps,disableAnimation:o.disableAnimation,shouldSelectOnPressUp:o.shouldSelectOnPressUp,disableCursorAnimation:o.disableCursorAnimation},d=[...a.collection].map(h=>L.jsx($4,{item:h,...u,...h.props},h.key));return L.jsxs(L.Fragment,{children:[L.jsx("div",{...s(),children:L.jsx(n,{...i(),children:c?L.jsx(U2,{id:l,children:d}):d})}),L.jsx(S4,{classNames:o.classNames,slots:o.slots,state:o.state},(r=a.selectedItem)==null?void 0:r.key)]})}var O4=ft(Lp);Lp.displayName="NextUI.Tabs";var N4=Y2,L4=N4;const j4=({icons:e,className:t})=>{const r=Me({base:"bg-primary-grey-700",variants:{withIcon:{false:"h-6 w-11 px-[2px] group-data-[selected=true]:bg-secondary-green-500",true:"h-[52px] w-[88px] bg-secondary-green-500 group-data-[selected=true]:bg-primary-green-500"}}}),n=Me({variants:{withIcon:{false:"h-5 w-5 group-data-[selected=true]:ml-5",true:"h-11 w-11 group-data-[selected=true]:ml-9"}}});return L.jsx(X5,{classNames:{wrapper:r({withIcon:!!e,className:t}),thumb:n({withIcon:!!e})},thumbIcon:({isSelected:o,className:a})=>e&&(o?L.jsx(et,{name:e.selectedIcon,className:ur(a,"text-lg")}):L.jsx(et,{name:e.unselectedIcon,className:ur(a,"text-lg")}))})},_4=()=>L.jsx(N5,{classNames:{wrapper:"w-4 h-4 rounded-sm before:rounded-sm before:border before:border-primary-grey-700 after:rounded-sm after:bg-secondary-green-500",icon:"w-[11px] h-2.5 [&>*]:stroke-[4px]"}}),jp=({size:e="md",className:t,border:r=!1,image:n,label:o,...a})=>{const s=Me({base:"bg-white font-satoshi font-bold capitalize text-white",variants:{size:{lg:"h-28 w-28 text-[48px]",md:"h-[72px] w-[72px] text-[32px]",sm:"h-12 w-12 text-[24px]",xs:"h-6 w-6 text-[12px]"},border:{true:"border-primary-grey-600"},isText:{true:"bg-complementary-violet-500 "}},compoundVariants:[{border:!0,size:"lg",class:"border-[4px]"},{border:!0,size:"md",class:"border-[3px]"},{border:!0,size:"sm",class:"border-2"},{border:!0,size:"xs",class:"border"}]}),i=Me({base:"text-primary-grey-600",variants:{size:{xs:"text-[12px]",sm:"text-[24px]",md:"text-[32px]",lg:"text-[48px]"}}});return L.jsx(l5,{fallback:!o&&L.jsx(et,{name:"user",className:i({size:e})}),showFallback:!!o,src:n,name:o,className:s({size:e,border:r,isText:!!(o&&!n),className:t}),...a})},F4=({options:e,labelPosition:t="right"})=>L.jsx(H5,{children:e.map(r=>L.jsxs("div",{className:"flex items-center gap-2",children:[t==="left"&&L.jsx("label",{"data-testid":"label-position-left",children:r.label}),L.jsx(G5,{value:r.value,id:r.id,classNames:{wrapper:"border border-primary-grey-700 group-data-[selected=true]:border-secondary-green-500 group-data-[selected=true]:bg-secondary-green-500",control:"bg-white"}}),t==="right"&&r.label&&L.jsx("label",{"data-testid":"label-position-right",children:r.label})]},r.value))}),Yi=({children:e,size:t,variant:r="primary",disabled:n,full:o=!1,iconLeft:a,iconRight:s,className:i,hasLoading:l,isLoadingComplete:c,onClick:u,onLoadingAnimationComplete:d})=>{const[h,p]=f.useState(!1);let m=null;const[y,b]=f.useState("w-0"),C=E=>{if(l){p(!0);let S=1;m=setInterval(()=>{b(`w-${S}/4`),S<3?S++:m&&clearInterval(m)},1e3)}u&&u(E)},x=Me({base:`absolute left-0 top-0 h-full rounded-full bg-transparent duration-1000 ease-in ${y}`,variants:{isLoadingComplete:{true:"w-full duration-500",false:""},loadingVariant:{primaryDark:"bg-white",primaryLight:"bg-primary-green-500 ",primary:"bg-primary-green-500 ",negative:"bg-complementary-red-700",secondaryNegative:"bg-complementary-red-50",secondary:"bg-secondary-green-50",tertiary:"",tertiaryDark:"",tertiaryLight:"",direction:"",directionCircle:""}}}),P=Me({base:"relative !overflow-hidden rounded-full border-transparent px-10 py-4 font-bold text-white !ring-0 !ring-transparent hover:text-white focus:outline focus:outline-2 focus:-outline-offset-4 focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-4 focus-visible:outline-white",variants:{size:{small:"h-9",medium:"h-12",large:"h-14"},variant:{primaryDark:"bg-white text-primary-green-500 hover:bg-secondary-green-500 focus:bg-secondary-green-500 focus:text-white focus:outline-primary-green-500",primaryLight:"bg-primary-green-500 hover:bg-white hover:text-secondary-green-500 focus:bg-white focus:text-secondary-green-500 focus:outline-secondary-green-500",primary:"bg-primary-green-500 hover:bg-secondary-green-500 focus:bg-secondary-green-500 focus:outline-white",negative:"bg-complementary-red-700 hover:border-transparent hover:bg-complementary-red-500 focus:bg-complementary-red-500 focus:outline-white",secondaryNegative:"border border-complementary-red-700 !bg-white font-medium text-complementary-red-700 hover:border-2 hover:border-complementary-red-500 hover:text-complementary-red-500 focus:border-[3px] focus:border-complementary-red-500 focus:text-complementary-red-500",secondary:"border border-primary-green-500 !bg-transparent font-medium text-primary-green-500 hover:border-2 hover:border-secondary-green-500 hover:text-secondary-green-500 focus:border-[3px] focus:border-secondary-green-500 focus:text-secondary-green-500",tertiary:"!bg-transparent px-4 font-medium text-primary-green-500 underline hover:text-secondary-green-500 focus:font-bold focus:text-secondary-green-500 focus:outline-none",tertiaryDark:"!bg-transparent px-4 font-medium text-secondary-green-500 underline focus:font-bold focus:text-secondary-green-500 focus:outline-none",tertiaryLight:"!bg-transparent px-4 font-medium text-primary-green-500 underline focus:font-bold focus:text-primary-green-500 focus:outline-none",direction:"h-10 bg-primary-green-500 p-2.5 font-medium hover:bg-secondary-green-500 focus:border-none focus:bg-secondary-green-500 focus:outline-none",directionCircle:"font:medium bg-primary-green-500 hover:bg-secondary-green-500 focus:border-none focus:bg-secondary-green-500 focus:outline-none"},full:{true:"w-full",false:""},disabled:{true:"pointer-events-none border-transparent bg-primary-grey-500 font-medium text-primary-grey-700",false:""},isLoading:{true:"",false:""},hasIcon:{true:"!px-6"}},compoundVariants:[{variant:"primaryDark",isLoading:!0,class:"!bg-secondary-green-500 !text-primary-green-500 focus:bg-secondary-green-500 focus:outline-secondary-green-500"},{variant:"primaryLight",isLoading:!0,class:"!bg-white text-secondary-green-500 focus:outline-white"},{variant:"primary",isLoading:!0,class:"!bg-secondary-green-500 focus:outline-secondary-green-500"},{variant:"negative",isLoading:!0,class:"!bg-complementary-red-500 focus:outline-complementary-red-500"},{variant:"secondaryNegative",isLoading:!0,class:"!border !border-complementary-red-700 !bg-white text-complementary-red-700 focus:outline-none"},{variant:"secondary",isLoading:!0,class:"!border !border-secondary-green-500 !bg-white text-secondary-green-500 focus:outline-none"},{variant:"tertiary",isLoading:!0,class:"!font-medium"},{variant:"tertiaryDark",isLoading:!0,class:"!font-medium"},{variant:"tertiaryLight",isLoading:!0,class:"!font-medium"},{variant:"secondaryNegative",disabled:!0,class:"border border-primary-grey-700 bg-transparent"},{variant:"secondary",disabled:!0,class:"border border-primary-grey-700 bg-transparent"},{variant:"tertiary",disabled:!0,class:"bg-transparent underline"},{variant:"directionCircle",hasIcon:!0,class:"!min-w-unit-10 !px-0"}]});return f.useEffect(()=>{setTimeout(()=>{d&&d()})},[c,d]),f.useEffect(()=>()=>{m&&clearInterval(m)},[m]),L.jsx(v5,{onClick:C,className:ur(i,P({size:t,variant:r,disabled:n,full:o,isLoading:h,hasIcon:!!(a||s)})),children:L.jsxs("div",{children:[L.jsx("div",{className:ur(i,x({isLoadingComplete:c,loadingVariant:r}))}),L.jsxs("div",{className:"relative flex items-center gap-3 text-center",children:[a&&L.jsx(et,{"data-testid":"button-component-icon-left",name:a}),e,s&&L.jsx(et,{"data-testid":"button-component-icon-right",name:s})]})]})})},V4=({children:e,className:t,avatar:r,size:n="sm",disabled:o=!1,iconLeft:a,iconRight:s})=>{const i=Me({base:"flex h-6 cursor-pointer items-center justify-center gap-2 border border-primary-green-500 bg-white px-2 pt-[1px] font-satoshi text-[10px] font-medium leading-[15px] text-primary-green-500 hover:border-secondary-green-500 hover:text-secondary-green-500 active:border-[2px] active:px-[7px]",variants:{size:{sm:"",lg:"h-[54px] gap-3 px-4 text-base active:px-[15px]"},hasAvatar:{true:"!border-0 bg-primary-grey-600 pl-6"},disabled:{true:"cursor-default !border-1 !border-primary-grey-500 bg-primary-grey-500 !text-primary-grey-800"}},compoundVariants:[{size:"sm",hasAvatar:!0,class:"pl-6 active:pl-[24px] active:pr-[8px]"},{size:"lg",hasAvatar:!0,class:"pl-14 active:pl-[56px] active:pr-[16px]"},{size:"sm",disabled:!0,class:"active:px-[8px]"},{size:"lg",disabled:!0,class:"active:px-[16px]"}]}),l=Me({base:"absolute left-0 top-0",variants:{size:{sm:"",lg:"h-[54px] w-[54px]"}}}),c=Me({base:"text-xs",variants:{size:{sm:"",lg:"text-lg"}}});return L.jsxs(y5,{size:n,className:ur(i({hasAvatar:!!r,size:n,disabled:o,className:t})),startContent:a&&L.jsx(et,{className:c({size:n}),name:a}),endContent:s&&L.jsx(et,{className:c({size:n}),name:s}),children:[r&&L.jsx(jp,{className:l({size:n}),border:!1,size:"xs",image:r}),e]})};function z4(e,t,r=window){const n=f.useRef(t);f.useEffect(()=>{n.current=t},[t]),f.useEffect(()=>{if(r==null)return;const o=a=>n.current(a);return r.addEventListener(e,o),()=>r.removeEventListener(e,o)},[e,r])}const W4=({tabs:e,size:t="md",selectedKey:r,onSelectionChange:n,...o})=>{const[a,s]=f.useState(r??e[0].key),i=Me({base:"bg-primary-grey-600 p-[1px]",variants:{size:{sm:"h-8",md:"h-9",lg:"h-11"}}}),l=Me({base:"h-full data-[selected=true]:!font-bold data-[hover-unselected='true']:!text-secondary-green-500 data-[selected=true]:!text-primary-green-500 data-[hover='true']:opacity-100",variants:{size:{sm:"px-[40px]",md:"px-[80px]",lg:"px-[75px]"}}}),c=Me({base:"!text-white shadow-none"}),u=Me({base:"!font-inherit font-satoshi !text-inherit",variants:{size:{sm:"text-[14px]",md:"text-[14px]",lg:"text-[20px]"}}});return z4("click",d=>{var m;const h=d.target,p=(m=h==null?void 0:h.closest)==null?void 0:m.call(h,'button[data-slot="tab"]');if(p){const y=p==null?void 0:p.dataset.key;s(y)}}),L.jsx(O4,{selectedKey:a,onSelectionChange:d=>{n?n(d):s(d)},classNames:{tabList:i({size:t}),tab:l({size:t}),cursor:c(),tabContent:u({size:t})},radius:"full",size:t,...o,children:e.map(({key:d,title:h,component:p})=>L.jsx(L4,{title:h,children:p},d))})},_p=({message:e,actions:t,inlineActions:r=!0})=>{const n=Me({base:"flex gap-3 rounded-lg bg-primary-black-400 p-4",variants:{inlineActions:{true:"flex flex-row",false:"flex flex-col items-end justify-end"},toastType:{alert:"rounded-2xl bg-primary-grey-600",snackbar:"bg-primary-black-400",banner:"rounded-2xl bg-complementary-red-500"}}});return L.jsxs("div",{className:n({inlineActions:r}),children:[L.jsx("div",{className:"flex flex-1 items-center gap-4",children:L.jsx("p",{className:"font-satoshi text-sm",children:e})}),L.jsx("div",{children:t&&L.jsx("div",{className:"flex",children:t.map(({label:o,onClick:a})=>L.jsx(Yi,{onClick:a,variant:"tertiaryDark",children:o},o))})})]})};function Fp(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=Fp(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function rr(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=Fp(e))&&(n&&(n+=" "),n+=t);return n}const Yn=e=>typeof e=="number"&&!isNaN(e),Tr=e=>typeof e=="string",Qe=e=>typeof e=="function",Ta=e=>Tr(e)||Qe(e)?e:null,Gi=e=>f.isValidElement(e)||Tr(e)||Qe(e)||Yn(e);function B4(e,t,r){r===void 0&&(r=300);const{scrollHeight:n,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=n+"px",o.transition=`all ${r}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,r)})})}function Ea(e){let{enter:t,exit:r,appendPosition:n=!1,collapse:o=!0,collapseDuration:a=300}=e;return function(s){let{children:i,position:l,preventExitTransition:c,done:u,nodeRef:d,isIn:h}=s;const p=n?`${t}--${l}`:t,m=n?`${r}--${l}`:r,y=f.useRef(0);return f.useLayoutEffect(()=>{const b=d.current,C=p.split(" "),x=P=>{P.target===d.current&&(b.dispatchEvent(new Event("d")),b.removeEventListener("animationend",x),b.removeEventListener("animationcancel",x),y.current===0&&P.type!=="animationcancel"&&b.classList.remove(...C))};b.classList.add(...C),b.addEventListener("animationend",x),b.addEventListener("animationcancel",x)},[]),f.useEffect(()=>{const b=d.current,C=()=>{b.removeEventListener("animationend",C),o?B4(b,u,a):u()};h||(c?C():(y.current=1,b.className+=` ${m}`,b.addEventListener("animationend",C)))},[h]),f.createElement(f.Fragment,null,i)}}function Vp(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const ht={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const r=this.list.get(e).filter(n=>n!==t);return this.list.set(e,r),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{const r=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(r)})}},Sa=e=>{let{theme:t,type:r,...n}=e;return f.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${r})`,...n})},qi={info:function(e){return f.createElement(Sa,{...e},f.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return f.createElement(Sa,{...e},f.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return f.createElement(Sa,{...e},f.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return f.createElement(Sa,{...e},f.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return f.createElement("div",{className:"Toastify__spinner"})}};function R4(e){const[,t]=f.useReducer(p=>p+1,0),[r,n]=f.useState([]),o=f.useRef(null),a=f.useRef(new Map).current,s=p=>r.indexOf(p)!==-1,i=f.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:s,getToast:p=>a.get(p)}).current;function l(p){let{containerId:m}=p;const{limit:y}=i.props;!y||m&&i.containerId!==m||(i.count-=i.queue.length,i.queue=[])}function c(p){n(m=>p==null?[]:m.filter(y=>y!==p))}function u(){const{toastContent:p,toastProps:m,staleId:y}=i.queue.shift();h(p,m,y)}function d(p,m){let{delay:y,staleId:b,...C}=m;if(!Gi(p)||function(D){return!o.current||i.props.enableMultiContainer&&D.containerId!==i.props.containerId||a.has(D.toastId)&&D.updateId==null}(C))return;const{toastId:x,updateId:P,data:E}=C,{props:S}=i,N=()=>c(x),j=P==null;j&&i.count++;const g={...S,style:S.toastStyle,key:i.toastKey++,...Object.fromEntries(Object.entries(C).filter(D=>{let[w,M]=D;return M!=null})),toastId:x,updateId:P,data:E,closeToast:N,isIn:!1,className:Ta(C.className||S.toastClassName),bodyClassName:Ta(C.bodyClassName||S.bodyClassName),progressClassName:Ta(C.progressClassName||S.progressClassName),autoClose:!C.isLoading&&(A=C.autoClose,I=S.autoClose,A===!1||Yn(A)&&A>0?A:I),deleteToast(){const D=Vp(a.get(x),"removed");a.delete(x),ht.emit(4,D);const w=i.queue.length;if(i.count=x==null?i.count-i.displayedToast:i.count-1,i.count<0&&(i.count=0),w>0){const M=x==null?i.props.limit:1;if(w===1||M===1)i.displayedToast++,u();else{const O=M>w?w:M;i.displayedToast=O;for(let F=0;F<O;F++)u()}}else t()}};var A,I;g.iconOut=function(D){let{theme:w,type:M,isLoading:O,icon:F}=D,$=null;const V={theme:w,type:M};return F===!1||(Qe(F)?$=F(V):f.isValidElement(F)?$=f.cloneElement(F,V):Tr(F)||Yn(F)?$=F:O?$=qi.spinner():(Y=>Y in qi)(M)&&($=qi[M](V))),$}(g),Qe(C.onOpen)&&(g.onOpen=C.onOpen),Qe(C.onClose)&&(g.onClose=C.onClose),g.closeButton=S.closeButton,C.closeButton===!1||Gi(C.closeButton)?g.closeButton=C.closeButton:C.closeButton===!0&&(g.closeButton=!Gi(S.closeButton)||S.closeButton);let T=p;f.isValidElement(p)&&!Tr(p.type)?T=f.cloneElement(p,{closeToast:N,toastProps:g,data:E}):Qe(p)&&(T=p({closeToast:N,toastProps:g,data:E})),S.limit&&S.limit>0&&i.count>S.limit&&j?i.queue.push({toastContent:T,toastProps:g,staleId:b}):Yn(y)?setTimeout(()=>{h(T,g,b)},y):h(T,g,b)}function h(p,m,y){const{toastId:b}=m;y&&a.delete(y);const C={content:p,props:m};a.set(b,C),n(x=>[...x,b].filter(P=>P!==y)),ht.emit(4,Vp(C,C.props.updateId==null?"added":"updated"))}return f.useEffect(()=>(i.containerId=e.containerId,ht.cancelEmit(3).on(0,d).on(1,p=>o.current&&c(p)).on(5,l).emit(2,i),()=>{a.clear(),ht.emit(3,i)}),[]),f.useEffect(()=>{i.props=e,i.isToastActive=s,i.displayedToast=r.length}),{getToastToRender:function(p){const m=new Map,y=Array.from(a.values());return e.newestOnTop&&y.reverse(),y.forEach(b=>{const{position:C}=b.props;m.has(C)||m.set(C,[]),m.get(C).push(b)}),Array.from(m,b=>p(b[0],b[1]))},containerRef:o,isToastActive:s}}function zp(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function Wp(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function K4(e){const[t,r]=f.useState(!1),[n,o]=f.useState(!1),a=f.useRef(null),s=f.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,i=f.useRef(e),{autoClose:l,pauseOnHover:c,closeToast:u,onClick:d,closeOnClick:h}=e;function p(E){if(e.draggable){E.nativeEvent.type==="touchstart"&&E.nativeEvent.preventDefault(),s.didMove=!1,document.addEventListener("mousemove",C),document.addEventListener("mouseup",x),document.addEventListener("touchmove",C),document.addEventListener("touchend",x);const S=a.current;s.canCloseOnClick=!0,s.canDrag=!0,s.boundingRect=S.getBoundingClientRect(),S.style.transition="",s.x=zp(E.nativeEvent),s.y=Wp(E.nativeEvent),e.draggableDirection==="x"?(s.start=s.x,s.removalDistance=S.offsetWidth*(e.draggablePercent/100)):(s.start=s.y,s.removalDistance=S.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent/100))}}function m(E){if(s.boundingRect){const{top:S,bottom:N,left:j,right:g}=s.boundingRect;E.nativeEvent.type!=="touchend"&&e.pauseOnHover&&s.x>=j&&s.x<=g&&s.y>=S&&s.y<=N?b():y()}}function y(){r(!0)}function b(){r(!1)}function C(E){const S=a.current;s.canDrag&&S&&(s.didMove=!0,t&&b(),s.x=zp(E),s.y=Wp(E),s.delta=e.draggableDirection==="x"?s.x-s.start:s.y-s.start,s.start!==s.x&&(s.canCloseOnClick=!1),S.style.transform=`translate${e.draggableDirection}(${s.delta}px)`,S.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function x(){document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",x),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",x);const E=a.current;if(s.canDrag&&s.didMove&&E){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return o(!0),void e.closeToast();E.style.transition="transform 0.2s, opacity 0.2s",E.style.transform=`translate${e.draggableDirection}(0)`,E.style.opacity="1"}}f.useEffect(()=>{i.current=e}),f.useEffect(()=>(a.current&&a.current.addEventListener("d",y,{once:!0}),Qe(e.onOpen)&&e.onOpen(f.isValidElement(e.children)&&e.children.props),()=>{const E=i.current;Qe(E.onClose)&&E.onClose(f.isValidElement(E.children)&&E.children.props)}),[]),f.useEffect(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||b(),window.addEventListener("focus",y),window.addEventListener("blur",b)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",y),window.removeEventListener("blur",b))}),[e.pauseOnFocusLoss]);const P={onMouseDown:p,onTouchStart:p,onMouseUp:m,onTouchEnd:m};return l&&c&&(P.onMouseEnter=b,P.onMouseLeave=y),h&&(P.onClick=E=>{d&&d(E),s.canCloseOnClick&&u()}),{playToast:y,pauseToast:b,isRunning:t,preventExitTransition:n,toastRef:a,eventHandlers:P}}function Bp(e){let{closeToast:t,theme:r,ariaLabel:n="close"}=e;return f.createElement("button",{className:`Toastify__close-button Toastify__close-button--${r}`,type:"button",onClick:o=>{o.stopPropagation(),t(o)},"aria-label":n},f.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},f.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function U4(e){let{delay:t,isRunning:r,closeToast:n,type:o="default",hide:a,className:s,style:i,controlledProgress:l,progress:c,rtl:u,isIn:d,theme:h}=e;const p=a||l&&c===0,m={...i,animationDuration:`${t}ms`,animationPlayState:r?"running":"paused",opacity:p?0:1};l&&(m.transform=`scaleX(${c})`);const y=rr("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${h}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":u}),b=Qe(s)?s({rtl:u,type:o,defaultClassName:y}):rr(y,s);return f.createElement("div",{role:"progressbar","aria-hidden":p?"true":"false","aria-label":"notification timer",className:b,style:m,[l&&c>=1?"onTransitionEnd":"onAnimationEnd"]:l&&c<1?null:()=>{d&&n()}})}const H4=e=>{const{isRunning:t,preventExitTransition:r,toastRef:n,eventHandlers:o}=K4(e),{closeButton:a,children:s,autoClose:i,onClick:l,type:c,hideProgressBar:u,closeToast:d,transition:h,position:p,className:m,style:y,bodyClassName:b,bodyStyle:C,progressClassName:x,progressStyle:P,updateId:E,role:S,progress:N,rtl:j,toastId:g,deleteToast:A,isIn:I,isLoading:T,iconOut:D,closeOnClick:w,theme:M}=e,O=rr("Toastify__toast",`Toastify__toast-theme--${M}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":j},{"Toastify__toast--close-on-click":w}),F=Qe(m)?m({rtl:j,position:p,type:c,defaultClassName:O}):rr(O,m),$=!!N||!i,V={closeToast:d,type:c,theme:M};let Y=null;return a===!1||(Y=Qe(a)?a(V):f.isValidElement(a)?f.cloneElement(a,V):Bp(V)),f.createElement(h,{isIn:I,done:A,position:p,preventExitTransition:r,nodeRef:n},f.createElement("div",{id:g,onClick:l,className:F,...o,style:y,ref:n},f.createElement("div",{...I&&{role:S},className:Qe(b)?b({type:c}):rr("Toastify__toast-body",b),style:C},D!=null&&f.createElement("div",{className:rr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!T})},D),f.createElement("div",null,s)),Y,f.createElement(U4,{...E&&!$?{key:`pb-${E}`}:{},rtl:j,theme:M,delay:i,isRunning:t,isIn:I,closeToast:d,hide:u,type:c,style:P,className:x,controlledProgress:$,progress:N||0})))},$a=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},Y4=Ea($a("bounce",!0));Ea($a("slide",!0)),Ea($a("zoom")),Ea($a("flip"));const Rp=f.forwardRef((e,t)=>{const{getToastToRender:r,containerRef:n,isToastActive:o}=R4(e),{className:a,style:s,rtl:i,containerId:l}=e;function c(u){const d=rr("Toastify__toast-container",`Toastify__toast-container--${u}`,{"Toastify__toast-container--rtl":i});return Qe(a)?a({position:u,rtl:i,defaultClassName:d}):rr(d,Ta(a))}return f.useEffect(()=>{t&&(t.current=n.current)},[]),f.createElement("div",{ref:n,className:"Toastify",id:l},r((u,d)=>{const h=d.length?{...s}:{...s,pointerEvents:"none"};return f.createElement("div",{className:c(u),style:h,key:`container-${u}`},d.map((p,m)=>{let{content:y,props:b}=p;return f.createElement(H4,{...b,isIn:o(b.toastId),style:{...b.style,"--nth":m+1,"--len":d.length},key:`toast-${b.key}`},y)}))}))});Rp.displayName="ToastContainer",Rp.defaultProps={position:"top-right",transition:Y4,autoClose:5e3,closeButton:Bp,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let Qi,Er=new Map,Gn=[],G4=1;function Kp(){return""+G4++}function q4(e){return e&&(Tr(e.toastId)||Yn(e.toastId))?e.toastId:Kp()}function qn(e,t){return Er.size>0?ht.emit(0,e,t):Gn.push({content:e,options:t}),t.toastId}function Da(e,t){return{...t,type:t&&t.type||e,toastId:q4(t)}}function Ia(e){return(t,r)=>qn(t,Da(e,r))}function Ae(e,t){return qn(e,Da("default",t))}Ae.loading=(e,t)=>qn(e,Da("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Ae.promise=function(e,t,r){let n,{pending:o,error:a,success:s}=t;o&&(n=Tr(o)?Ae.loading(o,r):Ae.loading(o.render,{...r,...o}));const i={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(u,d,h)=>{if(d==null)return void Ae.dismiss(n);const p={type:u,...i,...r,data:h},m=Tr(d)?{render:d}:d;return n?Ae.update(n,{...p,...m}):Ae(m.render,{...p,...m}),h},c=Qe(e)?e():e;return c.then(u=>l("success",s,u)).catch(u=>l("error",a,u)),c},Ae.success=Ia("success"),Ae.info=Ia("info"),Ae.error=Ia("error"),Ae.warning=Ia("warning"),Ae.warn=Ae.warning,Ae.dark=(e,t)=>qn(e,Da("default",{theme:"dark",...t})),Ae.dismiss=e=>{Er.size>0?ht.emit(1,e):Gn=Gn.filter(t=>e!=null&&t.options.toastId!==e)},Ae.clearWaitingQueue=function(e){return e===void 0&&(e={}),ht.emit(5,e)},Ae.isActive=e=>{let t=!1;return Er.forEach(r=>{r.isToastActive&&r.isToastActive(e)&&(t=!0)}),t},Ae.update=function(e,t){t===void 0&&(t={}),setTimeout(()=>{const r=function(n,o){let{containerId:a}=o;const s=Er.get(a||Qi);return s&&s.getToast(n)}(e,t);if(r){const{props:n,content:o}=r,a={delay:100,...n,...t,toastId:t.toastId||e,updateId:Kp()};a.toastId!==e&&(a.staleId=e);const s=a.render||o;delete a.render,qn(s,a)}},0)},Ae.done=e=>{Ae.update(e,{progress:1})},Ae.onChange=e=>(ht.on(4,e),()=>{ht.off(4,e)}),Ae.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Ae.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},ht.on(2,e=>{Qi=e.containerId||e,Er.set(Qi,e),Gn.forEach(t=>{ht.emit(0,t.content,t.options)}),Gn=[]}).on(3,e=>{Er.delete(e.containerId||e),Er.size===0&&ht.off(0).off(1).off(5)});const cw="",Q4=()=>({snackbar:(t,r)=>{Ae(L.jsx(_p,{message:t,actions:r==null?void 0:r.actions,inlineActions:r==null?void 0:r.inlineActions}))}});function je(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function tn(e,t=[]){let r=[];function n(a,s){const i=f.createContext(s),l=r.length;r=[...r,s];function c(d){const{scope:h,children:p,...m}=d,y=(h==null?void 0:h[e][l])||i,b=f.useMemo(()=>m,Object.values(m));return f.createElement(y.Provider,{value:b},p)}function u(d,h){const p=(h==null?void 0:h[e][l])||i,m=f.useContext(p);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,u]}const o=()=>{const a=r.map(s=>f.createContext(s));return function(i){const l=(i==null?void 0:i[e])||a;return f.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[n,X4(o,...t)]}function X4(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=n.reduce((i,{useScope:l,scopeName:c})=>{const d=l(a)[`__scope${c}`];return{...i,...d}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function Vt(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}function Z4(e,t=globalThis==null?void 0:globalThis.document){const r=Vt(e);f.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}const Xi="dismissableLayer.update",J4="dismissableLayer.pointerDownOutside",e3="dismissableLayer.focusOutside";let Up;const t3=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Hp=f.forwardRef((e,t)=>{var r;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:i,onDismiss:l,...c}=e,u=f.useContext(t3),[d,h]=f.useState(null),p=(r=d==null?void 0:d.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,m]=f.useState({}),y=dt(t,g=>h(g)),b=Array.from(u.layers),[C]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=b.indexOf(C),P=d?b.indexOf(d):-1,E=u.layersWithOutsidePointerEventsDisabled.size>0,S=P>=x,N=r3(g=>{const A=g.target,I=[...u.branches].some(T=>T.contains(A));!S||I||(a==null||a(g),i==null||i(g),g.defaultPrevented||l==null||l())},p),j=n3(g=>{const A=g.target;[...u.branches].some(T=>T.contains(A))||(s==null||s(g),i==null||i(g),g.defaultPrevented||l==null||l())},p);return Z4(g=>{P===u.layers.size-1&&(o==null||o(g),!g.defaultPrevented&&l&&(g.preventDefault(),l()))},p),f.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Up=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Yp(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Up)}},[d,p,n,u]),f.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Yp())},[d,u]),f.useEffect(()=>{const g=()=>m({});return document.addEventListener(Xi,g),()=>document.removeEventListener(Xi,g)},[]),f.createElement(Be.div,he({},c,{ref:y,style:{pointerEvents:E?S?"auto":"none":void 0,...e.style},onFocusCapture:je(e.onFocusCapture,j.onFocusCapture),onBlurCapture:je(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:je(e.onPointerDownCapture,N.onPointerDownCapture)}))});function r3(e,t=globalThis==null?void 0:globalThis.document){const r=Vt(e),n=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const a=i=>{if(i.target&&!n.current){let c=function(){Gp(J4,r,l,{discrete:!0})};const l={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function n3(e,t=globalThis==null?void 0:globalThis.document){const r=Vt(e),n=f.useRef(!1);return f.useEffect(()=>{const o=a=>{a.target&&!n.current&&Gp(e3,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Yp(){const e=new CustomEvent(Xi);document.dispatchEvent(e)}function Gp(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Pm(o,a):o.dispatchEvent(a)}const rn=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},o3=U["useId".toString()]||(()=>{});let a3=0;function ka(e){const[t,r]=U.useState(o3());return rn(()=>{e||r(n=>n??String(a3++))},[e]),e||(t?`radix-${t}`:"")}const s3=["top","right","bottom","left"],nr=Math.min,at=Math.max,Aa=Math.round,Oa=Math.floor,or=e=>({x:e,y:e}),i3={left:"right",right:"left",bottom:"top",top:"bottom"},l3={start:"end",end:"start"};function Zi(e,t,r){return at(e,nr(t,r))}function zt(e,t){return typeof e=="function"?e(t):e}function Wt(e){return e.split("-")[0]}function nn(e){return e.split("-")[1]}function Ji(e){return e==="x"?"y":"x"}function el(e){return e==="y"?"height":"width"}function on(e){return["top","bottom"].includes(Wt(e))?"y":"x"}function tl(e){return Ji(on(e))}function c3(e,t,r){r===void 0&&(r=!1);const n=nn(e),o=tl(e),a=el(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Na(s)),[s,Na(s)]}function u3(e){const t=Na(e);return[rl(e),t,rl(t)]}function rl(e){return e.replace(/start|end/g,t=>l3[t])}function d3(e,t,r){const n=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?a:s;default:return[]}}function f3(e,t,r,n){const o=nn(e);let a=d3(Wt(e),r==="start",n);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(rl)))),a}function Na(e){return e.replace(/left|right|bottom|top/g,t=>i3[t])}function p3(e){return{top:0,right:0,bottom:0,left:0,...e}}function qp(e){return typeof e!="number"?p3(e):{top:e,right:e,bottom:e,left:e}}function La(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Qp(e,t,r){let{reference:n,floating:o}=e;const a=on(t),s=tl(t),i=el(s),l=Wt(t),c=a==="y",u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,h=n[i]/2-o[i]/2;let p;switch(l){case"top":p={x:u,y:n.y-o.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-o.width,y:d};break;default:p={x:n.x,y:n.y}}switch(nn(t)){case"start":p[s]-=h*(r&&c?-1:1);break;case"end":p[s]+=h*(r&&c?-1:1);break}return p}const h3=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:s}=r,i=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Qp(c,n,l),h=n,p={},m=0;for(let y=0;y<i.length;y++){const{name:b,fn:C}=i[y],{x,y:P,data:E,reset:S}=await C({x:u,y:d,initialPlacement:n,placement:h,strategy:o,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});if(u=x??u,d=P??d,p={...p,[b]:{...p[b],...E}},S&&m<=50){m++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(c=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:u,y:d}=Qp(c,h,l)),y=-1;continue}}return{x:u,y:d,placement:h,strategy:o,middlewareData:p}};async function Qn(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:s,elements:i,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=zt(t,e),m=qp(p),b=i[h?d==="floating"?"reference":"floating":d],C=La(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(b)))==null||r?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:u,strategy:l})),x=d==="floating"?{...s.floating,x:n,y:o}:s.reference,P=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),E=await(a.isElement==null?void 0:a.isElement(P))?await(a.getScale==null?void 0:a.getScale(P))||{x:1,y:1}:{x:1,y:1},S=La(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:x,offsetParent:P,strategy:l}):x);return{top:(C.top-S.top+m.top)/E.y,bottom:(S.bottom-C.bottom+m.bottom)/E.y,left:(C.left-S.left+m.left)/E.x,right:(S.right-C.right+m.right)/E.x}}const Xp=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:s,elements:i,middlewareData:l}=t,{element:c,padding:u=0}=zt(e,t)||{};if(c==null)return{};const d=qp(u),h={x:r,y:n},p=tl(o),m=el(p),y=await s.getDimensions(c),b=p==="y",C=b?"top":"left",x=b?"bottom":"right",P=b?"clientHeight":"clientWidth",E=a.reference[m]+a.reference[p]-h[p]-a.floating[m],S=h[p]-a.reference[p],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let j=N?N[P]:0;(!j||!await(s.isElement==null?void 0:s.isElement(N)))&&(j=i.floating[P]||a.floating[m]);const g=E/2-S/2,A=j/2-y[m]/2-1,I=nr(d[C],A),T=nr(d[x],A),D=I,w=j-y[m]-T,M=j/2-y[m]/2+g,O=Zi(D,M,w),F=!l.arrow&&nn(o)!=null&&M!=O&&a.reference[m]/2-(M<D?I:T)-y[m]/2<0,$=F?M<D?M-D:M-w:0;return{[p]:h[p]+$,data:{[p]:O,centerOffset:M-O-$,...F&&{alignmentOffset:$}},reset:F}}}),m3=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:y=!0,...b}=zt(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const C=Wt(o),x=Wt(i)===i,P=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=h||(x||!y?[Na(i)]:u3(i));!h&&m!=="none"&&E.push(...f3(i,y,m,P));const S=[i,...E],N=await Qn(t,b),j=[];let g=((n=a.flip)==null?void 0:n.overflows)||[];if(u&&j.push(N[C]),d){const D=c3(o,s,P);j.push(N[D[0]],N[D[1]])}if(g=[...g,{placement:o,overflows:j}],!j.every(D=>D<=0)){var A,I;const D=(((A=a.flip)==null?void 0:A.index)||0)+1,w=S[D];if(w)return{data:{index:D,overflows:g},reset:{placement:w}};let M=(I=g.filter(O=>O.overflows[0]<=0).sort((O,F)=>O.overflows[1]-F.overflows[1])[0])==null?void 0:I.placement;if(!M)switch(p){case"bestFit":{var T;const O=(T=g.map(F=>[F.placement,F.overflows.filter($=>$>0).reduce(($,V)=>$+V,0)]).sort((F,$)=>F[1]-$[1])[0])==null?void 0:T[0];O&&(M=O);break}case"initialPlacement":M=i;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function Zp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Jp(e){return s3.some(t=>e[t]>=0)}const g3=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=zt(e,t);switch(n){case"referenceHidden":{const a=await Qn(t,{...o,elementContext:"reference"}),s=Zp(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Jp(s)}}}case"escaped":{const a=await Qn(t,{...o,altBoundary:!0}),s=Zp(a,r.floating);return{data:{escapedOffsets:s,escaped:Jp(s)}}}default:return{}}}}};async function v3(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Wt(r),i=nn(r),l=on(r)==="y",c=["left","top"].includes(s)?-1:1,u=a&&l?-1:1,d=zt(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return i&&typeof m=="number"&&(p=i==="end"?m*-1:m),l?{x:p*u,y:h*c}:{x:h*c,y:p*u}}const b3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:n}=t,o=await v3(t,e);return{x:r+o.x,y:n+o.y,data:o}}}},y3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:b=>{let{x:C,y:x}=b;return{x:C,y:x}}},...l}=zt(e,t),c={x:r,y:n},u=await Qn(t,l),d=on(Wt(o)),h=Ji(d);let p=c[h],m=c[d];if(a){const b=h==="y"?"top":"left",C=h==="y"?"bottom":"right",x=p+u[b],P=p-u[C];p=Zi(x,p,P)}if(s){const b=d==="y"?"top":"left",C=d==="y"?"bottom":"right",x=m+u[b],P=m-u[C];m=Zi(x,m,P)}const y=i.fn({...t,[h]:p,[d]:m});return{...y,data:{x:y.x-r,y:y.y-n}}}}},x3=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:l=!0,crossAxis:c=!0}=zt(e,t),u={x:r,y:n},d=on(o),h=Ji(d);let p=u[h],m=u[d];const y=zt(i,t),b=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const P=h==="y"?"height":"width",E=a.reference[h]-a.floating[P]+b.mainAxis,S=a.reference[h]+a.reference[P]-b.mainAxis;p<E?p=E:p>S&&(p=S)}if(c){var C,x;const P=h==="y"?"width":"height",E=["top","left"].includes(Wt(o)),S=a.reference[d]-a.floating[P]+(E&&((C=s.offset)==null?void 0:C[d])||0)+(E?0:b.crossAxis),N=a.reference[d]+a.reference[P]+(E?0:((x=s.offset)==null?void 0:x[d])||0)-(E?b.crossAxis:0);m<S?m=S:m>N&&(m=N)}return{[h]:p,[d]:m}}}},w3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:o,elements:a}=t,{apply:s=()=>{},...i}=zt(e,t),l=await Qn(t,i),c=Wt(r),u=nn(r),d=on(r)==="y",{width:h,height:p}=n.floating;let m,y;c==="top"||c==="bottom"?(m=c,y=u===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(y=c,m=u==="end"?"top":"bottom");const b=p-l[m],C=h-l[y],x=!t.middlewareData.shift;let P=b,E=C;if(d){const N=h-l.left-l.right;E=u||x?nr(C,N):N}else{const N=p-l.top-l.bottom;P=u||x?nr(b,N):N}if(x&&!u){const N=at(l.left,0),j=at(l.right,0),g=at(l.top,0),A=at(l.bottom,0);d?E=h-2*(N!==0||j!==0?N+j:at(l.left,l.right)):P=p-2*(g!==0||A!==0?g+A:at(l.top,l.bottom))}await s({...t,availableWidth:E,availableHeight:P});const S=await o.getDimensions(a.floating);return h!==S.width||p!==S.height?{reset:{rects:!0}}:{}}}};function ar(e){return eh(e)?(e.nodeName||"").toLowerCase():"#document"}function st(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Bt(e){var t;return(t=(eh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function eh(e){return e instanceof Node||e instanceof st(e).Node}function Rt(e){return e instanceof Element||e instanceof st(e).Element}function St(e){return e instanceof HTMLElement||e instanceof st(e).HTMLElement}function th(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof st(e).ShadowRoot}function Xn(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=mt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function C3(e){return["table","td","th"].includes(ar(e))}function nl(e){const t=ol(),r=mt(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function P3(e){let t=an(e);for(;St(t)&&!ja(t);){if(nl(t))return t;t=an(t)}return null}function ol(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ja(e){return["html","body","#document"].includes(ar(e))}function mt(e){return st(e).getComputedStyle(e)}function _a(e){return Rt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function an(e){if(ar(e)==="html")return e;const t=e.assignedSlot||e.parentNode||th(e)&&e.host||Bt(e);return th(t)?t.host:t}function rh(e){const t=an(e);return ja(t)?e.ownerDocument?e.ownerDocument.body:e.body:St(t)&&Xn(t)?t:rh(t)}function Zn(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=rh(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),s=st(o);return a?t.concat(s,s.visualViewport||[],Xn(o)?o:[],s.frameElement&&r?Zn(s.frameElement):[]):t.concat(o,Zn(o,[],r))}function nh(e){const t=mt(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=St(e),a=o?e.offsetWidth:r,s=o?e.offsetHeight:n,i=Aa(r)!==a||Aa(n)!==s;return i&&(r=a,n=s),{width:r,height:n,$:i}}function al(e){return Rt(e)?e:e.contextElement}function sn(e){const t=al(e);if(!St(t))return or(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=nh(t);let s=(a?Aa(r.width):r.width)/n,i=(a?Aa(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const M3=or(0);function oh(e){const t=st(e);return!ol()||!t.visualViewport?M3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function T3(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==st(e)?!1:t}function Sr(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=al(e);let s=or(1);t&&(n?Rt(n)&&(s=sn(n)):s=sn(e));const i=T3(a,r,n)?oh(a):or(0);let l=(o.left+i.x)/s.x,c=(o.top+i.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(a){const h=st(a),p=n&&Rt(n)?st(n):n;let m=h.frameElement;for(;m&&n&&p!==h;){const y=sn(m),b=m.getBoundingClientRect(),C=mt(m),x=b.left+(m.clientLeft+parseFloat(C.paddingLeft))*y.x,P=b.top+(m.clientTop+parseFloat(C.paddingTop))*y.y;l*=y.x,c*=y.y,u*=y.x,d*=y.y,l+=x,c+=P,m=st(m).frameElement}}return La({width:u,height:d,x:l,y:c})}function E3(e){let{rect:t,offsetParent:r,strategy:n}=e;const o=St(r),a=Bt(r);if(r===a)return t;let s={scrollLeft:0,scrollTop:0},i=or(1);const l=or(0);if((o||!o&&n!=="fixed")&&((ar(r)!=="body"||Xn(a))&&(s=_a(r)),St(r))){const c=Sr(r);i=sn(r),l.x=c.x+r.clientLeft,l.y=c.y+r.clientTop}return{width:t.width*i.x,height:t.height*i.y,x:t.x*i.x-s.scrollLeft*i.x+l.x,y:t.y*i.y-s.scrollTop*i.y+l.y}}function S3(e){return Array.from(e.getClientRects())}function ah(e){return Sr(Bt(e)).left+_a(e).scrollLeft}function $3(e){const t=Bt(e),r=_a(e),n=e.ownerDocument.body,o=at(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=at(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+ah(e);const i=-r.scrollTop;return mt(n).direction==="rtl"&&(s+=at(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:s,y:i}}function D3(e,t){const r=st(e),n=Bt(e),o=r.visualViewport;let a=n.clientWidth,s=n.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;const c=ol();(!c||c&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:i,y:l}}function I3(e,t){const r=Sr(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=St(e)?sn(e):or(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,l=o*a.x,c=n*a.y;return{width:s,height:i,x:l,y:c}}function sh(e,t,r){let n;if(t==="viewport")n=D3(e,r);else if(t==="document")n=$3(Bt(e));else if(Rt(t))n=I3(t,r);else{const o=oh(e);n={...t,x:t.x-o.x,y:t.y-o.y}}return La(n)}function ih(e,t){const r=an(e);return r===t||!Rt(r)||ja(r)?!1:mt(r).position==="fixed"||ih(r,t)}function k3(e,t){const r=t.get(e);if(r)return r;let n=Zn(e,[],!1).filter(i=>Rt(i)&&ar(i)!=="body"),o=null;const a=mt(e).position==="fixed";let s=a?an(e):e;for(;Rt(s)&&!ja(s);){const i=mt(s),l=nl(s);!l&&i.position==="fixed"&&(o=null),(a?!l&&!o:!l&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Xn(s)&&!l&&ih(e,s))?n=n.filter(u=>u!==s):o=i,s=an(s)}return t.set(e,n),n}function A3(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?k3(t,this._c):[].concat(r),n],i=s[0],l=s.reduce((c,u)=>{const d=sh(t,u,o);return c.top=at(d.top,c.top),c.right=nr(d.right,c.right),c.bottom=nr(d.bottom,c.bottom),c.left=at(d.left,c.left),c},sh(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function O3(e){return nh(e)}function N3(e,t,r){const n=St(t),o=Bt(t),a=r==="fixed",s=Sr(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const l=or(0);if(n||!n&&!a)if((ar(t)!=="body"||Xn(o))&&(i=_a(t)),n){const c=Sr(t,!0,a,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else o&&(l.x=ah(o));return{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function lh(e,t){return!St(e)||mt(e).position==="fixed"?null:t?t(e):e.offsetParent}function ch(e,t){const r=st(e);if(!St(e))return r;let n=lh(e,t);for(;n&&C3(n)&&mt(n).position==="static";)n=lh(n,t);return n&&(ar(n)==="html"||ar(n)==="body"&&mt(n).position==="static"&&!nl(n))?r:n||P3(e)||r}const L3=async function(e){let{reference:t,floating:r,strategy:n}=e;const o=this.getOffsetParent||ch,a=this.getDimensions;return{reference:N3(t,await o(r),n),floating:{x:0,y:0,...await a(r)}}};function j3(e){return mt(e).direction==="rtl"}const _3={convertOffsetParentRelativeRectToViewportRelativeRect:E3,getDocumentElement:Bt,getClippingRect:A3,getOffsetParent:ch,getElementRects:L3,getClientRects:S3,getDimensions:O3,getScale:sn,isElement:Rt,isRTL:j3};function F3(e,t){let r=null,n;const o=Bt(e);function a(){clearTimeout(n),r&&r.disconnect(),r=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const{left:c,top:u,width:d,height:h}=e.getBoundingClientRect();if(i||t(),!d||!h)return;const p=Oa(u),m=Oa(o.clientWidth-(c+d)),y=Oa(o.clientHeight-(u+h)),b=Oa(c),x={rootMargin:-p+"px "+-m+"px "+-y+"px "+-b+"px",threshold:at(0,nr(1,l))||1};let P=!0;function E(S){const N=S[0].intersectionRatio;if(N!==l){if(!P)return s();N?s(!1,N):n=setTimeout(()=>{s(!1,1e-7)},100)}P=!1}try{r=new IntersectionObserver(E,{...x,root:o.ownerDocument})}catch{r=new IntersectionObserver(E,x)}r.observe(e)}return s(!0),a}function V3(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=al(e),u=o||a?[...c?Zn(c):[],...Zn(t)]:[];u.forEach(C=>{o&&C.addEventListener("scroll",r,{passive:!0}),a&&C.addEventListener("resize",r)});const d=c&&i?F3(c,r):null;let h=-1,p=null;s&&(p=new ResizeObserver(C=>{let[x]=C;x&&x.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{p&&p.observe(t)})),r()}),c&&!l&&p.observe(c),p.observe(t));let m,y=l?Sr(e):null;l&&b();function b(){const C=Sr(e);y&&(C.x!==y.x||C.y!==y.y||C.width!==y.width||C.height!==y.height)&&r(),y=C,m=requestAnimationFrame(b)}return r(),()=>{u.forEach(C=>{o&&C.removeEventListener("scroll",r),a&&C.removeEventListener("resize",r)}),d&&d(),p&&p.disconnect(),p=null,l&&cancelAnimationFrame(m)}}const z3=(e,t,r)=>{const n=new Map,o={platform:_3,...r},a={...o.platform,_c:n};return h3(e,t,{...o,platform:a})},W3=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Xp({element:n.current,padding:o}).fn(r):{}:n?Xp({element:n,padding:o}).fn(r):{}}}};var Fa=typeof document<"u"?f.useLayoutEffect:f.useEffect;function Va(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Va(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!Va(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function uh(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dh(e,t){const r=uh(e);return Math.round(t*r)/r}function fh(e){const t=U.useRef(e);return Fa(()=>{t.current=e}),t}function B3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:l,open:c}=e,[u,d]=U.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=U.useState(n);Va(h,n)||p(n);const[m,y]=U.useState(null),[b,C]=U.useState(null),x=U.useCallback(F=>{F!=N.current&&(N.current=F,y(F))},[y]),P=U.useCallback(F=>{F!==j.current&&(j.current=F,C(F))},[C]),E=a||m,S=s||b,N=U.useRef(null),j=U.useRef(null),g=U.useRef(u),A=fh(l),I=fh(o),T=U.useCallback(()=>{if(!N.current||!j.current)return;const F={placement:t,strategy:r,middleware:h};I.current&&(F.platform=I.current),z3(N.current,j.current,F).then($=>{const V={...$,isPositioned:!0};D.current&&!Va(g.current,V)&&(g.current=V,A0.flushSync(()=>{d(V)}))})},[h,t,r,I]);Fa(()=>{c===!1&&g.current.isPositioned&&(g.current.isPositioned=!1,d(F=>({...F,isPositioned:!1})))},[c]);const D=U.useRef(!1);Fa(()=>(D.current=!0,()=>{D.current=!1}),[]),Fa(()=>{if(E&&(N.current=E),S&&(j.current=S),E&&S){if(A.current)return A.current(E,S,T);T()}},[E,S,T,A]);const w=U.useMemo(()=>({reference:N,floating:j,setReference:x,setFloating:P}),[x,P]),M=U.useMemo(()=>({reference:E,floating:S}),[E,S]),O=U.useMemo(()=>{const F={position:r,left:0,top:0};if(!M.floating)return F;const $=dh(M.floating,u.x),V=dh(M.floating,u.y);return i?{...F,transform:"translate("+$+"px, "+V+"px)",...uh(M.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:$,top:V}},[r,i,M.floating,u.x,u.y]);return U.useMemo(()=>({...u,update:T,refs:w,elements:M,floatingStyles:O}),[u,T,w,M,O])}const R3=f.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return f.createElement(Be.svg,he({},a,{ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?r:f.createElement("polygon",{points:"0,0 30,0 15,10"}))});function K3(e){const[t,r]=f.useState(void 0);return rn(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,i=c.blockSize}else s=e.offsetWidth,i=e.offsetHeight;r({width:s,height:i})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}const ph="Popper",[hh,za]=tn(ph),[U3,mh]=hh(ph),H3=e=>{const{__scopePopper:t,children:r}=e,[n,o]=f.useState(null);return f.createElement(U3,{scope:t,anchor:n,onAnchorChange:o},r)},Y3="PopperAnchor",G3=f.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=mh(Y3,r),s=f.useRef(null),i=dt(t,s);return f.useEffect(()=>{a.onAnchorChange((n==null?void 0:n.current)||s.current)}),n?null:f.createElement(Be.div,he({},o,{ref:i}))}),gh="PopperContent",[q3,Q3]=hh(gh),X3=f.forwardRef((e,t)=>{var r,n,o,a,s,i,l,c;const{__scopePopper:u,side:d="bottom",sideOffset:h=0,align:p="center",alignOffset:m=0,arrowPadding:y=0,avoidCollisions:b=!0,collisionBoundary:C=[],collisionPadding:x=0,sticky:P="partial",hideWhenDetached:E=!1,updatePositionStrategy:S="optimized",onPlaced:N,...j}=e,g=mh(gh,u),[A,I]=f.useState(null),T=dt(t,X=>I(X)),[D,w]=f.useState(null),M=K3(D),O=(r=M==null?void 0:M.width)!==null&&r!==void 0?r:0,F=(n=M==null?void 0:M.height)!==null&&n!==void 0?n:0,$=d+(p!=="center"?"-"+p:""),V=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},Y=Array.isArray(C)?C:[C],K=Y.length>0,R={padding:V,boundary:Y.filter(t6),altBoundary:K},{refs:re,floatingStyles:H,placement:ie,isPositioned:ee,middlewareData:te}=B3({strategy:"fixed",placement:$,whileElementsMounted:(...X)=>V3(...X,{animationFrame:S==="always"}),elements:{reference:g.anchor},middleware:[b3({mainAxis:h+F,alignmentAxis:m}),b&&y3({mainAxis:!0,crossAxis:!1,limiter:P==="partial"?x3():void 0,...R}),b&&m3({...R}),w3({...R,apply:({elements:X,rects:Oe,availableWidth:_e,availableHeight:Fe})=>{const{width:De,height:It}=Oe.reference,gt=X.floating.style;gt.setProperty("--radix-popper-available-width",`${_e}px`),gt.setProperty("--radix-popper-available-height",`${Fe}px`),gt.setProperty("--radix-popper-anchor-width",`${De}px`),gt.setProperty("--radix-popper-anchor-height",`${It}px`)}}),D&&W3({element:D,padding:y}),r6({arrowWidth:O,arrowHeight:F}),E&&g3({strategy:"referenceHidden",...R})]}),[ve,be]=vh(ie),fe=Vt(N);rn(()=>{ee&&(fe==null||fe())},[ee,fe]);const de=(o=te.arrow)===null||o===void 0?void 0:o.x,pe=(a=te.arrow)===null||a===void 0?void 0:a.y,Te=((s=te.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[Ee,oe]=f.useState();return rn(()=>{A&&oe(window.getComputedStyle(A).zIndex)},[A]),f.createElement("div",{ref:re.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:ee?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ee,"--radix-popper-transform-origin":[(i=te.transformOrigin)===null||i===void 0?void 0:i.x,(l=te.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},f.createElement(q3,{scope:u,placedSide:ve,onArrowChange:w,arrowX:de,arrowY:pe,shouldHideArrow:Te},f.createElement(Be.div,he({"data-side":ve,"data-align":be},j,{ref:T,style:{...j.style,animation:ee?void 0:"none",opacity:(c=te.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))}),Z3="PopperArrow",J3={top:"bottom",right:"left",bottom:"top",left:"right"},e6=f.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=Q3(Z3,n),s=J3[a.placedSide];return f.createElement("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0}},f.createElement(R3,he({},o,{ref:r,style:{...o.style,display:"block"}})))});function t6(e){return e!==null}const r6=e=>({name:"transformOrigin",options:e,fn(t){var r,n,o,a,s;const{placement:i,rects:l,middlewareData:c}=t,d=((r=c.arrow)===null||r===void 0?void 0:r.centerOffset)!==0,h=d?0:e.arrowWidth,p=d?0:e.arrowHeight,[m,y]=vh(i),b={start:"0%",center:"50%",end:"100%"}[y],C=((n=(o=c.arrow)===null||o===void 0?void 0:o.x)!==null&&n!==void 0?n:0)+h/2,x=((a=(s=c.arrow)===null||s===void 0?void 0:s.y)!==null&&a!==void 0?a:0)+p/2;let P="",E="";return m==="bottom"?(P=d?b:`${C}px`,E=`${-p}px`):m==="top"?(P=d?b:`${C}px`,E=`${l.floating.height+p}px`):m==="right"?(P=`${-p}px`,E=d?b:`${x}px`):m==="left"&&(P=`${l.floating.width+p}px`,E=d?b:`${x}px`),{data:{x:P,y:E}}}});function vh(e){const[t,r="center"]=e.split("-");return[t,r]}const bh=H3,yh=G3,xh=X3,n6=e6,wh=f.forwardRef((e,t)=>{var r;const{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body,...o}=e;return n?gn.createPortal(f.createElement(Be.div,he({},o,{ref:t})),n):null});function o6(e,t){return f.useReducer((r,n)=>{const o=t[r][n];return o??r},e)}const ln=e=>{const{present:t,children:r}=e,n=a6(t),o=typeof r=="function"?r({present:n.isPresent}):f.Children.only(r),a=dt(n.ref,o.ref);return typeof r=="function"||n.isPresent?f.cloneElement(o,{ref:a}):null};ln.displayName="Presence";function a6(e){const[t,r]=f.useState(),n=f.useRef({}),o=f.useRef(e),a=f.useRef("none"),s=e?"mounted":"unmounted",[i,l]=o6(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const c=Wa(n.current);a.current=i==="mounted"?c:"none"},[i]),rn(()=>{const c=n.current,u=o.current;if(u!==e){const h=a.current,p=Wa(c);e?l("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&h!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),rn(()=>{if(t){const c=d=>{const p=Wa(n.current).includes(d.animationName);d.target===t&&p&&gn.flushSync(()=>l("ANIMATION_END"))},u=d=>{d.target===t&&(a.current=Wa(n.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:f.useCallback(c=>{c&&(n.current=getComputedStyle(c)),r(c)},[])}}function Wa(e){return(e==null?void 0:e.animationName)||"none"}function Ba({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,o]=s6({defaultProp:t,onChange:r}),a=e!==void 0,s=a?e:n,i=Vt(r),l=f.useCallback(c=>{if(a){const d=typeof c=="function"?c(e):c;d!==e&&i(d)}else o(c)},[a,e,o,i]);return[s,l]}function s6({defaultProp:e,onChange:t}){const r=f.useState(e),[n]=r,o=f.useRef(n),a=Vt(t);return f.useEffect(()=>{o.current!==n&&(a(n),o.current=n)},[n,o,a]),r}const i6=f.forwardRef((e,t)=>f.createElement(Be.span,he({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),[Ra,fw]=tn("Tooltip",[za]),Ka=za(),l6="TooltipProvider",c6=700,sl="tooltip.open",[u6,il]=Ra(l6),d6=e=>{const{__scopeTooltip:t,delayDuration:r=c6,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,[s,i]=f.useState(!0),l=f.useRef(!1),c=f.useRef(0);return f.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),f.createElement(u6,{scope:t,isOpenDelayed:s,delayDuration:r,onOpen:f.useCallback(()=>{window.clearTimeout(c.current),i(!1)},[]),onClose:f.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i(!0),n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:f.useCallback(u=>{l.current=u},[]),disableHoverableContent:o},a)},ll="Tooltip",[f6,Jn]=Ra(ll),p6=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,l=il(ll,e.__scopeTooltip),c=Ka(t),[u,d]=f.useState(null),h=ka(),p=f.useRef(0),m=s??l.disableHoverableContent,y=i??l.delayDuration,b=f.useRef(!1),[C=!1,x]=Ba({prop:n,defaultProp:o,onChange:j=>{j?(l.onOpen(),document.dispatchEvent(new CustomEvent(sl))):l.onClose(),a==null||a(j)}}),P=f.useMemo(()=>C?b.current?"delayed-open":"instant-open":"closed",[C]),E=f.useCallback(()=>{window.clearTimeout(p.current),b.current=!1,x(!0)},[x]),S=f.useCallback(()=>{window.clearTimeout(p.current),x(!1)},[x]),N=f.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{b.current=!0,x(!0)},y)},[y,x]);return f.useEffect(()=>()=>window.clearTimeout(p.current),[]),f.createElement(bh,c,f.createElement(f6,{scope:t,contentId:h,open:C,stateAttribute:P,trigger:u,onTriggerChange:d,onTriggerEnter:f.useCallback(()=>{l.isOpenDelayed?N():E()},[l.isOpenDelayed,N,E]),onTriggerLeave:f.useCallback(()=>{m?S():window.clearTimeout(p.current)},[S,m]),onOpen:E,onClose:S,disableHoverableContent:m},r))},Ch="TooltipTrigger",h6=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Jn(Ch,r),a=il(Ch,r),s=Ka(r),i=f.useRef(null),l=dt(t,i,o.onTriggerChange),c=f.useRef(!1),u=f.useRef(!1),d=f.useCallback(()=>c.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),f.createElement(yh,he({asChild:!0},s),f.createElement(Be.button,he({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},n,{ref:l,onPointerMove:je(e.onPointerMove,h=>{h.pointerType!=="touch"&&!u.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:je(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:je(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:je(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:je(e.onBlur,o.onClose),onClick:je(e.onClick,o.onClose)})))}),Ph="TooltipPortal",[m6,g6]=Ra(Ph,{forceMount:void 0}),v6=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=Jn(Ph,t);return f.createElement(m6,{scope:t,forceMount:r},f.createElement(ln,{present:r||a.open},f.createElement(wh,{asChild:!0,container:o},n)))},eo="TooltipContent",b6=f.forwardRef((e,t)=>{const r=g6(eo,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,s=Jn(eo,e.__scopeTooltip);return f.createElement(ln,{present:n||s.open},s.disableHoverableContent?f.createElement(Mh,he({side:o},a,{ref:t})):f.createElement(y6,he({side:o},a,{ref:t})))}),y6=f.forwardRef((e,t)=>{const r=Jn(eo,e.__scopeTooltip),n=il(eo,e.__scopeTooltip),o=f.useRef(null),a=dt(t,o),[s,i]=f.useState(null),{trigger:l,onClose:c}=r,u=o.current,{onPointerInTransitChange:d}=n,h=f.useCallback(()=>{i(null),d(!1)},[d]),p=f.useCallback((m,y)=>{const b=m.currentTarget,C={x:m.clientX,y:m.clientY},x=M6(C,b.getBoundingClientRect()),P=T6(C,x),E=E6(y.getBoundingClientRect()),S=$6([...P,...E]);i(S),d(!0)},[d]);return f.useEffect(()=>()=>h(),[h]),f.useEffect(()=>{if(l&&u){const m=b=>p(b,u),y=b=>p(b,l);return l.addEventListener("pointerleave",m),u.addEventListener("pointerleave",y),()=>{l.removeEventListener("pointerleave",m),u.removeEventListener("pointerleave",y)}}},[l,u,p,h]),f.useEffect(()=>{if(s){const m=y=>{const b=y.target,C={x:y.clientX,y:y.clientY},x=(l==null?void 0:l.contains(b))||(u==null?void 0:u.contains(b)),P=!S6(C,s);x?h():P&&(h(),c())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[l,u,s,c,h]),f.createElement(Mh,he({},e,{ref:a}))}),[x6,w6]=Ra(ll,{isInside:!1}),Mh=f.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,l=Jn(eo,r),c=Ka(r),{onClose:u}=l;return f.useEffect(()=>(document.addEventListener(sl,u),()=>document.removeEventListener(sl,u)),[u]),f.useEffect(()=>{if(l.trigger){const d=h=>{const p=h.target;p!=null&&p.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),f.createElement(Hp,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:u},f.createElement(xh,he({"data-state":l.stateAttribute},c,i,{ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),f.createElement(gc,null,n),f.createElement(x6,{scope:r,isInside:!0},f.createElement(i6,{id:l.contentId,role:"tooltip"},o||n))))}),C6="TooltipArrow",P6=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Ka(r);return w6(C6,r).isInside?null:f.createElement(n6,he({},o,n,{ref:t}))});function M6(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function T6(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function E6(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function S6(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a].x,l=t[a].y,c=t[s].x,u=t[s].y;l>n!=u>n&&r<(c-i)*(n-l)/(u-l)+i&&(o=!o)}return o}function $6(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),D6(t)}function D6(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const a=r[r.length-1],s=r[r.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}const I6=d6,k6=p6,A6=h6,O6=v6,N6=b6,L6=P6,j6=({children:e,showArrow:t=!1,startOpen:r=!1,content:n,hasCloseButton:o=!1,action:a,size:s="sm"})=>{const[i,l]=f.useState(r),c=Me({base:"rounded-lg bg-primary-black-400 px-4 pb-[13px] pt-[12px] font-satoshi text-sm font-medium text-white",variants:{size:{sm:"max-w-[215px]",lg:"max-w-[342px]"}}}),u=()=>{l(!1)},d=()=>{a&&a.onClick(),u()};return L.jsx(I6,{children:L.jsxs(k6,{delayDuration:0,defaultOpen:i,open:i,onOpenChange:h=>l(h),children:[L.jsx(A6,{asChild:!0,children:e}),L.jsx(O6,{children:L.jsxs(N6,{className:c({size:s}),sideOffset:5,children:[L.jsxs("div",{children:[L.jsxs("div",{className:"flex gap-4",children:[n,o&&L.jsx(et,{onClick:u,name:"close",className:"mt-1 cursor-pointer text-xs text-white"})]}),a&&L.jsx(Yi,{className:"-mb-1 mt-1 !h-6 !px-0",variant:"tertiaryDark",onClick:d,children:a.label})]}),t&&L.jsx(L6,{className:"TooltipArrow"})]})})]})})};function _6(e){const t=e+"CollectionProvider",[r,n]=tn(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=p=>{const{scope:m,children:y}=p,b=f.useRef(null),C=f.useRef(new Map).current;return f.createElement(o,{scope:m,itemMap:C,collectionRef:b},y)},i=e+"CollectionSlot",l=f.forwardRef((p,m)=>{const{scope:y,children:b}=p,C=a(i,y),x=dt(m,C.collectionRef);return f.createElement(jr,{ref:x},b)}),c=e+"CollectionItemSlot",u="data-radix-collection-item",d=f.forwardRef((p,m)=>{const{scope:y,children:b,...C}=p,x=f.useRef(null),P=dt(m,x),E=a(c,y);return f.useEffect(()=>(E.itemMap.set(x,{ref:x,...C}),()=>void E.itemMap.delete(x))),f.createElement(jr,{[u]:"",ref:P},b)});function h(p){const m=a(e+"CollectionConsumer",p);return f.useCallback(()=>{const b=m.collectionRef.current;if(!b)return[];const C=Array.from(b.querySelectorAll(`[${u}]`));return Array.from(m.itemMap.values()).sort((E,S)=>C.indexOf(E.ref.current)-C.indexOf(S.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:s,Slot:l,ItemSlot:d},h,n]}const F6=f.createContext(void 0);function Th(e){const t=f.useContext(F6);return e||t||"ltr"}const cl="rovingFocusGroup.onEntryFocus",V6={bubbles:!1,cancelable:!0},ul="RovingFocusGroup",[dl,Eh,z6]=_6(ul),[W6,Sh]=tn(ul,[z6]),[B6,R6]=W6(ul),K6=f.forwardRef((e,t)=>f.createElement(dl.Provider,{scope:e.__scopeRovingFocusGroup},f.createElement(dl.Slot,{scope:e.__scopeRovingFocusGroup},f.createElement(U6,he({},e,{ref:t}))))),U6=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:c,...u}=e,d=f.useRef(null),h=dt(t,d),p=Th(a),[m=null,y]=Ba({prop:s,defaultProp:i,onChange:l}),[b,C]=f.useState(!1),x=Vt(c),P=Eh(r),E=f.useRef(!1),[S,N]=f.useState(0);return f.useEffect(()=>{const j=d.current;if(j)return j.addEventListener(cl,x),()=>j.removeEventListener(cl,x)},[x]),f.createElement(B6,{scope:r,orientation:n,dir:p,loop:o,currentTabStopId:m,onItemFocus:f.useCallback(j=>y(j),[y]),onItemShiftTab:f.useCallback(()=>C(!0),[]),onFocusableItemAdd:f.useCallback(()=>N(j=>j+1),[]),onFocusableItemRemove:f.useCallback(()=>N(j=>j-1),[])},f.createElement(Be.div,he({tabIndex:b||S===0?-1:0,"data-orientation":n},u,{ref:h,style:{outline:"none",...e.style},onMouseDown:je(e.onMouseDown,()=>{E.current=!0}),onFocus:je(e.onFocus,j=>{const g=!E.current;if(j.target===j.currentTarget&&g&&!b){const A=new CustomEvent(cl,V6);if(j.currentTarget.dispatchEvent(A),!A.defaultPrevented){const I=P().filter(O=>O.focusable),T=I.find(O=>O.active),D=I.find(O=>O.id===m),M=[T,D,...I].filter(Boolean).map(O=>O.ref.current);$h(M)}}E.current=!1}),onBlur:je(e.onBlur,()=>C(!1))})))}),H6="RovingFocusGroupItem",Y6=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,...s}=e,i=ka(),l=a||i,c=R6(H6,r),u=c.currentTabStopId===l,d=Eh(r),{onFocusableItemAdd:h,onFocusableItemRemove:p}=c;return f.useEffect(()=>{if(n)return h(),()=>p()},[n,h,p]),f.createElement(dl.ItemSlot,{scope:r,id:l,focusable:n,active:o},f.createElement(Be.span,he({tabIndex:u?0:-1,"data-orientation":c.orientation},s,{ref:t,onMouseDown:je(e.onMouseDown,m=>{n?c.onItemFocus(l):m.preventDefault()}),onFocus:je(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:je(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){c.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const y=Q6(m,c.orientation,c.dir);if(y!==void 0){m.preventDefault();let C=d().filter(x=>x.focusable).map(x=>x.ref.current);if(y==="last")C.reverse();else if(y==="prev"||y==="next"){y==="prev"&&C.reverse();const x=C.indexOf(m.currentTarget);C=c.loop?X6(C,x+1):C.slice(x+1)}setTimeout(()=>$h(C))}})})))}),G6={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function q6(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Q6(e,t,r){const n=q6(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return G6[n]}function $h(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function X6(e,t){return e.map((r,n)=>e[(t+n)%e.length])}const Z6=K6,J6=Y6,Dh="Tabs",[e7,pw]=tn(Dh,[Sh]),Ih=Sh(),[t7,fl]=e7(Dh),r7=f.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:s="horizontal",dir:i,activationMode:l="automatic",...c}=e,u=Th(i),[d,h]=Ba({prop:n,onChange:o,defaultProp:a});return f.createElement(t7,{scope:r,baseId:ka(),value:d,onValueChange:h,orientation:s,dir:u,activationMode:l},f.createElement(Be.div,he({dir:u,"data-orientation":s},c,{ref:t})))}),n7="TabsList",o7=f.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=fl(n7,r),s=Ih(r);return f.createElement(Z6,he({asChild:!0},s,{orientation:a.orientation,dir:a.dir,loop:n}),f.createElement(Be.div,he({role:"tablist","aria-orientation":a.orientation},o,{ref:t})))}),a7="TabsTrigger",s7=f.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,s=fl(a7,r),i=Ih(r),l=kh(s.baseId,n),c=Ah(s.baseId,n),u=n===s.value;return f.createElement(J6,he({asChild:!0},i,{focusable:!o,active:u}),f.createElement(Be.button,he({type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l},a,{ref:t,onMouseDown:je(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?s.onValueChange(n):d.preventDefault()}),onKeyDown:je(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&s.onValueChange(n)}),onFocus:je(e.onFocus,()=>{const d=s.activationMode!=="manual";!u&&!o&&d&&s.onValueChange(n)})})))}),i7="TabsContent",l7=f.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...s}=e,i=fl(i7,r),l=kh(i.baseId,n),c=Ah(i.baseId,n),u=n===i.value,d=f.useRef(u);return f.useEffect(()=>{const h=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(h)},[]),f.createElement(ln,{present:o||u},({present:h})=>f.createElement(Be.div,he({"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!h,id:c,tabIndex:0},s,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),h&&a))});function kh(e,t){return`${e}-trigger-${t}`}function Ah(e,t){return`${e}-content-${t}`}const c7=r7,u7=o7,d7=s7,f7=l7,p7=({tabs:e,defaultValue:t,variant:r="button",className:n,...o})=>{const a=Me({base:"",variants:{variant:{underline:"",button:""}}}),s=Me({base:"flex flex-row",variants:{variant:{underline:"",button:""}}}),i=Me({base:"flex h-[82px] w-[197px] items-center justify-center gap-2 text-lg font-medium text-primary-grey-700 hover:text-primary-grey-800 data-[state=active]:font-bold data-[state=active]:text-secondary-green-500",variants:{variant:{underline:"border-b border-primary-grey-600 border-t-transparent hover:border-b-4 hover:border-t-3 hover:border-b-primary-grey-700 hover:font-bold data-[state=active]:border-b-4 data-[state=active]:border-t-3 data-[state=active]:border-b-secondary-green-500 data-[state=active]:text-secondary-green-500",button:"relative z-0 -mr-[1px] rounded-none border border-primary-grey-600 first:rounded-l-xl last:rounded-r-xl hover:z-10 hover:border-2 hover:border-primary-grey-800 data-[state=active]:z-20 data-[state=active]:border-2 data-[state=active]:border-secondary-green-500"}}});return L.jsxs(c7,{defaultValue:t??e[0].key,className:a({variant:r,className:n}),...o,children:[L.jsx(u7,{className:s({variant:r}),children:e.map(({icon:l,key:c,title:u})=>L.jsxs(d7,{value:c,className:i({variant:r}),children:[l&&L.jsx(et,{className:"-mt-[1px]",name:l}),u]},c))}),e.map(({content:l,key:c})=>L.jsx(f7,{value:c,children:l},c))]})},Oh=({message:e,className:t,isInvalid:r=!1,isValid:n=!1,disabled:o=!1,value:a,icon:s,iconAction:i,isDatePicker:l=!1,onClick:c,...u})=>{const d=Me({base:"[&_label]:data-[filled-within=true]:!left-[15px] [&_label]:data-[filled-within=true]:!top-[20px] [&_label]:data-[filled-within=true]:!ml-[1px] [&_label]:data-[filled-within=true]:!text-xs [&_label]:data-[filled-within=true]:!text-primary-grey-800",variants:{isInvalid:{true:"[&_label]:data-[filled-within=true]:!text-complementary-red-500"},isValid:{true:"[&_label]:data-[filled-within=true]:!text-secondary-green-500"},disabled:{true:"[&_label]:data-[filled-within=true]:!text-primary-grey-700"}}}),h=Me({base:"left-[15px] font-satoshi font-satoshi text-base text-sm text-primary-grey-800",variants:{isInvalid:{true:"text-complementary-red-500"},isValid:{true:"text-secondary-green-500"},disabled:{true:"text-primary-grey-700"}}}),p=Me({base:"text-left font-satoshi text-base",variants:{disabled:{true:"!text-primary-grey-700"},isDatePicker:{true:"!cursor-pointer"}}}),m=Me({base:"h-12 rounded-lg border border-primary-grey-700 !bg-white px-[15px] text-black !ring-0 !ring-offset-0",variants:{isInvalid:{true:"border-complementary-red-500"},isValid:{true:"border-secondary-green-500"},disabled:{true:"!border-primary-grey-500 !bg-primary-grey-500"},isDatePicker:{true:"!cursor-pointer"}}}),y=Me({base:"mt-[5px] pl-3 font-satoshi",variants:{isInvalid:{true:"text-complementary-red-500"},isValid:{true:"text-secondary-green-500"}}}),b=Me({base:"text-primary-grey-800",variants:{iconAction:{true:"cursor-pointer"}}});return L.jsx("div",{onClick:c,children:L.jsx(t4,{classNames:{input:p({disabled:o,isDatePicker:l}),inputWrapper:m({isInvalid:r,isValid:n,disabled:o,isDatePicker:l}),base:d({isInvalid:r,isValid:n,disabled:o,className:t}),label:h({isInvalid:r,isValid:n,disabled:o}),description:y({isInvalid:r,isValid:n})},labelPlacement:"outside",description:e,disabled:o,value:a,readOnly:l,endContent:s&&L.jsx(et,{onClick:i,name:s,className:b({iconAction:!!i})}),...u})})};let pl=0;function h7(){f.useEffect(()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:Nh()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:Nh()),pl++,()=>{pl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),pl--}},[])}function Nh(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const hl="focusScope.autoFocusOnMount",ml="focusScope.autoFocusOnUnmount",Lh={bubbles:!1,cancelable:!0},m7=f.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,l]=f.useState(null),c=Vt(o),u=Vt(a),d=f.useRef(null),h=dt(t,y=>l(y)),p=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(n){let y=function(P){if(p.paused||!i)return;const E=P.target;i.contains(E)?d.current=E:sr(d.current,{select:!0})},b=function(P){if(p.paused||!i)return;const E=P.relatedTarget;E!==null&&(i.contains(E)||sr(d.current,{select:!0}))},C=function(P){if(document.activeElement===document.body)for(const S of P)S.removedNodes.length>0&&sr(i)};document.addEventListener("focusin",y),document.addEventListener("focusout",b);const x=new MutationObserver(C);return i&&x.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",b),x.disconnect()}}},[n,i,p.paused]),f.useEffect(()=>{if(i){Fh.add(p);const y=document.activeElement;if(!i.contains(y)){const C=new CustomEvent(hl,Lh);i.addEventListener(hl,c),i.dispatchEvent(C),C.defaultPrevented||(g7(w7(jh(i)),{select:!0}),document.activeElement===y&&sr(i))}return()=>{i.removeEventListener(hl,c),setTimeout(()=>{const C=new CustomEvent(ml,Lh);i.addEventListener(ml,u),i.dispatchEvent(C),C.defaultPrevented||sr(y??document.body,{select:!0}),i.removeEventListener(ml,u),Fh.remove(p)},0)}}},[i,c,u,p]);const m=f.useCallback(y=>{if(!r&&!n||p.paused)return;const b=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,C=document.activeElement;if(b&&C){const x=y.currentTarget,[P,E]=v7(x);P&&E?!y.shiftKey&&C===E?(y.preventDefault(),r&&sr(P,{select:!0})):y.shiftKey&&C===P&&(y.preventDefault(),r&&sr(E,{select:!0})):C===x&&y.preventDefault()}},[r,n,p.paused]);return f.createElement(Be.div,he({tabIndex:-1},s,{ref:h,onKeyDown:m}))});function g7(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(sr(n,{select:t}),document.activeElement!==r)return}function v7(e){const t=jh(e),r=_h(t,e),n=_h(t.reverse(),e);return[r,n]}function jh(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function _h(e,t){for(const r of e)if(!b7(r,{upTo:t}))return r}function b7(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function y7(e){return e instanceof HTMLInputElement&&"select"in e}function sr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&y7(e)&&t&&e.select()}}const Fh=x7();function x7(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Vh(e,t),e.unshift(t)},remove(t){var r;e=Vh(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function Vh(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function w7(e){return e.filter(t=>t.tagName!=="A")}var C7=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},cn=new WeakMap,Ua=new WeakMap,Ha={},gl=0,zh=function(e){return e&&(e.host||zh(e.parentNode))},P7=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=zh(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},M7=function(e,t,r,n){var o=P7(t,Array.isArray(e)?e:[e]);Ha[r]||(Ha[r]=new WeakMap);var a=Ha[r],s=[],i=new Set,l=new Set(o),c=function(d){!d||i.has(d)||(i.add(d),c(d.parentNode))};o.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(i.has(h))u(h);else{var p=h.getAttribute(n),m=p!==null&&p!=="false",y=(cn.get(h)||0)+1,b=(a.get(h)||0)+1;cn.set(h,y),a.set(h,b),s.push(h),y===1&&m&&Ua.set(h,!0),b===1&&h.setAttribute(r,"true"),m||h.setAttribute(n,"true")}})};return u(t),i.clear(),gl++,function(){s.forEach(function(d){var h=cn.get(d)-1,p=a.get(d)-1;cn.set(d,h),a.set(d,p),h||(Ua.has(d)||d.removeAttribute(n),Ua.delete(d)),p||d.removeAttribute(r)}),gl--,gl||(cn=new WeakMap,cn=new WeakMap,Ua=new WeakMap,Ha={})}},T7=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||C7(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),M7(n,o,r,"aria-hidden")):function(){return null}},Wh=c4(),vl=function(){},Ya=U.forwardRef(function(e,t){var r=U.useRef(null),n=U.useState({onScrollCapture:vl,onWheelCapture:vl,onTouchMoveCapture:vl}),o=n[0],a=n[1],s=e.forwardProps,i=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,h=e.sideCar,p=e.noIsolation,m=e.inert,y=e.allowPinchZoom,b=e.as,C=b===void 0?"div":b,x=zc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),P=h,E=s4([r,t]),S=Pt(Pt({},x),o);return U.createElement(U.Fragment,null,u&&U.createElement(P,{sideCar:Wh,removeScrollBar:c,shards:d,noIsolation:p,inert:m,setCallbacks:a,allowPinchZoom:!!y,lockRef:r}),s?U.cloneElement(U.Children.only(i),Pt(Pt({},S),{ref:E})):U.createElement(C,Pt({},S,{className:l,ref:E}),i))});Ya.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ya.classNames={fullWidth:Pa,zeroRight:Ca};var bl=!1;if(typeof window<"u")try{var Ga=Object.defineProperty({},"passive",{get:function(){return bl=!0,!0}});window.addEventListener("test",Ga,Ga),window.removeEventListener("test",Ga,Ga)}catch{bl=!1}var un=bl?{passive:!1}:!1,E7=function(e){return e.tagName==="TEXTAREA"},Bh=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!E7(e)&&r[t]==="visible")},S7=function(e){return Bh(e,"overflowY")},$7=function(e){return Bh(e,"overflowX")},Rh=function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=Kh(e,r);if(n){var o=Uh(e,r),a=o[1],s=o[2];if(a>s)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},D7=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},I7=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Kh=function(e,t){return e==="v"?S7(t):$7(t)},Uh=function(e,t){return e==="v"?D7(t):I7(t)},k7=function(e,t){return e==="h"&&t==="rtl"?-1:1},A7=function(e,t,r,n,o){var a=k7(e,window.getComputedStyle(t).direction),s=a*n,i=r.target,l=t.contains(i),c=!1,u=s>0,d=0,h=0;do{var p=Uh(e,i),m=p[0],y=p[1],b=p[2],C=y-b-a*m;(m||C)&&Kh(e,i)&&(d+=C,h+=m),i=i.parentNode}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(u&&(o&&d===0||!o&&s>d)||!u&&(o&&h===0||!o&&-s>h))&&(c=!0),c},qa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Hh=function(e){return[e.deltaX,e.deltaY]},Yh=function(e){return e&&"current"in e?e.current:e},O7=function(e,t){return e[0]===t[0]&&e[1]===t[1]},N7=function(e){return`
|
|
73
73
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
74
74
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
75
|
-
`)},O7=0,dn=[];function N7(e){var t=U.useRef([]),r=U.useRef([0,0]),n=U.useRef(),o=U.useState(O7++)[0],a=U.useState(function(){return Sp()})[0],s=U.useRef(e);U.useEffect(function(){s.current=e},[e]),U.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=gg([e.lockRef.current],(e.shards||[]).map(Uh),!0).filter(Boolean);return y.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),y.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=U.useCallback(function(y,b){if("touches"in y&&y.touches.length===2)return!s.current.allowPinchZoom;var C=qa(y),x=r.current,P="deltaX"in y?y.deltaX:x[0]-C[0],E="deltaY"in y?y.deltaY:x[1]-C[1],S,N=y.target,L=Math.abs(P)>Math.abs(E)?"h":"v";if("touches"in y&&L==="h"&&N.type==="range")return!1;var g=Wh(L,N);if(!g)return!0;if(g?S=L:(S=L==="v"?"h":"v",g=Wh(L,N)),!g)return!1;if(!n.current&&"changedTouches"in y&&(P||E)&&(n.current=S),!S)return!0;var A=n.current||S;return I7(A,b,y,A==="h"?P:E,!0)},[]),l=U.useCallback(function(y){var b=y;if(!(!dn.length||dn[dn.length-1]!==a)){var C="deltaY"in b?Kh(b):qa(b),x=t.current.filter(function(S){return S.name===b.type&&S.target===b.target&&k7(S.delta,C)})[0];if(x&&x.should){b.cancelable&&b.preventDefault();return}if(!x){var P=(s.current.shards||[]).map(Uh).filter(Boolean).filter(function(S){return S.contains(b.target)}),E=P.length>0?i(b,P[0]):!s.current.noIsolation;E&&b.cancelable&&b.preventDefault()}}},[]),c=U.useCallback(function(y,b,C,x){var P={name:y,delta:b,target:C,should:x};t.current.push(P),setTimeout(function(){t.current=t.current.filter(function(E){return E!==P})},1)},[]),u=U.useCallback(function(y){r.current=qa(y),n.current=void 0},[]),d=U.useCallback(function(y){c(y.type,Kh(y),y.target,i(y,e.lockRef.current))},[]),h=U.useCallback(function(y){c(y.type,qa(y),y.target,i(y,e.lockRef.current))},[]);U.useEffect(function(){return dn.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,un),document.addEventListener("touchmove",l,un),document.addEventListener("touchstart",u,un),function(){dn=dn.filter(function(y){return y!==a}),document.removeEventListener("wheel",l,un),document.removeEventListener("touchmove",l,un),document.removeEventListener("touchstart",u,un)}},[]);var p=e.removeScrollBar,m=e.inert;return U.createElement(U.Fragment,null,m?U.createElement(a,{styles:A7(o)}):null,p?U.createElement(x4,{gapMode:"margin"}):null)}const L7=l4(Vh,N7);var Hh=U.forwardRef(function(e,t){return U.createElement(Ya,Pt({},e,{ref:t,sideCar:L7}))});Hh.classNames=Ya.classNames;const j7=Hh,Yh="Popover",[Gh,fw]=tn(Yh,[za]),yl=za(),[_7,fn]=Gh(Yh),F7=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=yl(t),l=f.useRef(null),[c,u]=f.useState(!1),[d=!1,h]=Ba({prop:n,defaultProp:o,onChange:a});return f.createElement(gh,i,f.createElement(_7,{scope:t,contentId:ka(),triggerRef:l,open:d,onOpenChange:h,onOpenToggle:f.useCallback(()=>h(p=>!p),[h]),hasCustomAnchor:c,onCustomAnchorAdd:f.useCallback(()=>u(!0),[]),onCustomAnchorRemove:f.useCallback(()=>u(!1),[]),modal:s},r))},V7="PopoverTrigger",z7=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=fn(V7,r),a=yl(r),s=dt(t,o.triggerRef),i=f.createElement(Be.button,he({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Xh(o.open)},n,{ref:s,onClick:je(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?i:f.createElement(vh,he({asChild:!0},a),i)}),qh="PopoverPortal",[W7,B7]=Gh(qh,{forceMount:void 0}),R7=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=fn(qh,t);return f.createElement(W7,{scope:t,forceMount:r},f.createElement(ln,{present:r||a.open},f.createElement(yh,{asChild:!0,container:o},n)))},to="PopoverContent",K7=f.forwardRef((e,t)=>{const r=B7(to,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=fn(to,e.__scopePopover);return f.createElement(ln,{present:n||a.open},a.modal?f.createElement(U7,he({},o,{ref:t})):f.createElement(H7,he({},o,{ref:t})))}),U7=f.forwardRef((e,t)=>{const r=fn(to,e.__scopePopover),n=f.useRef(null),o=dt(t,n),a=f.useRef(!1);return f.useEffect(()=>{const s=n.current;if(s)return P7(s)},[]),f.createElement(j7,{as:jr,allowPinchZoom:!0},f.createElement(Qh,he({},e,{ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:je(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=r.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:je(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0,c=i.button===2||l;a.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:je(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})))}),H7=f.forwardRef((e,t)=>{const r=fn(to,e.__scopePopover),n=f.useRef(!1),o=f.useRef(!1);return f.createElement(Qh,he({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s;if((s=e.onCloseAutoFocus)===null||s===void 0||s.call(e,a),!a.defaultPrevented){var i;n.current||(i=r.triggerRef.current)===null||i===void 0||i.focus(),a.preventDefault()}n.current=!1,o.current=!1},onInteractOutside:a=>{var s,i;(s=e.onInteractOutside)===null||s===void 0||s.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=a.target;((i=r.triggerRef.current)===null||i===void 0?void 0:i.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}}))}),Qh=f.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,h=fn(to,r),p=yl(r);return f7(),f.createElement(p7,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a},f.createElement(Kp,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:u,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1)},f.createElement(bh,he({"data-state":Xh(h.open),role:"dialog",id:h.contentId},p,d,{ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))});function Xh(e){return e?"open":"closed"}const Y7=F7,G7=z7,q7=R7,Q7=K7,Zh=({children:e,content:t,isOpen:r,side:n="bottom",align:o="center",onInteractOutside:a,...s})=>j.jsxs(Y7,{open:r,...s,children:[j.jsx(G7,{asChild:!0,children:e}),j.jsx(q7,{children:j.jsx(Q7,{onInteractOutside:a,side:n,align:o,sideOffset:5,children:t})})]});function ye(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function it(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function He(e,t){const r=ye(e);return isNaN(t)?it(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function xt(e,t){const r=ye(e);if(isNaN(t))return it(e,NaN);if(!t)return r;const n=r.getDate(),o=it(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);const a=o.getDate();return n>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),n),r)}const xl=6048e5,X7=864e5;let Z7={};function ro(){return Z7}function $t(e,t){var i,l,c,u;const r=ro(),n=(t==null?void 0:t.weekStartsOn)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??r.weekStartsOn??((u=(c=r.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,o=ye(e),a=o.getDay(),s=(a<n?7:0)+a-n;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function $r(e){return $t(e,{weekStartsOn:1})}function Jh(e){const t=ye(e),r=t.getFullYear(),n=it(e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const o=$r(n),a=it(e,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=$r(a);return t.getTime()>=o.getTime()?r+1:t.getTime()>=s.getTime()?r:r-1}function pn(e){const t=ye(e);return t.setHours(0,0,0,0),t}function Qa(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Dt(e,t){const r=pn(e),n=pn(t),o=+r-Qa(r),a=+n-Qa(n);return Math.trunc((o-a)/X7)}function J7(e){const t=Jh(e),r=it(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),$r(r)}function wl(e,t){const r=t*7;return He(e,r)}function ex(e,t){return xt(e,t*12)}function tx(e){let t;return e.forEach(function(r){const n=ye(r);(t===void 0||t<n||isNaN(Number(n)))&&(t=n)}),t||new Date(NaN)}function rx(e){let t;return e.forEach(r=>{const n=ye(r);(!t||t>n||isNaN(+n))&&(t=n)}),t||new Date(NaN)}function Xe(e,t){const r=pn(e),n=pn(t);return+r==+n}function Cl(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function nx(e){if(!Cl(e)&&typeof e!="number")return!1;const t=ye(e);return!isNaN(Number(t))}function no(e,t){const r=ye(e),n=ye(t),o=r.getFullYear()-n.getFullYear(),a=r.getMonth()-n.getMonth();return o*12+a}function ox(e,t,r){const n=$t(e,r),o=$t(t,r),a=+n-Qa(n),s=+o-Qa(o);return Math.trunc((a-s)/xl)}function Pl(e){const t=ye(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function Ze(e){const t=ye(e);return t.setDate(1),t.setHours(0,0,0,0),t}function e0(e){const t=ye(e),r=it(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function Ml(e,t){var i,l,c,u;const r=ro(),n=(t==null?void 0:t.weekStartsOn)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??r.weekStartsOn??((u=(c=r.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,o=ye(e),a=o.getDay(),s=(a<n?-7:0)+6-(a-n);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}function t0(e){return Ml(e,{weekStartsOn:1})}const ax={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},sx=(e,t,r)=>{let n;const o=ax[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function Tl(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const ix={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},lx={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},cx={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ux={date:Tl({formats:ix,defaultWidth:"full"}),time:Tl({formats:lx,defaultWidth:"full"}),dateTime:Tl({formats:cx,defaultWidth:"full"})},dx={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},fx=(e,t,r,n)=>dx[e];function oo(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let o;if(n==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,i=r!=null&&r.width?String(r.width):s;o=e.formattingValues[i]||e.formattingValues[s]}else{const s=e.defaultWidth,i=r!=null&&r.width?String(r.width):e.defaultWidth;o=e.values[i]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const px={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},hx={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},mx={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},gx={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},vx={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},bx={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},yx={ordinalNumber:(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:oo({values:px,defaultWidth:"wide"}),quarter:oo({values:hx,defaultWidth:"wide",argumentCallback:e=>e-1}),month:oo({values:mx,defaultWidth:"wide"}),day:oo({values:gx,defaultWidth:"wide"}),dayPeriod:oo({values:vx,defaultWidth:"wide",formattingValues:bx,defaultFormattingWidth:"wide"})};function ao(e){return(t,r={})=>{const n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const s=a[0],i=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(i)?wx(i,d=>d.test(s)):xx(i,d=>d.test(s));let c;c=e.valueCallback?e.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c;const u=t.slice(s.length);return{value:c,rest:u}}}function xx(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function wx(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function Cx(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const o=n[0],a=t.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=r.valueCallback?r.valueCallback(s):s;const i=t.slice(o.length);return{value:s,rest:i}}}const Px=/^(\d+)(th|st|nd|rd)?/i,Mx=/\d+/i,Tx={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Ex={any:[/^b/i,/^(a|c)/i]},Sx={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},$x={any:[/1/i,/2/i,/3/i,/4/i]},Dx={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Ix={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},kx={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Ax={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Ox={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Nx={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Lx={ordinalNumber:Cx({matchPattern:Px,parsePattern:Mx,valueCallback:e=>parseInt(e,10)}),era:ao({matchPatterns:Tx,defaultMatchWidth:"wide",parsePatterns:Ex,defaultParseWidth:"any"}),quarter:ao({matchPatterns:Sx,defaultMatchWidth:"wide",parsePatterns:$x,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ao({matchPatterns:Dx,defaultMatchWidth:"wide",parsePatterns:Ix,defaultParseWidth:"any"}),day:ao({matchPatterns:kx,defaultMatchWidth:"wide",parsePatterns:Ax,defaultParseWidth:"any"}),dayPeriod:ao({matchPatterns:Ox,defaultMatchWidth:"any",parsePatterns:Nx,defaultParseWidth:"any"})},r0={code:"en-US",formatDistance:sx,formatLong:ux,formatRelative:fx,localize:yx,match:Lx,options:{weekStartsOn:0,firstWeekContainsDate:1}};function jx(e){const t=ye(e);return Dt(t,e0(t))+1}function n0(e){const t=ye(e),r=+$r(t)-+J7(t);return Math.trunc(r/xl)+1}function o0(e,t){var u,d,h,p;const r=ye(e),n=r.getFullYear(),o=ro(),a=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??o.firstWeekContainsDate??((p=(h=o.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,s=it(e,0);s.setFullYear(n+1,0,a),s.setHours(0,0,0,0);const i=$t(s,t),l=it(e,0);l.setFullYear(n,0,a),l.setHours(0,0,0,0);const c=$t(l,t);return r.getTime()>=i.getTime()?n+1:r.getTime()>=c.getTime()?n:n-1}function _x(e,t){var i,l,c,u;const r=ro(),n=(t==null?void 0:t.firstWeekContainsDate)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.firstWeekContainsDate)??r.firstWeekContainsDate??((u=(c=r.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??1,o=o0(e,t),a=it(e,0);return a.setFullYear(o,0,n),a.setHours(0,0,0,0),$t(a,t)}function a0(e,t){const r=ye(e),n=+$t(r,t)-+_x(r,t);return Math.trunc(n/xl)+1}function Ce(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const ir={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return Ce(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):Ce(r+1,2)},d(e,t){return Ce(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return Ce(e.getHours()%12||12,t.length)},H(e,t){return Ce(e.getHours(),t.length)},m(e,t){return Ce(e.getMinutes(),t.length)},s(e,t){return Ce(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return Ce(o,t.length)}},hn={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},s0={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return ir.y(e,t)},Y:function(e,t,r,n){const o=o0(e,n),a=o>0?o:1-o;if(t==="YY"){const s=a%100;return Ce(s,2)}return t==="Yo"?r.ordinalNumber(a,{unit:"year"}):Ce(a,t.length)},R:function(e,t){const r=Jh(e);return Ce(r,t.length)},u:function(e,t){const r=e.getFullYear();return Ce(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return Ce(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return Ce(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return ir.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return Ce(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const o=a0(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):Ce(o,t.length)},I:function(e,t,r){const n=n0(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):Ce(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):ir.d(e,t)},D:function(e,t,r){const n=jx(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):Ce(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Ce(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Ce(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return Ce(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let o;switch(n===12?o=hn.noon:n===0?o=hn.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let o;switch(n>=17?o=hn.evening:n>=12?o=hn.afternoon:n>=4?o=hn.morning:o=hn.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return ir.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):ir.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):Ce(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):Ce(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):ir.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):ir.s(e,t)},S:function(e,t){return ir.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return l0(n);case"XXXX":case"XX":return Dr(n);case"XXXXX":case"XXX":default:return Dr(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return l0(n);case"xxxx":case"xx":return Dr(n);case"xxxxx":case"xxx":default:return Dr(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+i0(n,":");case"OOOO":default:return"GMT"+Dr(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+i0(n,":");case"zzzz":default:return"GMT"+Dr(n,":")}},t:function(e,t,r){const n=Math.trunc(e.getTime()/1e3);return Ce(n,t.length)},T:function(e,t,r){const n=e.getTime();return Ce(n,t.length)}};function i0(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),a=n%60;return a===0?r+String(o):r+String(o)+t+Ce(a,2)}function l0(e,t){return e%60===0?(e>0?"-":"+")+Ce(Math.abs(e)/60,2):Dr(e,t)}function Dr(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Ce(Math.trunc(n/60),2),a=Ce(n%60,2);return r+o+t+a}const c0=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},u0=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Fx={p:u0,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return c0(e,t);let a;switch(n){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",c0(n,t)).replace("{{time}}",u0(o,t))}},Vx=/^D+$/,zx=/^Y+$/,Wx=["D","DD","YY","YYYY"];function Bx(e){return Vx.test(e)}function Rx(e){return zx.test(e)}function Kx(e,t,r){const n=Ux(e,t,r);if(console.warn(n),Wx.includes(e))throw new RangeError(n)}function Ux(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Hx=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Yx=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Gx=/^'([^]*?)'?$/,qx=/''/g,Qx=/[a-zA-Z]/;function Kt(e,t,r){var u,d,h,p,m,y,b,C;const n=ro(),o=(r==null?void 0:r.locale)??n.locale??r0,a=(r==null?void 0:r.firstWeekContainsDate)??((d=(u=r==null?void 0:r.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??n.firstWeekContainsDate??((p=(h=n.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,s=(r==null?void 0:r.weekStartsOn)??((y=(m=r==null?void 0:r.locale)==null?void 0:m.options)==null?void 0:y.weekStartsOn)??n.weekStartsOn??((C=(b=n.locale)==null?void 0:b.options)==null?void 0:C.weekStartsOn)??0,i=ye(e);if(!nx(i))throw new RangeError("Invalid time value");let l=t.match(Yx).map(x=>{const P=x[0];if(P==="p"||P==="P"){const E=Fx[P];return E(x,o.formatLong)}return x}).join("").match(Hx).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const P=x[0];if(P==="'")return{isToken:!1,value:Xx(x)};if(s0[P])return{isToken:!0,value:x};if(P.match(Qx))throw new RangeError("Format string contains an unescaped latin alphabet character `"+P+"`");return{isToken:!1,value:x}});o.localize.preprocessor&&(l=o.localize.preprocessor(i,l));const c={firstWeekContainsDate:a,weekStartsOn:s,locale:o};return l.map(x=>{if(!x.isToken)return x.value;const P=x.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&Rx(P)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&Bx(P))&&Kx(P,t,String(e));const E=s0[P[0]];return E(i,P,o.localize,c)}).join("")}function Xx(e){const t=e.match(Gx);return t?t[1].replace(qx,"'"):e}function Zx(e){const t=ye(e),r=t.getFullYear(),n=t.getMonth(),o=it(e,0);return o.setFullYear(r,n+1,0),o.setHours(0,0,0,0),o.getDate()}function Jx(e){return Math.trunc(+ye(e)/1e3)}function e9(e){const t=ye(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(0,0,0,0),t}function t9(e,t){return ox(e9(e),Ze(e),t)+1}function El(e,t){const r=ye(e),n=ye(t);return r.getTime()>n.getTime()}function d0(e,t){const r=ye(e),n=ye(t);return+r<+n}function Sl(e,t){const r=ye(e),n=ye(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}function r9(e,t){const r=ye(e),n=ye(t);return r.getFullYear()===n.getFullYear()}function $l(e,t){return He(e,-t)}function Dl(e,t){const r=ye(e),n=r.getFullYear(),o=r.getDate(),a=it(e,0);a.setFullYear(n,t,15),a.setHours(0,0,0,0);const s=Zx(a);return r.setMonth(t,Math.min(o,s)),r}function f0(e,t){const r=ye(e);return isNaN(+r)?it(e,NaN):(r.setFullYear(t),r)}var ae=function(){return ae=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},ae.apply(this,arguments)};function n9(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function p0(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Il={exports:{}},so={};/**
|
|
75
|
+
`)},L7=0,dn=[];function j7(e){var t=U.useRef([]),r=U.useRef([0,0]),n=U.useRef(),o=U.useState(L7++)[0],a=U.useState(function(){return Dp()})[0],s=U.useRef(e);U.useEffect(function(){s.current=e},[e]),U.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=bg([e.lockRef.current],(e.shards||[]).map(Yh),!0).filter(Boolean);return y.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),y.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=U.useCallback(function(y,b){if("touches"in y&&y.touches.length===2)return!s.current.allowPinchZoom;var C=qa(y),x=r.current,P="deltaX"in y?y.deltaX:x[0]-C[0],E="deltaY"in y?y.deltaY:x[1]-C[1],S,N=y.target,j=Math.abs(P)>Math.abs(E)?"h":"v";if("touches"in y&&j==="h"&&N.type==="range")return!1;var g=Rh(j,N);if(!g)return!0;if(g?S=j:(S=j==="v"?"h":"v",g=Rh(j,N)),!g)return!1;if(!n.current&&"changedTouches"in y&&(P||E)&&(n.current=S),!S)return!0;var A=n.current||S;return A7(A,b,y,A==="h"?P:E,!0)},[]),l=U.useCallback(function(y){var b=y;if(!(!dn.length||dn[dn.length-1]!==a)){var C="deltaY"in b?Hh(b):qa(b),x=t.current.filter(function(S){return S.name===b.type&&S.target===b.target&&O7(S.delta,C)})[0];if(x&&x.should){b.cancelable&&b.preventDefault();return}if(!x){var P=(s.current.shards||[]).map(Yh).filter(Boolean).filter(function(S){return S.contains(b.target)}),E=P.length>0?i(b,P[0]):!s.current.noIsolation;E&&b.cancelable&&b.preventDefault()}}},[]),c=U.useCallback(function(y,b,C,x){var P={name:y,delta:b,target:C,should:x};t.current.push(P),setTimeout(function(){t.current=t.current.filter(function(E){return E!==P})},1)},[]),u=U.useCallback(function(y){r.current=qa(y),n.current=void 0},[]),d=U.useCallback(function(y){c(y.type,Hh(y),y.target,i(y,e.lockRef.current))},[]),h=U.useCallback(function(y){c(y.type,qa(y),y.target,i(y,e.lockRef.current))},[]);U.useEffect(function(){return dn.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,un),document.addEventListener("touchmove",l,un),document.addEventListener("touchstart",u,un),function(){dn=dn.filter(function(y){return y!==a}),document.removeEventListener("wheel",l,un),document.removeEventListener("touchmove",l,un),document.removeEventListener("touchstart",u,un)}},[]);var p=e.removeScrollBar,m=e.inert;return U.createElement(U.Fragment,null,m?U.createElement(a,{styles:N7(o)}):null,p?U.createElement(C4,{gapMode:"margin"}):null)}const _7=u4(Wh,j7);var Gh=U.forwardRef(function(e,t){return U.createElement(Ya,Pt({},e,{ref:t,sideCar:_7}))});Gh.classNames=Ya.classNames;const F7=Gh,qh="Popover",[Qh,hw]=tn(qh,[za]),yl=za(),[V7,fn]=Qh(qh),z7=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=yl(t),l=f.useRef(null),[c,u]=f.useState(!1),[d=!1,h]=Ba({prop:n,defaultProp:o,onChange:a});return f.createElement(bh,i,f.createElement(V7,{scope:t,contentId:ka(),triggerRef:l,open:d,onOpenChange:h,onOpenToggle:f.useCallback(()=>h(p=>!p),[h]),hasCustomAnchor:c,onCustomAnchorAdd:f.useCallback(()=>u(!0),[]),onCustomAnchorRemove:f.useCallback(()=>u(!1),[]),modal:s},r))},W7="PopoverTrigger",B7=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=fn(W7,r),a=yl(r),s=dt(t,o.triggerRef),i=f.createElement(Be.button,he({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Jh(o.open)},n,{ref:s,onClick:je(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?i:f.createElement(yh,he({asChild:!0},a),i)}),Xh="PopoverPortal",[R7,K7]=Qh(Xh,{forceMount:void 0}),U7=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=fn(Xh,t);return f.createElement(R7,{scope:t,forceMount:r},f.createElement(ln,{present:r||a.open},f.createElement(wh,{asChild:!0,container:o},n)))},to="PopoverContent",H7=f.forwardRef((e,t)=>{const r=K7(to,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=fn(to,e.__scopePopover);return f.createElement(ln,{present:n||a.open},a.modal?f.createElement(Y7,he({},o,{ref:t})):f.createElement(G7,he({},o,{ref:t})))}),Y7=f.forwardRef((e,t)=>{const r=fn(to,e.__scopePopover),n=f.useRef(null),o=dt(t,n),a=f.useRef(!1);return f.useEffect(()=>{const s=n.current;if(s)return T7(s)},[]),f.createElement(F7,{as:jr,allowPinchZoom:!0},f.createElement(Zh,he({},e,{ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:je(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=r.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:je(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0,c=i.button===2||l;a.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:je(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})))}),G7=f.forwardRef((e,t)=>{const r=fn(to,e.__scopePopover),n=f.useRef(!1),o=f.useRef(!1);return f.createElement(Zh,he({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s;if((s=e.onCloseAutoFocus)===null||s===void 0||s.call(e,a),!a.defaultPrevented){var i;n.current||(i=r.triggerRef.current)===null||i===void 0||i.focus(),a.preventDefault()}n.current=!1,o.current=!1},onInteractOutside:a=>{var s,i;(s=e.onInteractOutside)===null||s===void 0||s.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=a.target;((i=r.triggerRef.current)===null||i===void 0?void 0:i.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}}))}),Zh=f.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,h=fn(to,r),p=yl(r);return h7(),f.createElement(m7,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a},f.createElement(Hp,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:u,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1)},f.createElement(xh,he({"data-state":Jh(h.open),role:"dialog",id:h.contentId},p,d,{ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))});function Jh(e){return e?"open":"closed"}const q7=z7,Q7=B7,X7=U7,Z7=H7,e0=({children:e,content:t,isOpen:r,side:n="bottom",align:o="center",onInteractOutside:a,...s})=>L.jsxs(q7,{open:r,...s,children:[L.jsx(Q7,{asChild:!0,children:e}),L.jsx(X7,{children:L.jsx(Z7,{onInteractOutside:a,side:n,align:o,sideOffset:5,children:t})})]});function ye(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function it(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function He(e,t){const r=ye(e);return isNaN(t)?it(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function xt(e,t){const r=ye(e);if(isNaN(t))return it(e,NaN);if(!t)return r;const n=r.getDate(),o=it(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);const a=o.getDate();return n>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),n),r)}const xl=6048e5,J7=864e5;let ex={};function ro(){return ex}function $t(e,t){var i,l,c,u;const r=ro(),n=(t==null?void 0:t.weekStartsOn)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??r.weekStartsOn??((u=(c=r.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,o=ye(e),a=o.getDay(),s=(a<n?7:0)+a-n;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function $r(e){return $t(e,{weekStartsOn:1})}function t0(e){const t=ye(e),r=t.getFullYear(),n=it(e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const o=$r(n),a=it(e,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=$r(a);return t.getTime()>=o.getTime()?r+1:t.getTime()>=s.getTime()?r:r-1}function pn(e){const t=ye(e);return t.setHours(0,0,0,0),t}function Qa(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Dt(e,t){const r=pn(e),n=pn(t),o=+r-Qa(r),a=+n-Qa(n);return Math.trunc((o-a)/J7)}function tx(e){const t=t0(e),r=it(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),$r(r)}function wl(e,t){const r=t*7;return He(e,r)}function rx(e,t){return xt(e,t*12)}function nx(e){let t;return e.forEach(function(r){const n=ye(r);(t===void 0||t<n||isNaN(Number(n)))&&(t=n)}),t||new Date(NaN)}function ox(e){let t;return e.forEach(r=>{const n=ye(r);(!t||t>n||isNaN(+n))&&(t=n)}),t||new Date(NaN)}function Xe(e,t){const r=pn(e),n=pn(t);return+r==+n}function Cl(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ax(e){if(!Cl(e)&&typeof e!="number")return!1;const t=ye(e);return!isNaN(Number(t))}function no(e,t){const r=ye(e),n=ye(t),o=r.getFullYear()-n.getFullYear(),a=r.getMonth()-n.getMonth();return o*12+a}function sx(e,t,r){const n=$t(e,r),o=$t(t,r),a=+n-Qa(n),s=+o-Qa(o);return Math.trunc((a-s)/xl)}function Pl(e){const t=ye(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function Ze(e){const t=ye(e);return t.setDate(1),t.setHours(0,0,0,0),t}function r0(e){const t=ye(e),r=it(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function Ml(e,t){var i,l,c,u;const r=ro(),n=(t==null?void 0:t.weekStartsOn)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??r.weekStartsOn??((u=(c=r.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,o=ye(e),a=o.getDay(),s=(a<n?-7:0)+6-(a-n);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}function n0(e){return Ml(e,{weekStartsOn:1})}const ix={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},lx=(e,t,r)=>{let n;const o=ix[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function Tl(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const cx={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ux={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dx={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},fx={date:Tl({formats:cx,defaultWidth:"full"}),time:Tl({formats:ux,defaultWidth:"full"}),dateTime:Tl({formats:dx,defaultWidth:"full"})},px={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},hx=(e,t,r,n)=>px[e];function oo(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let o;if(n==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,i=r!=null&&r.width?String(r.width):s;o=e.formattingValues[i]||e.formattingValues[s]}else{const s=e.defaultWidth,i=r!=null&&r.width?String(r.width):e.defaultWidth;o=e.values[i]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const mx={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},gx={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},vx={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},bx={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},yx={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},xx={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},wx={ordinalNumber:(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:oo({values:mx,defaultWidth:"wide"}),quarter:oo({values:gx,defaultWidth:"wide",argumentCallback:e=>e-1}),month:oo({values:vx,defaultWidth:"wide"}),day:oo({values:bx,defaultWidth:"wide"}),dayPeriod:oo({values:yx,defaultWidth:"wide",formattingValues:xx,defaultFormattingWidth:"wide"})};function ao(e){return(t,r={})=>{const n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const s=a[0],i=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(i)?Px(i,d=>d.test(s)):Cx(i,d=>d.test(s));let c;c=e.valueCallback?e.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c;const u=t.slice(s.length);return{value:c,rest:u}}}function Cx(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function Px(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function Mx(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const o=n[0],a=t.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=r.valueCallback?r.valueCallback(s):s;const i=t.slice(o.length);return{value:s,rest:i}}}const Tx=/^(\d+)(th|st|nd|rd)?/i,Ex=/\d+/i,Sx={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},$x={any:[/^b/i,/^(a|c)/i]},Dx={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ix={any:[/1/i,/2/i,/3/i,/4/i]},kx={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Ax={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Ox={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Nx={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Lx={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},jx={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},_x={ordinalNumber:Mx({matchPattern:Tx,parsePattern:Ex,valueCallback:e=>parseInt(e,10)}),era:ao({matchPatterns:Sx,defaultMatchWidth:"wide",parsePatterns:$x,defaultParseWidth:"any"}),quarter:ao({matchPatterns:Dx,defaultMatchWidth:"wide",parsePatterns:Ix,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ao({matchPatterns:kx,defaultMatchWidth:"wide",parsePatterns:Ax,defaultParseWidth:"any"}),day:ao({matchPatterns:Ox,defaultMatchWidth:"wide",parsePatterns:Nx,defaultParseWidth:"any"}),dayPeriod:ao({matchPatterns:Lx,defaultMatchWidth:"any",parsePatterns:jx,defaultParseWidth:"any"})},o0={code:"en-US",formatDistance:lx,formatLong:fx,formatRelative:hx,localize:wx,match:_x,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Fx(e){const t=ye(e);return Dt(t,r0(t))+1}function a0(e){const t=ye(e),r=+$r(t)-+tx(t);return Math.trunc(r/xl)+1}function s0(e,t){var u,d,h,p;const r=ye(e),n=r.getFullYear(),o=ro(),a=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??o.firstWeekContainsDate??((p=(h=o.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,s=it(e,0);s.setFullYear(n+1,0,a),s.setHours(0,0,0,0);const i=$t(s,t),l=it(e,0);l.setFullYear(n,0,a),l.setHours(0,0,0,0);const c=$t(l,t);return r.getTime()>=i.getTime()?n+1:r.getTime()>=c.getTime()?n:n-1}function Vx(e,t){var i,l,c,u;const r=ro(),n=(t==null?void 0:t.firstWeekContainsDate)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.firstWeekContainsDate)??r.firstWeekContainsDate??((u=(c=r.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??1,o=s0(e,t),a=it(e,0);return a.setFullYear(o,0,n),a.setHours(0,0,0,0),$t(a,t)}function i0(e,t){const r=ye(e),n=+$t(r,t)-+Vx(r,t);return Math.trunc(n/xl)+1}function Ce(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const ir={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return Ce(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):Ce(r+1,2)},d(e,t){return Ce(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return Ce(e.getHours()%12||12,t.length)},H(e,t){return Ce(e.getHours(),t.length)},m(e,t){return Ce(e.getMinutes(),t.length)},s(e,t){return Ce(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return Ce(o,t.length)}},hn={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},l0={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return ir.y(e,t)},Y:function(e,t,r,n){const o=s0(e,n),a=o>0?o:1-o;if(t==="YY"){const s=a%100;return Ce(s,2)}return t==="Yo"?r.ordinalNumber(a,{unit:"year"}):Ce(a,t.length)},R:function(e,t){const r=t0(e);return Ce(r,t.length)},u:function(e,t){const r=e.getFullYear();return Ce(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return Ce(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return Ce(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return ir.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return Ce(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const o=i0(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):Ce(o,t.length)},I:function(e,t,r){const n=a0(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):Ce(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):ir.d(e,t)},D:function(e,t,r){const n=Fx(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):Ce(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Ce(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Ce(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return Ce(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let o;switch(n===12?o=hn.noon:n===0?o=hn.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let o;switch(n>=17?o=hn.evening:n>=12?o=hn.afternoon:n>=4?o=hn.morning:o=hn.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return ir.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):ir.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):Ce(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):Ce(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):ir.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):ir.s(e,t)},S:function(e,t){return ir.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return u0(n);case"XXXX":case"XX":return Dr(n);case"XXXXX":case"XXX":default:return Dr(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return u0(n);case"xxxx":case"xx":return Dr(n);case"xxxxx":case"xxx":default:return Dr(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+c0(n,":");case"OOOO":default:return"GMT"+Dr(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+c0(n,":");case"zzzz":default:return"GMT"+Dr(n,":")}},t:function(e,t,r){const n=Math.trunc(e.getTime()/1e3);return Ce(n,t.length)},T:function(e,t,r){const n=e.getTime();return Ce(n,t.length)}};function c0(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),a=n%60;return a===0?r+String(o):r+String(o)+t+Ce(a,2)}function u0(e,t){return e%60===0?(e>0?"-":"+")+Ce(Math.abs(e)/60,2):Dr(e,t)}function Dr(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Ce(Math.trunc(n/60),2),a=Ce(n%60,2);return r+o+t+a}const d0=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},f0=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},zx={p:f0,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return d0(e,t);let a;switch(n){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",d0(n,t)).replace("{{time}}",f0(o,t))}},Wx=/^D+$/,Bx=/^Y+$/,Rx=["D","DD","YY","YYYY"];function Kx(e){return Wx.test(e)}function Ux(e){return Bx.test(e)}function Hx(e,t,r){const n=Yx(e,t,r);if(console.warn(n),Rx.includes(e))throw new RangeError(n)}function Yx(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Gx=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qx=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Qx=/^'([^]*?)'?$/,Xx=/''/g,Zx=/[a-zA-Z]/;function Kt(e,t,r){var u,d,h,p,m,y,b,C;const n=ro(),o=(r==null?void 0:r.locale)??n.locale??o0,a=(r==null?void 0:r.firstWeekContainsDate)??((d=(u=r==null?void 0:r.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??n.firstWeekContainsDate??((p=(h=n.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,s=(r==null?void 0:r.weekStartsOn)??((y=(m=r==null?void 0:r.locale)==null?void 0:m.options)==null?void 0:y.weekStartsOn)??n.weekStartsOn??((C=(b=n.locale)==null?void 0:b.options)==null?void 0:C.weekStartsOn)??0,i=ye(e);if(!ax(i))throw new RangeError("Invalid time value");let l=t.match(qx).map(x=>{const P=x[0];if(P==="p"||P==="P"){const E=zx[P];return E(x,o.formatLong)}return x}).join("").match(Gx).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const P=x[0];if(P==="'")return{isToken:!1,value:Jx(x)};if(l0[P])return{isToken:!0,value:x};if(P.match(Zx))throw new RangeError("Format string contains an unescaped latin alphabet character `"+P+"`");return{isToken:!1,value:x}});o.localize.preprocessor&&(l=o.localize.preprocessor(i,l));const c={firstWeekContainsDate:a,weekStartsOn:s,locale:o};return l.map(x=>{if(!x.isToken)return x.value;const P=x.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&Ux(P)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&Kx(P))&&Hx(P,t,String(e));const E=l0[P[0]];return E(i,P,o.localize,c)}).join("")}function Jx(e){const t=e.match(Qx);return t?t[1].replace(Xx,"'"):e}function e9(e){const t=ye(e),r=t.getFullYear(),n=t.getMonth(),o=it(e,0);return o.setFullYear(r,n+1,0),o.setHours(0,0,0,0),o.getDate()}function t9(e){return Math.trunc(+ye(e)/1e3)}function r9(e){const t=ye(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(0,0,0,0),t}function n9(e,t){return sx(r9(e),Ze(e),t)+1}function El(e,t){const r=ye(e),n=ye(t);return r.getTime()>n.getTime()}function p0(e,t){const r=ye(e),n=ye(t);return+r<+n}function Sl(e,t){const r=ye(e),n=ye(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}function o9(e,t){const r=ye(e),n=ye(t);return r.getFullYear()===n.getFullYear()}function $l(e,t){return He(e,-t)}function Dl(e,t){const r=ye(e),n=r.getFullYear(),o=r.getDate(),a=it(e,0);a.setFullYear(n,t,15),a.setHours(0,0,0,0);const s=e9(a);return r.setMonth(t,Math.min(o,s)),r}function h0(e,t){const r=ye(e);return isNaN(+r)?it(e,NaN):(r.setFullYear(t),r)}var ae=function(){return ae=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},ae.apply(this,arguments)};function a9(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function m0(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Il={exports:{}},so={};/**
|
|
76
76
|
* @license React
|
|
77
77
|
* react-jsx-runtime.development.js
|
|
78
78
|
*
|
|
@@ -80,11 +80,11 @@ Check the top-level render call using <`+_+">.")}return k}}function wo(v,k){{if(
|
|
|
80
80
|
*
|
|
81
81
|
* This source code is licensed under the MIT license found in the
|
|
82
82
|
* LICENSE file in the root directory of this source tree.
|
|
83
|
-
*/var
|
|
83
|
+
*/var g0;function s9(){return g0||(g0=1,process.env.NODE_ENV!=="production"&&function(){var e=f,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m=Symbol.iterator,y="@@iterator";function b(v){if(v===null||typeof v!="object")return null;var k=m&&v[m]||v[y];return typeof k=="function"?k:null}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(v){{for(var k=arguments.length,_=new Array(k>1?k-1:0),W=1;W<k;W++)_[W-1]=arguments[W];P("error",v,_)}}function P(v,k,_){{var W=C.ReactDebugCurrentFrame,Z=W.getStackAddendum();Z!==""&&(k+="%s",_=_.concat([Z]));var J=_.map(function(q){return String(q)});J.unshift("Warning: "+k),Function.prototype.apply.call(console[v],console,J)}}var E=!1,S=!1,N=!1,j=!1,g=!1,A;A=Symbol.for("react.module.reference");function I(v){return!!(typeof v=="string"||typeof v=="function"||v===n||v===a||g||v===o||v===c||v===u||j||v===p||E||S||N||typeof v=="object"&&v!==null&&(v.$$typeof===h||v.$$typeof===d||v.$$typeof===s||v.$$typeof===i||v.$$typeof===l||v.$$typeof===A||v.getModuleId!==void 0))}function T(v,k,_){var W=v.displayName;if(W)return W;var Z=k.displayName||k.name||"";return Z!==""?_+"("+Z+")":_}function D(v){return v.displayName||"Context"}function w(v){if(v==null)return null;if(typeof v.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof v=="function")return v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof v=="object")switch(v.$$typeof){case i:var k=v;return D(k)+".Consumer";case s:var _=v;return D(_._context)+".Provider";case l:return T(v,v.render,"ForwardRef");case d:var W=v.displayName||null;return W!==null?W:w(v.type)||"Memo";case h:{var Z=v,J=Z._payload,q=Z._init;try{return w(q(J))}catch{return null}}}return null}var M=Object.assign,O=0,F,$,V,Y,K,R,re;function H(){}H.__reactDisabledLog=!0;function ie(){{if(O===0){F=console.log,$=console.info,V=console.warn,Y=console.error,K=console.group,R=console.groupCollapsed,re=console.groupEnd;var v={configurable:!0,enumerable:!0,value:H,writable:!0};Object.defineProperties(console,{info:v,log:v,warn:v,error:v,group:v,groupCollapsed:v,groupEnd:v})}O++}}function ee(){{if(O--,O===0){var v={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},v,{value:F}),info:M({},v,{value:$}),warn:M({},v,{value:V}),error:M({},v,{value:Y}),group:M({},v,{value:K}),groupCollapsed:M({},v,{value:R}),groupEnd:M({},v,{value:re})})}O<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var te=C.ReactCurrentDispatcher,ve;function be(v,k,_){{if(ve===void 0)try{throw Error()}catch(Z){var W=Z.stack.trim().match(/\n( *(at )?)/);ve=W&&W[1]||""}return`
|
|
84
84
|
`+ve+v}}var fe=!1,de;{var pe=typeof WeakMap=="function"?WeakMap:Map;de=new pe}function Te(v,k){if(!v||fe)return"";{var _=de.get(v);if(_!==void 0)return _}var W;fe=!0;var Z=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var J;J=te.current,te.current=null,ie();try{if(k){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(ze){W=ze}Reflect.construct(v,[],q)}else{try{q.call()}catch(ze){W=ze}v.call(q.prototype)}}else{try{throw Error()}catch(ze){W=ze}v()}}catch(ze){if(ze&&W&&typeof ze.stack=="string"){for(var G=ze.stack.split(`
|
|
85
85
|
`),we=W.stack.split(`
|
|
86
86
|
`),le=G.length-1,ue=we.length-1;le>=1&&ue>=0&&G[le]!==we[ue];)ue--;for(;le>=1&&ue>=0;le--,ue--)if(G[le]!==we[ue]){if(le!==1||ue!==1)do if(le--,ue--,ue<0||G[le]!==we[ue]){var ke=`
|
|
87
|
-
`+G[le].replace(" at new "," at ");return v.displayName&&ke.includes("<anonymous>")&&(ke=ke.replace("<anonymous>",v.displayName)),typeof v=="function"&&de.set(v,ke),ke}while(le>=1&&ue>=0);break}}}finally{fe=!1,te.current=J,ee(),Error.prepareStackTrace=Z}var ut=v?v.displayName||v.name:"",Mo=ut?be(ut):"";return typeof v=="function"&&de.set(v,Mo),Mo}function Ee(v,k,_){return Te(v,!1)}function oe(v){var k=v.prototype;return!!(k&&k.isReactComponent)}function X(v,k,_){if(v==null)return"";if(typeof v=="function")return Te(v,oe(v));if(typeof v=="string")return be(v);switch(v){case c:return be("Suspense");case u:return be("SuspenseList")}if(typeof v=="object")switch(v.$$typeof){case l:return Ee(v.render);case d:return X(v.type,k,_);case h:{var W=v,Z=W._payload,J=W._init;try{return X(J(Z),k,_)}catch{}}}return""}var Oe=Object.prototype.hasOwnProperty,_e={},Fe=C.ReactDebugCurrentFrame;function De(v){if(v){var k=v._owner,_=X(v.type,v._source,k?k.type:null);Fe.setExtraStackFrame(_)}else Fe.setExtraStackFrame(null)}function It(v,k,_,W,Z){{var J=Function.call.bind(Oe);for(var q in v)if(J(v,q)){var G=void 0;try{if(typeof v[q]!="function"){var we=Error((W||"React class")+": "+_+" type `"+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof v[q]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw we.name="Invariant Violation",we}G=v[q](k,q,W,_,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(le){G=le}G&&!(G instanceof Error)&&(De(Z),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",W||"React class",_,q,typeof G),De(null)),G instanceof Error&&!(G.message in _e)&&(_e[G.message]=!0,De(Z),x("Failed %s type: %s",_,G.message),De(null))}}}var
|
|
87
|
+
`+G[le].replace(" at new "," at ");return v.displayName&&ke.includes("<anonymous>")&&(ke=ke.replace("<anonymous>",v.displayName)),typeof v=="function"&&de.set(v,ke),ke}while(le>=1&&ue>=0);break}}}finally{fe=!1,te.current=J,ee(),Error.prepareStackTrace=Z}var ut=v?v.displayName||v.name:"",Mo=ut?be(ut):"";return typeof v=="function"&&de.set(v,Mo),Mo}function Ee(v,k,_){return Te(v,!1)}function oe(v){var k=v.prototype;return!!(k&&k.isReactComponent)}function X(v,k,_){if(v==null)return"";if(typeof v=="function")return Te(v,oe(v));if(typeof v=="string")return be(v);switch(v){case c:return be("Suspense");case u:return be("SuspenseList")}if(typeof v=="object")switch(v.$$typeof){case l:return Ee(v.render);case d:return X(v.type,k,_);case h:{var W=v,Z=W._payload,J=W._init;try{return X(J(Z),k,_)}catch{}}}return""}var Oe=Object.prototype.hasOwnProperty,_e={},Fe=C.ReactDebugCurrentFrame;function De(v){if(v){var k=v._owner,_=X(v.type,v._source,k?k.type:null);Fe.setExtraStackFrame(_)}else Fe.setExtraStackFrame(null)}function It(v,k,_,W,Z){{var J=Function.call.bind(Oe);for(var q in v)if(J(v,q)){var G=void 0;try{if(typeof v[q]!="function"){var we=Error((W||"React class")+": "+_+" type `"+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof v[q]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw we.name="Invariant Violation",we}G=v[q](k,q,W,_,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(le){G=le}G&&!(G instanceof Error)&&(De(Z),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",W||"React class",_,q,typeof G),De(null)),G instanceof Error&&!(G.message in _e)&&(_e[G.message]=!0,De(Z),x("Failed %s type: %s",_,G.message),De(null))}}}var gt=Array.isArray;function Je(v){return gt(v)}function Ir(v){{var k=typeof Symbol=="function"&&Symbol.toStringTag,_=k&&v[Symbol.toStringTag]||v.constructor.name||"Object";return _}}function Ye(v){try{return Ge(v),!1}catch{return!0}}function Ge(v){return""+v}function kr(v){if(Ye(v))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ir(v)),Ge(v)}var xe=C.ReactCurrentOwner,uo={key:!0,ref:!0,__self:!0,__source:!0},Ar,Or,Ht;Ht={};function fo(v){if(Oe.call(v,"ref")){var k=Object.getOwnPropertyDescriptor(v,"ref").get;if(k&&k.isReactWarning)return!1}return v.ref!==void 0}function po(v){if(Oe.call(v,"key")){var k=Object.getOwnPropertyDescriptor(v,"key").get;if(k&&k.isReactWarning)return!1}return v.key!==void 0}function ho(v,k){if(typeof v.ref=="string"&&xe.current&&k&&xe.current.stateNode!==k){var _=w(xe.current.type);Ht[_]||(x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',w(xe.current.type),v.ref),Ht[_]=!0)}}function mo(v,k){{var _=function(){Ar||(Ar=!0,x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",k))};_.isReactWarning=!0,Object.defineProperty(v,"key",{get:_,configurable:!0})}}function go(v,k){{var _=function(){Or||(Or=!0,x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",k))};_.isReactWarning=!0,Object.defineProperty(v,"ref",{get:_,configurable:!0})}}var vo=function(v,k,_,W,Z,J,q){var G={$$typeof:t,type:v,key:k,ref:_,props:q,_owner:J};return G._store={},Object.defineProperty(G._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(G,"_self",{configurable:!1,enumerable:!1,writable:!1,value:W}),Object.defineProperty(G,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Z}),Object.freeze&&(Object.freeze(G.props),Object.freeze(G)),G};function ce(v,k,_,W,Z){{var J,q={},G=null,we=null;_!==void 0&&(kr(_),G=""+_),po(k)&&(kr(k.key),G=""+k.key),fo(k)&&(we=k.ref,ho(k,Z));for(J in k)Oe.call(k,J)&&!uo.hasOwnProperty(J)&&(q[J]=k[J]);if(v&&v.defaultProps){var le=v.defaultProps;for(J in le)q[J]===void 0&&(q[J]=le[J])}if(G||we){var ue=typeof v=="function"?v.displayName||v.name||"Unknown":v;G&&mo(q,ue),we&&go(q,ue)}return vo(v,G,we,Z,W,xe.current,q)}}var lt=C.ReactCurrentOwner,bo=C.ReactDebugCurrentFrame;function ct(v){if(v){var k=v._owner,_=X(v.type,v._source,k?k.type:null);bo.setExtraStackFrame(_)}else bo.setExtraStackFrame(null)}var Nr;Nr=!1;function Lr(v){return typeof v=="object"&&v!==null&&v.$$typeof===t}function yo(){{if(lt.current){var v=w(lt.current.type);if(v)return`
|
|
88
88
|
|
|
89
89
|
Check the render method of \``+v+"`."}return""}}function Bl(v){{if(v!==void 0){var k=v.fileName.replace(/^.*[\\\/]/,""),_=v.lineNumber;return`
|
|
90
90
|
|
|
@@ -98,4 +98,4 @@ Check the top-level render call using <`+_+">.")}return k}}function wo(v,k){{if(
|
|
|
98
98
|
*
|
|
99
99
|
* This source code is licensed under the MIT license found in the
|
|
100
100
|
* LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/var m0;function a9(){if(m0)return io;m0=1;var e=f,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(i,l,c){var u,d={},h=null,p=null;c!==void 0&&(h=""+c),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(p=l.ref);for(u in l)n.call(l,u)&&!a.hasOwnProperty(u)&&(d[u]=l[u]);if(i&&i.defaultProps)for(u in l=i.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:i,key:h,ref:p,props:d,_owner:o.current}}return io.Fragment=r,io.jsx=s,io.jsxs=s,io}process.env.NODE_ENV==="production"?Il.exports=a9():Il.exports=o9();var z=Il.exports;function lo(e){return e.mode==="multiple"}function co(e){return e.mode==="range"}function Xa(e){return e.mode==="single"}var s9={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function i9(e,t){return Kt(e,"LLLL y",t)}function l9(e,t){return Kt(e,"d",t)}function c9(e,t){return Kt(e,"LLLL",t)}function u9(e){return"".concat(e)}function d9(e,t){return Kt(e,"cccccc",t)}function f9(e,t){return Kt(e,"yyyy",t)}var p9=Object.freeze({__proto__:null,formatCaption:i9,formatDay:l9,formatMonthCaption:c9,formatWeekNumber:u9,formatWeekdayName:d9,formatYearCaption:f9}),h9=function(e,t,r){return Kt(e,"do MMMM (EEEE)",r)},m9=function(){return"Month: "},g9=function(){return"Go to next month"},v9=function(){return"Go to previous month"},b9=function(e,t){return Kt(e,"cccc",t)},y9=function(e){return"Week n. ".concat(e)},x9=function(){return"Year: "},w9=Object.freeze({__proto__:null,labelDay:h9,labelMonthDropdown:m9,labelNext:g9,labelPrevious:v9,labelWeekNumber:y9,labelWeekday:b9,labelYearDropdown:x9});function C9(){var e="buttons",t=s9,r=r0,n={},o={},a=1,s={},i=new Date;return{captionLayout:e,classNames:t,formatters:p9,labels:w9,locale:r,modifiersClassNames:n,modifiers:o,numberOfMonths:a,styles:s,today:i,mode:"default"}}function P9(e){var t=e.fromYear,r=e.toYear,n=e.fromMonth,o=e.toMonth,a=e.fromDate,s=e.toDate;return n?a=Ze(n):t&&(a=new Date(t,0,1)),o?s=Pl(o):r&&(s=new Date(r,11,31)),{fromDate:a?pn(a):void 0,toDate:s?pn(s):void 0}}var g0=f.createContext(void 0);function M9(e){var t,r=e.initialProps,n=C9(),o=P9(r),a=o.fromDate,s=o.toDate,i=(t=r.captionLayout)!==null&&t!==void 0?t:n.captionLayout;i!=="buttons"&&(!a||!s)&&(i="buttons");var l;(Xa(r)||lo(r)||co(r))&&(l=r.onSelect);var c=ae(ae(ae({},n),r),{captionLayout:i,classNames:ae(ae({},n.classNames),r.classNames),components:ae({},r.components),formatters:ae(ae({},n.formatters),r.formatters),fromDate:a,labels:ae(ae({},n.labels),r.labels),mode:r.mode||n.mode,modifiers:ae(ae({},n.modifiers),r.modifiers),modifiersClassNames:ae(ae({},n.modifiersClassNames),r.modifiersClassNames),onSelect:l,styles:ae(ae({},n.styles),r.styles),toDate:s});return z.jsx(g0.Provider,{value:c,children:e.children})}function $e(){var e=f.useContext(g0);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function v0(e){var t=$e(),r=t.locale,n=t.classNames,o=t.styles,a=t.formatters.formatCaption;return z.jsx("div",{className:n.caption_label,style:o.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:a(e.displayMonth,{locale:r})})}function T9(e){return z.jsx("svg",ae({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:z.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function b0(e){var t,r,n=e.onChange,o=e.value,a=e.children,s=e.caption,i=e.className,l=e.style,c=$e(),u=(r=(t=c.components)===null||t===void 0?void 0:t.IconDropdown)!==null&&r!==void 0?r:T9;return z.jsxs("div",{className:i,style:l,children:[z.jsx("span",{className:c.classNames.vhidden,children:e["aria-label"]}),z.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:c.classNames.dropdown,style:c.styles.dropdown,value:o,onChange:n,children:a}),z.jsxs("div",{className:c.classNames.caption_label,style:c.styles.caption_label,"aria-hidden":"true",children:[s,z.jsx(u,{className:c.classNames.dropdown_icon,style:c.styles.dropdown_icon})]})]})}function E9(e){var t,r=$e(),n=r.fromDate,o=r.toDate,a=r.styles,s=r.locale,i=r.formatters.formatMonthCaption,l=r.classNames,c=r.components,u=r.labels.labelMonthDropdown;if(!n)return z.jsx(z.Fragment,{});if(!o)return z.jsx(z.Fragment,{});var d=[];if(r9(n,o))for(var h=Ze(n),p=n.getMonth();p<=o.getMonth();p++)d.push(Dl(h,p));else for(var h=Ze(new Date),p=0;p<=11;p++)d.push(Dl(h,p));var m=function(b){var C=Number(b.target.value),x=Dl(Ze(e.displayMonth),C);e.onChange(x)},y=(t=c==null?void 0:c.Dropdown)!==null&&t!==void 0?t:b0;return z.jsx(y,{name:"months","aria-label":u(),className:l.dropdown_month,style:a.dropdown_month,onChange:m,value:e.displayMonth.getMonth(),caption:i(e.displayMonth,{locale:s}),children:d.map(function(b){return z.jsx("option",{value:b.getMonth(),children:i(b,{locale:s})},b.getMonth())})})}function S9(e){var t,r=e.displayMonth,n=$e(),o=n.fromDate,a=n.toDate,s=n.locale,i=n.styles,l=n.classNames,c=n.components,u=n.formatters.formatYearCaption,d=n.labels.labelYearDropdown,h=[];if(!o)return z.jsx(z.Fragment,{});if(!a)return z.jsx(z.Fragment,{});for(var p=o.getFullYear(),m=a.getFullYear(),y=p;y<=m;y++)h.push(f0(e0(new Date),y));var b=function(x){var P=f0(Ze(r),Number(x.target.value));e.onChange(P)},C=(t=c==null?void 0:c.Dropdown)!==null&&t!==void 0?t:b0;return z.jsx(C,{name:"years","aria-label":d(),className:l.dropdown_year,style:i.dropdown_year,onChange:b,value:r.getFullYear(),caption:u(r,{locale:s}),children:h.map(function(x){return z.jsx("option",{value:x.getFullYear(),children:u(x,{locale:s})},x.getFullYear())})})}function $9(e,t){var r=f.useState(e),n=r[0],o=r[1],a=t===void 0?n:t;return[a,o]}function D9(e){var t=e.month,r=e.defaultMonth,n=e.today,o=t||r||n||new Date,a=e.toDate,s=e.fromDate,i=e.numberOfMonths,l=i===void 0?1:i;if(a&&no(a,o)<0){var c=-1*(l-1);o=xt(a,c)}return s&&no(o,s)<0&&(o=s),Ze(o)}function I9(){var e=$e(),t=D9(e),r=$9(t,e.month),n=r[0],o=r[1],a=function(s){var i;if(!e.disableNavigation){var l=Ze(s);o(l),(i=e.onMonthChange)===null||i===void 0||i.call(e,l)}};return[n,a]}function k9(e,t){for(var r=t.reverseMonths,n=t.numberOfMonths,o=Ze(e),a=Ze(xt(o,n)),s=no(a,o),i=[],l=0;l<s;l++){var c=xt(o,l);i.push(c)}return r&&(i=i.reverse()),i}function A9(e,t){if(!t.disableNavigation){var r=t.toDate,n=t.pagedNavigation,o=t.numberOfMonths,a=o===void 0?1:o,s=n?a:1,i=Ze(e);if(!r)return xt(i,s);var l=no(r,e);if(!(l<a))return xt(i,s)}}function O9(e,t){if(!t.disableNavigation){var r=t.fromDate,n=t.pagedNavigation,o=t.numberOfMonths,a=o===void 0?1:o,s=n?a:1,i=Ze(e);if(!r)return xt(i,-s);var l=no(i,r);if(!(l<=0))return xt(i,-s)}}var y0=f.createContext(void 0);function N9(e){var t=$e(),r=I9(),n=r[0],o=r[1],a=k9(n,t),s=A9(n,t),i=O9(n,t),l=function(d){return a.some(function(h){return Sl(d,h)})},c=function(d,h){l(d)||(h&&d0(d,h)?o(xt(d,1+t.numberOfMonths*-1)):o(d))},u={currentMonth:n,displayMonths:a,goToMonth:o,goToDate:c,previousMonth:i,nextMonth:s,isDateDisplayed:l};return z.jsx(y0.Provider,{value:u,children:e.children})}function mn(){var e=f.useContext(y0);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function x0(e){var t,r=$e(),n=r.classNames,o=r.styles,a=r.components,s=mn().goToMonth,i=function(u){s(xt(u,e.displayIndex?-e.displayIndex:0))},l=(t=a==null?void 0:a.CaptionLabel)!==null&&t!==void 0?t:v0,c=z.jsx(l,{id:e.id,displayMonth:e.displayMonth});return z.jsxs("div",{className:n.caption_dropdowns,style:o.caption_dropdowns,children:[z.jsx("div",{className:n.vhidden,children:c}),z.jsx(E9,{onChange:i,displayMonth:e.displayMonth}),z.jsx(S9,{onChange:i,displayMonth:e.displayMonth})]})}function L9(e){return z.jsx("svg",ae({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:z.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function j9(e){return z.jsx("svg",ae({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:z.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var Za=f.forwardRef(function(e,t){var r=$e(),n=r.classNames,o=r.styles,a=[n.button_reset,n.button];e.className&&a.push(e.className);var s=a.join(" "),i=ae(ae({},o.button_reset),o.button);return e.style&&Object.assign(i,e.style),z.jsx("button",ae({},e,{ref:t,type:"button",className:s,style:i}))});function _9(e){var t,r,n=$e(),o=n.dir,a=n.locale,s=n.classNames,i=n.styles,l=n.labels,c=l.labelPrevious,u=l.labelNext,d=n.components;if(!e.nextMonth&&!e.previousMonth)return z.jsx(z.Fragment,{});var h=c(e.previousMonth,{locale:a}),p=[s.nav_button,s.nav_button_previous].join(" "),m=u(e.nextMonth,{locale:a}),y=[s.nav_button,s.nav_button_next].join(" "),b=(t=d==null?void 0:d.IconRight)!==null&&t!==void 0?t:j9,C=(r=d==null?void 0:d.IconLeft)!==null&&r!==void 0?r:L9;return z.jsxs("div",{className:s.nav,style:i.nav,children:[!e.hidePrevious&&z.jsx(Za,{name:"previous-month","aria-label":h,className:p,style:i.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:o==="rtl"?z.jsx(b,{className:s.nav_icon,style:i.nav_icon}):z.jsx(C,{className:s.nav_icon,style:i.nav_icon})}),!e.hideNext&&z.jsx(Za,{name:"next-month","aria-label":m,className:y,style:i.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:o==="rtl"?z.jsx(C,{className:s.nav_icon,style:i.nav_icon}):z.jsx(b,{className:s.nav_icon,style:i.nav_icon})})]})}function w0(e){var t=$e().numberOfMonths,r=mn(),n=r.previousMonth,o=r.nextMonth,a=r.goToMonth,s=r.displayMonths,i=s.findIndex(function(m){return Sl(e.displayMonth,m)}),l=i===0,c=i===s.length-1,u=t>1&&(l||!c),d=t>1&&(c||!l),h=function(){n&&a(n)},p=function(){o&&a(o)};return z.jsx(_9,{displayMonth:e.displayMonth,hideNext:u,hidePrevious:d,nextMonth:o,previousMonth:n,onPreviousClick:h,onNextClick:p})}function F9(e){var t,r=$e(),n=r.classNames,o=r.disableNavigation,a=r.styles,s=r.captionLayout,i=r.components,l=(t=i==null?void 0:i.CaptionLabel)!==null&&t!==void 0?t:v0,c;return o?c=z.jsx(l,{id:e.id,displayMonth:e.displayMonth}):s==="dropdown"?c=z.jsx(x0,{displayMonth:e.displayMonth,id:e.id}):s==="dropdown-buttons"?c=z.jsxs(z.Fragment,{children:[z.jsx(x0,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),z.jsx(w0,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):c=z.jsxs(z.Fragment,{children:[z.jsx(l,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),z.jsx(w0,{displayMonth:e.displayMonth,id:e.id})]}),z.jsx("div",{className:n.caption,style:a.caption,children:c})}function V9(e){var t=$e(),r=t.footer,n=t.styles,o=t.classNames.tfoot;return r?z.jsx("tfoot",{className:o,style:n.tfoot,children:z.jsx("tr",{children:z.jsx("td",{colSpan:8,children:r})})}):z.jsx(z.Fragment,{})}function z9(e,t,r){for(var n=r?$r(new Date):$t(new Date,{locale:e,weekStartsOn:t}),o=[],a=0;a<7;a++){var s=He(n,a);o.push(s)}return o}function W9(){var e=$e(),t=e.classNames,r=e.styles,n=e.showWeekNumber,o=e.locale,a=e.weekStartsOn,s=e.ISOWeek,i=e.formatters.formatWeekdayName,l=e.labels.labelWeekday,c=z9(o,a,s);return z.jsxs("tr",{style:r.head_row,className:t.head_row,children:[n&&z.jsx("td",{style:r.head_cell,className:t.head_cell}),c.map(function(u,d){return z.jsx("th",{scope:"col",className:t.head_cell,style:r.head_cell,"aria-label":l(u,{locale:o}),children:i(u,{locale:o})},d)})]})}function B9(){var e,t=$e(),r=t.classNames,n=t.styles,o=t.components,a=(e=o==null?void 0:o.HeadRow)!==null&&e!==void 0?e:W9;return z.jsx("thead",{style:n.head,className:r.head,children:z.jsx(a,{})})}function R9(e){var t=$e(),r=t.locale,n=t.formatters.formatDay;return z.jsx(z.Fragment,{children:n(e.date,{locale:r})})}var kl=f.createContext(void 0);function K9(e){if(!lo(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return z.jsx(kl.Provider,{value:t,children:e.children})}return z.jsx(U9,{initialProps:e.initialProps,children:e.children})}function U9(e){var t=e.initialProps,r=e.children,n=t.selected,o=t.min,a=t.max,s=function(c,u,d){var h,p;(h=t.onDayClick)===null||h===void 0||h.call(t,c,u,d);var m=!!(u.selected&&o&&(n==null?void 0:n.length)===o);if(!m){var y=!!(!u.selected&&a&&(n==null?void 0:n.length)===a);if(!y){var b=n?p0([],n,!0):[];if(u.selected){var C=b.findIndex(function(x){return Xe(c,x)});b.splice(C,1)}else b.push(c);(p=t.onSelect)===null||p===void 0||p.call(t,b,c,u,d)}}},i={disabled:[]};n&&i.disabled.push(function(c){var u=a&&n.length>a-1,d=n.some(function(h){return Xe(h,c)});return!!(u&&!d)});var l={selected:n,onDayClick:s,modifiers:i};return z.jsx(kl.Provider,{value:l,children:r})}function Al(){var e=f.useContext(kl);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function H9(e,t){var r=t||{},n=r.from,o=r.to;return n&&o?Xe(o,e)&&Xe(n,e)?void 0:Xe(o,e)?{from:o,to:void 0}:Xe(n,e)?void 0:El(n,e)?{from:e,to:o}:{from:n,to:e}:o?El(e,o)?{from:o,to:e}:{from:e,to:o}:n?d0(e,n)?{from:e,to:n}:{from:n,to:e}:{from:e,to:void 0}}var Ol=f.createContext(void 0);function Y9(e){if(!co(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return z.jsx(Ol.Provider,{value:t,children:e.children})}return z.jsx(G9,{initialProps:e.initialProps,children:e.children})}function G9(e){var t=e.initialProps,r=e.children,n=t.selected,o=n||{},a=o.from,s=o.to,i=t.min,l=t.max,c=function(p,m,y){var b,C;(b=t.onDayClick)===null||b===void 0||b.call(t,p,m,y);var x=H9(p,n);(C=t.onSelect)===null||C===void 0||C.call(t,x,p,m,y)},u={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(u.range_start=[a],s?(u.range_end=[s],Xe(a,s)||(u.range_middle=[{after:a,before:s}])):u.range_end=[a]):s&&(u.range_start=[s],u.range_end=[s]),i&&(a&&!s&&u.disabled.push({after:$l(a,i-1),before:He(a,i-1)}),a&&s&&u.disabled.push({after:a,before:He(a,i-1)}),!a&&s&&u.disabled.push({after:$l(s,i-1),before:He(s,i-1)})),l){if(a&&!s&&(u.disabled.push({before:He(a,-l+1)}),u.disabled.push({after:He(a,l-1)})),a&&s){var d=Dt(s,a)+1,h=l-d;u.disabled.push({before:$l(a,h)}),u.disabled.push({after:He(s,h)})}!a&&s&&(u.disabled.push({before:He(s,-l+1)}),u.disabled.push({after:He(s,l-1)}))}return z.jsx(Ol.Provider,{value:{selected:n,onDayClick:c,modifiers:u},children:r})}function Nl(){var e=f.useContext(Ol);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function Ja(e){return Array.isArray(e)?p0([],e,!0):e!==void 0?[e]:[]}function q9(e){var t={};return Object.entries(e).forEach(function(r){var n=r[0],o=r[1];t[n]=Ja(o)}),t}var wt;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(wt||(wt={}));var Q9=wt.Selected,Ut=wt.Disabled,X9=wt.Hidden,Z9=wt.Today,Ll=wt.RangeEnd,jl=wt.RangeMiddle,_l=wt.RangeStart,J9=wt.Outside;function e8(e,t,r){var n,o=(n={},n[Q9]=Ja(e.selected),n[Ut]=Ja(e.disabled),n[X9]=Ja(e.hidden),n[Z9]=[e.today],n[Ll]=[],n[jl]=[],n[_l]=[],n[J9]=[],n);return e.fromDate&&o[Ut].push({before:e.fromDate}),e.toDate&&o[Ut].push({after:e.toDate}),lo(e)?o[Ut]=o[Ut].concat(t.modifiers[Ut]):co(e)&&(o[Ut]=o[Ut].concat(r.modifiers[Ut]),o[_l]=r.modifiers[_l],o[jl]=r.modifiers[jl],o[Ll]=r.modifiers[Ll]),o}var C0=f.createContext(void 0);function t8(e){var t=$e(),r=Al(),n=Nl(),o=e8(t,r,n),a=q9(t.modifiers),s=ae(ae({},o),a);return z.jsx(C0.Provider,{value:s,children:e.children})}function P0(){var e=f.useContext(C0);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function r8(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function n8(e){return!!(e&&typeof e=="object"&&"from"in e)}function o8(e){return!!(e&&typeof e=="object"&&"after"in e)}function a8(e){return!!(e&&typeof e=="object"&&"before"in e)}function s8(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function i8(e,t){var r,n=t.from,o=t.to;if(n&&o){var a=Dt(o,n)<0;a&&(r=[o,n],n=r[0],o=r[1]);var s=Dt(e,n)>=0&&Dt(o,e)>=0;return s}return o?Xe(o,e):n?Xe(n,e):!1}function l8(e){return Cl(e)}function c8(e){return Array.isArray(e)&&e.every(Cl)}function u8(e,t){return t.some(function(r){if(typeof r=="boolean")return r;if(l8(r))return Xe(e,r);if(c8(r))return r.includes(e);if(n8(r))return i8(e,r);if(s8(r))return r.dayOfWeek.includes(e.getDay());if(r8(r)){var n=Dt(r.before,e),o=Dt(r.after,e),a=n>0,s=o<0,i=El(r.before,r.after);return i?s&&a:a||s}return o8(r)?Dt(e,r.after)>0:a8(r)?Dt(r.before,e)>0:typeof r=="function"?r(e):!1})}function Fl(e,t,r){var n=Object.keys(t).reduce(function(a,s){var i=t[s];return u8(e,i)&&a.push(s),a},[]),o={};return n.forEach(function(a){return o[a]=!0}),r&&!Sl(e,r)&&(o.outside=!0),o}function d8(e,t){for(var r=Ze(e[0]),n=Pl(e[e.length-1]),o,a,s=r;s<=n;){var i=Fl(s,t),l=!i.disabled&&!i.hidden;if(!l){s=He(s,1);continue}if(i.selected)return s;i.today&&!a&&(a=s),o||(o=s),s=He(s,1)}return a||o}var f8=365;function M0(e,t){var r=t.moveBy,n=t.direction,o=t.context,a=t.modifiers,s=t.retry,i=s===void 0?{count:0,lastFocused:e}:s,l=o.weekStartsOn,c=o.fromDate,u=o.toDate,d=o.locale,h={day:He,week:wl,month:xt,year:ex,startOfWeek:function(b){return o.ISOWeek?$r(b):$t(b,{locale:d,weekStartsOn:l})},endOfWeek:function(b){return o.ISOWeek?t0(b):Ml(b,{locale:d,weekStartsOn:l})}},p=h[r](e,n==="after"?1:-1);n==="before"&&c?p=tx([c,p]):n==="after"&&u&&(p=rx([u,p]));var m=!0;if(a){var y=Fl(p,a);m=!y.disabled&&!y.hidden}return m?p:i.count>f8?i.lastFocused:M0(p,{moveBy:r,direction:n,context:o,modifiers:a,retry:ae(ae({},i),{count:i.count+1})})}var T0=f.createContext(void 0);function p8(e){var t=mn(),r=P0(),n=f.useState(),o=n[0],a=n[1],s=f.useState(),i=s[0],l=s[1],c=d8(t.displayMonths,r),u=o??(i&&t.isDateDisplayed(i))?i:c,d=function(){l(o),a(void 0)},h=function(b){a(b)},p=$e(),m=function(b,C){if(o){var x=M0(o,{moveBy:b,direction:C,context:p,modifiers:r});Xe(o,x)||(t.goToDate(x,o),h(x))}},y={focusedDay:o,focusTarget:u,blur:d,focus:h,focusDayAfter:function(){return m("day","after")},focusDayBefore:function(){return m("day","before")},focusWeekAfter:function(){return m("week","after")},focusWeekBefore:function(){return m("week","before")},focusMonthBefore:function(){return m("month","before")},focusMonthAfter:function(){return m("month","after")},focusYearBefore:function(){return m("year","before")},focusYearAfter:function(){return m("year","after")},focusStartOfWeek:function(){return m("startOfWeek","before")},focusEndOfWeek:function(){return m("endOfWeek","after")}};return z.jsx(T0.Provider,{value:y,children:e.children})}function Vl(){var e=f.useContext(T0);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function h8(e,t){var r=P0(),n=Fl(e,r,t);return n}var zl=f.createContext(void 0);function m8(e){if(!Xa(e.initialProps)){var t={selected:void 0};return z.jsx(zl.Provider,{value:t,children:e.children})}return z.jsx(g8,{initialProps:e.initialProps,children:e.children})}function g8(e){var t=e.initialProps,r=e.children,n=function(a,s,i){var l,c,u;if((l=t.onDayClick)===null||l===void 0||l.call(t,a,s,i),s.selected&&!t.required){(c=t.onSelect)===null||c===void 0||c.call(t,void 0,a,s,i);return}(u=t.onSelect)===null||u===void 0||u.call(t,a,a,s,i)},o={selected:t.selected,onDayClick:n};return z.jsx(zl.Provider,{value:o,children:r})}function E0(){var e=f.useContext(zl);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function v8(e,t){var r=$e(),n=E0(),o=Al(),a=Nl(),s=Vl(),i=s.focusDayAfter,l=s.focusDayBefore,c=s.focusWeekAfter,u=s.focusWeekBefore,d=s.blur,h=s.focus,p=s.focusMonthBefore,m=s.focusMonthAfter,y=s.focusYearBefore,b=s.focusYearAfter,C=s.focusStartOfWeek,x=s.focusEndOfWeek,P=function($){var V,Y,K,R;Xa(r)?(V=n.onDayClick)===null||V===void 0||V.call(n,e,t,$):lo(r)?(Y=o.onDayClick)===null||Y===void 0||Y.call(o,e,t,$):co(r)?(K=a.onDayClick)===null||K===void 0||K.call(a,e,t,$):(R=r.onDayClick)===null||R===void 0||R.call(r,e,t,$)},E=function($){var V;h(e),(V=r.onDayFocus)===null||V===void 0||V.call(r,e,t,$)},S=function($){var V;d(),(V=r.onDayBlur)===null||V===void 0||V.call(r,e,t,$)},N=function($){var V;(V=r.onDayMouseEnter)===null||V===void 0||V.call(r,e,t,$)},L=function($){var V;(V=r.onDayMouseLeave)===null||V===void 0||V.call(r,e,t,$)},g=function($){var V;(V=r.onDayPointerEnter)===null||V===void 0||V.call(r,e,t,$)},A=function($){var V;(V=r.onDayPointerLeave)===null||V===void 0||V.call(r,e,t,$)},I=function($){var V;(V=r.onDayTouchCancel)===null||V===void 0||V.call(r,e,t,$)},T=function($){var V;(V=r.onDayTouchEnd)===null||V===void 0||V.call(r,e,t,$)},D=function($){var V;(V=r.onDayTouchMove)===null||V===void 0||V.call(r,e,t,$)},w=function($){var V;(V=r.onDayTouchStart)===null||V===void 0||V.call(r,e,t,$)},M=function($){var V;(V=r.onDayKeyUp)===null||V===void 0||V.call(r,e,t,$)},O=function($){var V;switch($.key){case"ArrowLeft":$.preventDefault(),$.stopPropagation(),r.dir==="rtl"?i():l();break;case"ArrowRight":$.preventDefault(),$.stopPropagation(),r.dir==="rtl"?l():i();break;case"ArrowDown":$.preventDefault(),$.stopPropagation(),c();break;case"ArrowUp":$.preventDefault(),$.stopPropagation(),u();break;case"PageUp":$.preventDefault(),$.stopPropagation(),$.shiftKey?y():p();break;case"PageDown":$.preventDefault(),$.stopPropagation(),$.shiftKey?b():m();break;case"Home":$.preventDefault(),$.stopPropagation(),C();break;case"End":$.preventDefault(),$.stopPropagation(),x();break}(V=r.onDayKeyDown)===null||V===void 0||V.call(r,e,t,$)},F={onClick:P,onFocus:E,onBlur:S,onKeyDown:O,onKeyUp:M,onMouseEnter:N,onMouseLeave:L,onPointerEnter:g,onPointerLeave:A,onTouchCancel:I,onTouchEnd:T,onTouchMove:D,onTouchStart:w};return F}function b8(){var e=$e(),t=E0(),r=Al(),n=Nl(),o=Xa(e)?t.selected:lo(e)?r.selected:co(e)?n.selected:void 0;return o}function y8(e){return Object.values(wt).includes(e)}function x8(e,t){var r=[e.classNames.day];return Object.keys(t).forEach(function(n){var o=e.modifiersClassNames[n];if(o)r.push(o);else if(y8(n)){var a=e.classNames["day_".concat(n)];a&&r.push(a)}}),r}function w8(e,t){var r=ae({},e.styles.day);return Object.keys(t).forEach(function(n){var o;r=ae(ae({},r),(o=e.modifiersStyles)===null||o===void 0?void 0:o[n])}),r}function C8(e,t,r){var n,o,a,s=$e(),i=Vl(),l=h8(e,t),c=v8(e,l),u=b8(),d=!!(s.onDayClick||s.mode!=="default");f.useEffect(function(){var N;l.outside||i.focusedDay&&d&&Xe(i.focusedDay,e)&&((N=r.current)===null||N===void 0||N.focus())},[i.focusedDay,e,r,d,l.outside]);var h=x8(s,l).join(" "),p=w8(s,l),m=!!(l.outside&&!s.showOutsideDays||l.hidden),y=(a=(o=s.components)===null||o===void 0?void 0:o.DayContent)!==null&&a!==void 0?a:R9,b=z.jsx(y,{date:e,displayMonth:t,activeModifiers:l}),C={style:p,className:h,children:b,role:"gridcell"},x=i.focusTarget&&Xe(i.focusTarget,e)&&!l.outside,P=i.focusedDay&&Xe(i.focusedDay,e),E=ae(ae(ae({},C),(n={disabled:l.disabled,role:"gridcell"},n["aria-selected"]=l.selected,n.tabIndex=P||x?0:-1,n)),c),S={isButton:d,isHidden:m,activeModifiers:l,selectedDays:u,buttonProps:E,divProps:C};return S}function P8(e){var t=f.useRef(null),r=C8(e.date,e.displayMonth,t);return r.isHidden?z.jsx("div",{role:"gridcell"}):r.isButton?z.jsx(Za,ae({name:"day",ref:t},r.buttonProps)):z.jsx("div",ae({},r.divProps))}function M8(e){var t=e.number,r=e.dates,n=$e(),o=n.onWeekNumberClick,a=n.styles,s=n.classNames,i=n.locale,l=n.labels.labelWeekNumber,c=n.formatters.formatWeekNumber,u=c(Number(t),{locale:i});if(!o)return z.jsx("span",{className:s.weeknumber,style:a.weeknumber,children:u});var d=l(Number(t),{locale:i}),h=function(p){o(t,r,p)};return z.jsx(Za,{name:"week-number","aria-label":d,className:s.weeknumber,style:a.weeknumber,onClick:h,children:u})}function T8(e){var t,r,n=$e(),o=n.styles,a=n.classNames,s=n.showWeekNumber,i=n.components,l=(t=i==null?void 0:i.Day)!==null&&t!==void 0?t:P8,c=(r=i==null?void 0:i.WeekNumber)!==null&&r!==void 0?r:M8,u;return s&&(u=z.jsx("td",{className:a.cell,style:o.cell,children:z.jsx(c,{number:e.weekNumber,dates:e.dates})})),z.jsxs("tr",{className:a.row,style:o.row,children:[u,e.dates.map(function(d){return z.jsx("td",{className:a.cell,style:o.cell,role:"presentation",children:z.jsx(l,{displayMonth:e.displayMonth,date:d})},Jx(d))})]})}function S0(e,t,r){for(var n=r!=null&&r.ISOWeek?t0(t):Ml(t,r),o=r!=null&&r.ISOWeek?$r(e):$t(e,r),a=Dt(n,o),s=[],i=0;i<=a;i++)s.push(He(o,i));var l=s.reduce(function(c,u){var d=r!=null&&r.ISOWeek?n0(u):a0(u,r),h=c.find(function(p){return p.weekNumber===d});return h?(h.dates.push(u),c):(c.push({weekNumber:d,dates:[u]}),c)},[]);return l}function E8(e,t){var r=S0(Ze(e),Pl(e),t);if(t!=null&&t.useFixedWeeks){var n=t9(e,t);if(n<6){var o=r[r.length-1],a=o.dates[o.dates.length-1],s=wl(a,6-n),i=S0(wl(a,1),s,t);r.push.apply(r,i)}}return r}function S8(e){var t,r,n,o=$e(),a=o.locale,s=o.classNames,i=o.styles,l=o.hideHead,c=o.fixedWeeks,u=o.components,d=o.weekStartsOn,h=o.firstWeekContainsDate,p=o.ISOWeek,m=E8(e.displayMonth,{useFixedWeeks:!!c,ISOWeek:p,locale:a,weekStartsOn:d,firstWeekContainsDate:h}),y=(t=u==null?void 0:u.Head)!==null&&t!==void 0?t:B9,b=(r=u==null?void 0:u.Row)!==null&&r!==void 0?r:T8,C=(n=u==null?void 0:u.Footer)!==null&&n!==void 0?n:V9;return z.jsxs("table",{id:e.id,className:s.table,style:i.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!l&&z.jsx(y,{}),z.jsx("tbody",{className:s.tbody,style:i.tbody,children:m.map(function(x){return z.jsx(b,{displayMonth:e.displayMonth,dates:x.dates,weekNumber:x.weekNumber},x.weekNumber)})}),z.jsx(C,{displayMonth:e.displayMonth})]})}function $8(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var D8=$8()?f.useLayoutEffect:f.useEffect,Wl=!1,I8=0;function $0(){return"react-day-picker-".concat(++I8)}function k8(e){var t,r=e??(Wl?$0():null),n=f.useState(r),o=n[0],a=n[1];return D8(function(){o===null&&a($0())},[]),f.useEffect(function(){Wl===!1&&(Wl=!0)},[]),(t=e??o)!==null&&t!==void 0?t:void 0}function A8(e){var t,r,n=$e(),o=n.dir,a=n.classNames,s=n.styles,i=n.components,l=mn().displayMonths,c=k8(n.id?"".concat(n.id,"-").concat(e.displayIndex):void 0),u=n.id?"".concat(n.id,"-grid-").concat(e.displayIndex):void 0,d=[a.month],h=s.month,p=e.displayIndex===0,m=e.displayIndex===l.length-1,y=!p&&!m;o==="rtl"&&(t=[p,m],m=t[0],p=t[1]),p&&(d.push(a.caption_start),h=ae(ae({},h),s.caption_start)),m&&(d.push(a.caption_end),h=ae(ae({},h),s.caption_end)),y&&(d.push(a.caption_between),h=ae(ae({},h),s.caption_between));var b=(r=i==null?void 0:i.Caption)!==null&&r!==void 0?r:F9;return z.jsxs("div",{className:d.join(" "),style:h,children:[z.jsx(b,{id:c,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),z.jsx(S8,{id:u,"aria-labelledby":c,displayMonth:e.displayMonth})]},e.displayIndex)}function O8(e){var t=$e(),r=t.classNames,n=t.styles;return z.jsx("div",{className:r.months,style:n.months,children:e.children})}function N8(e){var t,r,n=e.initialProps,o=$e(),a=Vl(),s=mn(),i=f.useState(!1),l=i[0],c=i[1];f.useEffect(function(){o.initialFocus&&a.focusTarget&&(l||(a.focus(a.focusTarget),c(!0)))},[o.initialFocus,l,a.focus,a.focusTarget,a]);var u=[o.classNames.root,o.className];o.numberOfMonths>1&&u.push(o.classNames.multiple_months),o.showWeekNumber&&u.push(o.classNames.with_weeknumber);var d=ae(ae({},o.styles.root),o.style),h=Object.keys(n).filter(function(m){return m.startsWith("data-")}).reduce(function(m,y){var b;return ae(ae({},m),(b={},b[y]=n[y],b))},{}),p=(r=(t=n.components)===null||t===void 0?void 0:t.Months)!==null&&r!==void 0?r:O8;return z.jsx("div",ae({className:u.join(" "),style:d,dir:o.dir,id:o.id,nonce:n.nonce,title:n.title,lang:n.lang},h,{children:z.jsx(p,{children:s.displayMonths.map(function(m,y){return z.jsx(A8,{displayIndex:y,displayMonth:m},y)})})}))}function L8(e){var t=e.children,r=n9(e,["children"]);return z.jsx(M9,{initialProps:r,children:z.jsx(N9,{children:z.jsx(m8,{initialProps:r,children:z.jsx(K9,{initialProps:r,children:z.jsx(Y9,{initialProps:r,children:z.jsx(t8,{children:z.jsx(p8,{children:t})})})})})})})}function j8(e){return z.jsx(L8,ae({},e,{children:z.jsx(N8,{initialProps:e})}))}const mw="",gw="",_8=e=>{const{goToMonth:t,nextMonth:r,previousMonth:n}=mn();return j.jsxs("div",{className:"flex px-[10px] py-2",children:[j.jsx("button",{disabled:!n,onClick:()=>n&&t(n),children:j.jsx(et,{name:"chevron-left",className:"text-xs text-primary-grey-800"})}),j.jsx(Mc,{className:"flex flex-1 justify-center font-satoshi text-2xl font-medium text-primary-black-500",children:Kt(e.displayMonth,"MMM yyy")}),j.jsx("button",{disabled:!r,onClick:()=>r&&t(r),children:j.jsx(et,{name:"chevron-right",className:"text-xs text-primary-grey-800"})})]})},D0=({...e})=>j.jsx(j8,{disabled:t=>t>new Date||t<new Date("1900-01-01"),components:{Caption:_8},showOutsideDays:!0,...e}),F8=({label:e,initialDate:t,onSelect:r,dateFormat:n})=>{const[o,a]=f.useState(!1),[s,i]=f.useState(t),l=()=>{a(!0)},c=d=>{r&&r(d),i(d),u()},u=()=>{a(!1)};return j.jsx(Zh,{isOpen:o,align:"end",onInteractOutside:u,content:j.jsx(D0,{selected:s,onSelect:c,mode:"single"}),children:j.jsx("div",{children:j.jsx(kh,{value:s?Kt(s,n??"dd/MM/yyyy"):"",onClick:l,isDatePicker:!0,label:e,icon:"calendar"})})})},V8={white:"#ffffff",black:"#000000",primary:{green:{50:"#e9eceb",100:"#bac3c2",200:"#99a7a4",300:"#6b7e7b",400:"#4e6561",500:"#223f3a",600:"#1f3935",700:"#182d29",800:"#132320",900:"#0e1a18"},black:{50:"#e6e6e6",100:"#b0b0b0",200:"#8a8a8a",300:"#545454",400:"#333333",500:"#000000",600:"#000000",700:"#000000",800:"#000000",900:"#000000"},grey:{50:"##fefefe",100:"#fcfdfd",200:"#fafbfc",300:"#f8fafb",400:"#f7f9fa",500:"#f5f7f9",600:"#dfe1e3",700:"#aeafb1",800:"#878889",900:"#676869"},DEFAULT:"hsl(var(--primary))",foreground:"hsl(var(--primary-foreground))"},secondary:{green:{50:"#e6f7ee",100:"#b2e7c9",200:"#8cdbaf",300:"#58ca8a",400:"#38c074",500:"#06b051",600:"#05a04a",700:"#047d3a",800:"#03612d",900:"#034a22"},DEFAULT:"hsl(var(--secondary))",foreground:"hsl(var(--secondary-foreground))"},tertiary:{green:{50:"#ebfaf2",100:"#c2f0d8",200:"#a4e8c5",300:"#7adeaa",400:"#61d799",500:"#39cd80",600:"#34bb74",700:"#28925b",800:"#1f7146",900:"#185636"}},complementary:{violet:{50:"#f0ecf5",100:"#d1c3df",200:"#bba7d0",300:"#9d7ebb",400:"#8965ad",500:"#6c3f99",600:"#62398b",700:"#4d2d6d",800:"#3b2354",900:"#2d1a40"},blue:{50:"#e6f7f7",100:"#b1e6e6",200:"#8cdada",300:"#57c9c9",400:"#36bfbe",500:"#04afae",600:"#049f9e",700:"#037c7c",800:"#026060",900:"#024a49"},red:{50:"#faebea",100:"#f0c1be",200:"#e9a39f",300:"#df7973",400:"#d95f58",500:"#cf372e",600:"#bc322a",700:"#932721",800:"#721e19",900:"#571713"},orange:{50:"#fef3e9",100:"#fbdabb",200:"#f9c99a",300:"#f6b06c",400:"#f5a150",500:"#f28924",600:"#dc7d21",700:"#ac611a",800:"#854b14",900:"#663a0f"},yellow:{50:"#fdfaec",100:"#f9f0c4",200:"#f7e9a8",300:"#f3e080",400:"#f1d968",500:"#edd042",600:"#d8bd3c",700:"#a8942f",800:"#827224",900:"#64571c"}},globalfy:{primaryGreen:"#0B9F59",secondaryGreen:"#223F3A",tertiaryGreen:"#39CD80",white:"#FFFFFF",primaryGrey:"#F5F7F9",grey500:"#E6E6E6",grey600:"#D1D1D1",grey700:"#A3A3A3",grey900:"#616161",black:"#000000",violet500:"#6C3F99",violet50:"#F0ECF5",blue500:"#04AFAE",blue50:"#E6F7F7",red700:"#940800",red500:"#CF372E",red50:"#FFF3F2"},border:"hsl(var(--border))",input:"hsl(var(--input))",ring:"hsl(var(--ring))",background:"hsl(var(--background))",foreground:"hsl(var(--foreground))",destructive:{DEFAULT:"hsl(var(--destructive))",foreground:"hsl(var(--destructive-foreground))"},muted:{DEFAULT:"hsl(var(--muted))",foreground:"hsl(var(--muted-foreground))"},accent:{DEFAULT:"hsl(var(--accent))",foreground:"hsl(var(--accent-foreground))"},popover:{DEFAULT:"hsl(var(--popover))",foreground:"hsl(var(--popover-foreground))"},card:{DEFAULT:"hsl(var(--card))",foreground:"hsl(var(--card-foreground))"}};Pe.Avatar=Np,Pe.Button=Yi,Pe.Checkbox=L4,Pe.Chip=_4,Pe.DatePicker=D0,Pe.DatePickerInput=F8,Pe.FieldMessage=Dm,Pe.Flag=km,Pe.Icon=et,Pe.Input=kh,Pe.Logo=mm,Pe.Popover=Zh,Pe.RadioGroup=j4,Pe.SegmentedControl=V4,Pe.Snackbar=Lp,Pe.Switch=N4,Pe.Tabs=d7,Pe.Tooltip=N6,Pe.Typography=Mc,Pe.colors=V8,Pe.useSnackbar=G4,Object.defineProperty(Pe,Symbol.toStringTag,{value:"Module"})});
|
|
101
|
+
*/var v0;function i9(){if(v0)return io;v0=1;var e=f,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(i,l,c){var u,d={},h=null,p=null;c!==void 0&&(h=""+c),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(p=l.ref);for(u in l)n.call(l,u)&&!a.hasOwnProperty(u)&&(d[u]=l[u]);if(i&&i.defaultProps)for(u in l=i.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:i,key:h,ref:p,props:d,_owner:o.current}}return io.Fragment=r,io.jsx=s,io.jsxs=s,io}process.env.NODE_ENV==="production"?Il.exports=i9():Il.exports=s9();var z=Il.exports;function lo(e){return e.mode==="multiple"}function co(e){return e.mode==="range"}function Xa(e){return e.mode==="single"}var l9={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function c9(e,t){return Kt(e,"LLLL y",t)}function u9(e,t){return Kt(e,"d",t)}function d9(e,t){return Kt(e,"LLLL",t)}function f9(e){return"".concat(e)}function p9(e,t){return Kt(e,"cccccc",t)}function h9(e,t){return Kt(e,"yyyy",t)}var m9=Object.freeze({__proto__:null,formatCaption:c9,formatDay:u9,formatMonthCaption:d9,formatWeekNumber:f9,formatWeekdayName:p9,formatYearCaption:h9}),g9=function(e,t,r){return Kt(e,"do MMMM (EEEE)",r)},v9=function(){return"Month: "},b9=function(){return"Go to next month"},y9=function(){return"Go to previous month"},x9=function(e,t){return Kt(e,"cccc",t)},w9=function(e){return"Week n. ".concat(e)},C9=function(){return"Year: "},P9=Object.freeze({__proto__:null,labelDay:g9,labelMonthDropdown:v9,labelNext:b9,labelPrevious:y9,labelWeekNumber:w9,labelWeekday:x9,labelYearDropdown:C9});function M9(){var e="buttons",t=l9,r=o0,n={},o={},a=1,s={},i=new Date;return{captionLayout:e,classNames:t,formatters:m9,labels:P9,locale:r,modifiersClassNames:n,modifiers:o,numberOfMonths:a,styles:s,today:i,mode:"default"}}function T9(e){var t=e.fromYear,r=e.toYear,n=e.fromMonth,o=e.toMonth,a=e.fromDate,s=e.toDate;return n?a=Ze(n):t&&(a=new Date(t,0,1)),o?s=Pl(o):r&&(s=new Date(r,11,31)),{fromDate:a?pn(a):void 0,toDate:s?pn(s):void 0}}var b0=f.createContext(void 0);function E9(e){var t,r=e.initialProps,n=M9(),o=T9(r),a=o.fromDate,s=o.toDate,i=(t=r.captionLayout)!==null&&t!==void 0?t:n.captionLayout;i!=="buttons"&&(!a||!s)&&(i="buttons");var l;(Xa(r)||lo(r)||co(r))&&(l=r.onSelect);var c=ae(ae(ae({},n),r),{captionLayout:i,classNames:ae(ae({},n.classNames),r.classNames),components:ae({},r.components),formatters:ae(ae({},n.formatters),r.formatters),fromDate:a,labels:ae(ae({},n.labels),r.labels),mode:r.mode||n.mode,modifiers:ae(ae({},n.modifiers),r.modifiers),modifiersClassNames:ae(ae({},n.modifiersClassNames),r.modifiersClassNames),onSelect:l,styles:ae(ae({},n.styles),r.styles),toDate:s});return z.jsx(b0.Provider,{value:c,children:e.children})}function $e(){var e=f.useContext(b0);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function y0(e){var t=$e(),r=t.locale,n=t.classNames,o=t.styles,a=t.formatters.formatCaption;return z.jsx("div",{className:n.caption_label,style:o.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:a(e.displayMonth,{locale:r})})}function S9(e){return z.jsx("svg",ae({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:z.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function x0(e){var t,r,n=e.onChange,o=e.value,a=e.children,s=e.caption,i=e.className,l=e.style,c=$e(),u=(r=(t=c.components)===null||t===void 0?void 0:t.IconDropdown)!==null&&r!==void 0?r:S9;return z.jsxs("div",{className:i,style:l,children:[z.jsx("span",{className:c.classNames.vhidden,children:e["aria-label"]}),z.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:c.classNames.dropdown,style:c.styles.dropdown,value:o,onChange:n,children:a}),z.jsxs("div",{className:c.classNames.caption_label,style:c.styles.caption_label,"aria-hidden":"true",children:[s,z.jsx(u,{className:c.classNames.dropdown_icon,style:c.styles.dropdown_icon})]})]})}function $9(e){var t,r=$e(),n=r.fromDate,o=r.toDate,a=r.styles,s=r.locale,i=r.formatters.formatMonthCaption,l=r.classNames,c=r.components,u=r.labels.labelMonthDropdown;if(!n)return z.jsx(z.Fragment,{});if(!o)return z.jsx(z.Fragment,{});var d=[];if(o9(n,o))for(var h=Ze(n),p=n.getMonth();p<=o.getMonth();p++)d.push(Dl(h,p));else for(var h=Ze(new Date),p=0;p<=11;p++)d.push(Dl(h,p));var m=function(b){var C=Number(b.target.value),x=Dl(Ze(e.displayMonth),C);e.onChange(x)},y=(t=c==null?void 0:c.Dropdown)!==null&&t!==void 0?t:x0;return z.jsx(y,{name:"months","aria-label":u(),className:l.dropdown_month,style:a.dropdown_month,onChange:m,value:e.displayMonth.getMonth(),caption:i(e.displayMonth,{locale:s}),children:d.map(function(b){return z.jsx("option",{value:b.getMonth(),children:i(b,{locale:s})},b.getMonth())})})}function D9(e){var t,r=e.displayMonth,n=$e(),o=n.fromDate,a=n.toDate,s=n.locale,i=n.styles,l=n.classNames,c=n.components,u=n.formatters.formatYearCaption,d=n.labels.labelYearDropdown,h=[];if(!o)return z.jsx(z.Fragment,{});if(!a)return z.jsx(z.Fragment,{});for(var p=o.getFullYear(),m=a.getFullYear(),y=p;y<=m;y++)h.push(h0(r0(new Date),y));var b=function(x){var P=h0(Ze(r),Number(x.target.value));e.onChange(P)},C=(t=c==null?void 0:c.Dropdown)!==null&&t!==void 0?t:x0;return z.jsx(C,{name:"years","aria-label":d(),className:l.dropdown_year,style:i.dropdown_year,onChange:b,value:r.getFullYear(),caption:u(r,{locale:s}),children:h.map(function(x){return z.jsx("option",{value:x.getFullYear(),children:u(x,{locale:s})},x.getFullYear())})})}function I9(e,t){var r=f.useState(e),n=r[0],o=r[1],a=t===void 0?n:t;return[a,o]}function k9(e){var t=e.month,r=e.defaultMonth,n=e.today,o=t||r||n||new Date,a=e.toDate,s=e.fromDate,i=e.numberOfMonths,l=i===void 0?1:i;if(a&&no(a,o)<0){var c=-1*(l-1);o=xt(a,c)}return s&&no(o,s)<0&&(o=s),Ze(o)}function A9(){var e=$e(),t=k9(e),r=I9(t,e.month),n=r[0],o=r[1],a=function(s){var i;if(!e.disableNavigation){var l=Ze(s);o(l),(i=e.onMonthChange)===null||i===void 0||i.call(e,l)}};return[n,a]}function O9(e,t){for(var r=t.reverseMonths,n=t.numberOfMonths,o=Ze(e),a=Ze(xt(o,n)),s=no(a,o),i=[],l=0;l<s;l++){var c=xt(o,l);i.push(c)}return r&&(i=i.reverse()),i}function N9(e,t){if(!t.disableNavigation){var r=t.toDate,n=t.pagedNavigation,o=t.numberOfMonths,a=o===void 0?1:o,s=n?a:1,i=Ze(e);if(!r)return xt(i,s);var l=no(r,e);if(!(l<a))return xt(i,s)}}function L9(e,t){if(!t.disableNavigation){var r=t.fromDate,n=t.pagedNavigation,o=t.numberOfMonths,a=o===void 0?1:o,s=n?a:1,i=Ze(e);if(!r)return xt(i,-s);var l=no(i,r);if(!(l<=0))return xt(i,-s)}}var w0=f.createContext(void 0);function j9(e){var t=$e(),r=A9(),n=r[0],o=r[1],a=O9(n,t),s=N9(n,t),i=L9(n,t),l=function(d){return a.some(function(h){return Sl(d,h)})},c=function(d,h){l(d)||(h&&p0(d,h)?o(xt(d,1+t.numberOfMonths*-1)):o(d))},u={currentMonth:n,displayMonths:a,goToMonth:o,goToDate:c,previousMonth:i,nextMonth:s,isDateDisplayed:l};return z.jsx(w0.Provider,{value:u,children:e.children})}function mn(){var e=f.useContext(w0);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function C0(e){var t,r=$e(),n=r.classNames,o=r.styles,a=r.components,s=mn().goToMonth,i=function(u){s(xt(u,e.displayIndex?-e.displayIndex:0))},l=(t=a==null?void 0:a.CaptionLabel)!==null&&t!==void 0?t:y0,c=z.jsx(l,{id:e.id,displayMonth:e.displayMonth});return z.jsxs("div",{className:n.caption_dropdowns,style:o.caption_dropdowns,children:[z.jsx("div",{className:n.vhidden,children:c}),z.jsx($9,{onChange:i,displayMonth:e.displayMonth}),z.jsx(D9,{onChange:i,displayMonth:e.displayMonth})]})}function _9(e){return z.jsx("svg",ae({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:z.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function F9(e){return z.jsx("svg",ae({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:z.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var Za=f.forwardRef(function(e,t){var r=$e(),n=r.classNames,o=r.styles,a=[n.button_reset,n.button];e.className&&a.push(e.className);var s=a.join(" "),i=ae(ae({},o.button_reset),o.button);return e.style&&Object.assign(i,e.style),z.jsx("button",ae({},e,{ref:t,type:"button",className:s,style:i}))});function V9(e){var t,r,n=$e(),o=n.dir,a=n.locale,s=n.classNames,i=n.styles,l=n.labels,c=l.labelPrevious,u=l.labelNext,d=n.components;if(!e.nextMonth&&!e.previousMonth)return z.jsx(z.Fragment,{});var h=c(e.previousMonth,{locale:a}),p=[s.nav_button,s.nav_button_previous].join(" "),m=u(e.nextMonth,{locale:a}),y=[s.nav_button,s.nav_button_next].join(" "),b=(t=d==null?void 0:d.IconRight)!==null&&t!==void 0?t:F9,C=(r=d==null?void 0:d.IconLeft)!==null&&r!==void 0?r:_9;return z.jsxs("div",{className:s.nav,style:i.nav,children:[!e.hidePrevious&&z.jsx(Za,{name:"previous-month","aria-label":h,className:p,style:i.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:o==="rtl"?z.jsx(b,{className:s.nav_icon,style:i.nav_icon}):z.jsx(C,{className:s.nav_icon,style:i.nav_icon})}),!e.hideNext&&z.jsx(Za,{name:"next-month","aria-label":m,className:y,style:i.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:o==="rtl"?z.jsx(C,{className:s.nav_icon,style:i.nav_icon}):z.jsx(b,{className:s.nav_icon,style:i.nav_icon})})]})}function P0(e){var t=$e().numberOfMonths,r=mn(),n=r.previousMonth,o=r.nextMonth,a=r.goToMonth,s=r.displayMonths,i=s.findIndex(function(m){return Sl(e.displayMonth,m)}),l=i===0,c=i===s.length-1,u=t>1&&(l||!c),d=t>1&&(c||!l),h=function(){n&&a(n)},p=function(){o&&a(o)};return z.jsx(V9,{displayMonth:e.displayMonth,hideNext:u,hidePrevious:d,nextMonth:o,previousMonth:n,onPreviousClick:h,onNextClick:p})}function z9(e){var t,r=$e(),n=r.classNames,o=r.disableNavigation,a=r.styles,s=r.captionLayout,i=r.components,l=(t=i==null?void 0:i.CaptionLabel)!==null&&t!==void 0?t:y0,c;return o?c=z.jsx(l,{id:e.id,displayMonth:e.displayMonth}):s==="dropdown"?c=z.jsx(C0,{displayMonth:e.displayMonth,id:e.id}):s==="dropdown-buttons"?c=z.jsxs(z.Fragment,{children:[z.jsx(C0,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),z.jsx(P0,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):c=z.jsxs(z.Fragment,{children:[z.jsx(l,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),z.jsx(P0,{displayMonth:e.displayMonth,id:e.id})]}),z.jsx("div",{className:n.caption,style:a.caption,children:c})}function W9(e){var t=$e(),r=t.footer,n=t.styles,o=t.classNames.tfoot;return r?z.jsx("tfoot",{className:o,style:n.tfoot,children:z.jsx("tr",{children:z.jsx("td",{colSpan:8,children:r})})}):z.jsx(z.Fragment,{})}function B9(e,t,r){for(var n=r?$r(new Date):$t(new Date,{locale:e,weekStartsOn:t}),o=[],a=0;a<7;a++){var s=He(n,a);o.push(s)}return o}function R9(){var e=$e(),t=e.classNames,r=e.styles,n=e.showWeekNumber,o=e.locale,a=e.weekStartsOn,s=e.ISOWeek,i=e.formatters.formatWeekdayName,l=e.labels.labelWeekday,c=B9(o,a,s);return z.jsxs("tr",{style:r.head_row,className:t.head_row,children:[n&&z.jsx("td",{style:r.head_cell,className:t.head_cell}),c.map(function(u,d){return z.jsx("th",{scope:"col",className:t.head_cell,style:r.head_cell,"aria-label":l(u,{locale:o}),children:i(u,{locale:o})},d)})]})}function K9(){var e,t=$e(),r=t.classNames,n=t.styles,o=t.components,a=(e=o==null?void 0:o.HeadRow)!==null&&e!==void 0?e:R9;return z.jsx("thead",{style:n.head,className:r.head,children:z.jsx(a,{})})}function U9(e){var t=$e(),r=t.locale,n=t.formatters.formatDay;return z.jsx(z.Fragment,{children:n(e.date,{locale:r})})}var kl=f.createContext(void 0);function H9(e){if(!lo(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return z.jsx(kl.Provider,{value:t,children:e.children})}return z.jsx(Y9,{initialProps:e.initialProps,children:e.children})}function Y9(e){var t=e.initialProps,r=e.children,n=t.selected,o=t.min,a=t.max,s=function(c,u,d){var h,p;(h=t.onDayClick)===null||h===void 0||h.call(t,c,u,d);var m=!!(u.selected&&o&&(n==null?void 0:n.length)===o);if(!m){var y=!!(!u.selected&&a&&(n==null?void 0:n.length)===a);if(!y){var b=n?m0([],n,!0):[];if(u.selected){var C=b.findIndex(function(x){return Xe(c,x)});b.splice(C,1)}else b.push(c);(p=t.onSelect)===null||p===void 0||p.call(t,b,c,u,d)}}},i={disabled:[]};n&&i.disabled.push(function(c){var u=a&&n.length>a-1,d=n.some(function(h){return Xe(h,c)});return!!(u&&!d)});var l={selected:n,onDayClick:s,modifiers:i};return z.jsx(kl.Provider,{value:l,children:r})}function Al(){var e=f.useContext(kl);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function G9(e,t){var r=t||{},n=r.from,o=r.to;return n&&o?Xe(o,e)&&Xe(n,e)?void 0:Xe(o,e)?{from:o,to:void 0}:Xe(n,e)?void 0:El(n,e)?{from:e,to:o}:{from:n,to:e}:o?El(e,o)?{from:o,to:e}:{from:e,to:o}:n?p0(e,n)?{from:e,to:n}:{from:n,to:e}:{from:e,to:void 0}}var Ol=f.createContext(void 0);function q9(e){if(!co(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return z.jsx(Ol.Provider,{value:t,children:e.children})}return z.jsx(Q9,{initialProps:e.initialProps,children:e.children})}function Q9(e){var t=e.initialProps,r=e.children,n=t.selected,o=n||{},a=o.from,s=o.to,i=t.min,l=t.max,c=function(p,m,y){var b,C;(b=t.onDayClick)===null||b===void 0||b.call(t,p,m,y);var x=G9(p,n);(C=t.onSelect)===null||C===void 0||C.call(t,x,p,m,y)},u={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(u.range_start=[a],s?(u.range_end=[s],Xe(a,s)||(u.range_middle=[{after:a,before:s}])):u.range_end=[a]):s&&(u.range_start=[s],u.range_end=[s]),i&&(a&&!s&&u.disabled.push({after:$l(a,i-1),before:He(a,i-1)}),a&&s&&u.disabled.push({after:a,before:He(a,i-1)}),!a&&s&&u.disabled.push({after:$l(s,i-1),before:He(s,i-1)})),l){if(a&&!s&&(u.disabled.push({before:He(a,-l+1)}),u.disabled.push({after:He(a,l-1)})),a&&s){var d=Dt(s,a)+1,h=l-d;u.disabled.push({before:$l(a,h)}),u.disabled.push({after:He(s,h)})}!a&&s&&(u.disabled.push({before:He(s,-l+1)}),u.disabled.push({after:He(s,l-1)}))}return z.jsx(Ol.Provider,{value:{selected:n,onDayClick:c,modifiers:u},children:r})}function Nl(){var e=f.useContext(Ol);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function Ja(e){return Array.isArray(e)?m0([],e,!0):e!==void 0?[e]:[]}function X9(e){var t={};return Object.entries(e).forEach(function(r){var n=r[0],o=r[1];t[n]=Ja(o)}),t}var wt;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(wt||(wt={}));var Z9=wt.Selected,Ut=wt.Disabled,J9=wt.Hidden,e8=wt.Today,Ll=wt.RangeEnd,jl=wt.RangeMiddle,_l=wt.RangeStart,t8=wt.Outside;function r8(e,t,r){var n,o=(n={},n[Z9]=Ja(e.selected),n[Ut]=Ja(e.disabled),n[J9]=Ja(e.hidden),n[e8]=[e.today],n[Ll]=[],n[jl]=[],n[_l]=[],n[t8]=[],n);return e.fromDate&&o[Ut].push({before:e.fromDate}),e.toDate&&o[Ut].push({after:e.toDate}),lo(e)?o[Ut]=o[Ut].concat(t.modifiers[Ut]):co(e)&&(o[Ut]=o[Ut].concat(r.modifiers[Ut]),o[_l]=r.modifiers[_l],o[jl]=r.modifiers[jl],o[Ll]=r.modifiers[Ll]),o}var M0=f.createContext(void 0);function n8(e){var t=$e(),r=Al(),n=Nl(),o=r8(t,r,n),a=X9(t.modifiers),s=ae(ae({},o),a);return z.jsx(M0.Provider,{value:s,children:e.children})}function T0(){var e=f.useContext(M0);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function o8(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function a8(e){return!!(e&&typeof e=="object"&&"from"in e)}function s8(e){return!!(e&&typeof e=="object"&&"after"in e)}function i8(e){return!!(e&&typeof e=="object"&&"before"in e)}function l8(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function c8(e,t){var r,n=t.from,o=t.to;if(n&&o){var a=Dt(o,n)<0;a&&(r=[o,n],n=r[0],o=r[1]);var s=Dt(e,n)>=0&&Dt(o,e)>=0;return s}return o?Xe(o,e):n?Xe(n,e):!1}function u8(e){return Cl(e)}function d8(e){return Array.isArray(e)&&e.every(Cl)}function f8(e,t){return t.some(function(r){if(typeof r=="boolean")return r;if(u8(r))return Xe(e,r);if(d8(r))return r.includes(e);if(a8(r))return c8(e,r);if(l8(r))return r.dayOfWeek.includes(e.getDay());if(o8(r)){var n=Dt(r.before,e),o=Dt(r.after,e),a=n>0,s=o<0,i=El(r.before,r.after);return i?s&&a:a||s}return s8(r)?Dt(e,r.after)>0:i8(r)?Dt(r.before,e)>0:typeof r=="function"?r(e):!1})}function Fl(e,t,r){var n=Object.keys(t).reduce(function(a,s){var i=t[s];return f8(e,i)&&a.push(s),a},[]),o={};return n.forEach(function(a){return o[a]=!0}),r&&!Sl(e,r)&&(o.outside=!0),o}function p8(e,t){for(var r=Ze(e[0]),n=Pl(e[e.length-1]),o,a,s=r;s<=n;){var i=Fl(s,t),l=!i.disabled&&!i.hidden;if(!l){s=He(s,1);continue}if(i.selected)return s;i.today&&!a&&(a=s),o||(o=s),s=He(s,1)}return a||o}var h8=365;function E0(e,t){var r=t.moveBy,n=t.direction,o=t.context,a=t.modifiers,s=t.retry,i=s===void 0?{count:0,lastFocused:e}:s,l=o.weekStartsOn,c=o.fromDate,u=o.toDate,d=o.locale,h={day:He,week:wl,month:xt,year:rx,startOfWeek:function(b){return o.ISOWeek?$r(b):$t(b,{locale:d,weekStartsOn:l})},endOfWeek:function(b){return o.ISOWeek?n0(b):Ml(b,{locale:d,weekStartsOn:l})}},p=h[r](e,n==="after"?1:-1);n==="before"&&c?p=nx([c,p]):n==="after"&&u&&(p=ox([u,p]));var m=!0;if(a){var y=Fl(p,a);m=!y.disabled&&!y.hidden}return m?p:i.count>h8?i.lastFocused:E0(p,{moveBy:r,direction:n,context:o,modifiers:a,retry:ae(ae({},i),{count:i.count+1})})}var S0=f.createContext(void 0);function m8(e){var t=mn(),r=T0(),n=f.useState(),o=n[0],a=n[1],s=f.useState(),i=s[0],l=s[1],c=p8(t.displayMonths,r),u=o??(i&&t.isDateDisplayed(i))?i:c,d=function(){l(o),a(void 0)},h=function(b){a(b)},p=$e(),m=function(b,C){if(o){var x=E0(o,{moveBy:b,direction:C,context:p,modifiers:r});Xe(o,x)||(t.goToDate(x,o),h(x))}},y={focusedDay:o,focusTarget:u,blur:d,focus:h,focusDayAfter:function(){return m("day","after")},focusDayBefore:function(){return m("day","before")},focusWeekAfter:function(){return m("week","after")},focusWeekBefore:function(){return m("week","before")},focusMonthBefore:function(){return m("month","before")},focusMonthAfter:function(){return m("month","after")},focusYearBefore:function(){return m("year","before")},focusYearAfter:function(){return m("year","after")},focusStartOfWeek:function(){return m("startOfWeek","before")},focusEndOfWeek:function(){return m("endOfWeek","after")}};return z.jsx(S0.Provider,{value:y,children:e.children})}function Vl(){var e=f.useContext(S0);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function g8(e,t){var r=T0(),n=Fl(e,r,t);return n}var zl=f.createContext(void 0);function v8(e){if(!Xa(e.initialProps)){var t={selected:void 0};return z.jsx(zl.Provider,{value:t,children:e.children})}return z.jsx(b8,{initialProps:e.initialProps,children:e.children})}function b8(e){var t=e.initialProps,r=e.children,n=function(a,s,i){var l,c,u;if((l=t.onDayClick)===null||l===void 0||l.call(t,a,s,i),s.selected&&!t.required){(c=t.onSelect)===null||c===void 0||c.call(t,void 0,a,s,i);return}(u=t.onSelect)===null||u===void 0||u.call(t,a,a,s,i)},o={selected:t.selected,onDayClick:n};return z.jsx(zl.Provider,{value:o,children:r})}function $0(){var e=f.useContext(zl);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function y8(e,t){var r=$e(),n=$0(),o=Al(),a=Nl(),s=Vl(),i=s.focusDayAfter,l=s.focusDayBefore,c=s.focusWeekAfter,u=s.focusWeekBefore,d=s.blur,h=s.focus,p=s.focusMonthBefore,m=s.focusMonthAfter,y=s.focusYearBefore,b=s.focusYearAfter,C=s.focusStartOfWeek,x=s.focusEndOfWeek,P=function($){var V,Y,K,R;Xa(r)?(V=n.onDayClick)===null||V===void 0||V.call(n,e,t,$):lo(r)?(Y=o.onDayClick)===null||Y===void 0||Y.call(o,e,t,$):co(r)?(K=a.onDayClick)===null||K===void 0||K.call(a,e,t,$):(R=r.onDayClick)===null||R===void 0||R.call(r,e,t,$)},E=function($){var V;h(e),(V=r.onDayFocus)===null||V===void 0||V.call(r,e,t,$)},S=function($){var V;d(),(V=r.onDayBlur)===null||V===void 0||V.call(r,e,t,$)},N=function($){var V;(V=r.onDayMouseEnter)===null||V===void 0||V.call(r,e,t,$)},j=function($){var V;(V=r.onDayMouseLeave)===null||V===void 0||V.call(r,e,t,$)},g=function($){var V;(V=r.onDayPointerEnter)===null||V===void 0||V.call(r,e,t,$)},A=function($){var V;(V=r.onDayPointerLeave)===null||V===void 0||V.call(r,e,t,$)},I=function($){var V;(V=r.onDayTouchCancel)===null||V===void 0||V.call(r,e,t,$)},T=function($){var V;(V=r.onDayTouchEnd)===null||V===void 0||V.call(r,e,t,$)},D=function($){var V;(V=r.onDayTouchMove)===null||V===void 0||V.call(r,e,t,$)},w=function($){var V;(V=r.onDayTouchStart)===null||V===void 0||V.call(r,e,t,$)},M=function($){var V;(V=r.onDayKeyUp)===null||V===void 0||V.call(r,e,t,$)},O=function($){var V;switch($.key){case"ArrowLeft":$.preventDefault(),$.stopPropagation(),r.dir==="rtl"?i():l();break;case"ArrowRight":$.preventDefault(),$.stopPropagation(),r.dir==="rtl"?l():i();break;case"ArrowDown":$.preventDefault(),$.stopPropagation(),c();break;case"ArrowUp":$.preventDefault(),$.stopPropagation(),u();break;case"PageUp":$.preventDefault(),$.stopPropagation(),$.shiftKey?y():p();break;case"PageDown":$.preventDefault(),$.stopPropagation(),$.shiftKey?b():m();break;case"Home":$.preventDefault(),$.stopPropagation(),C();break;case"End":$.preventDefault(),$.stopPropagation(),x();break}(V=r.onDayKeyDown)===null||V===void 0||V.call(r,e,t,$)},F={onClick:P,onFocus:E,onBlur:S,onKeyDown:O,onKeyUp:M,onMouseEnter:N,onMouseLeave:j,onPointerEnter:g,onPointerLeave:A,onTouchCancel:I,onTouchEnd:T,onTouchMove:D,onTouchStart:w};return F}function x8(){var e=$e(),t=$0(),r=Al(),n=Nl(),o=Xa(e)?t.selected:lo(e)?r.selected:co(e)?n.selected:void 0;return o}function w8(e){return Object.values(wt).includes(e)}function C8(e,t){var r=[e.classNames.day];return Object.keys(t).forEach(function(n){var o=e.modifiersClassNames[n];if(o)r.push(o);else if(w8(n)){var a=e.classNames["day_".concat(n)];a&&r.push(a)}}),r}function P8(e,t){var r=ae({},e.styles.day);return Object.keys(t).forEach(function(n){var o;r=ae(ae({},r),(o=e.modifiersStyles)===null||o===void 0?void 0:o[n])}),r}function M8(e,t,r){var n,o,a,s=$e(),i=Vl(),l=g8(e,t),c=y8(e,l),u=x8(),d=!!(s.onDayClick||s.mode!=="default");f.useEffect(function(){var N;l.outside||i.focusedDay&&d&&Xe(i.focusedDay,e)&&((N=r.current)===null||N===void 0||N.focus())},[i.focusedDay,e,r,d,l.outside]);var h=C8(s,l).join(" "),p=P8(s,l),m=!!(l.outside&&!s.showOutsideDays||l.hidden),y=(a=(o=s.components)===null||o===void 0?void 0:o.DayContent)!==null&&a!==void 0?a:U9,b=z.jsx(y,{date:e,displayMonth:t,activeModifiers:l}),C={style:p,className:h,children:b,role:"gridcell"},x=i.focusTarget&&Xe(i.focusTarget,e)&&!l.outside,P=i.focusedDay&&Xe(i.focusedDay,e),E=ae(ae(ae({},C),(n={disabled:l.disabled,role:"gridcell"},n["aria-selected"]=l.selected,n.tabIndex=P||x?0:-1,n)),c),S={isButton:d,isHidden:m,activeModifiers:l,selectedDays:u,buttonProps:E,divProps:C};return S}function T8(e){var t=f.useRef(null),r=M8(e.date,e.displayMonth,t);return r.isHidden?z.jsx("div",{role:"gridcell"}):r.isButton?z.jsx(Za,ae({name:"day",ref:t},r.buttonProps)):z.jsx("div",ae({},r.divProps))}function E8(e){var t=e.number,r=e.dates,n=$e(),o=n.onWeekNumberClick,a=n.styles,s=n.classNames,i=n.locale,l=n.labels.labelWeekNumber,c=n.formatters.formatWeekNumber,u=c(Number(t),{locale:i});if(!o)return z.jsx("span",{className:s.weeknumber,style:a.weeknumber,children:u});var d=l(Number(t),{locale:i}),h=function(p){o(t,r,p)};return z.jsx(Za,{name:"week-number","aria-label":d,className:s.weeknumber,style:a.weeknumber,onClick:h,children:u})}function S8(e){var t,r,n=$e(),o=n.styles,a=n.classNames,s=n.showWeekNumber,i=n.components,l=(t=i==null?void 0:i.Day)!==null&&t!==void 0?t:T8,c=(r=i==null?void 0:i.WeekNumber)!==null&&r!==void 0?r:E8,u;return s&&(u=z.jsx("td",{className:a.cell,style:o.cell,children:z.jsx(c,{number:e.weekNumber,dates:e.dates})})),z.jsxs("tr",{className:a.row,style:o.row,children:[u,e.dates.map(function(d){return z.jsx("td",{className:a.cell,style:o.cell,role:"presentation",children:z.jsx(l,{displayMonth:e.displayMonth,date:d})},t9(d))})]})}function D0(e,t,r){for(var n=r!=null&&r.ISOWeek?n0(t):Ml(t,r),o=r!=null&&r.ISOWeek?$r(e):$t(e,r),a=Dt(n,o),s=[],i=0;i<=a;i++)s.push(He(o,i));var l=s.reduce(function(c,u){var d=r!=null&&r.ISOWeek?a0(u):i0(u,r),h=c.find(function(p){return p.weekNumber===d});return h?(h.dates.push(u),c):(c.push({weekNumber:d,dates:[u]}),c)},[]);return l}function $8(e,t){var r=D0(Ze(e),Pl(e),t);if(t!=null&&t.useFixedWeeks){var n=n9(e,t);if(n<6){var o=r[r.length-1],a=o.dates[o.dates.length-1],s=wl(a,6-n),i=D0(wl(a,1),s,t);r.push.apply(r,i)}}return r}function D8(e){var t,r,n,o=$e(),a=o.locale,s=o.classNames,i=o.styles,l=o.hideHead,c=o.fixedWeeks,u=o.components,d=o.weekStartsOn,h=o.firstWeekContainsDate,p=o.ISOWeek,m=$8(e.displayMonth,{useFixedWeeks:!!c,ISOWeek:p,locale:a,weekStartsOn:d,firstWeekContainsDate:h}),y=(t=u==null?void 0:u.Head)!==null&&t!==void 0?t:K9,b=(r=u==null?void 0:u.Row)!==null&&r!==void 0?r:S8,C=(n=u==null?void 0:u.Footer)!==null&&n!==void 0?n:W9;return z.jsxs("table",{id:e.id,className:s.table,style:i.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!l&&z.jsx(y,{}),z.jsx("tbody",{className:s.tbody,style:i.tbody,children:m.map(function(x){return z.jsx(b,{displayMonth:e.displayMonth,dates:x.dates,weekNumber:x.weekNumber},x.weekNumber)})}),z.jsx(C,{displayMonth:e.displayMonth})]})}function I8(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var k8=I8()?f.useLayoutEffect:f.useEffect,Wl=!1,A8=0;function I0(){return"react-day-picker-".concat(++A8)}function O8(e){var t,r=e??(Wl?I0():null),n=f.useState(r),o=n[0],a=n[1];return k8(function(){o===null&&a(I0())},[]),f.useEffect(function(){Wl===!1&&(Wl=!0)},[]),(t=e??o)!==null&&t!==void 0?t:void 0}function N8(e){var t,r,n=$e(),o=n.dir,a=n.classNames,s=n.styles,i=n.components,l=mn().displayMonths,c=O8(n.id?"".concat(n.id,"-").concat(e.displayIndex):void 0),u=n.id?"".concat(n.id,"-grid-").concat(e.displayIndex):void 0,d=[a.month],h=s.month,p=e.displayIndex===0,m=e.displayIndex===l.length-1,y=!p&&!m;o==="rtl"&&(t=[p,m],m=t[0],p=t[1]),p&&(d.push(a.caption_start),h=ae(ae({},h),s.caption_start)),m&&(d.push(a.caption_end),h=ae(ae({},h),s.caption_end)),y&&(d.push(a.caption_between),h=ae(ae({},h),s.caption_between));var b=(r=i==null?void 0:i.Caption)!==null&&r!==void 0?r:z9;return z.jsxs("div",{className:d.join(" "),style:h,children:[z.jsx(b,{id:c,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),z.jsx(D8,{id:u,"aria-labelledby":c,displayMonth:e.displayMonth})]},e.displayIndex)}function L8(e){var t=$e(),r=t.classNames,n=t.styles;return z.jsx("div",{className:r.months,style:n.months,children:e.children})}function j8(e){var t,r,n=e.initialProps,o=$e(),a=Vl(),s=mn(),i=f.useState(!1),l=i[0],c=i[1];f.useEffect(function(){o.initialFocus&&a.focusTarget&&(l||(a.focus(a.focusTarget),c(!0)))},[o.initialFocus,l,a.focus,a.focusTarget,a]);var u=[o.classNames.root,o.className];o.numberOfMonths>1&&u.push(o.classNames.multiple_months),o.showWeekNumber&&u.push(o.classNames.with_weeknumber);var d=ae(ae({},o.styles.root),o.style),h=Object.keys(n).filter(function(m){return m.startsWith("data-")}).reduce(function(m,y){var b;return ae(ae({},m),(b={},b[y]=n[y],b))},{}),p=(r=(t=n.components)===null||t===void 0?void 0:t.Months)!==null&&r!==void 0?r:L8;return z.jsx("div",ae({className:u.join(" "),style:d,dir:o.dir,id:o.id,nonce:n.nonce,title:n.title,lang:n.lang},h,{children:z.jsx(p,{children:s.displayMonths.map(function(m,y){return z.jsx(N8,{displayIndex:y,displayMonth:m},y)})})}))}function _8(e){var t=e.children,r=a9(e,["children"]);return z.jsx(E9,{initialProps:r,children:z.jsx(j9,{children:z.jsx(v8,{initialProps:r,children:z.jsx(H9,{initialProps:r,children:z.jsx(q9,{initialProps:r,children:z.jsx(n8,{children:z.jsx(m8,{children:t})})})})})})})}function F8(e){return z.jsx(_8,ae({},e,{children:z.jsx(j8,{initialProps:e})}))}const vw="",bw="",V8=e=>{const{goToMonth:t,nextMonth:r,previousMonth:n}=mn();return L.jsxs("div",{className:"flex px-[10px] py-2",children:[L.jsx("button",{disabled:!n,onClick:()=>n&&t(n),children:L.jsx(et,{name:"chevron-left",className:"text-xs text-primary-grey-800"})}),L.jsx(Mc,{className:"flex flex-1 justify-center font-satoshi text-2xl font-medium text-primary-black-500",children:Kt(e.displayMonth,"MMM yyy")}),L.jsx("button",{disabled:!r,onClick:()=>r&&t(r),children:L.jsx(et,{name:"chevron-right",className:"text-xs text-primary-grey-800"})})]})},k0=({...e})=>L.jsx(F8,{disabled:t=>t>new Date||t<new Date("1900-01-01"),components:{Caption:V8},showOutsideDays:!0,...e}),z8=({label:e,initialDate:t,onSelect:r,dateFormat:n})=>{const[o,a]=f.useState(!1),[s,i]=f.useState(t),l=()=>{a(!0)},c=d=>{r&&r(d),i(d),u()},u=()=>{a(!1)};return L.jsx(e0,{isOpen:o,align:"end",onInteractOutside:u,content:L.jsx(k0,{selected:s,onSelect:c,mode:"single"}),children:L.jsx("div",{children:L.jsx(Oh,{value:s?Kt(s,n??"dd/MM/yyyy"):"",onClick:l,isDatePicker:!0,label:e,icon:"calendar"})})})},W8={white:"#ffffff",black:"#000000",primary:{green:{50:"#e9eceb",100:"#bac3c2",200:"#99a7a4",300:"#6b7e7b",400:"#4e6561",500:"#223f3a",600:"#1f3935",700:"#182d29",800:"#132320",900:"#0e1a18"},black:{50:"#e6e6e6",100:"#b0b0b0",200:"#8a8a8a",300:"#545454",400:"#333333",500:"#000000",600:"#000000",700:"#000000",800:"#000000",900:"#000000"},grey:{50:"##fefefe",100:"#fcfdfd",200:"#fafbfc",300:"#f8fafb",400:"#f7f9fa",500:"#f5f7f9",600:"#dfe1e3",700:"#aeafb1",800:"#878889",900:"#676869"},DEFAULT:"hsl(var(--primary))",foreground:"hsl(var(--primary-foreground))"},secondary:{green:{50:"#e6f7ee",100:"#b2e7c9",200:"#8cdbaf",300:"#58ca8a",400:"#38c074",500:"#06b051",600:"#05a04a",700:"#047d3a",800:"#03612d",900:"#034a22"},DEFAULT:"hsl(var(--secondary))",foreground:"hsl(var(--secondary-foreground))"},tertiary:{green:{50:"#ebfaf2",100:"#c2f0d8",200:"#a4e8c5",300:"#7adeaa",400:"#61d799",500:"#39cd80",600:"#34bb74",700:"#28925b",800:"#1f7146",900:"#185636"}},complementary:{violet:{50:"#f0ecf5",100:"#d1c3df",200:"#bba7d0",300:"#9d7ebb",400:"#8965ad",500:"#6c3f99",600:"#62398b",700:"#4d2d6d",800:"#3b2354",900:"#2d1a40"},blue:{50:"#e6f7f7",100:"#b1e6e6",200:"#8cdada",300:"#57c9c9",400:"#36bfbe",500:"#04afae",600:"#049f9e",700:"#037c7c",800:"#026060",900:"#024a49"},red:{50:"#faebea",100:"#f0c1be",200:"#e9a39f",300:"#df7973",400:"#d95f58",500:"#cf372e",600:"#bc322a",700:"#932721",800:"#721e19",900:"#571713"},orange:{50:"#fef3e9",100:"#fbdabb",200:"#f9c99a",300:"#f6b06c",400:"#f5a150",500:"#f28924",600:"#dc7d21",700:"#ac611a",800:"#854b14",900:"#663a0f"},yellow:{50:"#fdfaec",100:"#f9f0c4",200:"#f7e9a8",300:"#f3e080",400:"#f1d968",500:"#edd042",600:"#d8bd3c",700:"#a8942f",800:"#827224",900:"#64571c"}},globalfy:{primaryGreen:"#0B9F59",secondaryGreen:"#223F3A",tertiaryGreen:"#39CD80",white:"#FFFFFF",primaryGrey:"#F5F7F9",grey500:"#E6E6E6",grey600:"#D1D1D1",grey700:"#A3A3A3",grey900:"#616161",black:"#000000",violet500:"#6C3F99",violet50:"#F0ECF5",blue500:"#04AFAE",blue50:"#E6F7F7",red700:"#940800",red500:"#CF372E",red50:"#FFF3F2"},border:"hsl(var(--border))",input:"hsl(var(--input))",ring:"hsl(var(--ring))",background:"hsl(var(--background))",foreground:"hsl(var(--foreground))",destructive:{DEFAULT:"hsl(var(--destructive))",foreground:"hsl(var(--destructive-foreground))"},muted:{DEFAULT:"hsl(var(--muted))",foreground:"hsl(var(--muted-foreground))"},accent:{DEFAULT:"hsl(var(--accent))",foreground:"hsl(var(--accent-foreground))"},popover:{DEFAULT:"hsl(var(--popover))",foreground:"hsl(var(--popover-foreground))"},card:{DEFAULT:"hsl(var(--card))",foreground:"hsl(var(--card-foreground))"}};Pe.Avatar=jp,Pe.Button=Yi,Pe.Checkbox=_4,Pe.Chip=V4,Pe.DatePicker=k0,Pe.DatePickerInput=z8,Pe.FieldMessage=km,Pe.Flag=Om,Pe.Icon=et,Pe.Input=Oh,Pe.Logo=vm,Pe.Popover=e0,Pe.RadioGroup=F4,Pe.SegmentedControl=W4,Pe.Snackbar=_p,Pe.Switch=j4,Pe.Tabs=p7,Pe.Tooltip=j6,Pe.Typography=Mc,Pe.colors=W8,Pe.useSnackbar=Q4,Object.defineProperty(Pe,Symbol.toStringTag,{value:"Module"})});
|