@saas-ui/storybook-addon 2.0.3 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/ChakraProviderDecorator.cjs +33 -0
  3. package/dist/ChakraProviderDecorator.cjs.map +1 -0
  4. package/dist/ChakraProviderDecorator.d.cts +3 -0
  5. package/dist/ChakraProviderDecorator.d.ts +1 -3
  6. package/dist/ChakraProviderDecorator.js +8 -47
  7. package/dist/ChakraProviderDecorator.js.map +1 -1
  8. package/dist/{arg-types.mjs → arg-types.cjs} +4 -2
  9. package/dist/arg-types.cjs.map +1 -0
  10. package/dist/arg-types.d.cts +52 -0
  11. package/dist/arg-types.d.ts +1 -1
  12. package/dist/arg-types.js +1 -3
  13. package/dist/arg-types.js.map +1 -1
  14. package/dist/color-mode/ColorModeSync.cjs +11 -0
  15. package/dist/color-mode/ColorModeSync.cjs.map +1 -0
  16. package/dist/color-mode/ColorModeSync.d.cts +6 -0
  17. package/dist/color-mode/ColorModeSync.js +5 -7
  18. package/dist/color-mode/ColorModeSync.js.map +1 -1
  19. package/dist/color-mode/ColorModeTool.cjs +32 -0
  20. package/dist/color-mode/ColorModeTool.cjs.map +1 -0
  21. package/dist/color-mode/ColorModeTool.d.cts +5 -0
  22. package/dist/color-mode/ColorModeTool.js +6 -28
  23. package/dist/color-mode/ColorModeTool.js.map +1 -1
  24. package/dist/{constants.mjs → constants.cjs} +8 -2
  25. package/dist/constants.cjs.map +1 -0
  26. package/dist/constants.d.cts +11 -0
  27. package/dist/constants.js +1 -7
  28. package/dist/constants.js.map +1 -1
  29. package/dist/direction/DirectionTool.cjs +12 -0
  30. package/dist/direction/DirectionTool.cjs.map +1 -0
  31. package/dist/direction/DirectionTool.d.cts +8 -0
  32. package/dist/direction/DirectionTool.js +6 -8
  33. package/dist/direction/DirectionTool.js.map +1 -1
  34. package/dist/direction/useDirection.cjs +10 -0
  35. package/dist/direction/useDirection.cjs.map +1 -0
  36. package/dist/direction/useDirection.d.cts +6 -0
  37. package/dist/direction/useDirection.js +4 -6
  38. package/dist/direction/useDirection.js.map +1 -1
  39. package/dist/{index.mjs → index.cjs} +9 -2
  40. package/dist/index.cjs.map +1 -0
  41. package/dist/index.d.cts +4 -0
  42. package/dist/index.js +1 -8
  43. package/dist/index.js.map +1 -1
  44. package/dist/manager.cjs +31 -0
  45. package/dist/manager.cjs.map +1 -0
  46. package/dist/manager.d.cts +2 -0
  47. package/dist/manager.d.ts +1 -1
  48. package/dist/manager.js +8 -31
  49. package/dist/manager.js.map +1 -1
  50. package/dist/preview.cjs +33 -0
  51. package/dist/preview.cjs.map +1 -0
  52. package/dist/preview.d.cts +5 -0
  53. package/dist/preview.js +8 -47
  54. package/dist/preview.js.map +1 -1
  55. package/dist/theme/ThemeTool.cjs +12 -0
  56. package/dist/theme/ThemeTool.cjs.map +1 -0
  57. package/dist/theme/ThemeTool.d.cts +8 -0
  58. package/dist/theme/ThemeTool.js +6 -29
  59. package/dist/theme/ThemeTool.js.map +1 -1
  60. package/package.json +25 -30
  61. package/dist/ChakraProviderDecorator.mjs +0 -30
  62. package/dist/ChakraProviderDecorator.mjs.map +0 -1
  63. package/dist/arg-types.mjs.map +0 -1
  64. package/dist/color-mode/ColorModeSync.mjs +0 -9
  65. package/dist/color-mode/ColorModeSync.mjs.map +0 -1
  66. package/dist/color-mode/ColorModeTool.mjs +0 -10
  67. package/dist/color-mode/ColorModeTool.mjs.map +0 -1
  68. package/dist/constants.mjs.map +0 -1
  69. package/dist/direction/DirectionTool.mjs +0 -10
  70. package/dist/direction/DirectionTool.mjs.map +0 -1
  71. package/dist/direction/useDirection.mjs +0 -8
  72. package/dist/direction/useDirection.mjs.map +0 -1
  73. package/dist/index.mjs.map +0 -1
  74. package/dist/manager.mjs +0 -12
  75. package/dist/manager.mjs.map +0 -1
  76. package/dist/preview.mjs +0 -30
  77. package/dist/preview.mjs.map +0 -1
  78. package/dist/theme/ThemeTool.mjs +0 -12
  79. package/dist/theme/ThemeTool.mjs.map +0 -1
