@canaia/ui-kit 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,390 @@
1
+ (function(le,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],g):(le=typeof globalThis<"u"?globalThis:le||self,g(le.CanaiaUiKit={},le.React,le.ReactDOM))})(this,function(le,g,Au){"use strict";var _v,Av,$v,Ov,Mv,Iv,Dv,Rv,Fv,jv,Bv,zv,Lv,Vv,Nv,Wv,Hv;function ey(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const L=ey(g);var xi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zs={exports:{}},no={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var $u;function ty(){if($u)return no;$u=1;var e=g,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(a,c,l){var u,d={},f=null,h=null;l!==void 0&&(f=""+l),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(h=c.ref);for(u in c)n.call(c,u)&&!i.hasOwnProperty(u)&&(d[u]=c[u]);if(a&&a.defaultProps)for(u in c=a.defaultProps,c)d[u]===void 0&&(d[u]=c[u]);return{$$typeof:t,type:a,key:f,ref:h,props:d,_owner:o.current}}return no.Fragment=r,no.jsx=s,no.jsxs=s,no}var oo={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Ou;function ry(){return Ou||(Ou=1,process.env.NODE_ENV!=="production"&&function(){var e=g,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.iterator,p="@@iterator";function v(w){if(w===null||typeof w!="object")return null;var F=m&&w[m]||w[p];return typeof F=="function"?F:null}var S=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(w){{for(var F=arguments.length,N=new Array(F>1?F-1:0),J=1;J<F;J++)N[J-1]=arguments[J];x("error",w,N)}}function x(w,F,N){{var J=S.ReactDebugCurrentFrame,ye=J.getStackAddendum();ye!==""&&(F+="%s",N=N.concat([ye]));var _e=N.map(function(he){return String(he)});_e.unshift("Warning: "+F),Function.prototype.apply.call(console[w],console,_e)}}var E=!1,C=!1,$=!1,A=!1,O=!1,D;D=Symbol.for("react.module.reference");function j(w){return!!(typeof w=="string"||typeof w=="function"||w===n||w===i||O||w===o||w===l||w===u||A||w===h||E||C||$||typeof w=="object"&&w!==null&&(w.$$typeof===f||w.$$typeof===d||w.$$typeof===s||w.$$typeof===a||w.$$typeof===c||w.$$typeof===D||w.getModuleId!==void 0))}function Y(w,F,N){var J=w.displayName;if(J)return J;var ye=F.displayName||F.name||"";return ye!==""?N+"("+ye+")":N}function ce(w){return w.displayName||"Context"}function K(w){if(w==null)return null;if(typeof w.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof w=="function")return w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case l:return"Suspense";case u:return"SuspenseList"}if(typeof w=="object")switch(w.$$typeof){case a:var F=w;return ce(F)+".Consumer";case s:var N=w;return ce(N._context)+".Provider";case c:return Y(w,w.render,"ForwardRef");case d:var J=w.displayName||null;return J!==null?J:K(w.type)||"Memo";case f:{var ye=w,_e=ye._payload,he=ye._init;try{return K(he(_e))}catch{return null}}}return null}var Z=Object.assign,ke=0,ie,R,se,ve,M,V,X;function I(){}I.__reactDisabledLog=!0;function B(){{if(ke===0){ie=console.log,R=console.info,se=console.warn,ve=console.error,M=console.group,V=console.groupCollapsed,X=console.groupEnd;var w={configurable:!0,enumerable:!0,value:I,writable:!0};Object.defineProperties(console,{info:w,log:w,warn:w,error:w,group:w,groupCollapsed:w,groupEnd:w})}ke++}}function U(){{if(ke--,ke===0){var w={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Z({},w,{value:ie}),info:Z({},w,{value:R}),warn:Z({},w,{value:se}),error:Z({},w,{value:ve}),group:Z({},w,{value:M}),groupCollapsed:Z({},w,{value:V}),groupEnd:Z({},w,{value:X})})}ke<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var W=S.ReactCurrentDispatcher,q;function G(w,F,N){{if(q===void 0)try{throw Error()}catch(ye){var J=ye.stack.trim().match(/\n( *(at )?)/);q=J&&J[1]||""}return`
18
+ `+q+w}}var ae=!1,oe;{var Me=typeof WeakMap=="function"?WeakMap:Map;oe=new Me}function z(w,F){if(!w||ae)return"";{var N=oe.get(w);if(N!==void 0)return N}var J;ae=!0;var ye=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var _e;_e=W.current,W.current=null,B();try{if(F){var he=function(){throw Error()};if(Object.defineProperty(he.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(he,[])}catch(it){J=it}Reflect.construct(w,[],he)}else{try{he.call()}catch(it){J=it}w.call(he.prototype)}}else{try{throw Error()}catch(it){J=it}w()}}catch(it){if(it&&J&&typeof it.stack=="string"){for(var ue=it.stack.split(`
19
+ `),tt=J.stack.split(`
20
+ `),Ve=ue.length-1,je=tt.length-1;Ve>=1&&je>=0&&ue[Ve]!==tt[je];)je--;for(;Ve>=1&&je>=0;Ve--,je--)if(ue[Ve]!==tt[je]){if(Ve!==1||je!==1)do if(Ve--,je--,je<0||ue[Ve]!==tt[je]){var gt=`
21
+ `+ue[Ve].replace(" at new "," at ");return w.displayName&&gt.includes("<anonymous>")&&(gt=gt.replace("<anonymous>",w.displayName)),typeof w=="function"&&oe.set(w,gt),gt}while(Ve>=1&&je>=0);break}}}finally{ae=!1,W.current=_e,U(),Error.prepareStackTrace=ye}var Wt=w?w.displayName||w.name:"",Ht=Wt?G(Wt):"";return typeof w=="function"&&oe.set(w,Ht),Ht}function We(w,F,N){return z(w,!1)}function kt(w){var F=w.prototype;return!!(F&&F.isReactComponent)}function ne(w,F,N){if(w==null)return"";if(typeof w=="function")return z(w,kt(w));if(typeof w=="string")return G(w);switch(w){case l:return G("Suspense");case u:return G("SuspenseList")}if(typeof w=="object")switch(w.$$typeof){case c:return We(w.render);case d:return ne(w.type,F,N);case f:{var J=w,ye=J._payload,_e=J._init;try{return ne(_e(ye),F,N)}catch{}}}return""}var Fe=Object.prototype.hasOwnProperty,$e={},Ze=S.ReactDebugCurrentFrame;function lt(w){if(w){var F=w._owner,N=ne(w.type,w._source,F?F.type:null);Ze.setExtraStackFrame(N)}else Ze.setExtraStackFrame(null)}function He(w,F,N,J,ye){{var _e=Function.call.bind(Fe);for(var he in w)if(_e(w,he)){var ue=void 0;try{if(typeof w[he]!="function"){var tt=Error((J||"React class")+": "+N+" type `"+he+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof w[he]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw tt.name="Invariant Violation",tt}ue=w[he](F,he,J,N,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ve){ue=Ve}ue&&!(ue instanceof Error)&&(lt(ye),b("%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).",J||"React class",N,he,typeof ue),lt(null)),ue instanceof Error&&!(ue.message in $e)&&($e[ue.message]=!0,lt(ye),b("Failed %s type: %s",N,ue.message),lt(null))}}}var Tt=Array.isArray;function Vt(w){return Tt(w)}function Pt(w){{var F=typeof Symbol=="function"&&Symbol.toStringTag,N=F&&w[Symbol.toStringTag]||w.constructor.name||"Object";return N}}function Fr(w){try{return jr(w),!1}catch{return!0}}function jr(w){return""+w}function ln(w){if(Fr(w))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Pt(w)),jr(w)}var sr=S.ReactCurrentOwner,Sr={key:!0,ref:!0,__self:!0,__source:!0},hi,pi,to;to={};function Ls(w){if(Fe.call(w,"ref")){var F=Object.getOwnPropertyDescriptor(w,"ref").get;if(F&&F.isReactWarning)return!1}return w.ref!==void 0}function uu(w){if(Fe.call(w,"key")){var F=Object.getOwnPropertyDescriptor(w,"key").get;if(F&&F.isReactWarning)return!1}return w.key!==void 0}function du(w,F){if(typeof w.ref=="string"&&sr.current&&F&&sr.current.stateNode!==F){var N=K(sr.current.type);to[N]||(b('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',K(sr.current.type),w.ref),to[N]=!0)}}function wr(w,F){{var N=function(){hi||(hi=!0,b("%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)",F))};N.isReactWarning=!0,Object.defineProperty(w,"key",{get:N,configurable:!0})}}function ro(w,F){{var N=function(){pi||(pi=!0,b("%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)",F))};N.isReactWarning=!0,Object.defineProperty(w,"ref",{get:N,configurable:!0})}}var fu=function(w,F,N,J,ye,_e,he){var ue={$$typeof:t,type:w,key:F,ref:N,props:he,_owner:_e};return ue._store={},Object.defineProperty(ue._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ue,"_self",{configurable:!1,enumerable:!1,writable:!1,value:J}),Object.defineProperty(ue,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ye}),Object.freeze&&(Object.freeze(ue.props),Object.freeze(ue)),ue};function Vs(w,F,N,J,ye){{var _e,he={},ue=null,tt=null;N!==void 0&&(ln(N),ue=""+N),uu(F)&&(ln(F.key),ue=""+F.key),Ls(F)&&(tt=F.ref,du(F,ye));for(_e in F)Fe.call(F,_e)&&!Sr.hasOwnProperty(_e)&&(he[_e]=F[_e]);if(w&&w.defaultProps){var Ve=w.defaultProps;for(_e in Ve)he[_e]===void 0&&(he[_e]=Ve[_e])}if(ue||tt){var je=typeof w=="function"?w.displayName||w.name||"Unknown":w;ue&&wr(he,je),tt&&ro(he,je)}return fu(w,ue,tt,ye,J,sr.current,he)}}var mi=S.ReactCurrentOwner,gi=S.ReactDebugCurrentFrame;function Ft(w){if(w){var F=w._owner,N=ne(w.type,w._source,F?F.type:null);gi.setExtraStackFrame(N)}else gi.setExtraStackFrame(null)}var vi;vi=!1;function Nt(w){return typeof w=="object"&&w!==null&&w.$$typeof===t}function Ns(){{if(mi.current){var w=K(mi.current.type);if(w)return`
22
+
23
+ Check the render method of \``+w+"`."}return""}}function hu(w){return""}var Ws={};function pu(w){{var F=Ns();if(!F){var N=typeof w=="string"?w:w.displayName||w.name;N&&(F=`
24
+
25
+ Check the top-level render call using <`+N+">.")}return F}}function Hs(w,F){{if(!w._store||w._store.validated||w.key!=null)return;w._store.validated=!0;var N=pu(F);if(Ws[N])return;Ws[N]=!0;var J="";w&&w._owner&&w._owner!==mi.current&&(J=" It was passed a child from "+K(w._owner.type)+"."),Ft(w),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',N,J),Ft(null)}}function jt(w,F){{if(typeof w!="object")return;if(Vt(w))for(var N=0;N<w.length;N++){var J=w[N];Nt(J)&&Hs(J,F)}else if(Nt(w))w._store&&(w._store.validated=!0);else if(w){var ye=v(w);if(typeof ye=="function"&&ye!==w.entries)for(var _e=ye.call(w),he;!(he=_e.next()).done;)Nt(he.value)&&Hs(he.value,F)}}}function mu(w){{var F=w.type;if(F==null||typeof F=="string")return;var N;if(typeof F=="function")N=F.propTypes;else if(typeof F=="object"&&(F.$$typeof===c||F.$$typeof===d))N=F.propTypes;else return;if(N){var J=K(F);He(N,w.props,"prop",J,w)}else if(F.PropTypes!==void 0&&!vi){vi=!0;var ye=K(F);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ye||"Unknown")}typeof F.getDefaultProps=="function"&&!F.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function gu(w){{for(var F=Object.keys(w.props),N=0;N<F.length;N++){var J=F[N];if(J!=="children"&&J!=="key"){Ft(w),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",J),Ft(null);break}}w.ref!==null&&(Ft(w),b("Invalid attribute `ref` supplied to `React.Fragment`."),Ft(null))}}var Us={};function qs(w,F,N,J,ye,_e){{var he=j(w);if(!he){var ue="";(w===void 0||typeof w=="object"&&w!==null&&Object.keys(w).length===0)&&(ue+=" 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 tt=hu();tt?ue+=tt:ue+=Ns();var Ve;w===null?Ve="null":Vt(w)?Ve="array":w!==void 0&&w.$$typeof===t?(Ve="<"+(K(w.type)||"Unknown")+" />",ue=" Did you accidentally export a JSX literal instead of a component?"):Ve=typeof w,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ve,ue)}var je=Vs(w,F,N,ye,_e);if(je==null)return je;if(he){var gt=F.children;if(gt!==void 0)if(J)if(Vt(gt)){for(var Wt=0;Wt<gt.length;Wt++)jt(gt[Wt],w);Object.freeze&&Object.freeze(gt)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else jt(gt,w)}if(Fe.call(F,"key")){var Ht=K(w),it=Object.keys(F).filter(function(xu){return xu!=="key"}),zr=it.length>0?"{key: someKey, "+it.join(": ..., ")+": ...}":"{key: someKey}";if(!Us[Ht+zr]){var Gs=it.length>0?"{"+it.join(": ..., ")+": ...}":"{}";b(`A props object containing a "key" prop is being spread into JSX:
26
+ let props = %s;
27
+ <%s {...props} />
28
+ React keys must be passed directly to JSX without using spread:
29
+ let props = %s;
30
+ <%s key={someKey} {...props} />`,zr,Ht,Gs,Ht),Us[Ht+zr]=!0}}return w===n?gu(je):mu(je),je}}function vu(w,F,N){return qs(w,F,N,!0)}function Br(w,F,N){return qs(w,F,N,!1)}var yu=Br,bu=vu;oo.Fragment=n,oo.jsx=yu,oo.jsxs=bu}()),oo}process.env.NODE_ENV==="production"?Zs.exports=ty():Zs.exports=ry();var P=Zs.exports;function Js(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function ny(){return!!(globalThis!=null&&globalThis.document)}function Mu(e){return e.parentElement&&Mu(e.parentElement)?!0:e.hidden}function oy(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function iy(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function sy(e){var t;return((t=Iu(e))==null?void 0:t.defaultView)??window}function Iu(e){return Js(e)?e.ownerDocument:document}function ay(e){return Iu(e).activeElement}function cy(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const n of t)if(n!=null)for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&(o in r&&delete r[o],r[o]=n[o]);return r}const de=e=>e?"":void 0,Qs=e=>e?!0:void 0;function Si(e){return Array.isArray(e)}function ut(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Si(e)}function ly(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function uy(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function ea(e){if(e==null)return e;const{unitless:t}=uy(e);return t||typeof e=="number"?`${e}px`:e}const Du=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,ta=e=>Object.fromEntries(Object.entries(e).sort(Du));function Ru(e){const t=ta(e);return Object.assign(Object.values(t),t)}function dy(e){const t=Object.keys(ta(e));return new Set(t)}function Fu(e){if(!e)return e;e=ea(e)??e;const t=-.02;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,r=>`${parseFloat(r)+t}`)}function io(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${ea(e)})`),t&&r.push("and",`(max-width: ${ea(t)})`),r.join(" ")}function fy(e){if(!e)return null;e.base=e.base??"0px";const t=Ru(e),r=Object.entries(e).sort(Du).map(([i,s],a,c)=>{let[,l]=c[a+1]??[];return l=parseFloat(l)>0?Fu(l):void 0,{_minW:Fu(s),breakpoint:i,minW:s,maxW:l,maxWQuery:io(null,l),minWQuery:io(s),minMaxQuery:io(s,l)}}),n=dy(e),o=Array.from(n.values());return{keys:n,normalized:t,isResponsive(i){const s=Object.keys(i);return s.length>0&&s.every(a=>n.has(a))},asObject:ta(e),asArray:Ru(e),details:r,get(i){return r.find(s=>s.breakpoint===i)},media:[null,...t.map(i=>io(i)).slice(1)],toArrayValue(i){if(!ut(i))throw new Error("toArrayValue: value must be an object");const s=o.map(a=>i[a]??null);for(;ly(s)===null;)s.pop();return s},toObjectValue(i){if(!Array.isArray(i))throw new Error("toObjectValue: value must be an array");return i.reduce((s,a,c)=>{const l=o[c];return l!=null&&a!=null&&(s[l]=a),s},{})}}}function ju(...e){return function(...r){e.forEach(n=>n==null?void 0:n(...r))}}function Ue(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}function hy(e){return g.Children.toArray(e).filter(t=>g.isValidElement(t))}function wi(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function py(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function st(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=g.createContext(s);a.displayName=t;function c(){var u;const l=g.useContext(a);if(!l&&r){const d=new Error(i??py(n,o));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,c),d}return l}return[a.Provider,c,a]}const ge=(...e)=>e.filter(Boolean).join(" "),Bu=e=>e.hasAttribute("tabindex"),my=e=>Bu(e)&&e.tabIndex===-1;function zu(e){if(!Js(e)||Mu(e)||iy(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]():oy(e)?!0:Bu(e)}function gy(e){return e?Js(e)&&zu(e)&&!my(e):!1}const vy=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"].join(),yy=e=>e.offsetWidth>0&&e.offsetHeight>0;function by(e){const t=Array.from(e.querySelectorAll(vy));return t.unshift(e),t.filter(r=>zu(r)&&yy(r))}function xy(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n<o.length&&e;n+=1)e=e[o[n]];return e===void 0?r:e}const Lu=(e=>{const t=new WeakMap;return(n,o,i,s)=>{if(typeof n>"u")return e(n,o,i);t.has(n)||t.set(n,new Map);const a=t.get(n);if(a.has(o))return a.get(o);const c=e(n,o,i,s);return a.set(o,c),c}})(xy),Sy=e=>e.default||e;function wy(e){const{wasSelected:t,enabled:r,isSelected:n,mode:o="unmount"}=e;return!!(!r||n||o==="keepMounted"&&t)}function so(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function Cy(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function ky(e,t){return Array.isArray(e)?e.map(r=>r===null?null:t(r)):ut(e)?Object.keys(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):e!=null?t(e):null}const Ty=e=>typeof e=="function";function Bt(e,...t){return Ty(e)?e(...t):e}function Py(e,t){const r={},n={};for(const[o,i]of Object.entries(e))t.includes(o)?r[o]=i:n[o]=i;return[r,n]}function Ey(e,...t){const r=Object.getOwnPropertyDescriptors(e),n=Object.keys(r),o=s=>{const a={};for(let c=0;c<s.length;c++){const l=s[c];r[l]&&(Object.defineProperty(a,l,r[l]),delete r[l])}return a},i=s=>o(Array.isArray(s)?s:n.filter(s));return t.map(i).concat(o(n))}function Vu(e,t,r={}){const{stop:n,getKey:o}=r;function i(s,a=[]){if(ut(s)||Array.isArray(s)){const c={};for(const[l,u]of Object.entries(s)){const d=(o==null?void 0:o(l))??l,f=[...a,d];if(n!=null&&n(s,f))return t(s,a);c[d]=i(u,f)}return c}return t(s,a)}return i(e)}const _y=e=>{const{condition:t,message:r}=e;t&&process.env.NODE_ENV!=="production"&&console.warn(r)};var Ci={exports:{}};Ci.exports,function(e,t){var r=200,n="__lodash_hash_undefined__",o=800,i=16,s=9007199254740991,a="[object Arguments]",c="[object Array]",l="[object AsyncFunction]",u="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Function]",m="[object GeneratorFunction]",p="[object Map]",v="[object Number]",S="[object Null]",b="[object Object]",x="[object Proxy]",E="[object RegExp]",C="[object Set]",$="[object String]",A="[object Undefined]",O="[object WeakMap]",D="[object ArrayBuffer]",j="[object DataView]",Y="[object Float32Array]",ce="[object Float64Array]",K="[object Int8Array]",Z="[object Int16Array]",ke="[object Int32Array]",ie="[object Uint8Array]",R="[object Uint8ClampedArray]",se="[object Uint16Array]",ve="[object Uint32Array]",M=/[\\^$.*+?()[\]{}|]/g,V=/^\[object .+?Constructor\]$/,X=/^(?:0|[1-9]\d*)$/,I={};I[Y]=I[ce]=I[K]=I[Z]=I[ke]=I[ie]=I[R]=I[se]=I[ve]=!0,I[a]=I[c]=I[D]=I[u]=I[j]=I[d]=I[f]=I[h]=I[p]=I[v]=I[b]=I[E]=I[C]=I[$]=I[O]=!1;var B=typeof xi=="object"&&xi&&xi.Object===Object&&xi,U=typeof self=="object"&&self&&self.Object===Object&&self,W=B||U||Function("return this")(),q=t&&!t.nodeType&&t,G=q&&!0&&e&&!e.nodeType&&e,ae=G&&G.exports===q,oe=ae&&B.process,Me=function(){try{var y=G&&G.require&&G.require("util").types;return y||oe&&oe.binding&&oe.binding("util")}catch{}}(),z=Me&&Me.isTypedArray;function We(y,T,_){switch(_.length){case 0:return y.call(T);case 1:return y.call(T,_[0]);case 2:return y.call(T,_[0],_[1]);case 3:return y.call(T,_[0],_[1],_[2])}return y.apply(T,_)}function kt(y,T){for(var _=-1,H=Array(y);++_<y;)H[_]=T(_);return H}function ne(y){return function(T){return y(T)}}function Fe(y,T){return y==null?void 0:y[T]}function $e(y,T){return function(_){return y(T(_))}}var Ze=Array.prototype,lt=Function.prototype,He=Object.prototype,Tt=W["__core-js_shared__"],Vt=lt.toString,Pt=He.hasOwnProperty,Fr=function(){var y=/[^.]+$/.exec(Tt&&Tt.keys&&Tt.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),jr=He.toString,ln=Vt.call(Object),sr=RegExp("^"+Vt.call(Pt).replace(M,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Sr=ae?W.Buffer:void 0,hi=W.Symbol,pi=W.Uint8Array;Sr&&Sr.allocUnsafe;var to=$e(Object.getPrototypeOf,Object),Ls=Object.create,uu=He.propertyIsEnumerable,du=Ze.splice,wr=hi?hi.toStringTag:void 0,ro=function(){try{var y=Su(Object,"defineProperty");return y({},"",{}),y}catch{}}(),fu=Sr?Sr.isBuffer:void 0,Vs=Math.max,mi=Date.now,gi=Su(W,"Map"),Ft=Su(Object,"create"),vi=function(){function y(){}return function(T){if(!un(T))return{};if(Ls)return Ls(T);y.prototype=T;var _=new y;return y.prototype=void 0,_}}();function Nt(y){var T=-1,_=y==null?0:y.length;for(this.clear();++T<_;){var H=y[T];this.set(H[0],H[1])}}function Ns(){this.__data__=Ft?Ft(null):{},this.size=0}function hu(y){var T=this.has(y)&&delete this.__data__[y];return this.size-=T?1:0,T}function Ws(y){var T=this.__data__;if(Ft){var _=T[y];return _===n?void 0:_}return Pt.call(T,y)?T[y]:void 0}function pu(y){var T=this.__data__;return Ft?T[y]!==void 0:Pt.call(T,y)}function Hs(y,T){var _=this.__data__;return this.size+=this.has(y)?0:1,_[y]=Ft&&T===void 0?n:T,this}Nt.prototype.clear=Ns,Nt.prototype.delete=hu,Nt.prototype.get=Ws,Nt.prototype.has=pu,Nt.prototype.set=Hs;function jt(y){var T=-1,_=y==null?0:y.length;for(this.clear();++T<_;){var H=y[T];this.set(H[0],H[1])}}function mu(){this.__data__=[],this.size=0}function gu(y){var T=this.__data__,_=Wt(T,y);if(_<0)return!1;var H=T.length-1;return _==H?T.pop():du.call(T,_,1),--this.size,!0}function Us(y){var T=this.__data__,_=Wt(T,y);return _<0?void 0:T[_][1]}function qs(y){return Wt(this.__data__,y)>-1}function vu(y,T){var _=this.__data__,H=Wt(_,y);return H<0?(++this.size,_.push([y,T])):_[H][1]=T,this}jt.prototype.clear=mu,jt.prototype.delete=gu,jt.prototype.get=Us,jt.prototype.has=qs,jt.prototype.set=vu;function Br(y){var T=-1,_=y==null?0:y.length;for(this.clear();++T<_;){var H=y[T];this.set(H[0],H[1])}}function yu(){this.size=0,this.__data__={hash:new Nt,map:new(gi||jt),string:new Nt}}function bu(y){var T=Ys(this,y).delete(y);return this.size-=T?1:0,T}function w(y){return Ys(this,y).get(y)}function F(y){return Ys(this,y).has(y)}function N(y,T){var _=Ys(this,y),H=_.size;return _.set(y,T),this.size+=_.size==H?0:1,this}Br.prototype.clear=yu,Br.prototype.delete=bu,Br.prototype.get=w,Br.prototype.has=F,Br.prototype.set=N;function J(y){var T=this.__data__=new jt(y);this.size=T.size}function ye(){this.__data__=new jt,this.size=0}function _e(y){var T=this.__data__,_=T.delete(y);return this.size=T.size,_}function he(y){return this.__data__.get(y)}function ue(y){return this.__data__.has(y)}function tt(y,T){var _=this.__data__;if(_ instanceof jt){var H=_.__data__;if(!gi||H.length<r-1)return H.push([y,T]),this.size=++_.size,this;_=this.__data__=new Br(H)}return _.set(y,T),this.size=_.size,this}J.prototype.clear=ye,J.prototype.delete=_e,J.prototype.get=he,J.prototype.has=ue,J.prototype.set=tt;function Ve(y,T){var _=ku(y),H=!_&&Cu(y),me=!_&&!H&&Yv(y),Ie=!_&&!H&&!me&&Xv(y),Be=_||H||me||Ie,Te=Be?kt(y.length,String):[],ze=Te.length;for(var Ut in y)Be&&(Ut=="length"||me&&(Ut=="offset"||Ut=="parent")||Ie&&(Ut=="buffer"||Ut=="byteLength"||Ut=="byteOffset")||qv(Ut,ze))||Te.push(Ut);return Te}function je(y,T,_){(_!==void 0&&!Ks(y[T],_)||_===void 0&&!(T in y))&&Ht(y,T,_)}function gt(y,T,_){var H=y[T];(!(Pt.call(y,T)&&Ks(H,_))||_===void 0&&!(T in y))&&Ht(y,T,_)}function Wt(y,T){for(var _=y.length;_--;)if(Ks(y[_][0],T))return _;return-1}function Ht(y,T,_){T=="__proto__"&&ro?ro(y,T,{configurable:!0,enumerable:!0,value:_,writable:!0}):y[T]=_}var it=RD();function zr(y){return y==null?y===void 0?A:S:wr&&wr in Object(y)?FD(y):ND(y)}function Gs(y){return yi(y)&&zr(y)==a}function xu(y){if(!un(y)||LD(y))return!1;var T=Pu(y)?sr:V;return T.test(qD(y))}function kD(y){return yi(y)&&Kv(y.length)&&!!I[zr(y)]}function TD(y){if(!un(y))return VD(y);var T=Gv(y),_=[];for(var H in y)H=="constructor"&&(T||!Pt.call(y,H))||_.push(H);return _}function Uv(y,T,_,H,me){y!==T&&it(T,function(Ie,Be){if(me||(me=new J),un(Ie))PD(y,T,Be,_,Uv,H,me);else{var Te=H?H(wu(y,Be),Ie,Be+"",y,T,me):void 0;Te===void 0&&(Te=Ie),je(y,Be,Te)}},Zv)}function PD(y,T,_,H,me,Ie,Be){var Te=wu(y,_),ze=wu(T,_),Ut=Be.get(ze);if(Ut){je(y,_,Ut);return}var Et=Ie?Ie(Te,ze,_+"",y,T,Be):void 0,bi=Et===void 0;if(bi){var Eu=ku(ze),_u=!Eu&&Yv(ze),Qv=!Eu&&!_u&&Xv(ze);Et=ze,Eu||_u||Qv?ku(Te)?Et=Te:GD(Te)?Et=MD(Te):_u?(bi=!1,Et=AD(ze)):Qv?(bi=!1,Et=OD(ze)):Et=[]:YD(ze)||Cu(ze)?(Et=Te,Cu(Te)?Et=KD(Te):(!un(Te)||Pu(Te))&&(Et=jD(ze))):bi=!1}bi&&(Be.set(ze,Et),me(Et,ze,H,Ie,Be),Be.delete(ze)),je(y,_,Et)}function ED(y,T){return HD(WD(y,T,Jv),y+"")}var _D=ro?function(y,T){return ro(y,"toString",{configurable:!0,enumerable:!1,value:ZD(T),writable:!0})}:Jv;function AD(y,T){return y.slice()}function $D(y){var T=new y.constructor(y.byteLength);return new pi(T).set(new pi(y)),T}function OD(y,T){var _=$D(y.buffer);return new y.constructor(_,y.byteOffset,y.length)}function MD(y,T){var _=-1,H=y.length;for(T||(T=Array(H));++_<H;)T[_]=y[_];return T}function ID(y,T,_,H){var me=!_;_||(_={});for(var Ie=-1,Be=T.length;++Ie<Be;){var Te=T[Ie],ze=void 0;ze===void 0&&(ze=y[Te]),me?Ht(_,Te,ze):gt(_,Te,ze)}return _}function DD(y){return ED(function(T,_){var H=-1,me=_.length,Ie=me>1?_[me-1]:void 0,Be=me>2?_[2]:void 0;for(Ie=y.length>3&&typeof Ie=="function"?(me--,Ie):void 0,Be&&BD(_[0],_[1],Be)&&(Ie=me<3?void 0:Ie,me=1),T=Object(T);++H<me;){var Te=_[H];Te&&y(T,Te,H,Ie)}return T})}function RD(y){return function(T,_,H){for(var me=-1,Ie=Object(T),Be=H(T),Te=Be.length;Te--;){var ze=Be[++me];if(_(Ie[ze],ze,Ie)===!1)break}return T}}function Ys(y,T){var _=y.__data__;return zD(T)?_[typeof T=="string"?"string":"hash"]:_.map}function Su(y,T){var _=Fe(y,T);return xu(_)?_:void 0}function FD(y){var T=Pt.call(y,wr),_=y[wr];try{y[wr]=void 0;var H=!0}catch{}var me=jr.call(y);return H&&(T?y[wr]=_:delete y[wr]),me}function jD(y){return typeof y.constructor=="function"&&!Gv(y)?vi(to(y)):{}}function qv(y,T){var _=typeof y;return T=T??s,!!T&&(_=="number"||_!="symbol"&&X.test(y))&&y>-1&&y%1==0&&y<T}function BD(y,T,_){if(!un(_))return!1;var H=typeof T;return(H=="number"?Tu(_)&&qv(T,_.length):H=="string"&&T in _)?Ks(_[T],y):!1}function zD(y){var T=typeof y;return T=="string"||T=="number"||T=="symbol"||T=="boolean"?y!=="__proto__":y===null}function LD(y){return!!Fr&&Fr in y}function Gv(y){var T=y&&y.constructor,_=typeof T=="function"&&T.prototype||He;return y===_}function VD(y){var T=[];if(y!=null)for(var _ in Object(y))T.push(_);return T}function ND(y){return jr.call(y)}function WD(y,T,_){return T=Vs(T===void 0?y.length-1:T,0),function(){for(var H=arguments,me=-1,Ie=Vs(H.length-T,0),Be=Array(Ie);++me<Ie;)Be[me]=H[T+me];me=-1;for(var Te=Array(T+1);++me<T;)Te[me]=H[me];return Te[T]=_(Be),We(y,this,Te)}}function wu(y,T){if(!(T==="constructor"&&typeof y[T]=="function")&&T!="__proto__")return y[T]}var HD=UD(_D);function UD(y){var T=0,_=0;return function(){var H=mi(),me=i-(H-_);if(_=H,me>0){if(++T>=o)return arguments[0]}else T=0;return y.apply(void 0,arguments)}}function qD(y){if(y!=null){try{return Vt.call(y)}catch{}try{return y+""}catch{}}return""}function Ks(y,T){return y===T||y!==y&&T!==T}var Cu=Gs(function(){return arguments}())?Gs:function(y){return yi(y)&&Pt.call(y,"callee")&&!uu.call(y,"callee")},ku=Array.isArray;function Tu(y){return y!=null&&Kv(y.length)&&!Pu(y)}function GD(y){return yi(y)&&Tu(y)}var Yv=fu||JD;function Pu(y){if(!un(y))return!1;var T=zr(y);return T==h||T==m||T==l||T==x}function Kv(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=s}function un(y){var T=typeof y;return y!=null&&(T=="object"||T=="function")}function yi(y){return y!=null&&typeof y=="object"}function YD(y){if(!yi(y)||zr(y)!=b)return!1;var T=to(y);if(T===null)return!0;var _=Pt.call(T,"constructor")&&T.constructor;return typeof _=="function"&&_ instanceof _&&Vt.call(_)==ln}var Xv=z?ne(z):kD;function KD(y){return ID(y,Zv(y))}function Zv(y){return Tu(y)?Ve(y):TD(y)}var XD=DD(function(y,T,_,H){Uv(y,T,_,H)});function ZD(y){return function(){return y}}function Jv(y){return y}function JD(){return!1}e.exports=XD}(Ci,Ci.exports);var Ay=Ci.exports;const _t=Xs(Ay);function Cr(e,t=[]){const r=g.useRef(e);return g.useEffect(()=>{r.current=e}),g.useCallback((...n)=>{var o;return(o=r.current)==null?void 0:o.call(r,...n)},t)}function $y(e,t,r,n){const o=Cr(r);return g.useEffect(()=>{const i=typeof e=="function"?e():e??document;if(!(!r||!i))return i.addEventListener(t,o,n),()=>{i.removeEventListener(t,o,n)}},[t,e,n,o,r]),()=>{const i=typeof e=="function"?e():e??document;i==null||i.removeEventListener(t,o,n)}}function Oy(e){const{isOpen:t,ref:r}=e,[n,o]=g.useState(t),[i,s]=g.useState(!1);return g.useEffect(()=>{i||(o(t),s(!0))},[t,i,n]),$y(()=>r.current,"animationend",()=>{o(t)}),{present:!(t?!1:!n),onComplete(){var u;const c=sy(r.current),l=new c.CustomEvent("animationend",{bubbles:!0});(u=r.current)==null||u.dispatchEvent(l)}}}function My(e={}){const{onClose:t,onOpen:r,isOpen:n,id:o}=e,i=Cr(r),s=Cr(t),[a,c]=g.useState(e.defaultIsOpen||!1),l=n!==void 0?n:a,u=n!==void 0,d=g.useId(),f=o??`disclosure-${d}`,h=g.useCallback(()=>{u||c(!1),s==null||s()},[u,s]),m=g.useCallback(()=>{u||c(!0),i==null||i()},[u,i]),p=g.useCallback(()=>{l?h():m()},[l,m,h]);function v(b={}){return{...b,"aria-expanded":l,"aria-controls":f,onClick(x){var E;(E=b.onClick)==null||E.call(b,x),p()}}}function S(b={}){return{...b,hidden:!l,id:f}}return{isOpen:l,onOpen:m,onClose:h,onToggle:p,isControlled:u,getButtonProps:v,getDisclosureProps:S}}const Lr=globalThis!=null&&globalThis.document?g.useLayoutEffect:g.useEffect,dn=(e,t)=>{const r=g.useRef(!1),n=g.useRef(!1);g.useEffect(()=>{if(r.current&&n.current)return e();n.current=!0},t),g.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])};function Iy(e){const t=e.current;if(!t)return!1;const r=ay(t);return!r||t.contains(r)?!1:!!gy(r)}function Dy(e,t){const{shouldFocus:r,visible:n,focusRef:o}=t,i=r&&!n;dn(()=>{if(!i||Iy(e))return;const s=(o==null?void 0:o.current)||e.current;let a;if(s)return a=requestAnimationFrame(()=>{s.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(a)}},[i,e,o])}function Ry(e,t){const r=g.useId();return g.useMemo(()=>e||[t,r].filter(Boolean).join("-"),[e,t,r])}function Fy(e,...t){const r=Ry(e);return g.useMemo(()=>t.map(n=>`${n}-${r}`),[r,t])}function jy(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function dt(...e){return t=>{e.forEach(r=>{jy(r,t)})}}function By(...e){return g.useMemo(()=>dt(...e),e)}function zy(e){const{ref:t,handler:r,enabled:n=!0}=e,o=Cr(r),s=g.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;g.useEffect(()=>{if(!n)return;const a=d=>{ra(d,t)&&(s.isPointerDown=!0)},c=d=>{if(s.ignoreEmulatedMouseEvents){s.ignoreEmulatedMouseEvents=!1;return}s.isPointerDown&&r&&ra(d,t)&&(s.isPointerDown=!1,o(d))},l=d=>{s.ignoreEmulatedMouseEvents=!0,r&&s.isPointerDown&&ra(d,t)&&(s.isPointerDown=!1,o(d))},u=Nu(t.current);return u.addEventListener("mousedown",a,!0),u.addEventListener("mouseup",c,!0),u.addEventListener("touchstart",a,!0),u.addEventListener("touchend",l,!0),()=>{u.removeEventListener("mousedown",a,!0),u.removeEventListener("mouseup",c,!0),u.removeEventListener("touchstart",a,!0),u.removeEventListener("touchend",l,!0)}},[r,t,o,s,n])}function ra(e,t){var n,o;const r=((n=e.composedPath)==null?void 0:n.call(e)[0])??e.target;return r&&!Nu(r).contains(r)?!1:!((o=t.current)!=null&&o.contains(r))}function Nu(e){return(e==null?void 0:e.ownerDocument)??document}function Ly(e,t){const r=Cr(e);g.useEffect(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}const Ke={open:(e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`,closed:(e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`,hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},qt=e=>Wu(t=>e(t,"&"),"[role=group]","[data-group]",".group"),ar=e=>Wu(t=>e(t,"~ &"),"[data-peer]",".peer"),Wu=(e,...t)=>t.map(e).join(", "),fn={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-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, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=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",_firstLetter:"&::first-letter",_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], &[data-state=indeterminate]",_groupOpen:qt(Ke.open),_groupClosed:qt(Ke.closed),_groupHover:qt(Ke.hover),_peerHover:ar(Ke.hover),_groupFocus:qt(Ke.focus),_peerFocus:ar(Ke.focus),_groupFocusVisible:qt(Ke.focusVisible),_peerFocusVisible:ar(Ke.focusVisible),_groupActive:qt(Ke.active),_peerActive:ar(Ke.active),_groupDisabled:qt(Ke.disabled),_peerDisabled:ar(Ke.disabled),_groupInvalid:qt(Ke.invalid),_peerInvalid:ar(Ke.invalid),_groupChecked:qt(Ke.checked),_peerChecked:ar(Ke.checked),_groupFocusWithin:qt(Ke.focusWithin),_peerFocusWithin:ar(Ke.focusWithin),_peerPlaceholderShown:ar(Ke.placeholderShown),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-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]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},Hu=Object.keys(fn),Vy=e=>/!(important)?$/.test(e),Uu=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,Ny=(e,t)=>r=>{const n=String(t),o=Vy(n),i=Uu(n),s=e?`${e}.${i}`:i;let a=ut(r.__cssMap)&&s in r.__cssMap?r.__cssMap[s].varRef:t;return a=Uu(a),o?`${a} !important`:a};function na(e){const{scale:t,transform:r,compose:n}=e;return(i,s)=>{const a=Ny(t,i)(s);let c=(r==null?void 0:r(a,s))??a;return n&&(c=n(c,s)),c}}const ki=(...e)=>t=>e.reduce((r,n)=>n(r),t);function At(e,t){return r=>{const n={property:r,scale:e};return n.transform=na({scale:e,transform:t}),n}}const Wy=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function Hy(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:Wy(t),transform:r?na({scale:r,compose:n}):n}}const qu=["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))"];function Uy(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...qu].join(" ")}function qy(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...qu].join(" ")}const Gy={"--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(" ")},Yy={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,/*!*/ /*!*/)"};function Ky(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(", ")}}const Xy={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},oa={"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"},Zy=new Set(Object.values(oa)),ia=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Jy=e=>e.trim();function Qy(e,t){if(e==null||ia.has(e))return e;if(!(sa(e)||ia.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=o==null?void 0:o[1],s=o==null?void 0:o[2];if(!i||!s)return e;const a=i.includes("-gradient")?i:`${i}-gradient`,[c,...l]=s.split(",").map(Jy).filter(Boolean);if((l==null?void 0:l.length)===0)return e;const u=c in oa?oa[c]:c;l.unshift(u);const d=l.map(f=>{if(Zy.has(f))return f;const h=f.indexOf(" "),[m,p]=h!==-1?[f.substr(0,h),f.substr(h+1)]:[f],v=sa(p)?p:p&&p.split(" "),S=`colors.${m}`,b=S in t.__cssMap?t.__cssMap[S].varRef:m;return v?[b,...Array.isArray(v)?v:[v]].join(" "):b});return`${a}(${d.join(", ")})`}const sa=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),eb=(e,t)=>Qy(e,t??{});function tb(e){return/^var\(--.+\)$/.test(e)}const rb=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},Gt=e=>t=>`${e}(${t})`,pe={filter(e){return e!=="auto"?e:Gy},backdropFilter(e){return e!=="auto"?e:Yy},ring(e){return Ky(pe.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?Uy():e==="auto-gpu"?qy():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=rb(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(tb(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:eb,blur:Gt("blur"),opacity:Gt("opacity"),brightness:Gt("brightness"),contrast:Gt("contrast"),dropShadow:Gt("drop-shadow"),grayscale:Gt("grayscale"),hueRotate:e=>Gt("hue-rotate")(pe.degree(e)),invert:Gt("invert"),saturate:Gt("saturate"),sepia:Gt("sepia"),bgImage(e){return e==null||sa(e)||ia.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:r}=Xy[e]??{},n={flexDirection:e};return t&&(n[t]=1),r&&(n[r]=1),n}},k={borderWidths:At("borderWidths"),borderStyles:At("borderStyles"),colors:At("colors"),borders:At("borders"),gradients:At("gradients",pe.gradient),radii:At("radii",pe.px),space:At("space",ki(pe.vh,pe.px)),spaceT:At("space",ki(pe.vh,pe.px)),degreeT(e){return{property:e,transform:pe.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:na({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:At("sizes",ki(pe.vh,pe.px)),sizesT:At("sizes",ki(pe.vh,pe.fraction)),shadows:At("shadows"),logical:Hy,blur:At("blur",pe.blur)},Ti={background:k.colors("background"),backgroundColor:k.colors("backgroundColor"),backgroundImage:k.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:pe.bgClip},bgSize:k.prop("backgroundSize"),bgPosition:k.prop("backgroundPosition"),bg:k.colors("background"),bgColor:k.colors("backgroundColor"),bgPos:k.prop("backgroundPosition"),bgRepeat:k.prop("backgroundRepeat"),bgAttachment:k.prop("backgroundAttachment"),bgGradient:k.gradients("backgroundImage"),bgClip:{transform:pe.bgClip}};Object.assign(Ti,{bgImage:Ti.backgroundImage,bgImg:Ti.backgroundImage});const be={border:k.borders("border"),borderWidth:k.borderWidths("borderWidth"),borderStyle:k.borderStyles("borderStyle"),borderColor:k.colors("borderColor"),borderRadius:k.radii("borderRadius"),borderTop:k.borders("borderTop"),borderBlockStart:k.borders("borderBlockStart"),borderTopLeftRadius:k.radii("borderTopLeftRadius"),borderStartStartRadius:k.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:k.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:k.radii("borderTopRightRadius"),borderStartEndRadius:k.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:k.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:k.borders("borderRight"),borderInlineEnd:k.borders("borderInlineEnd"),borderBottom:k.borders("borderBottom"),borderBlockEnd:k.borders("borderBlockEnd"),borderBottomLeftRadius:k.radii("borderBottomLeftRadius"),borderBottomRightRadius:k.radii("borderBottomRightRadius"),borderLeft:k.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:k.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:k.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:k.borders(["borderLeft","borderRight"]),borderInline:k.borders("borderInline"),borderY:k.borders(["borderTop","borderBottom"]),borderBlock:k.borders("borderBlock"),borderTopWidth:k.borderWidths("borderTopWidth"),borderBlockStartWidth:k.borderWidths("borderBlockStartWidth"),borderTopColor:k.colors("borderTopColor"),borderBlockStartColor:k.colors("borderBlockStartColor"),borderTopStyle:k.borderStyles("borderTopStyle"),borderBlockStartStyle:k.borderStyles("borderBlockStartStyle"),borderBottomWidth:k.borderWidths("borderBottomWidth"),borderBlockEndWidth:k.borderWidths("borderBlockEndWidth"),borderBottomColor:k.colors("borderBottomColor"),borderBlockEndColor:k.colors("borderBlockEndColor"),borderBottomStyle:k.borderStyles("borderBottomStyle"),borderBlockEndStyle:k.borderStyles("borderBlockEndStyle"),borderLeftWidth:k.borderWidths("borderLeftWidth"),borderInlineStartWidth:k.borderWidths("borderInlineStartWidth"),borderLeftColor:k.colors("borderLeftColor"),borderInlineStartColor:k.colors("borderInlineStartColor"),borderLeftStyle:k.borderStyles("borderLeftStyle"),borderInlineStartStyle:k.borderStyles("borderInlineStartStyle"),borderRightWidth:k.borderWidths("borderRightWidth"),borderInlineEndWidth:k.borderWidths("borderInlineEndWidth"),borderRightColor:k.colors("borderRightColor"),borderInlineEndColor:k.colors("borderInlineEndColor"),borderRightStyle:k.borderStyles("borderRightStyle"),borderInlineEndStyle:k.borderStyles("borderInlineEndStyle"),borderTopRadius:k.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:k.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:k.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:k.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(be,{rounded:be.borderRadius,roundedTop:be.borderTopRadius,roundedTopLeft:be.borderTopLeftRadius,roundedTopRight:be.borderTopRightRadius,roundedTopStart:be.borderStartStartRadius,roundedTopEnd:be.borderStartEndRadius,roundedBottom:be.borderBottomRadius,roundedBottomLeft:be.borderBottomLeftRadius,roundedBottomRight:be.borderBottomRightRadius,roundedBottomStart:be.borderEndStartRadius,roundedBottomEnd:be.borderEndEndRadius,roundedLeft:be.borderLeftRadius,roundedRight:be.borderRightRadius,roundedStart:be.borderInlineStartRadius,roundedEnd:be.borderInlineEndRadius,borderStart:be.borderInlineStart,borderEnd:be.borderInlineEnd,borderTopStartRadius:be.borderStartStartRadius,borderTopEndRadius:be.borderStartEndRadius,borderBottomStartRadius:be.borderEndStartRadius,borderBottomEndRadius:be.borderEndEndRadius,borderStartRadius:be.borderInlineStartRadius,borderEndRadius:be.borderInlineEndRadius,borderStartWidth:be.borderInlineStartWidth,borderEndWidth:be.borderInlineEndWidth,borderStartColor:be.borderInlineStartColor,borderEndColor:be.borderInlineEndColor,borderStartStyle:be.borderInlineStartStyle,borderEndStyle:be.borderInlineEndStyle});const nb={color:k.colors("color"),textColor:k.colors("color"),fill:k.colors("fill"),stroke:k.colors("stroke"),accentColor:k.colors("accentColor"),textFillColor:k.colors("textFillColor")},Pi={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:pe.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:k.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:k.space("gap"),rowGap:k.space("rowGap"),columnGap:k.space("columnGap")};Object.assign(Pi,{flexDir:Pi.flexDirection});const $t={width:k.sizesT("width"),inlineSize:k.sizesT("inlineSize"),height:k.sizes("height"),blockSize:k.sizes("blockSize"),boxSize:k.sizes(["width","height"]),minWidth:k.sizes("minWidth"),minInlineSize:k.sizes("minInlineSize"),minHeight:k.sizes("minHeight"),minBlockSize:k.sizes("minBlockSize"),maxWidth:k.sizes("maxWidth"),maxInlineSize:k.sizes("maxInlineSize"),maxHeight:k.sizes("maxHeight"),maxBlockSize:k.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var o,i;return{[`@media screen and (min-width: ${((i=(o=t.__breakpoints)==null?void 0:o.get(e))==null?void 0:i.minW)??e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var o,i;return{[`@media screen and (max-width: ${((i=(o=t.__breakpoints)==null?void 0:o.get(e))==null?void 0:i._minW)??e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:k.propT("float",pe.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign($t,{w:$t.width,h:$t.height,minW:$t.minWidth,maxW:$t.maxWidth,minH:$t.minHeight,maxH:$t.maxHeight,overscroll:$t.overscrollBehavior,overscrollX:$t.overscrollBehaviorX,overscrollY:$t.overscrollBehaviorY});const ob={filter:{transform:pe.filter},blur:k.blur("--chakra-blur"),brightness:k.propT("--chakra-brightness",pe.brightness),contrast:k.propT("--chakra-contrast",pe.contrast),hueRotate:k.propT("--chakra-hue-rotate",pe.hueRotate),invert:k.propT("--chakra-invert",pe.invert),saturate:k.propT("--chakra-saturate",pe.saturate),dropShadow:k.propT("--chakra-drop-shadow",pe.dropShadow),backdropFilter:{transform:pe.backdropFilter},backdropBlur:k.blur("--chakra-backdrop-blur"),backdropBrightness:k.propT("--chakra-backdrop-brightness",pe.brightness),backdropContrast:k.propT("--chakra-backdrop-contrast",pe.contrast),backdropHueRotate:k.propT("--chakra-backdrop-hue-rotate",pe.hueRotate),backdropInvert:k.propT("--chakra-backdrop-invert",pe.invert),backdropSaturate:k.propT("--chakra-backdrop-saturate",pe.saturate)},ib={ring:{transform:pe.ring},ringColor:k.colors("--chakra-ring-color"),ringOffset:k.prop("--chakra-ring-offset-width"),ringOffsetColor:k.colors("--chakra-ring-offset-color"),ringInset:k.prop("--chakra-ring-inset")},sb={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:pe.outline},outlineOffset:!0,outlineColor:k.colors("outlineColor")},Gu={gridGap:k.space("gridGap"),gridColumnGap:k.space("gridColumnGap"),gridRowGap:k.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};function ab(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n<o.length&&e;n+=1)e=e[o[n]];return e===void 0?r:e}const cb=(e=>{const t=new WeakMap;return(n,o,i,s)=>{if(typeof n>"u")return e(n,o,i);t.has(n)||t.set(n,new Map);const a=t.get(n);if(a.has(o))return a.get(o);const c=e(n,o,i,s);return a.set(o,c),c}})(ab),lb={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},ub={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},aa=(e,t,r)=>{const n={},o=cb(e,t,{});for(const i in o)i in r&&r[i]!=null||(n[i]=o[i]);return n},db={srOnly:{transform(e){return e===!0?lb:e==="focusable"?ub:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>aa(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>aa(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>aa(t,e,r)}},ao={position:!0,pos:k.prop("position"),zIndex:k.prop("zIndex","zIndices"),inset:k.spaceT("inset"),insetX:k.spaceT(["left","right"]),insetInline:k.spaceT("insetInline"),insetY:k.spaceT(["top","bottom"]),insetBlock:k.spaceT("insetBlock"),top:k.spaceT("top"),insetBlockStart:k.spaceT("insetBlockStart"),bottom:k.spaceT("bottom"),insetBlockEnd:k.spaceT("insetBlockEnd"),left:k.spaceT("left"),insetInlineStart:k.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:k.spaceT("right"),insetInlineEnd:k.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(ao,{insetStart:ao.insetInlineStart,insetEnd:ao.insetInlineEnd});const ca={boxShadow:k.shadows("boxShadow"),mixBlendMode:!0,blendMode:k.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:k.prop("backgroundBlendMode"),opacity:!0};Object.assign(ca,{shadow:ca.boxShadow});const Re={margin:k.spaceT("margin"),marginTop:k.spaceT("marginTop"),marginBlockStart:k.spaceT("marginBlockStart"),marginRight:k.spaceT("marginRight"),marginInlineEnd:k.spaceT("marginInlineEnd"),marginBottom:k.spaceT("marginBottom"),marginBlockEnd:k.spaceT("marginBlockEnd"),marginLeft:k.spaceT("marginLeft"),marginInlineStart:k.spaceT("marginInlineStart"),marginX:k.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:k.spaceT("marginInline"),marginY:k.spaceT(["marginTop","marginBottom"]),marginBlock:k.spaceT("marginBlock"),padding:k.space("padding"),paddingTop:k.space("paddingTop"),paddingBlockStart:k.space("paddingBlockStart"),paddingRight:k.space("paddingRight"),paddingBottom:k.space("paddingBottom"),paddingBlockEnd:k.space("paddingBlockEnd"),paddingLeft:k.space("paddingLeft"),paddingInlineStart:k.space("paddingInlineStart"),paddingInlineEnd:k.space("paddingInlineEnd"),paddingX:k.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:k.space("paddingInline"),paddingY:k.space(["paddingTop","paddingBottom"]),paddingBlock:k.space("paddingBlock")};Object.assign(Re,{m:Re.margin,mt:Re.marginTop,mr:Re.marginRight,me:Re.marginInlineEnd,marginEnd:Re.marginInlineEnd,mb:Re.marginBottom,ml:Re.marginLeft,ms:Re.marginInlineStart,marginStart:Re.marginInlineStart,mx:Re.marginX,my:Re.marginY,p:Re.padding,pt:Re.paddingTop,py:Re.paddingY,px:Re.paddingX,pb:Re.paddingBottom,pl:Re.paddingLeft,ps:Re.paddingInlineStart,paddingStart:Re.paddingInlineStart,pr:Re.paddingRight,pe:Re.paddingInlineEnd,paddingEnd:Re.paddingInlineEnd});const fb={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:k.spaceT("scrollMargin"),scrollMarginTop:k.spaceT("scrollMarginTop"),scrollMarginBottom:k.spaceT("scrollMarginBottom"),scrollMarginLeft:k.spaceT("scrollMarginLeft"),scrollMarginRight:k.spaceT("scrollMarginRight"),scrollMarginX:k.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:k.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:k.spaceT("scrollPadding"),scrollPaddingTop:k.spaceT("scrollPaddingTop"),scrollPaddingBottom:k.spaceT("scrollPaddingBottom"),scrollPaddingLeft:k.spaceT("scrollPaddingLeft"),scrollPaddingRight:k.spaceT("scrollPaddingRight"),scrollPaddingX:k.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:k.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},hb={fontFamily:k.prop("fontFamily","fonts"),fontSize:k.prop("fontSize","fontSizes",pe.px),fontWeight:k.prop("fontWeight","fontWeights"),lineHeight:k.prop("lineHeight","lineHeights"),letterSpacing:k.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},pb={textDecorationColor:k.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:k.shadows("textShadow")},mb={clipPath:!0,transform:k.propT("transform",pe.transform),transformOrigin:!0,translateX:k.spaceT("--chakra-translate-x"),translateY:k.spaceT("--chakra-translate-y"),skewX:k.degreeT("--chakra-skew-x"),skewY:k.degreeT("--chakra-skew-y"),scaleX:k.prop("--chakra-scale-x"),scaleY:k.prop("--chakra-scale-y"),scale:k.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:k.degreeT("--chakra-rotate")},gb={listStyleType:!0,listStylePosition:!0,listStylePos:k.prop("listStylePosition"),listStyleImage:!0,listStyleImg:k.prop("listStyleImage")},vb={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:k.prop("transitionDuration","transition.duration"),transitionProperty:k.prop("transitionProperty","transition.property"),transitionTimingFunction:k.prop("transitionTimingFunction","transition.easing")},la=_t({},Ti,be,nb,Pi,$t,ob,ib,sb,Gu,db,ao,ca,Re,fb,hb,pb,mb,gb,vb),yb=Object.assign({},Re,$t,Pi,Gu,ao),bb=Object.keys(yb),xb=[...Object.keys(la),...Hu],Sb={...la,...fn},wb=e=>e in Sb,Cb=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:o}=t.__breakpoints,i={};for(const s in e){let a=Bt(e[s],t);if(a==null)continue;if(a=ut(a)&&r(a)?n(a):a,!Array.isArray(a)){i[s]=a;continue}const c=a.slice(0,o.length).length;for(let l=0;l<c;l+=1){const u=o==null?void 0:o[l];if(!u){i[s]=a[l];continue}i[u]=i[u]||{},a[l]!=null&&(i[u][s]=a[l])}}return i};function kb(e){const t=[];let r="",n=!1;for(let o=0;o<e.length;o++){const i=e[o];i==="("?(n=!0,r+=i):i===")"?(n=!1,r+=i):i===","&&!n?(t.push(r),r=""):r+=i}return r=r.trim(),r&&t.push(r),t}function Tb(e){return/^var\(--.+\)$/.test(e)}const Pb=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!Tb(t),Eb=(e,t)=>{if(t==null)return t;const r=s=>{var a,c;return(c=(a=e.__cssMap)==null?void 0:a[s])==null?void 0:c.varRef},n=s=>r(s)??s,[o,i]=kb(t);return t=r(o)??n(i)??n(t),t};function _b(e){const{configs:t={},pseudos:r={},theme:n}=e,o=(i,s=!1)=>{var u;const a=Bt(i,n),c=Cb(a)(n);let l={};for(let d in c){const f=c[d];let h=Bt(f,n);d in r&&(d=r[d]),Pb(d,h)&&(h=Eb(n,h));let m=t[d];if(m===!0&&(m={property:d}),ut(h)){l[d]=l[d]??{},l[d]=_t({},l[d],o(h,!0));continue}let p=((u=m==null?void 0:m.transform)==null?void 0:u.call(m,h,n,a))??h;p=m!=null&&m.processResult?o(p,!0):p;const v=Bt(m==null?void 0:m.property,n);if(!s&&(m!=null&&m.static)){const S=Bt(m.static,n);l=_t({},l,S)}if(v&&Array.isArray(v)){for(const S of v)l[S]=p;continue}if(v){v==="&"&&ut(p)?l=_t({},l,p):l[v]=p;continue}if(ut(p)){l=_t({},l,p);continue}l[d]=p}return l};return o}const Yu=e=>t=>_b({theme:t,pseudos:fn,configs:la})(e);function rR(e){return e}function nR(e){return e}function De(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function Ab(e,t){if(Array.isArray(e))return e;if(ut(e))return t(e);if(e!=null)return[e]}function $b(e,t){for(let r=t+1;r<e.length;r++)if(e[r]!=null)return r;return-1}function Ob(e){const t=e.__breakpoints;return function(n,o,i,s){var f,h;if(!t)return;const a={},c=Ab(i,t.toArrayValue);if(!c)return a;const l=c.length,u=l===1,d=!!n.parts;for(let m=0;m<l;m++){const p=t.details[m],v=t.details[$b(c,m)],S=io(p.minW,v==null?void 0:v._minW),b=Bt((f=n[o])==null?void 0:f[c[m]],s);if(b){if(d){(h=n.parts)==null||h.forEach(x=>{_t(a,{[x]:u?b[x]:{[S]:b[x]}})});continue}if(!d){u?_t(a,b):a[S]=b;continue}a[S]=b}}return a}}function Mb(e){return t=>{const{variant:r,size:n,theme:o}=t,i=Ob(o);return _t({},Bt(e.baseStyle??{},t),i(e,"sizes",n,t),i(e,"variants",r,t))}}function vt(e){return so(e,["styleConfig","size","variant","colorScheme"])}function Ku(e){return ut(e)&&e.reference?e.reference:String(e)}const Ei=(e,...t)=>t.map(Ku).join(` ${e} `).replace(/calc/g,""),Xu=(...e)=>`calc(${Ei("+",...e)})`,Zu=(...e)=>`calc(${Ei("-",...e)})`,ua=(...e)=>`calc(${Ei("*",...e)})`,Ju=(...e)=>`calc(${Ei("/",...e)})`,Qu=e=>{const t=Ku(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:ua(t,-1)},cr=Object.assign(e=>({add:(...t)=>cr(Xu(e,...t)),subtract:(...t)=>cr(Zu(e,...t)),multiply:(...t)=>cr(ua(e,...t)),divide:(...t)=>cr(Ju(e,...t)),negate:()=>cr(Qu(e)),toString:()=>e.toString()}),{add:Xu,subtract:Zu,multiply:ua,divide:Ju,negate:Qu});function Ib(e,t="-"){return e.replace(/\s+/g,t)}function Db(e){const t=Ib(e.toString());return Fb(Rb(t))}function Rb(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function Fb(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function jb(e,t=""){return[t,e].filter(Boolean).join("-")}function Bb(e,t){return`var(${e}${t?`, ${t}`:""})`}function zb(e,t=""){return Db(`--${jb(e,t)}`)}function Q(e,t,r){const n=zb(e,r);return{variable:n,reference:Bb(n,t)}}function Lb(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[o,i]=n;r[o]=Q(`${e}-${o}`,i);continue}r[n]=Q(`${e}-${n}`)}return r}const Vb=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function Nb(e){return Cy(e,Vb)}function Wb(e){return e.semanticTokens}function Hb(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...o}=e;return o}function Ub(e){const t=Nb(e),r=Wb(e),n=i=>Hu.includes(i)||i==="default",o={};return Vu(t,(i,s)=>{i!=null&&(o[s.join(".")]={isSemantic:!1,value:i})}),Vu(r,(i,s)=>{i!=null&&(o[s.join(".")]={isSemantic:!0,value:i})},{stop:i=>Object.keys(i).every(n)}),o}function ed(e,t){return Q(String(e).replace(/\./g,"-"),void 0,t)}function qb(e){var s;const t=Ub(e),r=(s=e.config)==null?void 0:s.cssVarPrefix;let n={};const o={};function i(a,c){const u=[String(a).split(".")[0],c].join(".");if(!t[u])return c;const{reference:f}=ed(u,r);return f}for(const[a,c]of Object.entries(t)){const{isSemantic:l,value:u}=c,{variable:d,reference:f}=ed(a,r);if(!l){if(a.startsWith("space")){const m=a.split("."),[p,...v]=m,S=`${p}.-${v.join(".")}`,b=cr.negate(u),x=cr.negate(f);o[S]={value:b,var:d,varRef:x}}n[d]=u,o[a]={value:u,var:d,varRef:f};continue}const h=ut(u)?u:{default:u};n=_t(n,Object.entries(h).reduce((m,[p,v])=>{if(!v)return m;const S=i(a,`${v}`);if(p==="default")return m[d]=S,m;const b=(fn==null?void 0:fn[p])??p;return m[b]={[d]:S},m},{})),o[a]={value:f,var:d,varRef:f}}return{cssVars:n,cssMap:o}}function Gb(e){const t=Hb(e),{cssMap:r,cssVars:n}=qb(t);return Object.assign(t,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...n},__cssMap:r,__breakpoints:fy(t.breakpoints)}),t}function xe(e,t={}){let r=!1;function n(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...u){n();for(const d of u)t[d]=c(d);return xe(e,t)}function i(...u){for(const d of u)d in t||(t[d]=c(d));return xe(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.selector]))}function a(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.className]))}function c(u){const h=`chakra-${(["container","root"].includes(u??"")?[e]:[e,u]).filter(Boolean).join("__")}`;return{className:h,selector:`.${h}`,toString:()=>u}}return{parts:o,toPart:c,extend:i,selectors:s,classnames:a,get keys(){return Object.keys(t)},__type:{}}}const Yb=xe("accordion").parts("root","container","button","panel","icon"),Kb=xe("alert").parts("title","description","container","icon","spinner"),Xb=xe("avatar").parts("label","badge","container","excessLabel","group"),Zb=xe("breadcrumb").parts("link","item","container","separator");xe("button").parts();const Jb=xe("checkbox").parts("control","icon","container","label");xe("progress").parts("track","filledTrack","label");const Qb=xe("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),e0=xe("editable").parts("preview","input","textarea"),t0=xe("form").parts("container","requiredIndicator","helperText"),r0=xe("formError").parts("text","icon"),n0=xe("input").parts("addon","field","element","group"),o0=xe("list").parts("container","item","icon"),i0=xe("menu").parts("button","list","item","groupTitle","icon","command","divider"),s0=xe("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),a0=xe("numberinput").parts("root","field","stepperGroup","stepper");xe("pininput").parts("field");const c0=xe("popover").parts("content","header","body","footer","popper","arrow","closeButton"),l0=xe("progress").parts("label","filledTrack","track"),u0=xe("radio").parts("container","control","label"),d0=xe("select").parts("field","icon"),f0=xe("slider").parts("container","track","thumb","filledTrack","mark"),h0=xe("stat").parts("container","label","helpText","number","icon"),p0=xe("switch").parts("container","track","thumb","label"),m0=xe("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),g0=xe("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),v0=xe("tag").parts("container","label","closeButton"),y0=xe("card").parts("container","header","body","footer");xe("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:b0,defineMultiStyleConfig:x0}=De(Yb.keys),S0={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},w0={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},C0={pt:"2",px:"4",pb:"5"},k0={fontSize:"1.25em"},T0=b0({container:S0,button:w0,panel:C0,icon:k0}),P0=x0({baseStyle:T0});function Vr(e,t,r){return Math.min(Math.max(e,r),t)}class E0 extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var co=E0;function da(e){if(typeof e!="string")throw new co(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=R0.test(e)?$0(e):e;const r=O0.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(a=>parseInt(lo(a,2),16)),parseInt(lo(s[3]||"f",2),16)/255]}const n=M0.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,16)),parseInt(s[3]||"ff",16)/255]}const o=I0.exec(t);if(o){const s=Array.from(o).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,10)),parseFloat(s[3]||"1")]}const i=D0.exec(t);if(i){const[s,a,c,l]=Array.from(i).slice(1).map(parseFloat);if(Vr(0,100,a)!==a)throw new co(e);if(Vr(0,100,c)!==c)throw new co(e);return[...F0(s,a,c),Number.isNaN(l)?1:l]}throw new co(e)}function _0(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0)%2341}const td=e=>parseInt(e.replace(/_/g,""),36),A0="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const r=td(t.substring(0,3)),n=td(t.substring(3)).toString(16);let o="";for(let i=0;i<6-n.length;i++)o+="0";return e[r]=`${o}${n}`,e},{});function $0(e){const t=e.toLowerCase().trim(),r=A0[_0(t)];if(!r)throw new co(e);return`#${r}`}const lo=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),O0=new RegExp(`^#${lo("([a-f0-9])",3)}([a-f0-9])?$`,"i"),M0=new RegExp(`^#${lo("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),I0=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${lo(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),D0=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,R0=/^[a-z]+$/i,rd=e=>Math.round(e*255),F0=(e,t,r)=>{let n=r/100;if(t===0)return[n,n,n].map(rd);const o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*(t/100),s=i*(1-Math.abs(o%2-1));let a=0,c=0,l=0;o>=0&&o<1?(a=i,c=s):o>=1&&o<2?(a=s,c=i):o>=2&&o<3?(c=i,l=s):o>=3&&o<4?(c=s,l=i):o>=4&&o<5?(a=s,l=i):o>=5&&o<6&&(a=i,l=s);const u=n-i/2,d=a+u,f=c+u,h=l+u;return[d,f,h].map(rd)};function j0(e,t,r,n){return`rgba(${Vr(0,255,e).toFixed()}, ${Vr(0,255,t).toFixed()}, ${Vr(0,255,r).toFixed()}, ${parseFloat(Vr(0,1,n).toFixed(3))})`}function B0(e,t){const[r,n,o,i]=da(e);return j0(r,n,o,i-t)}function z0(e){const[t,r,n,o]=da(e);let i=s=>{const a=Vr(0,255,s).toString(16);return a.length===1?`0${a}`:a};return`#${i(t)}${i(r)}${i(n)}${o<1?i(Math.round(o*255)):""}`}const L0=e=>Object.keys(e).length===0;function V0(e,t,r,n,o){for(t=t.split?t.split("."):t,n=0;n<t.length;n++)e=e?e[t[n]]:o;return e===o?r:e}const at=(e,t,r)=>{const n=V0(e,`colors.${t}`,t);try{return z0(n),n}catch{return"#000000"}},N0=e=>{const[t,r,n]=da(e);return(t*299+r*587+n*114)/1e3},W0=e=>t=>{const r=at(t,e);return N0(r)<128?"dark":"light"},H0=e=>t=>W0(e)(t)==="dark",hn=(e,t)=>r=>{const n=at(r,e);return B0(n,1-t)};function nd(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
31
+ 45deg,
32
+ ${t} 25%,
33
+ transparent 25%,
34
+ transparent 50%,
35
+ ${t} 50%,
36
+ ${t} 75%,
37
+ transparent 75%,
38
+ transparent
39
+ )`,backgroundSize:`${e} ${e}`}}const U0=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function q0(e){const t=U0();return!e||L0(e)?t:e.string&&e.colors?Y0(e.string,e.colors):e.string&&!e.colors?G0(e.string):e.colors&&!e.string?K0(e.colors):t}function G0(e){let t=0;if(e.length===0)return t.toString();for(let n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t),t=t&t;let r="#";for(let n=0;n<3;n+=1){const o=t>>n*8&255;r+=`00${o.toString(16)}`.substr(-2)}return r}function Y0(e,t){let r=0;if(e.length===0)return t[0];for(let n=0;n<e.length;n+=1)r=e.charCodeAt(n)+((r<<5)-r),r=r&r;return r=(r%t.length+t.length)%t.length,t[r]}function K0(e){return e[Math.floor(Math.random()*e.length)]}function ee(e,t){return r=>r.colorMode==="dark"?t:e}function fa(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?t==="vertical"?r:n:{}}function od(e){return ut(e)&&e.reference?e.reference:String(e)}const _i=(e,...t)=>t.map(od).join(` ${e} `).replace(/calc/g,""),id=(...e)=>`calc(${_i("+",...e)})`,sd=(...e)=>`calc(${_i("-",...e)})`,ha=(...e)=>`calc(${_i("*",...e)})`,ad=(...e)=>`calc(${_i("/",...e)})`,cd=e=>{const t=od(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:ha(t,-1)},lr=Object.assign(e=>({add:(...t)=>lr(id(e,...t)),subtract:(...t)=>lr(sd(e,...t)),multiply:(...t)=>lr(ha(e,...t)),divide:(...t)=>lr(ad(e,...t)),negate:()=>lr(cd(e)),toString:()=>e.toString()}),{add:id,subtract:sd,multiply:ha,divide:ad,negate:cd});function X0(e){return!Number.isInteger(parseFloat(e.toString()))}function Z0(e,t="-"){return e.replace(/\s+/g,t)}function ld(e){const t=Z0(e.toString());return t.includes("\\.")?e:X0(e)?t.replace(".","\\."):e}function J0(e,t=""){return[t,ld(e)].filter(Boolean).join("-")}function Q0(e,t){return`var(${ld(e)}${t?`, ${t}`:""})`}function ex(e,t=""){return`--${J0(e,t)}`}function Xe(e,t){const r=ex(e,t==null?void 0:t.prefix);return{variable:r,reference:Q0(r,tx(t==null?void 0:t.fallback))}}function tx(e){return e==null?void 0:e.reference}const{definePartsStyle:uo,defineMultiStyleConfig:rx}=De(Kb.keys),yt=Q("alert-fg"),ur=Q("alert-bg"),nx=uo({container:{bg:ur.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:yt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:yt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function pa(e){const{theme:t,colorScheme:r}=e,n=hn(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}const ox=uo(e=>{const{colorScheme:t}=e,r=pa(e);return{container:{[yt.variable]:`colors.${t}.600`,[ur.variable]:r.light,_dark:{[yt.variable]:`colors.${t}.200`,[ur.variable]:r.dark}}}}),ix=uo(e=>{const{colorScheme:t}=e,r=pa(e);return{container:{[yt.variable]:`colors.${t}.600`,[ur.variable]:r.light,_dark:{[yt.variable]:`colors.${t}.200`,[ur.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:yt.reference}}}),sx=uo(e=>{const{colorScheme:t}=e,r=pa(e);return{container:{[yt.variable]:`colors.${t}.600`,[ur.variable]:r.light,_dark:{[yt.variable]:`colors.${t}.200`,[ur.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:yt.reference}}}),ax=uo(e=>{const{colorScheme:t}=e;return{container:{[yt.variable]:"colors.white",[ur.variable]:`colors.${t}.600`,_dark:{[yt.variable]:"colors.gray.900",[ur.variable]:`colors.${t}.200`},color:yt.reference}}}),cx=rx({baseStyle:nx,variants:{subtle:ox,"left-accent":ix,"top-accent":sx,solid:ax},defaultProps:{variant:"subtle",colorScheme:"blue"}}),ud={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},dd={...ud,...{max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}},lx=e=>typeof e=="function";function ct(e,...t){return lx(e)?e(...t):e}const{definePartsStyle:fd,defineMultiStyleConfig:ux}=De(Xb.keys),pn=Q("avatar-border-color"),fo=Q("avatar-bg"),ho=Q("avatar-font-size"),mn=Q("avatar-size"),dx={borderRadius:"full",border:"0.2em solid",borderColor:pn.reference,[pn.variable]:"white",_dark:{[pn.variable]:"colors.gray.800"}},fx={bg:fo.reference,fontSize:ho.reference,width:mn.reference,height:mn.reference,lineHeight:"1",[fo.variable]:"colors.gray.200",_dark:{[fo.variable]:"colors.whiteAlpha.400"}},hx=e=>{const{name:t,theme:r}=e,n=t?q0({string:t}):"colors.gray.400",o=H0(n)(r);let i="white";return o||(i="gray.800"),{bg:fo.reference,fontSize:ho.reference,color:i,borderColor:pn.reference,verticalAlign:"top",width:mn.reference,height:mn.reference,"&:not([data-loaded])":{[fo.variable]:n},[pn.variable]:"colors.white",_dark:{[pn.variable]:"colors.gray.800"}}},px={fontSize:ho.reference,lineHeight:"1"},mx=fd(e=>({badge:ct(dx,e),excessLabel:ct(fx,e),container:ct(hx,e),label:px}));function kr(e){const t=e!=="100%"?dd[e]:void 0;return fd({container:{[mn.variable]:t??e,[ho.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[mn.variable]:t??e,[ho.variable]:`calc(${t??e} / 2.5)`}})}const gx={"2xs":kr(4),xs:kr(6),sm:kr(8),md:kr(12),lg:kr(16),xl:kr(24),"2xl":kr(32),full:kr("100%")},vx=ux({baseStyle:mx,sizes:gx,defaultProps:{size:"md"}}),qe=Lb("badge",["bg","color","shadow"]),yx={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:qe.bg.reference,color:qe.color.reference,boxShadow:qe.shadow.reference},bx=e=>{const{colorScheme:t,theme:r}=e,n=hn(`${t}.500`,.6)(r);return{[qe.bg.variable]:`colors.${t}.500`,[qe.color.variable]:"colors.white",_dark:{[qe.bg.variable]:n,[qe.color.variable]:"colors.whiteAlpha.800"}}},xx=e=>{const{colorScheme:t,theme:r}=e,n=hn(`${t}.200`,.16)(r);return{[qe.bg.variable]:`colors.${t}.100`,[qe.color.variable]:`colors.${t}.800`,_dark:{[qe.bg.variable]:n,[qe.color.variable]:`colors.${t}.200`}}},Sx=e=>{const{colorScheme:t,theme:r}=e,n=hn(`${t}.200`,.8)(r);return{[qe.color.variable]:`colors.${t}.500`,_dark:{[qe.color.variable]:n},[qe.shadow.variable]:`inset 0 0 0px 1px ${qe.color.reference}`}},po={baseStyle:yx,variants:{solid:bx,subtle:xx,outline:Sx},defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:wx,definePartsStyle:Cx}=De(Zb.keys),ma=Q("breadcrumb-link-decor"),kx={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:ma.reference,[ma.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[ma.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},Tx=Cx({link:kx}),Px=wx({baseStyle:Tx}),Ex={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},hd=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:ee("gray.800","whiteAlpha.900")(e),_hover:{bg:ee("gray.100","whiteAlpha.200")(e)},_active:{bg:ee("gray.200","whiteAlpha.300")(e)}};const n=hn(`${t}.200`,.12)(r),o=hn(`${t}.200`,.24)(r);return{color:ee(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:ee(`${t}.50`,n)(e)},_active:{bg:ee(`${t}.100`,o)(e)}}},_x=e=>{const{colorScheme:t}=e,r=ee("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...ct(hd,e)}},Ax={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},$x=e=>{const{colorScheme:t}=e;if(t==="gray"){const a=ee("gray.100","whiteAlpha.200")(e);return{bg:a,color:ee("gray.800","whiteAlpha.900")(e),_hover:{bg:ee("gray.200","whiteAlpha.300")(e),_disabled:{bg:a}},_active:{bg:ee("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${t}.500`,color:n="white",hoverBg:o=`${t}.600`,activeBg:i=`${t}.700`}=Ax[t]??{},s=ee(r,`${t}.200`)(e);return{bg:s,color:ee(n,"gray.800")(e),_hover:{bg:ee(o,`${t}.300`)(e),_disabled:{bg:s}},_active:{bg:ee(i,`${t}.400`)(e)}}},Ox=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:ee(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:ee(`${t}.700`,`${t}.500`)(e)}}},Mx={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},Ix={ghost:hd,outline:_x,solid:$x,link:Ox,unstyled:Mx},Dx={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},Rx={baseStyle:Ex,variants:Ix,sizes:Dx,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Nr,defineMultiStyleConfig:Fx}=De(y0.keys),Ai=Q("card-bg"),dr=Q("card-padding"),pd=Q("card-shadow"),$i=Q("card-radius"),md=Q("card-border-width","0"),gd=Q("card-border-color"),jx=Nr({container:{[Ai.variable]:"colors.chakra-body-bg",backgroundColor:Ai.reference,boxShadow:pd.reference,borderRadius:$i.reference,color:"chakra-body-text",borderWidth:md.reference,borderColor:gd.reference},body:{padding:dr.reference,flex:"1 1 0%"},header:{padding:dr.reference},footer:{padding:dr.reference}}),Bx={sm:Nr({container:{[$i.variable]:"radii.base",[dr.variable]:"space.3"}}),md:Nr({container:{[$i.variable]:"radii.md",[dr.variable]:"space.5"}}),lg:Nr({container:{[$i.variable]:"radii.xl",[dr.variable]:"space.7"}})},zx={elevated:Nr({container:{[pd.variable]:"shadows.base",_dark:{[Ai.variable]:"colors.gray.700"}}}),outline:Nr({container:{[md.variable]:"1px",[gd.variable]:"colors.chakra-border-color"}}),filled:Nr({container:{[Ai.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[dr.variable]:0},header:{[dr.variable]:0},footer:{[dr.variable]:0}}},Lx=Fx({baseStyle:jx,variants:zx,sizes:Bx,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:Oi,defineMultiStyleConfig:Vx}=De(Jb.keys),mo=Q("checkbox-size"),Nx=e=>{const{colorScheme:t}=e;return{w:mo.reference,h:mo.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:ee(`${t}.500`,`${t}.200`)(e),borderColor:ee(`${t}.500`,`${t}.200`)(e),color:ee("white","gray.900")(e),_hover:{bg:ee(`${t}.600`,`${t}.300`)(e),borderColor:ee(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:ee("gray.200","transparent")(e),bg:ee("gray.200","whiteAlpha.300")(e),color:ee("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:ee(`${t}.500`,`${t}.200`)(e),borderColor:ee(`${t}.500`,`${t}.200`)(e),color:ee("white","gray.900")(e)},_disabled:{bg:ee("gray.100","whiteAlpha.100")(e),borderColor:ee("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:ee("red.500","red.300")(e)}}},Wx={_disabled:{cursor:"not-allowed"}},Hx={userSelect:"none",_disabled:{opacity:.4}},Ux={transitionProperty:"transform",transitionDuration:"normal"},qx=Oi(e=>({icon:Ux,container:Wx,control:ct(Nx,e),label:Hx})),Gx={sm:Oi({control:{[mo.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Oi({control:{[mo.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Oi({control:{[mo.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Tr=Vx({baseStyle:qx,sizes:Gx,defaultProps:{size:"md",colorScheme:"blue"}}),go=Xe("close-button-size"),vo=Xe("close-button-bg"),Yx={w:[go.reference],h:[go.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[vo.variable]:"colors.blackAlpha.100",_dark:{[vo.variable]:"colors.whiteAlpha.100"}},_active:{[vo.variable]:"colors.blackAlpha.200",_dark:{[vo.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:vo.reference},Kx={lg:{[go.variable]:"sizes.10",fontSize:"md"},md:{[go.variable]:"sizes.8",fontSize:"xs"},sm:{[go.variable]:"sizes.6",fontSize:"2xs"}},Xx={baseStyle:Yx,sizes:Kx,defaultProps:{size:"md"}},{variants:Zx,defaultProps:Jx}=po,Qx={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:qe.bg.reference,color:qe.color.reference,boxShadow:qe.shadow.reference},eS={baseStyle:Qx,variants:Zx,defaultProps:Jx},tS={w:"100%",mx:"auto",maxW:"prose",px:"4"},rS={baseStyle:tS},nS={opacity:.6,borderColor:"inherit"},oS={borderStyle:"solid"},iS={borderStyle:"dashed"},sS={baseStyle:nS,variants:{solid:oS,dashed:iS},defaultProps:{variant:"solid"}},{definePartsStyle:ga,defineMultiStyleConfig:aS}=De(Qb.keys),va=Q("drawer-bg"),ya=Q("drawer-box-shadow");function gn(e){return ga(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const cS={bg:"blackAlpha.600",zIndex:"modal"},lS={display:"flex",zIndex:"modal",justifyContent:"center"},uS=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[va.variable]:"colors.white",[ya.variable]:"shadows.lg",_dark:{[va.variable]:"colors.gray.700",[ya.variable]:"shadows.dark-lg"},bg:va.reference,boxShadow:ya.reference}},dS={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},fS={position:"absolute",top:"2",insetEnd:"3"},hS={px:"6",py:"2",flex:"1",overflow:"auto"},pS={px:"6",py:"4"},mS=ga(e=>({overlay:cS,dialogContainer:lS,dialog:ct(uS,e),header:dS,closeButton:fS,body:hS,footer:pS})),gS={xs:gn("xs"),sm:gn("md"),md:gn("lg"),lg:gn("2xl"),xl:gn("4xl"),full:gn("full")},vS=aS({baseStyle:mS,sizes:gS,defaultProps:{size:"xs"}}),{definePartsStyle:yS,defineMultiStyleConfig:bS}=De(e0.keys),xS={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},SS={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},wS={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},CS=yS({preview:xS,input:SS,textarea:wS}),kS=bS({baseStyle:CS}),{definePartsStyle:TS,defineMultiStyleConfig:PS}=De(t0.keys),vn=Q("form-control-color"),ES={marginStart:"1",[vn.variable]:"colors.red.500",_dark:{[vn.variable]:"colors.red.300"},color:vn.reference},_S={mt:"2",[vn.variable]:"colors.gray.600",_dark:{[vn.variable]:"colors.whiteAlpha.600"},color:vn.reference,lineHeight:"normal",fontSize:"sm"},AS=TS({container:{width:"100%",position:"relative"},requiredIndicator:ES,helperText:_S}),$S=PS({baseStyle:AS}),{definePartsStyle:OS,defineMultiStyleConfig:MS}=De(r0.keys),yn=Q("form-error-color"),IS={[yn.variable]:"colors.red.500",_dark:{[yn.variable]:"colors.red.300"},color:yn.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},DS={marginEnd:"0.5em",[yn.variable]:"colors.red.500",_dark:{[yn.variable]:"colors.red.300"},color:yn.reference},RS=OS({text:IS,icon:DS}),FS=MS({baseStyle:RS}),jS={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},BS={baseStyle:jS},zS={fontFamily:"heading",fontWeight:"bold"},LS={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},VS={baseStyle:zS,sizes:LS,defaultProps:{size:"xl"}},{definePartsStyle:fr,defineMultiStyleConfig:NS}=De(n0.keys),bn=Q("input-height"),xn=Q("input-font-size"),Sn=Q("input-padding"),wn=Q("input-border-radius"),WS=fr({addon:{height:bn.reference,fontSize:xn.reference,px:Sn.reference,borderRadius:wn.reference},field:{width:"100%",height:bn.reference,fontSize:xn.reference,px:Sn.reference,borderRadius:wn.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Pr={lg:{[xn.variable]:"fontSizes.lg",[Sn.variable]:"space.4",[wn.variable]:"radii.md",[bn.variable]:"sizes.12"},md:{[xn.variable]:"fontSizes.md",[Sn.variable]:"space.4",[wn.variable]:"radii.md",[bn.variable]:"sizes.10"},sm:{[xn.variable]:"fontSizes.sm",[Sn.variable]:"space.3",[wn.variable]:"radii.sm",[bn.variable]:"sizes.8"},xs:{[xn.variable]:"fontSizes.xs",[Sn.variable]:"space.2",[wn.variable]:"radii.sm",[bn.variable]:"sizes.6"}},HS={lg:fr({field:Pr.lg,group:Pr.lg}),md:fr({field:Pr.md,group:Pr.md}),sm:fr({field:Pr.sm,group:Pr.sm}),xs:fr({field:Pr.xs,group:Pr.xs})};function ba(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||ee("blue.500","blue.300")(e),errorBorderColor:r||ee("red.500","red.300")(e)}}const US=fr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=ba(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:ee("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:at(t,n),boxShadow:`0 0 0 1px ${at(t,n)}`},_focusVisible:{zIndex:1,borderColor:at(t,r),boxShadow:`0 0 0 1px ${at(t,r)}`}},addon:{border:"1px solid",borderColor:ee("inherit","whiteAlpha.50")(e),bg:ee("gray.100","whiteAlpha.300")(e)}}}),qS=fr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=ba(e);return{field:{border:"2px solid",borderColor:"transparent",bg:ee("gray.100","whiteAlpha.50")(e),_hover:{bg:ee("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:at(t,n)},_focusVisible:{bg:"transparent",borderColor:at(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:ee("gray.100","whiteAlpha.50")(e)}}}),GS=fr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=ba(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:at(t,n),boxShadow:`0px 1px 0px 0px ${at(t,n)}`},_focusVisible:{borderColor:at(t,r),boxShadow:`0px 1px 0px 0px ${at(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),YS=fr({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),Se=NS({baseStyle:WS,sizes:HS,variants:{outline:US,filled:qS,flushed:GS,unstyled:YS},defaultProps:{size:"md",variant:"outline"}}),xa=Q("kbd-bg"),KS={[xa.variable]:"colors.gray.100",_dark:{[xa.variable]:"colors.whiteAlpha.100"},bg:xa.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},XS={baseStyle:KS},ZS={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},JS={baseStyle:ZS},{defineMultiStyleConfig:QS,definePartsStyle:ew}=De(o0.keys),tw={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},rw=ew({icon:tw}),nw=QS({baseStyle:rw}),{defineMultiStyleConfig:ow,definePartsStyle:iw}=De(i0.keys),Yt=Q("menu-bg"),Sa=Q("menu-shadow"),sw={[Yt.variable]:"#fff",[Sa.variable]:"shadows.sm",_dark:{[Yt.variable]:"colors.gray.700",[Sa.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:Yt.reference,boxShadow:Sa.reference},aw={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Yt.variable]:"colors.gray.100",_dark:{[Yt.variable]:"colors.whiteAlpha.100"}},_active:{[Yt.variable]:"colors.gray.200",_dark:{[Yt.variable]:"colors.whiteAlpha.200"}},_expanded:{[Yt.variable]:"colors.gray.100",_dark:{[Yt.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Yt.reference},cw={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},lw={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},uw={opacity:.6},dw={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},fw={transitionProperty:"common",transitionDuration:"normal"},hw=iw({button:fw,list:sw,item:aw,groupTitle:cw,icon:lw,command:uw,divider:dw}),pw=ow({baseStyle:hw}),{defineMultiStyleConfig:mw,definePartsStyle:wa}=De(s0.keys),Ca=Q("modal-bg"),ka=Q("modal-shadow"),gw={bg:"blackAlpha.600",zIndex:"modal"},vw=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:r==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},yw=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:r==="inside"?"calc(100% - 7.5rem)":void 0,[Ca.variable]:"colors.white",[ka.variable]:"shadows.lg",_dark:{[Ca.variable]:"colors.gray.700",[ka.variable]:"shadows.dark-lg"},bg:Ca.reference,boxShadow:ka.reference}},bw={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},xw={position:"absolute",top:"2",insetEnd:"3"},Sw=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},ww={px:"6",py:"4"},Cw=wa(e=>({overlay:gw,dialogContainer:ct(vw,e),dialog:ct(yw,e),header:bw,closeButton:xw,body:ct(Sw,e),footer:ww}));function zt(e){return wa(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const kw={xs:zt("xs"),sm:zt("sm"),md:zt("md"),lg:zt("lg"),xl:zt("xl"),"2xl":zt("2xl"),"3xl":zt("3xl"),"4xl":zt("4xl"),"5xl":zt("5xl"),"6xl":zt("6xl"),full:zt("full")},Tw=mw({baseStyle:Cw,sizes:kw,defaultProps:{size:"md"}}),vd={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},{defineMultiStyleConfig:Pw,definePartsStyle:yd}=De(a0.keys),Ta=Xe("number-input-stepper-width"),bd=Xe("number-input-input-padding"),Ew=lr(Ta).add("0.5rem").toString(),Pa=Xe("number-input-bg"),Ea=Xe("number-input-color"),_a=Xe("number-input-border-color"),_w={[Ta.variable]:"sizes.6",[bd.variable]:Ew},Aw=e=>{var t;return((t=ct(Se.baseStyle,e))==null?void 0:t.field)??{}},$w={width:Ta.reference},Ow={borderStart:"1px solid",borderStartColor:_a.reference,color:Ea.reference,bg:Pa.reference,[Ea.variable]:"colors.chakra-body-text",[_a.variable]:"colors.chakra-border-color",_dark:{[Ea.variable]:"colors.whiteAlpha.800",[_a.variable]:"colors.whiteAlpha.300"},_active:{[Pa.variable]:"colors.gray.200",_dark:{[Pa.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},Mw=yd(e=>({root:_w,field:ct(Aw,e)??{},stepperGroup:$w,stepper:Ow}));function Mi(e){var i,s;const t=(i=Se.sizes)==null?void 0:i[e],r={lg:"md",md:"md",sm:"sm",xs:"sm"},n=((s=t.field)==null?void 0:s.fontSize)??"md",o=vd.fontSizes[n];return yd({field:{...t.field,paddingInlineEnd:bd.reference,verticalAlign:"top"},stepper:{fontSize:lr(o).multiply(.75).toString(),_first:{borderTopEndRadius:r[e]},_last:{borderBottomEndRadius:r[e],mt:"-1px",borderTopWidth:1}}})}const Iw={xs:Mi("xs"),sm:Mi("sm"),md:Mi("md"),lg:Mi("lg")},Dw=Pw({baseStyle:Mw,sizes:Iw,variants:Se.variants,defaultProps:Se.defaultProps}),Rw={...(_v=Se.baseStyle)==null?void 0:_v.field,textAlign:"center"},Fw={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},jw={outline:e=>{var t,r;return((r=ct((t=Se.variants)==null?void 0:t.outline,e))==null?void 0:r.field)??{}},flushed:e=>{var t,r;return((r=ct((t=Se.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)??{}},filled:e=>{var t,r;return((r=ct((t=Se.variants)==null?void 0:t.filled,e))==null?void 0:r.field)??{}},unstyled:((Av=Se.variants)==null?void 0:Av.unstyled.field)??{}},Bw={baseStyle:Rw,sizes:Fw,variants:jw,defaultProps:Se.defaultProps},{defineMultiStyleConfig:zw,definePartsStyle:Lw}=De(c0.keys),Ii=Xe("popper-bg"),Vw=Xe("popper-arrow-bg"),xd=Xe("popper-arrow-shadow-color"),Nw={zIndex:"popover"},Ww={[Ii.variable]:"colors.white",bg:Ii.reference,[Vw.variable]:Ii.reference,[xd.variable]:"colors.gray.200",_dark:{[Ii.variable]:"colors.gray.700",[xd.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},Hw={px:3,py:2,borderBottomWidth:"1px"},Uw={px:3,py:2},qw={px:3,py:2,borderTopWidth:"1px"},Gw={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},Yw=Lw({popper:Nw,content:Ww,header:Hw,body:Uw,footer:qw,closeButton:Gw}),Kw=zw({baseStyle:Yw}),{defineMultiStyleConfig:Xw,definePartsStyle:yo}=De(l0.keys),Zw=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:o}=e,i=ee(nd(),nd("1rem","rgba(0,0,0,0.1)"))(e),s=ee(`${t}.500`,`${t}.200`)(e),a=`linear-gradient(
40
+ to right,
41
+ transparent 0%,
42
+ ${at(r,s)} 50%,
43
+ transparent 100%
44
+ )`;return{...!n&&o&&i,...n?{bgImage:a}:{bgColor:s}}},Jw={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},Qw=e=>({bg:ee("gray.100","whiteAlpha.300")(e)}),e1=e=>({transitionProperty:"common",transitionDuration:"slow",...Zw(e)}),t1=yo(e=>({label:Jw,filledTrack:e1(e),track:Qw(e)})),r1={xs:yo({track:{h:"1"}}),sm:yo({track:{h:"2"}}),md:yo({track:{h:"3"}}),lg:yo({track:{h:"4"}})},n1=Xw({sizes:r1,baseStyle:t1,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:o1,definePartsStyle:Di}=De(u0.keys),i1=e=>{var r;const t=(r=ct(Tr.baseStyle,e))==null?void 0:r.control;return{...t,borderRadius:"full",_checked:{...t==null?void 0:t._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},s1=Di(e=>{var t,r;return{label:(t=Tr.baseStyle)==null?void 0:t.call(Tr,e).label,container:(r=Tr.baseStyle)==null?void 0:r.call(Tr,e).container,control:i1(e)}}),a1={md:Di({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Di({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Di({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},c1=o1({baseStyle:s1,sizes:a1,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:l1,definePartsStyle:u1}=De(d0.keys),Ri=Q("select-bg"),d1={...($v=Se.baseStyle)==null?void 0:$v.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Ri.reference,[Ri.variable]:"colors.white",_dark:{[Ri.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Ri.reference}},f1={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},h1=u1({field:d1,icon:f1}),Fi={paddingInlineEnd:"8"},p1={lg:{...(Ov=Se.sizes)==null?void 0:Ov.lg,field:{...(Mv=Se.sizes)==null?void 0:Mv.lg.field,...Fi}},md:{...(Iv=Se.sizes)==null?void 0:Iv.md,field:{...(Dv=Se.sizes)==null?void 0:Dv.md.field,...Fi}},sm:{...(Rv=Se.sizes)==null?void 0:Rv.sm,field:{...(Fv=Se.sizes)==null?void 0:Fv.sm.field,...Fi}},xs:{...(jv=Se.sizes)==null?void 0:jv.xs,field:{...(Bv=Se.sizes)==null?void 0:Bv.xs.field,...Fi},icon:{insetEnd:"1"}}},m1=l1({baseStyle:h1,sizes:p1,variants:Se.variants,defaultProps:Se.defaultProps}),Aa=Q("skeleton-start-color"),$a=Q("skeleton-end-color"),g1={[Aa.variable]:"colors.gray.100",[$a.variable]:"colors.gray.400",_dark:{[Aa.variable]:"colors.gray.800",[$a.variable]:"colors.gray.600"},background:Aa.reference,borderColor:$a.reference,opacity:.7,borderRadius:"sm"},v1={baseStyle:g1},Oa=Q("skip-link-bg"),y1={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Oa.variable]:"colors.white",_dark:{[Oa.variable]:"colors.gray.700"},bg:Oa.reference}},b1={baseStyle:y1},{defineMultiStyleConfig:x1,definePartsStyle:ji}=De(f0.keys),Wr=Q("slider-thumb-size"),bo=Q("slider-track-size"),Er=Q("slider-bg"),S1=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...fa({orientation:t,vertical:{h:"100%",px:cr(Wr.reference).divide(2).toString()},horizontal:{w:"100%",py:cr(Wr.reference).divide(2).toString()}})}},w1=e=>({...fa({orientation:e.orientation,horizontal:{h:bo.reference},vertical:{w:bo.reference}}),overflow:"hidden",borderRadius:"sm",[Er.variable]:"colors.gray.200",_dark:{[Er.variable]:"colors.whiteAlpha.200"},_disabled:{[Er.variable]:"colors.gray.300",_dark:{[Er.variable]:"colors.whiteAlpha.300"}},bg:Er.reference}),C1=e=>{const{orientation:t}=e;return{...fa({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:Wr.reference,h:Wr.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},k1=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Er.variable]:`colors.${t}.500`,_dark:{[Er.variable]:`colors.${t}.200`},bg:Er.reference}},T1=ji(e=>({container:S1(e),track:w1(e),thumb:C1(e),filledTrack:k1(e)})),P1=ji({container:{[Wr.variable]:"sizes.4",[bo.variable]:"sizes.1"}}),E1=ji({container:{[Wr.variable]:"sizes.3.5",[bo.variable]:"sizes.1"}}),_1=ji({container:{[Wr.variable]:"sizes.2.5",[bo.variable]:"sizes.0.5"}}),A1=x1({baseStyle:T1,sizes:{lg:P1,md:E1,sm:_1},defaultProps:{size:"md",colorScheme:"blue"}}),Hr=Xe("spinner-size"),$1={width:[Hr.reference],height:[Hr.reference]},O1={xs:{[Hr.variable]:"sizes.3"},sm:{[Hr.variable]:"sizes.4"},md:{[Hr.variable]:"sizes.6"},lg:{[Hr.variable]:"sizes.8"},xl:{[Hr.variable]:"sizes.12"}},M1={baseStyle:$1,sizes:O1,defaultProps:{size:"md"}},{defineMultiStyleConfig:I1,definePartsStyle:Sd}=De(h0.keys),D1={fontWeight:"medium"},R1={opacity:.8,marginBottom:"2"},F1={verticalAlign:"baseline",fontWeight:"semibold"},j1={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},B1=Sd({container:{},label:D1,helpText:R1,number:F1,icon:j1}),z1={md:Sd({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},L1=I1({baseStyle:B1,sizes:z1,defaultProps:{size:"md"}}),{defineMultiStyleConfig:V1,definePartsStyle:xo}=De(["stepper","step","title","description","indicator","separator","icon","number"]),hr=Q("stepper-indicator-size"),Cn=Q("stepper-icon-size"),kn=Q("stepper-title-font-size"),So=Q("stepper-description-font-size"),wo=Q("stepper-accent-color"),N1=xo(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[wo.variable]:`colors.${e}.500`,_dark:{[wo.variable]:`colors.${e}.200`}},title:{fontSize:kn.reference,fontWeight:"medium"},description:{fontSize:So.reference,color:"chakra-subtle-text"},number:{fontSize:kn.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:Cn.reference,height:Cn.reference},indicator:{flexShrink:0,borderRadius:"full",width:hr.reference,height:hr.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:wo.reference},"&[data-status=complete]":{bg:wo.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:wo.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${hr.reference} - 8px)`,top:`calc(${hr.reference} + 4px)`,insetStart:`calc(${hr.reference} / 2 - 1px)`}}})),W1=V1({baseStyle:N1,sizes:{xs:xo({stepper:{[hr.variable]:"sizes.4",[Cn.variable]:"sizes.3",[kn.variable]:"fontSizes.xs",[So.variable]:"fontSizes.xs"}}),sm:xo({stepper:{[hr.variable]:"sizes.6",[Cn.variable]:"sizes.4",[kn.variable]:"fontSizes.sm",[So.variable]:"fontSizes.xs"}}),md:xo({stepper:{[hr.variable]:"sizes.8",[Cn.variable]:"sizes.5",[kn.variable]:"fontSizes.md",[So.variable]:"fontSizes.sm"}}),lg:xo({stepper:{[hr.variable]:"sizes.10",[Cn.variable]:"sizes.6",[kn.variable]:"fontSizes.lg",[So.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:H1,definePartsStyle:Bi}=De(p0.keys),Co=Xe("switch-track-width"),Ur=Xe("switch-track-height"),Ma=Xe("switch-track-diff"),U1=lr.subtract(Co,Ur),Ia=Xe("switch-thumb-x"),ko=Xe("switch-bg"),q1=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Co.reference],height:[Ur.reference],transitionProperty:"common",transitionDuration:"fast",[ko.variable]:"colors.gray.300",_dark:{[ko.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[ko.variable]:`colors.${t}.500`,_dark:{[ko.variable]:`colors.${t}.200`}},bg:ko.reference}},G1={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Ur.reference],height:[Ur.reference],_checked:{transform:`translateX(${Ia.reference})`}},Y1=Bi(e=>({container:{[Ma.variable]:U1,[Ia.variable]:Ma.reference,_rtl:{[Ia.variable]:lr(Ma).negate().toString()}},track:q1(e),thumb:G1})),K1={sm:Bi({container:{[Co.variable]:"1.375rem",[Ur.variable]:"sizes.3"}}),md:Bi({container:{[Co.variable]:"1.875rem",[Ur.variable]:"sizes.4"}}),lg:Bi({container:{[Co.variable]:"2.875rem",[Ur.variable]:"sizes.6"}})},X1=H1({baseStyle:Y1,sizes:K1,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Z1,definePartsStyle:Tn}=De(m0.keys),J1=Tn({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),zi={"&[data-is-numeric=true]":{textAlign:"end"}},Q1=Tn(e=>{const{colorScheme:t}=e;return{th:{color:ee("gray.600","gray.400")(e),borderBottom:"1px",borderColor:ee(`${t}.100`,`${t}.700`)(e),...zi},td:{borderBottom:"1px",borderColor:ee(`${t}.100`,`${t}.700`)(e),...zi},caption:{color:ee("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),eC=Tn(e=>{const{colorScheme:t}=e;return{th:{color:ee("gray.600","gray.400")(e),borderBottom:"1px",borderColor:ee(`${t}.100`,`${t}.700`)(e),...zi},td:{borderBottom:"1px",borderColor:ee(`${t}.100`,`${t}.700`)(e),...zi},caption:{color:ee("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:ee(`${t}.100`,`${t}.700`)(e)},td:{background:ee(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),tC={simple:Q1,striped:eC,unstyled:{}},rC={sm:Tn({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:Tn({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Tn({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},nC=Z1({baseStyle:J1,variants:tC,sizes:rC,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),ft=Q("tabs-color"),Lt=Q("tabs-bg"),Li=Q("tabs-border-color"),{defineMultiStyleConfig:oC,definePartsStyle:Kt}=De(g0.keys),iC=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},sC=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},aC=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},cC={p:4},lC=Kt(e=>({root:iC(e),tab:sC(e),tablist:aC(e),tabpanel:cC})),uC={sm:Kt({tab:{py:1,px:4,fontSize:"sm"}}),md:Kt({tab:{fontSize:"md",py:2,px:4}}),lg:Kt({tab:{fontSize:"lg",py:3,px:4}})},dC=Kt(e=>{const{colorScheme:t,orientation:r}=e,n=r==="vertical",o=n?"borderStart":"borderBottom",i=n?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[ft.variable]:`colors.${t}.600`,_dark:{[ft.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Lt.variable]:"colors.gray.200",_dark:{[Lt.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:ft.reference,bg:Lt.reference}}}),fC=Kt(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Li.variable]:"transparent",_selected:{[ft.variable]:`colors.${t}.600`,[Li.variable]:"colors.white",_dark:{[ft.variable]:`colors.${t}.300`,[Li.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Li.reference},color:ft.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),hC=Kt(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Lt.variable]:"colors.gray.50",_dark:{[Lt.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Lt.variable]:"colors.white",[ft.variable]:`colors.${t}.600`,_dark:{[Lt.variable]:"colors.gray.800",[ft.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:ft.reference,bg:Lt.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),pC=Kt(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:at(r,`${t}.700`),bg:at(r,`${t}.100`)}}}}),mC=Kt(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[ft.variable]:"colors.gray.600",_dark:{[ft.variable]:"inherit"},_selected:{[ft.variable]:"colors.white",[Lt.variable]:`colors.${t}.600`,_dark:{[ft.variable]:"colors.gray.800",[Lt.variable]:`colors.${t}.300`}},color:ft.reference,bg:Lt.reference}}}),gC=Kt({}),vC=oC({baseStyle:lC,sizes:uC,variants:{line:dC,enclosed:fC,"enclosed-colored":hC,"soft-rounded":pC,"solid-rounded":mC,unstyled:gC},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:yC,definePartsStyle:qr}=De(v0.keys),wd=Q("tag-bg"),Cd=Q("tag-color"),Da=Q("tag-shadow"),Vi=Q("tag-min-height"),Ni=Q("tag-min-width"),Wi=Q("tag-font-size"),Hi=Q("tag-padding-inline"),bC={fontWeight:"medium",lineHeight:1.2,outline:0,[Cd.variable]:qe.color.reference,[wd.variable]:qe.bg.reference,[Da.variable]:qe.shadow.reference,color:Cd.reference,bg:wd.reference,boxShadow:Da.reference,borderRadius:"md",minH:Vi.reference,minW:Ni.reference,fontSize:Wi.reference,px:Hi.reference,_focusVisible:{[Da.variable]:"shadows.outline"}},xC={lineHeight:1.2,overflow:"visible"},SC={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},wC=qr({container:bC,label:xC,closeButton:SC}),CC={sm:qr({container:{[Vi.variable]:"sizes.5",[Ni.variable]:"sizes.5",[Wi.variable]:"fontSizes.xs",[Hi.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:qr({container:{[Vi.variable]:"sizes.6",[Ni.variable]:"sizes.6",[Wi.variable]:"fontSizes.sm",[Hi.variable]:"space.2"}}),lg:qr({container:{[Vi.variable]:"sizes.8",[Ni.variable]:"sizes.8",[Wi.variable]:"fontSizes.md",[Hi.variable]:"space.3"}})},kC={subtle:qr(e=>{var t;return{container:(t=po.variants)==null?void 0:t.subtle(e)}}),solid:qr(e=>{var t;return{container:(t=po.variants)==null?void 0:t.solid(e)}}),outline:qr(e=>{var t;return{container:(t=po.variants)==null?void 0:t.outline(e)}})},TC=yC({variants:kC,baseStyle:wC,sizes:CC,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),PC={...(zv=Se.baseStyle)==null?void 0:zv.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},EC={outline:e=>{var t;return((t=Se.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=Se.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=Se.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((Lv=Se.variants)==null?void 0:Lv.unstyled.field)??{}},_C={xs:((Vv=Se.sizes)==null?void 0:Vv.xs.field)??{},sm:((Nv=Se.sizes)==null?void 0:Nv.sm.field)??{},md:((Wv=Se.sizes)==null?void 0:Wv.md.field)??{},lg:((Hv=Se.sizes)==null?void 0:Hv.lg.field)??{}},AC={baseStyle:PC,sizes:_C,variants:EC,defaultProps:{size:"md",variant:"outline"}},Ui=Xe("tooltip-bg"),Ra=Xe("tooltip-fg"),$C=Xe("popper-arrow-bg"),OC={bg:Ui.reference,color:Ra.reference,[Ui.variable]:"colors.gray.700",[Ra.variable]:"colors.whiteAlpha.900",_dark:{[Ui.variable]:"colors.gray.300",[Ra.variable]:"colors.gray.900"},[$C.variable]:Ui.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},MC={baseStyle:OC},IC={Accordion:P0,Alert:cx,Avatar:vx,Badge:po,Breadcrumb:Px,Button:Rx,Checkbox:Tr,CloseButton:Xx,Code:eS,Container:rS,Divider:sS,Drawer:vS,Editable:kS,Form:$S,FormError:FS,FormLabel:BS,Heading:VS,Input:Se,Kbd:XS,Link:JS,List:nw,Menu:pw,Modal:Tw,NumberInput:Dw,PinInput:Bw,Popover:Kw,Progress:n1,Radio:c1,Select:m1,Skeleton:v1,SkipLink:b1,Slider:A1,Spinner:M1,Stat:L1,Switch:X1,Table:nC,Tabs:vC,Tag:TC,Textarea:AC,Tooltip:MC,Card:Lx,Stepper:W1},DC={breakpoints:{base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},radii:{none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},blur:{none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},colors:{transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"}},...vd,sizes:dd,shadows:{xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},space:ud,borders:{none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},transition:{property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}}},RC={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},FC={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},jC=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function BC(e){return ut(e)?jC.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}const kd={semanticTokens:RC,direction:"ltr",...DC,components:IC,styles:FC,config:{useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"}};var zC=!1;function LC(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function VC(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var NC=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!zC:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(VC(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=LC(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),rt="-ms-",qi="-moz-",we="-webkit-",Td="comm",Fa="rule",ja="decl",WC="@import",Pd="@keyframes",HC="@layer",UC=Math.abs,Gi=String.fromCharCode,qC=Object.assign;function GC(e,t){return Je(e,0)^45?(((t<<2^Je(e,0))<<2^Je(e,1))<<2^Je(e,2))<<2^Je(e,3):0}function Ed(e){return e.trim()}function YC(e,t){return(e=t.exec(e))?e[0]:e}function Ce(e,t,r){return e.replace(t,r)}function Ba(e,t){return e.indexOf(t)}function Je(e,t){return e.charCodeAt(t)|0}function To(e,t,r){return e.slice(t,r)}function Xt(e){return e.length}function za(e){return e.length}function Yi(e,t){return t.push(e),e}function KC(e,t){return e.map(t).join("")}var Ki=1,Pn=1,_d=0,ht=0,Ye=0,En="";function Xi(e,t,r,n,o,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Ki,column:Pn,length:s,return:""}}function Po(e,t){return qC(Xi("",null,null,"",null,null,0),e,{length:-e.length},t)}function XC(){return Ye}function ZC(){return Ye=ht>0?Je(En,--ht):0,Pn--,Ye===10&&(Pn=1,Ki--),Ye}function bt(){return Ye=ht<_d?Je(En,ht++):0,Pn++,Ye===10&&(Pn=1,Ki++),Ye}function Zt(){return Je(En,ht)}function Zi(){return ht}function Eo(e,t){return To(En,e,t)}function _o(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 Ad(e){return Ki=Pn=1,_d=Xt(En=e),ht=0,[]}function $d(e){return En="",e}function Ji(e){return Ed(Eo(ht-1,La(e===91?e+2:e===40?e+1:e)))}function JC(e){for(;(Ye=Zt())&&Ye<33;)bt();return _o(e)>2||_o(Ye)>3?"":" "}function QC(e,t){for(;--t&&bt()&&!(Ye<48||Ye>102||Ye>57&&Ye<65||Ye>70&&Ye<97););return Eo(e,Zi()+(t<6&&Zt()==32&&bt()==32))}function La(e){for(;bt();)switch(Ye){case e:return ht;case 34:case 39:e!==34&&e!==39&&La(Ye);break;case 40:e===41&&La(e);break;case 92:bt();break}return ht}function ek(e,t){for(;bt()&&e+Ye!==57;)if(e+Ye===84&&Zt()===47)break;return"/*"+Eo(t,ht-1)+"*"+Gi(e===47?e:bt())}function tk(e){for(;!_o(Zt());)bt();return Eo(e,ht)}function rk(e){return $d(Qi("",null,null,null,[""],e=Ad(e),0,[0],e))}function Qi(e,t,r,n,o,i,s,a,c){for(var l=0,u=0,d=s,f=0,h=0,m=0,p=1,v=1,S=1,b=0,x="",E=o,C=i,$=n,A=x;v;)switch(m=b,b=bt()){case 40:if(m!=108&&Je(A,d-1)==58){Ba(A+=Ce(Ji(b),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:A+=Ji(b);break;case 9:case 10:case 13:case 32:A+=JC(m);break;case 92:A+=QC(Zi()-1,7);continue;case 47:switch(Zt()){case 42:case 47:Yi(nk(ek(bt(),Zi()),t,r),c);break;default:A+="/"}break;case 123*p:a[l++]=Xt(A)*S;case 125*p:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:S==-1&&(A=Ce(A,/\f/g,"")),h>0&&Xt(A)-d&&Yi(h>32?Md(A+";",n,r,d-1):Md(Ce(A," ","")+";",n,r,d-2),c);break;case 59:A+=";";default:if(Yi($=Od(A,t,r,l,u,o,a,x,E=[],C=[],d),i),b===123)if(u===0)Qi(A,t,$,$,E,i,d,a,C);else switch(f===99&&Je(A,3)===110?100:f){case 100:case 108:case 109:case 115:Qi(e,$,$,n&&Yi(Od(e,$,$,0,0,o,a,x,o,E=[],d),C),o,C,d,a,n?E:C);break;default:Qi(A,$,$,$,[""],C,0,a,C)}}l=u=h=0,p=S=1,x=A="",d=s;break;case 58:d=1+Xt(A),h=m;default:if(p<1){if(b==123)--p;else if(b==125&&p++==0&&ZC()==125)continue}switch(A+=Gi(b),b*p){case 38:S=u>0?1:(A+="\f",-1);break;case 44:a[l++]=(Xt(A)-1)*S,S=1;break;case 64:Zt()===45&&(A+=Ji(bt())),f=Zt(),u=d=Xt(x=A+=tk(Zi())),b++;break;case 45:m===45&&Xt(A)==2&&(p=0)}}return i}function Od(e,t,r,n,o,i,s,a,c,l,u){for(var d=o-1,f=o===0?i:[""],h=za(f),m=0,p=0,v=0;m<n;++m)for(var S=0,b=To(e,d+1,d=UC(p=s[m])),x=e;S<h;++S)(x=Ed(p>0?f[S]+" "+b:Ce(b,/&\f/g,f[S])))&&(c[v++]=x);return Xi(e,t,r,o===0?Fa:a,c,l,u)}function nk(e,t,r){return Xi(e,t,r,Td,Gi(XC()),To(e,2,-2),0)}function Md(e,t,r,n){return Xi(e,t,r,ja,To(e,0,n),To(e,n+1,-1),n)}function _n(e,t){for(var r="",n=za(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function ok(e,t,r,n){switch(e.type){case HC:if(e.children.length)break;case WC:case ja:return e.return=e.return||e.value;case Td:return"";case Pd:return e.return=e.value+"{"+_n(e.children,n)+"}";case Fa:e.value=e.props.join(",")}return Xt(r=_n(e.children,n))?e.return=e.value+"{"+r+"}":""}function ik(e){var t=za(e);return function(r,n,o,i){for(var s="",a=0;a<t;a++)s+=e[a](r,n,o,i)||"";return s}}function sk(e){return function(t){t.root||(t=t.return)&&e(t)}}var Id=function(t){var r=new WeakMap;return function(n){if(r.has(n))return r.get(n);var o=t(n);return r.set(n,o),o}};function Dd(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var ak=function(t,r,n){for(var o=0,i=0;o=i,i=Zt(),o===38&&i===12&&(r[n]=1),!_o(i);)bt();return Eo(t,ht)},ck=function(t,r){var n=-1,o=44;do switch(_o(o)){case 0:o===38&&Zt()===12&&(r[n]=1),t[n]+=ak(ht-1,r,n);break;case 2:t[n]+=Ji(o);break;case 4:if(o===44){t[++n]=Zt()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Gi(o)}while(o=bt());return t},lk=function(t,r){return $d(ck(Ad(t),r))},Rd=new WeakMap,uk=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Rd.get(n))&&!o){Rd.set(t,!0);for(var i=[],s=lk(r,i),a=n.props,c=0,l=0;c<s.length;c++)for(var u=0;u<a.length;u++,l++)t.props[l]=i[c]?s[c].replace(/&\f/g,a[u]):a[u]+" "+s[c]}}},dk=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Fd(e,t){switch(GC(e,t)){case 5103:return we+"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 we+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return we+e+qi+e+rt+e+e;case 6828:case 4268:return we+e+rt+e+e;case 6165:return we+e+rt+"flex-"+e+e;case 5187:return we+e+Ce(e,/(\w+).+(:[^]+)/,we+"box-$1$2"+rt+"flex-$1$2")+e;case 5443:return we+e+rt+"flex-item-"+Ce(e,/flex-|-self/,"")+e;case 4675:return we+e+rt+"flex-line-pack"+Ce(e,/align-content|flex-|-self/,"")+e;case 5548:return we+e+rt+Ce(e,"shrink","negative")+e;case 5292:return we+e+rt+Ce(e,"basis","preferred-size")+e;case 6060:return we+"box-"+Ce(e,"-grow","")+we+e+rt+Ce(e,"grow","positive")+e;case 4554:return we+Ce(e,/([^-])(transform)/g,"$1"+we+"$2")+e;case 6187:return Ce(Ce(Ce(e,/(zoom-|grab)/,we+"$1"),/(image-set)/,we+"$1"),e,"")+e;case 5495:case 3959:return Ce(e,/(image-set\([^]*)/,we+"$1$`$1");case 4968:return Ce(Ce(e,/(.+:)(flex-)?(.*)/,we+"box-pack:$3"+rt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+we+e+e;case 4095:case 3583:case 4068:case 2532:return Ce(e,/(.+)-inline(.+)/,we+"$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(Xt(e)-1-t>6)switch(Je(e,t+1)){case 109:if(Je(e,t+4)!==45)break;case 102:return Ce(e,/(.+:)(.+)-([^]+)/,"$1"+we+"$2-$3$1"+qi+(Je(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ba(e,"stretch")?Fd(Ce(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Je(e,t+1)!==115)break;case 6444:switch(Je(e,Xt(e)-3-(~Ba(e,"!important")&&10))){case 107:return Ce(e,":",":"+we)+e;case 101:return Ce(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+we+(Je(e,14)===45?"inline-":"")+"box$3$1"+we+"$2$3$1"+rt+"$2box$3")+e}break;case 5936:switch(Je(e,t+11)){case 114:return we+e+rt+Ce(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return we+e+rt+Ce(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return we+e+rt+Ce(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return we+e+rt+e+e}return e}var fk=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case ja:t.return=Fd(t.value,t.length);break;case Pd:return _n([Po(t,{value:Ce(t.value,"@","@"+we)})],o);case Fa:if(t.length)return KC(t.props,function(i){switch(YC(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return _n([Po(t,{props:[Ce(i,/:(read-\w+)/,":"+qi+"$1")]})],o);case"::placeholder":return _n([Po(t,{props:[Ce(i,/:(plac\w+)/,":"+we+"input-$1")]}),Po(t,{props:[Ce(i,/:(plac\w+)/,":"+qi+"$1")]}),Po(t,{props:[Ce(i,/:(plac\w+)/,rt+"input-$1")]})],o)}return""})}},hk=[fk],pk=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(p){var v=p.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var o=t.stylisPlugins||hk,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(p){for(var v=p.getAttribute("data-emotion").split(" "),S=1;S<v.length;S++)i[v[S]]=!0;a.push(p)});var c,l=[uk,dk];{var u,d=[ok,sk(function(p){u.insert(p)})],f=ik(l.concat(o,d)),h=function(v){return _n(rk(v),f)};c=function(v,S,b,x){u=b,h(v?v+"{"+S.styles+"}":S.styles),x&&(m.inserted[S.name]=!0)}}var m={key:r,sheet:new NC({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return m.sheet.hydrate(a),m};function Gr(){return Gr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gr.apply(null,arguments)}var Va={exports:{}},Pe={};/** @license React v16.13.1
45
+ * react-is.production.min.js
46
+ *
47
+ * Copyright (c) Facebook, Inc. and its affiliates.
48
+ *
49
+ * This source code is licensed under the MIT license found in the
50
+ * LICENSE file in the root directory of this source tree.
51
+ */var jd;function mk(){if(jd)return Pe;jd=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(C){if(typeof C=="object"&&C!==null){var $=C.$$typeof;switch($){case t:switch(C=C.type,C){case c:case l:case n:case i:case o:case d:return C;default:switch(C=C&&C.$$typeof,C){case a:case u:case m:case h:case s:return C;default:return $}}case r:return $}}}function E(C){return x(C)===l}return Pe.AsyncMode=c,Pe.ConcurrentMode=l,Pe.ContextConsumer=a,Pe.ContextProvider=s,Pe.Element=t,Pe.ForwardRef=u,Pe.Fragment=n,Pe.Lazy=m,Pe.Memo=h,Pe.Portal=r,Pe.Profiler=i,Pe.StrictMode=o,Pe.Suspense=d,Pe.isAsyncMode=function(C){return E(C)||x(C)===c},Pe.isConcurrentMode=E,Pe.isContextConsumer=function(C){return x(C)===a},Pe.isContextProvider=function(C){return x(C)===s},Pe.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},Pe.isForwardRef=function(C){return x(C)===u},Pe.isFragment=function(C){return x(C)===n},Pe.isLazy=function(C){return x(C)===m},Pe.isMemo=function(C){return x(C)===h},Pe.isPortal=function(C){return x(C)===r},Pe.isProfiler=function(C){return x(C)===i},Pe.isStrictMode=function(C){return x(C)===o},Pe.isSuspense=function(C){return x(C)===d},Pe.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===n||C===l||C===i||C===o||C===d||C===f||typeof C=="object"&&C!==null&&(C.$$typeof===m||C.$$typeof===h||C.$$typeof===s||C.$$typeof===a||C.$$typeof===u||C.$$typeof===v||C.$$typeof===S||C.$$typeof===b||C.$$typeof===p)},Pe.typeOf=x,Pe}var Ee={};/** @license React v16.13.1
52
+ * react-is.development.js
53
+ *
54
+ * Copyright (c) Facebook, Inc. and its affiliates.
55
+ *
56
+ * This source code is licensed under the MIT license found in the
57
+ * LICENSE file in the root directory of this source tree.
58
+ */var Bd;function gk(){return Bd||(Bd=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(z){return typeof z=="string"||typeof z=="function"||z===n||z===l||z===i||z===o||z===d||z===f||typeof z=="object"&&z!==null&&(z.$$typeof===m||z.$$typeof===h||z.$$typeof===s||z.$$typeof===a||z.$$typeof===u||z.$$typeof===v||z.$$typeof===S||z.$$typeof===b||z.$$typeof===p)}function E(z){if(typeof z=="object"&&z!==null){var We=z.$$typeof;switch(We){case t:var kt=z.type;switch(kt){case c:case l:case n:case i:case o:case d:return kt;default:var ne=kt&&kt.$$typeof;switch(ne){case a:case u:case m:case h:case s:return ne;default:return We}}case r:return We}}}var C=c,$=l,A=a,O=s,D=t,j=u,Y=n,ce=m,K=h,Z=r,ke=i,ie=o,R=d,se=!1;function ve(z){return se||(se=!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.")),M(z)||E(z)===c}function M(z){return E(z)===l}function V(z){return E(z)===a}function X(z){return E(z)===s}function I(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function B(z){return E(z)===u}function U(z){return E(z)===n}function W(z){return E(z)===m}function q(z){return E(z)===h}function G(z){return E(z)===r}function ae(z){return E(z)===i}function oe(z){return E(z)===o}function Me(z){return E(z)===d}Ee.AsyncMode=C,Ee.ConcurrentMode=$,Ee.ContextConsumer=A,Ee.ContextProvider=O,Ee.Element=D,Ee.ForwardRef=j,Ee.Fragment=Y,Ee.Lazy=ce,Ee.Memo=K,Ee.Portal=Z,Ee.Profiler=ke,Ee.StrictMode=ie,Ee.Suspense=R,Ee.isAsyncMode=ve,Ee.isConcurrentMode=M,Ee.isContextConsumer=V,Ee.isContextProvider=X,Ee.isElement=I,Ee.isForwardRef=B,Ee.isFragment=U,Ee.isLazy=W,Ee.isMemo=q,Ee.isPortal=G,Ee.isProfiler=ae,Ee.isStrictMode=oe,Ee.isSuspense=Me,Ee.isValidElementType=x,Ee.typeOf=E}()),Ee}process.env.NODE_ENV==="production"?Va.exports=mk():Va.exports=gk();var Na=Va.exports,zd=Na,vk={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},yk={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ld={};Ld[zd.ForwardRef]=vk,Ld[zd.Memo]=yk;var bk=!0;function xk(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var Vd=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||bk===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},Nd=function(t,r,n){Vd(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Sk(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var wk={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ck=!1,kk=/[A-Z]|^ms/g,Tk=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Wd=function(t){return t.charCodeAt(1)===45},Hd=function(t){return t!=null&&typeof t!="boolean"},Wa=Dd(function(e){return Wd(e)?e:e.replace(kk,"-$&").toLowerCase()}),Ud=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Tk,function(n,o,i){return Jt={name:o,styles:i,next:Jt},o})}return wk[t]!==1&&!Wd(t)&&typeof r=="number"&&r!==0?r+"px":r},Pk="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ao(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Jt={name:o.name,styles:o.styles,next:Jt},o.name;var i=r;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)Jt={name:s.name,styles:s.styles,next:Jt},s=s.next;var a=i.styles+";";return a}return Ek(e,t,r)}case"function":{if(e!==void 0){var c=Jt,l=r(e);return Jt=c,Ao(e,t,l)}break}}var u=r;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function Ek(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Ao(e,t,r[o])+";";else for(var i in r){var s=r[i];if(typeof s!="object"){var a=s;t!=null&&t[a]!==void 0?n+=i+"{"+t[a]+"}":Hd(a)&&(n+=Wa(i)+":"+Ud(i,a)+";")}else{if(i==="NO_COMPONENT_SELECTOR"&&Ck)throw new Error(Pk);if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var c=0;c<s.length;c++)Hd(s[c])&&(n+=Wa(i)+":"+Ud(i,s[c])+";");else{var l=Ao(e,t,s);switch(i){case"animation":case"animationName":{n+=Wa(i)+":"+l+";";break}default:n+=i+"{"+l+"}"}}}}return n}var qd=/label:\s*([^\s;{]+)\s*(;|$)/g,Jt;function Ha(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";Jt=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=Ao(r,t,i);else{var s=i;o+=s[0]}for(var a=1;a<e.length;a++)if(o+=Ao(r,t,e[a]),n){var c=i;o+=c[a]}qd.lastIndex=0;for(var l="",u;(u=qd.exec(o))!==null;)l+="-"+u[1];var d=Sk(o)+l;return{name:d,styles:o,next:Jt}}var _k=function(t){return t()},Gd=L.useInsertionEffect?L.useInsertionEffect:!1,Ak=Gd||_k,Yd=Gd||L.useLayoutEffect,Kd=L.createContext(typeof HTMLElement<"u"?pk({key:"css"}):null);Kd.Provider;var Ua=function(t){return g.forwardRef(function(r,n){var o=g.useContext(Kd);return t(r,o,n)})},$o=L.createContext({}),$k=function(t,r){if(typeof r=="function"){var n=r(t);return n}return Gr({},t,r)},Ok=Id(function(e){return Id(function(t){return $k(e,t)})}),Mk=function(t){var r=L.useContext($o);return t.theme!==r&&(r=Ok(r)(t.theme)),L.createElement($o.Provider,{value:r},t.children)},es=Ua(function(e,t){var r=e.styles,n=Ha([r],void 0,L.useContext($o)),o=L.useRef();return Yd(function(){var i=t.key+"-global",s=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,c=document.querySelector('style[data-emotion="'+i+" "+n.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),c!==null&&(a=!0,c.setAttribute("data-emotion",i),s.hydrate([c])),o.current=[s,a],function(){s.flush()}},[t]),Yd(function(){var i=o.current,s=i[0],a=i[1];if(a){i[1]=!1;return}if(n.next!==void 0&&Nd(t,n.next,!0),s.tags.length){var c=s.tags[s.tags.length-1].nextElementSibling;s.before=c,s.flush()}t.insert("",n,s,!1)},[t,n.name]),null});function Ik(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ha(t)}var ts=function(){var t=Ik.apply(void 0,arguments),r="animation-"+t.name;return{name:r,styles:"@keyframes "+r+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};const qa=g.createContext({});qa.displayName="ColorModeContext";function Ga(){const e=g.useContext(qa);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}const rs={light:"chakra-ui-light",dark:"chakra-ui-dark"};function Dk(e={}){const{preventTransition:t=!0,nonce:r}=e,n={setDataset:o=>{const i=t?n.preventTransition():void 0;document.documentElement.dataset.theme=o,document.documentElement.style.colorScheme=o,i==null||i()},setClassName(o){document.body.classList.add(o?rs.dark:rs.light),document.body.classList.remove(o?rs.light:rs.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(o){return n.query().matches??o==="dark"?"dark":"light"},addListener(o){const i=n.query(),s=a=>{o(a.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(s):i.addEventListener("change",s),()=>{typeof i.removeListener=="function"?i.removeListener(s):i.removeEventListener("change",s)}},preventTransition(){const o=document.createElement("style");return o.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),r!==void 0&&(o.nonce=r),document.head.appendChild(o),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(o)})})}}};return n}const Rk="chakra-ui-color-mode";function Fk(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}const jk=Fk(Rk),Xd=()=>{},Bk=ny()?g.useLayoutEffect:g.useEffect;function Zd(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const Jd=Ua(function(t,r){const{value:n,children:o,options:{useSystemColorMode:i,initialColorMode:s,disableTransitionOnChange:a}={},colorModeManager:c=jk}=t,l=s==="dark"?"dark":"light",[u,d]=g.useState(()=>Zd(c,l)),[f,h]=g.useState(()=>Zd(c)),{getSystemTheme:m,setClassName:p,setDataset:v,addListener:S}=g.useMemo(()=>Dk({preventTransition:a,nonce:r==null?void 0:r.nonce}),[a,r==null?void 0:r.nonce]),b=s==="system"&&!u?f:u,x=g.useCallback($=>{const A=$==="system"?m():$;d(A),p(A==="dark"),v(A),c.set(A)},[c,m,p,v]);Bk(()=>{s==="system"&&h(m())},[]),g.useEffect(()=>{const $=c.get();if($){x($);return}if(s==="system"){x("system");return}x(l)},[c,l,s,x]);const E=g.useCallback(()=>{x(b==="dark"?"light":"dark")},[b,x]);g.useEffect(()=>{if(i)return S(x)},[i,S,x]);const C=g.useMemo(()=>({colorMode:n??b,toggleColorMode:n?Xd:E,setColorMode:n?Xd:x,forced:n!==void 0}),[b,E,x,n]);return P.jsx(qa.Provider,{value:C,children:o})});Jd.displayName="ColorModeProvider";const Qd=String.raw,ef=Qd`
59
+ :root,
60
+ :host {
61
+ --chakra-vh: 100vh;
62
+ }
63
+
64
+ @supports (height: -webkit-fill-available) {
65
+ :root,
66
+ :host {
67
+ --chakra-vh: -webkit-fill-available;
68
+ }
69
+ }
70
+
71
+ @supports (height: -moz-fill-available) {
72
+ :root,
73
+ :host {
74
+ --chakra-vh: -moz-fill-available;
75
+ }
76
+ }
77
+
78
+ @supports (height: 100dvh) {
79
+ :root,
80
+ :host {
81
+ --chakra-vh: 100dvh;
82
+ }
83
+ }
84
+ `,zk=()=>P.jsx(es,{styles:ef}),Lk=({scope:e=""})=>P.jsx(es,{styles:Qd`
85
+ html {
86
+ line-height: 1.5;
87
+ -webkit-text-size-adjust: 100%;
88
+ font-family: system-ui, sans-serif;
89
+ -webkit-font-smoothing: antialiased;
90
+ text-rendering: optimizeLegibility;
91
+ -moz-osx-font-smoothing: grayscale;
92
+ touch-action: manipulation;
93
+ }
94
+
95
+ body {
96
+ position: relative;
97
+ min-height: 100%;
98
+ margin: 0;
99
+ font-feature-settings: "kern";
100
+ }
101
+
102
+ ${e} :where(*, *::before, *::after) {
103
+ border-width: 0;
104
+ border-style: solid;
105
+ box-sizing: border-box;
106
+ word-wrap: break-word;
107
+ }
108
+
109
+ main {
110
+ display: block;
111
+ }
112
+
113
+ ${e} hr {
114
+ border-top-width: 1px;
115
+ box-sizing: content-box;
116
+ height: 0;
117
+ overflow: visible;
118
+ }
119
+
120
+ ${e} :where(pre, code, kbd,samp) {
121
+ font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
122
+ font-size: 1em;
123
+ }
124
+
125
+ ${e} a {
126
+ background-color: transparent;
127
+ color: inherit;
128
+ text-decoration: inherit;
129
+ }
130
+
131
+ ${e} abbr[title] {
132
+ border-bottom: none;
133
+ text-decoration: underline;
134
+ -webkit-text-decoration: underline dotted;
135
+ text-decoration: underline dotted;
136
+ }
137
+
138
+ ${e} :where(b, strong) {
139
+ font-weight: bold;
140
+ }
141
+
142
+ ${e} small {
143
+ font-size: 80%;
144
+ }
145
+
146
+ ${e} :where(sub,sup) {
147
+ font-size: 75%;
148
+ line-height: 0;
149
+ position: relative;
150
+ vertical-align: baseline;
151
+ }
152
+
153
+ ${e} sub {
154
+ bottom: -0.25em;
155
+ }
156
+
157
+ ${e} sup {
158
+ top: -0.5em;
159
+ }
160
+
161
+ ${e} img {
162
+ border-style: none;
163
+ }
164
+
165
+ ${e} :where(button, input, optgroup, select, textarea) {
166
+ font-family: inherit;
167
+ font-size: 100%;
168
+ line-height: 1.15;
169
+ margin: 0;
170
+ }
171
+
172
+ ${e} :where(button, input) {
173
+ overflow: visible;
174
+ }
175
+
176
+ ${e} :where(button, select) {
177
+ text-transform: none;
178
+ }
179
+
180
+ ${e} :where(
181
+ button::-moz-focus-inner,
182
+ [type="button"]::-moz-focus-inner,
183
+ [type="reset"]::-moz-focus-inner,
184
+ [type="submit"]::-moz-focus-inner
185
+ ) {
186
+ border-style: none;
187
+ padding: 0;
188
+ }
189
+
190
+ ${e} fieldset {
191
+ padding: 0.35em 0.75em 0.625em;
192
+ }
193
+
194
+ ${e} legend {
195
+ box-sizing: border-box;
196
+ color: inherit;
197
+ display: table;
198
+ max-width: 100%;
199
+ padding: 0;
200
+ white-space: normal;
201
+ }
202
+
203
+ ${e} progress {
204
+ vertical-align: baseline;
205
+ }
206
+
207
+ ${e} textarea {
208
+ overflow: auto;
209
+ }
210
+
211
+ ${e} :where([type="checkbox"], [type="radio"]) {
212
+ box-sizing: border-box;
213
+ padding: 0;
214
+ }
215
+
216
+ ${e} input[type="number"]::-webkit-inner-spin-button,
217
+ ${e} input[type="number"]::-webkit-outer-spin-button {
218
+ -webkit-appearance: none !important;
219
+ }
220
+
221
+ ${e} input[type="number"] {
222
+ -moz-appearance: textfield;
223
+ }
224
+
225
+ ${e} input[type="search"] {
226
+ -webkit-appearance: textfield;
227
+ outline-offset: -2px;
228
+ }
229
+
230
+ ${e} input[type="search"]::-webkit-search-decoration {
231
+ -webkit-appearance: none !important;
232
+ }
233
+
234
+ ${e} ::-webkit-file-upload-button {
235
+ -webkit-appearance: button;
236
+ font: inherit;
237
+ }
238
+
239
+ ${e} details {
240
+ display: block;
241
+ }
242
+
243
+ ${e} summary {
244
+ display: list-item;
245
+ }
246
+
247
+ template {
248
+ display: none;
249
+ }
250
+
251
+ [hidden] {
252
+ display: none !important;
253
+ }
254
+
255
+ ${e} :where(
256
+ blockquote,
257
+ dl,
258
+ dd,
259
+ h1,
260
+ h2,
261
+ h3,
262
+ h4,
263
+ h5,
264
+ h6,
265
+ hr,
266
+ figure,
267
+ p,
268
+ pre
269
+ ) {
270
+ margin: 0;
271
+ }
272
+
273
+ ${e} button {
274
+ background: transparent;
275
+ padding: 0;
276
+ }
277
+
278
+ ${e} fieldset {
279
+ margin: 0;
280
+ padding: 0;
281
+ }
282
+
283
+ ${e} :where(ol, ul) {
284
+ margin: 0;
285
+ padding: 0;
286
+ }
287
+
288
+ ${e} textarea {
289
+ resize: vertical;
290
+ }
291
+
292
+ ${e} :where(button, [role="button"]) {
293
+ cursor: pointer;
294
+ }
295
+
296
+ ${e} button::-moz-focus-inner {
297
+ border: 0 !important;
298
+ }
299
+
300
+ ${e} table {
301
+ border-collapse: collapse;
302
+ }
303
+
304
+ ${e} :where(h1, h2, h3, h4, h5, h6) {
305
+ font-size: inherit;
306
+ font-weight: inherit;
307
+ }
308
+
309
+ ${e} :where(button, input, optgroup, select, textarea) {
310
+ padding: 0;
311
+ line-height: inherit;
312
+ color: inherit;
313
+ }
314
+
315
+ ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) {
316
+ display: block;
317
+ }
318
+
319
+ ${e} :where(img, video) {
320
+ max-width: 100%;
321
+ height: auto;
322
+ }
323
+
324
+ [data-js-focus-visible]
325
+ :focus:not([data-focus-visible-added]):not(
326
+ [data-focus-visible-disabled]
327
+ ) {
328
+ outline: none;
329
+ box-shadow: none;
330
+ }
331
+
332
+ ${e} select::-ms-expand {
333
+ display: none;
334
+ }
335
+
336
+ ${ef}
337
+ `});function Vk(e){const{cssVarsRoot:t,theme:r,children:n}=e,o=g.useMemo(()=>Gb(r),[r]);return P.jsxs(Mk,{theme:o,children:[P.jsx(Nk,{root:t}),n]})}function Nk({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return P.jsx(es,{styles:r=>({[t]:r.__cssVars})})}st({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function Wk(){const{colorMode:e}=Ga();return P.jsx(es,{styles:t=>{const r=Lu(t,"styles.global"),n=Bt(r,{theme:t,colorMode:e});return n?Yu(n)(t):void 0}})}const[Hk,Uk]=st({strict:!1,name:"PortalManagerContext"});function tf(e){const{children:t,zIndex:r}=e;return P.jsx(Hk,{value:{zIndex:r},children:t})}tf.displayName="PortalManager";const rf=g.createContext({getDocument(){return document},getWindow(){return window}});rf.displayName="EnvironmentContext";function nf(e){const{children:t,environment:r,disabled:n}=e,o=g.useRef(null),i=g.useMemo(()=>r||{getDocument:()=>{var a;return((a=o.current)==null?void 0:a.ownerDocument)??document},getWindow:()=>{var a;return((a=o.current)==null?void 0:a.ownerDocument.defaultView)??window}},[r]),s=!n||!r;return P.jsxs(rf.Provider,{value:i,children:[t,s&&P.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}nf.displayName="EnvironmentProvider";const qk=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:o,resetCSS:i=!0,theme:s={},environment:a,cssVarsRoot:c,disableEnvironment:l,disableGlobalStyle:u}=e,d=P.jsx(nf,{environment:a,disabled:l,children:t});return P.jsx(Vk,{theme:s,cssVarsRoot:c,children:P.jsxs(Jd,{colorModeManager:r,options:s.config,children:[i?P.jsx(Lk,{scope:o}):P.jsx(zk,{}),!u&&P.jsx(Wk,{}),n?P.jsx(tf,{zIndex:n,children:d}):d]})})},of=new Set;function ns(e,t,r){e||of.has(t)||(console.warn(t),of.add(t))}function Gk(e){if(typeof Proxy>"u")return e;const t=new Map,r=(...n)=>(process.env.NODE_ENV!=="production"&&ns(!1,"motion() is deprecated. Use motion.create() instead."),e(...n));return new Proxy(r,{get:(n,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}function os(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ya=e=>Array.isArray(e);function sf(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function Oo(e){return typeof e=="string"||Array.isArray(e)}function af(e){const t=[{},{}];return e==null||e.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function Ka(e,t,r,n){if(typeof t=="function"){const[o,i]=af(n);t=t(r!==void 0?r:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=af(n);t=t(r!==void 0?r:e.custom,o,i)}return t}function is(e,t,r){const n=e.getProps();return Ka(n,t,r!==void 0?r:n.custom,e)}const Xa=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Za=["initial",...Xa],Mo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Yr=new Set(Mo),Qt=e=>e*1e3,pr=e=>e/1e3,Yk={type:"spring",stiffness:500,damping:25,restSpeed:10},Kk=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Xk={type:"keyframes",duration:.8},Zk={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Jk=(e,{keyframes:t})=>t.length>2?Xk:Yr.has(e)?e.startsWith("scale")?Kk(t[1]):Yk:Zk;function Ja(e,t){return e?e[t]||e.default||e:void 0}const Qk={skipAnimations:!1,useManualTiming:!1},eT=e=>e!==null;function ss(e,{repeat:t,repeatType:r="loop"},n){const o=e.filter(eT),i=t&&r!=="loop"&&t%2===1?0:o.length-1;return!i||n===void 0?o[i]:n}const Qe=e=>e;function tT(e){let t=new Set,r=new Set,n=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(l){i.has(l)&&(c.schedule(l),e()),l(s)}const c={schedule:(l,u=!1,d=!1)=>{const h=d&&n?t:r;return u&&i.add(l),h.has(l)||h.add(l),l},cancel:l=>{r.delete(l),i.delete(l)},process:l=>{if(s=l,n){o=!0;return}n=!0,[t,r]=[r,t],r.clear(),t.forEach(a),n=!1,o&&(o=!1,c.process(l))}};return c}const as=["read","resolveKeyframes","update","preRender","render","postRender"],rT=40;function cf(e,t){let r=!1,n=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>r=!0,s=as.reduce((S,b)=>(S[b]=tT(i),S),{}),{read:a,resolveKeyframes:c,update:l,preRender:u,render:d,postRender:f}=s,h=()=>{const S=performance.now();r=!1,o.delta=n?1e3/60:Math.max(Math.min(S-o.timestamp,rT),1),o.timestamp=S,o.isProcessing=!0,a.process(o),c.process(o),l.process(o),u.process(o),d.process(o),f.process(o),o.isProcessing=!1,r&&t&&(n=!1,e(h))},m=()=>{r=!0,n=!0,o.isProcessing||e(h)};return{schedule:as.reduce((S,b)=>{const x=s[b];return S[b]=(E,C=!1,$=!1)=>(r||m(),x.schedule(E,C,$)),S},{}),cancel:S=>{for(let b=0;b<as.length;b++)s[as[b]].cancel(S)},state:o,steps:s}}const{schedule:Ae,cancel:_r,state:et,steps:Qa}=cf(typeof requestAnimationFrame<"u"?requestAnimationFrame:Qe,!0),lf=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,nT=1e-7,oT=12;function iT(e,t,r,n,o){let i,s,a=0;do s=t+(r-t)/2,i=lf(s,n,o)-e,i>0?r=s:t=s;while(Math.abs(i)>nT&&++a<oT);return s}function Io(e,t,r,n){if(e===t&&r===n)return Qe;const o=i=>iT(i,0,1,e,r);return i=>i===0||i===1?i:lf(o(i),t,n)}const uf=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,df=e=>t=>1-e(1-t),ff=Io(.33,1.53,.69,.99),ec=df(ff),hf=uf(ec),pf=e=>(e*=2)<1?.5*ec(e):.5*(2-Math.pow(2,-10*(e-1))),tc=e=>1-Math.sin(Math.acos(e)),mf=df(tc),gf=uf(tc),vf=e=>/^0[^.\s]+$/u.test(e);function sT(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||vf(e):!0}let An=Qe,mr=Qe;process.env.NODE_ENV!=="production"&&(An=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},mr=(e,t)=>{if(!e)throw new Error(t)});const yf=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),bf=e=>t=>typeof t=="string"&&t.startsWith(e),xf=bf("--"),aT=bf("var(--"),rc=e=>aT(e)?cT.test(e.split("/*")[0].trim()):!1,cT=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,lT=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function uT(e){const t=lT.exec(e);if(!t)return[,];const[,r,n,o]=t;return[`--${r??n}`,o]}const dT=4;function Sf(e,t,r=1){mr(r<=dT,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[n,o]=uT(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const s=i.trim();return yf(s)?parseFloat(s):s}return rc(o)?Sf(o,t,r+1):o}const Ar=(e,t,r)=>r>t?t:r<e?e:r,$n={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Do={...$n,transform:e=>Ar(0,1,e)},cs={...$n,default:1},Ro=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),$r=Ro("deg"),er=Ro("%"),te=Ro("px"),fT=Ro("vh"),hT=Ro("vw"),wf={...er,parse:e=>er.parse(e)/100,transform:e=>er.transform(e*100)},pT=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Cf=e=>e===$n||e===te,kf=(e,t)=>parseFloat(e.split(", ")[t]),Tf=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const o=n.match(/^matrix3d\((.+)\)$/u);if(o)return kf(o[1],t);{const i=n.match(/^matrix\((.+)\)$/u);return i?kf(i[1],e):0}},mT=new Set(["x","y","z"]),gT=Mo.filter(e=>!mT.has(e));function vT(e){const t=[];return gT.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const On={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Tf(4,13),y:Tf(5,14)};On.translateX=On.x,On.translateY=On.y;const Pf=e=>t=>t.test(e),Ef=[$n,te,er,$r,hT,fT,{test:e=>e==="auto",parse:e=>e}],_f=e=>Ef.find(Pf(e)),Kr=new Set;let nc=!1,oc=!1;function Af(){if(oc){const e=Array.from(Kr).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const o=vT(n);o.length&&(r.set(n,o),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const o=r.get(n);o&&o.forEach(([i,s])=>{var a;(a=n.getValue(i))===null||a===void 0||a.set(s)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}oc=!1,nc=!1,Kr.forEach(e=>e.complete()),Kr.clear()}function $f(){Kr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(oc=!0)})}function yT(){$f(),Af()}class ic{constructor(t,r,n,o,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Kr.add(this),nc||(nc=!0,Ae.read($f),Ae.resolveKeyframes(Af))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:n,motionValue:o}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const s=o==null?void 0:o.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(n&&r){const c=n.readValue(r,a);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=a),o&&s===void 0&&o.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Kr.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Kr.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Fo=e=>Math.round(e*1e5)/1e5,sc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function bT(e){return e==null}const xT=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ac=(e,t)=>r=>!!(typeof r=="string"&&xT.test(r)&&r.startsWith(e)||t&&!bT(r)&&Object.prototype.hasOwnProperty.call(r,t)),Of=(e,t,r)=>n=>{if(typeof n!="string")return n;const[o,i,s,a]=n.match(sc);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},ST=e=>Ar(0,255,e),cc={...$n,transform:e=>Math.round(ST(e))},Xr={test:ac("rgb","red"),parse:Of("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+cc.transform(e)+", "+cc.transform(t)+", "+cc.transform(r)+", "+Fo(Do.transform(n))+")"};function wT(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const lc={test:ac("#"),parse:wT,transform:Xr.transform},Mn={test:ac("hsl","hue"),parse:Of("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+er.transform(Fo(t))+", "+er.transform(Fo(r))+", "+Fo(Do.transform(n))+")"},nt={test:e=>Xr.test(e)||lc.test(e)||Mn.test(e),parse:e=>Xr.test(e)?Xr.parse(e):Mn.test(e)?Mn.parse(e):lc.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Xr.transform(e):Mn.transform(e)},CT=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function kT(e){var t,r;return isNaN(e)&&typeof e=="string"&&(((t=e.match(sc))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(CT))===null||r===void 0?void 0:r.length)||0)>0}const Mf="number",If="color",TT="var",PT="var(",Df="${}",ET=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function jo(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(ET,c=>(nt.test(c)?(n.color.push(i),o.push(If),r.push(nt.parse(c))):c.startsWith(PT)?(n.var.push(i),o.push(TT),r.push(c)):(n.number.push(i),o.push(Mf),r.push(parseFloat(c))),++i,Df)).split(Df);return{values:r,split:a,indexes:n,types:o}}function Rf(e){return jo(e).values}function Ff(e){const{split:t,types:r}=jo(e),n=t.length;return o=>{let i="";for(let s=0;s<n;s++)if(i+=t[s],o[s]!==void 0){const a=r[s];a===Mf?i+=Fo(o[s]):a===If?i+=nt.transform(o[s]):i+=o[s]}return i}}const _T=e=>typeof e=="number"?0:e;function AT(e){const t=Rf(e);return Ff(e)(t.map(_T))}const Or={test:kT,parse:Rf,createTransformer:Ff,getAnimatableNone:AT},$T=new Set(["brightness","contrast","saturate","opacity"]);function OT(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(sc)||[];if(!n)return e;const o=r.replace(n,"");let i=$T.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const MT=/\b([a-z-]*)\(.*?\)/gu,uc={...Or,getAnimatableNone:e=>{const t=e.match(MT);return t?t.map(OT).join(" "):e}},IT={borderWidth:te,borderTopWidth:te,borderRightWidth:te,borderBottomWidth:te,borderLeftWidth:te,borderRadius:te,radius:te,borderTopLeftRadius:te,borderTopRightRadius:te,borderBottomRightRadius:te,borderBottomLeftRadius:te,width:te,maxWidth:te,height:te,maxHeight:te,top:te,right:te,bottom:te,left:te,padding:te,paddingTop:te,paddingRight:te,paddingBottom:te,paddingLeft:te,margin:te,marginTop:te,marginRight:te,marginBottom:te,marginLeft:te,backgroundPositionX:te,backgroundPositionY:te},DT={rotate:$r,rotateX:$r,rotateY:$r,rotateZ:$r,scale:cs,scaleX:cs,scaleY:cs,scaleZ:cs,skew:$r,skewX:$r,skewY:$r,distance:te,translateX:te,translateY:te,translateZ:te,x:te,y:te,z:te,perspective:te,transformPerspective:te,opacity:Do,originX:wf,originY:wf,originZ:te},jf={...$n,transform:Math.round},dc={...IT,...DT,zIndex:jf,size:te,fillOpacity:Do,strokeOpacity:Do,numOctaves:jf},RT={...dc,color:nt,backgroundColor:nt,outlineColor:nt,fill:nt,stroke:nt,borderColor:nt,borderTopColor:nt,borderRightColor:nt,borderBottomColor:nt,borderLeftColor:nt,filter:uc,WebkitFilter:uc},fc=e=>RT[e];function Bf(e,t){let r=fc(e);return r!==uc&&(r=Or),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const FT=new Set(["auto","none","0"]);function jT(e,t,r){let n=0,o;for(;n<e.length&&!o;){const i=e[n];typeof i=="string"&&!FT.has(i)&&jo(i).values.length&&(o=e[n]),n++}if(o&&r)for(const i of t)e[i]=Bf(r,o)}class zf extends ic{constructor(t,r,n,o,i){super(t,r,n,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let l=t[c];if(typeof l=="string"&&(l=l.trim(),rc(l))){const u=Sf(l,r.current);u!==void 0&&(t[c]=u),c===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!pT.has(n)||t.length!==2)return;const[o,i]=t,s=_f(o),a=_f(i);if(s!==a)if(Cf(s)&&Cf(a))for(let c=0;c<t.length;c++){const l=t[c];typeof l=="string"&&(t[c]=parseFloat(l))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:r}=this,n=[];for(let o=0;o<t.length;o++)sT(t[o])&&n.push(o);n.length&&jT(t,n,r)}measureInitialState(){const{element:t,unresolvedKeyframes:r,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=On[n](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;const o=r[r.length-1];o!==void 0&&t.getValue(n,o).jump(o,!1)}measureEndState(){var t;const{element:r,name:n,unresolvedKeyframes:o}=this;if(!r||!r.current)return;const i=r.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=o.length-1,a=o[s];o[s]=On[n](r.measureViewportBox(),window.getComputedStyle(r.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,l])=>{r.getValue(c).set(l)}),this.resolveNoneKeyframes()}}function hc(e){return typeof e=="function"}let ls;function BT(){ls=void 0}const tr={now:()=>(ls===void 0&&tr.set(et.isProcessing||Qk.useManualTiming?et.timestamp:performance.now()),ls),set:e=>{ls=e,queueMicrotask(BT)}},Lf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Or.test(e)||e==="0")&&!e.startsWith("url("));function zT(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function LT(e,t,r,n){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],s=Lf(o,t),a=Lf(i,t);return An(s===a,`You are trying to animate ${t} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!s||!a?!1:zT(e)||(r==="spring"||hc(r))&&n}const VT=40;class Vf{constructor({autoplay:t=!0,delay:r=0,type:n="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=tr.now(),this.options={autoplay:t,delay:r,type:n,repeat:o,repeatDelay:i,repeatType:s,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>VT?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&yT(),this._resolved}onKeyframesResolved(t,r){this.resolvedAt=tr.now(),this.hasAttemptedResolve=!0;const{name:n,type:o,velocity:i,delay:s,onComplete:a,onUpdate:c,isGenerator:l}=this.options;if(!l&&!LT(t,n,o,i))if(s)this.options.duration=0;else{c==null||c(ss(t,this.options,r)),a==null||a(),this.resolveFinishedPromise();return}const u=this.initPlayback(t,r);u!==!1&&(this._resolved={keyframes:t,finalKeyframe:r,...u},this.onPostResolved())}onPostResolved(){}then(t,r){return this.currentFinishedPromise.then(t,r)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function Nf(e,t){return t?e*(1e3/t):0}const NT=5;function Wf(e,t,r){const n=Math.max(t-NT,0);return Nf(r-e(n),t-n)}const pc=.001,WT=.01,Hf=10,HT=.05,UT=1;function qT({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;An(e<=Qt(Hf),"Spring duration must be 10 seconds or less");let s=1-t;s=Ar(HT,UT,s),e=Ar(WT,Hf,pr(e)),s<1?(o=l=>{const u=l*s,d=u*e,f=u-r,h=mc(l,s),m=Math.exp(-d);return pc-f/h*m},i=l=>{const d=l*s*e,f=d*r+r,h=Math.pow(s,2)*Math.pow(l,2)*e,m=Math.exp(-d),p=mc(Math.pow(l,2),s);return(-o(l)+pc>0?-1:1)*((f-h)*m)/p}):(o=l=>{const u=Math.exp(-l*e),d=(l-r)*e+1;return-pc+u*d},i=l=>{const u=Math.exp(-l*e),d=(r-l)*(e*e);return u*d});const a=5/e,c=YT(o,i,a);if(e=Qt(e),isNaN(c))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(c,2)*n;return{stiffness:l,damping:s*2*Math.sqrt(n*l),duration:e}}}const GT=12;function YT(e,t,r){let n=r;for(let o=1;o<GT;o++)n=n-e(n)/t(n);return n}function mc(e,t){return e*Math.sqrt(1-t*t)}const KT=["duration","bounce"],XT=["stiffness","damping","mass"];function Uf(e,t){return t.some(r=>e[r]!==void 0)}function ZT(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Uf(e,XT)&&Uf(e,KT)){const r=qT(e);t={...t,...r,mass:1},t.isResolvedFromDuration=!0}return t}function qf({keyframes:e,restDelta:t,restSpeed:r,...n}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:c,mass:l,duration:u,velocity:d,isResolvedFromDuration:f}=ZT({...n,velocity:-pr(n.velocity||0)}),h=d||0,m=c/(2*Math.sqrt(a*l)),p=i-o,v=pr(Math.sqrt(a/l)),S=Math.abs(p)<5;r||(r=S?.01:2),t||(t=S?.005:.5);let b;if(m<1){const x=mc(v,m);b=E=>{const C=Math.exp(-m*v*E);return i-C*((h+m*v*p)/x*Math.sin(x*E)+p*Math.cos(x*E))}}else if(m===1)b=x=>i-Math.exp(-v*x)*(p+(h+v*p)*x);else{const x=v*Math.sqrt(m*m-1);b=E=>{const C=Math.exp(-m*v*E),$=Math.min(x*E,300);return i-C*((h+m*v*p)*Math.sinh($)+x*p*Math.cosh($))/x}}return{calculatedDuration:f&&u||null,next:x=>{const E=b(x);if(f)s.done=x>=u;else{let C=0;m<1&&(C=x===0?Qt(h):Wf(b,x,E));const $=Math.abs(C)<=r,A=Math.abs(i-E)<=t;s.done=$&&A}return s.value=s.done?i:E,s}}}function Gf({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:c,restDelta:l=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},h=O=>a!==void 0&&O<a||c!==void 0&&O>c,m=O=>a===void 0?c:c===void 0||Math.abs(a-O)<Math.abs(c-O)?a:c;let p=r*t;const v=d+p,S=s===void 0?v:s(v);S!==v&&(p=S-d);const b=O=>-p*Math.exp(-O/n),x=O=>S+b(O),E=O=>{const D=b(O),j=x(O);f.done=Math.abs(D)<=l,f.value=f.done?S:j};let C,$;const A=O=>{h(f.value)&&(C=O,$=qf({keyframes:[f.value,m(f.value)],velocity:Wf(x,O,f.value),damping:o,stiffness:i,restDelta:l,restSpeed:u}))};return A(0),{calculatedDuration:null,next:O=>{let D=!1;return!$&&C===void 0&&(D=!0,E(O),A(O)),C!==void 0&&O>=C?$.next(O-C):(!D&&E(O),f)}}}const JT=Io(.42,0,1,1),QT=Io(0,0,.58,1),Yf=Io(.42,0,.58,1),eP=e=>Array.isArray(e)&&typeof e[0]!="number",gc=e=>Array.isArray(e)&&typeof e[0]=="number",Kf={linear:Qe,easeIn:JT,easeInOut:Yf,easeOut:QT,circIn:tc,circInOut:gf,circOut:mf,backIn:ec,backInOut:hf,backOut:ff,anticipate:pf},Xf=e=>{if(gc(e)){mr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,r,n,o]=e;return Io(t,r,n,o)}else if(typeof e=="string")return mr(Kf[e]!==void 0,`Invalid easing type '${e}'`),Kf[e];return e},tP=(e,t)=>r=>t(e(r)),gr=(...e)=>e.reduce(tP),In=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},Le=(e,t,r)=>e+(t-e)*r;function vc(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function rP({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,s=0;if(!t)o=i=s=r;else{const a=r<.5?r*(1+t):r+t-r*t,c=2*r-a;o=vc(c,a,e+1/3),i=vc(c,a,e),s=vc(c,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:n}}function us(e,t){return r=>r>0?t:e}const yc=(e,t,r)=>{const n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},nP=[lc,Xr,Mn],oP=e=>nP.find(t=>t.test(e));function Zf(e){const t=oP(e);if(An(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let r=t.parse(e);return t===Mn&&(r=rP(r)),r}const Jf=(e,t)=>{const r=Zf(e),n=Zf(t);if(!r||!n)return us(e,t);const o={...r};return i=>(o.red=yc(r.red,n.red,i),o.green=yc(r.green,n.green,i),o.blue=yc(r.blue,n.blue,i),o.alpha=Le(r.alpha,n.alpha,i),Xr.transform(o))},bc=new Set(["none","hidden"]);function iP(e,t){return bc.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function sP(e,t){return r=>Le(e,t,r)}function xc(e){return typeof e=="number"?sP:typeof e=="string"?rc(e)?us:nt.test(e)?Jf:lP:Array.isArray(e)?Qf:typeof e=="object"?nt.test(e)?Jf:aP:us}function Qf(e,t){const r=[...e],n=r.length,o=e.map((i,s)=>xc(i)(i,t[s]));return i=>{for(let s=0;s<n;s++)r[s]=o[s](i);return r}}function aP(e,t){const r={...e,...t},n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=xc(e[o])(e[o],t[o]));return o=>{for(const i in n)r[i]=n[i](o);return r}}function cP(e,t){var r;const n=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],a=e.indexes[s][o[s]],c=(r=e.values[a])!==null&&r!==void 0?r:0;n[i]=c,o[s]++}return n}const lP=(e,t)=>{const r=Or.createTransformer(t),n=jo(e),o=jo(t);return n.indexes.var.length===o.indexes.var.length&&n.indexes.color.length===o.indexes.color.length&&n.indexes.number.length>=o.indexes.number.length?bc.has(e)&&!o.values.length||bc.has(t)&&!n.values.length?iP(e,t):gr(Qf(cP(n,o),o.values),r):(An(!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.`),us(e,t))};function eh(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?Le(e,t,r):xc(e)(e,t)}function uP(e,t,r){const n=[],o=r||eh,i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]||Qe:t;a=gr(c,a)}n.push(a)}return n}function dP(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const i=e.length;if(mr(i===t.length,"Both input and output ranges must be the same length"),i===1)return()=>t[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=uP(t,n,o),a=s.length,c=l=>{let u=0;if(a>1)for(;u<e.length-2&&!(l<e[u+1]);u++);const d=In(e[u],e[u+1],l);return s[u](d)};return r?l=>c(Ar(e[0],e[i-1],l)):c}function fP(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=In(0,t,n);e.push(Le(r,1,o))}}function hP(e){const t=[0];return fP(t,e.length-1),t}function pP(e,t){return e.map(r=>r*t)}function mP(e,t){return e.map(()=>t||Yf).splice(0,e.length-1)}function ds({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=eP(n)?n.map(Xf):Xf(n),i={done:!1,value:t[0]},s=pP(r&&r.length===t.length?r:hP(t),e),a=dP(s,t,{ease:Array.isArray(o)?o:mP(t,o)});return{calculatedDuration:e,next:c=>(i.value=a(c),i.done=c>=e,i)}}const th=2e4;function gP(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<th;)t+=r,n=e.next(t);return t>=th?1/0:t}const vP=e=>{const t=({timestamp:r})=>e(r);return{start:()=>Ae.update(t,!0),stop:()=>_r(t),now:()=>et.isProcessing?et.timestamp:tr.now()}},yP={decay:Gf,inertia:Gf,tween:ds,keyframes:ds,spring:qf},bP=e=>e/100;class Sc extends Vf{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:r,motionValue:n,element:o,keyframes:i}=this.options,s=(o==null?void 0:o.KeyframeResolver)||ic,a=(c,l)=>this.onKeyframesResolved(c,l);this.resolver=new s(i,a,r,n,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:r="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,a=hc(r)?r:yP[r]||ds;let c,l;a!==ds&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&mr(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c=gr(bP,eh(t[0],t[1])),t=[0,100]);const u=a({...this.options,keyframes:t});i==="mirror"&&(l=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=gP(u));const{calculatedDuration:d}=u,f=d+o,h=f*(n+1)-o;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:c,calculatedDuration:d,resolvedDuration:f,totalDuration:h}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,r=!1){const{resolved:n}=this;if(!n){const{keyframes:O}=this.options;return{done:!0,value:O[O.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:c,calculatedDuration:l,totalDuration:u,resolvedDuration:d}=n;if(this.startTime===null)return i.next(0);const{delay:f,repeat:h,repeatType:m,repeatDelay:p,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),r?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const S=this.currentTime-f*(this.speed>=0?1:-1),b=this.speed>=0?S<0:S>u;this.currentTime=Math.max(S,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let x=this.currentTime,E=i;if(h){const O=Math.min(this.currentTime,u)/d;let D=Math.floor(O),j=O%1;!j&&O>=1&&(j=1),j===1&&D--,D=Math.min(D,h+1),!!(D%2)&&(m==="reverse"?(j=1-j,p&&(j-=p/d)):m==="mirror"&&(E=s)),x=Ar(0,1,j)*d}const C=b?{done:!1,value:c[0]}:E.next(x);a&&(C.value=a(C.value));let{done:$}=C;!b&&l!==null&&($=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&$);return A&&o!==void 0&&(C.value=ss(c,this.options,o)),v&&v(C.value),A&&this.finish(),C}get duration(){const{resolved:t}=this;return t?pr(t.calculatedDuration):0}get time(){return pr(this.currentTime)}set time(t){t=Qt(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=pr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=vP,onPlay:r,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),r&&r();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=n??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const xP=new Set(["opacity","clipPath","filter","transform"]),SP=10,wP=(e,t)=>{let r="";const n=Math.max(Math.round(t/SP),2);for(let o=0;o<n;o++)r+=e(In(0,n-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function wc(e){let t;return()=>(t===void 0&&(t=e()),t)}const CP={linearEasing:void 0};function kP(e,t){const r=wc(e);return()=>{var n;return(n=CP[t])!==null&&n!==void 0?n:r()}}const fs=kP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function rh(e){return!!(typeof e=="function"&&fs()||!e||typeof e=="string"&&(e in Cc||fs())||gc(e)||Array.isArray(e)&&e.every(rh))}const Bo=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Cc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Bo([0,.65,.55,1]),circOut:Bo([.55,0,1,.45]),backIn:Bo([.31,.01,.66,-.59]),backOut:Bo([.33,1.53,.69,.99])};function nh(e,t){if(e)return typeof e=="function"&&fs()?wP(e,t):gc(e)?Bo(e):Array.isArray(e)?e.map(r=>nh(r,t)||Cc.easeOut):Cc[e]}function TP(e,t,r,{delay:n=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeInOut",times:c}={}){const l={[t]:r};c&&(l.offset=c);const u=nh(a,o);return Array.isArray(u)&&(l.easing=u),e.animate(l,{delay:n,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function oh(e,t){e.timeline=t,e.onfinish=null}const PP=wc(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),hs=10,EP=2e4;function _P(e){return hc(e.type)||e.type==="spring"||!rh(e.ease)}function AP(e,t){const r=new Sc({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let n={done:!1,value:e[0]};const o=[];let i=0;for(;!n.done&&i<EP;)n=r.sample(i),o.push(n.value),i+=hs;return{times:void 0,keyframes:o,duration:i-hs,ease:"linear"}}const ih={anticipate:pf,backInOut:hf,circInOut:gf};function $P(e){return e in ih}class sh extends Vf{constructor(t){super(t);const{name:r,motionValue:n,element:o,keyframes:i}=this.options;this.resolver=new zf(i,(s,a)=>this.onKeyframesResolved(s,a),r,n,o),this.resolver.scheduleResolve()}initPlayback(t,r){var n;let{duration:o=300,times:i,ease:s,type:a,motionValue:c,name:l,startTime:u}=this.options;if(!(!((n=c.owner)===null||n===void 0)&&n.current))return!1;if(typeof s=="string"&&fs()&&$P(s)&&(s=ih[s]),_P(this.options)){const{onComplete:f,onUpdate:h,motionValue:m,element:p,...v}=this.options,S=AP(t,v);t=S.keyframes,t.length===1&&(t[1]=t[0]),o=S.duration,i=S.times,s=S.ease,a="keyframes"}const d=TP(c.owner.current,l,t,{...this.options,duration:o,times:i,ease:s});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(oh(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;c.set(ss(t,this.options,r)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:o,times:i,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:r}=t;return pr(r)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:r}=t;return pr(r.currentTime||0)}set time(t){const{resolved:r}=this;if(!r)return;const{animation:n}=r;n.currentTime=Qt(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:r}=t;return r.playbackRate}set speed(t){const{resolved:r}=this;if(!r)return;const{animation:n}=r;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:r}=t;return r.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:r}=t;return r.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:r}=this;if(!r)return Qe;const{animation:n}=r;oh(n,t)}return Qe}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.playState==="finished"&&this.updateFinishedPromise(),r.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:r,keyframes:n,duration:o,type:i,ease:s,times:a}=t;if(r.playState==="idle"||r.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:u,onComplete:d,element:f,...h}=this.options,m=new Sc({...h,keyframes:n,duration:o,type:i,ease:s,times:a,isGenerator:!0}),p=Qt(this.time);l.setWithVelocity(m.sample(p-hs).value,m.sample(p).value,hs)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:r,name:n,repeatDelay:o,repeatType:i,damping:s,type:a}=t;return PP()&&n&&xP.has(n)&&r&&r.owner&&r.owner.current instanceof HTMLElement&&!r.owner.getProps().onUpdate&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}}const OP=wc(()=>window.ScrollTimeline!==void 0);class MP{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,r){return Promise.all(this.animations).then(t).catch(r)}getAll(t){return this.animations[0][t]}setAll(t,r){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=r}attachTimeline(t,r){const n=this.animations.map(o=>OP()&&o.attachTimeline?o.attachTimeline(t):r(o));return()=>{n.forEach((o,i)=>{o&&o(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let r=0;r<this.animations.length;r++)t=Math.max(t,this.animations[r].duration);return t}runAll(t){this.animations.forEach(r=>r[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function IP({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const kc=(e,t,r,n={},o,i)=>s=>{const a=Ja(n,e)||{},c=a.delay||n.delay||0;let{elapsed:l=0}=n;l=l-Qt(c);let u={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-l,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};IP(a)||(u={...u,...Jk(e,u)}),u.duration&&(u.duration=Qt(u.duration)),u.repeatDelay&&(u.repeatDelay=Qt(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const f=ss(u.keyframes,a);if(f!==void 0)return Ae.update(()=>{u.onUpdate(f),u.onComplete()}),new MP([])}return!i&&sh.supports(u)?new sh(u):new Sc(u)},DP=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),RP=e=>Ya(e)?e[e.length-1]||0:e;function Tc(e,t){e.indexOf(t)===-1&&e.push(t)}function Pc(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class Ec{constructor(){this.subscriptions=[]}add(t){return Tc(this.subscriptions,t),()=>Pc(this.subscriptions,t)}notify(t,r,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let i=0;i<o;i++){const s=this.subscriptions[i];s&&s(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ah=30,FP=e=>!isNaN(parseFloat(e));class jP{constructor(t,r={}){this.version="11.11.17",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,o=!0)=>{const i=tr.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=tr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=FP(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ns(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Ec);const n=this.events[t].add(r);return t==="change"?()=>{n(),Ae.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=tr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ah)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,ah);return Nf(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function zo(e,t){return new jP(e,t)}function BP(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,zo(r))}function zP(e,t){const r=is(e,t);let{transitionEnd:n={},transition:o={},...i}=r||{};i={...i,...n};for(const s in i){const a=RP(i[s]);BP(e,s,a)}}const _c=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ch="data-"+_c("framerAppearId");function lh(e){return e.props[ch]}const ot=e=>!!(e&&e.getVelocity);function LP(e){return!!(ot(e)&&e.add)}function Ac(e,t){const r=e.getValue("willChange");if(LP(r))return r.add(t)}function VP({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function uh(e,t,{delay:r=0,transitionOverride:n,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...c}=t;n&&(s=n);const l=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const d in c){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),h=c[d];if(h===void 0||u&&VP(u,d))continue;const m={delay:r,...Ja(s||{},d)};let p=!1;if(window.MotionHandoffAnimation){const S=lh(e);if(S){const b=window.MotionHandoffAnimation(S,d,Ae);b!==null&&(m.startTime=b,p=!0)}}Ac(e,d),f.start(kc(d,f,h,e.shouldReduceMotion&&Yr.has(d)?{type:!1}:m,e,p));const v=f.animation;v&&l.push(v)}return a&&Promise.all(l).then(()=>{Ae.update(()=>{a&&zP(e,a)})}),l}function $c(e,t,r={}){var n;const o=is(e,t,r.type==="exit"?(n=e.presenceContext)===null||n===void 0?void 0:n.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(i=r.transitionOverride);const s=o?()=>Promise.all(uh(e,o,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=i;return NP(e,t,u+l,d,f,r)}:()=>Promise.resolve(),{when:c}=i;if(c){const[l,u]=c==="beforeChildren"?[s,a]:[a,s];return l().then(()=>u())}else return Promise.all([s(),a(r.delay)])}function NP(e,t,r=0,n=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*n,c=o===1?(l=0)=>l*n:(l=0)=>a-l*n;return Array.from(e.variantChildren).sort(WP).forEach((l,u)=>{l.notify("AnimationStart",t),s.push($c(l,t,{...i,delay:r+c(u)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(s)}function WP(e,t){return e.sortNodePosition(t)}function HP(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const o=t.map(i=>$c(e,i,r));n=Promise.all(o)}else if(typeof t=="string")n=$c(e,t,r);else{const o=typeof t=="function"?is(e,t,r.custom):t;n=Promise.all(uh(e,o,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}const UP=Za.length;function dh(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?dh(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;r<UP;r++){const n=Za[r],o=e.props[n];(Oo(o)||o===!1)&&(t[n]=o)}return t}const qP=[...Xa].reverse(),GP=Xa.length;function YP(e){return t=>Promise.all(t.map(({animation:r,options:n})=>HP(e,r,n)))}function KP(e){let t=YP(e),r=fh(),n=!0;const o=c=>(l,u)=>{var d;const f=is(e,u,c==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:h,transitionEnd:m,...p}=f;l={...l,...p,...m}}return l};function i(c){t=c(e)}function s(c){const{props:l}=e,u=dh(e.parent)||{},d=[],f=new Set;let h={},m=1/0;for(let v=0;v<GP;v++){const S=qP[v],b=r[S],x=l[S]!==void 0?l[S]:u[S],E=Oo(x),C=S===c?b.isActive:null;C===!1&&(m=v);let $=x===u[S]&&x!==l[S]&&E;if($&&n&&e.manuallyAnimateOnMount&&($=!1),b.protectedKeys={...h},!b.isActive&&C===null||!x&&!b.prevProp||os(x)||typeof x=="boolean")continue;const A=XP(b.prevProp,x);let O=A||S===c&&b.isActive&&!$&&E||v>m&&E,D=!1;const j=Array.isArray(x)?x:[x];let Y=j.reduce(o(S),{});C===!1&&(Y={});const{prevResolvedValues:ce={}}=b,K={...ce,...Y},Z=R=>{O=!0,f.has(R)&&(D=!0,f.delete(R)),b.needsAnimating[R]=!0;const se=e.getValue(R);se&&(se.liveStyle=!1)};for(const R in K){const se=Y[R],ve=ce[R];if(h.hasOwnProperty(R))continue;let M=!1;Ya(se)&&Ya(ve)?M=!sf(se,ve):M=se!==ve,M?se!=null?Z(R):f.add(R):se!==void 0&&f.has(R)?Z(R):b.protectedKeys[R]=!0}b.prevProp=x,b.prevResolvedValues=Y,b.isActive&&(h={...h,...Y}),n&&e.blockInitialAnimation&&(O=!1),O&&(!($&&A)||D)&&d.push(...j.map(R=>({animation:R,options:{type:S}})))}if(f.size){const v={};f.forEach(S=>{const b=e.getBaseTarget(S),x=e.getValue(S);x&&(x.liveStyle=!0),v[S]=b??null}),d.push({animation:v})}let p=!!d.length;return n&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(p=!1),n=!1,p?t(d):Promise.resolve()}function a(c,l){var u;if(r[c].isActive===l)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(f=>{var h;return(h=f.animationState)===null||h===void 0?void 0:h.setActive(c,l)}),r[c].isActive=l;const d=s(c);for(const f in r)r[f].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>r,reset:()=>{r=fh(),n=!0}}}function XP(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!sf(t,e):!1}function Zr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function fh(){return{animate:Zr(!0),whileInView:Zr(),whileHover:Zr(),whileTap:Zr(),whileDrag:Zr(),whileFocus:Zr(),exit:Zr()}}class Mr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class ZP extends Mr{constructor(t){super(t),t.animationState||(t.animationState=KP(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();os(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let JP=0;class QP extends Mr{constructor(){super(...arguments),this.id=JP++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const o=this.node.animationState.setActive("exit",!t);r&&!t&&o.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const eE={animation:{Feature:ZP},exit:{Feature:QP}},hh=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function ps(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const tE=e=>t=>hh(t)&&e(t,ps(t));function vr(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function yr(e,t,r,n){return vr(e,t,tE(r),n)}const ph=(e,t)=>Math.abs(e-t);function rE(e,t){const r=ph(e.x,t.x),n=ph(e.y,t.y);return Math.sqrt(r**2+n**2)}class mh{constructor(t,r,{transformPagePoint:n,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Mc(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,h=rE(d.offset,{x:0,y:0})>=3;if(!f&&!h)return;const{point:m}=d,{timestamp:p}=et;this.history.push({...m,timestamp:p});const{onStart:v,onMove:S}=this.handlers;f||(v&&v(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Oc(f,this.transformPagePoint),Ae.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:h,onSessionEnd:m,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Mc(d.type==="pointercancel"?this.lastMoveEventInfo:Oc(f,this.transformPagePoint),this.history);this.startEvent&&h&&h(d,v),m&&m(d,v)},!hh(t))return;this.dragSnapToOrigin=i,this.handlers=r,this.transformPagePoint=n,this.contextWindow=o||window;const s=ps(t),a=Oc(s,this.transformPagePoint),{point:c}=a,{timestamp:l}=et;this.history=[{...c,timestamp:l}];const{onSessionStart:u}=r;u&&u(t,Mc(a,this.history)),this.removeListeners=gr(yr(this.contextWindow,"pointermove",this.handlePointerMove),yr(this.contextWindow,"pointerup",this.handlePointerUp),yr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),_r(this.updatePoint)}}function Oc(e,t){return t?{point:t(e.point)}:e}function gh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Mc({point:e},t){return{point:e,delta:gh(e,vh(t)),offset:gh(e,nE(t)),velocity:oE(t,.1)}}function nE(e){return e[0]}function vh(e){return e[e.length-1]}function oE(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=vh(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>Qt(t)));)r--;if(!n)return{x:0,y:0};const i=pr(o.timestamp-n.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function yh(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const bh=yh("dragHorizontal"),xh=yh("dragVertical");function Sh(e){let t=!1;if(e==="y")t=xh();else if(e==="x")t=bh();else{const r=bh(),n=xh();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function wh(){const e=Sh(!0);return e?(e(),!1):!0}function Dn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const Ch=1e-4,iE=1-Ch,sE=1+Ch,kh=.01,aE=0-kh,cE=0+kh;function xt(e){return e.max-e.min}function lE(e,t,r){return Math.abs(e-t)<=r}function Th(e,t,r,n=.5){e.origin=n,e.originPoint=Le(t.min,t.max,e.origin),e.scale=xt(r)/xt(t),e.translate=Le(r.min,r.max,e.origin)-e.originPoint,(e.scale>=iE&&e.scale<=sE||isNaN(e.scale))&&(e.scale=1),(e.translate>=aE&&e.translate<=cE||isNaN(e.translate))&&(e.translate=0)}function Lo(e,t,r,n){Th(e.x,t.x,r.x,n?n.originX:void 0),Th(e.y,t.y,r.y,n?n.originY:void 0)}function Ph(e,t,r){e.min=r.min+t.min,e.max=e.min+xt(t)}function uE(e,t,r){Ph(e.x,t.x,r.x),Ph(e.y,t.y,r.y)}function Eh(e,t,r){e.min=t.min-r.min,e.max=e.min+xt(t)}function Vo(e,t,r){Eh(e.x,t.x,r.x),Eh(e.y,t.y,r.y)}function dE(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?Le(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?Le(r,e,n.max):Math.min(e,r)),e}function _h(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function fE(e,{top:t,left:r,bottom:n,right:o}){return{x:_h(e.x,r,o),y:_h(e.y,t,n)}}function Ah(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function hE(e,t){return{x:Ah(e.x,t.x),y:Ah(e.y,t.y)}}function pE(e,t){let r=.5;const n=xt(e),o=xt(t);return o>n?r=In(t.min,t.max-n,e.min):n>o&&(r=In(e.min,e.max-o,t.min)),Ar(0,1,r)}function mE(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const Ic=.35;function gE(e=Ic){return e===!1?e=0:e===!0&&(e=Ic),{x:$h(e,"left","right"),y:$h(e,"top","bottom")}}function $h(e,t,r){return{min:Oh(e,t),max:Oh(e,r)}}function Oh(e,t){return typeof e=="number"?e:e[t]||0}const Mh=()=>({translate:0,scale:1,origin:0,originPoint:0}),Rn=()=>({x:Mh(),y:Mh()}),Ih=()=>({min:0,max:0}),Ge=()=>({x:Ih(),y:Ih()});function Ot(e){return[e("x"),e("y")]}function Dh({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function vE({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function yE(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function Dc(e){return e===void 0||e===1}function Rc({scale:e,scaleX:t,scaleY:r}){return!Dc(e)||!Dc(t)||!Dc(r)}function Jr(e){return Rc(e)||Rh(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Rh(e){return Fh(e.x)||Fh(e.y)}function Fh(e){return e&&e!=="0%"}function ms(e,t,r){const n=e-r,o=t*n;return r+o}function jh(e,t,r,n,o){return o!==void 0&&(e=ms(e,o,n)),ms(e,r,n)+t}function Fc(e,t=0,r=1,n,o){e.min=jh(e.min,t,r,n,o),e.max=jh(e.max,t,r,n,o)}function Bh(e,{x:t,y:r}){Fc(e.x,t.translate,t.scale,t.originPoint),Fc(e.y,r.translate,r.scale,r.originPoint)}const zh=.999999999999,Lh=1.0000000000001;function bE(e,t,r,n=!1){const o=r.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a<o;a++){i=r[a],s=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&jn(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Bh(e,s)),n&&Jr(i.latestValues)&&jn(e,i.latestValues))}t.x<Lh&&t.x>zh&&(t.x=1),t.y<Lh&&t.y>zh&&(t.y=1)}function Fn(e,t){e.min=e.min+t,e.max=e.max+t}function Vh(e,t,r,n,o=.5){const i=Le(e.min,e.max,o);Fc(e,t,r,i,n)}function jn(e,t){Vh(e.x,t.x,t.scaleX,t.scale,t.originX),Vh(e.y,t.y,t.scaleY,t.scale,t.originY)}function Nh(e,t){return Dh(yE(e.getBoundingClientRect(),t))}function xE(e,t,r){const n=Nh(e,r),{scroll:o}=t;return o&&(Fn(n.x,o.offset.x),Fn(n.y,o.offset.y)),n}const Wh=({current:e})=>e?e.ownerDocument.defaultView:null,SE=new WeakMap;class wE{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ge(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const o=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(ps(u,"page").point)},i=(u,d)=>{const{drag:f,dragPropagation:h,onDragStart:m}=this.getProps();if(f&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Sh(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ot(v=>{let S=this.getAxisMotionValue(v).get()||0;if(er.test(S)){const{projection:b}=this.visualElement;if(b&&b.layout){const x=b.layout.layoutBox[v];x&&(S=xt(x)*(parseFloat(S)/100))}}this.originPoint[v]=S}),m&&Ae.postRender(()=>m(u,d)),Ac(this.visualElement,"transform");const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},s=(u,d)=>{const{dragPropagation:f,dragDirectionLock:h,onDirectionLock:m,onDrag:p}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:v}=d;if(h&&this.currentDirection===null){this.currentDirection=CE(v),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",d.point,v),this.updateAxis("y",d.point,v),this.visualElement.render(),p&&p(u,d)},a=(u,d)=>this.stop(u,d),c=()=>Ot(u=>{var d;return this.getAnimationState(u)==="paused"&&((d=this.getAxisMotionValue(u).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new mh(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:Wh(this.visualElement)})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&Ae.postRender(()=>i(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:o}=this.getProps();if(!n||!gs(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=dE(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:r,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;r&&Dn(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=fE(o.layoutBox,r):this.constraints=!1,this.elastic=gE(n),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ot(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=mE(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Dn(t))return!1;const n=t.current;mr(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=xE(n,o.root,this.visualElement.getTransformPagePoint());let s=hE(o.layout.layoutBox,i);if(r){const a=r(vE(s));this.hasMutatedConstraints=!!a,a&&(s=Dh(a))}return s}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=Ot(u=>{if(!gs(u,r,this.currentDirection))return;let d=c&&c[u]||{};s&&(d={min:0,max:0});const f=o?200:1e6,h=o?40:1e7,m={type:"inertia",velocity:n?t[u]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,m)});return Promise.all(l).then(a)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return Ac(this.visualElement,t),n.start(kc(t,n,0,r,this.visualElement,!1))}stopAnimation(){Ot(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ot(t=>{var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(t){var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(t){const r=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),o=n[r];return o||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Ot(r=>{const{drag:n}=this.getProps();if(!gs(r,n,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(r);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[r];i.set(t[r]-Le(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Dn(r)||!n||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Ot(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const c=a.get();o[s]=pE({min:c,max:c},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Ot(s=>{if(!gs(s,t,null))return;const a=this.getAxisMotionValue(s),{min:c,max:l}=this.constraints[s];a.set(Le(c,l,o[s]))})}addListeners(){if(!this.visualElement.current)return;SE.set(this.visualElement,this);const t=this.visualElement.current,r=yr(t,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),n=()=>{const{dragConstraints:c}=this.getProps();Dn(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",n);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Ae.read(n);const s=vr(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(Ot(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=c[u].translate,d.set(d.get()+c[u].translate))}),this.visualElement.render())});return()=>{s(),r(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Ic,dragMomentum:a=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function gs(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function CE(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class kE extends Mr{constructor(t){super(t),this.removeGroupControls=Qe,this.removeListeners=Qe,this.controls=new wE(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Qe}unmount(){this.removeGroupControls(),this.removeListeners()}}const Hh=e=>(t,r)=>{e&&Ae.postRender(()=>e(t,r))};class TE extends Mr{constructor(){super(...arguments),this.removePointerDownListener=Qe}onPointerDown(t){this.session=new mh(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Wh(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:Hh(t),onStart:Hh(r),onMove:n,onEnd:(i,s)=>{delete this.session,o&&Ae.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=yr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const No=g.createContext(null);function Uh(){const e=g.useContext(No);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,o=g.useId();g.useEffect(()=>n(o),[]);const i=g.useCallback(()=>r&&r(o),[o,r]);return!t&&r?[!1,i]:[!0]}function PE(){return EE(g.useContext(No))}function EE(e){return e===null?!0:e.isPresent}const jc=g.createContext({}),qh=g.createContext({}),vs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Gh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Wo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(te.test(e))e=parseFloat(e);else return e;const r=Gh(e,t.target.x),n=Gh(e,t.target.y);return`${r}% ${n}%`}},_E={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=Or.parse(e);if(o.length>5)return n;const i=Or.createTransformer(e),s=typeof o[0]!="number"?1:0,a=r.x.scale*t.x,c=r.y.scale*t.y;o[0+s]/=a,o[1+s]/=c;const l=Le(a,c,.5);return typeof o[2+s]=="number"&&(o[2+s]/=l),typeof o[3+s]=="number"&&(o[3+s]/=l),i(o)}},ys={};function AE(e){Object.assign(ys,e)}const{schedule:Bc,cancel:ER}=cf(queueMicrotask,!1);class $E extends g.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:i}=t;AE(OE),i&&(r.group&&r.group.add(i),n&&n.register&&o&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),vs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:o,isPresent:i}=this.props,s=n.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==r||r===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Ae.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Bc.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(o),n&&n.deregister&&n.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Yh(e){const[t,r]=Uh(),n=g.useContext(jc);return P.jsx($E,{...e,layoutGroup:n,switchLayoutGroup:g.useContext(qh),isPresent:t,safeToRemove:r})}const OE={borderRadius:{...Wo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Wo,borderTopRightRadius:Wo,borderBottomLeftRadius:Wo,borderBottomRightRadius:Wo,boxShadow:_E},Kh=["TopLeft","TopRight","BottomLeft","BottomRight"],ME=Kh.length,Xh=e=>typeof e=="string"?parseFloat(e):e,Zh=e=>typeof e=="number"||te.test(e);function IE(e,t,r,n,o,i){o?(e.opacity=Le(0,r.opacity!==void 0?r.opacity:1,DE(n)),e.opacityExit=Le(t.opacity!==void 0?t.opacity:1,0,RE(n))):i&&(e.opacity=Le(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let s=0;s<ME;s++){const a=`border${Kh[s]}Radius`;let c=Jh(t,a),l=Jh(r,a);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||Zh(c)===Zh(l)?(e[a]=Math.max(Le(Xh(c),Xh(l),n),0),(er.test(l)||er.test(c))&&(e[a]+="%")):e[a]=l}(t.rotate||r.rotate)&&(e.rotate=Le(t.rotate||0,r.rotate||0,n))}function Jh(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const DE=Qh(0,.5,mf),RE=Qh(.5,.95,Qe);function Qh(e,t,r){return n=>n<e?0:n>t?1:r(In(e,t,n))}function ep(e,t){e.min=t.min,e.max=t.max}function Mt(e,t){ep(e.x,t.x),ep(e.y,t.y)}function tp(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function rp(e,t,r,n,o){return e-=t,e=ms(e,1/r,n),o!==void 0&&(e=ms(e,1/o,n)),e}function FE(e,t=0,r=1,n=.5,o,i=e,s=e){if(er.test(t)&&(t=parseFloat(t),t=Le(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Le(i.min,i.max,n);e===i&&(a-=t),e.min=rp(e.min,t,r,a,o),e.max=rp(e.max,t,r,a,o)}function np(e,t,[r,n,o],i,s){FE(e,t[r],t[n],t[o],t.scale,i,s)}const jE=["x","scaleX","originX"],BE=["y","scaleY","originY"];function op(e,t,r,n){np(e.x,t,jE,r?r.x:void 0,n?n.x:void 0),np(e.y,t,BE,r?r.y:void 0,n?n.y:void 0)}function ip(e){return e.translate===0&&e.scale===1}function sp(e){return ip(e.x)&&ip(e.y)}function ap(e,t){return e.min===t.min&&e.max===t.max}function zE(e,t){return ap(e.x,t.x)&&ap(e.y,t.y)}function cp(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function lp(e,t){return cp(e.x,t.x)&&cp(e.y,t.y)}function up(e){return xt(e.x)/xt(e.y)}function dp(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class LE{constructor(){this.members=[]}add(t){Tc(this.members,t),t.scheduleRender()}remove(t){if(Pc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(o=>t===o);if(r===0)return!1;let n;for(let o=r;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function VE(e,t,r){let n="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=(r==null?void 0:r.z)||0;if((o||i||s)&&(n=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:l,rotate:u,rotateX:d,rotateY:f,skewX:h,skewY:m}=r;l&&(n=`perspective(${l}px) ${n}`),u&&(n+=`rotate(${u}deg) `),d&&(n+=`rotateX(${d}deg) `),f&&(n+=`rotateY(${f}deg) `),h&&(n+=`skewX(${h}deg) `),m&&(n+=`skewY(${m}deg) `)}const a=e.x.scale*t.x,c=e.y.scale*t.y;return(a!==1||c!==1)&&(n+=`scale(${a}, ${c})`),n||"none"}const NE=(e,t)=>e.depth-t.depth;class WE{constructor(){this.children=[],this.isDirty=!1}add(t){Tc(this.children,t),this.isDirty=!0}remove(t){Pc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(NE),this.isDirty=!1,this.children.forEach(t)}}function bs(e){const t=ot(e)?e.get():e;return DP(t)?t.toValue():t}function HE(e,t){const r=tr.now(),n=({timestamp:o})=>{const i=o-r;i>=t&&(_r(n),e(i-t))};return Ae.read(n,!0),()=>_r(n)}function UE(e){return e instanceof SVGElement&&e.tagName!=="svg"}function qE(e,t,r){const n=ot(e)?e:zo(e);return n.start(kc("",n,t,r)),n.animation}const Qr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Ho=typeof window<"u"&&window.MotionDebug!==void 0,zc=["","X","Y","Z"],GE={visibility:"hidden"},fp=1e3;let YE=0;function Lc(e,t,r,n){const{latestValues:o}=t;o[e]&&(r[e]=o[e],t.setStaticValue(e,0),n&&(n[e]=0))}function hp(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=lh(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",Ae,!(o||i))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&hp(n)}function pp({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=YE++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ho&&(Qr.totalNodes=Qr.resolvedTargetDeltas=Qr.recalculatedProjection=0),this.nodes.forEach(ZE),this.nodes.forEach(r_),this.nodes.forEach(n_),this.nodes.forEach(JE),Ho&&window.MotionDebug.record(Qr)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new WE)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Ec),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const c=this.eventHandlers.get(s);c&&c.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=UE(s),this.instance=s;const{layoutId:c,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(l||c)&&(this.isLayoutDirty=!0),e){let d;const f=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=HE(f,250),vs.hasAnimatedSinceResize&&(vs.hasAnimatedSinceResize=!1,this.nodes.forEach(gp))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&u&&(c||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||c_,{onLayoutAnimationStart:v,onLayoutAnimationComplete:S}=u.getProps(),b=!this.targetLayout||!lp(this.targetLayout,m)||h,x=!f&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||f&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,x);const E={...Ja(p,"layout"),onPlay:v,onComplete:S};(u.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else f||gp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,_r(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(o_),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&hp(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(mp);return}this.isUpdating||this.nodes.forEach(e_),this.isUpdating=!1,this.nodes.forEach(t_),this.nodes.forEach(KE),this.nodes.forEach(XE),this.clearAllSnapshots();const a=tr.now();et.delta=Ar(0,1e3/60,a-et.timestamp),et.timestamp=a,et.isProcessing=!0,Qa.update.process(et),Qa.preRender.process(et),Qa.render.process(et),et.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Bc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(QE),this.sharedNodes.forEach(i_)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ae.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ae.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ge(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a){const c=n(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:c,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!sp(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,u=l!==this.prevTransformTemplateValue;s&&(a||Jr(this.latestValues)||u)&&(o(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return s&&(c=this.removeTransform(c)),l_(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:a}=this.options;if(!a)return Ge();const c=a.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(u_))){const{scroll:u}=this.root;u&&(Fn(c.x,u.offset.x),Fn(c.y,u.offset.y))}return c}removeElementScroll(s){var a;const c=Ge();if(Mt(c,s),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return c;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:d,options:f}=u;u!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&Mt(c,s),Fn(c.x,d.offset.x),Fn(c.y,d.offset.y))}return c}applyTransform(s,a=!1){const c=Ge();Mt(c,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&jn(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Jr(u.latestValues)&&jn(c,u.latestValues)}return Jr(this.latestValues)&&jn(c,this.latestValues),c}removeTransform(s){const a=Ge();Mt(a,s);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!l.instance||!Jr(l.latestValues))continue;Rc(l.latestValues)&&l.updateSnapshot();const u=Ge(),d=l.measurePageBox();Mt(u,d),op(a,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,u)}return Jr(this.latestValues)&&op(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==et.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var a;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==c;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=et.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ge(),this.relativeTargetOrigin=Ge(),Vo(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),Mt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ge(),this.targetWithTransforms=Ge()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),uE(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Mt(this.target,this.layout.layoutBox),Bh(this.target,this.targetDelta)):Mt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ge(),this.relativeTargetOrigin=Ge(),Vo(this.relativeTargetOrigin,this.target,h.target),Mt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ho&&Qr.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Rc(this.parent.latestValues)||Rh(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const a=this.getLead(),c=!!this.resumingFrom||this!==a;let l=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(l=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===et.timestamp&&(l=!1),l)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;Mt(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;bE(this.layoutCorrected,this.treeScale,this.path,c),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Ge());const{target:m}=a;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(tp(this.prevProjectionDelta.x,this.projectionDelta.x),tp(this.prevProjectionDelta.y,this.projectionDelta.y)),Lo(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!dp(this.projectionDelta.x,this.prevProjectionDelta.x)||!dp(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Ho&&Qr.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),s){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Rn(),this.projectionDelta=Rn(),this.projectionDeltaWithTransform=Rn()}setAnimationOrigin(s,a=!1){const c=this.snapshot,l=c?c.latestValues:{},u={...this.latestValues},d=Rn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=Ge(),h=c?c.source:void 0,m=this.layout?this.layout.source:void 0,p=h!==m,v=this.getStack(),S=!v||v.members.length<=1,b=!!(p&&!S&&this.options.crossfade===!0&&!this.path.some(a_));this.animationProgress=0;let x;this.mixTargetDelta=E=>{const C=E/1e3;vp(d.x,s.x,C),vp(d.y,s.y,C),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Vo(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),s_(this.relativeTarget,this.relativeTargetOrigin,f,C),x&&zE(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Ge()),Mt(x,this.relativeTarget)),p&&(this.animationValues=u,IE(u,l,this.latestValues,C,b,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(_r(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ae.update(()=>{vs.hasAnimatedSinceResize=!0,this.currentAnimation=qE(0,fp,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(fp),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:u}=s;if(!(!a||!c||!l)){if(this!==s&&this.layout&&l&&wp(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||Ge();const d=xt(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+d;const f=xt(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+f}Mt(a,c),jn(a,u),Lo(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new LE),this.sharedNodes.get(s).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:c}=s;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const l={};c.z&&Lc("z",s,l,this.animationValues);for(let u=0;u<zc.length;u++)Lc(`rotate${zc[u]}`,s,l,this.animationValues),Lc(`skew${zc[u]}`,s,l,this.animationValues);s.render();for(const u in l)s.setStaticValue(u,l[u]),this.animationValues&&(this.animationValues[u]=l[u]);s.scheduleRender()}getProjectionStyles(s){var a,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return GE;const l={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=bs(s==null?void 0:s.pointerEvents)||"",l.transform=u?u(this.latestValues,""):"none",l;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const p={};return this.options.layoutId&&(p.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,p.pointerEvents=bs(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Jr(this.latestValues)&&(p.transform=u?u({},""):"none",this.hasProjected=!1),p}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),l.transform=VE(this.projectionDeltaWithTransform,this.treeScale,f),u&&(l.transform=u(f,l.transform));const{x:h,y:m}=this.projectionDelta;l.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,d.animationValues?l.opacity=d===this?(c=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:l.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const p in ys){if(f[p]===void 0)continue;const{correct:v,applyTo:S}=ys[p],b=l.transform==="none"?f[p]:v(f[p],d);if(S){const x=S.length;for(let E=0;E<x;E++)l[S[E]]=b}else l[p]=b}return this.options.layoutId&&(l.pointerEvents=d===this?bs(s==null?void 0:s.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(mp),this.root.sharedNodes.clear()}}}function KE(e){e.updateLayout()}function XE(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:o}=e.layout,{animationType:i}=e.options,s=r.source!==e.layout.source;i==="size"?Ot(d=>{const f=s?r.measuredBox[d]:r.layoutBox[d],h=xt(f);f.min=n[d].min,f.max=f.min+h}):wp(i,r.layoutBox,n)&&Ot(d=>{const f=s?r.measuredBox[d]:r.layoutBox[d],h=xt(n[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const a=Rn();Lo(a,n,r.layoutBox);const c=Rn();s?Lo(c,e.applyTransform(o,!0),r.measuredBox):Lo(c,n,r.layoutBox);const l=!sp(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const m=Ge();Vo(m,r.layoutBox,f.layoutBox);const p=Ge();Vo(p,n,h.layoutBox),lp(m,p)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function ZE(e){Ho&&Qr.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function JE(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function QE(e){e.clearSnapshot()}function mp(e){e.clearMeasurements()}function e_(e){e.isLayoutDirty=!1}function t_(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function gp(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function r_(e){e.resolveTargetDelta()}function n_(e){e.calcProjection()}function o_(e){e.resetSkewAndRotation()}function i_(e){e.removeLeadSnapshot()}function vp(e,t,r){e.translate=Le(t.translate,0,r),e.scale=Le(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function yp(e,t,r,n){e.min=Le(t.min,r.min,n),e.max=Le(t.max,r.max,n)}function s_(e,t,r,n){yp(e.x,t.x,r.x,n),yp(e.y,t.y,r.y,n)}function a_(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const c_={duration:.45,ease:[.4,0,.1,1]},bp=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),xp=bp("applewebkit/")&&!bp("chrome/")?Math.round:Qe;function Sp(e){e.min=xp(e.min),e.max=xp(e.max)}function l_(e){Sp(e.x),Sp(e.y)}function wp(e,t,r){return e==="position"||e==="preserve-aspect"&&!lE(up(t),up(r),.2)}function u_(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const d_=pp({attachResizeListener:(e,t)=>vr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Vc={current:void 0},Cp=pp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Vc.current){const e=new d_({});e.mount(window),e.setOptions({layoutScroll:!0}),Vc.current=e}return Vc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),f_={pan:{Feature:TE},drag:{Feature:kE,ProjectionNode:Cp,MeasureLayout:Yh}};function kp(e,t){const r=t?"pointerenter":"pointerleave",n=t?"onHoverStart":"onHoverEnd",o=(i,s)=>{if(i.pointerType==="touch"||wh())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const c=a[n];c&&Ae.postRender(()=>c(i,s))};return yr(e.current,r,o,{passive:!e.getProps()[n]})}class h_ extends Mr{mount(){this.unmount=gr(kp(this.node,!0),kp(this.node,!1))}unmount(){}}class p_ extends Mr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=gr(vr(this.node.current,"focus",()=>this.onFocus()),vr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Tp=(e,t)=>t?e===t?!0:Tp(e,t.parentElement):!1;function Nc(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,ps(r))}class m_ extends Mr{constructor(){super(...arguments),this.removeStartListeners=Qe,this.removeEndListeners=Qe,this.removeAccessibleListeners=Qe,this.startPointerPress=(t,r)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),i=yr(window,"pointerup",(a,c)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:u,globalTapTarget:d}=this.node.getProps(),f=!d&&!Tp(this.node.current,a.target)?u:l;f&&Ae.update(()=>f(a,c))},{passive:!(n.onTap||n.onPointerUp)}),s=yr(window,"pointercancel",(a,c)=>this.cancelPress(a,c),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=gr(i,s),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||Nc("up",(c,l)=>{const{onTap:u}=this.node.getProps();u&&Ae.postRender(()=>u(c,l))})};this.removeEndListeners(),this.removeEndListeners=vr(this.node.current,"keyup",s),Nc("down",(a,c)=>{this.startPress(a,c)})},r=vr(this.node.current,"keydown",t),n=()=>{this.isPressing&&Nc("cancel",(i,s)=>this.cancelPress(i,s))},o=vr(this.node.current,"blur",n);this.removeAccessibleListeners=gr(r,o)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Ae.postRender(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!wh()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Ae.postRender(()=>n(t,r))}mount(){const t=this.node.getProps(),r=yr(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=vr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=gr(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Wc=new WeakMap,Hc=new WeakMap,g_=e=>{const t=Wc.get(e.target);t&&t(e)},v_=e=>{e.forEach(g_)};function y_({root:e,...t}){const r=e||document;Hc.has(r)||Hc.set(r,{});const n=Hc.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(v_,{root:e,...t})),n[o]}function b_(e,t,r){const n=y_(t);return Wc.set(e,r),n.observe(e),()=>{Wc.delete(e),n.unobserve(e)}}const x_={some:0,all:1};class S_ extends Mr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:o="some",once:i}=t,s={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:x_[o]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,i&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=l?u:d;f&&f(c)};return b_(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(w_(t,r))&&this.startObserver()}unmount(){}}function w_({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const C_={inView:{Feature:S_},tap:{Feature:m_},focus:{Feature:p_},hover:{Feature:h_}},k_={layout:{ProjectionNode:Cp,MeasureLayout:Yh}},Uc=g.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),xs=g.createContext({}),qc=typeof window<"u",Pp=qc?g.useLayoutEffect:g.useEffect,Ep=g.createContext({strict:!1});function T_(e,t,r,n,o){var i,s;const{visualElement:a}=g.useContext(xs),c=g.useContext(Ep),l=g.useContext(No),u=g.useContext(Uc).reducedMotion,d=g.useRef();n=n||c.renderer,!d.current&&n&&(d.current=n(e,{visualState:t,parent:a,props:r,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u}));const f=d.current,h=g.useContext(qh);f&&!f.projection&&o&&(f.type==="html"||f.type==="svg")&&P_(d.current,r,o,h);const m=g.useRef(!1);g.useInsertionEffect(()=>{f&&m.current&&f.update(r,l)});const p=r[ch],v=g.useRef(!!p&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,p))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,p)));return Pp(()=>{f&&(m.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Bc.render(f.render),v.current&&f.animationState&&f.animationState.animateChanges())}),g.useEffect(()=>{f&&(!v.current&&f.animationState&&f.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)===null||S===void 0||S.call(window,p)}),v.current=!1))}),f}function P_(e,t,r,n){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:c,layoutRoot:l}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:_p(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&Dn(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:n,layoutScroll:c,layoutRoot:l})}function _p(e){if(e)return e.options.allowProjection!==!1?e.projection:_p(e.parent)}function E_(e,t,r){return g.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Dn(r)&&(r.current=n))},[t])}function Ss(e){return os(e.animate)||Za.some(t=>Oo(e[t]))}function Ap(e){return!!(Ss(e)||e.variants)}function __(e,t){if(Ss(e)){const{initial:r,animate:n}=e;return{initial:r===!1||Oo(r)?r:void 0,animate:Oo(n)?n:void 0}}return e.inherit!==!1?t:{}}function A_(e){const{initial:t,animate:r}=__(e,g.useContext(xs));return g.useMemo(()=>({initial:t,animate:r}),[$p(t),$p(r)])}function $p(e){return Array.isArray(e)?e.join(" "):e}const Op={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Bn={};for(const e in Op)Bn[e]={isEnabled:t=>Op[e].some(r=>!!t[r])};function $_(e){for(const t in e)Bn[t]={...Bn[t],...e[t]}}const O_=Symbol.for("motionComponentSymbol");function M_({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:o}){e&&$_(e);function i(a,c){let l;const u={...g.useContext(Uc),...a,layoutId:I_(a)},{isStatic:d}=u,f=A_(a),h=n(a,d);if(!d&&qc){D_(u,e);const m=R_(u);l=m.MeasureLayout,f.visualElement=T_(o,h,u,t,m.ProjectionNode)}return P.jsxs(xs.Provider,{value:f,children:[l&&f.visualElement?P.jsx(l,{visualElement:f.visualElement,...u}):null,r(o,a,E_(h,f.visualElement,c),h,d,f.visualElement)]})}const s=g.forwardRef(i);return s[O_]=o,s}function I_({layoutId:e}){const t=g.useContext(jc).id;return t&&e!==void 0?t+"-"+e:e}function D_(e,t){const r=g.useContext(Ep).strict;if(process.env.NODE_ENV!=="production"&&t&&r){const n="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?An(!1,n):mr(!1,n)}}function R_(e){const{drag:t,layout:r}=Bn;if(!t&&!r)return{};const n={...t,...r};return{MeasureLayout:t!=null&&t.isEnabled(e)||r!=null&&r.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}const F_=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Gc(e){return typeof e!="string"||e.includes("-")?!1:!!(F_.indexOf(e)>-1||/[A-Z]/u.test(e))}function Mp(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(const i in r)e.style.setProperty(i,r[i])}const Ip=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Dp(e,t,r,n){Mp(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(Ip.has(o)?o:_c(o),t.attrs[o])}function Rp(e,{layout:t,layoutId:r}){return Yr.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!ys[e]||e==="opacity")}function Yc(e,t,r){var n;const{style:o}=e,i={};for(const s in o)(ot(o[s])||t.style&&ot(t.style[s])||Rp(s,e)||((n=r==null?void 0:r.getValue(s))===null||n===void 0?void 0:n.liveStyle)!==void 0)&&(i[s]=o[s]);return i}function Fp(e,t,r){const n=Yc(e,t,r);for(const o in e)if(ot(e[o])||ot(t[o])){const i=Mo.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;n[i]=e[o]}return n}function Kc(e){const t=g.useRef(null);return t.current===null&&(t.current=e()),t.current}function j_({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,i){const s={latestValues:B_(n,o,i,e),renderState:t()};return r&&(s.mount=a=>r(n,a,s)),s}const jp=e=>(t,r)=>{const n=g.useContext(xs),o=g.useContext(No),i=()=>j_(e,t,n,o);return r?i():Kc(i)};function B_(e,t,r,n){const o={},i=n(e,{});for(const f in i)o[f]=bs(i[f]);let{initial:s,animate:a}=e;const c=Ss(e),l=Ap(e);t&&l&&!c&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let u=r?r.initial===!1:!1;u=u||s===!1;const d=u?a:s;if(d&&typeof d!="boolean"&&!os(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const m=Ka(e,f[h]);if(m){const{transitionEnd:p,transition:v,...S}=m;for(const b in S){let x=S[b];if(Array.isArray(x)){const E=u?x.length-1:0;x=x[E]}x!==null&&(o[b]=x)}for(const b in p)o[b]=p[b]}}}return o}const Xc=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Bp=()=>({...Xc(),attrs:{}}),zp=(e,t)=>t&&typeof e=="number"?t.transform(e):e,z_={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},L_=Mo.length;function V_(e,t,r){let n="",o=!0;for(let i=0;i<L_;i++){const s=Mo[i],a=e[s];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(s.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||r){const l=zp(a,dc[s]);if(!c){o=!1;const u=z_[s]||s;n+=`${u}(${l}) `}r&&(t[s]=l)}}return n=n.trim(),r?n=r(t,o?"":n):o&&(n="none"),n}function Zc(e,t,r){const{style:n,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const c in t){const l=t[c];if(Yr.has(c)){s=!0;continue}else if(xf(c)){o[c]=l;continue}else{const u=zp(l,dc[c]);c.startsWith("origin")?(a=!0,i[c]=u):n[c]=u}}if(t.transform||(s||r?n.transform=V_(t,e.transform,r):n.transform&&(n.transform="none")),a){const{originX:c="50%",originY:l="50%",originZ:u=0}=i;n.transformOrigin=`${c} ${l} ${u}`}}function Lp(e,t,r){return typeof e=="string"?e:te.transform(t+r*e)}function N_(e,t,r){const n=Lp(t,e.x,e.width),o=Lp(r,e.y,e.height);return`${n} ${o}`}const W_={offset:"stroke-dashoffset",array:"stroke-dasharray"},H_={offset:"strokeDashoffset",array:"strokeDasharray"};function U_(e,t,r=1,n=0,o=!0){e.pathLength=1;const i=o?W_:H_;e[i.offset]=te.transform(-n);const s=te.transform(t),a=te.transform(r);e[i.array]=`${s} ${a}`}function Jc(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:c=0,...l},u,d){if(Zc(e,l,d),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h,dimensions:m}=e;f.transform&&(m&&(h.transform=f.transform),delete f.transform),m&&(o!==void 0||i!==void 0||h.transform)&&(h.transformOrigin=N_(m,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(f.x=t),r!==void 0&&(f.y=r),n!==void 0&&(f.scale=n),s!==void 0&&U_(f,s,a,c,!1)}const Qc=e=>typeof e=="string"&&e.toLowerCase()==="svg",q_={useVisualState:jp({scrapeMotionValuesFromProps:Fp,createRenderState:Bp,onMount:(e,t,{renderState:r,latestValues:n})=>{Ae.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),Ae.render(()=>{Jc(r,n,Qc(t.tagName),e.transformTemplate),Dp(t,r)})}})},G_={useVisualState:jp({scrapeMotionValuesFromProps:Yc,createRenderState:Xc})};function Vp(e,t,r){for(const n in t)!ot(t[n])&&!Rp(n,r)&&(e[n]=t[n])}function Y_({transformTemplate:e},t){return g.useMemo(()=>{const r=Xc();return Zc(r,t,e),Object.assign({},r.vars,r.style)},[t])}function K_(e,t){const r=e.style||{},n={};return Vp(n,r,e),Object.assign(n,Y_(e,t)),n}function X_(e,t){const r={},n=K_(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}const Z_=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ws(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Z_.has(e)}let Np=e=>!ws(e);function J_(e){e&&(Np=t=>t.startsWith("on")?!ws(t):e(t))}try{J_(require("@emotion/is-prop-valid").default)}catch{}function Q_(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||(Np(o)||r===!0&&ws(o)||!t&&!ws(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}function eA(e,t,r,n){const o=g.useMemo(()=>{const i=Bp();return Jc(i,t,Qc(n),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Vp(i,e.style,e),o.style={...i,...o.style}}return o}function tA(e=!1){return(r,n,o,{latestValues:i},s)=>{const c=(Gc(r)?eA:X_)(n,i,s,r),l=Q_(n,typeof r=="string",e),u=r!==g.Fragment?{...l,...c,ref:o}:{},{children:d}=n,f=g.useMemo(()=>ot(d)?d.get():d,[d]);return g.createElement(r,{...u,children:f})}}function rA(e,t){return function(n,{forwardMotionProps:o}={forwardMotionProps:!1}){const s={...Gc(n)?q_:G_,preloadedFeatures:e,useRender:tA(o),createVisualElement:t,Component:n};return M_(s)}}const el={current:null},Wp={current:!1};function nA(){if(Wp.current=!0,!!qc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>el.current=e.matches;e.addListener(t),t()}else el.current=!1}function oA(e,t,r){for(const n in t){const o=t[n],i=r[n];if(ot(o))e.addValue(n,o),process.env.NODE_ENV==="development"&&ns(o.version==="11.11.17",`Attempting to mix Motion versions ${o.version} with 11.11.17 may not work as expected.`);else if(ot(i))e.addValue(n,zo(o,{owner:e}));else if(i!==o)if(e.hasValue(n)){const s=e.getValue(n);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(n);e.addValue(n,zo(s!==void 0?s:o,{owner:e}))}}for(const n in r)t[n]===void 0&&e.removeValue(n);return t}const Hp=new WeakMap,iA=[...Ef,nt,Or],sA=e=>iA.find(Pf(e)),Up=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class aA{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ic,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=tr.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,Ae.render(this.render,!1,!0))};const{latestValues:c,renderState:l}=s;this.latestValues=c,this.baseTarget={...c},this.initialValues=r.initial?{...c}:{},this.renderState=l,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=Ss(r),this.isVariantNode=Ap(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(r,{},this);for(const f in d){const h=d[f];c[f]!==void 0&&ot(h)&&h.set(c[f],!1)}}mount(t){this.current=t,Hp.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),Wp.current||nA(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:el.current,process.env.NODE_ENV!=="production"&&ns(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Hp.delete(this.current),this.projection&&this.projection.unmount(),_r(this.notifyUpdate),_r(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}bindToMotionValue(t,r){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=Yr.has(t),o=r.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Ae.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=r.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{o(),i(),s&&s(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Bn){const r=Bn[t];if(!r)continue;const{isEnabled:n,Feature:o}=r;if(!this.features[t]&&o&&n(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ge()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<Up.length;n++){const o=Up[n];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,s=t[i];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=oA(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){const n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=zo(r===null?void 0:r,{owner:this}),this.addValue(t,n)),n}readValue(t,r){var n;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(yf(o)||vf(o))?o=parseFloat(o):!sA(o)&&Or.test(r)&&(o=Bf(t,r)),this.setBaseTarget(t,ot(o)?o.get():o)),ot(o)?o.get():o}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props;let o;if(typeof n=="string"||typeof n=="object"){const s=Ka(this.props,n,(r=this.presenceContext)===null||r===void 0?void 0:r.custom);s&&(o=s[t])}if(n&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ot(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Ec),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class qp extends aA{constructor(){super(...arguments),this.KeyframeResolver=zf}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}}function cA(e){return window.getComputedStyle(e)}class lA extends qp{constructor(){super(...arguments),this.type="html",this.renderInstance=Mp}readValueFromInstance(t,r){if(Yr.has(r)){const n=fc(r);return n&&n.default||0}else{const n=cA(t),o=(xf(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return Nh(t,r)}build(t,r,n){Zc(t,r,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return Yc(t,r,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ot(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class uA extends qp{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ge}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Yr.has(r)){const n=fc(r);return n&&n.default||0}return r=Ip.has(r)?r:_c(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,n){return Fp(t,r,n)}build(t,r,n){Jc(t,r,this.isSVGTag,n.transformTemplate)}renderInstance(t,r,n,o){Dp(t,r,n,o)}mount(t){this.isSVGTag=Qc(t.tagName),super.mount(t)}}const dA=(e,t)=>Gc(e)?new uA(t):new lA(t,{allowProjection:e!==g.Fragment}),fA=rA({...eE,...C_,...f_,...k_},dA),Ir=Gk(fA);class hA extends L.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function pA({children:e,isPresent:t}){const r=g.useId(),n=g.useRef(null),o=g.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=g.useContext(Uc);return g.useInsertionEffect(()=>{const{width:s,height:a,top:c,left:l}=o.current;if(t||!n.current||!s||!a)return;n.current.dataset.motionPopId=r;const u=document.createElement("style");return i&&(u.nonce=i),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
338
+ [data-motion-pop-id="${r}"] {
339
+ position: absolute !important;
340
+ width: ${s}px !important;
341
+ height: ${a}px !important;
342
+ top: ${c}px !important;
343
+ left: ${l}px !important;
344
+ }
345
+ `),()=>{document.head.removeChild(u)}},[t]),P.jsx(hA,{isPresent:t,childRef:n,sizeRef:o,children:L.cloneElement(e,{ref:n})})}const mA=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=Kc(gA),c=g.useId(),l=g.useCallback(d=>{a.set(d,!0);for(const f of a.values())if(!f)return;n&&n()},[a,n]),u=g.useMemo(()=>({id:c,initial:t,isPresent:r,custom:o,onExitComplete:l,register:d=>(a.set(d,!1),()=>a.delete(d))}),i?[Math.random(),l]:[r,l]);return g.useMemo(()=>{a.forEach((d,f)=>a.set(f,!1))},[r]),L.useEffect(()=>{!r&&!a.size&&n&&n()},[r]),s==="popLayout"&&(e=P.jsx(pA,{isPresent:r,children:e})),P.jsx(No.Provider,{value:u,children:e})};function gA(){return new Map}const Cs=e=>e.key||"";function Gp(e){const t=[];return g.Children.forEach(e,r=>{g.isValidElement(r)&&t.push(r)}),t}const zn=({children:e,exitBeforeEnter:t,custom:r,initial:n=!0,onExitComplete:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{mr(!t,"Replace exitBeforeEnter with mode='wait'");const a=g.useMemo(()=>Gp(e),[e]),c=a.map(Cs),l=g.useRef(!0),u=g.useRef(a),d=Kc(()=>new Map),[f,h]=g.useState(a),[m,p]=g.useState(a);Pp(()=>{l.current=!1,u.current=a;for(let b=0;b<m.length;b++){const x=Cs(m[b]);c.includes(x)?d.delete(x):d.get(x)!==!0&&d.set(x,!1)}},[m,c.length,c.join("-")]);const v=[];if(a!==f){let b=[...a];for(let x=0;x<m.length;x++){const E=m[x],C=Cs(E);c.includes(C)||(b.splice(x,0,E),v.push(E))}s==="wait"&&v.length&&(b=v),p(Gp(b)),h(a);return}process.env.NODE_ENV!=="production"&&s==="wait"&&m.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:S}=g.useContext(jc);return P.jsx(P.Fragment,{children:m.map(b=>{const x=Cs(b),E=a===m||c.includes(x),C=()=>{if(d.has(x))d.set(x,!0);else return;let $=!0;d.forEach(A=>{A||($=!1)}),$&&(S==null||S(),p(u.current),o&&o())};return P.jsx(mA,{isPresent:E,initial:!l.current||n?void 0:!1,custom:E?void 0:r,presenceAffectsLayout:i,mode:s,onExitComplete:E?void 0:C,children:b},x)})})},vA=(e,t)=>e.find(r=>r.id===t);function Yp(e,t){const r=Kp(e,t),n=r?e[r].findIndex(o=>o.id===t):-1;return{position:r,index:n}}function Kp(e,t){for(const[r,n]of Object.entries(e))if(vA(n,t))return r}function yA(e){const t=e.includes("right"),r=e.includes("left");let n="center";return t&&(n="flex-end"),r&&(n="flex-start"),{display:"flex",flexDirection:"column",alignItems:n}}function bA(e){const r=e==="top"||e==="bottom"?"0 auto":void 0,n=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:r,top:n,bottom:o,right:i,left:s}}var xA=/^((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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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)-.*))$/,SA=Dd(function(e){return xA.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),wA=SA,CA=function(t){return t!=="theme"},Xp=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?wA:CA},Zp=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},kA=!1,TA=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Vd(r,n,o),Ak(function(){return Nd(r,n,o)}),null},PA=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,s;r!==void 0&&(i=r.label,s=r.target);var a=Zp(t,r,n),c=a||Xp(o),l=!c("as");return function(){var u=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{d.push(u[0][0]);for(var f=u.length,h=1;h<f;h++)d.push(u[h],u[0][h])}var m=Ua(function(p,v,S){var b=l&&p.as||o,x="",E=[],C=p;if(p.theme==null){C={};for(var $ in p)C[$]=p[$];C.theme=L.useContext($o)}typeof p.className=="string"?x=xk(v.registered,E,p.className):p.className!=null&&(x=p.className+" ");var A=Ha(d.concat(E),v.registered,C);x+=v.key+"-"+A.name,s!==void 0&&(x+=" "+s);var O=l&&a===void 0?Xp(b):c,D={};for(var j in p)l&&j==="as"||O(j)&&(D[j]=p[j]);return D.className=x,S&&(D.ref=S),L.createElement(L.Fragment,null,L.createElement(TA,{cache:v,serialized:A,isStringTag:typeof b=="string"}),L.createElement(b,D))});return m.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=o,m.__emotion_styles=d,m.__emotion_forwardProp=a,Object.defineProperty(m,"toString",{value:function(){return s===void 0&&kA?"NO_COMPONENT_SELECTOR":"."+s}}),m.withComponent=function(p,v){return e(p,Gr({},r,v,{shouldForwardProp:Zp(m,v,!0)})).apply(void 0,d)},m}},EA=["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"],tl=PA.bind();EA.forEach(function(e){tl[e]=tl(e)});const _A=new Set([...xb,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),AA=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function $A(e){return(AA.has(e)||!_A.has(e))&&e[0]!=="_"}const OA=Sy(tl),MA=({baseStyle:e})=>t=>{const{theme:r,css:n,__css:o,sx:i,...s}=t,[a]=Ey(s,wb),c=Bt(e,t),l=cy({},o,c,wi(a),i),u=Yu(l)(t.theme);return n?[u,n]:u};function rl(e,t){const{baseStyle:r,...n}=t??{};n.shouldForwardProp||(n.shouldForwardProp=$A);const o=MA({baseStyle:r}),i=OA(e,n)(o);return g.forwardRef(function(c,l){const{children:u,...d}=c,{colorMode:f,forced:h}=Ga(),m=h?f:void 0;return g.createElement(i,{ref:l,"data-theme":m,...d},u)})}function IA(){const e=new Map;return new Proxy(rl,{apply(t,r,n){return rl(...n)},get(t,r){return e.has(r)||e.set(r,rl(r)),e.get(r)}})}const re=IA(),DA={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(n=1),{opacity:0,[r]:n*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},Jp=g.memo(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:o,requestClose:i=!1,position:s="bottom",duration:a=5e3,containerStyle:c,motionVariants:l=DA,toastSpacing:u="0.5rem"}=e,[d,f]=g.useState(a),h=PE();dn(()=>{h||n==null||n()},[h]),dn(()=>{f(a)},[a]);const m=()=>f(null),p=()=>f(a),v=()=>{h&&o()};g.useEffect(()=>{h&&i&&o()},[h,i,o]),Ly(v,d);const S=g.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:u,...c}),[c,u]),b=g.useMemo(()=>yA(s),[s]);return P.jsx(Ir.div,{layout:!0,className:"chakra-toast",variants:l,initial:"initial",animate:"animate",exit:"exit",onHoverStart:m,onHoverEnd:p,custom:{position:s},style:b,children:P.jsx(re.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:S,children:Bt(r,{id:t,onClose:v})})})});Jp.displayName="ToastComponent";function fe(e){return g.forwardRef(e)}var RA=typeof Element<"u",FA=typeof Map=="function",jA=typeof Set=="function",BA=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function ks(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!ks(e[n],t[n]))return!1;return!0}var i;if(FA&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;for(i=e.entries();!(n=i.next()).done;)if(!ks(n.value[1],t.get(n.value[0])))return!1;return!0}if(jA&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(BA&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(RA&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!ks(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}var zA=function(t,r){try{return ks(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const LA=Xs(zA);function Ts(){const e=g.useContext($o);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}function VA(){const e=Ga(),t=Ts();return{...e,theme:t}}function NA(e,t,r){if(t==null)return t;const n=o=>{var i,s;return(s=(i=e.__breakpoints)==null?void 0:i.asArray)==null?void 0:s[o]};return n(t)??n(r)??r}function WA(e,t,r){if(t==null)return t;const n=o=>{var i,s;return(s=(i=e.__cssMap)==null?void 0:i[o])==null?void 0:s.value};return n(t)??n(r)??r}function HA(e,t,r){const n=Ts();return UA(e,t,r)(n)}function UA(e,t,r){const n=Array.isArray(t)?t:[t],o=Array.isArray(r)?r:[r];return i=>{const s=o.filter(Boolean),a=n.map((c,l)=>{if(e==="breakpoints")return NA(i,c,s[l]??c);const u=`${e}.${c}`;return WA(i,u,s[l]??c)});return Array.isArray(t)?a:a[0]}}function Qp(e,t={}){const{styleConfig:r,...n}=t,{theme:o,colorMode:i}=VA(),s=e?Lu(o,`components.${e}`):void 0,a=r||s,c=_t({theme:o,colorMode:i},(a==null?void 0:a.defaultProps)??{},wi(so(n,["children"])),(u,d)=>u?void 0:d),l=g.useRef({});if(a){const d=Mb(a)(c);LA(l.current,d)||(l.current=d)}return l.current}function Dr(e,t={}){return Qp(e,t)}function en(e,t={}){return Qp(e,t)}const em={path:P.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[P.jsx("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"}),P.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),P.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Ln=fe((e,t)=>{const{as:r,viewBox:n,color:o="currentColor",focusable:i=!1,children:s,className:a,__css:c,...l}=e,u=ge("chakra-icon",a),d=Dr("Icon",e),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...c,...d},h={ref:t,focusable:i,className:u,__css:f},m=n??em.viewBox;if(r&&typeof r!="string")return P.jsx(re.svg,{as:r,...h,...l});const p=s??em.path;return P.jsx(re.svg,{verticalAlign:"middle",viewBox:m,...h,...l,children:p})});Ln.displayName="Icon";function qA(e){return P.jsx(Ln,{viewBox:"0 0 24 24",...e,children:P.jsx("path",{fill:"currentColor",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"})})}function GA(e){return P.jsx(Ln,{viewBox:"0 0 24 24",...e,children:P.jsx("path",{fill:"currentColor",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"})})}function tm(e){return P.jsx(Ln,{viewBox:"0 0 24 24",...e,children:P.jsx("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"})})}const YA=ts({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Ps=fe((e,t)=>{const r=Dr("Spinner",e),{label:n="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:s="transparent",className:a,...c}=vt(e),l=ge("chakra-spinner",a),u={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${YA} ${i} linear infinite`,...r};return P.jsx(re.div,{ref:t,__css:u,className:l,...c,children:n&&P.jsx(re.span,{srOnly:!0,children:n})})});Ps.displayName="Spinner";const[KA,nl]=st({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[XA,ol]=st({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),rm={info:{icon:GA,colorScheme:"blue"},warning:{icon:tm,colorScheme:"orange"},success:{icon:qA,colorScheme:"green"},error:{icon:tm,colorScheme:"red"},loading:{icon:Ps,colorScheme:"blue"}};function ZA(e){return rm[e].colorScheme}function JA(e){return rm[e].icon}const nm=fe(function(t,r){const{status:n="info",addRole:o=!0,...i}=vt(t),s=t.colorScheme??ZA(n),a=en("Alert",{...t,colorScheme:s}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...a.container};return P.jsx(KA,{value:{status:n},children:P.jsx(XA,{value:a,children:P.jsx(re.div,{"data-status":n,role:o?"alert":void 0,ref:r,...i,className:ge("chakra-alert",t.className),__css:c})})})});nm.displayName="Alert";function om(e){const{status:t}=nl(),r=JA(t),n=ol(),o=t==="loading"?n.spinner:n.icon;return P.jsx(re.span,{display:"inherit","data-status":t,...e,className:ge("chakra-alert__icon",e.className),__css:o,children:e.children||P.jsx(r,{h:"100%",w:"100%"})})}om.displayName="AlertIcon";const im=fe(function(t,r){const n=ol(),{status:o}=nl();return P.jsx(re.div,{ref:r,"data-status":o,...t,className:ge("chakra-alert__title",t.className),__css:n.title})});im.displayName="AlertTitle";const sm=fe(function(t,r){const{status:n}=nl(),o=ol(),i={display:"inline",...o.description};return P.jsx(re.div,{ref:r,"data-status":n,...t,className:ge("chakra-alert__desc",t.className),__css:i})});sm.displayName="AlertDescription";function QA(e){return P.jsx(Ln,{focusable:"false","aria-hidden":!0,...e,children:P.jsx("path",{fill:"currentColor",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"})})}const il=fe(function(t,r){const n=Dr("CloseButton",t),{children:o,isDisabled:i,__css:s,...a}=vt(t),c={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return P.jsx(re.button,{type:"button","aria-label":"Close",ref:r,disabled:i,__css:{...c,...n,...s},...a,children:o||P.jsx(QA,{width:"1em",height:"1em"})})});il.displayName="CloseButton";const e$=e=>{const{status:t,variant:r="solid",id:n,title:o,isClosable:i,onClose:s,description:a,colorScheme:c,icon:l}=e,u=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return P.jsxs(nm,{addRole:!1,status:t,variant:r,id:u==null?void 0:u.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:c,children:[P.jsx(om,{children:l}),P.jsxs(re.div,{flex:"1",maxWidth:"100%",children:[o&&P.jsx(im,{id:u==null?void 0:u.title,children:o}),a&&P.jsx(sm,{id:u==null?void 0:u.description,display:"block",children:a})]}),i&&P.jsx(il,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function t$(e={}){const{render:t,toastComponent:r=e$}=e;return o=>typeof t=="function"?t({...o,...e}):P.jsx(r,{...o,...e})}const Uo=r$({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]});function r$(e){let t=e;const r=new Set,n=o=>{t=o(t),r.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(r.add(o),()=>{n(()=>e),r.delete(o)}),removeToast:(o,i)=>{n(s=>({...s,[i]:s[i].filter(a=>a.id!=o)}))},notify:(o,i)=>{const s=n$(o,i),{position:a,id:c}=s;return n(l=>{const d=a.includes("top")?[s,...l[a]??[]]:[...l[a]??[],s];return{...l,[a]:d}}),c},update:(o,i)=>{o&&n(s=>{const a={...s},{position:c,index:l}=Yp(a,o);return c&&l!==-1&&(a[c][l]={...a[c][l],...i,message:t$(i)}),a})},closeAll:({positions:o}={})=>{n(i=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((c,l)=>(c[l]=i[l].map(u=>({...u,requestClose:!0})),c),{...i}))},close:o=>{n(i=>{const s=Kp(i,o);return s?{...i,[s]:i[s].map(a=>a.id==o?{...a,requestClose:!0}:a)}:i})},isActive:o=>!!Yp(Uo.getState(),o).position}}let am=0;function n$(e,t={}){am+=1;const r=t.id??am,n=t.position??"bottom";return{id:r,message:e,position:n,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Uo.removeToast(String(r),n),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}const[cm,o$]=st({strict:!1,name:"PortalContext"}),sl="chakra-portal",i$=".chakra-portal",s$=e=>P.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),a$=e=>{const{appendToParentPortal:t,children:r}=e,[n,o]=g.useState(null),i=g.useRef(null),[,s]=g.useState({});g.useEffect(()=>s({}),[]);const a=o$(),c=Uk();Lr(()=>{if(!n)return;const u=n.ownerDocument,d=t?a??u.body:u.body;if(!d)return;i.current=u.createElement("div"),i.current.className=sl,d.appendChild(i.current),s({});const f=i.current;return()=>{d.contains(f)&&d.removeChild(f)}},[n]);const l=c!=null&&c.zIndex?P.jsx(s$,{zIndex:c==null?void 0:c.zIndex,children:r}):r;return i.current?Au.createPortal(P.jsx(cm,{value:i.current,children:l}),i.current):P.jsx("span",{ref:u=>{u&&o(u)}})},c$=e=>{const{children:t,containerRef:r,appendToParentPortal:n}=e,o=r.current,i=o??(typeof window<"u"?document.body:void 0),s=g.useMemo(()=>{const c=o==null?void 0:o.ownerDocument.createElement("div");return c&&(c.className=sl),c},[o]),[,a]=g.useState({});return Lr(()=>a({}),[]),Lr(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?Au.createPortal(P.jsx(cm,{value:n?s:null,children:t}),s):null};function qo(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?P.jsx(c$,{containerRef:r,...n}):P.jsx(a$,{...n})}qo.className=sl,qo.selector=i$,qo.displayName="Portal";const[l$,AR]=st({name:"ToastOptionsContext",strict:!1}),u$=e=>{const t=g.useSyncExternalStore(Uo.subscribe,Uo.getState,Uo.getState),{motionVariants:r,component:n=Jp,portalProps:o,animatePresenceProps:i}=e,a=Object.keys(t).map(c=>{const l=t[c];return P.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${c}`,id:`chakra-toast-manager-${c}`,style:bA(c),children:P.jsx(zn,{...i,initial:!1,children:l.map(u=>P.jsx(n,{motionVariants:r,...u},u.id))})},c)});return P.jsx(qo,{...o,children:a})},d$=(e=>function({children:r,theme:n=e,toastOptions:o,...i}){return P.jsxs(qk,{theme:n,...i,children:[P.jsx(l$,{value:o==null?void 0:o.defaultOptions,children:r}),P.jsx(u$,{...o})]})})(kd);function lm(e){return e.sort((t,r)=>{const n=t.compareDocumentPosition(r);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})}const f$=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function um(e,t,r){let n=e+1;return r&&n>=t&&(n=0),n}function dm(e,t,r){let n=e-1;return r&&n<0&&(n=t),n}const al=typeof window<"u"?g.useLayoutEffect:g.useEffect,fm=e=>e;var h$=Object.defineProperty,p$=(e,t,r)=>t in e?h$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ne=(e,t,r)=>(p$(e,typeof t!="symbol"?t+"":t,r),r);class m${constructor(){Ne(this,"descendants",new Map),Ne(this,"register",t=>{if(t!=null)return f$(t)?this.registerNode(t):r=>{this.registerNode(r,t)}}),Ne(this,"unregister",t=>{this.descendants.delete(t);const r=lm(Array.from(this.descendants.keys()));this.assignIndex(r)}),Ne(this,"destroy",()=>{this.descendants.clear()}),Ne(this,"assignIndex",t=>{this.descendants.forEach(r=>{const n=t.indexOf(r.node);r.index=n,r.node.dataset.index=r.index.toString()})}),Ne(this,"count",()=>this.descendants.size),Ne(this,"enabledCount",()=>this.enabledValues().length),Ne(this,"values",()=>Array.from(this.descendants.values()).sort((r,n)=>r.index-n.index)),Ne(this,"enabledValues",()=>this.values().filter(t=>!t.disabled)),Ne(this,"item",t=>{if(this.count()!==0)return this.values()[t]}),Ne(this,"enabledItem",t=>{if(this.enabledCount()!==0)return this.enabledValues()[t]}),Ne(this,"first",()=>this.item(0)),Ne(this,"firstEnabled",()=>this.enabledItem(0)),Ne(this,"last",()=>this.item(this.descendants.size-1)),Ne(this,"lastEnabled",()=>{const t=this.enabledValues().length-1;return this.enabledItem(t)}),Ne(this,"indexOf",t=>{var r;return t?((r=this.descendants.get(t))==null?void 0:r.index)??-1:-1}),Ne(this,"enabledIndexOf",t=>t==null?-1:this.enabledValues().findIndex(r=>r.node.isSameNode(t))),Ne(this,"next",(t,r=!0)=>{const n=um(t,this.count(),r);return this.item(n)}),Ne(this,"nextEnabled",(t,r=!0)=>{const n=this.item(t);if(!n)return;const o=this.enabledIndexOf(n.node),i=um(o,this.enabledCount(),r);return this.enabledItem(i)}),Ne(this,"prev",(t,r=!0)=>{const n=dm(t,this.count()-1,r);return this.item(n)}),Ne(this,"prevEnabled",(t,r=!0)=>{const n=this.item(t);if(!n)return;const o=this.enabledIndexOf(n.node),i=dm(o,this.enabledCount()-1,r);return this.enabledItem(i)}),Ne(this,"registerNode",(t,r)=>{if(!t||this.descendants.has(t))return;const n=Array.from(this.descendants.keys()).concat(t),o=lm(n);r!=null&&r.disabled&&(r.disabled=!!r.disabled);const i={node:t,index:-1,...r};this.descendants.set(t,i),this.assignIndex(o)})}}function g$(){const[e,t]=st({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});return[e,t,()=>{const o=g.useRef(new m$);return al(()=>()=>o.current.destroy()),o.current},o=>{const i=t(),[s,a]=g.useState(-1),c=g.useRef(null);al(()=>()=>{c.current&&i.unregister(c.current)},[]),al(()=>{if(!c.current)return;const u=Number(c.current.dataset.index);s!=u&&!Number.isNaN(u)&&a(u)});const l=fm(o?i.register(o):i.register);return{descendants:i,index:s,enabledIndex:i.enabledIndexOf(c.current),register:dt(l,c)}}]}const Vn={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},tn={enter:{duration:.2,ease:Vn.easeOut},exit:{duration:.1,ease:Vn.easeIn}},br={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},v$=e=>e!=null&&parseInt(e.toString(),10)>0,hm={exit:{height:{duration:.2,ease:Vn.ease},opacity:{duration:.3,ease:Vn.ease}},enter:{height:{duration:.3,ease:Vn.ease},opacity:{duration:.4,ease:Vn.ease}}},y$={exit:({animateOpacity:e,startingHeight:t,transition:r,transitionEnd:n,delay:o})=>({...e&&{opacity:v$(t)?1:0},height:t,transitionEnd:n==null?void 0:n.exit,transition:(r==null?void 0:r.exit)??br.exit(hm.exit,o)}),enter:({animateOpacity:e,endingHeight:t,transition:r,transitionEnd:n,delay:o})=>({...e&&{opacity:1},height:t,transitionEnd:n==null?void 0:n.enter,transition:(r==null?void 0:r.enter)??br.enter(hm.enter,o)})},pm=g.forwardRef((e,t)=>{const{in:r,unmountOnExit:n,animateOpacity:o=!0,startingHeight:i=0,endingHeight:s="auto",style:a,className:c,transition:l,transitionEnd:u,animatePresenceProps:d,...f}=e,[h,m]=g.useState(!1);g.useEffect(()=>{const x=setTimeout(()=>{m(!0)});return()=>clearTimeout(x)},[]),_y({condition:Number(i)>0&&!!n,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const p=parseFloat(i.toString())>0,v={startingHeight:i,endingHeight:s,animateOpacity:o,transition:h?l:{enter:{duration:0}},transitionEnd:{enter:u==null?void 0:u.enter,exit:n?u==null?void 0:u.exit:{...u==null?void 0:u.exit,display:p?"block":"none"}}},S=n?r:!0,b=r||n?"enter":"exit";return P.jsx(zn,{...d,initial:!1,custom:v,children:S&&P.jsx(Ir.div,{ref:t,...f,className:ge("chakra-collapse",c),style:{overflow:"hidden",display:"block",...a},custom:v,variants:y$,initial:n?"exit":!1,animate:b,exit:"exit"})})});pm.displayName="Collapse";function b$(e){const{loading:t,src:r,srcSet:n,onLoad:o,onError:i,crossOrigin:s,sizes:a,ignoreFallback:c}=e,[l,u]=g.useState("pending");g.useEffect(()=>{u(r?"loading":"pending")},[r]);const d=g.useRef(),f=g.useCallback(()=>{if(!r)return;h();const m=new Image;m.src=r,s&&(m.crossOrigin=s),n&&(m.srcset=n),a&&(m.sizes=a),t&&(m.loading=t),m.onload=p=>{h(),u("loaded"),o==null||o(p)},m.onerror=p=>{h(),u("failed"),i==null||i(p)},d.current=m},[r,s,n,a,o,i,t]),h=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return Lr(()=>{if(!c)return l==="loading"&&f(),()=>{h()}},[l,f,c]),c?"loaded":l}const x$=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError",mm=re("div");mm.displayName="Box";const[OR,S$]=st({strict:!1,name:"ButtonGroupContext"});function Go(e){const{children:t,className:r,...n}=e,o=g.isValidElement(t)?g.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=ge("chakra-button__icon",r);return P.jsx(re.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:i,children:o})}Go.displayName="ButtonIcon";function cl(e){const{label:t,placement:r,spacing:n="0.5rem",children:o=P.jsx(Ps,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...a}=e,c=ge("chakra-button__spinner",i),l=r==="start"?"marginEnd":"marginStart",u=g.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[l]:t?n:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,l,n]);return P.jsx(re.div,{className:c,...a,__css:u,children:o})}cl.displayName="ButtonSpinner";function w$(e){const[t,r]=g.useState(!e);return{ref:g.useCallback(i=>{i&&r(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}const ll=fe((e,t)=>{const r=S$(),n=Dr("Button",{...r,...e}),{isDisabled:o=r==null?void 0:r.isDisabled,isLoading:i,isActive:s,children:a,leftIcon:c,rightIcon:l,loadingText:u,iconSpacing:d="0.5rem",type:f,spinner:h,spinnerPlacement:m="start",className:p,as:v,shouldWrapChildren:S,...b}=vt(e),x=g.useMemo(()=>{const A={...n==null?void 0:n._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...n,...!!r&&{_focus:A}}},[n,r]),{ref:E,type:C}=w$(v),$={rightIcon:l,leftIcon:c,iconSpacing:d,children:a,shouldWrapChildren:S};return P.jsxs(re.button,{disabled:o||i,ref:By(t,E),as:v,type:f??C,"data-active":de(s),"data-loading":de(i),__css:x,className:ge("chakra-button",p),...b,children:[i&&m==="start"&&P.jsx(cl,{className:"chakra-button__spinner--start",label:u,placement:"start",spacing:d,children:h}),i?u||P.jsx(re.span,{opacity:0,children:P.jsx(gm,{...$})}):P.jsx(gm,{...$}),i&&m==="end"&&P.jsx(cl,{className:"chakra-button__spinner--end",label:u,placement:"end",spacing:d,children:h})]})});ll.displayName="Button";function gm(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:o,shouldWrapChildren:i}=e;return i?P.jsxs("span",{style:{display:"contents"},children:[t&&P.jsx(Go,{marginEnd:o,children:t}),n,r&&P.jsx(Go,{marginStart:o,children:r})]}):P.jsxs(P.Fragment,{children:[t&&P.jsx(Go,{marginEnd:o,children:t}),n,r&&P.jsx(Go,{marginStart:o,children:r})]})}const vm=fe((e,t)=>{const{icon:r,children:n,isRound:o,"aria-label":i,...s}=e,a=r||n,c=g.isValidElement(a)?g.cloneElement(a,{"aria-hidden":!0,focusable:!1}):null;return P.jsx(ll,{px:"0",py:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":i,...s,children:c})});vm.displayName="IconButton";const[MR,C$]=st({name:"CheckboxGroupContext",strict:!1});function k$(e){return P.jsx(re.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:P.jsx("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function T$(e){return P.jsx(re.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:P.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function P$(e){const{isIndeterminate:t,isChecked:r,...n}=e,o=t?T$:k$;return r||t?P.jsx(re.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:P.jsx(o,{...n})}):null}var E$=()=>typeof document<"u",ym=!1,Yo=null,rn=!1,ul=!1,dl=new Set;function fl(e,t){dl.forEach(r=>r(e,t))}var _$=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function A$(e){return!(e.metaKey||!_$&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function bm(e){rn=!0,A$(e)&&(Yo="keyboard",fl("keyboard",e))}function Nn(e){if(Yo="pointer",e.type==="mousedown"||e.type==="pointerdown"){rn=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let r=!1;try{r=t.matches(":focus-visible")}catch{}if(r)return;fl("pointer",e)}}function $$(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function O$(e){$$(e)&&(rn=!0,Yo="virtual")}function M$(e){e.target===window||e.target===document||e.target instanceof Element&&e.target.hasAttribute("tabindex")||(!rn&&!ul&&(Yo="virtual",fl("virtual",e)),rn=!1,ul=!1)}function I$(){rn=!1,ul=!0}function xm(){return Yo!=="pointer"}function D$(){if(!E$()||ym)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...r){rn=!0,e.apply(this,r)},document.addEventListener("keydown",bm,!0),document.addEventListener("keyup",bm,!0),document.addEventListener("click",O$,!0),window.addEventListener("focus",M$,!0),window.addEventListener("blur",I$,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Nn,!0),document.addEventListener("pointermove",Nn,!0),document.addEventListener("pointerup",Nn,!0)):(document.addEventListener("mousedown",Nn,!0),document.addEventListener("mousemove",Nn,!0),document.addEventListener("mouseup",Nn,!0)),ym=!0}function R$(e){D$(),e(xm());const t=()=>e(xm());return dl.add(t),()=>{dl.delete(t)}}const[F$,j$]=st({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[B$,Sm]=st({strict:!1,name:"FormControlContext"});function z$(e){const{id:t,isRequired:r,isInvalid:n,isDisabled:o,isReadOnly:i,...s}=e,a=g.useId(),c=t||`field-${a}`,l=`${c}-label`,u=`${c}-feedback`,d=`${c}-helptext`,[f,h]=g.useState(!1),[m,p]=g.useState(!1),[v,S]=g.useState(!1),b=g.useCallback((A={},O=null)=>({id:d,...A,ref:dt(O,D=>{D&&p(!0)})}),[d]),x=g.useCallback((A={},O=null)=>({...A,ref:O,"data-focus":de(v),"data-disabled":de(o),"data-invalid":de(n),"data-readonly":de(i),id:A.id!==void 0?A.id:l,htmlFor:A.htmlFor!==void 0?A.htmlFor:c}),[c,o,v,n,i,l]),E=g.useCallback((A={},O=null)=>({id:u,...A,ref:dt(O,D=>{D&&h(!0)}),"aria-live":"polite"}),[u]),C=g.useCallback((A={},O=null)=>({...A,...s,ref:O,role:"group","data-focus":de(v),"data-disabled":de(o),"data-invalid":de(n),"data-readonly":de(i)}),[s,o,v,n,i]),$=g.useCallback((A={},O=null)=>({...A,ref:O,role:"presentation","aria-hidden":!0,children:A.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!i,isDisabled:!!o,isFocused:!!v,onFocus:()=>S(!0),onBlur:()=>S(!1),hasFeedbackText:f,setHasFeedbackText:h,hasHelpText:m,setHasHelpText:p,id:c,labelId:l,feedbackId:u,helpTextId:d,htmlProps:s,getHelpTextProps:b,getErrorMessageProps:E,getRootProps:C,getLabelProps:x,getRequiredIndicatorProps:$}}const L$=fe(function(t,r){const n=en("Form",t),o=vt(t),{getRootProps:i,htmlProps:s,...a}=z$(o),c=ge("chakra-form-control",t.className);return P.jsx(B$,{value:a,children:P.jsx(F$,{value:n,children:P.jsx(re.div,{...i({},r),className:c,__css:n.container})})})});L$.displayName="FormControl";const V$=fe(function(t,r){const n=Sm(),o=j$(),i=ge("chakra-form__helper-text",t.className);return P.jsx(re.div,{...n==null?void 0:n.getHelpTextProps(t,r),__css:o.helperText,className:i})});V$.displayName="FormHelperText";function hl(e){const{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:o,...i}=wm(e);return{...i,disabled:t,readOnly:n,required:o,"aria-invalid":Qs(r),"aria-required":Qs(o),"aria-readonly":Qs(n)}}function wm(e){const t=Sm(),{id:r,disabled:n,readOnly:o,required:i,isRequired:s,isInvalid:a,isReadOnly:c,isDisabled:l,onFocus:u,onBlur:d,...f}=e,h=e["aria-describedby"]?[e["aria-describedby"]]:[];return t!=null&&t.hasFeedbackText&&(t!=null&&t.isInvalid)&&h.push(t.feedbackId),t!=null&&t.hasHelpText&&h.push(t.helpTextId),{...f,"aria-describedby":h.join(" ")||void 0,id:r??(t==null?void 0:t.id),isDisabled:n??l??(t==null?void 0:t.isDisabled),isReadOnly:o??c??(t==null?void 0:t.isReadOnly),isRequired:i??s??(t==null?void 0:t.isRequired),isInvalid:a??(t==null?void 0:t.isInvalid),onFocus:Ue(t==null?void 0:t.onFocus,u),onBlur:Ue(t==null?void 0:t.onBlur,d)}}const N$={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function W$(e={}){const t=wm(e),{isDisabled:r,isReadOnly:n,isRequired:o,isInvalid:i,id:s,onBlur:a,onFocus:c,"aria-describedby":l}=t,{defaultChecked:u,isChecked:d,isFocusable:f,onChange:h,isIndeterminate:m,name:p,value:v,tabIndex:S=void 0,"aria-label":b,"aria-labelledby":x,"aria-invalid":E,...C}=e,$=so(C,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),A=Cr(h),O=Cr(a),D=Cr(c),[j,Y]=g.useState(!1),[ce,K]=g.useState(!1),[Z,ke]=g.useState(!1),[ie,R]=g.useState(!1);g.useEffect(()=>R$(Y),[]);const se=g.useRef(null),[ve,M]=g.useState(!0),[V,X]=g.useState(!!u),I=d!==void 0,B=I?d:V,U=g.useCallback(ne=>{if(n||r){ne.preventDefault();return}I||X(B?ne.currentTarget.checked:m?!0:ne.currentTarget.checked),A==null||A(ne)},[n,r,B,I,m,A]);Lr(()=>{se.current&&(se.current.indeterminate=!!m)},[m]),dn(()=>{r&&K(!1)},[r,K]),Lr(()=>{const ne=se.current;if(!(ne!=null&&ne.form))return;const Fe=()=>{X(!!u)};return ne.form.addEventListener("reset",Fe),()=>{var $e;return($e=ne.form)==null?void 0:$e.removeEventListener("reset",Fe)}},[]);const W=r&&!f,q=g.useCallback(ne=>{ne.key===" "&&R(!0)},[R]),G=g.useCallback(ne=>{ne.key===" "&&R(!1)},[R]);Lr(()=>{if(!se.current)return;se.current.checked!==B&&X(se.current.checked)},[se.current]);const ae=g.useCallback((ne={},Fe=null)=>{const $e=Ze=>{ce&&Ze.preventDefault(),R(!0)};return{...ne,ref:Fe,"data-active":de(ie),"data-hover":de(Z),"data-checked":de(B),"data-focus":de(ce),"data-focus-visible":de(ce&&j),"data-indeterminate":de(m),"data-disabled":de(r),"data-invalid":de(i),"data-readonly":de(n),"aria-hidden":!0,onMouseDown:Ue(ne.onMouseDown,$e),onMouseUp:Ue(ne.onMouseUp,()=>R(!1)),onMouseEnter:Ue(ne.onMouseEnter,()=>ke(!0)),onMouseLeave:Ue(ne.onMouseLeave,()=>ke(!1))}},[ie,B,r,ce,j,Z,m,i,n]),oe=g.useCallback((ne={},Fe=null)=>({...ne,ref:Fe,"data-active":de(ie),"data-hover":de(Z),"data-checked":de(B),"data-focus":de(ce),"data-focus-visible":de(ce&&j),"data-indeterminate":de(m),"data-disabled":de(r),"data-invalid":de(i),"data-readonly":de(n)}),[ie,B,r,ce,j,Z,m,i,n]),Me=g.useCallback((ne={},Fe=null)=>({...$,...ne,ref:dt(Fe,$e=>{$e&&M($e.tagName==="LABEL")}),onClick:Ue(ne.onClick,()=>{var $e;ve||(($e=se.current)==null||$e.click(),requestAnimationFrame(()=>{var Ze;(Ze=se.current)==null||Ze.focus({preventScroll:!0})}))}),"data-disabled":de(r),"data-checked":de(B),"data-invalid":de(i)}),[$,r,B,i,ve]),z=g.useCallback((ne={},Fe=null)=>({...ne,ref:dt(se,Fe),type:"checkbox",name:p,value:v,id:s,tabIndex:S,onChange:Ue(ne.onChange,U),onBlur:Ue(ne.onBlur,O,()=>K(!1)),onFocus:Ue(ne.onFocus,D,()=>K(!0)),onKeyDown:Ue(ne.onKeyDown,q),onKeyUp:Ue(ne.onKeyUp,G),required:o,checked:B,disabled:W,readOnly:n,"aria-label":b,"aria-labelledby":x,"aria-invalid":E?!!E:i,"aria-describedby":l,"aria-disabled":r,style:N$}),[p,v,s,U,O,D,q,G,o,B,W,n,b,x,E,i,l,r,S]),We=g.useCallback((ne={},Fe=null)=>({...ne,ref:Fe,onMouseDown:Ue(ne.onMouseDown,H$),"data-disabled":de(r),"data-checked":de(B),"data-invalid":de(i)}),[B,r,i]);return{state:{isInvalid:i,isFocused:ce,isChecked:B,isActive:ie,isHovered:Z,isIndeterminate:m,isDisabled:r,isReadOnly:n,isRequired:o},getRootProps:Me,getCheckboxProps:ae,getIndicatorProps:oe,getInputProps:z,getLabelProps:We,htmlProps:$}}function H$(e){e.preventDefault(),e.stopPropagation()}function U$(e){const[t,r]=g.useState(e),[n,o]=g.useState(!1);return e!==t&&(o(!0),r(e)),n}const q$={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},G$={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},Y$=ts({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),K$=ts({from:{opacity:0},to:{opacity:1}}),X$=ts({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),Cm=fe(function(t,r){const n=C$(),o={...n,...t},i=en("Checkbox",o),s=vt(t),{spacing:a="0.5rem",className:c,children:l,iconColor:u,iconSize:d,icon:f=P.jsx(P$,{}),isChecked:h,isDisabled:m=n==null?void 0:n.isDisabled,onChange:p,inputProps:v,...S}=s;let b=h;n!=null&&n.value&&s.value&&(b=n.value.includes(s.value));let x=p;n!=null&&n.onChange&&s.value&&(x=ju(n.onChange,p));const{state:E,getInputProps:C,getCheckboxProps:$,getLabelProps:A,getRootProps:O}=W$({...S,isDisabled:m,isChecked:b,onChange:x}),D=U$(E.isChecked),j=g.useMemo(()=>({animation:D?E.isIndeterminate?`${K$} 20ms linear, ${X$} 200ms linear`:`${Y$} 200ms linear`:void 0,...i.icon,...wi({fontSize:d,color:u})}),[u,d,D,E.isIndeterminate,i.icon]),Y=g.cloneElement(f,{__css:j,isIndeterminate:E.isIndeterminate,isChecked:E.isChecked});return P.jsxs(re.label,{__css:{...G$,...i.container},className:ge("chakra-checkbox",c),...O(),children:[P.jsx("input",{className:"chakra-checkbox__input",...C(v,r)}),P.jsx(re.span,{__css:{...q$,...i.control},className:"chakra-checkbox__control",...$(),children:Y}),l&&P.jsx(re.span,{className:"chakra-checkbox__label",...A(),__css:{marginStart:a,...i.label},children:l})]})});Cm.displayName="Checkbox";const km=fe(function(t,r){const{borderLeftWidth:n,borderBottomWidth:o,borderTopWidth:i,borderRightWidth:s,borderWidth:a,borderStyle:c,borderColor:l,...u}=Dr("Divider",t),{className:d,orientation:f="horizontal",__css:h,...m}=vt(t),p={vertical:{borderLeftWidth:n||s||a||"1px",height:"100%"},horizontal:{borderBottomWidth:o||i||a||"1px",width:"100%"}};return P.jsx(re.hr,{ref:r,"aria-orientation":f,...m,__css:{...u,border:"0",borderColor:l,borderStyle:c,...p[f],...h},className:ge("chakra-divider",d)})});km.displayName="Divider";function Ko(e){return typeof e=="function"}function Z$(...e){return t=>e.reduce((r,n)=>n(r),t)}const J$=(e=>function(...r){let n=[...r],o=r[r.length-1];return BC(o)&&n.length>1?n=n.slice(0,n.length-1):o=e,Z$(...n.map(i=>s=>Ko(i)?i(s):Q$(s,i)))(o)})(kd);function Q$(...e){return _t({},...e,Tm)}function Tm(e,t,r,n){if((Ko(e)||Ko(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...o)=>{const i=Ko(e)?e(...o):e,s=Ko(t)?t(...o):t;return _t({},i,s,Tm)};if(Si(e)&&Si(t))return[...e,...t];if(Si(e)&&ut(t))return t}const Pm=fe(function(t,r){const{direction:n,align:o,justify:i,wrap:s,basis:a,grow:c,shrink:l,...u}=t,d={display:"flex",flexDirection:n,alignItems:o,justifyContent:i,flexWrap:s,flexBasis:a,flexGrow:c,flexShrink:l};return P.jsx(re.div,{ref:r,__css:d,...u})});Pm.displayName="Flex";function eO(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}var pl={exports:{}};/*
346
+ object-assign
347
+ (c) Sindre Sorhus
348
+ @license MIT
349
+ */var ml,Em;function tO(){if(Em)return ml;Em=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},a=0;a<10;a++)s["_"+String.fromCharCode(a)]=a;var c=Object.getOwnPropertyNames(s).map(function(u){return s[u]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(u){l[u]=u}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ml=o()?Object.assign:function(i,s){for(var a,c=n(i),l,u=1;u<arguments.length;u++){a=Object(arguments[u]);for(var d in a)t.call(a,d)&&(c[d]=a[d]);if(e){l=e(a);for(var f=0;f<l.length;f++)r.call(a,l[f])&&(c[l[f]]=a[l[f]])}}return c},ml}var gl,_m;function vl(){if(_m)return gl;_m=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return gl=e,gl}var yl,Am;function $m(){return Am||(Am=1,yl=Function.call.bind(Object.prototype.hasOwnProperty)),yl}var bl,Om;function rO(){if(Om)return bl;Om=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=vl(),r={},n=$m();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(i,s,a,c,l){if(process.env.NODE_ENV!=="production"){for(var u in i)if(n(i,u)){var d;try{if(typeof i[u]!="function"){var f=Error((c||"React class")+": "+a+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=i[u](s,u,c,a,null,t)}catch(m){d=m}if(d&&!(d instanceof Error)&&e((c||"React class")+": type specification of "+a+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in r)){r[d.message]=!0;var h=l?l():"";e("Failed "+a+" type: "+d.message+(h??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},bl=o,bl}var xl,Mm;function nO(){if(Mm)return xl;Mm=1;var e=Na,t=tO(),r=vl(),n=$m(),o=rO(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(a){var c="Warning: "+a;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function s(){return null}return xl=function(a,c){var l=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(M){var V=M&&(l&&M[l]||M[u]);if(typeof V=="function")return V}var f="<<anonymous>>",h={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:b(),arrayOf:x,element:E(),elementType:C(),instanceOf:$,node:j(),objectOf:O,oneOf:A,oneOfType:D,shape:ce,exact:K};function m(M,V){return M===V?M!==0||1/M===1/V:M!==M&&V!==V}function p(M,V){this.message=M,this.data=V&&typeof V=="object"?V:{},this.stack=""}p.prototype=Error.prototype;function v(M){if(process.env.NODE_ENV!=="production")var V={},X=0;function I(U,W,q,G,ae,oe,Me){if(G=G||f,oe=oe||q,Me!==r){if(c){var z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw z.name="Invariant Violation",z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var We=G+":"+q;!V[We]&&X<3&&(i("You are manually calling a React.PropTypes validation function for the `"+oe+"` prop on `"+G+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),V[We]=!0,X++)}}return W[q]==null?U?W[q]===null?new p("The "+ae+" `"+oe+"` is marked as required "+("in `"+G+"`, but its value is `null`.")):new p("The "+ae+" `"+oe+"` is marked as required in "+("`"+G+"`, but its value is `undefined`.")):null:M(W,q,G,ae,oe)}var B=I.bind(null,!1);return B.isRequired=I.bind(null,!0),B}function S(M){function V(X,I,B,U,W,q){var G=X[I],ae=ie(G);if(ae!==M){var oe=R(G);return new p("Invalid "+U+" `"+W+"` of type "+("`"+oe+"` supplied to `"+B+"`, expected ")+("`"+M+"`."),{expectedType:M})}return null}return v(V)}function b(){return v(s)}function x(M){function V(X,I,B,U,W){if(typeof M!="function")return new p("Property `"+W+"` of component `"+B+"` has invalid PropType notation inside arrayOf.");var q=X[I];if(!Array.isArray(q)){var G=ie(q);return new p("Invalid "+U+" `"+W+"` of type "+("`"+G+"` supplied to `"+B+"`, expected an array."))}for(var ae=0;ae<q.length;ae++){var oe=M(q,ae,B,U,W+"["+ae+"]",r);if(oe instanceof Error)return oe}return null}return v(V)}function E(){function M(V,X,I,B,U){var W=V[X];if(!a(W)){var q=ie(W);return new p("Invalid "+B+" `"+U+"` of type "+("`"+q+"` supplied to `"+I+"`, expected a single ReactElement."))}return null}return v(M)}function C(){function M(V,X,I,B,U){var W=V[X];if(!e.isValidElementType(W)){var q=ie(W);return new p("Invalid "+B+" `"+U+"` of type "+("`"+q+"` supplied to `"+I+"`, expected a single ReactElement type."))}return null}return v(M)}function $(M){function V(X,I,B,U,W){if(!(X[I]instanceof M)){var q=M.name||f,G=ve(X[I]);return new p("Invalid "+U+" `"+W+"` of type "+("`"+G+"` supplied to `"+B+"`, expected ")+("instance of `"+q+"`."))}return null}return v(V)}function A(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function V(X,I,B,U,W){for(var q=X[I],G=0;G<M.length;G++)if(m(q,M[G]))return null;var ae=JSON.stringify(M,function(Me,z){var We=R(z);return We==="symbol"?String(z):z});return new p("Invalid "+U+" `"+W+"` of value `"+String(q)+"` "+("supplied to `"+B+"`, expected one of "+ae+"."))}return v(V)}function O(M){function V(X,I,B,U,W){if(typeof M!="function")return new p("Property `"+W+"` of component `"+B+"` has invalid PropType notation inside objectOf.");var q=X[I],G=ie(q);if(G!=="object")return new p("Invalid "+U+" `"+W+"` of type "+("`"+G+"` supplied to `"+B+"`, expected an object."));for(var ae in q)if(n(q,ae)){var oe=M(q,ae,B,U,W+"."+ae,r);if(oe instanceof Error)return oe}return null}return v(V)}function D(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var V=0;V<M.length;V++){var X=M[V];if(typeof X!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+se(X)+" at index "+V+"."),s}function I(B,U,W,q,G){for(var ae=[],oe=0;oe<M.length;oe++){var Me=M[oe],z=Me(B,U,W,q,G,r);if(z==null)return null;z.data&&n(z.data,"expectedType")&&ae.push(z.data.expectedType)}var We=ae.length>0?", expected one of type ["+ae.join(", ")+"]":"";return new p("Invalid "+q+" `"+G+"` supplied to "+("`"+W+"`"+We+"."))}return v(I)}function j(){function M(V,X,I,B,U){return Z(V[X])?null:new p("Invalid "+B+" `"+U+"` supplied to "+("`"+I+"`, expected a ReactNode."))}return v(M)}function Y(M,V,X,I,B){return new p((M||"React class")+": "+V+" type `"+X+"."+I+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+B+"`.")}function ce(M){function V(X,I,B,U,W){var q=X[I],G=ie(q);if(G!=="object")return new p("Invalid "+U+" `"+W+"` of type `"+G+"` "+("supplied to `"+B+"`, expected `object`."));for(var ae in M){var oe=M[ae];if(typeof oe!="function")return Y(B,U,W,ae,R(oe));var Me=oe(q,ae,B,U,W+"."+ae,r);if(Me)return Me}return null}return v(V)}function K(M){function V(X,I,B,U,W){var q=X[I],G=ie(q);if(G!=="object")return new p("Invalid "+U+" `"+W+"` of type `"+G+"` "+("supplied to `"+B+"`, expected `object`."));var ae=t({},X[I],M);for(var oe in ae){var Me=M[oe];if(n(M,oe)&&typeof Me!="function")return Y(B,U,W,oe,R(Me));if(!Me)return new p("Invalid "+U+" `"+W+"` key `"+oe+"` supplied to `"+B+"`.\nBad object: "+JSON.stringify(X[I],null," ")+`
350
+ Valid keys: `+JSON.stringify(Object.keys(M),null," "));var z=Me(q,oe,B,U,W+"."+oe,r);if(z)return z}return null}return v(V)}function Z(M){switch(typeof M){case"number":case"string":case"undefined":return!0;case"boolean":return!M;case"object":if(Array.isArray(M))return M.every(Z);if(M===null||a(M))return!0;var V=d(M);if(V){var X=V.call(M),I;if(V!==M.entries){for(;!(I=X.next()).done;)if(!Z(I.value))return!1}else for(;!(I=X.next()).done;){var B=I.value;if(B&&!Z(B[1]))return!1}}else return!1;return!0;default:return!1}}function ke(M,V){return M==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function ie(M){var V=typeof M;return Array.isArray(M)?"array":M instanceof RegExp?"object":ke(V,M)?"symbol":V}function R(M){if(typeof M>"u"||M===null)return""+M;var V=ie(M);if(V==="object"){if(M instanceof Date)return"date";if(M instanceof RegExp)return"regexp"}return V}function se(M){var V=R(M);switch(V){case"array":case"object":return"an "+V;case"boolean":case"date":case"regexp":return"a "+V;default:return V}}function ve(M){return!M.constructor||!M.constructor.name?f:M.constructor.name}return h.checkPropTypes=o,h.resetWarningCache=o.resetWarningCache,h.PropTypes=h,h},xl}var Sl,Im;function oO(){if(Im)return Sl;Im=1;var e=vl();function t(){}function r(){}return r.resetWarningCache=t,Sl=function(){function n(s,a,c,l,u,d){if(d!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},Sl}if(process.env.NODE_ENV!=="production"){var iO=Na,sO=!0;pl.exports=nO()(iO.isElement,sO)}else pl.exports=oO()();var Oe=pl.exports;const Dm=Xs(Oe);var wl="data-focus-lock",Rm="data-focus-lock-disabled",aO="data-no-focus-lock",cO="data-autofocus-inside",lO="data-no-autofocus";function Cl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function uO(e,t){var r=g.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var dO=typeof window<"u"?L.useLayoutEffect:L.useEffect,Fm=new WeakMap;function jm(e,t){var r=uO(null,function(n){return e.forEach(function(o){return Cl(o,n)})});return dO(function(){var n=Fm.get(r);if(n){var o=new Set(n),i=new Set(e),s=r.current;o.forEach(function(a){i.has(a)||Cl(a,null)}),i.forEach(function(a){o.has(a)||Cl(a,s)})}Fm.set(r,e)},[e]),r}var kl={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};process.env.NODE_ENV!=="production"&&Dm.node;var rr=function(){return rr=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},rr.apply(this,arguments)};function Bm(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function fO(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function zm(e){return e}function Lm(e,t){t===void 0&&(t=zm);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var s=t(i,n);return r.push(s),function(){r=r.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(n=!0;r.length;){var s=r;r=[],s.forEach(i)}r={push:function(a){return i(a)},filter:function(){return r}}},assignMedium:function(i){n=!0;var s=[];if(r.length){var a=r;r=[],a.forEach(i),s=r}var c=function(){var u=s;s=[],u.forEach(i)},l=function(){return Promise.resolve().then(c)};l(),r={push:function(u){s.push(u),l()},filter:function(u){return s=s.filter(u),r}}}};return o}function Tl(e,t){return t===void 0&&(t=zm),Lm(e,t)}function Vm(e){e===void 0&&(e={});var t=Lm(null);return t.options=rr({async:!0,ssr:!1},e),t}var Nm=function(e){var t=e.sideCar,r=Bm(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return L.createElement(n,rr({},r))};Nm.isSideCarExport=!0;function hO(e,t){return e.useMedium(t),Nm}var Wm=Tl({},function(e){var t=e.target,r=e.currentTarget;return{target:t,currentTarget:r}}),Hm=Tl(),pO=Tl(),mO=Vm({async:!0,ssr:typeof document<"u"}),gO=g.createContext(void 0),vO=[],Pl=L.forwardRef(function(t,r){var n,o=L.useState(),i=o[0],s=o[1],a=L.useRef(),c=L.useRef(!1),l=L.useRef(null),u=L.useState({}),d=u[1],f=t.children,h=t.disabled,m=h===void 0?!1:h,p=t.noFocusGuards,v=p===void 0?!1:p,S=t.persistentFocus,b=S===void 0?!1:S,x=t.crossFrame,E=x===void 0?!0:x,C=t.autoFocus,$=C===void 0?!0:C,A=t.allowTextSelection,O=t.group,D=t.className,j=t.whiteList,Y=t.hasPositiveIndices,ce=t.shards,K=ce===void 0?vO:ce,Z=t.as,ke=Z===void 0?"div":Z,ie=t.lockProps,R=ie===void 0?{}:ie,se=t.sideCar,ve=t.returnFocus,M=ve===void 0?!1:ve,V=t.focusOptions,X=t.onActivation,I=t.onDeactivation,B=L.useState({}),U=B[0],W=L.useCallback(function($e){var Ze=$e.captureFocusRestore;if(!l.current){var lt,He=(lt=document)==null?void 0:lt.activeElement;l.current=He,He!==document.body&&(l.current=Ze(He))}a.current&&X&&X(a.current),c.current=!0,d()},[X]),q=L.useCallback(function(){c.current=!1,I&&I(a.current),d()},[I]),G=L.useCallback(function($e){var Ze=l.current;if(Ze){var lt=(typeof Ze=="function"?Ze():Ze)||document.body,He=typeof M=="function"?M(lt):M;if(He){var Tt=typeof He=="object"?He:void 0;l.current=null,$e?Promise.resolve().then(function(){return lt.focus(Tt)}):lt.focus(Tt)}}},[M]),ae=L.useCallback(function($e){c.current&&Wm.useMedium($e)},[]),oe=Hm.useMedium,Me=L.useCallback(function($e){a.current!==$e&&(a.current=$e,s($e))},[]);process.env.NODE_ENV!=="production"&&(typeof A<"u"&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),L.useEffect(function(){!a.current&&typeof ke!="string"&&console.error("FocusLock: could not obtain ref to internal node")},[]));var z=Gr((n={},n[Rm]=m&&"disabled",n[wl]=O,n),R),We=v!==!0,kt=We&&v!=="tail",ne=jm([r,Me]),Fe=L.useMemo(function(){return{observed:a,shards:K,enabled:!m,active:c.current}},[m,c.current,K,i]);return L.createElement(L.Fragment,null,We&&[L.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:m?-1:0,style:kl}),Y?L.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:m?-1:1,style:kl}):null],!m&&L.createElement(se,{id:U,sideCar:mO,observed:i,disabled:m,persistentFocus:b,crossFrame:E,autoFocus:$,whiteList:j,shards:K,onActivation:W,onDeactivation:q,returnFocus:G,focusOptions:V,noFocusGuards:v}),L.createElement(ke,Gr({ref:ne},z,{className:D,onBlur:oe,onFocus:ae}),L.createElement(gO.Provider,{value:Fe},f)),kt&&L.createElement("div",{"data-focus-guard":!0,tabIndex:m?-1:0,style:kl}))});Pl.propTypes=process.env.NODE_ENV!=="production"?{children:Oe.node,disabled:Oe.bool,returnFocus:Oe.oneOfType([Oe.bool,Oe.object,Oe.func]),focusOptions:Oe.object,noFocusGuards:Oe.bool,hasPositiveIndices:Oe.bool,allowTextSelection:Oe.bool,autoFocus:Oe.bool,persistentFocus:Oe.bool,crossFrame:Oe.bool,group:Oe.string,className:Oe.string,whiteList:Oe.func,shards:Oe.arrayOf(Oe.any),as:Oe.oneOfType([Oe.string,Oe.func,Oe.object]),lockProps:Oe.object,onActivation:Oe.func,onDeactivation:Oe.func,sideCar:Oe.any.isRequired}:{};function El(e,t){return El=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},El(e,t)}function yO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,El(e,t)}function Xo(e){"@babel/helpers - typeof";return Xo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xo(e)}function bO(e,t){if(Xo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Xo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xO(e){var t=bO(e,"string");return Xo(t)=="symbol"?t:t+""}function SO(e,t,r){return(t=xO(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wO(e,t){if(process.env.NODE_ENV!=="production"){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.")}function r(n){return n.displayName||n.name||"Component"}return function(o){if(process.env.NODE_ENV!=="production"&&typeof o!="function")throw new Error("Expected WrappedComponent to be a React component.");var i=[],s;function a(){s=e(i.map(function(l){return l.props})),t(s)}var c=function(l){yO(u,l);function u(){return l.apply(this,arguments)||this}u.peek=function(){return s};var d=u.prototype;return d.componentDidMount=function(){i.push(this),a()},d.componentDidUpdate=function(){a()},d.componentWillUnmount=function(){var h=i.indexOf(this);i.splice(h,1),a()},d.render=function(){return g.createElement(o,this.props)},u}(g.PureComponent);return SO(c,"displayName","SideEffect("+r(o)+")"),c}}var nr=function(e){for(var t=Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t},nn=function(e){return Array.isArray(e)?e:[e]},Um=function(e){return Array.isArray(e)?e[0]:e},CO=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!t||!t.getPropertyValue?!1:t.getPropertyValue("display")==="none"||t.getPropertyValue("visibility")==="hidden"},qm=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},Gm=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},kO=function(e){return e.hasAttribute("inert")},TO=function(e,t){return!e||Gm(e)||!CO(e)&&!kO(e)&&t(qm(e))},Ym=function(e,t){var r=e.get(t);if(r!==void 0)return r;var n=TO(t,Ym.bind(void 0,e));return e.set(t,n),n},PO=function(e,t){return e&&!Gm(e)?AO(e)?t(qm(e)):!1:!0},Km=function(e,t){var r=e.get(t);if(r!==void 0)return r;var n=PO(t,Km.bind(void 0,e));return e.set(t,n),n},Xm=function(e){return e.dataset},EO=function(e){return e.tagName==="BUTTON"},Zm=function(e){return e.tagName==="INPUT"},Jm=function(e){return Zm(e)&&e.type==="radio"},_O=function(e){return!((Zm(e)||EO(e))&&(e.type==="hidden"||e.disabled))},AO=function(e){var t=e.getAttribute(lO);return![!0,"true",""].includes(t)},_l=function(e){var t;return!!(e&&(!((t=Xm(e))===null||t===void 0)&&t.focusGuard))},Al=function(e){return!_l(e)},$O=function(e){return!!e},OO=function(e,t){var r=Math.max(0,e.tabIndex),n=Math.max(0,t.tabIndex),o=r-n,i=e.index-t.index;if(o){if(!r)return 1;if(!n)return-1}return o||i},MO=function(e){return e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex},$l=function(e,t,r){return nr(e).map(function(n,o){var i=MO(n);return{node:n,index:o,tabIndex:r&&i===-1?(n.dataset||{}).focusGuard?0:-1:i}}).filter(function(n){return!t||n.tabIndex>=0}).sort(OO)},IO=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],Ol=IO.join(","),DO="".concat(Ol,", [data-focus-guard]"),Qm=function(e,t){return nr((e.shadowRoot||e).children).reduce(function(r,n){return r.concat(n.matches(t?DO:Ol)?[n]:[],Qm(n))},[])},RO=function(e,t){var r;return e instanceof HTMLIFrameElement&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?Wn([e.contentDocument.body],t):[e]},Wn=function(e,t){return e.reduce(function(r,n){var o,i=Qm(n,t),s=(o=[]).concat.apply(o,i.map(function(a){return RO(a,t)}));return r.concat(s,n.parentNode?nr(n.parentNode.querySelectorAll(Ol)).filter(function(a){return a===n}):[])},[])},FO=function(e){var t=e.querySelectorAll("[".concat(cO,"]"));return nr(t).map(function(r){return Wn([r])}).reduce(function(r,n){return r.concat(n)},[])},Ml=function(e,t){return nr(e).filter(function(r){return Ym(t,r)}).filter(function(r){return _O(r)})},eg=function(e,t){return t===void 0&&(t=new Map),nr(e).filter(function(r){return Km(t,r)})},Il=function(e,t,r){return $l(Ml(Wn(e,r),t),!0,r)},Zo=function(e,t){return $l(Ml(Wn(e),t),!1)},jO=function(e,t){return Ml(FO(e),t)},on=function(e,t){return e.shadowRoot?on(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:nr(e.children).some(function(r){var n;if(r instanceof HTMLIFrameElement){var o=(n=r.contentDocument)===null||n===void 0?void 0:n.body;return o?on(o,t):!1}return on(r,t)})},BO=function(e){for(var t=new Set,r=e.length,n=0;n<r;n+=1)for(var o=n+1;o<r;o+=1){var i=e[n].compareDocumentPosition(e[o]);(i&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter(function(s,a){return!t.has(a)})},tg=function(e){return e.parentNode?tg(e.parentNode):e},Dl=function(e){var t=nn(e);return t.filter(Boolean).reduce(function(r,n){var o=n.getAttribute(wl);return r.push.apply(r,o?BO(nr(tg(n).querySelectorAll("[".concat(wl,'="').concat(o,'"]:not([').concat(Rm,'="disabled"])')))):[n]),r},[])},zO=function(e){try{return e()}catch{return}},Jo=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?Jo(t.shadowRoot):t instanceof HTMLIFrameElement&&zO(function(){return t.contentWindow.document})?Jo(t.contentWindow.document):t}},LO=function(e,t){return e===t},VO=function(e,t){return!!nr(e.querySelectorAll("iframe")).some(function(r){return LO(r,t)})},rg=function(e,t){return t===void 0&&(t=Jo(Um(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:Dl(e).some(function(r){return on(r,t)||VO(r,t)})},NO=function(e){e===void 0&&(e=document);var t=Jo(e);return t?nr(e.querySelectorAll("[".concat(aO,"]"))).some(function(r){return on(r,t)}):!1},WO=function(e,t){return t.filter(Jm).filter(function(r){return r.name===e.name}).filter(function(r){return r.checked})[0]||e},Rl=function(e,t){return Jm(e)&&e.name?WO(e,t):e},HO=function(e){var t=new Set;return e.forEach(function(r){return t.add(Rl(r,e))}),e.filter(function(r){return t.has(r)})},ng=function(e){return e[0]&&e.length>1?Rl(e[0],e):e[0]},og=function(e,t){return e.indexOf(Rl(t,e))},Fl="NEW_FOCUS",UO=function(e,t,r,n,o){var i=e.length,s=e[0],a=e[i-1],c=_l(n);if(!(n&&e.indexOf(n)>=0)){var l=n!==void 0?r.indexOf(n):-1,u=o?r.indexOf(o):l,d=o?e.indexOf(o):-1;if(l===-1)return d!==-1?d:Fl;if(d===-1)return Fl;var f=l-u,h=r.indexOf(s),m=r.indexOf(a),p=HO(r),v=n!==void 0?p.indexOf(n):-1,S=v-(o?p.indexOf(o):l);if(!f&&d>=0||t.length===0)return d;var b=og(e,t[0]),x=og(e,t[t.length-1]);if(l<=h&&c&&Math.abs(f)>1)return x;if(l>=m&&c&&Math.abs(f)>1)return b;if(f&&Math.abs(S)>1)return d;if(l<=h)return x;if(l>m)return b;if(f)return Math.abs(f)>1?d:(i+d+f)%i}},qO=function(e){return function(t){var r,n=(r=Xm(t))===null||r===void 0?void 0:r.autofocus;return t.autofocus||n!==void 0&&n!=="false"||e.indexOf(t)>=0}},ig=function(e,t,r){var n=e.map(function(i){var s=i.node;return s}),o=eg(n.filter(qO(r)));return o&&o.length?ng(o):ng(eg(t))},jl=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&jl(e.parentNode.host||e.parentNode,t),t},Bl=function(e,t){for(var r=jl(e),n=jl(t),o=0;o<r.length;o+=1){var i=r[o];if(n.indexOf(i)>=0)return i}return!1},sg=function(e,t,r){var n=nn(e),o=nn(t),i=n[0],s=!1;return o.filter(Boolean).forEach(function(a){s=Bl(s||a,a)||s,r.filter(Boolean).forEach(function(c){var l=Bl(i,c);l&&(!s||on(l,s)?s=l:s=Bl(l,s))})}),s},ag=function(e,t){return e.reduce(function(r,n){return r.concat(jO(n,t))},[])},GO=function(e,t){var r=new Map;return t.forEach(function(n){return r.set(n.node,n)}),e.map(function(n){return r.get(n)}).filter($O)},YO=function(e,t){var r=Jo(nn(e).length>0?document:Um(e).ownerDocument),n=Dl(e).filter(Al),o=sg(r||e,e,n),i=new Map,s=Zo(n,i),a=s.filter(function(m){var p=m.node;return Al(p)});if(a[0]){var c=Zo([o],i).map(function(m){var p=m.node;return p}),l=GO(c,a),u=l.map(function(m){var p=m.node;return p}),d=l.filter(function(m){var p=m.tabIndex;return p>=0}).map(function(m){var p=m.node;return p}),f=UO(u,d,c,r,t);if(f===Fl){var h=ig(s,d,ag(n,i))||ig(s,u,ag(n,i));if(h)return{node:h};console.warn("focus-lock: cannot find any node to move focus into");return}return f===void 0?f:l[f]}},KO=function(e){var t=Dl(e).filter(Al),r=sg(e,e,t),n=$l(Wn([r],!0),!0,!0),o=Wn(t,!1);return n.map(function(i){var s=i.node,a=i.index;return{node:s,index:a,lockItem:o.indexOf(s)>=0,guard:_l(s)}})},zl=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},Ll=0,Vl=!1,cg=function(e,t,r){r===void 0&&(r={});var n=YO(e,t);if(!Vl&&n){if(Ll>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Vl=!0,setTimeout(function(){Vl=!1},1);return}Ll++,zl(n.node,r.focusOptions),Ll--}};function Qo(e){if(!e)return null;if(typeof WeakRef>"u")return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(t==null?void 0:t.deref())||null}}var XO=function(e){if(!e)return null;for(var t=[],r=e;r&&r!==document.body;)t.push({current:Qo(r),parent:Qo(r.parentElement),left:Qo(r.previousElementSibling),right:Qo(r.nextElementSibling)}),r=r.parentElement;return{element:Qo(e),stack:t,ownerDocument:e.ownerDocument}},ZO=function(e){var t,r,n,o,i;if(e)for(var s=e.stack,a=e.ownerDocument,c=new Map,l=0,u=s;l<u.length;l++){var d=u[l],f=(t=d.parent)===null||t===void 0?void 0:t.call(d);if(f&&a.contains(f)){for(var h=(r=d.left)===null||r===void 0?void 0:r.call(d),m=d.current(),p=f.contains(m)?m:void 0,v=(n=d.right)===null||n===void 0?void 0:n.call(d),S=Il([f],c),b=(i=(o=p??(h==null?void 0:h.nextElementSibling))!==null&&o!==void 0?o:v)!==null&&i!==void 0?i:h;b;){for(var x=0,E=S;x<E.length;x++){var C=E[x];if(b!=null&&b.contains(C.node))return C.node}b=b.nextElementSibling}if(S.length)return S[0].node}}},lg=function(e){var t=XO(e);return function(){return ZO(t)}},JO=function(e,t,r){if(!e||!t)return console.error("no element or scope given"),{};var n=nn(t);if(n.every(function(s){return!on(s,e)}))return console.error("Active element is not contained in the scope"),{};var o=r?Il(n,new Map):Zo(n,new Map),i=o.findIndex(function(s){var a=s.node;return a===e});if(i!==-1)return{prev:o[i-1],next:o[i+1],first:o[0],last:o[o.length-1]}},QO=function(e,t){var r=t?Il(nn(e),new Map):Zo(nn(e),new Map);return{first:r[0],last:r[r.length-1]}},eM=function(e){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},e)},ug=function(e,t,r){t===void 0&&(t={});var n=eM(t),o=JO(e,n.scope,n.onlyTabbable);if(o){var i=r(o,n.cycle);i&&zl(i.node,n.focusOptions)}},tM=function(e,t){t===void 0&&(t={}),ug(e,t,function(r,n){var o=r.next,i=r.first;return o||n&&i})},rM=function(e,t){t===void 0&&(t={}),ug(e,t,function(r,n){var o=r.prev,i=r.last;return o||n&&i})},dg=function(e,t,r){var n,o=QO(e,(n=t.onlyTabbable)!==null&&n!==void 0?n:!0),i=o[r];i&&zl(i.node,t.focusOptions)},nM=function(e,t){t===void 0&&(t={}),dg(e,t,"first")},oM=function(e,t){t===void 0&&(t={}),dg(e,t,"last")};function Nl(e){setTimeout(e,1)}var iM=function(t){return t&&"current"in t?t.current:t},fg=function(){return document&&document.activeElement===document.body},sM=function(){return fg()||NO()},Hn=null,St=null,hg=function(){return null},Un=null,ei=!1,Wl=!1,aM=function(){return!0},cM=function(t){return(Hn.whiteList||aM)(t)},lM=function(t,r){Un={observerNode:t,portaledElement:r}},uM=function(t){return Un&&Un.portaledElement===t};function pg(e,t,r,n){var o=null,i=e;do{var s=n[i];if(s.guard)s.node.dataset.focusAutoGuard&&(o=s);else if(s.lockItem){if(i!==e)return;o=null}else break}while((i+=r)!==t);o&&(o.node.tabIndex=0)}var dM=function(t){return t?!!ei:ei==="meanwhile"},fM=function e(t,r,n){return r&&(r.host===t&&(!r.activeElement||n.contains(r.activeElement))||r.parentNode&&e(t,r.parentNode,n))},hM=function(t,r){return r.some(function(n){return fM(t,n,n)})},mg=function(t){return Zo(t,new Map)},pM=function(t){return!mg([t.parentNode]).some(function(r){return r.node===t})},Es=function(){var t=!1;if(Hn){var r=Hn,n=r.observed,o=r.persistentFocus,i=r.autoFocus,s=r.shards,a=r.crossFrame,c=r.focusOptions,l=r.noFocusGuards,u=n||Un&&Un.portaledElement;if(fg()&&St&&(!document.body.contains(St)||pM(St))){St=null;var d=hg();d&&d.focus()}var f=document&&document.activeElement;if(u){var h=[u].concat(s.map(iM).filter(Boolean)),m=function(){if(!dM(a)||!l||!St||Wl)return!1;var x=mg(h),E=x.findIndex(function(C){var $=C.node;return $===St});return E===0||E===x.length-1};if((!f||cM(f))&&(o||m()||!sM()||!St&&i)&&(u&&!(rg(h)||f&&hM(f,h)||uM(f))&&(document&&!St&&f&&!i?(f.blur&&f.blur(),document.body.focus()):(t=cg(h,St,{focusOptions:c}),Un={})),ei=!1,St=document&&document.activeElement,hg=lg(St)),document&&f!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var p=document&&document.activeElement,v=KO(h),S=v.map(function(b){var x=b.node;return x}).indexOf(p);S>-1&&(v.filter(function(b){var x=b.guard,E=b.node;return x&&E.dataset.focusAutoGuard}).forEach(function(b){var x=b.node;return x.removeAttribute("tabIndex")}),pg(S,v.length,1,v),pg(S,-1,-1,v))}}}return t},gg=function(t){Es()&&t&&(t.stopPropagation(),t.preventDefault())},Hl=function(){return Nl(Es)},mM=function(t){var r=t.target,n=t.currentTarget;n.contains(r)||lM(n,r)},gM=function(){return null};process.env.NODE_ENV!=="production"&&Dm.node.isRequired;var vg=function(){Wl=!0},yg=function(){Wl=!1,ei="just",Nl(function(){ei="meanwhile"})},vM=function(){document.addEventListener("focusin",gg),document.addEventListener("focusout",Hl),window.addEventListener("focus",vg),window.addEventListener("blur",yg)},yM=function(){document.removeEventListener("focusin",gg),document.removeEventListener("focusout",Hl),window.removeEventListener("focus",vg),window.removeEventListener("blur",yg)};function bM(e){return e.filter(function(t){var r=t.disabled;return!r})}var bg={moveFocusInside:cg,focusInside:rg,focusNextElement:tM,focusPrevElement:rM,focusFirstElement:nM,focusLastElement:oM,captureFocusRestore:lg};function xM(e){var t=e.slice(-1)[0];t&&!Hn&&vM();var r=Hn,n=r&&t&&t.id===r.id;Hn=t,r&&!n&&(r.onDeactivation(),e.filter(function(o){var i=o.id;return i===r.id}).length||r.returnFocus(!t)),t?(St=null,(!n||r.observed!==t.observed)&&t.onActivation(bg),Es(),Nl(Es)):(yM(),St=null)}Wm.assignSyncMedium(mM),Hm.assignMedium(Hl),pO.assignMedium(function(e){return e(bg)});const SM=wO(bM,xM)(gM);var Ul=L.forwardRef(function(t,r){return L.createElement(Pl,Gr({sideCar:SM,ref:r},t))}),xg=Pl.propTypes||{};xg.sideCar;var wM=eO(xg,["sideCar"]);Ul.propTypes=process.env.NODE_ENV!=="production"?wM:{};const CM=Ul.default??Ul,Sg=e=>{const{initialFocusRef:t,finalFocusRef:r,contentRef:n,restoreFocus:o,children:i,isDisabled:s,autoFocus:a,persistentFocus:c,lockFocusAcrossFrames:l}=e,u=g.useCallback(()=>{t!=null&&t.current?t.current.focus():n!=null&&n.current&&by(n.current).length===0&&requestAnimationFrame(()=>{var m;(m=n.current)==null||m.focus()})},[t,n]),d=g.useCallback(()=>{var h;(h=r==null?void 0:r.current)==null||h.focus()},[r]),f=o&&!r;return P.jsx(CM,{crossFrame:l,persistentFocus:c,autoFocus:a,disabled:s,onActivation:u,onDeactivation:d,returnFocus:f,children:i})};Sg.displayName="FocusLock";const wg=fe(function(t,r){const{templateAreas:n,gap:o,rowGap:i,columnGap:s,column:a,row:c,autoFlow:l,autoRows:u,templateRows:d,autoColumns:f,templateColumns:h,...m}=t,p={display:"grid",gridTemplateAreas:n,gridGap:o,gridRowGap:i,gridColumnGap:s,gridAutoColumns:f,gridColumn:a,gridRow:c,gridAutoFlow:l,gridAutoRows:u,gridTemplateRows:d,gridTemplateColumns:h};return P.jsx(re.div,{ref:r,__css:p,...m})});wg.displayName="Grid";function ti(e){const{viewBox:t="0 0 24 24",d:r,displayName:n,defaultProps:o={}}=e,i=g.Children.toArray(e.path),s=fe((a,c)=>P.jsx(Ln,{ref:c,viewBox:t,...o,...a,children:i.length?i:P.jsx("path",{fill:"currentColor",d:r})}));return s.displayName=n,s}const ql=fe(function(t,r){const{htmlWidth:n,htmlHeight:o,alt:i,...s}=t;return P.jsx("img",{width:n,height:o,ref:r,alt:i,...s})});ql.displayName="NativeImage";const Cg=fe(function(t,r){const{fallbackSrc:n,fallback:o,src:i,srcSet:s,align:a,fit:c,loading:l,ignoreFallback:u,crossOrigin:d,fallbackStrategy:f="beforeLoadOrError",referrerPolicy:h,...m}=t,p=n!==void 0||o!==void 0,v=l!=null||u||!p,S=b$({...t,crossOrigin:d,ignoreFallback:v}),b=x$(S,f),x={ref:r,objectFit:c,objectPosition:a,...v?m:so(m,["onError","onLoad"])};return b?o||P.jsx(re.img,{as:ql,className:"chakra-image__placeholder",src:n,...x}):P.jsx(re.img,{as:ql,src:i,srcSet:s,crossOrigin:d,loading:l,referrerPolicy:h,className:"chakra-image",...x})});Cg.displayName="Image";const Gl=fe(function(t,r){const{htmlSize:n,...o}=t,i=en("Input",o),s=vt(o),a=hl(s),c=ge("chakra-input",t.className);return P.jsx(re.input,{size:n,...a,__css:i.field,ref:r,className:c})});Gl.displayName="Input",Gl.id="Input";function kM(e,t,r,n){if(t==null)return n;if(!n)return e.find(s=>r(s).toLowerCase().startsWith(t.toLowerCase()));const o=e.filter(i=>r(i).toLowerCase().startsWith(t.toLowerCase()));if(o.length>0){let i;return o.includes(n)?(i=o.indexOf(n)+1,i===o.length&&(i=0),o[i]):(i=e.indexOf(o[0]),e[i])}return n}function TM(e){const{key:t}=e;return t.length===1||t.length>1&&/[^a-zA-Z0-9]/.test(t)}function PM(e={}){const{timeout:t=300,preventDefault:r=()=>!0}=e,[n,o]=g.useState([]),i=g.useRef(),s=()=>{i.current&&(clearTimeout(i.current),i.current=null)},a=()=>{s(),i.current=setTimeout(()=>{o([]),i.current=null},t)};g.useEffect(()=>s,[]);function c(l){return u=>{if(u.key==="Backspace"){const d=[...n];d.pop(),o(d);return}if(TM(u)){const d=n.concat(u.key);r(u)&&(u.preventDefault(),u.stopPropagation()),o(d),l(d.join("")),a()}}}return c}var pt="top",It="bottom",Dt="right",mt="left",Yl="auto",ri=[pt,It,Dt,mt],qn="start",ni="end",EM="clippingParents",kg="viewport",oi="popper",_M="reference",Tg=ri.reduce(function(e,t){return e.concat([t+"-"+qn,t+"-"+ni])},[]),Pg=[].concat(ri,[Yl]).reduce(function(e,t){return e.concat([t,t+"-"+qn,t+"-"+ni])},[]),AM="beforeRead",$M="read",OM="afterRead",MM="beforeMain",IM="main",DM="afterMain",RM="beforeWrite",FM="write",jM="afterWrite",BM=[AM,$M,OM,MM,IM,DM,RM,FM,jM];function or(e){return e?(e.nodeName||"").toLowerCase():null}function wt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function sn(e){var t=wt(e).Element;return e instanceof t||e instanceof Element}function Rt(e){var t=wt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Kl(e){if(typeof ShadowRoot>"u")return!1;var t=wt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function zM(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},i=t.elements[r];!Rt(i)||!or(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function LM(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],i=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),a=s.reduce(function(c,l){return c[l]="",c},{});!Rt(o)||!or(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const VM={name:"applyStyles",enabled:!0,phase:"write",fn:zM,effect:LM,requires:["computeStyles"]};function ir(e){return e.split("-")[0]}var an=Math.max,_s=Math.min,Gn=Math.round;function Xl(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Eg(){return!/^((?!chrome|android).)*safari/i.test(Xl())}function Yn(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&Rt(e)&&(o=e.offsetWidth>0&&Gn(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Gn(n.height)/e.offsetHeight||1);var s=sn(e)?wt(e):window,a=s.visualViewport,c=!Eg()&&r,l=(n.left+(c&&a?a.offsetLeft:0))/o,u=(n.top+(c&&a?a.offsetTop:0))/i,d=n.width/o,f=n.height/i;return{width:d,height:f,top:u,right:l+d,bottom:u+f,left:l,x:l,y:u}}function Zl(e){var t=Yn(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function _g(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Kl(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function xr(e){return wt(e).getComputedStyle(e)}function NM(e){return["table","td","th"].indexOf(or(e))>=0}function Rr(e){return((sn(e)?e.ownerDocument:e.document)||window.document).documentElement}function As(e){return or(e)==="html"?e:e.assignedSlot||e.parentNode||(Kl(e)?e.host:null)||Rr(e)}function Ag(e){return!Rt(e)||xr(e).position==="fixed"?null:e.offsetParent}function WM(e){var t=/firefox/i.test(Xl()),r=/Trident/i.test(Xl());if(r&&Rt(e)){var n=xr(e);if(n.position==="fixed")return null}var o=As(e);for(Kl(o)&&(o=o.host);Rt(o)&&["html","body"].indexOf(or(o))<0;){var i=xr(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function ii(e){for(var t=wt(e),r=Ag(e);r&&NM(r)&&xr(r).position==="static";)r=Ag(r);return r&&(or(r)==="html"||or(r)==="body"&&xr(r).position==="static")?t:r||WM(e)||t}function Jl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function si(e,t,r){return an(e,_s(t,r))}function HM(e,t,r){var n=si(e,t,r);return n>r?r:n}function $g(){return{top:0,right:0,bottom:0,left:0}}function Og(e){return Object.assign({},$g(),e)}function Mg(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var UM=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Og(typeof t!="number"?t:Mg(t,ri))};function qM(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,s=r.modifiersData.popperOffsets,a=ir(r.placement),c=Jl(a),l=[mt,Dt].indexOf(a)>=0,u=l?"height":"width";if(!(!i||!s)){var d=UM(o.padding,r),f=Zl(i),h=c==="y"?pt:mt,m=c==="y"?It:Dt,p=r.rects.reference[u]+r.rects.reference[c]-s[c]-r.rects.popper[u],v=s[c]-r.rects.reference[c],S=ii(i),b=S?c==="y"?S.clientHeight||0:S.clientWidth||0:0,x=p/2-v/2,E=d[h],C=b-f[u]-d[m],$=b/2-f[u]/2+x,A=si(E,$,C),O=c;r.modifiersData[n]=(t={},t[O]=A,t.centerOffset=A-$,t)}}function GM(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||_g(t.elements.popper,o)&&(t.elements.arrow=o))}const YM={name:"arrow",enabled:!0,phase:"main",fn:qM,effect:GM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Kn(e){return e.split("-")[1]}var KM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function XM(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Gn(r*o)/o||0,y:Gn(n*o)/o||0}}function Ig(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=s.x,h=f===void 0?0:f,m=s.y,p=m===void 0?0:m,v=typeof u=="function"?u({x:h,y:p}):{x:h,y:p};h=v.x,p=v.y;var S=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),x=mt,E=pt,C=window;if(l){var $=ii(r),A="clientHeight",O="clientWidth";if($===wt(r)&&($=Rr(r),xr($).position!=="static"&&a==="absolute"&&(A="scrollHeight",O="scrollWidth")),$=$,o===pt||(o===mt||o===Dt)&&i===ni){E=It;var D=d&&$===C&&C.visualViewport?C.visualViewport.height:$[A];p-=D-n.height,p*=c?1:-1}if(o===mt||(o===pt||o===It)&&i===ni){x=Dt;var j=d&&$===C&&C.visualViewport?C.visualViewport.width:$[O];h-=j-n.width,h*=c?1:-1}}var Y=Object.assign({position:a},l&&KM),ce=u===!0?XM({x:h,y:p},wt(r)):{x:h,y:p};if(h=ce.x,p=ce.y,c){var K;return Object.assign({},Y,(K={},K[E]=b?"0":"",K[x]=S?"0":"",K.transform=(C.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",K))}return Object.assign({},Y,(t={},t[E]=b?p+"px":"",t[x]=S?h+"px":"",t.transform="",t))}function ZM(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,s=i===void 0?!0:i,a=r.roundOffsets,c=a===void 0?!0:a,l={placement:ir(t.placement),variation:Kn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ig(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ig(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const JM={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ZM,data:{}};var $s={passive:!0};function QM(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,s=n.resize,a=s===void 0?!0:s,c=wt(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&l.forEach(function(u){u.addEventListener("scroll",r.update,$s)}),a&&c.addEventListener("resize",r.update,$s),function(){i&&l.forEach(function(u){u.removeEventListener("scroll",r.update,$s)}),a&&c.removeEventListener("resize",r.update,$s)}}const eI={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:QM,data:{}};var tI={left:"right",right:"left",bottom:"top",top:"bottom"};function Os(e){return e.replace(/left|right|bottom|top/g,function(t){return tI[t]})}var rI={start:"end",end:"start"};function Dg(e){return e.replace(/start|end/g,function(t){return rI[t]})}function Ql(e){var t=wt(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function eu(e){return Yn(Rr(e)).left+Ql(e).scrollLeft}function nI(e,t){var r=wt(e),n=Rr(e),o=r.visualViewport,i=n.clientWidth,s=n.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;var l=Eg();(l||!l&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a+eu(e),y:c}}function oI(e){var t,r=Rr(e),n=Ql(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=an(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=an(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+eu(e),c=-n.scrollTop;return xr(o||r).direction==="rtl"&&(a+=an(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:c}}function tu(e){var t=xr(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Rg(e){return["html","body","#document"].indexOf(or(e))>=0?e.ownerDocument.body:Rt(e)&&tu(e)?e:Rg(As(e))}function ai(e,t){var r;t===void 0&&(t=[]);var n=Rg(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=wt(n),s=o?[i].concat(i.visualViewport||[],tu(n)?n:[]):n,a=t.concat(s);return o?a:a.concat(ai(As(s)))}function ru(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function iI(e,t){var r=Yn(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Fg(e,t,r){return t===kg?ru(nI(e,r)):sn(t)?iI(t,r):ru(oI(Rr(e)))}function sI(e){var t=ai(As(e)),r=["absolute","fixed"].indexOf(xr(e).position)>=0,n=r&&Rt(e)?ii(e):e;return sn(n)?t.filter(function(o){return sn(o)&&_g(o,n)&&or(o)!=="body"}):[]}function aI(e,t,r,n){var o=t==="clippingParents"?sI(e):[].concat(t),i=[].concat(o,[r]),s=i[0],a=i.reduce(function(c,l){var u=Fg(e,l,n);return c.top=an(u.top,c.top),c.right=_s(u.right,c.right),c.bottom=_s(u.bottom,c.bottom),c.left=an(u.left,c.left),c},Fg(e,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function jg(e){var t=e.reference,r=e.element,n=e.placement,o=n?ir(n):null,i=n?Kn(n):null,s=t.x+t.width/2-r.width/2,a=t.y+t.height/2-r.height/2,c;switch(o){case pt:c={x:s,y:t.y-r.height};break;case It:c={x:s,y:t.y+t.height};break;case Dt:c={x:t.x+t.width,y:a};break;case mt:c={x:t.x-r.width,y:a};break;default:c={x:t.x,y:t.y}}var l=o?Jl(o):null;if(l!=null){var u=l==="y"?"height":"width";switch(i){case qn:c[l]=c[l]-(t[u]/2-r[u]/2);break;case ni:c[l]=c[l]+(t[u]/2-r[u]/2);break}}return c}function ci(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,s=i===void 0?e.strategy:i,a=r.boundary,c=a===void 0?EM:a,l=r.rootBoundary,u=l===void 0?kg:l,d=r.elementContext,f=d===void 0?oi:d,h=r.altBoundary,m=h===void 0?!1:h,p=r.padding,v=p===void 0?0:p,S=Og(typeof v!="number"?v:Mg(v,ri)),b=f===oi?_M:oi,x=e.rects.popper,E=e.elements[m?b:f],C=aI(sn(E)?E:E.contextElement||Rr(e.elements.popper),c,u,s),$=Yn(e.elements.reference),A=jg({reference:$,element:x,strategy:"absolute",placement:o}),O=ru(Object.assign({},x,A)),D=f===oi?O:$,j={top:C.top-D.top+S.top,bottom:D.bottom-C.bottom+S.bottom,left:C.left-D.left+S.left,right:D.right-C.right+S.right},Y=e.modifiersData.offset;if(f===oi&&Y){var ce=Y[o];Object.keys(j).forEach(function(K){var Z=[Dt,It].indexOf(K)>=0?1:-1,ke=[pt,It].indexOf(K)>=0?"y":"x";j[K]+=ce[ke]*Z})}return j}function cI(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,s=r.padding,a=r.flipVariations,c=r.allowedAutoPlacements,l=c===void 0?Pg:c,u=Kn(n),d=u?a?Tg:Tg.filter(function(m){return Kn(m)===u}):ri,f=d.filter(function(m){return l.indexOf(m)>=0});f.length===0&&(f=d);var h=f.reduce(function(m,p){return m[p]=ci(e,{placement:p,boundary:o,rootBoundary:i,padding:s})[ir(p)],m},{});return Object.keys(h).sort(function(m,p){return h[m]-h[p]})}function lI(e){if(ir(e)===Yl)return[];var t=Os(e);return[Dg(e),t,Dg(t)]}function uI(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,s=r.altAxis,a=s===void 0?!0:s,c=r.fallbackPlacements,l=r.padding,u=r.boundary,d=r.rootBoundary,f=r.altBoundary,h=r.flipVariations,m=h===void 0?!0:h,p=r.allowedAutoPlacements,v=t.options.placement,S=ir(v),b=S===v,x=c||(b||!m?[Os(v)]:lI(v)),E=[v].concat(x).reduce(function(B,U){return B.concat(ir(U)===Yl?cI(t,{placement:U,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:p}):U)},[]),C=t.rects.reference,$=t.rects.popper,A=new Map,O=!0,D=E[0],j=0;j<E.length;j++){var Y=E[j],ce=ir(Y),K=Kn(Y)===qn,Z=[pt,It].indexOf(ce)>=0,ke=Z?"width":"height",ie=ci(t,{placement:Y,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),R=Z?K?Dt:mt:K?It:pt;C[ke]>$[ke]&&(R=Os(R));var se=Os(R),ve=[];if(i&&ve.push(ie[ce]<=0),a&&ve.push(ie[R]<=0,ie[se]<=0),ve.every(function(B){return B})){D=Y,O=!1;break}A.set(Y,ve)}if(O)for(var M=m?3:1,V=function(U){var W=E.find(function(q){var G=A.get(q);if(G)return G.slice(0,U).every(function(ae){return ae})});if(W)return D=W,"break"},X=M;X>0;X--){var I=V(X);if(I==="break")break}t.placement!==D&&(t.modifiersData[n]._skip=!0,t.placement=D,t.reset=!0)}}const dI={name:"flip",enabled:!0,phase:"main",fn:uI,requiresIfExists:["offset"],data:{_skip:!1}};function Bg(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function zg(e){return[pt,Dt,It,mt].some(function(t){return e[t]>=0})}function fI(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=ci(t,{elementContext:"reference"}),a=ci(t,{altBoundary:!0}),c=Bg(s,n),l=Bg(a,o,i),u=zg(c),d=zg(l);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const hI={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:fI};function pI(e,t,r){var n=ir(e),o=[mt,pt].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[mt,Dt].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function mI(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,s=Pg.reduce(function(u,d){return u[d]=pI(d,t.rects,i),u},{}),a=s[t.placement],c=a.x,l=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=s}const gI={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:mI};function vI(e){var t=e.state,r=e.name;t.modifiersData[r]=jg({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const yI={name:"popperOffsets",enabled:!0,phase:"read",fn:vI,data:{}};function bI(e){return e==="x"?"y":"x"}function xI(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=o===void 0?!0:o,s=r.altAxis,a=s===void 0?!1:s,c=r.boundary,l=r.rootBoundary,u=r.altBoundary,d=r.padding,f=r.tether,h=f===void 0?!0:f,m=r.tetherOffset,p=m===void 0?0:m,v=ci(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),S=ir(t.placement),b=Kn(t.placement),x=!b,E=Jl(S),C=bI(E),$=t.modifiersData.popperOffsets,A=t.rects.reference,O=t.rects.popper,D=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,j=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),Y=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,ce={x:0,y:0};if($){if(i){var K,Z=E==="y"?pt:mt,ke=E==="y"?It:Dt,ie=E==="y"?"height":"width",R=$[E],se=R+v[Z],ve=R-v[ke],M=h?-O[ie]/2:0,V=b===qn?A[ie]:O[ie],X=b===qn?-O[ie]:-A[ie],I=t.elements.arrow,B=h&&I?Zl(I):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$g(),W=U[Z],q=U[ke],G=si(0,A[ie],B[ie]),ae=x?A[ie]/2-M-G-W-j.mainAxis:V-G-W-j.mainAxis,oe=x?-A[ie]/2+M+G+q+j.mainAxis:X+G+q+j.mainAxis,Me=t.elements.arrow&&ii(t.elements.arrow),z=Me?E==="y"?Me.clientTop||0:Me.clientLeft||0:0,We=(K=Y==null?void 0:Y[E])!=null?K:0,kt=R+ae-We-z,ne=R+oe-We,Fe=si(h?_s(se,kt):se,R,h?an(ve,ne):ve);$[E]=Fe,ce[E]=Fe-R}if(a){var $e,Ze=E==="x"?pt:mt,lt=E==="x"?It:Dt,He=$[C],Tt=C==="y"?"height":"width",Vt=He+v[Ze],Pt=He-v[lt],Fr=[pt,mt].indexOf(S)!==-1,jr=($e=Y==null?void 0:Y[C])!=null?$e:0,ln=Fr?Vt:He-A[Tt]-O[Tt]-jr+j.altAxis,sr=Fr?He+A[Tt]+O[Tt]-jr-j.altAxis:Pt,Sr=h&&Fr?HM(ln,He,sr):si(h?ln:Vt,He,h?sr:Pt);$[C]=Sr,ce[C]=Sr-He}t.modifiersData[n]=ce}}const SI={name:"preventOverflow",enabled:!0,phase:"main",fn:xI,requiresIfExists:["offset"]};function wI(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function CI(e){return e===wt(e)||!Rt(e)?Ql(e):wI(e)}function kI(e){var t=e.getBoundingClientRect(),r=Gn(t.width)/e.offsetWidth||1,n=Gn(t.height)/e.offsetHeight||1;return r!==1||n!==1}function TI(e,t,r){r===void 0&&(r=!1);var n=Rt(t),o=Rt(t)&&kI(t),i=Rr(t),s=Yn(e,o,r),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((or(t)!=="body"||tu(i))&&(a=CI(t)),Rt(t)?(c=Yn(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=eu(i))),{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function PI(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function o(i){r.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!r.has(a)){var c=t.get(a);c&&o(c)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function EI(e){var t=PI(e);return BM.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function _I(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function AI(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Lg={placement:"bottom",modifiers:[],strategy:"absolute"};function Vg(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function $I(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,i=o===void 0?Lg:o;return function(a,c,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Lg,i),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},d=[],f=!1,h={state:u,setOptions:function(S){var b=typeof S=="function"?S(u.options):S;p(),u.options=Object.assign({},i,u.options,b),u.scrollParents={reference:sn(a)?ai(a):a.contextElement?ai(a.contextElement):[],popper:ai(c)};var x=EI(AI([].concat(n,u.options.modifiers)));return u.orderedModifiers=x.filter(function(E){return E.enabled}),m(),h.update()},forceUpdate:function(){if(!f){var S=u.elements,b=S.reference,x=S.popper;if(Vg(b,x)){u.rects={reference:TI(b,ii(x),u.options.strategy==="fixed"),popper:Zl(x)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(j){return u.modifiersData[j.name]=Object.assign({},j.data)});for(var E=0;E<u.orderedModifiers.length;E++){if(u.reset===!0){u.reset=!1,E=-1;continue}var C=u.orderedModifiers[E],$=C.fn,A=C.options,O=A===void 0?{}:A,D=C.name;typeof $=="function"&&(u=$({state:u,options:O,name:D,instance:h})||u)}}}},update:_I(function(){return new Promise(function(v){h.forceUpdate(),v(u)})}),destroy:function(){p(),f=!0}};if(!Vg(a,c))return h;h.setOptions(l).then(function(v){!f&&l.onFirstUpdate&&l.onFirstUpdate(v)});function m(){u.orderedModifiers.forEach(function(v){var S=v.name,b=v.options,x=b===void 0?{}:b,E=v.effect;if(typeof E=="function"){var C=E({state:u,name:S,instance:h,options:x}),$=function(){};d.push(C||$)}})}function p(){d.forEach(function(v){return v()}),d=[]}return h}}var OI=[eI,yI,JM,VM,gI,dI,SI,YM,hI],MI=$I({defaultModifiers:OI});const Xn=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),Ct={arrowShadowColor:Xn("--popper-arrow-shadow-color"),arrowSize:Xn("--popper-arrow-size","8px"),arrowSizeHalf:Xn("--popper-arrow-size-half"),arrowBg:Xn("--popper-arrow-bg"),transformOrigin:Xn("--popper-transform-origin"),arrowOffset:Xn("--popper-arrow-offset")};function II(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}const DI={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"},RI=e=>DI[e],Ng={scroll:!0,resize:!0};function FI(e){let t;return typeof e=="object"?t={enabled:!0,options:{...Ng,...e}}:t={enabled:e,options:Ng},t}const jI={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},BI={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{Wg(e)},effect:({state:e})=>()=>{Wg(e)}},Wg=e=>{e.elements.popper.style.setProperty(Ct.transformOrigin.var,RI(e.placement))},zI={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{LI(e)}},LI=e=>{var r;if(!e.placement)return;const t=VI(e.placement);if((r=e.elements)!=null&&r.arrow&&t){Object.assign(e.elements.arrow.style,{[t.property]:t.value,width:Ct.arrowSize.varRef,height:Ct.arrowSize.varRef,zIndex:-1});const n={[Ct.arrowSizeHalf.var]:`calc(${Ct.arrowSize.varRef} / 2 - 1px)`,[Ct.arrowOffset.var]:`calc(${Ct.arrowSizeHalf.varRef} * -1)`};for(const o in n)e.elements.arrow.style.setProperty(o,n[o])}},VI=e=>{if(e.startsWith("top"))return{property:"bottom",value:Ct.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:Ct.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:Ct.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:Ct.arrowOffset.varRef}},NI={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{Hg(e)},effect:({state:e})=>()=>{Hg(e)}},Hg=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const r=II(e.placement);r&&t.style.setProperty("--popper-arrow-default-shadow",r),Object.assign(t.style,{transform:"rotate(45deg)",background:Ct.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},WI={"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"}},HI={"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 UI(e,t="ltr"){var n;const r=((n=WI[e])==null?void 0:n[t])||e;return t==="ltr"?r:HI[e]??r}function qI(e={}){const{enabled:t=!0,modifiers:r,placement:n="bottom",strategy:o="absolute",arrowPadding:i=8,eventListeners:s=!0,offset:a,gutter:c=8,flip:l=!0,boundary:u="clippingParents",preventOverflow:d=!0,matchWidth:f,direction:h="ltr"}=e,m=g.useRef(null),p=g.useRef(null),v=g.useRef(null),S=UI(n,h),b=g.useRef(()=>{}),x=g.useCallback(()=>{var j;!t||!m.current||!p.current||((j=b.current)==null||j.call(b),v.current=MI(m.current,p.current,{placement:S,modifiers:[NI,zI,BI,{...jI,enabled:!!f},{name:"eventListeners",...FI(s)},{name:"arrow",options:{padding:i}},{name:"offset",options:{offset:a??[0,c]}},{name:"flip",enabled:!!l,options:{padding:8}},{name:"preventOverflow",enabled:!!d,options:{boundary:u}},...r??[]],strategy:o}),v.current.forceUpdate(),b.current=v.current.destroy)},[S,t,r,f,s,i,a,c,l,d,u,o]);g.useEffect(()=>()=>{var j;!m.current&&!p.current&&((j=v.current)==null||j.destroy(),v.current=null)},[]);const E=g.useCallback(j=>{m.current=j,x()},[x]),C=g.useCallback((j={},Y=null)=>({...j,ref:dt(E,Y)}),[E]),$=g.useCallback(j=>{p.current=j,x()},[x]),A=g.useCallback((j={},Y=null)=>({...j,ref:dt($,Y),style:{...j.style,position:o,minWidth:f?void 0:"max-content",inset:"0 auto auto 0"}}),[o,$,f]),O=g.useCallback((j={},Y=null)=>{const{size:ce,shadowColor:K,bg:Z,style:ke,...ie}=j;return{...ie,ref:Y,"data-popper-arrow":"",style:GI(j)}},[]),D=g.useCallback((j={},Y=null)=>({...j,ref:Y,"data-popper-arrow-inner":""}),[]);return{update(){var j;(j=v.current)==null||j.update()},forceUpdate(){var j;(j=v.current)==null||j.forceUpdate()},transformOrigin:Ct.transformOrigin.varRef,referenceRef:E,popperRef:$,getPopperProps:A,getArrowProps:O,getArrowInnerProps:D,getReferenceProps:C}}function GI(e){const{size:t,shadowColor:r,bg:n,style:o}=e,i={...o,position:"absolute"};return t&&(i["--popper-arrow-size"]=t),r&&(i["--popper-arrow-shadow-color"]=r),n&&(i["--popper-arrow-bg"]=n),i}function YI(){const e=g.useRef(new Map),t=e.current,r=g.useCallback((o,i,s,a)=>{e.current.set(s,{type:i,el:o,options:a}),o.addEventListener(i,s,a)},[]),n=g.useCallback((o,i,s,a)=>{o.removeEventListener(i,s,a),e.current.delete(s)},[]);return g.useEffect(()=>()=>{t.forEach((o,i)=>{n(o.el,o.type,i,o.options)})},[n,t]),{add:r,remove:n}}function nu(e){var o,i;const t=((i=(o=e.composedPath)==null?void 0:o.call(e))==null?void 0:i[0])??e.target,{tagName:r,isContentEditable:n}=t;return r!=="INPUT"&&r!=="TEXTAREA"&&n!==!0}function KI(e={}){const{ref:t,isDisabled:r,isFocusable:n,clickOnEnter:o=!0,clickOnSpace:i=!0,onMouseDown:s,onMouseUp:a,onClick:c,onKeyDown:l,onKeyUp:u,tabIndex:d,onMouseOver:f,onMouseLeave:h,...m}=e,[p,v]=g.useState(!0),[S,b]=g.useState(!1),x=YI(),E=R=>{R&&R.tagName!=="BUTTON"&&v(!1)},C=p?d:d||0,$=r&&!n,A=g.useCallback(R=>{if(r){R.stopPropagation(),R.preventDefault();return}R.currentTarget.focus(),c==null||c(R)},[r,c]),O=g.useCallback(R=>{S&&nu(R)&&(R.preventDefault(),R.stopPropagation(),b(!1),x.remove(document,"keyup",O,!1))},[S,x]),D=g.useCallback(R=>{if(l==null||l(R),r||R.defaultPrevented||R.metaKey||!nu(R.nativeEvent)||p)return;const se=o&&R.key==="Enter";i&&R.key===" "&&(R.preventDefault(),b(!0)),se&&(R.preventDefault(),R.currentTarget.click()),x.add(document,"keyup",O,!1)},[r,p,l,o,i,x,O]),j=g.useCallback(R=>{if(u==null||u(R),r||R.defaultPrevented||R.metaKey||!nu(R.nativeEvent)||p)return;i&&R.key===" "&&(R.preventDefault(),b(!1),R.currentTarget.click())},[i,p,r,u]),Y=g.useCallback(R=>{R.button===0&&(b(!1),x.remove(document,"mouseup",Y,!1))},[x]),ce=g.useCallback(R=>{if(R.button!==0)return;if(r){R.stopPropagation(),R.preventDefault();return}p||b(!0),R.currentTarget.focus({preventScroll:!0}),x.add(document,"mouseup",Y,!1),s==null||s(R)},[r,p,s,x,Y]),K=g.useCallback(R=>{R.button===0&&(p||b(!1),a==null||a(R))},[a,p]),Z=g.useCallback(R=>{if(r){R.preventDefault();return}f==null||f(R)},[r,f]),ke=g.useCallback(R=>{S&&(R.preventDefault(),b(!1)),h==null||h(R)},[S,h]),ie=dt(t,E);return p?{...m,ref:ie,type:"button","aria-disabled":$?void 0:r,disabled:$,onClick:A,onMouseDown:s,onMouseUp:a,onKeyUp:u,onKeyDown:l,onMouseOver:f,onMouseLeave:h}:{...m,ref:ie,role:"button","data-active":de(S),"aria-disabled":r?"true":void 0,tabIndex:$?void 0:C,onClick:A,onMouseDown:ce,onMouseUp:K,onKeyUp:j,onKeyDown:D,onMouseOver:Z,onMouseLeave:ke}}const[XI,ZI,JI,QI]=g$(),[e2,li]=st({strict:!1,name:"MenuContext"});function Ug(e){return(e==null?void 0:e.ownerDocument)??document}function t2(e){return Ug(e).activeElement===e}function r2(e={}){const{id:t,closeOnSelect:r=!0,closeOnBlur:n=!0,initialFocusRef:o,autoSelect:i=!0,isLazy:s,isOpen:a,defaultIsOpen:c,onClose:l,onOpen:u,placement:d="bottom-start",lazyBehavior:f="unmount",direction:h,computePositionOnMount:m=!1,...p}=e,v=g.useRef(null),S=g.useRef(null),b=g.useRef(!0),x=JI(),E=g.useCallback(()=>{requestAnimationFrame(()=>{var I;(I=v.current)==null||I.focus({preventScroll:!1})})},[]),C=g.useCallback(()=>{const I=setTimeout(()=>{var B,U;if(o)(B=o.current)==null||B.focus();else if(!x.count())(U=v.current)==null||U.focus({preventScroll:!1});else{const W=x.firstEnabled();W&&Z(W.index)}});ve.current.add(I)},[x,o]),$=g.useCallback(()=>{const I=setTimeout(()=>{var B;if(!x.count())(B=v.current)==null||B.focus({preventScroll:!1});else{const U=x.lastEnabled();U&&Z(U.index)}});ve.current.add(I)},[x]),A=g.useCallback(()=>{u==null||u(),i?C():E()},[i,C,E,u]),{isOpen:O,onOpen:D,onClose:j,onToggle:Y}=My({isOpen:a,defaultIsOpen:c,onClose:l,onOpen:A});zy({enabled:O&&n,ref:v,handler:I=>{var U,W,q;const B=((W=(U=I.composedPath)==null?void 0:U.call(I))==null?void 0:W[0])??I.target;(q=S.current)!=null&&q.contains(B)||j()}});const ce=qI({...p,enabled:O||m,placement:d,direction:h}),[K,Z]=g.useState(-1);Dy(v,{focusRef:S,visible:O,shouldFocus:!0});const ke=Oy({isOpen:O,ref:v}),[ie,R]=Fy(t,"menu-button","menu-list"),se=g.useCallback(()=>{D(),E()},[D,E]),ve=g.useRef(new Set([]));g.useEffect(()=>{const I=ve.current;return()=>{I.forEach(B=>clearTimeout(B)),I.clear()}},[]),dn(()=>{var I;O||(Z(-1),(I=v.current)==null||I.scrollTo(0,0))},[O]),dn(()=>{O&&K===-1&&E()},[K,O]),g.useEffect(()=>{var B;if(!O)return;const I=x.item(K);(B=I==null?void 0:I.node)==null||B.focus({preventScroll:!b.current})},[x,K,O]);const M=g.useCallback(()=>{D(),C()},[C,D]),V=g.useCallback(()=>{b.current=!0,D(),$()},[D,$]),X=g.useCallback(()=>{var q,G;const I=Ug(v.current),B=(q=v.current)==null?void 0:q.contains(I.activeElement);if(!(O&&!B))return;const W=(G=x.item(K))==null?void 0:G.node;W==null||W.focus({preventScroll:!b.current})},[O,K,x]);return{openAndFocusMenu:se,openAndFocusFirstItem:M,openAndFocusLastItem:V,onTransitionEnd:X,unstable__animationState:ke,descendants:x,popper:ce,buttonId:ie,menuId:R,forceUpdate:ce.forceUpdate,orientation:"vertical",isOpen:O,onToggle:Y,onOpen:D,onClose:j,menuRef:v,buttonRef:S,focusedIndex:K,closeOnSelect:r,closeOnBlur:n,autoSelect:i,setFocusedIndex:Z,isLazy:s,lazyBehavior:f,initialFocusRef:o,scrollIntoViewRef:b}}function n2(e={},t=null){const r=li(),{onToggle:n,popper:o,openAndFocusFirstItem:i,openAndFocusLastItem:s,scrollIntoViewRef:a}=r,c=g.useCallback(l=>{const u=l.key,f={Enter:i,ArrowDown:i,ArrowUp:s}[u];f&&(a.current=!0,l.preventDefault(),l.stopPropagation(),f(l))},[i,s,a]);return{...e,ref:dt(r.buttonRef,t,o.referenceRef),id:r.buttonId,"data-active":de(r.isOpen),"aria-expanded":r.isOpen,"aria-haspopup":"menu","aria-controls":r.menuId,onClick:Ue(e.onClick,n),onKeyDown:Ue(e.onKeyDown,c)}}function ou(e){var t;return a2(e)&&!!((t=e==null?void 0:e.getAttribute("role"))!=null&&t.startsWith("menuitem"))}function o2(e={},t=null){const r=li();if(!r)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");const{focusedIndex:n,setFocusedIndex:o,menuRef:i,isOpen:s,onClose:a,menuId:c,isLazy:l,lazyBehavior:u,scrollIntoViewRef:d,unstable__animationState:f}=r,h=ZI(),m=PM({preventDefault:b=>b.key!==" "&&ou(b.target)}),p=g.useCallback(b=>{if(!b.currentTarget.contains(b.target))return;const x=b.key,C={Tab:A=>A.preventDefault(),Escape:A=>{A.stopPropagation(),a()},ArrowDown:()=>{d.current=!0;const A=h.nextEnabled(n)??h.firstEnabled();A&&o(A.index)},ArrowUp:()=>{d.current=!0;const A=h.prevEnabled(n)??h.firstEnabled();A&&o(A.index)}}[x];if(C){b.preventDefault(),C(b);return}const $=m(A=>{const O=kM(h.values(),A,D=>{var j;return((j=D==null?void 0:D.node)==null?void 0:j.textContent)??""},h.item(n));if(O){const D=h.indexOf(O.node);o(D)}});ou(b.target)&&$(b)},[h,n,m,a,o,d]),v=g.useRef(!1);s&&(v.current=!0);const S=wy({wasSelected:v.current,enabled:l,mode:u,isSelected:f.present});return{...e,ref:dt(i,t),children:S?e.children:null,tabIndex:-1,role:"menu",id:c,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:Ue(e.onKeyDown,p)}}function i2(e={}){const{popper:t,isOpen:r}=li();return t.getPopperProps({...e,style:{visibility:r?"visible":"hidden",...e.style}})}function s2(e={},t=null){const{onMouseEnter:r,onMouseMove:n,onMouseLeave:o,onClick:i,onFocus:s,isDisabled:a,isFocusable:c,closeOnSelect:l,type:u,...d}=e,f=li(),{setFocusedIndex:h,focusedIndex:m,closeOnSelect:p,onClose:v,menuId:S,scrollIntoViewRef:b}=f,x=g.useRef(null),E=`${S}-menuitem-${g.useId()}`,{index:C,register:$}=QI({disabled:a&&!c}),A=g.useCallback(Z=>{r==null||r(Z),!a&&(b.current=!1,h(C))},[h,C,a,r,b]),O=g.useCallback(Z=>{n==null||n(Z),x.current&&!t2(x.current)&&A(Z)},[A,n]),D=g.useCallback(Z=>{o==null||o(Z),!a&&h(-1)},[h,a,o]),j=g.useCallback(Z=>{i==null||i(Z),ou(Z.currentTarget)&&(l??p)&&v()},[v,i,p,l]),Y=g.useCallback(Z=>{s==null||s(Z),h(C)},[h,s,C]),ce=C===m,K=KI({onClick:j,onFocus:Y,onMouseEnter:A,onMouseMove:O,onMouseLeave:D,ref:dt($,x,t),isDisabled:a,isFocusable:c});return{...d,...K,type:u??K.type,id:E,role:"menuitem",tabIndex:ce?0:-1}}function a2(e){if(!c2(e))return!1;const t=e.ownerDocument.defaultView??window;return e instanceof t.HTMLElement}function c2(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}const[l2,ui]=st({name:"MenuStylesContext",errorMessage:`useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Menu />" `}),qg=e=>{const{children:t}=e,r=en("Menu",e),n=vt(e),{direction:o}=Ts(),{descendants:i,...s}=r2({...n,direction:o}),a=g.useMemo(()=>s,[s]),{isOpen:c,onClose:l,forceUpdate:u}=a;return P.jsx(XI,{value:i,children:P.jsx(e2,{value:a,children:P.jsx(l2,{value:r,children:Bt(t,{isOpen:c,onClose:l,forceUpdate:u})})})})};qg.displayName="Menu";const u2=fe((e,t)=>{const r=ui();return P.jsx(re.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...r.button}})}),Gg=fe((e,t)=>{const{children:r,as:n,...o}=e,i=n2(o,t),s=n||u2;return P.jsx(s,{...i,className:ge("chakra-menu__menu-button",e.className),children:P.jsx(re.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:e.children})})});Gg.displayName="MenuButton";const Yg=fe((e,t)=>{const r=ui();return P.jsx(re.span,{ref:t,...e,__css:r.command,className:"chakra-menu__command"})});Yg.displayName="MenuCommand";const Kg=e=>{const{className:t,children:r,...n}=e,o=ui(),i=g.Children.only(r),s=g.isValidElement(i)?g.cloneElement(i,{focusable:"false","aria-hidden":!0,className:ge("chakra-menu__icon",i.props.className)}):null,a=ge("chakra-menu__icon-wrapper",t);return P.jsx(re.span,{className:a,...n,__css:o.icon,children:s})};Kg.displayName="MenuIcon";const d2=fe((e,t)=>{const{type:r,...n}=e,o=ui(),i=n.as||r?r??void 0:"button",s=g.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]);return P.jsx(re.button,{ref:t,type:i,...n,__css:s})}),Xg=fe((e,t)=>{const{icon:r,iconSpacing:n="0.75rem",command:o,commandSpacing:i="0.75rem",children:s,...a}=e,c=s2(a,t),u=r||o?P.jsx("span",{style:{pointerEvents:"none",flex:1},children:s}):s;return P.jsxs(d2,{...c,className:ge("chakra-menu__menuitem",c.className),children:[r&&P.jsx(Kg,{fontSize:"0.8em",marginEnd:n,children:r}),u,o&&P.jsx(Yg,{marginStart:i,children:o})]})});Xg.displayName="MenuItem";const f2={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"}}},h2=re(Ir.div),Zg=fe(function(t,r){var f;const{rootProps:n,motionProps:o,...i}=t,{isOpen:s,onTransitionEnd:a,unstable__animationState:c}=li(),l=o2(i,r),u=i2(n),d=ui();return P.jsx(re.div,{...u,__css:{zIndex:t.zIndex??((f=d.list)==null?void 0:f.zIndex)},children:P.jsx(h2,{variants:f2,initial:!1,animate:s?"enter":"exit",__css:{outline:0,...d.list},...o,...l,className:ge("chakra-menu__menu-list",l.className),onUpdate:a,onAnimationComplete:ju(c.onComplete,l.onAnimationComplete)})})});Zg.displayName="MenuList";var p2=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Zn=new WeakMap,Ms=new WeakMap,Is={},iu=0,Jg=function(e){return e&&(e.host||Jg(e.parentNode))},m2=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Jg(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},g2=function(e,t,r,n){var o=m2(t,Array.isArray(e)?e:[e]);Is[r]||(Is[r]=new WeakMap);var i=Is[r],s=[],a=new Set,c=new Set(o),l=function(d){!d||a.has(d)||(a.add(d),l(d.parentNode))};o.forEach(l);var u=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))u(f);else try{var h=f.getAttribute(n),m=h!==null&&h!=="false",p=(Zn.get(f)||0)+1,v=(i.get(f)||0)+1;Zn.set(f,p),i.set(f,v),s.push(f),p===1&&m&&Ms.set(f,!0),v===1&&f.setAttribute(r,"true"),m||f.setAttribute(n,"true")}catch(S){console.error("aria-hidden: cannot operate on ",f,S)}})};return u(t),a.clear(),iu++,function(){s.forEach(function(d){var f=Zn.get(d)-1,h=i.get(d)-1;Zn.set(d,f),i.set(d,h),f||(Ms.has(d)||d.removeAttribute(n),Ms.delete(d)),h||d.removeAttribute(r)}),iu--,iu||(Zn=new WeakMap,Zn=new WeakMap,Ms=new WeakMap,Is={})}},v2=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=p2(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),g2(n,o,r,"aria-hidden")):function(){return null}},y2=Object.defineProperty,b2=(e,t,r)=>t in e?y2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x2=(e,t,r)=>(b2(e,t+"",r),r);class S2{constructor(){x2(this,"modals"),this.modals=new Set}add(t){return this.modals.add(t),this.modals.size}remove(t){this.modals.delete(t)}isTopModal(t){if(!t)return!1;const r=Array.from(this.modals)[this.modals.size-1];return t===r}}const su=new S2;function Qg(e,t){const[r,n]=g.useState(0);return g.useEffect(()=>{const o=e.current;if(o){if(t){const i=su.add(o);n(i)}return()=>{su.remove(o),n(0)}}},[t,e]),r}function w2(e){const{isOpen:t,onClose:r,id:n,closeOnOverlayClick:o=!0,closeOnEsc:i=!0,useInert:s=!0,onOverlayClick:a,onEsc:c}=e,l=g.useRef(null),u=g.useRef(null),[d,f,h]=k2(n,"chakra-modal","chakra-modal--header","chakra-modal--body");C2(l,t&&s);const m=Qg(l,t),p=g.useRef(null),v=g.useCallback(D=>{p.current=D.target},[]),S=g.useCallback(D=>{D.key==="Escape"&&(D.stopPropagation(),i&&(r==null||r()),c==null||c())},[i,r,c]),[b,x]=g.useState(!1),[E,C]=g.useState(!1),$=g.useCallback((D={},j=null)=>({role:"dialog",...D,ref:dt(j,l),id:d,tabIndex:-1,"aria-modal":!0,"aria-labelledby":b?f:void 0,"aria-describedby":E?h:void 0,onClick:Ue(D.onClick,Y=>Y.stopPropagation())}),[h,E,d,f,b]),A=g.useCallback(D=>{D.stopPropagation(),p.current===D.target&&su.isTopModal(l.current)&&(o&&(r==null||r()),a==null||a())},[r,o,a]),O=g.useCallback((D={},j=null)=>({...D,ref:dt(j,u),onClick:Ue(D.onClick,A),onKeyDown:Ue(D.onKeyDown,S),onMouseDown:Ue(D.onMouseDown,v)}),[S,v,A]);return{isOpen:t,onClose:r,headerId:f,bodyId:h,setBodyMounted:C,setHeaderMounted:x,dialogRef:l,overlayRef:u,getDialogProps:$,getDialogContainerProps:O,index:m}}function C2(e,t){const r=e.current;g.useEffect(()=>{if(!(!e.current||!t))return v2(e.current)},[t,e,r])}function k2(e,...t){const r=g.useId(),n=e||r;return g.useMemo(()=>t.map(o=>`${o}-${n}`),[n,t])}const[T2,di]=st({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Modal />" `}),[P2,cn]=st({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),ev=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,preserveScrollBarGap:!0,motionPreset:"scale",...e,lockFocusAcrossFrames:e.lockFocusAcrossFrames||!0},{portalProps:r,children:n,autoFocus:o,trapFocus:i,initialFocusRef:s,finalFocusRef:a,returnFocusOnClose:c,blockScrollOnMount:l,allowPinchZoom:u,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:h,animatePresenceProps:m,onCloseComplete:p}=t,v=en("Modal",t),b={...w2(t),autoFocus:o,trapFocus:i,initialFocusRef:s,finalFocusRef:a,returnFocusOnClose:c,blockScrollOnMount:l,allowPinchZoom:u,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:h};return P.jsx(P2,{value:b,children:P.jsx(T2,{value:v,children:P.jsx(zn,{...m,onExitComplete:p,children:b.isOpen&&P.jsx(qo,{...r,children:n})})})})};ev.displayName="Modal";var Ds="right-scroll-bar-position",Rs="width-before-scroll-bar",E2="with-scroll-bars-hidden",_2="--removed-body-scroll-bar-size",tv=Vm(),au=function(){},Fs=L.forwardRef(function(e,t){var r=L.useRef(null),n=L.useState({onScrollCapture:au,onWheelCapture:au,onTouchMoveCapture:au}),o=n[0],i=n[1],s=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,h=e.noIsolation,m=e.inert,p=e.allowPinchZoom,v=e.as,S=v===void 0?"div":v,b=e.gapMode,x=Bm(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=f,C=jm([r,t]),$=rr(rr({},x),o);return L.createElement(L.Fragment,null,u&&L.createElement(E,{sideCar:tv,removeScrollBar:l,shards:d,noIsolation:h,inert:m,setCallbacks:i,allowPinchZoom:!!p,lockRef:r,gapMode:b}),s?L.cloneElement(L.Children.only(a),rr(rr({},$),{ref:C})):L.createElement(S,rr({},$,{className:c,ref:C}),a))});Fs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Fs.classNames={fullWidth:Rs,zeroRight:Ds};var A2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function $2(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=A2();return t&&e.setAttribute("nonce",t),e}function O2(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function M2(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var I2=function(){var e=0,t=null;return{add:function(r){e==0&&(t=$2())&&(O2(t,r),M2(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},D2=function(){var e=I2();return function(t,r){L.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},rv=function(){var e=D2(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},R2={left:0,top:0,right:0,gap:0},cu=function(e){return parseInt(e||"",10)||0},F2=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[cu(r),cu(n),cu(o)]},j2=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return R2;var t=F2(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},B2=rv(),Jn="data-scroll-locked",z2=function(e,t,r,n){var o=e.left,i=e.top,s=e.right,a=e.gap;return r===void 0&&(r="margin"),`
351
+ .`.concat(E2,` {
352
+ overflow: hidden `).concat(n,`;
353
+ padding-right: `).concat(a,"px ").concat(n,`;
354
+ }
355
+ body[`).concat(Jn,`] {
356
+ overflow: hidden `).concat(n,`;
357
+ overscroll-behavior: contain;
358
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
359
+ padding-left: `.concat(o,`px;
360
+ padding-top: `).concat(i,`px;
361
+ padding-right: `).concat(s,`px;
362
+ margin-left:0;
363
+ margin-top:0;
364
+ margin-right: `).concat(a,"px ").concat(n,`;
365
+ `),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),`
366
+ }
367
+
368
+ .`).concat(Ds,` {
369
+ right: `).concat(a,"px ").concat(n,`;
370
+ }
371
+
372
+ .`).concat(Rs,` {
373
+ margin-right: `).concat(a,"px ").concat(n,`;
374
+ }
375
+
376
+ .`).concat(Ds," .").concat(Ds,` {
377
+ right: 0 `).concat(n,`;
378
+ }
379
+
380
+ .`).concat(Rs," .").concat(Rs,` {
381
+ margin-right: 0 `).concat(n,`;
382
+ }
383
+
384
+ body[`).concat(Jn,`] {
385
+ `).concat(_2,": ").concat(a,`px;
386
+ }
387
+ `)},nv=function(){var e=parseInt(document.body.getAttribute(Jn)||"0",10);return isFinite(e)?e:0},L2=function(){L.useEffect(function(){return document.body.setAttribute(Jn,(nv()+1).toString()),function(){var e=nv()-1;e<=0?document.body.removeAttribute(Jn):document.body.setAttribute(Jn,e.toString())}},[])},V2=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;L2();var i=L.useMemo(function(){return j2(o)},[o]);return L.createElement(B2,{styles:z2(i,!t,o,r?"":"!important")})},lu=!1;if(typeof window<"u")try{var js=Object.defineProperty({},"passive",{get:function(){return lu=!0,!0}});window.addEventListener("test",js,js),window.removeEventListener("test",js,js)}catch{lu=!1}var Qn=lu?{passive:!1}:!1,N2=function(e){return e.tagName==="TEXTAREA"},ov=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!N2(e)&&r[t]==="visible")},W2=function(e){return ov(e,"overflowY")},H2=function(e){return ov(e,"overflowX")},iv=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=sv(e,n);if(o){var i=av(e,n),s=i[1],a=i[2];if(s>a)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},U2=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},q2=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},sv=function(e,t){return e==="v"?W2(t):H2(t)},av=function(e,t){return e==="v"?U2(t):q2(t)},G2=function(e,t){return e==="h"&&t==="rtl"?-1:1},Y2=function(e,t,r,n,o){var i=G2(e,window.getComputedStyle(t).direction),s=i*n,a=r.target,c=t.contains(a),l=!1,u=s>0,d=0,f=0;do{var h=av(e,a),m=h[0],p=h[1],v=h[2],S=p-v-i*m;(m||S)&&sv(e,a)&&(d+=S,f+=m),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&(Math.abs(d)<1||!o)||!u&&(Math.abs(f)<1||!o))&&(l=!0),l},Bs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},cv=function(e){return[e.deltaX,e.deltaY]},lv=function(e){return e&&"current"in e?e.current:e},K2=function(e,t){return e[0]===t[0]&&e[1]===t[1]},X2=function(e){return`
388
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
389
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
390
+ `)},Z2=0,eo=[];function J2(e){var t=L.useRef([]),r=L.useRef([0,0]),n=L.useRef(),o=L.useState(Z2++)[0],i=L.useState(rv)[0],s=L.useRef(e);L.useEffect(function(){s.current=e},[e]),L.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=fO([e.lockRef.current],(e.shards||[]).map(lv),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=L.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!s.current.allowPinchZoom;var S=Bs(p),b=r.current,x="deltaX"in p?p.deltaX:b[0]-S[0],E="deltaY"in p?p.deltaY:b[1]-S[1],C,$=p.target,A=Math.abs(x)>Math.abs(E)?"h":"v";if("touches"in p&&A==="h"&&$.type==="range")return!1;var O=iv(A,$);if(!O)return!0;if(O?C=A:(C=A==="v"?"h":"v",O=iv(A,$)),!O)return!1;if(!n.current&&"changedTouches"in p&&(x||E)&&(n.current=C),!C)return!0;var D=n.current||C;return Y2(D,v,p,D==="h"?x:E,!0)},[]),c=L.useCallback(function(p){var v=p;if(!(!eo.length||eo[eo.length-1]!==i)){var S="deltaY"in v?cv(v):Bs(v),b=t.current.filter(function(C){return C.name===v.type&&(C.target===v.target||v.target===C.shadowParent)&&K2(C.delta,S)})[0];if(b&&b.should){v.cancelable&&v.preventDefault();return}if(!b){var x=(s.current.shards||[]).map(lv).filter(Boolean).filter(function(C){return C.contains(v.target)}),E=x.length>0?a(v,x[0]):!s.current.noIsolation;E&&v.cancelable&&v.preventDefault()}}},[]),l=L.useCallback(function(p,v,S,b){var x={name:p,delta:v,target:S,should:b,shadowParent:Q2(S)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(E){return E!==x})},1)},[]),u=L.useCallback(function(p){r.current=Bs(p),n.current=void 0},[]),d=L.useCallback(function(p){l(p.type,cv(p),p.target,a(p,e.lockRef.current))},[]),f=L.useCallback(function(p){l(p.type,Bs(p),p.target,a(p,e.lockRef.current))},[]);L.useEffect(function(){return eo.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",c,Qn),document.addEventListener("touchmove",c,Qn),document.addEventListener("touchstart",u,Qn),function(){eo=eo.filter(function(p){return p!==i}),document.removeEventListener("wheel",c,Qn),document.removeEventListener("touchmove",c,Qn),document.removeEventListener("touchstart",u,Qn)}},[]);var h=e.removeScrollBar,m=e.inert;return L.createElement(L.Fragment,null,m?L.createElement(i,{styles:X2(o)}):null,h?L.createElement(V2,{gapMode:e.gapMode}):null)}function Q2(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const eD=hO(tv,J2);var uv=L.forwardRef(function(e,t){return L.createElement(Fs,rr({},e,{ref:t,sideCar:eD}))});uv.classNames=Fs.classNames;function tD(e){const{autoFocus:t,trapFocus:r,dialogRef:n,initialFocusRef:o,blockScrollOnMount:i,allowPinchZoom:s,finalFocusRef:a,returnFocusOnClose:c,preserveScrollBarGap:l,lockFocusAcrossFrames:u,isOpen:d}=cn(),[f,h]=Uh();g.useEffect(()=>{!f&&h&&setTimeout(h)},[f,h]);const m=Qg(n,d);return P.jsx(Sg,{autoFocus:t,isDisabled:!r,initialFocusRef:o,finalFocusRef:a,restoreFocus:c,contentRef:n,lockFocusAcrossFrames:u,children:P.jsx(uv,{removeScrollBar:!l,allowPinchZoom:s,enabled:m===1&&i,forwardProps:!0,children:e.children})})}const fi={initial:"initial",animate:"enter",exit:"exit",variants:{initial:({offsetX:e,offsetY:t,transition:r,transitionEnd:n,delay:o})=>({opacity:0,x:e,y:t,transition:(r==null?void 0:r.exit)??br.exit(tn.exit,o),transitionEnd:n==null?void 0:n.exit}),enter:({transition:e,transitionEnd:t,delay:r})=>({opacity:1,x:0,y:0,transition:(e==null?void 0:e.enter)??br.enter(tn.enter,r),transitionEnd:t==null?void 0:t.enter}),exit:({offsetY:e,offsetX:t,transition:r,transitionEnd:n,reverse:o,delay:i})=>{const s={x:t,y:e};return{opacity:0,transition:(r==null?void 0:r.exit)??br.exit(tn.exit,i),...o?{...s,transitionEnd:n==null?void 0:n.exit}:{transitionEnd:{...s,...n==null?void 0:n.exit}}}}}},rD=g.forwardRef(function(t,r){const{unmountOnExit:n,in:o,reverse:i=!0,className:s,offsetX:a=0,offsetY:c=8,transition:l,transitionEnd:u,delay:d,animatePresenceProps:f,...h}=t,m=n?o&&n:!0,p=o||n?"enter":"exit",v={offsetX:a,offsetY:c,reverse:i,transition:l,transitionEnd:u,delay:d};return P.jsx(zn,{...f,custom:v,children:m&&P.jsx(Ir.div,{ref:r,className:ge("chakra-offset-slide",s),custom:v,...fi,animate:p,...h})})});rD.displayName="SlideFade";const dv={initial:"exit",animate:"enter",exit:"exit",variants:{exit:({reverse:e,initialScale:t,transition:r,transitionEnd:n,delay:o})=>({opacity:0,...e?{scale:t,transitionEnd:n==null?void 0:n.exit}:{transitionEnd:{scale:t,...n==null?void 0:n.exit}},transition:(r==null?void 0:r.exit)??br.exit(tn.exit,o)}),enter:({transitionEnd:e,transition:t,delay:r})=>({opacity:1,scale:1,transition:(t==null?void 0:t.enter)??br.enter(tn.enter,r),transitionEnd:e==null?void 0:e.enter})}},nD=g.forwardRef(function(t,r){const{unmountOnExit:n,in:o,reverse:i=!0,initialScale:s=.95,className:a,transition:c,transitionEnd:l,delay:u,animatePresenceProps:d,...f}=t,h=n?o&&n:!0,m=o||n?"enter":"exit",p={initialScale:s,reverse:i,transition:c,transitionEnd:l,delay:u};return P.jsx(zn,{...d,custom:p,children:h&&P.jsx(Ir.div,{ref:r,className:ge("chakra-offset-slide",a),...dv,animate:m,custom:p,...f})})});nD.displayName="ScaleFade";const oD={slideInBottom:{...fi,custom:{offsetY:16,reverse:!0}},slideInRight:{...fi,custom:{offsetX:16,reverse:!0}},slideInTop:{...fi,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...fi,custom:{offsetX:-16,reverse:!0}},scale:{...dv,custom:{initialScale:.95,reverse:!0}},none:{}},iD=re(Ir.section),sD=e=>oD[e||"none"],fv=g.forwardRef((e,t)=>{const{preset:r,motionProps:n=sD(r),...o}=e;return P.jsx(iD,{ref:t,...n,...o})});fv.displayName="ModalTransition";const hv=fe((e,t)=>{const{className:r,children:n,containerProps:o,motionProps:i,...s}=e,{getDialogProps:a,getDialogContainerProps:c}=cn(),l=a(s,t),u=c(o),d=ge("chakra-modal__content",r),f=di(),h={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...f.dialog},m={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...f.dialogContainer},{motionPreset:p}=cn();return P.jsx(tD,{children:P.jsx(re.div,{...u,className:"chakra-modal__content-container",tabIndex:-1,__css:m,children:P.jsx(fv,{preset:p,motionProps:i,className:d,...l,__css:h,children:n})})})});hv.displayName="ModalContent";const pv=fe((e,t)=>{const{className:r,...n}=e,{bodyId:o,setBodyMounted:i}=cn();g.useEffect(()=>(i(!0),()=>i(!1)),[i]);const s=ge("chakra-modal__body",r),a=di();return P.jsx(re.div,{ref:t,className:s,id:o,...n,__css:a.body})});pv.displayName="ModalBody";const mv=fe((e,t)=>{const{onClick:r,className:n,...o}=e,{onClose:i}=cn(),s=ge("chakra-modal__close-btn",n),a=di();return P.jsx(il,{ref:t,__css:a.closeButton,className:s,onClick:Ue(r,c=>{c.stopPropagation(),i()}),...o})});mv.displayName="ModalCloseButton";const gv=fe((e,t)=>{const{className:r,...n}=e,{headerId:o,setHeaderMounted:i}=cn();g.useEffect(()=>(i(!0),()=>i(!1)),[i]);const s=ge("chakra-modal__header",r),a=di(),c={flex:0,...a.header};return P.jsx(re.header,{ref:t,className:s,id:o,...n,__css:c})});gv.displayName="ModalHeader";const vv={initial:"exit",animate:"enter",exit:"exit",variants:{enter:({transition:e,transitionEnd:t,delay:r}={})=>({opacity:1,transition:(e==null?void 0:e.enter)??br.enter(tn.enter,r),transitionEnd:t==null?void 0:t.enter}),exit:({transition:e,transitionEnd:t,delay:r}={})=>({opacity:0,transition:(e==null?void 0:e.exit)??br.exit(tn.exit,r),transitionEnd:t==null?void 0:t.exit})}},aD=g.forwardRef(function(t,r){const{unmountOnExit:n,in:o,className:i,transition:s,transitionEnd:a,delay:c,animatePresenceProps:l,...u}=t,d=o||n?"enter":"exit",f=n?o&&n:!0,h={transition:s,transitionEnd:a,delay:c};return P.jsx(zn,{...l,custom:h,children:f&&P.jsx(Ir.div,{ref:r,className:ge("chakra-fade",i),custom:h,...vv,animate:d,...u})})});aD.displayName="Fade";const cD=re(Ir.div),yv=fe((e,t)=>{const{className:r,transition:n,motionProps:o,...i}=e,s=ge("chakra-modal__overlay",r),c={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...di().overlay},{motionPreset:l}=cn(),d=o||(l==="none"?{}:vv);return P.jsx(cD,{...d,__css:c,ref:t,className:s,...i})});yv.displayName="ModalOverlay";const bv=fe(function(t,r){const{children:n,placeholder:o,className:i,...s}=t;return P.jsxs(re.select,{...s,ref:r,className:ge("chakra-select",i),children:[o&&P.jsx("option",{value:"",children:o}),n]})});bv.displayName="SelectField";const xv=fe((e,t)=>{var x;const r=en("Select",e),{rootProps:n,placeholder:o,icon:i,color:s,height:a,h:c,minH:l,minHeight:u,iconColor:d,iconSize:f,...h}=vt(e),[m,p]=Py(h,bb),v=hl(p),S={width:"100%",height:"fit-content",position:"relative",color:s},b={paddingEnd:"2rem",...r.field,_focus:{zIndex:"unset",...(x=r.field)==null?void 0:x._focus}};return P.jsxs(re.div,{className:"chakra-select__wrapper",__css:S,...m,...n,children:[P.jsx(bv,{ref:t,height:c??a,minH:l??u,placeholder:o,...v,__css:b,children:e.children}),P.jsx(Sv,{"data-disabled":de(v.disabled),...(d||s)&&{color:d||s},__css:r.icon,...f&&{fontSize:f},children:i})]})});xv.displayName="Select";const lD=e=>P.jsx("svg",{viewBox:"0 0 24 24",...e,children:P.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),uD=re("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),Sv=e=>{const{children:t=P.jsx(lD,{}),...r}=e,n=g.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return P.jsx(uD,{...r,className:"chakra-select__icon-wrapper",children:g.isValidElement(t)?n:null})};Sv.displayName="SelectIcon";const wv=e=>P.jsx(re.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});wv.displayName="StackItem";function dD(e){const{spacing:t,direction:r}=e,n={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{"&":ky(r,o=>n[o])}}const zs=fe((e,t)=>{const{isInline:r,direction:n,align:o,justify:i,spacing:s="0.5rem",wrap:a,children:c,divider:l,className:u,shouldWrapChildren:d,...f}=e,h=r?"row":n??"column",m=g.useMemo(()=>dD({spacing:s,direction:h}),[s,h]),p=!!l,v=!d&&!p,S=g.useMemo(()=>{const x=hy(c);return v?x:x.map((E,C)=>{const $=typeof E.key<"u"?E.key:C,A=C+1===x.length,D=d?P.jsx(wv,{children:E},$):E;if(!p)return D;const j=g.cloneElement(l,{__css:m}),Y=A?null:j;return P.jsxs(g.Fragment,{children:[D,Y]},$)})},[l,m,p,v,d,c]),b=ge("chakra-stack",u);return P.jsx(re.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:h,flexWrap:a,gap:p?void 0:s,className:b,...f,children:S})});zs.displayName="Stack";const Cv=fe((e,t)=>P.jsx(zs,{align:"center",...e,direction:"row",ref:t}));Cv.displayName="HStack";const kv=fe((e,t)=>P.jsx(zs,{align:"center",...e,direction:"column",ref:t}));kv.displayName="VStack";const fD=["h","minH","height","minHeight"],Tv=fe((e,t)=>{const r=Dr("Textarea",e),{className:n,rows:o,...i}=vt(e),s=hl(i),a=o?so(r,fD):r;return P.jsx(re.textarea,{ref:t,rows:o,...s,className:ge("chakra-textarea",n),__css:a})});Tv.displayName="Textarea";const Pv=fe(function(t,r){const n=Dr("Heading",t),{className:o,...i}=vt(t);return P.jsx(re.h2,{ref:r,className:ge("chakra-heading",t.className),...i,__css:n})});Pv.displayName="Heading";const Ev=fe(function(t,r){const n=Dr("Text",t),{className:o,align:i,decoration:s,casing:a,...c}=vt(t),l=wi({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return P.jsx(re.p,{ref:r,className:ge("chakra-text",t.className),...l,...c,__css:n})});Ev.displayName="Text";const hD={body:"Sansation-Regular, sans-serif",heading:"Sansation-Bold, sans-serif"},pD={global:{body:{color:"#000",textAlign:"center",fontFamily:"Sansation-Regular, sans-serif",fontSize:"14px",fontStyle:"normal",fontWeight:400,lineHeight:"normal"},"*":{boxSizing:"border-box"},a:{cursor:"pointer"},...{".chat-wrapper":{background:"#4E4D4D",border:"2px solid #D6D6D6",borderRadius:"8px",fontSize:"16px",minHeight:"240px",overflow:"hidden",padding:"1rem 0",width:"100%"},".message-input":{borderTop:"1px solid #ccc"},".cs-message-list":{background:"#4E4D4D"},".cs-chat-container .cs-message-input":{background:"#4E4D4D",border:"0",padding:"1rem 0"},".scrollbar-container":{background:"transparent"},".cs-message-input__content-editor-wrapper":{background:"#6E6E6E"},".cs-message-input__content-editor":{background:"transparent",color:"#fff",textAlign:"left"},".cs-message--incoming .cs-message__content":{background:"transparent",padding:"1rem 0",color:"#fff",textAlign:"left",fontSize:"16px"},".cs-message.cs-message--outgoing.cs-message--first .cs-message__content":{background:"#efefef",borderRadius:"20px",color:"#000"},".cs-message.cs-message--incoming.cs-message--first .cs-message__content":{background:"transparent",color:"#fff"},".cs-message.cs-message--outgoing.cs-message--single .cs-message__content":{background:"#fff",fontSize:"16px"},".cs-message-list .cs-typing-indicator":{background:"transparent",margin:"0 1.2em 0 .8em",padding:"0"},".cs-typing-indicator__text":{color:"#fff"},".cs-typing-indicator__dot":{backgroundColor:"#fff"}}}},mD=J$({config:{initialColorMode:"light",useSystemColorMode:!1},colors:{primary:{50:"#e3f2f9",100:"#c5e4f3",500:"#062B60",600:"#0C56C0",700:"#0A48A1"},secondary:{500:"#38ADC7",700:"#2D9DB2"},blue:{50:"#38ADC7",100:"#0C56C0",500:"#094192",600:"#062B60",700:"#094192",800:"#051a39"},grey:{50:"#F7F7F7",100:"#999",500:"#ECECEC",600:"#4E4D4D"},white:{50:"#FFF"},green:{100:"#34C759",300:"#269642"},black:{300:"#000000"}},fonts:hD,styles:pD}),gD=({children:e,...t})=>P.jsx(d$,{theme:mD,...t,children:e}),vD=({options:e,onChange:t,...r})=>P.jsx(xv,{onChange:n=>t(n.target.value),...r,children:e.map(n=>P.jsx("option",{value:n.value,children:n.name},n.value))}),yD=ti({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"}),bD=ti({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"}),xD=ti({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),SD=ti({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"}),wD=ti({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"}),CD=Object.freeze(Object.defineProperty({__proto__:null,ChevronDownIcon:xD,ChevronLeftIcon:yD,ChevronRightIcon:bD,ChevronUpIcon:SD,CloseIcon:wD},Symbol.toStringTag,{value:"Module"}));le.Box=mm,le.Button=ll,le.CanaiaProvider=gD,le.Checkbox=Cm,le.Collapse=pm,le.Divider=km,le.Flex=Pm,le.Grid=wg,le.HStack=Cv,le.Heading=Pv,le.IconButton=vm,le.Icons=CD,le.Image=Cg,le.Input=Gl,le.Menu=qg,le.MenuButton=Gg,le.MenuItem=Xg,le.MenuList=Zg,le.Modal=ev,le.ModalBody=pv,le.ModalCloseButton=mv,le.ModalContent=hv,le.ModalHeader=gv,le.ModalOverlay=yv,le.Select=vD,le.Spinner=Ps,le.Stack=zs,le.Text=Ev,le.Textarea=Tv,le.VStack=kv,le.useTheme=Ts,le.useToken=HA,Object.defineProperty(le,Symbol.toStringTag,{value:"Module"})});