From 99ae77bf09a0a51a748d0309aa7480d1f6f67eb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Toro=20C=C3=A1rdenas?= <67610317+deCaldas@users.noreply.github.com> Date: Fri, 20 Sep 2024 16:03:18 -0500 Subject: [PATCH] [UPDATE] Matrix rain --- components/MatrixRain.jsx | 5 ++++- out/404.html | 2 +- .../index.json | 0 .../portfolio.json | 0 .../portfolio/forSale.json | 0 .../portfolio/webPage.json | 0 .../_buildManifest.js | 2 +- .../_ssgManifest.js | 0 ...-0b8f213fda5b2a96.js => _app-d7d5756ea15b7324.js} | 12 ++++++------ ...d746928726b1748a.js => index-e4839262ce12c939.js} | 2 +- out/index.html | 2 +- out/portfolio.html | 2 +- out/portfolio/forSale.html | 2 +- out/portfolio/webPage.html | 2 +- 14 files changed, 17 insertions(+), 14 deletions(-) rename out/_next/data/{le1YE_lzi6s_unEZKSRsj => VT-sulyWp43rhLDTDrLl3}/index.json (100%) rename out/_next/data/{le1YE_lzi6s_unEZKSRsj => VT-sulyWp43rhLDTDrLl3}/portfolio.json (100%) rename out/_next/data/{le1YE_lzi6s_unEZKSRsj => VT-sulyWp43rhLDTDrLl3}/portfolio/forSale.json (100%) rename out/_next/data/{le1YE_lzi6s_unEZKSRsj => VT-sulyWp43rhLDTDrLl3}/portfolio/webPage.json (100%) rename out/_next/static/{le1YE_lzi6s_unEZKSRsj => VT-sulyWp43rhLDTDrLl3}/_buildManifest.js (90%) rename out/_next/static/{le1YE_lzi6s_unEZKSRsj => VT-sulyWp43rhLDTDrLl3}/_ssgManifest.js (100%) rename out/_next/static/chunks/pages/{_app-0b8f213fda5b2a96.js => _app-d7d5756ea15b7324.js} (97%) rename out/_next/static/chunks/pages/{index-d746928726b1748a.js => index-e4839262ce12c939.js} (97%) diff --git a/components/MatrixRain.jsx b/components/MatrixRain.jsx index 502a7e0..d63479f 100644 --- a/components/MatrixRain.jsx +++ b/components/MatrixRain.jsx @@ -4,7 +4,10 @@ const MatrixRain = () => { useEffect(() => { const canvas = document.querySelector('#my-canvas') const context = canvas.getContext('2d') - const content = 'Whiskey Diego 是一名 Web 開發人員和資料工程師。'.split('') + const content = + '我叫 Diego Whiskey,是一名數位行銷人員、Web 開發人員和資料工程師,專門研究 JavaScript 和 Node.js'.split( + '' + ) const matrixRain = () => { const { width, height } = canvas diff --git a/out/404.html b/out/404.html index d28589a..41f231c 100644 --- a/out/404.html +++ b/out/404.html @@ -1 +1 @@ -Diego's Homepage

Not found

The page you're looking for was not found.


Return to homepage
\ No newline at end of file +Diego's Homepage

Not found

The page you're looking for was not found.


Return to homepage
\ No newline at end of file diff --git a/out/_next/data/le1YE_lzi6s_unEZKSRsj/index.json b/out/_next/data/VT-sulyWp43rhLDTDrLl3/index.json similarity index 100% rename from out/_next/data/le1YE_lzi6s_unEZKSRsj/index.json rename to out/_next/data/VT-sulyWp43rhLDTDrLl3/index.json diff --git a/out/_next/data/le1YE_lzi6s_unEZKSRsj/portfolio.json b/out/_next/data/VT-sulyWp43rhLDTDrLl3/portfolio.json similarity index 100% rename from out/_next/data/le1YE_lzi6s_unEZKSRsj/portfolio.json rename to out/_next/data/VT-sulyWp43rhLDTDrLl3/portfolio.json diff --git a/out/_next/data/le1YE_lzi6s_unEZKSRsj/portfolio/forSale.json b/out/_next/data/VT-sulyWp43rhLDTDrLl3/portfolio/forSale.json similarity index 100% rename from out/_next/data/le1YE_lzi6s_unEZKSRsj/portfolio/forSale.json rename to out/_next/data/VT-sulyWp43rhLDTDrLl3/portfolio/forSale.json diff --git a/out/_next/data/le1YE_lzi6s_unEZKSRsj/portfolio/webPage.json b/out/_next/data/VT-sulyWp43rhLDTDrLl3/portfolio/webPage.json similarity index 100% rename from out/_next/data/le1YE_lzi6s_unEZKSRsj/portfolio/webPage.json rename to out/_next/data/VT-sulyWp43rhLDTDrLl3/portfolio/webPage.json diff --git a/out/_next/static/le1YE_lzi6s_unEZKSRsj/_buildManifest.js b/out/_next/static/VT-sulyWp43rhLDTDrLl3/_buildManifest.js similarity index 90% rename from out/_next/static/le1YE_lzi6s_unEZKSRsj/_buildManifest.js rename to out/_next/static/VT-sulyWp43rhLDTDrLl3/_buildManifest.js index ac068c1..fd153da 100644 --- a/out/_next/static/le1YE_lzi6s_unEZKSRsj/_buildManifest.js +++ b/out/_next/static/VT-sulyWp43rhLDTDrLl3/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST=function(e){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[e,"static/chunks/pages/index-d746928726b1748a.js"],"/404":["static/chunks/pages/404-c912757db2feb1cd.js"],"/_error":["static/chunks/pages/_error-ee5b5fb91d29d86f.js"],"/portfolio":[e,"static/chunks/pages/portfolio-aa45d2f75bc772e7.js"],"/portfolio/forSale":["static/chunks/pages/portfolio/forSale-6c71f0c07b4543a6.js"],"/portfolio/webPage":["static/chunks/pages/portfolio/webPage-742bde8c2558f9eb.js"],sortedPages:["/","/404","/_app","/_error","/portfolio","/portfolio/forSale","/portfolio/webPage"]}}("static/chunks/675-67bdaa0e55284a2f.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file +self.__BUILD_MANIFEST=function(e){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[e,"static/chunks/pages/index-e4839262ce12c939.js"],"/404":["static/chunks/pages/404-c912757db2feb1cd.js"],"/_error":["static/chunks/pages/_error-ee5b5fb91d29d86f.js"],"/portfolio":[e,"static/chunks/pages/portfolio-aa45d2f75bc772e7.js"],"/portfolio/forSale":["static/chunks/pages/portfolio/forSale-6c71f0c07b4543a6.js"],"/portfolio/webPage":["static/chunks/pages/portfolio/webPage-742bde8c2558f9eb.js"],sortedPages:["/","/404","/_app","/_error","/portfolio","/portfolio/forSale","/portfolio/webPage"]}}("static/chunks/675-67bdaa0e55284a2f.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/out/_next/static/le1YE_lzi6s_unEZKSRsj/_ssgManifest.js b/out/_next/static/VT-sulyWp43rhLDTDrLl3/_ssgManifest.js similarity index 100% rename from out/_next/static/le1YE_lzi6s_unEZKSRsj/_ssgManifest.js rename to out/_next/static/VT-sulyWp43rhLDTDrLl3/_ssgManifest.js diff --git a/out/_next/static/chunks/pages/_app-0b8f213fda5b2a96.js b/out/_next/static/chunks/pages/_app-d7d5756ea15b7324.js similarity index 97% rename from out/_next/static/chunks/pages/_app-0b8f213fda5b2a96.js rename to out/_next/static/chunks/pages/_app-d7d5756ea15b7324.js index e4473e0..d86fec8 100644 --- a/out/_next/static/chunks/pages/_app-0b8f213fda5b2a96.js +++ b/out/_next/static/chunks/pages/_app-d7d5756ea15b7324.js @@ -1,4 +1,4 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{8417:function(e,t,n){"use strict";n.d(t,{Z:function(){return createCache}});var i=function(){function StyleSheet(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var e=StyleSheet.prototype;return e.hydrate=function(e){e.forEach(this._insertTag)},e.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?f[x]+" "+S:Utility_replace(S,/&\f/g,f[x])).trim())&&(u[b++]=k);return node(e,t,n,0===a?y:c,u,d,p)}function declaration(e,t,n,i){return node(e,t,n,b,Utility_substr(e,0,i),Utility_substr(e,i+1,-1),i)}var identifierWithPointTracking=function(e,t,n){for(var i=0,o=0;i=o,o=peek(),38===i&&12===o&&(t[n]=1),!token(o);)next();return Utility_substr(h,e,d)},toRules=function(e,t){var n=-1,i=44;do switch(token(i)){case 0:38===i&&12===peek()&&(t[n]=1),e[n]+=identifierWithPointTracking(d-1,t,n);break;case 2:e[n]+=delimit(i);break;case 4:if(44===i){e[++n]=58===peek()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=a(i)}while(i=next());return e},getRules=function(e,t){var n;return n=toRules(alloc(e),t),h="",n},S=new WeakMap,compat=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,i=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||S.get(n))&&!i){S.set(e,!0);for(var o=[],a=getRules(t,o),s=n.props,l=0,c=0;l-1&&!e.return)switch(e.type){case b:e.return=function emotion_cache_browser_esm_prefix(e,t){switch(45^Utility_charat(e,0)?(((t<<2^Utility_charat(e,0))<<2^Utility_charat(e,1))<<2^Utility_charat(e,2))<<2^Utility_charat(e,3):0){case 5103:return g+"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 g+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return g+e+m+e+f+e+e;case 6828:case 4268:return g+e+f+e+e;case 6165:return g+e+f+"flex-"+e+e;case 5187:return g+e+Utility_replace(e,/(\w+).+(:[^]+)/,g+"box-$1$2"+f+"flex-$1$2")+e;case 5443:return g+e+f+"flex-item-"+Utility_replace(e,/flex-|-self/,"")+e;case 4675:return g+e+f+"flex-line-pack"+Utility_replace(e,/align-content|flex-|-self/,"")+e;case 5548:return g+e+f+Utility_replace(e,"shrink","negative")+e;case 5292:return g+e+f+Utility_replace(e,"basis","preferred-size")+e;case 6060:return g+"box-"+Utility_replace(e,"-grow","")+g+e+f+Utility_replace(e,"grow","positive")+e;case 4554:return g+Utility_replace(e,/([^-])(transform)/g,"$1"+g+"$2")+e;case 6187:return Utility_replace(Utility_replace(Utility_replace(e,/(zoom-|grab)/,g+"$1"),/(image-set)/,g+"$1"),e,"")+e;case 5495:case 3959:return Utility_replace(e,/(image-set\([^]*)/,g+"$1$`$1");case 4968:return Utility_replace(Utility_replace(e,/(.+:)(flex-)?(.*)/,g+"box-pack:$3"+f+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+g+e+e;case 4095:case 3583:case 4068:case 2532:return Utility_replace(e,/(.+)-inline(.+)/,g+"$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(Utility_strlen(e)-1-t>6)switch(Utility_charat(e,t+1)){case 109:if(45!==Utility_charat(e,t+4))break;case 102:return Utility_replace(e,/(.+:)(.+)-([^]+)/,"$1"+g+"$2-$3$1"+m+(108==Utility_charat(e,t+3)?"$3":"$2-$3"))+e;case 115:return~indexof(e,"stretch")?emotion_cache_browser_esm_prefix(Utility_replace(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Utility_charat(e,t+1))break;case 6444:switch(Utility_charat(e,Utility_strlen(e)-3-(~indexof(e,"!important")&&10))){case 107:return Utility_replace(e,":",":"+g)+e;case 101:return Utility_replace(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+g+(45===Utility_charat(e,14)?"inline-":"")+"box$3$1"+g+"$2$3$1"+f+"$2box$3")+e}break;case 5936:switch(Utility_charat(e,t+11)){case 114:return g+e+f+Utility_replace(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return g+e+f+Utility_replace(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return g+e+f+Utility_replace(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return g+e+f+e+e}return e}(e.value,e.length);break;case x:return Serializer_serialize([Tokenizer_copy(e,{value:Utility_replace(e.value,"@","@"+g)})],i);case y:if(e.length)return e.props.map(function(t){var n;switch(n=t,(n=/(::plac\w+|:read-\w+)/.exec(n))?n[0]:n){case":read-only":case":read-write":return Serializer_serialize([Tokenizer_copy(e,{props:[Utility_replace(t,/:(read-\w+)/,":"+m+"$1")]})],i);case"::placeholder":return Serializer_serialize([Tokenizer_copy(e,{props:[Utility_replace(t,/:(plac\w+)/,":"+g+"input-$1")]}),Tokenizer_copy(e,{props:[Utility_replace(t,/:(plac\w+)/,":"+m+"$1")]}),Tokenizer_copy(e,{props:[Utility_replace(t,/:(plac\w+)/,f+"input-$1")]})],i)}return""}).join("")}}],createCache=function(e){var t,n,o,s,u,f=e.key;if("css"===f){var m=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(m,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var g=e.stylisPlugins||k,y={},b=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+f+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n2||token(p)>3?"":" "}(w);break;case 92:O+=function(e,t){for(var n;--t&&next()&&!(p<48)&&!(p>102)&&(!(p>57)||!(p<65))&&(!(p>70)||!(p<97)););return n=d+(t<6&&32==peek()&&32==next()),Utility_substr(h,e,n)}(d-1,7);continue;case 47:switch(peek()){case 42:case 47:Utility_append(node(g=function(e,t){for(;next();)if(e+p===57)break;else if(e+p===84&&47===peek())break;return"/*"+Utility_substr(h,t,d-1)+"*"+a(47===e?e:next())}(next(),d),t,n,v,a(p),Utility_substr(g,2,-2),0),m);break;default:O+="/"}break;case 123*_:f[y++]=Utility_strlen(O)*T;case 125*_:case 59:case 0:switch(P){case 0:case 125:C=0;case 59+b:-1==T&&(O=Utility_replace(O,/\f/g,"")),k>0&&Utility_strlen(O)-x&&Utility_append(k>32?declaration(O+";",i,n,x-1):declaration(Utility_replace(O," ","")+";",i,n,x-2),m);break;case 59:O+=";";default:if(Utility_append(M=ruleset(O,t,n,y,b,o,f,E,j=[],R=[],x),s),123===P){if(0===b)parse(O,t,M,M,j,s,x,f,R);else switch(99===S&&110===Utility_charat(O,3)?100:S){case 100:case 108:case 109:case 115:parse(e,M,M,i&&Utility_append(ruleset(e,M,M,0,0,o,f,E,o,j=[],x),R),o,R,x,f,i?j:R);break;default:parse(O,M,M,M,[""],R,0,f,R)}}}y=b=k=0,_=T=1,E=O="",x=u;break;case 58:x=1+Utility_strlen(O),k=w;default:if(_<1){if(123==P)--_;else if(125==P&&0==_++&&125==(p=d>0?Utility_charat(h,--d):0,c--,10===p&&(c=1,l--),p))continue}switch(O+=a(P),P*_){case 38:T=b>0?1:(O+="\f",-1);break;case 44:f[y++]=(Utility_strlen(O)-1)*T,T=1;break;case 64:45===peek()&&(O+=delimit(next())),S=peek(),b=x=Utility_strlen(E=O+=function(e){for(;!token(peek());)next();return Utility_substr(h,e,d)}(d)),P++;break;case 45:45===w&&2==Utility_strlen(O)&&(_=0)}}return s}("",null,null,null,[""],t=alloc(t=e),0,[0],t),h="",n),x)},S={key:f,sheet:new i({key:f,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:y,registered:{},insert:function(e,t,n,i){u=n,stylis(e?e+"{"+t.styles+"}":t.styles),i&&(S.inserted[t.name]=!0)}};return S.sheet.hydrate(b),S}},5042:function(e,t,n){"use strict";function memoize(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{Z:function(){return memoize}})},1683:function(e,t,n){"use strict";n.d(t,{T:function(){return l},a:function(){return ThemeProvider},w:function(){return withEmotionCache}});var i=n(7294),o=n(8417),a=n(7462),weakMemoize=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var i=e(n);return t.set(n,i),i}};n(8137),n(7278);var s=(0,i.createContext)("undefined"!=typeof HTMLElement?(0,o.Z)({key:"css"}):null);s.Provider;var withEmotionCache=function(e){return(0,i.forwardRef)(function(t,n){return e(t,(0,i.useContext)(s),n)})},l=(0,i.createContext)({}),c=weakMemoize(function(e){return weakMemoize(function(t){return"function"==typeof t?t(e):(0,a.Z)({},e,t)})}),ThemeProvider=function(e){var t=(0,i.useContext)(l);return e.theme!==t&&(t=c(t)(e.theme)),(0,i.createElement)(l.Provider,{value:t},e.children)}},917:function(e,t,n){"use strict";n.d(t,{F4:function(){return keyframes},xB:function(){return c}});var i=n(7294);n(8417);var o=n(1683);n(8679);var a=n(444),s=n(8137),l=n(7278),c=(0,o.w)(function(e,t){var n=e.styles,c=(0,s.O)([n],void 0,(0,i.useContext)(o.T)),u=(0,i.useRef)();return(0,l.j)(function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,o=document.querySelector('style[data-emotion="'+e+" "+c.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==o&&(i=!0,o.setAttribute("data-emotion",e),n.hydrate([o])),u.current=[n,i],function(){n.flush()}},[t]),(0,l.j)(function(){var e=u.current,n=e[0];if(e[1]){e[1]=!1;return}if(void 0!==c.next&&(0,a.My)(t,c.next,!0),n.tags.length){var i=n.tags[n.tags.length-1].nextElementSibling;n.before=i,n.flush()}t.insert("",c,n,!1)},[t,c.name]),null});function css(){for(var e=arguments.length,t=Array(e),n=0;n=4;++i,o-=4)t=(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(255&e.charCodeAt(i+2))<<16;case 2:n^=(255&e.charCodeAt(i+1))<<8;case 1:n^=255&e.charCodeAt(i),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(s)+d,styles:s,next:i}}},6829:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var i=n(7294),o=n(7462),a=n(5042),s=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|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)-.*))$/,l=(0,a.Z)(function(e){return s.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),c=n(1683),u=n(444),d=n(8137),p=n(7278),testOmitPropsOnComponent=function(e){return"theme"!==e},getDefaultShouldForwardProp=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?l:testOmitPropsOnComponent},composeShouldForwardProps=function(e,t,n){var i;if(t){var o=t.shouldForwardProp;i=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof i&&n&&(i=e.__emotion_forwardProp),i},Insertion=function(e){var t=e.cache,n=e.serialized,i=e.isStringTag;return(0,u.hC)(t,n,i),(0,p.L)(function(){return(0,u.My)(t,n,i)}),null},h=(function createStyled(e,t){var n,a,s=e.__emotion_real===e,l=s&&e.__emotion_base||e;void 0!==t&&(n=t.label,a=t.target);var p=composeShouldForwardProps(e,t,s),h=p||getDefaultShouldForwardProp(l),f=!h("as");return function(){var m=arguments,g=s&&void 0!==e.__emotion_styles?e.__emotion_styles.slice(0):[];if(void 0!==n&&g.push("label:"+n+";"),null==m[0]||void 0===m[0].raw)g.push.apply(g,m);else{g.push(m[0][0]);for(var v=m.length,y=1;y-1},ListCache.prototype.set=function(e,t){var n=this.__data__,i=assocIndexOf(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},MapCache.prototype.clear=function(){this.size=0,this.__data__={hash:new Hash,map:new(et||ListCache),string:new Hash}},MapCache.prototype.delete=function(e){var t=getMapData(this,e).delete(e);return this.size-=t?1:0,t},MapCache.prototype.get=function(e){return getMapData(this,e).get(e)},MapCache.prototype.has=function(e){return getMapData(this,e).has(e)},MapCache.prototype.set=function(e,t){var n=getMapData(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Stack.prototype.clear=function(){this.__data__=new ListCache,this.size=0},Stack.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Stack.prototype.get=function(e){return this.__data__.get(e)},Stack.prototype.has=function(e){return this.__data__.has(e)},Stack.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ListCache){var i=n.__data__;if(!et||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new MapCache(i)}return n.set(e,t),this.size=n.size,this};var baseFor=function(e,t,n){for(var i=-1,o=Object(e),a=n(e),s=a.length;s--;){var l=a[++i];if(!1===t(o[l],l,o))break}return e};function baseGetTag(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Y&&Y in Object(e)?function(e){var t=V.call(e,Y),n=e[Y];try{e[Y]=void 0;var i=!0}catch(e){}var o=F.call(e);return i&&(t?e[Y]=n:delete e[Y]),o}(e):F.call(e)}function baseIsArguments(e){return isObjectLike(e)&&baseGetTag(e)==m}function getMapData(e,t){var n,i=e.__data__;return("string"==(n=typeof t)||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t)?i["string"==typeof t?"string":"hash"]:i.map}function getNative(e,t){var n=null==e?void 0:e[t];return!(!isObject(n)||I&&I in n)&&(isFunction(n)?N:y).test(function(e){if(null!=e){try{return B.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(n))?n:void 0}function isIndex(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&b.test(e))&&e>-1&&e%1==0&&e0){if(++o>=800)return arguments[0]}else o=0;return i.apply(void 0,arguments)});function eq(e,t){return e===t||e!=e&&t!=t}var eo=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike(e)&&V.call(e,"callee")&&!K.call(e,"callee")},ea=Array.isArray;function isArrayLike(e){return null!=e&&isLength(e.length)&&!isFunction(e)}var es=J||function(){return!1};function isFunction(e){if(!isObject(e))return!1;var t=baseGetTag(e);return t==g||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function isLength(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function isObject(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function isObjectLike(e){return null!=e&&"object"==typeof e}var el=j?function(e){return j(e)}:function(e){return isObjectLike(e)&&isLength(e.length)&&!!x[baseGetTag(e)]};function keysIn(e){return isArrayLike(e)?function(e,t){var n=ea(e),i=!n&&eo(e),o=!n&&!i&&es(e),a=!n&&!i&&!o&&el(e),s=n||i||o||a,l=s?function(e,t){for(var n=-1,i=Array(e);++n1?t[i-1]:void 0,a=i>2?t[2]:void 0;for(o=p.length>3&&"function"==typeof o?(i--,o):void 0,a&&function(e,t,n){if(!isObject(n))return!1;var i=typeof t;return("number"==i?!!(isArrayLike(n)&&isIndex(t,n.length)):"string"==i&&(t in n))&&eq(n[t],e)}(t[0],t[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);++n{})}function formatStringOrUrl(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let y=o.default.forwardRef(function(e,t){let n,i;let{href:l,as:v,children:y,prefetch:b=null,passHref:x,replace:S,shallow:k,scroll:w,locale:_,onClick:C,onMouseEnter:T,onTouchStart:P,legacyBehavior:E=!1,...j}=e;n=y,E&&("string"==typeof n||"number"==typeof n)&&(n=o.default.createElement("a",null,n));let R=o.default.useContext(d.RouterContext),M=o.default.useContext(p.AppRouterContext),O=null!=R?R:M,D=!R,B=!1!==b,V=null===b?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:I,as:F}=o.default.useMemo(()=>{if(!R){let e=formatStringOrUrl(l);return{href:e,as:v?formatStringOrUrl(v):e}}let[e,t]=(0,a.resolveHref)(R,l,!0);return{href:e,as:v?(0,a.resolveHref)(R,v):t||e}},[R,l,v]),L=o.default.useRef(I),N=o.default.useRef(F);E&&(i=o.default.Children.only(n));let $=E?i&&"object"==typeof i&&i.ref:t,[W,U,H]=(0,h.useIntersection)({rootMargin:"200px"}),G=o.default.useCallback(e=>{(N.current!==F||L.current!==I)&&(H(),N.current=F,L.current=I),W(e),$&&("function"==typeof $?$(e):"object"==typeof $&&($.current=e))},[F,$,I,H,W]);o.default.useEffect(()=>{O&&U&&B&&prefetch(O,I,F,{locale:_},{kind:V},D)},[F,I,U,_,B,null==R?void 0:R.locale,O,D,V]);let q={ref:G,onClick(e){E||"function"!=typeof C||C(e),E&&i.props&&"function"==typeof i.props.onClick&&i.props.onClick(e),O&&!e.defaultPrevented&&function(e,t,n,i,a,l,c,u,d,p){let{nodeName:h}=e.currentTarget,f="A"===h.toUpperCase();if(f&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!d&&!(0,s.isLocalURL)(n)))return;e.preventDefault();let navigate=()=>{let e=null==c||c;"beforePopState"in t?t[a?"replace":"push"](n,i,{shallow:l,locale:u,scroll:e}):t[a?"replace":"push"](i||n,{forceOptimisticNavigation:!p,scroll:e})};d?o.default.startTransition(navigate):navigate()}(e,O,I,F,S,k,w,_,D,B)},onMouseEnter(e){E||"function"!=typeof T||T(e),E&&i.props&&"function"==typeof i.props.onMouseEnter&&i.props.onMouseEnter(e),O&&(B||!D)&&prefetch(O,I,F,{locale:_,priority:!0,bypassPrefetchedCheck:!0},{kind:V},D)},onTouchStart(e){E||"function"!=typeof P||P(e),E&&i.props&&"function"==typeof i.props.onTouchStart&&i.props.onTouchStart(e),O&&(B||!D)&&prefetch(O,I,F,{locale:_,priority:!0,bypassPrefetchedCheck:!0},{kind:V},D)}};if((0,c.isAbsoluteUrl)(F))q.href=F;else if(!E||x||"a"===i.type&&!("href"in i.props)){let e=void 0!==_?_:null==R?void 0:R.locale,t=(null==R?void 0:R.isLocaleDomain)&&(0,f.getDomainLocale)(F,e,null==R?void 0:R.locales,null==R?void 0:R.domainLocales);q.href=t||(0,m.addBasePath)((0,u.addLocale)(F,e,null==R?void 0:R.defaultLocale))}return E?o.default.cloneElement(i,q):o.default.createElement("a",{...j,...q},n)}),b=y;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},920:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return useIntersection}});let i=n(7294),o=n(3436),a="function"==typeof IntersectionObserver,s=new Map,l=[];function useIntersection(e){let{rootRef:t,rootMargin:n,disabled:c}=e,u=c||!a,[d,p]=(0,i.useState)(!1),h=(0,i.useRef)(null),f=(0,i.useCallback)(e=>{h.current=e},[]);(0,i.useEffect)(()=>{if(a){if(u||d)return;let e=h.current;if(e&&e.tagName){let i=function(e,t,n){let{id:i,observer:o,elements:a}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},i=l.find(e=>e.root===n.root&&e.margin===n.margin);if(i&&(t=s.get(i)))return t;let o=new Map,a=new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:a,elements:o},l.push(n),s.set(n,t),t}(n);return a.set(e,t),o.observe(e),function(){if(a.delete(e),o.unobserve(e),0===a.size){o.disconnect(),s.delete(i);let e=l.findIndex(e=>e.root===i.root&&e.margin===i.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&p(e),{root:null==t?void 0:t.current,rootMargin:n});return i}}else if(!d){let e=(0,o.requestIdleCallback)(()=>p(!0));return()=>(0,o.cancelIdleCallback)(e)}},[u,n,t,d,h.current]);let m=(0,i.useCallback)(()=>{p(!1)},[]);return[f,d,m]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},597:function(e,t,n){var i=n(3454);n(1479);var o=n(7294),a=o&&"object"==typeof o&&"default"in o?o:{default:o};function _defineProperties(e,t){for(var n=0;n>>0},c={};function computeId(e,t){if(!t)return"jsx-"+e;var n=String(t),i=e+n;return c[i]||(c[i]="jsx-"+stringHash(e+"-"+n)),c[i]}function computeSelector(e,t){var n=e+t;return c[n]||(c[n]=t.replace(/__jsx-style-dynamic-selector/g,e)),c[n]}var u=function(){function StyleSheetRegistry(e){var t=void 0===e?{}:e,n=t.styleSheet,i=void 0===n?null:n,o=t.optimizeForSpeed,a=void 0!==o&&o;this._sheet=i||new l({name:"styled-jsx",optimizeForSpeed:a}),this._sheet.inject(),i&&"boolean"==typeof a&&(this._sheet.setOptimizeForSpeed(a),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var e=StyleSheetRegistry.prototype;return e.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var n=this.getIdAndRules(e),i=n.styleId,o=n.rules;if(i in this._instancesCounts){this._instancesCounts[i]+=1;return}var a=o.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[i]=a,this._instancesCounts[i]=1},e.remove=function(e){var t=this,n=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(n in this._instancesCounts,"styleId: `"+n+"` not found"),this._instancesCounts[n]-=1,this._instancesCounts[n]<1){var i=this._fromServer&&this._fromServer[n];i?(i.parentNode.removeChild(i),delete this._fromServer[n]):(this._indices[n].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[n]),delete this._instancesCounts[n]}},e.update=function(e,t){this.add(t),this.remove(e)},e.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},e.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],n=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return n[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},e.styles=function(e){var t,n;return t=this.cssRules(),void 0===(n=e)&&(n={}),t.map(function(e){var t=e[0],i=e[1];return a.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:n.nonce?n.nonce:void 0,dangerouslySetInnerHTML:{__html:i}})})},e.getIdAndRules=function(e){var t=e.children,n=e.dynamic,i=e.id;if(n){var o=computeId(i,n);return{styleId:o,rules:Array.isArray(t)?t.map(function(e){return computeSelector(o,e)}):[computeSelector(o,t)]}}return{styleId:computeId(i),rules:Array.isArray(t)?t:[t]}},e.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},StyleSheetRegistry}(),d=o.createContext(null);d.displayName="StyleSheetContext";var p=a.default.useInsertionEffect||a.default.useLayoutEffect,h=new u;function JSXStyle(e){var t=h||o.useContext(d);return t&&p(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}JSXStyle.dynamic=function(e){return e.map(function(e){return computeId(e[0],e[1])}).join(" ")},t.style=JSXStyle},5379:function(e,t,n){"use strict";e.exports=n(597).style},7993:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return _app}});var i,o,a,s,l,c,u,d,p,h,f,m,g,v,y,b,x,S,k,w,_,C,T,P,E,j,R,M,O=n(5893),D=n(7294),B=n(9008),V=n.n(B),I=n(1664),F=n.n(I),L=n(2498),N=n(3838),$=n(3100),W=n(6979),U=n(5059),H=n(5523),G=(0,U.G)(function(e,t){let{direction:n,align:i,justify:o,wrap:a,basis:s,grow:l,shrink:c,...u}=e;return(0,O.jsx)(H.m.div,{ref:t,__css:{display:"flex",flexDirection:n,alignItems:i,justifyContent:o,flexWrap:a,flexBasis:s,flexGrow:l,flexShrink:c},...u})});G.displayName="Flex";var q=n(4418),StackItem=e=>(0,O.jsx)(H.m.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});StackItem.displayName="StackItem";var K=n(3951),X="& > *:not(style) ~ *:not(style)",Y=n(5432),Z=n(2495),J=(0,U.G)((e,t)=>{let{isInline:n,direction:i,align:o,justify:a,spacing:s="0.5rem",wrap:l,children:c,divider:u,className:d,shouldWrapChildren:p,...h}=e,f=n?"row":null!=i?i:"column",m=(0,D.useMemo)(()=>(function(e){let{spacing:t,direction:n}=e,i={column:{marginTop:t,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:t},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:t,marginStart:0},"row-reverse":{marginTop:0,marginEnd:t,marginBottom:0,marginStart:0}};return{flexDirection:n,[X]:(0,K.XQ)(n,e=>i[e])}})({direction:f,spacing:s}),[f,s]),g=(0,D.useMemo)(()=>(function(e){let{spacing:t,direction:n}=e,i={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":(0,K.XQ)(n,e=>i[e])}})({spacing:s,direction:f}),[s,f]),v=!!u,y=!p&&!v,b=(0,D.useMemo)(()=>{let e=(0,Z.W)(c);return y?e:e.map((t,n)=>{let i=void 0!==t.key?t.key:n,o=n+1===e.length,a=(0,O.jsx)(StackItem,{children:t},i),s=p?a:t;if(!v)return s;let l=(0,D.cloneElement)(u,{__css:g});return(0,O.jsxs)(D.Fragment,{children:[s,o?null:l]},i)})},[u,g,v,y,p,c]),x=(0,Y.cx)("chakra-stack",d);return(0,O.jsx)(H.m.div,{ref:t,display:"flex",alignItems:o,justifyContent:a,flexDirection:m.flexDirection,flexWrap:l,className:x,__css:v?{}:{[X]:m[X]},...h,children:b})});J.displayName="Stack";var Q=n(1103);function isValidElement(e){let t=e.target,{tagName:n,isContentEditable:i}=t;return"INPUT"!==n&&"TEXTAREA"!==n&&!0!==i}var ee=Object.defineProperty,__defNormalProp=(e,t,n)=>t in e?ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField=(e,t,n)=>(__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),n);function sortNodes(e){return e.sort((e,t)=>{let n=e.compareDocumentPosition(t);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return -1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(!(n&Node.DOCUMENT_POSITION_DISCONNECTED)&&!(n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC))return 0;throw Error("Cannot sort the given nodes.")})}var isElement=e=>"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function getNextIndex(e,t,n){let i=e+1;return n&&i>=t&&(i=0),i}function getPrevIndex(e,t,n){let i=e-1;return n&&i<0&&(i=t),i}var et="undefined"!=typeof window?D.useLayoutEffect:D.useEffect,cast=e=>e,er=class{constructor(){__publicField(this,"descendants",new Map),__publicField(this,"register",e=>{if(null!=e)return isElement(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),__publicField(this,"unregister",e=>{this.descendants.delete(e);let t=sortNodes(Array.from(this.descendants.keys()));this.assignIndex(t)}),__publicField(this,"destroy",()=>{this.descendants.clear()}),__publicField(this,"assignIndex",e=>{this.descendants.forEach(t=>{let n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})}),__publicField(this,"count",()=>this.descendants.size),__publicField(this,"enabledCount",()=>this.enabledValues().length),__publicField(this,"values",()=>{let e=Array.from(this.descendants.values());return e.sort((e,t)=>e.index-t.index)}),__publicField(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),__publicField(this,"item",e=>{if(0!==this.count())return this.values()[e]}),__publicField(this,"enabledItem",e=>{if(0!==this.enabledCount())return this.enabledValues()[e]}),__publicField(this,"first",()=>this.item(0)),__publicField(this,"firstEnabled",()=>this.enabledItem(0)),__publicField(this,"last",()=>this.item(this.descendants.size-1)),__publicField(this,"lastEnabled",()=>{let e=this.enabledValues().length-1;return this.enabledItem(e)}),__publicField(this,"indexOf",e=>{var t,n;return e&&null!=(n=null==(t=this.descendants.get(e))?void 0:t.index)?n:-1}),__publicField(this,"enabledIndexOf",e=>null==e?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),__publicField(this,"next",(e,t=!0)=>{let n=getNextIndex(e,this.count(),t);return this.item(n)}),__publicField(this,"nextEnabled",(e,t=!0)=>{let n=this.item(e);if(!n)return;let i=this.enabledIndexOf(n.node),o=getNextIndex(i,this.enabledCount(),t);return this.enabledItem(o)}),__publicField(this,"prev",(e,t=!0)=>{let n=getPrevIndex(e,this.count()-1,t);return this.item(n)}),__publicField(this,"prevEnabled",(e,t=!0)=>{let n=this.item(e);if(!n)return;let i=this.enabledIndexOf(n.node),o=getPrevIndex(i,this.enabledCount()-1,t);return this.enabledItem(o)}),__publicField(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;let n=Array.from(this.descendants.keys()).concat(e),i=sortNodes(n);(null==t?void 0:t.disabled)&&(t.disabled=!!t.disabled);let o={node:e,index:-1,...t};this.descendants.set(e,o),this.assignIndex(i)})}},en=n(5227),[ei,eo]=(0,en.k)({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function chunk_3XANSPY5_isElement(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function chunk_3XANSPY5_isHTMLElement(e){var t;if(!chunk_3XANSPY5_isElement(e))return!1;let n=null!=(t=e.ownerDocument.defaultView)?t:window;return e instanceof n.HTMLElement}function chunk_3XANSPY5_getOwnerDocument(e){return chunk_3XANSPY5_isElement(e)?e.ownerDocument:document}var hasTabIndex=e=>e.hasAttribute("tabindex"),hasNegativeTabIndex=e=>hasTabIndex(e)&&-1===e.tabIndex;function dist_useUpdateEffect(e,t){let n=(0,D.useRef)(!1),i=(0,D.useRef)(!1);(0,D.useEffect)(()=>{let t=n.current,o=t&&i.current;if(o)return e();i.current=!0},t),(0,D.useEffect)(()=>(n.current=!0,()=>{n.current=!1}),[])}var toVar=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),ea={arrowShadowColor:toVar("--popper-arrow-shadow-color"),arrowSize:toVar("--popper-arrow-size","8px"),arrowSizeHalf:toVar("--popper-arrow-size-half"),arrowBg:toVar("--popper-arrow-bg"),transformOrigin:toVar("--popper-transform-origin"),arrowOffset:toVar("--popper-arrow-offset")},es={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},toTransformOrigin=e=>es[e],el={scroll:!0,resize:!0},ec={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{let t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},eu={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{setTransformOrigin(e)},effect:({state:e})=>()=>{setTransformOrigin(e)}},setTransformOrigin=e=>{e.elements.popper.style.setProperty(ea.transformOrigin.var,toTransformOrigin(e.placement))},ed={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{setArrowStyles(e)}},setArrowStyles=e=>{var t;if(!e.placement)return;let n=getArrowStyle(e.placement);if((null==(t=e.elements)?void 0:t.arrow)&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:ea.arrowSize.varRef,height:ea.arrowSize.varRef,zIndex:-1});let t={[ea.arrowSizeHalf.var]:`calc(${ea.arrowSize.varRef} / 2)`,[ea.arrowOffset.var]:`calc(${ea.arrowSizeHalf.varRef} * -1)`};for(let n in t)e.elements.arrow.style.setProperty(n,t[n])}},getArrowStyle=e=>e.startsWith("top")?{property:"bottom",value:ea.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:ea.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:ea.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:ea.arrowOffset.varRef}:void 0,ep={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{setInnerArrowStyles(e)},effect:({state:e})=>()=>{setInnerArrowStyles(e)}},setInnerArrowStyles=e=>{var t;if(!e.elements.arrow)return;let n=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!n)return;let i=(t=e.placement).includes("top")?"1px 1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("bottom")?"-1px -1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("right")?"-1px 1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("left")?"1px -1px 1px 0 var(--popper-arrow-shadow-color)":void 0;i&&n.style.setProperty("--popper-arrow-default-shadow",i),Object.assign(n.style,{transform:"rotate(45deg)",background:ea.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},eh={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},ef={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function getWindow(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function instanceOf_isElement(e){var t=getWindow(e).Element;return e instanceof t||e instanceof Element}function instanceOf_isHTMLElement(e){var t=getWindow(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function isShadowRoot(e){if("undefined"==typeof ShadowRoot)return!1;var t=getWindow(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var em=Math.max,eg=Math.min,ev=Math.round;function getUAString(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),o=1,a=1;t&&instanceOf_isHTMLElement(e)&&(o=e.offsetWidth>0&&ev(i.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ev(i.height)/e.offsetHeight||1);var s=(instanceOf_isElement(e)?getWindow(e):window).visualViewport,l=!isLayoutViewport()&&n,c=(i.left+(l&&s?s.offsetLeft:0))/o,u=(i.top+(l&&s?s.offsetTop:0))/a,d=i.width/o,p=i.height/a;return{width:d,height:p,top:u,right:c+d,bottom:u+p,left:c,x:c,y:u}}function getWindowScroll(e){var t=getWindow(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function getNodeName(e){return e?(e.nodeName||"").toLowerCase():null}function getDocumentElement(e){return((instanceOf_isElement(e)?e.ownerDocument:e.document)||window.document).documentElement}function getWindowScrollBarX(e){return getBoundingClientRect(getDocumentElement(e)).left+getWindowScroll(e).scrollLeft}function getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function isScrollParent(e){var t=getComputedStyle(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function getLayoutRect(e){var t=getBoundingClientRect(e),n=e.offsetWidth,i=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-i)&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function getParentNode(e){return"html"===getNodeName(e)?e:e.assignedSlot||e.parentNode||(isShadowRoot(e)?e.host:null)||getDocumentElement(e)}function listScrollParents(e,t){void 0===t&&(t=[]);var n,i=function getScrollParent(e){return["html","body","#document"].indexOf(getNodeName(e))>=0?e.ownerDocument.body:instanceOf_isHTMLElement(e)&&isScrollParent(e)?e:getScrollParent(getParentNode(e))}(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),a=getWindow(i),s=o?[a].concat(a.visualViewport||[],isScrollParent(i)?i:[]):i,l=t.concat(s);return o?l:l.concat(listScrollParents(getParentNode(s)))}function getTrueOffsetParent(e){return instanceOf_isHTMLElement(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function getOffsetParent(e){for(var t=getWindow(e),n=getTrueOffsetParent(e);n&&["table","td","th"].indexOf(getNodeName(n))>=0&&"static"===getComputedStyle(n).position;)n=getTrueOffsetParent(n);return n&&("html"===getNodeName(n)||"body"===getNodeName(n)&&"static"===getComputedStyle(n).position)?t:n||function(e){var t=/firefox/i.test(getUAString());if(/Trident/i.test(getUAString())&&instanceOf_isHTMLElement(e)&&"fixed"===getComputedStyle(e).position)return null;var n=getParentNode(e);for(isShadowRoot(n)&&(n=n.host);instanceOf_isHTMLElement(n)&&0>["html","body"].indexOf(getNodeName(n));){var i=getComputedStyle(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}var ey="bottom",eb="right",ex="left",eS="auto",ek=["top",ey,eb,ex],ew="start",e_="viewport",eC="popper",eT=ek.reduce(function(e,t){return e.concat([t+"-"+ew,t+"-end"])},[]),eP=[].concat(ek,[eS]).reduce(function(e,t){return e.concat([t,t+"-"+ew,t+"-end"])},[]),eA=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],eE={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var e=arguments.length,t=Array(e),n=0;n=0?"x":"y"}function computeOffsets(e){var t,n=e.reference,i=e.element,o=e.placement,a=o?getBasePlacement(o):null,s=o?getVariation(o):null,l=n.x+n.width/2-i.width/2,c=n.y+n.height/2-i.height/2;switch(a){case"top":t={x:l,y:n.y-i.height};break;case ey:t={x:l,y:n.y+n.height};break;case eb:t={x:n.x+n.width,y:c};break;case ex:t={x:n.x-i.width,y:c};break;default:t={x:n.x,y:n.y}}var u=a?getMainAxisFromPlacement(a):null;if(null!=u){var d="y"===u?"height":"width";switch(s){case ew:t[u]=t[u]-(n[d]/2-i[d]/2);break;case"end":t[u]=t[u]+(n[d]/2-i[d]/2)}}return t}var eR={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mapToStyles(e){var t,n,i,o,a,s,l,c=e.popper,u=e.popperRect,d=e.placement,p=e.variation,h=e.offsets,f=e.position,m=e.gpuAcceleration,g=e.adaptive,v=e.roundOffsets,y=e.isFixed,b=h.x,x=void 0===b?0:b,S=h.y,k=void 0===S?0:S,w="function"==typeof v?v({x:x,y:k}):{x:x,y:k};x=w.x,k=w.y;var _=h.hasOwnProperty("x"),C=h.hasOwnProperty("y"),T=ex,P="top",E=window;if(g){var j=getOffsetParent(c),R="clientHeight",M="clientWidth";j===getWindow(c)&&"static"!==getComputedStyle(j=getDocumentElement(c)).position&&"absolute"===f&&(R="scrollHeight",M="scrollWidth"),("top"===d||(d===ex||d===eb)&&"end"===p)&&(P=ey,k-=(y&&j===E&&E.visualViewport?E.visualViewport.height:j[R])-u.height,k*=m?1:-1),(d===ex||("top"===d||d===ey)&&"end"===p)&&(T=eb,x-=(y&&j===E&&E.visualViewport?E.visualViewport.width:j[M])-u.width,x*=m?1:-1)}var O=Object.assign({position:f},g&&eR),D=!0===v?(t={x:x,y:k},n=getWindow(c),i=t.x,o=t.y,{x:ev(i*(a=n.devicePixelRatio||1))/a||0,y:ev(o*a)/a||0}):{x:x,y:k};return(x=D.x,k=D.y,m)?Object.assign({},O,((l={})[P]=C?"0":"",l[T]=_?"0":"",l.transform=1>=(E.devicePixelRatio||1)?"translate("+x+"px, "+k+"px)":"translate3d("+x+"px, "+k+"px, 0)",l)):Object.assign({},O,((s={})[P]=C?k+"px":"",s[T]=_?x+"px":"",s.transform="",s))}var eM={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,function(e){return eM[e]})}var eO={start:"end",end:"start"};function getOppositeVariationPlacement(e){return e.replace(/start|end/g,function(e){return eO[e]})}function contains_contains(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&isShadowRoot(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function rectToClientRect(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function getClientRectFromMixedType(e,t,n){var i,o,a,s,l,c,u,d,p,h;return t===e_?rectToClientRect(function(e,t){var n=getWindow(e),i=getDocumentElement(e),o=n.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,c=0;if(o){a=o.width,s=o.height;var u=isLayoutViewport();(u||!u&&"fixed"===t)&&(l=o.offsetLeft,c=o.offsetTop)}return{width:a,height:s,x:l+getWindowScrollBarX(e),y:c}}(e,n)):instanceOf_isElement(t)?((i=getBoundingClientRect(t,!1,"fixed"===n)).top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i):rectToClientRect((o=getDocumentElement(e),s=getDocumentElement(o),l=getWindowScroll(o),c=null==(a=o.ownerDocument)?void 0:a.body,u=em(s.scrollWidth,s.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),d=em(s.scrollHeight,s.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),p=-l.scrollLeft+getWindowScrollBarX(o),h=-l.scrollTop,"rtl"===getComputedStyle(c||s).direction&&(p+=em(s.clientWidth,c?c.clientWidth:0)-u),{width:u,height:d,x:p,y:h}))}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(e){return Object.assign({},getFreshSideObject(),e)}function expandToHashMap(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function detectOverflow(e,t){void 0===t&&(t={});var n,i,o,a,s,l,c,u=t,d=u.placement,p=void 0===d?e.placement:d,h=u.strategy,f=void 0===h?e.strategy:h,m=u.boundary,g=u.rootBoundary,v=u.elementContext,y=void 0===v?eC:v,b=u.altBoundary,x=u.padding,S=void 0===x?0:x,k=mergePaddingObject("number"!=typeof S?S:expandToHashMap(S,ek)),w=e.rects.popper,_=e.elements[void 0!==b&&b?y===eC?"reference":eC:y],C=(n=instanceOf_isElement(_)?_:_.contextElement||getDocumentElement(e.elements.popper),l=(s=[].concat("clippingParents"===(i=void 0===m?"clippingParents":m)?(o=listScrollParents(getParentNode(n)),instanceOf_isElement(a=["absolute","fixed"].indexOf(getComputedStyle(n).position)>=0&&instanceOf_isHTMLElement(n)?getOffsetParent(n):n)?o.filter(function(e){return instanceOf_isElement(e)&&contains_contains(e,a)&&"body"!==getNodeName(e)}):[]):[].concat(i),[void 0===g?e_:g]))[0],(c=s.reduce(function(e,t){var i=getClientRectFromMixedType(n,t,f);return e.top=em(i.top,e.top),e.right=eg(i.right,e.right),e.bottom=eg(i.bottom,e.bottom),e.left=em(i.left,e.left),e},getClientRectFromMixedType(n,l,f))).width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c),T=getBoundingClientRect(e.elements.reference),P=computeOffsets({reference:T,element:w,strategy:"absolute",placement:p}),E=rectToClientRect(Object.assign({},w,P)),j=y===eC?E:T,R={top:C.top-j.top+k.top,bottom:j.bottom-C.bottom+k.bottom,left:C.left-j.left+k.left,right:j.right-C.right+k.right},M=e.modifiersData.offset;if(y===eC&&M){var O=M[p];Object.keys(R).forEach(function(e){var t=[eb,ey].indexOf(e)>=0?1:-1,n=["top",ey].indexOf(e)>=0?"y":"x";R[e]+=O[n]*t})}return R}function within(e,t,n){return em(e,eg(t,n))}function getSideOffsets(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function isAnySideFullyClipped(e){return["top",eb,ey,ex].some(function(t){return e[t]>=0})}var eD=(a=void 0===(o=(i={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,a=void 0===o||o,s=i.resize,l=void 0===s||s,c=getWindow(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(e){e.addEventListener("scroll",n.update,ej)}),l&&c.addEventListener("resize",n.update,ej),function(){a&&u.forEach(function(e){e.removeEventListener("scroll",n.update,ej)}),l&&c.removeEventListener("resize",n.update,ej)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=computeOffsets({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=n.adaptive,a=n.roundOffsets,s=void 0===a||a,l={placement:getBasePlacement(t.placement),variation:getVariation(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===i||i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,mapToStyles(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===o||o,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,mapToStyles(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},o=t.elements[e];instanceOf_isHTMLElement(o)&&getNodeName(o)&&(Object.assign(o.style,n),Object.keys(i).forEach(function(e){var t=i[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var i=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});instanceOf_isHTMLElement(i)&&getNodeName(i)&&(Object.assign(i.style,a),Object.keys(o).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.offset,a=void 0===o?[0,0]:o,s=eP.reduce(function(e,n){var i,o,s,l,c,u;return e[n]=(i=t.rects,s=[ex,"top"].indexOf(o=getBasePlacement(n))>=0?-1:1,c=(l="function"==typeof a?a(Object.assign({},i,{placement:n})):a)[0],u=l[1],c=c||0,u=(u||0)*s,[ex,eb].indexOf(o)>=0?{x:u,y:c}:{x:c,y:u}),e},{}),l=s[t.placement],c=l.x,u=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[i]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=n.mainAxis,a=void 0===o||o,s=n.altAxis,l=void 0===s||s,c=n.fallbackPlacements,u=n.padding,d=n.boundary,p=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,m=void 0===f||f,g=n.allowedAutoPlacements,v=t.options.placement,y=getBasePlacement(v)===v,b=c||(y||!m?[getOppositePlacement(v)]:function(e){if(getBasePlacement(e)===eS)return[];var t=getOppositePlacement(e);return[getOppositeVariationPlacement(e),t,getOppositeVariationPlacement(t)]}(v)),x=[v].concat(b).reduce(function(e,n){var i,o,a,s,l,c,h,f,v,y,b,x;return e.concat(getBasePlacement(n)===eS?(o=(i={placement:n,boundary:d,rootBoundary:p,padding:u,flipVariations:m,allowedAutoPlacements:g}).placement,a=i.boundary,s=i.rootBoundary,l=i.padding,c=i.flipVariations,f=void 0===(h=i.allowedAutoPlacements)?eP:h,0===(b=(y=(v=getVariation(o))?c?eT:eT.filter(function(e){return getVariation(e)===v}):ek).filter(function(e){return f.indexOf(e)>=0})).length&&(b=y),Object.keys(x=b.reduce(function(e,n){return e[n]=detectOverflow(t,{placement:n,boundary:a,rootBoundary:s,padding:l})[getBasePlacement(n)],e},{})).sort(function(e,t){return x[e]-x[t]})):n)},[]),S=t.rects.reference,k=t.rects.popper,w=new Map,_=!0,C=x[0],T=0;T=0,M=R?"width":"height",O=detectOverflow(t,{placement:P,boundary:d,rootBoundary:p,altBoundary:h,padding:u}),D=R?j?eb:ex:j?ey:"top";S[M]>k[M]&&(D=getOppositePlacement(D));var B=getOppositePlacement(D),V=[];if(a&&V.push(O[E]<=0),l&&V.push(O[D]<=0,O[B]<=0),V.every(function(e){return e})){C=P,_=!1;break}w.set(P,V)}if(_)for(var I=m?3:1,_loop=function(e){var t=x.find(function(t){var n=w.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return C=t,"break"},F=I;F>0&&"break"!==_loop(F);F--);t.placement!==C&&(t.modifiersData[i]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,a=n.altAxis,s=n.boundary,l=n.rootBoundary,c=n.altBoundary,u=n.padding,d=n.tether,p=void 0===d||d,h=n.tetherOffset,f=void 0===h?0:h,m=detectOverflow(t,{boundary:s,rootBoundary:l,padding:u,altBoundary:c}),g=getBasePlacement(t.placement),v=getVariation(t.placement),y=!v,b=getMainAxisFromPlacement(g),x="x"===b?"y":"x",S=t.modifiersData.popperOffsets,k=t.rects.reference,w=t.rects.popper,_="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,C="number"==typeof _?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(S){if(void 0===o||o){var E,j="y"===b?"top":ex,R="y"===b?ey:eb,M="y"===b?"height":"width",O=S[b],D=O+m[j],B=O-m[R],V=p?-w[M]/2:0,I=v===ew?k[M]:w[M],F=v===ew?-w[M]:-k[M],L=t.elements.arrow,N=p&&L?getLayoutRect(L):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:getFreshSideObject(),W=$[j],U=$[R],H=within(0,k[M],N[M]),G=y?k[M]/2-V-H-W-C.mainAxis:I-H-W-C.mainAxis,q=y?-k[M]/2+V+H+U+C.mainAxis:F+H+U+C.mainAxis,K=t.elements.arrow&&getOffsetParent(t.elements.arrow),X=K?"y"===b?K.clientTop||0:K.clientLeft||0:0,Y=null!=(E=null==T?void 0:T[b])?E:0,Z=O+G-Y-X,J=O+q-Y,Q=within(p?eg(D,Z):D,O,p?em(B,J):B);S[b]=Q,P[b]=Q-O}if(void 0!==a&&a){var ee,et,er="x"===b?"top":ex,en="x"===b?ey:eb,ei=S[x],eo="y"===x?"height":"width",ea=ei+m[er],es=ei-m[en],el=-1!==["top",ex].indexOf(g),ec=null!=(et=null==T?void 0:T[x])?et:0,eu=el?ea:ei-k[eo]-w[eo]-ec+C.altAxis,ed=el?ei+k[eo]+w[eo]-ec-C.altAxis:es,ep=p&&el?(ee=within(eu,ei,ed))>ed?ed:ee:within(p?eu:ea,ei,p?ed:es);S[x]=ep,P[x]=ep-ei}t.modifiersData[i]=P}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n,i=e.state,o=e.name,a=e.options,s=i.elements.arrow,l=i.modifiersData.popperOffsets,c=getBasePlacement(i.placement),u=getMainAxisFromPlacement(c),d=[ex,eb].indexOf(c)>=0?"height":"width";if(s&&l){var p=mergePaddingObject("number"!=typeof(t="function"==typeof(t=a.padding)?t(Object.assign({},i.rects,{placement:i.placement})):t)?t:expandToHashMap(t,ek)),h=getLayoutRect(s),f="y"===u?"top":ex,m="y"===u?ey:eb,g=i.rects.reference[d]+i.rects.reference[u]-l[u]-i.rects.popper[d],v=l[u]-i.rects.reference[u],y=getOffsetParent(s),b=y?"y"===u?y.clientHeight||0:y.clientWidth||0:0,x=p[f],S=b-h[d]-p[m],k=b/2-h[d]/2+(g/2-v/2),w=within(x,k,S);i.modifiersData[o]=((n={})[u]=w,n.centerOffset=w-k,n)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&contains_contains(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=detectOverflow(t,{elementContext:"reference"}),l=detectOverflow(t,{altBoundary:!0}),c=getSideOffsets(s,i),u=getSideOffsets(l,o,a),d=isAnySideFullyClipped(c),p=isAnySideFullyClipped(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}}]}).defaultModifiers)?[]:o,l=void 0===(s=i.defaultOptions)?eE:s,function(e,t,n){void 0===n&&(n=l);var i,o={placement:"bottom",orderedModifiers:[],options:Object.assign({},eE,l),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,u={state:o,setOptions:function(n){var i,c,d,p,h,f="function"==typeof n?n(o.options):n;cleanupModifierEffects(),o.options=Object.assign({},l,o.options,f),o.scrollParents={reference:instanceOf_isElement(e)?listScrollParents(e):e.contextElement?listScrollParents(e.contextElement):[],popper:listScrollParents(t)};var m=(c=Object.keys(i=[].concat(a,o.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{})).map(function(e){return i[e]}),d=new Map,p=new Set,h=[],c.forEach(function(e){d.set(e.name,e)}),c.forEach(function(e){p.has(e.name)||function sort(e){p.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!p.has(e)){var t=d.get(e);t&&sort(t)}}),h.push(e)}(e)}),eA.reduce(function(e,t){return e.concat(h.filter(function(e){return e.phase===t}))},[]));return o.orderedModifiers=m.filter(function(e){return e.enabled}),o.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=e.effect;if("function"==typeof i){var a=i({state:o,name:t,instance:u,options:void 0===n?{}:n});s.push(a||function(){})}}),u.update()},forceUpdate:function(){if(!c){var e,t,n,i,a,s,l,d,p,h,f,m,g=o.elements,v=g.reference,y=g.popper;if(areValidElements(v,y)){o.rects={reference:(t=getOffsetParent(y),n="fixed"===o.options.strategy,i=instanceOf_isHTMLElement(t),d=instanceOf_isHTMLElement(t)&&(s=ev((a=t.getBoundingClientRect()).width)/t.offsetWidth||1,l=ev(a.height)/t.offsetHeight||1,1!==s||1!==l),p=getDocumentElement(t),h=getBoundingClientRect(v,d,n),f={scrollLeft:0,scrollTop:0},m={x:0,y:0},(i||!i&&!n)&&(("body"!==getNodeName(t)||isScrollParent(p))&&(f=(e=t)!==getWindow(e)&&instanceOf_isHTMLElement(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:getWindowScroll(e)),instanceOf_isHTMLElement(t)?(m=getBoundingClientRect(t,!0),m.x+=t.clientLeft,m.y+=t.clientTop):p&&(m.x=getWindowScrollBarX(p))),{x:h.left+f.scrollLeft-m.x,y:h.top+f.scrollTop-m.y,width:h.width,height:h.height}),popper:getLayoutRect(y)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(e){return o.modifiersData[e.name]=Object.assign({},e.data)});for(var b=0;b{n.current=e}),(0,D.useCallback)((...e)=>{var t;return null==(t=n.current)?void 0:t.call(n,...e)},t)}function isValidEvent(e,t){var n;let i=e.target;if(e.button>0)return!1;if(i){let e=dist_getOwnerDocument(i);if(!e.contains(i))return!1}return!(null==(n=t.current)?void 0:n.contains(i))}function dist_getOwnerDocument(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}var[eB,eV,ez,eI]=function(){let e=cast(ei);return[e,()=>cast(eo()),()=>(function(){let e=(0,D.useRef)(new er);return et(()=>()=>e.current.destroy()),e.current})(),e=>(function(e){let t=eo(),[n,i]=(0,D.useState)(-1),o=(0,D.useRef)(null);et(()=>()=>{o.current&&t.unregister(o.current)},[]),et(()=>{if(!o.current)return;let e=Number(o.current.dataset.index);n==e||Number.isNaN(e)||i(e)});let a=e?cast(t.register(e)):cast(t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(o.current),register:(0,Q.lq)(a,o)}})(e)]}(),[eF,eL]=(0,en.k)({strict:!1,name:"MenuContext"});function chunk_CRQSZOKU_getOwnerDocument(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}function chunk_CRQSZOKU_isActiveElement(e){let t=chunk_CRQSZOKU_getOwnerDocument(e);return t.activeElement===e}function isTargetMenuItem(e){var t;return function(e){var t;if(!(null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE))return!1;let n=null!=(t=e.ownerDocument.defaultView)?t:window;return e instanceof n.HTMLElement}(e)&&!!(null==(t=null==e?void 0:e.getAttribute("role"))?void 0:t.startsWith("menuitem"))}var eN=n(1639),e$=n(3179),eW=n(7323),[eU,eH]=(0,en.k)({name:"MenuStylesContext",errorMessage:"useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),Menu=e=>{let{children:t}=e,n=(0,eN.jC)("Menu",e),i=(0,e$.Lr)(e),{direction:o}=(0,eW.F)(),{descendants:a,...s}=function(e={}){let{id:t,closeOnSelect:n=!0,closeOnBlur:i=!0,initialFocusRef:o,autoSelect:a=!0,isLazy:s,isOpen:l,defaultIsOpen:c,onClose:u,onOpen:d,placement:p="bottom-start",lazyBehavior:h="unmount",direction:f,computePositionOnMount:m=!1,...g}=e,v=(0,D.useRef)(null),y=(0,D.useRef)(null),b=ez(),x=(0,D.useCallback)(()=>{requestAnimationFrame(()=>{var e;null==(e=v.current)||e.focus({preventScroll:!1})})},[]),S=(0,D.useCallback)(()=>{let e=setTimeout(()=>{var e;if(o)null==(e=o.current)||e.focus();else{let e=b.firstEnabled();e&&R(e.index)}});I.current.add(e)},[b,o]),k=(0,D.useCallback)(()=>{let e=setTimeout(()=>{let e=b.lastEnabled();e&&R(e.index)});I.current.add(e)},[b]),w=(0,D.useCallback)(()=>{null==d||d(),a?S():x()},[a,S,x,d]),{isOpen:_,onOpen:C,onClose:T,onToggle:P}=function(e={}){let{onClose:t,onOpen:n,isOpen:i,id:o}=e,a=useCallbackRef(n),s=useCallbackRef(t),[l,c]=(0,D.useState)(e.defaultIsOpen||!1),u=void 0!==i?i:l,d=void 0!==i,p=(0,D.useId)(),h=null!=o?o:`disclosure-${p}`,f=(0,D.useCallback)(()=>{d||c(!1),null==s||s()},[d,s]),m=(0,D.useCallback)(()=>{d||c(!0),null==a||a()},[d,a]),g=(0,D.useCallback)(()=>{u?f():m()},[u,m,f]);return{isOpen:u,onOpen:m,onClose:f,onToggle:g,isControlled:d,getButtonProps:function(e={}){return{...e,"aria-expanded":u,"aria-controls":h,onClick(t){var n;null==(n=e.onClick)||n.call(e,t),g()}}},getDisclosureProps:function(e={}){return{...e,hidden:!u,id:h}}}}({isOpen:l,defaultIsOpen:c,onClose:u,onOpen:w});!function(e){let{ref:t,handler:n,enabled:i=!0}=e,o=useCallbackRef(n),a=(0,D.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=a.current;(0,D.useEffect)(()=>{if(!i)return;let onPointerDown=e=>{isValidEvent(e,t)&&(s.isPointerDown=!0)},onMouseUp=e=>{if(s.ignoreEmulatedMouseEvents){s.ignoreEmulatedMouseEvents=!1;return}s.isPointerDown&&n&&isValidEvent(e,t)&&(s.isPointerDown=!1,o(e))},onTouchEnd=e=>{s.ignoreEmulatedMouseEvents=!0,n&&s.isPointerDown&&isValidEvent(e,t)&&(s.isPointerDown=!1,o(e))},e=dist_getOwnerDocument(t.current);return e.addEventListener("mousedown",onPointerDown,!0),e.addEventListener("mouseup",onMouseUp,!0),e.addEventListener("touchstart",onPointerDown,!0),e.addEventListener("touchend",onTouchEnd,!0),()=>{e.removeEventListener("mousedown",onPointerDown,!0),e.removeEventListener("mouseup",onMouseUp,!0),e.removeEventListener("touchstart",onPointerDown,!0),e.removeEventListener("touchend",onTouchEnd,!0)}},[n,t,o,s,i])}({enabled:_&&i,ref:v,handler:e=>{var t;(null==(t=y.current)?void 0:t.contains(e.target))||T()}});let E=function(e={}){let{enabled:t=!0,modifiers:n,placement:i="bottom",strategy:o="absolute",arrowPadding:a=8,eventListeners:s=!0,offset:l,gutter:c=8,flip:u=!0,boundary:d="clippingParents",preventOverflow:p=!0,matchWidth:h,direction:f="ltr"}=e,m=(0,D.useRef)(null),g=(0,D.useRef)(null),v=(0,D.useRef)(null),y=function(e,t="ltr"){var n,i;let o=(null==(n=eh[e])?void 0:n[t])||e;return"ltr"===t?o:null!=(i=ef[e])?i:o}(i,f),b=(0,D.useRef)(()=>{}),x=(0,D.useCallback)(()=>{var e;t&&m.current&&g.current&&(null==(e=b.current)||e.call(b),v.current=eD(m.current,g.current,{placement:y,modifiers:[ep,ed,eu,{...ec,enabled:!!h},{name:"eventListeners",..."object"==typeof s?{enabled:!0,options:{...el,...s}}:{enabled:s,options:el}},{name:"arrow",options:{padding:a}},{name:"offset",options:{offset:null!=l?l:[0,c]}},{name:"flip",enabled:!!u,options:{padding:8}},{name:"preventOverflow",enabled:!!p,options:{boundary:d}},...null!=n?n:[]],strategy:o}),v.current.forceUpdate(),b.current=v.current.destroy)},[y,t,n,h,s,a,l,c,u,p,d,o]);(0,D.useEffect)(()=>()=>{var e;m.current||g.current||(null==(e=v.current)||e.destroy(),v.current=null)},[]);let S=(0,D.useCallback)(e=>{m.current=e,x()},[x]),k=(0,D.useCallback)((e={},t=null)=>({...e,ref:(0,Q.lq)(S,t)}),[S]),w=(0,D.useCallback)(e=>{g.current=e,x()},[x]),_=(0,D.useCallback)((e={},t=null)=>({...e,ref:(0,Q.lq)(w,t),style:{...e.style,position:o,minWidth:h?void 0:"max-content",inset:"0 auto auto 0"}}),[o,w,h]),C=(0,D.useCallback)((e={},t=null)=>{let{size:n,shadowColor:i,bg:o,style:a,...s}=e;return{...s,ref:t,"data-popper-arrow":"",style:function(e){let{size:t,shadowColor:n,bg:i,style:o}=e,a={...o,position:"absolute"};return t&&(a["--popper-arrow-size"]=t),n&&(a["--popper-arrow-shadow-color"]=n),i&&(a["--popper-arrow-bg"]=i),a}(e)}},[]),T=(0,D.useCallback)((e={},t=null)=>({...e,ref:t,"data-popper-arrow-inner":""}),[]);return{update(){var e;null==(e=v.current)||e.update()},forceUpdate(){var e;null==(e=v.current)||e.forceUpdate()},transformOrigin:ea.transformOrigin.varRef,referenceRef:S,popperRef:w,getPopperProps:_,getArrowProps:C,getArrowInnerProps:T,getReferenceProps:k}}({...g,enabled:_||m,placement:p,direction:f}),[j,R]=(0,D.useState)(-1);dist_useUpdateEffect(()=>{_||R(-1)},[_]),function(e,t){let{shouldFocus:n,visible:i,focusRef:o}=t,a=n&&!i;dist_useUpdateEffect(()=>{if(!a||function(e){let t=e.current;if(!t)return!1;let n=chunk_3XANSPY5_getOwnerDocument(t).activeElement;return!(!n||t.contains(n))&&!!(n&&chunk_3XANSPY5_isHTMLElement(n)&&function(e){var t;if(!chunk_3XANSPY5_isHTMLElement(e)||function isHidden(e){return!!(e.parentElement&&isHidden(e.parentElement))||e.hidden}(e)||!0==!!(t=e).getAttribute("disabled")||!0==!!t.getAttribute("aria-disabled"))return!1;let{localName:n}=e;if(["input","select","textarea","button"].indexOf(n)>=0)return!0;let i={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return n in i?i[n]():!!function(e){let t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||hasTabIndex(e)}(n)&&!hasNegativeTabIndex(n))}(e))return;let t=(null==o?void 0:o.current)||e.current;t&&requestAnimationFrame(()=>{t.focus()})},[a,e,o])}(v,{focusRef:y,visible:_,shouldFocus:!0});let M=function(e){let{isOpen:t,ref:n}=e,[i,o]=(0,D.useState)(t),[a,s]=(0,D.useState)(!1);(0,D.useEffect)(()=>{a||(o(t),s(!0))},[t,a,i]),function(e,t,n,i){let o=useCallbackRef(n);(0,D.useEffect)(()=>{let a="function"==typeof e?e():null!=e?e:document;if(n&&a)return a.addEventListener(t,o,i),()=>{a.removeEventListener(t,o,i)}},[t,e,i,o,n]),()=>{let n="function"==typeof e?e():null!=e?e:document;null==n||n.removeEventListener(t,o,i)}}(()=>n.current,"animationend",()=>{o(t)});let l=!t&&!i;return{present:!l,onComplete(){var e,t,i;let o=null!=(i=null==(t=chunk_3XANSPY5_getOwnerDocument(n.current))?void 0:t.defaultView)?i:window,a=new o.CustomEvent("animationend",{bubbles:!0});null==(e=n.current)||e.dispatchEvent(a)}}}({isOpen:_,ref:v}),[O,B]=function(e,...t){let n=(0,D.useId)(),i=e||n;return(0,D.useMemo)(()=>t.map(e=>`${e}-${i}`),[i,t])}(t,"menu-button","menu-list"),V=(0,D.useCallback)(()=>{C(),x()},[C,x]),I=(0,D.useRef)(new Set([]));!function(e,t=[]){(0,D.useEffect)(()=>()=>e(),t)}(()=>{I.current.forEach(e=>clearTimeout(e)),I.current.clear()});let F=(0,D.useCallback)(()=>{C(),S()},[S,C]),L=(0,D.useCallback)(()=>{C(),k()},[C,k]),N=(0,D.useCallback)(()=>{var e,t;let n=chunk_CRQSZOKU_getOwnerDocument(v.current),i=null==(e=v.current)?void 0:e.contains(n.activeElement),o=_&&!i;if(!o)return;let a=null==(t=b.item(j))?void 0:t.node;null==a||a.focus()},[_,j,b]);return{openAndFocusMenu:V,openAndFocusFirstItem:F,openAndFocusLastItem:L,onTransitionEnd:N,unstable__animationState:M,descendants:b,popper:E,buttonId:O,menuId:B,forceUpdate:E.forceUpdate,orientation:"vertical",isOpen:_,onToggle:P,onOpen:C,onClose:T,menuRef:v,buttonRef:y,focusedIndex:j,closeOnSelect:n,closeOnBlur:i,autoSelect:a,setFocusedIndex:R,isLazy:s,lazyBehavior:h,initialFocusRef:o}}({...i,direction:o}),l=(0,D.useMemo)(()=>s,[s]),{isOpen:c,onClose:u,forceUpdate:d}=l;return(0,O.jsx)(eB,{value:a,children:(0,O.jsx)(eF,{value:l,children:(0,O.jsx)(eU,{value:n,children:(0,Y.Pu)(t,{isOpen:c,onClose:u,forceUpdate:d})})})})};Menu.displayName="Menu";var eG=(0,U.G)((e,t)=>{let n=eH();return(0,O.jsx)(H.m.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...n.button}})}),eK=(0,U.G)((e,t)=>{let{children:n,as:i,...o}=e,a=function(e={},t=null){let n=eL(),{onToggle:i,popper:o,openAndFocusFirstItem:a,openAndFocusLastItem:s}=n,l=(0,D.useCallback)(e=>{let t=e.key,n={Enter:a,ArrowDown:a,ArrowUp:s}[t];n&&(e.preventDefault(),e.stopPropagation(),n(e))},[a,s]);return{...e,ref:(0,Q.lq)(n.buttonRef,t,o.referenceRef),id:n.buttonId,"data-active":(0,Y.PB)(n.isOpen),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:(0,Y.v0)(e.onClick,i),onKeyDown:(0,Y.v0)(e.onKeyDown,l)}}(o,t),s=i||eG;return(0,O.jsx)(s,{...a,className:(0,Y.cx)("chakra-menu__menu-button",e.className),children:(0,O.jsx)(H.m.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:e.children})})});eK.displayName="MenuButton";var eX=n(5450),eY=(0,U.G)((e,t)=>{let{icon:n,children:i,isRound:o,"aria-label":a,...s}=e,l=n||i,c=(0,D.isValidElement)(l)?(0,D.cloneElement)(l,{"aria-hidden":!0,focusable:!1}):null;return(0,O.jsx)(eX.z,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":a,...s,children:c})});eY.displayName="IconButton";var eZ=n(7672),eJ={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},eQ=(0,H.m)(eZ.E.div),e0=(0,U.G)(function(e,t){var n,i;let{rootProps:o,motionProps:a,...s}=e,{isOpen:l,onTransitionEnd:c,unstable__animationState:u}=eL(),d=function(e={},t=null){let n=eL();if(!n)throw Error("useMenuContext: context is undefined. Seems you forgot to wrap component within ");let{focusedIndex:i,setFocusedIndex:o,menuRef:a,isOpen:s,onClose:l,menuId:c,isLazy:u,lazyBehavior:d,unstable__animationState:p}=n,h=eV(),f=function(e={}){let{timeout:t=300,preventDefault:n=()=>!0}=e,[i,o]=(0,D.useState)([]),a=(0,D.useRef)(),flush=()=>{a.current&&(clearTimeout(a.current),a.current=null)},clearKeysAfterDelay=()=>{flush(),a.current=setTimeout(()=>{o([]),a.current=null},t)};return(0,D.useEffect)(()=>flush,[]),function(e){return t=>{if("Backspace"===t.key){let e=[...i];e.pop(),o(e);return}if(function(e){let{key:t}=e;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(t)){let a=i.concat(t.key);n(t)&&(t.preventDefault(),t.stopPropagation()),o(a),e(a.join("")),clearKeysAfterDelay()}}}}({preventDefault:e=>" "!==e.key&&isTargetMenuItem(e.target)}),m=(0,D.useCallback)(e=>{let t=e.key,n={Tab:e=>e.preventDefault(),Escape:l,ArrowDown:()=>{let e=h.nextEnabled(i);e&&o(e.index)},ArrowUp:()=>{let e=h.prevEnabled(i);e&&o(e.index)}}[t];if(n){e.preventDefault(),n(e);return}let a=f(e=>{let t=function(e,t,n,i){if(null==t)return i;if(!i){let i=e.find(e=>n(e).toLowerCase().startsWith(t.toLowerCase()));return i}let o=e.filter(e=>n(e).toLowerCase().startsWith(t.toLowerCase()));if(o.length>0){let t;if(o.includes(i)){let e=o.indexOf(i);return(t=e+1)===o.length&&(t=0),o[t]}return t=e.indexOf(o[0]),e[t]}return i}(h.values(),e,e=>{var t,n;return null!=(n=null==(t=null==e?void 0:e.node)?void 0:t.textContent)?n:""},h.item(i));if(t){let e=h.indexOf(t.node);o(e)}});isTargetMenuItem(e.target)&&a(e)},[h,i,f,l,o]),g=(0,D.useRef)(!1);s&&(g.current=!0);let v=function(e){let{wasSelected:t,enabled:n,isSelected:i,mode:o="unmount"}=e;return!n||!!i||"keepMounted"===o&&!!t}({wasSelected:g.current,enabled:u,mode:d,isSelected:p.present});return{...e,ref:(0,Q.lq)(a,t),children:v?e.children:null,tabIndex:-1,role:"menu",id:c,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:(0,Y.v0)(e.onKeyDown,m)}}(s,t),p=function(e={}){let{popper:t,isOpen:n}=eL();return t.getPopperProps({...e,style:{visibility:n?"visible":"hidden",...e.style}})}(o),h=eH();return(0,O.jsx)(H.m.div,{...p,__css:{zIndex:null!=(i=e.zIndex)?i:null==(n=h.list)?void 0:n.zIndex},children:(0,O.jsx)(eQ,{variants:eJ,initial:!1,animate:l?"enter":"exit",__css:{outline:0,...h.list},...a,className:(0,Y.cx)("chakra-menu__menu-list",d.className),...d,onUpdate:c,onAnimationComplete:(0,Y.PP)(u.onComplete,d.onAnimationComplete)})})});e0.displayName="MenuList";var e1=(0,U.G)((e,t)=>{let n=eH();return(0,O.jsx)(H.m.span,{ref:t,...e,__css:n.command,className:"chakra-menu__command"})});e1.displayName="MenuCommand";var e2=(0,U.G)((e,t)=>{let{type:n,...i}=e,o=eH(),a=i.as||n?null!=n?n:void 0:"button",s=(0,D.useMemo)(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...o.item}),[o.item]);return(0,O.jsx)(H.m.button,{ref:t,type:a,...i,__css:s})}),MenuIcon=e=>{let{className:t,children:n,...i}=e,o=D.Children.only(n),a=(0,D.isValidElement)(o)?(0,D.cloneElement)(o,{focusable:"false","aria-hidden":!0,className:(0,Y.cx)("chakra-menu__icon",o.props.className)}):null,s=(0,Y.cx)("chakra-menu__icon-wrapper",t);return(0,O.jsx)(H.m.span,{className:s,...i,__css:{flexShrink:0},children:a})};MenuIcon.displayName="MenuIcon";var e5=(0,U.G)((e,t)=>{let{icon:n,iconSpacing:i="0.75rem",command:o,commandSpacing:a="0.75rem",children:s,...l}=e,c=function(e={},t=null){let{onMouseEnter:n,onMouseMove:i,onMouseLeave:o,onClick:a,onFocus:s,isDisabled:l,isFocusable:c,closeOnSelect:u,type:d,...p}=e,h=eL(),{setFocusedIndex:f,focusedIndex:m,closeOnSelect:g,onClose:v,menuRef:y,isOpen:b,menuId:x}=h,S=(0,D.useRef)(null),k=`${x}-menuitem-${(0,D.useId)()}`,{index:w,register:_}=eI({disabled:l&&!c}),C=(0,D.useCallback)(e=>{null==n||n(e),l||f(w)},[f,w,l,n]),T=(0,D.useCallback)(e=>{null==i||i(e),S.current&&!chunk_CRQSZOKU_isActiveElement(S.current)&&C(e)},[C,i]),P=(0,D.useCallback)(e=>{null==o||o(e),l||f(-1)},[f,l,o]),E=(0,D.useCallback)(e=>{null==a||a(e),isTargetMenuItem(e.currentTarget)&&(null!=u?u:g)&&v()},[v,a,g,u]),j=(0,D.useCallback)(e=>{null==s||s(e),f(w)},[f,s,w]),R=w===m,M=l&&!c;dist_useUpdateEffect(()=>{b&&(R&&!M&&S.current?requestAnimationFrame(()=>{var e;null==(e=S.current)||e.focus()}):y.current&&!chunk_CRQSZOKU_isActiveElement(y.current)&&y.current.focus())},[R,M,y,b]);let O=function(e={}){let{ref:t,isDisabled:n,isFocusable:i,clickOnEnter:o=!0,clickOnSpace:a=!0,onMouseDown:s,onMouseUp:l,onClick:c,onKeyDown:u,onKeyUp:d,tabIndex:p,onMouseOver:h,onMouseLeave:f,...m}=e,[g,v]=(0,D.useState)(!0),[y,b]=(0,D.useState)(!1),x=function(){let e=(0,D.useRef)(new Map),t=e.current,n=(0,D.useCallback)((t,n,i,o)=>{e.current.set(i,{type:n,el:t,options:o}),t.addEventListener(n,i,o)},[]),i=(0,D.useCallback)((t,n,i,o)=>{t.removeEventListener(n,i,o),e.current.delete(i)},[]);return(0,D.useEffect)(()=>()=>{t.forEach((e,t)=>{i(e.el,e.type,t,e.options)})},[i,t]),{add:n,remove:i}}(),S=g?p:p||0,k=n&&!i,w=(0,D.useCallback)(e=>{if(n){e.stopPropagation(),e.preventDefault();return}let t=e.currentTarget;t.focus(),null==c||c(e)},[n,c]),_=(0,D.useCallback)(e=>{y&&isValidElement(e)&&(e.preventDefault(),e.stopPropagation(),b(!1),x.remove(document,"keyup",_,!1))},[y,x]),C=(0,D.useCallback)(e=>{if(null==u||u(e),n||e.defaultPrevented||e.metaKey||!isValidElement(e.nativeEvent)||g)return;let t=o&&"Enter"===e.key,i=a&&" "===e.key;if(i&&(e.preventDefault(),b(!0)),t){e.preventDefault();let t=e.currentTarget;t.click()}x.add(document,"keyup",_,!1)},[n,g,u,o,a,x,_]),T=(0,D.useCallback)(e=>{if(null==d||d(e),n||e.defaultPrevented||e.metaKey||!isValidElement(e.nativeEvent)||g)return;let t=a&&" "===e.key;if(t){e.preventDefault(),b(!1);let t=e.currentTarget;t.click()}},[a,g,n,d]),P=(0,D.useCallback)(e=>{0===e.button&&(b(!1),x.remove(document,"mouseup",P,!1))},[x]),E=(0,D.useCallback)(e=>{if(0!==e.button)return;if(n){e.stopPropagation(),e.preventDefault();return}g||b(!0);let t=e.currentTarget;t.focus({preventScroll:!0}),x.add(document,"mouseup",P,!1),null==s||s(e)},[n,g,s,x,P]),j=(0,D.useCallback)(e=>{0===e.button&&(g||b(!1),null==l||l(e))},[l,g]),R=(0,D.useCallback)(e=>{if(n){e.preventDefault();return}null==h||h(e)},[n,h]),M=(0,D.useCallback)(e=>{y&&(e.preventDefault(),b(!1)),null==f||f(e)},[y,f]),O=(0,Q.lq)(t,e=>{e&&"BUTTON"!==e.tagName&&v(!1)});return g?{...m,ref:O,type:"button","aria-disabled":k?void 0:n,disabled:k,onClick:w,onMouseDown:s,onMouseUp:l,onKeyUp:d,onKeyDown:u,onMouseOver:h,onMouseLeave:f}:{...m,ref:O,role:"button","data-active":(0,Y.PB)(y),"aria-disabled":n?"true":void 0,tabIndex:k?void 0:S,onClick:w,onMouseDown:E,onMouseUp:j,onKeyUp:T,onKeyDown:C,onMouseOver:R,onMouseLeave:M}}({onClick:E,onFocus:j,onMouseEnter:C,onMouseMove:T,onMouseLeave:P,ref:(0,Q.lq)(_,S,t),isDisabled:l,isFocusable:c});return{...p,...O,type:null!=d?d:O.type,id:k,role:"menuitem",tabIndex:R?0:-1}}(l,t),u=n||o?(0,O.jsx)("span",{style:{pointerEvents:"none",flex:1},children:s}):s;return(0,O.jsxs)(e2,{...c,className:(0,Y.cx)("chakra-menu__menuitem",c.className),children:[n&&(0,O.jsx)(MenuIcon,{fontSize:"0.8em",marginEnd:i,children:n}),u,o&&(0,O.jsx)(e1,{marginStart:a,children:o})]})});e5.displayName="MenuItem";var e4=n(8868);function useIsMounted(){let e=(0,D.useRef)(!1);return(0,e4.L)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var e3=n(6166),e6=n(240),e9=n(6681),e7=n(6014);let PopChildMeasure=class PopChildMeasure extends D.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}};function PopChild({children:e,isPresent:t}){let n=(0,D.useId)(),i=(0,D.useRef)(null),o=(0,D.useRef)({width:0,height:0,top:0,left:0}),{nonce:a}=(0,D.useContext)(e7._);return(0,D.useInsertionEffect)(()=>{let{width:e,height:s,top:l,left:c}=o.current;if(t||!i.current||!e||!s)return;i.current.dataset.motionPopId=n;let u=document.createElement("style");return a&&(u.nonce=a),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{8417:function(e,t,n){"use strict";n.d(t,{Z:function(){return createCache}});var i=function(){function StyleSheet(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var e=StyleSheet.prototype;return e.hydrate=function(e){e.forEach(this._insertTag)},e.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?f[x]+" "+S:Utility_replace(S,/&\f/g,f[x])).trim())&&(u[b++]=k);return node(e,t,n,0===a?y:c,u,d,p)}function declaration(e,t,n,i){return node(e,t,n,b,Utility_substr(e,0,i),Utility_substr(e,i+1,-1),i)}var identifierWithPointTracking=function(e,t,n){for(var i=0,o=0;i=o,o=peek(),38===i&&12===o&&(t[n]=1),!token(o);)next();return Utility_substr(h,e,d)},toRules=function(e,t){var n=-1,i=44;do switch(token(i)){case 0:38===i&&12===peek()&&(t[n]=1),e[n]+=identifierWithPointTracking(d-1,t,n);break;case 2:e[n]+=delimit(i);break;case 4:if(44===i){e[++n]=58===peek()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=a(i)}while(i=next());return e},getRules=function(e,t){var n;return n=toRules(alloc(e),t),h="",n},S=new WeakMap,compat=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,i=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||S.get(n))&&!i){S.set(e,!0);for(var o=[],a=getRules(t,o),s=n.props,l=0,c=0;l-1&&!e.return)switch(e.type){case b:e.return=function emotion_cache_browser_esm_prefix(e,t){switch(45^Utility_charat(e,0)?(((t<<2^Utility_charat(e,0))<<2^Utility_charat(e,1))<<2^Utility_charat(e,2))<<2^Utility_charat(e,3):0){case 5103:return g+"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 g+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return g+e+m+e+f+e+e;case 6828:case 4268:return g+e+f+e+e;case 6165:return g+e+f+"flex-"+e+e;case 5187:return g+e+Utility_replace(e,/(\w+).+(:[^]+)/,g+"box-$1$2"+f+"flex-$1$2")+e;case 5443:return g+e+f+"flex-item-"+Utility_replace(e,/flex-|-self/,"")+e;case 4675:return g+e+f+"flex-line-pack"+Utility_replace(e,/align-content|flex-|-self/,"")+e;case 5548:return g+e+f+Utility_replace(e,"shrink","negative")+e;case 5292:return g+e+f+Utility_replace(e,"basis","preferred-size")+e;case 6060:return g+"box-"+Utility_replace(e,"-grow","")+g+e+f+Utility_replace(e,"grow","positive")+e;case 4554:return g+Utility_replace(e,/([^-])(transform)/g,"$1"+g+"$2")+e;case 6187:return Utility_replace(Utility_replace(Utility_replace(e,/(zoom-|grab)/,g+"$1"),/(image-set)/,g+"$1"),e,"")+e;case 5495:case 3959:return Utility_replace(e,/(image-set\([^]*)/,g+"$1$`$1");case 4968:return Utility_replace(Utility_replace(e,/(.+:)(flex-)?(.*)/,g+"box-pack:$3"+f+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+g+e+e;case 4095:case 3583:case 4068:case 2532:return Utility_replace(e,/(.+)-inline(.+)/,g+"$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(Utility_strlen(e)-1-t>6)switch(Utility_charat(e,t+1)){case 109:if(45!==Utility_charat(e,t+4))break;case 102:return Utility_replace(e,/(.+:)(.+)-([^]+)/,"$1"+g+"$2-$3$1"+m+(108==Utility_charat(e,t+3)?"$3":"$2-$3"))+e;case 115:return~indexof(e,"stretch")?emotion_cache_browser_esm_prefix(Utility_replace(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Utility_charat(e,t+1))break;case 6444:switch(Utility_charat(e,Utility_strlen(e)-3-(~indexof(e,"!important")&&10))){case 107:return Utility_replace(e,":",":"+g)+e;case 101:return Utility_replace(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+g+(45===Utility_charat(e,14)?"inline-":"")+"box$3$1"+g+"$2$3$1"+f+"$2box$3")+e}break;case 5936:switch(Utility_charat(e,t+11)){case 114:return g+e+f+Utility_replace(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return g+e+f+Utility_replace(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return g+e+f+Utility_replace(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return g+e+f+e+e}return e}(e.value,e.length);break;case x:return Serializer_serialize([Tokenizer_copy(e,{value:Utility_replace(e.value,"@","@"+g)})],i);case y:if(e.length)return e.props.map(function(t){var n;switch(n=t,(n=/(::plac\w+|:read-\w+)/.exec(n))?n[0]:n){case":read-only":case":read-write":return Serializer_serialize([Tokenizer_copy(e,{props:[Utility_replace(t,/:(read-\w+)/,":"+m+"$1")]})],i);case"::placeholder":return Serializer_serialize([Tokenizer_copy(e,{props:[Utility_replace(t,/:(plac\w+)/,":"+g+"input-$1")]}),Tokenizer_copy(e,{props:[Utility_replace(t,/:(plac\w+)/,":"+m+"$1")]}),Tokenizer_copy(e,{props:[Utility_replace(t,/:(plac\w+)/,f+"input-$1")]})],i)}return""}).join("")}}],createCache=function(e){var t,n,o,s,u,f=e.key;if("css"===f){var m=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(m,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var g=e.stylisPlugins||k,y={},b=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+f+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n2||token(p)>3?"":" "}(w);break;case 92:O+=function(e,t){for(var n;--t&&next()&&!(p<48)&&!(p>102)&&(!(p>57)||!(p<65))&&(!(p>70)||!(p<97)););return n=d+(t<6&&32==peek()&&32==next()),Utility_substr(h,e,n)}(d-1,7);continue;case 47:switch(peek()){case 42:case 47:Utility_append(node(g=function(e,t){for(;next();)if(e+p===57)break;else if(e+p===84&&47===peek())break;return"/*"+Utility_substr(h,t,d-1)+"*"+a(47===e?e:next())}(next(),d),t,n,v,a(p),Utility_substr(g,2,-2),0),m);break;default:O+="/"}break;case 123*_:f[y++]=Utility_strlen(O)*T;case 125*_:case 59:case 0:switch(P){case 0:case 125:C=0;case 59+b:-1==T&&(O=Utility_replace(O,/\f/g,"")),k>0&&Utility_strlen(O)-x&&Utility_append(k>32?declaration(O+";",i,n,x-1):declaration(Utility_replace(O," ","")+";",i,n,x-2),m);break;case 59:O+=";";default:if(Utility_append(M=ruleset(O,t,n,y,b,o,f,E,j=[],R=[],x),s),123===P){if(0===b)parse(O,t,M,M,j,s,x,f,R);else switch(99===S&&110===Utility_charat(O,3)?100:S){case 100:case 108:case 109:case 115:parse(e,M,M,i&&Utility_append(ruleset(e,M,M,0,0,o,f,E,o,j=[],x),R),o,R,x,f,i?j:R);break;default:parse(O,M,M,M,[""],R,0,f,R)}}}y=b=k=0,_=T=1,E=O="",x=u;break;case 58:x=1+Utility_strlen(O),k=w;default:if(_<1){if(123==P)--_;else if(125==P&&0==_++&&125==(p=d>0?Utility_charat(h,--d):0,c--,10===p&&(c=1,l--),p))continue}switch(O+=a(P),P*_){case 38:T=b>0?1:(O+="\f",-1);break;case 44:f[y++]=(Utility_strlen(O)-1)*T,T=1;break;case 64:45===peek()&&(O+=delimit(next())),S=peek(),b=x=Utility_strlen(E=O+=function(e){for(;!token(peek());)next();return Utility_substr(h,e,d)}(d)),P++;break;case 45:45===w&&2==Utility_strlen(O)&&(_=0)}}return s}("",null,null,null,[""],t=alloc(t=e),0,[0],t),h="",n),x)},S={key:f,sheet:new i({key:f,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:y,registered:{},insert:function(e,t,n,i){u=n,stylis(e?e+"{"+t.styles+"}":t.styles),i&&(S.inserted[t.name]=!0)}};return S.sheet.hydrate(b),S}},5042:function(e,t,n){"use strict";function memoize(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{Z:function(){return memoize}})},1683:function(e,t,n){"use strict";n.d(t,{T:function(){return l},a:function(){return ThemeProvider},w:function(){return withEmotionCache}});var i=n(7294),o=n(8417),a=n(7462),weakMemoize=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var i=e(n);return t.set(n,i),i}};n(8137),n(7278);var s=(0,i.createContext)("undefined"!=typeof HTMLElement?(0,o.Z)({key:"css"}):null);s.Provider;var withEmotionCache=function(e){return(0,i.forwardRef)(function(t,n){return e(t,(0,i.useContext)(s),n)})},l=(0,i.createContext)({}),c=weakMemoize(function(e){return weakMemoize(function(t){return"function"==typeof t?t(e):(0,a.Z)({},e,t)})}),ThemeProvider=function(e){var t=(0,i.useContext)(l);return e.theme!==t&&(t=c(t)(e.theme)),(0,i.createElement)(l.Provider,{value:t},e.children)}},917:function(e,t,n){"use strict";n.d(t,{F4:function(){return keyframes},xB:function(){return c}});var i=n(7294);n(8417);var o=n(1683);n(8679);var a=n(444),s=n(8137),l=n(7278),c=(0,o.w)(function(e,t){var n=e.styles,c=(0,s.O)([n],void 0,(0,i.useContext)(o.T)),u=(0,i.useRef)();return(0,l.j)(function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,o=document.querySelector('style[data-emotion="'+e+" "+c.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==o&&(i=!0,o.setAttribute("data-emotion",e),n.hydrate([o])),u.current=[n,i],function(){n.flush()}},[t]),(0,l.j)(function(){var e=u.current,n=e[0];if(e[1]){e[1]=!1;return}if(void 0!==c.next&&(0,a.My)(t,c.next,!0),n.tags.length){var i=n.tags[n.tags.length-1].nextElementSibling;n.before=i,n.flush()}t.insert("",c,n,!1)},[t,c.name]),null});function css(){for(var e=arguments.length,t=Array(e),n=0;n=4;++i,o-=4)t=(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(255&e.charCodeAt(i+2))<<16;case 2:n^=(255&e.charCodeAt(i+1))<<8;case 1:n^=255&e.charCodeAt(i),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(s)+d,styles:s,next:i}}},6829:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var i=n(7294),o=n(7462),a=n(5042),s=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|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)-.*))$/,l=(0,a.Z)(function(e){return s.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),c=n(1683),u=n(444),d=n(8137),p=n(7278),testOmitPropsOnComponent=function(e){return"theme"!==e},getDefaultShouldForwardProp=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?l:testOmitPropsOnComponent},composeShouldForwardProps=function(e,t,n){var i;if(t){var o=t.shouldForwardProp;i=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof i&&n&&(i=e.__emotion_forwardProp),i},Insertion=function(e){var t=e.cache,n=e.serialized,i=e.isStringTag;return(0,u.hC)(t,n,i),(0,p.L)(function(){return(0,u.My)(t,n,i)}),null},h=(function createStyled(e,t){var n,a,s=e.__emotion_real===e,l=s&&e.__emotion_base||e;void 0!==t&&(n=t.label,a=t.target);var p=composeShouldForwardProps(e,t,s),h=p||getDefaultShouldForwardProp(l),f=!h("as");return function(){var m=arguments,g=s&&void 0!==e.__emotion_styles?e.__emotion_styles.slice(0):[];if(void 0!==n&&g.push("label:"+n+";"),null==m[0]||void 0===m[0].raw)g.push.apply(g,m);else{g.push(m[0][0]);for(var v=m.length,y=1;y-1},ListCache.prototype.set=function(e,t){var n=this.__data__,i=assocIndexOf(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},MapCache.prototype.clear=function(){this.size=0,this.__data__={hash:new Hash,map:new(et||ListCache),string:new Hash}},MapCache.prototype.delete=function(e){var t=getMapData(this,e).delete(e);return this.size-=t?1:0,t},MapCache.prototype.get=function(e){return getMapData(this,e).get(e)},MapCache.prototype.has=function(e){return getMapData(this,e).has(e)},MapCache.prototype.set=function(e,t){var n=getMapData(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Stack.prototype.clear=function(){this.__data__=new ListCache,this.size=0},Stack.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Stack.prototype.get=function(e){return this.__data__.get(e)},Stack.prototype.has=function(e){return this.__data__.has(e)},Stack.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ListCache){var i=n.__data__;if(!et||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new MapCache(i)}return n.set(e,t),this.size=n.size,this};var baseFor=function(e,t,n){for(var i=-1,o=Object(e),a=n(e),s=a.length;s--;){var l=a[++i];if(!1===t(o[l],l,o))break}return e};function baseGetTag(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Y&&Y in Object(e)?function(e){var t=V.call(e,Y),n=e[Y];try{e[Y]=void 0;var i=!0}catch(e){}var o=F.call(e);return i&&(t?e[Y]=n:delete e[Y]),o}(e):F.call(e)}function baseIsArguments(e){return isObjectLike(e)&&baseGetTag(e)==m}function getMapData(e,t){var n,i=e.__data__;return("string"==(n=typeof t)||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t)?i["string"==typeof t?"string":"hash"]:i.map}function getNative(e,t){var n=null==e?void 0:e[t];return!(!isObject(n)||I&&I in n)&&(isFunction(n)?N:y).test(function(e){if(null!=e){try{return B.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(n))?n:void 0}function isIndex(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&b.test(e))&&e>-1&&e%1==0&&e0){if(++o>=800)return arguments[0]}else o=0;return i.apply(void 0,arguments)});function eq(e,t){return e===t||e!=e&&t!=t}var eo=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike(e)&&V.call(e,"callee")&&!K.call(e,"callee")},ea=Array.isArray;function isArrayLike(e){return null!=e&&isLength(e.length)&&!isFunction(e)}var es=J||function(){return!1};function isFunction(e){if(!isObject(e))return!1;var t=baseGetTag(e);return t==g||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function isLength(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function isObject(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function isObjectLike(e){return null!=e&&"object"==typeof e}var el=j?function(e){return j(e)}:function(e){return isObjectLike(e)&&isLength(e.length)&&!!x[baseGetTag(e)]};function keysIn(e){return isArrayLike(e)?function(e,t){var n=ea(e),i=!n&&eo(e),o=!n&&!i&&es(e),a=!n&&!i&&!o&&el(e),s=n||i||o||a,l=s?function(e,t){for(var n=-1,i=Array(e);++n1?t[i-1]:void 0,a=i>2?t[2]:void 0;for(o=p.length>3&&"function"==typeof o?(i--,o):void 0,a&&function(e,t,n){if(!isObject(n))return!1;var i=typeof t;return("number"==i?!!(isArrayLike(n)&&isIndex(t,n.length)):"string"==i&&(t in n))&&eq(n[t],e)}(t[0],t[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);++n{})}function formatStringOrUrl(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let y=o.default.forwardRef(function(e,t){let n,i;let{href:l,as:v,children:y,prefetch:b=null,passHref:x,replace:S,shallow:k,scroll:w,locale:_,onClick:C,onMouseEnter:T,onTouchStart:P,legacyBehavior:E=!1,...j}=e;n=y,E&&("string"==typeof n||"number"==typeof n)&&(n=o.default.createElement("a",null,n));let R=o.default.useContext(d.RouterContext),M=o.default.useContext(p.AppRouterContext),O=null!=R?R:M,D=!R,B=!1!==b,V=null===b?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:I,as:F}=o.default.useMemo(()=>{if(!R){let e=formatStringOrUrl(l);return{href:e,as:v?formatStringOrUrl(v):e}}let[e,t]=(0,a.resolveHref)(R,l,!0);return{href:e,as:v?(0,a.resolveHref)(R,v):t||e}},[R,l,v]),L=o.default.useRef(I),N=o.default.useRef(F);E&&(i=o.default.Children.only(n));let $=E?i&&"object"==typeof i&&i.ref:t,[W,U,H]=(0,h.useIntersection)({rootMargin:"200px"}),G=o.default.useCallback(e=>{(N.current!==F||L.current!==I)&&(H(),N.current=F,L.current=I),W(e),$&&("function"==typeof $?$(e):"object"==typeof $&&($.current=e))},[F,$,I,H,W]);o.default.useEffect(()=>{O&&U&&B&&prefetch(O,I,F,{locale:_},{kind:V},D)},[F,I,U,_,B,null==R?void 0:R.locale,O,D,V]);let q={ref:G,onClick(e){E||"function"!=typeof C||C(e),E&&i.props&&"function"==typeof i.props.onClick&&i.props.onClick(e),O&&!e.defaultPrevented&&function(e,t,n,i,a,l,c,u,d,p){let{nodeName:h}=e.currentTarget,f="A"===h.toUpperCase();if(f&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!d&&!(0,s.isLocalURL)(n)))return;e.preventDefault();let navigate=()=>{let e=null==c||c;"beforePopState"in t?t[a?"replace":"push"](n,i,{shallow:l,locale:u,scroll:e}):t[a?"replace":"push"](i||n,{forceOptimisticNavigation:!p,scroll:e})};d?o.default.startTransition(navigate):navigate()}(e,O,I,F,S,k,w,_,D,B)},onMouseEnter(e){E||"function"!=typeof T||T(e),E&&i.props&&"function"==typeof i.props.onMouseEnter&&i.props.onMouseEnter(e),O&&(B||!D)&&prefetch(O,I,F,{locale:_,priority:!0,bypassPrefetchedCheck:!0},{kind:V},D)},onTouchStart(e){E||"function"!=typeof P||P(e),E&&i.props&&"function"==typeof i.props.onTouchStart&&i.props.onTouchStart(e),O&&(B||!D)&&prefetch(O,I,F,{locale:_,priority:!0,bypassPrefetchedCheck:!0},{kind:V},D)}};if((0,c.isAbsoluteUrl)(F))q.href=F;else if(!E||x||"a"===i.type&&!("href"in i.props)){let e=void 0!==_?_:null==R?void 0:R.locale,t=(null==R?void 0:R.isLocaleDomain)&&(0,f.getDomainLocale)(F,e,null==R?void 0:R.locales,null==R?void 0:R.domainLocales);q.href=t||(0,m.addBasePath)((0,u.addLocale)(F,e,null==R?void 0:R.defaultLocale))}return E?o.default.cloneElement(i,q):o.default.createElement("a",{...j,...q},n)}),b=y;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},920:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return useIntersection}});let i=n(7294),o=n(3436),a="function"==typeof IntersectionObserver,s=new Map,l=[];function useIntersection(e){let{rootRef:t,rootMargin:n,disabled:c}=e,u=c||!a,[d,p]=(0,i.useState)(!1),h=(0,i.useRef)(null),f=(0,i.useCallback)(e=>{h.current=e},[]);(0,i.useEffect)(()=>{if(a){if(u||d)return;let e=h.current;if(e&&e.tagName){let i=function(e,t,n){let{id:i,observer:o,elements:a}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},i=l.find(e=>e.root===n.root&&e.margin===n.margin);if(i&&(t=s.get(i)))return t;let o=new Map,a=new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:a,elements:o},l.push(n),s.set(n,t),t}(n);return a.set(e,t),o.observe(e),function(){if(a.delete(e),o.unobserve(e),0===a.size){o.disconnect(),s.delete(i);let e=l.findIndex(e=>e.root===i.root&&e.margin===i.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&p(e),{root:null==t?void 0:t.current,rootMargin:n});return i}}else if(!d){let e=(0,o.requestIdleCallback)(()=>p(!0));return()=>(0,o.cancelIdleCallback)(e)}},[u,n,t,d,h.current]);let m=(0,i.useCallback)(()=>{p(!1)},[]);return[f,d,m]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},597:function(e,t,n){var i=n(3454);n(1479);var o=n(7294),a=o&&"object"==typeof o&&"default"in o?o:{default:o};function _defineProperties(e,t){for(var n=0;n>>0},c={};function computeId(e,t){if(!t)return"jsx-"+e;var n=String(t),i=e+n;return c[i]||(c[i]="jsx-"+stringHash(e+"-"+n)),c[i]}function computeSelector(e,t){var n=e+t;return c[n]||(c[n]=t.replace(/__jsx-style-dynamic-selector/g,e)),c[n]}var u=function(){function StyleSheetRegistry(e){var t=void 0===e?{}:e,n=t.styleSheet,i=void 0===n?null:n,o=t.optimizeForSpeed,a=void 0!==o&&o;this._sheet=i||new l({name:"styled-jsx",optimizeForSpeed:a}),this._sheet.inject(),i&&"boolean"==typeof a&&(this._sheet.setOptimizeForSpeed(a),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var e=StyleSheetRegistry.prototype;return e.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var n=this.getIdAndRules(e),i=n.styleId,o=n.rules;if(i in this._instancesCounts){this._instancesCounts[i]+=1;return}var a=o.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[i]=a,this._instancesCounts[i]=1},e.remove=function(e){var t=this,n=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(n in this._instancesCounts,"styleId: `"+n+"` not found"),this._instancesCounts[n]-=1,this._instancesCounts[n]<1){var i=this._fromServer&&this._fromServer[n];i?(i.parentNode.removeChild(i),delete this._fromServer[n]):(this._indices[n].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[n]),delete this._instancesCounts[n]}},e.update=function(e,t){this.add(t),this.remove(e)},e.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},e.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],n=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return n[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},e.styles=function(e){var t,n;return t=this.cssRules(),void 0===(n=e)&&(n={}),t.map(function(e){var t=e[0],i=e[1];return a.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:n.nonce?n.nonce:void 0,dangerouslySetInnerHTML:{__html:i}})})},e.getIdAndRules=function(e){var t=e.children,n=e.dynamic,i=e.id;if(n){var o=computeId(i,n);return{styleId:o,rules:Array.isArray(t)?t.map(function(e){return computeSelector(o,e)}):[computeSelector(o,t)]}}return{styleId:computeId(i),rules:Array.isArray(t)?t:[t]}},e.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},StyleSheetRegistry}(),d=o.createContext(null);d.displayName="StyleSheetContext";var p=a.default.useInsertionEffect||a.default.useLayoutEffect,h=new u;function JSXStyle(e){var t=h||o.useContext(d);return t&&p(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}JSXStyle.dynamic=function(e){return e.map(function(e){return computeId(e[0],e[1])}).join(" ")},t.style=JSXStyle},5379:function(e,t,n){"use strict";e.exports=n(597).style},7993:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return _app}});var i,o,a,s,l,c,u,d,p,h,f,m,g,v,y,b,x,S,k,w,_,C,T,P,E,j,R,M,O=n(5893),D=n(7294),B=n(9008),V=n.n(B),I=n(1664),F=n.n(I),L=n(2498),N=n(3838),$=n(3100),W=n(6979),U=n(5059),H=n(5523),G=(0,U.G)(function(e,t){let{direction:n,align:i,justify:o,wrap:a,basis:s,grow:l,shrink:c,...u}=e;return(0,O.jsx)(H.m.div,{ref:t,__css:{display:"flex",flexDirection:n,alignItems:i,justifyContent:o,flexWrap:a,flexBasis:s,flexGrow:l,flexShrink:c},...u})});G.displayName="Flex";var q=n(4418),StackItem=e=>(0,O.jsx)(H.m.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});StackItem.displayName="StackItem";var K=n(3951),X="& > *:not(style) ~ *:not(style)",Y=n(5432),Z=n(2495),J=(0,U.G)((e,t)=>{let{isInline:n,direction:i,align:o,justify:a,spacing:s="0.5rem",wrap:l,children:c,divider:u,className:d,shouldWrapChildren:p,...h}=e,f=n?"row":null!=i?i:"column",m=(0,D.useMemo)(()=>(function(e){let{spacing:t,direction:n}=e,i={column:{marginTop:t,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:t},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:t,marginStart:0},"row-reverse":{marginTop:0,marginEnd:t,marginBottom:0,marginStart:0}};return{flexDirection:n,[X]:(0,K.XQ)(n,e=>i[e])}})({direction:f,spacing:s}),[f,s]),g=(0,D.useMemo)(()=>(function(e){let{spacing:t,direction:n}=e,i={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":(0,K.XQ)(n,e=>i[e])}})({spacing:s,direction:f}),[s,f]),v=!!u,y=!p&&!v,b=(0,D.useMemo)(()=>{let e=(0,Z.W)(c);return y?e:e.map((t,n)=>{let i=void 0!==t.key?t.key:n,o=n+1===e.length,a=(0,O.jsx)(StackItem,{children:t},i),s=p?a:t;if(!v)return s;let l=(0,D.cloneElement)(u,{__css:g});return(0,O.jsxs)(D.Fragment,{children:[s,o?null:l]},i)})},[u,g,v,y,p,c]),x=(0,Y.cx)("chakra-stack",d);return(0,O.jsx)(H.m.div,{ref:t,display:"flex",alignItems:o,justifyContent:a,flexDirection:m.flexDirection,flexWrap:l,className:x,__css:v?{}:{[X]:m[X]},...h,children:b})});J.displayName="Stack";var Q=n(1103);function isValidElement(e){let t=e.target,{tagName:n,isContentEditable:i}=t;return"INPUT"!==n&&"TEXTAREA"!==n&&!0!==i}var ee=Object.defineProperty,__defNormalProp=(e,t,n)=>t in e?ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField=(e,t,n)=>(__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),n);function sortNodes(e){return e.sort((e,t)=>{let n=e.compareDocumentPosition(t);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return -1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(!(n&Node.DOCUMENT_POSITION_DISCONNECTED)&&!(n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC))return 0;throw Error("Cannot sort the given nodes.")})}var isElement=e=>"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function getNextIndex(e,t,n){let i=e+1;return n&&i>=t&&(i=0),i}function getPrevIndex(e,t,n){let i=e-1;return n&&i<0&&(i=t),i}var et="undefined"!=typeof window?D.useLayoutEffect:D.useEffect,cast=e=>e,er=class{constructor(){__publicField(this,"descendants",new Map),__publicField(this,"register",e=>{if(null!=e)return isElement(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),__publicField(this,"unregister",e=>{this.descendants.delete(e);let t=sortNodes(Array.from(this.descendants.keys()));this.assignIndex(t)}),__publicField(this,"destroy",()=>{this.descendants.clear()}),__publicField(this,"assignIndex",e=>{this.descendants.forEach(t=>{let n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})}),__publicField(this,"count",()=>this.descendants.size),__publicField(this,"enabledCount",()=>this.enabledValues().length),__publicField(this,"values",()=>{let e=Array.from(this.descendants.values());return e.sort((e,t)=>e.index-t.index)}),__publicField(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),__publicField(this,"item",e=>{if(0!==this.count())return this.values()[e]}),__publicField(this,"enabledItem",e=>{if(0!==this.enabledCount())return this.enabledValues()[e]}),__publicField(this,"first",()=>this.item(0)),__publicField(this,"firstEnabled",()=>this.enabledItem(0)),__publicField(this,"last",()=>this.item(this.descendants.size-1)),__publicField(this,"lastEnabled",()=>{let e=this.enabledValues().length-1;return this.enabledItem(e)}),__publicField(this,"indexOf",e=>{var t,n;return e&&null!=(n=null==(t=this.descendants.get(e))?void 0:t.index)?n:-1}),__publicField(this,"enabledIndexOf",e=>null==e?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),__publicField(this,"next",(e,t=!0)=>{let n=getNextIndex(e,this.count(),t);return this.item(n)}),__publicField(this,"nextEnabled",(e,t=!0)=>{let n=this.item(e);if(!n)return;let i=this.enabledIndexOf(n.node),o=getNextIndex(i,this.enabledCount(),t);return this.enabledItem(o)}),__publicField(this,"prev",(e,t=!0)=>{let n=getPrevIndex(e,this.count()-1,t);return this.item(n)}),__publicField(this,"prevEnabled",(e,t=!0)=>{let n=this.item(e);if(!n)return;let i=this.enabledIndexOf(n.node),o=getPrevIndex(i,this.enabledCount()-1,t);return this.enabledItem(o)}),__publicField(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;let n=Array.from(this.descendants.keys()).concat(e),i=sortNodes(n);(null==t?void 0:t.disabled)&&(t.disabled=!!t.disabled);let o={node:e,index:-1,...t};this.descendants.set(e,o),this.assignIndex(i)})}},en=n(5227),[ei,eo]=(0,en.k)({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function chunk_3XANSPY5_isElement(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function chunk_3XANSPY5_isHTMLElement(e){var t;if(!chunk_3XANSPY5_isElement(e))return!1;let n=null!=(t=e.ownerDocument.defaultView)?t:window;return e instanceof n.HTMLElement}function chunk_3XANSPY5_getOwnerDocument(e){return chunk_3XANSPY5_isElement(e)?e.ownerDocument:document}var hasTabIndex=e=>e.hasAttribute("tabindex"),hasNegativeTabIndex=e=>hasTabIndex(e)&&-1===e.tabIndex;function dist_useUpdateEffect(e,t){let n=(0,D.useRef)(!1),i=(0,D.useRef)(!1);(0,D.useEffect)(()=>{let t=n.current,o=t&&i.current;if(o)return e();i.current=!0},t),(0,D.useEffect)(()=>(n.current=!0,()=>{n.current=!1}),[])}var toVar=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),ea={arrowShadowColor:toVar("--popper-arrow-shadow-color"),arrowSize:toVar("--popper-arrow-size","8px"),arrowSizeHalf:toVar("--popper-arrow-size-half"),arrowBg:toVar("--popper-arrow-bg"),transformOrigin:toVar("--popper-transform-origin"),arrowOffset:toVar("--popper-arrow-offset")},es={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},toTransformOrigin=e=>es[e],el={scroll:!0,resize:!0},ec={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{let t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},eu={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{setTransformOrigin(e)},effect:({state:e})=>()=>{setTransformOrigin(e)}},setTransformOrigin=e=>{e.elements.popper.style.setProperty(ea.transformOrigin.var,toTransformOrigin(e.placement))},ed={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{setArrowStyles(e)}},setArrowStyles=e=>{var t;if(!e.placement)return;let n=getArrowStyle(e.placement);if((null==(t=e.elements)?void 0:t.arrow)&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:ea.arrowSize.varRef,height:ea.arrowSize.varRef,zIndex:-1});let t={[ea.arrowSizeHalf.var]:`calc(${ea.arrowSize.varRef} / 2)`,[ea.arrowOffset.var]:`calc(${ea.arrowSizeHalf.varRef} * -1)`};for(let n in t)e.elements.arrow.style.setProperty(n,t[n])}},getArrowStyle=e=>e.startsWith("top")?{property:"bottom",value:ea.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:ea.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:ea.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:ea.arrowOffset.varRef}:void 0,ep={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{setInnerArrowStyles(e)},effect:({state:e})=>()=>{setInnerArrowStyles(e)}},setInnerArrowStyles=e=>{var t;if(!e.elements.arrow)return;let n=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!n)return;let i=(t=e.placement).includes("top")?"1px 1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("bottom")?"-1px -1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("right")?"-1px 1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("left")?"1px -1px 1px 0 var(--popper-arrow-shadow-color)":void 0;i&&n.style.setProperty("--popper-arrow-default-shadow",i),Object.assign(n.style,{transform:"rotate(45deg)",background:ea.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},eh={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},ef={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function getWindow(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function instanceOf_isElement(e){var t=getWindow(e).Element;return e instanceof t||e instanceof Element}function instanceOf_isHTMLElement(e){var t=getWindow(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function isShadowRoot(e){if("undefined"==typeof ShadowRoot)return!1;var t=getWindow(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var em=Math.max,eg=Math.min,ev=Math.round;function getUAString(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),o=1,a=1;t&&instanceOf_isHTMLElement(e)&&(o=e.offsetWidth>0&&ev(i.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ev(i.height)/e.offsetHeight||1);var s=(instanceOf_isElement(e)?getWindow(e):window).visualViewport,l=!isLayoutViewport()&&n,c=(i.left+(l&&s?s.offsetLeft:0))/o,u=(i.top+(l&&s?s.offsetTop:0))/a,d=i.width/o,p=i.height/a;return{width:d,height:p,top:u,right:c+d,bottom:u+p,left:c,x:c,y:u}}function getWindowScroll(e){var t=getWindow(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function getNodeName(e){return e?(e.nodeName||"").toLowerCase():null}function getDocumentElement(e){return((instanceOf_isElement(e)?e.ownerDocument:e.document)||window.document).documentElement}function getWindowScrollBarX(e){return getBoundingClientRect(getDocumentElement(e)).left+getWindowScroll(e).scrollLeft}function getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function isScrollParent(e){var t=getComputedStyle(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function getLayoutRect(e){var t=getBoundingClientRect(e),n=e.offsetWidth,i=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-i)&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function getParentNode(e){return"html"===getNodeName(e)?e:e.assignedSlot||e.parentNode||(isShadowRoot(e)?e.host:null)||getDocumentElement(e)}function listScrollParents(e,t){void 0===t&&(t=[]);var n,i=function getScrollParent(e){return["html","body","#document"].indexOf(getNodeName(e))>=0?e.ownerDocument.body:instanceOf_isHTMLElement(e)&&isScrollParent(e)?e:getScrollParent(getParentNode(e))}(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),a=getWindow(i),s=o?[a].concat(a.visualViewport||[],isScrollParent(i)?i:[]):i,l=t.concat(s);return o?l:l.concat(listScrollParents(getParentNode(s)))}function getTrueOffsetParent(e){return instanceOf_isHTMLElement(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function getOffsetParent(e){for(var t=getWindow(e),n=getTrueOffsetParent(e);n&&["table","td","th"].indexOf(getNodeName(n))>=0&&"static"===getComputedStyle(n).position;)n=getTrueOffsetParent(n);return n&&("html"===getNodeName(n)||"body"===getNodeName(n)&&"static"===getComputedStyle(n).position)?t:n||function(e){var t=/firefox/i.test(getUAString());if(/Trident/i.test(getUAString())&&instanceOf_isHTMLElement(e)&&"fixed"===getComputedStyle(e).position)return null;var n=getParentNode(e);for(isShadowRoot(n)&&(n=n.host);instanceOf_isHTMLElement(n)&&0>["html","body"].indexOf(getNodeName(n));){var i=getComputedStyle(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}var ey="bottom",eb="right",ex="left",eS="auto",ek=["top",ey,eb,ex],ew="start",e_="viewport",eC="popper",eT=ek.reduce(function(e,t){return e.concat([t+"-"+ew,t+"-end"])},[]),eP=[].concat(ek,[eS]).reduce(function(e,t){return e.concat([t,t+"-"+ew,t+"-end"])},[]),eA=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],eE={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var e=arguments.length,t=Array(e),n=0;n=0?"x":"y"}function computeOffsets(e){var t,n=e.reference,i=e.element,o=e.placement,a=o?getBasePlacement(o):null,s=o?getVariation(o):null,l=n.x+n.width/2-i.width/2,c=n.y+n.height/2-i.height/2;switch(a){case"top":t={x:l,y:n.y-i.height};break;case ey:t={x:l,y:n.y+n.height};break;case eb:t={x:n.x+n.width,y:c};break;case ex:t={x:n.x-i.width,y:c};break;default:t={x:n.x,y:n.y}}var u=a?getMainAxisFromPlacement(a):null;if(null!=u){var d="y"===u?"height":"width";switch(s){case ew:t[u]=t[u]-(n[d]/2-i[d]/2);break;case"end":t[u]=t[u]+(n[d]/2-i[d]/2)}}return t}var eR={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mapToStyles(e){var t,n,i,o,a,s,l,c=e.popper,u=e.popperRect,d=e.placement,p=e.variation,h=e.offsets,f=e.position,m=e.gpuAcceleration,g=e.adaptive,v=e.roundOffsets,y=e.isFixed,b=h.x,x=void 0===b?0:b,S=h.y,k=void 0===S?0:S,w="function"==typeof v?v({x:x,y:k}):{x:x,y:k};x=w.x,k=w.y;var _=h.hasOwnProperty("x"),C=h.hasOwnProperty("y"),T=ex,P="top",E=window;if(g){var j=getOffsetParent(c),R="clientHeight",M="clientWidth";j===getWindow(c)&&"static"!==getComputedStyle(j=getDocumentElement(c)).position&&"absolute"===f&&(R="scrollHeight",M="scrollWidth"),("top"===d||(d===ex||d===eb)&&"end"===p)&&(P=ey,k-=(y&&j===E&&E.visualViewport?E.visualViewport.height:j[R])-u.height,k*=m?1:-1),(d===ex||("top"===d||d===ey)&&"end"===p)&&(T=eb,x-=(y&&j===E&&E.visualViewport?E.visualViewport.width:j[M])-u.width,x*=m?1:-1)}var O=Object.assign({position:f},g&&eR),D=!0===v?(t={x:x,y:k},n=getWindow(c),i=t.x,o=t.y,{x:ev(i*(a=n.devicePixelRatio||1))/a||0,y:ev(o*a)/a||0}):{x:x,y:k};return(x=D.x,k=D.y,m)?Object.assign({},O,((l={})[P]=C?"0":"",l[T]=_?"0":"",l.transform=1>=(E.devicePixelRatio||1)?"translate("+x+"px, "+k+"px)":"translate3d("+x+"px, "+k+"px, 0)",l)):Object.assign({},O,((s={})[P]=C?k+"px":"",s[T]=_?x+"px":"",s.transform="",s))}var eM={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,function(e){return eM[e]})}var eO={start:"end",end:"start"};function getOppositeVariationPlacement(e){return e.replace(/start|end/g,function(e){return eO[e]})}function contains_contains(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&isShadowRoot(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function rectToClientRect(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function getClientRectFromMixedType(e,t,n){var i,o,a,s,l,c,u,d,p,h;return t===e_?rectToClientRect(function(e,t){var n=getWindow(e),i=getDocumentElement(e),o=n.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,c=0;if(o){a=o.width,s=o.height;var u=isLayoutViewport();(u||!u&&"fixed"===t)&&(l=o.offsetLeft,c=o.offsetTop)}return{width:a,height:s,x:l+getWindowScrollBarX(e),y:c}}(e,n)):instanceOf_isElement(t)?((i=getBoundingClientRect(t,!1,"fixed"===n)).top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i):rectToClientRect((o=getDocumentElement(e),s=getDocumentElement(o),l=getWindowScroll(o),c=null==(a=o.ownerDocument)?void 0:a.body,u=em(s.scrollWidth,s.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),d=em(s.scrollHeight,s.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),p=-l.scrollLeft+getWindowScrollBarX(o),h=-l.scrollTop,"rtl"===getComputedStyle(c||s).direction&&(p+=em(s.clientWidth,c?c.clientWidth:0)-u),{width:u,height:d,x:p,y:h}))}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(e){return Object.assign({},getFreshSideObject(),e)}function expandToHashMap(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function detectOverflow(e,t){void 0===t&&(t={});var n,i,o,a,s,l,c,u=t,d=u.placement,p=void 0===d?e.placement:d,h=u.strategy,f=void 0===h?e.strategy:h,m=u.boundary,g=u.rootBoundary,v=u.elementContext,y=void 0===v?eC:v,b=u.altBoundary,x=u.padding,S=void 0===x?0:x,k=mergePaddingObject("number"!=typeof S?S:expandToHashMap(S,ek)),w=e.rects.popper,_=e.elements[void 0!==b&&b?y===eC?"reference":eC:y],C=(n=instanceOf_isElement(_)?_:_.contextElement||getDocumentElement(e.elements.popper),l=(s=[].concat("clippingParents"===(i=void 0===m?"clippingParents":m)?(o=listScrollParents(getParentNode(n)),instanceOf_isElement(a=["absolute","fixed"].indexOf(getComputedStyle(n).position)>=0&&instanceOf_isHTMLElement(n)?getOffsetParent(n):n)?o.filter(function(e){return instanceOf_isElement(e)&&contains_contains(e,a)&&"body"!==getNodeName(e)}):[]):[].concat(i),[void 0===g?e_:g]))[0],(c=s.reduce(function(e,t){var i=getClientRectFromMixedType(n,t,f);return e.top=em(i.top,e.top),e.right=eg(i.right,e.right),e.bottom=eg(i.bottom,e.bottom),e.left=em(i.left,e.left),e},getClientRectFromMixedType(n,l,f))).width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c),T=getBoundingClientRect(e.elements.reference),P=computeOffsets({reference:T,element:w,strategy:"absolute",placement:p}),E=rectToClientRect(Object.assign({},w,P)),j=y===eC?E:T,R={top:C.top-j.top+k.top,bottom:j.bottom-C.bottom+k.bottom,left:C.left-j.left+k.left,right:j.right-C.right+k.right},M=e.modifiersData.offset;if(y===eC&&M){var O=M[p];Object.keys(R).forEach(function(e){var t=[eb,ey].indexOf(e)>=0?1:-1,n=["top",ey].indexOf(e)>=0?"y":"x";R[e]+=O[n]*t})}return R}function within(e,t,n){return em(e,eg(t,n))}function getSideOffsets(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function isAnySideFullyClipped(e){return["top",eb,ey,ex].some(function(t){return e[t]>=0})}var eD=(a=void 0===(o=(i={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,a=void 0===o||o,s=i.resize,l=void 0===s||s,c=getWindow(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(e){e.addEventListener("scroll",n.update,ej)}),l&&c.addEventListener("resize",n.update,ej),function(){a&&u.forEach(function(e){e.removeEventListener("scroll",n.update,ej)}),l&&c.removeEventListener("resize",n.update,ej)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=computeOffsets({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=n.adaptive,a=n.roundOffsets,s=void 0===a||a,l={placement:getBasePlacement(t.placement),variation:getVariation(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===i||i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,mapToStyles(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===o||o,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,mapToStyles(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},o=t.elements[e];instanceOf_isHTMLElement(o)&&getNodeName(o)&&(Object.assign(o.style,n),Object.keys(i).forEach(function(e){var t=i[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var i=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});instanceOf_isHTMLElement(i)&&getNodeName(i)&&(Object.assign(i.style,a),Object.keys(o).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.offset,a=void 0===o?[0,0]:o,s=eP.reduce(function(e,n){var i,o,s,l,c,u;return e[n]=(i=t.rects,s=[ex,"top"].indexOf(o=getBasePlacement(n))>=0?-1:1,c=(l="function"==typeof a?a(Object.assign({},i,{placement:n})):a)[0],u=l[1],c=c||0,u=(u||0)*s,[ex,eb].indexOf(o)>=0?{x:u,y:c}:{x:c,y:u}),e},{}),l=s[t.placement],c=l.x,u=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[i]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=n.mainAxis,a=void 0===o||o,s=n.altAxis,l=void 0===s||s,c=n.fallbackPlacements,u=n.padding,d=n.boundary,p=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,m=void 0===f||f,g=n.allowedAutoPlacements,v=t.options.placement,y=getBasePlacement(v)===v,b=c||(y||!m?[getOppositePlacement(v)]:function(e){if(getBasePlacement(e)===eS)return[];var t=getOppositePlacement(e);return[getOppositeVariationPlacement(e),t,getOppositeVariationPlacement(t)]}(v)),x=[v].concat(b).reduce(function(e,n){var i,o,a,s,l,c,h,f,v,y,b,x;return e.concat(getBasePlacement(n)===eS?(o=(i={placement:n,boundary:d,rootBoundary:p,padding:u,flipVariations:m,allowedAutoPlacements:g}).placement,a=i.boundary,s=i.rootBoundary,l=i.padding,c=i.flipVariations,f=void 0===(h=i.allowedAutoPlacements)?eP:h,0===(b=(y=(v=getVariation(o))?c?eT:eT.filter(function(e){return getVariation(e)===v}):ek).filter(function(e){return f.indexOf(e)>=0})).length&&(b=y),Object.keys(x=b.reduce(function(e,n){return e[n]=detectOverflow(t,{placement:n,boundary:a,rootBoundary:s,padding:l})[getBasePlacement(n)],e},{})).sort(function(e,t){return x[e]-x[t]})):n)},[]),S=t.rects.reference,k=t.rects.popper,w=new Map,_=!0,C=x[0],T=0;T=0,M=R?"width":"height",O=detectOverflow(t,{placement:P,boundary:d,rootBoundary:p,altBoundary:h,padding:u}),D=R?j?eb:ex:j?ey:"top";S[M]>k[M]&&(D=getOppositePlacement(D));var B=getOppositePlacement(D),V=[];if(a&&V.push(O[E]<=0),l&&V.push(O[D]<=0,O[B]<=0),V.every(function(e){return e})){C=P,_=!1;break}w.set(P,V)}if(_)for(var I=m?3:1,_loop=function(e){var t=x.find(function(t){var n=w.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return C=t,"break"},F=I;F>0&&"break"!==_loop(F);F--);t.placement!==C&&(t.modifiersData[i]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,a=n.altAxis,s=n.boundary,l=n.rootBoundary,c=n.altBoundary,u=n.padding,d=n.tether,p=void 0===d||d,h=n.tetherOffset,f=void 0===h?0:h,m=detectOverflow(t,{boundary:s,rootBoundary:l,padding:u,altBoundary:c}),g=getBasePlacement(t.placement),v=getVariation(t.placement),y=!v,b=getMainAxisFromPlacement(g),x="x"===b?"y":"x",S=t.modifiersData.popperOffsets,k=t.rects.reference,w=t.rects.popper,_="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,C="number"==typeof _?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(S){if(void 0===o||o){var E,j="y"===b?"top":ex,R="y"===b?ey:eb,M="y"===b?"height":"width",O=S[b],D=O+m[j],B=O-m[R],V=p?-w[M]/2:0,I=v===ew?k[M]:w[M],F=v===ew?-w[M]:-k[M],L=t.elements.arrow,N=p&&L?getLayoutRect(L):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:getFreshSideObject(),W=$[j],U=$[R],H=within(0,k[M],N[M]),G=y?k[M]/2-V-H-W-C.mainAxis:I-H-W-C.mainAxis,q=y?-k[M]/2+V+H+U+C.mainAxis:F+H+U+C.mainAxis,K=t.elements.arrow&&getOffsetParent(t.elements.arrow),X=K?"y"===b?K.clientTop||0:K.clientLeft||0:0,Y=null!=(E=null==T?void 0:T[b])?E:0,Z=O+G-Y-X,J=O+q-Y,Q=within(p?eg(D,Z):D,O,p?em(B,J):B);S[b]=Q,P[b]=Q-O}if(void 0!==a&&a){var ee,et,er="x"===b?"top":ex,en="x"===b?ey:eb,ei=S[x],eo="y"===x?"height":"width",ea=ei+m[er],es=ei-m[en],el=-1!==["top",ex].indexOf(g),ec=null!=(et=null==T?void 0:T[x])?et:0,eu=el?ea:ei-k[eo]-w[eo]-ec+C.altAxis,ed=el?ei+k[eo]+w[eo]-ec-C.altAxis:es,ep=p&&el?(ee=within(eu,ei,ed))>ed?ed:ee:within(p?eu:ea,ei,p?ed:es);S[x]=ep,P[x]=ep-ei}t.modifiersData[i]=P}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n,i=e.state,o=e.name,a=e.options,s=i.elements.arrow,l=i.modifiersData.popperOffsets,c=getBasePlacement(i.placement),u=getMainAxisFromPlacement(c),d=[ex,eb].indexOf(c)>=0?"height":"width";if(s&&l){var p=mergePaddingObject("number"!=typeof(t="function"==typeof(t=a.padding)?t(Object.assign({},i.rects,{placement:i.placement})):t)?t:expandToHashMap(t,ek)),h=getLayoutRect(s),f="y"===u?"top":ex,m="y"===u?ey:eb,g=i.rects.reference[d]+i.rects.reference[u]-l[u]-i.rects.popper[d],v=l[u]-i.rects.reference[u],y=getOffsetParent(s),b=y?"y"===u?y.clientHeight||0:y.clientWidth||0:0,x=p[f],S=b-h[d]-p[m],k=b/2-h[d]/2+(g/2-v/2),w=within(x,k,S);i.modifiersData[o]=((n={})[u]=w,n.centerOffset=w-k,n)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&contains_contains(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=detectOverflow(t,{elementContext:"reference"}),l=detectOverflow(t,{altBoundary:!0}),c=getSideOffsets(s,i),u=getSideOffsets(l,o,a),d=isAnySideFullyClipped(c),p=isAnySideFullyClipped(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}}]}).defaultModifiers)?[]:o,l=void 0===(s=i.defaultOptions)?eE:s,function(e,t,n){void 0===n&&(n=l);var i,o={placement:"bottom",orderedModifiers:[],options:Object.assign({},eE,l),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,u={state:o,setOptions:function(n){var i,c,d,p,h,f="function"==typeof n?n(o.options):n;cleanupModifierEffects(),o.options=Object.assign({},l,o.options,f),o.scrollParents={reference:instanceOf_isElement(e)?listScrollParents(e):e.contextElement?listScrollParents(e.contextElement):[],popper:listScrollParents(t)};var m=(c=Object.keys(i=[].concat(a,o.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{})).map(function(e){return i[e]}),d=new Map,p=new Set,h=[],c.forEach(function(e){d.set(e.name,e)}),c.forEach(function(e){p.has(e.name)||function sort(e){p.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!p.has(e)){var t=d.get(e);t&&sort(t)}}),h.push(e)}(e)}),eA.reduce(function(e,t){return e.concat(h.filter(function(e){return e.phase===t}))},[]));return o.orderedModifiers=m.filter(function(e){return e.enabled}),o.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=e.effect;if("function"==typeof i){var a=i({state:o,name:t,instance:u,options:void 0===n?{}:n});s.push(a||function(){})}}),u.update()},forceUpdate:function(){if(!c){var e,t,n,i,a,s,l,d,p,h,f,m,g=o.elements,v=g.reference,y=g.popper;if(areValidElements(v,y)){o.rects={reference:(t=getOffsetParent(y),n="fixed"===o.options.strategy,i=instanceOf_isHTMLElement(t),d=instanceOf_isHTMLElement(t)&&(s=ev((a=t.getBoundingClientRect()).width)/t.offsetWidth||1,l=ev(a.height)/t.offsetHeight||1,1!==s||1!==l),p=getDocumentElement(t),h=getBoundingClientRect(v,d,n),f={scrollLeft:0,scrollTop:0},m={x:0,y:0},(i||!i&&!n)&&(("body"!==getNodeName(t)||isScrollParent(p))&&(f=(e=t)!==getWindow(e)&&instanceOf_isHTMLElement(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:getWindowScroll(e)),instanceOf_isHTMLElement(t)?(m=getBoundingClientRect(t,!0),m.x+=t.clientLeft,m.y+=t.clientTop):p&&(m.x=getWindowScrollBarX(p))),{x:h.left+f.scrollLeft-m.x,y:h.top+f.scrollTop-m.y,width:h.width,height:h.height}),popper:getLayoutRect(y)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(e){return o.modifiersData[e.name]=Object.assign({},e.data)});for(var b=0;b{n.current=e}),(0,D.useCallback)((...e)=>{var t;return null==(t=n.current)?void 0:t.call(n,...e)},t)}function isValidEvent(e,t){var n;let i=e.target;if(e.button>0)return!1;if(i){let e=dist_getOwnerDocument(i);if(!e.contains(i))return!1}return!(null==(n=t.current)?void 0:n.contains(i))}function dist_getOwnerDocument(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}var[eB,eV,ez,eI]=function(){let e=cast(ei);return[e,()=>cast(eo()),()=>(function(){let e=(0,D.useRef)(new er);return et(()=>()=>e.current.destroy()),e.current})(),e=>(function(e){let t=eo(),[n,i]=(0,D.useState)(-1),o=(0,D.useRef)(null);et(()=>()=>{o.current&&t.unregister(o.current)},[]),et(()=>{if(!o.current)return;let e=Number(o.current.dataset.index);n==e||Number.isNaN(e)||i(e)});let a=e?cast(t.register(e)):cast(t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(o.current),register:(0,Q.lq)(a,o)}})(e)]}(),[eF,eL]=(0,en.k)({strict:!1,name:"MenuContext"});function chunk_CRQSZOKU_getOwnerDocument(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}function chunk_CRQSZOKU_isActiveElement(e){let t=chunk_CRQSZOKU_getOwnerDocument(e);return t.activeElement===e}function isTargetMenuItem(e){var t;return function(e){var t;if(!(null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE))return!1;let n=null!=(t=e.ownerDocument.defaultView)?t:window;return e instanceof n.HTMLElement}(e)&&!!(null==(t=null==e?void 0:e.getAttribute("role"))?void 0:t.startsWith("menuitem"))}var eN=n(1639),e$=n(3179),eW=n(7323),[eU,eH]=(0,en.k)({name:"MenuStylesContext",errorMessage:"useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),Menu=e=>{let{children:t}=e,n=(0,eN.jC)("Menu",e),i=(0,e$.Lr)(e),{direction:o}=(0,eW.F)(),{descendants:a,...s}=function(e={}){let{id:t,closeOnSelect:n=!0,closeOnBlur:i=!0,initialFocusRef:o,autoSelect:a=!0,isLazy:s,isOpen:l,defaultIsOpen:c,onClose:u,onOpen:d,placement:p="bottom-start",lazyBehavior:h="unmount",direction:f,computePositionOnMount:m=!1,...g}=e,v=(0,D.useRef)(null),y=(0,D.useRef)(null),b=ez(),x=(0,D.useCallback)(()=>{requestAnimationFrame(()=>{var e;null==(e=v.current)||e.focus({preventScroll:!1})})},[]),S=(0,D.useCallback)(()=>{let e=setTimeout(()=>{var e;if(o)null==(e=o.current)||e.focus();else{let e=b.firstEnabled();e&&R(e.index)}});I.current.add(e)},[b,o]),k=(0,D.useCallback)(()=>{let e=setTimeout(()=>{let e=b.lastEnabled();e&&R(e.index)});I.current.add(e)},[b]),w=(0,D.useCallback)(()=>{null==d||d(),a?S():x()},[a,S,x,d]),{isOpen:_,onOpen:C,onClose:T,onToggle:P}=function(e={}){let{onClose:t,onOpen:n,isOpen:i,id:o}=e,a=useCallbackRef(n),s=useCallbackRef(t),[l,c]=(0,D.useState)(e.defaultIsOpen||!1),u=void 0!==i?i:l,d=void 0!==i,p=(0,D.useId)(),h=null!=o?o:`disclosure-${p}`,f=(0,D.useCallback)(()=>{d||c(!1),null==s||s()},[d,s]),m=(0,D.useCallback)(()=>{d||c(!0),null==a||a()},[d,a]),g=(0,D.useCallback)(()=>{u?f():m()},[u,m,f]);return{isOpen:u,onOpen:m,onClose:f,onToggle:g,isControlled:d,getButtonProps:function(e={}){return{...e,"aria-expanded":u,"aria-controls":h,onClick(t){var n;null==(n=e.onClick)||n.call(e,t),g()}}},getDisclosureProps:function(e={}){return{...e,hidden:!u,id:h}}}}({isOpen:l,defaultIsOpen:c,onClose:u,onOpen:w});!function(e){let{ref:t,handler:n,enabled:i=!0}=e,o=useCallbackRef(n),a=(0,D.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=a.current;(0,D.useEffect)(()=>{if(!i)return;let onPointerDown=e=>{isValidEvent(e,t)&&(s.isPointerDown=!0)},onMouseUp=e=>{if(s.ignoreEmulatedMouseEvents){s.ignoreEmulatedMouseEvents=!1;return}s.isPointerDown&&n&&isValidEvent(e,t)&&(s.isPointerDown=!1,o(e))},onTouchEnd=e=>{s.ignoreEmulatedMouseEvents=!0,n&&s.isPointerDown&&isValidEvent(e,t)&&(s.isPointerDown=!1,o(e))},e=dist_getOwnerDocument(t.current);return e.addEventListener("mousedown",onPointerDown,!0),e.addEventListener("mouseup",onMouseUp,!0),e.addEventListener("touchstart",onPointerDown,!0),e.addEventListener("touchend",onTouchEnd,!0),()=>{e.removeEventListener("mousedown",onPointerDown,!0),e.removeEventListener("mouseup",onMouseUp,!0),e.removeEventListener("touchstart",onPointerDown,!0),e.removeEventListener("touchend",onTouchEnd,!0)}},[n,t,o,s,i])}({enabled:_&&i,ref:v,handler:e=>{var t;(null==(t=y.current)?void 0:t.contains(e.target))||T()}});let E=function(e={}){let{enabled:t=!0,modifiers:n,placement:i="bottom",strategy:o="absolute",arrowPadding:a=8,eventListeners:s=!0,offset:l,gutter:c=8,flip:u=!0,boundary:d="clippingParents",preventOverflow:p=!0,matchWidth:h,direction:f="ltr"}=e,m=(0,D.useRef)(null),g=(0,D.useRef)(null),v=(0,D.useRef)(null),y=function(e,t="ltr"){var n,i;let o=(null==(n=eh[e])?void 0:n[t])||e;return"ltr"===t?o:null!=(i=ef[e])?i:o}(i,f),b=(0,D.useRef)(()=>{}),x=(0,D.useCallback)(()=>{var e;t&&m.current&&g.current&&(null==(e=b.current)||e.call(b),v.current=eD(m.current,g.current,{placement:y,modifiers:[ep,ed,eu,{...ec,enabled:!!h},{name:"eventListeners",..."object"==typeof s?{enabled:!0,options:{...el,...s}}:{enabled:s,options:el}},{name:"arrow",options:{padding:a}},{name:"offset",options:{offset:null!=l?l:[0,c]}},{name:"flip",enabled:!!u,options:{padding:8}},{name:"preventOverflow",enabled:!!p,options:{boundary:d}},...null!=n?n:[]],strategy:o}),v.current.forceUpdate(),b.current=v.current.destroy)},[y,t,n,h,s,a,l,c,u,p,d,o]);(0,D.useEffect)(()=>()=>{var e;m.current||g.current||(null==(e=v.current)||e.destroy(),v.current=null)},[]);let S=(0,D.useCallback)(e=>{m.current=e,x()},[x]),k=(0,D.useCallback)((e={},t=null)=>({...e,ref:(0,Q.lq)(S,t)}),[S]),w=(0,D.useCallback)(e=>{g.current=e,x()},[x]),_=(0,D.useCallback)((e={},t=null)=>({...e,ref:(0,Q.lq)(w,t),style:{...e.style,position:o,minWidth:h?void 0:"max-content",inset:"0 auto auto 0"}}),[o,w,h]),C=(0,D.useCallback)((e={},t=null)=>{let{size:n,shadowColor:i,bg:o,style:a,...s}=e;return{...s,ref:t,"data-popper-arrow":"",style:function(e){let{size:t,shadowColor:n,bg:i,style:o}=e,a={...o,position:"absolute"};return t&&(a["--popper-arrow-size"]=t),n&&(a["--popper-arrow-shadow-color"]=n),i&&(a["--popper-arrow-bg"]=i),a}(e)}},[]),T=(0,D.useCallback)((e={},t=null)=>({...e,ref:t,"data-popper-arrow-inner":""}),[]);return{update(){var e;null==(e=v.current)||e.update()},forceUpdate(){var e;null==(e=v.current)||e.forceUpdate()},transformOrigin:ea.transformOrigin.varRef,referenceRef:S,popperRef:w,getPopperProps:_,getArrowProps:C,getArrowInnerProps:T,getReferenceProps:k}}({...g,enabled:_||m,placement:p,direction:f}),[j,R]=(0,D.useState)(-1);dist_useUpdateEffect(()=>{_||R(-1)},[_]),function(e,t){let{shouldFocus:n,visible:i,focusRef:o}=t,a=n&&!i;dist_useUpdateEffect(()=>{if(!a||function(e){let t=e.current;if(!t)return!1;let n=chunk_3XANSPY5_getOwnerDocument(t).activeElement;return!(!n||t.contains(n))&&!!(n&&chunk_3XANSPY5_isHTMLElement(n)&&function(e){var t;if(!chunk_3XANSPY5_isHTMLElement(e)||function isHidden(e){return!!(e.parentElement&&isHidden(e.parentElement))||e.hidden}(e)||!0==!!(t=e).getAttribute("disabled")||!0==!!t.getAttribute("aria-disabled"))return!1;let{localName:n}=e;if(["input","select","textarea","button"].indexOf(n)>=0)return!0;let i={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return n in i?i[n]():!!function(e){let t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||hasTabIndex(e)}(n)&&!hasNegativeTabIndex(n))}(e))return;let t=(null==o?void 0:o.current)||e.current;t&&requestAnimationFrame(()=>{t.focus()})},[a,e,o])}(v,{focusRef:y,visible:_,shouldFocus:!0});let M=function(e){let{isOpen:t,ref:n}=e,[i,o]=(0,D.useState)(t),[a,s]=(0,D.useState)(!1);(0,D.useEffect)(()=>{a||(o(t),s(!0))},[t,a,i]),function(e,t,n,i){let o=useCallbackRef(n);(0,D.useEffect)(()=>{let a="function"==typeof e?e():null!=e?e:document;if(n&&a)return a.addEventListener(t,o,i),()=>{a.removeEventListener(t,o,i)}},[t,e,i,o,n]),()=>{let n="function"==typeof e?e():null!=e?e:document;null==n||n.removeEventListener(t,o,i)}}(()=>n.current,"animationend",()=>{o(t)});let l=!t&&!i;return{present:!l,onComplete(){var e,t,i;let o=null!=(i=null==(t=chunk_3XANSPY5_getOwnerDocument(n.current))?void 0:t.defaultView)?i:window,a=new o.CustomEvent("animationend",{bubbles:!0});null==(e=n.current)||e.dispatchEvent(a)}}}({isOpen:_,ref:v}),[O,B]=function(e,...t){let n=(0,D.useId)(),i=e||n;return(0,D.useMemo)(()=>t.map(e=>`${e}-${i}`),[i,t])}(t,"menu-button","menu-list"),V=(0,D.useCallback)(()=>{C(),x()},[C,x]),I=(0,D.useRef)(new Set([]));!function(e,t=[]){(0,D.useEffect)(()=>()=>e(),t)}(()=>{I.current.forEach(e=>clearTimeout(e)),I.current.clear()});let F=(0,D.useCallback)(()=>{C(),S()},[S,C]),L=(0,D.useCallback)(()=>{C(),k()},[C,k]),N=(0,D.useCallback)(()=>{var e,t;let n=chunk_CRQSZOKU_getOwnerDocument(v.current),i=null==(e=v.current)?void 0:e.contains(n.activeElement),o=_&&!i;if(!o)return;let a=null==(t=b.item(j))?void 0:t.node;null==a||a.focus()},[_,j,b]);return{openAndFocusMenu:V,openAndFocusFirstItem:F,openAndFocusLastItem:L,onTransitionEnd:N,unstable__animationState:M,descendants:b,popper:E,buttonId:O,menuId:B,forceUpdate:E.forceUpdate,orientation:"vertical",isOpen:_,onToggle:P,onOpen:C,onClose:T,menuRef:v,buttonRef:y,focusedIndex:j,closeOnSelect:n,closeOnBlur:i,autoSelect:a,setFocusedIndex:R,isLazy:s,lazyBehavior:h,initialFocusRef:o}}({...i,direction:o}),l=(0,D.useMemo)(()=>s,[s]),{isOpen:c,onClose:u,forceUpdate:d}=l;return(0,O.jsx)(eB,{value:a,children:(0,O.jsx)(eF,{value:l,children:(0,O.jsx)(eU,{value:n,children:(0,Y.Pu)(t,{isOpen:c,onClose:u,forceUpdate:d})})})})};Menu.displayName="Menu";var eG=(0,U.G)((e,t)=>{let n=eH();return(0,O.jsx)(H.m.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...n.button}})}),eK=(0,U.G)((e,t)=>{let{children:n,as:i,...o}=e,a=function(e={},t=null){let n=eL(),{onToggle:i,popper:o,openAndFocusFirstItem:a,openAndFocusLastItem:s}=n,l=(0,D.useCallback)(e=>{let t=e.key,n={Enter:a,ArrowDown:a,ArrowUp:s}[t];n&&(e.preventDefault(),e.stopPropagation(),n(e))},[a,s]);return{...e,ref:(0,Q.lq)(n.buttonRef,t,o.referenceRef),id:n.buttonId,"data-active":(0,Y.PB)(n.isOpen),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:(0,Y.v0)(e.onClick,i),onKeyDown:(0,Y.v0)(e.onKeyDown,l)}}(o,t),s=i||eG;return(0,O.jsx)(s,{...a,className:(0,Y.cx)("chakra-menu__menu-button",e.className),children:(0,O.jsx)(H.m.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:e.children})})});eK.displayName="MenuButton";var eX=n(5450),eY=(0,U.G)((e,t)=>{let{icon:n,children:i,isRound:o,"aria-label":a,...s}=e,l=n||i,c=(0,D.isValidElement)(l)?(0,D.cloneElement)(l,{"aria-hidden":!0,focusable:!1}):null;return(0,O.jsx)(eX.z,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":a,...s,children:c})});eY.displayName="IconButton";var eZ=n(7672),eJ={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},eQ=(0,H.m)(eZ.E.div),e0=(0,U.G)(function(e,t){var n,i;let{rootProps:o,motionProps:a,...s}=e,{isOpen:l,onTransitionEnd:c,unstable__animationState:u}=eL(),d=function(e={},t=null){let n=eL();if(!n)throw Error("useMenuContext: context is undefined. Seems you forgot to wrap component within ");let{focusedIndex:i,setFocusedIndex:o,menuRef:a,isOpen:s,onClose:l,menuId:c,isLazy:u,lazyBehavior:d,unstable__animationState:p}=n,h=eV(),f=function(e={}){let{timeout:t=300,preventDefault:n=()=>!0}=e,[i,o]=(0,D.useState)([]),a=(0,D.useRef)(),flush=()=>{a.current&&(clearTimeout(a.current),a.current=null)},clearKeysAfterDelay=()=>{flush(),a.current=setTimeout(()=>{o([]),a.current=null},t)};return(0,D.useEffect)(()=>flush,[]),function(e){return t=>{if("Backspace"===t.key){let e=[...i];e.pop(),o(e);return}if(function(e){let{key:t}=e;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(t)){let a=i.concat(t.key);n(t)&&(t.preventDefault(),t.stopPropagation()),o(a),e(a.join("")),clearKeysAfterDelay()}}}}({preventDefault:e=>" "!==e.key&&isTargetMenuItem(e.target)}),m=(0,D.useCallback)(e=>{let t=e.key,n={Tab:e=>e.preventDefault(),Escape:l,ArrowDown:()=>{let e=h.nextEnabled(i);e&&o(e.index)},ArrowUp:()=>{let e=h.prevEnabled(i);e&&o(e.index)}}[t];if(n){e.preventDefault(),n(e);return}let a=f(e=>{let t=function(e,t,n,i){if(null==t)return i;if(!i){let i=e.find(e=>n(e).toLowerCase().startsWith(t.toLowerCase()));return i}let o=e.filter(e=>n(e).toLowerCase().startsWith(t.toLowerCase()));if(o.length>0){let t;if(o.includes(i)){let e=o.indexOf(i);return(t=e+1)===o.length&&(t=0),o[t]}return t=e.indexOf(o[0]),e[t]}return i}(h.values(),e,e=>{var t,n;return null!=(n=null==(t=null==e?void 0:e.node)?void 0:t.textContent)?n:""},h.item(i));if(t){let e=h.indexOf(t.node);o(e)}});isTargetMenuItem(e.target)&&a(e)},[h,i,f,l,o]),g=(0,D.useRef)(!1);s&&(g.current=!0);let v=function(e){let{wasSelected:t,enabled:n,isSelected:i,mode:o="unmount"}=e;return!n||!!i||"keepMounted"===o&&!!t}({wasSelected:g.current,enabled:u,mode:d,isSelected:p.present});return{...e,ref:(0,Q.lq)(a,t),children:v?e.children:null,tabIndex:-1,role:"menu",id:c,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:(0,Y.v0)(e.onKeyDown,m)}}(s,t),p=function(e={}){let{popper:t,isOpen:n}=eL();return t.getPopperProps({...e,style:{visibility:n?"visible":"hidden",...e.style}})}(o),h=eH();return(0,O.jsx)(H.m.div,{...p,__css:{zIndex:null!=(i=e.zIndex)?i:null==(n=h.list)?void 0:n.zIndex},children:(0,O.jsx)(eQ,{variants:eJ,initial:!1,animate:l?"enter":"exit",__css:{outline:0,...h.list},...a,className:(0,Y.cx)("chakra-menu__menu-list",d.className),...d,onUpdate:c,onAnimationComplete:(0,Y.PP)(u.onComplete,d.onAnimationComplete)})})});e0.displayName="MenuList";var e1=(0,U.G)((e,t)=>{let n=eH();return(0,O.jsx)(H.m.span,{ref:t,...e,__css:n.command,className:"chakra-menu__command"})});e1.displayName="MenuCommand";var e2=(0,U.G)((e,t)=>{let{type:n,...i}=e,o=eH(),a=i.as||n?null!=n?n:void 0:"button",s=(0,D.useMemo)(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...o.item}),[o.item]);return(0,O.jsx)(H.m.button,{ref:t,type:a,...i,__css:s})}),MenuIcon=e=>{let{className:t,children:n,...i}=e,o=D.Children.only(n),a=(0,D.isValidElement)(o)?(0,D.cloneElement)(o,{focusable:"false","aria-hidden":!0,className:(0,Y.cx)("chakra-menu__icon",o.props.className)}):null,s=(0,Y.cx)("chakra-menu__icon-wrapper",t);return(0,O.jsx)(H.m.span,{className:s,...i,__css:{flexShrink:0},children:a})};MenuIcon.displayName="MenuIcon";var e5=(0,U.G)((e,t)=>{let{icon:n,iconSpacing:i="0.75rem",command:o,commandSpacing:a="0.75rem",children:s,...l}=e,c=function(e={},t=null){let{onMouseEnter:n,onMouseMove:i,onMouseLeave:o,onClick:a,onFocus:s,isDisabled:l,isFocusable:c,closeOnSelect:u,type:d,...p}=e,h=eL(),{setFocusedIndex:f,focusedIndex:m,closeOnSelect:g,onClose:v,menuRef:y,isOpen:b,menuId:x}=h,S=(0,D.useRef)(null),k=`${x}-menuitem-${(0,D.useId)()}`,{index:w,register:_}=eI({disabled:l&&!c}),C=(0,D.useCallback)(e=>{null==n||n(e),l||f(w)},[f,w,l,n]),T=(0,D.useCallback)(e=>{null==i||i(e),S.current&&!chunk_CRQSZOKU_isActiveElement(S.current)&&C(e)},[C,i]),P=(0,D.useCallback)(e=>{null==o||o(e),l||f(-1)},[f,l,o]),E=(0,D.useCallback)(e=>{null==a||a(e),isTargetMenuItem(e.currentTarget)&&(null!=u?u:g)&&v()},[v,a,g,u]),j=(0,D.useCallback)(e=>{null==s||s(e),f(w)},[f,s,w]),R=w===m,M=l&&!c;dist_useUpdateEffect(()=>{b&&(R&&!M&&S.current?requestAnimationFrame(()=>{var e;null==(e=S.current)||e.focus()}):y.current&&!chunk_CRQSZOKU_isActiveElement(y.current)&&y.current.focus())},[R,M,y,b]);let O=function(e={}){let{ref:t,isDisabled:n,isFocusable:i,clickOnEnter:o=!0,clickOnSpace:a=!0,onMouseDown:s,onMouseUp:l,onClick:c,onKeyDown:u,onKeyUp:d,tabIndex:p,onMouseOver:h,onMouseLeave:f,...m}=e,[g,v]=(0,D.useState)(!0),[y,b]=(0,D.useState)(!1),x=function(){let e=(0,D.useRef)(new Map),t=e.current,n=(0,D.useCallback)((t,n,i,o)=>{e.current.set(i,{type:n,el:t,options:o}),t.addEventListener(n,i,o)},[]),i=(0,D.useCallback)((t,n,i,o)=>{t.removeEventListener(n,i,o),e.current.delete(i)},[]);return(0,D.useEffect)(()=>()=>{t.forEach((e,t)=>{i(e.el,e.type,t,e.options)})},[i,t]),{add:n,remove:i}}(),S=g?p:p||0,k=n&&!i,w=(0,D.useCallback)(e=>{if(n){e.stopPropagation(),e.preventDefault();return}let t=e.currentTarget;t.focus(),null==c||c(e)},[n,c]),_=(0,D.useCallback)(e=>{y&&isValidElement(e)&&(e.preventDefault(),e.stopPropagation(),b(!1),x.remove(document,"keyup",_,!1))},[y,x]),C=(0,D.useCallback)(e=>{if(null==u||u(e),n||e.defaultPrevented||e.metaKey||!isValidElement(e.nativeEvent)||g)return;let t=o&&"Enter"===e.key,i=a&&" "===e.key;if(i&&(e.preventDefault(),b(!0)),t){e.preventDefault();let t=e.currentTarget;t.click()}x.add(document,"keyup",_,!1)},[n,g,u,o,a,x,_]),T=(0,D.useCallback)(e=>{if(null==d||d(e),n||e.defaultPrevented||e.metaKey||!isValidElement(e.nativeEvent)||g)return;let t=a&&" "===e.key;if(t){e.preventDefault(),b(!1);let t=e.currentTarget;t.click()}},[a,g,n,d]),P=(0,D.useCallback)(e=>{0===e.button&&(b(!1),x.remove(document,"mouseup",P,!1))},[x]),E=(0,D.useCallback)(e=>{if(0!==e.button)return;if(n){e.stopPropagation(),e.preventDefault();return}g||b(!0);let t=e.currentTarget;t.focus({preventScroll:!0}),x.add(document,"mouseup",P,!1),null==s||s(e)},[n,g,s,x,P]),j=(0,D.useCallback)(e=>{0===e.button&&(g||b(!1),null==l||l(e))},[l,g]),R=(0,D.useCallback)(e=>{if(n){e.preventDefault();return}null==h||h(e)},[n,h]),M=(0,D.useCallback)(e=>{y&&(e.preventDefault(),b(!1)),null==f||f(e)},[y,f]),O=(0,Q.lq)(t,e=>{e&&"BUTTON"!==e.tagName&&v(!1)});return g?{...m,ref:O,type:"button","aria-disabled":k?void 0:n,disabled:k,onClick:w,onMouseDown:s,onMouseUp:l,onKeyUp:d,onKeyDown:u,onMouseOver:h,onMouseLeave:f}:{...m,ref:O,role:"button","data-active":(0,Y.PB)(y),"aria-disabled":n?"true":void 0,tabIndex:k?void 0:S,onClick:w,onMouseDown:E,onMouseUp:j,onKeyUp:T,onKeyDown:C,onMouseOver:R,onMouseLeave:M}}({onClick:E,onFocus:j,onMouseEnter:C,onMouseMove:T,onMouseLeave:P,ref:(0,Q.lq)(_,S,t),isDisabled:l,isFocusable:c});return{...p,...O,type:null!=d?d:O.type,id:k,role:"menuitem",tabIndex:R?0:-1}}(l,t),u=n||o?(0,O.jsx)("span",{style:{pointerEvents:"none",flex:1},children:s}):s;return(0,O.jsxs)(e2,{...c,className:(0,Y.cx)("chakra-menu__menuitem",c.className),children:[n&&(0,O.jsx)(MenuIcon,{fontSize:"0.8em",marginEnd:i,children:n}),u,o&&(0,O.jsx)(e1,{marginStart:a,children:o})]})});e5.displayName="MenuItem";var e3=n(8868);function useIsMounted(){let e=(0,D.useRef)(!1);return(0,e3.L)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var e4=n(6166),e6=n(240),e9=n(6681),e7=n(6014);let PopChildMeasure=class PopChildMeasure extends D.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}};function PopChild({children:e,isPresent:t}){let n=(0,D.useId)(),i=(0,D.useRef)(null),o=(0,D.useRef)({width:0,height:0,top:0,left:0}),{nonce:a}=(0,D.useContext)(e7._);return(0,D.useInsertionEffect)(()=>{let{width:e,height:s,top:l,left:c}=o.current;if(t||!i.current||!e||!s)return;i.current.dataset.motionPopId=n;let u=document.createElement("style");return a&&(u.nonce=a),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${e}px !important; @@ -6,7 +6,7 @@ top: ${l}px !important; left: ${c}px !important; } - `),()=>{document.head.removeChild(u)}},[t]),(0,O.jsx)(PopChildMeasure,{isPresent:t,childRef:i,sizeRef:o,children:D.cloneElement(e,{ref:i})})}let PresenceChild=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:o,presenceAffectsLayout:a,mode:s})=>{let l=(0,e9.h)(newChildrenMap),c=(0,D.useId)(),u=(0,D.useMemo)(()=>({id:c,initial:t,isPresent:n,custom:o,onExitComplete:e=>{for(let t of(l.set(e,!0),l.values()))if(!t)return;i&&i()},register:e=>(l.set(e,!1),()=>l.delete(e))}),a?[Math.random()]:[n]);return(0,D.useMemo)(()=>{l.forEach((e,t)=>l.set(t,!1))},[n]),D.useEffect(()=>{n||l.size||!i||i()},[n]),"popLayout"===s&&(e=(0,O.jsx)(PopChild,{isPresent:n,children:e})),(0,O.jsx)(e6.O.Provider,{value:u,children:e})};function newChildrenMap(){return new Map}var e8=n(5364),te=n(5487);let getChildKey=e=>e.key||"",AnimatePresence=({children:e,custom:t,initial:n=!0,onExitComplete:i,exitBeforeEnter:o,presenceAffectsLayout:a=!0,mode:s="sync"})=>{var l;(0,te.k)(!o,"Replace exitBeforeEnter with mode='wait'");let c=(0,D.useContext)(e8.p).forceRender||function(){let e=useIsMounted(),[t,n]=(0,D.useState)(0),i=(0,D.useCallback)(()=>{e.current&&n(t+1)},[t]),o=(0,D.useCallback)(()=>e3.Wi.postRender(i),[i]);return[o,t]}()[0],u=useIsMounted(),d=function(e){let t=[];return D.Children.forEach(e,e=>{(0,D.isValidElement)(e)&&t.push(e)}),t}(e),p=d,h=(0,D.useRef)(new Map).current,f=(0,D.useRef)(p),m=(0,D.useRef)(new Map).current,g=(0,D.useRef)(!0);if((0,e4.L)(()=>{g.current=!1,function(e,t){e.forEach(e=>{let n=getChildKey(e);t.set(n,e)})}(d,m),f.current=p}),l=()=>{g.current=!0,m.clear(),h.clear()},(0,D.useEffect)(()=>()=>l(),[]),g.current)return(0,O.jsx)(O.Fragment,{children:p.map(e=>(0,O.jsx)(PresenceChild,{isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:a,mode:s,children:e},getChildKey(e)))});p=[...p];let v=f.current.map(getChildKey),y=d.map(getChildKey),b=v.length;for(let e=0;e{if(-1!==y.indexOf(n))return;let o=m.get(n);if(!o)return;let l=v.indexOf(n),g=e;g||(g=(0,O.jsx)(PresenceChild,{isPresent:!1,onExitComplete:()=>{h.delete(n);let e=Array.from(m.keys()).filter(e=>!y.includes(e));if(e.forEach(e=>m.delete(e)),f.current=d.filter(t=>{let i=getChildKey(t);return i===n||e.includes(i)}),!h.size){if(!1===u.current)return;c(),i&&i()}},custom:t,presenceAffectsLayout:a,mode:s,children:o},getChildKey(o)),h.set(n,g)),p.splice(l,0,g)}),p=p.map(e=>{let t=e.key;return h.has(t)?e:(0,O.jsx)(PresenceChild,{isPresent:!0,presenceAffectsLayout:a,mode:s,children:e},getChildKey(e))}),(0,O.jsx)(O.Fragment,{children:h.size?p:p.map(e=>(0,D.cloneElement)(e))})};var tt=n(78),tr=(0,tt.I)({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"}),tn=(0,tt.I)({displayName:"SunIcon",path:(0,O.jsxs)("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor",children:[(0,O.jsx)("circle",{cx:"12",cy:"12",r:"5"}),(0,O.jsx)("path",{d:"M12 1v2"}),(0,O.jsx)("path",{d:"M12 21v2"}),(0,O.jsx)("path",{d:"M4.22 4.22l1.42 1.42"}),(0,O.jsx)("path",{d:"M18.36 18.36l1.42 1.42"}),(0,O.jsx)("path",{d:"M1 12h2"}),(0,O.jsx)("path",{d:"M21 12h2"}),(0,O.jsx)("path",{d:"M4.22 19.78l1.42-1.42"}),(0,O.jsx)("path",{d:"M18.36 5.64l1.42-1.42"})]})}),theme_toggle_button=()=>{let{toggleColorMode:e}=(0,L.If)();return(0,O.jsx)(AnimatePresence,{mode:"wait",initial:!1,children:(0,O.jsx)(eZ.E.div,{style:{display:"inline-block"},initial:{y:-20,opacity:0},animate:{y:0,opacity:1},exit:{y:20,opacity:0},transition:{duration:.2},children:(0,O.jsx)(eY,{"aria-label":"Toggle theme",colorScheme:(0,L.ff)("blue","yellow"),icon:(0,L.ff)((0,O.jsx)(tr,{}),(0,O.jsx)(tn,{})),onClick:e})},(0,L.ff)("light","dark"))})},ti=(0,tt.I)({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"}),to=n(2729),ta=n(3205),ts=n(6829);function _templateObject(){let e=(0,to._)(["\n font-weight: bold;\n font-size: 18px;\n display: inline-flex;\n align-items: center;\n height: 30px;\n line-height: 20px;\n padding: 10px;\n"]);return _templateObject=function(){return e},e}let tl=ts.Z.span(_templateObject());var jobtitle=()=>(0,O.jsx)(F(),{href:"/",scroll:!1,children:(0,O.jsx)(tl,{children:(0,O.jsx)(ta.x,{color:(0,L.ff)("gray.800","whiteAlpha.900"),fontFamily:'M PLUS Rounded 1c", sans-serif',fontWeight:"bold",ml:3,children:"Web Developer"})})});let tc=(0,D.forwardRef)(function(e,t){return(0,O.jsx)(N.r,{ref:t,as:F(),...e})}),LinkItem=e=>{let{href:t,path:n,target:i,children:o,...a}=e,s=n===t,l=(0,L.ff)("blackAlpha.900","whiteAlpha.900");return(0,O.jsx)(N.r,{as:F(),href:t,scroll:!1,p:9,bg:s?"grassTeal":void 0,color:s?"#202023":l,target:i,...a,children:o})};var navbar=e=>{let{}=e;return(0,O.jsx)($.xu,{position:"fixed",as:"nav",w:"100%",bg:(0,L.ff)("blackAlpha.100","whiteAlpha.100"),css:{backdropFilter:"blur(10px)"},zIndex:2,...e,children:(0,O.jsxs)(W.W,{display:"flex",maxW:"container.md",wrap:"wrap",align:"center",justify:"space-between",marginTop:1,children:[(0,O.jsx)(G,{align:"center",mr:5,children:(0,O.jsx)(q.X,{as:"h1",variant:"title",children:(0,O.jsx)(jobtitle,{})})}),(0,O.jsxs)(J,{direction:{base:"column",md:"row"},display:{base:"none",md:"flex"},width:{base:"full",md:"auto"},alignItems:"center",flexGrow:1,mt:{base:1,md:0},children:[(0,O.jsx)(LinkItem,{borderRadius:"lg",mb:1,p:1,href:"/portfolio",children:"Portfolio"}),(0,O.jsx)(LinkItem,{borderRadius:"lg",mb:1,p:1,href:"https://web-developer-blog.vercel.app/",children:"Blog"})]}),(0,O.jsxs)($.xu,{flex:1,align:"right",children:[(0,O.jsx)(theme_toggle_button,{}),(0,O.jsx)($.xu,{ml:2,display:{base:"inline-block",md:"none"},children:(0,O.jsxs)(Menu,{isLazy:!0,id:"navbar-menu",children:[(0,O.jsx)(eK,{as:eY,icon:(0,O.jsx)(ti,{}),variant:"outline","aria-label":"Options"}),(0,O.jsxs)(e0,{children:[(0,O.jsx)(e5,{as:tc,href:"/portfolio",flex:1,borderRadius:"lg",mb:1,p:1,textAlign:"center",bg:(0,L.ff)("whiteAlpha.500","blackAlpha.500"),css:{backdropFilter:"blur(10px)"},children:"Portfolio"}),(0,O.jsx)(e5,{as:tc,href:"https://web-developer-blog.vercel.app/",flex:1,borderRadius:"lg",mb:1,p:1,textAlign:"center",bg:(0,L.ff)("whiteAlpha.500","blackAlpha.500"),css:{backdropFilter:"blur(10px)"},children:"Blog"})]})]})})]})]})})},tu={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},td=D.createContext&&D.createContext(tu),__assign=function(){return(__assign=Object.assign||function(e){for(var t,n=1,i=arguments.length;nt.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);ot.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n};function iconBase_GenIcon(e){return function(t){return D.createElement(IconBase,__assign({attr:__assign({},e.attr)},t),function Tree2Element(e){return e&&e.map(function(e,t){return D.createElement(e.tag,__assign({key:t},e.attr),Tree2Element(e.child))})}(e.child))}}function IconBase(e){var elem=function(t){var n,i=e.attr,o=e.size,a=e.title,s=__rest(e,["attr","size","title"]),l=o||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),D.createElement("svg",__assign({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,s,{className:n,style:__assign(__assign({color:e.color||t.color},t.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&D.createElement("title",null,a),e.children)};return void 0!==td?D.createElement(td.Consumer,null,function(e){return elem(e)}):elem(tu)}function IoLogoGithub(e){return iconBase_GenIcon({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 32C132.3 32 32 134.9 32 261.7c0 101.5 64.2 187.5 153.2 217.9a17.56 17.56 0 003.8.4c8.3 0 11.5-6.1 11.5-11.4 0-5.5-.2-19.9-.3-39.1a102.4 102.4 0 01-22.6 2.7c-43.1 0-52.9-33.5-52.9-33.5-10.2-26.5-24.9-33.6-24.9-33.6-19.5-13.7-.1-14.1 1.4-14.1h.1c22.5 2 34.3 23.8 34.3 23.8 11.2 19.6 26.2 25.1 39.6 25.1a63 63 0 0025.6-6c2-14.8 7.8-24.9 14.2-30.7-49.7-5.8-102-25.5-102-113.5 0-25.1 8.7-45.6 23-61.6-2.3-5.8-10-29.2 2.2-60.8a18.64 18.64 0 015-.5c8.1 0 26.4 3.1 56.6 24.1a208.21 208.21 0 01112.2 0c30.2-21 48.5-24.1 56.6-24.1a18.64 18.64 0 015 .5c12.2 31.6 4.5 55 2.2 60.8 14.3 16.1 23 36.6 23 61.6 0 88.2-52.4 107.6-102.3 113.3 8 7.1 15.2 21.1 15.2 42.5 0 30.7-.3 55.5-.3 63 0 5.4 3.1 11.5 11.4 11.5a19.35 19.35 0 004-.4C415.9 449.2 480 363.1 480 261.7 480 134.9 379.7 32 256 32z"}}]})(e)}function IoLogoTwitter(e){return iconBase_GenIcon({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M496 109.5a201.8 201.8 0 01-56.55 15.3 97.51 97.51 0 0043.33-53.6 197.74 197.74 0 01-62.56 23.5A99.14 99.14 0 00348.31 64c-54.42 0-98.46 43.4-98.46 96.9a93.21 93.21 0 002.54 22.1 280.7 280.7 0 01-203-101.3A95.69 95.69 0 0036 130.4c0 33.6 17.53 63.3 44 80.7A97.5 97.5 0 0135.22 199v1.2c0 47 34 86.1 79 95a100.76 100.76 0 01-25.94 3.4 94.38 94.38 0 01-18.51-1.8c12.51 38.5 48.92 66.5 92.05 67.3A199.59 199.59 0 0139.5 405.6a203 203 0 01-23.5-1.4A278.68 278.68 0 00166.74 448c181.36 0 280.44-147.7 280.44-275.8 0-4.2-.11-8.4-.31-12.5A198.48 198.48 0 00496 109.5z"}}]})(e)}function logo_templateObject(){let e=(0,to._)(["\n font-weight: bold;\n font-size: 18px;\n display: inline-flex;\n align-items: center;\n height: 30px;\n line-height: 20px;\n padding: 10px;\n\n > svg {\n transition: 200ms ease;\n }\n\n &:hover > svg {\n transform: rotate(20deg);\n }\n"]);return logo_templateObject=function(){return e},e}let tp=ts.Z.span(logo_templateObject());var logo=()=>(0,O.jsx)(F(),{href:"/",scroll:!1,children:(0,O.jsx)(tp,{children:(0,O.jsx)(ta.x,{color:(0,L.ff)("gray.800","whiteAlpha.900"),fontFamily:'M PLUS Rounded 1c", sans-serif',fontWeight:"bold",ml:3,children:"De Caldas"})})}),footer=()=>(0,O.jsxs)($.xu,{align:"center",opacity:.4,fontSize:"sm",children:[(0,O.jsx)(q.X,{children:(0,O.jsxs)("div",{style:{display:"inline-flex"},children:[(0,O.jsx)("a",{href:"https://github.com/deCaldas",target:"_blank",rel:"noreferrer",children:(0,O.jsx)(IoLogoGithub,{})}),(0,O.jsx)("a",{href:"https://twitter.com/d_caldasCaridad",target:"_blank",rel:"noreferrer",children:(0,O.jsx)(IoLogoTwitter,{})})]})}),(0,O.jsx)(logo,{}),(0,O.jsx)("div",{children:(0,O.jsxs)("div",{style:{display:"inline-flex"},children:["\xa9"," • ","".concat(new Date().getFullYear())," • ","Diego Whiskey"," • ","All Rights Reserved"]})}),(0,O.jsxs)("div",{children:["This website is built based on the"," ",(0,O.jsx)("a",{href:"https://www.craftz.dog/",target:"_blank",rel:"noreferrer",children:"Takuya Matsuyama's website"})]})]}),layouts_main=e=>{let{children:t,router:n}=e;return(0,O.jsxs)("div",{children:[(0,O.jsxs)(V(),{children:[(0,O.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,O.jsx)("meta",{name:"description",content:"Diego's Website"}),(0,O.jsx)("meta",{name:"author",content:"Takuya Matsuyama"}),(0,O.jsx)("meta",{name:"clone-editor",content:"Diego Whiskey"}),(0,O.jsx)("link",{rel:"icon",type:"url",href:"https://pbs.twimg.com/media/FlFT-KJWIAADq21?format=webp&name=tiny"}),(0,O.jsx)("meta",{name:"twitter:title",content:"Diego Whiskey"}),(0,O.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,O.jsx)("meta",{name:"twitter:site",content:"@d_caldasCaridad"}),(0,O.jsx)("meta",{name:"twitter:creator",content:"@d_caldasCaridad"}),(0,O.jsx)("meta",{name:"twitter:image",content:"https://github.com/deCaldas/home/blob/main/public/og/opengraph-imalogo.png"}),(0,O.jsx)("meta",{property:"og:site_name",content:"Diego Whiskey"}),(0,O.jsx)("meta",{name:"og:title",content:"Diego Whiskey"}),(0,O.jsx)("meta",{property:"og:type",content:"website"}),(0,O.jsx)("meta",{property:"og:image",content:"https://github.com/deCaldas/home/blob/main/public/og/opengraph-imalogo.png"}),(0,O.jsx)("title",{children:"Diego's Homepage"})]}),(0,O.jsx)(navbar,{path:n.asPath}),(0,O.jsxs)(W.W,{children:[(0,O.jsx)("br",{}),t]}),(0,O.jsx)(footer,{})]})},th=n(5379),tf=n.n(th),fonts=()=>(0,O.jsx)(tf(),{id:"dc568394b5c44dd0",children:'@import url("https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@300;700&display=swap");'}),tm="chakra-ui-color-mode",tg={ssr:!1,type:"localStorage",get(e){let t;if(!(null==globalThis?void 0:globalThis.document))return e;try{t=localStorage.getItem(tm)||e}catch(e){}return t||e},set(e){try{localStorage.setItem(tm,e)}catch(e){}}};function parseCookie(e,t){let n=e.match(RegExp(`(^| )${t}=([^;]+)`));return null==n?void 0:n[2]}function createCookieStorageManager(e,t){return{ssr:!!t,type:"cookie",get:n=>t?parseCookie(t,e):(null==globalThis?void 0:globalThis.document)&&parseCookie(document.cookie,e)||n,set(t){document.cookie=`${e}=${t}; max-age=31536000; path=/`}}}createCookieStorageManager(tm);var cookieStorageManagerSSR=e=>createCookieStorageManager(tm,e),tv=n(917),ty=` + `),()=>{document.head.removeChild(u)}},[t]),(0,O.jsx)(PopChildMeasure,{isPresent:t,childRef:i,sizeRef:o,children:D.cloneElement(e,{ref:i})})}let PresenceChild=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:o,presenceAffectsLayout:a,mode:s})=>{let l=(0,e9.h)(newChildrenMap),c=(0,D.useId)(),u=(0,D.useMemo)(()=>({id:c,initial:t,isPresent:n,custom:o,onExitComplete:e=>{for(let t of(l.set(e,!0),l.values()))if(!t)return;i&&i()},register:e=>(l.set(e,!1),()=>l.delete(e))}),a?[Math.random()]:[n]);return(0,D.useMemo)(()=>{l.forEach((e,t)=>l.set(t,!1))},[n]),D.useEffect(()=>{n||l.size||!i||i()},[n]),"popLayout"===s&&(e=(0,O.jsx)(PopChild,{isPresent:n,children:e})),(0,O.jsx)(e6.O.Provider,{value:u,children:e})};function newChildrenMap(){return new Map}var e8=n(5364),te=n(5487);let getChildKey=e=>e.key||"",AnimatePresence=({children:e,custom:t,initial:n=!0,onExitComplete:i,exitBeforeEnter:o,presenceAffectsLayout:a=!0,mode:s="sync"})=>{var l;(0,te.k)(!o,"Replace exitBeforeEnter with mode='wait'");let c=(0,D.useContext)(e8.p).forceRender||function(){let e=useIsMounted(),[t,n]=(0,D.useState)(0),i=(0,D.useCallback)(()=>{e.current&&n(t+1)},[t]),o=(0,D.useCallback)(()=>e4.Wi.postRender(i),[i]);return[o,t]}()[0],u=useIsMounted(),d=function(e){let t=[];return D.Children.forEach(e,e=>{(0,D.isValidElement)(e)&&t.push(e)}),t}(e),p=d,h=(0,D.useRef)(new Map).current,f=(0,D.useRef)(p),m=(0,D.useRef)(new Map).current,g=(0,D.useRef)(!0);if((0,e3.L)(()=>{g.current=!1,function(e,t){e.forEach(e=>{let n=getChildKey(e);t.set(n,e)})}(d,m),f.current=p}),l=()=>{g.current=!0,m.clear(),h.clear()},(0,D.useEffect)(()=>()=>l(),[]),g.current)return(0,O.jsx)(O.Fragment,{children:p.map(e=>(0,O.jsx)(PresenceChild,{isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:a,mode:s,children:e},getChildKey(e)))});p=[...p];let v=f.current.map(getChildKey),y=d.map(getChildKey),b=v.length;for(let e=0;e{if(-1!==y.indexOf(n))return;let o=m.get(n);if(!o)return;let l=v.indexOf(n),g=e;g||(g=(0,O.jsx)(PresenceChild,{isPresent:!1,onExitComplete:()=>{h.delete(n);let e=Array.from(m.keys()).filter(e=>!y.includes(e));if(e.forEach(e=>m.delete(e)),f.current=d.filter(t=>{let i=getChildKey(t);return i===n||e.includes(i)}),!h.size){if(!1===u.current)return;c(),i&&i()}},custom:t,presenceAffectsLayout:a,mode:s,children:o},getChildKey(o)),h.set(n,g)),p.splice(l,0,g)}),p=p.map(e=>{let t=e.key;return h.has(t)?e:(0,O.jsx)(PresenceChild,{isPresent:!0,presenceAffectsLayout:a,mode:s,children:e},getChildKey(e))}),(0,O.jsx)(O.Fragment,{children:h.size?p:p.map(e=>(0,D.cloneElement)(e))})};var tt=n(78),tr=(0,tt.I)({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"}),tn=(0,tt.I)({displayName:"SunIcon",path:(0,O.jsxs)("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor",children:[(0,O.jsx)("circle",{cx:"12",cy:"12",r:"5"}),(0,O.jsx)("path",{d:"M12 1v2"}),(0,O.jsx)("path",{d:"M12 21v2"}),(0,O.jsx)("path",{d:"M4.22 4.22l1.42 1.42"}),(0,O.jsx)("path",{d:"M18.36 18.36l1.42 1.42"}),(0,O.jsx)("path",{d:"M1 12h2"}),(0,O.jsx)("path",{d:"M21 12h2"}),(0,O.jsx)("path",{d:"M4.22 19.78l1.42-1.42"}),(0,O.jsx)("path",{d:"M18.36 5.64l1.42-1.42"})]})}),theme_toggle_button=()=>{let{toggleColorMode:e}=(0,L.If)();return(0,O.jsx)(AnimatePresence,{mode:"wait",initial:!1,children:(0,O.jsx)(eZ.E.div,{style:{display:"inline-block"},initial:{y:-20,opacity:0},animate:{y:0,opacity:1},exit:{y:20,opacity:0},transition:{duration:.2},children:(0,O.jsx)(eY,{"aria-label":"Toggle theme",colorScheme:(0,L.ff)("blue","yellow"),icon:(0,L.ff)((0,O.jsx)(tr,{}),(0,O.jsx)(tn,{})),onClick:e})},(0,L.ff)("light","dark"))})},ti=(0,tt.I)({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"}),to=n(2729),ta=n(3205),ts=n(6829);function _templateObject(){let e=(0,to._)(["\n font-weight: bold;\n font-size: 18px;\n display: inline-flex;\n align-items: center;\n height: 30px;\n line-height: 20px;\n padding: 10px;\n"]);return _templateObject=function(){return e},e}let tl=ts.Z.span(_templateObject());var jobtitle=()=>(0,O.jsx)(F(),{href:"/",scroll:!1,children:(0,O.jsx)(tl,{children:(0,O.jsx)(ta.x,{color:(0,L.ff)("gray.800","whiteAlpha.900"),fontFamily:'M PLUS Rounded 1c", sans-serif',fontWeight:"bold",ml:3,children:"Web Developer"})})});let tc=(0,D.forwardRef)(function(e,t){return(0,O.jsx)(N.r,{ref:t,as:F(),...e})}),LinkItem=e=>{let{href:t,path:n,target:i,children:o,...a}=e,s=n===t,l=(0,L.ff)("blackAlpha.900","whiteAlpha.900");return(0,O.jsx)(N.r,{as:F(),href:t,scroll:!1,p:9,bg:s?"grassTeal":void 0,color:s?"#202023":l,target:i,...a,children:o})};var navbar=e=>{let{}=e;return(0,O.jsx)($.xu,{position:"fixed",as:"nav",w:"100%",bg:(0,L.ff)("blackAlpha.100","whiteAlpha.100"),css:{backdropFilter:"blur(10px)"},zIndex:2,...e,children:(0,O.jsxs)(W.W,{display:"flex",maxW:"container.md",wrap:"wrap",align:"center",justify:"space-between",marginTop:1,children:[(0,O.jsx)(G,{align:"center",mr:5,children:(0,O.jsx)(q.X,{as:"h1",variant:"title",children:(0,O.jsx)(jobtitle,{})})}),(0,O.jsxs)(J,{direction:{base:"column",md:"row"},display:{base:"none",md:"flex"},width:{base:"full",md:"auto"},alignItems:"center",flexGrow:1,mt:{base:1,md:0},children:[(0,O.jsx)(LinkItem,{borderRadius:"lg",mb:1,p:1,href:"/portfolio",children:"Portfolio"}),(0,O.jsx)(LinkItem,{borderRadius:"lg",mb:1,p:1,href:"https://web-developer-blog.vercel.app/",children:"Blog"})]}),(0,O.jsxs)($.xu,{flex:1,align:"right",children:[(0,O.jsx)(theme_toggle_button,{}),(0,O.jsx)($.xu,{ml:2,display:{base:"inline-block",md:"none"},children:(0,O.jsxs)(Menu,{isLazy:!0,id:"navbar-menu",children:[(0,O.jsx)(eK,{as:eY,icon:(0,O.jsx)(ti,{}),variant:"outline","aria-label":"Options"}),(0,O.jsxs)(e0,{children:[(0,O.jsx)(e5,{as:tc,href:"/portfolio",flex:1,borderRadius:"lg",mb:1,p:1,textAlign:"center",bg:(0,L.ff)("whiteAlpha.500","blackAlpha.500"),css:{backdropFilter:"blur(10px)"},children:"Portfolio"}),(0,O.jsx)(e5,{as:tc,href:"https://web-developer-blog.vercel.app/",flex:1,borderRadius:"lg",mb:1,p:1,textAlign:"center",bg:(0,L.ff)("whiteAlpha.500","blackAlpha.500"),css:{backdropFilter:"blur(10px)"},children:"Blog"})]})]})})]})]})})},tu={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},td=D.createContext&&D.createContext(tu),__assign=function(){return(__assign=Object.assign||function(e){for(var t,n=1,i=arguments.length;nt.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);ot.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n};function IconBase(e){var elem=function(t){var n,i=e.attr,o=e.size,a=e.title,s=__rest(e,["attr","size","title"]),l=o||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),D.createElement("svg",__assign({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,s,{className:n,style:__assign(__assign({color:e.color||t.color},t.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&D.createElement("title",null,a),e.children)};return void 0!==td?D.createElement(td.Consumer,null,function(e){return elem(e)}):elem(tu)}function IoLogoGithub(e){var t;return(t={tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 32C132.3 32 32 134.9 32 261.7c0 101.5 64.2 187.5 153.2 217.9a17.56 17.56 0 003.8.4c8.3 0 11.5-6.1 11.5-11.4 0-5.5-.2-19.9-.3-39.1a102.4 102.4 0 01-22.6 2.7c-43.1 0-52.9-33.5-52.9-33.5-10.2-26.5-24.9-33.6-24.9-33.6-19.5-13.7-.1-14.1 1.4-14.1h.1c22.5 2 34.3 23.8 34.3 23.8 11.2 19.6 26.2 25.1 39.6 25.1a63 63 0 0025.6-6c2-14.8 7.8-24.9 14.2-30.7-49.7-5.8-102-25.5-102-113.5 0-25.1 8.7-45.6 23-61.6-2.3-5.8-10-29.2 2.2-60.8a18.64 18.64 0 015-.5c8.1 0 26.4 3.1 56.6 24.1a208.21 208.21 0 01112.2 0c30.2-21 48.5-24.1 56.6-24.1a18.64 18.64 0 015 .5c12.2 31.6 4.5 55 2.2 60.8 14.3 16.1 23 36.6 23 61.6 0 88.2-52.4 107.6-102.3 113.3 8 7.1 15.2 21.1 15.2 42.5 0 30.7-.3 55.5-.3 63 0 5.4 3.1 11.5 11.4 11.5a19.35 19.35 0 004-.4C415.9 449.2 480 363.1 480 261.7 480 134.9 379.7 32 256 32z"}}]},function(e){return D.createElement(IconBase,__assign({attr:__assign({},t.attr)},e),function Tree2Element(e){return e&&e.map(function(e,t){return D.createElement(e.tag,__assign({key:t},e.attr),Tree2Element(e.child))})}(t.child))})(e)}function logo_templateObject(){let e=(0,to._)(["\n font-weight: bold;\n font-size: 18px;\n display: inline-flex;\n align-items: center;\n height: 30px;\n line-height: 20px;\n padding: 10px;\n\n > svg {\n transition: 200ms ease;\n }\n\n &:hover > svg {\n transform: rotate(20deg);\n }\n"]);return logo_templateObject=function(){return e},e}let tp=ts.Z.span(logo_templateObject());var logo=()=>(0,O.jsx)(F(),{href:"/",scroll:!1,children:(0,O.jsx)(tp,{children:(0,O.jsx)(ta.x,{color:(0,L.ff)("gray.800","whiteAlpha.900"),fontFamily:'M PLUS Rounded 1c", sans-serif',fontWeight:"bold",ml:3,children:"De Caldas"})})}),footer=()=>(0,O.jsxs)($.xu,{align:"center",opacity:.4,fontSize:"sm",children:[(0,O.jsx)(q.X,{children:(0,O.jsxs)("div",{style:{display:"inline-flex"},children:[(0,O.jsx)("a",{href:"https://github.com/deCaldas",target:"_blank",rel:"noreferrer",children:(0,O.jsx)(IoLogoGithub,{})}),(0,O.jsx)("a",{href:"https://twitter.com/d_caldasCaridad",target:"_blank",rel:"noreferrer"})]})}),(0,O.jsx)(logo,{}),(0,O.jsx)("div",{children:(0,O.jsxs)("div",{style:{display:"inline-flex"},children:["\xa9"," • ","".concat(new Date().getFullYear())," • ","Diego Whiskey"," • ","All Rights Reserved"]})}),(0,O.jsxs)("div",{children:["This website is built based on the"," ",(0,O.jsx)("a",{href:"https://www.craftz.dog/",target:"_blank",rel:"noreferrer",children:"Takuya Matsuyama's website"})]})]}),layouts_main=e=>{let{children:t,router:n}=e;return(0,O.jsxs)("div",{children:[(0,O.jsxs)(V(),{children:[(0,O.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,O.jsx)("meta",{name:"description",content:"Diego's Website"}),(0,O.jsx)("meta",{name:"author",content:"Takuya Matsuyama"}),(0,O.jsx)("meta",{name:"clone-editor",content:"Diego Whiskey"}),(0,O.jsx)("link",{rel:"icon",type:"url",href:"https://pbs.twimg.com/media/FlFT-KJWIAADq21?format=webp&name=tiny"}),(0,O.jsx)("meta",{name:"twitter:title",content:"Diego Whiskey"}),(0,O.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,O.jsx)("meta",{name:"twitter:site",content:"@d_caldasCaridad"}),(0,O.jsx)("meta",{name:"twitter:creator",content:"@d_caldasCaridad"}),(0,O.jsx)("meta",{name:"twitter:image",content:"https://github.com/deCaldas/home/blob/main/public/og/opengraph-imalogo.png"}),(0,O.jsx)("meta",{property:"og:site_name",content:"Diego Whiskey"}),(0,O.jsx)("meta",{name:"og:title",content:"Diego Whiskey"}),(0,O.jsx)("meta",{property:"og:type",content:"website"}),(0,O.jsx)("meta",{property:"og:image",content:"https://github.com/deCaldas/home/blob/main/public/og/opengraph-imalogo.png"}),(0,O.jsx)("title",{children:"Diego's Homepage"})]}),(0,O.jsx)(navbar,{path:n.asPath}),(0,O.jsxs)(W.W,{children:[(0,O.jsx)("br",{}),t]}),(0,O.jsx)(footer,{})]})},th=n(5379),tf=n.n(th),fonts=()=>(0,O.jsx)(tf(),{id:"dc568394b5c44dd0",children:'@import url("https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@300;700&display=swap");'}),tm="chakra-ui-color-mode",tg={ssr:!1,type:"localStorage",get(e){let t;if(!(null==globalThis?void 0:globalThis.document))return e;try{t=localStorage.getItem(tm)||e}catch(e){}return t||e},set(e){try{localStorage.setItem(tm,e)}catch(e){}}};function parseCookie(e,t){let n=e.match(RegExp(`(^| )${t}=([^;]+)`));return null==n?void 0:n[2]}function createCookieStorageManager(e,t){return{ssr:!!t,type:"cookie",get:n=>t?parseCookie(t,e):(null==globalThis?void 0:globalThis.document)&&parseCookie(document.cookie,e)||n,set(t){document.cookie=`${e}=${t}; max-age=31536000; path=/`}}}createCookieStorageManager(tm);var cookieStorageManagerSSR=e=>createCookieStorageManager(tm,e),tv=n(917),ty=` :root { --chakra-vh: 100vh; } @@ -306,7 +306,7 @@ } ${ty} - `}),[tb,tx]=(0,en.k)({strict:!1,name:"PortalManagerContext"});function PortalManager(e){let{children:t,zIndex:n}=e;return(0,O.jsx)(tb,{value:{zIndex:n},children:t})}PortalManager.displayName="PortalManager";var tS=n(1759),tk=n(6597),tw=n(1683);function ThemeProvider(e){let{cssVarsRoot:t,theme:n,children:i}=e,o=(0,D.useMemo)(()=>(0,e$.c0)(n),[n]);return(0,O.jsxs)(tw.a,{theme:o,children:[(0,O.jsx)(CSSVars,{root:t}),i]})}function CSSVars({root:e=":host, :root"}){let t=[e,"[data-theme]"].join(",");return(0,O.jsx)(tv.xB,{styles:e=>({[t]:e.__cssVars})})}var[t_,tC]=function(e={}){let{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:i}=e,o=(0,D.createContext)(void 0);return o.displayName=i,[o.Provider,function useContext(){var e;let i=(0,D.useContext)(o);if(!i&&t){let t=Error(n);throw t.name="ContextError",null==(e=Error.captureStackTrace)||e.call(Error,t,useContext),t}return i},o]}({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function GlobalStyle(){let{colorMode:e}=(0,L.If)();return(0,O.jsx)(tv.xB,{styles:t=>{let n=(0,tS.Wf)(t,"styles.global"),i=(0,tk.Pu)(n,{theme:t,colorMode:e});if(!i)return;let o=(0,e$.iv)(i)(t);return o}})}var tT={light:"chakra-ui-light",dark:"chakra-ui-dark"},tP=(null==globalThis?void 0:globalThis.document)?D.useLayoutEffect:D.useEffect,noop=()=>{};function getTheme(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}function ColorModeProvider(e){let{value:t,children:n,options:{useSystemColorMode:i,initialColorMode:o,disableTransitionOnChange:a}={},colorModeManager:s=tg}=e,l="dark"===o?"dark":"light",[c,u]=(0,D.useState)(()=>getTheme(s,l)),[d,p]=(0,D.useState)(()=>getTheme(s)),{getSystemTheme:h,setClassName:f,setDataset:m,addListener:g}=(0,D.useMemo)(()=>(function(e={}){let{preventTransition:t=!0}=e,n={setDataset:e=>{let i=t?n.preventTransition():void 0;document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e,null==i||i()},setClassName(e){document.body.classList.add(e?tT.dark:tT.light),document.body.classList.remove(e?tT.light:tT.dark)},query:()=>window.matchMedia("(prefers-color-scheme: dark)"),getSystemTheme(e){var t;let i=null!=(t=n.query().matches)?t:"dark"===e;return i?"dark":"light"},addListener(e){let t=n.query(),listener=t=>{e(t.matches?"dark":"light")};return"function"==typeof t.addListener?t.addListener(listener):t.addEventListener("change",listener),()=>{"function"==typeof t.removeListener?t.removeListener(listener):t.removeEventListener("change",listener)}},preventTransition(){let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(e)})})}}};return n})({preventTransition:a}),[a]),v="system"!==o||c?c:d,y=(0,D.useCallback)(e=>{let t="system"===e?h():e;u(t),f("dark"===t),m(t),s.set(t)},[s,h,f,m]);tP(()=>{"system"===o&&p(h())},[]),(0,D.useEffect)(()=>{let e=s.get();if(e){y(e);return}if("system"===o){y("system");return}y(l)},[s,l,o,y]);let b=(0,D.useCallback)(()=>{y("dark"===v?"light":"dark")},[v,y]);(0,D.useEffect)(()=>{if(i)return g(y)},[i,g,y]);let x=(0,D.useMemo)(()=>({colorMode:null!=t?t:v,toggleColorMode:t?noop:b,setColorMode:t?noop:y,forced:void 0!==t}),[v,b,y,t]);return(0,O.jsx)(L.kc.Provider,{value:x,children:n})}ColorModeProvider.displayName="ColorModeProvider";var tA={body:{classList:{add(){},remove(){}}},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]})},chunk_TGVXP7CR_noop=()=>{},tE="undefined"!=typeof window?{window,document}:{window:{document:tA,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:chunk_TGVXP7CR_noop,removeEventListener:chunk_TGVXP7CR_noop,getComputedStyle:()=>({getPropertyValue:()=>""}),matchMedia:()=>({matches:!1,addListener:chunk_TGVXP7CR_noop,removeListener:chunk_TGVXP7CR_noop}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)},setTimeout:()=>0,clearTimeout:chunk_TGVXP7CR_noop,setInterval:()=>0,clearInterval:chunk_TGVXP7CR_noop},document:tA},tj=(0,D.createContext)(tE);function EnvironmentProvider(e){let{children:t,environment:n}=e,[i,o]=(0,D.useState)(null),[a,s]=(0,D.useState)(!1);(0,D.useEffect)(()=>s(!0),[]);let l=(0,D.useMemo)(()=>{if(n)return n;let e=null==i?void 0:i.ownerDocument,t=null==i?void 0:i.ownerDocument.defaultView,o=e?{document:e,window:t}:tE;return o},[i,n]);return(0,O.jsxs)(tj.Provider,{value:l,children:[t,!n&&a&&(0,O.jsx)("span",{id:"__chakra_env",hidden:!0,ref:e=>{(0,D.startTransition)(()=>{e&&o(e)})}})]})}tj.displayName="EnvironmentContext",EnvironmentProvider.displayName="EnvironmentProvider";var ChakraProvider=e=>{let{children:t,colorModeManager:n,portalZIndex:i,resetCSS:o=!0,theme:a={},environment:s,cssVarsRoot:l}=e,c=(0,O.jsx)(EnvironmentProvider,{environment:s,children:t});return(0,O.jsx)(ThemeProvider,{theme:a,cssVarsRoot:l,children:(0,O.jsxs)(ColorModeProvider,{colorModeManager:n,options:a.config,children:[o?(0,O.jsx)(CSSReset,{}):(0,O.jsx)(CSSPolyfill,{}),(0,O.jsx)(GlobalStyle,{}),i?(0,O.jsx)(PortalManager,{zIndex:i,children:c}):c]})})},tR={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},tM={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},tO={...tM,max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch",container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}},tD={breakpoints:{base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},radii:{none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},blur:{none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},colors:{transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},...tR,sizes:tO,shadows:{xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},space:tM,borders:{none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},transition:{property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}}};function anatomy(e,t={}){let n=!1;function toPart(t){let n=["container","root"].includes(null!=t?t:"")?[e]:[e,t],i=n.filter(Boolean).join("__"),o=`chakra-${i}`,a={className:o,selector:`.${o}`,toString:()=>t};return a}return{parts:function(...i){for(let e of(!function(){if(!n){n=!0;return}throw Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}(),i))t[e]=toPart(e);return anatomy(e,t)},toPart,extend:function(...n){for(let e of n)e in t||(t[e]=toPart(e));return anatomy(e,t)},selectors:function(){let e=Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.selector]));return e},classnames:function(){let e=Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.className]));return e},get keys(){return Object.keys(t)},__type:{}}}var tB=anatomy("accordion").parts("root","container","button","panel").extend("icon"),tV=anatomy("alert").parts("title","description","container").extend("icon","spinner"),tz=anatomy("avatar").parts("label","badge","container").extend("excessLabel","group"),tI=anatomy("breadcrumb").parts("link","item","container").extend("separator");anatomy("button").parts();var tF=anatomy("checkbox").parts("control","icon","container").extend("label");anatomy("progress").parts("track","filledTrack").extend("label");var tL=anatomy("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),tN=anatomy("editable").parts("preview","input","textarea"),t$=anatomy("form").parts("container","requiredIndicator","helperText"),tW=anatomy("formError").parts("text","icon"),tU=anatomy("input").parts("addon","field","element"),tH=anatomy("list").parts("container","item","icon"),tG=anatomy("menu").parts("button","list","item").extend("groupTitle","command","divider"),tq=anatomy("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),tK=anatomy("numberinput").parts("root","field","stepperGroup","stepper");anatomy("pininput").parts("field");var tX=anatomy("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),tY=anatomy("progress").parts("label","filledTrack","track"),tZ=anatomy("radio").parts("container","control","label"),tJ=anatomy("select").parts("field","icon"),tQ=anatomy("slider").parts("container","track","thumb","filledTrack","mark"),t0=anatomy("stat").parts("container","label","helpText","number","icon"),t1=anatomy("switch").parts("container","track","thumb"),t2=anatomy("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),t5=anatomy("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),t4=anatomy("tag").parts("container","label","closeButton"),t3=anatomy("card").parts("container","header","body","footer");function chunk_7SOXEYKO_escape(e){let t=function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:Number.isInteger(parseFloat(e.toString()))?e:t.replace(".","\\.")}function cssVar(e,t){var n,i;let o=function(e,t=""){return`--${function(e,t=""){return[t,chunk_7SOXEYKO_escape(e)].filter(Boolean).join("-")}(e,t)}`}(e,null==t?void 0:t.prefix);return{variable:o,reference:(n="string"==typeof(i=null==t?void 0:t.fallback)?i:null==i?void 0:i.reference,`var(${chunk_7SOXEYKO_escape(o)}${n?`, ${n}`:""})`)}}function toRef(e){return(0,Y.Kn)(e)&&e.reference?e.reference:String(e)}var toExpr=(e,...t)=>t.map(toRef).join(` ${e} `).replace(/calc/g,""),add=(...e)=>`calc(${toExpr("+",...e)})`,subtract=(...e)=>`calc(${toExpr("-",...e)})`,multiply=(...e)=>`calc(${toExpr("*",...e)})`,divide=(...e)=>`calc(${toExpr("/",...e)})`,negate=e=>{let t=toRef(e);return null==t||Number.isNaN(parseFloat(t))?multiply(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},t6=Object.assign(e=>({add:(...t)=>t6(add(e,...t)),subtract:(...t)=>t6(subtract(e,...t)),multiply:(...t)=>t6(multiply(e,...t)),divide:(...t)=>t6(divide(e,...t)),negate:()=>t6(negate(e)),toString:()=>e.toString()}),{add,subtract,multiply,divide,negate}),{defineMultiStyleConfig:t9,definePartsStyle:t7}=(0,e$.D)(t1.keys),t8=cssVar("switch-track-width"),re=cssVar("switch-track-height"),rt=cssVar("switch-track-diff"),rr=t6.subtract(t8,re),rn=cssVar("switch-thumb-x"),ri=cssVar("switch-bg"),ro=(0,e$.k0)(e=>{let{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[t8.reference],height:[re.reference],transitionProperty:"common",transitionDuration:"fast",[ri.variable]:"colors.gray.300",_dark:{[ri.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[ri.variable]:`colors.${t}.500`,_dark:{[ri.variable]:`colors.${t}.200`}},bg:ri.reference}}),ra=(0,e$.k0)({bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[re.reference],height:[re.reference],_checked:{transform:`translateX(${rn.reference})`}}),rs=t9({baseStyle:t7(e=>({container:{[rt.variable]:rr,[rn.variable]:rt.reference,_rtl:{[rn.variable]:t6(rt).negate().toString()}},track:ro(e),thumb:ra})),sizes:{sm:t7({container:{[t8.variable]:"1.375rem",[re.variable]:"sizes.3"}}),md:t7({container:{[t8.variable]:"1.875rem",[re.variable]:"sizes.4"}}),lg:t7({container:{[t8.variable]:"2.875rem",[re.variable]:"sizes.6"}})},defaultProps:{size:"md",colorScheme:"blue"}});function mode(e,t){return n=>"dark"===n.colorMode?t:e}function orient(e){let{orientation:t,vertical:n,horizontal:i}=e;return t?"vertical"===t?n:i:{}}var{defineMultiStyleConfig:rl,definePartsStyle:rc}=(0,e$.D)(t2.keys),ru=rc({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),rd=(0,e$.k0)({"&[data-is-numeric=true]":{textAlign:"end"}}),rp=rl({baseStyle:ru,variants:{simple:rc(e=>{let{colorScheme:t}=e;return{th:{color:mode("gray.600","gray.400")(e),borderBottom:"1px",borderColor:mode(`${t}.100`,`${t}.700`)(e),...rd},td:{borderBottom:"1px",borderColor:mode(`${t}.100`,`${t}.700`)(e),...rd},caption:{color:mode("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),striped:rc(e=>{let{colorScheme:t}=e;return{th:{color:mode("gray.600","gray.400")(e),borderBottom:"1px",borderColor:mode(`${t}.100`,`${t}.700`)(e),...rd},td:{borderBottom:"1px",borderColor:mode(`${t}.100`,`${t}.700`)(e),...rd},caption:{color:mode("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:mode(`${t}.100`,`${t}.700`)(e)},td:{background:mode(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),unstyled:(0,e$.k0)({})},sizes:{sm:rc({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:rc({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:rc({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}});function guard(e,t,n){return Math.min(Math.max(e,n),t)}var rh=class extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}};function parseToRgba(e){if("string"!=typeof e)throw new rh(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=rb.test(e)?function(e){let t=e.toLowerCase().trim(),n=rf[function(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return(t>>>0)%2341}(t)];if(!n)throw new rh(e);return`#${n}`}(e):e;let n=rm.exec(t);if(n){let e=Array.from(n).slice(1);return[...e.slice(0,3).map(e=>parseInt(r(e,2),16)),parseInt(r(e[3]||"f",2),16)/255]}let i=rg.exec(t);if(i){let e=Array.from(i).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,16)),parseInt(e[3]||"ff",16)/255]}let o=rv.exec(t);if(o){let e=Array.from(o).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,10)),parseFloat(e[3]||"1")]}let a=ry.exec(t);if(a){let[t,n,i,o]=Array.from(a).slice(1).map(parseFloat);if(guard(0,100,n)!==n||guard(0,100,i)!==i)throw new rh(e);return[...hslToRgb(t,n,i),Number.isNaN(o)?1:o]}throw new rh(e)}let colorToInt=e=>parseInt(e.replace(/_/g,""),36),rf="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 n=colorToInt(t.substring(0,3)),i=colorToInt(t.substring(3)).toString(16),o="";for(let e=0;e<6-i.length;e++)o+="0";return e[n]=`${o}${i}`,e},{}),r=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),rm=RegExp(`^#${r("([a-f0-9])",3)}([a-f0-9])?$`,"i"),rg=RegExp(`^#${r("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),rv=RegExp(`^rgba?\\(\\s*(\\d+)\\s*${r(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),ry=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,rb=/^[a-z]+$/i,roundColor=e=>Math.round(255*e),hslToRgb=(e,t,n)=>{let i=n/100;if(0===t)return[i,i,i].map(roundColor);let o=(e%360+360)%360/60,a=(1-Math.abs(2*i-1))*(t/100),s=a*(1-Math.abs(o%2-1)),l=0,c=0,u=0;o>=0&&o<1?(l=a,c=s):o>=1&&o<2?(l=s,c=a):o>=2&&o<3?(c=a,u=s):o>=3&&o<4?(c=s,u=a):o>=4&&o<5?(l=s,u=a):o>=5&&o<6&&(l=a,u=s);let d=i-a/2,p=l+d,h=c+d,f=u+d;return[p,h,f].map(roundColor)};var isEmptyObject=e=>0===Object.keys(e).length,getColor=(e,t,n)=>{let i=function(e,t,n,i,o){for(t=t.split?t.split("."):t,i=0;i{let t=guard(0,255,e).toString(16);return 1===t.length?`0${t}`:t};hex(t),hex(n),hex(i),o<1&&hex(Math.round(255*o))}(i),i}catch{return null!=n?n:"#000000"}},getBrightness=e=>{let[t,n,i]=parseToRgba(e);return(299*t+587*n+114*i)/1e3},tone=e=>t=>{let n=getColor(t,e),i=getBrightness(n);return i<128?"dark":"light"},isDark=e=>t=>"dark"===tone(e)(t),chunk_H4E5VM26_transparentize=(e,t)=>n=>{let i=getColor(n,e);return function(e,t){let[n,i,o,a]=parseToRgba(e);return`rgba(${guard(0,255,n).toFixed()}, ${guard(0,255,i).toFixed()}, ${guard(0,255,o).toFixed()}, ${parseFloat(guard(0,1,a-t).toFixed(3))})`}(i,1-t)};function generateStripe(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( + `}),[tb,tx]=(0,en.k)({strict:!1,name:"PortalManagerContext"});function PortalManager(e){let{children:t,zIndex:n}=e;return(0,O.jsx)(tb,{value:{zIndex:n},children:t})}PortalManager.displayName="PortalManager";var tS=n(1759),tk=n(6597),tw=n(1683);function ThemeProvider(e){let{cssVarsRoot:t,theme:n,children:i}=e,o=(0,D.useMemo)(()=>(0,e$.c0)(n),[n]);return(0,O.jsxs)(tw.a,{theme:o,children:[(0,O.jsx)(CSSVars,{root:t}),i]})}function CSSVars({root:e=":host, :root"}){let t=[e,"[data-theme]"].join(",");return(0,O.jsx)(tv.xB,{styles:e=>({[t]:e.__cssVars})})}var[t_,tC]=function(e={}){let{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:i}=e,o=(0,D.createContext)(void 0);return o.displayName=i,[o.Provider,function useContext(){var e;let i=(0,D.useContext)(o);if(!i&&t){let t=Error(n);throw t.name="ContextError",null==(e=Error.captureStackTrace)||e.call(Error,t,useContext),t}return i},o]}({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function GlobalStyle(){let{colorMode:e}=(0,L.If)();return(0,O.jsx)(tv.xB,{styles:t=>{let n=(0,tS.Wf)(t,"styles.global"),i=(0,tk.Pu)(n,{theme:t,colorMode:e});if(!i)return;let o=(0,e$.iv)(i)(t);return o}})}var tT={light:"chakra-ui-light",dark:"chakra-ui-dark"},tP=(null==globalThis?void 0:globalThis.document)?D.useLayoutEffect:D.useEffect,noop=()=>{};function getTheme(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}function ColorModeProvider(e){let{value:t,children:n,options:{useSystemColorMode:i,initialColorMode:o,disableTransitionOnChange:a}={},colorModeManager:s=tg}=e,l="dark"===o?"dark":"light",[c,u]=(0,D.useState)(()=>getTheme(s,l)),[d,p]=(0,D.useState)(()=>getTheme(s)),{getSystemTheme:h,setClassName:f,setDataset:m,addListener:g}=(0,D.useMemo)(()=>(function(e={}){let{preventTransition:t=!0}=e,n={setDataset:e=>{let i=t?n.preventTransition():void 0;document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e,null==i||i()},setClassName(e){document.body.classList.add(e?tT.dark:tT.light),document.body.classList.remove(e?tT.light:tT.dark)},query:()=>window.matchMedia("(prefers-color-scheme: dark)"),getSystemTheme(e){var t;let i=null!=(t=n.query().matches)?t:"dark"===e;return i?"dark":"light"},addListener(e){let t=n.query(),listener=t=>{e(t.matches?"dark":"light")};return"function"==typeof t.addListener?t.addListener(listener):t.addEventListener("change",listener),()=>{"function"==typeof t.removeListener?t.removeListener(listener):t.removeEventListener("change",listener)}},preventTransition(){let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(e)})})}}};return n})({preventTransition:a}),[a]),v="system"!==o||c?c:d,y=(0,D.useCallback)(e=>{let t="system"===e?h():e;u(t),f("dark"===t),m(t),s.set(t)},[s,h,f,m]);tP(()=>{"system"===o&&p(h())},[]),(0,D.useEffect)(()=>{let e=s.get();if(e){y(e);return}if("system"===o){y("system");return}y(l)},[s,l,o,y]);let b=(0,D.useCallback)(()=>{y("dark"===v?"light":"dark")},[v,y]);(0,D.useEffect)(()=>{if(i)return g(y)},[i,g,y]);let x=(0,D.useMemo)(()=>({colorMode:null!=t?t:v,toggleColorMode:t?noop:b,setColorMode:t?noop:y,forced:void 0!==t}),[v,b,y,t]);return(0,O.jsx)(L.kc.Provider,{value:x,children:n})}ColorModeProvider.displayName="ColorModeProvider";var tA={body:{classList:{add(){},remove(){}}},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]})},chunk_TGVXP7CR_noop=()=>{},tE="undefined"!=typeof window?{window,document}:{window:{document:tA,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:chunk_TGVXP7CR_noop,removeEventListener:chunk_TGVXP7CR_noop,getComputedStyle:()=>({getPropertyValue:()=>""}),matchMedia:()=>({matches:!1,addListener:chunk_TGVXP7CR_noop,removeListener:chunk_TGVXP7CR_noop}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)},setTimeout:()=>0,clearTimeout:chunk_TGVXP7CR_noop,setInterval:()=>0,clearInterval:chunk_TGVXP7CR_noop},document:tA},tj=(0,D.createContext)(tE);function EnvironmentProvider(e){let{children:t,environment:n}=e,[i,o]=(0,D.useState)(null),[a,s]=(0,D.useState)(!1);(0,D.useEffect)(()=>s(!0),[]);let l=(0,D.useMemo)(()=>{if(n)return n;let e=null==i?void 0:i.ownerDocument,t=null==i?void 0:i.ownerDocument.defaultView,o=e?{document:e,window:t}:tE;return o},[i,n]);return(0,O.jsxs)(tj.Provider,{value:l,children:[t,!n&&a&&(0,O.jsx)("span",{id:"__chakra_env",hidden:!0,ref:e=>{(0,D.startTransition)(()=>{e&&o(e)})}})]})}tj.displayName="EnvironmentContext",EnvironmentProvider.displayName="EnvironmentProvider";var ChakraProvider=e=>{let{children:t,colorModeManager:n,portalZIndex:i,resetCSS:o=!0,theme:a={},environment:s,cssVarsRoot:l}=e,c=(0,O.jsx)(EnvironmentProvider,{environment:s,children:t});return(0,O.jsx)(ThemeProvider,{theme:a,cssVarsRoot:l,children:(0,O.jsxs)(ColorModeProvider,{colorModeManager:n,options:a.config,children:[o?(0,O.jsx)(CSSReset,{}):(0,O.jsx)(CSSPolyfill,{}),(0,O.jsx)(GlobalStyle,{}),i?(0,O.jsx)(PortalManager,{zIndex:i,children:c}):c]})})},tR={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},tM={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},tO={...tM,max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch",container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}},tD={breakpoints:{base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},radii:{none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},blur:{none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},colors:{transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},...tR,sizes:tO,shadows:{xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},space:tM,borders:{none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},transition:{property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}}};function anatomy(e,t={}){let n=!1;function toPart(t){let n=["container","root"].includes(null!=t?t:"")?[e]:[e,t],i=n.filter(Boolean).join("__"),o=`chakra-${i}`,a={className:o,selector:`.${o}`,toString:()=>t};return a}return{parts:function(...i){for(let e of(!function(){if(!n){n=!0;return}throw Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}(),i))t[e]=toPart(e);return anatomy(e,t)},toPart,extend:function(...n){for(let e of n)e in t||(t[e]=toPart(e));return anatomy(e,t)},selectors:function(){let e=Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.selector]));return e},classnames:function(){let e=Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.className]));return e},get keys(){return Object.keys(t)},__type:{}}}var tB=anatomy("accordion").parts("root","container","button","panel").extend("icon"),tV=anatomy("alert").parts("title","description","container").extend("icon","spinner"),tz=anatomy("avatar").parts("label","badge","container").extend("excessLabel","group"),tI=anatomy("breadcrumb").parts("link","item","container").extend("separator");anatomy("button").parts();var tF=anatomy("checkbox").parts("control","icon","container").extend("label");anatomy("progress").parts("track","filledTrack").extend("label");var tL=anatomy("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),tN=anatomy("editable").parts("preview","input","textarea"),t$=anatomy("form").parts("container","requiredIndicator","helperText"),tW=anatomy("formError").parts("text","icon"),tU=anatomy("input").parts("addon","field","element"),tH=anatomy("list").parts("container","item","icon"),tG=anatomy("menu").parts("button","list","item").extend("groupTitle","command","divider"),tq=anatomy("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),tK=anatomy("numberinput").parts("root","field","stepperGroup","stepper");anatomy("pininput").parts("field");var tX=anatomy("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),tY=anatomy("progress").parts("label","filledTrack","track"),tZ=anatomy("radio").parts("container","control","label"),tJ=anatomy("select").parts("field","icon"),tQ=anatomy("slider").parts("container","track","thumb","filledTrack","mark"),t0=anatomy("stat").parts("container","label","helpText","number","icon"),t1=anatomy("switch").parts("container","track","thumb"),t2=anatomy("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),t5=anatomy("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),t3=anatomy("tag").parts("container","label","closeButton"),t4=anatomy("card").parts("container","header","body","footer");function chunk_7SOXEYKO_escape(e){let t=function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:Number.isInteger(parseFloat(e.toString()))?e:t.replace(".","\\.")}function cssVar(e,t){var n,i;let o=function(e,t=""){return`--${function(e,t=""){return[t,chunk_7SOXEYKO_escape(e)].filter(Boolean).join("-")}(e,t)}`}(e,null==t?void 0:t.prefix);return{variable:o,reference:(n="string"==typeof(i=null==t?void 0:t.fallback)?i:null==i?void 0:i.reference,`var(${chunk_7SOXEYKO_escape(o)}${n?`, ${n}`:""})`)}}function toRef(e){return(0,Y.Kn)(e)&&e.reference?e.reference:String(e)}var toExpr=(e,...t)=>t.map(toRef).join(` ${e} `).replace(/calc/g,""),add=(...e)=>`calc(${toExpr("+",...e)})`,subtract=(...e)=>`calc(${toExpr("-",...e)})`,multiply=(...e)=>`calc(${toExpr("*",...e)})`,divide=(...e)=>`calc(${toExpr("/",...e)})`,negate=e=>{let t=toRef(e);return null==t||Number.isNaN(parseFloat(t))?multiply(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},t6=Object.assign(e=>({add:(...t)=>t6(add(e,...t)),subtract:(...t)=>t6(subtract(e,...t)),multiply:(...t)=>t6(multiply(e,...t)),divide:(...t)=>t6(divide(e,...t)),negate:()=>t6(negate(e)),toString:()=>e.toString()}),{add,subtract,multiply,divide,negate}),{defineMultiStyleConfig:t9,definePartsStyle:t7}=(0,e$.D)(t1.keys),t8=cssVar("switch-track-width"),re=cssVar("switch-track-height"),rt=cssVar("switch-track-diff"),rr=t6.subtract(t8,re),rn=cssVar("switch-thumb-x"),ri=cssVar("switch-bg"),ro=(0,e$.k0)(e=>{let{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[t8.reference],height:[re.reference],transitionProperty:"common",transitionDuration:"fast",[ri.variable]:"colors.gray.300",_dark:{[ri.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[ri.variable]:`colors.${t}.500`,_dark:{[ri.variable]:`colors.${t}.200`}},bg:ri.reference}}),ra=(0,e$.k0)({bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[re.reference],height:[re.reference],_checked:{transform:`translateX(${rn.reference})`}}),rs=t9({baseStyle:t7(e=>({container:{[rt.variable]:rr,[rn.variable]:rt.reference,_rtl:{[rn.variable]:t6(rt).negate().toString()}},track:ro(e),thumb:ra})),sizes:{sm:t7({container:{[t8.variable]:"1.375rem",[re.variable]:"sizes.3"}}),md:t7({container:{[t8.variable]:"1.875rem",[re.variable]:"sizes.4"}}),lg:t7({container:{[t8.variable]:"2.875rem",[re.variable]:"sizes.6"}})},defaultProps:{size:"md",colorScheme:"blue"}});function mode(e,t){return n=>"dark"===n.colorMode?t:e}function orient(e){let{orientation:t,vertical:n,horizontal:i}=e;return t?"vertical"===t?n:i:{}}var{defineMultiStyleConfig:rl,definePartsStyle:rc}=(0,e$.D)(t2.keys),ru=rc({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),rd=(0,e$.k0)({"&[data-is-numeric=true]":{textAlign:"end"}}),rp=rl({baseStyle:ru,variants:{simple:rc(e=>{let{colorScheme:t}=e;return{th:{color:mode("gray.600","gray.400")(e),borderBottom:"1px",borderColor:mode(`${t}.100`,`${t}.700`)(e),...rd},td:{borderBottom:"1px",borderColor:mode(`${t}.100`,`${t}.700`)(e),...rd},caption:{color:mode("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),striped:rc(e=>{let{colorScheme:t}=e;return{th:{color:mode("gray.600","gray.400")(e),borderBottom:"1px",borderColor:mode(`${t}.100`,`${t}.700`)(e),...rd},td:{borderBottom:"1px",borderColor:mode(`${t}.100`,`${t}.700`)(e),...rd},caption:{color:mode("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:mode(`${t}.100`,`${t}.700`)(e)},td:{background:mode(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),unstyled:(0,e$.k0)({})},sizes:{sm:rc({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:rc({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:rc({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}});function guard(e,t,n){return Math.min(Math.max(e,n),t)}var rh=class extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}};function parseToRgba(e){if("string"!=typeof e)throw new rh(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=rb.test(e)?function(e){let t=e.toLowerCase().trim(),n=rf[function(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return(t>>>0)%2341}(t)];if(!n)throw new rh(e);return`#${n}`}(e):e;let n=rm.exec(t);if(n){let e=Array.from(n).slice(1);return[...e.slice(0,3).map(e=>parseInt(r(e,2),16)),parseInt(r(e[3]||"f",2),16)/255]}let i=rg.exec(t);if(i){let e=Array.from(i).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,16)),parseInt(e[3]||"ff",16)/255]}let o=rv.exec(t);if(o){let e=Array.from(o).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,10)),parseFloat(e[3]||"1")]}let a=ry.exec(t);if(a){let[t,n,i,o]=Array.from(a).slice(1).map(parseFloat);if(guard(0,100,n)!==n||guard(0,100,i)!==i)throw new rh(e);return[...hslToRgb(t,n,i),Number.isNaN(o)?1:o]}throw new rh(e)}let colorToInt=e=>parseInt(e.replace(/_/g,""),36),rf="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 n=colorToInt(t.substring(0,3)),i=colorToInt(t.substring(3)).toString(16),o="";for(let e=0;e<6-i.length;e++)o+="0";return e[n]=`${o}${i}`,e},{}),r=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),rm=RegExp(`^#${r("([a-f0-9])",3)}([a-f0-9])?$`,"i"),rg=RegExp(`^#${r("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),rv=RegExp(`^rgba?\\(\\s*(\\d+)\\s*${r(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),ry=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,rb=/^[a-z]+$/i,roundColor=e=>Math.round(255*e),hslToRgb=(e,t,n)=>{let i=n/100;if(0===t)return[i,i,i].map(roundColor);let o=(e%360+360)%360/60,a=(1-Math.abs(2*i-1))*(t/100),s=a*(1-Math.abs(o%2-1)),l=0,c=0,u=0;o>=0&&o<1?(l=a,c=s):o>=1&&o<2?(l=s,c=a):o>=2&&o<3?(c=a,u=s):o>=3&&o<4?(c=s,u=a):o>=4&&o<5?(l=s,u=a):o>=5&&o<6&&(l=a,u=s);let d=i-a/2,p=l+d,h=c+d,f=u+d;return[p,h,f].map(roundColor)};var isEmptyObject=e=>0===Object.keys(e).length,getColor=(e,t,n)=>{let i=function(e,t,n,i,o){for(t=t.split?t.split("."):t,i=0;i{let t=guard(0,255,e).toString(16);return 1===t.length?`0${t}`:t};hex(t),hex(n),hex(i),o<1&&hex(Math.round(255*o))}(i),i}catch{return null!=n?n:"#000000"}},getBrightness=e=>{let[t,n,i]=parseToRgba(e);return(299*t+587*n+114*i)/1e3},tone=e=>t=>{let n=getColor(t,e),i=getBrightness(n);return i<128?"dark":"light"},isDark=e=>t=>"dark"===tone(e)(t),chunk_H4E5VM26_transparentize=(e,t)=>n=>{let i=getColor(n,e);return function(e,t){let[n,i,o,a]=parseToRgba(e);return`rgba(${guard(0,255,n).toFixed()}, ${guard(0,255,i).toFixed()}, ${guard(0,255,o).toFixed()}, ${parseFloat(guard(0,1,a-t).toFixed(3))})`}(i,1-t)};function generateStripe(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( 45deg, ${t} 25%, transparent 25%, @@ -315,16 +315,16 @@ ${t} 75%, transparent 75%, transparent - )`,backgroundSize:`${e} ${e}`}}var randomHex=()=>`#${Math.floor(16777215*Math.random()).toString(16).padEnd(6,"0")}`,rx=(0,e$.gJ)("tabs-color"),rS=(0,e$.gJ)("tabs-bg"),rk=(0,e$.gJ)("tabs-border-color"),{defineMultiStyleConfig:rw,definePartsStyle:r_}=(0,e$.D)(t5.keys),rC=(0,e$.k0)(e=>{let{orientation:t}=e;return{display:"vertical"===t?"flex":"block"}}),rT=(0,e$.k0)(e=>{let{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}}),rP=(0,e$.k0)(e=>{let{align:t="start",orientation:n}=e;return{justifyContent:({end:"flex-end",center:"center",start:"flex-start"})[t],flexDirection:"vertical"===n?"column":"row"}}),rA=(0,e$.k0)({p:4}),rE=rw({baseStyle:r_(e=>({root:rC(e),tab:rT(e),tablist:rP(e),tabpanel:rA})),sizes:{sm:r_({tab:{py:1,px:4,fontSize:"sm"}}),md:r_({tab:{fontSize:"md",py:2,px:4}}),lg:r_({tab:{fontSize:"lg",py:3,px:4}})},variants:{line:r_(e=>{let{colorScheme:t,orientation:n}=e,i="vertical"===n?"borderStart":"borderBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",["vertical"===n?"marginStart":"marginBottom"]:"-2px",_selected:{[rx.variable]:`colors.${t}.600`,_dark:{[rx.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[rS.variable]:"colors.gray.200",_dark:{[rS.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:rx.reference,bg:rS.reference}}}),enclosed:r_(e=>{let{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[rk.variable]:"transparent",_selected:{[rx.variable]:`colors.${t}.600`,[rk.variable]:"colors.white",_dark:{[rx.variable]:`colors.${t}.300`,[rk.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:rk.reference},color:rx.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),"enclosed-colored":r_(e=>{let{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[rS.variable]:"colors.gray.50",_dark:{[rS.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[rS.variable]:"colors.white",[rx.variable]:`colors.${t}.600`,_dark:{[rS.variable]:"colors.gray.800",[rx.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:rx.reference,bg:rS.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),"soft-rounded":r_(e=>{let{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:getColor(n,`${t}.700`),bg:getColor(n,`${t}.100`)}}}}),"solid-rounded":r_(e=>{let{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[rx.variable]:"colors.gray.600",_dark:{[rx.variable]:"inherit"},_selected:{[rx.variable]:"colors.white",[rS.variable]:`colors.${t}.600`,_dark:{[rx.variable]:"colors.gray.800",[rS.variable]:`colors.${t}.300`}},color:rx.reference,bg:rS.reference}}}),unstyled:r_({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),rj=(0,e$.k0)({px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"}),rR=(0,e$.gJ)("badge-bg"),rM=(0,e$.gJ)("badge-color"),rO=(0,e$.k0)(e=>{let{colorScheme:t,theme:n}=e,i=chunk_H4E5VM26_transparentize(`${t}.500`,.6)(n);return{[rR.variable]:`colors.${t}.500`,[rM.variable]:"colors.white",_dark:{[rR.variable]:i,[rM.variable]:"colors.whiteAlpha.800"},bg:rR.reference,color:rM.reference}}),rD=(0,e$.k0)(e=>{let{colorScheme:t,theme:n}=e,i=chunk_H4E5VM26_transparentize(`${t}.200`,.16)(n);return{[rR.variable]:`colors.${t}.100`,[rM.variable]:`colors.${t}.800`,_dark:{[rR.variable]:i,[rM.variable]:`colors.${t}.200`},bg:rR.reference,color:rM.reference}}),rB=(0,e$.k0)(e=>{let{colorScheme:t,theme:n}=e,i=chunk_H4E5VM26_transparentize(`${t}.200`,.8)(n);return{[rM.variable]:`colors.${t}.500`,_dark:{[rM.variable]:i},color:rM.reference,boxShadow:`inset 0 0 0px 1px ${rM.reference}`}}),rV=(0,e$.fj)({baseStyle:rj,variants:{solid:rO,subtle:rD,outline:rB},defaultProps:{variant:"subtle",colorScheme:"gray"}}),{defineMultiStyleConfig:rz,definePartsStyle:rI}=(0,e$.D)(t4.keys),rF=rI({container:(0,e$.k0)({fontWeight:"medium",lineHeight:1.2,outline:0,borderRadius:"md",_focusVisible:{boxShadow:"outline"}}),label:(0,e$.k0)({lineHeight:1.2,overflow:"visible"}),closeButton:(0,e$.k0)({fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}})}),rL={sm:rI({container:{minH:"5",minW:"5",fontSize:"xs",px:"2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:rI({container:{minH:"6",minW:"6",fontSize:"sm",px:"2"}}),lg:rI({container:{minH:"8",minW:"8",fontSize:"md",px:"3"}})},rN=rz({variants:{subtle:rI(e=>{var t;return{container:null==(t=rV.variants)?void 0:t.subtle(e)}}),solid:rI(e=>{var t;return{container:null==(t=rV.variants)?void 0:t.solid(e)}}),outline:rI(e=>{var t;return{container:null==(t=rV.variants)?void 0:t.outline(e)}})},baseStyle:rF,sizes:rL,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:r$,defineMultiStyleConfig:rW}=(0,e$.D)(tU.keys),rU=r$({field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),rH={lg:(0,e$.k0)({fontSize:"lg",px:"4",h:"12",borderRadius:"md"}),md:(0,e$.k0)({fontSize:"md",px:"4",h:"10",borderRadius:"md"}),sm:(0,e$.k0)({fontSize:"sm",px:"3",h:"8",borderRadius:"sm"}),xs:(0,e$.k0)({fontSize:"xs",px:"2",h:"6",borderRadius:"sm"})};function getDefaults(e){let{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||mode("blue.500","blue.300")(e),errorBorderColor:n||mode("red.500","red.300")(e)}}var rG=rW({baseStyle:rU,sizes:{lg:r$({field:rH.lg,addon:rH.lg}),md:r$({field:rH.md,addon:rH.md}),sm:r$({field:rH.sm,addon:rH.sm}),xs:r$({field:rH.xs,addon:rH.xs})},variants:{outline:r$(e=>{let{theme:t}=e,{focusBorderColor:n,errorBorderColor:i}=getDefaults(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:mode("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:getColor(t,i),boxShadow:`0 0 0 1px ${getColor(t,i)}`},_focusVisible:{zIndex:1,borderColor:getColor(t,n),boxShadow:`0 0 0 1px ${getColor(t,n)}`}},addon:{border:"1px solid",borderColor:mode("inherit","whiteAlpha.50")(e),bg:mode("gray.100","whiteAlpha.300")(e)}}}),filled:r$(e=>{let{theme:t}=e,{focusBorderColor:n,errorBorderColor:i}=getDefaults(e);return{field:{border:"2px solid",borderColor:"transparent",bg:mode("gray.100","whiteAlpha.50")(e),_hover:{bg:mode("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:getColor(t,i)},_focusVisible:{bg:"transparent",borderColor:getColor(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:mode("gray.100","whiteAlpha.50")(e)}}}),flushed:r$(e=>{let{theme:t}=e,{focusBorderColor:n,errorBorderColor:i}=getDefaults(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:getColor(t,i),boxShadow:`0px 1px 0px 0px ${getColor(t,i)}`},_focusVisible:{borderColor:getColor(t,n),boxShadow:`0px 1px 0px 0px ${getColor(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),unstyled:r$({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),rq=(0,e$.k0)({...null==(c=rG.baseStyle)?void 0:c.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"}),rK={outline:(0,e$.k0)(e=>{var t,n;return null!=(n=null==(t=rG.variants)?void 0:t.outline(e).field)?n:{}}),flushed:(0,e$.k0)(e=>{var t,n;return null!=(n=null==(t=rG.variants)?void 0:t.flushed(e).field)?n:{}}),filled:(0,e$.k0)(e=>{var t,n;return null!=(n=null==(t=rG.variants)?void 0:t.filled(e).field)?n:{}}),unstyled:null!=(d=null==(u=rG.variants)?void 0:u.unstyled.field)?d:{}},rX={xs:null!=(h=null==(p=rG.sizes)?void 0:p.xs.field)?h:{},sm:null!=(m=null==(f=rG.sizes)?void 0:f.sm.field)?m:{},md:null!=(v=null==(g=rG.sizes)?void 0:g.md.field)?v:{},lg:null!=(b=null==(y=rG.sizes)?void 0:y.lg.field)?b:{}},rY=(0,e$.fj)({baseStyle:rq,sizes:rX,variants:rK,defaultProps:{size:"md",variant:"outline"}}),rZ=cssVar("tooltip-bg"),rJ=cssVar("tooltip-fg"),rQ=cssVar("popper-arrow-bg"),r0=(0,e$.k0)({bg:rZ.reference,color:rJ.reference,[rZ.variable]:"colors.gray.700",[rJ.variable]:"colors.whiteAlpha.900",_dark:{[rZ.variable]:"colors.gray.300",[rJ.variable]:"colors.gray.900"},[rQ.variable]:rZ.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}),r1=(0,e$.fj)({baseStyle:r0}),{defineMultiStyleConfig:r2,definePartsStyle:r5}=(0,e$.D)(tY.keys),r4=(0,e$.k0)(e=>{let{colorScheme:t,theme:n,isIndeterminate:i,hasStripe:o}=e,a=mode(generateStripe(),generateStripe("1rem","rgba(0,0,0,0.1)"))(e),s=mode(`${t}.500`,`${t}.200`)(e),l=`linear-gradient( + )`,backgroundSize:`${e} ${e}`}}var randomHex=()=>`#${Math.floor(16777215*Math.random()).toString(16).padEnd(6,"0")}`,rx=(0,e$.gJ)("tabs-color"),rS=(0,e$.gJ)("tabs-bg"),rk=(0,e$.gJ)("tabs-border-color"),{defineMultiStyleConfig:rw,definePartsStyle:r_}=(0,e$.D)(t5.keys),rC=(0,e$.k0)(e=>{let{orientation:t}=e;return{display:"vertical"===t?"flex":"block"}}),rT=(0,e$.k0)(e=>{let{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}}),rP=(0,e$.k0)(e=>{let{align:t="start",orientation:n}=e;return{justifyContent:({end:"flex-end",center:"center",start:"flex-start"})[t],flexDirection:"vertical"===n?"column":"row"}}),rA=(0,e$.k0)({p:4}),rE=rw({baseStyle:r_(e=>({root:rC(e),tab:rT(e),tablist:rP(e),tabpanel:rA})),sizes:{sm:r_({tab:{py:1,px:4,fontSize:"sm"}}),md:r_({tab:{fontSize:"md",py:2,px:4}}),lg:r_({tab:{fontSize:"lg",py:3,px:4}})},variants:{line:r_(e=>{let{colorScheme:t,orientation:n}=e,i="vertical"===n?"borderStart":"borderBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",["vertical"===n?"marginStart":"marginBottom"]:"-2px",_selected:{[rx.variable]:`colors.${t}.600`,_dark:{[rx.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[rS.variable]:"colors.gray.200",_dark:{[rS.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:rx.reference,bg:rS.reference}}}),enclosed:r_(e=>{let{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[rk.variable]:"transparent",_selected:{[rx.variable]:`colors.${t}.600`,[rk.variable]:"colors.white",_dark:{[rx.variable]:`colors.${t}.300`,[rk.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:rk.reference},color:rx.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),"enclosed-colored":r_(e=>{let{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[rS.variable]:"colors.gray.50",_dark:{[rS.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[rS.variable]:"colors.white",[rx.variable]:`colors.${t}.600`,_dark:{[rS.variable]:"colors.gray.800",[rx.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:rx.reference,bg:rS.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),"soft-rounded":r_(e=>{let{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:getColor(n,`${t}.700`),bg:getColor(n,`${t}.100`)}}}}),"solid-rounded":r_(e=>{let{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[rx.variable]:"colors.gray.600",_dark:{[rx.variable]:"inherit"},_selected:{[rx.variable]:"colors.white",[rS.variable]:`colors.${t}.600`,_dark:{[rx.variable]:"colors.gray.800",[rS.variable]:`colors.${t}.300`}},color:rx.reference,bg:rS.reference}}}),unstyled:r_({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),rj=(0,e$.k0)({px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"}),rR=(0,e$.gJ)("badge-bg"),rM=(0,e$.gJ)("badge-color"),rO=(0,e$.k0)(e=>{let{colorScheme:t,theme:n}=e,i=chunk_H4E5VM26_transparentize(`${t}.500`,.6)(n);return{[rR.variable]:`colors.${t}.500`,[rM.variable]:"colors.white",_dark:{[rR.variable]:i,[rM.variable]:"colors.whiteAlpha.800"},bg:rR.reference,color:rM.reference}}),rD=(0,e$.k0)(e=>{let{colorScheme:t,theme:n}=e,i=chunk_H4E5VM26_transparentize(`${t}.200`,.16)(n);return{[rR.variable]:`colors.${t}.100`,[rM.variable]:`colors.${t}.800`,_dark:{[rR.variable]:i,[rM.variable]:`colors.${t}.200`},bg:rR.reference,color:rM.reference}}),rB=(0,e$.k0)(e=>{let{colorScheme:t,theme:n}=e,i=chunk_H4E5VM26_transparentize(`${t}.200`,.8)(n);return{[rM.variable]:`colors.${t}.500`,_dark:{[rM.variable]:i},color:rM.reference,boxShadow:`inset 0 0 0px 1px ${rM.reference}`}}),rV=(0,e$.fj)({baseStyle:rj,variants:{solid:rO,subtle:rD,outline:rB},defaultProps:{variant:"subtle",colorScheme:"gray"}}),{defineMultiStyleConfig:rz,definePartsStyle:rI}=(0,e$.D)(t3.keys),rF=rI({container:(0,e$.k0)({fontWeight:"medium",lineHeight:1.2,outline:0,borderRadius:"md",_focusVisible:{boxShadow:"outline"}}),label:(0,e$.k0)({lineHeight:1.2,overflow:"visible"}),closeButton:(0,e$.k0)({fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}})}),rL={sm:rI({container:{minH:"5",minW:"5",fontSize:"xs",px:"2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:rI({container:{minH:"6",minW:"6",fontSize:"sm",px:"2"}}),lg:rI({container:{minH:"8",minW:"8",fontSize:"md",px:"3"}})},rN=rz({variants:{subtle:rI(e=>{var t;return{container:null==(t=rV.variants)?void 0:t.subtle(e)}}),solid:rI(e=>{var t;return{container:null==(t=rV.variants)?void 0:t.solid(e)}}),outline:rI(e=>{var t;return{container:null==(t=rV.variants)?void 0:t.outline(e)}})},baseStyle:rF,sizes:rL,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:r$,defineMultiStyleConfig:rW}=(0,e$.D)(tU.keys),rU=r$({field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),rH={lg:(0,e$.k0)({fontSize:"lg",px:"4",h:"12",borderRadius:"md"}),md:(0,e$.k0)({fontSize:"md",px:"4",h:"10",borderRadius:"md"}),sm:(0,e$.k0)({fontSize:"sm",px:"3",h:"8",borderRadius:"sm"}),xs:(0,e$.k0)({fontSize:"xs",px:"2",h:"6",borderRadius:"sm"})};function getDefaults(e){let{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||mode("blue.500","blue.300")(e),errorBorderColor:n||mode("red.500","red.300")(e)}}var rG=rW({baseStyle:rU,sizes:{lg:r$({field:rH.lg,addon:rH.lg}),md:r$({field:rH.md,addon:rH.md}),sm:r$({field:rH.sm,addon:rH.sm}),xs:r$({field:rH.xs,addon:rH.xs})},variants:{outline:r$(e=>{let{theme:t}=e,{focusBorderColor:n,errorBorderColor:i}=getDefaults(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:mode("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:getColor(t,i),boxShadow:`0 0 0 1px ${getColor(t,i)}`},_focusVisible:{zIndex:1,borderColor:getColor(t,n),boxShadow:`0 0 0 1px ${getColor(t,n)}`}},addon:{border:"1px solid",borderColor:mode("inherit","whiteAlpha.50")(e),bg:mode("gray.100","whiteAlpha.300")(e)}}}),filled:r$(e=>{let{theme:t}=e,{focusBorderColor:n,errorBorderColor:i}=getDefaults(e);return{field:{border:"2px solid",borderColor:"transparent",bg:mode("gray.100","whiteAlpha.50")(e),_hover:{bg:mode("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:getColor(t,i)},_focusVisible:{bg:"transparent",borderColor:getColor(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:mode("gray.100","whiteAlpha.50")(e)}}}),flushed:r$(e=>{let{theme:t}=e,{focusBorderColor:n,errorBorderColor:i}=getDefaults(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:getColor(t,i),boxShadow:`0px 1px 0px 0px ${getColor(t,i)}`},_focusVisible:{borderColor:getColor(t,n),boxShadow:`0px 1px 0px 0px ${getColor(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),unstyled:r$({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),rq=(0,e$.k0)({...null==(c=rG.baseStyle)?void 0:c.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"}),rK={outline:(0,e$.k0)(e=>{var t,n;return null!=(n=null==(t=rG.variants)?void 0:t.outline(e).field)?n:{}}),flushed:(0,e$.k0)(e=>{var t,n;return null!=(n=null==(t=rG.variants)?void 0:t.flushed(e).field)?n:{}}),filled:(0,e$.k0)(e=>{var t,n;return null!=(n=null==(t=rG.variants)?void 0:t.filled(e).field)?n:{}}),unstyled:null!=(d=null==(u=rG.variants)?void 0:u.unstyled.field)?d:{}},rX={xs:null!=(h=null==(p=rG.sizes)?void 0:p.xs.field)?h:{},sm:null!=(m=null==(f=rG.sizes)?void 0:f.sm.field)?m:{},md:null!=(v=null==(g=rG.sizes)?void 0:g.md.field)?v:{},lg:null!=(b=null==(y=rG.sizes)?void 0:y.lg.field)?b:{}},rY=(0,e$.fj)({baseStyle:rq,sizes:rX,variants:rK,defaultProps:{size:"md",variant:"outline"}}),rZ=cssVar("tooltip-bg"),rJ=cssVar("tooltip-fg"),rQ=cssVar("popper-arrow-bg"),r0=(0,e$.k0)({bg:rZ.reference,color:rJ.reference,[rZ.variable]:"colors.gray.700",[rJ.variable]:"colors.whiteAlpha.900",_dark:{[rZ.variable]:"colors.gray.300",[rJ.variable]:"colors.gray.900"},[rQ.variable]:rZ.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}),r1=(0,e$.fj)({baseStyle:r0}),{defineMultiStyleConfig:r2,definePartsStyle:r5}=(0,e$.D)(tY.keys),r3=(0,e$.k0)(e=>{let{colorScheme:t,theme:n,isIndeterminate:i,hasStripe:o}=e,a=mode(generateStripe(),generateStripe("1rem","rgba(0,0,0,0.1)"))(e),s=mode(`${t}.500`,`${t}.200`)(e),l=`linear-gradient( to right, transparent 0%, ${getColor(n,s)} 50%, transparent 100% - )`;return{...!i&&o&&a,...i?{bgImage:l}:{bgColor:s}}}),r3=(0,e$.k0)({lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"}),r6=(0,e$.k0)(e=>({bg:mode("gray.100","whiteAlpha.300")(e)})),r9=(0,e$.k0)(e=>({transitionProperty:"common",transitionDuration:"slow",...r4(e)})),r7=r5(e=>({label:r3,filledTrack:r9(e),track:r6(e)})),r8=r2({sizes:{xs:r5({track:{h:"1"}}),sm:r5({track:{h:"2"}}),md:r5({track:{h:"3"}}),lg:r5({track:{h:"4"}})},baseStyle:r7,defaultProps:{size:"md",colorScheme:"blue"}}),isFunction=e=>"function"==typeof e;function chunk_EBS47JIL_runIfFn(e,...t){return isFunction(e)?e(...t):e}var{definePartsStyle:ne,defineMultiStyleConfig:nt}=(0,e$.D)(tF.keys),nr=(0,e$.gJ)("checkbox-size"),nn=(0,e$.k0)(e=>{let{colorScheme:t}=e;return{w:nr.reference,h:nr.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:mode(`${t}.500`,`${t}.200`)(e),borderColor:mode(`${t}.500`,`${t}.200`)(e),color:mode("white","gray.900")(e),_hover:{bg:mode(`${t}.600`,`${t}.300`)(e),borderColor:mode(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:mode("gray.200","transparent")(e),bg:mode("gray.200","whiteAlpha.300")(e),color:mode("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:mode(`${t}.500`,`${t}.200`)(e),borderColor:mode(`${t}.500`,`${t}.200`)(e),color:mode("white","gray.900")(e)},_disabled:{bg:mode("gray.100","whiteAlpha.100")(e),borderColor:mode("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:mode("red.500","red.300")(e)}}}),ni=(0,e$.k0)({_disabled:{cursor:"not-allowed"}}),no=(0,e$.k0)({userSelect:"none",_disabled:{opacity:.4}}),na=(0,e$.k0)({transitionProperty:"transform",transitionDuration:"normal"}),ns=nt({baseStyle:ne(e=>({icon:na,container:ni,control:chunk_EBS47JIL_runIfFn(nn,e),label:no})),sizes:{sm:ne({control:{[nr.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:ne({control:{[nr.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:ne({control:{[nr.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:nl,definePartsStyle:nc}=(0,e$.D)(tZ.keys),nu=(0,e$.k0)(e=>{var t;let n=null==(t=chunk_EBS47JIL_runIfFn(ns.baseStyle,e))?void 0:t.control;return{...n,borderRadius:"full",_checked:{...null==n?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}}),nd=nl({baseStyle:nc(e=>{var t,n;return{label:null==(t=ns.baseStyle)?void 0:t.call(ns,e).label,container:null==(n=ns.baseStyle)?void 0:n.call(ns,e).container,control:nu(e)}}),sizes:{md:nc({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:nc({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:nc({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:np,definePartsStyle:nh}=(0,e$.D)(tJ.keys),nf=(0,e$.gJ)("select-bg"),nm=nh({field:(0,e$.k0)({...null==(x=rG.baseStyle)?void 0:x.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:nf.reference,[nf.variable]:"colors.white",_dark:{[nf.variable]:"colors.gray.700"},"> option, > optgroup":{bg:nf.reference}}),icon:(0,e$.k0)({width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}})}),ng=(0,e$.k0)({paddingInlineEnd:"8"}),nv=np({baseStyle:nm,sizes:{lg:{...null==(S=rG.sizes)?void 0:S.lg,field:{...null==(k=rG.sizes)?void 0:k.lg.field,...ng}},md:{...null==(w=rG.sizes)?void 0:w.md,field:{...null==(_=rG.sizes)?void 0:_.md.field,...ng}},sm:{...null==(C=rG.sizes)?void 0:C.sm,field:{...null==(T=rG.sizes)?void 0:T.sm.field,...ng}},xs:{...null==(P=rG.sizes)?void 0:P.xs,field:{...null==(E=rG.sizes)?void 0:E.xs.field,...ng},icon:{insetEnd:"1"}}},variants:rG.variants,defaultProps:rG.defaultProps}),ny=(0,e$.gJ)("skeleton-start-color"),nb=(0,e$.gJ)("skeleton-end-color"),nx=(0,e$.k0)({[ny.variable]:"colors.gray.100",[nb.variable]:"colors.gray.400",_dark:{[ny.variable]:"colors.gray.800",[nb.variable]:"colors.gray.600"},background:ny.reference,borderColor:nb.reference,opacity:.7,borderRadius:"sm"}),nS=(0,e$.fj)({baseStyle:nx}),nk=(0,e$.gJ)("skip-link-bg"),nw=(0,e$.k0)({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[nk.variable]:"colors.white",_dark:{[nk.variable]:"colors.gray.700"},bg:nk.reference}}),n_=(0,e$.fj)({baseStyle:nw}),{defineMultiStyleConfig:nC,definePartsStyle:nT}=(0,e$.D)(tQ.keys),nP=(0,e$.gJ)("slider-thumb-size"),nA=(0,e$.gJ)("slider-track-size"),nE=(0,e$.gJ)("slider-bg"),nj=(0,e$.k0)(e=>{let{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...orient({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}}),nR=(0,e$.k0)(e=>{let t=orient({orientation:e.orientation,horizontal:{h:nA.reference},vertical:{w:nA.reference}});return{...t,overflow:"hidden",borderRadius:"sm",[nE.variable]:"colors.gray.200",_dark:{[nE.variable]:"colors.whiteAlpha.200"},_disabled:{[nE.variable]:"colors.gray.300",_dark:{[nE.variable]:"colors.whiteAlpha.300"}},bg:nE.reference}}),nM=(0,e$.k0)(e=>{let{orientation:t}=e,n=orient({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}});return{...n,w:nP.reference,h:nP.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}}),nO=(0,e$.k0)(e=>{let{colorScheme:t}=e;return{width:"inherit",height:"inherit",[nE.variable]:`colors.${t}.500`,_dark:{[nE.variable]:`colors.${t}.200`},bg:nE.reference}}),nD=nC({baseStyle:nT(e=>({container:nj(e),track:nR(e),thumb:nM(e),filledTrack:nO(e)})),sizes:{lg:nT({container:{[nP.variable]:"sizes.4",[nA.variable]:"sizes.1"}}),md:nT({container:{[nP.variable]:"sizes.3.5",[nA.variable]:"sizes.1"}}),sm:nT({container:{[nP.variable]:"sizes.2.5",[nA.variable]:"sizes.0.5"}})},defaultProps:{size:"md",colorScheme:"blue"}}),nB=cssVar("spinner-size"),nV=(0,e$.k0)({width:[nB.reference],height:[nB.reference]}),nz={xs:(0,e$.k0)({[nB.variable]:"sizes.3"}),sm:(0,e$.k0)({[nB.variable]:"sizes.4"}),md:(0,e$.k0)({[nB.variable]:"sizes.6"}),lg:(0,e$.k0)({[nB.variable]:"sizes.8"}),xl:(0,e$.k0)({[nB.variable]:"sizes.12"})},nI=(0,e$.fj)({baseStyle:nV,sizes:nz,defaultProps:{size:"md"}}),{defineMultiStyleConfig:nF,definePartsStyle:nL}=(0,e$.D)(t0.keys),nN=nF({baseStyle:nL({container:{},label:(0,e$.k0)({fontWeight:"medium"}),helpText:(0,e$.k0)({opacity:.8,marginBottom:"2"}),number:(0,e$.k0)({verticalAlign:"baseline",fontWeight:"semibold"}),icon:(0,e$.k0)({marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"})}),sizes:{md:nL({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),n$=(0,e$.gJ)("kbd-bg"),nW=(0,e$.k0)({[n$.variable]:"colors.gray.100",_dark:{[n$.variable]:"colors.whiteAlpha.100"},bg:n$.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),nU=(0,e$.fj)({baseStyle:nW}),nH=(0,e$.k0)({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}),nG=(0,e$.fj)({baseStyle:nH}),{defineMultiStyleConfig:nq,definePartsStyle:nK}=(0,e$.D)(tH.keys),nX=nq({baseStyle:nK({icon:(0,e$.k0)({marginEnd:"2",display:"inline",verticalAlign:"text-bottom"})})}),{defineMultiStyleConfig:nY,definePartsStyle:nZ}=(0,e$.D)(tG.keys),nJ=(0,e$.gJ)("menu-bg"),nQ=(0,e$.gJ)("menu-shadow"),n0=(0,e$.k0)({[nJ.variable]:"#fff",[nQ.variable]:"shadows.sm",_dark:{[nJ.variable]:"colors.gray.700",[nQ.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:nJ.reference,boxShadow:nQ.reference}),n1=(0,e$.k0)({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[nJ.variable]:"colors.gray.100",_dark:{[nJ.variable]:"colors.whiteAlpha.100"}},_active:{[nJ.variable]:"colors.gray.200",_dark:{[nJ.variable]:"colors.whiteAlpha.200"}},_expanded:{[nJ.variable]:"colors.gray.100",_dark:{[nJ.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:nJ.reference}),n2=(0,e$.k0)({mx:4,my:2,fontWeight:"semibold",fontSize:"sm"}),n5=(0,e$.k0)({opacity:.6}),n4=(0,e$.k0)({border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}),n3=nY({baseStyle:nZ({button:(0,e$.k0)({transitionProperty:"common",transitionDuration:"normal"}),list:n0,item:n1,groupTitle:n2,command:n5,divider:n4})}),{defineMultiStyleConfig:n6,definePartsStyle:n9}=(0,e$.D)(tq.keys),n7=(0,e$.k0)({bg:"blackAlpha.600",zIndex:"modal"}),n8=(0,e$.k0)(e=>{let{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:"inside"===n?"hidden":"auto",overscrollBehaviorY:"none"}}),ie=(0,e$.k0)(e=>{let{scrollBehavior:t}=e;return{borderRadius:"md",bg:mode("white","gray.700")(e),color:"inherit",my:"16",zIndex:"modal",maxH:"inside"===t?"calc(100% - 7.5rem)":void 0,boxShadow:mode("lg","dark-lg")(e)}}),it=(0,e$.k0)({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),ir=(0,e$.k0)({position:"absolute",top:"2",insetEnd:"3"}),ii=(0,e$.k0)(e=>{let{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:"inside"===t?"auto":void 0}}),io=(0,e$.k0)({px:"6",py:"4"});function getSize(e){return"full"===e?n9({dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}):n9({dialog:{maxW:e}})}var ia=n6({baseStyle:n9(e=>({overlay:n7,dialogContainer:chunk_EBS47JIL_runIfFn(n8,e),dialog:chunk_EBS47JIL_runIfFn(ie,e),header:it,closeButton:ir,body:chunk_EBS47JIL_runIfFn(ii,e),footer:io})),sizes:{xs:getSize("xs"),sm:getSize("sm"),md:getSize("md"),lg:getSize("lg"),xl:getSize("xl"),"2xl":getSize("2xl"),"3xl":getSize("3xl"),"4xl":getSize("4xl"),"5xl":getSize("5xl"),"6xl":getSize("6xl"),full:getSize("full")},defaultProps:{size:"md"}}),{defineMultiStyleConfig:is,definePartsStyle:il}=(0,e$.D)(tK.keys),ic=cssVar("number-input-stepper-width"),iu=cssVar("number-input-input-padding"),id=t6(ic).add("0.5rem").toString(),ip=cssVar("number-input-bg"),ih=cssVar("number-input-color"),im=cssVar("number-input-border-color"),ig=(0,e$.k0)({[ic.variable]:"sizes.6",[iu.variable]:id}),iv=(0,e$.k0)(e=>{var t,n;return null!=(n=null==(t=chunk_EBS47JIL_runIfFn(rG.baseStyle,e))?void 0:t.field)?n:{}}),iy=(0,e$.k0)({width:ic.reference}),ib=(0,e$.k0)({borderStart:"1px solid",borderStartColor:im.reference,color:ih.reference,bg:ip.reference,[ih.variable]:"colors.chakra-body-text",[im.variable]:"colors.chakra-border-color",_dark:{[ih.variable]:"colors.whiteAlpha.800",[im.variable]:"colors.whiteAlpha.300"},_active:{[ip.variable]:"colors.gray.200",_dark:{[ip.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}});function chunk_XNRZTTJ2_getSize(e){var t,n,i;let o=null==(t=rG.sizes)?void 0:t[e],a={lg:"md",md:"md",sm:"sm",xs:"sm"},s=null!=(i=null==(n=o.field)?void 0:n.fontSize)?i:"md",l=tR.fontSizes[s];return il({field:{...o.field,paddingInlineEnd:iu.reference,verticalAlign:"top"},stepper:{fontSize:t6(l).multiply(.75).toString(),_first:{borderTopEndRadius:a[e]},_last:{borderBottomEndRadius:a[e],mt:"-1px",borderTopWidth:1}}})}var ix=is({baseStyle:il(e=>{var t;return{root:ig,field:null!=(t=chunk_EBS47JIL_runIfFn(iv,e))?t:{},stepperGroup:iy,stepper:ib}}),sizes:{xs:chunk_XNRZTTJ2_getSize("xs"),sm:chunk_XNRZTTJ2_getSize("sm"),md:chunk_XNRZTTJ2_getSize("md"),lg:chunk_XNRZTTJ2_getSize("lg")},variants:rG.variants,defaultProps:rG.defaultProps}),iS=(0,e$.k0)({...null==(j=rG.baseStyle)?void 0:j.field,textAlign:"center"}),ik={lg:(0,e$.k0)({fontSize:"lg",w:12,h:12,borderRadius:"md"}),md:(0,e$.k0)({fontSize:"md",w:10,h:10,borderRadius:"md"}),sm:(0,e$.k0)({fontSize:"sm",w:8,h:8,borderRadius:"sm"}),xs:(0,e$.k0)({fontSize:"xs",w:6,h:6,borderRadius:"sm"})},iw={outline:(0,e$.k0)(e=>{var t,n,i;return null!=(i=null==(n=chunk_EBS47JIL_runIfFn(null==(t=rG.variants)?void 0:t.outline,e))?void 0:n.field)?i:{}}),flushed:(0,e$.k0)(e=>{var t,n,i;return null!=(i=null==(n=chunk_EBS47JIL_runIfFn(null==(t=rG.variants)?void 0:t.flushed,e))?void 0:n.field)?i:{}}),filled:(0,e$.k0)(e=>{var t,n,i;return null!=(i=null==(n=chunk_EBS47JIL_runIfFn(null==(t=rG.variants)?void 0:t.filled,e))?void 0:n.field)?i:{}}),unstyled:null!=(M=null==(R=rG.variants)?void 0:R.unstyled.field)?M:{}},i_=(0,e$.fj)({baseStyle:iS,sizes:ik,variants:iw,defaultProps:rG.defaultProps}),{defineMultiStyleConfig:iC,definePartsStyle:iT}=(0,e$.D)(tX.keys),iP=cssVar("popper-bg"),iA=cssVar("popper-arrow-bg"),iE=cssVar("popper-arrow-shadow-color"),ij=iC({baseStyle:iT({popper:(0,e$.k0)({zIndex:10}),content:(0,e$.k0)({[iP.variable]:"colors.white",bg:iP.reference,[iA.variable]:iP.reference,[iE.variable]:"colors.gray.200",_dark:{[iP.variable]:"colors.gray.700",[iE.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}),header:(0,e$.k0)({px:3,py:2,borderBottomWidth:"1px"}),body:(0,e$.k0)({px:3,py:2}),footer:(0,e$.k0)({px:3,py:2,borderTopWidth:"1px"}),closeButton:(0,e$.k0)({position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2})})}),{definePartsStyle:iR,defineMultiStyleConfig:iM}=(0,e$.D)(tL.keys),iO=(0,e$.gJ)("drawer-bg"),iD=(0,e$.gJ)("drawer-box-shadow");function chunk_PQSF5PVS_getSize(e){return"full"===e?iR({dialog:{maxW:"100vw",h:"100vh"}}):iR({dialog:{maxW:e}})}var iB=(0,e$.k0)({bg:"blackAlpha.600",zIndex:"overlay"}),iV=(0,e$.k0)({display:"flex",zIndex:"modal",justifyContent:"center"}),iz=(0,e$.k0)(e=>{let{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[iO.variable]:"colors.white",[iD.variable]:"shadows.lg",_dark:{[iO.variable]:"colors.gray.700",[iD.variable]:"shadows.dark-lg"},bg:iO.reference,boxShadow:iD.reference}}),iI=(0,e$.k0)({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),iF=(0,e$.k0)({position:"absolute",top:"2",insetEnd:"3"}),iL=(0,e$.k0)({px:"6",py:"2",flex:"1",overflow:"auto"}),iN=(0,e$.k0)({px:"6",py:"4"}),i$=iM({baseStyle:iR(e=>({overlay:iB,dialogContainer:iV,dialog:chunk_EBS47JIL_runIfFn(iz,e),header:iI,closeButton:iF,body:iL,footer:iN})),sizes:{xs:chunk_PQSF5PVS_getSize("xs"),sm:chunk_PQSF5PVS_getSize("md"),md:chunk_PQSF5PVS_getSize("lg"),lg:chunk_PQSF5PVS_getSize("2xl"),xl:chunk_PQSF5PVS_getSize("4xl"),full:chunk_PQSF5PVS_getSize("full")},defaultProps:{size:"xs"}}),{definePartsStyle:iW,defineMultiStyleConfig:iU}=(0,e$.D)(tN.keys),iH=iU({baseStyle:iW({preview:(0,e$.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"}),input:(0,e$.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}),textarea:(0,e$.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}})})}),{definePartsStyle:iG,defineMultiStyleConfig:iq}=(0,e$.D)(t$.keys),iK=(0,e$.gJ)("form-control-color"),iX=iq({baseStyle:iG({container:{width:"100%",position:"relative"},requiredIndicator:(0,e$.k0)({marginStart:"1",[iK.variable]:"colors.red.500",_dark:{[iK.variable]:"colors.red.300"},color:iK.reference}),helperText:(0,e$.k0)({mt:"2",[iK.variable]:"colors.gray.600",_dark:{[iK.variable]:"colors.whiteAlpha.600"},color:iK.reference,lineHeight:"normal",fontSize:"sm"})})}),{definePartsStyle:iY,defineMultiStyleConfig:iZ}=(0,e$.D)(tW.keys),iJ=(0,e$.gJ)("form-error-color"),iQ=iZ({baseStyle:iY({text:(0,e$.k0)({[iJ.variable]:"colors.red.500",_dark:{[iJ.variable]:"colors.red.300"},color:iJ.reference,mt:"2",fontSize:"sm",lineHeight:"normal"}),icon:(0,e$.k0)({marginEnd:"0.5em",[iJ.variable]:"colors.red.500",_dark:{[iJ.variable]:"colors.red.300"},color:iJ.reference})})}),i0=(0,e$.k0)({fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}),i1=(0,e$.fj)({baseStyle:i0}),i2=(0,e$.k0)({fontFamily:"heading",fontWeight:"bold"}),i5={"4xl":(0,e$.k0)({fontSize:["6xl",null,"7xl"],lineHeight:1}),"3xl":(0,e$.k0)({fontSize:["5xl",null,"6xl"],lineHeight:1}),"2xl":(0,e$.k0)({fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]}),xl:(0,e$.k0)({fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]}),lg:(0,e$.k0)({fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]}),md:(0,e$.k0)({fontSize:"xl",lineHeight:1.2}),sm:(0,e$.k0)({fontSize:"md",lineHeight:1.2}),xs:(0,e$.k0)({fontSize:"sm",lineHeight:1.2})},i4=(0,e$.fj)({baseStyle:i2,sizes:i5,defaultProps:{size:"xl"}}),{defineMultiStyleConfig:i3,definePartsStyle:i6}=(0,e$.D)(tI.keys),i9=i3({baseStyle:i6({link:(0,e$.k0)({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}})})}),i7=(0,e$.k0)({lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}}),i8=(0,e$.k0)(e=>{let{colorScheme:t,theme:n}=e;if("gray"===t)return{color:mode("inherit","whiteAlpha.900")(e),_hover:{bg:mode("gray.100","whiteAlpha.200")(e)},_active:{bg:mode("gray.200","whiteAlpha.300")(e)}};let i=chunk_H4E5VM26_transparentize(`${t}.200`,.12)(n),o=chunk_H4E5VM26_transparentize(`${t}.200`,.24)(n);return{color:mode(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:mode(`${t}.50`,i)(e)},_active:{bg:mode(`${t}.100`,o)(e)}}}),oe=(0,e$.k0)(e=>{let{colorScheme:t}=e,n=mode("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:"gray"===t?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...chunk_EBS47JIL_runIfFn(i8,e)}}),ot={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},or=(0,e$.k0)(e=>{var t;let{colorScheme:n}=e;if("gray"===n){let t=mode("gray.100","whiteAlpha.200")(e);return{bg:t,_hover:{bg:mode("gray.200","whiteAlpha.300")(e),_disabled:{bg:t}},_active:{bg:mode("gray.300","whiteAlpha.400")(e)}}}let{bg:i=`${n}.500`,color:o="white",hoverBg:a=`${n}.600`,activeBg:s=`${n}.700`}=null!=(t=ot[n])?t:{},l=mode(i,`${n}.200`)(e);return{bg:l,color:mode(o,"gray.800")(e),_hover:{bg:mode(a,`${n}.300`)(e),_disabled:{bg:l}},_active:{bg:mode(s,`${n}.400`)(e)}}}),on=(0,e$.k0)(e=>{let{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:mode(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:mode(`${t}.700`,`${t}.500`)(e)}}}),oi=(0,e$.k0)({bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}),oo={lg:(0,e$.k0)({h:"12",minW:"12",fontSize:"lg",px:"6"}),md:(0,e$.k0)({h:"10",minW:"10",fontSize:"md",px:"4"}),sm:(0,e$.k0)({h:"8",minW:"8",fontSize:"sm",px:"3"}),xs:(0,e$.k0)({h:"6",minW:"6",fontSize:"xs",px:"2"})},oa=(0,e$.fj)({baseStyle:i7,variants:{ghost:i8,outline:oe,solid:or,link:on,unstyled:oi},sizes:oo,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}}),{definePartsStyle:os,defineMultiStyleConfig:ol}=(0,e$.D)(t3.keys),oc=(0,e$.gJ)("card-bg"),ou=(0,e$.gJ)("card-padding"),od=os({container:{[oc.variable]:"chakra-body-bg",backgroundColor:oc.reference,color:"chakra-body-text"},body:{padding:ou.reference,flex:"1 1 0%"},header:{padding:ou.reference},footer:{padding:ou.reference}}),op={sm:os({container:{borderRadius:"base",[ou.variable]:"space.3"}}),md:os({container:{borderRadius:"md",[ou.variable]:"space.5"}}),lg:os({container:{borderRadius:"xl",[ou.variable]:"space.7"}})},oh=ol({baseStyle:od,variants:{elevated:os({container:{boxShadow:"base",_dark:{[oc.variable]:"colors.gray.700"}}}),outline:os({container:{borderWidth:"1px",borderColor:"chakra-border-color"}}),filled:os({container:{[oc.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{padding:0},header:{padding:0},footer:{padding:0}}},sizes:op,defaultProps:{variant:"elevated",size:"md"}}),of=cssVar("close-button-size"),om=cssVar("close-button-bg"),og=(0,e$.k0)({w:[of.reference],h:[of.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[om.variable]:"colors.blackAlpha.100",_dark:{[om.variable]:"colors.whiteAlpha.100"}},_active:{[om.variable]:"colors.blackAlpha.200",_dark:{[om.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:om.reference}),ov={lg:(0,e$.k0)({[of.variable]:"sizes.10",fontSize:"md"}),md:(0,e$.k0)({[of.variable]:"sizes.8",fontSize:"xs"}),sm:(0,e$.k0)({[of.variable]:"sizes.6",fontSize:"2xs"})},oy=(0,e$.fj)({baseStyle:og,sizes:ov,defaultProps:{size:"md"}}),{variants:ob,defaultProps:ox}=rV,oS=(0,e$.k0)({fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"}),ok=(0,e$.fj)({baseStyle:oS,variants:ob,defaultProps:ox}),ow=(0,e$.k0)({w:"100%",mx:"auto",maxW:"prose",px:"4"}),o_=(0,e$.fj)({baseStyle:ow}),oC=(0,e$.k0)({opacity:.6,borderColor:"inherit"}),oT=(0,e$.k0)({borderStyle:"solid"}),oP=(0,e$.k0)({borderStyle:"dashed"}),oA=(0,e$.fj)({baseStyle:oC,variants:{solid:oT,dashed:oP},defaultProps:{variant:"solid"}}),{definePartsStyle:oE,defineMultiStyleConfig:oj}=(0,e$.D)(tB.keys),oR=oj({baseStyle:oE({container:(0,e$.k0)({borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}}),button:(0,e$.k0)({transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"}),panel:(0,e$.k0)({pt:"2",px:"4",pb:"5"}),icon:(0,e$.k0)({fontSize:"1.25em"})})}),{definePartsStyle:oM,defineMultiStyleConfig:oO}=(0,e$.D)(tV.keys),oD=(0,e$.gJ)("alert-fg"),oB=(0,e$.gJ)("alert-bg");function getBg(e){let{theme:t,colorScheme:n}=e,i=chunk_H4E5VM26_transparentize(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:i}}var oV=oO({baseStyle:oM({container:{bg:oB.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:oD.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:oD.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}}),variants:{subtle:oM(e=>{let{colorScheme:t}=e,n=getBg(e);return{container:{[oD.variable]:`colors.${t}.500`,[oB.variable]:n.light,_dark:{[oD.variable]:`colors.${t}.200`,[oB.variable]:n.dark}}}}),"left-accent":oM(e=>{let{colorScheme:t}=e,n=getBg(e);return{container:{[oD.variable]:`colors.${t}.500`,[oB.variable]:n.light,_dark:{[oD.variable]:`colors.${t}.200`,[oB.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:oD.reference}}}),"top-accent":oM(e=>{let{colorScheme:t}=e,n=getBg(e);return{container:{[oD.variable]:`colors.${t}.500`,[oB.variable]:n.light,_dark:{[oD.variable]:`colors.${t}.200`,[oB.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:oD.reference}}}),solid:oM(e=>{let{colorScheme:t}=e;return{container:{[oD.variable]:"colors.white",[oB.variable]:`colors.${t}.500`,_dark:{[oD.variable]:"colors.gray.900",[oB.variable]:`colors.${t}.200`},color:oD.reference}}})},defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:oz,defineMultiStyleConfig:oI}=(0,e$.D)(tz.keys),oF=(0,e$.gJ)("avatar-border-color"),oL=(0,e$.gJ)("avatar-bg"),oN=(0,e$.k0)({borderRadius:"full",border:"0.2em solid",[oF.variable]:"white",_dark:{[oF.variable]:"colors.gray.800"},borderColor:oF.reference}),o$=(0,e$.k0)({[oL.variable]:"colors.gray.200",_dark:{[oL.variable]:"colors.whiteAlpha.400"},bgColor:oL.reference}),oW=(0,e$.gJ)("avatar-background"),oU=(0,e$.k0)(e=>{let{name:t,theme:n}=e,i=t?function(e){var t;let n=randomHex();return!e||isEmptyObject(e)?n:e.string&&e.colors?function(e,t){let n=0;if(0===e.length)return t[0];for(let t=0;t>8*e&255;n+=`00${i.toString(16)}`.substr(-2)}return n}(e.string):e.colors&&!e.string?(t=e.colors)[Math.floor(Math.random()*t.length)]:n}({string:t}):"colors.gray.400",o=isDark(i)(n),a="white";return o||(a="gray.800"),{bg:oW.reference,"&:not([data-loaded])":{[oW.variable]:i},color:a,[oF.variable]:"colors.white",_dark:{[oF.variable]:"colors.gray.800"},borderColor:oF.reference,verticalAlign:"top"}});function chunk_O7XTKHT6_getSize(e){let t="100%"!==e?tO[e]:void 0;return oz({container:{width:e,height:e,fontSize:`calc(${null!=t?t:e} / 2.5)`},excessLabel:{width:e,height:e},label:{fontSize:`calc(${null!=t?t:e} / 2.5)`,lineHeight:"100%"!==e?null!=t?t:e:void 0}})}var oH=oI({baseStyle:oz(e=>({badge:chunk_EBS47JIL_runIfFn(oN,e),excessLabel:chunk_EBS47JIL_runIfFn(o$,e),container:chunk_EBS47JIL_runIfFn(oU,e)})),sizes:{"2xs":chunk_O7XTKHT6_getSize(4),xs:chunk_O7XTKHT6_getSize(6),sm:chunk_O7XTKHT6_getSize(8),md:chunk_O7XTKHT6_getSize(12),lg:chunk_O7XTKHT6_getSize(16),xl:chunk_O7XTKHT6_getSize(24),"2xl":chunk_O7XTKHT6_getSize(32),full:chunk_O7XTKHT6_getSize("100%")},defaultProps:{size:"md"}}),oG={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},oq={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color",wordWrap:"break-word"}}},oK={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},oX={semanticTokens:oG,direction:"ltr",...tD,components:{Accordion:oR,Alert:oV,Avatar:oH,Badge:rV,Breadcrumb:i9,Button:oa,Checkbox:ns,CloseButton:oy,Code:ok,Container:o_,Divider:oA,Drawer:i$,Editable:iH,Form:iX,FormError:iQ,FormLabel:i1,Heading:i4,Input:rG,Kbd:nU,Link:nG,List:nX,Menu:n3,Modal:ia,NumberInput:ix,PinInput:i_,Popover:ij,Progress:r8,Radio:nd,Select:nv,Skeleton:nS,SkipLink:n_,Slider:nD,Spinner:nI,Stat:nN,Switch:rs,Table:rp,Tabs:rE,Tag:rN,Textarea:rY,Tooltip:r1,Card:oh},styles:oq,config:oK},oY={semanticTokens:oG,direction:"ltr",components:{},...tD,styles:oq,config:oK},findById=(e,t)=>e.find(e=>e.id===t);function findToast(e,t){let n=getToastPosition(e,t),i=n?e[n].findIndex(e=>e.id===t):-1;return{position:n,index:i}}function getToastPosition(e,t){for(let[n,i]of Object.entries(e))if(findById(i,t))return n}var oZ=n(5947),oJ={initial:e=>{let{position:t}=e,n=["top","bottom"].includes(t)?"y":"x",i=["top-right","bottom-right"].includes(t)?1:-1;return"bottom"===t&&(i=1),{opacity:0,[n]:24*i}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},oQ=(0,D.memo)(e=>{let{id:t,message:n,onCloseComplete:i,onRequestRemove:o,requestClose:a=!1,position:s="bottom",duration:l=5e3,containerStyle:c,motionVariants:u=oJ,toastSpacing:d="0.5rem"}=e,[p,h]=(0,D.useState)(l),f=(0,oZ.hO)();dist_useUpdateEffect(()=>{f||null==i||i()},[f]),dist_useUpdateEffect(()=>{h(l)},[l]);let close=()=>{f&&o()};(0,D.useEffect)(()=>{f&&a&&o()},[f,a,o]),function(e,t){let n=useCallbackRef(e);(0,D.useEffect)(()=>{if(null==t)return;let e=null;return e=window.setTimeout(()=>{n()},t),()=>{e&&window.clearTimeout(e)}},[t,n])}(close,p);let m=(0,D.useMemo)(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...c}),[c,d]),g=(0,D.useMemo)(()=>(function(e){let t=e.includes("right"),n=e.includes("left"),i="center";return t&&(i="flex-end"),n&&(i="flex-start"),{display:"flex",flexDirection:"column",alignItems:i}})(s),[s]);return(0,O.jsx)(eZ.E.li,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>h(null),onHoverEnd:()=>h(l),custom:{position:s},style:g,children:(0,O.jsx)(H.m.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:m,children:(0,Y.Pu)(n,{id:t,onClose:close})})})});oQ.displayName="ToastComponent";var o0=n(6877);function WarningIcon(e){return(0,O.jsx)(o0.J,{viewBox:"0 0 24 24",...e,children:(0,O.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 o1=n(295),[o2,o5]=(0,en.k)({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[o4,o3]=(0,en.k)({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),o6={info:{icon:function(e){return(0,O.jsx)(o0.J,{viewBox:"0 0 24 24",...e,children:(0,O.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"})})},colorScheme:"blue"},warning:{icon:WarningIcon,colorScheme:"orange"},success:{icon:function(e){return(0,O.jsx)(o0.J,{viewBox:"0 0 24 24",...e,children:(0,O.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"})})},colorScheme:"green"},error:{icon:WarningIcon,colorScheme:"red"},loading:{icon:o1.$,colorScheme:"blue"}},o9=(0,U.G)(function(e,t){var n;let{status:i="info",addRole:o=!0,...a}=(0,e$.Lr)(e),s=null!=(n=e.colorScheme)?n:o6[i].colorScheme,l=(0,eN.jC)("Alert",{...e,colorScheme:s}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return(0,O.jsx)(o2,{value:{status:i},children:(0,O.jsx)(o4,{value:l,children:(0,O.jsx)(H.m.div,{role:o?"alert":void 0,ref:t,...a,className:(0,Y.cx)("chakra-alert",e.className),__css:c})})})});function AlertIcon(e){let{status:t}=o5(),n=o6[t].icon,i=o3(),o="loading"===t?i.spinner:i.icon;return(0,O.jsx)(H.m.span,{display:"inherit",...e,className:(0,Y.cx)("chakra-alert__icon",e.className),__css:o,children:e.children||(0,O.jsx)(n,{h:"100%",w:"100%"})})}o9.displayName="Alert",AlertIcon.displayName="AlertIcon";var o7=(0,U.G)(function(e,t){let n=o3();return(0,O.jsx)(H.m.div,{ref:t,...e,className:(0,Y.cx)("chakra-alert__title",e.className),__css:n.title})});o7.displayName="AlertTitle";var o8=(0,U.G)(function(e,t){let n=o3(),i={display:"inline",...n.description};return(0,O.jsx)(H.m.div,{ref:t,...e,className:(0,Y.cx)("chakra-alert__desc",e.className),__css:i})});function CloseIcon(e){return(0,O.jsx)(o0.J,{focusable:"false","aria-hidden":!0,...e,children:(0,O.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}o8.displayName="AlertDescription";var ae=(0,U.G)(function(e,t){let n=(0,eN.mq)("CloseButton",e),{children:i,isDisabled:o,__css:a,...s}=(0,e$.Lr)(e);return(0,O.jsx)(H.m.button,{type:"button","aria-label":"Close",ref:t,disabled:o,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...n,...a},...s,children:i||(0,O.jsx)(CloseIcon,{width:"1em",height:"1em"})})});ae.displayName="CloseButton";var at=function(e){let t=e,n=new Set,setState=e=>{t=e(t),n.forEach(e=>e())};return{getState:()=>t,subscribe:t=>(n.add(t),()=>{setState(()=>e),n.delete(t)}),removeToast:(e,t)=>{setState(n=>({...n,[t]:n[t].filter(t=>t.id!=e)}))},notify:(e,t)=>{let n=function(e,t={}){var n,i;ar+=1;let o=null!=(n=t.id)?n:ar,a=null!=(i=t.position)?i:"bottom";return{id:o,message:e,position:a,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>at.removeToast(String(o),a),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}(e,t),{position:i,id:o}=n;return setState(e=>{var t,o;let a=i.includes("top"),s=a?[n,...null!=(t=e[i])?t:[]]:[...null!=(o=e[i])?o:[],n];return{...e,[i]:s}}),o},update:(e,t)=>{e&&setState(n=>{let i={...n},{position:o,index:a}=findToast(i,e);return o&&-1!==a&&(i[o][a]={...i[o][a],...t,message:function(e={}){let{render:t,toastComponent:n=Toast}=e;return i=>"function"==typeof t?t({...i,...e}):(0,O.jsx)(n,{...i,...e})}(t)}),i})},closeAll:({positions:e}={})=>{setState(t=>(null!=e?e:["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((e,n)=>(e[n]=t[n].map(e=>({...e,requestClose:!0})),e),{...t}))},close:e=>{setState(t=>{let n=getToastPosition(t,e);return n?{...t,[n]:t[n].map(t=>t.id==e?{...t,requestClose:!0}:t)}:t})},isActive:e=>!!findToast(at.getState(),e).position}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]}),ar=0,Toast=e=>{let{status:t,variant:n="solid",id:i,title:o,isClosable:a,onClose:s,description:l,icon:c}=e,u=i?{root:`toast-${i}`,title:`toast-${i}-title`,description:`toast-${i}-description`}:void 0;return(0,O.jsxs)(o9,{addRole:!1,status:t,variant:n,id:null==u?void 0:u.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",children:[(0,O.jsx)(AlertIcon,{children:c}),(0,O.jsxs)(H.m.div,{flex:"1",maxWidth:"100%",children:[o&&(0,O.jsx)(o7,{id:null==u?void 0:u.title,children:o}),l&&(0,O.jsx)(o8,{id:null==u?void 0:u.description,display:"block",children:l})]}),a&&(0,O.jsx)(ae,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})},an=n(3935),[ai,ao]=(0,en.k)({strict:!1,name:"PortalContext"}),aa="chakra-portal",Container=e=>(0,O.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),DefaultPortal=e=>{let{appendToParentPortal:t,children:n}=e,[i,o]=(0,D.useState)(null),a=(0,D.useRef)(null),[,s]=(0,D.useState)({});(0,D.useEffect)(()=>s({}),[]);let l=ao(),c=tx();tP(()=>{if(!i)return;let e=i.ownerDocument,n=t&&null!=l?l:e.body;if(!n)return;a.current=e.createElement("div"),a.current.className=aa,n.appendChild(a.current),s({});let o=a.current;return()=>{n.contains(o)&&n.removeChild(o)}},[i]);let u=(null==c?void 0:c.zIndex)?(0,O.jsx)(Container,{zIndex:null==c?void 0:c.zIndex,children:n}):n;return a.current?(0,an.createPortal)((0,O.jsx)(ai,{value:a.current,children:u}),a.current):(0,O.jsx)("span",{ref:e=>{e&&o(e)}})},ContainerPortal=e=>{let{children:t,containerRef:n,appendToParentPortal:i}=e,o=n.current,a=null!=o?o:"undefined"!=typeof window?document.body:void 0,s=(0,D.useMemo)(()=>{let e=null==o?void 0:o.ownerDocument.createElement("div");return e&&(e.className=aa),e},[o]),[,l]=(0,D.useState)({});return(tP(()=>l({}),[]),tP(()=>{if(s&&a)return a.appendChild(s),()=>{a.removeChild(s)}},[s,a]),a&&s)?(0,an.createPortal)((0,O.jsx)(ai,{value:i?s:null,children:t}),s):null};function Portal(e){let t={appendToParentPortal:!0,...e},{containerRef:n,...i}=t;return n?(0,O.jsx)(ContainerPortal,{containerRef:n,...i}):(0,O.jsx)(DefaultPortal,{...i})}Portal.className=aa,Portal.selector=".chakra-portal",Portal.displayName="Portal";var ToastProvider=e=>{let t=(0,D.useSyncExternalStore)(at.subscribe,at.getState,at.getState),{children:n,motionVariants:i,component:o=oQ,portalProps:a}=e,s=Object.keys(t),l=s.map(e=>{let n=t[e];return(0,O.jsx)("ul",{role:"region","aria-live":"polite",id:`chakra-toast-manager-${e}`,style:function(e){let t=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,n=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",o=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:5500,pointerEvents:"none",display:"flex",flexDirection:"column",margin:"top"===e||"bottom"===e?"0 auto":void 0,top:t,bottom:n,right:i,left:o}}(e),children:(0,O.jsx)(AnimatePresence,{initial:!1,children:n.map(e=>(0,O.jsx)(o,{motionVariants:i,...e},e.id))})},e)});return(0,O.jsxs)(O.Fragment,{children:[n,(0,O.jsx)(Portal,{...a,children:l})]})},createChakraProvider=e=>function({children:t,theme:n=e,toastOptions:i,...o}){return(0,O.jsxs)(ChakraProvider,{theme:n,...o,children:[t,(0,O.jsx)(ToastProvider,{...i})]})},as=createChakraProvider(oX);createChakraProvider(oY);var al=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"],ac=n(8554);function chunk_AQYX3YP4_isFunction(e){return"function"==typeof e}var createExtendTheme=e=>function(...t){var n;let i=[...t],o=t[t.length-1];return(n=o,(0,Y.Kn)(n)&&al.every(e=>Object.prototype.hasOwnProperty.call(n,e))&&i.length>1)?i=i.slice(0,i.length-1):o=e,(function(...e){return t=>e.reduce((e,t)=>t(e),t)})(...i.map(e=>t=>chunk_AQYX3YP4_isFunction(e)?e(t):function(...e){return ac({},...e,mergeThemeCustomizer)}(t,e)))(o)},au=createExtendTheme(oX);function mergeThemeCustomizer(e,t,n,i){if((chunk_AQYX3YP4_isFunction(e)||chunk_AQYX3YP4_isFunction(t))&&Object.prototype.hasOwnProperty.call(i,n))return(...n)=>{let i=chunk_AQYX3YP4_isFunction(e)?e(...n):e,o=chunk_AQYX3YP4_isFunction(t)?t(...n):t;return ac({},i,o,mergeThemeCustomizer)}}createExtendTheme(oY);let ad=au({config:{initialColorMode:"dark",useSystemColorMode:!0},styles:{global:e=>({body:{bg:mode("#e5e7e9","#16181c")(e)}})},components:{Heading:{variants:{"section-title":{textDecoration:"underline",fontSize:23,textUnderlineOffset:6,textDecorationColor:"#5f666f",textDecorationThickness:4,marginTop:3,marginBottom:4},caption:{fontSize:16,marginTop:3,marginBottom:4},title:{fontSize:23,marginTop:3,marginBottom:4,marginLeft:3,marginRight:7,textDecoration:"none"}}},Link:{baseStyle:e=>({color:mode("#030e61","#ffff00")(e),textUnderlineOffset:3})}},fonts:{heading:"'M PLUS Rounded 1c'"},colors:{grassTeal:"#88ccca"}});function Chakra(e){let{cookies:t,children:n}=e,i="string"==typeof t?cookieStorageManagerSSR(t):tg;return(0,O.jsx)(as,{theme:ad,colorModeManager:i,children:n})}window.history.scrollRestoration="manual";var _app=function(e){let{Component:t,pageProps:n,router:i}=e;return(0,O.jsxs)(Chakra,{cookies:n,children:[(0,O.jsx)(fonts,{}),(0,O.jsx)(layouts_main,{router:i,children:(0,D.createElement)(t,{...n,key:i.route})})]})}},1479:function(){},7663:function(e){!function(){var t={229:function(e){var t,n,i,o=e.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(e){if(t===setTimeout)return setTimeout(e,0);if((t===defaultSetTimout||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){t=defaultSetTimout}try{n="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){n=defaultClearTimeout}}();var a=[],s=!1,l=-1;function cleanUpNextTick(){s&&i&&(s=!1,i.length?a=i.concat(a):l=-1,a.length&&drainQueue())}function drainQueue(){if(!s){var e=runTimeout(cleanUpNextTick);s=!0;for(var t=a.length;t;){for(i=a,a=[];++l1)for(var n=1;n({bg:mode("gray.100","whiteAlpha.300")(e)})),r9=(0,e$.k0)(e=>({transitionProperty:"common",transitionDuration:"slow",...r3(e)})),r7=r5(e=>({label:r4,filledTrack:r9(e),track:r6(e)})),r8=r2({sizes:{xs:r5({track:{h:"1"}}),sm:r5({track:{h:"2"}}),md:r5({track:{h:"3"}}),lg:r5({track:{h:"4"}})},baseStyle:r7,defaultProps:{size:"md",colorScheme:"blue"}}),isFunction=e=>"function"==typeof e;function chunk_EBS47JIL_runIfFn(e,...t){return isFunction(e)?e(...t):e}var{definePartsStyle:ne,defineMultiStyleConfig:nt}=(0,e$.D)(tF.keys),nr=(0,e$.gJ)("checkbox-size"),nn=(0,e$.k0)(e=>{let{colorScheme:t}=e;return{w:nr.reference,h:nr.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:mode(`${t}.500`,`${t}.200`)(e),borderColor:mode(`${t}.500`,`${t}.200`)(e),color:mode("white","gray.900")(e),_hover:{bg:mode(`${t}.600`,`${t}.300`)(e),borderColor:mode(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:mode("gray.200","transparent")(e),bg:mode("gray.200","whiteAlpha.300")(e),color:mode("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:mode(`${t}.500`,`${t}.200`)(e),borderColor:mode(`${t}.500`,`${t}.200`)(e),color:mode("white","gray.900")(e)},_disabled:{bg:mode("gray.100","whiteAlpha.100")(e),borderColor:mode("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:mode("red.500","red.300")(e)}}}),ni=(0,e$.k0)({_disabled:{cursor:"not-allowed"}}),no=(0,e$.k0)({userSelect:"none",_disabled:{opacity:.4}}),na=(0,e$.k0)({transitionProperty:"transform",transitionDuration:"normal"}),ns=nt({baseStyle:ne(e=>({icon:na,container:ni,control:chunk_EBS47JIL_runIfFn(nn,e),label:no})),sizes:{sm:ne({control:{[nr.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:ne({control:{[nr.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:ne({control:{[nr.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:nl,definePartsStyle:nc}=(0,e$.D)(tZ.keys),nu=(0,e$.k0)(e=>{var t;let n=null==(t=chunk_EBS47JIL_runIfFn(ns.baseStyle,e))?void 0:t.control;return{...n,borderRadius:"full",_checked:{...null==n?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}}),nd=nl({baseStyle:nc(e=>{var t,n;return{label:null==(t=ns.baseStyle)?void 0:t.call(ns,e).label,container:null==(n=ns.baseStyle)?void 0:n.call(ns,e).container,control:nu(e)}}),sizes:{md:nc({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:nc({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:nc({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:np,definePartsStyle:nh}=(0,e$.D)(tJ.keys),nf=(0,e$.gJ)("select-bg"),nm=nh({field:(0,e$.k0)({...null==(x=rG.baseStyle)?void 0:x.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:nf.reference,[nf.variable]:"colors.white",_dark:{[nf.variable]:"colors.gray.700"},"> option, > optgroup":{bg:nf.reference}}),icon:(0,e$.k0)({width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}})}),ng=(0,e$.k0)({paddingInlineEnd:"8"}),nv=np({baseStyle:nm,sizes:{lg:{...null==(S=rG.sizes)?void 0:S.lg,field:{...null==(k=rG.sizes)?void 0:k.lg.field,...ng}},md:{...null==(w=rG.sizes)?void 0:w.md,field:{...null==(_=rG.sizes)?void 0:_.md.field,...ng}},sm:{...null==(C=rG.sizes)?void 0:C.sm,field:{...null==(T=rG.sizes)?void 0:T.sm.field,...ng}},xs:{...null==(P=rG.sizes)?void 0:P.xs,field:{...null==(E=rG.sizes)?void 0:E.xs.field,...ng},icon:{insetEnd:"1"}}},variants:rG.variants,defaultProps:rG.defaultProps}),ny=(0,e$.gJ)("skeleton-start-color"),nb=(0,e$.gJ)("skeleton-end-color"),nx=(0,e$.k0)({[ny.variable]:"colors.gray.100",[nb.variable]:"colors.gray.400",_dark:{[ny.variable]:"colors.gray.800",[nb.variable]:"colors.gray.600"},background:ny.reference,borderColor:nb.reference,opacity:.7,borderRadius:"sm"}),nS=(0,e$.fj)({baseStyle:nx}),nk=(0,e$.gJ)("skip-link-bg"),nw=(0,e$.k0)({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[nk.variable]:"colors.white",_dark:{[nk.variable]:"colors.gray.700"},bg:nk.reference}}),n_=(0,e$.fj)({baseStyle:nw}),{defineMultiStyleConfig:nC,definePartsStyle:nT}=(0,e$.D)(tQ.keys),nP=(0,e$.gJ)("slider-thumb-size"),nA=(0,e$.gJ)("slider-track-size"),nE=(0,e$.gJ)("slider-bg"),nj=(0,e$.k0)(e=>{let{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...orient({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}}),nR=(0,e$.k0)(e=>{let t=orient({orientation:e.orientation,horizontal:{h:nA.reference},vertical:{w:nA.reference}});return{...t,overflow:"hidden",borderRadius:"sm",[nE.variable]:"colors.gray.200",_dark:{[nE.variable]:"colors.whiteAlpha.200"},_disabled:{[nE.variable]:"colors.gray.300",_dark:{[nE.variable]:"colors.whiteAlpha.300"}},bg:nE.reference}}),nM=(0,e$.k0)(e=>{let{orientation:t}=e,n=orient({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}});return{...n,w:nP.reference,h:nP.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}}),nO=(0,e$.k0)(e=>{let{colorScheme:t}=e;return{width:"inherit",height:"inherit",[nE.variable]:`colors.${t}.500`,_dark:{[nE.variable]:`colors.${t}.200`},bg:nE.reference}}),nD=nC({baseStyle:nT(e=>({container:nj(e),track:nR(e),thumb:nM(e),filledTrack:nO(e)})),sizes:{lg:nT({container:{[nP.variable]:"sizes.4",[nA.variable]:"sizes.1"}}),md:nT({container:{[nP.variable]:"sizes.3.5",[nA.variable]:"sizes.1"}}),sm:nT({container:{[nP.variable]:"sizes.2.5",[nA.variable]:"sizes.0.5"}})},defaultProps:{size:"md",colorScheme:"blue"}}),nB=cssVar("spinner-size"),nV=(0,e$.k0)({width:[nB.reference],height:[nB.reference]}),nz={xs:(0,e$.k0)({[nB.variable]:"sizes.3"}),sm:(0,e$.k0)({[nB.variable]:"sizes.4"}),md:(0,e$.k0)({[nB.variable]:"sizes.6"}),lg:(0,e$.k0)({[nB.variable]:"sizes.8"}),xl:(0,e$.k0)({[nB.variable]:"sizes.12"})},nI=(0,e$.fj)({baseStyle:nV,sizes:nz,defaultProps:{size:"md"}}),{defineMultiStyleConfig:nF,definePartsStyle:nL}=(0,e$.D)(t0.keys),nN=nF({baseStyle:nL({container:{},label:(0,e$.k0)({fontWeight:"medium"}),helpText:(0,e$.k0)({opacity:.8,marginBottom:"2"}),number:(0,e$.k0)({verticalAlign:"baseline",fontWeight:"semibold"}),icon:(0,e$.k0)({marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"})}),sizes:{md:nL({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),n$=(0,e$.gJ)("kbd-bg"),nW=(0,e$.k0)({[n$.variable]:"colors.gray.100",_dark:{[n$.variable]:"colors.whiteAlpha.100"},bg:n$.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),nU=(0,e$.fj)({baseStyle:nW}),nH=(0,e$.k0)({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}),nG=(0,e$.fj)({baseStyle:nH}),{defineMultiStyleConfig:nq,definePartsStyle:nK}=(0,e$.D)(tH.keys),nX=nq({baseStyle:nK({icon:(0,e$.k0)({marginEnd:"2",display:"inline",verticalAlign:"text-bottom"})})}),{defineMultiStyleConfig:nY,definePartsStyle:nZ}=(0,e$.D)(tG.keys),nJ=(0,e$.gJ)("menu-bg"),nQ=(0,e$.gJ)("menu-shadow"),n0=(0,e$.k0)({[nJ.variable]:"#fff",[nQ.variable]:"shadows.sm",_dark:{[nJ.variable]:"colors.gray.700",[nQ.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:nJ.reference,boxShadow:nQ.reference}),n1=(0,e$.k0)({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[nJ.variable]:"colors.gray.100",_dark:{[nJ.variable]:"colors.whiteAlpha.100"}},_active:{[nJ.variable]:"colors.gray.200",_dark:{[nJ.variable]:"colors.whiteAlpha.200"}},_expanded:{[nJ.variable]:"colors.gray.100",_dark:{[nJ.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:nJ.reference}),n2=(0,e$.k0)({mx:4,my:2,fontWeight:"semibold",fontSize:"sm"}),n5=(0,e$.k0)({opacity:.6}),n3=(0,e$.k0)({border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}),n4=nY({baseStyle:nZ({button:(0,e$.k0)({transitionProperty:"common",transitionDuration:"normal"}),list:n0,item:n1,groupTitle:n2,command:n5,divider:n3})}),{defineMultiStyleConfig:n6,definePartsStyle:n9}=(0,e$.D)(tq.keys),n7=(0,e$.k0)({bg:"blackAlpha.600",zIndex:"modal"}),n8=(0,e$.k0)(e=>{let{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:"inside"===n?"hidden":"auto",overscrollBehaviorY:"none"}}),ie=(0,e$.k0)(e=>{let{scrollBehavior:t}=e;return{borderRadius:"md",bg:mode("white","gray.700")(e),color:"inherit",my:"16",zIndex:"modal",maxH:"inside"===t?"calc(100% - 7.5rem)":void 0,boxShadow:mode("lg","dark-lg")(e)}}),it=(0,e$.k0)({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),ir=(0,e$.k0)({position:"absolute",top:"2",insetEnd:"3"}),ii=(0,e$.k0)(e=>{let{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:"inside"===t?"auto":void 0}}),io=(0,e$.k0)({px:"6",py:"4"});function getSize(e){return"full"===e?n9({dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}):n9({dialog:{maxW:e}})}var ia=n6({baseStyle:n9(e=>({overlay:n7,dialogContainer:chunk_EBS47JIL_runIfFn(n8,e),dialog:chunk_EBS47JIL_runIfFn(ie,e),header:it,closeButton:ir,body:chunk_EBS47JIL_runIfFn(ii,e),footer:io})),sizes:{xs:getSize("xs"),sm:getSize("sm"),md:getSize("md"),lg:getSize("lg"),xl:getSize("xl"),"2xl":getSize("2xl"),"3xl":getSize("3xl"),"4xl":getSize("4xl"),"5xl":getSize("5xl"),"6xl":getSize("6xl"),full:getSize("full")},defaultProps:{size:"md"}}),{defineMultiStyleConfig:is,definePartsStyle:il}=(0,e$.D)(tK.keys),ic=cssVar("number-input-stepper-width"),iu=cssVar("number-input-input-padding"),id=t6(ic).add("0.5rem").toString(),ip=cssVar("number-input-bg"),ih=cssVar("number-input-color"),im=cssVar("number-input-border-color"),ig=(0,e$.k0)({[ic.variable]:"sizes.6",[iu.variable]:id}),iv=(0,e$.k0)(e=>{var t,n;return null!=(n=null==(t=chunk_EBS47JIL_runIfFn(rG.baseStyle,e))?void 0:t.field)?n:{}}),iy=(0,e$.k0)({width:ic.reference}),ib=(0,e$.k0)({borderStart:"1px solid",borderStartColor:im.reference,color:ih.reference,bg:ip.reference,[ih.variable]:"colors.chakra-body-text",[im.variable]:"colors.chakra-border-color",_dark:{[ih.variable]:"colors.whiteAlpha.800",[im.variable]:"colors.whiteAlpha.300"},_active:{[ip.variable]:"colors.gray.200",_dark:{[ip.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}});function chunk_XNRZTTJ2_getSize(e){var t,n,i;let o=null==(t=rG.sizes)?void 0:t[e],a={lg:"md",md:"md",sm:"sm",xs:"sm"},s=null!=(i=null==(n=o.field)?void 0:n.fontSize)?i:"md",l=tR.fontSizes[s];return il({field:{...o.field,paddingInlineEnd:iu.reference,verticalAlign:"top"},stepper:{fontSize:t6(l).multiply(.75).toString(),_first:{borderTopEndRadius:a[e]},_last:{borderBottomEndRadius:a[e],mt:"-1px",borderTopWidth:1}}})}var ix=is({baseStyle:il(e=>{var t;return{root:ig,field:null!=(t=chunk_EBS47JIL_runIfFn(iv,e))?t:{},stepperGroup:iy,stepper:ib}}),sizes:{xs:chunk_XNRZTTJ2_getSize("xs"),sm:chunk_XNRZTTJ2_getSize("sm"),md:chunk_XNRZTTJ2_getSize("md"),lg:chunk_XNRZTTJ2_getSize("lg")},variants:rG.variants,defaultProps:rG.defaultProps}),iS=(0,e$.k0)({...null==(j=rG.baseStyle)?void 0:j.field,textAlign:"center"}),ik={lg:(0,e$.k0)({fontSize:"lg",w:12,h:12,borderRadius:"md"}),md:(0,e$.k0)({fontSize:"md",w:10,h:10,borderRadius:"md"}),sm:(0,e$.k0)({fontSize:"sm",w:8,h:8,borderRadius:"sm"}),xs:(0,e$.k0)({fontSize:"xs",w:6,h:6,borderRadius:"sm"})},iw={outline:(0,e$.k0)(e=>{var t,n,i;return null!=(i=null==(n=chunk_EBS47JIL_runIfFn(null==(t=rG.variants)?void 0:t.outline,e))?void 0:n.field)?i:{}}),flushed:(0,e$.k0)(e=>{var t,n,i;return null!=(i=null==(n=chunk_EBS47JIL_runIfFn(null==(t=rG.variants)?void 0:t.flushed,e))?void 0:n.field)?i:{}}),filled:(0,e$.k0)(e=>{var t,n,i;return null!=(i=null==(n=chunk_EBS47JIL_runIfFn(null==(t=rG.variants)?void 0:t.filled,e))?void 0:n.field)?i:{}}),unstyled:null!=(M=null==(R=rG.variants)?void 0:R.unstyled.field)?M:{}},i_=(0,e$.fj)({baseStyle:iS,sizes:ik,variants:iw,defaultProps:rG.defaultProps}),{defineMultiStyleConfig:iC,definePartsStyle:iT}=(0,e$.D)(tX.keys),iP=cssVar("popper-bg"),iA=cssVar("popper-arrow-bg"),iE=cssVar("popper-arrow-shadow-color"),ij=iC({baseStyle:iT({popper:(0,e$.k0)({zIndex:10}),content:(0,e$.k0)({[iP.variable]:"colors.white",bg:iP.reference,[iA.variable]:iP.reference,[iE.variable]:"colors.gray.200",_dark:{[iP.variable]:"colors.gray.700",[iE.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}),header:(0,e$.k0)({px:3,py:2,borderBottomWidth:"1px"}),body:(0,e$.k0)({px:3,py:2}),footer:(0,e$.k0)({px:3,py:2,borderTopWidth:"1px"}),closeButton:(0,e$.k0)({position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2})})}),{definePartsStyle:iR,defineMultiStyleConfig:iM}=(0,e$.D)(tL.keys),iO=(0,e$.gJ)("drawer-bg"),iD=(0,e$.gJ)("drawer-box-shadow");function chunk_PQSF5PVS_getSize(e){return"full"===e?iR({dialog:{maxW:"100vw",h:"100vh"}}):iR({dialog:{maxW:e}})}var iB=(0,e$.k0)({bg:"blackAlpha.600",zIndex:"overlay"}),iV=(0,e$.k0)({display:"flex",zIndex:"modal",justifyContent:"center"}),iz=(0,e$.k0)(e=>{let{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[iO.variable]:"colors.white",[iD.variable]:"shadows.lg",_dark:{[iO.variable]:"colors.gray.700",[iD.variable]:"shadows.dark-lg"},bg:iO.reference,boxShadow:iD.reference}}),iI=(0,e$.k0)({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),iF=(0,e$.k0)({position:"absolute",top:"2",insetEnd:"3"}),iL=(0,e$.k0)({px:"6",py:"2",flex:"1",overflow:"auto"}),iN=(0,e$.k0)({px:"6",py:"4"}),i$=iM({baseStyle:iR(e=>({overlay:iB,dialogContainer:iV,dialog:chunk_EBS47JIL_runIfFn(iz,e),header:iI,closeButton:iF,body:iL,footer:iN})),sizes:{xs:chunk_PQSF5PVS_getSize("xs"),sm:chunk_PQSF5PVS_getSize("md"),md:chunk_PQSF5PVS_getSize("lg"),lg:chunk_PQSF5PVS_getSize("2xl"),xl:chunk_PQSF5PVS_getSize("4xl"),full:chunk_PQSF5PVS_getSize("full")},defaultProps:{size:"xs"}}),{definePartsStyle:iW,defineMultiStyleConfig:iU}=(0,e$.D)(tN.keys),iH=iU({baseStyle:iW({preview:(0,e$.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"}),input:(0,e$.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}),textarea:(0,e$.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}})})}),{definePartsStyle:iG,defineMultiStyleConfig:iq}=(0,e$.D)(t$.keys),iK=(0,e$.gJ)("form-control-color"),iX=iq({baseStyle:iG({container:{width:"100%",position:"relative"},requiredIndicator:(0,e$.k0)({marginStart:"1",[iK.variable]:"colors.red.500",_dark:{[iK.variable]:"colors.red.300"},color:iK.reference}),helperText:(0,e$.k0)({mt:"2",[iK.variable]:"colors.gray.600",_dark:{[iK.variable]:"colors.whiteAlpha.600"},color:iK.reference,lineHeight:"normal",fontSize:"sm"})})}),{definePartsStyle:iY,defineMultiStyleConfig:iZ}=(0,e$.D)(tW.keys),iJ=(0,e$.gJ)("form-error-color"),iQ=iZ({baseStyle:iY({text:(0,e$.k0)({[iJ.variable]:"colors.red.500",_dark:{[iJ.variable]:"colors.red.300"},color:iJ.reference,mt:"2",fontSize:"sm",lineHeight:"normal"}),icon:(0,e$.k0)({marginEnd:"0.5em",[iJ.variable]:"colors.red.500",_dark:{[iJ.variable]:"colors.red.300"},color:iJ.reference})})}),i0=(0,e$.k0)({fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}),i1=(0,e$.fj)({baseStyle:i0}),i2=(0,e$.k0)({fontFamily:"heading",fontWeight:"bold"}),i5={"4xl":(0,e$.k0)({fontSize:["6xl",null,"7xl"],lineHeight:1}),"3xl":(0,e$.k0)({fontSize:["5xl",null,"6xl"],lineHeight:1}),"2xl":(0,e$.k0)({fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]}),xl:(0,e$.k0)({fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]}),lg:(0,e$.k0)({fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]}),md:(0,e$.k0)({fontSize:"xl",lineHeight:1.2}),sm:(0,e$.k0)({fontSize:"md",lineHeight:1.2}),xs:(0,e$.k0)({fontSize:"sm",lineHeight:1.2})},i3=(0,e$.fj)({baseStyle:i2,sizes:i5,defaultProps:{size:"xl"}}),{defineMultiStyleConfig:i4,definePartsStyle:i6}=(0,e$.D)(tI.keys),i9=i4({baseStyle:i6({link:(0,e$.k0)({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}})})}),i7=(0,e$.k0)({lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}}),i8=(0,e$.k0)(e=>{let{colorScheme:t,theme:n}=e;if("gray"===t)return{color:mode("inherit","whiteAlpha.900")(e),_hover:{bg:mode("gray.100","whiteAlpha.200")(e)},_active:{bg:mode("gray.200","whiteAlpha.300")(e)}};let i=chunk_H4E5VM26_transparentize(`${t}.200`,.12)(n),o=chunk_H4E5VM26_transparentize(`${t}.200`,.24)(n);return{color:mode(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:mode(`${t}.50`,i)(e)},_active:{bg:mode(`${t}.100`,o)(e)}}}),oe=(0,e$.k0)(e=>{let{colorScheme:t}=e,n=mode("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:"gray"===t?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...chunk_EBS47JIL_runIfFn(i8,e)}}),ot={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},or=(0,e$.k0)(e=>{var t;let{colorScheme:n}=e;if("gray"===n){let t=mode("gray.100","whiteAlpha.200")(e);return{bg:t,_hover:{bg:mode("gray.200","whiteAlpha.300")(e),_disabled:{bg:t}},_active:{bg:mode("gray.300","whiteAlpha.400")(e)}}}let{bg:i=`${n}.500`,color:o="white",hoverBg:a=`${n}.600`,activeBg:s=`${n}.700`}=null!=(t=ot[n])?t:{},l=mode(i,`${n}.200`)(e);return{bg:l,color:mode(o,"gray.800")(e),_hover:{bg:mode(a,`${n}.300`)(e),_disabled:{bg:l}},_active:{bg:mode(s,`${n}.400`)(e)}}}),on=(0,e$.k0)(e=>{let{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:mode(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:mode(`${t}.700`,`${t}.500`)(e)}}}),oi=(0,e$.k0)({bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}),oo={lg:(0,e$.k0)({h:"12",minW:"12",fontSize:"lg",px:"6"}),md:(0,e$.k0)({h:"10",minW:"10",fontSize:"md",px:"4"}),sm:(0,e$.k0)({h:"8",minW:"8",fontSize:"sm",px:"3"}),xs:(0,e$.k0)({h:"6",minW:"6",fontSize:"xs",px:"2"})},oa=(0,e$.fj)({baseStyle:i7,variants:{ghost:i8,outline:oe,solid:or,link:on,unstyled:oi},sizes:oo,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}}),{definePartsStyle:os,defineMultiStyleConfig:ol}=(0,e$.D)(t4.keys),oc=(0,e$.gJ)("card-bg"),ou=(0,e$.gJ)("card-padding"),od=os({container:{[oc.variable]:"chakra-body-bg",backgroundColor:oc.reference,color:"chakra-body-text"},body:{padding:ou.reference,flex:"1 1 0%"},header:{padding:ou.reference},footer:{padding:ou.reference}}),op={sm:os({container:{borderRadius:"base",[ou.variable]:"space.3"}}),md:os({container:{borderRadius:"md",[ou.variable]:"space.5"}}),lg:os({container:{borderRadius:"xl",[ou.variable]:"space.7"}})},oh=ol({baseStyle:od,variants:{elevated:os({container:{boxShadow:"base",_dark:{[oc.variable]:"colors.gray.700"}}}),outline:os({container:{borderWidth:"1px",borderColor:"chakra-border-color"}}),filled:os({container:{[oc.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{padding:0},header:{padding:0},footer:{padding:0}}},sizes:op,defaultProps:{variant:"elevated",size:"md"}}),of=cssVar("close-button-size"),om=cssVar("close-button-bg"),og=(0,e$.k0)({w:[of.reference],h:[of.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[om.variable]:"colors.blackAlpha.100",_dark:{[om.variable]:"colors.whiteAlpha.100"}},_active:{[om.variable]:"colors.blackAlpha.200",_dark:{[om.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:om.reference}),ov={lg:(0,e$.k0)({[of.variable]:"sizes.10",fontSize:"md"}),md:(0,e$.k0)({[of.variable]:"sizes.8",fontSize:"xs"}),sm:(0,e$.k0)({[of.variable]:"sizes.6",fontSize:"2xs"})},oy=(0,e$.fj)({baseStyle:og,sizes:ov,defaultProps:{size:"md"}}),{variants:ob,defaultProps:ox}=rV,oS=(0,e$.k0)({fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"}),ok=(0,e$.fj)({baseStyle:oS,variants:ob,defaultProps:ox}),ow=(0,e$.k0)({w:"100%",mx:"auto",maxW:"prose",px:"4"}),o_=(0,e$.fj)({baseStyle:ow}),oC=(0,e$.k0)({opacity:.6,borderColor:"inherit"}),oT=(0,e$.k0)({borderStyle:"solid"}),oP=(0,e$.k0)({borderStyle:"dashed"}),oA=(0,e$.fj)({baseStyle:oC,variants:{solid:oT,dashed:oP},defaultProps:{variant:"solid"}}),{definePartsStyle:oE,defineMultiStyleConfig:oj}=(0,e$.D)(tB.keys),oR=oj({baseStyle:oE({container:(0,e$.k0)({borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}}),button:(0,e$.k0)({transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"}),panel:(0,e$.k0)({pt:"2",px:"4",pb:"5"}),icon:(0,e$.k0)({fontSize:"1.25em"})})}),{definePartsStyle:oM,defineMultiStyleConfig:oO}=(0,e$.D)(tV.keys),oD=(0,e$.gJ)("alert-fg"),oB=(0,e$.gJ)("alert-bg");function getBg(e){let{theme:t,colorScheme:n}=e,i=chunk_H4E5VM26_transparentize(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:i}}var oV=oO({baseStyle:oM({container:{bg:oB.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:oD.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:oD.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}}),variants:{subtle:oM(e=>{let{colorScheme:t}=e,n=getBg(e);return{container:{[oD.variable]:`colors.${t}.500`,[oB.variable]:n.light,_dark:{[oD.variable]:`colors.${t}.200`,[oB.variable]:n.dark}}}}),"left-accent":oM(e=>{let{colorScheme:t}=e,n=getBg(e);return{container:{[oD.variable]:`colors.${t}.500`,[oB.variable]:n.light,_dark:{[oD.variable]:`colors.${t}.200`,[oB.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:oD.reference}}}),"top-accent":oM(e=>{let{colorScheme:t}=e,n=getBg(e);return{container:{[oD.variable]:`colors.${t}.500`,[oB.variable]:n.light,_dark:{[oD.variable]:`colors.${t}.200`,[oB.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:oD.reference}}}),solid:oM(e=>{let{colorScheme:t}=e;return{container:{[oD.variable]:"colors.white",[oB.variable]:`colors.${t}.500`,_dark:{[oD.variable]:"colors.gray.900",[oB.variable]:`colors.${t}.200`},color:oD.reference}}})},defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:oz,defineMultiStyleConfig:oI}=(0,e$.D)(tz.keys),oF=(0,e$.gJ)("avatar-border-color"),oL=(0,e$.gJ)("avatar-bg"),oN=(0,e$.k0)({borderRadius:"full",border:"0.2em solid",[oF.variable]:"white",_dark:{[oF.variable]:"colors.gray.800"},borderColor:oF.reference}),o$=(0,e$.k0)({[oL.variable]:"colors.gray.200",_dark:{[oL.variable]:"colors.whiteAlpha.400"},bgColor:oL.reference}),oW=(0,e$.gJ)("avatar-background"),oU=(0,e$.k0)(e=>{let{name:t,theme:n}=e,i=t?function(e){var t;let n=randomHex();return!e||isEmptyObject(e)?n:e.string&&e.colors?function(e,t){let n=0;if(0===e.length)return t[0];for(let t=0;t>8*e&255;n+=`00${i.toString(16)}`.substr(-2)}return n}(e.string):e.colors&&!e.string?(t=e.colors)[Math.floor(Math.random()*t.length)]:n}({string:t}):"colors.gray.400",o=isDark(i)(n),a="white";return o||(a="gray.800"),{bg:oW.reference,"&:not([data-loaded])":{[oW.variable]:i},color:a,[oF.variable]:"colors.white",_dark:{[oF.variable]:"colors.gray.800"},borderColor:oF.reference,verticalAlign:"top"}});function chunk_O7XTKHT6_getSize(e){let t="100%"!==e?tO[e]:void 0;return oz({container:{width:e,height:e,fontSize:`calc(${null!=t?t:e} / 2.5)`},excessLabel:{width:e,height:e},label:{fontSize:`calc(${null!=t?t:e} / 2.5)`,lineHeight:"100%"!==e?null!=t?t:e:void 0}})}var oH=oI({baseStyle:oz(e=>({badge:chunk_EBS47JIL_runIfFn(oN,e),excessLabel:chunk_EBS47JIL_runIfFn(o$,e),container:chunk_EBS47JIL_runIfFn(oU,e)})),sizes:{"2xs":chunk_O7XTKHT6_getSize(4),xs:chunk_O7XTKHT6_getSize(6),sm:chunk_O7XTKHT6_getSize(8),md:chunk_O7XTKHT6_getSize(12),lg:chunk_O7XTKHT6_getSize(16),xl:chunk_O7XTKHT6_getSize(24),"2xl":chunk_O7XTKHT6_getSize(32),full:chunk_O7XTKHT6_getSize("100%")},defaultProps:{size:"md"}}),oG={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},oq={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color",wordWrap:"break-word"}}},oK={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},oX={semanticTokens:oG,direction:"ltr",...tD,components:{Accordion:oR,Alert:oV,Avatar:oH,Badge:rV,Breadcrumb:i9,Button:oa,Checkbox:ns,CloseButton:oy,Code:ok,Container:o_,Divider:oA,Drawer:i$,Editable:iH,Form:iX,FormError:iQ,FormLabel:i1,Heading:i3,Input:rG,Kbd:nU,Link:nG,List:nX,Menu:n4,Modal:ia,NumberInput:ix,PinInput:i_,Popover:ij,Progress:r8,Radio:nd,Select:nv,Skeleton:nS,SkipLink:n_,Slider:nD,Spinner:nI,Stat:nN,Switch:rs,Table:rp,Tabs:rE,Tag:rN,Textarea:rY,Tooltip:r1,Card:oh},styles:oq,config:oK},oY={semanticTokens:oG,direction:"ltr",components:{},...tD,styles:oq,config:oK},findById=(e,t)=>e.find(e=>e.id===t);function findToast(e,t){let n=getToastPosition(e,t),i=n?e[n].findIndex(e=>e.id===t):-1;return{position:n,index:i}}function getToastPosition(e,t){for(let[n,i]of Object.entries(e))if(findById(i,t))return n}var oZ=n(5947),oJ={initial:e=>{let{position:t}=e,n=["top","bottom"].includes(t)?"y":"x",i=["top-right","bottom-right"].includes(t)?1:-1;return"bottom"===t&&(i=1),{opacity:0,[n]:24*i}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},oQ=(0,D.memo)(e=>{let{id:t,message:n,onCloseComplete:i,onRequestRemove:o,requestClose:a=!1,position:s="bottom",duration:l=5e3,containerStyle:c,motionVariants:u=oJ,toastSpacing:d="0.5rem"}=e,[p,h]=(0,D.useState)(l),f=(0,oZ.hO)();dist_useUpdateEffect(()=>{f||null==i||i()},[f]),dist_useUpdateEffect(()=>{h(l)},[l]);let close=()=>{f&&o()};(0,D.useEffect)(()=>{f&&a&&o()},[f,a,o]),function(e,t){let n=useCallbackRef(e);(0,D.useEffect)(()=>{if(null==t)return;let e=null;return e=window.setTimeout(()=>{n()},t),()=>{e&&window.clearTimeout(e)}},[t,n])}(close,p);let m=(0,D.useMemo)(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...c}),[c,d]),g=(0,D.useMemo)(()=>(function(e){let t=e.includes("right"),n=e.includes("left"),i="center";return t&&(i="flex-end"),n&&(i="flex-start"),{display:"flex",flexDirection:"column",alignItems:i}})(s),[s]);return(0,O.jsx)(eZ.E.li,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>h(null),onHoverEnd:()=>h(l),custom:{position:s},style:g,children:(0,O.jsx)(H.m.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:m,children:(0,Y.Pu)(n,{id:t,onClose:close})})})});oQ.displayName="ToastComponent";var o0=n(6877);function WarningIcon(e){return(0,O.jsx)(o0.J,{viewBox:"0 0 24 24",...e,children:(0,O.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 o1=n(295),[o2,o5]=(0,en.k)({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[o3,o4]=(0,en.k)({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),o6={info:{icon:function(e){return(0,O.jsx)(o0.J,{viewBox:"0 0 24 24",...e,children:(0,O.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"})})},colorScheme:"blue"},warning:{icon:WarningIcon,colorScheme:"orange"},success:{icon:function(e){return(0,O.jsx)(o0.J,{viewBox:"0 0 24 24",...e,children:(0,O.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"})})},colorScheme:"green"},error:{icon:WarningIcon,colorScheme:"red"},loading:{icon:o1.$,colorScheme:"blue"}},o9=(0,U.G)(function(e,t){var n;let{status:i="info",addRole:o=!0,...a}=(0,e$.Lr)(e),s=null!=(n=e.colorScheme)?n:o6[i].colorScheme,l=(0,eN.jC)("Alert",{...e,colorScheme:s}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return(0,O.jsx)(o2,{value:{status:i},children:(0,O.jsx)(o3,{value:l,children:(0,O.jsx)(H.m.div,{role:o?"alert":void 0,ref:t,...a,className:(0,Y.cx)("chakra-alert",e.className),__css:c})})})});function AlertIcon(e){let{status:t}=o5(),n=o6[t].icon,i=o4(),o="loading"===t?i.spinner:i.icon;return(0,O.jsx)(H.m.span,{display:"inherit",...e,className:(0,Y.cx)("chakra-alert__icon",e.className),__css:o,children:e.children||(0,O.jsx)(n,{h:"100%",w:"100%"})})}o9.displayName="Alert",AlertIcon.displayName="AlertIcon";var o7=(0,U.G)(function(e,t){let n=o4();return(0,O.jsx)(H.m.div,{ref:t,...e,className:(0,Y.cx)("chakra-alert__title",e.className),__css:n.title})});o7.displayName="AlertTitle";var o8=(0,U.G)(function(e,t){let n=o4(),i={display:"inline",...n.description};return(0,O.jsx)(H.m.div,{ref:t,...e,className:(0,Y.cx)("chakra-alert__desc",e.className),__css:i})});function CloseIcon(e){return(0,O.jsx)(o0.J,{focusable:"false","aria-hidden":!0,...e,children:(0,O.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}o8.displayName="AlertDescription";var ae=(0,U.G)(function(e,t){let n=(0,eN.mq)("CloseButton",e),{children:i,isDisabled:o,__css:a,...s}=(0,e$.Lr)(e);return(0,O.jsx)(H.m.button,{type:"button","aria-label":"Close",ref:t,disabled:o,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...n,...a},...s,children:i||(0,O.jsx)(CloseIcon,{width:"1em",height:"1em"})})});ae.displayName="CloseButton";var at=function(e){let t=e,n=new Set,setState=e=>{t=e(t),n.forEach(e=>e())};return{getState:()=>t,subscribe:t=>(n.add(t),()=>{setState(()=>e),n.delete(t)}),removeToast:(e,t)=>{setState(n=>({...n,[t]:n[t].filter(t=>t.id!=e)}))},notify:(e,t)=>{let n=function(e,t={}){var n,i;ar+=1;let o=null!=(n=t.id)?n:ar,a=null!=(i=t.position)?i:"bottom";return{id:o,message:e,position:a,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>at.removeToast(String(o),a),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}(e,t),{position:i,id:o}=n;return setState(e=>{var t,o;let a=i.includes("top"),s=a?[n,...null!=(t=e[i])?t:[]]:[...null!=(o=e[i])?o:[],n];return{...e,[i]:s}}),o},update:(e,t)=>{e&&setState(n=>{let i={...n},{position:o,index:a}=findToast(i,e);return o&&-1!==a&&(i[o][a]={...i[o][a],...t,message:function(e={}){let{render:t,toastComponent:n=Toast}=e;return i=>"function"==typeof t?t({...i,...e}):(0,O.jsx)(n,{...i,...e})}(t)}),i})},closeAll:({positions:e}={})=>{setState(t=>(null!=e?e:["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((e,n)=>(e[n]=t[n].map(e=>({...e,requestClose:!0})),e),{...t}))},close:e=>{setState(t=>{let n=getToastPosition(t,e);return n?{...t,[n]:t[n].map(t=>t.id==e?{...t,requestClose:!0}:t)}:t})},isActive:e=>!!findToast(at.getState(),e).position}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]}),ar=0,Toast=e=>{let{status:t,variant:n="solid",id:i,title:o,isClosable:a,onClose:s,description:l,icon:c}=e,u=i?{root:`toast-${i}`,title:`toast-${i}-title`,description:`toast-${i}-description`}:void 0;return(0,O.jsxs)(o9,{addRole:!1,status:t,variant:n,id:null==u?void 0:u.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",children:[(0,O.jsx)(AlertIcon,{children:c}),(0,O.jsxs)(H.m.div,{flex:"1",maxWidth:"100%",children:[o&&(0,O.jsx)(o7,{id:null==u?void 0:u.title,children:o}),l&&(0,O.jsx)(o8,{id:null==u?void 0:u.description,display:"block",children:l})]}),a&&(0,O.jsx)(ae,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})},an=n(3935),[ai,ao]=(0,en.k)({strict:!1,name:"PortalContext"}),aa="chakra-portal",Container=e=>(0,O.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),DefaultPortal=e=>{let{appendToParentPortal:t,children:n}=e,[i,o]=(0,D.useState)(null),a=(0,D.useRef)(null),[,s]=(0,D.useState)({});(0,D.useEffect)(()=>s({}),[]);let l=ao(),c=tx();tP(()=>{if(!i)return;let e=i.ownerDocument,n=t&&null!=l?l:e.body;if(!n)return;a.current=e.createElement("div"),a.current.className=aa,n.appendChild(a.current),s({});let o=a.current;return()=>{n.contains(o)&&n.removeChild(o)}},[i]);let u=(null==c?void 0:c.zIndex)?(0,O.jsx)(Container,{zIndex:null==c?void 0:c.zIndex,children:n}):n;return a.current?(0,an.createPortal)((0,O.jsx)(ai,{value:a.current,children:u}),a.current):(0,O.jsx)("span",{ref:e=>{e&&o(e)}})},ContainerPortal=e=>{let{children:t,containerRef:n,appendToParentPortal:i}=e,o=n.current,a=null!=o?o:"undefined"!=typeof window?document.body:void 0,s=(0,D.useMemo)(()=>{let e=null==o?void 0:o.ownerDocument.createElement("div");return e&&(e.className=aa),e},[o]),[,l]=(0,D.useState)({});return(tP(()=>l({}),[]),tP(()=>{if(s&&a)return a.appendChild(s),()=>{a.removeChild(s)}},[s,a]),a&&s)?(0,an.createPortal)((0,O.jsx)(ai,{value:i?s:null,children:t}),s):null};function Portal(e){let t={appendToParentPortal:!0,...e},{containerRef:n,...i}=t;return n?(0,O.jsx)(ContainerPortal,{containerRef:n,...i}):(0,O.jsx)(DefaultPortal,{...i})}Portal.className=aa,Portal.selector=".chakra-portal",Portal.displayName="Portal";var ToastProvider=e=>{let t=(0,D.useSyncExternalStore)(at.subscribe,at.getState,at.getState),{children:n,motionVariants:i,component:o=oQ,portalProps:a}=e,s=Object.keys(t),l=s.map(e=>{let n=t[e];return(0,O.jsx)("ul",{role:"region","aria-live":"polite",id:`chakra-toast-manager-${e}`,style:function(e){let t=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,n=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",o=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:5500,pointerEvents:"none",display:"flex",flexDirection:"column",margin:"top"===e||"bottom"===e?"0 auto":void 0,top:t,bottom:n,right:i,left:o}}(e),children:(0,O.jsx)(AnimatePresence,{initial:!1,children:n.map(e=>(0,O.jsx)(o,{motionVariants:i,...e},e.id))})},e)});return(0,O.jsxs)(O.Fragment,{children:[n,(0,O.jsx)(Portal,{...a,children:l})]})},createChakraProvider=e=>function({children:t,theme:n=e,toastOptions:i,...o}){return(0,O.jsxs)(ChakraProvider,{theme:n,...o,children:[t,(0,O.jsx)(ToastProvider,{...i})]})},as=createChakraProvider(oX);createChakraProvider(oY);var al=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"],ac=n(8554);function chunk_AQYX3YP4_isFunction(e){return"function"==typeof e}var createExtendTheme=e=>function(...t){var n;let i=[...t],o=t[t.length-1];return(n=o,(0,Y.Kn)(n)&&al.every(e=>Object.prototype.hasOwnProperty.call(n,e))&&i.length>1)?i=i.slice(0,i.length-1):o=e,(function(...e){return t=>e.reduce((e,t)=>t(e),t)})(...i.map(e=>t=>chunk_AQYX3YP4_isFunction(e)?e(t):function(...e){return ac({},...e,mergeThemeCustomizer)}(t,e)))(o)},au=createExtendTheme(oX);function mergeThemeCustomizer(e,t,n,i){if((chunk_AQYX3YP4_isFunction(e)||chunk_AQYX3YP4_isFunction(t))&&Object.prototype.hasOwnProperty.call(i,n))return(...n)=>{let i=chunk_AQYX3YP4_isFunction(e)?e(...n):e,o=chunk_AQYX3YP4_isFunction(t)?t(...n):t;return ac({},i,o,mergeThemeCustomizer)}}createExtendTheme(oY);let ad=au({config:{initialColorMode:"dark",useSystemColorMode:!0},styles:{global:e=>({body:{bg:mode("#e5e7e9","#16181c")(e)}})},components:{Heading:{variants:{"section-title":{textDecoration:"underline",fontSize:23,textUnderlineOffset:6,textDecorationColor:"#5f666f",textDecorationThickness:4,marginTop:3,marginBottom:4},caption:{fontSize:16,marginTop:3,marginBottom:4},title:{fontSize:23,marginTop:3,marginBottom:4,marginLeft:3,marginRight:7,textDecoration:"none"}}},Link:{baseStyle:e=>({color:mode("#030e61","#ffff00")(e),textUnderlineOffset:3})}},fonts:{heading:"'M PLUS Rounded 1c'"},colors:{grassTeal:"#88ccca"}});function Chakra(e){let{cookies:t,children:n}=e,i="string"==typeof t?cookieStorageManagerSSR(t):tg;return(0,O.jsx)(as,{theme:ad,colorModeManager:i,children:n})}window.history.scrollRestoration="manual";var _app=function(e){let{Component:t,pageProps:n,router:i}=e;return(0,O.jsxs)(Chakra,{cookies:n,children:[(0,O.jsx)(fonts,{}),(0,O.jsx)(layouts_main,{router:i,children:(0,D.createElement)(t,{...n,key:i.route})})]})}},1479:function(){},7663:function(e){!function(){var t={229:function(e){var t,n,i,o=e.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(e){if(t===setTimeout)return setTimeout(e,0);if((t===defaultSetTimout||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){t=defaultSetTimout}try{n="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){n=defaultClearTimeout}}();var a=[],s=!1,l=-1;function cleanUpNextTick(){s&&i&&(s=!1,i.length?a=i.concat(a):l=-1,a.length&&drainQueue())}function drainQueue(){if(!s){var e=runTimeout(cleanUpNextTick);s=!0;for(var t=a.length;t;){for(i=a,a=[];++l1)for(var n=1;nnull===e?null:t(e)):(0,i.Kn)(e)?Object.keys(e).reduce((n,i)=>(n[i]=t(e[i]),n),{}):null!=e?t(e):null}Object.freeze(["base","sm","md","lg","xl","2xl"])},5450:function(e,t,n){"use strict";n.d(t,{z:function(){return m}});var i=n(7294),[o,a]=(0,n(5227).k)({strict:!1,name:"ButtonGroupContext"}),s=n(5523),l=n(5432),c=n(5893);function ButtonIcon(e){let{children:t,className:n,...o}=e,a=(0,i.isValidElement)(t)?(0,i.cloneElement)(t,{"aria-hidden":!0,focusable:!1}):t,u=(0,l.cx)("chakra-button__icon",n);return(0,c.jsx)(s.m.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...o,className:u,children:a})}ButtonIcon.displayName="ButtonIcon";var u=n(295);function ButtonSpinner(e){let{label:t,placement:n,spacing:o="0.5rem",children:a=(0,c.jsx)(u.$,{color:"currentColor",width:"1em",height:"1em"}),className:d,__css:p,...h}=e,f=(0,l.cx)("chakra-button__spinner",d),m="start"===n?"marginEnd":"marginStart",g=(0,i.useMemo)(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[m]:t?o:0,fontSize:"1em",lineHeight:"normal",...p}),[p,t,m,o]);return(0,c.jsx)(s.m.div,{className:f,...h,__css:g,children:a})}ButtonSpinner.displayName="ButtonSpinner";var d=n(1103),p=n(5059),h=n(1639),f=n(3179),m=(0,p.G)((e,t)=>{let n=a(),o=(0,h.mq)("Button",{...n,...e}),{isDisabled:u=null==n?void 0:n.isDisabled,isLoading:p,isActive:m,children:g,leftIcon:v,rightIcon:y,loadingText:b,iconSpacing:x="0.5rem",type:S,spinner:k,spinnerPlacement:w="start",className:_,as:C,...T}=(0,f.Lr)(e),P=(0,i.useMemo)(()=>{let e={...null==o?void 0:o._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...o,...!!n&&{_focus:e}}},[o,n]),{ref:E,type:j}=function(e){let[t,n]=(0,i.useState)(!e),o=(0,i.useCallback)(e=>{e&&n("BUTTON"===e.tagName)},[]);return{ref:o,type:t?"button":void 0}}(C),R={rightIcon:y,leftIcon:v,iconSpacing:x,children:g};return(0,c.jsxs)(s.m.button,{disabled:u||p,ref:(0,d.qq)(t,E),as:C,type:null!=S?S:j,"data-active":(0,l.PB)(m),"data-loading":(0,l.PB)(p),__css:P,className:(0,l.cx)("chakra-button",_),...T,children:[p&&"start"===w&&(0,c.jsx)(ButtonSpinner,{className:"chakra-button__spinner--start",label:b,placement:"start",spacing:x,children:k}),p?b||(0,c.jsx)(s.m.span,{opacity:0,children:(0,c.jsx)(ButtonContent,{...R})}):(0,c.jsx)(ButtonContent,{...R}),p&&"end"===w&&(0,c.jsx)(ButtonSpinner,{className:"chakra-button__spinner--end",label:b,placement:"end",spacing:x,children:k})]})});function ButtonContent(e){let{leftIcon:t,rightIcon:n,children:i,iconSpacing:o}=e;return(0,c.jsxs)(c.Fragment,{children:[t&&(0,c.jsx)(ButtonIcon,{marginEnd:o,children:t}),i,n&&(0,c.jsx)(ButtonIcon,{marginStart:o,children:n})]})}m.displayName="Button"},2498:function(e,t,n){"use strict";n.d(t,{If:function(){return useColorMode},ff:function(){return useColorModeValue},kc:function(){return o}});var i=n(7294),o=(0,i.createContext)({});function useColorMode(){let e=(0,i.useContext)(o);if(void 0===e)throw Error("useColorMode must be used within a ColorModeProvider");return e}function useColorModeValue(e,t){let{colorMode:n}=useColorMode();return"dark"===n?t:e}o.displayName="ColorModeContext"},6877:function(e,t,n){"use strict";n.d(t,{J:function(){return u}});var i=n(5059),o=n(1639),a=n(5523),s=n(5432),l=n(5893),c={path:(0,l.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,l.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"}),(0,l.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"}),(0,l.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},u=(0,i.G)((e,t)=>{let{as:n,viewBox:i,color:u="currentColor",focusable:d=!1,children:p,className:h,__css:f,...m}=e,g=(0,s.cx)("chakra-icon",h),v=(0,o.mq)("Icon",e),y={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:u,...f,...v},b={ref:t,focusable:d,className:g,__css:y},x=null!=i?i:c.viewBox;if(n&&"string"!=typeof n)return(0,l.jsx)(a.m.svg,{as:n,...b,...m});let S=null!=p?p:c.path;return(0,l.jsx)(a.m.svg,{verticalAlign:"middle",viewBox:x,...b,...m,children:S})});u.displayName="Icon"},78:function(e,t,n){"use strict";n.d(t,{I:function(){return createIcon}});var i=n(6877),o=n(5059),a=n(7294),s=n(5893);function createIcon(e){let{viewBox:t="0 0 24 24",d:n,displayName:l,defaultProps:c={}}=e,u=a.Children.toArray(e.path),d=(0,o.G)((e,o)=>(0,s.jsx)(i.J,{ref:o,viewBox:t,...c,...e,children:u.length?u:(0,s.jsx)("path",{fill:"currentColor",d:n})}));return d.displayName=l,d}},3100:function(e,t,n){"use strict";n.d(t,{xu:function(){return s}});var i=n(5523),o=n(5059),a=n(5893),s=(0,i.m)("div");s.displayName="Box";var l=(0,o.G)(function(e,t){let{size:n,centerContent:i=!0,...o}=e;return(0,a.jsx)(s,{ref:t,boxSize:n,__css:{...i?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...o})});l.displayName="Square",(0,o.G)(function(e,t){let{size:n,...i}=e;return(0,a.jsx)(l,{size:n,ref:t,borderRadius:"9999px",...i})}).displayName="Circle"},4418:function(e,t,n){"use strict";n.d(t,{X:function(){return u}});var i=n(5059),o=n(1639),a=n(3179),s=n(5523),l=n(5432),c=n(5893),u=(0,i.G)(function(e,t){let n=(0,o.mq)("Heading",e),{className:i,...u}=(0,a.Lr)(e);return(0,c.jsx)(s.m.h2,{ref:t,className:(0,l.cx)("chakra-heading",e.className),...u,__css:n})});u.displayName="Heading"},3205:function(e,t,n){"use strict";n.d(t,{x:function(){return u}});var i=n(5059),o=n(1639),a=n(3179),s=n(5523),l=n(5432),c=n(5893),u=(0,i.G)(function(e,t){let n=(0,o.mq)("Text",e),{className:i,align:u,decoration:d,casing:p,...h}=(0,a.Lr)(e),f=function(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return(0,c.jsx)(s.m.p,{ref:t,className:(0,l.cx)("chakra-text",e.className),...f,...h,__css:n})});u.displayName="Text"},6979:function(e,t,n){"use strict";n.d(t,{W:function(){return u}});var i=n(5059),o=n(3179),a=n(1639),s=n(5523),l=n(5432),c=n(5893),u=(0,i.G)(function(e,t){let{className:n,centerContent:i,...u}=(0,o.Lr)(e),d=(0,a.mq)("Container",e);return(0,c.jsx)(s.m.div,{ref:t,className:(0,l.cx)("chakra-container",n),...u,__css:{...d,...i&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});u.displayName="Container"},3838:function(e,t,n){"use strict";n.d(t,{r:function(){return u}});var i=n(5059),o=n(1639),a=n(3179),s=n(5523),l=n(5432),c=n(5893),u=(0,i.G)(function(e,t){let n=(0,o.mq)("Link",e),{className:i,isExternal:u,...d}=(0,a.Lr)(e);return(0,c.jsx)(s.m.a,{target:u?"_blank":void 0,rel:u?"noopener":void 0,ref:t,className:(0,l.cx)("chakra-link",i),...d,__css:n})});u.displayName="Link"},2495:function(e,t,n){"use strict";n.d(t,{W:function(){return getValidChildren}});var i=n(7294);function getValidChildren(e){return i.Children.toArray(e).filter(e=>(0,i.isValidElement)(e))}},5227:function(e,t,n){"use strict";n.d(t,{k:function(){return createContext}});var i=n(7294);function createContext(e={}){let{name:t,strict:n=!0,hookName:o="useContext",providerName:a="Provider",errorMessage:s}=e,l=(0,i.createContext)(void 0);return l.displayName=t,[l.Provider,function useContext(){var e;let t=(0,i.useContext)(l);if(!t&&n){let t=Error(null!=s?s:`${o} returned \`undefined\`. Seems you forgot to wrap component within ${a}`);throw t.name="ContextError",null==(e=Error.captureStackTrace)||e.call(Error,t,useContext),t}return t},l]}},1103:function(e,t,n){"use strict";n.d(t,{lq:function(){return mergeRefs},qq:function(){return useMergeRefs}});var i=n(7294);function mergeRefs(...e){return t=>{e.forEach(e=>{!function(e,t){if(null!=e){if("function"==typeof e){e(t);return}try{e.current=t}catch(n){throw Error(`Cannot assign value '${t}' to ref '${e}'`)}}}(e,t)})}}function useMergeRefs(...e){return(0,i.useMemo)(()=>mergeRefs(...e),e)}},5432:function(e,t,n){"use strict";n.d(t,{Kn:function(){return isObject},PB:function(){return dataAttr},PP:function(){return callAll},Pu:function(){return runIfFn},cx:function(){return cx},v0:function(){return callAllHandlers}});var cx=(...e)=>e.filter(Boolean).join(" ");function isObject(e){let t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}function runIfFn(e,...t){return isFunction(e)?e(...t):e}var isFunction=e=>"function"==typeof e,dataAttr=e=>e?"":void 0;function callAllHandlers(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}function callAll(...e){return function(t){e.forEach(e=>{null==e||e(t)})}}},295:function(e,t,n){"use strict";n.d(t,{$:function(){return p}});var i=n(917),o=n(5059),a=n(1639),s=n(3179),l=n(5523),c=n(5432),u=n(5893),d=(0,i.F4)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),p=(0,o.G)((e,t)=>{let n=(0,a.mq)("Spinner",e),{label:i="Loading...",thickness:o="2px",speed:p="0.45s",emptyColor:h="transparent",className:f,...m}=(0,s.Lr)(e),g=(0,c.cx)("chakra-spinner",f),v={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:h,borderLeftColor:h,animation:`${d} ${p} linear infinite`,...n};return(0,u.jsx)(l.m.div,{ref:t,__css:v,className:g,...m,children:i&&(0,u.jsx)(l.m.span,{srOnly:!0,children:i})})});p.displayName="Spinner"},3179:function(e,t,n){"use strict";n.d(t,{D:function(){return createMultiStyleConfigHelpers},Lr:function(){return omitThemingProps},Ud:function(){return resolveStyleConfig},ZR:function(){return isStyleProp},c0:function(){return toCSSVar},cC:function(){return H},fj:function(){return defineStyleConfig},gJ:function(){return cssVar},iv:function(){return css},k0:function(){return defineStyle}});var i=n(5432),o=n(8554),isImportant=e=>/!(important)?$/.test(e),withoutImportant=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e,tokenToCSSVar=(e,t)=>n=>{let o=String(t),a=isImportant(o),s=withoutImportant(o),l=e?`${e}.${s}`:s,c=(0,i.Kn)(n.__cssMap)&&l in n.__cssMap?n.__cssMap[l].varRef:t;return c=withoutImportant(c),a?`${c} !important`:c};function createTransform(e){let{scale:t,transform:n,compose:i}=e;return(e,o)=>{var a;let s=tokenToCSSVar(t,e)(o),l=null!=(a=null==n?void 0:n(s,o))?a:s;return i&&(l=i(l,o)),l}}var pipe=(...e)=>t=>e.reduce((e,t)=>t(e),t);function toConfig(e,t){return n=>{let i={property:n,scale:e};return i.transform=createTransform({scale:e,transform:t}),i}}var getRtl=({rtl:e,ltr:t})=>n=>"rtl"===n.direction?e:t,a=["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))"],s={"--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)"},l={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)","--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,/*!*/ /*!*/)"},c={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},u="& > :not(style) ~ :not(style)",d={"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"},p=new Set(Object.values(d)),h=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),trimSpace=e=>e.trim(),isCSSFunction=e=>"string"==typeof e&&e.includes("(")&&e.includes(")"),analyzeCSSValue=e=>{let t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},wrap=e=>t=>`${e}(${t})`,f={filter:e=>"auto"!==e?e:s,backdropFilter:e=>"auto"!==e?e:l,ring:e=>({"--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":f.px(e),boxShadow:"var(--chakra-ring-offset-shadow), var(--chakra-ring-shadow), var(--chakra-shadow, 0 0 #0000)"}),bgClip:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},transform:e=>"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...a].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...a].join(" "):e,vh:e=>"$100vh"===e?"var(--chakra-vh)":e,px(e){if(null==e)return e;let{unitless:t}=analyzeCSSValue(e);return t||"number"==typeof e?`${e}px`:e},fraction:e=>"number"!=typeof e||e>1?e:`${100*e}%`,float:(e,t)=>"rtl"===t.direction?({left:"right",right:"left"})[e]:e,degree(e){if(/^var\(--.+\)$/.test(e)||null==e)return e;let t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},gradient:(e,t)=>(function(e,t){var n,i;if(null==e||h.has(e))return e;let{type:o,values:a}=null!=(i=null==(n=/(?^[a-z-A-Z]+)\((?(.*))\)/g.exec(e))?void 0:n.groups)?i:{};if(!o||!a)return e;let s=o.includes("-gradient")?o:`${o}-gradient`,[l,...c]=a.split(",").map(trimSpace).filter(Boolean);if((null==c?void 0:c.length)===0)return e;let u=l in d?d[l]:l;c.unshift(u);let f=c.map(e=>{if(p.has(e))return e;let n=e.indexOf(" "),[i,o]=-1!==n?[e.substr(0,n),e.substr(n+1)]:[e],a=isCSSFunction(o)?o:o&&o.split(" "),s=`colors.${i}`,l=s in t.__cssMap?t.__cssMap[s].varRef:i;return a?[l,...Array.isArray(a)?a:[a]].join(" "):l});return`${s}(${f.join(", ")})`})(e,null!=t?t:{}),blur:wrap("blur"),opacity:wrap("opacity"),brightness:wrap("brightness"),contrast:wrap("contrast"),dropShadow:wrap("drop-shadow"),grayscale:wrap("grayscale"),hueRotate:wrap("hue-rotate"),invert:wrap("invert"),saturate:wrap("saturate"),sepia:wrap("sepia"),bgImage(e){if(null==e)return e;let t=isCSSFunction(e)||h.has(e);return t?e:`url(${e})`},outline(e){let t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;let{space:n,divide:i}=null!=(t=c[e])?t:{},o={flexDirection:e};return n&&(o[n]=1),i&&(o[i]=1),o}},m={borderWidths:toConfig("borderWidths"),borderStyles:toConfig("borderStyles"),colors:toConfig("colors"),borders:toConfig("borders"),radii:toConfig("radii",f.px),space:toConfig("space",pipe(f.vh,f.px)),spaceT:toConfig("space",pipe(f.vh,f.px)),degreeT:e=>({property:e,transform:f.degree}),prop:(e,t,n)=>({property:e,scale:t,...t&&{transform:createTransform({scale:t,transform:n})}}),propT:(e,t)=>({property:e,transform:t}),sizes:toConfig("sizes",pipe(f.vh,f.px)),sizesT:toConfig("sizes",pipe(f.vh,f.fraction)),shadows:toConfig("shadows"),logical:function(e){let{property:t,scale:n,transform:i}=e;return{scale:n,property:getRtl(t),transform:n?createTransform({scale:n,compose:i}):i}},blur:toConfig("blur",f.blur)},g={background:m.colors("background"),backgroundColor:m.colors("backgroundColor"),backgroundImage:m.propT("backgroundImage",f.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:f.bgClip},bgSize:m.prop("backgroundSize"),bgPosition:m.prop("backgroundPosition"),bg:m.colors("background"),bgColor:m.colors("backgroundColor"),bgPos:m.prop("backgroundPosition"),bgRepeat:m.prop("backgroundRepeat"),bgAttachment:m.prop("backgroundAttachment"),bgGradient:m.propT("backgroundImage",f.gradient),bgClip:{transform:f.bgClip}};Object.assign(g,{bgImage:g.backgroundImage,bgImg:g.backgroundImage});var v={border:m.borders("border"),borderWidth:m.borderWidths("borderWidth"),borderStyle:m.borderStyles("borderStyle"),borderColor:m.colors("borderColor"),borderRadius:m.radii("borderRadius"),borderTop:m.borders("borderTop"),borderBlockStart:m.borders("borderBlockStart"),borderTopLeftRadius:m.radii("borderTopLeftRadius"),borderStartStartRadius:m.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:m.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:m.radii("borderTopRightRadius"),borderStartEndRadius:m.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:m.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:m.borders("borderRight"),borderInlineEnd:m.borders("borderInlineEnd"),borderBottom:m.borders("borderBottom"),borderBlockEnd:m.borders("borderBlockEnd"),borderBottomLeftRadius:m.radii("borderBottomLeftRadius"),borderBottomRightRadius:m.radii("borderBottomRightRadius"),borderLeft:m.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:m.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:m.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:m.borders(["borderLeft","borderRight"]),borderInline:m.borders("borderInline"),borderY:m.borders(["borderTop","borderBottom"]),borderBlock:m.borders("borderBlock"),borderTopWidth:m.borderWidths("borderTopWidth"),borderBlockStartWidth:m.borderWidths("borderBlockStartWidth"),borderTopColor:m.colors("borderTopColor"),borderBlockStartColor:m.colors("borderBlockStartColor"),borderTopStyle:m.borderStyles("borderTopStyle"),borderBlockStartStyle:m.borderStyles("borderBlockStartStyle"),borderBottomWidth:m.borderWidths("borderBottomWidth"),borderBlockEndWidth:m.borderWidths("borderBlockEndWidth"),borderBottomColor:m.colors("borderBottomColor"),borderBlockEndColor:m.colors("borderBlockEndColor"),borderBottomStyle:m.borderStyles("borderBottomStyle"),borderBlockEndStyle:m.borderStyles("borderBlockEndStyle"),borderLeftWidth:m.borderWidths("borderLeftWidth"),borderInlineStartWidth:m.borderWidths("borderInlineStartWidth"),borderLeftColor:m.colors("borderLeftColor"),borderInlineStartColor:m.colors("borderInlineStartColor"),borderLeftStyle:m.borderStyles("borderLeftStyle"),borderInlineStartStyle:m.borderStyles("borderInlineStartStyle"),borderRightWidth:m.borderWidths("borderRightWidth"),borderInlineEndWidth:m.borderWidths("borderInlineEndWidth"),borderRightColor:m.colors("borderRightColor"),borderInlineEndColor:m.colors("borderInlineEndColor"),borderRightStyle:m.borderStyles("borderRightStyle"),borderInlineEndStyle:m.borderStyles("borderInlineEndStyle"),borderTopRadius:m.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:m.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:m.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:m.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(v,{rounded:v.borderRadius,roundedTop:v.borderTopRadius,roundedTopLeft:v.borderTopLeftRadius,roundedTopRight:v.borderTopRightRadius,roundedTopStart:v.borderStartStartRadius,roundedTopEnd:v.borderStartEndRadius,roundedBottom:v.borderBottomRadius,roundedBottomLeft:v.borderBottomLeftRadius,roundedBottomRight:v.borderBottomRightRadius,roundedBottomStart:v.borderEndStartRadius,roundedBottomEnd:v.borderEndEndRadius,roundedLeft:v.borderLeftRadius,roundedRight:v.borderRightRadius,roundedStart:v.borderInlineStartRadius,roundedEnd:v.borderInlineEndRadius,borderStart:v.borderInlineStart,borderEnd:v.borderInlineEnd,borderTopStartRadius:v.borderStartStartRadius,borderTopEndRadius:v.borderStartEndRadius,borderBottomStartRadius:v.borderEndStartRadius,borderBottomEndRadius:v.borderEndEndRadius,borderStartRadius:v.borderInlineStartRadius,borderEndRadius:v.borderInlineEndRadius,borderStartWidth:v.borderInlineStartWidth,borderEndWidth:v.borderInlineEndWidth,borderStartColor:v.borderInlineStartColor,borderEndColor:v.borderInlineEndColor,borderStartStyle:v.borderInlineStartStyle,borderEndStyle:v.borderInlineEndStyle});var y={color:m.colors("color"),textColor:m.colors("color"),fill:m.colors("fill"),stroke:m.colors("stroke")},b={boxShadow:m.shadows("boxShadow"),mixBlendMode:!0,blendMode:m.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:m.prop("backgroundBlendMode"),opacity:!0};Object.assign(b,{shadow:b.boxShadow});var x={filter:{transform:f.filter},blur:m.blur("--chakra-blur"),brightness:m.propT("--chakra-brightness",f.brightness),contrast:m.propT("--chakra-contrast",f.contrast),hueRotate:m.degreeT("--chakra-hue-rotate"),invert:m.propT("--chakra-invert",f.invert),saturate:m.propT("--chakra-saturate",f.saturate),dropShadow:m.propT("--chakra-drop-shadow",f.dropShadow),backdropFilter:{transform:f.backdropFilter},backdropBlur:m.blur("--chakra-backdrop-blur"),backdropBrightness:m.propT("--chakra-backdrop-brightness",f.brightness),backdropContrast:m.propT("--chakra-backdrop-contrast",f.contrast),backdropHueRotate:m.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:m.propT("--chakra-backdrop-invert",f.invert),backdropSaturate:m.propT("--chakra-backdrop-saturate",f.saturate)},S={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:f.flexDirection},experimental_spaceX:{static:{[u]:{marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"}},transform:createTransform({scale:"space",transform:e=>null!==e?{"--chakra-space-x":e}:null})},experimental_spaceY:{static:{[u]:{marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"}},transform:createTransform({scale:"space",transform:e=>null!=e?{"--chakra-space-y":e}:null})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:m.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:m.space("gap"),rowGap:m.space("rowGap"),columnGap:m.space("columnGap")};Object.assign(S,{flexDir:S.flexDirection});var k={gridGap:m.space("gridGap"),gridColumnGap:m.space("gridColumnGap"),gridRowGap:m.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},w={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:f.outline},outlineOffset:!0,outlineColor:m.colors("outlineColor")},_={width:m.sizesT("width"),inlineSize:m.sizesT("inlineSize"),height:m.sizes("height"),blockSize:m.sizes("blockSize"),boxSize:m.sizes(["width","height"]),minWidth:m.sizes("minWidth"),minInlineSize:m.sizes("minInlineSize"),minHeight:m.sizes("minHeight"),minBlockSize:m.sizes("minBlockSize"),maxWidth:m.sizes("maxWidth"),maxInlineSize:m.sizes("maxInlineSize"),maxHeight:m.sizes("maxHeight"),maxBlockSize:m.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:m.propT("float",f.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(_,{w:_.width,h:_.height,minW:_.minWidth,maxW:_.maxWidth,minH:_.minHeight,maxH:_.maxHeight,overscroll:_.overscrollBehavior,overscrollX:_.overscrollBehaviorX,overscrollY:_.overscrollBehaviorY});var C={listStyleType:!0,listStylePosition:!0,listStylePos:m.prop("listStylePosition"),listStyleImage:!0,listStyleImg:m.prop("listStyleImage")},T=(e=>{let t=new WeakMap;return(n,i,o,a)=>{if(void 0===n)return e(n,i,o);t.has(n)||t.set(n,new Map);let s=t.get(n);if(s.has(i))return s.get(i);let l=e(n,i,o,a);return s.set(i,l),l}})(function(e,t,n,i){let o="string"==typeof t?t.split("."):[t];for(i=0;i{let i={},o=T(e,t,{});for(let e in o){let t=e in n&&null!=n[e];t||(i[e]=o[e])}return i},j={position:!0,pos:m.prop("position"),zIndex:m.prop("zIndex","zIndices"),inset:m.spaceT("inset"),insetX:m.spaceT(["left","right"]),insetInline:m.spaceT("insetInline"),insetY:m.spaceT(["top","bottom"]),insetBlock:m.spaceT("insetBlock"),top:m.spaceT("top"),insetBlockStart:m.spaceT("insetBlockStart"),bottom:m.spaceT("bottom"),insetBlockEnd:m.spaceT("insetBlockEnd"),left:m.spaceT("left"),insetInlineStart:m.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:m.spaceT("right"),insetInlineEnd:m.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(j,{insetStart:j.insetInlineStart,insetEnd:j.insetInlineEnd});var R={ring:{transform:f.ring},ringColor:m.colors("--chakra-ring-color"),ringOffset:m.prop("--chakra-ring-offset-width"),ringOffsetColor:m.colors("--chakra-ring-offset-color"),ringInset:m.prop("--chakra-ring-inset")},M={margin:m.spaceT("margin"),marginTop:m.spaceT("marginTop"),marginBlockStart:m.spaceT("marginBlockStart"),marginRight:m.spaceT("marginRight"),marginInlineEnd:m.spaceT("marginInlineEnd"),marginBottom:m.spaceT("marginBottom"),marginBlockEnd:m.spaceT("marginBlockEnd"),marginLeft:m.spaceT("marginLeft"),marginInlineStart:m.spaceT("marginInlineStart"),marginX:m.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:m.spaceT("marginInline"),marginY:m.spaceT(["marginTop","marginBottom"]),marginBlock:m.spaceT("marginBlock"),padding:m.space("padding"),paddingTop:m.space("paddingTop"),paddingBlockStart:m.space("paddingBlockStart"),paddingRight:m.space("paddingRight"),paddingBottom:m.space("paddingBottom"),paddingBlockEnd:m.space("paddingBlockEnd"),paddingLeft:m.space("paddingLeft"),paddingInlineStart:m.space("paddingInlineStart"),paddingInlineEnd:m.space("paddingInlineEnd"),paddingX:m.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:m.space("paddingInline"),paddingY:m.space(["paddingTop","paddingBottom"]),paddingBlock:m.space("paddingBlock")};Object.assign(M,{m:M.margin,mt:M.marginTop,mr:M.marginRight,me:M.marginInlineEnd,marginEnd:M.marginInlineEnd,mb:M.marginBottom,ml:M.marginLeft,ms:M.marginInlineStart,marginStart:M.marginInlineStart,mx:M.marginX,my:M.marginY,p:M.padding,pt:M.paddingTop,py:M.paddingY,px:M.paddingX,pb:M.paddingBottom,pl:M.paddingLeft,ps:M.paddingInlineStart,paddingStart:M.paddingInlineStart,pr:M.paddingRight,pe:M.paddingInlineEnd,paddingEnd:M.paddingInlineEnd});var O={textDecorationColor:m.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:m.shadows("textShadow")},D={clipPath:!0,transform:m.propT("transform",f.transform),transformOrigin:!0,translateX:m.spaceT("--chakra-translate-x"),translateY:m.spaceT("--chakra-translate-y"),skewX:m.degreeT("--chakra-skew-x"),skewY:m.degreeT("--chakra-skew-y"),scaleX:m.prop("--chakra-scale-x"),scaleY:m.prop("--chakra-scale-y"),scale:m.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:m.degreeT("--chakra-rotate")},B={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:m.prop("transitionDuration","transition.duration"),transitionProperty:m.prop("transitionProperty","transition.property"),transitionTimingFunction:m.prop("transitionTimingFunction","transition.easing")},V={fontFamily:m.prop("fontFamily","fonts"),fontSize:m.prop("fontSize","fontSizes",f.px),fontWeight:m.prop("fontWeight","fontWeights"),lineHeight:m.prop("lineHeight","lineHeights"),letterSpacing:m.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(!0===e)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"}},I={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:m.spaceT("scrollMargin"),scrollMarginTop:m.spaceT("scrollMarginTop"),scrollMarginBottom:m.spaceT("scrollMarginBottom"),scrollMarginLeft:m.spaceT("scrollMarginLeft"),scrollMarginRight:m.spaceT("scrollMarginRight"),scrollMarginX:m.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:m.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:m.spaceT("scrollPadding"),scrollPaddingTop:m.spaceT("scrollPaddingTop"),scrollPaddingBottom:m.spaceT("scrollPaddingBottom"),scrollPaddingLeft:m.spaceT("scrollPaddingLeft"),scrollPaddingRight:m.spaceT("scrollPaddingRight"),scrollPaddingX:m.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:m.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function resolveReference(e){return(0,i.Kn)(e)&&e.reference?e.reference:String(e)}var toExpression=(e,...t)=>t.map(resolveReference).join(` ${e} `).replace(/calc/g,""),add=(...e)=>`calc(${toExpression("+",...e)})`,subtract=(...e)=>`calc(${toExpression("-",...e)})`,multiply=(...e)=>`calc(${toExpression("*",...e)})`,divide=(...e)=>`calc(${toExpression("/",...e)})`,negate=e=>{let t=resolveReference(e);return null==t||Number.isNaN(parseFloat(t))?multiply(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},F=Object.assign(e=>({add:(...t)=>F(add(e,...t)),subtract:(...t)=>F(subtract(e,...t)),multiply:(...t)=>F(multiply(e,...t)),divide:(...t)=>F(divide(e,...t)),negate:()=>F(negate(e)),toString:()=>e.toString()}),{add,subtract,multiply,divide,negate});function cssVar(e,t,n){let i=function(e,t=""){return function(e){let t=function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString());return(function(e){if(e.includes("\\."))return e;let t=!Number.isInteger(parseFloat(e.toString()));return t?e.replace(".","\\."):e})(t).replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}(`--${function(e,t=""){return[t,e].filter(Boolean).join("-")}(e,t)}`)}(e,n);return{variable:i,reference:`var(${i}${t?`, ${t}`:""})`}}function px(e){if(null==e)return e;let{unitless:t}=function(e){let t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e);return t||"number"==typeof e?`${e}px`:e}var sortByBreakpointValue=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,sortBps=e=>Object.fromEntries(Object.entries(e).sort(sortByBreakpointValue));function normalize(e){let t=sortBps(e);return Object.assign(Object.values(t),t)}function subtract2(e){var t;if(!e)return e;e=null!=(t=px(e))?t:e;let n=e.endsWith("px")?-.02:-.00125;return"number"==typeof e?`${e+n}`:e.replace(/(\d+\.?\d*)/u,e=>`${parseFloat(e)+n}`)}function toMediaQueryString(e,t){let n=["@media screen"];return e&&n.push("and",`(min-width: ${px(e)})`),t&&n.push("and",`(max-width: ${px(t)})`),n.join(" ")}var L={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}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},toGroup=e=>merge(t=>e(t,"&"),"[role=group]","[data-group]",".group"),toPeer=e=>merge(t=>e(t,"~ &"),"[data-peer]",".peer"),merge=(e,...t)=>t.map(e).join(", "),N={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:toGroup(L.hover),_peerHover:toPeer(L.hover),_groupFocus:toGroup(L.focus),_peerFocus:toPeer(L.focus),_groupFocusVisible:toGroup(L.focusVisible),_peerFocusVisible:toPeer(L.focusVisible),_groupActive:toGroup(L.active),_peerActive:toPeer(L.active),_groupDisabled:toGroup(L.disabled),_peerDisabled:toPeer(L.disabled),_groupInvalid:toGroup(L.invalid),_peerInvalid:toPeer(L.invalid),_groupChecked:toGroup(L.checked),_peerChecked:toPeer(L.checked),_groupFocusWithin:toGroup(L.focusWithin),_peerFocusWithin:toPeer(L.focusWithin),_peerPlaceholderShown:toPeer(L.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]"},$=Object.keys(N);function tokenToCssVar(e,t){return cssVar(String(e).replace(/\./g,"-"),void 0,t)}var W=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function flatten(e,t=1/0){return((0,i.Kn)(e)||Array.isArray(e))&&t?Object.entries(e).reduce((e,[n,o])=>((0,i.Kn)(o)||Array.isArray(o)?Object.entries(flatten(o,t-1)).forEach(([t,i])=>{e[`${n}.${t}`]=i}):e[n]=o,e),{}):e}function toCSSVar(e){var t;let n=function(e){let{__cssMap:t,__cssVars:n,__breakpoints:i,...o}=e;return o}(e),a=function(e,t){let n={};for(let i of t)i in e&&(n[i]=e[i]);return n}(n,W),s=n.semanticTokens,l=function({tokens:e,semanticTokens:t}){var n,i;let o=Object.entries(null!=(n=flatten(e))?n:{}).map(([e,t])=>[e,{isSemantic:!1,value:t}]),a=Object.entries(null!=(i=flatten(t,1))?i:{}).map(([e,t])=>[e,{isSemantic:!0,value:t}]);return Object.fromEntries([...o,...a])}({tokens:a,semanticTokens:s}),c=null==(t=n.config)?void 0:t.cssVarPrefix,{cssMap:u,cssVars:d}=function(e,t){let n={},a={};for(let[s,l]of Object.entries(e)){let{isSemantic:c,value:u}=l,{variable:d,reference:p}=tokenToCssVar(s,null==t?void 0:t.cssVarPrefix);if(!c){if(s.startsWith("space")){let e=s.split("."),[t,...n]=e,i=`${t}.-${n.join(".")}`,o=F.negate(u),l=F.negate(p);a[i]={value:o,var:d,varRef:l}}n[d]=u,a[s]={value:u,var:d,varRef:p};continue}let lookupToken=n=>{let i=String(s).split(".")[0],o=[i,n].join("."),a=e[o];if(!a)return n;let{reference:l}=tokenToCssVar(o,null==t?void 0:t.cssVarPrefix);return l},h=(0,i.Kn)(u)?u:{default:u};n=o(n,Object.entries(h).reduce((e,[t,n])=>{var i;let o=lookupToken(n);if("default"===t)return e[d]=o,e;let a=null!=(i=null==N?void 0:N[t])?i:t;return e[a]={[d]:o},e},{})),a[s]={value:p,var:d,varRef:p}}return{cssVars:n,cssMap:a}}(l,{cssVarPrefix:c});return Object.assign(n,{__cssVars:{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0",...d},__cssMap:u,__breakpoints:function(e){var t;if(!e)return null;e.base=null!=(t=e.base)?t:"0px";let n=normalize(e),o=Object.entries(e).sort(sortByBreakpointValue).map(([e,t],n,i)=>{var o;let[,a]=null!=(o=i[n+1])?o:[];return a=parseFloat(a)>0?subtract2(a):void 0,{_minW:subtract2(t),breakpoint:e,minW:t,maxW:a,maxWQuery:toMediaQueryString(null,a),minWQuery:toMediaQueryString(t),minMaxQuery:toMediaQueryString(t,a)}}),a=function(e){let t=Object.keys(sortBps(e));return new Set(t)}(e),s=Array.from(a.values());return{keys:a,normalized:n,isResponsive(e){let t=Object.keys(e);return t.length>0&&t.every(e=>a.has(e))},asObject:sortBps(e),asArray:normalize(e),details:o,media:[null,...n.map(e=>toMediaQueryString(e)).slice(1)],toArrayValue(e){if(!(0,i.Kn)(e))throw Error("toArrayValue: value must be an object");let t=s.map(t=>{var n;return null!=(n=e[t])?n:null});for(;null===function(e){let t=null==e?0:e.length;return t?e[t-1]:void 0}(t);)t.pop();return t},toObjectValue(e){if(!Array.isArray(e))throw Error("toObjectValue: value must be an array");return e.reduce((e,t,n)=>{let i=s[n];return null!=i&&null!=t&&(e[i]=t),e},{})}}}(n.breakpoints)}),n}var U=o({},g,v,y,S,_,x,R,w,k,{srOnly:{transform:e=>!0===e?P:"focusable"===e?E:{}},layerStyle:{processResult:!0,transform:(e,t,n)=>getWithPriority(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>getWithPriority(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>getWithPriority(t,e,n)}},j,b,M,I,V,O,D,C,B);Object.keys(Object.assign({},M,_,S,k,j));var H=[...Object.keys(U),...$],G={...U,...N},isStyleProp=e=>e in G,expandResponsive=e=>t=>{if(!t.__breakpoints)return e;let{isResponsive:n,toArrayValue:o,media:a}=t.__breakpoints,s={};for(let l in e){let c=(0,i.Pu)(e[l],t);if(null==c)continue;if(!Array.isArray(c=(0,i.Kn)(c)&&n(c)?o(c):c)){s[l]=c;continue}let u=c.slice(0,a.length).length;for(let e=0;ee.startsWith("--")&&"string"==typeof t&&!/^var\(--.+\)$/.test(t),resolveTokenValue=(e,t)=>{var n,i;if(null==t)return t;let getVar=t=>{var n,i;return null==(i=null==(n=e.__cssMap)?void 0:n[t])?void 0:i.varRef},getValue=e=>{var t;return null!=(t=getVar(e))?t:e},[o,a]=function(e){let t=[],n="",i=!1;for(let o=0;ot=>{let n=function(e){let{configs:t={},pseudos:n={},theme:a}=e,css2=(e,s=!1)=>{var l,c,u;let d=(0,i.Pu)(e,a),p=expandResponsive(d)(a),h={};for(let e in p){let f=p[e],m=(0,i.Pu)(f,a);e in n&&(e=n[e]),isCSSVariableTokenValue(e,m)&&(m=resolveTokenValue(a,m));let g=t[e];if(!0===g&&(g={property:e}),(0,i.Kn)(m)){h[e]=null!=(l=h[e])?l:{},h[e]=o({},h[e],css2(m,!0));continue}let v=null!=(u=null==(c=null==g?void 0:g.transform)?void 0:c.call(g,m,a,d))?u:m;v=(null==g?void 0:g.processResult)?css2(v,!0):v;let y=(0,i.Pu)(null==g?void 0:g.property,a);if(!s&&(null==g?void 0:g.static)){let e=(0,i.Pu)(g.static,a);h=o({},h,e)}if(y&&Array.isArray(y)){for(let e of y)h[e]=v;continue}if(y){"&"===y&&(0,i.Kn)(v)?h=o({},h,v):h[y]=v;continue}if((0,i.Kn)(v)){h=o({},h,v);continue}h[e]=v}return h};return css2}({theme:t,pseudos:N,configs:U});return n(e)};function defineStyle(e){return e}function defineStyleConfig(e){return e}function createMultiStyleConfigHelpers(e){return{definePartsStyle:e=>e,defineMultiStyleConfig:t=>({parts:e,...t})}}function resolveStyleConfig(e){return t=>{var n;let{variant:a,size:s,theme:l}=t,c=function(e){let t=e.__breakpoints;return function(e,n,a,s){var l,c,u;if(!t)return;let d={},p=(u=t.toArrayValue,Array.isArray(a)?a:(0,i.Kn)(a)?u(a):null!=a?[a]:void 0);if(!p)return d;let h=p.length,f=1===h,m=!!e.parts;for(let a=0;a{o(d,{[e]:f?v[e]:{[g]:v[e]}})});continue}if(!m){f?o(d,v):d[g]=v;continue}d[g]=v}}return d}}(l);return o({},(0,i.Pu)(null!=(n=e.baseStyle)?n:{},t),c(e,"sizes",s,t),c(e,"variants",a,t))}}function omitThemingProps(e){return function(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}(e,["styleConfig","size","variant","colorScheme"])}},3216:function(e,t,n){"use strict";n.d(t,{x:function(){return shouldForwardProp}});var i=n(3179),o=new Set([...i.cC,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),a=new Set(["htmlWidth","htmlHeight","htmlSize"]);function shouldForwardProp(e){return a.has(e)||!o.has(e)}},4629:function(e,t,n){"use strict";n.d(t,{LP:function(){return getToken},uP:function(){return useChakra}});var i=n(7323),o=n(2498);function useChakra(){let e=(0,o.If)(),t=(0,i.F)();return{...e,theme:t}}function getToken(e,t,n){let i=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return n=>{let a=o.filter(Boolean),s=i.map((t,i)=>{var o,s;if("breakpoints"===e)return function(e,t,n){var i,o;if(null==t)return t;let getValue=t=>{var n,i;return null==(i=null==(n=e.__breakpoints)?void 0:n.asArray)?void 0:i[t]};return null!=(o=null!=(i=getValue(t))?i:getValue(n))?o:n}(n,t,null!=(o=a[i])?o:t);let l=`${e}.${t}`;return function(e,t,n){var i,o;if(null==t)return t;let getValue=t=>{var n,i;return null==(i=null==(n=e.__cssMap)?void 0:n[t])?void 0:i.value};return null!=(o=null!=(i=getValue(t))?i:getValue(n))?o:n}(n,l,null!=(s=a[i])?s:t)});return Array.isArray(t)?s:s[0]}}},5523:function(e,t,n){"use strict";n.d(t,{m:function(){return h}});var i,o=n(3216),a=n(2498),s=n(3179),l=n(1759),c=n(6597),u=n(6829),d=n(7294),p=null!=(i=u.Z.default)?i:u.Z,toCSSObject=({baseStyle:e})=>t=>{let{theme:n,css:i,__css:o,sx:a,...u}=t,d=(0,l.lw)(u,(e,t)=>(0,s.ZR)(t)),p=(0,c.Pu)(e,t),h=Object.assign({},o,p,(0,l.YU)(d),a),f=(0,s.iv)(h)(t.theme);return i?[f,i]:f};function styled(e,t){let{baseStyle:n,...i}=null!=t?t:{};i.shouldForwardProp||(i.shouldForwardProp=o.x);let s=toCSSObject({baseStyle:n}),l=p(e,i)(s),c=d.forwardRef(function(e,t){let{colorMode:n,forced:i}=(0,a.If)();return d.createElement(l,{ref:t,"data-theme":i?n:void 0,...e})});return c}var h=function(){let e=new Map;return new Proxy(styled,{apply:(e,t,n)=>styled(...n),get:(t,n)=>(e.has(n)||e.set(n,styled(n)),e.get(n))})}()},7323:function(e,t,n){"use strict";n.d(t,{F:function(){return useTheme}});var i=n(1683),o=n(7294);function useTheme(){let e=(0,o.useContext)(i.T);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}},5059:function(e,t,n){"use strict";n.d(t,{G:function(){return forwardRef}});var i=n(7294);function forwardRef(e){return(0,i.forwardRef)(e)}},1639:function(e,t,n){"use strict";n.d(t,{jC:function(){return useMultiStyleConfig},mq:function(){return useStyleConfig}});var i=n(4629),o=n(3179),a=n(1759),s=n(8554),l=n(7294),c=n(9590);function useStyleConfigImpl(e,t={}){var n;let{styleConfig:u,...d}=t,{theme:p,colorMode:h}=(0,i.uP)(),f=e?(0,a.Wf)(p,`components.${e}`):void 0,m=u||f,g=s({theme:p,colorMode:h},null!=(n=null==m?void 0:m.defaultProps)?n:{},(0,a.YU)((0,a.CE)(d,["children"]))),v=(0,l.useRef)({});if(m){let e=(0,o.Ud)(m),t=e(g),n=c(v.current,t);n||(v.current=t)}return v.current}function useStyleConfig(e,t={}){return useStyleConfigImpl(e,t)}function useMultiStyleConfig(e,t={}){return useStyleConfigImpl(e,t)}},6597:function(e,t,n){"use strict";function runIfFn(e,...t){return"function"==typeof e?e(...t):e}n.d(t,{Pu:function(){return runIfFn}})},1759:function(e,t,n){"use strict";function omit(e,t){let n={};return Object.keys(e).forEach(i=>{t.includes(i)||(n[i]=e[i])}),n}n.d(t,{CE:function(){return omit},Wf:function(){return i},YU:function(){return filterUndefined},lw:function(){return objectFilter}}),n(8554);var i=(e=>{let t=new WeakMap;return(n,i,o,a)=>{if(void 0===n)return e(n,i,o);t.has(n)||t.set(n,new Map);let s=t.get(n);if(s.has(i))return s.get(i);let l=e(n,i,o,a);return s.set(i,l),l}})(function(e,t,n,i){let o="string"==typeof t?t.split("."):[t];for(i=0;i{let o=e[i],a=t(o,i,e);a&&(n[i]=o)}),n}var filterUndefined=e=>objectFilter(e,e=>null!=e)},2729:function(e,t,n){"use strict";function _tagged_template_literal(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{_:function(){return _tagged_template_literal}})},5947:function(e,t,n){"use strict";n.d(t,{hO:function(){return useIsPresent},oO:function(){return usePresence}});var i=n(7294),o=n(240);function usePresence(){let e=(0,i.useContext)(o.O);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:a}=e,s=(0,i.useId)();return(0,i.useEffect)(()=>a(s),[]),!t&&n?[!1,()=>n&&n(s)]:[!0]}function useIsPresent(){var e;return null===(e=(0,i.useContext)(o.O))||e.isPresent}},5364:function(e,t,n){"use strict";n.d(t,{p:function(){return o}});var i=n(7294);let o=(0,i.createContext)({})},6014:function(e,t,n){"use strict";n.d(t,{_:function(){return o}});var i=n(7294);let o=(0,i.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},240:function(e,t,n){"use strict";n.d(t,{O:function(){return o}});var i=n(7294);let o=(0,i.createContext)(null)},9727:function(e,t,n){"use strict";n.d(t,{Z:function(){return createRenderBatcher}});var i=n(2081);let Queue=class Queue{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){let t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}};let o=["read","resolveKeyframes","update","preRender","render","postRender"];function createRenderBatcher(e,t){let n=!1,a=!0,s={delta:0,timestamp:0,isProcessing:!1},l=o.reduce((e,t)=>(e[t]=function(e){let t=new Queue,n=new Queue,i=0,o=!1,a=!1,s=new WeakSet,l={schedule:(e,a=!1,l=!1)=>{let c=l&&o,u=c?t:n;return a&&s.add(e),u.add(e)&&c&&o&&(i=t.order.length),e},cancel:e=>{n.remove(e),s.delete(e)},process:c=>{if(o){a=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),i=t.order.length)for(let n=0;nn=!0),e),{}),processStep=e=>{l[e].process(s)},processBatch=()=>{let l=i.c.useManualTiming?s.timestamp:performance.now();n=!1,s.delta=a?1e3/60:Math.max(Math.min(l-s.timestamp,40),1),s.timestamp=l,s.isProcessing=!0,o.forEach(processStep),s.isProcessing=!1,n&&t&&(a=!1,e(processBatch))},wake=()=>{n=!0,a=!0,s.isProcessing||e(processBatch)},c=o.reduce((e,t)=>{let i=l[t];return e[t]=(e,t=!1,o=!1)=>(n||wake(),i.schedule(e,t,o)),e},{});return{schedule:c,cancel:e=>o.forEach(t=>l[t].cancel(e)),state:s,steps:l}}},6166:function(e,t,n){"use strict";n.d(t,{Pn:function(){return s},S6:function(){return c},Wi:function(){return a},frameData:function(){return l}});var i=n(1662),o=n(9727);let{schedule:a,cancel:s,state:l,steps:c}=(0,o.Z)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:i.Z,!0)},7672:function(e,t,n){"use strict";let i,o;n.d(t,{E:function(){return tj}});var a,s,l=n(5893),c=n(7294),u=n(6014);let d=(0,c.createContext)({});var p=n(240),h=n(8868);let f=(0,c.createContext)({strict:!1}),camelToDash=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),m="data-"+camelToDash("framerAppearId");var g=n(9727);let{schedule:v,cancel:y}=(0,g.Z)(queueMicrotask,!1);function isRefObject(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function isVariantLabel(e){return"string"==typeof e||Array.isArray(e)}function isAnimationControls(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}let b=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],x=["initial",...b];function isControllingVariants(e){return isAnimationControls(e.animate)||x.some(t=>isVariantLabel(e[t]))}function isVariantNode(e){return!!(isControllingVariants(e)||e.variants)}function variantLabelsAsDependency(e){return Array.isArray(e)?e.join(" "):e}let S={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"]},k={};for(let e in S)k[e]={isEnabled:t=>S[e].some(e=>!!t[e])};var w=n(1741),_=n(5364);let C=(0,c.createContext)({}),T=Symbol.for("motionComponentSymbol"),P=["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 isSVGComponent(e){if("string"!=typeof e||e.includes("-"));else if(P.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let E={},j=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],R=new Set(j);function isForcedMotionValue(e,{layout:t,layoutId:n}){return R.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!E[e]||"opacity"===e)}let isMotionValue=e=>!!(e&&e.getVelocity),M={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},O=j.length,checkStringStartsWith=e=>t=>"string"==typeof t&&t.startsWith(e),D=checkStringStartsWith("--"),B=checkStringStartsWith("var(--"),isCSSVariableToken=e=>{let t=B(e);return!!t&&V.test(e.split("/*")[0].trim())},V=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,getValueAsType=(e,t)=>t&&"number"==typeof e?t.transform(e):e,clamp=(e,t,n)=>n>t?t:n"number"==typeof e,parse:parseFloat,transform:e=>e},F={...I,transform:e=>clamp(0,1,e)},L={...I,default:1},sanitize=e=>Math.round(1e5*e)/1e5,N=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,$=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,W=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function isString(e){return"string"==typeof e}let createUnitType=e=>({test:t=>isString(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),U=createUnitType("deg"),H=createUnitType("%"),G=createUnitType("px"),q=createUnitType("vh"),K=createUnitType("vw"),X={...H,parse:e=>H.parse(e)/100,transform:e=>H.transform(100*e)},Y={...I,transform:Math.round},Z={borderWidth:G,borderTopWidth:G,borderRightWidth:G,borderBottomWidth:G,borderLeftWidth:G,borderRadius:G,radius:G,borderTopLeftRadius:G,borderTopRightRadius:G,borderBottomRightRadius:G,borderBottomLeftRadius:G,width:G,maxWidth:G,height:G,maxHeight:G,size:G,top:G,right:G,bottom:G,left:G,padding:G,paddingTop:G,paddingRight:G,paddingBottom:G,paddingLeft:G,margin:G,marginTop:G,marginRight:G,marginBottom:G,marginLeft:G,rotate:U,rotateX:U,rotateY:U,rotateZ:U,scale:L,scaleX:L,scaleY:L,scaleZ:L,skew:U,skewX:U,skewY:U,distance:G,translateX:G,translateY:G,translateZ:G,x:G,y:G,z:G,perspective:G,transformPerspective:G,opacity:F,originX:X,originY:X,originZ:G,zIndex:Y,backgroundPositionX:G,backgroundPositionY:G,fillOpacity:F,strokeOpacity:F,numOctaves:Y};function buildHTMLStyles(e,t,n,i){let{style:o,vars:a,transform:s,transformOrigin:l}=e,c=!1,u=!1,d=!0;for(let e in t){let n=t[e];if(D(e)){a[e]=n;continue}let i=Z[e],p=getValueAsType(n,i);if(R.has(e)){if(c=!0,s[e]=p,!d)continue;n!==(i.default||0)&&(d=!1)}else e.startsWith("origin")?(u=!0,l[e]=p):o[e]=p}if(!t.transform&&(c||i?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},i,o){let a="";for(let t=0;t({style:{},transform:{},transformOrigin:{},vars:{}});function copyRawValuesOnly(e,t,n){for(let i in t)isMotionValue(t[i])||isForcedMotionValue(i,n)||(e[i]=t[i])}function useHTMLProps(e,t,n){let i={},o=function(e,t,n){let i=e.style||{},o={};return copyRawValuesOnly(o,i,e),Object.assign(o,function({transformTemplate:e},t,n){return(0,c.useMemo)(()=>{let i=createHtmlRenderState();return buildHTMLStyles(i,t,{enableHardwareAcceleration:!n},e),Object.assign({},i.vars,i.style)},[t])}(e,t,n)),o}(e,t,n);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=o,i}let J=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function isValidMotionProp(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||J.has(e)}let shouldForward=e=>!isValidMotionProp(e);try{(a=require("@emotion/is-prop-valid").default)&&(shouldForward=e=>e.startsWith("on")?!isValidMotionProp(e):a(e))}catch(e){}function calcOrigin(e,t,n){return"string"==typeof e?e:G.transform(t+n*e)}let Q={offset:"stroke-dashoffset",array:"stroke-dasharray"},ee={offset:"strokeDashoffset",array:"strokeDasharray"};function buildSVGAttrs(e,{attrX:t,attrY:n,attrScale:i,originX:o,originY:a,pathLength:s,pathSpacing:l=1,pathOffset:c=0,...u},d,p,h){if(buildHTMLStyles(e,u,d,h),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:f,style:m,dimensions:g}=e;f.transform&&(g&&(m.transform=f.transform),delete f.transform),g&&(void 0!==o||void 0!==a||m.transform)&&(m.transformOrigin=function(e,t,n){let i=calcOrigin(t,e.x,e.width),o=calcOrigin(n,e.y,e.height);return`${i} ${o}`}(g,void 0!==o?o:.5,void 0!==a?a:.5)),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==i&&(f.scale=i),void 0!==s&&function(e,t,n=1,i=0,o=!0){e.pathLength=1;let a=o?Q:ee;e[a.offset]=G.transform(-i);let s=G.transform(t),l=G.transform(n);e[a.array]=`${s} ${l}`}(f,s,l,c,!1)}let createSvgRenderState=()=>({...createHtmlRenderState(),attrs:{}}),isSVGTag=e=>"string"==typeof e&&"svg"===e.toLowerCase();function useSVGProps(e,t,n,i){let o=(0,c.useMemo)(()=>{let n=createSvgRenderState();return buildSVGAttrs(n,t,{enableHardwareAcceleration:!1},isSVGTag(i),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};copyRawValuesOnly(t,e.style,e),o.style={...t,...o.style}}return o}function renderHTML(e,{style:t,vars:n},i,o){for(let a in Object.assign(e.style,t,o&&o.getProjectionStyles(i)),n)e.style.setProperty(a,n[a])}let et=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 renderSVG(e,t,n,i){for(let n in renderHTML(e,t,void 0,i),t.attrs)e.setAttribute(et.has(n)?n:camelToDash(n),t.attrs[n])}function scrapeMotionValuesFromProps(e,t,n){var i;let{style:o}=e,a={};for(let s in o)(isMotionValue(o[s])||t.style&&isMotionValue(t.style[s])||isForcedMotionValue(s,e)||(null===(i=null==n?void 0:n.getValue(s))||void 0===i?void 0:i.liveStyle)!==void 0)&&(a[s]=o[s]);return a}function scrape_motion_values_scrapeMotionValuesFromProps(e,t,n){let i=scrapeMotionValuesFromProps(e,t,n);for(let n in e)if(isMotionValue(e[n])||isMotionValue(t[n])){let t=-1!==j.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;i[t]=e[n]}return i}function resolveVariantFromProps(e,t,n,i={},o={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,i,o)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,i,o)),t}var er=n(6681);let isKeyframesTarget=e=>Array.isArray(e),isCustomValue=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),resolveFinalValueInKeyframes=e=>isKeyframesTarget(e)?e[e.length-1]||0:e;function resolveMotionValue(e){let t=isMotionValue(e)?e.get():e;return isCustomValue(t)?t.toValue():t}let makeUseVisualState=e=>(t,n)=>{let i=(0,c.useContext)(d),o=(0,c.useContext)(p.O),make=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},i,o,a){let s={latestValues:function(e,t,n,i){let o={},a=i(e,{});for(let e in a)o[e]=resolveMotionValue(a[e]);let{initial:s,animate:l}=e,c=isControllingVariants(e),u=isVariantNode(e);t&&u&&!c&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===l&&(l=t.animate));let d=!!n&&!1===n.initial;d=d||!1===s;let p=d?l:s;if(p&&"boolean"!=typeof p&&!isAnimationControls(p)){let t=Array.isArray(p)?p:[p];t.forEach(t=>{let n=resolveVariantFromProps(e,t);if(!n)return;let{transitionEnd:i,transition:a,...s}=n;for(let e in s){let t=s[e];if(Array.isArray(t)){let e=d?t.length-1:0;t=t[e]}null!==t&&(o[e]=t)}for(let e in i)o[e]=i[e]})}return o}(i,o,a,e),renderState:t()};return n&&(s.mount=e=>n(i,e,s)),s})(e,t,i,o);return n?make():(0,er.h)(make)};var en=n(6166);let ei={useVisualState:makeUseVisualState({scrapeMotionValuesFromProps:scrape_motion_values_scrapeMotionValuesFromProps,createRenderState:createSvgRenderState,onMount:(e,t,{renderState:n,latestValues:i})=>{en.Wi.read(()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}}),en.Wi.render(()=>{buildSVGAttrs(n,i,{enableHardwareAcceleration:!1},isSVGTag(t.tagName),e.transformTemplate),renderSVG(t,n)})}})},eo={useVisualState:makeUseVisualState({scrapeMotionValuesFromProps:scrapeMotionValuesFromProps,createRenderState:createHtmlRenderState})};function addDomEvent(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}let isPrimaryPointer=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function extractEventInfo(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}let addPointerInfo=e=>t=>isPrimaryPointer(t)&&e(t,extractEventInfo(t));function addPointerEvent(e,t,n,i){return addDomEvent(e,t,addPointerInfo(n),i)}let combineFunctions=(e,t)=>n=>t(e(n)),pipe=(...e)=>e.reduce(combineFunctions);function createLock(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let ea=createLock("dragHorizontal"),es=createLock("dragVertical");function getGlobalLock(e){let t=!1;if("y"===e)t=es();else if("x"===e)t=ea();else{let e=ea(),n=es();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function isDragActive(){let e=getGlobalLock(!0);return!e||(e(),!1)}let Feature=class Feature{constructor(e){this.isMounted=!1,this.node=e}update(){}};function addHoverEvent(e,t){let n=t?"pointerenter":"pointerleave",i=t?"onHoverStart":"onHoverEnd";return addPointerEvent(e.current,n,(n,o)=>{if("touch"===n.pointerType||isDragActive())return;let a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);let s=a[i];s&&en.Wi.postRender(()=>s(n,o))},{passive:!e.getProps()[i]})}let isNodeOrChild=(e,t)=>!!t&&(e===t||isNodeOrChild(e,t.parentElement));var el=n(1662);function fireSyntheticPointerEvent(e,t){if(!t)return;let n=new PointerEvent("pointer"+e);t(n,extractEventInfo(n))}let ec=new WeakMap,eu=new WeakMap,fireObserverCallback=e=>{let t=ec.get(e.target);t&&t(e)},fireAllObserverCallbacks=e=>{e.forEach(fireObserverCallback)},ed={some:0,all:1};function shallowCompare(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let i=0;it[n]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}let secondsToMilliseconds=e=>1e3*e,millisecondsToSeconds=e=>e/1e3,ep={type:"spring",stiffness:500,damping:25,restSpeed:10},criticallyDampedSpring=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),eh={type:"keyframes",duration:.8},ef={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},getDefaultTransition=(e,{keyframes:t})=>t.length>2?eh:R.has(e)?e.startsWith("scale")?criticallyDampedSpring(t[1]):ep:ef;function getValueTransition(e,t){return e[t]||e.default||e}var em=n(2081);let eg={current:!1},isNotNull=e=>null!==e;function getFinalKeyframe(e,{repeat:t,repeatType:n="loop"},i){let o=e.filter(isNotNull),a=t&&"loop"!==n&&t%2==1?0:o.length-1;return a&&void 0!==i?i:o[a]}function clearTime(){i=void 0}let ev={now:()=>(void 0===i&&ev.set(en.frameData.isProcessing||em.c.useManualTiming?en.frameData.timestamp:performance.now()),i),set:e=>{i=e,queueMicrotask(clearTime)}},isZeroValueString=e=>/^0[^.\s]+$/u.test(e);var ey=n(5487);let isNumericalString=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),eb=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ex=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),isNumOrPxType=e=>e===I||e===G,getPosFromMatrix=(e,t)=>parseFloat(e.split(", ")[t]),getTranslateFromMatrix=(e,t)=>(n,{transform:i})=>{if("none"===i||!i)return 0;let o=i.match(/^matrix3d\((.+)\)$/u);if(o)return getPosFromMatrix(o[1],t);{let t=i.match(/^matrix\((.+)\)$/u);return t?getPosFromMatrix(t[1],e):0}},eS=new Set(["x","y","z"]),ek=j.filter(e=>!eS.has(e)),ew={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),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:getTranslateFromMatrix(4,13),y:getTranslateFromMatrix(5,14)};ew.translateX=ew.x,ew.translateY=ew.y;let testValueType=e=>t=>t.test(e),e_=[I,G,H,U,K,q,{test:e=>"auto"===e,parse:e=>e}],findDimensionValueType=e=>e_.find(testValueType(e)),eC=new Set,eT=!1,eP=!1;function measureAllKeyframes(){if(eP){let e=Array.from(eC).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=function(e){let t=[];return ek.forEach(n=>{let i=e.getValue(n);void 0!==i&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{var i;null===(i=e.getValue(t))||void 0===i||i.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}eP=!1,eT=!1,eC.forEach(e=>e.complete()),eC.clear()}function readAllKeyframes(){eC.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eP=!0)})}let KeyframeResolver=class KeyframeResolver{constructor(e,t,n,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(eC.add(this),eT||(eT=!0,en.Wi.read(readAllKeyframes),en.Wi.resolveKeyframes(measureAllKeyframes))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:i}=this;for(let o=0;on=>!!(isString(n)&&W.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),splitColor=(e,t,n)=>i=>{if(!isString(i))return i;let[o,a,s,l]=i.match(N);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(s),alpha:void 0!==l?parseFloat(l):1}},clampRgbUnit=e=>clamp(0,255,e),eA={...I,transform:e=>Math.round(clampRgbUnit(e))},eE={test:isColorString("rgb","red"),parse:splitColor("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+eA.transform(e)+", "+eA.transform(t)+", "+eA.transform(n)+", "+sanitize(F.transform(i))+")"},ej={test:isColorString("#"),parse:function(e){let t="",n="",i="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,i+=i,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}},transform:eE.transform},eR={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+H.transform(sanitize(t))+", "+H.transform(sanitize(n))+", "+sanitize(F.transform(i))+")"},eM={test:e=>eE.test(e)||ej.test(e)||eR.test(e),parse:e=>eE.test(e)?eE.parse(e):eR.test(e)?eR.parse(e):ej.parse(e),transform:e=>isString(e)?e:e.hasOwnProperty("red")?eE.transform(e):eR.transform(e)},eO="number",eD="color",eB=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function analyseComplexValue(e){let t=e.toString(),n=[],i={color:[],number:[],var:[]},o=[],a=0,s=t.replace(eB,e=>(eM.test(e)?(i.color.push(a),o.push(eD),n.push(eM.parse(e))):e.startsWith("var(")?(i.var.push(a),o.push("var"),n.push(e)):(i.number.push(a),o.push(eO),n.push(parseFloat(e))),++a,"${}")),l=s.split("${}");return{values:n,split:l,indexes:i,types:o}}function parseComplexValue(e){return analyseComplexValue(e).values}function createTransformer(e){let{split:t,types:n}=analyseComplexValue(e),i=t.length;return e=>{let o="";for(let a=0;a"number"==typeof e?0:e,eV={test:function(e){var t,n;return isNaN(e)&&isString(e)&&((null===(t=e.match(N))||void 0===t?void 0:t.length)||0)+((null===(n=e.match($))||void 0===n?void 0:n.length)||0)>0},parse:parseComplexValue,createTransformer,getAnimatableNone:function(e){let t=parseComplexValue(e),n=createTransformer(e);return n(t.map(convertNumbersToZero))}},ez=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[i]=n.match(N)||[];if(!i)return e;let o=n.replace(i,""),a=ez.has(t)?1:0;return i!==n&&(a*=100),t+"("+a+o+")"}let eI=/\b([a-z-]*)\(.*?\)/gu,eF={...eV,getAnimatableNone:e=>{let t=e.match(eI);return t?t.map(applyDefaultFilter).join(" "):e}},eL={...Z,color:eM,backgroundColor:eM,outlineColor:eM,fill:eM,stroke:eM,borderColor:eM,borderTopColor:eM,borderRightColor:eM,borderBottomColor:eM,borderLeftColor:eM,filter:eF,WebkitFilter:eF},getDefaultValueType=e=>eL[e];function animatable_none_getAnimatableNone(e,t){let n=getDefaultValueType(e);return n!==eF&&(n=eV),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let eN=new Set(["auto","none","0"]);let DOMKeyframesResolver=class DOMKeyframesResolver extends KeyframeResolver{constructor(e,t,n,i){super(e,t,n,i,null==i?void 0:i.owner,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t.current)return;super.readKeyframes();for(let n=0;n{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}};let isAnimatable=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eV.test(e)||"0"===e)&&!e.startsWith("url("));let BaseAnimation=class BaseAnimation{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:e,delay:t,type:n,repeat:i,repeatDelay:o,repeatType:a,...s},this.updateFinishedPromise()}get resolved(){return this._resolved||this.hasAttemptedResolve||(readAllKeyframes(),measureAllKeyframes()),this._resolved}onKeyframesResolved(e,t){this.hasAttemptedResolve=!0;let{name:n,type:i,velocity:o,delay:a,onComplete:s,onUpdate:l,isGenerator:c}=this.options;if(!c&&!function(e,t,n,i){let o=e[0];if(null===o)return!1;let a=e[e.length-1],s=isAnimatable(o,t),l=isAnimatable(a,t);return(0,ey.K)(s===l,`You are trying to animate ${t} from "${o}" to "${a}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${a} via the \`style\` property.`),!!s&&!!l&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n{this.resolveFinishedPromise=e})}};function calcGeneratorVelocity(e,t,n){var i,o;let a=Math.max(t-5,0);return i=n-e(a),(o=t-a)?i*(1e3/o):0}function calcAngularFreq(e,t){return e*Math.sqrt(1-t*t)}let e$=["duration","bounce"],eW=["stiffness","damping","mass"];function isSpringType(e,t){return t.some(t=>void 0!==e[t])}function spring({keyframes:e,restDelta:t,restSpeed:n,...i}){let o;let a=e[0],s=e[e.length-1],l={done:!1,value:a},{stiffness:c,damping:u,mass:d,duration:p,velocity:h,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!isSpringType(e,eW)&&isSpringType(e,e$)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:i=1}){let o,a;(0,ey.K)(e<=secondsToMilliseconds(10),"Spring duration must be 10 seconds or less");let s=1-t;s=clamp(.05,1,s),e=clamp(.01,10,millisecondsToSeconds(e)),s<1?(o=t=>{let i=t*s,o=i*e,a=calcAngularFreq(t,s);return .001-(i-n)/a*Math.exp(-o)},a=t=>{let i=t*s,a=i*e,l=Math.pow(s,2)*Math.pow(t,2)*e,c=calcAngularFreq(Math.pow(t,2),s),u=-o(t)+.001>0?-1:1;return u*((a*n+n-l)*Math.exp(-a))/c}):(o=t=>{let i=Math.exp(-t*e),o=(t-n)*e+1;return -.001+i*o},a=t=>{let i=Math.exp(-t*e),o=(n-t)*(e*e);return i*o});let l=5/e,c=function(e,t,n){let i=n;for(let n=1;n<12;n++)i-=e(i)/t(i);return i}(o,a,l);if(e=secondsToMilliseconds(e),isNaN(c))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(c,2)*i;return{stiffness:t,damping:2*s*Math.sqrt(i*t),duration:e}}}(e);(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...i,velocity:-millisecondsToSeconds(i.velocity||0)}),m=h||0,g=u/(2*Math.sqrt(c*d)),v=s-a,y=millisecondsToSeconds(Math.sqrt(c/d)),b=5>Math.abs(v);if(n||(n=b?.01:2),t||(t=b?.005:.5),g<1){let e=calcAngularFreq(y,g);o=t=>{let n=Math.exp(-g*y*t);return s-n*((m+g*y*v)/e*Math.sin(e*t)+v*Math.cos(e*t))}}else if(1===g)o=e=>s-Math.exp(-y*e)*(v+(m+y*v)*e);else{let e=y*Math.sqrt(g*g-1);o=t=>{let n=Math.exp(-g*y*t),i=Math.min(e*t,300);return s-n*((m+g*y*v)*Math.sinh(i)+e*v*Math.cosh(i))/e}}return{calculatedDuration:f&&p||null,next:e=>{let i=o(e);if(f)l.done=e>=p;else{let a=m;0!==e&&(a=g<1?calcGeneratorVelocity(o,e,i):0);let c=Math.abs(a)<=n,u=Math.abs(s-i)<=t;l.done=c&&u}return l.value=l.done?s:i,l}}}function inertia({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:s,min:l,max:c,restDelta:u=.5,restSpeed:d}){let p,h;let f=e[0],m={done:!1,value:f},isOutOfBounds=e=>void 0!==l&&ec,nearestBoundary=e=>void 0===l?c:void 0===c?l:Math.abs(l-e)-g*Math.exp(-e/i),calcLatest=e=>y+calcDelta(e),applyFriction=e=>{let t=calcDelta(e),n=calcLatest(e);m.done=Math.abs(t)<=u,m.value=m.done?y:n},checkCatchBoundary=e=>{isOutOfBounds(m.value)&&(p=e,h=spring({keyframes:[m.value,nearestBoundary(m.value)],velocity:calcGeneratorVelocity(calcLatest,e,m.value),damping:o,stiffness:a,restDelta:u,restSpeed:d}))};return checkCatchBoundary(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==p||(t=!0,applyFriction(e),checkCatchBoundary(e)),void 0!==p&&e>=p)?h.next(e-p):(t||applyFriction(e),m)}}}let calcBezier=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function cubicBezier(e,t,n,i){if(e===t&&n===i)return el.Z;let getTForX=t=>(function(e,t,n,i,o){let a,s;let l=0;do(a=calcBezier(s=t+(n-t)/2,i,o)-e)>0?n=s:t=s;while(Math.abs(a)>1e-7&&++l<12);return s})(t,0,1,e,n);return e=>0===e||1===e?e:calcBezier(getTForX(e),t,i)}let eU=cubicBezier(.42,0,1,1),eH=cubicBezier(0,0,.58,1),eG=cubicBezier(.42,0,.58,1),isEasingArray=e=>Array.isArray(e)&&"number"!=typeof e[0],mirrorEasing=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,reverseEasing=e=>t=>1-e(1-t),circIn=e=>1-Math.sin(Math.acos(e)),eK=reverseEasing(circIn),eX=mirrorEasing(circIn),eY=cubicBezier(.33,1.53,.69,.99),eZ=reverseEasing(eY),eJ=mirrorEasing(eZ),eQ={linear:el.Z,easeIn:eU,easeInOut:eG,easeOut:eH,circIn:circIn,circInOut:eX,circOut:eK,backIn:eZ,backInOut:eJ,backOut:eY,anticipate:e=>(e*=2)<1?.5*eZ(e):.5*(2-Math.pow(2,-10*(e-1)))},easingDefinitionToFunction=e=>{if(Array.isArray(e)){(0,ey.k)(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,i,o]=e;return cubicBezier(t,n,i,o)}return"string"==typeof e?((0,ey.k)(void 0!==eQ[e],`Invalid easing type '${e}'`),eQ[e]):e},progress=(e,t,n)=>{let i=t-e;return 0===i?1:(n-e)/i},mixNumber=(e,t,n)=>e+(t-e)*n;function hueToRgb(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}let mixLinearColor=(e,t,n)=>{let i=e*e,o=n*(t*t-i)+i;return o<0?0:Math.sqrt(o)},e0=[ej,eE,eR],getColorType=e=>e0.find(t=>t.test(e));function asRGBA(e){let t=getColorType(e);(0,ey.k)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===eR&&(n=function({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,n/=100;let o=0,a=0,s=0;if(t/=100){let i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;o=hueToRgb(l,i,e+1/3),a=hueToRgb(l,i,e),s=hueToRgb(l,i,e-1/3)}else o=a=s=n;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*s),alpha:i}}(n)),n}let mixColor=(e,t)=>{let n=asRGBA(e),i=asRGBA(t),o={...n};return e=>(o.red=mixLinearColor(n.red,i.red,e),o.green=mixLinearColor(n.green,i.green,e),o.blue=mixLinearColor(n.blue,i.blue,e),o.alpha=mixNumber(n.alpha,i.alpha,e),eE.transform(o))};function mixImmediate(e,t){return n=>n>0?t:e}function complex_mixNumber(e,t){return n=>mixNumber(e,t,n)}function getMixer(e){return"number"==typeof e?complex_mixNumber:"string"==typeof e?isCSSVariableToken(e)?mixImmediate:eM.test(e)?mixColor:mixComplex:Array.isArray(e)?mixArray:"object"==typeof e?eM.test(e)?mixColor:mixObject:mixImmediate}function mixArray(e,t){let n=[...e],i=n.length,o=e.map((e,n)=>getMixer(e)(e,t[n]));return e=>{for(let t=0;t{for(let t in i)n[t]=i[t](e);return n}}let mixComplex=(e,t)=>{let n=eV.createTransformer(t),i=analyseComplexValue(e),o=analyseComplexValue(t),a=i.indexes.var.length===o.indexes.var.length&&i.indexes.color.length===o.indexes.color.length&&i.indexes.number.length>=o.indexes.number.length;return a?pipe(mixArray(function(e,t){var n;let i=[],o={color:0,var:0,number:0};for(let a=0;at*e),l=function(e,t,{clamp:n=!0,ease:i,mixer:o}={}){let a=e.length;if((0,ey.k)(a===t.length,"Both input and output ranges must be the same length"),1===a)return()=>t[0];if(2===a&&e[0]===e[1])return()=>t[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,n){let i=[],o=n||mix,a=e.length-1;for(let n=0;n{let n=0;if(l>1)for(;ninterpolator(clamp(e[0],e[a-1],t)):interpolator}(s,t,{ease:Array.isArray(o)?o:t.map(()=>o||eG).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(a.value=l(t),a.done=t>=e,a)}}let frameloopDriver=e=>{let passTimestamp=({timestamp:t})=>e(t);return{start:()=>en.Wi.update(passTimestamp,!0),stop:()=>(0,en.Pn)(passTimestamp),now:()=>en.frameData.isProcessing?en.frameData.timestamp:ev.now()}},e1={decay:inertia,inertia:inertia,tween:keyframes,keyframes:keyframes,spring:spring},percentToProgress=e=>e/100;let MainThreadAnimation=class MainThreadAnimation extends BaseAnimation{constructor({KeyframeResolver:e=KeyframeResolver,...t}){super(t),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:e}=this.options;e&&e()};let{name:n,motionValue:i,keyframes:o}=this.options,onResolved=(e,t)=>this.onKeyframesResolved(e,t);n&&i&&i.owner?this.resolver=i.owner.resolveKeyframes(o,onResolved,n,i):this.resolver=new e(o,onResolved,n,i),this.resolver.scheduleResolve()}initPlayback(e){let t,n;let{type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:s,velocity:l=0}=this.options,c=e1[i]||keyframes;c!==keyframes&&"number"!=typeof e[0]&&(t=pipe(percentToProgress,mix(e[0],e[1])),e=[0,100]);let u=c({...this.options,keyframes:e});"mirror"===s&&(n=c({...this.options,keyframes:[...e].reverse(),velocity:-l})),null===u.calculatedDuration&&(u.calculatedDuration=function(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}(u));let{calculatedDuration:d}=u,p=d+a;return{generator:u,mirroredGenerator:n,mapPercentToKeyframes:t,calculatedDuration:d,resolvedDuration:p,totalDuration:p*(o+1)-a}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){let{resolved:n}=this;if(!n){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:s,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:d}=n;if(null===this.startTime)return o.next(0);let{delay:p,repeat:h,repeatType:f,repeatDelay:m,onUpdate:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let v=this.currentTime-p*(this.speed>=0?1:-1),y=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let b=this.currentTime,x=o;if(h){let e=Math.min(this.currentTime,u)/d,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,h+1);let i=!!(t%2);i&&("reverse"===f?(n=1-n,m&&(n-=m/d)):"mirror"===f&&(x=a)),b=clamp(0,1,n)*d}let S=y?{done:!1,value:l[0]}:x.next(b);s&&(S.value=s(S.value));let{done:k}=S;y||null===c||(k=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&k);return w&&void 0!==i&&(S.value=getFinalKeyframe(l,this.options,i)),g&&g(S.value),w&&this.finish(),S}get duration(){let{resolved:e}=this;return e?millisecondsToSeconds(e.calculatedDuration):0}get time(){return millisecondsToSeconds(this.currentTime)}set time(e){e=secondsToMilliseconds(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=millisecondsToSeconds(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=frameloopDriver,onPlay:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime&&"finished"!==this.state||(this.startTime=n),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}};let isBezierDefinition=e=>Array.isArray(e)&&"number"==typeof e[0],cubicBezierAsString=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,e2={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cubicBezierAsString([0,.65,.55,1]),circOut:cubicBezierAsString([.55,0,1,.45]),backIn:cubicBezierAsString([.31,.01,.66,-.59]),backOut:cubicBezierAsString([.33,1.53,.69,.99])};function mapEasingToNativeEasingWithDefault(e){return mapEasingToNativeEasing(e)||e2.easeOut}function mapEasingToNativeEasing(e){if(e)return isBezierDefinition(e)?cubicBezierAsString(e):Array.isArray(e)?e.map(mapEasingToNativeEasingWithDefault):e2[e]}let e5=(s=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===o&&(o=s()),o)),e4=new Set(["opacity","clipPath","filter","transform"]);let AcceleratedAnimation=class AcceleratedAnimation extends BaseAnimation{constructor(e){super(e);let{name:t,motionValue:n,keyframes:i}=this.options;this.resolver=new DOMKeyframesResolver(i,(e,t)=>this.onKeyframesResolved(e,t),t,n),this.resolver.scheduleResolve()}initPlayback(e,t){var n,i;let{duration:o=300,times:a,ease:s,type:l,motionValue:c,name:u}=this.options;if(!(null===(n=c.owner)||void 0===n?void 0:n.current))return!1;if("spring"===(i=this.options).type||"backgroundColor"===i.name||!function isWaapiSupportedEasing(e){return!!(!e||"string"==typeof e&&e in e2||isBezierDefinition(e)||Array.isArray(e)&&e.every(isWaapiSupportedEasing))}(i.ease)){let{onComplete:t,onUpdate:n,motionValue:i,...c}=this.options,u=function(e,t){let n=new MainThreadAnimation({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),i={done:!1,value:e[0]},o=[],a=0;for(;!i.done&&a<2e4;)o.push((i=n.sample(a)).value),a+=10;return{times:void 0,keyframes:o,duration:a-10,ease:"linear"}}(e,c);1===(e=u.keyframes).length&&(e[1]=e[0]),o=u.duration,a=u.times,s=u.ease,l="keyframes"}let d=function(e,t,n,{delay:i=0,duration:o=300,repeat:a=0,repeatType:s="loop",ease:l,times:c}={}){let u={[t]:n};c&&(u.offset=c);let d=mapEasingToNativeEasing(l);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:i,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:"reverse"===s?"alternate":"normal"})}(c.owner.current,u,e,{...this.options,duration:o,times:a,ease:s});return d.startTime=ev.now(),this.pendingTimeline?(d.timeline=this.pendingTimeline,this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:n}=this.options;c.set(getFinalKeyframe(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:o,times:a,type:l,ease:s,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return millisecondsToSeconds(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return millisecondsToSeconds(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.currentTime=secondsToMilliseconds(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}attachTimeline(e){if(this._resolved){let{resolved:t}=this;if(!t)return el.Z;let{animation:n}=t;n.timeline=e,n.onfinish=null}else this.pendingTimeline=e;return el.Z}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:n,duration:i,type:o,ease:a,times:s}=e;if("idle"!==t.playState&&"finished"!==t.playState){if(this.time){let{motionValue:e,onUpdate:t,onComplete:l,...c}=this.options,u=new MainThreadAnimation({...c,keyframes:n,duration:i,type:o,ease:a,times:s,isGenerator:!0}),d=secondsToMilliseconds(this.time);e.setWithVelocity(u.sample(d-10).value,u.sample(d).value,10)}this.cancel()}}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:n,repeatDelay:i,repeatType:o,damping:a,type:s}=e;return e5()&&n&&e4.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!i&&"mirror"!==o&&0!==a&&"inertia"!==s}};let animateMotionValue=(e,t,n,i={},o,a)=>s=>{let l=getValueTransition(i,e)||{},c=l.delay||i.delay||0,{elapsed:u=0}=i;u-=secondsToMilliseconds(c);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{s(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:a?void 0:o};!function({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:o,repeat:a,repeatType:s,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}(l)&&(d={...d,...getDefaultTransition(e,d)}),d.duration&&(d.duration=secondsToMilliseconds(d.duration)),d.repeatDelay&&(d.repeatDelay=secondsToMilliseconds(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let p=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(d.duration=0,0!==d.delay||(p=!0)),(eg.current||em.c.skipAnimations)&&(p=!0,d.duration=0,d.delay=0),p&&!a&&void 0!==t.get()){let e=getFinalKeyframe(d.keyframes,l);if(void 0!==e){en.Wi.update(()=>{d.onUpdate(e),d.onComplete()});return}}return!a&&AcceleratedAnimation.supports(d)?new AcceleratedAnimation(d):new MainThreadAnimation(d)};function isWillChangeMotionValue(e){return!!(isMotionValue(e)&&e.add)}function addUniqueItem(e,t){-1===e.indexOf(t)&&e.push(t)}function removeItem(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}let SubscriptionManager=class SubscriptionManager{constructor(){this.subscriptions=[]}add(e){return addUniqueItem(this.subscriptions,e),()=>removeItem(this.subscriptions,e)}notify(e,t,n){let i=this.subscriptions.length;if(i){if(1===i)this.subscriptions[0](e,t,n);else for(let o=0;o!isNaN(parseFloat(e)),e3={current:void 0};let MotionValue=class MotionValue{constructor(e,t={}){this.version="11.1.9",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{let n=ev.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.canTrackVelocity=isFloat(this.current),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=ev.now()}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new SubscriptionManager);let n=this.events[e].add(t);return"change"===e?()=>{n(),en.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return e3.current&&e3.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=ev.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?e*(1e3/n):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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 motionValue(e,t){return new MotionValue(e,t)}function animateTarget(e,t,{delay:n=0,transitionOverride:i,type:o}={}){var a;let{transition:s=e.getDefaultTransition(),transitionEnd:l,...c}=t,u=e.getValue("willChange");i&&(s=i);let d=[],p=o&&e.animationState&&e.animationState.getState()[o];for(let t in c){let i=e.getValue(t,null!==(a=e.latestValues[t])&&void 0!==a?a:null),o=c[t];if(void 0===o||p&&function({protectedKeys:e,needsAnimating:t},n){let i=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,i}(p,t))continue;let l={delay:n,elapsed:0,...getValueTransition(s||{},t)},h=!1;if(window.HandoffAppearAnimations){let n=e.getProps(),i=n[m];if(i){let e=window.HandoffAppearAnimations(i,t);null!==e&&(l.elapsed=e,h=!0)}}i.start(animateMotionValue(t,i,o,e.shouldReduceMotion&&R.has(t)?{type:!1}:l,e,h));let f=i.animation;f&&(isWillChangeMotionValue(u)&&(u.add(t),f.then(()=>u.remove(t))),d.push(f))}return l&&Promise.all(d).then(()=>{en.Wi.update(()=>{l&&function(e,t){let n=resolveVariant(e,t),{transitionEnd:i={},transition:o={},...a}=n||{};for(let t in a={...a,...i}){let n=resolveFinalValueInKeyframes(a[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,motionValue(n))}}(e,l)})}),d}function animateVariant(e,t,n={}){var i;let o=resolveVariant(e,t,"exit"===n.type?null===(i=e.presenceContext)||void 0===i?void 0:i.custom:void 0),{transition:a=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(a=n.transitionOverride);let s=o?()=>Promise.all(animateTarget(e,o,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(i=0)=>{let{delayChildren:o=0,staggerChildren:s,staggerDirection:l}=a;return function(e,t,n=0,i=0,o=1,a){let s=[],l=(e.variantChildren.size-1)*i,c=1===o?(e=0)=>e*i:(e=0)=>l-e*i;return Array.from(e.variantChildren).sort(sortByTreeOrder).forEach((e,i)=>{e.notify("AnimationStart",t),s.push(animateVariant(e,t,{...a,delay:n+c(i)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,o+i,s,l,n)}:()=>Promise.resolve(),{when:c}=a;if(!c)return Promise.all([s(),l(n.delay)]);{let[e,t]="beforeChildren"===c?[s,l]:[l,s];return e().then(()=>t())}}function sortByTreeOrder(e,t){return e.sortNodePosition(t)}let e6=[...b].reverse(),e9=b.length;function createTypeState(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let e7=0,distance=(e,t)=>Math.abs(e-t);let PanSession=class PanSession{constructor(e,t,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=getPanInfo(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){let n=distance(e.x,t.x),i=distance(e.y,t.y);return Math.sqrt(n**2+i**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:i}=e,{timestamp:o}=en.frameData;this.history.push({...i,timestamp:o});let{onStart:a,onMove:s}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=transformPoint(t,this.transformPagePoint),en.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:i,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=getPanInfo("pointercancel"===e.type?this.lastMoveEventInfo:transformPoint(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),i&&i(e,a)},!isPrimaryPointer(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.contextWindow=i||window;let a=extractEventInfo(e),s=transformPoint(a,this.transformPagePoint),{point:l}=s,{timestamp:c}=en.frameData;this.history=[{...l,timestamp:c}];let{onSessionStart:u}=t;u&&u(e,getPanInfo(s,this.history)),this.removeListeners=pipe(addPointerEvent(this.contextWindow,"pointermove",this.handlePointerMove),addPointerEvent(this.contextWindow,"pointerup",this.handlePointerUp),addPointerEvent(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,en.Pn)(this.updatePoint)}};function transformPoint(e,t){return t?{point:t(e.point)}:e}function subtractPoint(e,t){return{x:e.x-t.x,y:e.y-t.y}}function getPanInfo({point:e},t){return{point:e,delta:subtractPoint(e,lastDevicePoint(t)),offset:subtractPoint(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null,o=lastDevicePoint(e);for(;n>=0&&(i=e[n],!(o.timestamp-i.timestamp>secondsToMilliseconds(.1)));)n--;if(!i)return{x:0,y:0};let a=millisecondsToSeconds(o.timestamp-i.timestamp);if(0===a)return{x:0,y:0};let s={x:(o.x-i.x)/a,y:(o.y-i.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t,0)}}function lastDevicePoint(e){return e[e.length-1]}function calcLength(e){return e.max-e.min}function isNear(e,t=0,n=.01){return Math.abs(e-t)<=n}function calcAxisDelta(e,t,n,i=.5){e.origin=i,e.originPoint=mixNumber(t.min,t.max,e.origin),e.scale=calcLength(n)/calcLength(t),(isNear(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=mixNumber(n.min,n.max,e.origin)-e.originPoint,(isNear(e.translate)||isNaN(e.translate))&&(e.translate=0)}function calcBoxDelta(e,t,n,i){calcAxisDelta(e.x,t.x,n.x,i?i.originX:void 0),calcAxisDelta(e.y,t.y,n.y,i?i.originY:void 0)}function calcRelativeAxis(e,t,n){e.min=n.min+t.min,e.max=e.min+calcLength(t)}function calcRelativeAxisPosition(e,t,n){e.min=t.min-n.min,e.max=e.min+calcLength(t)}function calcRelativePosition(e,t,n){calcRelativeAxisPosition(e.x,t.x,n.x),calcRelativeAxisPosition(e.y,t.y,n.y)}function calcRelativeAxisConstraints(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function calcViewportAxisConstraints(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min({translate:0,scale:1,origin:0,originPoint:0}),createDelta=()=>({x:createAxisDelta(),y:createAxisDelta()}),createAxis=()=>({min:0,max:0}),createBox=()=>({x:createAxis(),y:createAxis()});function eachAxis(e){return[e("x"),e("y")]}function convertBoundingBoxToBox({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function isIdentityScale(e){return void 0===e||1===e}function hasScale({scale:e,scaleX:t,scaleY:n}){return!isIdentityScale(e)||!isIdentityScale(t)||!isIdentityScale(n)}function hasTransform(e){return hasScale(e)||has2DTranslate(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function has2DTranslate(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function applyPointDelta(e,t,n,i,o){return void 0!==o&&(e=i+o*(e-i)),i+n*(e-i)+t}function applyAxisDelta(e,t=0,n=1,i,o){e.min=applyPointDelta(e.min,t,n,i,o),e.max=applyPointDelta(e.max,t,n,i,o)}function applyBoxDelta(e,{x:t,y:n}){applyAxisDelta(e.x,t.translate,t.scale,t.originPoint),applyAxisDelta(e.y,n.translate,n.scale,n.originPoint)}function snapToDefault(e){return Number.isInteger(e)?e:e>1.0000000000001||e<.999999999999?e:1}function translateAxis(e,t){e.min=e.min+t,e.max=e.max+t}function transformAxis(e,t,[n,i,o]){let a=void 0!==t[o]?t[o]:.5,s=mixNumber(e.min,e.max,a);applyAxisDelta(e,t[n],t[i],s,t.scale)}let e8=["x","scaleX","originX"],te=["y","scaleY","originY"];function transformBox(e,t){transformAxis(e.x,t,e8),transformAxis(e.y,t,te)}function measureViewportBox(e,t){return convertBoundingBoxToBox(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(e.getBoundingClientRect(),t))}let getContextWindow=({current:e})=>e?e.ownerDocument.defaultView:null,tt=new WeakMap;let VisualElementDragControls=class VisualElementDragControls{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=createBox(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:i}=this.getProps();this.panSession=new PanSession(e,{onSessionStart:e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(extractEventInfo(e,"page").point)},onStart:(e,t)=>{let{drag:n,dragPropagation:i,onDragStart:o}=this.getProps();if(n&&!i&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=getGlobalLock(n),!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),eachAxis(e=>{let t=this.getAxisMotionValue(e).get()||0;if(H.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let i=n.layout.layoutBox[e];if(i){let e=calcLength(i);t=e*(parseFloat(t)/100)}}}this.originPoint[e]=t}),o&&en.Wi.postRender(()=>o(e,t));let{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},onMove:(e,t)=>{let{dragPropagation:n,dragDirectionLock:i,onDirectionLock:o,onDrag:a}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:s}=t;if(i&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(s),null!==this.currentDirection&&o&&o(this.currentDirection);return}this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),a&&a(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>eachAxis(e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,contextWindow:getContextWindow(this.visualElement)})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:i}=t;this.startAnimation(i);let{onDragEnd:o}=this.getProps();o&&en.Wi.postRender(()=>o(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){let{drag:i}=this.getProps();if(!n||!shouldDrag(e,i,this.currentDirection))return;let o=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,{min:t,max:n},i){return void 0!==t&&en&&(e=i?mixNumber(n,e,i.max):Math.min(e,n)),e}(a,this.constraints[e],this.elastic[e])),o.set(a)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&isRefObject(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(e,{top:t,left:n,bottom:i,right:o}){return{x:calcRelativeAxisConstraints(e.x,n,o),y:calcRelativeAxisConstraints(e.y,t,i)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:resolveAxisElastic(e,"left","right"),y:resolveAxisElastic(e,"top","bottom")}}(n),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&eachAxis(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(i.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!isRefObject(t))return!1;let i=t.current;(0,ey.k)(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:o}=this.visualElement;if(!o||!o.layout)return!1;let a=function(e,t,n){let i=measureViewportBox(e,n),{scroll:o}=t;return o&&(translateAxis(i.x,o.offset.x),translateAxis(i.y,o.offset.y)),i}(i,o.root,this.visualElement.getTransformPagePoint()),s={x:calcViewportAxisConstraints((e=o.layout.layoutBox).x,a.x),y:calcViewportAxisConstraints(e.y,a.y)};if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(s));this.hasMutatedConstraints=!!e,e&&(s=convertBoundingBoxToBox(e))}return s}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=eachAxis(s=>{if(!shouldDrag(s,t,this.currentDirection))return;let c=l&&l[s]||{};a&&(c={min:0,max:0});let u={type:"inertia",velocity:n?e[s]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...o,...c};return this.startAxisValueAnimation(s,u)});return Promise.all(c).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return n.start(animateMotionValue(e,n,0,t,this.visualElement))}stopAnimation(){eachAxis(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){eachAxis(e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()})}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),i=n[t];return i||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){eachAxis(t=>{let{drag:n}=this.getProps();if(!shouldDrag(t,n,this.currentDirection))return;let{projection:i}=this.visualElement,o=this.getAxisMotionValue(t);if(i&&i.layout){let{min:n,max:a}=i.layout.layoutBox[t];o.set(e[t]-mixNumber(n,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!isRefObject(t)||!n||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};eachAxis(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let n=t.get();i[e]=function(e,t){let n=.5,i=calcLength(e),o=calcLength(t);return o>i?n=progress(t.min,t.max-i,e.min):i>o&&(n=progress(e.min,e.max-o,t.min)),clamp(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),eachAxis(t=>{if(!shouldDrag(t,e,null))return;let n=this.getAxisMotionValue(t),{min:o,max:a}=this.constraints[t];n.set(mixNumber(o,a,i[t]))})}addListeners(){if(!this.visualElement.current)return;tt.set(this.visualElement,this);let e=this.visualElement.current,t=addPointerEvent(e,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),measureDragConstraints=()=>{let{dragConstraints:e}=this.getProps();isRefObject(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",measureDragConstraints);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),measureDragConstraints();let o=addDomEvent(window,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(eachAxis(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),t(),i(),a&&a()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=.35,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:s}}};function shouldDrag(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let asyncHandler=e=>(t,n)=>{e&&en.Wi.postRender(()=>e(t,n))};var tr=n(5947);let tn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pixelsToPercent(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let ti={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!G.test(e))return e;e=parseFloat(e)}let n=pixelsToPercent(e,t.target.x),i=pixelsToPercent(e,t.target.y);return`${n}% ${i}%`}};let MeasureLayoutWithContext=class MeasureLayoutWithContext extends c.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=e;Object.assign(E,to),o&&(t.group&&t.group.add(o),n&&n.register&&i&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),tn.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:i,isPresent:o}=this.props,a=n.projection;return a&&(a.isPresent=o,i||e.layoutDependency!==t||void 0===t?a.willUpdate():this.safeToRemove(),e.isPresent===o||(o?a.promote():a.relegate()||en.Wi.postRender(()=>{let e=a.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),v.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function MeasureLayout(e){let[t,n]=(0,tr.oO)(),i=(0,c.useContext)(_.p);return(0,l.jsx)(MeasureLayoutWithContext,{...e,layoutGroup:i,switchLayoutGroup:(0,c.useContext)(C),isPresent:t,safeToRemove:n})}let to={borderRadius:{...ti,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ti,borderTopRightRadius:ti,borderBottomLeftRadius:ti,borderBottomRightRadius:ti,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let i=eV.parse(e);if(i.length>5)return e;let o=eV.createTransformer(e),a="number"!=typeof i[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;i[0+a]/=s,i[1+a]/=l;let c=mixNumber(s,l,.5);return"number"==typeof i[2+a]&&(i[2+a]/=c),"number"==typeof i[3+a]&&(i[3+a]/=c),o(i)}}},ta=["TopLeft","TopRight","BottomLeft","BottomRight"],ts=ta.length,asNumber=e=>"string"==typeof e?parseFloat(e):e,isPx=e=>"number"==typeof e||G.test(e);function getRadius(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let tl=compress(0,.5,eK),tc=compress(.5,.95,el.Z);function compress(e,t,n){return i=>it?1:n(progress(e,t,i))}function copyAxisInto(e,t){e.min=t.min,e.max=t.max}function copyBoxInto(e,t){copyAxisInto(e.x,t.x),copyAxisInto(e.y,t.y)}function removePointDelta(e,t,n,i,o){return e-=t,e=i+1/n*(e-i),void 0!==o&&(e=i+1/o*(e-i)),e}function removeAxisTransforms(e,t,[n,i,o],a,s){!function(e,t=0,n=1,i=.5,o,a=e,s=e){if(H.test(t)){t=parseFloat(t);let e=mixNumber(s.min,s.max,t/100);t=e-s.min}if("number"!=typeof t)return;let l=mixNumber(a.min,a.max,i);e===a&&(l-=t),e.min=removePointDelta(e.min,t,n,l,o),e.max=removePointDelta(e.max,t,n,l,o)}(e,t[n],t[i],t[o],t.scale,a,s)}let tu=["x","scaleX","originX"],td=["y","scaleY","originY"];function removeBoxTransforms(e,t,n,i){removeAxisTransforms(e.x,t,tu,n?n.x:void 0,i?i.x:void 0),removeAxisTransforms(e.y,t,td,n?n.y:void 0,i?i.y:void 0)}function isAxisDeltaZero(e){return 0===e.translate&&1===e.scale}function isDeltaZero(e){return isAxisDeltaZero(e.x)&&isAxisDeltaZero(e.y)}function boxEqualsRounded(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 aspectRatio(e){return calcLength(e.x)/calcLength(e.y)}let NodeStack=class NodeStack{constructor(){this.members=[]}add(e){addUniqueItem(this.members,e),e.scheduleRender()}remove(e){if(removeItem(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:i}=e.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function buildProjectionTransform(e,t,n){let i="",o=e.x.translate/t.x,a=e.y.translate/t.y,s=(null==n?void 0:n.z)||0;if((o||a||s)&&(i=`translate3d(${o}px, ${a}px, ${s}px) `),(1!==t.x||1!==t.y)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:o,rotateY:a,skewX:s,skewY:l}=n;e&&(i=`perspective(${e}px) ${i}`),t&&(i+=`rotate(${t}deg) `),o&&(i+=`rotateX(${o}deg) `),a&&(i+=`rotateY(${a}deg) `),s&&(i+=`skewX(${s}deg) `),l&&(i+=`skewY(${l}deg) `)}let l=e.x.scale*t.x,c=e.y.scale*t.y;return(1!==l||1!==c)&&(i+=`scale(${l}, ${c})`),i||"none"}let compareByDepth=(e,t)=>e.depth-t.depth;let FlatTree=class FlatTree{constructor(){this.children=[],this.isDirty=!1}add(e){addUniqueItem(this.children,e),this.isDirty=!0}remove(e){removeItem(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(compareByDepth),this.isDirty=!1,this.children.forEach(e)}};let tp=["","X","Y","Z"],th={visibility:"hidden"},tf=0,tm={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function resetDistortingTransform(e,t,n,i){let{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),i&&(i[e]=0))}function createProjectionNode({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(e={},n=null==t?void 0:t()){this.id=tf++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,tm.totalNodes=tm.resolvedTargetDeltas=tm.recalculatedProjection=0,this.nodes.forEach(propagateDirtyNodes),this.nodes.forEach(resolveTargetDelta),this.nodes.forEach(calcProjection),this.nodes.forEach(cleanDirtyNodes),window.MotionDebug&&window.MotionDebug.record(tm)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;ethis.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=ev.now(),checkElapsed=({timestamp:i})=>{let o=i-n;o>=t&&((0,en.Pn)(checkElapsed),e(o-t))};return en.Wi.read(checkElapsed,!0),()=>(0,en.Pn)(checkElapsed)}(resizeUnblockUpdate,250),tn.hasAnimatedSinceResize&&(tn.hasAnimatedSinceResize=!1,this.nodes.forEach(finishAnimation))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&a&&(i||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||a.getDefaultTransition()||tg,{onLayoutAnimationStart:s,onLayoutAnimationComplete:l}=a.getProps(),c=!this.targetLayout||!boxEqualsRounded(this.targetLayout,i)||n,u=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);let t={...getValueTransition(o,"layout"),onPlay:s,onComplete:l};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||finishAnimation(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,en.Pn)(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(resetSkewAndRotation),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!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 e=0;ethis.update()))}clearAllSnapshots(){this.nodes.forEach(clearSnapshot),this.sharedNodes.forEach(removeLeadSnapshots)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,en.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){en.Wi.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 e=0;e{let i=t/1e3;if(mixAxisDelta(s.x,e.x,i),mixAxisDelta(s.y,e.y,i),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,u,p,m;calcRelativePosition(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,mixAxis(p.x,m.x,l.x,i),mixAxis(p.y,m.y,l.y,i),n&&(c=this.relativeTarget,u=n,c.x.min===u.x.min&&c.x.max===u.x.max&&c.y.min===u.y.min&&c.y.max===u.y.max)&&(this.isProjectionDirty=!1),n||(n=createBox()),copyBoxInto(n,this.relativeTarget)}d&&(this.animationValues=a,function(e,t,n,i,o,a){o?(e.opacity=mixNumber(0,void 0!==n.opacity?n.opacity:1,tl(i)),e.opacityExit=mixNumber(void 0!==t.opacity?t.opacity:1,0,tc(i))):a&&(e.opacity=mixNumber(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let o=0;o{tn.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){let i=isMotionValue(e)?e:motionValue(e);return i.start(animateMotionValue("",i,1e3,n)),i.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.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 e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:i,latestValues:o}=e;if(t&&n&&i){if(this!==e&&this.layout&&i&&shouldAnimatePositionOnly(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||createBox();let t=calcLength(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let i=calcLength(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+i}copyBoxInto(t,n),transformBox(t,o),calcBoxDelta(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new NodeStack);let n=this.sharedNodes.get(e);n.add(t);let i=t.options.initialPromotionConfig;t.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let i=this.getStack();i&&i.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let i={};n.z&&resetDistortingTransform("z",e,i,this.animationValues);for(let t=0;t{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(clearMeasurements),this.root.sharedNodes.clear()}}}function updateLayout(e){e.updateLayout()}function notifyLayoutUpdate(e){var t;let n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;"size"===o?eachAxis(e=>{let i=a?n.measuredBox[e]:n.layoutBox[e],o=calcLength(i);i.min=t[e].min,i.max=i.min+o}):shouldAnimatePositionOnly(o,n.layoutBox,t)&&eachAxis(i=>{let o=a?n.measuredBox[i]:n.layoutBox[i],s=calcLength(t[i]);o.max=o.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[i].max=e.relativeTarget[i].min+s)});let s=createDelta();calcBoxDelta(s,t,n.layoutBox);let l=createDelta();a?calcBoxDelta(l,e.applyTransform(i,!0),n.measuredBox):calcBoxDelta(l,t,n.layoutBox);let c=!isDeltaZero(s),u=!1;if(!e.resumeFrom){let i=e.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:o,layout:a}=i;if(o&&a){let s=createBox();calcRelativePosition(s,n.layoutBox,o.layoutBox);let l=createBox();calcRelativePosition(l,t,a.layoutBox),boxEqualsRounded(s,l)||(u=!0),i.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=s,e.relativeParent=i)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function propagateDirtyNodes(e){tm.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 cleanDirtyNodes(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function clearSnapshot(e){e.clearSnapshot()}function clearMeasurements(e){e.clearMeasurements()}function clearIsLayoutDirty(e){e.isLayoutDirty=!1}function resetTransformStyle(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function finishAnimation(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function resolveTargetDelta(e){e.resolveTargetDelta()}function calcProjection(e){e.calcProjection()}function resetSkewAndRotation(e){e.resetSkewAndRotation()}function removeLeadSnapshots(e){e.removeLeadSnapshot()}function mixAxisDelta(e,t,n){e.translate=mixNumber(t.translate,0,n),e.scale=mixNumber(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function mixAxis(e,t,n,i){e.min=mixNumber(t.min,n.min,i),e.max=mixNumber(t.max,n.max,i)}function hasOpacityCrossfade(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let tg={duration:.45,ease:[.4,0,.1,1]},userAgentContains=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),tv=userAgentContains("applewebkit/")&&!userAgentContains("chrome/")?Math.round:el.Z;function roundAxis(e){e.min=tv(e.min),e.max=tv(e.max)}function shouldAnimatePositionOnly(e,t,n){return"position"===e||"preserve-aspect"===e&&!isNear(aspectRatio(t),aspectRatio(n),.2)}let ty=createProjectionNode({attachResizeListener:(e,t)=>addDomEvent(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),tb={current:void 0},tx=createProjectionNode({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!tb.current){let e=new ty({});e.mount(window),e.setOptions({layoutScroll:!0}),tb.current=e}return tb.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),tS={current:null},tk={current:!1},tw=new WeakMap,t_=[...e_,eM,eV],findValueType=e=>t_.find(testValueType(e)),tC=Object.keys(k),tT=tC.length,tP=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tA=x.length;let VisualElement=class VisualElement{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},s={}){this.resolveKeyframes=(e,t,n,i)=>new this.KeyframeResolver(e,t,n,i,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=KeyframeResolver,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=()=>en.Wi.render(this.render,!1,!0);let{latestValues:l,renderState:c}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=!!o,this.isControllingVariants=isControllingVariants(t),this.isVariantNode=isVariantNode(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];void 0!==l[e]&&isMotionValue(t)&&(t.set(l[e],!1),isWillChangeMotionValue(u)&&u.add(e))}}mount(e){this.current=e,tw.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),tk.current||function(){if(tk.current=!0,w.j){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),setReducedMotionPreferences=()=>tS.current=e.matches;e.addListener(setReducedMotionPreferences),setReducedMotionPreferences()}else tS.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||tS.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var e;for(let e in tw.delete(this.current),this.projection&&this.projection.unmount(),(0,en.Pn)(this.notifyUpdate),(0,en.Pn)(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let t in this.features)null===(e=this.features[t])||void 0===e||e.unmount();this.current=null}bindToMotionValue(e,t){let n=R.has(e),i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&en.Wi.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),o(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,i,o){let a,s;for(let e=0;ethis.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:l,layoutRoot:c})}return s}updateFeatures(){for(let e in this.features){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):createBox()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;tt.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=motionValue(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let i=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=i&&("string"==typeof i&&(isNumericalString(i)||isZeroValueString(i))?i=parseFloat(i):!findValueType(i)&&eV.test(t)&&(i=animatable_none_getAnimatableNone(e,t)),this.setBaseTarget(e,isMotionValue(i)?i.get():i)),isMotionValue(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let n;let{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let o=resolveVariantFromProps(this.props,i,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);o&&(n=o[e])}if(i&&void 0!==n)return n;let o=this.getBaseTargetFromProps(this.props,e);return void 0===o||isMotionValue(o)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new SubscriptionManager),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}};let DOMVisualElement=class DOMVisualElement extends VisualElement{constructor(){super(...arguments),this.KeyframeResolver=DOMKeyframesResolver}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}};let HTMLVisualElement=class HTMLVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(R.has(t)){let e=getDefaultValueType(t);return e&&e.default||0}{let n=window.getComputedStyle(e),i=(D(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return measureViewportBox(e,t)}build(e,t,n,i){buildHTMLStyles(e,t,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return scrapeMotionValuesFromProps(e,t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;isMotionValue(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,n,i){renderHTML(e,t,n,i)}};let SVGVisualElement=class SVGVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(R.has(t)){let e=getDefaultValueType(t);return e&&e.default||0}return t=et.has(t)?t:camelToDash(t),e.getAttribute(t)}measureInstanceViewportBox(){return createBox()}scrapeMotionValuesFromProps(e,t,n){return scrape_motion_values_scrapeMotionValuesFromProps(e,t,n)}build(e,t,n,i){buildSVGAttrs(e,t,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,t,n,i){renderSVG(e,t,n,i)}mount(e){this.isSVGTag=isSVGTag(e.tagName),super.mount(e)}};let create_visual_element_createDomVisualElement=(e,t)=>isSVGComponent(e)?new SVGVisualElement(t,{enableHardwareAcceleration:!1}):new HTMLVisualElement(t,{allowProjection:e!==c.Fragment,enableHardwareAcceleration:!0}),tE={animation:{Feature:class extends Feature{constructor(e){super(e),e.animationState||(e.animationState=function(e){let animate=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let i;if(e.notify("AnimationStart",t),Array.isArray(t)){let o=t.map(t=>animateVariant(e,t,n));i=Promise.all(o)}else if("string"==typeof t)i=animateVariant(e,t,n);else{let o="function"==typeof t?resolveVariant(e,t,n.custom):t;i=Promise.all(animateTarget(e,o,n))}return i.then(()=>{en.Wi.postRender(()=>{e.notify("AnimationComplete",t)})})})(e,t,n))),t={animate:createTypeState(!0),whileInView:createTypeState(),whileHover:createTypeState(),whileTap:createTypeState(),whileDrag:createTypeState(),whileFocus:createTypeState(),exit:createTypeState()},n=!0,buildResolvedTypeValues=t=>(n,i)=>{var o;let a=resolveVariant(e,i,"exit"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(a){let{transition:e,transitionEnd:t,...i}=a;n={...n,...i,...t}}return n};function animateChanges(i){let o=e.getProps(),a=e.getVariantContext(!0)||{},s=[],l=new Set,c={},u=1/0;for(let p=0;pu&&g,S=!1,k=Array.isArray(m)?m:[m],w=k.reduce(buildResolvedTypeValues(h),{});!1===v&&(w={});let{prevResolvedValues:_={}}=f,C={..._,...w},markToAnimate=t=>{x=!0,l.has(t)&&(S=!0,l.delete(t)),f.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in C){let t=w[e],n=_[e];if(!c.hasOwnProperty(e))(isKeyframesTarget(t)&&isKeyframesTarget(n)?shallowCompare(t,n):t===n)?void 0!==t&&l.has(e)?markToAnimate(e):f.protectedKeys[e]=!0:null!=t?markToAnimate(e):l.add(e)}f.prevProp=m,f.prevResolvedValues=w,f.isActive&&(c={...c,...w}),n&&e.blockInitialAnimation&&(x=!1),x&&(!y||S)&&s.push(...k.map(e=>({animation:e,options:{type:h}})))}if(l.size){let t={};l.forEach(n=>{let i=e.getBaseTarget(n),o=e.getValue(n);o&&(o.liveStyle=!0),t[n]=null!=i?i:null}),s.push({animation:t})}let p=!!s.length;return n&&(!1===o.initial||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(p=!1),n=!1,p?animate(s):Promise.resolve()}return{animateChanges,setActive:function(n,i){var o;if(t[n].isActive===i)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach(e=>{var t;return null===(t=e.animationState)||void 0===t?void 0:t.setActive(n,i)}),t[n].isActive=i;let a=animateChanges(n);for(let e in t)t[e].protectedKeys={};return a},setAnimateFunction:function(t){animate=t(e)},getState:()=>t}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();this.unmount(),isAnimationControls(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends Feature{constructor(){super(...arguments),this.id=e7++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let i=this.node.animationState.setActive("exit",!e);t&&!e&&i.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:i="some",once:o}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:ed[i]};return function(e,t,n){let i=function({root:e,...t}){let n=e||document;eu.has(n)||eu.set(n,{});let i=eu.get(n),o=JSON.stringify(t);return i[o]||(i[o]=new IntersectionObserver(fireAllObserverCallbacks,{root:e,...t})),i[o]}(t);return ec.set(e,n),i.observe(e),()=>{ec.delete(e),i.unobserve(e)}}(this.node.current,a,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,o&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),a=t?n:i;a&&a(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node,n=["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t));n&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Feature{constructor(){super(...arguments),this.removeStartListeners=el.Z,this.removeEndListeners=el.Z,this.removeAccessibleListeners=el.Z,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();let n=this.node.getProps(),i=addPointerEvent(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:i,globalTapTarget:o}=this.node.getProps(),a=o||isNodeOrChild(this.node.current,e.target)?n:i;a&&en.Wi.update(()=>a(e,t))},{passive:!(n.onTap||n.onPointerUp)}),o=addPointerEvent(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=pipe(i,o),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=addDomEvent(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=addDomEvent(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&fireSyntheticPointerEvent("up",(e,t)=>{let{onTap:n}=this.node.getProps();n&&en.Wi.postRender(()=>n(e,t))})}),fireSyntheticPointerEvent("down",(e,t)=>{this.startPress(e,t)}))}),t=addDomEvent(this.node.current,"blur",()=>{this.isPressing&&fireSyntheticPointerEvent("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=pipe(e,t)}}startPress(e,t){this.isPressing=!0;let{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&en.Wi.postRender(()=>n(e,t))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;let e=this.node.getProps();return e.whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!isDragActive()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&en.Wi.postRender(()=>n(e,t))}mount(){let e=this.node.getProps(),t=addPointerEvent(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=addDomEvent(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=pipe(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&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=pipe(addDomEvent(this.node.current,"focus",()=>this.onFocus()),addDomEvent(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Feature{mount(){this.unmount=pipe(addHoverEvent(this.node,!0),addHoverEvent(this.node,!1))}unmount(){}}},pan:{Feature:class extends Feature{constructor(){super(...arguments),this.removePointerDownListener=el.Z}onPointerDown(e){this.session=new PanSession(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:getContextWindow(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:asyncHandler(e),onStart:asyncHandler(t),onMove:n,onEnd:(e,t)=>{delete this.session,i&&en.Wi.postRender(()=>i(e,t))}}}mount(){this.removePointerDownListener=addPointerEvent(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Feature{constructor(e){super(e),this.removeGroupControls=el.Z,this.removeListeners=el.Z,this.controls=new VisualElementDragControls(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||el.Z}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:tx,MeasureLayout:MeasureLayout},layout:{ProjectionNode:tx,MeasureLayout:MeasureLayout}},tj=function(e){function custom(t,n={}){return function({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:i,Component:o}){e&&function(e){for(let t in e)k[t]={...k[t],...e[t]}}(e);let a=(0,c.forwardRef)(function(a,s){var g;let y;let b={...(0,c.useContext)(u._),...a,layoutId:function({layoutId:e}){let t=(0,c.useContext)(_.p).id;return t&&void 0!==e?t+"-"+e:e}(a)},{isStatic:x}=b,S=function(e){let{initial:t,animate:n}=function(e,t){if(isControllingVariants(e)){let{initial:t,animate:n}=e;return{initial:!1===t||isVariantLabel(t)?t:void 0,animate:isVariantLabel(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,c.useContext)(d));return(0,c.useMemo)(()=>({initial:t,animate:n}),[variantLabelsAsDependency(t),variantLabelsAsDependency(n)])}(a),k=i(a,x);if(!x&&w.j){S.visualElement=function(e,t,n,i){let{visualElement:o}=(0,c.useContext)(d),a=(0,c.useContext)(f),s=(0,c.useContext)(p.O),l=(0,c.useContext)(u._).reducedMotion,g=(0,c.useRef)();i=i||a.renderer,!g.current&&i&&(g.current=i(e,{visualState:t,parent:o,props:n,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:l}));let y=g.current;(0,c.useInsertionEffect)(()=>{y&&y.update(n,s)});let b=(0,c.useRef)(!!(n[m]&&!window.HandoffComplete));return(0,h.L)(()=>{y&&(v.postRender(y.render),b.current&&y.animationState&&y.animationState.animateChanges())}),(0,c.useEffect)(()=>{y&&(y.updateFeatures(),!b.current&&y.animationState&&y.animationState.animateChanges(),b.current&&(b.current=!1,window.HandoffComplete=!0))}),y}(o,k,b,t);let n=(0,c.useContext)(C),i=(0,c.useContext)(f).strict;S.visualElement&&(y=S.visualElement.loadFeatures(b,i,e,n))}return(0,l.jsxs)(d.Provider,{value:S,children:[y&&S.visualElement?(0,l.jsx)(y,{visualElement:S.visualElement,...b}):null,n(o,a,(g=S.visualElement,(0,c.useCallback)(e=>{e&&k.mount&&k.mount(e),g&&(e?g.mount(e):g.unmount()),s&&("function"==typeof s?s(e):isRefObject(s)&&(s.current=e))},[g])),k,x,S.visualElement)]})});return a[T]=o,a}(e(t,n))}if("undefined"==typeof Proxy)return custom;let t=new Map;return new Proxy(custom,{get:(e,n)=>(t.has(n)||t.set(n,custom(n)),t.get(n))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},n,i){let o=isSVGComponent(e)?ei:eo;return{...o,preloadedFeatures:n,useRender:function(e=!1){return(t,n,i,{latestValues:o},a)=>{let s=isSVGComponent(t)?useSVGProps:useHTMLProps,l=s(n,o,a,t),u=function(e,t,n){let i={};for(let o in e)("values"!==o||"object"!=typeof e.values)&&(shouldForward(o)||!0===n&&isValidMotionProp(o)||!t&&!isValidMotionProp(o)||e.draggable&&o.startsWith("onDrag"))&&(i[o]=e[o]);return i}(n,"string"==typeof t,e),d=t!==c.Fragment?{...u,...l,ref:i}:{},{children:p}=n,h=(0,c.useMemo)(()=>isMotionValue(p)?p.get():p,[p]);return(0,c.createElement)(t,{...d,children:h})}}(t),createVisualElement:i,Component:e}})(e,t,tE,create_visual_element_createDomVisualElement))},2081:function(e,t,n){"use strict";n.d(t,{c:function(){return i}});let i={skipAnimations:!1,useManualTiming:!1}},5487:function(e,t,n){"use strict";n.d(t,{K:function(){return o},k:function(){return a}});var i=n(1662);let o=i.Z,a=i.Z},1741:function(e,t,n){"use strict";n.d(t,{j:function(){return i}});let i="undefined"!=typeof document},1662:function(e,t,n){"use strict";n.d(t,{Z:function(){return noop}});let noop=e=>e},6681:function(e,t,n){"use strict";n.d(t,{h:function(){return useConstant}});var i=n(7294);function useConstant(e){let t=(0,i.useRef)(null);return null===t.current&&(t.current=e()),t.current}},8868:function(e,t,n){"use strict";n.d(t,{L:function(){return a}});var i=n(7294),o=n(1741);let a=o.j?i.useLayoutEffect:i.useEffect}},function(e){var __webpack_exec__=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return __webpack_exec__(1118),__webpack_exec__(9974)}),_N_E=e.O()}]); \ No newline at end of file + */var n="function"==typeof Symbol&&Symbol.for,i=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,d=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,x=n?Symbol.for("react.responder"):60118,S=n?Symbol.for("react.scope"):60119;function z(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case d:case p:case a:case l:case s:case f:return e;default:switch(e=e&&e.$$typeof){case u:case h:case v:case g:case c:return e;default:return t}}case o:return t}}}function A(e){return z(e)===p}t.AsyncMode=d,t.ConcurrentMode=p,t.ContextConsumer=u,t.ContextProvider=c,t.Element=i,t.ForwardRef=h,t.Fragment=a,t.Lazy=v,t.Memo=g,t.Portal=o,t.Profiler=l,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return A(e)||z(e)===d},t.isConcurrentMode=A,t.isContextConsumer=function(e){return z(e)===u},t.isContextProvider=function(e){return z(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return z(e)===h},t.isFragment=function(e){return z(e)===a},t.isLazy=function(e){return z(e)===v},t.isMemo=function(e){return z(e)===g},t.isPortal=function(e){return z(e)===o},t.isProfiler=function(e){return z(e)===l},t.isStrictMode=function(e){return z(e)===s},t.isSuspense=function(e){return z(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===l||e===s||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===c||e.$$typeof===u||e.$$typeof===h||e.$$typeof===b||e.$$typeof===x||e.$$typeof===S||e.$$typeof===y)},t.typeOf=z},9864:function(e,t,n){"use strict";e.exports=n(9921)},7462:function(e,t,n){"use strict";function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;tnull===e?null:t(e)):(0,i.Kn)(e)?Object.keys(e).reduce((n,i)=>(n[i]=t(e[i]),n),{}):null!=e?t(e):null}Object.freeze(["base","sm","md","lg","xl","2xl"])},5450:function(e,t,n){"use strict";n.d(t,{z:function(){return m}});var i=n(7294),[o,a]=(0,n(5227).k)({strict:!1,name:"ButtonGroupContext"}),s=n(5523),l=n(5432),c=n(5893);function ButtonIcon(e){let{children:t,className:n,...o}=e,a=(0,i.isValidElement)(t)?(0,i.cloneElement)(t,{"aria-hidden":!0,focusable:!1}):t,u=(0,l.cx)("chakra-button__icon",n);return(0,c.jsx)(s.m.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...o,className:u,children:a})}ButtonIcon.displayName="ButtonIcon";var u=n(295);function ButtonSpinner(e){let{label:t,placement:n,spacing:o="0.5rem",children:a=(0,c.jsx)(u.$,{color:"currentColor",width:"1em",height:"1em"}),className:d,__css:p,...h}=e,f=(0,l.cx)("chakra-button__spinner",d),m="start"===n?"marginEnd":"marginStart",g=(0,i.useMemo)(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[m]:t?o:0,fontSize:"1em",lineHeight:"normal",...p}),[p,t,m,o]);return(0,c.jsx)(s.m.div,{className:f,...h,__css:g,children:a})}ButtonSpinner.displayName="ButtonSpinner";var d=n(1103),p=n(5059),h=n(1639),f=n(3179),m=(0,p.G)((e,t)=>{let n=a(),o=(0,h.mq)("Button",{...n,...e}),{isDisabled:u=null==n?void 0:n.isDisabled,isLoading:p,isActive:m,children:g,leftIcon:v,rightIcon:y,loadingText:b,iconSpacing:x="0.5rem",type:S,spinner:k,spinnerPlacement:w="start",className:_,as:C,...T}=(0,f.Lr)(e),P=(0,i.useMemo)(()=>{let e={...null==o?void 0:o._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...o,...!!n&&{_focus:e}}},[o,n]),{ref:E,type:j}=function(e){let[t,n]=(0,i.useState)(!e),o=(0,i.useCallback)(e=>{e&&n("BUTTON"===e.tagName)},[]);return{ref:o,type:t?"button":void 0}}(C),R={rightIcon:y,leftIcon:v,iconSpacing:x,children:g};return(0,c.jsxs)(s.m.button,{disabled:u||p,ref:(0,d.qq)(t,E),as:C,type:null!=S?S:j,"data-active":(0,l.PB)(m),"data-loading":(0,l.PB)(p),__css:P,className:(0,l.cx)("chakra-button",_),...T,children:[p&&"start"===w&&(0,c.jsx)(ButtonSpinner,{className:"chakra-button__spinner--start",label:b,placement:"start",spacing:x,children:k}),p?b||(0,c.jsx)(s.m.span,{opacity:0,children:(0,c.jsx)(ButtonContent,{...R})}):(0,c.jsx)(ButtonContent,{...R}),p&&"end"===w&&(0,c.jsx)(ButtonSpinner,{className:"chakra-button__spinner--end",label:b,placement:"end",spacing:x,children:k})]})});function ButtonContent(e){let{leftIcon:t,rightIcon:n,children:i,iconSpacing:o}=e;return(0,c.jsxs)(c.Fragment,{children:[t&&(0,c.jsx)(ButtonIcon,{marginEnd:o,children:t}),i,n&&(0,c.jsx)(ButtonIcon,{marginStart:o,children:n})]})}m.displayName="Button"},2498:function(e,t,n){"use strict";n.d(t,{If:function(){return useColorMode},ff:function(){return useColorModeValue},kc:function(){return o}});var i=n(7294),o=(0,i.createContext)({});function useColorMode(){let e=(0,i.useContext)(o);if(void 0===e)throw Error("useColorMode must be used within a ColorModeProvider");return e}function useColorModeValue(e,t){let{colorMode:n}=useColorMode();return"dark"===n?t:e}o.displayName="ColorModeContext"},6877:function(e,t,n){"use strict";n.d(t,{J:function(){return u}});var i=n(5059),o=n(1639),a=n(5523),s=n(5432),l=n(5893),c={path:(0,l.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,l.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"}),(0,l.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"}),(0,l.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},u=(0,i.G)((e,t)=>{let{as:n,viewBox:i,color:u="currentColor",focusable:d=!1,children:p,className:h,__css:f,...m}=e,g=(0,s.cx)("chakra-icon",h),v=(0,o.mq)("Icon",e),y={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:u,...f,...v},b={ref:t,focusable:d,className:g,__css:y},x=null!=i?i:c.viewBox;if(n&&"string"!=typeof n)return(0,l.jsx)(a.m.svg,{as:n,...b,...m});let S=null!=p?p:c.path;return(0,l.jsx)(a.m.svg,{verticalAlign:"middle",viewBox:x,...b,...m,children:S})});u.displayName="Icon"},78:function(e,t,n){"use strict";n.d(t,{I:function(){return createIcon}});var i=n(6877),o=n(5059),a=n(7294),s=n(5893);function createIcon(e){let{viewBox:t="0 0 24 24",d:n,displayName:l,defaultProps:c={}}=e,u=a.Children.toArray(e.path),d=(0,o.G)((e,o)=>(0,s.jsx)(i.J,{ref:o,viewBox:t,...c,...e,children:u.length?u:(0,s.jsx)("path",{fill:"currentColor",d:n})}));return d.displayName=l,d}},3100:function(e,t,n){"use strict";n.d(t,{xu:function(){return s}});var i=n(5523),o=n(5059),a=n(5893),s=(0,i.m)("div");s.displayName="Box";var l=(0,o.G)(function(e,t){let{size:n,centerContent:i=!0,...o}=e;return(0,a.jsx)(s,{ref:t,boxSize:n,__css:{...i?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...o})});l.displayName="Square",(0,o.G)(function(e,t){let{size:n,...i}=e;return(0,a.jsx)(l,{size:n,ref:t,borderRadius:"9999px",...i})}).displayName="Circle"},4418:function(e,t,n){"use strict";n.d(t,{X:function(){return u}});var i=n(5059),o=n(1639),a=n(3179),s=n(5523),l=n(5432),c=n(5893),u=(0,i.G)(function(e,t){let n=(0,o.mq)("Heading",e),{className:i,...u}=(0,a.Lr)(e);return(0,c.jsx)(s.m.h2,{ref:t,className:(0,l.cx)("chakra-heading",e.className),...u,__css:n})});u.displayName="Heading"},3205:function(e,t,n){"use strict";n.d(t,{x:function(){return u}});var i=n(5059),o=n(1639),a=n(3179),s=n(5523),l=n(5432),c=n(5893),u=(0,i.G)(function(e,t){let n=(0,o.mq)("Text",e),{className:i,align:u,decoration:d,casing:p,...h}=(0,a.Lr)(e),f=function(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return(0,c.jsx)(s.m.p,{ref:t,className:(0,l.cx)("chakra-text",e.className),...f,...h,__css:n})});u.displayName="Text"},6979:function(e,t,n){"use strict";n.d(t,{W:function(){return u}});var i=n(5059),o=n(3179),a=n(1639),s=n(5523),l=n(5432),c=n(5893),u=(0,i.G)(function(e,t){let{className:n,centerContent:i,...u}=(0,o.Lr)(e),d=(0,a.mq)("Container",e);return(0,c.jsx)(s.m.div,{ref:t,className:(0,l.cx)("chakra-container",n),...u,__css:{...d,...i&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});u.displayName="Container"},3838:function(e,t,n){"use strict";n.d(t,{r:function(){return u}});var i=n(5059),o=n(1639),a=n(3179),s=n(5523),l=n(5432),c=n(5893),u=(0,i.G)(function(e,t){let n=(0,o.mq)("Link",e),{className:i,isExternal:u,...d}=(0,a.Lr)(e);return(0,c.jsx)(s.m.a,{target:u?"_blank":void 0,rel:u?"noopener":void 0,ref:t,className:(0,l.cx)("chakra-link",i),...d,__css:n})});u.displayName="Link"},2495:function(e,t,n){"use strict";n.d(t,{W:function(){return getValidChildren}});var i=n(7294);function getValidChildren(e){return i.Children.toArray(e).filter(e=>(0,i.isValidElement)(e))}},5227:function(e,t,n){"use strict";n.d(t,{k:function(){return createContext}});var i=n(7294);function createContext(e={}){let{name:t,strict:n=!0,hookName:o="useContext",providerName:a="Provider",errorMessage:s}=e,l=(0,i.createContext)(void 0);return l.displayName=t,[l.Provider,function useContext(){var e;let t=(0,i.useContext)(l);if(!t&&n){let t=Error(null!=s?s:`${o} returned \`undefined\`. Seems you forgot to wrap component within ${a}`);throw t.name="ContextError",null==(e=Error.captureStackTrace)||e.call(Error,t,useContext),t}return t},l]}},1103:function(e,t,n){"use strict";n.d(t,{lq:function(){return mergeRefs},qq:function(){return useMergeRefs}});var i=n(7294);function mergeRefs(...e){return t=>{e.forEach(e=>{!function(e,t){if(null!=e){if("function"==typeof e){e(t);return}try{e.current=t}catch(n){throw Error(`Cannot assign value '${t}' to ref '${e}'`)}}}(e,t)})}}function useMergeRefs(...e){return(0,i.useMemo)(()=>mergeRefs(...e),e)}},5432:function(e,t,n){"use strict";n.d(t,{Kn:function(){return isObject},PB:function(){return dataAttr},PP:function(){return callAll},Pu:function(){return runIfFn},cx:function(){return cx},v0:function(){return callAllHandlers}});var cx=(...e)=>e.filter(Boolean).join(" ");function isObject(e){let t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}function runIfFn(e,...t){return isFunction(e)?e(...t):e}var isFunction=e=>"function"==typeof e,dataAttr=e=>e?"":void 0;function callAllHandlers(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}function callAll(...e){return function(t){e.forEach(e=>{null==e||e(t)})}}},295:function(e,t,n){"use strict";n.d(t,{$:function(){return p}});var i=n(917),o=n(5059),a=n(1639),s=n(3179),l=n(5523),c=n(5432),u=n(5893),d=(0,i.F4)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),p=(0,o.G)((e,t)=>{let n=(0,a.mq)("Spinner",e),{label:i="Loading...",thickness:o="2px",speed:p="0.45s",emptyColor:h="transparent",className:f,...m}=(0,s.Lr)(e),g=(0,c.cx)("chakra-spinner",f),v={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:h,borderLeftColor:h,animation:`${d} ${p} linear infinite`,...n};return(0,u.jsx)(l.m.div,{ref:t,__css:v,className:g,...m,children:i&&(0,u.jsx)(l.m.span,{srOnly:!0,children:i})})});p.displayName="Spinner"},3179:function(e,t,n){"use strict";n.d(t,{D:function(){return createMultiStyleConfigHelpers},Lr:function(){return omitThemingProps},Ud:function(){return resolveStyleConfig},ZR:function(){return isStyleProp},c0:function(){return toCSSVar},cC:function(){return H},fj:function(){return defineStyleConfig},gJ:function(){return cssVar},iv:function(){return css},k0:function(){return defineStyle}});var i=n(5432),o=n(8554),isImportant=e=>/!(important)?$/.test(e),withoutImportant=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e,tokenToCSSVar=(e,t)=>n=>{let o=String(t),a=isImportant(o),s=withoutImportant(o),l=e?`${e}.${s}`:s,c=(0,i.Kn)(n.__cssMap)&&l in n.__cssMap?n.__cssMap[l].varRef:t;return c=withoutImportant(c),a?`${c} !important`:c};function createTransform(e){let{scale:t,transform:n,compose:i}=e;return(e,o)=>{var a;let s=tokenToCSSVar(t,e)(o),l=null!=(a=null==n?void 0:n(s,o))?a:s;return i&&(l=i(l,o)),l}}var pipe=(...e)=>t=>e.reduce((e,t)=>t(e),t);function toConfig(e,t){return n=>{let i={property:n,scale:e};return i.transform=createTransform({scale:e,transform:t}),i}}var getRtl=({rtl:e,ltr:t})=>n=>"rtl"===n.direction?e:t,a=["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))"],s={"--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)"},l={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)","--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,/*!*/ /*!*/)"},c={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},u="& > :not(style) ~ :not(style)",d={"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"},p=new Set(Object.values(d)),h=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),trimSpace=e=>e.trim(),isCSSFunction=e=>"string"==typeof e&&e.includes("(")&&e.includes(")"),analyzeCSSValue=e=>{let t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},wrap=e=>t=>`${e}(${t})`,f={filter:e=>"auto"!==e?e:s,backdropFilter:e=>"auto"!==e?e:l,ring:e=>({"--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":f.px(e),boxShadow:"var(--chakra-ring-offset-shadow), var(--chakra-ring-shadow), var(--chakra-shadow, 0 0 #0000)"}),bgClip:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},transform:e=>"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...a].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...a].join(" "):e,vh:e=>"$100vh"===e?"var(--chakra-vh)":e,px(e){if(null==e)return e;let{unitless:t}=analyzeCSSValue(e);return t||"number"==typeof e?`${e}px`:e},fraction:e=>"number"!=typeof e||e>1?e:`${100*e}%`,float:(e,t)=>"rtl"===t.direction?({left:"right",right:"left"})[e]:e,degree(e){if(/^var\(--.+\)$/.test(e)||null==e)return e;let t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},gradient:(e,t)=>(function(e,t){var n,i;if(null==e||h.has(e))return e;let{type:o,values:a}=null!=(i=null==(n=/(?^[a-z-A-Z]+)\((?(.*))\)/g.exec(e))?void 0:n.groups)?i:{};if(!o||!a)return e;let s=o.includes("-gradient")?o:`${o}-gradient`,[l,...c]=a.split(",").map(trimSpace).filter(Boolean);if((null==c?void 0:c.length)===0)return e;let u=l in d?d[l]:l;c.unshift(u);let f=c.map(e=>{if(p.has(e))return e;let n=e.indexOf(" "),[i,o]=-1!==n?[e.substr(0,n),e.substr(n+1)]:[e],a=isCSSFunction(o)?o:o&&o.split(" "),s=`colors.${i}`,l=s in t.__cssMap?t.__cssMap[s].varRef:i;return a?[l,...Array.isArray(a)?a:[a]].join(" "):l});return`${s}(${f.join(", ")})`})(e,null!=t?t:{}),blur:wrap("blur"),opacity:wrap("opacity"),brightness:wrap("brightness"),contrast:wrap("contrast"),dropShadow:wrap("drop-shadow"),grayscale:wrap("grayscale"),hueRotate:wrap("hue-rotate"),invert:wrap("invert"),saturate:wrap("saturate"),sepia:wrap("sepia"),bgImage(e){if(null==e)return e;let t=isCSSFunction(e)||h.has(e);return t?e:`url(${e})`},outline(e){let t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;let{space:n,divide:i}=null!=(t=c[e])?t:{},o={flexDirection:e};return n&&(o[n]=1),i&&(o[i]=1),o}},m={borderWidths:toConfig("borderWidths"),borderStyles:toConfig("borderStyles"),colors:toConfig("colors"),borders:toConfig("borders"),radii:toConfig("radii",f.px),space:toConfig("space",pipe(f.vh,f.px)),spaceT:toConfig("space",pipe(f.vh,f.px)),degreeT:e=>({property:e,transform:f.degree}),prop:(e,t,n)=>({property:e,scale:t,...t&&{transform:createTransform({scale:t,transform:n})}}),propT:(e,t)=>({property:e,transform:t}),sizes:toConfig("sizes",pipe(f.vh,f.px)),sizesT:toConfig("sizes",pipe(f.vh,f.fraction)),shadows:toConfig("shadows"),logical:function(e){let{property:t,scale:n,transform:i}=e;return{scale:n,property:getRtl(t),transform:n?createTransform({scale:n,compose:i}):i}},blur:toConfig("blur",f.blur)},g={background:m.colors("background"),backgroundColor:m.colors("backgroundColor"),backgroundImage:m.propT("backgroundImage",f.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:f.bgClip},bgSize:m.prop("backgroundSize"),bgPosition:m.prop("backgroundPosition"),bg:m.colors("background"),bgColor:m.colors("backgroundColor"),bgPos:m.prop("backgroundPosition"),bgRepeat:m.prop("backgroundRepeat"),bgAttachment:m.prop("backgroundAttachment"),bgGradient:m.propT("backgroundImage",f.gradient),bgClip:{transform:f.bgClip}};Object.assign(g,{bgImage:g.backgroundImage,bgImg:g.backgroundImage});var v={border:m.borders("border"),borderWidth:m.borderWidths("borderWidth"),borderStyle:m.borderStyles("borderStyle"),borderColor:m.colors("borderColor"),borderRadius:m.radii("borderRadius"),borderTop:m.borders("borderTop"),borderBlockStart:m.borders("borderBlockStart"),borderTopLeftRadius:m.radii("borderTopLeftRadius"),borderStartStartRadius:m.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:m.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:m.radii("borderTopRightRadius"),borderStartEndRadius:m.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:m.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:m.borders("borderRight"),borderInlineEnd:m.borders("borderInlineEnd"),borderBottom:m.borders("borderBottom"),borderBlockEnd:m.borders("borderBlockEnd"),borderBottomLeftRadius:m.radii("borderBottomLeftRadius"),borderBottomRightRadius:m.radii("borderBottomRightRadius"),borderLeft:m.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:m.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:m.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:m.borders(["borderLeft","borderRight"]),borderInline:m.borders("borderInline"),borderY:m.borders(["borderTop","borderBottom"]),borderBlock:m.borders("borderBlock"),borderTopWidth:m.borderWidths("borderTopWidth"),borderBlockStartWidth:m.borderWidths("borderBlockStartWidth"),borderTopColor:m.colors("borderTopColor"),borderBlockStartColor:m.colors("borderBlockStartColor"),borderTopStyle:m.borderStyles("borderTopStyle"),borderBlockStartStyle:m.borderStyles("borderBlockStartStyle"),borderBottomWidth:m.borderWidths("borderBottomWidth"),borderBlockEndWidth:m.borderWidths("borderBlockEndWidth"),borderBottomColor:m.colors("borderBottomColor"),borderBlockEndColor:m.colors("borderBlockEndColor"),borderBottomStyle:m.borderStyles("borderBottomStyle"),borderBlockEndStyle:m.borderStyles("borderBlockEndStyle"),borderLeftWidth:m.borderWidths("borderLeftWidth"),borderInlineStartWidth:m.borderWidths("borderInlineStartWidth"),borderLeftColor:m.colors("borderLeftColor"),borderInlineStartColor:m.colors("borderInlineStartColor"),borderLeftStyle:m.borderStyles("borderLeftStyle"),borderInlineStartStyle:m.borderStyles("borderInlineStartStyle"),borderRightWidth:m.borderWidths("borderRightWidth"),borderInlineEndWidth:m.borderWidths("borderInlineEndWidth"),borderRightColor:m.colors("borderRightColor"),borderInlineEndColor:m.colors("borderInlineEndColor"),borderRightStyle:m.borderStyles("borderRightStyle"),borderInlineEndStyle:m.borderStyles("borderInlineEndStyle"),borderTopRadius:m.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:m.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:m.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:m.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(v,{rounded:v.borderRadius,roundedTop:v.borderTopRadius,roundedTopLeft:v.borderTopLeftRadius,roundedTopRight:v.borderTopRightRadius,roundedTopStart:v.borderStartStartRadius,roundedTopEnd:v.borderStartEndRadius,roundedBottom:v.borderBottomRadius,roundedBottomLeft:v.borderBottomLeftRadius,roundedBottomRight:v.borderBottomRightRadius,roundedBottomStart:v.borderEndStartRadius,roundedBottomEnd:v.borderEndEndRadius,roundedLeft:v.borderLeftRadius,roundedRight:v.borderRightRadius,roundedStart:v.borderInlineStartRadius,roundedEnd:v.borderInlineEndRadius,borderStart:v.borderInlineStart,borderEnd:v.borderInlineEnd,borderTopStartRadius:v.borderStartStartRadius,borderTopEndRadius:v.borderStartEndRadius,borderBottomStartRadius:v.borderEndStartRadius,borderBottomEndRadius:v.borderEndEndRadius,borderStartRadius:v.borderInlineStartRadius,borderEndRadius:v.borderInlineEndRadius,borderStartWidth:v.borderInlineStartWidth,borderEndWidth:v.borderInlineEndWidth,borderStartColor:v.borderInlineStartColor,borderEndColor:v.borderInlineEndColor,borderStartStyle:v.borderInlineStartStyle,borderEndStyle:v.borderInlineEndStyle});var y={color:m.colors("color"),textColor:m.colors("color"),fill:m.colors("fill"),stroke:m.colors("stroke")},b={boxShadow:m.shadows("boxShadow"),mixBlendMode:!0,blendMode:m.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:m.prop("backgroundBlendMode"),opacity:!0};Object.assign(b,{shadow:b.boxShadow});var x={filter:{transform:f.filter},blur:m.blur("--chakra-blur"),brightness:m.propT("--chakra-brightness",f.brightness),contrast:m.propT("--chakra-contrast",f.contrast),hueRotate:m.degreeT("--chakra-hue-rotate"),invert:m.propT("--chakra-invert",f.invert),saturate:m.propT("--chakra-saturate",f.saturate),dropShadow:m.propT("--chakra-drop-shadow",f.dropShadow),backdropFilter:{transform:f.backdropFilter},backdropBlur:m.blur("--chakra-backdrop-blur"),backdropBrightness:m.propT("--chakra-backdrop-brightness",f.brightness),backdropContrast:m.propT("--chakra-backdrop-contrast",f.contrast),backdropHueRotate:m.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:m.propT("--chakra-backdrop-invert",f.invert),backdropSaturate:m.propT("--chakra-backdrop-saturate",f.saturate)},S={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:f.flexDirection},experimental_spaceX:{static:{[u]:{marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"}},transform:createTransform({scale:"space",transform:e=>null!==e?{"--chakra-space-x":e}:null})},experimental_spaceY:{static:{[u]:{marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"}},transform:createTransform({scale:"space",transform:e=>null!=e?{"--chakra-space-y":e}:null})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:m.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:m.space("gap"),rowGap:m.space("rowGap"),columnGap:m.space("columnGap")};Object.assign(S,{flexDir:S.flexDirection});var k={gridGap:m.space("gridGap"),gridColumnGap:m.space("gridColumnGap"),gridRowGap:m.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},w={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:f.outline},outlineOffset:!0,outlineColor:m.colors("outlineColor")},_={width:m.sizesT("width"),inlineSize:m.sizesT("inlineSize"),height:m.sizes("height"),blockSize:m.sizes("blockSize"),boxSize:m.sizes(["width","height"]),minWidth:m.sizes("minWidth"),minInlineSize:m.sizes("minInlineSize"),minHeight:m.sizes("minHeight"),minBlockSize:m.sizes("minBlockSize"),maxWidth:m.sizes("maxWidth"),maxInlineSize:m.sizes("maxInlineSize"),maxHeight:m.sizes("maxHeight"),maxBlockSize:m.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:m.propT("float",f.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(_,{w:_.width,h:_.height,minW:_.minWidth,maxW:_.maxWidth,minH:_.minHeight,maxH:_.maxHeight,overscroll:_.overscrollBehavior,overscrollX:_.overscrollBehaviorX,overscrollY:_.overscrollBehaviorY});var C={listStyleType:!0,listStylePosition:!0,listStylePos:m.prop("listStylePosition"),listStyleImage:!0,listStyleImg:m.prop("listStyleImage")},T=(e=>{let t=new WeakMap;return(n,i,o,a)=>{if(void 0===n)return e(n,i,o);t.has(n)||t.set(n,new Map);let s=t.get(n);if(s.has(i))return s.get(i);let l=e(n,i,o,a);return s.set(i,l),l}})(function(e,t,n,i){let o="string"==typeof t?t.split("."):[t];for(i=0;i{let i={},o=T(e,t,{});for(let e in o){let t=e in n&&null!=n[e];t||(i[e]=o[e])}return i},j={position:!0,pos:m.prop("position"),zIndex:m.prop("zIndex","zIndices"),inset:m.spaceT("inset"),insetX:m.spaceT(["left","right"]),insetInline:m.spaceT("insetInline"),insetY:m.spaceT(["top","bottom"]),insetBlock:m.spaceT("insetBlock"),top:m.spaceT("top"),insetBlockStart:m.spaceT("insetBlockStart"),bottom:m.spaceT("bottom"),insetBlockEnd:m.spaceT("insetBlockEnd"),left:m.spaceT("left"),insetInlineStart:m.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:m.spaceT("right"),insetInlineEnd:m.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(j,{insetStart:j.insetInlineStart,insetEnd:j.insetInlineEnd});var R={ring:{transform:f.ring},ringColor:m.colors("--chakra-ring-color"),ringOffset:m.prop("--chakra-ring-offset-width"),ringOffsetColor:m.colors("--chakra-ring-offset-color"),ringInset:m.prop("--chakra-ring-inset")},M={margin:m.spaceT("margin"),marginTop:m.spaceT("marginTop"),marginBlockStart:m.spaceT("marginBlockStart"),marginRight:m.spaceT("marginRight"),marginInlineEnd:m.spaceT("marginInlineEnd"),marginBottom:m.spaceT("marginBottom"),marginBlockEnd:m.spaceT("marginBlockEnd"),marginLeft:m.spaceT("marginLeft"),marginInlineStart:m.spaceT("marginInlineStart"),marginX:m.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:m.spaceT("marginInline"),marginY:m.spaceT(["marginTop","marginBottom"]),marginBlock:m.spaceT("marginBlock"),padding:m.space("padding"),paddingTop:m.space("paddingTop"),paddingBlockStart:m.space("paddingBlockStart"),paddingRight:m.space("paddingRight"),paddingBottom:m.space("paddingBottom"),paddingBlockEnd:m.space("paddingBlockEnd"),paddingLeft:m.space("paddingLeft"),paddingInlineStart:m.space("paddingInlineStart"),paddingInlineEnd:m.space("paddingInlineEnd"),paddingX:m.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:m.space("paddingInline"),paddingY:m.space(["paddingTop","paddingBottom"]),paddingBlock:m.space("paddingBlock")};Object.assign(M,{m:M.margin,mt:M.marginTop,mr:M.marginRight,me:M.marginInlineEnd,marginEnd:M.marginInlineEnd,mb:M.marginBottom,ml:M.marginLeft,ms:M.marginInlineStart,marginStart:M.marginInlineStart,mx:M.marginX,my:M.marginY,p:M.padding,pt:M.paddingTop,py:M.paddingY,px:M.paddingX,pb:M.paddingBottom,pl:M.paddingLeft,ps:M.paddingInlineStart,paddingStart:M.paddingInlineStart,pr:M.paddingRight,pe:M.paddingInlineEnd,paddingEnd:M.paddingInlineEnd});var O={textDecorationColor:m.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:m.shadows("textShadow")},D={clipPath:!0,transform:m.propT("transform",f.transform),transformOrigin:!0,translateX:m.spaceT("--chakra-translate-x"),translateY:m.spaceT("--chakra-translate-y"),skewX:m.degreeT("--chakra-skew-x"),skewY:m.degreeT("--chakra-skew-y"),scaleX:m.prop("--chakra-scale-x"),scaleY:m.prop("--chakra-scale-y"),scale:m.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:m.degreeT("--chakra-rotate")},B={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:m.prop("transitionDuration","transition.duration"),transitionProperty:m.prop("transitionProperty","transition.property"),transitionTimingFunction:m.prop("transitionTimingFunction","transition.easing")},V={fontFamily:m.prop("fontFamily","fonts"),fontSize:m.prop("fontSize","fontSizes",f.px),fontWeight:m.prop("fontWeight","fontWeights"),lineHeight:m.prop("lineHeight","lineHeights"),letterSpacing:m.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(!0===e)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"}},I={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:m.spaceT("scrollMargin"),scrollMarginTop:m.spaceT("scrollMarginTop"),scrollMarginBottom:m.spaceT("scrollMarginBottom"),scrollMarginLeft:m.spaceT("scrollMarginLeft"),scrollMarginRight:m.spaceT("scrollMarginRight"),scrollMarginX:m.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:m.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:m.spaceT("scrollPadding"),scrollPaddingTop:m.spaceT("scrollPaddingTop"),scrollPaddingBottom:m.spaceT("scrollPaddingBottom"),scrollPaddingLeft:m.spaceT("scrollPaddingLeft"),scrollPaddingRight:m.spaceT("scrollPaddingRight"),scrollPaddingX:m.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:m.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function resolveReference(e){return(0,i.Kn)(e)&&e.reference?e.reference:String(e)}var toExpression=(e,...t)=>t.map(resolveReference).join(` ${e} `).replace(/calc/g,""),add=(...e)=>`calc(${toExpression("+",...e)})`,subtract=(...e)=>`calc(${toExpression("-",...e)})`,multiply=(...e)=>`calc(${toExpression("*",...e)})`,divide=(...e)=>`calc(${toExpression("/",...e)})`,negate=e=>{let t=resolveReference(e);return null==t||Number.isNaN(parseFloat(t))?multiply(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},F=Object.assign(e=>({add:(...t)=>F(add(e,...t)),subtract:(...t)=>F(subtract(e,...t)),multiply:(...t)=>F(multiply(e,...t)),divide:(...t)=>F(divide(e,...t)),negate:()=>F(negate(e)),toString:()=>e.toString()}),{add,subtract,multiply,divide,negate});function cssVar(e,t,n){let i=function(e,t=""){return function(e){let t=function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString());return(function(e){if(e.includes("\\."))return e;let t=!Number.isInteger(parseFloat(e.toString()));return t?e.replace(".","\\."):e})(t).replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}(`--${function(e,t=""){return[t,e].filter(Boolean).join("-")}(e,t)}`)}(e,n);return{variable:i,reference:`var(${i}${t?`, ${t}`:""})`}}function px(e){if(null==e)return e;let{unitless:t}=function(e){let t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e);return t||"number"==typeof e?`${e}px`:e}var sortByBreakpointValue=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,sortBps=e=>Object.fromEntries(Object.entries(e).sort(sortByBreakpointValue));function normalize(e){let t=sortBps(e);return Object.assign(Object.values(t),t)}function subtract2(e){var t;if(!e)return e;e=null!=(t=px(e))?t:e;let n=e.endsWith("px")?-.02:-.00125;return"number"==typeof e?`${e+n}`:e.replace(/(\d+\.?\d*)/u,e=>`${parseFloat(e)+n}`)}function toMediaQueryString(e,t){let n=["@media screen"];return e&&n.push("and",`(min-width: ${px(e)})`),t&&n.push("and",`(max-width: ${px(t)})`),n.join(" ")}var L={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}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},toGroup=e=>merge(t=>e(t,"&"),"[role=group]","[data-group]",".group"),toPeer=e=>merge(t=>e(t,"~ &"),"[data-peer]",".peer"),merge=(e,...t)=>t.map(e).join(", "),N={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:toGroup(L.hover),_peerHover:toPeer(L.hover),_groupFocus:toGroup(L.focus),_peerFocus:toPeer(L.focus),_groupFocusVisible:toGroup(L.focusVisible),_peerFocusVisible:toPeer(L.focusVisible),_groupActive:toGroup(L.active),_peerActive:toPeer(L.active),_groupDisabled:toGroup(L.disabled),_peerDisabled:toPeer(L.disabled),_groupInvalid:toGroup(L.invalid),_peerInvalid:toPeer(L.invalid),_groupChecked:toGroup(L.checked),_peerChecked:toPeer(L.checked),_groupFocusWithin:toGroup(L.focusWithin),_peerFocusWithin:toPeer(L.focusWithin),_peerPlaceholderShown:toPeer(L.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]"},$=Object.keys(N);function tokenToCssVar(e,t){return cssVar(String(e).replace(/\./g,"-"),void 0,t)}var W=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function flatten(e,t=1/0){return((0,i.Kn)(e)||Array.isArray(e))&&t?Object.entries(e).reduce((e,[n,o])=>((0,i.Kn)(o)||Array.isArray(o)?Object.entries(flatten(o,t-1)).forEach(([t,i])=>{e[`${n}.${t}`]=i}):e[n]=o,e),{}):e}function toCSSVar(e){var t;let n=function(e){let{__cssMap:t,__cssVars:n,__breakpoints:i,...o}=e;return o}(e),a=function(e,t){let n={};for(let i of t)i in e&&(n[i]=e[i]);return n}(n,W),s=n.semanticTokens,l=function({tokens:e,semanticTokens:t}){var n,i;let o=Object.entries(null!=(n=flatten(e))?n:{}).map(([e,t])=>[e,{isSemantic:!1,value:t}]),a=Object.entries(null!=(i=flatten(t,1))?i:{}).map(([e,t])=>[e,{isSemantic:!0,value:t}]);return Object.fromEntries([...o,...a])}({tokens:a,semanticTokens:s}),c=null==(t=n.config)?void 0:t.cssVarPrefix,{cssMap:u,cssVars:d}=function(e,t){let n={},a={};for(let[s,l]of Object.entries(e)){let{isSemantic:c,value:u}=l,{variable:d,reference:p}=tokenToCssVar(s,null==t?void 0:t.cssVarPrefix);if(!c){if(s.startsWith("space")){let e=s.split("."),[t,...n]=e,i=`${t}.-${n.join(".")}`,o=F.negate(u),l=F.negate(p);a[i]={value:o,var:d,varRef:l}}n[d]=u,a[s]={value:u,var:d,varRef:p};continue}let lookupToken=n=>{let i=String(s).split(".")[0],o=[i,n].join("."),a=e[o];if(!a)return n;let{reference:l}=tokenToCssVar(o,null==t?void 0:t.cssVarPrefix);return l},h=(0,i.Kn)(u)?u:{default:u};n=o(n,Object.entries(h).reduce((e,[t,n])=>{var i;let o=lookupToken(n);if("default"===t)return e[d]=o,e;let a=null!=(i=null==N?void 0:N[t])?i:t;return e[a]={[d]:o},e},{})),a[s]={value:p,var:d,varRef:p}}return{cssVars:n,cssMap:a}}(l,{cssVarPrefix:c});return Object.assign(n,{__cssVars:{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0",...d},__cssMap:u,__breakpoints:function(e){var t;if(!e)return null;e.base=null!=(t=e.base)?t:"0px";let n=normalize(e),o=Object.entries(e).sort(sortByBreakpointValue).map(([e,t],n,i)=>{var o;let[,a]=null!=(o=i[n+1])?o:[];return a=parseFloat(a)>0?subtract2(a):void 0,{_minW:subtract2(t),breakpoint:e,minW:t,maxW:a,maxWQuery:toMediaQueryString(null,a),minWQuery:toMediaQueryString(t),minMaxQuery:toMediaQueryString(t,a)}}),a=function(e){let t=Object.keys(sortBps(e));return new Set(t)}(e),s=Array.from(a.values());return{keys:a,normalized:n,isResponsive(e){let t=Object.keys(e);return t.length>0&&t.every(e=>a.has(e))},asObject:sortBps(e),asArray:normalize(e),details:o,media:[null,...n.map(e=>toMediaQueryString(e)).slice(1)],toArrayValue(e){if(!(0,i.Kn)(e))throw Error("toArrayValue: value must be an object");let t=s.map(t=>{var n;return null!=(n=e[t])?n:null});for(;null===function(e){let t=null==e?0:e.length;return t?e[t-1]:void 0}(t);)t.pop();return t},toObjectValue(e){if(!Array.isArray(e))throw Error("toObjectValue: value must be an array");return e.reduce((e,t,n)=>{let i=s[n];return null!=i&&null!=t&&(e[i]=t),e},{})}}}(n.breakpoints)}),n}var U=o({},g,v,y,S,_,x,R,w,k,{srOnly:{transform:e=>!0===e?P:"focusable"===e?E:{}},layerStyle:{processResult:!0,transform:(e,t,n)=>getWithPriority(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>getWithPriority(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>getWithPriority(t,e,n)}},j,b,M,I,V,O,D,C,B);Object.keys(Object.assign({},M,_,S,k,j));var H=[...Object.keys(U),...$],G={...U,...N},isStyleProp=e=>e in G,expandResponsive=e=>t=>{if(!t.__breakpoints)return e;let{isResponsive:n,toArrayValue:o,media:a}=t.__breakpoints,s={};for(let l in e){let c=(0,i.Pu)(e[l],t);if(null==c)continue;if(!Array.isArray(c=(0,i.Kn)(c)&&n(c)?o(c):c)){s[l]=c;continue}let u=c.slice(0,a.length).length;for(let e=0;ee.startsWith("--")&&"string"==typeof t&&!/^var\(--.+\)$/.test(t),resolveTokenValue=(e,t)=>{var n,i;if(null==t)return t;let getVar=t=>{var n,i;return null==(i=null==(n=e.__cssMap)?void 0:n[t])?void 0:i.varRef},getValue=e=>{var t;return null!=(t=getVar(e))?t:e},[o,a]=function(e){let t=[],n="",i=!1;for(let o=0;ot=>{let n=function(e){let{configs:t={},pseudos:n={},theme:a}=e,css2=(e,s=!1)=>{var l,c,u;let d=(0,i.Pu)(e,a),p=expandResponsive(d)(a),h={};for(let e in p){let f=p[e],m=(0,i.Pu)(f,a);e in n&&(e=n[e]),isCSSVariableTokenValue(e,m)&&(m=resolveTokenValue(a,m));let g=t[e];if(!0===g&&(g={property:e}),(0,i.Kn)(m)){h[e]=null!=(l=h[e])?l:{},h[e]=o({},h[e],css2(m,!0));continue}let v=null!=(u=null==(c=null==g?void 0:g.transform)?void 0:c.call(g,m,a,d))?u:m;v=(null==g?void 0:g.processResult)?css2(v,!0):v;let y=(0,i.Pu)(null==g?void 0:g.property,a);if(!s&&(null==g?void 0:g.static)){let e=(0,i.Pu)(g.static,a);h=o({},h,e)}if(y&&Array.isArray(y)){for(let e of y)h[e]=v;continue}if(y){"&"===y&&(0,i.Kn)(v)?h=o({},h,v):h[y]=v;continue}if((0,i.Kn)(v)){h=o({},h,v);continue}h[e]=v}return h};return css2}({theme:t,pseudos:N,configs:U});return n(e)};function defineStyle(e){return e}function defineStyleConfig(e){return e}function createMultiStyleConfigHelpers(e){return{definePartsStyle:e=>e,defineMultiStyleConfig:t=>({parts:e,...t})}}function resolveStyleConfig(e){return t=>{var n;let{variant:a,size:s,theme:l}=t,c=function(e){let t=e.__breakpoints;return function(e,n,a,s){var l,c,u;if(!t)return;let d={},p=(u=t.toArrayValue,Array.isArray(a)?a:(0,i.Kn)(a)?u(a):null!=a?[a]:void 0);if(!p)return d;let h=p.length,f=1===h,m=!!e.parts;for(let a=0;a{o(d,{[e]:f?v[e]:{[g]:v[e]}})});continue}if(!m){f?o(d,v):d[g]=v;continue}d[g]=v}}return d}}(l);return o({},(0,i.Pu)(null!=(n=e.baseStyle)?n:{},t),c(e,"sizes",s,t),c(e,"variants",a,t))}}function omitThemingProps(e){return function(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}(e,["styleConfig","size","variant","colorScheme"])}},3216:function(e,t,n){"use strict";n.d(t,{x:function(){return shouldForwardProp}});var i=n(3179),o=new Set([...i.cC,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),a=new Set(["htmlWidth","htmlHeight","htmlSize"]);function shouldForwardProp(e){return a.has(e)||!o.has(e)}},4629:function(e,t,n){"use strict";n.d(t,{LP:function(){return getToken},uP:function(){return useChakra}});var i=n(7323),o=n(2498);function useChakra(){let e=(0,o.If)(),t=(0,i.F)();return{...e,theme:t}}function getToken(e,t,n){let i=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return n=>{let a=o.filter(Boolean),s=i.map((t,i)=>{var o,s;if("breakpoints"===e)return function(e,t,n){var i,o;if(null==t)return t;let getValue=t=>{var n,i;return null==(i=null==(n=e.__breakpoints)?void 0:n.asArray)?void 0:i[t]};return null!=(o=null!=(i=getValue(t))?i:getValue(n))?o:n}(n,t,null!=(o=a[i])?o:t);let l=`${e}.${t}`;return function(e,t,n){var i,o;if(null==t)return t;let getValue=t=>{var n,i;return null==(i=null==(n=e.__cssMap)?void 0:n[t])?void 0:i.value};return null!=(o=null!=(i=getValue(t))?i:getValue(n))?o:n}(n,l,null!=(s=a[i])?s:t)});return Array.isArray(t)?s:s[0]}}},5523:function(e,t,n){"use strict";n.d(t,{m:function(){return h}});var i,o=n(3216),a=n(2498),s=n(3179),l=n(1759),c=n(6597),u=n(6829),d=n(7294),p=null!=(i=u.Z.default)?i:u.Z,toCSSObject=({baseStyle:e})=>t=>{let{theme:n,css:i,__css:o,sx:a,...u}=t,d=(0,l.lw)(u,(e,t)=>(0,s.ZR)(t)),p=(0,c.Pu)(e,t),h=Object.assign({},o,p,(0,l.YU)(d),a),f=(0,s.iv)(h)(t.theme);return i?[f,i]:f};function styled(e,t){let{baseStyle:n,...i}=null!=t?t:{};i.shouldForwardProp||(i.shouldForwardProp=o.x);let s=toCSSObject({baseStyle:n}),l=p(e,i)(s),c=d.forwardRef(function(e,t){let{colorMode:n,forced:i}=(0,a.If)();return d.createElement(l,{ref:t,"data-theme":i?n:void 0,...e})});return c}var h=function(){let e=new Map;return new Proxy(styled,{apply:(e,t,n)=>styled(...n),get:(t,n)=>(e.has(n)||e.set(n,styled(n)),e.get(n))})}()},7323:function(e,t,n){"use strict";n.d(t,{F:function(){return useTheme}});var i=n(1683),o=n(7294);function useTheme(){let e=(0,o.useContext)(i.T);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}},5059:function(e,t,n){"use strict";n.d(t,{G:function(){return forwardRef}});var i=n(7294);function forwardRef(e){return(0,i.forwardRef)(e)}},1639:function(e,t,n){"use strict";n.d(t,{jC:function(){return useMultiStyleConfig},mq:function(){return useStyleConfig}});var i=n(4629),o=n(3179),a=n(1759),s=n(8554),l=n(7294),c=n(9590);function useStyleConfigImpl(e,t={}){var n;let{styleConfig:u,...d}=t,{theme:p,colorMode:h}=(0,i.uP)(),f=e?(0,a.Wf)(p,`components.${e}`):void 0,m=u||f,g=s({theme:p,colorMode:h},null!=(n=null==m?void 0:m.defaultProps)?n:{},(0,a.YU)((0,a.CE)(d,["children"]))),v=(0,l.useRef)({});if(m){let e=(0,o.Ud)(m),t=e(g),n=c(v.current,t);n||(v.current=t)}return v.current}function useStyleConfig(e,t={}){return useStyleConfigImpl(e,t)}function useMultiStyleConfig(e,t={}){return useStyleConfigImpl(e,t)}},6597:function(e,t,n){"use strict";function runIfFn(e,...t){return"function"==typeof e?e(...t):e}n.d(t,{Pu:function(){return runIfFn}})},1759:function(e,t,n){"use strict";function omit(e,t){let n={};return Object.keys(e).forEach(i=>{t.includes(i)||(n[i]=e[i])}),n}n.d(t,{CE:function(){return omit},Wf:function(){return i},YU:function(){return filterUndefined},lw:function(){return objectFilter}}),n(8554);var i=(e=>{let t=new WeakMap;return(n,i,o,a)=>{if(void 0===n)return e(n,i,o);t.has(n)||t.set(n,new Map);let s=t.get(n);if(s.has(i))return s.get(i);let l=e(n,i,o,a);return s.set(i,l),l}})(function(e,t,n,i){let o="string"==typeof t?t.split("."):[t];for(i=0;i{let o=e[i],a=t(o,i,e);a&&(n[i]=o)}),n}var filterUndefined=e=>objectFilter(e,e=>null!=e)},2729:function(e,t,n){"use strict";function _tagged_template_literal(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{_:function(){return _tagged_template_literal}})},5947:function(e,t,n){"use strict";n.d(t,{hO:function(){return useIsPresent},oO:function(){return usePresence}});var i=n(7294),o=n(240);function usePresence(){let e=(0,i.useContext)(o.O);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:a}=e,s=(0,i.useId)();return(0,i.useEffect)(()=>a(s),[]),!t&&n?[!1,()=>n&&n(s)]:[!0]}function useIsPresent(){var e;return null===(e=(0,i.useContext)(o.O))||e.isPresent}},5364:function(e,t,n){"use strict";n.d(t,{p:function(){return o}});var i=n(7294);let o=(0,i.createContext)({})},6014:function(e,t,n){"use strict";n.d(t,{_:function(){return o}});var i=n(7294);let o=(0,i.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},240:function(e,t,n){"use strict";n.d(t,{O:function(){return o}});var i=n(7294);let o=(0,i.createContext)(null)},9727:function(e,t,n){"use strict";n.d(t,{Z:function(){return createRenderBatcher}});var i=n(2081);let Queue=class Queue{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){let t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}};let o=["read","resolveKeyframes","update","preRender","render","postRender"];function createRenderBatcher(e,t){let n=!1,a=!0,s={delta:0,timestamp:0,isProcessing:!1},l=o.reduce((e,t)=>(e[t]=function(e){let t=new Queue,n=new Queue,i=0,o=!1,a=!1,s=new WeakSet,l={schedule:(e,a=!1,l=!1)=>{let c=l&&o,u=c?t:n;return a&&s.add(e),u.add(e)&&c&&o&&(i=t.order.length),e},cancel:e=>{n.remove(e),s.delete(e)},process:c=>{if(o){a=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),i=t.order.length)for(let n=0;nn=!0),e),{}),processStep=e=>{l[e].process(s)},processBatch=()=>{let l=i.c.useManualTiming?s.timestamp:performance.now();n=!1,s.delta=a?1e3/60:Math.max(Math.min(l-s.timestamp,40),1),s.timestamp=l,s.isProcessing=!0,o.forEach(processStep),s.isProcessing=!1,n&&t&&(a=!1,e(processBatch))},wake=()=>{n=!0,a=!0,s.isProcessing||e(processBatch)},c=o.reduce((e,t)=>{let i=l[t];return e[t]=(e,t=!1,o=!1)=>(n||wake(),i.schedule(e,t,o)),e},{});return{schedule:c,cancel:e=>o.forEach(t=>l[t].cancel(e)),state:s,steps:l}}},6166:function(e,t,n){"use strict";n.d(t,{Pn:function(){return s},S6:function(){return c},Wi:function(){return a},frameData:function(){return l}});var i=n(1662),o=n(9727);let{schedule:a,cancel:s,state:l,steps:c}=(0,o.Z)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:i.Z,!0)},7672:function(e,t,n){"use strict";let i,o;n.d(t,{E:function(){return tj}});var a,s,l=n(5893),c=n(7294),u=n(6014);let d=(0,c.createContext)({});var p=n(240),h=n(8868);let f=(0,c.createContext)({strict:!1}),camelToDash=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),m="data-"+camelToDash("framerAppearId");var g=n(9727);let{schedule:v,cancel:y}=(0,g.Z)(queueMicrotask,!1);function isRefObject(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function isVariantLabel(e){return"string"==typeof e||Array.isArray(e)}function isAnimationControls(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}let b=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],x=["initial",...b];function isControllingVariants(e){return isAnimationControls(e.animate)||x.some(t=>isVariantLabel(e[t]))}function isVariantNode(e){return!!(isControllingVariants(e)||e.variants)}function variantLabelsAsDependency(e){return Array.isArray(e)?e.join(" "):e}let S={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"]},k={};for(let e in S)k[e]={isEnabled:t=>S[e].some(e=>!!t[e])};var w=n(1741),_=n(5364);let C=(0,c.createContext)({}),T=Symbol.for("motionComponentSymbol"),P=["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 isSVGComponent(e){if("string"!=typeof e||e.includes("-"));else if(P.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let E={},j=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],R=new Set(j);function isForcedMotionValue(e,{layout:t,layoutId:n}){return R.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!E[e]||"opacity"===e)}let isMotionValue=e=>!!(e&&e.getVelocity),M={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},O=j.length,checkStringStartsWith=e=>t=>"string"==typeof t&&t.startsWith(e),D=checkStringStartsWith("--"),B=checkStringStartsWith("var(--"),isCSSVariableToken=e=>{let t=B(e);return!!t&&V.test(e.split("/*")[0].trim())},V=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,getValueAsType=(e,t)=>t&&"number"==typeof e?t.transform(e):e,clamp=(e,t,n)=>n>t?t:n"number"==typeof e,parse:parseFloat,transform:e=>e},F={...I,transform:e=>clamp(0,1,e)},L={...I,default:1},sanitize=e=>Math.round(1e5*e)/1e5,N=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,$=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,W=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function isString(e){return"string"==typeof e}let createUnitType=e=>({test:t=>isString(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),U=createUnitType("deg"),H=createUnitType("%"),G=createUnitType("px"),q=createUnitType("vh"),K=createUnitType("vw"),X={...H,parse:e=>H.parse(e)/100,transform:e=>H.transform(100*e)},Y={...I,transform:Math.round},Z={borderWidth:G,borderTopWidth:G,borderRightWidth:G,borderBottomWidth:G,borderLeftWidth:G,borderRadius:G,radius:G,borderTopLeftRadius:G,borderTopRightRadius:G,borderBottomRightRadius:G,borderBottomLeftRadius:G,width:G,maxWidth:G,height:G,maxHeight:G,size:G,top:G,right:G,bottom:G,left:G,padding:G,paddingTop:G,paddingRight:G,paddingBottom:G,paddingLeft:G,margin:G,marginTop:G,marginRight:G,marginBottom:G,marginLeft:G,rotate:U,rotateX:U,rotateY:U,rotateZ:U,scale:L,scaleX:L,scaleY:L,scaleZ:L,skew:U,skewX:U,skewY:U,distance:G,translateX:G,translateY:G,translateZ:G,x:G,y:G,z:G,perspective:G,transformPerspective:G,opacity:F,originX:X,originY:X,originZ:G,zIndex:Y,backgroundPositionX:G,backgroundPositionY:G,fillOpacity:F,strokeOpacity:F,numOctaves:Y};function buildHTMLStyles(e,t,n,i){let{style:o,vars:a,transform:s,transformOrigin:l}=e,c=!1,u=!1,d=!0;for(let e in t){let n=t[e];if(D(e)){a[e]=n;continue}let i=Z[e],p=getValueAsType(n,i);if(R.has(e)){if(c=!0,s[e]=p,!d)continue;n!==(i.default||0)&&(d=!1)}else e.startsWith("origin")?(u=!0,l[e]=p):o[e]=p}if(!t.transform&&(c||i?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},i,o){let a="";for(let t=0;t({style:{},transform:{},transformOrigin:{},vars:{}});function copyRawValuesOnly(e,t,n){for(let i in t)isMotionValue(t[i])||isForcedMotionValue(i,n)||(e[i]=t[i])}function useHTMLProps(e,t,n){let i={},o=function(e,t,n){let i=e.style||{},o={};return copyRawValuesOnly(o,i,e),Object.assign(o,function({transformTemplate:e},t,n){return(0,c.useMemo)(()=>{let i=createHtmlRenderState();return buildHTMLStyles(i,t,{enableHardwareAcceleration:!n},e),Object.assign({},i.vars,i.style)},[t])}(e,t,n)),o}(e,t,n);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=o,i}let J=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function isValidMotionProp(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||J.has(e)}let shouldForward=e=>!isValidMotionProp(e);try{(a=require("@emotion/is-prop-valid").default)&&(shouldForward=e=>e.startsWith("on")?!isValidMotionProp(e):a(e))}catch(e){}function calcOrigin(e,t,n){return"string"==typeof e?e:G.transform(t+n*e)}let Q={offset:"stroke-dashoffset",array:"stroke-dasharray"},ee={offset:"strokeDashoffset",array:"strokeDasharray"};function buildSVGAttrs(e,{attrX:t,attrY:n,attrScale:i,originX:o,originY:a,pathLength:s,pathSpacing:l=1,pathOffset:c=0,...u},d,p,h){if(buildHTMLStyles(e,u,d,h),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:f,style:m,dimensions:g}=e;f.transform&&(g&&(m.transform=f.transform),delete f.transform),g&&(void 0!==o||void 0!==a||m.transform)&&(m.transformOrigin=function(e,t,n){let i=calcOrigin(t,e.x,e.width),o=calcOrigin(n,e.y,e.height);return`${i} ${o}`}(g,void 0!==o?o:.5,void 0!==a?a:.5)),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==i&&(f.scale=i),void 0!==s&&function(e,t,n=1,i=0,o=!0){e.pathLength=1;let a=o?Q:ee;e[a.offset]=G.transform(-i);let s=G.transform(t),l=G.transform(n);e[a.array]=`${s} ${l}`}(f,s,l,c,!1)}let createSvgRenderState=()=>({...createHtmlRenderState(),attrs:{}}),isSVGTag=e=>"string"==typeof e&&"svg"===e.toLowerCase();function useSVGProps(e,t,n,i){let o=(0,c.useMemo)(()=>{let n=createSvgRenderState();return buildSVGAttrs(n,t,{enableHardwareAcceleration:!1},isSVGTag(i),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};copyRawValuesOnly(t,e.style,e),o.style={...t,...o.style}}return o}function renderHTML(e,{style:t,vars:n},i,o){for(let a in Object.assign(e.style,t,o&&o.getProjectionStyles(i)),n)e.style.setProperty(a,n[a])}let et=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 renderSVG(e,t,n,i){for(let n in renderHTML(e,t,void 0,i),t.attrs)e.setAttribute(et.has(n)?n:camelToDash(n),t.attrs[n])}function scrapeMotionValuesFromProps(e,t,n){var i;let{style:o}=e,a={};for(let s in o)(isMotionValue(o[s])||t.style&&isMotionValue(t.style[s])||isForcedMotionValue(s,e)||(null===(i=null==n?void 0:n.getValue(s))||void 0===i?void 0:i.liveStyle)!==void 0)&&(a[s]=o[s]);return a}function scrape_motion_values_scrapeMotionValuesFromProps(e,t,n){let i=scrapeMotionValuesFromProps(e,t,n);for(let n in e)if(isMotionValue(e[n])||isMotionValue(t[n])){let t=-1!==j.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;i[t]=e[n]}return i}function resolveVariantFromProps(e,t,n,i={},o={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,i,o)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,i,o)),t}var er=n(6681);let isKeyframesTarget=e=>Array.isArray(e),isCustomValue=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),resolveFinalValueInKeyframes=e=>isKeyframesTarget(e)?e[e.length-1]||0:e;function resolveMotionValue(e){let t=isMotionValue(e)?e.get():e;return isCustomValue(t)?t.toValue():t}let makeUseVisualState=e=>(t,n)=>{let i=(0,c.useContext)(d),o=(0,c.useContext)(p.O),make=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},i,o,a){let s={latestValues:function(e,t,n,i){let o={},a=i(e,{});for(let e in a)o[e]=resolveMotionValue(a[e]);let{initial:s,animate:l}=e,c=isControllingVariants(e),u=isVariantNode(e);t&&u&&!c&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===l&&(l=t.animate));let d=!!n&&!1===n.initial;d=d||!1===s;let p=d?l:s;if(p&&"boolean"!=typeof p&&!isAnimationControls(p)){let t=Array.isArray(p)?p:[p];t.forEach(t=>{let n=resolveVariantFromProps(e,t);if(!n)return;let{transitionEnd:i,transition:a,...s}=n;for(let e in s){let t=s[e];if(Array.isArray(t)){let e=d?t.length-1:0;t=t[e]}null!==t&&(o[e]=t)}for(let e in i)o[e]=i[e]})}return o}(i,o,a,e),renderState:t()};return n&&(s.mount=e=>n(i,e,s)),s})(e,t,i,o);return n?make():(0,er.h)(make)};var en=n(6166);let ei={useVisualState:makeUseVisualState({scrapeMotionValuesFromProps:scrape_motion_values_scrapeMotionValuesFromProps,createRenderState:createSvgRenderState,onMount:(e,t,{renderState:n,latestValues:i})=>{en.Wi.read(()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}}),en.Wi.render(()=>{buildSVGAttrs(n,i,{enableHardwareAcceleration:!1},isSVGTag(t.tagName),e.transformTemplate),renderSVG(t,n)})}})},eo={useVisualState:makeUseVisualState({scrapeMotionValuesFromProps:scrapeMotionValuesFromProps,createRenderState:createHtmlRenderState})};function addDomEvent(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}let isPrimaryPointer=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function extractEventInfo(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}let addPointerInfo=e=>t=>isPrimaryPointer(t)&&e(t,extractEventInfo(t));function addPointerEvent(e,t,n,i){return addDomEvent(e,t,addPointerInfo(n),i)}let combineFunctions=(e,t)=>n=>t(e(n)),pipe=(...e)=>e.reduce(combineFunctions);function createLock(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let ea=createLock("dragHorizontal"),es=createLock("dragVertical");function getGlobalLock(e){let t=!1;if("y"===e)t=es();else if("x"===e)t=ea();else{let e=ea(),n=es();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function isDragActive(){let e=getGlobalLock(!0);return!e||(e(),!1)}let Feature=class Feature{constructor(e){this.isMounted=!1,this.node=e}update(){}};function addHoverEvent(e,t){let n=t?"pointerenter":"pointerleave",i=t?"onHoverStart":"onHoverEnd";return addPointerEvent(e.current,n,(n,o)=>{if("touch"===n.pointerType||isDragActive())return;let a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);let s=a[i];s&&en.Wi.postRender(()=>s(n,o))},{passive:!e.getProps()[i]})}let isNodeOrChild=(e,t)=>!!t&&(e===t||isNodeOrChild(e,t.parentElement));var el=n(1662);function fireSyntheticPointerEvent(e,t){if(!t)return;let n=new PointerEvent("pointer"+e);t(n,extractEventInfo(n))}let ec=new WeakMap,eu=new WeakMap,fireObserverCallback=e=>{let t=ec.get(e.target);t&&t(e)},fireAllObserverCallbacks=e=>{e.forEach(fireObserverCallback)},ed={some:0,all:1};function shallowCompare(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let i=0;it[n]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}let secondsToMilliseconds=e=>1e3*e,millisecondsToSeconds=e=>e/1e3,ep={type:"spring",stiffness:500,damping:25,restSpeed:10},criticallyDampedSpring=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),eh={type:"keyframes",duration:.8},ef={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},getDefaultTransition=(e,{keyframes:t})=>t.length>2?eh:R.has(e)?e.startsWith("scale")?criticallyDampedSpring(t[1]):ep:ef;function getValueTransition(e,t){return e[t]||e.default||e}var em=n(2081);let eg={current:!1},isNotNull=e=>null!==e;function getFinalKeyframe(e,{repeat:t,repeatType:n="loop"},i){let o=e.filter(isNotNull),a=t&&"loop"!==n&&t%2==1?0:o.length-1;return a&&void 0!==i?i:o[a]}function clearTime(){i=void 0}let ev={now:()=>(void 0===i&&ev.set(en.frameData.isProcessing||em.c.useManualTiming?en.frameData.timestamp:performance.now()),i),set:e=>{i=e,queueMicrotask(clearTime)}},isZeroValueString=e=>/^0[^.\s]+$/u.test(e);var ey=n(5487);let isNumericalString=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),eb=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ex=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),isNumOrPxType=e=>e===I||e===G,getPosFromMatrix=(e,t)=>parseFloat(e.split(", ")[t]),getTranslateFromMatrix=(e,t)=>(n,{transform:i})=>{if("none"===i||!i)return 0;let o=i.match(/^matrix3d\((.+)\)$/u);if(o)return getPosFromMatrix(o[1],t);{let t=i.match(/^matrix\((.+)\)$/u);return t?getPosFromMatrix(t[1],e):0}},eS=new Set(["x","y","z"]),ek=j.filter(e=>!eS.has(e)),ew={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),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:getTranslateFromMatrix(4,13),y:getTranslateFromMatrix(5,14)};ew.translateX=ew.x,ew.translateY=ew.y;let testValueType=e=>t=>t.test(e),e_=[I,G,H,U,K,q,{test:e=>"auto"===e,parse:e=>e}],findDimensionValueType=e=>e_.find(testValueType(e)),eC=new Set,eT=!1,eP=!1;function measureAllKeyframes(){if(eP){let e=Array.from(eC).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=function(e){let t=[];return ek.forEach(n=>{let i=e.getValue(n);void 0!==i&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{var i;null===(i=e.getValue(t))||void 0===i||i.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}eP=!1,eT=!1,eC.forEach(e=>e.complete()),eC.clear()}function readAllKeyframes(){eC.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eP=!0)})}let KeyframeResolver=class KeyframeResolver{constructor(e,t,n,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(eC.add(this),eT||(eT=!0,en.Wi.read(readAllKeyframes),en.Wi.resolveKeyframes(measureAllKeyframes))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:i}=this;for(let o=0;on=>!!(isString(n)&&W.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),splitColor=(e,t,n)=>i=>{if(!isString(i))return i;let[o,a,s,l]=i.match(N);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(s),alpha:void 0!==l?parseFloat(l):1}},clampRgbUnit=e=>clamp(0,255,e),eA={...I,transform:e=>Math.round(clampRgbUnit(e))},eE={test:isColorString("rgb","red"),parse:splitColor("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+eA.transform(e)+", "+eA.transform(t)+", "+eA.transform(n)+", "+sanitize(F.transform(i))+")"},ej={test:isColorString("#"),parse:function(e){let t="",n="",i="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,i+=i,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}},transform:eE.transform},eR={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+H.transform(sanitize(t))+", "+H.transform(sanitize(n))+", "+sanitize(F.transform(i))+")"},eM={test:e=>eE.test(e)||ej.test(e)||eR.test(e),parse:e=>eE.test(e)?eE.parse(e):eR.test(e)?eR.parse(e):ej.parse(e),transform:e=>isString(e)?e:e.hasOwnProperty("red")?eE.transform(e):eR.transform(e)},eO="number",eD="color",eB=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function analyseComplexValue(e){let t=e.toString(),n=[],i={color:[],number:[],var:[]},o=[],a=0,s=t.replace(eB,e=>(eM.test(e)?(i.color.push(a),o.push(eD),n.push(eM.parse(e))):e.startsWith("var(")?(i.var.push(a),o.push("var"),n.push(e)):(i.number.push(a),o.push(eO),n.push(parseFloat(e))),++a,"${}")),l=s.split("${}");return{values:n,split:l,indexes:i,types:o}}function parseComplexValue(e){return analyseComplexValue(e).values}function createTransformer(e){let{split:t,types:n}=analyseComplexValue(e),i=t.length;return e=>{let o="";for(let a=0;a"number"==typeof e?0:e,eV={test:function(e){var t,n;return isNaN(e)&&isString(e)&&((null===(t=e.match(N))||void 0===t?void 0:t.length)||0)+((null===(n=e.match($))||void 0===n?void 0:n.length)||0)>0},parse:parseComplexValue,createTransformer,getAnimatableNone:function(e){let t=parseComplexValue(e),n=createTransformer(e);return n(t.map(convertNumbersToZero))}},ez=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[i]=n.match(N)||[];if(!i)return e;let o=n.replace(i,""),a=ez.has(t)?1:0;return i!==n&&(a*=100),t+"("+a+o+")"}let eI=/\b([a-z-]*)\(.*?\)/gu,eF={...eV,getAnimatableNone:e=>{let t=e.match(eI);return t?t.map(applyDefaultFilter).join(" "):e}},eL={...Z,color:eM,backgroundColor:eM,outlineColor:eM,fill:eM,stroke:eM,borderColor:eM,borderTopColor:eM,borderRightColor:eM,borderBottomColor:eM,borderLeftColor:eM,filter:eF,WebkitFilter:eF},getDefaultValueType=e=>eL[e];function animatable_none_getAnimatableNone(e,t){let n=getDefaultValueType(e);return n!==eF&&(n=eV),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let eN=new Set(["auto","none","0"]);let DOMKeyframesResolver=class DOMKeyframesResolver extends KeyframeResolver{constructor(e,t,n,i){super(e,t,n,i,null==i?void 0:i.owner,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t.current)return;super.readKeyframes();for(let n=0;n{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}};let isAnimatable=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eV.test(e)||"0"===e)&&!e.startsWith("url("));let BaseAnimation=class BaseAnimation{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:e,delay:t,type:n,repeat:i,repeatDelay:o,repeatType:a,...s},this.updateFinishedPromise()}get resolved(){return this._resolved||this.hasAttemptedResolve||(readAllKeyframes(),measureAllKeyframes()),this._resolved}onKeyframesResolved(e,t){this.hasAttemptedResolve=!0;let{name:n,type:i,velocity:o,delay:a,onComplete:s,onUpdate:l,isGenerator:c}=this.options;if(!c&&!function(e,t,n,i){let o=e[0];if(null===o)return!1;let a=e[e.length-1],s=isAnimatable(o,t),l=isAnimatable(a,t);return(0,ey.K)(s===l,`You are trying to animate ${t} from "${o}" to "${a}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${a} via the \`style\` property.`),!!s&&!!l&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n{this.resolveFinishedPromise=e})}};function calcGeneratorVelocity(e,t,n){var i,o;let a=Math.max(t-5,0);return i=n-e(a),(o=t-a)?i*(1e3/o):0}function calcAngularFreq(e,t){return e*Math.sqrt(1-t*t)}let e$=["duration","bounce"],eW=["stiffness","damping","mass"];function isSpringType(e,t){return t.some(t=>void 0!==e[t])}function spring({keyframes:e,restDelta:t,restSpeed:n,...i}){let o;let a=e[0],s=e[e.length-1],l={done:!1,value:a},{stiffness:c,damping:u,mass:d,duration:p,velocity:h,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!isSpringType(e,eW)&&isSpringType(e,e$)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:i=1}){let o,a;(0,ey.K)(e<=secondsToMilliseconds(10),"Spring duration must be 10 seconds or less");let s=1-t;s=clamp(.05,1,s),e=clamp(.01,10,millisecondsToSeconds(e)),s<1?(o=t=>{let i=t*s,o=i*e,a=calcAngularFreq(t,s);return .001-(i-n)/a*Math.exp(-o)},a=t=>{let i=t*s,a=i*e,l=Math.pow(s,2)*Math.pow(t,2)*e,c=calcAngularFreq(Math.pow(t,2),s),u=-o(t)+.001>0?-1:1;return u*((a*n+n-l)*Math.exp(-a))/c}):(o=t=>{let i=Math.exp(-t*e),o=(t-n)*e+1;return -.001+i*o},a=t=>{let i=Math.exp(-t*e),o=(n-t)*(e*e);return i*o});let l=5/e,c=function(e,t,n){let i=n;for(let n=1;n<12;n++)i-=e(i)/t(i);return i}(o,a,l);if(e=secondsToMilliseconds(e),isNaN(c))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(c,2)*i;return{stiffness:t,damping:2*s*Math.sqrt(i*t),duration:e}}}(e);(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...i,velocity:-millisecondsToSeconds(i.velocity||0)}),m=h||0,g=u/(2*Math.sqrt(c*d)),v=s-a,y=millisecondsToSeconds(Math.sqrt(c/d)),b=5>Math.abs(v);if(n||(n=b?.01:2),t||(t=b?.005:.5),g<1){let e=calcAngularFreq(y,g);o=t=>{let n=Math.exp(-g*y*t);return s-n*((m+g*y*v)/e*Math.sin(e*t)+v*Math.cos(e*t))}}else if(1===g)o=e=>s-Math.exp(-y*e)*(v+(m+y*v)*e);else{let e=y*Math.sqrt(g*g-1);o=t=>{let n=Math.exp(-g*y*t),i=Math.min(e*t,300);return s-n*((m+g*y*v)*Math.sinh(i)+e*v*Math.cosh(i))/e}}return{calculatedDuration:f&&p||null,next:e=>{let i=o(e);if(f)l.done=e>=p;else{let a=m;0!==e&&(a=g<1?calcGeneratorVelocity(o,e,i):0);let c=Math.abs(a)<=n,u=Math.abs(s-i)<=t;l.done=c&&u}return l.value=l.done?s:i,l}}}function inertia({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:s,min:l,max:c,restDelta:u=.5,restSpeed:d}){let p,h;let f=e[0],m={done:!1,value:f},isOutOfBounds=e=>void 0!==l&&ec,nearestBoundary=e=>void 0===l?c:void 0===c?l:Math.abs(l-e)-g*Math.exp(-e/i),calcLatest=e=>y+calcDelta(e),applyFriction=e=>{let t=calcDelta(e),n=calcLatest(e);m.done=Math.abs(t)<=u,m.value=m.done?y:n},checkCatchBoundary=e=>{isOutOfBounds(m.value)&&(p=e,h=spring({keyframes:[m.value,nearestBoundary(m.value)],velocity:calcGeneratorVelocity(calcLatest,e,m.value),damping:o,stiffness:a,restDelta:u,restSpeed:d}))};return checkCatchBoundary(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==p||(t=!0,applyFriction(e),checkCatchBoundary(e)),void 0!==p&&e>=p)?h.next(e-p):(t||applyFriction(e),m)}}}let calcBezier=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function cubicBezier(e,t,n,i){if(e===t&&n===i)return el.Z;let getTForX=t=>(function(e,t,n,i,o){let a,s;let l=0;do(a=calcBezier(s=t+(n-t)/2,i,o)-e)>0?n=s:t=s;while(Math.abs(a)>1e-7&&++l<12);return s})(t,0,1,e,n);return e=>0===e||1===e?e:calcBezier(getTForX(e),t,i)}let eU=cubicBezier(.42,0,1,1),eH=cubicBezier(0,0,.58,1),eG=cubicBezier(.42,0,.58,1),isEasingArray=e=>Array.isArray(e)&&"number"!=typeof e[0],mirrorEasing=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,reverseEasing=e=>t=>1-e(1-t),circIn=e=>1-Math.sin(Math.acos(e)),eK=reverseEasing(circIn),eX=mirrorEasing(circIn),eY=cubicBezier(.33,1.53,.69,.99),eZ=reverseEasing(eY),eJ=mirrorEasing(eZ),eQ={linear:el.Z,easeIn:eU,easeInOut:eG,easeOut:eH,circIn:circIn,circInOut:eX,circOut:eK,backIn:eZ,backInOut:eJ,backOut:eY,anticipate:e=>(e*=2)<1?.5*eZ(e):.5*(2-Math.pow(2,-10*(e-1)))},easingDefinitionToFunction=e=>{if(Array.isArray(e)){(0,ey.k)(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,i,o]=e;return cubicBezier(t,n,i,o)}return"string"==typeof e?((0,ey.k)(void 0!==eQ[e],`Invalid easing type '${e}'`),eQ[e]):e},progress=(e,t,n)=>{let i=t-e;return 0===i?1:(n-e)/i},mixNumber=(e,t,n)=>e+(t-e)*n;function hueToRgb(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}let mixLinearColor=(e,t,n)=>{let i=e*e,o=n*(t*t-i)+i;return o<0?0:Math.sqrt(o)},e0=[ej,eE,eR],getColorType=e=>e0.find(t=>t.test(e));function asRGBA(e){let t=getColorType(e);(0,ey.k)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===eR&&(n=function({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,n/=100;let o=0,a=0,s=0;if(t/=100){let i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;o=hueToRgb(l,i,e+1/3),a=hueToRgb(l,i,e),s=hueToRgb(l,i,e-1/3)}else o=a=s=n;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*s),alpha:i}}(n)),n}let mixColor=(e,t)=>{let n=asRGBA(e),i=asRGBA(t),o={...n};return e=>(o.red=mixLinearColor(n.red,i.red,e),o.green=mixLinearColor(n.green,i.green,e),o.blue=mixLinearColor(n.blue,i.blue,e),o.alpha=mixNumber(n.alpha,i.alpha,e),eE.transform(o))};function mixImmediate(e,t){return n=>n>0?t:e}function complex_mixNumber(e,t){return n=>mixNumber(e,t,n)}function getMixer(e){return"number"==typeof e?complex_mixNumber:"string"==typeof e?isCSSVariableToken(e)?mixImmediate:eM.test(e)?mixColor:mixComplex:Array.isArray(e)?mixArray:"object"==typeof e?eM.test(e)?mixColor:mixObject:mixImmediate}function mixArray(e,t){let n=[...e],i=n.length,o=e.map((e,n)=>getMixer(e)(e,t[n]));return e=>{for(let t=0;t{for(let t in i)n[t]=i[t](e);return n}}let mixComplex=(e,t)=>{let n=eV.createTransformer(t),i=analyseComplexValue(e),o=analyseComplexValue(t),a=i.indexes.var.length===o.indexes.var.length&&i.indexes.color.length===o.indexes.color.length&&i.indexes.number.length>=o.indexes.number.length;return a?pipe(mixArray(function(e,t){var n;let i=[],o={color:0,var:0,number:0};for(let a=0;at*e),l=function(e,t,{clamp:n=!0,ease:i,mixer:o}={}){let a=e.length;if((0,ey.k)(a===t.length,"Both input and output ranges must be the same length"),1===a)return()=>t[0];if(2===a&&e[0]===e[1])return()=>t[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,n){let i=[],o=n||mix,a=e.length-1;for(let n=0;n{let n=0;if(l>1)for(;ninterpolator(clamp(e[0],e[a-1],t)):interpolator}(s,t,{ease:Array.isArray(o)?o:t.map(()=>o||eG).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(a.value=l(t),a.done=t>=e,a)}}let frameloopDriver=e=>{let passTimestamp=({timestamp:t})=>e(t);return{start:()=>en.Wi.update(passTimestamp,!0),stop:()=>(0,en.Pn)(passTimestamp),now:()=>en.frameData.isProcessing?en.frameData.timestamp:ev.now()}},e1={decay:inertia,inertia:inertia,tween:keyframes,keyframes:keyframes,spring:spring},percentToProgress=e=>e/100;let MainThreadAnimation=class MainThreadAnimation extends BaseAnimation{constructor({KeyframeResolver:e=KeyframeResolver,...t}){super(t),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:e}=this.options;e&&e()};let{name:n,motionValue:i,keyframes:o}=this.options,onResolved=(e,t)=>this.onKeyframesResolved(e,t);n&&i&&i.owner?this.resolver=i.owner.resolveKeyframes(o,onResolved,n,i):this.resolver=new e(o,onResolved,n,i),this.resolver.scheduleResolve()}initPlayback(e){let t,n;let{type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:s,velocity:l=0}=this.options,c=e1[i]||keyframes;c!==keyframes&&"number"!=typeof e[0]&&(t=pipe(percentToProgress,mix(e[0],e[1])),e=[0,100]);let u=c({...this.options,keyframes:e});"mirror"===s&&(n=c({...this.options,keyframes:[...e].reverse(),velocity:-l})),null===u.calculatedDuration&&(u.calculatedDuration=function(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}(u));let{calculatedDuration:d}=u,p=d+a;return{generator:u,mirroredGenerator:n,mapPercentToKeyframes:t,calculatedDuration:d,resolvedDuration:p,totalDuration:p*(o+1)-a}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){let{resolved:n}=this;if(!n){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:s,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:d}=n;if(null===this.startTime)return o.next(0);let{delay:p,repeat:h,repeatType:f,repeatDelay:m,onUpdate:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let v=this.currentTime-p*(this.speed>=0?1:-1),y=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let b=this.currentTime,x=o;if(h){let e=Math.min(this.currentTime,u)/d,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,h+1);let i=!!(t%2);i&&("reverse"===f?(n=1-n,m&&(n-=m/d)):"mirror"===f&&(x=a)),b=clamp(0,1,n)*d}let S=y?{done:!1,value:l[0]}:x.next(b);s&&(S.value=s(S.value));let{done:k}=S;y||null===c||(k=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&k);return w&&void 0!==i&&(S.value=getFinalKeyframe(l,this.options,i)),g&&g(S.value),w&&this.finish(),S}get duration(){let{resolved:e}=this;return e?millisecondsToSeconds(e.calculatedDuration):0}get time(){return millisecondsToSeconds(this.currentTime)}set time(e){e=secondsToMilliseconds(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=millisecondsToSeconds(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=frameloopDriver,onPlay:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime&&"finished"!==this.state||(this.startTime=n),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}};let isBezierDefinition=e=>Array.isArray(e)&&"number"==typeof e[0],cubicBezierAsString=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,e2={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cubicBezierAsString([0,.65,.55,1]),circOut:cubicBezierAsString([.55,0,1,.45]),backIn:cubicBezierAsString([.31,.01,.66,-.59]),backOut:cubicBezierAsString([.33,1.53,.69,.99])};function mapEasingToNativeEasingWithDefault(e){return mapEasingToNativeEasing(e)||e2.easeOut}function mapEasingToNativeEasing(e){if(e)return isBezierDefinition(e)?cubicBezierAsString(e):Array.isArray(e)?e.map(mapEasingToNativeEasingWithDefault):e2[e]}let e5=(s=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===o&&(o=s()),o)),e3=new Set(["opacity","clipPath","filter","transform"]);let AcceleratedAnimation=class AcceleratedAnimation extends BaseAnimation{constructor(e){super(e);let{name:t,motionValue:n,keyframes:i}=this.options;this.resolver=new DOMKeyframesResolver(i,(e,t)=>this.onKeyframesResolved(e,t),t,n),this.resolver.scheduleResolve()}initPlayback(e,t){var n,i;let{duration:o=300,times:a,ease:s,type:l,motionValue:c,name:u}=this.options;if(!(null===(n=c.owner)||void 0===n?void 0:n.current))return!1;if("spring"===(i=this.options).type||"backgroundColor"===i.name||!function isWaapiSupportedEasing(e){return!!(!e||"string"==typeof e&&e in e2||isBezierDefinition(e)||Array.isArray(e)&&e.every(isWaapiSupportedEasing))}(i.ease)){let{onComplete:t,onUpdate:n,motionValue:i,...c}=this.options,u=function(e,t){let n=new MainThreadAnimation({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),i={done:!1,value:e[0]},o=[],a=0;for(;!i.done&&a<2e4;)o.push((i=n.sample(a)).value),a+=10;return{times:void 0,keyframes:o,duration:a-10,ease:"linear"}}(e,c);1===(e=u.keyframes).length&&(e[1]=e[0]),o=u.duration,a=u.times,s=u.ease,l="keyframes"}let d=function(e,t,n,{delay:i=0,duration:o=300,repeat:a=0,repeatType:s="loop",ease:l,times:c}={}){let u={[t]:n};c&&(u.offset=c);let d=mapEasingToNativeEasing(l);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:i,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:"reverse"===s?"alternate":"normal"})}(c.owner.current,u,e,{...this.options,duration:o,times:a,ease:s});return d.startTime=ev.now(),this.pendingTimeline?(d.timeline=this.pendingTimeline,this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:n}=this.options;c.set(getFinalKeyframe(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:o,times:a,type:l,ease:s,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return millisecondsToSeconds(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return millisecondsToSeconds(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.currentTime=secondsToMilliseconds(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}attachTimeline(e){if(this._resolved){let{resolved:t}=this;if(!t)return el.Z;let{animation:n}=t;n.timeline=e,n.onfinish=null}else this.pendingTimeline=e;return el.Z}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:n,duration:i,type:o,ease:a,times:s}=e;if("idle"!==t.playState&&"finished"!==t.playState){if(this.time){let{motionValue:e,onUpdate:t,onComplete:l,...c}=this.options,u=new MainThreadAnimation({...c,keyframes:n,duration:i,type:o,ease:a,times:s,isGenerator:!0}),d=secondsToMilliseconds(this.time);e.setWithVelocity(u.sample(d-10).value,u.sample(d).value,10)}this.cancel()}}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:n,repeatDelay:i,repeatType:o,damping:a,type:s}=e;return e5()&&n&&e3.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!i&&"mirror"!==o&&0!==a&&"inertia"!==s}};let animateMotionValue=(e,t,n,i={},o,a)=>s=>{let l=getValueTransition(i,e)||{},c=l.delay||i.delay||0,{elapsed:u=0}=i;u-=secondsToMilliseconds(c);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{s(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:a?void 0:o};!function({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:o,repeat:a,repeatType:s,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}(l)&&(d={...d,...getDefaultTransition(e,d)}),d.duration&&(d.duration=secondsToMilliseconds(d.duration)),d.repeatDelay&&(d.repeatDelay=secondsToMilliseconds(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let p=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(d.duration=0,0!==d.delay||(p=!0)),(eg.current||em.c.skipAnimations)&&(p=!0,d.duration=0,d.delay=0),p&&!a&&void 0!==t.get()){let e=getFinalKeyframe(d.keyframes,l);if(void 0!==e){en.Wi.update(()=>{d.onUpdate(e),d.onComplete()});return}}return!a&&AcceleratedAnimation.supports(d)?new AcceleratedAnimation(d):new MainThreadAnimation(d)};function isWillChangeMotionValue(e){return!!(isMotionValue(e)&&e.add)}function addUniqueItem(e,t){-1===e.indexOf(t)&&e.push(t)}function removeItem(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}let SubscriptionManager=class SubscriptionManager{constructor(){this.subscriptions=[]}add(e){return addUniqueItem(this.subscriptions,e),()=>removeItem(this.subscriptions,e)}notify(e,t,n){let i=this.subscriptions.length;if(i){if(1===i)this.subscriptions[0](e,t,n);else for(let o=0;o!isNaN(parseFloat(e)),e4={current:void 0};let MotionValue=class MotionValue{constructor(e,t={}){this.version="11.1.9",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{let n=ev.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.canTrackVelocity=isFloat(this.current),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=ev.now()}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new SubscriptionManager);let n=this.events[e].add(t);return"change"===e?()=>{n(),en.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return e4.current&&e4.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=ev.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?e*(1e3/n):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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 motionValue(e,t){return new MotionValue(e,t)}function animateTarget(e,t,{delay:n=0,transitionOverride:i,type:o}={}){var a;let{transition:s=e.getDefaultTransition(),transitionEnd:l,...c}=t,u=e.getValue("willChange");i&&(s=i);let d=[],p=o&&e.animationState&&e.animationState.getState()[o];for(let t in c){let i=e.getValue(t,null!==(a=e.latestValues[t])&&void 0!==a?a:null),o=c[t];if(void 0===o||p&&function({protectedKeys:e,needsAnimating:t},n){let i=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,i}(p,t))continue;let l={delay:n,elapsed:0,...getValueTransition(s||{},t)},h=!1;if(window.HandoffAppearAnimations){let n=e.getProps(),i=n[m];if(i){let e=window.HandoffAppearAnimations(i,t);null!==e&&(l.elapsed=e,h=!0)}}i.start(animateMotionValue(t,i,o,e.shouldReduceMotion&&R.has(t)?{type:!1}:l,e,h));let f=i.animation;f&&(isWillChangeMotionValue(u)&&(u.add(t),f.then(()=>u.remove(t))),d.push(f))}return l&&Promise.all(d).then(()=>{en.Wi.update(()=>{l&&function(e,t){let n=resolveVariant(e,t),{transitionEnd:i={},transition:o={},...a}=n||{};for(let t in a={...a,...i}){let n=resolveFinalValueInKeyframes(a[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,motionValue(n))}}(e,l)})}),d}function animateVariant(e,t,n={}){var i;let o=resolveVariant(e,t,"exit"===n.type?null===(i=e.presenceContext)||void 0===i?void 0:i.custom:void 0),{transition:a=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(a=n.transitionOverride);let s=o?()=>Promise.all(animateTarget(e,o,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(i=0)=>{let{delayChildren:o=0,staggerChildren:s,staggerDirection:l}=a;return function(e,t,n=0,i=0,o=1,a){let s=[],l=(e.variantChildren.size-1)*i,c=1===o?(e=0)=>e*i:(e=0)=>l-e*i;return Array.from(e.variantChildren).sort(sortByTreeOrder).forEach((e,i)=>{e.notify("AnimationStart",t),s.push(animateVariant(e,t,{...a,delay:n+c(i)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,o+i,s,l,n)}:()=>Promise.resolve(),{when:c}=a;if(!c)return Promise.all([s(),l(n.delay)]);{let[e,t]="beforeChildren"===c?[s,l]:[l,s];return e().then(()=>t())}}function sortByTreeOrder(e,t){return e.sortNodePosition(t)}let e6=[...b].reverse(),e9=b.length;function createTypeState(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let e7=0,distance=(e,t)=>Math.abs(e-t);let PanSession=class PanSession{constructor(e,t,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=getPanInfo(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){let n=distance(e.x,t.x),i=distance(e.y,t.y);return Math.sqrt(n**2+i**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:i}=e,{timestamp:o}=en.frameData;this.history.push({...i,timestamp:o});let{onStart:a,onMove:s}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=transformPoint(t,this.transformPagePoint),en.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:i,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=getPanInfo("pointercancel"===e.type?this.lastMoveEventInfo:transformPoint(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),i&&i(e,a)},!isPrimaryPointer(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.contextWindow=i||window;let a=extractEventInfo(e),s=transformPoint(a,this.transformPagePoint),{point:l}=s,{timestamp:c}=en.frameData;this.history=[{...l,timestamp:c}];let{onSessionStart:u}=t;u&&u(e,getPanInfo(s,this.history)),this.removeListeners=pipe(addPointerEvent(this.contextWindow,"pointermove",this.handlePointerMove),addPointerEvent(this.contextWindow,"pointerup",this.handlePointerUp),addPointerEvent(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,en.Pn)(this.updatePoint)}};function transformPoint(e,t){return t?{point:t(e.point)}:e}function subtractPoint(e,t){return{x:e.x-t.x,y:e.y-t.y}}function getPanInfo({point:e},t){return{point:e,delta:subtractPoint(e,lastDevicePoint(t)),offset:subtractPoint(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null,o=lastDevicePoint(e);for(;n>=0&&(i=e[n],!(o.timestamp-i.timestamp>secondsToMilliseconds(.1)));)n--;if(!i)return{x:0,y:0};let a=millisecondsToSeconds(o.timestamp-i.timestamp);if(0===a)return{x:0,y:0};let s={x:(o.x-i.x)/a,y:(o.y-i.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t,0)}}function lastDevicePoint(e){return e[e.length-1]}function calcLength(e){return e.max-e.min}function isNear(e,t=0,n=.01){return Math.abs(e-t)<=n}function calcAxisDelta(e,t,n,i=.5){e.origin=i,e.originPoint=mixNumber(t.min,t.max,e.origin),e.scale=calcLength(n)/calcLength(t),(isNear(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=mixNumber(n.min,n.max,e.origin)-e.originPoint,(isNear(e.translate)||isNaN(e.translate))&&(e.translate=0)}function calcBoxDelta(e,t,n,i){calcAxisDelta(e.x,t.x,n.x,i?i.originX:void 0),calcAxisDelta(e.y,t.y,n.y,i?i.originY:void 0)}function calcRelativeAxis(e,t,n){e.min=n.min+t.min,e.max=e.min+calcLength(t)}function calcRelativeAxisPosition(e,t,n){e.min=t.min-n.min,e.max=e.min+calcLength(t)}function calcRelativePosition(e,t,n){calcRelativeAxisPosition(e.x,t.x,n.x),calcRelativeAxisPosition(e.y,t.y,n.y)}function calcRelativeAxisConstraints(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function calcViewportAxisConstraints(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min({translate:0,scale:1,origin:0,originPoint:0}),createDelta=()=>({x:createAxisDelta(),y:createAxisDelta()}),createAxis=()=>({min:0,max:0}),createBox=()=>({x:createAxis(),y:createAxis()});function eachAxis(e){return[e("x"),e("y")]}function convertBoundingBoxToBox({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function isIdentityScale(e){return void 0===e||1===e}function hasScale({scale:e,scaleX:t,scaleY:n}){return!isIdentityScale(e)||!isIdentityScale(t)||!isIdentityScale(n)}function hasTransform(e){return hasScale(e)||has2DTranslate(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function has2DTranslate(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function applyPointDelta(e,t,n,i,o){return void 0!==o&&(e=i+o*(e-i)),i+n*(e-i)+t}function applyAxisDelta(e,t=0,n=1,i,o){e.min=applyPointDelta(e.min,t,n,i,o),e.max=applyPointDelta(e.max,t,n,i,o)}function applyBoxDelta(e,{x:t,y:n}){applyAxisDelta(e.x,t.translate,t.scale,t.originPoint),applyAxisDelta(e.y,n.translate,n.scale,n.originPoint)}function snapToDefault(e){return Number.isInteger(e)?e:e>1.0000000000001||e<.999999999999?e:1}function translateAxis(e,t){e.min=e.min+t,e.max=e.max+t}function transformAxis(e,t,[n,i,o]){let a=void 0!==t[o]?t[o]:.5,s=mixNumber(e.min,e.max,a);applyAxisDelta(e,t[n],t[i],s,t.scale)}let e8=["x","scaleX","originX"],te=["y","scaleY","originY"];function transformBox(e,t){transformAxis(e.x,t,e8),transformAxis(e.y,t,te)}function measureViewportBox(e,t){return convertBoundingBoxToBox(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(e.getBoundingClientRect(),t))}let getContextWindow=({current:e})=>e?e.ownerDocument.defaultView:null,tt=new WeakMap;let VisualElementDragControls=class VisualElementDragControls{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=createBox(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:i}=this.getProps();this.panSession=new PanSession(e,{onSessionStart:e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(extractEventInfo(e,"page").point)},onStart:(e,t)=>{let{drag:n,dragPropagation:i,onDragStart:o}=this.getProps();if(n&&!i&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=getGlobalLock(n),!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),eachAxis(e=>{let t=this.getAxisMotionValue(e).get()||0;if(H.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let i=n.layout.layoutBox[e];if(i){let e=calcLength(i);t=e*(parseFloat(t)/100)}}}this.originPoint[e]=t}),o&&en.Wi.postRender(()=>o(e,t));let{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},onMove:(e,t)=>{let{dragPropagation:n,dragDirectionLock:i,onDirectionLock:o,onDrag:a}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:s}=t;if(i&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(s),null!==this.currentDirection&&o&&o(this.currentDirection);return}this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),a&&a(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>eachAxis(e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,contextWindow:getContextWindow(this.visualElement)})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:i}=t;this.startAnimation(i);let{onDragEnd:o}=this.getProps();o&&en.Wi.postRender(()=>o(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){let{drag:i}=this.getProps();if(!n||!shouldDrag(e,i,this.currentDirection))return;let o=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,{min:t,max:n},i){return void 0!==t&&en&&(e=i?mixNumber(n,e,i.max):Math.min(e,n)),e}(a,this.constraints[e],this.elastic[e])),o.set(a)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&isRefObject(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(e,{top:t,left:n,bottom:i,right:o}){return{x:calcRelativeAxisConstraints(e.x,n,o),y:calcRelativeAxisConstraints(e.y,t,i)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:resolveAxisElastic(e,"left","right"),y:resolveAxisElastic(e,"top","bottom")}}(n),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&eachAxis(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(i.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!isRefObject(t))return!1;let i=t.current;(0,ey.k)(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:o}=this.visualElement;if(!o||!o.layout)return!1;let a=function(e,t,n){let i=measureViewportBox(e,n),{scroll:o}=t;return o&&(translateAxis(i.x,o.offset.x),translateAxis(i.y,o.offset.y)),i}(i,o.root,this.visualElement.getTransformPagePoint()),s={x:calcViewportAxisConstraints((e=o.layout.layoutBox).x,a.x),y:calcViewportAxisConstraints(e.y,a.y)};if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(s));this.hasMutatedConstraints=!!e,e&&(s=convertBoundingBoxToBox(e))}return s}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=eachAxis(s=>{if(!shouldDrag(s,t,this.currentDirection))return;let c=l&&l[s]||{};a&&(c={min:0,max:0});let u={type:"inertia",velocity:n?e[s]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...o,...c};return this.startAxisValueAnimation(s,u)});return Promise.all(c).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return n.start(animateMotionValue(e,n,0,t,this.visualElement))}stopAnimation(){eachAxis(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){eachAxis(e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()})}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),i=n[t];return i||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){eachAxis(t=>{let{drag:n}=this.getProps();if(!shouldDrag(t,n,this.currentDirection))return;let{projection:i}=this.visualElement,o=this.getAxisMotionValue(t);if(i&&i.layout){let{min:n,max:a}=i.layout.layoutBox[t];o.set(e[t]-mixNumber(n,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!isRefObject(t)||!n||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};eachAxis(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let n=t.get();i[e]=function(e,t){let n=.5,i=calcLength(e),o=calcLength(t);return o>i?n=progress(t.min,t.max-i,e.min):i>o&&(n=progress(e.min,e.max-o,t.min)),clamp(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),eachAxis(t=>{if(!shouldDrag(t,e,null))return;let n=this.getAxisMotionValue(t),{min:o,max:a}=this.constraints[t];n.set(mixNumber(o,a,i[t]))})}addListeners(){if(!this.visualElement.current)return;tt.set(this.visualElement,this);let e=this.visualElement.current,t=addPointerEvent(e,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),measureDragConstraints=()=>{let{dragConstraints:e}=this.getProps();isRefObject(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",measureDragConstraints);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),measureDragConstraints();let o=addDomEvent(window,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(eachAxis(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),t(),i(),a&&a()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=.35,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:s}}};function shouldDrag(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let asyncHandler=e=>(t,n)=>{e&&en.Wi.postRender(()=>e(t,n))};var tr=n(5947);let tn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pixelsToPercent(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let ti={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!G.test(e))return e;e=parseFloat(e)}let n=pixelsToPercent(e,t.target.x),i=pixelsToPercent(e,t.target.y);return`${n}% ${i}%`}};let MeasureLayoutWithContext=class MeasureLayoutWithContext extends c.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=e;Object.assign(E,to),o&&(t.group&&t.group.add(o),n&&n.register&&i&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),tn.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:i,isPresent:o}=this.props,a=n.projection;return a&&(a.isPresent=o,i||e.layoutDependency!==t||void 0===t?a.willUpdate():this.safeToRemove(),e.isPresent===o||(o?a.promote():a.relegate()||en.Wi.postRender(()=>{let e=a.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),v.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function MeasureLayout(e){let[t,n]=(0,tr.oO)(),i=(0,c.useContext)(_.p);return(0,l.jsx)(MeasureLayoutWithContext,{...e,layoutGroup:i,switchLayoutGroup:(0,c.useContext)(C),isPresent:t,safeToRemove:n})}let to={borderRadius:{...ti,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ti,borderTopRightRadius:ti,borderBottomLeftRadius:ti,borderBottomRightRadius:ti,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let i=eV.parse(e);if(i.length>5)return e;let o=eV.createTransformer(e),a="number"!=typeof i[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;i[0+a]/=s,i[1+a]/=l;let c=mixNumber(s,l,.5);return"number"==typeof i[2+a]&&(i[2+a]/=c),"number"==typeof i[3+a]&&(i[3+a]/=c),o(i)}}},ta=["TopLeft","TopRight","BottomLeft","BottomRight"],ts=ta.length,asNumber=e=>"string"==typeof e?parseFloat(e):e,isPx=e=>"number"==typeof e||G.test(e);function getRadius(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let tl=compress(0,.5,eK),tc=compress(.5,.95,el.Z);function compress(e,t,n){return i=>it?1:n(progress(e,t,i))}function copyAxisInto(e,t){e.min=t.min,e.max=t.max}function copyBoxInto(e,t){copyAxisInto(e.x,t.x),copyAxisInto(e.y,t.y)}function removePointDelta(e,t,n,i,o){return e-=t,e=i+1/n*(e-i),void 0!==o&&(e=i+1/o*(e-i)),e}function removeAxisTransforms(e,t,[n,i,o],a,s){!function(e,t=0,n=1,i=.5,o,a=e,s=e){if(H.test(t)){t=parseFloat(t);let e=mixNumber(s.min,s.max,t/100);t=e-s.min}if("number"!=typeof t)return;let l=mixNumber(a.min,a.max,i);e===a&&(l-=t),e.min=removePointDelta(e.min,t,n,l,o),e.max=removePointDelta(e.max,t,n,l,o)}(e,t[n],t[i],t[o],t.scale,a,s)}let tu=["x","scaleX","originX"],td=["y","scaleY","originY"];function removeBoxTransforms(e,t,n,i){removeAxisTransforms(e.x,t,tu,n?n.x:void 0,i?i.x:void 0),removeAxisTransforms(e.y,t,td,n?n.y:void 0,i?i.y:void 0)}function isAxisDeltaZero(e){return 0===e.translate&&1===e.scale}function isDeltaZero(e){return isAxisDeltaZero(e.x)&&isAxisDeltaZero(e.y)}function boxEqualsRounded(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 aspectRatio(e){return calcLength(e.x)/calcLength(e.y)}let NodeStack=class NodeStack{constructor(){this.members=[]}add(e){addUniqueItem(this.members,e),e.scheduleRender()}remove(e){if(removeItem(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:i}=e.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function buildProjectionTransform(e,t,n){let i="",o=e.x.translate/t.x,a=e.y.translate/t.y,s=(null==n?void 0:n.z)||0;if((o||a||s)&&(i=`translate3d(${o}px, ${a}px, ${s}px) `),(1!==t.x||1!==t.y)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:o,rotateY:a,skewX:s,skewY:l}=n;e&&(i=`perspective(${e}px) ${i}`),t&&(i+=`rotate(${t}deg) `),o&&(i+=`rotateX(${o}deg) `),a&&(i+=`rotateY(${a}deg) `),s&&(i+=`skewX(${s}deg) `),l&&(i+=`skewY(${l}deg) `)}let l=e.x.scale*t.x,c=e.y.scale*t.y;return(1!==l||1!==c)&&(i+=`scale(${l}, ${c})`),i||"none"}let compareByDepth=(e,t)=>e.depth-t.depth;let FlatTree=class FlatTree{constructor(){this.children=[],this.isDirty=!1}add(e){addUniqueItem(this.children,e),this.isDirty=!0}remove(e){removeItem(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(compareByDepth),this.isDirty=!1,this.children.forEach(e)}};let tp=["","X","Y","Z"],th={visibility:"hidden"},tf=0,tm={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function resetDistortingTransform(e,t,n,i){let{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),i&&(i[e]=0))}function createProjectionNode({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(e={},n=null==t?void 0:t()){this.id=tf++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,tm.totalNodes=tm.resolvedTargetDeltas=tm.recalculatedProjection=0,this.nodes.forEach(propagateDirtyNodes),this.nodes.forEach(resolveTargetDelta),this.nodes.forEach(calcProjection),this.nodes.forEach(cleanDirtyNodes),window.MotionDebug&&window.MotionDebug.record(tm)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;ethis.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=ev.now(),checkElapsed=({timestamp:i})=>{let o=i-n;o>=t&&((0,en.Pn)(checkElapsed),e(o-t))};return en.Wi.read(checkElapsed,!0),()=>(0,en.Pn)(checkElapsed)}(resizeUnblockUpdate,250),tn.hasAnimatedSinceResize&&(tn.hasAnimatedSinceResize=!1,this.nodes.forEach(finishAnimation))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&a&&(i||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||a.getDefaultTransition()||tg,{onLayoutAnimationStart:s,onLayoutAnimationComplete:l}=a.getProps(),c=!this.targetLayout||!boxEqualsRounded(this.targetLayout,i)||n,u=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);let t={...getValueTransition(o,"layout"),onPlay:s,onComplete:l};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||finishAnimation(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,en.Pn)(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(resetSkewAndRotation),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!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 e=0;ethis.update()))}clearAllSnapshots(){this.nodes.forEach(clearSnapshot),this.sharedNodes.forEach(removeLeadSnapshots)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,en.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){en.Wi.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 e=0;e{let i=t/1e3;if(mixAxisDelta(s.x,e.x,i),mixAxisDelta(s.y,e.y,i),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,u,p,m;calcRelativePosition(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,mixAxis(p.x,m.x,l.x,i),mixAxis(p.y,m.y,l.y,i),n&&(c=this.relativeTarget,u=n,c.x.min===u.x.min&&c.x.max===u.x.max&&c.y.min===u.y.min&&c.y.max===u.y.max)&&(this.isProjectionDirty=!1),n||(n=createBox()),copyBoxInto(n,this.relativeTarget)}d&&(this.animationValues=a,function(e,t,n,i,o,a){o?(e.opacity=mixNumber(0,void 0!==n.opacity?n.opacity:1,tl(i)),e.opacityExit=mixNumber(void 0!==t.opacity?t.opacity:1,0,tc(i))):a&&(e.opacity=mixNumber(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let o=0;o{tn.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){let i=isMotionValue(e)?e:motionValue(e);return i.start(animateMotionValue("",i,1e3,n)),i.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.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 e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:i,latestValues:o}=e;if(t&&n&&i){if(this!==e&&this.layout&&i&&shouldAnimatePositionOnly(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||createBox();let t=calcLength(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let i=calcLength(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+i}copyBoxInto(t,n),transformBox(t,o),calcBoxDelta(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new NodeStack);let n=this.sharedNodes.get(e);n.add(t);let i=t.options.initialPromotionConfig;t.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let i=this.getStack();i&&i.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let i={};n.z&&resetDistortingTransform("z",e,i,this.animationValues);for(let t=0;t{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(clearMeasurements),this.root.sharedNodes.clear()}}}function updateLayout(e){e.updateLayout()}function notifyLayoutUpdate(e){var t;let n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;"size"===o?eachAxis(e=>{let i=a?n.measuredBox[e]:n.layoutBox[e],o=calcLength(i);i.min=t[e].min,i.max=i.min+o}):shouldAnimatePositionOnly(o,n.layoutBox,t)&&eachAxis(i=>{let o=a?n.measuredBox[i]:n.layoutBox[i],s=calcLength(t[i]);o.max=o.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[i].max=e.relativeTarget[i].min+s)});let s=createDelta();calcBoxDelta(s,t,n.layoutBox);let l=createDelta();a?calcBoxDelta(l,e.applyTransform(i,!0),n.measuredBox):calcBoxDelta(l,t,n.layoutBox);let c=!isDeltaZero(s),u=!1;if(!e.resumeFrom){let i=e.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:o,layout:a}=i;if(o&&a){let s=createBox();calcRelativePosition(s,n.layoutBox,o.layoutBox);let l=createBox();calcRelativePosition(l,t,a.layoutBox),boxEqualsRounded(s,l)||(u=!0),i.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=s,e.relativeParent=i)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function propagateDirtyNodes(e){tm.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 cleanDirtyNodes(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function clearSnapshot(e){e.clearSnapshot()}function clearMeasurements(e){e.clearMeasurements()}function clearIsLayoutDirty(e){e.isLayoutDirty=!1}function resetTransformStyle(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function finishAnimation(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function resolveTargetDelta(e){e.resolveTargetDelta()}function calcProjection(e){e.calcProjection()}function resetSkewAndRotation(e){e.resetSkewAndRotation()}function removeLeadSnapshots(e){e.removeLeadSnapshot()}function mixAxisDelta(e,t,n){e.translate=mixNumber(t.translate,0,n),e.scale=mixNumber(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function mixAxis(e,t,n,i){e.min=mixNumber(t.min,n.min,i),e.max=mixNumber(t.max,n.max,i)}function hasOpacityCrossfade(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let tg={duration:.45,ease:[.4,0,.1,1]},userAgentContains=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),tv=userAgentContains("applewebkit/")&&!userAgentContains("chrome/")?Math.round:el.Z;function roundAxis(e){e.min=tv(e.min),e.max=tv(e.max)}function shouldAnimatePositionOnly(e,t,n){return"position"===e||"preserve-aspect"===e&&!isNear(aspectRatio(t),aspectRatio(n),.2)}let ty=createProjectionNode({attachResizeListener:(e,t)=>addDomEvent(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),tb={current:void 0},tx=createProjectionNode({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!tb.current){let e=new ty({});e.mount(window),e.setOptions({layoutScroll:!0}),tb.current=e}return tb.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),tS={current:null},tk={current:!1},tw=new WeakMap,t_=[...e_,eM,eV],findValueType=e=>t_.find(testValueType(e)),tC=Object.keys(k),tT=tC.length,tP=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tA=x.length;let VisualElement=class VisualElement{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},s={}){this.resolveKeyframes=(e,t,n,i)=>new this.KeyframeResolver(e,t,n,i,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=KeyframeResolver,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=()=>en.Wi.render(this.render,!1,!0);let{latestValues:l,renderState:c}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=!!o,this.isControllingVariants=isControllingVariants(t),this.isVariantNode=isVariantNode(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];void 0!==l[e]&&isMotionValue(t)&&(t.set(l[e],!1),isWillChangeMotionValue(u)&&u.add(e))}}mount(e){this.current=e,tw.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),tk.current||function(){if(tk.current=!0,w.j){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),setReducedMotionPreferences=()=>tS.current=e.matches;e.addListener(setReducedMotionPreferences),setReducedMotionPreferences()}else tS.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||tS.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var e;for(let e in tw.delete(this.current),this.projection&&this.projection.unmount(),(0,en.Pn)(this.notifyUpdate),(0,en.Pn)(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let t in this.features)null===(e=this.features[t])||void 0===e||e.unmount();this.current=null}bindToMotionValue(e,t){let n=R.has(e),i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&en.Wi.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),o(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,i,o){let a,s;for(let e=0;ethis.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:l,layoutRoot:c})}return s}updateFeatures(){for(let e in this.features){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):createBox()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;tt.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=motionValue(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let i=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=i&&("string"==typeof i&&(isNumericalString(i)||isZeroValueString(i))?i=parseFloat(i):!findValueType(i)&&eV.test(t)&&(i=animatable_none_getAnimatableNone(e,t)),this.setBaseTarget(e,isMotionValue(i)?i.get():i)),isMotionValue(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let n;let{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let o=resolveVariantFromProps(this.props,i,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);o&&(n=o[e])}if(i&&void 0!==n)return n;let o=this.getBaseTargetFromProps(this.props,e);return void 0===o||isMotionValue(o)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new SubscriptionManager),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}};let DOMVisualElement=class DOMVisualElement extends VisualElement{constructor(){super(...arguments),this.KeyframeResolver=DOMKeyframesResolver}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}};let HTMLVisualElement=class HTMLVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(R.has(t)){let e=getDefaultValueType(t);return e&&e.default||0}{let n=window.getComputedStyle(e),i=(D(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return measureViewportBox(e,t)}build(e,t,n,i){buildHTMLStyles(e,t,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return scrapeMotionValuesFromProps(e,t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;isMotionValue(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,n,i){renderHTML(e,t,n,i)}};let SVGVisualElement=class SVGVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(R.has(t)){let e=getDefaultValueType(t);return e&&e.default||0}return t=et.has(t)?t:camelToDash(t),e.getAttribute(t)}measureInstanceViewportBox(){return createBox()}scrapeMotionValuesFromProps(e,t,n){return scrape_motion_values_scrapeMotionValuesFromProps(e,t,n)}build(e,t,n,i){buildSVGAttrs(e,t,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,t,n,i){renderSVG(e,t,n,i)}mount(e){this.isSVGTag=isSVGTag(e.tagName),super.mount(e)}};let create_visual_element_createDomVisualElement=(e,t)=>isSVGComponent(e)?new SVGVisualElement(t,{enableHardwareAcceleration:!1}):new HTMLVisualElement(t,{allowProjection:e!==c.Fragment,enableHardwareAcceleration:!0}),tE={animation:{Feature:class extends Feature{constructor(e){super(e),e.animationState||(e.animationState=function(e){let animate=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let i;if(e.notify("AnimationStart",t),Array.isArray(t)){let o=t.map(t=>animateVariant(e,t,n));i=Promise.all(o)}else if("string"==typeof t)i=animateVariant(e,t,n);else{let o="function"==typeof t?resolveVariant(e,t,n.custom):t;i=Promise.all(animateTarget(e,o,n))}return i.then(()=>{en.Wi.postRender(()=>{e.notify("AnimationComplete",t)})})})(e,t,n))),t={animate:createTypeState(!0),whileInView:createTypeState(),whileHover:createTypeState(),whileTap:createTypeState(),whileDrag:createTypeState(),whileFocus:createTypeState(),exit:createTypeState()},n=!0,buildResolvedTypeValues=t=>(n,i)=>{var o;let a=resolveVariant(e,i,"exit"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(a){let{transition:e,transitionEnd:t,...i}=a;n={...n,...i,...t}}return n};function animateChanges(i){let o=e.getProps(),a=e.getVariantContext(!0)||{},s=[],l=new Set,c={},u=1/0;for(let p=0;pu&&g,S=!1,k=Array.isArray(m)?m:[m],w=k.reduce(buildResolvedTypeValues(h),{});!1===v&&(w={});let{prevResolvedValues:_={}}=f,C={..._,...w},markToAnimate=t=>{x=!0,l.has(t)&&(S=!0,l.delete(t)),f.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in C){let t=w[e],n=_[e];if(!c.hasOwnProperty(e))(isKeyframesTarget(t)&&isKeyframesTarget(n)?shallowCompare(t,n):t===n)?void 0!==t&&l.has(e)?markToAnimate(e):f.protectedKeys[e]=!0:null!=t?markToAnimate(e):l.add(e)}f.prevProp=m,f.prevResolvedValues=w,f.isActive&&(c={...c,...w}),n&&e.blockInitialAnimation&&(x=!1),x&&(!y||S)&&s.push(...k.map(e=>({animation:e,options:{type:h}})))}if(l.size){let t={};l.forEach(n=>{let i=e.getBaseTarget(n),o=e.getValue(n);o&&(o.liveStyle=!0),t[n]=null!=i?i:null}),s.push({animation:t})}let p=!!s.length;return n&&(!1===o.initial||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(p=!1),n=!1,p?animate(s):Promise.resolve()}return{animateChanges,setActive:function(n,i){var o;if(t[n].isActive===i)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach(e=>{var t;return null===(t=e.animationState)||void 0===t?void 0:t.setActive(n,i)}),t[n].isActive=i;let a=animateChanges(n);for(let e in t)t[e].protectedKeys={};return a},setAnimateFunction:function(t){animate=t(e)},getState:()=>t}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();this.unmount(),isAnimationControls(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends Feature{constructor(){super(...arguments),this.id=e7++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let i=this.node.animationState.setActive("exit",!e);t&&!e&&i.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:i="some",once:o}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:ed[i]};return function(e,t,n){let i=function({root:e,...t}){let n=e||document;eu.has(n)||eu.set(n,{});let i=eu.get(n),o=JSON.stringify(t);return i[o]||(i[o]=new IntersectionObserver(fireAllObserverCallbacks,{root:e,...t})),i[o]}(t);return ec.set(e,n),i.observe(e),()=>{ec.delete(e),i.unobserve(e)}}(this.node.current,a,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,o&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),a=t?n:i;a&&a(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node,n=["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t));n&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Feature{constructor(){super(...arguments),this.removeStartListeners=el.Z,this.removeEndListeners=el.Z,this.removeAccessibleListeners=el.Z,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();let n=this.node.getProps(),i=addPointerEvent(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:i,globalTapTarget:o}=this.node.getProps(),a=o||isNodeOrChild(this.node.current,e.target)?n:i;a&&en.Wi.update(()=>a(e,t))},{passive:!(n.onTap||n.onPointerUp)}),o=addPointerEvent(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=pipe(i,o),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=addDomEvent(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=addDomEvent(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&fireSyntheticPointerEvent("up",(e,t)=>{let{onTap:n}=this.node.getProps();n&&en.Wi.postRender(()=>n(e,t))})}),fireSyntheticPointerEvent("down",(e,t)=>{this.startPress(e,t)}))}),t=addDomEvent(this.node.current,"blur",()=>{this.isPressing&&fireSyntheticPointerEvent("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=pipe(e,t)}}startPress(e,t){this.isPressing=!0;let{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&en.Wi.postRender(()=>n(e,t))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;let e=this.node.getProps();return e.whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!isDragActive()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&en.Wi.postRender(()=>n(e,t))}mount(){let e=this.node.getProps(),t=addPointerEvent(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=addDomEvent(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=pipe(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&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=pipe(addDomEvent(this.node.current,"focus",()=>this.onFocus()),addDomEvent(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Feature{mount(){this.unmount=pipe(addHoverEvent(this.node,!0),addHoverEvent(this.node,!1))}unmount(){}}},pan:{Feature:class extends Feature{constructor(){super(...arguments),this.removePointerDownListener=el.Z}onPointerDown(e){this.session=new PanSession(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:getContextWindow(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:asyncHandler(e),onStart:asyncHandler(t),onMove:n,onEnd:(e,t)=>{delete this.session,i&&en.Wi.postRender(()=>i(e,t))}}}mount(){this.removePointerDownListener=addPointerEvent(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Feature{constructor(e){super(e),this.removeGroupControls=el.Z,this.removeListeners=el.Z,this.controls=new VisualElementDragControls(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||el.Z}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:tx,MeasureLayout:MeasureLayout},layout:{ProjectionNode:tx,MeasureLayout:MeasureLayout}},tj=function(e){function custom(t,n={}){return function({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:i,Component:o}){e&&function(e){for(let t in e)k[t]={...k[t],...e[t]}}(e);let a=(0,c.forwardRef)(function(a,s){var g;let y;let b={...(0,c.useContext)(u._),...a,layoutId:function({layoutId:e}){let t=(0,c.useContext)(_.p).id;return t&&void 0!==e?t+"-"+e:e}(a)},{isStatic:x}=b,S=function(e){let{initial:t,animate:n}=function(e,t){if(isControllingVariants(e)){let{initial:t,animate:n}=e;return{initial:!1===t||isVariantLabel(t)?t:void 0,animate:isVariantLabel(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,c.useContext)(d));return(0,c.useMemo)(()=>({initial:t,animate:n}),[variantLabelsAsDependency(t),variantLabelsAsDependency(n)])}(a),k=i(a,x);if(!x&&w.j){S.visualElement=function(e,t,n,i){let{visualElement:o}=(0,c.useContext)(d),a=(0,c.useContext)(f),s=(0,c.useContext)(p.O),l=(0,c.useContext)(u._).reducedMotion,g=(0,c.useRef)();i=i||a.renderer,!g.current&&i&&(g.current=i(e,{visualState:t,parent:o,props:n,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:l}));let y=g.current;(0,c.useInsertionEffect)(()=>{y&&y.update(n,s)});let b=(0,c.useRef)(!!(n[m]&&!window.HandoffComplete));return(0,h.L)(()=>{y&&(v.postRender(y.render),b.current&&y.animationState&&y.animationState.animateChanges())}),(0,c.useEffect)(()=>{y&&(y.updateFeatures(),!b.current&&y.animationState&&y.animationState.animateChanges(),b.current&&(b.current=!1,window.HandoffComplete=!0))}),y}(o,k,b,t);let n=(0,c.useContext)(C),i=(0,c.useContext)(f).strict;S.visualElement&&(y=S.visualElement.loadFeatures(b,i,e,n))}return(0,l.jsxs)(d.Provider,{value:S,children:[y&&S.visualElement?(0,l.jsx)(y,{visualElement:S.visualElement,...b}):null,n(o,a,(g=S.visualElement,(0,c.useCallback)(e=>{e&&k.mount&&k.mount(e),g&&(e?g.mount(e):g.unmount()),s&&("function"==typeof s?s(e):isRefObject(s)&&(s.current=e))},[g])),k,x,S.visualElement)]})});return a[T]=o,a}(e(t,n))}if("undefined"==typeof Proxy)return custom;let t=new Map;return new Proxy(custom,{get:(e,n)=>(t.has(n)||t.set(n,custom(n)),t.get(n))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},n,i){let o=isSVGComponent(e)?ei:eo;return{...o,preloadedFeatures:n,useRender:function(e=!1){return(t,n,i,{latestValues:o},a)=>{let s=isSVGComponent(t)?useSVGProps:useHTMLProps,l=s(n,o,a,t),u=function(e,t,n){let i={};for(let o in e)("values"!==o||"object"!=typeof e.values)&&(shouldForward(o)||!0===n&&isValidMotionProp(o)||!t&&!isValidMotionProp(o)||e.draggable&&o.startsWith("onDrag"))&&(i[o]=e[o]);return i}(n,"string"==typeof t,e),d=t!==c.Fragment?{...u,...l,ref:i}:{},{children:p}=n,h=(0,c.useMemo)(()=>isMotionValue(p)?p.get():p,[p]);return(0,c.createElement)(t,{...d,children:h})}}(t),createVisualElement:i,Component:e}})(e,t,tE,create_visual_element_createDomVisualElement))},2081:function(e,t,n){"use strict";n.d(t,{c:function(){return i}});let i={skipAnimations:!1,useManualTiming:!1}},5487:function(e,t,n){"use strict";n.d(t,{K:function(){return o},k:function(){return a}});var i=n(1662);let o=i.Z,a=i.Z},1741:function(e,t,n){"use strict";n.d(t,{j:function(){return i}});let i="undefined"!=typeof document},1662:function(e,t,n){"use strict";n.d(t,{Z:function(){return noop}});let noop=e=>e},6681:function(e,t,n){"use strict";n.d(t,{h:function(){return useConstant}});var i=n(7294);function useConstant(e){let t=(0,i.useRef)(null);return null===t.current&&(t.current=e()),t.current}},8868:function(e,t,n){"use strict";n.d(t,{L:function(){return a}});var i=n(7294),o=n(1741);let a=o.j?i.useLayoutEffect:i.useEffect}},function(e){var __webpack_exec__=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return __webpack_exec__(1118),__webpack_exec__(9974)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/out/_next/static/chunks/pages/index-d746928726b1748a.js b/out/_next/static/chunks/pages/index-e4839262ce12c939.js similarity index 97% rename from out/_next/static/chunks/pages/index-d746928726b1748a.js rename to out/_next/static/chunks/pages/index-e4839262ce12c939.js index f6a0c16..5796ca7 100644 --- a/out/_next/static/chunks/pages/index-d746928726b1748a.js +++ b/out/_next/static/chunks/pages/index-e4839262ce12c939.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{5557:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(4278)}])},6709:function(e,t,n){"use strict";n.d(t,{h_:function(){return Meta},Dx:function(){return Title}});var i=n(5893),r=n(1664),a=n.n(r),l=n(3100),s=n(3838),o=n(4418),c=n(1689),d=n(78),h=(0,d.I)({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"}),u=(0,d.I)({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});let Title=e=>{let{children:t}=e;return(0,i.jsxs)(l.xu,{marginTop:"73px",children:[(0,i.jsx)(s.r,{as:a(),href:"/portfolio",children:"←"}),(0,i.jsxs)("span",{children:[" ",(0,i.jsx)(h,{})]}),(0,i.jsx)(o.X,{display:"inline-block",as:"h3",fontSize:20,mb:4,children:t}),(0,i.jsx)(u,{})]})},Meta=e=>{let{children:t}=e;return(0,i.jsx)(c.C,{colorScheme:"green",mr:2,children:t})}},4786:function(e,t,n){"use strict";var i=n(5893),r=n(7672),a=n(9008),l=n.n(a);let s={hidden:{opacity:0,x:0,y:20},enter:{opacity:1,x:0,y:0},exit:{opacity:0,x:-0,y:20}};t.Z=e=>{let{children:t,title:n}=e,a="".concat(n," - De Caldas");return(0,i.jsx)(r.E.article,{initial:"hidden",animate:"enter",exit:"exit",variants:s,transition:{duration:.4,type:"easeInOut"},style:{position:"relative"},children:(0,i.jsxs)(i.Fragment,{children:[n&&(0,i.jsxs)(l(),{children:[(0,i.jsx)("title",{children:a}),(0,i.jsx)("meta",{name:"twitter:title",content:a}),(0,i.jsx)("meta",{property:"og:title",content:a})]}),t]})})}},5477:function(e,t,n){"use strict";var i=n(2729),r=n(6829);function _templateObject(){let e=(0,i._)(["\n text-align: justify;\n text-indent: 1em;\n hyphens: auto;\n"]);return _templateObject=function(){return e},e}let a=r.Z.p(_templateObject());t.Z=a},1105:function(e,t,n){"use strict";var i=n(5893),r=n(7672),a=n(5523),l=n(3216);let s=(0,a.m)(r.E.div,{shouldForwardProp:e=>(0,l.x)(e)||"transition"===e});t.Z=e=>{let{children:t,delay:n=0}=e;return(0,i.jsx)(s,{initial:{y:10,opacity:0},animate:{y:0,opacity:1},transition:{duration:.8,delay:n},mb:6,children:t})}},4278:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return C},default:function(){return pages}});var i=n(5893),r=n(5523),a=n(6979),l=n(3100),s=n(4418),o=n(2498),c=n(6393),d=n(5197),h=n(3838),u=n(5477),p=n(2729),x=n(6829);function _templateObject(){let e=(0,p._)(["\n padding-left: 3.4em;\n text-indent: -3.4em;\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,p._)(["\n font-weight: bold;\n margin-right: 1em;\n"]);return _templateObject1=function(){return e},e}let m=(0,x.Z)(l.xu)(_templateObject()),f=x.Z.span(_templateObject1());var j=n(4786),g=n(1105),y=n(5675),b=n.n(y),_=n(6709),v=n(5555),w=n(7294),components_MatrixRain=()=>((0,w.useEffect)(()=>{let e=document.querySelector("#my-canvas"),t=e.getContext("2d"),n="Whiskey Diego 是一名 Web 開發人員和資料工程師。".split("");(()=>{let{width:i,height:r}=e,a=i/16,l=[];for(let e=0;e{t.fillStyle="rgba(0, 0, 0, 0.04)",t.fillRect(0,0,i,r),t.fillStyle="#0F0",t.font="".concat(16,"px arial");for(let e=0;er&&Math.random()>.975&&(l[e]=0),l[e]++}};return{run:()=>{setInterval(draw,33)}}})({canvas:e}).run()},[]),(0,i.jsx)("canvas",{id:"my-canvas",width:"700",height:"500"}));let k=(0,r.m)(b(),{shouldForwardProp:e=>["width","height","src","alt"].includes(e)});var C=!0,pages=()=>(0,i.jsx)(j.Z,{children:(0,i.jsxs)(a.W,{marginTop:"73px",marginBottom:"23px",children:[(0,i.jsxs)(l.xu,{display:{md:"flex"},children:[(0,i.jsxs)(l.xu,{flexGrow:1,children:[(0,i.jsx)(s.X,{as:"h2",variant:"page-title",children:"Diego Whiskey"}),(0,i.jsx)(u.Z,{children:"[ Entrepreneurship | Researcher | Artist ]"}),(0,i.jsx)(s.X,{as:"h6",variant:"caption",children:"Full Stack web Developer with Specialization in JavaScript and Data Engineering"})]}),(0,i.jsx)(l.xu,{flexShrink:0,mt:{base:3,md:0},ml:{md:7},textAlign:"center",children:(0,i.jsx)(l.xu,{marginTop:"23px",borderColor:(0,o.ff)("blackAlpha.900","whiteAlpha.900"),borderWidth:2,borderStyle:"solid",w:"auto",h:"auto",display:"inline-block",borderRadius:"full",overflow:"hidden",children:(0,i.jsx)(k,{src:"https://pbs.twimg.com/profile_images/1652848752455999488/NOwlzFAI_400x400.jpg",alt:"Profile image",borderRadius:"full",width:"100",height:"100"})})})]}),(0,i.jsx)(c.o,{ratio:1.7,my:4,children:(0,i.jsx)(components_MatrixRain,{})}),(0,i.jsxs)(g.Z,{delay:.1,children:[(0,i.jsx)(s.X,{as:"h3",variant:"section-title",children:"Work"}),(0,i.jsx)(u.Z,{children:"Let me introduce an exceptional professional who is passionate about web development and databases. If you are looking for a valuable asset to any team in web development, you should definitely check him out. Outside of work, he enjoys recording his voice and singing songs when he's offline."})]}),(0,i.jsxs)(l.xu,{display:{md:"flex"},align:"right",borderColor:(0,o.ff)("blackAlpha.900","whiteAlpha.900"),borderRadius:"lg",borderWidth:2,borderStyle:"solid",mb:6,p:3,textAlign:"center",bg:(0,o.ff)("whiteAlpha.500","blackAlpha.500"),css:{backdropFilter:"blur(7px)"},children:[(0,i.jsx)(s.X,{children:"\uD83D\uDC98"}),(0,i.jsx)(s.X,{as:"h5",variant:"caption",children:"Hip Hop Art & Rap Music"}),(0,i.jsx)(d.aV,{ml:4,my:4,children:(0,i.jsxs)(d.HC,{children:[(0,i.jsx)(_.h_,{children:"Blogpost"}),(0,i.jsxs)(h.r,{href:"https://aite-artistadelhiphop.blogspot.com/2024/04/cantante-de-rap-profesional-tech.html",target:"_blank",children:["De Las Calles Al Data Center ",(0,i.jsx)("br",{}),"Una Odisea Desde El Hip Hop Hasta La Ingenier\xeda De Datos"," ",(0,i.jsx)(v.h,{mx:"2px"})]})]})})]}),(0,i.jsxs)(g.Z,{delay:.2,children:[(0,i.jsx)(s.X,{as:"h3",variant:"section-title",children:"Bio"}),(0,i.jsxs)(m,{children:[(0,i.jsx)(f,{children:"1984"}),"Born in Caldas Antioquia Colombia"]}),(0,i.jsxs)(m,{children:[(0,i.jsx)(f,{children:"2011"}),"He completed the Research Seed Program at the CTM SENA Calatrava Itag\xfc\xed."]}),(0,i.jsxs)(m,{children:[(0,i.jsx)(f,{children:"".concat(new Date().getFullYear())}),"Today debuting in the digital world..."]})]})]})})},5555:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var i=n(78),r=n(5893),a=(0,i.I)({displayName:"ExternalLinkIcon",path:(0,r.jsxs)("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[(0,r.jsx)("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),(0,r.jsx)("path",{d:"M15 3h6v6"}),(0,r.jsx)("path",{d:"M10 14L21 3"})]})})},6393:function(e,t,n){"use strict";n.d(t,{o:function(){return c}});var i=n(5059),r=n(5523),a=n(3951),l=n(5432),s=n(7294),o=n(5893),c=(0,i.G)(function(e,t){let{ratio:n=4/3,children:i,className:c,...d}=e,h=s.Children.only(i),u=(0,l.cx)("chakra-aspect-ratio",c);return(0,o.jsx)(r.m.div,{ref:t,position:"relative",className:u,_before:{height:0,content:'""',display:"block",paddingBottom:(0,a.XQ)(n,e=>`${1/e*100}%`)},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}},...d,children:h})});c.displayName="AspectRatio"},1689:function(e,t,n){"use strict";n.d(t,{C:function(){return c}});var i=n(5059),r=n(1639),a=n(3179),l=n(5523),s=n(5432),o=n(5893),c=(0,i.G)(function(e,t){let n=(0,r.mq)("Badge",e),{className:i,...c}=(0,a.Lr)(e);return(0,o.jsx)(l.m.span,{ref:t,className:(0,s.cx)("chakra-badge",e.className),...c,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...n}})});c.displayName="Badge"},5197:function(e,t,n){"use strict";n.d(t,{HC:function(){return x},aV:function(){return p}});var i=n(6877),r=n(5227),a=n(2495),l=n(5059),s=n(1639),o=n(3179),c=n(5523),d=n(5893),[h,u]=(0,r.k)({name:"ListStylesContext",errorMessage:"useListStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),p=(0,l.G)(function(e,t){let n=(0,s.jC)("List",e),{children:i,styleType:r="none",stylePosition:l,spacing:u,...p}=(0,o.Lr)(e),x=(0,a.W)(i);return(0,d.jsx)(h,{value:n,children:(0,d.jsx)(c.m.ul,{ref:t,listStyleType:r,listStylePosition:l,role:"list",__css:{...n.container,...u?{"& > *:not(style) ~ *:not(style)":{mt:u}}:{}},...p,children:x})})});p.displayName="List",(0,l.G)((e,t)=>{let{as:n,...i}=e;return(0,d.jsx)(p,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...i})}).displayName="OrderedList",(0,l.G)(function(e,t){let{as:n,...i}=e;return(0,d.jsx)(p,{ref:t,as:"ul",styleType:"initial",marginStart:"1em",...i})}).displayName="UnorderedList";var x=(0,l.G)(function(e,t){let n=u();return(0,d.jsx)(c.m.li,{ref:t,...e,__css:n.item})});x.displayName="ListItem",(0,l.G)(function(e,t){let n=u();return(0,d.jsx)(i.J,{ref:t,role:"presentation",...e,__css:n.icon})}).displayName="ListIcon"}},function(e){e.O(0,[675,774,888,179],function(){return e(e.s=5557)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{5557:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(4278)}])},6709:function(e,t,n){"use strict";n.d(t,{h_:function(){return Meta},Dx:function(){return Title}});var i=n(5893),r=n(1664),a=n.n(r),l=n(3100),s=n(3838),o=n(4418),c=n(1689),d=n(78),h=(0,d.I)({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"}),u=(0,d.I)({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});let Title=e=>{let{children:t}=e;return(0,i.jsxs)(l.xu,{marginTop:"73px",children:[(0,i.jsx)(s.r,{as:a(),href:"/portfolio",children:"←"}),(0,i.jsxs)("span",{children:[" ",(0,i.jsx)(h,{})]}),(0,i.jsx)(o.X,{display:"inline-block",as:"h3",fontSize:20,mb:4,children:t}),(0,i.jsx)(u,{})]})},Meta=e=>{let{children:t}=e;return(0,i.jsx)(c.C,{colorScheme:"green",mr:2,children:t})}},4786:function(e,t,n){"use strict";var i=n(5893),r=n(7672),a=n(9008),l=n.n(a);let s={hidden:{opacity:0,x:0,y:20},enter:{opacity:1,x:0,y:0},exit:{opacity:0,x:-0,y:20}};t.Z=e=>{let{children:t,title:n}=e,a="".concat(n," - De Caldas");return(0,i.jsx)(r.E.article,{initial:"hidden",animate:"enter",exit:"exit",variants:s,transition:{duration:.4,type:"easeInOut"},style:{position:"relative"},children:(0,i.jsxs)(i.Fragment,{children:[n&&(0,i.jsxs)(l(),{children:[(0,i.jsx)("title",{children:a}),(0,i.jsx)("meta",{name:"twitter:title",content:a}),(0,i.jsx)("meta",{property:"og:title",content:a})]}),t]})})}},5477:function(e,t,n){"use strict";var i=n(2729),r=n(6829);function _templateObject(){let e=(0,i._)(["\n text-align: justify;\n text-indent: 1em;\n hyphens: auto;\n"]);return _templateObject=function(){return e},e}let a=r.Z.p(_templateObject());t.Z=a},1105:function(e,t,n){"use strict";var i=n(5893),r=n(7672),a=n(5523),l=n(3216);let s=(0,a.m)(r.E.div,{shouldForwardProp:e=>(0,l.x)(e)||"transition"===e});t.Z=e=>{let{children:t,delay:n=0}=e;return(0,i.jsx)(s,{initial:{y:10,opacity:0},animate:{y:0,opacity:1},transition:{duration:.8,delay:n},mb:6,children:t})}},4278:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return C},default:function(){return pages}});var i=n(5893),r=n(5523),a=n(6979),l=n(3100),s=n(4418),o=n(2498),c=n(6393),d=n(5197),h=n(3838),u=n(5477),p=n(2729),x=n(6829);function _templateObject(){let e=(0,p._)(["\n padding-left: 3.4em;\n text-indent: -3.4em;\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,p._)(["\n font-weight: bold;\n margin-right: 1em;\n"]);return _templateObject1=function(){return e},e}let m=(0,x.Z)(l.xu)(_templateObject()),f=x.Z.span(_templateObject1());var j=n(4786),g=n(1105),y=n(5675),b=n.n(y),_=n(6709),v=n(5555),w=n(7294),components_MatrixRain=()=>((0,w.useEffect)(()=>{let e=document.querySelector("#my-canvas"),t=e.getContext("2d"),n="我叫 Diego Whiskey,是一名數位行銷人員、Web 開發人員和資料工程師,專門研究 JavaScript 和 Node.js".split("");(()=>{let{width:i,height:r}=e,a=i/16,l=[];for(let e=0;e{t.fillStyle="rgba(0, 0, 0, 0.04)",t.fillRect(0,0,i,r),t.fillStyle="#0F0",t.font="".concat(16,"px arial");for(let e=0;er&&Math.random()>.975&&(l[e]=0),l[e]++}};return{run:()=>{setInterval(draw,33)}}})({canvas:e}).run()},[]),(0,i.jsx)("canvas",{id:"my-canvas",width:"700",height:"500"}));let k=(0,r.m)(b(),{shouldForwardProp:e=>["width","height","src","alt"].includes(e)});var C=!0,pages=()=>(0,i.jsx)(j.Z,{children:(0,i.jsxs)(a.W,{marginTop:"73px",marginBottom:"23px",children:[(0,i.jsxs)(l.xu,{display:{md:"flex"},children:[(0,i.jsxs)(l.xu,{flexGrow:1,children:[(0,i.jsx)(s.X,{as:"h2",variant:"page-title",children:"Diego Whiskey"}),(0,i.jsx)(u.Z,{children:"[ Entrepreneurship | Researcher | Artist ]"}),(0,i.jsx)(s.X,{as:"h6",variant:"caption",children:"Full Stack web Developer with Specialization in JavaScript and Data Engineering"})]}),(0,i.jsx)(l.xu,{flexShrink:0,mt:{base:3,md:0},ml:{md:7},textAlign:"center",children:(0,i.jsx)(l.xu,{marginTop:"23px",borderColor:(0,o.ff)("blackAlpha.900","whiteAlpha.900"),borderWidth:2,borderStyle:"solid",w:"auto",h:"auto",display:"inline-block",borderRadius:"full",overflow:"hidden",children:(0,i.jsx)(k,{src:"https://pbs.twimg.com/profile_images/1652848752455999488/NOwlzFAI_400x400.jpg",alt:"Profile image",borderRadius:"full",width:"100",height:"100"})})})]}),(0,i.jsx)(c.o,{ratio:1.7,my:4,children:(0,i.jsx)(components_MatrixRain,{})}),(0,i.jsxs)(g.Z,{delay:.1,children:[(0,i.jsx)(s.X,{as:"h3",variant:"section-title",children:"Work"}),(0,i.jsx)(u.Z,{children:"Let me introduce an exceptional professional who is passionate about web development and databases. If you are looking for a valuable asset to any team in web development, you should definitely check him out. Outside of work, he enjoys recording his voice and singing songs when he's offline."})]}),(0,i.jsxs)(l.xu,{display:{md:"flex"},align:"right",borderColor:(0,o.ff)("blackAlpha.900","whiteAlpha.900"),borderRadius:"lg",borderWidth:2,borderStyle:"solid",mb:6,p:3,textAlign:"center",bg:(0,o.ff)("whiteAlpha.500","blackAlpha.500"),css:{backdropFilter:"blur(7px)"},children:[(0,i.jsx)(s.X,{children:"\uD83D\uDC98"}),(0,i.jsx)(s.X,{as:"h5",variant:"caption",children:"Hip Hop Art & Rap Music"}),(0,i.jsx)(d.aV,{ml:4,my:4,children:(0,i.jsxs)(d.HC,{children:[(0,i.jsx)(_.h_,{children:"Blogpost"}),(0,i.jsxs)(h.r,{href:"https://aite-artistadelhiphop.blogspot.com/2024/04/cantante-de-rap-profesional-tech.html",target:"_blank",children:["De Las Calles Al Data Center ",(0,i.jsx)("br",{}),"Una Odisea Desde El Hip Hop Hasta La Ingenier\xeda De Datos"," ",(0,i.jsx)(v.h,{mx:"2px"})]})]})})]}),(0,i.jsxs)(g.Z,{delay:.2,children:[(0,i.jsx)(s.X,{as:"h3",variant:"section-title",children:"Bio"}),(0,i.jsxs)(m,{children:[(0,i.jsx)(f,{children:"1984"}),"Born in Caldas Antioquia Colombia"]}),(0,i.jsxs)(m,{children:[(0,i.jsx)(f,{children:"2011"}),"He completed the Research Seed Program at the CTM SENA Calatrava Itag\xfc\xed."]}),(0,i.jsxs)(m,{children:[(0,i.jsx)(f,{children:"".concat(new Date().getFullYear())}),"Today debuting in the digital world..."]})]})]})})},5555:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var i=n(78),r=n(5893),a=(0,i.I)({displayName:"ExternalLinkIcon",path:(0,r.jsxs)("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[(0,r.jsx)("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),(0,r.jsx)("path",{d:"M15 3h6v6"}),(0,r.jsx)("path",{d:"M10 14L21 3"})]})})},6393:function(e,t,n){"use strict";n.d(t,{o:function(){return c}});var i=n(5059),r=n(5523),a=n(3951),l=n(5432),s=n(7294),o=n(5893),c=(0,i.G)(function(e,t){let{ratio:n=4/3,children:i,className:c,...d}=e,h=s.Children.only(i),u=(0,l.cx)("chakra-aspect-ratio",c);return(0,o.jsx)(r.m.div,{ref:t,position:"relative",className:u,_before:{height:0,content:'""',display:"block",paddingBottom:(0,a.XQ)(n,e=>`${1/e*100}%`)},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}},...d,children:h})});c.displayName="AspectRatio"},1689:function(e,t,n){"use strict";n.d(t,{C:function(){return c}});var i=n(5059),r=n(1639),a=n(3179),l=n(5523),s=n(5432),o=n(5893),c=(0,i.G)(function(e,t){let n=(0,r.mq)("Badge",e),{className:i,...c}=(0,a.Lr)(e);return(0,o.jsx)(l.m.span,{ref:t,className:(0,s.cx)("chakra-badge",e.className),...c,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...n}})});c.displayName="Badge"},5197:function(e,t,n){"use strict";n.d(t,{HC:function(){return x},aV:function(){return p}});var i=n(6877),r=n(5227),a=n(2495),l=n(5059),s=n(1639),o=n(3179),c=n(5523),d=n(5893),[h,u]=(0,r.k)({name:"ListStylesContext",errorMessage:"useListStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),p=(0,l.G)(function(e,t){let n=(0,s.jC)("List",e),{children:i,styleType:r="none",stylePosition:l,spacing:u,...p}=(0,o.Lr)(e),x=(0,a.W)(i);return(0,d.jsx)(h,{value:n,children:(0,d.jsx)(c.m.ul,{ref:t,listStyleType:r,listStylePosition:l,role:"list",__css:{...n.container,...u?{"& > *:not(style) ~ *:not(style)":{mt:u}}:{}},...p,children:x})})});p.displayName="List",(0,l.G)((e,t)=>{let{as:n,...i}=e;return(0,d.jsx)(p,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...i})}).displayName="OrderedList",(0,l.G)(function(e,t){let{as:n,...i}=e;return(0,d.jsx)(p,{ref:t,as:"ul",styleType:"initial",marginStart:"1em",...i})}).displayName="UnorderedList";var x=(0,l.G)(function(e,t){let n=u();return(0,d.jsx)(c.m.li,{ref:t,...e,__css:n.item})});x.displayName="ListItem",(0,l.G)(function(e,t){let n=u();return(0,d.jsx)(i.J,{ref:t,role:"presentation",...e,__css:n.icon})}).displayName="ListIcon"}},function(e){e.O(0,[675,774,888,179],function(){return e(e.s=5557)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/out/index.html b/out/index.html index 5504583..f2bd4c9 100644 --- a/out/index.html +++ b/out/index.html @@ -1 +1 @@ -Diego's Homepage

Diego Whiskey

[ Entrepreneurship | Researcher | Artist ]

Full Stack web Developer with Specialization in JavaScript and Data Engineering
Profile image

Work

Let me introduce an exceptional professional who is passionate about web development and databases. If you are looking for a valuable asset to any team in web development, you should definitely check him out. Outside of work, he enjoys recording his voice and singing songs when he's offline.

💘

Hip Hop Art & Rap Music

Bio

1984Born in Caldas Antioquia Colombia
2011He completed the Research Seed Program at the CTM SENA Calatrava Itagüí.
2024Today debuting in the digital world...
\ No newline at end of file +Diego's Homepage

Diego Whiskey

[ Entrepreneurship | Researcher | Artist ]

Full Stack web Developer with Specialization in JavaScript and Data Engineering
Profile image

Work

Let me introduce an exceptional professional who is passionate about web development and databases. If you are looking for a valuable asset to any team in web development, you should definitely check him out. Outside of work, he enjoys recording his voice and singing songs when he's offline.

💘

Hip Hop Art & Rap Music

Bio

1984Born in Caldas Antioquia Colombia
2011He completed the Research Seed Program at the CTM SENA Calatrava Itagüí.
2024Today debuting in the digital world...
\ No newline at end of file diff --git a/out/portfolio.html b/out/portfolio.html index 5c91eef..7acb259 100644 --- a/out/portfolio.html +++ b/out/portfolio.html @@ -1 +1 @@ -portfolio - De Caldas

Jobs

Networking

\ No newline at end of file +portfolio - De Caldas

Jobs

Networking

\ No newline at end of file diff --git a/out/portfolio/forSale.html b/out/portfolio/forSale.html index 51d3f51..cf7a55a 100644 --- a/out/portfolio/forSale.html +++ b/out/portfolio/forSale.html @@ -1 +1 @@ -Empresa de Transporte - De Caldas

Página Web A La Venta 2023-

This site was made with HTML, CSS, JavaScript and diployed in Surge technology.

\ No newline at end of file +Empresa de Transporte - De Caldas

Página Web A La Venta 2023-

This site was made with HTML, CSS, JavaScript and diployed in Surge technology.

\ No newline at end of file diff --git a/out/portfolio/webPage.html b/out/portfolio/webPage.html index b9a9f44..22a0897 100644 --- a/out/portfolio/webPage.html +++ b/out/portfolio/webPage.html @@ -1 +1 @@ -Homepage - De Caldas

Homepage 2023-

Like mine.

\ No newline at end of file +Homepage - De Caldas

Homepage 2023-

Like mine.

\ No newline at end of file