@@ -1,30 +0,0 @@
1
- import * as bt from 'react';
2
- import bt__default, { createContext, forwardRef as forwardRef$1, createElement, isValidElement, cloneElement, useEffect, useState, useContext, useRef, useImperativeHandle, Children, useLayoutEffect, useCallback, useId as useId$1, useMemo, useInsertionEffect } from 'react';
3
- import { theme, extendTheme, withDefaultColorScheme, createStylesContext, forwardRef, Icon, useMultiStyleConfig, omitThemingProps, Flex, useId, chakra, ButtonGroup, CloseButton, useMergeRefs, Link, useTheme, useColorModeValue, AvatarBadge, Tooltip, Avatar, useBreakpointValue, useDisclosure, useControllableState, InputGroup, InputLeftElement, Input, InputRightElement, IconButton, StepSeparator, Stepper, Collapse, useStyleConfig, useColorMode, ChakraProvider, Step, StepIndicator, StepStatus, StepIcon, StepNumber, Box, StepTitle, StepDescription } from '@chakra-ui/react';
4
- import { makeDecorator, addons } from '@storybook/preview-api';
5
- import { jsxs, jsx } from 'react/jsx-runtime';
6
-
7
- var o0=Object.create;var Bo=Object.defineProperty,n0=Object.defineProperties,i0=Object.getOwnPropertyDescriptor,a0=Object.getOwnPropertyDescriptors,s0=Object.getOwnPropertyNames,qn=Object.getOwnPropertySymbols,l0=Object.getPrototypeOf,Fs=Object.prototype.hasOwnProperty,Lu=Object.prototype.propertyIsEnumerable;var jo=Math.pow,Iu=(e,t,r)=>t in e?Bo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,d=(e,t)=>{for(var r in t||(t={}))Fs.call(t,r)&&Iu(e,r,t[r]);if(qn)for(var r of qn(t))Lu.call(t,r)&&Iu(e,r,t[r]);return e},b=(e,t)=>n0(e,a0(t));var P=(e,t)=>{var r={};for(var o in e)Fs.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&qn)for(var o of qn(e))t.indexOf(o)<0&&Lu.call(e,o)&&(r[o]=e[o]);return r};var Ou=(e,t)=>()=>(e&&(t=e(e=0)),t);var zo=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),c0=(e,t)=>{for(var r in t)Bo(e,r,{get:t[r],enumerable:!0});},Du=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of s0(t))!Fs.call(e,n)&&n!==r&&Bo(e,n,{get:()=>t[n],enumerable:!(o=i0(t,n))||o.enumerable});return e};var Kt=(e,t,r)=>(r=e!=null?o0(l0(e)):{},Du(t||!e||!e.__esModule?Bo(r,"default",{value:e,enumerable:!0}):r,e)),u0=e=>Du(Bo({},"__esModule",{value:!0}),e);var uf=zo(q=>{var le=typeof Symbol=="function"&&Symbol.for,Us=le?Symbol.for("react.element"):60103,Ys=le?Symbol.for("react.portal"):60106,ni=le?Symbol.for("react.fragment"):60107,ii=le?Symbol.for("react.strict_mode"):60108,ai=le?Symbol.for("react.profiler"):60114,si=le?Symbol.for("react.provider"):60109,li=le?Symbol.for("react.context"):60110,qs=le?Symbol.for("react.async_mode"):60111,ci=le?Symbol.for("react.concurrent_mode"):60111,ui=le?Symbol.for("react.forward_ref"):60112,fi=le?Symbol.for("react.suspense"):60113,P0=le?Symbol.for("react.suspense_list"):60120,di=le?Symbol.for("react.memo"):60115,pi=le?Symbol.for("react.lazy"):60116,E0=le?Symbol.for("react.block"):60121,$0=le?Symbol.for("react.fundamental"):60117,_0=le?Symbol.for("react.responder"):60118,A0=le?Symbol.for("react.scope"):60119;function De(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Us:switch(e=e.type,e){case qs:case ci:case ni:case ai:case ii:case fi:return e;default:switch(e=e&&e.$$typeof,e){case li:case ui:case pi:case di:case si:return e;default:return t}}case Ys:return t}}}function cf(e){return De(e)===ci}q.AsyncMode=qs;q.ConcurrentMode=ci;q.ContextConsumer=li;q.ContextProvider=si;q.Element=Us;q.ForwardRef=ui;q.Fragment=ni;q.Lazy=pi;q.Memo=di;q.Portal=Ys;q.Profiler=ai;q.StrictMode=ii;q.Suspense=fi;q.isAsyncMode=function(e){return cf(e)||De(e)===qs};q.isConcurrentMode=cf;q.isContextConsumer=function(e){return De(e)===li};q.isContextProvider=function(e){return De(e)===si};q.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Us};q.isForwardRef=function(e){return De(e)===ui};q.isFragment=function(e){return De(e)===ni};q.isLazy=function(e){return De(e)===pi};q.isMemo=function(e){return De(e)===di};q.isPortal=function(e){return De(e)===Ys};q.isProfiler=function(e){return De(e)===ai};q.isStrictMode=function(e){return De(e)===ii};q.isSuspense=function(e){return De(e)===fi};q.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ni||e===ci||e===ai||e===ii||e===fi||e===P0||typeof e=="object"&&e!==null&&(e.$$typeof===pi||e.$$typeof===di||e.$$typeof===si||e.$$typeof===li||e.$$typeof===ui||e.$$typeof===$0||e.$$typeof===_0||e.$$typeof===A0||e.$$typeof===E0)};q.typeOf=De;});var df=zo((Z3,ff)=>{ff.exports=uf();});var bf=zo((J3,vf)=>{var Xs=df(),M0={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},R0={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},I0={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},gf={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Zs={};Zs[Xs.ForwardRef]=I0;Zs[Xs.Memo]=gf;function pf(e){return Xs.isMemo(e)?gf:Zs[e.$$typeof]||M0}var L0=Object.defineProperty,O0=Object.getOwnPropertyNames,mf=Object.getOwnPropertySymbols,D0=Object.getOwnPropertyDescriptor,V0=Object.getPrototypeOf,hf=Object.prototype;function yf(e,t,r){if(typeof t!="string"){if(hf){var o=V0(t);o&&o!==hf&&yf(e,o,r);}var n=O0(t);mf&&(n=n.concat(mf(t)));for(var i=pf(e),a=pf(t),s=0;s<n.length;++s){var l=n[s];if(!R0[l]&&!(r&&r[l])&&!(a&&a[l])&&!(i&&i[l])){var c=D0(t,l);try{L0(e,l,c);}catch(u){}}}}return e}vf.exports=yf;});var Or=zo((Xo,Rr)=>{var Z0=200,Nf="__lodash_hash_undefined__",J0=800,Q0=16,Bf=9007199254740991,jf="[object Arguments]",eb="[object Array]",tb="[object AsyncFunction]",rb="[object Boolean]",ob="[object Date]",nb="[object Error]",zf="[object Function]",ib="[object GeneratorFunction]",ab="[object Map]",sb="[object Number]",lb="[object Null]",Ff="[object Object]",cb="[object Proxy]",ub="[object RegExp]",fb="[object Set]",db="[object String]",pb="[object Undefined]",mb="[object WeakMap]",hb="[object ArrayBuffer]",gb="[object DataView]",yb="[object Float32Array]",vb="[object Float64Array]",bb="[object Int8Array]",xb="[object Int16Array]",Sb="[object Int32Array]",wb="[object Uint8Array]",Cb="[object Uint8ClampedArray]",Tb="[object Uint16Array]",kb="[object Uint32Array]",Pb=/[\\^$.*+?()[\]{}|]/g,Eb=/^\[object .+?Constructor\]$/,$b=/^(?:0|[1-9]\d*)$/,J={};J[yb]=J[vb]=J[bb]=J[xb]=J[Sb]=J[wb]=J[Cb]=J[Tb]=J[kb]=!0;J[jf]=J[eb]=J[hb]=J[rb]=J[gb]=J[ob]=J[nb]=J[zf]=J[ab]=J[sb]=J[Ff]=J[ub]=J[fb]=J[db]=J[mb]=!1;var Wf=typeof global=="object"&&global&&global.Object===Object&&global,_b=typeof self=="object"&&self&&self.Object===Object&&self,Qo=Wf||_b||Function("return this")(),Hf=typeof Xo=="object"&&Xo&&!Xo.nodeType&&Xo,Zo=Hf&&typeof Rr=="object"&&Rr&&!Rr.nodeType&&Rr,Kf=Zo&&Zo.exports===Hf,el=Kf&&Wf.process,_f=function(){try{var e=Zo&&Zo.require&&Zo.require("util").types;return e||el&&el.binding&&el.binding("util")}catch(t){}}(),Af=_f&&_f.isTypedArray;function Ab(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Mb(e,t){for(var r=-1,o=Array(e);++r<e;)o[r]=t(r);return o}function Rb(e){return function(t){return e(t)}}function Ib(e,t){return e==null?void 0:e[t]}function Lb(e,t){return function(r){return e(t(r))}}var Ob=Array.prototype,Db=Function.prototype,ki=Object.prototype,tl=Qo["__core-js_shared__"],Pi=Db.toString,ut=ki.hasOwnProperty,Mf=function(){var e=/[^.]+$/.exec(tl&&tl.keys&&tl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Gf=ki.toString,Vb=Pi.call(Object),Nb=RegExp("^"+Pi.call(ut).replace(Pb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ci=Kf?Qo.Buffer:void 0,Rf=Qo.Symbol,If=Qo.Uint8Array,Lf=Ci?Ci.allocUnsafe:void 0,Uf=Lb(Object.getPrototypeOf,Object),Of=Object.create,Bb=ki.propertyIsEnumerable,jb=Ob.splice,Yt=Rf?Rf.toStringTag:void 0,Ti=function(){try{var e=sl(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),zb=Ci?Ci.isBuffer:void 0,Df=Math.max,Fb=Date.now,Yf=sl(Qo,"Map"),Jo=sl(Object,"create"),Wb=function(){function e(){}return function(t){if(!Xt(t))return {};if(Of)return Of(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function qt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1]);}}function Hb(){this.__data__=Jo?Jo(null):{},this.size=0;}function Kb(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Gb(e){var t=this.__data__;if(Jo){var r=t[e];return r===Nf?void 0:r}return ut.call(t,e)?t[e]:void 0}function Ub(e){var t=this.__data__;return Jo?t[e]!==void 0:ut.call(t,e)}function Yb(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Jo&&t===void 0?Nf:t,this}qt.prototype.clear=Hb;qt.prototype.delete=Kb;qt.prototype.get=Gb;qt.prototype.has=Ub;qt.prototype.set=Yb;function ft(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1]);}}function qb(){this.__data__=[],this.size=0;}function Xb(e){var t=this.__data__,r=Ei(t,e);if(r<0)return !1;var o=t.length-1;return r==o?t.pop():jb.call(t,r,1),--this.size,!0}function Zb(e){var t=this.__data__,r=Ei(t,e);return r<0?void 0:t[r][1]}function Jb(e){return Ei(this.__data__,e)>-1}function Qb(e,t){var r=this.__data__,o=Ei(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}ft.prototype.clear=qb;ft.prototype.delete=Xb;ft.prototype.get=Zb;ft.prototype.has=Jb;ft.prototype.set=Qb;function Ir(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1]);}}function ex(){this.size=0,this.__data__={hash:new qt,map:new(Yf||ft),string:new qt};}function tx(e){var t=_i(this,e).delete(e);return this.size-=t?1:0,t}function rx(e){return _i(this,e).get(e)}function ox(e){return _i(this,e).has(e)}function nx(e,t){var r=_i(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}Ir.prototype.clear=ex;Ir.prototype.delete=tx;Ir.prototype.get=rx;Ir.prototype.has=ox;Ir.prototype.set=nx;function Lr(e){var t=this.__data__=new ft(e);this.size=t.size;}function ix(){this.__data__=new ft,this.size=0;}function ax(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function sx(e){return this.__data__.get(e)}function lx(e){return this.__data__.has(e)}function cx(e,t){var r=this.__data__;if(r instanceof ft){var o=r.__data__;if(!Yf||o.length<Z0-1)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ir(o);}return r.set(e,t),this.size=r.size,this}Lr.prototype.clear=ix;Lr.prototype.delete=ax;Lr.prototype.get=sx;Lr.prototype.has=lx;Lr.prototype.set=cx;function ux(e,t){var r=il(e),o=!r&&nl(e),n=!r&&!o&&Jf(e),i=!r&&!o&&!n&&ed(e),a=r||o||n||i,s=a?Mb(e.length,String):[],l=s.length;for(var c in e)(t||ut.call(e,c))&&!(a&&(c=="length"||n&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Xf(c,l)))&&s.push(c);return s}function rl(e,t,r){(r!==void 0&&!Ai(e[t],r)||r===void 0&&!(t in e))&&al(e,t,r);}function fx(e,t,r){var o=e[t];(!(ut.call(e,t)&&Ai(o,r))||r===void 0&&!(t in e))&&al(e,t,r);}function Ei(e,t){for(var r=e.length;r--;)if(Ai(e[r][0],t))return r;return -1}function al(e,t,r){t=="__proto__"&&Ti?Ti(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r;}var dx=kx();function $i(e){return e==null?e===void 0?pb:lb:Yt&&Yt in Object(e)?Px(e):Rx(e)}function Vf(e){return en(e)&&$i(e)==jf}function px(e){if(!Xt(e)||Ax(e))return !1;var t=cl(e)?Nb:Eb;return t.test(Dx(e))}function mx(e){return en(e)&&Qf(e.length)&&!!J[$i(e)]}function hx(e){if(!Xt(e))return Mx(e);var t=Zf(e),r=[];for(var o in e)o=="constructor"&&(t||!ut.call(e,o))||r.push(o);return r}function qf(e,t,r,o,n){e!==t&&dx(t,function(i,a){if(n||(n=new Lr),Xt(i))gx(e,t,a,r,qf,o,n);else {var s=o?o(ol(e,a),i,a+"",e,t,n):void 0;s===void 0&&(s=i),rl(e,a,s);}},td);}function gx(e,t,r,o,n,i,a){var s=ol(e,r),l=ol(t,r),c=a.get(l);if(c){rl(e,r,c);return}var u=i?i(s,l,r+"",e,t,a):void 0,f=u===void 0;if(f){var p=il(l),m=!p&&Jf(l),v=!p&&!m&&ed(l);u=l,p||m||v?il(s)?u=s:Vx(s)?u=wx(s):m?(f=!1,u=bx(l,!0)):v?(f=!1,u=Sx(l,!0)):u=[]:Nx(l)||nl(l)?(u=s,nl(s)?u=Bx(s):(!Xt(s)||cl(s))&&(u=Ex(l))):f=!1;}f&&(a.set(l,u),n(u,l,o,i,a),a.delete(l)),rl(e,r,u);}function yx(e,t){return Lx(Ix(e,t,rd),e+"")}var vx=Ti?function(e,t){return Ti(e,"toString",{configurable:!0,enumerable:!1,value:zx(t),writable:!0})}:rd;function bx(e,t){if(t)return e.slice();var r=e.length,o=Lf?Lf(r):new e.constructor(r);return e.copy(o),o}function xx(e){var t=new e.constructor(e.byteLength);return new If(t).set(new If(e)),t}function Sx(e,t){var r=t?xx(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function wx(e,t){var r=-1,o=e.length;for(t||(t=Array(o));++r<o;)t[r]=e[r];return t}function Cx(e,t,r,o){var n=!r;r||(r={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=o?o(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),n?al(r,s,l):fx(r,s,l);}return r}function Tx(e){return yx(function(t,r){var o=-1,n=r.length,i=n>1?r[n-1]:void 0,a=n>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(n--,i):void 0,a&&$x(r[0],r[1],a)&&(i=n<3?void 0:i,n=1),t=Object(t);++o<n;){var s=r[o];s&&e(t,s,o,i);}return t})}function kx(e){return function(t,r,o){for(var n=-1,i=Object(t),a=o(t),s=a.length;s--;){var l=a[e?s:++n];if(r(i[l],l,i)===!1)break}return t}}function _i(e,t){var r=e.__data__;return _x(t)?r[typeof t=="string"?"string":"hash"]:r.map}function sl(e,t){var r=Ib(e,t);return px(r)?r:void 0}function Px(e){var t=ut.call(e,Yt),r=e[Yt];try{e[Yt]=void 0;var o=!0;}catch(i){}var n=Gf.call(e);return o&&(t?e[Yt]=r:delete e[Yt]),n}function Ex(e){return typeof e.constructor=="function"&&!Zf(e)?Wb(Uf(e)):{}}function Xf(e,t){var r=typeof e;return t=t==null?Bf:t,!!t&&(r=="number"||r!="symbol"&&$b.test(e))&&e>-1&&e%1==0&&e<t}function $x(e,t,r){if(!Xt(r))return !1;var o=typeof t;return (o=="number"?ll(r)&&Xf(t,r.length):o=="string"&&t in r)?Ai(r[t],e):!1}function _x(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ax(e){return !!Mf&&Mf in e}function Zf(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ki;return e===r}function Mx(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}function Rx(e){return Gf.call(e)}function Ix(e,t,r){return t=Df(t===void 0?e.length-1:t,0),function(){for(var o=arguments,n=-1,i=Df(o.length-t,0),a=Array(i);++n<i;)a[n]=o[t+n];n=-1;for(var s=Array(t+1);++n<t;)s[n]=o[n];return s[t]=r(a),Ab(e,this,s)}}function ol(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Lx=Ox(vx);function Ox(e){var t=0,r=0;return function(){var o=Fb(),n=Q0-(o-r);if(r=o,n>0){if(++t>=J0)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Dx(e){if(e!=null){try{return Pi.call(e)}catch(t){}try{return e+""}catch(t){}}return ""}function Ai(e,t){return e===t||e!==e&&t!==t}var nl=Vf(function(){return arguments}())?Vf:function(e){return en(e)&&ut.call(e,"callee")&&!Bb.call(e,"callee")},il=Array.isArray;function ll(e){return e!=null&&Qf(e.length)&&!cl(e)}function Vx(e){return en(e)&&ll(e)}var Jf=zb||Fx;function cl(e){if(!Xt(e))return !1;var t=$i(e);return t==zf||t==ib||t==tb||t==cb}function Qf(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Bf}function Xt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function en(e){return e!=null&&typeof e=="object"}function Nx(e){if(!en(e)||$i(e)!=Ff)return !1;var t=Uf(e);if(t===null)return !0;var r=ut.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Pi.call(r)==Vb}var ed=Af?Rb(Af):mx;function Bx(e){return Cx(e,td(e))}function td(e){return ll(e)?ux(e,!0):hx(e)}var jx=Tx(function(e,t,r,o){qf(e,t,r,o);});function zx(e){return function(){return e}}function rd(e){return e}function Fx(){return !1}Rr.exports=jx;});var Md=zo((T6,Ad)=>{var v1=typeof Element!="undefined",b1=typeof Map=="function",x1=typeof Set=="function",S1=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Bi(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,o,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return !1;for(o=r;o--!==0;)if(!Bi(e[o],t[o]))return !1;return !0}var i;if(b1&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return !1;for(i=e.entries();!(o=i.next()).done;)if(!t.has(o.value[0]))return !1;for(i=e.entries();!(o=i.next()).done;)if(!Bi(o.value[1],t.get(o.value[0])))return !1;return !0}if(x1&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return !1;for(i=e.entries();!(o=i.next()).done;)if(!t.has(o.value[0]))return !1;return !0}if(S1&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return !1;for(o=r;o--!==0;)if(e[o]!==t[o])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(n=Object.keys(e),r=n.length,r!==Object.keys(t).length)return !1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return !1;if(v1&&e instanceof Element)return !1;for(o=r;o--!==0;)if(!((n[o]==="_owner"||n[o]==="__v"||n[o]==="__o")&&e.$$typeof)&&!Bi(e[n[o]],t[n[o]]))return !1;return !0}return e!==e&&t!==t}Ad.exports=function(t,r){try{return Bi(t,r)}catch(o){if((o.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw o}};});function Pk(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Qp,em=Ou(()=>{Qp=Pk;});var tm={};c0(tm,{default:()=>_k});var Ek,$k,_k,rm=Ou(()=>{em();Ek=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|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)-.*))$/,$k=Qp(function(e){return Ek.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),_k=$k;});var xr="@saas-ui/storybook-addon2",Vu=`${xr}/direction-tool`,ct={TOGGLE_COLOR_MODE:`${xr}/toggleColorMode`,TOGGLE_DIRECTION:`${xr}/toggleDirection`,SET_THEME:`${xr}/setTheme`};function Nu(){let{setColorMode:e}=useColorMode();return useEffect(()=>{let t=addons.getChannel(),r=o=>e(o);return t.on(ct.TOGGLE_COLOR_MODE,r),()=>{t.removeListener(ct.TOGGLE_COLOR_MODE,r);}},[e]),null}var ju=(e="ltr")=>{let[t,r]=useState(e.toLowerCase());return useEffect(()=>{document.documentElement.dir=t;},[t]),useEffect(()=>{let o=addons.getChannel(),n=i=>r(i);return o.on(ct.TOGGLE_DIRECTION,n),()=>{o.removeListener(ct.TOGGLE_DIRECTION,n);}},[r]),t};function g0(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 y0(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 zu=function(){function e(r){var o=this;this._insertTag=function(n){var i;o.tags.length===0?o.insertionPoint?i=o.insertionPoint.nextSibling:o.prepend?i=o.container.firstChild:i=o.before:i=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(n,i),o.tags.push(n);},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null;}var t=e.prototype;return t.hydrate=function(o){o.forEach(this._insertTag);},t.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(y0(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var a=g0(n);try{a.insertRule(o,a.cssRules.length);}catch(s){}}else n.appendChild(document.createTextNode(o));this.ctr++;},t.flush=function(){this.tags.forEach(function(o){return o.parentNode&&o.parentNode.removeChild(o)}),this.tags=[],this.ctr=0;},e}();var pe="-ms-",Fo="-moz-",U="-webkit-",Xn="comm",Sr="rule",wr="decl";var Fu="@import";var Zn="@keyframes";var Wu="@layer";var Hu=Math.abs,Gt=String.fromCharCode,Ku=Object.assign;function Gu(e,t){return ie(e,0)^45?(((t<<2^ie(e,0))<<2^ie(e,1))<<2^ie(e,2))<<2^ie(e,3):0}function Jn(e){return e.trim()}function Ws(e,t){return (e=t.exec(e))?e[0]:e}function G(e,t,r){return e.replace(t,r)}function Wo(e,t){return e.indexOf(t)}function ie(e,t){return e.charCodeAt(t)|0}function Ct(e,t,r){return e.slice(t,r)}function ve(e){return e.length}function Cr(e){return e.length}function Tr(e,t){return t.push(e),e}function Hs(e,t){return e.map(t).join("")}var Qn=1,kr=1,Uu=0,be=0,ae=0,Er="";function Ho(e,t,r,o,n,i,a){return {value:e,root:t,parent:r,type:o,props:n,children:i,line:Qn,column:kr,length:a,return:""}}function $r(e,t){return Ku(Ho("",null,null,"",null,null,0),e,{length:-e.length},t)}function Yu(){return ae}function qu(){return ae=be>0?ie(Er,--be):0,kr--,ae===10&&(kr=1,Qn--),ae}function xe(){return ae=be<Uu?ie(Er,be++):0,kr++,ae===10&&(kr=1,Qn++),ae}function ze(){return ie(Er,be)}function Ko(){return be}function _r(e,t){return Ct(Er,e,t)}function Pr(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 ei(e){return Qn=kr=1,Uu=ve(Er=e),be=0,[]}function ti(e){return Er="",e}function Ar(e){return Jn(_r(be-1,Ks(e===91?e+2:e===40?e+1:e)))}function Xu(e){for(;(ae=ze())&&ae<33;)xe();return Pr(e)>2||Pr(ae)>3?"":" "}function Zu(e,t){for(;--t&&xe()&&!(ae<48||ae>102||ae>57&&ae<65||ae>70&&ae<97););return _r(e,Ko()+(t<6&&ze()==32&&xe()==32))}function Ks(e){for(;xe();)switch(ae){case e:return be;case 34:case 39:e!==34&&e!==39&&Ks(ae);break;case 40:e===41&&Ks(e);break;case 92:xe();break}return be}function Ju(e,t){for(;xe()&&e+ae!==47+10;)if(e+ae===42+42&&ze()===47)break;return "/*"+_r(t,be-1)+"*"+Gt(e===47?e:xe())}function Qu(e){for(;!Pr(ze());)xe();return _r(e,be)}function rf(e){return ti(ri("",null,null,null,[""],e=ei(e),0,[0],e))}function ri(e,t,r,o,n,i,a,s,l){for(var c=0,u=0,f=a,p=0,m=0,v=0,y=1,x=1,w=1,S=0,C="",k=n,$=i,L=o,R=C;x;)switch(v=S,S=xe()){case 40:if(v!=108&&ie(R,f-1)==58){Wo(R+=G(Ar(S),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:R+=Ar(S);break;case 9:case 10:case 13:case 32:R+=Xu(v);break;case 92:R+=Zu(Ko()-1,7);continue;case 47:switch(ze()){case 42:case 47:Tr(v0(Ju(xe(),Ko()),t,r),l);break;default:R+="/";}break;case 123*y:s[c++]=ve(R)*w;case 125*y:case 59:case 0:switch(S){case 0:case 125:x=0;case 59+u:w==-1&&(R=G(R,/\f/g,"")),m>0&&ve(R)-f&&Tr(m>32?tf(R+";",o,r,f-1):tf(G(R," ","")+";",o,r,f-2),l);break;case 59:R+=";";default:if(Tr(L=ef(R,t,r,c,u,n,s,C,k=[],$=[],f),i),S===123)if(u===0)ri(R,t,L,L,k,i,f,s,$);else switch(p===99&&ie(R,3)===110?100:p){case 100:case 108:case 109:case 115:ri(e,L,L,o&&Tr(ef(e,L,L,0,0,n,s,C,n,k=[],f),$),n,$,f,s,o?k:$);break;default:ri(R,L,L,L,[""],$,0,s,$);}}c=u=m=0,y=w=1,C=R="",f=a;break;case 58:f=1+ve(R),m=v;default:if(y<1){if(S==123)--y;else if(S==125&&y++==0&&qu()==125)continue}switch(R+=Gt(S),S*y){case 38:w=u>0?1:(R+="\f",-1);break;case 44:s[c++]=(ve(R)-1)*w,w=1;break;case 64:ze()===45&&(R+=Ar(xe())),p=ze(),u=f=ve(C=R+=Qu(Ko())),S++;break;case 45:v===45&&ve(R)==2&&(y=0);}}return i}function ef(e,t,r,o,n,i,a,s,l,c,u){for(var f=n-1,p=n===0?i:[""],m=Cr(p),v=0,y=0,x=0;v<o;++v)for(var w=0,S=Ct(e,f+1,f=Hu(y=a[v])),C=e;w<m;++w)(C=Jn(y>0?p[w]+" "+S:G(S,/&\f/g,p[w])))&&(l[x++]=C);return Ho(e,t,r,n===0?Sr:s,l,c,u)}function v0(e,t,r){return Ho(e,t,r,Xn,Gt(Yu()),Ct(e,2,-2),0)}function tf(e,t,r,o){return Ho(e,t,r,wr,Ct(e,0,o),Ct(e,o+1,-1),o)}function Ut(e,t){for(var r="",o=Cr(e),n=0;n<o;n++)r+=t(e[n],n,e,t)||"";return r}function of(e,t,r,o){switch(e.type){case Wu:if(e.children.length)break;case Fu:case wr:return e.return=e.return||e.value;case Xn:return "";case Zn:return e.return=e.value+"{"+Ut(e.children,o)+"}";case Sr:e.value=e.props.join(",");}return ve(r=Ut(e.children,o))?e.return=e.value+"{"+r+"}":""}function nf(e){var t=Cr(e);return function(r,o,n,i){for(var a="",s=0;s<t;s++)a+=e[s](r,o,n,i)||"";return a}}function af(e){return function(t){t.root||(t=t.return)&&e(t);}}function oi(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var b0=function(t,r,o){for(var n=0,i=0;n=i,i=ze(),n===38&&i===12&&(r[o]=1),!Pr(i);)xe();return _r(t,be)},x0=function(t,r){var o=-1,n=44;do switch(Pr(n)){case 0:n===38&&ze()===12&&(r[o]=1),t[o]+=b0(be-1,r,o);break;case 2:t[o]+=Ar(n);break;case 4:if(n===44){t[++o]=ze()===58?"&\f":"",r[o]=t[o].length;break}default:t[o]+=Gt(n);}while(n=xe());return t},S0=function(t,r){return ti(x0(ei(t),r))},sf=new WeakMap,w0=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,o=t.parent,n=t.column===o.column&&t.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!sf.get(o))&&!n){sf.set(t,!0);for(var i=[],a=S0(r,i),s=o.props,l=0,c=0;l<a.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=i[l]?a[l].replace(/&\f/g,s[u]):s[u]+" "+a[l];}}},C0=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="");}};function lf(e,t){switch(Gu(e,t)){case 5103:return U+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return U+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+Fo+e+pe+e+e;case 6828:case 4268:return U+e+pe+e+e;case 6165:return U+e+pe+"flex-"+e+e;case 5187:return U+e+G(e,/(\w+).+(:[^]+)/,U+"box-$1$2"+pe+"flex-$1$2")+e;case 5443:return U+e+pe+"flex-item-"+G(e,/flex-|-self/,"")+e;case 4675:return U+e+pe+"flex-line-pack"+G(e,/align-content|flex-|-self/,"")+e;case 5548:return U+e+pe+G(e,"shrink","negative")+e;case 5292:return U+e+pe+G(e,"basis","preferred-size")+e;case 6060:return U+"box-"+G(e,"-grow","")+U+e+pe+G(e,"grow","positive")+e;case 4554:return U+G(e,/([^-])(transform)/g,"$1"+U+"$2")+e;case 6187:return G(G(G(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return G(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return G(G(e,/(.+:)(flex-)?(.*)/,U+"box-pack:$3"+pe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4095:case 3583:case 4068:case 2532:return G(e,/(.+)-inline(.+)/,U+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ve(e)-1-t>6)switch(ie(e,t+1)){case 109:if(ie(e,t+4)!==45)break;case 102:return G(e,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+Fo+(ie(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~Wo(e,"stretch")?lf(G(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ie(e,t+1)!==115)break;case 6444:switch(ie(e,ve(e)-3-(~Wo(e,"!important")&&10))){case 107:return G(e,":",":"+U)+e;case 101:return G(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+U+(ie(e,14)===45?"inline-":"")+"box$3$1"+U+"$2$3$1"+pe+"$2box$3")+e}break;case 5936:switch(ie(e,t+11)){case 114:return U+e+pe+G(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+pe+G(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+pe+G(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return U+e+pe+e+e}return e}var T0=function(t,r,o,n){if(t.length>-1&&!t.return)switch(t.type){case wr:t.return=lf(t.value,t.length);break;case Zn:return Ut([$r(t,{value:G(t.value,"@","@"+U)})],n);case Sr:if(t.length)return Hs(t.props,function(i){switch(Ws(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ut([$r(t,{props:[G(i,/:(read-\w+)/,":"+Fo+"$1")]})],n);case"::placeholder":return Ut([$r(t,{props:[G(i,/:(plac\w+)/,":"+U+"input-$1")]}),$r(t,{props:[G(i,/:(plac\w+)/,":"+Fo+"$1")]}),$r(t,{props:[G(i,/:(plac\w+)/,pe+"input-$1")]})],n)}return ""})}},k0=[T0],Gs=function(t){var r=t.key;if(r==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(y){var x=y.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""));});}var n=t.stylisPlugins||k0,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var x=y.getAttribute("data-emotion").split(" "),w=1;w<x.length;w++)i[x[w]]=!0;s.push(y);});var l,c=[w0,C0];{var u,f=[of,af(function(y){u.insert(y);})],p=nf(c.concat(n,f)),m=function(x){return Ut(rf(x),p)};l=function(x,w,S,C){u=S,m(x?x+"{"+w.styles+"}":w.styles),C&&(v.inserted[w.name]=!0);};}var v={key:r,sheet:new zu({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return v.sheet.hydrate(s),v};function Mr(){return Mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);}return e},Mr.apply(this,arguments)}var N0=!0;function mi(e,t,r){var o="";return r.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):o+=n+" ";}),o}var Go=function(t,r,o){var n=t.key+"-"+r.name;(o===!1||N0===!1)&&t.registered[n]===void 0&&(t.registered[n]=r.styles);},hi=function(t,r,o){Go(t,r,o);var n=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+n:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function xf(e){for(var t=0,r,o=0,n=e.length;n>=4;++o,n-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&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 Sf={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,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};var B0=/[A-Z]|^ms/g,j0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,kf=function(t){return t.charCodeAt(1)===45},wf=function(t){return t!=null&&typeof t!="boolean"},Js=oi(function(e){return kf(e)?e:e.replace(B0,"-$&").toLowerCase()}),Cf=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(j0,function(o,n,i){return Qe={name:n,styles:i,next:Qe},n})}return Sf[t]!==1&&!kf(t)&&typeof r=="number"&&r!==0?r+"px":r};function Uo(e,t,r){if(r==null)return "";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return "";case"object":{if(r.anim===1)return Qe={name:r.name,styles:r.styles,next:Qe},r.name;if(r.styles!==void 0){var o=r.next;if(o!==void 0)for(;o!==void 0;)Qe={name:o.name,styles:o.styles,next:Qe},o=o.next;var n=r.styles+";";return n}return z0(e,t,r)}case"function":{if(e!==void 0){var i=Qe,a=r(e);return Qe=i,Uo(e,t,a)}break}}if(t==null)return r;var c=t[r];return c!==void 0?c:r}function z0(e,t,r){var o="";if(Array.isArray(r))for(var n=0;n<r.length;n++)o+=Uo(e,t,r[n])+";";else for(var i in r){var a=r[i];if(typeof a!="object")t!=null&&t[a]!==void 0?o+=i+"{"+t[a]+"}":wf(a)&&(o+=Js(i)+":"+Cf(i,a)+";");else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)wf(a[s])&&(o+=Js(i)+":"+Cf(i,a[s])+";");else {var l=Uo(e,t,a);switch(i){case"animation":case"animationName":{o+=Js(i)+":"+l+";";break}default:o+=i+"{"+l+"}";}}}return o}var Tf=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var Qe,gi=function(t,r,o){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var n=!0,i="";Qe=void 0;var a=t[0];a==null||a.raw===void 0?(n=!1,i+=Uo(o,r,a)):i+=a[0];for(var s=1;s<t.length;s++)i+=Uo(o,r,t[s]),n&&(i+=a[s]);Tf.lastIndex=0;for(var c="",u;(u=Tf.exec(i))!==null;)c+="-"+u[1];var f=xf(i)+c;return {name:f,styles:i,next:Qe}};var F0=function(t){return t()},W0=bt.useInsertionEffect?bt.useInsertionEffect:!1,bi=W0||F0;var xi=bt.createContext(typeof HTMLElement!="undefined"?Gs({key:"css"}):null);xi.Provider;var Si=function(t){return forwardRef$1(function(r,o){var n=useContext(xi);return t(r,n,o)})};var Yo=bt.createContext({});Kt(bf());function Ef(){let e=useContext(Yo);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}var Qs=createContext({});Qs.displayName="ColorModeContext";function qo(){let e=useContext(Qs);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function $f(){let e=qo(),t=Ef();return b(d({},e),{theme:t})}function Fe(e){let t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function et(e,...t){return X0(e)?e(...t):e}var X0=e=>typeof e=="function";Kt(Or(),1);var rn=Kt(Or(),1),pd=Kt(Or(),1);var Li=Kt(Or(),1);var Wx=e=>/!(important)?$/.test(e),od=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,Hx=(e,t)=>r=>{let o=String(t),n=Wx(o),i=od(o),a=e?`${e}.${i}`:i,s=Fe(r.__cssMap)&&a in r.__cssMap?r.__cssMap[a].varRef:t;return s=od(s),n?`${s} !important`:s};function gl(e){let{scale:t,transform:r,compose:o}=e;return (i,a)=>{var s;let l=Hx(t,i)(a),c=(s=r==null?void 0:r(l,a))!=null?s:l;return o&&(c=o(c,a)),c}}var Mi=(...e)=>t=>e.reduce((r,o)=>o(r),t);function We(e,t){return r=>{let o={property:r,scale:e};return o.transform=gl({scale:e,transform:t}),o}}var Kx=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function Gx(e){let{property:t,scale:r,transform:o}=e;return {scale:r,property:Kx(t),transform:r?gl({scale:r,compose:o}):o}}var cd=["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 Ux(){return ["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...cd].join(" ")}function Yx(){return ["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...cd].join(" ")}var qx={"--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(" ")},Xx={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 Zx(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(", ")}}var Jx={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},fl={"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"},Qx=new Set(Object.values(fl)),dl=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),eS=e=>e.trim();function tS(e,t){if(e==null||dl.has(e))return e;if(!(pl(e)||dl.has(e)))return `url('${e}')`;let n=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=n==null?void 0:n[1],a=n==null?void 0:n[2];if(!i||!a)return e;let s=i.includes("-gradient")?i:`${i}-gradient`,[l,...c]=a.split(",").map(eS).filter(Boolean);if((c==null?void 0:c.length)===0)return e;let u=l in fl?fl[l]:l;c.unshift(u);let f=c.map(p=>{if(Qx.has(p))return p;let m=p.indexOf(" "),[v,y]=m!==-1?[p.substr(0,m),p.substr(m+1)]:[p],x=pl(y)?y:y&&y.split(" "),w=`colors.${v}`,S=w in t.__cssMap?t.__cssMap[w].varRef:v;return x?[S,...Array.isArray(x)?x:[x]].join(" "):S});return `${s}(${f.join(", ")})`}var pl=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),rS=(e,t)=>tS(e,t!=null?t:{});function oS(e){return /^var\(--.+\)$/.test(e)}var nS=e=>{let t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return {unitless:!r,value:t,unit:r}},tt=e=>t=>`${e}(${t})`,W={filter(e){return e!=="auto"?e:qx},backdropFilter(e){return e!=="auto"?e:Xx},ring(e){return Zx(W.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?Ux():e==="auto-gpu"?Yx():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;let{unitless:t}=nS(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){let r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(oS(e)||e==null)return e;let t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:rS,blur:tt("blur"),opacity:tt("opacity"),brightness:tt("brightness"),contrast:tt("contrast"),dropShadow:tt("drop-shadow"),grayscale:tt("grayscale"),hueRotate:e=>tt("hue-rotate")(W.degree(e)),invert:tt("invert"),saturate:tt("saturate"),sepia:tt("sepia"),bgImage(e){return e==null||pl(e)||dl.has(e)?e:`url(${e})`},outline(e){let t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;let{space:r,divide:o}=(t=Jx[e])!=null?t:{},n={flexDirection:e};return r&&(n[r]=1),o&&(n[o]=1),n}},g={borderWidths:We("borderWidths"),borderStyles:We("borderStyles"),colors:We("colors"),borders:We("borders"),gradients:We("gradients",W.gradient),radii:We("radii",W.px),space:We("space",Mi(W.vh,W.px)),spaceT:We("space",Mi(W.vh,W.px)),degreeT(e){return {property:e,transform:W.degree}},prop(e,t,r){return d({property:e,scale:t},t&&{transform:gl({scale:t,transform:r})})},propT(e,t){return {property:e,transform:t}},sizes:We("sizes",Mi(W.vh,W.px)),sizesT:We("sizes",Mi(W.vh,W.fraction)),shadows:We("shadows"),logical:Gx,blur:We("blur",W.blur)},Ri={background:g.colors("background"),backgroundColor:g.colors("backgroundColor"),backgroundImage:g.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:W.bgClip},bgSize:g.prop("backgroundSize"),bgPosition:g.prop("backgroundPosition"),bg:g.colors("background"),bgColor:g.colors("backgroundColor"),bgPos:g.prop("backgroundPosition"),bgRepeat:g.prop("backgroundRepeat"),bgAttachment:g.prop("backgroundAttachment"),bgGradient:g.gradients("backgroundImage"),bgClip:{transform:W.bgClip}};Object.assign(Ri,{bgImage:Ri.backgroundImage,bgImg:Ri.backgroundImage});var Y={border:g.borders("border"),borderWidth:g.borderWidths("borderWidth"),borderStyle:g.borderStyles("borderStyle"),borderColor:g.colors("borderColor"),borderRadius:g.radii("borderRadius"),borderTop:g.borders("borderTop"),borderBlockStart:g.borders("borderBlockStart"),borderTopLeftRadius:g.radii("borderTopLeftRadius"),borderStartStartRadius:g.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:g.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:g.radii("borderTopRightRadius"),borderStartEndRadius:g.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:g.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:g.borders("borderRight"),borderInlineEnd:g.borders("borderInlineEnd"),borderBottom:g.borders("borderBottom"),borderBlockEnd:g.borders("borderBlockEnd"),borderBottomLeftRadius:g.radii("borderBottomLeftRadius"),borderBottomRightRadius:g.radii("borderBottomRightRadius"),borderLeft:g.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:g.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:g.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:g.borders(["borderLeft","borderRight"]),borderInline:g.borders("borderInline"),borderY:g.borders(["borderTop","borderBottom"]),borderBlock:g.borders("borderBlock"),borderTopWidth:g.borderWidths("borderTopWidth"),borderBlockStartWidth:g.borderWidths("borderBlockStartWidth"),borderTopColor:g.colors("borderTopColor"),borderBlockStartColor:g.colors("borderBlockStartColor"),borderTopStyle:g.borderStyles("borderTopStyle"),borderBlockStartStyle:g.borderStyles("borderBlockStartStyle"),borderBottomWidth:g.borderWidths("borderBottomWidth"),borderBlockEndWidth:g.borderWidths("borderBlockEndWidth"),borderBottomColor:g.colors("borderBottomColor"),borderBlockEndColor:g.colors("borderBlockEndColor"),borderBottomStyle:g.borderStyles("borderBottomStyle"),borderBlockEndStyle:g.borderStyles("borderBlockEndStyle"),borderLeftWidth:g.borderWidths("borderLeftWidth"),borderInlineStartWidth:g.borderWidths("borderInlineStartWidth"),borderLeftColor:g.colors("borderLeftColor"),borderInlineStartColor:g.colors("borderInlineStartColor"),borderLeftStyle:g.borderStyles("borderLeftStyle"),borderInlineStartStyle:g.borderStyles("borderInlineStartStyle"),borderRightWidth:g.borderWidths("borderRightWidth"),borderInlineEndWidth:g.borderWidths("borderInlineEndWidth"),borderRightColor:g.colors("borderRightColor"),borderInlineEndColor:g.colors("borderInlineEndColor"),borderRightStyle:g.borderStyles("borderRightStyle"),borderInlineEndStyle:g.borderStyles("borderInlineEndStyle"),borderTopRadius:g.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:g.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:g.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:g.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Y,{rounded:Y.borderRadius,roundedTop:Y.borderTopRadius,roundedTopLeft:Y.borderTopLeftRadius,roundedTopRight:Y.borderTopRightRadius,roundedTopStart:Y.borderStartStartRadius,roundedTopEnd:Y.borderStartEndRadius,roundedBottom:Y.borderBottomRadius,roundedBottomLeft:Y.borderBottomLeftRadius,roundedBottomRight:Y.borderBottomRightRadius,roundedBottomStart:Y.borderEndStartRadius,roundedBottomEnd:Y.borderEndEndRadius,roundedLeft:Y.borderLeftRadius,roundedRight:Y.borderRightRadius,roundedStart:Y.borderInlineStartRadius,roundedEnd:Y.borderInlineEndRadius,borderStart:Y.borderInlineStart,borderEnd:Y.borderInlineEnd,borderTopStartRadius:Y.borderStartStartRadius,borderTopEndRadius:Y.borderStartEndRadius,borderBottomStartRadius:Y.borderEndStartRadius,borderBottomEndRadius:Y.borderEndEndRadius,borderStartRadius:Y.borderInlineStartRadius,borderEndRadius:Y.borderInlineEndRadius,borderStartWidth:Y.borderInlineStartWidth,borderEndWidth:Y.borderInlineEndWidth,borderStartColor:Y.borderInlineStartColor,borderEndColor:Y.borderInlineEndColor,borderStartStyle:Y.borderInlineStartStyle,borderEndStyle:Y.borderInlineEndStyle});var iS={color:g.colors("color"),textColor:g.colors("color"),fill:g.colors("fill"),stroke:g.colors("stroke")},ml={boxShadow:g.shadows("boxShadow"),mixBlendMode:!0,blendMode:g.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:g.prop("backgroundBlendMode"),opacity:!0};Object.assign(ml,{shadow:ml.boxShadow});var aS={filter:{transform:W.filter},blur:g.blur("--chakra-blur"),brightness:g.propT("--chakra-brightness",W.brightness),contrast:g.propT("--chakra-contrast",W.contrast),hueRotate:g.propT("--chakra-hue-rotate",W.hueRotate),invert:g.propT("--chakra-invert",W.invert),saturate:g.propT("--chakra-saturate",W.saturate),dropShadow:g.propT("--chakra-drop-shadow",W.dropShadow),backdropFilter:{transform:W.backdropFilter},backdropBlur:g.blur("--chakra-backdrop-blur"),backdropBrightness:g.propT("--chakra-backdrop-brightness",W.brightness),backdropContrast:g.propT("--chakra-backdrop-contrast",W.contrast),backdropHueRotate:g.propT("--chakra-backdrop-hue-rotate",W.hueRotate),backdropInvert:g.propT("--chakra-backdrop-invert",W.invert),backdropSaturate:g.propT("--chakra-backdrop-saturate",W.saturate)},Ii={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:W.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:g.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:g.space("gap"),rowGap:g.space("rowGap"),columnGap:g.space("columnGap")};Object.assign(Ii,{flexDir:Ii.flexDirection});var ud={gridGap:g.space("gridGap"),gridColumnGap:g.space("gridColumnGap"),gridRowGap:g.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},sS={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:W.outline},outlineOffset:!0,outlineColor:g.colors("outlineColor")},He={width:g.sizesT("width"),inlineSize:g.sizesT("inlineSize"),height:g.sizes("height"),blockSize:g.sizes("blockSize"),boxSize:g.sizes(["width","height"]),minWidth:g.sizes("minWidth"),minInlineSize:g.sizes("minInlineSize"),minHeight:g.sizes("minHeight"),minBlockSize:g.sizes("minBlockSize"),maxWidth:g.sizes("maxWidth"),maxInlineSize:g.sizes("maxInlineSize"),maxHeight:g.sizes("maxHeight"),maxBlockSize:g.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 r,o,n;return {[`@media screen and (min-width: ${(n=(o=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:o.minW)!=null?n:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,o,n;return {[`@media screen and (max-width: ${(n=(o=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:o._minW)!=null?n:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:g.propT("float",W.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(He,{w:He.width,h:He.height,minW:He.minWidth,maxW:He.maxWidth,minH:He.minHeight,maxH:He.maxHeight,overscroll:He.overscrollBehavior,overscrollX:He.overscrollBehaviorX,overscrollY:He.overscrollBehaviorY});var lS={listStyleType:!0,listStylePosition:!0,listStylePos:g.prop("listStylePosition"),listStyleImage:!0,listStyleImg:g.prop("listStyleImage")};function cS(e,t,r,o){let n=typeof t=="string"?t.split("."):[t];for(o=0;o<n.length&&e;o+=1)e=e[n[o]];return e===void 0?r:e}var uS=e=>{let t=new WeakMap;return (o,n,i,a)=>{if(typeof o=="undefined")return e(o,n,i);t.has(o)||t.set(o,new Map);let s=t.get(o);if(s.has(n))return s.get(n);let l=e(o,n,i,a);return s.set(n,l),l}},fS=uS(cS),dS={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},pS={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},ul=(e,t,r)=>{let o={},n=fS(e,t,{});for(let i in n)i in r&&r[i]!=null||(o[i]=n[i]);return o},mS={srOnly:{transform(e){return e===!0?dS:e==="focusable"?pS:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>ul(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>ul(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>ul(t,e,r)}},on={position:!0,pos:g.prop("position"),zIndex:g.prop("zIndex","zIndices"),inset:g.spaceT("inset"),insetX:g.spaceT(["left","right"]),insetInline:g.spaceT("insetInline"),insetY:g.spaceT(["top","bottom"]),insetBlock:g.spaceT("insetBlock"),top:g.spaceT("top"),insetBlockStart:g.spaceT("insetBlockStart"),bottom:g.spaceT("bottom"),insetBlockEnd:g.spaceT("insetBlockEnd"),left:g.spaceT("left"),insetInlineStart:g.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:g.spaceT("right"),insetInlineEnd:g.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(on,{insetStart:on.insetInlineStart,insetEnd:on.insetInlineEnd});var hS={ring:{transform:W.ring},ringColor:g.colors("--chakra-ring-color"),ringOffset:g.prop("--chakra-ring-offset-width"),ringOffsetColor:g.colors("--chakra-ring-offset-color"),ringInset:g.prop("--chakra-ring-inset")},Q={margin:g.spaceT("margin"),marginTop:g.spaceT("marginTop"),marginBlockStart:g.spaceT("marginBlockStart"),marginRight:g.spaceT("marginRight"),marginInlineEnd:g.spaceT("marginInlineEnd"),marginBottom:g.spaceT("marginBottom"),marginBlockEnd:g.spaceT("marginBlockEnd"),marginLeft:g.spaceT("marginLeft"),marginInlineStart:g.spaceT("marginInlineStart"),marginX:g.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:g.spaceT("marginInline"),marginY:g.spaceT(["marginTop","marginBottom"]),marginBlock:g.spaceT("marginBlock"),padding:g.space("padding"),paddingTop:g.space("paddingTop"),paddingBlockStart:g.space("paddingBlockStart"),paddingRight:g.space("paddingRight"),paddingBottom:g.space("paddingBottom"),paddingBlockEnd:g.space("paddingBlockEnd"),paddingLeft:g.space("paddingLeft"),paddingInlineStart:g.space("paddingInlineStart"),paddingInlineEnd:g.space("paddingInlineEnd"),paddingX:g.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:g.space("paddingInline"),paddingY:g.space(["paddingTop","paddingBottom"]),paddingBlock:g.space("paddingBlock")};Object.assign(Q,{m:Q.margin,mt:Q.marginTop,mr:Q.marginRight,me:Q.marginInlineEnd,marginEnd:Q.marginInlineEnd,mb:Q.marginBottom,ml:Q.marginLeft,ms:Q.marginInlineStart,marginStart:Q.marginInlineStart,mx:Q.marginX,my:Q.marginY,p:Q.padding,pt:Q.paddingTop,py:Q.paddingY,px:Q.paddingX,pb:Q.paddingBottom,pl:Q.paddingLeft,ps:Q.paddingInlineStart,paddingStart:Q.paddingInlineStart,pr:Q.paddingRight,pe:Q.paddingInlineEnd,paddingEnd:Q.paddingInlineEnd});var gS={textDecorationColor:g.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:g.shadows("textShadow")},yS={clipPath:!0,transform:g.propT("transform",W.transform),transformOrigin:!0,translateX:g.spaceT("--chakra-translate-x"),translateY:g.spaceT("--chakra-translate-y"),skewX:g.degreeT("--chakra-skew-x"),skewY:g.degreeT("--chakra-skew-y"),scaleX:g.prop("--chakra-scale-x"),scaleY:g.prop("--chakra-scale-y"),scale:g.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:g.degreeT("--chakra-rotate")},vS={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:g.prop("transitionDuration","transition.duration"),transitionProperty:g.prop("transitionProperty","transition.property"),transitionTimingFunction:g.prop("transitionTimingFunction","transition.easing")},bS={fontFamily:g.prop("fontFamily","fonts"),fontSize:g.prop("fontSize","fontSizes",W.px),fontWeight:g.prop("fontWeight","fontWeights"),lineHeight:g.prop("lineHeight","lineHeights"),letterSpacing:g.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"}},xS={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:g.spaceT("scrollMargin"),scrollMarginTop:g.spaceT("scrollMarginTop"),scrollMarginBottom:g.spaceT("scrollMarginBottom"),scrollMarginLeft:g.spaceT("scrollMarginLeft"),scrollMarginRight:g.spaceT("scrollMarginRight"),scrollMarginX:g.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:g.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:g.spaceT("scrollPadding"),scrollPaddingTop:g.spaceT("scrollPaddingTop"),scrollPaddingBottom:g.spaceT("scrollPaddingBottom"),scrollPaddingLeft:g.spaceT("scrollPaddingLeft"),scrollPaddingRight:g.spaceT("scrollPaddingRight"),scrollPaddingX:g.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:g.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function fd(e){return Fe(e)&&e.reference?e.reference:String(e)}var Oi=(e,...t)=>t.map(fd).join(` ${e} `).replace(/calc/g,""),nd=(...e)=>`calc(${Oi("+",...e)})`,id=(...e)=>`calc(${Oi("-",...e)})`,hl=(...e)=>`calc(${Oi("*",...e)})`,ad=(...e)=>`calc(${Oi("/",...e)})`,sd=e=>{let t=fd(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:hl(t,-1)},tn=Object.assign(e=>({add:(...t)=>tn(nd(e,...t)),subtract:(...t)=>tn(id(e,...t)),multiply:(...t)=>tn(hl(e,...t)),divide:(...t)=>tn(ad(e,...t)),negate:()=>tn(sd(e)),toString:()=>e.toString()}),{add:nd,subtract:id,multiply:hl,divide:ad,negate:sd});function SS(e,t="-"){return e.replace(/\s+/g,t)}function wS(e){let t=SS(e.toString());return TS(CS(t))}function CS(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function TS(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function kS(e,t=""){return [t,e].filter(Boolean).join("-")}function PS(e,t){return `var(${e}${t?`, ${t}`:""})`}function ES(e,t=""){return wS(`--${kS(e,t)}`)}function D(e,t,r){let o=ES(e,r);return {variable:o,reference:PS(o,t)}}function Di(e,t){let r={};for(let o of t){if(Array.isArray(o)){let[n,i]=o;r[n]=D(`${e}-${n}`,i);continue}r[o]=D(`${e}-${o}`);}return r}function $S(e){let t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return {unitless:!r,value:t,unit:r}}function ld(e){if(e==null)return e;let{unitless:t}=$S(e);return t||typeof e=="number"?`${e}px`:e}function _S(e,t){let r=["@media screen"];return e&&r.push("and",`(min-width: ${ld(e)})`),t&&r.push("and",`(max-width: ${ld(t)})`),r.join(" ")}var me={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}`},kt=e=>dd(t=>e(t,"&"),"[role=group]","[data-group]",".group"),dt=e=>dd(t=>e(t,"~ &"),"[data-peer]",".peer"),dd=(e,...t)=>t.map(e).join(", "),yl={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_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]",_groupHover:kt(me.hover),_peerHover:dt(me.hover),_groupFocus:kt(me.focus),_peerFocus:dt(me.focus),_groupFocusVisible:kt(me.focusVisible),_peerFocusVisible:dt(me.focusVisible),_groupActive:kt(me.active),_peerActive:dt(me.active),_groupDisabled:kt(me.disabled),_peerDisabled:dt(me.disabled),_groupInvalid:kt(me.invalid),_peerInvalid:dt(me.invalid),_groupChecked:kt(me.checked),_peerChecked:dt(me.checked),_groupFocusWithin:kt(me.focusWithin),_peerFocusWithin:dt(me.focusWithin),_peerPlaceholderShown:dt(me.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},AS=Object.keys(yl);var vl=(0, pd.default)({},Ri,Y,iS,Ii,He,aS,hS,sS,ud,mS,on,ml,Q,xS,bS,gS,yS,lS,vS);Object.assign({},Q,He,Ii,ud,on);var md=[...Object.keys(vl),...AS],IS=d(d({},vl),yl),hd=e=>e in IS,LS=e=>t=>{if(!t.__breakpoints)return e;let{isResponsive:r,toArrayValue:o,media:n}=t.__breakpoints,i={};for(let a in e){let s=et(e[a],t);if(s==null)continue;if(s=Fe(s)&&r(s)?o(s):s,!Array.isArray(s)){i[a]=s;continue}let l=s.slice(0,n.length).length;for(let c=0;c<l;c+=1){let u=n==null?void 0:n[c];if(!u){i[a]=s[c];continue}i[u]=i[u]||{},s[c]!=null&&(i[u][a]=s[c]);}}return i};function OS(e){let t=[],r="",o=!1;for(let n=0;n<e.length;n++){let i=e[n];i==="("?(o=!0,r+=i):i===")"?(o=!1,r+=i):i===","&&!o?(t.push(r),r=""):r+=i;}return r=r.trim(),r&&t.push(r),t}function DS(e){return /^var\(--.+\)$/.test(e)}var VS=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!DS(t),NS=(e,t)=>{var r,o;if(t==null)return t;let n=l=>{var c,u;return (u=(c=e.__cssMap)==null?void 0:c[l])==null?void 0:u.varRef},i=l=>{var c;return (c=n(l))!=null?c:l},[a,s]=OS(t);return t=(o=(r=n(a))!=null?r:i(s))!=null?o:i(t),t};function BS(e){let{configs:t={},pseudos:r={},theme:o}=e,n=(i,a=!1)=>{var s,l,c;let u=et(i,o),f=LS(u)(o),p={};for(let m in f){let v=f[m],y=et(v,o);m in r&&(m=r[m]),VS(m,y)&&(y=NS(o,y));let x=t[m];if(x===!0&&(x={property:m}),Fe(y)){p[m]=(s=p[m])!=null?s:{},p[m]=(0, rn.default)({},p[m],n(y,!0));continue}let w=(c=(l=x==null?void 0:x.transform)==null?void 0:l.call(x,y,o,u))!=null?c:y;w=x!=null&&x.processResult?n(w,!0):w;let S=et(x==null?void 0:x.property,o);if(!a&&(x!=null&&x.static)){let C=et(x.static,o);p=(0, rn.default)({},p,C);}if(S&&Array.isArray(S)){for(let C of S)p[C]=w;continue}if(S){S==="&"&&Fe(w)?p=(0, rn.default)({},p,w):p[S]=w;continue}if(Fe(w)){p=(0, rn.default)({},p,w);continue}p[m]=w;}return p};return n}var gd=e=>t=>BS({theme:t,pseudos:yl,configs:vl})(e);function M(e){return {definePartsStyle(t){return t},defineMultiStyleConfig(t){return d({parts:e},t)}}}function jS(e,t){if(Array.isArray(e))return e;if(Fe(e))return t(e);if(e!=null)return [e]}function zS(e,t){for(let r=t+1;r<e.length;r++)if(e[r]!=null)return r;return -1}function FS(e){let t=e.__breakpoints;return function(o,n,i,a){var s,l;if(!t)return;let c={},u=jS(i,t.toArrayValue);if(!u)return c;let f=u.length,p=f===1,m=!!o.parts;for(let v=0;v<f;v++){let y=t.details[v],x=t.details[zS(u,v)],w=_S(y.minW,x==null?void 0:x._minW),S=et((s=o[n])==null?void 0:s[u[v]],a);if(S){if(m){(l=o.parts)==null||l.forEach(C=>{(0, Li.default)(c,{[C]:p?S[C]:{[w]:S[C]}});});continue}if(!m){p?(0, Li.default)(c,S):c[w]=S;continue}c[w]=S;}}return c}}function yd(e){return t=>{var r;let{variant:o,size:n,theme:i}=t,a=FS(i);return (0, Li.default)({},et((r=e.baseStyle)!=null?r:{},t),a(e,"sizes",n,t),a(e,"variants",o,t))}}function N(e,t={}){let r=!1;function o(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function n(...u){o();for(let f of u)t[f]=l(f);return N(e,t)}function i(...u){for(let f of u)f in t||(t[f]=l(f));return N(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.selector]))}function s(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.className]))}function l(u){let m=`chakra-${(["container","root"].includes(u!=null?u:"")?[e]:[e,u]).filter(Boolean).join("__")}`;return {className:m,selector:`.${m}`,toString:()=>u}}return {parts:n,toPart:l,extend:i,selectors:a,classnames:s,get keys(){return Object.keys(t)},__type:{}}}N("accordion").parts("root","container","button","panel").extend("icon");var nn=N("alert").parts("title","description","container").extend("icon","spinner");N("avatar").parts("label","badge","container").extend("excessLabel","group");N("breadcrumb").parts("link","item","container").extend("separator");N("button").parts();var bl=N("checkbox").parts("control","icon","container").extend("label");N("progress").parts("track","filledTrack").extend("label");var xl=N("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer");N("editable").parts("preview","input","textarea");var Sl=N("form").parts("container","requiredIndicator","helperText");N("formError").parts("text","icon");var Zt=N("input").parts("addon","field","element","group");N("list").parts("container","item","icon");var an=N("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),sn=N("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer");N("numberinput").parts("root","field","stepperGroup","stepper");N("pininput").parts("field");var wl=N("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),ln=N("progress").parts("label","filledTrack","track"),Cl=N("radio").parts("container","control","label");N("select").parts("field","icon");var Tl=N("slider").parts("container","track","thumb","filledTrack","mark");N("stat").parts("container","label","helpText","number","icon");var cn=N("switch").parts("container","track","thumb","label");N("table").parts("table","thead","tbody","tr","th","td","tfoot","caption");N("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator");N("tag").parts("container","label","closeButton");var kl=N("card").parts("container","header","body","footer");N("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function Jt(e,t,r){return Math.min(Math.max(e,r),t)}var Pl=class extends Error{constructor(t){super(`Failed to parse color: "${t}"`);}},un=Pl;function El(e){if(typeof e!="string")throw new un(e);if(e.trim().toLowerCase()==="transparent")return [0,0,0,0];let t=e.trim();t=d1.test(e)?s1(e):e;let r=l1.exec(t);if(r){let a=Array.from(r).slice(1);return [...a.slice(0,3).map(s=>parseInt(fn(s,2),16)),parseInt(fn(a[3]||"f",2),16)/255]}let o=c1.exec(t);if(o){let a=Array.from(o).slice(1);return [...a.slice(0,3).map(s=>parseInt(s,16)),parseInt(a[3]||"ff",16)/255]}let n=u1.exec(t);if(n){let a=Array.from(n).slice(1);return [...a.slice(0,3).map(s=>parseInt(s,10)),parseFloat(a[3]||"1")]}let i=f1.exec(t);if(i){let[a,s,l,c]=Array.from(i).slice(1).map(parseFloat);if(Jt(0,100,s)!==s)throw new un(e);if(Jt(0,100,l)!==l)throw new un(e);return [...p1(a,s,l),Number.isNaN(c)?1:c]}throw new un(e)}function i1(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return (t>>>0)%2341}var vd=e=>parseInt(e.replace(/_/g,""),36),a1="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)=>{let r=vd(t.substring(0,3)),o=vd(t.substring(3)).toString(16),n="";for(let i=0;i<6-o.length;i++)n+="0";return e[r]=`${n}${o}`,e},{});function s1(e){let t=e.toLowerCase().trim(),r=a1[i1(t)];if(!r)throw new un(e);return `#${r}`}var fn=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),l1=new RegExp(`^#${fn("([a-f0-9])",3)}([a-f0-9])?$`,"i"),c1=new RegExp(`^#${fn("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),u1=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${fn(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),f1=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,d1=/^[a-z]+$/i,bd=e=>Math.round(e*255),p1=(e,t,r)=>{let o=r/100;if(t===0)return [o,o,o].map(bd);let n=(e%360+360)%360/60,i=(1-Math.abs(2*o-1))*(t/100),a=i*(1-Math.abs(n%2-1)),s=0,l=0,c=0;n>=0&&n<1?(s=i,l=a):n>=1&&n<2?(s=a,l=i):n>=2&&n<3?(l=i,c=a):n>=3&&n<4?(l=a,c=i):n>=4&&n<5?(s=a,c=i):n>=5&&n<6&&(s=i,c=a);let u=o-i/2,f=s+u,p=l+u,m=c+u;return [f,p,m].map(bd)};function m1(e,t,r,o){return `rgba(${Jt(0,255,e).toFixed()}, ${Jt(0,255,t).toFixed()}, ${Jt(0,255,r).toFixed()}, ${parseFloat(Jt(0,1,o).toFixed(3))})`}function xd(e,t){let[r,o,n,i]=El(e);return m1(r,o,n,i-t)}function Sd(e){let[t,r,o,n]=El(e),i=a=>{let s=Jt(0,255,a).toString(16);return s.length===1?`0${s}`:s};return `#${i(t)}${i(r)}${i(o)}${n<1?i(Math.round(n*255)):""}`}function h1(e,t,r,o,n){for(t=t.split?t.split("."):t,o=0;o<t.length;o++)e=e?e[t[o]]:n;return e===n?r:e}var ce=(e,t,r)=>{let o=h1(e,`colors.${t}`,t);try{return Sd(o),o}catch(n){return r!=null?r:"#000000"}};var X=(e,t)=>r=>{let o=ce(r,e);return xd(o,1-t)};function ee(e,t){return r=>r.colorMode==="dark"?t:e}function wd(e){return !Number.isInteger(parseFloat(e.toString()))}function g1(e,t="-"){return e.replace(/\s+/g,t)}function Cd(e){let t=g1(e.toString());return t.includes("\\.")?e:wd(e)?t.replace(".","\\."):e}function Td(e,t=""){return [t,Cd(e)].filter(Boolean).join("-")}function kd(e,t){return `var(${Cd(e)}${t?`, ${t}`:""})`}function Pd(e,t=""){return `--${Td(e,t)}`}function Xe(e,t){let r=Pd(e,t==null?void 0:t.prefix);return {variable:r,reference:kd(r,y1(t==null?void 0:t.fallback))}}function y1(e){return typeof e=="string"?e:e==null?void 0:e.reference}var he=e=>e?"":void 0;var A=(...e)=>e.filter(Boolean).join(" ");var Vi=Kt(Or(),1);function $l(e,t){let r={};return Object.keys(e).forEach(o=>{t.includes(o)||(r[o]=e[o]);}),r}function Ed(e,t,r,o){let n=typeof t=="string"?t.split("."):[t];for(o=0;o<n.length&&e;o+=1)e=e[n[o]];return e===void 0?r:e}var $d=e=>{let t=new WeakMap;return (o,n,i,a)=>{if(typeof o=="undefined")return e(o,n,i);t.has(o)||t.set(o,new Map);let s=t.get(o);if(s.has(n))return s.get(n);let l=e(o,n,i,a);return s.set(n,l),l}},_l=$d(Ed);function Ni(e,t){let r={};return Object.keys(e).forEach(o=>{let n=e[o];t(n,o,e)&&(r[o]=n);}),r}var dn=e=>Ni(e,t=>t!=null);function _d(e){return typeof e=="function"}function ue(e,...t){return _d(e)?e(...t):e}function Ve(...e){return function(r){e.some(o=>(o==null||o(r),r==null?void 0:r.defaultPrevented));}}var Rd=Kt(Md(),1);function C1(e,t={}){var r;let f=t,{styleConfig:o}=f,n=P(f,["styleConfig"]),{theme:i,colorMode:a}=$f(),s=e?_l(i,`components.${e}`):void 0,l=o||s,c=(0, Vi.default)({theme:i,colorMode:a},(r=l==null?void 0:l.defaultProps)!=null?r:{},dn($l(n,["children"]))),u=useRef({});if(l){let m=yd(l)(c);(0, Rd.default)(u.current,m)||(u.current=m);}return u.current}function Al(e,t={}){return C1(e,t)}var T1=new Set([...md,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),k1=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function Id(e){return k1.has(e)||!T1.has(e)}function Ml(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");let r=d({},e);for(let o of t)if(o!=null)for(let n in o)Object.prototype.hasOwnProperty.call(o,n)&&(n in r&&delete r[n],r[n]=o[n]);return r}var P1=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ld=oi(function(e){return P1.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var E1=Ld,$1=function(t){return t!=="theme"},Od=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?E1:$1},Dd=function(t,r,o){var n;if(r){var i=r.shouldForwardProp;n=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i;}return typeof n!="function"&&o&&(n=t.__emotion_forwardProp),n};var _1=function(t){var r=t.cache,o=t.serialized,n=t.isStringTag;return Go(r,o,n),bi(function(){return hi(r,o,n)}),null},Vd=function e(t,r){var o=t.__emotion_real===t,n=o&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var s=Dd(t,r,o),l=s||Od(n),c=!l("as");return function(){var u=arguments,f=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else {f.push(u[0][0]);for(var p=u.length,m=1;m<p;m++)f.push(u[m],u[0][m]);}var v=Si(function(y,x,w){var S=c&&y.as||n,C="",k=[],$=y;if(y.theme==null){$={};for(var L in y)$[L]=y[L];$.theme=bt.useContext(Yo);}typeof y.className=="string"?C=mi(x.registered,k,y.className):y.className!=null&&(C=y.className+" ");var R=gi(f.concat(k),x.registered,$);C+=x.key+"-"+R.name,a!==void 0&&(C+=" "+a);var O=c&&s===void 0?Od(S):l,h={};for(var I in y)c&&I==="as"||O(I)&&(h[I]=y[I]);return h.className=C,h.ref=w,bt.createElement(bt.Fragment,null,bt.createElement(_1,{cache:x,serialized:R,isStringTag:typeof S=="string"}),bt.createElement(S,h))});return v.displayName=i!==void 0?i:"Styled("+(typeof n=="string"?n:n.displayName||n.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=n,v.__emotion_styles=f,v.__emotion_forwardProp=s,Object.defineProperty(v,"toString",{value:function(){return "."+a}}),v.withComponent=function(y,x){return e(y,Mr({},r,x,{shouldForwardProp:Dd(v,x,!0)})).apply(void 0,f)},v}};var A1=["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"],pn=Vd.bind();A1.forEach(function(e){pn[e]=pn(e);});var Bd,M1=(Bd=pn.default)!=null?Bd:pn,R1=({baseStyle:e})=>t=>{let f=t,{theme:r,css:o,__css:n,sx:i}=f,a=P(f,["theme","css","__css","sx"]),s=Ni(a,(p,m)=>hd(m)),l=ue(e,t),c=Ml({},n,l,dn(s),i),u=gd(c)(t.theme);return o?[u,o]:u};function ji(e,t){let s=t!=null?t:{},{baseStyle:r}=s,o=P(s,["baseStyle"]);o.shouldForwardProp||(o.shouldForwardProp=Id);let n=R1({baseStyle:r}),i=M1(e,o)(n);return bt__default.forwardRef(function(c,u){let{colorMode:f,forced:p}=qo();return bt__default.createElement(i,d({ref:u,"data-theme":p?f:void 0},c))})}function I1(){let e=new Map;return new Proxy(ji,{apply(t,r,o){return ji(...o)},get(t,r){return e.has(r)||e.set(r,ji(r)),e.get(r)}})}var Dr=I1();function mn(e){return forwardRef$1(e)}function Se(e={}){let{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:o}=e,n=createContext(void 0);n.displayName=o;function i(){var a;let s=useContext(n);if(!s&&t){let l=new Error(r);throw l.name="ContextError",(a=Error.captureStackTrace)==null||a.call(Error,l,i),l}return s}return [n.Provider,i,n]}var zi=(...e)=>e.filter(Boolean).join(" "),jd={path:jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[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"}),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"}),jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Fd=mn((e,t)=>{let x=e,{as:r,viewBox:o,color:n="currentColor",focusable:i=!1,children:a,className:s,__css:l}=x,c=P(x,["as","viewBox","color","focusable","children","className","__css"]),u=zi("chakra-icon",s),f=Al("Icon",e),p=d(d({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:n},l),f),m={ref:t,focusable:i,className:u,__css:p},v=o!=null?o:jd.viewBox;if(r&&typeof r!="string")return jsx(Dr.svg,d(d({as:r},m),c));let y=a!=null?a:jd.path;return jsx(Dr.svg,b(d(d({verticalAlign:"middle",viewBox:v},m),c),{children:y}))});Fd.displayName="Icon";function B1(e){let{viewBox:t="0 0 24 24",d:r,displayName:o,defaultProps:n={}}=e,i=Children.toArray(e.path),a=mn((s,l)=>jsx(Fd,b(d(d({ref:l,viewBox:t},n),s),{children:i.length?i:jsx("path",{fill:"currentColor",d:r})})));return a.displayName=o,a}var we=e=>B1(d({viewBox:"0 0 24 24",defaultProps:{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}},e));we({displayName:"ChevronUpIcon",path:jsx("polyline",{points:"18 15 12 9 6 15"})});we({displayName:"ChevronDownIcon",path:jsx("polyline",{points:"6 9 12 15 18 9"})});we({displayName:"ChevronLeftIcon",path:jsx("polyline",{points:"15 18 9 12 15 6"})});we({displayName:"ChevronRightIcon",path:jsx("polyline",{points:"9 18 15 12 9 6"})});we({displayName:"ChevronDownIcon",path:jsxs("g",{fill:"none",children:[jsx("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),jsx("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),jsx("line",{x1:"3",y1:"18",x2:"21",y2:"18"})]})});var Gd=we({displayName:"CloseIcon",path:jsxs("g",{children:[jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})});we({displayName:"FilterIcon",path:jsx("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})});we({displayName:"CalendarIcon",path:jsxs("g",{children:[jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),jsx("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),jsx("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]})});we({displayName:"PlusIcon",path:jsxs("g",{children:[jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})});we({displayName:"MinusIcon",path:jsx("g",{children:jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})})});we({displayName:"ViewOffIcon",path:jsxs("g",{children:[jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]})});we({displayName:"ViewOffIcon",path:jsxs("g",{children:[jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),jsx("circle",{cx:"12",cy:"12",r:"3"})]})});var Ud=we({displayName:"SearchIcon",path:jsxs("g",{children:[jsx("circle",{cx:"11",cy:"11",r:"8"}),jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})});we({displayName:"CheckIcon",path:jsx("g",{children:jsx("polyline",{points:"20 6 9 17 4 12"})})});var Yd=N("app-shell").parts("container","inner","main"),Rl=N("emptystate").parts("container","body","icon","title","descripton","actions","footer"),qd=N("banner").parts("container","icon","content","title","description","actions","close"),Xd=N("hotkeys").parts("container","group","groupTitle","item","command","then"),Zd=N("loading-overlay").parts("overlay","text"),Jd=N("nav-group").parts("container","title","icon","content"),Qd=N("nav-item").parts("item","link","inner","icon","label"),ep=N("nprogress").parts("container","bar"),tp=N("persona").parts("container","details","avatar","label","secondaryLabel","tertiaryLabel"),rp=N("search-input").parts("input","reset"),op=N("sidebar").parts("container","overlay","section","toggleWrapper","toggle");N("stepper").parts("container","steps","icon","content","title","separator");var np=N("structured-list").parts("list","item","button","header","cell","icon"),Il=N("property").parts("property","label","value"),ip=N("select").parts("addon","field","element"),ap=N("timeline").parts("container","item","separator","icon","dot","track","content");var{definePartsStyle:Q1,defineMultiStyleConfig:ew}=M(Yd.keys),tw=Q1({container:{},inner:{},main:{}}),rw=ew({defaultProps:{variant:"fullscreen"},variants:{static:{},fullscreen:{container:{position:"absolute",inset:0}}},baseStyle:tw}),{definePartsStyle:Vl,defineMultiStyleConfig:ow}=M(qd.keys),nw=Vl({container:{px:4,py:3},content:{display:"flex",flex:1,flexDirection:["column",null,"row"]},title:{fontWeight:"bold",lineHeight:6,marginEnd:2},description:{lineHeight:6,marginEnd:2},actions:{marginEnd:2},icon:{flexShrink:0,marginEnd:3,w:5,h:6}}),iw=Vl(e=>{let{theme:t,colorScheme:r}=e;return {container:{bg:`${r}.100`,_dark:{bg:X(`${r}.200`,.16)(t)}},icon:{color:`${r}.500`,_dark:{color:`${r}.200`}}}}),aw=Vl(e=>{let{colorScheme:t}=e;return {container:{bg:`${t}.500`,color:"white"}}}),sw=ow({baseStyle:nw,variants:{subtle:iw,solid:aw},defaultProps:{variant:"subtle",colorScheme:"blue"}}),lw={baseStyle:{fontSize:"xs","[role=tooltip] > &":{ms:1,_before:{content:'"\u2022"',me:1,fontSize:"xs"}}}},{definePartsStyle:wp,defineMultiStyleConfig:cw}=M(Rl.keys),uw=wp(e=>{let{colorScheme:t}=e;return {icon:{boxSize:[10,null,12],color:`${t}.500`,_dark:{color:`${t}.200`}},title:{mt:8,fontWeight:"bold",fontSize:"xl"},actions:{mt:8}}}),fw=wp(e=>({body:{display:"flex",flexDirection:"column",textAlign:"center",alignItems:"center"}})),dw=cw({baseStyle:uw,variants:{centered:fw}}),{definePartsStyle:pw,defineMultiStyleConfig:mw}=M(Sl.keys),hw=pw({container:{display:"flex",alignItems:"center",flexDirection:"row-reverse",justifyContent:"flex-end"}}),gw=mw({variants:{horizontal:hw}}),yw={defaultProps:{spacing:4}},vw={baseStyle:{fontWeight:"semibold",mb:4}},{definePartsStyle:GO,defineMultiStyleConfig:bw}=M(Xd.keys),xw=bw({baseStyle:{container:{fontSize:"md"},group:{my:2,py:2},groupTitle:{py:2,fontWeight:"semibold",fontSize:"sm"},item:{display:"flex",alignItems:"center",textAlign:"start",flex:"0 0 auto",py:2},then:{mr:1,fontSize:"sm",color:"muted"}}}),{defineMultiStyleConfig:Sw,definePartsStyle:qi}=M(Zd.keys),ww=qi({overlay:{p:4},text:{}}),Cw=qi(()=>({overlay:{flex:1,height:"100%",bg:"whiteAlpha.400",_dark:{bg:"blackAlpha.400"}}})),Tw=qi(()=>({overlay:{position:"fixed",inset:0,zIndex:"modal",bg:"white",_dark:{bg:"gray.800"}}})),kw=qi(()=>({overlay:{position:"absolute",inset:0,bg:"whiteAlpha.300",_dark:{bg:"blackAlpha.300"}}})),Pw=Sw({defaultProps:{variant:"fill"},baseStyle:ww,variants:{fill:Cw,fullscreen:Tw,overlay:kw}}),{definePartsStyle:Ew,defineMultiStyleConfig:$w}=M(Jd.keys),_w=Ew(e=>({container:{"&:not(:last-of-type)":{mb:4}},title:{display:"flex",alignItems:"center",px:3,my:1,height:6,fontSize:"sm",fontWeight:"medium",color:"muted",transitionProperty:"common",transitionDuration:"normal","&.sui-collapse-toggle .chakra-icon":{opacity:0},"&.sui-collapse-toggle":{cursor:"pointer",borderRadius:"md",_hover:{bg:"blackAlpha.100","& .chakra-icon":{opacity:1},_dark:{bg:"whiteAlpha.200"}}},"[data-compact] &":{opacity:0}},content:{}})),Aw=$w({baseStyle:_w}),{definePartsStyle:vn,defineMultiStyleConfig:Mw}=M(Qd.keys),Rw=vn(e=>({item:{my:"2px",color:"gray.900",minW:1,_dark:{color:"whiteAlpha.900"}},link:{display:"flex",rounded:"md",justifyContent:"flex-start",alignItems:"center",textDecoration:"none",transitionProperty:"common",transitionDuration:"normal",minW:1,_hover:{textDecoration:"none"},_focusVisible:{outline:"none",boxShadow:"outline"}},inner:{display:"flex",flex:1,w:"100%",alignItems:"center",minW:1},label:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},icon:{display:"flex",transitionProperty:"common",transitionDuration:"normal",alignItems:"center",justifyContent:"center",width:"4",ml:"-0.25rem",color:"currentColor"}})),Iw=vn(e=>{let t={bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.300"}};return {link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:t,["&[aria-current=page]"]:t},icon:{opacity:.8,"[data-active] &":{opacity:1}}}}),Lw=vn(e=>{let{colorScheme:t,theme:r}=e,o={bg:X(`${t}.500`,.3)(r),fontWeight:"semibold",color:`${t}.600`,_dark:{bg:X(`${t}.500`,.3)(r),color:`${t}.100`}};return {link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:o,["&[aria-current=page]"]:o}}}),Ow=vn(e=>{let{colorScheme:t}=e,r={bg:`${t}.500`};return {link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:r,["&[aria-current=page]"]:r,color:"white"},icon:{color:"white"},label:{}}}),Dw=vn(e=>{let{colorScheme:t}=e,r={_before:{content:'""',display:"block",position:"absolute",top:0,bottom:0,left:-3,width:"3px",bg:`${t}.500`}};return {item:{position:"relative"},link:{_hover:{color:"inherit",bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:r,["&[aria-current=page]"]:r},icon:{"[data-active] &":{color:"currentColor"}},label:{}}}),sp,lp,cp,up,Vw=Mw({defaultProps:{size:"sm",colorScheme:"primary",variant:"neutral"},baseStyle:Rw,sizes:{xs:{link:(sp=theme.components.Button.sizes)==null?void 0:sp.xs,icon:{me:1,fontSize:"xs"}},sm:{link:(lp=theme.components.Button.sizes)==null?void 0:lp.sm,icon:{me:2,fontSize:"sm"}},md:{link:(cp=theme.components.Button.sizes)==null?void 0:cp.md,icon:{me:2,fontSize:"md"}},lg:{link:(up=theme.components.Button.sizes)==null?void 0:up.lg,icon:{me:3,fontSize:"lg"}}},variants:{neutral:Iw,subtle:Lw,solid:Ow,"left-accent":Dw}}),{definePartsStyle:Cp,defineMultiStyleConfig:Tp}=M(ep.keys),Nw=Cp(e=>{let{colorScheme:t}=e;return {bar:{bg:`${t}.500`,_dark:{bg:`${t}.300`}}}}),Bw=Tp({defaultProps:{colorScheme:"teal"},baseStyle:Nw}),{definePartsStyle:$t,defineMultiStyleConfig:jw}=M(tp.keys),fp=e=>({color:"gray.500",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minW:0,_dark:{color:"whiteAlpha.600"}}),zw=$t(e=>({details:{minW:0},secondaryLabel:fp(),tertiaryLabel:fp()})),Fw={"2xs":$t({details:{ms:2},label:{fontSize:"xs"},secondaryLabel:{display:"none"},tertiaryLabel:{display:"none"}}),xs:$t({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{display:"none"},tertiaryLabel:{display:"none"}}),sm:$t({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{display:"none"}}),md:$t({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{display:"none"}}),lg:$t({details:{ms:3},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{fontSize:"sm"}}),xl:$t({details:{ms:3},label:{fontSize:"xl"},secondaryLabel:{fontSize:"md"},tertiaryLabel:{fontSize:"md"}}),"2xl":$t({details:{ms:4},label:{fontSize:"2xl"},secondaryLabel:{fontSize:"lg"},tertiaryLabel:{fontSize:"lg"}})},Ww=jw({defaultProps:{size:"md"},baseStyle:zw,sizes:Fw}),{definePartsStyle:tD,defineMultiStyleConfig:Hw}=M(Il.keys),Kw=Hw({baseStyle:{label:{display:"flex",flexDirection:"row",minWidth:"100px",width:"30%",marginEnd:2,py:2,color:"gray.500",_dark:{color:"gray.400"}}}}),{defineMultiStyleConfig:Gw}=M(rp.keys),Uw=Gw({baseStyle:{input:{pr:8}},sizes:{sm:{reset:{fontSize:"0.7em"}},lg:{input:{pr:10}}}}),{definePartsStyle:Nl,defineMultiStyleConfig:Yw}=M(op.keys),qw=Nl(e=>{let{colorScheme:t}=e;return {container:{bg:t?`${t}.500`:"white",display:"flex",flexDirection:"column",borderRightWidth:"1px",_dark:{bg:t?`${t}.500`:"gray.800"}},overlay:{bg:"blackAlpha.200"}}}),Xw=Nl(e=>({container:{width:"280px",maxWidth:["100vw","320px"],minWidth:"220px",py:3,"&[data-collapsible]":{pt:14}},section:{px:3},toggleWrapper:{h:8,mb:4,display:"none","[data-collapsible] &":{display:"block"}}})),Zw=Nl(e=>({container:{width:"14",py:3},section:{px:3},toggleWrapper:{display:"none"}})),Jw=Yw({defaultProps:{variant:"default"},baseStyle:qw,variants:{default:Xw,compact:Zw}}),Ce=Di("badge",["bg","color","shadow"]),Qw={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Ce.bg.reference,color:Ce.color.reference,boxShadow:Ce.shadow.reference},eC=e=>{let{colorScheme:t,theme:r}=e,o=X(`${t}.500`,.6)(r);return {[Ce.bg.variable]:`colors.${t}.500`,[Ce.color.variable]:"colors.white",_dark:{[Ce.bg.variable]:o,[Ce.color.variable]:"colors.whiteAlpha.800"}}},tC=e=>{let{colorScheme:t,theme:r}=e,o=X(`${t}.200`,.16)(r);return {[Ce.bg.variable]:`colors.${t}.100`,[Ce.color.variable]:`colors.${t}.800`,_dark:{[Ce.bg.variable]:o,[Ce.color.variable]:`colors.${t}.200`}}},rC=e=>{let{colorScheme:t,theme:r}=e,o=X(`${t}.200`,.8)(r);return {[Ce.color.variable]:`colors.${t}.500`,_dark:{[Ce.color.variable]:o},[Ce.shadow.variable]:`inset 0 0 0px 1px ${Ce.color.reference}`}},oC={solid:eC,subtle:tC,outline:rC},dp={baseStyle:Qw,variants:oC,defaultProps:{variant:"subtle",colorScheme:"gray"}},{definePartsStyle:pt,defineMultiStyleConfig:nC}=M(Zt.keys),Vr=D("input-height"),Nr=D("input-font-size"),Br=D("input-padding"),jr=D("input-border-radius"),iC=pt({addon:{height:Vr.reference,fontSize:Nr.reference,px:Br.reference,borderRadius:jr.reference},field:{width:"100%",height:Vr.reference,fontSize:Nr.reference,px:Br.reference,borderRadius:jr.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Et={lg:{[Nr.variable]:"fontSizes.lg",[Br.variable]:"space.4",[jr.variable]:"radii.md",[Vr.variable]:"sizes.12"},md:{[Nr.variable]:"fontSizes.md",[Br.variable]:"space.4",[jr.variable]:"radii.md",[Vr.variable]:"sizes.10"},sm:{[Nr.variable]:"fontSizes.sm",[Br.variable]:"space.3",[jr.variable]:"radii.sm",[Vr.variable]:"sizes.8"},xs:{[Nr.variable]:"fontSizes.xs",[Br.variable]:"space.2",[jr.variable]:"radii.sm",[Vr.variable]:"sizes.6"}},aC={lg:pt({field:Et.lg,group:Et.lg}),md:pt({field:Et.md,group:Et.md}),sm:pt({field:Et.sm,group:Et.sm}),xs:pt({field:Et.xs,group:Et.xs})};function Bl(e){let{focusBorderColor:t,errorBorderColor:r}=e;return {focusBorderColor:t||ee("blue.500","blue.300")(e),errorBorderColor:r||ee("red.500","red.300")(e)}}var sC=pt(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:o}=Bl(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:ce(t,o),boxShadow:`0 0 0 1px ${ce(t,o)}`},_focusVisible:{zIndex:1,borderColor:ce(t,r),boxShadow:`0 0 0 1px ${ce(t,r)}`}},addon:{border:"1px solid",borderColor:ee("inherit","whiteAlpha.50")(e),bg:ee("gray.100","whiteAlpha.300")(e)}}}),lC=pt(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:o}=Bl(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:ce(t,o)},_focusVisible:{bg:"transparent",borderColor:ce(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:ee("gray.100","whiteAlpha.50")(e)}}}),cC=pt(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:o}=Bl(e);return {field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ce(t,o),boxShadow:`0px 1px 0px 0px ${ce(t,o)}`},_focusVisible:{borderColor:ce(t,r),boxShadow:`0px 1px 0px 0px ${ce(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),uC=pt({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),fC={outline:sC,filled:lC,flushed:cC,unstyled:uC},_t=nC({baseStyle:iC,sizes:aC,variants:fC,defaultProps:{size:"md",variant:"outline"}}),{defineMultiStyleConfig:dC}=M(ip.keys),pC=dC({defaultProps:_t.defaultProps,baseStyle:_t.baseStyle,sizes:_t.sizes,variants:_t.variants}),{definePartsStyle:mC,defineMultiStyleConfig:hC}=M(np.keys),gC=mC(e=>({item:{py:2,px:4},button:{transitionProperty:"common",transitionDuration:"normal",borderRadius:"inherit",outline:"none",_hover:{bg:"blackAlpha.50",_dark:{bg:"whiteAlpha.50"}},_focusVisible:{boxShadow:"outline"},_focus:{bg:"blackAlpha.50",_dark:{bg:"whiteAlpha.50"}},_active:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.100"}}}})),yC=hC({defaultProps:{size:"md"},baseStyle:gC,sizes:{sm:{item:{py:1,px:1},button:{py:1,px:1},cell:{px:1},icon:{px:1}},md:{item:{py:2,px:2},button:{py:2,px:2},cell:{px:2},icon:{px:2}}}}),{definePartsStyle:jl,defineMultiStyleConfig:vC}=M(ap.keys),pp=D("timeline-row-start","minmax(0,1fr)"),bC=D("timeline-row-end","minmax(0,1fr)"),mp=D("timeline-col-start","minmax(0,1fr)"),hp=D("timeline-col-end","minmax(0,1fr)"),xC=jl(e=>({container:{display:"flex",[pp.variable]:"minmax(0,1fr)",[bC.variable]:"minmax(0,1fr)",[mp.variable]:"auto",[hp.variable]:"2fr",flexDirection:"column",justifyItems:"center"},item:{display:"grid",alignItems:"center",justifyItems:"start",gridTemplateRows:`${pp.reference}`,gridTemplateColumns:`${mp.reference} ${hp.reference}`,position:"relative"},separator:{mx:1,minW:"24px",flexShrink:0,gridColumnStart:1,gap:2,height:"100%",_before:{content:'""',display:"block",flex:1,minH:"0.5em"},_after:{content:'""',display:"block",flex:1,minH:"0.5em"},"&:has(.sui-timeline__track:first-of-type):before":{display:"none"},"&:has(.sui-timeline__track:last-of-type):after":{display:"none"}},icon:{color:"gray.300",_dark:{color:"gray.600"}},dot:{width:"9px",height:"9px",bg:"currentColor",borderRadius:"full"},track:{bg:"gray.300",width:"1px",flex:1,minH:"0.5em",_dark:{bg:"gray.600"}},content:{px:"2",_first:{gridColumnStart:1},_last:{gridColumnStart:2,justifySelf:"start"}}})),SC=jl(e=>({icon:{}})),wC=jl(e=>({dot:{bg:"transparent",borderColor:"currentColor",borderWidth:"2px"}})),CC=vC({defaultProps:{variant:"solid",size:"sm"},baseStyle:xC,variants:{solid:SC,outline:wC},sizes:{sm:{icon:{minH:"8px",minW:"8px"}}}}),TC={baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center"},variants:{outline:({colorScheme:e})=>({borderWidth:"1px",borderColor:e?`${e}.500`:"chakra-border-color",color:e?`${e}.500`:"currentColor"}),solid:({colorScheme:e="gray"})=>({bg:`${e}.500`,color:"white"})},sizes:{sm:{borderRadius:"sm",fontSize:"0.9em",w:6,h:6},md:{borderRadius:"md",fontSize:"1.1em",w:8,h:8},lg:{borderRadius:"md",fontSize:"1.3em",w:10,h:10}},defaultProps:{variant:"outline",size:"md"}},kC=N("navbar").parts("container","inner","brand","content","item","link"),{defineMultiStyleConfig:PC,definePartsStyle:EC}=M(kC.keys),gp=D("navbar-bg"),yp=D("navbar-text-color","currentColor"),Ll=D("navbar-link-bg","transparent"),$C=["yellow","cyan"],_C=PC({baseStyle:EC(({colorScheme:e})=>{let t="currentColor";return e&&(t=$C.includes(e)?"colors.black":"colors.white"),{container:{display:"flex",[gp.variable]:e?`colors.${e}.500`:"chakra-body-bg",[yp.variable]:t,bg:gp.reference,color:yp.reference,zIndex:"overlay",width:"full",height:"auto",alignItems:"center",justifyContent:"center",data:{"& [data-menu-open=true]":{border:"none"}}},inner:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",height:"var(--navbar-height)",px:{base:4,lg:6},gap:4,flexWrap:"nowrap"},toggle:{display:"flex",alignItems:"center",justifyContent:"center",width:6,height:"full",outline:"none",borderRadius:"sm"},brand:{display:"flex",alignItems:"center",justifyContent:"flex-start",height:"full",bg:"transparent",textDecoration:"none",color:"inherit",whiteSpace:"nowrap",boxSizing:"border-box"},content:{display:"flex",alignItems:"center",justifyContent:"flex-start",flex:1,listStyle:"none"},item:{display:"inline-flex",p:0},link:{bg:Ll.reference,color:"current",display:"inline-flex",alignItems:"center",justifyContent:"center",textDecoration:"none",whiteSpace:"nowrap",boxSizing:"border-box",borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",lineHeight:1,px:3,h:8,_focusVisible:{outline:"none",boxShadow:"outline"},_hover:{[Ll.variable]:"colors.blackAlpha.100",textDecoration:"none",_dark:{[Ll.variable]:"colors.whiteAlpha.200"}},_active:{fontWeight:"semibold"}}}})}),AC={SuiAppShell:rw,SuiBanner:sw,SuiCommand:lw,SuiEmptyState:dw,SuiFormLayout:yw,SuiForm:gw,SuiFormLegend:vw,SuiHotkeys:xw,SuiStructuredList:yC,SuiLoadingOverlay:Pw,SuiNavGroup:Aw,SuiNavItem:Vw,SuiPersona:Ww,SuiProperty:Kw,SuiNProgress:Bw,SuiSearchInput:Uw,SuiSelect:pC,SuiSidebar:Jw,SuiTimeline:CC,SuiIconBadge:TC,SuiNavbar:_C},zl=extendTheme({colors:{primary:theme.colors.blue},semanticTokens:{colors:{"presence.online":"green.500","presence.offline":"gray.400","presence.busy":"orange.500","presence.dnd":"red.500","presence.away":"gray.400"}},components:AC}),MC={global:e=>({body:{WebkitFontSmoothing:"antialiased",TextRendering:"optimizelegibility"}})},Ol={black:"#0e1012",gray:{50:"#f9fafa",100:"#f1f1f2",200:"#e7e7e8",300:"#d3d4d5",400:"#abadaf",500:"#7d7f83",600:"#52555a",700:"#33373d",800:"#1d2025",900:"#171a1d"},purple:{50:"#f9f6fd",100:"#e5daf8",200:"#d3bef4",300:"#b795ec",400:"#a379e7",500:"#8952e0",600:"#7434db",700:"#6023c0",800:"#4f1d9e",900:"#3b1676"},pink:{50:"#fdf5f9",100:"#f8d9e7",200:"#f3b9d3",300:"#eb8db8",400:"#e56ba2",500:"#dc3882",600:"#c4246c",700:"#a01d58",800:"#7d1745",900:"#5d1133"},red:{50:"#fdf6f5",100:"#f8d9d8",200:"#f1b8b4",300:"#e98d87",400:"#e4726c",500:"#dc4a41",600:"#d2140a",700:"#ac0900",800:"#930800",900:"#6d0600"},orange:{50:"#fdfaf6",100:"#f9ebdb",200:"#f1d4b1",300:"#e6b273",400:"#dc9239",500:"#c37b24",600:"#a5681e",700:"#835318",800:"#674113",900:"#553610"},yellow:{50:"#fffefb",100:"#fff8e9",200:"#feecbd",300:"#fddc87",400:"#fbc434",500:"#d2a01e",600:"#a88018",700:"#836413",800:"#624b0e",900:"#513e0c"},green:{50:"#f7fdfb",100:"#d2f2e7",200:"#9fe3cd",300:"#64d2ad",400:"#1dbd88",500:"#0ea371",600:"#0c875e",700:"#096949",800:"#07563c",900:"#064731"},teal:{50:"#f1fcfc",100:"#c0f1f4",200:"#84e4e9",300:"#2dd1da",400:"#22b2ba",500:"#1d979e",600:"#187b80",700:"#125f64",800:"#0f5053",900:"#0d4244"},cyan:{50:"#f4fbfd",100:"#d0eef7",200:"#bae7f3",300:"#a2deee",400:"#53c2e1",500:"#2ab4d9",600:"#24a2c4",700:"#1e86a2",800:"#196e85",900:"#135567"},blue:{50:"#f1f6fd",100:"#cde0f6",200:"#a8c8f0",300:"#7fafe8",400:"#5896e1",500:"#347fdb",600:"#236abf",700:"#1b5192",800:"#164278",900:"#123662"},indigo:{50:"#f8f7fc",100:"#e1ddf5",200:"#c8c0ec",300:"#a89de2",400:"#9789dc",500:"#7f6ed4",600:"#6a58c9",700:"#5546a1",800:"#483c88",900:"#342b62"}},Dl=d({primary:Ol.purple,secondary:Ol.cyan},Ol),RC={heading:"InterVariable, Inter, sans-serif",body:"InterVariable, Inter, sans-serif"},IC={"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.8125rem",md:"0.875rem",lg:"1rem",xl:"1.125rem","2xl":"1.25rem","3xl":"1.5rem","4xl":"1.875rem","5xl":"2.25rem","6xl":"3rem","7xl":"3.75rem","8xl":"4.5rem","9xl":"6rem"},LC={h1:{fontSize:["5xl","6xl","7xl"],fontWeight:"extrabold",lineHeight:"1.2",letterSpacing:"-2%"},h2:{fontSize:["3xl","4xl","5xl"],fontWeight:"extrabold",lineHeight:"1.1",letterSpacing:"-1%"},h3:{fontSize:["lg","xl"],fontWeight:"extrabold",lineHeight:"1.1",letterSpacing:"-1%"},subtitle:{fontSize:["lg",null,"2xl"],fontWeight:"normal"}},OC={container:{sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"}},DC=OC,VC={outline:`0 0 0 2px ${X(Dl.primary[500],.6)({colors:Dl})}`},NC=VC,BC={colors:{"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.200"},muted:{default:"gray.500",_dark:"gray.400"},neutral:{default:"black",_dark:"white"},"neutral-fg":{default:"white",_dark:"black"}}},jC={colors:Dl,fonts:RC,fontSizes:IC,textStyles:LC,sizes:DC,shadows:NC,semanticTokens:BC},{definePartsStyle:kp,defineMultiStyleConfig:zC}=M(nn.keys),FC=kp(e=>{let{colorScheme:t}=e;return {container:{bg:"white",_dark:{bg:"black"},borderWidth:"1px"},icon:{color:`${t}.500`,_dark:{color:`${t}.500`},"& .chakra-spinner":{color:"black",_dark:{color:"white"}}},title:{fontWeight:"semibold",fontSize:"md"},description:{fontSize:"sm",color:"gray.500",_dark:{color:"gray.400"}}}}),WC=kp({container:{borderRadius:"md"}}),HC=zC({defaultProps:{size:"sm"},baseStyle:WC,variants:{snackbar:FC}}),gn=Di("badge",["bg","color","shadow","border"]),KC={variants:{outline:e=>{var t;let r=(t=dp.variants)==null?void 0:t.outline(e);return b(d({},r),{_dark:b(d({},r==null?void 0:r._dark),{[gn.shadow.variable]:`inset 0 0 0px 1px ${gn.border.reference}`,[gn.color.variable]:`colors.${e.colorScheme}.200`,[gn.border.variable]:`colors.${e.colorScheme}.500`})})},ghost:e=>{var t;let r=(t=dp.variants)==null?void 0:t.outline(e);return b(d({},r),{shadow:"none",_dark:b(d({},r==null?void 0:r._dark),{[gn.color.variable]:`colors.${e.colorScheme}.200`})})}}},Pp=e=>{let{colorScheme:t}=e;return t==="gray"?{base:ee("gray.100","whiteAlpha.300")(e),hover:ee("gray.200","whiteAlpha.400")(e),active:ee("gray.300","whiteAlpha.500")(e)}:t==="white"?{base:"whiteAlpha.900",hover:"whiteAlpha.700",active:"whiteAlpha.500"}:{base:ee(`${t}.500`,`${t}.500`)(e),hover:ee(`${t}.600`,`${t}.600`)(e),active:ee(`${t}.700`,`${t}.700`)(e)}},GC={yellow:{bg:"yellow.400",hoverBg:"yellow.500",activeBg:"yellow.600",color:"black"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Xi=e=>{var t;let{colorScheme:r,colorMode:o}=e;if(r==="white")return {bg:"white",color:"black",_hover:{bg:"whiteAlpha.900",_dark:{bg:"whiteAlpha.900"},_disabled:{bg:"white"}},_active:{bg:"whiteAlpha.800",_dark:{bg:"whiteAlpha.800"}},_disabled:{color:"blackAlpha.700"}};if(r==="neutral")return {bg:"black",color:"white",_dark:{bg:"white",color:"black"},_hover:{bg:"blackAlpha.800",_disabled:{bg:"black"},_dark:{bg:"whiteAlpha.800",_disabled:{bg:"white"}}},_active:{bg:"blackAlpha.800",_dark:{bg:"whiteAlpha.800"}},_disabled:{color:"blackAlpha.700",_dark:{color:"whiteAlpha.700"}}};let{base:n,hover:i,active:a}=Pp(e),{color:s=r==="gray"?ee("black","white")(e):"white",bg:l=n,hoverBg:c=i,activeBg:u=a}=(t=GC[r])!=null?t:{};return {bg:l,color:s,_hover:{bg:c,_disabled:{bg:l}},_active:{bg:u}}},UC=e=>d({shadow:"md"},Xi(e)),Ep=e=>{let{colorScheme:t}=e,{base:r,hover:o,active:n}=Pp(e);return b(d({},$p(e)),{borderColor:t==="gray"?o:r,borderWidth:"1px",_hover:{borderColor:t==="gray"?n:o}})},$p=e=>{let{colorScheme:t,theme:r}=e;if(t==="gray")return {color:"inherit",_dark:{color:"whiteAlpha.900"},_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:{bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.300"}}};if(t==="white")return {color:"white",_hover:{bg:"whiteAlpha.200"},_active:"whiteAlpha.300"};let o=X(`${t}.200`,.12)(r),n=X(`${t}.200`,.24)(r);return {color:`${t}.600`,_dark:{color:`${t}.200`},bg:"transparent",_hover:{bg:`${t}.50`,_dark:{bg:o}},_active:{bg:`${t}.100`,_dark:{bg:n}}}},YC=e=>{let{colorScheme:t,theme:r}=e;if(t==="gray")return {color:"inherit",bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.100",color:"whiteAlpha.900"},_hover:{bg:"blackAlpha.200",_dark:{color:"white.200"}},_active:{bg:"blackAlpha.300",_dark:{bg:"whiteAlpha.300"}}};let o=t==="white"?"white":ee(`${t}.500`,`${t}.200`)(e),n=X(o,.1)(r),i=X(o,.16)(r),a=X(o,.24)(r);return {color:t==="white"?"white":ee(`${t}.600`,`${t}.200`)(e),bg:n,_hover:{bg:i},_active:{bg:a}}},qC=e=>{let{colorScheme:t}=e;return {padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:t==="white"?"white":ee(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:t==="white"?"whiteAlpha.800":ee(`${t}.700`,`${t}.500`)(e)}}},XC=e=>{let{colorScheme:t}=e;return t==="gray"&&(t="primary"),Xi(b(d({},e),{variant:"solid",colorScheme:t}))},ZC=e=>Xi(b(d({},e),{variant:"solid"})),JC=e=>Ep(b(d({},e),{variant:"outline"})),QC={defaultProps:{size:"sm"},variants:{solid:Xi,ghost:$p,outline:Ep,subtle:YC,elevated:UC,link:qC,primary:XC,secondary:ZC,tertiary:JC}},{definePartsStyle:Zi,defineMultiStyleConfig:eT}=M(kl.keys),er=D("card-bg");D("card-padding");var Fl=D("card-shadow");D("card-radius");var Wl=D("card-border-width","0"),At=D("card-border-color"),tT=Zi(()=>({container:{transitionProperty:"common",transitionDuration:"normal"},header:{p:4},body:{p:4},footer:{p:4}})),rT=Zi(e=>({container:{[er.variable]:"colors.white",[At.variable]:"colors.blackAlpha.200",[Wl.variable]:"1px",[Fl.variable]:"shadows.sm",_dark:{[er.variable]:"colors.whiteAlpha.200",[At.variable]:"colors.whiteAlpha.50"},"&.chakra-linkbox:hover":{[At.variable]:"colors.blackAlpha.300",_dark:{[At.variable]:"colors.whiteAlpha.300"}}}})),oT=Zi(e=>{let{colorScheme:t}=e,r=t?"white":"inherit";return {container:{[Wl.variable]:"0",[Fl.variable]:"none",[er.variable]:t?`${t}.500`:"colors.blackAlpha.100",color:r,"&.chakra-linkbox:hover":{[er.variable]:t?`${t}.600`:"colors.blackAlpha.200"},_dark:{[er.variable]:t?`${t}.500`:"colors.whiteAlpha.100","&.chakra-linkbox:hover":{[er.variable]:t?`${t}.600`:"colors.whiteAlpha.200"}}}}}),nT=Zi(e=>{let{colorScheme:t}=e;return {container:{[Wl.variable]:"1px",[Fl.variable]:"none",[At.variable]:t?`${t}.500`:"colors.blackAlpha.200",[er.variable]:"transparent","&.chakra-linkbox:hover":{[At.variable]:t?`${t}.600`:"colors.blackAlpha.300"},_dark:{[At.variable]:t?`${t}.500`:"colors.whiteAlpha.300","&.chakra-linkbox:hover":{[At.variable]:t?`${t}.600`:"colors.whiteAlpha.400"}}}}}),iT=eT({defaultProps:{variant:"elevated"},baseStyle:tT,variants:{elevated:rT,outline:nT,filled:oT}}),{definePartsStyle:aT,defineMultiStyleConfig:sT}=M(bl.keys),lT=aT(e=>{let{colorScheme:t}=e;return {control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}}),cT=sT({baseStyle:lT}),uT={defaultProps:{size:"sm"}},{definePartsStyle:Ui,defineMultiStyleConfig:fT}=M(Zt.keys),Wi=D("input-height"),Hi=D("input-padding"),vp=D("input-border-radius"),_p={sm:Ui({field:{[vp.variable]:"radii.md"},group:{[vp.variable]:"radii.md"}}),md:Ui({field:{[Hi.variable]:"space.3",[Wi.variable]:"sizes.9"},group:{[Hi.variable]:"space.3",[Wi.variable]:"sizes.9"}}),lg:Ui({field:{[Hi.variable]:"space.3",[Wi.variable]:"sizes.10"},group:{[Hi.variable]:"space.3",[Wi.variable]:"sizes.10"}})},Ap=Ui(e=>({field:{borderColor:"blackAlpha.300",_dark:{borderColor:"whiteAlpha.300"},_hover:{borderColor:"blackAlpha.400",_dark:{borderColor:"whiteAlpha.400"}}}})),Hl=fT({defaultProps:{focusBorderColor:"primary.500"},variants:{outline:Ap},sizes:_p}),dT={variants:{horizontal:{mb:0,marginStart:"0.5rem"}}},yn=Hl,pT=Hl,mT={defaultProps:{focusBorderColor:"primary.500"},variants:{outline:Ap},sizes:_p},hT={defaultProps:{focusBorderColor:"primary.500"},variants:{outline:e=>{var t,r;return (r=(t=yn.variants)==null?void 0:t.outline(e).field)!=null?r:{}}}},gT=Hl,bp,xp,yT=b(d({},_t),{defaultProps:yn.defaultProps,variants:{outline:e=>{var t,r;return d({},(r=(t=yn.variants)==null?void 0:t.outline(e))!=null?r:{})},flushed:e=>{var t,r;return (r=(t=_t.variants)==null?void 0:t.flushed(e))!=null?r:{}},filled:e=>{var t,r;return (r=(t=_t.variants)==null?void 0:t.filled(e))!=null?r:{}},unstyled:(xp=(bp=_t.variants)==null?void 0:bp.unstyled)!=null?xp:{}},sizes:yn.sizes}),vT={defaultProps:{size:"lg"}},bT=e=>({color:"blackAlpha.300",_dark:{bg:"whiteAlpha.300"},borderWidth:0,borderBottomWidth:0,padding:"1px",display:"inline-block",borderRadius:"3px",minW:"20px",textAlign:"center",mr:1,":last-child":{mr:0}}),xT={defaultProps:{variant:"solid"},variants:{basic:{opacity:.6},solid:bT}},{definePartsStyle:Mp,defineMultiStyleConfig:ST}=M(an.keys),wT=Mp(e=>({list:{borderWidth:1,borderColor:"blackAlpha.200",boxShadow:"lg",_dark:{borderWidth:0,borderColor:"whiteAlpha.300",boxShadow:"dark-lg"}},divider:{borderColor:"blackAlpha.200",_dark:{borderColor:"whiteAlpha.300"}},groupTitle:{mx:3}})),CT=Mp(()=>({item:{px:6},groupTitle:{color:"muted",px:3}})),TT=ST({baseStyle:wT,variants:{dialog:CT}}),{definePartsStyle:kT,defineMultiStyleConfig:PT}=M(sn.keys),ET=kT(e=>({closeButton:{top:4,insetEnd:4}})),$T=PT({baseStyle:ET}),{definePartsStyle:_T,defineMultiStyleConfig:AT}=M(ln.keys),MT=AT({defaultProps:{colorScheme:"primary"},baseStyle:_T(e=>{let{colorScheme:t}=e;return {track:{borderRadius:"md"},filledTrack:{bg:`${t}.500`}}})}),{definePartsStyle:RT,defineMultiStyleConfig:IT}=M(Cl.keys),LT=IT({baseStyle:RT(e=>{let{colorScheme:t}=e;return {control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}})}),{definePartsStyle:OT,defineMultiStyleConfig:DT}=M(Tl.keys),VT=DT({defaultProps:{colorScheme:"primary"},baseStyle:OT(e=>{let{colorScheme:t}=e;return {filledTrack:{bg:`${t}.500`}}})}),{definePartsStyle:NT,defineMultiStyleConfig:BT}=M(cn.keys),jT=BT({baseStyle:NT(e=>{let{colorScheme:t}=e;return {track:{_checked:{bg:`${t}.500`}}}})}),Ki=Xe("tooltip-bg"),Sp=Xe("tooltip-fg"),zT=Xe("popper-arrow-bg"),FT=e=>({display:"flex",[Ki.variable]:"colors.white",[Sp.variable]:"colors.blackAlpha.900",_dark:{[Ki.variable]:"colors.gray.700",[Sp.variable]:"colors.whiteAlpha.900"},px:"8px",py:"2px",bg:[Ki.reference],[zT.variable]:[Ki.reference],borderRadius:"sm",fontWeight:"medium",fontSize:"xs",boxShadow:"md",maxW:"320px",zIndex:"tooltip",borderWidth:"1px"}),WT={baseStyle:FT},Gi=D("stepper-indicator-size"),rr=D("stepper-accent-color"),tr=D("stepper-vertical-seperator-offset"),{defineMultiStyleConfig:HT,definePartsStyle:Mt}=M(["container","item","content","stepper","step","title","description","indicator","separator","icon","number"]),KT=Mt(({colorScheme:e})=>({container:{display:"flex",flexDirection:"column",gap:4},item:{w:"full"},content:{["&[data-orientation=vertical]"]:{mt:2,ms:tr.reference,borderLeftWidth:"1px",ps:6}},stepper:{gap:"2",[tr.variable]:"10px",[rr.variable]:`colors.${e}.500`,_dark:{[rr.variable]:`colors.${e}.500`}},separator:{transitionProperty:"common",transitionDuration:"normal",["&[data-orientation=horizontal]"]:{height:"1px"},["&[data-orientation=vertical]"]:{width:"1px"},[".sui-steps__item .chakra-step &[data-orientation=vertical]"]:{display:"none"},[".sui-steps__item &[data-orientation=vertical]"]:{position:"static",minH:4,height:"auto",ms:tr.reference}},step:{["&[data-orientation=vertical]"]:{alignItems:"center"}}})),GT=Mt(e=>({})),UT=Mt(e=>({indicator:{"&[data-status=active]":{borderWidth:"0",bg:rr.reference,color:"chakra-inverse-text"},"&[data-status=complete]":{bg:rr.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"0",bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.200"}}}})),YT=Mt(e=>{let{theme:t,colorScheme:r}=e;return {stepper:{[rr.variable]:`colors.${r}.100`},indicator:{"&[data-status=active]":{borderWidth:"0",bg:rr.reference,color:`${r}.500`,_dark:{bg:X(`${r}.200`,.16)(t)}},"&[data-status=complete]":{bg:rr.reference,color:`${r}.500`,_dark:{bg:X(`${r}.200`,.24)(t),color:`${r}.200`}},"&[data-status=incomplete]":{borderWidth:"0",bg:"blackAlpha.200",color:"blackAlpha.700",_dark:{bg:"whiteAlpha.200",color:"whiteAlpha.600"}}}}}),qT=HT({defaultProps:{variant:"outline",colorScheme:"primary",size:"md"},baseStyle:KT,variants:{outline:GT,solid:UT,subtle:YT},sizes:{xs:Mt({stepper:{[Gi.variable]:"sizes.4",[tr.variable]:"7px"}}),sm:Mt({stepper:{[Gi.variable]:"sizes.6",[tr.variable]:"11px"}}),md:Mt({stepper:{[Gi.variable]:"sizes.7",[tr.variable]:"14px"}}),lg:Mt({stepper:{[Gi.variable]:"sizes.8",[tr.variable]:"16px"}})}}),{definePartsStyle:XT,defineMultiStyleConfig:ZT}=M(Rl.keys),JT=XT(e=>{let{colorScheme:t}=e;return {icon:{boxSize:[10,null,12],color:`${t}.500`,_dark:{color:`${t}.500`}}}}),QT=ZT({baseStyle:JT}),ek=Cp(e=>{let{colorScheme:t}=e;return {bar:{bg:`${t}.500`,_dark:{bg:`${t}.500`}}}}),tk=Tp({defaultProps:{colorScheme:"primary"},baseStyle:ek}),{definePartsStyle:HD,defineMultiStyleConfig:rk}=M(Il.keys),ok=rk({baseStyle:{label:{color:"muted",_dark:{color:"muted"}}}}),nk={Alert:HC,Badge:KC,Button:QC,Card:iT,Checkbox:cT,CloseButton:uT,Heading:vT,Kbd:xT,Menu:TT,Modal:$T,Progress:MT,Radio:LT,Slider:VT,Switch:jT,Stepper:qT,Tooltip:WT,Input:yn,PinInput:mT,FormLabel:dT,NumberInput:pT,Select:gT,Textarea:hT,SuiEmptyState:QT,SuiNProgress:tk,SuiProperty:ok,SuiSelect:yT},bn=extendTheme(b(d({},jC),{styles:MC,components:nk}),withDefaultColorScheme({colorScheme:"primary",components:["Radio","Switch","Checkbox"]}),zl);var Ji=createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var Rt=createContext({});var It=createContext(null);var Lt=typeof document!="undefined";var zr=Lt?useLayoutEffect:useEffect;var Qi=createContext({strict:!1});function Ip(e,t,r,o){let{visualElement:n}=useContext(Rt),i=useContext(Qi),a=useContext(It),s=useContext(Ji).reducedMotion,l=useRef();o=o||i.renderer,!l.current&&o&&(l.current=o(e,{visualState:t,parent:n,props:r,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));let c=l.current;useInsertionEffect(()=>{c&&c.update(r,a);});let u=useRef(!!window.HandoffAppearAnimations);return zr(()=>{c&&(c.render(),u.current&&c.animationState&&c.animationState.animateChanges());}),useEffect(()=>{c&&(c.updateFeatures(),!u.current&&c.animationState&&c.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,u.current=!1);}),c}function mt(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Lp(e,t,r){return useCallback(o=>{o&&e.mount&&e.mount(o),t&&(o?t.mount(o):t.unmount()),r&&(typeof r=="function"?r(o):mt(r)&&(r.current=o));},[t])}function ht(e){return typeof e=="string"||Array.isArray(e)}function Ot(e){return typeof e=="object"&&typeof e.start=="function"}var ta=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],xn=["initial",...ta];function or(e){return Ot(e.animate)||xn.some(t=>ht(e[t]))}function ra(e){return !!(or(e)||e.variants)}function Op(e,t){if(or(e)){let{initial:r,animate:o}=e;return {initial:r===!1||ht(r)?r:void 0,animate:ht(o)?o:void 0}}return e.inherit!==!1?t:{}}function Vp(e){let{initial:t,animate:r}=Op(e,useContext(Rt));return useMemo(()=>({initial:t,animate:r}),[Dp(t),Dp(r)])}function Dp(e){return Array.isArray(e)?e.join(" "):e}var Np={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"]},nr={};for(let e in Np)nr[e]={isEnabled:t=>Np[e].some(r=>!!t[r])};function Bp(e){for(let t in e)nr[t]=d(d({},nr[t]),e[t]);}var Fr=createContext({});var oa=createContext({});var jp=Symbol.for("motionComponentSymbol");function zp({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:o,Component:n}){e&&Bp(e);function i(s,l){let c,u=b(d(d({},useContext(Ji)),s),{layoutId:bk(s)}),{isStatic:f}=u,p=Vp(s),m=o(s,f);if(!f&&Lt){p.visualElement=Ip(n,m,u,t);let v=useContext(oa),y=useContext(Qi).strict;p.visualElement&&(c=p.visualElement.loadFeatures(u,y,e,v));}return bt.createElement(Rt.Provider,{value:p},c&&p.visualElement?bt.createElement(c,d({visualElement:p.visualElement},u)):null,r(n,s,Lp(m,p.visualElement,l),m,f,p.visualElement))}let a=forwardRef$1(i);return a[jp]=n,a}function bk({layoutId:e}){let t=useContext(Fr).id;return t&&e!==void 0?t+"-"+e:e}function Fp(e){function t(o,n={}){return zp(e(o,n))}if(typeof Proxy=="undefined")return t;let r=new Map;return new Proxy(t,{get:(o,n)=>(r.has(n)||r.set(n,t(n)),r.get(n))})}var Wp=["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 Wr(e){return typeof e!="string"||e.includes("-")?!1:!!(Wp.indexOf(e)>-1||/[A-Z]/.test(e))}var Hr={};function Hp(e){Object.assign(Hr,e);}var Dt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],$e=new Set(Dt);function ia(e,{layout:t,layoutId:r}){return $e.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Hr[e]||e==="opacity")}var te=e=>!!(e&&e.getVelocity);var xk={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Sk=Dt.length;function Kp(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},o,n){let i="";for(let a=0;a<Sk;a++){let s=Dt[a];if(e[s]!==void 0){let l=xk[s]||s;i+=`${l}(${e[s]}) `;}}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),n?i=n(e,o?"":i):r&&o&&(i="none"),i}var Gp=e=>t=>typeof t=="string"&&t.startsWith(e),aa=Gp("--"),sa=Gp("var(--"),Up=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g;var Yp=(e,t)=>t&&typeof e=="number"?t.transform(e):e;var Te=(e,t,r)=>Math.min(Math.max(r,e),t);var Ke={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Vt=b(d({},Ke),{transform:e=>Te(0,1,e)}),Sn=b(d({},Ke),{default:1});var Nt=e=>Math.round(e*1e5)/1e5,ir=/(-)?([\d]*\.?[\d])+/g,Gl=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,qp=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function gt(e){return typeof e=="string"}var wn=e=>({test:t=>gt(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ot=wn("deg"),ke=wn("%"),V=wn("px"),Xp=wn("vh"),Zp=wn("vw"),Ul=b(d({},ke),{parse:e=>ke.parse(e)/100,transform:e=>ke.transform(e*100)});var Yl=b(d({},Ke),{transform:Math.round});var la={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,size:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,rotate:ot,rotateX:ot,rotateY:ot,rotateZ:ot,scale:Sn,scaleX:Sn,scaleY:Sn,scaleZ:Sn,skew:ot,skewX:ot,skewY:ot,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:Vt,originX:Ul,originY:Ul,originZ:V,zIndex:Yl,fillOpacity:Vt,strokeOpacity:Vt,numOctaves:Yl};function Kr(e,t,r,o){let{style:n,vars:i,transform:a,transformOrigin:s}=e,l=!1,c=!1,u=!0;for(let f in t){let p=t[f];if(aa(f)){i[f]=p;continue}let m=la[f],v=Yp(p,m);if($e.has(f)){if(l=!0,a[f]=v,!u)continue;p!==(m.default||0)&&(u=!1);}else f.startsWith("origin")?(c=!0,s[f]=v):n[f]=v;}if(t.transform||(l||o?n.transform=Kp(e.transform,r,u,o):n.transform&&(n.transform="none")),c){let{originX:f="50%",originY:p="50%",originZ:m=0}=s;n.transformOrigin=`${f} ${p} ${m}`;}}var Gr=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ql(e,t,r){for(let o in t)!te(t[o])&&!ia(o,r)&&(e[o]=t[o]);}function Ck({transformTemplate:e},t,r){return useMemo(()=>{let o=Gr();return Kr(o,t,{enableHardwareAcceleration:!r},e),Object.assign({},o.vars,o.style)},[t])}function Tk(e,t,r){let o=e.style||{},n={};return ql(n,o,e),Object.assign(n,Ck(e,t,r)),e.transformValues?e.transformValues(n):n}function Jp(e,t,r){let o={},n=Tk(e,t,r);return e.drag&&e.dragListener!==!1&&(o.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)&&(o.tabIndex=0),o.style=n,o}var kk=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Cn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||kk.has(e)}var om=e=>!Cn(e);function Ak(e){e&&(om=t=>t.startsWith("on")?!Cn(t):e(t));}try{Ak((rm(),u0(tm)).default);}catch(e){}function nm(e,t,r){let o={};for(let n in e)n==="values"&&typeof e.values=="object"||(om(n)||r===!0&&Cn(n)||!t&&!Cn(n)||e.draggable&&n.startsWith("onDrag"))&&(o[n]=e[n]);return o}function im(e,t,r){return typeof e=="string"?e:V.transform(t+r*e)}function am(e,t,r){let o=im(t,e.x,e.width),n=im(r,e.y,e.height);return `${o} ${n}`}var Mk={offset:"stroke-dashoffset",array:"stroke-dasharray"},Rk={offset:"strokeDashoffset",array:"strokeDasharray"};function sm(e,t,r=1,o=0,n=!0){e.pathLength=1;let i=n?Mk:Rk;e[i.offset]=V.transform(-o);let a=V.transform(t),s=V.transform(r);e[i.array]=`${a} ${s}`;}function Ur(e,m,u,f,p){var v=m,{attrX:t,attrY:r,attrScale:o,originX:n,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0}=v,c=P(v,["attrX","attrY","attrScale","originX","originY","pathLength","pathSpacing","pathOffset"]);if(Kr(e,c,u,p),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:y,style:x,dimensions:w}=e;y.transform&&(w&&(x.transform=y.transform),delete y.transform),w&&(n!==void 0||i!==void 0||x.transform)&&(x.transformOrigin=am(w,n!==void 0?n:.5,i!==void 0?i:.5)),t!==void 0&&(y.x=t),r!==void 0&&(y.y=r),o!==void 0&&(y.scale=o),a!==void 0&&sm(y,a,s,l,!1);}var ca=()=>b(d({},Gr()),{attrs:{}});var Yr=e=>typeof e=="string"&&e.toLowerCase()==="svg";function lm(e,t,r,o){let n=useMemo(()=>{let i=ca();return Ur(i,t,{enableHardwareAcceleration:!1},Yr(o),e.transformTemplate),b(d({},i.attrs),{style:d({},i.style)})},[t]);if(e.style){let i={};ql(i,e.style,e),n.style=d(d({},i),n.style);}return n}function cm(e=!1){return (r,o,n,{latestValues:i},a)=>{let l=(Wr(r)?lm:Jp)(o,i,a,r),c=nm(o,typeof r=="string",e),u=b(d(d({},c),l),{ref:n}),{children:f}=o,p=useMemo(()=>te(f)?f.get():f,[f]);return createElement(r,b(d({},u),{children:p}))}}var qr=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function ua(e,{style:t,vars:r},o,n){Object.assign(e.style,t,n&&n.getProjectionStyles(o));for(let i in r)e.style.setProperty(i,r[i]);}var fa=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 da(e,t,r,o){ua(e,t,void 0,o);for(let n in t.attrs)e.setAttribute(fa.has(n)?n:qr(n),t.attrs[n]);}function Xr(e,t){let{style:r}=e,o={};for(let n in r)(te(r[n])||t.style&&te(t.style[n])||ia(n,e))&&(o[n]=r[n]);return o}function pa(e,t){let r=Xr(e,t);for(let o in e)if(te(e[o])||te(t[o])){let n=Dt.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[n]=e[o];}return r}function Zr(e,t,r,o={},n={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,o,n)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,o,n)),t}function ma(e){let t=useRef(null);return t.current===null&&(t.current=e()),t.current}var ar=e=>Array.isArray(e);var um=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),fm=e=>ar(e)?e[e.length-1]||0:e;function Jr(e){let t=te(e)?e.get():e;return um(t)?t.toValue():t}function Vk({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},o,n,i){let a={latestValues:Nk(o,n,i,e),renderState:t()};return r&&(a.mount=s=>r(o,s,a)),a}var ha=e=>(t,r)=>{let o=useContext(Rt),n=useContext(It),i=()=>Vk(e,t,o,n);return r?i():ma(i)};function Nk(e,t,r,o){let n={},i=o(e,{});for(let p in i)n[p]=Jr(i[p]);let{initial:a,animate:s}=e,l=or(e),c=ra(e);t&&c&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let u=r?r.initial===!1:!1;u=u||a===!1;let f=u?s:a;return f&&typeof f!="boolean"&&!Ot(f)&&(Array.isArray(f)?f:[f]).forEach(m=>{let v=Zr(e,m);if(!v)return;let S=v,{transitionEnd:y,transition:x}=S,w=P(S,["transitionEnd","transition"]);for(let C in w){let k=w[C];if(Array.isArray(k)){let $=u?k.length-1:0;k=k[$];}k!==null&&(n[C]=k);}for(let C in y)n[C]=y[C];}),n}var H=e=>e;var ga=class{constructor(){this.order=[],this.scheduled=new Set;}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){let r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t));}clear(){this.order.length=0,this.scheduled.clear();}};function pm(e){let t=new ga,r=new ga,o=0,n=!1,i=!1,a=new WeakSet,s={schedule:(l,c=!1,u=!1)=>{let f=u&&n,p=f?t:r;return c&&a.add(l),p.add(l)&&f&&n&&(o=t.order.length),l},cancel:l=>{r.remove(l),a.delete(l);},process:l=>{if(n){i=!0;return}if(n=!0,[t,r]=[r,t],r.clear(),o=t.order.length,o)for(let c=0;c<o;c++){let u=t.order[c];u(l),a.has(u)&&(s.schedule(u),e());}n=!1,i&&(i=!1,s.process(l));}};return s}var ya=["prepare","read","update","preRender","render","postRender"],Bk=40;function mm(e,t){let r=!1,o=!0,n={delta:0,timestamp:0,isProcessing:!1},i=ya.reduce((f,p)=>(f[p]=pm(()=>r=!0),f),{}),a=f=>i[f].process(n),s=()=>{let f=performance.now();r=!1,n.delta=o?1e3/60:Math.max(Math.min(f-n.timestamp,Bk),1),n.timestamp=f,n.isProcessing=!0,ya.forEach(a),n.isProcessing=!1,r&&t&&(o=!1,e(s));},l=()=>{r=!0,o=!0,n.isProcessing||e(s);};return {schedule:ya.reduce((f,p)=>{let m=i[p];return f[p]=(v,y=!1,x=!1)=>(r||l(),m.schedule(v,y,x)),f},{}),cancel:f=>ya.forEach(p=>i[p].cancel(f)),state:n,steps:i}}var{schedule:z,cancel:Pe,state:ne,steps:va}=mm(typeof requestAnimationFrame!="undefined"?requestAnimationFrame:H,!0);var hm={useVisualState:ha({scrapeMotionValuesFromProps:pa,createRenderState:ca,onMount:(e,t,{renderState:r,latestValues:o})=>{z.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect();}catch(n){r.dimensions={x:0,y:0,width:0,height:0};}}),z.render(()=>{Ur(r,o,{enableHardwareAcceleration:!1},Yr(t.tagName),e.transformTemplate),da(t,r);});}})};var gm={useVisualState:ha({scrapeMotionValuesFromProps:Xr,createRenderState:Gr})};function ym(e,{forwardMotionProps:t=!1},r,o){let n=Wr(e)?hm:gm;return b(d({},n),{preloadedFeatures:r,useRender:cm(t),createVisualElement:o,Component:e})}function _e(e,t,r,o={passive:!0}){return e.addEventListener(t,r,o),()=>e.removeEventListener(t,r)}var ba=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function sr(e,t="page"){return {point:{x:e[t+"X"],y:e[t+"Y"]}}}var vm=e=>t=>ba(t)&&e(t,sr(t));function Ae(e,t,r,o){return _e(e,t,vm(r),o)}var jk=(e,t)=>r=>t(e(r)),Me=(...e)=>e.reduce(jk);function Sm(e){let t=null;return ()=>{let r=()=>{t=null;};return t===null?(t=e,r):!1}}var bm=Sm("dragHorizontal"),xm=Sm("dragVertical");function Xl(e){let t=!1;if(e==="y")t=xm();else if(e==="x")t=bm();else {let r=bm(),o=xm();r&&o?t=()=>{r(),o();}:(r&&r(),o&&o());}return t}function xa(){let e=Xl(!0);return e?(e(),!1):!0}var fe=class{constructor(t){this.isMounted=!1,this.node=t;}update(){}};function wm(e,t){let r="pointer"+(t?"enter":"leave"),o="onHover"+(t?"Start":"End"),n=(i,a)=>{if(i.type==="touch"||xa())return;let s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[o]&&z.update(()=>s[o](i,a));};return Ae(e.current,r,n,{passive:!e.getProps()[o]})}var Sa=class extends fe{mount(){this.unmount=Me(wm(this.node,!0),wm(this.node,!1));}unmount(){}};var wa=class extends fe{constructor(){super(...arguments),this.isActive=!1;}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible");}catch(r){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=Me(_e(this.node.current,"focus",()=>this.onFocus()),_e(this.node.current,"blur",()=>this.onBlur()));}unmount(){}};var Zl=(e,t)=>t?e===t?!0:Zl(e,t.parentElement):!1;function Jl(e,t){if(!t)return;let r=new PointerEvent("pointer"+e);t(r,sr(r));}var Ca=class extends fe{constructor(){super(...arguments),this.removeStartListeners=H,this.removeEndListeners=H,this.removeAccessibleListeners=H,this.startPointerPress=(t,r)=>{if(this.removeEndListeners(),this.isPressing)return;let o=this.node.getProps(),i=Ae(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;let{onTap:c,onTapCancel:u}=this.node.getProps();z.update(()=>{Zl(this.node.current,s.target)?c&&c(s,l):u&&u(s,l);});},{passive:!(o.onTap||o.onPointerUp)}),a=Ae(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(o.onTapCancel||o.onPointerCancel)});this.removeEndListeners=Me(i,a),this.startPress(t,r);},this.startAccessiblePress=()=>{let t=i=>{if(i.key!=="Enter"||this.isPressing)return;let a=s=>{s.key!=="Enter"||!this.checkPressEnd()||Jl("up",(l,c)=>{let{onTap:u}=this.node.getProps();u&&z.update(()=>u(l,c));});};this.removeEndListeners(),this.removeEndListeners=_e(this.node.current,"keyup",a),Jl("down",(s,l)=>{this.startPress(s,l);});},r=_e(this.node.current,"keydown",t),o=()=>{this.isPressing&&Jl("cancel",(i,a)=>this.cancelPress(i,a));},n=_e(this.node.current,"blur",o);this.removeAccessibleListeners=Me(r,n);};}startPress(t,r){this.isPressing=!0;let{onTapStart:o,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),o&&z.update(()=>o(t,r));}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!xa()}cancelPress(t,r){if(!this.checkPressEnd())return;let{onTapCancel:o}=this.node.getProps();o&&z.update(()=>o(t,r));}mount(){let t=this.node.getProps(),r=Ae(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),o=_e(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Me(r,o);}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners();}};var ec=new WeakMap,Ql=new WeakMap,zk=e=>{let t=ec.get(e.target);t&&t(e);},Fk=e=>{e.forEach(zk);};function Wk(r){var o=r,{root:e}=o,t=P(o,["root"]);let n=e||document;Ql.has(n)||Ql.set(n,{});let i=Ql.get(n),a=JSON.stringify(t);return i[a]||(i[a]=new IntersectionObserver(Fk,d({root:e},t))),i[a]}function Cm(e,t,r){let o=Wk(t);return ec.set(e,r),o.observe(e),()=>{ec.delete(e),o.unobserve(e);}}var Hk={some:0,all:1},Ta=class extends fe{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1;}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:r,margin:o,amount:n="some",once:i}=t,a={root:r?r.current:void 0,rootMargin:o,threshold:typeof n=="number"?n:Hk[n]},s=l=>{let{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);let{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),p=c?u:f;p&&p(l);};return Cm(this.node.current,a,s)}mount(){this.startObserver();}update(){if(typeof IntersectionObserver=="undefined")return;let{props:t,prevProps:r}=this.node;["amount","margin","root"].some(Kk(t,r))&&this.startObserver();}unmount(){}};function Kk({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}var Tm={inView:{Feature:Ta},tap:{Feature:Ca},focus:{Feature:wa},hover:{Feature:Sa}};function tc(e,t){if(!Array.isArray(t))return !1;let r=t.length;if(r!==e.length)return !1;for(let o=0;o<r;o++)if(t[o]!==e[o])return !1;return !0}function Gk(e){let t={};return e.values.forEach((r,o)=>t[o]=r.get()),t}function Uk(e){let t={};return e.values.forEach((r,o)=>t[o]=r.getVelocity()),t}function Bt(e,t,r){let o=e.getProps();return Zr(o,t,r!==void 0?r:o.custom,Gk(e),Uk(e))}var Yk="framerAppearId",km="data-"+qr(Yk);var ye=H;var Ne=e=>e*1e3,Re=e=>e/1e3;var rc={current:!1};var oc=e=>Array.isArray(e)&&typeof e[0]=="number";function nc(e){return !!(!e||typeof e=="string"&&Pm[e]||oc(e)||Array.isArray(e)&&e.every(nc))}var Tn=([e,t,r,o])=>`cubic-bezier(${e}, ${t}, ${r}, ${o})`,Pm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Tn([0,.65,.55,1]),circOut:Tn([.55,0,1,.45]),backIn:Tn([.31,.01,.66,-.59]),backOut:Tn([.33,1.53,.69,.99])};function ic(e){if(e)return oc(e)?Tn(e):Array.isArray(e)?e.map(ic):Pm[e]}function Em(e,t,r,{delay:o=0,duration:n,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){let c={[t]:r};l&&(c.offset=l);let u=ic(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:o,duration:n,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}function $m(e,{repeat:t,repeatType:r="loop"}){let o=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[o]}var _m=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,qk=1e-7,Xk=12;function Zk(e,t,r,o,n){let i,a,s=0;do a=t+(r-t)/2,i=_m(a,o,n)-e,i>0?r=a:t=a;while(Math.abs(i)>qk&&++s<Xk);return a}function jt(e,t,r,o){if(e===t&&r===o)return H;let n=i=>Zk(i,0,1,e,r);return i=>i===0||i===1?i:_m(n(i),t,o)}var Am=jt(.42,0,1,1),Mm=jt(0,0,.58,1),ka=jt(.42,0,.58,1);var Rm=e=>Array.isArray(e)&&typeof e[0]!="number";var Pa=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var Ea=e=>t=>1-e(1-t);var ac=e=>1-Math.sin(Math.acos(e)),kn=Ea(ac),Im=Pa(kn);var sc=jt(.33,1.53,.69,.99),Pn=Ea(sc),Lm=Pa(Pn);var Om=e=>(e*=2)<1?.5*Pn(e):.5*(2-Math.pow(2,-10*(e-1)));var Dm={linear:H,easeIn:Am,easeInOut:ka,easeOut:Mm,circIn:ac,circInOut:Im,circOut:kn,backIn:Pn,backInOut:Lm,backOut:sc,anticipate:Om},lc=e=>{if(Array.isArray(e)){ye(e.length===4);let[t,r,o,n]=e;return jt(t,r,o,n)}else if(typeof e=="string")return Dm[e];return e};var eo=(e,t)=>r=>!!(gt(r)&&qp.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),$a=(e,t,r)=>o=>{if(!gt(o))return o;let[n,i,a,s]=o.match(ir);return {[e]:parseFloat(n),[t]:parseFloat(i),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}};var Jk=e=>Te(0,255,e),cc=b(d({},Ke),{transform:e=>Math.round(Jk(e))}),nt={test:eo("rgb","red"),parse:$a("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:o=1})=>"rgba("+cc.transform(e)+", "+cc.transform(t)+", "+cc.transform(r)+", "+Nt(Vt.transform(o))+")"};function Qk(e){let t="",r="",o="",n="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),o=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),o=e.substring(3,4),n=e.substring(4,5),t+=t,r+=r,o+=o,n+=n),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(o,16),alpha:n?parseInt(n,16)/255:1}}var En={test:eo("#"),parse:Qk,transform:nt.transform};var zt={test:eo("hsl","hue"),parse:$a("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:o=1})=>"hsla("+Math.round(e)+", "+ke.transform(Nt(t))+", "+ke.transform(Nt(r))+", "+Nt(Vt.transform(o))+")"};var se={test:e=>nt.test(e)||En.test(e)||zt.test(e),parse:e=>nt.test(e)?nt.parse(e):zt.test(e)?zt.parse(e):En.parse(e),transform:e=>gt(e)?e:e.hasOwnProperty("red")?nt.transform(e):zt.transform(e)};var K=(e,t,r)=>-r*e+r*t+e;function uc(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 Vm({hue:e,saturation:t,lightness:r,alpha:o}){e/=360,t/=100,r/=100;let n=0,i=0,a=0;if(!t)n=i=a=r;else {let s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;n=uc(l,s,e+1/3),i=uc(l,s,e),a=uc(l,s,e-1/3);}return {red:Math.round(n*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:o}}var fc=(e,t,r)=>{let o=e*e;return Math.sqrt(Math.max(0,r*(t*t-o)+o))},eP=[En,nt,zt],tP=e=>eP.find(t=>t.test(e));function Nm(e){let t=tP(e);let r=t.parse(e);return t===zt&&(r=Vm(r)),r}var _a=(e,t)=>{let r=Nm(e),o=Nm(t),n=d({},r);return i=>(n.red=fc(r.red,o.red,i),n.green=fc(r.green,o.green,i),n.blue=fc(r.blue,o.blue,i),n.alpha=K(r.alpha,o.alpha,i),nt.transform(n))};function rP(e){var t,r;return isNaN(e)&&gt(e)&&(((t=e.match(ir))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(Gl))===null||r===void 0?void 0:r.length)||0)>0}var Bm={regex:Up,countKey:"Vars",token:"${v}",parse:H},jm={regex:Gl,countKey:"Colors",token:"${c}",parse:se.parse},zm={regex:ir,countKey:"Numbers",token:"${n}",parse:Ke.parse};function dc(e,{regex:t,countKey:r,token:o,parse:n}){let i=e.tokenised.match(t);i&&(e["num"+r]=i.length,e.tokenised=e.tokenised.replace(t,o),e.values.push(...i.map(n)));}function $n(e){let t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&dc(r,Bm),dc(r,jm),dc(r,zm),r}function Fm(e){return $n(e).values}function Wm(e){let{values:t,numColors:r,numVars:o,tokenised:n}=$n(e),i=t.length;return a=>{let s=n;for(let l=0;l<i;l++)l<o?s=s.replace(Bm.token,a[l]):l<o+r?s=s.replace(jm.token,se.transform(a[l])):s=s.replace(zm.token,Nt(a[l]));return s}}var oP=e=>typeof e=="number"?0:e;function nP(e){let t=Fm(e);return Wm(e)(t.map(oP))}var Ee={test:rP,parse:Fm,createTransformer:Wm,getAnimatableNone:nP};var Hm=(e,t)=>r=>`${r>0?t:e}`;function Km(e,t){return typeof e=="number"?r=>K(e,t,r):se.test(e)?_a(e,t):e.startsWith("var(")?Hm(e,t):mc(e,t)}var pc=(e,t)=>{let r=[...e],o=r.length,n=e.map((i,a)=>Km(i,t[a]));return i=>{for(let a=0;a<o;a++)r[a]=n[a](i);return r}},Gm=(e,t)=>{let r=d(d({},e),t),o={};for(let n in r)e[n]!==void 0&&t[n]!==void 0&&(o[n]=Km(e[n],t[n]));return n=>{for(let i in o)r[i]=o[i](n);return r}},mc=(e,t)=>{let r=Ee.createTransformer(t),o=$n(e),n=$n(t);return o.numVars===n.numVars&&o.numColors===n.numColors&&o.numNumbers>=n.numNumbers?Me(pc(o.values,n.values),r):(Hm(e,t))};var yt=(e,t,r)=>{let o=t-e;return o===0?1:(r-e)/o};var Um=(e,t)=>r=>K(e,t,r);function iP(e){return typeof e=="number"?Um:typeof e=="string"?se.test(e)?_a:mc:Array.isArray(e)?pc:typeof e=="object"?Gm:Um}function aP(e,t,r){let o=[],n=r||iP(e[0]),i=e.length-1;for(let a=0;a<i;a++){let s=n(e[a],e[a+1]);if(t){let l=Array.isArray(t)?t[a]||H:t;s=Me(l,s);}o.push(s);}return o}function Aa(e,t,{clamp:r=!0,ease:o,mixer:n}={}){let i=e.length;if(ye(i===t.length),i===1)return ()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=aP(t,o,n),s=a.length,l=c=>{let u=0;if(s>1)for(;u<e.length-2&&!(c<e[u+1]);u++);let f=yt(e[u],e[u+1],c);return a[u](f)};return r?c=>l(Te(e[0],e[i-1],c)):l}function Ym(e,t){let r=e[e.length-1];for(let o=1;o<=t;o++){let n=yt(0,t,o);e.push(K(r,1,n));}}function qm(e){let t=[0];return Ym(t,e.length-1),t}function Xm(e,t){return e.map(r=>r*t)}function sP(e,t){return e.map(()=>t||ka).splice(0,e.length-1)}function _n({duration:e=300,keyframes:t,times:r,ease:o="easeInOut"}){let n=Rm(o)?o.map(lc):lc(o),i={done:!1,value:t[0]},a=Xm(r&&r.length===t.length?r:qm(t),e),s=Aa(a,t,{ease:Array.isArray(n)?n:sP(t,n)});return {calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}function Ma(e,t){return t?e*(1e3/t):0}var lP=5;function Ra(e,t,r){let o=Math.max(t-lP,0);return Ma(r-e(o),t-o)}var hc=.001,cP=.01,Zm=10,uP=.05,fP=1;function Jm({duration:e=800,bounce:t=.25,velocity:r=0,mass:o=1}){let n,i;let a=1-t;a=Te(uP,fP,a),e=Te(cP,Zm,Re(e)),a<1?(n=c=>{let u=c*a,f=u*e,p=u-r,m=Ia(c,a),v=Math.exp(-f);return hc-p/m*v},i=c=>{let f=c*a*e,p=f*r+r,m=Math.pow(a,2)*Math.pow(c,2)*e,v=Math.exp(-f),y=Ia(Math.pow(c,2),a);return (-n(c)+hc>0?-1:1)*((p-m)*v)/y}):(n=c=>{let u=Math.exp(-c*e),f=(c-r)*e+1;return -hc+u*f},i=c=>{let u=Math.exp(-c*e),f=(r-c)*(e*e);return u*f});let s=5/e,l=pP(n,i,s);if(e=Ne(e),isNaN(l))return {stiffness:100,damping:10,duration:e};{let c=Math.pow(l,2)*o;return {stiffness:c,damping:a*2*Math.sqrt(o*c),duration:e}}}var dP=12;function pP(e,t,r){let o=r;for(let n=1;n<dP;n++)o=o-e(o)/t(o);return o}function Ia(e,t){return e*Math.sqrt(1-t*t)}var mP=["duration","bounce"],hP=["stiffness","damping","mass"];function Qm(e,t){return t.some(r=>e[r]!==void 0)}function gP(e){let t=d({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Qm(e,hP)&&Qm(e,mP)){let r=Jm(e);t=b(d(d({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0;}return t}function La(n){var i=n,{keyframes:e,restDelta:t,restSpeed:r}=i,o=P(i,["keyframes","restDelta","restSpeed"]);let a=e[0],s=e[e.length-1],l={done:!1,value:a},{stiffness:c,damping:u,mass:f,velocity:p,duration:m,isResolvedFromDuration:v}=gP(o),y=p?-Re(p):0,x=u/(2*Math.sqrt(c*f)),w=s-a,S=Re(Math.sqrt(c/f)),C=Math.abs(w)<5;r||(r=C?.01:2),t||(t=C?.005:.5);let k;if(x<1){let $=Ia(S,x);k=L=>{let R=Math.exp(-x*S*L);return s-R*((y+x*S*w)/$*Math.sin($*L)+w*Math.cos($*L))};}else if(x===1)k=$=>s-Math.exp(-S*$)*(w+(y+S*w)*$);else {let $=S*Math.sqrt(x*x-1);k=L=>{let R=Math.exp(-x*S*L),O=Math.min($*L,300);return s-R*((y+x*S*w)*Math.sinh(O)+$*w*Math.cosh(O))/$};}return {calculatedDuration:v&&m||null,next:$=>{let L=k($);if(v)l.done=$>=m;else {let R=y;$!==0&&(x<1?R=Ra(k,$,L):R=0);let O=Math.abs(R)<=r,h=Math.abs(s-L)<=t;l.done=O&&h;}return l.value=l.done?s:L,l}}}function gc({keyframes:e,velocity:t=0,power:r=.8,timeConstant:o=325,bounceDamping:n=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){let f=e[0],p={done:!1,value:f},m=O=>s!==void 0&&O<s||l!==void 0&&O>l,v=O=>s===void 0?l:l===void 0||Math.abs(s-O)<Math.abs(l-O)?s:l,y=r*t,x=f+y,w=a===void 0?x:a(x);w!==x&&(y=w-f);let S=O=>-y*Math.exp(-O/o),C=O=>w+S(O),k=O=>{let h=S(O),I=C(O);p.done=Math.abs(h)<=c,p.value=p.done?w:I;},$,L,R=O=>{m(p.value)&&($=O,L=La({keyframes:[p.value,v(p.value)],velocity:Ra(C,O,p.value),damping:n,stiffness:i,restDelta:c,restSpeed:u}));};return R(0),{calculatedDuration:null,next:O=>{let h=!1;return !L&&$===void 0&&(h=!0,k(O),R(O)),$!==void 0&&O>$?L.next(O-$):(!h&&k(O),p)}}}var eh=e=>{let t=({timestamp:r})=>e(r);return {start:()=>z.update(t,!0),stop:()=>Pe(t),now:()=>ne.isProcessing?ne.timestamp:performance.now()}};function yc(e){let t=0,r=50,o=e.next(t);for(;!o.done&&t<2e4;)t+=r,o=e.next(t);return t>=2e4?1/0:t}var yP={decay:gc,inertia:gc,tween:_n,keyframes:_n,spring:La};function lr(m){var v=m,{autoplay:e=!0,delay:t=0,driver:r=eh,keyframes:o,type:n="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:f}=v,p=P(v,["autoplay","delay","driver","keyframes","type","repeat","repeatDelay","repeatType","onPlay","onStop","onComplete","onUpdate"]);let y=1,x=!1,w,S,C=()=>{S=new Promise(oe=>{w=oe;});};C();let k,$=yP[n]||_n,L;$!==_n&&typeof o[0]!="number"&&(L=Aa([0,100],o,{clamp:!1}),o=[0,100]);let R=$(b(d({},p),{keyframes:o})),O;s==="mirror"&&(O=$(b(d({},p),{keyframes:[...o].reverse(),velocity:-(p.velocity||0)})));let h="idle",I=null,B=null,_=null;R.calculatedDuration===null&&i&&(R.calculatedDuration=yc(R));let{calculatedDuration:F}=R,T=1/0,E=1/0;F!==null&&(T=F+a,E=T*(i+1)-a);let j=0,Oe=oe=>{if(B===null)return;y>0&&(B=Math.min(B,oe)),y<0&&(B=Math.min(oe-E/y,B)),I!==null?j=I:j=Math.round(oe-B)*y;let Vo=j-t*(y>=0?1:-1),Eu=y>=0?Vo<0:Vo>E;j=Math.max(Vo,0),h==="finished"&&I===null&&(j=E);let $u=j,_u=R;if(i){let zs=j/T,Yn=Math.floor(zs),Ht=zs%1;!Ht&&zs>=1&&(Ht=1),Ht===1&&Yn--,Yn=Math.min(Yn,i+1);let Mu=!!(Yn%2);Mu&&(s==="reverse"?(Ht=1-Ht,a&&(Ht-=a/T)):s==="mirror"&&(_u=O));let Ru=Te(0,1,Ht);j>E&&(Ru=s==="reverse"&&Mu?1:0),$u=Ru*T;}let No=Eu?{done:!1,value:o[0]}:_u.next($u);L&&(No.value=L(No.value));let{done:Au}=No;!Eu&&F!==null&&(Au=y>=0?j>=E:j<=0);let r0=I===null&&(h==="finished"||h==="running"&&Au);return f&&f(No.value),r0&&t0(),No},Do=()=>{k&&k.stop(),k=void 0;},Tu=()=>{h="idle",Do(),w(),C(),B=_=null;},t0=()=>{h="finished",u&&u(),Do(),w();},ku=()=>{if(x)return;k||(k=r(Oe));let oe=k.now();l&&l(),I!==null?B=oe-I:(!B||h==="finished")&&(B=oe),h==="finished"&&C(),_=B,I=null,h="running",k.start();};e&&ku();let Pu={then(oe,Vo){return S.then(oe,Vo)},get time(){return Re(j)},set time(oe){oe=Ne(oe),j=oe,I!==null||!k||y===0?I=oe:B=k.now()-oe/y;},get duration(){let oe=R.calculatedDuration===null?yc(R):R.calculatedDuration;return Re(oe)},get speed(){return y},set speed(oe){oe===y||!k||(y=oe,Pu.time=Re(j));},get state(){return h},play:ku,pause:()=>{h="paused",I=j;},stop:()=>{x=!0,h!=="idle"&&(h="idle",c&&c(),Tu());},cancel:()=>{_!==null&&Oe(_),Tu();},complete:()=>{h="finished";},sample:oe=>(B=0,Oe(oe))};return Pu}function th(e){let t;return ()=>(t===void 0&&(t=e()),t)}var vP=th(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),bP=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Oa=10,xP=2e4,SP=(e,t)=>t.type==="spring"||e==="backgroundColor"||!nc(t.ease);function rh(e,t,i){var a=i,{onUpdate:r,onComplete:o}=a,n=P(a,["onUpdate","onComplete"]);if(!(vP()&&bP.has(t)&&!n.repeatDelay&&n.repeatType!=="mirror"&&n.damping!==0&&n.type!=="inertia"))return !1;let l=!1,c,u,f=()=>{u=new Promise(k=>{c=k;});};f();let{keyframes:p,duration:m=300,ease:v,times:y}=n;if(SP(t,n)){let k=lr(b(d({},n),{repeat:0,delay:0})),$={done:!1,value:p[0]},L=[],R=0;for(;!$.done&&R<xP;)$=k.sample(R),L.push($.value),R+=Oa;y=void 0,p=L,m=R-Oa,v="linear";}let x=Em(e.owner.current,t,p,b(d({},n),{duration:m,ease:v,times:y}));n.syncStart&&(x.startTime=ne.isProcessing?ne.timestamp:document.timeline?document.timeline.currentTime:performance.now());let w=()=>x.cancel(),S=()=>{z.update(w),c(),f();};return x.onfinish=()=>{e.set($m(p,n)),o&&o(),S();},{then(k,$){return u.then(k,$)},attachTimeline(k){return x.timeline=k,x.onfinish=null,H},get time(){return Re(x.currentTime||0)},set time(k){x.currentTime=Ne(k);},get speed(){return x.playbackRate},set speed(k){x.playbackRate=k;},get duration(){return Re(m)},play:()=>{l||(x.play(),Pe(w));},pause:()=>x.pause(),stop:()=>{if(l=!0,x.playState==="idle")return;let{currentTime:k}=x;if(k){let $=lr(b(d({},n),{autoplay:!1}));e.setWithVelocity($.sample(k-Oa).value,$.sample(k).value,Oa);}S();},complete:()=>x.finish(),cancel:S}}function oh({keyframes:e,delay:t,onUpdate:r,onComplete:o}){let n=()=>(r&&r(e[e.length-1]),o&&o(),{time:0,speed:1,duration:0,play:H,pause:H,stop:H,then:i=>(i(),Promise.resolve()),cancel:H,complete:H});return t?lr({keyframes:[0,1],duration:0,delay:t,onComplete:n}):n()}var wP={type:"spring",stiffness:500,damping:25,restSpeed:10},CP=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),TP={type:"keyframes",duration:.8},kP={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nh=(e,{keyframes:t})=>t.length>2?TP:$e.has(e)?e.startsWith("scale")?CP(t[1]):wP:kP;var An=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ee.test(t)||t==="0")&&!t.startsWith("url("));var PP=new Set(["brightness","contrast","saturate","opacity"]);function EP(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[o]=r.match(ir)||[];if(!o)return e;let n=r.replace(o,""),i=PP.has(t)?1:0;return o!==r&&(i*=100),t+"("+i+n+")"}var $P=/([a-z-]*)\(.*?\)/g,Mn=b(d({},Ee),{getAnimatableNone:e=>{let t=e.match($P);return t?t.map(EP).join(" "):e}});var _P=b(d({},la),{color:se,backgroundColor:se,outlineColor:se,fill:se,stroke:se,borderColor:se,borderTopColor:se,borderRightColor:se,borderBottomColor:se,borderLeftColor:se,filter:Mn,WebkitFilter:Mn}),to=e=>_P[e];function Da(e,t){let r=to(e);return r!==Mn&&(r=Ee),r.getAnimatableNone?r.getAnimatableNone(t):void 0}var Va=e=>/^0[^.\s]+$/.test(e);function ih(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Va(e)}function ah(e,t,r,o){let n=An(t,r),i;Array.isArray(r)?i=[...r]:i=[null,r];let a=o.from!==void 0?o.from:e.get(),s,l=[];for(let c=0;c<i.length;c++)i[c]===null&&(i[c]=c===0?a:i[c-1]),ih(i[c])&&l.push(c),typeof i[c]=="string"&&i[c]!=="none"&&i[c]!=="0"&&(s=i[c]);if(n&&l.length&&s)for(let c=0;c<l.length;c++){let u=l[c];i[u]=Da(t,s);}return i}function sh(f){var p=f,u=P(p,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);return !!Object.keys(u).length}function Na(e,t){return e[t]||e.default||e}var ro=(e,t,r,o={})=>n=>{let i=Na(o,e)||{},a=i.delay||o.delay||0,{elapsed:s=0}=o;s=s-Ne(a);let l=ah(t,e,r,i),c=l[0],u=l[l.length-1],f=An(e,c),p=An(e,u);let m=b(d({keyframes:l,velocity:t.getVelocity(),ease:"easeOut"},i),{delay:-s,onUpdate:v=>{t.set(v),i.onUpdate&&i.onUpdate(v);},onComplete:()=>{n(),i.onComplete&&i.onComplete();}});if(sh(i)||(m=d(d({},m),nh(e,m))),m.duration&&(m.duration=Ne(m.duration)),m.repeatDelay&&(m.repeatDelay=Ne(m.repeatDelay)),!f||!p||rc.current||i.type===!1)return oh(m);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){let v=rh(t,e,m);if(v)return v}return lr(m)};function cr(e){return !!(te(e)&&e.add)}var Ba=e=>/^\-?\d*\.?\d+$/.test(e);function oo(e,t){e.indexOf(t)===-1&&e.push(t);}function no(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1);}var Ft=class{constructor(){this.subscriptions=[];}add(t){return oo(this.subscriptions,t),()=>no(this.subscriptions,t)}notify(t,r,o){let n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](t,r,o);else for(let i=0;i<n;i++){let a=this.subscriptions[i];a&&a(t,r,o);}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0;}};var AP=e=>!isNaN(parseFloat(e)),vc=class{constructor(t,r={}){this.version="10.16.5",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(o,n=!0)=>{this.prev=this.current,this.current=o;let{delta:i,timestamp:a}=ne;this.lastUpdated!==a&&(this.timeDelta=i,this.lastUpdated=a,z.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),n&&this.events.renderRequest&&this.events.renderRequest.notify(this.current);},this.scheduleVelocityCheck=()=>z.postRender(this.velocityCheck),this.velocityCheck=({timestamp:o})=>{o!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()));},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=AP(this.current),this.owner=r.owner;}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Ft);let o=this.events[t].add(r);return t==="change"?()=>{o(),z.read(()=>{this.events.change.getSize()||this.stop();});}:o}clearListeners(){for(let 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,o){this.set(r),this.prev=t,this.timeDelta=o;}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect();}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Ma(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify();}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation();})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation();}isAnimating(){return !!this.animation}clearAnimation(){delete this.animation;}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect();}};function it(e,t){return new vc(e,t)}var ja=e=>t=>t.test(e);var ch={test:e=>e==="auto",parse:e=>e};var bc=[Ke,V,ke,ot,Zp,Xp,ch],io=e=>bc.find(ja(e));var MP=[...bc,se,Ee],uh=e=>MP.find(ja(e));function RP(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,it(r));}function fh(e,t){let r=Bt(e,t),a=r?e.makeTargetAnimatable(r,!1):{},{transitionEnd:o={},transition:n={}}=a,i=P(a,["transitionEnd","transition"]);i=d(d({},i),o);for(let s in i){let l=fm(i[s]);RP(e,s,l);}}function dh(e,t,r){var o,n;let i=Object.keys(t).filter(s=>!e.hasValue(s)),a=i.length;if(a)for(let s=0;s<a;s++){let l=i[s],c=t[l],u=null;Array.isArray(c)&&(u=c[0]),u===null&&(u=(n=(o=r[l])!==null&&o!==void 0?o:e.readValue(l))!==null&&n!==void 0?n:t[l]),u!=null&&(typeof u=="string"&&(Ba(u)||Va(u))?u=parseFloat(u):!uh(u)&&Ee.test(c)&&(u=Da(l,c)),e.addValue(l,it(u,{owner:e})),r[l]===void 0&&(r[l]=u),u!==null&&e.setBaseTarget(l,u));}}function IP(e,t){return t?(t[e]||t.default||t).from:void 0}function ph(e,t,r){let o={};for(let n in e){let i=IP(n,t);if(i!==void 0)o[n]=i;else {let a=r.getValue(n);a&&(o[n]=a.get());}}return o}function LP({protectedKeys:e,needsAnimating:t},r){let o=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,o}function za(e,t,{delay:r=0,transitionOverride:o,type:n}={}){let f=e.makeTargetAnimatable(t),{transition:i=e.getDefaultTransition(),transitionEnd:a}=f,s=P(f,["transition","transitionEnd"]),l=e.getValue("willChange");o&&(i=o);let c=[],u=n&&e.animationState&&e.animationState.getState()[n];for(let p in s){let m=e.getValue(p),v=s[p];if(!m||v===void 0||u&&LP(u,p))continue;let y=d({delay:r,elapsed:0},i);if(window.HandoffAppearAnimations&&!m.hasAnimated){let w=e.getProps()[km];w&&(y.elapsed=window.HandoffAppearAnimations(w,p,m,z),y.syncStart=!0);}m.start(ro(p,m,v,e.shouldReduceMotion&&$e.has(p)?{type:!1}:y));let x=m.animation;cr(l)&&(l.add(p),x.then(()=>l.remove(p))),c.push(x);}return a&&Promise.all(c).then(()=>{a&&fh(e,a);}),c}function Fa(e,t,r={}){let o=Bt(e,t,r.custom),{transition:n=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(n=r.transitionOverride);let i=o?()=>Promise.all(za(e,o,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{let{delayChildren:c=0,staggerChildren:u,staggerDirection:f}=n;return OP(e,t,c+l,u,f,r)}:()=>Promise.resolve(),{when:s}=n;if(s){let[l,c]=s==="beforeChildren"?[i,a]:[a,i];return l().then(()=>c())}else return Promise.all([i(),a(r.delay)])}function OP(e,t,r=0,o=0,n=1,i){let a=[],s=(e.variantChildren.size-1)*o,l=n===1?(c=0)=>c*o:(c=0)=>s-c*o;return Array.from(e.variantChildren).sort(DP).forEach((c,u)=>{c.notify("AnimationStart",t),a.push(Fa(c,t,b(d({},i),{delay:r+l(u)})).then(()=>c.notify("AnimationComplete",t)));}),Promise.all(a)}function DP(e,t){return e.sortNodePosition(t)}function mh(e,t,r={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){let n=t.map(i=>Fa(e,i,r));o=Promise.all(n);}else if(typeof t=="string")o=Fa(e,t,r);else {let n=typeof t=="function"?Bt(e,t,r.custom):t;o=Promise.all(za(e,n,r));}return o.then(()=>e.notify("AnimationComplete",t))}var VP=[...ta].reverse(),NP=ta.length;function BP(e){return t=>Promise.all(t.map(({animation:r,options:o})=>mh(e,r,o)))}function hh(e){let t=BP(e),r=zP(),o=!0,n=(l,c)=>{let u=Bt(e,c);if(u){let f=u,{transition:p,transitionEnd:m}=f,v=P(f,["transition","transitionEnd"]);l=d(d(d({},l),v),m);}return l};function i(l){t=l(e);}function a(l,c){let u=e.getProps(),f=e.getVariantContext(!0)||{},p=[],m=new Set,v={},y=1/0;for(let w=0;w<NP;w++){let S=VP[w],C=r[S],k=u[S]!==void 0?u[S]:f[S],$=ht(k),L=S===c?C.isActive:null;L===!1&&(y=w);let R=k===f[S]&&k!==u[S]&&$;if(R&&o&&e.manuallyAnimateOnMount&&(R=!1),C.protectedKeys=d({},v),!C.isActive&&L===null||!k&&!C.prevProp||Ot(k)||typeof k=="boolean")continue;let O=jP(C.prevProp,k),h=O||S===c&&C.isActive&&!R&&$||w>y&&$,I=Array.isArray(k)?k:[k],B=I.reduce(n,{});L===!1&&(B={});let{prevResolvedValues:_={}}=C,F=d(d({},_),B),T=E=>{h=!0,m.delete(E),C.needsAnimating[E]=!0;};for(let E in F){let j=B[E],Oe=_[E];v.hasOwnProperty(E)||(j!==Oe?ar(j)&&ar(Oe)?!tc(j,Oe)||O?T(E):C.protectedKeys[E]=!0:j!==void 0?T(E):m.add(E):j!==void 0&&m.has(E)?T(E):C.protectedKeys[E]=!0);}C.prevProp=k,C.prevResolvedValues=B,C.isActive&&(v=d(d({},v),B)),o&&e.blockInitialAnimation&&(h=!1),h&&!R&&p.push(...I.map(E=>({animation:E,options:d({type:S},l)})));}if(m.size){let w={};m.forEach(S=>{let C=e.getBaseTarget(S);C!==void 0&&(w[S]=C);}),p.push({animation:w});}let x=!!p.length;return o&&u.initial===!1&&!e.manuallyAnimateOnMount&&(x=!1),o=!1,x?t(p):Promise.resolve()}function s(l,c,u){var f;if(r[l].isActive===c)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(m=>{var v;return (v=m.animationState)===null||v===void 0?void 0:v.setActive(l,c)}),r[l].isActive=c;let p=a(u,l);for(let m in r)r[m].protectedKeys={};return p}return {animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>r}}function jP(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!tc(t,e):!1}function ur(e=!1){return {isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function zP(){return {animate:ur(!0),whileInView:ur(),whileHover:ur(),whileTap:ur(),whileDrag:ur(),whileFocus:ur(),exit:ur()}}var Wa=class extends fe{constructor(t){super(t),t.animationState||(t.animationState=hh(t));}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),Ot(t)&&(this.unmount=t.subscribe(this.node));}mount(){this.updateAnimationControlsSubscription();}update(){let{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription();}unmount(){}};var FP=0,Ha=class extends fe{constructor(){super(...arguments),this.id=FP++;}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:r,custom:o}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;let i=this.node.animationState.setActive("exit",!t,{custom:o!=null?o:this.node.getProps().custom});r&&!t&&i.then(()=>r(this.id));}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id));}unmount(){}};var gh={animation:{Feature:Wa},exit:{Feature:Ha}};var yh=(e,t)=>Math.abs(e-t);function vh(e,t){let r=yh(e.x,t.x),o=yh(e.y,t.y);return Math.sqrt(jo(r,2)+jo(o,2))}var ao=class{constructor(t,r,{transformPagePoint:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let c=Sc(this.lastMoveEventInfo,this.history),u=this.startEvent!==null,f=vh(c.offset,{x:0,y:0})>=3;if(!u&&!f)return;let{point:p}=c,{timestamp:m}=ne;this.history.push(b(d({},p),{timestamp:m}));let{onStart:v,onMove:y}=this.handlers;u||(v&&v(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,c);},this.handlePointerMove=(c,u)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=xc(u,this.transformPagePoint),z.update(this.updatePoint,!0);},this.handlePointerUp=(c,u)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let{onEnd:f,onSessionEnd:p}=this.handlers,m=Sc(c.type==="pointercancel"?this.lastMoveEventInfo:xc(u,this.transformPagePoint),this.history);this.startEvent&&f&&f(c,m),p&&p(c,m);},!ba(t))return;this.handlers=r,this.transformPagePoint=o;let n=sr(t),i=xc(n,this.transformPagePoint),{point:a}=i,{timestamp:s}=ne;this.history=[b(d({},a),{timestamp:s})];let{onSessionStart:l}=r;l&&l(t,Sc(i,this.history)),this.removeListeners=Me(Ae(window,"pointermove",this.handlePointerMove),Ae(window,"pointerup",this.handlePointerUp),Ae(window,"pointercancel",this.handlePointerUp));}updateHandlers(t){this.handlers=t;}end(){this.removeListeners&&this.removeListeners(),Pe(this.updatePoint);}};function xc(e,t){return t?{point:t(e.point)}:e}function bh(e,t){return {x:e.x-t.x,y:e.y-t.y}}function Sc({point:e},t){return {point:e,delta:bh(e,xh(t)),offset:bh(e,WP(t)),velocity:HP(t,.1)}}function WP(e){return e[0]}function xh(e){return e[e.length-1]}function HP(e,t){if(e.length<2)return {x:0,y:0};let r=e.length-1,o=null,n=xh(e);for(;r>=0&&(o=e[r],!(n.timestamp-o.timestamp>Ne(t)));)r--;if(!o)return {x:0,y:0};let i=Re(n.timestamp-o.timestamp);if(i===0)return {x:0,y:0};let a={x:(n.x-o.x)/i,y:(n.y-o.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function ge(e){return e.max-e.min}function Ka(e,t=0,r=.01){return Math.abs(e-t)<=r}function Sh(e,t,r,o=.5){e.origin=o,e.originPoint=K(t.min,t.max,e.origin),e.scale=ge(r)/ge(t),(Ka(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=K(r.min,r.max,e.origin)-e.originPoint,(Ka(e.translate)||isNaN(e.translate))&&(e.translate=0);}function so(e,t,r,o){Sh(e.x,t.x,r.x,o?o.originX:void 0),Sh(e.y,t.y,r.y,o?o.originY:void 0);}function wh(e,t,r){e.min=r.min+t.min,e.max=e.min+ge(t);}function Th(e,t,r){wh(e.x,t.x,r.x),wh(e.y,t.y,r.y);}function Ch(e,t,r){e.min=t.min-r.min,e.max=e.min+ge(t);}function lo(e,t,r){Ch(e.x,t.x,r.x),Ch(e.y,t.y,r.y);}function _h(e,{min:t,max:r},o){return t!==void 0&&e<t?e=o?K(t,e,o.min):Math.max(e,t):r!==void 0&&e>r&&(e=o?K(r,e,o.max):Math.min(e,r)),e}function kh(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 Ah(e,{top:t,left:r,bottom:o,right:n}){return {x:kh(e.x,r,n),y:kh(e.y,t,o)}}function Ph(e,t){let r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,o]=[o,r]),{min:r,max:o}}function Mh(e,t){return {x:Ph(e.x,t.x),y:Ph(e.y,t.y)}}function Rh(e,t){let r=.5,o=ge(e),n=ge(t);return n>o?r=yt(t.min,t.max-o,e.min):o>n&&(r=yt(e.min,e.max-n,t.min)),Te(0,1,r)}function Ih(e,t){let r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}var Ga=.35;function Lh(e=Ga){return e===!1?e=0:e===!0&&(e=Ga),{x:Eh(e,"left","right"),y:Eh(e,"top","bottom")}}function Eh(e,t,r){return {min:$h(e,t),max:$h(e,r)}}function $h(e,t){return typeof e=="number"?e:e[t]||0}var Oh=()=>({translate:0,scale:1,origin:0,originPoint:0}),fr=()=>({x:Oh(),y:Oh()}),Dh=()=>({min:0,max:0}),re=()=>({x:Dh(),y:Dh()});function Ge(e){return [e("x"),e("y")]}function Ua({top:e,left:t,right:r,bottom:o}){return {x:{min:t,max:r},y:{min:e,max:o}}}function Vh({x:e,y:t}){return {top:t.min,right:e.max,bottom:t.max,left:e.min}}function Nh(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return {top:r.y,left:r.x,bottom:o.y,right:o.x}}function wc(e){return e===void 0||e===1}function Ya({scale:e,scaleX:t,scaleY:r}){return !wc(e)||!wc(t)||!wc(r)}function vt(e){return Ya(e)||Cc(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Cc(e){return Bh(e.x)||Bh(e.y)}function Bh(e){return e&&e!=="0%"}function Rn(e,t,r){let o=e-r,n=t*o;return r+n}function jh(e,t,r,o,n){return n!==void 0&&(e=Rn(e,n,o)),Rn(e,r,o)+t}function Tc(e,t=0,r=1,o,n){e.min=jh(e.min,t,r,o,n),e.max=jh(e.max,t,r,o,n);}function kc(e,{x:t,y:r}){Tc(e.x,t.translate,t.scale,t.originPoint),Tc(e.y,r.translate,r.scale,r.originPoint);}function Wh(e,t,r,o=!1){let n=r.length;if(!n)return;t.x=t.y=1;let i,a;for(let s=0;s<n;s++){i=r[s],a=i.projectionDelta;let l=i.instance;l&&l.style&&l.style.display==="contents"||(o&&i.options.layoutScroll&&i.scroll&&i!==i.root&&dr(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,kc(e,a)),o&&vt(i.latestValues)&&dr(e,i.latestValues));}t.x=zh(t.x),t.y=zh(t.y);}function zh(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function at(e,t){e.min=e.min+t,e.max=e.max+t;}function Fh(e,t,[r,o,n]){let i=t[n]!==void 0?t[n]:.5,a=K(e.min,e.max,i);Tc(e,t[r],t[o],a,t.scale);}var KP=["x","scaleX","originX"],GP=["y","scaleY","originY"];function dr(e,t){Fh(e.x,t,KP),Fh(e.y,t,GP);}function Pc(e,t){return Ua(Nh(e.getBoundingClientRect(),t))}function Hh(e,t,r){let o=Pc(e,r),{scroll:n}=t;return n&&(at(o.x,n.offset.x),at(o.y,n.offset.y)),o}var UP=new WeakMap,Xa=class{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=re(),this.visualElement=t;}start(t,{snapToCursor:r=!1}={}){let{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;let n=l=>{this.stopAnimation(),r&&this.snapToCursor(sr(l,"page").point);},i=(l,c)=>{let{drag:u,dragPropagation:f,onDragStart:p}=this.getProps();if(u&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Xl(u),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ge(v=>{let y=this.getAxisMotionValue(v).get()||0;if(ke.test(y)){let{projection:x}=this.visualElement;if(x&&x.layout){let w=x.layout.layoutBox[v];w&&(y=ge(w)*(parseFloat(y)/100));}}this.originPoint[v]=y;}),p&&z.update(()=>p(l,c),!1,!0);let{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0);},a=(l,c)=>{let{dragPropagation:u,dragDirectionLock:f,onDirectionLock:p,onDrag:m}=this.getProps();if(!u&&!this.openGlobalLock)return;let{offset:v}=c;if(f&&this.currentDirection===null){this.currentDirection=YP(v),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",c.point,v),this.updateAxis("y",c.point,v),this.visualElement.render(),m&&m(l,c);},s=(l,c)=>this.stop(l,c);this.panSession=new ao(t,{onSessionStart:n,onStart:i,onMove:a,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()});}stop(t,r){let o=this.isDragging;if(this.cancel(),!o)return;let{velocity:n}=r;this.startAnimation(n);let{onDragEnd:i}=this.getProps();i&&z.update(()=>i(t,r));}cancel(){this.isDragging=!1;let{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:o}=this.getProps();!o&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1);}updateAxis(t,r,o){let{drag:n}=this.getProps();if(!o||!qa(t,n,this.currentDirection))return;let i=this.getAxisMotionValue(t),a=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(a=_h(a,this.constraints[t],this.elastic[t])),i.set(a);}resolveConstraints(){let{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:o}=this.visualElement.projection||{},n=this.constraints;t&&mt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&o?this.constraints=Ah(o.layoutBox,t):this.constraints=!1,this.elastic=Lh(r),n!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ge(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=Ih(o.layoutBox[i],this.constraints[i]));});}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!mt(t))return !1;let o=t.current;let{projection:n}=this.visualElement;if(!n||!n.layout)return !1;let i=Hh(o,n.root,this.visualElement.getTransformPagePoint()),a=Mh(n.layout.layoutBox,i);if(r){let s=r(Vh(a));this.hasMutatedConstraints=!!s,s&&(a=Ua(s));}return a}startAnimation(t){let{drag:r,dragMomentum:o,dragElastic:n,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=Ge(u=>{if(!qa(u,r,this.currentDirection))return;let f=l&&l[u]||{};a&&(f={min:0,max:0});let p=n?200:1e6,m=n?40:1e7,v=d(d({type:"inertia",velocity:o?t[u]:0,bounceStiffness:p,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10},i),f);return this.startAxisValueAnimation(u,v)});return Promise.all(c).then(s)}startAxisValueAnimation(t,r){let o=this.getAxisMotionValue(t);return o.start(ro(t,o,0,r))}stopAnimation(){Ge(t=>this.getAxisMotionValue(t).stop());}getAxisMotionValue(t){let r="_drag"+t.toUpperCase(),o=this.visualElement.getProps(),n=o[r];return n||this.visualElement.getValue(t,(o.initial?o.initial[t]:void 0)||0)}snapToCursor(t){Ge(r=>{let{drag:o}=this.getProps();if(!qa(r,o,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(r);if(n&&n.layout){let{min:a,max:s}=n.layout.layoutBox[r];i.set(t[r]-K(a,s,.5));}});}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:r}=this.getProps(),{projection:o}=this.visualElement;if(!mt(r)||!o||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};Ge(a=>{let s=this.getAxisMotionValue(a);if(s){let l=s.get();n[a]=Rh({min:l,max:l},this.constraints[a]);}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),Ge(a=>{if(!qa(a,t,null))return;let s=this.getAxisMotionValue(a),{min:l,max:c}=this.constraints[a];s.set(K(l,c,n[a]));});}addListeners(){if(!this.visualElement.current)return;UP.set(this.visualElement,this);let t=this.visualElement.current,r=Ae(t,"pointerdown",l=>{let{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l);}),o=()=>{let{dragConstraints:l}=this.getProps();mt(l)&&(this.constraints=this.resolveRefConstraints());},{projection:n}=this.visualElement,i=n.addEventListener("measure",o);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),o();let a=_e(window,"resize",()=>this.scalePositionWithinConstraints()),s=n.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Ge(u=>{let f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=l[u].translate,f.set(f.get()+l[u].translate));}),this.visualElement.render());});return ()=>{a(),r(),i(),s&&s();}}getProps(){let t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:o=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:a=Ga,dragMomentum:s=!0}=t;return b(d({},t),{drag:r,dragDirectionLock:o,dragPropagation:n,dragConstraints:i,dragElastic:a,dragMomentum:s})}};function qa(e,t,r){return (t===!0||t===e)&&(r===null||r===e)}function YP(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}var Za=class extends fe{constructor(t){super(t),this.removeGroupControls=H,this.removeListeners=H,this.controls=new Xa(t);}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||H;}unmount(){this.removeGroupControls(),this.removeListeners();}};var Kh=e=>(t,r)=>{e&&z.update(()=>e(t,r));},Ja=class extends fe{constructor(){super(...arguments),this.removePointerDownListener=H;}onPointerDown(t){this.session=new ao(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()});}createPanHandlers(){let{onPanSessionStart:t,onPanStart:r,onPan:o,onPanEnd:n}=this.node.getProps();return {onSessionStart:Kh(t),onStart:Kh(r),onMove:o,onEnd:(i,a)=>{delete this.session,n&&z.update(()=>n(i,a));}}}mount(){this.removePointerDownListener=Ae(this.node.current,"pointerdown",t=>this.onPointerDown(t));}update(){this.session&&this.session.updateHandlers(this.createPanHandlers());}unmount(){this.removePointerDownListener(),this.session&&this.session.end();}};function Gh(){let e=useContext(It);if(e===null)return [!0,null];let{isPresent:t,onExitComplete:r,register:o}=e,n=useId$1();return useEffect(()=>o(n),[]),!t&&r?[!1,()=>r&&r(n)]:[!0]}var co={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Uh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var uo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;let r=Uh(e,t.target.x),o=Uh(e,t.target.y);return `${r}% ${o}%`}};var Yh={correct:(e,{treeScale:t,projectionDelta:r})=>{let o=e,n=Ee.parse(e);if(n.length>5)return o;let i=Ee.createTransformer(e),a=typeof n[0]!="number"?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;n[0+a]/=s,n[1+a]/=l;let c=K(s,l,.5);return typeof n[2+a]=="number"&&(n[2+a]/=c),typeof n[3+a]=="number"&&(n[3+a]/=c),i(n)}};var Ec=class extends bt__default.Component{componentDidMount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:o,layoutId:n}=this.props,{projection:i}=t;Hp(JP),i&&(r.group&&r.group.add(i),o&&o.register&&n&&o.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove();}),i.setOptions(b(d({},i.options),{onExitComplete:()=>this.safeToRemove()}))),co.hasEverUpdated=!0;}getSnapshotBeforeUpdate(t){let{layoutDependency:r,visualElement:o,drag:n,isPresent:i}=this.props,a=o.projection;return a&&(a.isPresent=i,n||t.layoutDependency!==r||r===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||z.postRender(()=>{let s=a.getStack();(!s||!s.members.length)&&this.safeToRemove();}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove();}));}componentWillUnmount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:o}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(n),o&&o.deregister&&o.deregister(n));}safeToRemove(){let{safeToRemove:t}=this.props;t&&t();}render(){return null}};function Qa(e){let[t,r]=Gh(),o=useContext(Fr);return bt__default.createElement(Ec,b(d({},e),{layoutGroup:o,switchLayoutGroup:useContext(oa),isPresent:t,safeToRemove:r}))}var JP={borderRadius:b(d({},uo),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:uo,borderTopRightRadius:uo,borderBottomLeftRadius:uo,borderBottomRightRadius:uo,boxShadow:Yh};var eg=["TopLeft","TopRight","BottomLeft","BottomRight"],QP=eg.length,Zh=e=>typeof e=="string"?parseFloat(e):e,Jh=e=>typeof e=="number"||V.test(e);function tg(e,t,r,o,n,i){n?(e.opacity=K(0,r.opacity!==void 0?r.opacity:1,e2(o)),e.opacityExit=K(t.opacity!==void 0?t.opacity:1,0,t2(o))):i&&(e.opacity=K(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,o));for(let a=0;a<QP;a++){let s=`border${eg[a]}Radius`,l=Qh(t,s),c=Qh(r,s);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Jh(l)===Jh(c)?(e[s]=Math.max(K(Zh(l),Zh(c),o),0),(ke.test(c)||ke.test(l))&&(e[s]+="%")):e[s]=c;}(t.rotate||r.rotate)&&(e.rotate=K(t.rotate||0,r.rotate||0,o));}function Qh(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var e2=rg(0,.5,kn),t2=rg(.5,.95,H);function rg(e,t,r){return o=>o<e?0:o>t?1:r(yt(e,t,o))}function og(e,t){e.min=t.min,e.max=t.max;}function Be(e,t){og(e.x,t.x),og(e.y,t.y);}function ng(e,t,r,o,n){return e-=t,e=Rn(e,1/r,o),n!==void 0&&(e=Rn(e,1/n,o)),e}function r2(e,t=0,r=1,o=.5,n,i=e,a=e){if(ke.test(t)&&(t=parseFloat(t),t=K(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=K(i.min,i.max,o);e===i&&(s-=t),e.min=ng(e.min,t,r,s,n),e.max=ng(e.max,t,r,s,n);}function ig(e,t,[r,o,n],i,a){r2(e,t[r],t[o],t[n],t.scale,i,a);}var o2=["x","scaleX","originX"],n2=["y","scaleY","originY"];function $c(e,t,r,o){ig(e.x,t,o2,r?r.x:void 0,o?o.x:void 0),ig(e.y,t,n2,r?r.y:void 0,o?o.y:void 0);}function ag(e){return e.translate===0&&e.scale===1}function _c(e){return ag(e.x)&&ag(e.y)}function sg(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Ac(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Mc(e){return ge(e.x)/ge(e.y)}var es=class{constructor(){this.members=[];}add(t){oo(this.members,t),t.scheduleRender();}remove(t){if(no(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let r=this.members[this.members.length-1];r&&this.promote(r);}}relegate(t){let r=this.members.findIndex(n=>t===n);if(r===0)return !1;let o;for(let n=r;n>=0;n--){let i=this.members[n];if(i.isPresent!==!1){o=i;break}}return o?(this.promote(o),!0):!1}promote(t,r){let o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,r&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;n===!1&&o.hide();}}exitAnimationComplete(){this.members.forEach(t=>{let{options:r,resumingFrom:o}=t;r.onExitComplete&&r.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete();});}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1);});}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0);}};function Rc(e,t,r){let o="",n=e.x.translate/t.x,i=e.y.translate/t.y;if((n||i)&&(o=`translate3d(${n}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),r){let{rotate:l,rotateX:c,rotateY:u}=r;l&&(o+=`rotate(${l}deg) `),c&&(o+=`rotateX(${c}deg) `),u&&(o+=`rotateY(${u}deg) `);}let a=e.x.scale*t.x,s=e.y.scale*t.y;return (a!==1||s!==1)&&(o+=`scale(${a}, ${s})`),o||"none"}var lg=(e,t)=>e.depth-t.depth;var ts=class{constructor(){this.children=[],this.isDirty=!1;}add(t){oo(this.children,t),this.isDirty=!0;}remove(t){no(this.children,t),this.isDirty=!0;}forEach(t){this.isDirty&&this.children.sort(lg),this.isDirty=!1,this.children.forEach(t);}};function cg(e,t){let r=performance.now(),o=({timestamp:n})=>{let i=n-r;i>=t&&(Pe(o),e(i-t));};return z.read(o,!0),()=>Pe(o)}function ug(e){window.MotionDebug&&window.MotionDebug.record(e);}function fg(e){return e instanceof SVGElement&&e.tagName!=="svg"}function dg(e,t,r){let o=te(e)?e:it(e);return o.start(ro("",o,t,r)),o.animation}var pg=["","X","Y","Z"],mg=1e3,i2=0,pr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function rs({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:o,resetTransform:n}){return class{constructor(a={},s=t==null?void 0:t()){this.id=i2++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots());},this.updateProjection=()=>{pr.totalNodes=pr.resolvedTargetDeltas=pr.recalculatedProjection=0,this.nodes.forEach(l2),this.nodes.forEach(p2),this.nodes.forEach(m2),this.nodes.forEach(c2),ug(pr);},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new ts);}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Ft),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){let l=this.eventHandlers.get(a);l&&l.notify(...s);}hasListeners(a){return this.eventHandlers.has(a)}mount(a,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=fg(a),this.instance=a;let{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(c||l)&&(this.isLayoutDirty=!0),e){let f,p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=cg(p,250),co.hasAnimatedSinceResize&&(co.hasAnimatedSinceResize=!1,this.nodes.forEach(gg));});}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:m,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let y=this.options.transition||u.getDefaultTransition()||b2,{onLayoutAnimationStart:x,onLayoutAnimationComplete:w}=u.getProps(),S=!this.targetLayout||!Ac(this.targetLayout,v)||m,C=!p&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||C||p&&(S||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,C);let k=b(d({},Na(y,"layout")),{onPlay:x,onComplete:w});(u.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k);}else p||gg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v;});}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Pe(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(h2),this.animationId++);}getTransformTemplate(){let{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){let f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1);}let{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;let c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate");}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(hg);return}this.isUpdating||this.nodes.forEach(f2),this.isUpdating=!1,this.nodes.forEach(d2),this.nodes.forEach(a2),this.nodes.forEach(s2),this.clearAllSnapshots();let s=performance.now();ne.delta=Te(0,1e3/60,s-ne.timestamp),ne.timestamp=s,ne.isProcessing=!0,va.update.process(ne),va.preRender.process(ne),va.render.process(ne),ne.isProcessing=!1;}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()));}clearAllSnapshots(){this.nodes.forEach(u2),this.sharedNodes.forEach(g2);}scheduleUpdateProjection(){z.preRender(this.updateProjection,!1,!0);}scheduleCheckAfterUnmount(){z.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed();});}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure());}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();let a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=re(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0);}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:o(this.instance),offset:r(this.instance)});}resetTransform(){if(!n)return;let a=this.isLayoutDirty||this.shouldResetTransform,s=this.projectionDelta&&!_c(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;a&&(s||vt(this.latestValues)||u)&&(n(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender());}measure(a=!0){let s=this.measurePageBox(),l=this.removeElementScroll(s);return a&&(l=this.removeTransform(l)),x2(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:a}=this.options;if(!a)return re();let s=a.measureViewportBox(),{scroll:l}=this.root;return l&&(at(s.x,l.offset.x),at(s.y,l.offset.y)),s}removeElementScroll(a){let s=re();Be(s,a);for(let l=0;l<this.path.length;l++){let c=this.path[l],{scroll:u,options:f}=c;if(c!==this.root&&u&&f.layoutScroll){if(u.isRoot){Be(s,a);let{scroll:p}=this.root;p&&(at(s.x,-p.offset.x),at(s.y,-p.offset.y));}at(s.x,u.offset.x),at(s.y,u.offset.y);}}return s}applyTransform(a,s=!1){let l=re();Be(l,a);for(let c=0;c<this.path.length;c++){let u=this.path[c];!s&&u.options.layoutScroll&&u.scroll&&u!==u.root&&dr(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),vt(u.latestValues)&&dr(l,u.latestValues);}return vt(this.latestValues)&&dr(l,this.latestValues),l}removeTransform(a){let s=re();Be(s,a);for(let l=0;l<this.path.length;l++){let c=this.path[l];if(!c.instance||!vt(c.latestValues))continue;Ya(c.latestValues)&&c.updateSnapshot();let u=re(),f=c.measurePageBox();Be(u,f),$c(s,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u);}return vt(this.latestValues)&&$c(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0;}setOptions(a){this.options=b(d(d({},this.options),a),{crossfade:a.crossfade!==void 0?a.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!==ne.timestamp&&this.relativeParent.resolveTargetDelta(!0);}resolveTargetDelta(a=!1){var s;let l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);let c=!!this.resumingFrom||this!==l;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget))return;let{layout:f,layoutId:p}=this.options;if(!(!this.layout||!(f||p))){if(this.resolvedRelativeTargetAt=ne.timestamp,!this.targetDelta&&!this.relativeTarget){let m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=re(),this.relativeTargetOrigin=re(),lo(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),Be(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0;}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=re(),this.targetWithTransforms=re()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Th(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Be(this.target,this.layout.layoutBox),kc(this.target,this.targetDelta)):Be(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=re(),this.relativeTargetOrigin=re(),lo(this.relativeTargetOrigin,this.target,m.target),Be(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0;}pr.resolvedTargetDeltas++;}}}getClosestProjectingParent(){if(!(!this.parent||Ya(this.parent.latestValues)||Cc(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 a;let s=this.getLead(),l=!!this.resumingFrom||this!==s,c=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===ne.timestamp&&(c=!1),c)return;let{layout:u,layoutId:f}=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||f))return;Be(this.layoutCorrected,this.layout.layoutBox);let p=this.treeScale.x,m=this.treeScale.y;Wh(this.layoutCorrected,this.treeScale,this.path,l),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox);let{target:v}=s;if(!v){this.projectionTransform&&(this.projectionDelta=fr(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=fr(),this.projectionDeltaWithTransform=fr());let y=this.projectionTransform;so(this.projectionDelta,this.layoutCorrected,v,this.latestValues),this.projectionTransform=Rc(this.projectionDelta,this.treeScale),(this.projectionTransform!==y||this.treeScale.x!==p||this.treeScale.y!==m)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),pr.recalculatedProjection++;}hide(){this.isVisible=!1;}show(){this.isVisible=!0;}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){let s=this.getStack();s&&s.scheduleRender();}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0);}setAnimationOrigin(a,s=!1){let l=this.snapshot,c=l?l.latestValues:{},u=d({},this.latestValues),f=fr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;let p=re(),m=l?l.source:void 0,v=this.layout?this.layout.source:void 0,y=m!==v,x=this.getStack(),w=!x||x.members.length<=1,S=!!(y&&!w&&this.options.crossfade===!0&&!this.path.some(v2));this.animationProgress=0;let C;this.mixTargetDelta=k=>{let $=k/1e3;yg(f.x,a.x,$),yg(f.y,a.y,$),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(lo(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),y2(this.relativeTarget,this.relativeTargetOrigin,p,$),C&&sg(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=re()),Be(C,this.relativeTarget)),y&&(this.animationValues=u,tg(u,c,this.latestValues,$,S,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=$;},this.mixTargetDelta(this.options.layoutRoot?1e3:0);}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Pe(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=z.update(()=>{co.hasAnimatedSinceResize=!0,this.currentAnimation=dg(0,mg,b(d({},a),{onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s);},onComplete:()=>{a.onComplete&&a.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);let a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete");}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(mg),this.currentAnimation.stop()),this.completeAnimation();}applyTransformsToTarget(){let a=this.getLead(),{targetWithTransforms:s,target:l,layout:c,latestValues:u}=a;if(!(!s||!l||!c)){if(this!==a&&this.layout&&c&&wg(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||re();let f=ge(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+f;let p=ge(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+p;}Be(s,l),dr(s,u),so(this.projectionDeltaWithTransform,this.layoutCorrected,s,u);}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new es),this.sharedNodes.get(a).add(s);let c=s.options.initialPromotionConfig;s.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(s):void 0});}isLead(){let a=this.getStack();return a?a.lead===this:!0}getLead(){var a;let{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;let{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){let{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){let c=this.getStack();c&&c.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s});}relegate(){let a=this.getStack();return a?a.relegate(this):!1}resetRotation(){let{visualElement:a}=this.options;if(!a)return;let s=!1,{latestValues:l}=a;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(s=!0),!s)return;let c={};for(let u=0;u<pg.length;u++){let f="rotate"+pg[u];l[f]&&(c[f]=l[f],a.setStaticValue(f,0));}a.render();for(let u in c)a.setStaticValue(u,c[u]);a.scheduleRender();}getProjectionStyles(a={}){var s,l;let c={};if(!this.instance||this.isSVG)return c;if(this.isVisible)c.visibility="";else return {visibility:"hidden"};let u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Jr(a.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;let f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){let y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=Jr(a.pointerEvents)||""),this.hasProjected&&!vt(this.latestValues)&&(y.transform=u?u({},""):"none",this.hasProjected=!1),y}let p=f.animationValues||f.latestValues;this.applyTransformsToTarget(),c.transform=Rc(this.projectionDeltaWithTransform,this.treeScale,p),u&&(c.transform=u(p,c.transform));let{x:m,y:v}=this.projectionDelta;c.transformOrigin=`${m.origin*100}% ${v.origin*100}% 0`,f.animationValues?c.opacity=f===this?(l=(s=p.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:c.opacity=f===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(let y in Hr){if(p[y]===void 0)continue;let{correct:x,applyTo:w}=Hr[y],S=c.transform==="none"?p[y]:x(p[y],f);if(w){let C=w.length;for(let k=0;k<C;k++)c[w[k]]=S;}else c[y]=S;}return this.options.layoutId&&(c.pointerEvents=f===this?Jr(a.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0;}resetTree(){this.root.nodes.forEach(a=>{var s;return (s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(hg),this.root.sharedNodes.clear();}}}function a2(e){e.updateLayout();}function s2(e){var t;let r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){let{layoutBox:o,measuredBox:n}=e.layout,{animationType:i}=e.options,a=r.source!==e.layout.source;i==="size"?Ge(f=>{let p=a?r.measuredBox[f]:r.layoutBox[f],m=ge(p);p.min=o[f].min,p.max=p.min+m;}):wg(i,r.layoutBox,o)&&Ge(f=>{let p=a?r.measuredBox[f]:r.layoutBox[f],m=ge(o[f]);p.max=p.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+m);});let s=fr();so(s,o,r.layoutBox);let l=fr();a?so(l,e.applyTransform(n,!0),r.measuredBox):so(l,o,r.layoutBox);let c=!_c(s),u=!1;if(!e.resumeFrom){let f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){let{snapshot:p,layout:m}=f;if(p&&m){let v=re();lo(v,r.layoutBox,p.layoutBox);let y=re();lo(y,o,m.layoutBox),Ac(v,y)||(u=!0),f.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=v,e.relativeParent=f);}}}e.notifyListeners("didUpdate",{layout:o,snapshot:r,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeTargetChanged:u});}else if(e.isLead()){let{onExitComplete:o}=e.options;o&&o();}e.options.transition=void 0;}function l2(e){pr.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty));}function c2(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1;}function u2(e){e.clearSnapshot();}function hg(e){e.clearMeasurements();}function f2(e){e.isLayoutDirty=!1;}function d2(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform();}function gg(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0;}function p2(e){e.resolveTargetDelta();}function m2(e){e.calcProjection();}function h2(e){e.resetRotation();}function g2(e){e.removeLeadSnapshot();}function yg(e,t,r){e.translate=K(t.translate,0,r),e.scale=K(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint;}function vg(e,t,r,o){e.min=K(t.min,r.min,o),e.max=K(t.max,r.max,o);}function y2(e,t,r,o){vg(e.x,t.x,r.x,o),vg(e.y,t.y,r.y,o);}function v2(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var b2={duration:.45,ease:[.4,0,.1,1]},bg=e=>typeof navigator!="undefined"&&navigator.userAgent.toLowerCase().includes(e),xg=bg("applewebkit/")&&!bg("chrome/")?Math.round:H;function Sg(e){e.min=xg(e.min),e.max=xg(e.max);}function x2(e){Sg(e.x),Sg(e.y);}function wg(e,t,r){return e==="position"||e==="preserve-aspect"&&!Ka(Mc(t),Mc(r),.2)}var Cg=rs({attachResizeListener:(e,t)=>_e(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var Ic={current:void 0},os=rs({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ic.current){let e=new Cg({});e.mount(window),e.setOptions({layoutScroll:!0}),Ic.current=e;}return Ic.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none";},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var Tg={pan:{Feature:Ja},drag:{Feature:Za,ProjectionNode:os,MeasureLayout:Qa}};var S2=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function w2(e){let t=S2.exec(e);if(!t)return [,];let[,r,o]=t;return [r,o]}function Lc(e,t,r=1){let[o,n]=w2(e);if(!o)return;let i=window.getComputedStyle(t).getPropertyValue(o);if(i){let a=i.trim();return Ba(a)?parseFloat(a):a}else return sa(n)?Lc(n,t,r+1):n}function kg(e,o,r){var t=P(o,[]);let n=e.current;if(!(n instanceof Element))return {target:t,transitionEnd:r};r&&(r=d({},r)),e.values.forEach(i=>{let a=i.get();if(!sa(a))return;let s=Lc(a,n);s&&i.set(s);});for(let i in t){let a=t[i];if(!sa(a))continue;let s=Lc(a,n);s&&(t[i]=s,r||(r={}),r[i]===void 0&&(r[i]=a));}return {target:t,transitionEnd:r}}var T2=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),$g=e=>T2.has(e),k2=e=>Object.keys(e).some($g),ns=e=>e===Ke||e===V,Pg=(e,t)=>parseFloat(e.split(", ")[t]),Eg=(e,t)=>(r,{transform:o})=>{if(o==="none"||!o)return 0;let n=o.match(/^matrix3d\((.+)\)$/);if(n)return Pg(n[1],t);{let i=o.match(/^matrix\((.+)\)$/);return i?Pg(i[1],e):0}},P2=new Set(["x","y","z"]),E2=Dt.filter(e=>!P2.has(e));function $2(e){let t=[];return E2.forEach(r=>{let o=e.getValue(r);o!==void 0&&(t.push([r,o.get()]),o.set(r.startsWith("scale")?1:0));}),t.length&&e.render(),t}var fo={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:Eg(4,13),y:Eg(5,14)};fo.translateX=fo.x;fo.translateY=fo.y;var _2=(e,t,r)=>{let o=t.measureViewportBox(),n=t.current,i=getComputedStyle(n),{display:a}=i,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(c=>{s[c]=fo[c](o,i);}),t.render();let l=t.measureViewportBox();return r.forEach(c=>{let u=t.getValue(c);u&&u.jump(s[c]),e[c]=fo[c](l,i);}),e},A2=(e,t,r={},o={})=>{t=d({},t),o=d({},o);let n=Object.keys(t).filter($g),i=[],a=!1,s=[];if(n.forEach(l=>{let c=e.getValue(l);if(!e.hasValue(l))return;let u=r[l],f=io(u),p=t[l],m;if(ar(p)){let v=p.length,y=p[0]===null?1:0;u=p[y],f=io(u);for(let x=y;x<v&&p[x]!==null;x++)m?ye(io(p[x])===m):(m=io(p[x]),ye(m===f||ns(f)&&ns(m)));}else m=io(p);if(f!==m)if(ns(f)&&ns(m)){let v=c.get();typeof v=="string"&&c.set(parseFloat(v)),typeof p=="string"?t[l]=parseFloat(p):Array.isArray(p)&&m===V&&(t[l]=p.map(parseFloat));}else f!=null&&f.transform&&(m!=null&&m.transform)&&(u===0||p===0)?u===0?c.set(m.transform(u)):t[l]=f.transform(p):(a||(i=$2(e),a=!0),s.push(l),o[l]=o[l]!==void 0?o[l]:t[l],c.jump(p));}),s.length){let l=s.indexOf("height")>=0?window.pageYOffset:null,c=_2(t,e,s);return i.length&&i.forEach(([u,f])=>{e.getValue(u).set(f);}),e.render(),Lt&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:o}}else return {target:t,transitionEnd:o}};function _g(e,t,r,o){return k2(t)?A2(e,t,r,o):{target:t,transitionEnd:o}}var Ag=(e,t,r,o)=>{let n=kg(e,t,o);return t=n.target,o=n.transitionEnd,_g(e,t,r,o)};var In={current:null},is={current:!1};function Mg(){if(is.current=!0,!!Lt)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>In.current=e.matches;e.addListener(t),t();}else In.current=!1;}function Rg(e,t,r){let{willChange:o}=t;for(let n in t){let i=t[n],a=r[n];if(te(i))e.addValue(n,i),cr(o)&&o.add(n);else if(te(a))e.addValue(n,it(i,{owner:e})),cr(o)&&o.remove(n);else if(a!==i)if(e.hasValue(n)){let s=e.getValue(n);!s.hasAnimated&&s.set(i);}else {let s=e.getStaticValue(n);e.addValue(n,it(s!==void 0?s:i,{owner:e}));}}for(let n in r)t[n]===void 0&&e.removeValue(n);return t}var Oc=new WeakMap;var Lg=Object.keys(nr),M2=Lg.length,Ig=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],R2=xn.length,as=class{constructor({parent:t,props:r,presenceContext:o,reducedMotionConfig:n,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection));},this.scheduleRender=()=>z.render(this.render,!1,!0);let{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget=d({},s),this.initialValues=r.initial?d({},s):{},this.renderState=l,this.parent=t,this.props=r,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=a,this.isControllingVariants=or(r),this.isVariantNode=ra(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let f=this.scrapeMotionValuesFromProps(r,{}),{willChange:c}=f,u=P(f,["willChange"]);for(let p in u){let m=u[p];s[p]!==void 0&&te(m)&&(m.set(s[p],!1),cr(c)&&c.add(p));}}scrapeMotionValuesFromProps(t,r){return {}}mount(t){this.current=t,Oc.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,o)=>this.bindToMotionValue(o,r)),is.current||Mg(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:In.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext);}unmount(){Oc.delete(this.current),this.projection&&this.projection.unmount(),Pe(this.notifyUpdate),Pe(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let t in this.events)this.events[t].clear();for(let t in this.features)this.features[t].unmount();this.current=null;}bindToMotionValue(t,r){let o=$e.has(t),n=r.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&z.update(this.notifyUpdate,!1,!0),o&&this.projection&&(this.projection.isTransformDirty=!0);}),i=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{n(),i();});}sortNodePosition(t){return !this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures(a,o,n,i){var s=a,r=P(s,["children"]);let l,c;for(let u=0;u<M2;u++){let f=Lg[u],{isEnabled:p,Feature:m,ProjectionNode:v,MeasureLayout:y}=nr[f];v&&(l=v),p(r)&&(!this.features[f]&&m&&(this.features[f]=new m(this)),y&&(c=y));}if(!this.projection&&l){this.projection=new l(this.latestValues,this.parent&&this.parent.projection);let{layoutId:u,layout:f,drag:p,dragConstraints:m,layoutScroll:v,layoutRoot:y}=r;this.projection.setOptions({layoutId:u,layout:f,alwaysMeasureLayout:!!p||m&&mt(m),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof f=="string"?f:"both",initialPromotionConfig:i,layoutScroll:v,layoutRoot:y});}return c}updateFeatures(){for(let t in this.features){let r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0);}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props);}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):re()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r;}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let o=0;o<Ig.length;o++){let n=Ig[o];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i));}this.prevMotionValues=Rg(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue();}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let o=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(o.initial=this.props.initial),o}let r={};for(let o=0;o<R2;o++){let n=xn[o],i=this.props[n];(ht(i)||i===!1)&&(r[n]=i);}return r}addVariantChild(t){let r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get();}removeValue(t){this.values.delete(t);let 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 o=this.values.get(t);return o===void 0&&r!==void 0&&(o=it(r,{owner:this}),this.addValue(t,o)),o}readValue(t){var r;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r;}getBaseTarget(t){var r;let{initial:o}=this.props,n=typeof o=="string"||typeof o=="object"?(r=Zr(this.props,o))===null||r===void 0?void 0:r[t]:void 0;if(o&&n!==void 0)return n;let i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!te(i)?i:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Ft),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r);}};var po=class extends as{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:o}){delete r[t],delete o[t];}makeTargetAnimatableFromInstance(a,{transformValues:n},i){var s=a,{transition:t,transitionEnd:r}=s,o=P(s,["transition","transitionEnd"]);let l=ph(o,t||{},this);if(n&&(r&&(r=n(r)),o&&(o=n(o)),l&&(l=n(l))),i){dh(this,o,l);let c=Ag(this,o,l,r);r=c.transitionEnd,o=c.target;}return d({transition:t,transitionEnd:r},o)}};function I2(e){return window.getComputedStyle(e)}var ss=class extends po{readValueFromInstance(t,r){if($e.has(r)){let o=to(r);return o&&o.default||0}else {let o=I2(t),n=(aa(r)?o.getPropertyValue(r):o[r])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:r}){return Pc(t,r)}build(t,r,o,n){Kr(t,r,o,n.transformTemplate);}scrapeMotionValuesFromProps(t,r){return Xr(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;te(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`);}));}renderInstance(t,r,o,n){ua(t,r,o,n);}};var ls=class extends po{constructor(){super(...arguments),this.isSVGTag=!1;}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if($e.has(r)){let o=to(r);return o&&o.default||0}return r=fa.has(r)?r:qr(r),t.getAttribute(r)}measureInstanceViewportBox(){return re()}scrapeMotionValuesFromProps(t,r){return pa(t,r)}build(t,r,o,n){Ur(t,r,o,this.isSVGTag,n.transformTemplate);}renderInstance(t,r,o,n){da(t,r,o,n);}mount(t){this.isSVGTag=Yr(t.tagName),super.mount(t);}};var Og=(e,t)=>Wr(e)?new ls(t,{enableHardwareAcceleration:!1}):new ss(t,{enableHardwareAcceleration:!0});var Dg={layout:{ProjectionNode:os,MeasureLayout:Qa}};var L2=d(d(d(d({},gh),Tm),Tg),Dg),je=Fp((e,t)=>ym(e,t,L2,Og));function cs(){let e=useRef(!1);return zr(()=>(e.current=!0,()=>{e.current=!1;}),[]),e}function Ng(){let e=cs(),[t,r]=useState(0),o=useCallback(()=>{e.current&&r(t+1);},[t]);return [useCallback(()=>z.postRender(o),[o]),t]}var Dc=class extends bt.Component{getSnapshotBeforeUpdate(t){let r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){let o=this.props.sizeRef.current;o.height=r.offsetHeight||0,o.width=r.offsetWidth||0,o.top=r.offsetTop,o.left=r.offsetLeft;}return null}componentDidUpdate(){}render(){return this.props.children}};function jg({children:e,isPresent:t}){let r=useId$1(),o=useRef(null),n=useRef({width:0,height:0,top:0,left:0});return useInsertionEffect(()=>{let{width:i,height:a,top:s,left:l}=n.current;if(t||!o.current||!i||!a)return;o.current.dataset.motionPopId=r;let c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
8
- [data-motion-pop-id="${r}"] {
9
- position: absolute !important;
10
- width: ${i}px !important;
11
- height: ${a}px !important;
12
- top: ${s}px !important;
13
- left: ${l}px !important;
14
- }
15
- `),()=>{document.head.removeChild(c);}},[t]),bt.createElement(Dc,{isPresent:t,childRef:o,sizeRef:n},bt.cloneElement(e,{ref:o}))}var us=({children:e,initial:t,isPresent:r,onExitComplete:o,custom:n,presenceAffectsLayout:i,mode:a})=>{let s=ma(j2),l=useId$1(),c=useMemo(()=>({id:l,initial:t,isPresent:r,custom:n,onExitComplete:u=>{s.set(u,!0);for(let f of s.values())if(!f)return;o&&o();},register:u=>(s.set(u,!1),()=>s.delete(u))}),i?void 0:[r]);return useMemo(()=>{s.forEach((u,f)=>s.set(f,!1));},[r]),bt.useEffect(()=>{!r&&!s.size&&o&&o();},[r]),a==="popLayout"&&(e=bt.createElement(jg,{isPresent:r},e)),bt.createElement(It.Provider,{value:c},e)};function j2(){return new Map}function Fg(e){return useEffect(()=>()=>e(),[])}var mr=e=>e.key||"";function G2(e,t){e.forEach(r=>{let o=mr(r);t.set(o,r);});}function U2(e){let t=[];return Children.forEach(e,r=>{isValidElement(r)&&t.push(r);}),t}var st=({children:e,custom:t,initial:r=!0,onExitComplete:o,exitBeforeEnter:n,presenceAffectsLayout:i=!0,mode:a="sync"})=>{let s=useContext(Fr).forceRender||Ng()[0],l=cs(),c=U2(e),u=c,f=useRef(new Map).current,p=useRef(u),m=useRef(new Map).current,v=useRef(!0);if(zr(()=>{v.current=!1,G2(c,m),p.current=u;}),Fg(()=>{v.current=!0,m.clear(),f.clear();}),v.current)return bt.createElement(bt.Fragment,null,u.map(S=>bt.createElement(us,{key:mr(S),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:i,mode:a},S)));u=[...u];let y=p.current.map(mr),x=c.map(mr),w=y.length;for(let S=0;S<w;S++){let C=y[S];x.indexOf(C)===-1&&!f.has(C)&&f.set(C,void 0);}return a==="wait"&&f.size&&(u=[]),f.forEach((S,C)=>{if(x.indexOf(C)!==-1)return;let k=m.get(C);if(!k)return;let $=y.indexOf(C),L=S;if(!L){let R=()=>{f.delete(C);let O=Array.from(m.keys()).filter(h=>!x.includes(h));if(O.forEach(h=>m.delete(h)),p.current=c.filter(h=>{let I=mr(h);return I===C||O.includes(I)}),!f.size){if(l.current===!1)return;s(),o&&o();}};L=bt.createElement(us,{key:mr(k),isPresent:!1,onExitComplete:R,custom:t,presenceAffectsLayout:i,mode:a},k),f.set(C,L);}u.splice($,0,L);}),u=u.map(S=>{let C=S.key;return f.has(C)?S:bt.createElement(us,{key:mr(S),isPresent:!0,presenceAffectsLayout:i,mode:a},S)}),bt.createElement(bt.Fragment,null,f.size?u:u.map(S=>cloneElement(S)))};function Vc(e,t){var r;return Array.from((r=e==null?void 0:e.querySelectorAll(t))!=null?r:[])}function Wg(e,t){return e.find(r=>r.id===t)}function Nc(e,t){let r=Wg(e,t);return r?e.indexOf(r):-1}function Bc(e,t,r=!0){let o=Nc(e,t);return o=r?(o+1)%e.length:Math.min(o+1,e.length-1),e[o]}function jc(e,t,r=!0){let o=Nc(e,t);return o===-1?r?e[e.length-1]:null:(o=r?(o-1+e.length)%e.length:Math.max(0,o-1),e[o])}typeof document!="undefined"?bt__default.useLayoutEffect:()=>{};function ys(e){var t;return typeof window=="undefined"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function Wc(e){var t;return typeof window!="undefined"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function go(){return Wc(/^Mac/i)}function Xg(){return ys(/Android/i)}var ho=new Map,Fc=new Set;function Ug(){if(typeof window=="undefined")return;let e=r=>{let o=ho.get(r.target);o||(o=new Set,ho.set(r.target,o),r.target.addEventListener("transitioncancel",t)),o.add(r.propertyName);},t=r=>{let o=ho.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",t),ho.delete(r.target)),ho.size===0)){for(let n of Fc)n();Fc.clear();}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t);}typeof document!="undefined"&&(document.readyState!=="loading"?Ug():document.addEventListener("DOMContentLoaded",Ug));function vs(e){return e.mozInputSource===0&&e.isTrusted?!0:Xg()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var my=bt__default.createContext({register:()=>{}});my.displayName="PressResponderContext";var bE=new Set,uy=!1,hr=!1,Xc=!1;function Jc(e,t){for(let r of bE)r(e,t);}function xE(e){return !(e.metaKey||!go()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function fy(e){hr=!0,xE(e)&&(Jc("keyboard",e));}function So(e){(e.type==="mousedown"||e.type==="pointerdown")&&(hr=!0,Jc("pointer",e));}function SE(e){vs(e)&&(hr=!0,"virtual");}function wE(e){e.target===window||e.target===document||(!hr&&!Xc&&(Jc("virtual",e)),hr=!1,Xc=!1);}function CE(){hr=!1,Xc=!0;}function dy(){if(typeof window=="undefined"||uy)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){hr=!0,e.apply(this,arguments);},document.addEventListener("keydown",fy,!0),document.addEventListener("keyup",fy,!0),document.addEventListener("click",SE,!0),window.addEventListener("focus",wE,!0),window.addEventListener("blur",CE,!1),typeof PointerEvent!="undefined"?(document.addEventListener("pointerdown",So,!0),document.addEventListener("pointermove",So,!0),document.addEventListener("pointerup",So,!0)):(document.addEventListener("mousedown",So,!0),document.addEventListener("mousemove",So,!0),document.addEventListener("mouseup",So,!0)),uy=!0;}typeof document!="undefined"&&(document.readyState!=="loading"?dy():document.addEventListener("DOMContentLoaded",dy));typeof document!="undefined"?bt__default.useLayoutEffect:()=>{};var On=new Map,vy=new Set;function by(){if(typeof window=="undefined")return;let e=r=>{let o=On.get(r.target);o||(o=new Set,On.set(r.target,o),r.target.addEventListener("transitioncancel",t)),o.add(r.propertyName);},t=r=>{let o=On.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",t),On.delete(r.target)),On.size===0)){for(let n of vy)n();vy.clear();}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t);}typeof document!="undefined"&&(document.readyState!=="loading"?by():document.addEventListener("DOMContentLoaded",by));function NE(){return typeof window.ResizeObserver!="undefined"}function Sy(e){let{ref:t,onResize:r}=e;useEffect(()=>{let o=t==null?void 0:t.current;if(o)if(NE()){let n=new window.ResizeObserver(i=>{i.length&&r();});return n.observe(o),()=>{o&&n.unobserve(o);}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1);}},[r,t]);}function Cy(e,t){return bt.Children.toArray(e).find(r=>r.type===t)}function ky(e,t){return bt.Children.toArray(e).filter(r=>Array.isArray(t)?t.some(o=>o===r.type):r.type===t)}var zE=(e,t)=>Array.isArray(e)?e:typeof e=="object"?t==null?void 0:t(e):e!=null?[e]:[],ru=(e,t)=>{var r;let o=useTheme(),n=zE(e,(r=o.__breakpoints)==null?void 0:r.toArrayValue);return useBreakpointValue(n,t)};var[YE,$o]=createStylesContext("SuiEmptyState");var Ky=forwardRef((e,t)=>{let r=$o(),o=d({boxSize:10},r.icon);return jsx(Icon,b(d({ref:t,role:"presentation",sx:o},e),{className:A("sui-empty-state__icon",e.className)}))});Ky.displayName="EmptyStateIcon";var fu=bt.createContext({});function Jy(e){let s=e,{theme:t,linkComponent:r,onError:o,children:n}=s,i=P(s,["theme","linkComponent","onError","children"]),a={linkComponent:r,onError:o};return jsx(fu.Provider,{value:a,children:jsx(ChakraProvider,b(d({},i),{theme:t||bn,children:n}))})}var ZE=()=>bt.useContext(fu),e$=e=>jsx(chakra.a,d({},e));function du(){let e=ZE();return e!=null&&e.linkComponent?e.linkComponent:e$}var r$=class extends bt.Component{constructor(e){super(e),this.onError=(t,r)=>{var o,n,i,a;(n=(o=this.props).onError)==null||n.call(o,t,r),(a=(i=this.context).onError)==null||a.call(i,t,r);},this.state={error:null};}static getDerivedStateFromError(e){return {error:e}}componentDidCatch(e,t){this.onError(e,t);}render(){return this.state.error?this.props.fallback||jsx("h1",{children:"Something went wrong."}):this.props.children}};r$.contextType=fu;var ev=(e="lg")=>e?{base:!0,[e]:!1}:{base:!1},[c$,tv]=Se({strict:!1,errorMessage:"AppShell context not available."}),u$=e=>{let t=useDisclosure(),r=ev(e.toggleBreakpoint),o=useBreakpointValue(r,{fallback:e.toggleBreakpoint||"lg"});return {isSidebarOpen:t.isOpen,closeSidebar:t.onClose,openSidebar:t.onOpen,toggleSidebar:t.onToggle,isMobile:o}},[f$,yY]=createStylesContext("SuiAppShell"),d$=forwardRef((e,t)=>{let r=useMultiStyleConfig("SuiAppShell",e),y=omitThemingProps(e),{navbar:o,sidebar:n,aside:i,footer:a,children:s,mainRef:l}=y,c=P(y,["navbar","sidebar","aside","footer","children","mainRef"]),u=d({flexDirection:"column"},r.container),f=d({flex:1,minHeight:0,minWidth:0},r.inner),p=d({flex:1,flexDirection:"column",minWidth:0},r.main),m=bt.isValidElement(n)&&n.type.id==="Sidebar",v=u$({toggleBreakpoint:m?n==null?void 0:n.props.toggleBreakpoint:void 0});return jsx(c$,{value:v,children:jsx(f$,{value:r,children:jsxs(Flex,b(d({ref:t},c),{sx:u,className:A("sui-app-shell",e.className),children:[o,jsxs(Flex,{sx:f,className:"saas-app-shell__inner",children:[n,jsx(Flex,{ref:l,sx:p,className:"saas-app-shell__main",children:s}),i]}),a]}))})})});d$.displayName="AppShell";function x$(e){return jsx(Icon,b(d({viewBox:"0 0 24 24"},e),{children: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 S$(e){return jsx(Icon,b(d({viewBox:"0 0 24 24"},e),{children: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 _y(e){return jsx(Icon,b(d({viewBox:"0 0 24 24"},e),{children: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"})}))}var $s={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Dn={enter:{duration:.2,ease:$s.easeOut},exit:{duration:.1,ease:$s.easeIn}},Vn={enter:(e,t)=>b(d({},e),{delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>b(d({},e),{delay:typeof t=="number"?t:t==null?void 0:t.exit})},C$={exit:({reverse:e,initialScale:t,transition:r,transitionEnd:o,delay:n})=>{var i;return b(d({opacity:0},e?{scale:t,transitionEnd:o==null?void 0:o.exit}:{transitionEnd:d({scale:t},o==null?void 0:o.exit)}),{transition:(i=r==null?void 0:r.exit)!=null?i:Vn.exit(Dn.exit,n)})},enter:({transitionEnd:e,transition:t,delay:r})=>{var o;return {opacity:1,scale:1,transition:(o=t==null?void 0:t.enter)!=null?o:Vn.enter(Dn.enter,r),transitionEnd:e==null?void 0:e.enter}}},ov={initial:"exit",animate:"enter",exit:"exit",variants:C$},T$=forwardRef$1(function(t,r){let y=t,{unmountOnExit:o,in:n,reverse:i=!0,initialScale:a=.95,className:s,transition:l,transitionEnd:c,delay:u}=y,f=P(y,["unmountOnExit","in","reverse","initialScale","className","transition","transitionEnd","delay"]),p=o?n&&o:!0,m=n||o?"enter":"exit",v={initialScale:a,reverse:i,transition:l,transitionEnd:c,delay:u};return jsx(st,{custom:v,children:p&&jsx(je.div,d(b(d({ref:r,className:zi("chakra-offset-slide",s)},ov),{animate:m,custom:v}),f))})});T$.displayName="ScaleFade";var P$={initial:({offsetX:e,offsetY:t,transition:r,transitionEnd:o,delay:n})=>{var i;return {opacity:0,x:e,y:t,transition:(i=r==null?void 0:r.exit)!=null?i:Vn.exit(Dn.exit,n),transitionEnd:o==null?void 0:o.exit}},enter:({transition:e,transitionEnd:t,delay:r})=>{var o;return {opacity:1,x:0,y:0,transition:(o=e==null?void 0:e.enter)!=null?o:Vn.enter(Dn.enter,r),transitionEnd:t==null?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:r,transitionEnd:o,reverse:n,delay:i})=>{var a;let s={x:t,y:e};return d({opacity:0,transition:(a=r==null?void 0:r.exit)!=null?a:Vn.exit(Dn.exit,i)},n?b(d({},s),{transitionEnd:o==null?void 0:o.exit}):{transitionEnd:d(d({},s),o==null?void 0:o.exit)})}},Es={initial:"initial",animate:"enter",exit:"exit",variants:P$},E$=forwardRef$1(function(t,r){let x=t,{unmountOnExit:o,in:n,reverse:i=!0,className:a,offsetX:s=0,offsetY:l=8,transition:c,transitionEnd:u,delay:f}=x,p=P(x,["unmountOnExit","in","reverse","className","offsetX","offsetY","transition","transitionEnd","delay"]),m=o?n&&o:!0,v=n||o?"enter":"exit",y={offsetX:s,offsetY:l,reverse:i,transition:c,transitionEnd:u,delay:f};return jsx(st,{custom:y,children:m&&jsx(je.div,d(b(d({ref:r,className:zi("chakra-offset-slide",a),custom:y},Es),{animate:v}),p))})});E$.displayName="SlideFade";var ks={enter:{duration:.2,ease:$s.easeOut},exit:{duration:.2,ease:$s.easeIn}},_$={slideOutTop:b(d({},Es),{custom:{offsetY:"-100%",reverse:!0,transition:ks},initial:"enter"}),slideOutBottom:b(d({},Es),{custom:{offsetY:"100%",reverse:!0,transition:ks},initial:"enter"}),fade:b(d({},Es),{custom:{transition:ks},initial:"enter"}),scale:b(d({},ov),{custom:{initialScale:.1,reverse:!0,transition:ks},initial:"enter"}),none:{custom:{}}},A$=Dr(je.div),M$=bt.forwardRef((e,t)=>{let a=e,{motionPreset:r}=a,o=P(a,["motionPreset"]),n=_$[r],i=d({},n);return jsx(A$,d(d({ref:t},i),o))}),[R$,Ao]=createStylesContext("SuiBanner"),nv={info:{icon:S$,colorScheme:"blue"},warning:{icon:_y,colorScheme:"orange"},success:{icon:x$,colorScheme:"green"},error:{icon:_y,colorScheme:"red"}},[I$,iv]=Se({name:"BannerContext",errorMessage:"useBannerContext: `context` is undefined. Seems you forgot to wrap banner components in `<Banner />`"}),L$=forwardRef((e,t)=>{var r;let y=omitThemingProps(e),{id:o,status:n="info",isOpen:i=!0,onClose:a,motionPreset:s="slideOutTop"}=y,l=P(y,["id","status","isOpen","onClose","motionPreset"]),c=(r=e.colorScheme)!=null?r:nv[n].colorScheme,u=useMultiStyleConfig("SuiBanner",b(d({},e),{colorScheme:c})),f=d({width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden"},u.container),p={id:o||`banner-${useId()}`,status:n,onClose:a,isOpen:i},m=["warning","error"].includes(n)?"alert":"status",v=i?"enter":"exit";return jsx(I$,{value:p,children:jsx(R$,{value:u,children:jsx(st,{children:i&&jsx(M$,b(d({id:p.id,role:m,ref:t,motionPreset:s,animate:v},l),{className:A("sui-banner",e.className),__css:f}))})})})});L$.displayName="Banner";var O$=forwardRef((e,t)=>{let r=Ao();return jsx(chakra.div,b(d({ref:t},e),{className:A("sui-banner__content",e.className),__css:r.content}))});O$.displayName="BannerContent";var D$=forwardRef((e,t)=>{let r=Ao();return jsx(chakra.div,b(d({ref:t},e),{className:A("sui-banner__title",e.className),__css:r.title}))});D$.displayName="BannerTitle";var V$=forwardRef((e,t)=>{let r=Ao(),o=d({display:"inline"},r.description);return jsx(chakra.div,b(d({ref:t},e),{className:A("sui-banner__desc",e.className),__css:o}))});V$.displayName="BannerDescription";var N$=forwardRef((e,t)=>{let{children:r,variant:o}=e,n=Ao();return jsx(chakra.div,b(d({ref:t},e),{className:A("sui-banner__actions",e.className),__css:n.actions,children:jsx(ButtonGroup,{variant:o,children:r})}))});N$.displayName="BannerActions";var j$=forwardRef((e,t)=>{let u=e,{onClick:r,className:o}=u,n=P(u,["onClick","className"]),{onClose:i,isOpen:a,id:s}=iv(),l=A("sui-banner__close-btn",o),c=Ao();return jsx(CloseButton,d({ref:t,__css:c.closeButton,className:l,onClick:Ve(r,f=>{f.stopPropagation(),i==null||i();}),"aria-controls":s,"aria-expanded":a!=null&&a.toString()?"true":"false"},n))});j$.displayName="BannerCloseButton";Se({name:"UseCollapseReturn"});var [Q$,Wn]=createStylesContext("SuiStructuredList"),[e_,t_]=Se({name:"StructuredListContext",errorMessage:"useStructuredListContext: `context` is undefined. Seems you forgot to wrap the components in `<StructuredList />`"});function r_(e){return Vc(e,"[role='button']:not([disabled])")}var o_=e=>{var t;let r=useId(),o=bt.useRef(null),[n,i]=bt.useState(null);return {id:(t=e.id)!=null?t:r,containerRef:o,focusId:n,setFocusId:i}},n_=forwardRef((e,t)=>{let u=e,{items:r,children:o}=u,n=P(u,["items","children"]),i=useMultiStyleConfig("SuiStructuredList",n),a=omitThemingProps(n),s;r?s=r.map((f,p)=>createElement(sv,b(d({},f),{key:f.id||p}))):s=o;let l=d({py:2,position:"relative"},i.list),c=o_(e);return jsx(e_,{value:c,children:jsx(Q$,{value:i,children:jsx(chakra.ul,b(d({ref:useMergeRefs(t,c.containerRef),__css:l},a),{className:A("sui-list",e.className),children:s}))})})});n_.displayName="StructuredList";var sv=forwardRef((e,t)=>{let v=e,{onClick:r,href:o,as:n,children:i}=v,a=P(v,["onClick","href","as","children"]),s=Wn(),l=!!(r||o),c=l?lv:bt.Fragment,u=!!l,f=d(d({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",fontSize:"md"},s.item),u?{py:0,px:0}:{}),m=l?jsx(c,b(d({},l?{onClick:r,href:o,as:n}:{}),{children:i})):i;return jsx(chakra.li,b(d({ref:t,__css:f},a),{className:A("sui-list__item",e.className),children:m}))});sv.displayName="StructuredListItem";var a_=e=>{var t;let{id:r,containerRef:o,focusId:n,setFocusId:i}=t_(),a=`${r}-${useId()}`,s=(t=e.id)!=null?t:a,l=n===s;return {buttonProps:{id:s,["data-focus"]:he(l),tabIndex:l?0:-1,onFocus:Ve(e.onFocus,()=>{i(s);}),onKeyDown:Ve(e.onKeyDown,bt.useCallback(u=>{let f=r_(o.current),p={ArrowUp:()=>{var m;(m=jc(f,s))==null||m.focus();},ArrowDown:()=>{var m;(m=Bc(f,s))==null||m.focus();},Home:()=>{var m;(m=f[0])==null||m.focus();},End:()=>{var m;(m=f[f.length-1])==null||m.focus();}};p[u.key]&&(u.preventDefault(),p[u.key](u));},[s]))}}},lv=forwardRef((e,t)=>{let s=e,{children:r}=s,o=P(s,["children"]),{buttonProps:n}=a_(e),i=Wn(),a=d({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",flex:1,cursor:"pointer",userSelect:"none"},i.button);return jsx(chakra.div,b(d(d({ref:t,__css:a,role:"button"},o),n),{className:A("sui-list__item-button",e.className),children:r}))});lv.displayName="StructuredListButton";var d_=forwardRef((e,t)=>{let r=du(),i=e,{href:o}=i,n=P(i,["href"]);return jsx(Link,d({as:r,ref:t,href:o},n))});d_.displayName="Link";createStylesContext("SuiLoadingOverlay");chakra(je.div);Se({name:"UseContextMenuContext",strict:!1});var [J_,Is]=createStylesContext("SuiPersona"),Ny={online:{label:"Online",color:"presence.online"},offline:{label:"Offline",color:"presence.offline"},busy:{label:"Busy",color:"presence.busy"},dnd:{label:"Do-not-disturb",color:"presence.dnd"},away:{label:"Away",color:"presence.away"}},Q_={online:"green.500",offline:"gray.400",busy:"orange.500",dnd:"red.500",away:"gray.400"};var uv=forwardRef((e,t)=>{let l=e,{children:r}=l,o=P(l,["children"]),n=useMultiStyleConfig("SuiPersona",e),i=omitThemingProps(o),s=d(d({},{display:"flex",flexDirection:"row",alignItems:"center"}),n.container);return jsx(J_,{value:n,children:jsx(chakra.div,b(d({ref:t,__css:s},i),{className:A("sui-persona",e.className),children:r}))})});uv.displayName="PersonaContainer";var fv=forwardRef((e,t)=>{var r,o,n,i,a;let _=e,{name:s,presence:l,presenceLabel:c,presenceIcon:u,isOutOfOffice:f,badgeSize:p="1em",size:m,getInitials:v,icon:y,iconLabel:x,ignoreFallback:w,loading:S,onError:C,src:k,srcSet:$}=_,L=P(_,["name","presence","presenceLabel","presenceIcon","isOutOfOffice","badgeSize","size","getInitials","icon","iconLabel","ignoreFallback","loading","onError","src","srcSet"]),R={},O,h=useTheme(),I=((r=h.colors)==null?void 0:r.presence)||Q_,B=!!((n=(o=h.semanticTokens)==null?void 0:o.colors)!=null&&n["presence.online"]);if(l){let F=c||((i=Ny[l])==null?void 0:i.label),T=B?((a=Ny[l])==null?void 0:a.color)||`presence.${l}`:I[l];f?(R.sx={_before:{content:'""',width:"100%",height:"100%",position:"absolute",top:0,left:0,border:"0.2em solid",borderColor:T,borderRadius:"50%",boxSizing:"border-box"}},R.borderWidth="0.15em",R.bg=useColorModeValue("white","gray.800")):R.bg=T,O=jsx(AvatarBadge,b(d({boxSize:p},R),{children:u})),F&&(O=jsx(Tooltip,{label:F,children:O}));}return jsx(Avatar,b(d({ref:t,name:s,size:m,getInitials:v,icon:y,iconLabel:x,ignoreFallback:w,loading:S,onError:C,src:k,srcSet:$},L),{children:O}))});fv.displayName="PersonaAvatar";var dv=forwardRef((e,t)=>{let l=e,{children:r,className:o}=l,n=P(l,["children","className"]),i=Is(),s=d(d({},{display:"flex",flexDirection:"column"}),i.details);return jsx(chakra.div,b(d({ref:t},n),{__css:s,className:A("sui-persona__details",o),children:r}))});dv.displayName="PersonaDetails";var pv=forwardRef((e,t)=>{let r=Is();return jsx(chakra.span,b(d({ref:t},e),{__css:r.label,className:A("sui-persona__label",e.className)}))});pv.displayName="PersonaLabel";var mv=forwardRef((e,t)=>{let r=Is();return jsx(chakra.span,b(d({ref:t},e),{__css:r.secondaryLabel,className:A("sui-persona__secondary-label",e.className)}))});mv.displayName="PersonaSecondaryLabel";var hv=forwardRef((e,t)=>{let r=Is();return jsx(chakra.span,b(d({ref:t},e),{__css:r.tertiaryLabel,className:A("sui-persona__tertiary-label",e.className)}))});hv.displayName="PersonaTertiaryLabel";var[aA,gv]=createStylesContext("SuiProperty"),sA=forwardRef((e,t)=>{let r=useMultiStyleConfig("SuiProperty",e),u=omitThemingProps(e),{children:o,label:n,value:i,labelWidth:a,spacing:s}=u,l=P(u,["children","label","value","labelWidth","spacing"]),c=d({minW:0,display:"flex",flexDirection:"row",alignItems:"center"},r.property);return jsx(aA,{value:r,children:jsxs(chakra.dl,b(d({ref:t,__css:c},l),{className:A("sui-property",e.className),children:[n&&jsx(yv,{width:a,minWidth:a,marginEnd:s,children:n}),i&&jsx(vv,{children:i}),o]}))})});sA.displayName="Property";var yv=forwardRef((e,t)=>{let r=gv(),c=e,{children:o,noOfLines:n=1,width:i,minWidth:a}=c,s=P(c,["children","noOfLines","width","minWidth"]),l=d({display:"flex",flexDirection:"row"},r.label);return i&&(l.minWidth=a||"auto",l.width=i),jsx(chakra.dt,b(d({ref:t,__css:l},s),{className:A("sui-property__label",e.className),children:jsx(chakra.span,{flex:"1",noOfLines:n,children:o})}))});yv.displayName="PropertyLabel";var vv=forwardRef((e,t)=>{let r=gv(),a=e,{children:o}=a,n=P(a,["children"]),i=d({display:"flex",flexDirection:"row",alignItems:"center",flex:1},r.value);return jsx(chakra.dd,b(d({ref:t,__css:i},n),{className:A("sui-property__value",e.className),children:o}))});vv.displayName="PropertyValue";var mA=typeof window!="undefined";function By(e){return mA?e?{x:e.scrollLeft,y:e.scrollTop}:{x:window.scrollX,y:window.scrollY}:{x:0,y:0}}var hA=e=>{let{elementRef:t,delay:r=30,callback:o,isEnabled:n}=e,i=useRef(n?By(t==null?void 0:t.current):{x:0,y:0}),a=null,s=()=>{let l=By(t==null?void 0:t.current);typeof o=="function"&&o({prevPos:i.current,currPos:l}),i.current=l,a=null;};return useEffect(()=>{if(!n)return;let l=()=>{r?a===null&&(a=setTimeout(s,r)):s();},c=(t==null?void 0:t.current)||window;return c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)},[t==null?void 0:t.current,r,n]),i.current};function gA(e){let x=e,{ref:t,parentRef:r,height:o="3.5rem",shouldHideOnScroll:n=!1,disableScrollHandler:i=!1,onScrollPositionChange:a,motionProps:s}=x,l=P(x,["ref","parentRef","height","shouldHideOnScroll","disableScrollHandler","onScrollPositionChange","motionProps"]),c=useRef(null);useImperativeHandle(t,()=>c.current);let u=useRef(0),f=useRef(0),[p,m]=useState(!1),v=()=>{if(c.current){let w=c.current.offsetWidth;w!==u.current&&(u.current=w);}};return Sy({ref:c,onResize:()=>{var w;((w=c.current)==null?void 0:w.offsetWidth)!==u.current&&v();}}),useEffect(()=>{var w;v(),f.current=((w=c.current)==null?void 0:w.offsetHeight)||0;},[]),hA({elementRef:r,isEnabled:n||!i,callback:({prevPos:w,currPos:S})=>{a==null||a(S.y),n&&m(C=>{let k=S.y>w.y&&S.y>f.current;return k!==C?k:C});}}),{containerRef:c,height:o,isHidden:p,shouldHideOnScroll:n,motionProps:s,getContainerProps:(w={})=>b(d(d({},l),s),{"data-hidden":he(p),ref:c,style:d(d({"--navbar-height":o},l.style),w==null?void 0:w.style)})}}function bA(e,t){return `${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Kn(e={}){let{name:t,strict:r=!0,hookName:o="useContext",providerName:n="Provider",errorMessage:i,defaultValue:a}=e,s=createContext(a);s.displayName=t;function l(){var c;let u=useContext(s);if(!u&&r){let f=new Error(i!=null?i:bA(o,n));throw f.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,f,l),f}return u}return [s.Provider,l,s]}var[xA,Mq]=Kn({name:"NavbarContext",strict:!0,errorMessage:"useNavbarContext: `context` is undefined. Seems you forgot to wrap component within <Navbar />"}),[SA,Ls]=Kn({name:"NavBarStylesContext",hookName:"useNavItemStyles",providerName:"<NavBar />"}),TA=chakra(je.nav),kA=forwardRef((e,t)=>{let l=e,{children:r}=l,o=P(l,["children"]),n=gA(b(d({},o),{ref:t})),i=useMultiStyleConfig("SuiNavbar",e),a=jsx(chakra.header,{__css:i.inner,className:"sui-navbar__inner",children:r}),s=d({top:e.position==="sticky"?"0":void 0,insetX:e.position==="sticky"?"0":void 0},i.container);return jsx(SA,{value:i,children:jsx(xA,{value:n,children:jsx(TA,b(d({__css:s,animate:n.isHidden?"hidden":"visible",initial:!1,variants:{hidden:{y:"-100%"},visible:{y:0,transition:{ease:"easeInOut"}}},className:A("sui-navbar",e.className)},n.getContainerProps()),{children:a}))})})});kA.displayName="Navbar";var _A=forwardRef((e,t)=>{let a=e,{className:r,children:o}=a,n=P(a,["className","children"]),i=Ls();return jsx(chakra.div,b(d({ref:t,__css:i.brand,className:A("sui-navbar__brand")},n),{children:o}))});_A.displayName="NavbarBrand";var IA=forwardRef((e,t)=>{let l=e,{className:r,children:o,spacing:n=0}=l,i=P(l,["className","children","spacing"]),a=Ls(),s=b(d({},a.content),{"& > *:not(style) ~ *:not(style)":{marginStart:n}});return jsx(chakra.ul,b(d({ref:t,__css:s,className:A("sui-navbar__content",r)},i),{children:o}))});IA.displayName="NavbarContent";var VA=forwardRef((e,t)=>{let s=e,{className:r,children:o,isActive:n}=s,i=P(s,["className","children","isActive"]),a=Ls();return jsx(chakra.li,b(d({ref:t,__css:a.item,className:A("sui-navbar__item",r),"data-active":he(n)},i),{children:o}))});VA.displayName="NavbarItem";var zA=forwardRef((e,t)=>{let l=e,{className:r,children:o,isActive:n}=l,i=P(l,["className","children","isActive"]),a=du(),s=Ls();return jsx(chakra.a,b(d({as:a,ref:t,__css:s.link,"data-active":he(n),className:A("sui-navbar__link",r)},i),{children:o}))});zA.displayName="NavbarLink";var [UA,Sv]=Se({name:"SidebarContext",strict:!1}),[qA,XA]=Kn({name:"SidebarStylesContext",hookName:"useSidebarStyles",providerName:"<Sidebar />"}),ZA=chakra(je.nav),JA={slideInOut:{enter:{left:0,transition:{type:"spring",duration:.6,bounce:.15}},exit:{left:"-100%"}},none:{}},wv=forwardRef((e,t)=>{var r,o,n;let i=useMultiStyleConfig("SuiSidebar",e),s=(r=useTheme().components.SuiSidebar)==null?void 0:r.defaultProps,l=ru((o=e.variant)!=null?o:s==null?void 0:s.variant,{fallback:"base"}),c=ru((n=e.size)!=null?n:s==null?void 0:s.size,{fallback:"base"}),u=l==="compact",Do=omitThemingProps(e),{spacing:f=4,children:p,toggleBreakpoint:m="lg",className:v,motionPreset:y="slideInOut",isOpen:x,onOpen:w,onClose:S}=Do,C=P(Do,["spacing","children","toggleBreakpoint","className","motionPreset","isOpen","onOpen","onClose"]),k=tv(),$=ev(m),L=useBreakpointValue($,{fallback:void 0}),R=useBreakpointValue($),O=typeof L=="undefined",h=typeof x!="undefined",I=(L||h)&&!u,B=useDisclosure({isOpen:x||(k==null?void 0:k.isSidebarOpen),onOpen:w||(k==null?void 0:k.openSidebar),onClose:S||(k==null?void 0:k.closeSidebar)}),{isOpen:_,onClose:F,onOpen:T}=B;bt.useEffect(()=>{O&&R||u||h||(R?F():T());},[O,u,R]);let E=d({"& > *:not(style) ~ *:not(style, .sui-resize-handle, .sui-sidebar__toggle-button + *)":{marginTop:f},display:"flex",flexDirection:"column"},L&&I?{position:"absolute",zIndex:"modal",top:0,left:{base:"-100%",lg:"0"},bottom:0}:{position:"relative"}),j=b(d({},B),{breakpoints:$,isMobile:L,variant:l,size:c}),Oe=JA[u?"none":y||"none"];return jsx(UA,{value:j,children:jsx(qA,{value:i,children:jsx(ZA,b(d({ref:t,initial:!1,animate:!O&&(!I||_?"enter":"exit"),variants:Oe,__css:d(d({},E),i.container)},C),{id:B.getDisclosureProps().id,className:A("sui-sidebar",v),"data-compact":he(u),"data-collapsible":he(L&&I),children:p}))})})});wv.displayName="Sidebar";wv.id="Sidebar";Kn({name:"NavGroupStylesContext",hookName:"useNavItemStyles",providerName:"<NavItem />"});var [l5,Tv]=Kn({name:"NavItemStylesContext",hookName:"useNavItemStyles",providerName:"<NavItem />"});var $v=forwardRef((o,r)=>{var n=o,{children:e}=n,t=P(n,["children"]);let i=Tv();return jsx(chakra.span,b(d({ref:r,__css:i.label},t),{className:A("sui-nav-item__label",t.className),children:e}))});$v.displayName="NavItemLabel";var _v=e=>{let t=Tv(),s=e,{className:r,children:o}=s,n=P(s,["className","children"]),i=bt.Children.only(o),a=bt.isValidElement(i)?bt.cloneElement(i,{focusable:"false","aria-hidden":!0}):null;return jsx(chakra.span,b(d({},n),{className:A("sui-nav-item__icon",e.className),__css:d({flexShrink:0},t.icon),children:a}))};_v.displayName="NavItemIcon";var h5=forwardRef((e,t)=>{let C=omitThemingProps(e),{href:r,icon:o,inset:n,className:i,tooltipProps:a,isActive:s,children:l}=C,c=P(C,["href","icon","inset","className","tooltipProps","isActive","children"]),u=du(),{onClose:f,variant:p}=Sv()||{},m=p==="compact",v=useMultiStyleConfig("SuiNavItem",e),y=l,x=a==null?void 0:a.label;typeof y=="string"&&(!x&&m&&(x=y),y=jsx($v,{children:y}));let w;r&&(w=u);let S=jsx(chakra.a,b(d({as:w,"aria-current":s?"page":void 0},c),{ref:t,href:r,className:"sui-nav-item__link","data-active":he(s),__css:v.link,children:jsxs(chakra.span,{__css:b(d({},v.inner),{pl:n}),className:"sui-nav-item__inner",children:[o&&jsx(_v,{children:o}),y]})}));return jsx(l5,{value:v,children:jsx(Tooltip,b(d({label:x,placement:"right",openDelay:400},a),{children:jsx(chakra.div,{__css:v.item,onClick:f,"data-compact":he(m),className:A("sui-nav-item",i),children:S})}))})});h5.displayName="NavItem";var P5=forwardRef((e,t)=>{let R=e,{placeholder:r="Search",value:o,defaultValue:n,size:i,variant:a,width:s,icon:l,resetIcon:c,rightElement:u,onChange:f,onReset:p,onKeyDown:m}=R,v=P(R,["placeholder","value","defaultValue","size","variant","width","icon","resetIcon","rightElement","onChange","onReset","onKeyDown"]),y=useMultiStyleConfig("SuiSearchInput",e),x=bt.useRef(null),[w,S]=useControllableState({value:o,defaultValue:n}),C=bt.useCallback(O=>{S(O.target.value);},[S]),k=bt.useCallback(O=>{O.key==="Escape"&&(S(""),$());},[p,S]),$=()=>{var O;S(""),p==null||p(),(O=x.current)==null||O.focus();},L=i==="lg"?"sm":"xs";return jsxs(InputGroup,{size:i,width:s,children:[jsx(InputLeftElement,{children:l||jsx(Ud,{})}),jsx(Input,d({type:"text",placeholder:r,variant:a,size:i,value:w,ref:useMergeRefs(t,x),sx:y.input,onChange:Ve(C,f),onKeyDown:Ve(k,m)},v)),jsx(InputRightElement,{children:w?jsx(IconButton,{onClick:$,size:L,variant:"ghost","aria-label":"Reset search",icon:c||jsx(Gd,{}),sx:y.reset}):u})]})});P5.displayName="SearchInput";var[B5,j5]=Se({name:"StepperContext",errorMessage:"useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in `<Stepper />`"});function z5(e){let{step:t,onChange:r}=e,[o,n]=bt.useState(0),i=bt.useRef([]),[,a]=bt.useState(Date.now()),s=bt.useCallback(m=>{let v=[...i.current];v.indexOf(m)===-1&&v.push(m),i.current=v,a(Date.now());},[i,a]),l=m=>{i.current=i.current.slice(i.current.indexOf(m),1);},c=m=>{let v=i.current.indexOf(m);v!==-1&&n(v);},u=()=>{n(o+1);},f=()=>{n(o-1);};return bt.useEffect(()=>{typeof t=="string"?c(t):typeof t=="number"?n(t):o===-1&&n(0);},[t]),bt.useEffect(()=>{r==null||r(o);},[o,r]),{stepsRef:i,activeStep:i.current[o],activeIndex:o,isFirstStep:o===0,isLastStep:o===i.current.length-1,isCompleted:o>=i.current.length,setIndex:n,setStep:c,nextStep:u,prevStep:f,registerStep:s,unregisterStep:l}}function F5(e){let{name:t,isActive:r,isCompleted:o}=e,{registerStep:n,unregisterStep:i,activeStep:a}=j5();return bt.useEffect(()=>{if(t)return n(t),()=>{i(t);}},[]),{isActive:t?a===t:r,isCompleted:o}}var[W5,H5]=createStylesContext("Stepper"),K5=forwardRef((e,t)=>{var r,o,n,i;let I=e,{children:a,orientation:s="horizontal",index:l,step:c,onChange:u,variant:f,colorScheme:p,size:m,stepperProps:v}=I,y=P(I,["children","orientation","index","step","onChange","variant","colorScheme","size","stepperProps"]),x=useMultiStyleConfig("Stepper",e),w=z5({step:c!=null?c:l,onChange:u}),{activeIndex:S}=w,C=s==="vertical",k=ky(a,Iv),$=d({position:"relative"},x.item),L=k.reduce((B,_,F,T)=>{let E=bt.cloneElement(_,b(d({key:F},_.props),{isActive:S===F,isCompleted:_.props.isCompleted||S>F}));return C?B.push(jsxs(chakra.div,{className:"sui-steps__item",__css:$,children:[E,jsx(uu,{isOpen:S===F,orientation:s,children:_.props.children}),F<T.length-1?jsx(StepSeparator,{}):null]},`content-${F}`)):B.push(E),B},[]),R=Cy(a,Lv),O=(o=(r=k[S])==null?void 0:r.props)==null?void 0:o.children,h=S>=k.length?R:!C&&O?jsx(uu,{orientation:s,children:(i=(n=k[S])==null?void 0:n.props)==null?void 0:i.children}):null;return jsx(W5,{value:x,children:jsx(B5,{value:w,children:jsxs(chakra.div,b(d({ref:t,__css:x.container},y),{className:A("sui-steps",e.className),children:[jsx(Stepper,b(d({index:S,orientation:s,variant:f,colorScheme:p,size:m},v),{children:L})),h]}))})})});K5.displayName="Steps";var Iv=e=>{let s=e,{render:t,icon:r,title:o,description:n}=s,i=P(s,["render","icon","title","description"]),a=F5(i);return t?t(d(d({},a),e)):jsxs(Step,{children:[jsx(StepIndicator,{children:jsx(StepStatus,{complete:jsx(StepIcon,{}),incomplete:jsx(StepNumber,{children:r}),active:jsx(StepNumber,{})})}),jsxs(Box,{flexShrink:"0",children:[jsx(StepTitle,{children:o}),n&&jsx(StepDescription,{children:n})]}),jsx(StepSeparator,{})]})};Iv.displayName="StepsItem";var uu=e=>{let a=e,{children:t,isOpen:r=!0,orientation:o="horizontal"}=a,n=P(a,["children","isOpen","orientation"]),i=H5();return jsx(chakra.div,b(d({},n),{__css:i.content,className:A("sui-steps__content",e.className),"data-orientation":o,children:o==="vertical"?jsx(Collapse,{in:r,style:{overflow:r?"visible":"hidden"},children:jsx(chakra.div,{p:"2px",children:r?t:null})}):t}))};uu.displayName="StepsContent";var Lv=e=>{let t={};return jsx(chakra.div,b(d({__css:t},e),{className:A("sui-steps__completed",e.className)}))};Lv.displayName="StepsCompleted";var[J5,Lo]=createStylesContext("SuiTimeline");var eM=forwardRef((e,t)=>{let i=e,{children:r}=i,o=P(i,["children"]),n=Lo();return jsx(chakra.li,b(d({},o),{ref:t,__css:n.item,className:A("sui-timeline__item",e.className),children:r}))});eM.displayName="TimelineItem";forwardRef((e,t)=>{let p=e,{icon:r,children:o,isRound:n,"aria-label":i}=p,a=P(p,["icon","children","isRound","aria-label"]),s=useStyleConfig("SuiIconBadge",e),l=omitThemingProps(a),c=r||o,u=isValidElement(c)?cloneElement(c,{"aria-hidden":!0,focusable:!1}):null,f=d({display:"inline-flex",alignItems:"center",justifyContent:"center"},s);return jsx(chakra.div,b(d({ref:t,__css:f,borderRadius:n?"full":void 0,"aria-label":i},l),{className:A("sui-icon-badge",e.className),children:u}))});var Gn=typeof window!="undefined";function hM(e,t){if(Gn&&"localStorage"in window)return t===void 0?localStorage.removeItem(e):localStorage.setItem(e,t)}function Vv(e){if(Gn&&"localStorage"in window)return localStorage.getItem(e)}var gM=e=>{try{return JSON.stringify(e)}catch(t){throw new Error("useLocalStorage: failed to serialize the value to JSON")}},yM=e=>{try{return e&&JSON.parse(e)}catch(t){return e}},vM=e=>{let t=new CustomEvent("use-local-storage",{detail:e});window.dispatchEvent(t);},Nv=(e,t,r={})=>{let{serialize:o=gM,deserialize:n=yM}=r,i=bt__default.useRef(!1),[a,s]=useState(()=>{var l;return Gn?n((l=Vv(e))!=null?l:void 0):t});return useEffect(()=>{let l=c=>{let u=c instanceof CustomEvent,f=u?c.detail.key:c.key,p=u?c.detail.newValue:c.newValue;(u||c.storageArea===window.localStorage)&&f===e&&s(n(p!=null?p:void 0));};return Gn&&(window.addEventListener("storage",l),window.addEventListener("use-local-storage",l)),()=>{Gn&&(window.removeEventListener("storage",l),window.removeEventListener("use-local-storage",l));}},[]),useEffect(()=>{if(!i.current){i.current=!0;return}let l=o(a);Vv(e)!==l&&(hM(e,l),vM({key:e,newValue:l}));},[a]),[a===void 0?t:a,s]};var SM={black:"#0e1012",primary:{50:"#f6f7fd",100:"#dcdff5",200:"#bec3ed",300:"#9aa1e2",400:"#858edd",500:"#6b75d0",600:"#5a63af",700:"#484f8d",800:"#3d4377",900:"#2c3056"},grayAlpha:{50:"rgba(249, 249, 250, 0.5)",100:"rgba(241, 241, 243, 0.5)",200:"rgba(231, 231, 234, 0.5)",300:"rgba(211, 212, 216, 0.5)",400:"rgba(171, 172, 181, 0.5)",500:"rgba(124, 126, 139, 0.5)",600:"rgba(81, 84, 101, 0.5)",700:"rgba(52, 54, 67, 0.5)",800:"rgba(30, 32, 39, 0.5)",900:"rgba(24, 25, 31, 0.5)"},gray:{50:"#f9f9fa",100:"#f1f1f3",200:"#e7e7ea",300:"#d3d4d8",400:"#abacb5",500:"#7c7e8b",600:"#515465",700:"#343643",800:"#1e2027",900:"#18191f"},purple:{50:"#f9f6fd",100:"#e5daf8",200:"#d3bef4",300:"#b795ec",400:"#a379e7",500:"#8952e0",600:"#7434db",700:"#6023c0",800:"#4f1d9e",900:"#3b1676"},pink:{50:"#fdf5f9",100:"#f8d9e7",200:"#f3b9d3",300:"#eb8db8",400:"#e56ba2",500:"#dc3882",600:"#c4246c",700:"#a01d58",800:"#7d1745",900:"#5d1133"},red:{50:"#fdf6f5",100:"#f8d9d8",200:"#f1b8b4",300:"#e98d87",400:"#e4726c",500:"#dc4a41",600:"#d2140a",700:"#ac0900",800:"#930800",900:"#6d0600"},orange:{50:"#fdfaf6",100:"#f9ebdb",200:"#f1d4b1",300:"#e6b273",400:"#dc9239",500:"#c37b24",600:"#a5681e",700:"#835318",800:"#674113",900:"#553610"},yellow:{50:"#fffefb",100:"#fff8e9",200:"#feecbd",300:"#fddc87",400:"#fbc434",500:"#d2a01e",600:"#a88018",700:"#836413",800:"#624b0e",900:"#513e0c"},green:{50:"#f7fdfb",100:"#d2f2e7",200:"#9fe3cd",300:"#64d2ad",400:"#1dbd88",500:"#0ea371",600:"#0c875e",700:"#096949",800:"#07563c",900:"#064731"},teal:{50:"#f1fcfc",100:"#c0f1f4",200:"#84e4e9",300:"#2dd1da",400:"#22b2ba",500:"#1d979e",600:"#187b80",700:"#125f64",800:"#0f5053",900:"#0d4244"},cyan:{50:"#f4fbfd",100:"#d0eef7",200:"#bae7f3",300:"#a2deee",400:"#53c2e1",500:"#2ab4d9",600:"#24a2c4",700:"#1e86a2",800:"#196e85",900:"#135567"},blue:{50:"#f1f6fd",100:"#cde0f6",200:"#a8c8f0",300:"#7fafe8",400:"#5896e1",500:"#347fdb",600:"#236abf",700:"#1b5192",800:"#164278",900:"#123662"},indigo:{50:"#f8f7fc",100:"#e1ddf5",200:"#c8c0ec",300:"#a89de2",400:"#9789dc",500:"#7f6ed4",600:"#6a58c9",700:"#5546a1",800:"#483c88",900:"#342b62"}},Su=SM,wM={heading:"InterVariable, sans-serif",body:"InterVariable, sans-serif"},CM={xs:"0.75rem",sm:"0.8125rem",md:"0.875rem",lg:"1rem",xl:"1.125rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},TM={},kM={container:{sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"}},PM=kM,EM={xs:"rgb(0 0 0 / 7%) 0px 1px 1px","dark-xs":"rgb(0 0 0 / 7%) 0px 1px 1px",outline:`0 0 0 2px ${X(Su.primary[500],.6)({colors:Su})}`},$M=EM,_M={colors:{muted:{default:"gray.500",_dark:"gray.400"}}},{definePartsStyle:Uv,defineMultiStyleConfig:AM}=M(nn.keys),Bv=D("alert-fg"),jv=D("alert-bg"),wu=D("alert-border");function MM(e){let{theme:t,colorScheme:r}=e,o=X(`${r}.600`,.16)(t);return {light:`colors.${r}.100`,dark:o}}function RM(e){let{theme:t,colorScheme:r}=e,o=X(`${r}.300`,.16)(t);return {light:`colors.${r}.200`,dark:o}}var IM=Uv(e=>{let{colorScheme:t}=e,r=MM(e),o=RM(e);return {container:{borderWidth:"1px",[Bv.variable]:`colors.${t}.500`,[jv.variable]:r.light,[wu.variable]:o.light,_dark:{[Bv.variable]:`colors.${t}.500`,[jv.variable]:r.dark,[wu.variable]:o.dark}}}}),LM=Uv(()=>({container:{borderColor:wu.reference,borderRadius:"md",fontSize:"sm"},icon:{w:4,h:5},title:{fontSize:"sm",fontWeight:"medium"},description:{color:"muted"}})),OM=AM({defaultProps:{size:"sm",colorScheme:"primary"},baseStyle:LM,variants:{subtle:IM}}),Yv=e=>{let{colorScheme:t,colorMode:r}=e,o=`${t}.500`,n=`${t}.600`;return t==="neutral"&&r==="dark"?(o="white",n="whiteAlpha.800"):t==="neutral"&&(o="black",n="blackAlpha.800"),{borderWidth:"1px",borderColor:o,boxShadow:"xs",bg:o,color:"white",fontWeight:"medium",_hover:{borderColor:n,bg:n},_dark:{boxShadow:"dark-xs"}}},DM=e=>({fontWeight:"medium",_checked:{bg:"blackAlpha.100"},_dark:{_checked:{bg:"whiteAlpha.100"}}}),VM=e=>{let{colorScheme:t}=e;return t==="gray"?{fontWeight:"medium"}:{fontWeight:"medium",color:`${t}.500`,_hover:{color:`${t}.400`,bg:"blackAlpha.50"},_dark:{color:`${t}.500`,_hover:{color:`${t}.400`,bg:"whiteAlpha.50"}}}},NM=e=>Yv(b(d({},e),{colorScheme:"primary"})),BM={borderWidth:"1px",borderColor:"gray.200",boxShadow:"xs",bg:"white",fontWeight:"medium",color:"inherit",_hover:{borderColor:"gray.300",bg:"gray.50"},_dark:{boxShadow:"dark-xs",borderColor:"gray.600",bg:"gray.700",_hover:{borderColor:"gray.500",bg:"gray.600"}}},jM={borderWidth:"1px",borderColor:"gray.200",bg:"gray.200",color:"black",fontWeight:"medium",_hover:{borderColor:"gray.300",bg:"gray.200"},_dark:{borderColor:"gray.700",bg:"gray.700",color:"white",_hover:{borderColor:"gray.600"}}},zM={lg:{h:"8",minW:"10",fontSize:"md",px:"4",rounded:"6"},md:{h:"7",minW:"8",fontSize:"sm",px:"3",rounded:"4"},sm:{h:"6",minW:"6",fontSize:"sm",px:"2",rounded:"3"},xs:{h:"5",minW:"4",fontSize:"xs",px:"1",rounded:"3"}},FM={defaultProps:{size:"md",variant:"secondary"},variants:{solid:Yv,outline:VM,ghost:DM,primary:NM,secondary:BM,tertiary:jM},sizes:zM},qv=N("card").parts("container","header","title","subtitle","body","footer"),{definePartsStyle:js}=M(qv.keys),WM=D("card-bg"),yu=D("card-padding"),HM=D("card-shadow"),vu=D("card-radius"),KM=D("card-border-width","0"),Ds=D("card-border-color"),GM={sm:js({container:{[vu.variable]:"radii.base",[yu.variable]:"space.3"}}),md:js({container:{[vu.variable]:"radii.md",[yu.variable]:"space.4"}}),lg:js({container:{[vu.variable]:"radii.xl",[yu.variable]:"space.6"}})},zv=js(e=>{let{isHoverable:t}=e;return {container:{[Ds.variable]:"colors.blackAlpha.200",[KM.variable]:"1px",[HM.variable]:"shadows.sm",_hover:t?{[Ds.variable]:"colors.blackAlpha.300"}:{},_dark:{[WM.variable]:"colors.gray.700",[Ds.variable]:"colors.whiteAlpha.50",_hover:t?{[Ds.variable]:"colors.whiteAlpha.300"}:{}}}}}),UM={parts:qv.keys,defaultProps:{variant:"elevated"},variants:{elevated:zv,shadow:zv},sizes:GM},YM={baseStyle:e=>{let{colorScheme:t}=e;return {control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}}},qM={size:"sm"},XM={defaultProps:qM},{defineMultiStyleConfig:ZM,definePartsStyle:JM}=M(xl.keys),Fv=D("drawer-bg"),QM={bg:"blackAlpha.50"},eR=e=>({borderRadius:"md",margin:"8px",borderWidth:"1px",borderColor:"chakra-border-color",backdropFilter:"blur(10px) contrast(100%) saturate(100%) brightness(200%)",[Fv.variable]:"colors.whiteAlpha.800",fontSize:"md",_dark:{backdropFilter:"blur(10px) saturate(190%) contrast(70%) brightness(80%)",[Fv.variable]:"colors.grayAlpha.700"}}),tR={px:"4",py:"3",fontSize:"md",fontWeight:"semibold"},rR={position:"absolute",top:"2",insetEnd:"3"},oR=e=>({px:"4",py:"2"}),nR={px:"3",py:"3"},iR=JM(e=>({overlay:QM,dialog:ue(eR,e),header:tR,closeButton:rR,body:ue(oR,e),footer:nR})),aR=ZM({baseStyle:iR}),sR=aR,lR={defaultProps:{size:"lg"}},bu=D("kbd-bg"),cR={[bu.variable]:"colors.blackAlpha.300",_dark:{[bu.variable]:"colors.whiteAlpha.300"},bg:bu.reference,borderRadius:"md",borderWidth:"0",borderBottomWidth:"0",padding:"1px",minW:"20px",textAlign:"center",":last-child":{mr:0}},uR={defaultProps:{variant:"solid"},baseStyle:cR},fR=uR,{defineMultiStyleConfig:dR,definePartsStyle:pR}=M(an.keys),Je=D("menu-bg"),xu=D("menu-shadow"),mR={[Je.variable]:"colors.whiteAlpha.500",[xu.variable]:"shadows.lg",backdropFilter:"blur(10px) contrast(100%) saturate(190%)",_dark:{[Je.variable]:"colors.grayAlpha.700",[xu.variable]:"shadows.dark-lg",backdropFilter:"blur(10px) saturate(190%) contrast(70%) brightness(80%)"},py:"1",borderRadius:"md",borderWidth:"1px",bg:Je.reference,boxShadow:xu.reference},hR={py:"1.5",px:"3",mx:"1",rounded:"md",fontSize:"sm",width:"calc(100% - 8px)",boxSizing:"border-box",bg:"transparent",_hover:{bg:Je.reference,[Je.variable]:"colors.grayAlpha.300"},_focus:{bg:Je.reference,[Je.variable]:"colors.grayAlpha.300"},_active:{bg:Je.reference,[Je.variable]:"colors.grayAlpha.300"},_expanded:{bg:Je.reference,[Je.variable]:"colors.grayAlpha.300"}},gR={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},yR={transitionProperty:"common",transitionDuration:"normal"},vR={my:"1"},bR=pR({button:yR,list:mR,item:hR,groupTitle:gR,divider:vR}),xR=dR({baseStyle:bR}),SR=xR,{defineMultiStyleConfig:wR,definePartsStyle:CR}=M(sn.keys),TR={bg:"blackAlpha.50"},kR=e=>({bg:"whiteAlpha.800",backdropFilter:"blur(10px) contrast(100%) saturate(100%) brightness(200%)",fontSize:"md",_dark:{bg:"grayAlpha.700",boxShadow:"dark-lg",backdropFilter:"blur(10px) saturate(190%) contrast(70%) brightness(80%)"}}),PR={px:"4",py:"3",fontSize:"md",fontWeight:"semibold"},ER={position:"absolute",top:"2",insetEnd:"3"},$R=e=>({px:"4",py:"2"}),_R={px:"3",py:"3"},AR=CR(e=>({overlay:TR,dialog:ue(kR,e),header:PR,closeButton:ER,body:ue($R,e),footer:_R})),MR=wR({baseStyle:AR,defaultProps:{size:"md"}}),RR=MR,{defineMultiStyleConfig:IR}=M(ln.keys),LR=IR({defaultProps:{colorScheme:"primary"},baseStyle:e=>{let{colorScheme:t}=e;return {track:{borderRadius:"md",bg:"gray.200",_dark:{bg:"gray.800"}},filledTrack:{bg:`${t}.500`}}}}),{defineMultiStyleConfig:OR,definePartsStyle:DR}=M(wl.keys),Vs=D("popper-bg"),VR=D("popper-arrow-bg"),Wv=D("popper-arrow-shadow-color"),NR={[Vs.variable]:"colors.whiteAlpha.800",bg:Vs.reference,[VR.variable]:Vs.reference,[Wv.variable]:"colors.gray.200",backdropFilter:"blur(10px) contrast(100%) saturate(100%) brightness(200%)",_dark:{[Vs.variable]:"colors.grayAlpha.700",[Wv.variable]:"colors.whiteAlpha.300",backdropFilter:"blur(10px) saturate(190%) contrast(70%) brightness(80%)"}},BR=DR(e=>({content:ue(NR,e)})),jR=OR({baseStyle:BR,defaultProps:{size:"md"}}),zR=jR,FR={baseStyle:e=>{let{colorScheme:t}=e;return {control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}}},WR={defaultProps:{colorScheme:"primary"},baseStyle:e=>{let{colorScheme:t}=e;return {filledTrack:{bg:`${t}.500`}}}},{defineMultiStyleConfig:HR,definePartsStyle:KR}=M(cn.keys),Un=Xe("switch-bg"),GR=e=>{let{colorScheme:t}=e;return {[Un.variable]:"colors.gray.300",_dark:{[Un.variable]:"colors.whiteAlpha.300"},_checked:{[Un.variable]:`colors.${t}.500`,_dark:{[Un.variable]:`colors.${t}.500`}},bg:Un.reference}},UR={bg:"white",_dark:{bg:"blackAlpha.800",_checked:{bg:"white"}}},YR=KR(e=>({track:GR(e),thumb:UR})),qR=HR({baseStyle:YR,defaultProps:{size:"md",colorScheme:"primary"}}),XR=qR,Ns=Xe("tooltip-bg"),Hv=Xe("tooltip-fg"),ZR=Xe("popper-arrow-bg"),JR=e=>({display:"flex",[Ns.variable]:"colors.white",[Hv.variable]:"colors.blackAlpha.900",_dark:{[Ns.variable]:"colors.gray.700",[Hv.variable]:"colors.whiteAlpha.900"},px:"8px",py:"2px",bg:[Ns.reference],[ZR.variable]:[Ns.reference],borderRadius:"sm",fontWeight:"medium",fontSize:"xs",boxShadow:"md",maxW:"320px",zIndex:"tooltip",borderWidth:"1px"}),QR={baseStyle:JR},{definePartsStyle:e3}=M(Zt.keys);function t3(e){let{focusBorderColor:t,errorBorderColor:r}=e;return {focusBorderColor:t||ee("blue.500","blue.300")(e),errorBorderColor:r||ee("red.500","red.300")(e)}}var Kv=D("input-border-radius"),Bs=D("input-height"),Gv=D("input-padding"),Xv=e3(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:o}=t3(e);return {field:{border:"1px solid var(--chakra-colors-chakra-border-color)",bg:"inherit",_hover:{borderColor:"gray.300"},_invalid:{borderColor:ce(t,o),boxShadow:"none"},_focusVisible:{zIndex:1,borderColor:ce(t,r),boxShadow:"none"},_dark:{bg:"gray.900",borderColor:"chakra-border-color",_hover:{borderColor:"whiteAlpha.400"},_invalid:{borderColor:ce(t,o)},_focusVisible:{borderColor:ce(t,r)}}},addon:{borderColor:"inherit",bg:"gray.100",_dark:{borderColor:"whiteAlpha.50",bg:"whiteAlpha.300"}}}}),Zv={sm:{field:{[Kv.variable]:"radii.sm",[Bs.variable]:"sizes.7"},addon:{[Kv.variable]:"radii.sm",[Bs.variable]:"sizes.7"}},md:{field:{[Gv.variable]:"space.3",[Bs.variable]:"sizes.9"},addon:{[Gv.variable]:"space.3",[Bs.variable]:"sizes.9"}}},Jv={defaultProps:{variant:"outline",size:"sm",focusBorderColor:"primary.500"},variants:{outline:Xv},sizes:Zv},r3={baseStyle:{mb:1},variants:{horizontal:{mb:0,marginStart:"0.5rem"}}},Cu=Jv,o3=Jv,n3={defaultProps:{focusBorderColor:"primary.500"},variants:{outline:Xv},sizes:Zv},i3={defaultProps:{focusBorderColor:"primary.500"},variants:{outline:e=>{var t,r;return (r=(t=Cu.variants)==null?void 0:t.outline(e).field)!=null?r:{}}}},a3=Cu,s3={Alert:OM,Button:FM,Card:UM,Checkbox:YM,CloseButton:XM,Drawer:sR,Heading:lR,Kbd:fR,Menu:SR,Modal:RR,Progress:LR,Popover:zR,Radio:FR,Slider:WR,Switch:XR,Tooltip:QR,Input:Cu,PinInput:n3,FormLabel:r3,NumberInput:o3,Select:a3,Textarea:i3},Qv=extendTheme({colors:Su,fonts:wM,fontSizes:CM,textStyles:TM,sizes:PM,components:s3,shadows:$M,semanticTokens:_M},withDefaultColorScheme({colorScheme:"primary",components:["Radio","Switch","Checkbox"]}));var u3=extendTheme(Qv,bn),f3=()=>{let[e,t]=Nv("storybook.theme","1");return bt.useEffect(()=>{let r=addons.getChannel(),o=n=>{t(n);};return r.on(ct.SET_THEME,o),()=>{r.removeListener(ct.SET_THEME,o);}},[t]),e},GZ=makeDecorator({name:"ChakraProviderDecorator",parameterName:"chakra",skipIfNoParametersOrOptions:!1,wrapper:(e,t,{parameters:r})=>{let {parameters:{saasui:o},globals:{[Vu]:n}}=t,i=f3(),a=bt.useCallback(()=>{switch(i){case"1":return bn;case"2":return u3;default:return zl}},[i]),s=(o==null?void 0:o.theme)||a();!!(o!=null&&o.theme);let c=o!=null&&o.theme?typeof o.theme=="function"?o.theme(t):o.theme:s,u=ju(n||(c==null?void 0:c.direction)),f=bt.useMemo(()=>extendTheme({direction:u,styles:{global:{body:{minHeight:"var(--chakra-vh)"}}}},c),[c,u]);return jsxs(Jy,b(d({},o),{theme:f,children:[jsx(Nu,{}),e(t)]}))}});/*! Bundled license information:
16
-
17
- react-is/cjs/react-is.production.min.js:
18
- (** @license React v16.13.1
19
- * react-is.production.min.js
20
- *
21
- * Copyright (c) Facebook, Inc. and its affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- *)
26
- */
27
-
28
- export { GZ as ChakraProviderDecorator };
29
- //# sourceMappingURL=out.js.map
30
- //# sourceMappingURL=ChakraProviderDecorator.mjs.map