@saas-ui/forms 1.4.0 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +14 -0
- package/dist/ajv/index.js +82 -76
- package/dist/ajv/index.js.map +1 -1
- package/dist/ajv/index.modern.js +82 -76
- package/dist/ajv/index.modern.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/yup/index.js.map +1 -1
- package/dist/yup/index.modern.js.map +1 -1
- package/dist/zod/index.js.map +1 -1
- package/dist/zod/index.modern.js.map +1 -1
- package/package.json +3 -3
- package/src/field.tsx +2 -2
package/dist/ajv/index.modern.js
CHANGED
@@ -1,85 +1,91 @@
|
|
1
|
-
import{ajvResolver as e}from"@hookform/resolvers/ajv";import{memoizedGet as t,mergeWith as n,filterUndefined as r,omit as o,objectFilter as a,runIfFn as i,__DEV__ as s,cx as l,dataAttr as c,get as u,callAllHandlers as d}from"@chakra-ui/utils";import{useFormContext as p,get as f,useForm as m,FormProvider as h,useFieldArray as v,Controller as y}from"react-hook-form";function g(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}var b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function E(e){var t={exports:{}};return e(t,t.exports),t.exports}var x=Symbol.for("react.element"),w=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),O=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),R=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),T=Symbol.iterator,L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},P=Object.assign,M={};function j(e,t,n){this.props=e,this.context=t,this.refs=M,this.updater=n||L}function D(){}function V(e,t,n){this.props=e,this.context=t,this.refs=M,this.updater=n||L}j.prototype.isReactComponent={},j.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")},j.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},D.prototype=j.prototype;var B=V.prototype=new D;B.constructor=V,P(B,j.prototype),B.isPureReactComponent=!0;var F=Array.isArray,$=Object.prototype.hasOwnProperty,z={current:null},U={key:!0,ref:!0,__self:!0,__source:!0};function W(e,t,n){var r,o={},a=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)$.call(t,r)&&!U.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:x,type:e,key:a,ref:i,props:o,_owner:z.current}}function H(e){return"object"==typeof e&&null!==e&&e.$$typeof===x}var q=/\/+/g;function Y(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 Z(e,t,n,r,o){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var i=!1;if(null===e)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case x:case w:i=!0}}if(i)return o=o(i=e),e=""===r?"."+Y(i,0):r,F(o)?(n="",null!=e&&(n=e.replace(q,"$&/")+"/"),Z(o,t,n,"",function(e){return e})):null!=o&&(H(o)&&(o=function(e,t){return{$$typeof:x,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(q,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=""===r?".":r+":",F(e))for(var s=0;s<e.length;s++){var l=r+Y(a=e[s],s);i+=Z(a,t,n,l,o)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=T&&e[T]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),s=0;!(a=e.next()).done;)i+=Z(a=a.value,t,n,l=r+Y(a,s++),o);else if("object"===a)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 i}function G(e,t,n){if(null==e)return e;var r=[],o=0;return Z(e,r,"","",function(e){return t.call(n,e,o++)}),r}function X(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 K={current:null},J={transition:null},Q={map:G,forEach:function(e,t,n){G(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return G(e,function(){t++}),t},toArray:function(e){return G(e,function(e){return e})||[]},only:function(e){if(!H(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},ee={Children:Q,Component:j,Fragment:k,Profiler:C,PureComponent:V,StrictMode:S,Suspense:A,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:K,ReactCurrentBatchConfig:J,ReactCurrentOwner:z},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=P({},e.props),o=e.key,a=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,i=z.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)$.call(t,l)&&!U.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:x,type:e.type,key:o,ref:a,props:r,_owner:i}},createContext:function(e){return(e={$$typeof:O,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:_,_context:e},e.Consumer=e},createElement:W,createFactory:function(e){var t=W.bind(null,e);return t.type=e,t},createRef:function(){return{current:null}},forwardRef:function(e){return{$$typeof:N,render:e}},isValidElement:H,lazy:function(e){return{$$typeof:I,_payload:{_status:-1,_result:e},_init:X}},memo:function(e,t){return{$$typeof:R,type:e,compare:void 0===t?null:t}},startTransition:function(e){var t=J.transition;J.transition={};try{e()}finally{J.transition=t}},unstable_act:function(){throw Error("act(...) is not supported in production builds of React.")},useCallback:function(e,t){return K.current.useCallback(e,t)},useContext:function(e){return K.current.useContext(e)},useDebugValue:function(){},useDeferredValue:function(e){return K.current.useDeferredValue(e)},useEffect:function(e,t){return K.current.useEffect(e,t)},useId:function(){return K.current.useId()},useImperativeHandle:function(e,t,n){return K.current.useImperativeHandle(e,t,n)},useInsertionEffect:function(e,t){return K.current.useInsertionEffect(e,t)},useLayoutEffect:function(e,t){return K.current.useLayoutEffect(e,t)},useMemo:function(e,t){return K.current.useMemo(e,t)},useReducer:function(e,t,n){return K.current.useReducer(e,t,n)},useRef:function(e){return K.current.useRef(e)},useState:function(e){return K.current.useState(e)},useSyncExternalStore:function(e,t,n){return K.current.useSyncExternalStore(e,t,n)},useTransition:function(){return K.current.useTransition()},version:"18.2.0"},te=E(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"),o=Symbol.for("react.fragment"),a=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"),h=Symbol.iterator;function v(e){if(null===e||"object"!=typeof e)return null;var t=h&&e[h]||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={},w=null;function k(e){w=e}x.setExtraStackFrame=function(e){w=e},x.getCurrentStack=null,x.getStackAddendum=function(){var e="";w&&(e+=w);var t=x.getCurrentStack;return t&&(e+=t()||""),e};var S={ReactCurrentDispatcher:y,ReactCurrentBatchConfig:g,ReactCurrentOwner:E};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("warn",e,n)}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];O("error",e,n)}function O(e,t,n){var r=S.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map(function(e){return String(e)});o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}S.ReactDebugCurrentFrame=x,S.ReactCurrentActQueue=b;var N={};function A(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",o=r+"."+t;N[o]||(_("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),N[o]=!0)}var R={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){A(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){A(e,"replaceState")},enqueueSetState:function(e,t,n,r){A(e,"setState")}},I=Object.assign,T={};function L(e,t,n){this.props=e,this.context=t,this.refs=T,this.updater=n||R}Object.freeze(T),L.prototype.isReactComponent={},L.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")},L.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var P={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)."]},M=function(e,t){Object.defineProperty(L.prototype,e,{get:function(){C("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var j in P)P.hasOwnProperty(j)&&M(j,P[j]);function D(){}function V(e,t,n){this.props=e,this.context=t,this.refs=T,this.updater=n||R}D.prototype=L.prototype;var B=V.prototype=new D;B.constructor=V,I(B,L.prototype),B.isPureReactComponent=!0;var F=Array.isArray;function $(e){return F(e)}function z(e){return""+e}function U(e){if(function(e){try{return z(e),!1}catch(e){return!0}}(e))return _("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)),z(e)}function W(e){return e.displayName||"Context"}function H(e){if(null==e)return null;if("number"==typeof e.tag&&_("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 o:return"Fragment";case r:return"Portal";case i:return"Profiler";case a:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return W(e)+".Consumer";case s:return W(e._context)+".Provider";case c:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?"ForwardRef("+o+")":"ForwardRef"}(e,e.render);case p:var t=e.displayName||null;return null!==t?t:H(e.type)||"Memo";case f:var n=e._payload,m=e._init;try{return H(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,_("%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,_("%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=H(E.current.type);Z[t]||(_('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,o,a,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:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function re(e,t,n){var r,o={},a=null,i=null,s=null,l=null;if(null!=t)for(r in K(t)&&(i=t.ref,te(t)),J(t)&&(U(t.key),a=""+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)&&(o[r]=t[r]);var c=arguments.length-2;if(1===c)o.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),o.children=u}if(e&&e.defaultProps){var p=e.defaultProps;for(r in p)void 0===o[r]&&(o[r]=p[r])}if(a||i){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;a&&Q(o,f),i&&ee(o,f)}return ne(e,a,i,s,l,E.current,o)}function oe(e,t,n){if(null==e)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r,o,a=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)&&(U(t.key),i=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)G.call(t,r)&&!X.hasOwnProperty(r)&&(a[r]=void 0===t[r]&&void 0!==o?o[r]:t[r]);var d=arguments.length-2;if(1===d)a.children=n;else if(d>1){for(var p=Array(d),f=0;f<d;f++)p[f]=arguments[f+2];a.children=p}return ne(e.type,i,s,l,c,u,a)}function ae(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?(U(e.key),n={"=":"=0",":":"=2"},"$"+(""+e.key).replace(/[=:]/g,function(e){return n[e]})):t.toString(36);var n}function de(e,t,o,a,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 p=e,f=i(p),m=""===a?"."+ue(p,0):a;if($(f)){var h="";null!=m&&(h=ce(m)+"/"),de(f,t,h,"",function(e){return e})}else null!=f&&(ae(f)&&(!f.key||p&&p.key===f.key||U(f.key),l=f,c=o+(!f.key||p&&p.key===f.key?"":ce(""+f.key)+"/")+m,f=ne(l.type,c,l.ref,l._self,l._source,l._owner,l.props)),t.push(f));return 1}var y=0,g=""===a?".":a+":";if($(e))for(var b=0;b<e.length;b++)y+=de(u=e[b],t,o,g+ue(u,b),i);else{var E=v(e);if("function"==typeof E){var x=e;E===x.entries&&(se||C("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),se=!0);for(var w,k=E.call(x),S=0;!(w=k.next()).done;)y+=de(u=w.value,t,o,g+ue(u,S++),i)}else if("object"===s){var _=String(e);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===_?"object with keys {"+Object.keys(e).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.")}}return y}function pe(e,t,n){if(null==e)return e;var r=[],o=0;return de(e,r,"","",function(e){return t.call(n,e,o++)}),r}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 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&&_("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||_("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===o||e===i||e===a||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 he(){var e=y.current;return null===e&&_("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 ve,ye,ge,be,Ee,xe,we,ke=0;function Se(){}Se.__reactDisabledLog=!0;var Ce,_e=S.ReactCurrentDispatcher;function Oe(e,t,n){if(void 0===Ce)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);Ce=r&&r[1]||""}return"\n"+Ce+e}var Ne,Ae=!1,Re="function"==typeof WeakMap?WeakMap:Map;function Ie(e,t){if(!e||Ae)return"";var n,r=Ne.get(e);if(void 0!==r)return r;Ae=!0;var o,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=_e.current,_e.current=null,function(){if(0===ke){ve=console.log,ye=console.info,ge=console.warn,be=console.error,Ee=console.group,xe=console.groupCollapsed,we=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Se,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ke++}();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&&Ne.set(e,d),d}}while(c>=1&&u>=0);break}}}finally{Ae=!1,_e.current=o,function(){if(0==--ke){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:ve}),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:we})})}ke<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=a}var p=e?e.displayName||e.name:"",f=p?Oe(p):"";return"function"==typeof e&&Ne.set(e,f),f}function Te(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 p:return Te(e.type,t,n);case f:var r=e._payload,o=e._init;try{return Te(o(r),t,n)}catch(e){}}return""}Ne=new Re;var Le,Pe={},Me=S.ReactDebugCurrentFrame;function je(e){if(e){var t=e._owner,n=Te(e.type,e._source,t?t.type:null);Me.setExtraStackFrame(n)}else Me.setExtraStackFrame(null)}function De(e){if(e){var t=e._owner;k(Te(e.type,e._source,t?t.type:null))}else k(null)}function Ve(){if(E.current){var e=H(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}Le=!1;var Fe={};function $e(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=Ve();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 "+H(e._owner.type)+"."),De(e),_('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),De(null)}}}function ze(e,t){if("object"==typeof e)if($(e))for(var n=0;n<e.length;n++){var r=e[n];ae(r)&&$e(r,t)}else if(ae(e))e._store&&(e._store.validated=!0);else if(e){var o=v(e);if("function"==typeof o&&o!==e.entries)for(var a,i=o.call(e);!(a=i.next()).done;)ae(a.value)&&$e(a.value,t)}}function Ue(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!==p)return;t=n.propTypes}if(t){var r=H(n);!function(e,t,n,r,o){var a=Function.call.bind(G);for(var i in e)if(a(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||(je(o),_("%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),je(null)),s instanceof Error&&!(s.message in Pe)&&(Pe[s.message]=!0,je(o),_("Failed %s type: %s",n,s.message),je(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||Le||(Le=!0,_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",H(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function We(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){De(e),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),De(null);break}}null!==e.ref&&(De(e),_("Invalid attribute `ref` supplied to `React.Fragment`."),De(null))}function He(e,t,r){var a=me(e);if(!a){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":$(e)?s="array":void 0!==e&&e.$$typeof===n?(s="<"+(H(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,_("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(a)for(var u=2;u<arguments.length;u++)ze(arguments[u],e);return e===o?We(c):Ue(c),c}var qe=!1,Ye=!1,Ze=null,Ge=0,Xe=!1;function Ke(e){e!==Ge-1&&_("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 o=b.current;if(null!==o)try{et(o),function(a){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&&_("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===o.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=He,nt={map:pe,forEach:function(e,t,n){pe(e,function(){t.apply(this,arguments)},n)},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(!ae(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}};t.Children=nt,t.Component=L,t.Fragment=o,t.Profiler=i,t.PureComponent=V,t.StrictMode=a,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=S,t.cloneElement=function(e,t,n){for(var r=oe.apply(this,arguments),o=2;o<arguments.length;o++)ze(arguments[o],r.type);return Ue(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,o=!1,a={$$typeof:l,_context:t};return Object.defineProperties(a,{Provider:{get:function(){return r||(r=!0,_("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,_("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){o||(C("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),o=!0)}}}),t.Consumer=a,t._currentRenderer=null,t._currentRenderer2=null,t},t.createElement=tt,t.createFactory=function(e){var t=He.bind(null,e);return t.type=e,qe||(qe=!0,C("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 C("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?_("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?_("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&_("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||_("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=ae,t.lazy=function(e){var t,n,r={$$typeof:f,_payload:{_status:-1,_result:e},_init:fe};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){_("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){_("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)||_("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var n,r={$$typeof:p,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&&C("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 o=b.current;null!==o&&(b.didScheduleLegacyUpdate=!1,et(o))}}catch(e){throw Ke(t),e}finally{b.isBatchingLegacy=r}if(null!==n&&"object"==typeof n&&"function"==typeof n.then){var a=n,i=!1,s={then:function(e,n){i=!0,a.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,_("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 he().useCallback(e,t)},t.useContext=function(e){var t=he();if(void 0!==e._context){var n=e._context;n.Consumer===e?_("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&&_("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 he().useDebugValue(e,t)},t.useDeferredValue=function(e){return he().useDeferredValue(e)},t.useEffect=function(e,t){return he().useEffect(e,t)},t.useId=function(){return he().useId()},t.useImperativeHandle=function(e,t,n){return he().useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return he().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return he().useLayoutEffect(e,t)},t.useMemo=function(e,t){return he().useMemo(e,t)},t.useReducer=function(e,t,n){return he().useReducer(e,t,n)},t.useRef=function(e){return he().useRef(e)},t.useState=function(e){return he().useState(e)},t.useSyncExternalStore=function(e,t,n){return he().useSyncExternalStore(e,t,n)},t.useTransition=function(){return he().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)}()}),ne=E(function(e){e.exports="production"===process.env.NODE_ENV?ee:te}),re=/*#__PURE__*/g({__proto__:null,default:ne},[ne]),oe=Boolean(null==globalThis?void 0:globalThis.document)?ne.useLayoutEffect:ne.useEffect,ae=ne.createContext({});function ie(){const e=ne.useContext(ae);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e}ae.displayName="ColorModeContext";var se=E(function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",a="[object Function]",i="[object Object]",s=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[o]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c[a]=c["[object Map]"]=c["[object Number]"]=c[i]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1;var u="object"==typeof b&&b&&b.Object===Object&&b,d="object"==typeof self&&self&&self.Object===Object&&self,p=u||d||Function("return this")(),f=t&&!t.nodeType&&t,m=f&&e&&!e.nodeType&&e,h=m&&m.exports===f,v=h&&u.process,y=function(){try{return m&&m.require&&m.require("util").types||v&&v.binding&&v.binding("util")}catch(e){}}(),g=y&&y.isTypedArray;function E(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var x,w=Array.prototype,k=Object.prototype,S=p["__core-js_shared__"],C=Function.prototype.toString,_=k.hasOwnProperty,O=(x=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||""))?"Symbol(src)_1."+x:"",N=k.toString,A=C.call(Object),R=RegExp("^"+C.call(_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),I=h?p.Buffer:void 0,T=p.Symbol,L=p.Uint8Array,P=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),M=Object.create,j=k.propertyIsEnumerable,D=w.splice,V=T?T.toStringTag:void 0,B=function(){try{var e=ae(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),F=I?I.isBuffer:void 0,$=Math.max,z=Date.now,U=ae(p,"Map"),W=ae(Object,"create"),H=function(){function e(){}return function(t){if(!Ee(t))return{};if(M)return M(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Y(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Z(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function G(e){var t=this.__data__=new Y(e);this.size=t.size}function X(e,t,n){(void 0!==n&&!fe(e[t],n)||void 0===n&&!(t in e))&&Q(e,t,n)}function K(e,t,n){var r=e[t];_.call(e,t)&&fe(r,n)&&(void 0!==n||t in e)||Q(e,t,n)}function J(e,t){for(var n=e.length;n--;)if(fe(e[n][0],t))return n;return-1}function Q(e,t,n){"__proto__"==t&&B?B(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ee(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":V&&V in Object(e)?function(e){var t=_.call(e,V),n=e[V];try{e[V]=void 0;var r=!0}catch(e){}var o=N.call(e);return r&&(t?e[V]=n:delete e[V]),o}(e):function(e){return N.call(e)}(e)}function te(e){return xe(e)&&ee(e)==o}function ne(e,t,n,r,o){e!==t&&function(e,t,n){for(var r=-1,o=Object(e),a=n(e),i=a.length;i--;){var s=a[++r];if(!1===t(o[s],s))break}}(t,function(a,s){if(o||(o=new G),Ee(a))!function(e,t,n,r,o,a,s){var l=le(e,n),c=le(t,n),u=s.get(c);if(u)X(e,n,u);else{var d,p,f,m,h=a?a(l,c,n+"",e,t,s):void 0,v=void 0===h;if(v){var y=he(c),g=!y&&ye(c),b=!y&&!g&&we(c);h=c,y||g||b?he(l)?h=l:xe(m=l)&&ve(m)?h=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(l):g?(v=!1,h=c.slice()):b?(v=!1,f=new(p=(d=c).buffer).constructor(p.byteLength),new L(f).set(new L(p)),h=new d.constructor(f,d.byteOffset,d.length)):h=[]:function(e){if(!xe(e)||ee(e)!=i)return!1;var t=P(e);if(null===t)return!0;var n=_.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&C.call(n)==A}(c)||me(c)?(h=l,me(l)?h=function(e){return function(e,t,n,r){var o=!n;n||(n={});for(var a=-1,i=t.length;++a<i;){var s=t[a],l=void 0;void 0===l&&(l=e[s]),o?Q(n,s,l):K(n,s,l)}return n}(e,ke(e))}(l):Ee(l)&&!ge(l)||(h=function(e){return"function"!=typeof e.constructor||se(e)?{}:H(P(e))}(c))):v=!1}v&&(s.set(c,h),o(h,c,r,a,s),s.delete(c)),X(e,n,h)}}(e,t,s,n,ne,r,o);else{var l=r?r(le(e,s),a,s+"",e,t,o):void 0;void 0===l&&(l=a),X(e,s,l)}},ke)}q.prototype.clear=function(){this.__data__=W?W(null):{},this.size=0},q.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},q.prototype.get=function(e){var t=this.__data__;if(W){var r=t[e];return r===n?void 0:r}return _.call(t,e)?t[e]:void 0},q.prototype.has=function(e){var t=this.__data__;return W?void 0!==t[e]:_.call(t,e)},q.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=W&&void 0===t?n:t,this},Y.prototype.clear=function(){this.__data__=[],this.size=0},Y.prototype.delete=function(e){var t=this.__data__,n=J(t,e);return!(n<0||(n==t.length-1?t.pop():D.call(t,n,1),--this.size,0))},Y.prototype.get=function(e){var t=this.__data__,n=J(t,e);return n<0?void 0:t[n][1]},Y.prototype.has=function(e){return J(this.__data__,e)>-1},Y.prototype.set=function(e,t){var n=this.__data__,r=J(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Z.prototype.clear=function(){this.size=0,this.__data__={hash:new q,map:new(U||Y),string:new q}},Z.prototype.delete=function(e){var t=oe(this,e).delete(e);return this.size-=t?1:0,t},Z.prototype.get=function(e){return oe(this,e).get(e)},Z.prototype.has=function(e){return oe(this,e).has(e)},Z.prototype.set=function(e,t){var n=oe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},G.prototype.clear=function(){this.__data__=new Y,this.size=0},G.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},G.prototype.get=function(e){return this.__data__.get(e)},G.prototype.has=function(e){return this.__data__.has(e)},G.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Y){var r=n.__data__;if(!U||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Z(r)}return n.set(e,t),this.size=n.size,this};var re=B?function(e,t){return B(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:_e;function oe(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ae(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Ee(e)||(t=e,O&&O in t))&&(ge(e)?R:s).test(function(e){if(null!=e){try{return C.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}(n)?n:void 0}function ie(e,t){var n=typeof e;return!!(t=null==t?r:t)&&("number"==n||"symbol"!=n&&l.test(e))&&e>-1&&e%1==0&&e<t}function se(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||k)}function le(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ce,ue,de,pe=(ce=re,ue=0,de=0,function(){var e=z(),t=16-(e-de);if(de=e,t>0){if(++ue>=800)return arguments[0]}else ue=0;return ce.apply(void 0,arguments)});function fe(e,t){return e===t||e!=e&&t!=t}var me=te(function(){return arguments}())?te:function(e){return xe(e)&&_.call(e,"callee")&&!j.call(e,"callee")},he=Array.isArray;function ve(e){return null!=e&&be(e.length)&&!ge(e)}var ye=F||function(){return!1};function ge(e){if(!Ee(e))return!1;var t=ee(e);return t==a||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function be(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Ee(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function xe(e){return null!=e&&"object"==typeof e}var we=g?function(e){return function(t){return e(t)}}(g):function(e){return xe(e)&&be(e.length)&&!!c[ee(e)]};function ke(e){return ve(e)?function(e,t){var n=he(e),r=!n&&me(e),o=!n&&!r&&ye(e),a=!n&&!r&&!o&&we(e),i=n||r||o||a,s=i?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var c in e)i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ie(c,l))||s.push(c);return s}(e):function(e){if(!Ee(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=se(e),n=[];for(var r in e)("constructor"!=r||!t&&_.call(e,r))&&n.push(r);return n}(e)}var Se,Ce=(Se=function(e,t,n,r){ne(e,t,n,r)},function(e,t){return pe(function(e,t,n){return t=$(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=$(r.length-t,0),i=Array(a);++o<a;)i[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(i),E(e,this,s)}}(e,void 0,_e),e+"")}(function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,a=r>2?t[2]:void 0;for(o=Se.length>3&&"function"==typeof o?(r--,o):void 0,a&&function(e,t,n){if(!Ee(n))return!1;var r=typeof t;return!!("number"==r?ve(n)&&ie(t,n.length):"string"==r&&t in n)&&fe(n[t],e)}(t[0],t[1],a)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var i=t[n];i&&Se(e,i,n,o)}return e}));function _e(e){return e}e.exports=Ce});function le(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}function ce(e,...t){return ue(e)?e(...t):e}var ue=e=>"function"==typeof e,de=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e,pe=(e,t)=>n=>{const r=String(t),o=(e=>/!(important)?$/.test(e))(r),a=de(r),i=e?`${e}.${a}`:a;let s=le(n.__cssMap)&&i in n.__cssMap?n.__cssMap[i].varRef:t;return s=de(s),o?`${s} !important`:s};function fe(e){const{scale:t,transform:n,compose:r}=e;return(e,o)=>{const a=pe(t,e)(o);let i=(null==n?void 0:n(a,o))??a;return r&&(i=r(i,o)),i}}var me=(...e)=>t=>e.reduce((e,t)=>t(e),t);function he(e,t){return n=>{const r={property:n,scale:e};return r.transform=fe({scale:e,transform:t}),r}}var ve=({rtl:e,ltr:t})=>n=>"rtl"===n.direction?e:t,ye=["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))"],ge={"--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(" ")},be={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,/*!*/ /*!*/)"},Ee={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},xe={"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"},we=new Set(Object.values(xe)),ke=/* @__PURE__ */new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Se=e=>e.trim(),Ce=e=>"string"==typeof e&&e.includes("(")&&e.includes(")"),_e=e=>t=>`${e}(${t})`,Oe={filter:e=>"auto"!==e?e:ge,backdropFilter:e=>"auto"!==e?e:be,ring:e=>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(", ")}}(Oe.px(e)),bgClip:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},transform:e=>"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...ye].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...ye].join(" "):e,vh:e=>"$100vh"===e?"var(--chakra-vh)":e,px(e){if(null==e)return e;const{unitless:t}=(e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}})(e);return t||"number"==typeof e?`${e}px`:e},fraction:e=>"number"!=typeof e||e>1?e:100*e+"%",float:(e,t)=>"rtl"===t.direction?{left:"right",right:"left"}[e]:e,degree(e){if(function(e){return/^var\(--.+\)$/.test(e)}(e)||null==e)return e;const t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},gradient:(e,t)=>function(e,t){var n;if(null==e||ke.has(e))return e;const{type:r,values:o}=(null==(n=/(?<type>^[a-z-A-Z]+)\((?<values>(.*))\)/g.exec(e))?void 0:n.groups)??{};if(!r||!o)return e;const a=r.includes("-gradient")?r:`${r}-gradient`,[i,...s]=o.split(",").map(Se).filter(Boolean);if(0===(null==s?void 0:s.length))return e;s.unshift(i in xe?xe[i]:i);const l=s.map(e=>{if(we.has(e))return e;const n=e.indexOf(" "),[r,o]=-1!==n?[e.substr(0,n),e.substr(n+1)]:[e],a=Ce(o)?o:o&&o.split(" "),i=`colors.${r}`,s=i in t.__cssMap?t.__cssMap[i].varRef:r;return a?[s,...Array.isArray(a)?a:[a]].join(" "):s});return`${a}(${l.join(", ")})`}(e,t??{}),blur:_e("blur"),opacity:_e("opacity"),brightness:_e("brightness"),contrast:_e("contrast"),dropShadow:_e("drop-shadow"),grayscale:_e("grayscale"),hueRotate:_e("hue-rotate"),invert:_e("invert"),saturate:_e("saturate"),sepia:_e("sepia"),bgImage:e=>null==e||Ce(e)||ke.has(e)?e:`url(${e})`,outline(e){const t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:n}=Ee[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},Ne={borderWidths:he("borderWidths"),borderStyles:he("borderStyles"),colors:he("colors"),borders:he("borders"),radii:he("radii",Oe.px),space:he("space",me(Oe.vh,Oe.px)),spaceT:he("space",me(Oe.vh,Oe.px)),degreeT:e=>({property:e,transform:Oe.degree}),prop:(e,t,n)=>({property:e,scale:t,...t&&{transform:fe({scale:t,transform:n})}}),propT:(e,t)=>({property:e,transform:t}),sizes:he("sizes",me(Oe.vh,Oe.px)),sizesT:he("sizes",me(Oe.vh,Oe.fraction)),shadows:he("shadows"),logical:function(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:ve(t),transform:n?fe({scale:n,compose:r}):r}},blur:he("blur",Oe.blur)},Ae={background:Ne.colors("background"),backgroundColor:Ne.colors("backgroundColor"),backgroundImage:Ne.propT("backgroundImage",Oe.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Oe.bgClip},bgSize:Ne.prop("backgroundSize"),bgPosition:Ne.prop("backgroundPosition"),bg:Ne.colors("background"),bgColor:Ne.colors("backgroundColor"),bgPos:Ne.prop("backgroundPosition"),bgRepeat:Ne.prop("backgroundRepeat"),bgAttachment:Ne.prop("backgroundAttachment"),bgGradient:Ne.propT("backgroundImage",Oe.gradient),bgClip:{transform:Oe.bgClip}};Object.assign(Ae,{bgImage:Ae.backgroundImage,bgImg:Ae.backgroundImage});var Re={border:Ne.borders("border"),borderWidth:Ne.borderWidths("borderWidth"),borderStyle:Ne.borderStyles("borderStyle"),borderColor:Ne.colors("borderColor"),borderRadius:Ne.radii("borderRadius"),borderTop:Ne.borders("borderTop"),borderBlockStart:Ne.borders("borderBlockStart"),borderTopLeftRadius:Ne.radii("borderTopLeftRadius"),borderStartStartRadius:Ne.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:Ne.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:Ne.radii("borderTopRightRadius"),borderStartEndRadius:Ne.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:Ne.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:Ne.borders("borderRight"),borderInlineEnd:Ne.borders("borderInlineEnd"),borderBottom:Ne.borders("borderBottom"),borderBlockEnd:Ne.borders("borderBlockEnd"),borderBottomLeftRadius:Ne.radii("borderBottomLeftRadius"),borderBottomRightRadius:Ne.radii("borderBottomRightRadius"),borderLeft:Ne.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:Ne.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:Ne.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:Ne.borders(["borderLeft","borderRight"]),borderInline:Ne.borders("borderInline"),borderY:Ne.borders(["borderTop","borderBottom"]),borderBlock:Ne.borders("borderBlock"),borderTopWidth:Ne.borderWidths("borderTopWidth"),borderBlockStartWidth:Ne.borderWidths("borderBlockStartWidth"),borderTopColor:Ne.colors("borderTopColor"),borderBlockStartColor:Ne.colors("borderBlockStartColor"),borderTopStyle:Ne.borderStyles("borderTopStyle"),borderBlockStartStyle:Ne.borderStyles("borderBlockStartStyle"),borderBottomWidth:Ne.borderWidths("borderBottomWidth"),borderBlockEndWidth:Ne.borderWidths("borderBlockEndWidth"),borderBottomColor:Ne.colors("borderBottomColor"),borderBlockEndColor:Ne.colors("borderBlockEndColor"),borderBottomStyle:Ne.borderStyles("borderBottomStyle"),borderBlockEndStyle:Ne.borderStyles("borderBlockEndStyle"),borderLeftWidth:Ne.borderWidths("borderLeftWidth"),borderInlineStartWidth:Ne.borderWidths("borderInlineStartWidth"),borderLeftColor:Ne.colors("borderLeftColor"),borderInlineStartColor:Ne.colors("borderInlineStartColor"),borderLeftStyle:Ne.borderStyles("borderLeftStyle"),borderInlineStartStyle:Ne.borderStyles("borderInlineStartStyle"),borderRightWidth:Ne.borderWidths("borderRightWidth"),borderInlineEndWidth:Ne.borderWidths("borderInlineEndWidth"),borderRightColor:Ne.colors("borderRightColor"),borderInlineEndColor:Ne.colors("borderInlineEndColor"),borderRightStyle:Ne.borderStyles("borderRightStyle"),borderInlineEndStyle:Ne.borderStyles("borderInlineEndStyle"),borderTopRadius:Ne.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:Ne.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:Ne.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:Ne.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Re,{rounded:Re.borderRadius,roundedTop:Re.borderTopRadius,roundedTopLeft:Re.borderTopLeftRadius,roundedTopRight:Re.borderTopRightRadius,roundedTopStart:Re.borderStartStartRadius,roundedTopEnd:Re.borderStartEndRadius,roundedBottom:Re.borderBottomRadius,roundedBottomLeft:Re.borderBottomLeftRadius,roundedBottomRight:Re.borderBottomRightRadius,roundedBottomStart:Re.borderEndStartRadius,roundedBottomEnd:Re.borderEndEndRadius,roundedLeft:Re.borderLeftRadius,roundedRight:Re.borderRightRadius,roundedStart:Re.borderInlineStartRadius,roundedEnd:Re.borderInlineEndRadius,borderStart:Re.borderInlineStart,borderEnd:Re.borderInlineEnd,borderTopStartRadius:Re.borderStartStartRadius,borderTopEndRadius:Re.borderStartEndRadius,borderBottomStartRadius:Re.borderEndStartRadius,borderBottomEndRadius:Re.borderEndEndRadius,borderStartRadius:Re.borderInlineStartRadius,borderEndRadius:Re.borderInlineEndRadius,borderStartWidth:Re.borderInlineStartWidth,borderEndWidth:Re.borderInlineEndWidth,borderStartColor:Re.borderInlineStartColor,borderEndColor:Re.borderInlineEndColor,borderStartStyle:Re.borderInlineStartStyle,borderEndStyle:Re.borderInlineEndStyle});var Ie={color:Ne.colors("color"),textColor:Ne.colors("color"),fill:Ne.colors("fill"),stroke:Ne.colors("stroke")},Te={boxShadow:Ne.shadows("boxShadow"),mixBlendMode:!0,blendMode:Ne.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:Ne.prop("backgroundBlendMode"),opacity:!0};Object.assign(Te,{shadow:Te.boxShadow});var Le={filter:{transform:Oe.filter},blur:Ne.blur("--chakra-blur"),brightness:Ne.propT("--chakra-brightness",Oe.brightness),contrast:Ne.propT("--chakra-contrast",Oe.contrast),hueRotate:Ne.degreeT("--chakra-hue-rotate"),invert:Ne.propT("--chakra-invert",Oe.invert),saturate:Ne.propT("--chakra-saturate",Oe.saturate),dropShadow:Ne.propT("--chakra-drop-shadow",Oe.dropShadow),backdropFilter:{transform:Oe.backdropFilter},backdropBlur:Ne.blur("--chakra-backdrop-blur"),backdropBrightness:Ne.propT("--chakra-backdrop-brightness",Oe.brightness),backdropContrast:Ne.propT("--chakra-backdrop-contrast",Oe.contrast),backdropHueRotate:Ne.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:Ne.propT("--chakra-backdrop-invert",Oe.invert),backdropSaturate:Ne.propT("--chakra-backdrop-saturate",Oe.saturate)},Pe={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Oe.flexDirection},experimental_spaceX:{static:{"& > :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))"}},transform:fe({scale:"space",transform:e=>null!==e?{"--chakra-space-x":e}:null})},experimental_spaceY:{static:{"& > :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))"}},transform:fe({scale:"space",transform:e=>null!=e?{"--chakra-space-y":e}:null})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:Ne.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:Ne.space("gap"),rowGap:Ne.space("rowGap"),columnGap:Ne.space("columnGap")};Object.assign(Pe,{flexDir:Pe.flexDirection});var Me={gridGap:Ne.space("gridGap"),gridColumnGap:Ne.space("gridColumnGap"),gridRowGap:Ne.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},je={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Oe.outline},outlineOffset:!0,outlineColor:Ne.colors("outlineColor")},De={width:Ne.sizesT("width"),inlineSize:Ne.sizesT("inlineSize"),height:Ne.sizes("height"),blockSize:Ne.sizes("blockSize"),boxSize:Ne.sizes(["width","height"]),minWidth:Ne.sizes("minWidth"),minInlineSize:Ne.sizes("minInlineSize"),minHeight:Ne.sizes("minHeight"),minBlockSize:Ne.sizes("minBlockSize"),maxWidth:Ne.sizes("maxWidth"),maxInlineSize:Ne.sizes("maxInlineSize"),maxHeight:Ne.sizes("maxHeight"),maxBlockSize:Ne.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:Ne.propT("float",Oe.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(De,{w:De.width,h:De.height,minW:De.minWidth,maxW:De.maxWidth,minH:De.minHeight,maxH:De.maxHeight,overscroll:De.overscrollBehavior,overscrollX:De.overscrollBehaviorX,overscrollY:De.overscrollBehaviorY});var Ve={listStyleType:!0,listStylePosition:!0,listStylePos:Ne.prop("listStylePosition"),listStyleImage:!0,listStyleImg:Ne.prop("listStyleImage")},Be=(e=>{const t=/* @__PURE__ */new WeakMap;return(n,r,o,a)=>{if(void 0===n)return e(n,r,o);t.has(n)||t.set(n,/* @__PURE__ */new Map);const i=t.get(n);if(i.has(r))return i.get(r);const s=e(n,r,o,a);return i.set(r,s),s}})(function(e,t,n,r){const o="string"==typeof t?t.split("."):[t];for(r=0;r<o.length&&e;r+=1)e=e[o[r]];return void 0===e?n:e}),Fe={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},$e={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},ze=(e,t,n)=>{const r={},o=Be(e,t,{});for(const e in o)e in n&&null!=n[e]||(r[e]=o[e]);return r},Ue={srOnly:{transform:e=>!0===e?Fe:"focusable"===e?$e:{}},layerStyle:{processResult:!0,transform:(e,t,n)=>ze(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>ze(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>ze(t,e,n)}},We={position:!0,pos:Ne.prop("position"),zIndex:Ne.prop("zIndex","zIndices"),inset:Ne.spaceT("inset"),insetX:Ne.spaceT(["left","right"]),insetInline:Ne.spaceT("insetInline"),insetY:Ne.spaceT(["top","bottom"]),insetBlock:Ne.spaceT("insetBlock"),top:Ne.spaceT("top"),insetBlockStart:Ne.spaceT("insetBlockStart"),bottom:Ne.spaceT("bottom"),insetBlockEnd:Ne.spaceT("insetBlockEnd"),left:Ne.spaceT("left"),insetInlineStart:Ne.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:Ne.spaceT("right"),insetInlineEnd:Ne.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(We,{insetStart:We.insetInlineStart,insetEnd:We.insetInlineEnd});var He={ring:{transform:Oe.ring},ringColor:Ne.colors("--chakra-ring-color"),ringOffset:Ne.prop("--chakra-ring-offset-width"),ringOffsetColor:Ne.colors("--chakra-ring-offset-color"),ringInset:Ne.prop("--chakra-ring-inset")},qe={margin:Ne.spaceT("margin"),marginTop:Ne.spaceT("marginTop"),marginBlockStart:Ne.spaceT("marginBlockStart"),marginRight:Ne.spaceT("marginRight"),marginInlineEnd:Ne.spaceT("marginInlineEnd"),marginBottom:Ne.spaceT("marginBottom"),marginBlockEnd:Ne.spaceT("marginBlockEnd"),marginLeft:Ne.spaceT("marginLeft"),marginInlineStart:Ne.spaceT("marginInlineStart"),marginX:Ne.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:Ne.spaceT("marginInline"),marginY:Ne.spaceT(["marginTop","marginBottom"]),marginBlock:Ne.spaceT("marginBlock"),padding:Ne.space("padding"),paddingTop:Ne.space("paddingTop"),paddingBlockStart:Ne.space("paddingBlockStart"),paddingRight:Ne.space("paddingRight"),paddingBottom:Ne.space("paddingBottom"),paddingBlockEnd:Ne.space("paddingBlockEnd"),paddingLeft:Ne.space("paddingLeft"),paddingInlineStart:Ne.space("paddingInlineStart"),paddingInlineEnd:Ne.space("paddingInlineEnd"),paddingX:Ne.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:Ne.space("paddingInline"),paddingY:Ne.space(["paddingTop","paddingBottom"]),paddingBlock:Ne.space("paddingBlock")};Object.assign(qe,{m:qe.margin,mt:qe.marginTop,mr:qe.marginRight,me:qe.marginInlineEnd,marginEnd:qe.marginInlineEnd,mb:qe.marginBottom,ml:qe.marginLeft,ms:qe.marginInlineStart,marginStart:qe.marginInlineStart,mx:qe.marginX,my:qe.marginY,p:qe.padding,pt:qe.paddingTop,py:qe.paddingY,px:qe.paddingX,pb:qe.paddingBottom,pl:qe.paddingLeft,ps:qe.paddingInlineStart,paddingStart:qe.paddingInlineStart,pr:qe.paddingRight,pe:qe.paddingInlineEnd,paddingEnd:qe.paddingInlineEnd});var Ye={textDecorationColor:Ne.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:Ne.shadows("textShadow")},Ze={clipPath:!0,transform:Ne.propT("transform",Oe.transform),transformOrigin:!0,translateX:Ne.spaceT("--chakra-translate-x"),translateY:Ne.spaceT("--chakra-translate-y"),skewX:Ne.degreeT("--chakra-skew-x"),skewY:Ne.degreeT("--chakra-skew-y"),scaleX:Ne.prop("--chakra-scale-x"),scaleY:Ne.prop("--chakra-scale-y"),scale:Ne.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:Ne.degreeT("--chakra-rotate")},Ge={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:Ne.prop("transitionDuration","transition.duration"),transitionProperty:Ne.prop("transitionProperty","transition.property"),transitionTimingFunction:Ne.prop("transitionTimingFunction","transition.easing")},Xe={fontFamily:Ne.prop("fontFamily","fonts"),fontSize:Ne.prop("fontSize","fontSizes",Oe.px),fontWeight:Ne.prop("fontWeight","fontWeights"),lineHeight:Ne.prop("lineHeight","lineHeights"),letterSpacing:Ne.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"}},Ke={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:Ne.spaceT("scrollMargin"),scrollMarginTop:Ne.spaceT("scrollMarginTop"),scrollMarginBottom:Ne.spaceT("scrollMarginBottom"),scrollMarginLeft:Ne.spaceT("scrollMarginLeft"),scrollMarginRight:Ne.spaceT("scrollMarginRight"),scrollMarginX:Ne.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:Ne.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:Ne.spaceT("scrollPadding"),scrollPaddingTop:Ne.spaceT("scrollPaddingTop"),scrollPaddingBottom:Ne.spaceT("scrollPaddingBottom"),scrollPaddingLeft:Ne.spaceT("scrollPaddingLeft"),scrollPaddingRight:Ne.spaceT("scrollPaddingRight"),scrollPaddingX:Ne.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:Ne.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function Je(e){return le(e)&&e.reference?e.reference:String(e)}var Qe=(e,...t)=>t.map(Je).join(` ${e} `).replace(/calc/g,""),et=(...e)=>`calc(${Qe("+",...e)})`,tt=(...e)=>`calc(${Qe("-",...e)})`,nt=(...e)=>`calc(${Qe("*",...e)})`,rt=(...e)=>`calc(${Qe("/",...e)})`,ot=e=>{const t=Je(e);return null==t||Number.isNaN(parseFloat(t))?nt(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},at=Object.assign(e=>({add:(...t)=>at(et(e,...t)),subtract:(...t)=>at(tt(e,...t)),multiply:(...t)=>at(nt(e,...t)),divide:(...t)=>at(rt(e,...t)),negate:()=>at(ot(e)),toString:()=>e.toString()}),{add:et,subtract:tt,multiply:nt,divide:rt,negate:ot});function it(e){if(null==e)return e;const{unitless:t}=function(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e);return t||"number"==typeof e?`${e}px`:e}function st(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${it(e)})`),t&&n.push("and",`(max-width: ${it(t)})`),n.join(" ")}var lt=(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,ct=(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,ut=(e,t)=>`${e}:focus-visible ${t}`,dt=(e,t)=>`${e}:focus-within ${t}`,pt=(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,ft=(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,mt=(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,ht=(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,vt=e=>gt(t=>e(t,"&"),"[role=group]","[data-group]",".group"),yt=e=>gt(t=>e(t,"~ &"),"[data-peer]",".peer"),gt=(e,...t)=>t.map(e).join(", "),bt={_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, &[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:vt(lt),_peerHover:yt(lt),_groupFocus:vt(ct),_peerFocus:yt(ct),_groupFocusVisible:vt(ut),_peerFocusVisible:yt(ut),_groupActive:vt(pt),_peerActive:yt(pt),_groupDisabled:vt(ft),_peerDisabled:yt(ft),_groupInvalid:vt(mt),_peerInvalid:yt(mt),_groupChecked:vt(ht),_peerChecked:yt(ht),_groupFocusWithin:vt(dt),_peerFocusWithin:yt(dt),_peerPlaceholderShown:yt((e,t)=>`${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]"},Et=Object.keys(bt),xt=se({},Ae,Re,Ie,Pe,De,Le,He,je,Me,Ue,We,Te,qe,Ke,Xe,Ye,Ze,Ve,Ge),wt=Object.assign({},qe,De,Pe,Me,We),kt=Object.keys(wt),St=[...Object.keys(xt),...Et],Ct={...xt,...bt},_t=e=>e in Ct,Ot=(e,t)=>e.startsWith("--")&&"string"==typeof t&&!function(e){return/^var\(--.+\)$/.test(e)}(t),Nt=(e,t)=>{if(null==t)return t;const n=t=>{var n,r;return null==(r=null==(n=e.__cssMap)?void 0:n[t])?void 0:r.varRef},r=e=>n(e)??e,[o,a]=function(e){const t=[];let n="",r=!1;for(let o=0;o<e.length;o++){const a=e[o];"("===a?(r=!0,n+=a):")"===a?(r=!1,n+=a):","!==a||r?n+=a:(t.push(n),n="")}return n=n.trim(),n&&t.push(n),t}(t);return n(o)??r(a)??r(t)};function At(e,t){for(let n=t+1;n<e.length;n++)if(null!=e[n])return n;return-1}function Rt(e){return function(e,t=[]){const n=Object.assign({},e);for(const e of t)e in n&&delete n[e];return n}(e,["styleConfig","size","variant","colorScheme"])}var It=/*#__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|-ms-expand|-ms-reveal){/.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}(),Tt="-ms-",Lt="-webkit-",Pt=Math.abs,Mt=String.fromCharCode,jt=Object.assign;function Dt(e){return e.trim()}function Vt(e,t,n){return e.replace(t,n)}function Bt(e,t){return e.indexOf(t)}function Ft(e,t){return 0|e.charCodeAt(t)}function $t(e,t,n){return e.slice(t,n)}function zt(e){return e.length}function Ut(e){return e.length}function Wt(e,t){return t.push(e),e}var Ht=1,qt=1,Yt=0,Zt=0,Gt=0,Xt="";function Kt(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Ht,column:qt,length:i,return:""}}function Jt(e,t){return jt(Kt("",null,null,"",null,null,0),e,{length:-e.length},t)}function Qt(){return Gt=Zt>0?Ft(Xt,--Zt):0,qt--,10===Gt&&(qt=1,Ht--),Gt}function en(){return Gt=Zt<Yt?Ft(Xt,Zt++):0,qt++,10===Gt&&(qt=1,Ht++),Gt}function tn(){return Ft(Xt,Zt)}function nn(){return Zt}function rn(e,t){return $t(Xt,e,t)}function on(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 an(e){return Ht=qt=1,Yt=zt(Xt=e),Zt=0,[]}function sn(e){return Xt="",e}function ln(e){return Dt(rn(Zt-1,dn(91===e?e+2:40===e?e+1:e)))}function cn(e){for(;(Gt=tn())&&Gt<33;)en();return on(e)>2||on(Gt)>3?"":" "}function un(e,t){for(;--t&&en()&&!(Gt<48||Gt>102||Gt>57&&Gt<65||Gt>70&&Gt<97););return rn(e,nn()+(t<6&&32==tn()&&32==en()))}function dn(e){for(;en();)switch(Gt){case e:return Zt;case 34:case 39:34!==e&&39!==e&&dn(Gt);break;case 40:41===e&&dn(e);break;case 92:en()}return Zt}function pn(e,t){for(;en()&&e+Gt!==57&&(e+Gt!==84||47!==tn()););return"/*"+rn(t,Zt-1)+"*"+Mt(47===e?e:en())}function fn(e){for(;!on(tn());)en();return rn(e,Zt)}function mn(e){return sn(hn("",null,null,null,[""],e=an(e),0,[0],e))}function hn(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,d=i,p=0,f=0,m=0,h=1,v=1,y=1,g=0,b="",E=o,x=a,w=r,k=b;v;)switch(m=g,g=en()){case 40:if(108!=m&&58==Ft(k,d-1)){-1!=Bt(k+=Vt(ln(g),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=ln(g);break;case 9:case 10:case 13:case 32:k+=cn(m);break;case 92:k+=un(nn()-1,7);continue;case 47:switch(tn()){case 42:case 47:Wt(yn(pn(en(),nn()),t,n),l);break;default:k+="/"}break;case 123*h:s[c++]=zt(k)*y;case 125*h:case 59:case 0:switch(g){case 0:case 125:v=0;case 59+u:f>0&&zt(k)-d&&Wt(f>32?gn(k+";",r,n,d-1):gn(Vt(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(Wt(w=vn(k,t,n,c,u,o,s,b,E=[],x=[],d),a),123===g)if(0===u)hn(k,t,w,w,E,a,d,s,x);else switch(99===p&&110===Ft(k,3)?100:p){case 100:case 109:case 115:hn(e,w,w,r&&Wt(vn(e,w,w,0,0,o,s,b,o,E=[],d),x),o,x,d,s,r?E:x);break;default:hn(k,w,w,w,[""],x,0,s,x)}}c=u=f=0,h=y=1,b=k="",d=i;break;case 58:d=1+zt(k),f=m;default:if(h<1)if(123==g)--h;else if(125==g&&0==h++&&125==Qt())continue;switch(k+=Mt(g),g*h){case 38:y=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(zt(k)-1)*y,y=1;break;case 64:45===tn()&&(k+=ln(en())),p=tn(),u=d=zt(b=k+=fn(nn())),g++;break;case 45:45===m&&2==zt(k)&&(h=0)}}return a}function vn(e,t,n,r,o,a,i,s,l,c,u){for(var d=o-1,p=0===o?a:[""],f=Ut(p),m=0,h=0,v=0;m<r;++m)for(var y=0,g=$t(e,d+1,d=Pt(h=i[m])),b=e;y<f;++y)(b=Dt(h>0?p[y]+" "+g:Vt(g,/&\f/g,p[y])))&&(l[v++]=b);return Kt(e,t,n,0===o?"rule":s,l,c,u)}function yn(e,t,n){return Kt(e,t,n,"comm",Mt(Gt),$t(e,2,-2),0)}function gn(e,t,n,r){return Kt(e,t,n,"decl",$t(e,0,r),$t(e,r+1,-1),r)}function bn(e,t){for(var n="",r=Ut(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function En(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+"{"+bn(e.children,r)+"}";case"rule":e.value=e.props.join(",")}return zt(n=bn(e.children,r))?e.return=e.value+"{"+n+"}":""}function xn(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var wn=function(e,t,n){for(var r=0,o=0;r=o,o=tn(),38===r&&12===o&&(t[n]=1),!on(o);)en();return rn(e,Zt)},kn=/* #__PURE__ */new WeakMap,Sn=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)||kn.get(n))&&!r){kn.set(e,!0);for(var o=[],a=function(e,t){return sn(function(e,t){var n=-1,r=44;do{switch(on(r)){case 0:38===r&&12===tn()&&(t[n]=1),e[n]+=wn(Zt-1,t,n);break;case 2:e[n]+=ln(r);break;case 4:if(44===r){e[++n]=58===tn()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Mt(r)}}while(r=en());return e}(an(e),t))}(t,o),i=n.props,s=0,l=0;s<a.length;s++)for(var c=0;c<i.length;c++,l++)e.props[l]=o[s]?a[s].replace(/&\f/g,i[c]):i[c]+" "+a[s]}}},Cn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},_n=function(e){return"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},On=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},Nn=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},An=function(e,t,n){On(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."),Nn(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!On(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."),Nn(e)))};function Rn(e,t){switch(function(e,t){return 45^Ft(e,0)?(((t<<2^Ft(e,0))<<2^Ft(e,1))<<2^Ft(e,2))<<2^Ft(e,3):0}(e,t)){case 5103:return Lt+"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 Lt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Lt+e+"-moz-"+e+Tt+e+e;case 6828:case 4268:return Lt+e+Tt+e+e;case 6165:return Lt+e+Tt+"flex-"+e+e;case 5187:return Lt+e+Vt(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return Lt+e+Tt+"flex-item-"+Vt(e,/flex-|-self/,"")+e;case 4675:return Lt+e+Tt+"flex-line-pack"+Vt(e,/align-content|flex-|-self/,"")+e;case 5548:return Lt+e+Tt+Vt(e,"shrink","negative")+e;case 5292:return Lt+e+Tt+Vt(e,"basis","preferred-size")+e;case 6060:return Lt+"box-"+Vt(e,"-grow","")+Lt+e+Tt+Vt(e,"grow","positive")+e;case 4554:return Lt+Vt(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return Vt(Vt(Vt(e,/(zoom-|grab)/,Lt+"$1"),/(image-set)/,Lt+"$1"),e,"")+e;case 5495:case 3959:return Vt(e,/(image-set\([^]*)/,Lt+"$1$`$1");case 4968:return Vt(Vt(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+Lt+e+e;case 4095:case 3583:case 4068:case 2532:return Vt(e,/(.+)-inline(.+)/,Lt+"$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(zt(e)-1-t>6)switch(Ft(e,t+1)){case 109:if(45!==Ft(e,t+4))break;case 102:return Vt(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==Ft(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Bt(e,"stretch")?Rn(Vt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ft(e,t+1))break;case 6444:switch(Ft(e,zt(e)-3-(~Bt(e,"!important")&&10))){case 107:return Vt(e,":",":"+Lt)+e;case 101:return Vt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Lt+(45===Ft(e,14)?"inline-":"")+"box$3$1"+Lt+"$2$3$1"+Tt+"$2box$3")+e}break;case 5936:switch(Ft(e,t+11)){case 114:return Lt+e+Tt+Vt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Lt+e+Tt+Vt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Lt+e+Tt+Vt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Lt+e+Tt+e+e}return e}var In=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case"decl":e.return=Rn(e.value,e.length);break;case"@keyframes":return bn([Jt(e,{value:Vt(e.value,"@","@"+Lt)})],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 bn([Jt(e,{props:[Vt(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return bn([Jt(e,{props:[Vt(t,/:(plac\w+)/,":-webkit-input-$1")]}),Jt(e,{props:[Vt(t,/:(plac\w+)/,":-moz-$1")]}),Jt(e,{props:[Vt(t,/:(plac\w+)/,Tt+"input-$1")]})],r)}return""})}}],Tn=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||In;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 o,a,i={},s=[];o=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=[Sn,Cn];"production"!==process.env.NODE_ENV&&l.push(function(e){return function(t,n,r){if("rule"===t.type&&!e.compat){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var a=t.parent===r[0]?r[0].children:r,i=a.length-1;i>=0;i--){var s=a[i];if(s.line<t.line)break;if(s.column<t.column){if(_n(s))return;break}}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}}),An);var c,u,d=[En,"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=Ut(e);return function(n,r,o,a){for(var i="",s=0;s<t;s++)i+=e[s](n,r,o,a)||"";return i}}(l.concat(r,d));a=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)}}),bn(mn(e?e+"{"+t.styles+"}":t.styles),p),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new It({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:a};return f.sheet.hydrate(s),f};function Ln(){return Ln=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},Ln.apply(this,arguments)}var Pn="function"==typeof Symbol&&Symbol.for,Mn=Pn?Symbol.for("react.element"):60103,jn=Pn?Symbol.for("react.portal"):60106,Dn=Pn?Symbol.for("react.fragment"):60107,Vn=Pn?Symbol.for("react.strict_mode"):60108,Bn=Pn?Symbol.for("react.profiler"):60114,Fn=Pn?Symbol.for("react.provider"):60109,$n=Pn?Symbol.for("react.context"):60110,zn=Pn?Symbol.for("react.async_mode"):60111,Un=Pn?Symbol.for("react.concurrent_mode"):60111,Wn=Pn?Symbol.for("react.forward_ref"):60112,Hn=Pn?Symbol.for("react.suspense"):60113,qn=Pn?Symbol.for("react.suspense_list"):60120,Yn=Pn?Symbol.for("react.memo"):60115,Zn=Pn?Symbol.for("react.lazy"):60116,Gn=Pn?Symbol.for("react.block"):60121,Xn=Pn?Symbol.for("react.fundamental"):60117,Kn=Pn?Symbol.for("react.responder"):60118,Jn=Pn?Symbol.for("react.scope"):60119;function Qn(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Mn:switch(e=e.type){case zn:case Un:case Dn:case Bn:case Vn:case Hn:return e;default:switch(e=e&&e.$$typeof){case $n:case Wn:case Zn:case Yn:case Fn:return e;default:return t}}case jn:return t}}}function er(e){return Qn(e)===Un}var tr={AsyncMode:zn,ConcurrentMode:Un,ContextConsumer:$n,ContextProvider:Fn,Element:Mn,ForwardRef:Wn,Fragment:Dn,Lazy:Zn,Memo:Yn,Portal:jn,Profiler:Bn,StrictMode:Vn,Suspense:Hn,isAsyncMode:function(e){return er(e)||Qn(e)===zn},isConcurrentMode:er,isContextConsumer:function(e){return Qn(e)===$n},isContextProvider:function(e){return Qn(e)===Fn},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Mn},isForwardRef:function(e){return Qn(e)===Wn},isFragment:function(e){return Qn(e)===Dn},isLazy:function(e){return Qn(e)===Zn},isMemo:function(e){return Qn(e)===Yn},isPortal:function(e){return Qn(e)===jn},isProfiler:function(e){return Qn(e)===Bn},isStrictMode:function(e){return Qn(e)===Vn},isSuspense:function(e){return Qn(e)===Hn},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===Dn||e===Un||e===Bn||e===Vn||e===Hn||e===qn||"object"==typeof e&&null!==e&&(e.$$typeof===Zn||e.$$typeof===Yn||e.$$typeof===Fn||e.$$typeof===$n||e.$$typeof===Wn||e.$$typeof===Xn||e.$$typeof===Kn||e.$$typeof===Jn||e.$$typeof===Gn)},typeOf:Qn},nr=E(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,o=e?Symbol.for("react.fragment"):60107,a=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,h=e?Symbol.for("react.lazy"):60116,v=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 f=e.type;switch(f){case c:case u:case o:case i:case a:case p:return f;default:var v=f&&f.$$typeof;switch(v){case l:case d:case h:case m:case s:return v;default:return t}}case r:return t}}}var x=u,w=l,k=s,S=n,C=d,_=o,O=h,N=m,A=r,R=i,I=a,T=p,L=!1;function P(e){return E(e)===u}t.AsyncMode=c,t.ConcurrentMode=x,t.ContextConsumer=w,t.ContextProvider=k,t.Element=S,t.ForwardRef=C,t.Fragment=_,t.Lazy=O,t.Memo=N,t.Portal=A,t.Profiler=R,t.StrictMode=I,t.Suspense=T,t.isAsyncMode=function(e){return L||(L=!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.")),P(e)||E(e)===c},t.isConcurrentMode=P,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)===o},t.isLazy=function(e){return E(e)===h},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)===a},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===u||e===i||e===a||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===y||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v)},t.typeOf=E}()});function rr(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "}),r}E(function(e){e.exports="production"===process.env.NODE_ENV?tr:nr});var or=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},ar=function(e,t,n){or(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},ir={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},sr="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",lr=/[A-Z]|^ms/g,cr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ur=function(e){return 45===e.charCodeAt(1)},dr=function(e){return null!=e&&"boolean"!=typeof e},pr=/* #__PURE__ */xn(function(e){return ur(e)?e:e.replace(lr,"-$&").toLowerCase()}),fr=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(cr,function(e,t,n){return kr={name:t,styles:n,next:kr},t})}return 1===ir[e]||ur(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var mr=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,hr=["normal","none","initial","inherit","unset"],vr=fr,yr=/^-ms-/,gr=/-(.)/g,br={};fr=function(e,t){if("content"===e&&("string"!=typeof t||-1===hr.indexOf(t)&&!mr.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=vr(e,t);return""===n||ur(e)||-1===e.indexOf("-")||void 0!==br[e]||(br[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(yr,"ms-").replace(gr,function(e,t){return t.toUpperCase()})+"?")),n}}var Er="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function xr(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(Er);return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return kr={name:n.name,styles:n.styles,next:kr},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)kr={name:r.name,styles:r.styles,next:kr},r=r.next;var o=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(o+=n.map),o}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=xr(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":dr(i)&&(r+=pr(a)+":"+fr(a,i)+";");else{if("NO_COMPONENT_SELECTOR"===a&&"production"!==process.env.NODE_ENV)throw new Error(Er);if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=xr(e,t,i);switch(a){case"animation":case"animationName":r+=pr(a)+":"+s+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===a&&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+=a+"{"+s+"}"}}else for(var l=0;l<i.length;l++)dr(i[l])&&(r+=pr(a)+":"+fr(a,i[l])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var a=kr,i=n(e);return kr=a,xr(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(cr,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 wr,kr,Sr=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(wr=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Cr=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,o="";kr=void 0;var a,i=e[0];null==i||void 0===i.raw?(r=!1,o+=xr(n,t,i)):("production"!==process.env.NODE_ENV&&void 0===i[0]&&console.error(sr),o+=i[0]);for(var s=1;s<e.length;s++)o+=xr(n,t,e[s]),r&&("production"!==process.env.NODE_ENV&&void 0===i[s]&&console.error(sr),o+=i[s]);"production"!==process.env.NODE_ENV&&(o=o.replace(wr,function(e){return a=e,""})),Sr.lastIndex=0;for(var l,c="";null!==(l=Sr.exec(o));)c+="-"+l[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=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(o){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)}(o)+c;return"production"!==process.env.NODE_ENV?{name:u,styles:o,map:a,next:kr,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:o,next:kr}},_r=!!re.useInsertionEffect&&re.useInsertionEffect,Or=_r||function(e){return e()},Nr=_r||ne.useLayoutEffect,Ar={}.hasOwnProperty,Rr=/* #__PURE__ */ne.createContext("undefined"!=typeof HTMLElement?/* #__PURE__ */Tn({key:"css"}):null);"production"!==process.env.NODE_ENV&&(Rr.displayName="EmotionCacheContext");var Ir=function(e){/*#__PURE__*/
|
2
|
-
return ne.forwardRef(function(t,n){var r=ne.useContext(Rr);return e(t,r,n)})},Tr=/* #__PURE__ */ne.createContext({});"production"!==process.env.NODE_ENV&&(Tr.displayName="EmotionThemeContext");var Lr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return or(t,n,r),Or(function(){return ar(t,n,r)}),null};"production"!==process.env.NODE_ENV&&(/* #__PURE__ */Ir(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e.__EMOTION_TYPE_PLEASE_DO_NOT_USE__,a=[r],i="";"string"==typeof e.className?i=rr(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var s=Cr(a,void 0,ne.useContext(Tr));if("production"!==process.env.NODE_ENV&&-1===s.name.indexOf("-")){var l=e.__EMOTION_LABEL_PLEASE_DO_NOT_USE__;l&&(s=Cr([s,"label:"+l+";"]))}i+=t.key+"-"+s.name;var c={};for(var u in e)!Ar.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__*/ne.createElement(ne.Fragment,null,/*#__PURE__*/ne.createElement(Lr,{cache:t,serialized:s,isStringTag:"string"==typeof o}),/*#__PURE__*/ne.createElement(o,c))}).displayName="EmotionCssPropInternal");var Pr=!1,Mr=/* #__PURE__ */Ir(function(e,t){"production"===process.env.NODE_ENV||Pr||!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?"),Pr=!0);var n=Cr([e.styles],void 0,ne.useContext(Tr)),r=ne.useRef();return Nr(function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,i=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==i&&(a=!0,i.setAttribute("data-emotion",e),o.hydrate([i])),r.current=[o,a],function(){o.flush()}},[t]),Nr(function(){var e=r.current,o=e[0];e[1]?e[1]=!1:(void 0!==n.next&&ar(t,n.next,!0),o.tags.length&&(o.before=o.tags[o.tags.length-1].nextElementSibling,o.flush()),t.insert("",n,o,!1))},[t,n.name]),null});function jr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Cr(t)}"production"!==process.env.NODE_ENV&&(Mr.displayName="EmotionGlobal");var Dr=function(){var e=jr.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_"}}},Vr=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=e(a);else for(var s in"production"!==process.env.NODE_ENV&&void 0!==a.styles&&void 0!==a.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="",a)a[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=a}i&&(o&&(o+=" "),o+=i)}}return o};function Br(e,t,n){var r=[],o=rr(e,r,n);return r.length<2?n:o+t(r)}var Fr=function(e){var t=e.cache,n=e.serializedArr;return Or(function(){for(var e=0;e<n.length;e++)ar(t,n[e],!1)}),null},$r=/* #__PURE__ */Ir(function(e,t){var n=!1,r=[],o=function(){if(n&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var e=arguments.length,o=new Array(e),a=0;a<e;a++)o[a]=arguments[a];var i=Cr(o,t.registered);return r.push(i),or(t,i,!1),t.key+"-"+i.name},a={css:o,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),a=0;a<e;a++)r[a]=arguments[a];return Br(t.registered,o,Vr(r))},theme:ne.useContext(Tr)},i=e.children(a);return n=!0,/*#__PURE__*/ne.createElement(ne.Fragment,null,/*#__PURE__*/ne.createElement(Fr,{cache:t,serializedArr:r}),i)});if("production"!==process.env.NODE_ENV&&($r.displayName="EmotionClassNames"),"production"!==process.env.NODE_ENV&&"undefined"==typeof jest&&"undefined"==typeof vi){var zr="undefined"!=typeof globalThis?globalThis:window,Ur="__EMOTION_REACT_"+"11.10.5".split(".")[0]+"__";zr[Ur]&&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."),zr[Ur]=!0}function Wr(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=ne.createContext(void 0);return o.displayName=r,[o.Provider,function e(){var r;const a=ne.useContext(o);if(!a&&t){const t=new Error(n);throw t.name="ContextError",null==(r=Error.captureStackTrace)||r.call(Error,t,e),t}return a},o]}var Hr=/^((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)-.*))$/,qr=/* #__PURE__ */xn(function(e){return Hr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Yr=function(e){return"theme"!==e},Zr=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?qr:Yr},Gr=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},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=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return or(t,n,r),Or(function(){return ar(t,n,r)}),null},Jr=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,o,a=t.__emotion_real===t,i=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=Gr(t,n,a),l=s||Zr(i),c=!l("as");return function(){var u=arguments,d=a&&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(Xr),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(Xr),d.push(u[f],u[0][f])}var m=Ir(function(e,t,n){var r=c&&e.as||i,a="",u=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=ne.useContext(Tr)}"string"==typeof e.className?a=rr(t.registered,u,e.className):null!=e.className&&(a=e.className+" ");var m=Cr(d.concat(u),t.registered,p);a+=t.key+"-"+m.name,void 0!==o&&(a+=" "+o);var h=c&&void 0===s?Zr(r):l,v={};for(var y in e)c&&"as"===y||h(y)&&(v[y]=e[y]);return v.className=a,v.ref=n,/*#__PURE__*/ne.createElement(ne.Fragment,null,/*#__PURE__*/ne.createElement(Kr,{cache:t,serialized:m,isStringTag:"string"==typeof r}),/*#__PURE__*/ne.createElement(r,v))});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===o&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(t,r){return e(t,Ln({},n,r,{shouldForwardProp:Gr(m,r,!0)})).apply(void 0,d)},m}}.bind();["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){Jr[e]=Jr(e)});var Qr="undefined"!=typeof Element,eo="function"==typeof Map,to="function"==typeof Set,no="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function ro(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,o,a;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!ro(e[r],t[r]))return!1;return!0}if(eo&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!ro(r.value[1],t.get(r.value[0])))return!1;return!0}if(to&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(no&&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=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(Qr&&e instanceof Element)return!1;for(r=n;0!=r--;)if(("_owner"!==o[r]&&"__v"!==o[r]&&"__o"!==o[r]||!e.$$typeof)&&!ro(e[o[r]],t[o[r]]))return!1;return!0}return e!=e&&t!=t}var oo=function(e,t){try{return ro(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}};function ao(){const e=ne.useContext(Tr);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}Wr({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});var io=/* @__PURE__ */new Set([...St,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),so=/* @__PURE__ */new Set(["htmlWidth","htmlHeight","htmlSize"]);function lo(e){return so.has(e)||!io.has(e)}function co(e,t){const{baseStyle:n,...o}=t??{};o.shouldForwardProp||(o.shouldForwardProp=lo);const s=(({baseStyle:e})=>t=>{const{theme:n,css:o,__css:s,sx:l,...c}=t,u=a(c,(e,t)=>_t(t)),d=i(e,t),p=Object.assign({},s,d,r(u),l),f=(m=p,e=>function(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(e,a=!1)=>{var i;const s=ce(e,r),l=(e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,a={};for(const i in e){let s=ce(e[i],t);if(null==s)continue;if(s=le(s)&&n(s)?r(s):s,!Array.isArray(s)){a[i]=s;continue}const l=s.slice(0,o.length).length;for(let e=0;e<l;e+=1){const t=null==o?void 0:o[e];t?(a[t]=a[t]||{},null!=s[e]&&(a[t][i]=s[e])):a[i]=s[e]}}return a})(s)(r);let c={};for(let e in l){let u=ce(l[e],r);e in n&&(e=n[e]),Ot(e,u)&&(u=Nt(r,u));let d=t[e];if(!0===d&&(d={property:e}),le(u)){c[e]=c[e]??{},c[e]=se({},c[e],o(u,!0));continue}let p=(null==(i=null==d?void 0:d.transform)?void 0:i.call(d,u,r,s))??u;p=(null==d?void 0:d.processResult)?o(p,!0):p;const f=ce(null==d?void 0:d.property,r);if(!a&&(null==d?void 0:d.static)){const e=ce(d.static,r);c=se({},c,e)}if(f&&Array.isArray(f))for(const e of f)c[e]=p;else f?"&"===f&&le(p)?c=se({},c,p):c[f]=p:le(p)?c=se({},c,p):c[e]=p}return c};return o}({theme:e,pseudos:bt,configs:xt})(m))(t.theme);var m;return o?[f,o]:f})({baseStyle:n}),l=Jr(e,o)(s);return ne.forwardRef(function(e,t){const{colorMode:n,forced:r}=ie();return ne.createElement(l,{ref:t,"data-theme":r?n:void 0,...e})})}function uo(e){return ne.forwardRef(e)}function po(e,a={}){const{styleConfig:i,...s}=a,{theme:l,colorMode:c}={...ie(),theme:ao()},u=e?t(l,`components.${e}`):void 0,d=i||u,p=n({theme:l,colorMode:c},(null==d?void 0:d.defaultProps)??{},r(o(s,["children"]))),f=ne.useRef({});if(d){const e=(m=d,e=>{const{variant:t,size:n,theme:r}=e,o=function(e){const t=e.__breakpoints;return function(e,n,r,o){var a,i;if(!t)return;const s={},l=function(e,t){return Array.isArray(e)?e:le(e)?t(e):null!=e?[e]:void 0}(r,t.toArrayValue);if(!l)return s;const c=l.length,u=1===c,d=!!e.parts;for(let r=0;r<c;r++){const c=t.details[r],p=t.details[At(l,r)],f=st(c.minW,null==p?void 0:p._minW),m=ce(null==(a=e[n])?void 0:a[l[r]],o);m&&(d?null==(i=e.parts)||i.forEach(e=>{se(s,{[e]:u?m[e]:{[f]:m[e]}})}):d?s[f]=m:u?se(s,m):s[f]=m)}return s}}(r);return se({},ce(m.baseStyle??{},e),o(m,"sizes",n,e),o(m,"variants",t,e))}),t=e(p);oo(f.current,t)||(f.current=t)}var m;return f.current}function fo(e,t={}){return po(e,t)}function mo(e,t={}){return po(e,t)}var ho=function(){const e=/* @__PURE__ */new Map;return new Proxy(co,{apply:(e,t,n)=>co(...n),get:(t,n)=>(e.has(n)||e.set(n,co(n)),e.get(n))})}();function vo(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:a}=e,i=ne.createContext(void 0);return i.displayName=t,[i.Provider,function e(){var t;const s=ne.useContext(i);if(!s&&n){const n=new Error(a??`${r} returned \`undefined\`. Seems you forgot to wrap component within ${o}`);throw n.name="ContextError",null==(t=Error.captureStackTrace)||t.call(Error,n,e),n}return s},i]}function yo(...e){return t=>{e.forEach(e=>{!function(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)}(e,t)})}}function go(...e){return ne.useMemo(()=>yo(...e),e)}function bo(e){return e.sort((e,t)=>{const 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 Eo(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function xo(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var wo="undefined"!=typeof window?ne.useLayoutEffect:ne.useEffect,[ko,So]=vo({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function Co(){return[ko,()=>So(),()=>function(){const e=ne.useRef(new class{descendants=/* @__PURE__ */new Map;register=e=>{var t;if(null!=e)return"object"==typeof(t=e)&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE?this.registerNode(e):t=>{this.registerNode(t,e)}};unregister=e=>{this.descendants.delete(e);const t=bo(Array.from(this.descendants.keys()));this.assignIndex(t)};destroy=()=>{this.descendants.clear()};assignIndex=e=>{this.descendants.forEach(t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})};count=()=>this.descendants.size;enabledCount=()=>this.enabledValues().length;values=()=>Array.from(this.descendants.values()).sort((e,t)=>e.index-t.index);enabledValues=()=>this.values().filter(e=>!e.disabled);item=e=>{if(0!==this.count())return this.values()[e]};enabledItem=e=>{if(0!==this.enabledCount())return this.enabledValues()[e]};first=()=>this.item(0);firstEnabled=()=>this.enabledItem(0);last=()=>this.item(this.descendants.size-1);lastEnabled=()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)};indexOf=e=>{var t;return e?(null==(t=this.descendants.get(e))?void 0:t.index)??-1:-1};enabledIndexOf=e=>null==e?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e));next=(e,t=!0)=>{const n=Eo(e,this.count(),t);return this.item(n)};nextEnabled=(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=Eo(this.enabledIndexOf(n.node),this.enabledCount(),t);return this.enabledItem(r)};prev=(e,t=!0)=>{const n=xo(e,this.count()-1,t);return this.item(n)};prevEnabled=(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=xo(this.enabledIndexOf(n.node),this.enabledCount()-1,t);return this.enabledItem(r)};registerNode=(e,t)=>{if(!e||this.descendants.has(e))return;const n=bo(Array.from(this.descendants.keys()).concat(e));(null==t?void 0:t.disabled)&&(t.disabled=!!t.disabled);const r={node:e,index:-1,...t};this.descendants.set(e,r),this.assignIndex(n)}});return wo(()=>()=>e.current.destroy()),e.current}(),e=>function(e){const t=So(),[n,r]=ne.useState(-1),o=ne.useRef(null);wo(()=>()=>{o.current&&t.unregister(o.current)},[]),wo(()=>{if(!o.current)return;const e=Number(o.current.dataset.index);n==e||Number.isNaN(e)||r(e)});const a=e?t.register(e):t.register;return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(o.current),register:yo(a,o)}}(e)]}var _o=(...e)=>e.filter(Boolean).join(" "),Oo={path:/* @__PURE__ */ne.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/* @__PURE__ */ne.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__ */ne.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__ */ne.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},No=uo((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:a=!1,children:i,className:s,__css:l,...c}=e,u={ref:t,focusable:a,className:_o("chakra-icon",s),__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l}},d=r??Oo.viewBox;if(n&&"string"!=typeof n)/* @__PURE__ */
|
3
|
-
return ne.createElement(
|
4
|
-
return ne.createElement(ho.svg,{verticalAlign:"middle",viewBox:d,...u,...c},p)});function Ao(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:o={}}=e,a=ne.Children.toArray(e.path),i=uo((e,r)=>/* @__PURE__ */ne.createElement(No,{ref:r,viewBox:t,...o,...e},a.length?a:/* @__PURE__ */ne.createElement("path",{fill:"currentColor",d:n})));return i.displayName=r,i}function Ro(e,t=[]){const n=ne.useRef(e);return ne.useEffect(()=>{n.current=e}),ne.useCallback((...e)=>{var t;return null==(t=n.current)?void 0:t.call(n,...e)},t)}function Io(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:o=((e,t)=>e!==t)}=e,a=Ro(r),i=Ro(o),[s,l]=ne.useState(n),c=void 0!==t,u=c?t:s,d=Ro(e=>{const t="function"==typeof e?e(u):e;i(u,t)&&(c||l(t),a(t))},[c,a,u,i]);return[u,d]}No.displayName="Icon";var To=function(e,t){return To=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])},To(e,t)};function Lo(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}To(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Po=function(){return Po=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Po.apply(this,arguments)};function Mo(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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function jo(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function Do(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var Vo="undefined"==typeof process||void 0===process.env?"production":process.env.NODE_ENV||"production",Bo=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},Fo={measureLayout:Bo(["layout","layoutId","drag"]),animation:Bo(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Bo(["exit"]),drag:Bo(["drag","dragControls"]),focus:Bo(["whileFocus"]),hover:Bo(["whileHover","onHoverStart","onHoverEnd"]),tap:Bo(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Bo(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Bo(["whileInView","onViewportEnter","onViewportLeave"])},$o=function(){},zo=function(){};"production"!==process.env.NODE_ENV&&($o=function(e,t){e||"undefined"==typeof console||console.warn(t)},zo=function(e,t){if(!e)throw new Error(t)});var Uo=ne.createContext({strict:!1}),Wo=Object.keys(Fo),Ho=Wo.length,qo=ne.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Yo=ne.createContext({}),Zo=ne.createContext(null),Go="undefined"!=typeof document,Xo=Go?ne.useLayoutEffect:ne.useEffect,Ko={current:null},Jo=!1;function Qo(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function ea(e){return Array.isArray(e)}function ta(e){return"string"==typeof e||ea(e)}function na(e,t,n,r,o){var a;return void 0===r&&(r={}),void 0===o&&(o={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),"string"==typeof t&&(t=null===(a=e.variants)||void 0===a?void 0:a[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),t}function ra(e,t,n){var r=e.getProps();return na(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 oa(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||ta(e.initial)||ta(e.animate)||ta(e.whileHover)||ta(e.whileDrag)||ta(e.whileTap)||ta(e.whileFocus)||ta(e.exit)}function aa(e){return Boolean(oa(e)||e.variants)}function ia(e){return Array.isArray(e)?e.join(" "):e}function sa(e){var t=ne.useRef(null);return null===t.current&&(t.current=e()),t.current}var la={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ca=1,ua=ne.createContext({}),da=ne.createContext({}),pa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Lo(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}(ne.Component);function fa(e){function t(t,n){return void 0===n&&(n={}),function(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,o=e.useRender,a=e.useVisualState,i=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?Fo.projectionNodeConstructor=e[t]:Fo[t].Component=e[t])}(t),ne.forwardRef(function(e,s){var l=function(e){var t,n=e.layoutId,r=null===(t=ne.useContext(ua))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=Po(Po({},e),{layoutId:l});var c=ne.useContext(qo),u=null,d=function(e){var t=function(e,t){if(oa(e)){var n=e.initial,r=e.animate;return{initial:!1===n||ta(n)?n:void 0,animate:ta(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,ne.useContext(Yo)),n=t.initial,r=t.animate;return ne.useMemo(function(){return{initial:n,animate:r}},[ia(n),ia(r)])}(e),p=c.isStatic?void 0:sa(function(){if(la.hasEverUpdated)return ca++}),f=a(e,c.isStatic);return!c.isStatic&&Go&&(d.visualElement=function(e,t,n,r){var o,a,i=ne.useContext(Uo),s=ne.useContext(Yo).visualElement,l=ne.useContext(Zo),c=(!Jo&&function(){if(Jo=!0,Go)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Ko.current=e.matches};e.addListener(t),t()}else Ko.current=!1}(),o=jo(ne.useState(Ko.current),1)[0],"never"!==(a=ne.useContext(qo).reducedMotion)&&("always"===a||o)),u=ne.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 Xo(function(){null==d||d.syncRender()}),ne.useEffect(function(){var e;null===(e=null==d?void 0:d.animationState)||void 0===e||e.animateChanges()}),Xo(function(){return function(){return null==d?void 0:d.notifyUnmount()}},[]),d}(i,f,Po(Po({},c),e),n),function(e,t,n,r){var o,a=t.layoutId,i=t.layout,s=t.drag,l=t.dragConstraints,c=t.layoutScroll,u=ne.useContext(da);r&&n&&!(null==n?void 0:n.projection)&&(n.projection=new r(e,n.getLatestValues(),null===(o=n.parent)||void 0===o?void 0:o.projection),n.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:Boolean(s)||l&&Qo(l),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof i?i:"both",initialPromotionConfig:u,layoutScroll:c}))}(p,e,d.visualElement,r||Fo.projectionNodeConstructor),u=function(e,t,n){var r=[],o=ne.useContext(Uo);if(!t)return null;"production"!==Vo&&n&&o.strict&&zo(!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 a=0;a<Ho;a++){var i=Wo[a],s=Fo[i],l=s.Component;(0,s.isEnabled)(e)&&l&&r.push(ne.createElement(l,Po({key:i},e,{visualElement:t})))}return r}(e,d.visualElement,t)),ne.createElement(pa,{visualElement:d.visualElement,props:Po(Po({},c),e)},u,ne.createElement(Yo.Provider,{value:d},o(i,e,p,function(e,t,n){return ne.useCallback(function(r){var o;r&&(null===(o=e.mount)||void 0===o||o.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Qo(n)&&(n.current=r))},[t])}(f,d.visualElement,s),f,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 ma=["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 ha(e){return"string"==typeof e&&!e.includes("-")&&!!(ma.indexOf(e)>-1||/[A-Z]/.test(e))}var va={},ya=["","X","Y","Z"],ga=["transformPerspective","x","y","z"];function ba(e,t){return ga.indexOf(e)-ga.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return ya.forEach(function(t){return ga.push(e+t)})});var Ea=new Set(ga);function xa(e){return Ea.has(e)}var wa=new Set(["originX","originY","originZ"]);function ka(e){return wa.has(e)}function Sa(e,t){var n=t.layout,r=t.layoutId;return xa(e)||ka(e)||(n||void 0!==r)&&(!!va[e]||"opacity"===e)}var Ca=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},_a={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Oa(e){return e.startsWith("--")}var Na=function(e,t){return t&&"number"==typeof e?t.transform(e):e};const Aa=(e,t)=>n=>Math.max(Math.min(n,t),e),Ra=e=>e%1?Number(e.toFixed(5)):e,Ia=/(-)?([\d]*\.?[\d])+/g,Ta=/(#[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,La=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Pa(e){return"string"==typeof e}const Ma={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},ja=Object.assign(Object.assign({},Ma),{transform:Aa(0,1)}),Da=Object.assign(Object.assign({},Ma),{default:1}),Va=e=>({test:t=>Pa(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Ba=Va("deg"),Fa=Va("%"),$a=Va("px"),za=Va("vh"),Ua=Va("vw"),Wa=Object.assign(Object.assign({},Fa),{parse:e=>Fa.parse(e)/100,transform:e=>Fa.transform(100*e)}),Ha=(e,t)=>n=>Boolean(Pa(n)&&La.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),qa=(e,t,n)=>r=>{if(!Pa(r))return r;const[o,a,i,s]=r.match(Ia);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},Ya={test:Ha("hsl","hue"),parse:qa("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Fa.transform(Ra(t))+", "+Fa.transform(Ra(n))+", "+Ra(ja.transform(r))+")"},Za=Aa(0,255),Ga=Object.assign(Object.assign({},Ma),{transform:e=>Math.round(Za(e))}),Xa={test:Ha("rgb","red"),parse:qa("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ga.transform(e)+", "+Ga.transform(t)+", "+Ga.transform(n)+", "+Ra(ja.transform(r))+")"},Ka={test:Ha("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:Xa.transform},Ja={test:e=>Xa.test(e)||Ka.test(e)||Ya.test(e),parse:e=>Xa.test(e)?Xa.parse(e):Ya.test(e)?Ya.parse(e):Ka.parse(e),transform:e=>Pa(e)?e:e.hasOwnProperty("red")?Xa.transform(e):Ya.transform(e)};function Qa(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(Ta);r&&(n=r.length,e=e.replace(Ta,"${c}"),t.push(...r.map(Ja.parse)));const o=e.match(Ia);return o&&(e=e.replace(Ia,"${n}"),t.push(...o.map(Ma.parse))),{values:t,numColors:n,tokenised:e}}function ei(e){return Qa(e).values}function ti(e){const{values:t,numColors:n,tokenised:r}=Qa(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?"${c}":"${n}",r<n?Ja.transform(e[r]):Ra(e[r]));return t}}const ni=e=>"number"==typeof e?0:e,ri={test:function(e){var t,n,r,o;return isNaN(e)&&Pa(e)&&(null!==(n=null===(t=e.match(Ia))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(Ta))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:ei,createTransformer:ti,getAnimatableNone:function(e){const t=ei(e);return ti(e)(t.map(ni))}},oi=new Set(["brightness","contrast","saturate","opacity"]);function ai(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Ia)||[];if(!r)return e;const o=n.replace(r,"");let a=oi.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+o+")"}const ii=/([a-z-]*)\(.*?\)/g,si=Object.assign(Object.assign({},ri),{getAnimatableNone:e=>{const t=e.match(ii);return t?t.map(ai).join(" "):e}});var li=Po(Po({},Ma),{transform:Math.round}),ci={borderWidth:$a,borderTopWidth:$a,borderRightWidth:$a,borderBottomWidth:$a,borderLeftWidth:$a,borderRadius:$a,radius:$a,borderTopLeftRadius:$a,borderTopRightRadius:$a,borderBottomRightRadius:$a,borderBottomLeftRadius:$a,width:$a,maxWidth:$a,height:$a,maxHeight:$a,size:$a,top:$a,right:$a,bottom:$a,left:$a,padding:$a,paddingTop:$a,paddingRight:$a,paddingBottom:$a,paddingLeft:$a,margin:$a,marginTop:$a,marginRight:$a,marginBottom:$a,marginLeft:$a,rotate:Ba,rotateX:Ba,rotateY:Ba,rotateZ:Ba,scale:Da,scaleX:Da,scaleY:Da,scaleZ:Da,skew:Ba,skewX:Ba,skewY:Ba,distance:$a,translateX:$a,translateY:$a,translateZ:$a,x:$a,y:$a,z:$a,perspective:$a,transformPerspective:$a,opacity:ja,originX:Wa,originY:Wa,originZ:$a,zIndex:li,fillOpacity:ja,strokeOpacity:ja,numOctaves:li};function ui(e,t,n,r){var o,a=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(Oa(f))i[f]=m;else{var h=ci[f],v=Na(m,h);if(xa(f)){if(u=!0,s[f]=v,l.push(f),!p)continue;m!==(null!==(o=h.default)&&void 0!==o?o:0)&&(p=!1)}else ka(f)?(c[f]=v,d=!0):a[f]=v}}u?a.transform=function(e,t,n,r){var o=e.transform,a=e.transformKeys,i=t.enableHardwareAcceleration,s=void 0===i||i,l=t.allowTransformNone,c=void 0===l||l,u="";a.sort(ba);for(var d=!1,p=a.length,f=0;f<p;f++){var m=a[f];u+="".concat(_a[m]||m,"(").concat(o[m],") "),"z"===m&&(d=!0)}return!d&&s?u+="translateZ(0)":u=u.trim(),r?u=r(o,n?"":u):c&&n&&(u="none"),u}(e,n,p,r):r?a.transform=r({},""):!t.transform&&a.transform&&(a.transform="none"),d&&(a.transformOrigin=function(e){var t=e.originX,n=e.originY,r=void 0===n?"50%":n,o=e.originZ,a=void 0===o?0:o;return"".concat(void 0===t?"50%":t," ").concat(r," ").concat(a)}(c))}function di(e,t,n){for(var r in t)Ca(t[r])||Sa(r,n)||(e[r]=t[r])}function pi(e,t,n){var r={},o=function(e,t,n){var r={};return di(r,e.style||{},e),Object.assign(r,function(e,t,n){var r=e.transformTemplate;return ne.useMemo(function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};ui(e,t,{enableHardwareAcceleration:!n},r);var o=e.style;return Po(Po({},e.vars),o)},[t])}(e,t,n)),e.transformValues&&(r=e.transformValues(r)),r}(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=o,r}var fi=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 mi(e){return fi.has(e)}var hi,yi=function(e){return!mi(e)};try{(hi=require("@emotion/is-prop-valid").default)&&(yi=function(e){return e.startsWith("on")?!mi(e):hi(e)})}catch(e){}function gi(e,t,n){return"string"==typeof e?e:$a.transform(t+n*e)}var bi={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ei={offset:"strokeDashoffset",array:"strokeDasharray"};function xi(e,t,n,r){var o=t.attrX,a=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;ui(e,Mo(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),e.attrs=e.style,e.style={};var f=e.attrs,m=e.style,h=e.dimensions;f.transform&&(h&&(m.transform=f.transform),delete f.transform),h&&(void 0!==i||void 0!==s||m.transform)&&(m.transformOrigin=function(e,t,n){var r=gi(t,e.x,e.width),o=gi(n,e.y,e.height);return"".concat(r," ").concat(o)}(h,void 0!==i?i:.5,void 0!==s?s:.5)),void 0!==o&&(f.x=o),void 0!==a&&(f.y=a),void 0!==l&&function(e,t,n,r,o){void 0===n&&(n=1),void 0===r&&(r=0),void 0===o&&(o=!0),e.pathLength=1;var a=o?bi:Ei;e[a.offset]=$a.transform(-r);var i=$a.transform(t),s=$a.transform(n);e[a.array]="".concat(i," ").concat(s)}(f,l,u,p,!1)}var wi=function(){return Po(Po({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function ki(e,t){var n=ne.useMemo(function(){var n=wi();return xi(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),Po(Po({},n.attrs),{style:Po({},n.style)})},[t]);if(e.style){var r={};di(r,e.style,e),n.style=Po(Po({},r),n.style)}return n}function Si(e){return void 0===e&&(e=!1),function(t,n,r,o,a,i){var s=a.latestValues,l=(ha(t)?ki:pi)(n,s,i),c=function(e,t,n){var r={};for(var o in e)(yi(o)||!0===n&&mi(o)||!t&&!mi(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),u=Po(Po(Po({},c),l),{ref:o});return r&&(u["data-projection-id"]=r),ne.createElement(t,u)}}var Ci=/([a-z])([A-Z])/g,_i=function(e){return e.replace(Ci,"$1-$2").toLowerCase()};function Oi(e,t,n,r){var o=t.style,a=t.vars;for(var i in Object.assign(e.style,o,r&&r.getProjectionStyles(n)),a)e.style.setProperty(i,a[i])}var Ni=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Ai(e,t,n,r){for(var o in Oi(e,t,void 0,r),t.attrs)e.setAttribute(Ni.has(o)?o:_i(o),t.attrs[o])}function Ri(e){var t=e.style,n={};for(var r in t)(Ca(t[r])||Sa(r,e))&&(n[r]=t[r]);return n}function Ii(e){var t=Ri(e);for(var n in e)Ca(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function Ti(e){return"object"==typeof e&&"function"==typeof e.start}var Li=function(e){return Array.isArray(e)},Pi=function(e){return Li(e)?e[e.length-1]||0:e};function Mi(e){var t=Ca(e)?e.get():e;return function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)}(t)?t.toValue():t}function ji(e,t,n,r){var o=e.createRenderState,a=e.onMount,i={latestValues:Vi(t,n,r,e.scrapeMotionValuesFromProps),renderState:o()};return a&&(i.mount=function(e){return a(t,e,i)}),i}var Di=function(e){return function(t,n){var r=ne.useContext(Yo),o=ne.useContext(Zo);return n?ji(e,t,r,o):sa(function(){return ji(e,t,r,o)})}};function Vi(e,t,n,r){var o={},a=!1===(null==n?void 0:n.initial),i=r(e);for(var s in i)o[s]=Mi(i[s]);var l=e.initial,c=e.animate,u=oa(e),d=aa(e);t&&d&&!u&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=c||(c=t.animate));var p=a||!1===l,f=p?c:l;return f&&"boolean"!=typeof f&&!Ti(f)&&(Array.isArray(f)?f:[f]).forEach(function(t){var n=na(e,t);if(n){var r=n.transitionEnd,a=Mo(n,["transitionEnd","transition"]);for(var i in a){var s=a[i];Array.isArray(s)&&(s=s[p?s.length-1:0]),null!==s&&(o[i]=s)}for(var i in r)o[i]=r[i]}}),o}var Bi,Fi={useVisualState:Di({scrapeMotionValuesFromProps:Ii,createRenderState:wi,onMount:function(e,t,n){var r=n.renderState,o=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}}xi(r,o,{enableHardwareAcceleration:!1},e.transformTemplate),Ai(t,r)}})},$i={useVisualState:Di({scrapeMotionValuesFromProps:Ri,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function zi(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Ui(e,t,n,r){ne.useEffect(function(){var o=e.current;if(n&&o)return zi(o,t,n,r)},[e,t,n,r])}function Wi(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Hi(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"}(Bi||(Bi={}));var qi={pageX:0,pageY:0};function Yi(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||qi;return{x:n[t+"X"],y:n[t+"Y"]}}function Zi(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Gi(e,t){return void 0===t&&(t="page"),{point:Hi(e)?Yi(e,t):Zi(e,t)}}var Xi=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,Gi(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},Ki={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Ji={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Qi(e){return Go&&null===window.onpointerdown?e:Go&&null===window.ontouchstart?Ji[e]:Go&&null===window.onmousedown?Ki[e]:e}function es(e,t,n,r){return zi(e,Qi(t),Xi(n,"pointerdown"===t),r)}function ts(e,t,n,r){return Ui(e,Qi(t),n&&Xi(n,"pointerdown"===t),r)}function ns(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var rs=ns("dragHorizontal"),os=ns("dragVertical");function as(e){var t=!1;if("y"===e)t=os();else if("x"===e)t=rs();else{var n=rs(),r=os();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function is(){var e=as(!0);return!e||(e(),!1)}function ss(e,t,n){return function(r,o){var a;Wi(r)&&!is()&&(null===(a=e.animationState)||void 0===a||a.setActive(Bi.Hover,t),null==n||n(r,o))}}var ls=function(e,t){return!!t&&(e===t||ls(e,t.parentElement))};function cs(e){return ne.useEffect(function(){return function(){return e()}},[])}const us=(e,t,n)=>Math.min(Math.max(n,e),t);function ds(e,t){return e*Math.sqrt(1-t*t)}const ps=["duration","bounce"],fs=["stiffness","damping","mass"];function ms(e,t){return t.some(t=>void 0!==e[t])}function hs(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,a=Mo(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(!ms(e,fs)&&ms(e,ps)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,a;$o(e<=1e4,"Spring duration must be 10 seconds or less");let i=1-t;i=us(.05,1,i),e=us(.01,10,e/1e3),i<1?(o=t=>{const r=t*i,o=r*e;return.001-(r-n)/ds(t,i)*Math.exp(-o)},a=t=>{const r=t*i*e,a=r*n+n,s=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=ds(Math.pow(t,2),i);return(.001-o(t)>0?-1:1)*((a-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,a=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}(o,a,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}(a),f=vs,m=vs;function h(){const e=u?-u/1e3:0,r=n-t,a=l/(2*Math.sqrt(s*c)),i=Math.sqrt(s/c)/1e3;if(void 0===o&&(o=Math.min(Math.abs(n-t)/100,.4)),a<1){const t=ds(i,a);f=o=>{const s=Math.exp(-a*i*o);return n-s*((e+a*i*r)/t*Math.sin(t*o)+r*Math.cos(t*o))},m=n=>{const o=Math.exp(-a*i*n);return a*i*o*(Math.sin(t*n)*(e+a*i*r)/t+r*Math.cos(t*n))-o*(Math.cos(t*n)*(e+a*i*r)-t*r*Math.sin(t*n))}}else if(1===a)f=t=>n-Math.exp(-i*t)*(r+(e+i*r)*t);else{const t=i*Math.sqrt(a*a-1);f=o=>{const s=Math.exp(-a*i*o),l=Math.min(t*o,300);return n-s*((e+a*i*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return h(),{next:e=>{const t=f(e);if(p)i.done=e>=d;else{const a=1e3*m(e),s=Math.abs(a)<=r,l=Math.abs(n-t)<=o;i.done=s&&l}return i.value=i.done?n:t,i},flipTarget:()=>{u=-u,[t,n]=[n,t],h()}}}hs.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const vs=e=>0,ys=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},gs=(e,t,n)=>-n*e+n*t+e;function bs(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 Es({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,a=0,i=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=bs(s,r,e+1/3),a=bs(s,r,e),i=bs(s,r,e-1/3)}else o=a=i=n;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*i),alpha:r}}const xs=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},ws=[Ka,Xa,Ya],ks=e=>ws.find(t=>t.test(e)),Ss=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,Cs=(e,t)=>{let n=ks(e),r=ks(t);zo(!!n,Ss(e)),zo(!!r,Ss(t));let o=n.parse(e),a=r.parse(t);n===Ya&&(o=Es(o),n=Xa),r===Ya&&(a=Es(a),r=Xa);const i=Object.assign({},o);return e=>{for(const t in i)"alpha"!==t&&(i[t]=xs(o[t],a[t],e));return i.alpha=gs(o.alpha,a.alpha,e),n.transform(i)}},_s=e=>"number"==typeof e,Os=(e,t)=>n=>t(e(n)),Ns=(...e)=>e.reduce(Os);function As(e,t){return _s(e)?n=>gs(e,t,n):Ja.test(e)?Cs(e,t):Ls(e,t)}const Rs=(e,t)=>{const n=[...e],r=n.length,o=e.map((e,n)=>As(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},Is=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=As(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function Ts(e){const t=ri.parse(e),n=t.length;let r=0,o=0,a=0;for(let e=0;e<n;e++)r||"number"==typeof t[e]?r++:void 0!==t[e].hue?a++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:a}}const Ls=(e,t)=>{const n=ri.createTransformer(t),r=Ts(e),o=Ts(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?Ns(Rs(r.parsed,o.parsed),n):($o(!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}`)},Ps=(e,t)=>n=>gs(e,t,n);function Ms(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const a=e.length;zo(a===t.length,"Both input and output ranges must be the same length"),zo(!r||!Array.isArray(r)||r.length===a-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[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const i=function(e,t,n){const r=[],o=n||function(e){return"number"==typeof e?Ps:"string"==typeof e?Ja.test(e)?Cs:Ls:Array.isArray(e)?Rs:"object"==typeof e?Is:void 0}(e[0]),a=e.length-1;for(let n=0;n<a;n++){let a=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]:t;a=Ns(e,a)}r.push(a)}return r}(t,r,o),s=2===a?function([e,t],[n]){return r=>n(ys(e,t,r))}(e,i):function(e,t){const n=e.length,r=n-1;return o=>{let a=0,i=!1;if(o<=e[0]?i=!0:o>=e[r]&&(a=r-1,i=!0),!i){let t=1;for(;t<n&&!(e[t]>o||t===r);t++);a=t-1}const s=ys(e[a],e[a+1],o);return t[a](s)}}(e,i);return n?t=>s(us(e[0],e[a-1],t)):s}const js=e=>t=>1-e(1-t),Ds=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Vs=e=>t=>t*t*((e+1)*t-e),Bs=e=>e,Fs=e=>Math.pow(e,2),$s=js(Fs),zs=Ds(Fs),Us=e=>1-Math.sin(Math.acos(e)),Ws=js(Us),Hs=Ds(Ws),qs=Vs(1.525),Ys=js(qs),Zs=Ds(qs),Gs=(e=>{const t=Vs(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(),Xs=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},Ks=js(Xs);function Js(e,t){return e.map(()=>t||zs).splice(0,e.length-1)}function Qs({from:e=0,to:t=1,ease:n,offset:r,duration:o=300}){const a={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),o);function l(){return Ms(s,i,{ease:Array.isArray(n)?n:Js(i,n)})}let c=l();return{next:e=>(a.value=c(e),a.done=e>=o,a),flipTarget:()=>{i.reverse(),c=l()}}}const el={keyframes:Qs,spring:hs,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:a}){const i={done:!1,value:t};let s=n*e;const l=t+s,c=void 0===a?l:a(l);return c!==l&&(s=c-t),{next:e=>{const t=-s*Math.exp(-e/r);return i.done=!(t>o||t<-o),i.value=i.done?c:c+t,i},flipTarget:()=>{}}}},tl="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),nl="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(tl()),16.666666666666668);let rl=!0,ol=!1,al=!1;const il={delta:0,timestamp:0},sl=["read","update","preRender","render","postRender"],ll=sl.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{const l=s&&o,c=l?t:n;return a&&i.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:e=>{if(o)a=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(e),i.has(r)&&(s.schedule(r),ol=!0)}o=!1,a&&(a=!1,s.process(e))}}};return s}(),e),{}),cl=sl.reduce((e,t)=>{const n=ll[t];return e[t]=(e,t=!1,r=!1)=>(ol||fl(),n.schedule(e,t,r)),e},{}),ul=sl.reduce((e,t)=>(e[t]=ll[t].cancel,e),{});sl.reduce((e,t)=>(e[t]=()=>ll[t].process(il),e),{});const dl=e=>ll[e].process(il),pl=e=>{ol=!1,il.delta=rl?16.666666666666668:Math.max(Math.min(e-il.timestamp,40),1),il.timestamp=e,al=!0,sl.forEach(dl),al=!1,ol&&(rl=!1,nl(pl))},fl=()=>{ol=!0,rl=!0,al||nl(pl)};function ml(e,t,n=0){return e-t-n}const hl=e=>{const t=({delta:t})=>e(t);return{start:()=>cl.update(t,!0),stop:()=>ul.update(t)}};function vl(e){var t,n,{from:r,autoplay:o=!0,driver:a=hl,elapsed:i=0,repeat:s=0,repeatType:l="loop",repeatDelay:c=0,onPlay:u,onStop:d,onComplete:p,onRepeat:f,onUpdate:m}=e,h=Mo(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let v,y,g,{to:b}=h,E=0,x=h.duration,w=!1,k=!0;const S=function(e){if(Array.isArray(e.to))return Qs;if(el[e.type])return el[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Qs:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?hs:Qs}(h);(null===(n=(t=S).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(g=Ms([0,100],[r,b],{clamp:!1}),r=0,b=100);const C=S(Object.assign(Object.assign({},h),{from:r,to:b}));return o&&(null==u||u(),v=a(function(e){if(k||(e=-e),i+=e,!w){const e=C.next(Math.max(0,i));y=e.value,g&&(y=g(y)),w=k?e.done:i<=0}null==m||m(y),w&&(0===E&&(null!=x||(x=i)),E<s?function(e,t,n,r){return r?e>=t+n:e<=-n}(i,x,c,k)&&(E++,"reverse"===l?(k=E%2==0,i=function(e,t,n=0,r=!0){return r?ml(t+-e,t,n):t-(e-t)+n}(i,x,c,k)):(i=ml(i,x,c),"mirror"===l&&C.flipTarget()),w=!1,f&&f()):(v.stop(),p&&p()))}),v.start()),{stop:()=>{null==d||d(),v.stop()}}}function yl(e,t){return t?e*(1e3/t):0}const gl=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),bl=e=>gl(e)&&e.hasOwnProperty("z"),El=(e,t)=>Math.abs(e-t);function xl(e,t){if(_s(e)&&_s(t))return El(e,t);if(gl(e)&&gl(t)){const n=El(e.x,t.x),r=El(e.y,t.y),o=bl(e)&&bl(t)?El(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}const wl=(e,t)=>1-3*t+3*e,kl=(e,t)=>3*t-6*e,Sl=e=>3*e,Cl=(e,t,n)=>((wl(t,n)*e+kl(t,n))*e+Sl(t))*e,_l=(e,t,n)=>3*wl(t,n)*e*e+2*kl(t,n)*e+Sl(t);var Ol=new Set;function Nl(e,t,n){e||Ol.has(t)||(console.warn(t),n&&console.warn(n),Ol.add(t))}var Al=new WeakMap,Rl=new WeakMap,Il=function(e){var t;null===(t=Al.get(e.target))||void 0===t||t(e)},Tl=function(e){e.forEach(Il)},Ll={some:0,all:1};function Pl(e,t,n,r){var o=r.root,a=r.margin,i=r.amount,s=void 0===i?"some":i,l=r.once;ne.useEffect(function(){if(e){var r={root:null==o?void 0:o.current,rootMargin:a,threshold:"number"==typeof s?s:Ll[s]};return function(e,r,o){var a=function(e){var t=e.root,n=Mo(e,["root"]),r=t||document;Rl.has(r)||Rl.set(r,{});var o=Rl.get(r),a=JSON.stringify(n);return o[a]||(o[a]=new IntersectionObserver(Tl,Po({root:t},n))),o[a]}(r);return Al.set(e,function(e){var r,o=e.isIntersecting;if(t.isInView!==o&&(t.isInView=o,!l||o||!t.hasEnteredView)){o&&(t.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(Bi.InView,o);var a=n.getProps(),i=o?a.onViewportEnter:a.onViewportLeave;null==i||i(e)}}),a.observe(e),function(){Al.delete(e),a.unobserve(e)}}(n.getInstance(),r)}},[e,o,a,s])}function Ml(e,t,n,r){var o=r.fallback,a=void 0===o||o;ne.useEffect(function(){e&&a&&("production"!==Vo&&Nl(!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(Bi.InView,!0)}))},[e])}var jl=function(e){return function(t){return e(t),null}},Dl={inView:jl(function(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,o=e.onViewportLeave,a=e.viewport,i=void 0===a?{}:a,s=ne.useRef({hasEnteredView:!1,isInView:!1}),l=Boolean(n||r||o);i.once&&s.current.hasEnteredView&&(l=!1),("undefined"==typeof IntersectionObserver?Ml:Pl)(l,s.current,t,i)}),tap:jl(function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,o=e.visualElement,a=t||n||r||e.whileTap,i=ne.useRef(!1),s=ne.useRef(null),l={passive:!(n||t||r||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=o.animationState)||void 0===e||e.setActive(Bi.Tap,!1),!is()}function d(e,n){u()&&(ls(o.getInstance(),e.target)?null==t||t(e,n):null==r||r(e,n))}function p(e,t){u()&&(null==r||r(e,t))}function f(e,t){var r;c(),i.current||(i.current=!0,s.current=Ns(es(window,"pointerup",d,l),es(window,"pointercancel",p,l)),null===(r=o.animationState)||void 0===r||r.setActive(Bi.Tap,!0),null==n||n(e,t))}ts(o,"pointerdown",a?f:void 0,l),cs(c)}),focus:jl(function(e){var t=e.whileFocus,n=e.visualElement;Ui(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Bi.Focus,!0)}:void 0),Ui(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Bi.Focus,!1)}:void 0)}),hover:jl(function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,o=e.visualElement;ts(o,"pointerenter",t||r?ss(o,!0,t):void 0,{passive:!t}),ts(o,"pointerleave",n||r?ss(o,!1,n):void 0,{passive:!n})})},Vl=0,Bl=function(){return Vl++},Fl=function(){return sa(Bl)};function $l(){var e=ne.useContext(Zo);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,o=Fl();return ne.useEffect(function(){return r(o)},[]),!t&&n?[!1,function(){return null==n?void 0:n(o)}]:[!0]}function zl(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 Ul=function(e){return 1e3*e},Wl={linear:Bs,easeIn:Fs,easeInOut:zs,easeOut:$s,circIn:Us,circInOut:Hs,circOut:Ws,backIn:qs,backInOut:Zs,backOut:Ys,anticipate:Gs,bounceIn:Ks,bounceInOut:e=>e<.5?.5*(1-Xs(1-2*e)):.5*Xs(2*e-1)+.5,bounceOut:Xs},Hl=function(e){if(Array.isArray(e)){zo(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=jo(e,4);return function(e,t,n,r){if(e===t&&n===r)return Bs;const o=new Float32Array(11);for(let t=0;t<11;++t)o[t]=Cl(.1*t,e,n);return a=>0===a||1===a?a:Cl(function(t){let r=0,a=1;for(;10!==a&&o[a]<=t;++a)r+=.1;--a;const i=r+(t-o[a])/(o[a+1]-o[a])*.1,s=_l(i,e,n);return s>=.001?function(e,t,n,r){for(let o=0;o<8;++o){const o=_l(t,n,r);if(0===o)return t;t-=(Cl(t,n,r)-e)/o}return t}(t,i,e,n):0===s?i:function(e,t,n,r,o){let a,i,s=0;do{i=t+(n-t)/2,a=Cl(i,r,o)-e,a>0?n=i:t=i}while(Math.abs(a)>1e-7&&++s<10);return i}(t,r,r+.1,e,n)}(a),t,r)}(t[0],t[1],t[2],t[3])}return"string"==typeof e?(zo(void 0!==Wl[e],"Invalid easing type '".concat(e,"'")),Wl[e]):e},ql=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!ri.test(t)||t.startsWith("url(")))},Yl=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Zl=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},Gl=function(){return{type:"keyframes",ease:"linear",duration:.3}},Xl=function(e){return{type:"keyframes",duration:.8,values:e}},Kl={x:Yl,y:Yl,z:Yl,rotate:Yl,rotateX:Yl,rotateY:Yl,rotateZ:Yl,scaleX:Zl,scaleY:Zl,scale:Zl,opacity:Gl,backgroundColor:Gl,color:Gl,default:Zl},Jl=Po(Po({},ci),{color:Ja,backgroundColor:Ja,outlineColor:Ja,fill:Ja,stroke:Ja,borderColor:Ja,borderTopColor:Ja,borderRightColor:Ja,borderBottomColor:Ja,borderLeftColor:Ja,filter:si,WebkitFilter:si}),Ql=function(e){return Jl[e]};function ec(e,t){var n,r=Ql(e);return r!==si&&(r=ri),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var tc=!1;function nc(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function rc(e){return"number"==typeof e?0:ec("",e)}function oc(e,t){return e[t]||e.default||e}function ac(e,t,n,r){return void 0===r&&(r={}),t.start(function(o){var a,i,s=function(e,t,n,r,o){var a,i=oc(r,e),s=null!==(a=i.from)&&void 0!==a?a:t.get(),l=ql(e,n);"none"===s&&l&&"string"==typeof n?s=ec(e,n):nc(s)&&"string"==typeof n?s=rc(n):!Array.isArray(n)&&nc(n)&&"string"==typeof s&&(n=rc(s));var c=ql(e,s);return $o(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:o,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:o=.8,timeConstant:a=750,bounceStiffness:i=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:d,onComplete:p,onStop:f}){let m;function h(e){return void 0!==n&&e<n||void 0!==r&&e>r}function v(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=vl(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:p,onStop:f}))}function g(e){y(Object.assign({type:"spring",stiffness:i,damping:s,restDelta:l},e))}if(h(e))g({from:e,velocity:t,to:v(e)});else{let r=o*t+e;void 0!==c&&(r=c(r));const i=v(r),s=i===n?-1:1;let u,d;const p=e=>{u=d,d=e,t=yl(e-u,il.delta),(1===s&&e>i||-1===s&&e<i)&&g({from:e,to:i,velocity:t})};y({type:"decay",from:e,velocity:t,timeConstant:a,power:o,restDelta:l,modifyTarget:c,onUpdate:h(r)?p:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(Po(Po({},r),i)):vl(Po(Po({},function(e,t,n){var r,o,a,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=Do([],jo(e.to),!1),e.to[0]=e.from)}(t),function(e){var t=Mo(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=Po(Po({},e),(o=n,i=Li(a=t.to)?Xl:Kl[o]||Kl.default,Po({to:a},i(a))))),Po(Po({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,o=e.flip,a=e.loop,i=Mo(e,["ease","times","yoyo","flip","loop"]),s=Po({},i);return n&&(s.offset=n),i.duration&&(s.duration=Ul(i.duration)),i.repeatDelay&&(s.repeatDelay=Ul(i.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(Hl):Hl(t)),"tween"===i.type&&(s.type="keyframes"),(r||a||o)&&($o(!tc,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),tc=!0,r?s.repeatType="reverse":a?s.repeatType="loop":o&&(s.repeatType="mirror"),s.repeat=a||r||o||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,a=Pi(n);return t.set(a),o(),null===(e=null==i?void 0:i.onUpdate)||void 0===e||e.call(i,a),null===(r=null==i?void 0:i.onComplete)||void 0===r||r.call(i),{stop:function(){}}}}(e,t,n,r,o),l=function(e,t){var n,r;return null!==(r=null!==(n=(oc(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),c=function(){return i=s()};return l?a=window.setTimeout(c,Ul(l)):c(),function(){clearTimeout(a),null==i||i.stop()}})}var ic=function(e){return/^\-?\d*\.?\d+$/.test(e)},sc=function(e){return/^0[^.\s]+$/.test(e)};const lc="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),cc="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(lc()),16.666666666666668);let uc=!0,dc=!1,pc=!1;const fc={delta:0,timestamp:0},mc=["read","update","preRender","render","postRender"],hc=mc.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{const l=s&&o,c=l?t:n;return a&&i.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:l=>{if(o)a=!0;else{if(o=!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())}o=!1,a&&(a=!1,s.process(l))}}};return s}(()=>dc=!0),e),{}),vc=mc.reduce((e,t)=>{const n=hc[t];return e[t]=(e,t=!1,r=!1)=>(dc||xc(),n.schedule(e,t,r)),e},{}),yc=mc.reduce((e,t)=>(e[t]=hc[t].cancel,e),{}),gc=mc.reduce((e,t)=>(e[t]=()=>hc[t].process(fc),e),{}),bc=e=>hc[e].process(fc),Ec=e=>{dc=!1,fc.delta=uc?16.666666666666668:Math.max(Math.min(e-fc.timestamp,40),1),fc.timestamp=e,pc=!0,mc.forEach(bc),pc=!1,dc&&(uc=!1,cc(Ec))},xc=()=>{dc=!0,uc=!0,pc||cc(Ec)},wc=()=>fc;function kc(e,t){-1===e.indexOf(t)&&e.push(t)}function Sc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Cc=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return kc(this.subscriptions,e),function(){return Sc(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 o=0;o<r;o++){var a=this.subscriptions[o];a&&a(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),_c=function(){function e(e){var t=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Cc,this.velocityUpdateSubscribers=new Cc,this.renderSubscribers=new Cc,this.canTrackVelocity=!1,this.updateAndNotify=function(e,n){void 0===n&&(n=!0),t.prev=t.current,t.current=e;var r=wc(),o=r.timestamp;t.lastUpdated!==o&&(t.timeDelta=r.delta,t.lastUpdated=o,vc.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 vc.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?yl(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 Oc(e){return new _c(e)}var Nc=function(e){return function(t){return t.test(e)}},Ac=[Ma,$a,Fa,Ba,Ua,za,{test:function(e){return"auto"===e},parse:function(e){return e}}],Rc=function(e){return Ac.find(Nc(e))},Ic=Do(Do([],jo(Ac),!1),[Ja,ri],!1),Tc=function(e){return Ic.find(Nc(e))};function Lc(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Oc(n))}function Pc(e,t){if(t)return(t[e]||t.default||t).from}function Mc(e,t,n){var r;void 0===n&&(n={});var o=ra(e,t,n.custom),a=(o||{}).transition,i=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(i=n.transitionOverride);var s=o?function(){return jc(e,o,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 o=i.delayChildren;return function(e,t,n,r,o,a){void 0===n&&(n=0),void 0===r&&(r=0),void 0===o&&(o=1);var i=[],s=(e.variantChildren.size-1)*r,l=1===o?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(Dc).forEach(function(e,r){i.push(Mc(e,t,Po(Po({},a),{delay:n+l(r)})).then(function(){return e.notifyAnimationComplete(t)}))}),Promise.all(i)}(e,t,(void 0===o?0:o)+r,i.staggerChildren,i.staggerDirection,n)}:function(){return Promise.resolve()},c=i.when;if(c){var u=jo("beforeChildren"===c?[s,l]:[l,s],2),d=u[1];return(0,u[0])().then(d)}return Promise.all([s(),l(n.delay)])}function jc(e,t,n){var r,o=void 0===n?{}:n,a=o.delay,i=void 0===a?0:a,s=o.transitionOverride,l=o.type,c=e.makeTargetAnimatable(t),u=c.transition,d=void 0===u?e.getDefaultTransition():u,p=c.transitionEnd,f=Mo(c,["transition","transitionEnd"]);s&&(d=s);var m=[],h=l&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[l]);for(var v in f){var y=e.getValue(v),g=f[v];if(!(!y||void 0===g||h&&Vc(h,v))){var b=Po({delay:i},d);e.shouldReduceMotion&&xa(v)&&(b=Po(Po({},b),{type:!1,delay:0}));var E=ac(v,y,g,b);m.push(E)}}return Promise.all(m).then(function(){p&&function(e,t){var n=ra(e,t),r=n?e.makeTargetAnimatable(n,!1):{},o=r.transitionEnd,a=void 0===o?{}:o,i=Mo(r,["transitionEnd","transition"]);for(var s in i=Po(Po({},i),a))Lc(e,s,Pi(i[s]))}(e,p)})}function Dc(e,t){return e.sortNodePosition(t)}function Vc(e,t){var n=e.needsAnimating,r=e.protectedKeys.hasOwnProperty(t)&&!0!==n[t];return n[t]=!1,r}var Bc=[Bi.Animate,Bi.InView,Bi.Focus,Bi.Hover,Bi.Tap,Bi.Drag,Bi.Exit],Fc=Do([],jo(Bc),!1).reverse(),$c=Bc.length;function zc(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Uc={animation:jl(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 o=t.map(function(t){return Mc(e,t,n)});r=Promise.all(o)}else if("string"==typeof t)r=Mc(e,t,n);else{var a="function"==typeof t?ra(e,t,n.custom):t;r=jc(e,a,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}(e,t.animation,t.options)}))}}(e),r=((t={})[Bi.Animate]=zc(!0),t[Bi.InView]=zc(),t[Bi.Hover]=zc(),t[Bi.Tap]=zc(),t[Bi.Drag]=zc(),t[Bi.Focus]=zc(),t[Bi.Exit]=zc(),t),o={},a=!0,i=function(t,n){var r=ra(e,n);if(r){var o=r.transitionEnd,a=Mo(r,["transition","transitionEnd"]);t=Po(Po(Po({},t),a),o)}return t};function s(t,s){for(var l,c=e.getProps(),u=e.getVariantContext(!0)||{},d=[],p=new Set,f={},m=Infinity,h=function(n){var o=Fc[n],h=r[o],v=null!==(l=c[o])&&void 0!==l?l:u[o],y=ta(v),g=o===s?h.isActive:null;!1===g&&(m=n);var b=v===u[o]&&v!==c[o]&&y;if(b&&a&&e.manuallyAnimateOnMount&&(b=!1),h.protectedKeys=Po({},f),!h.isActive&&null===g||!v&&!h.prevProp||Ti(v)||"boolean"==typeof v)return"continue";var E=function(e,t){return"string"==typeof t?t!==e:!!ea(t)&&!zl(t,e)}(h.prevProp,v),x=E||o===s&&h.isActive&&!b&&y||n>m&&y,w=Array.isArray(v)?v:[v],k=w.reduce(i,{});!1===g&&(k={});var S=h.prevResolvedValues,C=void 0===S?{}:S,_=Po(Po({},C),k),O=function(e){x=!0,p.delete(e),h.needsAnimating[e]=!0};for(var N in _){var A=k[N],R=C[N];f.hasOwnProperty(N)||(A!==R?Li(A)&&Li(R)?!zl(A,R)||E?O(N):h.protectedKeys[N]=!0:void 0!==A?O(N):p.add(N):void 0!==A&&p.has(N)?O(N):h.protectedKeys[N]=!0)}h.prevProp=v,h.prevResolvedValues=k,h.isActive&&(f=Po(Po({},f),k)),a&&e.blockInitialAnimation&&(x=!1),x&&!b&&d.push.apply(d,Do([],jo(w.map(function(e){return{animation:e,options:Po({type:o},t)}})),!1))},v=0;v<$c;v++)h(v);if(o=Po({},f),p.size){var y={};p.forEach(function(t){var n=e.getBaseTarget(t);void 0!==n&&(y[t]=n)}),d.push({animation:y})}var g=Boolean(d.length);return a&&!1===c.initial&&!e.manuallyAnimateOnMount&&(g=!1),a=!1,g?n(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==o[e]},animateChanges:s,setActive:function(t,n,o){var a;if(r[t].isActive===n)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.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(o,t);for(var l in r)r[l].protectedKeys={};return i},setAnimateFunction:function(t){n=t(e)},getState:function(){return r}}}(t)),Ti(n)&&ne.useEffect(function(){return n.subscribe(t)},[n])}),exit:jl(function(e){var t=e.custom,n=e.visualElement,r=jo($l(),2),o=r[0],a=r[1],i=ne.useContext(Zo);ne.useEffect(function(){var e,r;n.isPresent=o;var s=null===(e=n.animationState)||void 0===e?void 0:e.setActive(Bi.Exit,!o,{custom:null!==(r=null==i?void 0:i.custom)&&void 0!==r?r:t});!o&&(null==s||s.then(a))},[o])})},Wc=function(){function e(e,t,n){var r=this,o=(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=Yc(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=xl(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,a=wc().timestamp;r.history.push(Po(Po({},o),{timestamp:a}));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=Hc(t,r.transformPagePoint),Wi(e)&&0===e.buttons?r.handlePointerUp(e,t):vc.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,o=n.onEnd,a=n.onSessionEnd,i=Yc(Hc(t,r.transformPagePoint),r.history);r.startEvent&&o&&o(e,i),a&&a(e,i)},!(Hi(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var a=Hc(Gi(e),this.transformPagePoint),i=a.point,s=wc().timestamp;this.history=[Po(Po({},i),{timestamp:s})];var l=t.onSessionStart;l&&l(e,Yc(a,this.history)),this.removeListeners=Ns(es(window,"pointermove",this.handlePointerMove),es(window,"pointerup",this.handlePointerUp),es(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),yc.update(this.updatePoint)},e}();function Hc(e,t){return t?{point:t(e.point)}:e}function qc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Yc(e,t){var n=e.point;return{point:n,delta:qc(n,Gc(t)),offset:qc(n,Zc(t)),velocity:Xc(t,.1)}}function Zc(e){return e[0]}function Gc(e){return e[e.length-1]}function Xc(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=Gc(e);n>=0&&!(o.timestamp-(r=e[n]).timestamp>Ul(t));)n--;if(!r)return{x:0,y:0};var a=(o.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var i={x:(o.x-r.x)/a,y:(o.y-r.y)/a};return Infinity===i.x&&(i.x=0),Infinity===i.y&&(i.y=0),i}function Kc(e){return e.max-e.min}function Jc(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),xl(e,t)<n}function Qc(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=gs(t.min,t.max,e.origin),e.scale=Kc(n)/Kc(t),(Jc(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=gs(n.min,n.max,e.origin)-e.originPoint,(Jc(e.translate)||isNaN(e.translate))&&(e.translate=0)}function eu(e,t,n,r){Qc(e.x,t.x,n.x,null==r?void 0:r.originX),Qc(e.y,t.y,n.y,null==r?void 0:r.originY)}function tu(e,t,n){e.min=n.min+t.min,e.max=e.min+Kc(t)}function nu(e,t,n){e.min=t.min-n.min,e.max=e.min+Kc(t)}function ru(e,t,n){nu(e.x,t.x,n.x),nu(e.y,t.y,n.y)}function ou(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 au(e,t){var n,r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=jo([o,r],2))[0],o=n[1]),{min:r,max:o}}function iu(e,t,n){return{min:su(e,t),max:su(e,n)}}function su(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function lu(e){return[e("x"),e("y")]}function cu(e){return{x:{min:e.left,max:e.right},y:{min:e.top,max:e.bottom}}}function uu(e){return void 0===e||1===e}function du(e){var t=e.scaleX,n=e.scaleY;return!uu(e.scale)||!uu(t)||!uu(n)}function pu(e){return du(e)||fu(e.x)||fu(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function fu(e){return e&&"0%"!==e}function mu(e,t,n){return n+t*(e-n)}function hu(e,t,n,r,o){return void 0!==o&&(e=mu(e,o,r)),mu(e,n,r)+t}function vu(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=hu(e.min,t,n,r,o),e.max=hu(e.max,t,n,r,o)}function yu(e,t){var n=t.x,r=t.y;vu(e.x,n.translate,n.scale,n.originPoint),vu(e.y,r.translate,r.scale,r.originPoint)}function gu(e,t){e.min=e.min+t,e.max=e.max+t}function bu(e,t,n){var r=jo(n,3),o=r[0],a=r[1],i=r[2],s=gs(e.min,e.max,void 0!==t[i]?t[i]:.5);vu(e,t[o],t[a],s,t.scale)}var Eu=["x","scaleX","originX"],xu=["y","scaleY","originY"];function wu(e,t){bu(e.x,t,Eu),bu(e.y,t,xu)}function ku(e,t){return cu(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 Su=new WeakMap,Cu=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,o=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new Wc(e,{onSessionStart:function(e){n.stopAnimation(),o&&n.snapToCursor(Gi(e,"page").point)},onStart:function(e,t){var r,o=n.getProps(),a=o.drag,i=o.onDragStart;(!a||o.dragPropagation||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=as(a),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),lu(function(e){var t,r,o=n.getAxisMotionValue(e).get()||0;if(Fa.test(o)){var a=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];a&&(o=Kc(a)*(parseFloat(o)/100))}n.originPoint[e]=o}),null==i||i(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(Bi.Drag,!0))},onMove:function(e,t){var r=n.getProps(),o=r.onDirectionLock,a=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==o||o(n.currentDirection)));n.updateAxis("x",t.point,i),n.updateAxis("y",t.point,i),n.visualElement.syncRender(),null==a||a(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(Bi.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&_u(e,r,this.currentDirection)){var o=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,t,n){var r=t.min,o=t.max;return void 0!==r&&e<r?e=n?gs(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?gs(o,e,n.max):Math.min(e,o)),e}(a,this.constraints[e],this.elastic[e])),o.set(a)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,o=(this.visualElement.projection||{}).layout,a=this.constraints;n&&Qo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!o)&&function(e,t){var n=t.top,r=t.bottom;return{x:ou(e.x,t.left,t.right),y:ou(e.y,n,r)}}(o.actual,n),this.elastic=function(e){return void 0===e&&(e=.35),!1===e?e=0:!0===e&&(e=.35),{x:iu(e,"left","right"),y:iu(e,"top","bottom")}}(r),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&lu(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}(o.actual[t],e.constraints[t]))})},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!Qo(t))return!1;var r=t.current;zo(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var o=this.visualElement.projection;if(!o||!o.layout)return!1;var a=function(e,t,n){var r=ku(e,n),o=t.scroll;return o&&(gu(r.x,o.x),gu(r.y,o.y)),r}(r,o.root,this.visualElement.getTransformPagePoint()),i=function(e,t){return{x:au(e.x,t.x),y:au(e.y,t.y)}}(o.layout.actual,a);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=cu(s))}return i},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,o=n.dragMomentum,a=n.dragElastic,i=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,c=this.constraints||{},u=lu(function(n){var l;if(_u(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=Po(Po({type:"inertia",velocity:o?e[n]:0,bounceStiffness:a?200:1e6,bounceDamping:a?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 ac(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;lu(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;lu(function(n){if(_u(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,o=t.getAxisMotionValue(n);if(r&&r.layout){var a=r.layout.actual[n];o.set(e[n]-gs(a.min,a.max,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,o=this.visualElement.projection;if(Qo(n.dragConstraints)&&o&&this.constraints){this.stopAnimation();var a={x:0,y:0};lu(function(e){var n,r,o,i,s,l=t.getAxisMotionValue(e);if(l){var c=l.get();a[e]=(r=t.constraints[e],o=.5,i=Kc(n={min:c,max:c}),(s=Kc(r))>i?o=ys(r.min,r.max-i,n.min):i>s&&(o=ys(n.min,n.max-s,r.min)),us(0,1,o))}});var i=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=i?i({},""):"none",null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout(),this.resolveConstraints(),lu(function(e){if(_u(e,r,null)){var n=t.getAxisMotionValue(e),o=t.constraints[e];n.set(gs(o.min,o.max,a[e]))}})}},e.prototype.addListeners=function(){var e,t=this;Su.set(this.visualElement,this);var n=es(this.visualElement.getInstance(),"pointerdown",function(e){var n=t.getProps(),r=n.dragListener;n.drag&&(void 0===r||r)&&t.start(e)}),r=function(){Qo(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},o=this.visualElement.projection,a=o.addEventListener("measure",r);o&&!o.layout&&(null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout()),r();var i=zi(window,"resize",function(){return t.scalePositionWithinConstraints()});return o.addEventListener("didUpdate",function(e){var n=e.delta;t.isDragging&&e.hasLayoutChanged&&(lu(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(),a()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,o=void 0!==r&&r,a=e.dragPropagation,i=void 0!==a&&a,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 Po(Po({},e),{drag:n,dragDirectionLock:o,dragPropagation:i,dragConstraints:l,dragElastic:u,dragMomentum:p})},e}();function _u(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var Ou={pan:jl(function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,o=e.onPanSessionStart,a=e.visualElement,i=t||n||r||o,s=ne.useRef(null),l=ne.useContext(qo).transformPagePoint,c={onSessionStart:o,onStart:n,onMove:t,onEnd:function(e,t){s.current=null,r&&r(e,t)}};ne.useEffect(function(){null!==s.current&&s.current.updateHandlers(c)}),ts(a,"pointerdown",i&&function(e){s.current=new Wc(e,c,{transformPagePoint:l})}),cs(function(){return s.current&&s.current.end()})}),drag:jl(function(e){var t=e.dragControls,n=e.visualElement,r=sa(function(){return new Cu(n)});ne.useEffect(function(){return t&&t.subscribe(r)},[r,t]),ne.useEffect(function(){return r.addListeners()},[r])})},Nu=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],Au=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,o=e.getBaseTarget,a=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,h=e.blockInitialAnimation,v=e.visualState,y=e.shouldReduceMotion;void 0===t&&(t={});var g,b,E=!1,x=v.latestValues,w=v.renderState,k=function(){var e=Nu.map(function(){return new Cc}),t={},n={clearAllListeners:function(){return e.forEach(function(e){return e.clear()})},updatePropListeners:function(e){Nu.forEach(function(r){var o,a="on"+r,i=e[a];null===(o=t[r])||void 0===o||o.call(t),i&&(t[r]=n[a](i))})}};return e.forEach(function(e,t){n["on"+Nu[t]]=function(t){return e.add(t)},n["notify"+Nu[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,Do([],jo(t),!1))}}),n}(),S=new Map,C=new Map,_={},O=Po({},x);function N(){g&&E&&(A(),s(g,w,f.style,D.projection))}function A(){r(D,w,x,t,f)}function R(){k.notifyUpdate(x)}function I(e,t){var n=t.onChange(function(t){x[e]=t,f.onUpdate&&vc.update(R,!1,!0)}),r=t.onRenderRequest(D.scheduleRender);C.set(e,function(){n(),r()})}var T=d(f);for(var L in T){var P=T[L];void 0!==x[L]&&Ca(P)&&P.set(x[L],!1)}var M=oa(f),j=aa(f),D=Po(Po({treeType:n,current:null,depth:p?p.depth+1:0,parent:p,children:new Set,presenceId:m,shouldReduceMotion:y,variantChildren:j?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==p?void 0:p.isMounted()),blockInitialAnimation:h,isMounted:function(){return Boolean(g)},mount:function(e){E=!0,g=D.current=e,D.projection&&D.projection.mount(e),j&&p&&!M&&(b=null==p?void 0:p.addVariantChild(D)),S.forEach(function(e,t){return I(t,e)}),null==p||p.children.add(D),D.setProps(f)},unmount:function(){var e;null===(e=D.projection)||void 0===e||e.unmount(),yc.update(R),yc.render(N),C.forEach(function(e){return e()}),null==b||b(),null==p||p.children.delete(D),k.clearAllListeners(),g=void 0,E=!1},addVariantChild:function(e){var t,n=D.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(D.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return j?D:null==p?void 0:p.getClosestVariantNode()},getLayoutId:function(){return f.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){D.isVisible!==e&&(D.isVisible=e,D.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(D,e,f,t)},measureViewportBox:function(){return i(g,f)},addValue:function(e,t){D.hasValue(e)&&D.removeValue(e),S.set(e,t),x[e]=t.get(),I(e,t)},removeValue:function(e){var t;S.delete(e),null===(t=C.get(e))||void 0===t||t(),C.delete(e),delete x[e],c(e,w)},hasValue:function(e){return S.has(e)},getValue:function(e,t){var n=S.get(e);return void 0===n&&void 0!==t&&(n=Oc(t),D.addValue(e,n)),n},forEachValue:function(e){return S.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(o){var t=o(f,e);if(void 0!==t&&!Ca(t))return t}return O[e]}},k),{build:function(){return A(),w},scheduleRender:function(){vc.render(N,!1,!0)},syncRender:N,setProps:function(e){(e.transformTemplate||f.transformTemplate)&&D.scheduleRender(),f=e,k.updatePropListeners(e),_=function(e,t,n){var r;for(var o in t){var a=t[o],i=n[o];if(Ca(a))e.addValue(o,a),"development"===process.env.NODE_ENV&&Nl("6.5.1"===a.version,"Attempting to mix Framer Motion versions ".concat(a.version," with 6.5.1 may not work as expected."));else if(Ca(i))e.addValue(o,Oc(a));else if(i!==a)if(e.hasValue(o)){var s=e.getValue(o);!s.hasAnimated&&s.set(a)}else e.addValue(o,Oc(null!==(r=e.getStaticValue(o))&&void 0!==r?r:a))}for(var o in n)void 0===t[o]&&e.removeValue(o);return t}(D,d(f),_)},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(!M){var t=(null==p?void 0:p.getVariantContext())||{};return void 0!==f.initial&&(t.initial=f.initial),t}for(var n={},r=0;r<Iu;r++){var o=Ru[r],a=f[o];(ta(a)||!1===a)&&(n[o]=a)}return n}});return D}},Ru=Do(["initial"],jo(Bc),!1),Iu=Ru.length;function Tu(e){return"string"==typeof e&&e.startsWith("var(--")}var Lu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Pu(e,t,n){void 0===n&&(n=1),zo(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var r=jo(function(e){var t=Lu.exec(e);if(!t)return[,];var n=jo(t,3);return[n[1],n[2]]}(e),2),o=r[0],a=r[1];if(o){var i=window.getComputedStyle(t).getPropertyValue(o);return i?i.trim():Tu(a)?Pu(a,t,n+1):a}}var Mu,ju=new Set(["width","height","top","left","right","bottom","x","y"]),Du=function(e){return ju.has(e)},Vu=function(e,t){e.set(t,!1),e.set(t)},Bu=function(e){return e===Ma||e===$a};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Mu||(Mu={}));var Fu=function(e,t){return parseFloat(e.split(", ")[t])},$u=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var a=o.match(/^matrix3d\((.+)\)$/);if(a)return Fu(a[1],t);var i=o.match(/^matrix\((.+)\)$/);return i?Fu(i[1],e):0}},zu=new Set(["x","y","z"]),Uu=ga.filter(function(e){return!zu.has(e)}),Wu={width:function(e,t){var n=e.x,r=t.paddingLeft,o=t.paddingRight,a=void 0===o?"0":o;return n.max-n.min-parseFloat(void 0===r?"0":r)-parseFloat(a)},height:function(e,t){var n=e.y,r=t.paddingTop,o=t.paddingBottom,a=void 0===o?"0":o;return n.max-n.min-parseFloat(void 0===r?"0":r)-parseFloat(a)},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:$u(4,13),y:$u(5,14)},Hu={treeType:"dom",readValueFromInstance:function(e,t){if(xa(t)){var n=Ql(t);return n&&n.default||0}var r=window.getComputedStyle(e);return(Oa(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 ku(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 o=n.transformValues;void 0===r&&(r=!0);var a=t.transition,i=t.transitionEnd,s=Mo(t,["transition","transitionEnd"]),l=function(e,t,n){var r,o,a={};for(var i in e)a[i]=null!==(r=Pc(i,t))&&void 0!==r?r:null===(o=n.getValue(i))||void 0===o?void 0:o.get();return a}(s,a||{},e);if(o&&(i&&(i=o(i)),s&&(s=o(s)),l&&(l=o(l))),r){!function(e,t,n){var r,o,a,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!==(o=null!==(r=n[u])&&void 0!==r?r:e.readValue(u))&&void 0!==o?o:t[u]),null!=p&&("string"==typeof p&&(ic(p)||sc(p))?p=parseFloat(p):!Tc(p)&&ri.test(d)&&(p=ec(u,d)),e.addValue(u,Oc(p)),null!==(a=(i=n)[u])&&void 0!==a||(i[u]=p),e.setBaseTarget(u,p))}}(e,s,l);var c=function(e,t,n,r){var o=function(e,t,n){var r,o=Mo(t,[]),a=e.getInstance();if(!(a instanceof Element))return{target:o,transitionEnd:n};for(var i in n&&(n=Po({},n)),e.forEachValue(function(e){var t=e.get();if(Tu(t)){var n=Pu(t,a);n&&e.set(n)}}),o){var s=o[i];if(Tu(s)){var l=Pu(s,a);l&&(o[i]=l,n&&(null!==(r=n[i])&&void 0!==r||(n[i]=s)))}}return{target:o,transitionEnd:n}}(e,t,r);return function(e,t,n,r){return function(e){return Object.keys(e).some(Du)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=Po({},t),r=Po({},r);var o=Object.keys(t).filter(Du),a=[],i=!1,s=[];if(o.forEach(function(o){var l=e.getValue(o);if(e.hasValue(o)){var c,u=n[o],d=Rc(u),p=t[o];if(Li(p)){var f=p.length,m=null===p[0]?1:0;d=Rc(u=p[m]);for(var h=m;h<f;h++)c?zo(Rc(p[h])===c,"All keyframes must be of the same type"):(c=Rc(p[h]),zo(c===d||Bu(d)&&Bu(c),"Keyframes must be of the same dimension as the current value"))}else c=Rc(p);if(d!==c)if(Bu(d)&&Bu(c)){var v=l.get();"string"==typeof v&&l.set(parseFloat(v)),"string"==typeof p?t[o]=parseFloat(p):Array.isArray(p)&&c===$a&&(t[o]=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[o]=d.transform(p):(i||(a=function(e){var t=[];return Uu.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(o),r[o]=void 0!==r[o]?r[o]:t[o],Vu(l,p))}}),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,c=function(e,t,n){var r=t.measureViewportBox(),o=t.getInstance(),a=getComputedStyle(o),i={};"none"===a.display&&t.setStaticValue("display",e.display||"block"),n.forEach(function(e){i[e]=Wu[e](r,a)}),t.syncRender();var s=t.measureViewportBox();return n.forEach(function(n){var r=t.getValue(n);Vu(r,i[n]),e[n]=Wu[n](s,a)}),e}(t,e,s);return a.length&&a.forEach(function(t){var n=jo(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=o.target,n,r=o.transitionEnd)}(e,s,l,i);i=c.transitionEnd,s=c.target}return Po({transition:a,transitionEnd:i},s)},scrapeMotionValuesFromProps:Ri,build:function(e,t,n,r,o){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),ui(t,n,r,o.transformTemplate)},render:Oi},qu=Au(Hu),Yu=Au(Po(Po({},Hu),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return xa(t)?(null===(n=Ql(t))||void 0===n?void 0:n.default)||0:(t=Ni.has(t)?t:_i(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Ii,build:function(e,t,n,r,o){xi(t,n,r,o.transformTemplate)},render:Ai})),Zu=function(e,t){return ha(e)?Yu(t,{enableHardwareAcceleration:!1}):qu(t,{enableHardwareAcceleration:!0})};function Gu(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Xu={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!$a.test(e))return e;e=parseFloat(e)}var n=Gu(e,t.target.x),r=Gu(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},Ku={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,o=e,a=e.includes("var("),i=[];a&&(e=e.replace(Lu,function(e){return i.push(e),"_$css"}));var s=ri.parse(e);if(s.length>5)return o;var l=ri.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 p=gs(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(a){var m=0;f=f.replace("_$css",function(){var e=i[m];return m++,e})}return f}},Ju=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Lo(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.layoutGroup,r=t.switchLayoutGroup,o=t.layoutId,a=t.visualElement.projection;Object.assign(va,Qu),a&&((null==n?void 0:n.group)&&n.group.add(a),(null==r?void 0:r.register)&&o&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",function(){e.safeToRemove()}),a.setOptions(Po(Po({},a.options),{onExitComplete:function(){return e.safeToRemove()}}))),la.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,o=n.drag,a=n.isPresent,i=n.visualElement.projection;return i?(i.isPresent=a,o||e.layoutDependency!==r||void 0===r?i.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?i.promote():i.relegate()||vc.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}(ne.Component),Qu={borderRadius:Po(Po({},Xu),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Xu,borderTopRightRadius:Xu,borderBottomLeftRadius:Xu,borderBottomRightRadius:Xu,boxShadow:Ku},ed={measureLayout:function(e){var t=jo($l(),2),n=t[0],r=t[1],o=ne.useContext(ua);return ne.createElement(Ju,Po({},e,{layoutGroup:o,switchLayoutGroup:ne.useContext(da),isPresent:n,safeToRemove:r}))}},td=["TopLeft","TopRight","BottomLeft","BottomRight"],nd=td.length,rd=function(e){return"string"==typeof e?parseFloat(e):e},od=function(e){return"number"==typeof e||$a.test(e)};function ad(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var id=ld(0,.5,Ws),sd=ld(.5,.95,Bs);function ld(e,t,n){return function(r){return r<e?0:r>t?1:n(ys(e,t,r))}}function cd(e,t){e.min=t.min,e.max=t.max}function ud(e,t){cd(e.x,t.x),cd(e.y,t.y)}function dd(e,t,n,r,o){return e=mu(e-=t,1/n,r),void 0!==o&&(e=mu(e,1/o,r)),e}function pd(e,t,n,r,o){var a=jo(n,3);!function(e,t,n,r,o,a,i){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===a&&(a=e),void 0===i&&(i=e),Fa.test(t)&&(t=parseFloat(t),t=gs(i.min,i.max,t/100)-i.min),"number"==typeof t){var s=gs(a.min,a.max,r);e===a&&(s-=t),e.min=dd(e.min,t,n,s,o),e.max=dd(e.max,t,n,s,o)}}(e,t[a[0]],t[a[1]],t[a[2]],t.scale,r,o)}var fd=["x","scaleX","originX"],md=["y","scaleY","originY"];function hd(e,t,n,r){pd(e.x,t,fd,null==n?void 0:n.x,null==r?void 0:r.x),pd(e.y,t,md,null==n?void 0:n.y,null==r?void 0:r.y)}function vd(e){return 0===e.translate&&1===e.scale}function yd(e){return vd(e.x)&&vd(e.y)}function gd(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 bd=function(){function e(){this.members=[]}return e.prototype.add=function(e){kc(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(Sc(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 o=this.members[r];if(!1!==o.isPresent){t=o;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,o,a;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(a=null===(r=e.resumingFrom)||void 0===r?void 0:(o=r.options).onExitComplete)||void 0===a||a.call(o)})},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}();function Ed(e,t,n){var r=e.y.translate/t.y,o="translate3d(".concat(e.x.translate/t.x,"px, ").concat(r,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var a=n.rotate,i=n.rotateX,s=n.rotateY;a&&(o+="rotate(".concat(a,"deg) ")),i&&(o+="rotateX(".concat(i,"deg) ")),s&&(o+="rotateY(".concat(s,"deg) "))}var l=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(o+="scale(".concat(e.x.scale*t.x,", ").concat(l,")"))?"none":o}var xd=function(e,t){return e.depth-t.depth},wd=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){kc(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){Sc(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(xd),this.isDirty=!1,this.children.forEach(e)},e}();function kd(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,o=e.checkIsScrollRoot,a=e.resetTransform;return function(){function e(e,t,r){var o=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(){o.isUpdating&&(o.isUpdating=!1,o.clearAllSnapshots())},this.updateProjection=function(){o.nodes.forEach(Rd),o.nodes.forEach(Id)},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?Do(Do([],jo(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new wd)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Cc),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,Do([],jo(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,o=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var a=this.options,i=a.layoutId,s=a.layout,l=a.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 o.root.updateBlockedByResize=!1};t(e,function(){o.root.updateBlockedByResize=!0,clearTimeout(c),c=window.setTimeout(u,250),la.hasAnimatedSinceResize&&(la.hasAnimatedSinceResize=!1,o.nodes.forEach(Ad))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&l&&(i||s)&&this.addEventListener("didUpdate",function(e){var t,n,r,a,i,s=e.delta,c=e.hasLayoutChanged,u=e.hasRelativeTargetChanged,d=e.layout;if(o.isTreeAnimationBlocked())return o.target=void 0,void(o.relativeTarget=void 0);var p=null!==(n=null!==(t=o.options.transition)&&void 0!==t?t:l.getDefaultTransition())&&void 0!==n?n:Dd,f=l.getProps(),m=f.onLayoutAnimationStart,h=f.onLayoutAnimationComplete,v=!o.targetLayout||!gd(o.targetLayout,d)||u,y=!c&&u;if((null===(r=o.resumeFrom)||void 0===r?void 0:r.instance)||y||c&&(v||!o.currentAnimation)){o.resumeFrom&&(o.resumingFrom=o.resumeFrom,o.resumingFrom.resumingFrom=void 0),o.setAnimationOrigin(s,y);var g=Po(Po({},oc(p,"layout")),{onPlay:m,onComplete:h});l.shouldReduceMotion&&(g.delay=0,g.type=!1),o.startAnimation(g)}else c||0!==o.animationProgress||o.finishAnimation(),o.isLead()&&(null===(i=(a=o.options).onExitComplete)||void 0===i||i.call(a));o.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,yc.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(Td))},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 o=0;o<this.path.length;o++){var a=this.path[o];a.shouldResetTransform=!0,a.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(Od);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Vd),this.potentialNodes.clear()),this.nodes.forEach(Nd),this.nodes.forEach(Sd),this.nodes.forEach(Cd),this.clearAllSnapshots(),gc.update(),gc.preRender(),gc.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(_d),this.sharedNodes.forEach(Ld)},e.prototype.scheduleUpdateProjection=function(){vc.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;vc.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));Fd(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();Fd(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.isScrollRoot=o(this.instance),this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(a){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!yd(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||pu(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&&(gu(t.x,n.x),gu(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};ud(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],o=r.scroll;if(r!==this.root&&o&&r.options.layoutScroll){if(r.isScrollRoot){ud(t,e);var a=this.root.scroll;a&&(gu(t.x,-a.x),gu(t.y,-a.y))}gu(t.x,o.x),gu(t.y,o.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}};ud(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];!t&&o.options.layoutScroll&&o.scroll&&o!==o.root&&wu(n,{x:-o.scroll.x,y:-o.scroll.y}),pu(o.latestValues)&&wu(n,o.latestValues)}return pu(this.latestValues)&&wu(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};ud(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];if(o.instance&&pu(o.latestValues)){du(o.latestValues)&&o.updateSnapshot();var a={x:{min:0,max:0},y:{min:0,max:0}};ud(a,o.measure()),hd(n,o.latestValues,null===(t=o.snapshot)||void 0===t?void 0:t.layout,a)}}return pu(this.latestValues)&&hd(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=Po(Po(Po({},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,o=this.options;this.layout&&(o.layout||o.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}},ru(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),ud(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)?(tu((t=this.target).x,(n=this.relativeTarget).x,(r=this.relativeParent.target).x),tu(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):ud(this.target,this.layout.actual),yu(this.target,this.targetDelta)):ud(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}},ru(this.relativeTargetOrigin,this.target,this.relativeParent.target),ud(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!pu(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 o=this.getLead();ud(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var o,a;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===(a=null===(o=s.instance)||void 0===o?void 0:o.style)||void 0===a?void 0:a.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&wu(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,yu(e,l)),r&&pu(s.latestValues)&&wu(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==o);var a=o.target;if(a){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;eu(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=Ed(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===i&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}}},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 o=this.snapshot,a=(null==o?void 0:o.latestValues)||{},i=Po({},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==o?void 0:o.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(jd));this.animationProgress=0,this.mixTargetDelta=function(t){var n,o=t/1e3;Pd(s.x,e.x,o),Pd(s.y,e.y,o),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(ru(l,r.layout.actual,r.relativeParent.layout.actual),function(e,t,n,r){Md(e.x,t.x,n.x,r),Md(e.y,t.y,n.y,r)}(r.relativeTarget,r.relativeTargetOrigin,l,o)),c&&(r.animationValues=i,function(e,t,n,r,o,a){var i,s,l,c;o?(e.opacity=gs(0,null!==(i=n.opacity)&&void 0!==i?i:1,id(r)),e.opacityExit=gs(null!==(s=t.opacity)&&void 0!==s?s:1,0,sd(r))):a&&(e.opacity=gs(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(c=n.opacity)&&void 0!==c?c:1,r));for(var u=0;u<nd;u++){var d="border".concat(td[u],"Radius"),p=ad(t,d),f=ad(n,d);void 0===p&&void 0===f||(p||(p=0),f||(f=0),0===p||0===f||od(p)===od(f)?(e[d]=Math.max(gs(rd(p),rd(f),r),0),(Fa.test(f)||Fa.test(p))&&(e[d]+="%")):e[d]=f)}(t.rotate||n.rotate)&&(e.rotate=gs(t.rotate||0,n.rotate||0,r))}(i,a,r.latestValues,o,d,u)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=o},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&&(yc.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=vc.update(function(){la.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=Ca(0)?0:Oc(0);return ac("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,Po(Po({},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&&(ud(t,n),wu(t,r),eu(this.projectionDeltaWithTransform,this.layoutCorrected,t,r))},e.prototype.registerSharedNode=function(e,t){var n,r,o;this.sharedNodes.has(e)||this.sharedNodes.set(e,new bd),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(o=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===o?void 0:o.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,o=t.preserveFollowOpacity,a=this.getStack();a&&a.promote(this,o),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<ya.length;r++)e.getStaticValue(o="rotate"+ya[r])&&(t=!0,n[o]=e.getStaticValue(o),e.setStaticValue(o,0));if(t){for(var o in null==e||e.syncRender(),n)e.setStaticValue(o,n[o]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,o,a,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=Mi(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=Mi(e.pointerEvents)||""),this.hasProjected&&!pu(this.latestValues)&&(u.transform=l?l({},""):"none",this.hasProjected=!1),u}var d=c.animationValues||c.latestValues;this.applyTransformsToTarget(),s.transform=Ed(this.projectionDeltaWithTransform,this.treeScale,d),l&&(s.transform=l(d,s.transform));var p=this.projectionDelta,f=p.x,m=p.y;for(var h in s.transformOrigin="".concat(100*f.origin,"% ").concat(100*m.origin,"% 0"),s.opacity=c.animationValues?c===this?null!==(o=null!==(r=d.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==o?o:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:c===this?null!==(a=d.opacity)&&void 0!==a?a:"":null!==(i=d.opacityExit)&&void 0!==i?i:0,va)if(void 0!==d[h]){var v=va[h],y=v.applyTo,g=(0,v.correct)(d[h],c);if(y)for(var b=y.length,E=0;E<b;E++)s[y[E]]=g;else s[h]=g}return this.options.layoutId&&(s.pointerEvents=c===this?Mi(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(Od),this.root.sharedNodes.clear()},e}()}function Sd(e){e.updateLayout()}function Cd(e){var t,n,r,o,a=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){var i=e.layout,s=i.actual,l=i.measured;"size"===e.options.animationType?lu(function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=Kc(t);t.min=s[e].min,t.max=t.min+n}):"position"===e.options.animationType&&lu(function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=Kc(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}};eu(c,s,a.layout);var u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};a.isShared?eu(u,e.applyTransform(l,!0),a.measured):eu(u,s,a.layout);var d=!yd(c),p=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var f=e.relativeParent,m=f.snapshot,h=f.layout;if(m&&h){var v={x:{min:0,max:0},y:{min:0,max:0}};ru(v,a.layout,m.layout);var y={x:{min:0,max:0},y:{min:0,max:0}};ru(y,s,h.actual),gd(v,y)||(p=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeTargetChanged:p})}else e.isLead()&&(null===(o=(r=e.options).onExitComplete)||void 0===o||o.call(r));e.options.transition=void 0}function _d(e){e.clearSnapshot()}function Od(e){e.clearMeasurements()}function Nd(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Ad(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Rd(e){e.resolveTargetDelta()}function Id(e){e.calcProjection()}function Td(e){e.resetRotation()}function Ld(e){e.removeLeadSnapshot()}function Pd(e,t,n){e.translate=gs(t.translate,0,n),e.scale=gs(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Md(e,t,n,r){e.min=gs(t.min,n.min,r),e.max=gs(t.max,n.max,r)}function jd(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var Dd={duration:.45,ease:[.4,0,.1,1]};function Vd(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 o=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function Bd(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Fd(e){Bd(e.x),Bd(e.y)}var $d=kd({attachResizeListener:function(e,t){return zi(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),zd={current:void 0},Ud=kd({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!zd.current){var e=new $d(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),zd.current=e}return zd.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),Wd=Po(Po(Po(Po({},Uc),Dl),Ou),ed),Hd=/*@__PURE__*/fa(function(e,t){return function(e,t,n,r,o){var a=t.forwardMotionProps,i=void 0!==a&&a,s=ha(e)?Fi:$i;return Po(Po({},s),{preloadedFeatures:n,useRender:Si(i),createVisualElement:r,projectionNodeConstructor:o,Component:e})}(e,t,Wd,Zu,Ud)});function qd(){var e=ne.useRef(!1);return Xo(function(){return e.current=!0,function(){e.current=!1}},[]),e}var Yd=function(e){var t=e.children,n=e.initial,r=e.isPresent,o=e.onExitComplete,a=e.custom,i=e.presenceAffectsLayout,s=sa(Zd),l=Fl(),c=ne.useMemo(function(){return{id:l,initial:n,isPresent:r,custom:a,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()),a=r.next();!a.done;a=r.next())if(!a.value)return}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==o||o()},register:function(e){return s.set(e,!1),function(){return s.delete(e)}}}},i?void 0:[r]);return ne.useMemo(function(){s.forEach(function(e,t){return s.set(t,!1)})},[r]),ne.useEffect(function(){!r&&!s.size&&(null==o||o())},[r]),ne.createElement(Zo.Provider,{value:c},t)};function Zd(){return new Map}var Gd=function(e){return e.key||""},Xd=function(e){var t=e.children,n=e.custom,r=e.initial,o=void 0===r||r,a=e.onExitComplete,i=e.exitBeforeEnter,s=e.presenceAffectsLayout,l=void 0===s||s,c=jo(function(){var e=qd(),t=jo(ne.useState(0),2),n=t[0],r=t[1],o=ne.useCallback(function(){e.current&&r(n+1)},[n]);return[ne.useCallback(function(){return vc.postRender(o)},[o]),n]}(),1),u=c[0],d=ne.useContext(ua).forceRender;d&&(u=d);var p=qd(),f=function(e){var t=[];return ne.Children.forEach(e,function(e){ne.isValidElement(e)&&t.push(e)}),t}(t),m=f,h=new Set,v=ne.useRef(m),y=ne.useRef(new Map).current,g=ne.useRef(!0);if(Xo(function(){g.current=!1,function(e,t){e.forEach(function(e){var n=Gd(e);t.set(n,e)})}(f,y),v.current=m}),cs(function(){g.current=!0,y.clear(),h.clear()}),g.current)return ne.createElement(ne.Fragment,null,m.map(function(e){return ne.createElement(Yd,{key:Gd(e),isPresent:!0,initial:!!o&&void 0,presenceAffectsLayout:l},e)}));m=Do([],jo(m),!1);for(var b=v.current.map(Gd),E=f.map(Gd),x=b.length,w=0;w<x;w++){var k=b[w];-1===E.indexOf(k)&&h.add(k)}return i&&h.size&&(m=[]),h.forEach(function(e){if(-1===E.indexOf(e)){var t=y.get(e);if(t){var r=b.indexOf(e);m.splice(r,0,ne.createElement(Yd,{key:Gd(t),isPresent:!1,onExitComplete:function(){y.delete(e),h.delete(e);var t=v.current.findIndex(function(t){return t.key===e});if(v.current.splice(t,1),!h.size){if(v.current=f,!1===p.current)return;u(),a&&a()}},custom:n,presenceAffectsLayout:l},t))}}}),m=m.map(function(e){return h.has(e.key)?e:ne.createElement(Yd,{key:Gd(e),isPresent:!0,presenceAffectsLayout:l},e)}),"production"!==Vo&&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."),ne.createElement(ne.Fragment,null,h.size?m:m.map(function(e){return ne.cloneElement(e)}))},Kd=(...e)=>e.filter(Boolean).join(" "),Jd={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Qd={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},ep={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},tp={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},np={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}};function rp(e){switch((null==e?void 0:e.direction)??"right"){case"right":default:return ep;case"left":return Qd;case"bottom":return np;case"top":return tp}}var op={enter:{duration:.2,ease:Jd.easeOut},exit:{duration:.1,ease:Jd.easeIn}},ap=(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.enter}),ip=(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.exit}),sp={exit:{height:{duration:.2,ease:Jd.ease},opacity:{duration:.3,ease:Jd.ease}},enter:{height:{duration:.3,ease:Jd.ease},opacity:{duration:.4,ease:Jd.ease}}},lp={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:o})=>{return{...e&&{opacity:(a=t,null!=a&&parseInt(a.toString(),10)>0?1:0)},height:t,transitionEnd:null==r?void 0:r.exit,transition:(null==n?void 0:n.exit)??ip(sp.exit,o)};var a},enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:o})=>({...e&&{opacity:1},height:t,transitionEnd:null==r?void 0:r.enter,transition:(null==n?void 0:n.enter)??ap(sp.enter,o)})},cp=ne.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:o=!0,startingHeight:a=0,endingHeight:i="auto",style:s,className:l,transition:c,transitionEnd:u,...d}=e,[p,f]=ne.useState(!1);ne.useEffect(()=>{const e=setTimeout(()=>{f(!0)});return()=>clearTimeout(e)},[]),(e=>{const{condition:t,message:n}=e;t&&"production"!==process.env.NODE_ENV&&console.warn(n)})({condition:Boolean(a>0&&r),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const m=parseFloat(a.toString())>0,h={startingHeight:a,endingHeight:i,animateOpacity:o,transition:p?c:{enter:{duration:0}},transitionEnd:{enter:null==u?void 0:u.enter,exit:r?null==u?void 0:u.exit:{...null==u?void 0:u.exit,display:m?"block":"none"}}},v=n||r?"enter":"exit";/* @__PURE__ */
|
5
|
-
return ne.createElement(
|
6
|
-
return ne.createElement(
|
7
|
-
return ne.createElement(
|
8
|
-
return ne.createElement(
|
9
|
-
return ne.createElement(
|
10
|
-
return ne.createElement(ho.div,{
|
11
|
-
return ne.createElement(ho.
|
12
|
-
return ne.createElement(
|
13
|
-
return ne.createElement(
|
14
|
-
return ne.createElement(
|
15
|
-
return ne.createElement(
|
16
|
-
return ne.createElement(
|
17
|
-
return ne.createElement(ho.div,{...null==n?void 0:n.getHelpTextProps(e,t),__css:r.helperText,className:o})});function Wp(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...a}=
|
18
|
-
return ne.createElement(
|
19
|
-
return ne.createElement(ho.label,{...u,className:
|
20
|
-
return ne.createElement(ho.span,{...null==n?void 0:n.getRequiredIndicatorProps(e,t),__css:r.requiredIndicator,className:o})});function
|
21
|
-
return ne.createElement(ho.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e},/* @__PURE__ */ne.createElement("polyline",{points:"1.5 6 4.5 9 10.5 1"}))}function
|
22
|
-
return ne.createElement(ho.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e},/* @__PURE__ */ne.createElement("line",{x1:"21",x2:"3",y1:"12",y2:"12"}))}function
|
23
|
-
return ne.createElement(ho.label,{__css:{...
|
24
|
-
return ne.createElement(ho.input,{size:n,...a,__css:o.field,ref:t,className:i})});
|
25
|
-
return ne.createElement(ho.div,{className:i,ref:t,__css:{width:"100%",display:"flex",position:"relative"},...a},/* @__PURE__ */ne.createElement(
|
26
|
-
return ne.createElement(
|
27
|
-
return ne.createElement(
|
28
|
-
return ne.createElement(
|
29
|
-
return ne.createElement(
|
30
|
-
return ne.createElement(
|
31
|
-
return ne.createElement(
|
32
|
-
return ne.createElement(ho.
|
33
|
-
return ne.createElement(ho.
|
34
|
-
return ne.createElement(
|
35
|
-
return ne.createElement(
|
36
|
-
return ne.createElement(
|
1
|
+
import{ajvResolver as e}from"@hookform/resolvers/ajv";import{memoizedGet as t,mergeWith as n,filterUndefined as r,omit as o,objectFilter as a,runIfFn as i,__DEV__ as s,cx as l,dataAttr as c,get as u,callAllHandlers as d}from"@chakra-ui/utils";import{useFormContext as p,get as f,useForm as m,FormProvider as h,useFieldArray as v,Controller as y}from"react-hook-form";function g(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}var b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function E(e){var t={exports:{}};return e(t,t.exports),t.exports}var x=Symbol.for("react.element"),w=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),O=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),R=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),L=Symbol.iterator,T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},P=Object.assign,M={};function j(e,t,n){this.props=e,this.context=t,this.refs=M,this.updater=n||T}function D(){}function V(e,t,n){this.props=e,this.context=t,this.refs=M,this.updater=n||T}j.prototype.isReactComponent={},j.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")},j.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},D.prototype=j.prototype;var B=V.prototype=new D;B.constructor=V,P(B,j.prototype),B.isPureReactComponent=!0;var F=Array.isArray,$=Object.prototype.hasOwnProperty,z={current:null},W={key:!0,ref:!0,__self:!0,__source:!0};function U(e,t,n){var r,o={},a=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)$.call(t,r)&&!W.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:x,type:e,key:a,ref:i,props:o,_owner:z.current}}function H(e){return"object"==typeof e&&null!==e&&e.$$typeof===x}var q=/\/+/g;function Y(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 Z(e,t,n,r,o){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var i=!1;if(null===e)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case x:case w:i=!0}}if(i)return o=o(i=e),e=""===r?"."+Y(i,0):r,F(o)?(n="",null!=e&&(n=e.replace(q,"$&/")+"/"),Z(o,t,n,"",function(e){return e})):null!=o&&(H(o)&&(o=function(e,t){return{$$typeof:x,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(q,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=""===r?".":r+":",F(e))for(var s=0;s<e.length;s++){var l=r+Y(a=e[s],s);i+=Z(a,t,n,l,o)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=L&&e[L]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),s=0;!(a=e.next()).done;)i+=Z(a=a.value,t,n,l=r+Y(a,s++),o);else if("object"===a)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 i}function G(e,t,n){if(null==e)return e;var r=[],o=0;return Z(e,r,"","",function(e){return t.call(n,e,o++)}),r}function X(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 K={current:null},J={transition:null},Q={map:G,forEach:function(e,t,n){G(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return G(e,function(){t++}),t},toArray:function(e){return G(e,function(e){return e})||[]},only:function(e){if(!H(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},ee={Children:Q,Component:j,Fragment:k,Profiler:C,PureComponent:V,StrictMode:S,Suspense:A,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:K,ReactCurrentBatchConfig:J,ReactCurrentOwner:z},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=P({},e.props),o=e.key,a=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,i=z.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)$.call(t,l)&&!W.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:x,type:e.type,key:o,ref:a,props:r,_owner:i}},createContext:function(e){return(e={$$typeof:O,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:_,_context:e},e.Consumer=e},createElement:U,createFactory:function(e){var t=U.bind(null,e);return t.type=e,t},createRef:function(){return{current:null}},forwardRef:function(e){return{$$typeof:N,render:e}},isValidElement:H,lazy:function(e){return{$$typeof:I,_payload:{_status:-1,_result:e},_init:X}},memo:function(e,t){return{$$typeof:R,type:e,compare:void 0===t?null:t}},startTransition:function(e){var t=J.transition;J.transition={};try{e()}finally{J.transition=t}},unstable_act:function(){throw Error("act(...) is not supported in production builds of React.")},useCallback:function(e,t){return K.current.useCallback(e,t)},useContext:function(e){return K.current.useContext(e)},useDebugValue:function(){},useDeferredValue:function(e){return K.current.useDeferredValue(e)},useEffect:function(e,t){return K.current.useEffect(e,t)},useId:function(){return K.current.useId()},useImperativeHandle:function(e,t,n){return K.current.useImperativeHandle(e,t,n)},useInsertionEffect:function(e,t){return K.current.useInsertionEffect(e,t)},useLayoutEffect:function(e,t){return K.current.useLayoutEffect(e,t)},useMemo:function(e,t){return K.current.useMemo(e,t)},useReducer:function(e,t,n){return K.current.useReducer(e,t,n)},useRef:function(e){return K.current.useRef(e)},useState:function(e){return K.current.useState(e)},useSyncExternalStore:function(e,t,n){return K.current.useSyncExternalStore(e,t,n)},useTransition:function(){return K.current.useTransition()},version:"18.2.0"},te=E(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"),o=Symbol.for("react.fragment"),a=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"),h=Symbol.iterator;function v(e){if(null===e||"object"!=typeof e)return null;var t=h&&e[h]||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={},w=null;function k(e){w=e}x.setExtraStackFrame=function(e){w=e},x.getCurrentStack=null,x.getStackAddendum=function(){var e="";w&&(e+=w);var t=x.getCurrentStack;return t&&(e+=t()||""),e};var S={ReactCurrentDispatcher:y,ReactCurrentBatchConfig:g,ReactCurrentOwner:E};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("warn",e,n)}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];O("error",e,n)}function O(e,t,n){var r=S.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map(function(e){return String(e)});o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}S.ReactDebugCurrentFrame=x,S.ReactCurrentActQueue=b;var N={};function A(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",o=r+"."+t;N[o]||(_("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),N[o]=!0)}var R={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){A(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){A(e,"replaceState")},enqueueSetState:function(e,t,n,r){A(e,"setState")}},I=Object.assign,L={};function T(e,t,n){this.props=e,this.context=t,this.refs=L,this.updater=n||R}Object.freeze(L),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 P={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)."]},M=function(e,t){Object.defineProperty(T.prototype,e,{get:function(){C("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var j in P)P.hasOwnProperty(j)&&M(j,P[j]);function D(){}function V(e,t,n){this.props=e,this.context=t,this.refs=L,this.updater=n||R}D.prototype=T.prototype;var B=V.prototype=new D;B.constructor=V,I(B,T.prototype),B.isPureReactComponent=!0;var F=Array.isArray;function $(e){return F(e)}function z(e){return""+e}function W(e){if(function(e){try{return z(e),!1}catch(e){return!0}}(e))return _("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)),z(e)}function U(e){return e.displayName||"Context"}function H(e){if(null==e)return null;if("number"==typeof e.tag&&_("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 o:return"Fragment";case r:return"Portal";case i:return"Profiler";case a: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 o=t.displayName||t.name||"";return""!==o?"ForwardRef("+o+")":"ForwardRef"}(e,e.render);case p:var t=e.displayName||null;return null!==t?t:H(e.type)||"Memo";case f:var n=e._payload,m=e._init;try{return H(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,_("%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,_("%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=H(E.current.type);Z[t]||(_('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,o,a,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:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function re(e,t,n){var r,o={},a=null,i=null,s=null,l=null;if(null!=t)for(r in K(t)&&(i=t.ref,te(t)),J(t)&&(W(t.key),a=""+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)&&(o[r]=t[r]);var c=arguments.length-2;if(1===c)o.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),o.children=u}if(e&&e.defaultProps){var p=e.defaultProps;for(r in p)void 0===o[r]&&(o[r]=p[r])}if(a||i){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;a&&Q(o,f),i&&ee(o,f)}return ne(e,a,i,s,l,E.current,o)}function oe(e,t,n){if(null==e)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r,o,a=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)&&(W(t.key),i=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)G.call(t,r)&&!X.hasOwnProperty(r)&&(a[r]=void 0===t[r]&&void 0!==o?o[r]:t[r]);var d=arguments.length-2;if(1===d)a.children=n;else if(d>1){for(var p=Array(d),f=0;f<d;f++)p[f]=arguments[f+2];a.children=p}return ne(e.type,i,s,l,c,u,a)}function ae(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?(W(e.key),n={"=":"=0",":":"=2"},"$"+(""+e.key).replace(/[=:]/g,function(e){return n[e]})):t.toString(36);var n}function de(e,t,o,a,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 p=e,f=i(p),m=""===a?"."+ue(p,0):a;if($(f)){var h="";null!=m&&(h=ce(m)+"/"),de(f,t,h,"",function(e){return e})}else null!=f&&(ae(f)&&(!f.key||p&&p.key===f.key||W(f.key),l=f,c=o+(!f.key||p&&p.key===f.key?"":ce(""+f.key)+"/")+m,f=ne(l.type,c,l.ref,l._self,l._source,l._owner,l.props)),t.push(f));return 1}var y=0,g=""===a?".":a+":";if($(e))for(var b=0;b<e.length;b++)y+=de(u=e[b],t,o,g+ue(u,b),i);else{var E=v(e);if("function"==typeof E){var x=e;E===x.entries&&(se||C("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),se=!0);for(var w,k=E.call(x),S=0;!(w=k.next()).done;)y+=de(u=w.value,t,o,g+ue(u,S++),i)}else if("object"===s){var _=String(e);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===_?"object with keys {"+Object.keys(e).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.")}}return y}function pe(e,t,n){if(null==e)return e;var r=[],o=0;return de(e,r,"","",function(e){return t.call(n,e,o++)}),r}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 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&&_("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||_("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===o||e===i||e===a||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 he(){var e=y.current;return null===e&&_("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 ve,ye,ge,be,Ee,xe,we,ke=0;function Se(){}Se.__reactDisabledLog=!0;var Ce,_e=S.ReactCurrentDispatcher;function Oe(e,t,n){if(void 0===Ce)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);Ce=r&&r[1]||""}return"\n"+Ce+e}var Ne,Ae=!1,Re="function"==typeof WeakMap?WeakMap:Map;function Ie(e,t){if(!e||Ae)return"";var n,r=Ne.get(e);if(void 0!==r)return r;Ae=!0;var o,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=_e.current,_e.current=null,function(){if(0===ke){ve=console.log,ye=console.info,ge=console.warn,be=console.error,Ee=console.group,xe=console.groupCollapsed,we=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Se,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ke++}();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&&Ne.set(e,d),d}}while(c>=1&&u>=0);break}}}finally{Ae=!1,_e.current=o,function(){if(0==--ke){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:ve}),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:we})})}ke<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=a}var p=e?e.displayName||e.name:"",f=p?Oe(p):"";return"function"==typeof e&&Ne.set(e,f),f}function Le(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 p:return Le(e.type,t,n);case f:var r=e._payload,o=e._init;try{return Le(o(r),t,n)}catch(e){}}return""}Ne=new Re;var Te,Pe={},Me=S.ReactDebugCurrentFrame;function je(e){if(e){var t=e._owner,n=Le(e.type,e._source,t?t.type:null);Me.setExtraStackFrame(n)}else Me.setExtraStackFrame(null)}function De(e){if(e){var t=e._owner;k(Le(e.type,e._source,t?t.type:null))}else k(null)}function Ve(){if(E.current){var e=H(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 $e(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=Ve();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 "+H(e._owner.type)+"."),De(e),_('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),De(null)}}}function ze(e,t){if("object"==typeof e)if($(e))for(var n=0;n<e.length;n++){var r=e[n];ae(r)&&$e(r,t)}else if(ae(e))e._store&&(e._store.validated=!0);else if(e){var o=v(e);if("function"==typeof o&&o!==e.entries)for(var a,i=o.call(e);!(a=i.next()).done;)ae(a.value)&&$e(a.value,t)}}function We(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!==p)return;t=n.propTypes}if(t){var r=H(n);!function(e,t,n,r,o){var a=Function.call.bind(G);for(var i in e)if(a(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||(je(o),_("%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),je(null)),s instanceof Error&&!(s.message in Pe)&&(Pe[s.message]=!0,je(o),_("Failed %s type: %s",n,s.message),je(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||Te||(Te=!0,_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",H(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||_("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){De(e),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),De(null);break}}null!==e.ref&&(De(e),_("Invalid attribute `ref` supplied to `React.Fragment`."),De(null))}function He(e,t,r){var a=me(e);if(!a){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":$(e)?s="array":void 0!==e&&e.$$typeof===n?(s="<"+(H(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,_("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(a)for(var u=2;u<arguments.length;u++)ze(arguments[u],e);return e===o?Ue(c):We(c),c}var qe=!1,Ye=!1,Ze=null,Ge=0,Xe=!1;function Ke(e){e!==Ge-1&&_("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 o=b.current;if(null!==o)try{et(o),function(a){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&&_("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===o.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=He,nt={map:pe,forEach:function(e,t,n){pe(e,function(){t.apply(this,arguments)},n)},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(!ae(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=o,t.Profiler=i,t.PureComponent=V,t.StrictMode=a,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=S,t.cloneElement=function(e,t,n){for(var r=oe.apply(this,arguments),o=2;o<arguments.length;o++)ze(arguments[o],r.type);return We(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,o=!1,a={$$typeof:l,_context:t};return Object.defineProperties(a,{Provider:{get:function(){return r||(r=!0,_("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,_("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){o||(C("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),o=!0)}}}),t.Consumer=a,t._currentRenderer=null,t._currentRenderer2=null,t},t.createElement=tt,t.createFactory=function(e){var t=He.bind(null,e);return t.type=e,qe||(qe=!0,C("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 C("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?_("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?_("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&_("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||_("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=ae,t.lazy=function(e){var t,n,r={$$typeof:f,_payload:{_status:-1,_result:e},_init:fe};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){_("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){_("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)||_("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var n,r={$$typeof:p,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&&C("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 o=b.current;null!==o&&(b.didScheduleLegacyUpdate=!1,et(o))}}catch(e){throw Ke(t),e}finally{b.isBatchingLegacy=r}if(null!==n&&"object"==typeof n&&"function"==typeof n.then){var a=n,i=!1,s={then:function(e,n){i=!0,a.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,_("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 he().useCallback(e,t)},t.useContext=function(e){var t=he();if(void 0!==e._context){var n=e._context;n.Consumer===e?_("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&&_("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 he().useDebugValue(e,t)},t.useDeferredValue=function(e){return he().useDeferredValue(e)},t.useEffect=function(e,t){return he().useEffect(e,t)},t.useId=function(){return he().useId()},t.useImperativeHandle=function(e,t,n){return he().useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return he().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return he().useLayoutEffect(e,t)},t.useMemo=function(e,t){return he().useMemo(e,t)},t.useReducer=function(e,t,n){return he().useReducer(e,t,n)},t.useRef=function(e){return he().useRef(e)},t.useState=function(e){return he().useState(e)},t.useSyncExternalStore=function(e,t,n){return he().useSyncExternalStore(e,t,n)},t.useTransition=function(){return he().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)}()}),ne=E(function(e){e.exports="production"===process.env.NODE_ENV?ee:te}),re=/*#__PURE__*/g({__proto__:null,default:ne},[ne]),oe=Boolean(null==globalThis?void 0:globalThis.document)?ne.useLayoutEffect:ne.useEffect,ae=ne.createContext({});function ie(){const e=ne.useContext(ae);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e}ae.displayName="ColorModeContext";var se=E(function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",a="[object Function]",i="[object Object]",s=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[o]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c[a]=c["[object Map]"]=c["[object Number]"]=c[i]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1;var u="object"==typeof b&&b&&b.Object===Object&&b,d="object"==typeof self&&self&&self.Object===Object&&self,p=u||d||Function("return this")(),f=t&&!t.nodeType&&t,m=f&&e&&!e.nodeType&&e,h=m&&m.exports===f,v=h&&u.process,y=function(){try{return m&&m.require&&m.require("util").types||v&&v.binding&&v.binding("util")}catch(e){}}(),g=y&&y.isTypedArray;function E(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var x,w=Array.prototype,k=Object.prototype,S=p["__core-js_shared__"],C=Function.prototype.toString,_=k.hasOwnProperty,O=(x=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||""))?"Symbol(src)_1."+x:"",N=k.toString,A=C.call(Object),R=RegExp("^"+C.call(_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),I=h?p.Buffer:void 0,L=p.Symbol,T=p.Uint8Array,P=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),M=Object.create,j=k.propertyIsEnumerable,D=w.splice,V=L?L.toStringTag:void 0,B=function(){try{var e=ae(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),F=I?I.isBuffer:void 0,$=Math.max,z=Date.now,W=ae(p,"Map"),U=ae(Object,"create"),H=function(){function e(){}return function(t){if(!Ee(t))return{};if(M)return M(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Y(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Z(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function G(e){var t=this.__data__=new Y(e);this.size=t.size}function X(e,t,n){(void 0!==n&&!fe(e[t],n)||void 0===n&&!(t in e))&&Q(e,t,n)}function K(e,t,n){var r=e[t];_.call(e,t)&&fe(r,n)&&(void 0!==n||t in e)||Q(e,t,n)}function J(e,t){for(var n=e.length;n--;)if(fe(e[n][0],t))return n;return-1}function Q(e,t,n){"__proto__"==t&&B?B(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ee(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":V&&V in Object(e)?function(e){var t=_.call(e,V),n=e[V];try{e[V]=void 0;var r=!0}catch(e){}var o=N.call(e);return r&&(t?e[V]=n:delete e[V]),o}(e):function(e){return N.call(e)}(e)}function te(e){return xe(e)&&ee(e)==o}function ne(e,t,n,r,o){e!==t&&function(e,t,n){for(var r=-1,o=Object(e),a=n(e),i=a.length;i--;){var s=a[++r];if(!1===t(o[s],s))break}}(t,function(a,s){if(o||(o=new G),Ee(a))!function(e,t,n,r,o,a,s){var l=le(e,n),c=le(t,n),u=s.get(c);if(u)X(e,n,u);else{var d,p,f,m,h=a?a(l,c,n+"",e,t,s):void 0,v=void 0===h;if(v){var y=he(c),g=!y&&ye(c),b=!y&&!g&&we(c);h=c,y||g||b?he(l)?h=l:xe(m=l)&&ve(m)?h=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(l):g?(v=!1,h=c.slice()):b?(v=!1,f=new(p=(d=c).buffer).constructor(p.byteLength),new T(f).set(new T(p)),h=new d.constructor(f,d.byteOffset,d.length)):h=[]:function(e){if(!xe(e)||ee(e)!=i)return!1;var t=P(e);if(null===t)return!0;var n=_.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&C.call(n)==A}(c)||me(c)?(h=l,me(l)?h=function(e){return function(e,t,n,r){var o=!n;n||(n={});for(var a=-1,i=t.length;++a<i;){var s=t[a],l=void 0;void 0===l&&(l=e[s]),o?Q(n,s,l):K(n,s,l)}return n}(e,ke(e))}(l):Ee(l)&&!ge(l)||(h=function(e){return"function"!=typeof e.constructor||se(e)?{}:H(P(e))}(c))):v=!1}v&&(s.set(c,h),o(h,c,r,a,s),s.delete(c)),X(e,n,h)}}(e,t,s,n,ne,r,o);else{var l=r?r(le(e,s),a,s+"",e,t,o):void 0;void 0===l&&(l=a),X(e,s,l)}},ke)}q.prototype.clear=function(){this.__data__=U?U(null):{},this.size=0},q.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},q.prototype.get=function(e){var t=this.__data__;if(U){var r=t[e];return r===n?void 0:r}return _.call(t,e)?t[e]:void 0},q.prototype.has=function(e){var t=this.__data__;return U?void 0!==t[e]:_.call(t,e)},q.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=U&&void 0===t?n:t,this},Y.prototype.clear=function(){this.__data__=[],this.size=0},Y.prototype.delete=function(e){var t=this.__data__,n=J(t,e);return!(n<0||(n==t.length-1?t.pop():D.call(t,n,1),--this.size,0))},Y.prototype.get=function(e){var t=this.__data__,n=J(t,e);return n<0?void 0:t[n][1]},Y.prototype.has=function(e){return J(this.__data__,e)>-1},Y.prototype.set=function(e,t){var n=this.__data__,r=J(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Z.prototype.clear=function(){this.size=0,this.__data__={hash:new q,map:new(W||Y),string:new q}},Z.prototype.delete=function(e){var t=oe(this,e).delete(e);return this.size-=t?1:0,t},Z.prototype.get=function(e){return oe(this,e).get(e)},Z.prototype.has=function(e){return oe(this,e).has(e)},Z.prototype.set=function(e,t){var n=oe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},G.prototype.clear=function(){this.__data__=new Y,this.size=0},G.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},G.prototype.get=function(e){return this.__data__.get(e)},G.prototype.has=function(e){return this.__data__.has(e)},G.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Y){var r=n.__data__;if(!W||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Z(r)}return n.set(e,t),this.size=n.size,this};var re=B?function(e,t){return B(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:_e;function oe(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ae(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Ee(e)||(t=e,O&&O in t))&&(ge(e)?R:s).test(function(e){if(null!=e){try{return C.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}(n)?n:void 0}function ie(e,t){var n=typeof e;return!!(t=null==t?r:t)&&("number"==n||"symbol"!=n&&l.test(e))&&e>-1&&e%1==0&&e<t}function se(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||k)}function le(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ce,ue,de,pe=(ce=re,ue=0,de=0,function(){var e=z(),t=16-(e-de);if(de=e,t>0){if(++ue>=800)return arguments[0]}else ue=0;return ce.apply(void 0,arguments)});function fe(e,t){return e===t||e!=e&&t!=t}var me=te(function(){return arguments}())?te:function(e){return xe(e)&&_.call(e,"callee")&&!j.call(e,"callee")},he=Array.isArray;function ve(e){return null!=e&&be(e.length)&&!ge(e)}var ye=F||function(){return!1};function ge(e){if(!Ee(e))return!1;var t=ee(e);return t==a||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function be(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Ee(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function xe(e){return null!=e&&"object"==typeof e}var we=g?function(e){return function(t){return e(t)}}(g):function(e){return xe(e)&&be(e.length)&&!!c[ee(e)]};function ke(e){return ve(e)?function(e,t){var n=he(e),r=!n&&me(e),o=!n&&!r&&ye(e),a=!n&&!r&&!o&&we(e),i=n||r||o||a,s=i?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var c in e)i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ie(c,l))||s.push(c);return s}(e):function(e){if(!Ee(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=se(e),n=[];for(var r in e)("constructor"!=r||!t&&_.call(e,r))&&n.push(r);return n}(e)}var Se,Ce=(Se=function(e,t,n,r){ne(e,t,n,r)},function(e,t){return pe(function(e,t,n){return t=$(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=$(r.length-t,0),i=Array(a);++o<a;)i[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(i),E(e,this,s)}}(e,void 0,_e),e+"")}(function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,a=r>2?t[2]:void 0;for(o=Se.length>3&&"function"==typeof o?(r--,o):void 0,a&&function(e,t,n){if(!Ee(n))return!1;var r=typeof t;return!!("number"==r?ve(n)&&ie(t,n.length):"string"==r&&t in n)&&fe(n[t],e)}(t[0],t[1],a)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var i=t[n];i&&Se(e,i,n,o)}return e}));function _e(e){return e}e.exports=Ce});function le(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}function ce(e,...t){return ue(e)?e(...t):e}var ue=e=>"function"==typeof e,de=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e,pe=(e,t)=>n=>{const r=String(t),o=(e=>/!(important)?$/.test(e))(r),a=de(r),i=e?`${e}.${a}`:a;let s=le(n.__cssMap)&&i in n.__cssMap?n.__cssMap[i].varRef:t;return s=de(s),o?`${s} !important`:s};function fe(e){const{scale:t,transform:n,compose:r}=e;return(e,o)=>{const a=pe(t,e)(o);let i=(null==n?void 0:n(a,o))??a;return r&&(i=r(i,o)),i}}var me=(...e)=>t=>e.reduce((e,t)=>t(e),t);function he(e,t){return n=>{const r={property:n,scale:e};return r.transform=fe({scale:e,transform:t}),r}}var ve=({rtl:e,ltr:t})=>n=>"rtl"===n.direction?e:t,ye=["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))"],ge={"--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(" ")},be={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,/*!*/ /*!*/)"},Ee={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},xe={"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"},we=new Set(Object.values(xe)),ke=/* @__PURE__ */new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Se=e=>e.trim(),Ce=e=>"string"==typeof e&&e.includes("(")&&e.includes(")"),_e=e=>t=>`${e}(${t})`,Oe={filter:e=>"auto"!==e?e:ge,backdropFilter:e=>"auto"!==e?e:be,ring:e=>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(", ")}}(Oe.px(e)),bgClip:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},transform:e=>"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...ye].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...ye].join(" "):e,vh:e=>"$100vh"===e?"var(--chakra-vh)":e,px(e){if(null==e)return e;const{unitless:t}=(e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}})(e);return t||"number"==typeof e?`${e}px`:e},fraction:e=>"number"!=typeof e||e>1?e:100*e+"%",float:(e,t)=>"rtl"===t.direction?{left:"right",right:"left"}[e]:e,degree(e){if(function(e){return/^var\(--.+\)$/.test(e)}(e)||null==e)return e;const t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},gradient:(e,t)=>function(e,t){var n;if(null==e||ke.has(e))return e;const{type:r,values:o}=(null==(n=/(?<type>^[a-z-A-Z]+)\((?<values>(.*))\)/g.exec(e))?void 0:n.groups)??{};if(!r||!o)return e;const a=r.includes("-gradient")?r:`${r}-gradient`,[i,...s]=o.split(",").map(Se).filter(Boolean);if(0===(null==s?void 0:s.length))return e;s.unshift(i in xe?xe[i]:i);const l=s.map(e=>{if(we.has(e))return e;const n=e.indexOf(" "),[r,o]=-1!==n?[e.substr(0,n),e.substr(n+1)]:[e],a=Ce(o)?o:o&&o.split(" "),i=`colors.${r}`,s=i in t.__cssMap?t.__cssMap[i].varRef:r;return a?[s,...Array.isArray(a)?a:[a]].join(" "):s});return`${a}(${l.join(", ")})`}(e,t??{}),blur:_e("blur"),opacity:_e("opacity"),brightness:_e("brightness"),contrast:_e("contrast"),dropShadow:_e("drop-shadow"),grayscale:_e("grayscale"),hueRotate:_e("hue-rotate"),invert:_e("invert"),saturate:_e("saturate"),sepia:_e("sepia"),bgImage:e=>null==e||Ce(e)||ke.has(e)?e:`url(${e})`,outline(e){const t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:n}=Ee[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},Ne={borderWidths:he("borderWidths"),borderStyles:he("borderStyles"),colors:he("colors"),borders:he("borders"),radii:he("radii",Oe.px),space:he("space",me(Oe.vh,Oe.px)),spaceT:he("space",me(Oe.vh,Oe.px)),degreeT:e=>({property:e,transform:Oe.degree}),prop:(e,t,n)=>({property:e,scale:t,...t&&{transform:fe({scale:t,transform:n})}}),propT:(e,t)=>({property:e,transform:t}),sizes:he("sizes",me(Oe.vh,Oe.px)),sizesT:he("sizes",me(Oe.vh,Oe.fraction)),shadows:he("shadows"),logical:function(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:ve(t),transform:n?fe({scale:n,compose:r}):r}},blur:he("blur",Oe.blur)},Ae={background:Ne.colors("background"),backgroundColor:Ne.colors("backgroundColor"),backgroundImage:Ne.propT("backgroundImage",Oe.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Oe.bgClip},bgSize:Ne.prop("backgroundSize"),bgPosition:Ne.prop("backgroundPosition"),bg:Ne.colors("background"),bgColor:Ne.colors("backgroundColor"),bgPos:Ne.prop("backgroundPosition"),bgRepeat:Ne.prop("backgroundRepeat"),bgAttachment:Ne.prop("backgroundAttachment"),bgGradient:Ne.propT("backgroundImage",Oe.gradient),bgClip:{transform:Oe.bgClip}};Object.assign(Ae,{bgImage:Ae.backgroundImage,bgImg:Ae.backgroundImage});var Re={border:Ne.borders("border"),borderWidth:Ne.borderWidths("borderWidth"),borderStyle:Ne.borderStyles("borderStyle"),borderColor:Ne.colors("borderColor"),borderRadius:Ne.radii("borderRadius"),borderTop:Ne.borders("borderTop"),borderBlockStart:Ne.borders("borderBlockStart"),borderTopLeftRadius:Ne.radii("borderTopLeftRadius"),borderStartStartRadius:Ne.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:Ne.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:Ne.radii("borderTopRightRadius"),borderStartEndRadius:Ne.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:Ne.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:Ne.borders("borderRight"),borderInlineEnd:Ne.borders("borderInlineEnd"),borderBottom:Ne.borders("borderBottom"),borderBlockEnd:Ne.borders("borderBlockEnd"),borderBottomLeftRadius:Ne.radii("borderBottomLeftRadius"),borderBottomRightRadius:Ne.radii("borderBottomRightRadius"),borderLeft:Ne.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:Ne.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:Ne.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:Ne.borders(["borderLeft","borderRight"]),borderInline:Ne.borders("borderInline"),borderY:Ne.borders(["borderTop","borderBottom"]),borderBlock:Ne.borders("borderBlock"),borderTopWidth:Ne.borderWidths("borderTopWidth"),borderBlockStartWidth:Ne.borderWidths("borderBlockStartWidth"),borderTopColor:Ne.colors("borderTopColor"),borderBlockStartColor:Ne.colors("borderBlockStartColor"),borderTopStyle:Ne.borderStyles("borderTopStyle"),borderBlockStartStyle:Ne.borderStyles("borderBlockStartStyle"),borderBottomWidth:Ne.borderWidths("borderBottomWidth"),borderBlockEndWidth:Ne.borderWidths("borderBlockEndWidth"),borderBottomColor:Ne.colors("borderBottomColor"),borderBlockEndColor:Ne.colors("borderBlockEndColor"),borderBottomStyle:Ne.borderStyles("borderBottomStyle"),borderBlockEndStyle:Ne.borderStyles("borderBlockEndStyle"),borderLeftWidth:Ne.borderWidths("borderLeftWidth"),borderInlineStartWidth:Ne.borderWidths("borderInlineStartWidth"),borderLeftColor:Ne.colors("borderLeftColor"),borderInlineStartColor:Ne.colors("borderInlineStartColor"),borderLeftStyle:Ne.borderStyles("borderLeftStyle"),borderInlineStartStyle:Ne.borderStyles("borderInlineStartStyle"),borderRightWidth:Ne.borderWidths("borderRightWidth"),borderInlineEndWidth:Ne.borderWidths("borderInlineEndWidth"),borderRightColor:Ne.colors("borderRightColor"),borderInlineEndColor:Ne.colors("borderInlineEndColor"),borderRightStyle:Ne.borderStyles("borderRightStyle"),borderInlineEndStyle:Ne.borderStyles("borderInlineEndStyle"),borderTopRadius:Ne.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:Ne.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:Ne.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:Ne.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Re,{rounded:Re.borderRadius,roundedTop:Re.borderTopRadius,roundedTopLeft:Re.borderTopLeftRadius,roundedTopRight:Re.borderTopRightRadius,roundedTopStart:Re.borderStartStartRadius,roundedTopEnd:Re.borderStartEndRadius,roundedBottom:Re.borderBottomRadius,roundedBottomLeft:Re.borderBottomLeftRadius,roundedBottomRight:Re.borderBottomRightRadius,roundedBottomStart:Re.borderEndStartRadius,roundedBottomEnd:Re.borderEndEndRadius,roundedLeft:Re.borderLeftRadius,roundedRight:Re.borderRightRadius,roundedStart:Re.borderInlineStartRadius,roundedEnd:Re.borderInlineEndRadius,borderStart:Re.borderInlineStart,borderEnd:Re.borderInlineEnd,borderTopStartRadius:Re.borderStartStartRadius,borderTopEndRadius:Re.borderStartEndRadius,borderBottomStartRadius:Re.borderEndStartRadius,borderBottomEndRadius:Re.borderEndEndRadius,borderStartRadius:Re.borderInlineStartRadius,borderEndRadius:Re.borderInlineEndRadius,borderStartWidth:Re.borderInlineStartWidth,borderEndWidth:Re.borderInlineEndWidth,borderStartColor:Re.borderInlineStartColor,borderEndColor:Re.borderInlineEndColor,borderStartStyle:Re.borderInlineStartStyle,borderEndStyle:Re.borderInlineEndStyle});var Ie={color:Ne.colors("color"),textColor:Ne.colors("color"),fill:Ne.colors("fill"),stroke:Ne.colors("stroke")},Le={boxShadow:Ne.shadows("boxShadow"),mixBlendMode:!0,blendMode:Ne.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:Ne.prop("backgroundBlendMode"),opacity:!0};Object.assign(Le,{shadow:Le.boxShadow});var Te={filter:{transform:Oe.filter},blur:Ne.blur("--chakra-blur"),brightness:Ne.propT("--chakra-brightness",Oe.brightness),contrast:Ne.propT("--chakra-contrast",Oe.contrast),hueRotate:Ne.degreeT("--chakra-hue-rotate"),invert:Ne.propT("--chakra-invert",Oe.invert),saturate:Ne.propT("--chakra-saturate",Oe.saturate),dropShadow:Ne.propT("--chakra-drop-shadow",Oe.dropShadow),backdropFilter:{transform:Oe.backdropFilter},backdropBlur:Ne.blur("--chakra-backdrop-blur"),backdropBrightness:Ne.propT("--chakra-backdrop-brightness",Oe.brightness),backdropContrast:Ne.propT("--chakra-backdrop-contrast",Oe.contrast),backdropHueRotate:Ne.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:Ne.propT("--chakra-backdrop-invert",Oe.invert),backdropSaturate:Ne.propT("--chakra-backdrop-saturate",Oe.saturate)},Pe={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Oe.flexDirection},experimental_spaceX:{static:{"& > :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))"}},transform:fe({scale:"space",transform:e=>null!==e?{"--chakra-space-x":e}:null})},experimental_spaceY:{static:{"& > :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))"}},transform:fe({scale:"space",transform:e=>null!=e?{"--chakra-space-y":e}:null})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:Ne.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:Ne.space("gap"),rowGap:Ne.space("rowGap"),columnGap:Ne.space("columnGap")};Object.assign(Pe,{flexDir:Pe.flexDirection});var Me={gridGap:Ne.space("gridGap"),gridColumnGap:Ne.space("gridColumnGap"),gridRowGap:Ne.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},je={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Oe.outline},outlineOffset:!0,outlineColor:Ne.colors("outlineColor")},De={width:Ne.sizesT("width"),inlineSize:Ne.sizesT("inlineSize"),height:Ne.sizes("height"),blockSize:Ne.sizes("blockSize"),boxSize:Ne.sizes(["width","height"]),minWidth:Ne.sizes("minWidth"),minInlineSize:Ne.sizes("minInlineSize"),minHeight:Ne.sizes("minHeight"),minBlockSize:Ne.sizes("minBlockSize"),maxWidth:Ne.sizes("maxWidth"),maxInlineSize:Ne.sizes("maxInlineSize"),maxHeight:Ne.sizes("maxHeight"),maxBlockSize:Ne.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:Ne.propT("float",Oe.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(De,{w:De.width,h:De.height,minW:De.minWidth,maxW:De.maxWidth,minH:De.minHeight,maxH:De.maxHeight,overscroll:De.overscrollBehavior,overscrollX:De.overscrollBehaviorX,overscrollY:De.overscrollBehaviorY});var Ve={listStyleType:!0,listStylePosition:!0,listStylePos:Ne.prop("listStylePosition"),listStyleImage:!0,listStyleImg:Ne.prop("listStyleImage")},Be=(e=>{const t=/* @__PURE__ */new WeakMap;return(n,r,o,a)=>{if(void 0===n)return e(n,r,o);t.has(n)||t.set(n,/* @__PURE__ */new Map);const i=t.get(n);if(i.has(r))return i.get(r);const s=e(n,r,o,a);return i.set(r,s),s}})(function(e,t,n,r){const o="string"==typeof t?t.split("."):[t];for(r=0;r<o.length&&e;r+=1)e=e[o[r]];return void 0===e?n:e}),Fe={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},$e={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},ze=(e,t,n)=>{const r={},o=Be(e,t,{});for(const e in o)e in n&&null!=n[e]||(r[e]=o[e]);return r},We={srOnly:{transform:e=>!0===e?Fe:"focusable"===e?$e:{}},layerStyle:{processResult:!0,transform:(e,t,n)=>ze(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>ze(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>ze(t,e,n)}},Ue={position:!0,pos:Ne.prop("position"),zIndex:Ne.prop("zIndex","zIndices"),inset:Ne.spaceT("inset"),insetX:Ne.spaceT(["left","right"]),insetInline:Ne.spaceT("insetInline"),insetY:Ne.spaceT(["top","bottom"]),insetBlock:Ne.spaceT("insetBlock"),top:Ne.spaceT("top"),insetBlockStart:Ne.spaceT("insetBlockStart"),bottom:Ne.spaceT("bottom"),insetBlockEnd:Ne.spaceT("insetBlockEnd"),left:Ne.spaceT("left"),insetInlineStart:Ne.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:Ne.spaceT("right"),insetInlineEnd:Ne.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Ue,{insetStart:Ue.insetInlineStart,insetEnd:Ue.insetInlineEnd});var He={ring:{transform:Oe.ring},ringColor:Ne.colors("--chakra-ring-color"),ringOffset:Ne.prop("--chakra-ring-offset-width"),ringOffsetColor:Ne.colors("--chakra-ring-offset-color"),ringInset:Ne.prop("--chakra-ring-inset")},qe={margin:Ne.spaceT("margin"),marginTop:Ne.spaceT("marginTop"),marginBlockStart:Ne.spaceT("marginBlockStart"),marginRight:Ne.spaceT("marginRight"),marginInlineEnd:Ne.spaceT("marginInlineEnd"),marginBottom:Ne.spaceT("marginBottom"),marginBlockEnd:Ne.spaceT("marginBlockEnd"),marginLeft:Ne.spaceT("marginLeft"),marginInlineStart:Ne.spaceT("marginInlineStart"),marginX:Ne.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:Ne.spaceT("marginInline"),marginY:Ne.spaceT(["marginTop","marginBottom"]),marginBlock:Ne.spaceT("marginBlock"),padding:Ne.space("padding"),paddingTop:Ne.space("paddingTop"),paddingBlockStart:Ne.space("paddingBlockStart"),paddingRight:Ne.space("paddingRight"),paddingBottom:Ne.space("paddingBottom"),paddingBlockEnd:Ne.space("paddingBlockEnd"),paddingLeft:Ne.space("paddingLeft"),paddingInlineStart:Ne.space("paddingInlineStart"),paddingInlineEnd:Ne.space("paddingInlineEnd"),paddingX:Ne.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:Ne.space("paddingInline"),paddingY:Ne.space(["paddingTop","paddingBottom"]),paddingBlock:Ne.space("paddingBlock")};Object.assign(qe,{m:qe.margin,mt:qe.marginTop,mr:qe.marginRight,me:qe.marginInlineEnd,marginEnd:qe.marginInlineEnd,mb:qe.marginBottom,ml:qe.marginLeft,ms:qe.marginInlineStart,marginStart:qe.marginInlineStart,mx:qe.marginX,my:qe.marginY,p:qe.padding,pt:qe.paddingTop,py:qe.paddingY,px:qe.paddingX,pb:qe.paddingBottom,pl:qe.paddingLeft,ps:qe.paddingInlineStart,paddingStart:qe.paddingInlineStart,pr:qe.paddingRight,pe:qe.paddingInlineEnd,paddingEnd:qe.paddingInlineEnd});var Ye={textDecorationColor:Ne.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:Ne.shadows("textShadow")},Ze={clipPath:!0,transform:Ne.propT("transform",Oe.transform),transformOrigin:!0,translateX:Ne.spaceT("--chakra-translate-x"),translateY:Ne.spaceT("--chakra-translate-y"),skewX:Ne.degreeT("--chakra-skew-x"),skewY:Ne.degreeT("--chakra-skew-y"),scaleX:Ne.prop("--chakra-scale-x"),scaleY:Ne.prop("--chakra-scale-y"),scale:Ne.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:Ne.degreeT("--chakra-rotate")},Ge={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:Ne.prop("transitionDuration","transition.duration"),transitionProperty:Ne.prop("transitionProperty","transition.property"),transitionTimingFunction:Ne.prop("transitionTimingFunction","transition.easing")},Xe={fontFamily:Ne.prop("fontFamily","fonts"),fontSize:Ne.prop("fontSize","fontSizes",Oe.px),fontWeight:Ne.prop("fontWeight","fontWeights"),lineHeight:Ne.prop("lineHeight","lineHeights"),letterSpacing:Ne.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!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"}},Ke={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:Ne.spaceT("scrollMargin"),scrollMarginTop:Ne.spaceT("scrollMarginTop"),scrollMarginBottom:Ne.spaceT("scrollMarginBottom"),scrollMarginLeft:Ne.spaceT("scrollMarginLeft"),scrollMarginRight:Ne.spaceT("scrollMarginRight"),scrollMarginX:Ne.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:Ne.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:Ne.spaceT("scrollPadding"),scrollPaddingTop:Ne.spaceT("scrollPaddingTop"),scrollPaddingBottom:Ne.spaceT("scrollPaddingBottom"),scrollPaddingLeft:Ne.spaceT("scrollPaddingLeft"),scrollPaddingRight:Ne.spaceT("scrollPaddingRight"),scrollPaddingX:Ne.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:Ne.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function Je(e){return le(e)&&e.reference?e.reference:String(e)}var Qe=(e,...t)=>t.map(Je).join(` ${e} `).replace(/calc/g,""),et=(...e)=>`calc(${Qe("+",...e)})`,tt=(...e)=>`calc(${Qe("-",...e)})`,nt=(...e)=>`calc(${Qe("*",...e)})`,rt=(...e)=>`calc(${Qe("/",...e)})`,ot=e=>{const t=Je(e);return null==t||Number.isNaN(parseFloat(t))?nt(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},at=Object.assign(e=>({add:(...t)=>at(et(e,...t)),subtract:(...t)=>at(tt(e,...t)),multiply:(...t)=>at(nt(e,...t)),divide:(...t)=>at(rt(e,...t)),negate:()=>at(ot(e)),toString:()=>e.toString()}),{add:et,subtract:tt,multiply:nt,divide:rt,negate:ot});function it(e){if(null==e)return e;const{unitless:t}=function(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e);return t||"number"==typeof e?`${e}px`:e}function st(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${it(e)})`),t&&n.push("and",`(max-width: ${it(t)})`),n.join(" ")}var lt=(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,ct=(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,ut=(e,t)=>`${e}:focus-visible ${t}`,dt=(e,t)=>`${e}:focus-within ${t}`,pt=(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,ft=(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,mt=(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,ht=(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,vt=e=>gt(t=>e(t,"&"),"[role=group]","[data-group]",".group"),yt=e=>gt(t=>e(t,"~ &"),"[data-peer]",".peer"),gt=(e,...t)=>t.map(e).join(", "),bt={_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, &[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:vt(lt),_peerHover:yt(lt),_groupFocus:vt(ct),_peerFocus:yt(ct),_groupFocusVisible:vt(ut),_peerFocusVisible:yt(ut),_groupActive:vt(pt),_peerActive:yt(pt),_groupDisabled:vt(ft),_peerDisabled:yt(ft),_groupInvalid:vt(mt),_peerInvalid:yt(mt),_groupChecked:vt(ht),_peerChecked:yt(ht),_groupFocusWithin:vt(dt),_peerFocusWithin:yt(dt),_peerPlaceholderShown:yt((e,t)=>`${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]"},Et=Object.keys(bt),xt=se({},Ae,Re,Ie,Pe,De,Te,He,je,Me,We,Ue,Le,qe,Ke,Xe,Ye,Ze,Ve,Ge),wt=Object.assign({},qe,De,Pe,Me,Ue),kt=Object.keys(wt),St=[...Object.keys(xt),...Et],Ct={...xt,...bt},_t=e=>e in Ct,Ot=(e,t)=>e.startsWith("--")&&"string"==typeof t&&!function(e){return/^var\(--.+\)$/.test(e)}(t),Nt=(e,t)=>{if(null==t)return t;const n=t=>{var n,r;return null==(r=null==(n=e.__cssMap)?void 0:n[t])?void 0:r.varRef},r=e=>n(e)??e,[o,a]=function(e){const t=[];let n="",r=!1;for(let o=0;o<e.length;o++){const a=e[o];"("===a?(r=!0,n+=a):")"===a?(r=!1,n+=a):","!==a||r?n+=a:(t.push(n),n="")}return n=n.trim(),n&&t.push(n),t}(t);return n(o)??r(a)??r(t)};function At(e,t){for(let n=t+1;n<e.length;n++)if(null!=e[n])return n;return-1}function Rt(e){return function(e,t=[]){const n=Object.assign({},e);for(const e of t)e in n&&delete n[e];return n}(e,["styleConfig","size","variant","colorScheme"])}var It=/*#__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|-ms-expand|-ms-reveal){/.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}(),Lt="-ms-",Tt="-webkit-",Pt=Math.abs,Mt=String.fromCharCode,jt=Object.assign;function Dt(e){return e.trim()}function Vt(e,t,n){return e.replace(t,n)}function Bt(e,t){return e.indexOf(t)}function Ft(e,t){return 0|e.charCodeAt(t)}function $t(e,t,n){return e.slice(t,n)}function zt(e){return e.length}function Wt(e){return e.length}function Ut(e,t){return t.push(e),e}var Ht=1,qt=1,Yt=0,Zt=0,Gt=0,Xt="";function Kt(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Ht,column:qt,length:i,return:""}}function Jt(e,t){return jt(Kt("",null,null,"",null,null,0),e,{length:-e.length},t)}function Qt(){return Gt=Zt>0?Ft(Xt,--Zt):0,qt--,10===Gt&&(qt=1,Ht--),Gt}function en(){return Gt=Zt<Yt?Ft(Xt,Zt++):0,qt++,10===Gt&&(qt=1,Ht++),Gt}function tn(){return Ft(Xt,Zt)}function nn(){return Zt}function rn(e,t){return $t(Xt,e,t)}function on(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 an(e){return Ht=qt=1,Yt=zt(Xt=e),Zt=0,[]}function sn(e){return Xt="",e}function ln(e){return Dt(rn(Zt-1,dn(91===e?e+2:40===e?e+1:e)))}function cn(e){for(;(Gt=tn())&&Gt<33;)en();return on(e)>2||on(Gt)>3?"":" "}function un(e,t){for(;--t&&en()&&!(Gt<48||Gt>102||Gt>57&&Gt<65||Gt>70&&Gt<97););return rn(e,nn()+(t<6&&32==tn()&&32==en()))}function dn(e){for(;en();)switch(Gt){case e:return Zt;case 34:case 39:34!==e&&39!==e&&dn(Gt);break;case 40:41===e&&dn(e);break;case 92:en()}return Zt}function pn(e,t){for(;en()&&e+Gt!==57&&(e+Gt!==84||47!==tn()););return"/*"+rn(t,Zt-1)+"*"+Mt(47===e?e:en())}function fn(e){for(;!on(tn());)en();return rn(e,Zt)}function mn(e){return sn(hn("",null,null,null,[""],e=an(e),0,[0],e))}function hn(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,d=i,p=0,f=0,m=0,h=1,v=1,y=1,g=0,b="",E=o,x=a,w=r,k=b;v;)switch(m=g,g=en()){case 40:if(108!=m&&58==Ft(k,d-1)){-1!=Bt(k+=Vt(ln(g),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=ln(g);break;case 9:case 10:case 13:case 32:k+=cn(m);break;case 92:k+=un(nn()-1,7);continue;case 47:switch(tn()){case 42:case 47:Ut(yn(pn(en(),nn()),t,n),l);break;default:k+="/"}break;case 123*h:s[c++]=zt(k)*y;case 125*h:case 59:case 0:switch(g){case 0:case 125:v=0;case 59+u:f>0&&zt(k)-d&&Ut(f>32?gn(k+";",r,n,d-1):gn(Vt(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(Ut(w=vn(k,t,n,c,u,o,s,b,E=[],x=[],d),a),123===g)if(0===u)hn(k,t,w,w,E,a,d,s,x);else switch(99===p&&110===Ft(k,3)?100:p){case 100:case 109:case 115:hn(e,w,w,r&&Ut(vn(e,w,w,0,0,o,s,b,o,E=[],d),x),o,x,d,s,r?E:x);break;default:hn(k,w,w,w,[""],x,0,s,x)}}c=u=f=0,h=y=1,b=k="",d=i;break;case 58:d=1+zt(k),f=m;default:if(h<1)if(123==g)--h;else if(125==g&&0==h++&&125==Qt())continue;switch(k+=Mt(g),g*h){case 38:y=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(zt(k)-1)*y,y=1;break;case 64:45===tn()&&(k+=ln(en())),p=tn(),u=d=zt(b=k+=fn(nn())),g++;break;case 45:45===m&&2==zt(k)&&(h=0)}}return a}function vn(e,t,n,r,o,a,i,s,l,c,u){for(var d=o-1,p=0===o?a:[""],f=Wt(p),m=0,h=0,v=0;m<r;++m)for(var y=0,g=$t(e,d+1,d=Pt(h=i[m])),b=e;y<f;++y)(b=Dt(h>0?p[y]+" "+g:Vt(g,/&\f/g,p[y])))&&(l[v++]=b);return Kt(e,t,n,0===o?"rule":s,l,c,u)}function yn(e,t,n){return Kt(e,t,n,"comm",Mt(Gt),$t(e,2,-2),0)}function gn(e,t,n,r){return Kt(e,t,n,"decl",$t(e,0,r),$t(e,r+1,-1),r)}function bn(e,t){for(var n="",r=Wt(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function En(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+"{"+bn(e.children,r)+"}";case"rule":e.value=e.props.join(",")}return zt(n=bn(e.children,r))?e.return=e.value+"{"+n+"}":""}function xn(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var wn=function(e,t,n){for(var r=0,o=0;r=o,o=tn(),38===r&&12===o&&(t[n]=1),!on(o);)en();return rn(e,Zt)},kn=/* #__PURE__ */new WeakMap,Sn=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)||kn.get(n))&&!r){kn.set(e,!0);for(var o=[],a=function(e,t){return sn(function(e,t){var n=-1,r=44;do{switch(on(r)){case 0:38===r&&12===tn()&&(t[n]=1),e[n]+=wn(Zt-1,t,n);break;case 2:e[n]+=ln(r);break;case 4:if(44===r){e[++n]=58===tn()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Mt(r)}}while(r=en());return e}(an(e),t))}(t,o),i=n.props,s=0,l=0;s<a.length;s++)for(var c=0;c<i.length;c++,l++)e.props[l]=o[s]?a[s].replace(/&\f/g,i[c]):i[c]+" "+a[s]}}},Cn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},_n=function(e){return"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},On=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},Nn=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},An=function(e,t,n){On(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."),Nn(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!On(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."),Nn(e)))};function Rn(e,t){switch(function(e,t){return 45^Ft(e,0)?(((t<<2^Ft(e,0))<<2^Ft(e,1))<<2^Ft(e,2))<<2^Ft(e,3):0}(e,t)){case 5103:return Tt+"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 Tt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Tt+e+"-moz-"+e+Lt+e+e;case 6828:case 4268:return Tt+e+Lt+e+e;case 6165:return Tt+e+Lt+"flex-"+e+e;case 5187:return Tt+e+Vt(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return Tt+e+Lt+"flex-item-"+Vt(e,/flex-|-self/,"")+e;case 4675:return Tt+e+Lt+"flex-line-pack"+Vt(e,/align-content|flex-|-self/,"")+e;case 5548:return Tt+e+Lt+Vt(e,"shrink","negative")+e;case 5292:return Tt+e+Lt+Vt(e,"basis","preferred-size")+e;case 6060:return Tt+"box-"+Vt(e,"-grow","")+Tt+e+Lt+Vt(e,"grow","positive")+e;case 4554:return Tt+Vt(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return Vt(Vt(Vt(e,/(zoom-|grab)/,Tt+"$1"),/(image-set)/,Tt+"$1"),e,"")+e;case 5495:case 3959:return Vt(e,/(image-set\([^]*)/,Tt+"$1$`$1");case 4968:return Vt(Vt(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+Tt+e+e;case 4095:case 3583:case 4068:case 2532:return Vt(e,/(.+)-inline(.+)/,Tt+"$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(zt(e)-1-t>6)switch(Ft(e,t+1)){case 109:if(45!==Ft(e,t+4))break;case 102:return Vt(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==Ft(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Bt(e,"stretch")?Rn(Vt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ft(e,t+1))break;case 6444:switch(Ft(e,zt(e)-3-(~Bt(e,"!important")&&10))){case 107:return Vt(e,":",":"+Tt)+e;case 101:return Vt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Tt+(45===Ft(e,14)?"inline-":"")+"box$3$1"+Tt+"$2$3$1"+Lt+"$2box$3")+e}break;case 5936:switch(Ft(e,t+11)){case 114:return Tt+e+Lt+Vt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Tt+e+Lt+Vt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Tt+e+Lt+Vt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Tt+e+Lt+e+e}return e}var In=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case"decl":e.return=Rn(e.value,e.length);break;case"@keyframes":return bn([Jt(e,{value:Vt(e.value,"@","@"+Tt)})],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 bn([Jt(e,{props:[Vt(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return bn([Jt(e,{props:[Vt(t,/:(plac\w+)/,":-webkit-input-$1")]}),Jt(e,{props:[Vt(t,/:(plac\w+)/,":-moz-$1")]}),Jt(e,{props:[Vt(t,/:(plac\w+)/,Lt+"input-$1")]})],r)}return""})}}],Ln=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||In;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 o,a,i={},s=[];o=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=[Sn,Cn];"production"!==process.env.NODE_ENV&&l.push(function(e){return function(t,n,r){if("rule"===t.type&&!e.compat){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var a=t.parent===r[0]?r[0].children:r,i=a.length-1;i>=0;i--){var s=a[i];if(s.line<t.line)break;if(s.column<t.column){if(_n(s))return;break}}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}}),An);var c,u,d=[En,"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=Wt(e);return function(n,r,o,a){for(var i="",s=0;s<t;s++)i+=e[s](n,r,o,a)||"";return i}}(l.concat(r,d));a=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)}}),bn(mn(e?e+"{"+t.styles+"}":t.styles),p),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new It({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:a};return f.sheet.hydrate(s),f};function Tn(){return Tn=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},Tn.apply(this,arguments)}var Pn="function"==typeof Symbol&&Symbol.for,Mn=Pn?Symbol.for("react.element"):60103,jn=Pn?Symbol.for("react.portal"):60106,Dn=Pn?Symbol.for("react.fragment"):60107,Vn=Pn?Symbol.for("react.strict_mode"):60108,Bn=Pn?Symbol.for("react.profiler"):60114,Fn=Pn?Symbol.for("react.provider"):60109,$n=Pn?Symbol.for("react.context"):60110,zn=Pn?Symbol.for("react.async_mode"):60111,Wn=Pn?Symbol.for("react.concurrent_mode"):60111,Un=Pn?Symbol.for("react.forward_ref"):60112,Hn=Pn?Symbol.for("react.suspense"):60113,qn=Pn?Symbol.for("react.suspense_list"):60120,Yn=Pn?Symbol.for("react.memo"):60115,Zn=Pn?Symbol.for("react.lazy"):60116,Gn=Pn?Symbol.for("react.block"):60121,Xn=Pn?Symbol.for("react.fundamental"):60117,Kn=Pn?Symbol.for("react.responder"):60118,Jn=Pn?Symbol.for("react.scope"):60119;function Qn(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Mn:switch(e=e.type){case zn:case Wn:case Dn:case Bn:case Vn:case Hn:return e;default:switch(e=e&&e.$$typeof){case $n:case Un:case Zn:case Yn:case Fn:return e;default:return t}}case jn:return t}}}function er(e){return Qn(e)===Wn}var tr={AsyncMode:zn,ConcurrentMode:Wn,ContextConsumer:$n,ContextProvider:Fn,Element:Mn,ForwardRef:Un,Fragment:Dn,Lazy:Zn,Memo:Yn,Portal:jn,Profiler:Bn,StrictMode:Vn,Suspense:Hn,isAsyncMode:function(e){return er(e)||Qn(e)===zn},isConcurrentMode:er,isContextConsumer:function(e){return Qn(e)===$n},isContextProvider:function(e){return Qn(e)===Fn},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Mn},isForwardRef:function(e){return Qn(e)===Un},isFragment:function(e){return Qn(e)===Dn},isLazy:function(e){return Qn(e)===Zn},isMemo:function(e){return Qn(e)===Yn},isPortal:function(e){return Qn(e)===jn},isProfiler:function(e){return Qn(e)===Bn},isStrictMode:function(e){return Qn(e)===Vn},isSuspense:function(e){return Qn(e)===Hn},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===Dn||e===Wn||e===Bn||e===Vn||e===Hn||e===qn||"object"==typeof e&&null!==e&&(e.$$typeof===Zn||e.$$typeof===Yn||e.$$typeof===Fn||e.$$typeof===$n||e.$$typeof===Un||e.$$typeof===Xn||e.$$typeof===Kn||e.$$typeof===Jn||e.$$typeof===Gn)},typeOf:Qn},nr=E(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,o=e?Symbol.for("react.fragment"):60107,a=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,h=e?Symbol.for("react.lazy"):60116,v=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 f=e.type;switch(f){case c:case u:case o:case i:case a:case p:return f;default:var v=f&&f.$$typeof;switch(v){case l:case d:case h:case m:case s:return v;default:return t}}case r:return t}}}var x=u,w=l,k=s,S=n,C=d,_=o,O=h,N=m,A=r,R=i,I=a,L=p,T=!1;function P(e){return E(e)===u}t.AsyncMode=c,t.ConcurrentMode=x,t.ContextConsumer=w,t.ContextProvider=k,t.Element=S,t.ForwardRef=C,t.Fragment=_,t.Lazy=O,t.Memo=N,t.Portal=A,t.Profiler=R,t.StrictMode=I,t.Suspense=L,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.")),P(e)||E(e)===c},t.isConcurrentMode=P,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)===o},t.isLazy=function(e){return E(e)===h},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)===a},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===u||e===i||e===a||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===y||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v)},t.typeOf=E}()});function rr(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "}),r}E(function(e){e.exports="production"===process.env.NODE_ENV?tr:nr});var or=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},ar=function(e,t,n){or(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},ir={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},sr="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",lr=/[A-Z]|^ms/g,cr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ur=function(e){return 45===e.charCodeAt(1)},dr=function(e){return null!=e&&"boolean"!=typeof e},pr=/* #__PURE__ */xn(function(e){return ur(e)?e:e.replace(lr,"-$&").toLowerCase()}),fr=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(cr,function(e,t,n){return kr={name:t,styles:n,next:kr},t})}return 1===ir[e]||ur(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var mr=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,hr=["normal","none","initial","inherit","unset"],vr=fr,yr=/^-ms-/,gr=/-(.)/g,br={};fr=function(e,t){if("content"===e&&("string"!=typeof t||-1===hr.indexOf(t)&&!mr.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=vr(e,t);return""===n||ur(e)||-1===e.indexOf("-")||void 0!==br[e]||(br[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(yr,"ms-").replace(gr,function(e,t){return t.toUpperCase()})+"?")),n}}var Er="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function xr(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(Er);return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return kr={name:n.name,styles:n.styles,next:kr},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)kr={name:r.name,styles:r.styles,next:kr},r=r.next;var o=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(o+=n.map),o}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=xr(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":dr(i)&&(r+=pr(a)+":"+fr(a,i)+";");else{if("NO_COMPONENT_SELECTOR"===a&&"production"!==process.env.NODE_ENV)throw new Error(Er);if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=xr(e,t,i);switch(a){case"animation":case"animationName":r+=pr(a)+":"+s+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===a&&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+=a+"{"+s+"}"}}else for(var l=0;l<i.length;l++)dr(i[l])&&(r+=pr(a)+":"+fr(a,i[l])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var a=kr,i=n(e);return kr=a,xr(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(cr,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 wr,kr,Sr=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(wr=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Cr=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,o="";kr=void 0;var a,i=e[0];null==i||void 0===i.raw?(r=!1,o+=xr(n,t,i)):("production"!==process.env.NODE_ENV&&void 0===i[0]&&console.error(sr),o+=i[0]);for(var s=1;s<e.length;s++)o+=xr(n,t,e[s]),r&&("production"!==process.env.NODE_ENV&&void 0===i[s]&&console.error(sr),o+=i[s]);"production"!==process.env.NODE_ENV&&(o=o.replace(wr,function(e){return a=e,""})),Sr.lastIndex=0;for(var l,c="";null!==(l=Sr.exec(o));)c+="-"+l[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=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(o){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)}(o)+c;return"production"!==process.env.NODE_ENV?{name:u,styles:o,map:a,next:kr,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:o,next:kr}},_r=!!re.useInsertionEffect&&re.useInsertionEffect,Or=_r||function(e){return e()},Nr=_r||ne.useLayoutEffect,Ar={}.hasOwnProperty,Rr=/* #__PURE__ */ne.createContext("undefined"!=typeof HTMLElement?/* #__PURE__ */Ln({key:"css"}):null);"production"!==process.env.NODE_ENV&&(Rr.displayName="EmotionCacheContext");var Ir=function(e){/*#__PURE__*/
|
2
|
+
return ne.forwardRef(function(t,n){var r=ne.useContext(Rr);return e(t,r,n)})},Lr=/* #__PURE__ */ne.createContext({});"production"!==process.env.NODE_ENV&&(Lr.displayName="EmotionThemeContext");var Tr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return or(t,n,r),Or(function(){return ar(t,n,r)}),null};"production"!==process.env.NODE_ENV&&(/* #__PURE__ */Ir(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e.__EMOTION_TYPE_PLEASE_DO_NOT_USE__,a=[r],i="";"string"==typeof e.className?i=rr(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var s=Cr(a,void 0,ne.useContext(Lr));if("production"!==process.env.NODE_ENV&&-1===s.name.indexOf("-")){var l=e.__EMOTION_LABEL_PLEASE_DO_NOT_USE__;l&&(s=Cr([s,"label:"+l+";"]))}i+=t.key+"-"+s.name;var c={};for(var u in e)!Ar.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__*/ne.createElement(ne.Fragment,null,/*#__PURE__*/ne.createElement(Tr,{cache:t,serialized:s,isStringTag:"string"==typeof o}),/*#__PURE__*/ne.createElement(o,c))}).displayName="EmotionCssPropInternal");var Pr=!1,Mr=/* #__PURE__ */Ir(function(e,t){"production"===process.env.NODE_ENV||Pr||!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?"),Pr=!0);var n=Cr([e.styles],void 0,ne.useContext(Lr)),r=ne.useRef();return Nr(function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,i=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==i&&(a=!0,i.setAttribute("data-emotion",e),o.hydrate([i])),r.current=[o,a],function(){o.flush()}},[t]),Nr(function(){var e=r.current,o=e[0];e[1]?e[1]=!1:(void 0!==n.next&&ar(t,n.next,!0),o.tags.length&&(o.before=o.tags[o.tags.length-1].nextElementSibling,o.flush()),t.insert("",n,o,!1))},[t,n.name]),null});function jr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Cr(t)}"production"!==process.env.NODE_ENV&&(Mr.displayName="EmotionGlobal");var Dr=function(){var e=jr.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_"}}},Vr=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=e(a);else for(var s in"production"!==process.env.NODE_ENV&&void 0!==a.styles&&void 0!==a.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="",a)a[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=a}i&&(o&&(o+=" "),o+=i)}}return o};function Br(e,t,n){var r=[],o=rr(e,r,n);return r.length<2?n:o+t(r)}var Fr=function(e){var t=e.cache,n=e.serializedArr;return Or(function(){for(var e=0;e<n.length;e++)ar(t,n[e],!1)}),null},$r=/* #__PURE__ */Ir(function(e,t){var n=!1,r=[],o=function(){if(n&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var e=arguments.length,o=new Array(e),a=0;a<e;a++)o[a]=arguments[a];var i=Cr(o,t.registered);return r.push(i),or(t,i,!1),t.key+"-"+i.name},a={css:o,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),a=0;a<e;a++)r[a]=arguments[a];return Br(t.registered,o,Vr(r))},theme:ne.useContext(Lr)},i=e.children(a);return n=!0,/*#__PURE__*/ne.createElement(ne.Fragment,null,/*#__PURE__*/ne.createElement(Fr,{cache:t,serializedArr:r}),i)});if("production"!==process.env.NODE_ENV&&($r.displayName="EmotionClassNames"),"production"!==process.env.NODE_ENV&&"undefined"==typeof jest&&"undefined"==typeof vi){var zr="undefined"!=typeof globalThis?globalThis:window,Wr="__EMOTION_REACT_"+"11.10.5".split(".")[0]+"__";zr[Wr]&&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."),zr[Wr]=!0}function Ur(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=ne.createContext(void 0);return o.displayName=r,[o.Provider,function e(){var r;const a=ne.useContext(o);if(!a&&t){const t=new Error(n);throw t.name="ContextError",null==(r=Error.captureStackTrace)||r.call(Error,t,e),t}return a},o]}var Hr=/^((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)-.*))$/,qr=/* #__PURE__ */xn(function(e){return Hr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Yr=function(e){return"theme"!==e},Zr=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?qr:Yr},Gr=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},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=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return or(t,n,r),Or(function(){return ar(t,n,r)}),null},Jr=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,o,a=t.__emotion_real===t,i=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=Gr(t,n,a),l=s||Zr(i),c=!l("as");return function(){var u=arguments,d=a&&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(Xr),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(Xr),d.push(u[f],u[0][f])}var m=Ir(function(e,t,n){var r=c&&e.as||i,a="",u=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=ne.useContext(Lr)}"string"==typeof e.className?a=rr(t.registered,u,e.className):null!=e.className&&(a=e.className+" ");var m=Cr(d.concat(u),t.registered,p);a+=t.key+"-"+m.name,void 0!==o&&(a+=" "+o);var h=c&&void 0===s?Zr(r):l,v={};for(var y in e)c&&"as"===y||h(y)&&(v[y]=e[y]);return v.className=a,v.ref=n,/*#__PURE__*/ne.createElement(ne.Fragment,null,/*#__PURE__*/ne.createElement(Kr,{cache:t,serialized:m,isStringTag:"string"==typeof r}),/*#__PURE__*/ne.createElement(r,v))});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===o&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(t,r){return e(t,Tn({},n,r,{shouldForwardProp:Gr(m,r,!0)})).apply(void 0,d)},m}}.bind();["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){Jr[e]=Jr(e)});var Qr="undefined"!=typeof Element,eo="function"==typeof Map,to="function"==typeof Set,no="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function ro(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,o,a;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!ro(e[r],t[r]))return!1;return!0}if(eo&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!ro(r.value[1],t.get(r.value[0])))return!1;return!0}if(to&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(no&&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=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(Qr&&e instanceof Element)return!1;for(r=n;0!=r--;)if(("_owner"!==o[r]&&"__v"!==o[r]&&"__o"!==o[r]||!e.$$typeof)&&!ro(e[o[r]],t[o[r]]))return!1;return!0}return e!=e&&t!=t}var oo=function(e,t){try{return ro(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}};function ao(){const e=ne.useContext(Lr);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}Ur({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});var io=/* @__PURE__ */new Set([...St,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),so=/* @__PURE__ */new Set(["htmlWidth","htmlHeight","htmlSize"]);function lo(e){return so.has(e)||!io.has(e)}function co(e,t){const{baseStyle:n,...o}=t??{};o.shouldForwardProp||(o.shouldForwardProp=lo);const s=(({baseStyle:e})=>t=>{const{theme:n,css:o,__css:s,sx:l,...c}=t,u=a(c,(e,t)=>_t(t)),d=i(e,t),p=Object.assign({},s,d,r(u),l),f=(m=p,e=>function(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(e,a=!1)=>{var i;const s=ce(e,r),l=(e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,a={};for(const i in e){let s=ce(e[i],t);if(null==s)continue;if(s=le(s)&&n(s)?r(s):s,!Array.isArray(s)){a[i]=s;continue}const l=s.slice(0,o.length).length;for(let e=0;e<l;e+=1){const t=null==o?void 0:o[e];t?(a[t]=a[t]||{},null!=s[e]&&(a[t][i]=s[e])):a[i]=s[e]}}return a})(s)(r);let c={};for(let e in l){let u=ce(l[e],r);e in n&&(e=n[e]),Ot(e,u)&&(u=Nt(r,u));let d=t[e];if(!0===d&&(d={property:e}),le(u)){c[e]=c[e]??{},c[e]=se({},c[e],o(u,!0));continue}let p=(null==(i=null==d?void 0:d.transform)?void 0:i.call(d,u,r,s))??u;p=(null==d?void 0:d.processResult)?o(p,!0):p;const f=ce(null==d?void 0:d.property,r);if(!a&&(null==d?void 0:d.static)){const e=ce(d.static,r);c=se({},c,e)}if(f&&Array.isArray(f))for(const e of f)c[e]=p;else f?"&"===f&&le(p)?c=se({},c,p):c[f]=p:le(p)?c=se({},c,p):c[e]=p}return c};return o}({theme:e,pseudos:bt,configs:xt})(m))(t.theme);var m;return o?[f,o]:f})({baseStyle:n}),l=Jr(e,o)(s);return ne.forwardRef(function(e,t){const{colorMode:n,forced:r}=ie();return ne.createElement(l,{ref:t,"data-theme":r?n:void 0,...e})})}function uo(e){return ne.forwardRef(e)}function po(e,a={}){const{styleConfig:i,...s}=a,{theme:l,colorMode:c}={...ie(),theme:ao()},u=e?t(l,`components.${e}`):void 0,d=i||u,p=n({theme:l,colorMode:c},(null==d?void 0:d.defaultProps)??{},r(o(s,["children"]))),f=ne.useRef({});if(d){const e=(m=d,e=>{const{variant:t,size:n,theme:r}=e,o=function(e){const t=e.__breakpoints;return function(e,n,r,o){var a,i;if(!t)return;const s={},l=function(e,t){return Array.isArray(e)?e:le(e)?t(e):null!=e?[e]:void 0}(r,t.toArrayValue);if(!l)return s;const c=l.length,u=1===c,d=!!e.parts;for(let r=0;r<c;r++){const c=t.details[r],p=t.details[At(l,r)],f=st(c.minW,null==p?void 0:p._minW),m=ce(null==(a=e[n])?void 0:a[l[r]],o);m&&(d?null==(i=e.parts)||i.forEach(e=>{se(s,{[e]:u?m[e]:{[f]:m[e]}})}):d?s[f]=m:u?se(s,m):s[f]=m)}return s}}(r);return se({},ce(m.baseStyle??{},e),o(m,"sizes",n,e),o(m,"variants",t,e))}),t=e(p);oo(f.current,t)||(f.current=t)}var m;return f.current}function fo(e,t={}){return po(e,t)}function mo(e,t={}){return po(e,t)}var ho=function(){const e=/* @__PURE__ */new Map;return new Proxy(co,{apply:(e,t,n)=>co(...n),get:(t,n)=>(e.has(n)||e.set(n,co(n)),e.get(n))})}();function vo(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:a}=e,i=ne.createContext(void 0);return i.displayName=t,[i.Provider,function e(){var t;const s=ne.useContext(i);if(!s&&n){const n=new Error(a??`${r} returned \`undefined\`. Seems you forgot to wrap component within ${o}`);throw n.name="ContextError",null==(t=Error.captureStackTrace)||t.call(Error,n,e),n}return s},i]}function yo(...e){return t=>{e.forEach(e=>{!function(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)}(e,t)})}}function go(...e){return ne.useMemo(()=>yo(...e),e)}function bo(e){return e.sort((e,t)=>{const 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 Eo(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function xo(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var wo="undefined"!=typeof window?ne.useLayoutEffect:ne.useEffect,[ko,So]=vo({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function Co(){return[ko,()=>So(),()=>function(){const e=ne.useRef(new class{descendants=/* @__PURE__ */new Map;register=e=>{var t;if(null!=e)return"object"==typeof(t=e)&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE?this.registerNode(e):t=>{this.registerNode(t,e)}};unregister=e=>{this.descendants.delete(e);const t=bo(Array.from(this.descendants.keys()));this.assignIndex(t)};destroy=()=>{this.descendants.clear()};assignIndex=e=>{this.descendants.forEach(t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})};count=()=>this.descendants.size;enabledCount=()=>this.enabledValues().length;values=()=>Array.from(this.descendants.values()).sort((e,t)=>e.index-t.index);enabledValues=()=>this.values().filter(e=>!e.disabled);item=e=>{if(0!==this.count())return this.values()[e]};enabledItem=e=>{if(0!==this.enabledCount())return this.enabledValues()[e]};first=()=>this.item(0);firstEnabled=()=>this.enabledItem(0);last=()=>this.item(this.descendants.size-1);lastEnabled=()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)};indexOf=e=>{var t;return e?(null==(t=this.descendants.get(e))?void 0:t.index)??-1:-1};enabledIndexOf=e=>null==e?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e));next=(e,t=!0)=>{const n=Eo(e,this.count(),t);return this.item(n)};nextEnabled=(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=Eo(this.enabledIndexOf(n.node),this.enabledCount(),t);return this.enabledItem(r)};prev=(e,t=!0)=>{const n=xo(e,this.count()-1,t);return this.item(n)};prevEnabled=(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=xo(this.enabledIndexOf(n.node),this.enabledCount()-1,t);return this.enabledItem(r)};registerNode=(e,t)=>{if(!e||this.descendants.has(e))return;const n=bo(Array.from(this.descendants.keys()).concat(e));(null==t?void 0:t.disabled)&&(t.disabled=!!t.disabled);const r={node:e,index:-1,...t};this.descendants.set(e,r),this.assignIndex(n)}});return wo(()=>()=>e.current.destroy()),e.current}(),e=>function(e){const t=So(),[n,r]=ne.useState(-1),o=ne.useRef(null);wo(()=>()=>{o.current&&t.unregister(o.current)},[]),wo(()=>{if(!o.current)return;const e=Number(o.current.dataset.index);n==e||Number.isNaN(e)||r(e)});const a=e?t.register(e):t.register;return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(o.current),register:yo(a,o)}}(e)]}var _o=(...e)=>e.filter(Boolean).join(" ");function Oo(e,t=[]){const n=ne.useRef(e);return ne.useEffect(()=>{n.current=e}),ne.useCallback((...e)=>{var t;return null==(t=n.current)?void 0:t.call(n,...e)},t)}function No(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:o=((e,t)=>e!==t)}=e,a=Oo(r),i=Oo(o),[s,l]=ne.useState(n),c=void 0!==t,u=c?t:s,d=Oo(e=>{const t="function"==typeof e?e(u):e;i(u,t)&&(c||l(t),a(t))},[c,a,u,i]);return[u,d]}var Ao=function(e,t){return Ao=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])},Ao(e,t)};function Ro(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}Ao(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Io=function(){return Io=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Io.apply(this,arguments)};function Lo(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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function To(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function Po(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var Mo="undefined"==typeof process||void 0===process.env?"production":process.env.NODE_ENV||"production",jo=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},Do={measureLayout:jo(["layout","layoutId","drag"]),animation:jo(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:jo(["exit"]),drag:jo(["drag","dragControls"]),focus:jo(["whileFocus"]),hover:jo(["whileHover","onHoverStart","onHoverEnd"]),tap:jo(["whileTap","onTap","onTapStart","onTapCancel"]),pan:jo(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:jo(["whileInView","onViewportEnter","onViewportLeave"])},Vo=function(){},Bo=function(){};"production"!==process.env.NODE_ENV&&(Vo=function(e,t){e||"undefined"==typeof console||console.warn(t)},Bo=function(e,t){if(!e)throw new Error(t)});var Fo=ne.createContext({strict:!1}),$o=Object.keys(Do),zo=$o.length,Wo=ne.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Uo=ne.createContext({}),Ho=ne.createContext(null),qo="undefined"!=typeof document,Yo=qo?ne.useLayoutEffect:ne.useEffect,Zo={current:null},Go=!1;function Xo(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Ko(e){return Array.isArray(e)}function Jo(e){return"string"==typeof e||Ko(e)}function Qo(e,t,n,r,o){var a;return void 0===r&&(r={}),void 0===o&&(o={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),"string"==typeof t&&(t=null===(a=e.variants)||void 0===a?void 0:a[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),t}function ea(e,t,n){var r=e.getProps();return Qo(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 ta(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Jo(e.initial)||Jo(e.animate)||Jo(e.whileHover)||Jo(e.whileDrag)||Jo(e.whileTap)||Jo(e.whileFocus)||Jo(e.exit)}function na(e){return Boolean(ta(e)||e.variants)}function ra(e){return Array.isArray(e)?e.join(" "):e}function oa(e){var t=ne.useRef(null);return null===t.current&&(t.current=e()),t.current}var aa={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ia=1,sa=ne.createContext({}),la=ne.createContext({}),ca=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ro(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}(ne.Component);function ua(e){function t(t,n){return void 0===n&&(n={}),function(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,o=e.useRender,a=e.useVisualState,i=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?Do.projectionNodeConstructor=e[t]:Do[t].Component=e[t])}(t),ne.forwardRef(function(e,s){var l=function(e){var t,n=e.layoutId,r=null===(t=ne.useContext(sa))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=Io(Io({},e),{layoutId:l});var c=ne.useContext(Wo),u=null,d=function(e){var t=function(e,t){if(ta(e)){var n=e.initial,r=e.animate;return{initial:!1===n||Jo(n)?n:void 0,animate:Jo(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,ne.useContext(Uo)),n=t.initial,r=t.animate;return ne.useMemo(function(){return{initial:n,animate:r}},[ra(n),ra(r)])}(e),p=c.isStatic?void 0:oa(function(){if(aa.hasEverUpdated)return ia++}),f=a(e,c.isStatic);return!c.isStatic&&qo&&(d.visualElement=function(e,t,n,r){var o,a,i=ne.useContext(Fo),s=ne.useContext(Uo).visualElement,l=ne.useContext(Ho),c=(!Go&&function(){if(Go=!0,qo)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Zo.current=e.matches};e.addListener(t),t()}else Zo.current=!1}(),o=To(ne.useState(Zo.current),1)[0],"never"!==(a=ne.useContext(Wo).reducedMotion)&&("always"===a||o)),u=ne.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 Yo(function(){null==d||d.syncRender()}),ne.useEffect(function(){var e;null===(e=null==d?void 0:d.animationState)||void 0===e||e.animateChanges()}),Yo(function(){return function(){return null==d?void 0:d.notifyUnmount()}},[]),d}(i,f,Io(Io({},c),e),n),function(e,t,n,r){var o,a=t.layoutId,i=t.layout,s=t.drag,l=t.dragConstraints,c=t.layoutScroll,u=ne.useContext(la);r&&n&&!(null==n?void 0:n.projection)&&(n.projection=new r(e,n.getLatestValues(),null===(o=n.parent)||void 0===o?void 0:o.projection),n.projection.setOptions({layoutId:a,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}))}(p,e,d.visualElement,r||Do.projectionNodeConstructor),u=function(e,t,n){var r=[],o=ne.useContext(Fo);if(!t)return null;"production"!==Mo&&n&&o.strict&&Bo(!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 a=0;a<zo;a++){var i=$o[a],s=Do[i],l=s.Component;(0,s.isEnabled)(e)&&l&&r.push(ne.createElement(l,Io({key:i},e,{visualElement:t})))}return r}(e,d.visualElement,t)),ne.createElement(ca,{visualElement:d.visualElement,props:Io(Io({},c),e)},u,ne.createElement(Uo.Provider,{value:d},o(i,e,p,function(e,t,n){return ne.useCallback(function(r){var o;r&&(null===(o=e.mount)||void 0===o||o.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Xo(n)&&(n.current=r))},[t])}(f,d.visualElement,s),f,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 da=["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 pa(e){return"string"==typeof e&&!e.includes("-")&&!!(da.indexOf(e)>-1||/[A-Z]/.test(e))}var fa={},ma=["","X","Y","Z"],ha=["transformPerspective","x","y","z"];function va(e,t){return ha.indexOf(e)-ha.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return ma.forEach(function(t){return ha.push(e+t)})});var ya=new Set(ha);function ga(e){return ya.has(e)}var ba=new Set(["originX","originY","originZ"]);function Ea(e){return ba.has(e)}function xa(e,t){var n=t.layout,r=t.layoutId;return ga(e)||Ea(e)||(n||void 0!==r)&&(!!fa[e]||"opacity"===e)}var wa=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},ka={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Sa(e){return e.startsWith("--")}var Ca=function(e,t){return t&&"number"==typeof e?t.transform(e):e};const _a=(e,t)=>n=>Math.max(Math.min(n,t),e),Oa=e=>e%1?Number(e.toFixed(5)):e,Na=/(-)?([\d]*\.?[\d])+/g,Aa=/(#[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,Ra=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Ia(e){return"string"==typeof e}const La={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Ta=Object.assign(Object.assign({},La),{transform:_a(0,1)}),Pa=Object.assign(Object.assign({},La),{default:1}),Ma=e=>({test:t=>Ia(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ja=Ma("deg"),Da=Ma("%"),Va=Ma("px"),Ba=Ma("vh"),Fa=Ma("vw"),$a=Object.assign(Object.assign({},Da),{parse:e=>Da.parse(e)/100,transform:e=>Da.transform(100*e)}),za=(e,t)=>n=>Boolean(Ia(n)&&Ra.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Wa=(e,t,n)=>r=>{if(!Ia(r))return r;const[o,a,i,s]=r.match(Na);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},Ua={test:za("hsl","hue"),parse:Wa("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Da.transform(Oa(t))+", "+Da.transform(Oa(n))+", "+Oa(Ta.transform(r))+")"},Ha=_a(0,255),qa=Object.assign(Object.assign({},La),{transform:e=>Math.round(Ha(e))}),Ya={test:za("rgb","red"),parse:Wa("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+qa.transform(e)+", "+qa.transform(t)+", "+qa.transform(n)+", "+Oa(Ta.transform(r))+")"},Za={test:za("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:Ya.transform},Ga={test:e=>Ya.test(e)||Za.test(e)||Ua.test(e),parse:e=>Ya.test(e)?Ya.parse(e):Ua.test(e)?Ua.parse(e):Za.parse(e),transform:e=>Ia(e)?e:e.hasOwnProperty("red")?Ya.transform(e):Ua.transform(e)};function Xa(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(Aa);r&&(n=r.length,e=e.replace(Aa,"${c}"),t.push(...r.map(Ga.parse)));const o=e.match(Na);return o&&(e=e.replace(Na,"${n}"),t.push(...o.map(La.parse))),{values:t,numColors:n,tokenised:e}}function Ka(e){return Xa(e).values}function Ja(e){const{values:t,numColors:n,tokenised:r}=Xa(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?"${c}":"${n}",r<n?Ga.transform(e[r]):Oa(e[r]));return t}}const Qa=e=>"number"==typeof e?0:e,ei={test:function(e){var t,n,r,o;return isNaN(e)&&Ia(e)&&(null!==(n=null===(t=e.match(Na))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(Aa))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:Ka,createTransformer:Ja,getAnimatableNone:function(e){const t=Ka(e);return Ja(e)(t.map(Qa))}},ti=new Set(["brightness","contrast","saturate","opacity"]);function ni(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Na)||[];if(!r)return e;const o=n.replace(r,"");let a=ti.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+o+")"}const ri=/([a-z-]*)\(.*?\)/g,oi=Object.assign(Object.assign({},ei),{getAnimatableNone:e=>{const t=e.match(ri);return t?t.map(ni).join(" "):e}});var ai=Io(Io({},La),{transform:Math.round}),ii={borderWidth:Va,borderTopWidth:Va,borderRightWidth:Va,borderBottomWidth:Va,borderLeftWidth:Va,borderRadius:Va,radius:Va,borderTopLeftRadius:Va,borderTopRightRadius:Va,borderBottomRightRadius:Va,borderBottomLeftRadius:Va,width:Va,maxWidth:Va,height:Va,maxHeight:Va,size:Va,top:Va,right:Va,bottom:Va,left:Va,padding:Va,paddingTop:Va,paddingRight:Va,paddingBottom:Va,paddingLeft:Va,margin:Va,marginTop:Va,marginRight:Va,marginBottom:Va,marginLeft:Va,rotate:ja,rotateX:ja,rotateY:ja,rotateZ:ja,scale:Pa,scaleX:Pa,scaleY:Pa,scaleZ:Pa,skew:ja,skewX:ja,skewY:ja,distance:Va,translateX:Va,translateY:Va,translateZ:Va,x:Va,y:Va,z:Va,perspective:Va,transformPerspective:Va,opacity:Ta,originX:$a,originY:$a,originZ:Va,zIndex:ai,fillOpacity:Ta,strokeOpacity:Ta,numOctaves:ai};function si(e,t,n,r){var o,a=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(Sa(f))i[f]=m;else{var h=ii[f],v=Ca(m,h);if(ga(f)){if(u=!0,s[f]=v,l.push(f),!p)continue;m!==(null!==(o=h.default)&&void 0!==o?o:0)&&(p=!1)}else Ea(f)?(c[f]=v,d=!0):a[f]=v}}u?a.transform=function(e,t,n,r){var o=e.transform,a=e.transformKeys,i=t.enableHardwareAcceleration,s=void 0===i||i,l=t.allowTransformNone,c=void 0===l||l,u="";a.sort(va);for(var d=!1,p=a.length,f=0;f<p;f++){var m=a[f];u+="".concat(ka[m]||m,"(").concat(o[m],") "),"z"===m&&(d=!0)}return!d&&s?u+="translateZ(0)":u=u.trim(),r?u=r(o,n?"":u):c&&n&&(u="none"),u}(e,n,p,r):r?a.transform=r({},""):!t.transform&&a.transform&&(a.transform="none"),d&&(a.transformOrigin=function(e){var t=e.originX,n=e.originY,r=void 0===n?"50%":n,o=e.originZ,a=void 0===o?0:o;return"".concat(void 0===t?"50%":t," ").concat(r," ").concat(a)}(c))}function li(e,t,n){for(var r in t)wa(t[r])||xa(r,n)||(e[r]=t[r])}function ci(e,t,n){var r={},o=function(e,t,n){var r={};return li(r,e.style||{},e),Object.assign(r,function(e,t,n){var r=e.transformTemplate;return ne.useMemo(function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};si(e,t,{enableHardwareAcceleration:!n},r);var o=e.style;return Io(Io({},e.vars),o)},[t])}(e,t,n)),e.transformValues&&(r=e.transformValues(r)),r}(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=o,r}var ui=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 di(e){return ui.has(e)}var pi,fi=function(e){return!di(e)};try{(pi=require("@emotion/is-prop-valid").default)&&(fi=function(e){return e.startsWith("on")?!di(e):pi(e)})}catch(e){}function mi(e,t,n){return"string"==typeof e?e:Va.transform(t+n*e)}var hi={offset:"stroke-dashoffset",array:"stroke-dasharray"},yi={offset:"strokeDashoffset",array:"strokeDasharray"};function gi(e,t,n,r){var o=t.attrX,a=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;si(e,Lo(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),e.attrs=e.style,e.style={};var f=e.attrs,m=e.style,h=e.dimensions;f.transform&&(h&&(m.transform=f.transform),delete f.transform),h&&(void 0!==i||void 0!==s||m.transform)&&(m.transformOrigin=function(e,t,n){var r=mi(t,e.x,e.width),o=mi(n,e.y,e.height);return"".concat(r," ").concat(o)}(h,void 0!==i?i:.5,void 0!==s?s:.5)),void 0!==o&&(f.x=o),void 0!==a&&(f.y=a),void 0!==l&&function(e,t,n,r,o){void 0===n&&(n=1),void 0===r&&(r=0),void 0===o&&(o=!0),e.pathLength=1;var a=o?hi:yi;e[a.offset]=Va.transform(-r);var i=Va.transform(t),s=Va.transform(n);e[a.array]="".concat(i," ").concat(s)}(f,l,u,p,!1)}var bi=function(){return Io(Io({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function Ei(e,t){var n=ne.useMemo(function(){var n=bi();return gi(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),Io(Io({},n.attrs),{style:Io({},n.style)})},[t]);if(e.style){var r={};li(r,e.style,e),n.style=Io(Io({},r),n.style)}return n}function xi(e){return void 0===e&&(e=!1),function(t,n,r,o,a,i){var s=a.latestValues,l=(pa(t)?Ei:ci)(n,s,i),c=function(e,t,n){var r={};for(var o in e)(fi(o)||!0===n&&di(o)||!t&&!di(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),u=Io(Io(Io({},c),l),{ref:o});return r&&(u["data-projection-id"]=r),ne.createElement(t,u)}}var wi=/([a-z])([A-Z])/g,ki=function(e){return e.replace(wi,"$1-$2").toLowerCase()};function Si(e,t,n,r){var o=t.style,a=t.vars;for(var i in Object.assign(e.style,o,r&&r.getProjectionStyles(n)),a)e.style.setProperty(i,a[i])}var Ci=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function _i(e,t,n,r){for(var o in Si(e,t,void 0,r),t.attrs)e.setAttribute(Ci.has(o)?o:ki(o),t.attrs[o])}function Oi(e){var t=e.style,n={};for(var r in t)(wa(t[r])||xa(r,e))&&(n[r]=t[r]);return n}function Ni(e){var t=Oi(e);for(var n in e)wa(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function Ai(e){return"object"==typeof e&&"function"==typeof e.start}var Ri=function(e){return Array.isArray(e)},Ii=function(e){return Ri(e)?e[e.length-1]||0:e};function Li(e){var t=wa(e)?e.get():e;return function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)}(t)?t.toValue():t}function Ti(e,t,n,r){var o=e.createRenderState,a=e.onMount,i={latestValues:Mi(t,n,r,e.scrapeMotionValuesFromProps),renderState:o()};return a&&(i.mount=function(e){return a(t,e,i)}),i}var Pi=function(e){return function(t,n){var r=ne.useContext(Uo),o=ne.useContext(Ho);return n?Ti(e,t,r,o):oa(function(){return Ti(e,t,r,o)})}};function Mi(e,t,n,r){var o={},a=!1===(null==n?void 0:n.initial),i=r(e);for(var s in i)o[s]=Li(i[s]);var l=e.initial,c=e.animate,u=ta(e),d=na(e);t&&d&&!u&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=c||(c=t.animate));var p=a||!1===l,f=p?c:l;return f&&"boolean"!=typeof f&&!Ai(f)&&(Array.isArray(f)?f:[f]).forEach(function(t){var n=Qo(e,t);if(n){var r=n.transitionEnd,a=Lo(n,["transitionEnd","transition"]);for(var i in a){var s=a[i];Array.isArray(s)&&(s=s[p?s.length-1:0]),null!==s&&(o[i]=s)}for(var i in r)o[i]=r[i]}}),o}var ji,Di={useVisualState:Pi({scrapeMotionValuesFromProps:Ni,createRenderState:bi,onMount:function(e,t,n){var r=n.renderState,o=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}}gi(r,o,{enableHardwareAcceleration:!1},e.transformTemplate),_i(t,r)}})},Vi={useVisualState:Pi({scrapeMotionValuesFromProps:Oi,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function Bi(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Fi(e,t,n,r){ne.useEffect(function(){var o=e.current;if(n&&o)return Bi(o,t,n,r)},[e,t,n,r])}function $i(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function zi(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"}(ji||(ji={}));var Wi={pageX:0,pageY:0};function Ui(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Wi;return{x:n[t+"X"],y:n[t+"Y"]}}function Hi(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function qi(e,t){return void 0===t&&(t="page"),{point:zi(e)?Ui(e,t):Hi(e,t)}}var Yi=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,qi(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},Zi={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Gi={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Xi(e){return qo&&null===window.onpointerdown?e:qo&&null===window.ontouchstart?Gi[e]:qo&&null===window.onmousedown?Zi[e]:e}function Ki(e,t,n,r){return Bi(e,Xi(t),Yi(n,"pointerdown"===t),r)}function Ji(e,t,n,r){return Fi(e,Xi(t),n&&Yi(n,"pointerdown"===t),r)}function Qi(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var es=Qi("dragHorizontal"),ts=Qi("dragVertical");function ns(e){var t=!1;if("y"===e)t=ts();else if("x"===e)t=es();else{var n=es(),r=ts();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function rs(){var e=ns(!0);return!e||(e(),!1)}function os(e,t,n){return function(r,o){var a;$i(r)&&!rs()&&(null===(a=e.animationState)||void 0===a||a.setActive(ji.Hover,t),null==n||n(r,o))}}var as=function(e,t){return!!t&&(e===t||as(e,t.parentElement))};function is(e){return ne.useEffect(function(){return function(){return e()}},[])}const ss=(e,t,n)=>Math.min(Math.max(n,e),t);function ls(e,t){return e*Math.sqrt(1-t*t)}const cs=["duration","bounce"],us=["stiffness","damping","mass"];function ds(e,t){return t.some(t=>void 0!==e[t])}function ps(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,a=Lo(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(!ds(e,us)&&ds(e,cs)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,a;Vo(e<=1e4,"Spring duration must be 10 seconds or less");let i=1-t;i=ss(.05,1,i),e=ss(.01,10,e/1e3),i<1?(o=t=>{const r=t*i,o=r*e;return.001-(r-n)/ls(t,i)*Math.exp(-o)},a=t=>{const r=t*i*e,a=r*n+n,s=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=ls(Math.pow(t,2),i);return(.001-o(t)>0?-1:1)*((a-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,a=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}(o,a,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}(a),f=fs,m=fs;function h(){const e=u?-u/1e3:0,r=n-t,a=l/(2*Math.sqrt(s*c)),i=Math.sqrt(s/c)/1e3;if(void 0===o&&(o=Math.min(Math.abs(n-t)/100,.4)),a<1){const t=ls(i,a);f=o=>{const s=Math.exp(-a*i*o);return n-s*((e+a*i*r)/t*Math.sin(t*o)+r*Math.cos(t*o))},m=n=>{const o=Math.exp(-a*i*n);return a*i*o*(Math.sin(t*n)*(e+a*i*r)/t+r*Math.cos(t*n))-o*(Math.cos(t*n)*(e+a*i*r)-t*r*Math.sin(t*n))}}else if(1===a)f=t=>n-Math.exp(-i*t)*(r+(e+i*r)*t);else{const t=i*Math.sqrt(a*a-1);f=o=>{const s=Math.exp(-a*i*o),l=Math.min(t*o,300);return n-s*((e+a*i*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return h(),{next:e=>{const t=f(e);if(p)i.done=e>=d;else{const a=1e3*m(e),s=Math.abs(a)<=r,l=Math.abs(n-t)<=o;i.done=s&&l}return i.value=i.done?n:t,i},flipTarget:()=>{u=-u,[t,n]=[n,t],h()}}}ps.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const fs=e=>0,ms=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},hs=(e,t,n)=>-n*e+n*t+e;function vs(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 ys({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,a=0,i=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=vs(s,r,e+1/3),a=vs(s,r,e),i=vs(s,r,e-1/3)}else o=a=i=n;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*i),alpha:r}}const gs=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},bs=[Za,Ya,Ua],Es=e=>bs.find(t=>t.test(e)),xs=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,ws=(e,t)=>{let n=Es(e),r=Es(t);Bo(!!n,xs(e)),Bo(!!r,xs(t));let o=n.parse(e),a=r.parse(t);n===Ua&&(o=ys(o),n=Ya),r===Ua&&(a=ys(a),r=Ya);const i=Object.assign({},o);return e=>{for(const t in i)"alpha"!==t&&(i[t]=gs(o[t],a[t],e));return i.alpha=hs(o.alpha,a.alpha,e),n.transform(i)}},ks=e=>"number"==typeof e,Ss=(e,t)=>n=>t(e(n)),Cs=(...e)=>e.reduce(Ss);function _s(e,t){return ks(e)?n=>hs(e,t,n):Ga.test(e)?ws(e,t):Rs(e,t)}const Os=(e,t)=>{const n=[...e],r=n.length,o=e.map((e,n)=>_s(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},Ns=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=_s(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function As(e){const t=ei.parse(e),n=t.length;let r=0,o=0,a=0;for(let e=0;e<n;e++)r||"number"==typeof t[e]?r++:void 0!==t[e].hue?a++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:a}}const Rs=(e,t)=>{const n=ei.createTransformer(t),r=As(e),o=As(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?Cs(Os(r.parsed,o.parsed),n):(Vo(!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}`)},Is=(e,t)=>n=>hs(e,t,n);function Ls(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const a=e.length;Bo(a===t.length,"Both input and output ranges must be the same length"),Bo(!r||!Array.isArray(r)||r.length===a-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[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const i=function(e,t,n){const r=[],o=n||function(e){return"number"==typeof e?Is:"string"==typeof e?Ga.test(e)?ws:Rs:Array.isArray(e)?Os:"object"==typeof e?Ns:void 0}(e[0]),a=e.length-1;for(let n=0;n<a;n++){let a=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]:t;a=Cs(e,a)}r.push(a)}return r}(t,r,o),s=2===a?function([e,t],[n]){return r=>n(ms(e,t,r))}(e,i):function(e,t){const n=e.length,r=n-1;return o=>{let a=0,i=!1;if(o<=e[0]?i=!0:o>=e[r]&&(a=r-1,i=!0),!i){let t=1;for(;t<n&&!(e[t]>o||t===r);t++);a=t-1}const s=ms(e[a],e[a+1],o);return t[a](s)}}(e,i);return n?t=>s(ss(e[0],e[a-1],t)):s}const Ts=e=>t=>1-e(1-t),Ps=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ms=e=>t=>t*t*((e+1)*t-e),js=e=>e,Ds=e=>Math.pow(e,2),Vs=Ts(Ds),Bs=Ps(Ds),Fs=e=>1-Math.sin(Math.acos(e)),$s=Ts(Fs),zs=Ps($s),Ws=Ms(1.525),Us=Ts(Ws),Hs=Ps(Ws),qs=(e=>{const t=Ms(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(),Ys=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},Zs=Ts(Ys);function Gs(e,t){return e.map(()=>t||Bs).splice(0,e.length-1)}function Xs({from:e=0,to:t=1,ease:n,offset:r,duration:o=300}){const a={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),o);function l(){return Ls(s,i,{ease:Array.isArray(n)?n:Gs(i,n)})}let c=l();return{next:e=>(a.value=c(e),a.done=e>=o,a),flipTarget:()=>{i.reverse(),c=l()}}}const Ks={keyframes:Xs,spring:ps,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:a}){const i={done:!1,value:t};let s=n*e;const l=t+s,c=void 0===a?l:a(l);return c!==l&&(s=c-t),{next:e=>{const t=-s*Math.exp(-e/r);return i.done=!(t>o||t<-o),i.value=i.done?c:c+t,i},flipTarget:()=>{}}}},Js="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),Qs="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Js()),16.666666666666668);let el=!0,tl=!1,nl=!1;const rl={delta:0,timestamp:0},ol=["read","update","preRender","render","postRender"],al=ol.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{const l=s&&o,c=l?t:n;return a&&i.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:e=>{if(o)a=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(e),i.has(r)&&(s.schedule(r),tl=!0)}o=!1,a&&(a=!1,s.process(e))}}};return s}(),e),{}),il=ol.reduce((e,t)=>{const n=al[t];return e[t]=(e,t=!1,r=!1)=>(tl||ul(),n.schedule(e,t,r)),e},{}),sl=ol.reduce((e,t)=>(e[t]=al[t].cancel,e),{});ol.reduce((e,t)=>(e[t]=()=>al[t].process(rl),e),{});const ll=e=>al[e].process(rl),cl=e=>{tl=!1,rl.delta=el?16.666666666666668:Math.max(Math.min(e-rl.timestamp,40),1),rl.timestamp=e,nl=!0,ol.forEach(ll),nl=!1,tl&&(el=!1,Qs(cl))},ul=()=>{tl=!0,el=!0,nl||Qs(cl)};function dl(e,t,n=0){return e-t-n}const pl=e=>{const t=({delta:t})=>e(t);return{start:()=>il.update(t,!0),stop:()=>sl.update(t)}};function fl(e){var t,n,{from:r,autoplay:o=!0,driver:a=pl,elapsed:i=0,repeat:s=0,repeatType:l="loop",repeatDelay:c=0,onPlay:u,onStop:d,onComplete:p,onRepeat:f,onUpdate:m}=e,h=Lo(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let v,y,g,{to:b}=h,E=0,x=h.duration,w=!1,k=!0;const S=function(e){if(Array.isArray(e.to))return Xs;if(Ks[e.type])return Ks[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Xs:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?ps:Xs}(h);(null===(n=(t=S).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(g=Ls([0,100],[r,b],{clamp:!1}),r=0,b=100);const C=S(Object.assign(Object.assign({},h),{from:r,to:b}));return o&&(null==u||u(),v=a(function(e){if(k||(e=-e),i+=e,!w){const e=C.next(Math.max(0,i));y=e.value,g&&(y=g(y)),w=k?e.done:i<=0}null==m||m(y),w&&(0===E&&(null!=x||(x=i)),E<s?function(e,t,n,r){return r?e>=t+n:e<=-n}(i,x,c,k)&&(E++,"reverse"===l?(k=E%2==0,i=function(e,t,n=0,r=!0){return r?dl(t+-e,t,n):t-(e-t)+n}(i,x,c,k)):(i=dl(i,x,c),"mirror"===l&&C.flipTarget()),w=!1,f&&f()):(v.stop(),p&&p()))}),v.start()),{stop:()=>{null==d||d(),v.stop()}}}function ml(e,t){return t?e*(1e3/t):0}const hl=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),vl=e=>hl(e)&&e.hasOwnProperty("z"),yl=(e,t)=>Math.abs(e-t);function gl(e,t){if(ks(e)&&ks(t))return yl(e,t);if(hl(e)&&hl(t)){const n=yl(e.x,t.x),r=yl(e.y,t.y),o=vl(e)&&vl(t)?yl(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}const bl=(e,t)=>1-3*t+3*e,El=(e,t)=>3*t-6*e,xl=e=>3*e,wl=(e,t,n)=>((bl(t,n)*e+El(t,n))*e+xl(t))*e,kl=(e,t,n)=>3*bl(t,n)*e*e+2*El(t,n)*e+xl(t);var Sl=new Set;function Cl(e,t,n){e||Sl.has(t)||(console.warn(t),n&&console.warn(n),Sl.add(t))}var _l=new WeakMap,Ol=new WeakMap,Nl=function(e){var t;null===(t=_l.get(e.target))||void 0===t||t(e)},Al=function(e){e.forEach(Nl)},Rl={some:0,all:1};function Il(e,t,n,r){var o=r.root,a=r.margin,i=r.amount,s=void 0===i?"some":i,l=r.once;ne.useEffect(function(){if(e){var r={root:null==o?void 0:o.current,rootMargin:a,threshold:"number"==typeof s?s:Rl[s]};return function(e,r,o){var a=function(e){var t=e.root,n=Lo(e,["root"]),r=t||document;Ol.has(r)||Ol.set(r,{});var o=Ol.get(r),a=JSON.stringify(n);return o[a]||(o[a]=new IntersectionObserver(Al,Io({root:t},n))),o[a]}(r);return _l.set(e,function(e){var r,o=e.isIntersecting;if(t.isInView!==o&&(t.isInView=o,!l||o||!t.hasEnteredView)){o&&(t.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(ji.InView,o);var a=n.getProps(),i=o?a.onViewportEnter:a.onViewportLeave;null==i||i(e)}}),a.observe(e),function(){_l.delete(e),a.unobserve(e)}}(n.getInstance(),r)}},[e,o,a,s])}function Ll(e,t,n,r){var o=r.fallback,a=void 0===o||o;ne.useEffect(function(){e&&a&&("production"!==Mo&&Cl(!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(ji.InView,!0)}))},[e])}var Tl=function(e){return function(t){return e(t),null}},Pl={inView:Tl(function(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,o=e.onViewportLeave,a=e.viewport,i=void 0===a?{}:a,s=ne.useRef({hasEnteredView:!1,isInView:!1}),l=Boolean(n||r||o);i.once&&s.current.hasEnteredView&&(l=!1),("undefined"==typeof IntersectionObserver?Ll:Il)(l,s.current,t,i)}),tap:Tl(function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,o=e.visualElement,a=t||n||r||e.whileTap,i=ne.useRef(!1),s=ne.useRef(null),l={passive:!(n||t||r||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=o.animationState)||void 0===e||e.setActive(ji.Tap,!1),!rs()}function d(e,n){u()&&(as(o.getInstance(),e.target)?null==t||t(e,n):null==r||r(e,n))}function p(e,t){u()&&(null==r||r(e,t))}function f(e,t){var r;c(),i.current||(i.current=!0,s.current=Cs(Ki(window,"pointerup",d,l),Ki(window,"pointercancel",p,l)),null===(r=o.animationState)||void 0===r||r.setActive(ji.Tap,!0),null==n||n(e,t))}Ji(o,"pointerdown",a?f:void 0,l),is(c)}),focus:Tl(function(e){var t=e.whileFocus,n=e.visualElement;Fi(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(ji.Focus,!0)}:void 0),Fi(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(ji.Focus,!1)}:void 0)}),hover:Tl(function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,o=e.visualElement;Ji(o,"pointerenter",t||r?os(o,!0,t):void 0,{passive:!t}),Ji(o,"pointerleave",n||r?os(o,!1,n):void 0,{passive:!n})})},Ml=0,jl=function(){return Ml++},Dl=function(){return oa(jl)};function Vl(){var e=ne.useContext(Ho);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,o=Dl();return ne.useEffect(function(){return r(o)},[]),!t&&n?[!1,function(){return null==n?void 0:n(o)}]:[!0]}function Bl(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 Fl=function(e){return 1e3*e},$l={linear:js,easeIn:Ds,easeInOut:Bs,easeOut:Vs,circIn:Fs,circInOut:zs,circOut:$s,backIn:Ws,backInOut:Hs,backOut:Us,anticipate:qs,bounceIn:Zs,bounceInOut:e=>e<.5?.5*(1-Ys(1-2*e)):.5*Ys(2*e-1)+.5,bounceOut:Ys},zl=function(e){if(Array.isArray(e)){Bo(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=To(e,4);return function(e,t,n,r){if(e===t&&n===r)return js;const o=new Float32Array(11);for(let t=0;t<11;++t)o[t]=wl(.1*t,e,n);return a=>0===a||1===a?a:wl(function(t){let r=0,a=1;for(;10!==a&&o[a]<=t;++a)r+=.1;--a;const i=r+(t-o[a])/(o[a+1]-o[a])*.1,s=kl(i,e,n);return s>=.001?function(e,t,n,r){for(let o=0;o<8;++o){const o=kl(t,n,r);if(0===o)return t;t-=(wl(t,n,r)-e)/o}return t}(t,i,e,n):0===s?i:function(e,t,n,r,o){let a,i,s=0;do{i=t+(n-t)/2,a=wl(i,r,o)-e,a>0?n=i:t=i}while(Math.abs(a)>1e-7&&++s<10);return i}(t,r,r+.1,e,n)}(a),t,r)}(t[0],t[1],t[2],t[3])}return"string"==typeof e?(Bo(void 0!==$l[e],"Invalid easing type '".concat(e,"'")),$l[e]):e},Wl=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!ei.test(t)||t.startsWith("url(")))},Ul=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Hl=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},ql=function(){return{type:"keyframes",ease:"linear",duration:.3}},Yl=function(e){return{type:"keyframes",duration:.8,values:e}},Zl={x:Ul,y:Ul,z:Ul,rotate:Ul,rotateX:Ul,rotateY:Ul,rotateZ:Ul,scaleX:Hl,scaleY:Hl,scale:Hl,opacity:ql,backgroundColor:ql,color:ql,default:Hl},Gl=Io(Io({},ii),{color:Ga,backgroundColor:Ga,outlineColor:Ga,fill:Ga,stroke:Ga,borderColor:Ga,borderTopColor:Ga,borderRightColor:Ga,borderBottomColor:Ga,borderLeftColor:Ga,filter:oi,WebkitFilter:oi}),Xl=function(e){return Gl[e]};function Kl(e,t){var n,r=Xl(e);return r!==oi&&(r=ei),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var Jl=!1;function Ql(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function ec(e){return"number"==typeof e?0:Kl("",e)}function tc(e,t){return e[t]||e.default||e}function nc(e,t,n,r){return void 0===r&&(r={}),t.start(function(o){var a,i,s=function(e,t,n,r,o){var a,i=tc(r,e),s=null!==(a=i.from)&&void 0!==a?a:t.get(),l=Wl(e,n);"none"===s&&l&&"string"==typeof n?s=Kl(e,n):Ql(s)&&"string"==typeof n?s=ec(n):!Array.isArray(n)&&Ql(n)&&"string"==typeof s&&(n=ec(s));var c=Wl(e,s);return Vo(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:o,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:o=.8,timeConstant:a=750,bounceStiffness:i=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:d,onComplete:p,onStop:f}){let m;function h(e){return void 0!==n&&e<n||void 0!==r&&e>r}function v(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=fl(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:p,onStop:f}))}function g(e){y(Object.assign({type:"spring",stiffness:i,damping:s,restDelta:l},e))}if(h(e))g({from:e,velocity:t,to:v(e)});else{let r=o*t+e;void 0!==c&&(r=c(r));const i=v(r),s=i===n?-1:1;let u,d;const p=e=>{u=d,d=e,t=ml(e-u,rl.delta),(1===s&&e>i||-1===s&&e<i)&&g({from:e,to:i,velocity:t})};y({type:"decay",from:e,velocity:t,timeConstant:a,power:o,restDelta:l,modifyTarget:c,onUpdate:h(r)?p:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(Io(Io({},r),i)):fl(Io(Io({},function(e,t,n){var r,o,a,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=Po([],To(e.to),!1),e.to[0]=e.from)}(t),function(e){var t=Lo(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=Io(Io({},e),(o=n,i=Ri(a=t.to)?Yl:Zl[o]||Zl.default,Io({to:a},i(a))))),Io(Io({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,o=e.flip,a=e.loop,i=Lo(e,["ease","times","yoyo","flip","loop"]),s=Io({},i);return n&&(s.offset=n),i.duration&&(s.duration=Fl(i.duration)),i.repeatDelay&&(s.repeatDelay=Fl(i.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(zl):zl(t)),"tween"===i.type&&(s.type="keyframes"),(r||a||o)&&(Vo(!Jl,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),Jl=!0,r?s.repeatType="reverse":a?s.repeatType="loop":o&&(s.repeatType="mirror"),s.repeat=a||r||o||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,a=Ii(n);return t.set(a),o(),null===(e=null==i?void 0:i.onUpdate)||void 0===e||e.call(i,a),null===(r=null==i?void 0:i.onComplete)||void 0===r||r.call(i),{stop:function(){}}}}(e,t,n,r,o),l=function(e,t){var n,r;return null!==(r=null!==(n=(tc(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),c=function(){return i=s()};return l?a=window.setTimeout(c,Fl(l)):c(),function(){clearTimeout(a),null==i||i.stop()}})}var rc=function(e){return/^\-?\d*\.?\d+$/.test(e)},oc=function(e){return/^0[^.\s]+$/.test(e)};const ac="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),ic="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(ac()),16.666666666666668);let sc=!0,lc=!1,cc=!1;const uc={delta:0,timestamp:0},dc=["read","update","preRender","render","postRender"],pc=dc.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{const l=s&&o,c=l?t:n;return a&&i.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:l=>{if(o)a=!0;else{if(o=!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())}o=!1,a&&(a=!1,s.process(l))}}};return s}(()=>lc=!0),e),{}),fc=dc.reduce((e,t)=>{const n=pc[t];return e[t]=(e,t=!1,r=!1)=>(lc||gc(),n.schedule(e,t,r)),e},{}),mc=dc.reduce((e,t)=>(e[t]=pc[t].cancel,e),{}),hc=dc.reduce((e,t)=>(e[t]=()=>pc[t].process(uc),e),{}),vc=e=>pc[e].process(uc),yc=e=>{lc=!1,uc.delta=sc?16.666666666666668:Math.max(Math.min(e-uc.timestamp,40),1),uc.timestamp=e,cc=!0,dc.forEach(vc),cc=!1,lc&&(sc=!1,ic(yc))},gc=()=>{lc=!0,sc=!0,cc||ic(yc)},bc=()=>uc;function Ec(e,t){-1===e.indexOf(t)&&e.push(t)}function xc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var wc=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Ec(this.subscriptions,e),function(){return xc(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 o=0;o<r;o++){var a=this.subscriptions[o];a&&a(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),kc=function(){function e(e){var t=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new wc,this.velocityUpdateSubscribers=new wc,this.renderSubscribers=new wc,this.canTrackVelocity=!1,this.updateAndNotify=function(e,n){void 0===n&&(n=!0),t.prev=t.current,t.current=e;var r=bc(),o=r.timestamp;t.lastUpdated!==o&&(t.timeDelta=r.delta,t.lastUpdated=o,fc.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 fc.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?ml(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 Sc(e){return new kc(e)}var Cc=function(e){return function(t){return t.test(e)}},_c=[La,Va,Da,ja,Fa,Ba,{test:function(e){return"auto"===e},parse:function(e){return e}}],Oc=function(e){return _c.find(Cc(e))},Nc=Po(Po([],To(_c),!1),[Ga,ei],!1),Ac=function(e){return Nc.find(Cc(e))};function Rc(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Sc(n))}function Ic(e,t){if(t)return(t[e]||t.default||t).from}function Lc(e,t,n){var r;void 0===n&&(n={});var o=ea(e,t,n.custom),a=(o||{}).transition,i=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(i=n.transitionOverride);var s=o?function(){return Tc(e,o,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 o=i.delayChildren;return function(e,t,n,r,o,a){void 0===n&&(n=0),void 0===r&&(r=0),void 0===o&&(o=1);var i=[],s=(e.variantChildren.size-1)*r,l=1===o?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(Pc).forEach(function(e,r){i.push(Lc(e,t,Io(Io({},a),{delay:n+l(r)})).then(function(){return e.notifyAnimationComplete(t)}))}),Promise.all(i)}(e,t,(void 0===o?0:o)+r,i.staggerChildren,i.staggerDirection,n)}:function(){return Promise.resolve()},c=i.when;if(c){var u=To("beforeChildren"===c?[s,l]:[l,s],2),d=u[1];return(0,u[0])().then(d)}return Promise.all([s(),l(n.delay)])}function Tc(e,t,n){var r,o=void 0===n?{}:n,a=o.delay,i=void 0===a?0:a,s=o.transitionOverride,l=o.type,c=e.makeTargetAnimatable(t),u=c.transition,d=void 0===u?e.getDefaultTransition():u,p=c.transitionEnd,f=Lo(c,["transition","transitionEnd"]);s&&(d=s);var m=[],h=l&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[l]);for(var v in f){var y=e.getValue(v),g=f[v];if(!(!y||void 0===g||h&&Mc(h,v))){var b=Io({delay:i},d);e.shouldReduceMotion&&ga(v)&&(b=Io(Io({},b),{type:!1,delay:0}));var E=nc(v,y,g,b);m.push(E)}}return Promise.all(m).then(function(){p&&function(e,t){var n=ea(e,t),r=n?e.makeTargetAnimatable(n,!1):{},o=r.transitionEnd,a=void 0===o?{}:o,i=Lo(r,["transitionEnd","transition"]);for(var s in i=Io(Io({},i),a))Rc(e,s,Ii(i[s]))}(e,p)})}function Pc(e,t){return e.sortNodePosition(t)}function Mc(e,t){var n=e.needsAnimating,r=e.protectedKeys.hasOwnProperty(t)&&!0!==n[t];return n[t]=!1,r}var jc=[ji.Animate,ji.InView,ji.Focus,ji.Hover,ji.Tap,ji.Drag,ji.Exit],Dc=Po([],To(jc),!1).reverse(),Vc=jc.length;function Bc(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Fc={animation:Tl(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 o=t.map(function(t){return Lc(e,t,n)});r=Promise.all(o)}else if("string"==typeof t)r=Lc(e,t,n);else{var a="function"==typeof t?ea(e,t,n.custom):t;r=Tc(e,a,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}(e,t.animation,t.options)}))}}(e),r=((t={})[ji.Animate]=Bc(!0),t[ji.InView]=Bc(),t[ji.Hover]=Bc(),t[ji.Tap]=Bc(),t[ji.Drag]=Bc(),t[ji.Focus]=Bc(),t[ji.Exit]=Bc(),t),o={},a=!0,i=function(t,n){var r=ea(e,n);if(r){var o=r.transitionEnd,a=Lo(r,["transition","transitionEnd"]);t=Io(Io(Io({},t),a),o)}return t};function s(t,s){for(var l,c=e.getProps(),u=e.getVariantContext(!0)||{},d=[],p=new Set,f={},m=Infinity,h=function(n){var o=Dc[n],h=r[o],v=null!==(l=c[o])&&void 0!==l?l:u[o],y=Jo(v),g=o===s?h.isActive:null;!1===g&&(m=n);var b=v===u[o]&&v!==c[o]&&y;if(b&&a&&e.manuallyAnimateOnMount&&(b=!1),h.protectedKeys=Io({},f),!h.isActive&&null===g||!v&&!h.prevProp||Ai(v)||"boolean"==typeof v)return"continue";var E=function(e,t){return"string"==typeof t?t!==e:!!Ko(t)&&!Bl(t,e)}(h.prevProp,v),x=E||o===s&&h.isActive&&!b&&y||n>m&&y,w=Array.isArray(v)?v:[v],k=w.reduce(i,{});!1===g&&(k={});var S=h.prevResolvedValues,C=void 0===S?{}:S,_=Io(Io({},C),k),O=function(e){x=!0,p.delete(e),h.needsAnimating[e]=!0};for(var N in _){var A=k[N],R=C[N];f.hasOwnProperty(N)||(A!==R?Ri(A)&&Ri(R)?!Bl(A,R)||E?O(N):h.protectedKeys[N]=!0:void 0!==A?O(N):p.add(N):void 0!==A&&p.has(N)?O(N):h.protectedKeys[N]=!0)}h.prevProp=v,h.prevResolvedValues=k,h.isActive&&(f=Io(Io({},f),k)),a&&e.blockInitialAnimation&&(x=!1),x&&!b&&d.push.apply(d,Po([],To(w.map(function(e){return{animation:e,options:Io({type:o},t)}})),!1))},v=0;v<Vc;v++)h(v);if(o=Io({},f),p.size){var y={};p.forEach(function(t){var n=e.getBaseTarget(t);void 0!==n&&(y[t]=n)}),d.push({animation:y})}var g=Boolean(d.length);return a&&!1===c.initial&&!e.manuallyAnimateOnMount&&(g=!1),a=!1,g?n(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==o[e]},animateChanges:s,setActive:function(t,n,o){var a;if(r[t].isActive===n)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.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(o,t);for(var l in r)r[l].protectedKeys={};return i},setAnimateFunction:function(t){n=t(e)},getState:function(){return r}}}(t)),Ai(n)&&ne.useEffect(function(){return n.subscribe(t)},[n])}),exit:Tl(function(e){var t=e.custom,n=e.visualElement,r=To(Vl(),2),o=r[0],a=r[1],i=ne.useContext(Ho);ne.useEffect(function(){var e,r;n.isPresent=o;var s=null===(e=n.animationState)||void 0===e?void 0:e.setActive(ji.Exit,!o,{custom:null!==(r=null==i?void 0:i.custom)&&void 0!==r?r:t});!o&&(null==s||s.then(a))},[o])})},$c=function(){function e(e,t,n){var r=this,o=(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=Uc(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=gl(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,a=bc().timestamp;r.history.push(Io(Io({},o),{timestamp:a}));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=zc(t,r.transformPagePoint),$i(e)&&0===e.buttons?r.handlePointerUp(e,t):fc.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,o=n.onEnd,a=n.onSessionEnd,i=Uc(zc(t,r.transformPagePoint),r.history);r.startEvent&&o&&o(e,i),a&&a(e,i)},!(zi(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var a=zc(qi(e),this.transformPagePoint),i=a.point,s=bc().timestamp;this.history=[Io(Io({},i),{timestamp:s})];var l=t.onSessionStart;l&&l(e,Uc(a,this.history)),this.removeListeners=Cs(Ki(window,"pointermove",this.handlePointerMove),Ki(window,"pointerup",this.handlePointerUp),Ki(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),mc.update(this.updatePoint)},e}();function zc(e,t){return t?{point:t(e.point)}:e}function Wc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Uc(e,t){var n=e.point;return{point:n,delta:Wc(n,qc(t)),offset:Wc(n,Hc(t)),velocity:Yc(t,.1)}}function Hc(e){return e[0]}function qc(e){return e[e.length-1]}function Yc(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=qc(e);n>=0&&!(o.timestamp-(r=e[n]).timestamp>Fl(t));)n--;if(!r)return{x:0,y:0};var a=(o.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var i={x:(o.x-r.x)/a,y:(o.y-r.y)/a};return Infinity===i.x&&(i.x=0),Infinity===i.y&&(i.y=0),i}function Zc(e){return e.max-e.min}function Gc(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),gl(e,t)<n}function Xc(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=hs(t.min,t.max,e.origin),e.scale=Zc(n)/Zc(t),(Gc(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=hs(n.min,n.max,e.origin)-e.originPoint,(Gc(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Kc(e,t,n,r){Xc(e.x,t.x,n.x,null==r?void 0:r.originX),Xc(e.y,t.y,n.y,null==r?void 0:r.originY)}function Jc(e,t,n){e.min=n.min+t.min,e.max=e.min+Zc(t)}function Qc(e,t,n){e.min=t.min-n.min,e.max=e.min+Zc(t)}function eu(e,t,n){Qc(e.x,t.x,n.x),Qc(e.y,t.y,n.y)}function tu(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 nu(e,t){var n,r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=To([o,r],2))[0],o=n[1]),{min:r,max:o}}function ru(e,t,n){return{min:ou(e,t),max:ou(e,n)}}function ou(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function au(e){return[e("x"),e("y")]}function iu(e){return{x:{min:e.left,max:e.right},y:{min:e.top,max:e.bottom}}}function su(e){return void 0===e||1===e}function lu(e){var t=e.scaleX,n=e.scaleY;return!su(e.scale)||!su(t)||!su(n)}function cu(e){return lu(e)||uu(e.x)||uu(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function uu(e){return e&&"0%"!==e}function du(e,t,n){return n+t*(e-n)}function pu(e,t,n,r,o){return void 0!==o&&(e=du(e,o,r)),du(e,n,r)+t}function fu(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=pu(e.min,t,n,r,o),e.max=pu(e.max,t,n,r,o)}function mu(e,t){var n=t.x,r=t.y;fu(e.x,n.translate,n.scale,n.originPoint),fu(e.y,r.translate,r.scale,r.originPoint)}function hu(e,t){e.min=e.min+t,e.max=e.max+t}function vu(e,t,n){var r=To(n,3),o=r[0],a=r[1],i=r[2],s=hs(e.min,e.max,void 0!==t[i]?t[i]:.5);fu(e,t[o],t[a],s,t.scale)}var yu=["x","scaleX","originX"],gu=["y","scaleY","originY"];function bu(e,t){vu(e.x,t,yu),vu(e.y,t,gu)}function Eu(e,t){return iu(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 xu=new WeakMap,wu=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,o=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new $c(e,{onSessionStart:function(e){n.stopAnimation(),o&&n.snapToCursor(qi(e,"page").point)},onStart:function(e,t){var r,o=n.getProps(),a=o.drag,i=o.onDragStart;(!a||o.dragPropagation||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=ns(a),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),au(function(e){var t,r,o=n.getAxisMotionValue(e).get()||0;if(Da.test(o)){var a=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];a&&(o=Zc(a)*(parseFloat(o)/100))}n.originPoint[e]=o}),null==i||i(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(ji.Drag,!0))},onMove:function(e,t){var r=n.getProps(),o=r.onDirectionLock,a=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==o||o(n.currentDirection)));n.updateAxis("x",t.point,i),n.updateAxis("y",t.point,i),n.visualElement.syncRender(),null==a||a(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(ji.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&ku(e,r,this.currentDirection)){var o=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,t,n){var r=t.min,o=t.max;return void 0!==r&&e<r?e=n?hs(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?hs(o,e,n.max):Math.min(e,o)),e}(a,this.constraints[e],this.elastic[e])),o.set(a)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,o=(this.visualElement.projection||{}).layout,a=this.constraints;n&&Xo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!o)&&function(e,t){var n=t.top,r=t.bottom;return{x:tu(e.x,t.left,t.right),y:tu(e.y,n,r)}}(o.actual,n),this.elastic=function(e){return void 0===e&&(e=.35),!1===e?e=0:!0===e&&(e=.35),{x:ru(e,"left","right"),y:ru(e,"top","bottom")}}(r),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&au(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}(o.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;Bo(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var o=this.visualElement.projection;if(!o||!o.layout)return!1;var a=function(e,t,n){var r=Eu(e,n),o=t.scroll;return o&&(hu(r.x,o.x),hu(r.y,o.y)),r}(r,o.root,this.visualElement.getTransformPagePoint()),i=function(e,t){return{x:nu(e.x,t.x),y:nu(e.y,t.y)}}(o.layout.actual,a);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=iu(s))}return i},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,o=n.dragMomentum,a=n.dragElastic,i=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,c=this.constraints||{},u=au(function(n){var l;if(ku(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=Io(Io({type:"inertia",velocity:o?e[n]:0,bounceStiffness:a?200:1e6,bounceDamping:a?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 nc(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;au(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;au(function(n){if(ku(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,o=t.getAxisMotionValue(n);if(r&&r.layout){var a=r.layout.actual[n];o.set(e[n]-hs(a.min,a.max,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,o=this.visualElement.projection;if(Xo(n.dragConstraints)&&o&&this.constraints){this.stopAnimation();var a={x:0,y:0};au(function(e){var n,r,o,i,s,l=t.getAxisMotionValue(e);if(l){var c=l.get();a[e]=(r=t.constraints[e],o=.5,i=Zc(n={min:c,max:c}),(s=Zc(r))>i?o=ms(r.min,r.max-i,n.min):i>s&&(o=ms(n.min,n.max-s,r.min)),ss(0,1,o))}});var i=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=i?i({},""):"none",null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout(),this.resolveConstraints(),au(function(e){if(ku(e,r,null)){var n=t.getAxisMotionValue(e),o=t.constraints[e];n.set(hs(o.min,o.max,a[e]))}})}},e.prototype.addListeners=function(){var e,t=this;xu.set(this.visualElement,this);var n=Ki(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())},o=this.visualElement.projection,a=o.addEventListener("measure",r);o&&!o.layout&&(null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout()),r();var i=Bi(window,"resize",function(){return t.scalePositionWithinConstraints()});return o.addEventListener("didUpdate",function(e){var n=e.delta;t.isDragging&&e.hasLayoutChanged&&(au(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(),a()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,o=void 0!==r&&r,a=e.dragPropagation,i=void 0!==a&&a,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 Io(Io({},e),{drag:n,dragDirectionLock:o,dragPropagation:i,dragConstraints:l,dragElastic:u,dragMomentum:p})},e}();function ku(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var Su={pan:Tl(function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,o=e.onPanSessionStart,a=e.visualElement,i=t||n||r||o,s=ne.useRef(null),l=ne.useContext(Wo).transformPagePoint,c={onSessionStart:o,onStart:n,onMove:t,onEnd:function(e,t){s.current=null,r&&r(e,t)}};ne.useEffect(function(){null!==s.current&&s.current.updateHandlers(c)}),Ji(a,"pointerdown",i&&function(e){s.current=new $c(e,c,{transformPagePoint:l})}),is(function(){return s.current&&s.current.end()})}),drag:Tl(function(e){var t=e.dragControls,n=e.visualElement,r=oa(function(){return new wu(n)});ne.useEffect(function(){return t&&t.subscribe(r)},[r,t]),ne.useEffect(function(){return r.addListeners()},[r])})},Cu=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],_u=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,o=e.getBaseTarget,a=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,h=e.blockInitialAnimation,v=e.visualState,y=e.shouldReduceMotion;void 0===t&&(t={});var g,b,E=!1,x=v.latestValues,w=v.renderState,k=function(){var e=Cu.map(function(){return new wc}),t={},n={clearAllListeners:function(){return e.forEach(function(e){return e.clear()})},updatePropListeners:function(e){Cu.forEach(function(r){var o,a="on"+r,i=e[a];null===(o=t[r])||void 0===o||o.call(t),i&&(t[r]=n[a](i))})}};return e.forEach(function(e,t){n["on"+Cu[t]]=function(t){return e.add(t)},n["notify"+Cu[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,Po([],To(t),!1))}}),n}(),S=new Map,C=new Map,_={},O=Io({},x);function N(){g&&E&&(A(),s(g,w,f.style,D.projection))}function A(){r(D,w,x,t,f)}function R(){k.notifyUpdate(x)}function I(e,t){var n=t.onChange(function(t){x[e]=t,f.onUpdate&&fc.update(R,!1,!0)}),r=t.onRenderRequest(D.scheduleRender);C.set(e,function(){n(),r()})}var L=d(f);for(var T in L){var P=L[T];void 0!==x[T]&&wa(P)&&P.set(x[T],!1)}var M=ta(f),j=na(f),D=Io(Io({treeType:n,current:null,depth:p?p.depth+1:0,parent:p,children:new Set,presenceId:m,shouldReduceMotion:y,variantChildren:j?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==p?void 0:p.isMounted()),blockInitialAnimation:h,isMounted:function(){return Boolean(g)},mount:function(e){E=!0,g=D.current=e,D.projection&&D.projection.mount(e),j&&p&&!M&&(b=null==p?void 0:p.addVariantChild(D)),S.forEach(function(e,t){return I(t,e)}),null==p||p.children.add(D),D.setProps(f)},unmount:function(){var e;null===(e=D.projection)||void 0===e||e.unmount(),mc.update(R),mc.render(N),C.forEach(function(e){return e()}),null==b||b(),null==p||p.children.delete(D),k.clearAllListeners(),g=void 0,E=!1},addVariantChild:function(e){var t,n=D.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(D.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return j?D:null==p?void 0:p.getClosestVariantNode()},getLayoutId:function(){return f.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){D.isVisible!==e&&(D.isVisible=e,D.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(D,e,f,t)},measureViewportBox:function(){return i(g,f)},addValue:function(e,t){D.hasValue(e)&&D.removeValue(e),S.set(e,t),x[e]=t.get(),I(e,t)},removeValue:function(e){var t;S.delete(e),null===(t=C.get(e))||void 0===t||t(),C.delete(e),delete x[e],c(e,w)},hasValue:function(e){return S.has(e)},getValue:function(e,t){var n=S.get(e);return void 0===n&&void 0!==t&&(n=Sc(t),D.addValue(e,n)),n},forEachValue:function(e){return S.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(o){var t=o(f,e);if(void 0!==t&&!wa(t))return t}return O[e]}},k),{build:function(){return A(),w},scheduleRender:function(){fc.render(N,!1,!0)},syncRender:N,setProps:function(e){(e.transformTemplate||f.transformTemplate)&&D.scheduleRender(),f=e,k.updatePropListeners(e),_=function(e,t,n){var r;for(var o in t){var a=t[o],i=n[o];if(wa(a))e.addValue(o,a),"development"===process.env.NODE_ENV&&Cl("6.5.1"===a.version,"Attempting to mix Framer Motion versions ".concat(a.version," with 6.5.1 may not work as expected."));else if(wa(i))e.addValue(o,Sc(a));else if(i!==a)if(e.hasValue(o)){var s=e.getValue(o);!s.hasAnimated&&s.set(a)}else e.addValue(o,Sc(null!==(r=e.getStaticValue(o))&&void 0!==r?r:a))}for(var o in n)void 0===t[o]&&e.removeValue(o);return t}(D,d(f),_)},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(!M){var t=(null==p?void 0:p.getVariantContext())||{};return void 0!==f.initial&&(t.initial=f.initial),t}for(var n={},r=0;r<Nu;r++){var o=Ou[r],a=f[o];(Jo(a)||!1===a)&&(n[o]=a)}return n}});return D}},Ou=Po(["initial"],To(jc),!1),Nu=Ou.length;function Au(e){return"string"==typeof e&&e.startsWith("var(--")}var Ru=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Iu(e,t,n){void 0===n&&(n=1),Bo(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var r=To(function(e){var t=Ru.exec(e);if(!t)return[,];var n=To(t,3);return[n[1],n[2]]}(e),2),o=r[0],a=r[1];if(o){var i=window.getComputedStyle(t).getPropertyValue(o);return i?i.trim():Au(a)?Iu(a,t,n+1):a}}var Lu,Tu=new Set(["width","height","top","left","right","bottom","x","y"]),Pu=function(e){return Tu.has(e)},Mu=function(e,t){e.set(t,!1),e.set(t)},ju=function(e){return e===La||e===Va};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Lu||(Lu={}));var Du=function(e,t){return parseFloat(e.split(", ")[t])},Vu=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var a=o.match(/^matrix3d\((.+)\)$/);if(a)return Du(a[1],t);var i=o.match(/^matrix\((.+)\)$/);return i?Du(i[1],e):0}},Bu=new Set(["x","y","z"]),Fu=ha.filter(function(e){return!Bu.has(e)}),$u={width:function(e,t){var n=e.x,r=t.paddingLeft,o=t.paddingRight,a=void 0===o?"0":o;return n.max-n.min-parseFloat(void 0===r?"0":r)-parseFloat(a)},height:function(e,t){var n=e.y,r=t.paddingTop,o=t.paddingBottom,a=void 0===o?"0":o;return n.max-n.min-parseFloat(void 0===r?"0":r)-parseFloat(a)},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:Vu(4,13),y:Vu(5,14)},zu={treeType:"dom",readValueFromInstance:function(e,t){if(ga(t)){var n=Xl(t);return n&&n.default||0}var r=window.getComputedStyle(e);return(Sa(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 Eu(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 o=n.transformValues;void 0===r&&(r=!0);var a=t.transition,i=t.transitionEnd,s=Lo(t,["transition","transitionEnd"]),l=function(e,t,n){var r,o,a={};for(var i in e)a[i]=null!==(r=Ic(i,t))&&void 0!==r?r:null===(o=n.getValue(i))||void 0===o?void 0:o.get();return a}(s,a||{},e);if(o&&(i&&(i=o(i)),s&&(s=o(s)),l&&(l=o(l))),r){!function(e,t,n){var r,o,a,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!==(o=null!==(r=n[u])&&void 0!==r?r:e.readValue(u))&&void 0!==o?o:t[u]),null!=p&&("string"==typeof p&&(rc(p)||oc(p))?p=parseFloat(p):!Ac(p)&&ei.test(d)&&(p=Kl(u,d)),e.addValue(u,Sc(p)),null!==(a=(i=n)[u])&&void 0!==a||(i[u]=p),e.setBaseTarget(u,p))}}(e,s,l);var c=function(e,t,n,r){var o=function(e,t,n){var r,o=Lo(t,[]),a=e.getInstance();if(!(a instanceof Element))return{target:o,transitionEnd:n};for(var i in n&&(n=Io({},n)),e.forEachValue(function(e){var t=e.get();if(Au(t)){var n=Iu(t,a);n&&e.set(n)}}),o){var s=o[i];if(Au(s)){var l=Iu(s,a);l&&(o[i]=l,n&&(null!==(r=n[i])&&void 0!==r||(n[i]=s)))}}return{target:o,transitionEnd:n}}(e,t,r);return function(e,t,n,r){return function(e){return Object.keys(e).some(Pu)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=Io({},t),r=Io({},r);var o=Object.keys(t).filter(Pu),a=[],i=!1,s=[];if(o.forEach(function(o){var l=e.getValue(o);if(e.hasValue(o)){var c,u=n[o],d=Oc(u),p=t[o];if(Ri(p)){var f=p.length,m=null===p[0]?1:0;d=Oc(u=p[m]);for(var h=m;h<f;h++)c?Bo(Oc(p[h])===c,"All keyframes must be of the same type"):(c=Oc(p[h]),Bo(c===d||ju(d)&&ju(c),"Keyframes must be of the same dimension as the current value"))}else c=Oc(p);if(d!==c)if(ju(d)&&ju(c)){var v=l.get();"string"==typeof v&&l.set(parseFloat(v)),"string"==typeof p?t[o]=parseFloat(p):Array.isArray(p)&&c===Va&&(t[o]=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[o]=d.transform(p):(i||(a=function(e){var t=[];return Fu.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(o),r[o]=void 0!==r[o]?r[o]:t[o],Mu(l,p))}}),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,c=function(e,t,n){var r=t.measureViewportBox(),o=t.getInstance(),a=getComputedStyle(o),i={};"none"===a.display&&t.setStaticValue("display",e.display||"block"),n.forEach(function(e){i[e]=$u[e](r,a)}),t.syncRender();var s=t.measureViewportBox();return n.forEach(function(n){var r=t.getValue(n);Mu(r,i[n]),e[n]=$u[n](s,a)}),e}(t,e,s);return a.length&&a.forEach(function(t){var n=To(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=o.target,n,r=o.transitionEnd)}(e,s,l,i);i=c.transitionEnd,s=c.target}return Io({transition:a,transitionEnd:i},s)},scrapeMotionValuesFromProps:Oi,build:function(e,t,n,r,o){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),si(t,n,r,o.transformTemplate)},render:Si},Wu=_u(zu),Uu=_u(Io(Io({},zu),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return ga(t)?(null===(n=Xl(t))||void 0===n?void 0:n.default)||0:(t=Ci.has(t)?t:ki(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Ni,build:function(e,t,n,r,o){gi(t,n,r,o.transformTemplate)},render:_i})),Hu=function(e,t){return pa(e)?Uu(t,{enableHardwareAcceleration:!1}):Wu(t,{enableHardwareAcceleration:!0})};function qu(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Yu={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!Va.test(e))return e;e=parseFloat(e)}var n=qu(e,t.target.x),r=qu(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},Zu={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,o=e,a=e.includes("var("),i=[];a&&(e=e.replace(Ru,function(e){return i.push(e),"_$css"}));var s=ei.parse(e);if(s.length>5)return o;var l=ei.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 p=hs(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(a){var m=0;f=f.replace("_$css",function(){var e=i[m];return m++,e})}return f}},Gu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ro(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.layoutGroup,r=t.switchLayoutGroup,o=t.layoutId,a=t.visualElement.projection;Object.assign(fa,Xu),a&&((null==n?void 0:n.group)&&n.group.add(a),(null==r?void 0:r.register)&&o&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",function(){e.safeToRemove()}),a.setOptions(Io(Io({},a.options),{onExitComplete:function(){return e.safeToRemove()}}))),aa.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,o=n.drag,a=n.isPresent,i=n.visualElement.projection;return i?(i.isPresent=a,o||e.layoutDependency!==r||void 0===r?i.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?i.promote():i.relegate()||fc.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}(ne.Component),Xu={borderRadius:Io(Io({},Yu),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Yu,borderTopRightRadius:Yu,borderBottomLeftRadius:Yu,borderBottomRightRadius:Yu,boxShadow:Zu},Ku={measureLayout:function(e){var t=To(Vl(),2),n=t[0],r=t[1],o=ne.useContext(sa);return ne.createElement(Gu,Io({},e,{layoutGroup:o,switchLayoutGroup:ne.useContext(la),isPresent:n,safeToRemove:r}))}},Ju=["TopLeft","TopRight","BottomLeft","BottomRight"],Qu=Ju.length,ed=function(e){return"string"==typeof e?parseFloat(e):e},td=function(e){return"number"==typeof e||Va.test(e)};function nd(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var rd=ad(0,.5,$s),od=ad(.5,.95,js);function ad(e,t,n){return function(r){return r<e?0:r>t?1:n(ms(e,t,r))}}function id(e,t){e.min=t.min,e.max=t.max}function sd(e,t){id(e.x,t.x),id(e.y,t.y)}function ld(e,t,n,r,o){return e=du(e-=t,1/n,r),void 0!==o&&(e=du(e,1/o,r)),e}function cd(e,t,n,r,o){var a=To(n,3);!function(e,t,n,r,o,a,i){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===a&&(a=e),void 0===i&&(i=e),Da.test(t)&&(t=parseFloat(t),t=hs(i.min,i.max,t/100)-i.min),"number"==typeof t){var s=hs(a.min,a.max,r);e===a&&(s-=t),e.min=ld(e.min,t,n,s,o),e.max=ld(e.max,t,n,s,o)}}(e,t[a[0]],t[a[1]],t[a[2]],t.scale,r,o)}var ud=["x","scaleX","originX"],dd=["y","scaleY","originY"];function pd(e,t,n,r){cd(e.x,t,ud,null==n?void 0:n.x,null==r?void 0:r.x),cd(e.y,t,dd,null==n?void 0:n.y,null==r?void 0:r.y)}function fd(e){return 0===e.translate&&1===e.scale}function md(e){return fd(e.x)&&fd(e.y)}function hd(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 vd=function(){function e(){this.members=[]}return e.prototype.add=function(e){Ec(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(xc(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 o=this.members[r];if(!1!==o.isPresent){t=o;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,o,a;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(a=null===(r=e.resumingFrom)||void 0===r?void 0:(o=r.options).onExitComplete)||void 0===a||a.call(o)})},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}();function yd(e,t,n){var r=e.y.translate/t.y,o="translate3d(".concat(e.x.translate/t.x,"px, ").concat(r,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var a=n.rotate,i=n.rotateX,s=n.rotateY;a&&(o+="rotate(".concat(a,"deg) ")),i&&(o+="rotateX(".concat(i,"deg) ")),s&&(o+="rotateY(".concat(s,"deg) "))}var l=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(o+="scale(".concat(e.x.scale*t.x,", ").concat(l,")"))?"none":o}var gd=function(e,t){return e.depth-t.depth},bd=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Ec(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){xc(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(gd),this.isDirty=!1,this.children.forEach(e)},e}();function Ed(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,o=e.checkIsScrollRoot,a=e.resetTransform;return function(){function e(e,t,r){var o=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(){o.isUpdating&&(o.isUpdating=!1,o.clearAllSnapshots())},this.updateProjection=function(){o.nodes.forEach(Od),o.nodes.forEach(Nd)},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?Po(Po([],To(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new bd)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new wc),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,Po([],To(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,o=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var a=this.options,i=a.layoutId,s=a.layout,l=a.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 o.root.updateBlockedByResize=!1};t(e,function(){o.root.updateBlockedByResize=!0,clearTimeout(c),c=window.setTimeout(u,250),aa.hasAnimatedSinceResize&&(aa.hasAnimatedSinceResize=!1,o.nodes.forEach(_d))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&l&&(i||s)&&this.addEventListener("didUpdate",function(e){var t,n,r,a,i,s=e.delta,c=e.hasLayoutChanged,u=e.hasRelativeTargetChanged,d=e.layout;if(o.isTreeAnimationBlocked())return o.target=void 0,void(o.relativeTarget=void 0);var p=null!==(n=null!==(t=o.options.transition)&&void 0!==t?t:l.getDefaultTransition())&&void 0!==n?n:Pd,f=l.getProps(),m=f.onLayoutAnimationStart,h=f.onLayoutAnimationComplete,v=!o.targetLayout||!hd(o.targetLayout,d)||u,y=!c&&u;if((null===(r=o.resumeFrom)||void 0===r?void 0:r.instance)||y||c&&(v||!o.currentAnimation)){o.resumeFrom&&(o.resumingFrom=o.resumeFrom,o.resumingFrom.resumingFrom=void 0),o.setAnimationOrigin(s,y);var g=Io(Io({},tc(p,"layout")),{onPlay:m,onComplete:h});l.shouldReduceMotion&&(g.delay=0,g.type=!1),o.startAnimation(g)}else c||0!==o.animationProgress||o.finishAnimation(),o.isLead()&&(null===(i=(a=o.options).onExitComplete)||void 0===i||i.call(a));o.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,mc.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(Ad))},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 o=0;o<this.path.length;o++){var a=this.path[o];a.shouldResetTransform=!0,a.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(Sd);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Md),this.potentialNodes.clear()),this.nodes.forEach(Cd),this.nodes.forEach(xd),this.nodes.forEach(wd),this.clearAllSnapshots(),hc.update(),hc.preRender(),hc.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(kd),this.sharedNodes.forEach(Rd)},e.prototype.scheduleUpdateProjection=function(){fc.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;fc.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));Dd(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();Dd(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.isScrollRoot=o(this.instance),this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(a){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!md(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||cu(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&&(hu(t.x,n.x),hu(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};sd(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],o=r.scroll;if(r!==this.root&&o&&r.options.layoutScroll){if(r.isScrollRoot){sd(t,e);var a=this.root.scroll;a&&(hu(t.x,-a.x),hu(t.y,-a.y))}hu(t.x,o.x),hu(t.y,o.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}};sd(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];!t&&o.options.layoutScroll&&o.scroll&&o!==o.root&&bu(n,{x:-o.scroll.x,y:-o.scroll.y}),cu(o.latestValues)&&bu(n,o.latestValues)}return cu(this.latestValues)&&bu(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};sd(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];if(o.instance&&cu(o.latestValues)){lu(o.latestValues)&&o.updateSnapshot();var a={x:{min:0,max:0},y:{min:0,max:0}};sd(a,o.measure()),pd(n,o.latestValues,null===(t=o.snapshot)||void 0===t?void 0:t.layout,a)}}return cu(this.latestValues)&&pd(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=Io(Io(Io({},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,o=this.options;this.layout&&(o.layout||o.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}},eu(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),sd(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)?(Jc((t=this.target).x,(n=this.relativeTarget).x,(r=this.relativeParent.target).x),Jc(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):sd(this.target,this.layout.actual),mu(this.target,this.targetDelta)):sd(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}},eu(this.relativeTargetOrigin,this.target,this.relativeParent.target),sd(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!cu(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 o=this.getLead();sd(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var o,a;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===(a=null===(o=s.instance)||void 0===o?void 0:o.style)||void 0===a?void 0:a.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&bu(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,mu(e,l)),r&&cu(s.latestValues)&&bu(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==o);var a=o.target;if(a){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;Kc(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=yd(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===i&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}}},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 o=this.snapshot,a=(null==o?void 0:o.latestValues)||{},i=Io({},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==o?void 0:o.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(Td));this.animationProgress=0,this.mixTargetDelta=function(t){var n,o=t/1e3;Id(s.x,e.x,o),Id(s.y,e.y,o),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(eu(l,r.layout.actual,r.relativeParent.layout.actual),function(e,t,n,r){Ld(e.x,t.x,n.x,r),Ld(e.y,t.y,n.y,r)}(r.relativeTarget,r.relativeTargetOrigin,l,o)),c&&(r.animationValues=i,function(e,t,n,r,o,a){var i,s,l,c;o?(e.opacity=hs(0,null!==(i=n.opacity)&&void 0!==i?i:1,rd(r)),e.opacityExit=hs(null!==(s=t.opacity)&&void 0!==s?s:1,0,od(r))):a&&(e.opacity=hs(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(c=n.opacity)&&void 0!==c?c:1,r));for(var u=0;u<Qu;u++){var d="border".concat(Ju[u],"Radius"),p=nd(t,d),f=nd(n,d);void 0===p&&void 0===f||(p||(p=0),f||(f=0),0===p||0===f||td(p)===td(f)?(e[d]=Math.max(hs(ed(p),ed(f),r),0),(Da.test(f)||Da.test(p))&&(e[d]+="%")):e[d]=f)}(t.rotate||n.rotate)&&(e.rotate=hs(t.rotate||0,n.rotate||0,r))}(i,a,r.latestValues,o,d,u)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=o},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&&(mc.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=fc.update(function(){aa.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=wa(0)?0:Sc(0);return nc("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,Io(Io({},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&&(sd(t,n),bu(t,r),Kc(this.projectionDeltaWithTransform,this.layoutCorrected,t,r))},e.prototype.registerSharedNode=function(e,t){var n,r,o;this.sharedNodes.has(e)||this.sharedNodes.set(e,new vd),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(o=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===o?void 0:o.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,o=t.preserveFollowOpacity,a=this.getStack();a&&a.promote(this,o),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<ma.length;r++)e.getStaticValue(o="rotate"+ma[r])&&(t=!0,n[o]=e.getStaticValue(o),e.setStaticValue(o,0));if(t){for(var o in null==e||e.syncRender(),n)e.setStaticValue(o,n[o]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,o,a,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=Li(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=Li(e.pointerEvents)||""),this.hasProjected&&!cu(this.latestValues)&&(u.transform=l?l({},""):"none",this.hasProjected=!1),u}var d=c.animationValues||c.latestValues;this.applyTransformsToTarget(),s.transform=yd(this.projectionDeltaWithTransform,this.treeScale,d),l&&(s.transform=l(d,s.transform));var p=this.projectionDelta,f=p.x,m=p.y;for(var h in s.transformOrigin="".concat(100*f.origin,"% ").concat(100*m.origin,"% 0"),s.opacity=c.animationValues?c===this?null!==(o=null!==(r=d.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==o?o:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:c===this?null!==(a=d.opacity)&&void 0!==a?a:"":null!==(i=d.opacityExit)&&void 0!==i?i:0,fa)if(void 0!==d[h]){var v=fa[h],y=v.applyTo,g=(0,v.correct)(d[h],c);if(y)for(var b=y.length,E=0;E<b;E++)s[y[E]]=g;else s[h]=g}return this.options.layoutId&&(s.pointerEvents=c===this?Li(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(Sd),this.root.sharedNodes.clear()},e}()}function xd(e){e.updateLayout()}function wd(e){var t,n,r,o,a=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){var i=e.layout,s=i.actual,l=i.measured;"size"===e.options.animationType?au(function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=Zc(t);t.min=s[e].min,t.max=t.min+n}):"position"===e.options.animationType&&au(function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=Zc(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}};Kc(c,s,a.layout);var u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};a.isShared?Kc(u,e.applyTransform(l,!0),a.measured):Kc(u,s,a.layout);var d=!md(c),p=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var f=e.relativeParent,m=f.snapshot,h=f.layout;if(m&&h){var v={x:{min:0,max:0},y:{min:0,max:0}};eu(v,a.layout,m.layout);var y={x:{min:0,max:0},y:{min:0,max:0}};eu(y,s,h.actual),hd(v,y)||(p=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeTargetChanged:p})}else e.isLead()&&(null===(o=(r=e.options).onExitComplete)||void 0===o||o.call(r));e.options.transition=void 0}function kd(e){e.clearSnapshot()}function Sd(e){e.clearMeasurements()}function Cd(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function _d(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Od(e){e.resolveTargetDelta()}function Nd(e){e.calcProjection()}function Ad(e){e.resetRotation()}function Rd(e){e.removeLeadSnapshot()}function Id(e,t,n){e.translate=hs(t.translate,0,n),e.scale=hs(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ld(e,t,n,r){e.min=hs(t.min,n.min,r),e.max=hs(t.max,n.max,r)}function Td(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var Pd={duration:.45,ease:[.4,0,.1,1]};function Md(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 o=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function jd(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Dd(e){jd(e.x),jd(e.y)}var Vd=Ed({attachResizeListener:function(e,t){return Bi(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Bd={current:void 0},Fd=Ed({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Bd.current){var e=new Vd(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Bd.current=e}return Bd.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),$d=Io(Io(Io(Io({},Fc),Pl),Su),Ku),zd=/*@__PURE__*/ua(function(e,t){return function(e,t,n,r,o){var a=t.forwardMotionProps,i=void 0!==a&&a,s=pa(e)?Di:Vi;return Io(Io({},s),{preloadedFeatures:n,useRender:xi(i),createVisualElement:r,projectionNodeConstructor:o,Component:e})}(e,t,$d,Hu,Fd)});function Wd(){var e=ne.useRef(!1);return Yo(function(){return e.current=!0,function(){e.current=!1}},[]),e}var Ud=function(e){var t=e.children,n=e.initial,r=e.isPresent,o=e.onExitComplete,a=e.custom,i=e.presenceAffectsLayout,s=oa(Hd),l=Dl(),c=ne.useMemo(function(){return{id:l,initial:n,isPresent:r,custom:a,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()),a=r.next();!a.done;a=r.next())if(!a.value)return}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==o||o()},register:function(e){return s.set(e,!1),function(){return s.delete(e)}}}},i?void 0:[r]);return ne.useMemo(function(){s.forEach(function(e,t){return s.set(t,!1)})},[r]),ne.useEffect(function(){!r&&!s.size&&(null==o||o())},[r]),ne.createElement(Ho.Provider,{value:c},t)};function Hd(){return new Map}var qd=function(e){return e.key||""},Yd=function(e){var t=e.children,n=e.custom,r=e.initial,o=void 0===r||r,a=e.onExitComplete,i=e.exitBeforeEnter,s=e.presenceAffectsLayout,l=void 0===s||s,c=To(function(){var e=Wd(),t=To(ne.useState(0),2),n=t[0],r=t[1],o=ne.useCallback(function(){e.current&&r(n+1)},[n]);return[ne.useCallback(function(){return fc.postRender(o)},[o]),n]}(),1),u=c[0],d=ne.useContext(sa).forceRender;d&&(u=d);var p=Wd(),f=function(e){var t=[];return ne.Children.forEach(e,function(e){ne.isValidElement(e)&&t.push(e)}),t}(t),m=f,h=new Set,v=ne.useRef(m),y=ne.useRef(new Map).current,g=ne.useRef(!0);if(Yo(function(){g.current=!1,function(e,t){e.forEach(function(e){var n=qd(e);t.set(n,e)})}(f,y),v.current=m}),is(function(){g.current=!0,y.clear(),h.clear()}),g.current)return ne.createElement(ne.Fragment,null,m.map(function(e){return ne.createElement(Ud,{key:qd(e),isPresent:!0,initial:!!o&&void 0,presenceAffectsLayout:l},e)}));m=Po([],To(m),!1);for(var b=v.current.map(qd),E=f.map(qd),x=b.length,w=0;w<x;w++){var k=b[w];-1===E.indexOf(k)&&h.add(k)}return i&&h.size&&(m=[]),h.forEach(function(e){if(-1===E.indexOf(e)){var t=y.get(e);if(t){var r=b.indexOf(e);m.splice(r,0,ne.createElement(Ud,{key:qd(t),isPresent:!1,onExitComplete:function(){y.delete(e),h.delete(e);var t=v.current.findIndex(function(t){return t.key===e});if(v.current.splice(t,1),!h.size){if(v.current=f,!1===p.current)return;u(),a&&a()}},custom:n,presenceAffectsLayout:l},t))}}}),m=m.map(function(e){return h.has(e.key)?e:ne.createElement(Ud,{key:qd(e),isPresent:!0,presenceAffectsLayout:l},e)}),"production"!==Mo&&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."),ne.createElement(ne.Fragment,null,h.size?m:m.map(function(e){return ne.cloneElement(e)}))},Zd=(...e)=>e.filter(Boolean).join(" "),Gd={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Xd={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},Kd={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},Jd={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},Qd={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}};function ep(e){switch((null==e?void 0:e.direction)??"right"){case"right":default:return Kd;case"left":return Xd;case"bottom":return Qd;case"top":return Jd}}var tp={enter:{duration:.2,ease:Gd.easeOut},exit:{duration:.1,ease:Gd.easeIn}},np=(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.enter}),rp=(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.exit}),op={exit:{height:{duration:.2,ease:Gd.ease},opacity:{duration:.3,ease:Gd.ease}},enter:{height:{duration:.3,ease:Gd.ease},opacity:{duration:.4,ease:Gd.ease}}},ap={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:o})=>{return{...e&&{opacity:(a=t,null!=a&&parseInt(a.toString(),10)>0?1:0)},height:t,transitionEnd:null==r?void 0:r.exit,transition:(null==n?void 0:n.exit)??rp(op.exit,o)};var a},enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:o})=>({...e&&{opacity:1},height:t,transitionEnd:null==r?void 0:r.enter,transition:(null==n?void 0:n.enter)??np(op.enter,o)})},ip=ne.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:o=!0,startingHeight:a=0,endingHeight:i="auto",style:s,className:l,transition:c,transitionEnd:u,...d}=e,[p,f]=ne.useState(!1);ne.useEffect(()=>{const e=setTimeout(()=>{f(!0)});return()=>clearTimeout(e)},[]),(e=>{const{condition:t,message:n}=e;t&&"production"!==process.env.NODE_ENV&&console.warn(n)})({condition:Boolean(a>0&&r),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const m=parseFloat(a.toString())>0,h={startingHeight:a,endingHeight:i,animateOpacity:o,transition:p?c:{enter:{duration:0}},transitionEnd:{enter:null==u?void 0:u.enter,exit:r?null==u?void 0:u.exit:{...null==u?void 0:u.exit,display:m?"block":"none"}}},v=n||r?"enter":"exit";/* @__PURE__ */
|
3
|
+
return ne.createElement(Yd,{initial:!1,custom:h},(!r||n)&&/* @__PURE__ */ne.createElement(zd.div,{ref:t,...d,className:Zd("chakra-collapse",l),style:{overflow:"hidden",display:"block",...s},custom:h,variants:ap,initial:!!r&&"exit",animate:v,exit:"exit"}))});ip.displayName="Collapse";var sp={enter:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:1,transition:(null==e?void 0:e.enter)??np(tp.enter,n),transitionEnd:null==t?void 0:t.enter}),exit:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:0,transition:(null==e?void 0:e.exit)??rp(tp.exit,n),transitionEnd:null==t?void 0:t.exit})},lp={initial:"exit",animate:"enter",exit:"exit",variants:sp},cp=ne.forwardRef(function(e,t){const{unmountOnExit:n,in:r,className:o,transition:a,transitionEnd:i,delay:s,...l}=e,c=r||n?"enter":"exit",u={transition:a,transitionEnd:i,delay:s};/* @__PURE__ */
|
4
|
+
return ne.createElement(Yd,{custom:u},(!n||r&&n)&&/* @__PURE__ */ne.createElement(zd.div,{ref:t,className:Zd("chakra-fade",o),custom:u,...lp,animate:c,...l}))});cp.displayName="Fade";var up={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:o})=>({opacity:0,...e?{scale:t,transitionEnd:null==r?void 0:r.exit}:{transitionEnd:{scale:t,...null==r?void 0:r.exit}},transition:(null==n?void 0:n.exit)??rp(tp.exit,o)}),enter:({transitionEnd:e,transition:t,delay:n})=>({opacity:1,scale:1,transition:(null==t?void 0:t.enter)??np(tp.enter,n),transitionEnd:null==e?void 0:e.enter})},dp={initial:"exit",animate:"enter",exit:"exit",variants:up},pp=ne.forwardRef(function(e,t){const{unmountOnExit:n,in:r,reverse:o=!0,initialScale:a=.95,className:i,transition:s,transitionEnd:l,delay:c,...u}=e,d=r||n?"enter":"exit",p={initialScale:a,reverse:o,transition:s,transitionEnd:l,delay:c};/* @__PURE__ */
|
5
|
+
return ne.createElement(Yd,{custom:p},(!n||r&&n)&&/* @__PURE__ */ne.createElement(zd.div,{ref:t,className:Zd("chakra-offset-slide",i),...dp,animate:d,custom:p,...u}))});pp.displayName="ScaleFade";var fp={exit:{duration:.15,ease:Gd.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},mp={exit:({direction:e,transition:t,transitionEnd:n,delay:r})=>{const{exit:o}=ep({direction:e});return{...o,transition:(null==t?void 0:t.exit)??rp(fp.exit,r),transitionEnd:null==n?void 0:n.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:r})=>{const{enter:o}=ep({direction:e});return{...o,transition:(null==n?void 0:n.enter)??np(fp.enter,r),transitionEnd:null==t?void 0:t.enter}}},hp=ne.forwardRef(function(e,t){const{direction:n="right",style:r,unmountOnExit:o,in:a,className:i,transition:s,transitionEnd:l,delay:c,motionProps:u,...d}=e,p=ep({direction:n}),f=Object.assign({position:"fixed"},p.position,r),m=a||o?"enter":"exit",h={transitionEnd:l,transition:s,direction:n,delay:c};/* @__PURE__ */
|
6
|
+
return ne.createElement(Yd,{custom:h},(!o||a&&o)&&/* @__PURE__ */ne.createElement(zd.div,{...d,ref:t,initial:"exit",className:Zd("chakra-slide",i),animate:m,exit:"exit",custom:h,variants:mp,style:f,...u}))});hp.displayName="Slide";var vp={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:o})=>({opacity:0,x:e,y:t,transition:(null==n?void 0:n.exit)??rp(tp.exit,o),transitionEnd:null==r?void 0:r.exit}),enter:({transition:e,transitionEnd:t,delay:n})=>({opacity:1,x:0,y:0,transition:(null==e?void 0:e.enter)??np(tp.enter,n),transitionEnd:null==t?void 0:t.enter}),exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:o,delay:a})=>{const i={x:t,y:e};return{opacity:0,transition:(null==n?void 0:n.exit)??rp(tp.exit,a),...o?{...i,transitionEnd:null==r?void 0:r.exit}:{transitionEnd:{...i,...null==r?void 0:r.exit}}}}},yp={initial:"initial",animate:"enter",exit:"exit",variants:vp},gp=ne.forwardRef(function(e,t){const{unmountOnExit:n,in:r,reverse:o=!0,className:a,offsetX:i=0,offsetY:s=8,transition:l,transitionEnd:c,delay:u,...d}=e,p=r||n?"enter":"exit",f={offsetX:i,offsetY:s,reverse:o,transition:l,transitionEnd:c,delay:u};/* @__PURE__ */
|
7
|
+
return ne.createElement(Yd,{custom:f},(!n||r&&n)&&/* @__PURE__ */ne.createElement(zd.div,{ref:t,className:Zd("chakra-offset-slide",a),custom:f,...yp,animate:p,...d}))});gp.displayName="SlideFade";var bp=Dr({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Ep=uo((e,t)=>{const n=fo("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:a="0.45s",emptyColor:i="transparent",className:s,...l}=Rt(e),c=((...e)=>e.filter(Boolean).join(" "))("chakra-spinner",s),u={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:i,borderLeftColor:i,animation:`${bp} ${a} linear infinite`,...n};/* @__PURE__ */
|
8
|
+
return ne.createElement(ho.div,{ref:t,__css:u,className:c,...l},r&&/* @__PURE__ */ne.createElement(ho.span,{srOnly:!0},r))});function xp(e){return ne.Children.toArray(e).filter(e=>ne.isValidElement(e))}Ep.displayName="Spinner";var wp=(...e)=>e.filter(Boolean).join(" "),kp=e=>e?"":void 0,[Sp,Cp]=vo({strict:!1,name:"ButtonGroupContext"});function _p(e){const{children:t,className:n,...r}=e,o=ne.isValidElement(t)?ne.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,a=wp("chakra-button__icon",n);/* @__PURE__ */
|
9
|
+
return ne.createElement(ho.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:a},o)}function Op(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=/* @__PURE__ */ne.createElement(Ep,{color:"currentColor",width:"1em",height:"1em"}),className:a,__css:i,...s}=e,l=wp("chakra-button__spinner",a),c="start"===n?"marginEnd":"marginStart",u=ne.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[c]:t?r:0,fontSize:"1em",lineHeight:"normal",...i}),[i,t,c,r]);/* @__PURE__ */
|
10
|
+
return ne.createElement(ho.div,{className:l,...s,__css:u},o)}_p.displayName="ButtonIcon",Op.displayName="ButtonSpinner";var Np=uo((e,t)=>{const n=Cp(),r=fo("Button",{...n,...e}),{isDisabled:o=(null==n?void 0:n.isDisabled),isLoading:a,isActive:i,children:s,leftIcon:l,rightIcon:c,loadingText:u,iconSpacing:d="0.5rem",type:p,spinner:f,spinnerPlacement:m="start",className:h,as:v,...y}=Rt(e),g=ne.useMemo(()=>{const e={...null==r?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:e}}},[r,n]),{ref:b,type:E}=function(e){const[t,n]=ne.useState(!e),r=ne.useCallback(e=>{e&&n("BUTTON"===e.tagName)},[]);return{ref:r,type:t?"button":void 0}}(v),x={rightIcon:c,leftIcon:l,iconSpacing:d,children:s};/* @__PURE__ */
|
11
|
+
return ne.createElement(ho.button,{disabled:o||a,ref:go(t,b),as:v,type:p??E,"data-active":kp(i),"data-loading":kp(a),__css:g,className:wp("chakra-button",h),...y},a&&"start"===m&&/* @__PURE__ */ne.createElement(Op,{className:"chakra-button__spinner--start",label:u,placement:"start",spacing:d},f),a?u||/* @__PURE__ */ne.createElement(ho.span,{opacity:0},/* @__PURE__ */ne.createElement(Ap,{...x})):/* @__PURE__ */ne.createElement(Ap,{...x}),a&&"end"===m&&/* @__PURE__ */ne.createElement(Op,{className:"chakra-button__spinner--end",label:u,placement:"end",spacing:d},f))});function Ap(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o}=e;/* @__PURE__ */
|
12
|
+
return ne.createElement(ne.Fragment,null,t&&/* @__PURE__ */ne.createElement(_p,{marginEnd:o},t),r,n&&/* @__PURE__ */ne.createElement(_p,{marginStart:o},n))}Np.displayName="Button",uo(function(e,t){const{size:n,colorScheme:r,variant:o,className:a,spacing:i="0.5rem",isAttached:s,isDisabled:l,...c}=e,u=wp("chakra-button__group",a),d=ne.useMemo(()=>({size:n,colorScheme:r,variant:o,isDisabled:l}),[n,r,o,l]);let p={display:"inline-flex"};return p=s?{...p,"> *: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}}:{...p,"& > *:not(style) ~ *:not(style)":{marginStart:i}},/* @__PURE__ */ne.createElement(Sp,{value:d},/* @__PURE__ */ne.createElement(ho.div,{ref:t,role:"group",__css:p,className:u,"data-attached":s?"":void 0,...c}))}).displayName="ButtonGroup";var Rp=uo((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":a,...i}=e,s=n||r,l=ne.isValidElement(s)?ne.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;/* @__PURE__ */
|
13
|
+
return ne.createElement(Np,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":a,...i},l)});Rp.displayName="IconButton";var Ip={path:/* @__PURE__ */ne.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/* @__PURE__ */ne.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__ */ne.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__ */ne.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},Lp=uo((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:a=!1,children:i,className:s,__css:l,...c}=e,u={ref:t,focusable:a,className:_o("chakra-icon",s),__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l}},d=r??Ip.viewBox;if(n&&"string"!=typeof n)/* @__PURE__ */
|
14
|
+
return ne.createElement(ho.svg,{as:n,...u,...c});const p=i??Ip.path;/* @__PURE__ */
|
15
|
+
return ne.createElement(ho.svg,{verticalAlign:"middle",viewBox:d,...u,...c},p)});Lp.displayName="Icon";var Tp=(...e)=>e.filter(Boolean).join(" "),Pp=e=>e?"":void 0,Mp=e=>!!e||void 0;function jp(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}var[Dp,Vp]=vo({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormControl />\" "}),[Bp,Fp]=vo({strict:!1,name:"FormControlContext"}),$p=uo(function(e,t){const n=mo("Form",e),r=Rt(e),{getRootProps:o,htmlProps:a,...i}=function(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:a,...i}=e,s=ne.useId(),l=t||`field-${s}`,c=`${l}-label`,u=`${l}-feedback`,d=`${l}-helptext`,[p,f]=ne.useState(!1),[m,h]=ne.useState(!1),[v,y]=ne.useState(!1),g=ne.useCallback((e={},t=null)=>({id:d,...e,ref:yo(t,e=>{e&&h(!0)})}),[d]),b=ne.useCallback((e={},t=null)=>({...e,ref:t,"data-focus":Pp(v),"data-disabled":Pp(o),"data-invalid":Pp(r),"data-readonly":Pp(a),id:e.id??c,htmlFor:e.htmlFor??l}),[l,o,v,r,a,c]),E=ne.useCallback((e={},t=null)=>({id:u,...e,ref:yo(t,e=>{e&&f(!0)}),"aria-live":"polite"}),[u]),x=ne.useCallback((e={},t=null)=>({...e,...i,ref:t,role:"group"}),[i]),w=ne.useCallback((e={},t=null)=>({...e,ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!a,isDisabled:!!o,isFocused:!!v,onFocus:()=>y(!0),onBlur:()=>y(!1),hasFeedbackText:p,setHasFeedbackText:f,hasHelpText:m,setHasHelpText:h,id:l,labelId:c,feedbackId:u,helpTextId:d,htmlProps:i,getHelpTextProps:g,getErrorMessageProps:E,getRootProps:x,getLabelProps:b,getRequiredIndicatorProps:w}}(r),s=Tp("chakra-form-control",e.className);/* @__PURE__ */
|
16
|
+
return ne.createElement(Bp,{value:i},/* @__PURE__ */ne.createElement(Dp,{value:n},/* @__PURE__ */ne.createElement(ho.div,{...o({},t),className:s,__css:n.container})))});$p.displayName="FormControl";var zp=uo(function(e,t){const n=Fp(),r=Vp(),o=Tp("chakra-form__helper-text",e.className);/* @__PURE__ */
|
17
|
+
return ne.createElement(ho.div,{...null==n?void 0:n.getHelpTextProps(e,t),__css:r.helperText,className:o})});function Wp(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...a}=Up(e);return{...a,disabled:t,readOnly:r,required:o,"aria-invalid":Mp(n),"aria-required":Mp(o),"aria-readonly":Mp(r)}}function Up(e){const t=Fp(),{id:n,disabled:r,readOnly:o,required:a,isRequired:i,isInvalid:s,isReadOnly:l,isDisabled:c,onFocus:u,onBlur:d,...p}=e,f=e["aria-describedby"]?[e["aria-describedby"]]:[];return(null==t?void 0:t.hasFeedbackText)&&(null==t?void 0:t.isInvalid)&&f.push(t.feedbackId),(null==t?void 0:t.hasHelpText)&&f.push(t.helpTextId),{...p,"aria-describedby":f.join(" ")||void 0,id:n??(null==t?void 0:t.id),isDisabled:r??c??(null==t?void 0:t.isDisabled),isReadOnly:o??l??(null==t?void 0:t.isReadOnly),isRequired:a??i??(null==t?void 0:t.isRequired),isInvalid:s??(null==t?void 0:t.isInvalid),onFocus:jp(null==t?void 0:t.onFocus,u),onBlur:jp(null==t?void 0:t.onBlur,d)}}zp.displayName="FormHelperText";var[Hp,qp]=vo({name:"FormErrorStylesContext",errorMessage:"useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormError />\" "}),Yp=uo((e,t)=>{const n=mo("FormError",e),r=Rt(e),o=Fp();return(null==o?void 0:o.isInvalid)?/* @__PURE__ */ne.createElement(Hp,{value:n},/* @__PURE__ */ne.createElement(ho.div,{...null==o?void 0:o.getErrorMessageProps(r,t),className:Tp("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...n.text}})):null});Yp.displayName="FormErrorMessage",uo((e,t)=>{const n=qp(),r=Fp();if(!(null==r?void 0:r.isInvalid))return null;const o=Tp("chakra-form__error-icon",e.className);/* @__PURE__ */
|
18
|
+
return ne.createElement(Lp,{ref:t,"aria-hidden":!0,...e,__css:n.icon,className:o},/* @__PURE__ */ne.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"}))}).displayName="FormErrorIcon";var Zp=uo(function(e,t){const n=fo("FormLabel",e),r=Rt(e),{className:o,children:a,requiredIndicator:i=/* @__PURE__ */ne.createElement(Gp,null),optionalIndicator:s=null,...l}=r,c=Fp(),u=(null==c?void 0:c.getLabelProps(l,t))??{ref:t,...l};/* @__PURE__ */
|
19
|
+
return ne.createElement(ho.label,{...u,className:Tp("chakra-form__label",r.className),__css:{display:"block",textAlign:"start",...n}},a,(null==c?void 0:c.isRequired)?i:s)});Zp.displayName="FormLabel";var Gp=uo(function(e,t){const n=Fp(),r=Vp();if(!(null==n?void 0:n.isRequired))return null;const o=Tp("chakra-form__required-indicator",e.className);/* @__PURE__ */
|
20
|
+
return ne.createElement(ho.span,{...null==n?void 0:n.getRequiredIndicatorProps(e,t),__css:r.requiredIndicator,className:o})});function Xp(e,t){const n=ne.useRef(!1),r=ne.useRef(!1);ne.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),ne.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}Gp.displayName="RequiredIndicator";var Kp={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};ho("span",{baseStyle:Kp}).displayName="VisuallyHidden",ho("input",{baseStyle:Kp}).displayName="VisuallyHiddenInput";var Jp=!1,Qp=null,ef=!1,tf=/* @__PURE__ */new Set,nf="undefined"!=typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function rf(e,t){tf.forEach(n=>n(e,t))}function of(e){ef=!0,function(e){return!(e.metaKey||!nf&&e.altKey||e.ctrlKey)}(e)&&(Qp="keyboard",rf("keyboard",e))}function af(e){Qp="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(ef=!0,rf("pointer",e))}function sf(e){e.target!==window&&e.target!==document&&(ef||(Qp="keyboard",rf("keyboard",e)),ef=!1)}function lf(){ef=!1}function cf(){return"pointer"!==Qp}function uf(e){!function(){if("undefined"==typeof window||Jp)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...t){ef=!0,e.apply(this,t)},document.addEventListener("keydown",of,!0),document.addEventListener("keyup",of,!0),window.addEventListener("focus",sf,!0),window.addEventListener("blur",lf,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",af,!0),document.addEventListener("pointermove",af,!0),document.addEventListener("pointerup",af,!0)):(document.addEventListener("mousedown",af,!0),document.addEventListener("mousemove",af,!0),document.addEventListener("mouseup",af,!0)),Jp=!0}(),e(cf());const t=()=>e(cf());return tf.add(t),()=>{tf.delete(t)}}var[df,pf]=vo({name:"CheckboxGroupContext",strict:!1}),ff=(...e)=>e.filter(Boolean).join(" "),mf=e=>e?"":void 0;function hf(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}function vf(e){/* @__PURE__ */
|
21
|
+
return ne.createElement(ho.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e},/* @__PURE__ */ne.createElement("polyline",{points:"1.5 6 4.5 9 10.5 1"}))}function yf(e){/* @__PURE__ */
|
22
|
+
return ne.createElement(ho.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e},/* @__PURE__ */ne.createElement("line",{x1:"21",x2:"3",y1:"12",y2:"12"}))}function gf(e){const{isIndeterminate:t,isChecked:n,...r}=e;return n||t?/* @__PURE__ */ne.createElement(ho.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}},/* @__PURE__ */ne.createElement(t?yf:vf,{...r})):null}function bf(e={}){const t=Up(e),{isDisabled:n,isReadOnly:r,isRequired:o,isInvalid:a,id:i,onBlur:s,onFocus:l,"aria-describedby":c}=t,{defaultChecked:u,isChecked:d,isFocusable:p,onChange:f,isIndeterminate:m,name:h,value:v,tabIndex:y,"aria-label":g,"aria-labelledby":b,"aria-invalid":E,...x}=e,w=function(e,t=[]){const n=Object.assign({},e);for(const e of t)e in n&&delete n[e];return n}(x,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),k=Oo(f),S=Oo(s),C=Oo(l),[_,O]=ne.useState(!1),[N,A]=ne.useState(!1),[R,I]=ne.useState(!1),[L,T]=ne.useState(!1);ne.useEffect(()=>uf(O),[]);const P=ne.useRef(null),[M,j]=ne.useState(!0),[D,V]=ne.useState(!!u),B=void 0!==d,F=B?d:D,$=ne.useCallback(e=>{r||n?e.preventDefault():(B||V(F?e.target.checked:!!m||e.target.checked),null==k||k(e))},[r,n,F,B,m,k]);oe(()=>{P.current&&(P.current.indeterminate=Boolean(m))},[m]),Xp(()=>{n&&A(!1)},[n,A]),oe(()=>{const e=P.current;(null==e?void 0:e.form)&&(e.form.onreset=()=>{V(!!u)})},[]);const z=n&&!p,W=ne.useCallback(e=>{" "===e.key&&T(!0)},[T]),U=ne.useCallback(e=>{" "===e.key&&T(!1)},[T]);oe(()=>{P.current&&P.current.checked!==F&&V(P.current.checked)},[P.current]);const H=ne.useCallback((e={},t=null)=>({...e,ref:t,"data-active":mf(L),"data-hover":mf(R),"data-checked":mf(F),"data-focus":mf(N),"data-focus-visible":mf(N&&_),"data-indeterminate":mf(m),"data-disabled":mf(n),"data-invalid":mf(a),"data-readonly":mf(r),"aria-hidden":!0,onMouseDown:hf(e.onMouseDown,e=>{N&&e.preventDefault(),T(!0)}),onMouseUp:hf(e.onMouseUp,()=>T(!1)),onMouseEnter:hf(e.onMouseEnter,()=>I(!0)),onMouseLeave:hf(e.onMouseLeave,()=>I(!1))}),[L,F,n,N,_,R,m,a,r]),q=ne.useCallback((e={},t=null)=>({...w,...e,ref:yo(t,e=>{e&&j("LABEL"===e.tagName)}),onClick:hf(e.onClick,()=>{var e;M||(null==(e=P.current)||e.click(),requestAnimationFrame(()=>{var e;null==(e=P.current)||e.focus()}))}),"data-disabled":mf(n),"data-checked":mf(F),"data-invalid":mf(a)}),[w,n,F,a,M]),Y=ne.useCallback((e={},t=null)=>({...e,ref:yo(P,t),type:"checkbox",name:h,value:v,id:i,tabIndex:y,onChange:hf(e.onChange,$),onBlur:hf(e.onBlur,S,()=>A(!1)),onFocus:hf(e.onFocus,C,()=>A(!0)),onKeyDown:hf(e.onKeyDown,W),onKeyUp:hf(e.onKeyUp,U),required:o,checked:F,disabled:z,readOnly:r,"aria-label":g,"aria-labelledby":b,"aria-invalid":E?Boolean(E):a,"aria-describedby":c,"aria-disabled":n,style:Kp}),[h,v,i,$,S,C,W,U,o,F,z,r,g,b,E,a,c,n,y]),Z=ne.useCallback((e={},t=null)=>({...e,ref:t,onMouseDown:hf(e.onMouseDown,Ef),onTouchStart:hf(e.onTouchStart,Ef),"data-disabled":mf(n),"data-checked":mf(F),"data-invalid":mf(a)}),[F,n,a]);return{state:{isInvalid:a,isFocused:N,isChecked:F,isActive:L,isHovered:R,isIndeterminate:m,isDisabled:n,isReadOnly:r,isRequired:o},getRootProps:q,getCheckboxProps:H,getInputProps:Y,getLabelProps:Z,htmlProps:w}}function Ef(e){e.preventDefault(),e.stopPropagation()}var xf={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},wf={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},kf=Dr({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),Sf=Dr({from:{opacity:0},to:{opacity:1}}),Cf=Dr({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),_f=uo(function(e,t){const n=pf(),r=mo("Checkbox",{...n,...e}),o=Rt(e),{spacing:a="0.5rem",className:i,children:s,iconColor:l,iconSize:c,icon:u=/* @__PURE__ */ne.createElement(gf,null),isChecked:d,isDisabled:p=(null==n?void 0:n.isDisabled),onChange:f,inputProps:m,...h}=o;let v=d;(null==n?void 0:n.value)&&o.value&&(v=n.value.includes(o.value));let y=f;(null==n?void 0:n.onChange)&&o.value&&(y=function(...e){return function(t){e.forEach(e=>{null==e||e(t)})}}(n.onChange,f));const{state:g,getInputProps:b,getCheckboxProps:E,getLabelProps:x,getRootProps:w}=bf({...h,isDisabled:p,isChecked:v,onChange:y}),k=ne.useMemo(()=>({animation:g.isIndeterminate?`${Sf} 20ms linear, ${Cf} 200ms linear`:`${kf} 200ms linear`,fontSize:c,color:l,...r.icon}),[l,c,,g.isIndeterminate,r.icon]),S=ne.cloneElement(u,{__css:k,isIndeterminate:g.isIndeterminate,isChecked:g.isChecked});/* @__PURE__ */
|
23
|
+
return ne.createElement(ho.label,{__css:{...wf,...r.container},className:ff("chakra-checkbox",i),...w()},/* @__PURE__ */ne.createElement("input",{className:"chakra-checkbox__input",...b(m,t)}),/* @__PURE__ */ne.createElement(ho.span,{__css:{...xf,...r.control},className:"chakra-checkbox__control",...E()},S),s&&/* @__PURE__ */ne.createElement(ho.span,{className:"chakra-checkbox__label",...x(),__css:{marginStart:a,...r.label}},s))});function Of(e,t){let n=function(e){const t=parseFloat(e);return"number"!=typeof t||Number.isNaN(t)?0:t}(e);const r=10**(t??10);return n=Math.round(n*r)/r,t?n.toFixed(t):n.toString()}function Nf(e){if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}function Af(e={}){const{onChange:t,precision:n,defaultValue:r,value:o,step:a=1,min:i=Number.MIN_SAFE_INTEGER,max:s=Number.MAX_SAFE_INTEGER,keepWithinRange:l=!0}=e,c=Oo(t),[u,d]=ne.useState(()=>null==r?"":Lf(r,a,n)??""),p=void 0!==o,f=p?o:u,m=If(Rf(f),a),h=n??m,v=ne.useCallback(e=>{e!==f&&(p||d(e.toString()),null==c||c(e.toString(),Rf(e)))},[c,p,f]),y=ne.useCallback(e=>{let t=e;return l&&(t=function(e,t,n){return null==e?e:(n<t&&console.warn("clamp: max cannot be less than min"),Math.min(Math.max(e,t),n))}(t,i,s)),Of(t,h)},[h,l,s,i]),g=ne.useCallback((e=a)=>{let t;t=""===f?Rf(e):Rf(f)+e,t=y(t),v(t)},[y,a,v,f]),b=ne.useCallback((e=a)=>{let t;t=""===f?Rf(-e):Rf(f)-e,t=y(t),v(t)},[y,a,v,f]),E=ne.useCallback(()=>{let e;e=null==r?"":Lf(r,a,n)??i,v(e)},[r,n,a,v,i]),x=ne.useCallback(e=>{const t=Lf(e,a,h)??i;v(t)},[h,a,v,i]),w=Rf(f);return{isOutOfRange:w>s||w<i,isAtMax:w===s,isAtMin:w===i,precision:h,value:f,valueAsNumber:w,update:v,reset:E,increment:g,decrement:b,clamp:y,cast:x,setValue:d}}function Rf(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function If(e,t){return Math.max(Nf(t),Nf(e))}function Lf(e,t,n){const r=Rf(e);if(Number.isNaN(r))return;const o=If(r,t);return Of(r,n??o)}function Tf(e,t,n,r){const o=Oo(n);return ne.useEffect(()=>{const a="function"==typeof e?e():e??document;if(n&&a)return a.addEventListener(t,o,r),()=>{a.removeEventListener(t,o,r)}},[t,e,r,o,n]),()=>{const n="function"==typeof e?e():e??document;null==n||n.removeEventListener(t,o,r)}}function Pf(...e){return ne.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{e&&function(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)}(e,t)})},e)}function Mf(e){const t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}_f.displayName="Checkbox";var jf=uo(function(e,t){const{htmlSize:n,...r}=e,o=mo("Input",r),a=Wp(Rt(r)),i=_o("chakra-input",e.className);/* @__PURE__ */
|
24
|
+
return ne.createElement(ho.input,{size:n,...a,__css:o.field,ref:t,className:i})});jf.displayName="Input",jf.id="Input";var[Df,Vf]=vo({name:"InputGroupStylesContext",errorMessage:"useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<InputGroup />\" "}),Bf=uo(function(e,t){const n=mo("Input",e),{children:r,className:o,...a}=Rt(e),i=_o("chakra-input__group",o),s={},l=xp(r),c=n.field;l.forEach(e=>{n&&(c&&"InputLeftElement"===e.type.id&&(s.paddingStart=c.height??c.h),c&&"InputRightElement"===e.type.id&&(s.paddingEnd=c.height??c.h),"InputRightAddon"===e.type.id&&(s.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(s.borderStartRadius=0))});const u=l.map(t=>{var n,r;const o=Mf({size:(null==(n=t.props)?void 0:n.size)||e.size,variant:(null==(r=t.props)?void 0:r.variant)||e.variant});return ne.cloneElement(t,"Input"!==t.type.id?o:Object.assign(o,s,t.props))});/* @__PURE__ */
|
25
|
+
return ne.createElement(ho.div,{className:i,ref:t,__css:{width:"100%",display:"flex",position:"relative"},...a},/* @__PURE__ */ne.createElement(Df,{value:n},u))});Bf.displayName="InputGroup";var Ff={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},$f=ho("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),zf=uo(function(e,t){const{placement:n="left",...r}=e,o=Ff[n]??{},a=Vf();/* @__PURE__ */
|
26
|
+
return ne.createElement($f,{ref:t,...r,__css:{...a.addon,...o}})});zf.displayName="InputAddon";var Wf=uo(function(e,t){/* @__PURE__ */
|
27
|
+
return ne.createElement(zf,{ref:t,placement:"left",...e,className:_o("chakra-input__left-addon",e.className)})});Wf.displayName="InputLeftAddon",Wf.id="InputLeftAddon";var Uf=uo(function(e,t){/* @__PURE__ */
|
28
|
+
return ne.createElement(zf,{ref:t,placement:"right",...e,className:_o("chakra-input__right-addon",e.className)})});Uf.displayName="InputRightAddon",Uf.id="InputRightAddon";var Hf=ho("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),qf=uo(function(e,t){const{placement:n="left",...r}=e,o=Vf(),a=o.field,i={["left"===n?"insetStart":"insetEnd"]:"0",width:(null==a?void 0:a.height)??(null==a?void 0:a.h),height:(null==a?void 0:a.height)??(null==a?void 0:a.h),fontSize:null==a?void 0:a.fontSize,...o.element};/* @__PURE__ */
|
29
|
+
return ne.createElement(Hf,{ref:t,__css:i,...r})});qf.id="InputElement",qf.displayName="InputElement";var Yf=uo(function(e,t){const{className:n,...r}=e,o=_o("chakra-input__left-element",n);/* @__PURE__ */
|
30
|
+
return ne.createElement(qf,{ref:t,placement:"left",className:o,...r})});Yf.id="InputLeftElement",Yf.displayName="InputLeftElement";var Zf=uo(function(e,t){const{className:n,...r}=e,o=_o("chakra-input__right-element",n);/* @__PURE__ */
|
31
|
+
return ne.createElement(qf,{ref:t,placement:"right",className:o,...r})});function Gf(e,t){return Array.isArray(e)?e.map(e=>null===e?null:t(e)):function(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):null!=e?t(e):null}Zf.id="InputRightElement",Zf.displayName="InputRightElement",Object.freeze(["base","sm","md","lg","xl","2xl"]);var Xf={path:/* @__PURE__ */ne.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/* @__PURE__ */ne.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__ */ne.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__ */ne.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},Kf=uo((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:a=!1,children:i,className:s,__css:l,...c}=e,u={ref:t,focusable:a,className:_o("chakra-icon",s),__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l}},d=r??Xf.viewBox;if(n&&"string"!=typeof n)/* @__PURE__ */
|
32
|
+
return ne.createElement(ho.svg,{as:n,...u,...c});const p=i??Xf.path;/* @__PURE__ */
|
33
|
+
return ne.createElement(ho.svg,{verticalAlign:"middle",viewBox:d,...u,...c},p)});Kf.displayName="Icon";var Jf=uo(function(e,t){const{ratio:n=4/3,children:r,className:o,...a}=e,i=ne.Children.only(r),s=_o("chakra-aspect-ratio",o);/* @__PURE__ */
|
34
|
+
return ne.createElement(ho.div,{ref:t,position:"relative",className:s,_before:{height:0,content:'""',display:"block",paddingBottom:Gf(n,e=>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"}},...a},i)});Jf.displayName="AspectRatio",uo(function(e,t){const n=fo("Badge",e),{className:r,...o}=Rt(e);/* @__PURE__ */
|
35
|
+
return ne.createElement(ho.span,{ref:t,className:_o("chakra-badge",e.className),...o,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...n}})}).displayName="Badge";var Qf=ho("div");Qf.displayName="Box";var em=uo(function(e,t){const{size:n,centerContent:r=!0,...o}=e;/* @__PURE__ */
|
36
|
+
return ne.createElement(Qf,{ref:t,boxSize:n,__css:{...r?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...o})});em.displayName="Square",uo(function(e,t){const{size:n,...r}=e;/* @__PURE__ */
|
37
|
+
return ne.createElement(em,{size:n,ref:t,borderRadius:"9999px",...r})}).displayName="Circle",ho("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}}).displayName="Center";var tm={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};uo(function(e,t){const{axis:n="both",...r}=e;/* @__PURE__ */
|
38
|
+
return ne.createElement(ho.div,{ref:t,__css:tm[n],...r,position:"absolute"})}),uo(function(e,t){const n=fo("Code",e),{className:r,...o}=Rt(e);/* @__PURE__ */
|
37
39
|
return ne.createElement(ho.code,{ref:t,className:_o("chakra-code",e.className),...o,__css:{display:"inline-block",...n}})}).displayName="Code",uo(function(e,t){const{className:n,centerContent:r,...o}=Rt(e),a=fo("Container",e);/* @__PURE__ */
|
38
40
|
return ne.createElement(ho.div,{ref:t,className:_o("chakra-container",n),...o,__css:{...a,...r&&{display:"flex",flexDirection:"column",alignItems:"center"}}})}).displayName="Container",uo(function(e,t){const{borderLeftWidth:n,borderBottomWidth:r,borderTopWidth:o,borderRightWidth:a,borderWidth:i,borderStyle:s,borderColor:l,...c}=fo("Divider",e),{className:u,orientation:d="horizontal",__css:p,...f}=Rt(e);/* @__PURE__ */
|
39
|
-
return ne.createElement(ho.hr,{ref:t,"aria-orientation":d,...f,__css:{...c,border:"0",borderColor:l,borderStyle:s,...{vertical:{borderLeftWidth:n||a||i||"1px",height:"100%"},horizontal:{borderBottomWidth:r||o||i||"1px",width:"100%"}}[d],...p},className:_o("chakra-divider",u)})}).displayName="Divider";var
|
40
|
-
return ne.createElement(ho.div,{ref:t,__css:{display:"flex",flexDirection:n,alignItems:r,justifyContent:o,flexWrap:a,flexBasis:i,flexGrow:s,flexShrink:l},...c})});
|
41
|
-
return ne.createElement(ho.div,{ref:t,__css:{display:"grid",gridTemplateAreas:n,gridGap:r,gridRowGap:o,gridColumnGap:a,gridAutoColumns:d,gridColumn:i,gridRow:s,gridAutoFlow:l,gridAutoRows:c,gridTemplateRows:u,gridTemplateColumns:p},...f})});function
|
41
|
+
return ne.createElement(ho.hr,{ref:t,"aria-orientation":d,...f,__css:{...c,border:"0",borderColor:l,borderStyle:s,...{vertical:{borderLeftWidth:n||a||i||"1px",height:"100%"},horizontal:{borderBottomWidth:r||o||i||"1px",width:"100%"}}[d],...p},className:_o("chakra-divider",u)})}).displayName="Divider";var nm=uo(function(e,t){const{direction:n,align:r,justify:o,wrap:a,basis:i,grow:s,shrink:l,...c}=e;/* @__PURE__ */
|
42
|
+
return ne.createElement(ho.div,{ref:t,__css:{display:"flex",flexDirection:n,alignItems:r,justifyContent:o,flexWrap:a,flexBasis:i,flexGrow:s,flexShrink:l},...c})});nm.displayName="Flex";var rm=uo(function(e,t){const{templateAreas:n,gap:r,rowGap:o,columnGap:a,column:i,row:s,autoFlow:l,autoRows:c,templateRows:u,autoColumns:d,templateColumns:p,...f}=e;/* @__PURE__ */
|
43
|
+
return ne.createElement(ho.div,{ref:t,__css:{display:"grid",gridTemplateAreas:n,gridGap:r,gridRowGap:o,gridColumnGap:a,gridAutoColumns:d,gridColumn:i,gridRow:s,gridAutoFlow:l,gridAutoRows:c,gridTemplateRows:u,gridTemplateColumns:p},...f})});function om(e){return Gf(e,e=>"auto"===e?"auto":`span ${e}/span ${e}`)}rm.displayName="Grid",uo(function(e,t){const{area:n,colSpan:r,colStart:o,colEnd:a,rowEnd:i,rowSpan:s,rowStart:l,...c}=e,u=Mf({gridArea:n,gridColumn:om(r),gridRow:om(s),gridColumnStart:o,gridColumnEnd:a,gridRowStart:l,gridRowEnd:i});/* @__PURE__ */
|
42
44
|
return ne.createElement(ho.div,{ref:t,__css:u,...c})}).displayName="GridItem",uo(function(e,t){const n=fo("Heading",e),{className:r,...o}=Rt(e);/* @__PURE__ */
|
43
45
|
return ne.createElement(ho.h2,{ref:t,className:_o("chakra-heading",e.className),...o,__css:n})}).displayName="Heading",uo(function(e,t){const n=fo("Mark",e),r=Rt(e);/* @__PURE__ */
|
44
|
-
return ne.createElement(
|
46
|
+
return ne.createElement(Qf,{ref:t,...r,as:"mark",__css:{bg:"transparent",whiteSpace:"nowrap",...n}})}),uo(function(e,t){const n=fo("Kbd",e),{className:r,...o}=Rt(e);/* @__PURE__ */
|
45
47
|
return ne.createElement(ho.kbd,{ref:t,className:_o("chakra-kbd",r),...o,__css:{fontFamily:"mono",...n}})}).displayName="Kbd",uo(function(e,t){const n=fo("Link",e),{className:r,isExternal:o,...a}=Rt(e);/* @__PURE__ */
|
46
48
|
return ne.createElement(ho.a,{target:o?"_blank":void 0,rel:o?"noopener":void 0,ref:t,className:_o("chakra-link",r),...a,__css:n})}).displayName="Link",uo(function(e,t){const{isExternal:n,target:r,rel:o,className:a,...i}=e;/* @__PURE__ */
|
47
49
|
return ne.createElement(ho.a,{...i,ref:t,className:_o("chakra-linkbox__overlay",a),rel:n?"noopener noreferrer":o,target:n?"_blank":r,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}})}),uo(function(e,t){const{className:n,...r}=e;/* @__PURE__ */
|
48
|
-
return ne.createElement(ho.div,{ref:t,position:"relative",...r,className:_o("chakra-linkbox",n),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}})});var[
|
49
|
-
return ne.createElement(
|
50
|
-
return ne.createElement(
|
51
|
-
return ne.createElement(
|
52
|
-
return ne.createElement(ho.li,{ref:t,...e,__css:n.item})}).displayName="ListItem",uo(function(e,t){const n=
|
53
|
-
return ne.createElement(
|
54
|
-
return ne.createElement(
|
50
|
+
return ne.createElement(ho.div,{ref:t,position:"relative",...r,className:_o("chakra-linkbox",n),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}})});var[am,im]=vo({name:"ListStylesContext",errorMessage:"useListStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<List />\" "}),sm=uo(function(e,t){const n=mo("List",e),{children:r,styleType:o="none",stylePosition:a,spacing:i,...s}=Rt(e),l=xp(r);/* @__PURE__ */
|
51
|
+
return ne.createElement(am,{value:n},/* @__PURE__ */ne.createElement(ho.ul,{ref:t,listStyleType:o,listStylePosition:a,role:"list",__css:{...n.container,...i?{"& > *:not(style) ~ *:not(style)":{mt:i}}:{}},...s},l))});sm.displayName="List",uo((e,t)=>{const{as:n,...r}=e;/* @__PURE__ */
|
52
|
+
return ne.createElement(sm,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})}).displayName="OrderedList",uo(function(e,t){const{as:n,...r}=e;/* @__PURE__ */
|
53
|
+
return ne.createElement(sm,{ref:t,as:"ul",styleType:"initial",marginStart:"1em",...r})}).displayName="UnorderedList",uo(function(e,t){const n=im();/* @__PURE__ */
|
54
|
+
return ne.createElement(ho.li,{ref:t,...e,__css:n.item})}).displayName="ListItem",uo(function(e,t){const n=im();/* @__PURE__ */
|
55
|
+
return ne.createElement(Kf,{ref:t,role:"presentation",...e,__css:n.icon})}).displayName="ListIcon";var lm=uo(function(e,t){const{columns:n,spacingX:r,spacingY:o,spacing:a,minChildWidth:i,...s}=e,l=ao(),c=i?function(e,t){return Gf(e,e=>{const n=function(e,t,n){const r=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return e=>{const n=o.filter(Boolean),a=r.map((t,r)=>function(e,t,n){if(null==t)return t;const r=t=>{var n,r;return null==(r=null==(n=e.__cssMap)?void 0:n[t])?void 0:r.value};return r(t)??r(n)??n}(e,`sizes.${t}`,n[r]??t));return Array.isArray(t)?a:a[0]}}(0,e,function(e){return"number"==typeof e?`${e}px`:e}(e))(t);return null===e?null:`repeat(auto-fit, minmax(${n}, 1fr))`})}(i,l):Gf(n,e=>null===e?null:`repeat(${e}, minmax(0, 1fr))`);/* @__PURE__ */
|
56
|
+
return ne.createElement(rm,{ref:t,gap:a,columnGap:r,rowGap:o,templateColumns:c,...s})});lm.displayName="SimpleGrid",ho("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}}).displayName="Spacer";var cm="& > *:not(style) ~ *:not(style)",um=e=>/* @__PURE__ */ne.createElement(ho.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});um.displayName="StackItem";var dm=uo((e,t)=>{const{isInline:n,direction:r,align:o,justify:a,spacing:i="0.5rem",wrap:s,children:l,divider:c,className:u,shouldWrapChildren:d,...p}=e,f=n?"row":r??"column",m=ne.useMemo(()=>function(e){const{spacing:t,direction:n}=e,r={column:{marginTop:t,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:t},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:t,marginStart:0},"row-reverse":{marginTop:0,marginEnd:t,marginBottom:0,marginStart:0}};return{flexDirection:n,[cm]:Gf(n,e=>r[e])}}({direction:f,spacing:i}),[f,i]),h=ne.useMemo(()=>function(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":Gf(n,e=>r[e])}}({spacing:i,direction:f}),[i,f]),v=!!c,y=!d&&!v,g=ne.useMemo(()=>{const e=xp(l);return y?e:e.map((t,n)=>{const r=void 0!==t.key?t.key:n,o=n+1===e.length,a=d?/* @__PURE__ */ne.createElement(um,{key:r},t):t;if(!v)return a;const i=ne.cloneElement(c,{__css:h});/* @__PURE__ */
|
55
57
|
return ne.createElement(ne.Fragment,{key:r},a,o?null:i)})},[c,h,v,y,d,l]),b=_o("chakra-stack",u);/* @__PURE__ */
|
56
|
-
return ne.createElement(ho.div,{ref:t,display:"flex",alignItems:o,justifyContent:a,flexDirection:m.flexDirection,flexWrap:s,className:b,__css:v?{}:{[
|
57
|
-
return ne.createElement(ho.p,{ref:t,className:_o("chakra-text",e.className),...l,...s,__css:n})}).displayName="Text";var
|
58
|
-
return ne.createElement(ho.div,{ref:t,className:_o("chakra-wrap",c),overflow:"hidden",...d},/* @__PURE__ */ne.createElement(ho.ul,{className:"chakra-wrap__list",__css:p},f))});
|
59
|
-
return ne.createElement(ho.li,{ref:t,__css:{display:"flex",alignItems:"flex-start"},className:_o("chakra-wrap__listitem",n),...r})});function hm(e){const t=e.target,{tagName:n,isContentEditable:r}=t;return"INPUT"!==n&&"TEXTAREA"!==n&&!0!==r}function vm(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function ym(e){return!!vm(e)&&e instanceof(e.ownerDocument.defaultView??window).HTMLElement}function gm(e){return vm(e)?e.ownerDocument:document}mm.displayName="WrapItem";var bm=e=>e.hasAttribute("tabindex");function Em(e){return!(!e.parentElement||!Em(e.parentElement))||e.hidden}function xm(e){if(!ym(e)||Em(e)||function(e){return!0===Boolean(e.getAttribute("disabled"))||!0===Boolean(e.getAttribute("aria-disabled"))}(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():!!function(e){const t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||bm(e)}var wm="top",km="bottom",Sm="right",Cm="left",_m=[wm,km,Sm,Cm],Om=/*#__PURE__*/_m.reduce(function(e,t){return e.concat([t+"-start",t+"-end"])},[]),Nm=/*#__PURE__*/[].concat(_m,["auto"]).reduce(function(e,t){return e.concat([t,t+"-start",t+"-end"])},[]),Am=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Rm(e){return e?(e.nodeName||"").toLowerCase():null}function Im(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Tm(e){return e instanceof Im(e).Element||e instanceof Element}function Lm(e){return e instanceof Im(e).HTMLElement||e instanceof HTMLElement}function Pm(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Im(e).ShadowRoot||e instanceof ShadowRoot)}function Mm(e){return e.split("-")[0]}var jm=Math.max,Dm=Math.min,Vm=Math.round;function Bm(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(Lm(e)&&t){var a=e.offsetHeight,i=e.offsetWidth;i>0&&(r=Vm(n.width)/i||1),a>0&&(o=Vm(n.height)/a||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function Fm(e){var t=Bm(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 $m(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Pm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function zm(e){return Im(e).getComputedStyle(e)}function Um(e){return["table","td","th"].indexOf(Rm(e))>=0}function Wm(e){return((Tm(e)?e.ownerDocument:e.document)||window.document).documentElement}function Hm(e){return"html"===Rm(e)?e:e.assignedSlot||e.parentNode||(Pm(e)?e.host:null)||Wm(e)}function qm(e){return Lm(e)&&"fixed"!==zm(e).position?e.offsetParent:null}function Ym(e){for(var t=Im(e),n=qm(e);n&&Um(n)&&"static"===zm(n).position;)n=qm(n);return n&&("html"===Rm(n)||"body"===Rm(n)&&"static"===zm(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Lm(e)&&"fixed"===zm(e).position)return null;var n=Hm(e);for(Pm(n)&&(n=n.host);Lm(n)&&["html","body"].indexOf(Rm(n))<0;){var r=zm(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 Zm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Gm(e,t,n){return jm(e,Dm(t,n))}function Xm(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Km(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function Jm(e){return e.split("-")[1]}var Qm={top:"auto",right:"auto",bottom:"auto",left:"auto"};function eh(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=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,h=void 0===m?0:m,v="function"==typeof u?u({x:f,y:h}):{x:f,y:h};f=v.x,h=v.y;var y=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),b=Cm,E=wm,x=window;if(c){var w=Ym(n),k="clientHeight",S="clientWidth";w===Im(n)&&"static"!==zm(w=Wm(n)).position&&"absolute"===s&&(k="scrollHeight",S="scrollWidth"),(o===wm||(o===Cm||o===Sm)&&"end"===a)&&(E=km,h-=(d&&w===x&&x.visualViewport?x.visualViewport.height:w[k])-r.height,h*=l?1:-1),o!==Cm&&(o!==wm&&o!==km||"end"!==a)||(b=Sm,f-=(d&&w===x&&x.visualViewport?x.visualViewport.width:w[S])-r.width,f*=l?1:-1)}var C,_=Object.assign({position:s},c&&Qm),O=!0===u?function(e){var t=e.y,n=window.devicePixelRatio||1;return{x:Vm(e.x*n)/n||0,y:Vm(t*n)/n||0}}({x:f,y:h}):{x:f,y:h};return f=O.x,h=O.y,Object.assign({},_,l?((C={})[E]=g?"0":"",C[b]=y?"0":"",C.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+h+"px)":"translate3d("+f+"px, "+h+"px, 0)",C):((t={})[E]=g?h+"px":"",t[b]=y?f+"px":"",t.transform="",t))}var th={passive:!0},nh={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,s=void 0===i||i,l=Im(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(e){e.addEventListener("scroll",n.update,th)}),s&&l.addEventListener("resize",n.update,th),function(){a&&c.forEach(function(e){e.removeEventListener("scroll",n.update,th)}),s&&l.removeEventListener("resize",n.update,th)}},data:{}},rh={left:"right",right:"left",bottom:"top",top:"bottom"};function oh(e){return e.replace(/left|right|bottom|top/g,function(e){return rh[e]})}var ah={start:"end",end:"start"};function ih(e){return e.replace(/start|end/g,function(e){return ah[e]})}function sh(e){var t=Im(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function lh(e){return Bm(Wm(e)).left+sh(e).scrollLeft}function ch(e){var t=zm(e);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function uh(e){return["html","body","#document"].indexOf(Rm(e))>=0?e.ownerDocument.body:Lm(e)&&ch(e)?e:uh(Hm(e))}function dh(e,t){var n;void 0===t&&(t=[]);var r=uh(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=Im(r),i=o?[a].concat(a.visualViewport||[],ch(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(dh(Hm(i)))}function ph(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fh(e,t){return"viewport"===t?ph(function(e){var t=Im(e),n=Wm(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,i=0,s=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,s=r.offsetTop)),{width:o,height:a,x:i+lh(e),y:s}}(e)):Tm(t)?function(e){var t=Bm(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):ph(function(e){var t,n=Wm(e),r=sh(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=jm(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=jm(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+lh(e),l=-r.scrollTop;return"rtl"===zm(o||n).direction&&(s+=jm(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}(Wm(e)))}function mh(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?Mm(o):null,i=o?Jm(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case wm:t={x:s,y:n.y-r.height};break;case km:t={x:s,y:n.y+n.height};break;case Sm:t={x:n.x+n.width,y:l};break;case Cm:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=a?Zm(a):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 hh(e,t){void 0===t&&(t={});var n=t.placement,r=void 0===n?e.placement:n,o=t.boundary,a=void 0===o?"clippingParents":o,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=Xm("number"!=typeof f?f:Km(f,_m)),h=e.rects.popper,v=e.elements[d?"popper"===c?"reference":"popper":c],y=function(e,t,n){var r="clippingParents"===t?function(e){var t=dh(Hm(e)),n=["absolute","fixed"].indexOf(zm(e).position)>=0&&Lm(e)?Ym(e):e;return Tm(n)?t.filter(function(e){return Tm(e)&&$m(e,n)&&"body"!==Rm(e)}):[]}(e):[].concat(t),o=[].concat(r,[n]),a=o.reduce(function(t,n){var r=fh(e,n);return t.top=jm(r.top,t.top),t.right=Dm(r.right,t.right),t.bottom=Dm(r.bottom,t.bottom),t.left=jm(r.left,t.left),t},fh(e,o[0]));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(Tm(v)?v:v.contextElement||Wm(e.elements.popper),a,s),g=Bm(e.elements.reference),b=mh({reference:g,element:h,strategy:"absolute",placement:r}),E=ph(Object.assign({},h,b)),x="popper"===c?E:g,w={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},k=e.modifiersData.offset;if("popper"===c&&k){var S=k[r];Object.keys(w).forEach(function(e){var t=[Sm,km].indexOf(e)>=0?1:-1,n=[wm,km].indexOf(e)>=0?"y":"x";w[e]+=S[n]*t})}return w}function vh(e,t){void 0===t&&(t={});var n=t.boundary,r=t.rootBoundary,o=t.padding,a=t.flipVariations,i=t.allowedAutoPlacements,s=void 0===i?Nm:i,l=Jm(t.placement),c=l?a?Om:Om.filter(function(e){return Jm(e)===l}):_m,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,a){return t[a]=hh(e,{placement:a,boundary:n,rootBoundary:r,padding:o})[Mm(a)],t},{});return Object.keys(d).sort(function(e,t){return d[e]-d[t]})}var yh={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 o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,m=void 0===f||f,h=n.allowedAutoPlacements,v=t.options.placement,y=Mm(v),g=l||(y!==v&&m?function(e){if("auto"===Mm(e))return[];var t=oh(e);return[ih(e),t,ih(t)]}(v):[oh(v)]),b=[v].concat(g).reduce(function(e,n){return e.concat("auto"===Mm(n)?vh(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:h}):n)},[]),E=t.rects.reference,x=t.rects.popper,w=new Map,k=!0,S=b[0],C=0;C<b.length;C++){var _=b[C],O=Mm(_),N="start"===Jm(_),A=[wm,km].indexOf(O)>=0,R=A?"width":"height",I=hh(t,{placement:_,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),T=A?N?Sm:Cm:N?km:wm;E[R]>x[R]&&(T=oh(T));var L=oh(T),P=[];if(a&&P.push(I[O]<=0),s&&P.push(I[T]<=0,I[L]<=0),P.every(function(e){return e})){S=_,k=!1;break}w.set(_,P)}if(k)for(var M=function(e){var t=b.find(function(t){var n=w.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},j=m?3:1;j>0&&"break"!==M(j);j--);t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function gh(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 bh(e){return[wm,Sm,km,Cm].some(function(t){return e[t]>=0})}var Eh={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.name,r=e.options.offset,o=void 0===r?[0,0]:r,a=Nm.reduce(function(e,n){return e[n]=function(e,t,n){var r=Mm(e),o=[Cm,wm].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[Cm,Sm].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}(n,t.rects,o),e},{}),i=a[t.placement],s=i.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=i.x,t.modifiersData.popperOffsets.y+=s),t.modifiersData[n]=a}},xh={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,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,p=hh(t,{boundary:n.boundary,rootBoundary:n.rootBoundary,padding:n.padding,altBoundary:n.altBoundary}),f=Mm(t.placement),m=Jm(t.placement),h=!m,v=Zm(f),y="x"===v?"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,w="number"==typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(g){if(a){var C,_="y"===v?wm:Cm,O="y"===v?km:Sm,N="y"===v?"height":"width",A=g[v],R=A+p[_],I=A-p[O],T=c?-E[N]/2:0,L="start"===m?b[N]:E[N],P="start"===m?-E[N]:-b[N],M=t.elements.arrow,j=c&&M?Fm(M):{width:0,height:0},D=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=D[_],B=D[O],F=Gm(0,b[N],j[N]),$=h?b[N]/2-T-F-V-w.mainAxis:L-F-V-w.mainAxis,z=h?-b[N]/2+T+F+B+w.mainAxis:P+F+B+w.mainAxis,U=t.elements.arrow&&Ym(t.elements.arrow),W=null!=(C=null==k?void 0:k[v])?C:0,H=A+z-W,q=Gm(c?Dm(R,A+$-W-(U?"y"===v?U.clientTop||0:U.clientLeft||0:0)):R,A,c?jm(I,H):I);g[v]=q,S[v]=q-A}if(s){var Y,Z=g[y],G="y"===y?"height":"width",X=Z+p["x"===v?wm:Cm],K=Z-p["x"===v?km:Sm],J=-1!==[wm,Cm].indexOf(f),Q=null!=(Y=null==k?void 0:k[y])?Y:0,ee=J?X:Z-b[G]-E[G]-Q+w.altAxis,te=J?Z+b[G]+E[G]-Q-w.altAxis:K,ne=c&&J?function(e,t,n){var r=Gm(e,t,n);return r>n?n:r}(ee,Z,te):Gm(c?ee:X,Z,c?te:K);g[y]=ne,S[y]=ne-Z}t.modifiersData[r]=S}},requiresIfExists:["offset"]};function wh(e,t,n){void 0===n&&(n=!1);var r=Lm(t),o=Lm(t)&&function(e){var t=e.getBoundingClientRect(),n=Vm(t.width)/e.offsetWidth||1,r=Vm(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=Wm(t),i=Bm(e,o),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Rm(t)||ch(a))&&(s=function(e){return e!==Im(e)&&Lm(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:sh(e);var t}(t)),Lm(t)?((l=Bm(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=lh(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function kh(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}function Sh(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 Ch='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',_h=["name","enabled","phase","fn","effect","requires","options"],Oh="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Nh={placement:"bottom",modifiers:[],strategy:"absolute"};function Ah(){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 Rh(e){void 0===e&&(e={});var t=e.defaultModifiers,n=void 0===t?[]:t,r=e.defaultOptions,o=void 0===r?Nh:r;return function(e,t,r){void 0===r&&(r=o);var a,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Nh,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(r){var a="function"==typeof r?r(s.options):r;d(),s.options=Object.assign({},o,s.options,a),s.scrollParents={reference:Tm(e)?dh(e):e.contextElement?dh(e.contextElement):[],popper:dh(t)};var i,c,p,f=function(e){var t=kh(e);return Am.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=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),_h).filter(function(e,t,n){return n.indexOf(e)===t}).forEach(function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(Sh(Ch,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(Sh(Ch,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":Am.indexOf(t.phase)<0&&console.error(Sh(Ch,t.name,'"phase"',"either "+Am.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(Sh(Ch,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(Sh(Ch,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(Sh(Ch,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Sh(Ch,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 '+_h.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(Sh('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),n,n))})})})})(m),"auto"===Mm(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 h=zm(t);[h.marginTop,h.marginRight,h.marginBottom,h.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(Ah(t,n)){s.rects={reference:wh(t,Ym(n),"fixed"===s.options.strategy),popper:Fm(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,o=0;o<s.orderedModifiers.length;o++){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 a=s.orderedModifiers[o],i=a.fn,l=a.options;"function"==typeof i&&(s=i({state:s,options:void 0===l?{}:l,name:a.name,instance:u})||s)}else s.reset=!1,o=-1}}else"production"!==process.env.NODE_ENV&&console.error(Oh)}},update:(a=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(a())})})),i}),destroy:function(){d(),c=!0}};if(!Ah(e,t))return"production"!==process.env.NODE_ENV&&console.error(Oh),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 Ih=/*#__PURE__*/Rh({defaultModifiers:[nh,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=mh({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,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,s=n.roundOffsets,l=void 0===s||s;if("production"!==process.env.NODE_ENV){var c=zm(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:Mm(t.placement),variation:Jm(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,eh(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,eh(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]||{},o=t.elements[e];Lm(o)&&Rm(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.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],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Lm(r)&&Rm(r)&&(Object.assign(r.style,a),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},Eh,yh,xh,{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=Mm(n.placement),l=Zm(s),c=[Cm,Sm].indexOf(s)>=0?"height":"width";if(a&&i){var u=function(e,t){return Xm("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Km(e,_m))}(o.padding,n),d=Fm(a),p="y"===l?wm:Cm,f="y"===l?km:Sm,m=n.rects.reference[c]+n.rects.reference[l]-i[l]-n.rects.popper[c],h=i[l]-n.rects.reference[l],v=Ym(a),y=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,g=y/2-d[c]/2+(m/2-h/2),b=Gm(u[p],g,y-d[c]-u[f]);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&&(Lm(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(" "))),$m(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,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=hh(t,{elementContext:"reference"}),s=hh(t,{altBoundary:!0}),l=gh(i,r),c=gh(s,o,a),u=bh(l),d=bh(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})}}]}),Th=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),Lh={arrowShadowColor:Th("--popper-arrow-shadow-color"),arrowSize:Th("--popper-arrow-size","8px"),arrowSizeHalf:Th("--popper-arrow-size-half"),arrowBg:Th("--popper-arrow-bg"),transformOrigin:Th("--popper-transform-origin"),arrowOffset:Th("--popper-arrow-offset")},Ph={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"},Mh={scroll:!0,resize:!0};function jh(e){let t;return t="object"==typeof e?{enabled:!0,options:{...Mh,...e}}:{enabled:e,options:Mh},t}var Dh={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{e.elements.popper.style.width=`${e.elements.reference.offsetWidth}px`}},Vh={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{Bh(e)},effect:({state:e})=>()=>{Bh(e)}},Bh=e=>{e.elements.popper.style.setProperty(Lh.transformOrigin.var,Ph[e.placement])},Fh={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{$h(e)}},$h=e=>{var t;if(!e.placement)return;const n=zh(e.placement);if((null==(t=e.elements)?void 0:t.arrow)&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:Lh.arrowSize.varRef,height:Lh.arrowSize.varRef,zIndex:-1});const t={[Lh.arrowSizeHalf.var]:`calc(${Lh.arrowSize.varRef} / 2)`,[Lh.arrowOffset.var]:`calc(${Lh.arrowSizeHalf.varRef} * -1)`};for(const n in t)e.elements.arrow.style.setProperty(n,t[n])}},zh=e=>e.startsWith("top")?{property:"bottom",value:Lh.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:Lh.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:Lh.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:Lh.arrowOffset.varRef}:void 0,Uh={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{Wh(e)},effect:({state:e})=>()=>{Wh(e)}},Wh=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");var n;t&&Object.assign(t.style,{transform:"rotate(45deg)",background:Lh.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:(n=e.placement,n.includes("top")?"1px 1px 1px 0 var(--popper-arrow-shadow-color)":n.includes("bottom")?"-1px -1px 1px 0 var(--popper-arrow-shadow-color)":n.includes("right")?"-1px 1px 1px 0 var(--popper-arrow-shadow-color)":n.includes("left")?"1px -1px 1px 0 var(--popper-arrow-shadow-color)":void 0)})},Hh={"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"}},qh={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function Yh(e){const{size:t,shadowColor:n,bg:r,style:o}=e,a={...o,position:"absolute"};return t&&(a["--popper-arrow-size"]=t),n&&(a["--popper-arrow-shadow-color"]=n),r&&(a["--popper-arrow-bg"]=r),a}function Zh(e,t){var n;const r=e.target;return!(e.button>0||r&&!Gh(r).contains(r)||(null==(n=t.current)?void 0:n.contains(r)))}function Gh(e){return(null==e?void 0:e.ownerDocument)??document}var Xh=(...e)=>e.filter(Boolean).join(" ");function Kh(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}function Jh(...e){return function(t){e.forEach(e=>{null==e||e(t)})}}var[Qh,ev,tv,nv]=Co(),[rv,ov]=vo({strict:!1,name:"MenuContext"});function av(e){return(null==e?void 0:e.ownerDocument)??document}function iv(e){return av(e).activeElement===e}function sv(e){var t,n;return!!function(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}(n=e)&&n instanceof(n.ownerDocument.defaultView??window).HTMLElement&&!!(null==(t=null==e?void 0:e.getAttribute("role"))?void 0:t.startsWith("menuitem"))}function lv(e={},t=null){const{onMouseEnter:n,onMouseMove:r,onMouseLeave:o,onClick:a,isDisabled:i,isFocusable:s,closeOnSelect:l,type:c,...u}=e,d=ov(),{setFocusedIndex:p,focusedIndex:f,closeOnSelect:m,onClose:h,menuRef:v,isOpen:y,menuId:g}=d,b=ne.useRef(null),E=`${g}-menuitem-${ne.useId()}`,{index:x,register:w}=nv({disabled:i&&!s}),k=ne.useCallback(e=>{null==n||n(e),i||p(x)},[p,x,i,n]),S=ne.useCallback(e=>{null==r||r(e),b.current&&!iv(b.current)&&k(e)},[k,r]),C=ne.useCallback(e=>{null==o||o(e),i||p(-1)},[p,i,o]),_=ne.useCallback(e=>{null==a||a(e),sv(e.currentTarget)&&(l??m)&&h()},[h,a,m,l]),O=x===f,N=i&&!s;Kp(()=>{y&&(O&&!N&&b.current?requestAnimationFrame(()=>{var e;null==(e=b.current)||e.focus()}):v.current&&!iv(v.current)&&v.current.focus())},[O,N,v,y]);const A=function(e={}){const{ref:t,isDisabled:n,isFocusable:r,clickOnEnter:o=!0,clickOnSpace:a=!0,onMouseDown:i,onMouseUp:s,onClick:l,onKeyDown:c,onKeyUp:u,tabIndex:d,onMouseOver:p,onMouseLeave:f,...m}=e,[h,v]=ne.useState(!0),[y,g]=ne.useState(!1),b=function(){const e=ne.useRef(/* @__PURE__ */new Map),t=e.current,n=ne.useCallback((t,n,r,o)=>{e.current.set(r,{type:n,el:t,options:o}),t.addEventListener(n,r,o)},[]),r=ne.useCallback((t,n,r,o)=>{t.removeEventListener(n,r,o),e.current.delete(r)},[]);return ne.useEffect(()=>()=>{t.forEach((e,t)=>{r(e.el,e.type,t,e.options)})},[r,t]),{add:n,remove:r}}(),E=h?d:d||0,x=n&&!r,w=ne.useCallback(e=>{if(n)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==l||l(e)},[n,l]),k=ne.useCallback(e=>{y&&hm(e)&&(e.preventDefault(),e.stopPropagation(),g(!1),b.remove(document,"keyup",k,!1))},[y,b]),S=ne.useCallback(e=>{if(null==c||c(e),n||e.defaultPrevented||e.metaKey)return;if(!hm(e.nativeEvent)||h)return;const t=o&&"Enter"===e.key;a&&" "===e.key&&(e.preventDefault(),g(!0)),t&&(e.preventDefault(),e.currentTarget.click()),b.add(document,"keyup",k,!1)},[n,h,c,o,a,b,k]),C=ne.useCallback(e=>{null==u||u(e),n||e.defaultPrevented||e.metaKey||hm(e.nativeEvent)&&!h&&a&&" "===e.key&&(e.preventDefault(),g(!1),e.currentTarget.click())},[a,h,n,u]),_=ne.useCallback(e=>{0===e.button&&(g(!1),b.remove(document,"mouseup",_,!1))},[b]),O=ne.useCallback(e=>{if(0===e.button){if(n)return e.stopPropagation(),void e.preventDefault();h||g(!0),e.currentTarget.focus({preventScroll:!0}),b.add(document,"mouseup",_,!1),null==i||i(e)}},[n,h,i,b,_]),N=ne.useCallback(e=>{0===e.button&&(h||g(!1),null==s||s(e))},[s,h]),A=ne.useCallback(e=>{n?e.preventDefault():null==p||p(e)},[n,p]),R=ne.useCallback(e=>{y&&(e.preventDefault(),g(!1)),null==f||f(e)},[y,f]),I=yo(t,e=>{e&&"BUTTON"!==e.tagName&&v(!1)});return h?{...m,ref:I,type:"button","aria-disabled":x?void 0:n,disabled:x,onClick:w,onMouseDown:i,onMouseUp:s,onKeyUp:u,onKeyDown:c,onMouseOver:p,onMouseLeave:f}:{...m,ref:I,role:"button","data-active":(T=y,T?"":void 0),"aria-disabled":n?"true":void 0,tabIndex:x?void 0:E,onClick:w,onMouseDown:O,onMouseUp:N,onKeyUp:C,onKeyDown:S,onMouseOver:A,onMouseLeave:R};var T}({onClick:_,onMouseEnter:k,onMouseMove:S,onMouseLeave:C,ref:yo(w,b,t),isDisabled:i,isFocusable:s});return{...u,...A,type:c??A.type,id:E,role:"menuitem",tabIndex:O?0:-1}}var[cv,uv]=vo({name:"MenuStylesContext",errorMessage:"useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Menu />\" "}),dv=e=>{const{children:t}=e,n=mo("Menu",e),r=Rt(e),{direction:o}=ao(),{descendants:a,...i}=function(e={}){const{id:t,closeOnSelect:n=!0,closeOnBlur:r=!0,autoSelect:o=!0,isLazy:a,isOpen:i,defaultIsOpen:s,onClose:l,onOpen:c,placement:u="bottom-start",lazyBehavior:d="unmount",direction:p,computePositionOnMount:f=!1,...m}=e,h=ne.useRef(null),v=ne.useRef(null),y=tv(),g=ne.useCallback(()=>{requestAnimationFrame(()=>{var e;null==(e=h.current)||e.focus({preventScroll:!1})})},[]),b=ne.useCallback(()=>{const e=setTimeout(()=>{const e=y.firstEnabled();e&&N(e.index)});L.current.add(e)},[y]),E=ne.useCallback(()=>{const e=setTimeout(()=>{const e=y.lastEnabled();e&&N(e.index)});L.current.add(e)},[y]),x=ne.useCallback(()=>{null==c||c(),o?b():g()},[o,b,g,c]),{isOpen:w,onOpen:k,onClose:S,onToggle:C}=function(e={}){const{onClose:t,onOpen:n,isOpen:r,id:o}=e,a=Ro(n),i=Ro(t),[s,l]=ne.useState(e.defaultIsOpen||!1),c=void 0!==r?r:s,u=void 0!==r,d=ne.useId(),p=o??`disclosure-${d}`,f=ne.useCallback(()=>{u||l(!1),null==i||i()},[u,i]),m=ne.useCallback(()=>{u||l(!0),null==a||a()},[u,a]),h=ne.useCallback(()=>{c?f():m()},[c,m,f]);return{isOpen:c,onOpen:m,onClose:f,onToggle:h,isControlled:u,getButtonProps:function(e={}){return{...e,"aria-expanded":c,"aria-controls":p,onClick(t){var n;null==(n=e.onClick)||n.call(e,t),h()}}},getDisclosureProps:function(e={}){return{...e,hidden:!c,id:p}}}}({isOpen:i,defaultIsOpen:s,onClose:l,onOpen:x});!function(e){const{ref:t,handler:n,enabled:r=!0}=e,o=Ro(n),a=ne.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;ne.useEffect(()=>{if(!r)return;const e=e=>{Zh(e,t)&&(a.isPointerDown=!0)},i=e=>{a.ignoreEmulatedMouseEvents?a.ignoreEmulatedMouseEvents=!1:a.isPointerDown&&n&&Zh(e,t)&&(a.isPointerDown=!1,o(e))},s=e=>{a.ignoreEmulatedMouseEvents=!0,n&&a.isPointerDown&&Zh(e,t)&&(a.isPointerDown=!1,o(e))},l=Gh(t.current);return l.addEventListener("mousedown",e,!0),l.addEventListener("mouseup",i,!0),l.addEventListener("touchstart",e,!0),l.addEventListener("touchend",s,!0),()=>{l.removeEventListener("mousedown",e,!0),l.removeEventListener("mouseup",i,!0),l.removeEventListener("touchstart",e,!0),l.removeEventListener("touchend",s,!0)}},[n,t,o,a,r])}({enabled:w&&r,ref:h,handler:e=>{var t;(null==(t=v.current)?void 0:t.contains(e.target))||S()}});const _=function(e={}){const{enabled:t=!0,modifiers:n,placement:r="bottom",strategy:o="absolute",arrowPadding:a=8,eventListeners:i=!0,offset:s,gutter:l=8,flip:c=!0,boundary:u="clippingParents",preventOverflow:d=!0,matchWidth:p,direction:f="ltr"}=e,m=ne.useRef(null),h=ne.useRef(null),v=ne.useRef(null),y=function(e,t="ltr"){var n;const r=(null==(n=Hh[e])?void 0:n[t])||e;return"ltr"===t?r:qh[e]??r}(r,f),g=ne.useRef(()=>{}),b=ne.useCallback(()=>{var e;t&&m.current&&h.current&&(null==(e=g.current)||e.call(g),v.current=Ih(m.current,h.current,{placement:y,modifiers:[Uh,Fh,Vh,{...Dh,enabled:!!p},{name:"eventListeners",...jh(i)},{name:"arrow",options:{padding:a}},{name:"offset",options:{offset:s??[0,l]}},{name:"flip",enabled:!!c,options:{padding:8}},{name:"preventOverflow",enabled:!!d,options:{boundary:u}},...n??[]],strategy:o}),v.current.forceUpdate(),g.current=v.current.destroy)},[y,t,n,p,i,a,s,l,c,d,u,o]);ne.useEffect(()=>()=>{var e;m.current||h.current||(null==(e=v.current)||e.destroy(),v.current=null)},[]);const E=ne.useCallback(e=>{m.current=e,b()},[b]),x=ne.useCallback((e={},t=null)=>({...e,ref:yo(E,t)}),[E]),w=ne.useCallback(e=>{h.current=e,b()},[b]),k=ne.useCallback((e={},t=null)=>({...e,ref:yo(w,t),style:{...e.style,position:o,minWidth:p?void 0:"max-content",inset:"0 auto auto 0"}}),[o,w,p]),S=ne.useCallback((e={},t=null)=>{const{size:n,shadowColor:r,bg:o,style:a,...i}=e;return{...i,ref:t,"data-popper-arrow":"",style:Yh(e)}},[]),C=ne.useCallback((e={},t=null)=>({...e,ref:t,"data-popper-arrow-inner":""}),[]);return{update(){var e;null==(e=v.current)||e.update()},forceUpdate(){var e;null==(e=v.current)||e.forceUpdate()},transformOrigin:Lh.transformOrigin.varRef,referenceRef:E,popperRef:w,getPopperProps:k,getArrowProps:S,getArrowInnerProps:C,getReferenceProps:x}}({...m,enabled:w||f,placement:u,direction:p}),[O,N]=ne.useState(-1);Kp(()=>{w||N(-1)},[w]),function(e,t){const{shouldFocus:n,visible:r,focusRef:o}=t,a=n&&!r;Kp(()=>{if(!a)return;if(function(e){const t=e.current;if(!t)return!1;const n=function(e){return gm(e).activeElement}(t);return!(!n||t.contains(n)||(r=n,!(r&&ym(r)&&xm(r))||(e=>bm(e)&&-1===e.tabIndex)(r)));var r}(e))return;const t=(null==o?void 0:o.current)||e.current;t&&requestAnimationFrame(()=>{t.focus()})},[a,e,o])}(h,{focusRef:v,visible:w,shouldFocus:!0});const A=function(e){const{isOpen:t,ref:n}=e,[r,o]=ne.useState(t),[a,i]=ne.useState(!1);return ne.useEffect(()=>{a||(o(t),i(!0))},[t,a,r]),Pf(()=>n.current,"animationend",()=>{o(t)}),{present:!(!t&&!r),onComplete(){var e;const t=function(e){var t;return(null==(t=gm(e))?void 0:t.defaultView)??window}(n.current),r=new t.CustomEvent("animationend",{bubbles:!0});null==(e=n.current)||e.dispatchEvent(r)}}}({isOpen:w,ref:h}),[R,I]=function(e,...t){const n=ne.useId(),r=e||n;return ne.useMemo(()=>t.map(e=>`${e}-${r}`),[r,t])}(t,"menu-button","menu-list"),T=ne.useCallback(()=>{k(),g()},[k,g]),L=ne.useRef(/* @__PURE__ */new Set([]));!function(e,t=[]){ne.useEffect(()=>()=>e(),t)}(()=>{L.current.forEach(e=>clearTimeout(e)),L.current.clear()});const P=ne.useCallback(()=>{k(),b()},[b,k]),M=ne.useCallback(()=>{k(),E()},[k,E]),j=ne.useCallback(()=>{var e,t;const n=av(h.current),r=null==(e=h.current)?void 0:e.contains(n.activeElement);if(!w||r)return;const o=null==(t=y.item(O))?void 0:t.node;null==o||o.focus()},[w,O,y]);return{openAndFocusMenu:T,openAndFocusFirstItem:P,openAndFocusLastItem:M,onTransitionEnd:j,unstable__animationState:A,descendants:y,popper:_,buttonId:R,menuId:I,forceUpdate:_.forceUpdate,orientation:"vertical",isOpen:w,onToggle:C,onOpen:k,onClose:S,menuRef:h,buttonRef:v,focusedIndex:O,closeOnSelect:n,closeOnBlur:r,autoSelect:o,setFocusedIndex:N,isLazy:a,lazyBehavior:d}}({...r,direction:o}),s=ne.useMemo(()=>i,[i]),{isOpen:l,onClose:c,forceUpdate:u}=s;/* @__PURE__ */
|
60
|
-
return ne.createElement(
|
61
|
-
return ne.createElement(ho.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...n.button}})}),
|
62
|
-
return ne.createElement(r||
|
63
|
-
return ne.createElement(ho.span,{ref:t,...e,__css:n.command,className:"chakra-menu__command"})});
|
64
|
-
return ne.createElement("div",{ref:t,className:"chakra-menu__group",role:"group"},n&&/* @__PURE__ */ne.createElement(ho.p,{className:i,...a,__css:s.groupTitle},n),r)});
|
65
|
-
return ne.createElement(ho.span,{className:i,...r,__css:{flexShrink:0}},a)};
|
66
|
-
return ne.createElement(ho.button,{ref:t,type:a,...r,__css:i})}),
|
67
|
-
return ne.createElement(
|
68
|
-
return ne.createElement(
|
69
|
-
return ne.createElement(ho.div,{...u,__css:{zIndex:e.zIndex??(null==(n=d.list)?void 0:n.zIndex)}},/* @__PURE__ */ne.createElement(
|
70
|
-
return ne.createElement(
|
71
|
-
return ne.createElement(
|
72
|
-
return ne.createElement(ho.
|
73
|
-
return ne.createElement(ho.
|
74
|
-
return ne.createElement(
|
75
|
-
return ne.createElement(
|
76
|
-
return ne.createElement(
|
77
|
-
return ne.createElement(
|
78
|
-
return ne.createElement(
|
79
|
-
return ne.createElement(ho.
|
80
|
-
return ne.createElement(ho.
|
81
|
-
return ne.createElement(ho.
|
82
|
-
return ne.createElement(
|
83
|
-
return ne.createElement(ho.
|
84
|
-
return ne.createElement(ho.textarea,{ref:t,rows:o,...i,className:Ey("chakra-textarea",r),__css:s})});function ky(){return ky=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},ky.apply(this,arguments)}wy.displayName="Textarea";const Sy=["hideStepper","incrementIcon","decrementIcon"],Cy=uo((e,t)=>{const{hideStepper:n,incrementIcon:r,decrementIcon:o}=e,a=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,Sy);return ne.createElement(jv,ky({},a,{ref:t}),/*#__PURE__*/ne.createElement(Vv,null),!n&&/*#__PURE__*/ne.createElement(Dv,null,/*#__PURE__*/ne.createElement($v,{children:r}),/*#__PURE__*/ne.createElement(Fv,{children:o})))});Cy.defaultProps={hideStepper:!1},s&&(Cy.displayName="NumberInput"),Ao({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"}),Ao({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"}),Ao({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"}),Ao({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"}),Ao({displayName:"SunIcon",path:/* @__PURE__ */ne.createElement("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor"},/* @__PURE__ */ne.createElement("circle",{cx:"12",cy:"12",r:"5"}),/* @__PURE__ */ne.createElement("path",{d:"M12 1v2"}),/* @__PURE__ */ne.createElement("path",{d:"M12 21v2"}),/* @__PURE__ */ne.createElement("path",{d:"M4.22 4.22l1.42 1.42"}),/* @__PURE__ */ne.createElement("path",{d:"M18.36 18.36l1.42 1.42"}),/* @__PURE__ */ne.createElement("path",{d:"M1 12h2"}),/* @__PURE__ */ne.createElement("path",{d:"M21 12h2"}),/* @__PURE__ */ne.createElement("path",{d:"M4.22 19.78l1.42-1.42"}),/* @__PURE__ */ne.createElement("path",{d:"M18.36 5.64l1.42-1.42"}))});var _y=Ao({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"});Ao({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:/* @__PURE__ */ne.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"})}),Ao({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"}),Ao({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"}),Ao({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"}),Ao({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 Oy=Ao({displayName:"ViewIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.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__ */ne.createElement("circle",{cx:"12",cy:"12",r:"2"}))}),Ny=Ao({displayName:"ViewOffIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.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__ */ne.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"}))});Ao({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"}),Ao({displayName:"DeleteIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.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"}))}),Ao({displayName:"RepeatIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.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__ */ne.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"}))}),Ao({displayName:"RepeatClockIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.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__ */ne.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"}))}),Ao({displayName:"EditIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/* @__PURE__ */ne.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__ */ne.createElement("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"}))}),Ao({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"}),Ao({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});var Ay=Ao({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});Ao({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"}),Ao({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"}),Ao({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"}),Ao({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"}),Ao({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"}),Ao({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"}),Ao({displayName:"ExternalLinkIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/* @__PURE__ */ne.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),/* @__PURE__ */ne.createElement("path",{d:"M15 3h6v6"}),/* @__PURE__ */ne.createElement("path",{d:"M10 14L21 3"}))}),Ao({displayName:"LinkIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.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__ */ne.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"}))}),Ao({displayName:"PlusSquareIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/* @__PURE__ */ne.createElement("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),/* @__PURE__ */ne.createElement("path",{d:"M12 8v8"}),/* @__PURE__ */ne.createElement("path",{d:"M8 12h8"}))}),Ao({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"}),Ao({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"}),Ao({displayName:"TimeIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.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__ */ne.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"}))}),Ao({displayName:"ArrowRightIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.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__ */ne.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"}))}),Ao({displayName:"ArrowLeftIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.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__ */ne.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"}))}),Ao({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"}),Ao({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"}),Ao({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"}),Ao({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"}),Ao({displayName:"EmailIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.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__ */ne.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"}))}),Ao({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"}),Ao({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"}),Ao({displayName:"SpinnerIcon",path:/* @__PURE__ */ne.createElement(ne.Fragment,null,/* @__PURE__ */ne.createElement("defs",null,/* @__PURE__ */ne.createElement("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a"},/* @__PURE__ */ne.createElement("stop",{stopColor:"currentColor",offset:"0%"}),/* @__PURE__ */ne.createElement("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"}))),/* @__PURE__ */ne.createElement("g",{transform:"translate(2)",fill:"none"},/* @__PURE__ */ne.createElement("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"}),/* @__PURE__ */ne.createElement("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"}),/* @__PURE__ */ne.createElement("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"})))}),Ao({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"}),Ao({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:/* @__PURE__ */ne.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"})}),Ao({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"}),Ao({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"}),Ao({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"}),Ao({displayName:"InfoOutlineIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2"},/* @__PURE__ */ne.createElement("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),/* @__PURE__ */ne.createElement("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),/* @__PURE__ */ne.createElement("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"}))}),Ao({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"}),Ao({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"}),Ao({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"}),Ao({displayName:"QuestionOutlineIcon",path:/* @__PURE__ */ne.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/* @__PURE__ */ne.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__ */ne.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__ */ne.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"}))}),Ao({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"}),Ao({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 Ry=Ao({viewBox:"0 0 14 14",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.createElement("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))}),Iy=Ao({displayName:"MinusIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.createElement("rect",{height:"4",width:"20",x:"2",y:"10"}))});function Ty(){return Ty=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},Ty.apply(this,arguments)}Ao({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"});const Ly=["label","children"],Py=uo((e,t)=>{let{label:n,children:r}=e,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,Ly);return ne.createElement(Ip,Ty({ref:t},o),r||n)});function My(){return My=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},My.apply(this,arguments)}s&&(Py.displayName="Button");const jy=uo((e,t)=>/*#__PURE__*/ne.createElement(Gf,{w:"auto",px:"1",py:"1",alignItems:"stretch"},/*#__PURE__*/ne.createElement(Py,My({ref:t,height:"auto"},e))));function Dy(){return Dy=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},Dy.apply(this,arguments)}jy.id="InputRightElement",s&&(jy.displayName="InputRightButton");const Vy=["viewIcon","viewOffIcon","autoComplete","w","width","size","variant"],By=uo((e,t)=>{const{viewIcon:n,viewOffIcon:r,autoComplete:o,w:a,width:i,size:s,variant:l}=e,c=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,Vy),[u,d]=ne.useState(!1),p=u?"Hide password":"Show password";let f;return f=u?n||/*#__PURE__*/ne.createElement(Oy,null):r||/*#__PURE__*/ne.createElement(Ny,null),/*#__PURE__*/ne.createElement(Ff,{width:a||i,size:s,variant:l},/*#__PURE__*/ne.createElement(Df,Dy({},c,{ref:t,type:u?"text":"password",autoComplete:u?"off":o})),/*#__PURE__*/ne.createElement(jy,{onClick:()=>d(!u),"aria-label":p,variant:"ghost"},f))});function Fy(){return Fy=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},Fy.apply(this,arguments)}function $y(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}s&&(By.displayName="PasswordInput");const zy=["options","spacing","direction"],Uy=["onBlur","onChange"],Wy=["value","label"],Hy=uo((e,t)=>{let{options:n,spacing:r,direction:o}=e,a=$y(e,zy);const{onBlur:i,onChange:s}=a,l=$y(a,Uy);return ne.createElement(sy,Fy({onChange:s},l),/*#__PURE__*/ne.createElement(um,{spacing:r,direction:o},n.map((e,n)=>{let{value:r,label:o}=e,a=$y(e,Wy);return ne.createElement(uy,Fy({key:n,onBlur:i,value:r,ref:t},a),o||r)})))});function qy(){return qy=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},qy.apply(this,arguments)}function Yy(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}s&&(Hy.displayName="RadioInput");const Zy=["name","options","children","onChange","defaultValue","value","placeholder","isDisabled","leftIcon","rightIcon","multiple","size","variant","menuListProps","renderValue"],Gy=["value","label"],Xy=uo((e,t)=>{const n=mo("Input",e),r=n.field._focusVisible,o=qy({fontWeight:"normal",textAlign:"left",color:"inherit",_active:{bg:"transparent"},minH:n.field.h||n.field.height,_focus:r,_expanded:r},n.field,{h:"auto"});return ne.createElement(fv,qy({as:Ip},e,{ref:t,sx:o}))});s&&(Xy.displayName="SelectButton");const Ky=uo((e,t)=>{const{name:n,options:r,children:o,onChange:a,defaultValue:i,value:s,placeholder:c,isDisabled:u,leftIcon:d,rightIcon:p=/*#__PURE__*/ne.createElement(Ay,null),multiple:f,size:m,variant:h,menuListProps:v,renderValue:y=(e=>null==e?void 0:e.join(", "))}=e,g=Rt(Yy(e,Zy)),[b,E]=ne.useState(s||i),x=Wp({name:n}),w={isDisabled:u,leftIcon:d,rightIcon:p,size:m,variant:h},k=ne.useCallback(e=>{if(!r)return e;for(const t of r)if(t.label&&t.value===e)return t.label;return e},[r]),S=b?(Array.isArray(b)?b:[b]).map(k):[];return ne.createElement(dv,qy({},g,{closeOnSelect:!f}),/*#__PURE__*/ne.createElement(ho.div,{className:l("saas-select")},/*#__PURE__*/ne.createElement(Xy,qy({ref:t},w),y(S)||c),/*#__PURE__*/ne.createElement(wv,qy({maxH:"60vh",overflowY:"auto"},v),/*#__PURE__*/ne.createElement(kv,{defaultValue:i||s,onChange:e=>{E(e),null==a||a(e)},type:f?"checkbox":"radio"},r?r.map((e,t)=>{let{value:n,label:r}=e,o=Yy(e,Gy);return ne.createElement(bv,qy({key:t,value:n},o),r||n)}):o)),/*#__PURE__*/ne.createElement(ho.input,qy({},x,{name:n,type:"hidden",value:b,className:"saas-select__input"}))))});s&&(Ky.displayName="Select");const Jy=["options","children"],Qy=uo((e,t)=>{let{options:n,children:r}=e,o=Yy(e,Jy);return ne.createElement(fy,qy({ref:t},o),r||(null==n?void 0:n.map(({value:e,label:t})=>/*#__PURE__*/ne.createElement("option",{key:e,value:e},t||e))))});function eg(){return eg=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},eg.apply(this,arguments)}function tg(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}s&&(Qy.displayName="NativeSelect");const[ng,rg]=Wr({name:"StepperContext",errorMessage:"useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in `<Stepper />`"});function og(e){const{step:t,onChange:n}=e,[r,o]=ne.useState(-1),a=ne.useRef([]),[,i]=ne.useState(Date.now()),s=ne.useCallback(e=>{const t=[...a.current];-1===t.indexOf(e)&&t.push(e),a.current=t,i(Date.now())},[a,i]),l=e=>{const t=a.current.indexOf(e);-1!==t&&o(t)};return ne.useEffect(()=>{"string"==typeof t?l(t):"number"==typeof t?o(t):-1===r&&o(0)},[t]),ne.useEffect(()=>{null==n||n(r)},[r,n]),{stepsRef:a,activeStep:a.current[r],activeIndex:r,isFirstStep:0===r,isLastStep:r===a.current.length-1,isCompleted:r>=a.current.length,setIndex:o,setStep:l,nextStep:()=>{o(r+1)},prevStep:()=>{o(r-1)},registerStep:s,unregisterStep:e=>{a.current=a.current.slice(a.current.indexOf(e),1)}}}const ag=["orientation","children"],ig=["children","orientation","step","onChange"],sg=["children","orientation","stepComponent"],lg=["children","isOpen"],cg=["icon","isActive","isCompleted","className"],ug=["name","title","icon","isActive","isCompleted"],dg=["isActive"],[pg,fg]=Wr({name:"StepperStylesContext",errorMessage:'useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<Stepper />" '}),mg=uo((e,t)=>{const{orientation:n,children:r}=e,o=tg(e,ag);return ne.createElement(hg,eg({ref:t,orientation:n},o),/*#__PURE__*/ne.createElement(vg,{orientation:n},r))});s&&(mg.displayName="Stepper");const hg=uo((e,t)=>{const{children:n,orientation:r="horizontal"}=e,o=tg(e,ig),a=mo("Stepper",eg({},o,{orientation:r})),i=Rt(o),s=og(e),c=eg({display:"flex",flexDirection:"column"},a.container);return ne.createElement(pg,{value:a},/*#__PURE__*/ne.createElement(ng,{value:s},/*#__PURE__*/ne.createElement(ho.div,eg({ref:t,__css:c},i,{className:l("saas-stepper",e.className)}),n)))});s&&(hg.displayName="StepperContainer");const vg=e=>{var t,n;const{children:r,orientation:o="horizontal",stepComponent:a}=e,i=tg(e,sg),s=fg(),{activeIndex:c}=rg(),u=eg({display:"flex",flexDirection:"row",alignItems:"center"},s.steps),d="vertical"===o,p=a||bg,f=function(e,t){return ne.Children.toArray(e).filter(e=>Array.isArray(t)?t.some(t=>t===e.type):e.type===t)}(r,p),m=f.reduce((e,t,n,r)=>(e.push(/*#__PURE__*/ne.createElement(p,eg({key:n},t.props,{icon:t.props.icon||n+1,isActive:c===n,isCompleted:t.props.isCompleted||c>n}))),d&&e.push(/*#__PURE__*/ne.createElement(yg,{key:`content-${n}`,isOpen:c===n},t.props.children)),n<r.length-1&&e.push(/*#__PURE__*/ne.createElement(Eg,{key:`separator-${n}`,isActive:n<c})),e),[]),h=function(e,t){return ne.Children.toArray(e).find(e=>e.type===t)}(r,wg),v=c>=f.length?h:d?null:/*#__PURE__*/ne.createElement(yg,null,null==(t=f[c])||null==(n=t.props)?void 0:n.children);return ne.createElement(ne.Fragment,null,/*#__PURE__*/ne.createElement(ho.div,eg({__css:u},i,{className:l("saas-stepper__steps",e.className)}),m),v)};s&&(vg.displayName="StepperSteps");const yg=e=>{const{children:t,isOpen:n=!0}=e,r=tg(e,lg),o=fg();return ne.createElement(ho.div,eg({__css:o.content},r,{className:l("saas-stepper__content",e.className)}),/*#__PURE__*/ne.createElement(cp,{in:n},t))};s&&(yg.displayName="StepperContent");const gg=e=>{const{icon:t,isCompleted:n,className:r}=e,o=tg(e,cg),a=eg({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontSize:"1em"},fg().icon);let i;return i=n?/*#__PURE__*/ne.createElement(No,{as:Ry}):t,/*#__PURE__*/ne.createElement(ho.div,eg({__css:a},o,{className:l("saas-stepper__icon",r)}),i)};s&&(gg.displayName="StepperIcon");const bg=e=>{const{title:t,icon:n,isActive:r,isCompleted:o}=e,a=tg(e,ug),i=function(e){const{name:t,isActive:n,isCompleted:r}=e,{registerStep:o,unregisterStep:a,activeStep:i}=rg();return ne.useEffect(()=>{if(t)return o(t),()=>{a(t)}},[]),{isActive:t?i===t:n,isCompleted:r}}(e),s=eg({display:"flex",alignItems:"center",flexDirection:"row"},fg().step);return ne.createElement(ho.div,eg({},a,{__css:s,"data-active":c(i.isActive),"data-completed":c(i.isCompleted),className:l("saas-stepper__step",e.className)}),/*#__PURE__*/ne.createElement(gg,{icon:n,isActive:r,isCompleted:o}),t&&/*#__PURE__*/ne.createElement(xg,null,t))};s&&(bg.displayName="StepperStep");const Eg=e=>{const{isActive:t}=e,n=tg(e,dg),r=eg({flex:1,mx:2},fg().separator);return ne.createElement(ho.div,eg({},n,{"data-active":c(t),className:l("saas-stepper__separator",e.className),__css:r}))};s&&(Eg.displayName="StepperSeparator");const xg=e=>{const t=fg();return ne.createElement(ho.p,eg({},e,{__css:t.title,className:l("saas-stepper__title",e.className)}))};s&&(xg.displayName="StepperStepTitle");const wg=e=>{const t=fg();return ne.createElement(ho.div,eg({__css:t.completed},e,{className:l("saas-stepper__completed",e.className)}))};function kg(){return kg=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},kg.apply(this,arguments)}function Sg(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}s&&(wg.displayName="StepperCompleted");const Cg=["name","label","help","hideLabel","children"],_g=["id","name","label","help","isDisabled","isInvalid","isReadOnly","isRequired","rules"],Og=["name","rules"],Ng=["ref"],Ag=["name","rules"],Rg=["ref"],Ig=["type","leftAddon","rightAddon","size"],Tg=["type"],Lg=["label","type"],Pg=["pinLength","pinType","spacing"],Mg={},jg="text",Dg=e=>{const{name:t,label:n,help:r,hideLabel:o,children:a}=e,i=Sg(e,Cg),{formState:s}=p(),l=((e,t)=>f(t.errors,e))(t,s);return ne.createElement(zp,kg({},i,{isInvalid:!!l}),n&&!o?/*#__PURE__*/ne.createElement(Gp,null,n):null,/*#__PURE__*/ne.createElement(Jf,null,a,!r||null!=l&&l.message?null:/*#__PURE__*/ne.createElement(Up,null,r),(null==l?void 0:l.message)&&/*#__PURE__*/ne.createElement(Zp,null,null==l?void 0:l.message)))};s&&(Dg.displayName="BaseField");const Vg=ne.forwardRef((e,t)=>{const{type:n=jg}=e;return ne.createElement(Mg[n]||Mg[jg],kg({ref:t},e))}),Bg=(e,t,n)=>{let r;r=null!=n&&n.isControlled?(e=>uo((t,n)=>{let{name:r,rules:o}=t,a=Sg(t,Og);const{control:i}=p();return ne.createElement(y,{name:r,control:i,rules:o,render:t=>{let{field:{ref:r}}=t,o=Sg(t.field,Ng);return ne.createElement(e,kg({},o,a,{onChange:d(a.onChange,o.onChange),onBlur:d(a.onBlur,o.onBlur),ref:Mf(n,r)}))}})}))(t):(e=>uo((t,n)=>{let{name:r,rules:o}=t,a=Sg(t,Ag);const{register:i}=p(),s=i(r,o),{ref:l}=s,c=Sg(s,Rg);return ne.createElement(e,kg({},c,a,{onChange:d(a.onChange,c.onChange),onBlur:d(a.onBlur,c.onBlur),ref:Mf(n,l)}))}))(t);const o=((e,{displayName:t,hideLabel:n,BaseField:r})=>{const o=uo((t,o)=>{const{id:a,name:i,label:s,help:l,isDisabled:c,isInvalid:u,isReadOnly:d,isRequired:p,rules:f}=t,m=Sg(t,_g),h=kg({required:p},f);return ne.createElement(r,{id:a,name:i,label:s,help:l,hideLabel:n,isDisabled:c,isInvalid:u,isReadOnly:d,isRequired:p},/*#__PURE__*/ne.createElement(e,kg({ref:o,id:a,name:i,label:n?s:void 0,rules:h},m)))});return o.displayName=t,o})(r,{displayName:`${e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join("")}Field`,hideLabel:null==n?void 0:n.hideLabel,BaseField:(null==n?void 0:n.BaseField)||Dg});return Mg[e]=o,o};Bg("text",uo((e,t)=>{let{type:n="text",leftAddon:r,rightAddon:o,size:a}=e,i=Sg(e,Ig);const s=/*#__PURE__*/ne.createElement(Df,kg({type:n,size:a},i,{ref:t}));return r||o?/*#__PURE__*/ne.createElement(Ff,{size:a},r,s,o):s})),Bg("number",Cy,{isControlled:!0}),Bg("password",uo((e,t)=>/*#__PURE__*/ne.createElement(By,kg({ref:t},e)))),Bg("textarea",wy),Bg("switch",uo((e,t)=>{let n=Sg(e,Tg);return ne.createElement(by,kg({},n,{ref:t}))}),{isControlled:!0}),Bg("select",Ky,{isControlled:!0}),Bg("checkbox",uo((e,t)=>{let{label:n}=e,r=Sg(e,Lg);return ne.createElement(Of,kg({ref:t},r),n)}),{hideLabel:!0}),Bg("radio",Hy,{isControlled:!0}),Bg("native-select",Qy,{isControlled:!0}),Bg("pin",uo((e,t)=>{const{pinLength:n=4,pinType:r,spacing:o}=e,a=Sg(e,Pg),i=[];for(let e=0;e<n;e++)i.push(/*#__PURE__*/ne.createElement(Qv,{key:e,ref:t}));return ne.createElement(dm,{spacing:o},/*#__PURE__*/ne.createElement(Jv,kg({},a,{type:r}),i))}),{isControlled:!0});const Fg=["items","label","title"],$g=e=>e&&Object.entries(e).map(([e,t])=>{let{label:n,title:r}=t;return kg({},Sg(t,Fg),{name:e,label:n||r})}),zg=e=>({getFields:()=>$g(e),getNestedFields:t=>{var n;const r=u(e,t);return r?"object"===(null==(n=r.items)?void 0:n.type)?$g(r.items.properties):"object"===r.type?$g(r.properties):[r.items]:[]}}),Ug=["mode","resolver","reValidateMode","shouldFocusError","shouldUnregister","shouldUseNativeValidation","criteriaMode","delayError","schema","defaultValues","onChange","onSubmit","onError","formRef","children"],Wg=uo((e,t)=>{const{mode:n="all",resolver:r,reValidateMode:o,shouldFocusError:a,shouldUnregister:s,shouldUseNativeValidation:c,criteriaMode:u,delayError:d,schema:p,defaultValues:f,onChange:v,onSubmit:y,onError:g,formRef:b,children:E}=e,x=Sg(e,Ug),w={mode:n,resolver:r,defaultValues:f,reValidateMode:o,shouldFocusError:a,shouldUnregister:s,shouldUseNativeValidation:c,criteriaMode:u,delayError:d};p&&!r&&(w.resolver=null==Wg.getResolver?void 0:Wg.getResolver(p));const k=m(w),{handleSubmit:S}=k;return ne.useImperativeHandle(t,()=>k,[t,k]),ne.useEffect(()=>{let e;return v&&(e=k.watch(v)),()=>{var t;return null==(t=e)?void 0:t.unsubscribe()}},[k,v]),/*#__PURE__*/ne.createElement(h,k,/*#__PURE__*/ne.createElement(ho.form,kg({ref:b,onSubmit:S(y,g)},x,{className:l("saas-form",e.className)}),i(E,k)))});Wg.getFieldResolver=zg,s&&(Wg.displayName="Form");const Hg=["children"],qg=({children:e})=>/*#__PURE__*/ne.createElement(ho.div,null,e);s&&(qg.displayName="FormLayoutItem");const Yg=e=>{var t,n,r;let{children:o}=e,a=Sg(e,Hg);const i=kg({},null!=(t=null==(n=ao().components)||null==(r=n.FormLayout)?void 0:r.defaultProps)?t:{spacing:4},a);return ne.createElement(sm,kg({},i,{className:l("saas-form__layout",a.className)}),ne.Children.map(o,e=>ne.isValidElement(e)?/*#__PURE__*/ne.createElement(qg,null,e):e))};s&&(Yg.displayName="FormLayout");const Zg=(e,t)=>ne.Children.map(t,t=>ne.isValidElement(t)&&t.props.name?ne.cloneElement(t,kg({},t.props,{name:`${e}.${t.props.name}`})):t),[Gg,Xg]=Wr({name:"ArrayFieldContext"}),[Kg,Jg]=Wr({name:"ArrayFieldRowContext"}),Qg=["children","index"],eb=["children"],tb=["children"],nb=["name","defaultValue","keyName","min","max","children"],rb=e=>{let{children:t,index:n}=e,r=Sg(e,Qg);return ne.createElement(ab,{index:n},/*#__PURE__*/ne.createElement(ob,r,t),/*#__PURE__*/ne.createElement(ib,null))};s&&(rb.displayName="ArrayFieldRow");const ob=e=>{let{children:t}=e,n=Sg(e,eb);const{name:r}=Jg();return ne.createElement(Yg,kg({flex:"1",mr:"2"},n),Zg(r,t))};s&&(ob.displayName="ArrayFieldRowFields");const ab=({children:e,index:t})=>{const n=(({index:e})=>{const{clearErrors:t}=p(),{name:n,remove:r,fields:o}=Xg();return ne.useEffect(()=>{t(n)},[]),{index:e,isFirst:0===e,isLast:e===o.length-1,name:`${n}.${e}`,remove:ne.useCallback(()=>{t(n),r(e)},[e])}})({index:t});return ne.createElement(Kg,{value:n},/*#__PURE__*/ne.createElement(ho.div,{__css:{display:"flex",flexDirection:"row",alignItems:"flex-end",width:"100%",mb:4}},e))};s&&(ab.displayName="ArrayFieldRowContainer");const ib=e=>/*#__PURE__*/ne.createElement(Lp,kg({icon:/*#__PURE__*/ne.createElement(Iy,null),"aria-label":"Remove row"},(()=>{const{isFirst:e,remove:t}=Jg(),{min:n,fields:r}=Xg();return{onClick:()=>t(),isDisabled:e&&!!(n&&r.length<=n)}})(),e));s&&(ib.displayName="ArrayFieldRemoveButton");const sb=e=>/*#__PURE__*/ne.createElement(Lp,kg({icon:/*#__PURE__*/ne.createElement(_y,null),"aria-label":"Add row",float:"right"},(()=>{const{append:e,defaultValue:t,max:n,fields:r}=Xg();return{onClick:()=>e(t,{shouldFocus:!1}),isDisabled:!!(n&&r.length>=n)}})(),e));s&&(sb.displayName="ArrayFieldAddButton");const lb=uo((e,t)=>{const{children:n}=e,r=Sg(e,tb);return ne.createElement(ub,kg({ref:t},r),/*#__PURE__*/ne.createElement(cb,null,e=>/*#__PURE__*/ne.createElement(ne.Fragment,null,e.map(({id:e},t)=>/*#__PURE__*/ne.createElement(rb,{key:e,index:t},n)))),/*#__PURE__*/ne.createElement(sb,null))});s&&(lb.displayName="ArrayField");const cb=({children:e})=>{const{fields:t}=Xg();return e(t)};s&&(cb.displayName="ArrayFieldRows");const ub=ne.forwardRef((e,t)=>{let{name:n,defaultValue:r,keyName:o,min:a,max:i,children:s}=e,l=Sg(e,nb);const c=(({name:e,defaultValue:t={},keyName:n,min:r,max:o})=>{const{control:a}=p();return kg({},v({control:a,name:e,keyName:n}),{name:e,defaultValue:t,min:r,max:o})})({name:n,defaultValue:r,keyName:o,min:a,max:i});return ne.useImperativeHandle(t,()=>c,[t,c]),/*#__PURE__*/ne.createElement(Gg,{value:c},/*#__PURE__*/ne.createElement(Dg,kg({name:n},l),s))});s&&(ub.displayName="ArrayFieldContainer");const db=["name","label","hideLabel","children","columns","spacing"],pb=e=>{const t=fo("FormLegend");return ne.createElement(Gp,kg({as:"legend",sx:t},e))},fb=e=>{const{name:t,label:n,hideLabel:r,children:o,columns:a,spacing:i}=e,s=Sg(e,db);return ne.createElement(zp,kg({name:t,as:"fieldset"},s),/*#__PURE__*/ne.createElement(pb,{display:r?"none":"block"},n),/*#__PURE__*/ne.createElement(Yg,{columns:a,gridGap:i},Zg(t,o)))};s&&(fb.displayName="ObjectField");const mb=["name","type"],hb=["schema","fieldResolver","focusFirstField"],vb=["name","type","defaultValue"],yb=(e,t)=>{var n;return null==(n=e.getNestedFields(t))?void 0:n.map((e,t)=>{let{name:n,type:r}=e,o=Sg(e,mb);return ne.createElement(Vg,kg({key:n||t,name:n,type:r},o))})},gb=e=>{let{schema:t,fieldResolver:n,focusFirstField:r}=e,o=Sg(e,hb);const a=ne.useMemo(()=>n||Wg.getFieldResolver(t),[t,n]),i=ne.useMemo(()=>a.getFields(),[a]),s=p();return ne.useEffect(()=>{var e;r&&null!=(e=i[0])&&e.name&&s.setFocus(i[0].name)},[t,n,r]),/*#__PURE__*/ne.createElement(Yg,o,i.map(e=>{let{name:t,type:n}=e,r=Sg(e,vb);return"array"===n?/*#__PURE__*/ne.createElement(lb,kg({key:t,name:t},r),yb(a,t)):"object"===n?/*#__PURE__*/ne.createElement(fb,kg({key:t,name:t},r),yb(a,t)):/*#__PURE__*/ne.createElement(Vg,kg({key:t,name:t,type:n},r))}))};s&&(gb.displayName="Fields");const bb=["children","disableIfUntouched","disableIfInvalid","isDisabled","isLoading"],Eb=ne.forwardRef((e,t)=>{const{children:n,disableIfUntouched:r,disableIfInvalid:o,isDisabled:a,isLoading:i}=e,s=Sg(e,bb),{formState:l}=p();return ne.createElement(Py,kg({},s,{ref:t,variant:"primary",type:"submit",isLoading:l.isSubmitting||i,isDisabled:r&&!l.isDirty||o&&!l.isValid||a}),n)});Eb.defaultProps={label:"Submit",disableIfUntouched:!1,disableIfInvalid:!1},s&&(Eb.displayName="SubmitButton");const xb=["schema","submitLabel","fieldResolver","children"],wb=uo((e,t)=>{const{schema:n,submitLabel:r="Submit",fieldResolver:o,children:a}=e,i=Sg(e,xb);return ne.createElement(Wg,kg({},i,{schema:n,ref:t}),/*#__PURE__*/ne.createElement(Yg,null,/*#__PURE__*/ne.createElement(gb,{schema:n,fieldResolver:o}),r&&/*#__PURE__*/ne.createElement(Eb,null,r),a))});s&&(wb.displayName="AutoForm");const kb=["onChange"],[Sb,Cb]=Wr({name:"StepFormContext",errorMessage:"useStepFormContext: `context` is undefined. Seems you forgot to wrap step form components in `<StepForm />`"}),_b=["children"],Ob=["getFormProps"];ne.forwardRef((e,t)=>{const{children:n}=e,r=Sg(e,_b),o=function(e){const t=og(Sg(e,kb)),{activeStep:n,isLastStep:r,nextStep:o}=t,[a,i]=ne.useState({}),s=ne.useCallback(async i=>{try{const s=a[n];if(r)return await(null==e.onSubmit?void 0:e.onSubmit(i)),c(kg({},s,{isCompleted:!0})),void o();await(null==s.onSubmit?void 0:s.onSubmit(i,t)),o()}catch(i){}},[a,n,r]),l=ne.useCallback(()=>{const e=a[n];return{onSubmit:s,schema:null==e?void 0:e.schema,resolver:null==e?void 0:e.resolver}},[a,s,n]),c=ne.useCallback(e=>{i(t=>kg({},t,{[e.name]:e}))},[a]);return kg({getFormProps:l,updateStep:c,steps:a},t)}(e),{getFormProps:a}=o,s=Sg(o,Ob),l=ne.useMemo(()=>s,[s]);return ne.createElement(ng,{value:l},/*#__PURE__*/ne.createElement(Sb,{value:l},/*#__PURE__*/ne.createElement(Wg,kg({ref:t},r,a()),i(n,o))))});const Nb=e=>zg(e.properties),Ab=t=>({schema:t,fieldResolver:Nb(t),resolver:e(t)});export{Ab as jsonSchemaForm};
|
58
|
+
return ne.createElement(ho.div,{ref:t,display:"flex",alignItems:o,justifyContent:a,flexDirection:m.flexDirection,flexWrap:s,className:b,__css:v?{}:{[cm]:m[cm]},...p},g)});dm.displayName="Stack";var pm=uo((e,t)=>/* @__PURE__ */ne.createElement(dm,{align:"center",...e,direction:"row",ref:t}));function fm(e){return"number"==typeof e?`${e}px`:e}pm.displayName="HStack",uo((e,t)=>/* @__PURE__ */ne.createElement(dm,{align:"center",...e,direction:"column",ref:t})).displayName="VStack",uo(function(e,t){const n=fo("Text",e),{className:r,align:o,decoration:a,casing:i,...s}=Rt(e),l=Mf({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});/* @__PURE__ */
|
59
|
+
return ne.createElement(ho.p,{ref:t,className:_o("chakra-text",e.className),...l,...s,__css:n})}).displayName="Text";var mm=uo(function(e,t){const{spacing:n="0.5rem",spacingX:r,spacingY:o,children:a,justify:i,direction:s,align:l,className:c,shouldWrapChildren:u,...d}=e,p=ne.useMemo(()=>{const{spacingX:e=n,spacingY:t=n}={spacingX:r,spacingY:o};return{"--chakra-wrap-x-spacing":t=>Gf(e,e=>fm(pe("space",e)(t))),"--chakra-wrap-y-spacing":e=>Gf(t,t=>fm(pe("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:i,alignItems:l,flexDirection:s,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)"}}},[n,r,o,i,l,s]),f=ne.useMemo(()=>u?ne.Children.map(a,(e,t)=>/* @__PURE__ */ne.createElement(hm,{key:t},e)):a,[a,u]);/* @__PURE__ */
|
60
|
+
return ne.createElement(ho.div,{ref:t,className:_o("chakra-wrap",c),overflow:"hidden",...d},/* @__PURE__ */ne.createElement(ho.ul,{className:"chakra-wrap__list",__css:p},f))});mm.displayName="Wrap";var hm=uo(function(e,t){const{className:n,...r}=e;/* @__PURE__ */
|
61
|
+
return ne.createElement(ho.li,{ref:t,__css:{display:"flex",alignItems:"flex-start"},className:_o("chakra-wrap__listitem",n),...r})});function vm(e){const t=e.target,{tagName:n,isContentEditable:r}=t;return"INPUT"!==n&&"TEXTAREA"!==n&&!0!==r}function ym(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function gm(e){return!!ym(e)&&e instanceof(e.ownerDocument.defaultView??window).HTMLElement}function bm(e){return ym(e)?e.ownerDocument:document}hm.displayName="WrapItem";var Em=e=>e.hasAttribute("tabindex");function xm(e){return!(!e.parentElement||!xm(e.parentElement))||e.hidden}function wm(e){if(!gm(e)||xm(e)||function(e){return!0===Boolean(e.getAttribute("disabled"))||!0===Boolean(e.getAttribute("aria-disabled"))}(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():!!function(e){const t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||Em(e)}var km="top",Sm="bottom",Cm="right",_m="left",Om=[km,Sm,Cm,_m],Nm=/*#__PURE__*/Om.reduce(function(e,t){return e.concat([t+"-start",t+"-end"])},[]),Am=/*#__PURE__*/[].concat(Om,["auto"]).reduce(function(e,t){return e.concat([t,t+"-start",t+"-end"])},[]),Rm=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Im(e){return e?(e.nodeName||"").toLowerCase():null}function Lm(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Tm(e){return e instanceof Lm(e).Element||e instanceof Element}function Pm(e){return e instanceof Lm(e).HTMLElement||e instanceof HTMLElement}function Mm(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Lm(e).ShadowRoot||e instanceof ShadowRoot)}function jm(e){return e.split("-")[0]}var Dm=Math.max,Vm=Math.min,Bm=Math.round;function Fm(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(Pm(e)&&t){var a=e.offsetHeight,i=e.offsetWidth;i>0&&(r=Bm(n.width)/i||1),a>0&&(o=Bm(n.height)/a||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function $m(e){var t=Fm(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 zm(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Mm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Wm(e){return Lm(e).getComputedStyle(e)}function Um(e){return["table","td","th"].indexOf(Im(e))>=0}function Hm(e){return((Tm(e)?e.ownerDocument:e.document)||window.document).documentElement}function qm(e){return"html"===Im(e)?e:e.assignedSlot||e.parentNode||(Mm(e)?e.host:null)||Hm(e)}function Ym(e){return Pm(e)&&"fixed"!==Wm(e).position?e.offsetParent:null}function Zm(e){for(var t=Lm(e),n=Ym(e);n&&Um(n)&&"static"===Wm(n).position;)n=Ym(n);return n&&("html"===Im(n)||"body"===Im(n)&&"static"===Wm(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Pm(e)&&"fixed"===Wm(e).position)return null;var n=qm(e);for(Mm(n)&&(n=n.host);Pm(n)&&["html","body"].indexOf(Im(n))<0;){var r=Wm(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 Gm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Xm(e,t,n){return Dm(e,Vm(t,n))}function Km(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Jm(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function Qm(e){return e.split("-")[1]}var eh={top:"auto",right:"auto",bottom:"auto",left:"auto"};function th(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=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,h=void 0===m?0:m,v="function"==typeof u?u({x:f,y:h}):{x:f,y:h};f=v.x,h=v.y;var y=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),b=_m,E=km,x=window;if(c){var w=Zm(n),k="clientHeight",S="clientWidth";w===Lm(n)&&"static"!==Wm(w=Hm(n)).position&&"absolute"===s&&(k="scrollHeight",S="scrollWidth"),(o===km||(o===_m||o===Cm)&&"end"===a)&&(E=Sm,h-=(d&&w===x&&x.visualViewport?x.visualViewport.height:w[k])-r.height,h*=l?1:-1),o!==_m&&(o!==km&&o!==Sm||"end"!==a)||(b=Cm,f-=(d&&w===x&&x.visualViewport?x.visualViewport.width:w[S])-r.width,f*=l?1:-1)}var C,_=Object.assign({position:s},c&&eh),O=!0===u?function(e){var t=e.y,n=window.devicePixelRatio||1;return{x:Bm(e.x*n)/n||0,y:Bm(t*n)/n||0}}({x:f,y:h}):{x:f,y:h};return f=O.x,h=O.y,Object.assign({},_,l?((C={})[E]=g?"0":"",C[b]=y?"0":"",C.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+h+"px)":"translate3d("+f+"px, "+h+"px, 0)",C):((t={})[E]=g?h+"px":"",t[b]=y?f+"px":"",t.transform="",t))}var nh={passive:!0},rh={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,s=void 0===i||i,l=Lm(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(e){e.addEventListener("scroll",n.update,nh)}),s&&l.addEventListener("resize",n.update,nh),function(){a&&c.forEach(function(e){e.removeEventListener("scroll",n.update,nh)}),s&&l.removeEventListener("resize",n.update,nh)}},data:{}},oh={left:"right",right:"left",bottom:"top",top:"bottom"};function ah(e){return e.replace(/left|right|bottom|top/g,function(e){return oh[e]})}var ih={start:"end",end:"start"};function sh(e){return e.replace(/start|end/g,function(e){return ih[e]})}function lh(e){var t=Lm(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ch(e){return Fm(Hm(e)).left+lh(e).scrollLeft}function uh(e){var t=Wm(e);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function dh(e){return["html","body","#document"].indexOf(Im(e))>=0?e.ownerDocument.body:Pm(e)&&uh(e)?e:dh(qm(e))}function ph(e,t){var n;void 0===t&&(t=[]);var r=dh(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=Lm(r),i=o?[a].concat(a.visualViewport||[],uh(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(ph(qm(i)))}function fh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function mh(e,t){return"viewport"===t?fh(function(e){var t=Lm(e),n=Hm(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,i=0,s=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,s=r.offsetTop)),{width:o,height:a,x:i+ch(e),y:s}}(e)):Tm(t)?function(e){var t=Fm(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):fh(function(e){var t,n=Hm(e),r=lh(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=Dm(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Dm(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+ch(e),l=-r.scrollTop;return"rtl"===Wm(o||n).direction&&(s+=Dm(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}(Hm(e)))}function hh(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?jm(o):null,i=o?Qm(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case km:t={x:s,y:n.y-r.height};break;case Sm:t={x:s,y:n.y+n.height};break;case Cm:t={x:n.x+n.width,y:l};break;case _m:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=a?Gm(a):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 vh(e,t){void 0===t&&(t={});var n=t.placement,r=void 0===n?e.placement:n,o=t.boundary,a=void 0===o?"clippingParents":o,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=Km("number"!=typeof f?f:Jm(f,Om)),h=e.rects.popper,v=e.elements[d?"popper"===c?"reference":"popper":c],y=function(e,t,n){var r="clippingParents"===t?function(e){var t=ph(qm(e)),n=["absolute","fixed"].indexOf(Wm(e).position)>=0&&Pm(e)?Zm(e):e;return Tm(n)?t.filter(function(e){return Tm(e)&&zm(e,n)&&"body"!==Im(e)}):[]}(e):[].concat(t),o=[].concat(r,[n]),a=o.reduce(function(t,n){var r=mh(e,n);return t.top=Dm(r.top,t.top),t.right=Vm(r.right,t.right),t.bottom=Vm(r.bottom,t.bottom),t.left=Dm(r.left,t.left),t},mh(e,o[0]));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(Tm(v)?v:v.contextElement||Hm(e.elements.popper),a,s),g=Fm(e.elements.reference),b=hh({reference:g,element:h,strategy:"absolute",placement:r}),E=fh(Object.assign({},h,b)),x="popper"===c?E:g,w={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},k=e.modifiersData.offset;if("popper"===c&&k){var S=k[r];Object.keys(w).forEach(function(e){var t=[Cm,Sm].indexOf(e)>=0?1:-1,n=[km,Sm].indexOf(e)>=0?"y":"x";w[e]+=S[n]*t})}return w}function yh(e,t){void 0===t&&(t={});var n=t.boundary,r=t.rootBoundary,o=t.padding,a=t.flipVariations,i=t.allowedAutoPlacements,s=void 0===i?Am:i,l=Qm(t.placement),c=l?a?Nm:Nm.filter(function(e){return Qm(e)===l}):Om,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,a){return t[a]=vh(e,{placement:a,boundary:n,rootBoundary:r,padding:o})[jm(a)],t},{});return Object.keys(d).sort(function(e,t){return d[e]-d[t]})}var gh={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 o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,m=void 0===f||f,h=n.allowedAutoPlacements,v=t.options.placement,y=jm(v),g=l||(y!==v&&m?function(e){if("auto"===jm(e))return[];var t=ah(e);return[sh(e),t,sh(t)]}(v):[ah(v)]),b=[v].concat(g).reduce(function(e,n){return e.concat("auto"===jm(n)?yh(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:h}):n)},[]),E=t.rects.reference,x=t.rects.popper,w=new Map,k=!0,S=b[0],C=0;C<b.length;C++){var _=b[C],O=jm(_),N="start"===Qm(_),A=[km,Sm].indexOf(O)>=0,R=A?"width":"height",I=vh(t,{placement:_,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),L=A?N?Cm:_m:N?Sm:km;E[R]>x[R]&&(L=ah(L));var T=ah(L),P=[];if(a&&P.push(I[O]<=0),s&&P.push(I[L]<=0,I[T]<=0),P.every(function(e){return e})){S=_,k=!1;break}w.set(_,P)}if(k)for(var M=function(e){var t=b.find(function(t){var n=w.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},j=m?3:1;j>0&&"break"!==M(j);j--);t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function bh(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 Eh(e){return[km,Cm,Sm,_m].some(function(t){return e[t]>=0})}var xh={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.name,r=e.options.offset,o=void 0===r?[0,0]:r,a=Am.reduce(function(e,n){return e[n]=function(e,t,n){var r=jm(e),o=[_m,km].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[_m,Cm].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}(n,t.rects,o),e},{}),i=a[t.placement],s=i.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=i.x,t.modifiersData.popperOffsets.y+=s),t.modifiersData[n]=a}},wh={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,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,p=vh(t,{boundary:n.boundary,rootBoundary:n.rootBoundary,padding:n.padding,altBoundary:n.altBoundary}),f=jm(t.placement),m=Qm(t.placement),h=!m,v=Gm(f),y="x"===v?"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,w="number"==typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(g){if(a){var C,_="y"===v?km:_m,O="y"===v?Sm:Cm,N="y"===v?"height":"width",A=g[v],R=A+p[_],I=A-p[O],L=c?-E[N]/2:0,T="start"===m?b[N]:E[N],P="start"===m?-E[N]:-b[N],M=t.elements.arrow,j=c&&M?$m(M):{width:0,height:0},D=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=D[_],B=D[O],F=Xm(0,b[N],j[N]),$=h?b[N]/2-L-F-V-w.mainAxis:T-F-V-w.mainAxis,z=h?-b[N]/2+L+F+B+w.mainAxis:P+F+B+w.mainAxis,W=t.elements.arrow&&Zm(t.elements.arrow),U=null!=(C=null==k?void 0:k[v])?C:0,H=A+z-U,q=Xm(c?Vm(R,A+$-U-(W?"y"===v?W.clientTop||0:W.clientLeft||0:0)):R,A,c?Dm(I,H):I);g[v]=q,S[v]=q-A}if(s){var Y,Z=g[y],G="y"===y?"height":"width",X=Z+p["x"===v?km:_m],K=Z-p["x"===v?Sm:Cm],J=-1!==[km,_m].indexOf(f),Q=null!=(Y=null==k?void 0:k[y])?Y:0,ee=J?X:Z-b[G]-E[G]-Q+w.altAxis,te=J?Z+b[G]+E[G]-Q-w.altAxis:K,ne=c&&J?function(e,t,n){var r=Xm(e,t,n);return r>n?n:r}(ee,Z,te):Xm(c?ee:X,Z,c?te:K);g[y]=ne,S[y]=ne-Z}t.modifiersData[r]=S}},requiresIfExists:["offset"]};function kh(e,t,n){void 0===n&&(n=!1);var r=Pm(t),o=Pm(t)&&function(e){var t=e.getBoundingClientRect(),n=Bm(t.width)/e.offsetWidth||1,r=Bm(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=Hm(t),i=Fm(e,o),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Im(t)||uh(a))&&(s=function(e){return e!==Lm(e)&&Pm(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:lh(e);var t}(t)),Pm(t)?((l=Fm(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=ch(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function Sh(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}function Ch(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 _h='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Oh=["name","enabled","phase","fn","effect","requires","options"],Nh="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Ah={placement:"bottom",modifiers:[],strategy:"absolute"};function Rh(){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 Ih(e){void 0===e&&(e={});var t=e.defaultModifiers,n=void 0===t?[]:t,r=e.defaultOptions,o=void 0===r?Ah:r;return function(e,t,r){void 0===r&&(r=o);var a,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ah,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(r){var a="function"==typeof r?r(s.options):r;d(),s.options=Object.assign({},o,s.options,a),s.scrollParents={reference:Tm(e)?ph(e):e.contextElement?ph(e.contextElement):[],popper:ph(t)};var i,c,p,f=function(e){var t=Sh(e);return Rm.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=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),Oh).filter(function(e,t,n){return n.indexOf(e)===t}).forEach(function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(Ch(_h,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(Ch(_h,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":Rm.indexOf(t.phase)<0&&console.error(Ch(_h,t.name,'"phase"',"either "+Rm.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(Ch(_h,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(Ch(_h,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(Ch(_h,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Ch(_h,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 '+Oh.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(Ch('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),n,n))})})})})(m),"auto"===jm(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 h=Wm(t);[h.marginTop,h.marginRight,h.marginBottom,h.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(Rh(t,n)){s.rects={reference:kh(t,Zm(n),"fixed"===s.options.strategy),popper:$m(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,o=0;o<s.orderedModifiers.length;o++){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 a=s.orderedModifiers[o],i=a.fn,l=a.options;"function"==typeof i&&(s=i({state:s,options:void 0===l?{}:l,name:a.name,instance:u})||s)}else s.reset=!1,o=-1}}else"production"!==process.env.NODE_ENV&&console.error(Nh)}},update:(a=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(a())})})),i}),destroy:function(){d(),c=!0}};if(!Rh(e,t))return"production"!==process.env.NODE_ENV&&console.error(Nh),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 Lh=/*#__PURE__*/Ih({defaultModifiers:[rh,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=hh({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,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,s=n.roundOffsets,l=void 0===s||s;if("production"!==process.env.NODE_ENV){var c=Wm(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:jm(t.placement),variation:Qm(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,th(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,th(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]||{},o=t.elements[e];Pm(o)&&Im(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.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],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Pm(r)&&Im(r)&&(Object.assign(r.style,a),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},xh,gh,wh,{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=jm(n.placement),l=Gm(s),c=[_m,Cm].indexOf(s)>=0?"height":"width";if(a&&i){var u=function(e,t){return Km("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Jm(e,Om))}(o.padding,n),d=$m(a),p="y"===l?km:_m,f="y"===l?Sm:Cm,m=n.rects.reference[c]+n.rects.reference[l]-i[l]-n.rects.popper[c],h=i[l]-n.rects.reference[l],v=Zm(a),y=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,g=y/2-d[c]/2+(m/2-h/2),b=Xm(u[p],g,y-d[c]-u[f]);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&&(Pm(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(" "))),zm(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,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=vh(t,{elementContext:"reference"}),s=vh(t,{altBoundary:!0}),l=bh(i,r),c=bh(s,o,a),u=Eh(l),d=Eh(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})}}]}),Th=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),Ph={arrowShadowColor:Th("--popper-arrow-shadow-color"),arrowSize:Th("--popper-arrow-size","8px"),arrowSizeHalf:Th("--popper-arrow-size-half"),arrowBg:Th("--popper-arrow-bg"),transformOrigin:Th("--popper-transform-origin"),arrowOffset:Th("--popper-arrow-offset")},Mh={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"},jh={scroll:!0,resize:!0};function Dh(e){let t;return t="object"==typeof e?{enabled:!0,options:{...jh,...e}}:{enabled:e,options:jh},t}var Vh={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{e.elements.popper.style.width=`${e.elements.reference.offsetWidth}px`}},Bh={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{Fh(e)},effect:({state:e})=>()=>{Fh(e)}},Fh=e=>{e.elements.popper.style.setProperty(Ph.transformOrigin.var,Mh[e.placement])},$h={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{zh(e)}},zh=e=>{var t;if(!e.placement)return;const n=Wh(e.placement);if((null==(t=e.elements)?void 0:t.arrow)&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:Ph.arrowSize.varRef,height:Ph.arrowSize.varRef,zIndex:-1});const t={[Ph.arrowSizeHalf.var]:`calc(${Ph.arrowSize.varRef} / 2)`,[Ph.arrowOffset.var]:`calc(${Ph.arrowSizeHalf.varRef} * -1)`};for(const n in t)e.elements.arrow.style.setProperty(n,t[n])}},Wh=e=>e.startsWith("top")?{property:"bottom",value:Ph.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:Ph.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:Ph.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:Ph.arrowOffset.varRef}:void 0,Uh={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{Hh(e)},effect:({state:e})=>()=>{Hh(e)}},Hh=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");var n;t&&Object.assign(t.style,{transform:"rotate(45deg)",background:Ph.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:(n=e.placement,n.includes("top")?"1px 1px 1px 0 var(--popper-arrow-shadow-color)":n.includes("bottom")?"-1px -1px 1px 0 var(--popper-arrow-shadow-color)":n.includes("right")?"-1px 1px 1px 0 var(--popper-arrow-shadow-color)":n.includes("left")?"1px -1px 1px 0 var(--popper-arrow-shadow-color)":void 0)})},qh={"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"}},Yh={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function Zh(e){const{size:t,shadowColor:n,bg:r,style:o}=e,a={...o,position:"absolute"};return t&&(a["--popper-arrow-size"]=t),n&&(a["--popper-arrow-shadow-color"]=n),r&&(a["--popper-arrow-bg"]=r),a}function Gh(e,t){var n;const r=e.target;return!(e.button>0||r&&!Xh(r).contains(r)||(null==(n=t.current)?void 0:n.contains(r)))}function Xh(e){return(null==e?void 0:e.ownerDocument)??document}var Kh=(...e)=>e.filter(Boolean).join(" ");function Jh(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}function Qh(...e){return function(t){e.forEach(e=>{null==e||e(t)})}}var[ev,tv,nv,rv]=Co(),[ov,av]=vo({strict:!1,name:"MenuContext"});function iv(e){return(null==e?void 0:e.ownerDocument)??document}function sv(e){return iv(e).activeElement===e}function lv(e){var t,n;return!!function(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}(n=e)&&n instanceof(n.ownerDocument.defaultView??window).HTMLElement&&!!(null==(t=null==e?void 0:e.getAttribute("role"))?void 0:t.startsWith("menuitem"))}function cv(e={},t=null){const{onMouseEnter:n,onMouseMove:r,onMouseLeave:o,onClick:a,isDisabled:i,isFocusable:s,closeOnSelect:l,type:c,...u}=e,d=av(),{setFocusedIndex:p,focusedIndex:f,closeOnSelect:m,onClose:h,menuRef:v,isOpen:y,menuId:g}=d,b=ne.useRef(null),E=`${g}-menuitem-${ne.useId()}`,{index:x,register:w}=rv({disabled:i&&!s}),k=ne.useCallback(e=>{null==n||n(e),i||p(x)},[p,x,i,n]),S=ne.useCallback(e=>{null==r||r(e),b.current&&!sv(b.current)&&k(e)},[k,r]),C=ne.useCallback(e=>{null==o||o(e),i||p(-1)},[p,i,o]),_=ne.useCallback(e=>{null==a||a(e),lv(e.currentTarget)&&(l??m)&&h()},[h,a,m,l]),O=x===f,N=i&&!s;Xp(()=>{y&&(O&&!N&&b.current?requestAnimationFrame(()=>{var e;null==(e=b.current)||e.focus()}):v.current&&!sv(v.current)&&v.current.focus())},[O,N,v,y]);const A=function(e={}){const{ref:t,isDisabled:n,isFocusable:r,clickOnEnter:o=!0,clickOnSpace:a=!0,onMouseDown:i,onMouseUp:s,onClick:l,onKeyDown:c,onKeyUp:u,tabIndex:d,onMouseOver:p,onMouseLeave:f,...m}=e,[h,v]=ne.useState(!0),[y,g]=ne.useState(!1),b=function(){const e=ne.useRef(/* @__PURE__ */new Map),t=e.current,n=ne.useCallback((t,n,r,o)=>{e.current.set(r,{type:n,el:t,options:o}),t.addEventListener(n,r,o)},[]),r=ne.useCallback((t,n,r,o)=>{t.removeEventListener(n,r,o),e.current.delete(r)},[]);return ne.useEffect(()=>()=>{t.forEach((e,t)=>{r(e.el,e.type,t,e.options)})},[r,t]),{add:n,remove:r}}(),E=h?d:d||0,x=n&&!r,w=ne.useCallback(e=>{if(n)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==l||l(e)},[n,l]),k=ne.useCallback(e=>{y&&vm(e)&&(e.preventDefault(),e.stopPropagation(),g(!1),b.remove(document,"keyup",k,!1))},[y,b]),S=ne.useCallback(e=>{if(null==c||c(e),n||e.defaultPrevented||e.metaKey)return;if(!vm(e.nativeEvent)||h)return;const t=o&&"Enter"===e.key;a&&" "===e.key&&(e.preventDefault(),g(!0)),t&&(e.preventDefault(),e.currentTarget.click()),b.add(document,"keyup",k,!1)},[n,h,c,o,a,b,k]),C=ne.useCallback(e=>{null==u||u(e),n||e.defaultPrevented||e.metaKey||vm(e.nativeEvent)&&!h&&a&&" "===e.key&&(e.preventDefault(),g(!1),e.currentTarget.click())},[a,h,n,u]),_=ne.useCallback(e=>{0===e.button&&(g(!1),b.remove(document,"mouseup",_,!1))},[b]),O=ne.useCallback(e=>{if(0===e.button){if(n)return e.stopPropagation(),void e.preventDefault();h||g(!0),e.currentTarget.focus({preventScroll:!0}),b.add(document,"mouseup",_,!1),null==i||i(e)}},[n,h,i,b,_]),N=ne.useCallback(e=>{0===e.button&&(h||g(!1),null==s||s(e))},[s,h]),A=ne.useCallback(e=>{n?e.preventDefault():null==p||p(e)},[n,p]),R=ne.useCallback(e=>{y&&(e.preventDefault(),g(!1)),null==f||f(e)},[y,f]),I=yo(t,e=>{e&&"BUTTON"!==e.tagName&&v(!1)});return h?{...m,ref:I,type:"button","aria-disabled":x?void 0:n,disabled:x,onClick:w,onMouseDown:i,onMouseUp:s,onKeyUp:u,onKeyDown:c,onMouseOver:p,onMouseLeave:f}:{...m,ref:I,role:"button","data-active":(L=y,L?"":void 0),"aria-disabled":n?"true":void 0,tabIndex:x?void 0:E,onClick:w,onMouseDown:O,onMouseUp:N,onKeyUp:C,onKeyDown:S,onMouseOver:A,onMouseLeave:R};var L}({onClick:_,onMouseEnter:k,onMouseMove:S,onMouseLeave:C,ref:yo(w,b,t),isDisabled:i,isFocusable:s});return{...u,...A,type:c??A.type,id:E,role:"menuitem",tabIndex:O?0:-1}}var[uv,dv]=vo({name:"MenuStylesContext",errorMessage:"useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Menu />\" "}),pv=e=>{const{children:t}=e,n=mo("Menu",e),r=Rt(e),{direction:o}=ao(),{descendants:a,...i}=function(e={}){const{id:t,closeOnSelect:n=!0,closeOnBlur:r=!0,autoSelect:o=!0,isLazy:a,isOpen:i,defaultIsOpen:s,onClose:l,onOpen:c,placement:u="bottom-start",lazyBehavior:d="unmount",direction:p,computePositionOnMount:f=!1,...m}=e,h=ne.useRef(null),v=ne.useRef(null),y=nv(),g=ne.useCallback(()=>{requestAnimationFrame(()=>{var e;null==(e=h.current)||e.focus({preventScroll:!1})})},[]),b=ne.useCallback(()=>{const e=setTimeout(()=>{const e=y.firstEnabled();e&&N(e.index)});T.current.add(e)},[y]),E=ne.useCallback(()=>{const e=setTimeout(()=>{const e=y.lastEnabled();e&&N(e.index)});T.current.add(e)},[y]),x=ne.useCallback(()=>{null==c||c(),o?b():g()},[o,b,g,c]),{isOpen:w,onOpen:k,onClose:S,onToggle:C}=function(e={}){const{onClose:t,onOpen:n,isOpen:r,id:o}=e,a=Oo(n),i=Oo(t),[s,l]=ne.useState(e.defaultIsOpen||!1),c=void 0!==r?r:s,u=void 0!==r,d=ne.useId(),p=o??`disclosure-${d}`,f=ne.useCallback(()=>{u||l(!1),null==i||i()},[u,i]),m=ne.useCallback(()=>{u||l(!0),null==a||a()},[u,a]),h=ne.useCallback(()=>{c?f():m()},[c,m,f]);return{isOpen:c,onOpen:m,onClose:f,onToggle:h,isControlled:u,getButtonProps:function(e={}){return{...e,"aria-expanded":c,"aria-controls":p,onClick(t){var n;null==(n=e.onClick)||n.call(e,t),h()}}},getDisclosureProps:function(e={}){return{...e,hidden:!c,id:p}}}}({isOpen:i,defaultIsOpen:s,onClose:l,onOpen:x});!function(e){const{ref:t,handler:n,enabled:r=!0}=e,o=Oo(n),a=ne.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;ne.useEffect(()=>{if(!r)return;const e=e=>{Gh(e,t)&&(a.isPointerDown=!0)},i=e=>{a.ignoreEmulatedMouseEvents?a.ignoreEmulatedMouseEvents=!1:a.isPointerDown&&n&&Gh(e,t)&&(a.isPointerDown=!1,o(e))},s=e=>{a.ignoreEmulatedMouseEvents=!0,n&&a.isPointerDown&&Gh(e,t)&&(a.isPointerDown=!1,o(e))},l=Xh(t.current);return l.addEventListener("mousedown",e,!0),l.addEventListener("mouseup",i,!0),l.addEventListener("touchstart",e,!0),l.addEventListener("touchend",s,!0),()=>{l.removeEventListener("mousedown",e,!0),l.removeEventListener("mouseup",i,!0),l.removeEventListener("touchstart",e,!0),l.removeEventListener("touchend",s,!0)}},[n,t,o,a,r])}({enabled:w&&r,ref:h,handler:e=>{var t;(null==(t=v.current)?void 0:t.contains(e.target))||S()}});const _=function(e={}){const{enabled:t=!0,modifiers:n,placement:r="bottom",strategy:o="absolute",arrowPadding:a=8,eventListeners:i=!0,offset:s,gutter:l=8,flip:c=!0,boundary:u="clippingParents",preventOverflow:d=!0,matchWidth:p,direction:f="ltr"}=e,m=ne.useRef(null),h=ne.useRef(null),v=ne.useRef(null),y=function(e,t="ltr"){var n;const r=(null==(n=qh[e])?void 0:n[t])||e;return"ltr"===t?r:Yh[e]??r}(r,f),g=ne.useRef(()=>{}),b=ne.useCallback(()=>{var e;t&&m.current&&h.current&&(null==(e=g.current)||e.call(g),v.current=Lh(m.current,h.current,{placement:y,modifiers:[Uh,$h,Bh,{...Vh,enabled:!!p},{name:"eventListeners",...Dh(i)},{name:"arrow",options:{padding:a}},{name:"offset",options:{offset:s??[0,l]}},{name:"flip",enabled:!!c,options:{padding:8}},{name:"preventOverflow",enabled:!!d,options:{boundary:u}},...n??[]],strategy:o}),v.current.forceUpdate(),g.current=v.current.destroy)},[y,t,n,p,i,a,s,l,c,d,u,o]);ne.useEffect(()=>()=>{var e;m.current||h.current||(null==(e=v.current)||e.destroy(),v.current=null)},[]);const E=ne.useCallback(e=>{m.current=e,b()},[b]),x=ne.useCallback((e={},t=null)=>({...e,ref:yo(E,t)}),[E]),w=ne.useCallback(e=>{h.current=e,b()},[b]),k=ne.useCallback((e={},t=null)=>({...e,ref:yo(w,t),style:{...e.style,position:o,minWidth:p?void 0:"max-content",inset:"0 auto auto 0"}}),[o,w,p]),S=ne.useCallback((e={},t=null)=>{const{size:n,shadowColor:r,bg:o,style:a,...i}=e;return{...i,ref:t,"data-popper-arrow":"",style:Zh(e)}},[]),C=ne.useCallback((e={},t=null)=>({...e,ref:t,"data-popper-arrow-inner":""}),[]);return{update(){var e;null==(e=v.current)||e.update()},forceUpdate(){var e;null==(e=v.current)||e.forceUpdate()},transformOrigin:Ph.transformOrigin.varRef,referenceRef:E,popperRef:w,getPopperProps:k,getArrowProps:S,getArrowInnerProps:C,getReferenceProps:x}}({...m,enabled:w||f,placement:u,direction:p}),[O,N]=ne.useState(-1);Xp(()=>{w||N(-1)},[w]),function(e,t){const{shouldFocus:n,visible:r,focusRef:o}=t,a=n&&!r;Xp(()=>{if(!a)return;if(function(e){const t=e.current;if(!t)return!1;const n=function(e){return bm(e).activeElement}(t);return!(!n||t.contains(n)||(r=n,!(r&&gm(r)&&wm(r))||(e=>Em(e)&&-1===e.tabIndex)(r)));var r}(e))return;const t=(null==o?void 0:o.current)||e.current;t&&requestAnimationFrame(()=>{t.focus()})},[a,e,o])}(h,{focusRef:v,visible:w,shouldFocus:!0});const A=function(e){const{isOpen:t,ref:n}=e,[r,o]=ne.useState(t),[a,i]=ne.useState(!1);return ne.useEffect(()=>{a||(o(t),i(!0))},[t,a,r]),Tf(()=>n.current,"animationend",()=>{o(t)}),{present:!(!t&&!r),onComplete(){var e;const t=function(e){var t;return(null==(t=bm(e))?void 0:t.defaultView)??window}(n.current),r=new t.CustomEvent("animationend",{bubbles:!0});null==(e=n.current)||e.dispatchEvent(r)}}}({isOpen:w,ref:h}),[R,I]=function(e,...t){const n=ne.useId(),r=e||n;return ne.useMemo(()=>t.map(e=>`${e}-${r}`),[r,t])}(t,"menu-button","menu-list"),L=ne.useCallback(()=>{k(),g()},[k,g]),T=ne.useRef(/* @__PURE__ */new Set([]));!function(e,t=[]){ne.useEffect(()=>()=>e(),t)}(()=>{T.current.forEach(e=>clearTimeout(e)),T.current.clear()});const P=ne.useCallback(()=>{k(),b()},[b,k]),M=ne.useCallback(()=>{k(),E()},[k,E]),j=ne.useCallback(()=>{var e,t;const n=iv(h.current),r=null==(e=h.current)?void 0:e.contains(n.activeElement);if(!w||r)return;const o=null==(t=y.item(O))?void 0:t.node;null==o||o.focus()},[w,O,y]);return{openAndFocusMenu:L,openAndFocusFirstItem:P,openAndFocusLastItem:M,onTransitionEnd:j,unstable__animationState:A,descendants:y,popper:_,buttonId:R,menuId:I,forceUpdate:_.forceUpdate,orientation:"vertical",isOpen:w,onToggle:C,onOpen:k,onClose:S,menuRef:h,buttonRef:v,focusedIndex:O,closeOnSelect:n,closeOnBlur:r,autoSelect:o,setFocusedIndex:N,isLazy:a,lazyBehavior:d}}({...r,direction:o}),s=ne.useMemo(()=>i,[i]),{isOpen:l,onClose:c,forceUpdate:u}=s;/* @__PURE__ */
|
62
|
+
return ne.createElement(ev,{value:a},/* @__PURE__ */ne.createElement(ov,{value:s},/* @__PURE__ */ne.createElement(uv,{value:n},function(e,...t){return"function"==typeof e?e(...t):e}(t,{isOpen:l,onClose:c,forceUpdate:u}))))};pv.displayName="Menu";var fv=uo((e,t)=>{const n=dv();/* @__PURE__ */
|
63
|
+
return ne.createElement(ho.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...n.button}})}),mv=uo((e,t)=>{const{children:n,as:r,...o}=e,a=function(e={},t=null){const n=av(),{onToggle:r,popper:o,openAndFocusFirstItem:a,openAndFocusLastItem:i}=n,s=ne.useCallback(e=>{const t={Enter:a,ArrowDown:a,ArrowUp:i}[e.key];t&&(e.preventDefault(),e.stopPropagation(),t(e))},[a,i]);return{...e,ref:yo(n.buttonRef,t,o.referenceRef),id:n.buttonId,"data-active":(l=n.isOpen,l?"":void 0),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:Jh(e.onClick,r),onKeyDown:Jh(e.onKeyDown,s)};var l}(o,t);/* @__PURE__ */
|
64
|
+
return ne.createElement(r||fv,{...a,className:Kh("chakra-menu__menu-button",e.className)},/* @__PURE__ */ne.createElement(ho.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0}},e.children))});mv.displayName="MenuButton";var hv=uo((e,t)=>{const n=dv();/* @__PURE__ */
|
65
|
+
return ne.createElement(ho.span,{ref:t,...e,__css:n.command,className:"chakra-menu__command"})});hv.displayName="MenuCommand";var vv=uo((e,t)=>{const{title:n,children:r,className:o,...a}=e,i=Kh("chakra-menu__group__title",o),s=dv();/* @__PURE__ */
|
66
|
+
return ne.createElement("div",{ref:t,className:"chakra-menu__group",role:"group"},n&&/* @__PURE__ */ne.createElement(ho.p,{className:i,...a,__css:s.groupTitle},n),r)});vv.displayName="MenuGroup";var yv=e=>{const{className:t,children:n,...r}=e,o=ne.Children.only(n),a=ne.isValidElement(o)?ne.cloneElement(o,{focusable:"false","aria-hidden":!0,className:Kh("chakra-menu__icon",o.props.className)}):null,i=Kh("chakra-menu__icon-wrapper",t);/* @__PURE__ */
|
67
|
+
return ne.createElement(ho.span,{className:i,...r,__css:{flexShrink:0}},a)};yv.displayName="MenuIcon";var gv=uo((e,t)=>{const{type:n,...r}=e,o=dv(),a=r.as||n?n??void 0:"button",i=ne.useMemo(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...o.item}),[o.item]);/* @__PURE__ */
|
68
|
+
return ne.createElement(ho.button,{ref:t,type:a,...r,__css:i})}),bv=e=>/* @__PURE__ */ne.createElement("svg",{viewBox:"0 0 14 14",width:"1em",height:"1em",...e},/* @__PURE__ */ne.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"})),Ev=uo((e,t)=>{const{icon:n,iconSpacing:r="0.75rem",...o}=e,a=function(e={},t=null){const{type:n="radio",isChecked:r,...o}=e;return{...cv(o,t),role:`menuitem${n}`,"aria-checked":r}}(o,t);/* @__PURE__ */
|
69
|
+
return ne.createElement(gv,{...a,className:Kh("chakra-menu__menuitem-option",o.className)},null!==n&&/* @__PURE__ */ne.createElement(yv,{fontSize:"0.8em",marginEnd:r,opacity:e.isChecked?1:0},n||/* @__PURE__ */ne.createElement(bv,null)),/* @__PURE__ */ne.createElement("span",{style:{flex:1}},a.children))});Ev.id="MenuItemOption",Ev.displayName="MenuItemOption",uo((e,t)=>{const{icon:n,iconSpacing:r="0.75rem",command:o,commandSpacing:a="0.75rem",children:i,...s}=e,l=cv(s,t),c=n||o?/* @__PURE__ */ne.createElement("span",{style:{pointerEvents:"none",flex:1}},i):i;/* @__PURE__ */
|
70
|
+
return ne.createElement(gv,{...l,className:Kh("chakra-menu__menuitem",l.className)},n&&/* @__PURE__ */ne.createElement(yv,{fontSize:"0.8em",marginEnd:r},n),c,o&&/* @__PURE__ */ne.createElement(hv,{marginStart:a},o))}).displayName="MenuItem";var xv={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"}}},wv=ho(zd.div),kv=uo(function(e,t){var n;const{rootProps:r,motionProps:o,...a}=e,{isOpen:i,onTransitionEnd:s,unstable__animationState:l}=av(),c=function(e={},t=null){const n=av();if(!n)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");const{focusedIndex:r,setFocusedIndex:o,menuRef:a,isOpen:i,onClose:s,menuId:l,isLazy:c,lazyBehavior:u,unstable__animationState:d}=n,p=tv(),f=function(e={}){const{timeout:t=300,preventDefault:n=(()=>!0)}=e,[r,o]=ne.useState([]),a=ne.useRef(),i=()=>{a.current&&(clearTimeout(a.current),a.current=null)};return ne.useEffect(()=>i,[]),function(e){return s=>{if("Backspace"===s.key){const e=[...r];return e.pop(),void o(e)}if(function(e){const{key:t}=e;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(s)){const l=r.concat(s.key);n(s)&&(s.preventDefault(),s.stopPropagation()),o(l),e(l.join("")),i(),a.current=setTimeout(()=>{o([]),a.current=null},t)}}}}({preventDefault:e=>" "!==e.key&&lv(e.target)}),m=ne.useCallback(e=>{const t={Tab:e=>e.preventDefault(),Escape:s,ArrowDown:()=>{const e=p.nextEnabled(r);e&&o(e.index)},ArrowUp:()=>{const e=p.prevEnabled(r);e&&o(e.index)}},n=t[e.key];if(n)return e.preventDefault(),void n(e);const a=f(e=>{const t=function(e,t,n,r){if(null==t)return r;if(!r)return e.find(e=>n(e).toLowerCase().startsWith(t.toLowerCase()));const o=e.filter(e=>n(e).toLowerCase().startsWith(t.toLowerCase()));if(o.length>0){let t;return o.includes(r)?(t=o.indexOf(r)+1,t===o.length&&(t=0),o[t]):(t=e.indexOf(o[0]),e[t])}return r}(p.values(),e,e=>{var t;return(null==(t=null==e?void 0:e.node)?void 0:t.textContent)??""},p.item(r));if(t){const e=p.indexOf(t.node);o(e)}});lv(e.target)&&a(e)},[p,r,f,s,o]),h=ne.useRef(!1);i&&(h.current=!0);const v=function(e){const{wasSelected:t,enabled:n,isSelected:r,mode:o="unmount"}=e;return!n||!!r||!("keepMounted"!==o||!t)}({wasSelected:h.current,enabled:c,mode:u,isSelected:d.present});return{...e,ref:yo(a,t),children:v?e.children:null,tabIndex:-1,role:"menu",id:l,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:Jh(e.onKeyDown,m)}}(a,t),u=function(e={}){const{popper:t,isOpen:n}=av();return t.getPopperProps({...e,style:{visibility:n?"visible":"hidden",...e.style}})}(r),d=dv();/* @__PURE__ */
|
71
|
+
return ne.createElement(ho.div,{...u,__css:{zIndex:e.zIndex??(null==(n=d.list)?void 0:n.zIndex)}},/* @__PURE__ */ne.createElement(wv,{variants:xv,initial:!1,animate:i?"enter":"exit",__css:{outline:0,...d.list},...o,className:Kh("chakra-menu__menu-list",c.className),...c,onUpdate:s,onAnimationComplete:Qh(l.onComplete,c.onAnimationComplete)}))});kv.displayName="MenuList";var Sv=e=>{const{className:t,title:n,...r}=e,o=function(e={}){const{children:t,type:n="radio",value:r,defaultValue:o,onChange:a,...i}=e,s="radio"===n?"":[],[l,c]=No({defaultValue:o??s,value:r,onChange:a}),u=ne.useCallback(e=>{if("radio"===n&&"string"==typeof l&&c(e),"checkbox"===n&&Array.isArray(l)){const t=l.includes(e)?l.filter(t=>t!==e):l.concat(e);c(t)}},[l,c,n]);return{...i,children:xp(t).map(e=>{if("MenuItemOption"!==e.type.id)return e;const t="radio"===n?e.props.value===l:l.includes(e.props.value);return ne.cloneElement(e,{type:n,onClick:t=>{var n,r;u(e.props.value),null==(r=(n=e.props).onClick)||r.call(n,t)},isChecked:t})})}}(r);/* @__PURE__ */
|
72
|
+
return ne.createElement(vv,{title:n,className:Kh("chakra-menu__option-group",t),...o})};Sv.displayName="MenuOptionGroup";var Cv={path:/* @__PURE__ */ne.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/* @__PURE__ */ne.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__ */ne.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__ */ne.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},_v=uo((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:a=!1,children:i,className:s,__css:l,...c}=e,u={ref:t,focusable:a,className:_o("chakra-icon",s),__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l}},d=r??Cv.viewBox;if(n&&"string"!=typeof n)/* @__PURE__ */
|
73
|
+
return ne.createElement(ho.svg,{as:n,...u,...c});const p=i??Cv.path;/* @__PURE__ */
|
74
|
+
return ne.createElement(ho.svg,{verticalAlign:"middle",viewBox:d,...u,...c},p)});_v.displayName="Icon";var Ov=(...e)=>e.filter(Boolean).join(" "),Nv=e=>!!e||void 0;function Av(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}var Rv=e=>/* @__PURE__ */ne.createElement(_v,{viewBox:"0 0 24 24",...e},/* @__PURE__ */ne.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"})),Iv=e=>/* @__PURE__ */ne.createElement(_v,{viewBox:"0 0 24 24",...e},/* @__PURE__ */ne.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 Lv(e,t,n,r){ne.useEffect(()=>{if(!e.current||!r)return;const o=e.current.ownerDocument.defaultView??window,a=Array.isArray(t)?t:[t],i=new o.MutationObserver(e=>{for(const t of e)"attributes"===t.type&&t.attributeName&&a.includes(t.attributeName)&&n(t)});return i.observe(e.current,{attributes:!0,attributeFilter:a}),()=>i.disconnect()})}var Tv=/^[Ee0-9+\-.]$/;function Pv(e){return Tv.test(e)}var[Mv,jv]=vo({name:"NumberInputStylesContext",errorMessage:"useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<NumberInput />\" "}),[Dv,Vv]=vo({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within <NumberInput />"}),Bv=uo(function(e,t){const n=mo("NumberInput",e),r=Up(Rt(e)),{htmlProps:o,...a}=function(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:n=!0,keepWithinRange:r=!0,min:o=Number.MIN_SAFE_INTEGER,max:a=Number.MAX_SAFE_INTEGER,step:i=1,isReadOnly:s,isDisabled:l,isRequired:c,isInvalid:u,pattern:d="[0-9]*(.[0-9]+)?",inputMode:p="decimal",allowMouseWheel:f,id:m,onChange:h,precision:v,name:y,"aria-describedby":g,"aria-label":b,"aria-labelledby":E,onFocus:x,onBlur:w,onInvalid:k,getAriaValueText:S,isValidCharacter:C,format:_,parse:O,...N}=e,A=Oo(x),R=Oo(w),I=Oo(k),L=Oo(C??Pv),T=Oo(S),P=Af(e),{update:M,increment:j,decrement:D}=P,[V,B]=ne.useState(!1),F=!(s||l),$=ne.useRef(null),z=ne.useRef(null),W=ne.useRef(null),U=ne.useRef(null),H=ne.useCallback(e=>e.split("").filter(L).join(""),[L]),q=ne.useCallback(e=>(null==O?void 0:O(e))??e,[O]),Y=ne.useCallback(e=>((null==_?void 0:_(e))??e).toString(),[_]);Xp(()=>{(P.valueAsNumber>a||P.valueAsNumber<o)&&(null==I||I("rangeOverflow",Y(P.value),P.valueAsNumber))},[P.valueAsNumber,P.value,Y,I]),oe(()=>{if($.current&&$.current.value!=P.value){const e=q($.current.value);P.setValue(H(e))}},[q,H]);const Z=ne.useCallback((e=i)=>{F&&j(e)},[j,F,i]),G=ne.useCallback((e=i)=>{F&&D(e)},[D,F,i]),X=function(e,t){const[n,r]=ne.useState(!1),[o,a]=ne.useState(null),[i,s]=ne.useState(!0),l=ne.useRef(null),c=()=>clearTimeout(l.current);!function(n,r){const a=Oo(()=>{"increment"===o&&e(),"decrement"===o&&t()});ne.useEffect(()=>{let e=null;return null!==r&&(e=window.setInterval(()=>a(),r)),()=>{e&&window.clearInterval(e)}},[r,a])}(0,n?50:null);const u=ne.useCallback(()=>{i&&e(),l.current=setTimeout(()=>{s(!1),r(!0),a("increment")},300)},[e,i]),d=ne.useCallback(()=>{i&&t(),l.current=setTimeout(()=>{s(!1),r(!0),a("decrement")},300)},[t,i]),p=ne.useCallback(()=>{s(!0),r(!1),c()},[]);return ne.useEffect(()=>()=>c(),[]),{up:u,down:d,stop:p,isSpinning:n}}(Z,G);Lv(W,"disabled",X.stop,X.isSpinning),Lv(U,"disabled",X.stop,X.isSpinning);const K=ne.useCallback(e=>{if(e.nativeEvent.isComposing)return;const t=q(e.currentTarget.value);M(H(t)),z.current={start:e.currentTarget.selectionStart,end:e.currentTarget.selectionEnd}},[M,H,q]),J=ne.useCallback(e=>{var t;null==A||A(e),z.current&&(e.target.selectionStart=z.current.start??(null==(t=e.currentTarget.value)?void 0:t.length),e.currentTarget.selectionEnd=z.current.end??e.currentTarget.selectionStart)},[A]),Q=ne.useCallback(e=>{if(e.nativeEvent.isComposing)return;(function(e,t){return null==e.key||!(1===e.key.length&&!(e.ctrlKey||e.altKey||e.metaKey))||t(e.key)})(e,L)||e.preventDefault();const t=ee(e)*i,n={ArrowUp:()=>Z(t),ArrowDown:()=>G(t),Home:()=>M(o),End:()=>M(a)}[e.key];n&&(e.preventDefault(),n(e))},[L,i,Z,G,M,o,a]),ee=e=>{let t=1;return(e.metaKey||e.ctrlKey)&&(t=.1),e.shiftKey&&(t=10),t},te=ne.useMemo(()=>{const e=null==T?void 0:T(P.value);return null!=e?e:P.value.toString()||void 0},[P.value,T]),re=ne.useCallback(()=>{let e=P.value;""!==P.value&&(/^[eE]/.test(P.value.toString())?P.setValue(""):(P.valueAsNumber<o&&(e=o),P.valueAsNumber>a&&(e=a),P.cast(e)))},[P,a,o]),ae=ne.useCallback(()=>{B(!1),n&&re()},[n,B,re]),ie=ne.useCallback(()=>{t&&requestAnimationFrame(()=>{var e;null==(e=$.current)||e.focus()})},[t]),se=ne.useCallback(e=>{e.preventDefault(),X.up(),ie()},[ie,X]),le=ne.useCallback(e=>{e.preventDefault(),X.down(),ie()},[ie,X]);Tf(()=>$.current,"wheel",e=>{var t;const n=(null==(t=$.current)?void 0:t.ownerDocument)??document;if(!f||n.activeElement!==$.current)return;e.preventDefault();const r=ee(e)*i,o=Math.sign(e.deltaY);-1===o?Z(r):1===o&&G(r)},{passive:!1});const ce=ne.useCallback((e={},t=null)=>{const n=l||r&&P.isAtMax;return{...e,ref:yo(t,W),role:"button",tabIndex:-1,onPointerDown:Av(e.onPointerDown,e=>{0!==e.button||n||se(e)}),onPointerLeave:Av(e.onPointerLeave,X.stop),onPointerUp:Av(e.onPointerUp,X.stop),disabled:n,"aria-disabled":Nv(n)}},[P.isAtMax,r,se,X.stop,l]),ue=ne.useCallback((e={},t=null)=>{const n=l||r&&P.isAtMin;return{...e,ref:yo(t,U),role:"button",tabIndex:-1,onPointerDown:Av(e.onPointerDown,e=>{0!==e.button||n||le(e)}),onPointerLeave:Av(e.onPointerLeave,X.stop),onPointerUp:Av(e.onPointerUp,X.stop),disabled:n,"aria-disabled":Nv(n)}},[P.isAtMin,r,le,X.stop,l]),de=ne.useCallback((e={},t=null)=>({name:y,inputMode:p,type:"text",pattern:d,"aria-labelledby":E,"aria-label":b,"aria-describedby":g,id:m,disabled:l,...e,readOnly:e.readOnly??s,"aria-readonly":e.readOnly??s,"aria-required":e.required??c,required:e.required??c,ref:yo($,t),value:Y(P.value),role:"spinbutton","aria-valuemin":o,"aria-valuemax":a,"aria-valuenow":Number.isNaN(P.valueAsNumber)?void 0:P.valueAsNumber,"aria-invalid":Nv(u??P.isOutOfRange),"aria-valuetext":te,autoComplete:"off",autoCorrect:"off",onChange:Av(e.onChange,K),onKeyDown:Av(e.onKeyDown,Q),onFocus:Av(e.onFocus,J,()=>B(!0)),onBlur:Av(e.onBlur,R,ae)}),[y,p,d,E,b,Y,g,m,l,c,s,u,P.value,P.valueAsNumber,P.isOutOfRange,o,a,te,K,Q,J,R,ae]);return{value:Y(P.value),valueAsNumber:P.valueAsNumber,isFocused:V,isDisabled:l,isReadOnly:s,getIncrementButtonProps:ce,getDecrementButtonProps:ue,getInputProps:de,htmlProps:N}}(r),i=ne.useMemo(()=>a,[a]);/* @__PURE__ */
|
75
|
+
return ne.createElement(Dv,{value:i},/* @__PURE__ */ne.createElement(Mv,{value:n},/* @__PURE__ */ne.createElement(ho.div,{...o,ref:t,className:Ov("chakra-numberinput",e.className),__css:{position:"relative",zIndex:0,...n.root}})))});Bv.displayName="NumberInput";var Fv=uo(function(e,t){const n=jv();/* @__PURE__ */
|
76
|
+
return ne.createElement(ho.div,{"aria-hidden":!0,ref:t,...e,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...n.stepperGroup}})});Fv.displayName="NumberInputStepper";var $v=uo(function(e,t){const{getInputProps:n}=Vv(),r=n(e,t),o=jv();/* @__PURE__ */
|
77
|
+
return ne.createElement(ho.input,{...r,className:Ov("chakra-numberinput__field",e.className),__css:{width:"100%",...o.field}})});$v.displayName="NumberInputField";var zv=ho("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),Wv=uo(function(e,t){const n=jv(),{getDecrementButtonProps:r}=Vv(),o=r(e,t);/* @__PURE__ */
|
78
|
+
return ne.createElement(zv,{...o,__css:n.stepper},e.children??/* @__PURE__ */ne.createElement(Rv,null))});Wv.displayName="NumberDecrementStepper";var Uv=uo(function(e,t){const{getIncrementButtonProps:n}=Vv(),r=n(e,t),o=jv();/* @__PURE__ */
|
79
|
+
return ne.createElement(zv,{...r,__css:o.stepper},e.children??/* @__PURE__ */ne.createElement(Iv,null))});Uv.displayName="NumberIncrementStepper";var Hv=(...e)=>e.filter(Boolean).join(" ");function qv(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}var[Yv,Zv,Gv,Xv]=Co(),[Kv,Jv]=vo({name:"PinInputContext",errorMessage:"usePinInputContext: `context` is undefined. Seems you forgot to all pin input fields within `<PinInput />`"}),Qv=e=>null==e?void 0:e.split("");function ey(e,t){return("alphanumeric"===t?/^[a-zA-Z0-9]+$/i:/^[0-9]+$/).test(e)}function ty(e){const t=fo("PinInput",e),{children:n,...r}=Rt(e),{descendants:o,...a}=function(e={}){const{autoFocus:t,value:n,defaultValue:r,onChange:o,onComplete:a,placeholder:i="○",manageFocus:s=!0,otp:l=!1,id:c,isDisabled:u,isInvalid:d,type:p="number",mask:f}=e,m=ne.useId(),h=c??`pin-input-${m}`,v=Gv(),[y,g]=ne.useState(!0),[b,E]=ne.useState(-1),[x,w]=No({defaultValue:Qv(r)||[],value:Qv(n),onChange:e=>null==o?void 0:o(e.join(""))});ne.useEffect(()=>{if(t){const e=v.first();e&&requestAnimationFrame(()=>{e.node.focus()})}},[v]);const k=ne.useCallback(e=>{if(!y||!s)return;const t=v.next(e,!1);t&&requestAnimationFrame(()=>{t.node.focus()})},[v,y,s]),S=ne.useCallback((e,t,n=!0)=>{const r=[...x];r[t]=e,w(r),""!==e&&r.length===v.count()&&r.every(e=>null!=e&&""!==e)?null==a||a(r.join("")):n&&k(t)},[x,w,k,a,v]),C=ne.useCallback(()=>{var e;const t=Array(v.count()).fill("");w(t);const n=v.first();null==(e=null==n?void 0:n.node)||e.focus()},[v,w]),_=ne.useCallback((e,t)=>{let 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},[]);return{getInputProps:ne.useCallback(e=>{const{index:t,...n}=e,r=b===t;return{"aria-label":"Please enter your pin code",inputMode:"number"===p?"numeric":"text",type:f?"password":"number"===p?"tel":"text",...n,id:`${h}-${t}`,disabled:u,"aria-invalid":(o=d,!!o||void 0),onChange:qv(n.onChange,e=>{const n=e.target.value,r=_(x[t],n);if(""!==r)if(n.length>2){if(ey(n,p)){const e=n.split("").filter((e,t)=>t<v.count());w(e),e.length===v.count()&&(null==a||a(e.join("")))}}else ey(r,p)&&S(r,t),g(!0);else S("",t)}),onKeyDown:qv(n.onKeyDown,e=>{var n;if("Backspace"===e.key&&s)if(""===e.target.value){const e=v.prev(t,!1);e&&(S("",t-1,!1),null==(n=e.node)||n.focus(),g(!0))}else g(!1)}),onFocus:qv(n.onFocus,()=>{E(t)}),onBlur:qv(n.onBlur,()=>{E(-1)}),value:x[t]||"",autoComplete:l?"one-time-code":"off",placeholder:r?"":i};var o},[v,b,_,h,u,f,d,s,a,l,i,S,w,p,x]),id:h,descendants:v,values:x,setValue:S,setValues:w,clear:C}}(r),i=xp(n).map(e=>ne.cloneElement(e,{__css:t}));/* @__PURE__ */
|
80
|
+
return ne.createElement(Yv,{value:o},/* @__PURE__ */ne.createElement(Kv,{value:a},i))}ty.displayName="PinInput";var ny=uo(function(e,t){const n=function(e={},t=null){const{getInputProps:n}=Jv(),{index:r,register:o}=Xv();return n({...e,ref:yo(o,t),index:r})}(e,t);/* @__PURE__ */
|
81
|
+
return ne.createElement(ho.input,{...n,className:Hv("chakra-pin-input",e.className)})});ny.displayName="PinInputField";var ry=(...e)=>e.filter(Boolean).join(" ");function oy(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}var ay=e=>e?"":void 0,iy=e=>!!e||void 0;function sy(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}var[ly,cy]=vo({name:"RadioGroupContext",strict:!1}),uy=uo((e,t)=>{const{colorScheme:n,size:r,variant:o,children:a,className:i,isDisabled:s,isFocusable:l,...c}=e,{value:u,onChange:d,getRootProps:p,name:f,htmlProps:m}=function(e={}){const{onChange:t,value:n,defaultValue:r,name:o,isDisabled:a,isFocusable:i,isNative:s,...l}=e,[c,u]=ne.useState(r||""),d=void 0!==n,p=d?n:c,f=ne.useRef(null),m=ne.useCallback(()=>{const e=f.current;if(!e)return;let t="input:not(:disabled):checked";const n=e.querySelector(t);if(n)return void n.focus();t="input:not(:disabled)";const r=e.querySelector(t);null==r||r.focus()},[]),h=ne.useId(),v=o||`radio-${h}`,y=ne.useCallback(e=>{const n=function(e){return e&&oy(e)&&oy(e.target)}(e)?e.target.value:e;d||u(n),null==t||t(String(n))},[t,d]);return{getRootProps:ne.useCallback((e={},t=null)=>({...e,ref:yo(t,f),role:"radiogroup"}),[]),getRadioProps:ne.useCallback((e={},t=null)=>{const n=s?"checked":"isChecked";return{...e,ref:t,name:v,[n]:null!=p?e.value===p:void 0,onChange(e){y(e)},"data-radiogroup":!0}},[s,v,y,p]),name:v,ref:f,focus:m,setValue:u,value:p,onChange:y,isDisabled:a,isFocusable:i,htmlProps:l}}(c),h=ne.useMemo(()=>({name:f,size:r,onChange:d,colorScheme:n,value:u,variant:o,isDisabled:s,isFocusable:l}),[f,r,d,n,u,o,s,l]);/* @__PURE__ */
|
82
|
+
return ne.createElement(ly,{value:h},/* @__PURE__ */ne.createElement(ho.div,{...p(m,t),className:ry("chakra-radio-group",i)},a))});uy.displayName="RadioGroup";var dy={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function py(e){e.preventDefault(),e.stopPropagation()}var fy=uo((e,t)=>{const n=cy(),{onChange:r,value:o}=e,a=mo("Radio",{...n,...e}),i=Rt(e),{spacing:s="0.5rem",children:l,isDisabled:c=(null==n?void 0:n.isDisabled),isFocusable:u=(null==n?void 0:n.isFocusable),inputProps:d,...p}=i;let f=e.isChecked;null!=(null==n?void 0:n.value)&&null!=o&&(f=n.value===o);let m=r;(null==n?void 0:n.onChange)&&null!=o&&(m=function(...e){return function(t){e.forEach(e=>{null==e||e(t)})}}(n.onChange,r));const h=(null==e?void 0:e.name)??(null==n?void 0:n.name),{getInputProps:v,getCheckboxProps:y,getLabelProps:g,getRootProps:b,htmlProps:E}=function(e={}){const{defaultChecked:t,isChecked:n,isFocusable:r,isDisabled:o,isReadOnly:a,isRequired:i,onChange:s,isInvalid:l,name:c,value:u,id:d,"data-radiogroup":p,"aria-describedby":f,...m}=e,h=`radio-${ne.useId()}`,v=Fp(),y=cy();let g=!v||y||p?h:v.id;g=d??g;const b=o??(null==v?void 0:v.isDisabled),E=a??(null==v?void 0:v.isReadOnly),x=i??(null==v?void 0:v.isRequired),w=l??(null==v?void 0:v.isInvalid),[k,S]=ne.useState(!1),[C,_]=ne.useState(!1),[O,N]=ne.useState(!1),[A,R]=ne.useState(!1),[I,L]=ne.useState(Boolean(t)),T=void 0!==n,P=T?n:I;ne.useEffect(()=>uf(S),[]);const M=ne.useCallback(e=>{E||b?e.preventDefault():(T||L(e.target.checked),null==s||s(e))},[T,b,E,s]),j=ne.useCallback(e=>{" "===e.key&&R(!0)},[R]),D=ne.useCallback(e=>{" "===e.key&&R(!1)},[R]),V=ne.useCallback((e={},t=null)=>({...e,ref:t,"data-active":ay(A),"data-hover":ay(O),"data-disabled":ay(b),"data-invalid":ay(w),"data-checked":ay(P),"data-focus":ay(C),"data-focus-visible":ay(C&&k),"data-readonly":ay(E),"aria-hidden":!0,onMouseDown:sy(e.onMouseDown,()=>R(!0)),onMouseUp:sy(e.onMouseUp,()=>R(!1)),onMouseEnter:sy(e.onMouseEnter,()=>N(!0)),onMouseLeave:sy(e.onMouseLeave,()=>N(!1))}),[A,O,b,w,P,C,E,k]),{onFocus:B,onBlur:F}=v??{},$=ne.useCallback((e={},t=null)=>{const n=b&&!r;return{...e,id:g,ref:t,type:"radio",name:c,value:u,onChange:sy(e.onChange,M),onBlur:sy(F,e.onBlur,()=>_(!1)),onFocus:sy(B,e.onFocus,()=>_(!0)),onKeyDown:sy(e.onKeyDown,j),onKeyUp:sy(e.onKeyUp,D),checked:P,disabled:n,readOnly:E,required:x,"aria-invalid":iy(w),"aria-disabled":iy(n),"aria-required":iy(x),"data-readonly":ay(E),"aria-describedby":f,style:dy}},[b,r,g,c,u,M,F,B,j,D,P,E,x,w,f]);return{state:{isInvalid:w,isFocused:C,isChecked:P,isActive:A,isHovered:O,isDisabled:b,isReadOnly:E,isRequired:x},getCheckboxProps:V,getInputProps:$,getLabelProps:(e={},t=null)=>({...e,ref:t,onMouseDown:sy(e.onMouseDown,py),onTouchStart:sy(e.onTouchStart,py),"data-disabled":ay(b),"data-checked":ay(P),"data-invalid":ay(w)}),getRootProps:(e,t=null)=>({...e,ref:t,"data-disabled":ay(b),"data-checked":ay(P),"data-invalid":ay(w)}),htmlProps:m}}({...p,isChecked:f,isFocusable:u,isDisabled:c,onChange:m,name:h}),[x,w]=function(e,t){const n={},r={};for(const[o,a]of Object.entries(e))t.includes(o)?n[o]=a:r[o]=a;return[n,r]}(E,kt),k=y(w),S=v(d,t),C=g(),_=Object.assign({},x,b()),O={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...a.container},N={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...a.control},A={userSelect:"none",marginStart:s,...a.label};/* @__PURE__ */
|
83
|
+
return ne.createElement(ho.label,{className:"chakra-radio",..._,__css:O},/* @__PURE__ */ne.createElement("input",{className:"chakra-radio__input",...S}),/* @__PURE__ */ne.createElement(ho.span,{className:"chakra-radio__control",...k,__css:N}),l&&/* @__PURE__ */ne.createElement(ho.span,{className:"chakra-radio__label",...C,__css:A},l))});fy.displayName="Radio";var my=(...e)=>e.filter(Boolean).join(" "),hy=uo(function(e,t){const{children:n,placeholder:r,className:o,...a}=e;/* @__PURE__ */
|
84
|
+
return ne.createElement(ho.select,{...a,ref:t,className:my("chakra-select",o)},r&&/* @__PURE__ */ne.createElement("option",{value:""},r),n)});hy.displayName="SelectField";var vy=uo((e,t)=>{var n;const r=mo("Select",e),{rootProps:o,placeholder:a,icon:i,color:s,height:l,h:c,minH:u,minHeight:d,iconColor:p,iconSize:f,...m}=Rt(e),[h,v]=function(e,t){const n={},r={};for(const[o,a]of Object.entries(e))t.includes(o)?n[o]=a:r[o]=a;return[n,r]}(m,kt),y=Wp(v),g={paddingEnd:"2rem",...r.field,_focus:{zIndex:"unset",...null==(n=r.field)?void 0:n._focus}};/* @__PURE__ */
|
85
|
+
return ne.createElement(ho.div,{className:"chakra-select__wrapper",__css:{width:"100%",height:"fit-content",position:"relative",color:s},...h,...o},/* @__PURE__ */ne.createElement(hy,{ref:t,height:c??l,minH:u??d,placeholder:a,...y,__css:g},e.children),/* @__PURE__ */ne.createElement(by,{"data-disabled":(b=y.disabled,b?"":void 0),...(p||s)&&{color:p||s},__css:r.icon,...f&&{fontSize:f}},i));var b});vy.displayName="Select";var yy=e=>/* @__PURE__ */ne.createElement("svg",{viewBox:"0 0 24 24",...e},/* @__PURE__ */ne.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})),gy=ho("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),by=e=>{const{children:t=/* @__PURE__ */ne.createElement(yy,null),...n}=e,r=ne.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});/* @__PURE__ */
|
86
|
+
return ne.createElement(gy,{...n,className:"chakra-select__icon-wrapper"},ne.isValidElement(t)?r:null)};by.displayName="SelectIcon";var Ey=(...e)=>e.filter(Boolean).join(" "),xy=e=>e?"":void 0,wy=uo(function(e,t){const n=mo("Switch",e),{spacing:r="0.5rem",children:o,...a}=Rt(e),{state:i,getInputProps:s,getCheckboxProps:l,getRootProps:c,getLabelProps:u}=bf(a),d=ne.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...n.container}),[n.container]),p=ne.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...n.track}),[n.track]),f=ne.useMemo(()=>({userSelect:"none",marginStart:r,...n.label}),[r,n.label]);/* @__PURE__ */
|
87
|
+
return ne.createElement(ho.label,{...c(),className:Ey("chakra-switch",e.className),__css:d},/* @__PURE__ */ne.createElement("input",{className:"chakra-switch__input",...s({},t)}),/* @__PURE__ */ne.createElement(ho.span,{...l(),className:"chakra-switch__track",__css:p},/* @__PURE__ */ne.createElement(ho.span,{__css:n.thumb,className:"chakra-switch__thumb","data-checked":xy(i.isChecked),"data-hover":xy(i.isHovered)})),o&&/* @__PURE__ */ne.createElement(ho.span,{className:"chakra-switch__label",...u(),__css:f},o))});wy.displayName="Switch";var ky=(...e)=>e.filter(Boolean).join(" "),Sy=["h","minH","height","minHeight"],Cy=uo((e,t)=>{const n=fo("Textarea",e),{className:r,rows:o,...a}=Rt(e),i=Wp(a),s=o?function(e,t=[]){const n=Object.assign({},e);for(const e of t)e in n&&delete n[e];return n}(n,Sy):n;/* @__PURE__ */
|
88
|
+
return ne.createElement(ho.textarea,{ref:t,rows:o,...i,className:ky("chakra-textarea",r),__css:s})});function _y(){return _y=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},_y.apply(this,arguments)}Cy.displayName="Textarea";const Oy=["hideStepper","incrementIcon","decrementIcon"],Ny=uo((e,t)=>{const{hideStepper:n,incrementIcon:r,decrementIcon:o}=e,a=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,Oy);return ne.createElement(Bv,_y({},a,{ref:t}),/*#__PURE__*/ne.createElement($v,null),!n&&/*#__PURE__*/ne.createElement(Fv,null,/*#__PURE__*/ne.createElement(Uv,{children:r}),/*#__PURE__*/ne.createElement(Wv,{children:o})))});Ny.defaultProps={hideStepper:!1},s&&(Ny.displayName="NumberInput");var Ay={path:/* @__PURE__ */ne.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/* @__PURE__ */ne.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__ */ne.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__ */ne.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},Ry=uo((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:a=!1,children:i,className:s,__css:l,...c}=e,u={ref:t,focusable:a,className:_o("chakra-icon",s),__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...fo("Icon",e)}},d=r??Ay.viewBox;if(n&&"string"!=typeof n)/* @__PURE__ */
|
89
|
+
return ne.createElement(ho.svg,{as:n,...u,...c});const p=i??Ay.path;/* @__PURE__ */
|
90
|
+
return ne.createElement(ho.svg,{verticalAlign:"middle",viewBox:d,...u,...c},p)});function Iy(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:o={}}=e,a=ne.Children.toArray(e.path),i=uo((e,r)=>/* @__PURE__ */ne.createElement(Ry,{ref:r,viewBox:t,...o,...e},a.length?a:/* @__PURE__ */ne.createElement("path",{fill:"currentColor",d:n})));return i.displayName=r,i}Ry.displayName="Icon",Iy({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"}),Iy({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"}),Iy({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"}),Iy({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"}),Iy({displayName:"SunIcon",path:/* @__PURE__ */ne.createElement("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor"},/* @__PURE__ */ne.createElement("circle",{cx:"12",cy:"12",r:"5"}),/* @__PURE__ */ne.createElement("path",{d:"M12 1v2"}),/* @__PURE__ */ne.createElement("path",{d:"M12 21v2"}),/* @__PURE__ */ne.createElement("path",{d:"M4.22 4.22l1.42 1.42"}),/* @__PURE__ */ne.createElement("path",{d:"M18.36 18.36l1.42 1.42"}),/* @__PURE__ */ne.createElement("path",{d:"M1 12h2"}),/* @__PURE__ */ne.createElement("path",{d:"M21 12h2"}),/* @__PURE__ */ne.createElement("path",{d:"M4.22 19.78l1.42-1.42"}),/* @__PURE__ */ne.createElement("path",{d:"M18.36 5.64l1.42-1.42"}))});var Ly=Iy({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"});Iy({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:/* @__PURE__ */ne.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"})}),Iy({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"}),Iy({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"}),Iy({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"}),Iy({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 Ty=Iy({displayName:"ViewIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.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__ */ne.createElement("circle",{cx:"12",cy:"12",r:"2"}))}),Py=Iy({displayName:"ViewOffIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.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__ */ne.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"}))});Iy({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"}),Iy({displayName:"DeleteIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.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"}))}),Iy({displayName:"RepeatIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.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__ */ne.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"}))}),Iy({displayName:"RepeatClockIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.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__ */ne.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"}))}),Iy({displayName:"EditIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/* @__PURE__ */ne.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__ */ne.createElement("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"}))}),Iy({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"}),Iy({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});var My=Iy({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});Iy({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"}),Iy({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"}),Iy({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"}),Iy({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"}),Iy({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"}),Iy({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"}),Iy({displayName:"ExternalLinkIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/* @__PURE__ */ne.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),/* @__PURE__ */ne.createElement("path",{d:"M15 3h6v6"}),/* @__PURE__ */ne.createElement("path",{d:"M10 14L21 3"}))}),Iy({displayName:"LinkIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.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__ */ne.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"}))}),Iy({displayName:"PlusSquareIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/* @__PURE__ */ne.createElement("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),/* @__PURE__ */ne.createElement("path",{d:"M12 8v8"}),/* @__PURE__ */ne.createElement("path",{d:"M8 12h8"}))}),Iy({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"}),Iy({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"}),Iy({displayName:"TimeIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.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__ */ne.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"}))}),Iy({displayName:"ArrowRightIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.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__ */ne.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"}))}),Iy({displayName:"ArrowLeftIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.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__ */ne.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"}))}),Iy({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"}),Iy({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"}),Iy({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"}),Iy({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"}),Iy({displayName:"EmailIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.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__ */ne.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"}))}),Iy({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"}),Iy({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"}),Iy({displayName:"SpinnerIcon",path:/* @__PURE__ */ne.createElement(ne.Fragment,null,/* @__PURE__ */ne.createElement("defs",null,/* @__PURE__ */ne.createElement("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a"},/* @__PURE__ */ne.createElement("stop",{stopColor:"currentColor",offset:"0%"}),/* @__PURE__ */ne.createElement("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"}))),/* @__PURE__ */ne.createElement("g",{transform:"translate(2)",fill:"none"},/* @__PURE__ */ne.createElement("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"}),/* @__PURE__ */ne.createElement("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"}),/* @__PURE__ */ne.createElement("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"})))}),Iy({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"}),Iy({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:/* @__PURE__ */ne.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"})}),Iy({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"}),Iy({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"}),Iy({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"}),Iy({displayName:"InfoOutlineIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2"},/* @__PURE__ */ne.createElement("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),/* @__PURE__ */ne.createElement("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),/* @__PURE__ */ne.createElement("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"}))}),Iy({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"}),Iy({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"}),Iy({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"}),Iy({displayName:"QuestionOutlineIcon",path:/* @__PURE__ */ne.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/* @__PURE__ */ne.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__ */ne.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__ */ne.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"}))}),Iy({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"}),Iy({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 jy=Iy({viewBox:"0 0 14 14",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.createElement("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))}),Dy=Iy({displayName:"MinusIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.createElement("rect",{height:"4",width:"20",x:"2",y:"10"}))});function Vy(){return Vy=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},Vy.apply(this,arguments)}Iy({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"});const By=["label","children"],Fy=uo((e,t)=>{let{label:n,children:r}=e,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,By);return ne.createElement(Np,Vy({ref:t},o),r||n)});function $y(){return $y=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},$y.apply(this,arguments)}s&&(Fy.displayName="Button");const zy=uo((e,t)=>/*#__PURE__*/ne.createElement(Zf,{w:"auto",px:"1",py:"1",alignItems:"stretch"},/*#__PURE__*/ne.createElement(Fy,$y({ref:t,height:"auto"},e))));function Wy(){return Wy=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},Wy.apply(this,arguments)}zy.id="InputRightElement",s&&(zy.displayName="InputRightButton");const Uy=["viewIcon","viewOffIcon","autoComplete","w","width","size","variant"],Hy=uo((e,t)=>{const{viewIcon:n,viewOffIcon:r,autoComplete:o,w:a,width:i,size:s,variant:l}=e,c=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,Uy),[u,d]=ne.useState(!1),p=u?"Hide password":"Show password";let f;return f=u?n||/*#__PURE__*/ne.createElement(Ty,null):r||/*#__PURE__*/ne.createElement(Py,null),/*#__PURE__*/ne.createElement(Bf,{width:a||i,size:s,variant:l},/*#__PURE__*/ne.createElement(jf,Wy({},c,{ref:t,type:u?"text":"password",autoComplete:u?"off":o})),/*#__PURE__*/ne.createElement(zy,{onClick:()=>d(!u),"aria-label":p,variant:"ghost"},f))});function qy(){return qy=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},qy.apply(this,arguments)}function Yy(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}s&&(Hy.displayName="PasswordInput");const Zy=["options","spacing","direction"],Gy=["onBlur","onChange"],Xy=["value","label"],Ky=uo((e,t)=>{let{options:n,spacing:r,direction:o}=e,a=Yy(e,Zy);const{onBlur:i,onChange:s}=a,l=Yy(a,Gy);return ne.createElement(uy,qy({onChange:s},l),/*#__PURE__*/ne.createElement(dm,{spacing:r,direction:o},n.map((e,n)=>{let{value:r,label:o}=e,a=Yy(e,Xy);return ne.createElement(fy,qy({key:n,onBlur:i,value:r,ref:t},a),o||r)})))});function Jy(){return Jy=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},Jy.apply(this,arguments)}function Qy(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}s&&(Ky.displayName="RadioInput");const eg=["name","options","children","onChange","defaultValue","value","placeholder","isDisabled","leftIcon","rightIcon","multiple","size","variant","menuListProps","renderValue"],tg=["value","label"],ng=uo((e,t)=>{const n=mo("Input",e),r=n.field._focusVisible,o=Jy({fontWeight:"normal",textAlign:"left",color:"inherit",_active:{bg:"transparent"},minH:n.field.h||n.field.height,_focus:r,_expanded:r},n.field,{h:"auto"});return ne.createElement(mv,Jy({as:Np},e,{ref:t,sx:o}))});s&&(ng.displayName="SelectButton");const rg=uo((e,t)=>{const{name:n,options:r,children:o,onChange:a,defaultValue:i,value:s,placeholder:c,isDisabled:u,leftIcon:d,rightIcon:p=/*#__PURE__*/ne.createElement(My,null),multiple:f,size:m,variant:h,menuListProps:v,renderValue:y=(e=>null==e?void 0:e.join(", "))}=e,g=Rt(Qy(e,eg)),[b,E]=ne.useState(s||i),x=Wp({name:n}),w={isDisabled:u,leftIcon:d,rightIcon:p,size:m,variant:h},k=ne.useCallback(e=>{if(!r)return e;for(const t of r)if(t.label&&t.value===e)return t.label;return e},[r]),S=b?(Array.isArray(b)?b:[b]).map(k):[];return ne.createElement(pv,Jy({},g,{closeOnSelect:!f}),/*#__PURE__*/ne.createElement(ho.div,{className:l("saas-select")},/*#__PURE__*/ne.createElement(ng,Jy({ref:t},w),y(S)||c),/*#__PURE__*/ne.createElement(kv,Jy({maxH:"60vh",overflowY:"auto"},v),/*#__PURE__*/ne.createElement(Sv,{defaultValue:i||s,onChange:e=>{E(e),null==a||a(e)},type:f?"checkbox":"radio"},r?r.map((e,t)=>{let{value:n,label:r}=e,o=Qy(e,tg);return ne.createElement(Ev,Jy({key:t,value:n},o),r||n)}):o)),/*#__PURE__*/ne.createElement(ho.input,Jy({},x,{name:n,type:"hidden",value:b,className:"saas-select__input"}))))});s&&(rg.displayName="Select");const og=["options","children"],ag=uo((e,t)=>{let{options:n,children:r}=e,o=Qy(e,og);return ne.createElement(vy,Jy({ref:t},o),r||(null==n?void 0:n.map(({value:e,label:t})=>/*#__PURE__*/ne.createElement("option",{key:e,value:e},t||e))))});function ig(){return ig=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},ig.apply(this,arguments)}function sg(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}s&&(ag.displayName="NativeSelect");const[lg,cg]=Ur({name:"StepperContext",errorMessage:"useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in `<Stepper />`"});function ug(e){const{step:t,onChange:n}=e,[r,o]=ne.useState(-1),a=ne.useRef([]),[,i]=ne.useState(Date.now()),s=ne.useCallback(e=>{const t=[...a.current];-1===t.indexOf(e)&&t.push(e),a.current=t,i(Date.now())},[a,i]),l=e=>{const t=a.current.indexOf(e);-1!==t&&o(t)};return ne.useEffect(()=>{"string"==typeof t?l(t):"number"==typeof t?o(t):-1===r&&o(0)},[t]),ne.useEffect(()=>{null==n||n(r)},[r,n]),{stepsRef:a,activeStep:a.current[r],activeIndex:r,isFirstStep:0===r,isLastStep:r===a.current.length-1,isCompleted:r>=a.current.length,setIndex:o,setStep:l,nextStep:()=>{o(r+1)},prevStep:()=>{o(r-1)},registerStep:s,unregisterStep:e=>{a.current=a.current.slice(a.current.indexOf(e),1)}}}const dg=["orientation","children"],pg=["children","orientation","step","onChange"],fg=["children","orientation","stepComponent"],mg=["children","isOpen"],hg=["icon","isActive","isCompleted","className"],vg=["name","title","icon","isActive","isCompleted"],yg=["isActive"],[gg,bg]=Ur({name:"StepperStylesContext",errorMessage:'useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<Stepper />" '}),Eg=uo((e,t)=>{const{orientation:n,children:r}=e,o=sg(e,dg);return ne.createElement(xg,ig({ref:t,orientation:n},o),/*#__PURE__*/ne.createElement(wg,{orientation:n},r))});s&&(Eg.displayName="Stepper");const xg=uo((e,t)=>{const{children:n,orientation:r="horizontal"}=e,o=sg(e,pg),a=mo("Stepper",ig({},o,{orientation:r})),i=Rt(o),s=ug(e),c=ig({display:"flex",flexDirection:"column"},a.container);return ne.createElement(gg,{value:a},/*#__PURE__*/ne.createElement(lg,{value:s},/*#__PURE__*/ne.createElement(ho.div,ig({ref:t,__css:c},i,{className:l("saas-stepper",e.className)}),n)))});s&&(xg.displayName="StepperContainer");const wg=e=>{var t,n;const{children:r,orientation:o="horizontal",stepComponent:a}=e,i=sg(e,fg),s=bg(),{activeIndex:c}=cg(),u=ig({display:"flex",flexDirection:"row",alignItems:"center"},s.steps),d="vertical"===o,p=a||Cg,f=function(e,t){return ne.Children.toArray(e).filter(e=>Array.isArray(t)?t.some(t=>t===e.type):e.type===t)}(r,p),m=f.reduce((e,t,n,r)=>(e.push(/*#__PURE__*/ne.createElement(p,ig({key:n},t.props,{icon:t.props.icon||n+1,isActive:c===n,isCompleted:t.props.isCompleted||c>n}))),d&&e.push(/*#__PURE__*/ne.createElement(kg,{key:`content-${n}`,isOpen:c===n},t.props.children)),n<r.length-1&&e.push(/*#__PURE__*/ne.createElement(_g,{key:`separator-${n}`,isActive:n<c})),e),[]),h=function(e,t){return ne.Children.toArray(e).find(e=>e.type===t)}(r,Ng),v=c>=f.length?h:d?null:/*#__PURE__*/ne.createElement(kg,null,null==(t=f[c])||null==(n=t.props)?void 0:n.children);return ne.createElement(ne.Fragment,null,/*#__PURE__*/ne.createElement(ho.div,ig({__css:u},i,{className:l("saas-stepper__steps",e.className)}),m),v)};s&&(wg.displayName="StepperSteps");const kg=e=>{const{children:t,isOpen:n=!0}=e,r=sg(e,mg),o=bg();return ne.createElement(ho.div,ig({__css:o.content},r,{className:l("saas-stepper__content",e.className)}),/*#__PURE__*/ne.createElement(ip,{in:n},t))};s&&(kg.displayName="StepperContent");const Sg=e=>{const{icon:t,isCompleted:n,className:r}=e,o=sg(e,hg),a=ig({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontSize:"1em"},bg().icon);let i;return i=n?/*#__PURE__*/ne.createElement(Ry,{as:jy}):t,/*#__PURE__*/ne.createElement(ho.div,ig({__css:a},o,{className:l("saas-stepper__icon",r)}),i)};s&&(Sg.displayName="StepperIcon");const Cg=e=>{const{title:t,icon:n,isActive:r,isCompleted:o}=e,a=sg(e,vg),i=function(e){const{name:t,isActive:n,isCompleted:r}=e,{registerStep:o,unregisterStep:a,activeStep:i}=cg();return ne.useEffect(()=>{if(t)return o(t),()=>{a(t)}},[]),{isActive:t?i===t:n,isCompleted:r}}(e),s=ig({display:"flex",alignItems:"center",flexDirection:"row"},bg().step);return ne.createElement(ho.div,ig({},a,{__css:s,"data-active":c(i.isActive),"data-completed":c(i.isCompleted),className:l("saas-stepper__step",e.className)}),/*#__PURE__*/ne.createElement(Sg,{icon:n,isActive:r,isCompleted:o}),t&&/*#__PURE__*/ne.createElement(Og,null,t))};s&&(Cg.displayName="StepperStep");const _g=e=>{const{isActive:t}=e,n=sg(e,yg),r=ig({flex:1,mx:2},bg().separator);return ne.createElement(ho.div,ig({},n,{"data-active":c(t),className:l("saas-stepper__separator",e.className),__css:r}))};s&&(_g.displayName="StepperSeparator");const Og=e=>{const t=bg();return ne.createElement(ho.p,ig({},e,{__css:t.title,className:l("saas-stepper__title",e.className)}))};s&&(Og.displayName="StepperStepTitle");const Ng=e=>{const t=bg();return ne.createElement(ho.div,ig({__css:t.completed},e,{className:l("saas-stepper__completed",e.className)}))};function Ag(){return Ag=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},Ag.apply(this,arguments)}function Rg(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}s&&(Ng.displayName="StepperCompleted");const Ig=["name","label","help","hideLabel","children"],Lg=["id","name","label","help","isDisabled","isInvalid","isReadOnly","isRequired","rules"],Tg=["name","rules"],Pg=["ref"],Mg=["name","rules"],jg=["ref"],Dg=["type","leftAddon","rightAddon","size"],Vg=["type","value"],Bg=["label","type"],Fg=["pinLength","pinType","spacing"],$g={},zg="text",Wg=e=>{const{name:t,label:n,help:r,hideLabel:o,children:a}=e,i=Rg(e,Ig),{formState:s}=p(),l=((e,t)=>f(t.errors,e))(t,s);return ne.createElement($p,Ag({},i,{isInvalid:!!l}),n&&!o?/*#__PURE__*/ne.createElement(Zp,null,n):null,/*#__PURE__*/ne.createElement(Qf,null,a,!r||null!=l&&l.message?null:/*#__PURE__*/ne.createElement(zp,null,r),(null==l?void 0:l.message)&&/*#__PURE__*/ne.createElement(Yp,null,null==l?void 0:l.message)))};s&&(Wg.displayName="BaseField");const Ug=ne.forwardRef((e,t)=>{const{type:n=zg}=e;return ne.createElement($g[n]||$g[zg],Ag({ref:t},e))}),Hg=(e,t,n)=>{let r;r=null!=n&&n.isControlled?(e=>uo((t,n)=>{let{name:r,rules:o}=t,a=Rg(t,Tg);const{control:i}=p();return ne.createElement(y,{name:r,control:i,rules:o,render:t=>{let{field:{ref:r}}=t,o=Rg(t.field,Pg);return ne.createElement(e,Ag({},o,a,{onChange:d(a.onChange,o.onChange),onBlur:d(a.onBlur,o.onBlur),ref:Pf(n,r)}))}})}))(t):(e=>uo((t,n)=>{let{name:r,rules:o}=t,a=Rg(t,Mg);const{register:i}=p(),s=i(r,o),{ref:l}=s,c=Rg(s,jg);return ne.createElement(e,Ag({},c,a,{onChange:d(a.onChange,c.onChange),onBlur:d(a.onBlur,c.onBlur),ref:Pf(n,l)}))}))(t);const o=((e,{displayName:t,hideLabel:n,BaseField:r})=>{const o=uo((t,o)=>{const{id:a,name:i,label:s,help:l,isDisabled:c,isInvalid:u,isReadOnly:d,isRequired:p,rules:f}=t,m=Rg(t,Lg),h=Ag({required:p},f);return ne.createElement(r,{id:a,name:i,label:s,help:l,hideLabel:n,isDisabled:c,isInvalid:u,isReadOnly:d,isRequired:p},/*#__PURE__*/ne.createElement(e,Ag({ref:o,id:a,name:i,label:n?s:void 0,rules:h},m)))});return o.displayName=t,o})(r,{displayName:`${e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join("")}Field`,hideLabel:null==n?void 0:n.hideLabel,BaseField:(null==n?void 0:n.BaseField)||Wg});return $g[e]=o,o};Hg("text",uo((e,t)=>{let{type:n="text",leftAddon:r,rightAddon:o,size:a}=e,i=Rg(e,Dg);const s=/*#__PURE__*/ne.createElement(jf,Ag({type:n,size:a},i,{ref:t}));return r||o?/*#__PURE__*/ne.createElement(Bf,{size:a},r,s,o):s})),Hg("number",Ny,{isControlled:!0}),Hg("password",uo((e,t)=>/*#__PURE__*/ne.createElement(Hy,Ag({ref:t},e)))),Hg("textarea",Cy),Hg("switch",uo((e,t)=>{let{value:n}=e,r=Rg(e,Vg);return ne.createElement(wy,Ag({isChecked:!!n},r,{ref:t}))}),{isControlled:!0}),Hg("select",rg,{isControlled:!0}),Hg("checkbox",uo((e,t)=>{let{label:n}=e,r=Rg(e,Bg);return ne.createElement(_f,Ag({ref:t},r),n)}),{hideLabel:!0}),Hg("radio",Ky,{isControlled:!0}),Hg("native-select",ag,{isControlled:!0}),Hg("pin",uo((e,t)=>{const{pinLength:n=4,pinType:r,spacing:o}=e,a=Rg(e,Fg),i=[];for(let e=0;e<n;e++)i.push(/*#__PURE__*/ne.createElement(ny,{key:e,ref:t}));return ne.createElement(pm,{spacing:o},/*#__PURE__*/ne.createElement(ty,Ag({},a,{type:r}),i))}),{isControlled:!0});const qg=["items","label","title"],Yg=e=>e&&Object.entries(e).map(([e,t])=>{let{label:n,title:r}=t;return Ag({},Rg(t,qg),{name:e,label:n||r})}),Zg=e=>({getFields:()=>Yg(e),getNestedFields:t=>{var n;const r=u(e,t);return r?"object"===(null==(n=r.items)?void 0:n.type)?Yg(r.items.properties):"object"===r.type?Yg(r.properties):[r.items]:[]}}),Gg=["mode","resolver","reValidateMode","shouldFocusError","shouldUnregister","shouldUseNativeValidation","criteriaMode","delayError","schema","defaultValues","onChange","onSubmit","onError","formRef","children"],Xg=uo((e,t)=>{const{mode:n="all",resolver:r,reValidateMode:o,shouldFocusError:a,shouldUnregister:s,shouldUseNativeValidation:c,criteriaMode:u,delayError:d,schema:p,defaultValues:f,onChange:v,onSubmit:y,onError:g,formRef:b,children:E}=e,x=Rg(e,Gg),w={mode:n,resolver:r,defaultValues:f,reValidateMode:o,shouldFocusError:a,shouldUnregister:s,shouldUseNativeValidation:c,criteriaMode:u,delayError:d};p&&!r&&(w.resolver=null==Xg.getResolver?void 0:Xg.getResolver(p));const k=m(w),{handleSubmit:S}=k;return ne.useImperativeHandle(t,()=>k,[t,k]),ne.useEffect(()=>{let e;return v&&(e=k.watch(v)),()=>{var t;return null==(t=e)?void 0:t.unsubscribe()}},[k,v]),/*#__PURE__*/ne.createElement(h,k,/*#__PURE__*/ne.createElement(ho.form,Ag({ref:b,onSubmit:S(y,g)},x,{className:l("saas-form",e.className)}),i(E,k)))});Xg.getFieldResolver=Zg,s&&(Xg.displayName="Form");const Kg=["children"],Jg=({children:e})=>/*#__PURE__*/ne.createElement(ho.div,null,e);s&&(Jg.displayName="FormLayoutItem");const Qg=e=>{var t,n,r;let{children:o}=e,a=Rg(e,Kg);const i=Ag({},null!=(t=null==(n=ao().components)||null==(r=n.FormLayout)?void 0:r.defaultProps)?t:{spacing:4},a);return ne.createElement(lm,Ag({},i,{className:l("saas-form__layout",a.className)}),ne.Children.map(o,e=>ne.isValidElement(e)?/*#__PURE__*/ne.createElement(Jg,null,e):e))};s&&(Qg.displayName="FormLayout");const eb=(e,t)=>ne.Children.map(t,t=>ne.isValidElement(t)&&t.props.name?ne.cloneElement(t,Ag({},t.props,{name:`${e}.${t.props.name}`})):t),[tb,nb]=Ur({name:"ArrayFieldContext"}),[rb,ob]=Ur({name:"ArrayFieldRowContext"}),ab=["children","index"],ib=["children"],sb=["children"],lb=["name","defaultValue","keyName","min","max","children"],cb=e=>{let{children:t,index:n}=e,r=Rg(e,ab);return ne.createElement(db,{index:n},/*#__PURE__*/ne.createElement(ub,r,t),/*#__PURE__*/ne.createElement(pb,null))};s&&(cb.displayName="ArrayFieldRow");const ub=e=>{let{children:t}=e,n=Rg(e,ib);const{name:r}=ob();return ne.createElement(Qg,Ag({flex:"1",mr:"2"},n),eb(r,t))};s&&(ub.displayName="ArrayFieldRowFields");const db=({children:e,index:t})=>{const n=(({index:e})=>{const{clearErrors:t}=p(),{name:n,remove:r,fields:o}=nb();return ne.useEffect(()=>{t(n)},[]),{index:e,isFirst:0===e,isLast:e===o.length-1,name:`${n}.${e}`,remove:ne.useCallback(()=>{t(n),r(e)},[e])}})({index:t});return ne.createElement(rb,{value:n},/*#__PURE__*/ne.createElement(ho.div,{__css:{display:"flex",flexDirection:"row",alignItems:"flex-end",width:"100%",mb:4}},e))};s&&(db.displayName="ArrayFieldRowContainer");const pb=e=>/*#__PURE__*/ne.createElement(Rp,Ag({icon:/*#__PURE__*/ne.createElement(Dy,null),"aria-label":"Remove row"},(()=>{const{isFirst:e,remove:t}=ob(),{min:n,fields:r}=nb();return{onClick:()=>t(),isDisabled:e&&!!(n&&r.length<=n)}})(),e));s&&(pb.displayName="ArrayFieldRemoveButton");const fb=e=>/*#__PURE__*/ne.createElement(Rp,Ag({icon:/*#__PURE__*/ne.createElement(Ly,null),"aria-label":"Add row",float:"right"},(()=>{const{append:e,defaultValue:t,max:n,fields:r}=nb();return{onClick:()=>e(t,{shouldFocus:!1}),isDisabled:!!(n&&r.length>=n)}})(),e));s&&(fb.displayName="ArrayFieldAddButton");const mb=uo((e,t)=>{const{children:n}=e,r=Rg(e,sb);return ne.createElement(vb,Ag({ref:t},r),/*#__PURE__*/ne.createElement(hb,null,e=>/*#__PURE__*/ne.createElement(ne.Fragment,null,e.map(({id:e},t)=>/*#__PURE__*/ne.createElement(cb,{key:e,index:t},n)))),/*#__PURE__*/ne.createElement(fb,null))});s&&(mb.displayName="ArrayField");const hb=({children:e})=>{const{fields:t}=nb();return e(t)};s&&(hb.displayName="ArrayFieldRows");const vb=ne.forwardRef((e,t)=>{let{name:n,defaultValue:r,keyName:o,min:a,max:i,children:s}=e,l=Rg(e,lb);const c=(({name:e,defaultValue:t={},keyName:n,min:r,max:o})=>{const{control:a}=p();return Ag({},v({control:a,name:e,keyName:n}),{name:e,defaultValue:t,min:r,max:o})})({name:n,defaultValue:r,keyName:o,min:a,max:i});return ne.useImperativeHandle(t,()=>c,[t,c]),/*#__PURE__*/ne.createElement(tb,{value:c},/*#__PURE__*/ne.createElement(Wg,Ag({name:n},l),s))});s&&(vb.displayName="ArrayFieldContainer");const yb=["name","label","hideLabel","children","columns","spacing"],gb=e=>{const t=fo("FormLegend");return ne.createElement(Zp,Ag({as:"legend",sx:t},e))},bb=e=>{const{name:t,label:n,hideLabel:r,children:o,columns:a,spacing:i}=e,s=Rg(e,yb);return ne.createElement($p,Ag({name:t,as:"fieldset"},s),/*#__PURE__*/ne.createElement(gb,{display:r?"none":"block"},n),/*#__PURE__*/ne.createElement(Qg,{columns:a,gridGap:i},eb(t,o)))};s&&(bb.displayName="ObjectField");const Eb=["name","type"],xb=["schema","fieldResolver","focusFirstField"],wb=["name","type","defaultValue"],kb=(e,t)=>{var n;return null==(n=e.getNestedFields(t))?void 0:n.map((e,t)=>{let{name:n,type:r}=e,o=Rg(e,Eb);return ne.createElement(Ug,Ag({key:n||t,name:n,type:r},o))})},Sb=e=>{let{schema:t,fieldResolver:n,focusFirstField:r}=e,o=Rg(e,xb);const a=ne.useMemo(()=>n||Xg.getFieldResolver(t),[t,n]),i=ne.useMemo(()=>a.getFields(),[a]),s=p();return ne.useEffect(()=>{var e;r&&null!=(e=i[0])&&e.name&&s.setFocus(i[0].name)},[t,n,r]),/*#__PURE__*/ne.createElement(Qg,o,i.map(e=>{let{name:t,type:n}=e,r=Rg(e,wb);return"array"===n?/*#__PURE__*/ne.createElement(mb,Ag({key:t,name:t},r),kb(a,t)):"object"===n?/*#__PURE__*/ne.createElement(bb,Ag({key:t,name:t},r),kb(a,t)):/*#__PURE__*/ne.createElement(Ug,Ag({key:t,name:t,type:n},r))}))};s&&(Sb.displayName="Fields");const Cb=["children","disableIfUntouched","disableIfInvalid","isDisabled","isLoading"],_b=ne.forwardRef((e,t)=>{const{children:n,disableIfUntouched:r,disableIfInvalid:o,isDisabled:a,isLoading:i}=e,s=Rg(e,Cb),{formState:l}=p();return ne.createElement(Fy,Ag({},s,{ref:t,variant:"primary",type:"submit",isLoading:l.isSubmitting||i,isDisabled:r&&!l.isDirty||o&&!l.isValid||a}),n)});_b.defaultProps={label:"Submit",disableIfUntouched:!1,disableIfInvalid:!1},s&&(_b.displayName="SubmitButton");const Ob=["schema","submitLabel","fieldResolver","children"],Nb=uo((e,t)=>{const{schema:n,submitLabel:r="Submit",fieldResolver:o,children:a}=e,i=Rg(e,Ob);return ne.createElement(Xg,Ag({},i,{schema:n,ref:t}),/*#__PURE__*/ne.createElement(Qg,null,/*#__PURE__*/ne.createElement(Sb,{schema:n,fieldResolver:o}),r&&/*#__PURE__*/ne.createElement(_b,null,r),a))});s&&(Nb.displayName="AutoForm");const Ab=["onChange"],[Rb,Ib]=Ur({name:"StepFormContext",errorMessage:"useStepFormContext: `context` is undefined. Seems you forgot to wrap step form components in `<StepForm />`"}),Lb=["children"],Tb=["getFormProps"];ne.forwardRef((e,t)=>{const{children:n}=e,r=Rg(e,Lb),o=function(e){const t=ug(Rg(e,Ab)),{activeStep:n,isLastStep:r,nextStep:o}=t,[a,i]=ne.useState({}),s=ne.useCallback(async i=>{try{const s=a[n];if(r)return await(null==e.onSubmit?void 0:e.onSubmit(i)),c(Ag({},s,{isCompleted:!0})),void o();await(null==s.onSubmit?void 0:s.onSubmit(i,t)),o()}catch(i){}},[a,n,r]),l=ne.useCallback(()=>{const e=a[n];return{onSubmit:s,schema:null==e?void 0:e.schema,resolver:null==e?void 0:e.resolver}},[a,s,n]),c=ne.useCallback(e=>{i(t=>Ag({},t,{[e.name]:e}))},[a]);return Ag({getFormProps:l,updateStep:c,steps:a},t)}(e),{getFormProps:a}=o,s=Rg(o,Tb),l=ne.useMemo(()=>s,[s]);return ne.createElement(lg,{value:l},/*#__PURE__*/ne.createElement(Rb,{value:l},/*#__PURE__*/ne.createElement(Xg,Ag({ref:t},r,a()),i(n,o))))});const Pb=e=>Zg(e.properties),Mb=t=>({schema:t,fieldResolver:Pb(t),resolver:e(t)});export{Mb as jsonSchemaForm};
|
85
91
|
//# sourceMappingURL=index.modern.js.map
|