@saas-ui/forms 1.0.0-rc.10 → 1.0.0-rc.11

Sign up to get free protection for your applications and to get access to all the features.
package/dist/ajv/index.js CHANGED
@@ -1,97 +1,104 @@
1
- var e=require("@hookform/resolvers/ajv"),t=require("@chakra-ui/utils"),n=require("react-hook-form");function r(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),e}function a(e){var t={exports:{}};return e(t,t.exports),t.exports}var o=Symbol.for("react.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),h=Symbol.iterator,y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,b={};function E(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}function x(){}function _(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}E.prototype.isReactComponent={},E.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},E.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},x.prototype=E.prototype;var w=_.prototype=new x;w.constructor=_,g(w,E.prototype),w.isPureReactComponent=!0;var k=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,n){var r,a={},i=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)S.call(t,r)&&!O.hasOwnProperty(r)&&(a[r]=t[r]);var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===a[r]&&(a[r]=l[r]);return{$$typeof:o,type:e,key:i,ref:s,props:a,_owner:C.current}}function N(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var R=/\/+/g;function I(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function P(e,t,n,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case o:case i:l=!0}}if(l)return a=a(l=e),e=""===r?"."+I(l,0):r,k(a)?(n="",null!=e&&(n=e.replace(R,"$&/")+"/"),P(a,t,n,"",function(e){return e})):null!=a&&(N(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(R,"$&/")+"/")+e)),t.push(a)),1;if(l=0,r=""===r?".":r+":",k(e))for(var c=0;c<e.length;c++){var u=r+I(s=e[c],c);l+=P(s,t,n,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=P(s=s.value,t,n,u=r+I(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function T(e,t,n){if(null==e)return e;var r=[],a=0;return P(e,r,"","",function(e){return t.call(n,e,a++)}),r}function L(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var D={current:null},M={transition:null},V={map:T,forEach:function(e,t,n){T(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return T(e,function(){t++}),t},toArray:function(e){return T(e,function(e){return e})||[]},only:function(e){if(!N(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},j={Children:V,Component:E,Fragment:s,Profiler:c,PureComponent:_,StrictMode:l,Suspense:p,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:D,ReactCurrentBatchConfig:M,ReactCurrentOwner:C},cloneElement:function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=g({},e.props),a=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=C.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)S.call(t,c)&&!O.hasOwnProperty(c)&&(r[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)r.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:o,type:e.type,key:a,ref:i,props:r,_owner:s}},createContext:function(e){return(e={$$typeof:d,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},createElement:A,createFactory:function(e){var t=A.bind(null,e);return t.type=e,t},createRef:function(){return{current:null}},forwardRef:function(e){return{$$typeof:f,render:e}},isValidElement:N,lazy:function(e){return{$$typeof:v,_payload:{_status:-1,_result:e},_init:L}},memo:function(e,t){return{$$typeof:m,type:e,compare:void 0===t?null:t}},startTransition:function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},unstable_act:function(){throw Error("act(...) is not supported in production builds of React.")},useCallback:function(e,t){return D.current.useCallback(e,t)},useContext:function(e){return D.current.useContext(e)},useDebugValue:function(){},useDeferredValue:function(e){return D.current.useDeferredValue(e)},useEffect:function(e,t){return D.current.useEffect(e,t)},useId:function(){return D.current.useId()},useImperativeHandle:function(e,t,n){return D.current.useImperativeHandle(e,t,n)},useInsertionEffect:function(e,t){return D.current.useInsertionEffect(e,t)},useLayoutEffect:function(e,t){return D.current.useLayoutEffect(e,t)},useMemo:function(e,t){return D.current.useMemo(e,t)},useReducer:function(e,t,n){return D.current.useReducer(e,t,n)},useRef:function(e){return D.current.useRef(e)},useState:function(e){return D.current.useState(e)},useSyncExternalStore:function(e,t,n){return D.current.useSyncExternalStore(e,t,n)},useTransition:function(){return D.current.useTransition()},version:"18.1.0"},B=a(function(e,t){"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),v=Symbol.iterator;function h(e){if(null===e||"object"!=typeof e)return null;var t=v&&e[v]||e["@@iterator"];return"function"==typeof t?t:null}var y={current:null},g={transition:null},b={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},E={current:null},x={},_=null;function w(e){_=e}x.setExtraStackFrame=function(e){_=e},x.getCurrentStack=null,x.getStackAddendum=function(){var e="";_&&(e+=_);var t=x.getCurrentStack;return t&&(e+=t()||""),e};var k={ReactCurrentDispatcher:y,ReactCurrentBatchConfig:g,ReactCurrentOwner:E};function S(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];O("warn",e,n)}function C(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];O("error",e,n)}function O(e,t,n){var r=k.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var a=n.map(function(e){return String(e)});a.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,a)}k.ReactDebugCurrentFrame=x,k.ReactCurrentActQueue=b;var A={};function N(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",a=r+"."+t;A[a]||(C("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,r),A[a]=!0)}var R={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){N(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){N(e,"replaceState")},enqueueSetState:function(e,t,n,r){N(e,"setState")}},I=Object.assign,P={};function T(e,t,n){this.props=e,this.context=t,this.refs=P,this.updater=n||R}Object.freeze(P),T.prototype.isReactComponent={},T.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},T.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var L={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},D=function(e,t){Object.defineProperty(T.prototype,e,{get:function(){S("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var M in L)L.hasOwnProperty(M)&&D(M,L[M]);function V(){}function j(e,t,n){this.props=e,this.context=t,this.refs=P,this.updater=n||R}V.prototype=T.prototype;var B=j.prototype=new V;B.constructor=j,I(B,T.prototype),B.isPureReactComponent=!0;var F=Array.isArray;function z(e){return F(e)}function W(e){return""+e}function H(e){if(function(e){try{return W(e),!1}catch(e){return!0}}(e))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),W(e)}function U(e){return e.displayName||"Context"}function $(e){if(null==e)return null;if("number"==typeof e.tag&&C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case a:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return U(e)+".Consumer";case s:return U(e._context)+".Provider";case c:return function(e,t,n){var r=e.displayName;if(r)return r;var a=t.displayName||t.name||"";return""!==a?"ForwardRef("+a+")":"ForwardRef"}(e,e.render);case f:var t=e.displayName||null;return null!==t?t:$(e.type)||"Memo";case p:var n=e._payload,m=e._init;try{return $(m(n))}catch(e){return null}}return null}var q,Y,Z,G=Object.prototype.hasOwnProperty,X={key:!0,ref:!0,__self:!0,__source:!0};function K(e){if(G.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function J(e){if(G.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function Q(e,t){var n=function(){q||(q=!0,C("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function ee(e,t){var n=function(){Y||(Y=!0,C("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}function te(e){if("string"==typeof e.ref&&E.current&&e.__self&&E.current.stateNode!==e.__self){var t=$(E.current.type);Z[t]||(C('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',t,e.ref),Z[t]=!0)}}Z={};var ne=function(e,t,r,a,o,i,s){var l={$$typeof:n,type:e,key:t,ref:r,props:s,_owner:i,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function re(e,t,n){var r,a={},o=null,i=null,s=null,l=null;if(null!=t)for(r in K(t)&&(i=t.ref,te(t)),J(t)&&(H(t.key),o=""+t.key),s=void 0===t.__self?null:t.__self,l=void 0===t.__source?null:t.__source,t)G.call(t,r)&&!X.hasOwnProperty(r)&&(a[r]=t[r]);var c=arguments.length-2;if(1===c)a.children=n;else if(c>1){for(var u=Array(c),d=0;d<c;d++)u[d]=arguments[d+2];Object.freeze&&Object.freeze(u),a.children=u}if(e&&e.defaultProps){var f=e.defaultProps;for(r in f)void 0===a[r]&&(a[r]=f[r])}if(o||i){var p="function"==typeof e?e.displayName||e.name||"Unknown":e;o&&Q(a,p),i&&ee(a,p)}return ne(e,o,i,s,l,E.current,a)}function ae(e,t,n){if(null==e)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r,a,o=I({},e.props),i=e.key,s=e.ref,l=e._self,c=e._source,u=e._owner;if(null!=t)for(r in K(t)&&(s=t.ref,u=E.current),J(t)&&(H(t.key),i=""+t.key),e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)G.call(t,r)&&!X.hasOwnProperty(r)&&(o[r]=void 0===t[r]&&void 0!==a?a[r]:t[r]);var d=arguments.length-2;if(1===d)o.children=n;else if(d>1){for(var f=Array(d),p=0;p<d;p++)f[p]=arguments[p+2];o.children=f}return ne(e.type,i,s,l,c,u,o)}function oe(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var ie,se=!1,le=/\/+/g;function ce(e){return e.replace(le,"$&/")}function ue(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(H(e.key),n={"=":"=0",":":"=2"},"$"+(""+e.key).replace(/[=:]/g,function(e){return n[e]})):t.toString(36);var n}function de(e,t,a,o,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l,c,u,d=!1;if(null===e)d=!0;else switch(s){case"string":case"number":d=!0;break;case"object":switch(e.$$typeof){case n:case r:d=!0}}if(d){var f=e,p=i(f),m=""===o?"."+ue(f,0):o;if(z(p)){var v="";null!=m&&(v=ce(m)+"/"),de(p,t,v,"",function(e){return e})}else null!=p&&(oe(p)&&(!p.key||f&&f.key===p.key||H(p.key),l=p,c=a+(!p.key||f&&f.key===p.key?"":ce(""+p.key)+"/")+m,p=ne(l.type,c,l.ref,l._self,l._source,l._owner,l.props)),t.push(p));return 1}var y=0,g=""===o?".":o+":";if(z(e))for(var b=0;b<e.length;b++)y+=de(u=e[b],t,a,g+ue(u,b),i);else{var E=h(e);if("function"==typeof E){var x=e;E===x.entries&&(se||S("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),se=!0);for(var _,w=E.call(x),k=0;!(_=w.next()).done;)y+=de(u=_.value,t,a,g+ue(u,k++),i)}else if("object"===s){var C=String(e);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===C?"object with keys {"+Object.keys(e).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.")}}return y}function fe(e,t,n){if(null==e)return e;var r=[],a=0;return de(e,r,"","",function(e){return t.call(n,e,a++)}),r}function pe(e){if(-1===e._status){var t=(0,e._result)();if(t.then(function(t){if(0===e._status||-1===e._status){var n=e;n._status=1,n._result=t}},function(t){if(0===e._status||-1===e._status){var n=e;n._status=2,n._result=t}}),-1===e._status){var n=e;n._status=0,n._result=t}}if(1===e._status){var r=e._result;return void 0===r&&C("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",r),"default"in r||C("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",r),r.default}throw e._result}function me(e){return"string"==typeof e||"function"==typeof e||e===a||e===i||e===o||e===u||e===d||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===ie||void 0!==e.getModuleId)}function ve(){var e=y.current;return null===e&&C("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),e}ie=Symbol.for("react.module.reference");var he,ye,ge,be,Ee,xe,_e,we=0;function ke(){}ke.__reactDisabledLog=!0;var Se,Ce=k.ReactCurrentDispatcher;function Oe(e,t,n){if(void 0===Se)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);Se=r&&r[1]||""}return"\n"+Se+e}var Ae,Ne=!1,Re="function"==typeof WeakMap?WeakMap:Map;function Ie(e,t){if(!e||Ne)return"";var n,r=Ae.get(e);if(void 0!==r)return r;Ne=!0;var a,o=Error.prepareStackTrace;Error.prepareStackTrace=void 0,a=Ce.current,Ce.current=null,function(){if(0===we){he=console.log,ye=console.info,ge=console.warn,be=console.error,Ee=console.group,xe=console.groupCollapsed,_e=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ke,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}we++}();try{if(t){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(i,[])}catch(e){n=e}Reflect.construct(e,[],i)}else{try{i.call()}catch(e){n=e}e.call(i.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=n.stack.split("\n"),c=s.length-1,u=l.length-1;c>=1&&u>=0&&s[c]!==l[u];)u--;for(;c>=1&&u>=0;c--,u--)if(s[c]!==l[u]){if(1!==c||1!==u)do{if(c--,--u<0||s[c]!==l[u]){var d="\n"+s[c].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&Ae.set(e,d),d}}while(c>=1&&u>=0);break}}}finally{Ne=!1,Ce.current=a,function(){if(0==--we){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:he}),info:I({},e,{value:ye}),warn:I({},e,{value:ge}),error:I({},e,{value:be}),group:I({},e,{value:Ee}),groupCollapsed:I({},e,{value:xe}),groupEnd:I({},e,{value:_e})})}we<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=o}var f=e?e.displayName||e.name:"",p=f?Oe(f):"";return"function"==typeof e&&Ae.set(e,p),p}function Pe(e,t,n){if(null==e)return"";if("function"==typeof e)return Ie(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return Oe(e);switch(e){case u:return Oe("Suspense");case d:return Oe("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return Ie(e.render,!1);case f:return Pe(e.type,t,n);case p:var r=e._payload,a=e._init;try{return Pe(a(r),t,n)}catch(e){}}return""}Ae=new Re;var Te,Le={},De=k.ReactDebugCurrentFrame;function Me(e){if(e){var t=e._owner,n=Pe(e.type,e._source,t?t.type:null);De.setExtraStackFrame(n)}else De.setExtraStackFrame(null)}function Ve(e){if(e){var t=e._owner;w(Pe(e.type,e._source,t?t.type:null))}else w(null)}function je(){if(E.current){var e=$(E.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function Be(e){return null!=e&&void 0!==(t=e.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":"";var t}Te=!1;var Fe={};function ze(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=je();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!Fe[n]){Fe[n]=!0;var r="";e&&e._owner&&e._owner!==E.current&&(r=" It was passed a child from "+$(e._owner.type)+"."),Ve(e),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),Ve(null)}}}function We(e,t){if("object"==typeof e)if(z(e))for(var n=0;n<e.length;n++){var r=e[n];oe(r)&&ze(r,t)}else if(oe(e))e._store&&(e._store.validated=!0);else if(e){var a=h(e);if("function"==typeof a&&a!==e.entries)for(var o,i=a.call(e);!(o=i.next()).done;)oe(o.value)&&ze(o.value,t)}}function He(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==f)return;t=n.propTypes}if(t){var r=$(n);!function(e,t,n,r,a){var o=Function.call.bind(G);for(var i in e)if(o(e,i)){var s=void 0;try{if("function"!=typeof e[i]){var l=Error((r||"React class")+": prop type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[i](t,i,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(Me(a),C("%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).",r||"React class",n,i,typeof s),Me(null)),s instanceof Error&&!(s.message in Le)&&(Le[s.message]=!0,Me(a),C("Failed %s type: %s",n,s.message),Me(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||Te||(Te=!0,C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",$(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ue(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){Ve(e),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),Ve(null);break}}null!==e.ref&&(Ve(e),C("Invalid attribute `ref` supplied to `React.Fragment`."),Ve(null))}function $e(e,t,r){var o=me(e);if(!o){var i="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(i+=" 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 s,l=Be(t);i+=l||je(),null===e?s="null":z(e)?s="array":void 0!==e&&e.$$typeof===n?(s="<"+($(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,C("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,i)}var c=re.apply(this,arguments);if(null==c)return c;if(o)for(var u=2;u<arguments.length;u++)We(arguments[u],e);return e===a?Ue(c):He(c),c}var qe=!1,Ye=!1,Ze=null,Ge=0,Xe=!1;function Ke(e){e!==Ge-1&&C("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Ge=e}function Je(t,n,r){var a=b.current;if(null!==a)try{et(a),function(o){if(null===Ze)try{var i=("require"+Math.random()).slice(0,7);Ze=(e&&e[i]).call(e,"timers").setImmediate}catch(e){Ze=function(e){!1===Ye&&(Ye=!0,"undefined"==typeof MessageChannel&&C("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}Ze(function(){0===a.length?(b.current=null,n(t)):Je(t,n,r)})}()}catch(e){r(e)}else n(t)}var Qe=!1;function et(e){if(!Qe){Qe=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}e.length=0}catch(n){throw e=e.slice(t+1),n}finally{Qe=!1}}}var tt=$e,nt={map:fe,forEach:function(e,t,n){fe(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return fe(e,function(){t++}),t},toArray:function(e){return fe(e,function(e){return e})||[]},only:function(e){if(!oe(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}};t.Children=nt,t.Component=T,t.Fragment=a,t.Profiler=i,t.PureComponent=j,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=k,t.cloneElement=function(e,t,n){for(var r=ae.apply(this,arguments),a=2;a<arguments.length;a++)We(arguments[a],r.type);return He(r),r},t.createContext=function(e){var t={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:s,_context:t};var n=!1,r=!1,a=!1,o={$$typeof:l,_context:t};return Object.defineProperties(o,{Provider:{get:function(){return r||(r=!0,C("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return n||(n=!0,C("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){a||(S("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),a=!0)}}}),t.Consumer=o,t._currentRenderer=null,t._currentRenderer2=null,t},t.createElement=tt,t.createFactory=function(e){var t=$e.bind(null,e);return t.type=e,qe||(qe=!0,S("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return S("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===f?C("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?C("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&C("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||C("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,n={$$typeof:c,render:e};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n,e.name||e.displayName||(e.displayName=n)}}),n},t.isValidElement=oe,t.lazy=function(e){var t,n,r={$$typeof:p,_payload:{_status:-1,_result:e},_init:pe};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){C("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(e){C("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=e,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},t.memo=function(e,t){me(e)||C("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var n,r={$$typeof:f,type:e,compare:void 0===t?null:t};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(e.displayName=t)}}),r},t.startTransition=function(e,t){var n=g.transition;g.transition={};var r=g.transition;g.transition._updatedFibers=new Set;try{e()}finally{g.transition=n,null===n&&r._updatedFibers&&(r._updatedFibers.size>10&&S("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),r._updatedFibers.clear())}},t.unstable_act=function(e){var t=Ge;Ge++,null===b.current&&(b.current=[]);var n,r=b.isBatchingLegacy;try{if(b.isBatchingLegacy=!0,n=e(),!r&&b.didScheduleLegacyUpdate){var a=b.current;null!==a&&(b.didScheduleLegacyUpdate=!1,et(a))}}catch(e){throw Ke(t),e}finally{b.isBatchingLegacy=r}if(null!==n&&"object"==typeof n&&"function"==typeof n.then){var o=n,i=!1,s={then:function(e,n){i=!0,o.then(function(r){Ke(t),0===Ge?Je(r,e,n):e(r)},function(e){Ke(t),n(e)})}};return Xe||"undefined"==typeof Promise||Promise.resolve().then(function(){}).then(function(){i||(Xe=!0,C("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),s}var l=n;if(Ke(t),0===Ge){var c=b.current;return null!==c&&(et(c),b.current=null),{then:function(e,t){null===b.current?(b.current=[],Je(l,e,t)):e(l)}}}return{then:function(e,t){e(l)}}},t.useCallback=function(e,t){return ve().useCallback(e,t)},t.useContext=function(e){var t=ve();if(void 0!==e._context){var n=e._context;n.Consumer===e?C("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&C("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)},t.useDebugValue=function(e,t){return ve().useDebugValue(e,t)},t.useDeferredValue=function(e){return ve().useDeferredValue(e)},t.useEffect=function(e,t){return ve().useEffect(e,t)},t.useId=function(){return ve().useId()},t.useImperativeHandle=function(e,t,n){return ve().useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return ve().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return ve().useLayoutEffect(e,t)},t.useMemo=function(e,t){return ve().useMemo(e,t)},t.useReducer=function(e,t,n){return ve().useReducer(e,t,n)},t.useRef=function(e){return ve().useRef(e)},t.useState=function(e){return ve().useState(e)},t.useSyncExternalStore=function(e,t,n){return ve().useSyncExternalStore(e,t,n)},t.useTransition=function(){return ve().useTransition()},t.version="18.1.0","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}),F=a(function(e){e.exports="production"===process.env.NODE_ENV?j:B}),z=/*#__PURE__*/r({__proto__:null,default:F},[F]),W=/*#__PURE__*/function(){function e(e){var t=this;this._insertTag=function(e){t.container.insertBefore(e,0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if("production"!==process.env.NODE_ENV){var n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n}if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(t){"production"===process.env.NODE_ENV||/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),H="-ms-",U="-webkit-",$=Math.abs,q=String.fromCharCode,Y=Object.assign;function Z(e){return e.trim()}function G(e,t,n){return e.replace(t,n)}function X(e,t){return e.indexOf(t)}function K(e,t){return 0|e.charCodeAt(t)}function J(e,t,n){return e.slice(t,n)}function Q(e){return e.length}function ee(e){return e.length}function te(e,t){return t.push(e),e}var ne=1,re=1,ae=0,oe=0,ie=0,se="";function le(e,t,n,r,a,o,i){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:ne,column:re,length:i,return:""}}function ce(e,t){return Y(le("",null,null,"",null,null,0),e,{length:-e.length},t)}function ue(){return ie=oe>0?K(se,--oe):0,re--,10===ie&&(re=1,ne--),ie}function de(){return ie=oe<ae?K(se,oe++):0,re++,10===ie&&(re=1,ne++),ie}function fe(){return K(se,oe)}function pe(){return oe}function me(e,t){return J(se,e,t)}function ve(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function he(e){return ne=re=1,ae=Q(se=e),oe=0,[]}function ye(e){return se="",e}function ge(e){return Z(me(oe-1,xe(91===e?e+2:40===e?e+1:e)))}function be(e){for(;(ie=fe())&&ie<33;)de();return ve(e)>2||ve(ie)>3?"":" "}function Ee(e,t){for(;--t&&de()&&!(ie<48||ie>102||ie>57&&ie<65||ie>70&&ie<97););return me(e,pe()+(t<6&&32==fe()&&32==de()))}function xe(e){for(;de();)switch(ie){case e:return oe;case 34:case 39:34!==e&&39!==e&&xe(ie);break;case 40:41===e&&xe(e);break;case 92:de()}return oe}function _e(e,t){for(;de()&&e+ie!==57&&(e+ie!==84||47!==fe()););return"/*"+me(t,oe-1)+"*"+q(47===e?e:de())}function we(e){for(;!ve(fe());)de();return me(e,oe)}function ke(e){return ye(Se("",null,null,null,[""],e=he(e),0,[0],e))}function Se(e,t,n,r,a,o,i,s,l){for(var c=0,u=0,d=i,f=0,p=0,m=0,v=1,h=1,y=1,g=0,b="",E=a,x=o,_=r,w=b;h;)switch(m=g,g=de()){case 40:if(108!=m&&58==w.charCodeAt(d-1)){-1!=X(w+=G(ge(g),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:w+=ge(g);break;case 9:case 10:case 13:case 32:w+=be(m);break;case 92:w+=Ee(pe()-1,7);continue;case 47:switch(fe()){case 42:case 47:te(Oe(_e(de(),pe()),t,n),l);break;default:w+="/"}break;case 123*v:s[c++]=Q(w)*y;case 125*v:case 59:case 0:switch(g){case 0:case 125:h=0;case 59+u:p>0&&Q(w)-d&&te(p>32?Ae(w+";",r,n,d-1):Ae(G(w," ","")+";",r,n,d-2),l);break;case 59:w+=";";default:if(te(_=Ce(w,t,n,c,u,a,s,b,E=[],x=[],d),o),123===g)if(0===u)Se(w,t,_,_,E,o,d,s,x);else switch(f){case 100:case 109:case 115:Se(e,_,_,r&&te(Ce(e,_,_,0,0,a,s,b,a,E=[],d),x),a,x,d,s,r?E:x);break;default:Se(w,_,_,_,[""],x,0,s,x)}}c=u=p=0,v=y=1,b=w="",d=i;break;case 58:d=1+Q(w),p=m;default:if(v<1)if(123==g)--v;else if(125==g&&0==v++&&125==ue())continue;switch(w+=q(g),g*v){case 38:y=u>0?1:(w+="\f",-1);break;case 44:s[c++]=(Q(w)-1)*y,y=1;break;case 64:45===fe()&&(w+=ge(de())),f=fe(),u=d=Q(b=w+=we(pe())),g++;break;case 45:45===m&&2==Q(w)&&(v=0)}}return o}function Ce(e,t,n,r,a,o,i,s,l,c,u){for(var d=a-1,f=0===a?o:[""],p=ee(f),m=0,v=0,h=0;m<r;++m)for(var y=0,g=J(e,d+1,d=$(v=i[m])),b=e;y<p;++y)(b=Z(v>0?f[y]+" "+g:G(g,/&\f/g,f[y])))&&(l[h++]=b);return le(e,t,n,0===a?"rule":s,l,c,u)}function Oe(e,t,n){return le(e,t,n,"comm",q(ie),J(e,2,-2),0)}function Ae(e,t,n,r){return le(e,t,n,"decl",J(e,0,r),J(e,r+1,-1),r)}function Ne(e,t){switch(function(e,t){return(((t<<2^K(e,0))<<2^K(e,1))<<2^K(e,2))<<2^K(e,3)}(e,t)){case 5103:return U+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return U+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+"-moz-"+e+H+e+e;case 6828:case 4268:return U+e+H+e+e;case 6165:return U+e+H+"flex-"+e+e;case 5187:return U+e+G(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return U+e+H+"flex-item-"+G(e,/flex-|-self/,"")+e;case 4675:return U+e+H+"flex-line-pack"+G(e,/align-content|flex-|-self/,"")+e;case 5548:return U+e+H+G(e,"shrink","negative")+e;case 5292:return U+e+H+G(e,"basis","preferred-size")+e;case 6060:return U+"box-"+G(e,"-grow","")+U+e+H+G(e,"grow","positive")+e;case 4554:return U+G(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return G(G(G(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return G(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return G(G(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4095:case 3583:case 4068:case 2532:return G(e,/(.+)-inline(.+)/,U+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Q(e)-1-t>6)switch(K(e,t+1)){case 109:if(45!==K(e,t+4))break;case 102:return G(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==K(e,t+3)?"$3":"$2-$3"))+e;case 115:return~X(e,"stretch")?Ne(G(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==K(e,t+1))break;case 6444:switch(K(e,Q(e)-3-(~X(e,"!important")&&10))){case 107:return G(e,":",":"+U)+e;case 101:return G(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+U+(45===K(e,14)?"inline-":"")+"box$3$1"+U+"$2$3$1"+H+"$2box$3")+e}break;case 5936:switch(K(e,t+11)){case 114:return U+e+H+G(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+H+G(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+H+G(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return U+e+H+e+e}return e}function Re(e,t){for(var n="",r=ee(e),a=0;a<r;a++)n+=t(e[a],a,e,t)||"";return n}function Ie(e,t,n,r){switch(e.type){case"@import":case"decl":return e.return=e.return||e.value;case"comm":return"";case"@keyframes":return e.return=e.value+"{"+Re(e.children,r)+"}";case"rule":e.value=e.props.join(",")}return Q(n=Re(e.children,r))?e.return=e.value+"{"+n+"}":""}function Pe(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Te=function(e,t,n){for(var r=0,a=0;r=a,a=fe(),38===r&&12===a&&(t[n]=1),!ve(a);)de();return me(e,oe)},Le=/* #__PURE__ */new WeakMap,De=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Le.get(n))&&!r){Le.set(e,!0);for(var a=[],o=function(e,t){return ye(function(e,t){var n=-1,r=44;do{switch(ve(r)){case 0:38===r&&12===fe()&&(t[n]=1),e[n]+=Te(oe-1,t,n);break;case 2:e[n]+=ge(r);break;case 4:if(44===r){e[++n]=58===fe()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=q(r)}}while(r=de());return e}(he(e),t))}(t,a),i=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<i.length;c++,l++)e.props[l]=a[s]?o[s].replace(/&\f/g,i[c]):i[c]+" "+o[s]}}},Me=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Ve=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},je=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Be=function(e,t,n){Ve(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),je(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!Ve(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),je(e)))},Fe=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case"decl":e.return=Ne(e.value,e.length);break;case"@keyframes":return Re([ce(e,{value:G(e.value,"@","@"+U)})],r);case"rule":if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Re([ce(e,{props:[G(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Re([ce(e,{props:[G(t,/:(plac\w+)/,":-webkit-input-$1")]}),ce(e,{props:[G(t,/:(plac\w+)/,":-moz-$1")]}),ce(e,{props:[G(t,/:(plac\w+)/,H+"input-$1")]})],r)}return""})}}],ze=function(e){var t=e.key;if("production"!==process.env.NODE_ENV&&!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r=e.stylisPlugins||Fe;if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var a,o,i={},s=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;s.push(e)});var l=[De,Me];"production"!==process.env.NODE_ENV&&l.push(function(e){return function(t,n,r){if("rule"===t.type){var a,o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o&&!0!==e.compat){var i=n>0?r[n-1]:null;if(i&&function(e){return!!e&&"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1}((a=i.children).length?a[a.length-1]:null))return;o.forEach(function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')})}}}}({get compat(){return p.compat}}),Be);var c,u,d=[Ie,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?c.insert(e.return):e.value&&"comm"!==e.type&&c.insert(e.value+"{}"))}:(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],f=function(e){var t=ee(e);return function(n,r,a,o){for(var i="",s=0;s<t;s++)i+=e[s](n,r,a,o)||"";return i}}(l.concat(r,d));o=function(e,t,n,r){c=n,"production"!==process.env.NODE_ENV&&void 0!==t.map&&(c={insert:function(e){n.insert(e+t.map)}}),Re(ke(e?e+"{"+t.styles+"}":t.styles),f),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new W({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return p.sheet.hydrate(s),p};function We(){return We=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},We.apply(this,arguments)}var He="function"==typeof Symbol&&Symbol.for,Ue=He?Symbol.for("react.element"):60103,$e=He?Symbol.for("react.portal"):60106,qe=He?Symbol.for("react.fragment"):60107,Ye=He?Symbol.for("react.strict_mode"):60108,Ze=He?Symbol.for("react.profiler"):60114,Ge=He?Symbol.for("react.provider"):60109,Xe=He?Symbol.for("react.context"):60110,Ke=He?Symbol.for("react.async_mode"):60111,Je=He?Symbol.for("react.concurrent_mode"):60111,Qe=He?Symbol.for("react.forward_ref"):60112,et=He?Symbol.for("react.suspense"):60113,tt=He?Symbol.for("react.suspense_list"):60120,nt=He?Symbol.for("react.memo"):60115,rt=He?Symbol.for("react.lazy"):60116,at=He?Symbol.for("react.block"):60121,ot=He?Symbol.for("react.fundamental"):60117,it=He?Symbol.for("react.responder"):60118,st=He?Symbol.for("react.scope"):60119;function lt(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ue:switch(e=e.type){case Ke:case Je:case qe:case Ze:case Ye:case et:return e;default:switch(e=e&&e.$$typeof){case Xe:case Qe:case rt:case nt:case Ge:return e;default:return t}}case $e:return t}}}function ct(e){return lt(e)===Je}var ut={AsyncMode:Ke,ConcurrentMode:Je,ContextConsumer:Xe,ContextProvider:Ge,Element:Ue,ForwardRef:Qe,Fragment:qe,Lazy:rt,Memo:nt,Portal:$e,Profiler:Ze,StrictMode:Ye,Suspense:et,isAsyncMode:function(e){return ct(e)||lt(e)===Ke},isConcurrentMode:ct,isContextConsumer:function(e){return lt(e)===Xe},isContextProvider:function(e){return lt(e)===Ge},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ue},isForwardRef:function(e){return lt(e)===Qe},isFragment:function(e){return lt(e)===qe},isLazy:function(e){return lt(e)===rt},isMemo:function(e){return lt(e)===nt},isPortal:function(e){return lt(e)===$e},isProfiler:function(e){return lt(e)===Ze},isStrictMode:function(e){return lt(e)===Ye},isSuspense:function(e){return lt(e)===et},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===qe||e===Je||e===Ze||e===Ye||e===et||e===tt||"object"==typeof e&&null!==e&&(e.$$typeof===rt||e.$$typeof===nt||e.$$typeof===Ge||e.$$typeof===Xe||e.$$typeof===Qe||e.$$typeof===ot||e.$$typeof===it||e.$$typeof===st||e.$$typeof===at)},typeOf:lt},dt=a(function(e,t){"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case c:case u:case a:case i:case o:case f:return p;default:var h=p&&p.$$typeof;switch(h){case l:case d:case v:case m:case s:return h;default:return t}}case r:return t}}}var x=u,_=l,w=s,k=n,S=d,C=a,O=v,A=m,N=r,R=i,I=o,P=f,T=!1;function L(e){return E(e)===u}t.AsyncMode=c,t.ConcurrentMode=x,t.ContextConsumer=_,t.ContextProvider=w,t.Element=k,t.ForwardRef=S,t.Fragment=C,t.Lazy=O,t.Memo=A,t.Portal=N,t.Profiler=R,t.StrictMode=I,t.Suspense=P,t.isAsyncMode=function(e){return T||(T=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(e)||E(e)===c},t.isConcurrentMode=L,t.isContextConsumer=function(e){return E(e)===l},t.isContextProvider=function(e){return E(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return E(e)===d},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===v},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===r},t.isProfiler=function(e){return E(e)===i},t.isStrictMode=function(e){return E(e)===o},t.isSuspense=function(e){return E(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===u||e===i||e===o||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===y||e.$$typeof===g||e.$$typeof===b||e.$$typeof===h)},t.typeOf=E}()});function ft(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "}),r}a(function(e){e.exports="production"===process.env.NODE_ENV?ut:dt});var pt=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},mt=function(e,t,n){pt(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+r:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}};function vt(e){for(var t,n=0,r=0,a=e.length;a>=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}var ht={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},yt="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",gt=/[A-Z]|^ms/g,bt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Et=function(e){return 45===e.charCodeAt(1)},xt=function(e){return null!=e&&"boolean"!=typeof e},_t=/* #__PURE__ */Pe(function(e){return Et(e)?e:e.replace(gt,"-$&").toLowerCase()}),wt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(bt,function(e,t,n){return Tt={name:t,styles:n,next:Tt},t})}return 1===ht[e]||Et(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var kt=/(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,St=["normal","none","initial","inherit","unset"],Ct=wt,Ot=/^-ms-/,At=/-(.)/g,Nt={};wt=function(e,t){if("content"===e&&("string"!=typeof t||-1===St.indexOf(t)&&!kt.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=Ct(e,t);return""===n||Et(e)||-1===e.indexOf("-")||void 0!==Nt[e]||(Nt[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Ot,"ms-").replace(At,function(e,t){return t.toUpperCase()})+"?")),n}}var Rt="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function It(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===n.toString())throw new Error(Rt);return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Tt={name:n.name,styles:n.styles,next:Tt},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Tt={name:r.name,styles:r.styles,next:Tt},r=r.next;var a=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(a+=n.map),a}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=It(e,t,n[a])+";";else for(var o in n){var i=n[o];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=o+"{"+t[i]+"}":xt(i)&&(r+=_t(o)+":"+wt(o,i)+";");else{if("NO_COMPONENT_SELECTOR"===o&&"production"!==process.env.NODE_ENV)throw new Error(Rt);if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=It(e,t,i);switch(o){case"animation":case"animationName":r+=_t(o)+":"+s+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===o&&console.error("You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key)."),r+=o+"{"+s+"}"}}else for(var l=0;l<i.length;l++)xt(i[l])&&(r+=_t(o)+":"+wt(o,i[l])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var o=Tt,i=n(e);return Tt=o,It(e,t,i)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var s=[],l=n.replace(bt,function(e,t,n){var r="animation"+s.length;return s.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"});s.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(s,["`"+l+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+l+"`")}}if(null==t)return n;var c=t[n];return void 0!==c?c:n}var Pt,Tt,Lt=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(Pt=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Dt=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,a="";Tt=void 0;var o,i=e[0];null==i||void 0===i.raw?(r=!1,a+=It(n,t,i)):("production"!==process.env.NODE_ENV&&void 0===i[0]&&console.error(yt),a+=i[0]);for(var s=1;s<e.length;s++)a+=It(n,t,e[s]),r&&("production"!==process.env.NODE_ENV&&void 0===i[s]&&console.error(yt),a+=i[s]);"production"!==process.env.NODE_ENV&&(a=a.replace(Pt,function(e){return o=e,""})),Lt.lastIndex=0;for(var l,c="";null!==(l=Lt.exec(a));)c+="-"+l[1];var u=vt(a)+c;return"production"!==process.env.NODE_ENV?{name:u,styles:a,map:o,next:Tt,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:a,next:Tt}},Mt={}.hasOwnProperty,Vt=/* #__PURE__ */F.createContext("undefined"!=typeof HTMLElement?/* #__PURE__ */ze({key:"css"}):null);"production"!==process.env.NODE_ENV&&(Vt.displayName="EmotionCacheContext");var jt=function(e){/*#__PURE__*/
2
- return F.forwardRef(function(t,n){var r=F.useContext(Vt);return e(t,r,n)})},Bt=/* #__PURE__ */F.createContext({});"production"!==process.env.NODE_ENV&&(Bt.displayName="EmotionThemeContext");var Ft=z.useInsertionEffect?z.useInsertionEffect:function(e){e()};function zt(e){Ft(e)}var Wt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return pt(t,n,r),zt(function(){return mt(t,n,r)}),null},Ht=/* #__PURE__ */jt(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var a=e.__EMOTION_TYPE_PLEASE_DO_NOT_USE__,o=[r],i="";"string"==typeof e.className?i=ft(t.registered,o,e.className):null!=e.className&&(i=e.className+" ");var s=Dt(o,void 0,F.useContext(Bt));if("production"!==process.env.NODE_ENV&&-1===s.name.indexOf("-")){var l=e.__EMOTION_LABEL_PLEASE_DO_NOT_USE__;l&&(s=Dt([s,"label:"+l+";"]))}i+=t.key+"-"+s.name;var c={};for(var u in e)!Mt.call(e,u)||"css"===u||"__EMOTION_TYPE_PLEASE_DO_NOT_USE__"===u||"production"!==process.env.NODE_ENV&&"__EMOTION_LABEL_PLEASE_DO_NOT_USE__"===u||(c[u]=e[u]);return c.ref=n,c.className=i,/*#__PURE__*/F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement(Wt,{cache:t,serialized:s,isStringTag:"string"==typeof a}),/*#__PURE__*/F.createElement(a,c))});"production"!==process.env.NODE_ENV&&(Ht.displayName="EmotionCssPropInternal");var Ut=z.useInsertionEffect?z.useInsertionEffect:F.useLayoutEffect,$t=!1,qt=/* #__PURE__ */jt(function(e,t){"production"===process.env.NODE_ENV||$t||!e.className&&!e.css||(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),$t=!0);var n=Dt([e.styles],void 0,F.useContext(Bt)),r=F.useRef();return Ut(function(){var e=t.key+"-global",a=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,i=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),null!==i&&(o=!0,i.setAttribute("data-emotion",e),a.hydrate([i])),r.current=[a,o],function(){a.flush()}},[t]),Ut(function(){var e=r.current,a=e[0];e[1]?e[1]=!1:(void 0!==n.next&&mt(t,n.next,!0),a.tags.length&&(a.before=a.tags[a.tags.length-1].nextElementSibling,a.flush()),t.insert("",n,a,!1))},[t,n.name]),null});function Yt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Dt(t)}"production"!==process.env.NODE_ENV&&(qt.displayName="EmotionGlobal");var Zt=function e(t){for(var n=t.length,r=0,a="";r<n;r++){var o=t[r];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var s in"production"!==process.env.NODE_ENV&&void 0!==o.styles&&void 0!==o.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),i="",o)o[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=o}i&&(a&&(a+=" "),a+=i)}}return a};function Gt(e,t,n){var r=[],a=ft(e,r,n);return r.length<2?n:a+t(r)}var Xt=function(e){var t=e.cache,n=e.serializedArr;return zt(function(){for(var e=0;e<n.length;e++)mt(t,n[e],!1)}),null},Kt=/* #__PURE__ */jt(function(e,t){var n=!1,r=[],a=function(){if(n&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var e=arguments.length,a=new Array(e),o=0;o<e;o++)a[o]=arguments[o];var i=Dt(a,t.registered);return r.push(i),pt(t,i,!1),t.key+"-"+i.name},o={css:a,cx:function(){if(n&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return Gt(t.registered,a,Zt(r))},theme:F.useContext(Bt)},i=e.children(o);return n=!0,/*#__PURE__*/F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement(Xt,{cache:t,serializedArr:r}),i)});if("production"!==process.env.NODE_ENV&&(Kt.displayName="EmotionClassNames"),"production"!==process.env.NODE_ENV&&"undefined"==typeof jest){var Jt="undefined"!=typeof globalThis?globalThis:window,Qt="__EMOTION_REACT_"+"11.9.3".split(".")[0]+"__";Jt[Qt]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Jt[Qt]=!0}function en(e,n){if(null!=e)if(t.isFunction(e))e(n);else try{e.current=n}catch(t){throw new Error("Cannot assign value '"+n+"' to ref '"+e+"'")}}function tn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach(function(t){return en(t,e)})}}function nn(e){void 0===e&&(e={});var t=e.strict,n=void 0===t||t,r=e.errorMessage,a=void 0===r?"useContext: `context` is undefined. Seems you forgot to wrap component within the Provider":r,o=e.name,i=/*#__PURE__*/F.createContext(void 0);return i.displayName=o,[i.Provider,function e(){var t=F.useContext(i);if(!t&&n){var r=new Error(a);throw r.name="ContextError",null==Error.captureStackTrace||Error.captureStackTrace(r,e),r}return t},i]}function rn(e){return F.Children.toArray(e).filter(function(e){/*#__PURE__*/
3
- return F.isValidElement(e)})}var an=t.isBrowser?F.useLayoutEffect:F.useEffect;function on(e,t){void 0===t&&(t=[]);var n=F.useRef(e);return an(function(){n.current=e}),F.useCallback(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current.apply(n,t)},t)}function sn(e,n,r,a){var o=on(n);return F.useEffect(function(){var i,s=null!=(i=t.runIfFn(r))?i:document;if(n)return s.addEventListener(e,o,a),function(){s.removeEventListener(e,o,a)}},[e,r,a,o,n]),function(){var n;(null!=(n=t.runIfFn(r))?n:document).removeEventListener(e,o,a)}}function ln(e){void 0===e&&(e=!1);var t=F.useState(e),n=t[0],r=t[1],a=F.useMemo(function(){return{on:function(){return r(!0)},off:function(){return r(!1)},toggle:function(){return r(function(e){return!e})}}},[]);return[n,a]}function cn(e,t){var n=void 0!==e;return[n,n&&void 0!==e?e:t]}function un(e){var n=e.value,r=e.defaultValue,a=e.shouldUpdate,o=void 0===a?function(e,t){return e!==t}:a,i=on(e.onChange),s=on(o),l=F.useState(r),c=l[1],u=void 0!==n,d=u?n:l[0],f=F.useCallback(function(e){var n=t.runIfFn(e,d);s(d,n)&&(u||c(n),i(n))},[u,i,d,s]);return[d,f]}function dn(){return dn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dn.apply(this,arguments)}function fn(e,t){var n=F.useId();return F.useMemo(function(){return e||[t,n].filter(Boolean).join("-")},[e,t,n])}var pn=function(e,t){var n=F.useRef(!1),r=F.useRef(!1);F.useEffect(function(){if(n.current&&r.current)return e();r.current=!0},t),F.useEffect(function(){return n.current=!0,function(){n.current=!1}},[])};function mn(e,t){return void 0===t&&(t=[]),F.useEffect(function(){return function(){return e()}},t)}function vn(e,t){if(null!=e)if("function"!=typeof e)try{e.current=t}catch(n){throw new Error("Cannot assign value '"+t+"' to ref '"+e+"'")}else e(t)}function hn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return F.useMemo(function(){return t.every(function(e){return null==e})?null:function(e){t.forEach(function(t){t&&vn(t,e)})}},t)}function yn(e,n){var r,a=e.target;return!(e.button>0||a&&!t.getOwnerDocument(a).contains(a)||null!=(r=n.current)&&r.contains(a))}var gn=/*#__PURE__*/F.createContext({});function bn(){return bn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bn.apply(this,arguments)}t.__DEV__&&(gn.displayName="ColorModeContext");var En,xn,_n=function(e){return t.isString(e)?e.replace(/!(important)?$/,"").trim():e},wn=function(e,n){return function(r){var a=String(n),o=function(e){return/!(important)?$/.test(e)}(a),i=_n(a),s=e?e+"."+i:i,l=t.isObject(r.__cssMap)&&s in r.__cssMap?r.__cssMap[s].varRef:n;return l=_n(l),o?l+" !important":l}};function kn(e){var t=e.scale,n=e.transform,r=e.compose;return function(e,a){var o,i=wn(t,e)(a),s=null!=(o=null==n?void 0:n(i,a))?o:i;return r&&(s=r(s,a)),s}}function Sn(e,t){return function(n){var r={property:n,scale:e};return r.transform=kn({scale:e,transform:t}),r}}var Cn=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"],On={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},An={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"},Nn={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Rn=((En={})["& > :not(style) ~ :not(style)"]={marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"},En),In=((xn={})["& > :not(style) ~ :not(style)"]={marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"},xn);function Pn(e,t){return Pn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pn(e,t)}function Tn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pn(e,t)}function Ln(){Ln=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,a){var o=new RegExp(e,r);return t.set(o,a||t.get(e)),Pn(o,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce(function(t,n){return t[n]=e[r[n]],t},Object.create(null))}return Tn(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);return n&&(n.groups=r(n,this)),n},n.prototype[Symbol.replace]=function(n,a){if("string"==typeof a){var o=t.get(this);return e[Symbol.replace].call(this,n,a.replace(/\$<([^>]+)>/g,function(e,t){return"$"+o[t]}))}if("function"==typeof a){var i=this;return e[Symbol.replace].call(this,n,function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,i)),a.apply(this,e)})}return e[Symbol.replace].call(this,n,a)},Ln.apply(this,arguments)}var Dn={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},Mn=new Set(Object.values(Dn)),Vn=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),jn=function(e){return e.trim()},Bn=function(e){return t.isString(e)&&e.includes("(")&&e.includes(")")},Fn=function(e){return function(t){return e+"("+t+")"}},zn={filter:function(e){return"auto"!==e?e:On},backdropFilter:function(e){return"auto"!==e?e:An},ring:function(e){return function(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}(zn.px(e))},bgClip:function(e){return"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform:function(e){return"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))"].concat(Cn).join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)"].concat(Cn).join(" "):e},px:function(e){if(null==e)return e;var n=function(e){var t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e);return n.unitless||t.isNumber(e)?e+"px":e},fraction:function(e){return!t.isNumber(e)||e>1?e:100*e+"%"},float:function(e,t){return"rtl"===t.direction?{left:"right",right:"left"}[e]:e},degree:function(e){if(t.isCssVar(e)||null==e)return e;var n=t.isString(e)&&!e.endsWith("deg");return t.isNumber(e)||n?e+"deg":e},gradient:function(e,t){return function(e,t){var n,r;if(null==e||Vn.has(e))return e;var a=null!=(n=null==(r=/*#__PURE__*/Ln(/(^[a-z-A-Z]+)\(((.*))\)/g,{type:1,values:2}).exec(e))?void 0:r.groups)?n:{},o=a.type,i=a.values;if(!o||!i)return e;var s=o.includes("-gradient")?o:o+"-gradient",l=i.split(",").map(jn).filter(Boolean),c=l[0],u=l.slice(1);if(0===(null==u?void 0:u.length))return e;u.unshift(c in Dn?Dn[c]:c);var d=u.map(function(e){if(Mn.has(e))return e;var n=e.indexOf(" "),r=-1!==n?[e.substr(0,n),e.substr(n+1)]:[e],a=r[0],o=r[1],i=Bn(o)?o:o&&o.split(" "),s="colors."+a,l=s in t.__cssMap?t.__cssMap[s].varRef:a;return i?[l].concat(Array.isArray(i)?i:[i]).join(" "):l});return s+"("+d.join(", ")+")"}(e,null!=t?t:{})},blur:Fn("blur"),opacity:Fn("opacity"),brightness:Fn("brightness"),contrast:Fn("contrast"),dropShadow:Fn("drop-shadow"),grayscale:Fn("grayscale"),hueRotate:Fn("hue-rotate"),invert:Fn("invert"),saturate:Fn("saturate"),sepia:Fn("sepia"),bgImage:function(e){return null==e||Bn(e)||Vn.has(e)?e:"url("+e+")"},outline:function(e){var t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection:function(e){var t,n=null!=(t=Nn[e])?t:{},r=n.space,a=n.divide,o={flexDirection:e};return r&&(o[r]=1),a&&(o[a]=1),o}},Wn={borderWidths:Sn("borderWidths"),borderStyles:Sn("borderStyles"),colors:Sn("colors"),borders:Sn("borders"),radii:Sn("radii",zn.px),space:Sn("space",zn.px),spaceT:Sn("space",zn.px),degreeT:function(e){return{property:e,transform:zn.degree}},prop:function(e,t,n){return bn({property:e,scale:t},t&&{transform:kn({scale:t,transform:n})})},propT:function(e,t){return{property:e,transform:t}},sizes:Sn("sizes",zn.px),sizesT:Sn("sizes",zn.fraction),shadows:Sn("shadows"),logical:function(e){var t,n,r,a=e.scale,o=e.transform;return{scale:a,property:(t=e.property,n=t.rtl,r=t.ltr,function(e){return"rtl"===e.direction?n:r}),transform:a?kn({scale:a,compose:o}):o}},blur:Sn("blur",zn.blur)},Hn={background:Wn.colors("background"),backgroundColor:Wn.colors("backgroundColor"),backgroundImage:Wn.propT("backgroundImage",zn.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:zn.bgClip},bgSize:Wn.prop("backgroundSize"),bgPosition:Wn.prop("backgroundPosition"),bg:Wn.colors("background"),bgColor:Wn.colors("backgroundColor"),bgPos:Wn.prop("backgroundPosition"),bgRepeat:Wn.prop("backgroundRepeat"),bgAttachment:Wn.prop("backgroundAttachment"),bgGradient:Wn.propT("backgroundImage",zn.gradient),bgClip:{transform:zn.bgClip}};Object.assign(Hn,{bgImage:Hn.backgroundImage,bgImg:Hn.backgroundImage});var Un={border:Wn.borders("border"),borderWidth:Wn.borderWidths("borderWidth"),borderStyle:Wn.borderStyles("borderStyle"),borderColor:Wn.colors("borderColor"),borderRadius:Wn.radii("borderRadius"),borderTop:Wn.borders("borderTop"),borderBlockStart:Wn.borders("borderBlockStart"),borderTopLeftRadius:Wn.radii("borderTopLeftRadius"),borderStartStartRadius:Wn.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:Wn.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:Wn.radii("borderTopRightRadius"),borderStartEndRadius:Wn.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:Wn.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:Wn.borders("borderRight"),borderInlineEnd:Wn.borders("borderInlineEnd"),borderBottom:Wn.borders("borderBottom"),borderBlockEnd:Wn.borders("borderBlockEnd"),borderBottomLeftRadius:Wn.radii("borderBottomLeftRadius"),borderBottomRightRadius:Wn.radii("borderBottomRightRadius"),borderLeft:Wn.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:Wn.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:Wn.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:Wn.borders(["borderLeft","borderRight"]),borderInline:Wn.borders("borderInline"),borderY:Wn.borders(["borderTop","borderBottom"]),borderBlock:Wn.borders("borderBlock"),borderTopWidth:Wn.borderWidths("borderTopWidth"),borderBlockStartWidth:Wn.borderWidths("borderBlockStartWidth"),borderTopColor:Wn.colors("borderTopColor"),borderBlockStartColor:Wn.colors("borderBlockStartColor"),borderTopStyle:Wn.borderStyles("borderTopStyle"),borderBlockStartStyle:Wn.borderStyles("borderBlockStartStyle"),borderBottomWidth:Wn.borderWidths("borderBottomWidth"),borderBlockEndWidth:Wn.borderWidths("borderBlockEndWidth"),borderBottomColor:Wn.colors("borderBottomColor"),borderBlockEndColor:Wn.colors("borderBlockEndColor"),borderBottomStyle:Wn.borderStyles("borderBottomStyle"),borderBlockEndStyle:Wn.borderStyles("borderBlockEndStyle"),borderLeftWidth:Wn.borderWidths("borderLeftWidth"),borderInlineStartWidth:Wn.borderWidths("borderInlineStartWidth"),borderLeftColor:Wn.colors("borderLeftColor"),borderInlineStartColor:Wn.colors("borderInlineStartColor"),borderLeftStyle:Wn.borderStyles("borderLeftStyle"),borderInlineStartStyle:Wn.borderStyles("borderInlineStartStyle"),borderRightWidth:Wn.borderWidths("borderRightWidth"),borderInlineEndWidth:Wn.borderWidths("borderInlineEndWidth"),borderRightColor:Wn.colors("borderRightColor"),borderInlineEndColor:Wn.colors("borderInlineEndColor"),borderRightStyle:Wn.borderStyles("borderRightStyle"),borderInlineEndStyle:Wn.borderStyles("borderInlineEndStyle"),borderTopRadius:Wn.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:Wn.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:Wn.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:Wn.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Un,{rounded:Un.borderRadius,roundedTop:Un.borderTopRadius,roundedTopLeft:Un.borderTopLeftRadius,roundedTopRight:Un.borderTopRightRadius,roundedTopStart:Un.borderStartStartRadius,roundedTopEnd:Un.borderStartEndRadius,roundedBottom:Un.borderBottomRadius,roundedBottomLeft:Un.borderBottomLeftRadius,roundedBottomRight:Un.borderBottomRightRadius,roundedBottomStart:Un.borderEndStartRadius,roundedBottomEnd:Un.borderEndEndRadius,roundedLeft:Un.borderLeftRadius,roundedRight:Un.borderRightRadius,roundedStart:Un.borderInlineStartRadius,roundedEnd:Un.borderInlineEndRadius,borderStart:Un.borderInlineStart,borderEnd:Un.borderInlineEnd,borderTopStartRadius:Un.borderStartStartRadius,borderTopEndRadius:Un.borderStartEndRadius,borderBottomStartRadius:Un.borderEndStartRadius,borderBottomEndRadius:Un.borderEndEndRadius,borderStartRadius:Un.borderInlineStartRadius,borderEndRadius:Un.borderInlineEndRadius,borderStartWidth:Un.borderInlineStartWidth,borderEndWidth:Un.borderInlineEndWidth,borderStartColor:Un.borderInlineStartColor,borderEndColor:Un.borderInlineEndColor,borderStartStyle:Un.borderInlineStartStyle,borderEndStyle:Un.borderInlineEndStyle});var $n={color:Wn.colors("color"),textColor:Wn.colors("color"),fill:Wn.colors("fill"),stroke:Wn.colors("stroke")},qn={boxShadow:Wn.shadows("boxShadow"),mixBlendMode:!0,blendMode:Wn.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:Wn.prop("backgroundBlendMode"),opacity:!0};Object.assign(qn,{shadow:qn.boxShadow});var Yn={filter:{transform:zn.filter},blur:Wn.blur("--chakra-blur"),brightness:Wn.propT("--chakra-brightness",zn.brightness),contrast:Wn.propT("--chakra-contrast",zn.contrast),hueRotate:Wn.degreeT("--chakra-hue-rotate"),invert:Wn.propT("--chakra-invert",zn.invert),saturate:Wn.propT("--chakra-saturate",zn.saturate),dropShadow:Wn.propT("--chakra-drop-shadow",zn.dropShadow),backdropFilter:{transform:zn.backdropFilter},backdropBlur:Wn.blur("--chakra-backdrop-blur"),backdropBrightness:Wn.propT("--chakra-backdrop-brightness",zn.brightness),backdropContrast:Wn.propT("--chakra-backdrop-contrast",zn.contrast),backdropHueRotate:Wn.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:Wn.propT("--chakra-backdrop-invert",zn.invert),backdropSaturate:Wn.propT("--chakra-backdrop-saturate",zn.saturate)},Zn={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:zn.flexDirection},experimental_spaceX:{static:Rn,transform:kn({scale:"space",transform:function(e){return null!==e?{"--chakra-space-x":e}:null}})},experimental_spaceY:{static:In,transform:kn({scale:"space",transform:function(e){return null!=e?{"--chakra-space-y":e}:null}})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:Wn.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:Wn.space("gap"),rowGap:Wn.space("rowGap"),columnGap:Wn.space("columnGap")};Object.assign(Zn,{flexDir:Zn.flexDirection});var Gn={gridGap:Wn.space("gridGap"),gridColumnGap:Wn.space("gridColumnGap"),gridRowGap:Wn.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},Xn={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:zn.outline},outlineOffset:!0,outlineColor:Wn.colors("outlineColor")},Kn={width:Wn.sizesT("width"),inlineSize:Wn.sizesT("inlineSize"),height:Wn.sizes("height"),blockSize:Wn.sizes("blockSize"),boxSize:Wn.sizes(["width","height"]),minWidth:Wn.sizes("minWidth"),minInlineSize:Wn.sizes("minInlineSize"),minHeight:Wn.sizes("minHeight"),minBlockSize:Wn.sizes("minBlockSize"),maxWidth:Wn.sizes("maxWidth"),maxInlineSize:Wn.sizes("maxInlineSize"),maxHeight:Wn.sizes("maxHeight"),maxBlockSize:Wn.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:Wn.propT("float",zn.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Kn,{w:Kn.width,h:Kn.height,minW:Kn.minWidth,maxW:Kn.maxWidth,minH:Kn.minHeight,maxH:Kn.maxHeight,overscroll:Kn.overscrollBehavior,overscrollX:Kn.overscrollBehaviorX,overscrollY:Kn.overscrollBehaviorY});var Jn={listStyleType:!0,listStylePosition:!0,listStylePos:Wn.prop("listStylePosition"),listStyleImage:!0,listStyleImg:Wn.prop("listStyleImage")},Qn={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},er={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},tr=function(e,n,r){var a={},o=t.memoizedGet(e,n,{});for(var i in o)i in r&&null!=r[i]||(a[i]=o[i]);return a},nr={srOnly:{transform:function(e){return!0===e?Qn:"focusable"===e?er:{}}},layerStyle:{processResult:!0,transform:function(e,t,n){return tr(t,"layerStyles."+e,n)}},textStyle:{processResult:!0,transform:function(e,t,n){return tr(t,"textStyles."+e,n)}},apply:{processResult:!0,transform:function(e,t,n){return tr(t,e,n)}}},rr={position:!0,pos:Wn.prop("position"),zIndex:Wn.prop("zIndex","zIndices"),inset:Wn.spaceT("inset"),insetX:Wn.spaceT(["left","right"]),insetInline:Wn.spaceT("insetInline"),insetY:Wn.spaceT(["top","bottom"]),insetBlock:Wn.spaceT("insetBlock"),top:Wn.spaceT("top"),insetBlockStart:Wn.spaceT("insetBlockStart"),bottom:Wn.spaceT("bottom"),insetBlockEnd:Wn.spaceT("insetBlockEnd"),left:Wn.spaceT("left"),insetInlineStart:Wn.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:Wn.spaceT("right"),insetInlineEnd:Wn.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(rr,{insetStart:rr.insetInlineStart,insetEnd:rr.insetInlineEnd});var ar={ring:{transform:zn.ring},ringColor:Wn.colors("--chakra-ring-color"),ringOffset:Wn.prop("--chakra-ring-offset-width"),ringOffsetColor:Wn.colors("--chakra-ring-offset-color"),ringInset:Wn.prop("--chakra-ring-inset")},or={margin:Wn.spaceT("margin"),marginTop:Wn.spaceT("marginTop"),marginBlockStart:Wn.spaceT("marginBlockStart"),marginRight:Wn.spaceT("marginRight"),marginInlineEnd:Wn.spaceT("marginInlineEnd"),marginBottom:Wn.spaceT("marginBottom"),marginBlockEnd:Wn.spaceT("marginBlockEnd"),marginLeft:Wn.spaceT("marginLeft"),marginInlineStart:Wn.spaceT("marginInlineStart"),marginX:Wn.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:Wn.spaceT("marginInline"),marginY:Wn.spaceT(["marginTop","marginBottom"]),marginBlock:Wn.spaceT("marginBlock"),padding:Wn.space("padding"),paddingTop:Wn.space("paddingTop"),paddingBlockStart:Wn.space("paddingBlockStart"),paddingRight:Wn.space("paddingRight"),paddingBottom:Wn.space("paddingBottom"),paddingBlockEnd:Wn.space("paddingBlockEnd"),paddingLeft:Wn.space("paddingLeft"),paddingInlineStart:Wn.space("paddingInlineStart"),paddingInlineEnd:Wn.space("paddingInlineEnd"),paddingX:Wn.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:Wn.space("paddingInline"),paddingY:Wn.space(["paddingTop","paddingBottom"]),paddingBlock:Wn.space("paddingBlock")};Object.assign(or,{m:or.margin,mt:or.marginTop,mr:or.marginRight,me:or.marginInlineEnd,marginEnd:or.marginInlineEnd,mb:or.marginBottom,ml:or.marginLeft,ms:or.marginInlineStart,marginStart:or.marginInlineStart,mx:or.marginX,my:or.marginY,p:or.padding,pt:or.paddingTop,py:or.paddingY,px:or.paddingX,pb:or.paddingBottom,pl:or.paddingLeft,ps:or.paddingInlineStart,paddingStart:or.paddingInlineStart,pr:or.paddingRight,pe:or.paddingInlineEnd,paddingEnd:or.paddingInlineEnd});var ir={textDecorationColor:Wn.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:Wn.shadows("textShadow")},sr={clipPath:!0,transform:Wn.propT("transform",zn.transform),transformOrigin:!0,translateX:Wn.spaceT("--chakra-translate-x"),translateY:Wn.spaceT("--chakra-translate-y"),skewX:Wn.degreeT("--chakra-skew-x"),skewY:Wn.degreeT("--chakra-skew-y"),scaleX:Wn.prop("--chakra-scale-x"),scaleY:Wn.prop("--chakra-scale-y"),scale:Wn.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:Wn.degreeT("--chakra-rotate")},lr={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:Wn.prop("transitionDuration","transition.duration"),transitionProperty:Wn.prop("transitionProperty","transition.property"),transitionTimingFunction:Wn.prop("transitionTimingFunction","transition.easing")},cr={fontFamily:Wn.prop("fontFamily","fonts"),fontSize:Wn.prop("fontSize","fontSizes",zn.px),fontWeight:Wn.prop("fontWeight","fontWeights"),lineHeight:Wn.prop("lineHeight","lineHeights"),letterSpacing:Wn.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},ur={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:Wn.spaceT("scrollMargin"),scrollMarginTop:Wn.spaceT("scrollMarginTop"),scrollMarginBottom:Wn.spaceT("scrollMarginBottom"),scrollMarginLeft:Wn.spaceT("scrollMarginLeft"),scrollMarginRight:Wn.spaceT("scrollMarginRight"),scrollMarginX:Wn.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:Wn.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:Wn.spaceT("scrollPadding"),scrollPaddingTop:Wn.spaceT("scrollPaddingTop"),scrollPaddingBottom:Wn.spaceT("scrollPaddingBottom"),scrollPaddingLeft:Wn.spaceT("scrollPaddingLeft"),scrollPaddingRight:Wn.spaceT("scrollPaddingRight"),scrollPaddingX:Wn.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:Wn.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function dr(e){return t.isObject(e)&&e.reference?e.reference:String(e)}var fr=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.map(dr).join(" "+e+" ").replace(/calc/g,"")},pr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+fr.apply(void 0,["+"].concat(t))+")"},mr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+fr.apply(void 0,["-"].concat(t))+")"},vr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+fr.apply(void 0,["*"].concat(t))+")"},hr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+fr.apply(void 0,["/"].concat(t))+")"},yr=function(e){var t=dr(e);return null==t||Number.isNaN(parseFloat(t))?vr(t,-1):String(t).startsWith("-")?String(t).slice(1):"-"+t},gr=Object.assign(function(e){return{add:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gr(pr.apply(void 0,[e].concat(n)))},subtract:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gr(mr.apply(void 0,[e].concat(n)))},multiply:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gr(vr.apply(void 0,[e].concat(n)))},divide:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gr(hr.apply(void 0,[e].concat(n)))},negate:function(){return gr(yr(e))},toString:function(){return e.toString()}}},{add:pr,subtract:mr,multiply:vr,divide:hr,negate:yr}),br=function(e,t){return e+":hover "+t+", "+e+"[data-hover] "+t},Er=function(e,t){return e+":focus "+t+", "+e+"[data-focus] "+t},xr=function(e,t){return e+":focus-visible "+t},_r=function(e,t){return e+":focus-within "+t},wr=function(e,t){return e+":active "+t+", "+e+"[data-active] "+t},kr=function(e,t){return e+":disabled "+t+", "+e+"[data-disabled] "+t},Sr=function(e,t){return e+":invalid "+t+", "+e+"[data-invalid] "+t},Cr=function(e,t){return e+":checked "+t+", "+e+"[data-checked] "+t},Or=function(e){return Nr(function(t){return e(t,"&")},"[role=group]","[data-group]",".group")},Ar=function(e){return Nr(function(t){return e(t,"~ &")},"[data-peer]",".peer")},Nr=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.map(e).join(", ")},Rr={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:Or(br),_peerHover:Ar(br),_groupFocus:Or(Er),_peerFocus:Ar(Er),_groupFocusVisible:Or(xr),_peerFocusVisible:Ar(xr),_groupActive:Or(wr),_peerActive:Ar(wr),_groupDisabled:Or(kr),_peerDisabled:Ar(kr),_groupInvalid:Or(Sr),_peerInvalid:Ar(Sr),_groupChecked:Or(Cr),_peerChecked:Ar(Cr),_groupFocusWithin:Or(_r),_peerFocusWithin:Ar(_r),_peerPlaceholderShown:Ar(function(e,t){return e+":placeholder-shown "+t}),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]"},Ir=t.objectKeys(Rr);function Pr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tr(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Pr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Lr=t.mergeWith({},Hn,Un,$n,Zn,Kn,Yn,ar,Xn,Gn,nr,rr,qn,or,ur,cr,ir,sr,Jn,lr),Dr=Object.assign({},or,Kn,Zn,Gn,rr),Mr=t.objectKeys(Dr),Vr=[].concat(t.objectKeys(Lr),Ir),jr=bn({},Lr,Rr),Br=function(e){return e in jr},Fr=function(e,n){return e.startsWith("--")&&t.isString(n)&&!t.isCssVar(n)},zr=function(e,t){var n,r;if(null==t)return t;var a=function(t){var n,r;return null==(n=e.__cssMap)||null==(r=n[t])?void 0:r.varRef},o=function(e){var t;return null!=(t=a(e))?t:e},i=t.split(",").map(function(e){return e.trim()}),s=i[1];return null!=(n=null!=(r=a(i[0]))?r:o(s))?n:o(t)},Wr="undefined"!=typeof Element,Hr="function"==typeof Map,Ur="function"==typeof Set,$r="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function qr(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,a,o;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!qr(e[r],t[r]))return!1;return!0}if(Hr&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!qr(r.value[1],t.get(r.value[0])))return!1;return!0}if(Ur&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if($r&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((n=(a=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,a[r]))return!1;if(Wr&&e instanceof Element)return!1;for(r=n;0!=r--;)if(("_owner"!==a[r]&&"__v"!==a[r]&&"__o"!==a[r]||!e.$$typeof)&&!qr(e[a[r]],t[a[r]]))return!1;return!0}return e!=e&&t!=t}var Yr=function(e,t){try{return qr(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}},Zr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Gr=/* #__PURE__ */Pe(function(e){return Zr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Xr="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Kr=/[A-Z]|^ms/g,Jr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Qr=function(e){return 45===e.charCodeAt(1)},ea=function(e){return null!=e&&"boolean"!=typeof e},ta=/* #__PURE__ */Pe(function(e){return Qr(e)?e:e.replace(Kr,"-$&").toLowerCase()}),na=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Jr,function(e,t,n){return fa={name:t,styles:n,next:fa},t})}return 1===ht[e]||Qr(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var ra=/(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,aa=["normal","none","initial","inherit","unset"],oa=na,ia=/^-ms-/,sa=/-(.)/g,la={};na=function(e,t){if("content"===e&&("string"!=typeof t||-1===aa.indexOf(t)&&!ra.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=oa(e,t);return""===n||Qr(e)||-1===e.indexOf("-")||void 0!==la[e]||(la[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(ia,"ms-").replace(sa,function(e,t){return t.toUpperCase()})+"?")),n}}var ca="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ua(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===n.toString())throw new Error(ca);return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return fa={name:n.name,styles:n.styles,next:fa},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)fa={name:r.name,styles:r.styles,next:fa},r=r.next;var a=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(a+=n.map),a}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=ua(e,t,n[a])+";";else for(var o in n){var i=n[o];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=o+"{"+t[i]+"}":ea(i)&&(r+=ta(o)+":"+na(o,i)+";");else{if("NO_COMPONENT_SELECTOR"===o&&"production"!==process.env.NODE_ENV)throw new Error(ca);if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=ua(e,t,i);switch(o){case"animation":case"animationName":r+=ta(o)+":"+s+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===o&&console.error("You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key)."),r+=o+"{"+s+"}"}}else for(var l=0;l<i.length;l++)ea(i[l])&&(r+=ta(o)+":"+na(o,i[l])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var o=fa,i=n(e);return fa=o,ua(e,t,i)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var s=[],l=n.replace(Jr,function(e,t,n){var r="animation"+s.length;return s.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"});s.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(s,["`"+l+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+l+"`")}}if(null==t)return n;var c=t[n];return void 0!==c?c:n}var da,fa,pa=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(da=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var ma=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,a="";fa=void 0;var o,i=e[0];null==i||void 0===i.raw?(r=!1,a+=ua(n,t,i)):("production"!==process.env.NODE_ENV&&void 0===i[0]&&console.error(Xr),a+=i[0]);for(var s=1;s<e.length;s++)a+=ua(n,t,e[s]),r&&("production"!==process.env.NODE_ENV&&void 0===i[s]&&console.error(Xr),a+=i[s]);"production"!==process.env.NODE_ENV&&(a=a.replace(da,function(e){return o=e,""})),pa.lastIndex=0;for(var l,c="";null!==(l=pa.exec(a));)c+="-"+l[1];var u=vt(a)+c;return"production"!==process.env.NODE_ENV?{name:u,styles:a,map:o,next:fa,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:a,next:fa}},va=Gr,ha=function(e){return"theme"!==e},ya=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?va:ha},ga=function(e,t,n){var r;if(t){var a=t.shouldForwardProp;r=e.__emotion_forwardProp&&a?function(t){return e.__emotion_forwardProp(t)&&a(t)}:a}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},ba=z.useInsertionEffect?z.useInsertionEffect:function(e){e()},Ea="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",xa=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return pt(t,n,r),ba(function(){return mt(t,n,r)}),null},_a=function e(t,n){if("production"!==process.env.NODE_ENV&&void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var r,a,o=t.__emotion_real===t,i=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,a=n.target);var s=ga(t,n,o),l=s||ya(i),c=!l("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{"production"!==process.env.NODE_ENV&&void 0===u[0][0]&&console.error(Ea),d.push(u[0][0]);for(var f=u.length,p=1;p<f;p++)"production"!==process.env.NODE_ENV&&void 0===u[0][p]&&console.error(Ea),d.push(u[p],u[0][p])}var m=jt(function(e,t,n){var r=c&&e.as||i,o="",u=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=F.useContext(Bt)}"string"==typeof e.className?o=ft(t.registered,u,e.className):null!=e.className&&(o=e.className+" ");var m=ma(d.concat(u),t.registered,f);o+=t.key+"-"+m.name,void 0!==a&&(o+=" "+a);var v=c&&void 0===s?ya(r):l,h={};for(var y in e)c&&"as"===y||v(y)&&(h[y]=e[y]);return h.className=o,h.ref=n,/*#__PURE__*/F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement(xa,{cache:t,serialized:m,isStringTag:"string"==typeof r}),/*#__PURE__*/F.createElement(r,h))});return m.displayName=void 0!==r?r:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=i,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return void 0===a&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+a}}),m.withComponent=function(t,r){return e(t,We({},n,r,{shouldForwardProp:ga(m,r,!0)})).apply(void 0,d)},m}}.bind();function wa(){return wa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wa.apply(this,arguments)}function ka(){var e=F.useContext(Bt);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){_a[e]=_a(e)}),nn({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});var Sa=function(e){return nn({name:e+"StylesContext",errorMessage:'useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<'+e+' />" '})};function Ca(e){return t.omit(e,["styleConfig","size","variant","colorScheme"])}function Oa(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}var Aa=new Set([].concat(Vr,["textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"])),Na=new Set(["htmlWidth","htmlHeight","htmlSize"]),Ra=function(e){return Na.has(e)||!Aa.has(e)},Ia=["theme","css","__css","sx"],Pa=["baseStyle"];function Ta(e,n){var r=null!=n?n:{},a=r.baseStyle,o=Oa(r,Pa);o.shouldForwardProp||(o.shouldForwardProp=Ra);var i=function(e){var n=e.baseStyle;return function(e){var r,a=e.css,o=e.__css,i=e.sx,s=Oa(e,Ia),l=t.objectFilter(s,function(e,t){return Br(t)}),c=t.runIfFn(n,e),u=Object.assign({},o,c,t.filterUndefined(l),i),d=(r=u,function(e){return function(e){var n=e.configs,r=void 0===n?{}:n,a=e.pseudos,o=void 0===a?{}:a,i=e.theme;return function e(n,a){void 0===a&&(a=!1);var s=t.runIfFn(n,i),l=function(e){return function(n){if(!n.__breakpoints)return e;var r=n.__breakpoints,a=r.isResponsive,o=r.toArrayValue,i=r.media,s={};for(var l in e){var c=t.runIfFn(e[l],n);if(null!=c)if(c=t.isObject(c)&&a(c)?o(c):c,Array.isArray(c))for(var u=c.slice(0,i.length).length,d=0;d<u;d+=1){var f=null==i?void 0:i[d];f?(s[f]=s[f]||{},null!=c[d]&&(s[f][l]=c[d])):s[l]=c[d]}else s[l]=c}return s}}(s)(i),c={};for(var u in l){var d,f,p,m,v,h=t.runIfFn(l[u],i);u in o&&(u=o[u]),Fr(u,h)&&(h=zr(i,h));var y=r[u];if(!0===y&&(y={property:u}),t.isObject(h)){var g;c[u]=null!=(g=c[u])?g:{},c[u]=t.mergeWith({},c[u],e(h,!0))}else{var b=null!=(d=null==(f=y)||null==f.transform?void 0:f.transform(h,i,s))?d:h;b=null!=(p=y)&&p.processResult?e(b,!0):b;var E=t.runIfFn(null==(m=y)?void 0:m.property,i);if(!a&&null!=(v=y)&&v.static){var x=t.runIfFn(y.static,i);c=t.mergeWith({},c,x)}if(E&&Array.isArray(E))for(var _,w=Tr(E);!(_=w()).done;)c[_.value]=b;else E?"&"===E&&t.isObject(b)?c=t.mergeWith({},c,b):c[E]=b:t.isObject(b)?c=t.mergeWith({},c,b):c[u]=b}}return c}}({theme:e,pseudos:Rr,configs:Lr})(r)})(e.theme);return a?[d,a]:d}}({baseStyle:a});return _a(e,o)(i)}function La(e){/*#__PURE__*/
4
- return F.forwardRef(e)}var Da=["styleConfig"];function Ma(e,n){var r;void 0===n&&(n={});var a,o=n.styleConfig,i=Oa(n,Da),s=wa({},function(){var e=F.useContext(gn);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e}(),{theme:ka()}),l=s.theme,c=s.colorMode,u=t.memoizedGet(l,"components."+e),d=o||u,f=t.mergeWith({theme:l,colorMode:c},null!=(r=null==d?void 0:d.defaultProps)?r:{},t.filterUndefined(t.omit(i,["children"]))),p=F.useRef({});if(d){var m=(a=d,function(e){var n,r=e.variant,o=e.size,i=function(e){var n=e.__breakpoints;return function(e,r,a,o){if(n){var i={},s=function(e,n){return t.isArray(e)?e:t.isObject(e)?n(e):null!=e?[e]:void 0}(a,n.toArrayValue);if(!s)return i;for(var l=s.length,c=1===l,u=!!e.parts,d=function(a){var l,d,f=n.details[a],p=n.details[function(e,t){for(var n=t+1;n<e.length;n++)if(null!=e[n])return n;return-1}(s,a)],m=t.toMediaQueryString(f.minW,null==p?void 0:p._minW),v=t.runIfFn(null==(l=e[r])?void 0:l[s[a]],o);return v?u?(null==(d=e.parts)||d.forEach(function(e){var n,r;t.mergeWith(i,((r={})[e]=c?v[e]:((n={})[m]=v[e],n),r))}),"continue"):u?void(i[m]=v):(c?t.mergeWith(i,v):i[m]=v,"continue"):"continue"},f=0;f<l;f++)d(f);return i}}}(e.theme);return t.mergeWith({},t.runIfFn(null!=(n=a.baseStyle)?n:{},e),i(a,"sizes",o,e),i(a,"variants",r,e))}),v=m(f);Yr(p.current,v)||(p.current=v)}return p.current}function Va(e,t){return void 0===t&&(t={}),Ma(e,t)}function ja(e,t){return void 0===t&&(t={}),Ma(e,t)}var Ba,Fa=(Ba=new Map,new Proxy(Ta,{apply:function(e,t,n){return Ta.apply(void 0,n)},get:function(e,t){return Ba.has(t)||Ba.set(t,Ta(t)),Ba.get(t)}})),za={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Wa=Fa("span",{baseStyle:za});t.__DEV__&&(Wa.displayName="VisuallyHidden");var Ha=Fa("input",{baseStyle:za});function Ua(){return Ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ua.apply(this,arguments)}t.__DEV__&&(Ha.displayName="VisuallyHiddenInput");var $a=["label","thickness","speed","emptyColor","className"],qa=function(){var e=Yt.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Ya=/*#__PURE__*/La(function(e,n){var r=Va("Spinner",e),a=Ca(e),o=a.label,i=void 0===o?"Loading...":o,s=a.thickness,l=void 0===s?"2px":s,c=a.speed,u=void 0===c?"0.45s":c,d=a.emptyColor,f=void 0===d?"transparent":d,p=a.className,m=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(a,$a),v=t.cx("chakra-spinner",p),h=Ua({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:l,borderBottomColor:f,borderLeftColor:f,animation:qa+" "+u+" linear infinite"},r);/*#__PURE__*/
5
- return F.createElement(Fa.div,Ua({ref:n,__css:h,className:v},m),i&&/*#__PURE__*/F.createElement(Wa,null,i))});function Za(){return Za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Za.apply(this,arguments)}t.__DEV__&&(Ya.displayName="Spinner");var Ga=["as","viewBox","color","focusable","children","className","__css"],Xa={path:/*#__PURE__*/F.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/*#__PURE__*/F.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),/*#__PURE__*/F.createElement("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),/*#__PURE__*/F.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},Ka=/*#__PURE__*/La(function(e,n){var r=e.as,a=e.viewBox,o=e.color,i=void 0===o?"currentColor":o,s=e.focusable,l=void 0!==s&&s,c=e.children,u=e.className,d=e.__css,f=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,Ga),p={ref:n,focusable:l,className:t.cx("chakra-icon",u),__css:Za({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i},d)},m=null!=a?a:Xa.viewBox;if(r&&"string"!=typeof r)/*#__PURE__*/
6
- return F.createElement(Fa.svg,Za({as:r},p,f));var v=null!=c?c:Xa.path;/*#__PURE__*/
7
- return F.createElement(Fa.svg,Za({verticalAlign:"middle",viewBox:m},p,f),v)});t.__DEV__&&(Ka.displayName="Icon");var Ja=Ka,Qa=function(e,t){return Qa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Qa(e,t)};function eo(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Qa(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var to=function(){return to=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},to.apply(this,arguments)};function no(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function ro(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,o=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i}function ao(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a<o;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}var oo="undefined"==typeof process||void 0===process.env?"production":process.env.NODE_ENV||"production",io=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},so={measureLayout:io(["layout","layoutId","drag"]),animation:io(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:io(["exit"]),drag:io(["drag","dragControls"]),focus:io(["whileFocus"]),hover:io(["whileHover","onHoverStart","onHoverEnd"]),tap:io(["whileTap","onTap","onTapStart","onTapCancel"]),pan:io(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:io(["whileInView","onViewportEnter","onViewportLeave"])},lo=function(){},co=function(){};"production"!==process.env.NODE_ENV&&(lo=function(e,t){e||"undefined"==typeof console||console.warn(t)},co=function(e,t){if(!e)throw new Error(t)});var uo=F.createContext({strict:!1}),fo=Object.keys(so),po=fo.length,mo=F.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),vo=F.createContext({}),ho=F.createContext(null),yo="undefined"!=typeof document,go=yo?F.useLayoutEffect:F.useEffect,bo={current:null},Eo=!1;function xo(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function _o(e){return Array.isArray(e)}function wo(e){return"string"==typeof e||_o(e)}function ko(e,t,n,r,a){var o;return void 0===r&&(r={}),void 0===a&&(a={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,a)),"string"==typeof t&&(t=null===(o=e.variants)||void 0===o?void 0:o[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,a)),t}function So(e,t,n){var r=e.getProps();return ko(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue(function(e,n){return t[n]=e.get()}),t}(e),function(e){var t={};return e.forEachValue(function(e,n){return t[n]=e.getVelocity()}),t}(e))}function Co(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||wo(e.initial)||wo(e.animate)||wo(e.whileHover)||wo(e.whileDrag)||wo(e.whileTap)||wo(e.whileFocus)||wo(e.exit)}function Oo(e){return Boolean(Co(e)||e.variants)}function Ao(e){return Array.isArray(e)?e.join(" "):e}function No(e){var t=F.useRef(null);return null===t.current&&(t.current=e()),t.current}const Ro="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),Io="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Ro()),16.666666666666668);let Po=!0,To=!1,Lo=!1;const Do={delta:0,timestamp:0},Mo=["read","update","preRender","render","postRender"],Vo=Mo.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,a=!1,o=!1;const i=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{const l=s&&a,c=l?t:n;return o&&i.add(e),-1===c.indexOf(e)&&(c.push(e),l&&a&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:l=>{if(a)o=!0;else{if(a=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),i.has(r)&&(s.schedule(r),e())}a=!1,o&&(o=!1,s.process(l))}}};return s}(()=>To=!0),e),{}),jo=Mo.reduce((e,t)=>{const n=Vo[t];return e[t]=(e,t=!1,r=!1)=>(To||Ho(),n.schedule(e,t,r)),e},{}),Bo=Mo.reduce((e,t)=>(e[t]=Vo[t].cancel,e),{}),Fo=Mo.reduce((e,t)=>(e[t]=()=>Vo[t].process(Do),e),{}),zo=e=>Vo[e].process(Do),Wo=e=>{To=!1,Do.delta=Po?16.666666666666668:Math.max(Math.min(e-Do.timestamp,40),1),Do.timestamp=e,Lo=!0,Mo.forEach(zo),Lo=!1,To&&(Po=!1,Io(Wo))},Ho=()=>{To=!0,Po=!0,Lo||Io(Wo)},Uo=()=>Do,$o=(e,t,n)=>Math.min(Math.max(n,e),t);function qo(e,t){return e*Math.sqrt(1-t*t)}const Yo=["duration","bounce"],Zo=["stiffness","damping","mass"];function Go(e,t){return t.some(t=>void 0!==e[t])}function Xo(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:a}=e,o=no(e,["from","to","restSpeed","restDelta"]);const i={done:!1,value:t};let{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Go(e,Zo)&&Go(e,Yo)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let a,o;lo(e<=1e4,"Spring duration must be 10 seconds or less");let i=1-t;i=$o(.05,1,i),e=$o(.01,10,e/1e3),i<1?(a=t=>{const r=t*i,a=r*e;return.001-(r-n)/qo(t,i)*Math.exp(-a)},o=t=>{const r=t*i*e,o=r*n+n,s=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=qo(Math.pow(t,2),i);return(.001-a(t)>0?-1:1)*((o-s)*l)/c}):(a=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,o=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(a,o,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*i*Math.sqrt(r*t),duration:e}}}(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(o),p=Ko,m=Ko;function v(){const e=u?-u/1e3:0,r=n-t,o=l/(2*Math.sqrt(s*c)),i=Math.sqrt(s/c)/1e3;if(void 0===a&&(a=Math.min(Math.abs(n-t)/100,.4)),o<1){const t=qo(i,o);p=a=>{const s=Math.exp(-o*i*a);return n-s*((e+o*i*r)/t*Math.sin(t*a)+r*Math.cos(t*a))},m=n=>{const a=Math.exp(-o*i*n);return o*i*a*(Math.sin(t*n)*(e+o*i*r)/t+r*Math.cos(t*n))-a*(Math.cos(t*n)*(e+o*i*r)-t*r*Math.sin(t*n))}}else if(1===o)p=t=>n-Math.exp(-i*t)*(r+(e+i*r)*t);else{const t=i*Math.sqrt(o*o-1);p=a=>{const s=Math.exp(-o*i*a),l=Math.min(t*a,300);return n-s*((e+o*i*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return v(),{next:e=>{const t=p(e);if(f)i.done=e>=d;else{const o=1e3*m(e),s=Math.abs(o)<=r,l=Math.abs(n-t)<=a;i.done=s&&l}return i.value=i.done?n:t,i},flipTarget:()=>{u=-u,[t,n]=[n,t],v()}}}Xo.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const Ko=e=>0,Jo=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Qo=(e,t,n)=>-n*e+n*t+e,ei=(e,t)=>n=>Math.max(Math.min(n,t),e),ti=e=>e%1?Number(e.toFixed(5)):e,ni=/(-)?([\d]*\.?[\d])+/g,ri=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,ai=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function oi(e){return"string"==typeof e}const ii={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},si=Object.assign(Object.assign({},ii),{transform:ei(0,1)}),li=Object.assign(Object.assign({},ii),{default:1}),ci=e=>({test:t=>oi(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ui=ci("deg"),di=ci("%"),fi=ci("px"),pi=ci("vh"),mi=ci("vw"),vi=Object.assign(Object.assign({},di),{parse:e=>di.parse(e)/100,transform:e=>di.transform(100*e)}),hi=(e,t)=>n=>Boolean(oi(n)&&ai.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),yi=(e,t,n)=>r=>{if(!oi(r))return r;const[a,o,i,s]=r.match(ni);return{[e]:parseFloat(a),[t]:parseFloat(o),[n]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},gi={test:hi("hsl","hue"),parse:yi("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+di.transform(ti(t))+", "+di.transform(ti(n))+", "+ti(si.transform(r))+")"},bi=ei(0,255),Ei=Object.assign(Object.assign({},ii),{transform:e=>Math.round(bi(e))}),xi={test:hi("rgb","red"),parse:yi("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ei.transform(e)+", "+Ei.transform(t)+", "+Ei.transform(n)+", "+ti(si.transform(r))+")"},_i={test:hi("#"),parse:function(e){let t="",n="",r="",a="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),a=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),a=e.substr(4,1),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}},transform:xi.transform},wi={test:e=>xi.test(e)||_i.test(e)||gi.test(e),parse:e=>xi.test(e)?xi.parse(e):gi.test(e)?gi.parse(e):_i.parse(e),transform:e=>oi(e)?e:e.hasOwnProperty("red")?xi.transform(e):gi.transform(e)};function ki(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(ri);r&&(n=r.length,e=e.replace(ri,"${c}"),t.push(...r.map(wi.parse)));const a=e.match(ni);return a&&(e=e.replace(ni,"${n}"),t.push(...a.map(ii.parse))),{values:t,numColors:n,tokenised:e}}function Si(e){return ki(e).values}function Ci(e){const{values:t,numColors:n,tokenised:r}=ki(e),a=t.length;return e=>{let t=r;for(let r=0;r<a;r++)t=t.replace(r<n?"${c}":"${n}",r<n?wi.transform(e[r]):ti(e[r]));return t}}const Oi=e=>"number"==typeof e?0:e,Ai={test:function(e){var t,n,r,a;return isNaN(e)&&oi(e)&&(null!==(n=null===(t=e.match(ni))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(a=null===(r=e.match(ri))||void 0===r?void 0:r.length)&&void 0!==a?a:0)>0},parse:Si,createTransformer:Ci,getAnimatableNone:function(e){const t=Si(e);return Ci(e)(t.map(Oi))}},Ni=new Set(["brightness","contrast","saturate","opacity"]);function Ri(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(ni)||[];if(!r)return e;const a=n.replace(r,"");let o=Ni.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+a+")"}const Ii=/([a-z-]*)\(.*?\)/g,Pi=Object.assign(Object.assign({},Ai),{getAnimatableNone:e=>{const t=e.match(Ii);return t?t.map(Ri).join(" "):e}});function Ti(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Li({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let a=0,o=0,i=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;a=Ti(s,r,e+1/3),o=Ti(s,r,e),i=Ti(s,r,e-1/3)}else a=o=i=n;return{red:Math.round(255*a),green:Math.round(255*o),blue:Math.round(255*i),alpha:r}}const Di=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Mi=[_i,xi,gi],Vi=e=>Mi.find(t=>t.test(e)),ji=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,Bi=(e,t)=>{let n=Vi(e),r=Vi(t);co(!!n,ji(e)),co(!!r,ji(t));let a=n.parse(e),o=r.parse(t);n===gi&&(a=Li(a),n=xi),r===gi&&(o=Li(o),r=xi);const i=Object.assign({},a);return e=>{for(const t in i)"alpha"!==t&&(i[t]=Di(a[t],o[t],e));return i.alpha=Qo(a.alpha,o.alpha,e),n.transform(i)}},Fi=e=>"number"==typeof e,zi=(e,t)=>n=>t(e(n)),Wi=(...e)=>e.reduce(zi);function Hi(e,t){return Fi(e)?n=>Qo(e,t,n):wi.test(e)?Bi(e,t):Yi(e,t)}const Ui=(e,t)=>{const n=[...e],r=n.length,a=e.map((e,n)=>Hi(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=a[t](e);return n}},$i=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const a in n)void 0!==e[a]&&void 0!==t[a]&&(r[a]=Hi(e[a],t[a]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function qi(e){const t=Ai.parse(e),n=t.length;let r=0,a=0,o=0;for(let e=0;e<n;e++)r||"number"==typeof t[e]?r++:void 0!==t[e].hue?o++:a++;return{parsed:t,numNumbers:r,numRGB:a,numHSL:o}}const Yi=(e,t)=>{const n=Ai.createTransformer(t),r=qi(e),a=qi(t);return r.numHSL===a.numHSL&&r.numRGB===a.numRGB&&r.numNumbers>=a.numNumbers?Wi(Ui(r.parsed,a.parsed),n):(lo(!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.`),n=>`${n>0?t:e}`)},Zi=(e,t)=>n=>Qo(e,t,n);function Gi(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const o=e.length;co(o===t.length,"Both input and output ranges must be the same length"),co(!r||!Array.isArray(r)||r.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const i=function(e,t,n){const r=[],a=n||function(e){return"number"==typeof e?Zi:"string"==typeof e?wi.test(e)?Bi:Yi:Array.isArray(e)?Ui:"object"==typeof e?$i:void 0}(e[0]),o=e.length-1;for(let n=0;n<o;n++){let o=a(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]:t;o=Wi(e,o)}r.push(o)}return r}(t,r,a),s=2===o?function([e,t],[n]){return r=>n(Jo(e,t,r))}(e,i):function(e,t){const n=e.length,r=n-1;return a=>{let o=0,i=!1;if(a<=e[0]?i=!0:a>=e[r]&&(o=r-1,i=!0),!i){let t=1;for(;t<n&&!(e[t]>a||t===r);t++);o=t-1}const s=Jo(e[o],e[o+1],a);return t[o](s)}}(e,i);return n?t=>s($o(e[0],e[o-1],t)):s}const Xi=e=>t=>1-e(1-t),Ki=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ji=e=>t=>t*t*((e+1)*t-e),Qi=e=>e,es=e=>Math.pow(e,2),ts=Xi(es),ns=Ki(es),rs=e=>1-Math.sin(Math.acos(e)),as=Xi(rs),os=Ki(as),is=Ji(1.525),ss=Xi(is),ls=Ki(is),cs=(e=>{const t=Ji(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(),us=e=>{if(1===e||0===e)return e;const t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},ds=Xi(us);function fs(e,t){return e.map(()=>t||ns).splice(0,e.length-1)}function ps({from:e=0,to:t=1,ease:n,offset:r,duration:a=300}){const o={done:!1,value:e},i=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map(e=>e*t)}(r&&r.length===i.length?r:function(e){const t=e.length;return e.map((e,n)=>0!==n?n/(t-1):0)}(i),a);function l(){return Gi(s,i,{ease:Array.isArray(n)?n:fs(i,n)})}let c=l();return{next:e=>(o.value=c(e),o.done=e>=a,o),flipTarget:()=>{i.reverse(),c=l()}}}const ms={keyframes:ps,spring:Xo,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:a=.5,modifyTarget:o}){const i={done:!1,value:t};let s=n*e;const l=t+s,c=void 0===o?l:o(l);return c!==l&&(s=c-t),{next:e=>{const t=-s*Math.exp(-e/r);return i.done=!(t>a||t<-a),i.value=i.done?c:c+t,i},flipTarget:()=>{}}}};function vs(e,t,n=0){return e-t-n}const hs=e=>{const t=({delta:t})=>e(t);return{start:()=>jo.update(t,!0),stop:()=>Bo.update(t)}};function ys(e){var t,n,{from:r,autoplay:a=!0,driver:o=hs,elapsed:i=0,repeat:s=0,repeatType:l="loop",repeatDelay:c=0,onPlay:u,onStop:d,onComplete:f,onRepeat:p,onUpdate:m}=e,v=no(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let h,y,g,{to:b}=v,E=0,x=v.duration,_=!1,w=!0;const k=function(e){if(Array.isArray(e.to))return ps;if(ms[e.type])return ms[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?ps:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Xo:ps}(v);(null===(n=(t=k).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(g=Gi([0,100],[r,b],{clamp:!1}),r=0,b=100);const S=k(Object.assign(Object.assign({},v),{from:r,to:b}));return a&&(null==u||u(),h=o(function(e){if(w||(e=-e),i+=e,!_){const e=S.next(Math.max(0,i));y=e.value,g&&(y=g(y)),_=w?e.done:i<=0}null==m||m(y),_&&(0===E&&(null!=x||(x=i)),E<s?function(e,t,n,r){return r?e>=t+n:e<=-n}(i,x,c,w)&&(E++,"reverse"===l?(w=E%2==0,i=function(e,t,n=0,r=!0){return r?vs(t+-e,t,n):t-(e-t)+n}(i,x,c,w)):(i=vs(i,x,c),"mirror"===l&&S.flipTarget()),_=!1,p&&p()):(h.stop(),f&&f()))}),h.start()),{stop:()=>{null==d||d(),h.stop()}}}function gs(e,t){return t?e*(1e3/t):0}const bs=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Es=e=>bs(e)&&e.hasOwnProperty("z"),xs=(e,t)=>Math.abs(e-t);function _s(e,t){if(Fi(e)&&Fi(t))return xs(e,t);if(bs(e)&&bs(t)){const n=xs(e.x,t.x),r=xs(e.y,t.y),a=Es(e)&&Es(t)?xs(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(a,2))}}const ws=(e,t)=>1-3*t+3*e,ks=(e,t)=>3*t-6*e,Ss=e=>3*e,Cs=(e,t,n)=>((ws(t,n)*e+ks(t,n))*e+Ss(t))*e,Os=(e,t,n)=>3*ws(t,n)*e*e+2*ks(t,n)*e+Ss(t);function As(e,t){-1===e.indexOf(t)&&e.push(t)}function Ns(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Rs=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return As(this.subscriptions,e),function(){return Ns(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var a=0;a<r;a++){var o=this.subscriptions[a];o&&o(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),Is=function(){function e(e){var t=this;this.version="6.3.10",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Rs,this.velocityUpdateSubscribers=new Rs,this.renderSubscribers=new Rs,this.canTrackVelocity=!1,this.updateAndNotify=function(e,n){void 0===n&&(n=!0),t.prev=t.current,t.current=e;var r=Uo(),a=r.timestamp;t.lastUpdated!==a&&(t.timeDelta=r.delta,t.lastUpdated=a,jo.postRender(t.scheduleVelocityCheck)),t.prev!==t.current&&t.updateSubscribers.notify(t.current),t.velocityUpdateSubscribers.getSize()&&t.velocityUpdateSubscribers.notify(t.getVelocity()),n&&t.renderSubscribers.notify(t.current)},this.scheduleVelocityCheck=function(){return jo.postRender(t.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==t.lastUpdated&&(t.prev=t.current,t.velocityUpdateSubscribers.notify(t.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=!isNaN(parseFloat(this.current))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?gs(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise(function(n){t.hasAnimated=!0,t.stopAnimation=e(n)}).then(function(){return t.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Ps(e){return new Is(e)}var Ts=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},Ls=function(e){return 1e3*e},Ds={linear:Qi,easeIn:es,easeInOut:ns,easeOut:ts,circIn:rs,circInOut:os,circOut:as,backIn:is,backInOut:ls,backOut:ss,anticipate:cs,bounceIn:ds,bounceInOut:e=>e<.5?.5*(1-us(1-2*e)):.5*us(2*e-1)+.5,bounceOut:us},Ms=function(e){if(Array.isArray(e)){co(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=ro(e,4);return function(e,t,n,r){if(e===t&&n===r)return Qi;const a=new Float32Array(11);for(let t=0;t<11;++t)a[t]=Cs(.1*t,e,n);return o=>0===o||1===o?o:Cs(function(t){let r=0,o=1;for(;10!==o&&a[o]<=t;++o)r+=.1;--o;const i=r+(t-a[o])/(a[o+1]-a[o])*.1,s=Os(i,e,n);return s>=.001?function(e,t,n,r){for(let a=0;a<8;++a){const a=Os(t,n,r);if(0===a)return t;t-=(Cs(t,n,r)-e)/a}return t}(t,i,e,n):0===s?i:function(e,t,n,r,a){let o,i,s=0;do{i=t+(n-t)/2,o=Cs(i,r,a)-e,o>0?n=i:t=i}while(Math.abs(o)>1e-7&&++s<10);return i}(t,r,r+.1,e,n)}(o),t,r)}(t[0],t[1],t[2],t[3])}return"string"==typeof e?(co(void 0!==Ds[e],"Invalid easing type '".concat(e,"'")),Ds[e]):e},Vs=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!Ai.test(t)||t.startsWith("url(")))},js=function(e){return Array.isArray(e)},Bs=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Fs=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},zs=function(){return{type:"keyframes",ease:"linear",duration:.3}},Ws=function(e){return{type:"keyframes",duration:.8,values:e}},Hs={x:Bs,y:Bs,z:Bs,rotate:Bs,rotateX:Bs,rotateY:Bs,rotateZ:Bs,scaleX:Fs,scaleY:Fs,scale:Fs,opacity:zs,backgroundColor:zs,color:zs,default:Fs},Us=to(to({},ii),{transform:Math.round}),$s={borderWidth:fi,borderTopWidth:fi,borderRightWidth:fi,borderBottomWidth:fi,borderLeftWidth:fi,borderRadius:fi,radius:fi,borderTopLeftRadius:fi,borderTopRightRadius:fi,borderBottomRightRadius:fi,borderBottomLeftRadius:fi,width:fi,maxWidth:fi,height:fi,maxHeight:fi,size:fi,top:fi,right:fi,bottom:fi,left:fi,padding:fi,paddingTop:fi,paddingRight:fi,paddingBottom:fi,paddingLeft:fi,margin:fi,marginTop:fi,marginRight:fi,marginBottom:fi,marginLeft:fi,rotate:ui,rotateX:ui,rotateY:ui,rotateZ:ui,scale:li,scaleX:li,scaleY:li,scaleZ:li,skew:ui,skewX:ui,skewY:ui,distance:fi,translateX:fi,translateY:fi,translateZ:fi,x:fi,y:fi,z:fi,perspective:fi,transformPerspective:fi,opacity:si,originX:vi,originY:vi,originZ:fi,zIndex:Us,fillOpacity:si,strokeOpacity:si,numOctaves:Us},qs=to(to({},$s),{color:wi,backgroundColor:wi,outlineColor:wi,fill:wi,stroke:wi,borderColor:wi,borderTopColor:wi,borderRightColor:wi,borderBottomColor:wi,borderLeftColor:wi,filter:Pi,WebkitFilter:Pi}),Ys=function(e){return qs[e]};function Zs(e,t){var n,r=Ys(e);return r!==Pi&&(r=Ai),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var Gs=function(e){return js(e)?e[e.length-1]||0:e},Xs=!1;function Ks(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Js(e){return"number"==typeof e?0:Zs("",e)}function Qs(e,t){return e[t]||e.default||e}function el(e,t,n,r){return void 0===r&&(r={}),t.start(function(a){var o,i,s=function(e,t,n,r,a){var o,i=Qs(r,e),s=null!==(o=i.from)&&void 0!==o?o:t.get(),l=Vs(e,n);"none"===s&&l&&"string"==typeof n?s=Zs(e,n):Ks(s)&&"string"==typeof n?s=Js(n):!Array.isArray(n)&&Ks(n)&&"string"==typeof s&&(n=Js(s));var c=Vs(e,s);return lo(c===l,"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(n,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(n," via the `style` property.")),c&&l&&!1!==i.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:a,onUpdate:function(e){return t.set(e)}};return"inertia"===i.type||"decay"===i.type?function({from:e=0,velocity:t=0,min:n,max:r,power:a=.8,timeConstant:o=750,bounceStiffness:i=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:d,onComplete:f,onStop:p}){let m;function v(e){return void 0!==n&&e<n||void 0!==r&&e>r}function h(e){return void 0===n?r:void 0===r||Math.abs(n-e)<Math.abs(r-e)?n:r}function y(e){null==m||m.stop(),m=ys(Object.assign(Object.assign({},e),{driver:u,onUpdate:t=>{var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:p}))}function g(e){y(Object.assign({type:"spring",stiffness:i,damping:s,restDelta:l},e))}if(v(e))g({from:e,velocity:t,to:h(e)});else{let r=a*t+e;void 0!==c&&(r=c(r));const i=h(r),s=i===n?-1:1;let u,d;const f=e=>{u=d,d=e,t=gs(e-u,Uo().delta),(1===s&&e>i||-1===s&&e<i)&&g({from:e,to:i,velocity:t})};y({type:"decay",from:e,velocity:t,timeConstant:o,power:a,restDelta:l,modifyTarget:c,onUpdate:v(r)?f:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(to(to({},r),i)):ys(to(to({},function(e,t,n){var r,a,o,i;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=ao([],ro(e.to),!1),e.to[0]=e.from)}(t),function(e){var t=no(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=to(to({},e),(a=n,i=js(o=t.to)?Ws:Hs[a]||Hs.default,to({to:o},i(o))))),to(to({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,a=e.flip,o=e.loop,i=no(e,["ease","times","yoyo","flip","loop"]),s=to({},i);return n&&(s.offset=n),i.duration&&(s.duration=Ls(i.duration)),i.repeatDelay&&(s.repeatDelay=Ls(i.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(Ms):Ms(t)),"tween"===i.type&&(s.type="keyframes"),(r||o||a)&&(lo(!Xs,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),Xs=!0,r?s.repeatType="reverse":o?s.repeatType="loop":a&&(s.repeatType="mirror"),s.repeat=o||r||a||i.repeat),"spring"!==i.type&&(s.type="keyframes"),s}(e))}(i,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=i.onUpdate)||void 0===t||t.call(i,e)},onComplete:function(){var e;r.onComplete(),null===(e=i.onComplete)||void 0===e||e.call(i)}}))}:function(){var e,r,o=Gs(n);return t.set(o),a(),null===(e=null==i?void 0:i.onUpdate)||void 0===e||e.call(i,o),null===(r=null==i?void 0:i.onComplete)||void 0===r||r.call(i),{stop:function(){}}}}(e,t,n,r,a),l=function(e,t){var n,r;return null!==(r=null!==(n=(Qs(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),c=function(){return i=s()};return l?o=window.setTimeout(c,Ls(l)):c(),function(){clearTimeout(o),null==i||i.stop()}})}var tl=["TopLeft","TopRight","BottomLeft","BottomRight"],nl=tl.length,rl=function(e){return"string"==typeof e?parseFloat(e):e},al=function(e){return"number"==typeof e||fi.test(e)};function ol(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var il=ll(0,.5,as),sl=ll(.5,.95,Qi);function ll(e,t,n){return function(r){return r<e?0:r>t?1:n(Jo(e,t,r))}}function cl(e,t){e.min=t.min,e.max=t.max}function ul(e,t){cl(e.x,t.x),cl(e.y,t.y)}function dl(e){return void 0===e||1===e}function fl(e){var t=e.scaleX,n=e.scaleY;return!dl(e.scale)||!dl(t)||!dl(n)}function pl(e){return fl(e)||ml(e.x)||ml(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function ml(e){return e&&"0%"!==e}function vl(e,t,n){return n+t*(e-n)}function hl(e,t,n,r,a){return void 0!==a&&(e=vl(e,a,r)),vl(e,n,r)+t}function yl(e,t,n,r,a){void 0===t&&(t=0),void 0===n&&(n=1),e.min=hl(e.min,t,n,r,a),e.max=hl(e.max,t,n,r,a)}function gl(e,t){var n=t.x,r=t.y;yl(e.x,n.translate,n.scale,n.originPoint),yl(e.y,r.translate,r.scale,r.originPoint)}function bl(e,t){e.min=e.min+t,e.max=e.max+t}function El(e,t,n){var r=ro(n,3),a=r[0],o=r[1],i=r[2],s=Qo(e.min,e.max,void 0!==t[i]?t[i]:.5);yl(e,t[a],t[o],s,t.scale)}var xl=["x","scaleX","originX"],_l=["y","scaleY","originY"];function wl(e,t){El(e.x,t,xl),El(e.y,t,_l)}function kl(e){return e.max-e.min}function Sl(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),_s(e,t)<n}function Cl(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=Qo(t.min,t.max,e.origin),e.scale=kl(n)/kl(t),(Sl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Qo(n.min,n.max,e.origin)-e.originPoint,(Sl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Ol(e,t,n,r){Cl(e.x,t.x,n.x,null==r?void 0:r.originX),Cl(e.y,t.y,n.y,null==r?void 0:r.originY)}function Al(e,t,n){e.min=n.min+t.min,e.max=e.min+kl(t)}function Nl(e,t,n){e.min=t.min-n.min,e.max=e.min+kl(t)}function Rl(e,t,n){Nl(e.x,t.x,n.x),Nl(e.y,t.y,n.y)}function Il(e,t,n,r,a){return e=vl(e-=t,1/n,r),void 0!==a&&(e=vl(e,1/a,r)),e}function Pl(e,t,n,r,a){var o=ro(n,3);!function(e,t,n,r,a,o,i){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===o&&(o=e),void 0===i&&(i=e),di.test(t)&&(t=parseFloat(t),t=Qo(i.min,i.max,t/100)-i.min),"number"==typeof t){var s=Qo(o.min,o.max,r);e===o&&(s-=t),e.min=Il(e.min,t,n,s,a),e.max=Il(e.max,t,n,s,a)}}(e,t[o[0]],t[o[1]],t[o[2]],t.scale,r,a)}var Tl=["x","scaleX","originX"],Ll=["y","scaleY","originY"];function Dl(e,t,n,r){Pl(e.x,t,Tl,null==n?void 0:n.x,null==r?void 0:r.x),Pl(e.y,t,Ll,null==n?void 0:n.y,null==r?void 0:r.y)}function Ml(e){return 0===e.translate&&1===e.scale}function Vl(e){return Ml(e.x)&&Ml(e.y)}function jl(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}var Bl=function(){function e(){this.members=[]}return e.prototype.add=function(e){As(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(Ns(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex(function(t){return e===t});if(0===n)return!1;for(var r=n;r>=0;r--){var a=this.members[r];if(!1!==a.isPresent){t=a;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(e){var t,n,r,a,o;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(o=null===(r=e.resumingFrom)||void 0===r?void 0:(a=r.options).onExitComplete)||void 0===o||o.call(a)})},e.prototype.scheduleRender=function(){this.members.forEach(function(e){e.instance&&e.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),Fl={};function zl(e,t,n){var r=e.y.translate/t.y,a="translate3d(".concat(e.x.translate/t.x,"px, ").concat(r,"px, 0) ");if(n){var o=n.rotate,i=n.rotateX,s=n.rotateY;o&&(a+="rotate(".concat(o,"deg) ")),i&&(a+="rotateX(".concat(i,"deg) ")),s&&(a+="rotateY(".concat(s,"deg) "))}return"translate3d(0px, 0px, 0) scale(1, 1)"===(a+="scale(".concat(e.x.scale,", ").concat(e.y.scale,")"))?"none":a}function Wl(e){return[e("x"),e("y")]}var Hl=["","X","Y","Z"],Ul=["transformPerspective","x","y","z"];function $l(e,t){return Ul.indexOf(e)-Ul.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return Hl.forEach(function(t){return Ul.push(e+t)})});var ql=new Set(Ul);function Yl(e){return ql.has(e)}var Zl=new Set(["originX","originY","originZ"]);function Gl(e){return Zl.has(e)}var Xl=function(e,t){return e.depth-t.depth},Kl=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){As(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){Ns(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Xl),this.isDirty=!1,this.children.forEach(e)},e}();function Jl(e){var t=Ts(e)?e.get():e;return function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)}(t)?t.toValue():t}var Ql={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ec(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,a=e.resetTransform;return function(){function e(e,t,r){var a=this;void 0===t&&(t={}),void 0===r&&(r=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!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.potentialNodes=new Map,this.checkUpdateFailed=function(){a.isUpdating&&(a.isUpdating=!1,a.clearAllSnapshots())},this.updateProjection=function(){a.nodes.forEach(sc),a.nodes.forEach(lc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?ao(ao([],ro(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var o=0;o<this.path.length;o++)this.path[o].shouldResetTransform=!0;this.root===this&&(this.nodes=new Kl)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Rs),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.eventHandlers.get(e);null==r||r.notify.apply(r,ao([],ro(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var r,a=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var o=this.options,i=o.layoutId,s=o.layout,l=o.visualElement;if(l&&!l.getInstance()&&l.mount(e),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(s||i)&&(this.isLayoutDirty=!0),t){var c,u=function(){return a.root.updateBlockedByResize=!1};t(e,function(){a.root.updateBlockedByResize=!0,clearTimeout(c),c=window.setTimeout(u,250),Ql.hasAnimatedSinceResize&&(Ql.hasAnimatedSinceResize=!1,a.nodes.forEach(ic))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&l&&(i||s)&&this.addEventListener("didUpdate",function(e){var t,n,r,o,i,s=e.delta,c=e.hasLayoutChanged,u=e.hasRelativeTargetChanged,d=e.layout;if(a.isTreeAnimationBlocked())return a.target=void 0,void(a.relativeTarget=void 0);var f=null!==(n=null!==(t=a.options.transition)&&void 0!==t?t:l.getDefaultTransition())&&void 0!==n?n:mc,p=l.getProps(),m=p.onLayoutAnimationStart,v=p.onLayoutAnimationComplete,h=!a.targetLayout||!jl(a.targetLayout,d)||u,y=!c&&u;if((null===(r=a.resumeFrom)||void 0===r?void 0:r.instance)||y||c&&(h||!a.currentAnimation)){a.resumeFrom&&(a.resumingFrom=a.resumeFrom,a.resumingFrom.resumingFrom=void 0),a.setAnimationOrigin(s,y);var g=to(to({},Qs(f,"layout")),{onPlay:m,onComplete:v});l.shouldReduceMotion&&(g.delay=0,g.type=!1),a.startAnimation(g)}else c||0!==a.animationProgress||a.finishAnimation(),a.isLead()&&(null===(i=(o=a.options).onExitComplete)||void 0===i||i.call(o));a.targetLayout=d})}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,Bo.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(cc))},e.prototype.willUpdate=function(e){var t,n,r;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var a=0;a<this.path.length;a++){var o=this.path[a];o.shouldResetTransform=!0,o.updateScroll()}var i=this.options;if(void 0!==i.layoutId||i.layout){var s=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==s?void 0:s(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(ac);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(vc),this.potentialNodes.clear()),this.nodes.forEach(oc),this.nodes.forEach(tc),this.nodes.forEach(nc),this.clearAllSnapshots(),Fo.update(),Fo.preRender(),Fo.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(rc),this.sharedNodes.forEach(uc)},e.prototype.scheduleUpdateProjection=function(){jo.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;jo.postRender(function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()})},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));yc(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++)this.path[t].updateScroll();var n=this.measure();yc(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==r?void 0:r.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(a){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!Vl(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,o=null==r?void 0:r(this.latestValues,""),i=o!==this.prevTransformTemplateValue;t&&(n||pl(this.latestValues)||i)&&(a(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};var t=e.measureViewportBox(),n=this.root.scroll;return n&&(bl(t.x,n.x),bl(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};ul(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],a=r.scroll;r!==this.root&&a&&r.options.layoutScroll&&(bl(t.x,a.x),bl(t.y,a.y))}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};ul(n,e);for(var r=0;r<this.path.length;r++){var a=this.path[r];!t&&a.options.layoutScroll&&a.scroll&&a!==a.root&&wl(n,{x:-a.scroll.x,y:-a.scroll.y}),pl(a.latestValues)&&wl(n,a.latestValues)}return pl(this.latestValues)&&wl(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};ul(n,e);for(var r=0;r<this.path.length;r++){var a=this.path[r];if(a.instance&&pl(a.latestValues)){fl(a.latestValues)&&a.updateSnapshot();var o={x:{min:0,max:0},y:{min:0,max:0}};ul(o,a.measure()),Dl(n,a.latestValues,null===(t=a.snapshot)||void 0===t?void 0:t.layout,o)}}return pl(this.latestValues)&&Dl(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=to(to(to({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){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},e.prototype.resolveTargetDelta=function(){var e,t,n,r,a=this.options;this.layout&&(a.layout||a.layoutId)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Rl(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),ul(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(Al((t=this.target).x,(n=this.relativeTarget).x,(r=this.relativeParent.target).x),Al(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):ul(this.target,this.layout.actual),gl(this.target,this.targetDelta)):ul(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Rl(this.relativeTargetOrigin,this.target,this.relativeParent.target),ul(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!pl(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,r=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var a=this.getLead();ul(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var a,o;void 0===r&&(r=!1);var i=n.length;if(i){var s,l;t.x=t.y=1;for(var c=0;c<i;c++)l=(s=n[c]).projectionDelta,"contents"!==(null===(o=null===(a=s.instance)||void 0===a?void 0:a.style)||void 0===o?void 0:o.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&wl(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,gl(e,l)),r&&pl(s.latestValues)&&wl(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==a);var o=a.target;if(o){this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});var i=this.treeScale.x,s=this.treeScale.y,l=this.projectionTransform;Ol(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.projectionTransform=zl(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===i&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,r;void 0===e&&(e=!0),null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var n,r=this;void 0===t&&(t=!1);var a=this.snapshot,o=(null==a?void 0:a.latestValues)||{},i=to({},this.latestValues),s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var l={x:{min:0,max:0},y:{min:0,max:0}},c=null==a?void 0:a.isShared,u=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,d=Boolean(c&&!u&&!0===this.options.crossfade&&!this.path.some(pc));this.animationProgress=0,this.mixTargetDelta=function(t){var n,a=t/1e3;dc(s.x,e.x,a),dc(s.y,e.y,a),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(Rl(l,r.layout.actual,r.relativeParent.layout.actual),function(e,t,n,r){fc(e.x,t.x,n.x,r),fc(e.y,t.y,n.y,r)}(r.relativeTarget,r.relativeTargetOrigin,l,a)),c&&(r.animationValues=i,function(e,t,n,r,a,o){var i,s,l,c;a?(e.opacity=Qo(0,null!==(i=n.opacity)&&void 0!==i?i:1,il(r)),e.opacityExit=Qo(null!==(s=t.opacity)&&void 0!==s?s:1,0,sl(r))):o&&(e.opacity=Qo(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(c=n.opacity)&&void 0!==c?c:1,r));for(var u=0;u<nl;u++){var d="border".concat(tl[u],"Radius"),f=ol(t,d),p=ol(n,d);void 0===f&&void 0===p||(f||(f=0),p||(p=0),0===f||0===p||al(f)===al(p)?(e[d]=Math.max(Qo(rl(f),rl(p),r),0),(di.test(p)||di.test(f))&&(e[d]+="%")):e[d]=p)}(t.rotate||n.rotate)&&(e.rotate=Qo(t.rotate||0,n.rotate||0,r))}(i,o,r.latestValues,a,d,u)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=a},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,n,r=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(Bo.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=jo.update(function(){Ql.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=Ts(0)?0:Ps(0);return el("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,to(to({},e),{onUpdate:function(t){var n;r.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),r.completeAnimation()}})),r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0})},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.latestValues;t&&n&&e.layout&&(ul(t,n),wl(t,r),Ol(this.projectionDeltaWithTransform,this.layoutCorrected,t,r))},e.prototype.registerSharedNode=function(e,t){var n,r,a;this.sharedNodes.has(e)||this.sharedNodes.set(e,new Bl),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(a=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===a?void 0:a.call(r,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,n=t.needsReset,r=t.transition,a=t.preserveFollowOpacity,o=this.getStack();o&&o.promote(this,a),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,n={},r=0;r<Hl.length;r++)e.getStaticValue(a="rotate"+Hl[r])&&(t=!0,n[a]=e.getStaticValue(a),e.setStaticValue(a,0));if(t){for(var a in null==e||e.syncRender(),n)e.setStaticValue(a,n[a]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,a,o,i;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var l=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=Jl(e.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none",s;var c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){var u={};return this.options.layoutId&&(u.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,u.pointerEvents=Jl(e.pointerEvents)||""),this.hasProjected&&!pl(this.latestValues)&&(u.transform=l?l({},""):"none",this.hasProjected=!1),u}var d=c.animationValues||c.latestValues;this.applyTransformsToTarget(),s.transform=zl(this.projectionDeltaWithTransform,this.treeScale,d),l&&(s.transform=l(d,s.transform));var f=this.projectionDelta,p=f.x,m=f.y;for(var v in s.transformOrigin="".concat(100*p.origin,"% ").concat(100*m.origin,"% 0"),s.opacity=c.animationValues?c===this?null!==(a=null!==(r=d.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==a?a:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:c===this?null!==(o=d.opacity)&&void 0!==o?o:"":null!==(i=d.opacityExit)&&void 0!==i?i:0,Fl)if(void 0!==d[v]){var h=Fl[v],y=h.applyTo,g=(0,h.correct)(d[v],c);if(y)for(var b=y.length,E=0;E<b;E++)s[y[E]]=g;else s[v]=g}return this.options.layoutId&&(s.pointerEvents=c===this?Jl(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},e.prototype.resetTree=function(){this.root.nodes.forEach(function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(ac),this.root.sharedNodes.clear()},e}()}function tc(e){e.updateLayout()}function nc(e){var t,n,r,a,o=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){var i=e.layout,s=i.actual,l=i.measured;"size"===e.options.animationType?Wl(function(e){var t=o.isShared?o.measured[e]:o.layout[e],n=kl(t);t.min=s[e].min,t.max=t.min+n}):"position"===e.options.animationType&&Wl(function(e){var t=o.isShared?o.measured[e]:o.layout[e],n=kl(s[e]);t.max=t.min+n});var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Ol(c,s,o.layout);var u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o.isShared?Ol(u,e.applyTransform(l,!0),o.measured):Ol(u,s,o.layout);var d=!Vl(c),f=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var p=e.relativeParent,m=p.snapshot,v=p.layout;if(m&&v){var h={x:{min:0,max:0},y:{min:0,max:0}};Rl(h,o.layout,m.layout);var y={x:{min:0,max:0},y:{min:0,max:0}};Rl(y,s,v.actual),jl(h,y)||(f=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:o,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else e.isLead()&&(null===(a=(r=e.options).onExitComplete)||void 0===a||a.call(r));e.options.transition=void 0}function rc(e){e.clearSnapshot()}function ac(e){e.clearMeasurements()}function oc(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function ic(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function sc(e){e.resolveTargetDelta()}function lc(e){e.calcProjection()}function cc(e){e.resetRotation()}function uc(e){e.removeLeadSnapshot()}function dc(e,t,n){e.translate=Qo(t.translate,0,n),e.scale=Qo(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function fc(e,t,n,r){e.min=Qo(t.min,n.min,r),e.max=Qo(t.max,n.max,r)}function pc(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var mc={duration:.45,ease:[.4,0,.1,1]};function vc(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var a=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));a&&e.mount(a,!0)}function hc(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function yc(e){hc(e.x),hc(e.y)}var gc=1,bc=F.createContext({}),Ec=F.createContext({}),xc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return eo(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement;t&&t.setProps(e.props)},t.prototype.render=function(){return this.props.children},t}(F.Component);function _c(e){function t(t,n){return void 0===n&&(n={}),function(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,a=e.useRender,o=e.useVisualState,i=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?so.projectionNodeConstructor=e[t]:so[t].Component=e[t])}(t),F.forwardRef(function(e,s){var l=function(e){var t,n=e.layoutId,r=null===(t=F.useContext(bc))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=to(to({},e),{layoutId:l});var c=F.useContext(mo),u=null,d=function(e){var t=function(e,t){if(Co(e)){var n=e.initial,r=e.animate;return{initial:!1===n||wo(n)?n:void 0,animate:wo(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,F.useContext(vo)),n=t.initial,r=t.animate;return F.useMemo(function(){return{initial:n,animate:r}},[Ao(n),Ao(r)])}(e),f=c.isStatic?void 0:No(function(){if(Ql.hasEverUpdated)return gc++}),p=o(e,c.isStatic);return!c.isStatic&&yo&&(d.visualElement=function(e,t,n,r){var a,o,i=F.useContext(uo),s=F.useContext(vo).visualElement,l=F.useContext(ho),c=(!Eo&&function(){if(Eo=!0,yo)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return bo.current=e.matches};e.addListener(t),t()}else bo.current=!1}(),a=ro(F.useState(bo.current),1)[0],"never"!==(o=F.useContext(mo).reducedMotion)&&("always"===o||a)),u=F.useRef(void 0);r||(r=i.renderer),!u.current&&r&&(u.current=r(e,{visualState:t,parent:s,props:n,presenceId:null==l?void 0:l.id,blockInitialAnimation:!1===(null==l?void 0:l.initial),shouldReduceMotion:c}));var d=u.current;return go(function(){null==d||d.syncRender()}),F.useEffect(function(){var e;null===(e=null==d?void 0:d.animationState)||void 0===e||e.animateChanges()}),go(function(){return function(){return null==d?void 0:d.notifyUnmount()}},[]),d}(i,p,to(to({},c),e),n),function(e,t,n,r){var a,o=t.layoutId,i=t.layout,s=t.drag,l=t.dragConstraints,c=t.layoutScroll,u=F.useContext(Ec);r&&n&&!(null==n?void 0:n.projection)&&(n.projection=new r(e,n.getLatestValues(),null===(a=n.parent)||void 0===a?void 0:a.projection),n.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(s)||l&&xo(l),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof i?i:"both",initialPromotionConfig:u,layoutScroll:c}))}(f,e,d.visualElement,r||so.projectionNodeConstructor),u=function(e,t,n){var r=[],a=F.useContext(uo);if(!t)return null;"production"!==oo&&n&&a.strict&&co(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var o=0;o<po;o++){var i=fo[o],s=so[i],l=s.Component;(0,s.isEnabled)(e)&&l&&r.push(F.createElement(l,to({key:i},e,{visualElement:t})))}return r}(e,d.visualElement,t)),F.createElement(xc,{visualElement:d.visualElement,props:to(to({},c),e)},u,F.createElement(vo.Provider,{value:d},a(i,e,f,function(e,t,n){return F.useCallback(function(r){var a;r&&(null===(a=e.mount)||void 0===a||a.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):xo(n)&&(n.current=r))},[t])}(p,d.visualElement,s),p,c.isStatic,d.visualElement)))})}(e(t,n))}if("undefined"==typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}var wc=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function kc(e){return"string"==typeof e&&!e.includes("-")&&!!(wc.indexOf(e)>-1||/[A-Z]/.test(e))}function Sc(e,t){var n=t.layout,r=t.layoutId;return Yl(e)||Gl(e)||(n||void 0!==r)&&(!!Fl[e]||"opacity"===e)}var Cc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Oc(e){return e.startsWith("--")}var Ac=function(e,t){return t&&"number"==typeof e?t.transform(e):e};function Nc(e,t,n,r){var a,o=e.style,i=e.vars,s=e.transform,l=e.transformKeys,c=e.transformOrigin;l.length=0;var u=!1,d=!1,f=!0;for(var p in t){var m=t[p];if(Oc(p))i[p]=m;else{var v=$s[p],h=Ac(m,v);if(Yl(p)){if(u=!0,s[p]=h,l.push(p),!f)continue;m!==(null!==(a=v.default)&&void 0!==a?a:0)&&(f=!1)}else Gl(p)?(c[p]=h,d=!0):o[p]=h}}u?o.transform=function(e,t,n,r){var a=e.transform,o=e.transformKeys,i=t.enableHardwareAcceleration,s=void 0===i||i,l=t.allowTransformNone,c=void 0===l||l,u="";o.sort($l);for(var d=!1,f=o.length,p=0;p<f;p++){var m=o[p];u+="".concat(Cc[m]||m,"(").concat(a[m],") "),"z"===m&&(d=!0)}return!d&&s?u+="translateZ(0)":u=u.trim(),r?u=r(a,n?"":u):c&&n&&(u="none"),u}(e,n,f,r):r?o.transform=r({},""):!t.transform&&o.transform&&(o.transform="none"),d&&(o.transformOrigin=function(e){var t=e.originX,n=e.originY,r=void 0===n?"50%":n,a=e.originZ,o=void 0===a?0:a;return"".concat(void 0===t?"50%":t," ").concat(r," ").concat(o)}(c))}function Rc(e,t,n){for(var r in t)Ts(t[r])||Sc(r,n)||(e[r]=t[r])}function Ic(e,t,n){var r={},a=function(e,t,n){var r={};return Rc(r,e.style||{},e),Object.assign(r,function(e,t,n){var r=e.transformTemplate;return F.useMemo(function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};Nc(e,t,{enableHardwareAcceleration:!n},r);var a=e.style;return to(to({},e.vars),a)},[t])}(e,t,n)),e.transformValues&&(r=e.transformValues(r)),r}(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=a,r}var Pc=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function Tc(e){return Pc.has(e)}var Lc,Dc=function(e){return!Tc(e)};try{(Lc=require("@emotion/is-prop-valid").default)&&(Dc=function(e){return e.startsWith("on")?!Tc(e):Lc(e)})}catch(e){}function Mc(e,t,n){return"string"==typeof e?e:fi.transform(t+n*e)}var Vc={offset:"stroke-dashoffset",array:"stroke-dasharray"},jc={offset:"strokeDashoffset",array:"strokeDasharray"};function Bc(e,t,n,r){var a=t.attrX,o=t.attrY,i=t.originX,s=t.originY,l=t.pathLength,c=t.pathSpacing,u=void 0===c?1:c,d=t.pathOffset,f=void 0===d?0:d;Nc(e,no(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),e.attrs=e.style,e.style={};var p=e.attrs,m=e.style,v=e.dimensions;p.transform&&(v&&(m.transform=p.transform),delete p.transform),v&&(void 0!==i||void 0!==s||m.transform)&&(m.transformOrigin=function(e,t,n){var r=Mc(t,e.x,e.width),a=Mc(n,e.y,e.height);return"".concat(r," ").concat(a)}(v,void 0!==i?i:.5,void 0!==s?s:.5)),void 0!==a&&(p.x=a),void 0!==o&&(p.y=o),void 0!==l&&function(e,t,n,r,a){void 0===n&&(n=1),void 0===r&&(r=0),void 0===a&&(a=!0),e.pathLength=1;var o=a?Vc:jc;e[o.offset]=fi.transform(-r);var i=fi.transform(t),s=fi.transform(n);e[o.array]="".concat(i," ").concat(s)}(p,l,u,f,!1)}var Fc=function(){return to(to({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function zc(e,t){var n=F.useMemo(function(){var n=Fc();return Bc(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),to(to({},n.attrs),{style:to({},n.style)})},[t]);if(e.style){var r={};Rc(r,e.style,e),n.style=to(to({},r),n.style)}return n}function Wc(e){return void 0===e&&(e=!1),function(t,n,r,a,o,i){var s=o.latestValues,l=(kc(t)?zc:Ic)(n,s,i),c=function(e,t,n){var r={};for(var a in e)(Dc(a)||!0===n&&Tc(a)||!t&&!Tc(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}(n,"string"==typeof t,e),u=to(to(to({},c),l),{ref:a});return r&&(u["data-projection-id"]=r),F.createElement(t,u)}}var Hc=/([a-z])([A-Z])/g,Uc=function(e){return e.replace(Hc,"$1-$2").toLowerCase()};function $c(e,t,n,r){var a=t.style,o=t.vars;for(var i in Object.assign(e.style,a,r&&r.getProjectionStyles(n)),o)e.style.setProperty(i,o[i])}var qc=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Yc(e,t,n,r){for(var a in $c(e,t,void 0,r),t.attrs)e.setAttribute(qc.has(a)?a:Uc(a),t.attrs[a])}function Zc(e){var t=e.style,n={};for(var r in t)(Ts(t[r])||Sc(r,e))&&(n[r]=t[r]);return n}function Gc(e){var t=Zc(e);for(var n in e)Ts(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function Xc(e){return"object"==typeof e&&"function"==typeof e.start}function Kc(e,t,n,r){var a=e.createRenderState,o=e.onMount,i={latestValues:Qc(t,n,r,e.scrapeMotionValuesFromProps),renderState:a()};return o&&(i.mount=function(e){return o(t,e,i)}),i}var Jc=function(e){return function(t,n){var r=F.useContext(vo),a=F.useContext(ho);return n?Kc(e,t,r,a):No(function(){return Kc(e,t,r,a)})}};function Qc(e,t,n,r){var a={},o=!1===(null==n?void 0:n.initial),i=r(e);for(var s in i)a[s]=Jl(i[s]);var l=e.initial,c=e.animate,u=Co(e),d=Oo(e);t&&d&&!u&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=c||(c=t.animate));var f=o||!1===l,p=f?c:l;return p&&"boolean"!=typeof p&&!Xc(p)&&(Array.isArray(p)?p:[p]).forEach(function(t){var n=ko(e,t);if(n){var r=n.transitionEnd,o=no(n,["transitionEnd","transition"]);for(var i in o){var s=o[i];Array.isArray(s)&&(s=s[f?s.length-1:0]),null!==s&&(a[i]=s)}for(var i in r)a[i]=r[i]}}),a}var eu,tu={useVisualState:Jc({scrapeMotionValuesFromProps:Gc,createRenderState:Fc,onMount:function(e,t,n){var r=n.renderState,a=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}Bc(r,a,{enableHardwareAcceleration:!1},e.transformTemplate),Yc(t,r)}})},nu={useVisualState:Jc({scrapeMotionValuesFromProps:Zc,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function ru(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function au(e,t,n,r){F.useEffect(function(){var a=e.current;if(n&&a)return ru(a,t,n,r)},[e,t,n,r])}function ou(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function iu(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"}(eu||(eu={}));var su={pageX:0,pageY:0};function lu(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||su;return{x:n[t+"X"],y:n[t+"Y"]}}function cu(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function uu(e,t){return void 0===t&&(t="page"),{point:iu(e)?lu(e,t):cu(e,t)}}var du=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,uu(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},fu={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},pu={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function mu(e){return yo&&null===window.onpointerdown?e:yo&&null===window.ontouchstart?pu[e]:yo&&null===window.onmousedown?fu[e]:e}function vu(e,t,n,r){return ru(e,mu(t),du(n,"pointerdown"===t),r)}function hu(e,t,n,r){return au(e,mu(t),n&&du(n,"pointerdown"===t),r)}function yu(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var gu=yu("dragHorizontal"),bu=yu("dragVertical");function Eu(e){var t=!1;if("y"===e)t=bu();else if("x"===e)t=gu();else{var n=gu(),r=bu();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function xu(){var e=Eu(!0);return!e||(e(),!1)}function _u(e,t,n){return function(r,a){var o;ou(r)&&!xu()&&(null===(o=e.animationState)||void 0===o||o.setActive(eu.Hover,t),null==n||n(r,a))}}var wu=function(e,t){return!!t&&(e===t||wu(e,t.parentElement))};function ku(e){return F.useEffect(function(){return function(){return e()}},[])}var Su=new Set;function Cu(e,t,n){e||Su.has(t)||(console.warn(t),n&&console.warn(n),Su.add(t))}var Ou=new WeakMap,Au=new WeakMap,Nu=function(e){var t;null===(t=Ou.get(e.target))||void 0===t||t(e)},Ru=function(e){e.forEach(Nu)},Iu={some:0,all:1};function Pu(e,t,n,r){var a=r.root,o=r.margin,i=r.amount,s=void 0===i?"some":i,l=r.once;F.useEffect(function(){if(e){var r={root:null==a?void 0:a.current,rootMargin:o,threshold:"number"==typeof s?s:Iu[s]};return function(e,r,a){var o=function(e){var t=e.root,n=no(e,["root"]),r=t||document;Au.has(r)||Au.set(r,{});var a=Au.get(r),o=JSON.stringify(n);return a[o]||(a[o]=new IntersectionObserver(Ru,to({root:t},n))),a[o]}(r);return Ou.set(e,function(e){var r,a=e.isIntersecting;if(t.isInView!==a&&(t.isInView=a,!l||a||!t.hasEnteredView)){a&&(t.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(eu.InView,a);var o=n.getProps(),i=a?o.onViewportEnter:o.onViewportLeave;null==i||i(e)}}),o.observe(e),function(){Ou.delete(e),o.unobserve(e)}}(n.getInstance(),r)}},[e,a,o,s])}function Tu(e,t,n,r){var a=r.fallback,o=void 0===a||a;F.useEffect(function(){e&&o&&("production"!==oo&&Cu(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var e;t.hasEnteredView=!0;var r=n.getProps().onViewportEnter;null==r||r(null),null===(e=n.animationState)||void 0===e||e.setActive(eu.InView,!0)}))},[e])}var Lu=function(e){return function(t){return e(t),null}},Du={inView:Lu(function(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,a=e.onViewportLeave,o=e.viewport,i=void 0===o?{}:o,s=F.useRef({hasEnteredView:!1,isInView:!1}),l=Boolean(n||r||a);i.once&&s.current.hasEnteredView&&(l=!1),("undefined"==typeof IntersectionObserver?Tu:Pu)(l,s.current,t,i)}),tap:Lu(function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,a=e.visualElement,o=t||n||r||e.whileTap,i=F.useRef(!1),s=F.useRef(null),l={passive:!(n||t||r||p)};function c(){var e;null===(e=s.current)||void 0===e||e.call(s),s.current=null}function u(){var e;return c(),i.current=!1,null===(e=a.animationState)||void 0===e||e.setActive(eu.Tap,!1),!xu()}function d(e,n){u()&&(wu(a.getInstance(),e.target)?null==t||t(e,n):null==r||r(e,n))}function f(e,t){u()&&(null==r||r(e,t))}function p(e,t){var r;c(),i.current||(i.current=!0,s.current=Wi(vu(window,"pointerup",d,l),vu(window,"pointercancel",f,l)),null===(r=a.animationState)||void 0===r||r.setActive(eu.Tap,!0),null==n||n(e,t))}hu(a,"pointerdown",o?p:void 0,l),ku(c)}),focus:Lu(function(e){var t=e.whileFocus,n=e.visualElement;au(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(eu.Focus,!0)}:void 0),au(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(eu.Focus,!1)}:void 0)}),hover:Lu(function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,a=e.visualElement;hu(a,"pointerenter",t||r?_u(a,!0,t):void 0,{passive:!t}),hu(a,"pointerleave",n||r?_u(a,!1,n):void 0,{passive:!n})})},Mu=0,Vu=function(){return Mu++},ju=function(){return No(Vu)};function Bu(){var e=F.useContext(ho);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,a=ju();return F.useEffect(function(){return r(a)},[]),!t&&n?[!1,function(){return null==n?void 0:n(a)}]:[!0]}function Fu(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var zu=function(e){return/^\-?\d*\.?\d+$/.test(e)},Wu=function(e){return/^0[^.\s]+$/.test(e)},Hu=function(e){return function(t){return t.test(e)}},Uu=[ii,fi,di,ui,mi,pi,{test:function(e){return"auto"===e},parse:function(e){return e}}],$u=function(e){return Uu.find(Hu(e))},qu=ao(ao([],ro(Uu),!1),[wi,Ai],!1),Yu=function(e){return qu.find(Hu(e))};function Zu(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ps(n))}function Gu(e,t){if(t)return(t[e]||t.default||t).from}function Xu(e,t,n){var r;void 0===n&&(n={});var a=So(e,t,n.custom),o=(a||{}).transition,i=void 0===o?e.getDefaultTransition()||{}:o;n.transitionOverride&&(i=n.transitionOverride);var s=a?function(){return Ku(e,a,n)}:function(){return Promise.resolve()},l=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var a=i.delayChildren;return function(e,t,n,r,a,o){void 0===n&&(n=0),void 0===r&&(r=0),void 0===a&&(a=1);var i=[],s=(e.variantChildren.size-1)*r,l=1===a?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),s-e*r};return Array.from(e.variantChildren).sort(Ju).forEach(function(e,r){i.push(Xu(e,t,to(to({},o),{delay:n+l(r)})).then(function(){return e.notifyAnimationComplete(t)}))}),Promise.all(i)}(e,t,(void 0===a?0:a)+r,i.staggerChildren,i.staggerDirection,n)}:function(){return Promise.resolve()},c=i.when;if(c){var u=ro("beforeChildren"===c?[s,l]:[l,s],2),d=u[1];return(0,u[0])().then(d)}return Promise.all([s(),l(n.delay)])}function Ku(e,t,n){var r,a=void 0===n?{}:n,o=a.delay,i=void 0===o?0:o,s=a.transitionOverride,l=a.type,c=e.makeTargetAnimatable(t),u=c.transition,d=void 0===u?e.getDefaultTransition():u,f=c.transitionEnd,p=no(c,["transition","transitionEnd"]);s&&(d=s);var m=[],v=l&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[l]);for(var h in p){var y=e.getValue(h),g=p[h];if(!(!y||void 0===g||v&&Qu(v,h))){var b=to({delay:i},d);e.shouldReduceMotion&&Yl(h)&&(b=to(to({},b),{type:!1,delay:0}));var E=el(h,y,g,b);m.push(E)}}return Promise.all(m).then(function(){f&&function(e,t){var n=So(e,t),r=n?e.makeTargetAnimatable(n,!1):{},a=r.transitionEnd,o=void 0===a?{}:a,i=no(r,["transitionEnd","transition"]);for(var s in i=to(to({},i),o))Zu(e,s,Gs(i[s]))}(e,f)})}function Ju(e,t){return e.sortNodePosition(t)}function Qu(e,t){var n=e.needsAnimating,r=e.protectedKeys.hasOwnProperty(t)&&!0!==n[t];return n[t]=!1,r}var ed=[eu.Animate,eu.InView,eu.Focus,eu.Hover,eu.Tap,eu.Drag,eu.Exit],td=ao([],ro(ed),!1).reverse(),nd=ed.length;function rd(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var ad={animation:Lu(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=function(e){var t,n=function(e){return function(t){return Promise.all(t.map(function(t){return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var a=t.map(function(t){return Xu(e,t,n)});r=Promise.all(a)}else if("string"==typeof t)r=Xu(e,t,n);else{var o="function"==typeof t?So(e,t,n.custom):t;r=Ku(e,o,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}(e,t.animation,t.options)}))}}(e),r=((t={})[eu.Animate]=rd(!0),t[eu.InView]=rd(),t[eu.Hover]=rd(),t[eu.Tap]=rd(),t[eu.Drag]=rd(),t[eu.Focus]=rd(),t[eu.Exit]=rd(),t),a={},o=!0,i=function(t,n){var r=So(e,n);if(r){var a=r.transitionEnd,o=no(r,["transition","transitionEnd"]);t=to(to(to({},t),o),a)}return t};function s(t,s){for(var l,c=e.getProps(),u=e.getVariantContext(!0)||{},d=[],f=new Set,p={},m=Infinity,v=function(n){var a=td[n],v=r[a],h=null!==(l=c[a])&&void 0!==l?l:u[a],y=wo(h),g=a===s?v.isActive:null;!1===g&&(m=n);var b=h===u[a]&&h!==c[a]&&y;if(b&&o&&e.manuallyAnimateOnMount&&(b=!1),v.protectedKeys=to({},p),!v.isActive&&null===g||!h&&!v.prevProp||Xc(h)||"boolean"==typeof h)return"continue";var E=function(e,t){return"string"==typeof t?t!==e:!!_o(t)&&!Fu(t,e)}(v.prevProp,h),x=E||a===s&&v.isActive&&!b&&y||n>m&&y,_=Array.isArray(h)?h:[h],w=_.reduce(i,{});!1===g&&(w={});var k=v.prevResolvedValues,S=void 0===k?{}:k,C=to(to({},S),w),O=function(e){x=!0,f.delete(e),v.needsAnimating[e]=!0};for(var A in C){var N=w[A],R=S[A];p.hasOwnProperty(A)||(N!==R?js(N)&&js(R)?!Fu(N,R)||E?O(A):v.protectedKeys[A]=!0:void 0!==N?O(A):f.add(A):void 0!==N&&f.has(A)?O(A):v.protectedKeys[A]=!0)}v.prevProp=h,v.prevResolvedValues=w,v.isActive&&(p=to(to({},p),w)),o&&e.blockInitialAnimation&&(x=!1),x&&!b&&d.push.apply(d,ao([],ro(_.map(function(e){return{animation:e,options:to({type:a},t)}})),!1))},h=0;h<nd;h++)v(h);if(a=to({},p),f.size){var y={};f.forEach(function(t){var n=e.getBaseTarget(t);void 0!==n&&(y[t]=n)}),d.push({animation:y})}var g=Boolean(d.length);return o&&!1===c.initial&&!e.manuallyAnimateOnMount&&(g=!1),o=!1,g?n(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==a[e]},animateChanges:s,setActive:function(t,n,a){var o;if(r[t].isActive===n)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach(function(e){var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n;var i=s(a,t);for(var l in r)r[l].protectedKeys={};return i},setAnimateFunction:function(t){n=t(e)},getState:function(){return r}}}(t)),Xc(n)&&F.useEffect(function(){return n.subscribe(t)},[n])}),exit:Lu(function(e){var t=e.custom,n=e.visualElement,r=ro(Bu(),2),a=r[0],o=r[1],i=F.useContext(ho);F.useEffect(function(){var e,r;n.isPresent=a;var s=null===(e=n.animationState)||void 0===e?void 0:e.setActive(eu.Exit,!a,{custom:null!==(r=null==i?void 0:i.custom)&&void 0!==r?r:t});!a&&(null==s||s.then(o))},[a])})},od=function(){function e(e,t,n){var r=this,a=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=ld(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=_s(e.offset,{x:0,y:0})>=3;if(t||n){var a=e.point,o=Uo().timestamp;r.history.push(to(to({},a),{timestamp:o}));var i=r.handlers,s=i.onStart,l=i.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=id(t,r.transformPagePoint),ou(e)&&0===e.buttons?r.handlePointerUp(e,t):jo.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,a=n.onEnd,o=n.onSessionEnd,i=ld(id(t,r.transformPagePoint),r.history);r.startEvent&&a&&a(e,i),o&&o(e,i)},!(iu(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=a;var o=id(uu(e),this.transformPagePoint),i=o.point,s=Uo().timestamp;this.history=[to(to({},i),{timestamp:s})];var l=t.onSessionStart;l&&l(e,ld(o,this.history)),this.removeListeners=Wi(vu(window,"pointermove",this.handlePointerMove),vu(window,"pointerup",this.handlePointerUp),vu(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Bo.update(this.updatePoint)},e}();function id(e,t){return t?{point:t(e.point)}:e}function sd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ld(e,t){var n=e.point;return{point:n,delta:sd(n,ud(t)),offset:sd(n,cd(t)),velocity:dd(t,.1)}}function cd(e){return e[0]}function ud(e){return e[e.length-1]}function dd(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,a=ud(e);n>=0&&!(a.timestamp-(r=e[n]).timestamp>Ls(t));)n--;if(!r)return{x:0,y:0};var o=(a.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};var i={x:(a.x-r.x)/o,y:(a.y-r.y)/o};return Infinity===i.x&&(i.x=0),Infinity===i.y&&(i.y=0),i}function fd(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function pd(e,t){var n,r=t.min-e.min,a=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=ro([a,r],2))[0],a=n[1]),{min:r,max:a}}function md(e,t,n){return{min:vd(e,t),max:vd(e,n)}}function vd(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function hd(e){return{x:{min:e.left,max:e.right},y:{min:e.top,max:e.bottom}}}function yd(e,t){return hd(function(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}var gd=new WeakMap,bd=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor,a=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new od(e,{onSessionStart:function(e){n.stopAnimation(),a&&n.snapToCursor(uu(e,"page").point)},onStart:function(e,t){var r,a=n.getProps(),o=a.drag,i=a.onDragStart;(!o||a.dragPropagation||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=Eu(o),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),Wl(function(e){var t,r,a=n.getAxisMotionValue(e).get()||0;if(di.test(a)){var o=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];o&&(a=kl(o)*(parseFloat(a)/100))}n.originPoint[e]=a}),null==i||i(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(eu.Drag,!0))},onMove:function(e,t){var r=n.getProps(),a=r.onDirectionLock,o=r.onDrag;if(r.dragPropagation||n.openGlobalLock){var i=t.offset;if(r.dragDirectionLock&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(i),void(null!==n.currentDirection&&(null==a||a(n.currentDirection)));n.updateAxis("x",t.point,i),n.updateAxis("y",t.point,i),n.visualElement.syncRender(),null==o||o(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){this.startAnimation(t.velocity);var r=this.getProps().onDragEnd;null==r||r(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(eu.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&Ed(e,r,this.currentDirection)){var a=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,t,n){var r=t.min,a=t.max;return void 0!==r&&e<r?e=n?Qo(r,e,n.min):Math.max(e,r):void 0!==a&&e>a&&(e=n?Qo(a,e,n.max):Math.min(e,a)),e}(o,this.constraints[e],this.elastic[e])),a.set(o)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,a=(this.visualElement.projection||{}).layout,o=this.constraints;n&&xo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!a)&&function(e,t){var n=t.top,r=t.bottom;return{x:fd(e.x,t.left,t.right),y:fd(e.y,n,r)}}(a.actual,n),this.elastic=function(e){return void 0===e&&(e=.35),!1===e?e=0:!0===e&&(e=.35),{x:md(e,"left","right"),y:md(e,"top","bottom")}}(r),o!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&Wl(function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(a.actual[t],e.constraints[t]))})},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!xo(t))return!1;var r=t.current;co(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var a=this.visualElement.projection;if(!a||!a.layout)return!1;var o=function(e,t,n){var r=yd(e,n),a=t.scroll;return a&&(bl(r.x,a.x),bl(r.y,a.y)),r}(r,a.root,this.visualElement.getTransformPagePoint()),i=function(e,t){return{x:pd(e.x,t.x),y:pd(e.y,t.y)}}(a.layout.actual,o);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(i));this.hasMutatedConstraints=!!s,s&&(i=hd(s))}return i},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,a=n.dragMomentum,o=n.dragElastic,i=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,c=this.constraints||{},u=Wl(function(n){var l;if(Ed(n,r,t.currentDirection)){var u=null!==(l=null==c?void 0:c[n])&&void 0!==l?l:{};s&&(u={min:0,max:0});var d=to(to({type:"inertia",velocity:a?e[n]:0,bounceStiffness:o?200:1e6,bounceDamping:o?40:1e7,timeConstant:750,restDelta:1,restSpeed:10},i),u);return t.startAxisValueAnimation(n,d)}});return Promise.all(u).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return el(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;Wl(function(t){return e.getAxisMotionValue(t).stop()})},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase();return this.visualElement.getProps()[r]||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;Wl(function(n){if(Ed(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,a=t.getAxisMotionValue(n);if(r&&r.layout){var o=r.layout.actual[n];a.set(e[n]-Qo(o.min,o.max,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,a=this.visualElement.projection;if(xo(n.dragConstraints)&&a&&this.constraints){this.stopAnimation();var o={x:0,y:0};Wl(function(e){var n,r,a,i,s,l=t.getAxisMotionValue(e);if(l){var c=l.get();o[e]=(r=t.constraints[e],a=.5,i=kl(n={min:c,max:c}),(s=kl(r))>i?a=Jo(r.min,r.max-i,n.min):i>s&&(a=Jo(n.min,n.max-s,r.min)),$o(0,1,a))}});var i=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=i?i({},""):"none",null===(e=a.root)||void 0===e||e.updateScroll(),a.updateLayout(),this.resolveConstraints(),Wl(function(e){if(Ed(e,r,null)){var n=t.getAxisMotionValue(e),a=t.constraints[e];n.set(Qo(a.min,a.max,o[e]))}})}},e.prototype.addListeners=function(){var e,t=this;gd.set(this.visualElement,this);var n=vu(this.visualElement.getInstance(),"pointerdown",function(e){var n=t.getProps(),r=n.dragListener;n.drag&&(void 0===r||r)&&t.start(e)}),r=function(){xo(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},a=this.visualElement.projection,o=a.addEventListener("measure",r);a&&!a.layout&&(null===(e=a.root)||void 0===e||e.updateScroll(),a.updateLayout()),r();var i=ru(window,"resize",function(){return t.scalePositionWithinConstraints()});return a.addEventListener("didUpdate",function(e){var n=e.delta;t.isDragging&&e.hasLayoutChanged&&(Wl(function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))}),t.visualElement.syncRender())}),function(){i(),n(),o()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,a=void 0!==r&&r,o=e.dragPropagation,i=void 0!==o&&o,s=e.dragConstraints,l=void 0!==s&&s,c=e.dragElastic,u=void 0===c?.35:c,d=e.dragMomentum,f=void 0===d||d;return to(to({},e),{drag:n,dragDirectionLock:a,dragPropagation:i,dragConstraints:l,dragElastic:u,dragMomentum:f})},e}();function Ed(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var xd={pan:Lu(function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,a=e.onPanSessionStart,o=e.visualElement,i=t||n||r||a,s=F.useRef(null),l=F.useContext(mo).transformPagePoint,c={onSessionStart:a,onStart:n,onMove:t,onEnd:function(e,t){s.current=null,r&&r(e,t)}};F.useEffect(function(){null!==s.current&&s.current.updateHandlers(c)}),hu(o,"pointerdown",i&&function(e){s.current=new od(e,c,{transformPagePoint:l})}),ku(function(){return s.current&&s.current.end()})}),drag:Lu(function(e){var t=e.dragControls,n=e.visualElement,r=No(function(){return new bd(n)});F.useEffect(function(){return t&&t.subscribe(r)},[r,t]),F.useEffect(function(){return r.addListeners()},[r])})},_d=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],wd=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,a=e.getBaseTarget,o=e.makeTargetAnimatable,i=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,c=e.removeValueFromRenderState,u=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(e,t){var f=e.parent,p=e.props,m=e.presenceId,v=e.blockInitialAnimation,h=e.visualState,y=e.shouldReduceMotion;void 0===t&&(t={});var g,b,E=!1,x=h.latestValues,_=h.renderState,w=function(){var e=_d.map(function(){return new Rs}),t={},n={clearAllListeners:function(){return e.forEach(function(e){return e.clear()})},updatePropListeners:function(e){_d.forEach(function(r){var a,o="on"+r,i=e[o];null===(a=t[r])||void 0===a||a.call(t),i&&(t[r]=n[o](i))})}};return e.forEach(function(e,t){n["on"+_d[t]]=function(t){return e.add(t)},n["notify"+_d[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,ao([],ro(t),!1))}}),n}(),k=new Map,S=new Map,C={},O=to({},x);function A(){g&&E&&(N(),s(g,_,p.style,V.projection))}function N(){r(V,_,x,t,p)}function R(){w.notifyUpdate(x)}function I(e,t){var n=t.onChange(function(t){x[e]=t,p.onUpdate&&jo.update(R,!1,!0)}),r=t.onRenderRequest(V.scheduleRender);S.set(e,function(){n(),r()})}var P=d(p);for(var T in P){var L=P[T];void 0!==x[T]&&Ts(L)&&L.set(x[T],!1)}var D=Co(p),M=Oo(p),V=to(to({treeType:n,current:null,depth:f?f.depth+1:0,parent:f,children:new Set,presenceId:m,shouldReduceMotion:y,variantChildren:M?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==f?void 0:f.isMounted()),blockInitialAnimation:v,isMounted:function(){return Boolean(g)},mount:function(e){E=!0,g=V.current=e,V.projection&&V.projection.mount(e),M&&f&&!D&&(b=null==f?void 0:f.addVariantChild(V)),k.forEach(function(e,t){return I(t,e)}),null==f||f.children.add(V),V.setProps(p)},unmount:function(){var e;null===(e=V.projection)||void 0===e||e.unmount(),Bo.update(R),Bo.render(A),S.forEach(function(e){return e()}),null==b||b(),null==f||f.children.delete(V),w.clearAllListeners(),g=void 0,E=!1},addVariantChild:function(e){var t,n=V.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return u&&n===e.treeType?u(V.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return M?V:null==f?void 0:f.getClosestVariantNode()},getLayoutId:function(){return p.layoutId},getInstance:function(){return g},getStaticValue:function(e){return x[e]},setStaticValue:function(e,t){return x[e]=t},getLatestValues:function(){return x},setVisibility:function(e){V.isVisible!==e&&(V.isVisible=e,V.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),o(V,e,p,t)},measureViewportBox:function(){return i(g,p)},addValue:function(e,t){V.hasValue(e)&&V.removeValue(e),k.set(e,t),x[e]=t.get(),I(e,t)},removeValue:function(e){var t;k.delete(e),null===(t=S.get(e))||void 0===t||t(),S.delete(e),delete x[e],c(e,_)},hasValue:function(e){return k.has(e)},getValue:function(e,t){var n=k.get(e);return void 0===n&&void 0!==t&&(n=Ps(t),V.addValue(e,n)),n},forEachValue:function(e){return k.forEach(e)},readValue:function(e){var n;return null!==(n=x[e])&&void 0!==n?n:l(g,e,t)},setBaseTarget:function(e,t){O[e]=t},getBaseTarget:function(e){if(a){var t=a(p,e);if(void 0!==t&&!Ts(t))return t}return O[e]}},w),{build:function(){return N(),_},scheduleRender:function(){jo.render(A,!1,!0)},syncRender:A,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&V.scheduleRender(),p=e,w.updatePropListeners(e),C=function(e,t,n){var r;for(var a in t){var o=t[a],i=n[a];if(Ts(o))e.addValue(a,o),"development"===process.env.NODE_ENV&&Cu("6.3.10"===o.version,"Attempting to mix Framer Motion versions ".concat(o.version," with 6.3.10 may not work as expected."));else if(Ts(i))e.addValue(a,Ps(o));else if(i!==o)if(e.hasValue(a)){var s=e.getValue(a);!s.hasAnimated&&s.set(o)}else e.addValue(a,Ps(null!==(r=e.getStaticValue(a))&&void 0!==r?r:o))}for(var a in n)void 0===t[a]&&e.removeValue(a);return t}(V,d(p),C)},getProps:function(){return p},getVariant:function(e){var t;return null===(t=p.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return p.transition},getTransformPagePoint:function(){return p.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==f?void 0:f.getVariantContext();if(!D){var t=(null==f?void 0:f.getVariantContext())||{};return void 0!==p.initial&&(t.initial=p.initial),t}for(var n={},r=0;r<Sd;r++){var a=kd[r],o=p[a];(wo(o)||!1===o)&&(n[a]=o)}return n}});return V}},kd=ao(["initial"],ro(ed),!1),Sd=kd.length;function Cd(e){return"string"==typeof e&&e.startsWith("var(--")}var Od=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Ad(e,t,n){void 0===n&&(n=1),co(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var r=ro(function(e){var t=Od.exec(e);if(!t)return[,];var n=ro(t,3);return[n[1],n[2]]}(e),2),a=r[0],o=r[1];if(a){var i=window.getComputedStyle(t).getPropertyValue(a);return i?i.trim():Cd(o)?Ad(o,t,n+1):o}}var Nd,Rd=new Set(["width","height","top","left","right","bottom","x","y"]),Id=function(e){return Rd.has(e)},Pd=function(e,t){e.set(t,!1),e.set(t)},Td=function(e){return e===ii||e===fi};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Nd||(Nd={}));var Ld=function(e,t){return parseFloat(e.split(", ")[t])},Dd=function(e,t){return function(n,r){var a=r.transform;if("none"===a||!a)return 0;var o=a.match(/^matrix3d\((.+)\)$/);if(o)return Ld(o[1],t);var i=a.match(/^matrix\((.+)\)$/);return i?Ld(i[1],e):0}},Md=new Set(["x","y","z"]),Vd=Ul.filter(function(e){return!Md.has(e)}),jd={width:function(e,t){var n=e.x,r=t.paddingLeft,a=t.paddingRight,o=void 0===a?"0":a;return n.max-n.min-parseFloat(void 0===r?"0":r)-parseFloat(o)},height:function(e,t){var n=e.y,r=t.paddingTop,a=t.paddingBottom,o=void 0===a?"0":a;return n.max-n.min-parseFloat(void 0===r?"0":r)-parseFloat(o)},top:function(e,t){return parseFloat(t.top)},left:function(e,t){return parseFloat(t.left)},bottom:function(e,t){var n=e.y;return parseFloat(t.top)+(n.max-n.min)},right:function(e,t){var n=e.x;return parseFloat(t.left)+(n.max-n.min)},x:Dd(4,13),y:Dd(5,14)},Bd={treeType:"dom",readValueFromInstance:function(e,t){if(Yl(t)){var n=Ys(t);return n&&n.default||0}var r=window.getComputedStyle(e);return(Oc(t)?r.getPropertyValue(t):r[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return yd(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.style;delete t.vars[e],delete n[e]},makeTargetAnimatable:function(e,t,n,r){var a=n.transformValues;void 0===r&&(r=!0);var o=t.transition,i=t.transitionEnd,s=no(t,["transition","transitionEnd"]),l=function(e,t,n){var r,a,o={};for(var i in e)o[i]=null!==(r=Gu(i,t))&&void 0!==r?r:null===(a=n.getValue(i))||void 0===a?void 0:a.get();return o}(s,o||{},e);if(a&&(i&&(i=a(i)),s&&(s=a(s)),l&&(l=a(l))),r){!function(e,t,n){var r,a,o,i,s=Object.keys(t).filter(function(t){return!e.hasValue(t)}),l=s.length;if(l)for(var c=0;c<l;c++){var u=s[c],d=t[u],f=null;Array.isArray(d)&&(f=d[0]),null===f&&(f=null!==(a=null!==(r=n[u])&&void 0!==r?r:e.readValue(u))&&void 0!==a?a:t[u]),null!=f&&("string"==typeof f&&(zu(f)||Wu(f))?f=parseFloat(f):!Yu(f)&&Ai.test(d)&&(f=Zs(u,d)),e.addValue(u,Ps(f)),null!==(o=(i=n)[u])&&void 0!==o||(i[u]=f),e.setBaseTarget(u,f))}}(e,s,l);var c=function(e,t,n,r){var a=function(e,t,n){var r,a=no(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:a,transitionEnd:n};for(var i in n&&(n=to({},n)),e.forEachValue(function(e){var t=e.get();if(Cd(t)){var n=Ad(t,o);n&&e.set(n)}}),a){var s=a[i];if(Cd(s)){var l=Ad(s,o);l&&(a[i]=l,n&&(null!==(r=n[i])&&void 0!==r||(n[i]=s)))}}return{target:a,transitionEnd:n}}(e,t,r);return function(e,t,n,r){return function(e){return Object.keys(e).some(Id)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=to({},t),r=to({},r);var a=Object.keys(t).filter(Id),o=[],i=!1,s=[];if(a.forEach(function(a){var l=e.getValue(a);if(e.hasValue(a)){var c,u=n[a],d=$u(u),f=t[a];if(js(f)){var p=f.length,m=null===f[0]?1:0;d=$u(u=f[m]);for(var v=m;v<p;v++)c?co($u(f[v])===c,"All keyframes must be of the same type"):(c=$u(f[v]),co(c===d||Td(d)&&Td(c),"Keyframes must be of the same dimension as the current value"))}else c=$u(f);if(d!==c)if(Td(d)&&Td(c)){var h=l.get();"string"==typeof h&&l.set(parseFloat(h)),"string"==typeof f?t[a]=parseFloat(f):Array.isArray(f)&&c===fi&&(t[a]=f.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==c?void 0:c.transform)&&(0===u||0===f)?0===u?l.set(c.transform(u)):t[a]=d.transform(f):(i||(o=function(e){var t=[];return Vd.forEach(function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}(e),i=!0),s.push(a),r[a]=void 0!==r[a]?r[a]:t[a],Pd(l,f))}}),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,c=function(e,t,n){var r=t.measureViewportBox(),a=t.getInstance(),o=getComputedStyle(a),i={};"none"===o.display&&t.setStaticValue("display",e.display||"block"),n.forEach(function(e){i[e]=jd[e](r,o)}),t.syncRender();var s=t.measureViewportBox();return n.forEach(function(n){var r=t.getValue(n);Pd(r,i[n]),e[n]=jd[n](s,o)}),e}(t,e,s);return o.length&&o.forEach(function(t){var n=ro(t,2),r=n[1];e.getValue(n[0]).set(r)}),e.syncRender(),null!==l&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}return{target:t,transitionEnd:r}}(e,t,n,r):{target:t,transitionEnd:r}}(e,t=a.target,n,r=a.transitionEnd)}(e,s,l,i);i=c.transitionEnd,s=c.target}return to({transition:o,transitionEnd:i},s)},scrapeMotionValuesFromProps:Zc,build:function(e,t,n,r,a){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),Nc(t,n,r,a.transformTemplate)},render:$c},Fd=wd(Bd),zd=wd(to(to({},Bd),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Yl(t)?(null===(n=Ys(t))||void 0===n?void 0:n.default)||0:(t=qc.has(t)?t:Uc(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Gc,build:function(e,t,n,r,a){Bc(t,n,r,a.transformTemplate)},render:Yc})),Wd=function(e,t){return kc(e)?zd(t,{enableHardwareAcceleration:!1}):Fd(t,{enableHardwareAcceleration:!0})};function Hd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Ud={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!fi.test(e))return e;e=parseFloat(e)}var n=Hd(e,t.target.x),r=Hd(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},$d={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,a=e,o=e.includes("var("),i=[];o&&(e=e.replace(Od,function(e){return i.push(e),"_$css"}));var s=Ai.parse(e);if(s.length>5)return a;var l=Ai.createTransformer(e),c="number"!=typeof s[0]?1:0,u=r.x.scale*n.x,d=r.y.scale*n.y;s[0+c]/=u,s[1+c]/=d;var f=Qo(u,d,.5);"number"==typeof s[2+c]&&(s[2+c]/=f),"number"==typeof s[3+c]&&(s[3+c]/=f);var p=l(s);if(o){var m=0;p=p.replace("_$css",function(){var e=i[m];return m++,e})}return p}},qd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return eo(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.layoutGroup,r=t.switchLayoutGroup,a=t.layoutId,o=t.visualElement.projection;Object.assign(Fl,Yd),o&&((null==n?void 0:n.group)&&n.group.add(o),(null==r?void 0:r.register)&&a&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",function(){e.safeToRemove()}),o.setOptions(to(to({},o.options),{onExitComplete:function(){return e.safeToRemove()}}))),Ql.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,a=n.drag,o=n.isPresent,i=n.visualElement.projection;return i?(i.isPresent=o,a||e.layoutDependency!==r||void 0===r?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||jo.postRender(function(){var e;(null===(e=i.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()})),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.layoutGroup,n=e.switchLayoutGroup,r=e.visualElement.projection;r&&(r.scheduleCheckAfterUnmount(),(null==t?void 0:t.group)&&t.group.remove(r),(null==n?void 0:n.deregister)&&n.deregister(r))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(F.Component),Yd={borderRadius:to(to({},Ud),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Ud,borderTopRightRadius:Ud,borderBottomLeftRadius:Ud,borderBottomRightRadius:Ud,boxShadow:$d},Zd={measureLayout:function(e){var t=ro(Bu(),2),n=t[0],r=t[1],a=F.useContext(bc);return F.createElement(qd,to({},e,{layoutGroup:a,switchLayoutGroup:F.useContext(Ec),isPresent:n,safeToRemove:r}))}},Gd=ec({attachResizeListener:function(e,t){return ru(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}}}),Xd={current:void 0},Kd=ec({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Xd.current){var e=new Gd(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Xd.current=e}return Xd.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"}}),Jd=to(to(to(to({},ad),Du),xd),Zd),Qd=/*@__PURE__*/_c(function(e,t){return function(e,t,n,r,a){var o=t.forwardMotionProps,i=void 0!==o&&o,s=kc(e)?tu:nu;return to(to({},s),{preloadedFeatures:n,useRender:Wc(i),createVisualElement:r,projectionNodeConstructor:a,Component:e})}(e,t,Jd,Wd,Kd)});function ef(){var e=F.useRef(!1);return go(function(){return e.current=!0,function(){e.current=!1}},[]),e}var tf=function(e){var t=e.children,n=e.initial,r=e.isPresent,a=e.onExitComplete,o=e.custom,i=e.presenceAffectsLayout,s=No(nf),l=ju(),c=F.useMemo(function(){return{id:l,initial:n,isPresent:r,custom:o,onExitComplete:function(e){var t,n;s.set(e,!0);try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(s.values()),o=r.next();!o.done;o=r.next())if(!o.value)return}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==a||a()},register:function(e){return s.set(e,!1),function(){return s.delete(e)}}}},i?void 0:[r]);return F.useMemo(function(){s.forEach(function(e,t){return s.set(t,!1)})},[r]),F.useEffect(function(){!r&&!s.size&&(null==a||a())},[r]),F.createElement(ho.Provider,{value:c},t)};function nf(){return new Map}var rf=function(e){return e.key||""},af=function(e){var t=e.children,n=e.custom,r=e.initial,a=void 0===r||r,o=e.onExitComplete,i=e.exitBeforeEnter,s=e.presenceAffectsLayout,l=void 0===s||s,c=ro(function(){var e=ef(),t=ro(F.useState(0),2),n=t[0],r=t[1],a=F.useCallback(function(){e.current&&r(n+1)},[n]);return[F.useCallback(function(){return jo.postRender(a)},[a]),n]}(),1),u=c[0],d=F.useContext(bc).forceRender;d&&(u=d);var f=ef(),p=function(e){var t=[];return F.Children.forEach(e,function(e){F.isValidElement(e)&&t.push(e)}),t}(t),m=p,v=new Set,h=F.useRef(m),y=F.useRef(new Map).current,g=F.useRef(!0);if(go(function(){g.current=!1,function(e,t){e.forEach(function(e){var n=rf(e);t.set(n,e)})}(p,y),h.current=m}),ku(function(){g.current=!0,y.clear(),v.clear()}),g.current)return F.createElement(F.Fragment,null,m.map(function(e){return F.createElement(tf,{key:rf(e),isPresent:!0,initial:!!a&&void 0,presenceAffectsLayout:l},e)}));m=ao([],ro(m),!1);for(var b=h.current.map(rf),E=p.map(rf),x=b.length,_=0;_<x;_++){var w=b[_];-1===E.indexOf(w)&&v.add(w)}return i&&v.size&&(m=[]),v.forEach(function(e){if(-1===E.indexOf(e)){var t=y.get(e);if(t){var r=b.indexOf(e);m.splice(r,0,F.createElement(tf,{key:rf(t),isPresent:!1,onExitComplete:function(){y.delete(e),v.delete(e);var t=h.current.findIndex(function(t){return t.key===e});if(h.current.splice(t,1),!v.size){if(h.current=p,!1===f.current)return;u(),o&&o()}},custom:n,presenceAffectsLayout:l},t))}}}),m=m.map(function(e){return v.has(e.key)?e:F.createElement(tf,{key:rf(e),isPresent:!0,presenceAffectsLayout:l},e)}),"production"!==oo&&i&&m.length>1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),F.createElement(F.Fragment,null,v.size?m:m.map(function(e){return F.cloneElement(e)}))};function of(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}function sf(){return sf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sf.apply(this,arguments)}var lf={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},cf={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},uf={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},df={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},ff={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}};function pf(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":default:return uf;case"left":return cf;case"bottom":return ff;case"top":return df}}var mf={enter:{duration:.2,ease:lf.easeOut},exit:{duration:.1,ease:lf.easeIn}},vf=function(e,n){return sf({},e,{delay:t.isNumber(n)?n:null==n?void 0:n.enter})},hf=function(e,n){return sf({},e,{delay:t.isNumber(n)?n:null==n?void 0:n.exit})},yf=["in","unmountOnExit","animateOpacity","startingHeight","endingHeight","style","className","transition","transitionEnd"],gf={exit:{height:{duration:.2,ease:lf.ease},opacity:{duration:.3,ease:lf.ease}},enter:{height:{duration:.3,ease:lf.ease},opacity:{duration:.4,ease:lf.ease}}},bf={exit:function(e){var t,n,r=e.startingHeight,a=e.transition,o=e.transitionEnd,i=e.delay;return sf({},e.animateOpacity&&{opacity:(n=r,null!=n&&parseInt(n.toString(),10)>0?1:0)},{height:r,transitionEnd:null==o?void 0:o.exit,transition:null!=(t=null==a?void 0:a.exit)?t:hf(gf.exit,i)})},enter:function(e){var t,n=e.transition,r=e.transitionEnd;return sf({},e.animateOpacity&&{opacity:1},{height:e.endingHeight,transitionEnd:null==r?void 0:r.enter,transition:null!=(t=null==n?void 0:n.enter)?t:vf(gf.enter,e.delay)})}},Ef=/*#__PURE__*/F.forwardRef(function(e,n){var r=e.in,a=e.unmountOnExit,o=e.animateOpacity,i=void 0===o||o,s=e.startingHeight,l=void 0===s?0:s,c=e.endingHeight,u=void 0===c?"auto":c,d=e.style,f=e.className,p=e.transition,m=e.transitionEnd,v=of(e,yf),h=F.useState(!1),y=h[0],g=h[1];F.useEffect(function(){var e=setTimeout(function(){g(!0)});return function(){return clearTimeout(e)}},[]),t.warn({condition:Boolean(l>0&&a),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});var b=parseFloat(l.toString())>0,E={startingHeight:l,endingHeight:u,animateOpacity:i,transition:y?p:{enter:{duration:0}},transitionEnd:t.mergeWith(m,{exit:a?void 0:{display:b?"block":"none"}})},x=r||a?"enter":"exit";/*#__PURE__*/
8
- return F.createElement(af,{initial:!1,custom:E},(!a||r)&&/*#__PURE__*/F.createElement(Qd.div,sf({ref:n},v,{className:t.cx("chakra-collapse",f),style:sf({overflow:"hidden",display:"block"},d),custom:E,variants:bf,initial:!!a&&"exit",animate:x,exit:"exit"})))});t.__DEV__&&(Ef.displayName="Collapse");var xf=["unmountOnExit","in","className","transition","transitionEnd","delay"],_f={enter:function(e){var t,n=void 0===e?{}:e,r=n.transition,a=n.transitionEnd;return{opacity:1,transition:null!=(t=null==r?void 0:r.enter)?t:vf(mf.enter,n.delay),transitionEnd:null==a?void 0:a.enter}},exit:function(e){var t,n=void 0===e?{}:e,r=n.transition,a=n.transitionEnd;return{opacity:0,transition:null!=(t=null==r?void 0:r.exit)?t:hf(mf.exit,n.delay),transitionEnd:null==a?void 0:a.exit}}},wf={initial:"exit",animate:"enter",exit:"exit",variants:_f},kf=/*#__PURE__*/F.forwardRef(function(e,n){var r=e.unmountOnExit,a=e.in,o=e.className,i=e.transition,s=e.transitionEnd,l=e.delay,c=of(e,xf),u=a||r?"enter":"exit",d={transition:i,transitionEnd:s,delay:l};/*#__PURE__*/
9
- return F.createElement(af,{custom:d},(!r||a&&r)&&/*#__PURE__*/F.createElement(Qd.div,sf({ref:n,className:t.cx("chakra-fade",o),custom:d},wf,{animate:u},c)))});t.__DEV__&&(kf.displayName="Fade");var Sf=["unmountOnExit","in","reverse","initialScale","className","transition","transitionEnd","delay"],Cf={exit:function(e){var t,n=e.initialScale,r=e.transition,a=e.transitionEnd,o=e.delay;return sf({opacity:0},e.reverse?{scale:n,transitionEnd:null==a?void 0:a.exit}:{transitionEnd:sf({scale:n},null==a?void 0:a.exit)},{transition:null!=(t=null==r?void 0:r.exit)?t:hf(mf.exit,o)})},enter:function(e){var t,n=e.transitionEnd,r=e.transition;return{opacity:1,scale:1,transition:null!=(t=null==r?void 0:r.enter)?t:vf(mf.enter,e.delay),transitionEnd:null==n?void 0:n.enter}}},Of={initial:"exit",animate:"enter",exit:"exit",variants:Cf},Af=/*#__PURE__*/F.forwardRef(function(e,n){var r=e.unmountOnExit,a=e.in,o=e.reverse,i=void 0===o||o,s=e.initialScale,l=void 0===s?.95:s,c=e.className,u=e.transition,d=e.transitionEnd,f=e.delay,p=of(e,Sf),m=a||r?"enter":"exit",v={initialScale:l,reverse:i,transition:u,transitionEnd:d,delay:f};/*#__PURE__*/
10
- return F.createElement(af,{custom:v},(!r||a&&r)&&/*#__PURE__*/F.createElement(Qd.div,sf({ref:n,className:t.cx("chakra-offset-slide",c)},Of,{animate:m,custom:v},p)))});t.__DEV__&&(Af.displayName="ScaleFade");var Nf=["direction","style","unmountOnExit","in","className","transition","transitionEnd","delay"],Rf={exit:{duration:.15,ease:lf.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},If={exit:function(e){var t,n=e.transition,r=e.transitionEnd,a=e.delay;return sf({},pf({direction:e.direction}).exit,{transition:null!=(t=null==n?void 0:n.exit)?t:hf(Rf.exit,a),transitionEnd:null==r?void 0:r.exit})},enter:function(e){var t,n=e.transitionEnd,r=e.transition,a=e.delay;return sf({},pf({direction:e.direction}).enter,{transition:null!=(t=null==r?void 0:r.enter)?t:vf(Rf.enter,a),transitionEnd:null==n?void 0:n.enter})}},Pf=/*#__PURE__*/F.forwardRef(function(e,n){var r=e.direction,a=void 0===r?"right":r,o=e.style,i=e.unmountOnExit,s=e.in,l=e.className,c=e.transition,u=e.transitionEnd,d=e.delay,f=of(e,Nf),p=pf({direction:a}),m=Object.assign({position:"fixed"},p.position,o),v=s||i?"enter":"exit",h={transitionEnd:u,transition:c,direction:a,delay:d};/*#__PURE__*/
11
- return F.createElement(af,{custom:h},(!i||s&&i)&&/*#__PURE__*/F.createElement(Qd.div,sf({},f,{ref:n,initial:"exit",className:t.cx("chakra-slide",l),animate:v,exit:"exit",custom:h,variants:If,style:m})))});t.__DEV__&&(Pf.displayName="Slide");var Tf=["unmountOnExit","in","reverse","className","offsetX","offsetY","transition","transitionEnd","delay"],Lf={initial:function(e){var t,n=e.transition,r=e.transitionEnd;return{opacity:0,x:e.offsetX,y:e.offsetY,transition:null!=(t=null==n?void 0:n.exit)?t:hf(mf.exit,e.delay),transitionEnd:null==r?void 0:r.exit}},enter:function(e){var t,n=e.transition,r=e.transitionEnd;return{opacity:1,x:0,y:0,transition:null!=(t=null==n?void 0:n.enter)?t:vf(mf.enter,e.delay),transitionEnd:null==r?void 0:r.enter}},exit:function(e){var t,n=e.transition,r=e.transitionEnd,a=e.reverse,o={x:e.offsetX,y:e.offsetY};return sf({opacity:0,transition:null!=(t=null==n?void 0:n.exit)?t:hf(mf.exit,e.delay)},a?sf({},o,{transitionEnd:null==r?void 0:r.exit}):{transitionEnd:sf({},o,null==r?void 0:r.exit)})}},Df={initial:"initial",animate:"enter",exit:"exit",variants:Lf},Mf=/*#__PURE__*/F.forwardRef(function(e,n){var r=e.unmountOnExit,a=e.in,o=e.reverse,i=void 0===o||o,s=e.className,l=e.offsetX,c=void 0===l?0:l,u=e.offsetY,d=void 0===u?8:u,f=e.transition,p=e.transitionEnd,m=e.delay,v=of(e,Tf),h=a||r?"enter":"exit",y={offsetX:c,offsetY:d,reverse:i,transition:f,transitionEnd:p,delay:m};/*#__PURE__*/
12
- return F.createElement(af,{custom:y},(!r||a&&r)&&/*#__PURE__*/F.createElement(Qd.div,sf({ref:n,className:t.cx("chakra-offset-slide",s),custom:y},Df,{animate:h},v)))});function Vf(){return Vf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vf.apply(this,arguments)}function jf(e){return e.sort(function(e,t){var n=e.compareDocumentPosition(t);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}function Bf(e,t,n){var r=e+1;return n&&r>=t&&(r=0),r}function Ff(e,t,n){var r=e-1;return n&&r<0&&(r=t),r}t.__DEV__&&(Mf.displayName="SlideFade");var zf="undefined"!=typeof window?F.useLayoutEffect:F.useEffect,Wf=function(){var e=this;this.descendants=new Map,this.register=function(t){var n;if(null!=t)return"object"==typeof(n=t)&&"nodeType"in n&&n.nodeType===Node.ELEMENT_NODE?e.registerNode(t):function(n){e.registerNode(n,t)}},this.unregister=function(t){e.descendants.delete(t);var n=jf(Array.from(e.descendants.keys()));e.assignIndex(n)},this.destroy=function(){e.descendants.clear()},this.assignIndex=function(t){e.descendants.forEach(function(e){var n=t.indexOf(e.node);e.index=n,e.node.dataset.index=e.index.toString()})},this.count=function(){return e.descendants.size},this.enabledCount=function(){return e.enabledValues().length},this.values=function(){return Array.from(e.descendants.values()).sort(function(e,t){return e.index-t.index})},this.enabledValues=function(){return e.values().filter(function(e){return!e.disabled})},this.item=function(t){if(0!==e.count())return e.values()[t]},this.enabledItem=function(t){if(0!==e.enabledCount())return e.enabledValues()[t]},this.first=function(){return e.item(0)},this.firstEnabled=function(){return e.enabledItem(0)},this.last=function(){return e.item(e.descendants.size-1)},this.lastEnabled=function(){var t=e.enabledValues().length-1;return e.enabledItem(t)},this.indexOf=function(t){var n,r;return t&&null!=(n=null==(r=e.descendants.get(t))?void 0:r.index)?n:-1},this.enabledIndexOf=function(t){return null==t?-1:e.enabledValues().findIndex(function(e){return e.node.isSameNode(t)})},this.next=function(t,n){void 0===n&&(n=!0);var r=Bf(t,e.count(),n);return e.item(r)},this.nextEnabled=function(t,n){void 0===n&&(n=!0);var r=e.item(t);if(r){var a=Bf(e.enabledIndexOf(r.node),e.enabledCount(),n);return e.enabledItem(a)}},this.prev=function(t,n){void 0===n&&(n=!0);var r=Ff(t,e.count()-1,n);return e.item(r)},this.prevEnabled=function(t,n){void 0===n&&(n=!0);var r=e.item(t);if(r){var a=Ff(e.enabledIndexOf(r.node),e.enabledCount()-1,n);return e.enabledItem(a)}},this.registerNode=function(t,n){if(t&&!e.descendants.has(t)){var r=jf(Array.from(e.descendants.keys()).concat(t));null!=n&&n.disabled&&(n.disabled=!!n.disabled);var a=Vf({node:t,index:-1},n);e.descendants.set(t,a),e.assignIndex(r)}}},Hf=nn({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"}),Uf=Hf[0],$f=Hf[1];function qf(){return[Uf,function(){return $f()},function(){return e=F.useRef(new Wf),zf(function(){return function(){return e.current.destroy()}}),e.current;var e},function(e){return function(e){var t=$f(),n=F.useState(-1),r=n[0],a=n[1],o=F.useRef(null);zf(function(){return function(){o.current&&t.unregister(o.current)}},[]),zf(function(){if(o.current){var e=Number(o.current.dataset.index);r==e||Number.isNaN(e)||a(e)}});var i=e?t.register(e):t.register;return{descendants:t,index:r,enabledIndex:t.enabledIndexOf(o.current),register:tn(i,o)}}(e)}]}function Yf(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}function Zf(){return Zf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zf.apply(this,arguments)}var Gf=["size","colorScheme","variant","className","spacing","isAttached","isDisabled"],Xf=nn({strict:!1,name:"ButtonGroupContext"}),Kf=Xf[0],Jf=Xf[1],Qf=/*#__PURE__*/La(function(e,n){var r=e.size,a=e.colorScheme,o=e.variant,i=e.className,s=e.spacing,l=void 0===s?"0.5rem":s,c=e.isAttached,u=e.isDisabled,d=Yf(e,Gf),f=t.cx("chakra-button__group",i),p=F.useMemo(function(){return{size:r,colorScheme:a,variant:o,isDisabled:u}},[r,a,o,u]),m={display:"inline-flex"};return m=Zf({},m,c?{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:{"& > *:not(style) ~ *:not(style)":{marginStart:l}}),/*#__PURE__*/F.createElement(Kf,{value:p},/*#__PURE__*/F.createElement(Fa.div,Zf({ref:n,role:"group",__css:m,className:f,"data-attached":c?"":void 0},d)))});t.__DEV__&&(Qf.displayName="ButtonGroup");var ep=["label","placement","spacing","children","className","__css"],tp=function(e){var n=e.label,r=e.placement,a=e.spacing,o=void 0===a?"0.5rem":a,i=e.children,s=void 0===i?/*#__PURE__*/F.createElement(Ya,{color:"currentColor",width:"1em",height:"1em"}):i,l=e.className,c=e.__css,u=Yf(e,ep),d=t.cx("chakra-button__spinner",l),f="start"===r?"marginEnd":"marginStart",p=F.useMemo(function(){var e;return Zf(((e={display:"flex",alignItems:"center",position:n?"relative":"absolute"})[f]=n?o:0,e.fontSize="1em",e.lineHeight="normal",e),c)},[c,n,f,o]);/*#__PURE__*/
13
- return F.createElement(Fa.div,Zf({className:d},u,{__css:p}),s)};t.__DEV__&&(tp.displayName="ButtonSpinner");var np=["children","className"],rp=function(e){var n=e.children,r=e.className,a=Yf(e,np),o=/*#__PURE__*/F.isValidElement(n)?/*#__PURE__*/F.cloneElement(n,{"aria-hidden":!0,focusable:!1}):n,i=t.cx("chakra-button__icon",r);/*#__PURE__*/
14
- return F.createElement(Fa.span,Zf({display:"inline-flex",alignSelf:"center",flexShrink:0},a,{className:i}),o)};t.__DEV__&&(rp.displayName="ButtonIcon");var ap=["isDisabled","isLoading","isActive","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"],op=/*#__PURE__*/La(function(e,n){var r,a,o,i,s=Jf(),l=Va("Button",Zf({},s,e)),c=Ca(e),u=c.isDisabled,d=void 0===u?null==s?void 0:s.isDisabled:u,f=c.isLoading,p=c.isActive,m=c.children,v=c.leftIcon,h=c.rightIcon,y=c.loadingText,g=c.iconSpacing,b=void 0===g?"0.5rem":g,E=c.type,x=c.spinner,_=c.spinnerPlacement,w=void 0===_?"start":_,k=c.className,S=c.as,C=Yf(c,ap),O=F.useMemo(function(){var e,n=t.mergeWith({},null!=(e=null==l?void 0:l._focus)?e:{},{zIndex:1});return Zf({display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none"},l,!!s&&{_focus:n})},[l,s]),A=(a=(r=F.useState(!S))[0],o=r[1],i=F.useCallback(function(e){e&&o("BUTTON"===e.tagName)},[]),{ref:i,type:a?"button":void 0}),N=A.type,R={rightIcon:h,leftIcon:v,iconSpacing:b,children:m};/*#__PURE__*/
15
- return F.createElement(Fa.button,Zf({disabled:d||f,ref:hn(n,A.ref),as:S,type:null!=E?E:N,"data-active":t.dataAttr(p),"data-loading":t.dataAttr(f),__css:O,className:t.cx("chakra-button",k)},C),f&&"start"===w&&/*#__PURE__*/F.createElement(tp,{className:"chakra-button__spinner--start",label:y,placement:"start",spacing:b},x),f?y||/*#__PURE__*/F.createElement(Fa.span,{opacity:0},/*#__PURE__*/F.createElement(ip,R)):/*#__PURE__*/F.createElement(ip,R),f&&"end"===w&&/*#__PURE__*/F.createElement(tp,{className:"chakra-button__spinner--end",label:y,placement:"end",spacing:b},x))});function ip(e){var t=e.leftIcon,n=e.rightIcon,r=e.children,a=e.iconSpacing;/*#__PURE__*/
16
- return F.createElement(F.Fragment,null,t&&/*#__PURE__*/F.createElement(rp,{marginEnd:a},t),r,n&&/*#__PURE__*/F.createElement(rp,{marginStart:a},n))}t.__DEV__&&(op.displayName="Button");var sp=["icon","children","isRound","aria-label"],lp=/*#__PURE__*/La(function(e,t){var n=e.icon,r=e.children,a=e.isRound,o=e["aria-label"],i=Yf(e,sp),s=n||r,l=/*#__PURE__*/F.isValidElement(s)?/*#__PURE__*/F.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;/*#__PURE__*/
17
- return F.createElement(op,Zf({padding:"0",borderRadius:a?"full":void 0,ref:t,"aria-label":o},i),l)});function cp(){return cp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cp.apply(this,arguments)}function up(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(lp.displayName="IconButton");var dp=["id","isRequired","isInvalid","isDisabled","isReadOnly"],fp=["getRootProps","htmlProps"],pp=Sa("FormControl"),mp=pp[0],vp=pp[1],hp=vp,yp=nn({strict:!1,name:"FormControlContext"}),gp=yp[0],bp=yp[1],Ep=/*#__PURE__*/La(function(e,n){var r=ja("Form",e),a=function(e){var n=e.id,r=e.isRequired,a=e.isInvalid,o=e.isDisabled,i=e.isReadOnly,s=up(e,dp),l=fn(),c=n||"field-"+l,u=c+"-label",d=c+"-feedback",f=c+"-helptext",p=F.useState(!1),m=p[0],v=p[1],h=F.useState(!1),y=h[0],g=h[1],b=ln(),E=b[0],x=b[1],_=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),cp({id:f},e,{ref:tn(t,function(e){e&&g(!0)})})},[f]),w=F.useCallback(function(e,n){var r,s;return void 0===e&&(e={}),void 0===n&&(n=null),cp({},e,{ref:n,"data-focus":t.dataAttr(E),"data-disabled":t.dataAttr(o),"data-invalid":t.dataAttr(a),"data-readonly":t.dataAttr(i),id:null!=(r=e.id)?r:u,htmlFor:null!=(s=e.htmlFor)?s:c})},[c,o,E,a,i,u]),k=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),cp({id:d},e,{ref:tn(t,function(e){e&&v(!0)}),"aria-live":"polite"})},[d]),S=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),cp({},e,s,{ref:t,role:"group"})},[s]),C=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),cp({},e,{ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"})},[]);return{isRequired:!!r,isInvalid:!!a,isReadOnly:!!i,isDisabled:!!o,isFocused:!!E,onFocus:x.on,onBlur:x.off,hasFeedbackText:m,setHasFeedbackText:v,hasHelpText:y,setHasHelpText:g,id:c,labelId:u,feedbackId:d,helpTextId:f,htmlProps:s,getHelpTextProps:_,getErrorMessageProps:k,getRootProps:S,getLabelProps:w,getRequiredIndicatorProps:C}}(Ca(e)),o=a.getRootProps,i=up(a,fp),s=t.cx("chakra-form-control",e.className);/*#__PURE__*/
18
- return F.createElement(gp,{value:i},/*#__PURE__*/F.createElement(mp,{value:r},/*#__PURE__*/F.createElement(Fa.div,cp({},o({},n),{className:s,__css:r.container}))))});t.__DEV__&&(Ep.displayName="FormControl");var xp=/*#__PURE__*/La(function(e,n){var r=bp(),a=vp(),o=t.cx("chakra-form__helper-text",e.className);/*#__PURE__*/
19
- return F.createElement(Fa.div,cp({},null==r?void 0:r.getHelpTextProps(e,n),{__css:a.helperText,className:o}))});t.__DEV__&&(xp.displayName="FormHelperText");var _p=["isDisabled","isInvalid","isReadOnly","isRequired"],wp=["id","disabled","readOnly","required","isRequired","isInvalid","isReadOnly","isDisabled","onFocus","onBlur"];function kp(e){var n=Sp(e),r=n.isDisabled,a=n.isInvalid,o=n.isReadOnly,i=n.isRequired;return cp({},up(n,_p),{disabled:r,readOnly:o,required:i,"aria-invalid":t.ariaAttr(a),"aria-required":t.ariaAttr(i),"aria-readonly":t.ariaAttr(o)})}function Sp(e){var n,r,a,o=bp(),i=e.id,s=e.disabled,l=e.readOnly,c=e.required,u=e.isRequired,d=e.isInvalid,f=e.isReadOnly,p=e.isDisabled,m=e.onFocus,v=e.onBlur,h=up(e,wp),y=e["aria-describedby"]?[e["aria-describedby"]]:[];return null!=o&&o.hasFeedbackText&&null!=o&&o.isInvalid&&y.push(o.feedbackId),null!=o&&o.hasHelpText&&y.push(o.helpTextId),cp({},h,{"aria-describedby":y.join(" ")||void 0,id:null!=i?i:null==o?void 0:o.id,isDisabled:null!=(n=null!=s?s:p)?n:null==o?void 0:o.isDisabled,isReadOnly:null!=(r=null!=l?l:f)?r:null==o?void 0:o.isReadOnly,isRequired:null!=(a=null!=c?c:u)?a:null==o?void 0:o.isRequired,isInvalid:null!=d?d:null==o?void 0:o.isInvalid,onFocus:t.callAllHandlers(null==o?void 0:o.onFocus,m),onBlur:t.callAllHandlers(null==o?void 0:o.onBlur,v)})}var Cp=Sa("FormError"),Op=Cp[0],Ap=Cp[1],Np=/*#__PURE__*/La(function(e,n){var r=ja("FormError",e),a=Ca(e),o=bp();return null!=o&&o.isInvalid?/*#__PURE__*/F.createElement(Op,{value:r},/*#__PURE__*/F.createElement(Fa.div,cp({},null==o?void 0:o.getErrorMessageProps(a,n),{className:t.cx("chakra-form__error-message",e.className),__css:cp({display:"flex",alignItems:"center"},r.text)}))):null});t.__DEV__&&(Np.displayName="FormErrorMessage");var Rp=/*#__PURE__*/La(function(e,n){var r=Ap(),a=bp();if(null==a||!a.isInvalid)return null;var o=t.cx("chakra-form__error-icon",e.className);/*#__PURE__*/
20
- return F.createElement(Ja,cp({ref:n,"aria-hidden":!0},e,{__css:r.icon,className:o}),/*#__PURE__*/F.createElement("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"}))});t.__DEV__&&(Rp.displayName="FormErrorIcon");var Ip=["className","children","requiredIndicator","optionalIndicator"],Pp=/*#__PURE__*/La(function(e,n){var r,a=Va("FormLabel",e),o=Ca(e),i=o.children,s=o.requiredIndicator,l=void 0===s?/*#__PURE__*/F.createElement(Tp,null):s,c=o.optionalIndicator,u=void 0===c?null:c,d=up(o,Ip),f=bp(),p=null!=(r=null==f?void 0:f.getLabelProps(d,n))?r:cp({ref:n},d);/*#__PURE__*/
21
- return F.createElement(Fa.label,cp({},p,{className:t.cx("chakra-form__label",o.className),__css:cp({display:"block",textAlign:"start"},a)}),i,null!=f&&f.isRequired?l:u)});t.__DEV__&&(Pp.displayName="FormLabel");var Tp=/*#__PURE__*/La(function(e,n){var r=bp(),a=hp();if(null==r||!r.isRequired)return null;var o=t.cx("chakra-form__required-indicator",e.className);/*#__PURE__*/
22
- return F.createElement(Fa.span,cp({},null==r?void 0:r.getRequiredIndicatorProps(e,n),{__css:a.requiredIndicator,className:o}))});t.__DEV__&&(Tp.displayName="RequiredIndicator");var Lp=!1,Dp=null,Mp=!1,Vp=/* @__PURE__ */new Set,jp="undefined"!=typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function Bp(e,t){Vp.forEach(n=>n(e,t))}function Fp(e){Mp=!0,function(e){return!(e.metaKey||!jp&&e.altKey||e.ctrlKey)}(e)&&(Dp="keyboard",Bp("keyboard",e))}function zp(e){Dp="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Mp=!0,Bp("pointer",e))}function Wp(e){e.target!==window&&e.target!==document&&(Mp||(Dp="keyboard",Bp("keyboard",e)),Mp=!1)}function Hp(){Mp=!1}function Up(){return"pointer"!==Dp}function $p(e){!function(){if("undefined"==typeof window||Lp)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...t){Mp=!0,e.apply(this,t)},document.addEventListener("keydown",Fp,!0),document.addEventListener("keyup",Fp,!0),window.addEventListener("focus",Wp,!0),window.addEventListener("blur",Hp,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",zp,!0),document.addEventListener("pointermove",zp,!0),document.addEventListener("pointerup",zp,!0)):(document.addEventListener("mousedown",zp,!0),document.addEventListener("mousemove",zp,!0),document.addEventListener("mouseup",zp,!0)),Lp=!0}(),e(Up());const t=()=>e(Up());return Vp.add(t),()=>{Vp.delete(t)}}function qp(){return qp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qp.apply(this,arguments)}var Yp=nn({name:"CheckboxGroupContext",strict:!1})[1];function Zp(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}var Gp=["isIndeterminate","isChecked"],Xp=function(e){var t=Qd;return"custom"in t&&"function"==typeof t.custom?t.custom(e):t(e)}(Fa.svg),Kp=function(e){/*#__PURE__*/
23
- return F.createElement(Xp,qp({width:"1.2em",viewBox:"0 0 12 10",variants:{unchecked:{opacity:0,strokeDashoffset:16},checked:{opacity:1,strokeDashoffset:0,transition:{duration:.2}}},style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16}},e),/*#__PURE__*/F.createElement("polyline",{points:"1.5 6 4.5 9 10.5 1"}))},Jp=function(e){/*#__PURE__*/
24
- return F.createElement(Xp,qp({width:"1.2em",viewBox:"0 0 24 24",variants:{unchecked:{scaleX:.65,opacity:0},checked:{scaleX:1,opacity:1,transition:{scaleX:{duration:0},opacity:{duration:.02}}}},style:{stroke:"currentColor",strokeWidth:4}},e),/*#__PURE__*/F.createElement("line",{x1:"21",x2:"3",y1:"12",y2:"12"}))},Qp=function(e){/*#__PURE__*/
25
- return F.createElement(af,{initial:!1},e.open&&/*#__PURE__*/F.createElement(Qd.div,{variants:{unchecked:{scale:.5},checked:{scale:1}},initial:"unchecked",animate:"checked",exit:"unchecked",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}},e.children))},em=function(e){var t=e.isIndeterminate,n=e.isChecked,r=Zp(e,Gp);/*#__PURE__*/
26
- return F.createElement(Qp,{open:n||t},/*#__PURE__*/F.createElement(t?Jp:Kp,r))},tm=["defaultChecked","isChecked","isFocusable","onChange","isIndeterminate","name","value","tabIndex","aria-label","aria-labelledby","aria-invalid"];function nm(e){void 0===e&&(e={});var n=Sp(e),r=n.isDisabled,a=n.isReadOnly,o=n.isRequired,i=n.isInvalid,s=n.id,l=n.onBlur,c=n.onFocus,u=n["aria-describedby"],d=e.defaultChecked,f=e.isChecked,p=e.isFocusable,m=e.onChange,v=e.isIndeterminate,h=e.name,y=e.value,g=e.tabIndex,b=void 0===g?void 0:g,E=e["aria-label"],x=e["aria-labelledby"],_=e["aria-invalid"],w=Zp(e,tm),k=t.omit(w,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),S=on(m),C=on(l),O=on(c),A=F.useState(!1),N=A[0],R=A[1],I=ln(),P=I[0],T=I[1],L=ln(),D=L[0],M=L[1],V=ln(),j=V[0],B=V[1];F.useEffect(function(){return $p(R)},[]);var z=F.useRef(null),W=F.useState(!0),H=W[0],U=W[1],$=F.useState(!!d),q=$[1],Y=cn(f,$[0]),Z=Y[0],G=Y[1],X=F.useCallback(function(e){a||r?e.preventDefault():(Z||q(G?e.target.checked:!!v||e.target.checked),null==S||S(e))},[a,r,G,Z,v,S]);an(function(){z.current&&(z.current.indeterminate=Boolean(v))},[v]),pn(function(){r&&T.off()},[r,T]),an(function(){var e=z.current;null!=e&&e.form&&(e.form.onreset=function(){q(!!d)})},[]);var K=r&&!p,J=F.useCallback(function(e){" "===e.key&&B.on()},[B]),Q=F.useCallback(function(e){" "===e.key&&B.off()},[B]);an(function(){z.current&&z.current.checked!==G&&q(z.current.checked)},[z.current]);var ee=F.useCallback(function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),qp({},e,{ref:n,"data-active":t.dataAttr(j),"data-hover":t.dataAttr(D),"data-checked":t.dataAttr(G),"data-focus":t.dataAttr(P),"data-focus-visible":t.dataAttr(P&&N),"data-indeterminate":t.dataAttr(v),"data-disabled":t.dataAttr(r),"data-invalid":t.dataAttr(i),"data-readonly":t.dataAttr(a),"aria-hidden":!0,onMouseDown:t.callAllHandlers(e.onMouseDown,function(e){e.preventDefault(),B.on()}),onMouseUp:t.callAllHandlers(e.onMouseUp,B.off),onMouseEnter:t.callAllHandlers(e.onMouseEnter,M.on),onMouseLeave:t.callAllHandlers(e.onMouseLeave,M.off)})},[j,G,r,P,N,D,v,i,a,B,M.off,M.on]),te=F.useCallback(function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),qp({},k,e,{ref:tn(n,function(e){e&&U("LABEL"===e.tagName)}),onClick:t.callAllHandlers(e.onClick,function(){var e;H||(null==(e=z.current)||e.click(),t.focus(z.current,{nextTick:!0}))}),"data-disabled":t.dataAttr(r),"data-checked":t.dataAttr(G),"data-invalid":t.dataAttr(i)})},[k,r,G,i,H]),ne=F.useCallback(function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),qp({},e,{ref:tn(z,n),type:"checkbox",name:h,value:y,id:s,tabIndex:b,onChange:t.callAllHandlers(e.onChange,X),onBlur:t.callAllHandlers(e.onBlur,C,T.off),onFocus:t.callAllHandlers(e.onFocus,O,T.on),onKeyDown:t.callAllHandlers(e.onKeyDown,J),onKeyUp:t.callAllHandlers(e.onKeyUp,Q),required:o,checked:G,disabled:K,readOnly:a,"aria-label":E,"aria-labelledby":x,"aria-invalid":_?Boolean(_):i,"aria-describedby":u,"aria-disabled":r,style:za})},[h,y,s,X,T.off,T.on,C,O,J,Q,o,G,K,a,E,x,_,i,u,r,b]),re=F.useCallback(function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),qp({},e,{ref:n,onMouseDown:t.callAllHandlers(e.onMouseDown,rm),onTouchStart:t.callAllHandlers(e.onTouchStart,rm),"data-disabled":t.dataAttr(r),"data-checked":t.dataAttr(G),"data-invalid":t.dataAttr(i)})},[G,r,i]);return{state:{isInvalid:i,isFocused:P,isChecked:G,isActive:j,isHovered:D,isIndeterminate:v,isDisabled:r,isReadOnly:a,isRequired:o},getRootProps:te,getCheckboxProps:ee,getInputProps:ne,getLabelProps:re,htmlProps:k}}function rm(e){e.preventDefault(),e.stopPropagation()}var am=["spacing","className","children","iconColor","iconSize","icon","isChecked","isDisabled","onChange","inputProps"],om=Fa("span",{baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0}}),im=Fa("label",{baseStyle:{cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"}}),sm=/*#__PURE__*/La(function(e,n){var r=Yp(),a=ja("Checkbox",qp({},r,e)),o=Ca(e),i=o.spacing,s=void 0===i?"0.5rem":i,l=o.className,c=o.children,u=o.iconColor,d=o.iconSize,f=o.icon,p=void 0===f?/*#__PURE__*/F.createElement(em,null):f,m=o.isChecked,v=o.isDisabled,h=void 0===v?null==r?void 0:r.isDisabled:v,y=o.onChange,g=o.inputProps,b=Zp(o,am),E=m;null!=r&&r.value&&o.value&&(E=r.value.includes(o.value));var x=y;null!=r&&r.onChange&&o.value&&(x=t.callAll(r.onChange,y));var _=nm(qp({},b,{isDisabled:h,isChecked:E,onChange:x})),w=_.state,k=_.getInputProps,S=_.getCheckboxProps,C=_.getLabelProps,O=_.getRootProps,A=F.useMemo(function(){return qp({opacity:w.isChecked||w.isIndeterminate?1:0,transform:w.isChecked||w.isIndeterminate?"scale(1)":"scale(0.95)",fontSize:d,color:u},a.icon)},[u,d,w.isChecked,w.isIndeterminate,a.icon]),N=/*#__PURE__*/F.cloneElement(p,{__css:A,isIndeterminate:w.isIndeterminate,isChecked:w.isChecked});/*#__PURE__*/
27
- return F.createElement(im,qp({__css:a.container,className:t.cx("chakra-checkbox",l)},O()),/*#__PURE__*/F.createElement("input",qp({className:"chakra-checkbox__input"},k(g,n))),/*#__PURE__*/F.createElement(om,qp({__css:a.control,className:"chakra-checkbox__control"},S()),N),c&&/*#__PURE__*/F.createElement(Fa.span,qp({className:"chakra-checkbox__label"},C(),{__css:qp({marginStart:s},a.label)}),c))});function lm(e){void 0===e&&(e={});var n=e.precision,r=e.defaultValue,a=e.value,o=e.step,i=void 0===o?1:o,s=e.min,l=void 0===s?t.minSafeInteger:s,c=e.max,u=void 0===c?t.maxSafeInteger:c,d=e.keepWithinRange,f=void 0===d||d,p=on(e.onChange),m=F.useState(function(){var e;return null==r?"":null!=(e=dm(r,i,n))?e:""}),v=m[1],h=cn(a,m[0]),y=h[0],g=h[1],b=um(cm(g),i),E=null!=n?n:b,x=F.useCallback(function(e){e!==g&&(y||v(e.toString()),null==p||p(e.toString(),cm(e)))},[p,y,g]),_=F.useCallback(function(e){var n=e;return f&&(n=t.clampValue(n,l,u)),t.toPrecision(n,E)},[E,f,u,l]),w=F.useCallback(function(e){var t;void 0===e&&(e=i),t=""===g?cm(e):cm(g)+e,t=_(t),x(t)},[_,i,x,g]),k=F.useCallback(function(e){var t;void 0===e&&(e=i),t=""===g?cm(-e):cm(g)-e,t=_(t),x(t)},[_,i,x,g]),S=F.useCallback(function(){var e,t;e=null==r?"":null!=(t=dm(r,i,n))?t:l,x(e)},[r,n,i,x,l]),C=F.useCallback(function(e){var t,n=null!=(t=dm(e,i,E))?t:l;x(n)},[E,i,x,l]),O=cm(g);return{isOutOfRange:O>u||O<l,isAtMax:O===u,isAtMin:O===l,precision:E,value:g,valueAsNumber:O,update:x,reset:S,increment:w,decrement:k,clamp:_,cast:C,setValue:v}}function cm(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function um(e,n){return Math.max(t.countDecimalPlaces(n),t.countDecimalPlaces(e))}function dm(e,n,r){var a=cm(e);if(!Number.isNaN(a)){var o=um(a,n);return t.toPrecision(a,null!=r?r:o)}}function fm(){return fm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fm.apply(this,arguments)}function pm(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(sm.displayName="Checkbox");var mm=["htmlSize"],vm=/*#__PURE__*/La(function(e,n){var r=e.htmlSize,a=pm(e,mm),o=ja("Input",a),i=kp(Ca(a)),s=t.cx("chakra-input",e.className);/*#__PURE__*/
28
- return F.createElement(Fa.input,fm({size:r},i,{__css:o.field,ref:n,className:s}))});t.__DEV__&&(vm.displayName="Input"),vm.id="Input";var hm=["children","className"],ym=Sa("InputGroup"),gm=ym[0],bm=ym[1],Em=/*#__PURE__*/La(function(e,n){var r=ja("Input",e),a=Ca(e),o=a.children,i=a.className,s=pm(a,hm),l=t.cx("chakra-input__group",i),c={},u=rn(o),d=r.field;u.forEach(function(e){var t,n;r&&(d&&"InputLeftElement"===e.type.id&&(c.paddingStart=null!=(t=d.height)?t:d.h),d&&"InputRightElement"===e.type.id&&(c.paddingEnd=null!=(n=d.height)?n:d.h),"InputRightAddon"===e.type.id&&(c.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(c.borderStartRadius=0))});var f=u.map(function(n){var r,a,o=t.filterUndefined({size:(null==(r=n.props)?void 0:r.size)||e.size,variant:(null==(a=n.props)?void 0:a.variant)||e.variant});/*#__PURE__*/
29
- return F.cloneElement(n,"Input"!==n.type.id?o:Object.assign(o,c,n.props))});/*#__PURE__*/
30
- return F.createElement(Fa.div,fm({className:l,ref:n,__css:{width:"100%",display:"flex",position:"relative"}},s),/*#__PURE__*/F.createElement(gm,{value:r},f))});t.__DEV__&&(Em.displayName="InputGroup");var xm=["placement"],_m={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},wm=Fa("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),km=/*#__PURE__*/La(function(e,t){var n,r=e.placement,a=void 0===r?"left":r,o=pm(e,xm),i=null!=(n=_m[a])?n:{},s=bm();/*#__PURE__*/
31
- return F.createElement(wm,fm({ref:t},o,{__css:fm({},s.addon,i)}))});t.__DEV__&&(km.displayName="InputAddon");var Sm=/*#__PURE__*/La(function(e,n){/*#__PURE__*/
32
- return F.createElement(km,fm({ref:n,placement:"left"},e,{className:t.cx("chakra-input__left-addon",e.className)}))});t.__DEV__&&(Sm.displayName="InputLeftAddon"),Sm.id="InputLeftAddon";var Cm=/*#__PURE__*/La(function(e,n){/*#__PURE__*/
33
- return F.createElement(km,fm({ref:n,placement:"right"},e,{className:t.cx("chakra-input__right-addon",e.className)}))});t.__DEV__&&(Cm.displayName="InputRightAddon"),Cm.id="InputRightAddon";var Om=["placement"],Am=["className"],Nm=["className"],Rm=Fa("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),Im=/*#__PURE__*/La(function(e,t){var n,r,a,o=e.placement,i=void 0===o?"left":o,s=pm(e,Om),l=bm(),c=l.field,u=fm(((a={})["left"===i?"insetStart":"insetEnd"]="0",a.width=null!=(n=null==c?void 0:c.height)?n:null==c?void 0:c.h,a.height=null!=(r=null==c?void 0:c.height)?r:null==c?void 0:c.h,a.fontSize=null==c?void 0:c.fontSize,a),l.element);/*#__PURE__*/
34
- return F.createElement(Rm,fm({ref:t,__css:u},s))});Im.id="InputElement",t.__DEV__&&(Im.displayName="InputElement");var Pm=/*#__PURE__*/La(function(e,n){var r=e.className,a=pm(e,Am),o=t.cx("chakra-input__left-element",r);/*#__PURE__*/
35
- return F.createElement(Im,fm({ref:n,placement:"left",className:o},a))});Pm.id="InputLeftElement",t.__DEV__&&(Pm.displayName="InputLeftElement");var Tm=/*#__PURE__*/La(function(e,n){var r=e.className,a=pm(e,Nm),o=t.cx("chakra-input__right-element",r);/*#__PURE__*/
36
- return F.createElement(Im,fm({ref:n,placement:"right",className:o},a))});function Lm(){return Lm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lm.apply(this,arguments)}function Dm(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}Tm.id="InputRightElement",t.__DEV__&&(Tm.displayName="InputRightElement");var Mm=["ratio","children","className"],Vm=/*#__PURE__*/La(function(e,n){var r=e.ratio,a=void 0===r?4/3:r,o=e.children,i=e.className,s=Dm(e,Mm),l=F.Children.only(o),c=t.cx("chakra-aspect-ratio",i);/*#__PURE__*/
37
- return F.createElement(Fa.div,Lm({ref:n,position:"relative",className:c,_before:{height:0,content:'""',display:"block",paddingBottom:t.mapResponsive(a,function(e){return 1/e*100+"%"})},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}}},s),l)});t.__DEV__&&(Vm.displayName="AspectRatio");var jm=["className"],Bm=/*#__PURE__*/La(function(e,n){var r=Va("Badge",e),a=Dm(Ca(e),jm);/*#__PURE__*/
38
- return F.createElement(Fa.span,Lm({ref:n,className:t.cx("chakra-badge",e.className)},a,{__css:Lm({display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle"},r)}))});t.__DEV__&&(Bm.displayName="Badge");var Fm=["size","centerContent"],zm=["size"],Wm=Fa("div");t.__DEV__&&(Wm.displayName="Box");var Hm=/*#__PURE__*/La(function(e,t){var n=e.size,r=e.centerContent,a=void 0===r||r,o=Dm(e,Fm);/*#__PURE__*/
39
- return F.createElement(Wm,Lm({ref:t,boxSize:n,__css:Lm({},a?{display:"flex",alignItems:"center",justifyContent:"center"}:{},{flexShrink:0,flexGrow:0})},o))});t.__DEV__&&(Hm.displayName="Square"),t.__DEV__&&(/*#__PURE__*/La(function(e,t){var n=e.size,r=Dm(e,zm);/*#__PURE__*/
40
- return F.createElement(Hm,Lm({size:n,ref:t,borderRadius:"9999px"},r))}).displayName="Circle");var Um=Fa("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});t.__DEV__&&(Um.displayName="Center");var $m=["className"],qm=/*#__PURE__*/La(function(e,n){var r=Va("Code",e),a=Dm(Ca(e),$m);/*#__PURE__*/
41
- return F.createElement(Fa.code,Lm({ref:n,className:t.cx("chakra-code",e.className)},a,{__css:Lm({display:"inline-block"},r)}))});t.__DEV__&&(qm.displayName="Code");var Ym=["className","centerContent"],Zm=/*#__PURE__*/La(function(e,n){var r=Ca(e),a=r.className,o=r.centerContent,i=Dm(r,Ym),s=Va("Container",e);/*#__PURE__*/
42
- return F.createElement(Fa.div,Lm({ref:n,className:t.cx("chakra-container",a)},i,{__css:Lm({},s,o&&{display:"flex",flexDirection:"column",alignItems:"center"})}))});t.__DEV__&&(Zm.displayName="Container");var Gm=["borderLeftWidth","borderBottomWidth","borderTopWidth","borderRightWidth","borderWidth","borderStyle","borderColor"],Xm=["className","orientation","__css"],Km=/*#__PURE__*/La(function(e,n){var r=Va("Divider",e),a=r.borderLeftWidth,o=r.borderBottomWidth,i=r.borderTopWidth,s=r.borderRightWidth,l=r.borderWidth,c=r.borderStyle,u=r.borderColor,d=Dm(r,Gm),f=Ca(e),p=f.className,m=f.orientation,v=void 0===m?"horizontal":m,h=f.__css,y=Dm(f,Xm);/*#__PURE__*/
43
- return F.createElement(Fa.hr,Lm({ref:n,"aria-orientation":v},y,{__css:Lm({},d,{border:"0",borderColor:u,borderStyle:c},{vertical:{borderLeftWidth:a||s||l||"1px",height:"100%"},horizontal:{borderBottomWidth:o||i||l||"1px",width:"100%"}}[v],h),className:t.cx("chakra-divider",p)}))});t.__DEV__&&(Km.displayName="Divider");var Jm=["direction","align","justify","wrap","basis","grow","shrink"],Qm=/*#__PURE__*/La(function(e,t){var n=e.direction,r=e.align,a=e.justify,o=e.wrap,i=e.basis,s=e.grow,l=e.shrink,c=Dm(e,Jm);/*#__PURE__*/
44
- return F.createElement(Fa.div,Lm({ref:t,__css:{display:"flex",flexDirection:n,alignItems:r,justifyContent:a,flexWrap:o,flexBasis:i,flexGrow:s,flexShrink:l}},c))});t.__DEV__&&(Qm.displayName="Flex");var ev=["templateAreas","gap","rowGap","columnGap","column","row","autoFlow","autoRows","templateRows","autoColumns","templateColumns"],tv=/*#__PURE__*/La(function(e,t){var n=e.templateAreas,r=e.gap,a=e.rowGap,o=e.columnGap,i=e.column,s=e.row,l=e.autoFlow,c=e.autoRows,u=e.templateRows,d=e.autoColumns,f=e.templateColumns,p=Dm(e,ev);/*#__PURE__*/
45
- return F.createElement(Fa.div,Lm({ref:t,__css:{display:"grid",gridTemplateAreas:n,gridGap:r,gridRowGap:a,gridColumnGap:o,gridAutoColumns:d,gridColumn:i,gridRow:s,gridAutoFlow:l,gridAutoRows:c,gridTemplateRows:u,gridTemplateColumns:f}},p))});t.__DEV__&&(tv.displayName="Grid");var nv=["className"],rv=/*#__PURE__*/La(function(e,n){var r=Va("Heading",e),a=Dm(Ca(e),nv);/*#__PURE__*/
46
- return F.createElement(Fa.h2,Lm({ref:n,className:t.cx("chakra-heading",e.className)},a,{__css:r}))});t.__DEV__&&(rv.displayName="Heading");var av=["className"],ov=/*#__PURE__*/La(function(e,n){var r=Va("Kbd",e),a=Ca(e),o=a.className,i=Dm(a,av);/*#__PURE__*/
47
- return F.createElement(Fa.kbd,Lm({ref:n,className:t.cx("chakra-kbd",o)},i,{__css:Lm({fontFamily:"mono"},r)}))});t.__DEV__&&(ov.displayName="Kbd");var iv=["className","isExternal"],sv=/*#__PURE__*/La(function(e,n){var r=Va("Link",e),a=Ca(e),o=a.className,i=a.isExternal,s=Dm(a,iv);/*#__PURE__*/
48
- return F.createElement(Fa.a,Lm({target:i?"_blank":void 0,rel:i?"noopener":void 0,ref:n,className:t.cx("chakra-link",o)},s,{__css:r}))});t.__DEV__&&(sv.displayName="Link");var lv=["children","styleType","stylePosition","spacing"],cv=["as"],uv=["as"],dv=Sa("List"),fv=dv[0],pv=dv[1],mv=/*#__PURE__*/La(function(e,t){var n,r=ja("List",e),a=Ca(e),o=a.children,i=a.styleType,s=void 0===i?"none":i,l=a.stylePosition,c=a.spacing,u=Dm(a,lv),d=rn(o),f=c?((n={})["& > *:not(style) ~ *:not(style)"]={mt:c},n):{};/*#__PURE__*/
49
- return F.createElement(fv,{value:r},/*#__PURE__*/F.createElement(Fa.ul,Lm({ref:t,listStyleType:s,listStylePosition:l,role:"list",__css:Lm({},r.container,f)},u),d))});t.__DEV__&&(mv.displayName="List"),t.__DEV__&&(/*#__PURE__*/La(function(e,t){var n=Dm(e,cv);/*#__PURE__*/
50
- return F.createElement(mv,Lm({ref:t,as:"ol",styleType:"decimal",marginStart:"1em"},n))}).displayName="OrderedList"),t.__DEV__&&(/*#__PURE__*/La(function(e,t){var n=Dm(e,uv);/*#__PURE__*/
51
- return F.createElement(mv,Lm({ref:t,as:"ul",styleType:"initial",marginStart:"1em"},n))}).displayName="UnorderedList"),t.__DEV__&&(/*#__PURE__*/La(function(e,t){var n=pv();/*#__PURE__*/
52
- return F.createElement(Fa.li,Lm({ref:t},e,{__css:n.item}))}).displayName="ListItem"),t.__DEV__&&(/*#__PURE__*/La(function(e,t){var n=pv();/*#__PURE__*/
53
- return F.createElement(Ka,Lm({ref:t,role:"presentation"},e,{__css:n.icon}))}).displayName="ListIcon");var vv=["columns","spacingX","spacingY","spacing","minChildWidth"],hv=/*#__PURE__*/La(function(e,n){var r=e.columns,a=e.spacingX,o=e.spacingY,i=e.spacing,s=e.minChildWidth,l=Dm(e,vv),c=s?t.mapResponsive(s,function(e){return t.isNull(e)?null:"repeat(auto-fit, minmax("+function(e){return t.isNumber(e)?e+"px":e}(e)+", 1fr))"}):t.mapResponsive(r,function(e){return t.isNull(e)?null:"repeat("+e+", minmax(0, 1fr))"});/*#__PURE__*/
54
- return F.createElement(tv,Lm({ref:n,gap:i,columnGap:a,rowGap:o,templateColumns:c},l))});t.__DEV__&&(hv.displayName="SimpleGrid");var yv=Fa("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});t.__DEV__&&(yv.displayName="Spacer");var gv="& > *:not(style) ~ *:not(style)",bv=["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"],Ev=function(e){/*#__PURE__*/
55
- return F.createElement(Fa.div,Lm({className:"chakra-stack__item"},e,{__css:Lm({display:"inline-block",flex:"0 0 auto",minWidth:0},e.__css)}))},xv=/*#__PURE__*/La(function(e,n){var r,a=e.isInline,o=e.direction,i=e.align,s=e.justify,l=e.spacing,c=void 0===l?"0.5rem":l,u=e.wrap,d=e.children,f=e.divider,p=e.className,m=e.shouldWrapChildren,v=Dm(e,bv),h=a?"row":null!=o?o:"column",y=F.useMemo(function(){return function(e){var n,r=e.spacing,a=e.direction,o={column:{marginTop:r,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:r},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:r,marginStart:0},"row-reverse":{marginTop:0,marginEnd:r,marginBottom:0,marginStart:0}};return(n={flexDirection:a})[gv]=t.mapResponsive(a,function(e){return o[e]}),n}({direction:h,spacing:c})},[h,c]),g=F.useMemo(function(){return function(e){var n=e.spacing,r={column:{my:n,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:n,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:n,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:n,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":t.mapResponsive(e.direction,function(e){return r[e]})}}({spacing:c,direction:h})},[c,h]),b=!!f,E=!m&&!b,x=rn(d),_=E?x:x.map(function(e,t){var n=void 0!==e.key?e.key:t,r=t+1===x.length,a=m?/*#__PURE__*/F.createElement(Ev,{key:n},e):e;return b?/*#__PURE__*/F.createElement(F.Fragment,{key:n},a,r?null:/*#__PURE__*/F.cloneElement(f,{__css:g})):a}),w=t.cx("chakra-stack",p);/*#__PURE__*/
56
- return F.createElement(Fa.div,Lm({ref:n,display:"flex",alignItems:i,justifyContent:s,flexDirection:y.flexDirection,flexWrap:u,className:w,__css:b?{}:(r={},r[gv]=y[gv],r)},v),_)});t.__DEV__&&(xv.displayName="Stack");var _v=/*#__PURE__*/La(function(e,t){/*#__PURE__*/
57
- return F.createElement(xv,Lm({align:"center"},e,{direction:"row",ref:t}))});t.__DEV__&&(_v.displayName="HStack"),t.__DEV__&&(/*#__PURE__*/La(function(e,t){/*#__PURE__*/
58
- return F.createElement(xv,Lm({align:"center"},e,{direction:"column",ref:t}))}).displayName="VStack");var wv=["className","align","decoration","casing"],kv=/*#__PURE__*/La(function(e,n){var r=Va("Text",e),a=Dm(Ca(e),wv),o=t.filterUndefined({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});/*#__PURE__*/
59
- return F.createElement(Fa.p,Lm({ref:n,className:t.cx("chakra-text",e.className)},o,a,{__css:r}))});t.__DEV__&&(kv.displayName="Text");var Sv=["spacing","spacingX","spacingY","children","justify","direction","align","className","shouldWrapChildren"],Cv=["className"];function Ov(e){return"number"==typeof e?e+"px":e}var Av=/*#__PURE__*/La(function(e,n){var r=e.spacing,a=void 0===r?"0.5rem":r,o=e.spacingX,i=e.spacingY,s=e.children,l=e.justify,c=e.direction,u=e.align,d=e.className,f=e.shouldWrapChildren,p=Dm(e,Sv),m=F.useMemo(function(){var e={spacingX:o,spacingY:i},n=e.spacingX,r=void 0===n?a:n,s=e.spacingY,d=void 0===s?a:s;return{"--chakra-wrap-x-spacing":function(e){return t.mapResponsive(r,function(t){return Ov(wn("space",t)(e))})},"--chakra-wrap-y-spacing":function(e){return t.mapResponsive(d,function(t){return Ov(wn("space",t)(e))})},"--wrap-x-spacing":"calc(var(--chakra-wrap-x-spacing) / 2)","--wrap-y-spacing":"calc(var(--chakra-wrap-y-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:l,alignItems:u,flexDirection:c,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-y-spacing) * -1) calc(var(--wrap-x-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-y-spacing) var(--wrap-x-spacing)"}}},[a,o,i,l,u,c]),v=f?F.Children.map(s,function(e,t){/*#__PURE__*/
60
- return F.createElement(Nv,{key:t},e)}):s;/*#__PURE__*/
61
- return F.createElement(Fa.div,Lm({ref:n,className:t.cx("chakra-wrap",d),overflow:"hidden"},p),/*#__PURE__*/F.createElement(Fa.ul,{className:"chakra-wrap__list",__css:m},v))});t.__DEV__&&(Av.displayName="Wrap");var Nv=/*#__PURE__*/La(function(e,n){var r=e.className,a=Dm(e,Cv);/*#__PURE__*/
62
- return F.createElement(Fa.li,Lm({ref:n,__css:{display:"flex",alignItems:"flex-start"},className:t.cx("chakra-wrap__listitem",r)},a))});function Rv(){return Rv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rv.apply(this,arguments)}t.__DEV__&&(Nv.displayName="WrapItem");var Iv=["ref","isDisabled","isFocusable","clickOnEnter","clickOnSpace","onMouseDown","onMouseUp","onClick","onKeyDown","onKeyUp","tabIndex","onMouseOver","onMouseLeave"];function Pv(e){var t=e.target,n=t.tagName;return"INPUT"!==n&&"TEXTAREA"!==n&&!0!==t.isContentEditable}var Tv="top",Lv="bottom",Dv="right",Mv="left",Vv=[Tv,Lv,Dv,Mv],jv=/*#__PURE__*/Vv.reduce(function(e,t){return e.concat([t+"-start",t+"-end"])},[]),Bv=/*#__PURE__*/[].concat(Vv,["auto"]).reduce(function(e,t){return e.concat([t,t+"-start",t+"-end"])},[]),Fv=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function zv(e){return e?(e.nodeName||"").toLowerCase():null}function Wv(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Hv(e){return e instanceof Wv(e).Element||e instanceof Element}function Uv(e){return e instanceof Wv(e).HTMLElement||e instanceof HTMLElement}function $v(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Wv(e).ShadowRoot||e instanceof ShadowRoot)}function qv(e){return e.split("-")[0]}var Yv=Math.max,Zv=Math.min,Gv=Math.round;function Xv(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,a=1;if(Uv(e)&&t){var o=e.offsetHeight,i=e.offsetWidth;i>0&&(r=Gv(n.width)/i||1),o>0&&(a=Gv(n.height)/o||1)}return{width:n.width/r,height:n.height/a,top:n.top/a,right:n.right/r,bottom:n.bottom/a,left:n.left/r,x:n.left/r,y:n.top/a}}function Kv(e){var t=Xv(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Jv(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&$v(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Qv(e){return Wv(e).getComputedStyle(e)}function eh(e){return["table","td","th"].indexOf(zv(e))>=0}function th(e){return((Hv(e)?e.ownerDocument:e.document)||window.document).documentElement}function nh(e){return"html"===zv(e)?e:e.assignedSlot||e.parentNode||($v(e)?e.host:null)||th(e)}function rh(e){return Uv(e)&&"fixed"!==Qv(e).position?e.offsetParent:null}function ah(e){for(var t=Wv(e),n=rh(e);n&&eh(n)&&"static"===Qv(n).position;)n=rh(n);return n&&("html"===zv(n)||"body"===zv(n)&&"static"===Qv(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Uv(e)&&"fixed"===Qv(e).position)return null;var n=nh(e);for($v(n)&&(n=n.host);Uv(n)&&["html","body"].indexOf(zv(n))<0;){var r=Qv(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function oh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ih(e,t,n){return Yv(e,Zv(t,n))}function sh(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function lh(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function ch(e){return e.split("-")[1]}var uh={top:"auto",right:"auto",bottom:"auto",left:"auto"};function dh(e){var t,n=e.popper,r=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=i.x,p=void 0===f?0:f,m=i.y,v=void 0===m?0:m,h="function"==typeof u?u({x:p,y:v}):{x:p,y:v};p=h.x,v=h.y;var y=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),b=Mv,E=Tv,x=window;if(c){var _=ah(n),w="clientHeight",k="clientWidth";_===Wv(n)&&"static"!==Qv(_=th(n)).position&&"absolute"===s&&(w="scrollHeight",k="scrollWidth"),(a===Tv||(a===Mv||a===Dv)&&"end"===o)&&(E=Lv,v-=(d&&_===x&&x.visualViewport?x.visualViewport.height:_[w])-r.height,v*=l?1:-1),a!==Mv&&(a!==Tv&&a!==Lv||"end"!==o)||(b=Dv,p-=(d&&_===x&&x.visualViewport?x.visualViewport.width:_[k])-r.width,p*=l?1:-1)}var S,C=Object.assign({position:s},c&&uh),O=!0===u?function(e){var t=e.y,n=window.devicePixelRatio||1;return{x:Gv(e.x*n)/n||0,y:Gv(t*n)/n||0}}({x:p,y:v}):{x:p,y:v};return p=O.x,v=O.y,Object.assign({},C,l?((S={})[E]=g?"0":"",S[b]=y?"0":"",S.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",S):((t={})[E]=g?v+"px":"",t[b]=y?p+"px":"",t.transform="",t))}var fh={passive:!0},ph={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,o=void 0===a||a,i=r.resize,s=void 0===i||i,l=Wv(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",n.update,fh)}),s&&l.addEventListener("resize",n.update,fh),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",n.update,fh)}),s&&l.removeEventListener("resize",n.update,fh)}},data:{}},mh={left:"right",right:"left",bottom:"top",top:"bottom"};function vh(e){return e.replace(/left|right|bottom|top/g,function(e){return mh[e]})}var hh={start:"end",end:"start"};function yh(e){return e.replace(/start|end/g,function(e){return hh[e]})}function gh(e){var t=Wv(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function bh(e){return Xv(th(e)).left+gh(e).scrollLeft}function Eh(e){var t=Qv(e);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function xh(e){return["html","body","#document"].indexOf(zv(e))>=0?e.ownerDocument.body:Uv(e)&&Eh(e)?e:xh(nh(e))}function _h(e,t){var n;void 0===t&&(t=[]);var r=xh(e),a=r===(null==(n=e.ownerDocument)?void 0:n.body),o=Wv(r),i=a?[o].concat(o.visualViewport||[],Eh(r)?r:[]):r,s=t.concat(i);return a?s:s.concat(_h(nh(i)))}function wh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function kh(e,t){return"viewport"===t?wh(function(e){var t=Wv(e),n=th(e),r=t.visualViewport,a=n.clientWidth,o=n.clientHeight,i=0,s=0;return r&&(a=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,s=r.offsetTop)),{width:a,height:o,x:i+bh(e),y:s}}(e)):Hv(t)?function(e){var t=Xv(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):wh(function(e){var t,n=th(e),r=gh(e),a=null==(t=e.ownerDocument)?void 0:t.body,o=Yv(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Yv(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-r.scrollLeft+bh(e),l=-r.scrollTop;return"rtl"===Qv(a||n).direction&&(s+=Yv(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:s,y:l}}(th(e)))}function Sh(e){var t,n=e.reference,r=e.element,a=e.placement,o=a?qv(a):null,i=a?ch(a):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case Tv:t={x:s,y:n.y-r.height};break;case Lv:t={x:s,y:n.y+n.height};break;case Dv:t={x:n.x+n.width,y:l};break;case Mv:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?oh(o):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case"start":t[c]=t[c]-(n[u]/2-r[u]/2);break;case"end":t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function Ch(e,t){void 0===t&&(t={});var n=t.placement,r=void 0===n?e.placement:n,a=t.boundary,o=void 0===a?"clippingParents":a,i=t.rootBoundary,s=void 0===i?"viewport":i,l=t.elementContext,c=void 0===l?"popper":l,u=t.altBoundary,d=void 0!==u&&u,f=t.padding,p=void 0===f?0:f,m=sh("number"!=typeof p?p:lh(p,Vv)),v=e.rects.popper,h=e.elements[d?"popper"===c?"reference":"popper":c],y=function(e,t,n){var r="clippingParents"===t?function(e){var t=_h(nh(e)),n=["absolute","fixed"].indexOf(Qv(e).position)>=0&&Uv(e)?ah(e):e;return Hv(n)?t.filter(function(e){return Hv(e)&&Jv(e,n)&&"body"!==zv(e)}):[]}(e):[].concat(t),a=[].concat(r,[n]),o=a.reduce(function(t,n){var r=kh(e,n);return t.top=Yv(r.top,t.top),t.right=Zv(r.right,t.right),t.bottom=Zv(r.bottom,t.bottom),t.left=Yv(r.left,t.left),t},kh(e,a[0]));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}(Hv(h)?h:h.contextElement||th(e.elements.popper),o,s),g=Xv(e.elements.reference),b=Sh({reference:g,element:v,strategy:"absolute",placement:r}),E=wh(Object.assign({},v,b)),x="popper"===c?E:g,_={top:y.top-x.top+m.top,bottom:x.bottom-y.bottom+m.bottom,left:y.left-x.left+m.left,right:x.right-y.right+m.right},w=e.modifiersData.offset;if("popper"===c&&w){var k=w[r];Object.keys(_).forEach(function(e){var t=[Dv,Lv].indexOf(e)>=0?1:-1,n=[Tv,Lv].indexOf(e)>=0?"y":"x";_[e]+=k[n]*t})}return _}function Oh(e,t){void 0===t&&(t={});var n=t.boundary,r=t.rootBoundary,a=t.padding,o=t.flipVariations,i=t.allowedAutoPlacements,s=void 0===i?Bv:i,l=ch(t.placement),c=l?o?jv:jv.filter(function(e){return ch(e)===l}):Vv,u=c.filter(function(e){return s.indexOf(e)>=0});0===u.length&&(u=c,"production"!==process.env.NODE_ENV&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var d=u.reduce(function(t,o){return t[o]=Ch(e,{placement:o,boundary:n,rootBoundary:r,padding:a})[qv(o)],t},{});return Object.keys(d).sort(function(e,t){return d[e]-d[t]})}var Ah={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,o=void 0===a||a,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,v=n.allowedAutoPlacements,h=t.options.placement,y=qv(h),g=l||(y!==h&&m?function(e){if("auto"===qv(e))return[];var t=vh(e);return[yh(e),t,yh(t)]}(h):[vh(h)]),b=[h].concat(g).reduce(function(e,n){return e.concat("auto"===qv(n)?Oh(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:v}):n)},[]),E=t.rects.reference,x=t.rects.popper,_=new Map,w=!0,k=b[0],S=0;S<b.length;S++){var C=b[S],O=qv(C),A="start"===ch(C),N=[Tv,Lv].indexOf(O)>=0,R=N?"width":"height",I=Ch(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),P=N?A?Dv:Mv:A?Lv:Tv;E[R]>x[R]&&(P=vh(P));var T=vh(P),L=[];if(o&&L.push(I[O]<=0),s&&L.push(I[P]<=0,I[T]<=0),L.every(function(e){return e})){k=C,w=!1;break}_.set(C,L)}if(w)for(var D=function(e){var t=b.find(function(t){var n=_.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return k=t,"break"},M=m?3:1;M>0&&"break"!==D(M);M--);t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Nh(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Rh(e){return[Tv,Dv,Lv,Mv].some(function(t){return e[t]>=0})}var Ih={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.name,r=e.options.offset,a=void 0===r?[0,0]:r,o=Bv.reduce(function(e,n){return e[n]=function(e,t,n){var r=qv(e),a=[Mv,Tv].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=o[0],s=o[1];return i=i||0,s=(s||0)*a,[Mv,Dv].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}(n,t.rects,a),e},{}),i=o[t.placement],s=i.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=i.x,t.modifiersData.popperOffsets.y+=s),t.modifiersData[n]=o}},Ph={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,o=void 0===a||a,i=n.altAxis,s=void 0!==i&&i,l=n.tether,c=void 0===l||l,u=n.tetherOffset,d=void 0===u?0:u,f=Ch(t,{boundary:n.boundary,rootBoundary:n.rootBoundary,padding:n.padding,altBoundary:n.altBoundary}),p=qv(t.placement),m=ch(t.placement),v=!m,h=oh(p),y="x"===h?"y":"x",g=t.modifiersData.popperOffsets,b=t.rects.reference,E=t.rects.popper,x="function"==typeof d?d(Object.assign({},t.rects,{placement:t.placement})):d,_="number"==typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),w=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(g){if(o){var S,C="y"===h?Tv:Mv,O="y"===h?Lv:Dv,A="y"===h?"height":"width",N=g[h],R=N+f[C],I=N-f[O],P=c?-E[A]/2:0,T="start"===m?b[A]:E[A],L="start"===m?-E[A]:-b[A],D=t.elements.arrow,M=c&&D?Kv(D):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},j=V[C],B=V[O],F=ih(0,b[A],M[A]),z=v?b[A]/2-P-F-j-_.mainAxis:T-F-j-_.mainAxis,W=v?-b[A]/2+P+F+B+_.mainAxis:L+F+B+_.mainAxis,H=t.elements.arrow&&ah(t.elements.arrow),U=null!=(S=null==w?void 0:w[h])?S:0,$=N+W-U,q=ih(c?Zv(R,N+z-U-(H?"y"===h?H.clientTop||0:H.clientLeft||0:0)):R,N,c?Yv(I,$):I);g[h]=q,k[h]=q-N}if(s){var Y,Z=g[y],G="y"===y?"height":"width",X=Z+f["x"===h?Tv:Mv],K=Z-f["x"===h?Lv:Dv],J=-1!==[Tv,Mv].indexOf(p),Q=null!=(Y=null==w?void 0:w[y])?Y:0,ee=J?X:Z-b[G]-E[G]-Q+_.altAxis,te=J?Z+b[G]+E[G]-Q-_.altAxis:K,ne=c&&J?function(e,t,n){var r=ih(e,t,n);return r>n?n:r}(ee,Z,te):ih(c?ee:X,Z,c?te:K);g[y]=ne,k[y]=ne-Z}t.modifiersData[r]=k}},requiresIfExists:["offset"]};function Th(e,t,n){void 0===n&&(n=!1);var r=Uv(t),a=Uv(t)&&function(e){var t=e.getBoundingClientRect(),n=Gv(t.width)/e.offsetWidth||1,r=Gv(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=th(t),i=Xv(e,a),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==zv(t)||Eh(o))&&(s=function(e){return e!==Wv(e)&&Uv(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:gh(e);var t}(t)),Uv(t)?((l=Xv(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=bh(o))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function Lh(e){var t=new Map,n=new Set,r=[];function a(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&a(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||a(e)}),r}function Dh(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[].concat(n).reduce(function(e,t){return e.replace(/%s/,t)},e)}var Mh='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Vh=["name","enabled","phase","fn","effect","requires","options"],jh="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Bh={placement:"bottom",modifiers:[],strategy:"absolute"};function Fh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function zh(e){void 0===e&&(e={});var t=e.defaultModifiers,n=void 0===t?[]:t,r=e.defaultOptions,a=void 0===r?Bh:r;return function(e,t,r){void 0===r&&(r=a);var o,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Bh,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(r){var o="function"==typeof r?r(s.options):r;d(),s.options=Object.assign({},a,s.options,o),s.scrollParents={reference:Hv(e)?_h(e):e.contextElement?_h(e.contextElement):[],popper:_h(t)};var i,c,f,p=function(e){var t=Lh(e);return Fv.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}(function(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}([].concat(n,s.options.modifiers)));if(s.orderedModifiers=p.filter(function(e){return e.enabled}),"production"!==process.env.NODE_ENV){var m=(i=[].concat(p,s.options.modifiers),c=function(e){return e.name},f=new Set,i.filter(function(e){var t=c(e);if(!f.has(t))return f.add(t),!0}));(function(e){e.forEach(function(t){[].concat(Object.keys(t),Vh).filter(function(e,t,n){return n.indexOf(e)===t}).forEach(function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(Dh(Mh,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(Dh(Mh,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":Fv.indexOf(t.phase)<0&&console.error(Dh(Mh,t.name,'"phase"',"either "+Fv.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(Dh(Mh,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(Dh(Mh,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(Dh(Mh,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Dh(Mh,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+Vh.map(function(e){return'"'+e+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(n){null==e.find(function(e){return e.name===n})&&console.error(Dh('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),n,n))})})})})(m),"auto"===qv(s.options.placement)&&(s.orderedModifiers.find(function(e){return"flip"===e.name})||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" ")));var v=Qv(t);[v.marginTop,v.marginRight,v.marginBottom,v.marginLeft].some(function(e){return parseFloat(e)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return s.orderedModifiers.forEach(function(e){var t=e.options,n=e.effect;if("function"==typeof n){var r=n({state:s,name:e.name,instance:u,options:void 0===t?{}:t});l.push(r||function(){})}}),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(Fh(t,n)){s.rects={reference:Th(t,ah(n),"fixed"===s.options.strategy),popper:Kv(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0,a=0;a<s.orderedModifiers.length;a++){if("production"!==process.env.NODE_ENV&&(r+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==s.reset){var o=s.orderedModifiers[a],i=o.fn,l=o.options;"function"==typeof i&&(s=i({state:s,options:void 0===l?{}:l,name:o.name,instance:u})||s)}else s.reset=!1,a=-1}}else"production"!==process.env.NODE_ENV&&console.error(jh)}},update:(o=function(){return new Promise(function(e){u.forceUpdate(),e(s)})},function(){return i||(i=new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(o())})})),i}),destroy:function(){d(),c=!0}};if(!Fh(e,t))return"production"!==process.env.NODE_ENV&&console.error(jh),u;function d(){l.forEach(function(e){return e()}),l=[]}return u.setOptions(r).then(function(e){!c&&r.onFirstUpdate&&r.onFirstUpdate(e)}),u}}var Wh=/*#__PURE__*/zh({defaultModifiers:[ph,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=Sh({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=void 0===r||r,o=n.adaptive,i=void 0===o||o,s=n.roundOffsets,l=void 0===s||s;if("production"!==process.env.NODE_ENV){var c=Qv(t.elements.popper).transitionProperty||"";i&&["transform","top","right","bottom","left"].some(function(e){return c.indexOf(e)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var u={placement:qv(t.placement),variation:ch(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,dh(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,dh(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},a=t.elements[e];Uv(a)&&zv(a)&&(Object.assign(a.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?a.removeAttribute(e):a.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],a=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Uv(r)&&zv(r)&&(Object.assign(r.style,o),Object.keys(a).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},Ih,Ah,Ph,{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,a=e.options,o=n.elements.arrow,i=n.modifiersData.popperOffsets,s=qv(n.placement),l=oh(s),c=[Mv,Dv].indexOf(s)>=0?"height":"width";if(o&&i){var u=function(e,t){return sh("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:lh(e,Vv))}(a.padding,n),d=Kv(o),f="y"===l?Tv:Mv,p="y"===l?Lv:Dv,m=n.rects.reference[c]+n.rects.reference[l]-i[l]-n.rects.popper[c],v=i[l]-n.rects.reference[l],h=ah(o),y=h?"y"===l?h.clientHeight||0:h.clientWidth||0:0,g=y/2-d[c]/2+(m/2-v/2),b=ih(u[f],g,y-d[c]-u[p]);n.modifiersData[r]=((t={})[l]=b,t.centerOffset=b-g,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&("production"!==process.env.NODE_ENV&&(Uv(r)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),Jv(t.elements.popper,r)?t.elements.arrow=r:"production"!==process.env.NODE_ENV&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=Ch(t,{elementContext:"reference"}),s=Ch(t,{altBoundary:!0}),l=Nh(i,r),c=Nh(s,a,o),u=Rh(l),d=Rh(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});function Hh(){return Hh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hh.apply(this,arguments)}var Uh=function(e,t){return{var:e,varRef:t?"var("+e+", "+t+")":"var("+e+")"}},$h={arrowShadowColor:Uh("--popper-arrow-shadow-color"),arrowSize:Uh("--popper-arrow-size","8px"),arrowSizeHalf:Uh("--popper-arrow-size-half"),arrowBg:Uh("--popper-arrow-bg"),transformOrigin:Uh("--popper-transform-origin"),arrowOffset:Uh("--popper-arrow-offset")},qh={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},Yh={scroll:!0,resize:!0},Zh={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;t.styles.popper.width=t.rects.reference.width+"px"},effect:function(e){var t=e.state;return function(){t.elements.popper.style.width=t.elements.reference.offsetWidth+"px"}}},Gh={name:"transformOrigin",enabled:!0,phase:"write",fn:function(e){Xh(e.state)},effect:function(e){var t=e.state;return function(){Xh(t)}}},Xh=function(e){e.elements.popper.style.setProperty($h.transformOrigin.var,qh[e.placement])},Kh={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:function(e){Jh(e.state)}},Jh=function(e){var t;if(e.placement){var n=Qh(e.placement);if(null!=(t=e.elements)&&t.arrow&&n){var r,a;Object.assign(e.elements.arrow.style,((r={})[n.property]=n.value,r.width=$h.arrowSize.varRef,r.height=$h.arrowSize.varRef,r.zIndex=-1,r));var o=((a={})[$h.arrowSizeHalf.var]="calc("+$h.arrowSize.varRef+" / 2)",a[$h.arrowOffset.var]="calc("+$h.arrowSizeHalf.varRef+" * -1)",a);for(var i in o)e.elements.arrow.style.setProperty(i,o[i])}}},Qh=function(e){return e.startsWith("top")?{property:"bottom",value:$h.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:$h.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:$h.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:$h.arrowOffset.varRef}:void 0},ey={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:function(e){ty(e.state)},effect:function(e){var t=e.state;return function(){ty(t)}}},ty=function(e){if(e.elements.arrow){var t,n=e.elements.arrow.querySelector("[data-popper-arrow-inner]");n&&Object.assign(n.style,{transform:"rotate(45deg)",background:$h.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:(t=e.placement,t.includes("top")?"1px 1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("bottom")?"-1px -1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("right")?"-1px 1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("left")?"1px -1px 1px 0 var(--popper-arrow-shadow-color)":void 0)})}},ny={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},ry={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"},ay=["size","shadowColor","bg","style"];function oy(e){var t=e.size,n=e.shadowColor,r=e.bg,a=Hh({},e.style,{position:"absolute"});return t&&(a["--popper-arrow-size"]=t),n&&(a["--popper-arrow-shadow-color"]=n),r&&(a["--popper-arrow-bg"]=r),a}function iy(){return iy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iy.apply(this,arguments)}function sy(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}var ly=["id","closeOnSelect","closeOnBlur","autoSelect","isLazy","isOpen","defaultIsOpen","onClose","onOpen","placement","lazyBehavior","direction","computePositionOnMount"],cy=["onMouseEnter","onMouseMove","onMouseLeave","onClick","isDisabled","isFocusable","closeOnSelect","type"],uy=["type","isChecked"],dy=["children","type","value","defaultValue","onChange"],fy=qf(),py=fy[0],my=fy[1],vy=fy[2],hy=fy[3],yy=nn({strict:!1,name:"MenuContext"}),gy=yy[0],by=yy[1];function Ey(e){var n;return t.isHTMLElement(e)&&!(null==(n=e.getAttribute("role"))||!n.startsWith("menuitem"))}function xy(e,n){void 0===e&&(e={}),void 0===n&&(n=null);var r=e.onMouseEnter,a=e.onMouseMove,o=e.onMouseLeave,i=e.onClick,s=e.isDisabled,l=e.isFocusable,c=e.closeOnSelect,u=e.type,d=sy(e,cy),f=by(),p=f.setFocusedIndex,m=f.focusedIndex,v=f.closeOnSelect,h=f.onClose,y=f.menuRef,g=f.isOpen,b=f.menuId,E=F.useRef(null),x=b+"-menuitem-"+fn(),_=hy({disabled:s&&!l}),w=_.index,k=_.register,S=F.useCallback(function(e){null==r||r(e),s||p(w)},[p,w,s,r]),C=F.useCallback(function(e){null==a||a(e),E.current&&!t.isActiveElement(E.current)&&S(e)},[S,a]),O=F.useCallback(function(e){null==o||o(e),s||p(-1)},[p,s,o]),A=F.useCallback(function(e){null==i||i(e),Ey(e.currentTarget)&&(null!=c?c:v)&&h()},[h,i,v,c]),N=w===m,R=s&&!l;pn(function(){g&&(N&&!R&&E.current?t.focus(E.current,{nextTick:!0,selectTextIfInput:!1,preventScroll:!1}):y.current&&!t.isActiveElement(y.current)&&t.focus(y.current,{preventScroll:!1}))},[N,R,y,g]);var I=function(e){void 0===e&&(e={});var n=e.ref,r=e.isDisabled,a=e.isFocusable,o=e.clickOnEnter,i=void 0===o||o,s=e.clickOnSpace,l=void 0===s||s,c=e.onMouseDown,u=e.onMouseUp,d=e.onClick,f=e.onKeyDown,p=e.onKeyUp,m=e.tabIndex,v=e.onMouseOver,h=e.onMouseLeave,y=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,Iv),g=F.useState(!0),b=g[0],E=g[1],x=F.useState(!1),_=x[0],w=x[1],k=function(){var e=F.useRef(new Map),t=e.current,n=F.useCallback(function(t,n,r,a){e.current.set(r,{type:n,el:t,options:a}),t.addEventListener(n,r,a)},[]),r=F.useCallback(function(t,n,r,a){t.removeEventListener(n,r,a),e.current.delete(r)},[]);return F.useEffect(function(){return function(){t.forEach(function(e,t){r(e.el,e.type,t,e.options)})}},[r,t]),{add:n,remove:r}}(),S=b?m:m||0,C=r&&!a,O=F.useCallback(function(e){if(r)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==d||d(e)},[r,d]),A=F.useCallback(function(e){_&&Pv(e)&&(e.preventDefault(),e.stopPropagation(),w(!1),k.remove(document,"keyup",A,!1))},[_,k]),N=F.useCallback(function(e){if(null==f||f(e),!(r||e.defaultPrevented||e.metaKey)&&Pv(e.nativeEvent)&&!b){var t=i&&"Enter"===e.key;l&&" "===e.key&&(e.preventDefault(),w(!0)),t&&(e.preventDefault(),e.currentTarget.click()),k.add(document,"keyup",A,!1)}},[r,b,f,i,l,k,A]),R=F.useCallback(function(e){null==p||p(e),r||e.defaultPrevented||e.metaKey||Pv(e.nativeEvent)&&!b&&l&&" "===e.key&&(e.preventDefault(),w(!1),e.currentTarget.click())},[l,b,r,p]),I=F.useCallback(function(e){0===e.button&&(w(!1),k.remove(document,"mouseup",I,!1))},[k]),P=F.useCallback(function(e){if(!t.isRightClick(e)){if(r)return e.stopPropagation(),void e.preventDefault();b||w(!0),e.currentTarget.focus({preventScroll:!0}),k.add(document,"mouseup",I,!1),null==c||c(e)}},[r,b,c,k,I]),T=F.useCallback(function(e){t.isRightClick(e)||(b||w(!1),null==u||u(e))},[u,b]),L=F.useCallback(function(e){r?e.preventDefault():null==v||v(e)},[r,v]),D=F.useCallback(function(e){_&&(e.preventDefault(),w(!1)),null==h||h(e)},[_,h]),M=tn(n,function(e){e&&"BUTTON"!==e.tagName&&E(!1)});return Rv({},y,b?{ref:M,type:"button","aria-disabled":C?void 0:r,disabled:C,onClick:O,onMouseDown:c,onMouseUp:u,onKeyUp:p,onKeyDown:f,onMouseOver:v,onMouseLeave:h}:{ref:M,role:"button","data-active":t.dataAttr(_),"aria-disabled":r?"true":void 0,tabIndex:C?void 0:S,onClick:O,onMouseDown:P,onMouseUp:T,onKeyUp:R,onKeyDown:N,onMouseOver:L,onMouseLeave:D})}({onClick:A,onMouseEnter:S,onMouseMove:C,onMouseLeave:O,ref:tn(k,E,n),isDisabled:s,isFocusable:l});return iy({},d,I,{type:null!=u?u:I.type,id:x,role:"menuitem",tabIndex:N?0:-1})}var _y=["descendants"],wy=["children","as"],ky=["rootProps"],Sy=["type"],Cy=["icon","iconSpacing","command","commandSpacing","children"],Oy=["icon","iconSpacing"],Ay=["className","title"],Ny=["title","children","className"],Ry=["className","children"],Iy=Sa("Menu"),Py=Iy[0],Ty=Iy[1],Ly=function(e){var n=e.children,r=ja("Menu",e),a=function(e){void 0===e&&(e={});var n=e.id,r=e.closeOnSelect,a=void 0===r||r,o=e.closeOnBlur,i=void 0===o||o,s=e.autoSelect,l=void 0===s||s,c=e.isLazy,u=e.isOpen,d=e.defaultIsOpen,f=e.onClose,p=e.onOpen,m=e.placement,v=void 0===m?"bottom-start":m,h=e.lazyBehavior,y=void 0===h?"unmount":h,g=e.direction,b=e.computePositionOnMount,E=void 0!==b&&b,x=sy(e,ly),_=F.useRef(null),w=F.useRef(null),k=vy(),S=F.useCallback(function(){t.focus(_.current,{nextTick:!0,selectTextIfInput:!1})},[]),C=F.useCallback(function(){var e=setTimeout(function(){var e=k.firstEnabled();e&&z(e.index)});Y.current.add(e)},[k]),O=F.useCallback(function(){var e=setTimeout(function(){var e=k.lastEnabled();e&&z(e.index)});Y.current.add(e)},[k]),A=function(e){void 0===e&&(e={});var n=e.onClose,r=e.isOpen,a=e.id,o=on(e.onOpen),i=on(n),s=F.useState(e.defaultIsOpen||!1),l=s[1],c=cn(r,s[0]),u=c[0],d=c[1],f=fn(a,"disclosure"),p=F.useCallback(function(){u||l(!1),null==i||i()},[u,i]),m=F.useCallback(function(){u||l(!0),null==o||o()},[u,o]),v=F.useCallback(function(){(d?p:m)()},[d,m,p]);return{isOpen:!!d,onOpen:m,onClose:p,onToggle:v,isControlled:u,getButtonProps:function(e){return void 0===e&&(e={}),dn({},e,{"aria-expanded":d,"aria-controls":f,onClick:t.callAllHandlers(e.onClick,v)})},getDisclosureProps:function(e){return void 0===e&&(e={}),dn({},e,{hidden:!d,id:f})}}}({isOpen:u,defaultIsOpen:d,onClose:f,onOpen:F.useCallback(function(){null==p||p(),l?C():S()},[l,C,S,p])}),N=A.isOpen,R=A.onOpen,I=A.onClose,P=A.onToggle;!function(e){var n=e.ref,r=e.handler,a=e.enabled,o=void 0===a||a,i=on(r),s=F.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;F.useEffect(function(){if(o){var e=function(e){yn(e,n)&&(s.isPointerDown=!0)},a=function(e){s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&r&&yn(e,n)&&(s.isPointerDown=!1,i(e))},l=function(e){s.ignoreEmulatedMouseEvents=!0,r&&s.isPointerDown&&yn(e,n)&&(s.isPointerDown=!1,i(e))},c=t.getOwnerDocument(n.current);return c.addEventListener("mousedown",e,!0),c.addEventListener("mouseup",a,!0),c.addEventListener("touchstart",e,!0),c.addEventListener("touchend",l,!0),function(){c.removeEventListener("mousedown",e,!0),c.removeEventListener("mouseup",a,!0),c.removeEventListener("touchstart",e,!0),c.removeEventListener("touchend",l,!0)}}},[r,n,i,s,o])}({enabled:N&&i,ref:_,handler:function(e){var t;null!=(t=w.current)&&t.contains(e.target)||I()}});var T,L,D,M,V=function(e){void 0===e&&(e={});var t=e.enabled,n=void 0===t||t,r=e.modifiers,a=e.placement,o=void 0===a?"bottom":a,i=e.strategy,s=void 0===i?"absolute":i,l=e.arrowPadding,c=void 0===l?8:l,u=e.eventListeners,d=void 0===u||u,f=e.offset,p=e.gutter,m=void 0===p?8:p,v=e.flip,h=void 0===v||v,y=e.boundary,g=void 0===y?"clippingParents":y,b=e.preventOverflow,E=void 0===b||b,x=e.matchWidth,_=e.direction,w=void 0===_?"ltr":_,k=F.useRef(null),S=F.useRef(null),C=F.useRef(null),O=function(e,t){var n,r;void 0===t&&(t="ltr");var a=(null==(n=ny[e])?void 0:n[t])||e;return"ltr"===t?a:null!=(r=ry[e])?r:a}(o,w),A=F.useRef(function(){}),N=F.useCallback(function(){var e;n&&k.current&&S.current&&(null==A.current||A.current(),C.current=Wh(k.current,S.current,{placement:O,modifiers:[ey,Kh,Gh,Hh({},Zh,{enabled:!!x}),Hh({name:"eventListeners"},(e=d,"object"==typeof e?{enabled:!0,options:Hh({},Yh,e)}:{enabled:e,options:Yh})),{name:"arrow",options:{padding:c}},{name:"offset",options:{offset:null!=f?f:[0,m]}},{name:"flip",enabled:!!h,options:{padding:8}},{name:"preventOverflow",enabled:!!E,options:{boundary:g}}].concat(null!=r?r:[]),strategy:s}),C.current.forceUpdate(),A.current=C.current.destroy)},[O,n,r,x,d,c,f,m,h,E,g,s]);F.useEffect(function(){return function(){var e;k.current||S.current||(null==(e=C.current)||e.destroy(),C.current=null)}},[]);var R=F.useCallback(function(e){k.current=e,N()},[N]),I=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Hh({},e,{ref:tn(R,t)})},[R]),P=F.useCallback(function(e){S.current=e,N()},[N]),T=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Hh({},e,{ref:tn(P,t),style:Hh({},e.style,{position:s,minWidth:x?void 0:"max-content",inset:"0 auto auto 0"})})},[s,P,x]),L=F.useCallback(function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,ay);return Hh({},n,{ref:t,"data-popper-arrow":"",style:oy(e)})},[]),D=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Hh({},e,{ref:t,"data-popper-arrow-inner":""})},[]);return{update:function(){var e;null==(e=C.current)||e.update()},forceUpdate:function(){var e;null==(e=C.current)||e.forceUpdate()},transformOrigin:$h.transformOrigin.varRef,referenceRef:R,popperRef:P,getPopperProps:T,getArrowProps:L,getArrowInnerProps:D,getReferenceProps:I}}(iy({},x,{enabled:N||E,placement:v,direction:g})),j=F.useState(-1),B=j[0],z=j[1];pn(function(){N||z(-1)},[N]),pn(function(){if(M&&!function(e){var n=e.current;if(!n)return!1;var r=t.getActiveElement(n);return!!r&&!t.contains(n,r)&&!!t.isTabbable(r)}(T)){var e=(null==D?void 0:D.current)||T.current;e&&t.focus(e,{nextTick:!0})}},[M=(L={focusRef:w,visible:N,shouldFocus:!0}).shouldFocus&&!L.visible,T=_,D=L.focusRef]);var W=function(e){var n=e.isOpen,r=e.ref,a=F.useState(n),o=a[0],i=a[1],s=F.useState(!1),l=s[0],c=s[1];return F.useEffect(function(){l||(i(n),c(!0))},[n,l,o]),sn("animationend",function(){i(n)},function(){return r.current}),{present:!(!n&&!o),onComplete:function(){var e,n=new(t.getOwnerWindow(r.current).CustomEvent)("animationend",{bubbles:!0});null==(e=r.current)||e.dispatchEvent(n)}}}({isOpen:N,ref:_}),H=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=fn(e);return F.useMemo(function(){return n.map(function(e){return e+"-"+a})},[a,n])}(n,"menu-button","menu-list"),U=H[0],$=H[1],q=F.useCallback(function(){R(),S()},[R,S]),Y=F.useRef(new Set([]));mn(function(){Y.current.forEach(function(e){return clearTimeout(e)}),Y.current.clear()});var Z=F.useCallback(function(){R(),C()},[C,R]),G=F.useCallback(function(){R(),O()},[R,O]),X=F.useCallback(function(){var e,n,r=t.getOwnerDocument(_.current),a=null==(e=_.current)?void 0:e.contains(r.activeElement);if(N&&!a){var o=null==(n=k.item(B))?void 0:n.node;o&&t.focus(o,{selectTextIfInput:!1,preventScroll:!1})}},[N,B,k]);return{openAndFocusMenu:q,openAndFocusFirstItem:Z,openAndFocusLastItem:G,onTransitionEnd:X,unstable__animationState:W,descendants:k,popper:V,buttonId:U,menuId:$,forceUpdate:V.forceUpdate,orientation:"vertical",isOpen:N,onToggle:P,onOpen:R,onClose:I,menuRef:_,buttonRef:w,focusedIndex:B,closeOnSelect:a,closeOnBlur:i,autoSelect:l,setFocusedIndex:z,isLazy:c,lazyBehavior:y}}(iy({},Ca(e),{direction:ka().direction})),o=a.descendants,i=sy(a,_y),s=F.useMemo(function(){return i},[i]);/*#__PURE__*/
63
- return F.createElement(py,{value:o},/*#__PURE__*/F.createElement(gy,{value:s},/*#__PURE__*/F.createElement(Py,{value:r},t.runIfFn(n,{isOpen:s.isOpen,onClose:s.onClose,forceUpdate:s.forceUpdate}))))};t.__DEV__&&(Ly.displayName="Menu");var Dy=/*#__PURE__*/La(function(e,t){var n=Ty();/*#__PURE__*/
64
- return F.createElement(Fa.button,iy({ref:t},e,{__css:iy({display:"inline-flex",appearance:"none",alignItems:"center",outline:0},n.button)}))}),My=/*#__PURE__*/La(function(e,n){var r=e.as,a=function(e,n){void 0===e&&(e={}),void 0===n&&(n=null);var r=by(),a=r.onToggle,o=r.popper,i=r.openAndFocusFirstItem,s=r.openAndFocusLastItem,l=F.useCallback(function(e){var n=t.normalizeEventKey(e),r={Enter:i,ArrowDown:i,ArrowUp:s}[n];r&&(e.preventDefault(),e.stopPropagation(),r(e))},[i,s]);return iy({},e,{ref:tn(r.buttonRef,n,o.referenceRef),id:r.buttonId,"data-active":t.dataAttr(r.isOpen),"aria-expanded":r.isOpen,"aria-haspopup":"menu","aria-controls":r.menuId,onClick:t.callAllHandlers(e.onClick,a),onKeyDown:t.callAllHandlers(e.onKeyDown,l)})}(sy(e,wy),n);/*#__PURE__*/
65
- return F.createElement(r||Dy,iy({},a,{className:t.cx("chakra-menu__menu-button",e.className)}),/*#__PURE__*/F.createElement(Fa.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0}},e.children))});t.__DEV__&&(My.displayName="MenuButton");var Vy={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},jy=function(e){var t=Qd;return"custom"in t&&"function"==typeof t.custom?t.custom(e):t(e)}(Fa.div),By=/*#__PURE__*/La(function(e,n){var r,a,o=e.rootProps,i=sy(e,ky),s=by(),l=s.isOpen,c=s.onTransitionEnd,u=s.unstable__animationState,d=function(e,n){void 0===e&&(e={}),void 0===n&&(n=null);var r=by();if(!r)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");var a=r.focusedIndex,o=r.setFocusedIndex,i=r.menuRef,s=r.isOpen,l=r.onClose,c=r.menuId,u=r.isLazy,d=r.lazyBehavior,f=r.unstable__animationState,p=my(),m=function(e){void 0===e&&(e={});var t=e.timeout,n=void 0===t?300:t,r=e.preventDefault,a=void 0===r?function(){return!0}:r,o=F.useState([]),i=o[0],s=o[1],l=F.useRef(),c=function(){l.current&&(clearTimeout(l.current),l.current=null)};return F.useEffect(function(){return c},[]),function(e){return function(t){if("Backspace"===t.key){var r=[].concat(i);return r.pop(),void s(r)}if(function(e){var t=e.key;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(t)){var o=i.concat(t.key);a(t)&&(t.preventDefault(),t.stopPropagation()),s(o),e(o.join("")),c(),l.current=setTimeout(function(){s([]),l.current=null},n)}}}}({preventDefault:function(e){return" "!==e.key&&Ey(e.target)}}),v=F.useCallback(function(e){var n=t.normalizeEventKey(e),r={Tab:function(e){return e.preventDefault()},Escape:l,ArrowDown:function(){var e=p.nextEnabled(a);e&&o(e.index)},ArrowUp:function(){var e=p.prevEnabled(a);e&&o(e.index)}},i=r[n];if(i)return e.preventDefault(),void i(e);var s=m(function(e){var n=t.getNextItemFromSearch(p.values(),e,function(e){var t,n;return null!=(t=null==e||null==(n=e.node)?void 0:n.textContent)?t:""},p.item(a));if(n){var r=p.indexOf(n.node);o(r)}});Ey(e.target)&&s(e)},[p,a,m,l,o]),h=F.useRef(!1);s&&(h.current=!0);var y=t.determineLazyBehavior({hasBeenSelected:h.current,isLazy:u,lazyBehavior:d,isSelected:f.present});return iy({},e,{ref:tn(i,n),children:y?e.children:null,tabIndex:-1,role:"menu",id:c,style:iy({},e.style,{transformOrigin:"var(--popper-transform-origin)"}),"aria-orientation":"vertical",onKeyDown:t.callAllHandlers(e.onKeyDown,v)})}(i,n),f=function(e){void 0===e&&(e={});var t=by();return t.popper.getPopperProps(iy({},e,{style:iy({visibility:t.isOpen?"visible":"hidden"},e.style)}))}(o),p=Ty();/*#__PURE__*/
66
- return F.createElement(Fa.div,iy({},f,{__css:{zIndex:null!=(r=e.zIndex)?r:null==(a=p.list)?void 0:a.zIndex}}),/*#__PURE__*/F.createElement(jy,iy({},d,{onUpdate:c,onAnimationComplete:t.callAll(u.onComplete,d.onAnimationComplete),className:t.cx("chakra-menu__menu-list",d.className),variants:Vy,initial:!1,animate:l?"enter":"exit",__css:iy({outline:0},p.list)})))});t.__DEV__&&(By.displayName="MenuList");var Fy=/*#__PURE__*/La(function(e,t){var n=e.type,r=sy(e,Sy),a=Ty(),o=r.as||n?null!=n?n:void 0:"button",i=F.useMemo(function(){return iy({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0},a.item)},[a.item]);/*#__PURE__*/
67
- return F.createElement(Fa.button,iy({ref:t,type:o},r,{__css:i}))}),zy=/*#__PURE__*/La(function(e,n){var r=e.icon,a=e.iconSpacing,o=void 0===a?"0.75rem":a,i=e.command,s=e.commandSpacing,l=void 0===s?"0.75rem":s,c=e.children,u=xy(sy(e,Cy),n),d=r||i?/*#__PURE__*/F.createElement("span",{style:{pointerEvents:"none",flex:1}},c):c;/*#__PURE__*/
68
- return F.createElement(Fy,iy({},u,{className:t.cx("chakra-menu__menuitem",u.className)}),r&&/*#__PURE__*/F.createElement(Yy,{fontSize:"0.8em",marginEnd:o},r),d,i&&/*#__PURE__*/F.createElement(qy,{marginStart:l},i))});t.__DEV__&&(zy.displayName="MenuItem");var Wy=function(e){/*#__PURE__*/
69
- return F.createElement("svg",iy({viewBox:"0 0 14 14",width:"1em",height:"1em"},e),/*#__PURE__*/F.createElement("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))},Hy=/*#__PURE__*/La(function(e,n){var r=e.icon,a=e.iconSpacing,o=void 0===a?"0.75rem":a,i=sy(e,Oy),s=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=e.type,r=void 0===n?"radio":n,a=e.isChecked;return iy({},xy(sy(e,uy),t),{role:"menuitem"+r,"aria-checked":a})}(i,n);/*#__PURE__*/
70
- return F.createElement(Fy,iy({},s,{className:t.cx("chakra-menu__menuitem-option",i.className)}),null!==r&&/*#__PURE__*/F.createElement(Yy,{fontSize:"0.8em",marginEnd:o,opacity:e.isChecked?1:0},r||/*#__PURE__*/F.createElement(Wy,null)),/*#__PURE__*/F.createElement("span",{style:{flex:1}},s.children))});Hy.id="MenuItemOption",t.__DEV__&&(Hy.displayName="MenuItemOption");var Uy=function(e){var n=e.className,r=e.title,a=function(e){void 0===e&&(e={});var n=e.children,r=e.type,a=void 0===r?"radio":r,o=e.value,i=e.defaultValue,s=e.onChange,l=sy(e,dy),c=un({defaultValue:null!=i?i:"radio"===a?"":[],value:o,onChange:s}),u=c[0],d=c[1],f=F.useCallback(function(e){if("radio"===a&&t.isString(u)&&d(e),"checkbox"===a&&t.isArray(u)){var n=u.includes(e)?t.removeItem(u,e):t.addItem(u,e);d(n)}},[u,d,a]);return iy({},l,{children:rn(n).map(function(e){if("MenuItemOption"!==e.type.id)return e;var t="radio"===a?e.props.value===u:u.includes(e.props.value);/*#__PURE__*/
71
- return F.cloneElement(e,{type:a,onClick:function(t){f(e.props.value),null==e.props.onClick||e.props.onClick(t)},isChecked:t})})})}(sy(e,Ay));/*#__PURE__*/
72
- return F.createElement($y,iy({title:r,className:t.cx("chakra-menu__option-group",n)},a))};t.__DEV__&&(Uy.displayName="MenuOptionGroup");var $y=/*#__PURE__*/La(function(e,n){var r=e.title,a=e.children,o=e.className,i=sy(e,Ny),s=t.cx("chakra-menu__group__title",o),l=Ty();/*#__PURE__*/
73
- return F.createElement("div",{ref:n,className:"chakra-menu__group",role:"group"},r&&/*#__PURE__*/F.createElement(Fa.p,iy({className:s},i,{__css:l.groupTitle}),r),a)});t.__DEV__&&($y.displayName="MenuGroup");var qy=/*#__PURE__*/La(function(e,t){var n=Ty();/*#__PURE__*/
74
- return F.createElement(Fa.span,iy({ref:t},e,{__css:n.command,className:"chakra-menu__command"}))});t.__DEV__&&(qy.displayName="MenuCommand");var Yy=function(e){var n=e.className,r=e.children,a=sy(e,Ry),o=F.Children.only(r),i=/*#__PURE__*/F.isValidElement(o)?/*#__PURE__*/F.cloneElement(o,{focusable:"false","aria-hidden":!0,className:t.cx("chakra-menu__icon",o.props.className)}):null,s=t.cx("chakra-menu__icon-wrapper",n);/*#__PURE__*/
75
- return F.createElement(Fa.span,iy({className:s},a,{__css:{flexShrink:0}}),i)};function Zy(){return Zy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zy.apply(this,arguments)}function Gy(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(Yy.displayName="MenuIcon");var Xy=function(e){/*#__PURE__*/
76
- return F.createElement(Ka,Zy({viewBox:"0 0 24 24"},e),/*#__PURE__*/F.createElement("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"}))},Ky=function(e){/*#__PURE__*/
77
- return F.createElement(Ka,Zy({viewBox:"0 0 24 24"},e),/*#__PURE__*/F.createElement("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"}))};function Jy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qy(e,n,r,a){F.useEffect(function(){if(e.current&&a){var o=t.getOwnerWindow(e.current),i=Array.isArray(n)?n:[n],s=new o.MutationObserver(function(e){for(var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Jy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jy(e,t):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(t=n()).done;){var a=t.value;"attributes"===a.type&&a.attributeName&&i.includes(a.attributeName)&&r(a)}});return s.observe(e.current,{attributes:!0,attributeFilter:i}),function(){return s.disconnect()}}})}var eg=["focusInputOnChange","clampValueOnBlur","keepWithinRange","min","max","step","isReadOnly","isDisabled","isRequired","isInvalid","pattern","inputMode","allowMouseWheel","id","onChange","precision","name","aria-describedby","aria-label","aria-labelledby","onFocus","onBlur","onInvalid","getAriaValueText","isValidCharacter","format","parse"],tg=/^[Ee0-9+\-.]$/;function ng(e){return tg.test(e)}var rg=["htmlProps"],ag=Sa("NumberInput"),og=ag[0],ig=ag[1],sg=nn({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within <NumberInput />"}),lg=sg[0],cg=sg[1],ug=/*#__PURE__*/La(function(e,n){var r=ja("NumberInput",e),a=function(e){void 0===e&&(e={});var n=e.focusInputOnChange,r=void 0===n||n,a=e.clampValueOnBlur,o=void 0===a||a,i=e.keepWithinRange,s=void 0===i||i,l=e.min,c=void 0===l?t.minSafeInteger:l,u=e.max,d=void 0===u?t.maxSafeInteger:u,f=e.step,p=void 0===f?1:f,m=e.isReadOnly,v=e.isDisabled,h=e.isRequired,y=e.isInvalid,g=e.pattern,b=void 0===g?"[0-9]*(.[0-9]+)?":g,E=e.inputMode,x=void 0===E?"decimal":E,_=e.allowMouseWheel,w=e.id,k=e.name,S=e["aria-describedby"],C=e["aria-label"],O=e["aria-labelledby"],A=e.onFocus,N=e.onBlur,R=e.onInvalid,I=e.getAriaValueText,P=e.isValidCharacter,T=e.format,L=e.parse,D=Gy(e,eg),M=on(A),V=on(N),j=on(R),B=on(null!=P?P:ng),z=on(I),W=lm(e),H=W.update,U=W.increment,$=W.decrement,q=ln(),Y=q[0],Z=q[1],G=!(m||v),X=F.useRef(null),K=F.useRef(null),J=F.useRef(null),Q=F.useRef(null),ee=F.useCallback(function(e){return e.split("").filter(B).join("")},[B]),te=F.useCallback(function(e){var t;return null!=(t=null==L?void 0:L(e))?t:e},[L]),ne=F.useCallback(function(e){var t;return(null!=(t=null==T?void 0:T(e))?t:e).toString()},[T]);pn(function(){(W.valueAsNumber>d||W.valueAsNumber<c)&&(null==j||j("rangeOverflow",ne(W.value),W.valueAsNumber))},[W.valueAsNumber,W.value,ne,j]),an(function(){if(X.current&&X.current.value!=W.value){var e=te(X.current.value);W.setValue(ee(e))}},[te,ee]);var re=F.useCallback(function(e){void 0===e&&(e=p),G&&U(e)},[U,G,p]),ae=F.useCallback(function(e){void 0===e&&(e=p),G&&$(e)},[$,G,p]),oe=function(e,t){var n,r,a=F.useState(!1),o=a[0],i=a[1],s=F.useState(null),l=s[0],c=s[1],u=F.useState(!0),d=u[0],f=u[1],p=F.useRef(null),m=function(){return clearTimeout(p.current)};n=o?50:null,r=on(function(){"increment"===l&&e(),"decrement"===l&&t()}),F.useEffect(function(){var e=null;return null!==n&&(e=window.setInterval(function(){return r()},n)),function(){e&&window.clearInterval(e)}},[n,r]);var v=F.useCallback(function(){d&&e(),p.current=setTimeout(function(){f(!1),i(!0),c("increment")},300)},[e,d]),h=F.useCallback(function(){d&&t(),p.current=setTimeout(function(){f(!1),i(!0),c("decrement")},300)},[t,d]),y=F.useCallback(function(){f(!0),i(!1),m()},[]);return mn(m),{up:v,down:h,stop:y,isSpinning:o}}(re,ae);Qy(J,"disabled",oe.stop,oe.isSpinning),Qy(Q,"disabled",oe.stop,oe.isSpinning);var ie=F.useCallback(function(e){if(!e.nativeEvent.isComposing){var t=te(e.currentTarget.value);H(ee(t)),K.current={start:e.currentTarget.selectionStart,end:e.currentTarget.selectionEnd}}},[H,ee,te]),se=F.useCallback(function(e){var t,n,r;null==M||M(e),K.current&&(e.target.selectionStart=null!=(t=K.current.start)?t:null==(n=e.currentTarget.value)?void 0:n.length,e.currentTarget.selectionEnd=null!=(r=K.current.end)?r:e.currentTarget.selectionStart)},[M]),le=F.useCallback(function(e){if(!e.nativeEvent.isComposing){(function(e,t){return null==e.key||!(1===e.key.length&&!(e.ctrlKey||e.altKey||e.metaKey))||t(e.key)})(e,B)||e.preventDefault();var n=ce(e)*p,r={ArrowUp:function(){return re(n)},ArrowDown:function(){return ae(n)},Home:function(){return H(c)},End:function(){return H(d)}}[t.normalizeEventKey(e)];r&&(e.preventDefault(),r(e))}},[B,p,re,ae,H,c,d]),ce=function(e){var t=1;return(e.metaKey||e.ctrlKey)&&(t=.1),e.shiftKey&&(t=10),t},ue=F.useMemo(function(){var e=null==z?void 0:z(W.value);return t.isNull(e)?W.value.toString()||void 0:e},[W.value,z]),de=F.useCallback(function(){var e=W.value;""!==e&&(W.valueAsNumber<c&&(e=c),W.valueAsNumber>d&&(e=d),W.cast(e))},[W,d,c]),fe=F.useCallback(function(){Z.off(),o&&de()},[o,Z,de]),pe=F.useCallback(function(){r&&t.focus(X.current,{nextTick:!0})},[r]),me=F.useCallback(function(e){e.preventDefault(),oe.up(),pe()},[pe,oe]),ve=F.useCallback(function(e){e.preventDefault(),oe.down(),pe()},[pe,oe]);sn("wheel",function(e){var n=t.getOwnerDocument(X.current);if(_&&n.activeElement===X.current){e.preventDefault();var r=ce(e)*p,a=Math.sign(e.deltaY);-1===a?re(r):1===a&&ae(r)}},X.current,{passive:!1});var he=F.useCallback(function(e,n){void 0===e&&(e={}),void 0===n&&(n=null);var r=v||s&&W.isAtMax;return Zy({},e,{ref:tn(n,J),role:"button",tabIndex:-1,onPointerDown:t.callAllHandlers(e.onPointerDown,function(e){r||me(e)}),onPointerLeave:t.callAllHandlers(e.onPointerLeave,oe.stop),onPointerUp:t.callAllHandlers(e.onPointerUp,oe.stop),disabled:r,"aria-disabled":t.ariaAttr(r)})},[W.isAtMax,s,me,oe.stop,v]),ye=F.useCallback(function(e,n){void 0===e&&(e={}),void 0===n&&(n=null);var r=v||s&&W.isAtMin;return Zy({},e,{ref:tn(n,Q),role:"button",tabIndex:-1,onPointerDown:t.callAllHandlers(e.onPointerDown,function(e){r||ve(e)}),onPointerLeave:t.callAllHandlers(e.onPointerLeave,oe.stop),onPointerUp:t.callAllHandlers(e.onPointerUp,oe.stop),disabled:r,"aria-disabled":t.ariaAttr(r)})},[W.isAtMin,s,ve,oe.stop,v]),ge=F.useCallback(function(e,n){var r,a,o,i;return void 0===e&&(e={}),void 0===n&&(n=null),Zy({name:k,inputMode:x,type:"text",pattern:b,"aria-labelledby":O,"aria-label":C,"aria-describedby":S,id:w,disabled:v},e,{readOnly:null!=(r=e.readOnly)?r:m,"aria-readonly":null!=(a=e.readOnly)?a:m,"aria-required":null!=(o=e.required)?o:h,required:null!=(i=e.required)?i:h,ref:tn(X,n),value:ne(W.value),role:"spinbutton","aria-valuemin":c,"aria-valuemax":d,"aria-valuenow":Number.isNaN(W.valueAsNumber)?void 0:W.valueAsNumber,"aria-invalid":t.ariaAttr(null!=y?y:W.isOutOfRange),"aria-valuetext":ue,autoComplete:"off",autoCorrect:"off",onChange:t.callAllHandlers(e.onChange,ie),onKeyDown:t.callAllHandlers(e.onKeyDown,le),onFocus:t.callAllHandlers(e.onFocus,se,Z.on),onBlur:t.callAllHandlers(e.onBlur,V,fe)})},[k,x,b,O,C,ne,S,w,v,h,m,y,W.value,W.valueAsNumber,W.isOutOfRange,c,d,ue,ie,le,se,Z.on,V,fe]);return{value:ne(W.value),valueAsNumber:W.valueAsNumber,isFocused:Y,isDisabled:v,isReadOnly:m,getIncrementButtonProps:he,getDecrementButtonProps:ye,getInputProps:ge,htmlProps:D}}(Sp(Ca(e))),o=a.htmlProps,i=Gy(a,rg),s=F.useMemo(function(){return i},[i]);/*#__PURE__*/
78
- return F.createElement(lg,{value:s},/*#__PURE__*/F.createElement(og,{value:r},/*#__PURE__*/F.createElement(Fa.div,Zy({},o,{ref:n,className:t.cx("chakra-numberinput",e.className),__css:Zy({position:"relative",zIndex:0},r.root)}))))});t.__DEV__&&(ug.displayName="NumberInput");var dg=/*#__PURE__*/La(function(e,t){var n=ig();/*#__PURE__*/
79
- return F.createElement(Fa.div,Zy({"aria-hidden":!0,ref:t},e,{__css:Zy({display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1},n.stepperGroup)}))});t.__DEV__&&(dg.displayName="NumberInputStepper");var fg=/*#__PURE__*/La(function(e,n){var r=(0,cg().getInputProps)(e,n),a=ig();/*#__PURE__*/
80
- return F.createElement(Fa.input,Zy({},r,{className:t.cx("chakra-numberinput__field",e.className),__css:Zy({width:"100%"},a.field)}))});t.__DEV__&&(fg.displayName="NumberInputField");var pg=Fa("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),mg=/*#__PURE__*/La(function(e,t){var n,r=ig(),a=(0,cg().getDecrementButtonProps)(e,t);/*#__PURE__*/
81
- return F.createElement(pg,Zy({},a,{__css:r.stepper}),null!=(n=e.children)?n:/*#__PURE__*/F.createElement(Xy,null))});t.__DEV__&&(mg.displayName="NumberDecrementStepper");var vg=/*#__PURE__*/La(function(e,t){var n,r=(0,cg().getIncrementButtonProps)(e,t),a=ig();/*#__PURE__*/
82
- return F.createElement(pg,Zy({},r,{__css:a.stepper}),null!=(n=e.children)?n:/*#__PURE__*/F.createElement(Ky,null))});function hg(){return hg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hg.apply(this,arguments)}function yg(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(vg.displayName="NumberIncrementStepper");var gg=["index"],bg=qf(),Eg=bg[0],xg=bg[2],_g=bg[3],wg=nn({name:"PinInputContext",errorMessage:"usePinInputContext: `context` is undefined. Seems you forgot to all pin input fields within `<PinInput />`"}),kg=wg[0],Sg=wg[1],Cg=function(e){return null==e?void 0:e.split("")};function Og(e,t){return("alphanumeric"===t?/^[a-zA-Z0-9]+$/i:/^[0-9]+$/).test(e)}var Ag=["children"],Ng=["descendants"],Rg=function(e){var n=Va("PinInput",e),r=Ca(e),a=r.children,o=function(e){void 0===e&&(e={});var n=e.autoFocus,r=e.value,a=e.defaultValue,o=e.onChange,i=e.onComplete,s=e.placeholder,l=void 0===s?"○":s,c=e.manageFocus,u=void 0===c||c,d=e.otp,f=void 0!==d&&d,p=e.id,m=e.isDisabled,v=e.isInvalid,h=e.type,y=void 0===h?"number":h,g=e.mask,b=fn(),E=null!=p?p:"pin-input-"+b,x=xg(),_=F.useState(!0),w=_[0],k=_[1],S=F.useState(-1),C=S[0],O=S[1],A=un({defaultValue:Cg(a)||[],value:Cg(r),onChange:function(e){return null==o?void 0:o(e.join(""))}}),N=A[0],R=A[1];F.useEffect(function(){if(n){var e=x.first();e&&t.focus(e.node,{nextTick:!0})}},[x]);var I=F.useCallback(function(e){if(w&&u){var n=x.next(e,!1);n&&t.focus(n.node,{nextTick:!0})}},[x,w,u]),P=F.useCallback(function(e,t){var n=[].concat(N);n[t]=e,R(n),""!==e&&n.length===x.count()&&n.every(function(e){return null!=e&&""!==e})?null==i||i(n.join("")):I(t)},[N,R,I,i,x]),T=F.useCallback(function(){var e=Array(x.count()).fill("");R(e);var n=x.first();n&&t.focus(n.node)},[x,R]),L=F.useCallback(function(e,t){var n=t;return(null==e?void 0:e.length)>0&&(e[0]===t.charAt(0)?n=t.charAt(1):e[0]===t.charAt(1)&&(n=t.charAt(0))),n},[]),D=F.useCallback(function(e){var n=e.index,r=yg(e,gg),a=C===n;return hg({"aria-label":"Please enter your pin code",inputMode:"number"===y?"numeric":"text",type:g?"password":"number"===y?"tel":"text"},r,{id:E+"-"+n,disabled:m,"aria-invalid":t.ariaAttr(v),onChange:t.callAllHandlers(r.onChange,function(e){var t=e.target.value,r=L(N[n],t);if(""!==r)if(t.length>2){if(Og(t,y)){var a=t.split("").filter(function(e,t){return t<x.count()});R(a),a.length===x.count()&&(null==i||i(a.join("")))}}else Og(r,y)&&P(r,n),k(!0);else P("",n)}),onKeyDown:t.callAllHandlers(r.onKeyDown,function(e){if("Backspace"===e.key&&u)if(""===e.target.value){var r=x.prev(n,!1);r&&(P("",n-1),t.focus(r.node),k(!0))}else k(!1)}),onFocus:t.callAllHandlers(r.onFocus,function(){O(n)}),onBlur:t.callAllHandlers(r.onBlur,function(){O(-1)}),value:N[n]||"",autoComplete:f?"one-time-code":"off",placeholder:a?"":l})},[x,C,L,E,m,g,v,u,i,f,l,P,R,y,N]);return{getInputProps:D,id:E,descendants:x,values:N,setValue:P,setValues:R,clear:T}}(yg(r,Ag)),i=o.descendants,s=yg(o,Ng),l=rn(a).map(function(e){/*#__PURE__*/
83
- return F.cloneElement(e,{__css:n})});/*#__PURE__*/
84
- return F.createElement(Eg,{value:i},/*#__PURE__*/F.createElement(kg,{value:s},l))};t.__DEV__&&(Rg.displayName="PinInput");var Ig=/*#__PURE__*/La(function(e,n){var r=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=Sg().getInputProps,r=_g(),a=r.index;return n(hg({},e,{ref:tn(r.register,t),index:a}))}(e,n);/*#__PURE__*/
85
- return F.createElement(Fa.input,hg({},r,{className:t.cx("chakra-pin-input",e.className)}))});function Pg(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}function Tg(){return Tg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tg.apply(this,arguments)}t.__DEV__&&(Ig.displayName="PinInputField");var Lg=["onChange","value","defaultValue","name","isDisabled","isFocusable","isNative"],Dg=["colorScheme","size","variant","children","className","isDisabled","isFocusable"],Mg=nn({name:"RadioGroupContext",strict:!1}),Vg=Mg[0],jg=Mg[1],Bg=/*#__PURE__*/La(function(e,n){var r=e.colorScheme,a=e.size,o=e.variant,i=e.children,s=e.className,l=e.isDisabled,c=e.isFocusable,u=function(e){void 0===e&&(e={});var n=e.onChange,r=e.value,a=e.defaultValue,o=e.name,i=e.isDisabled,s=e.isFocusable,l=e.isNative,c=Pg(e,Lg),u=F.useState(a||""),d=u[1],f=cn(r,u[0]),p=f[0],m=f[1],v=F.useRef(null),h=F.useCallback(function(){var e=v.current;if(e){var t="input:not(:disabled):checked",n=e.querySelector(t);if(n)n.focus();else{var r=e.querySelector(t="input:not(:disabled)");null==r||r.focus()}}},[]),y=fn(void 0,"radio"),g=o||y,b=F.useCallback(function(e){var r=t.isInputEvent(e)?e.target.value:e;p||d(r),null==n||n(String(r))},[n,p]),E=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Tg({},e,{ref:tn(t,v),role:"radiogroup"})},[]),x=F.useCallback(function(e,t){var n;return void 0===e&&(e={}),void 0===t&&(t=null),Tg({},e,((n={ref:t,name:g})[l?"checked":"isChecked"]=null!=m?e.value===m:void 0,n.onChange=b,n["data-radiogroup"]=!0,n))},[l,g,b,m]);return{getRootProps:E,getRadioProps:x,name:g,ref:v,focus:h,setValue:d,value:m,onChange:b,isDisabled:i,isFocusable:s,htmlProps:c}}(Pg(e,Dg)),d=u.value,f=u.onChange,p=u.getRootProps,m=u.name,v=u.htmlProps,h=F.useMemo(function(){return{name:m,size:a,onChange:f,colorScheme:r,value:d,variant:o,isDisabled:l,isFocusable:c}},[m,a,f,r,d,o,l,c]),y=p(v,n),g=t.cx("chakra-radio-group",s);/*#__PURE__*/
86
- return F.createElement(Vg,{value:h},/*#__PURE__*/F.createElement(Fa.div,Tg({},y,{className:g}),i))});t.__DEV__&&(Bg.displayName="RadioGroup");var Fg=["defaultChecked","isChecked","isFocusable","isDisabled","isReadOnly","isRequired","onChange","isInvalid","name","value","id","data-radiogroup","aria-describedby"];function zg(e){e.preventDefault(),e.stopPropagation()}var Wg=["spacing","children","isDisabled","isFocusable","inputProps"],Hg=/*#__PURE__*/La(function(e,n){var r,a=jg(),o=e.onChange,i=e.value,s=ja("Radio",Tg({},a,e)),l=Ca(e),c=l.spacing,u=void 0===c?"0.5rem":c,d=l.children,f=l.isDisabled,p=void 0===f?null==a?void 0:a.isDisabled:f,m=l.isFocusable,v=void 0===m?null==a?void 0:a.isFocusable:m,h=l.inputProps,y=Pg(l,Wg),g=e.isChecked;null!=(null==a?void 0:a.value)&&null!=i&&(g=a.value===i);var b=o;null!=a&&a.onChange&&null!=i&&(b=t.callAll(a.onChange,o));var E=function(e){void 0===e&&(e={});var n=e.defaultChecked,r=e.isChecked,a=e.isFocusable,o=e.isDisabled,i=e.isReadOnly,s=e.isRequired,l=e.onChange,c=e.isInvalid,u=e.name,d=e.value,f=e.id,p=e["data-radiogroup"],m=e["aria-describedby"],v=Pg(e,Fg),h=fn(void 0,"radio"),y=bp(),g=jg(),b=!y||g||p?h:y.id;b=null!=f?f:b;var E=null!=o?o:null==y?void 0:y.isDisabled,x=null!=i?i:null==y?void 0:y.isReadOnly,_=null!=s?s:null==y?void 0:y.isRequired,w=null!=c?c:null==y?void 0:y.isInvalid,k=ln(),S=k[0],C=k[1],O=ln(),A=O[0],N=O[1],R=ln(),I=R[0],P=R[1],T=F.useState(Boolean(n)),L=T[1],D=cn(r,T[0]),M=D[0],V=D[1],j=F.useCallback(function(e){x||E?e.preventDefault():(M||L(e.target.checked),null==l||l(e))},[M,E,x,l]),B=F.useCallback(function(e){" "===e.key&&P.on()},[P]),z=F.useCallback(function(e){" "===e.key&&P.off()},[P]),W=F.useCallback(function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),Tg({},e,{ref:n,"data-active":t.dataAttr(I),"data-hover":t.dataAttr(A),"data-disabled":t.dataAttr(E),"data-invalid":t.dataAttr(w),"data-checked":t.dataAttr(V),"data-focus":t.dataAttr(S),"data-readonly":t.dataAttr(x),"aria-hidden":!0,onMouseDown:t.callAllHandlers(e.onMouseDown,P.on),onMouseUp:t.callAllHandlers(e.onMouseUp,P.off),onMouseEnter:t.callAllHandlers(e.onMouseEnter,N.on),onMouseLeave:t.callAllHandlers(e.onMouseLeave,N.off)})},[I,A,E,w,V,S,x,P.on,P.off,N.on,N.off]),H=null!=y?y:{},U=H.onFocus,$=H.onBlur,q=F.useCallback(function(e,n){void 0===e&&(e={}),void 0===n&&(n=null);var r=E&&!a;return Tg({},e,{id:b,ref:n,type:"radio",name:u,value:d,onChange:t.callAllHandlers(e.onChange,j),onBlur:t.callAllHandlers($,e.onBlur,C.off),onFocus:t.callAllHandlers(U,e.onFocus,C.on),onKeyDown:t.callAllHandlers(e.onKeyDown,B),onKeyUp:t.callAllHandlers(e.onKeyUp,z),checked:V,disabled:r,readOnly:x,required:_,"aria-invalid":t.ariaAttr(w),"aria-disabled":t.ariaAttr(r),"aria-required":t.ariaAttr(_),"data-readonly":t.dataAttr(x),"aria-describedby":m,style:za})},[E,a,b,u,d,j,$,C,U,B,z,V,x,_,w,m]);return{state:{isInvalid:w,isFocused:S,isChecked:V,isActive:I,isHovered:A,isDisabled:E,isReadOnly:x,isRequired:_},getCheckboxProps:W,getInputProps:q,getLabelProps:function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),Tg({},e,{ref:n,onMouseDown:t.callAllHandlers(e.onMouseDown,zg),onTouchStart:t.callAllHandlers(e.onTouchStart,zg),"data-disabled":t.dataAttr(E),"data-checked":t.dataAttr(V),"data-invalid":t.dataAttr(w)})},getRootProps:function(e,n){return void 0===n&&(n=null),Tg({},e,{ref:n,"data-disabled":t.dataAttr(E),"data-checked":t.dataAttr(V),"data-invalid":t.dataAttr(w)})},htmlProps:v}}(Tg({},y,{isChecked:g,isFocusable:v,isDisabled:p,onChange:b,name:null!=(r=null==e?void 0:e.name)?r:null==a?void 0:a.name})),x=E.getInputProps,_=E.getCheckboxProps,w=E.getLabelProps,k=E.getRootProps,S=t.split(E.htmlProps,Mr),C=S[0],O=_(S[1]),A=x(h,n),N=w(),R=Object.assign({},C,k()),I=Tg({display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative"},s.container),P=Tg({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},s.control),T=Tg({userSelect:"none",marginStart:u},s.label);/*#__PURE__*/
87
- return F.createElement(Fa.label,Tg({className:"chakra-radio"},R,{__css:I}),/*#__PURE__*/F.createElement("input",Tg({className:"chakra-radio__input"},A)),/*#__PURE__*/F.createElement(Fa.span,Tg({className:"chakra-radio__control"},O,{__css:P})),d&&/*#__PURE__*/F.createElement(Fa.span,Tg({className:"chakra-radio__label"},N,{__css:T}),d))});function Ug(){return Ug=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ug.apply(this,arguments)}function $g(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(Hg.displayName="Radio");var qg=["children","placeholder","className"],Yg=["rootProps","placeholder","icon","color","height","h","minH","minHeight","iconColor","iconSize"],Zg=["children"],Gg=/*#__PURE__*/La(function(e,n){var r=e.children,a=e.placeholder,o=e.className,i=$g(e,qg);/*#__PURE__*/
88
- return F.createElement(Fa.select,Ug({},i,{ref:n,className:t.cx("chakra-select",o)}),a&&/*#__PURE__*/F.createElement("option",{value:""},a),r)});t.__DEV__&&(Gg.displayName="SelectField");var Xg=/*#__PURE__*/La(function(e,n){var r=ja("Select",e),a=Ca(e),o=a.rootProps,i=a.placeholder,s=a.icon,l=a.color,c=a.height,u=a.h,d=a.minH,f=a.minHeight,p=a.iconColor,m=a.iconSize,v=$g(a,Yg),h=t.split(v,Mr),y=h[0],g=kp(h[1]),b={width:"100%",height:"fit-content",position:"relative",color:l},E=t.mergeWith({paddingEnd:"2rem"},r.field,{_focus:{zIndex:"unset"}});/*#__PURE__*/
89
- return F.createElement(Fa.div,Ug({className:"chakra-select__wrapper",__css:b},y,o),/*#__PURE__*/F.createElement(Gg,Ug({ref:n,height:null!=u?u:c,minH:null!=d?d:f,placeholder:i},g,{__css:E}),e.children),/*#__PURE__*/F.createElement(Qg,Ug({"data-disabled":t.dataAttr(g.disabled)},(p||l)&&{color:p||l},{__css:r.icon},m&&{fontSize:m}),s))});t.__DEV__&&(Xg.displayName="Select");var Kg=function(e){/*#__PURE__*/
90
- return F.createElement("svg",Ug({viewBox:"0 0 24 24"},e),/*#__PURE__*/F.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}))},Jg=Fa("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),Qg=function(e){var t=e.children,n=void 0===t?/*#__PURE__*/F.createElement(Kg,null):t,r=$g(e,Zg),a=/*#__PURE__*/F.cloneElement(n,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});/*#__PURE__*/
91
- return F.createElement(Jg,Ug({},r,{className:"chakra-select__icon-wrapper"}),/*#__PURE__*/F.isValidElement(n)?a:null)};function eb(){return eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eb.apply(this,arguments)}t.__DEV__&&(Qg.displayName="SelectIcon");var tb=["spacing","children"],nb=/*#__PURE__*/La(function(e,n){var r=ja("Switch",e),a=Ca(e),o=a.spacing,i=void 0===o?"0.5rem":o,s=a.children,l=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(a,tb),c=nm(l),u=c.state,d=c.getInputProps,f=c.getCheckboxProps,p=c.getRootProps,m=c.getLabelProps,v=F.useMemo(function(){return eb({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0},r.container)},[r.container]),h=F.useMemo(function(){return eb({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer"},r.track)},[r.track]),y=F.useMemo(function(){return eb({userSelect:"none",marginStart:i},r.label)},[i,r.label]);/*#__PURE__*/
92
- return F.createElement(Fa.label,eb({},p(),{className:t.cx("chakra-switch",e.className),__css:v}),/*#__PURE__*/F.createElement("input",eb({className:"chakra-switch__input"},d({},n))),/*#__PURE__*/F.createElement(Fa.span,eb({},f(),{className:"chakra-switch__track",__css:h}),/*#__PURE__*/F.createElement(Fa.span,{__css:r.thumb,className:"chakra-switch__thumb","data-checked":t.dataAttr(u.isChecked),"data-hover":t.dataAttr(u.isHovered)})),s&&/*#__PURE__*/F.createElement(Fa.span,eb({className:"chakra-switch__label"},m(),{__css:y}),s))});function rb(){return rb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rb.apply(this,arguments)}t.__DEV__&&(nb.displayName="Switch");var ab=["className","rows"],ob=["h","minH","height","minHeight"],ib=/*#__PURE__*/La(function(e,n){var r=Va("Textarea",e),a=Ca(e),o=a.className,i=a.rows,s=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(a,ab),l=kp(s),c=i?t.omit(r,ob):r;/*#__PURE__*/
93
- return F.createElement(Fa.textarea,rb({ref:n,rows:i},l,{className:t.cx("chakra-textarea",o),__css:c}))});function sb(){return sb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sb.apply(this,arguments)}t.__DEV__&&(ib.displayName="Textarea");var lb=["hideStepper","incrementIcon","decrementIcon"],cb=La(function(e,t){var n=e.hideStepper,r=e.incrementIcon,a=e.decrementIcon,o=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,lb);return F.createElement(ug,sb({},o,{ref:t}),/*#__PURE__*/F.createElement(fg,null),!n&&/*#__PURE__*/F.createElement(dg,null,/*#__PURE__*/F.createElement(vg,{children:r}),/*#__PURE__*/F.createElement(mg,{children:a})))});function ub(){return ub=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ub.apply(this,arguments)}cb.defaultProps={hideStepper:!1},t.__DEV__&&(cb.displayName="NumberInput");var db=["as","viewBox","color","focusable","children","className","__css"],fb={path:/*#__PURE__*/F.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/*#__PURE__*/F.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),/*#__PURE__*/F.createElement("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),/*#__PURE__*/F.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},pb=/*#__PURE__*/La(function(e,n){var r=e.as,a=e.viewBox,o=e.color,i=void 0===o?"currentColor":o,s=e.focusable,l=void 0!==s&&s,c=e.children,u=e.className,d=e.__css,f=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,db),p={ref:n,focusable:l,className:t.cx("chakra-icon",u),__css:ub({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i},d)},m=null!=a?a:fb.viewBox;if(r&&"string"!=typeof r)/*#__PURE__*/
94
- return F.createElement(Fa.svg,ub({as:r},p,f));var v=null!=c?c:fb.path;/*#__PURE__*/
95
- return F.createElement(Fa.svg,ub({verticalAlign:"middle",viewBox:m},p,f),v)});function mb(e){var n=e.viewBox,r=void 0===n?"0 0 24 24":n,a=e.d,o=e.displayName,i=e.defaultProps,s=void 0===i?{}:i,l=F.Children.toArray(e.path),c=/*#__PURE__*/La(function(e,t){/*#__PURE__*/
96
- return F.createElement(pb,ub({ref:t,viewBox:r},s,e),l.length?l:/*#__PURE__*/F.createElement("path",{fill:"currentColor",d:a}))});return t.__DEV__&&(c.displayName=o),c}t.__DEV__&&(pb.displayName="Icon"),mb({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"}),mb({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"}),mb({d:"M23.414,20.591l-4.645-4.645a10.256,10.256,0,1,0-2.828,2.829l4.645,4.644a2.025,2.025,0,0,0,2.828,0A2,2,0,0,0,23.414,20.591ZM10.25,3.005A7.25,7.25,0,1,1,3,10.255,7.258,7.258,0,0,1,10.25,3.005Z",displayName:"Search2Icon"}),mb({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"}),mb({displayName:"SunIcon",path:/*#__PURE__*/F.createElement("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor"},/*#__PURE__*/F.createElement("circle",{cx:"12",cy:"12",r:"5"}),/*#__PURE__*/F.createElement("path",{d:"M12 1v2"}),/*#__PURE__*/F.createElement("path",{d:"M12 21v2"}),/*#__PURE__*/F.createElement("path",{d:"M4.22 4.22l1.42 1.42"}),/*#__PURE__*/F.createElement("path",{d:"M18.36 18.36l1.42 1.42"}),/*#__PURE__*/F.createElement("path",{d:"M1 12h2"}),/*#__PURE__*/F.createElement("path",{d:"M21 12h2"}),/*#__PURE__*/F.createElement("path",{d:"M4.22 19.78l1.42-1.42"}),/*#__PURE__*/F.createElement("path",{d:"M18.36 5.64l1.42-1.42"}))});var vb=mb({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"});mb({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:/*#__PURE__*/F.createElement("path",{fill:"currentColor",d:"M14 9h-3V6c0-.55-.45-1-1-1s-1 .45-1 1v3H6c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1z",fillRule:"evenodd"})}),mb({viewBox:"0 0 14 14",d:"M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z",displayName:"SettingsIcon"}),mb({displayName:"CheckCircleIcon",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"}),mb({d:"M19.5,9.5h-.75V6.75a6.75,6.75,0,0,0-13.5,0V9.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5ZM7.75,6.75a4.25,4.25,0,0,1,8.5,0V9a.5.5,0,0,1-.5.5H8.25a.5.5,0,0,1-.5-.5Z",displayName:"LockIcon"}),mb({d:"M19.5,9.5h-.75V6.75A6.751,6.751,0,0,0,5.533,4.811a1.25,1.25,0,1,0,2.395.717A4.251,4.251,0,0,1,16.25,6.75V9a.5.5,0,0,1-.5.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5Z",displayName:"UnlockIcon"});var hb=mb({displayName:"ViewIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z"}),/*#__PURE__*/F.createElement("circle",{cx:"12",cy:"12",r:"2"}))}),yb=mb({displayName:"ViewOffIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M23.2,10.549a20.954,20.954,0,0,0-4.3-3.6l4-3.995a1,1,0,1,0-1.414-1.414l-.018.018a.737.737,0,0,1-.173.291l-19.5,19.5c-.008.007-.018.009-.026.017a1,1,0,0,0,1.631,1.088l4.146-4.146a11.26,11.26,0,0,0,4.31.939h.3c4.256,0,8.489-2.984,11.051-5.8A2.171,2.171,0,0,0,23.2,10.549ZM16.313,13.27a4.581,4.581,0,0,1-3,3.028,4.3,4.3,0,0,1-3.1-.19.253.253,0,0,1-.068-.407l5.56-5.559a.252.252,0,0,1,.407.067A4.3,4.3,0,0,1,16.313,13.27Z"}),/*#__PURE__*/F.createElement("path",{d:"M7.615,13.4a.244.244,0,0,0,.061-.24A4.315,4.315,0,0,1,7.5,12,4.5,4.5,0,0,1,12,7.5a4.276,4.276,0,0,1,1.16.173.244.244,0,0,0,.24-.062l1.941-1.942a.254.254,0,0,0-.1-.421A10.413,10.413,0,0,0,12,4.75C7.7,4.692,3.4,7.7.813,10.549a2.15,2.15,0,0,0-.007,2.9,21.209,21.209,0,0,0,3.438,3.03.256.256,0,0,0,.326-.029Z"}))});mb({d:"M11.2857,6.05714 L10.08571,4.85714 L7.85714,7.14786 L7.85714,1 L6.14286,1 L6.14286,7.14786 L3.91429,4.85714 L2.71429,6.05714 L7,10.42857 L11.2857,6.05714 Z M1,11.2857 L1,13 L13,13 L13,11.2857 L1,11.2857 Z",displayName:"DownloadIcon",viewBox:"0 0 14 14"}),mb({displayName:"DeleteIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"}))}),mb({displayName:"RepeatIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"}),/*#__PURE__*/F.createElement("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"}))}),mb({displayName:"RepeatClockIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z"}),/*#__PURE__*/F.createElement("path",{d:"M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z"}))}),mb({displayName:"EditIcon",path:/*#__PURE__*/F.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/*#__PURE__*/F.createElement("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),/*#__PURE__*/F.createElement("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"}))}),mb({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"}),mb({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});var gb=mb({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});mb({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"}),mb({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"}),mb({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"}),mb({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"}),mb({viewBox:"0 0 16 16",d:"M11.891 9.992a1 1 0 1 1 1.416 1.415l-4.3 4.3a1 1 0 0 1-1.414 0l-4.3-4.3A1 1 0 0 1 4.71 9.992l3.59 3.591 3.591-3.591zm0-3.984L8.3 2.417 4.709 6.008a1 1 0 0 1-1.416-1.415l4.3-4.3a1 1 0 0 1 1.414 0l4.3 4.3a1 1 0 1 1-1.416 1.415z",displayName:"ArrowUpDownIcon"}),mb({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"}),mb({displayName:"ExternalLinkIcon",path:/*#__PURE__*/F.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/*#__PURE__*/F.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),/*#__PURE__*/F.createElement("path",{d:"M15 3h6v6"}),/*#__PURE__*/F.createElement("path",{d:"M10 14L21 3"}))}),mb({displayName:"LinkIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z"}),/*#__PURE__*/F.createElement("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z"}))}),mb({displayName:"PlusSquareIcon",path:/*#__PURE__*/F.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/*#__PURE__*/F.createElement("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),/*#__PURE__*/F.createElement("path",{d:"M12 8v8"}),/*#__PURE__*/F.createElement("path",{d:"M8 12h8"}))}),mb({displayName:"CalendarIcon",viewBox:"0 0 14 14",d:"M10.8889,5.5 L3.11111,5.5 L3.11111,7.05556 L10.8889,7.05556 L10.8889,5.5 Z M12.4444,1.05556 L11.6667,1.05556 L11.6667,0 L10.1111,0 L10.1111,1.05556 L3.88889,1.05556 L3.88889,0 L2.33333,0 L2.33333,1.05556 L1.55556,1.05556 C0.692222,1.05556 0.00777777,1.75556 0.00777777,2.61111 L0,12.5 C0,13.3556 0.692222,14 1.55556,14 L12.4444,14 C13.3,14 14,13.3556 14,12.5 L14,2.61111 C14,1.75556 13.3,1.05556 12.4444,1.05556 Z M12.4444,12.5 L1.55556,12.5 L1.55556,3.94444 L12.4444,3.94444 L12.4444,12.5 Z M8.55556,8.61111 L3.11111,8.61111 L3.11111,10.1667 L8.55556,10.1667 L8.55556,8.61111 Z"}),mb({d:"M0.913134,0.920639 C1.49851,0.331726 2.29348,0 3.12342,0 L10.8766,0 C11.7065,0 12.5015,0.331725 13.0869,0.920639 C13.6721,1.50939 14,2.30689 14,3.13746 L14,8.12943 C13.9962,8.51443 13.9059,8.97125 13.7629,9.32852 C13.6128,9.683 13.3552,10.0709 13.0869,10.3462 C12.813,10.6163 12.4265,10.8761 12.0734,11.0274 C11.7172,11.1716 11.2607,11.263 10.8766,11.2669 L10.1234,11.2669 L10.1234,12.5676 L10.1209,12.5676 C10.1204,12.793 10.0633,13.0791 9.97807,13.262 C9.8627,13.466 9.61158,13.7198 9.40818,13.8382 L9.40824,13.8383 C9.4077,13.8386 9.40716,13.8388 9.40661,13.8391 C9.40621,13.8393 9.4058,13.8396 9.40539,13.8398 L9.40535,13.8397 C9.22958,13.9254 8.94505,13.9951 8.75059,14 L8.74789,14 C8.35724,13.9963 7.98473,13.8383 7.71035,13.5617 L5.39553,11.2669 L3.12342,11.2669 C2.29348,11.2669 1.49851,10.9352 0.913134,10.3462 C0.644826,10.0709 0.387187,9.683 0.23711,9.32852 C0.0941235,8.97125 0.00379528,8.51443 0,8.12943 L0,3.13746 C0,2.30689 0.327915,1.50939 0.913134,0.920639 Z M3.12342,1.59494 C2.71959,1.59494 2.33133,1.75628 2.04431,2.04503 C1.75713,2.33395 1.59494,2.72681 1.59494,3.13746 L1.59494,8.12943 C1.59114,8.35901 1.62114,8.51076 1.71193,8.72129 C1.79563,8.9346 1.88065,9.06264 2.04431,9.22185 C2.33133,9.5106 2.71959,9.67195 3.12342,9.67195 L5.72383,9.67195 C5.93413,9.67195 6.13592,9.75502 6.28527,9.90308 L8.52848,12.1269 L8.52848,10.4694 C8.52848,10.029 8.88552,9.67195 9.32595,9.67195 L10.8766,9.67195 C11.1034,9.67583 11.2517,9.64614 11.4599,9.55518 C11.6712,9.47132 11.7976,9.38635 11.9557,9.22185 C12.1193,9.06264 12.2044,8.9346 12.2881,8.72129 C12.3789,8.51076 12.4089,8.35901 12.4051,8.12943 L12.4051,3.13746 C12.4051,2.72681 12.2429,2.33394 11.9557,2.04503 C11.6687,1.75628 11.2804,1.59494 10.8766,1.59494 L3.12342,1.59494 Z",displayName:"ChatIcon",viewBox:"0 0 14 14"}),mb({displayName:"TimeIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22Z"}),/*#__PURE__*/F.createElement("path",{d:"M17.134,15.81,12.5,11.561V6.5a1,1,0,0,0-2,0V12a1,1,0,0,0,.324.738l4.959,4.545a1.01,1.01,0,0,0,1.413-.061A1,1,0,0,0,17.134,15.81Z"}))}),mb({displayName:"ArrowRightIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"}),/*#__PURE__*/F.createElement("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"}))}),mb({displayName:"ArrowLeftIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"}),/*#__PURE__*/F.createElement("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"}))}),mb({displayName:"AtSignIcon",d:"M12,.5A11.634,11.634,0,0,0,.262,12,11.634,11.634,0,0,0,12,23.5a11.836,11.836,0,0,0,6.624-2,1.25,1.25,0,1,0-1.393-2.076A9.34,9.34,0,0,1,12,21a9.132,9.132,0,0,1-9.238-9A9.132,9.132,0,0,1,12,3a9.132,9.132,0,0,1,9.238,9v.891a1.943,1.943,0,0,1-3.884,0V12A5.355,5.355,0,1,0,12,17.261a5.376,5.376,0,0,0,3.861-1.634,4.438,4.438,0,0,0,7.877-2.736V12A11.634,11.634,0,0,0,12,.5Zm0,14.261A2.763,2.763,0,1,1,14.854,12,2.812,2.812,0,0,1,12,14.761Z"}),mb({displayName:"AttachmentIcon",d:"M21.843,3.455a6.961,6.961,0,0,0-9.846,0L1.619,13.832a5.128,5.128,0,0,0,7.252,7.252L17.3,12.653A3.293,3.293,0,1,0,12.646,8L7.457,13.184A1,1,0,1,0,8.871,14.6L14.06,9.409a1.294,1.294,0,0,1,1.829,1.83L7.457,19.67a3.128,3.128,0,0,1-4.424-4.424L13.411,4.869a4.962,4.962,0,1,1,7.018,7.018L12.646,19.67a1,1,0,1,0,1.414,1.414L21.843,13.3a6.96,6.96,0,0,0,0-9.846Z"}),mb({displayName:"UpDownIcon",viewBox:"-1 -1 9 11",d:"M 3.5 0L 3.98809 -0.569442L 3.5 -0.987808L 3.01191 -0.569442L 3.5 0ZM 3.5 9L 3.01191 9.56944L 3.5 9.98781L 3.98809 9.56944L 3.5 9ZM 0.488094 3.56944L 3.98809 0.569442L 3.01191 -0.569442L -0.488094 2.43056L 0.488094 3.56944ZM 3.01191 0.569442L 6.51191 3.56944L 7.48809 2.43056L 3.98809 -0.569442L 3.01191 0.569442ZM -0.488094 6.56944L 3.01191 9.56944L 3.98809 8.43056L 0.488094 5.43056L -0.488094 6.56944ZM 3.98809 9.56944L 7.48809 6.56944L 6.51191 5.43056L 3.01191 8.43056L 3.98809 9.56944Z"}),mb({d:"M23.555,8.729a1.505,1.505,0,0,0-1.406-.98H16.062a.5.5,0,0,1-.472-.334L13.405,1.222a1.5,1.5,0,0,0-2.81,0l-.005.016L8.41,7.415a.5.5,0,0,1-.471.334H1.85A1.5,1.5,0,0,0,.887,10.4l5.184,4.3a.5.5,0,0,1,.155.543L4.048,21.774a1.5,1.5,0,0,0,2.31,1.684l5.346-3.92a.5.5,0,0,1,.591,0l5.344,3.919a1.5,1.5,0,0,0,2.312-1.683l-2.178-6.535a.5.5,0,0,1,.155-.543l5.194-4.306A1.5,1.5,0,0,0,23.555,8.729Z",displayName:"StarIcon"}),mb({displayName:"EmailIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M11.114,14.556a1.252,1.252,0,0,0,1.768,0L22.568,4.87a.5.5,0,0,0-.281-.849A1.966,1.966,0,0,0,22,4H2a1.966,1.966,0,0,0-.289.021.5.5,0,0,0-.281.849Z"}),/*#__PURE__*/F.createElement("path",{d:"M23.888,5.832a.182.182,0,0,0-.2.039l-6.2,6.2a.251.251,0,0,0,0,.354l5.043,5.043a.75.75,0,1,1-1.06,1.061l-5.043-5.043a.25.25,0,0,0-.354,0l-2.129,2.129a2.75,2.75,0,0,1-3.888,0L7.926,13.488a.251.251,0,0,0-.354,0L2.529,18.531a.75.75,0,0,1-1.06-1.061l5.043-5.043a.251.251,0,0,0,0-.354l-6.2-6.2a.18.18,0,0,0-.2-.039A.182.182,0,0,0,0,6V18a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V6A.181.181,0,0,0,23.888,5.832Z"}))}),mb({d:"M2.20731,0.0127209 C2.1105,-0.0066419 1.99432,-0.00664663 1.91687,0.032079 C0.871279,0.438698 0.212942,1.92964 0.0580392,2.95587 C-0.426031,6.28627 2.20731,9.17133 4.62766,11.0689 C6.77694,12.7534 10.9012,15.5223 13.3409,12.8503 C13.6507,12.5211 14.0186,12.037 13.9993,11.553 C13.9412,10.7397 13.186,10.1588 12.6051,9.71349 C12.1598,9.38432 11.2304,8.47427 10.6495,8.49363 C10.1267,8.51299 9.79754,9.05515 9.46837,9.38432 L8.88748,9.96521 C8.79067,10.062 7.55145,9.24878 7.41591,9.15197 C6.91248,8.8228 6.4284,8.45491 6.00242,8.04829 C5.57644,7.64167 5.18919,7.19632 4.86002,6.73161 C4.7632,6.59607 3.96933,5.41495 4.04678,5.31813 C4.04678,5.31813 4.72448,4.58234 4.91811,4.2919 C5.32473,3.67229 5.63453,3.18822 5.16982,2.45243 C4.99556,2.18135 4.78257,1.96836 4.55021,1.73601 C4.14359,1.34875 3.73698,0.942131 3.27227,0.612963 C3.02055,0.419335 2.59457,0.0708094 2.20731,0.0127209 Z",displayName:"PhoneIcon",viewBox:"0 0 14 14"}),mb({viewBox:"0 0 10 10",d:"M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z",displayName:"DragHandleIcon"}),mb({displayName:"SpinnerIcon",path:/*#__PURE__*/F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement("defs",null,/*#__PURE__*/F.createElement("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a"},/*#__PURE__*/F.createElement("stop",{stopColor:"currentColor",offset:"0%"}),/*#__PURE__*/F.createElement("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"}))),/*#__PURE__*/F.createElement("g",{transform:"translate(2)",fill:"none"},/*#__PURE__*/F.createElement("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"}),/*#__PURE__*/F.createElement("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"}),/*#__PURE__*/F.createElement("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"})))}),mb({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}),mb({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:/*#__PURE__*/F.createElement("path",{d:"M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z",fillRule:"evenodd",fill:"currentColor"})}),mb({d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z",displayName:"NotAllowedIcon"}),mb({d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z",displayName:"TriangleDownIcon"}),mb({d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z",displayName:"TriangleUpIcon"}),mb({displayName:"InfoOutlineIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2"},/*#__PURE__*/F.createElement("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),/*#__PURE__*/F.createElement("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),/*#__PURE__*/F.createElement("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"}))}),mb({displayName:"BellIcon",d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"}),mb({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"}),mb({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm0,19a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,19Zm1.6-6.08a1,1,0,0,0-.6.917,1,1,0,1,1-2,0,3,3,0,0,1,1.8-2.75A2,2,0,1,0,10,9.255a1,1,0,1,1-2,0,4,4,0,1,1,5.6,3.666Z",displayName:"QuestionIcon"}),mb({displayName:"QuestionOutlineIcon",path:/*#__PURE__*/F.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/*#__PURE__*/F.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),/*#__PURE__*/F.createElement("path",{fill:"none",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),/*#__PURE__*/F.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"}))}),mb({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"}),mb({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"});var bb=mb({viewBox:"0 0 14 14",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))}),Eb=mb({displayName:"MinusIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("rect",{height:"4",width:"20",x:"2",y:"10"}))});function xb(){return xb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xb.apply(this,arguments)}mb({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"});var _b=["label","children"],wb=La(function(e,t){var n=e.label,r=e.children,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,_b);return F.createElement(op,xb({ref:t},a),r||n)});function kb(){return kb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kb.apply(this,arguments)}t.__DEV__&&(wb.displayName="Button");var Sb=La(function(e,t){/*#__PURE__*/return F.createElement(Tm,{w:"auto",px:"1",py:"1",alignItems:"stretch"},/*#__PURE__*/F.createElement(wb,kb({ref:t,height:"auto"},e)))});function Cb(){return Cb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cb.apply(this,arguments)}Sb.id="InputRightElement",t.__DEV__&&(Sb.displayName="InputRightButton");var Ob=["viewIcon","viewOffIcon","autoComplete"],Ab=La(function(e,t){var n,r=e.viewIcon,a=e.viewOffIcon,o=e.autoComplete,i=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,Ob),s=F.useState(!1),l=s[0],c=s[1],u=l?"Hide password":"Show password";return n=l?r||/*#__PURE__*/F.createElement(hb,null):a||/*#__PURE__*/F.createElement(yb,null),/*#__PURE__*/F.createElement(Em,null,/*#__PURE__*/F.createElement(vm,Cb({},i,{ref:t,type:l?"text":"password",autoComplete:l?"off":o})),/*#__PURE__*/F.createElement(Sb,{onClick:function(){return c(!l)},"aria-label":u,variant:"ghost"},n))});function Nb(){return Nb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nb.apply(this,arguments)}function Rb(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(Ab.displayName="PasswordInput");var Ib=["options","spacing","direction"],Pb=["onBlur","onChange"],Tb=["value","label"],Lb=La(function(e,t){var n=e.options,r=e.spacing,a=e.direction,o=Rb(e,Ib),i=o.onBlur,s=o.onChange,l=Rb(o,Pb);return F.createElement(Bg,Nb({onChange:s},l),/*#__PURE__*/F.createElement(xv,{spacing:r,direction:a},n.map(function(e,n){var r=e.value,a=e.label,o=Rb(e,Tb);return F.createElement(Hg,Nb({key:n,onBlur:i,value:r,ref:t},o),a||r)})))});function Db(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mb(){return Mb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mb.apply(this,arguments)}function Vb(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(Lb.displayName="RadioInput");var jb=["name","options","children","onChange","defaultValue","value","placeholder","isDisabled","leftIcon","rightIcon","multiple","size","variant","menuListProps","renderValue"],Bb=["value","label"],Fb=La(function(e,t){var n=ja("Input",e),r=Mb({fontWeight:"normal",textAlign:"left",color:"inherit",_active:{bg:"transparent"},minH:n.field.h||n.field.height},n.field,{h:"auto"});return F.createElement(My,Mb({as:op},e,{ref:t,sx:r}))});t.__DEV__&&(Fb.displayName="SelectButton");var zb=La(function(e,n){var r=e.name,a=e.options,o=e.children,i=e.onChange,s=e.defaultValue,l=e.value,c=e.placeholder,u=e.isDisabled,d=e.leftIcon,f=e.rightIcon,p=void 0===f?/*#__PURE__*/F.createElement(gb,null):f,m=e.multiple,v=e.size,h=e.variant,y=e.menuListProps,g=e.renderValue,b=void 0===g?function(e){return null==e?void 0:e.join(", ")}:g,E=Ca(Vb(e,jb)),x=F.useState(l||s),_=x[0],w=x[1],k=kp({name:r}),S={isDisabled:u,leftIcon:d,rightIcon:p,size:v,variant:h},C=F.useCallback(function(e){if(!a)return e;for(var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Db(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Db(e,t):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(a);!(t=n()).done;){var r=t.value;if(r.label&&r.value===e)return r.label}return e},[a]),O=_?(Array.isArray(_)?_:[_]).map(C):[];return F.createElement(Ly,Mb({},E,{closeOnSelect:!m}),/*#__PURE__*/F.createElement(Fa.div,{className:t.cx("saas-select")},/*#__PURE__*/F.createElement(Fb,Mb({ref:n},S),b(O)||c),/*#__PURE__*/F.createElement(By,Mb({maxH:"60vh",overflowY:"auto"},y),/*#__PURE__*/F.createElement(Uy,{defaultValue:s||l,onChange:function(e){w(e),null==i||i(e)},type:m?"checkbox":"radio"},a?a.map(function(e,t){var n=e.value,r=e.label,a=Vb(e,Bb);return F.createElement(Hy,Mb({key:t,value:n},a),r||n)}):o)),/*#__PURE__*/F.createElement(Fa.input,Mb({},k,{name:r,type:"hidden",value:_,className:"saas-select__input"}))))});t.__DEV__&&(zb.displayName="Select");var Wb=["options","children"],Hb=La(function(e,t){var n=e.options,r=e.children,a=Vb(e,Wb);return F.createElement(Xg,Mb({ref:t},a),r||(null==n?void 0:n.map(function(e){var t=e.value;/*#__PURE__*/return F.createElement("option",{key:t,value:t},e.label||t)})))});function Ub(){return Ub=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ub.apply(this,arguments)}function $b(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(Hb.displayName="NativeSelect");var qb=nn({name:"StepperContext",errorMessage:"useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in `<Stepper />`"}),Yb=qb[0],Zb=qb[1];function Gb(e){var t=e.step,n=e.onChange,r=F.useState(-1),a=r[0],o=r[1],i=F.useRef([]),s=F.useState(Date.now())[1],l=F.useCallback(function(e){var t=[].concat(i.current);-1===t.indexOf(e)&&t.push(e),i.current=t,s(Date.now())},[i,s]),c=function(e){var t=i.current.indexOf(e);-1!==t&&o(t)};return F.useEffect(function(){"string"==typeof t?c(t):"number"==typeof t?o(t):-1===a&&o(0)},[t]),F.useEffect(function(){null==n||n(a)},[a,n]),{stepsRef:i,activeStep:i.current[a],activeIndex:a,isFirstStep:0===a,isLastStep:a===i.current.length-1,isCompleted:a>=i.current.length,setIndex:o,setStep:c,nextStep:function(){o(a+1)},prevStep:function(){o(a-1)},registerStep:l,unregisterStep:function(e){i.current=i.current.slice(i.current.indexOf(e),1)}}}var Xb=["orientation","children"],Kb=["children","orientation","step","onChange"],Jb=["children","orientation","stepComponent"],Qb=["children","isOpen"],eE=["icon","isActive","isCompleted","className"],tE=["name","title","icon","isActive","isCompleted"],nE=["isActive"],rE=Sa("Stepper"),aE=rE[0],oE=rE[1],iE=La(function(e,t){var n=e.orientation,r=e.children,a=$b(e,Xb);return F.createElement(sE,Ub({ref:t,orientation:n},a),/*#__PURE__*/F.createElement(lE,{orientation:n},r))});t.__DEV__&&(iE.displayName="Stepper");var sE=La(function(e,n){var r=e.children,a=e.orientation,o=void 0===a?"horizontal":a,i=$b(e,Kb),s=ja("Stepper",Ub({},i,{orientation:o})),l=Ca(i),c=Gb(e),u=Ub({display:"flex",flexDirection:"column"},s.container);return F.createElement(aE,{value:s},/*#__PURE__*/F.createElement(Yb,{value:c},/*#__PURE__*/F.createElement(Fa.div,Ub({ref:n,__css:u},l,{className:t.cx("saas-stepper",e.className)}),r)))});t.__DEV__&&(sE.displayName="StepperContainer");var lE=function(e){var n,r,a,o=e.children,i=e.orientation,s=void 0===i?"horizontal":i,l=e.stepComponent,c=$b(e,Jb),u=oE(),d=Zb().activeIndex,f=Ub({display:"flex",flexDirection:"row",alignItems:"center"},u.steps),p="vertical"===s,m=l||dE,v=(a=m,F.Children.toArray(o).filter(function(e){return Array.isArray(a)?a.some(function(t){return t===e.type}):e.type===a})),h=v.reduce(function(e,t,n,r){return e.push(/*#__PURE__*/F.createElement(m,Ub({key:n},t.props,{icon:t.props.icon||n+1,isActive:d===n,isCompleted:t.props.isCompleted||d>n}))),p&&e.push(/*#__PURE__*/F.createElement(cE,{key:"content-"+n,isOpen:d===n},t.props.children)),n<r.length-1&&e.push(/*#__PURE__*/F.createElement(fE,{key:"separator-"+n,isActive:n<d})),e},[]),y=function(e,t){return F.Children.toArray(e).find(function(e){return e.type===t})}(o,mE),g=d>=v.length?y:p?null:/*#__PURE__*/F.createElement(cE,null,null==(n=v[d])||null==(r=n.props)?void 0:r.children);return F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement(Fa.div,Ub({__css:f},c,{className:t.cx("saas-stepper__steps",e.className)}),h),g)};t.__DEV__&&(lE.displayName="StepperSteps");var cE=function(e){var n=e.children,r=e.isOpen,a=void 0===r||r,o=$b(e,Qb),i=oE();return F.createElement(Fa.div,Ub({__css:i.content},o,{className:t.cx("saas-stepper__content",e.className)}),/*#__PURE__*/F.createElement(Ef,{in:a},n))};t.__DEV__&&(cE.displayName="StepperContent");var uE=function(e){var n,r=e.icon,a=e.isCompleted,o=e.className,i=$b(e,eE),s=Ub({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontSize:"1em"},oE().icon);return n=a?/*#__PURE__*/F.createElement(pb,{as:bb}):r,/*#__PURE__*/F.createElement(Fa.div,Ub({__css:s},i,{className:t.cx("saas-stepper__icon",o)}),n)};t.__DEV__&&(uE.displayName="StepperIcon");var dE=function(e){var n=e.title,r=e.icon,a=e.isActive,o=e.isCompleted,i=$b(e,tE),s=function(e){var t=e.name,n=e.isActive,r=e.isCompleted,a=Zb(),o=a.registerStep,i=a.unregisterStep,s=a.activeStep;return F.useEffect(function(){if(t)return o(t),function(){i(t)}},[]),{isActive:t?s===t:n,isCompleted:r}}(e),l=Ub({display:"flex",alignItems:"center",flexDirection:"row"},oE().step);return F.createElement(Fa.div,Ub({},i,{__css:l,"data-active":t.dataAttr(s.isActive),"data-completed":t.dataAttr(s.isCompleted),className:t.cx("saas-stepper__step",e.className)}),/*#__PURE__*/F.createElement(uE,{icon:r,isActive:a,isCompleted:o}),n&&/*#__PURE__*/F.createElement(pE,null,n))};t.__DEV__&&(dE.displayName="StepperStep");var fE=function(e){var n=e.isActive,r=$b(e,nE),a=Ub({flex:1,mx:2},oE().separator);return F.createElement(Fa.div,Ub({},r,{"data-active":t.dataAttr(n),className:t.cx("saas-stepper__separator",e.className),__css:a}))};t.__DEV__&&(fE.displayName="StepperSeparator");var pE=function(e){var n=oE();return F.createElement(Fa.p,Ub({},e,{__css:n.title,className:t.cx("saas-stepper__title",e.className)}))};t.__DEV__&&(pE.displayName="StepperStepTitle");var mE=function(e){var n=oE();return F.createElement(Fa.div,Ub({__css:n.completed},e,{className:t.cx("saas-stepper__completed",e.className)}))};function vE(){return vE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vE.apply(this,arguments)}function hE(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(mE.displayName="StepperCompleted");var yE=["name","label","help","variant","hideLabel","children"],gE=["id","name","label","help","isDisabled","isInvalid","isReadOnly","isRequired","isOptional","rules","variant"],bE=["name","rules"],EE=["ref"],xE=["name","rules"],_E=["ref"],wE=["type","leftAddon","rightAddon","size"],kE=["type"],SE=["label","type"],CE=["pinLength","pinType","spacing"],OE={},AE=function(e){var t=e.name,r=e.label,a=e.help,o=e.variant,i=e.hideLabel,s=e.children,l=hE(e,yE),c=function(e,t){return n.get(t.errors,e)}(t,n.useFormContext().formState);return F.createElement(Ep,vE({variant:o},l,{isInvalid:!!c}),r&&!i?/*#__PURE__*/F.createElement(Pp,{variant:o},r):null,/*#__PURE__*/F.createElement(Wm,null,s,!a||null!=c&&c.message?null:/*#__PURE__*/F.createElement(xp,null,a),(null==c?void 0:c.message)&&/*#__PURE__*/F.createElement(Np,null,null==c?void 0:c.message)))};t.__DEV__&&(AE.displayName="BaseField");var NE=F.forwardRef(function(e,t){var n=e.type;return F.createElement(OE[void 0===n?"text":n]||OE.text,vE({ref:t},e))}),RE=function(e,t,r){var a;a=null!=r&&r.isControlled?function(e){return La(function(t,r){var a=t.name,o=t.rules,i=hE(t,bE),s=n.useFormContext();return F.createElement(n.Controller,{name:a,control:s.control,rules:o,render:function(t){var n=t.field.ref,a=hE(t.field,EE);return F.createElement(e,vE({},a,i,{ref:hn(r,n)}))}})})}(t):function(e){return La(function(t,r){var a=t.name,o=t.rules,i=hE(t,xE),s=(0,n.useFormContext().register)(a,o),l=s.ref,c=hE(s,_E);return F.createElement(e,vE({},c,i,{ref:hn(r,l)}))})}(t);var o=function(e,t){var n=t.displayName,r=t.hideLabel,a=t.BaseField,o=La(function(t,n){var o=t.id,i=t.name,s=t.label,l=t.help,c=t.isDisabled,u=t.isInvalid,d=t.isReadOnly,f=t.isRequired,p=t.isOptional,m=t.rules,v=t.variant,h=hE(t,gE),y=vE({required:f},m);return F.createElement(a,{id:o,name:i,label:s,help:l,hideLabel:r,isDisabled:c,isInvalid:u,isReadOnly:d,isRequired:f,isOptional:p,variant:v},/*#__PURE__*/F.createElement(e,vE({ref:n,id:o,name:i,label:r?s:void 0,rules:y},h)))});return o.displayName=n,o}(a,{displayName:e.split("-").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join("")+"Field",hideLabel:null==r?void 0:r.hideLabel,BaseField:(null==r?void 0:r.BaseField)||AE});return OE[e]=o,o};RE("text",La(function(e,t){var n=e.type,r=void 0===n?"text":n,a=e.leftAddon,o=e.rightAddon,i=e.size,s=hE(e,wE),l=/*#__PURE__*/F.createElement(vm,vE({type:r,size:i},s,{ref:t}));return a||o?/*#__PURE__*/F.createElement(Em,{size:i},a,l,o):l})),RE("number",cb,{isControlled:!0}),RE("password",La(function(e,t){/*#__PURE__*/return F.createElement(Ab,vE({ref:t},e))})),RE("textarea",ib),RE("switch",La(function(e,t){var n=hE(e,kE);return F.createElement(nb,vE({},n,{ref:t}))}),{isControlled:!0}),RE("select",zb,{isControlled:!0}),RE("checkbox",La(function(e,t){var n=e.label,r=hE(e,SE);return F.createElement(sm,vE({ref:t},r),n)}),{hideLabel:!0}),RE("radio",Lb,{isControlled:!0}),RE("native-select",Hb,{isControlled:!0}),RE("pin",La(function(e,t){for(var n=e.pinLength,r=void 0===n?4:n,a=e.pinType,o=e.spacing,i=hE(e,CE),s=[],l=0;l<r;l++)s.push(/*#__PURE__*/F.createElement(Ig,{key:l,ref:t}));return F.createElement(_v,{spacing:o},/*#__PURE__*/F.createElement(Rg,vE({},i,{type:a}),s))}),{isControlled:!0});var IE=["items"],PE=function(e){return e&&Object.entries(e).map(function(e){var t=e[0];return vE({},hE(e[1],IE),{name:t})})},TE=function(e){return{getFields:function(){return PE(e)},getNestedFields:function(n){var r,a=t.get(e,n);return a?"object"===(null==(r=a.items)?void 0:r.type)?PE(a.items.properties):"object"===a.type?PE(a.properties):[a.items]:[]}}},LE=["mode","resolver","reValidateMode","shouldFocusError","shouldUnregister","shouldUseNativeValidation","criteriaMode","delayError","schema","defaultValues","onSubmit","onError","formRef","children"],DE=La(function(e,r){var a=e.mode,o=void 0===a?"all":a,i=e.resolver,s=e.reValidateMode,l=e.shouldFocusError,c=e.shouldUnregister,u=e.shouldUseNativeValidation,d=e.criteriaMode,f=e.delayError,p=e.schema,m=e.defaultValues,v=e.onSubmit,h=e.onError,y=e.formRef,g=e.children,b=hE(e,LE),E={mode:o,resolver:i,defaultValues:m,reValidateMode:s,shouldFocusError:l,shouldUnregister:c,shouldUseNativeValidation:u,criteriaMode:d,delayError:f};p&&!i&&(E.resolver=null==DE.getResolver?void 0:DE.getResolver(p));var x=n.useForm(E),_=x.handleSubmit;return F.useImperativeHandle(r,function(){return x},[r,x]),/*#__PURE__*/F.createElement(n.FormProvider,x,/*#__PURE__*/F.createElement(Fa.form,vE({ref:y,onSubmit:_(v,h)},b,{className:t.cx("saas-form",e.className)}),g))});DE.getFieldResolver=TE,t.__DEV__&&(DE.displayName="Form");var ME=["children"],VE=function(e){/*#__PURE__*/return F.createElement(Fa.div,null,e.children)};t.__DEV__&&(VE.displayName="FormLayoutItem");var jE=function(e){var n,r,a,o=e.children,i=hE(e,ME),s=vE({},null!=(n=null==(r=ka().components)||null==(a=r.FormLayout)?void 0:a.defaultProps)?n:{spacing:4},i);return F.createElement(hv,vE({},s,{className:t.cx("saas-form__layout",i.className)}),F.Children.map(o,function(e){return F.isValidElement(e)?/*#__PURE__*/F.createElement(VE,null,e):e}))};t.__DEV__&&(jE.displayName="FormLayout");var BE=function(e,t){return F.Children.map(t,function(t){return F.isValidElement(t)&&t.props.name?F.cloneElement(t,vE({},t.props,{name:e+"."+t.props.name})):t})},FE=nn({name:"ArrayFieldContext"}),zE=FE[0],WE=FE[1],HE=nn({name:"ArrayFieldRowContext"}),UE=HE[0],$E=HE[1],qE=["children","index"],YE=["children"],ZE=["children"],GE=["name","defaultValue","keyName","min","max","children"],XE=function(e){var t=e.children,n=e.index,r=hE(e,qE);return F.createElement(JE,{index:n},/*#__PURE__*/F.createElement(KE,r,t),/*#__PURE__*/F.createElement(QE,null))};t.__DEV__&&(XE.displayName="ArrayFieldRow");var KE=function(e){var t=e.children,n=hE(e,YE),r=$E().name;return F.createElement(jE,vE({flex:"1",mr:"2"},n),BE(r,t))};t.__DEV__&&(KE.displayName="ArrayFieldRowFields");var JE=function(e){var t=e.children,r=function(e){var t=e.index,r=n.useFormContext().clearErrors,a=WE(),o=a.name,i=a.remove,s=a.fields;return F.useEffect(function(){r(o)},[]),{index:t,isFirst:0===t,isLast:t===s.length-1,name:o+"."+t,remove:F.useCallback(function(){r(o),i(t)},[t])}}({index:e.index});return F.createElement(UE,{value:r},/*#__PURE__*/F.createElement(Fa.div,{__css:{display:"flex",flexDirection:"row",alignItems:"flex-end",width:"100%",mb:4}},t))};t.__DEV__&&(JE.displayName="ArrayFieldRowContainer");var QE=function(e){/*#__PURE__*/return F.createElement(lp,vE({icon:/*#__PURE__*/F.createElement(Eb,null),"aria-label":"Remove row"},function(){var e=$E(),t=e.isFirst,n=e.remove,r=WE(),a=r.min;return{onClick:function(){return n()},isDisabled:t&&!!(a&&r.fields.length<=a)}}(),e))};t.__DEV__&&(QE.displayName="ArrayFieldRemoveButton");var ex=function(e){/*#__PURE__*/return F.createElement(lp,vE({icon:/*#__PURE__*/F.createElement(vb,null),"aria-label":"Add row",float:"right"},function(){var e=WE(),t=e.append,n=e.defaultValue,r=e.max;return{onClick:function(){return t(n,{shouldFocus:!1})},isDisabled:!!(r&&e.fields.length>=r)}}(),e))};t.__DEV__&&(ex.displayName="ArrayFieldAddButton");var tx=La(function(e,t){var n=e.children,r=hE(e,ZE);return F.createElement(rx,vE({ref:t},r),/*#__PURE__*/F.createElement(nx,null,function(e){/*#__PURE__*/return F.createElement(F.Fragment,null,e.map(function(e,t){/*#__PURE__*/return F.createElement(XE,{key:e.id,index:t},n)}))}),/*#__PURE__*/F.createElement(ex,null))});t.__DEV__&&(tx.displayName="ArrayField");var nx=function(e){return(0,e.children)(WE().fields)};t.__DEV__&&(nx.displayName="ArrayFieldRows");var rx=F.forwardRef(function(e,t){var r=e.name,a=e.defaultValue,o=e.keyName,i=e.min,s=e.max,l=e.children,c=hE(e,GE),u=function(e){var t=e.name,r=e.defaultValue,a=void 0===r?{}:r,o=e.keyName,i=e.min,s=e.max,l=n.useFormContext();return vE({},n.useFieldArray({control:l.control,name:t,keyName:o}),{name:t,defaultValue:a,min:i,max:s})}({name:r,defaultValue:a,keyName:o,min:i,max:s});return F.useImperativeHandle(t,function(){return u},[t,u]),/*#__PURE__*/F.createElement(zE,{value:u},/*#__PURE__*/F.createElement(AE,vE({name:r},c),l))});t.__DEV__&&(rx.displayName="ArrayFieldContainer");var ax=["name","label","hideLabel","children","columns","spacing"],ox=function(e){var t=Va("FormLegend");return F.createElement(Pp,vE({as:"legend",sx:t},e))},ix=function(e){var t=e.name,n=e.label,r=e.hideLabel,a=e.children,o=e.columns,i=e.spacing,s=hE(e,ax);return F.createElement(Ep,vE({name:t,as:"fieldset"},s),/*#__PURE__*/F.createElement(ox,{display:r?"none":"block"},n),/*#__PURE__*/F.createElement(jE,{columns:o,gridGap:i},BE(t,a)))};t.__DEV__&&(ix.displayName="ObjectField");var sx=["name","type"],lx=["schema","fieldResolver"],cx=["name","type","defaultValue"],ux=function(e,t){var n;return null==(n=e.getNestedFields(t))?void 0:n.map(function(e,t){var n=e.name,r=e.type,a=hE(e,sx);return F.createElement(NE,vE({key:n||t,name:n,type:r},a))})},dx=function(e){var t=e.schema,n=e.fieldResolver,r=hE(e,lx),a=F.useMemo(function(){return n||DE.getFieldResolver(t)},[t,n]);return F.createElement(jE,r,a.getFields().map(function(e){var t=e.name,n=e.type,r=hE(e,cx);return"array"===n?/*#__PURE__*/F.createElement(tx,vE({key:t,name:t},r),ux(a,t)):"object"===n?/*#__PURE__*/F.createElement(ix,vE({key:t,name:t},r),ux(a,t)):/*#__PURE__*/F.createElement(NE,vE({key:t,name:t,type:n},r))}))};t.__DEV__&&(dx.displayName="Fields");var fx=["children","disableIfUntouched","disableIfInvalid"],px=La(function(e,t){var r=e.children,a=e.disableIfUntouched,o=e.disableIfInvalid,i=hE(e,fx),s=n.useFormContext().formState;return F.createElement(wb,vE({type:"submit",isLoading:s.isSubmitting,colorScheme:"primary",ref:t,isDisabled:a&&!s.isDirty||o&&!s.isValid},i),r)});px.defaultProps={label:"Submit",disableIfUntouched:!1,disableIfInvalid:!1},t.__DEV__&&(px.displayName="SubmitButton");var mx=["schema","submitLabel","fieldResolver","children"],vx=La(function(e,t){var n=e.schema,r=e.submitLabel,a=void 0===r?"Submit":r,o=e.fieldResolver,i=e.children,s=hE(e,mx);return F.createElement(DE,vE({},s,{schema:n,ref:t}),/*#__PURE__*/F.createElement(jE,null,/*#__PURE__*/F.createElement(dx,{schema:n,fieldResolver:o}),a&&/*#__PURE__*/F.createElement(px,{label:a}),i))});t.__DEV__&&(vx.displayName="AutoForm");var hx=["onChange"],yx=nn({name:"StepFormContext",errorMessage:"useStepFormContext: `context` is undefined. Seems you forgot to wrap step form components in `<StepForm />`"})[0],gx=["children"],bx=["getFormProps"];F.forwardRef(function(e,n){var r=e.children,a=hE(e,gx),o=function(e){var t=Gb(hE(e,hx)),n=t.activeStep,r=t.isLastStep,a=t.nextStep,o=F.useState({}),i=o[0],s=o[1],l=F.useCallback(function(o){try{var s=i[n];if(r)return Promise.resolve(null==e.onSubmit?void 0:e.onSubmit(o).then(function(){u(vE({},s,{isCompleted:!0}))}).then(a));var l=function(e,n){try{var r=Promise.resolve(null==s.onSubmit?void 0:s.onSubmit(o,t)).then(function(){a()})}catch(e){return}return r&&r.then?r.then(void 0,function(){}):r}();return Promise.resolve(l&&l.then?l.then(function(){}):void 0)}catch(o){return Promise.reject(o)}},[i,n,r]),c=F.useCallback(function(){var e=i[n];return{onSubmit:l,schema:null==e?void 0:e.schema,resolver:null==e?void 0:e.resolver}},[i,l,n]),u=F.useCallback(function(e){s(function(t){var n;return vE({},t,((n={})[e.name]=e,n))})},[i]);return vE({getFormProps:c,updateStep:u,steps:i},t)}(e),i=o.getFormProps,s=hE(o,bx),l=F.useMemo(function(){return s},[s]);return F.createElement(Yb,{value:l},/*#__PURE__*/F.createElement(yx,{value:l},/*#__PURE__*/F.createElement(DE,vE({ref:n},a,i()),t.runIfFn(r,o))))});var Ex=function(e){return TE(e.properties)};exports.jsonSchemaForm=function(t){return{schema:t,fieldResolver:Ex(t),resolver:e.ajvResolver(t)}};
1
+ var e=require("@hookform/resolvers/ajv"),t=require("@chakra-ui/utils"),r=require("react-hook-form");function n(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(r){if("default"!==r&&!(r in e)){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}})}),e}function a(e){var t={exports:{}};return e(t,t.exports),t.exports}var o=Symbol.for("react.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),h=Symbol.iterator,g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,b={};function x(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||g}function E(){}function k(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||g}x.prototype.isReactComponent={},x.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},x.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},E.prototype=x.prototype;var _=k.prototype=new E;_.constructor=k,y(_,x.prototype),_.isPureReactComponent=!0;var w=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function R(e,t,r){var n,a={},i=null,s=null;if(null!=t)for(n in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)S.call(t,n)&&!O.hasOwnProperty(n)&&(a[n]=t[n]);var l=arguments.length-2;if(1===l)a.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(n in l=e.defaultProps)void 0===a[n]&&(a[n]=l[n]);return{$$typeof:o,type:e,key:i,ref:s,props:a,_owner:C.current}}function A(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var I=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function N(e,t,r,n,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case o:case i:l=!0}}if(l)return a=a(l=e),e=""===n?"."+T(l,0):n,w(a)?(r="",null!=e&&(r=e.replace(I,"$&/")+"/"),N(a,t,r,"",function(e){return e})):null!=a&&(A(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,r+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(I,"$&/")+"/")+e)),t.push(a)),1;if(l=0,n=""===n?".":n+":",w(e))for(var c=0;c<e.length;c++){var u=n+T(s=e[c],c);l+=N(s,t,r,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=N(s=s.value,t,r,u=n+T(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function P(e,t,r){if(null==e)return e;var n=[],a=0;return N(e,n,"","",function(e){return t.call(r,e,a++)}),n}function L(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var D={current:null},M={transition:null},j={map:P,forEach:function(e,t,r){P(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!A(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},V={Children:j,Component:x,Fragment:s,Profiler:c,PureComponent:k,StrictMode:l,Suspense:f,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:D,ReactCurrentBatchConfig:M,ReactCurrentOwner:C},cloneElement:function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=y({},e.props),a=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=C.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)S.call(t,c)&&!O.hasOwnProperty(c)&&(n[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)n.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];n.children=l}return{$$typeof:o,type:e.type,key:a,ref:i,props:n,_owner:s}},createContext:function(e){return(e={$$typeof:d,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},createElement:R,createFactory:function(e){var t=R.bind(null,e);return t.type=e,t},createRef:function(){return{current:null}},forwardRef:function(e){return{$$typeof:p,render:e}},isValidElement:A,lazy:function(e){return{$$typeof:v,_payload:{_status:-1,_result:e},_init:L}},memo:function(e,t){return{$$typeof:m,type:e,compare:void 0===t?null:t}},startTransition:function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},unstable_act:function(){throw Error("act(...) is not supported in production builds of React.")},useCallback:function(e,t){return D.current.useCallback(e,t)},useContext:function(e){return D.current.useContext(e)},useDebugValue:function(){},useDeferredValue:function(e){return D.current.useDeferredValue(e)},useEffect:function(e,t){return D.current.useEffect(e,t)},useId:function(){return D.current.useId()},useImperativeHandle:function(e,t,r){return D.current.useImperativeHandle(e,t,r)},useInsertionEffect:function(e,t){return D.current.useInsertionEffect(e,t)},useLayoutEffect:function(e,t){return D.current.useLayoutEffect(e,t)},useMemo:function(e,t){return D.current.useMemo(e,t)},useReducer:function(e,t,r){return D.current.useReducer(e,t,r)},useRef:function(e){return D.current.useRef(e)},useState:function(e){return D.current.useState(e)},useSyncExternalStore:function(e,t,r){return D.current.useSyncExternalStore(e,t,r)},useTransition:function(){return D.current.useTransition()},version:"18.2.0"},B=a(function(e,t){"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),v=Symbol.iterator;function h(e){if(null===e||"object"!=typeof e)return null;var t=v&&e[v]||e["@@iterator"];return"function"==typeof t?t:null}var g={current:null},y={transition:null},b={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},x={current:null},E={},k=null;function _(e){k=e}E.setExtraStackFrame=function(e){k=e},E.getCurrentStack=null,E.getStackAddendum=function(){var e="";k&&(e+=k);var t=E.getCurrentStack;return t&&(e+=t()||""),e};var w={ReactCurrentDispatcher:g,ReactCurrentBatchConfig:y,ReactCurrentOwner:x};function S(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];O("warn",e,r)}function C(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];O("error",e,r)}function O(e,t,r){var n=w.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]));var a=r.map(function(e){return String(e)});a.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,a)}w.ReactDebugCurrentFrame=E,w.ReactCurrentActQueue=b;var R={};function A(e,t){var r=e.constructor,n=r&&(r.displayName||r.name)||"ReactClass",a=n+"."+t;R[a]||(C("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,n),R[a]=!0)}var I={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){A(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){A(e,"replaceState")},enqueueSetState:function(e,t,r,n){A(e,"setState")}},T=Object.assign,N={};function P(e,t,r){this.props=e,this.context=t,this.refs=N,this.updater=r||I}Object.freeze(N),P.prototype.isReactComponent={},P.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},P.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var L={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},D=function(e,t){Object.defineProperty(P.prototype,e,{get:function(){S("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var M in L)L.hasOwnProperty(M)&&D(M,L[M]);function j(){}function V(e,t,r){this.props=e,this.context=t,this.refs=N,this.updater=r||I}j.prototype=P.prototype;var B=V.prototype=new j;B.constructor=V,T(B,P.prototype),B.isPureReactComponent=!0;var F=Array.isArray;function z(e){return F(e)}function W(e){return""+e}function H(e){if(function(e){try{return W(e),!1}catch(e){return!0}}(e))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),W(e)}function U(e){return e.displayName||"Context"}function $(e){if(null==e)return null;if("number"==typeof e.tag&&C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case a:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return U(e)+".Consumer";case s:return U(e._context)+".Provider";case c:return function(e,t,r){var n=e.displayName;if(n)return n;var a=t.displayName||t.name||"";return""!==a?"ForwardRef("+a+")":"ForwardRef"}(e,e.render);case p:var t=e.displayName||null;return null!==t?t:$(e.type)||"Memo";case f:var r=e._payload,m=e._init;try{return $(m(r))}catch(e){return null}}return null}var q,Y,G,Z=Object.prototype.hasOwnProperty,X={key:!0,ref:!0,__self:!0,__source:!0};function K(e){if(Z.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function J(e){if(Z.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function Q(e,t){var r=function(){q||(q=!0,C("%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)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}function ee(e,t){var r=function(){Y||(Y=!0,C("%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)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}function te(e){if("string"==typeof e.ref&&x.current&&e.__self&&x.current.stateNode!==e.__self){var t=$(x.current.type);G[t]||(C('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',t,e.ref),G[t]=!0)}}G={};var re=function(e,t,n,a,o,i,s){var l={$$typeof:r,type:e,key:t,ref:n,props:s,_owner:i,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function ne(e,t,r){var n,a={},o=null,i=null,s=null,l=null;if(null!=t)for(n in K(t)&&(i=t.ref,te(t)),J(t)&&(H(t.key),o=""+t.key),s=void 0===t.__self?null:t.__self,l=void 0===t.__source?null:t.__source,t)Z.call(t,n)&&!X.hasOwnProperty(n)&&(a[n]=t[n]);var c=arguments.length-2;if(1===c)a.children=r;else if(c>1){for(var u=Array(c),d=0;d<c;d++)u[d]=arguments[d+2];Object.freeze&&Object.freeze(u),a.children=u}if(e&&e.defaultProps){var p=e.defaultProps;for(n in p)void 0===a[n]&&(a[n]=p[n])}if(o||i){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;o&&Q(a,f),i&&ee(a,f)}return re(e,o,i,s,l,x.current,a)}function ae(e,t,r){if(null==e)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n,a,o=T({},e.props),i=e.key,s=e.ref,l=e._self,c=e._source,u=e._owner;if(null!=t)for(n in K(t)&&(s=t.ref,u=x.current),J(t)&&(H(t.key),i=""+t.key),e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)Z.call(t,n)&&!X.hasOwnProperty(n)&&(o[n]=void 0===t[n]&&void 0!==a?a[n]:t[n]);var d=arguments.length-2;if(1===d)o.children=r;else if(d>1){for(var p=Array(d),f=0;f<d;f++)p[f]=arguments[f+2];o.children=p}return re(e.type,i,s,l,c,u,o)}function oe(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var ie,se=!1,le=/\/+/g;function ce(e){return e.replace(le,"$&/")}function ue(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(H(e.key),r={"=":"=0",":":"=2"},"$"+(""+e.key).replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var r}function de(e,t,a,o,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l,c,u,d=!1;if(null===e)d=!0;else switch(s){case"string":case"number":d=!0;break;case"object":switch(e.$$typeof){case r:case n:d=!0}}if(d){var p=e,f=i(p),m=""===o?"."+ue(p,0):o;if(z(f)){var v="";null!=m&&(v=ce(m)+"/"),de(f,t,v,"",function(e){return e})}else null!=f&&(oe(f)&&(!f.key||p&&p.key===f.key||H(f.key),l=f,c=a+(!f.key||p&&p.key===f.key?"":ce(""+f.key)+"/")+m,f=re(l.type,c,l.ref,l._self,l._source,l._owner,l.props)),t.push(f));return 1}var g=0,y=""===o?".":o+":";if(z(e))for(var b=0;b<e.length;b++)g+=de(u=e[b],t,a,y+ue(u,b),i);else{var x=h(e);if("function"==typeof x){var E=e;x===E.entries&&(se||S("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),se=!0);for(var k,_=x.call(E),w=0;!(k=_.next()).done;)g+=de(u=k.value,t,a,y+ue(u,w++),i)}else if("object"===s){var C=String(e);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===C?"object with keys {"+Object.keys(e).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.")}}return g}function pe(e,t,r){if(null==e)return e;var n=[],a=0;return de(e,n,"","",function(e){return t.call(r,e,a++)}),n}function fe(e){if(-1===e._status){var t=(0,e._result)();if(t.then(function(t){if(0===e._status||-1===e._status){var r=e;r._status=1,r._result=t}},function(t){if(0===e._status||-1===e._status){var r=e;r._status=2,r._result=t}}),-1===e._status){var r=e;r._status=0,r._result=t}}if(1===e._status){var n=e._result;return void 0===n&&C("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",n),"default"in n||C("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",n),n.default}throw e._result}function me(e){return"string"==typeof e||"function"==typeof e||e===a||e===i||e===o||e===u||e===d||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===ie||void 0!==e.getModuleId)}function ve(){var e=g.current;return null===e&&C("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),e}ie=Symbol.for("react.module.reference");var he,ge,ye,be,xe,Ee,ke,_e=0;function we(){}we.__reactDisabledLog=!0;var Se,Ce=w.ReactCurrentDispatcher;function Oe(e,t,r){if(void 0===Se)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);Se=n&&n[1]||""}return"\n"+Se+e}var Re,Ae=!1,Ie="function"==typeof WeakMap?WeakMap:Map;function Te(e,t){if(!e||Ae)return"";var r,n=Re.get(e);if(void 0!==n)return n;Ae=!0;var a,o=Error.prepareStackTrace;Error.prepareStackTrace=void 0,a=Ce.current,Ce.current=null,function(){if(0===_e){he=console.log,ge=console.info,ye=console.warn,be=console.error,xe=console.group,Ee=console.groupCollapsed,ke=console.groupEnd;var e={configurable:!0,enumerable:!0,value:we,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}_e++}();try{if(t){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(i,[])}catch(e){r=e}Reflect.construct(e,[],i)}else{try{i.call()}catch(e){r=e}e.call(i.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=r.stack.split("\n"),c=s.length-1,u=l.length-1;c>=1&&u>=0&&s[c]!==l[u];)u--;for(;c>=1&&u>=0;c--,u--)if(s[c]!==l[u]){if(1!==c||1!==u)do{if(c--,--u<0||s[c]!==l[u]){var d="\n"+s[c].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&Re.set(e,d),d}}while(c>=1&&u>=0);break}}}finally{Ae=!1,Ce.current=a,function(){if(0==--_e){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:T({},e,{value:he}),info:T({},e,{value:ge}),warn:T({},e,{value:ye}),error:T({},e,{value:be}),group:T({},e,{value:xe}),groupCollapsed:T({},e,{value:Ee}),groupEnd:T({},e,{value:ke})})}_e<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=o}var p=e?e.displayName||e.name:"",f=p?Oe(p):"";return"function"==typeof e&&Re.set(e,f),f}function Ne(e,t,r){if(null==e)return"";if("function"==typeof e)return Te(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return Oe(e);switch(e){case u:return Oe("Suspense");case d:return Oe("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return Te(e.render,!1);case p:return Ne(e.type,t,r);case f:var n=e._payload,a=e._init;try{return Ne(a(n),t,r)}catch(e){}}return""}Re=new Ie;var Pe,Le={},De=w.ReactDebugCurrentFrame;function Me(e){if(e){var t=e._owner,r=Ne(e.type,e._source,t?t.type:null);De.setExtraStackFrame(r)}else De.setExtraStackFrame(null)}function je(e){if(e){var t=e._owner;_(Ne(e.type,e._source,t?t.type:null))}else _(null)}function Ve(){if(x.current){var e=$(x.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function Be(e){return null!=e&&void 0!==(t=e.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":"";var t}Pe=!1;var Fe={};function ze(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function(e){var t=Ve();if(!t){var r="string"==typeof e?e:e.displayName||e.name;r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}(t);if(!Fe[r]){Fe[r]=!0;var n="";e&&e._owner&&e._owner!==x.current&&(n=" It was passed a child from "+$(e._owner.type)+"."),je(e),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),je(null)}}}function We(e,t){if("object"==typeof e)if(z(e))for(var r=0;r<e.length;r++){var n=e[r];oe(n)&&ze(n,t)}else if(oe(e))e._store&&(e._store.validated=!0);else if(e){var a=h(e);if("function"==typeof a&&a!==e.entries)for(var o,i=a.call(e);!(o=i.next()).done;)oe(o.value)&&ze(o.value,t)}}function He(e){var t,r=e.type;if(null!=r&&"string"!=typeof r){if("function"==typeof r)t=r.propTypes;else{if("object"!=typeof r||r.$$typeof!==c&&r.$$typeof!==p)return;t=r.propTypes}if(t){var n=$(r);!function(e,t,r,n,a){var o=Function.call.bind(Z);for(var i in e)if(o(e,i)){var s=void 0;try{if("function"!=typeof e[i]){var l=Error((n||"React class")+": prop type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[i](t,i,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(Me(a),C("%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).",n||"React class",r,i,typeof s),Me(null)),s instanceof Error&&!(s.message in Le)&&(Le[s.message]=!0,Me(a),C("Failed %s type: %s",r,s.message),Me(null))}}(t,e.props,"prop",n,e)}else void 0===r.PropTypes||Pe||(Pe=!0,C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",$(r)||"Unknown"));"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ue(e){for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){je(e),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),je(null);break}}null!==e.ref&&(je(e),C("Invalid attribute `ref` supplied to `React.Fragment`."),je(null))}function $e(e,t,n){var o=me(e);if(!o){var i="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(i+=" 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 s,l=Be(t);i+=l||Ve(),null===e?s="null":z(e)?s="array":void 0!==e&&e.$$typeof===r?(s="<"+($(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,C("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,i)}var c=ne.apply(this,arguments);if(null==c)return c;if(o)for(var u=2;u<arguments.length;u++)We(arguments[u],e);return e===a?Ue(c):He(c),c}var qe=!1,Ye=!1,Ge=null,Ze=0,Xe=!1;function Ke(e){e!==Ze-1&&C("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Ze=e}function Je(t,r,n){var a=b.current;if(null!==a)try{et(a),function(o){if(null===Ge)try{var i=("require"+Math.random()).slice(0,7);Ge=(e&&e[i]).call(e,"timers").setImmediate}catch(e){Ge=function(e){!1===Ye&&(Ye=!0,"undefined"==typeof MessageChannel&&C("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}Ge(function(){0===a.length?(b.current=null,r(t)):Je(t,r,n)})}()}catch(e){n(e)}else r(t)}var Qe=!1;function et(e){if(!Qe){Qe=!0;var t=0;try{for(;t<e.length;t++){var r=e[t];do{r=r(!0)}while(null!==r)}e.length=0}catch(r){throw e=e.slice(t+1),r}finally{Qe=!1}}}var tt=$e,rt={map:pe,forEach:function(e,t,r){pe(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return pe(e,function(){t++}),t},toArray:function(e){return pe(e,function(e){return e})||[]},only:function(e){if(!oe(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}};t.Children=rt,t.Component=P,t.Fragment=a,t.Profiler=i,t.PureComponent=V,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=w,t.cloneElement=function(e,t,r){for(var n=ae.apply(this,arguments),a=2;a<arguments.length;a++)We(arguments[a],n.type);return He(n),n},t.createContext=function(e){var t={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:s,_context:t};var r=!1,n=!1,a=!1,o={$$typeof:l,_context:t};return Object.defineProperties(o,{Provider:{get:function(){return n||(n=!0,C("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return r||(r=!0,C("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){a||(S("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),a=!0)}}}),t.Consumer=o,t._currentRenderer=null,t._currentRenderer2=null,t},t.createElement=tt,t.createFactory=function(e){var t=$e.bind(null,e);return t.type=e,qe||(qe=!0,S("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return S("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===p?C("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?C("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&C("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||C("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,r={$$typeof:c,render:e};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(r){t=r,e.name||e.displayName||(e.displayName=r)}}),r},t.isValidElement=oe,t.lazy=function(e){var t,r,n={$$typeof:f,_payload:{_status:-1,_result:e},_init:fe};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){C("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){C("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},t.memo=function(e,t){me(e)||C("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var r,n={$$typeof:p,type:e,compare:void 0===t?null:t};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(t){r=t,e.name||e.displayName||(e.displayName=t)}}),n},t.startTransition=function(e,t){var r=y.transition;y.transition={};var n=y.transition;y.transition._updatedFibers=new Set;try{e()}finally{y.transition=r,null===r&&n._updatedFibers&&(n._updatedFibers.size>10&&S("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),n._updatedFibers.clear())}},t.unstable_act=function(e){var t=Ze;Ze++,null===b.current&&(b.current=[]);var r,n=b.isBatchingLegacy;try{if(b.isBatchingLegacy=!0,r=e(),!n&&b.didScheduleLegacyUpdate){var a=b.current;null!==a&&(b.didScheduleLegacyUpdate=!1,et(a))}}catch(e){throw Ke(t),e}finally{b.isBatchingLegacy=n}if(null!==r&&"object"==typeof r&&"function"==typeof r.then){var o=r,i=!1,s={then:function(e,r){i=!0,o.then(function(n){Ke(t),0===Ze?Je(n,e,r):e(n)},function(e){Ke(t),r(e)})}};return Xe||"undefined"==typeof Promise||Promise.resolve().then(function(){}).then(function(){i||(Xe=!0,C("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),s}var l=r;if(Ke(t),0===Ze){var c=b.current;return null!==c&&(et(c),b.current=null),{then:function(e,t){null===b.current?(b.current=[],Je(l,e,t)):e(l)}}}return{then:function(e,t){e(l)}}},t.useCallback=function(e,t){return ve().useCallback(e,t)},t.useContext=function(e){var t=ve();if(void 0!==e._context){var r=e._context;r.Consumer===e?C("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&C("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)},t.useDebugValue=function(e,t){return ve().useDebugValue(e,t)},t.useDeferredValue=function(e){return ve().useDeferredValue(e)},t.useEffect=function(e,t){return ve().useEffect(e,t)},t.useId=function(){return ve().useId()},t.useImperativeHandle=function(e,t,r){return ve().useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return ve().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return ve().useLayoutEffect(e,t)},t.useMemo=function(e,t){return ve().useMemo(e,t)},t.useReducer=function(e,t,r){return ve().useReducer(e,t,r)},t.useRef=function(e){return ve().useRef(e)},t.useState=function(e){return ve().useState(e)},t.useSyncExternalStore=function(e,t,r){return ve().useSyncExternalStore(e,t,r)},t.useTransition=function(){return ve().useTransition()},t.version="18.2.0","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}),F=a(function(e){e.exports="production"===process.env.NODE_ENV?V:B}),z=/*#__PURE__*/n({__proto__:null,default:F},[F]),W=/*#__PURE__*/function(){function e(e){var t=this;this._insertTag=function(e){t.container.insertBefore(e,0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if("production"!==process.env.NODE_ENV){var r=64===e.charCodeAt(0)&&105===e.charCodeAt(1);r&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!r}if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(t){"production"===process.env.NODE_ENV||/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),H="-ms-",U="-webkit-",$=Math.abs,q=String.fromCharCode,Y=Object.assign;function G(e){return e.trim()}function Z(e,t,r){return e.replace(t,r)}function X(e,t){return e.indexOf(t)}function K(e,t){return 0|e.charCodeAt(t)}function J(e,t,r){return e.slice(t,r)}function Q(e){return e.length}function ee(e){return e.length}function te(e,t){return t.push(e),e}var re=1,ne=1,ae=0,oe=0,ie=0,se="";function le(e,t,r,n,a,o,i){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:re,column:ne,length:i,return:""}}function ce(e,t){return Y(le("",null,null,"",null,null,0),e,{length:-e.length},t)}function ue(){return ie=oe>0?K(se,--oe):0,ne--,10===ie&&(ne=1,re--),ie}function de(){return ie=oe<ae?K(se,oe++):0,ne++,10===ie&&(ne=1,re++),ie}function pe(){return K(se,oe)}function fe(){return oe}function me(e,t){return J(se,e,t)}function ve(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function he(e){return re=ne=1,ae=Q(se=e),oe=0,[]}function ge(e){return se="",e}function ye(e){return G(me(oe-1,Ee(91===e?e+2:40===e?e+1:e)))}function be(e){for(;(ie=pe())&&ie<33;)de();return ve(e)>2||ve(ie)>3?"":" "}function xe(e,t){for(;--t&&de()&&!(ie<48||ie>102||ie>57&&ie<65||ie>70&&ie<97););return me(e,fe()+(t<6&&32==pe()&&32==de()))}function Ee(e){for(;de();)switch(ie){case e:return oe;case 34:case 39:34!==e&&39!==e&&Ee(ie);break;case 40:41===e&&Ee(e);break;case 92:de()}return oe}function ke(e,t){for(;de()&&e+ie!==57&&(e+ie!==84||47!==pe()););return"/*"+me(t,oe-1)+"*"+q(47===e?e:de())}function _e(e){for(;!ve(pe());)de();return me(e,oe)}function we(e){return ge(Se("",null,null,null,[""],e=he(e),0,[0],e))}function Se(e,t,r,n,a,o,i,s,l){for(var c=0,u=0,d=i,p=0,f=0,m=0,v=1,h=1,g=1,y=0,b="",x=a,E=o,k=n,_=b;h;)switch(m=y,y=de()){case 40:if(108!=m&&58==_.charCodeAt(d-1)){-1!=X(_+=Z(ye(y),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:_+=ye(y);break;case 9:case 10:case 13:case 32:_+=be(m);break;case 92:_+=xe(fe()-1,7);continue;case 47:switch(pe()){case 42:case 47:te(Oe(ke(de(),fe()),t,r),l);break;default:_+="/"}break;case 123*v:s[c++]=Q(_)*g;case 125*v:case 59:case 0:switch(y){case 0:case 125:h=0;case 59+u:f>0&&Q(_)-d&&te(f>32?Re(_+";",n,r,d-1):Re(Z(_," ","")+";",n,r,d-2),l);break;case 59:_+=";";default:if(te(k=Ce(_,t,r,c,u,a,s,b,x=[],E=[],d),o),123===y)if(0===u)Se(_,t,k,k,x,o,d,s,E);else switch(p){case 100:case 109:case 115:Se(e,k,k,n&&te(Ce(e,k,k,0,0,a,s,b,a,x=[],d),E),a,E,d,s,n?x:E);break;default:Se(_,k,k,k,[""],E,0,s,E)}}c=u=f=0,v=g=1,b=_="",d=i;break;case 58:d=1+Q(_),f=m;default:if(v<1)if(123==y)--v;else if(125==y&&0==v++&&125==ue())continue;switch(_+=q(y),y*v){case 38:g=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(Q(_)-1)*g,g=1;break;case 64:45===pe()&&(_+=ye(de())),p=pe(),u=d=Q(b=_+=_e(fe())),y++;break;case 45:45===m&&2==Q(_)&&(v=0)}}return o}function Ce(e,t,r,n,a,o,i,s,l,c,u){for(var d=a-1,p=0===a?o:[""],f=ee(p),m=0,v=0,h=0;m<n;++m)for(var g=0,y=J(e,d+1,d=$(v=i[m])),b=e;g<f;++g)(b=G(v>0?p[g]+" "+y:Z(y,/&\f/g,p[g])))&&(l[h++]=b);return le(e,t,r,0===a?"rule":s,l,c,u)}function Oe(e,t,r){return le(e,t,r,"comm",q(ie),J(e,2,-2),0)}function Re(e,t,r,n){return le(e,t,r,"decl",J(e,0,n),J(e,n+1,-1),n)}function Ae(e,t){switch(function(e,t){return(((t<<2^K(e,0))<<2^K(e,1))<<2^K(e,2))<<2^K(e,3)}(e,t)){case 5103:return U+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return U+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+"-moz-"+e+H+e+e;case 6828:case 4268:return U+e+H+e+e;case 6165:return U+e+H+"flex-"+e+e;case 5187:return U+e+Z(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return U+e+H+"flex-item-"+Z(e,/flex-|-self/,"")+e;case 4675:return U+e+H+"flex-line-pack"+Z(e,/align-content|flex-|-self/,"")+e;case 5548:return U+e+H+Z(e,"shrink","negative")+e;case 5292:return U+e+H+Z(e,"basis","preferred-size")+e;case 6060:return U+"box-"+Z(e,"-grow","")+U+e+H+Z(e,"grow","positive")+e;case 4554:return U+Z(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return Z(Z(Z(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return Z(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return Z(Z(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4095:case 3583:case 4068:case 2532:return Z(e,/(.+)-inline(.+)/,U+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Q(e)-1-t>6)switch(K(e,t+1)){case 109:if(45!==K(e,t+4))break;case 102:return Z(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==K(e,t+3)?"$3":"$2-$3"))+e;case 115:return~X(e,"stretch")?Ae(Z(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==K(e,t+1))break;case 6444:switch(K(e,Q(e)-3-(~X(e,"!important")&&10))){case 107:return Z(e,":",":"+U)+e;case 101:return Z(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+U+(45===K(e,14)?"inline-":"")+"box$3$1"+U+"$2$3$1"+H+"$2box$3")+e}break;case 5936:switch(K(e,t+11)){case 114:return U+e+H+Z(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+H+Z(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+H+Z(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return U+e+H+e+e}return e}function Ie(e,t){for(var r="",n=ee(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function Te(e,t,r,n){switch(e.type){case"@import":case"decl":return e.return=e.return||e.value;case"comm":return"";case"@keyframes":return e.return=e.value+"{"+Ie(e.children,n)+"}";case"rule":e.value=e.props.join(",")}return Q(r=Ie(e.children,n))?e.return=e.value+"{"+r+"}":""}function Ne(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var Pe=function(e,t,r){for(var n=0,a=0;n=a,a=pe(),38===n&&12===a&&(t[r]=1),!ve(a);)de();return me(e,oe)},Le=/* #__PURE__ */new WeakMap,De=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Le.get(r))&&!n){Le.set(e,!0);for(var a=[],o=function(e,t){return ge(function(e,t){var r=-1,n=44;do{switch(ve(n)){case 0:38===n&&12===pe()&&(t[r]=1),e[r]+=Pe(oe-1,t,r);break;case 2:e[r]+=ye(n);break;case 4:if(44===n){e[++r]=58===pe()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=q(n)}}while(n=de());return e}(he(e),t))}(t,a),i=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<i.length;c++,l++)e.props[l]=a[s]?o[s].replace(/&\f/g,i[c]):i[c]+" "+o[s]}}},Me=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},je=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},Ve=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Be=function(e,t,r){je(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Ve(e)):function(e,t){for(var r=e-1;r>=0;r--)if(!je(t[r]))return!0;return!1}(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Ve(e)))},Fe=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case"decl":e.return=Ae(e.value,e.length);break;case"@keyframes":return Ie([ce(e,{value:Z(e.value,"@","@"+U)})],n);case"rule":if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Ie([ce(e,{props:[Z(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return Ie([ce(e,{props:[Z(t,/:(plac\w+)/,":-webkit-input-$1")]}),ce(e,{props:[Z(t,/:(plac\w+)/,":-moz-$1")]}),ce(e,{props:[Z(t,/:(plac\w+)/,H+"input-$1")]})],n)}return""})}}],ze=function(e){var t=e.key;if("production"!==process.env.NODE_ENV&&!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var n=e.stylisPlugins||Fe;if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var a,o,i={},s=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)i[t[r]]=!0;s.push(e)});var l=[De,Me];"production"!==process.env.NODE_ENV&&l.push(function(e){return function(t,r,n){if("rule"===t.type){var a,o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o&&!0!==e.compat){var i=r>0?n[r-1]:null;if(i&&function(e){return!!e&&"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1}((a=i.children).length?a[a.length-1]:null))return;o.forEach(function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')})}}}}({get compat(){return f.compat}}),Be);var c,u,d=[Te,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?c.insert(e.return):e.value&&"comm"!==e.type&&c.insert(e.value+"{}"))}:(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],p=function(e){var t=ee(e);return function(r,n,a,o){for(var i="",s=0;s<t;s++)i+=e[s](r,n,a,o)||"";return i}}(l.concat(n,d));o=function(e,t,r,n){c=r,"production"!==process.env.NODE_ENV&&void 0!==t.map&&(c={insert:function(e){r.insert(e+t.map)}}),Ie(we(e?e+"{"+t.styles+"}":t.styles),p),n&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new W({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return f.sheet.hydrate(s),f};function We(){return We=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},We.apply(this,arguments)}var He="function"==typeof Symbol&&Symbol.for,Ue=He?Symbol.for("react.element"):60103,$e=He?Symbol.for("react.portal"):60106,qe=He?Symbol.for("react.fragment"):60107,Ye=He?Symbol.for("react.strict_mode"):60108,Ge=He?Symbol.for("react.profiler"):60114,Ze=He?Symbol.for("react.provider"):60109,Xe=He?Symbol.for("react.context"):60110,Ke=He?Symbol.for("react.async_mode"):60111,Je=He?Symbol.for("react.concurrent_mode"):60111,Qe=He?Symbol.for("react.forward_ref"):60112,et=He?Symbol.for("react.suspense"):60113,tt=He?Symbol.for("react.suspense_list"):60120,rt=He?Symbol.for("react.memo"):60115,nt=He?Symbol.for("react.lazy"):60116,at=He?Symbol.for("react.block"):60121,ot=He?Symbol.for("react.fundamental"):60117,it=He?Symbol.for("react.responder"):60118,st=He?Symbol.for("react.scope"):60119;function lt(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ue:switch(e=e.type){case Ke:case Je:case qe:case Ge:case Ye:case et:return e;default:switch(e=e&&e.$$typeof){case Xe:case Qe:case nt:case rt:case Ze:return e;default:return t}}case $e:return t}}}function ct(e){return lt(e)===Je}var ut={AsyncMode:Ke,ConcurrentMode:Je,ContextConsumer:Xe,ContextProvider:Ze,Element:Ue,ForwardRef:Qe,Fragment:qe,Lazy:nt,Memo:rt,Portal:$e,Profiler:Ge,StrictMode:Ye,Suspense:et,isAsyncMode:function(e){return ct(e)||lt(e)===Ke},isConcurrentMode:ct,isContextConsumer:function(e){return lt(e)===Xe},isContextProvider:function(e){return lt(e)===Ze},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ue},isForwardRef:function(e){return lt(e)===Qe},isFragment:function(e){return lt(e)===qe},isLazy:function(e){return lt(e)===nt},isMemo:function(e){return lt(e)===rt},isPortal:function(e){return lt(e)===$e},isProfiler:function(e){return lt(e)===Ge},isStrictMode:function(e){return lt(e)===Ye},isSuspense:function(e){return lt(e)===et},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===qe||e===Je||e===Ge||e===Ye||e===et||e===tt||"object"==typeof e&&null!==e&&(e.$$typeof===nt||e.$$typeof===rt||e.$$typeof===Ze||e.$$typeof===Xe||e.$$typeof===Qe||e.$$typeof===ot||e.$$typeof===it||e.$$typeof===st||e.$$typeof===at)},typeOf:lt},dt=a(function(e,t){"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,r=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:var f=e.type;switch(f){case c:case u:case a:case i:case o:case p:return f;default:var h=f&&f.$$typeof;switch(h){case l:case d:case v:case m:case s:return h;default:return t}}case n:return t}}}var E=u,k=l,_=s,w=r,S=d,C=a,O=v,R=m,A=n,I=i,T=o,N=p,P=!1;function L(e){return x(e)===u}t.AsyncMode=c,t.ConcurrentMode=E,t.ContextConsumer=k,t.ContextProvider=_,t.Element=w,t.ForwardRef=S,t.Fragment=C,t.Lazy=O,t.Memo=R,t.Portal=A,t.Profiler=I,t.StrictMode=T,t.Suspense=N,t.isAsyncMode=function(e){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(e)||x(e)===c},t.isConcurrentMode=L,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===a},t.isLazy=function(e){return x(e)===v},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===n},t.isProfiler=function(e){return x(e)===i},t.isStrictMode=function(e){return x(e)===o},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===u||e===i||e===o||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===g||e.$$typeof===y||e.$$typeof===b||e.$$typeof===h)},t.typeOf=x}()});function pt(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "}),n}a(function(e){e.exports="production"===process.env.NODE_ENV?ut:dt});var ft=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},mt=function(e,t,r){ft(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+n:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}},vt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ht="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",gt=/[A-Z]|^ms/g,yt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bt=function(e){return 45===e.charCodeAt(1)},xt=function(e){return null!=e&&"boolean"!=typeof e},Et=/* #__PURE__ */Ne(function(e){return bt(e)?e:e.replace(gt,"-$&").toLowerCase()}),kt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(yt,function(e,t,r){return Nt={name:t,styles:r,next:Nt},t})}return 1===vt[e]||bt(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var _t=/(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,wt=["normal","none","initial","inherit","unset"],St=kt,Ct=/^-ms-/,Ot=/-(.)/g,Rt={};kt=function(e,t){if("content"===e&&("string"!=typeof t||-1===wt.indexOf(t)&&!_t.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var r=St(e,t);return""===r||bt(e)||-1===e.indexOf("-")||void 0!==Rt[e]||(Rt[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Ct,"ms-").replace(Ot,function(e,t){return t.toUpperCase()})+"?")),r}}var At="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function It(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===r.toString())throw new Error(At);return r}switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return Nt={name:r.name,styles:r.styles,next:Nt},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)Nt={name:n.name,styles:n.styles,next:Nt},n=n.next;var a=r.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==r.map&&(a+=r.map),a}return function(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=It(e,t,r[a])+";";else for(var o in r){var i=r[o];if("object"!=typeof i)null!=t&&void 0!==t[i]?n+=o+"{"+t[i]+"}":xt(i)&&(n+=Et(o)+":"+kt(o,i)+";");else{if("NO_COMPONENT_SELECTOR"===o&&"production"!==process.env.NODE_ENV)throw new Error(At);if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=It(e,t,i);switch(o){case"animation":case"animationName":n+=Et(o)+":"+s+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===o&&console.error("You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key)."),n+=o+"{"+s+"}"}}else for(var l=0;l<i.length;l++)xt(i[l])&&(n+=Et(o)+":"+kt(o,i[l])+";")}}return n}(e,t,r);case"function":if(void 0!==e){var o=Nt,i=r(e);return Nt=o,It(e,t,i)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var s=[],l=r.replace(yt,function(e,t,r){var n="animation"+s.length;return s.push("const "+n+" = keyframes`"+r.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+n+"}"});s.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(s,["`"+l+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+l+"`")}}if(null==t)return r;var c=t[r];return void 0!==c?c:r}var Tt,Nt,Pt=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(Tt=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Lt=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,a="";Nt=void 0;var o,i=e[0];null==i||void 0===i.raw?(n=!1,a+=It(r,t,i)):("production"!==process.env.NODE_ENV&&void 0===i[0]&&console.error(ht),a+=i[0]);for(var s=1;s<e.length;s++)a+=It(r,t,e[s]),n&&("production"!==process.env.NODE_ENV&&void 0===i[s]&&console.error(ht),a+=i[s]);"production"!==process.env.NODE_ENV&&(a=a.replace(Tt,function(e){return o=e,""})),Pt.lastIndex=0;for(var l,c="";null!==(l=Pt.exec(a));)c+="-"+l[1];var u=function(e){for(var t,r=0,n=0,a=e.length;a>=4;++n,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(a){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(a)+c;return"production"!==process.env.NODE_ENV?{name:u,styles:a,map:o,next:Nt,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:a,next:Nt}},Dt={}.hasOwnProperty,Mt=/* #__PURE__ */F.createContext("undefined"!=typeof HTMLElement?/* #__PURE__ */ze({key:"css"}):null);"production"!==process.env.NODE_ENV&&(Mt.displayName="EmotionCacheContext");var jt=function(e){/*#__PURE__*/
2
+ return F.forwardRef(function(t,r){var n=F.useContext(Mt);return e(t,n,r)})},Vt=/* #__PURE__ */F.createContext({});"production"!==process.env.NODE_ENV&&(Vt.displayName="EmotionThemeContext");var Bt=z.useInsertionEffect?z.useInsertionEffect:function(e){e()};function Ft(e){Bt(e)}var zt=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return ft(t,r,n),Ft(function(){return mt(t,r,n)}),null},Wt=/* #__PURE__ */jt(function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var a=e.__EMOTION_TYPE_PLEASE_DO_NOT_USE__,o=[n],i="";"string"==typeof e.className?i=pt(t.registered,o,e.className):null!=e.className&&(i=e.className+" ");var s=Lt(o,void 0,F.useContext(Vt));if("production"!==process.env.NODE_ENV&&-1===s.name.indexOf("-")){var l=e.__EMOTION_LABEL_PLEASE_DO_NOT_USE__;l&&(s=Lt([s,"label:"+l+";"]))}i+=t.key+"-"+s.name;var c={};for(var u in e)!Dt.call(e,u)||"css"===u||"__EMOTION_TYPE_PLEASE_DO_NOT_USE__"===u||"production"!==process.env.NODE_ENV&&"__EMOTION_LABEL_PLEASE_DO_NOT_USE__"===u||(c[u]=e[u]);return c.ref=r,c.className=i,/*#__PURE__*/F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement(zt,{cache:t,serialized:s,isStringTag:"string"==typeof a}),/*#__PURE__*/F.createElement(a,c))});"production"!==process.env.NODE_ENV&&(Wt.displayName="EmotionCssPropInternal");var Ht=z.useInsertionEffect?z.useInsertionEffect:F.useLayoutEffect,Ut=!1,$t=/* #__PURE__ */jt(function(e,t){"production"===process.env.NODE_ENV||Ut||!e.className&&!e.css||(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Ut=!0);var r=Lt([e.styles],void 0,F.useContext(Vt)),n=F.useRef();return Ht(function(){var e=t.key+"-global",a=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,i=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),null!==i&&(o=!0,i.setAttribute("data-emotion",e),a.hydrate([i])),n.current=[a,o],function(){a.flush()}},[t]),Ht(function(){var e=n.current,a=e[0];e[1]?e[1]=!1:(void 0!==r.next&&mt(t,r.next,!0),a.tags.length&&(a.before=a.tags[a.tags.length-1].nextElementSibling,a.flush()),t.insert("",r,a,!1))},[t,r.name]),null});function qt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Lt(t)}"production"!==process.env.NODE_ENV&&($t.displayName="EmotionGlobal");var Yt=function(){var e=qt.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},Gt=function e(t){for(var r=t.length,n=0,a="";n<r;n++){var o=t[n];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var s in"production"!==process.env.NODE_ENV&&void 0!==o.styles&&void 0!==o.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),i="",o)o[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=o}i&&(a&&(a+=" "),a+=i)}}return a};function Zt(e,t,r){var n=[],a=pt(e,n,r);return n.length<2?r:a+t(n)}var Xt=function(e){var t=e.cache,r=e.serializedArr;return Ft(function(){for(var e=0;e<r.length;e++)mt(t,r[e],!1)}),null},Kt=/* #__PURE__ */jt(function(e,t){var r=!1,n=[],a=function(){if(r&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var e=arguments.length,a=new Array(e),o=0;o<e;o++)a[o]=arguments[o];var i=Lt(a,t.registered);return n.push(i),ft(t,i,!1),t.key+"-"+i.name},o={css:a,cx:function(){if(r&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return Zt(t.registered,a,Gt(n))},theme:F.useContext(Vt)},i=e.children(o);return r=!0,/*#__PURE__*/F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement(Xt,{cache:t,serializedArr:n}),i)});if("production"!==process.env.NODE_ENV&&(Kt.displayName="EmotionClassNames"),"production"!==process.env.NODE_ENV&&"undefined"==typeof jest){var Jt="undefined"!=typeof globalThis?globalThis:window,Qt="__EMOTION_REACT_"+"11.9.3".split(".")[0]+"__";Jt[Qt]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Jt[Qt]=!0}function er(e,r){if(null!=e)if(t.isFunction(e))e(r);else try{e.current=r}catch(t){throw new Error("Cannot assign value '"+r+"' to ref '"+e+"'")}}function tr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){t.forEach(function(t){return er(t,e)})}}function rr(e){void 0===e&&(e={});var t=e.strict,r=void 0===t||t,n=e.errorMessage,a=void 0===n?"useContext: `context` is undefined. Seems you forgot to wrap component within the Provider":n,o=e.name,i=/*#__PURE__*/F.createContext(void 0);return i.displayName=o,[i.Provider,function e(){var t=F.useContext(i);if(!t&&r){var n=new Error(a);throw n.name="ContextError",null==Error.captureStackTrace||Error.captureStackTrace(n,e),n}return t},i]}function nr(e){return F.Children.toArray(e).filter(function(e){/*#__PURE__*/
3
+ return F.isValidElement(e)})}var ar=t.isBrowser?F.useLayoutEffect:F.useEffect;function or(e,t){void 0===t&&(t=[]);var r=F.useRef(e);return ar(function(){r.current=e}),F.useCallback(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return null==r.current?void 0:r.current.apply(r,t)},t)}function ir(e,r,n,a){var o=or(r);return F.useEffect(function(){var i,s=null!=(i=t.runIfFn(n))?i:document;if(r)return s.addEventListener(e,o,a),function(){s.removeEventListener(e,o,a)}},[e,n,a,o,r]),function(){var r;(null!=(r=t.runIfFn(n))?r:document).removeEventListener(e,o,a)}}function sr(e){void 0===e&&(e=!1);var t=F.useState(e),r=t[0],n=t[1],a=F.useMemo(function(){return{on:function(){return n(!0)},off:function(){return n(!1)},toggle:function(){return n(function(e){return!e})}}},[]);return[r,a]}function lr(e,t){var r=void 0!==e;return[r,r&&void 0!==e?e:t]}function cr(e){var r=e.value,n=e.defaultValue,a=e.shouldUpdate,o=void 0===a?function(e,t){return e!==t}:a,i=or(e.onChange),s=or(o),l=F.useState(n),c=l[1],u=void 0!==r,d=u?r:l[0],p=F.useCallback(function(e){var r=t.runIfFn(e,d);s(d,r)&&(u||c(r),i(r))},[u,i,d,s]);return[d,p]}function ur(){return ur=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},ur.apply(this,arguments)}function dr(e,t){var r=F.useId();return F.useMemo(function(){return e||[t,r].filter(Boolean).join("-")},[e,t,r])}var pr=function(e,t){var r=F.useRef(!1),n=F.useRef(!1);F.useEffect(function(){if(r.current&&n.current)return e();n.current=!0},t),F.useEffect(function(){return r.current=!0,function(){r.current=!1}},[])};function fr(e,t){return void 0===t&&(t=[]),F.useEffect(function(){return function(){return e()}},t)}function mr(e,t){if(null!=e)if("function"!=typeof e)try{e.current=t}catch(r){throw new Error("Cannot assign value '"+t+"' to ref '"+e+"'")}else e(t)}function vr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return F.useMemo(function(){return t.every(function(e){return null==e})?null:function(e){t.forEach(function(t){t&&mr(t,e)})}},t)}function hr(e,r){var n,a=e.target;return!(e.button>0||a&&!t.getOwnerDocument(a).contains(a)||null!=(n=r.current)&&n.contains(a))}var gr=/*#__PURE__*/F.createContext({});t.__DEV__&&(gr.displayName="ColorModeContext");var yr="undefined"!=typeof Element,br="function"==typeof Map,xr="function"==typeof Set,Er="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function kr(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var r,n,a,o;if(Array.isArray(e)){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(!kr(e[n],t[n]))return!1;return!0}if(br&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;for(o=e.entries();!(n=o.next()).done;)if(!kr(n.value[1],t.get(n.value[0])))return!1;return!0}if(xr&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(Er&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((r=(a=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;if(yr&&e instanceof Element)return!1;for(n=r;0!=n--;)if(("_owner"!==a[n]&&"__v"!==a[n]&&"__o"!==a[n]||!e.$$typeof)&&!kr(e[a[n]],t[a[n]]))return!1;return!0}return e!=e&&t!=t}var _r=function(e,t){try{return kr(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}},wr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Sr=/* #__PURE__ */Ne(function(e){return wr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Cr=function(e){return"theme"!==e},Or=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Sr:Cr},Rr=function(e,t,r){var n;if(t){var a=t.shouldForwardProp;n=e.__emotion_forwardProp&&a?function(t){return e.__emotion_forwardProp(t)&&a(t)}:a}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},Ar=z.useInsertionEffect?z.useInsertionEffect:function(e){e()},Ir="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Tr=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return ft(t,r,n),Ar(function(){return mt(t,r,n)}),null},Nr=function e(t,r){if("production"!==process.env.NODE_ENV&&void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var n,a,o=t.__emotion_real===t,i=o&&t.__emotion_base||t;void 0!==r&&(n=r.label,a=r.target);var s=Rr(t,r,o),l=s||Or(i),c=!l("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&d.push("label:"+n+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{"production"!==process.env.NODE_ENV&&void 0===u[0][0]&&console.error(Ir),d.push(u[0][0]);for(var p=u.length,f=1;f<p;f++)"production"!==process.env.NODE_ENV&&void 0===u[0][f]&&console.error(Ir),d.push(u[f],u[0][f])}var m=jt(function(e,t,r){var n=c&&e.as||i,o="",u=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=F.useContext(Vt)}"string"==typeof e.className?o=pt(t.registered,u,e.className):null!=e.className&&(o=e.className+" ");var m=Lt(d.concat(u),t.registered,p);o+=t.key+"-"+m.name,void 0!==a&&(o+=" "+a);var v=c&&void 0===s?Or(n):l,h={};for(var g in e)c&&"as"===g||v(g)&&(h[g]=e[g]);return h.className=o,h.ref=r,/*#__PURE__*/F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement(Tr,{cache:t,serialized:m,isStringTag:"string"==typeof n}),/*#__PURE__*/F.createElement(n,h))});return m.displayName=void 0!==n?n:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=i,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return void 0===a&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+a}}),m.withComponent=function(t,n){return e(t,We({},r,n,{shouldForwardProp:Rr(m,n,!0)})).apply(void 0,d)},m}}.bind();function Pr(){return Pr=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},Pr.apply(this,arguments)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){Nr[e]=Nr(e)});var Lr,Dr,Mr=function(e){return t.isString(e)?e.replace(/!(important)?$/,"").trim():e},jr=function(e,r){return function(n){var a=String(r),o=function(e){return/!(important)?$/.test(e)}(a),i=Mr(a),s=e?e+"."+i:i,l=t.isObject(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:r;return l=Mr(l),o?l+" !important":l}};function Vr(e){var t=e.scale,r=e.transform,n=e.compose;return function(e,a){var o,i=jr(t,e)(a),s=null!=(o=null==r?void 0:r(i,a))?o:i;return n&&(s=n(s,a)),s}}function Br(e,t){return function(r){var n={property:r,scale:e};return n.transform=Vr({scale:e,transform:t}),n}}var Fr=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"],zr={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},Wr={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"},Hr={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Ur=((Lr={})["& > :not(style) ~ :not(style)"]={marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"},Lr),$r=((Dr={})["& > :not(style) ~ :not(style)"]={marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"},Dr);function qr(e,t){return qr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qr(e,t)}function Yr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qr(e,t)}function Gr(){Gr=function(e,t){return new r(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function r(e,n,a){var o=new RegExp(e,n);return t.set(o,a||t.get(e)),qr(o,r.prototype)}function n(e,r){var n=t.get(r);return Object.keys(n).reduce(function(t,r){return t[r]=e[n[r]],t},Object.create(null))}return Yr(r,RegExp),r.prototype.exec=function(t){var r=e.exec.call(this,t);return r&&(r.groups=n(r,this)),r},r.prototype[Symbol.replace]=function(r,a){if("string"==typeof a){var o=t.get(this);return e[Symbol.replace].call(this,r,a.replace(/\$<([^>]+)>/g,function(e,t){return"$"+o[t]}))}if("function"==typeof a){var i=this;return e[Symbol.replace].call(this,r,function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(n(e,i)),a.apply(this,e)})}return e[Symbol.replace].call(this,r,a)},Gr.apply(this,arguments)}var Zr={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},Xr=new Set(Object.values(Zr)),Kr=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Jr=function(e){return e.trim()},Qr=function(e){return t.isString(e)&&e.includes("(")&&e.includes(")")},en=function(e){return function(t){return e+"("+t+")"}},tn={filter:function(e){return"auto"!==e?e:zr},backdropFilter:function(e){return"auto"!==e?e:Wr},ring:function(e){return function(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}(tn.px(e))},bgClip:function(e){return"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform:function(e){return"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))"].concat(Fr).join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)"].concat(Fr).join(" "):e},px:function(e){if(null==e)return e;var r=function(e){var t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}(e);return r.unitless||t.isNumber(e)?e+"px":e},fraction:function(e){return!t.isNumber(e)||e>1?e:100*e+"%"},float:function(e,t){return"rtl"===t.direction?{left:"right",right:"left"}[e]:e},degree:function(e){if(t.isCssVar(e)||null==e)return e;var r=t.isString(e)&&!e.endsWith("deg");return t.isNumber(e)||r?e+"deg":e},gradient:function(e,t){return function(e,t){var r,n;if(null==e||Kr.has(e))return e;var a=null!=(r=null==(n=/*#__PURE__*/Gr(/(^[a-z-A-Z]+)\(((.*))\)/g,{type:1,values:2}).exec(e))?void 0:n.groups)?r:{},o=a.type,i=a.values;if(!o||!i)return e;var s=o.includes("-gradient")?o:o+"-gradient",l=i.split(",").map(Jr).filter(Boolean),c=l[0],u=l.slice(1);if(0===(null==u?void 0:u.length))return e;u.unshift(c in Zr?Zr[c]:c);var d=u.map(function(e){if(Xr.has(e))return e;var r=e.indexOf(" "),n=-1!==r?[e.substr(0,r),e.substr(r+1)]:[e],a=n[0],o=n[1],i=Qr(o)?o:o&&o.split(" "),s="colors."+a,l=s in t.__cssMap?t.__cssMap[s].varRef:a;return i?[l].concat(Array.isArray(i)?i:[i]).join(" "):l});return s+"("+d.join(", ")+")"}(e,null!=t?t:{})},blur:en("blur"),opacity:en("opacity"),brightness:en("brightness"),contrast:en("contrast"),dropShadow:en("drop-shadow"),grayscale:en("grayscale"),hueRotate:en("hue-rotate"),invert:en("invert"),saturate:en("saturate"),sepia:en("sepia"),bgImage:function(e){return null==e||Qr(e)||Kr.has(e)?e:"url("+e+")"},outline:function(e){var t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection:function(e){var t,r=null!=(t=Hr[e])?t:{},n=r.space,a=r.divide,o={flexDirection:e};return n&&(o[n]=1),a&&(o[a]=1),o}},rn={borderWidths:Br("borderWidths"),borderStyles:Br("borderStyles"),colors:Br("colors"),borders:Br("borders"),radii:Br("radii",tn.px),space:Br("space",tn.px),spaceT:Br("space",tn.px),degreeT:function(e){return{property:e,transform:tn.degree}},prop:function(e,t,r){return Pr({property:e,scale:t},t&&{transform:Vr({scale:t,transform:r})})},propT:function(e,t){return{property:e,transform:t}},sizes:Br("sizes",tn.px),sizesT:Br("sizes",tn.fraction),shadows:Br("shadows"),logical:function(e){var t,r,n,a=e.scale,o=e.transform;return{scale:a,property:(t=e.property,r=t.rtl,n=t.ltr,function(e){return"rtl"===e.direction?r:n}),transform:a?Vr({scale:a,compose:o}):o}},blur:Br("blur",tn.blur)},nn={background:rn.colors("background"),backgroundColor:rn.colors("backgroundColor"),backgroundImage:rn.propT("backgroundImage",tn.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:tn.bgClip},bgSize:rn.prop("backgroundSize"),bgPosition:rn.prop("backgroundPosition"),bg:rn.colors("background"),bgColor:rn.colors("backgroundColor"),bgPos:rn.prop("backgroundPosition"),bgRepeat:rn.prop("backgroundRepeat"),bgAttachment:rn.prop("backgroundAttachment"),bgGradient:rn.propT("backgroundImage",tn.gradient),bgClip:{transform:tn.bgClip}};Object.assign(nn,{bgImage:nn.backgroundImage,bgImg:nn.backgroundImage});var an={border:rn.borders("border"),borderWidth:rn.borderWidths("borderWidth"),borderStyle:rn.borderStyles("borderStyle"),borderColor:rn.colors("borderColor"),borderRadius:rn.radii("borderRadius"),borderTop:rn.borders("borderTop"),borderBlockStart:rn.borders("borderBlockStart"),borderTopLeftRadius:rn.radii("borderTopLeftRadius"),borderStartStartRadius:rn.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:rn.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:rn.radii("borderTopRightRadius"),borderStartEndRadius:rn.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:rn.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:rn.borders("borderRight"),borderInlineEnd:rn.borders("borderInlineEnd"),borderBottom:rn.borders("borderBottom"),borderBlockEnd:rn.borders("borderBlockEnd"),borderBottomLeftRadius:rn.radii("borderBottomLeftRadius"),borderBottomRightRadius:rn.radii("borderBottomRightRadius"),borderLeft:rn.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:rn.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:rn.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:rn.borders(["borderLeft","borderRight"]),borderInline:rn.borders("borderInline"),borderY:rn.borders(["borderTop","borderBottom"]),borderBlock:rn.borders("borderBlock"),borderTopWidth:rn.borderWidths("borderTopWidth"),borderBlockStartWidth:rn.borderWidths("borderBlockStartWidth"),borderTopColor:rn.colors("borderTopColor"),borderBlockStartColor:rn.colors("borderBlockStartColor"),borderTopStyle:rn.borderStyles("borderTopStyle"),borderBlockStartStyle:rn.borderStyles("borderBlockStartStyle"),borderBottomWidth:rn.borderWidths("borderBottomWidth"),borderBlockEndWidth:rn.borderWidths("borderBlockEndWidth"),borderBottomColor:rn.colors("borderBottomColor"),borderBlockEndColor:rn.colors("borderBlockEndColor"),borderBottomStyle:rn.borderStyles("borderBottomStyle"),borderBlockEndStyle:rn.borderStyles("borderBlockEndStyle"),borderLeftWidth:rn.borderWidths("borderLeftWidth"),borderInlineStartWidth:rn.borderWidths("borderInlineStartWidth"),borderLeftColor:rn.colors("borderLeftColor"),borderInlineStartColor:rn.colors("borderInlineStartColor"),borderLeftStyle:rn.borderStyles("borderLeftStyle"),borderInlineStartStyle:rn.borderStyles("borderInlineStartStyle"),borderRightWidth:rn.borderWidths("borderRightWidth"),borderInlineEndWidth:rn.borderWidths("borderInlineEndWidth"),borderRightColor:rn.colors("borderRightColor"),borderInlineEndColor:rn.colors("borderInlineEndColor"),borderRightStyle:rn.borderStyles("borderRightStyle"),borderInlineEndStyle:rn.borderStyles("borderInlineEndStyle"),borderTopRadius:rn.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:rn.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:rn.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:rn.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(an,{rounded:an.borderRadius,roundedTop:an.borderTopRadius,roundedTopLeft:an.borderTopLeftRadius,roundedTopRight:an.borderTopRightRadius,roundedTopStart:an.borderStartStartRadius,roundedTopEnd:an.borderStartEndRadius,roundedBottom:an.borderBottomRadius,roundedBottomLeft:an.borderBottomLeftRadius,roundedBottomRight:an.borderBottomRightRadius,roundedBottomStart:an.borderEndStartRadius,roundedBottomEnd:an.borderEndEndRadius,roundedLeft:an.borderLeftRadius,roundedRight:an.borderRightRadius,roundedStart:an.borderInlineStartRadius,roundedEnd:an.borderInlineEndRadius,borderStart:an.borderInlineStart,borderEnd:an.borderInlineEnd,borderTopStartRadius:an.borderStartStartRadius,borderTopEndRadius:an.borderStartEndRadius,borderBottomStartRadius:an.borderEndStartRadius,borderBottomEndRadius:an.borderEndEndRadius,borderStartRadius:an.borderInlineStartRadius,borderEndRadius:an.borderInlineEndRadius,borderStartWidth:an.borderInlineStartWidth,borderEndWidth:an.borderInlineEndWidth,borderStartColor:an.borderInlineStartColor,borderEndColor:an.borderInlineEndColor,borderStartStyle:an.borderInlineStartStyle,borderEndStyle:an.borderInlineEndStyle});var on={color:rn.colors("color"),textColor:rn.colors("color"),fill:rn.colors("fill"),stroke:rn.colors("stroke")},sn={boxShadow:rn.shadows("boxShadow"),mixBlendMode:!0,blendMode:rn.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:rn.prop("backgroundBlendMode"),opacity:!0};Object.assign(sn,{shadow:sn.boxShadow});var ln={filter:{transform:tn.filter},blur:rn.blur("--chakra-blur"),brightness:rn.propT("--chakra-brightness",tn.brightness),contrast:rn.propT("--chakra-contrast",tn.contrast),hueRotate:rn.degreeT("--chakra-hue-rotate"),invert:rn.propT("--chakra-invert",tn.invert),saturate:rn.propT("--chakra-saturate",tn.saturate),dropShadow:rn.propT("--chakra-drop-shadow",tn.dropShadow),backdropFilter:{transform:tn.backdropFilter},backdropBlur:rn.blur("--chakra-backdrop-blur"),backdropBrightness:rn.propT("--chakra-backdrop-brightness",tn.brightness),backdropContrast:rn.propT("--chakra-backdrop-contrast",tn.contrast),backdropHueRotate:rn.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:rn.propT("--chakra-backdrop-invert",tn.invert),backdropSaturate:rn.propT("--chakra-backdrop-saturate",tn.saturate)},cn={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:tn.flexDirection},experimental_spaceX:{static:Ur,transform:Vr({scale:"space",transform:function(e){return null!==e?{"--chakra-space-x":e}:null}})},experimental_spaceY:{static:$r,transform:Vr({scale:"space",transform:function(e){return null!=e?{"--chakra-space-y":e}:null}})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:rn.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:rn.space("gap"),rowGap:rn.space("rowGap"),columnGap:rn.space("columnGap")};Object.assign(cn,{flexDir:cn.flexDirection});var un={gridGap:rn.space("gridGap"),gridColumnGap:rn.space("gridColumnGap"),gridRowGap:rn.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},dn={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:tn.outline},outlineOffset:!0,outlineColor:rn.colors("outlineColor")},pn={width:rn.sizesT("width"),inlineSize:rn.sizesT("inlineSize"),height:rn.sizes("height"),blockSize:rn.sizes("blockSize"),boxSize:rn.sizes(["width","height"]),minWidth:rn.sizes("minWidth"),minInlineSize:rn.sizes("minInlineSize"),minHeight:rn.sizes("minHeight"),minBlockSize:rn.sizes("minBlockSize"),maxWidth:rn.sizes("maxWidth"),maxInlineSize:rn.sizes("maxInlineSize"),maxHeight:rn.sizes("maxHeight"),maxBlockSize:rn.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:rn.propT("float",tn.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(pn,{w:pn.width,h:pn.height,minW:pn.minWidth,maxW:pn.maxWidth,minH:pn.minHeight,maxH:pn.maxHeight,overscroll:pn.overscrollBehavior,overscrollX:pn.overscrollBehaviorX,overscrollY:pn.overscrollBehaviorY});var fn={listStyleType:!0,listStylePosition:!0,listStylePos:rn.prop("listStylePosition"),listStyleImage:!0,listStyleImg:rn.prop("listStyleImage")},mn={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},vn={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},hn=function(e,r,n){var a={},o=t.memoizedGet(e,r,{});for(var i in o)i in n&&null!=n[i]||(a[i]=o[i]);return a},gn={srOnly:{transform:function(e){return!0===e?mn:"focusable"===e?vn:{}}},layerStyle:{processResult:!0,transform:function(e,t,r){return hn(t,"layerStyles."+e,r)}},textStyle:{processResult:!0,transform:function(e,t,r){return hn(t,"textStyles."+e,r)}},apply:{processResult:!0,transform:function(e,t,r){return hn(t,e,r)}}},yn={position:!0,pos:rn.prop("position"),zIndex:rn.prop("zIndex","zIndices"),inset:rn.spaceT("inset"),insetX:rn.spaceT(["left","right"]),insetInline:rn.spaceT("insetInline"),insetY:rn.spaceT(["top","bottom"]),insetBlock:rn.spaceT("insetBlock"),top:rn.spaceT("top"),insetBlockStart:rn.spaceT("insetBlockStart"),bottom:rn.spaceT("bottom"),insetBlockEnd:rn.spaceT("insetBlockEnd"),left:rn.spaceT("left"),insetInlineStart:rn.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:rn.spaceT("right"),insetInlineEnd:rn.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(yn,{insetStart:yn.insetInlineStart,insetEnd:yn.insetInlineEnd});var bn={ring:{transform:tn.ring},ringColor:rn.colors("--chakra-ring-color"),ringOffset:rn.prop("--chakra-ring-offset-width"),ringOffsetColor:rn.colors("--chakra-ring-offset-color"),ringInset:rn.prop("--chakra-ring-inset")},xn={margin:rn.spaceT("margin"),marginTop:rn.spaceT("marginTop"),marginBlockStart:rn.spaceT("marginBlockStart"),marginRight:rn.spaceT("marginRight"),marginInlineEnd:rn.spaceT("marginInlineEnd"),marginBottom:rn.spaceT("marginBottom"),marginBlockEnd:rn.spaceT("marginBlockEnd"),marginLeft:rn.spaceT("marginLeft"),marginInlineStart:rn.spaceT("marginInlineStart"),marginX:rn.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:rn.spaceT("marginInline"),marginY:rn.spaceT(["marginTop","marginBottom"]),marginBlock:rn.spaceT("marginBlock"),padding:rn.space("padding"),paddingTop:rn.space("paddingTop"),paddingBlockStart:rn.space("paddingBlockStart"),paddingRight:rn.space("paddingRight"),paddingBottom:rn.space("paddingBottom"),paddingBlockEnd:rn.space("paddingBlockEnd"),paddingLeft:rn.space("paddingLeft"),paddingInlineStart:rn.space("paddingInlineStart"),paddingInlineEnd:rn.space("paddingInlineEnd"),paddingX:rn.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:rn.space("paddingInline"),paddingY:rn.space(["paddingTop","paddingBottom"]),paddingBlock:rn.space("paddingBlock")};Object.assign(xn,{m:xn.margin,mt:xn.marginTop,mr:xn.marginRight,me:xn.marginInlineEnd,marginEnd:xn.marginInlineEnd,mb:xn.marginBottom,ml:xn.marginLeft,ms:xn.marginInlineStart,marginStart:xn.marginInlineStart,mx:xn.marginX,my:xn.marginY,p:xn.padding,pt:xn.paddingTop,py:xn.paddingY,px:xn.paddingX,pb:xn.paddingBottom,pl:xn.paddingLeft,ps:xn.paddingInlineStart,paddingStart:xn.paddingInlineStart,pr:xn.paddingRight,pe:xn.paddingInlineEnd,paddingEnd:xn.paddingInlineEnd});var En={textDecorationColor:rn.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:rn.shadows("textShadow")},kn={clipPath:!0,transform:rn.propT("transform",tn.transform),transformOrigin:!0,translateX:rn.spaceT("--chakra-translate-x"),translateY:rn.spaceT("--chakra-translate-y"),skewX:rn.degreeT("--chakra-skew-x"),skewY:rn.degreeT("--chakra-skew-y"),scaleX:rn.prop("--chakra-scale-x"),scaleY:rn.prop("--chakra-scale-y"),scale:rn.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:rn.degreeT("--chakra-rotate")},_n={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:rn.prop("transitionDuration","transition.duration"),transitionProperty:rn.prop("transitionProperty","transition.property"),transitionTimingFunction:rn.prop("transitionTimingFunction","transition.easing")},wn={fontFamily:rn.prop("fontFamily","fonts"),fontSize:rn.prop("fontSize","fontSizes",tn.px),fontWeight:rn.prop("fontWeight","fontWeights"),lineHeight:rn.prop("lineHeight","lineHeights"),letterSpacing:rn.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},Sn={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:rn.spaceT("scrollMargin"),scrollMarginTop:rn.spaceT("scrollMarginTop"),scrollMarginBottom:rn.spaceT("scrollMarginBottom"),scrollMarginLeft:rn.spaceT("scrollMarginLeft"),scrollMarginRight:rn.spaceT("scrollMarginRight"),scrollMarginX:rn.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:rn.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:rn.spaceT("scrollPadding"),scrollPaddingTop:rn.spaceT("scrollPaddingTop"),scrollPaddingBottom:rn.spaceT("scrollPaddingBottom"),scrollPaddingLeft:rn.spaceT("scrollPaddingLeft"),scrollPaddingRight:rn.spaceT("scrollPaddingRight"),scrollPaddingX:rn.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:rn.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function Cn(e){return t.isObject(e)&&e.reference?e.reference:String(e)}var On=function(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 r.map(Cn).join(" "+e+" ").replace(/calc/g,"")},Rn=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+On.apply(void 0,["+"].concat(t))+")"},An=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+On.apply(void 0,["-"].concat(t))+")"},In=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+On.apply(void 0,["*"].concat(t))+")"},Tn=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+On.apply(void 0,["/"].concat(t))+")"},Nn=function(e){var t=Cn(e);return null==t||Number.isNaN(parseFloat(t))?In(t,-1):String(t).startsWith("-")?String(t).slice(1):"-"+t},Pn=Object.assign(function(e){return{add:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Pn(Rn.apply(void 0,[e].concat(r)))},subtract:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Pn(An.apply(void 0,[e].concat(r)))},multiply:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Pn(In.apply(void 0,[e].concat(r)))},divide:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Pn(Tn.apply(void 0,[e].concat(r)))},negate:function(){return Pn(Nn(e))},toString:function(){return e.toString()}}},{add:Rn,subtract:An,multiply:In,divide:Tn,negate:Nn}),Ln=function(e,t){return e+":hover "+t+", "+e+"[data-hover] "+t},Dn=function(e,t){return e+":focus "+t+", "+e+"[data-focus] "+t},Mn=function(e,t){return e+":focus-visible "+t},jn=function(e,t){return e+":focus-within "+t},Vn=function(e,t){return e+":active "+t+", "+e+"[data-active] "+t},Bn=function(e,t){return e+":disabled "+t+", "+e+"[data-disabled] "+t},Fn=function(e,t){return e+":invalid "+t+", "+e+"[data-invalid] "+t},zn=function(e,t){return e+":checked "+t+", "+e+"[data-checked] "+t},Wn=function(e){return Un(function(t){return e(t,"&")},"[role=group]","[data-group]",".group")},Hn=function(e){return Un(function(t){return e(t,"~ &")},"[data-peer]",".peer")},Un=function(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 r.map(e).join(", ")},$n={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:Wn(Ln),_peerHover:Hn(Ln),_groupFocus:Wn(Dn),_peerFocus:Hn(Dn),_groupFocusVisible:Wn(Mn),_peerFocusVisible:Hn(Mn),_groupActive:Wn(Vn),_peerActive:Hn(Vn),_groupDisabled:Wn(Bn),_peerDisabled:Hn(Bn),_groupInvalid:Wn(Fn),_peerInvalid:Hn(Fn),_groupChecked:Wn(zn),_peerChecked:Hn(zn),_groupFocusWithin:Wn(jn),_peerFocusWithin:Hn(jn),_peerPlaceholderShown:Hn(function(e,t){return e+":placeholder-shown "+t}),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]"},qn=t.objectKeys($n);function Yn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Gn(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Yn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Yn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Zn=t.mergeWith({},nn,an,on,cn,pn,ln,bn,dn,un,gn,yn,sn,xn,Sn,wn,En,kn,fn,_n),Xn=Object.assign({},xn,pn,cn,un,yn),Kn=t.objectKeys(Xn),Jn=[].concat(t.objectKeys(Zn),qn),Qn=Pr({},Zn,$n),ea=function(e,r){return e.startsWith("--")&&t.isString(r)&&!t.isCssVar(r)},ta=function(e,t){var r,n;if(null==t)return t;var a=function(t){var r,n;return null==(r=e.__cssMap)||null==(n=r[t])?void 0:n.varRef},o=function(e){var t;return null!=(t=a(e))?t:e},i=t.split(",").map(function(e){return e.trim()}),s=i[1];return null!=(r=null!=(n=a(i[0]))?n:o(s))?r:o(t)};function ra(){return ra=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},ra.apply(this,arguments)}function na(){var e=F.useContext(Vt);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}rr({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});var aa=function(e){return rr({name:e+"StylesContext",errorMessage:'useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<'+e+' />" '})};function oa(e){return t.omit(e,["styleConfig","size","variant","colorScheme"])}function ia(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}var sa=new Set([].concat(Jn,["textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"])),la=new Set(["htmlWidth","htmlHeight","htmlSize"]),ca=function(e){return la.has(e)||!sa.has(e)},ua=["theme","css","__css","sx"],da=["baseStyle"];function pa(e,r){var n=null!=r?r:{},a=n.baseStyle,o=ia(n,da);o.shouldForwardProp||(o.shouldForwardProp=ca);var i=function(e){var r=e.baseStyle;return function(e){var n,a=e.css,o=e.__css,i=e.sx,s=ia(e,ua),l=t.objectFilter(s,function(e,t){return function(e){return e in Qn}(t)}),c=t.runIfFn(r,e),u=Object.assign({},o,c,t.filterUndefined(l),i),d=(n=u,function(e){return function(e){var r=e.configs,n=void 0===r?{}:r,a=e.pseudos,o=void 0===a?{}:a,i=e.theme;return function e(r,a){void 0===a&&(a=!1);var s=t.runIfFn(r,i),l=function(e){return function(r){if(!r.__breakpoints)return e;var n=r.__breakpoints,a=n.isResponsive,o=n.toArrayValue,i=n.media,s={};for(var l in e){var c=t.runIfFn(e[l],r);if(null!=c)if(c=t.isObject(c)&&a(c)?o(c):c,Array.isArray(c))for(var u=c.slice(0,i.length).length,d=0;d<u;d+=1){var p=null==i?void 0:i[d];p?(s[p]=s[p]||{},null!=c[d]&&(s[p][l]=c[d])):s[l]=c[d]}else s[l]=c}return s}}(s)(i),c={};for(var u in l){var d,p,f,m,v,h=t.runIfFn(l[u],i);u in o&&(u=o[u]),ea(u,h)&&(h=ta(i,h));var g=n[u];if(!0===g&&(g={property:u}),t.isObject(h)){var y;c[u]=null!=(y=c[u])?y:{},c[u]=t.mergeWith({},c[u],e(h,!0))}else{var b=null!=(d=null==(p=g)||null==p.transform?void 0:p.transform(h,i,s))?d:h;b=null!=(f=g)&&f.processResult?e(b,!0):b;var x=t.runIfFn(null==(m=g)?void 0:m.property,i);if(!a&&null!=(v=g)&&v.static){var E=t.runIfFn(g.static,i);c=t.mergeWith({},c,E)}if(x&&Array.isArray(x))for(var k,_=Gn(x);!(k=_()).done;)c[k.value]=b;else x?"&"===x&&t.isObject(b)?c=t.mergeWith({},c,b):c[x]=b:t.isObject(b)?c=t.mergeWith({},c,b):c[u]=b}}return c}}({theme:e,pseudos:$n,configs:Zn})(n)})(e.theme);return a?[d,a]:d}}({baseStyle:a});return Nr(e,o)(i)}function fa(e){/*#__PURE__*/
4
+ return F.forwardRef(e)}var ma=["styleConfig"];function va(e,r){var n;void 0===r&&(r={});var a,o=r.styleConfig,i=ia(r,ma),s=ra({},function(){var e=F.useContext(gr);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e}(),{theme:na()}),l=s.theme,c=s.colorMode,u=t.memoizedGet(l,"components."+e),d=o||u,p=t.mergeWith({theme:l,colorMode:c},null!=(n=null==d?void 0:d.defaultProps)?n:{},t.filterUndefined(t.omit(i,["children"]))),f=F.useRef({});if(d){var m=(a=d,function(e){var r,n=e.variant,o=e.size,i=function(e){var r=e.__breakpoints;return function(e,n,a,o){if(r){var i={},s=function(e,r){return t.isArray(e)?e:t.isObject(e)?r(e):null!=e?[e]:void 0}(a,r.toArrayValue);if(!s)return i;for(var l=s.length,c=1===l,u=!!e.parts,d=function(a){var l,d,p=r.details[a],f=r.details[function(e,t){for(var r=t+1;r<e.length;r++)if(null!=e[r])return r;return-1}(s,a)],m=t.toMediaQueryString(p.minW,null==f?void 0:f._minW),v=t.runIfFn(null==(l=e[n])?void 0:l[s[a]],o);return v?u?(null==(d=e.parts)||d.forEach(function(e){var r,n;t.mergeWith(i,((n={})[e]=c?v[e]:((r={})[m]=v[e],r),n))}),"continue"):u?void(i[m]=v):(c?t.mergeWith(i,v):i[m]=v,"continue"):"continue"},p=0;p<l;p++)d(p);return i}}}(e.theme);return t.mergeWith({},t.runIfFn(null!=(r=a.baseStyle)?r:{},e),i(a,"sizes",o,e),i(a,"variants",n,e))}),v=m(p);_r(f.current,v)||(f.current=v)}return f.current}function ha(e,t){return void 0===t&&(t={}),va(e,t)}function ga(e,t){return void 0===t&&(t={}),va(e,t)}var ya,ba=(ya=new Map,new Proxy(pa,{apply:function(e,t,r){return pa.apply(void 0,r)},get:function(e,t){return ya.has(t)||ya.set(t,pa(t)),ya.get(t)}})),xa=function(e,t){return xa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},xa(e,t)};function Ea(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}xa(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var ka=function(){return ka=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},ka.apply(this,arguments)};function _a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}function wa(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i}function Sa(e,t,r){if(r||2===arguments.length)for(var n,a=0,o=t.length;a<o;a++)!n&&a in t||(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))}var Ca="undefined"==typeof process||void 0===process.env?"production":process.env.NODE_ENV||"production",Oa=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},Ra={measureLayout:Oa(["layout","layoutId","drag"]),animation:Oa(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Oa(["exit"]),drag:Oa(["drag","dragControls"]),focus:Oa(["whileFocus"]),hover:Oa(["whileHover","onHoverStart","onHoverEnd"]),tap:Oa(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Oa(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Oa(["whileInView","onViewportEnter","onViewportLeave"])},Aa=function(){},Ia=function(){};"production"!==process.env.NODE_ENV&&(Aa=function(e,t){e||"undefined"==typeof console||console.warn(t)},Ia=function(e,t){if(!e)throw new Error(t)});var Ta=F.createContext({strict:!1}),Na=Object.keys(Ra),Pa=Na.length,La=F.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Da=F.createContext({}),Ma=F.createContext(null),ja="undefined"!=typeof document,Va=ja?F.useLayoutEffect:F.useEffect,Ba={current:null},Fa=!1;function za(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Wa(e){return Array.isArray(e)}function Ha(e){return"string"==typeof e||Wa(e)}function Ua(e,t,r,n,a){var o;return void 0===n&&(n={}),void 0===a&&(a={}),"function"==typeof t&&(t=t(null!=r?r:e.custom,n,a)),"string"==typeof t&&(t=null===(o=e.variants)||void 0===o?void 0:o[t]),"function"==typeof t&&(t=t(null!=r?r:e.custom,n,a)),t}function $a(e,t,r){var n=e.getProps();return Ua(n,t,null!=r?r:n.custom,function(e){var t={};return e.forEachValue(function(e,r){return t[r]=e.get()}),t}(e),function(e){var t={};return e.forEachValue(function(e,r){return t[r]=e.getVelocity()}),t}(e))}function qa(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Ha(e.initial)||Ha(e.animate)||Ha(e.whileHover)||Ha(e.whileDrag)||Ha(e.whileTap)||Ha(e.whileFocus)||Ha(e.exit)}function Ya(e){return Boolean(qa(e)||e.variants)}function Ga(e){return Array.isArray(e)?e.join(" "):e}function Za(e){var t=F.useRef(null);return null===t.current&&(t.current=e()),t.current}const Xa="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),Ka="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Xa()),16.666666666666668);let Ja=!0,Qa=!1,eo=!1;const to={delta:0,timestamp:0},ro=["read","update","preRender","render","postRender"],no=ro.reduce((e,t)=>(e[t]=function(e){let t=[],r=[],n=0,a=!1,o=!1;const i=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{const l=s&&a,c=l?t:r;return o&&i.add(e),-1===c.indexOf(e)&&(c.push(e),l&&a&&(n=t.length)),e},cancel:e=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1),i.delete(e)},process:l=>{if(a)o=!0;else{if(a=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let r=0;r<n;r++){const n=t[r];n(l),i.has(n)&&(s.schedule(n),e())}a=!1,o&&(o=!1,s.process(l))}}};return s}(()=>Qa=!0),e),{}),ao=ro.reduce((e,t)=>{const r=no[t];return e[t]=(e,t=!1,n=!1)=>(Qa||co(),r.schedule(e,t,n)),e},{}),oo=ro.reduce((e,t)=>(e[t]=no[t].cancel,e),{}),io=ro.reduce((e,t)=>(e[t]=()=>no[t].process(to),e),{}),so=e=>no[e].process(to),lo=e=>{Qa=!1,to.delta=Ja?16.666666666666668:Math.max(Math.min(e-to.timestamp,40),1),to.timestamp=e,eo=!0,ro.forEach(so),eo=!1,Qa&&(Ja=!1,Ka(lo))},co=()=>{Qa=!0,Ja=!0,eo||Ka(lo)},uo=()=>to,po=(e,t,r)=>Math.min(Math.max(r,e),t);function fo(e,t){return e*Math.sqrt(1-t*t)}const mo=["duration","bounce"],vo=["stiffness","damping","mass"];function ho(e,t){return t.some(t=>void 0!==e[t])}function go(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:a}=e,o=_a(e,["from","to","restSpeed","restDelta"]);const i={done:!1,value:t};let{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:p}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!ho(e,vo)&&ho(e,mo)){const r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let a,o;Aa(e<=1e4,"Spring duration must be 10 seconds or less");let i=1-t;i=po(.05,1,i),e=po(.01,10,e/1e3),i<1?(a=t=>{const n=t*i,a=n*e;return.001-(n-r)/fo(t,i)*Math.exp(-a)},o=t=>{const n=t*i*e,o=n*r+r,s=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-n),c=fo(Math.pow(t,2),i);return(.001-a(t)>0?-1:1)*((o-s)*l)/c}):(a=t=>Math.exp(-t*e)*((t-r)*e+1)-.001,o=t=>Math.exp(-t*e)*(e*e*(r-t)));const s=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(a,o,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*n;return{stiffness:t,damping:2*i*Math.sqrt(n*t),duration:e}}}(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(o),f=yo,m=yo;function v(){const e=u?-u/1e3:0,n=r-t,o=l/(2*Math.sqrt(s*c)),i=Math.sqrt(s/c)/1e3;if(void 0===a&&(a=Math.min(Math.abs(r-t)/100,.4)),o<1){const t=fo(i,o);f=a=>{const s=Math.exp(-o*i*a);return r-s*((e+o*i*n)/t*Math.sin(t*a)+n*Math.cos(t*a))},m=r=>{const a=Math.exp(-o*i*r);return o*i*a*(Math.sin(t*r)*(e+o*i*n)/t+n*Math.cos(t*r))-a*(Math.cos(t*r)*(e+o*i*n)-t*n*Math.sin(t*r))}}else if(1===o)f=t=>r-Math.exp(-i*t)*(n+(e+i*n)*t);else{const t=i*Math.sqrt(o*o-1);f=a=>{const s=Math.exp(-o*i*a),l=Math.min(t*a,300);return r-s*((e+o*i*n)*Math.sinh(l)+t*n*Math.cosh(l))/t}}}return v(),{next:e=>{const t=f(e);if(p)i.done=e>=d;else{const o=1e3*m(e),s=Math.abs(o)<=n,l=Math.abs(r-t)<=a;i.done=s&&l}return i.value=i.done?r:t,i},flipTarget:()=>{u=-u,[t,r]=[r,t],v()}}}go.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const yo=e=>0,bo=(e,t,r)=>{const n=t-e;return 0===n?1:(r-e)/n},xo=(e,t,r)=>-r*e+r*t+e,Eo=(e,t)=>r=>Math.max(Math.min(r,t),e),ko=e=>e%1?Number(e.toFixed(5)):e,_o=/(-)?([\d]*\.?[\d])+/g,wo=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,So=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Co(e){return"string"==typeof e}const Oo={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Ro=Object.assign(Object.assign({},Oo),{transform:Eo(0,1)}),Ao=Object.assign(Object.assign({},Oo),{default:1}),Io=e=>({test:t=>Co(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),To=Io("deg"),No=Io("%"),Po=Io("px"),Lo=Io("vh"),Do=Io("vw"),Mo=Object.assign(Object.assign({},No),{parse:e=>No.parse(e)/100,transform:e=>No.transform(100*e)}),jo=(e,t)=>r=>Boolean(Co(r)&&So.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Vo=(e,t,r)=>n=>{if(!Co(n))return n;const[a,o,i,s]=n.match(_o);return{[e]:parseFloat(a),[t]:parseFloat(o),[r]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},Bo={test:jo("hsl","hue"),parse:Vo("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+No.transform(ko(t))+", "+No.transform(ko(r))+", "+ko(Ro.transform(n))+")"},Fo=Eo(0,255),zo=Object.assign(Object.assign({},Oo),{transform:e=>Math.round(Fo(e))}),Wo={test:jo("rgb","red"),parse:Vo("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+zo.transform(e)+", "+zo.transform(t)+", "+zo.transform(r)+", "+ko(Ro.transform(n))+")"},Ho={test:jo("#"),parse:function(e){let t="",r="",n="",a="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),a=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),a=e.substr(4,1),t+=t,r+=r,n+=n,a+=a),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:a?parseInt(a,16)/255:1}},transform:Wo.transform},Uo={test:e=>Wo.test(e)||Ho.test(e)||Bo.test(e),parse:e=>Wo.test(e)?Wo.parse(e):Bo.test(e)?Bo.parse(e):Ho.parse(e),transform:e=>Co(e)?e:e.hasOwnProperty("red")?Wo.transform(e):Bo.transform(e)};function $o(e){"number"==typeof e&&(e=`${e}`);const t=[];let r=0;const n=e.match(wo);n&&(r=n.length,e=e.replace(wo,"${c}"),t.push(...n.map(Uo.parse)));const a=e.match(_o);return a&&(e=e.replace(_o,"${n}"),t.push(...a.map(Oo.parse))),{values:t,numColors:r,tokenised:e}}function qo(e){return $o(e).values}function Yo(e){const{values:t,numColors:r,tokenised:n}=$o(e),a=t.length;return e=>{let t=n;for(let n=0;n<a;n++)t=t.replace(n<r?"${c}":"${n}",n<r?Uo.transform(e[n]):ko(e[n]));return t}}const Go=e=>"number"==typeof e?0:e,Zo={test:function(e){var t,r,n,a;return isNaN(e)&&Co(e)&&(null!==(r=null===(t=e.match(_o))||void 0===t?void 0:t.length)&&void 0!==r?r:0)+(null!==(a=null===(n=e.match(wo))||void 0===n?void 0:n.length)&&void 0!==a?a:0)>0},parse:qo,createTransformer:Yo,getAnimatableNone:function(e){const t=qo(e);return Yo(e)(t.map(Go))}},Xo=new Set(["brightness","contrast","saturate","opacity"]);function Ko(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[n]=r.match(_o)||[];if(!n)return e;const a=r.replace(n,"");let o=Xo.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+a+")"}const Jo=/([a-z-]*)\(.*?\)/g,Qo=Object.assign(Object.assign({},Zo),{getAnimatableNone:e=>{const t=e.match(Jo);return t?t.map(Ko).join(" "):e}});function ei(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function ti({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let a=0,o=0,i=0;if(t/=100){const n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;a=ei(s,n,e+1/3),o=ei(s,n,e),i=ei(s,n,e-1/3)}else a=o=i=r;return{red:Math.round(255*a),green:Math.round(255*o),blue:Math.round(255*i),alpha:n}}const ri=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},ni=[Ho,Wo,Bo],ai=e=>ni.find(t=>t.test(e)),oi=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,ii=(e,t)=>{let r=ai(e),n=ai(t);Ia(!!r,oi(e)),Ia(!!n,oi(t));let a=r.parse(e),o=n.parse(t);r===Bo&&(a=ti(a),r=Wo),n===Bo&&(o=ti(o),n=Wo);const i=Object.assign({},a);return e=>{for(const t in i)"alpha"!==t&&(i[t]=ri(a[t],o[t],e));return i.alpha=xo(a.alpha,o.alpha,e),r.transform(i)}},si=e=>"number"==typeof e,li=(e,t)=>r=>t(e(r)),ci=(...e)=>e.reduce(li);function ui(e,t){return si(e)?r=>xo(e,t,r):Uo.test(e)?ii(e,t):mi(e,t)}const di=(e,t)=>{const r=[...e],n=r.length,a=e.map((e,r)=>ui(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=a[t](e);return r}},pi=(e,t)=>{const r=Object.assign(Object.assign({},e),t),n={};for(const a in r)void 0!==e[a]&&void 0!==t[a]&&(n[a]=ui(e[a],t[a]));return e=>{for(const t in n)r[t]=n[t](e);return r}};function fi(e){const t=Zo.parse(e),r=t.length;let n=0,a=0,o=0;for(let e=0;e<r;e++)n||"number"==typeof t[e]?n++:void 0!==t[e].hue?o++:a++;return{parsed:t,numNumbers:n,numRGB:a,numHSL:o}}const mi=(e,t)=>{const r=Zo.createTransformer(t),n=fi(e),a=fi(t);return n.numHSL===a.numHSL&&n.numRGB===a.numRGB&&n.numNumbers>=a.numNumbers?ci(di(n.parsed,a.parsed),r):(Aa(!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.`),r=>`${r>0?t:e}`)},vi=(e,t)=>r=>xo(e,t,r);function hi(e,t,{clamp:r=!0,ease:n,mixer:a}={}){const o=e.length;Ia(o===t.length,"Both input and output ranges must be the same length"),Ia(!n||!Array.isArray(n)||n.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const i=function(e,t,r){const n=[],a=r||function(e){return"number"==typeof e?vi:"string"==typeof e?Uo.test(e)?ii:mi:Array.isArray(e)?di:"object"==typeof e?pi:void 0}(e[0]),o=e.length-1;for(let r=0;r<o;r++){let o=a(e[r],e[r+1]);if(t){const e=Array.isArray(t)?t[r]:t;o=ci(e,o)}n.push(o)}return n}(t,n,a),s=2===o?function([e,t],[r]){return n=>r(bo(e,t,n))}(e,i):function(e,t){const r=e.length,n=r-1;return a=>{let o=0,i=!1;if(a<=e[0]?i=!0:a>=e[n]&&(o=n-1,i=!0),!i){let t=1;for(;t<r&&!(e[t]>a||t===n);t++);o=t-1}const s=bo(e[o],e[o+1],a);return t[o](s)}}(e,i);return r?t=>s(po(e[0],e[o-1],t)):s}const gi=e=>t=>1-e(1-t),yi=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,bi=e=>t=>t*t*((e+1)*t-e),xi=e=>e,Ei=e=>Math.pow(e,2),ki=gi(Ei),_i=yi(Ei),wi=e=>1-Math.sin(Math.acos(e)),Si=gi(wi),Ci=yi(Si),Oi=bi(1.525),Ri=gi(Oi),Ai=yi(Oi),Ii=(e=>{const t=bi(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(),Ti=e=>{if(1===e||0===e)return e;const t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},Ni=gi(Ti);function Pi(e,t){return e.map(()=>t||_i).splice(0,e.length-1)}function Li({from:e=0,to:t=1,ease:r,offset:n,duration:a=300}){const o={done:!1,value:e},i=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map(e=>e*t)}(n&&n.length===i.length?n:function(e){const t=e.length;return e.map((e,r)=>0!==r?r/(t-1):0)}(i),a);function l(){return hi(s,i,{ease:Array.isArray(r)?r:Pi(i,r)})}let c=l();return{next:e=>(o.value=c(e),o.done=e>=a,o),flipTarget:()=>{i.reverse(),c=l()}}}const Di={keyframes:Li,spring:go,decay:function({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:a=.5,modifyTarget:o}){const i={done:!1,value:t};let s=r*e;const l=t+s,c=void 0===o?l:o(l);return c!==l&&(s=c-t),{next:e=>{const t=-s*Math.exp(-e/n);return i.done=!(t>a||t<-a),i.value=i.done?c:c+t,i},flipTarget:()=>{}}}};function Mi(e,t,r=0){return e-t-r}const ji=e=>{const t=({delta:t})=>e(t);return{start:()=>ao.update(t,!0),stop:()=>oo.update(t)}};function Vi(e){var t,r,{from:n,autoplay:a=!0,driver:o=ji,elapsed:i=0,repeat:s=0,repeatType:l="loop",repeatDelay:c=0,onPlay:u,onStop:d,onComplete:p,onRepeat:f,onUpdate:m}=e,v=_a(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let h,g,y,{to:b}=v,x=0,E=v.duration,k=!1,_=!0;const w=function(e){if(Array.isArray(e.to))return Li;if(Di[e.type])return Di[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Li:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?go:Li}(v);(null===(r=(t=w).needsInterpolation)||void 0===r?void 0:r.call(t,n,b))&&(y=hi([0,100],[n,b],{clamp:!1}),n=0,b=100);const S=w(Object.assign(Object.assign({},v),{from:n,to:b}));return a&&(null==u||u(),h=o(function(e){if(_||(e=-e),i+=e,!k){const e=S.next(Math.max(0,i));g=e.value,y&&(g=y(g)),k=_?e.done:i<=0}null==m||m(g),k&&(0===x&&(null!=E||(E=i)),x<s?function(e,t,r,n){return n?e>=t+r:e<=-r}(i,E,c,_)&&(x++,"reverse"===l?(_=x%2==0,i=function(e,t,r=0,n=!0){return n?Mi(t+-e,t,r):t-(e-t)+r}(i,E,c,_)):(i=Mi(i,E,c),"mirror"===l&&S.flipTarget()),k=!1,f&&f()):(h.stop(),p&&p()))}),h.start()),{stop:()=>{null==d||d(),h.stop()}}}function Bi(e,t){return t?e*(1e3/t):0}const Fi=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),zi=e=>Fi(e)&&e.hasOwnProperty("z"),Wi=(e,t)=>Math.abs(e-t);function Hi(e,t){if(si(e)&&si(t))return Wi(e,t);if(Fi(e)&&Fi(t)){const r=Wi(e.x,t.x),n=Wi(e.y,t.y),a=zi(e)&&zi(t)?Wi(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(a,2))}}const Ui=(e,t)=>1-3*t+3*e,$i=(e,t)=>3*t-6*e,qi=e=>3*e,Yi=(e,t,r)=>((Ui(t,r)*e+$i(t,r))*e+qi(t))*e,Gi=(e,t,r)=>3*Ui(t,r)*e*e+2*$i(t,r)*e+qi(t);function Zi(e,t){-1===e.indexOf(t)&&e.push(t)}function Xi(e,t){var r=e.indexOf(t);r>-1&&e.splice(r,1)}var Ki=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Zi(this.subscriptions,e),function(){return Xi(t.subscriptions,e)}},e.prototype.notify=function(e,t,r){var n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(var a=0;a<n;a++){var o=this.subscriptions[a];o&&o(e,t,r)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),Ji=function(){function e(e){var t=this;this.version="6.3.16",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Ki,this.velocityUpdateSubscribers=new Ki,this.renderSubscribers=new Ki,this.canTrackVelocity=!1,this.updateAndNotify=function(e,r){void 0===r&&(r=!0),t.prev=t.current,t.current=e;var n=uo(),a=n.timestamp;t.lastUpdated!==a&&(t.timeDelta=n.delta,t.lastUpdated=a,ao.postRender(t.scheduleVelocityCheck)),t.prev!==t.current&&t.updateSubscribers.notify(t.current),t.velocityUpdateSubscribers.getSize()&&t.velocityUpdateSubscribers.notify(t.getVelocity()),r&&t.renderSubscribers.notify(t.current)},this.scheduleVelocityCheck=function(){return ao.postRender(t.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==t.lastUpdated&&(t.prev=t.current,t.velocityUpdateSubscribers.notify(t.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=!isNaN(parseFloat(this.current))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?Bi(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise(function(r){t.hasAnimated=!0,t.stopAnimation=e(r)}).then(function(){return t.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Qi(e){return new Ji(e)}var es=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},ts=function(e){return 1e3*e},rs={linear:xi,easeIn:Ei,easeInOut:_i,easeOut:ki,circIn:wi,circInOut:Ci,circOut:Si,backIn:Oi,backInOut:Ai,backOut:Ri,anticipate:Ii,bounceIn:Ni,bounceInOut:e=>e<.5?.5*(1-Ti(1-2*e)):.5*Ti(2*e-1)+.5,bounceOut:Ti},ns=function(e){if(Array.isArray(e)){Ia(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=wa(e,4);return function(e,t,r,n){if(e===t&&r===n)return xi;const a=new Float32Array(11);for(let t=0;t<11;++t)a[t]=Yi(.1*t,e,r);return o=>0===o||1===o?o:Yi(function(t){let n=0,o=1;for(;10!==o&&a[o]<=t;++o)n+=.1;--o;const i=n+(t-a[o])/(a[o+1]-a[o])*.1,s=Gi(i,e,r);return s>=.001?function(e,t,r,n){for(let a=0;a<8;++a){const a=Gi(t,r,n);if(0===a)return t;t-=(Yi(t,r,n)-e)/a}return t}(t,i,e,r):0===s?i:function(e,t,r,n,a){let o,i,s=0;do{i=t+(r-t)/2,o=Yi(i,n,a)-e,o>0?r=i:t=i}while(Math.abs(o)>1e-7&&++s<10);return i}(t,n,n+.1,e,r)}(o),t,n)}(t[0],t[1],t[2],t[3])}return"string"==typeof e?(Ia(void 0!==rs[e],"Invalid easing type '".concat(e,"'")),rs[e]):e},as=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!Zo.test(t)||t.startsWith("url(")))},os=function(e){return Array.isArray(e)},is=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},ss=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},ls=function(){return{type:"keyframes",ease:"linear",duration:.3}},cs=function(e){return{type:"keyframes",duration:.8,values:e}},us={x:is,y:is,z:is,rotate:is,rotateX:is,rotateY:is,rotateZ:is,scaleX:ss,scaleY:ss,scale:ss,opacity:ls,backgroundColor:ls,color:ls,default:ss},ds=ka(ka({},Oo),{transform:Math.round}),ps={borderWidth:Po,borderTopWidth:Po,borderRightWidth:Po,borderBottomWidth:Po,borderLeftWidth:Po,borderRadius:Po,radius:Po,borderTopLeftRadius:Po,borderTopRightRadius:Po,borderBottomRightRadius:Po,borderBottomLeftRadius:Po,width:Po,maxWidth:Po,height:Po,maxHeight:Po,size:Po,top:Po,right:Po,bottom:Po,left:Po,padding:Po,paddingTop:Po,paddingRight:Po,paddingBottom:Po,paddingLeft:Po,margin:Po,marginTop:Po,marginRight:Po,marginBottom:Po,marginLeft:Po,rotate:To,rotateX:To,rotateY:To,rotateZ:To,scale:Ao,scaleX:Ao,scaleY:Ao,scaleZ:Ao,skew:To,skewX:To,skewY:To,distance:Po,translateX:Po,translateY:Po,translateZ:Po,x:Po,y:Po,z:Po,perspective:Po,transformPerspective:Po,opacity:Ro,originX:Mo,originY:Mo,originZ:Po,zIndex:ds,fillOpacity:Ro,strokeOpacity:Ro,numOctaves:ds},fs=ka(ka({},ps),{color:Uo,backgroundColor:Uo,outlineColor:Uo,fill:Uo,stroke:Uo,borderColor:Uo,borderTopColor:Uo,borderRightColor:Uo,borderBottomColor:Uo,borderLeftColor:Uo,filter:Qo,WebkitFilter:Qo}),ms=function(e){return fs[e]};function vs(e,t){var r,n=ms(e);return n!==Qo&&(n=Zo),null===(r=n.getAnimatableNone)||void 0===r?void 0:r.call(n,t)}var hs=function(e){return os(e)?e[e.length-1]||0:e},gs=!1;function ys(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function bs(e){return"number"==typeof e?0:vs("",e)}function xs(e,t){return e[t]||e.default||e}function Es(e,t,r,n){return void 0===n&&(n={}),t.start(function(a){var o,i,s=function(e,t,r,n,a){var o,i=xs(n,e),s=null!==(o=i.from)&&void 0!==o?o:t.get(),l=as(e,r);"none"===s&&l&&"string"==typeof r?s=vs(e,r):ys(s)&&"string"==typeof r?s=bs(r):!Array.isArray(r)&&ys(r)&&"string"==typeof s&&(r=bs(s));var c=as(e,s);return Aa(c===l,"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(r,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(r," via the `style` property.")),c&&l&&!1!==i.type?function(){var n={from:s,to:r,velocity:t.getVelocity(),onComplete:a,onUpdate:function(e){return t.set(e)}};return"inertia"===i.type||"decay"===i.type?function({from:e=0,velocity:t=0,min:r,max:n,power:a=.8,timeConstant:o=750,bounceStiffness:i=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:d,onComplete:p,onStop:f}){let m;function v(e){return void 0!==r&&e<r||void 0!==n&&e>n}function h(e){return void 0===r?n:void 0===n||Math.abs(r-e)<Math.abs(n-e)?r:n}function g(e){null==m||m.stop(),m=Vi(Object.assign(Object.assign({},e),{driver:u,onUpdate:t=>{var r;null==d||d(t),null===(r=e.onUpdate)||void 0===r||r.call(e,t)},onComplete:p,onStop:f}))}function y(e){g(Object.assign({type:"spring",stiffness:i,damping:s,restDelta:l},e))}if(v(e))y({from:e,velocity:t,to:h(e)});else{let n=a*t+e;void 0!==c&&(n=c(n));const i=h(n),s=i===r?-1:1;let u,d;const p=e=>{u=d,d=e,t=Bi(e-u,uo().delta),(1===s&&e>i||-1===s&&e<i)&&y({from:e,to:i,velocity:t})};g({type:"decay",from:e,velocity:t,timeConstant:o,power:a,restDelta:l,modifyTarget:c,onUpdate:v(n)?p:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(ka(ka({},n),i)):Vi(ka(ka({},function(e,t,r){var n,a,o,i;return Array.isArray(t.to)&&(null!==(n=e.duration)&&void 0!==n||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=Sa([],wa(e.to),!1),e.to[0]=e.from)}(t),function(e){var t=_a(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=ka(ka({},e),(a=r,i=os(o=t.to)?cs:us[a]||us.default,ka({to:o},i(o))))),ka(ka({},t),function(e){var t=e.ease,r=e.times,n=e.yoyo,a=e.flip,o=e.loop,i=_a(e,["ease","times","yoyo","flip","loop"]),s=ka({},i);return r&&(s.offset=r),i.duration&&(s.duration=ts(i.duration)),i.repeatDelay&&(s.repeatDelay=ts(i.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(ns):ns(t)),"tween"===i.type&&(s.type="keyframes"),(n||o||a)&&(Aa(!gs,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),gs=!0,n?s.repeatType="reverse":o?s.repeatType="loop":a&&(s.repeatType="mirror"),s.repeat=o||n||a||i.repeat),"spring"!==i.type&&(s.type="keyframes"),s}(e))}(i,n,e)),{onUpdate:function(e){var t;n.onUpdate(e),null===(t=i.onUpdate)||void 0===t||t.call(i,e)},onComplete:function(){var e;n.onComplete(),null===(e=i.onComplete)||void 0===e||e.call(i)}}))}:function(){var e,n,o=hs(r);return t.set(o),a(),null===(e=null==i?void 0:i.onUpdate)||void 0===e||e.call(i,o),null===(n=null==i?void 0:i.onComplete)||void 0===n||n.call(i),{stop:function(){}}}}(e,t,r,n,a),l=function(e,t){var r,n;return null!==(n=null!==(r=(xs(e,t)||{}).delay)&&void 0!==r?r:e.delay)&&void 0!==n?n:0}(n,e),c=function(){return i=s()};return l?o=window.setTimeout(c,ts(l)):c(),function(){clearTimeout(o),null==i||i.stop()}})}var ks=["TopLeft","TopRight","BottomLeft","BottomRight"],_s=ks.length,ws=function(e){return"string"==typeof e?parseFloat(e):e},Ss=function(e){return"number"==typeof e||Po.test(e)};function Cs(e,t){var r;return null!==(r=e[t])&&void 0!==r?r:e.borderRadius}var Os=As(0,.5,Si),Rs=As(.5,.95,xi);function As(e,t,r){return function(n){return n<e?0:n>t?1:r(bo(e,t,n))}}function Is(e,t){e.min=t.min,e.max=t.max}function Ts(e,t){Is(e.x,t.x),Is(e.y,t.y)}function Ns(e){return void 0===e||1===e}function Ps(e){var t=e.scaleX,r=e.scaleY;return!Ns(e.scale)||!Ns(t)||!Ns(r)}function Ls(e){return Ps(e)||Ds(e.x)||Ds(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Ds(e){return e&&"0%"!==e}function Ms(e,t,r){return r+t*(e-r)}function js(e,t,r,n,a){return void 0!==a&&(e=Ms(e,a,n)),Ms(e,r,n)+t}function Vs(e,t,r,n,a){void 0===t&&(t=0),void 0===r&&(r=1),e.min=js(e.min,t,r,n,a),e.max=js(e.max,t,r,n,a)}function Bs(e,t){var r=t.x,n=t.y;Vs(e.x,r.translate,r.scale,r.originPoint),Vs(e.y,n.translate,n.scale,n.originPoint)}function Fs(e,t){e.min=e.min+t,e.max=e.max+t}function zs(e,t,r){var n=wa(r,3),a=n[0],o=n[1],i=n[2],s=xo(e.min,e.max,void 0!==t[i]?t[i]:.5);Vs(e,t[a],t[o],s,t.scale)}var Ws=["x","scaleX","originX"],Hs=["y","scaleY","originY"];function Us(e,t){zs(e.x,t,Ws),zs(e.y,t,Hs)}function $s(e){return e.max-e.min}function qs(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=.01),Hi(e,t)<r}function Ys(e,t,r,n){void 0===n&&(n=.5),e.origin=n,e.originPoint=xo(t.min,t.max,e.origin),e.scale=$s(r)/$s(t),(qs(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=xo(r.min,r.max,e.origin)-e.originPoint,(qs(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Gs(e,t,r,n){Ys(e.x,t.x,r.x,null==n?void 0:n.originX),Ys(e.y,t.y,r.y,null==n?void 0:n.originY)}function Zs(e,t,r){e.min=r.min+t.min,e.max=e.min+$s(t)}function Xs(e,t,r){e.min=t.min-r.min,e.max=e.min+$s(t)}function Ks(e,t,r){Xs(e.x,t.x,r.x),Xs(e.y,t.y,r.y)}function Js(e,t,r,n,a){return e=Ms(e-=t,1/r,n),void 0!==a&&(e=Ms(e,1/a,n)),e}function Qs(e,t,r,n,a){var o=wa(r,3);!function(e,t,r,n,a,o,i){if(void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=.5),void 0===o&&(o=e),void 0===i&&(i=e),No.test(t)&&(t=parseFloat(t),t=xo(i.min,i.max,t/100)-i.min),"number"==typeof t){var s=xo(o.min,o.max,n);e===o&&(s-=t),e.min=Js(e.min,t,r,s,a),e.max=Js(e.max,t,r,s,a)}}(e,t[o[0]],t[o[1]],t[o[2]],t.scale,n,a)}var el=["x","scaleX","originX"],tl=["y","scaleY","originY"];function rl(e,t,r,n){Qs(e.x,t,el,null==r?void 0:r.x,null==n?void 0:n.x),Qs(e.y,t,tl,null==r?void 0:r.y,null==n?void 0:n.y)}function nl(e){return 0===e.translate&&1===e.scale}function al(e){return nl(e.x)&&nl(e.y)}function ol(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}var il=function(){function e(){this.members=[]}return e.prototype.add=function(e){Zi(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(Xi(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,r=this.members.findIndex(function(t){return e===t});if(0===r)return!1;for(var n=r;n>=0;n--){var a=this.members[n];if(!1!==a.isPresent){t=a;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var r,n=this.lead;e!==n&&(this.prevLead=n,this.lead=e,e.show(),n&&(n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues,e.snapshot.isShared=!0),(null===(r=e.root)||void 0===r?void 0:r.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&n.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(e){var t,r,n,a,o;null===(r=(t=e.options).onExitComplete)||void 0===r||r.call(t),null===(o=null===(n=e.resumingFrom)||void 0===n?void 0:(a=n.options).onExitComplete)||void 0===o||o.call(a)})},e.prototype.scheduleRender=function(){this.members.forEach(function(e){e.instance&&e.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),sl={};function ll(e,t,r){var n=e.y.translate/t.y,a="translate3d(".concat(e.x.translate/t.x,"px, ").concat(n,"px, 0) ");if(a+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),r){var o=r.rotate,i=r.rotateX,s=r.rotateY;o&&(a+="rotate(".concat(o,"deg) ")),i&&(a+="rotateX(".concat(i,"deg) ")),s&&(a+="rotateY(".concat(s,"deg) "))}var l=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(a+="scale(".concat(e.x.scale*t.x,", ").concat(l,")"))?"none":a}function cl(e){return[e("x"),e("y")]}var ul=["","X","Y","Z"],dl=["transformPerspective","x","y","z"];function pl(e,t){return dl.indexOf(e)-dl.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return ul.forEach(function(t){return dl.push(e+t)})});var fl=new Set(dl);function ml(e){return fl.has(e)}var vl=new Set(["originX","originY","originZ"]);function hl(e){return vl.has(e)}var gl=function(e,t){return e.depth-t.depth},yl=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Zi(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){Xi(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(gl),this.isDirty=!1,this.children.forEach(e)},e}();function bl(e){var t=es(e)?e.get():e;return function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)}(t)?t.toValue():t}var xl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function El(e){var t=e.attachResizeListener,r=e.defaultParent,n=e.measureScroll,a=e.checkIsScrollRoot,o=e.resetTransform;return function(){function e(e,t,n){var a=this;void 0===t&&(t={}),void 0===n&&(n=null==r?void 0:r()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!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.potentialNodes=new Map,this.checkUpdateFailed=function(){a.isUpdating&&(a.isUpdating=!1,a.clearAllSnapshots())},this.updateProjection=function(){a.nodes.forEach(Rl),a.nodes.forEach(Al)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?Sa(Sa([],wa(n.path),!1),[n],!1):[],this.parent=n,this.depth=n?n.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var o=0;o<this.path.length;o++)this.path[o].shouldResetTransform=!0;this.root===this&&(this.nodes=new yl)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Ki),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=this.eventHandlers.get(e);null==n||n.notify.apply(n,Sa([],wa(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,r){var n,a=this;if(void 0===r&&(r=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var o=this.options,i=o.layoutId,s=o.layout,l=o.visualElement;if(l&&!l.getInstance()&&l.mount(e),this.root.nodes.add(this),null===(n=this.parent)||void 0===n||n.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),r&&(s||i)&&(this.isLayoutDirty=!0),t){var c,u=function(){return a.root.updateBlockedByResize=!1};t(e,function(){a.root.updateBlockedByResize=!0,clearTimeout(c),c=window.setTimeout(u,250),xl.hasAnimatedSinceResize&&(xl.hasAnimatedSinceResize=!1,a.nodes.forEach(Ol))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&l&&(i||s)&&this.addEventListener("didUpdate",function(e){var t,r,n,o,i,s=e.delta,c=e.hasLayoutChanged,u=e.hasRelativeTargetChanged,d=e.layout;if(a.isTreeAnimationBlocked())return a.target=void 0,void(a.relativeTarget=void 0);var p=null!==(r=null!==(t=a.options.transition)&&void 0!==t?t:l.getDefaultTransition())&&void 0!==r?r:Dl,f=l.getProps(),m=f.onLayoutAnimationStart,v=f.onLayoutAnimationComplete,h=!a.targetLayout||!ol(a.targetLayout,d)||u,g=!c&&u;if((null===(n=a.resumeFrom)||void 0===n?void 0:n.instance)||g||c&&(h||!a.currentAnimation)){a.resumeFrom&&(a.resumingFrom=a.resumeFrom,a.resumingFrom.resumingFrom=void 0),a.setAnimationOrigin(s,g);var y=ka(ka({},xs(p,"layout")),{onPlay:m,onComplete:v});l.shouldReduceMotion&&(y.delay=0,y.type=!1),a.startAnimation(y)}else c||0!==a.animationProgress||a.finishAnimation(),a.isLead()&&(null===(i=(o=a.options).onExitComplete)||void 0===i||i.call(o));a.targetLayout=d})}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,oo.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(Il))},e.prototype.willUpdate=function(e){var t,r,n;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(r=(t=this.options).onExitComplete)||void 0===r||r.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var a=0;a<this.path.length;a++){var o=this.path[a];o.shouldResetTransform=!0,o.updateScroll()}var i=this.options;if(void 0!==i.layoutId||i.layout){var s=null===(n=this.options.visualElement)||void 0===n?void 0:n.getProps().transformTemplate;this.prevTransformTemplateValue=null==s?void 0:s(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Sl);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Ml),this.potentialNodes.clear()),this.nodes.forEach(Cl),this.nodes.forEach(kl),this.nodes.forEach(_l),this.clearAllSnapshots(),io.update(),io.preRender(),io.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(wl),this.sharedNodes.forEach(Tl)},e.prototype.scheduleUpdateProjection=function(){ao.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;ao.postRender(function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()})},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));Vl(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++)this.path[t].updateScroll();var r=this.measure();Vl(r);var n=this.layout;this.layout={measured:r,actual:this.removeElementScroll(r)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==n?void 0:n.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=a(this.instance),this.scroll=n(this.instance))},e.prototype.resetTransform=function(){var e;if(o){var t=this.isLayoutDirty||this.shouldResetTransform,r=this.projectionDelta&&!al(this.projectionDelta),n=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,a=null==n?void 0:n(this.latestValues,""),i=a!==this.prevTransformTemplateValue;t&&(r||Ls(this.latestValues)||i)&&(o(this.instance,a),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};var t=e.measureViewportBox(),r=this.root.scroll;return r&&(Fs(t.x,r.x),Fs(t.y,r.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};Ts(t,e);for(var r=0;r<this.path.length;r++){var n=this.path[r],a=n.scroll;if(n!==this.root&&a&&n.options.layoutScroll){if(n.isScrollRoot){Ts(t,e);var o=this.root.scroll;o&&(Fs(t.x,-o.x),Fs(t.y,-o.y))}Fs(t.x,a.x),Fs(t.y,a.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var r={x:{min:0,max:0},y:{min:0,max:0}};Ts(r,e);for(var n=0;n<this.path.length;n++){var a=this.path[n];!t&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Us(r,{x:-a.scroll.x,y:-a.scroll.y}),Ls(a.latestValues)&&Us(r,a.latestValues)}return Ls(this.latestValues)&&Us(r,this.latestValues),r},e.prototype.removeTransform=function(e){var t,r={x:{min:0,max:0},y:{min:0,max:0}};Ts(r,e);for(var n=0;n<this.path.length;n++){var a=this.path[n];if(a.instance&&Ls(a.latestValues)){Ps(a.latestValues)&&a.updateSnapshot();var o={x:{min:0,max:0},y:{min:0,max:0}};Ts(o,a.measure()),rl(r,a.latestValues,null===(t=a.snapshot)||void 0===t?void 0:t.layout,o)}}return Ls(this.latestValues)&&rl(r,this.latestValues),r},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=ka(ka(ka({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){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},e.prototype.resolveTargetDelta=function(){var e,t,r,n,a=this.options;this.layout&&(a.layout||a.layoutId)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Ks(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Ts(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(Zs((t=this.target).x,(r=this.relativeTarget).x,(n=this.relativeParent.target).x),Zs(t.y,r.y,n.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Ts(this.target,this.layout.actual),Bs(this.target,this.targetDelta)):Ts(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Ks(this.relativeTargetOrigin,this.target,this.relativeParent.target),Ts(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!Ls(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,r=t.layout,n=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(r||n)){var a=this.getLead();Ts(this.layoutCorrected,this.layout.actual),function(e,t,r,n){var a,o;void 0===n&&(n=!1);var i=r.length;if(i){var s,l;t.x=t.y=1;for(var c=0;c<i;c++)l=(s=r[c]).projectionDelta,"contents"!==(null===(o=null===(a=s.instance)||void 0===a?void 0:a.style)||void 0===o?void 0:o.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Us(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,Bs(e,l)),n&&Ls(s.latestValues)&&Us(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==a);var o=a.target;if(o){this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});var i=this.treeScale.x,s=this.treeScale.y,l=this.projectionTransform;Gs(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.projectionTransform=ll(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===i&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,r,n;void 0===e&&(e=!0),null===(r=(t=this.options).scheduleRender)||void 0===r||r.call(t),e&&(null===(n=this.getStack())||void 0===n||n.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var r,n=this;void 0===t&&(t=!1);var a=this.snapshot,o=(null==a?void 0:a.latestValues)||{},i=ka({},this.latestValues),s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var l={x:{min:0,max:0},y:{min:0,max:0}},c=null==a?void 0:a.isShared,u=((null===(r=this.getStack())||void 0===r?void 0:r.members.length)||0)<=1,d=Boolean(c&&!u&&!0===this.options.crossfade&&!this.path.some(Ll));this.animationProgress=0,this.mixTargetDelta=function(t){var r,a=t/1e3;Nl(s.x,e.x,a),Nl(s.y,e.y,a),n.setTargetDelta(s),n.relativeTarget&&n.relativeTargetOrigin&&n.layout&&(null===(r=n.relativeParent)||void 0===r?void 0:r.layout)&&(Ks(l,n.layout.actual,n.relativeParent.layout.actual),function(e,t,r,n){Pl(e.x,t.x,r.x,n),Pl(e.y,t.y,r.y,n)}(n.relativeTarget,n.relativeTargetOrigin,l,a)),c&&(n.animationValues=i,function(e,t,r,n,a,o){var i,s,l,c;a?(e.opacity=xo(0,null!==(i=r.opacity)&&void 0!==i?i:1,Os(n)),e.opacityExit=xo(null!==(s=t.opacity)&&void 0!==s?s:1,0,Rs(n))):o&&(e.opacity=xo(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(c=r.opacity)&&void 0!==c?c:1,n));for(var u=0;u<_s;u++){var d="border".concat(ks[u],"Radius"),p=Cs(t,d),f=Cs(r,d);void 0===p&&void 0===f||(p||(p=0),f||(f=0),0===p||0===f||Ss(p)===Ss(f)?(e[d]=Math.max(xo(ws(p),ws(f),n),0),(No.test(f)||No.test(p))&&(e[d]+="%")):e[d]=f)}(t.rotate||r.rotate)&&(e.rotate=xo(t.rotate||0,r.rotate||0,n))}(i,o,n.latestValues,a,d,u)),n.root.scheduleUpdateProjection(),n.scheduleRender(),n.animationProgress=a},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,r,n=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(r=this.resumingFrom.currentAnimation)||void 0===r||r.stop()),this.pendingAnimation&&(oo.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ao.update(function(){xl.hasAnimatedSinceResize=!0,n.currentAnimation=function(e,t,r){void 0===r&&(r={});var n=es(0)?0:Qi(0);return Es("",n,1e3,r),{stop:function(){return n.stop()},isAnimating:function(){return n.isAnimating()}}}(0,0,ka(ka({},e),{onUpdate:function(t){var r;n.mixTargetDelta(t),null===(r=e.onUpdate)||void 0===r||r.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),n.completeAnimation()}})),n.resumingFrom&&(n.resumingFrom.currentAnimation=n.currentAnimation),n.pendingAnimation=void 0})},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,r=e.target,n=e.latestValues;t&&r&&e.layout&&(Ts(t,r),Us(t,n),Gs(this.projectionDeltaWithTransform,this.layoutCorrected,t,n))},e.prototype.registerSharedNode=function(e,t){var r,n,a;this.sharedNodes.has(e)||this.sharedNodes.set(e,new il),this.sharedNodes.get(e).add(t),t.promote({transition:null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.transition,preserveFollowOpacity:null===(a=null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.shouldPreserveFollowOpacity)||void 0===a?void 0:a.call(n,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,r=t.needsReset,n=t.transition,a=t.preserveFollowOpacity,o=this.getStack();o&&o.promote(this,a),r&&(this.projectionDelta=void 0,this.needsReset=!0),n&&this.setOptions({transition:n})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,r={},n=0;n<ul.length;n++)e.getStaticValue(a="rotate"+ul[n])&&(t=!0,r[a]=e.getStaticValue(a),e.setStaticValue(a,0));if(t){for(var a in null==e||e.syncRender(),r)e.setStaticValue(a,r[a]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,r,n,a,o,i;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var l=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=bl(e.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none",s;var c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){var u={};return this.options.layoutId&&(u.opacity=null!==(r=this.latestValues.opacity)&&void 0!==r?r:1,u.pointerEvents=bl(e.pointerEvents)||""),this.hasProjected&&!Ls(this.latestValues)&&(u.transform=l?l({},""):"none",this.hasProjected=!1),u}var d=c.animationValues||c.latestValues;this.applyTransformsToTarget(),s.transform=ll(this.projectionDeltaWithTransform,this.treeScale,d),l&&(s.transform=l(d,s.transform));var p=this.projectionDelta,f=p.x,m=p.y;for(var v in s.transformOrigin="".concat(100*f.origin,"% ").concat(100*m.origin,"% 0"),s.opacity=c.animationValues?c===this?null!==(a=null!==(n=d.opacity)&&void 0!==n?n:this.latestValues.opacity)&&void 0!==a?a:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:c===this?null!==(o=d.opacity)&&void 0!==o?o:"":null!==(i=d.opacityExit)&&void 0!==i?i:0,sl)if(void 0!==d[v]){var h=sl[v],g=h.applyTo,y=(0,h.correct)(d[v],c);if(g)for(var b=g.length,x=0;x<b;x++)s[g[x]]=y;else s[v]=y}return this.options.layoutId&&(s.pointerEvents=c===this?bl(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},e.prototype.resetTree=function(){this.root.nodes.forEach(function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(Sl),this.root.sharedNodes.clear()},e}()}function kl(e){e.updateLayout()}function _l(e){var t,r,n,a,o=null!==(r=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==r?r:e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){var i=e.layout,s=i.actual,l=i.measured;"size"===e.options.animationType?cl(function(e){var t=o.isShared?o.measured[e]:o.layout[e],r=$s(t);t.min=s[e].min,t.max=t.min+r}):"position"===e.options.animationType&&cl(function(e){var t=o.isShared?o.measured[e]:o.layout[e],r=$s(s[e]);t.max=t.min+r});var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Gs(c,s,o.layout);var u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o.isShared?Gs(u,e.applyTransform(l,!0),o.measured):Gs(u,s,o.layout);var d=!al(c),p=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var f=e.relativeParent,m=f.snapshot,v=f.layout;if(m&&v){var h={x:{min:0,max:0},y:{min:0,max:0}};Ks(h,o.layout,m.layout);var g={x:{min:0,max:0},y:{min:0,max:0}};Ks(g,s,v.actual),ol(h,g)||(p=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:o,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeTargetChanged:p})}else e.isLead()&&(null===(a=(n=e.options).onExitComplete)||void 0===a||a.call(n));e.options.transition=void 0}function wl(e){e.clearSnapshot()}function Sl(e){e.clearMeasurements()}function Cl(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Ol(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Rl(e){e.resolveTargetDelta()}function Al(e){e.calcProjection()}function Il(e){e.resetRotation()}function Tl(e){e.removeLeadSnapshot()}function Nl(e,t,r){e.translate=xo(t.translate,0,r),e.scale=xo(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Pl(e,t,r,n){e.min=xo(t.min,r.min,n),e.max=xo(t.max,r.max,n)}function Ll(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var Dl={duration:.45,ease:[.4,0,.1,1]};function Ml(e,t){for(var r=e.root,n=e.path.length-1;n>=0;n--)if(Boolean(e.path[n].instance)){r=e.path[n];break}var a=(r&&r!==e.root?r.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));a&&e.mount(a,!0)}function jl(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Vl(e){jl(e.x),jl(e.y)}var Bl=1,Fl=F.createContext({}),zl=F.createContext({}),Wl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ea(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement;t&&t.setProps(e.props)},t.prototype.render=function(){return this.props.children},t}(F.Component);function Hl(e){function t(t,r){return void 0===r&&(r={}),function(e){var t=e.preloadedFeatures,r=e.createVisualElement,n=e.projectionNodeConstructor,a=e.useRender,o=e.useVisualState,i=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?Ra.projectionNodeConstructor=e[t]:Ra[t].Component=e[t])}(t),F.forwardRef(function(e,s){var l=function(e){var t,r=e.layoutId,n=null===(t=F.useContext(Fl))||void 0===t?void 0:t.id;return n&&void 0!==r?n+"-"+r:r}(e);e=ka(ka({},e),{layoutId:l});var c=F.useContext(La),u=null,d=function(e){var t=function(e,t){if(qa(e)){var r=e.initial,n=e.animate;return{initial:!1===r||Ha(r)?r:void 0,animate:Ha(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,F.useContext(Da)),r=t.initial,n=t.animate;return F.useMemo(function(){return{initial:r,animate:n}},[Ga(r),Ga(n)])}(e),p=c.isStatic?void 0:Za(function(){if(xl.hasEverUpdated)return Bl++}),f=o(e,c.isStatic);return!c.isStatic&&ja&&(d.visualElement=function(e,t,r,n){var a,o,i=F.useContext(Ta),s=F.useContext(Da).visualElement,l=F.useContext(Ma),c=(!Fa&&function(){if(Fa=!0,ja)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Ba.current=e.matches};e.addListener(t),t()}else Ba.current=!1}(),a=wa(F.useState(Ba.current),1)[0],"never"!==(o=F.useContext(La).reducedMotion)&&("always"===o||a)),u=F.useRef(void 0);n||(n=i.renderer),!u.current&&n&&(u.current=n(e,{visualState:t,parent:s,props:r,presenceId:null==l?void 0:l.id,blockInitialAnimation:!1===(null==l?void 0:l.initial),shouldReduceMotion:c}));var d=u.current;return Va(function(){null==d||d.syncRender()}),F.useEffect(function(){var e;null===(e=null==d?void 0:d.animationState)||void 0===e||e.animateChanges()}),Va(function(){return function(){return null==d?void 0:d.notifyUnmount()}},[]),d}(i,f,ka(ka({},c),e),r),function(e,t,r,n){var a,o=t.layoutId,i=t.layout,s=t.drag,l=t.dragConstraints,c=t.layoutScroll,u=F.useContext(zl);n&&r&&!(null==r?void 0:r.projection)&&(r.projection=new n(e,r.getLatestValues(),null===(a=r.parent)||void 0===a?void 0:a.projection),r.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(s)||l&&za(l),visualElement:r,scheduleRender:function(){return r.scheduleRender()},animationType:"string"==typeof i?i:"both",initialPromotionConfig:u,layoutScroll:c}))}(p,e,d.visualElement,n||Ra.projectionNodeConstructor),u=function(e,t,r){var n=[],a=F.useContext(Ta);if(!t)return null;"production"!==Ca&&r&&a.strict&&Ia(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var o=0;o<Pa;o++){var i=Na[o],s=Ra[i],l=s.Component;(0,s.isEnabled)(e)&&l&&n.push(F.createElement(l,ka({key:i},e,{visualElement:t})))}return n}(e,d.visualElement,t)),F.createElement(Wl,{visualElement:d.visualElement,props:ka(ka({},c),e)},u,F.createElement(Da.Provider,{value:d},a(i,e,p,function(e,t,r){return F.useCallback(function(n){var a;n&&(null===(a=e.mount)||void 0===a||a.call(e,n)),t&&(n?t.mount(n):t.unmount()),r&&("function"==typeof r?r(n):za(r)&&(r.current=n))},[t])}(f,d.visualElement,s),f,c.isStatic,d.visualElement)))})}(e(t,r))}if("undefined"==typeof Proxy)return t;var r=new Map;return new Proxy(t,{get:function(e,n){return r.has(n)||r.set(n,t(n)),r.get(n)}})}var Ul=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function $l(e){return"string"==typeof e&&!e.includes("-")&&!!(Ul.indexOf(e)>-1||/[A-Z]/.test(e))}function ql(e,t){var r=t.layout,n=t.layoutId;return ml(e)||hl(e)||(r||void 0!==n)&&(!!sl[e]||"opacity"===e)}var Yl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Gl(e){return e.startsWith("--")}var Zl=function(e,t){return t&&"number"==typeof e?t.transform(e):e};function Xl(e,t,r,n){var a,o=e.style,i=e.vars,s=e.transform,l=e.transformKeys,c=e.transformOrigin;l.length=0;var u=!1,d=!1,p=!0;for(var f in t){var m=t[f];if(Gl(f))i[f]=m;else{var v=ps[f],h=Zl(m,v);if(ml(f)){if(u=!0,s[f]=h,l.push(f),!p)continue;m!==(null!==(a=v.default)&&void 0!==a?a:0)&&(p=!1)}else hl(f)?(c[f]=h,d=!0):o[f]=h}}u?o.transform=function(e,t,r,n){var a=e.transform,o=e.transformKeys,i=t.enableHardwareAcceleration,s=void 0===i||i,l=t.allowTransformNone,c=void 0===l||l,u="";o.sort(pl);for(var d=!1,p=o.length,f=0;f<p;f++){var m=o[f];u+="".concat(Yl[m]||m,"(").concat(a[m],") "),"z"===m&&(d=!0)}return!d&&s?u+="translateZ(0)":u=u.trim(),n?u=n(a,r?"":u):c&&r&&(u="none"),u}(e,r,p,n):n?o.transform=n({},""):!t.transform&&o.transform&&(o.transform="none"),d&&(o.transformOrigin=function(e){var t=e.originX,r=e.originY,n=void 0===r?"50%":r,a=e.originZ,o=void 0===a?0:a;return"".concat(void 0===t?"50%":t," ").concat(n," ").concat(o)}(c))}function Kl(e,t,r){for(var n in t)es(t[n])||ql(n,r)||(e[n]=t[n])}function Jl(e,t,r){var n={},a=function(e,t,r){var n={};return Kl(n,e.style||{},e),Object.assign(n,function(e,t,r){var n=e.transformTemplate;return F.useMemo(function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};Xl(e,t,{enableHardwareAcceleration:!r},n);var a=e.style;return ka(ka({},e.vars),a)},[t])}(e,t,r)),e.transformValues&&(n=e.transformValues(n)),n}(e,t,r);return Boolean(e.drag)&&!1!==e.dragListener&&(n.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),n.style=a,n}var Ql=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function ec(e){return Ql.has(e)}var tc,rc=function(e){return!ec(e)};try{(tc=require("@emotion/is-prop-valid").default)&&(rc=function(e){return e.startsWith("on")?!ec(e):tc(e)})}catch(e){}function nc(e,t,r){return"string"==typeof e?e:Po.transform(t+r*e)}var ac={offset:"stroke-dashoffset",array:"stroke-dasharray"},oc={offset:"strokeDashoffset",array:"strokeDasharray"};function ic(e,t,r,n){var a=t.attrX,o=t.attrY,i=t.originX,s=t.originY,l=t.pathLength,c=t.pathSpacing,u=void 0===c?1:c,d=t.pathOffset,p=void 0===d?0:d;Xl(e,_a(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),r,n),e.attrs=e.style,e.style={};var f=e.attrs,m=e.style,v=e.dimensions;f.transform&&(v&&(m.transform=f.transform),delete f.transform),v&&(void 0!==i||void 0!==s||m.transform)&&(m.transformOrigin=function(e,t,r){var n=nc(t,e.x,e.width),a=nc(r,e.y,e.height);return"".concat(n," ").concat(a)}(v,void 0!==i?i:.5,void 0!==s?s:.5)),void 0!==a&&(f.x=a),void 0!==o&&(f.y=o),void 0!==l&&function(e,t,r,n,a){void 0===r&&(r=1),void 0===n&&(n=0),void 0===a&&(a=!0),e.pathLength=1;var o=a?ac:oc;e[o.offset]=Po.transform(-n);var i=Po.transform(t),s=Po.transform(r);e[o.array]="".concat(i," ").concat(s)}(f,l,u,p,!1)}var sc=function(){return ka(ka({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function lc(e,t){var r=F.useMemo(function(){var r=sc();return ic(r,t,{enableHardwareAcceleration:!1},e.transformTemplate),ka(ka({},r.attrs),{style:ka({},r.style)})},[t]);if(e.style){var n={};Kl(n,e.style,e),r.style=ka(ka({},n),r.style)}return r}function cc(e){return void 0===e&&(e=!1),function(t,r,n,a,o,i){var s=o.latestValues,l=($l(t)?lc:Jl)(r,s,i),c=function(e,t,r){var n={};for(var a in e)(rc(a)||!0===r&&ec(a)||!t&&!ec(a)||e.draggable&&a.startsWith("onDrag"))&&(n[a]=e[a]);return n}(r,"string"==typeof t,e),u=ka(ka(ka({},c),l),{ref:a});return n&&(u["data-projection-id"]=n),F.createElement(t,u)}}var uc=/([a-z])([A-Z])/g,dc=function(e){return e.replace(uc,"$1-$2").toLowerCase()};function pc(e,t,r,n){var a=t.style,o=t.vars;for(var i in Object.assign(e.style,a,n&&n.getProjectionStyles(r)),o)e.style.setProperty(i,o[i])}var fc=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function mc(e,t,r,n){for(var a in pc(e,t,void 0,n),t.attrs)e.setAttribute(fc.has(a)?a:dc(a),t.attrs[a])}function vc(e){var t=e.style,r={};for(var n in t)(es(t[n])||ql(n,e))&&(r[n]=t[n]);return r}function hc(e){var t=vc(e);for(var r in e)es(e[r])&&(t["x"===r||"y"===r?"attr"+r.toUpperCase():r]=e[r]);return t}function gc(e){return"object"==typeof e&&"function"==typeof e.start}function yc(e,t,r,n){var a=e.createRenderState,o=e.onMount,i={latestValues:xc(t,r,n,e.scrapeMotionValuesFromProps),renderState:a()};return o&&(i.mount=function(e){return o(t,e,i)}),i}var bc=function(e){return function(t,r){var n=F.useContext(Da),a=F.useContext(Ma);return r?yc(e,t,n,a):Za(function(){return yc(e,t,n,a)})}};function xc(e,t,r,n){var a={},o=!1===(null==r?void 0:r.initial),i=n(e);for(var s in i)a[s]=bl(i[s]);var l=e.initial,c=e.animate,u=qa(e),d=Ya(e);t&&d&&!u&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=c||(c=t.animate));var p=o||!1===l,f=p?c:l;return f&&"boolean"!=typeof f&&!gc(f)&&(Array.isArray(f)?f:[f]).forEach(function(t){var r=Ua(e,t);if(r){var n=r.transitionEnd,o=_a(r,["transitionEnd","transition"]);for(var i in o){var s=o[i];Array.isArray(s)&&(s=s[p?s.length-1:0]),null!==s&&(a[i]=s)}for(var i in n)a[i]=n[i]}}),a}var Ec,kc={useVisualState:bc({scrapeMotionValuesFromProps:hc,createRenderState:sc,onMount:function(e,t,r){var n=r.renderState,a=r.latestValues;try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}ic(n,a,{enableHardwareAcceleration:!1},e.transformTemplate),mc(t,n)}})},_c={useVisualState:bc({scrapeMotionValuesFromProps:vc,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function wc(e,t,r,n){return void 0===n&&(n={passive:!0}),e.addEventListener(t,r,n),function(){return e.removeEventListener(t,r)}}function Sc(e,t,r,n){F.useEffect(function(){var a=e.current;if(r&&a)return wc(a,t,r,n)},[e,t,r,n])}function Cc(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Oc(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"}(Ec||(Ec={}));var Rc={pageX:0,pageY:0};function Ac(e,t){void 0===t&&(t="page");var r=e.touches[0]||e.changedTouches[0]||Rc;return{x:r[t+"X"],y:r[t+"Y"]}}function Ic(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Tc(e,t){return void 0===t&&(t="page"),{point:Oc(e)?Ac(e,t):Ic(e,t)}}var Nc=function(e,t){void 0===t&&(t=!1);var r,n=function(t){return e(t,Tc(t))};return t?(r=n,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&r(e)}):n},Pc={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Lc={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Dc(e){return ja&&null===window.onpointerdown?e:ja&&null===window.ontouchstart?Lc[e]:ja&&null===window.onmousedown?Pc[e]:e}function Mc(e,t,r,n){return wc(e,Dc(t),Nc(r,"pointerdown"===t),n)}function jc(e,t,r,n){return Sc(e,Dc(t),r&&Nc(r,"pointerdown"===t),n)}function Vc(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var Bc=Vc("dragHorizontal"),Fc=Vc("dragVertical");function zc(e){var t=!1;if("y"===e)t=Fc();else if("x"===e)t=Bc();else{var r=Bc(),n=Fc();r&&n?t=function(){r(),n()}:(r&&r(),n&&n())}return t}function Wc(){var e=zc(!0);return!e||(e(),!1)}function Hc(e,t,r){return function(n,a){var o;Cc(n)&&!Wc()&&(null===(o=e.animationState)||void 0===o||o.setActive(Ec.Hover,t),null==r||r(n,a))}}var Uc=function(e,t){return!!t&&(e===t||Uc(e,t.parentElement))};function $c(e){return F.useEffect(function(){return function(){return e()}},[])}var qc=new Set;function Yc(e,t,r){e||qc.has(t)||(console.warn(t),r&&console.warn(r),qc.add(t))}var Gc=new WeakMap,Zc=new WeakMap,Xc=function(e){var t;null===(t=Gc.get(e.target))||void 0===t||t(e)},Kc=function(e){e.forEach(Xc)},Jc={some:0,all:1};function Qc(e,t,r,n){var a=n.root,o=n.margin,i=n.amount,s=void 0===i?"some":i,l=n.once;F.useEffect(function(){if(e){var n={root:null==a?void 0:a.current,rootMargin:o,threshold:"number"==typeof s?s:Jc[s]};return function(e,n,a){var o=function(e){var t=e.root,r=_a(e,["root"]),n=t||document;Zc.has(n)||Zc.set(n,{});var a=Zc.get(n),o=JSON.stringify(r);return a[o]||(a[o]=new IntersectionObserver(Kc,ka({root:t},r))),a[o]}(n);return Gc.set(e,function(e){var n,a=e.isIntersecting;if(t.isInView!==a&&(t.isInView=a,!l||a||!t.hasEnteredView)){a&&(t.hasEnteredView=!0),null===(n=r.animationState)||void 0===n||n.setActive(Ec.InView,a);var o=r.getProps(),i=a?o.onViewportEnter:o.onViewportLeave;null==i||i(e)}}),o.observe(e),function(){Gc.delete(e),o.unobserve(e)}}(r.getInstance(),n)}},[e,a,o,s])}function eu(e,t,r,n){var a=n.fallback,o=void 0===a||a;F.useEffect(function(){e&&o&&("production"!==Ca&&Yc(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var e;t.hasEnteredView=!0;var n=r.getProps().onViewportEnter;null==n||n(null),null===(e=r.animationState)||void 0===e||e.setActive(Ec.InView,!0)}))},[e])}var tu=function(e){return function(t){return e(t),null}},ru={inView:tu(function(e){var t=e.visualElement,r=e.whileInView,n=e.onViewportEnter,a=e.onViewportLeave,o=e.viewport,i=void 0===o?{}:o,s=F.useRef({hasEnteredView:!1,isInView:!1}),l=Boolean(r||n||a);i.once&&s.current.hasEnteredView&&(l=!1),("undefined"==typeof IntersectionObserver?eu:Qc)(l,s.current,t,i)}),tap:tu(function(e){var t=e.onTap,r=e.onTapStart,n=e.onTapCancel,a=e.visualElement,o=t||r||n||e.whileTap,i=F.useRef(!1),s=F.useRef(null),l={passive:!(r||t||n||f)};function c(){var e;null===(e=s.current)||void 0===e||e.call(s),s.current=null}function u(){var e;return c(),i.current=!1,null===(e=a.animationState)||void 0===e||e.setActive(Ec.Tap,!1),!Wc()}function d(e,r){u()&&(Uc(a.getInstance(),e.target)?null==t||t(e,r):null==n||n(e,r))}function p(e,t){u()&&(null==n||n(e,t))}function f(e,t){var n;c(),i.current||(i.current=!0,s.current=ci(Mc(window,"pointerup",d,l),Mc(window,"pointercancel",p,l)),null===(n=a.animationState)||void 0===n||n.setActive(Ec.Tap,!0),null==r||r(e,t))}jc(a,"pointerdown",o?f:void 0,l),$c(c)}),focus:tu(function(e){var t=e.whileFocus,r=e.visualElement;Sc(r,"focus",t?function(){var e;null===(e=r.animationState)||void 0===e||e.setActive(Ec.Focus,!0)}:void 0),Sc(r,"blur",t?function(){var e;null===(e=r.animationState)||void 0===e||e.setActive(Ec.Focus,!1)}:void 0)}),hover:tu(function(e){var t=e.onHoverStart,r=e.onHoverEnd,n=e.whileHover,a=e.visualElement;jc(a,"pointerenter",t||n?Hc(a,!0,t):void 0,{passive:!t}),jc(a,"pointerleave",r||n?Hc(a,!1,r):void 0,{passive:!r})})},nu=0,au=function(){return nu++},ou=function(){return Za(au)};function iu(){var e=F.useContext(Ma);if(null===e)return[!0,null];var t=e.isPresent,r=e.onExitComplete,n=e.register,a=ou();return F.useEffect(function(){return n(a)},[]),!t&&r?[!1,function(){return null==r?void 0:r(a)}]:[!0]}function su(e,t){if(!Array.isArray(t))return!1;var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}var lu=function(e){return/^\-?\d*\.?\d+$/.test(e)},cu=function(e){return/^0[^.\s]+$/.test(e)},uu=function(e){return function(t){return t.test(e)}},du=[Oo,Po,No,To,Do,Lo,{test:function(e){return"auto"===e},parse:function(e){return e}}],pu=function(e){return du.find(uu(e))},fu=Sa(Sa([],wa(du),!1),[Uo,Zo],!1),mu=function(e){return fu.find(uu(e))};function vu(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Qi(r))}function hu(e,t){if(t)return(t[e]||t.default||t).from}function gu(e,t,r){var n;void 0===r&&(r={});var a=$a(e,t,r.custom),o=(a||{}).transition,i=void 0===o?e.getDefaultTransition()||{}:o;r.transitionOverride&&(i=r.transitionOverride);var s=a?function(){return yu(e,a,r)}:function(){return Promise.resolve()},l=(null===(n=e.variantChildren)||void 0===n?void 0:n.size)?function(n){void 0===n&&(n=0);var a=i.delayChildren;return function(e,t,r,n,a,o){void 0===r&&(r=0),void 0===n&&(n=0),void 0===a&&(a=1);var i=[],s=(e.variantChildren.size-1)*n,l=1===a?function(e){return void 0===e&&(e=0),e*n}:function(e){return void 0===e&&(e=0),s-e*n};return Array.from(e.variantChildren).sort(bu).forEach(function(e,n){i.push(gu(e,t,ka(ka({},o),{delay:r+l(n)})).then(function(){return e.notifyAnimationComplete(t)}))}),Promise.all(i)}(e,t,(void 0===a?0:a)+n,i.staggerChildren,i.staggerDirection,r)}:function(){return Promise.resolve()},c=i.when;if(c){var u=wa("beforeChildren"===c?[s,l]:[l,s],2),d=u[1];return(0,u[0])().then(d)}return Promise.all([s(),l(r.delay)])}function yu(e,t,r){var n,a=void 0===r?{}:r,o=a.delay,i=void 0===o?0:o,s=a.transitionOverride,l=a.type,c=e.makeTargetAnimatable(t),u=c.transition,d=void 0===u?e.getDefaultTransition():u,p=c.transitionEnd,f=_a(c,["transition","transitionEnd"]);s&&(d=s);var m=[],v=l&&(null===(n=e.animationState)||void 0===n?void 0:n.getState()[l]);for(var h in f){var g=e.getValue(h),y=f[h];if(!(!g||void 0===y||v&&xu(v,h))){var b=ka({delay:i},d);e.shouldReduceMotion&&ml(h)&&(b=ka(ka({},b),{type:!1,delay:0}));var x=Es(h,g,y,b);m.push(x)}}return Promise.all(m).then(function(){p&&function(e,t){var r=$a(e,t),n=r?e.makeTargetAnimatable(r,!1):{},a=n.transitionEnd,o=void 0===a?{}:a,i=_a(n,["transitionEnd","transition"]);for(var s in i=ka(ka({},i),o))vu(e,s,hs(i[s]))}(e,p)})}function bu(e,t){return e.sortNodePosition(t)}function xu(e,t){var r=e.needsAnimating,n=e.protectedKeys.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,n}var Eu=[Ec.Animate,Ec.InView,Ec.Focus,Ec.Hover,Ec.Tap,Ec.Drag,Ec.Exit],ku=Sa([],wa(Eu),!1).reverse(),_u=Eu.length;function wu(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Su={animation:tu(function(e){var t=e.visualElement,r=e.animate;t.animationState||(t.animationState=function(e){var t,r=function(e){return function(t){return Promise.all(t.map(function(t){return function(e,t,r){var n;if(void 0===r&&(r={}),e.notifyAnimationStart(t),Array.isArray(t)){var a=t.map(function(t){return gu(e,t,r)});n=Promise.all(a)}else if("string"==typeof t)n=gu(e,t,r);else{var o="function"==typeof t?$a(e,t,r.custom):t;n=yu(e,o,r)}return n.then(function(){return e.notifyAnimationComplete(t)})}(e,t.animation,t.options)}))}}(e),n=((t={})[Ec.Animate]=wu(!0),t[Ec.InView]=wu(),t[Ec.Hover]=wu(),t[Ec.Tap]=wu(),t[Ec.Drag]=wu(),t[Ec.Focus]=wu(),t[Ec.Exit]=wu(),t),a={},o=!0,i=function(t,r){var n=$a(e,r);if(n){var a=n.transitionEnd,o=_a(n,["transition","transitionEnd"]);t=ka(ka(ka({},t),o),a)}return t};function s(t,s){for(var l,c=e.getProps(),u=e.getVariantContext(!0)||{},d=[],p=new Set,f={},m=Infinity,v=function(r){var a=ku[r],v=n[a],h=null!==(l=c[a])&&void 0!==l?l:u[a],g=Ha(h),y=a===s?v.isActive:null;!1===y&&(m=r);var b=h===u[a]&&h!==c[a]&&g;if(b&&o&&e.manuallyAnimateOnMount&&(b=!1),v.protectedKeys=ka({},f),!v.isActive&&null===y||!h&&!v.prevProp||gc(h)||"boolean"==typeof h)return"continue";var x=function(e,t){return"string"==typeof t?t!==e:!!Wa(t)&&!su(t,e)}(v.prevProp,h),E=x||a===s&&v.isActive&&!b&&g||r>m&&g,k=Array.isArray(h)?h:[h],_=k.reduce(i,{});!1===y&&(_={});var w=v.prevResolvedValues,S=void 0===w?{}:w,C=ka(ka({},S),_),O=function(e){E=!0,p.delete(e),v.needsAnimating[e]=!0};for(var R in C){var A=_[R],I=S[R];f.hasOwnProperty(R)||(A!==I?os(A)&&os(I)?!su(A,I)||x?O(R):v.protectedKeys[R]=!0:void 0!==A?O(R):p.add(R):void 0!==A&&p.has(R)?O(R):v.protectedKeys[R]=!0)}v.prevProp=h,v.prevResolvedValues=_,v.isActive&&(f=ka(ka({},f),_)),o&&e.blockInitialAnimation&&(E=!1),E&&!b&&d.push.apply(d,Sa([],wa(k.map(function(e){return{animation:e,options:ka({type:a},t)}})),!1))},h=0;h<_u;h++)v(h);if(a=ka({},f),p.size){var g={};p.forEach(function(t){var r=e.getBaseTarget(t);void 0!==r&&(g[t]=r)}),d.push({animation:g})}var y=Boolean(d.length);return o&&!1===c.initial&&!e.manuallyAnimateOnMount&&(y=!1),o=!1,y?r(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==a[e]},animateChanges:s,setActive:function(t,r,a){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach(function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;var i=s(a,t);for(var l in n)n[l].protectedKeys={};return i},setAnimateFunction:function(t){r=t(e)},getState:function(){return n}}}(t)),gc(r)&&F.useEffect(function(){return r.subscribe(t)},[r])}),exit:tu(function(e){var t=e.custom,r=e.visualElement,n=wa(iu(),2),a=n[0],o=n[1],i=F.useContext(Ma);F.useEffect(function(){var e,n;r.isPresent=a;var s=null===(e=r.animationState)||void 0===e?void 0:e.setActive(Ec.Exit,!a,{custom:null!==(n=null==i?void 0:i.custom)&&void 0!==n?n:t});!a&&(null==s||s.then(o))},[a])})},Cu=function(){function e(e,t,r){var n=this,a=(void 0===r?{}:r).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(n.lastMoveEvent&&n.lastMoveEventInfo){var e=Au(n.lastMoveEventInfo,n.history),t=null!==n.startEvent,r=Hi(e.offset,{x:0,y:0})>=3;if(t||r){var a=e.point,o=uo().timestamp;n.history.push(ka(ka({},a),{timestamp:o}));var i=n.handlers,s=i.onStart,l=i.onMove;t||(s&&s(n.lastMoveEvent,e),n.startEvent=n.lastMoveEvent),l&&l(n.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){n.lastMoveEvent=e,n.lastMoveEventInfo=Ou(t,n.transformPagePoint),Cc(e)&&0===e.buttons?n.handlePointerUp(e,t):ao.update(n.updatePoint,!0)},this.handlePointerUp=function(e,t){n.end();var r=n.handlers,a=r.onEnd,o=r.onSessionEnd,i=Au(Ou(t,n.transformPagePoint),n.history);n.startEvent&&a&&a(e,i),o&&o(e,i)},!(Oc(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=a;var o=Ou(Tc(e),this.transformPagePoint),i=o.point,s=uo().timestamp;this.history=[ka(ka({},i),{timestamp:s})];var l=t.onSessionStart;l&&l(e,Au(o,this.history)),this.removeListeners=ci(Mc(window,"pointermove",this.handlePointerMove),Mc(window,"pointerup",this.handlePointerUp),Mc(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),oo.update(this.updatePoint)},e}();function Ou(e,t){return t?{point:t(e.point)}:e}function Ru(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Au(e,t){var r=e.point;return{point:r,delta:Ru(r,Tu(t)),offset:Ru(r,Iu(t)),velocity:Nu(t,.1)}}function Iu(e){return e[0]}function Tu(e){return e[e.length-1]}function Nu(e,t){if(e.length<2)return{x:0,y:0};for(var r=e.length-1,n=null,a=Tu(e);r>=0&&!(a.timestamp-(n=e[r]).timestamp>ts(t));)r--;if(!n)return{x:0,y:0};var o=(a.timestamp-n.timestamp)/1e3;if(0===o)return{x:0,y:0};var i={x:(a.x-n.x)/o,y:(a.y-n.y)/o};return Infinity===i.x&&(i.x=0),Infinity===i.y&&(i.y=0),i}function Pu(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function Lu(e,t){var r,n=t.min-e.min,a=t.max-e.max;return t.max-t.min<e.max-e.min&&(n=(r=wa([a,n],2))[0],a=r[1]),{min:n,max:a}}function Du(e,t,r){return{min:Mu(e,t),max:Mu(e,r)}}function Mu(e,t){var r;return"number"==typeof e?e:null!==(r=e[t])&&void 0!==r?r:0}function ju(e){return{x:{min:e.left,max:e.right},y:{min:e.top,max:e.bottom}}}function Vu(e,t){return ju(function(e,t){if(!t)return e;var 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}}(e.getBoundingClientRect(),t))}var Bu=new WeakMap,Fu=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}return e.prototype.start=function(e,t){var r=this,n=(void 0===t?{}:t).snapToCursor,a=void 0!==n&&n;!1!==this.visualElement.isPresent&&(this.panSession=new Cu(e,{onSessionStart:function(e){r.stopAnimation(),a&&r.snapToCursor(Tc(e,"page").point)},onStart:function(e,t){var n,a=r.getProps(),o=a.drag,i=a.onDragStart;(!o||a.dragPropagation||(r.openGlobalLock&&r.openGlobalLock(),r.openGlobalLock=zc(o),r.openGlobalLock))&&(r.isDragging=!0,r.currentDirection=null,r.resolveConstraints(),r.visualElement.projection&&(r.visualElement.projection.isAnimationBlocked=!0,r.visualElement.projection.target=void 0),cl(function(e){var t,n,a=r.getAxisMotionValue(e).get()||0;if(No.test(a)){var o=null===(n=null===(t=r.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===n?void 0:n.actual[e];o&&(a=$s(o)*(parseFloat(a)/100))}r.originPoint[e]=a}),null==i||i(e,t),null===(n=r.visualElement.animationState)||void 0===n||n.setActive(Ec.Drag,!0))},onMove:function(e,t){var n=r.getProps(),a=n.onDirectionLock,o=n.onDrag;if(n.dragPropagation||r.openGlobalLock){var i=t.offset;if(n.dragDirectionLock&&null===r.currentDirection)return r.currentDirection=function(e,t){void 0===t&&(t=10);var r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(i),void(null!==r.currentDirection&&(null==a||a(r.currentDirection)));r.updateAxis("x",t.point,i),r.updateAxis("y",t.point,i),r.visualElement.syncRender(),null==o||o(e,t)}},onSessionEnd:function(e,t){return r.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var r=this.isDragging;if(this.cancel(),r){this.startAnimation(t.velocity);var n=this.getProps().onDragEnd;null==n||n(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(Ec.Drag,!1)},e.prototype.updateAxis=function(e,t,r){var n=this.getProps().drag;if(r&&zu(e,n,this.currentDirection)){var a=this.getAxisMotionValue(e),o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=function(e,t,r){var n=t.min,a=t.max;return void 0!==n&&e<n?e=r?xo(n,e,r.min):Math.max(e,n):void 0!==a&&e>a&&(e=r?xo(a,e,r.max):Math.min(e,a)),e}(o,this.constraints[e],this.elastic[e])),a.set(o)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),r=t.dragConstraints,n=t.dragElastic,a=(this.visualElement.projection||{}).layout,o=this.constraints;r&&za(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!r||!a)&&function(e,t){var r=t.top,n=t.bottom;return{x:Pu(e.x,t.left,t.right),y:Pu(e.y,r,n)}}(a.actual,r),this.elastic=function(e){return void 0===e&&(e=.35),!1===e?e=0:!0===e&&(e=.35),{x:Du(e,"left","right"),y:Du(e,"top","bottom")}}(n),o!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&cl(function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(a.actual[t],e.constraints[t]))})},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,r=e.onMeasureDragConstraints;if(!t||!za(t))return!1;var n=t.current;Ia(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var a=this.visualElement.projection;if(!a||!a.layout)return!1;var o=function(e,t,r){var n=Vu(e,r),a=t.scroll;return a&&(Fs(n.x,a.x),Fs(n.y,a.y)),n}(n,a.root,this.visualElement.getTransformPagePoint()),i=function(e,t){return{x:Lu(e.x,t.x),y:Lu(e.y,t.y)}}(a.layout.actual,o);if(r){var s=r(function(e){var t=e.x,r=e.y;return{top:r.min,right:t.max,bottom:r.max,left:t.min}}(i));this.hasMutatedConstraints=!!s,s&&(i=ju(s))}return i},e.prototype.startAnimation=function(e){var t=this,r=this.getProps(),n=r.drag,a=r.dragMomentum,o=r.dragElastic,i=r.dragTransition,s=r.dragSnapToOrigin,l=r.onDragTransitionEnd,c=this.constraints||{},u=cl(function(r){var l;if(zu(r,n,t.currentDirection)){var u=null!==(l=null==c?void 0:c[r])&&void 0!==l?l:{};s&&(u={min:0,max:0});var d=ka(ka({type:"inertia",velocity:a?e[r]:0,bounceStiffness:o?200:1e6,bounceDamping:o?40:1e7,timeConstant:750,restDelta:1,restSpeed:10},i),u);return t.startAxisValueAnimation(r,d)}});return Promise.all(u).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return Es(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;cl(function(t){return e.getAxisMotionValue(t).stop()})},e.prototype.getAxisMotionValue=function(e){var t,r,n="_drag"+e.toUpperCase();return this.visualElement.getProps()[n]||this.visualElement.getValue(e,null!==(r=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==r?r:0)},e.prototype.snapToCursor=function(e){var t=this;cl(function(r){if(zu(r,t.getProps().drag,t.currentDirection)){var n=t.visualElement.projection,a=t.getAxisMotionValue(r);if(n&&n.layout){var o=n.layout.actual[r];a.set(e[r]-xo(o.min,o.max,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,r=this.getProps(),n=r.drag,a=this.visualElement.projection;if(za(r.dragConstraints)&&a&&this.constraints){this.stopAnimation();var o={x:0,y:0};cl(function(e){var r,n,a,i,s,l=t.getAxisMotionValue(e);if(l){var c=l.get();o[e]=(n=t.constraints[e],a=.5,i=$s(r={min:c,max:c}),(s=$s(n))>i?a=bo(n.min,n.max-i,r.min):i>s&&(a=bo(r.min,r.max-s,n.min)),po(0,1,a))}});var i=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=i?i({},""):"none",null===(e=a.root)||void 0===e||e.updateScroll(),a.updateLayout(),this.resolveConstraints(),cl(function(e){if(zu(e,n,null)){var r=t.getAxisMotionValue(e),a=t.constraints[e];r.set(xo(a.min,a.max,o[e]))}})}},e.prototype.addListeners=function(){var e,t=this;Bu.set(this.visualElement,this);var r=Mc(this.visualElement.getInstance(),"pointerdown",function(e){var r=t.getProps(),n=r.dragListener;r.drag&&(void 0===n||n)&&t.start(e)}),n=function(){za(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},a=this.visualElement.projection,o=a.addEventListener("measure",n);a&&!a.layout&&(null===(e=a.root)||void 0===e||e.updateScroll(),a.updateLayout()),n();var i=wc(window,"resize",function(){return t.scalePositionWithinConstraints()});return a.addEventListener("didUpdate",function(e){var r=e.delta;t.isDragging&&e.hasLayoutChanged&&(cl(function(e){var n=t.getAxisMotionValue(e);n&&(t.originPoint[e]+=r[e].translate,n.set(n.get()+r[e].translate))}),t.visualElement.syncRender())}),function(){i(),r(),o()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,r=void 0!==t&&t,n=e.dragDirectionLock,a=void 0!==n&&n,o=e.dragPropagation,i=void 0!==o&&o,s=e.dragConstraints,l=void 0!==s&&s,c=e.dragElastic,u=void 0===c?.35:c,d=e.dragMomentum,p=void 0===d||d;return ka(ka({},e),{drag:r,dragDirectionLock:a,dragPropagation:i,dragConstraints:l,dragElastic:u,dragMomentum:p})},e}();function zu(e,t,r){return!(!0!==t&&t!==e||null!==r&&r!==e)}var Wu={pan:tu(function(e){var t=e.onPan,r=e.onPanStart,n=e.onPanEnd,a=e.onPanSessionStart,o=e.visualElement,i=t||r||n||a,s=F.useRef(null),l=F.useContext(La).transformPagePoint,c={onSessionStart:a,onStart:r,onMove:t,onEnd:function(e,t){s.current=null,n&&n(e,t)}};F.useEffect(function(){null!==s.current&&s.current.updateHandlers(c)}),jc(o,"pointerdown",i&&function(e){s.current=new Cu(e,c,{transformPagePoint:l})}),$c(function(){return s.current&&s.current.end()})}),drag:tu(function(e){var t=e.dragControls,r=e.visualElement,n=Za(function(){return new Fu(r)});F.useEffect(function(){return t&&t.subscribe(n)},[n,t]),F.useEffect(function(){return n.addListeners()},[n])})},Hu=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],Uu=function(e){var t=e.treeType,r=void 0===t?"":t,n=e.build,a=e.getBaseTarget,o=e.makeTargetAnimatable,i=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,c=e.removeValueFromRenderState,u=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(e,t){var p=e.parent,f=e.props,m=e.presenceId,v=e.blockInitialAnimation,h=e.visualState,g=e.shouldReduceMotion;void 0===t&&(t={});var y,b,x=!1,E=h.latestValues,k=h.renderState,_=function(){var e=Hu.map(function(){return new Ki}),t={},r={clearAllListeners:function(){return e.forEach(function(e){return e.clear()})},updatePropListeners:function(e){Hu.forEach(function(n){var a,o="on"+n,i=e[o];null===(a=t[n])||void 0===a||a.call(t),i&&(t[n]=r[o](i))})}};return e.forEach(function(e,t){r["on"+Hu[t]]=function(t){return e.add(t)},r["notify"+Hu[t]]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.notify.apply(e,Sa([],wa(t),!1))}}),r}(),w=new Map,S=new Map,C={},O=ka({},E);function R(){y&&x&&(A(),s(y,k,f.style,j.projection))}function A(){n(j,k,E,t,f)}function I(){_.notifyUpdate(E)}function T(e,t){var r=t.onChange(function(t){E[e]=t,f.onUpdate&&ao.update(I,!1,!0)}),n=t.onRenderRequest(j.scheduleRender);S.set(e,function(){r(),n()})}var N=d(f);for(var P in N){var L=N[P];void 0!==E[P]&&es(L)&&L.set(E[P],!1)}var D=qa(f),M=Ya(f),j=ka(ka({treeType:r,current:null,depth:p?p.depth+1:0,parent:p,children:new Set,presenceId:m,shouldReduceMotion:g,variantChildren:M?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==p?void 0:p.isMounted()),blockInitialAnimation:v,isMounted:function(){return Boolean(y)},mount:function(e){x=!0,y=j.current=e,j.projection&&j.projection.mount(e),M&&p&&!D&&(b=null==p?void 0:p.addVariantChild(j)),w.forEach(function(e,t){return T(t,e)}),null==p||p.children.add(j),j.setProps(f)},unmount:function(){var e;null===(e=j.projection)||void 0===e||e.unmount(),oo.update(I),oo.render(R),S.forEach(function(e){return e()}),null==b||b(),null==p||p.children.delete(j),_.clearAllListeners(),y=void 0,x=!1},addVariantChild:function(e){var t,r=j.getClosestVariantNode();if(r)return null===(t=r.variantChildren)||void 0===t||t.add(e),function(){return r.variantChildren.delete(e)}},sortNodePosition:function(e){return u&&r===e.treeType?u(j.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return M?j:null==p?void 0:p.getClosestVariantNode()},getLayoutId:function(){return f.layoutId},getInstance:function(){return y},getStaticValue:function(e){return E[e]},setStaticValue:function(e,t){return E[e]=t},getLatestValues:function(){return E},setVisibility:function(e){j.isVisible!==e&&(j.isVisible=e,j.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),o(j,e,f,t)},measureViewportBox:function(){return i(y,f)},addValue:function(e,t){j.hasValue(e)&&j.removeValue(e),w.set(e,t),E[e]=t.get(),T(e,t)},removeValue:function(e){var t;w.delete(e),null===(t=S.get(e))||void 0===t||t(),S.delete(e),delete E[e],c(e,k)},hasValue:function(e){return w.has(e)},getValue:function(e,t){var r=w.get(e);return void 0===r&&void 0!==t&&(r=Qi(t),j.addValue(e,r)),r},forEachValue:function(e){return w.forEach(e)},readValue:function(e){var r;return null!==(r=E[e])&&void 0!==r?r:l(y,e,t)},setBaseTarget:function(e,t){O[e]=t},getBaseTarget:function(e){if(a){var t=a(f,e);if(void 0!==t&&!es(t))return t}return O[e]}},_),{build:function(){return A(),k},scheduleRender:function(){ao.render(R,!1,!0)},syncRender:R,setProps:function(e){(e.transformTemplate||f.transformTemplate)&&j.scheduleRender(),f=e,_.updatePropListeners(e),C=function(e,t,r){var n;for(var a in t){var o=t[a],i=r[a];if(es(o))e.addValue(a,o),"development"===process.env.NODE_ENV&&Yc("6.3.16"===o.version,"Attempting to mix Framer Motion versions ".concat(o.version," with 6.3.16 may not work as expected."));else if(es(i))e.addValue(a,Qi(o));else if(i!==o)if(e.hasValue(a)){var s=e.getValue(a);!s.hasAnimated&&s.set(o)}else e.addValue(a,Qi(null!==(n=e.getStaticValue(a))&&void 0!==n?n:o))}for(var a in r)void 0===t[a]&&e.removeValue(a);return t}(j,d(f),C)},getProps:function(){return f},getVariant:function(e){var t;return null===(t=f.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return f.transition},getTransformPagePoint:function(){return f.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==p?void 0:p.getVariantContext();if(!D){var t=(null==p?void 0:p.getVariantContext())||{};return void 0!==f.initial&&(t.initial=f.initial),t}for(var r={},n=0;n<qu;n++){var a=$u[n],o=f[a];(Ha(o)||!1===o)&&(r[a]=o)}return r}});return j}},$u=Sa(["initial"],wa(Eu),!1),qu=$u.length;function Yu(e){return"string"==typeof e&&e.startsWith("var(--")}var Gu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Zu(e,t,r){void 0===r&&(r=1),Ia(r<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var n=wa(function(e){var t=Gu.exec(e);if(!t)return[,];var r=wa(t,3);return[r[1],r[2]]}(e),2),a=n[0],o=n[1];if(a){var i=window.getComputedStyle(t).getPropertyValue(a);return i?i.trim():Yu(o)?Zu(o,t,r+1):o}}var Xu,Ku=new Set(["width","height","top","left","right","bottom","x","y"]),Ju=function(e){return Ku.has(e)},Qu=function(e,t){e.set(t,!1),e.set(t)},ed=function(e){return e===Oo||e===Po};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Xu||(Xu={}));var td=function(e,t){return parseFloat(e.split(", ")[t])},rd=function(e,t){return function(r,n){var a=n.transform;if("none"===a||!a)return 0;var o=a.match(/^matrix3d\((.+)\)$/);if(o)return td(o[1],t);var i=a.match(/^matrix\((.+)\)$/);return i?td(i[1],e):0}},nd=new Set(["x","y","z"]),ad=dl.filter(function(e){return!nd.has(e)}),od={width:function(e,t){var r=e.x,n=t.paddingLeft,a=t.paddingRight,o=void 0===a?"0":a;return r.max-r.min-parseFloat(void 0===n?"0":n)-parseFloat(o)},height:function(e,t){var r=e.y,n=t.paddingTop,a=t.paddingBottom,o=void 0===a?"0":a;return r.max-r.min-parseFloat(void 0===n?"0":n)-parseFloat(o)},top:function(e,t){return parseFloat(t.top)},left:function(e,t){return parseFloat(t.left)},bottom:function(e,t){var r=e.y;return parseFloat(t.top)+(r.max-r.min)},right:function(e,t){var r=e.x;return parseFloat(t.left)+(r.max-r.min)},x:rd(4,13),y:rd(5,14)},id={treeType:"dom",readValueFromInstance:function(e,t){if(ml(t)){var r=ms(t);return r&&r.default||0}var n=window.getComputedStyle(e);return(Gl(t)?n.getPropertyValue(t):n[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var r;return null===(r=e.style)||void 0===r?void 0:r[t]},measureViewportBox:function(e,t){return Vu(e,t.transformPagePoint)},resetTransform:function(e,t,r){var n=r.transformTemplate;t.style.transform=n?n({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var r=t.style;delete t.vars[e],delete r[e]},makeTargetAnimatable:function(e,t,r,n){var a=r.transformValues;void 0===n&&(n=!0);var o=t.transition,i=t.transitionEnd,s=_a(t,["transition","transitionEnd"]),l=function(e,t,r){var n,a,o={};for(var i in e)o[i]=null!==(n=hu(i,t))&&void 0!==n?n:null===(a=r.getValue(i))||void 0===a?void 0:a.get();return o}(s,o||{},e);if(a&&(i&&(i=a(i)),s&&(s=a(s)),l&&(l=a(l))),n){!function(e,t,r){var n,a,o,i,s=Object.keys(t).filter(function(t){return!e.hasValue(t)}),l=s.length;if(l)for(var c=0;c<l;c++){var u=s[c],d=t[u],p=null;Array.isArray(d)&&(p=d[0]),null===p&&(p=null!==(a=null!==(n=r[u])&&void 0!==n?n:e.readValue(u))&&void 0!==a?a:t[u]),null!=p&&("string"==typeof p&&(lu(p)||cu(p))?p=parseFloat(p):!mu(p)&&Zo.test(d)&&(p=vs(u,d)),e.addValue(u,Qi(p)),null!==(o=(i=r)[u])&&void 0!==o||(i[u]=p),e.setBaseTarget(u,p))}}(e,s,l);var c=function(e,t,r,n){var a=function(e,t,r){var n,a=_a(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:a,transitionEnd:r};for(var i in r&&(r=ka({},r)),e.forEachValue(function(e){var t=e.get();if(Yu(t)){var r=Zu(t,o);r&&e.set(r)}}),a){var s=a[i];if(Yu(s)){var l=Zu(s,o);l&&(a[i]=l,r&&(null!==(n=r[i])&&void 0!==n||(r[i]=s)))}}return{target:a,transitionEnd:r}}(e,t,n);return function(e,t,r,n){return function(e){return Object.keys(e).some(Ju)}(t)?function(e,t,r,n){void 0===r&&(r={}),void 0===n&&(n={}),t=ka({},t),n=ka({},n);var a=Object.keys(t).filter(Ju),o=[],i=!1,s=[];if(a.forEach(function(a){var l=e.getValue(a);if(e.hasValue(a)){var c,u=r[a],d=pu(u),p=t[a];if(os(p)){var f=p.length,m=null===p[0]?1:0;d=pu(u=p[m]);for(var v=m;v<f;v++)c?Ia(pu(p[v])===c,"All keyframes must be of the same type"):(c=pu(p[v]),Ia(c===d||ed(d)&&ed(c),"Keyframes must be of the same dimension as the current value"))}else c=pu(p);if(d!==c)if(ed(d)&&ed(c)){var h=l.get();"string"==typeof h&&l.set(parseFloat(h)),"string"==typeof p?t[a]=parseFloat(p):Array.isArray(p)&&c===Po&&(t[a]=p.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==c?void 0:c.transform)&&(0===u||0===p)?0===u?l.set(c.transform(u)):t[a]=d.transform(p):(i||(o=function(e){var t=[];return ad.forEach(function(r){var n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}(e),i=!0),s.push(a),n[a]=void 0!==n[a]?n[a]:t[a],Qu(l,p))}}),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,c=function(e,t,r){var n=t.measureViewportBox(),a=t.getInstance(),o=getComputedStyle(a),i={};"none"===o.display&&t.setStaticValue("display",e.display||"block"),r.forEach(function(e){i[e]=od[e](n,o)}),t.syncRender();var s=t.measureViewportBox();return r.forEach(function(r){var n=t.getValue(r);Qu(n,i[r]),e[r]=od[r](s,o)}),e}(t,e,s);return o.length&&o.forEach(function(t){var r=wa(t,2),n=r[1];e.getValue(r[0]).set(n)}),e.syncRender(),null!==l&&window.scrollTo({top:l}),{target:c,transitionEnd:n}}return{target:t,transitionEnd:n}}(e,t,r,n):{target:t,transitionEnd:n}}(e,t=a.target,r,n=a.transitionEnd)}(e,s,l,i);i=c.transitionEnd,s=c.target}return ka({transition:o,transitionEnd:i},s)},scrapeMotionValuesFromProps:vc,build:function(e,t,r,n,a){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),Xl(t,r,n,a.transformTemplate)},render:pc},sd=Uu(id),ld=Uu(ka(ka({},id),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var r;return ml(t)?(null===(r=ms(t))||void 0===r?void 0:r.default)||0:(t=fc.has(t)?t:dc(t),e.getAttribute(t))},scrapeMotionValuesFromProps:hc,build:function(e,t,r,n,a){ic(t,r,n,a.transformTemplate)},render:mc})),cd=function(e,t){return $l(e)?ld(t,{enableHardwareAcceleration:!1}):sd(t,{enableHardwareAcceleration:!0})};function ud(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var dd={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!Po.test(e))return e;e=parseFloat(e)}var r=ud(e,t.target.x),n=ud(e,t.target.y);return"".concat(r,"% ").concat(n,"%")}},pd={correct:function(e,t){var r=t.treeScale,n=t.projectionDelta,a=e,o=e.includes("var("),i=[];o&&(e=e.replace(Gu,function(e){return i.push(e),"_$css"}));var s=Zo.parse(e);if(s.length>5)return a;var l=Zo.createTransformer(e),c="number"!=typeof s[0]?1:0,u=n.x.scale*r.x,d=n.y.scale*r.y;s[0+c]/=u,s[1+c]/=d;var p=xo(u,d,.5);"number"==typeof s[2+c]&&(s[2+c]/=p),"number"==typeof s[3+c]&&(s[3+c]/=p);var f=l(s);if(o){var m=0;f=f.replace("_$css",function(){var e=i[m];return m++,e})}return f}},fd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ea(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,r=t.layoutGroup,n=t.switchLayoutGroup,a=t.layoutId,o=t.visualElement.projection;Object.assign(sl,md),o&&((null==r?void 0:r.group)&&r.group.add(o),(null==n?void 0:n.register)&&a&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",function(){e.safeToRemove()}),o.setOptions(ka(ka({},o.options),{onExitComplete:function(){return e.safeToRemove()}}))),xl.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,r=this.props,n=r.layoutDependency,a=r.drag,o=r.isPresent,i=r.visualElement.projection;return i?(i.isPresent=o,a||e.layoutDependency!==n||void 0===n?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||ao.postRender(function(){var e;(null===(e=i.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()})),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.layoutGroup,r=e.switchLayoutGroup,n=e.visualElement.projection;n&&(n.scheduleCheckAfterUnmount(),(null==t?void 0:t.group)&&t.group.remove(n),(null==r?void 0:r.deregister)&&r.deregister(n))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(F.Component),md={borderRadius:ka(ka({},dd),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:dd,borderTopRightRadius:dd,borderBottomLeftRadius:dd,borderBottomRightRadius:dd,boxShadow:pd},vd={measureLayout:function(e){var t=wa(iu(),2),r=t[0],n=t[1],a=F.useContext(Fl);return F.createElement(fd,ka({},e,{layoutGroup:a,switchLayoutGroup:F.useContext(zl),isPresent:r,safeToRemove:n}))}},hd=El({attachResizeListener:function(e,t){return wc(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),gd={current:void 0},yd=El({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!gd.current){var e=new hd(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),gd.current=e}return gd.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),bd=ka(ka(ka(ka({},Su),ru),Wu),vd),xd=/*@__PURE__*/Hl(function(e,t){return function(e,t,r,n,a){var o=t.forwardMotionProps,i=void 0!==o&&o,s=$l(e)?kc:_c;return ka(ka({},s),{preloadedFeatures:r,useRender:cc(i),createVisualElement:n,projectionNodeConstructor:a,Component:e})}(e,t,bd,cd,yd)});function Ed(){var e=F.useRef(!1);return Va(function(){return e.current=!0,function(){e.current=!1}},[]),e}var kd=function(e){var t=e.children,r=e.initial,n=e.isPresent,a=e.onExitComplete,o=e.custom,i=e.presenceAffectsLayout,s=Za(_d),l=ou(),c=F.useMemo(function(){return{id:l,initial:r,isPresent:n,custom:o,onExitComplete:function(e){var t,r;s.set(e,!0);try{for(var n=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(s.values()),o=n.next();!o.done;o=n.next())if(!o.value)return}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}null==a||a()},register:function(e){return s.set(e,!1),function(){return s.delete(e)}}}},i?void 0:[n]);return F.useMemo(function(){s.forEach(function(e,t){return s.set(t,!1)})},[n]),F.useEffect(function(){!n&&!s.size&&(null==a||a())},[n]),F.createElement(Ma.Provider,{value:c},t)};function _d(){return new Map}var wd=function(e){return e.key||""},Sd=function(e){var t=e.children,r=e.custom,n=e.initial,a=void 0===n||n,o=e.onExitComplete,i=e.exitBeforeEnter,s=e.presenceAffectsLayout,l=void 0===s||s,c=wa(function(){var e=Ed(),t=wa(F.useState(0),2),r=t[0],n=t[1],a=F.useCallback(function(){e.current&&n(r+1)},[r]);return[F.useCallback(function(){return ao.postRender(a)},[a]),r]}(),1),u=c[0],d=F.useContext(Fl).forceRender;d&&(u=d);var p=Ed(),f=function(e){var t=[];return F.Children.forEach(e,function(e){F.isValidElement(e)&&t.push(e)}),t}(t),m=f,v=new Set,h=F.useRef(m),g=F.useRef(new Map).current,y=F.useRef(!0);if(Va(function(){y.current=!1,function(e,t){e.forEach(function(e){var r=wd(e);t.set(r,e)})}(f,g),h.current=m}),$c(function(){y.current=!0,g.clear(),v.clear()}),y.current)return F.createElement(F.Fragment,null,m.map(function(e){return F.createElement(kd,{key:wd(e),isPresent:!0,initial:!!a&&void 0,presenceAffectsLayout:l},e)}));m=Sa([],wa(m),!1);for(var b=h.current.map(wd),x=f.map(wd),E=b.length,k=0;k<E;k++){var _=b[k];-1===x.indexOf(_)&&v.add(_)}return i&&v.size&&(m=[]),v.forEach(function(e){if(-1===x.indexOf(e)){var t=g.get(e);if(t){var n=b.indexOf(e);m.splice(n,0,F.createElement(kd,{key:wd(t),isPresent:!1,onExitComplete:function(){g.delete(e),v.delete(e);var t=h.current.findIndex(function(t){return t.key===e});if(h.current.splice(t,1),!v.size){if(h.current=f,!1===p.current)return;u(),o&&o()}},custom:r,presenceAffectsLayout:l},t))}}}),m=m.map(function(e){return v.has(e.key)?e:F.createElement(kd,{key:wd(e),isPresent:!0,presenceAffectsLayout:l},e)}),"production"!==Ca&&i&&m.length>1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),F.createElement(F.Fragment,null,v.size?m:m.map(function(e){return F.cloneElement(e)}))};function Cd(){return Cd=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},Cd.apply(this,arguments)}var Od=["as","viewBox","color","focusable","children","className","__css"],Rd={path:/*#__PURE__*/F.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/*#__PURE__*/F.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),/*#__PURE__*/F.createElement("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),/*#__PURE__*/F.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},Ad=/*#__PURE__*/fa(function(e,r){var n=e.as,a=e.viewBox,o=e.color,i=void 0===o?"currentColor":o,s=e.focusable,l=void 0!==s&&s,c=e.children,u=e.className,d=e.__css,p=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}(e,Od),f={ref:r,focusable:l,className:t.cx("chakra-icon",u),__css:Cd({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i},d)},m=null!=a?a:Rd.viewBox;if(n&&"string"!=typeof n)/*#__PURE__*/
5
+ return F.createElement(ba.svg,Cd({as:n},f,p));var v=null!=c?c:Rd.path;/*#__PURE__*/
6
+ return F.createElement(ba.svg,Cd({verticalAlign:"middle",viewBox:m},f,p),v)});t.__DEV__&&(Ad.displayName="Icon");var Id=Ad;function Td(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}function Nd(){return Nd=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},Nd.apply(this,arguments)}var Pd={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Ld={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},Dd={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},Md={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},jd={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}};function Vd(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":default:return Dd;case"left":return Ld;case"bottom":return jd;case"top":return Md}}var Bd={enter:{duration:.2,ease:Pd.easeOut},exit:{duration:.1,ease:Pd.easeIn}},Fd=function(e,r){return Nd({},e,{delay:t.isNumber(r)?r:null==r?void 0:r.enter})},zd=function(e,r){return Nd({},e,{delay:t.isNumber(r)?r:null==r?void 0:r.exit})},Wd=["in","unmountOnExit","animateOpacity","startingHeight","endingHeight","style","className","transition","transitionEnd"],Hd={exit:{height:{duration:.2,ease:Pd.ease},opacity:{duration:.3,ease:Pd.ease}},enter:{height:{duration:.3,ease:Pd.ease},opacity:{duration:.4,ease:Pd.ease}}},Ud={exit:function(e){var t,r,n=e.startingHeight,a=e.transition,o=e.transitionEnd,i=e.delay;return Nd({},e.animateOpacity&&{opacity:(r=n,null!=r&&parseInt(r.toString(),10)>0?1:0)},{height:n,transitionEnd:null==o?void 0:o.exit,transition:null!=(t=null==a?void 0:a.exit)?t:zd(Hd.exit,i)})},enter:function(e){var t,r=e.transition,n=e.transitionEnd;return Nd({},e.animateOpacity&&{opacity:1},{height:e.endingHeight,transitionEnd:null==n?void 0:n.enter,transition:null!=(t=null==r?void 0:r.enter)?t:Fd(Hd.enter,e.delay)})}},$d=/*#__PURE__*/F.forwardRef(function(e,r){var n=e.in,a=e.unmountOnExit,o=e.animateOpacity,i=void 0===o||o,s=e.startingHeight,l=void 0===s?0:s,c=e.endingHeight,u=void 0===c?"auto":c,d=e.style,p=e.className,f=e.transition,m=e.transitionEnd,v=Td(e,Wd),h=F.useState(!1),g=h[0],y=h[1];F.useEffect(function(){var e=setTimeout(function(){y(!0)});return function(){return clearTimeout(e)}},[]),t.warn({condition:Boolean(l>0&&a),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});var b=parseFloat(l.toString())>0,x={startingHeight:l,endingHeight:u,animateOpacity:i,transition:g?f:{enter:{duration:0}},transitionEnd:t.mergeWith(m,{exit:a?void 0:{display:b?"block":"none"}})},E=n||a?"enter":"exit";/*#__PURE__*/
7
+ return F.createElement(Sd,{initial:!1,custom:x},(!a||n)&&/*#__PURE__*/F.createElement(xd.div,Nd({ref:r},v,{className:t.cx("chakra-collapse",p),style:Nd({overflow:"hidden",display:"block"},d),custom:x,variants:Ud,initial:!!a&&"exit",animate:E,exit:"exit"})))});t.__DEV__&&($d.displayName="Collapse");var qd=["unmountOnExit","in","className","transition","transitionEnd","delay"],Yd={enter:function(e){var t,r=void 0===e?{}:e,n=r.transition,a=r.transitionEnd;return{opacity:1,transition:null!=(t=null==n?void 0:n.enter)?t:Fd(Bd.enter,r.delay),transitionEnd:null==a?void 0:a.enter}},exit:function(e){var t,r=void 0===e?{}:e,n=r.transition,a=r.transitionEnd;return{opacity:0,transition:null!=(t=null==n?void 0:n.exit)?t:zd(Bd.exit,r.delay),transitionEnd:null==a?void 0:a.exit}}},Gd={initial:"exit",animate:"enter",exit:"exit",variants:Yd},Zd=/*#__PURE__*/F.forwardRef(function(e,r){var n=e.unmountOnExit,a=e.in,o=e.className,i=e.transition,s=e.transitionEnd,l=e.delay,c=Td(e,qd),u=a||n?"enter":"exit",d={transition:i,transitionEnd:s,delay:l};/*#__PURE__*/
8
+ return F.createElement(Sd,{custom:d},(!n||a&&n)&&/*#__PURE__*/F.createElement(xd.div,Nd({ref:r,className:t.cx("chakra-fade",o),custom:d},Gd,{animate:u},c)))});t.__DEV__&&(Zd.displayName="Fade");var Xd=["unmountOnExit","in","reverse","initialScale","className","transition","transitionEnd","delay"],Kd={exit:function(e){var t,r=e.initialScale,n=e.transition,a=e.transitionEnd,o=e.delay;return Nd({opacity:0},e.reverse?{scale:r,transitionEnd:null==a?void 0:a.exit}:{transitionEnd:Nd({scale:r},null==a?void 0:a.exit)},{transition:null!=(t=null==n?void 0:n.exit)?t:zd(Bd.exit,o)})},enter:function(e){var t,r=e.transitionEnd,n=e.transition;return{opacity:1,scale:1,transition:null!=(t=null==n?void 0:n.enter)?t:Fd(Bd.enter,e.delay),transitionEnd:null==r?void 0:r.enter}}},Jd={initial:"exit",animate:"enter",exit:"exit",variants:Kd},Qd=/*#__PURE__*/F.forwardRef(function(e,r){var n=e.unmountOnExit,a=e.in,o=e.reverse,i=void 0===o||o,s=e.initialScale,l=void 0===s?.95:s,c=e.className,u=e.transition,d=e.transitionEnd,p=e.delay,f=Td(e,Xd),m=a||n?"enter":"exit",v={initialScale:l,reverse:i,transition:u,transitionEnd:d,delay:p};/*#__PURE__*/
9
+ return F.createElement(Sd,{custom:v},(!n||a&&n)&&/*#__PURE__*/F.createElement(xd.div,Nd({ref:r,className:t.cx("chakra-offset-slide",c)},Jd,{animate:m,custom:v},f)))});t.__DEV__&&(Qd.displayName="ScaleFade");var ep=["direction","style","unmountOnExit","in","className","transition","transitionEnd","delay"],tp={exit:{duration:.15,ease:Pd.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},rp={exit:function(e){var t,r=e.transition,n=e.transitionEnd,a=e.delay;return Nd({},Vd({direction:e.direction}).exit,{transition:null!=(t=null==r?void 0:r.exit)?t:zd(tp.exit,a),transitionEnd:null==n?void 0:n.exit})},enter:function(e){var t,r=e.transitionEnd,n=e.transition,a=e.delay;return Nd({},Vd({direction:e.direction}).enter,{transition:null!=(t=null==n?void 0:n.enter)?t:Fd(tp.enter,a),transitionEnd:null==r?void 0:r.enter})}},np=/*#__PURE__*/F.forwardRef(function(e,r){var n=e.direction,a=void 0===n?"right":n,o=e.style,i=e.unmountOnExit,s=e.in,l=e.className,c=e.transition,u=e.transitionEnd,d=e.delay,p=Td(e,ep),f=Vd({direction:a}),m=Object.assign({position:"fixed"},f.position,o),v=s||i?"enter":"exit",h={transitionEnd:u,transition:c,direction:a,delay:d};/*#__PURE__*/
10
+ return F.createElement(Sd,{custom:h},(!i||s&&i)&&/*#__PURE__*/F.createElement(xd.div,Nd({},p,{ref:r,initial:"exit",className:t.cx("chakra-slide",l),animate:v,exit:"exit",custom:h,variants:rp,style:m})))});t.__DEV__&&(np.displayName="Slide");var ap=["unmountOnExit","in","reverse","className","offsetX","offsetY","transition","transitionEnd","delay"],op={initial:function(e){var t,r=e.transition,n=e.transitionEnd;return{opacity:0,x:e.offsetX,y:e.offsetY,transition:null!=(t=null==r?void 0:r.exit)?t:zd(Bd.exit,e.delay),transitionEnd:null==n?void 0:n.exit}},enter:function(e){var t,r=e.transition,n=e.transitionEnd;return{opacity:1,x:0,y:0,transition:null!=(t=null==r?void 0:r.enter)?t:Fd(Bd.enter,e.delay),transitionEnd:null==n?void 0:n.enter}},exit:function(e){var t,r=e.transition,n=e.transitionEnd,a=e.reverse,o={x:e.offsetX,y:e.offsetY};return Nd({opacity:0,transition:null!=(t=null==r?void 0:r.exit)?t:zd(Bd.exit,e.delay)},a?Nd({},o,{transitionEnd:null==n?void 0:n.exit}):{transitionEnd:Nd({},o,null==n?void 0:n.exit)})}},ip={initial:"initial",animate:"enter",exit:"exit",variants:op},sp=/*#__PURE__*/F.forwardRef(function(e,r){var n=e.unmountOnExit,a=e.in,o=e.reverse,i=void 0===o||o,s=e.className,l=e.offsetX,c=void 0===l?0:l,u=e.offsetY,d=void 0===u?8:u,p=e.transition,f=e.transitionEnd,m=e.delay,v=Td(e,ap),h=a||n?"enter":"exit",g={offsetX:c,offsetY:d,reverse:i,transition:p,transitionEnd:f,delay:m};/*#__PURE__*/
11
+ return F.createElement(Sd,{custom:g},(!n||a&&n)&&/*#__PURE__*/F.createElement(xd.div,Nd({ref:r,className:t.cx("chakra-offset-slide",s),custom:g},ip,{animate:h},v)))});function lp(){return lp=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},lp.apply(this,arguments)}function cp(e){return e.sort(function(e,t){var r=e.compareDocumentPosition(t);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}function up(e,t,r){var n=e+1;return r&&n>=t&&(n=0),n}function dp(e,t,r){var n=e-1;return r&&n<0&&(n=t),n}t.__DEV__&&(sp.displayName="SlideFade");var pp="undefined"!=typeof window?F.useLayoutEffect:F.useEffect,fp=function(){var e=this;this.descendants=new Map,this.register=function(t){var r;if(null!=t)return"object"==typeof(r=t)&&"nodeType"in r&&r.nodeType===Node.ELEMENT_NODE?e.registerNode(t):function(r){e.registerNode(r,t)}},this.unregister=function(t){e.descendants.delete(t);var r=cp(Array.from(e.descendants.keys()));e.assignIndex(r)},this.destroy=function(){e.descendants.clear()},this.assignIndex=function(t){e.descendants.forEach(function(e){var r=t.indexOf(e.node);e.index=r,e.node.dataset.index=e.index.toString()})},this.count=function(){return e.descendants.size},this.enabledCount=function(){return e.enabledValues().length},this.values=function(){return Array.from(e.descendants.values()).sort(function(e,t){return e.index-t.index})},this.enabledValues=function(){return e.values().filter(function(e){return!e.disabled})},this.item=function(t){if(0!==e.count())return e.values()[t]},this.enabledItem=function(t){if(0!==e.enabledCount())return e.enabledValues()[t]},this.first=function(){return e.item(0)},this.firstEnabled=function(){return e.enabledItem(0)},this.last=function(){return e.item(e.descendants.size-1)},this.lastEnabled=function(){var t=e.enabledValues().length-1;return e.enabledItem(t)},this.indexOf=function(t){var r,n;return t&&null!=(r=null==(n=e.descendants.get(t))?void 0:n.index)?r:-1},this.enabledIndexOf=function(t){return null==t?-1:e.enabledValues().findIndex(function(e){return e.node.isSameNode(t)})},this.next=function(t,r){void 0===r&&(r=!0);var n=up(t,e.count(),r);return e.item(n)},this.nextEnabled=function(t,r){void 0===r&&(r=!0);var n=e.item(t);if(n){var a=up(e.enabledIndexOf(n.node),e.enabledCount(),r);return e.enabledItem(a)}},this.prev=function(t,r){void 0===r&&(r=!0);var n=dp(t,e.count()-1,r);return e.item(n)},this.prevEnabled=function(t,r){void 0===r&&(r=!0);var n=e.item(t);if(n){var a=dp(e.enabledIndexOf(n.node),e.enabledCount()-1,r);return e.enabledItem(a)}},this.registerNode=function(t,r){if(t&&!e.descendants.has(t)){var n=cp(Array.from(e.descendants.keys()).concat(t));null!=r&&r.disabled&&(r.disabled=!!r.disabled);var a=lp({node:t,index:-1},r);e.descendants.set(t,a),e.assignIndex(n)}}},mp=rr({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"}),vp=mp[0],hp=mp[1];function gp(){return[vp,function(){return hp()},function(){return e=F.useRef(new fp),pp(function(){return function(){return e.current.destroy()}}),e.current;var e},function(e){return function(e){var t=hp(),r=F.useState(-1),n=r[0],a=r[1],o=F.useRef(null);pp(function(){return function(){o.current&&t.unregister(o.current)}},[]),pp(function(){if(o.current){var e=Number(o.current.dataset.index);n==e||Number.isNaN(e)||a(e)}});var i=e?t.register(e):t.register;return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(o.current),register:tr(i,o)}}(e)}]}var yp={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},bp=ba("span",{baseStyle:yp});t.__DEV__&&(bp.displayName="VisuallyHidden");var xp=ba("input",{baseStyle:yp});function Ep(){return Ep=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},Ep.apply(this,arguments)}t.__DEV__&&(xp.displayName="VisuallyHiddenInput");var kp=["label","thickness","speed","emptyColor","className"],_p=Yt({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),wp=/*#__PURE__*/fa(function(e,r){var n=ha("Spinner",e),a=oa(e),o=a.label,i=void 0===o?"Loading...":o,s=a.thickness,l=void 0===s?"2px":s,c=a.speed,u=void 0===c?"0.45s":c,d=a.emptyColor,p=void 0===d?"transparent":d,f=a.className,m=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}(a,kp),v=t.cx("chakra-spinner",f),h=Ep({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:l,borderBottomColor:p,borderLeftColor:p,animation:_p+" "+u+" linear infinite"},n);/*#__PURE__*/
12
+ return F.createElement(ba.div,Ep({ref:r,__css:h,className:v},m),i&&/*#__PURE__*/F.createElement(bp,null,i))});function Sp(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}function Cp(){return Cp=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},Cp.apply(this,arguments)}t.__DEV__&&(wp.displayName="Spinner");var Op=["size","colorScheme","variant","className","spacing","isAttached","isDisabled"],Rp=rr({strict:!1,name:"ButtonGroupContext"}),Ap=Rp[0],Ip=Rp[1],Tp=/*#__PURE__*/fa(function(e,r){var n=e.size,a=e.colorScheme,o=e.variant,i=e.className,s=e.spacing,l=void 0===s?"0.5rem":s,c=e.isAttached,u=e.isDisabled,d=Sp(e,Op),p=t.cx("chakra-button__group",i),f=F.useMemo(function(){return{size:n,colorScheme:a,variant:o,isDisabled:u}},[n,a,o,u]),m={display:"inline-flex"};return m=Cp({},m,c?{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:{"& > *:not(style) ~ *:not(style)":{marginStart:l}}),/*#__PURE__*/F.createElement(Ap,{value:f},/*#__PURE__*/F.createElement(ba.div,Cp({ref:r,role:"group",__css:m,className:p,"data-attached":c?"":void 0},d)))});t.__DEV__&&(Tp.displayName="ButtonGroup");var Np=["label","placement","spacing","children","className","__css"],Pp=function(e){var r=e.label,n=e.placement,a=e.spacing,o=void 0===a?"0.5rem":a,i=e.children,s=void 0===i?/*#__PURE__*/F.createElement(wp,{color:"currentColor",width:"1em",height:"1em"}):i,l=e.className,c=e.__css,u=Sp(e,Np),d=t.cx("chakra-button__spinner",l),p="start"===n?"marginEnd":"marginStart",f=F.useMemo(function(){var e;return Cp(((e={display:"flex",alignItems:"center",position:r?"relative":"absolute"})[p]=r?o:0,e.fontSize="1em",e.lineHeight="normal",e),c)},[c,r,p,o]);/*#__PURE__*/
13
+ return F.createElement(ba.div,Cp({className:d},u,{__css:f}),s)};t.__DEV__&&(Pp.displayName="ButtonSpinner");var Lp=["children","className"],Dp=function(e){var r=e.children,n=e.className,a=Sp(e,Lp),o=/*#__PURE__*/F.isValidElement(r)?/*#__PURE__*/F.cloneElement(r,{"aria-hidden":!0,focusable:!1}):r,i=t.cx("chakra-button__icon",n);/*#__PURE__*/
14
+ return F.createElement(ba.span,Cp({display:"inline-flex",alignSelf:"center",flexShrink:0},a,{className:i}),o)};t.__DEV__&&(Dp.displayName="ButtonIcon");var Mp=["isDisabled","isLoading","isActive","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"],jp=/*#__PURE__*/fa(function(e,r){var n,a,o,i,s=Ip(),l=ha("Button",Cp({},s,e)),c=oa(e),u=c.isDisabled,d=void 0===u?null==s?void 0:s.isDisabled:u,p=c.isLoading,f=c.isActive,m=c.children,v=c.leftIcon,h=c.rightIcon,g=c.loadingText,y=c.iconSpacing,b=void 0===y?"0.5rem":y,x=c.type,E=c.spinner,k=c.spinnerPlacement,_=void 0===k?"start":k,w=c.className,S=c.as,C=Sp(c,Mp),O=F.useMemo(function(){var e,r=t.mergeWith({},null!=(e=null==l?void 0:l._focus)?e:{},{zIndex:1});return Cp({display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none"},l,!!s&&{_focus:r})},[l,s]),R=(a=(n=F.useState(!S))[0],o=n[1],i=F.useCallback(function(e){e&&o("BUTTON"===e.tagName)},[]),{ref:i,type:a?"button":void 0}),A=R.type,I={rightIcon:h,leftIcon:v,iconSpacing:b,children:m};/*#__PURE__*/
15
+ return F.createElement(ba.button,Cp({disabled:d||p,ref:vr(r,R.ref),as:S,type:null!=x?x:A,"data-active":t.dataAttr(f),"data-loading":t.dataAttr(p),__css:O,className:t.cx("chakra-button",w)},C),p&&"start"===_&&/*#__PURE__*/F.createElement(Pp,{className:"chakra-button__spinner--start",label:g,placement:"start",spacing:b},E),p?g||/*#__PURE__*/F.createElement(ba.span,{opacity:0},/*#__PURE__*/F.createElement(Vp,I)):/*#__PURE__*/F.createElement(Vp,I),p&&"end"===_&&/*#__PURE__*/F.createElement(Pp,{className:"chakra-button__spinner--end",label:g,placement:"end",spacing:b},E))});function Vp(e){var t=e.leftIcon,r=e.rightIcon,n=e.children,a=e.iconSpacing;/*#__PURE__*/
16
+ return F.createElement(F.Fragment,null,t&&/*#__PURE__*/F.createElement(Dp,{marginEnd:a},t),n,r&&/*#__PURE__*/F.createElement(Dp,{marginStart:a},r))}t.__DEV__&&(jp.displayName="Button");var Bp=["icon","children","isRound","aria-label"];function Fp(){return Fp=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},Fp.apply(this,arguments)}function zp(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}t.__DEV__&&(/*#__PURE__*/fa(function(e,t){var r=e.icon,n=e.children,a=e.isRound,o=e["aria-label"],i=Sp(e,Bp),s=r||n,l=/*#__PURE__*/F.isValidElement(s)?/*#__PURE__*/F.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;/*#__PURE__*/
17
+ return F.createElement(jp,Cp({padding:"0",borderRadius:a?"full":void 0,ref:t,"aria-label":o},i),l)}).displayName="IconButton");var Wp=["id","isRequired","isInvalid","isDisabled","isReadOnly"],Hp=["getRootProps","htmlProps"],Up=aa("FormControl"),$p=Up[0],qp=Up[1],Yp=qp,Gp=rr({strict:!1,name:"FormControlContext"}),Zp=Gp[0],Xp=Gp[1],Kp=/*#__PURE__*/fa(function(e,r){var n=ga("Form",e),a=function(e){var r=e.id,n=e.isRequired,a=e.isInvalid,o=e.isDisabled,i=e.isReadOnly,s=zp(e,Wp),l=dr(),c=r||"field-"+l,u=c+"-label",d=c+"-feedback",p=c+"-helptext",f=F.useState(!1),m=f[0],v=f[1],h=F.useState(!1),g=h[0],y=h[1],b=sr(),x=b[0],E=b[1],k=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Fp({id:p},e,{ref:tr(t,function(e){e&&y(!0)})})},[p]),_=F.useCallback(function(e,r){var n,s;return void 0===e&&(e={}),void 0===r&&(r=null),Fp({},e,{ref:r,"data-focus":t.dataAttr(x),"data-disabled":t.dataAttr(o),"data-invalid":t.dataAttr(a),"data-readonly":t.dataAttr(i),id:null!=(n=e.id)?n:u,htmlFor:null!=(s=e.htmlFor)?s:c})},[c,o,x,a,i,u]),w=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Fp({id:d},e,{ref:tr(t,function(e){e&&v(!0)}),"aria-live":"polite"})},[d]),S=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Fp({},e,s,{ref:t,role:"group"})},[s]),C=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Fp({},e,{ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"})},[]);return{isRequired:!!n,isInvalid:!!a,isReadOnly:!!i,isDisabled:!!o,isFocused:!!x,onFocus:E.on,onBlur:E.off,hasFeedbackText:m,setHasFeedbackText:v,hasHelpText:g,setHasHelpText:y,id:c,labelId:u,feedbackId:d,helpTextId:p,htmlProps:s,getHelpTextProps:k,getErrorMessageProps:w,getRootProps:S,getLabelProps:_,getRequiredIndicatorProps:C}}(oa(e)),o=a.getRootProps,i=zp(a,Hp),s=t.cx("chakra-form-control",e.className);/*#__PURE__*/
18
+ return F.createElement(Zp,{value:i},/*#__PURE__*/F.createElement($p,{value:n},/*#__PURE__*/F.createElement(ba.div,Fp({},o({},r),{className:s,__css:n.container}))))});t.__DEV__&&(Kp.displayName="FormControl");var Jp=/*#__PURE__*/fa(function(e,r){var n=Xp(),a=qp(),o=t.cx("chakra-form__helper-text",e.className);/*#__PURE__*/
19
+ return F.createElement(ba.div,Fp({},null==n?void 0:n.getHelpTextProps(e,r),{__css:a.helperText,className:o}))});t.__DEV__&&(Jp.displayName="FormHelperText");var Qp=["isDisabled","isInvalid","isReadOnly","isRequired"],ef=["id","disabled","readOnly","required","isRequired","isInvalid","isReadOnly","isDisabled","onFocus","onBlur"];function tf(e){var r=rf(e),n=r.isDisabled,a=r.isInvalid,o=r.isReadOnly,i=r.isRequired;return Fp({},zp(r,Qp),{disabled:n,readOnly:o,required:i,"aria-invalid":t.ariaAttr(a),"aria-required":t.ariaAttr(i),"aria-readonly":t.ariaAttr(o)})}function rf(e){var r,n,a,o=Xp(),i=e.id,s=e.disabled,l=e.readOnly,c=e.required,u=e.isRequired,d=e.isInvalid,p=e.isReadOnly,f=e.isDisabled,m=e.onFocus,v=e.onBlur,h=zp(e,ef),g=e["aria-describedby"]?[e["aria-describedby"]]:[];return null!=o&&o.hasFeedbackText&&null!=o&&o.isInvalid&&g.push(o.feedbackId),null!=o&&o.hasHelpText&&g.push(o.helpTextId),Fp({},h,{"aria-describedby":g.join(" ")||void 0,id:null!=i?i:null==o?void 0:o.id,isDisabled:null!=(r=null!=s?s:f)?r:null==o?void 0:o.isDisabled,isReadOnly:null!=(n=null!=l?l:p)?n:null==o?void 0:o.isReadOnly,isRequired:null!=(a=null!=c?c:u)?a:null==o?void 0:o.isRequired,isInvalid:null!=d?d:null==o?void 0:o.isInvalid,onFocus:t.callAllHandlers(null==o?void 0:o.onFocus,m),onBlur:t.callAllHandlers(null==o?void 0:o.onBlur,v)})}var nf=aa("FormError"),af=nf[0],of=nf[1],sf=/*#__PURE__*/fa(function(e,r){var n=ga("FormError",e),a=oa(e),o=Xp();return null!=o&&o.isInvalid?/*#__PURE__*/F.createElement(af,{value:n},/*#__PURE__*/F.createElement(ba.div,Fp({},null==o?void 0:o.getErrorMessageProps(a,r),{className:t.cx("chakra-form__error-message",e.className),__css:Fp({display:"flex",alignItems:"center"},n.text)}))):null});t.__DEV__&&(sf.displayName="FormErrorMessage");var lf=/*#__PURE__*/fa(function(e,r){var n=of(),a=Xp();if(null==a||!a.isInvalid)return null;var o=t.cx("chakra-form__error-icon",e.className);/*#__PURE__*/
20
+ return F.createElement(Id,Fp({ref:r,"aria-hidden":!0},e,{__css:n.icon,className:o}),/*#__PURE__*/F.createElement("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"}))});t.__DEV__&&(lf.displayName="FormErrorIcon");var cf=["className","children","requiredIndicator","optionalIndicator"],uf=/*#__PURE__*/fa(function(e,r){var n,a=ha("FormLabel",e),o=oa(e),i=o.children,s=o.requiredIndicator,l=void 0===s?/*#__PURE__*/F.createElement(df,null):s,c=o.optionalIndicator,u=void 0===c?null:c,d=zp(o,cf),p=Xp(),f=null!=(n=null==p?void 0:p.getLabelProps(d,r))?n:Fp({ref:r},d);/*#__PURE__*/
21
+ return F.createElement(ba.label,Fp({},f,{className:t.cx("chakra-form__label",o.className),__css:Fp({display:"block",textAlign:"start"},a)}),i,null!=p&&p.isRequired?l:u)});t.__DEV__&&(uf.displayName="FormLabel");var df=/*#__PURE__*/fa(function(e,r){var n=Xp(),a=Yp();if(null==n||!n.isRequired)return null;var o=t.cx("chakra-form__required-indicator",e.className);/*#__PURE__*/
22
+ return F.createElement(ba.span,Fp({},null==n?void 0:n.getRequiredIndicatorProps(e,r),{__css:a.requiredIndicator,className:o}))});t.__DEV__&&(df.displayName="RequiredIndicator");var pf=!1,ff=null,mf=!1,vf=/* @__PURE__ */new Set,hf="undefined"!=typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function gf(e,t){vf.forEach(r=>r(e,t))}function yf(e){mf=!0,function(e){return!(e.metaKey||!hf&&e.altKey||e.ctrlKey)}(e)&&(ff="keyboard",gf("keyboard",e))}function bf(e){ff="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(mf=!0,gf("pointer",e))}function xf(e){e.target!==window&&e.target!==document&&(mf||(ff="keyboard",gf("keyboard",e)),mf=!1)}function Ef(){mf=!1}function kf(){return"pointer"!==ff}function _f(e){!function(){if("undefined"==typeof window||pf)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...t){mf=!0,e.apply(this,t)},document.addEventListener("keydown",yf,!0),document.addEventListener("keyup",yf,!0),window.addEventListener("focus",xf,!0),window.addEventListener("blur",Ef,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",bf,!0),document.addEventListener("pointermove",bf,!0),document.addEventListener("pointerup",bf,!0)):(document.addEventListener("mousedown",bf,!0),document.addEventListener("mousemove",bf,!0),document.addEventListener("mouseup",bf,!0)),pf=!0}(),e(kf());const t=()=>e(kf());return vf.add(t),()=>{vf.delete(t)}}function wf(){return wf=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},wf.apply(this,arguments)}var Sf=rr({name:"CheckboxGroupContext",strict:!1})[1];function Cf(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}var Of=["isIndeterminate","isChecked"],Rf=function(e){var t=xd;return"custom"in t&&"function"==typeof t.custom?t.custom(e):t(e)}(ba.svg),Af=function(e){/*#__PURE__*/
23
+ return F.createElement(Rf,wf({width:"1.2em",viewBox:"0 0 12 10",variants:{unchecked:{opacity:0,strokeDashoffset:16},checked:{opacity:1,strokeDashoffset:0,transition:{duration:.2}}},style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16}},e),/*#__PURE__*/F.createElement("polyline",{points:"1.5 6 4.5 9 10.5 1"}))},If=function(e){/*#__PURE__*/
24
+ return F.createElement(Rf,wf({width:"1.2em",viewBox:"0 0 24 24",variants:{unchecked:{scaleX:.65,opacity:0},checked:{scaleX:1,opacity:1,transition:{scaleX:{duration:0},opacity:{duration:.02}}}},style:{stroke:"currentColor",strokeWidth:4}},e),/*#__PURE__*/F.createElement("line",{x1:"21",x2:"3",y1:"12",y2:"12"}))},Tf=function(e){/*#__PURE__*/
25
+ return F.createElement(Sd,{initial:!1},e.open&&/*#__PURE__*/F.createElement(xd.div,{variants:{unchecked:{scale:.5},checked:{scale:1}},initial:"unchecked",animate:"checked",exit:"unchecked",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}},e.children))},Nf=function(e){var t=e.isIndeterminate,r=e.isChecked,n=Cf(e,Of);/*#__PURE__*/
26
+ return F.createElement(Tf,{open:r||t},/*#__PURE__*/F.createElement(t?If:Af,n))},Pf=["defaultChecked","isChecked","isFocusable","onChange","isIndeterminate","name","value","tabIndex","aria-label","aria-labelledby","aria-invalid"];function Lf(e){void 0===e&&(e={});var r=rf(e),n=r.isDisabled,a=r.isReadOnly,o=r.isRequired,i=r.isInvalid,s=r.id,l=r.onBlur,c=r.onFocus,u=r["aria-describedby"],d=e.defaultChecked,p=e.isChecked,f=e.isFocusable,m=e.onChange,v=e.isIndeterminate,h=e.name,g=e.value,y=e.tabIndex,b=void 0===y?void 0:y,x=e["aria-label"],E=e["aria-labelledby"],k=e["aria-invalid"],_=Cf(e,Pf),w=t.omit(_,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),S=or(m),C=or(l),O=or(c),R=F.useState(!1),A=R[0],I=R[1],T=sr(),N=T[0],P=T[1],L=sr(),D=L[0],M=L[1],j=sr(),V=j[0],B=j[1];F.useEffect(function(){return _f(I)},[]);var z=F.useRef(null),W=F.useState(!0),H=W[0],U=W[1],$=F.useState(!!d),q=$[1],Y=lr(p,$[0]),G=Y[0],Z=Y[1],X=F.useCallback(function(e){a||n?e.preventDefault():(G||q(Z?e.target.checked:!!v||e.target.checked),null==S||S(e))},[a,n,Z,G,v,S]);ar(function(){z.current&&(z.current.indeterminate=Boolean(v))},[v]),pr(function(){n&&P.off()},[n,P]),ar(function(){var e=z.current;null!=e&&e.form&&(e.form.onreset=function(){q(!!d)})},[]);var K=n&&!f,J=F.useCallback(function(e){" "===e.key&&B.on()},[B]),Q=F.useCallback(function(e){" "===e.key&&B.off()},[B]);ar(function(){z.current&&z.current.checked!==Z&&q(z.current.checked)},[z.current]);var ee=F.useCallback(function(e,r){return void 0===e&&(e={}),void 0===r&&(r=null),wf({},e,{ref:r,"data-active":t.dataAttr(V),"data-hover":t.dataAttr(D),"data-checked":t.dataAttr(Z),"data-focus":t.dataAttr(N),"data-focus-visible":t.dataAttr(N&&A),"data-indeterminate":t.dataAttr(v),"data-disabled":t.dataAttr(n),"data-invalid":t.dataAttr(i),"data-readonly":t.dataAttr(a),"aria-hidden":!0,onMouseDown:t.callAllHandlers(e.onMouseDown,function(e){e.preventDefault(),B.on()}),onMouseUp:t.callAllHandlers(e.onMouseUp,B.off),onMouseEnter:t.callAllHandlers(e.onMouseEnter,M.on),onMouseLeave:t.callAllHandlers(e.onMouseLeave,M.off)})},[V,Z,n,N,A,D,v,i,a,B,M.off,M.on]),te=F.useCallback(function(e,r){return void 0===e&&(e={}),void 0===r&&(r=null),wf({},w,e,{ref:tr(r,function(e){e&&U("LABEL"===e.tagName)}),onClick:t.callAllHandlers(e.onClick,function(){var e;H||(null==(e=z.current)||e.click(),t.focus(z.current,{nextTick:!0}))}),"data-disabled":t.dataAttr(n),"data-checked":t.dataAttr(Z),"data-invalid":t.dataAttr(i)})},[w,n,Z,i,H]),re=F.useCallback(function(e,r){return void 0===e&&(e={}),void 0===r&&(r=null),wf({},e,{ref:tr(z,r),type:"checkbox",name:h,value:g,id:s,tabIndex:b,onChange:t.callAllHandlers(e.onChange,X),onBlur:t.callAllHandlers(e.onBlur,C,P.off),onFocus:t.callAllHandlers(e.onFocus,O,P.on),onKeyDown:t.callAllHandlers(e.onKeyDown,J),onKeyUp:t.callAllHandlers(e.onKeyUp,Q),required:o,checked:Z,disabled:K,readOnly:a,"aria-label":x,"aria-labelledby":E,"aria-invalid":k?Boolean(k):i,"aria-describedby":u,"aria-disabled":n,style:yp})},[h,g,s,X,P.off,P.on,C,O,J,Q,o,Z,K,a,x,E,k,i,u,n,b]),ne=F.useCallback(function(e,r){return void 0===e&&(e={}),void 0===r&&(r=null),wf({},e,{ref:r,onMouseDown:t.callAllHandlers(e.onMouseDown,Df),onTouchStart:t.callAllHandlers(e.onTouchStart,Df),"data-disabled":t.dataAttr(n),"data-checked":t.dataAttr(Z),"data-invalid":t.dataAttr(i)})},[Z,n,i]);return{state:{isInvalid:i,isFocused:N,isChecked:Z,isActive:V,isHovered:D,isIndeterminate:v,isDisabled:n,isReadOnly:a,isRequired:o},getRootProps:te,getCheckboxProps:ee,getInputProps:re,getLabelProps:ne,htmlProps:w}}function Df(e){e.preventDefault(),e.stopPropagation()}var Mf=["spacing","className","children","iconColor","iconSize","icon","isChecked","isDisabled","onChange","inputProps"],jf=ba("span",{baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0}}),Vf=ba("label",{baseStyle:{cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"}}),Bf=/*#__PURE__*/fa(function(e,r){var n=Sf(),a=ga("Checkbox",wf({},n,e)),o=oa(e),i=o.spacing,s=void 0===i?"0.5rem":i,l=o.className,c=o.children,u=o.iconColor,d=o.iconSize,p=o.icon,f=void 0===p?/*#__PURE__*/F.createElement(Nf,null):p,m=o.isChecked,v=o.isDisabled,h=void 0===v?null==n?void 0:n.isDisabled:v,g=o.onChange,y=o.inputProps,b=Cf(o,Mf),x=m;null!=n&&n.value&&o.value&&(x=n.value.includes(o.value));var E=g;null!=n&&n.onChange&&o.value&&(E=t.callAll(n.onChange,g));var k=Lf(wf({},b,{isDisabled:h,isChecked:x,onChange:E})),_=k.state,w=k.getInputProps,S=k.getCheckboxProps,C=k.getLabelProps,O=k.getRootProps,R=F.useMemo(function(){return wf({opacity:_.isChecked||_.isIndeterminate?1:0,transform:_.isChecked||_.isIndeterminate?"scale(1)":"scale(0.95)",fontSize:d,color:u},a.icon)},[u,d,_.isChecked,_.isIndeterminate,a.icon]),A=/*#__PURE__*/F.cloneElement(f,{__css:R,isIndeterminate:_.isIndeterminate,isChecked:_.isChecked});/*#__PURE__*/
27
+ return F.createElement(Vf,wf({__css:a.container,className:t.cx("chakra-checkbox",l)},O()),/*#__PURE__*/F.createElement("input",wf({className:"chakra-checkbox__input"},w(y,r))),/*#__PURE__*/F.createElement(jf,wf({__css:a.control,className:"chakra-checkbox__control"},S()),A),c&&/*#__PURE__*/F.createElement(ba.span,wf({className:"chakra-checkbox__label"},C(),{__css:wf({marginStart:s},a.label)}),c))});function Ff(e){void 0===e&&(e={});var r=e.precision,n=e.defaultValue,a=e.value,o=e.step,i=void 0===o?1:o,s=e.min,l=void 0===s?t.minSafeInteger:s,c=e.max,u=void 0===c?t.maxSafeInteger:c,d=e.keepWithinRange,p=void 0===d||d,f=or(e.onChange),m=F.useState(function(){var e;return null==n?"":null!=(e=Hf(n,i,r))?e:""}),v=m[1],h=lr(a,m[0]),g=h[0],y=h[1],b=Wf(zf(y),i),x=null!=r?r:b,E=F.useCallback(function(e){e!==y&&(g||v(e.toString()),null==f||f(e.toString(),zf(e)))},[f,g,y]),k=F.useCallback(function(e){var r=e;return p&&(r=t.clampValue(r,l,u)),t.toPrecision(r,x)},[x,p,u,l]),_=F.useCallback(function(e){var t;void 0===e&&(e=i),t=""===y?zf(e):zf(y)+e,t=k(t),E(t)},[k,i,E,y]),w=F.useCallback(function(e){var t;void 0===e&&(e=i),t=""===y?zf(-e):zf(y)-e,t=k(t),E(t)},[k,i,E,y]),S=F.useCallback(function(){var e,t;e=null==n?"":null!=(t=Hf(n,i,r))?t:l,E(e)},[n,r,i,E,l]),C=F.useCallback(function(e){var t,r=null!=(t=Hf(e,i,x))?t:l;E(r)},[x,i,E,l]),O=zf(y);return{isOutOfRange:O>u||O<l,isAtMax:O===u,isAtMin:O===l,precision:x,value:y,valueAsNumber:O,update:E,reset:S,increment:_,decrement:w,clamp:k,cast:C,setValue:v}}function zf(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function Wf(e,r){return Math.max(t.countDecimalPlaces(r),t.countDecimalPlaces(e))}function Hf(e,r,n){var a=zf(e);if(!Number.isNaN(a)){var o=Wf(a,r);return t.toPrecision(a,null!=n?n:o)}}function Uf(){return Uf=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},Uf.apply(this,arguments)}function $f(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}t.__DEV__&&(Bf.displayName="Checkbox");var qf=["htmlSize"],Yf=/*#__PURE__*/fa(function(e,r){var n=e.htmlSize,a=$f(e,qf),o=ga("Input",a),i=tf(oa(a)),s=t.cx("chakra-input",e.className);/*#__PURE__*/
28
+ return F.createElement(ba.input,Uf({size:n},i,{__css:o.field,ref:r,className:s}))});t.__DEV__&&(Yf.displayName="Input"),Yf.id="Input";var Gf=["children","className"],Zf=aa("InputGroup"),Xf=Zf[0],Kf=Zf[1],Jf=/*#__PURE__*/fa(function(e,r){var n=ga("Input",e),a=oa(e),o=a.children,i=a.className,s=$f(a,Gf),l=t.cx("chakra-input__group",i),c={},u=nr(o),d=n.field;u.forEach(function(e){var t,r;n&&(d&&"InputLeftElement"===e.type.id&&(c.paddingStart=null!=(t=d.height)?t:d.h),d&&"InputRightElement"===e.type.id&&(c.paddingEnd=null!=(r=d.height)?r:d.h),"InputRightAddon"===e.type.id&&(c.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(c.borderStartRadius=0))});var p=u.map(function(r){var n,a,o=t.filterUndefined({size:(null==(n=r.props)?void 0:n.size)||e.size,variant:(null==(a=r.props)?void 0:a.variant)||e.variant});/*#__PURE__*/
29
+ return F.cloneElement(r,"Input"!==r.type.id?o:Object.assign(o,c,r.props))});/*#__PURE__*/
30
+ return F.createElement(ba.div,Uf({className:l,ref:r,__css:{width:"100%",display:"flex",position:"relative"}},s),/*#__PURE__*/F.createElement(Xf,{value:n},p))});t.__DEV__&&(Jf.displayName="InputGroup");var Qf=["placement"],em={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},tm=ba("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),rm=/*#__PURE__*/fa(function(e,t){var r,n=e.placement,a=void 0===n?"left":n,o=$f(e,Qf),i=null!=(r=em[a])?r:{},s=Kf();/*#__PURE__*/
31
+ return F.createElement(tm,Uf({ref:t},o,{__css:Uf({},s.addon,i)}))});t.__DEV__&&(rm.displayName="InputAddon");var nm=/*#__PURE__*/fa(function(e,r){/*#__PURE__*/
32
+ return F.createElement(rm,Uf({ref:r,placement:"left"},e,{className:t.cx("chakra-input__left-addon",e.className)}))});t.__DEV__&&(nm.displayName="InputLeftAddon"),nm.id="InputLeftAddon";var am=/*#__PURE__*/fa(function(e,r){/*#__PURE__*/
33
+ return F.createElement(rm,Uf({ref:r,placement:"right"},e,{className:t.cx("chakra-input__right-addon",e.className)}))});t.__DEV__&&(am.displayName="InputRightAddon"),am.id="InputRightAddon";var om=["placement"],im=["className"],sm=["className"],lm=ba("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),cm=/*#__PURE__*/fa(function(e,t){var r,n,a,o=e.placement,i=void 0===o?"left":o,s=$f(e,om),l=Kf(),c=l.field,u=Uf(((a={})["left"===i?"insetStart":"insetEnd"]="0",a.width=null!=(r=null==c?void 0:c.height)?r:null==c?void 0:c.h,a.height=null!=(n=null==c?void 0:c.height)?n:null==c?void 0:c.h,a.fontSize=null==c?void 0:c.fontSize,a),l.element);/*#__PURE__*/
34
+ return F.createElement(lm,Uf({ref:t,__css:u},s))});cm.id="InputElement",t.__DEV__&&(cm.displayName="InputElement");var um=/*#__PURE__*/fa(function(e,r){var n=e.className,a=$f(e,im),o=t.cx("chakra-input__left-element",n);/*#__PURE__*/
35
+ return F.createElement(cm,Uf({ref:r,placement:"left",className:o},a))});um.id="InputLeftElement",t.__DEV__&&(um.displayName="InputLeftElement");var dm=/*#__PURE__*/fa(function(e,r){var n=e.className,a=$f(e,sm),o=t.cx("chakra-input__right-element",n);/*#__PURE__*/
36
+ return F.createElement(cm,Uf({ref:r,placement:"right",className:o},a))});function pm(){return pm=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},pm.apply(this,arguments)}function fm(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}dm.id="InputRightElement",t.__DEV__&&(dm.displayName="InputRightElement");var mm=["ratio","children","className"],vm=/*#__PURE__*/fa(function(e,r){var n=e.ratio,a=void 0===n?4/3:n,o=e.children,i=e.className,s=fm(e,mm),l=F.Children.only(o),c=t.cx("chakra-aspect-ratio",i);/*#__PURE__*/
37
+ return F.createElement(ba.div,pm({ref:r,position:"relative",className:c,_before:{height:0,content:'""',display:"block",paddingBottom:t.mapResponsive(a,function(e){return 1/e*100+"%"})},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}}},s),l)});t.__DEV__&&(vm.displayName="AspectRatio");var hm=["className"],gm=/*#__PURE__*/fa(function(e,r){var n=ha("Badge",e),a=fm(oa(e),hm);/*#__PURE__*/
38
+ return F.createElement(ba.span,pm({ref:r,className:t.cx("chakra-badge",e.className)},a,{__css:pm({display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle"},n)}))});t.__DEV__&&(gm.displayName="Badge");var ym=["size","centerContent"],bm=["size"],xm=ba("div");t.__DEV__&&(xm.displayName="Box");var Em=/*#__PURE__*/fa(function(e,t){var r=e.size,n=e.centerContent,a=void 0===n||n,o=fm(e,ym);/*#__PURE__*/
39
+ return F.createElement(xm,pm({ref:t,boxSize:r,__css:pm({},a?{display:"flex",alignItems:"center",justifyContent:"center"}:{},{flexShrink:0,flexGrow:0})},o))});t.__DEV__&&(Em.displayName="Square"),t.__DEV__&&(/*#__PURE__*/fa(function(e,t){var r=e.size,n=fm(e,bm);/*#__PURE__*/
40
+ return F.createElement(Em,pm({size:r,ref:t,borderRadius:"9999px"},n))}).displayName="Circle");var km=ba("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});t.__DEV__&&(km.displayName="Center");var _m=["className"],wm=/*#__PURE__*/fa(function(e,r){var n=ha("Code",e),a=fm(oa(e),_m);/*#__PURE__*/
41
+ return F.createElement(ba.code,pm({ref:r,className:t.cx("chakra-code",e.className)},a,{__css:pm({display:"inline-block"},n)}))});t.__DEV__&&(wm.displayName="Code");var Sm=["className","centerContent"],Cm=/*#__PURE__*/fa(function(e,r){var n=oa(e),a=n.className,o=n.centerContent,i=fm(n,Sm),s=ha("Container",e);/*#__PURE__*/
42
+ return F.createElement(ba.div,pm({ref:r,className:t.cx("chakra-container",a)},i,{__css:pm({},s,o&&{display:"flex",flexDirection:"column",alignItems:"center"})}))});t.__DEV__&&(Cm.displayName="Container");var Om=["borderLeftWidth","borderBottomWidth","borderTopWidth","borderRightWidth","borderWidth","borderStyle","borderColor"],Rm=["className","orientation","__css"],Am=/*#__PURE__*/fa(function(e,r){var n=ha("Divider",e),a=n.borderLeftWidth,o=n.borderBottomWidth,i=n.borderTopWidth,s=n.borderRightWidth,l=n.borderWidth,c=n.borderStyle,u=n.borderColor,d=fm(n,Om),p=oa(e),f=p.className,m=p.orientation,v=void 0===m?"horizontal":m,h=p.__css,g=fm(p,Rm);/*#__PURE__*/
43
+ return F.createElement(ba.hr,pm({ref:r,"aria-orientation":v},g,{__css:pm({},d,{border:"0",borderColor:u,borderStyle:c},{vertical:{borderLeftWidth:a||s||l||"1px",height:"100%"},horizontal:{borderBottomWidth:o||i||l||"1px",width:"100%"}}[v],h),className:t.cx("chakra-divider",f)}))});t.__DEV__&&(Am.displayName="Divider");var Im=["direction","align","justify","wrap","basis","grow","shrink"],Tm=/*#__PURE__*/fa(function(e,t){var r=e.direction,n=e.align,a=e.justify,o=e.wrap,i=e.basis,s=e.grow,l=e.shrink,c=fm(e,Im);/*#__PURE__*/
44
+ return F.createElement(ba.div,pm({ref:t,__css:{display:"flex",flexDirection:r,alignItems:n,justifyContent:a,flexWrap:o,flexBasis:i,flexGrow:s,flexShrink:l}},c))});t.__DEV__&&(Tm.displayName="Flex");var Nm=["templateAreas","gap","rowGap","columnGap","column","row","autoFlow","autoRows","templateRows","autoColumns","templateColumns"],Pm=/*#__PURE__*/fa(function(e,t){var r=e.templateAreas,n=e.gap,a=e.rowGap,o=e.columnGap,i=e.column,s=e.row,l=e.autoFlow,c=e.autoRows,u=e.templateRows,d=e.autoColumns,p=e.templateColumns,f=fm(e,Nm);/*#__PURE__*/
45
+ return F.createElement(ba.div,pm({ref:t,__css:{display:"grid",gridTemplateAreas:r,gridGap:n,gridRowGap:a,gridColumnGap:o,gridAutoColumns:d,gridColumn:i,gridRow:s,gridAutoFlow:l,gridAutoRows:c,gridTemplateRows:u,gridTemplateColumns:p}},f))});t.__DEV__&&(Pm.displayName="Grid");var Lm=["className"],Dm=/*#__PURE__*/fa(function(e,r){var n=ha("Heading",e),a=fm(oa(e),Lm);/*#__PURE__*/
46
+ return F.createElement(ba.h2,pm({ref:r,className:t.cx("chakra-heading",e.className)},a,{__css:n}))});t.__DEV__&&(Dm.displayName="Heading");var Mm=["className"],jm=/*#__PURE__*/fa(function(e,r){var n=ha("Kbd",e),a=oa(e),o=a.className,i=fm(a,Mm);/*#__PURE__*/
47
+ return F.createElement(ba.kbd,pm({ref:r,className:t.cx("chakra-kbd",o)},i,{__css:pm({fontFamily:"mono"},n)}))});t.__DEV__&&(jm.displayName="Kbd");var Vm=["className","isExternal"],Bm=/*#__PURE__*/fa(function(e,r){var n=ha("Link",e),a=oa(e),o=a.className,i=a.isExternal,s=fm(a,Vm);/*#__PURE__*/
48
+ return F.createElement(ba.a,pm({target:i?"_blank":void 0,rel:i?"noopener":void 0,ref:r,className:t.cx("chakra-link",o)},s,{__css:n}))});t.__DEV__&&(Bm.displayName="Link");var Fm=["children","styleType","stylePosition","spacing"],zm=["as"],Wm=["as"],Hm=aa("List"),Um=Hm[0],$m=Hm[1],qm=/*#__PURE__*/fa(function(e,t){var r,n=ga("List",e),a=oa(e),o=a.children,i=a.styleType,s=void 0===i?"none":i,l=a.stylePosition,c=a.spacing,u=fm(a,Fm),d=nr(o),p=c?((r={})["& > *:not(style) ~ *:not(style)"]={mt:c},r):{};/*#__PURE__*/
49
+ return F.createElement(Um,{value:n},/*#__PURE__*/F.createElement(ba.ul,pm({ref:t,listStyleType:s,listStylePosition:l,role:"list",__css:pm({},n.container,p)},u),d))});t.__DEV__&&(qm.displayName="List"),t.__DEV__&&(/*#__PURE__*/fa(function(e,t){var r=fm(e,zm);/*#__PURE__*/
50
+ return F.createElement(qm,pm({ref:t,as:"ol",styleType:"decimal",marginStart:"1em"},r))}).displayName="OrderedList"),t.__DEV__&&(/*#__PURE__*/fa(function(e,t){var r=fm(e,Wm);/*#__PURE__*/
51
+ return F.createElement(qm,pm({ref:t,as:"ul",styleType:"initial",marginStart:"1em"},r))}).displayName="UnorderedList"),t.__DEV__&&(/*#__PURE__*/fa(function(e,t){var r=$m();/*#__PURE__*/
52
+ return F.createElement(ba.li,pm({ref:t},e,{__css:r.item}))}).displayName="ListItem"),t.__DEV__&&(/*#__PURE__*/fa(function(e,t){var r=$m();/*#__PURE__*/
53
+ return F.createElement(Ad,pm({ref:t,role:"presentation"},e,{__css:r.icon}))}).displayName="ListIcon");var Ym=["columns","spacingX","spacingY","spacing","minChildWidth"],Gm=/*#__PURE__*/fa(function(e,r){var n=e.columns,a=e.spacingX,o=e.spacingY,i=e.spacing,s=e.minChildWidth,l=fm(e,Ym),c=s?t.mapResponsive(s,function(e){return t.isNull(e)?null:"repeat(auto-fit, minmax("+function(e){return t.isNumber(e)?e+"px":e}(e)+", 1fr))"}):t.mapResponsive(n,function(e){return t.isNull(e)?null:"repeat("+e+", minmax(0, 1fr))"});/*#__PURE__*/
54
+ return F.createElement(Pm,pm({ref:r,gap:i,columnGap:a,rowGap:o,templateColumns:c},l))});t.__DEV__&&(Gm.displayName="SimpleGrid");var Zm=ba("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});t.__DEV__&&(Zm.displayName="Spacer");var Xm="& > *:not(style) ~ *:not(style)",Km=["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"],Jm=function(e){/*#__PURE__*/
55
+ return F.createElement(ba.div,pm({className:"chakra-stack__item"},e,{__css:pm({display:"inline-block",flex:"0 0 auto",minWidth:0},e.__css)}))},Qm=/*#__PURE__*/fa(function(e,r){var n,a=e.isInline,o=e.direction,i=e.align,s=e.justify,l=e.spacing,c=void 0===l?"0.5rem":l,u=e.wrap,d=e.children,p=e.divider,f=e.className,m=e.shouldWrapChildren,v=fm(e,Km),h=a?"row":null!=o?o:"column",g=F.useMemo(function(){return function(e){var r,n=e.spacing,a=e.direction,o={column:{marginTop:n,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:n},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:n,marginStart:0},"row-reverse":{marginTop:0,marginEnd:n,marginBottom:0,marginStart:0}};return(r={flexDirection:a})[Xm]=t.mapResponsive(a,function(e){return o[e]}),r}({direction:h,spacing:c})},[h,c]),y=F.useMemo(function(){return function(e){var r=e.spacing,n={column:{my:r,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:r,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:r,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:r,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":t.mapResponsive(e.direction,function(e){return n[e]})}}({spacing:c,direction:h})},[c,h]),b=!!p,x=!m&&!b,E=nr(d),k=x?E:E.map(function(e,t){var r=void 0!==e.key?e.key:t,n=t+1===E.length,a=m?/*#__PURE__*/F.createElement(Jm,{key:r},e):e;return b?/*#__PURE__*/F.createElement(F.Fragment,{key:r},a,n?null:/*#__PURE__*/F.cloneElement(p,{__css:y})):a}),_=t.cx("chakra-stack",f);/*#__PURE__*/
56
+ return F.createElement(ba.div,pm({ref:r,display:"flex",alignItems:i,justifyContent:s,flexDirection:g.flexDirection,flexWrap:u,className:_,__css:b?{}:(n={},n[Xm]=g[Xm],n)},v),k)});t.__DEV__&&(Qm.displayName="Stack");var ev=/*#__PURE__*/fa(function(e,t){/*#__PURE__*/
57
+ return F.createElement(Qm,pm({align:"center"},e,{direction:"row",ref:t}))});t.__DEV__&&(ev.displayName="HStack"),t.__DEV__&&(/*#__PURE__*/fa(function(e,t){/*#__PURE__*/
58
+ return F.createElement(Qm,pm({align:"center"},e,{direction:"column",ref:t}))}).displayName="VStack");var tv=["className","align","decoration","casing"],rv=/*#__PURE__*/fa(function(e,r){var n=ha("Text",e),a=fm(oa(e),tv),o=t.filterUndefined({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});/*#__PURE__*/
59
+ return F.createElement(ba.p,pm({ref:r,className:t.cx("chakra-text",e.className)},o,a,{__css:n}))});t.__DEV__&&(rv.displayName="Text");var nv=["spacing","spacingX","spacingY","children","justify","direction","align","className","shouldWrapChildren"],av=["className"];function ov(e){return"number"==typeof e?e+"px":e}var iv=/*#__PURE__*/fa(function(e,r){var n=e.spacing,a=void 0===n?"0.5rem":n,o=e.spacingX,i=e.spacingY,s=e.children,l=e.justify,c=e.direction,u=e.align,d=e.className,p=e.shouldWrapChildren,f=fm(e,nv),m=F.useMemo(function(){var e={spacingX:o,spacingY:i},r=e.spacingX,n=void 0===r?a:r,s=e.spacingY,d=void 0===s?a:s;return{"--chakra-wrap-x-spacing":function(e){return t.mapResponsive(n,function(t){return ov(jr("space",t)(e))})},"--chakra-wrap-y-spacing":function(e){return t.mapResponsive(d,function(t){return ov(jr("space",t)(e))})},"--wrap-x-spacing":"calc(var(--chakra-wrap-x-spacing) / 2)","--wrap-y-spacing":"calc(var(--chakra-wrap-y-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:l,alignItems:u,flexDirection:c,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-y-spacing) * -1) calc(var(--wrap-x-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-y-spacing) var(--wrap-x-spacing)"}}},[a,o,i,l,u,c]),v=p?F.Children.map(s,function(e,t){/*#__PURE__*/
60
+ return F.createElement(sv,{key:t},e)}):s;/*#__PURE__*/
61
+ return F.createElement(ba.div,pm({ref:r,className:t.cx("chakra-wrap",d),overflow:"hidden"},f),/*#__PURE__*/F.createElement(ba.ul,{className:"chakra-wrap__list",__css:m},v))});t.__DEV__&&(iv.displayName="Wrap");var sv=/*#__PURE__*/fa(function(e,r){var n=e.className,a=fm(e,av);/*#__PURE__*/
62
+ return F.createElement(ba.li,pm({ref:r,__css:{display:"flex",alignItems:"flex-start"},className:t.cx("chakra-wrap__listitem",n)},a))});function lv(){return lv=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},lv.apply(this,arguments)}t.__DEV__&&(sv.displayName="WrapItem");var cv=["ref","isDisabled","isFocusable","clickOnEnter","clickOnSpace","onMouseDown","onMouseUp","onClick","onKeyDown","onKeyUp","tabIndex","onMouseOver","onMouseLeave"];function uv(e){var t=e.target,r=t.tagName;return"INPUT"!==r&&"TEXTAREA"!==r&&!0!==t.isContentEditable}var dv="top",pv="bottom",fv="right",mv="left",vv=[dv,pv,fv,mv],hv=/*#__PURE__*/vv.reduce(function(e,t){return e.concat([t+"-start",t+"-end"])},[]),gv=/*#__PURE__*/[].concat(vv,["auto"]).reduce(function(e,t){return e.concat([t,t+"-start",t+"-end"])},[]),yv=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function bv(e){return e?(e.nodeName||"").toLowerCase():null}function xv(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ev(e){return e instanceof xv(e).Element||e instanceof Element}function kv(e){return e instanceof xv(e).HTMLElement||e instanceof HTMLElement}function _v(e){return"undefined"!=typeof ShadowRoot&&(e instanceof xv(e).ShadowRoot||e instanceof ShadowRoot)}function wv(e){return e.split("-")[0]}var Sv=Math.max,Cv=Math.min,Ov=Math.round;function Rv(e,t){void 0===t&&(t=!1);var r=e.getBoundingClientRect(),n=1,a=1;if(kv(e)&&t){var o=e.offsetHeight,i=e.offsetWidth;i>0&&(n=Ov(r.width)/i||1),o>0&&(a=Ov(r.height)/o||1)}return{width:r.width/n,height:r.height/a,top:r.top/a,right:r.right/n,bottom:r.bottom/a,left:r.left/n,x:r.left/n,y:r.top/a}}function Av(e){var t=Rv(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Iv(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&_v(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Tv(e){return xv(e).getComputedStyle(e)}function Nv(e){return["table","td","th"].indexOf(bv(e))>=0}function Pv(e){return((Ev(e)?e.ownerDocument:e.document)||window.document).documentElement}function Lv(e){return"html"===bv(e)?e:e.assignedSlot||e.parentNode||(_v(e)?e.host:null)||Pv(e)}function Dv(e){return kv(e)&&"fixed"!==Tv(e).position?e.offsetParent:null}function Mv(e){for(var t=xv(e),r=Dv(e);r&&Nv(r)&&"static"===Tv(r).position;)r=Dv(r);return r&&("html"===bv(r)||"body"===bv(r)&&"static"===Tv(r).position)?t:r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&kv(e)&&"fixed"===Tv(e).position)return null;var r=Lv(e);for(_v(r)&&(r=r.host);kv(r)&&["html","body"].indexOf(bv(r))<0;){var n=Tv(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}function jv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Vv(e,t,r){return Sv(e,Cv(t,r))}function Bv(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Fv(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}function zv(e){return e.split("-")[1]}var Wv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Hv(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=i.x,f=void 0===p?0:p,m=i.y,v=void 0===m?0:m,h="function"==typeof u?u({x:f,y:v}):{x:f,y:v};f=h.x,v=h.y;var g=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),b=mv,x=dv,E=window;if(c){var k=Mv(r),_="clientHeight",w="clientWidth";k===xv(r)&&"static"!==Tv(k=Pv(r)).position&&"absolute"===s&&(_="scrollHeight",w="scrollWidth"),(a===dv||(a===mv||a===fv)&&"end"===o)&&(x=pv,v-=(d&&k===E&&E.visualViewport?E.visualViewport.height:k[_])-n.height,v*=l?1:-1),a!==mv&&(a!==dv&&a!==pv||"end"!==o)||(b=fv,f-=(d&&k===E&&E.visualViewport?E.visualViewport.width:k[w])-n.width,f*=l?1:-1)}var S,C=Object.assign({position:s},c&&Wv),O=!0===u?function(e){var t=e.y,r=window.devicePixelRatio||1;return{x:Ov(e.x*r)/r||0,y:Ov(t*r)/r||0}}({x:f,y:v}):{x:f,y:v};return f=O.x,v=O.y,Object.assign({},C,l?((S={})[x]=y?"0":"",S[b]=g?"0":"",S.transform=(E.devicePixelRatio||1)<=1?"translate("+f+"px, "+v+"px)":"translate3d("+f+"px, "+v+"px, 0)",S):((t={})[x]=y?v+"px":"",t[b]=g?f+"px":"",t.transform="",t))}var Uv={passive:!0},$v={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=void 0===a||a,i=n.resize,s=void 0===i||i,l=xv(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",r.update,Uv)}),s&&l.addEventListener("resize",r.update,Uv),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",r.update,Uv)}),s&&l.removeEventListener("resize",r.update,Uv)}},data:{}},qv={left:"right",right:"left",bottom:"top",top:"bottom"};function Yv(e){return e.replace(/left|right|bottom|top/g,function(e){return qv[e]})}var Gv={start:"end",end:"start"};function Zv(e){return e.replace(/start|end/g,function(e){return Gv[e]})}function Xv(e){var t=xv(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Kv(e){return Rv(Pv(e)).left+Xv(e).scrollLeft}function Jv(e){var t=Tv(e);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function Qv(e){return["html","body","#document"].indexOf(bv(e))>=0?e.ownerDocument.body:kv(e)&&Jv(e)?e:Qv(Lv(e))}function eh(e,t){var r;void 0===t&&(t=[]);var n=Qv(e),a=n===(null==(r=e.ownerDocument)?void 0:r.body),o=xv(n),i=a?[o].concat(o.visualViewport||[],Jv(n)?n:[]):n,s=t.concat(i);return a?s:s.concat(eh(Lv(i)))}function th(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function rh(e,t){return"viewport"===t?th(function(e){var t=xv(e),r=Pv(e),n=t.visualViewport,a=r.clientWidth,o=r.clientHeight,i=0,s=0;return n&&(a=n.width,o=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=n.offsetLeft,s=n.offsetTop)),{width:a,height:o,x:i+Kv(e),y:s}}(e)):Ev(t)?function(e){var t=Rv(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):th(function(e){var t,r=Pv(e),n=Xv(e),a=null==(t=e.ownerDocument)?void 0:t.body,o=Sv(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Sv(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-n.scrollLeft+Kv(e),l=-n.scrollTop;return"rtl"===Tv(a||r).direction&&(s+=Sv(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:s,y:l}}(Pv(e)))}function nh(e){var t,r=e.reference,n=e.element,a=e.placement,o=a?wv(a):null,i=a?zv(a):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(o){case dv:t={x:s,y:r.y-n.height};break;case pv:t={x:s,y:r.y+r.height};break;case fv:t={x:r.x+r.width,y:l};break;case mv:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var c=o?jv(o):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case"start":t[c]=t[c]-(r[u]/2-n[u]/2);break;case"end":t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}function ah(e,t){void 0===t&&(t={});var r=t.placement,n=void 0===r?e.placement:r,a=t.boundary,o=void 0===a?"clippingParents":a,i=t.rootBoundary,s=void 0===i?"viewport":i,l=t.elementContext,c=void 0===l?"popper":l,u=t.altBoundary,d=void 0!==u&&u,p=t.padding,f=void 0===p?0:p,m=Bv("number"!=typeof f?f:Fv(f,vv)),v=e.rects.popper,h=e.elements[d?"popper"===c?"reference":"popper":c],g=function(e,t,r){var n="clippingParents"===t?function(e){var t=eh(Lv(e)),r=["absolute","fixed"].indexOf(Tv(e).position)>=0&&kv(e)?Mv(e):e;return Ev(r)?t.filter(function(e){return Ev(e)&&Iv(e,r)&&"body"!==bv(e)}):[]}(e):[].concat(t),a=[].concat(n,[r]),o=a.reduce(function(t,r){var n=rh(e,r);return t.top=Sv(n.top,t.top),t.right=Cv(n.right,t.right),t.bottom=Cv(n.bottom,t.bottom),t.left=Sv(n.left,t.left),t},rh(e,a[0]));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}(Ev(h)?h:h.contextElement||Pv(e.elements.popper),o,s),y=Rv(e.elements.reference),b=nh({reference:y,element:v,strategy:"absolute",placement:n}),x=th(Object.assign({},v,b)),E="popper"===c?x:y,k={top:g.top-E.top+m.top,bottom:E.bottom-g.bottom+m.bottom,left:g.left-E.left+m.left,right:E.right-g.right+m.right},_=e.modifiersData.offset;if("popper"===c&&_){var w=_[n];Object.keys(k).forEach(function(e){var t=[fv,pv].indexOf(e)>=0?1:-1,r=[dv,pv].indexOf(e)>=0?"y":"x";k[e]+=w[r]*t})}return k}function oh(e,t){void 0===t&&(t={});var r=t.boundary,n=t.rootBoundary,a=t.padding,o=t.flipVariations,i=t.allowedAutoPlacements,s=void 0===i?gv:i,l=zv(t.placement),c=l?o?hv:hv.filter(function(e){return zv(e)===l}):vv,u=c.filter(function(e){return s.indexOf(e)>=0});0===u.length&&(u=c,"production"!==process.env.NODE_ENV&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var d=u.reduce(function(t,o){return t[o]=ah(e,{placement:o,boundary:r,rootBoundary:n,padding:a})[wv(o)],t},{});return Object.keys(d).sort(function(e,t){return d[e]-d[t]})}var ih={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=void 0===a||a,i=r.altAxis,s=void 0===i||i,l=r.fallbackPlacements,c=r.padding,u=r.boundary,d=r.rootBoundary,p=r.altBoundary,f=r.flipVariations,m=void 0===f||f,v=r.allowedAutoPlacements,h=t.options.placement,g=wv(h),y=l||(g!==h&&m?function(e){if("auto"===wv(e))return[];var t=Yv(e);return[Zv(e),t,Zv(t)]}(h):[Yv(h)]),b=[h].concat(y).reduce(function(e,r){return e.concat("auto"===wv(r)?oh(t,{placement:r,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:v}):r)},[]),x=t.rects.reference,E=t.rects.popper,k=new Map,_=!0,w=b[0],S=0;S<b.length;S++){var C=b[S],O=wv(C),R="start"===zv(C),A=[dv,pv].indexOf(O)>=0,I=A?"width":"height",T=ah(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),N=A?R?fv:mv:R?pv:dv;x[I]>E[I]&&(N=Yv(N));var P=Yv(N),L=[];if(o&&L.push(T[O]<=0),s&&L.push(T[N]<=0,T[P]<=0),L.every(function(e){return e})){w=C,_=!1;break}k.set(C,L)}if(_)for(var D=function(e){var t=b.find(function(t){var r=k.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return w=t,"break"},M=m?3:1;M>0&&"break"!==D(M);M--);t.placement!==w&&(t.modifiersData[n]._skip=!0,t.placement=w,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function sh(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function lh(e){return[dv,fv,pv,mv].some(function(t){return e[t]>=0})}var ch={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.name,n=e.options.offset,a=void 0===n?[0,0]:n,o=gv.reduce(function(e,r){return e[r]=function(e,t,r){var n=wv(e),a=[mv,dv].indexOf(n)>=0?-1:1,o="function"==typeof r?r(Object.assign({},t,{placement:e})):r,i=o[0],s=o[1];return i=i||0,s=(s||0)*a,[mv,fv].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}(r,t.rects,a),e},{}),i=o[t.placement],s=i.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=i.x,t.modifiersData.popperOffsets.y+=s),t.modifiersData[r]=o}},uh={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=void 0===a||a,i=r.altAxis,s=void 0!==i&&i,l=r.tether,c=void 0===l||l,u=r.tetherOffset,d=void 0===u?0:u,p=ah(t,{boundary:r.boundary,rootBoundary:r.rootBoundary,padding:r.padding,altBoundary:r.altBoundary}),f=wv(t.placement),m=zv(t.placement),v=!m,h=jv(f),g="x"===h?"y":"x",y=t.modifiersData.popperOffsets,b=t.rects.reference,x=t.rects.popper,E="function"==typeof d?d(Object.assign({},t.rects,{placement:t.placement})):d,k="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,w={x:0,y:0};if(y){if(o){var S,C="y"===h?dv:mv,O="y"===h?pv:fv,R="y"===h?"height":"width",A=y[h],I=A+p[C],T=A-p[O],N=c?-x[R]/2:0,P="start"===m?b[R]:x[R],L="start"===m?-x[R]:-b[R],D=t.elements.arrow,M=c&&D?Av(D):{width:0,height:0},j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=j[C],B=j[O],F=Vv(0,b[R],M[R]),z=v?b[R]/2-N-F-V-k.mainAxis:P-F-V-k.mainAxis,W=v?-b[R]/2+N+F+B+k.mainAxis:L+F+B+k.mainAxis,H=t.elements.arrow&&Mv(t.elements.arrow),U=null!=(S=null==_?void 0:_[h])?S:0,$=A+W-U,q=Vv(c?Cv(I,A+z-U-(H?"y"===h?H.clientTop||0:H.clientLeft||0:0)):I,A,c?Sv(T,$):T);y[h]=q,w[h]=q-A}if(s){var Y,G=y[g],Z="y"===g?"height":"width",X=G+p["x"===h?dv:mv],K=G-p["x"===h?pv:fv],J=-1!==[dv,mv].indexOf(f),Q=null!=(Y=null==_?void 0:_[g])?Y:0,ee=J?X:G-b[Z]-x[Z]-Q+k.altAxis,te=J?G+b[Z]+x[Z]-Q-k.altAxis:K,re=c&&J?function(e,t,r){var n=Vv(e,t,r);return n>r?r:n}(ee,G,te):Vv(c?ee:X,G,c?te:K);y[g]=re,w[g]=re-G}t.modifiersData[n]=w}},requiresIfExists:["offset"]};function dh(e,t,r){void 0===r&&(r=!1);var n=kv(t),a=kv(t)&&function(e){var t=e.getBoundingClientRect(),r=Ov(t.width)/e.offsetWidth||1,n=Ov(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),o=Pv(t),i=Rv(e,a),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&(("body"!==bv(t)||Jv(o))&&(s=function(e){return e!==xv(e)&&kv(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Xv(e);var t}(t)),kv(t)?((l=Rv(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Kv(o))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function ph(e){var t=new Map,r=new Set,n=[];function a(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!r.has(e)){var n=t.get(e);n&&a(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){r.has(e.name)||a(e)}),n}function fh(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[].concat(r).reduce(function(e,t){return e.replace(/%s/,t)},e)}var mh='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',vh=["name","enabled","phase","fn","effect","requires","options"],hh="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",gh={placement:"bottom",modifiers:[],strategy:"absolute"};function yh(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function bh(e){void 0===e&&(e={});var t=e.defaultModifiers,r=void 0===t?[]:t,n=e.defaultOptions,a=void 0===n?gh:n;return function(e,t,n){void 0===n&&(n=a);var o,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},gh,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},a,s.options,o),s.scrollParents={reference:Ev(e)?eh(e):e.contextElement?eh(e.contextElement):[],popper:eh(t)};var i,c,p,f=function(e){var t=ph(e);return yv.reduce(function(e,r){return e.concat(t.filter(function(e){return e.phase===r}))},[])}(function(e){var t=e.reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}([].concat(r,s.options.modifiers)));if(s.orderedModifiers=f.filter(function(e){return e.enabled}),"production"!==process.env.NODE_ENV){var m=(i=[].concat(f,s.options.modifiers),c=function(e){return e.name},p=new Set,i.filter(function(e){var t=c(e);if(!p.has(t))return p.add(t),!0}));(function(e){e.forEach(function(t){[].concat(Object.keys(t),vh).filter(function(e,t,r){return r.indexOf(e)===t}).forEach(function(r){switch(r){case"name":"string"!=typeof t.name&&console.error(fh(mh,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(fh(mh,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":yv.indexOf(t.phase)<0&&console.error(fh(mh,t.name,'"phase"',"either "+yv.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(fh(mh,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(fh(mh,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(fh(mh,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(fh(mh,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+vh.map(function(e){return'"'+e+'"'}).join(", ")+'; but "'+r+'" was provided.')}t.requires&&t.requires.forEach(function(r){null==e.find(function(e){return e.name===r})&&console.error(fh('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),r,r))})})})})(m),"auto"===wv(s.options.placement)&&(s.orderedModifiers.find(function(e){return"flip"===e.name})||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" ")));var v=Tv(t);[v.marginTop,v.marginRight,v.marginBottom,v.marginLeft].some(function(e){return parseFloat(e)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return s.orderedModifiers.forEach(function(e){var t=e.options,r=e.effect;if("function"==typeof r){var n=r({state:s,name:e.name,instance:u,options:void 0===t?{}:t});l.push(n||function(){})}}),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,r=e.popper;if(yh(t,r)){s.rects={reference:dh(t,Mv(r),"fixed"===s.options.strategy),popper:Av(r)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var n=0,a=0;a<s.orderedModifiers.length;a++){if("production"!==process.env.NODE_ENV&&(n+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==s.reset){var o=s.orderedModifiers[a],i=o.fn,l=o.options;"function"==typeof i&&(s=i({state:s,options:void 0===l?{}:l,name:o.name,instance:u})||s)}else s.reset=!1,a=-1}}else"production"!==process.env.NODE_ENV&&console.error(hh)}},update:(o=function(){return new Promise(function(e){u.forceUpdate(),e(s)})},function(){return i||(i=new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(o())})})),i}),destroy:function(){d(),c=!0}};if(!yh(e,t))return"production"!==process.env.NODE_ENV&&console.error(hh),u;function d(){l.forEach(function(e){return e()}),l=[]}return u.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)}),u}}var xh=/*#__PURE__*/bh({defaultModifiers:[$v,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=nh({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=void 0===n||n,o=r.adaptive,i=void 0===o||o,s=r.roundOffsets,l=void 0===s||s;if("production"!==process.env.NODE_ENV){var c=Tv(t.elements.popper).transitionProperty||"";i&&["transform","top","right","bottom","left"].some(function(e){return c.indexOf(e)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var u={placement:wv(t.placement),variation:zv(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Hv(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Hv(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},a=t.elements[e];kv(a)&&bv(a)&&(Object.assign(a.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?a.removeAttribute(e):a.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],a=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});kv(n)&&bv(n)&&(Object.assign(n.style,o),Object.keys(a).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]},ch,ih,uh,{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,i=r.modifiersData.popperOffsets,s=wv(r.placement),l=jv(s),c=[mv,fv].indexOf(s)>=0?"height":"width";if(o&&i){var u=function(e,t){return Bv("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Fv(e,vv))}(a.padding,r),d=Av(o),p="y"===l?dv:mv,f="y"===l?pv:fv,m=r.rects.reference[c]+r.rects.reference[l]-i[l]-r.rects.popper[c],v=i[l]-r.rects.reference[l],h=Mv(o),g=h?"y"===l?h.clientHeight||0:h.clientWidth||0:0,y=g/2-d[c]/2+(m/2-v/2),b=Vv(u[p],y,g-d[c]-u[f]);r.modifiersData[n]=((t={})[l]=b,t.centerOffset=b-y,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&("production"!==process.env.NODE_ENV&&(kv(n)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),Iv(t.elements.popper,n)?t.elements.arrow=n:"production"!==process.env.NODE_ENV&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=ah(t,{elementContext:"reference"}),s=ah(t,{altBoundary:!0}),l=sh(i,n),c=sh(s,a,o),u=lh(l),d=lh(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});function Eh(){return Eh=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},Eh.apply(this,arguments)}var kh=function(e,t){return{var:e,varRef:t?"var("+e+", "+t+")":"var("+e+")"}},_h={arrowShadowColor:kh("--popper-arrow-shadow-color"),arrowSize:kh("--popper-arrow-size","8px"),arrowSizeHalf:kh("--popper-arrow-size-half"),arrowBg:kh("--popper-arrow-bg"),transformOrigin:kh("--popper-transform-origin"),arrowOffset:kh("--popper-arrow-offset")},wh={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},Sh={scroll:!0,resize:!0},Ch={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;t.styles.popper.width=t.rects.reference.width+"px"},effect:function(e){var t=e.state;return function(){t.elements.popper.style.width=t.elements.reference.offsetWidth+"px"}}},Oh={name:"transformOrigin",enabled:!0,phase:"write",fn:function(e){Rh(e.state)},effect:function(e){var t=e.state;return function(){Rh(t)}}},Rh=function(e){e.elements.popper.style.setProperty(_h.transformOrigin.var,wh[e.placement])},Ah={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:function(e){Ih(e.state)}},Ih=function(e){var t;if(e.placement){var r=Th(e.placement);if(null!=(t=e.elements)&&t.arrow&&r){var n,a;Object.assign(e.elements.arrow.style,((n={})[r.property]=r.value,n.width=_h.arrowSize.varRef,n.height=_h.arrowSize.varRef,n.zIndex=-1,n));var o=((a={})[_h.arrowSizeHalf.var]="calc("+_h.arrowSize.varRef+" / 2)",a[_h.arrowOffset.var]="calc("+_h.arrowSizeHalf.varRef+" * -1)",a);for(var i in o)e.elements.arrow.style.setProperty(i,o[i])}}},Th=function(e){return e.startsWith("top")?{property:"bottom",value:_h.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:_h.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:_h.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:_h.arrowOffset.varRef}:void 0},Nh={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:function(e){Ph(e.state)},effect:function(e){var t=e.state;return function(){Ph(t)}}},Ph=function(e){if(e.elements.arrow){var t,r=e.elements.arrow.querySelector("[data-popper-arrow-inner]");r&&Object.assign(r.style,{transform:"rotate(45deg)",background:_h.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:(t=e.placement,t.includes("top")?"1px 1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("bottom")?"-1px -1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("right")?"-1px 1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("left")?"1px -1px 1px 0 var(--popper-arrow-shadow-color)":void 0)})}},Lh={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},Dh={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"},Mh=["size","shadowColor","bg","style"];function jh(e){var t=e.size,r=e.shadowColor,n=e.bg,a=Eh({},e.style,{position:"absolute"});return t&&(a["--popper-arrow-size"]=t),r&&(a["--popper-arrow-shadow-color"]=r),n&&(a["--popper-arrow-bg"]=n),a}function Vh(){return Vh=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},Vh.apply(this,arguments)}function Bh(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}var Fh=["id","closeOnSelect","closeOnBlur","autoSelect","isLazy","isOpen","defaultIsOpen","onClose","onOpen","placement","lazyBehavior","direction","computePositionOnMount"],zh=["onMouseEnter","onMouseMove","onMouseLeave","onClick","isDisabled","isFocusable","closeOnSelect","type"],Wh=["type","isChecked"],Hh=["children","type","value","defaultValue","onChange"],Uh=gp(),$h=Uh[0],qh=Uh[1],Yh=Uh[2],Gh=Uh[3],Zh=rr({strict:!1,name:"MenuContext"}),Xh=Zh[0],Kh=Zh[1];function Jh(e){var r;return t.isHTMLElement(e)&&!(null==(r=e.getAttribute("role"))||!r.startsWith("menuitem"))}function Qh(e,r){void 0===e&&(e={}),void 0===r&&(r=null);var n=e.onMouseEnter,a=e.onMouseMove,o=e.onMouseLeave,i=e.onClick,s=e.isDisabled,l=e.isFocusable,c=e.closeOnSelect,u=e.type,d=Bh(e,zh),p=Kh(),f=p.setFocusedIndex,m=p.focusedIndex,v=p.closeOnSelect,h=p.onClose,g=p.menuRef,y=p.isOpen,b=p.menuId,x=F.useRef(null),E=b+"-menuitem-"+dr(),k=Gh({disabled:s&&!l}),_=k.index,w=k.register,S=F.useCallback(function(e){null==n||n(e),s||f(_)},[f,_,s,n]),C=F.useCallback(function(e){null==a||a(e),x.current&&!t.isActiveElement(x.current)&&S(e)},[S,a]),O=F.useCallback(function(e){null==o||o(e),s||f(-1)},[f,s,o]),R=F.useCallback(function(e){null==i||i(e),Jh(e.currentTarget)&&(null!=c?c:v)&&h()},[h,i,v,c]),A=_===m,I=s&&!l;pr(function(){y&&(A&&!I&&x.current?t.focus(x.current,{nextTick:!0,selectTextIfInput:!1,preventScroll:!1}):g.current&&!t.isActiveElement(g.current)&&t.focus(g.current,{preventScroll:!1}))},[A,I,g,y]);var T=function(e){void 0===e&&(e={});var r=e.ref,n=e.isDisabled,a=e.isFocusable,o=e.clickOnEnter,i=void 0===o||o,s=e.clickOnSpace,l=void 0===s||s,c=e.onMouseDown,u=e.onMouseUp,d=e.onClick,p=e.onKeyDown,f=e.onKeyUp,m=e.tabIndex,v=e.onMouseOver,h=e.onMouseLeave,g=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}(e,cv),y=F.useState(!0),b=y[0],x=y[1],E=F.useState(!1),k=E[0],_=E[1],w=function(){var e=F.useRef(new Map),t=e.current,r=F.useCallback(function(t,r,n,a){e.current.set(n,{type:r,el:t,options:a}),t.addEventListener(r,n,a)},[]),n=F.useCallback(function(t,r,n,a){t.removeEventListener(r,n,a),e.current.delete(n)},[]);return F.useEffect(function(){return function(){t.forEach(function(e,t){n(e.el,e.type,t,e.options)})}},[n,t]),{add:r,remove:n}}(),S=b?m:m||0,C=n&&!a,O=F.useCallback(function(e){if(n)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==d||d(e)},[n,d]),R=F.useCallback(function(e){k&&uv(e)&&(e.preventDefault(),e.stopPropagation(),_(!1),w.remove(document,"keyup",R,!1))},[k,w]),A=F.useCallback(function(e){if(null==p||p(e),!(n||e.defaultPrevented||e.metaKey)&&uv(e.nativeEvent)&&!b){var t=i&&"Enter"===e.key;l&&" "===e.key&&(e.preventDefault(),_(!0)),t&&(e.preventDefault(),e.currentTarget.click()),w.add(document,"keyup",R,!1)}},[n,b,p,i,l,w,R]),I=F.useCallback(function(e){null==f||f(e),n||e.defaultPrevented||e.metaKey||uv(e.nativeEvent)&&!b&&l&&" "===e.key&&(e.preventDefault(),_(!1),e.currentTarget.click())},[l,b,n,f]),T=F.useCallback(function(e){0===e.button&&(_(!1),w.remove(document,"mouseup",T,!1))},[w]),N=F.useCallback(function(e){if(!t.isRightClick(e)){if(n)return e.stopPropagation(),void e.preventDefault();b||_(!0),e.currentTarget.focus({preventScroll:!0}),w.add(document,"mouseup",T,!1),null==c||c(e)}},[n,b,c,w,T]),P=F.useCallback(function(e){t.isRightClick(e)||(b||_(!1),null==u||u(e))},[u,b]),L=F.useCallback(function(e){n?e.preventDefault():null==v||v(e)},[n,v]),D=F.useCallback(function(e){k&&(e.preventDefault(),_(!1)),null==h||h(e)},[k,h]),M=tr(r,function(e){e&&"BUTTON"!==e.tagName&&x(!1)});return lv({},g,b?{ref:M,type:"button","aria-disabled":C?void 0:n,disabled:C,onClick:O,onMouseDown:c,onMouseUp:u,onKeyUp:f,onKeyDown:p,onMouseOver:v,onMouseLeave:h}:{ref:M,role:"button","data-active":t.dataAttr(k),"aria-disabled":n?"true":void 0,tabIndex:C?void 0:S,onClick:O,onMouseDown:N,onMouseUp:P,onKeyUp:I,onKeyDown:A,onMouseOver:L,onMouseLeave:D})}({onClick:R,onMouseEnter:S,onMouseMove:C,onMouseLeave:O,ref:tr(w,x,r),isDisabled:s,isFocusable:l});return Vh({},d,T,{type:null!=u?u:T.type,id:E,role:"menuitem",tabIndex:A?0:-1})}var eg=["descendants"],tg=["children","as"],rg=["rootProps"],ng=["type"],ag=["icon","iconSpacing","command","commandSpacing","children"],og=["icon","iconSpacing"],ig=["className","title"],sg=["title","children","className"],lg=["className","children"],cg=aa("Menu"),ug=cg[0],dg=cg[1],pg=function(e){var r=e.children,n=ga("Menu",e),a=function(e){void 0===e&&(e={});var r=e.id,n=e.closeOnSelect,a=void 0===n||n,o=e.closeOnBlur,i=void 0===o||o,s=e.autoSelect,l=void 0===s||s,c=e.isLazy,u=e.isOpen,d=e.defaultIsOpen,p=e.onClose,f=e.onOpen,m=e.placement,v=void 0===m?"bottom-start":m,h=e.lazyBehavior,g=void 0===h?"unmount":h,y=e.direction,b=e.computePositionOnMount,x=void 0!==b&&b,E=Bh(e,Fh),k=F.useRef(null),_=F.useRef(null),w=Yh(),S=F.useCallback(function(){t.focus(k.current,{nextTick:!0,selectTextIfInput:!1})},[]),C=F.useCallback(function(){var e=setTimeout(function(){var e=w.firstEnabled();e&&z(e.index)});Y.current.add(e)},[w]),O=F.useCallback(function(){var e=setTimeout(function(){var e=w.lastEnabled();e&&z(e.index)});Y.current.add(e)},[w]),R=function(e){void 0===e&&(e={});var r=e.onClose,n=e.isOpen,a=e.id,o=or(e.onOpen),i=or(r),s=F.useState(e.defaultIsOpen||!1),l=s[1],c=lr(n,s[0]),u=c[0],d=c[1],p=dr(a,"disclosure"),f=F.useCallback(function(){u||l(!1),null==i||i()},[u,i]),m=F.useCallback(function(){u||l(!0),null==o||o()},[u,o]),v=F.useCallback(function(){(d?f:m)()},[d,m,f]);return{isOpen:!!d,onOpen:m,onClose:f,onToggle:v,isControlled:u,getButtonProps:function(e){return void 0===e&&(e={}),ur({},e,{"aria-expanded":d,"aria-controls":p,onClick:t.callAllHandlers(e.onClick,v)})},getDisclosureProps:function(e){return void 0===e&&(e={}),ur({},e,{hidden:!d,id:p})}}}({isOpen:u,defaultIsOpen:d,onClose:p,onOpen:F.useCallback(function(){null==f||f(),l?C():S()},[l,C,S,f])}),A=R.isOpen,I=R.onOpen,T=R.onClose,N=R.onToggle;!function(e){var r=e.ref,n=e.handler,a=e.enabled,o=void 0===a||a,i=or(n),s=F.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;F.useEffect(function(){if(o){var e=function(e){hr(e,r)&&(s.isPointerDown=!0)},a=function(e){s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&n&&hr(e,r)&&(s.isPointerDown=!1,i(e))},l=function(e){s.ignoreEmulatedMouseEvents=!0,n&&s.isPointerDown&&hr(e,r)&&(s.isPointerDown=!1,i(e))},c=t.getOwnerDocument(r.current);return c.addEventListener("mousedown",e,!0),c.addEventListener("mouseup",a,!0),c.addEventListener("touchstart",e,!0),c.addEventListener("touchend",l,!0),function(){c.removeEventListener("mousedown",e,!0),c.removeEventListener("mouseup",a,!0),c.removeEventListener("touchstart",e,!0),c.removeEventListener("touchend",l,!0)}}},[n,r,i,s,o])}({enabled:A&&i,ref:k,handler:function(e){var t;null!=(t=_.current)&&t.contains(e.target)||T()}});var P,L,D,M,j=function(e){void 0===e&&(e={});var t=e.enabled,r=void 0===t||t,n=e.modifiers,a=e.placement,o=void 0===a?"bottom":a,i=e.strategy,s=void 0===i?"absolute":i,l=e.arrowPadding,c=void 0===l?8:l,u=e.eventListeners,d=void 0===u||u,p=e.offset,f=e.gutter,m=void 0===f?8:f,v=e.flip,h=void 0===v||v,g=e.boundary,y=void 0===g?"clippingParents":g,b=e.preventOverflow,x=void 0===b||b,E=e.matchWidth,k=e.direction,_=void 0===k?"ltr":k,w=F.useRef(null),S=F.useRef(null),C=F.useRef(null),O=function(e,t){var r,n;void 0===t&&(t="ltr");var a=(null==(r=Lh[e])?void 0:r[t])||e;return"ltr"===t?a:null!=(n=Dh[e])?n:a}(o,_),R=F.useRef(function(){}),A=F.useCallback(function(){var e;r&&w.current&&S.current&&(null==R.current||R.current(),C.current=xh(w.current,S.current,{placement:O,modifiers:[Nh,Ah,Oh,Eh({},Ch,{enabled:!!E}),Eh({name:"eventListeners"},(e=d,"object"==typeof e?{enabled:!0,options:Eh({},Sh,e)}:{enabled:e,options:Sh})),{name:"arrow",options:{padding:c}},{name:"offset",options:{offset:null!=p?p:[0,m]}},{name:"flip",enabled:!!h,options:{padding:8}},{name:"preventOverflow",enabled:!!x,options:{boundary:y}}].concat(null!=n?n:[]),strategy:s}),C.current.forceUpdate(),R.current=C.current.destroy)},[O,r,n,E,d,c,p,m,h,x,y,s]);F.useEffect(function(){return function(){var e;w.current||S.current||(null==(e=C.current)||e.destroy(),C.current=null)}},[]);var I=F.useCallback(function(e){w.current=e,A()},[A]),T=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Eh({},e,{ref:tr(I,t)})},[I]),N=F.useCallback(function(e){S.current=e,A()},[A]),P=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Eh({},e,{ref:tr(N,t),style:Eh({},e.style,{position:s,minWidth:E?void 0:"max-content",inset:"0 auto auto 0"})})},[s,N,E]),L=F.useCallback(function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var r=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}(e,Mh);return Eh({},r,{ref:t,"data-popper-arrow":"",style:jh(e)})},[]),D=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Eh({},e,{ref:t,"data-popper-arrow-inner":""})},[]);return{update:function(){var e;null==(e=C.current)||e.update()},forceUpdate:function(){var e;null==(e=C.current)||e.forceUpdate()},transformOrigin:_h.transformOrigin.varRef,referenceRef:I,popperRef:N,getPopperProps:P,getArrowProps:L,getArrowInnerProps:D,getReferenceProps:T}}(Vh({},E,{enabled:A||x,placement:v,direction:y})),V=F.useState(-1),B=V[0],z=V[1];pr(function(){A||z(-1)},[A]),pr(function(){if(M&&!function(e){var r=e.current;if(!r)return!1;var n=t.getActiveElement(r);return!!n&&!t.contains(r,n)&&!!t.isTabbable(n)}(P)){var e=(null==D?void 0:D.current)||P.current;e&&t.focus(e,{nextTick:!0})}},[M=(L={focusRef:_,visible:A,shouldFocus:!0}).shouldFocus&&!L.visible,P=k,D=L.focusRef]);var W=function(e){var r=e.isOpen,n=e.ref,a=F.useState(r),o=a[0],i=a[1],s=F.useState(!1),l=s[0],c=s[1];return F.useEffect(function(){l||(i(r),c(!0))},[r,l,o]),ir("animationend",function(){i(r)},function(){return n.current}),{present:!(!r&&!o),onComplete:function(){var e,r=new(t.getOwnerWindow(n.current).CustomEvent)("animationend",{bubbles:!0});null==(e=n.current)||e.dispatchEvent(r)}}}({isOpen:A,ref:k}),H=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=dr(e);return F.useMemo(function(){return r.map(function(e){return e+"-"+a})},[a,r])}(r,"menu-button","menu-list"),U=H[0],$=H[1],q=F.useCallback(function(){I(),S()},[I,S]),Y=F.useRef(new Set([]));fr(function(){Y.current.forEach(function(e){return clearTimeout(e)}),Y.current.clear()});var G=F.useCallback(function(){I(),C()},[C,I]),Z=F.useCallback(function(){I(),O()},[I,O]),X=F.useCallback(function(){var e,r,n=t.getOwnerDocument(k.current),a=null==(e=k.current)?void 0:e.contains(n.activeElement);if(A&&!a){var o=null==(r=w.item(B))?void 0:r.node;o&&t.focus(o,{selectTextIfInput:!1,preventScroll:!1})}},[A,B,w]);return{openAndFocusMenu:q,openAndFocusFirstItem:G,openAndFocusLastItem:Z,onTransitionEnd:X,unstable__animationState:W,descendants:w,popper:j,buttonId:U,menuId:$,forceUpdate:j.forceUpdate,orientation:"vertical",isOpen:A,onToggle:N,onOpen:I,onClose:T,menuRef:k,buttonRef:_,focusedIndex:B,closeOnSelect:a,closeOnBlur:i,autoSelect:l,setFocusedIndex:z,isLazy:c,lazyBehavior:g}}(Vh({},oa(e),{direction:na().direction})),o=a.descendants,i=Bh(a,eg),s=F.useMemo(function(){return i},[i]);/*#__PURE__*/
63
+ return F.createElement($h,{value:o},/*#__PURE__*/F.createElement(Xh,{value:s},/*#__PURE__*/F.createElement(ug,{value:n},t.runIfFn(r,{isOpen:s.isOpen,onClose:s.onClose,forceUpdate:s.forceUpdate}))))};t.__DEV__&&(pg.displayName="Menu");var fg=/*#__PURE__*/fa(function(e,t){var r=dg();/*#__PURE__*/
64
+ return F.createElement(ba.button,Vh({ref:t},e,{__css:Vh({display:"inline-flex",appearance:"none",alignItems:"center",outline:0},r.button)}))}),mg=/*#__PURE__*/fa(function(e,r){var n=e.as,a=function(e,r){void 0===e&&(e={}),void 0===r&&(r=null);var n=Kh(),a=n.onToggle,o=n.popper,i=n.openAndFocusFirstItem,s=n.openAndFocusLastItem,l=F.useCallback(function(e){var r=t.normalizeEventKey(e),n={Enter:i,ArrowDown:i,ArrowUp:s}[r];n&&(e.preventDefault(),e.stopPropagation(),n(e))},[i,s]);return Vh({},e,{ref:tr(n.buttonRef,r,o.referenceRef),id:n.buttonId,"data-active":t.dataAttr(n.isOpen),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:t.callAllHandlers(e.onClick,a),onKeyDown:t.callAllHandlers(e.onKeyDown,l)})}(Bh(e,tg),r);/*#__PURE__*/
65
+ return F.createElement(n||fg,Vh({},a,{className:t.cx("chakra-menu__menu-button",e.className)}),/*#__PURE__*/F.createElement(ba.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0}},e.children))});t.__DEV__&&(mg.displayName="MenuButton");var vg={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},hg=function(e){var t=xd;return"custom"in t&&"function"==typeof t.custom?t.custom(e):t(e)}(ba.div),gg=/*#__PURE__*/fa(function(e,r){var n,a,o=e.rootProps,i=Bh(e,rg),s=Kh(),l=s.isOpen,c=s.onTransitionEnd,u=s.unstable__animationState,d=function(e,r){void 0===e&&(e={}),void 0===r&&(r=null);var n=Kh();if(!n)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");var a=n.focusedIndex,o=n.setFocusedIndex,i=n.menuRef,s=n.isOpen,l=n.onClose,c=n.menuId,u=n.isLazy,d=n.lazyBehavior,p=n.unstable__animationState,f=qh(),m=function(e){void 0===e&&(e={});var t=e.timeout,r=void 0===t?300:t,n=e.preventDefault,a=void 0===n?function(){return!0}:n,o=F.useState([]),i=o[0],s=o[1],l=F.useRef(),c=function(){l.current&&(clearTimeout(l.current),l.current=null)};return F.useEffect(function(){return c},[]),function(e){return function(t){if("Backspace"===t.key){var n=[].concat(i);return n.pop(),void s(n)}if(function(e){var t=e.key;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(t)){var o=i.concat(t.key);a(t)&&(t.preventDefault(),t.stopPropagation()),s(o),e(o.join("")),c(),l.current=setTimeout(function(){s([]),l.current=null},r)}}}}({preventDefault:function(e){return" "!==e.key&&Jh(e.target)}}),v=F.useCallback(function(e){var r=t.normalizeEventKey(e),n={Tab:function(e){return e.preventDefault()},Escape:l,ArrowDown:function(){var e=f.nextEnabled(a);e&&o(e.index)},ArrowUp:function(){var e=f.prevEnabled(a);e&&o(e.index)}},i=n[r];if(i)return e.preventDefault(),void i(e);var s=m(function(e){var r=t.getNextItemFromSearch(f.values(),e,function(e){var t,r;return null!=(t=null==e||null==(r=e.node)?void 0:r.textContent)?t:""},f.item(a));if(r){var n=f.indexOf(r.node);o(n)}});Jh(e.target)&&s(e)},[f,a,m,l,o]),h=F.useRef(!1);s&&(h.current=!0);var g=t.determineLazyBehavior({hasBeenSelected:h.current,isLazy:u,lazyBehavior:d,isSelected:p.present});return Vh({},e,{ref:tr(i,r),children:g?e.children:null,tabIndex:-1,role:"menu",id:c,style:Vh({},e.style,{transformOrigin:"var(--popper-transform-origin)"}),"aria-orientation":"vertical",onKeyDown:t.callAllHandlers(e.onKeyDown,v)})}(i,r),p=function(e){void 0===e&&(e={});var t=Kh();return t.popper.getPopperProps(Vh({},e,{style:Vh({visibility:t.isOpen?"visible":"hidden"},e.style)}))}(o),f=dg();/*#__PURE__*/
66
+ return F.createElement(ba.div,Vh({},p,{__css:{zIndex:null!=(n=e.zIndex)?n:null==(a=f.list)?void 0:a.zIndex}}),/*#__PURE__*/F.createElement(hg,Vh({},d,{onUpdate:c,onAnimationComplete:t.callAll(u.onComplete,d.onAnimationComplete),className:t.cx("chakra-menu__menu-list",d.className),variants:vg,initial:!1,animate:l?"enter":"exit",__css:Vh({outline:0},f.list)})))});t.__DEV__&&(gg.displayName="MenuList");var yg=/*#__PURE__*/fa(function(e,t){var r=e.type,n=Bh(e,ng),a=dg(),o=n.as||r?null!=r?r:void 0:"button",i=F.useMemo(function(){return Vh({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0},a.item)},[a.item]);/*#__PURE__*/
67
+ return F.createElement(ba.button,Vh({ref:t,type:o},n,{__css:i}))}),bg=/*#__PURE__*/fa(function(e,r){var n=e.icon,a=e.iconSpacing,o=void 0===a?"0.75rem":a,i=e.command,s=e.commandSpacing,l=void 0===s?"0.75rem":s,c=e.children,u=Qh(Bh(e,ag),r),d=n||i?/*#__PURE__*/F.createElement("span",{style:{pointerEvents:"none",flex:1}},c):c;/*#__PURE__*/
68
+ return F.createElement(yg,Vh({},u,{className:t.cx("chakra-menu__menuitem",u.className)}),n&&/*#__PURE__*/F.createElement(Sg,{fontSize:"0.8em",marginEnd:o},n),d,i&&/*#__PURE__*/F.createElement(wg,{marginStart:l},i))});t.__DEV__&&(bg.displayName="MenuItem");var xg=function(e){/*#__PURE__*/
69
+ return F.createElement("svg",Vh({viewBox:"0 0 14 14",width:"1em",height:"1em"},e),/*#__PURE__*/F.createElement("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))},Eg=/*#__PURE__*/fa(function(e,r){var n=e.icon,a=e.iconSpacing,o=void 0===a?"0.75rem":a,i=Bh(e,og),s=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var r=e.type,n=void 0===r?"radio":r,a=e.isChecked;return Vh({},Qh(Bh(e,Wh),t),{role:"menuitem"+n,"aria-checked":a})}(i,r);/*#__PURE__*/
70
+ return F.createElement(yg,Vh({},s,{className:t.cx("chakra-menu__menuitem-option",i.className)}),null!==n&&/*#__PURE__*/F.createElement(Sg,{fontSize:"0.8em",marginEnd:o,opacity:e.isChecked?1:0},n||/*#__PURE__*/F.createElement(xg,null)),/*#__PURE__*/F.createElement("span",{style:{flex:1}},s.children))});Eg.id="MenuItemOption",t.__DEV__&&(Eg.displayName="MenuItemOption");var kg=function(e){var r=e.className,n=e.title,a=function(e){void 0===e&&(e={});var r=e.children,n=e.type,a=void 0===n?"radio":n,o=e.value,i=e.defaultValue,s=e.onChange,l=Bh(e,Hh),c=cr({defaultValue:null!=i?i:"radio"===a?"":[],value:o,onChange:s}),u=c[0],d=c[1],p=F.useCallback(function(e){if("radio"===a&&t.isString(u)&&d(e),"checkbox"===a&&t.isArray(u)){var r=u.includes(e)?t.removeItem(u,e):t.addItem(u,e);d(r)}},[u,d,a]);return Vh({},l,{children:nr(r).map(function(e){if("MenuItemOption"!==e.type.id)return e;var t="radio"===a?e.props.value===u:u.includes(e.props.value);/*#__PURE__*/
71
+ return F.cloneElement(e,{type:a,onClick:function(t){p(e.props.value),null==e.props.onClick||e.props.onClick(t)},isChecked:t})})})}(Bh(e,ig));/*#__PURE__*/
72
+ return F.createElement(_g,Vh({title:n,className:t.cx("chakra-menu__option-group",r)},a))};t.__DEV__&&(kg.displayName="MenuOptionGroup");var _g=/*#__PURE__*/fa(function(e,r){var n=e.title,a=e.children,o=e.className,i=Bh(e,sg),s=t.cx("chakra-menu__group__title",o),l=dg();/*#__PURE__*/
73
+ return F.createElement("div",{ref:r,className:"chakra-menu__group",role:"group"},n&&/*#__PURE__*/F.createElement(ba.p,Vh({className:s},i,{__css:l.groupTitle}),n),a)});t.__DEV__&&(_g.displayName="MenuGroup");var wg=/*#__PURE__*/fa(function(e,t){var r=dg();/*#__PURE__*/
74
+ return F.createElement(ba.span,Vh({ref:t},e,{__css:r.command,className:"chakra-menu__command"}))});t.__DEV__&&(wg.displayName="MenuCommand");var Sg=function(e){var r=e.className,n=e.children,a=Bh(e,lg),o=F.Children.only(n),i=/*#__PURE__*/F.isValidElement(o)?/*#__PURE__*/F.cloneElement(o,{focusable:"false","aria-hidden":!0,className:t.cx("chakra-menu__icon",o.props.className)}):null,s=t.cx("chakra-menu__icon-wrapper",r);/*#__PURE__*/
75
+ return F.createElement(ba.span,Vh({className:s},a,{__css:{flexShrink:0}}),i)};function Cg(){return Cg=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},Cg.apply(this,arguments)}function Og(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}t.__DEV__&&(Sg.displayName="MenuIcon");var Rg=function(e){/*#__PURE__*/
76
+ return F.createElement(Ad,Cg({viewBox:"0 0 24 24"},e),/*#__PURE__*/F.createElement("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"}))},Ag=function(e){/*#__PURE__*/
77
+ return F.createElement(Ad,Cg({viewBox:"0 0 24 24"},e),/*#__PURE__*/F.createElement("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"}))};function Ig(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Tg(e,r,n,a){F.useEffect(function(){if(e.current&&a){var o=t.getOwnerWindow(e.current),i=Array.isArray(r)?r:[r],s=new o.MutationObserver(function(e){for(var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Ig(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ig(e,t):void 0}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(t=r()).done;){var a=t.value;"attributes"===a.type&&a.attributeName&&i.includes(a.attributeName)&&n(a)}});return s.observe(e.current,{attributes:!0,attributeFilter:i}),function(){return s.disconnect()}}})}var Ng=["focusInputOnChange","clampValueOnBlur","keepWithinRange","min","max","step","isReadOnly","isDisabled","isRequired","isInvalid","pattern","inputMode","allowMouseWheel","id","onChange","precision","name","aria-describedby","aria-label","aria-labelledby","onFocus","onBlur","onInvalid","getAriaValueText","isValidCharacter","format","parse"],Pg=/^[Ee0-9+\-.]$/;function Lg(e){return Pg.test(e)}var Dg=["htmlProps"],Mg=aa("NumberInput"),jg=Mg[0],Vg=Mg[1],Bg=rr({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within <NumberInput />"}),Fg=Bg[0],zg=Bg[1],Wg=/*#__PURE__*/fa(function(e,r){var n=ga("NumberInput",e),a=function(e){void 0===e&&(e={});var r=e.focusInputOnChange,n=void 0===r||r,a=e.clampValueOnBlur,o=void 0===a||a,i=e.keepWithinRange,s=void 0===i||i,l=e.min,c=void 0===l?t.minSafeInteger:l,u=e.max,d=void 0===u?t.maxSafeInteger:u,p=e.step,f=void 0===p?1:p,m=e.isReadOnly,v=e.isDisabled,h=e.isRequired,g=e.isInvalid,y=e.pattern,b=void 0===y?"[0-9]*(.[0-9]+)?":y,x=e.inputMode,E=void 0===x?"decimal":x,k=e.allowMouseWheel,_=e.id,w=e.name,S=e["aria-describedby"],C=e["aria-label"],O=e["aria-labelledby"],R=e.onFocus,A=e.onBlur,I=e.onInvalid,T=e.getAriaValueText,N=e.isValidCharacter,P=e.format,L=e.parse,D=Og(e,Ng),M=or(R),j=or(A),V=or(I),B=or(null!=N?N:Lg),z=or(T),W=Ff(e),H=W.update,U=W.increment,$=W.decrement,q=sr(),Y=q[0],G=q[1],Z=!(m||v),X=F.useRef(null),K=F.useRef(null),J=F.useRef(null),Q=F.useRef(null),ee=F.useCallback(function(e){return e.split("").filter(B).join("")},[B]),te=F.useCallback(function(e){var t;return null!=(t=null==L?void 0:L(e))?t:e},[L]),re=F.useCallback(function(e){var t;return(null!=(t=null==P?void 0:P(e))?t:e).toString()},[P]);pr(function(){(W.valueAsNumber>d||W.valueAsNumber<c)&&(null==V||V("rangeOverflow",re(W.value),W.valueAsNumber))},[W.valueAsNumber,W.value,re,V]),ar(function(){if(X.current&&X.current.value!=W.value){var e=te(X.current.value);W.setValue(ee(e))}},[te,ee]);var ne=F.useCallback(function(e){void 0===e&&(e=f),Z&&U(e)},[U,Z,f]),ae=F.useCallback(function(e){void 0===e&&(e=f),Z&&$(e)},[$,Z,f]),oe=function(e,t){var r,n,a=F.useState(!1),o=a[0],i=a[1],s=F.useState(null),l=s[0],c=s[1],u=F.useState(!0),d=u[0],p=u[1],f=F.useRef(null),m=function(){return clearTimeout(f.current)};r=o?50:null,n=or(function(){"increment"===l&&e(),"decrement"===l&&t()}),F.useEffect(function(){var e=null;return null!==r&&(e=window.setInterval(function(){return n()},r)),function(){e&&window.clearInterval(e)}},[r,n]);var v=F.useCallback(function(){d&&e(),f.current=setTimeout(function(){p(!1),i(!0),c("increment")},300)},[e,d]),h=F.useCallback(function(){d&&t(),f.current=setTimeout(function(){p(!1),i(!0),c("decrement")},300)},[t,d]),g=F.useCallback(function(){p(!0),i(!1),m()},[]);return fr(m),{up:v,down:h,stop:g,isSpinning:o}}(ne,ae);Tg(J,"disabled",oe.stop,oe.isSpinning),Tg(Q,"disabled",oe.stop,oe.isSpinning);var ie=F.useCallback(function(e){if(!e.nativeEvent.isComposing){var t=te(e.currentTarget.value);H(ee(t)),K.current={start:e.currentTarget.selectionStart,end:e.currentTarget.selectionEnd}}},[H,ee,te]),se=F.useCallback(function(e){var t,r,n;null==M||M(e),K.current&&(e.target.selectionStart=null!=(t=K.current.start)?t:null==(r=e.currentTarget.value)?void 0:r.length,e.currentTarget.selectionEnd=null!=(n=K.current.end)?n:e.currentTarget.selectionStart)},[M]),le=F.useCallback(function(e){if(!e.nativeEvent.isComposing){(function(e,t){return null==e.key||!(1===e.key.length&&!(e.ctrlKey||e.altKey||e.metaKey))||t(e.key)})(e,B)||e.preventDefault();var r=ce(e)*f,n={ArrowUp:function(){return ne(r)},ArrowDown:function(){return ae(r)},Home:function(){return H(c)},End:function(){return H(d)}}[t.normalizeEventKey(e)];n&&(e.preventDefault(),n(e))}},[B,f,ne,ae,H,c,d]),ce=function(e){var t=1;return(e.metaKey||e.ctrlKey)&&(t=.1),e.shiftKey&&(t=10),t},ue=F.useMemo(function(){var e=null==z?void 0:z(W.value);return t.isNull(e)?W.value.toString()||void 0:e},[W.value,z]),de=F.useCallback(function(){var e=W.value;""!==e&&(W.valueAsNumber<c&&(e=c),W.valueAsNumber>d&&(e=d),W.cast(e))},[W,d,c]),pe=F.useCallback(function(){G.off(),o&&de()},[o,G,de]),fe=F.useCallback(function(){n&&t.focus(X.current,{nextTick:!0})},[n]),me=F.useCallback(function(e){e.preventDefault(),oe.up(),fe()},[fe,oe]),ve=F.useCallback(function(e){e.preventDefault(),oe.down(),fe()},[fe,oe]);ir("wheel",function(e){var r=t.getOwnerDocument(X.current);if(k&&r.activeElement===X.current){e.preventDefault();var n=ce(e)*f,a=Math.sign(e.deltaY);-1===a?ne(n):1===a&&ae(n)}},X.current,{passive:!1});var he=F.useCallback(function(e,r){void 0===e&&(e={}),void 0===r&&(r=null);var n=v||s&&W.isAtMax;return Cg({},e,{ref:tr(r,J),role:"button",tabIndex:-1,onPointerDown:t.callAllHandlers(e.onPointerDown,function(e){n||me(e)}),onPointerLeave:t.callAllHandlers(e.onPointerLeave,oe.stop),onPointerUp:t.callAllHandlers(e.onPointerUp,oe.stop),disabled:n,"aria-disabled":t.ariaAttr(n)})},[W.isAtMax,s,me,oe.stop,v]),ge=F.useCallback(function(e,r){void 0===e&&(e={}),void 0===r&&(r=null);var n=v||s&&W.isAtMin;return Cg({},e,{ref:tr(r,Q),role:"button",tabIndex:-1,onPointerDown:t.callAllHandlers(e.onPointerDown,function(e){n||ve(e)}),onPointerLeave:t.callAllHandlers(e.onPointerLeave,oe.stop),onPointerUp:t.callAllHandlers(e.onPointerUp,oe.stop),disabled:n,"aria-disabled":t.ariaAttr(n)})},[W.isAtMin,s,ve,oe.stop,v]),ye=F.useCallback(function(e,r){var n,a,o,i;return void 0===e&&(e={}),void 0===r&&(r=null),Cg({name:w,inputMode:E,type:"text",pattern:b,"aria-labelledby":O,"aria-label":C,"aria-describedby":S,id:_,disabled:v},e,{readOnly:null!=(n=e.readOnly)?n:m,"aria-readonly":null!=(a=e.readOnly)?a:m,"aria-required":null!=(o=e.required)?o:h,required:null!=(i=e.required)?i:h,ref:tr(X,r),value:re(W.value),role:"spinbutton","aria-valuemin":c,"aria-valuemax":d,"aria-valuenow":Number.isNaN(W.valueAsNumber)?void 0:W.valueAsNumber,"aria-invalid":t.ariaAttr(null!=g?g:W.isOutOfRange),"aria-valuetext":ue,autoComplete:"off",autoCorrect:"off",onChange:t.callAllHandlers(e.onChange,ie),onKeyDown:t.callAllHandlers(e.onKeyDown,le),onFocus:t.callAllHandlers(e.onFocus,se,G.on),onBlur:t.callAllHandlers(e.onBlur,j,pe)})},[w,E,b,O,C,re,S,_,v,h,m,g,W.value,W.valueAsNumber,W.isOutOfRange,c,d,ue,ie,le,se,G.on,j,pe]);return{value:re(W.value),valueAsNumber:W.valueAsNumber,isFocused:Y,isDisabled:v,isReadOnly:m,getIncrementButtonProps:he,getDecrementButtonProps:ge,getInputProps:ye,htmlProps:D}}(rf(oa(e))),o=a.htmlProps,i=Og(a,Dg),s=F.useMemo(function(){return i},[i]);/*#__PURE__*/
78
+ return F.createElement(Fg,{value:s},/*#__PURE__*/F.createElement(jg,{value:n},/*#__PURE__*/F.createElement(ba.div,Cg({},o,{ref:r,className:t.cx("chakra-numberinput",e.className),__css:Cg({position:"relative",zIndex:0},n.root)}))))});t.__DEV__&&(Wg.displayName="NumberInput");var Hg=/*#__PURE__*/fa(function(e,t){var r=Vg();/*#__PURE__*/
79
+ return F.createElement(ba.div,Cg({"aria-hidden":!0,ref:t},e,{__css:Cg({display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1},r.stepperGroup)}))});t.__DEV__&&(Hg.displayName="NumberInputStepper");var Ug=/*#__PURE__*/fa(function(e,r){var n=(0,zg().getInputProps)(e,r),a=Vg();/*#__PURE__*/
80
+ return F.createElement(ba.input,Cg({},n,{className:t.cx("chakra-numberinput__field",e.className),__css:Cg({width:"100%"},a.field)}))});t.__DEV__&&(Ug.displayName="NumberInputField");var $g=ba("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),qg=/*#__PURE__*/fa(function(e,t){var r,n=Vg(),a=(0,zg().getDecrementButtonProps)(e,t);/*#__PURE__*/
81
+ return F.createElement($g,Cg({},a,{__css:n.stepper}),null!=(r=e.children)?r:/*#__PURE__*/F.createElement(Rg,null))});t.__DEV__&&(qg.displayName="NumberDecrementStepper");var Yg=/*#__PURE__*/fa(function(e,t){var r,n=(0,zg().getIncrementButtonProps)(e,t),a=Vg();/*#__PURE__*/
82
+ return F.createElement($g,Cg({},n,{__css:a.stepper}),null!=(r=e.children)?r:/*#__PURE__*/F.createElement(Ag,null))});function Gg(){return Gg=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},Gg.apply(this,arguments)}function Zg(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}t.__DEV__&&(Yg.displayName="NumberIncrementStepper");var Xg=["index"],Kg=gp(),Jg=Kg[0],Qg=Kg[2],ey=Kg[3],ty=rr({name:"PinInputContext",errorMessage:"usePinInputContext: `context` is undefined. Seems you forgot to all pin input fields within `<PinInput />`"}),ry=ty[0],ny=ty[1],ay=function(e){return null==e?void 0:e.split("")};function oy(e,t){return("alphanumeric"===t?/^[a-zA-Z0-9]+$/i:/^[0-9]+$/).test(e)}var iy=["children"],sy=["descendants"],ly=function(e){var r=ha("PinInput",e),n=oa(e),a=n.children,o=function(e){void 0===e&&(e={});var r=e.autoFocus,n=e.value,a=e.defaultValue,o=e.onChange,i=e.onComplete,s=e.placeholder,l=void 0===s?"○":s,c=e.manageFocus,u=void 0===c||c,d=e.otp,p=void 0!==d&&d,f=e.id,m=e.isDisabled,v=e.isInvalid,h=e.type,g=void 0===h?"number":h,y=e.mask,b=dr(),x=null!=f?f:"pin-input-"+b,E=Qg(),k=F.useState(!0),_=k[0],w=k[1],S=F.useState(-1),C=S[0],O=S[1],R=cr({defaultValue:ay(a)||[],value:ay(n),onChange:function(e){return null==o?void 0:o(e.join(""))}}),A=R[0],I=R[1];F.useEffect(function(){if(r){var e=E.first();e&&t.focus(e.node,{nextTick:!0})}},[E]);var T=F.useCallback(function(e){if(_&&u){var r=E.next(e,!1);r&&t.focus(r.node,{nextTick:!0})}},[E,_,u]),N=F.useCallback(function(e,t){var r=[].concat(A);r[t]=e,I(r),""!==e&&r.length===E.count()&&r.every(function(e){return null!=e&&""!==e})?null==i||i(r.join("")):T(t)},[A,I,T,i,E]),P=F.useCallback(function(){var e=Array(E.count()).fill("");I(e);var r=E.first();r&&t.focus(r.node)},[E,I]),L=F.useCallback(function(e,t){var r=t;return(null==e?void 0:e.length)>0&&(e[0]===t.charAt(0)?r=t.charAt(1):e[0]===t.charAt(1)&&(r=t.charAt(0))),r},[]),D=F.useCallback(function(e){var r=e.index,n=Zg(e,Xg),a=C===r;return Gg({"aria-label":"Please enter your pin code",inputMode:"number"===g?"numeric":"text",type:y?"password":"number"===g?"tel":"text"},n,{id:x+"-"+r,disabled:m,"aria-invalid":t.ariaAttr(v),onChange:t.callAllHandlers(n.onChange,function(e){var t=e.target.value,n=L(A[r],t);if(""!==n)if(t.length>2){if(oy(t,g)){var a=t.split("").filter(function(e,t){return t<E.count()});I(a),a.length===E.count()&&(null==i||i(a.join("")))}}else oy(n,g)&&N(n,r),w(!0);else N("",r)}),onKeyDown:t.callAllHandlers(n.onKeyDown,function(e){if("Backspace"===e.key&&u)if(""===e.target.value){var n=E.prev(r,!1);n&&(N("",r-1),t.focus(n.node),w(!0))}else w(!1)}),onFocus:t.callAllHandlers(n.onFocus,function(){O(r)}),onBlur:t.callAllHandlers(n.onBlur,function(){O(-1)}),value:A[r]||"",autoComplete:p?"one-time-code":"off",placeholder:a?"":l})},[E,C,L,x,m,y,v,u,i,p,l,N,I,g,A]);return{getInputProps:D,id:x,descendants:E,values:A,setValue:N,setValues:I,clear:P}}(Zg(n,iy)),i=o.descendants,s=Zg(o,sy),l=nr(a).map(function(e){/*#__PURE__*/
83
+ return F.cloneElement(e,{__css:r})});/*#__PURE__*/
84
+ return F.createElement(Jg,{value:i},/*#__PURE__*/F.createElement(ry,{value:s},l))};t.__DEV__&&(ly.displayName="PinInput");var cy=/*#__PURE__*/fa(function(e,r){var n=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var r=ny().getInputProps,n=ey(),a=n.index;return r(Gg({},e,{ref:tr(n.register,t),index:a}))}(e,r);/*#__PURE__*/
85
+ return F.createElement(ba.input,Gg({},n,{className:t.cx("chakra-pin-input",e.className)}))});function uy(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}function dy(){return dy=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},dy.apply(this,arguments)}t.__DEV__&&(cy.displayName="PinInputField");var py=["onChange","value","defaultValue","name","isDisabled","isFocusable","isNative"],fy=["colorScheme","size","variant","children","className","isDisabled","isFocusable"],my=rr({name:"RadioGroupContext",strict:!1}),vy=my[0],hy=my[1],gy=/*#__PURE__*/fa(function(e,r){var n=e.colorScheme,a=e.size,o=e.variant,i=e.children,s=e.className,l=e.isDisabled,c=e.isFocusable,u=function(e){void 0===e&&(e={});var r=e.onChange,n=e.value,a=e.defaultValue,o=e.name,i=e.isDisabled,s=e.isFocusable,l=e.isNative,c=uy(e,py),u=F.useState(a||""),d=u[1],p=lr(n,u[0]),f=p[0],m=p[1],v=F.useRef(null),h=F.useCallback(function(){var e=v.current;if(e){var t="input:not(:disabled):checked",r=e.querySelector(t);if(r)r.focus();else{var n=e.querySelector(t="input:not(:disabled)");null==n||n.focus()}}},[]),g=dr(void 0,"radio"),y=o||g,b=F.useCallback(function(e){var n=t.isInputEvent(e)?e.target.value:e;f||d(n),null==r||r(String(n))},[r,f]),x=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),dy({},e,{ref:tr(t,v),role:"radiogroup"})},[]),E=F.useCallback(function(e,t){var r;return void 0===e&&(e={}),void 0===t&&(t=null),dy({},e,((r={ref:t,name:y})[l?"checked":"isChecked"]=null!=m?e.value===m:void 0,r.onChange=b,r["data-radiogroup"]=!0,r))},[l,y,b,m]);return{getRootProps:x,getRadioProps:E,name:y,ref:v,focus:h,setValue:d,value:m,onChange:b,isDisabled:i,isFocusable:s,htmlProps:c}}(uy(e,fy)),d=u.value,p=u.onChange,f=u.getRootProps,m=u.name,v=u.htmlProps,h=F.useMemo(function(){return{name:m,size:a,onChange:p,colorScheme:n,value:d,variant:o,isDisabled:l,isFocusable:c}},[m,a,p,n,d,o,l,c]),g=f(v,r),y=t.cx("chakra-radio-group",s);/*#__PURE__*/
86
+ return F.createElement(vy,{value:h},/*#__PURE__*/F.createElement(ba.div,dy({},g,{className:y}),i))});t.__DEV__&&(gy.displayName="RadioGroup");var yy=["defaultChecked","isChecked","isFocusable","isDisabled","isReadOnly","isRequired","onChange","isInvalid","name","value","id","data-radiogroup","aria-describedby"];function by(e){e.preventDefault(),e.stopPropagation()}var xy=["spacing","children","isDisabled","isFocusable","inputProps"],Ey=/*#__PURE__*/fa(function(e,r){var n,a=hy(),o=e.onChange,i=e.value,s=ga("Radio",dy({},a,e)),l=oa(e),c=l.spacing,u=void 0===c?"0.5rem":c,d=l.children,p=l.isDisabled,f=void 0===p?null==a?void 0:a.isDisabled:p,m=l.isFocusable,v=void 0===m?null==a?void 0:a.isFocusable:m,h=l.inputProps,g=uy(l,xy),y=e.isChecked;null!=(null==a?void 0:a.value)&&null!=i&&(y=a.value===i);var b=o;null!=a&&a.onChange&&null!=i&&(b=t.callAll(a.onChange,o));var x=function(e){void 0===e&&(e={});var r=e.defaultChecked,n=e.isChecked,a=e.isFocusable,o=e.isDisabled,i=e.isReadOnly,s=e.isRequired,l=e.onChange,c=e.isInvalid,u=e.name,d=e.value,p=e.id,f=e["data-radiogroup"],m=e["aria-describedby"],v=uy(e,yy),h=dr(void 0,"radio"),g=Xp(),y=hy(),b=!g||y||f?h:g.id;b=null!=p?p:b;var x=null!=o?o:null==g?void 0:g.isDisabled,E=null!=i?i:null==g?void 0:g.isReadOnly,k=null!=s?s:null==g?void 0:g.isRequired,_=null!=c?c:null==g?void 0:g.isInvalid,w=sr(),S=w[0],C=w[1],O=sr(),R=O[0],A=O[1],I=sr(),T=I[0],N=I[1],P=F.useState(Boolean(r)),L=P[1],D=lr(n,P[0]),M=D[0],j=D[1],V=F.useCallback(function(e){E||x?e.preventDefault():(M||L(e.target.checked),null==l||l(e))},[M,x,E,l]),B=F.useCallback(function(e){" "===e.key&&N.on()},[N]),z=F.useCallback(function(e){" "===e.key&&N.off()},[N]),W=F.useCallback(function(e,r){return void 0===e&&(e={}),void 0===r&&(r=null),dy({},e,{ref:r,"data-active":t.dataAttr(T),"data-hover":t.dataAttr(R),"data-disabled":t.dataAttr(x),"data-invalid":t.dataAttr(_),"data-checked":t.dataAttr(j),"data-focus":t.dataAttr(S),"data-readonly":t.dataAttr(E),"aria-hidden":!0,onMouseDown:t.callAllHandlers(e.onMouseDown,N.on),onMouseUp:t.callAllHandlers(e.onMouseUp,N.off),onMouseEnter:t.callAllHandlers(e.onMouseEnter,A.on),onMouseLeave:t.callAllHandlers(e.onMouseLeave,A.off)})},[T,R,x,_,j,S,E,N.on,N.off,A.on,A.off]),H=null!=g?g:{},U=H.onFocus,$=H.onBlur,q=F.useCallback(function(e,r){void 0===e&&(e={}),void 0===r&&(r=null);var n=x&&!a;return dy({},e,{id:b,ref:r,type:"radio",name:u,value:d,onChange:t.callAllHandlers(e.onChange,V),onBlur:t.callAllHandlers($,e.onBlur,C.off),onFocus:t.callAllHandlers(U,e.onFocus,C.on),onKeyDown:t.callAllHandlers(e.onKeyDown,B),onKeyUp:t.callAllHandlers(e.onKeyUp,z),checked:j,disabled:n,readOnly:E,required:k,"aria-invalid":t.ariaAttr(_),"aria-disabled":t.ariaAttr(n),"aria-required":t.ariaAttr(k),"data-readonly":t.dataAttr(E),"aria-describedby":m,style:yp})},[x,a,b,u,d,V,$,C,U,B,z,j,E,k,_,m]);return{state:{isInvalid:_,isFocused:S,isChecked:j,isActive:T,isHovered:R,isDisabled:x,isReadOnly:E,isRequired:k},getCheckboxProps:W,getInputProps:q,getLabelProps:function(e,r){return void 0===e&&(e={}),void 0===r&&(r=null),dy({},e,{ref:r,onMouseDown:t.callAllHandlers(e.onMouseDown,by),onTouchStart:t.callAllHandlers(e.onTouchStart,by),"data-disabled":t.dataAttr(x),"data-checked":t.dataAttr(j),"data-invalid":t.dataAttr(_)})},getRootProps:function(e,r){return void 0===r&&(r=null),dy({},e,{ref:r,"data-disabled":t.dataAttr(x),"data-checked":t.dataAttr(j),"data-invalid":t.dataAttr(_)})},htmlProps:v}}(dy({},g,{isChecked:y,isFocusable:v,isDisabled:f,onChange:b,name:null!=(n=null==e?void 0:e.name)?n:null==a?void 0:a.name})),E=x.getInputProps,k=x.getCheckboxProps,_=x.getLabelProps,w=x.getRootProps,S=t.split(x.htmlProps,Kn),C=S[0],O=k(S[1]),R=E(h,r),A=_(),I=Object.assign({},C,w()),T=dy({display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative"},s.container),N=dy({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},s.control),P=dy({userSelect:"none",marginStart:u},s.label);/*#__PURE__*/
87
+ return F.createElement(ba.label,dy({className:"chakra-radio"},I,{__css:T}),/*#__PURE__*/F.createElement("input",dy({className:"chakra-radio__input"},R)),/*#__PURE__*/F.createElement(ba.span,dy({className:"chakra-radio__control"},O,{__css:N})),d&&/*#__PURE__*/F.createElement(ba.span,dy({className:"chakra-radio__label"},A,{__css:P}),d))});function ky(){return ky=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},ky.apply(this,arguments)}function _y(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}t.__DEV__&&(Ey.displayName="Radio");var wy=["children","placeholder","className"],Sy=["rootProps","placeholder","icon","color","height","h","minH","minHeight","iconColor","iconSize"],Cy=["children"],Oy=/*#__PURE__*/fa(function(e,r){var n=e.children,a=e.placeholder,o=e.className,i=_y(e,wy);/*#__PURE__*/
88
+ return F.createElement(ba.select,ky({},i,{ref:r,className:t.cx("chakra-select",o)}),a&&/*#__PURE__*/F.createElement("option",{value:""},a),n)});t.__DEV__&&(Oy.displayName="SelectField");var Ry=/*#__PURE__*/fa(function(e,r){var n=ga("Select",e),a=oa(e),o=a.rootProps,i=a.placeholder,s=a.icon,l=a.color,c=a.height,u=a.h,d=a.minH,p=a.minHeight,f=a.iconColor,m=a.iconSize,v=_y(a,Sy),h=t.split(v,Kn),g=h[0],y=tf(h[1]),b={width:"100%",height:"fit-content",position:"relative",color:l},x=t.mergeWith({paddingEnd:"2rem"},n.field,{_focus:{zIndex:"unset"}});/*#__PURE__*/
89
+ return F.createElement(ba.div,ky({className:"chakra-select__wrapper",__css:b},g,o),/*#__PURE__*/F.createElement(Oy,ky({ref:r,height:null!=u?u:c,minH:null!=d?d:p,placeholder:i},y,{__css:x}),e.children),/*#__PURE__*/F.createElement(Ty,ky({"data-disabled":t.dataAttr(y.disabled)},(f||l)&&{color:f||l},{__css:n.icon},m&&{fontSize:m}),s))});t.__DEV__&&(Ry.displayName="Select");var Ay=function(e){/*#__PURE__*/
90
+ return F.createElement("svg",ky({viewBox:"0 0 24 24"},e),/*#__PURE__*/F.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}))},Iy=ba("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),Ty=function(e){var t=e.children,r=void 0===t?/*#__PURE__*/F.createElement(Ay,null):t,n=_y(e,Cy),a=/*#__PURE__*/F.cloneElement(r,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});/*#__PURE__*/
91
+ return F.createElement(Iy,ky({},n,{className:"chakra-select__icon-wrapper"}),/*#__PURE__*/F.isValidElement(r)?a:null)};function Ny(){return Ny=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},Ny.apply(this,arguments)}t.__DEV__&&(Ty.displayName="SelectIcon");var Py=["spacing","children"],Ly=/*#__PURE__*/fa(function(e,r){var n=ga("Switch",e),a=oa(e),o=a.spacing,i=void 0===o?"0.5rem":o,s=a.children,l=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}(a,Py),c=Lf(l),u=c.state,d=c.getInputProps,p=c.getCheckboxProps,f=c.getRootProps,m=c.getLabelProps,v=F.useMemo(function(){return Ny({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0},n.container)},[n.container]),h=F.useMemo(function(){return Ny({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer"},n.track)},[n.track]),g=F.useMemo(function(){return Ny({userSelect:"none",marginStart:i},n.label)},[i,n.label]);/*#__PURE__*/
92
+ return F.createElement(ba.label,Ny({},f(),{className:t.cx("chakra-switch",e.className),__css:v}),/*#__PURE__*/F.createElement("input",Ny({className:"chakra-switch__input"},d({},r))),/*#__PURE__*/F.createElement(ba.span,Ny({},p(),{className:"chakra-switch__track",__css:h}),/*#__PURE__*/F.createElement(ba.span,{__css:n.thumb,className:"chakra-switch__thumb","data-checked":t.dataAttr(u.isChecked),"data-hover":t.dataAttr(u.isHovered)})),s&&/*#__PURE__*/F.createElement(ba.span,Ny({className:"chakra-switch__label"},m(),{__css:g}),s))});function Dy(){return Dy=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},Dy.apply(this,arguments)}t.__DEV__&&(Ly.displayName="Switch");var My=["className","rows"],jy=["h","minH","height","minHeight"],Vy=/*#__PURE__*/fa(function(e,r){var n=ha("Textarea",e),a=oa(e),o=a.className,i=a.rows,s=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}(a,My),l=tf(s),c=i?t.omit(n,jy):n;/*#__PURE__*/
93
+ return F.createElement(ba.textarea,Dy({ref:r,rows:i},l,{className:t.cx("chakra-textarea",o),__css:c}))});function By(){return By=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},By.apply(this,arguments)}t.__DEV__&&(Vy.displayName="Textarea");var Fy=["hideStepper","incrementIcon","decrementIcon"],zy=fa(function(e,t){var r=e.hideStepper,n=e.incrementIcon,a=e.decrementIcon,o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}(e,Fy);return F.createElement(Wg,By({},o,{ref:t}),/*#__PURE__*/F.createElement(Ug,null),!r&&/*#__PURE__*/F.createElement(Hg,null,/*#__PURE__*/F.createElement(Yg,{children:n}),/*#__PURE__*/F.createElement(qg,{children:a})))});zy.defaultProps={hideStepper:!1},t.__DEV__&&(zy.displayName="NumberInput");var Wy=/*#__PURE__*/F.createContext({});function Hy(){return Hy=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},Hy.apply(this,arguments)}t.__DEV__&&(Wy.displayName="ColorModeContext");var Uy,$y,qy=function(e){return t.isString(e)?e.replace(/!(important)?$/,"").trim():e};function Yy(e){var r=e.scale,n=e.transform,a=e.compose;return function(e,o){var i,s=function(e,r){return function(n){var a=String(r),o=function(e){return/!(important)?$/.test(e)}(a),i=qy(a),s=e?e+"."+i:i,l=t.isObject(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:r;return l=qy(l),o?l+" !important":l}}(r,e)(o),l=null!=(i=null==n?void 0:n(s,o))?i:s;return a&&(l=a(l,o)),l}}function Gy(e,t){return function(r){var n={property:r,scale:e};return n.transform=Yy({scale:e,transform:t}),n}}var Zy=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"],Xy={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},Ky={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"},Jy={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Qy=((Uy={})["& > :not(style) ~ :not(style)"]={marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"},Uy),eb=(($y={})["& > :not(style) ~ :not(style)"]={marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"},$y);function tb(e,t){return tb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tb(e,t)}function rb(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tb(e,t)}function nb(){nb=function(e,t){return new r(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function r(e,n,a){var o=new RegExp(e,n);return t.set(o,a||t.get(e)),tb(o,r.prototype)}function n(e,r){var n=t.get(r);return Object.keys(n).reduce(function(t,r){return t[r]=e[n[r]],t},Object.create(null))}return rb(r,RegExp),r.prototype.exec=function(t){var r=e.exec.call(this,t);return r&&(r.groups=n(r,this)),r},r.prototype[Symbol.replace]=function(r,a){if("string"==typeof a){var o=t.get(this);return e[Symbol.replace].call(this,r,a.replace(/\$<([^>]+)>/g,function(e,t){return"$"+o[t]}))}if("function"==typeof a){var i=this;return e[Symbol.replace].call(this,r,function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(n(e,i)),a.apply(this,e)})}return e[Symbol.replace].call(this,r,a)},nb.apply(this,arguments)}var ab={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},ob=new Set(Object.values(ab)),ib=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),sb=function(e){return e.trim()},lb=function(e){return t.isString(e)&&e.includes("(")&&e.includes(")")},cb=function(e){return function(t){return e+"("+t+")"}},ub={filter:function(e){return"auto"!==e?e:Xy},backdropFilter:function(e){return"auto"!==e?e:Ky},ring:function(e){return function(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}(ub.px(e))},bgClip:function(e){return"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform:function(e){return"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))"].concat(Zy).join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)"].concat(Zy).join(" "):e},px:function(e){if(null==e)return e;var r=function(e){var t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}(e);return r.unitless||t.isNumber(e)?e+"px":e},fraction:function(e){return!t.isNumber(e)||e>1?e:100*e+"%"},float:function(e,t){return"rtl"===t.direction?{left:"right",right:"left"}[e]:e},degree:function(e){if(t.isCssVar(e)||null==e)return e;var r=t.isString(e)&&!e.endsWith("deg");return t.isNumber(e)||r?e+"deg":e},gradient:function(e,t){return function(e,t){var r,n;if(null==e||ib.has(e))return e;var a=null!=(r=null==(n=/*#__PURE__*/nb(/(^[a-z-A-Z]+)\(((.*))\)/g,{type:1,values:2}).exec(e))?void 0:n.groups)?r:{},o=a.type,i=a.values;if(!o||!i)return e;var s=o.includes("-gradient")?o:o+"-gradient",l=i.split(",").map(sb).filter(Boolean),c=l[0],u=l.slice(1);if(0===(null==u?void 0:u.length))return e;u.unshift(c in ab?ab[c]:c);var d=u.map(function(e){if(ob.has(e))return e;var r=e.indexOf(" "),n=-1!==r?[e.substr(0,r),e.substr(r+1)]:[e],a=n[0],o=n[1],i=lb(o)?o:o&&o.split(" "),s="colors."+a,l=s in t.__cssMap?t.__cssMap[s].varRef:a;return i?[l].concat(Array.isArray(i)?i:[i]).join(" "):l});return s+"("+d.join(", ")+")"}(e,null!=t?t:{})},blur:cb("blur"),opacity:cb("opacity"),brightness:cb("brightness"),contrast:cb("contrast"),dropShadow:cb("drop-shadow"),grayscale:cb("grayscale"),hueRotate:cb("hue-rotate"),invert:cb("invert"),saturate:cb("saturate"),sepia:cb("sepia"),bgImage:function(e){return null==e||lb(e)||ib.has(e)?e:"url("+e+")"},outline:function(e){var t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection:function(e){var t,r=null!=(t=Jy[e])?t:{},n=r.space,a=r.divide,o={flexDirection:e};return n&&(o[n]=1),a&&(o[a]=1),o}},db={borderWidths:Gy("borderWidths"),borderStyles:Gy("borderStyles"),colors:Gy("colors"),borders:Gy("borders"),radii:Gy("radii",ub.px),space:Gy("space",ub.px),spaceT:Gy("space",ub.px),degreeT:function(e){return{property:e,transform:ub.degree}},prop:function(e,t,r){return Hy({property:e,scale:t},t&&{transform:Yy({scale:t,transform:r})})},propT:function(e,t){return{property:e,transform:t}},sizes:Gy("sizes",ub.px),sizesT:Gy("sizes",ub.fraction),shadows:Gy("shadows"),logical:function(e){var t,r,n,a=e.scale,o=e.transform;return{scale:a,property:(t=e.property,r=t.rtl,n=t.ltr,function(e){return"rtl"===e.direction?r:n}),transform:a?Yy({scale:a,compose:o}):o}},blur:Gy("blur",ub.blur)},pb={background:db.colors("background"),backgroundColor:db.colors("backgroundColor"),backgroundImage:db.propT("backgroundImage",ub.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:ub.bgClip},bgSize:db.prop("backgroundSize"),bgPosition:db.prop("backgroundPosition"),bg:db.colors("background"),bgColor:db.colors("backgroundColor"),bgPos:db.prop("backgroundPosition"),bgRepeat:db.prop("backgroundRepeat"),bgAttachment:db.prop("backgroundAttachment"),bgGradient:db.propT("backgroundImage",ub.gradient),bgClip:{transform:ub.bgClip}};Object.assign(pb,{bgImage:pb.backgroundImage,bgImg:pb.backgroundImage});var fb={border:db.borders("border"),borderWidth:db.borderWidths("borderWidth"),borderStyle:db.borderStyles("borderStyle"),borderColor:db.colors("borderColor"),borderRadius:db.radii("borderRadius"),borderTop:db.borders("borderTop"),borderBlockStart:db.borders("borderBlockStart"),borderTopLeftRadius:db.radii("borderTopLeftRadius"),borderStartStartRadius:db.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:db.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:db.radii("borderTopRightRadius"),borderStartEndRadius:db.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:db.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:db.borders("borderRight"),borderInlineEnd:db.borders("borderInlineEnd"),borderBottom:db.borders("borderBottom"),borderBlockEnd:db.borders("borderBlockEnd"),borderBottomLeftRadius:db.radii("borderBottomLeftRadius"),borderBottomRightRadius:db.radii("borderBottomRightRadius"),borderLeft:db.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:db.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:db.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:db.borders(["borderLeft","borderRight"]),borderInline:db.borders("borderInline"),borderY:db.borders(["borderTop","borderBottom"]),borderBlock:db.borders("borderBlock"),borderTopWidth:db.borderWidths("borderTopWidth"),borderBlockStartWidth:db.borderWidths("borderBlockStartWidth"),borderTopColor:db.colors("borderTopColor"),borderBlockStartColor:db.colors("borderBlockStartColor"),borderTopStyle:db.borderStyles("borderTopStyle"),borderBlockStartStyle:db.borderStyles("borderBlockStartStyle"),borderBottomWidth:db.borderWidths("borderBottomWidth"),borderBlockEndWidth:db.borderWidths("borderBlockEndWidth"),borderBottomColor:db.colors("borderBottomColor"),borderBlockEndColor:db.colors("borderBlockEndColor"),borderBottomStyle:db.borderStyles("borderBottomStyle"),borderBlockEndStyle:db.borderStyles("borderBlockEndStyle"),borderLeftWidth:db.borderWidths("borderLeftWidth"),borderInlineStartWidth:db.borderWidths("borderInlineStartWidth"),borderLeftColor:db.colors("borderLeftColor"),borderInlineStartColor:db.colors("borderInlineStartColor"),borderLeftStyle:db.borderStyles("borderLeftStyle"),borderInlineStartStyle:db.borderStyles("borderInlineStartStyle"),borderRightWidth:db.borderWidths("borderRightWidth"),borderInlineEndWidth:db.borderWidths("borderInlineEndWidth"),borderRightColor:db.colors("borderRightColor"),borderInlineEndColor:db.colors("borderInlineEndColor"),borderRightStyle:db.borderStyles("borderRightStyle"),borderInlineEndStyle:db.borderStyles("borderInlineEndStyle"),borderTopRadius:db.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:db.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:db.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:db.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(fb,{rounded:fb.borderRadius,roundedTop:fb.borderTopRadius,roundedTopLeft:fb.borderTopLeftRadius,roundedTopRight:fb.borderTopRightRadius,roundedTopStart:fb.borderStartStartRadius,roundedTopEnd:fb.borderStartEndRadius,roundedBottom:fb.borderBottomRadius,roundedBottomLeft:fb.borderBottomLeftRadius,roundedBottomRight:fb.borderBottomRightRadius,roundedBottomStart:fb.borderEndStartRadius,roundedBottomEnd:fb.borderEndEndRadius,roundedLeft:fb.borderLeftRadius,roundedRight:fb.borderRightRadius,roundedStart:fb.borderInlineStartRadius,roundedEnd:fb.borderInlineEndRadius,borderStart:fb.borderInlineStart,borderEnd:fb.borderInlineEnd,borderTopStartRadius:fb.borderStartStartRadius,borderTopEndRadius:fb.borderStartEndRadius,borderBottomStartRadius:fb.borderEndStartRadius,borderBottomEndRadius:fb.borderEndEndRadius,borderStartRadius:fb.borderInlineStartRadius,borderEndRadius:fb.borderInlineEndRadius,borderStartWidth:fb.borderInlineStartWidth,borderEndWidth:fb.borderInlineEndWidth,borderStartColor:fb.borderInlineStartColor,borderEndColor:fb.borderInlineEndColor,borderStartStyle:fb.borderInlineStartStyle,borderEndStyle:fb.borderInlineEndStyle});var mb={color:db.colors("color"),textColor:db.colors("color"),fill:db.colors("fill"),stroke:db.colors("stroke")},vb={boxShadow:db.shadows("boxShadow"),mixBlendMode:!0,blendMode:db.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:db.prop("backgroundBlendMode"),opacity:!0};Object.assign(vb,{shadow:vb.boxShadow});var hb={filter:{transform:ub.filter},blur:db.blur("--chakra-blur"),brightness:db.propT("--chakra-brightness",ub.brightness),contrast:db.propT("--chakra-contrast",ub.contrast),hueRotate:db.degreeT("--chakra-hue-rotate"),invert:db.propT("--chakra-invert",ub.invert),saturate:db.propT("--chakra-saturate",ub.saturate),dropShadow:db.propT("--chakra-drop-shadow",ub.dropShadow),backdropFilter:{transform:ub.backdropFilter},backdropBlur:db.blur("--chakra-backdrop-blur"),backdropBrightness:db.propT("--chakra-backdrop-brightness",ub.brightness),backdropContrast:db.propT("--chakra-backdrop-contrast",ub.contrast),backdropHueRotate:db.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:db.propT("--chakra-backdrop-invert",ub.invert),backdropSaturate:db.propT("--chakra-backdrop-saturate",ub.saturate)},gb={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:ub.flexDirection},experimental_spaceX:{static:Qy,transform:Yy({scale:"space",transform:function(e){return null!==e?{"--chakra-space-x":e}:null}})},experimental_spaceY:{static:eb,transform:Yy({scale:"space",transform:function(e){return null!=e?{"--chakra-space-y":e}:null}})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:db.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:db.space("gap"),rowGap:db.space("rowGap"),columnGap:db.space("columnGap")};Object.assign(gb,{flexDir:gb.flexDirection});var yb={gridGap:db.space("gridGap"),gridColumnGap:db.space("gridColumnGap"),gridRowGap:db.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},bb={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:ub.outline},outlineOffset:!0,outlineColor:db.colors("outlineColor")},xb={width:db.sizesT("width"),inlineSize:db.sizesT("inlineSize"),height:db.sizes("height"),blockSize:db.sizes("blockSize"),boxSize:db.sizes(["width","height"]),minWidth:db.sizes("minWidth"),minInlineSize:db.sizes("minInlineSize"),minHeight:db.sizes("minHeight"),minBlockSize:db.sizes("minBlockSize"),maxWidth:db.sizes("maxWidth"),maxInlineSize:db.sizes("maxInlineSize"),maxHeight:db.sizes("maxHeight"),maxBlockSize:db.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:db.propT("float",ub.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(xb,{w:xb.width,h:xb.height,minW:xb.minWidth,maxW:xb.maxWidth,minH:xb.minHeight,maxH:xb.maxHeight,overscroll:xb.overscrollBehavior,overscrollX:xb.overscrollBehaviorX,overscrollY:xb.overscrollBehaviorY});var Eb={listStyleType:!0,listStylePosition:!0,listStylePos:db.prop("listStylePosition"),listStyleImage:!0,listStyleImg:db.prop("listStyleImage")},kb={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},_b={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},wb=function(e,r,n){var a={},o=t.memoizedGet(e,r,{});for(var i in o)i in n&&null!=n[i]||(a[i]=o[i]);return a},Sb={srOnly:{transform:function(e){return!0===e?kb:"focusable"===e?_b:{}}},layerStyle:{processResult:!0,transform:function(e,t,r){return wb(t,"layerStyles."+e,r)}},textStyle:{processResult:!0,transform:function(e,t,r){return wb(t,"textStyles."+e,r)}},apply:{processResult:!0,transform:function(e,t,r){return wb(t,e,r)}}},Cb={position:!0,pos:db.prop("position"),zIndex:db.prop("zIndex","zIndices"),inset:db.spaceT("inset"),insetX:db.spaceT(["left","right"]),insetInline:db.spaceT("insetInline"),insetY:db.spaceT(["top","bottom"]),insetBlock:db.spaceT("insetBlock"),top:db.spaceT("top"),insetBlockStart:db.spaceT("insetBlockStart"),bottom:db.spaceT("bottom"),insetBlockEnd:db.spaceT("insetBlockEnd"),left:db.spaceT("left"),insetInlineStart:db.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:db.spaceT("right"),insetInlineEnd:db.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Cb,{insetStart:Cb.insetInlineStart,insetEnd:Cb.insetInlineEnd});var Ob={ring:{transform:ub.ring},ringColor:db.colors("--chakra-ring-color"),ringOffset:db.prop("--chakra-ring-offset-width"),ringOffsetColor:db.colors("--chakra-ring-offset-color"),ringInset:db.prop("--chakra-ring-inset")},Rb={margin:db.spaceT("margin"),marginTop:db.spaceT("marginTop"),marginBlockStart:db.spaceT("marginBlockStart"),marginRight:db.spaceT("marginRight"),marginInlineEnd:db.spaceT("marginInlineEnd"),marginBottom:db.spaceT("marginBottom"),marginBlockEnd:db.spaceT("marginBlockEnd"),marginLeft:db.spaceT("marginLeft"),marginInlineStart:db.spaceT("marginInlineStart"),marginX:db.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:db.spaceT("marginInline"),marginY:db.spaceT(["marginTop","marginBottom"]),marginBlock:db.spaceT("marginBlock"),padding:db.space("padding"),paddingTop:db.space("paddingTop"),paddingBlockStart:db.space("paddingBlockStart"),paddingRight:db.space("paddingRight"),paddingBottom:db.space("paddingBottom"),paddingBlockEnd:db.space("paddingBlockEnd"),paddingLeft:db.space("paddingLeft"),paddingInlineStart:db.space("paddingInlineStart"),paddingInlineEnd:db.space("paddingInlineEnd"),paddingX:db.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:db.space("paddingInline"),paddingY:db.space(["paddingTop","paddingBottom"]),paddingBlock:db.space("paddingBlock")};Object.assign(Rb,{m:Rb.margin,mt:Rb.marginTop,mr:Rb.marginRight,me:Rb.marginInlineEnd,marginEnd:Rb.marginInlineEnd,mb:Rb.marginBottom,ml:Rb.marginLeft,ms:Rb.marginInlineStart,marginStart:Rb.marginInlineStart,mx:Rb.marginX,my:Rb.marginY,p:Rb.padding,pt:Rb.paddingTop,py:Rb.paddingY,px:Rb.paddingX,pb:Rb.paddingBottom,pl:Rb.paddingLeft,ps:Rb.paddingInlineStart,paddingStart:Rb.paddingInlineStart,pr:Rb.paddingRight,pe:Rb.paddingInlineEnd,paddingEnd:Rb.paddingInlineEnd});var Ab={textDecorationColor:db.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:db.shadows("textShadow")},Ib={clipPath:!0,transform:db.propT("transform",ub.transform),transformOrigin:!0,translateX:db.spaceT("--chakra-translate-x"),translateY:db.spaceT("--chakra-translate-y"),skewX:db.degreeT("--chakra-skew-x"),skewY:db.degreeT("--chakra-skew-y"),scaleX:db.prop("--chakra-scale-x"),scaleY:db.prop("--chakra-scale-y"),scale:db.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:db.degreeT("--chakra-rotate")},Tb={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:db.prop("transitionDuration","transition.duration"),transitionProperty:db.prop("transitionProperty","transition.property"),transitionTimingFunction:db.prop("transitionTimingFunction","transition.easing")},Nb={fontFamily:db.prop("fontFamily","fonts"),fontSize:db.prop("fontSize","fontSizes",ub.px),fontWeight:db.prop("fontWeight","fontWeights"),lineHeight:db.prop("lineHeight","lineHeights"),letterSpacing:db.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},Pb={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:db.spaceT("scrollMargin"),scrollMarginTop:db.spaceT("scrollMarginTop"),scrollMarginBottom:db.spaceT("scrollMarginBottom"),scrollMarginLeft:db.spaceT("scrollMarginLeft"),scrollMarginRight:db.spaceT("scrollMarginRight"),scrollMarginX:db.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:db.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:db.spaceT("scrollPadding"),scrollPaddingTop:db.spaceT("scrollPaddingTop"),scrollPaddingBottom:db.spaceT("scrollPaddingBottom"),scrollPaddingLeft:db.spaceT("scrollPaddingLeft"),scrollPaddingRight:db.spaceT("scrollPaddingRight"),scrollPaddingX:db.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:db.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function Lb(e){return t.isObject(e)&&e.reference?e.reference:String(e)}var Db=function(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 r.map(Lb).join(" "+e+" ").replace(/calc/g,"")},Mb=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+Db.apply(void 0,["+"].concat(t))+")"},jb=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+Db.apply(void 0,["-"].concat(t))+")"},Vb=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+Db.apply(void 0,["*"].concat(t))+")"},Bb=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+Db.apply(void 0,["/"].concat(t))+")"},Fb=function(e){var t=Lb(e);return null==t||Number.isNaN(parseFloat(t))?Vb(t,-1):String(t).startsWith("-")?String(t).slice(1):"-"+t},zb=Object.assign(function(e){return{add:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return zb(Mb.apply(void 0,[e].concat(r)))},subtract:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return zb(jb.apply(void 0,[e].concat(r)))},multiply:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return zb(Vb.apply(void 0,[e].concat(r)))},divide:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return zb(Bb.apply(void 0,[e].concat(r)))},negate:function(){return zb(Fb(e))},toString:function(){return e.toString()}}},{add:Mb,subtract:jb,multiply:Vb,divide:Bb,negate:Fb}),Wb=function(e,t){return e+":hover "+t+", "+e+"[data-hover] "+t},Hb=function(e,t){return e+":focus "+t+", "+e+"[data-focus] "+t},Ub=function(e,t){return e+":focus-visible "+t},$b=function(e,t){return e+":focus-within "+t},qb=function(e,t){return e+":active "+t+", "+e+"[data-active] "+t},Yb=function(e,t){return e+":disabled "+t+", "+e+"[data-disabled] "+t},Gb=function(e,t){return e+":invalid "+t+", "+e+"[data-invalid] "+t},Zb=function(e,t){return e+":checked "+t+", "+e+"[data-checked] "+t},Xb=function(e){return Jb(function(t){return e(t,"&")},"[role=group]","[data-group]",".group")},Kb=function(e){return Jb(function(t){return e(t,"~ &")},"[data-peer]",".peer")},Jb=function(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 r.map(e).join(", ")},Qb={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:Xb(Wb),_peerHover:Kb(Wb),_groupFocus:Xb(Hb),_peerFocus:Kb(Hb),_groupFocusVisible:Xb(Ub),_peerFocusVisible:Kb(Ub),_groupActive:Xb(qb),_peerActive:Kb(qb),_groupDisabled:Xb(Yb),_peerDisabled:Kb(Yb),_groupInvalid:Xb(Gb),_peerInvalid:Kb(Gb),_groupChecked:Xb(Zb),_peerChecked:Kb(Zb),_groupFocusWithin:Xb($b),_peerFocusWithin:Kb($b),_peerPlaceholderShown:Kb(function(e,t){return e+":placeholder-shown "+t}),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]"},ex=t.objectKeys(Qb);function tx(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function rx(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return tx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tx(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var nx=t.mergeWith({},pb,fb,mb,gb,xb,hb,Ob,bb,yb,Sb,Cb,vb,Rb,Pb,Nb,Ab,Ib,Eb,Tb),ax=Object.assign({},Rb,xb,gb,yb,Cb);t.objectKeys(ax);var ox=[].concat(t.objectKeys(nx),ex),ix=Hy({},nx,Qb),sx=function(e){return e in ix},lx=function(e,r){return e.startsWith("--")&&t.isString(r)&&!t.isCssVar(r)},cx=function(e,t){var r,n;if(null==t)return t;var a=function(t){var r,n;return null==(r=e.__cssMap)||null==(n=r[t])?void 0:n.varRef},o=function(e){var t;return null!=(t=a(e))?t:e},i=t.split(",").map(function(e){return e.trim()}),s=i[1];return null!=(r=null!=(n=a(i[0]))?n:o(s))?r:o(t)};function ux(){return ux=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},ux.apply(this,arguments)}function dx(e){return t.omit(e,["styleConfig","size","variant","colorScheme"])}function px(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}rr({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});var fx=new Set([].concat(ox,["textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"])),mx=new Set(["htmlWidth","htmlHeight","htmlSize"]),vx=function(e){return mx.has(e)||!fx.has(e)},hx=["theme","css","__css","sx"],gx=["baseStyle"];function yx(e,r){var n=null!=r?r:{},a=n.baseStyle,o=px(n,gx);o.shouldForwardProp||(o.shouldForwardProp=vx);var i=function(e){var r=e.baseStyle;return function(e){var n,a=e.css,o=e.__css,i=e.sx,s=px(e,hx),l=t.objectFilter(s,function(e,t){return sx(t)}),c=t.runIfFn(r,e),u=Object.assign({},o,c,t.filterUndefined(l),i),d=(n=u,function(e){return function(e){var r=e.configs,n=void 0===r?{}:r,a=e.pseudos,o=void 0===a?{}:a,i=e.theme;return function e(r,a){void 0===a&&(a=!1);var s=t.runIfFn(r,i),l=function(e){return function(r){if(!r.__breakpoints)return e;var n=r.__breakpoints,a=n.isResponsive,o=n.toArrayValue,i=n.media,s={};for(var l in e){var c=t.runIfFn(e[l],r);if(null!=c)if(c=t.isObject(c)&&a(c)?o(c):c,Array.isArray(c))for(var u=c.slice(0,i.length).length,d=0;d<u;d+=1){var p=null==i?void 0:i[d];p?(s[p]=s[p]||{},null!=c[d]&&(s[p][l]=c[d])):s[l]=c[d]}else s[l]=c}return s}}(s)(i),c={};for(var u in l){var d,p,f,m,v,h=t.runIfFn(l[u],i);u in o&&(u=o[u]),lx(u,h)&&(h=cx(i,h));var g=n[u];if(!0===g&&(g={property:u}),t.isObject(h)){var y;c[u]=null!=(y=c[u])?y:{},c[u]=t.mergeWith({},c[u],e(h,!0))}else{var b=null!=(d=null==(p=g)||null==p.transform?void 0:p.transform(h,i,s))?d:h;b=null!=(f=g)&&f.processResult?e(b,!0):b;var x=t.runIfFn(null==(m=g)?void 0:m.property,i);if(!a&&null!=(v=g)&&v.static){var E=t.runIfFn(g.static,i);c=t.mergeWith({},c,E)}if(x&&Array.isArray(x))for(var k,_=rx(x);!(k=_()).done;)c[k.value]=b;else x?"&"===x&&t.isObject(b)?c=t.mergeWith({},c,b):c[x]=b:t.isObject(b)?c=t.mergeWith({},c,b):c[u]=b}}return c}}({theme:e,pseudos:Qb,configs:nx})(n)})(e.theme);return a?[d,a]:d}}({baseStyle:a});return Nr(e,o)(i)}function bx(e){/*#__PURE__*/
94
+ return F.forwardRef(e)}var xx=["styleConfig"];function Ex(e,r){var n;void 0===r&&(r={});var a,o=r.styleConfig,i=px(r,xx),s=ux({},function(){var e=F.useContext(Wy);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e}(),{theme:function(){var e=F.useContext(Vt);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}()}),l=s.theme,c=s.colorMode,u=t.memoizedGet(l,"components."+e),d=o||u,p=t.mergeWith({theme:l,colorMode:c},null!=(n=null==d?void 0:d.defaultProps)?n:{},t.filterUndefined(t.omit(i,["children"]))),f=F.useRef({});if(d){var m=(a=d,function(e){var r,n=e.variant,o=e.size,i=function(e){var r=e.__breakpoints;return function(e,n,a,o){if(r){var i={},s=function(e,r){return t.isArray(e)?e:t.isObject(e)?r(e):null!=e?[e]:void 0}(a,r.toArrayValue);if(!s)return i;for(var l=s.length,c=1===l,u=!!e.parts,d=function(a){var l,d,p=r.details[a],f=r.details[function(e,t){for(var r=t+1;r<e.length;r++)if(null!=e[r])return r;return-1}(s,a)],m=t.toMediaQueryString(p.minW,null==f?void 0:f._minW),v=t.runIfFn(null==(l=e[n])?void 0:l[s[a]],o);return v?u?(null==(d=e.parts)||d.forEach(function(e){var r,n;t.mergeWith(i,((n={})[e]=c?v[e]:((r={})[m]=v[e],r),n))}),"continue"):u?void(i[m]=v):(c?t.mergeWith(i,v):i[m]=v,"continue"):"continue"},p=0;p<l;p++)d(p);return i}}}(e.theme);return t.mergeWith({},t.runIfFn(null!=(r=a.baseStyle)?r:{},e),i(a,"sizes",o,e),i(a,"variants",n,e))}),v=m(p);_r(f.current,v)||(f.current=v)}return f.current}function kx(e,t){return void 0===t&&(t={}),Ex(e,t)}var _x=function(){var e=new Map;return new Proxy(yx,{apply:function(e,t,r){return yx.apply(void 0,r)},get:function(t,r){return e.has(r)||e.set(r,yx(r)),e.get(r)}})}();function wx(){return wx=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},wx.apply(this,arguments)}var Sx=["as","viewBox","color","focusable","children","className","__css"],Cx={path:/*#__PURE__*/F.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/*#__PURE__*/F.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),/*#__PURE__*/F.createElement("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),/*#__PURE__*/F.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},Ox=/*#__PURE__*/bx(function(e,r){var n=e.as,a=e.viewBox,o=e.color,i=void 0===o?"currentColor":o,s=e.focusable,l=void 0!==s&&s,c=e.children,u=e.className,d=e.__css,p=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}(e,Sx),f={ref:r,focusable:l,className:t.cx("chakra-icon",u),__css:wx({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i},d)},m=null!=a?a:Cx.viewBox;if(n&&"string"!=typeof n)/*#__PURE__*/
95
+ return F.createElement(_x.svg,wx({as:n},f,p));var v=null!=c?c:Cx.path;/*#__PURE__*/
96
+ return F.createElement(_x.svg,wx({verticalAlign:"middle",viewBox:m},f,p),v)});function Rx(e){var r=e.viewBox,n=void 0===r?"0 0 24 24":r,a=e.d,o=e.displayName,i=e.defaultProps,s=void 0===i?{}:i,l=F.Children.toArray(e.path),c=/*#__PURE__*/bx(function(e,t){/*#__PURE__*/
97
+ return F.createElement(Ox,wx({ref:t,viewBox:n},s,e),l.length?l:/*#__PURE__*/F.createElement("path",{fill:"currentColor",d:a}))});return t.__DEV__&&(c.displayName=o),c}t.__DEV__&&(Ox.displayName="Icon"),Rx({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"}),Rx({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"}),Rx({d:"M23.414,20.591l-4.645-4.645a10.256,10.256,0,1,0-2.828,2.829l4.645,4.644a2.025,2.025,0,0,0,2.828,0A2,2,0,0,0,23.414,20.591ZM10.25,3.005A7.25,7.25,0,1,1,3,10.255,7.258,7.258,0,0,1,10.25,3.005Z",displayName:"Search2Icon"}),Rx({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"}),Rx({displayName:"SunIcon",path:/*#__PURE__*/F.createElement("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor"},/*#__PURE__*/F.createElement("circle",{cx:"12",cy:"12",r:"5"}),/*#__PURE__*/F.createElement("path",{d:"M12 1v2"}),/*#__PURE__*/F.createElement("path",{d:"M12 21v2"}),/*#__PURE__*/F.createElement("path",{d:"M4.22 4.22l1.42 1.42"}),/*#__PURE__*/F.createElement("path",{d:"M18.36 18.36l1.42 1.42"}),/*#__PURE__*/F.createElement("path",{d:"M1 12h2"}),/*#__PURE__*/F.createElement("path",{d:"M21 12h2"}),/*#__PURE__*/F.createElement("path",{d:"M4.22 19.78l1.42-1.42"}),/*#__PURE__*/F.createElement("path",{d:"M18.36 5.64l1.42-1.42"}))});var Ax=Rx({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"});Rx({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:/*#__PURE__*/F.createElement("path",{fill:"currentColor",d:"M14 9h-3V6c0-.55-.45-1-1-1s-1 .45-1 1v3H6c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1z",fillRule:"evenodd"})}),Rx({viewBox:"0 0 14 14",d:"M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z",displayName:"SettingsIcon"}),Rx({displayName:"CheckCircleIcon",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"}),Rx({d:"M19.5,9.5h-.75V6.75a6.75,6.75,0,0,0-13.5,0V9.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5ZM7.75,6.75a4.25,4.25,0,0,1,8.5,0V9a.5.5,0,0,1-.5.5H8.25a.5.5,0,0,1-.5-.5Z",displayName:"LockIcon"}),Rx({d:"M19.5,9.5h-.75V6.75A6.751,6.751,0,0,0,5.533,4.811a1.25,1.25,0,1,0,2.395.717A4.251,4.251,0,0,1,16.25,6.75V9a.5.5,0,0,1-.5.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5Z",displayName:"UnlockIcon"});var Ix=Rx({displayName:"ViewIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z"}),/*#__PURE__*/F.createElement("circle",{cx:"12",cy:"12",r:"2"}))}),Tx=Rx({displayName:"ViewOffIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M23.2,10.549a20.954,20.954,0,0,0-4.3-3.6l4-3.995a1,1,0,1,0-1.414-1.414l-.018.018a.737.737,0,0,1-.173.291l-19.5,19.5c-.008.007-.018.009-.026.017a1,1,0,0,0,1.631,1.088l4.146-4.146a11.26,11.26,0,0,0,4.31.939h.3c4.256,0,8.489-2.984,11.051-5.8A2.171,2.171,0,0,0,23.2,10.549ZM16.313,13.27a4.581,4.581,0,0,1-3,3.028,4.3,4.3,0,0,1-3.1-.19.253.253,0,0,1-.068-.407l5.56-5.559a.252.252,0,0,1,.407.067A4.3,4.3,0,0,1,16.313,13.27Z"}),/*#__PURE__*/F.createElement("path",{d:"M7.615,13.4a.244.244,0,0,0,.061-.24A4.315,4.315,0,0,1,7.5,12,4.5,4.5,0,0,1,12,7.5a4.276,4.276,0,0,1,1.16.173.244.244,0,0,0,.24-.062l1.941-1.942a.254.254,0,0,0-.1-.421A10.413,10.413,0,0,0,12,4.75C7.7,4.692,3.4,7.7.813,10.549a2.15,2.15,0,0,0-.007,2.9,21.209,21.209,0,0,0,3.438,3.03.256.256,0,0,0,.326-.029Z"}))});Rx({d:"M11.2857,6.05714 L10.08571,4.85714 L7.85714,7.14786 L7.85714,1 L6.14286,1 L6.14286,7.14786 L3.91429,4.85714 L2.71429,6.05714 L7,10.42857 L11.2857,6.05714 Z M1,11.2857 L1,13 L13,13 L13,11.2857 L1,11.2857 Z",displayName:"DownloadIcon",viewBox:"0 0 14 14"}),Rx({displayName:"DeleteIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"}))}),Rx({displayName:"RepeatIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"}),/*#__PURE__*/F.createElement("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"}))}),Rx({displayName:"RepeatClockIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z"}),/*#__PURE__*/F.createElement("path",{d:"M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z"}))}),Rx({displayName:"EditIcon",path:/*#__PURE__*/F.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/*#__PURE__*/F.createElement("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),/*#__PURE__*/F.createElement("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"}))}),Rx({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"}),Rx({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});var Nx=Rx({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});Rx({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"}),Rx({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"}),Rx({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"}),Rx({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"}),Rx({viewBox:"0 0 16 16",d:"M11.891 9.992a1 1 0 1 1 1.416 1.415l-4.3 4.3a1 1 0 0 1-1.414 0l-4.3-4.3A1 1 0 0 1 4.71 9.992l3.59 3.591 3.591-3.591zm0-3.984L8.3 2.417 4.709 6.008a1 1 0 0 1-1.416-1.415l4.3-4.3a1 1 0 0 1 1.414 0l4.3 4.3a1 1 0 1 1-1.416 1.415z",displayName:"ArrowUpDownIcon"}),Rx({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"}),Rx({displayName:"ExternalLinkIcon",path:/*#__PURE__*/F.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/*#__PURE__*/F.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),/*#__PURE__*/F.createElement("path",{d:"M15 3h6v6"}),/*#__PURE__*/F.createElement("path",{d:"M10 14L21 3"}))}),Rx({displayName:"LinkIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z"}),/*#__PURE__*/F.createElement("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z"}))}),Rx({displayName:"PlusSquareIcon",path:/*#__PURE__*/F.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/*#__PURE__*/F.createElement("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),/*#__PURE__*/F.createElement("path",{d:"M12 8v8"}),/*#__PURE__*/F.createElement("path",{d:"M8 12h8"}))}),Rx({displayName:"CalendarIcon",viewBox:"0 0 14 14",d:"M10.8889,5.5 L3.11111,5.5 L3.11111,7.05556 L10.8889,7.05556 L10.8889,5.5 Z M12.4444,1.05556 L11.6667,1.05556 L11.6667,0 L10.1111,0 L10.1111,1.05556 L3.88889,1.05556 L3.88889,0 L2.33333,0 L2.33333,1.05556 L1.55556,1.05556 C0.692222,1.05556 0.00777777,1.75556 0.00777777,2.61111 L0,12.5 C0,13.3556 0.692222,14 1.55556,14 L12.4444,14 C13.3,14 14,13.3556 14,12.5 L14,2.61111 C14,1.75556 13.3,1.05556 12.4444,1.05556 Z M12.4444,12.5 L1.55556,12.5 L1.55556,3.94444 L12.4444,3.94444 L12.4444,12.5 Z M8.55556,8.61111 L3.11111,8.61111 L3.11111,10.1667 L8.55556,10.1667 L8.55556,8.61111 Z"}),Rx({d:"M0.913134,0.920639 C1.49851,0.331726 2.29348,0 3.12342,0 L10.8766,0 C11.7065,0 12.5015,0.331725 13.0869,0.920639 C13.6721,1.50939 14,2.30689 14,3.13746 L14,8.12943 C13.9962,8.51443 13.9059,8.97125 13.7629,9.32852 C13.6128,9.683 13.3552,10.0709 13.0869,10.3462 C12.813,10.6163 12.4265,10.8761 12.0734,11.0274 C11.7172,11.1716 11.2607,11.263 10.8766,11.2669 L10.1234,11.2669 L10.1234,12.5676 L10.1209,12.5676 C10.1204,12.793 10.0633,13.0791 9.97807,13.262 C9.8627,13.466 9.61158,13.7198 9.40818,13.8382 L9.40824,13.8383 C9.4077,13.8386 9.40716,13.8388 9.40661,13.8391 C9.40621,13.8393 9.4058,13.8396 9.40539,13.8398 L9.40535,13.8397 C9.22958,13.9254 8.94505,13.9951 8.75059,14 L8.74789,14 C8.35724,13.9963 7.98473,13.8383 7.71035,13.5617 L5.39553,11.2669 L3.12342,11.2669 C2.29348,11.2669 1.49851,10.9352 0.913134,10.3462 C0.644826,10.0709 0.387187,9.683 0.23711,9.32852 C0.0941235,8.97125 0.00379528,8.51443 0,8.12943 L0,3.13746 C0,2.30689 0.327915,1.50939 0.913134,0.920639 Z M3.12342,1.59494 C2.71959,1.59494 2.33133,1.75628 2.04431,2.04503 C1.75713,2.33395 1.59494,2.72681 1.59494,3.13746 L1.59494,8.12943 C1.59114,8.35901 1.62114,8.51076 1.71193,8.72129 C1.79563,8.9346 1.88065,9.06264 2.04431,9.22185 C2.33133,9.5106 2.71959,9.67195 3.12342,9.67195 L5.72383,9.67195 C5.93413,9.67195 6.13592,9.75502 6.28527,9.90308 L8.52848,12.1269 L8.52848,10.4694 C8.52848,10.029 8.88552,9.67195 9.32595,9.67195 L10.8766,9.67195 C11.1034,9.67583 11.2517,9.64614 11.4599,9.55518 C11.6712,9.47132 11.7976,9.38635 11.9557,9.22185 C12.1193,9.06264 12.2044,8.9346 12.2881,8.72129 C12.3789,8.51076 12.4089,8.35901 12.4051,8.12943 L12.4051,3.13746 C12.4051,2.72681 12.2429,2.33394 11.9557,2.04503 C11.6687,1.75628 11.2804,1.59494 10.8766,1.59494 L3.12342,1.59494 Z",displayName:"ChatIcon",viewBox:"0 0 14 14"}),Rx({displayName:"TimeIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22Z"}),/*#__PURE__*/F.createElement("path",{d:"M17.134,15.81,12.5,11.561V6.5a1,1,0,0,0-2,0V12a1,1,0,0,0,.324.738l4.959,4.545a1.01,1.01,0,0,0,1.413-.061A1,1,0,0,0,17.134,15.81Z"}))}),Rx({displayName:"ArrowRightIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"}),/*#__PURE__*/F.createElement("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"}))}),Rx({displayName:"ArrowLeftIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"}),/*#__PURE__*/F.createElement("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"}))}),Rx({displayName:"AtSignIcon",d:"M12,.5A11.634,11.634,0,0,0,.262,12,11.634,11.634,0,0,0,12,23.5a11.836,11.836,0,0,0,6.624-2,1.25,1.25,0,1,0-1.393-2.076A9.34,9.34,0,0,1,12,21a9.132,9.132,0,0,1-9.238-9A9.132,9.132,0,0,1,12,3a9.132,9.132,0,0,1,9.238,9v.891a1.943,1.943,0,0,1-3.884,0V12A5.355,5.355,0,1,0,12,17.261a5.376,5.376,0,0,0,3.861-1.634,4.438,4.438,0,0,0,7.877-2.736V12A11.634,11.634,0,0,0,12,.5Zm0,14.261A2.763,2.763,0,1,1,14.854,12,2.812,2.812,0,0,1,12,14.761Z"}),Rx({displayName:"AttachmentIcon",d:"M21.843,3.455a6.961,6.961,0,0,0-9.846,0L1.619,13.832a5.128,5.128,0,0,0,7.252,7.252L17.3,12.653A3.293,3.293,0,1,0,12.646,8L7.457,13.184A1,1,0,1,0,8.871,14.6L14.06,9.409a1.294,1.294,0,0,1,1.829,1.83L7.457,19.67a3.128,3.128,0,0,1-4.424-4.424L13.411,4.869a4.962,4.962,0,1,1,7.018,7.018L12.646,19.67a1,1,0,1,0,1.414,1.414L21.843,13.3a6.96,6.96,0,0,0,0-9.846Z"}),Rx({displayName:"UpDownIcon",viewBox:"-1 -1 9 11",d:"M 3.5 0L 3.98809 -0.569442L 3.5 -0.987808L 3.01191 -0.569442L 3.5 0ZM 3.5 9L 3.01191 9.56944L 3.5 9.98781L 3.98809 9.56944L 3.5 9ZM 0.488094 3.56944L 3.98809 0.569442L 3.01191 -0.569442L -0.488094 2.43056L 0.488094 3.56944ZM 3.01191 0.569442L 6.51191 3.56944L 7.48809 2.43056L 3.98809 -0.569442L 3.01191 0.569442ZM -0.488094 6.56944L 3.01191 9.56944L 3.98809 8.43056L 0.488094 5.43056L -0.488094 6.56944ZM 3.98809 9.56944L 7.48809 6.56944L 6.51191 5.43056L 3.01191 8.43056L 3.98809 9.56944Z"}),Rx({d:"M23.555,8.729a1.505,1.505,0,0,0-1.406-.98H16.062a.5.5,0,0,1-.472-.334L13.405,1.222a1.5,1.5,0,0,0-2.81,0l-.005.016L8.41,7.415a.5.5,0,0,1-.471.334H1.85A1.5,1.5,0,0,0,.887,10.4l5.184,4.3a.5.5,0,0,1,.155.543L4.048,21.774a1.5,1.5,0,0,0,2.31,1.684l5.346-3.92a.5.5,0,0,1,.591,0l5.344,3.919a1.5,1.5,0,0,0,2.312-1.683l-2.178-6.535a.5.5,0,0,1,.155-.543l5.194-4.306A1.5,1.5,0,0,0,23.555,8.729Z",displayName:"StarIcon"}),Rx({displayName:"EmailIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M11.114,14.556a1.252,1.252,0,0,0,1.768,0L22.568,4.87a.5.5,0,0,0-.281-.849A1.966,1.966,0,0,0,22,4H2a1.966,1.966,0,0,0-.289.021.5.5,0,0,0-.281.849Z"}),/*#__PURE__*/F.createElement("path",{d:"M23.888,5.832a.182.182,0,0,0-.2.039l-6.2,6.2a.251.251,0,0,0,0,.354l5.043,5.043a.75.75,0,1,1-1.06,1.061l-5.043-5.043a.25.25,0,0,0-.354,0l-2.129,2.129a2.75,2.75,0,0,1-3.888,0L7.926,13.488a.251.251,0,0,0-.354,0L2.529,18.531a.75.75,0,0,1-1.06-1.061l5.043-5.043a.251.251,0,0,0,0-.354l-6.2-6.2a.18.18,0,0,0-.2-.039A.182.182,0,0,0,0,6V18a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V6A.181.181,0,0,0,23.888,5.832Z"}))}),Rx({d:"M2.20731,0.0127209 C2.1105,-0.0066419 1.99432,-0.00664663 1.91687,0.032079 C0.871279,0.438698 0.212942,1.92964 0.0580392,2.95587 C-0.426031,6.28627 2.20731,9.17133 4.62766,11.0689 C6.77694,12.7534 10.9012,15.5223 13.3409,12.8503 C13.6507,12.5211 14.0186,12.037 13.9993,11.553 C13.9412,10.7397 13.186,10.1588 12.6051,9.71349 C12.1598,9.38432 11.2304,8.47427 10.6495,8.49363 C10.1267,8.51299 9.79754,9.05515 9.46837,9.38432 L8.88748,9.96521 C8.79067,10.062 7.55145,9.24878 7.41591,9.15197 C6.91248,8.8228 6.4284,8.45491 6.00242,8.04829 C5.57644,7.64167 5.18919,7.19632 4.86002,6.73161 C4.7632,6.59607 3.96933,5.41495 4.04678,5.31813 C4.04678,5.31813 4.72448,4.58234 4.91811,4.2919 C5.32473,3.67229 5.63453,3.18822 5.16982,2.45243 C4.99556,2.18135 4.78257,1.96836 4.55021,1.73601 C4.14359,1.34875 3.73698,0.942131 3.27227,0.612963 C3.02055,0.419335 2.59457,0.0708094 2.20731,0.0127209 Z",displayName:"PhoneIcon",viewBox:"0 0 14 14"}),Rx({viewBox:"0 0 10 10",d:"M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z",displayName:"DragHandleIcon"}),Rx({displayName:"SpinnerIcon",path:/*#__PURE__*/F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement("defs",null,/*#__PURE__*/F.createElement("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a"},/*#__PURE__*/F.createElement("stop",{stopColor:"currentColor",offset:"0%"}),/*#__PURE__*/F.createElement("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"}))),/*#__PURE__*/F.createElement("g",{transform:"translate(2)",fill:"none"},/*#__PURE__*/F.createElement("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"}),/*#__PURE__*/F.createElement("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"}),/*#__PURE__*/F.createElement("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"})))}),Rx({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}),Rx({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:/*#__PURE__*/F.createElement("path",{d:"M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z",fillRule:"evenodd",fill:"currentColor"})}),Rx({d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z",displayName:"NotAllowedIcon"}),Rx({d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z",displayName:"TriangleDownIcon"}),Rx({d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z",displayName:"TriangleUpIcon"}),Rx({displayName:"InfoOutlineIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2"},/*#__PURE__*/F.createElement("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),/*#__PURE__*/F.createElement("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),/*#__PURE__*/F.createElement("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"}))}),Rx({displayName:"BellIcon",d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"}),Rx({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"}),Rx({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm0,19a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,19Zm1.6-6.08a1,1,0,0,0-.6.917,1,1,0,1,1-2,0,3,3,0,0,1,1.8-2.75A2,2,0,1,0,10,9.255a1,1,0,1,1-2,0,4,4,0,1,1,5.6,3.666Z",displayName:"QuestionIcon"}),Rx({displayName:"QuestionOutlineIcon",path:/*#__PURE__*/F.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/*#__PURE__*/F.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),/*#__PURE__*/F.createElement("path",{fill:"none",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),/*#__PURE__*/F.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"}))}),Rx({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"}),Rx({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"});var Px=Rx({viewBox:"0 0 14 14",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))}),Lx=Rx({displayName:"MinusIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("rect",{height:"4",width:"20",x:"2",y:"10"}))});function Dx(){return Dx=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},Dx.apply(this,arguments)}Rx({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"});var Mx=fa(function(e,t){/*#__PURE__*/return F.createElement(dm,{w:"auto",px:"1",py:"1",alignItems:"stretch"},/*#__PURE__*/F.createElement(jp,Dx({ref:t,height:"auto"},e)))});function jx(){return jx=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},jx.apply(this,arguments)}Mx.id="InputRightElement",t.__DEV__&&(Mx.displayName="InputRightButton");var Vx=["viewIcon","viewOffIcon","autoComplete"],Bx=fa(function(e,t){var r,n=e.viewIcon,a=e.viewOffIcon,o=e.autoComplete,i=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}(e,Vx),s=F.useState(!1),l=s[0],c=s[1],u=l?"Hide password":"Show password";return r=l?n||/*#__PURE__*/F.createElement(Ix,null):a||/*#__PURE__*/F.createElement(Tx,null),/*#__PURE__*/F.createElement(Jf,null,/*#__PURE__*/F.createElement(Yf,jx({},i,{ref:t,type:l?"text":"password",autoComplete:l?"off":o})),/*#__PURE__*/F.createElement(Mx,{onClick:function(){return c(!l)},"aria-label":u,variant:"ghost"},r))});function Fx(){return Fx=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},Fx.apply(this,arguments)}function zx(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}t.__DEV__&&(Bx.displayName="PasswordInput");var Wx=["options","spacing","direction"],Hx=["onBlur","onChange"],Ux=["value","label"],$x=fa(function(e,t){var r=e.options,n=e.spacing,a=e.direction,o=zx(e,Wx),i=o.onBlur,s=o.onChange,l=zx(o,Hx);return F.createElement(gy,Fx({onChange:s},l),/*#__PURE__*/F.createElement(Qm,{spacing:n,direction:a},r.map(function(e,r){var n=e.value,a=e.label,o=zx(e,Ux);return F.createElement(Ey,Fx({key:r,onBlur:i,value:n,ref:t},o),a||n)})))});function qx(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Yx(){return Yx=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},Yx.apply(this,arguments)}function Gx(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}t.__DEV__&&($x.displayName="RadioInput");var Zx=["name","options","children","onChange","defaultValue","value","placeholder","isDisabled","leftIcon","rightIcon","multiple","size","variant","menuListProps","renderValue"],Xx=["value","label"],Kx=fa(function(e,t){var r=ga("Input",e),n=Yx({fontWeight:"normal",textAlign:"left",color:"inherit",_active:{bg:"transparent"},minH:r.field.h||r.field.height},r.field,{h:"auto"});return F.createElement(mg,Yx({as:jp},e,{ref:t,sx:n}))});t.__DEV__&&(Kx.displayName="SelectButton");var Jx=fa(function(e,r){var n=e.name,a=e.options,o=e.children,i=e.onChange,s=e.defaultValue,l=e.value,c=e.placeholder,u=e.isDisabled,d=e.leftIcon,p=e.rightIcon,f=void 0===p?/*#__PURE__*/F.createElement(Nx,null):p,m=e.multiple,v=e.size,h=e.variant,g=e.menuListProps,y=e.renderValue,b=void 0===y?function(e){return null==e?void 0:e.join(", ")}:y,x=oa(Gx(e,Zx)),E=F.useState(l||s),k=E[0],_=E[1],w=tf({name:n}),S={isDisabled:u,leftIcon:d,rightIcon:f,size:v,variant:h},C=F.useCallback(function(e){if(!a)return e;for(var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return qx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qx(e,t):void 0}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(a);!(t=r()).done;){var n=t.value;if(n.label&&n.value===e)return n.label}return e},[a]),O=k?(Array.isArray(k)?k:[k]).map(C):[];return F.createElement(pg,Yx({},x,{closeOnSelect:!m}),/*#__PURE__*/F.createElement(ba.div,{className:t.cx("saas-select")},/*#__PURE__*/F.createElement(Kx,Yx({ref:r},S),b(O)||c),/*#__PURE__*/F.createElement(gg,Yx({maxH:"60vh",overflowY:"auto"},g),/*#__PURE__*/F.createElement(kg,{defaultValue:s||l,onChange:function(e){_(e),null==i||i(e)},type:m?"checkbox":"radio"},a?a.map(function(e,t){var r=e.value,n=e.label,a=Gx(e,Xx);return F.createElement(Eg,Yx({key:t,value:r},a),n||r)}):o)),/*#__PURE__*/F.createElement(ba.input,Yx({},w,{name:n,type:"hidden",value:k,className:"saas-select__input"}))))});t.__DEV__&&(Jx.displayName="Select");var Qx=["options","children"],eE=fa(function(e,t){var r=e.options,n=e.children,a=Gx(e,Qx);return F.createElement(Ry,Yx({ref:t},a),n||(null==r?void 0:r.map(function(e){var t=e.value;/*#__PURE__*/return F.createElement("option",{key:t,value:t},e.label||t)})))});t.__DEV__&&(eE.displayName="NativeSelect");var tE={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},rE=_x("span",{baseStyle:tE});t.__DEV__&&(rE.displayName="VisuallyHidden");var nE=_x("input",{baseStyle:tE});function aE(){return aE=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},aE.apply(this,arguments)}t.__DEV__&&(nE.displayName="VisuallyHiddenInput");var oE=["label","thickness","speed","emptyColor","className"],iE=Yt({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),sE=/*#__PURE__*/bx(function(e,r){var n=kx("Spinner",e),a=dx(e),o=a.label,i=void 0===o?"Loading...":o,s=a.thickness,l=void 0===s?"2px":s,c=a.speed,u=void 0===c?"0.45s":c,d=a.emptyColor,p=void 0===d?"transparent":d,f=a.className,m=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}(a,oE),v=t.cx("chakra-spinner",f),h=aE({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:l,borderBottomColor:p,borderLeftColor:p,animation:iE+" "+u+" linear infinite"},n);/*#__PURE__*/
98
+ return F.createElement(_x.div,aE({ref:r,__css:h,className:v},m),i&&/*#__PURE__*/F.createElement(rE,null,i))});function lE(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}function cE(){return cE=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},cE.apply(this,arguments)}t.__DEV__&&(sE.displayName="Spinner");var uE=["size","colorScheme","variant","className","spacing","isAttached","isDisabled"],dE=rr({strict:!1,name:"ButtonGroupContext"}),pE=dE[0],fE=dE[1],mE=/*#__PURE__*/bx(function(e,r){var n=e.size,a=e.colorScheme,o=e.variant,i=e.className,s=e.spacing,l=void 0===s?"0.5rem":s,c=e.isAttached,u=e.isDisabled,d=lE(e,uE),p=t.cx("chakra-button__group",i),f=F.useMemo(function(){return{size:n,colorScheme:a,variant:o,isDisabled:u}},[n,a,o,u]),m={display:"inline-flex"};return m=cE({},m,c?{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:{"& > *:not(style) ~ *:not(style)":{marginStart:l}}),/*#__PURE__*/F.createElement(pE,{value:f},/*#__PURE__*/F.createElement(_x.div,cE({ref:r,role:"group",__css:m,className:p,"data-attached":c?"":void 0},d)))});t.__DEV__&&(mE.displayName="ButtonGroup");var vE=["label","placement","spacing","children","className","__css"],hE=function(e){var r=e.label,n=e.placement,a=e.spacing,o=void 0===a?"0.5rem":a,i=e.children,s=void 0===i?/*#__PURE__*/F.createElement(sE,{color:"currentColor",width:"1em",height:"1em"}):i,l=e.className,c=e.__css,u=lE(e,vE),d=t.cx("chakra-button__spinner",l),p="start"===n?"marginEnd":"marginStart",f=F.useMemo(function(){var e;return cE(((e={display:"flex",alignItems:"center",position:r?"relative":"absolute"})[p]=r?o:0,e.fontSize="1em",e.lineHeight="normal",e),c)},[c,r,p,o]);/*#__PURE__*/
99
+ return F.createElement(_x.div,cE({className:d},u,{__css:f}),s)};t.__DEV__&&(hE.displayName="ButtonSpinner");var gE=["children","className"],yE=function(e){var r=e.children,n=e.className,a=lE(e,gE),o=/*#__PURE__*/F.isValidElement(r)?/*#__PURE__*/F.cloneElement(r,{"aria-hidden":!0,focusable:!1}):r,i=t.cx("chakra-button__icon",n);/*#__PURE__*/
100
+ return F.createElement(_x.span,cE({display:"inline-flex",alignSelf:"center",flexShrink:0},a,{className:i}),o)};t.__DEV__&&(yE.displayName="ButtonIcon");var bE=["isDisabled","isLoading","isActive","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"],xE=/*#__PURE__*/bx(function(e,r){var n,a,o,i,s=fE(),l=kx("Button",cE({},s,e)),c=dx(e),u=c.isDisabled,d=void 0===u?null==s?void 0:s.isDisabled:u,p=c.isLoading,f=c.isActive,m=c.children,v=c.leftIcon,h=c.rightIcon,g=c.loadingText,y=c.iconSpacing,b=void 0===y?"0.5rem":y,x=c.type,E=c.spinner,k=c.spinnerPlacement,_=void 0===k?"start":k,w=c.className,S=c.as,C=lE(c,bE),O=F.useMemo(function(){var e,r=t.mergeWith({},null!=(e=null==l?void 0:l._focus)?e:{},{zIndex:1});return cE({display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none"},l,!!s&&{_focus:r})},[l,s]),R=(a=(n=F.useState(!S))[0],o=n[1],i=F.useCallback(function(e){e&&o("BUTTON"===e.tagName)},[]),{ref:i,type:a?"button":void 0}),A=R.type,I={rightIcon:h,leftIcon:v,iconSpacing:b,children:m};/*#__PURE__*/
101
+ return F.createElement(_x.button,cE({disabled:d||p,ref:vr(r,R.ref),as:S,type:null!=x?x:A,"data-active":t.dataAttr(f),"data-loading":t.dataAttr(p),__css:O,className:t.cx("chakra-button",w)},C),p&&"start"===_&&/*#__PURE__*/F.createElement(hE,{className:"chakra-button__spinner--start",label:g,placement:"start",spacing:b},E),p?g||/*#__PURE__*/F.createElement(_x.span,{opacity:0},/*#__PURE__*/F.createElement(EE,I)):/*#__PURE__*/F.createElement(EE,I),p&&"end"===_&&/*#__PURE__*/F.createElement(hE,{className:"chakra-button__spinner--end",label:g,placement:"end",spacing:b},E))});function EE(e){var t=e.leftIcon,r=e.rightIcon,n=e.children,a=e.iconSpacing;/*#__PURE__*/
102
+ return F.createElement(F.Fragment,null,t&&/*#__PURE__*/F.createElement(yE,{marginEnd:a},t),n,r&&/*#__PURE__*/F.createElement(yE,{marginStart:a},r))}t.__DEV__&&(xE.displayName="Button");var kE=["icon","children","isRound","aria-label"],_E=/*#__PURE__*/bx(function(e,t){var r=e.icon,n=e.children,a=e.isRound,o=e["aria-label"],i=lE(e,kE),s=r||n,l=/*#__PURE__*/F.isValidElement(s)?/*#__PURE__*/F.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;/*#__PURE__*/
103
+ return F.createElement(xE,cE({padding:"0",borderRadius:a?"full":void 0,ref:t,"aria-label":o},i),l)});function wE(){return wE=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},wE.apply(this,arguments)}t.__DEV__&&(_E.displayName="IconButton");var SE=["label","children"],CE=bx(function(e,t){var r=e.label,n=e.children,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}(e,SE);return F.createElement(xE,wE({ref:t},a),n||r)});function OE(){return OE=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},OE.apply(this,arguments)}function RE(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}t.__DEV__&&(CE.displayName="Button");var AE=rr({name:"StepperContext",errorMessage:"useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in `<Stepper />`"}),IE=AE[0],TE=AE[1];function NE(e){var t=e.step,r=e.onChange,n=F.useState(-1),a=n[0],o=n[1],i=F.useRef([]),s=F.useState(Date.now())[1],l=F.useCallback(function(e){var t=[].concat(i.current);-1===t.indexOf(e)&&t.push(e),i.current=t,s(Date.now())},[i,s]),c=function(e){var t=i.current.indexOf(e);-1!==t&&o(t)};return F.useEffect(function(){"string"==typeof t?c(t):"number"==typeof t?o(t):-1===a&&o(0)},[t]),F.useEffect(function(){null==r||r(a)},[a,r]),{stepsRef:i,activeStep:i.current[a],activeIndex:a,isFirstStep:0===a,isLastStep:a===i.current.length-1,isCompleted:a>=i.current.length,setIndex:o,setStep:c,nextStep:function(){o(a+1)},prevStep:function(){o(a-1)},registerStep:l,unregisterStep:function(e){i.current=i.current.slice(i.current.indexOf(e),1)}}}var PE=["orientation","children"],LE=["children","orientation","step","onChange"],DE=["children","orientation","stepComponent"],ME=["children","isOpen"],jE=["icon","isActive","isCompleted","className"],VE=["name","title","icon","isActive","isCompleted"],BE=["isActive"],FE=rr({name:"StepperStylesContext",errorMessage:'useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<Stepper />" '}),zE=FE[0],WE=FE[1],HE=bx(function(e,t){var r=e.orientation,n=e.children,a=RE(e,PE);return F.createElement(UE,OE({ref:t,orientation:r},a),/*#__PURE__*/F.createElement($E,{orientation:r},n))});t.__DEV__&&(HE.displayName="Stepper");var UE=bx(function(e,r){var n,a=e.children,o=e.orientation,i=void 0===o?"horizontal":o,s=RE(e,LE),l=(void 0===(n=OE({},s,{orientation:i}))&&(n={}),Ex("Stepper",n)),c=dx(s),u=NE(e),d=OE({display:"flex",flexDirection:"column"},l.container);return F.createElement(zE,{value:l},/*#__PURE__*/F.createElement(IE,{value:u},/*#__PURE__*/F.createElement(_x.div,OE({ref:r,__css:d},c,{className:t.cx("saas-stepper",e.className)}),a)))});t.__DEV__&&(UE.displayName="StepperContainer");var $E=function(e){var r,n,a,o=e.children,i=e.orientation,s=void 0===i?"horizontal":i,l=e.stepComponent,c=RE(e,DE),u=WE(),d=TE().activeIndex,p=OE({display:"flex",flexDirection:"row",alignItems:"center"},u.steps),f="vertical"===s,m=l||GE,v=(a=m,F.Children.toArray(o).filter(function(e){return Array.isArray(a)?a.some(function(t){return t===e.type}):e.type===a})),h=v.reduce(function(e,t,r,n){return e.push(/*#__PURE__*/F.createElement(m,OE({key:r},t.props,{icon:t.props.icon||r+1,isActive:d===r,isCompleted:t.props.isCompleted||d>r}))),f&&e.push(/*#__PURE__*/F.createElement(qE,{key:"content-"+r,isOpen:d===r},t.props.children)),r<n.length-1&&e.push(/*#__PURE__*/F.createElement(ZE,{key:"separator-"+r,isActive:r<d})),e},[]),g=function(e,t){return F.Children.toArray(e).find(function(e){return e.type===t})}(o,KE),y=d>=v.length?g:f?null:/*#__PURE__*/F.createElement(qE,null,null==(r=v[d])||null==(n=r.props)?void 0:n.children);return F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement(_x.div,OE({__css:p},c,{className:t.cx("saas-stepper__steps",e.className)}),h),y)};t.__DEV__&&($E.displayName="StepperSteps");var qE=function(e){var r=e.children,n=e.isOpen,a=void 0===n||n,o=RE(e,ME),i=WE();return F.createElement(_x.div,OE({__css:i.content},o,{className:t.cx("saas-stepper__content",e.className)}),/*#__PURE__*/F.createElement($d,{in:a},r))};t.__DEV__&&(qE.displayName="StepperContent");var YE=function(e){var r,n=e.icon,a=e.isCompleted,o=e.className,i=RE(e,jE),s=OE({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontSize:"1em"},WE().icon);return r=a?/*#__PURE__*/F.createElement(Ox,{as:Px}):n,/*#__PURE__*/F.createElement(_x.div,OE({__css:s},i,{className:t.cx("saas-stepper__icon",o)}),r)};t.__DEV__&&(YE.displayName="StepperIcon");var GE=function(e){var r=e.title,n=e.icon,a=e.isActive,o=e.isCompleted,i=RE(e,VE),s=function(e){var t=e.name,r=e.isActive,n=e.isCompleted,a=TE(),o=a.registerStep,i=a.unregisterStep,s=a.activeStep;return F.useEffect(function(){if(t)return o(t),function(){i(t)}},[]),{isActive:t?s===t:r,isCompleted:n}}(e),l=OE({display:"flex",alignItems:"center",flexDirection:"row"},WE().step);return F.createElement(_x.div,OE({},i,{__css:l,"data-active":t.dataAttr(s.isActive),"data-completed":t.dataAttr(s.isCompleted),className:t.cx("saas-stepper__step",e.className)}),/*#__PURE__*/F.createElement(YE,{icon:n,isActive:a,isCompleted:o}),r&&/*#__PURE__*/F.createElement(XE,null,r))};t.__DEV__&&(GE.displayName="StepperStep");var ZE=function(e){var r=e.isActive,n=RE(e,BE),a=OE({flex:1,mx:2},WE().separator);return F.createElement(_x.div,OE({},n,{"data-active":t.dataAttr(r),className:t.cx("saas-stepper__separator",e.className),__css:a}))};t.__DEV__&&(ZE.displayName="StepperSeparator");var XE=function(e){var r=WE();return F.createElement(_x.p,OE({},e,{__css:r.title,className:t.cx("saas-stepper__title",e.className)}))};t.__DEV__&&(XE.displayName="StepperStepTitle");var KE=function(e){var r=WE();return F.createElement(_x.div,OE({__css:r.completed},e,{className:t.cx("saas-stepper__completed",e.className)}))};function JE(){return JE=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},JE.apply(this,arguments)}function QE(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}t.__DEV__&&(KE.displayName="StepperCompleted");var ek=["name","label","help","variant","hideLabel","children"],tk=["id","name","label","help","isDisabled","isInvalid","isReadOnly","isRequired","rules","variant"],rk=["name","rules"],nk=["ref"],ak=["name","rules"],ok=["ref"],ik=["type","leftAddon","rightAddon","size"],sk=["type"],lk=["label","type"],ck=["pinLength","pinType","spacing"],uk={},dk=function(e){var t=e.name,n=e.label,a=e.help,o=e.variant,i=e.hideLabel,s=e.children,l=QE(e,ek),c=function(e,t){return r.get(t.errors,e)}(t,r.useFormContext().formState);return F.createElement(Kp,JE({variant:o},l,{isInvalid:!!c}),n&&!i?/*#__PURE__*/F.createElement(uf,{variant:o},n):null,/*#__PURE__*/F.createElement(xm,null,s,!a||null!=c&&c.message?null:/*#__PURE__*/F.createElement(Jp,null,a),(null==c?void 0:c.message)&&/*#__PURE__*/F.createElement(sf,null,null==c?void 0:c.message)))};t.__DEV__&&(dk.displayName="BaseField");var pk=F.forwardRef(function(e,t){var r=e.type;return F.createElement(uk[void 0===r?"text":r]||uk.text,JE({ref:t},e))}),fk=function(e,t,n){var a;a=null!=n&&n.isControlled?function(e){return fa(function(t,n){var a=t.name,o=t.rules,i=QE(t,rk),s=r.useFormContext();return F.createElement(r.Controller,{name:a,control:s.control,rules:o,render:function(t){var r=t.field.ref,a=QE(t.field,nk);return F.createElement(e,JE({},a,i,{ref:vr(n,r)}))}})})}(t):function(e){return fa(function(t,n){var a=t.name,o=t.rules,i=QE(t,ak),s=(0,r.useFormContext().register)(a,o),l=s.ref,c=QE(s,ok);return F.createElement(e,JE({},c,i,{ref:vr(n,l)}))})}(t);var o=function(e,t){var r=t.displayName,n=t.hideLabel,a=t.BaseField,o=fa(function(t,r){var o=t.id,i=t.name,s=t.label,l=t.help,c=t.isDisabled,u=t.isInvalid,d=t.isReadOnly,p=t.isRequired,f=t.rules,m=t.variant,v=QE(t,tk),h=JE({required:p},f);return F.createElement(a,{id:o,name:i,label:s,help:l,hideLabel:n,isDisabled:c,isInvalid:u,isReadOnly:d,isRequired:p,variant:m},/*#__PURE__*/F.createElement(e,JE({ref:r,id:o,name:i,label:n?s:void 0,rules:h},v)))});return o.displayName=r,o}(a,{displayName:e.split("-").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join("")+"Field",hideLabel:null==n?void 0:n.hideLabel,BaseField:(null==n?void 0:n.BaseField)||dk});return uk[e]=o,o};fk("text",fa(function(e,t){var r=e.type,n=void 0===r?"text":r,a=e.leftAddon,o=e.rightAddon,i=e.size,s=QE(e,ik),l=/*#__PURE__*/F.createElement(Yf,JE({type:n,size:i},s,{ref:t}));return a||o?/*#__PURE__*/F.createElement(Jf,{size:i},a,l,o):l})),fk("number",zy,{isControlled:!0}),fk("password",fa(function(e,t){/*#__PURE__*/return F.createElement(Bx,JE({ref:t},e))})),fk("textarea",Vy),fk("switch",fa(function(e,t){var r=QE(e,sk);return F.createElement(Ly,JE({},r,{ref:t}))}),{isControlled:!0}),fk("select",Jx,{isControlled:!0}),fk("checkbox",fa(function(e,t){var r=e.label,n=QE(e,lk);return F.createElement(Bf,JE({ref:t},n),r)}),{hideLabel:!0}),fk("radio",$x,{isControlled:!0}),fk("native-select",eE,{isControlled:!0}),fk("pin",fa(function(e,t){for(var r=e.pinLength,n=void 0===r?4:r,a=e.pinType,o=e.spacing,i=QE(e,ck),s=[],l=0;l<n;l++)s.push(/*#__PURE__*/F.createElement(cy,{key:l,ref:t}));return F.createElement(ev,{spacing:o},/*#__PURE__*/F.createElement(ly,JE({},i,{type:a}),s))}),{isControlled:!0});var mk=["items"],vk=function(e){return e&&Object.entries(e).map(function(e){var t=e[0];return JE({},QE(e[1],mk),{name:t})})},hk=function(e){return{getFields:function(){return vk(e)},getNestedFields:function(r){var n,a=t.get(e,r);return a?"object"===(null==(n=a.items)?void 0:n.type)?vk(a.items.properties):"object"===a.type?vk(a.properties):[a.items]:[]}}},gk=["mode","resolver","reValidateMode","shouldFocusError","shouldUnregister","shouldUseNativeValidation","criteriaMode","delayError","schema","defaultValues","onSubmit","onError","formRef","children"],yk=fa(function(e,n){var a=e.mode,o=void 0===a?"all":a,i=e.resolver,s=e.reValidateMode,l=e.shouldFocusError,c=e.shouldUnregister,u=e.shouldUseNativeValidation,d=e.criteriaMode,p=e.delayError,f=e.schema,m=e.defaultValues,v=e.onSubmit,h=e.onError,g=e.formRef,y=e.children,b=QE(e,gk),x={mode:o,resolver:i,defaultValues:m,reValidateMode:s,shouldFocusError:l,shouldUnregister:c,shouldUseNativeValidation:u,criteriaMode:d,delayError:p};f&&!i&&(x.resolver=null==yk.getResolver?void 0:yk.getResolver(f));var E=r.useForm(x),k=E.handleSubmit;return F.useImperativeHandle(n,function(){return E},[n,E]),/*#__PURE__*/F.createElement(r.FormProvider,E,/*#__PURE__*/F.createElement(ba.form,JE({ref:g,onSubmit:k(v,h)},b,{className:t.cx("saas-form",e.className)}),y))});yk.getFieldResolver=hk,t.__DEV__&&(yk.displayName="Form");var bk=["children"],xk=function(e){/*#__PURE__*/return F.createElement(ba.div,null,e.children)};t.__DEV__&&(xk.displayName="FormLayoutItem");var Ek=function(e){var r,n,a,o=e.children,i=QE(e,bk),s=JE({},null!=(r=null==(n=na().components)||null==(a=n.FormLayout)?void 0:a.defaultProps)?r:{spacing:4},i);return F.createElement(Gm,JE({},s,{className:t.cx("saas-form__layout",i.className)}),F.Children.map(o,function(e){return F.isValidElement(e)?/*#__PURE__*/F.createElement(xk,null,e):e}))};t.__DEV__&&(Ek.displayName="FormLayout");var kk=function(e,t){return F.Children.map(t,function(t){return F.isValidElement(t)&&t.props.name?F.cloneElement(t,JE({},t.props,{name:e+"."+t.props.name})):t})},_k=rr({name:"ArrayFieldContext"}),wk=_k[0],Sk=_k[1],Ck=rr({name:"ArrayFieldRowContext"}),Ok=Ck[0],Rk=Ck[1],Ak=["children","index"],Ik=["children"],Tk=["children"],Nk=["name","defaultValue","keyName","min","max","children"],Pk=function(e){var t=e.children,r=e.index,n=QE(e,Ak);return F.createElement(Dk,{index:r},/*#__PURE__*/F.createElement(Lk,n,t),/*#__PURE__*/F.createElement(Mk,null))};t.__DEV__&&(Pk.displayName="ArrayFieldRow");var Lk=function(e){var t=e.children,r=QE(e,Ik),n=Rk().name;return F.createElement(Ek,JE({flex:"1",mr:"2"},r),kk(n,t))};t.__DEV__&&(Lk.displayName="ArrayFieldRowFields");var Dk=function(e){var t=e.children,n=function(e){var t=e.index,n=r.useFormContext().clearErrors,a=Sk(),o=a.name,i=a.remove,s=a.fields;return F.useEffect(function(){n(o)},[]),{index:t,isFirst:0===t,isLast:t===s.length-1,name:o+"."+t,remove:F.useCallback(function(){n(o),i(t)},[t])}}({index:e.index});return F.createElement(Ok,{value:n},/*#__PURE__*/F.createElement(_x.div,{__css:{display:"flex",flexDirection:"row",alignItems:"flex-end",width:"100%",mb:4}},t))};t.__DEV__&&(Dk.displayName="ArrayFieldRowContainer");var Mk=function(e){/*#__PURE__*/return F.createElement(_E,JE({icon:/*#__PURE__*/F.createElement(Lx,null),"aria-label":"Remove row"},function(){var e=Rk(),t=e.isFirst,r=e.remove,n=Sk(),a=n.min;return{onClick:function(){return r()},isDisabled:t&&!!(a&&n.fields.length<=a)}}(),e))};t.__DEV__&&(Mk.displayName="ArrayFieldRemoveButton");var jk=function(e){/*#__PURE__*/return F.createElement(_E,JE({icon:/*#__PURE__*/F.createElement(Ax,null),"aria-label":"Add row",float:"right"},function(){var e=Sk(),t=e.append,r=e.defaultValue,n=e.max;return{onClick:function(){return t(r,{shouldFocus:!1})},isDisabled:!!(n&&e.fields.length>=n)}}(),e))};t.__DEV__&&(jk.displayName="ArrayFieldAddButton");var Vk=bx(function(e,t){var r=e.children,n=QE(e,Tk);return F.createElement(Fk,JE({ref:t},n),/*#__PURE__*/F.createElement(Bk,null,function(e){/*#__PURE__*/return F.createElement(F.Fragment,null,e.map(function(e,t){/*#__PURE__*/return F.createElement(Pk,{key:e.id,index:t},r)}))}),/*#__PURE__*/F.createElement(jk,null))});t.__DEV__&&(Vk.displayName="ArrayField");var Bk=function(e){return(0,e.children)(Sk().fields)};t.__DEV__&&(Bk.displayName="ArrayFieldRows");var Fk=F.forwardRef(function(e,t){var n=e.name,a=e.defaultValue,o=e.keyName,i=e.min,s=e.max,l=e.children,c=QE(e,Nk),u=function(e){var t=e.name,n=e.defaultValue,a=void 0===n?{}:n,o=e.keyName,i=e.min,s=e.max,l=r.useFormContext();return JE({},r.useFieldArray({control:l.control,name:t,keyName:o}),{name:t,defaultValue:a,min:i,max:s})}({name:n,defaultValue:a,keyName:o,min:i,max:s});return F.useImperativeHandle(t,function(){return u},[t,u]),/*#__PURE__*/F.createElement(wk,{value:u},/*#__PURE__*/F.createElement(dk,JE({name:n},c),l))});t.__DEV__&&(Fk.displayName="ArrayFieldContainer");var zk=["name","label","hideLabel","children","columns","spacing"],Wk=function(e){var t=ha("FormLegend");return F.createElement(uf,JE({as:"legend",sx:t},e))},Hk=function(e){var t=e.name,r=e.label,n=e.hideLabel,a=e.children,o=e.columns,i=e.spacing,s=QE(e,zk);return F.createElement(Kp,JE({name:t,as:"fieldset"},s),/*#__PURE__*/F.createElement(Wk,{display:n?"none":"block"},r),/*#__PURE__*/F.createElement(Ek,{columns:o,gridGap:i},kk(t,a)))};t.__DEV__&&(Hk.displayName="ObjectField");var Uk=["name","type"],$k=["schema","fieldResolver"],qk=["name","type","defaultValue"],Yk=function(e,t){var r;return null==(r=e.getNestedFields(t))?void 0:r.map(function(e,t){var r=e.name,n=e.type,a=QE(e,Uk);return F.createElement(pk,JE({key:r||t,name:r,type:n},a))})},Gk=function(e){var t=e.schema,r=e.fieldResolver,n=QE(e,$k),a=F.useMemo(function(){return r||yk.getFieldResolver(t)},[t,r]);return F.createElement(Ek,n,a.getFields().map(function(e){var t=e.name,r=e.type,n=QE(e,qk);return"array"===r?/*#__PURE__*/F.createElement(Vk,JE({key:t,name:t},n),Yk(a,t)):"object"===r?/*#__PURE__*/F.createElement(Hk,JE({key:t,name:t},n),Yk(a,t)):/*#__PURE__*/F.createElement(pk,JE({key:t,name:t,type:r},n))}))};t.__DEV__&&(Gk.displayName="Fields");var Zk=["children","disableIfUntouched","disableIfInvalid","isDisabled","isLoading"],Xk=F.forwardRef(function(e,t){var n=e.children,a=e.disableIfUntouched,o=e.disableIfInvalid,i=e.isDisabled,s=e.isLoading,l=QE(e,Zk),c=r.useFormContext().formState;return F.createElement(CE,JE({},l,{ref:t,variant:"primary",type:"submit",isLoading:c.isSubmitting||s,isDisabled:a&&!c.isDirty||o&&!c.isValid||i}),n)});Xk.defaultProps={label:"Submit",disableIfUntouched:!1,disableIfInvalid:!1},t.__DEV__&&(Xk.displayName="SubmitButton");var Kk=["schema","submitLabel","fieldResolver","children"],Jk=fa(function(e,t){var r=e.schema,n=e.submitLabel,a=void 0===n?"Submit":n,o=e.fieldResolver,i=e.children,s=QE(e,Kk);return F.createElement(yk,JE({},s,{schema:r,ref:t}),/*#__PURE__*/F.createElement(Ek,null,/*#__PURE__*/F.createElement(Gk,{schema:r,fieldResolver:o}),a&&/*#__PURE__*/F.createElement(Xk,null,a),i))});t.__DEV__&&(Jk.displayName="AutoForm");var Qk=["onChange"],e_=rr({name:"StepFormContext",errorMessage:"useStepFormContext: `context` is undefined. Seems you forgot to wrap step form components in `<StepForm />`"})[0],t_=["children"],r_=["getFormProps"];F.forwardRef(function(e,r){var n=e.children,a=QE(e,t_),o=function(e){var t=NE(QE(e,Qk)),r=t.activeStep,n=t.isLastStep,a=t.nextStep,o=F.useState({}),i=o[0],s=o[1],l=F.useCallback(function(o){try{var s=i[r];if(n)return Promise.resolve(null==e.onSubmit?void 0:e.onSubmit(o).then(function(){u(JE({},s,{isCompleted:!0}))}).then(a));var l=function(e,r){try{var n=Promise.resolve(null==s.onSubmit?void 0:s.onSubmit(o,t)).then(function(){a()})}catch(e){return}return n&&n.then?n.then(void 0,function(){}):n}();return Promise.resolve(l&&l.then?l.then(function(){}):void 0)}catch(o){return Promise.reject(o)}},[i,r,n]),c=F.useCallback(function(){var e=i[r];return{onSubmit:l,schema:null==e?void 0:e.schema,resolver:null==e?void 0:e.resolver}},[i,l,r]),u=F.useCallback(function(e){s(function(t){var r;return JE({},t,((r={})[e.name]=e,r))})},[i]);return JE({getFormProps:c,updateStep:u,steps:i},t)}(e),i=o.getFormProps,s=QE(o,r_),l=F.useMemo(function(){return s},[s]);return F.createElement(IE,{value:l},/*#__PURE__*/F.createElement(e_,{value:l},/*#__PURE__*/F.createElement(yk,JE({ref:r},a,i()),t.runIfFn(n,o))))});var n_=function(e){return hk(e.properties)};exports.jsonSchemaForm=function(t){return{schema:t,fieldResolver:n_(t),resolver:e.ajvResolver(t)}};
97
104
  //# sourceMappingURL=index.js.map