uikit/dist/remote/demo-assets/AppHeaderPreview-DCi6BIdl.js
Mohamadzadeh 6555f89424
All checks were successful
Build and Deploy Next.js + Nginx Docker Image / build-and-deploy (push) Successful in 53s
Build and Deploy Next.js + Nginx Docker Image / deploy (push) Successful in 7s
fix pagination bug
2026-10-04 13:30:11 +03:30

378 lines
300 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{r as v,g as Su,c as Pr,R as bl,j as p,a as wu,b as ku,d as Ve,e as Qi,D as Ns,f as vl}from"./index-CGeO2iR0.js";function zp(){return!!globalThis?.document}function Bp(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&(o in n&&delete n[o],n[o]=r[o]);return n}const Ze=e=>e?"":void 0,mi=e=>e?!0:void 0;function Dp(e){return Array.isArray(e)}function Fe(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Dp(e)}function Ip(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function Vp(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function es(e){if(e==null)return e;const{unitless:t}=Vp(e);return t||typeof e=="number"?`${e}px`:e}const Cu=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,Hs=e=>Object.fromEntries(Object.entries(e).sort(Cu));function xl(e){const t=Hs(e);return Object.assign(Object.values(t),t)}function Fp(e){const t=Object.keys(Hs(e));return new Set(t)}function Sl(e){if(!e)return e;e=es(e)??e;const t=-.02;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+t}`)}function Bn(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${es(e)})`),t&&n.push("and",`(max-width: ${es(t)})`),n.join(" ")}function Lp(e){if(!e)return null;e.base=e.base??"0px";const t=xl(e),n=Object.entries(e).sort(Cu).map(([i,s],a,l)=>{let[,c]=l[a+1]??[];return c=parseFloat(c)>0?Sl(c):void 0,{_minW:Sl(s),breakpoint:i,minW:s,maxW:c,maxWQuery:Bn(null,c),minWQuery:Bn(s),minMaxQuery:Bn(s,c)}}),r=Fp(e),o=Array.from(r.values());return{keys:r,normalized:t,isResponsive(i){const s=Object.keys(i);return s.length>0&&s.every(a=>r.has(a))},asObject:Hs(e),asArray:xl(e),details:n,get(i){return n.find(s=>s.breakpoint===i)},media:[null,...t.map(i=>Bn(i)).slice(1)],toArrayValue(i){if(!Fe(i))throw new Error("toArrayValue: value must be an object");const s=o.map(a=>i[a]??null);for(;Ip(s)===null;)s.pop();return s},toObjectValue(i){if(!Array.isArray(i))throw new Error("toObjectValue: value must be an array");return i.reduce((s,a,l)=>{const c=o[l];return c!=null&&a!=null&&(s[c]=a),s},{})}}}function wl(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}function Op(e){return v.Children.toArray(e).filter(t=>v.isValidElement(t))}function Tu(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Wp(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function xt(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=v.createContext(s);a.displayName=t;function l(){const c=v.useContext(a);if(!c&&n){const u=new Error(i??Wp(r,o));throw u.name="ContextError",Error.captureStackTrace?.(u,l),u}return c}return[a.Provider,l,a]}const ve=(...e)=>e.filter(Boolean).join(" ");function Np(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r<o.length&&e;r+=1)e=e[o[r]];return e===void 0?n:e}const Hp=e=>{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(o))return a.get(o);const l=e(r,o,i,s);return a.set(o,l),l}},Pu=Hp(Np),Up=e=>e.default||e;function Gp(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function qp(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Us(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):Fe(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}const Kp=e=>typeof e=="function";function rt(e,...t){return Kp(e)?e(...t):e}function Xp(e,...t){const n=Object.getOwnPropertyDescriptors(e),r=Object.keys(n),o=s=>{const a={};for(let l=0;l<s.length;l++){const c=s[l];n[c]&&(Object.defineProperty(a,c,n[c]),delete n[c])}return a},i=s=>o(Array.isArray(s)?s:r.filter(s));return t.map(i).concat(o(r))}function kl(e,t,n={}){const{stop:r,getKey:o}=n;function i(s,a=[]){if(Fe(s)||Array.isArray(s)){const l={};for(const[c,u]of Object.entries(s)){const d=o?.(c)??c,h=[...a,d];if(r?.(s,h))return t(s,a);l[d]=i(u,h)}return l}return t(s,a)}return i(e)}var mo={exports:{}};mo.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=800,i=16,s=9007199254740991,a="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",u="[object Boolean]",d="[object Date]",h="[object Error]",m="[object Function]",y="[object GeneratorFunction]",g="[object Map]",S="[object Number]",w="[object Null]",C="[object Object]",T="[object Proxy]",P="[object RegExp]",R="[object Set]",_="[object String]",A="[object Undefined]",$="[object WeakMap]",D="[object ArrayBuffer]",j="[object DataView]",F="[object Float32Array]",ue="[object Float64Array]",Oe="[object Int8Array]",je="[object Int16Array]",We="[object Int32Array]",ze="[object Uint8Array]",Ka="[object Uint8ClampedArray]",de="[object Uint16Array]",Te="[object Uint32Array]",ut=/[\\^$.*+?()[\]{}|]/g,St=/^\[object .+?Constructor\]$/,ni=/^(?:0|[1-9]\d*)$/,te={};te[F]=te[ue]=te[Oe]=te[je]=te[We]=te[ze]=te[Ka]=te[de]=te[Te]=!0,te[a]=te[l]=te[D]=te[u]=te[j]=te[d]=te[h]=te[m]=te[g]=te[S]=te[C]=te[P]=te[R]=te[_]=te[$]=!1;var Xa=typeof Pr=="object"&&Pr&&Pr.Object===Object&&Pr,xh=typeof self=="object"&&self&&self.Object===Object&&self,Tn=Xa||xh||Function("return this")(),Ya=t&&!t.nodeType&&t,Pn=Ya&&!0&&e&&!e.nodeType&&e,Za=Pn&&Pn.exports===Ya,ri=Za&&Xa.process,Ja=function(){try{var f=Pn&&Pn.require&&Pn.require("util").types;return f||ri&&ri.binding&&ri.binding("util")}catch{}}(),Qa=Ja&&Ja.isTypedArray;function Sh(f,x,k){switch(k.length){case 0:return f.call(x);case 1:return f.call(x,k[0]);case 2:return f.call(x,k[0],k[1]);case 3:return f.call(x,k[0],k[1],k[2])}return f.apply(x,k)}function wh(f,x){for(var k=-1,M=Array(f);++k<f;)M[k]=x(k);return M}function kh(f){return function(x){return f(x)}}function Ch(f,x){return f?.[x]}function Th(f,x){return function(k){return f(x(k))}}var Ph=Array.prototype,Ah=Function.prototype,br=Object.prototype,oi=Tn["__core-js_shared__"],vr=Ah.toString,wt=br.hasOwnProperty,el=function(){var f=/[^.]+$/.exec(oi&&oi.keys&&oi.keys.IE_PROTO||"");return f?"Symbol(src)_1."+f:""}(),tl=br.toString,$h=vr.call(Object),_h=RegExp("^"+vr.call(wt).replace(ut,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xr=Za?Tn.Buffer:void 0,nl=Tn.Symbol,rl=Tn.Uint8Array;xr&&xr.allocUnsafe;var ol=Th(Object.getPrototypeOf,Object),il=Object.create,Rh=br.propertyIsEnumerable,Eh=Ph.splice,jt=nl?nl.toStringTag:void 0,Sr=function(){try{var f=ai(Object,"defineProperty");return f({},"",{}),f}catch{}}(),Mh=xr?xr.isBuffer:void 0,sl=Math.max,jh=Date.now,al=ai(Tn,"Map"),An=ai(Object,"create"),zh=function(){function f(){}return function(x){if(!Bt(x))return{};if(il)return il(x);f.prototype=x;var k=new f;return f.prototype=void 0,k}}();function zt(f){var x=-1,k=f==null?0:f.length;for(this.clear();++x<k;){var M=f[x];this.set(M[0],M[1])}}function Bh(){this.__data__=An?An(null):{},this.size=0}function Dh(f){var x=this.has(f)&&delete this.__data__[f];return this.size-=x?1:0,x}function Ih(f){var x=this.__data__;if(An){var k=x[f];return k===r?void 0:k}return wt.call(x,f)?x[f]:void 0}function Vh(f){var x=this.__data__;return An?x[f]!==void 0:wt.call(x,f)}function Fh(f,x){var k=this.__data__;return this.size+=this.has(f)?0:1,k[f]=An&&x===void 0?r:x,this}zt.prototype.clear=Bh,zt.prototype.delete=Dh,zt.prototype.get=Ih,zt.prototype.has=Vh,zt.prototype.set=Fh;function dt(f){var x=-1,k=f==null?0:f.length;for(this.clear();++x<k;){var M=f[x];this.set(M[0],M[1])}}function Lh(){this.__data__=[],this.size=0}function Oh(f){var x=this.__data__,k=wr(x,f);if(k<0)return!1;var M=x.length-1;return k==M?x.pop():Eh.call(x,k,1),--this.size,!0}function Wh(f){var x=this.__data__,k=wr(x,f);return k<0?void 0:x[k][1]}function Nh(f){return wr(this.__data__,f)>-1}function Hh(f,x){var k=this.__data__,M=wr(k,f);return M<0?(++this.size,k.push([f,x])):k[M][1]=x,this}dt.prototype.clear=Lh,dt.prototype.delete=Oh,dt.prototype.get=Wh,dt.prototype.has=Nh,dt.prototype.set=Hh;function Yt(f){var x=-1,k=f==null?0:f.length;for(this.clear();++x<k;){var M=f[x];this.set(M[0],M[1])}}function Uh(){this.size=0,this.__data__={hash:new zt,map:new(al||dt),string:new zt}}function Gh(f){var x=Cr(this,f).delete(f);return this.size-=x?1:0,x}function qh(f){return Cr(this,f).get(f)}function Kh(f){return Cr(this,f).has(f)}function Xh(f,x){var k=Cr(this,f),M=k.size;return k.set(f,x),this.size+=k.size==M?0:1,this}Yt.prototype.clear=Uh,Yt.prototype.delete=Gh,Yt.prototype.get=qh,Yt.prototype.has=Kh,Yt.prototype.set=Xh;function Zt(f){var x=this.__data__=new dt(f);this.size=x.size}function Yh(){this.__data__=new dt,this.size=0}function Zh(f){var x=this.__data__,k=x.delete(f);return this.size=x.size,k}function Jh(f){return this.__data__.get(f)}function Qh(f){return this.__data__.has(f)}function ep(f,x){var k=this.__data__;if(k instanceof dt){var M=k.__data__;if(!al||M.length<n-1)return M.push([f,x]),this.size=++k.size,this;k=this.__data__=new Yt(M)}return k.set(f,x),this.size=k.size,this}Zt.prototype.clear=Yh,Zt.prototype.delete=Zh,Zt.prototype.get=Jh,Zt.prototype.has=Qh,Zt.prototype.set=ep;function tp(f,x){var k=ui(f),M=!k&&ci(f),V=!k&&!M&&fl(f),X=!k&&!M&&!V&&pl(f),re=k||M||V||X,L=re?wh(f.length,String):[],oe=L.length;for(var Ne in f)re&&(Ne=="length"||V&&(Ne=="offset"||Ne=="parent")||X&&(Ne=="buffer"||Ne=="byteLength"||Ne=="byteOffset")||ul(Ne,oe))||L.push(Ne);return L}function ii(f,x,k){(k!==void 0&&!Tr(f[x],k)||k===void 0&&!(x in f))&&si(f,x,k)}function np(f,x,k){var M=f[x];(!(wt.call(f,x)&&Tr(M,k))||k===void 0&&!(x in f))&&si(f,x,k)}function wr(f,x){for(var k=f.length;k--;)if(Tr(f[k][0],x))return k;return-1}function si(f,x,k){x=="__proto__"&&Sr?Sr(f,x,{configurable:!0,enumerable:!0,value:k,writable:!0}):f[x]=k}var rp=gp();function kr(f){return f==null?f===void 0?A:w:jt&&jt in Object(f)?yp(f):kp(f)}function ll(f){return $n(f)&&kr(f)==a}function op(f){if(!Bt(f)||Sp(f))return!1;var x=fi(f)?_h:St;return x.test(Ap(f))}function ip(f){return $n(f)&&hl(f.length)&&!!te[kr(f)]}function sp(f){if(!Bt(f))return wp(f);var x=dl(f),k=[];for(var M in f)M=="constructor"&&(x||!wt.call(f,M))||k.push(M);return k}function cl(f,x,k,M,V){f!==x&&rp(x,function(X,re){if(V||(V=new Zt),Bt(X))ap(f,x,re,k,cl,M,V);else{var L=M?M(li(f,re),X,re+"",f,x,V):void 0;L===void 0&&(L=X),ii(f,re,L)}},ml)}function ap(f,x,k,M,V,X,re){var L=li(f,k),oe=li(x,k),Ne=re.get(oe);if(Ne){ii(f,k,Ne);return}var $e=X?X(L,oe,k+"",f,x,re):void 0,_n=$e===void 0;if(_n){var hi=ui(oe),pi=!hi&&fl(oe),yl=!hi&&!pi&&pl(oe);$e=oe,hi||pi||yl?ui(L)?$e=L:$p(L)?$e=hp(L):pi?(_n=!1,$e=up(oe)):yl?(_n=!1,$e=fp(oe)):$e=[]:_p(oe)||ci(oe)?($e=L,ci(L)?$e=Rp(L):(!Bt(L)||fi(L))&&($e=bp(oe))):_n=!1}_n&&(re.set(oe,$e),V($e,oe,M,X,re),re.delete(oe)),ii(f,k,$e)}function lp(f,x){return Tp(Cp(f,x,gl),f+"")}var cp=Sr?function(f,x){return Sr(f,"toString",{configurable:!0,enumerable:!1,value:Mp(x),writable:!0})}:gl;function up(f,x){return f.slice()}function dp(f){var x=new f.constructor(f.byteLength);return new rl(x).set(new rl(f)),x}function fp(f,x){var k=dp(f.buffer);return new f.constructor(k,f.byteOffset,f.length)}function hp(f,x){var k=-1,M=f.length;for(x||(x=Array(M));++k<M;)x[k]=f[k];return x}function pp(f,x,k,M){var V=!k;k||(k={});for(var X=-1,re=x.length;++X<re;){var L=x[X],oe=void 0;oe===void 0&&(oe=f[L]),V?si(k,L,oe):np(k,L,oe)}return k}function mp(f){return lp(function(x,k){var M=-1,V=k.length,X=V>1?k[V-1]:void 0,re=V>2?k[2]:void 0;for(X=f.length>3&&typeof X=="function"?(V--,X):void 0,re&&vp(k[0],k[1],re)&&(X=V<3?void 0:X,V=1),x=Object(x);++M<V;){var L=k[M];L&&f(x,L,M,X)}return x})}function gp(f){return function(x,k,M){for(var V=-1,X=Object(x),re=M(x),L=re.length;L--;){var oe=re[++V];if(k(X[oe],oe,X)===!1)break}return x}}function Cr(f,x){var k=f.__data__;return xp(x)?k[typeof x=="string"?"string":"hash"]:k.map}function ai(f,x){var k=Ch(f,x);return op(k)?k:void 0}function yp(f){var x=wt.call(f,jt),k=f[jt];try{f[jt]=void 0;var M=!0}catch{}var V=tl.call(f);return M&&(x?f[jt]=k:delete f[jt]),V}function bp(f){return typeof f.constructor=="function"&&!dl(f)?zh(ol(f)):{}}function ul(f,x){var k=typeof f;return x=x??s,!!x&&(k=="number"||k!="symbol"&&ni.test(f))&&f>-1&&f%1==0&&f<x}function vp(f,x,k){if(!Bt(k))return!1;var M=typeof x;return(M=="number"?di(k)&&ul(x,k.length):M=="string"&&x in k)?Tr(k[x],f):!1}function xp(f){var x=typeof f;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?f!=="__proto__":f===null}function Sp(f){return!!el&&el in f}function dl(f){var x=f&&f.constructor,k=typeof x=="function"&&x.prototype||br;return f===k}function wp(f){var x=[];if(f!=null)for(var k in Object(f))x.push(k);return x}function kp(f){return tl.call(f)}function Cp(f,x,k){return x=sl(x===void 0?f.length-1:x,0),function(){for(var M=arguments,V=-1,X=sl(M.length-x,0),re=Array(X);++V<X;)re[V]=M[x+V];V=-1;for(var L=Array(x+1);++V<x;)L[V]=M[V];return L[x]=k(re),Sh(f,this,L)}}function li(f,x){if(!(x==="constructor"&&typeof f[x]=="function")&&x!="__proto__")return f[x]}var Tp=Pp(cp);function Pp(f){var x=0,k=0;return function(){var M=jh(),V=i-(M-k);if(k=M,V>0){if(++x>=o)return arguments[0]}else x=0;return f.apply(void 0,arguments)}}function Ap(f){if(f!=null){try{return vr.call(f)}catch{}try{return f+""}catch{}}return""}function Tr(f,x){return f===x||f!==f&&x!==x}var ci=ll(function(){return arguments}())?ll:function(f){return $n(f)&&wt.call(f,"callee")&&!Rh.call(f,"callee")},ui=Array.isArray;function di(f){return f!=null&&hl(f.length)&&!fi(f)}function $p(f){return $n(f)&&di(f)}var fl=Mh||jp;function fi(f){if(!Bt(f))return!1;var x=kr(f);return x==m||x==y||x==c||x==T}function hl(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=s}function Bt(f){var x=typeof f;return f!=null&&(x=="object"||x=="function")}function $n(f){return f!=null&&typeof f=="object"}function _p(f){if(!$n(f)||kr(f)!=C)return!1;var x=ol(f);if(x===null)return!0;var k=wt.call(x,"constructor")&&x.constructor;return typeof k=="function"&&k instanceof k&&vr.call(k)==$h}var pl=Qa?kh(Qa):ip;function Rp(f){return pp(f,ml(f))}function ml(f){return di(f)?tp(f):sp(f)}var Ep=mp(function(f,x,k,M){cl(f,x,k,M)});function Mp(f){return function(){return f}}function gl(f){return f}function jp(){return!1}e.exports=Ep})(mo,mo.exports);var Yp=mo.exports;const ot=Su(Yp);function Zp(e,t=[]){const n=v.useRef(e);return v.useEffect(()=>{n.current=e}),v.useCallback((...r)=>n.current?.(...r),t)}const ts=globalThis?.document?v.useLayoutEffect:v.useEffect,Cl=(e,t)=>{const n=v.useRef(!1),r=v.useRef(!1);v.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),v.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function Jp(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function ns(...e){return t=>{e.forEach(n=>{Jp(n,t)})}}function Qp(...e){return v.useMemo(()=>ns(...e),e)}function em(e,t){const n=Zp(e);v.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}const fe={open:(e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`,closed:(e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`,hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Xe=e=>Au(t=>e(t,"&"),"[role=group]","[data-group]",".group"),ft=e=>Au(t=>e(t,"~ &"),"[data-peer]",".peer"),Au=(e,...t)=>t.map(e).join(", "),Mo={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-focus-within]",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate], &[data-state=indeterminate]",_groupOpen:Xe(fe.open),_groupClosed:Xe(fe.closed),_groupHover:Xe(fe.hover),_peerHover:ft(fe.hover),_groupFocus:Xe(fe.focus),_peerFocus:ft(fe.focus),_groupFocusVisible:Xe(fe.focusVisible),_peerFocusVisible:ft(fe.focusVisible),_groupActive:Xe(fe.active),_peerActive:ft(fe.active),_groupDisabled:Xe(fe.disabled),_peerDisabled:ft(fe.disabled),_groupInvalid:Xe(fe.invalid),_peerInvalid:ft(fe.invalid),_groupChecked:Xe(fe.checked),_peerChecked:ft(fe.checked),_groupFocusWithin:Xe(fe.focusWithin),_peerFocusWithin:ft(fe.focusWithin),_peerPlaceholderShown:ft(fe.placeholderShown),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-fullscreen]",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},$u=Object.keys(Mo),tm=e=>/!(important)?$/.test(e),Tl=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,nm=(e,t)=>n=>{const r=String(t),o=tm(r),i=Tl(r),s=e?`${e}.${i}`:i;let a=Fe(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:t;return a=Tl(a),o?`${a} !important`:a};function Gs(e){const{scale:t,transform:n,compose:r}=e;return(i,s)=>{const a=nm(t,i)(s);let l=n?.(a,s)??a;return r&&(l=r(l,s)),l}}const Ar=(...e)=>t=>e.reduce((n,r)=>r(n),t);function Be(e,t){return n=>{const r={property:n,scale:e};return r.transform=Gs({scale:e,transform:t}),r}}const rm=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function om(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:rm(t),transform:n?Gs({scale:n,compose:r}):r}}const _u=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function im(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",..._u].join(" ")}function sm(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",..._u].join(" ")}const am={"--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(" ")},lm={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function cm(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}const um={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},rs={"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"},dm=new Set(Object.values(rs)),os=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),fm=e=>e.trim();function hm(e,t){if(e==null||os.has(e))return e;if(!(is(e)||os.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=o?.[1],s=o?.[2];if(!i||!s)return e;const a=i.includes("-gradient")?i:`${i}-gradient`,[l,...c]=s.split(",").map(fm).filter(Boolean);if(c?.length===0)return e;const u=l in rs?rs[l]:l;c.unshift(u);const d=c.map(h=>{if(dm.has(h))return h;const m=h.indexOf(" "),[y,g]=m!==-1?[h.substr(0,m),h.substr(m+1)]:[h],S=is(g)?g:g&&g.split(" "),w=`colors.${y}`,C=w in t.__cssMap?t.__cssMap[w].varRef:y;return S?[C,...Array.isArray(S)?S:[S]].join(" "):C});return`${a}(${d.join(", ")})`}const is=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),pm=(e,t)=>hm(e,t??{});function mm(e){return/^var\(--.+\)$/.test(e)}const gm=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},Ye=e=>t=>`${e}(${t})`,I={filter(e){return e!=="auto"?e:am},backdropFilter(e){return e!=="auto"?e:lm},ring(e){return cm(I.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?im():e==="auto-gpu"?sm():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=gm(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(mm(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:pm,blur:Ye("blur"),opacity:Ye("opacity"),brightness:Ye("brightness"),contrast:Ye("contrast"),dropShadow:Ye("drop-shadow"),grayscale:Ye("grayscale"),hueRotate:e=>Ye("hue-rotate")(I.degree(e)),invert:Ye("invert"),saturate:Ye("saturate"),sepia:Ye("sepia"),bgImage(e){return e==null||is(e)||os.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:n}=um[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},b={borderWidths:Be("borderWidths"),borderStyles:Be("borderStyles"),colors:Be("colors"),borders:Be("borders"),gradients:Be("gradients",I.gradient),radii:Be("radii",I.px),space:Be("space",Ar(I.vh,I.px)),spaceT:Be("space",Ar(I.vh,I.px)),degreeT(e){return{property:e,transform:I.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:Gs({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:Be("sizes",Ar(I.vh,I.px)),sizesT:Be("sizes",Ar(I.vh,I.fraction)),shadows:Be("shadows"),logical:om,blur:Be("blur",I.blur)},Ur={background:b.colors("background"),backgroundColor:b.colors("backgroundColor"),backgroundImage:b.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:I.bgClip},bgSize:b.prop("backgroundSize"),bgPosition:b.prop("backgroundPosition"),bg:b.colors("background"),bgColor:b.colors("backgroundColor"),bgPos:b.prop("backgroundPosition"),bgRepeat:b.prop("backgroundRepeat"),bgAttachment:b.prop("backgroundAttachment"),bgGradient:b.gradients("backgroundImage"),bgClip:{transform:I.bgClip}};Object.assign(Ur,{bgImage:Ur.backgroundImage,bgImg:Ur.backgroundImage});const O={border:b.borders("border"),borderWidth:b.borderWidths("borderWidth"),borderStyle:b.borderStyles("borderStyle"),borderColor:b.colors("borderColor"),borderRadius:b.radii("borderRadius"),borderTop:b.borders("borderTop"),borderBlockStart:b.borders("borderBlockStart"),borderTopLeftRadius:b.radii("borderTopLeftRadius"),borderStartStartRadius:b.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:b.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:b.radii("borderTopRightRadius"),borderStartEndRadius:b.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:b.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:b.borders("borderRight"),borderInlineEnd:b.borders("borderInlineEnd"),borderBottom:b.borders("borderBottom"),borderBlockEnd:b.borders("borderBlockEnd"),borderBottomLeftRadius:b.radii("borderBottomLeftRadius"),borderBottomRightRadius:b.radii("borderBottomRightRadius"),borderLeft:b.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:b.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:b.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:b.borders(["borderLeft","borderRight"]),borderInline:b.borders("borderInline"),borderY:b.borders(["borderTop","borderBottom"]),borderBlock:b.borders("borderBlock"),borderTopWidth:b.borderWidths("borderTopWidth"),borderBlockStartWidth:b.borderWidths("borderBlockStartWidth"),borderTopColor:b.colors("borderTopColor"),borderBlockStartColor:b.colors("borderBlockStartColor"),borderTopStyle:b.borderStyles("borderTopStyle"),borderBlockStartStyle:b.borderStyles("borderBlockStartStyle"),borderBottomWidth:b.borderWidths("borderBottomWidth"),borderBlockEndWidth:b.borderWidths("borderBlockEndWidth"),borderBottomColor:b.colors("borderBottomColor"),borderBlockEndColor:b.colors("borderBlockEndColor"),borderBottomStyle:b.borderStyles("borderBottomStyle"),borderBlockEndStyle:b.borderStyles("borderBlockEndStyle"),borderLeftWidth:b.borderWidths("borderLeftWidth"),borderInlineStartWidth:b.borderWidths("borderInlineStartWidth"),borderLeftColor:b.colors("borderLeftColor"),borderInlineStartColor:b.colors("borderInlineStartColor"),borderLeftStyle:b.borderStyles("borderLeftStyle"),borderInlineStartStyle:b.borderStyles("borderInlineStartStyle"),borderRightWidth:b.borderWidths("borderRightWidth"),borderInlineEndWidth:b.borderWidths("borderInlineEndWidth"),borderRightColor:b.colors("borderRightColor"),borderInlineEndColor:b.colors("borderInlineEndColor"),borderRightStyle:b.borderStyles("borderRightStyle"),borderInlineEndStyle:b.borderStyles("borderInlineEndStyle"),borderTopRadius:b.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:b.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:b.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:b.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(O,{rounded:O.borderRadius,roundedTop:O.borderTopRadius,roundedTopLeft:O.borderTopLeftRadius,roundedTopRight:O.borderTopRightRadius,roundedTopStart:O.borderStartStartRadius,roundedTopEnd:O.borderStartEndRadius,roundedBottom:O.borderBottomRadius,roundedBottomLeft:O.borderBottomLeftRadius,roundedBottomRight:O.borderBottomRightRadius,roundedBottomStart:O.borderEndStartRadius,roundedBottomEnd:O.borderEndEndRadius,roundedLeft:O.borderLeftRadius,roundedRight:O.borderRightRadius,roundedStart:O.borderInlineStartRadius,roundedEnd:O.borderInlineEndRadius,borderStart:O.borderInlineStart,borderEnd:O.borderInlineEnd,borderTopStartRadius:O.borderStartStartRadius,borderTopEndRadius:O.borderStartEndRadius,borderBottomStartRadius:O.borderEndStartRadius,borderBottomEndRadius:O.borderEndEndRadius,borderStartRadius:O.borderInlineStartRadius,borderEndRadius:O.borderInlineEndRadius,borderStartWidth:O.borderInlineStartWidth,borderEndWidth:O.borderInlineEndWidth,borderStartColor:O.borderInlineStartColor,borderEndColor:O.borderInlineEndColor,borderStartStyle:O.borderInlineStartStyle,borderEndStyle:O.borderInlineEndStyle});const ym={color:b.colors("color"),textColor:b.colors("color"),fill:b.colors("fill"),stroke:b.colors("stroke"),accentColor:b.colors("accentColor"),textFillColor:b.colors("textFillColor")},go={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:I.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:b.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:b.space("gap"),rowGap:b.space("rowGap"),columnGap:b.space("columnGap")};Object.assign(go,{flexDir:go.flexDirection});const De={width:b.sizesT("width"),inlineSize:b.sizesT("inlineSize"),height:b.sizes("height"),blockSize:b.sizes("blockSize"),boxSize:b.sizes(["width","height"]),minWidth:b.sizes("minWidth"),minInlineSize:b.sizes("minInlineSize"),minHeight:b.sizes("minHeight"),minBlockSize:b.sizes("minBlockSize"),maxWidth:b.sizes("maxWidth"),maxInlineSize:b.sizes("maxInlineSize"),maxHeight:b.sizes("maxHeight"),maxBlockSize:b.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>({[`@media screen and (min-width: ${t.__breakpoints?.get(e)?.minW??e})`]:{display:"none"}})},hideBelow:{scale:"breakpoints",transform:(e,t)=>({[`@media screen and (max-width: ${t.__breakpoints?.get(e)?._minW??e})`]:{display:"none"}})},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:b.propT("float",I.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(De,{w:De.width,h:De.height,minW:De.minWidth,maxW:De.maxWidth,minH:De.minHeight,maxH:De.maxHeight,overscroll:De.overscrollBehavior,overscrollX:De.overscrollBehaviorX,overscrollY:De.overscrollBehaviorY});const bm={filter:{transform:I.filter},blur:b.blur("--chakra-blur"),brightness:b.propT("--chakra-brightness",I.brightness),contrast:b.propT("--chakra-contrast",I.contrast),hueRotate:b.propT("--chakra-hue-rotate",I.hueRotate),invert:b.propT("--chakra-invert",I.invert),saturate:b.propT("--chakra-saturate",I.saturate),dropShadow:b.propT("--chakra-drop-shadow",I.dropShadow),backdropFilter:{transform:I.backdropFilter},backdropBlur:b.blur("--chakra-backdrop-blur"),backdropBrightness:b.propT("--chakra-backdrop-brightness",I.brightness),backdropContrast:b.propT("--chakra-backdrop-contrast",I.contrast),backdropHueRotate:b.propT("--chakra-backdrop-hue-rotate",I.hueRotate),backdropInvert:b.propT("--chakra-backdrop-invert",I.invert),backdropSaturate:b.propT("--chakra-backdrop-saturate",I.saturate)},vm={ring:{transform:I.ring},ringColor:b.colors("--chakra-ring-color"),ringOffset:b.prop("--chakra-ring-offset-width"),ringOffsetColor:b.colors("--chakra-ring-offset-color"),ringInset:b.prop("--chakra-ring-inset")},xm={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:I.outline},outlineOffset:!0,outlineColor:b.colors("outlineColor")},Ru={gridGap:b.space("gridGap"),gridColumnGap:b.space("gridColumnGap"),gridRowGap:b.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0};function Sm(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r<o.length&&e;r+=1)e=e[o[r]];return e===void 0?n:e}const wm=e=>{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(o))return a.get(o);const l=e(r,o,i,s);return a.set(o,l),l}},km=wm(Sm),Cm={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Tm={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},gi=(e,t,n)=>{const r={},o=km(e,t,{});for(const i in o)i in n&&n[i]!=null||(r[i]=o[i]);return r},Pm={srOnly:{transform(e){return e===!0?Cm:e==="focusable"?Tm:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>gi(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>gi(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>gi(t,e,n)}},Wn={position:!0,pos:b.prop("position"),zIndex:b.prop("zIndex","zIndices"),inset:b.spaceT("inset"),insetX:b.spaceT(["left","right"]),insetInline:b.spaceT("insetInline"),insetY:b.spaceT(["top","bottom"]),insetBlock:b.spaceT("insetBlock"),top:b.spaceT("top"),insetBlockStart:b.spaceT("insetBlockStart"),bottom:b.spaceT("bottom"),insetBlockEnd:b.spaceT("insetBlockEnd"),left:b.spaceT("left"),insetInlineStart:b.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:b.spaceT("right"),insetInlineEnd:b.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Wn,{insetStart:Wn.insetInlineStart,insetEnd:Wn.insetInlineEnd});const ss={boxShadow:b.shadows("boxShadow"),mixBlendMode:!0,blendMode:b.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:b.prop("backgroundBlendMode"),opacity:!0};Object.assign(ss,{shadow:ss.boxShadow});const ne={margin:b.spaceT("margin"),marginTop:b.spaceT("marginTop"),marginBlockStart:b.spaceT("marginBlockStart"),marginRight:b.spaceT("marginRight"),marginInlineEnd:b.spaceT("marginInlineEnd"),marginBottom:b.spaceT("marginBottom"),marginBlockEnd:b.spaceT("marginBlockEnd"),marginLeft:b.spaceT("marginLeft"),marginInlineStart:b.spaceT("marginInlineStart"),marginX:b.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:b.spaceT("marginInline"),marginY:b.spaceT(["marginTop","marginBottom"]),marginBlock:b.spaceT("marginBlock"),padding:b.space("padding"),paddingTop:b.space("paddingTop"),paddingBlockStart:b.space("paddingBlockStart"),paddingRight:b.space("paddingRight"),paddingBottom:b.space("paddingBottom"),paddingBlockEnd:b.space("paddingBlockEnd"),paddingLeft:b.space("paddingLeft"),paddingInlineStart:b.space("paddingInlineStart"),paddingInlineEnd:b.space("paddingInlineEnd"),paddingX:b.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:b.space("paddingInline"),paddingY:b.space(["paddingTop","paddingBottom"]),paddingBlock:b.space("paddingBlock")};Object.assign(ne,{m:ne.margin,mt:ne.marginTop,mr:ne.marginRight,me:ne.marginInlineEnd,marginEnd:ne.marginInlineEnd,mb:ne.marginBottom,ml:ne.marginLeft,ms:ne.marginInlineStart,marginStart:ne.marginInlineStart,mx:ne.marginX,my:ne.marginY,p:ne.padding,pt:ne.paddingTop,py:ne.paddingY,px:ne.paddingX,pb:ne.paddingBottom,pl:ne.paddingLeft,ps:ne.paddingInlineStart,paddingStart:ne.paddingInlineStart,pr:ne.paddingRight,pe:ne.paddingInlineEnd,paddingEnd:ne.paddingInlineEnd});const Am={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:b.spaceT("scrollMargin"),scrollMarginTop:b.spaceT("scrollMarginTop"),scrollMarginBottom:b.spaceT("scrollMarginBottom"),scrollMarginLeft:b.spaceT("scrollMarginLeft"),scrollMarginRight:b.spaceT("scrollMarginRight"),scrollMarginX:b.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:b.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:b.spaceT("scrollPadding"),scrollPaddingTop:b.spaceT("scrollPaddingTop"),scrollPaddingBottom:b.spaceT("scrollPaddingBottom"),scrollPaddingLeft:b.spaceT("scrollPaddingLeft"),scrollPaddingRight:b.spaceT("scrollPaddingRight"),scrollPaddingX:b.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:b.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},$m={fontFamily:b.prop("fontFamily","fonts"),fontSize:b.prop("fontSize","fontSizes",I.px),fontWeight:b.prop("fontWeight","fontWeights"),lineHeight:b.prop("lineHeight","lineHeights"),letterSpacing:b.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},_m={textDecorationColor:b.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:b.shadows("textShadow")},Rm={clipPath:!0,transform:b.propT("transform",I.transform),transformOrigin:!0,translateX:b.spaceT("--chakra-translate-x"),translateY:b.spaceT("--chakra-translate-y"),skewX:b.degreeT("--chakra-skew-x"),skewY:b.degreeT("--chakra-skew-y"),scaleX:b.prop("--chakra-scale-x"),scaleY:b.prop("--chakra-scale-y"),scale:b.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:b.degreeT("--chakra-rotate")},Em={listStyleType:!0,listStylePosition:!0,listStylePos:b.prop("listStylePosition"),listStyleImage:!0,listStyleImg:b.prop("listStyleImage")},Mm={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:b.prop("transitionDuration","transition.duration"),transitionProperty:b.prop("transitionProperty","transition.property"),transitionTimingFunction:b.prop("transitionTimingFunction","transition.easing")},qs=ot({},Ur,O,ym,go,De,bm,vm,xm,Ru,Pm,Wn,ss,ne,Am,$m,_m,Rm,Em,Mm);Object.assign({},ne,De,go,Ru,Wn);const jm=[...Object.keys(qs),...$u],zm={...qs,...Mo},Bm=e=>e in zm,Dm=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,i={};for(const s in e){let a=rt(e[s],t);if(a==null)continue;if(a=Fe(a)&&n(a)?r(a):a,!Array.isArray(a)){i[s]=a;continue}const l=a.slice(0,o.length).length;for(let c=0;c<l;c+=1){const u=o?.[c];if(!u){i[s]=a[c];continue}i[u]=i[u]||{},a[c]!=null&&(i[u][s]=a[c])}}return i};function Im(e){const t=[];let n="",r=!1;for(let o=0;o<e.length;o++){const i=e[o];i==="("?(r=!0,n+=i):i===")"?(r=!1,n+=i):i===","&&!r?(t.push(n),n=""):n+=i}return n=n.trim(),n&&t.push(n),t}function Vm(e){return/^var\(--.+\)$/.test(e)}const Fm=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!Vm(t),Lm=(e,t)=>{if(t==null)return t;const n=s=>e.__cssMap?.[s]?.varRef,r=s=>n(s)??s,[o,i]=Im(t);return t=n(o)??r(i)??r(t),t};function Om(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(i,s=!1)=>{const a=rt(i,r),l=Dm(a)(r);let c={};for(let u in l){const d=l[u];let h=rt(d,r);u in n&&(u=n[u]),Fm(u,h)&&(h=Lm(r,h));let m=t[u];if(m===!0&&(m={property:u}),Fe(h)){c[u]=c[u]??{},c[u]=ot({},c[u],o(h,!0));continue}let y=m?.transform?.(h,r,a)??h;y=m?.processResult?o(y,!0):y;const g=rt(m?.property,r);if(!s&&m?.static){const S=rt(m.static,r);c=ot({},c,S)}if(g&&Array.isArray(g)){for(const S of g)c[S]=y;continue}if(g){g==="&"&&Fe(y)?c=ot({},c,y):c[g]=y;continue}if(Fe(y)){c=ot({},c,y);continue}c[u]=y}return c};return o}const Eu=e=>t=>Om({theme:t,pseudos:Mo,configs:qs})(e);function ee(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function Wm(e,t){if(Array.isArray(e))return e;if(Fe(e))return t(e);if(e!=null)return[e]}function Nm(e,t){for(let n=t+1;n<e.length;n++)if(e[n]!=null)return n;return-1}function Hm(e){const t=e.__breakpoints;return function(r,o,i,s){if(!t)return;const a={},l=Wm(i,t.toArrayValue);if(!l)return a;const c=l.length,u=c===1,d=!!r.parts;for(let h=0;h<c;h++){const m=t.details[h],y=t.details[Nm(l,h)],g=Bn(m.minW,y?._minW),S=rt(r[o]?.[l[h]],s);if(S){if(d){r.parts?.forEach(w=>{ot(a,{[w]:u?S[w]:{[g]:S[w]}})});continue}if(!d){u?ot(a,S):a[g]=S;continue}a[g]=S}}return a}}function Um(e){return t=>{const{variant:n,size:r,theme:o}=t,i=Hm(o);return ot({},rt(e.baseStyle??{},t),i(e,"sizes",r,t),i(e,"variants",n,t))}}function ct(e){return Gp(e,["styleConfig","size","variant","colorScheme"])}function Mu(e){return Fe(e)&&e.reference?e.reference:String(e)}const jo=(e,...t)=>t.map(Mu).join(` ${e} `).replace(/calc/g,""),Pl=(...e)=>`calc(${jo("+",...e)})`,Al=(...e)=>`calc(${jo("-",...e)})`,as=(...e)=>`calc(${jo("*",...e)})`,$l=(...e)=>`calc(${jo("/",...e)})`,_l=e=>{const t=Mu(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:as(t,-1)},pt=Object.assign(e=>({add:(...t)=>pt(Pl(e,...t)),subtract:(...t)=>pt(Al(e,...t)),multiply:(...t)=>pt(as(e,...t)),divide:(...t)=>pt($l(e,...t)),negate:()=>pt(_l(e)),toString:()=>e.toString()}),{add:Pl,subtract:Al,multiply:as,divide:$l,negate:_l});function Gm(e,t="-"){return e.replace(/\s+/g,t)}function qm(e){const t=Gm(e.toString());return Xm(Km(t))}function Km(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function Xm(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function Ym(e,t=""){return[t,e].filter(Boolean).join("-")}function Zm(e,t){return`var(${e}${t?`, ${t}`:""})`}function Jm(e,t=""){return qm(`--${Ym(e,t)}`)}function B(e,t,n){const r=Jm(e,n);return{variable:r,reference:Zm(r,t)}}function Qm(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[o,i]=r;n[o]=B(`${e}-${o}`,i);continue}n[r]=B(`${e}-${r}`)}return n}const eg=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function tg(e){return qp(e,eg)}function ng(e){return e.semanticTokens}function rg(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}function og(e){const t=tg(e),n=ng(e),r=i=>$u.includes(i)||i==="default",o={};return kl(t,(i,s)=>{i!=null&&(o[s.join(".")]={isSemantic:!1,value:i})}),kl(n,(i,s)=>{i!=null&&(o[s.join(".")]={isSemantic:!0,value:i})},{stop:i=>Object.keys(i).every(r)}),o}function Rl(e,t){return B(String(e).replace(/\./g,"-"),void 0,t)}function ig(e){const t=og(e),n=e.config?.cssVarPrefix;let r={};const o={};function i(s,a){const c=[String(s).split(".")[0],a].join(".");if(!t[c])return a;const{reference:d}=Rl(c,n);return d}for(const[s,a]of Object.entries(t)){const{isSemantic:l,value:c}=a,{variable:u,reference:d}=Rl(s,n);if(!l){if(s.startsWith("space")){const m=s.split("."),[y,...g]=m,S=`${y}.-${g.join(".")}`,w=pt.negate(c),C=pt.negate(d);o[S]={value:w,var:u,varRef:C}}r[u]=c,o[s]={value:c,var:u,varRef:d};continue}const h=Fe(c)?c:{default:c};r=ot(r,Object.entries(h).reduce((m,[y,g])=>{if(!g)return m;const S=i(s,`${g}`);if(y==="default")return m[u]=S,m;const w=Mo?.[y]??y;return m[w]={[u]:S},m},{})),o[s]={value:d,var:u,varRef:d}}return{cssVars:r,cssMap:o}}function sg(e){const t=rg(e),{cssMap:n,cssVars:r}=ig(t);return Object.assign(t,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...r},__cssMap:n,__breakpoints:Lp(t.breakpoints)}),t}function U(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...u){r();for(const d of u)t[d]=l(d);return U(e,t)}function i(...u){for(const d of u)d in t||(t[d]=l(d));return U(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([d,h])=>[d,h.selector]))}function a(){return Object.fromEntries(Object.entries(t).map(([d,h])=>[d,h.className]))}function l(u){const m=`chakra-${(["container","root"].includes(u??"")?[e]:[e,u]).filter(Boolean).join("__")}`;return{className:m,selector:`.${m}`,toString:()=>u}}return{parts:o,toPart:l,extend:i,selectors:s,classnames:a,get keys(){return Object.keys(t)},__type:{}}}const ag=U("accordion").parts("root","container","button","panel","icon"),lg=U("alert").parts("title","description","container","icon","spinner"),cg=U("avatar").parts("label","badge","container","excessLabel","group"),ug=U("breadcrumb").parts("link","item","container","separator");U("button").parts();const dg=U("checkbox").parts("control","icon","container","label");U("progress").parts("track","filledTrack","label");const fg=U("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),hg=U("editable").parts("preview","input","textarea"),pg=U("form").parts("container","requiredIndicator","helperText"),mg=U("formError").parts("text","icon"),gg=U("input").parts("addon","field","element","group"),yg=U("list").parts("container","item","icon"),bg=U("menu").parts("button","list","item","groupTitle","icon","command","divider"),vg=U("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),xg=U("numberinput").parts("root","field","stepperGroup","stepper");U("pininput").parts("field");const Sg=U("popover").parts("content","header","body","footer","popper","arrow","closeButton"),wg=U("progress").parts("label","filledTrack","track"),kg=U("radio").parts("container","control","label"),Cg=U("select").parts("field","icon"),Tg=U("slider").parts("container","track","thumb","filledTrack","mark"),Pg=U("stat").parts("container","label","helpText","number","icon"),Ag=U("switch").parts("container","track","thumb","label"),$g=U("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),_g=U("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),Rg=U("tag").parts("container","label","closeButton"),Eg=U("card").parts("container","header","body","footer");U("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:Mg,defineMultiStyleConfig:jg}=ee(ag.keys),zg={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},Bg={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},Dg={pt:"2",px:"4",pb:"5"},Ig={fontSize:"1.25em"},Vg=Mg({container:zg,button:Bg,panel:Dg,icon:Ig}),Fg=jg({baseStyle:Vg});function Ft(e,t,n){return Math.min(Math.max(e,n),t)}class Lg extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var Dn=Lg;function Ks(e){if(typeof e!="string")throw new Dn(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=Kg.test(e)?Ng(e):e;const n=Hg.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(a=>parseInt(er(a,2),16)),parseInt(er(s[3]||"f",2),16)/255]}const r=Ug.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,16)),parseInt(s[3]||"ff",16)/255]}const o=Gg.exec(t);if(o){const s=Array.from(o).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,10)),parseFloat(s[3]||"1")]}const i=qg.exec(t);if(i){const[s,a,l,c]=Array.from(i).slice(1).map(parseFloat);if(Ft(0,100,a)!==a)throw new Dn(e);if(Ft(0,100,l)!==l)throw new Dn(e);return[...Xg(s,a,l),Number.isNaN(c)?1:c]}throw new Dn(e)}function Og(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const El=e=>parseInt(e.replace(/_/g,""),36),Wg="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 n=El(t.substring(0,3)),r=El(t.substring(3)).toString(16);let o="";for(let i=0;i<6-r.length;i++)o+="0";return e[n]=`${o}${r}`,e},{});function Ng(e){const t=e.toLowerCase().trim(),n=Wg[Og(t)];if(!n)throw new Dn(e);return`#${n}`}const er=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),Hg=new RegExp(`^#${er("([a-f0-9])",3)}([a-f0-9])?$`,"i"),Ug=new RegExp(`^#${er("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),Gg=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${er(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),qg=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,Kg=/^[a-z]+$/i,Ml=e=>Math.round(e*255),Xg=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(Ml);const o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*(t/100),s=i*(1-Math.abs(o%2-1));let a=0,l=0,c=0;o>=0&&o<1?(a=i,l=s):o>=1&&o<2?(a=s,l=i):o>=2&&o<3?(l=i,c=s):o>=3&&o<4?(l=s,c=i):o>=4&&o<5?(a=s,c=i):o>=5&&o<6&&(a=i,c=s);const u=r-i/2,d=a+u,h=l+u,m=c+u;return[d,h,m].map(Ml)};function Yg(e,t,n,r){return`rgba(${Ft(0,255,e).toFixed()}, ${Ft(0,255,t).toFixed()}, ${Ft(0,255,n).toFixed()}, ${parseFloat(Ft(0,1,r).toFixed(3))})`}function Zg(e,t){const[n,r,o,i]=Ks(e);return Yg(n,r,o,i-t)}function Jg(e){const[t,n,r,o]=Ks(e);let i=s=>{const a=Ft(0,255,s).toString(16);return a.length===1?`0${a}`:a};return`#${i(t)}${i(n)}${i(r)}${o<1?i(Math.round(o*255)):""}`}const Qg=e=>Object.keys(e).length===0;function ey(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:o;return e===o?n:e}const Se=(e,t,n)=>{const r=ey(e,`colors.${t}`,t);try{return Jg(r),r}catch{return"#000000"}},ty=e=>{const[t,n,r]=Ks(e);return(t*299+n*587+r*114)/1e3},ny=e=>t=>{const n=Se(t,e);return ty(n)<128?"dark":"light"},ry=e=>t=>ny(e)(t)==="dark",mn=(e,t)=>n=>{const r=Se(n,e);return Zg(r,1-t)};function jl(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
45deg,
${t} 25%,
transparent 25%,
transparent 50%,
${t} 50%,
${t} 75%,
transparent 75%,
transparent
)`,backgroundSize:`${e} ${e}`}}const oy=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function iy(e){const t=oy();return!e||Qg(e)?t:e.string&&e.colors?ay(e.string,e.colors):e.string&&!e.colors?sy(e.string):e.colors&&!e.string?ly(e.colors):t}function sy(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t),t=t&t;let n="#";for(let r=0;r<3;r+=1){const o=t>>r*8&255;n+=`00${o.toString(16)}`.substr(-2)}return n}function ay(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;r<e.length;r+=1)n=e.charCodeAt(r)+((n<<5)-n),n=n&n;return n=(n%t.length+t.length)%t.length,t[n]}function ly(e){return e[Math.floor(Math.random()*e.length)]}function z(e,t){return n=>n.colorMode==="dark"?t:e}function Xs(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function ju(e){return Fe(e)&&e.reference?e.reference:String(e)}const zo=(e,...t)=>t.map(ju).join(` ${e} `).replace(/calc/g,""),zl=(...e)=>`calc(${zo("+",...e)})`,Bl=(...e)=>`calc(${zo("-",...e)})`,ls=(...e)=>`calc(${zo("*",...e)})`,Dl=(...e)=>`calc(${zo("/",...e)})`,Il=e=>{const t=ju(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:ls(t,-1)},mt=Object.assign(e=>({add:(...t)=>mt(zl(e,...t)),subtract:(...t)=>mt(Bl(e,...t)),multiply:(...t)=>mt(ls(e,...t)),divide:(...t)=>mt(Dl(e,...t)),negate:()=>mt(Il(e)),toString:()=>e.toString()}),{add:zl,subtract:Bl,multiply:ls,divide:Dl,negate:Il});function cy(e){return!Number.isInteger(parseFloat(e.toString()))}function uy(e,t="-"){return e.replace(/\s+/g,t)}function zu(e){const t=uy(e.toString());return t.includes("\\.")?e:cy(e)?t.replace(".","\\."):e}function dy(e,t=""){return[t,zu(e)].filter(Boolean).join("-")}function fy(e,t){return`var(${zu(e)}${t?`, ${t}`:""})`}function hy(e,t=""){return`--${dy(e,t)}`}function pe(e,t){const n=hy(e,t?.prefix);return{variable:n,reference:fy(n,py(t?.fallback))}}function py(e){return e?.reference}const{definePartsStyle:ur,defineMultiStyleConfig:my}=ee(lg.keys),_e=B("alert-fg"),vt=B("alert-bg"),gy=ur({container:{bg:vt.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:_e.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:_e.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Ys(e){const{theme:t,colorScheme:n}=e,r=mn(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}const yy=ur(e=>{const{colorScheme:t}=e,n=Ys(e);return{container:{[_e.variable]:`colors.${t}.600`,[vt.variable]:n.light,_dark:{[_e.variable]:`colors.${t}.200`,[vt.variable]:n.dark}}}}),by=ur(e=>{const{colorScheme:t}=e,n=Ys(e);return{container:{[_e.variable]:`colors.${t}.600`,[vt.variable]:n.light,_dark:{[_e.variable]:`colors.${t}.200`,[vt.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:_e.reference}}}),vy=ur(e=>{const{colorScheme:t}=e,n=Ys(e);return{container:{[_e.variable]:`colors.${t}.600`,[vt.variable]:n.light,_dark:{[_e.variable]:`colors.${t}.200`,[vt.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:_e.reference}}}),xy=ur(e=>{const{colorScheme:t}=e;return{container:{[_e.variable]:"colors.white",[vt.variable]:`colors.${t}.600`,_dark:{[_e.variable]:"colors.gray.900",[vt.variable]:`colors.${t}.200`},color:_e.reference}}}),Sy={subtle:yy,"left-accent":by,"top-accent":vy,solid:xy},wy=my({baseStyle:gy,variants:Sy,defaultProps:{variant:"subtle",colorScheme:"blue"}}),Bu={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"},ky={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"},Cy={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},Du={...Bu,...ky,container:Cy},Ty=e=>typeof e=="function";function Ce(e,...t){return Ty(e)?e(...t):e}const{definePartsStyle:Iu,defineMultiStyleConfig:Py}=ee(cg.keys),un=B("avatar-border-color"),Nn=B("avatar-bg"),tr=B("avatar-font-size"),gn=B("avatar-size"),Ay={borderRadius:"full",border:"0.2em solid",borderColor:un.reference,[un.variable]:"white",_dark:{[un.variable]:"colors.gray.800"}},$y={bg:Nn.reference,fontSize:tr.reference,width:gn.reference,height:gn.reference,lineHeight:"1",[Nn.variable]:"colors.gray.200",_dark:{[Nn.variable]:"colors.whiteAlpha.400"}},_y=e=>{const{name:t,theme:n}=e,r=t?iy({string:t}):"colors.gray.400",o=ry(r)(n);let i="white";return o||(i="gray.800"),{bg:Nn.reference,fontSize:tr.reference,color:i,borderColor:un.reference,verticalAlign:"top",width:gn.reference,height:gn.reference,"&:not([data-loaded])":{[Nn.variable]:r},[un.variable]:"colors.white",_dark:{[un.variable]:"colors.gray.800"}}},Ry={fontSize:tr.reference,lineHeight:"1"},Ey=Iu(e=>({badge:Ce(Ay,e),excessLabel:Ce($y,e),container:Ce(_y,e),label:Ry}));function kt(e){const t=e!=="100%"?Du[e]:void 0;return Iu({container:{[gn.variable]:t??e,[tr.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[gn.variable]:t??e,[tr.variable]:`calc(${t??e} / 2.5)`}})}const My={"2xs":kt(4),xs:kt(6),sm:kt(8),md:kt(12),lg:kt(16),xl:kt(24),"2xl":kt(32),full:kt("100%")},jy=Py({baseStyle:Ey,sizes:My,defaultProps:{size:"md"}}),se=Qm("badge",["bg","color","shadow"]),zy={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:se.bg.reference,color:se.color.reference,boxShadow:se.shadow.reference},By=e=>{const{colorScheme:t,theme:n}=e,r=mn(`${t}.500`,.6)(n);return{[se.bg.variable]:`colors.${t}.500`,[se.color.variable]:"colors.white",_dark:{[se.bg.variable]:r,[se.color.variable]:"colors.whiteAlpha.800"}}},Dy=e=>{const{colorScheme:t,theme:n}=e,r=mn(`${t}.200`,.16)(n);return{[se.bg.variable]:`colors.${t}.100`,[se.color.variable]:`colors.${t}.800`,_dark:{[se.bg.variable]:r,[se.color.variable]:`colors.${t}.200`}}},Iy=e=>{const{colorScheme:t,theme:n}=e,r=mn(`${t}.200`,.8)(n);return{[se.color.variable]:`colors.${t}.500`,_dark:{[se.color.variable]:r},[se.shadow.variable]:`inset 0 0 0px 1px ${se.color.reference}`}},Vy={solid:By,subtle:Dy,outline:Iy},Hn={baseStyle:zy,variants:Vy,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:Fy,definePartsStyle:Ly}=ee(ug.keys),yi=B("breadcrumb-link-decor"),Oy={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:yi.reference,[yi.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[yi.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},Wy=Ly({link:Oy}),Ny=Fy({baseStyle:Wy}),Hy={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"}}},Vu=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:z("gray.800","whiteAlpha.900")(e),_hover:{bg:z("gray.100","whiteAlpha.200")(e)},_active:{bg:z("gray.200","whiteAlpha.300")(e)}};const r=mn(`${t}.200`,.12)(n),o=mn(`${t}.200`,.24)(n);return{color:z(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:z(`${t}.50`,r)(e)},_active:{bg:z(`${t}.100`,o)(e)}}},Uy=e=>{const{colorScheme:t}=e,n=z("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...Ce(Vu,e)}},Gy={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},qy=e=>{const{colorScheme:t}=e;if(t==="gray"){const a=z("gray.100","whiteAlpha.200")(e);return{bg:a,color:z("gray.800","whiteAlpha.900")(e),_hover:{bg:z("gray.200","whiteAlpha.300")(e),_disabled:{bg:a}},_active:{bg:z("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:r="white",hoverBg:o=`${t}.600`,activeBg:i=`${t}.700`}=Gy[t]??{},s=z(n,`${t}.200`)(e);return{bg:s,color:z(r,"gray.800")(e),_hover:{bg:z(o,`${t}.300`)(e),_disabled:{bg:s}},_active:{bg:z(i,`${t}.400`)(e)}}},Ky=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:z(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:z(`${t}.700`,`${t}.500`)(e)}}},Xy={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},Yy={ghost:Vu,outline:Uy,solid:qy,link:Ky,unstyled:Xy},Zy={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},Jy={baseStyle:Hy,variants:Yy,sizes:Zy,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Wt,defineMultiStyleConfig:Qy}=ee(Eg.keys),yo=B("card-bg"),bt=B("card-padding"),Fu=B("card-shadow"),Gr=B("card-radius"),Lu=B("card-border-width","0"),Ou=B("card-border-color"),eb=Wt({container:{[yo.variable]:"colors.chakra-body-bg",backgroundColor:yo.reference,boxShadow:Fu.reference,borderRadius:Gr.reference,color:"chakra-body-text",borderWidth:Lu.reference,borderColor:Ou.reference},body:{padding:bt.reference,flex:"1 1 0%"},header:{padding:bt.reference},footer:{padding:bt.reference}}),tb={sm:Wt({container:{[Gr.variable]:"radii.base",[bt.variable]:"space.3"}}),md:Wt({container:{[Gr.variable]:"radii.md",[bt.variable]:"space.5"}}),lg:Wt({container:{[Gr.variable]:"radii.xl",[bt.variable]:"space.7"}})},nb={elevated:Wt({container:{[Fu.variable]:"shadows.base",_dark:{[yo.variable]:"colors.gray.700"}}}),outline:Wt({container:{[Lu.variable]:"1px",[Ou.variable]:"colors.chakra-border-color"}}),filled:Wt({container:{[yo.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[bt.variable]:0},header:{[bt.variable]:0},footer:{[bt.variable]:0}}},rb=Qy({baseStyle:eb,variants:nb,sizes:tb,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:qr,defineMultiStyleConfig:ob}=ee(dg.keys),Un=B("checkbox-size"),ib=e=>{const{colorScheme:t}=e;return{w:Un.reference,h:Un.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:z(`${t}.500`,`${t}.200`)(e),borderColor:z(`${t}.500`,`${t}.200`)(e),color:z("white","gray.900")(e),_hover:{bg:z(`${t}.600`,`${t}.300`)(e),borderColor:z(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:z("gray.200","transparent")(e),bg:z("gray.200","whiteAlpha.300")(e),color:z("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:z(`${t}.500`,`${t}.200`)(e),borderColor:z(`${t}.500`,`${t}.200`)(e),color:z("white","gray.900")(e)},_disabled:{bg:z("gray.100","whiteAlpha.100")(e),borderColor:z("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:z("red.500","red.300")(e)}}},sb={_disabled:{cursor:"not-allowed"}},ab={userSelect:"none",_disabled:{opacity:.4}},lb={transitionProperty:"transform",transitionDuration:"normal"},cb=qr(e=>({icon:lb,container:sb,control:Ce(ib,e),label:ab})),ub={sm:qr({control:{[Un.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:qr({control:{[Un.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:qr({control:{[Un.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},bo=ob({baseStyle:cb,sizes:ub,defaultProps:{size:"md",colorScheme:"blue"}}),Gn=pe("close-button-size"),Rn=pe("close-button-bg"),db={w:[Gn.reference],h:[Gn.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Rn.variable]:"colors.blackAlpha.100",_dark:{[Rn.variable]:"colors.whiteAlpha.100"}},_active:{[Rn.variable]:"colors.blackAlpha.200",_dark:{[Rn.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Rn.reference},fb={lg:{[Gn.variable]:"sizes.10",fontSize:"md"},md:{[Gn.variable]:"sizes.8",fontSize:"xs"},sm:{[Gn.variable]:"sizes.6",fontSize:"2xs"}},hb={baseStyle:db,sizes:fb,defaultProps:{size:"md"}},{variants:pb,defaultProps:mb}=Hn,gb={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:se.bg.reference,color:se.color.reference,boxShadow:se.shadow.reference},yb={baseStyle:gb,variants:pb,defaultProps:mb},bb={w:"100%",mx:"auto",maxW:"prose",px:"4"},vb={baseStyle:bb},xb={opacity:.6,borderColor:"inherit"},Sb={borderStyle:"solid"},wb={borderStyle:"dashed"},kb={solid:Sb,dashed:wb},Cb={baseStyle:xb,variants:kb,defaultProps:{variant:"solid"}},{definePartsStyle:cs,defineMultiStyleConfig:Tb}=ee(fg.keys),bi=B("drawer-bg"),vi=B("drawer-box-shadow");function Jt(e){return cs(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const Pb={bg:"blackAlpha.600",zIndex:"modal"},Ab={display:"flex",zIndex:"modal",justifyContent:"center"},$b=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[bi.variable]:"colors.white",[vi.variable]:"shadows.lg",_dark:{[bi.variable]:"colors.gray.700",[vi.variable]:"shadows.dark-lg"},bg:bi.reference,boxShadow:vi.reference}},_b={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},Rb={position:"absolute",top:"2",insetEnd:"3"},Eb={px:"6",py:"2",flex:"1",overflow:"auto"},Mb={px:"6",py:"4"},jb=cs(e=>({overlay:Pb,dialogContainer:Ab,dialog:Ce($b,e),header:_b,closeButton:Rb,body:Eb,footer:Mb})),zb={xs:Jt("xs"),sm:Jt("md"),md:Jt("lg"),lg:Jt("2xl"),xl:Jt("4xl"),full:Jt("full")},Bb=Tb({baseStyle:jb,sizes:zb,defaultProps:{size:"xs"}}),{definePartsStyle:Db,defineMultiStyleConfig:Ib}=ee(hg.keys),Vb={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},Fb={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},Lb={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},Ob=Db({preview:Vb,input:Fb,textarea:Lb}),Wb=Ib({baseStyle:Ob}),{definePartsStyle:Nb,defineMultiStyleConfig:Hb}=ee(pg.keys),dn=B("form-control-color"),Ub={marginStart:"1",[dn.variable]:"colors.red.500",_dark:{[dn.variable]:"colors.red.300"},color:dn.reference},Gb={mt:"2",[dn.variable]:"colors.gray.600",_dark:{[dn.variable]:"colors.whiteAlpha.600"},color:dn.reference,lineHeight:"normal",fontSize:"sm"},qb=Nb({container:{width:"100%",position:"relative"},requiredIndicator:Ub,helperText:Gb}),Kb=Hb({baseStyle:qb}),{definePartsStyle:Xb,defineMultiStyleConfig:Yb}=ee(mg.keys),fn=B("form-error-color"),Zb={[fn.variable]:"colors.red.500",_dark:{[fn.variable]:"colors.red.300"},color:fn.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},Jb={marginEnd:"0.5em",[fn.variable]:"colors.red.500",_dark:{[fn.variable]:"colors.red.300"},color:fn.reference},Qb=Xb({text:Zb,icon:Jb}),e0=Yb({baseStyle:Qb}),t0={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},n0={baseStyle:t0},r0={fontFamily:"heading",fontWeight:"bold"},o0={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},i0={baseStyle:r0,sizes:o0,defaultProps:{size:"xl"}},{definePartsStyle:yt,defineMultiStyleConfig:s0}=ee(gg.keys),en=B("input-height"),tn=B("input-font-size"),nn=B("input-padding"),rn=B("input-border-radius"),a0=yt({addon:{height:en.reference,fontSize:tn.reference,px:nn.reference,borderRadius:rn.reference},field:{width:"100%",height:en.reference,fontSize:tn.reference,px:nn.reference,borderRadius:rn.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Ct={lg:{[tn.variable]:"fontSizes.lg",[nn.variable]:"space.4",[rn.variable]:"radii.md",[en.variable]:"sizes.12"},md:{[tn.variable]:"fontSizes.md",[nn.variable]:"space.4",[rn.variable]:"radii.md",[en.variable]:"sizes.10"},sm:{[tn.variable]:"fontSizes.sm",[nn.variable]:"space.3",[rn.variable]:"radii.sm",[en.variable]:"sizes.8"},xs:{[tn.variable]:"fontSizes.xs",[nn.variable]:"space.2",[rn.variable]:"radii.sm",[en.variable]:"sizes.6"}},l0={lg:yt({field:Ct.lg,group:Ct.lg}),md:yt({field:Ct.md,group:Ct.md}),sm:yt({field:Ct.sm,group:Ct.sm}),xs:yt({field:Ct.xs,group:Ct.xs})};function Zs(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||z("blue.500","blue.300")(e),errorBorderColor:n||z("red.500","red.300")(e)}}const c0=yt(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Zs(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:z("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Se(t,r),boxShadow:`0 0 0 1px ${Se(t,r)}`},_focusVisible:{zIndex:1,borderColor:Se(t,n),boxShadow:`0 0 0 1px ${Se(t,n)}`}},addon:{border:"1px solid",borderColor:z("inherit","whiteAlpha.50")(e),bg:z("gray.100","whiteAlpha.300")(e)}}}),u0=yt(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Zs(e);return{field:{border:"2px solid",borderColor:"transparent",bg:z("gray.100","whiteAlpha.50")(e),_hover:{bg:z("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Se(t,r)},_focusVisible:{bg:"transparent",borderColor:Se(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:z("gray.100","whiteAlpha.50")(e)}}}),d0=yt(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Zs(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Se(t,r),boxShadow:`0px 1px 0px 0px ${Se(t,r)}`},_focusVisible:{borderColor:Se(t,n),boxShadow:`0px 1px 0px 0px ${Se(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),f0=yt({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),h0={outline:c0,filled:u0,flushed:d0,unstyled:f0},H=s0({baseStyle:a0,sizes:l0,variants:h0,defaultProps:{size:"md",variant:"outline"}}),xi=B("kbd-bg"),p0={[xi.variable]:"colors.gray.100",_dark:{[xi.variable]:"colors.whiteAlpha.100"},bg:xi.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},m0={baseStyle:p0},g0={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},y0={baseStyle:g0},{defineMultiStyleConfig:b0,definePartsStyle:v0}=ee(yg.keys),x0={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},S0=v0({icon:x0}),w0=b0({baseStyle:S0}),{defineMultiStyleConfig:k0,definePartsStyle:C0}=ee(bg.keys),Qe=B("menu-bg"),Si=B("menu-shadow"),T0={[Qe.variable]:"#fff",[Si.variable]:"shadows.sm",_dark:{[Qe.variable]:"colors.gray.700",[Si.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:Qe.reference,boxShadow:Si.reference},P0={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Qe.variable]:"colors.gray.100",_dark:{[Qe.variable]:"colors.whiteAlpha.100"}},_active:{[Qe.variable]:"colors.gray.200",_dark:{[Qe.variable]:"colors.whiteAlpha.200"}},_expanded:{[Qe.variable]:"colors.gray.100",_dark:{[Qe.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Qe.reference},A0={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},$0={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},_0={opacity:.6},R0={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},E0={transitionProperty:"common",transitionDuration:"normal"},M0=C0({button:E0,list:T0,item:P0,groupTitle:A0,icon:$0,command:_0,divider:R0}),j0=k0({baseStyle:M0}),{defineMultiStyleConfig:z0,definePartsStyle:us}=ee(vg.keys),wi=B("modal-bg"),ki=B("modal-shadow"),B0={bg:"blackAlpha.600",zIndex:"modal"},D0=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},I0=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:n==="inside"?"calc(100% - 7.5rem)":void 0,[wi.variable]:"colors.white",[ki.variable]:"shadows.lg",_dark:{[wi.variable]:"colors.gray.700",[ki.variable]:"shadows.dark-lg"},bg:wi.reference,boxShadow:ki.reference}},V0={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},F0={position:"absolute",top:"2",insetEnd:"3"},L0=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},O0={px:"6",py:"4"},W0=us(e=>({overlay:B0,dialogContainer:Ce(D0,e),dialog:Ce(I0,e),header:V0,closeButton:F0,body:Ce(L0,e),footer:O0}));function He(e){return us(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const N0={xs:He("xs"),sm:He("sm"),md:He("md"),lg:He("lg"),xl:He("xl"),"2xl":He("2xl"),"3xl":He("3xl"),"4xl":He("4xl"),"5xl":He("5xl"),"6xl":He("6xl"),full:He("full")},H0=z0({baseStyle:W0,sizes:N0,defaultProps:{size:"md"}}),Wu={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},{defineMultiStyleConfig:U0,definePartsStyle:Nu}=ee(xg.keys),Js=pe("number-input-stepper-width"),Hu=pe("number-input-input-padding"),G0=mt(Js).add("0.5rem").toString(),Ci=pe("number-input-bg"),Ti=pe("number-input-color"),Pi=pe("number-input-border-color"),q0={[Js.variable]:"sizes.6",[Hu.variable]:G0},K0=e=>Ce(H.baseStyle,e)?.field??{},X0={width:Js.reference},Y0={borderStart:"1px solid",borderStartColor:Pi.reference,color:Ti.reference,bg:Ci.reference,[Ti.variable]:"colors.chakra-body-text",[Pi.variable]:"colors.chakra-border-color",_dark:{[Ti.variable]:"colors.whiteAlpha.800",[Pi.variable]:"colors.whiteAlpha.300"},_active:{[Ci.variable]:"colors.gray.200",_dark:{[Ci.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},Z0=Nu(e=>({root:q0,field:Ce(K0,e)??{},stepperGroup:X0,stepper:Y0}));function $r(e){const t=H.sizes?.[e],n={lg:"md",md:"md",sm:"sm",xs:"sm"},r=t.field?.fontSize??"md",o=Wu.fontSizes[r];return Nu({field:{...t.field,paddingInlineEnd:Hu.reference,verticalAlign:"top"},stepper:{fontSize:mt(o).multiply(.75).toString(),_first:{borderTopEndRadius:n[e]},_last:{borderBottomEndRadius:n[e],mt:"-1px",borderTopWidth:1}}})}const J0={xs:$r("xs"),sm:$r("sm"),md:$r("md"),lg:$r("lg")},Q0=U0({baseStyle:Z0,sizes:J0,variants:H.variants,defaultProps:H.defaultProps}),ev={...H.baseStyle?.field,textAlign:"center"},tv={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},nv={outline:e=>Ce(H.variants?.outline,e)?.field??{},flushed:e=>Ce(H.variants?.flushed,e)?.field??{},filled:e=>Ce(H.variants?.filled,e)?.field??{},unstyled:H.variants?.unstyled.field??{}},rv={baseStyle:ev,sizes:tv,variants:nv,defaultProps:H.defaultProps},{defineMultiStyleConfig:ov,definePartsStyle:iv}=ee(Sg.keys),_r=pe("popper-bg"),sv=pe("popper-arrow-bg"),Vl=pe("popper-arrow-shadow-color"),av={zIndex:"popover"},lv={[_r.variable]:"colors.white",bg:_r.reference,[sv.variable]:_r.reference,[Vl.variable]:"colors.gray.200",_dark:{[_r.variable]:"colors.gray.700",[Vl.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},cv={px:3,py:2,borderBottomWidth:"1px"},uv={px:3,py:2},dv={px:3,py:2,borderTopWidth:"1px"},fv={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},hv=iv({popper:av,content:lv,header:cv,body:uv,footer:dv,closeButton:fv}),pv=ov({baseStyle:hv}),{defineMultiStyleConfig:mv,definePartsStyle:In}=ee(wg.keys),gv=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=z(jl(),jl("1rem","rgba(0,0,0,0.1)"))(e),s=z(`${t}.500`,`${t}.200`)(e),a=`linear-gradient(
to right,
transparent 0%,
${Se(n,s)} 50%,
transparent 100%
)`;return{...!r&&o&&i,...r?{bgImage:a}:{bgColor:s}}},yv={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},bv=e=>({bg:z("gray.100","whiteAlpha.300")(e)}),vv=e=>({transitionProperty:"common",transitionDuration:"slow",...gv(e)}),xv=In(e=>({label:yv,filledTrack:vv(e),track:bv(e)})),Sv={xs:In({track:{h:"1"}}),sm:In({track:{h:"2"}}),md:In({track:{h:"3"}}),lg:In({track:{h:"4"}})},wv=mv({sizes:Sv,baseStyle:xv,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:kv,definePartsStyle:Kr}=ee(kg.keys),Cv=e=>{const t=Ce(bo.baseStyle,e)?.control;return{...t,borderRadius:"full",_checked:{...t?._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},Tv=Kr(e=>({label:bo.baseStyle?.(e).label,container:bo.baseStyle?.(e).container,control:Cv(e)})),Pv={md:Kr({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Kr({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Kr({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},Av=kv({baseStyle:Tv,sizes:Pv,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:$v,definePartsStyle:_v}=ee(Cg.keys),Rr=B("select-bg"),Rv={...H.baseStyle?.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Rr.reference,[Rr.variable]:"colors.white",_dark:{[Rr.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Rr.reference}},Ev={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},Mv=_v({field:Rv,icon:Ev}),Er={paddingInlineEnd:"8"},jv={lg:{...H.sizes?.lg,field:{...H.sizes?.lg.field,...Er}},md:{...H.sizes?.md,field:{...H.sizes?.md.field,...Er}},sm:{...H.sizes?.sm,field:{...H.sizes?.sm.field,...Er}},xs:{...H.sizes?.xs,field:{...H.sizes?.xs.field,...Er},icon:{insetEnd:"1"}}},zv=$v({baseStyle:Mv,sizes:jv,variants:H.variants,defaultProps:H.defaultProps}),Ai=B("skeleton-start-color"),$i=B("skeleton-end-color"),Bv={[Ai.variable]:"colors.gray.100",[$i.variable]:"colors.gray.400",_dark:{[Ai.variable]:"colors.gray.800",[$i.variable]:"colors.gray.600"},background:Ai.reference,borderColor:$i.reference,opacity:.7,borderRadius:"sm"},Dv={baseStyle:Bv},_i=B("skip-link-bg"),Iv={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[_i.variable]:"colors.white",_dark:{[_i.variable]:"colors.gray.700"},bg:_i.reference}},Vv={baseStyle:Iv},{defineMultiStyleConfig:Fv,definePartsStyle:Bo}=ee(Tg.keys),qt=B("slider-thumb-size"),nr=B("slider-track-size"),Pt=B("slider-bg"),Lv=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Xs({orientation:t,vertical:{h:"100%",px:pt(qt.reference).divide(2).toString()},horizontal:{w:"100%",py:pt(qt.reference).divide(2).toString()}})}},Ov=e=>({...Xs({orientation:e.orientation,horizontal:{h:nr.reference},vertical:{w:nr.reference}}),overflow:"hidden",borderRadius:"sm",[Pt.variable]:"colors.gray.200",_dark:{[Pt.variable]:"colors.whiteAlpha.200"},_disabled:{[Pt.variable]:"colors.gray.300",_dark:{[Pt.variable]:"colors.whiteAlpha.300"}},bg:Pt.reference}),Wv=e=>{const{orientation:t}=e;return{...Xs({orientation:t,vertical:{left:"50%"},horizontal:{top:"50%"}}),w:qt.reference,h:qt.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"},_active:{"--slider-thumb-scale":"1.15"},_disabled:{bg:"gray.300"}}},Nv=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Pt.variable]:`colors.${t}.500`,_dark:{[Pt.variable]:`colors.${t}.200`},bg:Pt.reference}},Hv=Bo(e=>({container:Lv(e),track:Ov(e),thumb:Wv(e),filledTrack:Nv(e)})),Uv=Bo({container:{[qt.variable]:"sizes.4",[nr.variable]:"sizes.1"}}),Gv=Bo({container:{[qt.variable]:"sizes.3.5",[nr.variable]:"sizes.1"}}),qv=Bo({container:{[qt.variable]:"sizes.2.5",[nr.variable]:"sizes.0.5"}}),Kv={lg:Uv,md:Gv,sm:qv},Xv=Fv({baseStyle:Hv,sizes:Kv,defaultProps:{size:"md",colorScheme:"blue"}}),Vt=pe("spinner-size"),Yv={width:[Vt.reference],height:[Vt.reference]},Zv={xs:{[Vt.variable]:"sizes.3"},sm:{[Vt.variable]:"sizes.4"},md:{[Vt.variable]:"sizes.6"},lg:{[Vt.variable]:"sizes.8"},xl:{[Vt.variable]:"sizes.12"}},Jv={baseStyle:Yv,sizes:Zv,defaultProps:{size:"md"}},{defineMultiStyleConfig:Qv,definePartsStyle:Uu}=ee(Pg.keys),ex={fontWeight:"medium"},tx={opacity:.8,marginBottom:"2"},nx={verticalAlign:"baseline",fontWeight:"semibold"},rx={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},ox=Uu({container:{},label:ex,helpText:tx,number:nx,icon:rx}),ix={md:Uu({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},sx=Qv({baseStyle:ox,sizes:ix,defaultProps:{size:"md"}}),{defineMultiStyleConfig:ax,definePartsStyle:Vn}=ee(["stepper","step","title","description","indicator","separator","icon","number"]),gt=B("stepper-indicator-size"),on=B("stepper-icon-size"),sn=B("stepper-title-font-size"),Fn=B("stepper-description-font-size"),En=B("stepper-accent-color"),lx=Vn(({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"},[En.variable]:`colors.${e}.500`,_dark:{[En.variable]:`colors.${e}.200`}},title:{fontSize:sn.reference,fontWeight:"medium"},description:{fontSize:Fn.reference,color:"chakra-subtle-text"},number:{fontSize:sn.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:on.reference,height:on.reference},indicator:{flexShrink:0,borderRadius:"full",width:gt.reference,height:gt.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:En.reference},"&[data-status=complete]":{bg:En.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:En.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${gt.reference} - 8px)`,top:`calc(${gt.reference} + 4px)`,insetStart:`calc(${gt.reference} / 2 - 1px)`}}})),cx=ax({baseStyle:lx,sizes:{xs:Vn({stepper:{[gt.variable]:"sizes.4",[on.variable]:"sizes.3",[sn.variable]:"fontSizes.xs",[Fn.variable]:"fontSizes.xs"}}),sm:Vn({stepper:{[gt.variable]:"sizes.6",[on.variable]:"sizes.4",[sn.variable]:"fontSizes.sm",[Fn.variable]:"fontSizes.xs"}}),md:Vn({stepper:{[gt.variable]:"sizes.8",[on.variable]:"sizes.5",[sn.variable]:"fontSizes.md",[Fn.variable]:"fontSizes.sm"}}),lg:Vn({stepper:{[gt.variable]:"sizes.10",[on.variable]:"sizes.6",[sn.variable]:"fontSizes.lg",[Fn.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ux,definePartsStyle:Xr}=ee(Ag.keys),qn=pe("switch-track-width"),Nt=pe("switch-track-height"),Ri=pe("switch-track-diff"),dx=mt.subtract(qn,Nt),ds=pe("switch-thumb-x"),Mn=pe("switch-bg"),fx=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[qn.reference],height:[Nt.reference],transitionProperty:"common",transitionDuration:"fast",[Mn.variable]:"colors.gray.300",_dark:{[Mn.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Mn.variable]:`colors.${t}.500`,_dark:{[Mn.variable]:`colors.${t}.200`}},bg:Mn.reference}},hx={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Nt.reference],height:[Nt.reference],_checked:{transform:`translateX(${ds.reference})`}},px=Xr(e=>({container:{[Ri.variable]:dx,[ds.variable]:Ri.reference,_rtl:{[ds.variable]:mt(Ri).negate().toString()}},track:fx(e),thumb:hx})),mx={sm:Xr({container:{[qn.variable]:"1.375rem",[Nt.variable]:"sizes.3"}}),md:Xr({container:{[qn.variable]:"1.875rem",[Nt.variable]:"sizes.4"}}),lg:Xr({container:{[qn.variable]:"2.875rem",[Nt.variable]:"sizes.6"}})},gx=ux({baseStyle:px,sizes:mx,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:yx,definePartsStyle:hn}=ee($g.keys),bx=hn({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"}}),vo={"&[data-is-numeric=true]":{textAlign:"end"}},vx=hn(e=>{const{colorScheme:t}=e;return{th:{color:z("gray.600","gray.400")(e),borderBottom:"1px",borderColor:z(`${t}.100`,`${t}.700`)(e),...vo},td:{borderBottom:"1px",borderColor:z(`${t}.100`,`${t}.700`)(e),...vo},caption:{color:z("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),xx=hn(e=>{const{colorScheme:t}=e;return{th:{color:z("gray.600","gray.400")(e),borderBottom:"1px",borderColor:z(`${t}.100`,`${t}.700`)(e),...vo},td:{borderBottom:"1px",borderColor:z(`${t}.100`,`${t}.700`)(e),...vo},caption:{color:z("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:z(`${t}.100`,`${t}.700`)(e)},td:{background:z(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Sx={simple:vx,striped:xx,unstyled:{}},wx={sm:hn({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:hn({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:hn({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},kx=yx({baseStyle:bx,variants:Sx,sizes:wx,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),Pe=B("tabs-color"),qe=B("tabs-bg"),Mr=B("tabs-border-color"),{defineMultiStyleConfig:Cx,definePartsStyle:it}=ee(_g.keys),Tx=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},Px=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}}},Ax=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},$x={p:4},_x=it(e=>({root:Tx(e),tab:Px(e),tablist:Ax(e),tabpanel:$x})),Rx={sm:it({tab:{py:1,px:4,fontSize:"sm"}}),md:it({tab:{fontSize:"md",py:2,px:4}}),lg:it({tab:{fontSize:"lg",py:3,px:4}})},Ex=it(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",o=r?"borderStart":"borderBottom",i=r?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[Pe.variable]:`colors.${t}.600`,_dark:{[Pe.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[qe.variable]:"colors.gray.200",_dark:{[qe.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Pe.reference,bg:qe.reference}}}),Mx=it(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Mr.variable]:"transparent",_selected:{[Pe.variable]:`colors.${t}.600`,[Mr.variable]:"colors.white",_dark:{[Pe.variable]:`colors.${t}.300`,[Mr.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Mr.reference},color:Pe.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),jx=it(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[qe.variable]:"colors.gray.50",_dark:{[qe.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[qe.variable]:"colors.white",[Pe.variable]:`colors.${t}.600`,_dark:{[qe.variable]:"colors.gray.800",[Pe.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Pe.reference,bg:qe.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),zx=it(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Se(n,`${t}.700`),bg:Se(n,`${t}.100`)}}}}),Bx=it(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Pe.variable]:"colors.gray.600",_dark:{[Pe.variable]:"inherit"},_selected:{[Pe.variable]:"colors.white",[qe.variable]:`colors.${t}.600`,_dark:{[Pe.variable]:"colors.gray.800",[qe.variable]:`colors.${t}.300`}},color:Pe.reference,bg:qe.reference}}}),Dx=it({}),Ix={line:Ex,enclosed:Mx,"enclosed-colored":jx,"soft-rounded":zx,"solid-rounded":Bx,unstyled:Dx},Vx=Cx({baseStyle:_x,sizes:Rx,variants:Ix,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:Fx,definePartsStyle:Ht}=ee(Rg.keys),Fl=B("tag-bg"),Ll=B("tag-color"),Ei=B("tag-shadow"),Yr=B("tag-min-height"),Zr=B("tag-min-width"),Jr=B("tag-font-size"),Qr=B("tag-padding-inline"),Lx={fontWeight:"medium",lineHeight:1.2,outline:0,[Ll.variable]:se.color.reference,[Fl.variable]:se.bg.reference,[Ei.variable]:se.shadow.reference,color:Ll.reference,bg:Fl.reference,boxShadow:Ei.reference,borderRadius:"md",minH:Yr.reference,minW:Zr.reference,fontSize:Jr.reference,px:Qr.reference,_focusVisible:{[Ei.variable]:"shadows.outline"}},Ox={lineHeight:1.2,overflow:"visible"},Wx={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}},Nx=Ht({container:Lx,label:Ox,closeButton:Wx}),Hx={sm:Ht({container:{[Yr.variable]:"sizes.5",[Zr.variable]:"sizes.5",[Jr.variable]:"fontSizes.xs",[Qr.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Ht({container:{[Yr.variable]:"sizes.6",[Zr.variable]:"sizes.6",[Jr.variable]:"fontSizes.sm",[Qr.variable]:"space.2"}}),lg:Ht({container:{[Yr.variable]:"sizes.8",[Zr.variable]:"sizes.8",[Jr.variable]:"fontSizes.md",[Qr.variable]:"space.3"}})},Ux={subtle:Ht(e=>({container:Hn.variants?.subtle(e)})),solid:Ht(e=>({container:Hn.variants?.solid(e)})),outline:Ht(e=>({container:Hn.variants?.outline(e)}))},Gx=Fx({variants:Ux,baseStyle:Nx,sizes:Hx,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),qx={...H.baseStyle?.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},Kx={outline:e=>H.variants?.outline(e).field??{},flushed:e=>H.variants?.flushed(e).field??{},filled:e=>H.variants?.filled(e).field??{},unstyled:H.variants?.unstyled.field??{}},Xx={xs:H.sizes?.xs.field??{},sm:H.sizes?.sm.field??{},md:H.sizes?.md.field??{},lg:H.sizes?.lg.field??{}},Yx={baseStyle:qx,sizes:Xx,variants:Kx,defaultProps:{size:"md",variant:"outline"}},jr=pe("tooltip-bg"),Mi=pe("tooltip-fg"),Zx=pe("popper-arrow-bg"),Jx={bg:jr.reference,color:Mi.reference,[jr.variable]:"colors.gray.700",[Mi.variable]:"colors.whiteAlpha.900",_dark:{[jr.variable]:"colors.gray.300",[Mi.variable]:"colors.gray.900"},[Zx.variable]:jr.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},Qx={baseStyle:Jx},eS={Accordion:Fg,Alert:wy,Avatar:jy,Badge:Hn,Breadcrumb:Ny,Button:Jy,Checkbox:bo,CloseButton:hb,Code:yb,Container:vb,Divider:Cb,Drawer:Bb,Editable:Wb,Form:Kb,FormError:e0,FormLabel:n0,Heading:i0,Input:H,Kbd:m0,Link:y0,List:w0,Menu:j0,Modal:H0,NumberInput:Q0,PinInput:rv,Popover:pv,Progress:wv,Radio:Av,Select:zv,Skeleton:Dv,SkipLink:Vv,Slider:Xv,Spinner:Jv,Stat:sx,Switch:gx,Table:kx,Tabs:Vx,Tag:Gx,Textarea:Yx,Tooltip:Qx,Card:rb,Stepper:cx},tS={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},nS={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},rS={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"}},oS={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},iS={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"},sS={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"},aS={"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)"},lS={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},cS={property:sS,easing:aS,duration:lS},uS={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},dS={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},fS={breakpoints:nS,zIndices:uS,radii:oS,blur:dS,colors:rS,...Wu,sizes:Du,shadows:iS,space:Bu,borders:tS,transition:cS},hS={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"}}},pS={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"}}},mS="ltr",gS={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},yS={semanticTokens:hS,direction:mS,...fS,components:eS,styles:pS,config:gS};function bS(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function vS(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var xS=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(vS(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=bS(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),xe="-ms-",xo="-moz-",W="-webkit-",Gu="comm",Qs="rule",ea="decl",SS="@import",qu="@keyframes",wS="@layer",kS=Math.abs,Do=String.fromCharCode,CS=Object.assign;function TS(e,t){return ye(e,0)^45?(((t<<2^ye(e,0))<<2^ye(e,1))<<2^ye(e,2))<<2^ye(e,3):0}function Ku(e){return e.trim()}function PS(e,t){return(e=t.exec(e))?e[0]:e}function N(e,t,n){return e.replace(t,n)}function fs(e,t){return e.indexOf(t)}function ye(e,t){return e.charCodeAt(t)|0}function rr(e,t,n){return e.slice(t,n)}function et(e){return e.length}function ta(e){return e.length}function zr(e,t){return t.push(e),e}function AS(e,t){return e.map(t).join("")}var Io=1,yn=1,Xu=0,Ae=0,le=0,Sn="";function Vo(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Io,column:yn,length:s,return:""}}function jn(e,t){return CS(Vo("",null,null,"",null,null,0),e,{length:-e.length},t)}function $S(){return le}function _S(){return le=Ae>0?ye(Sn,--Ae):0,yn--,le===10&&(yn=1,Io--),le}function Re(){return le=Ae<Xu?ye(Sn,Ae++):0,yn++,le===10&&(yn=1,Io++),le}function st(){return ye(Sn,Ae)}function eo(){return Ae}function dr(e,t){return rr(Sn,e,t)}function or(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Yu(e){return Io=yn=1,Xu=et(Sn=e),Ae=0,[]}function Zu(e){return Sn="",e}function to(e){return Ku(dr(Ae-1,hs(e===91?e+2:e===40?e+1:e)))}function RS(e){for(;(le=st())&&le<33;)Re();return or(e)>2||or(le)>3?"":" "}function ES(e,t){for(;--t&&Re()&&!(le<48||le>102||le>57&&le<65||le>70&&le<97););return dr(e,eo()+(t<6&&st()==32&&Re()==32))}function hs(e){for(;Re();)switch(le){case e:return Ae;case 34:case 39:e!==34&&e!==39&&hs(le);break;case 40:e===41&&hs(e);break;case 92:Re();break}return Ae}function MS(e,t){for(;Re()&&e+le!==57;)if(e+le===84&&st()===47)break;return"/*"+dr(t,Ae-1)+"*"+Do(e===47?e:Re())}function jS(e){for(;!or(st());)Re();return dr(e,Ae)}function zS(e){return Zu(no("",null,null,null,[""],e=Yu(e),0,[0],e))}function no(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,d=s,h=0,m=0,y=0,g=1,S=1,w=1,C=0,T="",P=o,R=i,_=r,A=T;S;)switch(y=C,C=Re()){case 40:if(y!=108&&ye(A,d-1)==58){fs(A+=N(to(C),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:A+=to(C);break;case 9:case 10:case 13:case 32:A+=RS(y);break;case 92:A+=ES(eo()-1,7);continue;case 47:switch(st()){case 42:case 47:zr(BS(MS(Re(),eo()),t,n),l);break;default:A+="/"}break;case 123*g:a[c++]=et(A)*w;case 125*g:case 59:case 0:switch(C){case 0:case 125:S=0;case 59+u:w==-1&&(A=N(A,/\f/g,"")),m>0&&et(A)-d&&zr(m>32?Wl(A+";",r,n,d-1):Wl(N(A," ","")+";",r,n,d-2),l);break;case 59:A+=";";default:if(zr(_=Ol(A,t,n,c,u,o,a,T,P=[],R=[],d),i),C===123)if(u===0)no(A,t,_,_,P,i,d,a,R);else switch(h===99&&ye(A,3)===110?100:h){case 100:case 108:case 109:case 115:no(e,_,_,r&&zr(Ol(e,_,_,0,0,o,a,T,o,P=[],d),R),o,R,d,a,r?P:R);break;default:no(A,_,_,_,[""],R,0,a,R)}}c=u=m=0,g=w=1,T=A="",d=s;break;case 58:d=1+et(A),m=y;default:if(g<1){if(C==123)--g;else if(C==125&&g++==0&&_S()==125)continue}switch(A+=Do(C),C*g){case 38:w=u>0?1:(A+="\f",-1);break;case 44:a[c++]=(et(A)-1)*w,w=1;break;case 64:st()===45&&(A+=to(Re())),h=st(),u=d=et(T=A+=jS(eo())),C++;break;case 45:y===45&&et(A)==2&&(g=0)}}return i}function Ol(e,t,n,r,o,i,s,a,l,c,u){for(var d=o-1,h=o===0?i:[""],m=ta(h),y=0,g=0,S=0;y<r;++y)for(var w=0,C=rr(e,d+1,d=kS(g=s[y])),T=e;w<m;++w)(T=Ku(g>0?h[w]+" "+C:N(C,/&\f/g,h[w])))&&(l[S++]=T);return Vo(e,t,n,o===0?Qs:a,l,c,u)}function BS(e,t,n){return Vo(e,t,n,Gu,Do($S()),rr(e,2,-2),0)}function Wl(e,t,n,r){return Vo(e,t,n,ea,rr(e,0,r),rr(e,r+1,-1),r)}function pn(e,t){for(var n="",r=ta(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function DS(e,t,n,r){switch(e.type){case wS:if(e.children.length)break;case SS:case ea:return e.return=e.return||e.value;case Gu:return"";case qu:return e.return=e.value+"{"+pn(e.children,r)+"}";case Qs:e.value=e.props.join(",")}return et(n=pn(e.children,r))?e.return=e.value+"{"+n+"}":""}function IS(e){var t=ta(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}function VS(e){return function(t){t.root||(t=t.return)&&e(t)}}var Nl=function(t){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var o=t(r);return n.set(r,o),o}};function Ju(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var FS=function(t,n,r){for(var o=0,i=0;o=i,i=st(),o===38&&i===12&&(n[r]=1),!or(i);)Re();return dr(t,Ae)},LS=function(t,n){var r=-1,o=44;do switch(or(o)){case 0:o===38&&st()===12&&(n[r]=1),t[r]+=FS(Ae-1,n,r);break;case 2:t[r]+=to(o);break;case 4:if(o===44){t[++r]=st()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Do(o)}while(o=Re());return t},OS=function(t,n){return Zu(LS(Yu(t),n))},Hl=new WeakMap,WS=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Hl.get(r))&&!o){Hl.set(t,!0);for(var i=[],s=OS(n,i),a=r.props,l=0,c=0;l<s.length;l++)for(var u=0;u<a.length;u++,c++)t.props[c]=i[l]?s[l].replace(/&\f/g,a[u]):a[u]+" "+s[l]}}},NS=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Qu(e,t){switch(TS(e,t)){case 5103:return W+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return W+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return W+e+xo+e+xe+e+e;case 6828:case 4268:return W+e+xe+e+e;case 6165:return W+e+xe+"flex-"+e+e;case 5187:return W+e+N(e,/(\w+).+(:[^]+)/,W+"box-$1$2"+xe+"flex-$1$2")+e;case 5443:return W+e+xe+"flex-item-"+N(e,/flex-|-self/,"")+e;case 4675:return W+e+xe+"flex-line-pack"+N(e,/align-content|flex-|-self/,"")+e;case 5548:return W+e+xe+N(e,"shrink","negative")+e;case 5292:return W+e+xe+N(e,"basis","preferred-size")+e;case 6060:return W+"box-"+N(e,"-grow","")+W+e+xe+N(e,"grow","positive")+e;case 4554:return W+N(e,/([^-])(transform)/g,"$1"+W+"$2")+e;case 6187:return N(N(N(e,/(zoom-|grab)/,W+"$1"),/(image-set)/,W+"$1"),e,"")+e;case 5495:case 3959:return N(e,/(image-set\([^]*)/,W+"$1$`$1");case 4968:return N(N(e,/(.+:)(flex-)?(.*)/,W+"box-pack:$3"+xe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+W+e+e;case 4095:case 3583:case 4068:case 2532:return N(e,/(.+)-inline(.+)/,W+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(et(e)-1-t>6)switch(ye(e,t+1)){case 109:if(ye(e,t+4)!==45)break;case 102:return N(e,/(.+:)(.+)-([^]+)/,"$1"+W+"$2-$3$1"+xo+(ye(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~fs(e,"stretch")?Qu(N(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ye(e,t+1)!==115)break;case 6444:switch(ye(e,et(e)-3-(~fs(e,"!important")&&10))){case 107:return N(e,":",":"+W)+e;case 101:return N(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+W+(ye(e,14)===45?"inline-":"")+"box$3$1"+W+"$2$3$1"+xe+"$2box$3")+e}break;case 5936:switch(ye(e,t+11)){case 114:return W+e+xe+N(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return W+e+xe+N(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return W+e+xe+N(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return W+e+xe+e+e}return e}var HS=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case ea:t.return=Qu(t.value,t.length);break;case qu:return pn([jn(t,{value:N(t.value,"@","@"+W)})],o);case Qs:if(t.length)return AS(t.props,function(i){switch(PS(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pn([jn(t,{props:[N(i,/:(read-\w+)/,":"+xo+"$1")]})],o);case"::placeholder":return pn([jn(t,{props:[N(i,/:(plac\w+)/,":"+W+"input-$1")]}),jn(t,{props:[N(i,/:(plac\w+)/,":"+xo+"$1")]}),jn(t,{props:[N(i,/:(plac\w+)/,xe+"input-$1")]})],o)}return""})}},US=[HS],GS=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var S=g.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||US,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var S=g.getAttribute("data-emotion").split(" "),w=1;w<S.length;w++)i[S[w]]=!0;a.push(g)});var l,c=[WS,NS];{var u,d=[DS,VS(function(g){u.insert(g)})],h=IS(c.concat(o,d)),m=function(S){return pn(zS(S),h)};l=function(S,w,C,T){u=C,m(S?S+"{"+w.styles+"}":w.styles),T&&(y.inserted[w.name]=!0)}}var y={key:n,sheet:new xS({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return y.sheet.hydrate(a),y};function So(){return So=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},So.apply(null,arguments)}var ed={exports:{}},K={};/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var me=typeof Symbol=="function"&&Symbol.for,na=me?Symbol.for("react.element"):60103,ra=me?Symbol.for("react.portal"):60106,Fo=me?Symbol.for("react.fragment"):60107,Lo=me?Symbol.for("react.strict_mode"):60108,Oo=me?Symbol.for("react.profiler"):60114,Wo=me?Symbol.for("react.provider"):60109,No=me?Symbol.for("react.context"):60110,oa=me?Symbol.for("react.async_mode"):60111,Ho=me?Symbol.for("react.concurrent_mode"):60111,Uo=me?Symbol.for("react.forward_ref"):60112,Go=me?Symbol.for("react.suspense"):60113,qS=me?Symbol.for("react.suspense_list"):60120,qo=me?Symbol.for("react.memo"):60115,Ko=me?Symbol.for("react.lazy"):60116,KS=me?Symbol.for("react.block"):60121,XS=me?Symbol.for("react.fundamental"):60117,YS=me?Symbol.for("react.responder"):60118,ZS=me?Symbol.for("react.scope"):60119;function Me(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case na:switch(e=e.type,e){case oa:case Ho:case Fo:case Oo:case Lo:case Go:return e;default:switch(e=e&&e.$$typeof,e){case No:case Uo:case Ko:case qo:case Wo:return e;default:return t}}case ra:return t}}}function td(e){return Me(e)===Ho}K.AsyncMode=oa;K.ConcurrentMode=Ho;K.ContextConsumer=No;K.ContextProvider=Wo;K.Element=na;K.ForwardRef=Uo;K.Fragment=Fo;K.Lazy=Ko;K.Memo=qo;K.Portal=ra;K.Profiler=Oo;K.StrictMode=Lo;K.Suspense=Go;K.isAsyncMode=function(e){return td(e)||Me(e)===oa};K.isConcurrentMode=td;K.isContextConsumer=function(e){return Me(e)===No};K.isContextProvider=function(e){return Me(e)===Wo};K.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===na};K.isForwardRef=function(e){return Me(e)===Uo};K.isFragment=function(e){return Me(e)===Fo};K.isLazy=function(e){return Me(e)===Ko};K.isMemo=function(e){return Me(e)===qo};K.isPortal=function(e){return Me(e)===ra};K.isProfiler=function(e){return Me(e)===Oo};K.isStrictMode=function(e){return Me(e)===Lo};K.isSuspense=function(e){return Me(e)===Go};K.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Fo||e===Ho||e===Oo||e===Lo||e===Go||e===qS||typeof e=="object"&&e!==null&&(e.$$typeof===Ko||e.$$typeof===qo||e.$$typeof===Wo||e.$$typeof===No||e.$$typeof===Uo||e.$$typeof===XS||e.$$typeof===YS||e.$$typeof===ZS||e.$$typeof===KS)};K.typeOf=Me;ed.exports=K;var JS=ed.exports,nd=JS,QS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},e1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},rd={};rd[nd.ForwardRef]=QS;rd[nd.Memo]=e1;var t1=!0;function od(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var ia=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||t1===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},sa=function(t,n,r){ia(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function n1(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var r1={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o1=/[A-Z]|^ms/g,i1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,id=function(t){return t.charCodeAt(1)===45},Ul=function(t){return t!=null&&typeof t!="boolean"},ji=Ju(function(e){return id(e)?e:e.replace(o1,"-$&").toLowerCase()}),Gl=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(i1,function(r,o,i){return tt={name:o,styles:i,next:tt},o})}return r1[t]!==1&&!id(t)&&typeof n=="number"&&n!==0?n+"px":n};function ir(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return tt={name:o.name,styles:o.styles,next:tt},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)tt={name:s.name,styles:s.styles,next:tt},s=s.next;var a=i.styles+";";return a}return s1(e,t,n)}case"function":{if(e!==void 0){var l=tt,c=n(e);return tt=l,ir(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function s1(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ir(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object"){var a=s;t!=null&&t[a]!==void 0?r+=i+"{"+t[a]+"}":Ul(a)&&(r+=ji(i)+":"+Gl(i,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var l=0;l<s.length;l++)Ul(s[l])&&(r+=ji(i)+":"+Gl(i,s[l])+";");else{var c=ir(e,t,s);switch(i){case"animation":case"animationName":{r+=ji(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var ql=/label:\s*([^\s;{]+)\s*(;|$)/g,tt;function Xo(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";tt=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=ir(n,t,i);else{var s=i;o+=s[0]}for(var a=1;a<e.length;a++)if(o+=ir(n,t,e[a]),r){var l=i;o+=l[a]}ql.lastIndex=0;for(var c="",u;(u=ql.exec(o))!==null;)c+="-"+u[1];var d=n1(o)+c;return{name:d,styles:o,next:tt}}var a1=function(t){return t()},sd=bl.useInsertionEffect?bl.useInsertionEffect:!1,ad=sd||a1,Kl=sd||v.useLayoutEffect,aa=v.createContext(typeof HTMLElement<"u"?GS({key:"css"}):null);aa.Provider;var l1=function(){return v.useContext(aa)},la=function(t){return v.forwardRef(function(n,r){var o=v.useContext(aa);return t(n,o,r)})},bn=v.createContext({}),c1=function(t,n){if(typeof n=="function"){var r=n(t);return r}return So({},t,n)},u1=Nl(function(e){return Nl(function(t){return c1(e,t)})}),d1=function(t){var n=v.useContext(bn);return t.theme!==n&&(n=u1(n)(t.theme)),v.createElement(bn.Provider,{value:n},t.children)},ca={}.hasOwnProperty,ps="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",f1=function(t,n){var r={};for(var o in n)ca.call(n,o)&&(r[o]=n[o]);return r[ps]=t,r},h1=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return ia(n,r,o),ad(function(){return sa(n,r,o)}),null},p1=la(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[ps],i=[r],s="";typeof e.className=="string"?s=od(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var a=Xo(i,void 0,v.useContext(bn));s+=t.key+"-"+a.name;var l={};for(var c in e)ca.call(e,c)&&c!=="css"&&c!==ps&&(l[c]=e[c]);return l.className=s,n&&(l.ref=n),v.createElement(v.Fragment,null,v.createElement(h1,{cache:t,serialized:a,isStringTag:typeof o=="string"}),v.createElement(o,l))}),m1=p1,Xl=function(t,n){var r=arguments;if(n==null||!ca.call(n,"css"))return v.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=m1,i[1]=f1(t,n);for(var s=2;s<o;s++)i[s]=r[s];return v.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Xl||(Xl={}));var Yo=la(function(e,t){var n=e.styles,r=Xo([n],void 0,v.useContext(bn)),o=v.useRef();return Kl(function(){var i=t.key+"-global",s=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,l=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),l!==null&&(a=!0,l.setAttribute("data-emotion",i),s.hydrate([l])),o.current=[s,a],function(){s.flush()}},[t]),Kl(function(){var i=o.current,s=i[0],a=i[1];if(a){i[1]=!1;return}if(r.next!==void 0&&sa(t,r.next,!0),s.tags.length){var l=s.tags[s.tags.length-1].nextElementSibling;s.before=l,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function g1(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Xo(t)}function y1(){var e=g1.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}const ua=v.createContext({});ua.displayName="ColorModeContext";function da(){const e=v.useContext(ua);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}const Br={light:"chakra-ui-light",dark:"chakra-ui-dark"};function b1(e={}){const{preventTransition:t=!0,nonce:n}=e,r={setDataset:o=>{const i=t?r.preventTransition():void 0;document.documentElement.dataset.theme=o,document.documentElement.style.colorScheme=o,i?.()},setClassName(o){document.body.classList.add(o?Br.dark:Br.light),document.body.classList.remove(o?Br.light:Br.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(o){return r.query().matches??o==="dark"?"dark":"light"},addListener(o){const i=r.query(),s=a=>{o(a.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(s):i.addEventListener("change",s),()=>{typeof i.removeListener=="function"?i.removeListener(s):i.removeEventListener("change",s)}},preventTransition(){const o=document.createElement("style");return o.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),n!==void 0&&(o.nonce=n),document.head.appendChild(o),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(o)})})}}};return r}const v1="chakra-ui-color-mode";function x1(e){return{ssr:!1,type:"localStorage",get(t){if(!globalThis?.document)return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}const S1=x1(v1),Yl=()=>{},w1=zp()?v.useLayoutEffect:v.useEffect;function Zl(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const ld=function(t){const{value:n,children:r,options:{useSystemColorMode:o,initialColorMode:i,disableTransitionOnChange:s}={},colorModeManager:a=S1}=t,l=l1(),c=i==="dark"?"dark":"light",[u,d]=v.useState(()=>Zl(a,c)),[h,m]=v.useState(()=>Zl(a)),{getSystemTheme:y,setClassName:g,setDataset:S,addListener:w}=v.useMemo(()=>b1({preventTransition:s,nonce:l?.nonce}),[s,l?.nonce]),C=i==="system"&&!u?h:u,T=v.useCallback(_=>{const A=_==="system"?y():_;d(A),g(A==="dark"),S(A),a.set(A)},[a,y,g,S]);w1(()=>{i==="system"&&m(y())},[]),v.useEffect(()=>{const _=a.get();if(_){T(_);return}if(i==="system"){T("system");return}T(c)},[a,c,i,T]);const P=v.useCallback(()=>{T(C==="dark"?"light":"dark")},[C,T]);v.useEffect(()=>{if(o)return w(T)},[o,w,T]);const R=v.useMemo(()=>({colorMode:n??C,toggleColorMode:n?Yl:P,setColorMode:n?Yl:T,forced:n!==void 0}),[C,P,T,n]);return p.jsx(ua.Provider,{value:R,children:r})};ld.displayName="ColorModeProvider";const cd=String.raw,ud=cd`
: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;
}
}
`,k1=()=>p.jsx(Yo,{styles:ud}),C1=({scope:e=""})=>p.jsx(Yo,{styles:cd`
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;
}
${ud}
`});function T1(e){const{cssVarsRoot:t,theme:n,children:r}=e,o=v.useMemo(()=>sg(n),[n]);return p.jsxs(d1,{theme:o,children:[p.jsx(P1,{root:t}),r]})}function P1({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return p.jsx(Yo,{styles:n=>({[t]:n.__cssVars})})}xt({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function A1(){const{colorMode:e}=da();return p.jsx(Yo,{styles:t=>{const n=Pu(t,"styles.global"),r=rt(n,{theme:t,colorMode:e});return r?Eu(r)(t):void 0}})}const[$1,_1]=xt({strict:!1,name:"PortalManagerContext"});function dd(e){const{children:t,zIndex:n}=e;return p.jsx($1,{value:{zIndex:n},children:t})}dd.displayName="PortalManager";const fd=v.createContext({getDocument(){return document},getWindow(){return window}});fd.displayName="EnvironmentContext";function hd(e){const{children:t,environment:n,disabled:r}=e,o=v.useRef(null),i=v.useMemo(()=>n||{getDocument:()=>o.current?.ownerDocument??document,getWindow:()=>o.current?.ownerDocument.defaultView??window},[n]),s=!r||!n;return p.jsxs(fd.Provider,{value:i,children:[t,s&&p.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}hd.displayName="EnvironmentProvider";const R1=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:o,resetCSS:i=!0,theme:s={},environment:a,cssVarsRoot:l,disableEnvironment:c,disableGlobalStyle:u}=e,d=p.jsx(hd,{environment:a,disabled:c,children:t});return p.jsx(T1,{theme:s,cssVarsRoot:l,children:p.jsxs(ld,{colorModeManager:n,options:s.config,children:[i?p.jsx(C1,{scope:o}):p.jsx(k1,{}),!u&&p.jsx(A1,{}),r?p.jsx(dd,{zIndex:r,children:d}):d]})})},fa=v.createContext({});function ha(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}const E1=typeof window<"u",pd=E1?v.useLayoutEffect:v.useEffect,fr=v.createContext(null);function pa(e,t){e.indexOf(t)===-1&&e.push(t)}function wo(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const lt=(e,t,n)=>n>t?t:n<e?e:n;let ma=()=>{};const $t={},md=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),gd=e=>typeof e=="object"&&e!==null,yd=e=>/^0[^.\s]+$/u.test(e);function bd(e){let t;return()=>(t===void 0&&(t=e()),t)}const Le=e=>e,hr=(...e)=>e.reduce((t,n)=>r=>n(t(r))),sr=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class ga{constructor(){this.subscriptions=[]}add(t){return pa(this.subscriptions,t),()=>wo(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ee=e=>e*1e3,Ie=e=>e/1e3,vd=(e,t)=>t?e*(1e3/t):0,xd=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,M1=1e-7,j1=12;function z1(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=xd(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>M1&&++a<j1);return s}function pr(e,t,n,r){if(e===t&&n===r)return Le;const o=i=>z1(i,0,1,e,n);return i=>i===0||i===1?i:xd(o(i),t,r)}const Sd=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,wd=e=>t=>1-e(1-t),kd=pr(.33,1.53,.69,.99),ya=wd(kd),Cd=Sd(ya),Td=e=>e>=1?1:(e*=2)<1?.5*ya(e):.5*(2-Math.pow(2,-10*(e-1))),ba=e=>1-Math.sin(Math.acos(e)),Pd=wd(ba),Ad=Sd(ba),B1=pr(.42,0,1,1),D1=pr(0,0,.58,1),$d=pr(.42,0,.58,1),I1=e=>Array.isArray(e)&&typeof e[0]!="number",_d=e=>Array.isArray(e)&&typeof e[0]=="number",V1={linear:Le,easeIn:B1,easeInOut:$d,easeOut:D1,circIn:ba,circInOut:Ad,circOut:Pd,backIn:ya,backInOut:Cd,backOut:kd,anticipate:Td},F1=e=>typeof e=="string",Jl=e=>{if(_d(e)){ma(e.length===4);const[t,n,r,o]=e;return pr(t,n,r,o)}else if(F1(e))return V1[e];return e},Dr=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function L1(e,t){let n=new Set,r=new Set,o=!1,i=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){s.has(u)&&(c.schedule(u),e()),u(a)}const c={schedule:(u,d=!1,h=!1)=>{const y=h&&o?n:r;return d&&s.add(u),y.add(u),u},cancel:u=>{r.delete(u),s.delete(u)},process:u=>{if(a=u,o){i=!0;return}o=!0;const d=n;n=r,r=d,n.forEach(l),n.clear(),o=!1,i&&(i=!1,c.process(u))}};return c}const O1=40;function Rd(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=Dr.reduce((T,P)=>(T[P]=L1(i),T),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:h,render:m,postRender:y}=s,g=()=>{const T=$t.useManualTiming,P=T?o.timestamp:performance.now();n=!1,T||(o.delta=r?1e3/60:Math.max(Math.min(P-o.timestamp,O1),1)),o.timestamp=P,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),u.process(o),d.process(o),h.process(o),m.process(o),y.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(g))},S=()=>{n=!0,r=!0,o.isProcessing||e(g)};return{schedule:Dr.reduce((T,P)=>{const R=s[P];return T[P]=(_,A=!1,$=!1)=>(n||S(),R.schedule(_,A,$)),T},{}),cancel:T=>{for(let P=0;P<Dr.length;P++)s[Dr[P]].cancel(T)},state:o,steps:s}}const{schedule:Z,cancel:_t,state:ge,steps:zi}=Rd(typeof requestAnimationFrame<"u"?requestAnimationFrame:Le,!0);let ro;function W1(){ro=void 0}const we={now:()=>(ro===void 0&&we.set(ge.isProcessing||$t.useManualTiming?ge.timestamp:performance.now()),ro),set:e=>{ro=e,queueMicrotask(W1)}},Ed=e=>t=>typeof t=="string"&&t.startsWith(e),Md=Ed("--"),N1=Ed("var(--"),va=e=>N1(e)?H1.test(e.split("/*")[0].trim()):!1,H1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Ql(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const wn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ar={...wn,transform:e=>lt(0,1,e)},Ir={...wn,default:1},Kn=e=>Math.round(e*1e5)/1e5,xa=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function U1(e){return e==null}const G1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Sa=(e,t)=>n=>!!(typeof n=="string"&&G1.test(n)&&n.startsWith(e)||t&&!U1(n)&&Object.prototype.hasOwnProperty.call(n,t)),jd=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(xa);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},q1=e=>lt(0,255,e),Bi={...wn,transform:e=>Math.round(q1(e))},Lt={test:Sa("rgb","red"),parse:jd("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Bi.transform(e)+", "+Bi.transform(t)+", "+Bi.transform(n)+", "+Kn(ar.transform(r))+")"};function K1(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const ms={test:Sa("#"),parse:K1,transform:Lt.transform},mr=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ht=mr("deg"),at=mr("%"),E=mr("px"),X1=mr("vh"),Y1=mr("vw"),ec={...at,parse:e=>at.parse(e)/100,transform:e=>at.transform(e*100)},an={test:Sa("hsl","hue"),parse:jd("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+at.transform(Kn(t))+", "+at.transform(Kn(n))+", "+Kn(ar.transform(r))+")"},ae={test:e=>Lt.test(e)||ms.test(e)||an.test(e),parse:e=>Lt.test(e)?Lt.parse(e):an.test(e)?an.parse(e):ms.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Lt.transform(e):an.transform(e),getAnimatableNone:e=>{const t=ae.parse(e);return t.alpha=0,ae.transform(t)}},Z1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function J1(e){return isNaN(e)&&typeof e=="string"&&(e.match(xa)?.length||0)+(e.match(Z1)?.length||0)>0}const zd="number",Bd="color",Q1="var",ew="var(",tc="${}",tw=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function vn(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(tw,l=>(ae.test(l)?(r.color.push(i),o.push(Bd),n.push(ae.parse(l))):l.startsWith(ew)?(r.var.push(i),o.push(Q1),n.push(l)):(r.number.push(i),o.push(zd),n.push(parseFloat(l))),++i,tc)).split(tc);return{values:n,split:a,indexes:r,types:o}}function nw(e){return vn(e).values}function Dd({split:e,types:t}){const n=e.length;return r=>{let o="";for(let i=0;i<n;i++)if(o+=e[i],r[i]!==void 0){const s=t[i];s===zd?o+=Kn(r[i]):s===Bd?o+=ae.transform(r[i]):o+=r[i]}return o}}function rw(e){return Dd(vn(e))}const ow=e=>typeof e=="number"?0:ae.test(e)?ae.getAnimatableNone(e):e,iw=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:ow(e);function sw(e){const t=vn(e);return Dd(t)(t.values.map((r,o)=>iw(r,t.split[o])))}const Ke={test:J1,parse:nw,createTransformer:rw,getAnimatableNone:sw};function Di(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function aw({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Di(l,a,e+1/3),i=Di(l,a,e),s=Di(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function ko(e,t){return n=>n>0?t:e}const Y=(e,t,n)=>e+(t-e)*n,Ii=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},lw=[ms,Lt,an],cw=e=>lw.find(t=>t.test(e));function nc(e){const t=cw(e);if(!t)return!1;let n=t.parse(e);return t===an&&(n=aw(n)),n}const rc=(e,t)=>{const n=nc(e),r=nc(t);if(!n||!r)return ko(e,t);const o={...n};return i=>(o.red=Ii(n.red,r.red,i),o.green=Ii(n.green,r.green,i),o.blue=Ii(n.blue,r.blue,i),o.alpha=Y(n.alpha,r.alpha,i),Lt.transform(o))},gs=new Set(["none","hidden"]);function uw(e,t){return gs.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function dw(e,t){return n=>Y(e,t,n)}function wa(e){return typeof e=="number"?dw:typeof e=="string"?va(e)?ko:ae.test(e)?rc:pw:Array.isArray(e)?Id:typeof e=="object"?ae.test(e)?rc:fw:ko}function Id(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>wa(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function fw(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=wa(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function hw(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],s=e.indexes[i][r[i]],a=e.values[s]??0;n[o]=a,r[i]++}return n}const pw=(e,t)=>{const n=Ke.createTransformer(t),r=vn(e),o=vn(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?gs.has(e)&&!o.values.length||gs.has(t)&&!r.values.length?uw(e,t):hr(Id(hw(r,o),o.values),n):ko(e,t)};function Vd(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Y(e,t,n):wa(e)(e,t)}const mw=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Z.update(t,n),stop:()=>_t(t),now:()=>ge.isProcessing?ge.timestamp:we.now()}},Fd=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Co=2e4;function ka(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Co;)t+=n,r=e.next(t);return t>=Co?1/0:t}function gw(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(ka(r),Co);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:Ie(o)}}const ie={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function ys(e,t){return e*Math.sqrt(1-t*t)}const yw=12;function bw(e,t,n){let r=n;for(let o=1;o<yw;o++)r=r-e(r)/t(r);return r}const Vi=.001;function vw({duration:e=ie.duration,bounce:t=ie.bounce,velocity:n=ie.velocity,mass:r=ie.mass}){let o,i,s=1-t;s=lt(ie.minDamping,ie.maxDamping,s),e=lt(ie.minDuration,ie.maxDuration,Ie(e)),s<1?(o=c=>{const u=c*s,d=u*e,h=u-n,m=ys(c,s),y=Math.exp(-d);return Vi-h/m*y},i=c=>{const d=c*s*e,h=d*n+n,m=Math.pow(s,2)*Math.pow(c,2)*e,y=Math.exp(-d),g=ys(Math.pow(c,2),s);return(-o(c)+Vi>0?-1:1)*((h-m)*y)/g}):(o=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-Vi+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=bw(o,i,a);if(e=Ee(e),isNaN(l))return{stiffness:ie.stiffness,damping:ie.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}const xw=["duration","bounce"],Sw=["stiffness","damping","mass"];function oc(e,t){return t.some(n=>e[n]!==void 0)}function ww(e){let t={velocity:ie.velocity,stiffness:ie.stiffness,damping:ie.damping,mass:ie.mass,isResolvedFromDuration:!1,...e};if(!oc(e,Sw)&&oc(e,xw))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*lt(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:ie.mass,stiffness:o,damping:i}}else{const n=vw({...e,velocity:0});t={...t,...n,mass:ie.mass},t.isResolvedFromDuration=!0}return t}function To(e=ie.visualDuration,t=ie.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:h,isResolvedFromDuration:m}=ww({...n,velocity:-Ie(n.velocity||0)}),y=h||0,g=c/(2*Math.sqrt(l*u)),S=s-i,w=Ie(Math.sqrt(l/u)),C=Math.abs(S)<5;r||(r=C?ie.restSpeed.granular:ie.restSpeed.default),o||(o=C?ie.restDelta.granular:ie.restDelta.default);let T,P,R,_,A,$;if(g<1)R=ys(w,g),_=(y+g*w*S)/R,T=j=>{const F=Math.exp(-g*w*j);return s-F*(_*Math.sin(R*j)+S*Math.cos(R*j))},A=g*w*_+S*R,$=g*w*S-_*R,P=j=>Math.exp(-g*w*j)*(A*Math.sin(R*j)+$*Math.cos(R*j));else if(g===1){T=F=>s-Math.exp(-w*F)*(S+(y+w*S)*F);const j=y+w*S;P=F=>Math.exp(-w*F)*(w*j*F-y)}else{const j=w*Math.sqrt(g*g-1);T=je=>{const We=Math.exp(-g*w*je),ze=Math.min(j*je,300);return s-We*((y+g*w*S)*Math.sinh(ze)+j*S*Math.cosh(ze))/j};const F=(y+g*w*S)/j,ue=g*w*F-S*j,Oe=g*w*S-F*j;P=je=>{const We=Math.exp(-g*w*je),ze=Math.min(j*je,300);return We*(ue*Math.sinh(ze)+Oe*Math.cosh(ze))}}const D={calculatedDuration:m&&d||null,velocity:j=>Ee(P(j)),next:j=>{if(!m&&g<1){const ue=Math.exp(-g*w*j),Oe=Math.sin(R*j),je=Math.cos(R*j),We=s-ue*(_*Oe+S*je),ze=Ee(ue*(A*Oe+$*je));return a.done=Math.abs(ze)<=r&&Math.abs(s-We)<=o,a.value=a.done?s:We,a}const F=T(j);if(m)a.done=j>=d;else{const ue=Ee(P(j));a.done=Math.abs(ue)<=r&&Math.abs(s-F)<=o}return a.value=a.done?s:F,a},toString:()=>{const j=Math.min(ka(D),Co),F=Fd(ue=>D.next(j*ue).value,j,30);return j+"ms "+F},toTransition:()=>{}};return D}To.applyToOptions=e=>{const t=gw(e,100,To);return e.ease=t.ease,e.duration=Ee(t.duration),e.type="keyframes",e};const kw=5;function Ld(e,t,n){const r=Math.max(t-kw,0);return vd(n-e(r),t-r)}function bs({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},m=$=>a!==void 0&&$<a||l!==void 0&&$>l,y=$=>a===void 0?l:l===void 0||Math.abs(a-$)<Math.abs(l-$)?a:l;let g=n*t;const S=d+g,w=s===void 0?S:s(S);w!==S&&(g=w-d);const C=$=>-g*Math.exp(-$/r),T=$=>w+C($),P=$=>{const D=C($),j=T($);h.done=Math.abs(D)<=c,h.value=h.done?w:j};let R,_;const A=$=>{m(h.value)&&(R=$,_=To({keyframes:[h.value,y(h.value)],velocity:Ld(T,$,h.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return A(0),{calculatedDuration:null,next:$=>{let D=!1;return!_&&R===void 0&&(D=!0,P($),A($)),R!==void 0&&$>=R?_.next($-R):(!D&&P($),h)}}}function Cw(e,t,n){const r=[],o=n||$t.mix||Vd,i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||Le:t;a=hr(l,a)}r.push(a)}return r}function Tw(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(ma(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Cw(t,r,o),l=a.length,c=u=>{if(s&&u<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const h=sr(e[d],e[d+1],u);return a[d](h)};return n?u=>c(lt(e[0],e[i-1],u)):c}function Pw(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=sr(0,t,r);e.push(Y(n,1,o))}}function Aw(e){const t=[0];return Pw(t,e.length-1),t}function $w(e,t){return e.map(n=>n*t)}function _w(e,t){return e.map(()=>t||$d).splice(0,e.length-1)}function Xn({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=I1(r)?r.map(Jl):Jl(r),i={done:!1,value:t[0]},s=$w(n&&n.length===t.length?n:Aw(t),e),a=Tw(s,t,{ease:Array.isArray(o)?o:_w(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const Rw=e=>e!==null;function Zo(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(Rw),a=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const Ew={decay:bs,inertia:bs,tween:Xn,keyframes:Xn,spring:To};function Od(e){typeof e.type=="string"&&(e.type=Ew[e.type])}class Ca{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Mw=e=>e/100;class Po extends Ca{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==we.now()&&this.tick(we.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Od(t);const{type:n=Xn,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const l=n||Xn;l!==Xn&&typeof a[0]!="number"&&(this.mixKeyframes=hr(Mw,Vd(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=ka(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:u,repeat:d,repeatType:h,repeatDelay:m,type:y,onUpdate:g,finalKeyframe:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const w=this.currentTime-c*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?w<0:w>o;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let T=this.currentTime,P=r;if(d){const $=Math.min(this.currentTime,o)/a;let D=Math.floor($),j=$%1;!j&&$>=1&&(j=1),j===1&&D--,D=Math.min(D,d+1),!!(D%2)&&(h==="reverse"?(j=1-j,m&&(j-=m/a)):h==="mirror"&&(P=s)),T=lt(0,1,j)*a}let R;C?(this.delayState.value=u[0],R=this.delayState):R=P.next(T),i&&!C&&(R.value=i(R.value));let{done:_}=R;!C&&l!==null&&(_=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&_);return A&&y!==bs&&(R.value=Zo(u,this.options,S,this.speed)),g&&g(R.value),A&&this.finish(),R}then(t,n){return this.finished.then(t,n)}get duration(){return Ie(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ie(t)}get time(){return Ie(this.currentTime)}set time(t){t=Ee(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return Ld(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(we.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=Ie(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=mw,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(we.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function jw(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Ot=e=>e*180/Math.PI,vs=e=>{const t=Ot(Math.atan2(e[1],e[0]));return xs(t)},zw={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:vs,rotateZ:vs,skewX:e=>Ot(Math.atan(e[1])),skewY:e=>Ot(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},xs=e=>(e=e%360,e<0&&(e+=360),e),ic=vs,sc=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ac=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Bw={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:sc,scaleY:ac,scale:e=>(sc(e)+ac(e))/2,rotateX:e=>xs(Ot(Math.atan2(e[6],e[5]))),rotateY:e=>xs(Ot(Math.atan2(-e[2],e[0]))),rotateZ:ic,rotate:ic,skewX:e=>Ot(Math.atan(e[4])),skewY:e=>Ot(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ss(e){return e.includes("scale")?1:0}function ws(e,t){if(!e||e==="none")return Ss(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=Bw,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=zw,o=a}if(!o)return Ss(t);const i=r[t],s=o[1].split(",").map(Iw);return typeof i=="function"?i(s):s[i]}const Dw=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return ws(n,t)};function Iw(e){return parseFloat(e.trim())}const kn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Cn=new Set([...kn,"pathRotation"]),lc=e=>e===wn||e===E,Vw=new Set(["x","y","z"]),Fw=kn.filter(e=>!Vw.has(e));function Lw(e){const t=[];return Fw.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const At={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const o=e.max-e.min;return r==="border-box"?o:o-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const o=e.max-e.min;return r==="border-box"?o:o-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ws(t,"x"),y:(e,{transform:t})=>ws(t,"y")};At.translateX=At.x;At.translateY=At.y;const Ut=new Set;let ks=!1,Cs=!1,Ts=!1;function Wd(){if(Cs){const e=Array.from(Ut).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=Lw(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{r.getValue(i)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Cs=!1,ks=!1,Ut.forEach(e=>e.complete(Ts)),Ut.clear()}function Nd(){Ut.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Cs=!0)})}function Ow(){Ts=!0,Nd(),Wd(),Ts=!1}class Ta{constructor(t,n,r,o,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Ut.add(this),ks||(ks=!0,Z.read(Nd),Z.resolveKeyframes(Wd))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const i=o?.get(),s=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),o&&i===void 0&&o.set(t[0])}jw(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ut.delete(this)}cancel(){this.state==="scheduled"&&(Ut.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Ww=e=>e.startsWith("--");function Hd(e,t,n){Ww(t)?e.style.setProperty(t,n):e.style[t]=n}const Nw={};function Ud(e,t){const n=bd(e);return()=>Nw[t]??n()}const Hw=Ud(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Gd=Ud(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ln=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,cc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ln([0,.65,.55,1]),circOut:Ln([.55,0,1,.45]),backIn:Ln([.31,.01,.66,-.59]),backOut:Ln([.33,1.53,.69,.99])};function qd(e,t){if(e)return typeof e=="function"?Gd()?Fd(e,t):"ease-out":_d(e)?Ln(e):Array.isArray(e)?e.map(n=>qd(n,t)||cc.easeOut):cc[e]}function Uw(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const d=qd(a,o);Array.isArray(d)&&(u.easing=d);const h={delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(u,h)}function Kd(e){return typeof e=="function"&&"applyToOptions"in e}function Gw({type:e,...t}){return Kd(e)&&Gd()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Xd extends Ca{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=t,ma(typeof t.type!="string");const c=Gw(t);this.animation=Uw(n,r,o,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=Zo(o,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(u),Hd(n,r,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Ie(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ie(t)}get time(){return Ie(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ee(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:o}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Hw()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),Le):o(this)}}const Yd={anticipate:Td,backInOut:Cd,circInOut:Ad};function qw(e){return e in Yd}function Kw(e){typeof e.ease=="string"&&qw(e.ease)&&(e.ease=Yd[e.ease])}const Fi=10;class Xw extends Xd{constructor(t){Kw(t),Od(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Po({...s,autoplay:!1}),l=Math.max(Fi,we.now()-this.startTime),c=lt(0,Fi,l-Fi),u=a.sample(l).value,{name:d}=this.options;i&&d&&Hd(i,d,u),n.setWithVelocity(a.sample(Math.max(0,l-c)).value,u,c),a.stop()}}const uc=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ke.test(e)||e==="0")&&!e.startsWith("url("));function Yw(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Zw(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],s=uc(o,t),a=uc(i,t);return!s||!a?!1:Yw(e)||(n==="spring"||Kd(n))&&r}function Ps(e){e.duration=0,e.type="keyframes"}const Zd=new Set(["opacity","clipPath","filter","transform"]),Jw=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Qw(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&Jw.test(e[t]))return!0;return!1}const ek=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),tk=bd(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function nk(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s,keyframes:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=t.owner.getProps();return tk()&&n&&(Zd.has(n)||ek.has(n)&&Qw(a))&&(n!=="transform"||!u)&&!c&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const rk=40;class ok extends Ca{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:l,motionValue:c,element:u,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=we.now();const h={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,name:l,motionValue:c,element:u,...d},m=u?.KeyframeResolver||Ta;this.keyframeResolver=new m(a,(y,g,S)=>this.onKeyframesResolved(y,g,h,!S),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:i,type:s,velocity:a,delay:l,isHandoff:c,onUpdate:u}=r;this.resolvedAt=we.now();let d=!0;Zw(t,i,s,a)||(d=!1,($t.instantAnimations||!l)&&u?.(Zo(t,r,n)),t[0]=t[t.length-1],Ps(r),r.repeat=0);const m={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>rk?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},y=d&&!c&&nk(m),g=m.motionValue?.owner?.current;let S;if(y)try{S=new Xw({...m,element:g})}catch{S=new Po(m)}else S=new Po(m);S.finished.then(()=>{this.notifyFinished()}).catch(Le),this.pendingTimeline&&(this.stopTimeline=S.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=S}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Ow()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Jd(e,t,n,r=0,o=1){const i=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(t),s=e.size,a=(s-1)*r;return typeof n=="function"?n(i,s):o===1?i*r:a-i*r}const dc=30,ik=e=>!isNaN(parseFloat(e));class sk{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=we.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=we.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=ik(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ga);const r=this.events[t].add(n);return t==="change"?()=>{r(),Z.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=we.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>dc)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,dc);return vd(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function xn(e,t){return new sk(e,t)}function Qd(e,t){if(e?.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Pa(e,t){const n=e?.[t]??e?.default??e;return n!==e?Qd(n,e):n}const ak={type:"spring",stiffness:500,damping:25,restSpeed:10},lk=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ck={type:"keyframes",duration:.8},uk={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dk=(e,{keyframes:t})=>t.length>2?ck:Cn.has(e)?e.startsWith("scale")?lk(t[1]):ak:uk,fk=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function hk(e){for(const t in e)if(!fk.has(t))return!0;return!1}const Aa=(e,t,n,r={},o,i)=>s=>{const a=Pa(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Ee(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};hk(a)||Object.assign(u,dk(e,u)),u.duration&&(u.duration=Ee(u.duration)),u.repeatDelay&&(u.repeatDelay=Ee(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Ps(u),u.delay===0&&(d=!0)),($t.instantAnimations||$t.skipAnimations||o?.shouldSkipAnimations||a.skipAnimations)&&(d=!0,Ps(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const h=Zo(u.keyframes,a);if(h!==void 0){Z.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new Po(u):new ok(u)},pk=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function mk(e){const t=pk.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function ef(e,t,n=1){const[r,o]=mk(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return md(s)?parseFloat(s):s}return va(o)?ef(o,t,n+1):o}function fc(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function $a(e,t,n,r){if(typeof t=="function"){const[o,i]=fc(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=fc(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function Gt(e,t,n){const r=e.getProps();return $a(r,t,n!==void 0?n:r.custom,e)}const tf=new Set(["width","height","top","left","right","bottom",...kn]),As=e=>Array.isArray(e);function gk(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,xn(n))}function yk(e){return As(e)?e[e.length-1]||0:e}function bk(e,t){const n=Gt(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=yk(i[s]);gk(e,s,a)}}const be=e=>!!(e&&e.getVelocity);function vk(e){return!!(be(e)&&e.add)}function $s(e,t){const n=e.getValue("willChange");if(vk(n))return n.add(t);if(!n&&$t.WillChange){const r=new $t.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function _a(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const xk="framerAppearId",nf="data-"+_a(xk);function rf(e){return e.props[nf]}function Sk({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function of(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i,transitionEnd:s,...a}=t;const l=e.getDefaultTransition();i=i?Qd(i,l):l;const c=i?.reduceMotion,u=i?.skipAnimations;r&&(i=r);const d=[],h=o&&e.animationState&&e.animationState.getState()[o],m=i?.path;m&&m.animateVisualElement(e,a,i,n,d);for(const y in a){const g=e.getValue(y,e.latestValues[y]??null),S=a[y];if(S===void 0||h&&Sk(h,y))continue;const w={delay:n,...Pa(i||{},y)};u&&(w.skipAnimations=!0);const C=g.get();if(C!==void 0&&!g.isAnimating()&&!Array.isArray(S)&&S===C&&!w.velocity){Z.update(()=>g.set(S));continue}let T=!1;if(window.MotionHandoffAnimation){const _=rf(e);if(_){const A=window.MotionHandoffAnimation(_,y,Z);A!==null&&(w.startTime=A,T=!0)}}$s(e,y);const P=c??e.shouldReduceMotion;g.start(Aa(y,g,S,P&&tf.has(y)?{type:!1}:w,e,T));const R=g.animation;R&&d.push(R)}if(s){const y=()=>Z.update(()=>{s&&bk(e,s)});d.length?Promise.all(d).then(y):y()}return d}function _s(e,t,n={}){const r=Gt(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(of(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=o;return wk(e,t,l,c,u,d,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,c]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>c())}else return Promise.all([i(),s(n.delay)])}function wk(e,t,n=0,r=0,o=0,i=1,s){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(_s(l,t,{...s,delay:n+(typeof r=="function"?0:r)+Jd(e.variantChildren,l,r,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function kk(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>_s(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=_s(e,t,n);else{const o=typeof t=="function"?Gt(e,t,n.custom):t;r=Promise.all(of(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const Ck={test:e=>e==="auto",parse:e=>e},sf=e=>t=>t.test(e),af=[wn,E,at,ht,Y1,X1,Ck],hc=e=>af.find(sf(e));function Tk(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||yd(e):!0}const Pk=new Set(["brightness","contrast","saturate","opacity"]);function Ak(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(xa)||[];if(!r)return e;const o=n.replace(r,"");let i=Pk.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const $k=/\b([a-z-]*)\(.*?\)/gu,Rs={...Ke,getAnimatableNone:e=>{const t=e.match($k);return t?t.map(Ak).join(" "):e}},Es={...Ke,getAnimatableNone:e=>{const t=Ke.parse(e);return Ke.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},pc={...wn,transform:Math.round},_k={rotate:ht,pathRotation:ht,rotateX:ht,rotateY:ht,rotateZ:ht,scale:Ir,scaleX:Ir,scaleY:Ir,scaleZ:Ir,skew:ht,skewX:ht,skewY:ht,distance:E,translateX:E,translateY:E,translateZ:E,x:E,y:E,z:E,perspective:E,transformPerspective:E,opacity:ar,originX:ec,originY:ec,originZ:E},Ao={borderWidth:E,borderTopWidth:E,borderRightWidth:E,borderBottomWidth:E,borderLeftWidth:E,borderRadius:E,borderTopLeftRadius:E,borderTopRightRadius:E,borderBottomRightRadius:E,borderBottomLeftRadius:E,width:E,maxWidth:E,height:E,maxHeight:E,top:E,right:E,bottom:E,left:E,inset:E,insetBlock:E,insetBlockStart:E,insetBlockEnd:E,insetInline:E,insetInlineStart:E,insetInlineEnd:E,padding:E,paddingTop:E,paddingRight:E,paddingBottom:E,paddingLeft:E,paddingBlock:E,paddingBlockStart:E,paddingBlockEnd:E,paddingInline:E,paddingInlineStart:E,paddingInlineEnd:E,margin:E,marginTop:E,marginRight:E,marginBottom:E,marginLeft:E,marginBlock:E,marginBlockStart:E,marginBlockEnd:E,marginInline:E,marginInlineStart:E,marginInlineEnd:E,fontSize:E,backgroundPositionX:E,backgroundPositionY:E,..._k,zIndex:pc,fillOpacity:ar,strokeOpacity:ar,numOctaves:pc},Rk={...Ao,color:ae,backgroundColor:ae,outlineColor:ae,fill:ae,stroke:ae,borderColor:ae,borderTopColor:ae,borderRightColor:ae,borderBottomColor:ae,borderLeftColor:ae,filter:Rs,WebkitFilter:Rs,mask:Es,WebkitMask:Es},lf=e=>Rk[e],Ek=new Set([Rs,Es]);function cf(e,t){let n=lf(e);return Ek.has(n)||(n=Ke),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Mk=new Set(["auto","none","0"]);function jk(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!Mk.has(i)&&vn(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=cf(n,o)}class zk extends Ta{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),va(d))){const h=ef(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!tf.has(r)||t.length!==2)return;const[o,i]=t,s=hc(o),a=hc(i),l=Ql(o),c=Ql(i);if(l!==c&&At[r]){this.needsMeasurement=!0;return}if(s!==a)if(lc(s)&&lc(a))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else At[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||Tk(t[o]))&&r.push(o);r.length&&jk(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=At[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,s=r[i];r[i]=At[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function uf(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=n?.[e]??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e).filter(r=>r!=null)}const Ms=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function oo(e){return gd(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Ra}=Rd(queueMicrotask,!1),Ge={x:!1,y:!1};function df(){return Ge.x||Ge.y}function Bk(e){return e==="x"||e==="y"?Ge[e]?null:(Ge[e]=!0,()=>{Ge[e]=!1}):Ge.x||Ge.y?null:(Ge.x=Ge.y=!0,()=>{Ge.x=Ge.y=!1})}function ff(e,t){const n=uf(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function Dk(e){return!(e.pointerType==="touch"||df())}function Ik(e,t,n={}){const[r,o,i]=ff(e,n);return r.forEach(s=>{let a=!1,l=!1,c;const u=()=>{s.removeEventListener("pointerleave",y)},d=S=>{c&&(c(S),c=void 0),u()},h=S=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),l&&(l=!1,d(S))},m=()=>{a=!0,window.addEventListener("pointerup",h,o),window.addEventListener("pointercancel",h,o)},y=S=>{if(S.pointerType!=="touch"){if(a){l=!0;return}d(S)}},g=S=>{if(!Dk(S))return;l=!1;const w=t(s,S);typeof w=="function"&&(c=w,s.addEventListener("pointerleave",y,o))};s.addEventListener("pointerenter",g,o),s.addEventListener("pointerdown",m,o)}),i}const hf=(e,t)=>t?e===t?!0:hf(e,t.parentElement):!1,Ea=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Vk=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Fk(e){return Vk.has(e.tagName)||e.isContentEditable===!0}const Lk=new Set(["INPUT","SELECT","TEXTAREA"]);function Ok(e){return Lk.has(e.tagName)||e.isContentEditable===!0}const io=new WeakSet;function mc(e){return t=>{t.key==="Enter"&&e(t)}}function Li(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Wk=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=mc(()=>{if(io.has(n))return;Li(n,"down");const o=mc(()=>{Li(n,"up")}),i=()=>Li(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function gc(e){return Ea(e)&&!df()}const yc=new WeakSet;function Nk(e,t,n={}){const[r,o,i]=ff(e,n),s=a=>{const l=a.currentTarget;if(!gc(a)||yc.has(a))return;io.add(l),n.stopPropagation&&yc.add(a);const c=t(l,a),u=(m,y)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),io.has(l)&&io.delete(l),gc(m)&&typeof c=="function"&&c(m,{success:y})},d=m=>{u(m,l===window||l===document||n.useGlobalTarget||hf(l,m.target))},h=m=>{u(m,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",h,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),oo(a)&&(a.addEventListener("focus",c=>Wk(c,o)),!Fk(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function Ma(e){return gd(e)&&"ownerSVGElement"in e}const so=new WeakMap;let ao;const pf=(e,t,n)=>(r,o)=>o&&o[0]?o[0][e+"Size"]:Ma(r)&&"getBBox"in r?r.getBBox()[t]:r[n],Hk=pf("inline","width","offsetWidth"),Uk=pf("block","height","offsetHeight");function Gk({target:e,borderBoxSize:t}){so.get(e)?.forEach(n=>{n(e,{get width(){return Hk(e,t)},get height(){return Uk(e,t)}})})}function qk(e){e.forEach(Gk)}function Kk(){typeof ResizeObserver>"u"||(ao=new ResizeObserver(qk))}function Xk(e,t){ao||Kk();const n=uf(e);return n.forEach(r=>{let o=so.get(r);o||(o=new Set,so.set(r,o)),o.add(t),ao?.observe(r)}),()=>{n.forEach(r=>{const o=so.get(r);o?.delete(t),o?.size||ao?.unobserve(r)})}}const lo=new Set;let ln;function Yk(){ln=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};lo.forEach(t=>t(e))},window.addEventListener("resize",ln)}function Zk(e){return lo.add(e),ln||Yk(),()=>{lo.delete(e),!lo.size&&typeof ln=="function"&&(window.removeEventListener("resize",ln),ln=void 0)}}function bc(e,t){return typeof e=="function"?Zk(e):Xk(e,t)}function Jk(e){return Ma(e)&&e.tagName==="svg"}const Qk=[...af,ae,Ke],eC=e=>Qk.find(sf(e)),vc=()=>({translate:0,scale:1,origin:0,originPoint:0}),cn=()=>({x:vc(),y:vc()}),xc=()=>({min:0,max:0}),he=()=>({x:xc(),y:xc()}),tC=new WeakMap;function Jo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function lr(e){return typeof e=="string"||Array.isArray(e)}const ja=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],za=["initial",...ja];function Qo(e){return Jo(e.animate)||za.some(t=>lr(e[t]))}function mf(e){return!!(Qo(e)||e.variants)}function nC(e,t,n){for(const r in t){const o=t[r],i=n[r];if(be(o))e.addValue(r,o);else if(be(i))e.addValue(r,xn(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,xn(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const js={current:null},gf={current:!1},rC=typeof window<"u";function oC(){if(gf.current=!0,!!rC)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>js.current=e.matches;e.addEventListener("change",t),t()}else js.current=!1}const Sc=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let $o={};function yf(e){$o=e}function iC(){return $o}class sC{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,skipAnimations:i,blockInitialAnimation:s,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Ta,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=we.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,Z.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.skipAnimationsConfig=i,this.options=l,this.blockInitialAnimation=!!s,this.isControllingVariants=Qo(n),this.isVariantNode=mf(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in h){const y=h[m];c[m]!==void 0&&be(y)&&y.set(c[m])}}mount(t){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=t,tC.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(gf.current||oC(),this.shouldReduceMotion=js.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),_t(this.notifyUpdate),_t(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&Zd.has(t)&&this.current instanceof HTMLElement){const{factory:s,keyframes:a,times:l,ease:c,duration:u}=n.accelerate,d=new Xd({element:this.current,name:t,keyframes:a,times:l,ease:c,duration:Ee(u)}),h=s(d);this.valueSubscriptions.set(t,()=>{h(),d.cancel()});return}const r=Cn.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Z.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i&&i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in $o){const n=$o[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):he()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Sc.length;r++){const o=Sc[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,s=t[i];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=nC(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=xn(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(md(r)||yd(r))?r=parseFloat(r):!eC(r)&&Ke.test(n)&&(r=cf(t,n)),this.setBaseTarget(t,be(r)?r.get():r)),be(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const i=$a(this.props,n,this.presenceContext?.custom);i&&(r=i[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!be(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ga),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Ra.render(this.render)}}class bf extends sC{constructor(){super(...arguments),this.KeyframeResolver=zk}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;be(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Et{constructor(t){this.isMounted=!1,this.node=t}update(){}}function vf({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function aC({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function lC(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Oi(e){return e===void 0||e===1}function zs({scale:e,scaleX:t,scaleY:n}){return!Oi(e)||!Oi(t)||!Oi(n)}function It(e){return zs(e)||xf(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function xf(e){return wc(e.x)||wc(e.y)}function wc(e){return e&&e!=="0%"}function _o(e,t,n){const r=e-n,o=t*r;return n+o}function kc(e,t,n,r,o){return o!==void 0&&(e=_o(e,o,r)),_o(e,n,r)+t}function Bs(e,t=0,n=1,r,o){e.min=kc(e.min,t,n,r,o),e.max=kc(e.max,t,n,r,o)}function Sf(e,{x:t,y:n}){Bs(e.x,t.translate,t.scale,t.originPoint),Bs(e.y,n.translate,n.scale,n.originPoint)}const Cc=.999999999999,Tc=1.0000000000001;function cC(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(nt(e.x,-i.scroll.offset.x),nt(e.y,-i.scroll.offset.y)),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Sf(e,s)),r&&It(i.latestValues)&&co(e,i.latestValues,i.layout?.layoutBox))}t.x<Tc&&t.x>Cc&&(t.x=1),t.y<Tc&&t.y>Cc&&(t.y=1)}function nt(e,t){e.min+=t,e.max+=t}function Pc(e,t,n,r,o=.5){const i=Y(e.min,e.max,o);Bs(e,t,n,i,r)}function Ac(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function co(e,t,n){const r=n??e;Pc(e.x,Ac(t.x,r.x),t.scaleX,t.scale,t.originX),Pc(e.y,Ac(t.y,r.y),t.scaleY,t.scale,t.originY)}function wf(e,t){return vf(lC(e.getBoundingClientRect(),t))}function uC(e,t,n){const r=wf(e,n),{scroll:o}=t;return o&&(nt(r.x,o.offset.x),nt(r.y,o.offset.y)),r}const dC={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},fC=kn.length;function hC(e,t,n){let r="",o=!0;for(let s=0;s<fC;s++){const a=kn[s],l=e[a];if(l===void 0)continue;let c=!0;if(typeof l=="number")c=l===(a.startsWith("scale")?1:0);else{const u=parseFloat(l);c=a.startsWith("scale")?u===1:u===0}if(!c||n){const u=Ms(l,Ao[a]);if(!c){o=!1;const d=dC[a]||a;r+=`${d}(${u}) `}n&&(t[a]=u)}}const i=e.pathRotation;return i&&(o=!1,r+=`rotate(${Ms(i,Ao.pathRotation)}) `),r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function Ba(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const l in t){const c=t[l];if(Cn.has(l)){s=!0;continue}else if(Md(l)){o[l]=c;continue}else{const u=Ms(c,Ao[l]);l.startsWith("origin")?(a=!0,i[l]=u):r[l]=u}}if(t.transform||(s||n?r.transform=hC(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=i;r.transformOrigin=`${l} ${c} ${u}`}}function kf(e,{style:t,vars:n},r,o){const i=e.style;let s;for(s in t)i[s]=t[s];o?.applyProjectionStyles(i,r);for(s in n)i.setProperty(s,n[s])}function $c(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const zn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(E.test(e))e=parseFloat(e);else return e;const n=$c(e,t.target.x),r=$c(e,t.target.y);return`${n}% ${r}%`}},pC={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Ke.parse(e);if(o.length>5)return r;const i=Ke.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const c=Y(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=c),typeof o[3+s]=="number"&&(o[3+s]/=c),i(o)}},Ds={borderRadius:{...zn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:zn,borderTopRightRadius:zn,borderBottomLeftRadius:zn,borderBottomRightRadius:zn,boxShadow:pC};function Cf(e,{layout:t,layoutId:n}){return Cn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ds[e]||e==="opacity")}function Da(e,t,n){const r=e.style,o=t?.style,i={};if(!r)return i;for(const s in r)(be(r[s])||o&&be(o[s])||Cf(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(i[s]=r[s]);return i}function mC(e){return window.getComputedStyle(e)}class gC extends bf{constructor(){super(...arguments),this.type="html",this.renderInstance=kf}readValueFromInstance(t,n){if(Cn.has(n))return this.projection?.isProjecting?Ss(n):Dw(t,n);{const r=mC(t),o=(Md(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return wf(t,n)}build(t,n,r){Ba(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Da(t,n,r)}}const yC={offset:"stroke-dashoffset",array:"stroke-dasharray"},bC={offset:"strokeDashoffset",array:"strokeDasharray"};function vC(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?yC:bC;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const xC=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Tf(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...a},l,c,u){if(Ba(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:h}=e;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete d.transformBox);for(const m of xC)d[m]!==void 0&&(h[m]=d[m],delete d[m]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),o!==void 0&&vC(d,o,i,s,!1)}const Pf=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"]),Af=e=>typeof e=="string"&&e.toLowerCase()==="svg";function SC(e,t,n,r){kf(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Pf.has(o)?o:_a(o),t.attrs[o])}function $f(e,t,n){const r=Da(e,t,n);for(const o in e)if(be(e[o])||be(t[o])){const i=kn.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}class wC extends bf{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=he}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Cn.has(n)){const r=lf(n);return r&&r.default||0}return n=Pf.has(n)?n:_a(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return $f(t,n,r)}build(t,n,r){Tf(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){SC(t,n,r,o)}mount(t){this.isSVGTag=Af(t.tagName),super.mount(t)}}const kC=za.length;function _f(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?_f(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<kC;n++){const r=za[n],o=e.props[r];(lr(o)||o===!1)&&(t[r]=o)}return t}function Rf(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const CC=[...ja].reverse(),TC=ja.length;function PC(e){return t=>Promise.all(t.map(({animation:n,options:r})=>kk(e,n,r)))}function AC(e){let t=PC(e),n=_c(),r=!0,o=!1;const i=c=>(u,d)=>{const h=Gt(e,d,c==="exit"?e.presenceContext?.custom:void 0);if(h){const{transition:m,transitionEnd:y,...g}=h;u={...u,...g,...y}}return u};function s(c){t=c(e)}function a(c){const{props:u}=e,d=_f(e.parent)||{},h=[],m=new Set;let y={},g=1/0;for(let w=0;w<TC;w++){const C=CC[w],T=n[C],P=u[C]!==void 0?u[C]:d[C],R=lr(P),_=C===c?T.isActive:null;_===!1&&(g=w);let A=P===d[C]&&P!==u[C]&&R;if(A&&(r||o)&&e.manuallyAnimateOnMount&&(A=!1),T.protectedKeys={...y},!T.isActive&&_===null||!P&&!T.prevProp||Jo(P)||typeof P=="boolean")continue;if(C==="exit"&&T.isActive&&_!==!0){T.prevResolvedValues&&(y={...y,...T.prevResolvedValues});continue}const $=$C(T.prevProp,P);let D=$||C===c&&T.isActive&&!A&&R||w>g&&R,j=!1;const F=Array.isArray(P)?P:[P];let ue=F.reduce(i(C),{});_===!1&&(ue={});const{prevResolvedValues:Oe={}}=T,je={...Oe,...ue},We=de=>{D=!0,m.has(de)&&(j=!0,m.delete(de)),T.needsAnimating[de]=!0;const Te=e.getValue(de);Te&&(Te.liveStyle=!1)};for(const de in je){const Te=ue[de],ut=Oe[de];if(y.hasOwnProperty(de))continue;let St=!1;As(Te)&&As(ut)?St=!Rf(Te,ut)||$:St=Te!==ut,St?Te!=null?We(de):m.add(de):Te!==void 0&&m.has(de)?We(de):T.protectedKeys[de]=!0}T.prevProp=P,T.prevResolvedValues=ue,T.isActive&&(y={...y,...ue}),(r||o)&&e.blockInitialAnimation&&(D=!1);const ze=A&&$;D&&(!ze||j)&&h.push(...F.map(de=>{const Te={type:C};if(typeof de=="string"&&(r||o)&&!ze&&e.manuallyAnimateOnMount&&e.parent){const{parent:ut}=e,St=Gt(ut,de);if(ut.enteringChildren&&St){const{delayChildren:ni}=St.transition||{};Te.delay=Jd(ut.enteringChildren,e,ni)}}return{animation:de,options:Te}}))}if(m.size){const w={};if(typeof u.initial!="boolean"){const C=Gt(e,Array.isArray(u.initial)?u.initial[0]:u.initial);C&&C.transition&&(w.transition=C.transition)}m.forEach(C=>{const T=e.getBaseTarget(C),P=e.getValue(C);P&&(P.liveStyle=!0),w[C]=T??null}),h.push({animation:w})}let S=!!h.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(S=!1),r=!1,o=!1,S?t(h):Promise.resolve()}function l(c,u){if(n[c].isActive===u)return Promise.resolve();e.variantChildren?.forEach(h=>h.animationState?.setActive(c,u)),n[c].isActive=u;const d=a(c);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:a,setActive:l,setAnimateFunction:s,getState:()=>n,reset:()=>{n=_c(),o=!0}}}function $C(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Rf(t,e):!1}function Dt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function _c(){return{animate:Dt(!0),whileInView:Dt(),whileHover:Dt(),whileTap:Dt(),whileDrag:Dt(),whileFocus:Dt(),exit:Dt()}}function Is(e,t){e.min=t.min,e.max=t.max}function Ue(e,t){Is(e.x,t.x),Is(e.y,t.y)}function Rc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Ef=1e-4,_C=1-Ef,RC=1+Ef,Mf=.01,EC=0-Mf,MC=0+Mf;function ke(e){return e.max-e.min}function jC(e,t,n){return Math.abs(e-t)<=n}function Ec(e,t,n,r=.5){e.origin=r,e.originPoint=Y(t.min,t.max,e.origin),e.scale=ke(n)/ke(t),e.translate=Y(n.min,n.max,e.origin)-e.originPoint,(e.scale>=_C&&e.scale<=RC||isNaN(e.scale))&&(e.scale=1),(e.translate>=EC&&e.translate<=MC||isNaN(e.translate))&&(e.translate=0)}function Yn(e,t,n,r){Ec(e.x,t.x,n.x,r?r.originX:void 0),Ec(e.y,t.y,n.y,r?r.originY:void 0)}function Mc(e,t,n,r=0){const o=r?Y(n.min,n.max,r):n.min;e.min=o+t.min,e.max=e.min+ke(t)}function zC(e,t,n,r){Mc(e.x,t.x,n.x,r?.x),Mc(e.y,t.y,n.y,r?.y)}function jc(e,t,n,r=0){const o=r?Y(n.min,n.max,r):n.min;e.min=t.min-o,e.max=e.min+ke(t)}function Ro(e,t,n,r){jc(e.x,t.x,n.x,r?.x),jc(e.y,t.y,n.y,r?.y)}function zc(e,t,n,r,o){return e-=t,e=_o(e,1/n,r),o!==void 0&&(e=_o(e,1/o,r)),e}function BC(e,t=0,n=1,r=.5,o,i=e,s=e){if(at.test(t)&&(t=parseFloat(t),t=Y(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Y(i.min,i.max,r);e===i&&(a-=t),e.min=zc(e.min,t,n,a,o),e.max=zc(e.max,t,n,a,o)}function Bc(e,t,[n,r,o],i,s){BC(e,t[n],t[r],t[o],t.scale,i,s)}const DC=["x","scaleX","originX"],IC=["y","scaleY","originY"];function Dc(e,t,n,r){Bc(e.x,t,DC,n?n.x:void 0,r?r.x:void 0),Bc(e.y,t,IC,n?n.y:void 0,r?r.y:void 0)}function Ic(e){return e.translate===0&&e.scale===1}function jf(e){return Ic(e.x)&&Ic(e.y)}function Vc(e,t){return e.min===t.min&&e.max===t.max}function VC(e,t){return Vc(e.x,t.x)&&Vc(e.y,t.y)}function Fc(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function zf(e,t){return Fc(e.x,t.x)&&Fc(e.y,t.y)}function Lc(e){return ke(e.x)/ke(e.y)}function Oc(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Je(e){return[e("x"),e("y")]}function FC(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=n?.z||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,pathRotation:d,rotateX:h,rotateY:m,skewX:y,skewY:g}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotate(${d}deg) `),h&&(r+=`rotateX(${h}deg) `),m&&(r+=`rotateY(${m}deg) `),y&&(r+=`skewX(${y}deg) `),g&&(r+=`skewY(${g}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const Bf=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],LC=Bf.length,Wc=e=>typeof e=="string"?parseFloat(e):e,Nc=e=>typeof e=="number"||E.test(e);function OC(e,t,n,r,o,i){o?(e.opacity=Y(0,n.opacity??1,WC(r)),e.opacityExit=Y(t.opacity??1,0,NC(r))):i&&(e.opacity=Y(t.opacity??1,n.opacity??1,r));for(let s=0;s<LC;s++){const a=Bf[s];let l=Hc(t,a),c=Hc(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Nc(l)===Nc(c)?(e[a]=Math.max(Y(Wc(l),Wc(c),r),0),(at.test(c)||at.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=Y(t.rotate||0,n.rotate||0,r))}function Hc(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const WC=Df(0,.5,Pd),NC=Df(.5,.95,Le);function Df(e,t,n){return r=>r<e?0:r>t?1:n(sr(e,t,r))}function HC(e,t,n){const r=be(e)?e:xn(e);return r.start(Aa("",r,t,n)),r.animation}function cr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const UC=(e,t)=>e.depth-t.depth;class GC{constructor(){this.children=[],this.isDirty=!1}add(t){pa(this.children,t),this.isDirty=!0}remove(t){wo(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(UC),this.isDirty=!1,this.children.forEach(t)}}function qC(e,t){const n=we.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(_t(r),e(i-t))};return Z.setup(r,!0),()=>_t(r)}function uo(e){return be(e)?e.get():e}class KC{constructor(){this.members=[]}add(t){pa(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const o=r.instance;(!o||o.isConnected===!1)&&!r.snapshot&&(wo(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(wo(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){for(let n=this.members.indexOf(t)-1;n>=0;n--){const r=this.members[n];if(r.isPresent!==!1&&r.instance?.isConnected!==!1)return this.promote(r),!0}return!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:o}=r.options,{layoutDependency:i}=t.options;(o===void 0||o!==i)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const fo={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Wi=["","X","Y","Z"],XC=1e3;let YC=0;function Ni(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function If(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=rf(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Z,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&If(r)}function Vf({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t?.()){this.id=YC++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(QC),this.nodes.forEach(iT),this.nodes.forEach(sT),this.nodes.forEach(eT)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new GC)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new ga),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=Ma(s)&&!Jk(s),this.instance=s;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let u,d=0;const h=()=>this.root.updateBlockedByResize=!1;Z.read(()=>{d=window.innerWidth}),e(s,()=>{const m=window.innerWidth;m!==d&&(d=m,this.root.updateBlockedByResize=!0,u&&u(),u=qC(h,250),fo.hasAnimatedSinceResize&&(fo.hasAnimatedSinceResize=!1,this.nodes.forEach(qc)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||dT,{onLayoutAnimationStart:g,onLayoutAnimationComplete:S}=c.getProps(),w=!this.targetLayout||!zf(this.targetLayout,m),C=!d&&h;if(this.options.layoutRoot||this.resumeFrom||C||d&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...Pa(y,"layout"),onPlay:g,onComplete:S};(c.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(u,C,T.path)}else d||qc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),_t(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(aT),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&If(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,(typeof d.latestValues.x=="string"||typeof d.latestValues.y=="string")&&(d.isLayoutDirty=!0),d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(nT),this.nodes.forEach(Uc);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Gc);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(rT),this.nodes.forEach(oT),this.nodes.forEach(ZC),this.nodes.forEach(JC)):this.nodes.forEach(Gc),this.clearAllSnapshots();const a=we.now();ge.delta=lt(0,1e3/60,a-ge.timestamp),ge.timestamp=a,ge.isProcessing=!0,zi.update.process(ge),zi.preRender.process(ge),zi.render.process(ge),ge.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ra.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(tT),this.sharedNodes.forEach(lT)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Z.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Z.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ke(this.snapshot.measuredBox.x)&&!ke(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=he()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!jf(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;s&&this.instance&&(a||It(this.latestValues)||u)&&(o(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),fT(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return he();const a=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(hT))){const{scroll:c}=this.root;c&&(nt(a.x,c.offset.x),nt(a.y,c.offset.y))}return a}removeElementScroll(s){const a=he();if(Ue(a,s),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:d}=c;c!==this.root&&u&&d.layoutScroll&&(u.wasRoot&&Ue(a,s),nt(a.x,u.offset.x),nt(a.y,u.offset.y))}return a}applyTransform(s,a=!1,l){const c=l||he();Ue(c,s);for(let u=0;u<this.path.length;u++){const d=this.path[u];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(nt(c.x,-d.scroll.offset.x),nt(c.y,-d.scroll.offset.y)),It(d.latestValues)&&co(c,d.latestValues,d.layout?.layoutBox)}return It(this.latestValues)&&co(c,this.latestValues,this.layout?.layoutBox),c}removeTransform(s){const a=he();Ue(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!It(c.latestValues))continue;let u;c.instance&&(zs(c.latestValues)&&c.updateSnapshot(),u=he(),Ue(u,c.measurePageBox())),Dc(a,c.latestValues,c.snapshot?.layoutBox,u)}return It(this.latestValues)&&Dc(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ge.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!this.layout||!(u||d))return;this.resolvedRelativeTargetAt=ge.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=he(),this.targetWithTransforms=he()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),zC(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Ue(this.target,this.layout.layoutBox),Sf(this.target,this.targetDelta)):Ue(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||zs(this.parent.latestValues)||xf(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(s,a,l){this.relativeParent=s,this.linkedParentVersion=s.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=he(),this.relativeTargetOrigin=he(),Ro(this.relativeTargetOrigin,a,l,this.options.layoutAnchor||void 0),Ue(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const s=this.getLead(),a=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===ge.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;Ue(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;cC(this.layoutCorrected,this.treeScale,this.path,a),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=he());const{target:m}=s;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Rc(this.prevProjectionDelta.x,this.projectionDelta.x),Rc(this.prevProjectionDelta.y,this.projectionDelta.y)),Yn(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==h||!Oc(this.projectionDelta.x,this.prevProjectionDelta.x)||!Oc(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=cn(),this.projectionDelta=cn(),this.projectionDeltaWithTransform=cn()}setAnimationOrigin(s,a=!1,l){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},h=cn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const m=he(),y=c?c.source:void 0,g=this.layout?this.layout.source:void 0,S=y!==g,w=this.getStack(),C=!w||w.members.length<=1,T=!!(S&&!C&&this.options.crossfade===!0&&!this.path.some(uT));this.animationProgress=0;let P;const R=l?.interpolateProjection(s);this.mixTargetDelta=_=>{const A=_/1e3,$=R?.(A);$?(h.x.translate=$.x,h.x.scale=Y(s.x.scale,1,A),h.x.origin=s.x.origin,h.x.originPoint=s.x.originPoint,h.y.translate=$.y,h.y.scale=Y(s.y.scale,1,A),h.y.origin=s.y.origin,h.y.originPoint=s.y.originPoint):(Kc(h.x,s.x,A),Kc(h.y,s.y,A)),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ro(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),cT(this.relativeTarget,this.relativeTargetOrigin,m,A),P&&VC(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=he()),Ue(P,this.relativeTarget)),S&&(this.animationValues=d,OC(d,u,this.latestValues,A,T,C)),$&&$.rotate!==void 0&&(this.animationValues||(this.animationValues=d),this.animationValues.pathRotation=$.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(_t(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Z.update(()=>{fo.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=xn(0)),this.motionValue.jump(0,!1),this.currentAnimation=HC(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(XC),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&Ff(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||he();const d=ke(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const h=ke(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}Ue(a,l),co(a,u),Yn(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new KC),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&Ni("z",s,c,this.animationValues);for(let u=0;u<Wi.length;u++)Ni(`rotate${Wi[u]}`,s,c,this.animationValues),Ni(`skew${Wi[u]}`,s,c,this.animationValues);s.render();for(const u in c)s.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);s.scheduleRender()}applyProjectionStyles(s,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=uo(a?.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=uo(a?.pointerEvents)||""),this.hasProjected&&!It(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let d=FC(this.projectionDeltaWithTransform,this.treeScale,u);l&&(d=l(u,d)),s.transform=d;const{x:h,y:m}=this.projectionDelta;s.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,c.animationValues?s.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:s.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const y in Ds){if(u[y]===void 0)continue;const{correct:g,applyTo:S,isCSSVariable:w}=Ds[y],C=d==="none"?u[y]:g(u[y],c);if(S){const T=S.length;for(let P=0;P<T;P++)s[S[P]]=C}else w?this.options.visualElement.renderState.vars[y]=C:s[y]=C}this.options.layoutId&&(s.pointerEvents=c===this?uo(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(Uc),this.root.sharedNodes.clear()}}}function ZC(e){e.updateLayout()}function JC(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,i=t.source!==e.layout.source;if(o==="size")Je(u=>{const d=i?t.measuredBox[u]:t.layoutBox[u],h=ke(d);d.min=n[u].min,d.max=d.min+h});else if(o==="x"||o==="y"){const u=o==="x"?"y":"x";Is(i?t.measuredBox[u]:t.layoutBox[u],n[u])}else Ff(o,t.layoutBox,n)&&Je(u=>{const d=i?t.measuredBox[u]:t.layoutBox[u],h=ke(n[u]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+h)});const s=cn();Yn(s,n,t.layoutBox);const a=cn();i?Yn(a,e.applyTransform(r,!0),t.measuredBox):Yn(a,n,t.layoutBox);const l=!jf(s);let c=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:d,layout:h}=u;if(d&&h){const m=e.options.layoutAnchor||void 0,y=he();Ro(y,t.layoutBox,d.layoutBox,m);const g=he();Ro(g,n,h.layoutBox,m),zf(y,g)||(c=!0),u.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=y,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function QC(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function eT(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function tT(e){e.clearSnapshot()}function Uc(e){e.clearMeasurements()}function nT(e){e.isLayoutDirty=!0,e.updateLayout()}function Gc(e){e.isLayoutDirty=!1}function rT(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function oT(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function qc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function iT(e){e.resolveTargetDelta()}function sT(e){e.calcProjection()}function aT(e){e.resetSkewAndRotation()}function lT(e){e.removeLeadSnapshot()}function Kc(e,t,n){e.translate=Y(t.translate,0,n),e.scale=Y(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Xc(e,t,n,r){e.min=Y(t.min,n.min,r),e.max=Y(t.max,n.max,r)}function cT(e,t,n,r){Xc(e.x,t.x,n.x,r),Xc(e.y,t.y,n.y,r)}function uT(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const dT={duration:.45,ease:[.4,0,.1,1]},Yc=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Zc=Yc("applewebkit/")&&!Yc("chrome/")?Math.round:Le;function Jc(e){e.min=Zc(e.min),e.max=Zc(e.max)}function fT(e){Jc(e.x),Jc(e.y)}function Ff(e,t,n){return e==="position"||e==="preserve-aspect"&&!jC(Lc(t),Lc(n),.2)}function hT(e){return e!==e.root&&e.scroll?.wasRoot}const pT=Vf({attachResizeListener:(e,t)=>cr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Hi={current:void 0},Lf=Vf({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Hi.current){const e=new pT({});e.mount(window),e.setOptions({layoutScroll:!0}),Hi.current=e}return Hi.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Ia=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Qc(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function mT(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Qc(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Qc(e[o],null)}}}}function gT(...e){return v.useCallback(mT(...e),e)}class yT extends v.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(oo(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,o=oo(r)&&r.offsetWidth||0,i=oo(r)&&r.offsetHeight||0,s=getComputedStyle(n),a=this.props.sizeRef.current;a.height=parseFloat(s.height),a.width=parseFloat(s.width),a.top=n.offsetTop,a.left=n.offsetLeft,a.right=o-a.width-a.left,a.bottom=i-a.height-a.top,a.direction=s.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function bT({children:e,isPresent:t,anchorX:n,anchorY:r,root:o,pop:i}){const s=v.useId(),a=v.useRef(null),l=v.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:c}=v.useContext(Ia),u=e.props?.ref??e?.ref,d=gT(a,u);return v.useInsertionEffect(()=>{const{width:h,height:m,top:y,left:g,right:S,bottom:w,direction:C}=l.current;if(t||i===!1||!a.current||!h||!m)return;const T=C==="rtl",P=n==="left"?T?`right: ${S}`:`left: ${g}`:T?`left: ${g}`:`right: ${S}`,R=r==="bottom"?`bottom: ${w}`:`top: ${y}`;a.current.dataset.motionPopId=s;const _=document.createElement("style");c&&(_.nonce=c);const A=o??document.head;return A.appendChild(_),_.sheet&&_.sheet.insertRule(`
[data-motion-pop-id="${s}"] {
position: absolute !important;
width: ${h}px !important;
height: ${m}px !important;
${P}px !important;
${R}px !important;
}
`),()=>{a.current?.removeAttribute("data-motion-pop-id"),A.contains(_)&&A.removeChild(_)}},[t]),p.jsx(yT,{isPresent:t,childRef:a,sizeRef:l,pop:i,children:i===!1?e:v.cloneElement(e,{ref:d})})}const vT=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s,anchorX:a,anchorY:l,root:c})=>{const u=ha(xT),d=v.useId();let h=!0,m=v.useMemo(()=>(h=!1,{id:d,initial:t,isPresent:n,custom:o,onExitComplete:y=>{u.set(y,!0);for(const g of u.values())if(!g)return;r&&r()},register:y=>(u.set(y,!1),()=>u.delete(y))}),[n,u,r]);return i&&h&&(m={...m}),v.useMemo(()=>{u.forEach((y,g)=>u.set(g,!1))},[n]),v.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=p.jsx(bT,{pop:s==="popLayout",isPresent:n,anchorX:a,anchorY:l,root:c,children:e}),p.jsx(fr.Provider,{value:m,children:e})};function xT(){return new Map}function Of(e=!0){const t=v.useContext(fr);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=v.useId();v.useEffect(()=>{if(e)return o(i)},[e]);const s=v.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}function ST(){return wT(v.useContext(fr))}function wT(e){return e===null?!0:e.isPresent}const Vr=e=>e.key||"";function eu(e){const t=[];return v.Children.forEach(e,n=>{v.isValidElement(n)&&t.push(n)}),t}const kT=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:s=!1,anchorX:a="left",anchorY:l="top",root:c})=>{const[u,d]=Of(s),h=v.useMemo(()=>eu(e),[e]),m=s&&!u?[]:h.map(Vr),y=v.useRef(!0),g=v.useRef(h),S=ha(()=>new Map),w=v.useRef(new Set),[C,T]=v.useState(h),[P,R]=v.useState(h);pd(()=>{y.current=!1,g.current=h;for(let $=0;$<P.length;$++){const D=Vr(P[$]);m.includes(D)?(S.delete(D),w.current.delete(D)):S.get(D)!==!0&&S.set(D,!1)}},[P,m.length,m.join("-")]);const _=[];if(h!==C){let $=[...h];for(let D=0;D<P.length;D++){const j=P[D],F=Vr(j);m.includes(F)||($.splice(D,0,j),_.push(j))}return i==="wait"&&_.length&&($=_),R(eu($)),T(h),null}const{forceRender:A}=v.useContext(fa);return p.jsx(p.Fragment,{children:P.map($=>{const D=Vr($),j=s&&!u?!1:h===P||m.includes(D),F=()=>{if(w.current.has(D))return;if(S.has(D))w.current.add(D),S.set(D,!0);else return;let ue=!0;S.forEach(Oe=>{Oe||(ue=!1)}),ue&&(A?.(),R(g.current),s&&d?.(),r&&r())};return p.jsx(vT,{isPresent:j,initial:!y.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:c,onExitComplete:j?void 0:F,anchorX:a,anchorY:l,children:$},D)})})},Wf=v.createContext({strict:!1}),tu={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"]};let nu=!1;function CT(){if(nu)return;const e={};for(const t in tu)e[t]={isEnabled:n=>tu[t].some(r=>!!n[r])};yf(e),nu=!0}function Nf(){return CT(),iC()}function TT(e){const t=Nf();for(const n in e)t[n]={...t[n],...e[n]};yf(t)}const PT=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Eo(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||PT.has(e)}let Hf=e=>!Eo(e);function AT(e){typeof e=="function"&&(Hf=t=>t.startsWith("on")?!Eo(t):e(t))}try{AT(require("@emotion/is-prop-valid").default)}catch{}function $T(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||be(e[o])||(Hf(o)||n===!0&&Eo(o)||!t&&!Eo(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const ei=v.createContext({});function _T(e,t){if(Qo(e)){const{initial:n,animate:r}=e;return{initial:n===!1||lr(n)?n:void 0,animate:lr(r)?r:void 0}}return e.inherit!==!1?t:{}}function RT(e){const{initial:t,animate:n}=_T(e,v.useContext(ei));return v.useMemo(()=>({initial:t,animate:n}),[ru(t),ru(n)])}function ru(e){return Array.isArray(e)?e.join(" "):e}const Va=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Uf(e,t,n){for(const r in t)!be(t[r])&&!Cf(r,n)&&(e[r]=t[r])}function ET({transformTemplate:e},t){return v.useMemo(()=>{const n=Va();return Ba(n,t,e),Object.assign({},n.vars,n.style)},[t])}function MT(e,t){const n=e.style||{},r={};return Uf(r,n,e),Object.assign(r,ET(e,t)),r}function jT(e,t){const n={},r=MT(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Gf=()=>({...Va(),attrs:{}});function zT(e,t,n,r){const o=v.useMemo(()=>{const i=Gf();return Tf(i,t,Af(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Uf(i,e.style,e),o.style={...i,...o.style}}return o}const BT=["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 Fa(e){return typeof e!="string"||e.includes("-")?!1:!!(BT.indexOf(e)>-1||/[A-Z]/u.test(e))}function DT(e,t,n,{latestValues:r},o,i=!1,s){const l=(s??Fa(e)?zT:jT)(t,r,o,e),c=$T(t,typeof e=="string",i),u=e!==v.Fragment?{...c,...l,ref:n}:{},{children:d}=t,h=v.useMemo(()=>be(d)?d.get():d,[d]);return v.createElement(e,{...u,children:h})}function IT({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:VT(n,r,o,e),renderState:t()}}function VT(e,t,n,r){const o={},i=r(e,{});for(const h in i)o[h]=uo(i[h]);let{initial:s,animate:a}=e;const l=Qo(e),c=mf(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const d=u?a:s;if(d&&typeof d!="boolean"&&!Jo(d)){const h=Array.isArray(d)?d:[d];for(let m=0;m<h.length;m++){const y=$a(e,h[m]);if(y){const{transitionEnd:g,transition:S,...w}=y;for(const C in w){let T=w[C];if(Array.isArray(T)){const P=u?T.length-1:0;T=T[P]}T!==null&&(o[C]=T)}for(const C in g)o[C]=g[C]}}}return o}const qf=e=>(t,n)=>{const r=v.useContext(ei),o=v.useContext(fr),i=()=>IT(e,t,r,o);return n?i():ha(i)},FT=qf({scrapeMotionValuesFromProps:Da,createRenderState:Va}),LT=qf({scrapeMotionValuesFromProps:$f,createRenderState:Gf}),OT=Symbol.for("motionComponentSymbol");function WT(e,t,n){const r=v.useRef(n);v.useInsertionEffect(()=>{r.current=n});const o=v.useRef(null);return v.useCallback(i=>{i&&e.onMount?.(i),t&&(i?t.mount(i):t.unmount());const s=r.current;if(typeof s=="function")if(i){const a=s(i);typeof a=="function"&&(o.current=a)}else o.current?(o.current(),o.current=null):s(i);else s&&(s.current=i)},[t])}const Kf=v.createContext({});function Qt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function NT(e,t,n,r,o,i){const{visualElement:s}=v.useContext(ei),a=v.useContext(Wf),l=v.useContext(fr),c=v.useContext(Ia),u=c.reducedMotion,d=c.skipAnimations,h=v.useRef(null),m=v.useRef(!1);r=r||a.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:i}),m.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const y=h.current,g=v.useContext(Kf);y&&!y.projection&&o&&(y.type==="html"||y.type==="svg")&&HT(h.current,n,o,g);const S=v.useRef(!1);v.useInsertionEffect(()=>{y&&S.current&&y.update(n,l)});const w=n[nf],C=v.useRef(!!w&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return pd(()=>{m.current=!0,y&&(S.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),C.current&&y.animationState&&y.animationState.animateChanges())}),v.useEffect(()=>{y&&(!C.current&&y.animationState&&y.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(w)}),C.current=!1),y.enteringChildren=void 0)}),y}function HT(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Xf(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&Qt(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:c,layoutAnchor:u})}function Xf(e){if(e)return e.options.allowProjection!==!1?e.projection:Xf(e.parent)}function Ui(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&TT(r);const i=n?n==="svg":Fa(e),s=i?LT:FT;function a(c,u){let d;const h={...v.useContext(Ia),...c,layoutId:UT(c)},{isStatic:m}=h,y=RT(c),g=s(c,m);if(!m&&typeof window<"u"){GT();const S=qT(h);d=S.MeasureLayout,y.visualElement=NT(e,g,h,o,S.ProjectionNode,i)}return p.jsxs(ei.Provider,{value:y,children:[d&&y.visualElement?p.jsx(d,{visualElement:y.visualElement,...h}):null,DT(e,c,WT(g,y.visualElement,u),g,m,t,i)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=v.forwardRef(a);return l[OT]=e,l}function UT({layoutId:e}){const t=v.useContext(fa).id;return t&&e!==void 0?t+"-"+e:e}function GT(e,t){v.useContext(Wf).strict}function qT(e){const t=Nf(),{drag:n,layout:r}=t;if(!n&&!r)return{};const o={...n,...r};return{MeasureLayout:n?.isEnabled(e)||r?.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function KT(e,t){if(typeof Proxy>"u")return Ui;const n=new Map,r=(i,s)=>Ui(i,s,e,t),o=(i,s)=>r(i,s);return new Proxy(o,{get:(i,s)=>s==="create"?r:(n.has(s)||n.set(s,Ui(s,void 0,e,t)),n.get(s))})}const XT=(e,t)=>t.isSVG??Fa(e)?new wC(t):new gC(t,{allowProjection:e!==v.Fragment});class YT extends Et{constructor(t){super(t),t.animationState||(t.animationState=AC(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Jo(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let ZT=0;class JT extends Et{constructor(){super(...arguments),this.id=ZT++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===!1){if(this.isExitComplete){const{initial:i,custom:s}=this.node.getProps();if(typeof i=="string"||typeof i=="object"&&i!==null&&!Array.isArray(i)){const a=Gt(this.node,i,s);if(a){const{transition:l,transitionEnd:c,...u}=a;for(const d in u)this.node.getValue(d)?.jump(u[d])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const QT={animation:{Feature:YT},exit:{Feature:JT}};function gr(e){return{point:{x:e.pageX,y:e.pageY}}}const eP=e=>t=>Ea(t)&&e(t,gr(t));function Zn(e,t,n,r){return cr(e,t,eP(n),r)}const Yf=({current:e})=>e?e.ownerDocument.defaultView:null,ou=(e,t)=>Math.abs(e-t);function tP(e,t){const n=ou(e.x,t.x),r=ou(e.y,t.y);return Math.sqrt(n**2+r**2)}const iu=new Set(["auto","scroll"]);class Zf{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:s=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=m=>{this.handleScroll(m.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Fr(this.lastRawMoveEventInfo,this.transformPagePoint));const m=Gi(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,g=tP(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!g)return;const{point:S}=m,{timestamp:w}=ge;this.history.push({...S,timestamp:w});const{onStart:C,onMove:T}=this.handlers;y||(C&&C(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,m)},this.handlePointerMove=(m,y)=>{this.lastMoveEvent=m,this.lastRawMoveEventInfo=y,this.lastMoveEventInfo=Fr(y,this.transformPagePoint),Z.update(this.updatePoint,!0)},this.handlePointerUp=(m,y)=>{this.end();const{onEnd:g,onSessionEnd:S,resumeAnimation:w}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=Gi(m.type==="pointercancel"?this.lastMoveEventInfo:Fr(y,this.transformPagePoint),this.history);this.startEvent&&g&&g(m,C),S&&S(m,C)},!Ea(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=o||window;const l=gr(t),c=Fr(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=ge;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,Gi(c,this.history)),this.removeListeners=hr(Zn(this.contextWindow,"pointermove",this.handlePointerMove),Zn(this.contextWindow,"pointerup",this.handlePointerUp),Zn(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(iu.has(r.overflowX)||iu.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,o=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:o.x-n.x,y:o.y-n.y};i.x===0&&i.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,o),Z.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),_t(this.updatePoint)}}function Fr(e,t){return t?{point:t(e.point)}:e}function su(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Gi({point:e},t){return{point:e,delta:su(e,Jf(t)),offset:su(e,nP(t)),velocity:rP(t,.1)}}function nP(e){return e[0]}function Jf(e){return e[e.length-1]}function rP(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Jf(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Ee(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&o.timestamp-r.timestamp>Ee(t)*2&&(r=e[1]);const i=Ie(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function oP(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Y(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Y(n,e,r.max):Math.min(e,n)),e}function au(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function iP(e,{top:t,left:n,bottom:r,right:o}){return{x:au(e.x,n,o),y:au(e.y,t,r)}}function lu(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function sP(e,t){return{x:lu(e.x,t.x),y:lu(e.y,t.y)}}function aP(e,t){let n=.5;const r=ke(e),o=ke(t);return o>r?n=sr(t.min,t.max-r,e.min):r>o&&(n=sr(e.min,e.max-o,t.min)),lt(0,1,n)}function lP(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Vs=.35;function cP(e=Vs){return e===!1?e=0:e===!0&&(e=Vs),{x:cu(e,"left","right"),y:cu(e,"top","bottom")}}function cu(e,t,n){return{min:uu(e,t),max:uu(e,n)}}function uu(e,t){return typeof e=="number"?e:e[t]||0}const uP=new WeakMap;class dP{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=he(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const i=d=>{n&&this.snapToCursor(gr(d).point),this.stopAnimation()},s=(d,h)=>{const{drag:m,dragPropagation:y,onDragStart:g}=this.getProps();if(m&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Bk(m),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Je(w=>{let C=this.getAxisMotionValue(w).get()||0;if(at.test(C)){const{projection:T}=this.visualElement;if(T&&T.layout){const P=T.layout.layoutBox[w];P&&(C=ke(P)*(parseFloat(C)/100))}}this.originPoint[w]=C}),g&&Z.update(()=>g(d,h),!1,!0),$s(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},a=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h;const{dragPropagation:m,dragDirectionLock:y,onDirectionLock:g,onDrag:S}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:w}=h;if(y&&this.currentDirection===null){this.currentDirection=hP(w),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",h.point,w),this.updateAxis("y",h.point,w),this.visualElement.render(),S&&Z.update(()=>S(d,h),!1,!0)},l=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h,this.stop(d,h),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new Zf(t,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:Yf(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!r)return;const{velocity:s}=o;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&Z.postRender(()=>a(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Lr(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=oP(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&Qt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=iP(r.layoutBox,t):this.constraints=!1,this.elastic=cP(n),o!==this.constraints&&!Qt(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Je(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=lP(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Qt(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;o.root&&(o.root.scroll=void 0,o.root.updateScroll());const i=uC(r,o.root,this.visualElement.getTransformPagePoint());let s=sP(o.layout.layoutBox,i);if(n){const a=n(aC(s));this.hasMutatedConstraints=!!a,a&&(s=vf(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Je(u=>{if(!Lr(u,n,this.currentDirection))return;let d=l&&l[u]||{};(s===!0||s===u)&&(d={min:0,max:0});const h=o?200:1e6,m=o?40:1e7,y={type:"inertia",velocity:r?t[u]:0,bounceStiffness:h,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,y)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return $s(this.visualElement,t),r.start(Aa(t,r,0,n,this.visualElement,!1))}stopAnimation(){Je(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,o=this.visualElement.getProps()[n];return o||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){Je(n=>{const{drag:r}=this.getProps();if(!Lr(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n],l=i.get()||0;i.set(t[n]-Y(s,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Qt(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Je(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=aP({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Je(s=>{if(!Lr(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(Y(l,c,o[s]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;uP.set(this.visualElement,this);const t=this.visualElement.current,n=Zn(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps(),h=c.target,m=h!==t&&Ok(h);u&&d&&!m&&this.start(c)});let r;const o=()=>{const{dragConstraints:c}=this.getProps();Qt(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),r||(r=fP(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,s=i.addEventListener("measure",o);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Z.read(o);const a=cr(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(Je(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=c[d].translate,h.set(h.get()+c[d].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),l&&l(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Vs,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function du(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function fP(e,t,n){const r=bc(e,du(n)),o=bc(t,du(n));return()=>{r(),o()}}function Lr(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function hP(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class pP extends Et{constructor(t){super(t),this.removeGroupControls=Le,this.removeListeners=Le,this.controls=new dP(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Le}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const qi=e=>(t,n)=>{e&&Z.update(()=>e(t,n),!1,!0)};class mP extends Et{constructor(){super(...arguments),this.removePointerDownListener=Le}onPointerDown(t){this.session=new Zf(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Yf(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:qi(t),onStart:qi(n),onMove:qi(r),onEnd:(i,s)=>{delete this.session,o&&Z.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=Zn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Ki=!1;class gP extends v.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),Ki&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),fo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:s}=r;return s&&(s.isPresent=i,t.layoutDependency!==n&&s.setOptions({...s.options,layoutDependency:n}),Ki=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Z.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),Ra.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Ki=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Qf(e){const[t,n]=Of(),r=v.useContext(fa);return p.jsx(gP,{...e,layoutGroup:r,switchLayoutGroup:v.useContext(Kf),isPresent:t,safeToRemove:n})}const yP={pan:{Feature:mP},drag:{Feature:pP,ProjectionNode:Lf,MeasureLayout:Qf}};function fu(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&Z.postRender(()=>i(t,gr(t)))}class bP extends Et{mount(){const{current:t}=this.node;t&&(this.unmount=Ik(t,(n,r)=>(fu(this.node,r,"Start"),o=>fu(this.node,o,"End"))))}unmount(){}}class vP extends Et{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=hr(cr(this.node.current,"focus",()=>this.onFocus()),cr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function hu(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&Z.postRender(()=>i(t,gr(t)))}class xP extends Et{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=Nk(t,(o,i)=>(hu(this.node,i,"Start"),(s,{success:a})=>hu(this.node,s,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:r?.tap===!1})}unmount(){}}const Fs=new WeakMap,Xi=new WeakMap,SP=e=>{const t=Fs.get(e.target);t&&t(e)},wP=e=>{e.forEach(SP)};function kP({root:e,...t}){const n=e||document;Xi.has(n)||Xi.set(n,{});const r=Xi.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(wP,{root:e,...t})),r[o]}function CP(e,t,n){const r=kP(t);return Fs.set(e,n),r.observe(e),()=>{Fs.delete(e),r.unobserve(e)}}const TP={some:0,all:1};class PP extends Et{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:TP[o]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),h=c?u:d;h&&h(l)};this.stopObserver=CP(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(AP(t,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function AP({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const $P={inView:{Feature:PP},tap:{Feature:xP},focus:{Feature:vP},hover:{Feature:bP}},_P={layout:{ProjectionNode:Lf,MeasureLayout:Qf}},RP={...QT,...$P,...yP,..._P},EP=KT(RP,XT),MP=(e,t)=>e.find(n=>n.id===t);function pu(e,t){const n=eh(e,t),r=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:r}}function eh(e,t){for(const[n,r]of Object.entries(e))if(MP(r,t))return n}function jP(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function zP(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:o,right:i,left:s}}var BP=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,DP=Ju(function(e){return BP.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),IP=DP,VP=function(t){return t!=="theme"},mu=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?IP:VP},gu=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},FP=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return ia(n,r,o),ad(function(){return sa(n,r,o)}),null},LP=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=gu(t,n,r),l=a||mu(o),c=!l("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var h=u[0];d.push(h[0]);for(var m=u.length,y=1;y<m;y++)d.push(u[y],h[y])}var g=la(function(S,w,C){var T=c&&S.as||o,P="",R=[],_=S;if(S.theme==null){_={};for(var A in S)_[A]=S[A];_.theme=v.useContext(bn)}typeof S.className=="string"?P=od(w.registered,R,S.className):S.className!=null&&(P=S.className+" ");var $=Xo(d.concat(R),w.registered,_);P+=w.key+"-"+$.name,s!==void 0&&(P+=" "+s);var D=c&&a===void 0?mu(T):l,j={};for(var F in S)c&&F==="as"||D(F)&&(j[F]=S[F]);return j.className=P,C&&(j.ref=C),v.createElement(v.Fragment,null,v.createElement(FP,{cache:w,serialized:$,isStringTag:typeof T=="string"}),v.createElement(T,j))});return g.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=o,g.__emotion_styles=d,g.__emotion_forwardProp=a,Object.defineProperty(g,"toString",{value:function(){return"."+s}}),g.withComponent=function(S,w){var C=e(S,So({},n,w,{shouldForwardProp:gu(g,w,!0)}));return C.apply(void 0,d)},g}},OP=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Ls=LP.bind(null);OP.forEach(function(e){Ls[e]=Ls(e)});const WP=new Set([...jm,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),NP=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function HP(e){return(NP.has(e)||!WP.has(e))&&e[0]!=="_"}const UP=Up(Ls),GP=({baseStyle:e})=>t=>{const{theme:n,css:r,__css:o,sx:i,...s}=t,[a]=Xp(s,Bm),l=rt(e,t),c=Bp({},o,l,Tu(a),i),u=Eu(c)(t.theme);return r?[u,r]:u};function Yi(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=HP);const o=GP({baseStyle:n}),i=UP(e,r)(o);return v.forwardRef(function(l,c){const{children:u,...d}=l,{colorMode:h,forced:m}=da(),y=m?h:void 0;return v.createElement(i,{ref:c,"data-theme":y,...d},u)})}function qP(){const e=new Map;return new Proxy(Yi,{apply(t,n,r){return Yi(...r)},get(t,n){return e.has(n)||e.set(n,Yi(n)),e.get(n)}})}const J=qP(),KP={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},th=v.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:i=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:c=KP,toastSpacing:u="0.5rem"}=e,[d,h]=v.useState(a),m=ST();Cl(()=>{m||r?.()},[m]),Cl(()=>{h(a)},[a]);const y=()=>h(null),g=()=>h(a),S=()=>{m&&o()};v.useEffect(()=>{m&&i&&o()},[m,i,o]),em(S,d);const w=v.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:u,...l}),[l,u]),C=v.useMemo(()=>jP(s),[s]);return p.jsx(EP.div,{layout:!0,className:"chakra-toast",variants:c,initial:"initial",animate:"animate",exit:"exit",onHoverStart:y,onHoverEnd:g,custom:{position:s},style:C,children:p.jsx(J.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:w,children:rt(n,{id:t,onClose:S})})})});th.displayName="ToastComponent";function ce(e){return v.forwardRef(e)}var XP=typeof Element<"u",YP=typeof Map=="function",ZP=typeof Set=="function",JP=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function ho(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!ho(e[r],t[r]))return!1;return!0}var i;if(YP&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!ho(r.value[1],t.get(r.value[0])))return!1;return!0}if(ZP&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(JP&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(XP&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!ho(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var QP=function(t,n){try{return ho(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const eA=Su(QP);function La(){const e=v.useContext(bn);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}function tA(){const e=da(),t=La();return{...e,theme:t}}function nA(e,t,n){if(t==null)return t;const r=o=>e.__cssMap?.[o]?.value;return r(t)??r(n)??n}function rA(e,t,n){const r=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return i=>{const s=o.filter(Boolean),a=r.map((l,c)=>{const u=`${e}.${l}`;return nA(i,u,s[c]??l)});return Array.isArray(t)?a:a[0]}}function oA(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>n!==void 0&&t!=="children"&&!v.isValidElement(n)))}function nh(e,t={}){const{styleConfig:n,...r}=t,{theme:o,colorMode:i}=tA(),s=e?Pu(o,`components.${e}`):void 0,a=n||s,l=ot({theme:o,colorMode:i},a?.defaultProps??{},oA(r),(u,d)=>u?void 0:d),c=v.useRef({});if(a){const d=Um(a)(l);eA(c.current,d)||(c.current=d)}return c.current}function Mt(e,t={}){return nh(e,t)}function Oa(e,t={}){return nh(e,t)}const yu={path:p.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[p.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),p.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),p.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},yr=ce((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:s,className:a,__css:l,...c}=e,u=ve("chakra-icon",a),d=Mt("Icon",e),h={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...d},m={ref:t,focusable:i,className:u,__css:h},y=r??yu.viewBox;if(n&&typeof n!="string")return p.jsx(J.svg,{as:n,...m,...c});const g=s??yu.path;return p.jsx(J.svg,{verticalAlign:"middle",viewBox:y,...m,...c,children:g})});yr.displayName="Icon";function iA(e){return p.jsx(yr,{viewBox:"0 0 24 24",...e,children:p.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function sA(e){return p.jsx(yr,{viewBox:"0 0 24 24",...e,children:p.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function bu(e){return p.jsx(yr,{viewBox:"0 0 24 24",...e,children:p.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}const aA=y1({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Wa=ce((e,t)=>{const n=Mt("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:s="transparent",className:a,...l}=ct(e),c=ve("chakra-spinner",a),u={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${aA} ${i} linear infinite`,...n};return p.jsx(J.div,{ref:t,__css:u,className:c,...l,children:r&&p.jsx(J.span,{srOnly:!0,children:r})})});Wa.displayName="Spinner";const[lA,Na]=xt({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[cA,Ha]=xt({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),rh={info:{icon:sA,colorScheme:"blue"},warning:{icon:bu,colorScheme:"orange"},success:{icon:iA,colorScheme:"green"},error:{icon:bu,colorScheme:"red"},loading:{icon:Wa,colorScheme:"blue"}};function uA(e){return rh[e].colorScheme}function dA(e){return rh[e].icon}const oh=ce(function(t,n){const{status:r="info",addRole:o=!0,...i}=ct(t),s=t.colorScheme??uA(r),a=Oa("Alert",{...t,colorScheme:s}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...a.container};return p.jsx(lA,{value:{status:r},children:p.jsx(cA,{value:a,children:p.jsx(J.div,{"data-status":r,role:o?"alert":void 0,ref:n,...i,className:ve("chakra-alert",t.className),__css:l})})})});oh.displayName="Alert";function ih(e){const{status:t}=Na(),n=dA(t),r=Ha(),o=t==="loading"?r.spinner:r.icon;return p.jsx(J.span,{display:"inherit","data-status":t,...e,className:ve("chakra-alert__icon",e.className),__css:o,children:e.children||p.jsx(n,{h:"100%",w:"100%"})})}ih.displayName="AlertIcon";const sh=ce(function(t,n){const r=Ha(),{status:o}=Na();return p.jsx(J.div,{ref:n,"data-status":o,...t,className:ve("chakra-alert__title",t.className),__css:r.title})});sh.displayName="AlertTitle";const ah=ce(function(t,n){const{status:r}=Na(),o=Ha(),i={display:"inline",...o.description};return p.jsx(J.div,{ref:n,"data-status":r,...t,className:ve("chakra-alert__desc",t.className),__css:i})});ah.displayName="AlertDescription";function fA(e){return p.jsx(yr,{focusable:"false","aria-hidden":!0,...e,children:p.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}const lh=ce(function(t,n){const r=Mt("CloseButton",t),{children:o,isDisabled:i,__css:s,...a}=ct(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return p.jsx(J.button,{type:"button","aria-label":"Close",ref:n,disabled:i,__css:{...l,...r,...s},...a,children:o||p.jsx(fA,{width:"1em",height:"1em"})})});lh.displayName="CloseButton";const hA=e=>{const{status:t,variant:n="solid",id:r,title:o,isClosable:i,onClose:s,description:a,colorScheme:l,icon:c}=e,u=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return p.jsxs(oh,{addRole:!1,status:t,variant:n,id:u?.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[p.jsx(ih,{children:c}),p.jsxs(J.div,{flex:"1",maxWidth:"100%",children:[o&&p.jsx(sh,{id:u?.title,children:o}),a&&p.jsx(ah,{id:u?.description,display:"block",children:a})]}),i&&p.jsx(lh,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function pA(e={}){const{render:t,toastComponent:n=hA}=e;return o=>typeof t=="function"?t({...o,...e}):p.jsx(n,{...o,...e})}const mA={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Jn=gA(mA);function gA(e){let t=e;const n=new Set,r=o=>{t=o(t),n.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(n.add(o),()=>{r(()=>e),n.delete(o)}),removeToast:(o,i)=>{r(s=>({...s,[i]:s[i].filter(a=>a.id!=o)}))},notify:(o,i)=>{const s=yA(o,i),{position:a,id:l}=s;return r(c=>{const d=a.includes("top")?[s,...c[a]??[]]:[...c[a]??[],s];return{...c,[a]:d}}),l},update:(o,i)=>{o&&r(s=>{const a={...s},{position:l,index:c}=pu(a,o);return l&&c!==-1&&(a[l][c]={...a[l][c],...i,message:pA(i)}),a})},closeAll:({positions:o}={})=>{r(i=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,c)=>(l[c]=i[c].map(u=>({...u,requestClose:!0})),l),{...i}))},close:o=>{r(i=>{const s=eh(i,o);return s?{...i,[s]:i[s].map(a=>a.id==o?{...a,requestClose:!0}:a)}:i})},isActive:o=>!!pu(Jn.getState(),o).position}}let vu=0;function yA(e,t={}){vu+=1;const n=t.id??vu,r=t.position??"bottom";return{id:n,message:e,position:r,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Jn.removeToast(String(n),r),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}const[ch,bA]=xt({strict:!1,name:"PortalContext"}),Ua="chakra-portal",vA=".chakra-portal",xA=e=>p.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),SA=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=v.useState(null),i=v.useRef(null),[,s]=v.useState({});v.useEffect(()=>s({}),[]);const a=bA(),l=_1();ts(()=>{if(!r)return;const u=r.ownerDocument,d=t?a??u.body:u.body;if(!d)return;i.current=u.createElement("div"),i.current.className=Ua,d.appendChild(i.current),s({});const h=i.current;return()=>{d.contains(h)&&d.removeChild(h)}},[r]);const c=l?.zIndex?p.jsx(xA,{zIndex:l?.zIndex,children:n}):n;return i.current?wu.createPortal(p.jsx(ch,{value:i.current,children:c}),i.current):p.jsx("span",{ref:u=>{u&&o(u)}})},wA=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,i=o??(typeof window<"u"?document.body:void 0),s=v.useMemo(()=>{const l=o?.ownerDocument.createElement("div");return l&&(l.className=Ua),l},[o]),[,a]=v.useState({});return ts(()=>a({}),[]),ts(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?wu.createPortal(p.jsx(ch,{value:r?s:null,children:t}),s):null};function ti(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?p.jsx(wA,{containerRef:n,...r}):p.jsx(SA,{...r})}ti.className=Ua;ti.selector=vA;ti.displayName="Portal";const[kA]=xt({name:"ToastOptionsContext",strict:!1}),CA=e=>{const t=v.useSyncExternalStore(Jn.subscribe,Jn.getState,Jn.getState),{motionVariants:n,component:r=th,portalProps:o,animatePresenceProps:i}=e,a=Object.keys(t).map(l=>{const c=t[l];return p.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${l}`,"aria-hidden":!c.length,id:`chakra-toast-manager-${l}`,style:zP(l),children:p.jsx(kT,{...i,initial:!1,children:c.map(u=>p.jsx(r,{motionVariants:n,...u},u.id))})},l)});return p.jsx(ti,{...o,children:a})},TA=e=>function({children:n,theme:r=e,toastOptions:o,...i}){return p.jsxs(R1,{theme:r,...i,children:[p.jsx(kA,{value:o?.defaultOptions,children:n}),p.jsx(CA,{...o})]})},uh=TA(yS),dh=ce(function(t,n){const r=Mt("Badge",t),{className:o,...i}=ct(t);return p.jsx(J.span,{ref:n,className:ve("chakra-badge",t.className),...i,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});dh.displayName="Badge";const q=J("div");q.displayName="Box";const[R2,PA]=xt({strict:!1,name:"ButtonGroupContext"});function On(e){const{children:t,className:n,...r}=e,o=v.isValidElement(t)?v.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=ve("chakra-button__icon",n);return p.jsx(J.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:i,children:o})}On.displayName="ButtonIcon";function Os(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=p.jsx(Wa,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...a}=e,l=ve("chakra-button__spinner",i),c=n==="start"?"marginEnd":"marginStart",u=v.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[c]:t?r:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,c,r]);return p.jsx(J.div,{className:l,...a,__css:u,children:o})}Os.displayName="ButtonSpinner";function AA(e){const[t,n]=v.useState(!e);return{ref:v.useCallback(i=>{i&&n(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}const Rt=ce((e,t)=>{const n=PA(),r=Mt("Button",{...n,...e}),{isDisabled:o=n?.isDisabled,isLoading:i,isActive:s,children:a,leftIcon:l,rightIcon:c,loadingText:u,iconSpacing:d="0.5rem",type:h,spinner:m,spinnerPlacement:y="start",className:g,as:S,shouldWrapChildren:w,...C}=ct(e),T=v.useMemo(()=>{const A={...r?._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:A}}},[r,n]),{ref:P,type:R}=AA(S),_={rightIcon:c,leftIcon:l,iconSpacing:d,children:a,shouldWrapChildren:w};return p.jsxs(J.button,{disabled:o||i,ref:Qp(t,P),as:S,type:h??R,"data-active":Ze(s),"data-loading":Ze(i),__css:T,className:ve("chakra-button",g),...C,children:[i&&y==="start"&&p.jsx(Os,{className:"chakra-button__spinner--start",label:u,placement:"start",spacing:d,children:m}),i?u||p.jsx(J.span,{opacity:0,children:p.jsx(xu,{..._})}):p.jsx(xu,{..._}),i&&y==="end"&&p.jsx(Os,{className:"chakra-button__spinner--end",label:u,placement:"end",spacing:d,children:m})]})});Rt.displayName="Button";function xu(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o,shouldWrapChildren:i}=e;return i?p.jsxs("span",{style:{display:"contents"},children:[t&&p.jsx(On,{marginEnd:o,children:t}),r,n&&p.jsx(On,{marginStart:o,children:n})]}):p.jsxs(p.Fragment,{children:[t&&p.jsx(On,{marginEnd:o,children:t}),r,n&&p.jsx(On,{marginStart:o,children:n})]})}const fh=ce((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":i,...s}=e,a=n||r,l=v.isValidElement(a)?v.cloneElement(a,{"aria-hidden":!0,focusable:!1}):null;return p.jsx(Rt,{px:"0",py:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":i,...s,children:l})});fh.displayName="IconButton";const[$A,_A]=xt({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[RA,hh]=xt({strict:!1,name:"FormControlContext"});function EA(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:i,...s}=e,a=v.useId(),l=t||`field-${a}`,c=`${l}-label`,u=`${l}-feedback`,d=`${l}-helptext`,[h,m]=v.useState(!1),[y,g]=v.useState(!1),[S,w]=v.useState(!1),C=v.useCallback((A={},$=null)=>({id:d,...A,ref:ns($,D=>{D&&g(!0)})}),[d]),T=v.useCallback((A={},$=null)=>({...A,ref:$,"data-focus":Ze(S),"data-disabled":Ze(o),"data-invalid":Ze(r),"data-readonly":Ze(i),id:A.id!==void 0?A.id:c,htmlFor:A.htmlFor!==void 0?A.htmlFor:l}),[l,o,S,r,i,c]),P=v.useCallback((A={},$=null)=>({id:u,...A,ref:ns($,D=>{D&&m(!0)}),"aria-live":"polite"}),[u]),R=v.useCallback((A={},$=null)=>({...A,...s,ref:$,role:"group","data-focus":Ze(S),"data-disabled":Ze(o),"data-invalid":Ze(r),"data-readonly":Ze(i)}),[s,o,S,r,i]),_=v.useCallback((A={},$=null)=>({...A,ref:$,role:"presentation","aria-hidden":!0,children:A.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!i,isDisabled:!!o,isFocused:!!S,onFocus:()=>w(!0),onBlur:()=>w(!1),hasFeedbackText:h,setHasFeedbackText:m,hasHelpText:y,setHasHelpText:g,id:l,labelId:c,feedbackId:u,helpTextId:d,htmlProps:s,getHelpTextProps:C,getErrorMessageProps:P,getRootProps:R,getLabelProps:T,getRequiredIndicatorProps:_}}const MA=ce(function(t,n){const r=Oa("Form",t),o=ct(t),{getRootProps:i,htmlProps:s,...a}=EA(o),l=ve("chakra-form-control",t.className);return p.jsx(RA,{value:a,children:p.jsx($A,{value:r,children:p.jsx(J.div,{...i({},n),className:l,__css:r.container})})})});MA.displayName="FormControl";const jA=ce(function(t,n){const r=hh(),o=_A(),i=ve("chakra-form__helper-text",t.className);return p.jsx(J.div,{...r?.getHelpTextProps(t,n),__css:o.helperText,className:i})});jA.displayName="FormHelperText";function zA(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=BA(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":mi(n),"aria-required":mi(o),"aria-readonly":mi(r)}}function BA(e){const t=hh(),{id:n,disabled:r,readOnly:o,required:i,isRequired:s,isInvalid:a,isReadOnly:l,isDisabled:c,onFocus:u,onBlur:d,...h}=e,m=e["aria-describedby"]?[e["aria-describedby"]]:[];return t?.hasFeedbackText&&t?.isInvalid&&m.push(t.feedbackId),t?.hasHelpText&&m.push(t.helpTextId),{...h,"aria-describedby":m.join(" ")||void 0,id:n??t?.id,isDisabled:r??c??t?.isDisabled,isReadOnly:o??l??t?.isReadOnly,isRequired:i??s??t?.isRequired,isInvalid:a??t?.isInvalid,onFocus:wl(t?.onFocus,u),onBlur:wl(t?.onBlur,d)}}const Q=ce(function(t,n){const r=Mt("Code",t),{className:o,...i}=ct(t);return p.jsx(J.code,{ref:n,className:ve("chakra-code",t.className),...i,__css:{display:"inline-block",...r}})});Q.displayName="Code";const Ws=ce(function(t,n){const{className:r,centerContent:o,...i}=ct(t),s=Mt("Container",t);return p.jsx(J.div,{ref:n,className:ve("chakra-container",r),...i,__css:{...s,...o&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});Ws.displayName="Container";const po=ce(function(t,n){const{direction:r,align:o,justify:i,wrap:s,basis:a,grow:l,shrink:c,...u}=t,d={display:"flex",flexDirection:r,alignItems:o,justifyContent:i,flexWrap:s,flexBasis:a,flexGrow:l,flexShrink:c};return p.jsx(J.div,{ref:n,__css:d,...u})});po.displayName="Flex";const ph=ce(function(t,n){const{templateAreas:r,gap:o,rowGap:i,columnGap:s,column:a,row:l,autoFlow:c,autoRows:u,templateRows:d,autoColumns:h,templateColumns:m,...y}=t,g={display:"grid",gridTemplateAreas:r,gridGap:o,gridRowGap:i,gridColumnGap:s,gridAutoColumns:h,gridColumn:a,gridRow:l,gridAutoFlow:c,gridAutoRows:u,gridTemplateRows:d,gridTemplateColumns:m};return p.jsx(J.div,{ref:n,__css:g,...y})});ph.displayName="Grid";const mh=ce(function(t,n){const{columns:r,spacingX:o,spacingY:i,spacing:s,minChildWidth:a,...l}=t,c=La(),u=a?IA(a,c):VA(r);return p.jsx(ph,{ref:n,gap:s,columnGap:o,rowGap:i,templateColumns:u,...l})});mh.displayName="SimpleGrid";function DA(e){return typeof e=="number"?`${e}px`:e}function IA(e,t){return Us(e,n=>{const r=rA("sizes",n,DA(n))(t);return n===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function VA(e){return Us(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}const Ga=ce(function(t,n){const{htmlSize:r,...o}=t,i=Oa("Input",o),s=ct(o),a=zA(s),l=ve("chakra-input",t.className);return p.jsx(J.input,{size:r,...a,__css:i.field,ref:n,className:l})});Ga.displayName="Input";Ga.id="Input";const gh=e=>p.jsx(J.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});gh.displayName="StackItem";function FA(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":Us(n,o=>r[o])}}const Kt=ce((e,t)=>{const{isInline:n,direction:r,align:o,justify:i,spacing:s="0.5rem",wrap:a,children:l,divider:c,className:u,shouldWrapChildren:d,...h}=e,m=n?"row":r??"column",y=v.useMemo(()=>FA({spacing:s,direction:m}),[s,m]),g=!!c,S=!d&&!g,w=v.useMemo(()=>{const T=Op(l);return S?T:T.map((P,R)=>{const _=typeof P.key<"u"?P.key:R,A=R+1===T.length,D=d?p.jsx(gh,{children:P},_):P;if(!g)return D;const j=v.cloneElement(c,{__css:y}),F=A?null:j;return p.jsxs(v.Fragment,{children:[D,F]},_)})},[c,y,g,S,d,l]),C=ve("chakra-stack",u);return p.jsx(J.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:m,flexWrap:a,gap:g?void 0:s,className:C,...h,children:w})});Kt.displayName="Stack";const yh=ce((e,t)=>p.jsx(Kt,{align:"center",...e,direction:"row",ref:t}));yh.displayName="HStack";const G=ce(function(t,n){const r=Mt("Text",t),{className:o,align:i,decoration:s,casing:a,...l}=ct(t),c=Tu({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return p.jsx(J.p,{ref:n,className:ve("chakra-text",t.className),...c,...l,__css:r})});G.displayName="Text";function LA(e={}){if(typeof window>"u")return;const t=window[Qi]||{};window[Qi]={...t,React:e.React||t.React||Ve,createRoot:e.createRoot||t.createRoot||ku,ChakraProvider:e.ChakraProvider||t.ChakraProvider||uh,Badge:e.Badge||t.Badge||dh,Button:e.Button||t.Button||Rt,HStack:e.HStack||t.HStack||yh,IconButton:e.IconButton||t.IconButton||fh,Input:e.Input||t.Input||Ga,Text:e.Text||t.Text||G,...e.deps||{},theme:Object.prototype.hasOwnProperty.call(e,"theme")?e.theme:t.theme,chakraProviderProps:{...t.chakraProviderProps||{},...e.chakraProviderProps||{}}}}const Or=new Map;function OA(e=[]){if(typeof window>"u")return!1;const t=window[Qi];return e.every(n=>t?.[n])}function WA(e=[]){typeof window>"u"||OA(e)||LA()}function NA(e,t){const n=`${e}:${t}`;return Or.has(n)||Or.set(n,import(t).catch(r=>{throw Or.delete(n),r})),Or.get(n)}function HA({componentName:e,tagName:t,defaultRemoteUrl:n,requiredDeps:r,normalizeProps:o}){return function({theme:s,chakraProviderProps:a,...l}){const c=v.useRef(null),u=v.useRef(null),d=v.useRef(null);return d.current={...o?o(l):l,...s!==void 0?{theme:s}:{},...a?{chakraProviderProps:a}:{}},v.useEffect(()=>{let h=!0;return WA(r),NA(e,n).then(()=>{if(!h||!c.current)return;const m=document.createElement(t);m.componentProps=d.current,c.current.appendChild(m),u.current=m}).catch(m=>{console.error(`[uikit/remote/ui] Failed to load ${e}:`,m)}),()=>{h=!1,u.current&&(u.current.remove(),u.current=null)}},[e,n,t]),v.useEffect(()=>{u.current&&(u.current.componentProps=d.current)}),p.jsx("span",{ref:c,style:{display:"contents"}})}}const UA=HA({componentName:"Pagination",tagName:"uikit-pagination",defaultRemoteUrl:Ns.Pagination,requiredDeps:["React","createRoot","ChakraProvider","Button","HStack","IconButton","Input","Text"]});function Zi({theme:e,...t}){const n=La();return p.jsx(UA,{...t,theme:e??n})}const Wr=new Map;function GA(e,t){const n=`${e}:${t}`;return Wr.has(n)||Wr.set(n,import(t).catch(r=>{throw Wr.delete(n),r})),Wr.get(n)}function qA({componentName:e,tagName:t,defaultRemoteUrl:n,normalizeProps:r}){return function(i){const s=v.useRef(null),a=v.useRef(null),l=v.useRef(null);return l.current=r?r(i):i,v.useEffect(()=>{let c=!0;return GA(e,n).then(()=>{if(!c||!s.current)return;const u=document.createElement(t);u.componentProps=l.current,s.current.appendChild(u),a.current=u}).catch(u=>{console.error(`[uikit/remote/ui] Failed to load ${e}:`,u)}),()=>{c=!1,a.current&&(a.current.remove(),a.current=null)}},[e,n,t]),v.useEffect(()=>{a.current&&(a.current.componentProps=l.current)}),p.jsx("span",{ref:s,style:{display:"contents"}})}}const bh=Symbol.for("uikit.remote.app-header.slot");function Xt(e){function t(){return null}return t[bh]=e,t}const KA=Xt("brandSection"),XA=Xt("logo"),YA=Xt("brand"),ZA=Xt("title"),JA=Xt("description"),QA=Xt("bi"),e2=Xt("extra");function Qn(e){if(!(e==null||typeof e=="boolean")){if(typeof e=="string"||typeof e=="number")return String(e);if(Array.isArray(e))return e.map(Qn).filter(Boolean).join("");if(Ve.isValidElement(e))return Qn(e.props?.children)}}function t2(e){const t={showBi:!1,showExtra:!1};function n(r){Ve.Children.forEach(r,o=>{if(!Ve.isValidElement(o))return;const i=o.type?.[bh];i==="logo"?(t.logoSrc=o.props.src,t.logoAlt=o.props.alt):i==="title"?t.title=Qn(o.props.children):i==="description"?t.description=Qn(o.props.children):i==="bi"?(t.showBi=!0,t.biLogoSrc=o.props.logoSrc||o.props.src,t.biLogoAlt=o.props.alt,t.biText=o.props.text):i==="extra"&&(t.showExtra=!0,t.extraLogoSrc=o.props.logoSrc||o.props.src,t.extraLogoAlt=o.props.alt,t.extraText=o.props.text??Qn(o.props.children)),o.props?.children&&n(o.props.children)})}return n(e),t}const n2=qA({componentName:"AppHeader",tagName:"uikit-app-header",defaultRemoteUrl:Ns.AppHeader,normalizeProps:({children:e,...t})=>e==null?t:{...t,...t2(e)}});function r2(e){return p.jsx(n2,{...e})}const Tt=Object.assign(r2,{BrandSection:KA,Logo:XA,Brand:YA,Title:ZA,Description:JA,Extra:e2,Bi:QA}),Nr=new Map;function o2(){if(typeof window>"u")return;const e=window[vl]||{};window[vl]={...e,React:e.React||Ve,createRoot:e.createRoot||ku}}function i2(e,t){const n=`${e}:${t}`;return Nr.has(n)||Nr.set(n,import(t).catch(r=>{throw Nr.delete(n),r})),Nr.get(n)}function s2({componentName:e,tagName:t,defaultRemoteUrl:n,normalizeProps:r}){return function(i){const s=v.useRef(null),a=v.useRef(null),l=v.useRef(null);return l.current=r?r(i):i,v.useEffect(()=>{let c=!0;return o2(),i2(e,n).then(()=>{if(!c||!s.current)return;const u=document.createElement(t);u.componentProps=l.current,s.current.appendChild(u),a.current=u}).catch(u=>{console.error(`[uikit/remote/ui] Failed to load ${e}:`,u)}),()=>{c=!1,a.current&&(a.current.remove(),a.current=null)}},[e,n,t]),v.useEffect(()=>{a.current&&(a.current.componentProps=l.current)}),Ve.createElement("span",{ref:s,style:{display:"contents"}})}}const vh=Symbol.for("uikit.remote.app-sidebar.slot");function a2(e){function t(){return null}return t[vh]=e,t}const l2=a2("exit");function c2(e){const t={showExit:!1};return Ve.Children.forEach(e,n=>{Ve.isValidElement(n)&&n.type?.[vh]==="exit"&&(t.showExit=!0,t.onExit=n.props.onClick,t.exitDisabled=!!n.props.disabled)}),t}function u2(e){if(!e||Ve.isValidElement(e))return e;if(typeof e=="function")return Ve.createElement(e);if(typeof e=="object"&&e?.$$typeof)try{return Ve.createElement(e)}catch{return e}return e}function d2(e){return Array.isArray(e)?e.map(t=>({...t,icon:u2(t?.icon)})):[]}const f2=s2({componentName:"AppSidebar",tagName:"uikit-app-sidebar",defaultRemoteUrl:Ns.AppSidebar,normalizeProps:({children:e,items:t,...n})=>({...n,items:d2(t),...e!=null?c2(e):{}})});function h2(e){return Ve.createElement(f2,e)}const Hr=Object.assign(h2,{Exit:l2}),p2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2096%2096'%3e%3crect%20width='96'%20height='96'%20rx='24'%20fill='%23fff'/%3e%3ccircle%20cx='48'%20cy='48'%20r='27'%20fill='%23314E89'/%3e%3cpath%20d='M35%2050.5%2044%2059l18-22'%20fill='none'%20stroke='%23fff'%20stroke-width='7'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",m2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2096%2096'%3e%3crect%20width='96'%20height='96'%20rx='24'%20fill='%23fff'/%3e%3cpath%20d='M27%2029h42v38H27z'%20fill='%23314E89'%20rx='8'/%3e%3cpath%20d='M36%2039h24M36%2048h24M36%2057h15'%20stroke='%23fff'%20stroke-width='5'%20stroke-linecap='round'/%3e%3c/svg%3e",g2=""+new URL("bi-logo-DqGAmlZy.webp",import.meta.url).href,y2=`import { AppHeader } from "uikit/remote/ui";
export default function PageHeader() {
return (
<AppHeader bg="#314E89">
<AppHeader.BrandSection>
<AppHeader.Logo src="/logo.png" alt="نشان سامانه" />
<AppHeader.Brand>
<AppHeader.Title>عنوان سامانه</AppHeader.Title>
<AppHeader.Description>
توضیحات سامانه
</AppHeader.Description>
</AppHeader.Brand>
</AppHeader.BrandSection>
{/* اختیاری: لوگو و متن دلخواه در انتهای هدر */}
<AppHeader.Extra
src="/secondary-logo.png"
alt="نشان تکمیلی"
text="متن دلخواه"
/>
{/* اختیاری */}
<AppHeader.Bi />
</AppHeader>
);
}`,b2=`import { AppSidebar } from "uikit/remote/ui";
const items = [
{
id: "analysis",
title: "آنالیز",
mobileTitle: "آنالیز",
icon: AnalyzeIcon,
active: pathname === "/analysis",
disabled: false,
onClick: () => router.push("/analysis"),
},
{
id: "users",
title: "کاربران",
mobileTitle: "کاربران",
icon: UsersIcon,
active: pathname === "/users",
onClick: () => router.push("/users"),
},
];
export default function PageSidebar() {
return (
<AppSidebar items={items}>
<AppSidebar.Exit onClick={() => logout()} />
</AppSidebar>
);
}`,v2=`import { Pagination } from "uikit/remote/ui";
<Pagination
level="minimal"
currentPage={page}
totalPages={totalPages}
totalCount={totalCount}
pageSize={10}
loading={isLoading}
onPageChange={(nextPage) => setPage(nextPage)}
/>
// loading اختیاری است.
// اگر نیاز نداری، اصلاً آن را پاس نده.`;function qa({children:e}){const[t,n]=v.useState(!1),r=typeof e=="string"?e:String(e??""),o=async()=>{try{if(navigator.clipboard?.writeText)await navigator.clipboard.writeText(r);else{const i=document.createElement("textarea");i.value=r,i.style.position="fixed",i.style.opacity="0",document.body.appendChild(i),i.select(),document.execCommand("copy"),i.remove()}n(!0),window.setTimeout(()=>n(!1),1400)}catch(i){console.error("Copy failed:",i)}};return p.jsxs(q,{position:"relative",w:"full",children:[p.jsx(Rt,{type:"button",size:"xs",position:"absolute",top:2,right:2,zIndex:1,bg:"whiteAlpha.200",color:"white",_hover:{bg:"whiteAlpha.300"},onClick:o,children:t?"کپی شد":"کپی کد"}),p.jsx(q,{as:"pre",dir:"ltr",textAlign:"left",overflowX:"auto",w:"full",p:{base:3,md:4},pt:{base:10,md:10},bg:"gray.900",color:"gray.100",borderRadius:"lg",fontSize:{base:"12px",md:"13px"},lineHeight:"1.8",whiteSpace:"pre",children:p.jsx(q,{as:"code",children:r})})]})}function Ji({id:e,title:t,children:n}){return p.jsxs(q,{id:e,scrollMarginTop:"18px",bg:"white",borderWidth:"1px",borderColor:"gray.200",borderRadius:"xl",overflow:"hidden",children:[p.jsx(q,{px:{base:4,md:5},py:4,borderBottomWidth:"1px",borderColor:"gray.100",children:p.jsx(G,{fontSize:{base:"md",md:"lg"},fontWeight:"700",color:"gray.800",children:t})}),p.jsx(q,{p:{base:4,md:5},children:n})]})}const x2=()=>p.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":"true",children:[p.jsx("path",{d:"M4 19V9"}),p.jsx("path",{d:"M10 19V5"}),p.jsx("path",{d:"M16 19v-7"}),p.jsx("path",{d:"M22 19H2"})]}),S2=()=>p.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":"true",children:[p.jsx("path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}),p.jsx("circle",{cx:"9",cy:"7",r:"4"}),p.jsx("path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}),p.jsx("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]}),w2=()=>p.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":"true",children:[p.jsx("circle",{cx:"11",cy:"11",r:"8"}),p.jsx("path",{d:"m21 21-4.35-4.35"})]}),k2=()=>p.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":"true",children:[p.jsx("rect",{x:"3",y:"11",width:"18",height:"10",rx:"2"}),p.jsx("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]});function C2(){return p.jsxs(Kt,{spacing:5,children:[p.jsxs(G,{color:"gray.600",fontSize:"sm",children:["ظاهر Header داخل remote ایزوله است؛ فونت از سامانه مقصد می‌آید. رنگ پس‌زمینه با",p.jsx(Q,{mx:1,children:"bg"}),"اختیاری قابل تغییر است. ",p.jsx(Q,{children:"AppHeader.Extra"})," و ",p.jsx(Q,{children:"AppHeader.Bi"})," نیز مستقل و اختیاری‌اند."]}),p.jsx(qa,{children:y2}),p.jsxs(q,{children:[p.jsx(G,{mb:2,fontWeight:"700",fontSize:"sm",children:"نمونه نمایش"}),p.jsx(q,{overflow:"auto",borderWidth:"1px",borderColor:"gray.200",borderRadius:"lg",children:p.jsxs(Tt,{bg:"#314E89",children:[p.jsxs(Tt.BrandSection,{children:[p.jsx(Tt.Logo,{src:p2,alt:"نشان نمونه سامانه"}),p.jsxs(Tt.Brand,{children:[p.jsx(Tt.Title,{children:"عنوان سامانه"}),p.jsx(Tt.Description,{children:"توضیحات سامانه"})]})]}),p.jsx(Tt.Extra,{src:m2,alt:"نشان تکمیلی",text:"متن تکمیلی"}),p.jsx(Tt.Bi,{src:g2})]})})]}),p.jsxs(q,{fontSize:"sm",color:"gray.600",children:[p.jsxs(G,{children:["• ترتیب انتهای Header: ",p.jsx(Q,{children:"Extra"})," سپس ",p.jsx(Q,{children:"Bi"}),"."]}),p.jsxs(G,{mt:1,children:["• هرکدام از ",p.jsx(Q,{children:"Extra"})," یا ",p.jsx(Q,{children:"Bi"})," را می‌توان حذف کرد."]}),p.jsxs(G,{mt:1,children:["• ",p.jsx(Q,{children:"Extra"})," لوگو و متن دلخواه می‌گیرد؛ اگر ",p.jsx(Q,{children:"text"})," ندهی، فقط لوگو نمایش داده می‌شود و تمام ارتفاع Extra را می‌گیرد."]}),p.jsxs(G,{mt:1,children:["• ",p.jsx(Q,{children:"font-family"})," عمداً از Host به ارث می‌رسد."]})]})]})}function T2({allowFixedPreview:e=!0}){const[t,n]=v.useState("analysis"),[r,o]=v.useState("—"),i=v.useMemo(()=>[{id:"analysis",title:"آنالیز",mobileTitle:"آنالیز",icon:x2,active:t==="analysis",onClick:()=>{n("analysis"),o("آنالیز")}},{id:"users",title:"کاربران",mobileTitle:"کاربران",icon:S2,active:t==="users",onClick:()=>{n("users"),o("کاربران")}},{id:"search",title:"جستجو",mobileTitle:"جستجو",icon:w2,active:t==="search",onClick:()=>{n("search"),o("جستجو")}},{id:"restricted",title:"بخش محدود",mobileTitle:"محدود",icon:k2,disabled:!0}],[t]);return p.jsxs(Kt,{spacing:5,children:[p.jsx(G,{color:"gray.600",fontSize:"sm",children:"UI داخل remote می‌ماند؛ route، permission، active state و logout در خود سامانه مقصد تعیین می‌شوند."}),p.jsx(qa,{children:b2}),p.jsxs(q,{fontSize:"sm",color:"gray.600",children:[p.jsxs(G,{children:["• برای مخفی‌کردن آیتم از ",p.jsx(Q,{children:"hidden: true"})," یا filter در Host استفاده کن."]}),p.jsxs(G,{mt:1,children:["• برای حالت غیرقابل کلیک از ",p.jsx(Q,{children:"disabled: true"})," استفاده کن."]}),p.jsx(G,{mt:1,children:"• تا ۴ آیتم در موبایل، خروج مستقیم آخر Bottom Navigation قرار می‌گیرد."}),p.jsx(G,{mt:1,children:"• بیشتر از ۴ آیتم: چهار آیتم اول مستقیم، بقیه + خروج داخل «بیشتر» می‌روند."})]}),p.jsxs(q,{p:3,bg:"gray.50",borderRadius:"md",fontSize:"sm",children:["آخرین callback: ",p.jsx(Q,{children:r})]}),p.jsx(q,{display:{base:"block",lg:"none"},color:"gray.500",fontSize:"xs",children:"در موبایل نمونه AppSidebar به شکل Bottom Navigation پایین صفحه نمایش داده می‌شود."}),e?p.jsx(q,{display:{base:"block",lg:"none"},children:p.jsx(Hr,{items:i,ariaLabel:"نمونه AppSidebar",children:p.jsx(Hr.Exit,{onClick:()=>o("خروج")})})}):null,p.jsx(q,{display:{base:"none",lg:"block"},position:"relative",h:"360px",overflow:"hidden",borderWidth:"1px",borderColor:"gray.200",borderRadius:"lg",children:p.jsx(Hr,{items:i,ariaLabel:"نمونه AppSidebar",children:p.jsx(Hr.Exit,{onClick:()=>o("خروج")})})})]})}function P2(){const[e,t]=v.useState({full:3,compact:3,simple:3,minimal:3}),[n,r]=v.useState(!0),[o,i]=v.useState(3),[s,a]=v.useState(!1),l=v.useRef(null),c=v.useRef(null);v.useEffect(()=>(l.current=window.setTimeout(()=>r(!1),1800),()=>{l.current&&window.clearTimeout(l.current),c.current&&window.clearTimeout(c.current)}),[]);const u=(g,S)=>t(w=>({...w,[g]:S})),d=()=>{l.current&&window.clearTimeout(l.current),r(!0),l.current=window.setTimeout(()=>r(!1),1800)},h=g=>{s||(c.current&&window.clearTimeout(c.current),i(g),a(!0),c.current=window.setTimeout(()=>a(!1),1600))},m=(g,S={})=>p.jsxs(q,{w:"full",minW:0,children:[p.jsx(G,{mb:2,fontSize:"sm",fontWeight:"600",dir:"ltr",children:g}),p.jsx(Zi,{level:g,currentPage:e[g],totalPages:12,totalCount:120,pageSize:10,onPageChange:w=>u(g,w),...S})]}),y=g=>p.jsxs(Kt,{spacing:4,children:[g("full"),p.jsxs(po,{w:"full",align:"flex-start",direction:{base:"column",lg:"row"},gap:{base:4,lg:0},children:[p.jsx(q,{w:{base:"100%",lg:"55%"},minW:0,children:g("compact")}),p.jsx(q,{w:{base:"100%",lg:"25%"},minW:0,children:g("simple")}),p.jsx(q,{w:{base:"100%",lg:"20%"},minW:0,children:g("minimal")})]})]});return p.jsxs(Kt,{spacing:6,children:[p.jsxs(G,{color:"gray.600",fontSize:"sm",children:["همه variantها API یکسان دارند. ",p.jsx(Q,{children:"loading"})," اختیاری است و اگر پاس داده نشود رفتار قبلی کاملاً حفظ می‌شود."]}),p.jsx(qa,{children:v2}),p.jsxs(q,{fontSize:"sm",color:"gray.600",children:[p.jsxs(G,{children:["• ",p.jsx(Q,{children:"currentPage"}),": صفحه فعلی"]}),p.jsxs(G,{mt:1,children:["• ",p.jsx(Q,{children:"totalPages"}),": تعداد کل صفحات"]}),p.jsxs(G,{mt:1,children:["• ",p.jsx(Q,{children:"totalCount"}),": تعداد کل رکوردها"]}),p.jsxs(G,{mt:1,children:["• ",p.jsx(Q,{children:"pageSize"}),": تعداد رکورد در هر صفحه"]}),p.jsxs(G,{mt:1,children:["• ",p.jsx(Q,{children:"onPageChange"}),": callback تغییر صفحه"]}),p.jsxs(G,{mt:1,children:["• ",p.jsx(Q,{children:"loading"}),": اختیاری؛ پیش‌فرض ",p.jsx(Q,{children:"false"})]}),p.jsxs(G,{mt:1,children:["• levelها: ",p.jsx(Q,{children:"full"}),"، ",p.jsx(Q,{children:"compact"}),"، ",p.jsx(Q,{children:"simple"}),"، ",p.jsx(Q,{children:"minimal"})]})]}),p.jsxs(q,{children:[p.jsx(G,{mb:3,fontWeight:"700",fontSize:"sm",children:"نمونه حالت‌ها"}),y(g=>m(g))]}),p.jsxs(q,{borderWidth:"1px",borderColor:"gray.200",borderRadius:"xl",p:{base:3,md:4},bg:"gray.50",children:[p.jsxs(po,{mb:3,gap:3,align:{base:"stretch",md:"center"},justify:"space-between",direction:{base:"column",md:"row"},children:[p.jsxs(q,{children:[p.jsx(G,{fontWeight:"700",fontSize:"sm",children:"Loading — دریافت اولیه"}),p.jsx(G,{mt:1,color:"gray.600",fontSize:"xs",children:"totalPages و totalCount هنوز وجود ندارند؛ صفحه ۱ ثابت می‌ماند و جای مقادیر نامشخص loader دیده می‌شود."})]}),p.jsx(Rt,{size:"sm",variant:"outline",onClick:d,isDisabled:n,flexShrink:0,children:n?"در حال دریافت...":"اجرای دوباره"})]}),y(g=>p.jsxs(q,{w:"full",minW:0,children:[p.jsx(G,{mb:2,fontSize:"sm",fontWeight:"600",dir:"ltr",children:g}),p.jsx(Zi,{level:g,currentPage:1,totalPages:n?void 0:12,totalCount:n?void 0:120,pageSize:10,loading:n,onPageChange:()=>{}})]}))]}),p.jsxs(q,{borderWidth:"1px",borderColor:"gray.200",borderRadius:"xl",p:{base:3,md:4},bg:"gray.50",children:[p.jsxs(po,{mb:3,gap:3,align:{base:"stretch",md:"center"},justify:"space-between",direction:{base:"column",md:"row"},children:[p.jsxs(q,{children:[p.jsx(G,{fontWeight:"700",fontSize:"sm",children:"Loading — جابه‌جایی بین صفحات"}),p.jsx(G,{mt:1,color:"gray.600",fontSize:"xs",children:"totalPages و totalCount قبلی حفظ می‌شوند و فقط صفحه جاری تا رسیدن پاسخ جدید loading نشان می‌دهد."})]}),p.jsx(Rt,{size:"sm",colorScheme:"blue",onClick:()=>h(o>=12?1:o+1),isDisabled:s,flexShrink:0,children:s?"در حال دریافت صفحه...":"صفحه بعدی"})]}),y(g=>p.jsxs(q,{w:"full",minW:0,children:[p.jsx(G,{mb:2,fontSize:"sm",fontWeight:"600",dir:"ltr",children:g}),p.jsx(Zi,{level:g,currentPage:o,totalPages:12,totalCount:120,pageSize:10,loading:s,onPageChange:h})]}))]}),p.jsx(q,{p:3,bg:"gray.50",borderRadius:"md",fontSize:"sm",color:"gray.600",children:"ارتفاع Pagination از والد گرفته نمی‌شود؛ هر variant ارتفاعش را از کنترل‌ها و padding داخلی خودش می‌سازد."})]})}const A2=[{id:"app-header",label:"AppHeader"},{id:"app-sidebar",label:"AppSidebar"},{id:"pagination",label:"Pagination"}];function E2(){const[e,t]=v.useState(!1),[n,r]=v.useState(!1);v.useEffect(()=>{const i=()=>{t(window.scrollY>260),r(window.scrollY>=Math.max(1,window.innerHeight*.75))};return i(),window.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",i),()=>{window.removeEventListener("scroll",i),window.removeEventListener("resize",i)}},[]);const o=i=>{document.getElementById(i)?.scrollIntoView({behavior:"smooth",block:"start"})};return p.jsx(uh,{children:p.jsxs(q,{minH:"100vh",bg:"gray.50",dir:"rtl",pb:{base:20,lg:8},children:[p.jsx(q,{minH:"100dvh",display:"flex",alignItems:"center",justifyContent:"center",children:p.jsx(Ws,{maxW:"7xl",px:{base:3,md:6},py:{base:5,md:8},children:p.jsx(mh,{columns:{base:1,sm:3},spacing:3,children:A2.map(i=>p.jsx(Rt,{type:"button",h:{base:"84px",md:"104px"},bg:"white",color:"gray.800",borderWidth:"1px",borderColor:"gray.200",borderRadius:"xl",boxShadow:"sm",fontSize:{base:"md",md:"lg"},_hover:{bg:"gray.50",borderColor:"blue.200",transform:"translateY(-2px)"},transition:"all .18s ease",onClick:()=>o(i.id),children:i.label},i.id))})})}),p.jsx(Ws,{maxW:"7xl",px:{base:3,md:6},pb:{base:5,md:8},children:p.jsxs(Kt,{spacing:6,children:[p.jsx(Ji,{id:"app-header",title:"AppHeader",children:p.jsx(C2,{})}),p.jsx(Ji,{id:"app-sidebar",title:"AppSidebar",children:p.jsx(T2,{allowFixedPreview:n})}),p.jsx(Ji,{id:"pagination",title:"Pagination",children:p.jsx(P2,{})})]})}),e?p.jsx(Rt,{type:"button",position:"fixed",left:{base:4,md:6},bottom:{base:20,lg:6},zIndex:2e3,size:"sm",colorScheme:"blue",boxShadow:"lg",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),children:"بازگشت به بالا ↑"}):null]})})}export{E2 as default};