/*! For license information please see app-c0f2b17aef48842cf3be.js.LICENSE.txt */ (self.webpackChunkhio_stripe=self.webpackChunkhio_stripe||[]).push([[143],{6751:function(e,t,r){"use strict";r.d(t,{Z:function(){return oe}});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=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,r),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 t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?u(x,--b):0,g--,10===y&&(g=1,m--),y}function C(){return y=b2||A(y)>3?"":" "}function $(e,t){for(;--t&&C()&&!(y<48||y>102||y>57&&y<65||y>70&&y<97););return E(e,P()+(t<6&&32==_()&&32==C()))}function z(e){for(;C();)switch(y){case e:return b;case 34:case 39:34!==e&&39!==e&&z(y);break;case 40:41===e&&z(e);break;case 92:C()}return b}function M(e,t){for(;C()&&e+y!==57&&(e+y!==84||47!==_()););return"/*"+E(t,b-1)+"*"+i(47===e?e:C())}function B(e){for(;!A(_());)C();return E(e,b)}var O="-ms-",I="-moz-",L="-webkit-",F="comm",V="rule",N="decl",W="@keyframes";function H(e,t){for(var r="",n=p(e),o=0;o0&&h(I)-v&&f(y>32?Y(I+";",n,r,v-1):Y(l(I," ","")+";",n,r,v-2),p);break;case 59:I+=";";default:if(f(O=Z(I,t,r,m,g,o,d,R,T=[],z=[],v),a),123===A)if(0===g)G(I,t,O,O,T,a,v,d,z);else switch(99===b&&110===u(I,3)?100:b){case 100:case 109:case 115:G(e,O,O,n&&f(Z(e,O,O,0,0,o,d,R,o,T=[],v),z),o,z,v,d,n?T:z);break;default:G(I,O,O,O,[""],z,0,d,z)}}m=g=y=0,w=E=1,R=I="",v=s;break;case 58:v=1+h(I),y=x;default:if(w<1)if(123==A)--w;else if(125==A&&0==w++&&125==S())continue;switch(I+=i(A),A*w){case 38:E=g>0?1:(I+="\f",-1);break;case 44:d[m++]=(h(I)-1)*E,E=1;break;case 64:45===_()&&(I+=j(C())),b=_(),g=v=h(R=I+=B(P())),A++;break;case 45:45===x&&2==h(I)&&(w=0)}}return a}function Z(e,t,r,n,i,a,c,u,h,f,m){for(var g=i-1,v=0===i?a:[""],b=p(v),y=0,x=0,k=0;y0?v[S]+" "+C:l(C,/&\f/g,v[S])))&&(h[k++]=_);return w(e,t,r,0===i?V:u,h,f,m)}function J(e,t,r){return w(e,t,r,F,i(y),d(e,2,-2),0)}function Y(e,t,r,n){return w(e,t,r,N,d(e,0,n),d(e,n+1,-1),n)}var X=function(e,t,r){for(var n=0,o=0;n=o,o=_(),38===n&&12===o&&(t[r]=1),!A(o);)C();return E(e,b)},K=function(e,t){return T(function(e,t){var r=-1,n=44;do{switch(A(n)){case 0:38===n&&12===_()&&(t[r]=1),e[r]+=X(b-1,t,r);break;case 2:e[r]+=j(n);break;case 4:if(44===n){e[++r]=58===_()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=i(n)}}while(n=C());return e}(R(e),t))},Q=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Q.get(r))&&!n){Q.set(e,!0);for(var o=[],i=K(t,o),a=r.props,s=0,l=0;s6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+L+"$2-$3$1"+I+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?re(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,h(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+L)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+L+(45===u(e,14)?"inline-":"")+"box$3$1"+L+"$2$3$1"+O+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return L+e+O+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return L+e+O+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return L+e+O+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return L+e+O+e+e}return e}var ne=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case N:e.return=re(e.value,e.length);break;case W:return H([k(e,{value:l(e.value,"@","@"+L)})],n);case V:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return H([k(e,{props:[l(t,/:(read-\w+)/,":"+I+"$1")]})],n);case"::placeholder":return H([k(e,{props:[l(t,/:(plac\w+)/,":"+L+"input-$1")]}),k(e,{props:[l(t,/:(plac\w+)/,":"+I+"$1")]}),k(e,{props:[l(t,/:(plac\w+)/,O+"input-$1")]})],n)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o=e.stylisPlugins||ne;var i,a,s={},l=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)},o={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i=r(5042),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!=typeof e},u=(0,i.Z)((function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,(function(e,t,r){return p={name:t,styles:r,next:p},t}))}return 1===o[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function h(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return p={name:r.name,styles:r.styles,next:p},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)p={name:n.name,styles:n.styles,next:p},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o{const r=e.endsWith(".html"),n=e.endsWith(".xml"),o=e.endsWith(".pdf");return"/"===e?e:((r||n||o)&&(t="never"),"always"===t?e.endsWith("/")?e:`${e}/`:"never"===t&&e.endsWith("/")?e.slice(0,-1):e)}},9679:function(e,t,r){"use strict";t.$C=void 0;var n=r(1432);t.$C=n.ScrollHandler,r(4855).useScrollRestoration},1432:function(e,t,r){"use strict";var n=r(4836);t.__esModule=!0,t.ScrollHandler=t.ScrollContext=void 0;var o=n(r(6115)),i=n(r(7867)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,r&&r.set(e,n);return n}(r(7294)),s=n(r(5697)),l=r(1142);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}var u=a.createContext(new l.SessionStorage);t.ScrollContext=u,u.displayName="GatsbyScrollContext";var d=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i{}},7730:function(e,t){"use strict";t.__esModule=!0,t.getForwards=function(e){return null==e?void 0:e.flatMap((e=>(null==e?void 0:e.forward)||[]))}},2731:function(e,t,r){"use strict";t.__esModule=!0,t.injectPartytownSnippet=function(e){if(!e.length)return;const t=document.querySelector("script[data-partytown]"),r=document.querySelector('iframe[src*="~partytown/partytown-sandbox-sw"]');t&&t.remove();r&&r.remove();const i=(0,o.getForwards)(e),a=document.createElement("script");a.dataset.partytown="",a.innerHTML=(0,n.partytownSnippet)({forward:i}),document.head.appendChild(a)};var n=r(2911),o=r(7730)},5418:function(e,t,r){t.components={"component---src-pages-404-js":()=>r.e(883).then(r.bind(r,429)),"component---src-pages-index-js":()=>r.e(678).then(r.bind(r,6558)),"component---src-pages-invoice-id-confirm-tsx":()=>Promise.all([r.e(657),r.e(158)]).then(r.bind(r,1446)),"component---src-pages-invoice-id-pay-tsx":()=>Promise.all([r.e(752),r.e(657),r.e(167)]).then(r.bind(r,7230)),"component---src-pages-invoice-id-tsx":()=>Promise.all([r.e(577),r.e(752),r.e(769)]).then(r.bind(r,3187))}},4741:function(e,t,r){e.exports=[{plugin:r(3965),options:{plugins:[]}},{plugin:r(45),options:{plugins:[],displayName:!0,fileName:!0,minify:!0,namespace:"",transpileTemplateLiterals:!0,topLevelImportPaths:[],pure:!1,disableVendorPrefixes:!1}},{plugin:r(4094),options:{plugins:[]}}]},3092:function(e,t,r){const n=r(4741),{getResourceURLsForPathname:o,loadPage:i,loadPageSync:a}=r(1975).jN;t.h=function(e,t,r,s){void 0===t&&(t={});let l=n.map((r=>{if(!r.plugin[e])return;t.getResourceURLsForPathname=o,t.loadPage=i,t.loadPageSync=a;const n=r.plugin[e](t,r.options);return n&&s&&(t=s({args:t,result:n,plugin:r})),n}));return l=l.filter((e=>void 0!==e)),l.length>0?l:r?[r]:[]},t.I=(e,t,r)=>n.reduce(((r,n)=>n.plugin[e]?r.then((()=>n.plugin[e](t,n.options))):r),Promise.resolve())},4004:function(e,t){},8299:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});var n=function(e){return e=e||Object.create(null),{on:function(t,r){(e[t]||(e[t]=[])).push(r)},off:function(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit:function(t,r){(e[t]||[]).slice().map((function(e){e(r)})),(e["*"]||[]).slice().map((function(e){e(t,r)}))}}}()},7802:function(e,t,r){"use strict";r.d(t,{UD:function(){return h},Cj:function(){return f},GA:function(){return p},DS:function(){return d}});var n=r(7896),o=r(1505),i=e=>{if(void 0===e)return e;let[t,r=""]=e.split("?");return r&&(r="?"+r),"/"===t?"/"+r:"/"===t.charAt(t.length-1)?t.slice(0,-1)+r:t+r},a=r(6073);const s=new Map;let l=[];const c=e=>{let t=e;if(-1!==e.indexOf("?")){const[r,n]=e.split("?");t=r+"?"+encodeURIComponent(n)}const r=decodeURIComponent(t);return(0,o.Z)(r,decodeURIComponent("")).split("#")[0]};function u(e){return e.startsWith("/")||e.startsWith("https://")||e.startsWith("http://")?e:new URL(e,window.location.href+(window.location.href.endsWith("/")?"":"/")).pathname}const d=e=>{l=e},h=e=>{const t=m(e),r=l.map((e=>{let{path:t,matchPath:r}=e;return{path:r,originalPath:t}})),o=(0,n.pick)(r,t);return o?i(o.route.originalPath):null},p=e=>{const t=m(e),r=l.map((e=>{let{path:t,matchPath:r}=e;return{path:r,originalPath:t}})),o=(0,n.pick)(r,t);return o?o.params:{}},f=e=>{const t=c(u(e));if(s.has(t))return s.get(t);const r=(0,a.J)(e);if(r)return f(r.toPath);let n=h(t);return n||(n=m(e)),s.set(t,n),n},m=e=>{let t=c(u(e));return"/index.html"===t&&(t="/"),t=i(t),t}},7500:function(e,t,r){"use strict";r.d(t,{rU:function(){return o.rU},B9:function(){return i.B9},c4:function(){return o.c4}});var n=r(1975),o=(r(2743),r(9679),r(1562)),i=r(1757),a=r(7326),s=r(4578),l=r(1120),c=r(9611);function u(e,t,r){return u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&(0,c.Z)(o,r.prototype),o},u.apply(null,arguments)}function d(e){var t="function"==typeof Map?new Map:void 0;return d=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return u(e,arguments,(0,l.Z)(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,c.Z)(n,e)},d(e)}var h=r(7294);r(4004),r(8995);Error;n.ZP.enqueue},1975:function(e,t,r){"use strict";r.d(t,{uQ:function(){return d},kL:function(){return w},ZP:function(){return C},Nt:function(){return P},hs:function(){return _},jN:function(){return S},N1:function(){return k}});var n=r(4578),o=r(2982),i=r(3261);const a=function(e){if("undefined"==typeof document)return!1;const t=document.createElement("link");try{if(t.relList&&"function"==typeof t.relList.supports)return t.relList.supports(e)}catch(r){return!1}return!1}("prefetch")?function(e,t){return new Promise(((r,n)=>{if("undefined"==typeof document)return void n();const o=document.createElement("link");o.setAttribute("rel","prefetch"),o.setAttribute("href",e),Object.keys(t).forEach((e=>{o.setAttribute(e,t[e])})),o.onload=r,o.onerror=n;(document.getElementsByTagName("head")[0]||document.getElementsByName("script")[0].parentNode).appendChild(o)}))}:function(e){return new Promise(((t,r)=>{const n=new XMLHttpRequest;n.open("GET",e,!0),n.onload=()=>{200===n.status?t():r()},n.send(null)}))},s={};var l=function(e,t){return new Promise((r=>{s[e]?r():a(e,t).then((()=>{r(),s[e]=!0})).catch((()=>{}))}))},c=r(8299),u=r(7802);const d={Error:"error",Success:"success"},h=e=>{const[t,r]=e.split("?");var n;return"/page-data/"+("/"===t?"index":(n="/"===(n=t)[0]?n.slice(1):n).endsWith("/")?n.slice(0,-1):n)+"/page-data.json"+(r?"?"+r:"")},p=e=>e.startsWith("//");function f(e,t){return void 0===t&&(t="GET"),new Promise((r=>{const n=new XMLHttpRequest;n.open(t,e,!0),n.onreadystatechange=()=>{4==n.readyState&&r(n)},n.send(null)}))}const m=/bot|crawler|spider|crawling/i,g=function(e,t,r){var n;void 0===t&&(t=null);const o={componentChunkName:e.componentChunkName,path:e.path,webpackCompilationHash:e.webpackCompilationHash,matchPath:e.matchPath,staticQueryHashes:e.staticQueryHashes,getServerDataError:e.getServerDataError,slicesMap:null!==(n=e.slicesMap)&&void 0!==n?n:{}};return{component:t,head:r,json:e.result,page:o}};function v(e){return new Promise((t=>{try{const r=e.readRoot();t(r)}catch(r){if(!Object.hasOwnProperty.call(r,"_response")||!Object.hasOwnProperty.call(r,"_status"))throw r;setTimeout((()=>{v(e).then(t)}),200)}}))}let b=function(){function e(e,t){this.inFlightNetworkRequests=new Map,this.pageDb=new Map,this.inFlightDb=new Map,this.staticQueryDb={},this.pageDataDb=new Map,this.partialHydrationDb=new Map,this.slicesDataDb=new Map,this.sliceInflightDb=new Map,this.slicesDb=new Map,this.isPrefetchQueueRunning=!1,this.prefetchQueued=[],this.prefetchTriggered=new Set,this.prefetchCompleted=new Set,this.loadComponent=e,(0,u.DS)(t)}var t=e.prototype;return t.memoizedGet=function(e){let t=this.inFlightNetworkRequests.get(e);return t||(t=f(e,"GET"),this.inFlightNetworkRequests.set(e,t)),t.then((t=>(this.inFlightNetworkRequests.delete(e),t))).catch((t=>{throw this.inFlightNetworkRequests.delete(e),t}))},t.setApiRunner=function(e){this.apiRunner=e,this.prefetchDisabled=e("disableCorePrefetching").some((e=>e))},t.fetchPageDataJson=function(e){const{pagePath:t,retries:r=0}=e,n=h(t);return this.memoizedGet(n).then((n=>{const{status:o,responseText:i}=n;if(200===o)try{const r=JSON.parse(i);if(void 0===r.path)throw new Error("not a valid pageData response");const n=t.split("?")[1];return n&&!r.path.includes(n)&&(r.path+="?"+n),Object.assign(e,{status:d.Success,payload:r})}catch(a){}return 404===o||200===o?"/404.html"===t||"/500.html"===t?Object.assign(e,{status:d.Error}):this.fetchPageDataJson(Object.assign(e,{pagePath:"/404.html",notFound:!0})):500===o?this.fetchPageDataJson(Object.assign(e,{pagePath:"/500.html",internalServerError:!0})):r<3?this.fetchPageDataJson(Object.assign(e,{retries:r+1})):Object.assign(e,{status:d.Error})}))},t.fetchPartialHydrationJson=function(e){const{pagePath:t,retries:r=0}=e,n=h(t).replace(".json","-rsc.json");return this.memoizedGet(n).then((n=>{const{status:o,responseText:i}=n;if(200===o)try{return Object.assign(e,{status:d.Success,payload:i})}catch(a){}return 404===o||200===o?"/404.html"===t||"/500.html"===t?Object.assign(e,{status:d.Error}):this.fetchPartialHydrationJson(Object.assign(e,{pagePath:"/404.html",notFound:!0})):500===o?this.fetchPartialHydrationJson(Object.assign(e,{pagePath:"/500.html",internalServerError:!0})):r<3?this.fetchPartialHydrationJson(Object.assign(e,{retries:r+1})):Object.assign(e,{status:d.Error})}))},t.loadPageDataJson=function(e){const t=(0,u.Cj)(e);if(this.pageDataDb.has(t)){const e=this.pageDataDb.get(t);return Promise.resolve(e)}return this.fetchPageDataJson({pagePath:t}).then((e=>(this.pageDataDb.set(t,e),e)))},t.loadPartialHydrationJson=function(e){const t=(0,u.Cj)(e);if(this.partialHydrationDb.has(t)){const e=this.partialHydrationDb.get(t);return Promise.resolve(e)}return this.fetchPartialHydrationJson({pagePath:t}).then((e=>(this.partialHydrationDb.set(t,e),e)))},t.loadSliceDataJson=function(e){if(this.slicesDataDb.has(e)){const t=this.slicesDataDb.get(e);return Promise.resolve({sliceName:e,jsonPayload:t})}return f("/slice-data/"+e+".json","GET").then((t=>{const r=JSON.parse(t.responseText);return this.slicesDataDb.set(e,r),{sliceName:e,jsonPayload:r}}))},t.findMatchPath=function(e){return(0,u.UD)(e)},t.loadPage=function(e){const t=(0,u.Cj)(e);if(this.pageDb.has(t)){const e=this.pageDb.get(t);return e.error?Promise.resolve({error:e.error,status:e.status}):Promise.resolve(e.payload)}if(this.inFlightDb.has(t))return this.inFlightDb.get(t);const r=[this.loadAppData(),this.loadPageDataJson(t)];const n=Promise.all(r).then((e=>{const[r,n,a]=e;if(n.status===d.Error||(null==a?void 0:a.status)===d.Error)return{status:d.Error};let s=n.payload;const{componentChunkName:l,staticQueryHashes:u=[],slicesMap:h={}}=s,p={},f=Array.from(new Set(Object.values(h))),m=e=>{if(this.slicesDb.has(e.name))return this.slicesDb.get(e.name);if(this.sliceInflightDb.has(e.name))return this.sliceInflightDb.get(e.name);const t=this.loadComponent(e.componentChunkName).then((t=>{return{component:(r=t,r&&r.default||r),sliceContext:e.result.sliceContext,data:e.result.data};var r}));return this.sliceInflightDb.set(e.name,t),t.then((t=>{this.slicesDb.set(e.name,t),this.sliceInflightDb.delete(e.name)})),t};return Promise.all(f.map((e=>this.loadSliceDataJson(e)))).then((e=>{const h=[],f=(0,o.Z)(u);for(const{jsonPayload:t,sliceName:r}of Object.values(e)){h.push({name:r,...t});for(const e of t.staticQueryHashes)f.includes(e)||f.push(e)}const b=[Promise.all(h.map(m)),this.loadComponent(l,"head")];b.push(this.loadComponent(l));const y=Promise.all(b).then((e=>{const[t,o,l]=e;p.createdAt=new Date;for(const r of t)(!r||r instanceof Error)&&(p.status=d.Error,p.error=r);let c;if((!l||l instanceof Error)&&(p.status=d.Error,p.error=l),p.status!==d.Error){if(p.status=d.Success,!0!==n.notFound&&!0!==(null==a?void 0:a.notFound)||(p.notFound=!0),s=Object.assign(s,{webpackCompilationHash:r?r.webpackCompilationHash:""}),"string"==typeof(null==a?void 0:a.payload)){c=g(s,null,o),c.partialHydration=a.payload;const e=new ReadableStream({start(e){const t=new TextEncoder;e.enqueue(t.encode(a.payload))},pull(e){e.close()},cancel(){}});return v((0,i.createFromReadableStream)(e)).then((e=>(c.partialHydration=e,c)))}c=g(s,l,o)}return c})),x=Promise.all(f.map((e=>{if(this.staticQueryDb[e]){const t=this.staticQueryDb[e];return{staticQueryHash:e,jsonPayload:t}}return this.memoizedGet("/page-data/sq/d/"+e+".json").then((t=>{const r=JSON.parse(t.responseText);return{staticQueryHash:e,jsonPayload:r}})).catch((()=>{throw new Error("We couldn't load \"/page-data/sq/d/"+e+'.json"')}))}))).then((e=>{const t={};return e.forEach((e=>{let{staticQueryHash:r,jsonPayload:n}=e;t[r]=n,this.staticQueryDb[r]=n})),t}));return Promise.all([y,x]).then((e=>{let r,[n,o]=e;return n&&(r={...n,staticQueryResults:o},p.payload=r,c.Z.emit("onPostLoadPageResources",{page:r,pageResources:r})),this.pageDb.set(t,p),p.error?{error:p.error,status:p.status}:r})).catch((e=>({error:e,status:d.Error})))}))}));return n.then((()=>{this.inFlightDb.delete(t)})).catch((e=>{throw this.inFlightDb.delete(t),e})),this.inFlightDb.set(t,n),n},t.loadPageSync=function(e,t){void 0===t&&(t={});const r=(0,u.Cj)(e);if(this.pageDb.has(r)){var n;const e=this.pageDb.get(r);if(e.payload)return e.payload;if(null!==(n=t)&&void 0!==n&&n.withErrorDetails)return{error:e.error,status:e.status}}},t.shouldPrefetch=function(e){return!!(()=>{if("connection"in navigator&&void 0!==navigator.connection){if((navigator.connection.effectiveType||"").includes("2g"))return!1;if(navigator.connection.saveData)return!1}return!0})()&&((!navigator.userAgent||!m.test(navigator.userAgent))&&!this.pageDb.has(e))},t.prefetch=function(e){if(!this.shouldPrefetch(e))return{then:e=>e(!1),abort:()=>{}};if(this.prefetchTriggered.has(e))return{then:e=>e(!0),abort:()=>{}};const t={resolve:null,reject:null,promise:null};t.promise=new Promise(((e,r)=>{t.resolve=e,t.reject=r})),this.prefetchQueued.push([e,t]);const r=new AbortController;return r.signal.addEventListener("abort",(()=>{const t=this.prefetchQueued.findIndex((t=>{let[r]=t;return r===e}));-1!==t&&this.prefetchQueued.splice(t,1)})),this.isPrefetchQueueRunning||(this.isPrefetchQueueRunning=!0,setTimeout((()=>{this._processNextPrefetchBatch()}),3e3)),{then:(e,r)=>t.promise.then(e,r),abort:r.abort.bind(r)}},t._processNextPrefetchBatch=function(){(window.requestIdleCallback||(e=>setTimeout(e,0)))((()=>{const e=this.prefetchQueued.splice(0,4),t=Promise.all(e.map((e=>{let[t,r]=e;return this.prefetchTriggered.has(t)||(this.apiRunner("onPrefetchPathname",{pathname:t}),this.prefetchTriggered.add(t)),this.prefetchDisabled?r.resolve(!1):this.doPrefetch((0,u.Cj)(t)).then((()=>{this.prefetchCompleted.has(t)||(this.apiRunner("onPostPrefetchPathname",{pathname:t}),this.prefetchCompleted.add(t)),r.resolve(!0)}))})));this.prefetchQueued.length?t.then((()=>{setTimeout((()=>{this._processNextPrefetchBatch()}),3e3)})):this.isPrefetchQueueRunning=!1}))},t.doPrefetch=function(e){const t=h(e);return l(t,{crossOrigin:"anonymous",as:"fetch"}).then((()=>this.loadPageDataJson(e)))},t.hovering=function(e){this.loadPage(e)},t.getResourceURLsForPathname=function(e){const t=(0,u.Cj)(e),r=this.pageDataDb.get(t);if(r){const e=g(r.payload);return[].concat((0,o.Z)(y(e.page.componentChunkName)),[h(t)])}return null},t.isPageNotFound=function(e){const t=(0,u.Cj)(e),r=this.pageDb.get(t);return!r||r.notFound},t.loadAppData=function(e){return void 0===e&&(e=0),this.memoizedGet("/page-data/app-data.json").then((t=>{const{status:r,responseText:n}=t;let o;if(200!==r&&e<3)return this.loadAppData(e+1);if(200===r)try{const e=JSON.parse(n);if(void 0===e.webpackCompilationHash)throw new Error("not a valid app-data response");o=e}catch(i){}return o}))},e}();const y=e=>(window.___chunkMapping[e]||[]).map((e=>""+e));let x,w=function(e){function t(t,r,n){var o;return o=e.call(this,(function(e,r){if(void 0===r&&(r="components"),!t[r="components"][e])throw new Error("We couldn't find the correct component chunk with the name \""+e+'"');return t[r][e]().catch((e=>e))}),r)||this,n&&o.pageDataDb.set((0,u.Cj)(n.path),{pagePath:n.path,payload:n,status:"success"}),o}(0,n.Z)(t,e);var r=t.prototype;return r.doPrefetch=function(t){return e.prototype.doPrefetch.call(this,t).then((e=>{if(e.status!==d.Success)return Promise.resolve();const t=e.payload,r=t.componentChunkName,n=y(r);return Promise.all(n.map(l)).then((()=>t))}))},r.loadPageDataJson=function(t){return e.prototype.loadPageDataJson.call(this,t).then((e=>e.notFound?p(t)?e:f(t,"HEAD").then((t=>200===t.status?{status:d.Error}:e)):e))},r.loadPartialHydrationJson=function(t){return e.prototype.loadPartialHydrationJson.call(this,t).then((e=>e.notFound?p(t)?e:f(t,"HEAD").then((t=>200===t.status?{status:d.Error}:e)):e))},t}(b);const k=e=>{x=e},S={enqueue:e=>x.prefetch(e),getResourceURLsForPathname:e=>x.getResourceURLsForPathname(e),loadPage:e=>x.loadPage(e),loadPageSync:function(e,t){return void 0===t&&(t={}),x.loadPageSync(e,t)},prefetch:e=>x.prefetch(e),isPageNotFound:e=>x.isPageNotFound(e),hovering:e=>x.hovering(e),loadAppData:()=>x.loadAppData()};var C=S;function _(){return x?x.staticQueryDb:{}}function P(){return x?x.slicesDb:{}}},4779:function(e,t,r){"use strict";r.d(t,{Z:function(){return C}});var n=r(7294),o=r(5697),i=r.n(o),a=r(3092),s=r(7802),l=r(2982),c=r(7500),u=r(7896),d=r(4941);function h(e){let{children:t,callback:r}=e;return(0,n.useEffect)((()=>{r()})),t}const p=["link","meta","style","title","base","noscript","script","html","body"];function f(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){const r=t.getAttribute("nonce");if(r&&!e.getAttribute("nonce")){const n=t.cloneNode(!0);return n.setAttribute("nonce",""),n.nonce=r,r===e.nonce&&e.isEqualNode(n)}}return e.isEqualNode(t)}function m(e,t){void 0===t&&(t={html:{},body:{}});const r=new Map,n=[];for(const s of e.childNodes){var o,i;const e=s.nodeName.toLowerCase(),c=null===(o=s.attributes)||void 0===o||null===(i=o.id)||void 0===i?void 0:i.value;if(b(s)){if(v(e))if("html"===e||"body"===e)for(const r of s.attributes)t[e]={...t[e],[r.name]:r.value};else{let e=s.cloneNode(!0);if(e.setAttribute("data-gatsby-head",!0),"script"===e.nodeName.toLowerCase()&&(e=g(e)),c)if(r.has(c)){var a;const t=r.get(c);null===(a=n[t].parentNode)||void 0===a||a.removeChild(n[t]),n[t]=e}else n.push(e),r.set(c,n.length-1);else n.push(e)}s.childNodes.length&&n.push.apply(n,(0,l.Z)(m(s,t).validHeadNodes))}}return{validHeadNodes:n,htmlAndBodyAttributes:t}}function g(e){const t=document.createElement("script");for(const r of e.attributes)t.setAttribute(r.name,r.value);return t.innerHTML=e.innerHTML,t}function v(e){return p.includes(e)}function b(e){return 1===e.nodeType}const y=document.createElement("div"),x={html:[],body:[]},w=()=>{var e;const{validHeadNodes:t,htmlAndBodyAttributes:r}=m(y);x.html=Object.keys(r.html),x.body=Object.keys(r.body),function(e){if(!e)return;const{html:t,body:r}=e,n=document.querySelector("html");n&&Object.entries(t).forEach((e=>{let[t,r]=e;n.setAttribute(t,r)}));const o=document.querySelector("body");o&&Object.entries(r).forEach((e=>{let[t,r]=e;o.setAttribute(t,r)}))}(r);const n=document.querySelectorAll("[data-gatsby-head]");var o;if(0===n.length)return void(o=document.head).append.apply(o,(0,l.Z)(t));const i=[];!function(e){let{oldNodes:t,newNodes:r,onStale:n,onNew:o}=e;for(const i of t){const e=r.findIndex((e=>f(e,i)));-1===e?n(i):r.splice(e,1)}for(const i of r)o(i)}({oldNodes:n,newNodes:t,onStale:e=>e.parentNode.removeChild(e),onNew:e=>i.push(e)}),(e=document.head).append.apply(e,i)};function k(e){let{pageComponent:t,staticQueryResults:r,pageComponentProps:o}=e;(0,n.useEffect)((()=>{if(null!=t&&t.Head){!function(e){if("function"!=typeof e)throw new Error('Expected "Head" export to be a function got "'+typeof e+'".')}(t.Head);const{render:i}=(0,d.U)(),s=n.createElement(t.Head,{location:{pathname:(e=o).location.pathname},params:e.params,data:e.data||{},serverData:e.serverData,pageContext:e.pageContext}),l=(0,a.h)("wrapRootElement",{element:s},s,(e=>{let{result:t}=e;return{element:t}})).pop();i(n.createElement(h,{callback:w},n.createElement(c.B9.Provider,{value:r},n.createElement(u.LocationProvider,null,l))),y)}var e;return()=>{!function(){const e=document.querySelectorAll("[data-gatsby-head]");for(const t of e)t.parentNode.removeChild(t)}(),function(e){if(!e)return;const{html:t,body:r}=e;if(t){const e=document.querySelector("html");t.forEach((t=>{e&&e.removeAttribute(t)}))}if(r){const e=document.querySelector("body");r.forEach((t=>{e&&e.removeAttribute(t)}))}}(x)}}))}function S(e){const t={...e,params:{...(0,s.GA)(e.location.pathname),...e.pageResources.json.pageContext.__params}};let r;var o;r=e.pageResources.partialHydration?e.pageResources.partialHydration:(0,n.createElement)((o=e.pageResources.component)&&o.default||o,{...t,key:e.path||e.pageResources.page.path});k({pageComponent:e.pageResources.head,staticQueryResults:e.pageResources.staticQueryResults,pageComponentProps:t});return(0,a.h)("wrapPageElement",{element:r,props:t},r,(e=>{let{result:r}=e;return{element:r,props:t}})).pop()}S.propTypes={location:i().object.isRequired,pageResources:i().object.isRequired,data:i().object,pageContext:i().object.isRequired};var C=S},5824:function(e,t,r){"use strict";var n=r(4578),o=r(3092),i=r(7294),a=r(7896),s=r(9679),l=r(1757),c=r(8995),u=r(1975),d=r(6073),h=r(8299);const p={id:"gatsby-announcer",style:{position:"absolute",top:0,width:1,height:1,padding:0,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},"aria-live":"assertive","aria-atomic":"true"};var f=r(1562);function m(e){const t=(0,d.J)(e),{hash:r,search:n}=window.location;return null!=t&&(window.___replace(t.toPath+n+r),!0)}let g="";window.addEventListener("unhandledrejection",(e=>{/loading chunk \d* failed./i.test(e.reason)&&g&&(window.location.pathname=g)}));const v=(e,t)=>{m(e.pathname)||(g=e.pathname,(0,o.h)("onPreRouteUpdate",{location:e,prevLocation:t}))},b=(e,t)=>{m(e.pathname)||(0,o.h)("onRouteUpdate",{location:e,prevLocation:t})},y=function(e,t){if(void 0===t&&(t={}),"number"==typeof e)return void a.globalHistory.navigate(e);const{pathname:r,search:n,hash:i}=(0,f.cP)(e),s=(0,d.J)(r);if(s&&(e=s.toPath+n+i),window.___swUpdated)return void(window.location=r+n+i);const l=setTimeout((()=>{h.Z.emit("onDelayedLoadPageResources",{pathname:r}),(0,o.h)("onRouteUpdateDelayed",{location:window.location})}),1e3);u.ZP.loadPage(r+n).then((o=>{if(!o||o.status===u.uQ.Error)return window.history.replaceState({},"",location.href),window.location=r,void clearTimeout(l);o&&o.page.webpackCompilationHash!==window.___webpackCompilationHash&&("serviceWorker"in navigator&&null!==navigator.serviceWorker.controller&&"activated"===navigator.serviceWorker.controller.state&&navigator.serviceWorker.controller.postMessage({gatsbyApi:"clearPathResources"}),window.location=r+n+i),(0,a.navigate)(e,t),clearTimeout(l)}))};function x(e,t){let{location:r}=t;const{pathname:n,hash:i}=r,a=(0,o.h)("shouldUpdateScroll",{prevRouterProps:e,pathname:n,routerProps:{location:r},getSavedScrollPosition:e=>[0,this._stateStorage.read(e,e.key)]});if(a.length>0)return a[a.length-1];if(e){const{location:{pathname:t}}=e;if(t===n)return i?decodeURI(i.slice(1)):[0,0]}return!0}let w=function(e){function t(t){var r;return(r=e.call(this,t)||this).announcementRef=i.createRef(),r}(0,n.Z)(t,e);var r=t.prototype;return r.componentDidUpdate=function(e,t){requestAnimationFrame((()=>{let e="new page at "+this.props.location.pathname;document.title&&(e=document.title);const t=document.querySelectorAll("#gatsby-focus-wrapper h1");t&&t.length&&(e=t[0].textContent);const r="Navigated to "+e;if(this.announcementRef.current){this.announcementRef.current.innerText!==r&&(this.announcementRef.current.innerText=r)}}))},r.render=function(){return i.createElement("div",Object.assign({},p,{ref:this.announcementRef}))},t}(i.Component);const k=(e,t)=>{var r,n;return e.href!==t.href||(null==e||null===(r=e.state)||void 0===r?void 0:r.key)!==(null==t||null===(n=t.state)||void 0===n?void 0:n.key)};let S=function(e){function t(t){var r;return r=e.call(this,t)||this,v(t.location,null),r}(0,n.Z)(t,e);var r=t.prototype;return r.componentDidMount=function(){b(this.props.location,null)},r.shouldComponentUpdate=function(e){return!!k(this.props.location,e.location)&&(v(e.location,this.props.location),!0)},r.componentDidUpdate=function(e){k(e.location,this.props.location)&&b(this.props.location,e.location)},r.render=function(){return i.createElement(i.Fragment,null,this.props.children,i.createElement(w,{location:location}))},t}(i.Component);var C=r(4779),_=r(5418);function P(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var E=function(e){function t(t){var r;r=e.call(this)||this;const{location:n,pageResources:o}=t;return r.state={location:{...n},pageResources:o||u.ZP.loadPageSync(n.pathname+n.search,{withErrorDetails:!0})},r}(0,n.Z)(t,e),t.getDerivedStateFromProps=function(e,t){let{location:r}=e;if(t.location.href!==r.href){return{pageResources:u.ZP.loadPageSync(r.pathname+r.search,{withErrorDetails:!0}),location:{...r}}}return{location:{...r}}};var r=t.prototype;return r.loadResources=function(e){u.ZP.loadPage(e).then((t=>{t&&t.status!==u.uQ.Error?this.setState({location:{...window.location},pageResources:t}):(window.history.replaceState({},"",location.href),window.location=e)}))},r.shouldComponentUpdate=function(e,t){return t.pageResources?this.state.pageResources!==t.pageResources||(this.state.pageResources.component!==t.pageResources.component||(this.state.pageResources.json!==t.pageResources.json||(!(this.state.location.key===t.location.key||!t.pageResources.page||!t.pageResources.page.matchPath&&!t.pageResources.page.path)||function(e,t,r){return P(e.props,t)||P(e.state,r)}(this,e,t)))):(this.loadResources(e.location.pathname+e.location.search),!1)},r.render=function(){return this.props.children(this.state)},t}(i.Component),A=r(1505),R=JSON.parse('[{"path":"/[invoiceId]/confirm/","matchPath":"/:invoiceId/confirm"},{"path":"/[invoiceId]/pay/","matchPath":"/:invoiceId/pay"},{"path":"/404.html","matchPath":"/404.html"},{"path":"/404/","matchPath":"/404/"},{"path":"/[invoiceId]/","matchPath":"/:invoiceId"}]'),T=r(4941);const j=new u.kL(_,R,window.pageData);(0,u.N1)(j),j.setApiRunner(o.h);const{render:D,hydrate:$}=(0,T.U)();window.asyncRequires=_,window.___emitter=h.Z,window.___loader=u.jN,a.globalHistory.listen((e=>{e.location.action=e.action})),window.___push=e=>y(e,{replace:!1}),window.___replace=e=>y(e,{replace:!0}),window.___navigate=(e,t)=>y(e,t);const z="gatsby-reload-compilation-hash-match";(0,o.I)("onClientEntry").then((()=>{(0,o.h)("registerServiceWorker").filter(Boolean).length>0&&r(9939);const e=e=>i.createElement(a.BaseContext.Provider,{value:{baseuri:"/",basepath:"/"}},i.createElement(C.Z,e)),t=i.createContext({}),d={renderEnvironment:"browser"};let h=function(e){function r(){return e.apply(this,arguments)||this}return(0,n.Z)(r,e),r.prototype.render=function(){const{children:e}=this.props;return i.createElement(a.Location,null,(r=>{let{location:n}=r;return i.createElement(E,{location:n},(r=>{let{pageResources:n,location:o}=r;const a=(0,u.hs)(),s=(0,u.Nt)();return i.createElement(l.B9.Provider,{value:a},i.createElement(c.Bs.Provider,{value:d},i.createElement(c.m3.Provider,{value:s},i.createElement(c.u0.Provider,{value:n.page.slicesMap},i.createElement(t.Provider,{value:{pageResources:n,location:o}},e)))))}))}))},r}(i.Component),p=function(r){function o(){return r.apply(this,arguments)||this}return(0,n.Z)(o,r),o.prototype.render=function(){return i.createElement(t.Consumer,null,(t=>{let{pageResources:r,location:n}=t;return i.createElement(S,{location:n},i.createElement(s.$C,{location:n,shouldUpdateScroll:x},i.createElement(a.Router,{basepath:"",location:n,id:"gatsby-focus-wrapper"},i.createElement(e,Object.assign({path:"/404.html"===r.page.path||"/500.html"===r.page.path?(0,A.Z)(n.pathname,""):encodeURI((r.page.matchPath||r.page.path).split("?")[0])},this.props,{location:n,pageResources:r},r.json)))))}))},o}(i.Component);const{pagePath:f,location:m}=window;f&&""+f!==m.pathname+(f.includes("?")?m.search:"")&&!(j.findMatchPath((0,A.Z)(m.pathname,""))||f.match(/^\/(404|500)(\/?|.html)$/)||f.match(/^\/offline-plugin-app-shell-fallback\/?$/))&&(0,a.navigate)(""+f+(f.includes("?")?"":m.search)+m.hash,{replace:!0});const g=()=>{try{return sessionStorage}catch{return null}};u.jN.loadPage(m.pathname+m.search).then((e=>{var t;const r=g();if(null!=e&&null!==(t=e.page)&&void 0!==t&&t.webpackCompilationHash&&e.page.webpackCompilationHash!==window.___webpackCompilationHash&&("serviceWorker"in navigator&&null!==navigator.serviceWorker.controller&&"activated"===navigator.serviceWorker.controller.state&&navigator.serviceWorker.controller.postMessage({gatsbyApi:"clearPathResources"}),r)){if(!("1"===r.getItem(z)))return r.setItem(z,"1"),void window.location.reload(!0)}if(r&&r.removeItem(z),!e||e.status===u.uQ.Error){const t="page resources for "+m.pathname+" not found. Not rendering React";if(e&&e.error)throw console.error(t),e.error;throw new Error(t)}const n=(0,o.h)("wrapRootElement",{element:i.createElement(p,null)},i.createElement(p,null),(e=>{let{result:t}=e;return{element:t}})).pop(),a=function(){const e=i.useRef(!1);return i.useEffect((()=>{e.current||(e.current=!0,performance.mark&&performance.mark("onInitialClientRender"),(0,o.h)("onInitialClientRender"))}),[]),i.createElement(h,null,n)},s=document.getElementById("gatsby-focus-wrapper");let l=D;s&&s.children.length&&(l=$);const c=(0,o.h)("replaceHydrateFunction",void 0,l)[0];function d(){const e="undefined"!=typeof window?document.getElementById("___gatsby"):null;c(i.createElement(a,null),e)}const f=document;if("complete"===f.readyState||"loading"!==f.readyState&&!f.documentElement.doScroll)setTimeout((function(){d()}),0);else{const e=function(){f.removeEventListener("DOMContentLoaded",e,!1),window.removeEventListener("load",e,!1),d()};f.addEventListener("DOMContentLoaded",e,!1),window.addEventListener("load",e,!1)}}))}))},224:function(e,t,r){"use strict";r.r(t);var n=r(7294),o=r(1975),i=r(4779);t.default=e=>{let{location:t}=e;const r=o.ZP.loadPageSync(t.pathname);return r?n.createElement(i.Z,{location:t,pageResources:r,...r.json}):null}},2743:function(e,t,r){var n;e.exports=(n=r(224))&&n.default||n},4941:function(e,t,r){"use strict";r.d(t,{U:function(){return o}});const n=new WeakMap;function o(){const e=r(745);return{render:(t,r)=>{let o=n.get(r);o||n.set(r,o=e.createRoot(r)),o.render(t)},hydrate:(t,r)=>e.hydrateRoot(r,t)}}},6073:function(e,t,r){"use strict";r.d(t,{J:function(){return i}});const n=new Map,o=new Map;function i(e){let t=n.get(e);return t||(t=o.get(e.toLowerCase())),t}[].forEach((e=>{e.ignoreCase?o.set(e.fromPath,e):n.set(e.fromPath,e)}))},9939:function(e,t,r){"use strict";r.r(t);var n=r(3092);"https:"!==window.location.protocol&&"localhost"!==window.location.hostname?console.error("Service workers can only be used over HTTPS, or on localhost for development"):"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js").then((function(e){e.addEventListener("updatefound",(()=>{(0,n.h)("onServiceWorkerUpdateFound",{serviceWorker:e});const t=e.installing;console.log("installingWorker",t),t.addEventListener("statechange",(()=>{switch(t.state){case"installed":navigator.serviceWorker.controller?(window.___swUpdated=!0,(0,n.h)("onServiceWorkerUpdateReady",{serviceWorker:e}),window.___failedResources&&(console.log("resources failed, SW updated - reloading"),window.location.reload())):(console.log("Content is now available offline!"),(0,n.h)("onServiceWorkerInstalled",{serviceWorker:e}));break;case"redundant":console.error("The installing service worker became redundant."),(0,n.h)("onServiceWorkerRedundant",{serviceWorker:e});break;case"activated":(0,n.h)("onServiceWorkerActive",{serviceWorker:e})}}))}))})).catch((function(e){console.error("Error during service worker registration:",e)}))},8995:function(e,t,r){"use strict";r.d(t,{Bs:function(){return i},m3:function(){return o},u0:function(){return a}});var n=r(7294);const o=n.createContext({}),i=n.createContext({}),a=n.createContext({})},1757:function(e,t,r){"use strict";r.d(t,{B9:function(){return o}});var n=r(7294);const o=(i="StaticQuery",a={},n.createServerContext?function(e,t){return void 0===t&&(t=null),globalThis.__SERVER_CONTEXT||(globalThis.__SERVER_CONTEXT={}),globalThis.__SERVER_CONTEXT[e]||(globalThis.__SERVER_CONTEXT[e]=n.createServerContext(e,t)),globalThis.__SERVER_CONTEXT[e]}(i,a):n.createContext(a));var i,a},1505:function(e,t,r){"use strict";function n(e,t){return void 0===t&&(t=""),t?e===t?"/":e.startsWith(t+"/")?e.slice(t.length):e:e}r.d(t,{Z:function(){return n}})},3965:function(e,t,r){"use strict";r.r(t),r.d(t,{wrapRootElement:function(){return Nf}});var n=r(7294),o=r(917),i=r(5893),a=String.raw,s=a` :root, :host { --chakra-vh: 100vh; } @supports (height: -webkit-fill-available) { :root, :host { --chakra-vh: -webkit-fill-available; } } @supports (height: -moz-fill-available) { :root, :host { --chakra-vh: -moz-fill-available; } } @supports (height: 100dvh) { :root, :host { --chakra-vh: 100dvh; } } `,l=()=>(0,i.jsx)(o.xB,{styles:s}),c=({scope:e=""})=>(0,i.jsx)(o.xB,{styles:a` html { line-height: 1.5; -webkit-text-size-adjust: 100%; font-family: system-ui, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; -moz-osx-font-smoothing: grayscale; touch-action: manipulation; } body { position: relative; min-height: 100%; margin: 0; font-feature-settings: "kern"; } ${e} :where(*, *::before, *::after) { border-width: 0; border-style: solid; box-sizing: border-box; word-wrap: break-word; } main { display: block; } ${e} hr { border-top-width: 1px; box-sizing: content-box; height: 0; overflow: visible; } ${e} :where(pre, code, kbd,samp) { font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 1em; } ${e} a { background-color: transparent; color: inherit; text-decoration: inherit; } ${e} abbr[title] { border-bottom: none; text-decoration: underline; -webkit-text-decoration: underline dotted; text-decoration: underline dotted; } ${e} :where(b, strong) { font-weight: bold; } ${e} small { font-size: 80%; } ${e} :where(sub,sup) { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } ${e} sub { bottom: -0.25em; } ${e} sup { top: -0.5em; } ${e} img { border-style: none; } ${e} :where(button, input, optgroup, select, textarea) { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; } ${e} :where(button, input) { overflow: visible; } ${e} :where(button, select) { text-transform: none; } ${e} :where( button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner ) { border-style: none; padding: 0; } ${e} fieldset { padding: 0.35em 0.75em 0.625em; } ${e} legend { box-sizing: border-box; color: inherit; display: table; max-width: 100%; padding: 0; white-space: normal; } ${e} progress { vertical-align: baseline; } ${e} textarea { overflow: auto; } ${e} :where([type="checkbox"], [type="radio"]) { box-sizing: border-box; padding: 0; } ${e} input[type="number"]::-webkit-inner-spin-button, ${e} input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none !important; } ${e} input[type="number"] { -moz-appearance: textfield; } ${e} input[type="search"] { -webkit-appearance: textfield; outline-offset: -2px; } ${e} input[type="search"]::-webkit-search-decoration { -webkit-appearance: none !important; } ${e} ::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; } ${e} details { display: block; } ${e} summary { display: list-item; } template { display: none; } [hidden] { display: none !important; } ${e} :where( blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre ) { margin: 0; } ${e} button { background: transparent; padding: 0; } ${e} fieldset { margin: 0; padding: 0; } ${e} :where(ol, ul) { margin: 0; padding: 0; } ${e} textarea { resize: vertical; } ${e} :where(button, [role="button"]) { cursor: pointer; } ${e} button::-moz-focus-inner { border: 0 !important; } ${e} table { border-collapse: collapse; } ${e} :where(h1, h2, h3, h4, h5, h6) { font-size: inherit; font-weight: inherit; } ${e} :where(button, input, optgroup, select, textarea) { padding: 0; line-height: inherit; color: inherit; } ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) { display: block; } ${e} :where(img, video) { max-width: 100%; height: auto; } [data-js-focus-visible] :focus:not([data-focus-visible-added]):not( [data-focus-visible-disabled] ) { outline: none; box-shadow: none; } ${e} select::-ms-expand { display: none; } ${s} `}),u=r(5227),[d,h]=(0,u.k)({strict:!1,name:"PortalManagerContext"});function p(e){const{children:t,zIndex:r}=e;return(0,i.jsx)(d,{value:{zIndex:r},children:t})}p.displayName="PortalManager";var f=r(2498);var m=r(3179),g=r(1759),v=r(696),b=r(916);function y(e){const{cssVarsRoot:t,theme:r,children:o}=e,a=(0,n.useMemo)((()=>(0,m.c0)(r)),[r]);return(0,i.jsxs)(b.a,{theme:a,children:[(0,i.jsx)(x,{root:t}),o]})}function x({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return(0,i.jsx)(o.xB,{styles:e=>({[t]:e.__cssVars})})}var[w,k]=function(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:o}=e,i=(0,n.createContext)(void 0);return i.displayName=o,[i.Provider,function e(){var o;const a=(0,n.useContext)(i);if(!a&&t){const t=new Error(r);throw t.name="ContextError",null==(o=Error.captureStackTrace)||o.call(Error,t,e),t}return a},i]}({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function S(){const{colorMode:e}=(0,f.If)();return(0,i.jsx)(o.xB,{styles:t=>{const r=(0,g.Wf)(t,"styles.global"),n=(0,v.Pu)(r,{theme:t,colorMode:e});if(!n)return;return(0,m.iv)(n)(t)}})}var C={light:"chakra-ui-light",dark:"chakra-ui-dark"};var _="chakra-ui-color-mode";var P,E=(P=_,{ssr:!1,type:"localStorage",get(e){if(!(null==globalThis?void 0:globalThis.document))return e;let t;try{t=localStorage.getItem(P)||e}catch(r){}return t||e},set(e){try{localStorage.setItem(P,e)}catch(t){}}});function A(e,t){const r=e.match(new RegExp(`(^| )${t}=([^;]+)`));return null==r?void 0:r[2]}function R(e,t){return{ssr:!!t,type:"cookie",get(r){return t?A(t,e):(null==globalThis?void 0:globalThis.document)&&A(document.cookie,e)||r},set(t){document.cookie=`${e}=${t}; max-age=31536000; path=/`}}}R(_);var T=Boolean(null==globalThis?void 0:globalThis.document)?n.useLayoutEffect:n.useEffect,j=()=>{};function D(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}function $(e){const{value:t,children:r,options:{useSystemColorMode:o,initialColorMode:a,disableTransitionOnChange:s}={},colorModeManager:l=E}=e,c="dark"===a?"dark":"light",[u,d]=(0,n.useState)((()=>D(l,c))),[h,p]=(0,n.useState)((()=>D(l))),{getSystemTheme:m,setClassName:g,setDataset:v,addListener:b}=(0,n.useMemo)((()=>function(e={}){const{preventTransition:t=!0}=e,r={setDataset:e=>{const n=t?r.preventTransition():void 0;document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e,null==n||n()},setClassName(e){document.body.classList.add(e?C.dark:C.light),document.body.classList.remove(e?C.light:C.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(e){var t;return(null!=(t=r.query().matches)?t:"dark"===e)?"dark":"light"},addListener(e){const t=r.query(),n=t=>{e(t.matches?"dark":"light")};return"function"==typeof t.addListener?t.addListener(n):t.addEventListener("change",n),()=>{"function"==typeof t.removeListener?t.removeListener(n):t.removeEventListener("change",n)}},preventTransition(){const 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 r}({preventTransition:s})),[s]),y="system"!==a||u?u:h,x=(0,n.useCallback)((e=>{const t="system"===e?m():e;d(t),g("dark"===t),v(t),l.set(t)}),[l,m,g,v]);T((()=>{"system"===a&&p(m())}),[]),(0,n.useEffect)((()=>{const e=l.get();x(e||("system"!==a?c:"system"))}),[l,c,a,x]);const w=(0,n.useCallback)((()=>{x("dark"===y?"light":"dark")}),[y,x]);(0,n.useEffect)((()=>{if(o)return b(x)}),[o,b,x]);const k=(0,n.useMemo)((()=>({colorMode:null!=t?t:y,toggleColorMode:t?j:w,setColorMode:t?j:x,forced:void 0!==t})),[y,w,x,t]);return(0,i.jsx)(f.kc.Provider,{value:k,children:r})}$.displayName="ColorModeProvider";var z=(0,n.createContext)({getDocument(){return document},getWindow(){return window}});function M(e){const{children:t,environment:r,disabled:o}=e,a=(0,n.useRef)(null),s=(0,n.useMemo)((()=>r||{getDocument:()=>{var e,t;return null!=(t=null==(e=a.current)?void 0:e.ownerDocument)?t:document},getWindow:()=>{var e,t;return null!=(t=null==(e=a.current)?void 0:e.ownerDocument.defaultView)?t:window}}),[r]),l=!o||!r;return(0,i.jsxs)(z.Provider,{value:s,children:[t,l&&(0,i.jsx)("span",{id:"__chakra_env",hidden:!0,ref:a})]})}z.displayName="EnvironmentContext",M.displayName="EnvironmentProvider";var B=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:o,resetCSS:a=!0,theme:s={},environment:u,cssVarsRoot:d,disableEnvironment:h}=e,f=(0,i.jsx)(M,{environment:u,disabled:h,children:t});return(0,i.jsx)(y,{theme:s,cssVarsRoot:d,children:(0,i.jsxs)($,{colorModeManager:r,options:s.config,children:[a?(0,i.jsx)(c,{scope:o}):(0,i.jsx)(l,{}),(0,i.jsx)(S,{}),n?(0,i.jsx)(p,{zIndex:n,children:f}):f]})})},O={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"}},I={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},L={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},F={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},V={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"}},N={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},W={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"},H={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},U={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"}},q={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"},G={...q,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"}},Z={breakpoints:F,zIndices:I,radii:N,blur:H,colors:V,...U,sizes:G,shadows:W,space:q,borders:L,transition:O},{defineMultiStyleConfig:J,definePartsStyle:Y}=(0,m.D)(["stepper","step","title","description","indicator","separator","icon","number"]),X=(0,m.gJ)("stepper-indicator-size"),K=(0,m.gJ)("stepper-icon-size"),Q=(0,m.gJ)("stepper-title-font-size"),ee=(0,m.gJ)("stepper-description-font-size"),te=(0,m.gJ)("stepper-accent-color"),re=J({baseStyle:Y((({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[te.variable]:`colors.${e}.500`,_dark:{[te.variable]:`colors.${e}.200`}},title:{fontSize:Q.reference,fontWeight:"medium"},description:{fontSize:ee.reference,color:"chakra-subtle-text"},number:{fontSize:Q.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:K.reference,height:K.reference},indicator:{flexShrink:0,borderRadius:"full",width:X.reference,height:X.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:te.reference},"&[data-status=complete]":{bg:te.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:te.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${X.reference} - 8px)`,top:`calc(${X.reference} + 4px)`,insetStart:`calc(${X.reference} / 2 - 1px)`}}}))),sizes:{xs:Y({stepper:{[X.variable]:"sizes.4",[K.variable]:"sizes.3",[Q.variable]:"fontSizes.xs",[ee.variable]:"fontSizes.xs"}}),sm:Y({stepper:{[X.variable]:"sizes.6",[K.variable]:"sizes.4",[Q.variable]:"fontSizes.sm",[ee.variable]:"fontSizes.xs"}}),md:Y({stepper:{[X.variable]:"sizes.8",[K.variable]:"sizes.5",[Q.variable]:"fontSizes.md",[ee.variable]:"fontSizes.sm"}}),lg:Y({stepper:{[X.variable]:"sizes.10",[K.variable]:"sizes.6",[Q.variable]:"fontSizes.lg",[ee.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function ne(e,t={}){let r=!1;function n(t){const r=`chakra-${(["container","root"].includes(null!=t?t:"")?[e]:[e,t]).filter(Boolean).join("__")}`;return{className:r,selector:`.${r}`,toString:()=>t}}return{parts:function(...o){!function(){if(r)throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?");r=!0}();for(const e of o)t[e]=n(e);return ne(e,t)},toPart:n,extend:function(...r){for(const e of r)e in t||(t[e]=n(e));return ne(e,t)},selectors:function(){const e=Object.fromEntries(Object.entries(t).map((([e,t])=>[e,t.selector])));return e},classnames:function(){const e=Object.fromEntries(Object.entries(t).map((([e,t])=>[e,t.className])));return e},get keys(){return Object.keys(t)},__type:{}}}var oe=ne("accordion").parts("root","container","button","panel").extend("icon"),ie=ne("alert").parts("title","description","container").extend("icon","spinner"),ae=ne("avatar").parts("label","badge","container").extend("excessLabel","group"),se=ne("breadcrumb").parts("link","item","container").extend("separator"),le=(ne("button").parts(),ne("checkbox").parts("control","icon","container").extend("label")),ce=(ne("progress").parts("track","filledTrack").extend("label"),ne("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer")),ue=ne("editable").parts("preview","input","textarea"),de=ne("form").parts("container","requiredIndicator","helperText"),he=ne("formError").parts("text","icon"),pe=ne("input").parts("addon","field","element"),fe=ne("list").parts("container","item","icon"),me=ne("menu").parts("button","list","item").extend("groupTitle","command","divider"),ge=ne("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),ve=ne("numberinput").parts("root","field","stepperGroup","stepper"),be=(ne("pininput").parts("field"),ne("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton")),ye=ne("progress").parts("label","filledTrack","track"),xe=ne("radio").parts("container","control","label"),we=ne("select").parts("field","icon"),ke=ne("slider").parts("container","track","thumb","filledTrack","mark"),Se=ne("stat").parts("container","label","helpText","number","icon"),Ce=ne("switch").parts("container","track","thumb"),_e=ne("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),Pe=ne("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),Ee=ne("tag").parts("container","label","closeButton"),Ae=ne("card").parts("container","header","body","footer");function Re(e){const t=function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:function(e){return!Number.isInteger(parseFloat(e.toString()))}(e)?t.replace(".","\\."):e}function Te(e,t){return`var(${Re(e)}${t?`, ${t}`:""})`}function je(e,t=""){return`--${function(e,t=""){return[t,Re(e)].filter(Boolean).join("-")}(e,t)}`}function De(e,t){const r=je(e,null==t?void 0:t.prefix);return{variable:r,reference:Te(r,$e(null==t?void 0:t.fallback))}}function $e(e){return"string"==typeof e?e:null==e?void 0:e.reference}var ze=r(5432);function Me(e){return(0,ze.Kn)(e)&&e.reference?e.reference:String(e)}var Be=(e,...t)=>t.map(Me).join(` ${e} `).replace(/calc/g,""),Oe=(...e)=>`calc(${Be("+",...e)})`,Ie=(...e)=>`calc(${Be("-",...e)})`,Le=(...e)=>`calc(${Be("*",...e)})`,Fe=(...e)=>`calc(${Be("/",...e)})`,Ve=e=>{const t=Me(e);return null==t||Number.isNaN(parseFloat(t))?Le(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},Ne=Object.assign((e=>({add:(...t)=>Ne(Oe(e,...t)),subtract:(...t)=>Ne(Ie(e,...t)),multiply:(...t)=>Ne(Le(e,...t)),divide:(...t)=>Ne(Fe(e,...t)),negate:()=>Ne(Ve(e)),toString:()=>e.toString()})),{add:Oe,subtract:Ie,multiply:Le,divide:Fe,negate:Ve}),{defineMultiStyleConfig:We,definePartsStyle:He}=(0,m.D)(Ce.keys),Ue=De("switch-track-width"),qe=De("switch-track-height"),Ge=De("switch-track-diff"),Ze=Ne.subtract(Ue,qe),Je=De("switch-thumb-x"),Ye=De("switch-bg"),Xe=(0,m.k0)((e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Ue.reference],height:[qe.reference],transitionProperty:"common",transitionDuration:"fast",[Ye.variable]:"colors.gray.300",_dark:{[Ye.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Ye.variable]:`colors.${t}.500`,_dark:{[Ye.variable]:`colors.${t}.200`}},bg:Ye.reference}})),Ke=(0,m.k0)({bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[qe.reference],height:[qe.reference],_checked:{transform:`translateX(${Je.reference})`}}),Qe=We({baseStyle:He((e=>({container:{[Ge.variable]:Ze,[Je.variable]:Ge.reference,_rtl:{[Je.variable]:Ne(Ge).negate().toString()}},track:Xe(e),thumb:Ke}))),sizes:{sm:He({container:{[Ue.variable]:"1.375rem",[qe.variable]:"sizes.3"}}),md:He({container:{[Ue.variable]:"1.875rem",[qe.variable]:"sizes.4"}}),lg:He({container:{[Ue.variable]:"2.875rem",[qe.variable]:"sizes.6"}})},defaultProps:{size:"md",colorScheme:"blue"}});function et(e,t){return r=>"dark"===r.colorMode?t:e}function tt(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?"vertical"===t?r:n:{}}var{defineMultiStyleConfig:rt,definePartsStyle:nt}=(0,m.D)(_e.keys),ot=nt({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"}}),it=(0,m.k0)({"&[data-is-numeric=true]":{textAlign:"end"}}),at=rt({baseStyle:ot,variants:{simple:nt((e=>{const{colorScheme:t}=e;return{th:{color:et("gray.600","gray.400")(e),borderBottom:"1px",borderColor:et(`${t}.100`,`${t}.700`)(e),...it},td:{borderBottom:"1px",borderColor:et(`${t}.100`,`${t}.700`)(e),...it},caption:{color:et("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}})),striped:nt((e=>{const{colorScheme:t}=e;return{th:{color:et("gray.600","gray.400")(e),borderBottom:"1px",borderColor:et(`${t}.100`,`${t}.700`)(e),...it},td:{borderBottom:"1px",borderColor:et(`${t}.100`,`${t}.700`)(e),...it},caption:{color:et("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:et(`${t}.100`,`${t}.700`)(e)},td:{background:et(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}})),unstyled:(0,m.k0)({})},sizes:{sm:nt({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:nt({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:nt({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 st(e,t,r){return Math.min(Math.max(e,r),t)}class lt extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}var ct=lt;function ut(e){if("string"!=typeof e)throw new ct(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=bt.test(e)?function(e){const t=e.toLowerCase().trim(),r=ht[function(e){let t=5381,r=e.length;for(;r;)t=33*t^e.charCodeAt(--r);return(t>>>0)%2341}(t)];if(!r)throw new ct(e);return`#${r}`}(e):e;const r=ft.exec(t);if(r){const e=Array.from(r).slice(1);return[...e.slice(0,3).map((e=>parseInt(pt(e,2),16))),parseInt(pt(e[3]||"f",2),16)/255]}const n=mt.exec(t);if(n){const e=Array.from(n).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,16))),parseInt(e[3]||"ff",16)/255]}const o=gt.exec(t);if(o){const e=Array.from(o).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,10))),parseFloat(e[3]||"1")]}const i=vt.exec(t);if(i){const[t,r,n,o]=Array.from(i).slice(1).map(parseFloat);if(st(0,100,r)!==r)throw new ct(e);if(st(0,100,n)!==n)throw new ct(e);return[...xt(t,r,n),Number.isNaN(o)?1:o]}throw new ct(e)}const dt=e=>parseInt(e.replace(/_/g,""),36),ht="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce(((e,t)=>{const r=dt(t.substring(0,3)),n=dt(t.substring(3)).toString(16);let o="";for(let i=0;i<6-n.length;i++)o+="0";return e[r]=`${o}${n}`,e}),{});const pt=(e,t)=>Array.from(Array(t)).map((()=>e)).join(""),ft=new RegExp(`^#${pt("([a-f0-9])",3)}([a-f0-9])?$`,"i"),mt=new RegExp(`^#${pt("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),gt=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${pt(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),vt=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,bt=/^[a-z]+$/i,yt=e=>Math.round(255*e),xt=(e,t,r)=>{let n=r/100;if(0===t)return[n,n,n].map(yt);const o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*(t/100),a=i*(1-Math.abs(o%2-1));let s=0,l=0,c=0;o>=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,c=a):o>=3&&o<4?(l=a,c=i):o>=4&&o<5?(s=a,c=i):o>=5&&o<6&&(s=i,c=a);const u=n-i/2;return[s+u,l+u,c+u].map(yt)};function wt(e,t,r,n){return`rgba(${st(0,255,e).toFixed()}, ${st(0,255,t).toFixed()}, ${st(0,255,r).toFixed()}, ${parseFloat(st(0,1,n).toFixed(3))})`}function kt(e,t){const[r,n,o,i]=ut(e);return wt(r,n,o,i-t)}var St=(e,t,r)=>{const n=function(e,t,r,n,o){for(t=t.split?t.split("."):t,n=0;n{const t=st(0,255,e).toString(16);return 1===t.length?`0${t}`:t};i(t),i(r),i(n),o<1&&i(Math.round(255*o))}(n),n}catch{return null!=r?r:"#000000"}},Ct=e=>t=>{const r=(e=>{const[t,r,n]=ut(e);return(299*t+587*r+114*n)/1e3})(St(t,e));return r<128?"dark":"light"},_t=(e,t)=>r=>kt(St(r,e),1-t);function Pt(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(\n 45deg,\n ${t} 25%,\n transparent 25%,\n transparent 50%,\n ${t} 50%,\n ${t} 75%,\n transparent 75%,\n transparent\n )`,backgroundSize:`${e} ${e}`}}function Et(e){const t=`#${Math.floor(16777215*Math.random()).toString(16).padEnd(6,"0")}`;return e&&(r=e,0!==Object.keys(r).length)?e.string&&e.colors?function(e,t){let r=0;if(0===e.length)return t[0];for(let n=0;n>8*n&255).toString(16)}`.substr(-2)}return r}(e.string):e.colors&&!e.string?(n=e.colors)[Math.floor(Math.random()*n.length)]:t:t;var r,n}var At=(0,m.gJ)("tabs-color"),Rt=(0,m.gJ)("tabs-bg"),Tt=(0,m.gJ)("tabs-border-color"),{defineMultiStyleConfig:jt,definePartsStyle:Dt}=(0,m.D)(Pe.keys),$t=(0,m.k0)((e=>{const{orientation:t}=e;return{display:"vertical"===t?"flex":"block"}})),zt=(0,m.k0)((e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}})),Mt=(0,m.k0)((e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:"vertical"===r?"column":"row"}})),Bt=(0,m.k0)({p:4}),Ot=Dt((e=>({root:$t(e),tab:zt(e),tablist:Mt(e),tabpanel:Bt}))),It={sm:Dt({tab:{py:1,px:4,fontSize:"sm"}}),md:Dt({tab:{fontSize:"md",py:2,px:4}}),lg:Dt({tab:{fontSize:"lg",py:3,px:4}})},Lt=Dt((e=>{const{colorScheme:t,orientation:r}=e,n="vertical"===r,o=n?"borderStart":"borderBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[n?"marginStart":"marginBottom"]:"-2px",_selected:{[At.variable]:`colors.${t}.600`,_dark:{[At.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Rt.variable]:"colors.gray.200",_dark:{[Rt.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:At.reference,bg:Rt.reference}}})),Ft=Dt((e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Tt.variable]:"transparent",_selected:{[At.variable]:`colors.${t}.600`,[Tt.variable]:"colors.white",_dark:{[At.variable]:`colors.${t}.300`,[Tt.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Tt.reference},color:At.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}})),Vt=Dt((e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Rt.variable]:"colors.gray.50",_dark:{[Rt.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Rt.variable]:"colors.white",[At.variable]:`colors.${t}.600`,_dark:{[Rt.variable]:"colors.gray.800",[At.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:At.reference,bg:Rt.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}})),Nt=Dt((e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:St(r,`${t}.700`),bg:St(r,`${t}.100`)}}}})),Wt=jt({baseStyle:Ot,sizes:It,variants:{line:Lt,enclosed:Ft,"enclosed-colored":Vt,"soft-rounded":Nt,"solid-rounded":Dt((e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[At.variable]:"colors.gray.600",_dark:{[At.variable]:"inherit"},_selected:{[At.variable]:"colors.white",[Rt.variable]:`colors.${t}.600`,_dark:{[At.variable]:"colors.gray.800",[Rt.variable]:`colors.${t}.300`}},color:At.reference,bg:Rt.reference}}})),unstyled:Dt({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),Ht=(0,m._6)("badge",["bg","color","shadow"]),Ut=(0,m.k0)({px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Ht.bg.reference,color:Ht.color.reference,boxShadow:Ht.shadow.reference}),qt=(0,m.k0)((e=>{const{colorScheme:t,theme:r}=e,n=_t(`${t}.500`,.6)(r);return{[Ht.bg.variable]:`colors.${t}.500`,[Ht.color.variable]:"colors.white",_dark:{[Ht.bg.variable]:n,[Ht.color.variable]:"colors.whiteAlpha.800"}}})),Gt=(0,m.k0)((e=>{const{colorScheme:t,theme:r}=e,n=_t(`${t}.200`,.16)(r);return{[Ht.bg.variable]:`colors.${t}.100`,[Ht.color.variable]:`colors.${t}.800`,_dark:{[Ht.bg.variable]:n,[Ht.color.variable]:`colors.${t}.200`}}})),Zt=(0,m.k0)((e=>{const{colorScheme:t,theme:r}=e,n=_t(`${t}.200`,.8)(r);return{[Ht.color.variable]:`colors.${t}.500`,_dark:{[Ht.color.variable]:n},[Ht.shadow.variable]:`inset 0 0 0px 1px ${Ht.color.reference}`}})),Jt={solid:qt,subtle:Gt,outline:Zt},Yt=(0,m.fj)({baseStyle:Ut,variants:Jt,defaultProps:{variant:"subtle",colorScheme:"gray"}}),{defineMultiStyleConfig:Xt,definePartsStyle:Kt}=(0,m.D)(Ee.keys),Qt=(0,m.gJ)("tag-bg"),er=(0,m.gJ)("tag-color"),tr=(0,m.gJ)("tag-shadow"),rr=(0,m.gJ)("tag-min-height"),nr=(0,m.gJ)("tag-min-width"),or=(0,m.gJ)("tag-font-size"),ir=(0,m.gJ)("tag-padding-inline"),ar=Kt({container:(0,m.k0)({fontWeight:"medium",lineHeight:1.2,outline:0,[er.variable]:Ht.color.reference,[Qt.variable]:Ht.bg.reference,[tr.variable]:Ht.shadow.reference,color:er.reference,bg:Qt.reference,boxShadow:tr.reference,borderRadius:"md",minH:rr.reference,minW:nr.reference,fontSize:or.reference,px:ir.reference,_focusVisible:{[tr.variable]:"shadows.outline"}}),label:(0,m.k0)({lineHeight:1.2,overflow:"visible"}),closeButton:(0,m.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}})}),sr={sm:Kt({container:{[rr.variable]:"sizes.5",[nr.variable]:"sizes.5",[or.variable]:"fontSizes.xs",[ir.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Kt({container:{[rr.variable]:"sizes.6",[nr.variable]:"sizes.6",[or.variable]:"fontSizes.sm",[ir.variable]:"space.2"}}),lg:Kt({container:{[rr.variable]:"sizes.8",[nr.variable]:"sizes.8",[or.variable]:"fontSizes.md",[ir.variable]:"space.3"}})},lr={subtle:Kt((e=>{var t;return{container:null==(t=Yt.variants)?void 0:t.subtle(e)}})),solid:Kt((e=>{var t;return{container:null==(t=Yt.variants)?void 0:t.solid(e)}})),outline:Kt((e=>{var t;return{container:null==(t=Yt.variants)?void 0:t.outline(e)}}))},cr=Xt({variants:lr,baseStyle:ar,sizes:sr,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:ur,defineMultiStyleConfig:dr}=(0,m.D)(pe.keys),hr=ur({field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),pr={lg:(0,m.k0)({fontSize:"lg",px:"4",h:"12",borderRadius:"md"}),md:(0,m.k0)({fontSize:"md",px:"4",h:"10",borderRadius:"md"}),sm:(0,m.k0)({fontSize:"sm",px:"3",h:"8",borderRadius:"sm"}),xs:(0,m.k0)({fontSize:"xs",px:"2",h:"6",borderRadius:"sm"})},fr={lg:ur({field:pr.lg,addon:pr.lg}),md:ur({field:pr.md,addon:pr.md}),sm:ur({field:pr.sm,addon:pr.sm}),xs:ur({field:pr.xs,addon:pr.xs})};function mr(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||et("blue.500","blue.300")(e),errorBorderColor:r||et("red.500","red.300")(e)}}var gr,vr,br,yr,xr,wr,kr,Sr,Cr,_r,Pr,Er=ur((e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=mr(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:et("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:St(t,n),boxShadow:`0 0 0 1px ${St(t,n)}`},_focusVisible:{zIndex:1,borderColor:St(t,r),boxShadow:`0 0 0 1px ${St(t,r)}`}},addon:{border:"1px solid",borderColor:et("inherit","whiteAlpha.50")(e),bg:et("gray.100","whiteAlpha.300")(e)}}})),Ar=ur((e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=mr(e);return{field:{border:"2px solid",borderColor:"transparent",bg:et("gray.100","whiteAlpha.50")(e),_hover:{bg:et("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:St(t,n)},_focusVisible:{bg:"transparent",borderColor:St(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:et("gray.100","whiteAlpha.50")(e)}}})),Rr=ur((e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=mr(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:St(t,n),boxShadow:`0px 1px 0px 0px ${St(t,n)}`},_focusVisible:{borderColor:St(t,r),boxShadow:`0px 1px 0px 0px ${St(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}})),Tr=dr({baseStyle:hr,sizes:fr,variants:{outline:Er,filled:Ar,flushed:Rr,unstyled:ur({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),jr=(0,m.k0)({...null==(gr=Tr.baseStyle)?void 0:gr.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"}),Dr={outline:(0,m.k0)((e=>{var t,r;return null!=(r=null==(t=Tr.variants)?void 0:t.outline(e).field)?r:{}})),flushed:(0,m.k0)((e=>{var t,r;return null!=(r=null==(t=Tr.variants)?void 0:t.flushed(e).field)?r:{}})),filled:(0,m.k0)((e=>{var t,r;return null!=(r=null==(t=Tr.variants)?void 0:t.filled(e).field)?r:{}})),unstyled:null!=(br=null==(vr=Tr.variants)?void 0:vr.unstyled.field)?br:{}},$r={xs:null!=(xr=null==(yr=Tr.sizes)?void 0:yr.xs.field)?xr:{},sm:null!=(kr=null==(wr=Tr.sizes)?void 0:wr.sm.field)?kr:{},md:null!=(Cr=null==(Sr=Tr.sizes)?void 0:Sr.md.field)?Cr:{},lg:null!=(Pr=null==(_r=Tr.sizes)?void 0:_r.lg.field)?Pr:{}},zr=(0,m.fj)({baseStyle:jr,sizes:$r,variants:Dr,defaultProps:{size:"md",variant:"outline"}}),Mr=De("tooltip-bg"),Br=De("tooltip-fg"),Or=De("popper-arrow-bg"),Ir=(0,m.k0)({bg:Mr.reference,color:Br.reference,[Mr.variable]:"colors.gray.700",[Br.variable]:"colors.whiteAlpha.900",_dark:{[Mr.variable]:"colors.gray.300",[Br.variable]:"colors.gray.900"},[Or.variable]:Mr.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}),Lr=(0,m.fj)({baseStyle:Ir}),{defineMultiStyleConfig:Fr,definePartsStyle:Vr}=(0,m.D)(ye.keys),Nr=(0,m.k0)((e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:o}=e,i=et(Pt(),Pt("1rem","rgba(0,0,0,0.1)"))(e),a=et(`${t}.500`,`${t}.200`)(e),s=`linear-gradient(\n to right,\n transparent 0%,\n ${St(r,a)} 50%,\n transparent 100%\n )`;return{...!n&&o&&i,...n?{bgImage:s}:{bgColor:a}}})),Wr=(0,m.k0)({lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"}),Hr=(0,m.k0)((e=>({bg:et("gray.100","whiteAlpha.300")(e)}))),Ur=(0,m.k0)((e=>({transitionProperty:"common",transitionDuration:"slow",...Nr(e)}))),qr=Vr((e=>({label:Wr,filledTrack:Ur(e),track:Hr(e)}))),Gr=Fr({sizes:{xs:Vr({track:{h:"1"}}),sm:Vr({track:{h:"2"}}),md:Vr({track:{h:"3"}}),lg:Vr({track:{h:"4"}})},baseStyle:qr,defaultProps:{size:"md",colorScheme:"blue"}});function Zr(e,...t){return"function"==typeof e?e(...t):e}var Jr,Yr,Xr,Kr,Qr,en,tn,rn,nn,{definePartsStyle:on,defineMultiStyleConfig:an}=(0,m.D)(le.keys),sn=(0,m.gJ)("checkbox-size"),ln=(0,m.k0)((e=>{const{colorScheme:t}=e;return{w:sn.reference,h:sn.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:et(`${t}.500`,`${t}.200`)(e),borderColor:et(`${t}.500`,`${t}.200`)(e),color:et("white","gray.900")(e),_hover:{bg:et(`${t}.600`,`${t}.300`)(e),borderColor:et(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:et("gray.200","transparent")(e),bg:et("gray.200","whiteAlpha.300")(e),color:et("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:et(`${t}.500`,`${t}.200`)(e),borderColor:et(`${t}.500`,`${t}.200`)(e),color:et("white","gray.900")(e)},_disabled:{bg:et("gray.100","whiteAlpha.100")(e),borderColor:et("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:et("red.500","red.300")(e)}}})),cn=(0,m.k0)({_disabled:{cursor:"not-allowed"}}),un=(0,m.k0)({userSelect:"none",_disabled:{opacity:.4}}),dn=(0,m.k0)({transitionProperty:"transform",transitionDuration:"normal"}),hn=an({baseStyle:on((e=>({icon:dn,container:cn,control:Zr(ln,e),label:un}))),sizes:{sm:on({control:{[sn.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:on({control:{[sn.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:on({control:{[sn.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:pn,definePartsStyle:fn}=(0,m.D)(xe.keys),mn=(0,m.k0)((e=>{var t;const r=null==(t=Zr(hn.baseStyle,e))?void 0:t.control;return{...r,borderRadius:"full",_checked:{...null==r?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}})),gn=fn((e=>{var t,r,n,o;return{label:null==(r=(t=hn).baseStyle)?void 0:r.call(t,e).label,container:null==(o=(n=hn).baseStyle)?void 0:o.call(n,e).container,control:mn(e)}})),vn=pn({baseStyle:gn,sizes:{md:fn({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:fn({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:fn({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:bn,definePartsStyle:yn}=(0,m.D)(we.keys),xn=(0,m.gJ)("select-bg"),wn=yn({field:(0,m.k0)({...null==(Jr=Tr.baseStyle)?void 0:Jr.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:xn.reference,[xn.variable]:"colors.white",_dark:{[xn.variable]:"colors.gray.700"},"> option, > optgroup":{bg:xn.reference}}),icon:(0,m.k0)({width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}})}),kn=(0,m.k0)({paddingInlineEnd:"8"}),Sn=bn({baseStyle:wn,sizes:{lg:{...null==(Yr=Tr.sizes)?void 0:Yr.lg,field:{...null==(Xr=Tr.sizes)?void 0:Xr.lg.field,...kn}},md:{...null==(Kr=Tr.sizes)?void 0:Kr.md,field:{...null==(Qr=Tr.sizes)?void 0:Qr.md.field,...kn}},sm:{...null==(en=Tr.sizes)?void 0:en.sm,field:{...null==(tn=Tr.sizes)?void 0:tn.sm.field,...kn}},xs:{...null==(rn=Tr.sizes)?void 0:rn.xs,field:{...null==(nn=Tr.sizes)?void 0:nn.xs.field,...kn},icon:{insetEnd:"1"}}},variants:Tr.variants,defaultProps:Tr.defaultProps}),Cn=(0,m.gJ)("skeleton-start-color"),_n=(0,m.gJ)("skeleton-end-color"),Pn=(0,m.k0)({[Cn.variable]:"colors.gray.100",[_n.variable]:"colors.gray.400",_dark:{[Cn.variable]:"colors.gray.800",[_n.variable]:"colors.gray.600"},background:Cn.reference,borderColor:_n.reference,opacity:.7,borderRadius:"sm"}),En=(0,m.fj)({baseStyle:Pn}),An=(0,m.gJ)("skip-link-bg"),Rn=(0,m.k0)({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[An.variable]:"colors.white",_dark:{[An.variable]:"colors.gray.700"},bg:An.reference}}),Tn=(0,m.fj)({baseStyle:Rn}),{defineMultiStyleConfig:jn,definePartsStyle:Dn}=(0,m.D)(ke.keys),$n=(0,m.gJ)("slider-thumb-size"),zn=(0,m.gJ)("slider-track-size"),Mn=(0,m.gJ)("slider-bg"),Bn=(0,m.k0)((e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...tt({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}})),On=(0,m.k0)((e=>({...tt({orientation:e.orientation,horizontal:{h:zn.reference},vertical:{w:zn.reference}}),overflow:"hidden",borderRadius:"sm",[Mn.variable]:"colors.gray.200",_dark:{[Mn.variable]:"colors.whiteAlpha.200"},_disabled:{[Mn.variable]:"colors.gray.300",_dark:{[Mn.variable]:"colors.whiteAlpha.300"}},bg:Mn.reference}))),In=(0,m.k0)((e=>{const{orientation:t}=e;return{...tt({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:$n.reference,h:$n.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"}}})),Ln=(0,m.k0)((e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Mn.variable]:`colors.${t}.500`,_dark:{[Mn.variable]:`colors.${t}.200`},bg:Mn.reference}})),Fn=jn({baseStyle:Dn((e=>({container:Bn(e),track:On(e),thumb:In(e),filledTrack:Ln(e)}))),sizes:{lg:Dn({container:{[$n.variable]:"sizes.4",[zn.variable]:"sizes.1"}}),md:Dn({container:{[$n.variable]:"sizes.3.5",[zn.variable]:"sizes.1"}}),sm:Dn({container:{[$n.variable]:"sizes.2.5",[zn.variable]:"sizes.0.5"}})},defaultProps:{size:"md",colorScheme:"blue"}}),Vn=De("spinner-size"),Nn=(0,m.k0)({width:[Vn.reference],height:[Vn.reference]}),Wn={xs:(0,m.k0)({[Vn.variable]:"sizes.3"}),sm:(0,m.k0)({[Vn.variable]:"sizes.4"}),md:(0,m.k0)({[Vn.variable]:"sizes.6"}),lg:(0,m.k0)({[Vn.variable]:"sizes.8"}),xl:(0,m.k0)({[Vn.variable]:"sizes.12"})},Hn=(0,m.fj)({baseStyle:Nn,sizes:Wn,defaultProps:{size:"md"}}),{defineMultiStyleConfig:Un,definePartsStyle:qn}=(0,m.D)(Se.keys),Gn=Un({baseStyle:qn({container:{},label:(0,m.k0)({fontWeight:"medium"}),helpText:(0,m.k0)({opacity:.8,marginBottom:"2"}),number:(0,m.k0)({verticalAlign:"baseline",fontWeight:"semibold"}),icon:(0,m.k0)({marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"})}),sizes:{md:qn({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),Zn=(0,m.gJ)("kbd-bg"),Jn=(0,m.k0)({[Zn.variable]:"colors.gray.100",_dark:{[Zn.variable]:"colors.whiteAlpha.100"},bg:Zn.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),Yn=(0,m.fj)({baseStyle:Jn}),Xn=(0,m.k0)({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}),Kn=(0,m.fj)({baseStyle:Xn}),{defineMultiStyleConfig:Qn,definePartsStyle:eo}=(0,m.D)(fe.keys),to=Qn({baseStyle:eo({icon:(0,m.k0)({marginEnd:"2",display:"inline",verticalAlign:"text-bottom"})})}),{defineMultiStyleConfig:ro,definePartsStyle:no}=(0,m.D)(me.keys),oo=(0,m.gJ)("menu-bg"),io=(0,m.gJ)("menu-shadow"),ao=(0,m.k0)({[oo.variable]:"#fff",[io.variable]:"shadows.sm",_dark:{[oo.variable]:"colors.gray.700",[io.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:oo.reference,boxShadow:io.reference}),so=(0,m.k0)({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[oo.variable]:"colors.gray.100",_dark:{[oo.variable]:"colors.whiteAlpha.100"}},_active:{[oo.variable]:"colors.gray.200",_dark:{[oo.variable]:"colors.whiteAlpha.200"}},_expanded:{[oo.variable]:"colors.gray.100",_dark:{[oo.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:oo.reference}),lo=(0,m.k0)({mx:4,my:2,fontWeight:"semibold",fontSize:"sm"}),co=(0,m.k0)({opacity:.6}),uo=(0,m.k0)({border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}),ho=ro({baseStyle:no({button:(0,m.k0)({transitionProperty:"common",transitionDuration:"normal"}),list:ao,item:so,groupTitle:lo,command:co,divider:uo})}),{defineMultiStyleConfig:po,definePartsStyle:fo}=(0,m.D)(ge.keys),mo=(0,m.gJ)("modal-bg"),go=(0,m.gJ)("modal-shadow"),vo=(0,m.k0)({bg:"blackAlpha.600",zIndex:"modal"}),bo=(0,m.k0)((e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:"inside"===r?"hidden":"auto",overscrollBehaviorY:"none"}})),yo=(0,m.k0)((e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:"inside"===r?"calc(100% - 7.5rem)":void 0,[mo.variable]:"colors.white",[go.variable]:"shadows.lg",_dark:{[mo.variable]:"colors.gray.700",[go.variable]:"shadows.dark-lg"},bg:mo.reference,boxShadow:go.reference}})),xo=(0,m.k0)({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),wo=(0,m.k0)({position:"absolute",top:"2",insetEnd:"3"}),ko=(0,m.k0)((e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:"inside"===t?"auto":void 0}})),So=(0,m.k0)({px:"6",py:"4"});function Co(e){return fo("full"===e?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var _o=po({baseStyle:fo((e=>({overlay:vo,dialogContainer:Zr(bo,e),dialog:Zr(yo,e),header:xo,closeButton:wo,body:Zr(ko,e),footer:So}))),sizes:{xs:Co("xs"),sm:Co("sm"),md:Co("md"),lg:Co("lg"),xl:Co("xl"),"2xl":Co("2xl"),"3xl":Co("3xl"),"4xl":Co("4xl"),"5xl":Co("5xl"),"6xl":Co("6xl"),full:Co("full")},defaultProps:{size:"md"}}),{defineMultiStyleConfig:Po,definePartsStyle:Eo}=(0,m.D)(ve.keys),Ao=De("number-input-stepper-width"),Ro=De("number-input-input-padding"),To=Ne(Ao).add("0.5rem").toString(),jo=De("number-input-bg"),Do=De("number-input-color"),$o=De("number-input-border-color"),zo=(0,m.k0)({[Ao.variable]:"sizes.6",[Ro.variable]:To}),Mo=(0,m.k0)((e=>{var t,r;return null!=(r=null==(t=Zr(Tr.baseStyle,e))?void 0:t.field)?r:{}})),Bo=(0,m.k0)({width:Ao.reference}),Oo=(0,m.k0)({borderStart:"1px solid",borderStartColor:$o.reference,color:Do.reference,bg:jo.reference,[Do.variable]:"colors.chakra-body-text",[$o.variable]:"colors.chakra-border-color",_dark:{[Do.variable]:"colors.whiteAlpha.800",[$o.variable]:"colors.whiteAlpha.300"},_active:{[jo.variable]:"colors.gray.200",_dark:{[jo.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}}),Io=Eo((e=>{var t;return{root:zo,field:null!=(t=Zr(Mo,e))?t:{},stepperGroup:Bo,stepper:Oo}}));function Lo(e){var t,r,n;const o=null==(t=Tr.sizes)?void 0:t[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},a=null!=(n=null==(r=o.field)?void 0:r.fontSize)?n:"md",s=U.fontSizes[a];return Eo({field:{...o.field,paddingInlineEnd:Ro.reference,verticalAlign:"top"},stepper:{fontSize:Ne(s).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var Fo,Vo,No,Wo=Po({baseStyle:Io,sizes:{xs:Lo("xs"),sm:Lo("sm"),md:Lo("md"),lg:Lo("lg")},variants:Tr.variants,defaultProps:Tr.defaultProps}),Ho=(0,m.k0)({...null==(Fo=Tr.baseStyle)?void 0:Fo.field,textAlign:"center"}),Uo={lg:(0,m.k0)({fontSize:"lg",w:12,h:12,borderRadius:"md"}),md:(0,m.k0)({fontSize:"md",w:10,h:10,borderRadius:"md"}),sm:(0,m.k0)({fontSize:"sm",w:8,h:8,borderRadius:"sm"}),xs:(0,m.k0)({fontSize:"xs",w:6,h:6,borderRadius:"sm"})},qo={outline:(0,m.k0)((e=>{var t,r,n;return null!=(n=null==(r=Zr(null==(t=Tr.variants)?void 0:t.outline,e))?void 0:r.field)?n:{}})),flushed:(0,m.k0)((e=>{var t,r,n;return null!=(n=null==(r=Zr(null==(t=Tr.variants)?void 0:t.flushed,e))?void 0:r.field)?n:{}})),filled:(0,m.k0)((e=>{var t,r,n;return null!=(n=null==(r=Zr(null==(t=Tr.variants)?void 0:t.filled,e))?void 0:r.field)?n:{}})),unstyled:null!=(No=null==(Vo=Tr.variants)?void 0:Vo.unstyled.field)?No:{}},Go=(0,m.fj)({baseStyle:Ho,sizes:Uo,variants:qo,defaultProps:Tr.defaultProps}),{defineMultiStyleConfig:Zo,definePartsStyle:Jo}=(0,m.D)(be.keys),Yo=De("popper-bg"),Xo=De("popper-arrow-bg"),Ko=De("popper-arrow-shadow-color"),Qo=Zo({baseStyle:Jo({popper:(0,m.k0)({zIndex:10}),content:(0,m.k0)({[Yo.variable]:"colors.white",bg:Yo.reference,[Xo.variable]:Yo.reference,[Ko.variable]:"colors.gray.200",_dark:{[Yo.variable]:"colors.gray.700",[Ko.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}),header:(0,m.k0)({px:3,py:2,borderBottomWidth:"1px"}),body:(0,m.k0)({px:3,py:2}),footer:(0,m.k0)({px:3,py:2,borderTopWidth:"1px"}),closeButton:(0,m.k0)({position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2})})}),{definePartsStyle:ei,defineMultiStyleConfig:ti}=(0,m.D)(ce.keys),ri=(0,m.gJ)("drawer-bg"),ni=(0,m.gJ)("drawer-box-shadow");function oi(e){return ei("full"===e?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var ii=(0,m.k0)({bg:"blackAlpha.600",zIndex:"overlay"}),ai=(0,m.k0)({display:"flex",zIndex:"modal",justifyContent:"center"}),si=(0,m.k0)((e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[ri.variable]:"colors.white",[ni.variable]:"shadows.lg",_dark:{[ri.variable]:"colors.gray.700",[ni.variable]:"shadows.dark-lg"},bg:ri.reference,boxShadow:ni.reference}})),li=(0,m.k0)({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),ci=(0,m.k0)({position:"absolute",top:"2",insetEnd:"3"}),ui=(0,m.k0)({px:"6",py:"2",flex:"1",overflow:"auto"}),di=(0,m.k0)({px:"6",py:"4"}),hi=ti({baseStyle:ei((e=>({overlay:ii,dialogContainer:ai,dialog:Zr(si,e),header:li,closeButton:ci,body:ui,footer:di}))),sizes:{xs:oi("xs"),sm:oi("md"),md:oi("lg"),lg:oi("2xl"),xl:oi("4xl"),full:oi("full")},defaultProps:{size:"xs"}}),{definePartsStyle:pi,defineMultiStyleConfig:fi}=(0,m.D)(ue.keys),mi=fi({baseStyle:pi({preview:(0,m.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"}),input:(0,m.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}),textarea:(0,m.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}})})}),{definePartsStyle:gi,defineMultiStyleConfig:vi}=(0,m.D)(de.keys),bi=(0,m.gJ)("form-control-color"),yi=vi({baseStyle:gi({container:{width:"100%",position:"relative"},requiredIndicator:(0,m.k0)({marginStart:"1",[bi.variable]:"colors.red.500",_dark:{[bi.variable]:"colors.red.300"},color:bi.reference}),helperText:(0,m.k0)({mt:"2",[bi.variable]:"colors.gray.600",_dark:{[bi.variable]:"colors.whiteAlpha.600"},color:bi.reference,lineHeight:"normal",fontSize:"sm"})})}),{definePartsStyle:xi,defineMultiStyleConfig:wi}=(0,m.D)(he.keys),ki=(0,m.gJ)("form-error-color"),Si=wi({baseStyle:xi({text:(0,m.k0)({[ki.variable]:"colors.red.500",_dark:{[ki.variable]:"colors.red.300"},color:ki.reference,mt:"2",fontSize:"sm",lineHeight:"normal"}),icon:(0,m.k0)({marginEnd:"0.5em",[ki.variable]:"colors.red.500",_dark:{[ki.variable]:"colors.red.300"},color:ki.reference})})}),Ci=(0,m.k0)({fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}),_i=(0,m.fj)({baseStyle:Ci}),Pi=(0,m.k0)({fontFamily:"heading",fontWeight:"bold"}),Ei={"4xl":(0,m.k0)({fontSize:["6xl",null,"7xl"],lineHeight:1}),"3xl":(0,m.k0)({fontSize:["5xl",null,"6xl"],lineHeight:1}),"2xl":(0,m.k0)({fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]}),xl:(0,m.k0)({fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]}),lg:(0,m.k0)({fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]}),md:(0,m.k0)({fontSize:"xl",lineHeight:1.2}),sm:(0,m.k0)({fontSize:"md",lineHeight:1.2}),xs:(0,m.k0)({fontSize:"sm",lineHeight:1.2})},Ai=(0,m.fj)({baseStyle:Pi,sizes:Ei,defaultProps:{size:"xl"}}),{defineMultiStyleConfig:Ri,definePartsStyle:Ti}=(0,m.D)(se.keys),ji=(0,m.gJ)("breadcrumb-link-decor"),Di=Ri({baseStyle:Ti({link:(0,m.k0)({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:ji.reference,[ji.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[ji.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}})})}),$i=(0,m.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"}}}),zi=(0,m.k0)((e=>{const{colorScheme:t,theme:r}=e;if("gray"===t)return{color:et("inherit","whiteAlpha.900")(e),_hover:{bg:et("gray.100","whiteAlpha.200")(e)},_active:{bg:et("gray.200","whiteAlpha.300")(e)}};const n=_t(`${t}.200`,.12)(r),o=_t(`${t}.200`,.24)(r);return{color:et(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:et(`${t}.50`,n)(e)},_active:{bg:et(`${t}.100`,o)(e)}}})),Mi=(0,m.k0)((e=>{const{colorScheme:t}=e,r=et("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:"gray"===t?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...Zr(zi,e)}})),Bi={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Oi=(0,m.k0)((e=>{var t;const{colorScheme:r}=e;if("gray"===r){const t=et("gray.100","whiteAlpha.200")(e);return{bg:t,_hover:{bg:et("gray.200","whiteAlpha.300")(e),_disabled:{bg:t}},_active:{bg:et("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:o="white",hoverBg:i=`${r}.600`,activeBg:a=`${r}.700`}=null!=(t=Bi[r])?t:{},s=et(n,`${r}.200`)(e);return{bg:s,color:et(o,"gray.800")(e),_hover:{bg:et(i,`${r}.300`)(e),_disabled:{bg:s}},_active:{bg:et(a,`${r}.400`)(e)}}})),Ii=(0,m.k0)((e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:et(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:et(`${t}.700`,`${t}.500`)(e)}}})),Li=(0,m.k0)({bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}),Fi={ghost:zi,outline:Mi,solid:Oi,link:Ii,unstyled:Li},Vi={lg:(0,m.k0)({h:"12",minW:"12",fontSize:"lg",px:"6"}),md:(0,m.k0)({h:"10",minW:"10",fontSize:"md",px:"4"}),sm:(0,m.k0)({h:"8",minW:"8",fontSize:"sm",px:"3"}),xs:(0,m.k0)({h:"6",minW:"6",fontSize:"xs",px:"2"})},Ni=(0,m.fj)({baseStyle:$i,variants:Fi,sizes:Vi,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}}),{definePartsStyle:Wi,defineMultiStyleConfig:Hi}=(0,m.D)(Ae.keys),Ui=(0,m.gJ)("card-bg"),qi=(0,m.gJ)("card-padding"),Gi=(0,m.gJ)("card-shadow"),Zi=(0,m.gJ)("card-radius"),Ji=(0,m.gJ)("card-border-width","0"),Yi=(0,m.gJ)("card-border-color"),Xi=Wi({container:{[Ui.variable]:"colors.chakra-body-bg",backgroundColor:Ui.reference,boxShadow:Gi.reference,borderRadius:Zi.reference,color:"chakra-body-text",borderWidth:Ji.reference,borderColor:Yi.reference},body:{padding:qi.reference,flex:"1 1 0%"},header:{padding:qi.reference},footer:{padding:qi.reference}}),Ki={sm:Wi({container:{[Zi.variable]:"radii.base",[qi.variable]:"space.3"}}),md:Wi({container:{[Zi.variable]:"radii.md",[qi.variable]:"space.5"}}),lg:Wi({container:{[Zi.variable]:"radii.xl",[qi.variable]:"space.7"}})},Qi=Hi({baseStyle:Xi,variants:{elevated:Wi({container:{[Gi.variable]:"shadows.base",_dark:{[Ui.variable]:"colors.gray.700"}}}),outline:Wi({container:{[Ji.variable]:"1px",[Yi.variable]:"colors.chakra-border-color"}}),filled:Wi({container:{[Ui.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[qi.variable]:0},header:{[qi.variable]:0},footer:{[qi.variable]:0}}},sizes:Ki,defaultProps:{variant:"elevated",size:"md"}}),ea=De("close-button-size"),ta=De("close-button-bg"),ra=(0,m.k0)({w:[ea.reference],h:[ea.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[ta.variable]:"colors.blackAlpha.100",_dark:{[ta.variable]:"colors.whiteAlpha.100"}},_active:{[ta.variable]:"colors.blackAlpha.200",_dark:{[ta.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:ta.reference}),na={lg:(0,m.k0)({[ea.variable]:"sizes.10",fontSize:"md"}),md:(0,m.k0)({[ea.variable]:"sizes.8",fontSize:"xs"}),sm:(0,m.k0)({[ea.variable]:"sizes.6",fontSize:"2xs"})},oa=(0,m.fj)({baseStyle:ra,sizes:na,defaultProps:{size:"md"}}),{variants:ia,defaultProps:aa}=Yt,sa=(0,m.k0)({fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Ht.bg.reference,color:Ht.color.reference,boxShadow:Ht.shadow.reference}),la=(0,m.fj)({baseStyle:sa,variants:ia,defaultProps:aa}),ca=(0,m.k0)({w:"100%",mx:"auto",maxW:"prose",px:"4"}),ua=(0,m.fj)({baseStyle:ca}),da=(0,m.k0)({opacity:.6,borderColor:"inherit"}),ha={solid:(0,m.k0)({borderStyle:"solid"}),dashed:(0,m.k0)({borderStyle:"dashed"})},pa=(0,m.fj)({baseStyle:da,variants:ha,defaultProps:{variant:"solid"}}),{definePartsStyle:fa,defineMultiStyleConfig:ma}=(0,m.D)(oe.keys),ga=ma({baseStyle:fa({container:(0,m.k0)({borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}}),button:(0,m.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,m.k0)({pt:"2",px:"4",pb:"5"}),icon:(0,m.k0)({fontSize:"1.25em"})})}),{definePartsStyle:va,defineMultiStyleConfig:ba}=(0,m.D)(ie.keys),ya=(0,m.gJ)("alert-fg"),xa=(0,m.gJ)("alert-bg");function wa(e){const{theme:t,colorScheme:r}=e;return{light:`colors.${r}.100`,dark:_t(`${r}.200`,.16)(t)}}var ka=ba({baseStyle:va({container:{bg:xa.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:ya.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:ya.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}}),variants:{subtle:va((e=>{const{colorScheme:t}=e,r=wa(e);return{container:{[ya.variable]:`colors.${t}.500`,[xa.variable]:r.light,_dark:{[ya.variable]:`colors.${t}.200`,[xa.variable]:r.dark}}}})),"left-accent":va((e=>{const{colorScheme:t}=e,r=wa(e);return{container:{[ya.variable]:`colors.${t}.500`,[xa.variable]:r.light,_dark:{[ya.variable]:`colors.${t}.200`,[xa.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:ya.reference}}})),"top-accent":va((e=>{const{colorScheme:t}=e,r=wa(e);return{container:{[ya.variable]:`colors.${t}.500`,[xa.variable]:r.light,_dark:{[ya.variable]:`colors.${t}.200`,[xa.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:ya.reference}}})),solid:va((e=>{const{colorScheme:t}=e;return{container:{[ya.variable]:"colors.white",[xa.variable]:`colors.${t}.500`,_dark:{[ya.variable]:"colors.gray.900",[xa.variable]:`colors.${t}.200`},color:ya.reference}}}))},defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:Sa,defineMultiStyleConfig:Ca}=(0,m.D)(ae.keys),_a=(0,m.gJ)("avatar-border-color"),Pa=(0,m.gJ)("avatar-bg"),Ea=(0,m.k0)({borderRadius:"full",border:"0.2em solid",[_a.variable]:"white",_dark:{[_a.variable]:"colors.gray.800"},borderColor:_a.reference}),Aa=(0,m.k0)({[Pa.variable]:"colors.gray.200",_dark:{[Pa.variable]:"colors.whiteAlpha.400"},bgColor:Pa.reference}),Ra=(0,m.gJ)("avatar-background"),Ta=(0,m.k0)((e=>{const{name:t,theme:r}=e,n=t?Et({string:t}):"colors.gray.400",o=(e=>t=>"dark"===Ct(e)(t))(n)(r);let i="white";return o||(i="gray.800"),{bg:Ra.reference,"&:not([data-loaded])":{[Ra.variable]:n},color:i,[_a.variable]:"colors.white",_dark:{[_a.variable]:"colors.gray.800"},borderColor:_a.reference,verticalAlign:"top"}}));function ja(e){const t="100%"!==e?G[e]:void 0;return Sa({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 Da={Accordion:ga,Alert:ka,Avatar:Ca({baseStyle:Sa((e=>({badge:Zr(Ea,e),excessLabel:Zr(Aa,e),container:Zr(Ta,e)}))),sizes:{"2xs":ja(4),xs:ja(6),sm:ja(8),md:ja(12),lg:ja(16),xl:ja(24),"2xl":ja(32),full:ja("100%")},defaultProps:{size:"md"}}),Badge:Yt,Breadcrumb:Di,Button:Ni,Checkbox:hn,CloseButton:oa,Code:la,Container:ua,Divider:pa,Drawer:hi,Editable:mi,Form:yi,FormError:Si,FormLabel:_i,Heading:Ai,Input:Tr,Kbd:Yn,Link:Kn,List:to,Menu:ho,Modal:_o,NumberInput:Wo,PinInput:Go,Popover:Qo,Progress:Gr,Radio:vn,Select:Sn,Skeleton:En,SkipLink:Tn,Slider:Fn,Spinner:Hn,Stat:Gn,Switch:Qe,Table:at,Tabs:Wt,Tag:cr,Textarea:zr,Tooltip:Lr,Card:Qi,Stepper:re},$a={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},za={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"}}},Ma={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},Ba={semanticTokens:$a,direction:"ltr",...Z,components:Da,styles:za,config:Ma},Oa={semanticTokens:$a,direction:"ltr",components:{},...Z,styles:za,config:Ma},Ia=(e,t)=>e.find((e=>e.id===t));function La(e,t){const r=Fa(e,t);return{position:r,index:r?e[r].findIndex((e=>e.id===t)):-1}}function Fa(e,t){for(const[r,n]of Object.entries(e))if(Ia(n,t))return r}function Va(e){return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:"top"===e||"bottom"===e?"0 auto":void 0,top:e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,bottom:e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,right:e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",left:e.includes("right")?void 0:"env(safe-area-inset-left, 0px)"}}function Na(e,t){const r=function(e,t=[]){const r=(0,n.useRef)(e);return(0,n.useEffect)((()=>{r.current=e})),(0,n.useCallback)(((...e)=>{var t;return null==(t=r.current)?void 0:t.call(r,...e)}),t)}(e);(0,n.useEffect)((()=>{if(null==t)return;let e=null;return e=window.setTimeout((()=>{r()}),t),()=>{e&&window.clearTimeout(e)}}),[t,r])}function Wa(e,t){const r=(0,n.useRef)(!1),o=(0,n.useRef)(!1);(0,n.useEffect)((()=>{if(r.current&&o.current)return e();o.current=!0}),t),(0,n.useEffect)((()=>(r.current=!0,()=>{r.current=!1})),[])}const Ha=(0,n.createContext)(null);function Ua(){return null===(e=(0,n.useContext)(Ha))||e.isPresent;var e}const qa=(0,n.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ga=(0,n.createContext)({}),Za="undefined"!=typeof document,Ja=Za?n.useLayoutEffect:n.useEffect,Ya=(0,n.createContext)({strict:!1});function Xa(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Ka(e){return"string"==typeof e||Array.isArray(e)}function Qa(e){return"object"==typeof e&&"function"==typeof e.start}const es=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ts=["initial",...es];function rs(e){return Qa(e.animate)||ts.some((t=>Ka(e[t])))}function ns(e){return Boolean(rs(e)||e.variants)}function os(e){const{initial:t,animate:r}=function(e,t){if(rs(e)){const{initial:t,animate:r}=e;return{initial:!1===t||Ka(t)?t:void 0,animate:Ka(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,n.useContext)(Ga));return(0,n.useMemo)((()=>({initial:t,animate:r})),[is(t),is(r)])}function is(e){return Array.isArray(e)?e.join(" "):e}const as={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"]},ss={};for(const Wf in as)ss[Wf]={isEnabled:e=>as[Wf].some((t=>!!e[t]))};function ls(e){const t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}const cs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let us=1;const ds=(0,n.createContext)({}),hs=(0,n.createContext)({}),ps=Symbol.for("motionComponentSymbol");function fs({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:o,Component:i}){e&&function(e){for(const t in e)ss[t]={...ss[t],...e[t]}}(e);const a=(0,n.forwardRef)((function(a,s){let l;const c={...(0,n.useContext)(qa),...a,layoutId:ms(a)},{isStatic:u}=c,d=os(a),h=u?void 0:ls((()=>{if(cs.hasEverUpdated)return us++})),p=o(a,u);if(!u&&Za){d.visualElement=function(e,t,r,o){const{visualElement:i}=(0,n.useContext)(Ga),a=(0,n.useContext)(Ya),s=(0,n.useContext)(Ha),l=(0,n.useContext)(qa).reducedMotion,c=(0,n.useRef)();o=o||a.renderer,!c.current&&o&&(c.current=o(e,{visualState:t,parent:i,props:r,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:l}));const u=c.current;return(0,n.useInsertionEffect)((()=>{u&&u.update(r,s)})),Ja((()=>{u&&u.render()})),(0,n.useEffect)((()=>{u&&u.updateFeatures()})),(window.HandoffAppearAnimations?Ja:n.useEffect)((()=>{u&&u.animationState&&u.animationState.animateChanges()})),u}(i,p,c,t);const r=(0,n.useContext)(hs),o=(0,n.useContext)(Ya).strict;d.visualElement&&(l=d.visualElement.loadFeatures(c,o,e,h,r))}return n.createElement(Ga.Provider,{value:d},l&&d.visualElement?n.createElement(l,{visualElement:d.visualElement,...c}):null,r(i,a,h,function(e,t,r){return(0,n.useCallback)((n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&("function"==typeof r?r(n):Xa(r)&&(r.current=n))}),[t])}(p,d.visualElement,s),p,u,d.visualElement))}));return a[ps]=i,a}function ms({layoutId:e}){const t=(0,n.useContext)(ds).id;return t&&void 0!==e?t+"-"+e:e}function gs(e){function t(t,r={}){return fs(e(t,r))}if("undefined"==typeof Proxy)return t;const r=new Map;return new Proxy(t,{get:(e,n)=>(r.has(n)||r.set(n,t(n)),r.get(n))})}const vs=["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 bs(e){return"string"==typeof e&&!e.includes("-")&&!!(vs.indexOf(e)>-1||/[A-Z]/.test(e))}const ys={};const xs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ws=new Set(xs);function ks(e,{layout:t,layoutId:r}){return ws.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!ys[e]||"opacity"===e)}const Ss=e=>Boolean(e&&e.getVelocity),Cs={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},_s=xs.length;const Ps=e=>t=>"string"==typeof t&&t.startsWith(e),Es=Ps("--"),As=Ps("var(--"),Rs=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Ts=(e,t,r)=>Math.min(Math.max(r,e),t),js={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Ds={...js,transform:e=>Ts(0,1,e)},$s={...js,default:1},zs=e=>Math.round(1e5*e)/1e5,Ms=/(-)?([\d]*\.?[\d])+/g,Bs=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Os=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Is(e){return"string"==typeof e}const Ls=e=>({test:t=>Is(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Fs=Ls("deg"),Vs=Ls("%"),Ns=Ls("px"),Ws=Ls("vh"),Hs=Ls("vw"),Us={...Vs,parse:e=>Vs.parse(e)/100,transform:e=>Vs.transform(100*e)},qs={...js,transform:Math.round},Gs={borderWidth:Ns,borderTopWidth:Ns,borderRightWidth:Ns,borderBottomWidth:Ns,borderLeftWidth:Ns,borderRadius:Ns,radius:Ns,borderTopLeftRadius:Ns,borderTopRightRadius:Ns,borderBottomRightRadius:Ns,borderBottomLeftRadius:Ns,width:Ns,maxWidth:Ns,height:Ns,maxHeight:Ns,size:Ns,top:Ns,right:Ns,bottom:Ns,left:Ns,padding:Ns,paddingTop:Ns,paddingRight:Ns,paddingBottom:Ns,paddingLeft:Ns,margin:Ns,marginTop:Ns,marginRight:Ns,marginBottom:Ns,marginLeft:Ns,rotate:Fs,rotateX:Fs,rotateY:Fs,rotateZ:Fs,scale:$s,scaleX:$s,scaleY:$s,scaleZ:$s,skew:Fs,skewX:Fs,skewY:Fs,distance:Ns,translateX:Ns,translateY:Ns,translateZ:Ns,x:Ns,y:Ns,z:Ns,perspective:Ns,transformPerspective:Ns,opacity:Ds,originX:Us,originY:Us,originZ:Ns,zIndex:qs,fillOpacity:Ds,strokeOpacity:Ds,numOctaves:qs};function Zs(e,t,r,n){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,c=!1,u=!0;for(const d in t){const e=t[d];if(Es(d)){i[d]=e;continue}const r=Gs[d],n=Rs(e,r);if(ws.has(d)){if(l=!0,a[d]=n,!u)continue;e!==(r.default||0)&&(u=!1)}else d.startsWith("origin")?(c=!0,s[d]=n):o[d]=n}if(t.transform||(l||n?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,o){let i="";for(let a=0;a<_s;a++){const t=xs[a];void 0!==e[t]&&(i+=`${Cs[t]||t}(${e[t]}) `)}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,n?"":i):r&&n&&(i="none"),i}(e.transform,r,u,n):o.transform&&(o.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:r=0}=s;o.transformOrigin=`${e} ${t} ${r}`}}const Js=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ys(e,t,r){for(const n in t)Ss(t[n])||ks(n,r)||(e[n]=t[n])}function Xs(e,t,r){const o={};return Ys(o,e.style||{},e),Object.assign(o,function({transformTemplate:e},t,r){return(0,n.useMemo)((()=>{const n=Js();return Zs(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)}),[t])}(e,t,r)),e.transformValues?e.transformValues(o):o}function Ks(e,t,r){const n={},o=Xs(e,t,r);return e.drag&&!1!==e.dragListener&&(n.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)&&(n.tabIndex=0),n.style=o,n}const Qs=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function el(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||Qs.has(e)}let tl=e=>!el(e);try{(rl=require("@emotion/is-prop-valid").default)&&(tl=e=>e.startsWith("on")?!el(e):rl(e))}catch(gr){}var rl;function nl(e,t,r){return"string"==typeof e?e:Ns.transform(t+r*e)}const ol={offset:"stroke-dashoffset",array:"stroke-dasharray"},il={offset:"strokeDashoffset",array:"strokeDasharray"};function al(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},u,d,h){if(Zs(e,c,u,h),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:p,style:f,dimensions:m}=e;p.transform&&(m&&(f.transform=p.transform),delete p.transform),m&&(void 0!==o||void 0!==i||f.transform)&&(f.transformOrigin=function(e,t,r){return`${nl(t,e.x,e.width)} ${nl(r,e.y,e.height)}`}(m,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(p.x=t),void 0!==r&&(p.y=r),void 0!==n&&(p.scale=n),void 0!==a&&function(e,t,r=1,n=0,o=!0){e.pathLength=1;const i=o?ol:il;e[i.offset]=Ns.transform(-n);const a=Ns.transform(t),s=Ns.transform(r);e[i.array]=`${a} ${s}`}(p,a,s,l,!1)}const sl=()=>({...Js(),attrs:{}}),ll=e=>"string"==typeof e&&"svg"===e.toLowerCase();function cl(e,t,r,o){const i=(0,n.useMemo)((()=>{const r=sl();return al(r,t,{enableHardwareAcceleration:!1},ll(o),e.transformTemplate),{...r.attrs,style:{...r.style}}}),[t]);if(e.style){const t={};Ys(t,e.style,e),i.style={...t,...i.style}}return i}function ul(e=!1){return(t,r,o,i,{latestValues:a},s)=>{const l=(bs(t)?cl:Ks)(r,a,s,t),c=function(e,t,r){const n={};for(const o in e)"values"===o&&"object"==typeof e.values||(tl(o)||!0===r&&el(o)||!t&&!el(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}(r,"string"==typeof t,e),u={...c,...l,ref:i},{children:d}=r,h=(0,n.useMemo)((()=>Ss(d)?d.get():d),[d]);return o&&(u["data-projection-id"]=o),(0,n.createElement)(t,{...u,children:h})}}const dl=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function hl(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(const i in r)e.style.setProperty(i,r[i])}const pl=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 fl(e,t,r,n){hl(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(pl.has(o)?o:dl(o),t.attrs[o])}function ml(e,t){const{style:r}=e,n={};for(const o in r)(Ss(r[o])||t.style&&Ss(t.style[o])||ks(o,e))&&(n[o]=r[o]);return n}function gl(e,t){const r=ml(e,t);for(const n in e)if(Ss(e[n])||Ss(t[n])){r[-1!==xs.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]}return r}function vl(e,t,r,n={},o={}){return"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,o)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,o)),t}const bl=e=>Array.isArray(e),yl=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),xl=e=>bl(e)?e[e.length-1]||0:e;function wl(e){const t=Ss(e)?e.get():e;return yl(t)?t.toValue():t}const kl=e=>(t,r)=>{const o=(0,n.useContext)(Ga),i=(0,n.useContext)(Ha),a=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,i){const a={latestValues:Sl(n,o,i,e),renderState:t()};return r&&(a.mount=e=>r(n,e,a)),a}(e,t,o,i);return r?a():ls(a)};function Sl(e,t,r,n){const o={},i=n(e,{});for(const h in i)o[h]=wl(i[h]);let{initial:a,animate:s}=e;const l=rs(e),c=ns(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!r&&!1===r.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!=typeof d&&!Qa(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const r=vl(e,t);if(!r)return;const{transitionEnd:n,transition:i,...a}=r;for(const e in a){let t=a[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in n)o[e]=n[e]}))}return o}const Cl={useVisualState:kl({scrapeMotionValuesFromProps:gl,createRenderState:sl,onMount:(e,t,{renderState:r,latestValues:n})=>{try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(o){r.dimensions={x:0,y:0,width:0,height:0}}al(r,n,{enableHardwareAcceleration:!1},ll(t.tagName),e.transformTemplate),fl(t,r)}})},_l={useVisualState:kl({scrapeMotionValuesFromProps:ml,createRenderState:Js})};function Pl(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const El=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function Al(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Rl=e=>t=>El(t)&&e(t,Al(t));function Tl(e,t,r,n){return Pl(e,t,Rl(r),n)}const jl=(e,t)=>r=>t(e(r)),Dl=(...e)=>e.reduce(jl);function $l(e){let t=null;return()=>{const r=()=>{t=null};return null===t&&(t=e,r)}}const zl=$l("dragHorizontal"),Ml=$l("dragVertical");function Bl(e){let t=!1;if("y"===e)t=Ml();else if("x"===e)t=zl();else{const e=zl(),r=Ml();e&&r?t=()=>{e(),r()}:(e&&e(),r&&r())}return t}function Ol(){const e=Bl(!0);return!e||(e(),!1)}class Il{constructor(e){this.isMounted=!1,this.node=e}update(){}}const Ll={delta:0,timestamp:0,isProcessing:!1};let Fl=!0,Vl=!1;const Nl=["read","update","preRender","render","postRender"],Wl=Nl.reduce(((e,t)=>(e[t]=function(e){let t=[],r=[],n=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{const l=s&&o,c=l?t:r;return i&&a.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(n=t.length)),e},cancel:e=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1),a.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let r=0;rVl=!0)),e)),{}),Hl=e=>Wl[e].process(Ll),Ul=e=>{Vl=!1,Ll.delta=Fl?1e3/60:Math.max(Math.min(e-Ll.timestamp,40),1),Ll.timestamp=e,Ll.isProcessing=!0,Nl.forEach(Hl),Ll.isProcessing=!1,Vl&&(Fl=!1,requestAnimationFrame(Ul))},ql=Nl.reduce(((e,t)=>{const r=Wl[t];return e[t]=(e,t=!1,n=!1)=>(Vl||(Vl=!0,Fl=!0,Ll.isProcessing||requestAnimationFrame(Ul)),r.schedule(e,t,n)),e}),{});function Gl(e){Nl.forEach((t=>Wl[t].cancel(e)))}function Zl(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End");return Tl(e.current,r,((r,o)=>{if("touch"===r.type||Ol())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[n]&&ql.update((()=>i[n](r,o)))}),{passive:!e.getProps()[n]})}const Jl=(e,t)=>!!t&&(e===t||Jl(e,t.parentElement)),Yl=e=>e;function Xl(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,Al(r))}const Kl=new WeakMap,Ql=new WeakMap,ec=e=>{const t=Kl.get(e.target);t&&t(e)},tc=e=>{e.forEach(ec)};function rc(e,t,r){const n=function({root:e,...t}){const r=e||document;Ql.has(r)||Ql.set(r,{});const n=Ql.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(tc,{root:e,...t})),n[o]}(t);return Kl.set(e,r),n.observe(e),()=>{Kl.delete(e),n.unobserve(e)}}const nc={some:0,all:1};const oc={inView:{Feature:class extends Il{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:nc[n]};return rc(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),i=t?r:n;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Il{constructor(){super(...arguments),this.removeStartListeners=Yl,this.removeEndListeners=Yl,this.removeAccessibleListeners=Yl,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),n=Tl(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:r,onTapCancel:n}=this.node.getProps();ql.update((()=>{Jl(this.node.current,e.target)?r&&r(e,t):n&&n(e,t)}))}),{passive:!(r.onTap||r.onPointerUp)}),o=Tl(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Dl(n,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=Pl(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Pl(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&Xl("up",((e,t)=>{const{onTap:r}=this.node.getProps();r&&ql.update((()=>r(e,t)))}))})),Xl("down",((e,t)=>{this.startPress(e,t)}))})),t=Pl(this.node.current,"blur",(()=>{this.isPressing&&Xl("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=Dl(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:r,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&ql.update((()=>r(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Ol()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&ql.update((()=>r(e,t)))}mount(){const e=this.node.getProps(),t=Tl(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=Pl(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Dl(t,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Il{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=Dl(Pl(this.node.current,"focus",(()=>this.onFocus())),Pl(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Il{mount(){this.unmount=Dl(Zl(this.node,!0),Zl(this.node,!1))}unmount(){}}}};function ic(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;nt[r]=e.get())),t}(e),function(e){const t={};return e.values.forEach(((e,r)=>t[r]=e.getVelocity())),t}(e))}const sc="data-"+dl("framerAppearId");let lc=Yl,cc=Yl;const uc=e=>1e3*e,dc=e=>e/1e3,hc=!1,pc=e=>Array.isArray(e)&&"number"==typeof e[0];function fc(e){return Boolean(!e||"string"==typeof e&&gc[e]||pc(e)||Array.isArray(e)&&e.every(fc))}const mc=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,gc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:mc([0,.65,.55,1]),circOut:mc([.55,0,1,.45]),backIn:mc([.31,.01,.66,-.59]),backOut:mc([.33,1.53,.69,.99])};function vc(e){if(e)return pc(e)?mc(e):Array.isArray(e)?e.map(vc):gc[e]}const bc={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},yc={},xc={};for(const Wf in bc)xc[Wf]=()=>(void 0===yc[Wf]&&(yc[Wf]=bc[Wf]()),yc[Wf]);const wc=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,kc=1e-7,Sc=12;function Cc(e,t,r,n){if(e===t&&r===n)return Yl;const o=t=>function(e,t,r,n,o){let i,a,s=0;do{a=t+(r-t)/2,i=wc(a,n,o)-e,i>0?r=a:t=a}while(Math.abs(i)>kc&&++s0===e||1===e?e:wc(o(e),t,n)}const _c=Cc(.42,0,1,1),Pc=Cc(0,0,.58,1),Ec=Cc(.42,0,.58,1),Ac=e=>Array.isArray(e)&&"number"!=typeof e[0],Rc=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Tc=e=>t=>1-e(1-t),jc=e=>1-Math.sin(Math.acos(e)),Dc=Tc(jc),$c=Rc(Dc),zc=Cc(.33,1.53,.69,.99),Mc=Tc(zc),Bc=Rc(Mc),Oc={linear:Yl,easeIn:_c,easeInOut:Ec,easeOut:Pc,circIn:jc,circInOut:$c,circOut:Dc,backIn:Mc,backInOut:Bc,backOut:zc,anticipate:e=>(e*=2)<1?.5*Mc(e):.5*(2-Math.pow(2,-10*(e-1)))},Ic=e=>{if(Array.isArray(e)){cc(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,r,n,o]=e;return Cc(t,r,n,o)}return"string"==typeof e?(cc(void 0!==Oc[e],`Invalid easing type '${e}'`),Oc[e]):e},Lc=(e,t)=>r=>Boolean(Is(r)&&Os.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Fc=(e,t,r)=>n=>{if(!Is(n))return n;const[o,i,a,s]=n.match(Ms);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},Vc={...js,transform:e=>Math.round((e=>Ts(0,255,e))(e))},Nc={test:Lc("rgb","red"),parse:Fc("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Vc.transform(e)+", "+Vc.transform(t)+", "+Vc.transform(r)+", "+zs(Ds.transform(n))+")"};const Wc={test:Lc("#"),parse:function(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}},transform:Nc.transform},Hc={test:Lc("hsl","hue"),parse:Fc("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Vs.transform(zs(t))+", "+Vs.transform(zs(r))+", "+zs(Ds.transform(n))+")"},Uc={test:e=>Nc.test(e)||Wc.test(e)||Hc.test(e),parse:e=>Nc.test(e)?Nc.parse(e):Hc.test(e)?Hc.parse(e):Wc.parse(e),transform:e=>Is(e)?e:e.hasOwnProperty("red")?Nc.transform(e):Hc.transform(e)},qc=(e,t,r)=>-r*e+r*t+e;function Gc(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}const Zc=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},Jc=[Wc,Nc,Hc];function Yc(e){const t=(r=e,Jc.find((e=>e.test(r))));var r;cc(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===Hc&&(n=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let o=0,i=0,a=0;if(t/=100){const n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;o=Gc(s,n,e+1/3),i=Gc(s,n,e),a=Gc(s,n,e-1/3)}else o=i=a=r;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:n}}(n)),n}const Xc=(e,t)=>{const r=Yc(e),n=Yc(t),o={...r};return e=>(o.red=Zc(r.red,n.red,e),o.green=Zc(r.green,n.green,e),o.blue=Zc(r.blue,n.blue,e),o.alpha=qc(r.alpha,n.alpha,e),Nc.transform(o))};const Kc={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:Yl},Qc={regex:Bs,countKey:"Colors",token:"${c}",parse:Uc.parse},eu={regex:Ms,countKey:"Numbers",token:"${n}",parse:js.parse};function tu(e,{regex:t,countKey:r,token:n,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+r]=i.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...i.map(o)))}function ru(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&tu(r,Kc),tu(r,Qc),tu(r,eu),r}function nu(e){return ru(e).values}function ou(e){const{values:t,numColors:r,numVars:n,tokenised:o}=ru(e),i=t.length;return e=>{let t=o;for(let o=0;o"number"==typeof e?0:e;const au={test:function(e){var t,r;return isNaN(e)&&Is(e)&&((null===(t=e.match(Ms))||void 0===t?void 0:t.length)||0)+((null===(r=e.match(Bs))||void 0===r?void 0:r.length)||0)>0},parse:nu,createTransformer:ou,getAnimatableNone:function(e){const t=nu(e);return ou(e)(t.map(iu))}},su=(e,t)=>r=>`${r>0?t:e}`;function lu(e,t){return"number"==typeof e?r=>qc(e,t,r):Uc.test(e)?Xc(e,t):e.startsWith("var(")?su(e,t):du(e,t)}const cu=(e,t)=>{const r=[...e],n=r.length,o=e.map(((e,r)=>lu(e,t[r])));return e=>{for(let t=0;t{const r={...e,...t},n={};for(const o in r)void 0!==e[o]&&void 0!==t[o]&&(n[o]=lu(e[o],t[o]));return e=>{for(const t in n)r[t]=n[t](e);return r}},du=(e,t)=>{const r=au.createTransformer(t),n=ru(e),o=ru(t);return n.numVars===o.numVars&&n.numColors===o.numColors&&n.numNumbers>=o.numNumbers?Dl(cu(n.values,o.values),r):(lc(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),su(e,t))},hu=(e,t,r)=>{const n=t-e;return 0===n?1:(r-e)/n},pu=(e,t)=>r=>qc(e,t,r);function fu(e,t,r){const n=[],o=r||("number"==typeof(i=e[0])?pu:"string"==typeof i?Uc.test(i)?Xc:du:Array.isArray(i)?cu:"object"==typeof i?uu:pu);var i;const a=e.length-1;for(let s=0;st[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=fu(t,n,o),s=a.length,l=t=>{let r=0;if(s>1)for(;rl(Ts(e[0],e[i-1],t)):l}function gu(e){const t=[0];return function(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=hu(0,t,n);e.push(qc(r,1,o))}}(t,e.length-1),t}function vu({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=Ac(n)?n.map(Ic):Ic(n),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(r&&r.length===t.length?r:gu(t),e),s=mu(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||Ec)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}function bu(e,t){return t?e*(1e3/t):0}const yu=5;function xu(e,t,r){const n=Math.max(t-yu,0);return bu(r-e(n),t-n)}const wu=.001,ku=.01,Su=10,Cu=.05,_u=1;function Pu({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;lc(e<=uc(Su),"Spring duration must be 10 seconds or less");let a=1-t;a=Ts(Cu,_u,a),e=Ts(ku,Su,dc(e)),a<1?(o=t=>{const n=t*a,o=n*e,i=n-r,s=Au(t,a),l=Math.exp(-o);return wu-i/s*l},i=t=>{const n=t*a*e,i=n*r+r,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-n),c=Au(Math.pow(t,2),a);return(-o(t)+wu>0?-1:1)*((i-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-r)*e+1)-wu,i=t=>Math.exp(-t*e)*(e*e*(r-t)));const s=function(e,t,r){let n=r;for(let o=1;ovoid 0!==e[t]))}function Du({keyframes:e,restDelta:t,restSpeed:r,...n}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:h}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!ju(e,Tu)&&ju(e,Ru)){const r=Pu(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(n),p=u?-dc(u):0,f=l/(2*Math.sqrt(s*c)),m=i-o,g=dc(Math.sqrt(s/c)),v=Math.abs(m)<5;let b;if(r||(r=v?.01:2),t||(t=v?.005:.5),f<1){const e=Au(g,f);b=t=>{const r=Math.exp(-f*g*t);return i-r*((p+f*g*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===f)b=e=>i-Math.exp(-g*e)*(m+(p+g*m)*e);else{const e=g*Math.sqrt(f*f-1);b=t=>{const r=Math.exp(-f*g*t),n=Math.min(e*t,300);return i-r*((p+f*g*m)*Math.sinh(n)+e*m*Math.cosh(n))/e}}return{calculatedDuration:h&&d||null,next:e=>{const n=b(e);if(h)a.done=e>=d;else{let o=p;0!==e&&(o=f<1?xu(b,e,n):0);const s=Math.abs(o)<=r,l=Math.abs(i-n)<=t;a.done=s&&l}return a.value=a.done?i:n,a}}}function $u({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},p=e=>void 0===s?l:void 0===l||Math.abs(s-e)-f*Math.exp(-e/n),b=e=>g+v(e),y=e=>{const t=v(e),r=b(e);h.done=Math.abs(t)<=c,h.value=h.done?g:r};let x,w;const k=e=>{var t;(t=h.value,void 0!==s&&tl)&&(x=e,w=Du({keyframes:[h.value,p(h.value)],velocity:xu(b,e,h.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return k(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==x||(t=!0,y(e),k(e)),void 0!==x&&e>x?w.next(e-x):(!t&&y(e),h)}}}const zu=e=>{const t=({timestamp:t})=>e(t);return{start:()=>ql.update(t,!0),stop:()=>Gl(t),now:()=>Ll.isProcessing?Ll.timestamp:performance.now()}},Mu=2e4;function Bu(e){let t=0;let r=e.next(t);for(;!r.done&&t=Mu?1/0:t}const Ou={decay:$u,inertia:$u,tween:vu,keyframes:vu,spring:Du};function Iu({autoplay:e=!0,delay:t=0,driver:r=zu,keyframes:n,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...h}){let p,f,m=1,g=!1;const v=()=>{p&&p(),f=new Promise((e=>{p=e}))};let b;v();const y=Ou[o]||vu;let x;y!==vu&&"number"!=typeof n[0]&&(x=mu([0,100],n,{clamp:!1}),n=[0,100]);const w=y({...h,keyframes:n});let k;"mirror"===s&&(k=y({...h,keyframes:[...n].reverse(),velocity:-(h.velocity||0)}));let S="idle",C=null,_=null,P=null;null===w.calculatedDuration&&i&&(w.calculatedDuration=Bu(w));const{calculatedDuration:E}=w;let A=1/0,R=1/0;null!==E&&(A=E+a,R=A*(i+1)-a);let T=0;const j=e=>{if(null===_)return;m>0&&(_=Math.min(_,e)),T=null!==C?C:(e-_)*m;const r=T-t,o=r<0;T=Math.max(r,0),"finished"===S&&null===C&&(T=R);let l=T,c=w;if(i){const e=T/A;let t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,t=Math.min(t,i+1);const n=Boolean(t%2);n&&("reverse"===s?(r=1-r,a&&(r-=a/A)):"mirror"===s&&(c=k));let o=Ts(0,1,r);T>R&&(o="reverse"===s&&n?1:0),l=o*A}const u=o?{done:!1,value:n[0]}:c.next(l);x&&(u.value=x(u.value));let{done:h}=u;o||null===E||(h=T>=R);const p=null===C&&("finished"===S||"running"===S&&h||m<0&&T<=0);return d&&d(u.value),p&&z(),u},D=()=>{b&&b.stop(),b=void 0},$=()=>{S="idle",D(),v(),_=P=null},z=()=>{S="finished",u&&u(),D(),v()},M=()=>{if(g)return;b||(b=r(j));const e=b.now();l&&l(),null!==C?_=e-C:_&&"finished"!==S||(_=e),P=_,C=null,S="running",b.start()};e&&M();const B={then(e,t){return f.then(e,t)},get time(){return dc(T)},set time(e){e=uc(e),T=e,null===C&&b&&0!==m?_=b.now()-e/m:C=e},get duration(){const e=null===w.calculatedDuration?Bu(w):w.calculatedDuration;return dc(e)},get speed(){return m},set speed(e){e!==m&&b&&(m=e,B.time=dc(T))},get state(){return S},play:M,pause:()=>{S="paused",C=T},stop:()=>{g=!0,"idle"!==S&&(S="idle",c&&c(),$())},cancel:()=>{null!==P&&j(P),$()},complete:()=>{S="finished"},sample:e=>(_=0,j(e))};return B}const Lu=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function Fu(e,t,{onUpdate:r,onComplete:n,...o}){if(!(xc.waapi()&&Lu.has(t)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let i,a,s=!1;const l=()=>{a=new Promise((e=>{i=e}))};l();let{keyframes:c,duration:u=300,ease:d,times:h}=o;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!fc(t.ease))(t,o)){const e=Iu({...o,repeat:0,delay:0});let t={done:!1,value:c[0]};const r=[];let n=0;for(;!t.done&&n<2e4;)t=e.sample(n),r.push(t.value),n+=10;h=void 0,c=r,u=n-10,d="linear"}const p=function(e,t,r,{delay:n=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const c={[t]:r};l&&(c.offset=l);const u=vc(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:n,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,c,{...o,duration:u,ease:d,times:h}),f=()=>p.cancel(),m=()=>{ql.update(f),i(),l()};return p.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:r="loop"}){return e[t&&"loop"!==r&&t%2==1?0:e.length-1]}(c,o)),n&&n(),m()},{then(e,t){return a.then(e,t)},get time(){return dc(p.currentTime||0)},set time(e){p.currentTime=uc(e)},get speed(){return p.playbackRate},set speed(e){p.playbackRate=e},get duration(){return dc(u)},play:()=>{s||(p.play(),Gl(f))},pause:()=>p.pause(),stop:()=>{if(s=!0,"idle"===p.playState)return;const{currentTime:t}=p;if(t){const r=Iu({...o,autoplay:!1});e.setWithVelocity(r.sample(t-10).value,r.sample(t).value,10)}m()},complete:()=>p.finish(),cancel:m}}const Vu={type:"spring",stiffness:500,damping:25,restSpeed:10},Nu={type:"keyframes",duration:.8},Wu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Hu=(e,{keyframes:t})=>t.length>2?Nu:ws.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Vu:Wu,Uu=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!au.test(t)&&"0"!==t||t.startsWith("url("))),qu=new Set(["brightness","contrast","saturate","opacity"]);function Gu(e){const[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[n]=r.match(Ms)||[];if(!n)return e;const o=r.replace(n,"");let i=qu.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const Zu=/([a-z-]*)\(.*?\)/g,Ju={...au,getAnimatableNone:e=>{const t=e.match(Zu);return t?t.map(Gu).join(" "):e}},Yu={...Gs,color:Uc,backgroundColor:Uc,outlineColor:Uc,fill:Uc,stroke:Uc,borderColor:Uc,borderTopColor:Uc,borderRightColor:Uc,borderBottomColor:Uc,borderLeftColor:Uc,filter:Ju,WebkitFilter:Ju},Xu=e=>Yu[e];function Ku(e,t){let r=Xu(e);return r!==Ju&&(r=au),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const Qu=e=>/^0[^.\s]+$/.test(e);function ed(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||Qu(e):void 0}function td(e,t){return e[t]||e.default||e}const rd=(e,t,r,n={})=>o=>{const i=td(n,e)||{},a=i.delay||n.delay||0;let{elapsed:s=0}=n;s-=uc(a);const l=function(e,t,r,n){const o=Uu(t,r);let i;i=Array.isArray(r)?[...r]:[null,r];const a=void 0!==n.from?n.from:e.get();let s;const l=[];for(let c=0;c{t.set(e),i.onUpdate&&i.onUpdate(e)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(i)||(p={...p,...Hu(e,p)}),p.duration&&(p.duration=uc(p.duration)),p.repeatDelay&&(p.repeatDelay=uc(p.repeatDelay)),!d||!h||hc||!1===i.type)return function({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const o=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:Yl,pause:Yl,stop:Yl,then:e=>(e(),Promise.resolve()),cancel:Yl,complete:Yl});return t?Iu({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(p);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const r=Fu(t,e,p);if(r)return r}return Iu(p)};function nd(e){return Boolean(Ss(e)&&e.add)}function od(e,t){-1===e.indexOf(t)&&e.push(t)}function id(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class ad{constructor(){this.subscriptions=[]}add(e){return od(this.subscriptions,e),()=>id(this.subscriptions,e)}notify(e,t,r){const n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(let o=0;o{this.prev=this.current,this.current=e;const{delta:r,timestamp:n}=Ll;this.lastUpdated!==n&&(this.timeDelta=r,this.lastUpdated=n,ql.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>ql.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(r=this.current,!isNaN(parseFloat(r))),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new ad);const r=this.events[e].add(t);return"change"===e?()=>{r(),ql.read((()=>{this.events.change.getSize()||this.stop()}))}:r}clearListeners(){for(const 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,r){this.set(t),this.prev=e,this.timeDelta=r}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?bu(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):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 ld(e,t){return new sd(e,t)}const cd=e=>t=>t.test(e),ud=[js,Ns,Vs,Fs,Hs,Ws,{test:e=>"auto"===e,parse:e=>e}],dd=e=>ud.find(cd(e)),hd=[...ud,Uc,au],pd=e=>hd.find(cd(e));function fd(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,ld(r))}function md(e,t){const r=ac(e,t);let{transitionEnd:n={},transition:o={},...i}=r?e.makeTargetAnimatable(r,!1):{};i={...i,...n};for(const a in i){fd(e,a,xl(i[a]))}}function gd(e,t){if(!t)return;return(t[e]||t.default||t).from}function vd({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}function bd(e,t,{delay:r=0,transitionOverride:n,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");n&&(i=n);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const d in s){const t=e.getValue(d),n=s[d];if(!t||void 0===n||u&&vd(u,d))continue;const o={delay:r,elapsed:0,...i};if(window.HandoffAppearAnimations&&!t.hasAnimated){const r=e.getProps()[sc];r&&(o.elapsed=window.HandoffAppearAnimations(r,d,t,ql))}t.start(rd(d,t,n,e.shouldReduceMotion&&ws.has(d)?{type:!1}:o));const a=t.animation;nd(l)&&(l.add(d),a.then((()=>l.remove(d)))),c.push(a)}return a&&Promise.all(c).then((()=>{a&&md(e,a)})),c}function yd(e,t,r={}){const n=ac(e,t,r.custom);let{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);const i=n?()=>Promise.all(bd(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(n=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,r=0,n=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*n,l=1===o?(e=0)=>e*n:(e=0)=>s-e*n;return Array.from(e.variantChildren).sort(xd).forEach(((e,n)=>{e.notify("AnimationStart",t),a.push(yd(e,t,{...i,delay:r+l(n)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,i+n,a,s,r)}:()=>Promise.resolve(),{when:s}=o;if(s){const[e,t]="beforeChildren"===s?[i,a]:[a,i];return e().then((()=>t()))}return Promise.all([i(),a(r.delay)])}function xd(e,t){return e.sortNodePosition(t)}const wd=[...es].reverse(),kd=es.length;function Sd(e){return t=>Promise.all(t.map((({animation:t,options:r})=>function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>yd(e,t,r)));n=Promise.all(o)}else if("string"==typeof t)n=yd(e,t,r);else{const o="function"==typeof t?ac(e,t,r.custom):t;n=Promise.all(bd(e,o,r))}return n.then((()=>e.notify("AnimationComplete",t)))}(e,t,r))))}function Cd(e){let t=Sd(e);const r={animate:Pd(!0),whileInView:Pd(),whileHover:Pd(),whileTap:Pd(),whileDrag:Pd(),whileFocus:Pd(),exit:Pd()};let n=!0;const o=(t,r)=>{const n=ac(e,r);if(n){const{transition:e,transitionEnd:r,...o}=n;t={...t,...o,...r}}return t};function i(i,a){const s=e.getProps(),l=e.getVariantContext(!0)||{},c=[],u=new Set;let d={},h=1/0;for(let t=0;th&&g;const w=Array.isArray(m)?m:[m];let k=w.reduce(o,{});!1===v&&(k={});const{prevResolvedValues:S={}}=f,C={...S,...k},_=e=>{x=!0,u.delete(e),f.needsAnimating[e]=!0};for(const e in C){const t=k[e],r=S[e];d.hasOwnProperty(e)||(t!==r?bl(t)&&bl(r)?!ic(t,r)||y?_(e):f.protectedKeys[e]=!0:void 0!==t?_(e):u.add(e):void 0!==t&&u.has(e)?_(e):f.protectedKeys[e]=!0)}f.prevProp=m,f.prevResolvedValues=k,f.isActive&&(d={...d,...k}),n&&e.blockInitialAnimation&&(x=!1),x&&!b&&c.push(...w.map((e=>({animation:e,options:{type:p,...i}}))))}if(u.size){const t={};u.forEach((r=>{const n=e.getBaseTarget(r);void 0!==n&&(t[r]=n)})),c.push({animation:t})}let p=Boolean(c.length);return n&&!1===s.initial&&!e.manuallyAnimateOnMount&&(p=!1),n=!1,p?t(c):Promise.resolve()}return{animateChanges:i,setActive:function(t,n,o){var a;if(r[t].isActive===n)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach((e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)})),r[t].isActive=n;const s=i(o,t);for(const e in r)r[e].protectedKeys={};return s},setAnimateFunction:function(r){t=r(e)},getState:()=>r}}function _d(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!ic(t,e)}function Pd(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Ed=0;const Ad={animation:{Feature:class extends Il{constructor(e){super(e),e.animationState||(e.animationState=Cd(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Qa(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends Il{constructor(){super(...arguments),this.id=Ed++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const o=this.node.animationState.setActive("exit",!e,{custom:null!=r?r:this.node.getProps().custom});t&&!e&&o.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Rd=(e,t)=>Math.abs(e-t);class Td{constructor(e,t,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=$d(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){const r=Rd(e.x,t.x),n=Rd(e.y,t.y);return Math.sqrt(r**2+n**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!r)return;const{point:n}=e,{timestamp:o}=Ll;this.history.push({...n,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=jd(t,this.transformPagePoint),ql.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:r,onSessionEnd:n}=this.handlers,o=$d("pointercancel"===e.type?this.lastMoveEventInfo:jd(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,o),n&&n(e,o)},!El(e))return;this.handlers=t,this.transformPagePoint=r;const n=jd(Al(e),this.transformPagePoint),{point:o}=n,{timestamp:i}=Ll;this.history=[{...o,timestamp:i}];const{onSessionStart:a}=t;a&&a(e,$d(n,this.history)),this.removeListeners=Dl(Tl(window,"pointermove",this.handlePointerMove),Tl(window,"pointerup",this.handlePointerUp),Tl(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Gl(this.updatePoint)}}function jd(e,t){return t?{point:t(e.point)}:e}function Dd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function $d({point:e},t){return{point:e,delta:Dd(e,Md(t)),offset:Dd(e,zd(t)),velocity:Bd(t,.1)}}function zd(e){return e[0]}function Md(e){return e[e.length-1]}function Bd(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=Md(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>uc(t)));)r--;if(!n)return{x:0,y:0};const i=dc(o.timestamp-n.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Od(e){return e.max-e.min}function Id(e,t=0,r=.01){return Math.abs(e-t)<=r}function Ld(e,t,r,n=.5){e.origin=n,e.originPoint=qc(t.min,t.max,e.origin),e.scale=Od(r)/Od(t),(Id(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=qc(r.min,r.max,e.origin)-e.originPoint,(Id(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Fd(e,t,r,n){Ld(e.x,t.x,r.x,n?n.originX:void 0),Ld(e.y,t.y,r.y,n?n.originY:void 0)}function Vd(e,t,r){e.min=r.min+t.min,e.max=e.min+Od(t)}function Nd(e,t,r){e.min=t.min-r.min,e.max=e.min+Od(t)}function Wd(e,t,r){Nd(e.x,t.x,r.x),Nd(e.y,t.y,r.y)}function Hd(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function Ud(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),Yd=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Xd(e){return[e("x"),e("y")]}function Kd({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function Qd(e){return void 0===e||1===e}function eh({scale:e,scaleX:t,scaleY:r}){return!Qd(e)||!Qd(t)||!Qd(r)}function th(e){return eh(e)||rh(e)||e.z||e.rotate||e.rotateX||e.rotateY}function rh(e){return nh(e.x)||nh(e.y)}function nh(e){return e&&"0%"!==e}function oh(e,t,r){return r+t*(e-r)}function ih(e,t,r,n,o){return void 0!==o&&(e=oh(e,o,n)),oh(e,r,n)+t}function ah(e,t=0,r=1,n,o){e.min=ih(e.min,t,r,n,o),e.max=ih(e.max,t,r,n,o)}function sh(e,{x:t,y:r}){ah(e.x,t.translate,t.scale,t.originPoint),ah(e.y,r.translate,r.scale,r.originPoint)}function lh(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function ch(e,t){e.min=e.min+t,e.max=e.max+t}function uh(e,t,[r,n,o]){const i=void 0!==t[o]?t[o]:.5,a=qc(e.min,e.max,i);ah(e,t[r],t[n],a,t.scale)}const dh=["x","scaleX","originX"],hh=["y","scaleY","originY"];function ph(e,t){uh(e.x,t,dh),uh(e.y,t,hh)}function fh(e,t){return Kd(function(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}const mh=new WeakMap;class gh{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=Yd(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;this.panSession=new Td(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(Al(e,"page").point)},onStart:(e,t)=>{const{drag:r,dragPropagation:n,onDragStart:o}=this.getProps();if(r&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Bl(r),!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),Xd((e=>{let t=this.getAxisMotionValue(e).get()||0;if(Vs.test(t)){const{projection:r}=this.visualElement;if(r&&r.layout){const n=r.layout.layoutBox[e];if(n){t=Od(n)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),o&&ql.update((()=>o(e,t)),!1,!0);const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:r,dragDirectionLock:n,onDirectionLock:o,onDrag:i}=this.getProps();if(!r&&!this.openGlobalLock)return;const{offset:a}=t;if(n&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let r=null;Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x");return r}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,t){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:n}=t;this.startAnimation(n);const{onDragEnd:o}=this.getProps();o&&ql.update((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){const{drag:n}=this.getProps();if(!r||!vh(e,n,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:r},n){return void 0!==t&&er&&(e=n?qc(r,e,n.max):Math.min(e,r)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:r}=this.visualElement.projection||{},n=this.constraints;e&&Xa(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!r)&&function(e,{top:t,left:r,bottom:n,right:o}){return{x:Hd(e.x,r,o),y:Hd(e.y,t,n)}}(r.layoutBox,e),this.elastic=function(e=qd){return!1===e?e=0:!0===e&&(e=qd),{x:Gd(e,"left","right"),y:Gd(e,"top","bottom")}}(t),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Xd((e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(r.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Xa(e))return!1;const r=e.current;cc(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:n}=this.visualElement;if(!n||!n.layout)return!1;const o=function(e,t,r){const n=fh(e,r),{scroll:o}=t;return o&&(ch(n.x,o.offset.x),ch(n.y,o.offset.y)),n}(r,n.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:Ud(e.x,t.x),y:Ud(e.y,t.y)}}(n.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=Kd(e))}return i}startAnimation(e){const{drag:t,dragMomentum:r,dragElastic:n,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=Xd((a=>{if(!vh(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const c=n?200:1e6,u=n?40:1e7,d={type:"inertia",velocity:r?e[a]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const r=this.getAxisMotionValue(e);return r.start(rd(e,r,0,t))}stopAnimation(){Xd((e=>this.getAxisMotionValue(e).stop()))}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),r=this.visualElement.getProps(),n=r[t];return n||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Xd((t=>{const{drag:r}=this.getProps();if(!vh(t,r,this.currentDirection))return;const{projection:n}=this.visualElement,o=this.getAxisMotionValue(t);if(n&&n.layout){const{min:r,max:i}=n.layout.layoutBox[t];o.set(e[t]-qc(r,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!Xa(t)||!r||!this.constraints)return;this.stopAnimation();const n={x:0,y:0};Xd((e=>{const t=this.getAxisMotionValue(e);if(t){const r=t.get();n[e]=function(e,t){let r=.5;const n=Od(e),o=Od(t);return o>n?r=hu(t.min,t.max-n,e.min):n>o&&(r=hu(e.min,e.max-o,t.min)),Ts(0,1,r)}({min:r,max:r},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Xd((t=>{if(!vh(t,e,null))return;const r=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];r.set(qc(o,i,n[t]))}))}addListeners(){if(!this.visualElement.current)return;mh.set(this.visualElement,this);const e=Tl(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();Xa(e)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),t();const o=Pl(window,"resize",(()=>this.scalePositionWithinConstraints())),i=r.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Xd((t=>{const r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),n(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:o=!1,dragElastic:i=qd,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function vh(e,t,r){return!(!0!==t&&t!==e||null!==r&&r!==e)}const bh=e=>(t,r)=>{e&&ql.update((()=>e(t,r)))};function yh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const xh={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Ns.test(e))return e;e=parseFloat(e)}return`${yh(e,t.target.x)}% ${yh(e,t.target.y)}%`}},wh={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=au.parse(e);if(o.length>5)return n;const i=au.createTransformer(e),a="number"!=typeof o[0]?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=qc(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=c),"number"==typeof o[3+a]&&(o[3+a]/=c),i(o)}};class kh extends n.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:o}=e;var i;i=Ch,Object.assign(ys,i),o&&(t.group&&t.group.add(o),r&&r.register&&n&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),cs.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:r,drag:n,isPresent:o}=this.props,i=r.projection;return i?(i.isPresent=o,n||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||ql.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Sh(e){const[t,r]=function(){const e=(0,n.useContext)(Ha);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:r,register:o}=e,i=(0,n.useId)();return(0,n.useEffect)((()=>o(i)),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}(),o=(0,n.useContext)(ds);return n.createElement(kh,{...e,layoutGroup:o,switchLayoutGroup:(0,n.useContext)(hs),isPresent:t,safeToRemove:r})}const Ch={borderRadius:{...xh,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:xh,borderTopRightRadius:xh,borderBottomLeftRadius:xh,borderBottomRightRadius:xh,boxShadow:wh},_h=["TopLeft","TopRight","BottomLeft","BottomRight"],Ph=_h.length,Eh=e=>"string"==typeof e?parseFloat(e):e,Ah=e=>"number"==typeof e||Ns.test(e);function Rh(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Th=Dh(0,.5,Dc),jh=Dh(.5,.95,Yl);function Dh(e,t,r){return n=>nt?1:r(hu(e,t,n))}function $h(e,t){e.min=t.min,e.max=t.max}function zh(e,t){$h(e.x,t.x),$h(e.y,t.y)}function Mh(e,t,r,n,o){return e=oh(e-=t,1/r,n),void 0!==o&&(e=oh(e,1/o,n)),e}function Bh(e,t,[r,n,o],i,a){!function(e,t=0,r=1,n=.5,o,i=e,a=e){Vs.test(t)&&(t=parseFloat(t),t=qc(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=qc(i.min,i.max,n);e===i&&(s-=t),e.min=Mh(e.min,t,r,s,o),e.max=Mh(e.max,t,r,s,o)}(e,t[r],t[n],t[o],t.scale,i,a)}const Oh=["x","scaleX","originX"],Ih=["y","scaleY","originY"];function Lh(e,t,r,n){Bh(e.x,t,Oh,r?r.x:void 0,n?n.x:void 0),Bh(e.y,t,Ih,r?r.y:void 0,n?n.y:void 0)}function Fh(e){return 0===e.translate&&1===e.scale}function Vh(e){return Fh(e.x)&&Fh(e.y)}function Nh(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Wh(e){return Od(e.x)/Od(e.y)}class Hh{constructor(){this.members=[]}add(e){od(this.members,e),e.scheduleRender()}remove(e){if(id(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let r;for(let n=t;n>=0;n--){const e=this.members[n];if(!1!==e.isPresent){r=e;break}}return!!r&&(this.promote(r),!0)}promote(e,t){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:n}=e.options;!1===n&&r.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Uh(e,t,r){let n="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(n=`translate3d(${o}px, ${i}px, 0) `),1===t.x&&1===t.y||(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:e,rotateX:t,rotateY:o}=r;e&&(n+=`rotate(${e}deg) `),t&&(n+=`rotateX(${t}deg) `),o&&(n+=`rotateY(${o}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return 1===a&&1===s||(n+=`scale(${a}, ${s})`),n||"none"}const qh=(e,t)=>e.depth-t.depth;class Gh{constructor(){this.children=[],this.isDirty=!1}add(e){od(this.children,e),this.isDirty=!0}remove(e){id(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(qh),this.isDirty=!1,this.children.forEach(e)}}const Zh=["","X","Y","Z"];let Jh=0;const Yh={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Xh({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(e,r={},n=(null==t?void 0:t())){this.id=Jh++,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.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;Yh.totalNodes=Yh.resolvedTargetDeltas=Yh.recalculatedProjection=0,this.nodes.forEach(ep),this.nodes.forEach(ap),this.nodes.forEach(sp),this.nodes.forEach(tp),e=Yh,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=e,this.latestValues=r,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let t=0;tthis.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){const r=performance.now(),n=({timestamp:o})=>{const i=o-r;i>=t&&(Gl(n),e(i-t))};return ql.read(n,!0),()=>Gl(n)}(n,250),cs.hasAnimatedSinceResize&&(cs.hasAnimatedSinceResize=!1,this.nodes.forEach(ip))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||pp,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!Nh(this.targetLayout,n)||r,c=!t&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...td(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||ip(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Gl(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(lp),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let o=0;o{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let r=0;r{const r=t/1e3;up(i.x,e.x,r),up(i.y,e.y,r),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Wd(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,r,n){dp(e.x,t.x,r.x,n),dp(e.y,t.y,r.y,n)}(this.relativeTarget,this.relativeTargetOrigin,a,r),d&&Nh(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=Yd()),zh(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,r,n,o,i){o?(e.opacity=qc(0,void 0!==r.opacity?r.opacity:1,Th(n)),e.opacityExit=qc(void 0!==t.opacity?t.opacity:1,0,jh(n))):i&&(e.opacity=qc(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,n));for(let a=0;a{cs.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r){const n=Ss(e)?e:ld(e);return n.start(rd("",n,t,r)),n.animation}(0,1e3,{...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);const 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(){const e=this.getLead();let{targetWithTransforms:t,target:r,layout:n,latestValues:o}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&gp(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||Yd();const t=Od(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;const n=Od(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}zh(t,r),ph(t,o),Fd(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Hh);this.sharedNodes.get(e).add(t);const r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){const n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:r}=e;if((r.rotate||r.rotateX||r.rotateY||r.rotateZ)&&(t=!0),!t)return;const n={};for(let o=0;o{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(np),this.root.sharedNodes.clear()}}}function Kh(e){e.updateLayout()}function Qh(e){var t;const r=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:n}=e.layout,{animationType:o}=e.options,i=r.source!==e.layout.source;"size"===o?Xd((e=>{const n=i?r.measuredBox[e]:r.layoutBox[e],o=Od(n);n.min=t[e].min,n.max=n.min+o})):gp(o,r.layoutBox,t)&&Xd((n=>{const o=i?r.measuredBox[n]:r.layoutBox[n],a=Od(t[n]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+a)}));const a=Jd();Fd(a,t,r.layoutBox);const s=Jd();i?Fd(s,e.applyTransform(n,!0),r.measuredBox):Fd(s,t,r.layoutBox);const l=!Vh(a);let c=!1;if(!e.resumeFrom){const n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:o,layout:i}=n;if(o&&i){const a=Yd();Wd(a,r.layoutBox,o.layoutBox);const s=Yd();Wd(s,t,i.layoutBox),Nh(a,s)||(c=!0),n.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:r,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ep(e){Yh.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function tp(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function rp(e){e.clearSnapshot()}function np(e){e.clearMeasurements()}function op(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ip(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function ap(e){e.resolveTargetDelta()}function sp(e){e.calcProjection()}function lp(e){e.resetRotation()}function cp(e){e.removeLeadSnapshot()}function up(e,t,r){e.translate=qc(t.translate,0,r),e.scale=qc(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function dp(e,t,r,n){e.min=qc(t.min,r.min,n),e.max=qc(t.max,r.max,n)}function hp(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const pp={duration:.45,ease:[.4,0,.1,1]};function fp(e,t){let r=e.root;for(let o=e.path.length-1;o>=0;o--)if(Boolean(e.path[o].instance)){r=e.path[o];break}const n=(r&&r!==e.root?r.instance:document).querySelector(`[data-projection-id="${t}"]`);n&&e.mount(n,!0)}function mp(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function gp(e,t,r){return"position"===e||"preserve-aspect"===e&&!Id(Wh(t),Wh(r),.2)}const vp=Xh({attachResizeListener:(e,t)=>Pl(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),bp={current:void 0},yp=Xh({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!bp.current){const e=new vp(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),bp.current=e}return bp.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),xp={pan:{Feature:class extends Il{constructor(){super(...arguments),this.removePointerDownListener=Yl}onPointerDown(e){this.session=new Td(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:bh(e),onStart:bh(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&ql.update((()=>n(e,t)))}}}mount(){this.removePointerDownListener=Tl(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 Il{constructor(e){super(e),this.removeGroupControls=Yl,this.removeListeners=Yl,this.controls=new gh(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Yl}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:yp,MeasureLayout:Sh}},wp=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const kp=4;function Sp(e,t,r=1){cc(r<=kp,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[n,o]=function(e){const t=wp.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);return i?i.trim():As(o)?Sp(o,t,r+1):o}const Cp=new Set(["width","height","top","left","right","bottom","x","y"]),_p=e=>Cp.has(e),Pp=e=>e===js||e===Ns,Ep=(e,t)=>parseFloat(e.split(", ")[t]),Ap=(e,t)=>(r,{transform:n})=>{if("none"===n||!n)return 0;const o=n.match(/^matrix3d\((.+)\)$/);if(o)return Ep(o[1],t);{const t=n.match(/^matrix\((.+)\)$/);return t?Ep(t[1],e):0}},Rp=new Set(["x","y","z"]),Tp=xs.filter((e=>!Rp.has(e)));const jp={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Ap(4,13),y:Ap(5,14)},Dp=(e,t,r={},n={})=>{t={...t},n={...n};const o=Object.keys(t).filter(_p);let i=[],a=!1;const s=[];if(o.forEach((o=>{const l=e.getValue(o);if(!e.hasValue(o))return;let c=r[o],u=dd(c);const d=t[o];let h;if(bl(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=dd(c);for(let r=t;r{const n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))})),t.length&&e.render(),t}(e),a=!0),s.push(o),n[o]=void 0!==n[o]?n[o]:t[o],l.jump(d))})),s.length){const r=s.indexOf("height")>=0?window.pageYOffset:null,o=((e,t,r)=>{const n=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),r.forEach((e=>{s[e]=jp[e](n,i)})),t.render();const l=t.measureViewportBox();return r.forEach((r=>{const n=t.getValue(r);n&&n.jump(s[r]),e[r]=jp[r](l,i)})),e})(t,e,s);return i.length&&i.forEach((([t,r])=>{e.getValue(t).set(r)})),e.render(),Za&&null!==r&&window.scrollTo({top:r}),{target:o,transitionEnd:n}}return{target:t,transitionEnd:n}};function $p(e,t,r,n){return(e=>Object.keys(e).some(_p))(t)?Dp(e,t,r,n):{target:t,transitionEnd:n}}const zp=(e,t,r,n)=>{const o=function(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach((e=>{const t=e.get();if(!As(t))return;const r=Sp(t,n);r&&e.set(r)}));for(const o in t){const e=t[o];if(!As(e))continue;const i=Sp(e,n);i&&(t[o]=i,r||(r={}),void 0===r[o]&&(r[o]=e))}return{target:t,transitionEnd:r}}(e,t,n);return $p(e,t=o.target,r,n=o.transitionEnd)},Mp={current:null},Bp={current:!1};const Op=new WeakMap,Ip=Object.keys(ss),Lp=Ip.length,Fp=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Vp=ts.length;class Np{constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>ql.render(this.render,!1,!0);const{latestValues:a,renderState:s}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=i,this.isControllingVariants=rs(t),this.isVariantNode=ns(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(t,{});for(const u in c){const e=c[u];void 0!==a[u]&&Ss(e)&&(e.set(a[u],!1),nd(l)&&l.add(u))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,Op.set(e,this),this.projection&&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))),Bp.current||function(){if(Bp.current=!0,Za)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Mp.current=e.matches;e.addListener(t),t()}else Mp.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Mp.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Op.delete(this.current),this.projection&&this.projection.unmount(),Gl(this.notifyUpdate),Gl(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const r=ws.has(e),n=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&ql.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{n(),o()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},r,n,o,i){let a,s;for(let l=0;lthis.scheduleRender(),animationType:"string"==typeof r?r:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:c})}return s}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update(this.props,this.prevProps):(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):Yd()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,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 r=0;rt.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const 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 r=this.values.get(e);return void 0===r&&void 0!==t&&(r=ld(t,{owner:this}),this.addValue(e,r)),r}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:r}=this.props,n="string"==typeof r||"object"==typeof r?null===(t=vl(this.props,r))||void 0===t?void 0:t[e]:void 0;if(r&&void 0!==n)return n;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||Ss(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 ad),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Wp extends Np{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:r}){delete t[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...r},{transformValues:n},o){let i=function(e,t,r){const n={};for(const o in e){const e=gd(o,t);if(void 0!==e)n[o]=e;else{const e=r.getValue(o);e&&(n[o]=e.get())}}return n}(r,e||{},this);if(n&&(t&&(t=n(t)),r&&(r=n(r)),i&&(i=n(i))),o){!function(e,t,r){var n,o;const i=Object.keys(t).filter((t=>!e.hasValue(t))),a=i.length;if(a)for(let s=0;s{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,r,n){hl(e,t,r,n)}}class Up extends Wp{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(ws.has(t)){const e=Xu(t);return e&&e.default||0}return t=pl.has(t)?t:dl(t),e.getAttribute(t)}measureInstanceViewportBox(){return Yd()}scrapeMotionValuesFromProps(e,t){return gl(e,t)}build(e,t,r,n){al(e,t,r,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,r,n){fl(e,t,0,n)}mount(e){this.isSVGTag=ll(e.tagName),super.mount(e)}}const qp=(e,t)=>bs(e)?new Up(t,{enableHardwareAcceleration:!1}):new Hp(t,{enableHardwareAcceleration:!0}),Gp={...Ad,...oc,...xp,...{layout:{ProjectionNode:yp,MeasureLayout:Sh}}},Zp=gs(((e,t)=>function(e,{forwardMotionProps:t=!1},r,n){return{...bs(e)?Cl:_l,preloadedFeatures:r,useRender:ul(t),createVisualElement:n,Component:e}}(e,t,Gp,qp)));var Jp=r(9252),Yp={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return"bottom"===t&&(n=1),{opacity:0,[r]:24*n}},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]}}},Xp=(0,n.memo)((e=>{const{id:t,message:r,onCloseComplete:o,onRequestRemove:a,requestClose:s=!1,position:l="bottom",duration:c=5e3,containerStyle:u,motionVariants:d=Yp,toastSpacing:h="0.5rem"}=e,[p,f]=(0,n.useState)(c),m=Ua();Wa((()=>{m||null==o||o()}),[m]),Wa((()=>{f(c)}),[c]);const g=()=>{m&&a()};(0,n.useEffect)((()=>{m&&s&&a()}),[m,s,a]),Na(g,p);const v=(0,n.useMemo)((()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:h,...u})),[u,h]),b=(0,n.useMemo)((()=>function(e){let t="center";return e.includes("right")&&(t="flex-end"),e.includes("left")&&(t="flex-start"),{display:"flex",flexDirection:"column",alignItems:t}}(l)),[l]);return(0,i.jsx)(Zp.div,{layout:!0,className:"chakra-toast",variants:d,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>f(null),onHoverEnd:()=>f(c),custom:{position:l},style:b,children:(0,i.jsx)(Jp.m.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:v,children:(0,ze.Pu)(r,{id:t,onClose:g})})})}));Xp.displayName="ToastComponent";var Kp=r(5059),Qp=r(5490),ef={path:(0,i.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,i.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,i.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,i.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},tf=(0,Kp.G)(((e,t)=>{const{as:r,viewBox:n,color:o="currentColor",focusable:a=!1,children:s,className:l,__css:c,...u}=e,d={ref:t,focusable:a,className:(0,ze.cx)("chakra-icon",l),__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...c,...(0,Qp.mq)("Icon",e)}},h=null!=n?n:ef.viewBox;if(r&&"string"!=typeof r)return(0,i.jsx)(Jp.m.svg,{as:r,...d,...u});const p=null!=s?s:ef.path;return(0,i.jsx)(Jp.m.svg,{verticalAlign:"middle",viewBox:h,...d,...u,children:p})}));tf.displayName="Icon";function rf(e){return(0,i.jsx)(tf,{viewBox:"0 0 24 24",...e,children:(0,i.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 nf=r(295),[of,af]=(0,u.k)({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[sf,lf]=(0,u.k)({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),cf={info:{icon:function(e){return(0,i.jsx)(tf,{viewBox:"0 0 24 24",...e,children:(0,i.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:rf,colorScheme:"orange"},success:{icon:function(e){return(0,i.jsx)(tf,{viewBox:"0 0 24 24",...e,children:(0,i.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:rf,colorScheme:"red"},loading:{icon:nf.$,colorScheme:"blue"}};var uf=(0,Kp.G)((function(e,t){var r;const{status:n="info",addRole:o=!0,...a}=(0,m.Lr)(e),s=null!=(r=e.colorScheme)?r:function(e){return cf[e].colorScheme}(n),l=(0,Qp.jC)("Alert",{...e,colorScheme:s}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return(0,i.jsx)(of,{value:{status:n},children:(0,i.jsx)(sf,{value:l,children:(0,i.jsx)(Jp.m.div,{"data-status":n,role:o?"alert":void 0,ref:t,...a,className:(0,ze.cx)("chakra-alert",e.className),__css:c})})})}));function df(e){const{status:t}=af(),r=function(e){return cf[e].icon}(t),n=lf(),o="loading"===t?n.spinner:n.icon;return(0,i.jsx)(Jp.m.span,{display:"inherit","data-status":t,...e,className:(0,ze.cx)("chakra-alert__icon",e.className),__css:o,children:e.children||(0,i.jsx)(r,{h:"100%",w:"100%"})})}uf.displayName="Alert",df.displayName="AlertIcon";var hf=(0,Kp.G)((function(e,t){const r=lf(),{status:n}=af();return(0,i.jsx)(Jp.m.div,{ref:t,"data-status":n,...e,className:(0,ze.cx)("chakra-alert__title",e.className),__css:r.title})}));hf.displayName="AlertTitle";var pf=(0,Kp.G)((function(e,t){const r=lf(),{status:n}=af(),o={display:"inline",...r.description};return(0,i.jsx)(Jp.m.div,{ref:t,"data-status":n,...e,className:(0,ze.cx)("chakra-alert__desc",e.className),__css:o})}));function ff(e){return(0,i.jsx)(tf,{focusable:"false","aria-hidden":!0,...e,children:(0,i.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"})})}pf.displayName="AlertDescription";var mf=(0,Kp.G)((function(e,t){const r=(0,Qp.mq)("CloseButton",e),{children:n,isDisabled:o,__css:a,...s}=(0,m.Lr)(e);return(0,i.jsx)(Jp.m.button,{type:"button","aria-label":"Close",ref:t,disabled:o,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...r,...a},...s,children:n||(0,i.jsx)(ff,{width:"1em",height:"1em"})})}));mf.displayName="CloseButton";var gf=function(e){let t=e;const r=new Set,n=e=>{t=e(t),r.forEach((e=>e()))};return{getState:()=>t,subscribe:t=>(r.add(t),()=>{n((()=>e)),r.delete(t)}),removeToast:(e,t)=>{n((r=>({...r,[t]:r[t].filter((t=>t.id!=e))})))},notify:(e,t)=>{const r=function(e,t={}){var r,n;vf+=1;const o=null!=(r=t.id)?r:vf,i=null!=(n=t.position)?n:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>gf.removeToast(String(o),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}(e,t),{position:o,id:i}=r;return n((e=>{var t,n;const i=o.includes("top")?[r,...null!=(t=e[o])?t:[]]:[...null!=(n=e[o])?n:[],r];return{...e,[o]:i}})),i},update:(e,t)=>{e&&n((r=>{const n={...r},{position:o,index:i}=La(n,e);return o&&-1!==i&&(n[o][i]={...n[o][i],...t,message:yf(t)}),n}))},closeAll:({positions:e}={})=>{n((t=>(null!=e?e:["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce(((e,r)=>(e[r]=t[r].map((e=>({...e,requestClose:!0}))),e)),{...t})))},close:e=>{n((t=>{const r=Fa(t,e);return r?{...t,[r]:t[r].map((t=>t.id==e?{...t,requestClose:!0}:t))}:t}))},isActive:e=>Boolean(La(gf.getState(),e).position)}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]});var vf=0;var bf=e=>{const{status:t,variant:r="solid",id:n,title:o,isClosable:a,onClose:s,description:l,colorScheme:c,icon:u}=e,d=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return(0,i.jsxs)(uf,{addRole:!1,status:t,variant:r,id:null==d?void 0:d.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:c,children:[(0,i.jsx)(df,{children:u}),(0,i.jsxs)(Jp.m.div,{flex:"1",maxWidth:"100%",children:[o&&(0,i.jsx)(hf,{id:null==d?void 0:d.title,children:o}),l&&(0,i.jsx)(pf,{id:null==d?void 0:d.description,display:"block",children:l})]}),a&&(0,i.jsx)(mf,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function yf(e={}){const{render:t,toastComponent:r=bf}=e;return n=>"function"==typeof t?t({...n,...e}):(0,i.jsx)(r,{...n,...e})}function xf(){const e=(0,n.useRef)(!1);return Ja((()=>(e.current=!0,()=>{e.current=!1})),[]),e}class wf extends n.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const 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 kf({children:e,isPresent:t}){const r=(0,n.useId)(),o=(0,n.useRef)(null),i=(0,n.useRef)({width:0,height:0,top:0,left:0});return(0,n.useInsertionEffect)((()=>{const{width:e,height:n,top:a,left:s}=i.current;if(t||!o.current||!e||!n)return;o.current.dataset.motionPopId=r;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n [data-motion-pop-id="${r}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${n}px !important;\n top: ${a}px !important;\n left: ${s}px !important;\n }\n `),()=>{document.head.removeChild(l)}}),[t]),n.createElement(wf,{isPresent:t,childRef:o,sizeRef:i},n.cloneElement(e,{ref:o}))}const Sf=({children:e,initial:t,isPresent:r,onExitComplete:o,custom:i,presenceAffectsLayout:a,mode:s})=>{const l=ls(Cf),c=(0,n.useId)(),u=(0,n.useMemo)((()=>({id:c,initial:t,isPresent:r,custom:i,onExitComplete:e=>{l.set(e,!0);for(const t of l.values())if(!t)return;o&&o()},register:e=>(l.set(e,!1),()=>l.delete(e))})),a?void 0:[r]);return(0,n.useMemo)((()=>{l.forEach(((e,t)=>l.set(t,!1)))}),[r]),n.useEffect((()=>{!r&&!l.size&&o&&o()}),[r]),"popLayout"===s&&(e=n.createElement(kf,{isPresent:r},e)),n.createElement(Ha.Provider,{value:u},e)};function Cf(){return new Map}const _f=e=>e.key||"";const Pf=({children:e,custom:t,initial:r=!0,onExitComplete:o,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:s="sync"})=>{cc(!i,"Replace exitBeforeEnter with mode='wait'");let[l]=function(){const e=xf(),[t,r]=(0,n.useState)(0),o=(0,n.useCallback)((()=>{e.current&&r(t+1)}),[t]);return[(0,n.useCallback)((()=>ql.postRender(o)),[o]),t]}();const c=(0,n.useContext)(ds).forceRender;c&&(l=c);const u=xf(),d=function(e){const t=[];return n.Children.forEach(e,(e=>{(0,n.isValidElement)(e)&&t.push(e)})),t}(e);let h=d;const p=new Set,f=(0,n.useRef)(h),m=(0,n.useRef)(new Map).current,g=(0,n.useRef)(!0);var v;if(Ja((()=>{g.current=!1,function(e,t){e.forEach((e=>{const r=_f(e);t.set(r,e)}))}(d,m),f.current=h})),v=()=>{g.current=!0,m.clear(),p.clear()},(0,n.useEffect)((()=>()=>v()),[]),g.current)return n.createElement(n.Fragment,null,h.map((e=>n.createElement(Sf,{key:_f(e),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:a,mode:s},e))));h=[...h];const b=f.current.map(_f),y=d.map(_f),x=b.length;for(let n=0;n{if(-1!==y.indexOf(e))return;const r=m.get(e);if(!r)return;const i=b.indexOf(e);h.splice(i,0,n.createElement(Sf,{key:_f(r),isPresent:!1,onExitComplete:()=>{m.delete(e),p.delete(e);const t=f.current.findIndex((t=>t.key===e));if(f.current.splice(t,1),!p.size){if(f.current=d,!1===u.current)return;l(),o&&o()}},custom:t,presenceAffectsLayout:a,mode:s},r))})),h=h.map((e=>{const t=e.key;return p.has(t)?e:n.createElement(Sf,{key:_f(e),isPresent:!0,presenceAffectsLayout:a,mode:s},e)})),n.createElement(n.Fragment,null,p.size?h:h.map((e=>(0,n.cloneElement)(e))))};var Ef=r(3935),[Af,Rf]=(0,u.k)({strict:!1,name:"PortalContext"}),Tf="chakra-portal",jf=e=>(0,i.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),Df=e=>{const{appendToParentPortal:t,children:r}=e,[o,a]=(0,n.useState)(null),s=(0,n.useRef)(null),[,l]=(0,n.useState)({});(0,n.useEffect)((()=>l({})),[]);const c=Rf(),u=h();T((()=>{if(!o)return;const e=o.ownerDocument,r=t&&null!=c?c:e.body;if(!r)return;s.current=e.createElement("div"),s.current.className=Tf,r.appendChild(s.current),l({});const n=s.current;return()=>{r.contains(n)&&r.removeChild(n)}}),[o]);const d=(null==u?void 0:u.zIndex)?(0,i.jsx)(jf,{zIndex:null==u?void 0:u.zIndex,children:r}):r;return s.current?(0,Ef.createPortal)((0,i.jsx)(Af,{value:s.current,children:d}),s.current):(0,i.jsx)("span",{ref:e=>{e&&a(e)}})},$f=e=>{const{children:t,containerRef:r,appendToParentPortal:o}=e,a=r.current,s=null!=a?a:"undefined"!=typeof window?document.body:void 0,l=(0,n.useMemo)((()=>{const e=null==a?void 0:a.ownerDocument.createElement("div");return e&&(e.className=Tf),e}),[a]),[,c]=(0,n.useState)({});return T((()=>c({})),[]),T((()=>{if(l&&s)return s.appendChild(l),()=>{s.removeChild(l)}}),[l,s]),s&&l?(0,Ef.createPortal)((0,i.jsx)(Af,{value:o?l:null,children:t}),l):null};function zf(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?(0,i.jsx)($f,{containerRef:r,...n}):(0,i.jsx)(Df,{...n})}zf.className=Tf,zf.selector=".chakra-portal",zf.displayName="Portal";var[Mf,Bf]=(0,u.k)({name:"ToastOptionsContext",strict:!1}),Of=e=>{const t=(0,n.useSyncExternalStore)(gf.subscribe,gf.getState,gf.getState),{motionVariants:r,component:o=Xp,portalProps:a}=e,s=Object.keys(t).map((e=>{const n=t[e];return(0,i.jsx)("div",{role:"region","aria-live":"polite",id:`chakra-toast-manager-${e}`,style:Va(e),children:(0,i.jsx)(Pf,{initial:!1,children:n.map((e=>(0,i.jsx)(o,{motionVariants:r,...e},e.id)))})},e)}));return(0,i.jsx)(zf,{...a,children:s})},If=e=>function({children:t,theme:r=e,toastOptions:n,...o}){return(0,i.jsxs)(B,{theme:r,...o,children:[(0,i.jsx)(Mf,{value:null==n?void 0:n.defaultOptions,children:t}),(0,i.jsx)(Of,{...n})]})},Lf=If(Ba),Ff=(If(Oa),Ba);const Vf=e=>{let{element:t,resetCSS:r=!0,portalZIndex:o}=e;return n.createElement(Lf,{theme:Ff,resetCSS:r,portalZIndex:o},t)},Nf=(e,t)=>{let{element:r}=e;return n.createElement(Vf,Object.assign({element:r},t))}},45:function(e,t,r){"use strict";var n=r(4836)(r(7294)),o=r(1256);t.wrapRootElement=function(e,t){var r=e.element;return n.default.createElement(o.StyleSheetManager,{disableVendorPrefixes:!0===(null==t?void 0:t.disableVendorPrefixes)},r)}},4670:function(e,t,r){"use strict";var n=r(7294),o={stream:!0},i=new Map,a=Symbol.for("react.element"),s=Symbol.for("react.lazy"),l=Symbol.for("react.default_value"),c=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;function u(e,t,r){this._status=e,this._value=t,this._response=r}function d(e){switch(e._status){case 3:return e._value;case 1:var t=JSON.parse(e._value,e._response._fromJSON);return e._status=3,e._value=t;case 2:for(var n=(t=e._value).chunks,o=0;o-1},te.prototype.set=function(e,t){var r=this.__data__,n=se(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},re.prototype.clear=function(){this.size=0,this.__data__={hash:new ee,map:new(X||te),string:new ee}},re.prototype.delete=function(e){var t=be(this,e).delete(e);return this.size-=t?1:0,t},re.prototype.get=function(e){return be(this,e).get(e)},re.prototype.has=function(e){return be(this,e).has(e)},re.prototype.set=function(e,t){var r=be(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},ne.prototype.clear=function(){this.__data__=new te,this.size=0},ne.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},ne.prototype.get=function(e){return this.__data__.get(e)},ne.prototype.has=function(e){return this.__data__.has(e)},ne.prototype.set=function(e,t){var r=this.__data__;if(r instanceof te){var n=r.__data__;if(!X||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new re(n)}return r.set(e,t),this.size=r.size,this};var ce,ue=function(e,t,r){for(var n=-1,o=Object(e),i=r(e),a=i.length;a--;){var s=i[ce?a:++n];if(!1===t(o[s],s,o))break}return e};function de(e){return null==e?void 0===e?h:c:q&&q in Object(e)?function(e){var t=$.call(e,q),r=e[q];try{e[q]=void 0;var n=!0}catch(i){}var o=M.call(e);n&&(t?e[q]=r:delete e[q]);return o}(e):function(e){return M.call(e)}(e)}function he(e){return De(e)&&de(e)==i}function pe(e){return!(!je(e)||function(e){return!!z&&z in e}(e))&&(Re(e)?O:p).test(function(e){if(null!=e){try{return D.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function fe(e){if(!je(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=we(e),r=[];for(var n in e)("constructor"!=n||!t&&$.call(e,n))&&r.push(n);return r}function me(e,t,r,n,o){e!==t&&ue(t,(function(i,a){if(o||(o=new ne),je(i))!function(e,t,r,n,o,i,a){var s=ke(e,r),l=ke(t,r),c=a.get(l);if(c)return void ie(e,r,c);var d=i?i(s,l,r+"",e,t,a):void 0,h=void 0===d;if(h){var p=Pe(l),f=!p&&Ae(l),m=!p&&!f&&$e(l);d=l,p||f||m?Pe(s)?d=s:De(x=s)&&Ee(x)?d=function(e,t){var r=-1,n=e.length;t||(t=Array(n));for(;++r-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ve);function Ce(e,t){return e===t||e!=e&&t!=t}var _e=he(function(){return arguments}())?he:function(e){return De(e)&&$.call(e,"callee")&&!H.call(e,"callee")},Pe=Array.isArray;function Ee(e){return null!=e&&Te(e.length)&&!Re(e)}var Ae=Z||function(){return!1};function Re(e){if(!je(e))return!1;var t=de(e);return t==s||t==l||t==a||t==d}function Te(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function je(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function De(e){return null!=e&&"object"==typeof e}var $e=C?function(e){return function(t){return e(t)}}(C):function(e){return De(e)&&Te(e.length)&&!!m[de(e)]};function ze(e){return Ee(e)?oe(e,!0):fe(e)}var Me,Be=(Me=function(e,t,r,n){me(e,t,r,n)},ge((function(e,t){var r=-1,n=t.length,o=n>1?t[n-1]:void 0,i=n>2?t[2]:void 0;for(o=Me.length>3&&"function"==typeof o?(n--,o):void 0,i&&function(e,t,r){if(!je(r))return!1;var n=typeof t;return!!("number"==n?Ee(r)&&xe(t,r.length):"string"==n&&t in r)&&Ce(r[t],e)}(t[0],t[1],i)&&(o=n<3?void 0:o,n=1),e=Object(e);++rp)&&(L=(N=N.replace(" ",":")).length),0<$&&void 0!==(x=s(1,N,n,e,A,E,W.length,c,h,c))&&0===(L=(N=x.trim()).length)&&(N="\0\0"),p=N.charCodeAt(0),f=N.charCodeAt(1),p){case 0:break;case 64:if(105===f||99===f){U+=N+l.charAt(B);break}default:58!==N.charCodeAt(L-1)&&(W+=o(N,p,f,N.charCodeAt(2)))}I=O=z=p=0,N="",f=l.charCodeAt(++B)}}switch(f){case 13:case 10:47===S?S=0:0===1+p&&107!==c&&0n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102n.charCodeAt(0)&&(n=n.trim()),n=[n],0<$){var o=s(-1,r,n,n,A,E,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var i=t(j,n,r,0,0);return 0<$&&(void 0!==(o=s(-2,i,n,n,A,E,i.length,0,0,0))&&(i=o)),"",R=0,E=A=1,i}var u=/^\0+/g,d=/[\0\r\f]/g,h=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,x=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,S=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,_=/stretch|:\s*\w+\-(?:conte|avail)/,P=/([^-])(image-set\()/,E=1,A=1,R=0,T=1,j=[],D=[],$=0,z=null,M=0;return c.use=function e(t){switch(t){case void 0:case null:$=D.length=0;break;default:if("function"==typeof t)D[$++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r1?t-1:0),n=1;n0?" Args: "+r.join(", "):""))}var P=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&_(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i=R&&(R=t+1),E.set(e,t),A.set(t,e)},$="style["+x+'][data-styled-version="5.3.9"]',z=new RegExp("^"+x+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),M=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(x))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(x,"active"),n.setAttribute("data-styled-version","5.3.9");var a=O();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},L=function(){function e(e){var t=this.element=I(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(c+=e+",")})),n+=""+s+l+'{content:"'+c+'"}/*!sc*/\n'}}}return n}(this)},e}(),U=/(a)(d)/gi,q=function(e){return String.fromCharCode(e+(e>25?39:97))};function G(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=q(t%52)+r;return(q(t%52)+r).replace(U,"$1-$2")}var Z=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},J=function(e){return Z(5381,e)};function Y(e){for(var t=0;t>>0);if(!t.hasNameForId(n,a)){var s=r(i,"."+a,void 0,n);t.insertRules(n,a,s)}o.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,c=Z(this.baseHash,r.hash),u="",d=0;d>>0);if(!t.hasNameForId(n,m)){var g=r(u,"."+m,void 0,n);t.insertRules(n,m,g)}o.push(m)}}return o.join(" ")},e}(),Q=/^\s*\/\/.*$/gm,ee=[":","[",".","#"];function te(e){var t,r,n,o,i=void 0===e?g:e,a=i.options,l=void 0===a?g:a,c=i.plugins,u=void 0===c?m:c,d=new s(l),h=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,o,i,a,s,l,c,u,d){switch(r){case 1:if(0===u&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===c)return n+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(o[0]+n),"";default:return n+(0===d?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){h.push(e)})),f=function(e,n,i){return 0===n&&-1!==ee.indexOf(i[r.length])||i.match(o)?e:"."+t};function v(e,i,a,s){void 0===s&&(s="&");var l=e.replace(Q,""),c=i&&a?a+" "+i+" { "+l+" }":l;return t=s,r=i,n=new RegExp("\\"+r+"\\b","g"),o=new RegExp("(\\"+r+"\\b){2,}"),d(a||!i?"":i,c)}return d.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(r)>0&&(o[0]=o[0].replace(n,f))},p,function(e){if(-2===e){var t=h;return h=[],t}}])),v.hash=u.length?u.reduce((function(e,t){return t.name||_(15),Z(e,t.name)}),5381).toString():"",v}var re=o.createContext(),ne=re.Consumer,oe=o.createContext(),ie=(oe.Consumer,new H),ae=te();function se(){return(0,o.useContext)(re)||ie}function le(){return(0,o.useContext)(oe)||ae}function ce(e){var t=(0,o.useState)(e.stylisPlugins),r=t[0],n=t[1],i=se(),s=(0,o.useMemo)((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),l=(0,o.useMemo)((function(){return te({options:{prefix:!e.disableVendorPrefixes},plugins:r})}),[e.disableVendorPrefixes,r]);return(0,o.useEffect)((function(){a()(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]),o.createElement(re.Provider,{value:s},o.createElement(oe.Provider,{value:l},e.children))}var ue=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=ae);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return _(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ae),this.name+e.hash},e}(),de=/([A-Z])/,he=/([A-Z])/g,pe=/^ms-/,fe=function(e){return"-"+e.toLowerCase()};function me(e){return de.test(e)?e.replace(he,fe).replace(pe,"-ms-"):e}var ge=function(e){return null==e||!1===e||""===e};function ve(e,t,r,n){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a1?t-1:0),n=1;n?@[\\\]^`{|}~-]+/g,ke=/(^-|-$)/g;function Se(e){return e.replace(we,"-").replace(ke,"")}var Ce=function(e){return G(J(e)>>>0)};function _e(e){return"string"==typeof e&&!0}var Pe=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ee=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ae(e,t,r){var n=e[r];Pe(t)&&Pe(n)?Re(n,t):e[r]=t}function Re(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=0||(o[r]=e[r]);return o}(t,["componentId"]),i=n&&n+"-"+(_e(e)?e:Se(b(e)));return ze(e,h({},o,{attrs:w,componentId:i}),r)},Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?Re({},e.defaultProps,t):t}}),Object.defineProperty(S,"toString",{value:function(){return"."+S.styledComponentId}}),i&&d()(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),S}var Me=function(e){return function e(t,r,o){if(void 0===o&&(o=g),!(0,n.isValidElementType)(r))return _(1,String(r));var i=function(){return t(r,o,ye.apply(void 0,arguments))};return i.withConfig=function(n){return e(t,r,h({},o,{},n))},i.attrs=function(n){return e(t,r,h({},o,{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},i}(ze,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Me[e]=Me(e)}));var Be=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Y(e),H.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var o=n(ve(this.rules,t,r,n).join(""),""),i=this.componentId+e;r.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&H.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Oe(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n1?t-1:0),n=1;n"+t+""},this.getStyleTags=function(){return e.sealed?_(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return _(2);var r=((t={})[x]="",t["data-styled-version"]="5.3.9",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=O();return n&&(r.nonce=n),[o.createElement("style",h({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new H({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?_(2):o.createElement(ce,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return _(3)},e}(),Fe=function(e){var t=o.forwardRef((function(t,r){var n=(0,o.useContext)(Te),i=e.defaultProps,a=xe(t,n,i);return o.createElement(e,h({},t,{theme:a,ref:r}))}));return d()(t,e),t.displayName="WithTheme("+b(e)+")",t},Ve=function(){return(0,o.useContext)(Te)},Ne={StyleSheet:H,masterSheet:ie},We=Me},6115:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},434:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t((e,t)=>{const{forward:r=[],...n}=e||{},o=JSON.stringify(n,((e,t)=>("function"==typeof t&&(t=String(t)).startsWith(e+"(")&&(t="function "+t),t)));return["!(function(w,p,f,c){",Object.keys(n).length>0?`c=w[p]=Object.assign(w[p]||{},${o});`:"c=w[p]=w[p]||{};","c[f]=(c[f]||[])",r.length>0?`.concat(${JSON.stringify(r)})`:"","})(window,'partytown','forward');",t].join("")})(e,'/* Partytown 0.7.6 - MIT builder.io */\n!function(t,e,n,i,r,o,a,d,s,c,p,l){function u(){l||(l=1,"/"==(a=(o.lib||"/~partytown/")+(o.debug?"debug/":""))[0]&&(s=e.querySelectorAll(\'script[type="text/partytown"]\'),i!=t?i.dispatchEvent(new CustomEvent("pt1",{detail:t})):(d=setTimeout(f,1e4),e.addEventListener("pt0",w),r?h(1):n.serviceWorker?n.serviceWorker.register(a+(o.swPath||"partytown-sw.js"),{scope:a}).then((function(t){t.active?h():t.installing&&t.installing.addEventListener("statechange",(function(t){"activated"==t.target.state&&h()}))}),console.error):f())))}function h(t){c=e.createElement(t?"script":"iframe"),t||(c.setAttribute("style","display:block;width:0;height:0;border:0;visibility:hidden"),c.setAttribute("aria-hidden",!0)),c.src=a+"partytown-"+(t?"atomics.js?v=0.7.6":"sandbox-sw.html?"+Date.now()),e.body.appendChild(c)}function f(n,r){for(w(),i==t&&(o.forward||[]).map((function(e){delete t[e.split(".")[0]]})),n=0;ne.length)&&(t=e.length);for(var r=0,n=new Array(t);re.filter(Boolean).join(" ");function o(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}function i(e,...t){return a(e)?e(...t):e}var a=e=>"function"==typeof e,s=e=>e?"":void 0},295:function(e,t,r){"use strict";r.d(t,{$:function(){return d}});var n=r(917),o=r(5059),i=r(5490),a=r(3179),s=r(9252),l=r(5432),c=r(5893),u=(0,n.F4)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),d=(0,o.G)(((e,t)=>{const r=(0,i.mq)("Spinner",e),{label:n="Loading...",thickness:o="2px",speed:d="0.45s",emptyColor:h="transparent",className:p,...f}=(0,a.Lr)(e),m=(0,l.cx)("chakra-spinner",p),g={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:h,borderLeftColor:h,animation:`${u} ${d} linear infinite`,...r};return(0,c.jsx)(s.m.div,{ref:t,__css:g,className:m,...f,children:n&&(0,c.jsx)(s.m.span,{srOnly:!0,children:n})})}));d.displayName="Spinner"},3179:function(e,t,r){"use strict";r.d(t,{D:function(){return We},Lr:function(){return Ge},Ud:function(){return qe},ZR:function(){return Be},_6:function(){return oe},c0:function(){return je},cC:function(){return ze},fj:function(){return Ne},gJ:function(){return ne},iv:function(){return Fe},k0:function(){return Ve}});var n=r(5432),o=r(8554),i=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e,a=(e,t)=>r=>{const o=String(t),a=(e=>/!(important)?$/.test(e))(o),s=i(o),l=e?`${e}.${s}`:s;let c=(0,n.Kn)(r.__cssMap)&&l in r.__cssMap?r.__cssMap[l].varRef:t;return c=i(c),a?`${c} !important`:c};function s(e){const{scale:t,transform:r,compose:n}=e;return(e,o)=>{var i;const s=a(t,e)(o);let l=null!=(i=null==r?void 0:r(s,o))?i:s;return n&&(l=n(l,o)),l}}var l=(...e)=>t=>e.reduce(((e,t)=>t(e)),t);function c(e,t){return r=>{const n={property:r,scale:e};return n.transform=s({scale:e,transform:t}),n}}var u=({rtl:e,ltr:t})=>r=>"rtl"===r.direction?e:t;var d=["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))"];var h={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},p={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};var f={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},m={"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"},g=new Set(Object.values(m)),v=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),b=e=>e.trim();var y=e=>"string"==typeof e&&e.includes("(")&&e.includes(")");var x=e=>t=>`${e}(${t})`,w={filter(e){return"auto"!==e?e:h},backdropFilter(e){return"auto"!==e?e:p},ring(e){return function(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}(w.px(e))},bgClip(e){return"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...d].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...d].join(" "):e},vh(e){return"$100vh"===e?"var(--chakra-vh)":e},px(e){if(null==e)return e;const{unitless:t}=(e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}})(e);return t||"number"==typeof e?`${e}px`:e},fraction(e){return"number"!=typeof e||e>1?e:100*e+"%"},float(e,t){return"rtl"===t.direction?{left:"right",right:"left"}[e]:e},degree(e){if(function(e){return/^var\(--.+\)$/.test(e)}(e)||null==e)return e;const t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},gradient:(e,t)=>function(e,t){if(null==e||v.has(e))return e;if(!y(e)&&!v.has(e))return`url('${e}')`;const r=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),n=null==r?void 0:r[1],o=null==r?void 0:r[2];if(!n||!o)return e;const i=n.includes("-gradient")?n:`${n}-gradient`,[a,...s]=o.split(",").map(b).filter(Boolean);if(0===(null==s?void 0:s.length))return e;const l=a in m?m[a]:a;return s.unshift(l),`${i}(${s.map((e=>{if(g.has(e))return e;const r=e.indexOf(" "),[n,o]=-1!==r?[e.substr(0,r),e.substr(r+1)]:[e],i=y(o)?o:o&&o.split(" "),a=`colors.${n}`,s=a in t.__cssMap?t.__cssMap[a].varRef:n;return i?[s,...Array.isArray(i)?i:[i]].join(" "):s})).join(", ")})`}(e,null!=t?t:{}),blur:x("blur"),opacity:x("opacity"),brightness:x("brightness"),contrast:x("contrast"),dropShadow:x("drop-shadow"),grayscale:x("grayscale"),hueRotate:x("hue-rotate"),invert:x("invert"),saturate:x("saturate"),sepia:x("sepia"),bgImage(e){if(null==e)return e;return y(e)||v.has(e)?e:`url(${e})`},outline(e){const t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:r,divide:n}=null!=(t=f[e])?t:{},o={flexDirection:e};return r&&(o[r]=1),n&&(o[n]=1),o}},k={borderWidths:c("borderWidths"),borderStyles:c("borderStyles"),colors:c("colors"),borders:c("borders"),gradients:c("gradients",w.gradient),radii:c("radii",w.px),space:c("space",l(w.vh,w.px)),spaceT:c("space",l(w.vh,w.px)),degreeT(e){return{property:e,transform:w.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:s({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:c("sizes",l(w.vh,w.px)),sizesT:c("sizes",l(w.vh,w.fraction)),shadows:c("shadows"),logical:function(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:u(t),transform:r?s({scale:r,compose:n}):n}},blur:c("blur",w.blur)},S={background:k.colors("background"),backgroundColor:k.colors("backgroundColor"),backgroundImage:k.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:w.bgClip},bgSize:k.prop("backgroundSize"),bgPosition:k.prop("backgroundPosition"),bg:k.colors("background"),bgColor:k.colors("backgroundColor"),bgPos:k.prop("backgroundPosition"),bgRepeat:k.prop("backgroundRepeat"),bgAttachment:k.prop("backgroundAttachment"),bgGradient:k.gradients("backgroundImage"),bgClip:{transform:w.bgClip}};Object.assign(S,{bgImage:S.backgroundImage,bgImg:S.backgroundImage});var C={border:k.borders("border"),borderWidth:k.borderWidths("borderWidth"),borderStyle:k.borderStyles("borderStyle"),borderColor:k.colors("borderColor"),borderRadius:k.radii("borderRadius"),borderTop:k.borders("borderTop"),borderBlockStart:k.borders("borderBlockStart"),borderTopLeftRadius:k.radii("borderTopLeftRadius"),borderStartStartRadius:k.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:k.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:k.radii("borderTopRightRadius"),borderStartEndRadius:k.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:k.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:k.borders("borderRight"),borderInlineEnd:k.borders("borderInlineEnd"),borderBottom:k.borders("borderBottom"),borderBlockEnd:k.borders("borderBlockEnd"),borderBottomLeftRadius:k.radii("borderBottomLeftRadius"),borderBottomRightRadius:k.radii("borderBottomRightRadius"),borderLeft:k.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:k.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:k.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:k.borders(["borderLeft","borderRight"]),borderInline:k.borders("borderInline"),borderY:k.borders(["borderTop","borderBottom"]),borderBlock:k.borders("borderBlock"),borderTopWidth:k.borderWidths("borderTopWidth"),borderBlockStartWidth:k.borderWidths("borderBlockStartWidth"),borderTopColor:k.colors("borderTopColor"),borderBlockStartColor:k.colors("borderBlockStartColor"),borderTopStyle:k.borderStyles("borderTopStyle"),borderBlockStartStyle:k.borderStyles("borderBlockStartStyle"),borderBottomWidth:k.borderWidths("borderBottomWidth"),borderBlockEndWidth:k.borderWidths("borderBlockEndWidth"),borderBottomColor:k.colors("borderBottomColor"),borderBlockEndColor:k.colors("borderBlockEndColor"),borderBottomStyle:k.borderStyles("borderBottomStyle"),borderBlockEndStyle:k.borderStyles("borderBlockEndStyle"),borderLeftWidth:k.borderWidths("borderLeftWidth"),borderInlineStartWidth:k.borderWidths("borderInlineStartWidth"),borderLeftColor:k.colors("borderLeftColor"),borderInlineStartColor:k.colors("borderInlineStartColor"),borderLeftStyle:k.borderStyles("borderLeftStyle"),borderInlineStartStyle:k.borderStyles("borderInlineStartStyle"),borderRightWidth:k.borderWidths("borderRightWidth"),borderInlineEndWidth:k.borderWidths("borderInlineEndWidth"),borderRightColor:k.colors("borderRightColor"),borderInlineEndColor:k.colors("borderInlineEndColor"),borderRightStyle:k.borderStyles("borderRightStyle"),borderInlineEndStyle:k.borderStyles("borderInlineEndStyle"),borderTopRadius:k.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:k.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:k.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:k.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(C,{rounded:C.borderRadius,roundedTop:C.borderTopRadius,roundedTopLeft:C.borderTopLeftRadius,roundedTopRight:C.borderTopRightRadius,roundedTopStart:C.borderStartStartRadius,roundedTopEnd:C.borderStartEndRadius,roundedBottom:C.borderBottomRadius,roundedBottomLeft:C.borderBottomLeftRadius,roundedBottomRight:C.borderBottomRightRadius,roundedBottomStart:C.borderEndStartRadius,roundedBottomEnd:C.borderEndEndRadius,roundedLeft:C.borderLeftRadius,roundedRight:C.borderRightRadius,roundedStart:C.borderInlineStartRadius,roundedEnd:C.borderInlineEndRadius,borderStart:C.borderInlineStart,borderEnd:C.borderInlineEnd,borderTopStartRadius:C.borderStartStartRadius,borderTopEndRadius:C.borderStartEndRadius,borderBottomStartRadius:C.borderEndStartRadius,borderBottomEndRadius:C.borderEndEndRadius,borderStartRadius:C.borderInlineStartRadius,borderEndRadius:C.borderInlineEndRadius,borderStartWidth:C.borderInlineStartWidth,borderEndWidth:C.borderInlineEndWidth,borderStartColor:C.borderInlineStartColor,borderEndColor:C.borderInlineEndColor,borderStartStyle:C.borderInlineStartStyle,borderEndStyle:C.borderInlineEndStyle});var _={color:k.colors("color"),textColor:k.colors("color"),fill:k.colors("fill"),stroke:k.colors("stroke")},P={boxShadow:k.shadows("boxShadow"),mixBlendMode:!0,blendMode:k.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:k.prop("backgroundBlendMode"),opacity:!0};Object.assign(P,{shadow:P.boxShadow});var E={filter:{transform:w.filter},blur:k.blur("--chakra-blur"),brightness:k.propT("--chakra-brightness",w.brightness),contrast:k.propT("--chakra-contrast",w.contrast),hueRotate:k.degreeT("--chakra-hue-rotate"),invert:k.propT("--chakra-invert",w.invert),saturate:k.propT("--chakra-saturate",w.saturate),dropShadow:k.propT("--chakra-drop-shadow",w.dropShadow),backdropFilter:{transform:w.backdropFilter},backdropBlur:k.blur("--chakra-backdrop-blur"),backdropBrightness:k.propT("--chakra-backdrop-brightness",w.brightness),backdropContrast:k.propT("--chakra-backdrop-contrast",w.contrast),backdropHueRotate:k.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:k.propT("--chakra-backdrop-invert",w.invert),backdropSaturate:k.propT("--chakra-backdrop-saturate",w.saturate)},A={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:w.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:k.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:k.space("gap"),rowGap:k.space("rowGap"),columnGap:k.space("columnGap")};Object.assign(A,{flexDir:A.flexDirection});var R={gridGap:k.space("gridGap"),gridColumnGap:k.space("gridColumnGap"),gridRowGap:k.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},T={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:w.outline},outlineOffset:!0,outlineColor:k.colors("outlineColor")},j={width:k.sizesT("width"),inlineSize:k.sizesT("inlineSize"),height:k.sizes("height"),blockSize:k.sizes("blockSize"),boxSize:k.sizes(["width","height"]),minWidth:k.sizes("minWidth"),minInlineSize:k.sizes("minInlineSize"),minHeight:k.sizes("minHeight"),minBlockSize:k.sizes("minBlockSize"),maxWidth:k.sizes("maxWidth"),maxInlineSize:k.sizes("maxInlineSize"),maxHeight:k.sizes("maxHeight"),maxBlockSize:k.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;return{[`@media screen and (min-width: ${null!=(o=null==(n=null==(r=t.__breakpoints)?void 0:r.get(e))?void 0:n.minW)?o:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;return{[`@media screen and (max-width: ${null!=(o=null==(n=null==(r=t.__breakpoints)?void 0:r.get(e))?void 0:n._minW)?o:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:k.propT("float",w.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(j,{w:j.width,h:j.height,minW:j.minWidth,maxW:j.maxWidth,minH:j.minHeight,maxH:j.maxHeight,overscroll:j.overscrollBehavior,overscrollX:j.overscrollBehaviorX,overscrollY:j.overscrollBehaviorY});var D={listStyleType:!0,listStylePosition:!0,listStylePos:k.prop("listStylePosition"),listStyleImage:!0,listStyleImg:k.prop("listStyleImage")};var $=(e=>{const t=new WeakMap;return(r,n,o,i)=>{if(void 0===r)return e(r,n,o);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(n))return a.get(n);const s=e(r,n,o,i);return a.set(n,s),s}})((function(e,t,r,n){const o="string"==typeof t?t.split("."):[t];for(n=0;n{const n={},o=$(e,t,{});for(const i in o){i in r&&null!=r[i]||(n[i]=o[i])}return n},O={srOnly:{transform(e){return!0===e?z:"focusable"===e?M:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>B(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>B(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>B(t,e,r)}},I={position:!0,pos:k.prop("position"),zIndex:k.prop("zIndex","zIndices"),inset:k.spaceT("inset"),insetX:k.spaceT(["left","right"]),insetInline:k.spaceT("insetInline"),insetY:k.spaceT(["top","bottom"]),insetBlock:k.spaceT("insetBlock"),top:k.spaceT("top"),insetBlockStart:k.spaceT("insetBlockStart"),bottom:k.spaceT("bottom"),insetBlockEnd:k.spaceT("insetBlockEnd"),left:k.spaceT("left"),insetInlineStart:k.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:k.spaceT("right"),insetInlineEnd:k.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(I,{insetStart:I.insetInlineStart,insetEnd:I.insetInlineEnd});var L={ring:{transform:w.ring},ringColor:k.colors("--chakra-ring-color"),ringOffset:k.prop("--chakra-ring-offset-width"),ringOffsetColor:k.colors("--chakra-ring-offset-color"),ringInset:k.prop("--chakra-ring-inset")},F={margin:k.spaceT("margin"),marginTop:k.spaceT("marginTop"),marginBlockStart:k.spaceT("marginBlockStart"),marginRight:k.spaceT("marginRight"),marginInlineEnd:k.spaceT("marginInlineEnd"),marginBottom:k.spaceT("marginBottom"),marginBlockEnd:k.spaceT("marginBlockEnd"),marginLeft:k.spaceT("marginLeft"),marginInlineStart:k.spaceT("marginInlineStart"),marginX:k.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:k.spaceT("marginInline"),marginY:k.spaceT(["marginTop","marginBottom"]),marginBlock:k.spaceT("marginBlock"),padding:k.space("padding"),paddingTop:k.space("paddingTop"),paddingBlockStart:k.space("paddingBlockStart"),paddingRight:k.space("paddingRight"),paddingBottom:k.space("paddingBottom"),paddingBlockEnd:k.space("paddingBlockEnd"),paddingLeft:k.space("paddingLeft"),paddingInlineStart:k.space("paddingInlineStart"),paddingInlineEnd:k.space("paddingInlineEnd"),paddingX:k.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:k.space("paddingInline"),paddingY:k.space(["paddingTop","paddingBottom"]),paddingBlock:k.space("paddingBlock")};Object.assign(F,{m:F.margin,mt:F.marginTop,mr:F.marginRight,me:F.marginInlineEnd,marginEnd:F.marginInlineEnd,mb:F.marginBottom,ml:F.marginLeft,ms:F.marginInlineStart,marginStart:F.marginInlineStart,mx:F.marginX,my:F.marginY,p:F.padding,pt:F.paddingTop,py:F.paddingY,px:F.paddingX,pb:F.paddingBottom,pl:F.paddingLeft,ps:F.paddingInlineStart,paddingStart:F.paddingInlineStart,pr:F.paddingRight,pe:F.paddingInlineEnd,paddingEnd:F.paddingInlineEnd});var V={textDecorationColor:k.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:k.shadows("textShadow")},N={clipPath:!0,transform:k.propT("transform",w.transform),transformOrigin:!0,translateX:k.spaceT("--chakra-translate-x"),translateY:k.spaceT("--chakra-translate-y"),skewX:k.degreeT("--chakra-skew-x"),skewY:k.degreeT("--chakra-skew-y"),scaleX:k.prop("--chakra-scale-x"),scaleY:k.prop("--chakra-scale-y"),scale:k.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:k.degreeT("--chakra-rotate")},W={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:k.prop("transitionDuration","transition.duration"),transitionProperty:k.prop("transitionProperty","transition.property"),transitionTimingFunction:k.prop("transitionTimingFunction","transition.easing")},H={fontFamily:k.prop("fontFamily","fonts"),fontSize:k.prop("fontSize","fontSizes",w.px),fontWeight:k.prop("fontWeight","fontWeights"),lineHeight:k.prop("lineHeight","lineHeights"),letterSpacing:k.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(!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"}},U={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:k.spaceT("scrollMargin"),scrollMarginTop:k.spaceT("scrollMarginTop"),scrollMarginBottom:k.spaceT("scrollMarginBottom"),scrollMarginLeft:k.spaceT("scrollMarginLeft"),scrollMarginRight:k.spaceT("scrollMarginRight"),scrollMarginX:k.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:k.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:k.spaceT("scrollPadding"),scrollPaddingTop:k.spaceT("scrollPaddingTop"),scrollPaddingBottom:k.spaceT("scrollPaddingBottom"),scrollPaddingLeft:k.spaceT("scrollPaddingLeft"),scrollPaddingRight:k.spaceT("scrollPaddingRight"),scrollPaddingX:k.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:k.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function q(e){return(0,n.Kn)(e)&&e.reference?e.reference:String(e)}var G=(e,...t)=>t.map(q).join(` ${e} `).replace(/calc/g,""),Z=(...e)=>`calc(${G("+",...e)})`,J=(...e)=>`calc(${G("-",...e)})`,Y=(...e)=>`calc(${G("*",...e)})`,X=(...e)=>`calc(${G("/",...e)})`,K=e=>{const t=q(e);return null==t||Number.isNaN(parseFloat(t))?Y(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},Q=Object.assign((e=>({add:(...t)=>Q(Z(e,...t)),subtract:(...t)=>Q(J(e,...t)),multiply:(...t)=>Q(Y(e,...t)),divide:(...t)=>Q(X(e,...t)),negate:()=>Q(K(e)),toString:()=>e.toString()})),{add:Z,subtract:J,multiply:Y,divide:X,negate:K});function ee(e){return function(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}(function(e){if(e.includes("\\."))return e;const t=!Number.isInteger(parseFloat(e.toString()));return t?e.replace(".","\\."):e}(function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString())))}function te(e,t){return`var(${e}${t?`, ${t}`:""})`}function re(e,t=""){return ee(`--${function(e,t=""){return[t,e].filter(Boolean).join("-")}(e,t)}`)}function ne(e,t,r){const n=re(e,r);return{variable:n,reference:te(n,t)}}function oe(e,t){const r={};for(const n of t)if(Array.isArray(n)){const[t,o]=n;r[t]=ne(`${e}-${t}`,o)}else r[n]=ne(`${e}-${n}`);return r}function ie(e){const t=null==e?0:e.length;return t?e[t-1]:void 0}function ae(e){if(null==e)return e;const{unitless:t}=function(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}(e);return t||"number"==typeof e?`${e}px`:e}var se=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,le=e=>Object.fromEntries(Object.entries(e).sort(se));function ce(e){const t=le(e);return Object.assign(Object.values(t),t)}function ue(e){var t;if(!e)return e;e=null!=(t=ae(e))?t:e;return"number"==typeof e?`${e+-.02}`:e.replace(/(\d+\.?\d*)/u,(e=>`${parseFloat(e)+-.02}`))}function de(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${ae(e)})`),t&&r.push("and",`(max-width: ${ae(t)})`),r.join(" ")}function he(e){var t;if(!e)return null;e.base=null!=(t=e.base)?t:"0px";const r=ce(e),o=Object.entries(e).sort(se).map((([e,t],r,n)=>{var o;let[,i]=null!=(o=n[r+1])?o:[];return i=parseFloat(i)>0?ue(i):void 0,{_minW:ue(t),breakpoint:e,minW:t,maxW:i,maxWQuery:de(null,i),minWQuery:de(t),minMaxQuery:de(t,i)}})),i=function(e){const t=Object.keys(le(e));return new Set(t)}(e),a=Array.from(i.values());return{keys:i,normalized:r,isResponsive(e){const t=Object.keys(e);return t.length>0&&t.every((e=>i.has(e)))},asObject:le(e),asArray:ce(e),details:o,get(e){return o.find((t=>t.breakpoint===e))},media:[null,...r.map((e=>de(e))).slice(1)],toArrayValue(e){if(!(0,n.Kn)(e))throw new Error("toArrayValue: value must be an object");const t=a.map((t=>{var r;return null!=(r=e[t])?r:null}));for(;null===ie(t);)t.pop();return t},toObjectValue(e){if(!Array.isArray(e))throw new Error("toObjectValue: value must be an array");return e.reduce(((e,t,r)=>{const n=a[r];return null!=n&&null!=t&&(e[n]=t),e}),{})}}}var pe=(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,fe=(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,me=(e,t)=>`${e}:focus-visible ${t}`,ge=(e,t)=>`${e}:focus-within ${t}`,ve=(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,be=(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,ye=(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,xe=(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,we=(e,t)=>`${e}:placeholder-shown ${t}`,ke=e=>Ce((t=>e(t,"&")),"[role=group]","[data-group]",".group"),Se=e=>Ce((t=>e(t,"~ &")),"[data-peer]",".peer"),Ce=(e,...t)=>t.map(e).join(", "),_e={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:ke(pe),_peerHover:Se(pe),_groupFocus:ke(fe),_peerFocus:Se(fe),_groupFocusVisible:ke(me),_peerFocusVisible:Se(me),_groupActive:ke(ve),_peerActive:Se(ve),_groupDisabled:ke(be),_peerDisabled:Se(be),_groupInvalid:ke(ye),_peerInvalid:Se(ye),_groupChecked:ke(xe),_peerChecked:Se(xe),_groupFocusWithin:ke(ge),_peerFocusWithin:Se(ge),_peerPlaceholderShown:Se(we),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},Pe=Object.keys(_e);function Ee(e,t){return ne(String(e).replace(/\./g,"-"),void 0,t)}function Ae(e,t,r={}){const{stop:n,getKey:o}=r;return function e(r,i=[]){var a;if(function(e){return"object"==typeof e&&null!=e&&!Array.isArray(e)}(r)||Array.isArray(r)){const s={};for(const[l,c]of Object.entries(r)){const u=null!=(a=null==o?void 0:o(l))?a:l,d=[...i,u];if(null==n?void 0:n(r,d))return t(r,i);s[u]=e(c,d)}return s}return t(r,i)}(e)}var Re=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];var Te=e=>Pe.includes(e)||"default"===e;function je(e){var t;const r=function(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...o}=e;return o}(e),i=function(e){return function(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}(e,Re)}(r),a=function(e){return e.semanticTokens}(r),s=function({tokens:e,semanticTokens:t}){const r={};return Ae(e,((e,t)=>{null!=e&&(r[t.join(".")]={isSemantic:!1,value:e})})),Ae(t,((e,t)=>{null!=e&&(r[t.join(".")]={isSemantic:!0,value:e})}),{stop:e=>Object.keys(e).every(Te)}),r}({tokens:i,semanticTokens:a}),l=null==(t=r.config)?void 0:t.cssVarPrefix,{cssMap:c,cssVars:u}=function(e,t){let r={};const i={};for(const[a,s]of Object.entries(e)){const{isSemantic:l,value:c}=s,{variable:u,reference:d}=Ee(a,null==t?void 0:t.cssVarPrefix);if(!l){if(a.startsWith("space")){const e=a.split("."),[t,...r]=e,n=`${t}.-${r.join(".")}`,o=Q.negate(c),s=Q.negate(d);i[n]={value:o,var:u,varRef:s}}r[u]=c,i[a]={value:c,var:u,varRef:d};continue}const h=r=>{const n=[String(a).split(".")[0],r].join(".");if(!e[n])return r;const{reference:o}=Ee(n,null==t?void 0:t.cssVarPrefix);return o},p=(0,n.Kn)(c)?c:{default:c};r=o(r,Object.entries(p).reduce(((e,[t,r])=>{var n,o;if(!r)return e;const i=h(`${r}`);return"default"===t?(e[u]=i,e):(e[null!=(o=null==(n=_e)?void 0:n[t])?o:t]={[u]:i},e)}),{})),i[a]={value:d,var:u,varRef:d}}return{cssVars:r,cssMap:i}}(s,{cssVarPrefix:l});return Object.assign(r,{__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",...u},__cssMap:c,__breakpoints:he(r.breakpoints)}),r}var De=o({},S,C,_,A,j,E,L,T,R,O,I,P,F,U,H,V,N,D,W),$e=Object.assign({},F,j,A,R,I),ze=(Object.keys($e),[...Object.keys(De),...Pe]),Me={...De,..._e},Be=e=>e in Me;var Oe=(e,t)=>e.startsWith("--")&&"string"==typeof t&&!function(e){return/^var\(--.+\)$/.test(e)}(t),Ie=(e,t)=>{var r,n;if(null==t)return t;const o=t=>{var r,n;return null==(n=null==(r=e.__cssMap)?void 0:r[t])?void 0:n.varRef},i=e=>{var t;return null!=(t=o(e))?t:e},[a,s]=function(e){const t=[];let r="",n=!1;for(let o=0;o{var l,c,u;const d=(0,n.Pu)(e,i),h=(e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:o,media:i}=t.__breakpoints,a={};for(const s in e){let l=(0,n.Pu)(e[s],t);if(null==l)continue;if(l=(0,n.Kn)(l)&&r(l)?o(l):l,!Array.isArray(l)){a[s]=l;continue}const c=l.slice(0,i.length).length;for(let e=0;et=>Le({theme:t,pseudos:_e,configs:De})(e);function Ve(e){return e}function Ne(e){return e}function We(e){return{definePartsStyle(e){return e},defineMultiStyleConfig(t){return{parts:e,...t}}}}function He(e,t){for(let r=t+1;r{o(c,{[e]:h?g[e]:{[m]:g[e]}})})):p?c[m]=g:h?o(c,g):c[m]=g)}return c}}function qe(e){return t=>{var r;const{variant:i,size:a,theme:s}=t,l=Ue(s);return o({},(0,n.Pu)(null!=(r=e.baseStyle)?r:{},t),l(e,"sizes",a,t),l(e,"variants",i,t))}}function Ge(e){return function(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}(e,["styleConfig","size","variant","colorScheme"])}},9252:function(e,t,r){"use strict";r.d(t,{m:function(){return R}});var n=r(3179),o=new Set([...n.cC,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),i=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function a(e){return i.has(e)||!o.has(e)}var s=r(2498),l=r(1759),c=r(696);r(434);var u=r(7294),d=r(7462),h=r(1068),p=r(916),f=r(444),m=r(6797),g=r(7278),v=h.Z,b=function(e){return"theme"!==e},y=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?v:b},x=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},w=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;(0,f.hC)(t,r,n);(0,g.L)((function(){return(0,f.My)(t,r,n)}));return null},k=function e(t,r){var n,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==r&&(n=r.label,o=r.target);var s=x(t,r,i),l=s||y(a),c=!l("as");return function(){var h=arguments,g=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&g.push("label:"+n+";"),null==h[0]||void 0===h[0].raw)g.push.apply(g,h);else{0,g.push(h[0][0]);for(var v=h.length,b=1;bt=>{const{theme:r,css:o,__css:i,sx:a,...s}=t,u=(0,l.lw)(s,((e,t)=>(0,n.ZR)(t))),d=function(e,...t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const n of t)if(null!=n)for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&(e in r&&delete r[e],r[e]=n[e]);return r}({},i,(0,c.Pu)(e,t),(0,l.YU)(u),a),h=(0,n.iv)(d)(t.theme);return o?[h,o]:h};function A(e,t){const{baseStyle:r,...n}=null!=t?t:{};n.shouldForwardProp||(n.shouldForwardProp=a);const o=E({baseStyle:r}),i=P(e,n)(o);return u.forwardRef((function(e,t){const{colorMode:r,forced:n}=(0,s.If)();return u.createElement(i,{ref:t,"data-theme":n?r:void 0,...e})}))}var R=function(){const e=new Map;return new Proxy(A,{apply(e,t,r){return A(...r)},get(t,r){return e.has(r)||e.set(r,A(r)),e.get(r)}})}()},5059:function(e,t,r){"use strict";r.d(t,{G:function(){return o}});var n=r(7294);function o(e){return(0,n.forwardRef)(e)}},5490:function(e,t,r){"use strict";r.d(t,{jC:function(){return p},mq:function(){return h}});var n=r(916),o=r(7294);var i=r(2498);function a(){return{...(0,i.If)(),theme:function(){const e=(0,o.useContext)(n.T);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}()}}var s=r(3179),l=r(1759),c=r(8554),u=r(9590);function d(e,t={}){var r;const{styleConfig:n,...i}=t,{theme:d,colorMode:h}=a(),p=e?(0,l.Wf)(d,`components.${e}`):void 0,f=n||p,m=c({theme:d,colorMode:h},null!=(r=null==f?void 0:f.defaultProps)?r:{},(0,l.YU)((0,l.CE)(i,["children"]))),g=(0,o.useRef)({});if(f){const e=(0,s.Ud)(f)(m);u(g.current,e)||(g.current=e)}return g.current}function h(e,t={}){return d(e,t)}function p(e,t={}){return d(e,t)}},696:function(e,t,r){"use strict";r.d(t,{Pu:function(){return n}});function n(e,...t){return"function"==typeof e?e(...t):e}},1759:function(e,t,r){"use strict";r.d(t,{CE:function(){return n},Wf:function(){return o},YU:function(){return a},lw:function(){return i}});r(8554);function n(e,t){const r={};return Object.keys(e).forEach((n=>{t.includes(n)||(r[n]=e[n])})),r}var o=(e=>{const t=new WeakMap;return(r,n,o,i)=>{if(void 0===r)return e(r,n,o);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(n))return a.get(n);const s=e(r,n,o,i);return a.set(n,s),s}})((function(e,t,r,n){const o="string"==typeof t?t.split("."):[t];for(n=0;n{const o=e[n];t(o,n,e)&&(r[n]=o)})),r}var a=e=>i(e,(e=>null!=e))},7896:function(e,t,r){"use strict";var n;r.r(t),r.d(t,{BaseContext:function(){return g},Link:function(){return G},Location:function(){return K},LocationContext:function(){return v},LocationProvider:function(){return X},Match:function(){return ee},Redirect:function(){return C},Router:function(){return se},ServerLocation:function(){return Q},createHistory:function(){return u},createMemorySource:function(){return d},globalHistory:function(){return p},insertParams:function(){return R},isRedirect:function(){return w},match:function(){return E},navigate:function(){return f},pick:function(){return P},redirectTo:function(){return k},resolve:function(){return A},shallowCompare:function(){return L},startsWith:function(){return _},useBaseContext:function(){return b},useLocation:function(){return ce},useLocationContext:function(){return y},useMatch:function(){return he},useNavigate:function(){return ue},useParams:function(){return de},validateRedirect:function(){return T}});var o=r(7294),i=r(5697),a=r(1143);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[r]=e[r]);return o}const c=e=>{const{search:t,hash:r,href:n,origin:o,protocol:i,host:a,hostname:s,port:l}=e.location;let{pathname:c}=e.location;return!c&&n&&h&&(c=new URL(n).pathname),{pathname:encodeURI(decodeURI(c)),search:t,hash:r,href:n,origin:o,protocol:i,host:a,hostname:s,port:l,state:e.history.state,key:e.history.state&&e.history.state.key||"initial"}},u=(e,t)=>{let r=[],n=c(e),o=!1,i=()=>{};return{get location(){return n},get transitioning(){return o},_onTransitionComplete(){o=!1,i()},listen(t){r.push(t);const o=()=>{n=c(e),t({location:n,action:"POP"})};return e.addEventListener("popstate",o),()=>{e.removeEventListener("popstate",o),r=r.filter((e=>e!==t))}},navigate(t,{state:a,replace:l=!1}={}){if("number"==typeof t)e.history.go(t);else{a=s({},a,{key:Date.now()+""});try{o||l?e.history.replaceState(a,null,t):e.history.pushState(a,null,t)}catch(r){e.location[l?"replace":"assign"](t)}}n=c(e),o=!0;const u=new Promise((e=>i=e));return r.forEach((e=>e({location:n,action:"PUSH"}))),u}}},d=(e="/")=>{const t=e.indexOf("?"),r={pathname:t>-1?e.substr(0,t):e,search:t>-1?e.substr(t):""};let n=0;const o=[r],i=[null];return{get location(){return o[n]},addEventListener(e,t){},removeEventListener(e,t){},history:{get entries(){return o},get index(){return n},get state(){return i[n]},pushState(e,t,r){const[a,s=""]=r.split("?");n++,o.push({pathname:a,search:s.length?`?${s}`:s}),i.push(e)},replaceState(e,t,r){const[a,s=""]=r.split("?");o[n]={pathname:a,search:s},i[n]=e},go(e){const t=n+e;t<0||t>i.length-1||(n=t)}}}},h=!("undefined"==typeof window||!window.document||!window.document.createElement),p=u(h?window:d()),{navigate:f}=p;function m(e,t){return o.createServerContext?((e,t=null)=>(globalThis.__SERVER_CONTEXT||(globalThis.__SERVER_CONTEXT={}),globalThis.__SERVER_CONTEXT[e]||(globalThis.__SERVER_CONTEXT[e]=o.createServerContext(e,t)),globalThis.__SERVER_CONTEXT[e]))(e,t):o.createContext(t)}const g=m("Base",{baseuri:"/",basepath:"/"}),v=m("Location"),b=()=>o.useContext(g),y=()=>o.useContext(v);function x(e){this.uri=e}const w=e=>e instanceof x,k=e=>{throw new x(e)};function S(e){const{to:t,replace:r=!0,state:n,noThrow:i,baseuri:a}=e;o.useEffect((()=>{Promise.resolve().then((()=>{const o=A(t,a);f(R(o,e),{replace:r,state:n})}))}),[]);const s=A(t,a);return i||k(R(s,e)),null}const C=e=>{const t=y(),{baseuri:r}=b();return o.createElement(S,s({},t,{baseuri:r},e))};C.propTypes={from:i.string,to:i.string.isRequired};const _=(e,t)=>e.substr(0,t.length)===t,P=(e,t)=>{let r,n;const[o]=t.split("?"),i=B(o),s=""===i[0],l=M(e);for(let c=0,u=l.length;c dynamic segment "${n[1]}" is a reserved name. Please use a different name in path "${o.path}".`);const t=decodeURIComponent(r);d[n[1]]=t}else if(t!==r){e=!0;break}}if(!e){r={route:o,params:d,uri:"/"+i.slice(0,p).join("/")};break}}return r||n||null},E=(e,t)=>P([{path:e}],t),A=(e,t)=>{if(_(e,"/"))return e;const[r,n]=e.split("?"),[o]=t.split("?"),i=B(r),a=B(o);if(""===i[0])return O(o,n);if(!_(i[0],".")){const e=a.concat(i).join("/");return O(("/"===o?"":"/")+e,n)}const s=a.concat(i),l=[];for(let c=0,u=s.length;c{const[r,n=""]=e.split("?");let o="/"+B(r).map((e=>{const r=j.exec(e);return r?t[r[1]]:e})).join("/");const{location:{search:i=""}={}}=t,a=i.split("?")[1]||"";return o=O(o,n,a),o},T=(e,t)=>{const r=e=>D(e);return B(e).filter(r).sort().join("/")===B(t).filter(r).sort().join("/")},j=/^:(.+)/,D=e=>j.test(e),$=e=>e&&"*"===e[0],z=(e,t)=>({route:e,score:e.default?0:B(e.path).reduce(((e,t)=>(e+=4,(e=>""===e)(t)?e+=1:D(t)?e+=2:$(t)?e-=5:e+=3,e)),0),index:t}),M=e=>e.map(z).sort(((e,t)=>e.scoret.score?-1:e.index-t.index)),B=e=>e.replace(/(^\/+|\/+$)/g,"").split("/"),O=(e,...t)=>e+((t=t.filter((e=>e&&e.length>0)))&&t.length>0?`?${t.join("&")}`:""),I=["uri","path"],L=(e,t)=>{const r=Object.keys(e);return r.length===Object.keys(t).length&&r.every((r=>t.hasOwnProperty(r)&&e[r]===t[r]))},F=e=>e.replace(/(^\/+|\/+$)/g,""),V=e=>t=>{if(!t)return null;if(t.type===o.Fragment&&t.props.children)return o.Children.map(t.props.children,V(e));if(a(t.props.path||t.props.default||t.type===C,`: Children of must have a \`path\` or \`default\` prop, or be a \`\`. None found on element type \`${t.type}\``),a(!!(t.type!==C||t.props.from&&t.props.to),` requires both "from" and "to" props when inside a .`),a(!(t.type===C&&!T(t.props.from,t.props.to)),` has mismatched dynamic segments, ensure both paths have the exact same dynamic segments.`),t.props.default)return{value:t,default:!0};const r=t.type===C?t.props.from:t.props.path,n="/"===r?e:`${F(e)}/${F(r)}`;return{value:t,default:t.props.default,path:t.props.children?`${F(n)}/*`:n}},N=["innerRef"],W=["to","state","replace","getProps"],H=["key"];let{forwardRef:U}=n||(n=r.t(o,2));void 0===U&&(U=e=>e);const q=()=>{},G=U(((e,t)=>{let{innerRef:r}=e,n=l(e,N);const{baseuri:i}=b(),{location:a}=y(),{to:c,state:u,replace:d,getProps:h=q}=n,p=l(n,W),m=A(c,i),g=encodeURI(m),v=a.pathname===g,x=_(a.pathname,g);return o.createElement("a",s({ref:t||r,"aria-current":v?"page":void 0},p,h({isCurrent:v,isPartiallyCurrent:x,href:m,location:a}),{href:m,onClick:e=>{if(p.onClick&&p.onClick(e),(e=>!e.defaultPrevented&&0===e.button&&!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey))(e)){e.preventDefault();let t=d;if("boolean"!=typeof d&&v){const e=l(s({},a.state),H);t=L(s({},u),e)}f(m,{state:u,replace:t})}}}))}));G.displayName="Link",G.propTypes={to:i.string.isRequired};class Z extends o.Component{constructor(...e){super(...e),this.displayName="ReactUseErrorBoundary"}componentDidCatch(...e){this.setState({}),this.props.onError(...e)}render(){return this.props.children}}const J=o.createContext({componentDidCatch:{current:void 0},error:void 0,setError:()=>!1});function Y({children:e}){const[t,r]=o.useState(),n=o.useRef(),i=o.useMemo((()=>({componentDidCatch:n,error:t,setError:r})),[t]);return o.createElement(J.Provider,{value:i},o.createElement(Z,{error:t,onError:(e,t)=>{r(e),null==n.current||n.current(e,t)}},e))}Y.displayName="ReactUseErrorBoundaryContext";const X=function(e){var t,r;function n(t){return o.createElement(Y,null,o.createElement(e,s({key:"WrappedComponent"},t)))}return n.displayName=`WithErrorBoundary(${null!=(t=null!=(r=e.displayName)?r:e.name)?t:"Component"})`,n}((({history:e=p,children:t})=>{const{location:r}=e,[n,i]=o.useState({location:r}),[a]=function(e){const t=o.useContext(J);t.componentDidCatch.current=void 0;const r=o.useCallback((()=>{t.setError(void 0)}),[]);return[t.error,r]}();if(o.useEffect((()=>{e._onTransitionComplete()}),[n.location]),o.useEffect((()=>{let t=!1;const r=e.listen((({location:e})=>{Promise.resolve().then((()=>{requestAnimationFrame((()=>{t||i({location:e})}))}))}));return()=>{t=!0,r()}}),[]),a){if(!w(a))throw a;f(a.uri,{replace:!0})}return o.createElement(v.Provider,{value:n},"function"==typeof t?t(n):t||null)})),K=({children:e})=>{const t=y();return t?e(t):o.createElement(X,null,e)},Q=({url:e,children:t})=>{const r=e.indexOf("?");let n,i="";return r>-1?(n=e.substring(0,r),i=e.substring(r)):n=e,o.createElement(v.Provider,{value:{location:{pathname:n,search:i,hash:""}}},t)},ee=({path:e,children:t})=>{const{baseuri:r}=b(),{location:n}=y(),o=A(e,r),i=E(o,n.pathname);return t({location:n,match:i?s({},i.params,{uri:i.uri,path:e}):null})},te=["uri","location","component"],re=["children","style","component","uri","location"],ne=e=>{let{uri:t,location:r,component:n}=e,i=l(e,te);return o.createElement(ie,s({},i,{component:n,uri:t,location:r}))};let oe=0;const ie=e=>{let{children:t,style:r,component:n="div",uri:i,location:a}=e,c=l(e,re);const u=o.useRef(),d=o.useRef(!0),h=o.useRef(i),p=o.useRef(a.pathname),f=o.useRef(!1);o.useEffect((()=>(oe++,m(),()=>{oe--,0===oe&&(d.current=!0)})),[]),o.useEffect((()=>{let e=!1,t=!1;i!==h.current&&(h.current=i,e=!0),a.pathname!==p.current&&(p.current=a.pathname,t=!0),f.current=e||t&&a.pathname===i,f.current&&m()}),[i,a]);const m=o.useCallback((()=>{var e;d.current?d.current=!1:(e=u.current,f.current&&e&&e.focus())}),[]);return o.createElement(n,s({style:s({outline:"none"},r),tabIndex:"-1",ref:u},c),t)},ae=["location","primary","children","basepath","baseuri","component"],se=e=>{const t=b(),r=y();return o.createElement(le,s({},t,r,e))};function le(e){const{location:t,primary:r=!0,children:n,basepath:i,component:a="div"}=e,c=l(e,ae),u=o.Children.toArray(n).reduce(((e,t)=>{const r=V(i)(t);return e.concat(r)}),[]),{pathname:d}=t,h=P(u,d);if(h){const{params:e,uri:n,route:l,route:{value:u}}=h,d=l.default?i:l.path.replace(/\*$/,""),p=s({},e,{uri:n,location:t}),f=o.cloneElement(u,p,u.props.children?o.createElement(se,{location:t,primary:r},u.props.children):void 0),m=r?ne:a,v=r?s({uri:n,location:t,component:a},c):c;return o.createElement(g.Provider,{value:{baseuri:n,basepath:d}},o.createElement(m,v,f))}return null}const ce=()=>{const e=y();if(!e)throw new Error("useLocation hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");return e.location},ue=()=>{throw new Error("useNavigate is removed. Use import { navigate } from 'gatsby' instead")},de=()=>{const e=b();if(!e)throw new Error("useParams hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");const t=ce(),r=E(e.basepath,t.pathname);return r?r.params:null},he=e=>{if(!e)throw new Error("useMatch(path: string) requires an argument of a string to match against");const t=b();if(!t)throw new Error("useMatch hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");const r=ce(),n=A(e,t.baseuri),o=E(n,r.pathname);return o?s({},o.params,{uri:o.uri,path:e}):null}},1562:function(e,t,r){"use strict";r.d(t,{c4:function(){return k},cP:function(){return l},rU:function(){return w}});var n=r(5697),o=r(7294),i=r(7896),a=r(4506);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t{if("string"==typeof e)return!(e=>c.test(e))(e)},d=()=>"",h=()=>"";function p(e,t=d()){var r;if(!u(e))return e;if(e.startsWith("./")||e.startsWith("../"))return e;const n=null!=(r=null!=t?t:h())?r:"/";return`${null!=n&&n.endsWith("/")?n.slice(0,-1):n}${e.startsWith("/")?e:`/${e}`}`}const f=e=>null==e?void 0:e.startsWith("/");function m(e,t){const{pathname:r,search:n,hash:o}=l(e);return`${(0,a.H)(r,t)}${n}${o}`}const g=(e,t)=>"number"==typeof e?e:u(e)?f(e)?function(e){const t=p(e),r="always";return m(t,r)}(e):function(e,t){if(f(e))return e;const r="always",n=(0,i.resolve)(e,t);return m(n,r)}(e,t):e,v=["to","getProps","onClick","onMouseEnter","activeClassName","activeStyle","innerRef","partiallyActive","state","replace","_location"];const b={activeClassName:n.string,activeStyle:n.object,partiallyActive:n.bool};function y(e){return o.createElement(i.Location,null,(({location:t})=>o.createElement(x,s({},e,{_location:t}))))}class x extends o.Component{constructor(e){super(e),this.defaultGetProps=({isPartiallyCurrent:e,isCurrent:t})=>(this.props.partiallyActive?e:t)?{className:[this.props.className,this.props.activeClassName].filter(Boolean).join(" "),style:s({},this.props.style,this.props.activeStyle)}:null;let t=!1;"undefined"!=typeof window&&window.IntersectionObserver&&(t=!0),this.state={IOSupported:t},this.abortPrefetch=null,this.handleRef=this.handleRef.bind(this)}_prefetch(){let e=window.location.pathname+window.location.search;this.props._location&&this.props._location.pathname&&(e=this.props._location.pathname+this.props._location.search);const t=l(g(this.props.to,e)),r=t.pathname+t.search;if(e!==r)return ___loader.enqueue(r)}componentWillUnmount(){if(!this.io)return;const{instance:e,el:t}=this.io;this.abortPrefetch&&this.abortPrefetch.abort(),e.unobserve(t),e.disconnect()}handleRef(e){this.props.innerRef&&Object.prototype.hasOwnProperty.call(this.props.innerRef,"current")?this.props.innerRef.current=e:this.props.innerRef&&this.props.innerRef(e),this.state.IOSupported&&e&&(this.io=((e,t)=>{const r=new window.IntersectionObserver((r=>{r.forEach((r=>{e===r.target&&t(r.isIntersecting||r.intersectionRatio>0)}))}));return r.observe(e),{instance:r,el:e}})(e,(e=>{e?this.abortPrefetch=this._prefetch():this.abortPrefetch&&this.abortPrefetch.abort()})))}render(){const e=this.props,{to:t,getProps:r=this.defaultGetProps,onClick:n,onMouseEnter:a,state:c,replace:d,_location:h}=e,p=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,v),f=g(t,h.pathname);return u(f)?o.createElement(i.Link,s({to:f,state:c,getProps:r,innerRef:this.handleRef,onMouseEnter:e=>{a&&a(e);const t=l(f);___loader.hovering(t.pathname+t.search)},onClick:e=>{if(n&&n(e),!(0!==e.button||this.props.target||e.defaultPrevented||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)){e.preventDefault();let t=d;const r=encodeURI(f)===h.pathname;"boolean"!=typeof d&&r&&(t=!0),window.___navigate(f,{state:c,replace:t})}return!0}},p)):o.createElement("a",s({href:f},p))}}x.propTypes=s({},b,{onClick:n.func,to:n.string.isRequired,replace:n.bool,state:n.object});const w=o.forwardRef(((e,t)=>o.createElement(y,s({innerRef:t},e)))),k=(e,t)=>{window.___navigate(g(e,window.location.pathname),t)}},3521:function(e,t,r){"use strict";r.r(t),r.d(t,{Script:function(){return f},ScriptStrategy:function(){return c},collectedScriptsByPage:function(){return s},scriptCache:function(){return h},scriptCallbackCache:function(){return p}});var n=r(7294),o=r(7896);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.get(e)||[],set(e,t){const r=a.get(e)||[];r.push(t),a.set(e,r)},delete(e){a.delete(e)}},l="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){const t=Date.now();return setTimeout((function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)};var c,u;(u=c||(c={})).postHydrate="post-hydrate",u.idle="idle",u.offMainThread="off-main-thread";const d=new Set(["src","strategy","dangerouslySetInnerHTML","children","onLoad","onError"]),h=new Set,p=new Map;function f(e){return n.createElement(o.Location,null,(()=>n.createElement(m,e)))}function m(e){const{src:t,strategy:r=c.postHydrate}=e||{},{pathname:a}=(0,o.useLocation)();if((0,n.useEffect)((()=>{let t;switch(r){case c.postHydrate:t=g(e);break;case c.idle:l((()=>{t=g(e)}));break;case c.offMainThread:{const t=b(e);s.set(a,t)}}return()=>{const{script:e,loadCallback:r,errorCallback:n}=t||{};r&&(null==e||e.removeEventListener("load",r)),n&&(null==e||e.removeEventListener("error",n)),null==e||e.remove()}}),[]),r===c.offMainThread){const o=v(e),l=b(e);return"undefined"==typeof window&&s.set(a,l),n.createElement("script",o?i({type:"text/partytown","data-strategy":r,crossOrigin:"anonymous"},l,{dangerouslySetInnerHTML:{__html:v(e)}}):i({type:"text/partytown",src:y(t),"data-strategy":r,crossOrigin:"anonymous"},l))}return null}function g(e){const{id:t,src:r,strategy:n=c.postHydrate,onLoad:o,onError:a}=e||{},s=t||r,l=["load","error"],u={load:o,error:a};if(s){for(const e of l)if(null!=u&&u[e]){var d;const t=p.get(s)||{},{callbacks:r=[]}=(null==t?void 0:t[e])||{};var f,m;r.push(null==u?void 0:u[e]),null!=t&&null!=(d=t[e])&&d.event?null==u||null==(f=u[e])||f.call(u,null==t||null==(m=t[e])?void 0:m.event):p.set(s,i({},t,{[e]:{callbacks:r}}))}if(h.has(s))return null}const g=v(e),y=b(e),w=document.createElement("script");t&&(w.id=t),w.dataset.strategy=n;for(const[i,c]of Object.entries(y))w.setAttribute(i,c);g&&(w.textContent=g),r&&(w.src=r);const k={};if(s){for(const e of l){const t=t=>x(t,s,e);w.addEventListener(e,t),k[`${e}Callback`]=t}h.add(s)}return document.body.appendChild(w),{script:w,loadCallback:k.loadCallback,errorCallback:k.errorCallback}}function v(e){const{dangerouslySetInnerHTML:t,children:r=""}=e||{},{__html:n=""}=t||{};return n||r}function b(e){const t={};for(const[r,n]of Object.entries(e))d.has(r)||(t[r]=n);return t}function y(e){if(e)return`/__third-party-proxy?url=${encodeURIComponent(e)}`}function x(e,t,r){const n=p.get(t)||{};for(const i of(null==n||null==(o=n[r])?void 0:o.callbacks)||[]){var o;i(e)}p.set(t,{[r]:{event:e}})}}},function(e){e.O(0,[774],(function(){return t=5824,e(e.s=t);var t}));e.O()}]); //# sourceMappingURL=app-c0f2b17aef48842cf3be.js.map